LLVM  9.0.0svn
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"
15 
16 namespace llvm {
17 
18 class PPCCCState : public CCState {
19 public:
20 
21  void
23  void
25 
26 private:
27 
28  // Records whether the value has been lowered from an ppcf128.
29  SmallVector<bool, 4> OriginalArgWasPPCF128;
30 
31 public:
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
uint64_t CallInst * C
This class represents lattice values for constants.
Definition: AllocatorList.h:23
void PreAnalyzeCallOperands(const SmallVectorImpl< ISD::OutputArg > &Outs)
Definition: PPCCCState.cpp:16
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition: APFloat.h:41
bool WasOriginalArgPPCF128(unsigned ValNo)
Definition: PPCCCState.h:36
This is an important class for using LLVM in a threaded context.
Definition: LLVMContext.h:64
void PreAnalyzeFormalArguments(const SmallVectorImpl< ISD::InputArg > &Ins)
Definition: PPCCCState.cpp:26
CCState - This class holds information needed while lowering arguments and return values...
bool isVarArg() const
void clearWasPPCF128()
Definition: PPCCCState.h:37
PPCCCState(CallingConv::ID CC, bool isVarArg, MachineFunction &MF, SmallVectorImpl< CCValAssign > &locs, LLVMContext &C)
Definition: PPCCCState.h:32