/external/llvm/lib/Transforms/IPO/ |
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...] |
H A D | StripDeadPrototypes.cpp | 61 GlobalVariable *GV = I++; local 63 if (GV->isDeclaration() && GV->use_empty()) 64 GV->eraseFromParent();
|
H A D | GlobalOpt.cpp | 80 bool ProcessGlobal(GlobalVariable *GV,Module::global_iterator &GVI); 81 bool ProcessInternalGlobal(GlobalVariable *GV,Module::global_iterator &GVI, 148 /// an instruction (e.g. a constant expr or GV initializer). 234 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>( 237 if (StoredVal == GV->getInitializer()) { 241 cast<LoadInst>(StoredVal)->getOperand(0) == GV) { 301 static bool isLeakCheckerRoot(GlobalVariable *GV) { argument 310 if (GV->hasPrivateLinkage()) 314 Types.push_back(cast<PointerType>(GV->getType())->getElementType()); 375 /// CleanupPointerRootUsers - This GV i 379 CleanupPointerRootUsers(GlobalVariable *GV, const TargetLibraryInfo *TLI) argument 578 IsUserOfGlobalSafeForSRA(User *U, GlobalValue *GV) argument 644 GlobalUsersSafeToSRA(GlobalValue *GV) argument 659 SRAGlobal(GlobalVariable *GV, const TargetData &TD) argument 847 AllUsesOfLoadedValueWillTrapIfNull(const GlobalVariable *GV) argument 934 OptimizeAwayTrappingUsesOfLoads(GlobalVariable *GV, Constant *LV, TargetData *TD, TargetLibraryInfo *TLI) argument 1016 OptimizeGlobalAddressOfMalloc(GlobalVariable *GV, CallInst *CI, Type *AllocTy, ConstantInt *NElements, TargetData *TD, TargetLibraryInfo *TLI) argument 1150 ValueIsOnlyUsedLocallyOrStoredToOneGlobal(const Instruction *V, const GlobalVariable *GV, SmallPtrSet<const PHINode*, 8> &PHIs) argument 1199 ReplaceUsesOfMallocWithGlobal(Instruction *Alloc, GlobalVariable *GV) argument 1295 AllGlobalLoadUsesSimpleEnoughForHeapSRA(const GlobalVariable *GV, Instruction *StoredVal) argument 1468 PerformHeapAllocSRoA(GlobalVariable *GV, CallInst *CI, Value *NElems, TargetData *TD, const TargetLibraryInfo *TLI) argument 1656 TryToOptimizeStoreOfMallocToGlobal(GlobalVariable *GV, CallInst *CI, Type *AllocTy, AtomicOrdering Ordering, Module::global_iterator &GVI, TargetData *TD, TargetLibraryInfo *TLI) argument 1757 OptimizeOnceStoredGlobal(GlobalVariable *GV, Value *StoredOnceVal, AtomicOrdering Ordering, Module::global_iterator &GVI, TargetData *TD, TargetLibraryInfo *TLI) argument 1793 TryToShrinkGlobalToBoolean(GlobalVariable *GV, Constant *OtherVal) argument 1891 ProcessGlobal(GlobalVariable *GV, Module::global_iterator &GVI) argument 1928 ProcessInternalGlobal(GlobalVariable *GV, Module::global_iterator &GVI, const SmallPtrSet<const PHINode*, 16> &PHIUsers, const GlobalStatus &GS) argument 2126 GlobalVariable *GV = GVI++; local 2146 GlobalVariable *GV = M.getGlobalVariable("llvm.global_ctors"); local 2179 ParseGlobalCtors(GlobalVariable *GV) argument 2354 GlobalVariable *GV = cast<GlobalVariable>(CE->getOperand(0)); local 2444 GlobalVariable *GV = cast<GlobalVariable>(CE->getOperand(0)); local 2563 GlobalVariable *GV = cast<GlobalVariable>(CE->getOperand(0)); local [all...] |
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...] |
/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...] |
H A D | HexagonTargetObjectFile.h | 26 bool IsGlobalInSmallSection(const GlobalValue *GV, 29 bool IsGlobalInSmallSection(const GlobalValue *GV, 32 const MCSection* SelectSectionForGlobal(const GlobalValue *GV,
|
/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...] |
H A D | MBlazeTargetObjectFile.h | 26 bool IsGlobalInSmallSection(const GlobalValue *GV, 30 bool IsGlobalInSmallSection(const GlobalValue *GV, 33 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
|
/external/llvm/lib/Target/Mips/ |
H A D | MipsTargetObjectFile.cpp | 50 bool MipsTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV, argument 52 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage()) 55 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM)); 61 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, argument 71 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV); 84 Type *Ty = GV->getType()->getElementType(); 91 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, argument 97 if (Kind.isBSS() && IsGlobalInSmallSection(GV, T [all...] |
H A D | MipsTargetObjectFile.h | 27 bool IsGlobalInSmallSection(const GlobalValue *GV, 29 bool IsGlobalInSmallSection(const GlobalValue *GV, 32 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
|
/external/llvm/lib/Target/X86/ |
H A D | X86TargetObjectFile.cpp | 25 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, argument 32 const MCSymbol *Sym = Mang->getSymbol(GV); 40 getExprForDwarfGlobalReference(GV, Mang, MMI, Encoding, Streamer); 44 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, argument 46 return Mang->getSymbol(GV);
|
H A D | X86TargetObjectFile.h | 24 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, 31 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
|
/external/llvm/lib/ExecutionEngine/ |
H A D | ExecutionEngine.cpp | 88 GVMemoryBlock(const GlobalVariable *GV) argument 89 : CallbackVH(const_cast<GlobalVariable*>(GV)) {} 94 static char *Create(const GlobalVariable *GV, const TargetData& TD) { argument 95 Type *ElTy = GV->getType()->getElementType(); 99 TD.getPreferredAlignment(GV)) 101 new(RawMemory) GVMemoryBlock(GV); 115 char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) { argument 116 return GVMemoryBlock::Create(GV, *getTargetData()); 159 void ExecutionEngine::addGlobalMapping(const GlobalValue *GV, void *Addr) { argument 162 DEBUG(dbgs() << "JIT: Map \'" << GV 194 updateGlobalMapping(const GlobalValue *GV, void *Addr) argument 221 getPointerToGlobalIfAvailable(const GlobalValue *GV) argument 300 GlobalVariable *GV = module->getNamedGlobal(Name); local 513 getPointerToGlobal(const GlobalValue *GV) argument 567 GenericValue GV = getConstantValue(Op0); local 573 GenericValue GV = getConstantValue(Op0); local 579 GenericValue GV = getConstantValue(Op0); local 586 GenericValue GV = getConstantValue(Op0); local 592 GenericValue GV = getConstantValue(Op0); local 597 GenericValue GV = getConstantValue(Op0); local 612 GenericValue GV = getConstantValue(Op0); local 628 GenericValue GV = getConstantValue(Op0); local 646 GenericValue GV = getConstantValue(Op0); local 652 GenericValue GV = getConstantValue(Op0); local 661 GenericValue GV = getConstantValue(Op0); local 701 GenericValue GV; local 1022 const GlobalValue *GV = I; local 1087 const GlobalValue *GV = NonCanonicalGlobals[i]; local 1116 EmitGlobalVariable(const GlobalVariable *GV) argument [all...] |
/external/llvm/include/llvm/ |
H A D | GVMaterializer.h | 1 //===-- llvm/GVMaterializer.h - Interface for GV materializers --*- C++ -*-===// 36 /// isMaterializable - True if GV can be materialized from whatever backing 38 virtual bool isMaterializable(const GlobalValue *GV) const = 0; 40 /// isDematerializable - True if GV has been materialized and can be 42 virtual bool isDematerializable(const GlobalValue *GV) const = 0; 48 virtual bool Materialize(GlobalValue *GV, std::string *ErrInfo = 0) = 0; 51 /// GVMaterializer supports it, release the memory for the GV, and set it up
|
H A D | AutoUpgrade.h | 41 bool UpgradeGlobalVariable(GlobalVariable *GV);
|
/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...] |
/external/llvm/include/llvm/CodeGen/ |
H A D | TargetLoweringObjectFileImpl.h | 51 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 55 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 62 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, 68 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, 91 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 95 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 103 virtual bool shouldEmitUsedDirectiveFor(const GlobalValue *GV, 109 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, 115 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, 126 getExplicitSectionGlobal(const GlobalValue *GV, SectionKin [all...] |
/external/llvm/lib/Target/ARM/ |
H A D | ARMSubtarget.cpp | 131 /// GVIsIndirectSymbol - true if the GV will be accessed via an indirect symbol. 133 ARMSubtarget::GVIsIndirectSymbol(const GlobalValue *GV, argument 140 bool isDecl = GV->hasAvailableExternallyLinkage(); 141 if (GV->isDeclaration() && !GV->isMaterializable()) 146 if (GV->hasLocalLinkage() || GV->hasHiddenVisibility()) 153 if (!isDecl && !GV->isWeakForLinker()) 158 if (!GV->hasHiddenVisibility()) // Non-hidden $non_lazy_ptr reference. 163 if (isDecl || GV [all...] |
/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/PowerPC/ |
H A D | PPCSubtarget.cpp | 96 bool PPCSubtarget::hasLazyResolverStub(const GlobalValue *GV, argument 103 bool isDecl = GV->isDeclaration() && !GV->isMaterializable(); 104 if (GV->hasHiddenVisibility() && !isDecl && !GV->hasCommonLinkage()) 106 return GV->hasWeakLinkage() || GV->hasLinkOnceLinkage() || 107 GV->hasCommonLinkage() || isDecl;
|
/external/llvm/lib/VMCore/ |
H A D | IntrinsicInst.cpp | 44 } else if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) { 45 if (GV->hasInitializer()) 46 if (Value *CO = CastOperand(GV->getInitializer()))
|
/external/llvm/lib/CodeGen/ |
H A D | TargetLoweringObjectFileImpl.cpp | 48 TargetLoweringObjectFileELF::getCFIPersonalitySymbol(const GlobalValue *GV, argument 56 return Mang->getSymbol(GV); 59 Mang->getSymbol(GV)->getName()); 175 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, argument 177 StringRef SectionName = GV->getSection(); 208 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, argument 220 if ((GV->isWeakForLinker() || EmitUniquedSection) && 226 MCSymbol *Sym = Mang->getSymbol(GV); 230 if (GV->isWeakForLinker()) { 250 TM.getTargetData()->getPreferredAlignment(cast<GlobalVariable>(GV)); 318 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, MachineModuleInfo *MMI, unsigned Encoding, MCStreamer &Streamer) const argument 466 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const argument 505 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const argument 588 shouldEmitUsedDirectiveFor(const GlobalValue *GV, Mangler *Mang) const argument 607 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, MachineModuleInfo *MMI, unsigned Encoding, MCStreamer &Streamer) const argument 640 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, MachineModuleInfo *MMI) const argument 702 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const argument 723 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const argument [all...] |
/external/llvm/lib/Target/ |
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...] |
/external/llvm/lib/Target/XCore/ |
H A D | XCoreAsmPrinter.cpp | 75 void emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV); 76 virtual void EmitGlobalVariable(const GlobalVariable *GV); 90 void XCoreAsmPrinter::emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV) { argument 91 assert(((GV->hasExternalLinkage() || 92 GV->hasWeakLinkage()) || 93 GV->hasLinkOnceLinkage()) && "Unexpected linkage"); 95 cast<PointerType>(GV->getType())->getElementType())) { 101 if (GV->hasWeakLinkage() || GV->hasLinkOnceLinkage()) { 109 void XCoreAsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) { argument [all...] |
/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...] |