Home
last modified time | relevance | path

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

12345678910>>...14

/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/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-10.0/llvm/lib/Target/
DTargetMachine.cpp45 return getRelocationModel() == Reloc::PIC_; in isPositionIndependent()
70 Reloc::Model TargetMachine::getRelocationModel() const { return RM; } in getRelocationModel()
119 Reloc::Model RM = getRelocationModel(); in shouldAssumeDSOLocal()
161 if (RM == Reloc::Static) in shouldAssumeDSOLocal()
172 assert(RM != Reloc::DynamicNoPIC); in shouldAssumeDSOLocal()
175 RM == Reloc::Static || M.getPIELevel() != PIELevel::Default; in shouldAssumeDSOLocal()
194 if (!(GV && GV->isThreadLocal()) && RM == Reloc::Static) in shouldAssumeDSOLocal()
212 Reloc::Model RM = getRelocationModel(); in getTLSModel()
213 bool IsSharedLibrary = RM == Reloc::PIC_ && !IsPIE; in getTLSModel()
DTargetMachineC.cpp104 LLVMCodeGenOptLevel Level, LLVMRelocMode Reloc, in LLVMCreateTargetMachine() argument
106 Optional<Reloc::Model> RM; in LLVMCreateTargetMachine()
107 switch (Reloc){ in LLVMCreateTargetMachine()
109 RM = Reloc::Static; in LLVMCreateTargetMachine()
112 RM = Reloc::PIC_; in LLVMCreateTargetMachine()
115 RM = Reloc::DynamicNoPIC; in LLVMCreateTargetMachine()
118 RM = Reloc::ROPI; in LLVMCreateTargetMachine()
121 RM = Reloc::RWPI; in LLVMCreateTargetMachine()
124 RM = Reloc::ROPI_RWPI; in LLVMCreateTargetMachine()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/
DSparcTargetMachine.cpp57 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
59 return Reloc::Static; in getEffectiveRelocModel()
74 getEffectiveSparcCodeModel(Optional<CodeModel::Model> CM, Reloc::Model RM, in getEffectiveSparcCodeModel()
86 return RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium; in getEffectiveSparcCodeModel()
94 const TargetOptions &Options, Optional<Reloc::Model> RM, in SparcTargetMachine()
195 Optional<Reloc::Model> RM, in SparcV8TargetMachine()
205 Optional<Reloc::Model> RM, in SparcV9TargetMachine()
215 Optional<Reloc::Model> RM, in SparcelTargetMachine()
/external/llvm-project/llvm/lib/Target/Sparc/
DSparcTargetMachine.cpp57 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
59 return Reloc::Static; in getEffectiveRelocModel()
74 getEffectiveSparcCodeModel(Optional<CodeModel::Model> CM, Reloc::Model RM, in getEffectiveSparcCodeModel()
86 return RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium; in getEffectiveSparcCodeModel()
94 const TargetOptions &Options, Optional<Reloc::Model> RM, in SparcTargetMachine()
194 Optional<Reloc::Model> RM, in SparcV8TargetMachine()
204 Optional<Reloc::Model> RM, in SparcV9TargetMachine()
214 Optional<Reloc::Model> RM, in SparcelTargetMachine()
/external/llvm-project/llvm/tools/llvm-readobj/
DWasmDumper.cpp70 void printRelocation(const SectionRef &Section, const RelocationRef &Reloc);
84 const RelocationRef &Reloc) { in printRelocation() argument
86 uint64_t RelocType = Reloc.getType(); in printRelocation()
87 Reloc.getTypeName(RelocTypeName); in printRelocation()
88 const wasm::WasmRelocation &WasmReloc = Obj->getWasmRelocation(Reloc); in printRelocation()
91 symbol_iterator SI = Reloc.getSymbol(); in printRelocation()
100 W.printHex("Offset", Reloc.getOffset()); in printRelocation()
109 OS << W.hex(Reloc.getOffset()) << " " << RelocTypeName << " "; in printRelocation()
130 for (const RelocationRef &Reloc : Section.relocations()) { in printRelocations() local
137 printRelocation(Section, Reloc); in printRelocations()
[all …]
/external/llvm-project/llvm/lib/XRay/
DInstrumentationMap.cpp118 for (const object::RelocationRef &Reloc : Section.relocations()) { in loadObj() local
120 if (Supports && Supports(Reloc.getType())) { in loadObj()
121 Expected<uint64_t> ValueOrErr = Reloc.getSymbol()->getValue(); in loadObj()
125 {Reloc.getOffset(), in loadObj()
126 object::resolveRelocation(Resolver, Reloc, *ValueOrErr, 0)}); in loadObj()
128 } else if (Supports && Supports(Reloc.getType())) { in loadObj()
129 auto AddendOrErr = object::ELFRelocationRef(Reloc).getAddend(); in loadObj()
131 Expected<uint64_t> ValueOrErr = Reloc.getSymbol()->getValue(); in loadObj()
136 {Reloc.getOffset(), in loadObj()
137 object::resolveRelocation(Resolver, Reloc, *ValueOrErr, A)}); in loadObj()
[all …]
/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/llvm-project/llvm/lib/ExecutionEngine/Orc/
DJITTargetMachineBuilder.cpp74 case Reloc::Static: in operator <<()
77 case Reloc::PIC_: in operator <<()
80 case Reloc::DynamicNoPIC: in operator <<()
83 case Reloc::ROPI: in operator <<()
86 case Reloc::RWPI: in operator <<()
89 case Reloc::ROPI_RWPI: in operator <<()
/external/llvm-project/llvm/lib/Target/
DTargetMachine.cpp45 return getRelocationModel() == Reloc::PIC_; in isPositionIndependent()
70 Reloc::Model TargetMachine::getRelocationModel() const { return RM; } in getRelocationModel()
97 Reloc::Model RM = getRelocationModel(); in shouldAssumeDSOLocal()
147 if (RM == Reloc::Static) in shouldAssumeDSOLocal()
158 assert(RM != Reloc::DynamicNoPIC); in shouldAssumeDSOLocal()
161 RM == Reloc::Static || M.getPIELevel() != PIELevel::Default; in shouldAssumeDSOLocal()
190 Reloc::Model RM = getRelocationModel(); in getTLSModel()
191 bool IsSharedLibrary = RM == Reloc::PIC_ && !IsPIE; in getTLSModel()
DTargetMachineC.cpp104 LLVMCodeGenOptLevel Level, LLVMRelocMode Reloc, in LLVMCreateTargetMachine() argument
106 Optional<Reloc::Model> RM; in LLVMCreateTargetMachine()
107 switch (Reloc){ in LLVMCreateTargetMachine()
109 RM = Reloc::Static; in LLVMCreateTargetMachine()
112 RM = Reloc::PIC_; in LLVMCreateTargetMachine()
115 RM = Reloc::DynamicNoPIC; in LLVMCreateTargetMachine()
118 RM = Reloc::ROPI; in LLVMCreateTargetMachine()
121 RM = Reloc::RWPI; in LLVMCreateTargetMachine()
124 RM = Reloc::ROPI_RWPI; in LLVMCreateTargetMachine()
/external/swiftshader/third_party/llvm-10.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 getEffectiveSystemZCodeModel(Optional<CodeModel::Model> CM, Reloc::Model RM, in getEffectiveSystemZCodeModel()
142 return RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium; in getEffectiveSystemZCodeModel()
149 Optional<Reloc::Model> RM, in SystemZTargetMachine()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86TargetMachine.cpp158 static Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel()
160 Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
166 return Reloc::Static; in getEffectiveRelocModel()
173 return Reloc::PIC_; in getEffectiveRelocModel()
174 return Reloc::DynamicNoPIC; in getEffectiveRelocModel()
177 return Reloc::PIC_; in getEffectiveRelocModel()
178 return Reloc::Static; in getEffectiveRelocModel()
185 if (*RM == Reloc::DynamicNoPIC) { in getEffectiveRelocModel()
187 return Reloc::PIC_; in getEffectiveRelocModel()
189 return Reloc::Static; in getEffectiveRelocModel()
[all …]
/external/llvm-project/llvm/lib/Target/X86/
DX86TargetMachine.cpp149 static Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel()
151 Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
157 return Reloc::Static; in getEffectiveRelocModel()
164 return Reloc::PIC_; in getEffectiveRelocModel()
165 return Reloc::DynamicNoPIC; in getEffectiveRelocModel()
168 return Reloc::PIC_; in getEffectiveRelocModel()
169 return Reloc::Static; in getEffectiveRelocModel()
176 if (*RM == Reloc::DynamicNoPIC) { in getEffectiveRelocModel()
178 return Reloc::PIC_; in getEffectiveRelocModel()
180 return Reloc::Static; in getEffectiveRelocModel()
[all …]
/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/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/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/llvm-project/llvm/lib/Target/SystemZ/
DSystemZTargetMachine.cpp100 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
103 if (!RM.hasValue() || *RM == Reloc::DynamicNoPIC) in getEffectiveRelocModel()
104 return Reloc::Static; in getEffectiveRelocModel()
138 getEffectiveSystemZCodeModel(Optional<CodeModel::Model> CM, Reloc::Model RM, in getEffectiveSystemZCodeModel()
148 return RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium; in getEffectiveSystemZCodeModel()
155 Optional<Reloc::Model> RM, in SystemZTargetMachine()
/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/swiftshader/third_party/llvm-10.0/llvm/lib/XRay/
DInstrumentationMap.cpp110 for (const object::RelocationRef &Reloc : Section.relocations()) { in loadObj() local
111 if (SupportsRelocation && SupportsRelocation(Reloc.getType())) { in loadObj()
112 auto AddendOrErr = object::ELFRelocationRef(Reloc).getAddend(); in loadObj()
114 uint64_t resolved = Resolver(Reloc, Reloc.getSymbol()->getValue(), A); in loadObj()
115 Relocs.insert({Reloc.getOffset(), resolved}); in loadObj()
116 } else if (Reloc.getType() == RelativeRelocation) { in loadObj()
117 if (auto AddendOrErr = object::ELFRelocationRef(Reloc).getAddend()) in loadObj()
118 Relocs.insert({Reloc.getOffset(), *AddendOrErr}); in loadObj()
/external/llvm-project/llvm/lib/Target/ARM/
DARMTargetMachine.cpp189 static Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel()
190 Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
193 return TT.isOSBinFormatMachO() ? Reloc::PIC_ : Reloc::Static; in getEffectiveRelocModel()
195 if (*RM == Reloc::ROPI || *RM == Reloc::RWPI || *RM == Reloc::ROPI_RWPI) in getEffectiveRelocModel()
200 if (*RM == Reloc::DynamicNoPIC && !TT.isOSDarwin()) in getEffectiveRelocModel()
201 return Reloc::Static; in getEffectiveRelocModel()
211 Optional<Reloc::Model> RM, in ARMBaseTargetMachine()
312 Optional<Reloc::Model> RM, in ARMLETargetMachine()
320 Optional<Reloc::Model> RM, in ARMBETargetMachine()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMTargetMachine.cpp188 static Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel()
189 Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
192 return TT.isOSBinFormatMachO() ? Reloc::PIC_ : Reloc::Static; in getEffectiveRelocModel()
194 if (*RM == Reloc::ROPI || *RM == Reloc::RWPI || *RM == Reloc::ROPI_RWPI) in getEffectiveRelocModel()
199 if (*RM == Reloc::DynamicNoPIC && !TT.isOSDarwin()) in getEffectiveRelocModel()
200 return Reloc::Static; in getEffectiveRelocModel()
210 Optional<Reloc::Model> RM, in ARMBaseTargetMachine()
306 Optional<Reloc::Model> RM, in ARMLETargetMachine()
314 Optional<Reloc::Model> RM, in ARMBETargetMachine()
/external/llvm-project/llvm/lib/Target/MSP430/
DMSP430TargetMachine.cpp29 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel()
31 return Reloc::Static; in getEffectiveRelocModel()
43 Optional<Reloc::Model> RM, in MSP430TargetMachine()

12345678910>>...14