/external/llvm/lib/Transforms/IPO/ |
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 = GVI++ [all...] |
StripDeadPrototypes.cpp | 61 GlobalVariable *GV = I++; 63 if (GV->isDeclaration() && GV->use_empty()) 64 GV->eraseFromParent();
|
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) { [all...] |
/external/llvm/include/llvm/ |
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
|
AutoUpgrade.h | 41 bool UpgradeGlobalVariable(GlobalVariable *GV);
|
/external/llvm/lib/Target/Hexagon/ |
HexagonTargetObjectFile.cpp | 51 bool HexagonTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV, 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, 70 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV); 75 Type *Ty = GV->getType()->getElementType() [all...] |
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/ |
MBlazeTargetObjectFile.cpp | 46 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM) const { 47 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage()) 50 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM)); 56 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, 59 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV); 72 Type *Ty = GV->getType()->getElementType(); 77 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 83 if (Kind.isBSS() && IsGlobalInSmallSection(GV, TM, Kind) [all...] |
MBlazeTargetObjectFile.h | 26 bool IsGlobalInSmallSection(const GlobalValue *GV, 30 bool IsGlobalInSmallSection(const GlobalValue *GV, 33 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
|
/external/llvm/include/llvm/Target/ |
TargetLoweringObjectFile.h | 65 virtual bool shouldEmitUsedDirectiveFor(const GlobalValue *GV, 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, 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, Mangler *Mang [all...] |
Mangler.h | 55 MCSymbol *getSymbol(const GlobalValue *GV); 61 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV,
|
/external/llvm/lib/Target/Mips/ |
MipsTargetObjectFile.cpp | 49 bool MipsTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV, 51 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage()) 54 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM)); 60 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, 69 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV); 82 Type *Ty = GV->getType()->getElementType(); 89 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 95 if (Kind.isBSS() && IsGlobalInSmallSection(GV, TM, Kind) [all...] |
MipsTargetObjectFile.h | 27 bool IsGlobalInSmallSection(const GlobalValue *GV, 29 bool IsGlobalInSmallSection(const GlobalValue *GV, 32 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
|
/external/llvm/include/llvm/CodeGen/ |
TargetLoweringObjectFileImpl.h | 49 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 53 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 60 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, 66 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, 88 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 92 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 100 virtual bool shouldEmitUsedDirectiveFor(const GlobalValue *GV, 106 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, 112 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, 123 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind [all...] |
/external/llvm/lib/Target/X86/ |
X86TargetObjectFile.h | 24 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, 31 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
|
X86TargetObjectFile.cpp | 22 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, 29 const MCSymbol *Sym = Mang->getSymbol(GV); 37 getExprForDwarfGlobalReference(GV, Mang, MMI, Encoding, Streamer); 41 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, 43 return Mang->getSymbol(GV);
|
/external/llvm/lib/ExecutionEngine/ |
ExecutionEngine.cpp | 88 GVMemoryBlock(const GlobalVariable *GV) 89 : CallbackVH(const_cast<GlobalVariable*>(GV)) {} 94 static char *Create(const GlobalVariable *GV, const TargetData& TD) { 95 Type *ElTy = GV->getType()->getElementType(); 99 TD.getPreferredAlignment(GV)) 101 new(RawMemory) GVMemoryBlock(GV); 115 char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) { 116 return GVMemoryBlock::Create(GV, *getTargetData()); 159 void ExecutionEngine::addGlobalMapping(const GlobalValue *GV, void *Addr) { 162 DEBUG(dbgs() << "JIT: Map \'" << GV->getName( [all...] |
/external/llvm/include/llvm/ExecutionEngine/ |
GenericValue.h | 41 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; }
|
/external/llvm/lib/VMCore/ |
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/Target/PowerPC/ |
PPCSubtarget.cpp | 131 bool PPCSubtarget::hasLazyResolverStub(const GlobalValue *GV, 138 bool isDecl = GV->isDeclaration() && !GV->isMaterializable(); 139 if (GV->hasHiddenVisibility() && !isDecl && !GV->hasCommonLinkage()) 141 return GV->hasWeakLinkage() || GV->hasLinkOnceLinkage() || 142 GV->hasCommonLinkage() || isDecl;
|
/external/llvm/lib/CodeGen/ |
TargetLoweringObjectFileImpl.cpp | 48 TargetLoweringObjectFileELF::getCFIPersonalitySymbol(const GlobalValue *GV, 56 return Mang->getSymbol(GV); 59 Mang->getSymbol(GV)->getName()); 174 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 176 StringRef SectionName = GV->getSection(); 207 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 219 if ((GV->isWeakForLinker() || EmitUniquedSection) && 225 MCSymbol *Sym = Mang->getSymbol(GV); 229 if (GV->isWeakForLinker()) { 249 TM.getTargetData()->getPreferredAlignment(cast<GlobalVariable>(GV)); [all...] |
/external/llvm/lib/Target/ARM/ |
ARMSubtarget.cpp | 130 /// GVIsIndirectSymbol - true if the GV will be accessed via an indirect symbol. 132 ARMSubtarget::GVIsIndirectSymbol(const GlobalValue *GV, 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->hasCommonLinkage() [all...] |
/external/llvm/lib/Target/ |
TargetLoweringObjectFile.cpp | 50 static bool isSuitableForBSS(const GlobalVariable *GV, bool NoZerosInBSS) { 51 const Constant *C = GV->getInitializer(); 58 if (GV->isConstant()) 62 if (!GV->getSection().empty()) 101 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, 103 return Mang->getSymbol(GV); 117 SectionKind TargetLoweringObjectFile::getKindForGlobal(const GlobalValue *GV, 119 assert(!GV->isDeclaration() && !GV->hasAvailableExternallyLinkage() && 125 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); [all...] |
/external/llvm/lib/Target/XCore/ |
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) { 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) { [all...] |
/external/llvm/tools/llvm-extract/ |
llvm-extract.cpp | 102 GlobalValue *GV = M->getNamedGlobal(ExtractGlobals[i]); 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]); 137 if (!GV) { [all...] |