Home
last modified time | relevance | path

Searched refs:GV (Results 1 – 5 of 5) sorted by relevance

/frameworks/compile/libbcc/lib/CodeGen/
DCodeEmitter.h182 virtual void *allocIndirectGV(const llvm::GlobalValue *GV,
242 void startGVStub(const llvm::GlobalValue *GV, unsigned StubSize,
252 void *UpdateGlobalMapping(const llvm::GlobalValue *GV, void *Addr);
257 void AddGlobalMapping(const llvm::GlobalValue *GV, void *Addr) { in AddGlobalMapping() argument
258 void *&CurVal = mGlobalAddressMap[GV]; in AddGlobalMapping()
265 void *GetPointerToGlobalIfAvailable(const llvm::GlobalValue *GV) { in GetPointerToGlobalIfAvailable() argument
266 GlobalAddressMapTy::iterator I = mGlobalAddressMap.find(GV); in GetPointerToGlobalIfAvailable()
314 void *GetOrEmitGlobalVariable(llvm::GlobalVariable *GV);
318 void *GetMemoryForGV(llvm::GlobalVariable *GV);
320 void EmitGlobalVariable(llvm::GlobalVariable *GV);
DCodeEmitter.cpp132 void *CodeEmitter::UpdateGlobalMapping(const llvm::GlobalValue *GV, void *Addr) { in UpdateGlobalMapping() argument
135 GlobalAddressMapTy::iterator I = mGlobalAddressMap.find(GV); in UpdateGlobalMapping()
148 void *&CurVal = mGlobalAddressMap[GV]; in UpdateGlobalMapping()
568 const llvm::GlobalVariable *GV = in GetConstantValue() local
571 GetOrEmitGlobalVariable(const_cast<llvm::GlobalVariable*>(GV)); in GetConstantValue()
880 const llvm::GlobalValue *GV = GA->resolveAliasedGlobal(false); in GetPointerToGlobal() local
882 switch (GV->getValueID()) { in GetPointerToGlobal()
887 static_cast<const llvm::Function*>(GV), in GetPointerToGlobal()
894 if (void *P = mGlobalAddressMap[GV]) in GetPointerToGlobal()
897 llvm::GlobalVariable *GVar = (llvm::GlobalVariable*) GV; in GetPointerToGlobal()
[all …]
/frameworks/compile/slang/BitWriter_2_9/
DBitcodeWriter.cpp392 static unsigned getEncodedLinkage(const GlobalValue *GV) { in getEncodedLinkage() argument
393 switch (GV->getLinkage()) { in getEncodedLinkage()
414 static unsigned getEncodedVisibility(const GlobalValue *GV) { in getEncodedVisibility() argument
415 switch (GV->getVisibility()) { in getEncodedVisibility()
448 for (Module::const_global_iterator GV = M->global_begin(),E = M->global_end(); in WriteModuleInfo() local
449 GV != E; ++GV) { in WriteModuleInfo()
450 MaxAlignment = std::max(MaxAlignment, GV->getAlignment()); in WriteModuleInfo()
451 MaxGlobalType = std::max(MaxGlobalType, VE.getTypeID(GV->getType())); in WriteModuleInfo()
453 if (!GV->hasSection()) continue; in WriteModuleInfo()
455 unsigned &Entry = SectionMap[GV->getSection()]; in WriteModuleInfo()
[all …]
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/
DBitcodeReader.h205 virtual bool isMaterializable(const GlobalValue *GV) const;
206 virtual bool isDematerializable(const GlobalValue *GV) const;
207 virtual bool Materialize(GlobalValue *GV, std::string *ErrInfo = 0);
209 virtual void Dematerialize(GlobalValue *GV);
DBitcodeReader.cpp2773 bool BitcodeReader::isMaterializable(const GlobalValue *GV) const { in isMaterializable()
2774 if (const Function *F = dyn_cast<Function>(GV)) { in isMaterializable()
2781 bool BitcodeReader::Materialize(GlobalValue *GV, std::string *ErrInfo) { in Materialize() argument
2782 Function *F = dyn_cast<Function>(GV); in Materialize()
2812 bool BitcodeReader::isDematerializable(const GlobalValue *GV) const { in isDematerializable()
2813 const Function *F = dyn_cast<Function>(GV); in isDematerializable()
2819 void BitcodeReader::Dematerialize(GlobalValue *GV) { in Dematerialize() argument
2820 Function *F = dyn_cast<Function>(GV); in Dematerialize()