/external/llvm/lib/Target/X86/ |
H A D | X86TargetObjectFile.cpp | 22 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, argument 29 const MCSymbol *Sym = Mang->getSymbol(GV); 37 getExprForDwarfGlobalReference(GV, Mang, MMI, Encoding, Streamer); 41 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, argument 43 return Mang->getSymbol(GV);
|
H A D | X86Subtarget.cpp | 54 ClassifyGlobalReference(const GlobalValue *GV, const TargetMachine &TM) const { argument 57 if (GV->hasDLLImportLinkage()) 63 bool isDecl = GV->hasAvailableExternallyLinkage(); 64 if (GV->isDeclaration() && !GV->isMaterializable()) 77 if (GV->hasDefaultVisibility() && 78 (isDecl || GV->isWeakForLinker())) 84 if (!GV->hasLocalLinkage() && GV->hasDefaultVisibility()) 93 if (GV [all...] |
/external/llvm/lib/Transforms/IPO/ |
H A D | StripDeadPrototypes.cpp | 61 GlobalVariable *GV = I++; local 63 if (GV->isDeclaration() && GV->use_empty()) 64 GV->eraseFromParent();
|
H A D | GlobalDCE.cpp | 48 void GlobalIsNeeded(GlobalValue *GV); 51 bool RemoveUnusedGlobalValue(GlobalValue &GV); 165 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(G)) { 168 if (GV->hasInitializer()) 169 MarkUsedGlobalsAsNeeded(GV->getInitializer()); 183 if (GlobalValue *GV = dyn_cast<GlobalValue>(*U)) 184 GlobalIsNeeded(GV); 191 if (GlobalValue *GV = dyn_cast<GlobalValue>(C)) 192 return GlobalIsNeeded(GV); 207 bool GlobalDCE::RemoveUnusedGlobalValue(GlobalValue &GV) { argument [all...] |
H A D | ConstantMerge.cpp | 47 bool hasKnownAlignment(GlobalVariable *GV) const; 51 unsigned getAlignment(GlobalVariable *GV) const; 73 if (GlobalValue *GV = 75 UsedValues.insert(GV); 90 bool ConstantMerge::hasKnownAlignment(GlobalVariable *GV) const { 91 return TD || GV->getAlignment() != 0; 94 unsigned ConstantMerge::getAlignment(GlobalVariable *GV) const { 96 return TD->getPreferredAlignment(GV); 97 return GV->getAlignment(); 127 GlobalVariable *GV local 169 GlobalVariable *GV = GVI++; local [all...] |
/external/llvm/include/llvm/Target/ |
H A D | TargetLoweringObjectFile.h | 65 virtual bool shouldEmitUsedDirectiveFor(const GlobalValue *GV, argument 67 return GV != 0; 76 static SectionKind getKindForGlobal(const GlobalValue *GV, 82 const MCSection *SectionForGlobal(const GlobalValue *GV, 89 const MCSection *SectionForGlobal(const GlobalValue *GV, argument 92 return SectionForGlobal(GV, getKindForGlobal(GV, TM), Mang, TM); 97 /// implementation of this method can assume that GV->hasSection() is true. 99 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 105 getSpecialCasedSectionGlobals(const GlobalValue *GV, Mangle argument [all...] |
H A D | TargetJITInfo.h | 47 virtual void *emitGlobalValueIndirectSym(const GlobalValue* GV, void *ptr, argument
|
/external/llvm/lib/Target/Hexagon/ |
H A D | HexagonTargetObjectFile.cpp | 51 bool HexagonTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV, argument 56 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage()) 59 // Otherwise, Check if GV should be in sdata/sbss, when normally it would end 60 // up in getKindForGlobal(GV, TM). 61 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM)); 67 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, argument 70 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV); 75 Type *Ty = GV 83 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const argument [all...] |
/external/llvm/lib/Target/MBlaze/ |
H A D | MBlazeTargetObjectFile.cpp | 46 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM) const { argument 47 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage()) 50 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM)); 56 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, argument 59 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV); 72 Type *Ty = GV->getType()->getElementType(); 77 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, argument 83 if (Kind.isBSS() && IsGlobalInSmallSection(GV, T [all...] |
/external/llvm/lib/Target/Mips/ |
H A D | MipsTargetObjectFile.cpp | 49 bool MipsTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV, argument 51 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage()) 54 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM)); 60 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, argument 69 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV); 82 Type *Ty = GV->getType()->getElementType(); 89 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, argument 95 if (Kind.isBSS() && IsGlobalInSmallSection(GV, T [all...] |
/external/llvm/lib/Transforms/Utils/ |
H A D | CloneModule.cpp | 51 GlobalVariable *GV = new GlobalVariable(*New, local 58 GV->copyAttributesFrom(I); 59 VMap[I] = GV; 86 GlobalVariable *GV = cast<GlobalVariable>(VMap[I]); local 88 GV->setInitializer(MapValue(I->getInitializer(), VMap));
|
/external/llvm/include/llvm/ExecutionEngine/ |
H A D | GenericValue.h | 41 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; } argument
|
/external/llvm/lib/Target/ARM/ |
H A D | ARMSubtarget.cpp | 130 /// GVIsIndirectSymbol - true if the GV will be accessed via an indirect symbol. 132 ARMSubtarget::GVIsIndirectSymbol(const GlobalValue *GV, argument 139 bool isDecl = GV->hasAvailableExternallyLinkage(); 140 if (GV->isDeclaration() && !GV->isMaterializable()) 145 if (GV->hasLocalLinkage() || GV->hasHiddenVisibility()) 152 if (!isDecl && !GV->isWeakForLinker()) 157 if (!GV->hasHiddenVisibility()) // Non-hidden $non_lazy_ptr reference. 162 if (isDecl || GV [all...] |
H A D | ARMJITInfo.cpp | 142 void *ARMJITInfo::emitGlobalValueIndirectSym(const GlobalValue *GV, void *Ptr, argument 148 GV, Buffer, sizeof(Buffer), /*Alignment=*/4); 175 << "] for GV '" << F->getName() << "'\n";
|
/external/llvm/lib/Target/PowerPC/ |
H A D | PPCSubtarget.cpp | 131 bool PPCSubtarget::hasLazyResolverStub(const GlobalValue *GV, argument 138 bool isDecl = GV->isDeclaration() && !GV->isMaterializable(); 139 if (GV->hasHiddenVisibility() && !isDecl && !GV->hasCommonLinkage()) 141 return GV->hasWeakLinkage() || GV->hasLinkOnceLinkage() || 142 GV->hasCommonLinkage() || isDecl;
|
H A D | PPCMCInstLower.cpp | 40 const GlobalValue *GV = MO.getGlobal(); local 46 AP.Mang->getNameWithPrefix(Name, GV, isImplicitlyPrivate);
|
/external/llvm/lib/VMCore/ |
H A D | AutoUpgrade.cpp | 87 bool llvm::UpgradeGlobalVariable(GlobalVariable *GV) { argument
|
/external/clang/lib/CodeGen/ |
H A D | TargetInfo.h | 54 virtual void SetTargetAttributes(const Decl *D, llvm::GlobalValue *GV, argument
|
H A D | CGVTT.cpp | 116 llvm::GlobalVariable *GV = local 119 GV->setUnnamedAddr(true); 120 return GV;
|
/external/llvm/examples/Fibonacci/ |
H A D | fibonacci.cpp | 131 GenericValue GV = EE->runFunction(FibF, Args); local 134 outs() << "Result: " << GV.IntVal << "\n";
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
H A D | AsmPrinterDwarf.cpp | 130 void AsmPrinter::EmitReference(const GlobalValue *GV, unsigned Encoding)const{ argument 134 TLOF.getExprForDwarfGlobalReference(GV, Mang, MMI, Encoding, OutStreamer);
|
/external/llvm/tools/llvm-extract/ |
H A D | llvm-extract.cpp | 102 GlobalValue *GV = M->getNamedGlobal(ExtractGlobals[i]); local 103 if (!GV) { 108 GVs.insert(GV); 120 for (Module::global_iterator GV = M->global_begin(), 121 E = M->global_end(); GV != E; GV++) { 122 if (RegEx.match(GV->getName())) { 123 GVs.insert(&*GV); 136 GlobalValue *GV = M->getFunction(ExtractFuncs[i]); local 137 if (!GV) { 171 GlobalValue *GV = GVs[i]; local [all...] |
/external/llvm/lib/CodeGen/ |
H A D | Analysis.cpp | 112 GlobalVariable *GV = dyn_cast<GlobalVariable>(V); local 114 if (GV && GV->getName() == "llvm.eh.catch.all.value") { 115 assert(GV->hasInitializer() && 117 Value *Init = GV->getInitializer(); 118 GV = dyn_cast<GlobalVariable>(Init); 119 if (!GV) V = cast<ConstantPointerNull>(Init); 122 assert((GV || isa<ConstantPointerNull>(V)) && 124 return GV;
|
/external/llvm/lib/Target/ |
H A D | Mangler.cpp | 181 const GlobalValue *GV, 184 if (GV->hasPrivateLinkage() || isImplicitlyPrivate) 186 else if (GV->hasLinkerPrivateLinkage() || GV->hasLinkerPrivateWeakLinkage() || 187 GV->hasLinkerPrivateWeakDefAutoLinkage()) 191 if (GV->hasName()) { 192 getNameWithPrefix(OutName, GV->getName(), PrefixTy); 196 unsigned &ID = AnonGlobalIDs[GV]; 206 if (const Function *F = dyn_cast<Function>(GV)) { 232 MCSymbol *Mangler::getSymbol(const GlobalValue *GV) { argument 180 getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV, bool isImplicitlyPrivate) argument [all...] |
H A D | TargetLoweringObjectFile.cpp | 50 static bool isSuitableForBSS(const GlobalVariable *GV, bool NoZerosInBSS) { argument 51 const Constant *C = GV->getInitializer(); 58 if (GV->isConstant()) 62 if (!GV->getSection().empty()) 101 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, argument 103 return Mang->getSymbol(GV); 117 SectionKind TargetLoweringObjectFile::getKindForGlobal(const GlobalValue *GV, argument 119 assert(!GV->isDeclaration() && !GV->hasAvailableExternallyLinkage() && 125 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); 245 SectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const argument 259 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const argument 292 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, MachineModuleInfo *MMI, unsigned Encoding, MCStreamer &Streamer) const argument [all...] |