Home
last modified time | relevance | path

Searched refs:Reloc (Results 1 – 25 of 294) sorted by relevance

12345678910>>...12

/external/swiftshader/third_party/LLVM/lib/Target/Mips/
DMipsCodeEmitter.cpp71 IsPIC(TM.getRelocationModel() == Reloc::PIC_) { in MipsCodeEmitter()
93 void emitGlobalAddress(const GlobalValue *GV, unsigned Reloc,
95 void emitExternalSymbolAddress(const char *ES, unsigned Reloc) const;
96 void emitConstPoolAddress(unsigned CPI, unsigned Reloc) const;
97 void emitJumpTableAddress(unsigned JTIndex, unsigned Reloc) const;
98 void emitMachineBasicBlock(MachineBasicBlock *BB, unsigned Reloc) const;
204 void MipsCodeEmitter::emitGlobalAddress(const GlobalValue *GV, unsigned Reloc, in emitGlobalAddress() argument
206 MCE.addRelocation(MachineRelocation::getGV(MCE.getCurrentPCOffset(), Reloc, in emitGlobalAddress()
211 emitExternalSymbolAddress(const char *ES, unsigned Reloc) const { in emitExternalSymbolAddress()
213 Reloc, ES, 0, 0, false)); in emitExternalSymbolAddress()
[all …]
DMipsTargetMachine.h42 Reloc::Model RM, CodeModel::Model CM,
89 Reloc::Model RM, CodeModel::Model CM);
98 Reloc::Model RM, CodeModel::Model CM);
107 Reloc::Model RM, CodeModel::Model CM);
116 Reloc::Model RM, CodeModel::Model CM);
DMipsTargetMachine.cpp38 Reloc::Model RM, CodeModel::Model CM, in MipsTargetMachine()
57 Reloc::Model RM, CodeModel::Model CM) : in MipsebTargetMachine()
63 Reloc::Model RM, CodeModel::Model CM) : in MipselTargetMachine()
69 Reloc::Model RM, CodeModel::Model CM) : in Mips64ebTargetMachine()
75 Reloc::Model RM, CodeModel::Model CM) : in Mips64elTargetMachine()
/external/llvm/lib/Target/X86/
DX86TargetMachine.cpp109 static Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel()
110 Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
118 return Reloc::PIC_; in getEffectiveRelocModel()
119 return Reloc::DynamicNoPIC; in getEffectiveRelocModel()
122 return Reloc::PIC_; in getEffectiveRelocModel()
123 return Reloc::Static; in getEffectiveRelocModel()
130 if (*RM == Reloc::DynamicNoPIC) { in getEffectiveRelocModel()
132 return Reloc::PIC_; in getEffectiveRelocModel()
134 return Reloc::Static; in getEffectiveRelocModel()
139 if (*RM == Reloc::Static && TT.isOSDarwin() && is64Bit) in getEffectiveRelocModel()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-readobj/
DWasmDumper.cpp66 void printRelocation(const SectionRef &Section, const RelocationRef &Reloc);
77 const RelocationRef &Reloc) { in printRelocation() argument
79 uint64_t RelocType = Reloc.getType(); in printRelocation()
80 Reloc.getTypeName(RelocTypeName); in printRelocation()
81 const wasm::WasmRelocation &WasmReloc = Obj->getWasmRelocation(Reloc); in printRelocation()
84 symbol_iterator SI = Reloc.getSymbol(); in printRelocation()
103 W.printHex("Offset", Reloc.getOffset()); in printRelocation()
112 OS << W.hex(Reloc.getOffset()) << " " << RelocTypeName << " "; in printRelocation()
133 for (const RelocationRef &Reloc : Section.relocations()) { in printRelocations() local
140 printRelocation(Section, Reloc); in printRelocations()
[all …]
/external/llvm/lib/Target/
DTargetMachine.cpp60 return getRelocationModel() == Reloc::PIC_; in isPositionIndependent()
84 Reloc::Model TargetMachine::getRelocationModel() const { return RM; } in getRelocationModel()
113 Reloc::Model RM = getRelocationModel(); in shouldAssumeDSOLocal()
128 if (RM == Reloc::Static) in shouldAssumeDSOLocal()
134 assert(RM != Reloc::DynamicNoPIC); in shouldAssumeDSOLocal()
137 RM == Reloc::Static || M.getPIELevel() != PIELevel::Default; in shouldAssumeDSOLocal()
145 if (!IsTLS && (RM == Reloc::Static || CanUseCopyRelocWithPIE)) in shouldAssumeDSOLocal()
155 Reloc::Model RM = getRelocationModel(); in getTLSModel()
156 bool IsSharedLibrary = RM == Reloc::PIC_ && !IsPIE; in getTLSModel()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Sparc/
DSparcTargetMachine.cpp57 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
59 return Reloc::Static; in getEffectiveRelocModel()
74 Reloc::Model RM, bool Is64Bit, in getEffectiveCodeModel()
81 return RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium; in getEffectiveCodeModel()
89 const TargetOptions &Options, Optional<Reloc::Model> RM, in SparcTargetMachine()
190 Optional<Reloc::Model> RM, in SparcV8TargetMachine()
200 Optional<Reloc::Model> RM, in SparcV9TargetMachine()
210 Optional<Reloc::Model> RM, in SparcelTargetMachine()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86TargetMachine.cpp162 static Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel()
164 Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
170 return Reloc::Static; in getEffectiveRelocModel()
177 return Reloc::PIC_; in getEffectiveRelocModel()
178 return Reloc::DynamicNoPIC; in getEffectiveRelocModel()
181 return Reloc::PIC_; in getEffectiveRelocModel()
182 return Reloc::Static; in getEffectiveRelocModel()
189 if (*RM == Reloc::DynamicNoPIC) { in getEffectiveRelocModel()
191 return Reloc::PIC_; in getEffectiveRelocModel()
193 return Reloc::Static; in getEffectiveRelocModel()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/
DTargetMachine.cpp51 return getRelocationModel() == Reloc::PIC_; in isPositionIndependent()
88 Reloc::Model TargetMachine::getRelocationModel() const { return RM; } in getRelocationModel()
137 Reloc::Model RM = getRelocationModel(); in shouldAssumeDSOLocal()
162 if (RM == Reloc::Static) in shouldAssumeDSOLocal()
168 assert(RM != Reloc::DynamicNoPIC); in shouldAssumeDSOLocal()
171 RM == Reloc::Static || M.getPIELevel() != PIELevel::Default; in shouldAssumeDSOLocal()
191 if (!IsTLS && !IsPPC && (RM == Reloc::Static || IsAccessViaCopyRelocs)) in shouldAssumeDSOLocal()
209 Reloc::Model RM = getRelocationModel(); in getTLSModel()
210 bool IsSharedLibrary = RM == Reloc::PIC_ && !IsPIE; in getTLSModel()
/external/llvm/lib/Target/ARM/
DARMTargetMachine.h42 Optional<Reloc::Model> RM, CodeModel::Model CM,
68 Optional<Reloc::Model> RM, CodeModel::Model CM,
79 Optional<Reloc::Model> RM, CodeModel::Model CM,
90 Optional<Reloc::Model> RM, CodeModel::Model CM,
103 Optional<Reloc::Model> RM, CodeModel::Model CM,
114 Optional<Reloc::Model> RM, CodeModel::Model CM,
125 Optional<Reloc::Model> RM, CodeModel::Model CM,
DARMTargetMachine.cpp177 static Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel()
178 Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
181 return TT.isOSBinFormatMachO() ? Reloc::PIC_ : Reloc::Static; in getEffectiveRelocModel()
184 if (*RM == Reloc::DynamicNoPIC && !TT.isOSDarwin()) in getEffectiveRelocModel()
185 return Reloc::Static; in getEffectiveRelocModel()
195 Optional<Reloc::Model> RM, in ARMBaseTargetMachine()
269 Optional<Reloc::Model> RM, in ARMTargetMachine()
284 Optional<Reloc::Model> RM, in ARMLETargetMachine()
294 Optional<Reloc::Model> RM, in ARMBETargetMachine()
304 Optional<Reloc::Model> RM, in ThumbTargetMachine()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZTargetMachine.cpp94 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
97 if (!RM.hasValue() || *RM == Reloc::DynamicNoPIC) in getEffectiveRelocModel()
98 return Reloc::Static; in getEffectiveRelocModel()
132 Reloc::Model RM, bool JIT) { in getEffectiveCodeModel()
136 return RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium; in getEffectiveCodeModel()
143 Optional<Reloc::Model> RM, in SystemZTargetMachine()
/external/swiftshader/third_party/LLVM/lib/Target/X86/
DX86CodeEmitter.cpp58 IsPIC(TM.getRelocationModel() == Reloc::PIC_) {} in Emitter()
63 IsPIC(TM.getRelocationModel() == Reloc::PIC_) {} in Emitter()
81 void emitGlobalAddress(const GlobalValue *GV, unsigned Reloc,
84 void emitExternalSymbolAddress(const char *ES, unsigned Reloc);
85 void emitConstPoolAddress(unsigned CPI, unsigned Reloc, intptr_t Disp = 0,
87 void emitJumpTableAddress(unsigned JTI, unsigned Reloc,
122 IsPIC = TM.getRelocationModel() == Reloc::PIC_; in runOnMachineFunction()
261 unsigned Reloc, in emitGlobalAddress() argument
266 if (Reloc == X86::reloc_picrel_word) in emitGlobalAddress()
268 else if (Reloc == X86::reloc_pcrel_word) in emitGlobalAddress()
[all …]
DX86TargetMachine.cpp34 Reloc::Model RM, CodeModel::Model CM) in X86_32TargetMachine()
54 Reloc::Model RM, CodeModel::Model CM) in X86_64TargetMachine()
68 Reloc::Model RM, CodeModel::Model CM, in X86TargetMachine()
75 if (getRelocationModel() == Reloc::Static) { in X86TargetMachine()
84 if (getRelocationModel() == Reloc::PIC_) in X86TargetMachine()
87 assert(getRelocationModel() == Reloc::DynamicNoPIC); in X86TargetMachine()
/external/swiftshader/third_party/LLVM/include/llvm/MC/
DMCCodeGenInfo.h25 Reloc::Model RelocationModel;
32 void InitMCCodeGenInfo(Reloc::Model RM = Reloc::Default,
35 Reloc::Model getRelocationModel() const { return RelocationModel; } in getRelocationModel()
/external/swiftshader/third_party/subzero/src/
DIceInstMIPS32.h34 inline void emitRelocOp(Ostream &Str, RelocOp Reloc) { in emitRelocOp() argument
35 switch (Reloc) { in emitRelocOp()
363 RelocOp Reloc = RO_No) {
365 InstMIPS32UnaryopGPR(Func, Dest, Src, Reloc);
390 RelocOp Reloc = RO_No)
391 : InstMIPS32(Func, K, 1, Dest), Reloc(Reloc) {
397 const RelocOp Reloc; variable
596 OperandMIPS32Mem *Mem, RelocOp Reloc = RO_No) {
598 InstMIPS32Load(Func, Value, Mem, Reloc);
643 emitRelocOp(Str, Reloc); in emit()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMTargetMachine.cpp180 static Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel()
181 Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
184 return TT.isOSBinFormatMachO() ? Reloc::PIC_ : Reloc::Static; in getEffectiveRelocModel()
186 if (*RM == Reloc::ROPI || *RM == Reloc::RWPI || *RM == Reloc::ROPI_RWPI) in getEffectiveRelocModel()
191 if (*RM == Reloc::DynamicNoPIC && !TT.isOSDarwin()) in getEffectiveRelocModel()
192 return Reloc::Static; in getEffectiveRelocModel()
208 Optional<Reloc::Model> RM, in ARMBaseTargetMachine()
297 Optional<Reloc::Model> RM, in ARMLETargetMachine()
305 Optional<Reloc::Model> RM, in ARMBETargetMachine()
/external/llvm/lib/Target/Sparc/
DSparcTargetMachine.cpp57 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
59 return Reloc::Static; in getEffectiveRelocModel()
67 Optional<Reloc::Model> RM, in SparcTargetMachine()
189 Optional<Reloc::Model> RM, in SparcV8TargetMachine()
199 Optional<Reloc::Model> RM, in SparcV9TargetMachine()
209 Optional<Reloc::Model> RM, in SparcelTargetMachine()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Nios2/
DNios2TargetMachine.cpp34 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
36 return Reloc::Static; in getEffectiveRelocModel()
41 Reloc::Model RM, bool JIT) { in getEffectiveCodeModel()
50 Optional<Reloc::Model> RM, in Nios2TargetMachine()
/external/llvm/lib/Target/MSP430/
DMSP430TargetMachine.cpp29 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
31 return Reloc::Static; in getEffectiveRelocModel()
38 Optional<Reloc::Model> RM, in MSP430TargetMachine()
/external/llvm/lib/Target/BPF/
DBPFTargetMachine.cpp40 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
42 return Reloc::PIC_; in getEffectiveRelocModel()
49 Optional<Reloc::Model> RM, in BPFTargetMachine()
/external/llvm/lib/Target/XCore/
DXCoreTargetMachine.cpp24 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
26 return Reloc::Static; in getEffectiveRelocModel()
35 Optional<Reloc::Model> RM, in XCoreTargetMachine()
/external/llvm/lib/Target/AVR/
DAVRTargetMachine.cpp37 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
38 return RM.hasValue() ? *RM : Reloc::Static; in getEffectiveRelocModel()
44 Optional<Reloc::Model> RM, CodeModel::Model CM, in AVRTargetMachine()
/external/llvm/lib/Target/SystemZ/
DSystemZTargetMachine.cpp83 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
86 if (!RM.hasValue() || *RM == Reloc::DynamicNoPIC) in getEffectiveRelocModel()
87 return Reloc::Static; in getEffectiveRelocModel()
94 Optional<Reloc::Model> RM, in SystemZTargetMachine()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARC/
DARCTargetMachine.cpp23 static Reloc::Model getRelocModel(Optional<Reloc::Model> RM) { in getRelocModel()
25 return Reloc::Static; in getRelocModel()
39 Optional<Reloc::Model> RM, in ARCTargetMachine()

12345678910>>...12