LLVM
10.0.0
lib
Target
VE
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
"
18
#include "
llvm/CodeGen/TargetLowering.h
"
19
20
namespace
llvm
{
21
class
VESubtarget;
22
23
namespace
VEISD {
24
enum
NodeType
:
unsigned
{
25
FIRST_NUMBER
=
ISD::BUILTIN_OP_END
,
26
RET_FLAG
,
// Return with a flag operand.
27
};
28
}
29
30
class
VETargetLowering
:
public
TargetLowering
{
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,
47
const
SmallVectorImpl<ISD::InputArg>
&
Ins
,
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,
56
const
SmallVectorImpl<ISD::OutputArg>
&Outs,
57
const
SmallVectorImpl<SDValue>
&OutVals,
const
SDLoc
&dl,
58
SelectionDAG
&DAG)
const override
;
59
};
60
}
// namespace llvm
61
62
#endif // VE_ISELLOWERING_H
llvm::ISD::BUILTIN_OP_END
BUILTIN_OP_END - This must be the last enum value in this list.
Definition:
ISDOpcodes.h:943
llvm::DataLayout
A parsed version of the target data layout string in and methods for querying it. ...
Definition:
DataLayout.h:111
llvm::VEISD::RET_FLAG
Definition:
VEISelLowering.h:26
Context
LLVMContext & Context
Definition:
NVVMIntrRange.cpp:73
llvm
This class represents lattice values for constants.
Definition:
AllocatorList.h:23
llvm::MachineFunction
Definition:
MachineFunction.h:223
llvm::VEISD::NodeType
NodeType
Definition:
VEISelLowering.h:24
llvm::SmallVectorImpl
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition:
APFloat.h:42
unsigned
llvm::TargetLowering
This class defines information used to lower LLVM code to legal SelectionDAG operators that the targe...
Definition:
TargetLowering.h:2953
llvm::SystemZISD::TM
Definition:
SystemZISelLowering.h:68
llvm::MipsISD::Ins
Definition:
MipsISelLowering.h:159
llvm::LLVMContext
This is an important class for using LLVM in a threaded context.
Definition:
LLVMContext.h:63
llvm::EVT
Extended Value Type.
Definition:
ValueTypes.h:34
llvm::SelectionDAG
This is used to represent a portion of an LLVM function in a low-level Data Dependence DAG representa...
Definition:
SelectionDAG.h:223
llvm::SDLoc
Wrapper class for IR location info (IR ordering and DebugLoc) to be passed into SDNode creation funct...
Definition:
SelectionDAGNodes.h:1118
llvm::VESubtarget
Definition:
VESubtarget.h:31
VE.h
llvm::LLT
Definition:
LowLevelTypeImpl.h:39
llvm::VETargetLowering
Definition:
VEISelLowering.h:30
llvm::TargetMachine
Primary interface to the complete machine description for the target machine.
Definition:
TargetMachine.h:65
llvm::SDValue
Unlike LLVM values, Selection DAG nodes may return multiple values as the result of a computation...
Definition:
SelectionDAGNodes.h:124
llvm::VEISD::FIRST_NUMBER
Definition:
VEISelLowering.h:25
llvm::Register
Wrapper class representing virtual and physical registers.
Definition:
Register.h:19
TargetLowering.h
This file describes how to lower LLVM code to machine code.
Generated on Tue Mar 24 2020 13:12:51 for LLVM by
1.8.13