HomeSort by relevance Sort by last modified time
    Searched refs:Fixup (Results 1 - 25 of 28) sorted by null

1 2

  /external/llvm/lib/Target/PowerPC/MCTargetDesc/
PPCELFObjectWriter.cpp 24 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
27 virtual void adjustFixupOffset(const MCFixup &Fixup, uint64_t &RelocOffset);
40 const MCFixup &Fixup,
47 switch ((unsigned)Fixup.getKind()) {
58 switch ((unsigned)Fixup.getKind()) {
59 default: llvm_unreachable("invalid fixup kind!");
87 adjustFixupOffset(const MCFixup &Fixup, uint64_t &RelocOffset) {
88 switch ((unsigned)Fixup.getKind()) {
PPCAsmBackend.cpp 28 llvm_unreachable("Unknown fixup kind!");
57 const MCFragment *Fragment, const MCFixup &Fixup,
91 bool fixupNeedsRelaxation(const MCFixup &Fixup,
129 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
155 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
157 Value = adjustFixupValue(Fixup.getKind(), Value);
160 unsigned Offset = Fixup.getOffset();
162 // For each byte of the fragment that the fixup touches, mask in the bits from
163 // the fixup value. The Value has been "split up" into the appropriate
  /external/llvm/lib/Target/MBlaze/MCTargetDesc/
MBlazeELFObjectWriter.cpp 24 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
38 const MCFixup &Fixup,
45 switch ((unsigned)Fixup.getKind()) {
56 switch ((unsigned)Fixup.getKind()) {
57 default: llvm_unreachable("invalid fixup kind!");
MBlazeAsmBackend.cpp 30 default: llvm_unreachable("invalid fixup kind!");
55 bool fixupNeedsRelaxation(const MCFixup &Fixup,
89 bool MBlazeAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup,
124 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
132 void ELFMBlazeAsmBackend::applyFixup(const MCFixup &Fixup, char *Data,
134 unsigned Size = getFixupKindSize(Fixup.getKind());
136 assert(Fixup.getOffset() + Size <= DataSize &&
137 "Invalid fixup offset!");
139 char *data = Data + Fixup.getOffset();
141 default: llvm_unreachable("Cannot fixup unknown value.")
    [all...]
  /external/llvm/include/llvm/MC/
MCELFObjectWriter.h 36 const MCFixup *Fixup;
39 : r_offset(0), Index(0), Type(0), Symbol(0), r_addend(0), Fixup(0) {}
42 const MCSymbol *Sym, uint64_t Addend, const MCFixup &Fixup)
44 r_addend(Addend), Fixup(&Fixup) {}
77 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
84 const MCFixup &Fixup,
86 virtual void adjustFixupOffset(const MCFixup &Fixup,
MCAsmBackend.h 82 /// @name Target Fixup Interfaces
85 /// getNumFixupKinds - Get the number of target specific fixup kinds.
88 /// getFixupKindInfo - Get information on a fixup kind.
91 /// processFixupValue - Target hook to adjust the literal value of a fixup
96 const MCFixup &Fixup, const MCFragment *DF,
102 /// applyFixup - Apply the \arg Value for given \arg Fixup into the provided
103 /// data fragment, at the offset specified by the fixup and following the
104 /// fixup kind as appropriate.
105 virtual void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
120 /// fixup requires the associated instruction to be relaxed
    [all...]
MCMachObjectWriter.h 68 const MCFixup &Fixup,
184 // entry as the linker would, and verifies that the resultant fixup value is
204 const MCFixup &Fixup, MCValue Target,
211 const MCFixup &Fixup, MCValue Target,
215 const MCFragment *Fragment, const MCFixup &Fixup,
MCAssembler.h 136 /// @name Fixup Access
139 void addFixup(MCFixup Fixup) {
141 assert((Fixups.empty() || Fixup.getOffset() > Fixups.back().getOffset()) &&
143 Fixups.push_back(Fixup);
205 /// @name Fixup Access
723 /// Evaluate a fixup to a relocatable expression and the value which should be
724 /// placed into the fixup.
727 /// \param Fixup The fixup to evaluate.
728 /// \param DF The fragment the fixup is inside
    [all...]
MCObjectWriter.h 77 const MCFixup &Fixup, MCValue Target,
  /external/llvm/lib/MC/
MCELFObjectTargetWriter.cpp 31 const MCFixup &Fixup,
37 void MCELFObjectTargetWriter::adjustFixupOffset(const MCFixup &Fixup,
MCAssembler.cpp 247 const MCFixup &Fixup, const MCFragment *DF,
251 if (!Fixup.getValue()->EvaluateAsRelocatable(Target, Layout))
252 getContext().FatalError(Fixup.getLoc(), "expected relocatable expression");
255 Fixup.getKind()).Flags & MCFixupKindInfo::FKF_IsPCRel;
294 bool ShouldAlignPC = Backend.getFixupKindInfo(Fixup.getKind()).Flags &
300 uint32_t Offset = Layout.getFragmentOffset(DF) + Fixup.getOffset();
308 // Let the backend adjust the fixup value if necessary, including whether
310 Backend.processFixupValue(*this, Layout, Fixup, DF, Target, Value,
548 const MCFixup &Fixup) {
549 // Evaluate the fixup
    [all...]
ELFObjectWriter.cpp 125 const MCFixup &Fixup,
132 const MCFixup &Fixup,
134 return TargetObjectWriter->ExplicitRelSym(Asm, Target, F, Fixup, IsPCRel);
144 unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
147 return TargetObjectWriter->GetRelocType(Target, Fixup, IsPCRel,
256 const MCFixup &Fixup,
631 const MCFixup &Fixup,
655 return ExplicitRelSym(Asm, Target, F, Fixup, IsPCRel);
678 return ExplicitRelSym(Asm, Target, F, Fixup, IsPCRel);
684 return ExplicitRelSym(Asm, Target, F, Fixup, IsPCRel)
    [all...]
WinCOFFObjectWriter.cpp 179 const MCFixup &Fixup,
634 const MCFixup &Fixup,
665 int64_t b = Layout.getFragmentOffset(Fragment) + Fixup.getOffset();
692 Reloc.Data.VirtualAddress += Fixup.getOffset();
694 unsigned FixupKind = Fixup.getKind();
749 // Fixup weak external references.
  /external/llvm/lib/Target/ARM/MCTargetDesc/
ARMMachObjectWriter.cpp 33 const MCFixup &Fixup,
41 const MCFixup &Fixup, MCValue Target,
52 const MCFragment *Fragment, const MCFixup &Fixup,
144 const MCFixup &Fixup,
147 uint32_t FixupOffset = Layout.getFragmentOffset(Fragment)+Fixup.getOffset();
148 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind());
156 Asm.getContext().FatalError(Fixup.getLoc(),
170 Asm.getContext().FatalError(Fixup.getLoc(),
196 switch ((unsigned)Fixup.getKind()) {
249 const MCFixup &Fixup,
    [all...]
ARMELFObjectWriter.cpp 28 const MCFixup &Fixup,
37 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
44 const MCFixup &Fixup,
71 const MCFixup &Fixup,
80 RelocType = GetRelocTypeInner(Target, Fixup, IsPCRel);
147 // Need to examine the Fixup when determining whether to
151 const MCFixup &Fixup,
155 return GetRelocTypeInner(Target, Fixup, IsPCRel);
159 const MCFixup &Fixup,
166 switch ((unsigned)Fixup.getKind())
    [all...]
ARMAsmBackend.cpp 108 /// processFixupValue - Target hook to process the literal value of a fixup
111 const MCFixup &Fixup, const MCFragment *DF,
117 if ((unsigned)Fixup.getKind() != ARM::fixup_arm_ldst_pcrel_12 &&
118 (unsigned)Fixup.getKind() != ARM::fixup_t2_ldst_pcrel_12 &&
119 (unsigned)Fixup.getKind() != ARM::fixup_arm_adr_pcrel_12 &&
120 (unsigned)Fixup.getKind() != ARM::fixup_thumb_adr_pcrel_10 &&
121 (unsigned)Fixup.getKind() != ARM::fixup_t2_adr_pcrel_12 &&
122 (unsigned)Fixup.getKind() != ARM::fixup_arm_thumb_cp) {
132 if (A && ((unsigned)Fixup.getKind() == ARM::fixup_arm_thumb_blx ||
133 (unsigned)Fixup.getKind() == ARM::fixup_arm_thumb_bl |
    [all...]
  /external/llvm/lib/Target/X86/MCTargetDesc/
X86MachObjectWriter.cpp 30 const MCFixup &Fixup,
38 const MCFixup &Fixup,
46 const MCFixup &Fixup,
53 const MCFixup &Fixup,
64 const MCFragment *Fragment, const MCFixup &Fixup,
67 RecordX86_64Relocation(Writer, Asm, Layout, Fragment, Fixup, Target,
70 RecordX86Relocation(Writer, Asm, Layout, Fragment, Fixup, Target,
84 llvm_unreachable("invalid fixup kind!");
103 const MCFixup &Fixup,
106 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind())
    [all...]
X86ELFObjectWriter.cpp 27 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
42 const MCFixup &Fixup,
53 switch ((unsigned)Fixup.getKind()) {
54 default: llvm_unreachable("invalid fixup kind!");
101 switch ((unsigned)Fixup.getKind()) {
102 default: llvm_unreachable("invalid fixup kind!");
135 switch ((unsigned)Fixup.getKind()) {
136 default: llvm_unreachable("invalid fixup kind!");
158 switch ((unsigned)Fixup.getKind()) {
159 default: llvm_unreachable("invalid fixup kind!")
    [all...]
X86AsmBackend.cpp 39 default: llvm_unreachable("invalid fixup kind!");
93 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
95 unsigned Size = 1 << getFixupKindLog2Size(Fixup.getKind());
97 assert(Fixup.getOffset() + Size <= DataSize &&
98 "Invalid fixup offset!");
105 "Value does not fit in the Fixup field");
108 Data[Fixup.getOffset() + i] = uint8_t(Value >> (i * 8));
113 bool fixupNeedsRelaxation(const MCFixup &Fixup,
255 bool X86AsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup,
  /external/clang/lib/CodeGen/
CGCleanup.cpp 228 /// fixups than the fixup depth on the innermost normal cleanup, or
230 /// wrong place. We *could* try to shrink fixup depths, but that's
239 assert(BranchFixups.size() >= MinSize && "fixup stack out of order");
278 // Skip this fixup if its destination isn't set.
279 BranchFixup &Fixup = CGF.EHStack.getBranchFixup(I);
280 if (Fixup.Destination == 0) continue;
288 // i.e. where there's an unresolved fixup inside a single cleanup
290 if (Fixup.OptimisticBranchBlock == 0) {
291 new llvm::StoreInst(CGF.Builder.getInt32(Fixup.DestinationIndex),
293 Fixup.InitialBranch)
    [all...]
  /external/llvm/lib/Target/Mips/MCTargetDesc/
MipsAsmBackend.cpp 80 /// ApplyFixup - Apply the \arg Value for given \arg Fixup into the provided
81 /// data fragment, at the offset specified by the fixup and following the
82 /// fixup kind as appropriate.
83 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
85 MCFixupKind Kind = Fixup.getKind();
92 unsigned Offset = Fixup.getOffset();
93 // Number of bytes we need to fixup
182 /// fixup requires the associated instruction to be relaxed.
183 bool fixupNeedsRelaxation(const MCFixup &Fixup,
MipsELFObjectWriter.cpp 41 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
48 const MCFixup &Fixup,
77 const MCFixup &Fixup,
90 const MCFixup &Fixup,
96 unsigned Kind = (unsigned)Fixup.getKind();
100 llvm_unreachable("invalid fixup kind!");
199 MipsGetSymAndOffset(*R->Fixup);
MipsBaseInfo.h 205 MipsGetSymAndOffset(const MCFixup &Fixup) {
206 MCFixupKind FixupKind = Fixup.getKind();
212 const MCExpr *Expr = Fixup.getValue();
  /frameworks/compile/mclinker/include/mcld/MC/
MCBitcodeInterceptor.h 58 const llvm::MCFixup &Fixup,
  /frameworks/compile/mclinker/lib/MC/
MCBitcodeInterceptor.cpp 58 const MCFixup &Fixup,

Completed in 257 milliseconds

1 2