Searched defs:Reloc (Results 1 - 25 of 27) sorted by relevance

12

/external/swiftshader/third_party/LLVM/include/llvm/Support/
H A DCodeGen.h21 namespace Reloc { namespace in namespace:llvm
H A DTargetRegistry.h75 Reloc::Model RM,
87 Reloc::Model RM,
277 MCCodeGenInfo *createMCCodeGenInfo(StringRef Triple, Reloc::Model RM,
333 Reloc::Model RM = Reloc::Default,
844 Reloc::Model RM, CodeModel::Model CM) {
1013 Reloc::Model RM,
331 createTargetMachine(StringRef Triple, StringRef CPU, StringRef Features, Reloc::Model RM = Reloc::Default, CodeModel::Model CM = CodeModel::Default) const argument
/external/llvm/lib/DebugInfo/DWARF/
H A DDWARFAcceleratorTable.cpp107 RelocAddrMap::const_iterator Reloc = Relocs.find(DataOffset-4); local
108 if (Reloc != Relocs.end())
109 StringOffset += Reloc->second.second;
/external/llvm/include/llvm/Support/
H A DCodeGen.h21 namespace Reloc { namespace in namespace:llvm
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/JIT/
H A DJIT.h103 Reloc::Model RM = Reloc::Default,
97 create(Module *M, std::string *Err, JITMemoryManager *JMM, CodeGenOpt::Level OptLevel = CodeGenOpt::Default, bool GVsWithCode = true, Reloc::Model RM = Reloc::Default, CodeModel::Model CMM = CodeModel::JITDefault) argument
/external/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonAsmBackend.cpp413 uint32_t Reloc; variable
436 Reloc = (((Value >> 2) & 0x1f) << 8) | // Value 6-2 = Target 12-8
445 Reloc = (((Value >> 7) & 0x3) << 20) | // Value 8-7 = Target 21-20
456 Reloc = (((Value >> 12) & 0x1) << 21) | // Value 12 = Target 21
466 Reloc = (((Value >> 13) & 0x3) << 22) | // Value 14-13 = Target 23-22
477 Reloc = (((Value >> 13) & 0x1ff) << 16) | // Value 21-13 = Target 24-16
483 Reloc = (((Value >> 14) & 0xfff) << 16) | // Value 25-14 = Target 27-16
492 Reloc = Value;
506 ": Reloc=0x"; dbgs().write_hex(Reloc););
[all...]
/external/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsELFObjectWriter.cpp134 static unsigned getMatchingLoType(const ELFRelocationEntry &Reloc) { argument
135 unsigned Type = Reloc.Type;
143 if (Reloc.OriginalSymbol->getBinding() != ELF::STB_LOCAL)
428 std::back_inserter(Sorted), [](const ELFRelocationEntry &Reloc) {
429 return getMatchingLoType(Reloc) != ELF::R_MIPS_NONE;
/external/llvm/lib/Target/
H A DTargetMachineC.cpp106 LLVMCodeGenOptLevel Level, LLVMRelocMode Reloc,
108 Optional<Reloc::Model> RM;
109 switch (Reloc){
111 RM = Reloc::Static;
114 RM = Reloc::PIC_;
117 RM = Reloc::DynamicNoPIC;
104 LLVMCreateTargetMachine(LLVMTargetRef T, const char* Triple, const char* CPU, const char* Features, LLVMCodeGenOptLevel Level, LLVMRelocMode Reloc, LLVMCodeModel CodeModel) argument
/external/swiftshader/third_party/LLVM/lib/Target/Mips/
H A DMipsCodeEmitter.cpp71 IsPIC(TM.getRelocationModel() == Reloc::PIC_) {
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, argument
206 MCE.addRelocation(MachineRelocation::getGV(MCE.getCurrentPCOffset(), Reloc,
211 emitExternalSymbolAddress(const char *ES, unsigned Reloc) const {
213 Reloc, E
[all...]
/external/swiftshader/third_party/LLVM/lib/Target/X86/
H A DX86CodeEmitter.cpp58 IsPIC(TM.getRelocationModel() == Reloc::PIC_) {}
63 IsPIC(TM.getRelocationModel() == Reloc::PIC_) {}
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_;
261 unsigned Reloc,
266 if (Reloc == X86::reloc_picrel_word)
268 else if (Reloc
260 emitGlobalAddress(const GlobalValue *GV, unsigned Reloc, intptr_t Disp , intptr_t PCAdj , bool Indirect ) argument
288 emitExternalSymbolAddress(const char *ES, unsigned Reloc) argument
310 emitConstPoolAddress(unsigned CPI, unsigned Reloc, intptr_t Disp , intptr_t PCAdj ) argument
331 emitJumpTableAddress(unsigned JTI, unsigned Reloc, intptr_t PCAdj ) argument
[all...]
/external/swiftshader/third_party/subzero/src/
H A DIceInstMIPS32.cpp167 emitRelocOp(Str, Reloc);
753 if (Reloc == RO_No) {
756 Asm->addiu(getDest(), getSrc(0), getSrc(1), Reloc);
902 Asm->lui(getDest(), getSrc(0), Reloc);
908 Asm->ldc1(getDest(), Mem->getBase(), Mem->getOffset(), Reloc); local
930 Asm->lwc1(getDest(), Mem->getBase(), Mem->getOffset(), Reloc); local
1186 Asm->sdc1(getSrc(0), Mem->getBase(), Mem->getOffset(), Reloc); local
1200 Asm->swc1(getSrc(0), Mem->getBase(), Mem->getOffset(), Reloc); local
H A DIceASanInstrumentation.cpp367 if (auto *Reloc = llvm::dyn_cast<ConstantRelocatable>(Src)) {
369 Instr->getDest(), instrumentReloc(Reloc));
383 if (auto *Reloc = llvm::dyn_cast<ConstantRelocatable>(Data)) {
385 Context.getNode()->getCfg(), instrumentReloc(Reloc), Instr->getAddr());
397 ASanInstrumentation::instrumentReloc(ConstantRelocatable *Reloc) { argument
398 std::string DataName = Reloc->getName().toString();
402 Ctx, Reloc->getType(),
403 RelocatableTuple(Reloc->getOffset(), RelocOffsetArray(0),
405 Reloc->getEmitString()));
407 return Reloc;
452 auto *Reloc = llvm::dyn_cast<ConstantRelocatable>(Op); local
[all...]
H A DIceELFObjectWriter.cpp436 const auto *Reloc = local
440 NewFixup.set_kind(Reloc->hasFixup() ? Reloc->getFixup()
444 Reloc->getOffset(), Reloc->getDeclaration()->getName()));
447 Reloc->getOffset());
H A DIceTargetLowering.cpp1084 const auto *Reloc = local
1087 Str << Reloc->getDeclaration()->getName();
1088 if (Reloc->hasFixup()) {
1092 if (RelocOffsetT Offset = Reloc->getOffset()) {
H A DIceAssemblerMIPS32.cpp234 const RelocOp Reloc,
241 emitFixup(createMIPS32Fixup(Reloc, OpRel));
402 const Operand *OpImm, const RelocOp Reloc) {
404 emitRtRsImm16Rel(Opcode, OpRt, OpRs, OpImm, Reloc, "addiu");
587 MIPS32Fixup *AssemblerMIPS32::createMIPS32Fixup(const RelocOp Reloc, argument
590 switch (Reloc) {
601 llvm::report_fatal_error("Fixup: Invalid Reloc type");
666 const RelocOp Reloc) {
672 emitFixup(createMIPS32Fixup(Reloc, OpRel));
685 const Operand *OpOff, const RelocOp Reloc) {
231 emitRtRsImm16Rel(IValueT Opcode, const Operand *OpRt, const Operand *OpRs, const Operand *OpImm, const RelocOp Reloc, const char *InsnName) argument
401 addiu(const Operand *OpRt, const Operand *OpRs, const Operand *OpImm, const RelocOp Reloc) argument
665 lui(const Operand *OpRt, const Operand *OpImm, const RelocOp Reloc) argument
684 ldc1(const Operand *OpRt, const Operand *OpBase, const Operand *OpOff, const RelocOp Reloc) argument
744 lwc1(const Operand *OpRt, const Operand *OpBase, const Operand *OpOff, const RelocOp Reloc) argument
1068 sdc1(const Operand *OpRt, const Operand *OpBase, const Operand *OpOff, const RelocOp Reloc) argument
1122 swc1(const Operand *OpRt, const Operand *OpBase, const Operand *OpOff, const RelocOp Reloc) argument
[all...]
H A DIceInstMIPS32.h34 inline void emitRelocOp(Ostream &Str, RelocOp Reloc) { argument
35 switch (Reloc) {
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; member in class:Ice::MIPS32::InstMIPS32UnaryopGPR
596 OperandMIPS32Mem *Mem, RelocOp Reloc = RO_No) {
598 InstMIPS32Load(Func, Value, Mem, Reloc);
672 const RelocOp Reloc; member in class:Ice::MIPS32::InstMIPS32Load
763 const RelocOp Reloc; member in class:Ice::MIPS32::InstMIPS32Store
1054 create(Cfg *Func, Variable *Dest, Operand *Src0, Operand *Src1, RelocOp Reloc) argument
1137 const RelocOp Reloc; member in class:Ice::MIPS32::InstMIPS32Imm16
[all...]
H A DIceTargetLoweringMIPS32.h234 void _addiu(Variable *Dest, Variable *Src0, Operand *Src1, RelocOp Reloc) { argument
235 Context.insert<InstMIPS32Addiu>(Dest, Src0, Src1, Reloc);
338 void _ldc1(Variable *Value, OperandMIPS32Mem *Mem, RelocOp Reloc = RO_No) {
339 Context.insert<InstMIPS32Ldc1>(Value, Mem, Reloc);
350 void _lwc1(Variable *Value, OperandMIPS32Mem *Mem, RelocOp Reloc = RO_No) {
351 Context.insert<InstMIPS32Lwc1>(Value, Mem, Reloc);
354 void _lui(Variable *Dest, Operand *Src, RelocOp Reloc = RO_No) {
355 Context.insert<InstMIPS32Lui>(Dest, Src, Reloc);
624 void lwc1(Variable *Dest, OperandMIPS32Mem *Mem, RelocOp Reloc = RO_No);
625 void ldc1(Variable *Dest, OperandMIPS32Mem *Mem, RelocOp Reloc
[all...]
/external/llvm/lib/MC/
H A DWinCOFFObjectWriter.cpp723 COFFRelocation Reloc; local
725 Reloc.Data.SymbolTableIndex = 0;
726 Reloc.Data.VirtualAddress = Layout.getFragmentOffset(Fragment);
734 Reloc.Symb = SectionMap[TargetSection]->Symbol;
740 Reloc.Symb = SymbolMap[&A];
743 ++Reloc.Symb->Relocations;
745 Reloc.Data.VirtualAddress += Fixup.getOffset();
746 Reloc.Data.Type = TargetObjectWriter->getRelocType(
752 Reloc.Data.Type == COFF::IMAGE_REL_AMD64_REL32) ||
754 Reloc
[all...]
/external/llvm/tools/llvm-readobj/
H A DMachODumper.cpp56 void printRelocation(const RelocationRef &Reloc);
58 void printRelocation(const MachOObjectFile *Obj, const RelocationRef &Reloc);
472 for (const RelocationRef &Reloc : Section.relocations())
473 printRelocation(Reloc);
507 for (const RelocationRef &Reloc : Section.relocations()) {
514 printRelocation(Reloc);
524 void MachODumper::printRelocation(const RelocationRef &Reloc) { argument
525 return printRelocation(Obj, Reloc);
529 const RelocationRef &Reloc) {
530 uint64_t Offset = Reloc
528 printRelocation(const MachOObjectFile *Obj, const RelocationRef &Reloc) argument
[all...]
H A DCOFFDumper.cpp85 void printRelocation(const SectionRef &Section, const RelocationRef &Reloc,
537 for (const RelocationRef &Reloc : S.relocations())
538 RelocMap[Section].push_back(Reloc);
1128 for (const RelocationRef &Reloc : Sec.relocations())
1129 printRelocation(Sec, Reloc);
1162 for (const RelocationRef &Reloc : Section.relocations()) {
1169 printRelocation(Section, Reloc);
1180 const RelocationRef &Reloc, uint64_t Bias) {
1181 uint64_t Offset = Reloc.getOffset() - Bias;
1182 uint64_t RelocType = Reloc
1179 printRelocation(const SectionRef &Section, const RelocationRef &Reloc, uint64_t Bias) argument
[all...]
/external/swiftshader/third_party/LLVM/lib/MC/
H A DWinCOFFObjectWriter.cpp681 COFFRelocation Reloc; local
683 Reloc.Data.SymbolTableIndex = 0;
684 Reloc.Data.VirtualAddress = Layout.getFragmentOffset(Fragment);
688 Reloc.Symb = coff_symbol->Section->Symbol;
692 Reloc.Symb = coff_symbol;
694 ++Reloc.Symb->Relocations;
696 Reloc.Data.VirtualAddress += Fixup.getOffset();
707 Reloc.Data.Type = Is64Bit ? COFF::IMAGE_REL_AMD64_REL32
715 Reloc.Data.Type = Is64Bit ? COFF::IMAGE_REL_AMD64_ADDR32
720 Reloc
[all...]
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
H A DARMCodeEmitter.cpp72 IsPIC(TM.getRelocationModel() == Reloc::PIC_), IsThumb(false) {}
337 unsigned Reloc);
345 void emitGlobalAddress(const GlobalValue *GV, unsigned Reloc,
348 void emitExternalSymbolAddress(const char *ES, unsigned Reloc) const;
349 void emitConstPoolAddress(unsigned CPI, unsigned Reloc) const;
350 void emitJumpTableAddress(unsigned JTIndex, unsigned Reloc) const;
351 void emitMachineBasicBlock(MachineBasicBlock *BB, unsigned Reloc,
366 assert((MF.getTarget().getRelocationModel() != Reloc::Default ||
367 MF.getTarget().getRelocationModel() != Reloc::Static) &&
376 IsPIC = TM.getRelocationModel() == Reloc
414 getMovi32Value(const MachineInstr &MI, const MachineOperand &MO, unsigned Reloc) argument
452 unsigned Reloc = ((MCID.TSFlags & ARMII::FormMask) == ARMII::VFPLdStFrm) local
466 emitGlobalAddress(const GlobalValue *GV, unsigned Reloc, bool MayNeedFarStub, bool Indirect, intptr_t ACPV) const argument
507 emitMachineBasicBlock(MachineBasicBlock *BB, unsigned Reloc, intptr_t JTBase) const argument
[all...]
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.cpp1436 RelocationEntry &Reloc = I->second; local
1438 RelType == getMatchingLoRelocation(Reloc.RelType) &&
1439 SectionID == Reloc.SectionID) {
1440 Reloc.Addend += Addend;
1442 addRelocationForSymbol(Reloc, Value.SymbolName);
1444 addRelocationForSection(Reloc, Value.SectionID);
/external/llvm/lib/Object/
H A DCOFFObjectFile.cpp1101 COFFObjectFile::getCOFFRelocation(const RelocationRef &Reloc) const {
1102 return toRel(Reloc.getRawDataRefImpl());
1121 const coff_relocation *Reloc = toRel(Rel); local
1125 switch (Reloc->Type) {
1148 switch (Reloc->Type) {
1169 switch (Reloc->Type) {
/external/llvm/lib/Transforms/Scalar/
H A DRewriteStatepointsForGC.cpp1199 CallInst *Reloc = Builder.CreateCall( local
1204 Reloc->setCallingConv(CallingConv::Cold);

Completed in 3151 milliseconds

12