LLVM  10.0.0
VEISelLowering.h
Go to the documentation of this file.
1 //===-- VEISelLowering.h - VE DAG Lowering Interface ------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file defines the interfaces that VE uses to lower LLVM code into a
10 // selection DAG.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_VE_VEISELLOWERING_H
15 #define LLVM_LIB_TARGET_VE_VEISELLOWERING_H
16 
17 #include "VE.h"
19 
20 namespace llvm {
21 class VESubtarget;
22 
23 namespace VEISD {
24 enum NodeType : unsigned {
26  RET_FLAG, // Return with a flag operand.
27 };
28 }
29 
31  const VESubtarget *Subtarget;
32 
33 public:
34  VETargetLowering(const TargetMachine &TM, const VESubtarget &STI);
35 
36  const char *getTargetNodeName(unsigned Opcode) const override;
37 
38  Register getRegisterByName(const char *RegName, LLT VT,
39  const MachineFunction &MF) const override;
40 
41  /// getSetCCResultType - Return the ISD::SETCC ValueType
42  EVT getSetCCResultType(const DataLayout &DL, LLVMContext &Context,
43  EVT VT) const override;
44 
45  SDValue LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv,
46  bool isVarArg,
48  const SDLoc &dl, SelectionDAG &DAG,
49  SmallVectorImpl<SDValue> &InVals) const override;
50 
51  bool CanLowerReturn(CallingConv::ID CallConv, MachineFunction &MF,
52  bool isVarArg,
53  const SmallVectorImpl<ISD::OutputArg> &ArgsFlags,
54  LLVMContext &Context) const override;
55  SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
57  const SmallVectorImpl<SDValue> &OutVals, const SDLoc &dl,
58  SelectionDAG &DAG) const override;
59 };
60 } // namespace llvm
61 
62 #endif // VE_ISELLOWERING_H
BUILTIN_OP_END - This must be the last enum value in this list.
Definition: ISDOpcodes.h:943
A parsed version of the target data layout string in and methods for querying it. ...
Definition: DataLayout.h:111
LLVMContext & Context
This class represents lattice values for constants.
Definition: AllocatorList.h:23
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition: APFloat.h:42
This class defines information used to lower LLVM code to legal SelectionDAG operators that the targe...
This is an important class for using LLVM in a threaded context.
Definition: LLVMContext.h:63
Extended Value Type.
Definition: ValueTypes.h:34
This is used to represent a portion of an LLVM function in a low-level Data Dependence DAG representa...
Definition: SelectionDAG.h:223
Wrapper class for IR location info (IR ordering and DebugLoc) to be passed into SDNode creation funct...
Primary interface to the complete machine description for the target machine.
Definition: TargetMachine.h:65
Unlike LLVM values, Selection DAG nodes may return multiple values as the result of a computation...
Wrapper class representing virtual and physical registers.
Definition: Register.h:19
This file describes how to lower LLVM code to machine code.