26 class ARMTargetMachine;
81 unsigned NumRelocs,
unsigned char* GOTBase);
117 assert(CPI < ConstPoolId2AddrMap.
size());
118 return ConstPoolId2AddrMap[CPI];
125 assert(CPI < ConstPoolId2AddrMap.
size());
126 ConstPoolId2AddrMap[CPI] = Addr;
133 assert(JTI < JumpTableId2AddrMap.
size());
134 return JumpTableId2AddrMap[JTI];
142 assert(JTI < JumpTableId2AddrMap.
size());
143 JumpTableId2AddrMap[JTI] = Addr;
150 assert(I != PCLabelMap.
end());
156 PCLabelMap.
insert(std::make_pair(Id, Addr));
164 if (I != Sym2IndirectSymMap.
end())
172 Sym2IndirectSymMap.
insert(std::make_pair(SymAddr, IndSymAddr));
virtual void replaceMachineCodeForFunction(void *Old, void *New)
void addJumpTableBaseAddr(unsigned JTI, intptr_t Addr)
virtual LazyResolverFn getLazyResolverFunction(JITCompilerFn)
getLazyResolverFunction - Expose the lazy resolver to the JIT.
void *(* JITCompilerFn)(void *)
intptr_t getConstantPoolEntryAddr(unsigned CPI) const
intptr_t getJumpTableBaseAddr(unsigned JTI) const
void addIndirectSymAddr(void *SymAddr, intptr_t IndSymAddr)
unsigned getNumPICLabels() const
virtual void * emitGlobalValueIndirectSym(const GlobalValue *GV, void *ptr, JITCodeEmitter &JCE)
void Initialize(const MachineFunction &MF, bool isPIC)
virtual void * emitFunctionStub(const Function *F, void *Fn, JITCodeEmitter &JCE)
void addConstantPoolEntryAddr(unsigned CPI, intptr_t Addr)
std::pair< iterator, bool > insert(const std::pair< KeyT, ValueT > &KV)
virtual StubLayout getStubLayout()
Returns the maximum size and alignment for a call stub on this target.
virtual bool allocateSeparateGVMemory() const
virtual bool hasCustomConstantPool() const
void addPCLabelAddr(unsigned Id, intptr_t Addr)
addPCLabelAddr - Remember the address of the specified PC label.
virtual bool hasCustomJumpTables() const
virtual void relocate(void *Function, MachineRelocation *MR, unsigned NumRelocs, unsigned char *GOTBase)
unsigned getNumJumpTables() const
intptr_t getIndirectSymAddr(void *Addr) const
intptr_t getPCLabelAddr(unsigned Id) const
iterator find(const KeyT &Val)