LLVM
10.0.0
lib
Target
PowerPC
PPCCCState.h
Go to the documentation of this file.
1
//===---- PPCCCState.h - CCState with PowerPC specific extensions -----------===//
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
#ifndef PPCCCSTATE_H
10
#define PPCCCSTATE_H
11
12
#include "
PPCISelLowering.h
"
13
#include "
llvm/ADT/SmallVector.h
"
14
#include "
llvm/CodeGen/CallingConvLower.h
"
15
16
namespace
llvm
{
17
18
class
PPCCCState
:
public
CCState
{
19
public
:
20
21
void
22
PreAnalyzeCallOperands
(
const
SmallVectorImpl<ISD::OutputArg>
&Outs);
23
void
24
PreAnalyzeFormalArguments
(
const
SmallVectorImpl<ISD::InputArg>
&
Ins
);
25
26
private
:
27
28
// Records whether the value has been lowered from an ppcf128.
29
SmallVector<bool, 4>
OriginalArgWasPPCF128;
30
31
public
:
32
PPCCCState
(
CallingConv::ID
CC,
bool
isVarArg
,
MachineFunction
&MF,
33
SmallVectorImpl<CCValAssign>
&locs,
LLVMContext
&
C
)
34
:
CCState
(CC, isVarArg, MF, locs, C) {}
35
36
bool
WasOriginalArgPPCF128
(
unsigned
ValNo) {
return
OriginalArgWasPPCF128[ValNo]; }
37
void
clearWasPPCF128
() { OriginalArgWasPPCF128.
clear
(); }
38
};
39
}
40
41
#endif
C
uint64_t CallInst * C
Definition:
NVVMIntrRange.cpp:68
llvm
This class represents lattice values for constants.
Definition:
AllocatorList.h:23
llvm::MachineFunction
Definition:
MachineFunction.h:223
llvm::PPCCCState::PreAnalyzeCallOperands
void PreAnalyzeCallOperands(const SmallVectorImpl< ISD::OutputArg > &Outs)
Definition:
PPCCCState.cpp:16
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::PPCCCState::WasOriginalArgPPCF128
bool WasOriginalArgPPCF128(unsigned ValNo)
Definition:
PPCCCState.h:36
CallingConvLower.h
llvm::PPCCCState
Definition:
PPCCCState.h:18
llvm::MipsISD::Ins
Definition:
MipsISelLowering.h:159
llvm::SmallVectorImpl::clear
void clear()
Definition:
SmallVector.h:339
llvm::LLVMContext
This is an important class for using LLVM in a threaded context.
Definition:
LLVMContext.h:63
llvm::PPCCCState::PreAnalyzeFormalArguments
void PreAnalyzeFormalArguments(const SmallVectorImpl< ISD::InputArg > &Ins)
Definition:
PPCCCState.cpp:26
llvm::CCState
CCState - This class holds information needed while lowering arguments and return values...
Definition:
CallingConvLower.h:191
llvm::CCState::isVarArg
bool isVarArg() const
Definition:
CallingConvLower.h:268
llvm::SmallVector< bool, 4 >
llvm::PPCCCState::clearWasPPCF128
void clearWasPPCF128()
Definition:
PPCCCState.h:37
llvm::PPCCCState::PPCCCState
PPCCCState(CallingConv::ID CC, bool isVarArg, MachineFunction &MF, SmallVectorImpl< CCValAssign > &locs, LLVMContext &C)
Definition:
PPCCCState.h:32
SmallVector.h
PPCISelLowering.h
Generated on Tue Mar 24 2020 13:12:34 for LLVM by
1.8.13