/external/llvm/lib/Target/PowerPC/ |
PPCTargetObjectFile.cpp | 26 const GlobalValue *GV, SectionKind Kind, Mangler &Mang, 43 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); 51 return TargetLoweringObjectFileELF::SelectSectionForGlobal(GV, Kind,
|
PPCTargetObjectFile.h | 25 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
|
/external/llvm/lib/Target/XCore/ |
XCoreAsmPrinter.cpp | 79 void emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV); 80 void EmitGlobalVariable(const GlobalVariable *GV) override; 93 void XCoreAsmPrinter::emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV) { 94 assert( ( GV->hasExternalLinkage() || GV->hasWeakLinkage() || 95 GV->hasLinkOnceLinkage() || GV->hasCommonLinkage() ) && 98 cast<PointerType>(GV->getType())->getElementType())) { 106 if (GV->hasWeakLinkage() || GV->hasLinkOnceLinkage() | [all...] |
XCoreTargetObjectFile.h | 28 getExplicitSectionGlobal(const GlobalValue *GV, 33 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
|
/external/llvm/include/llvm/ExecutionEngine/ |
GenericValue.h | 50 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; }
|
/external/llvm/lib/IR/ |
Mangler.cpp | 79 void Mangler::getNameWithPrefix(raw_ostream &OS, const GlobalValue *GV, 82 if (GV->hasPrivateLinkage()) { 89 if (!GV->hasName()) { 92 unsigned &ID = AnonGlobalIDs[GV]; 101 StringRef Name = GV->getName(); 114 if ((MSFunc = dyn_cast<Function>(GV))) { 140 const GlobalValue *GV, 143 getNameWithPrefix(OS, GV, CannotUsePrivateLabel);
|
Module.cpp | 201 GlobalVariable *GV = dyn_cast_or_null<GlobalVariable>(getNamedValue(Name)); 202 if (!GV) { 212 Type *GVTy = GV->getType(); 215 return ConstantExpr::getBitCast(GV, PTy); 218 return GV; 381 bool Module::isMaterializable(const GlobalValue *GV) const { 383 return Materializer->isMaterializable(GV); 387 bool Module::isDematerializable(const GlobalValue *GV) const { 389 return Materializer->isDematerializable(GV); 393 bool Module::Materialize(GlobalValue *GV, std::string *ErrInfo) [all...] |
/external/llvm/lib/Target/X86/ |
X86TargetObjectFile.h | 23 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding, 30 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler &Mang,
|
X86Subtarget.cpp | 64 ClassifyGlobalReference(const GlobalValue *GV, const TargetMachine &TM) const { 67 if (GV->hasDLLImportStorageClass()) 73 bool isDecl = GV->hasAvailableExternallyLinkage(); 74 if (GV->isDeclaration() && !GV->isMaterializable()) 87 if (GV->hasDefaultVisibility() && 88 (isDecl || GV->isWeakForLinker())) 94 if (!GV->hasLocalLinkage() && GV->hasDefaultVisibility()) 103 if (GV->hasLocalLinkage() || GV->hasHiddenVisibility() [all...] |
X86TargetObjectFile.cpp | 23 const GlobalValue *GV, unsigned Encoding, Mangler &Mang, 30 const MCSymbol *Sym = TM.getSymbol(GV, Mang); 38 GV, Encoding, Mang, TM, MMI, Streamer); 42 const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM, 44 return TM.getSymbol(GV, Mang);
|
X86InstrBuilder.h | 51 const GlobalValue *GV; 55 : BaseType(RegBase), Scale(1), IndexReg(0), Disp(0), GV(nullptr), 76 if (GV) 77 MO.push_back(MachineOperand::CreateGA(GV, Disp, GVOpFlags)); 135 if (AM.GV) 136 MIB.addGlobalAddress(AM.GV, AM.Disp, AM.GVOpFlags);
|
/external/llvm/lib/CodeGen/ |
TargetLoweringObjectFileImpl.cpp | 48 const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM, 53 TM.getSymbol(GV, Mang)->getName()); 55 return TM.getSymbol(GV, Mang); 87 const GlobalValue *GV, unsigned Encoding, Mangler &Mang, 94 MCSymbol *SSym = getSymbolWithGlobalValueBase(GV, ".DW.stub", Mang, TM); 100 MCSymbol *Sym = TM.getSymbol(GV, Mang); 101 StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage()); 110 getTTypeGlobalReference(GV, Encoding, Mang, TM, MMI, Streamer); 195 static const Comdat *getELFComdat(const GlobalValue *GV) { 196 const Comdat *C = GV->getComdat() [all...] |
/external/llvm/lib/Target/Sparc/ |
SparcTargetObjectFile.h | 27 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding,
|
/external/llvm/lib/Transforms/Utils/ |
CtorUtils.cpp | 60 // If we didn't change the number of elements, don't create a new GV. 85 std::vector<Function*> parseGlobalCtors(GlobalVariable *GV) { 86 if (GV->getInitializer()->isNullValue()) 88 ConstantArray *CA = cast<ConstantArray>(GV->getInitializer()); 101 GlobalVariable *GV = M.getGlobalVariable("llvm.global_ctors"); 102 if (!GV) 107 if (!GV->hasUniqueInitializer()) 110 if (isa<ConstantAggregateZero>(GV->getInitializer())) 111 return GV; 112 ConstantArray *CA = cast<ConstantArray>(GV->getInitializer()) [all...] |
ModuleUtils.cpp | 84 GlobalVariable *GV = M.getGlobalVariable(Name); 85 if (!GV || !GV->hasInitializer()) 86 return GV; 88 const ConstantArray *Init = cast<ConstantArray>(GV->getInitializer()); 94 return GV;
|
/external/llvm/lib/Target/NVPTX/ |
NVPTXGenericToNVVM.cpp | 48 Value *getOrInsertCVTA(Module *M, Function *F, GlobalVariable *GV, 84 GlobalVariable *GV = I++; 85 if (GV->getType()->getAddressSpace() == llvm::ADDRESS_SPACE_GENERIC && 86 !llvm::isTexture(*GV) && !llvm::isSurface(*GV) && 87 !llvm::isSampler(*GV) && !GV->getName().startswith("llvm.")) { 89 M, GV->getType()->getElementType(), GV->isConstant(), 90 GV->getLinkage() [all...] |
/external/llvm/lib/Transforms/IPO/ |
GlobalOpt.cpp | 84 bool ProcessGlobal(GlobalVariable *GV,Module::global_iterator &GVI); 85 bool ProcessInternalGlobal(GlobalVariable *GV,Module::global_iterator &GVI, 105 static bool isLeakCheckerRoot(GlobalVariable *GV) { 114 if (GV->hasPrivateLinkage()) 118 Types.push_back(cast<PointerType>(GV->getType())->getElementType()); 179 /// CleanupPointerRootUsers - This GV is a pointer root. Loop over all users 183 static bool CleanupPointerRootUsers(GlobalVariable *GV, 201 for (Value::user_iterator UI = GV->user_begin(), E = GV->user_end(); 240 CleanupPointerRootUsers(GV, TLI) [all...] |
GlobalDCE.cpp | 52 void GlobalIsNeeded(GlobalValue *GV); 55 bool RemoveUnusedGlobalValue(GlobalValue &GV); 209 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(G)) { 212 if (GV->hasInitializer()) 213 MarkUsedGlobalsAsNeeded(GV->getInitializer()); 230 if (GlobalValue *GV = dyn_cast<GlobalValue>(*U)) 231 GlobalIsNeeded(GV); 238 if (GlobalValue *GV = dyn_cast<GlobalValue>(C)) 239 return GlobalIsNeeded(GV); 257 bool GlobalDCE::RemoveUnusedGlobalValue(GlobalValue &GV) { [all...] |
Internalize.cpp | 108 static bool shouldInternalize(const GlobalValue &GV, 111 if (GV.isDeclaration()) 115 if (GV.hasAvailableExternallyLinkage()) 119 if (GV.hasDLLExportStorageClass()) 123 if (GV.hasLocalLinkage()) 127 if (ExternalNames.count(GV.getName()))
|
/external/llvm/include/llvm/IR/ |
Mangler.h | 54 void getNameWithPrefix(raw_ostream &OS, const GlobalValue *GV, 56 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV,
|
/external/llvm/lib/Target/ARM/ |
ARMTargetObjectFile.h | 32 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding,
|
ARMSubtarget.cpp | 364 /// GVIsIndirectSymbol - true if the GV will be accessed via an indirect symbol. 366 ARMSubtarget::GVIsIndirectSymbol(const GlobalValue *GV, 373 bool isDecl = GV->hasAvailableExternallyLinkage(); 374 if (GV->isDeclaration() && !GV->isMaterializable()) 379 if (GV->hasLocalLinkage() || GV->hasHiddenVisibility()) 386 if (!isDecl && !GV->isWeakForLinker()) 391 if (!GV->hasHiddenVisibility()) // Non-hidden $non_lazy_ptr reference. 396 if (isDecl || GV->hasCommonLinkage() [all...] |
/external/llvm/tools/llvm-extract/ |
llvm-extract.cpp | 151 GlobalValue *GV = M->getNamedGlobal(ExtractGlobals[i]); 152 if (!GV) { 157 GVs.insert(GV); 169 for (auto &GV : M->globals()) { 170 if (RegEx.match(GV.getName())) { 171 GVs.insert(&GV); 184 GlobalValue *GV = M->getFunction(ExtractFuncs[i]); 185 if (!GV) { 190 GVs.insert(GV); 219 GlobalValue *GV = GVs[i] [all...] |
/external/clang/lib/CodeGen/ |
CodeGenModule.cpp | 258 const llvm::GlobalValue *GV = getAliasedGlobal(*Alias); 259 if (!GV) { 262 } else if (GV->isDeclaration()) { 289 << GV->getName() << GA->getName(); 476 void CodeGenModule::setGlobalVisibility(llvm::GlobalValue *GV, 479 if (GV->hasLocalLinkage()) { 480 GV->setVisibility(llvm::GlobalValue::DefaultVisibility); 486 if (LV.isVisibilityExplicit() || !GV->hasAvailableExternallyLinkage()) 487 GV->setVisibility(GetLLVMVisibility(LV.getVisibility())); 513 void CodeGenModule::setTLSMode(llvm::GlobalVariable *GV, 1086 auto *gv = new llvm::GlobalVariable(getModule(), Array->getType(), false, local 1099 auto *gv = local [all...] |
/external/llvm/tools/bugpoint/ |
ExtractFunction.cpp | 52 Function* globalInitUsesExternalBA(GlobalVariable* GV) { 53 if (!GV->hasInitializer()) 56 Constant *I = GV->getInitializer(); 231 GlobalVariable *GV = M1->getNamedGlobal(GlobalName); 232 if (!GV || GV->isDeclaration() || GV->hasLocalLinkage() || 233 !GV->use_empty()) return; 236 ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer()); 265 GV->eraseFromParent() [all...] |