LLVM: lib/Target/ARC/ARCTargetTransformInfo.h Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16#ifndef LLVM_LIB_TARGET_ARC_ARCTARGETTRANSFORMINFO_H
17#define LLVM_LIB_TARGET_ARC_ARCTARGETTRANSFORMINFO_H
18
22
23namespace llvm {
24
28
31 friend BaseT;
32
35
36 const ARCSubtarget *getST() const { return ST; }
38
39public:
41 : BaseT(TM, F.getDataLayout()), ST(TM->getSubtargetImpl()),
42 TLI(ST->getTargetLowering()) {}
43
44
46 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {}
50};
51
52}
53
54#endif
This file provides a helper that implements much of the TTI interface in terms of the target-independ...
This pass exposes codegen information to IR-level passes.
ARCTTIImpl(ARCTTIImpl &&Arg)
Definition ARCTargetTransformInfo.h:47
ARCTTIImpl(const ARCTargetMachine *TM, const Function &F)
Definition ARCTargetTransformInfo.h:40
ARCTTIImpl(const ARCTTIImpl &Arg)
Definition ARCTargetTransformInfo.h:45
BasicTTIImplBase(const TargetMachine *TM, const DataLayout &DL)
virtual const DataLayout & getDataLayout() const
This is an optimization pass for GlobalISel generic memory operations.
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Implement std::hash so that hash_code can be used in STL containers.