/external/llvm/lib/Transforms/IPO/ |
H A D | ConstantMerge.cpp | 48 bool hasKnownAlignment(GlobalVariable *GV) const; 52 unsigned getAlignment(GlobalVariable *GV) const; 74 GlobalValue *GV = cast<GlobalValue>(Operand); local 75 UsedValues.insert(GV); 91 bool ConstantMerge::hasKnownAlignment(GlobalVariable *GV) const { 92 return TD || GV->getAlignment() != 0; 95 unsigned ConstantMerge::getAlignment(GlobalVariable *GV) const { 97 return TD->getPreferredAlignment(GV); 98 return GV->getAlignment(); 128 GlobalVariable *GV local 170 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();
|
/external/llvm/lib/Target/XCore/ |
H A D | XCoreLowerThreadLocal.cpp | 46 bool lowerGlobal(GlobalVariable *GV); 74 static bool hasNonInstructionUse(GlobalVariable *GV) { argument 75 for (Value::use_iterator UI = GV->use_begin(), E = GV->use_end(); UI != E; 88 bool XCoreLowerThreadLocal::lowerGlobal(GlobalVariable *GV) { argument 89 Module *M = GV->getParent(); 91 if (!GV->isThreadLocal()) 95 if (hasNonInstructionUse(GV) || 96 !GV->getType()->isSized() || isZeroLengthArray(GV 137 GlobalVariable *GV = GVI; local [all...] |
H A D | XCoreAsmPrinter.cpp | 71 void emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV); 72 virtual void EmitGlobalVariable(const GlobalVariable *GV); 81 void XCoreAsmPrinter::emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV) { argument 82 assert(((GV->hasExternalLinkage() || 83 GV->hasWeakLinkage()) || 84 GV->hasLinkOnceLinkage()) && "Unexpected linkage"); 86 cast<PointerType>(GV->getType())->getElementType())) { 95 if (GV->hasWeakLinkage() || GV->hasLinkOnceLinkage()) { 103 void XCoreAsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) { argument [all...] |
/external/llvm/lib/Target/SystemZ/ |
H A D | SystemZSubtarget.cpp | 33 // Return true if GV binds locally under reloc model RM. 34 static bool bindsLocally(const GlobalValue *GV, Reloc::Model RM) { argument 39 return GV->hasLocalLinkage() || !GV->hasDefaultVisibility(); 42 bool SystemZSubtarget::isPC32DBLSymbol(const GlobalValue *GV, argument 47 if (GV->getAlignment() == 1) 52 return bindsLocally(GV, RM);
|
H A D | SystemZConstantPoolValue.cpp | 21 : MachineConstantPoolValue(gv->getType()), GV(gv), Modifier(modifier) {} 24 SystemZConstantPoolValue::Create(const GlobalValue *GV, argument 26 return new SystemZConstantPoolValue(GV, Modifier); 48 if (ZCPV->GV == GV && ZCPV->Modifier == Modifier) 56 ID.AddPointer(GV); 61 O << GV << "@" << int(Modifier);
|
H A D | SystemZConstantPoolValue.h | 30 const GlobalValue *GV; member in class:llvm::SystemZConstantPoolValue 34 SystemZConstantPoolValue(const GlobalValue *GV, 39 Create(const GlobalValue *GV, SystemZCP::SystemZCPModifier Modifier); 49 const GlobalValue *getGlobalValue() const { return GV; }
|
/external/llvm/lib/Target/AArch64/ |
H A D | AArch64Subtarget.cpp | 35 bool AArch64Subtarget::GVIsIndirectSymbol(const GlobalValue *GV, argument 40 return !GV->hasLocalLinkage() && !GV->hasHiddenVisibility();
|
/external/llvm/lib/Target/Hexagon/ |
H A D | HexagonTargetObjectFile.cpp | 57 bool HexagonTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV, argument 62 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage()) 65 // Otherwise, Check if GV should be in sdata/sbss, when normally it would end 66 // up in getKindForGlobal(GV, TM). 67 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM)); 73 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, argument 76 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV); 81 Type *Ty = GV 89 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, 33 const MCSection* SelectSectionForGlobal(const GlobalValue *GV,
|
/external/llvm/lib/Target/Mips/ |
H A D | MipsTargetObjectFile.cpp | 64 bool MipsTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV, argument 66 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage()) 69 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM)); 75 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, argument 85 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV); 98 Type *Ty = GV->getType()->getElementType(); 105 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, argument 111 if (Kind.isBSS() && IsGlobalInSmallSection(GV, T [all...] |
H A D | MipsTargetObjectFile.h | 28 bool IsGlobalInSmallSection(const GlobalValue *GV, 30 bool IsGlobalInSmallSection(const GlobalValue *GV, 33 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
|
/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
|
/external/llvm/include/llvm/Target/ |
H A D | TargetLoweringObjectFile.h | 67 virtual bool shouldEmitUsedDirectiveFor(const GlobalValue *GV, argument 69 return GV != 0; 78 static SectionKind getKindForGlobal(const GlobalValue *GV, 84 const MCSection *SectionForGlobal(const GlobalValue *GV, 91 const MCSection *SectionForGlobal(const GlobalValue *GV, argument 94 return SectionForGlobal(GV, getKindForGlobal(GV, TM), Mang, TM); 99 /// implementation of this method can assume that GV->hasSection() is true. 101 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 107 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, 61 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang, 67 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, 90 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 94 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 102 virtual bool shouldEmitUsedDirectiveFor(const GlobalValue *GV, 108 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang, 114 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, 125 getExplicitSectionGlobal(const GlobalValue *GV, SectionKin [all...] |
/external/llvm/lib/ExecutionEngine/ |
H A D | ExecutionEngine.cpp | 89 GVMemoryBlock(const GlobalVariable *GV) argument 90 : CallbackVH(const_cast<GlobalVariable*>(GV)) {} 95 static char *Create(const GlobalVariable *GV, const DataLayout& TD) { argument 96 Type *ElTy = GV->getType()->getElementType(); 100 TD.getPreferredAlignment(GV)) 102 new(RawMemory) GVMemoryBlock(GV); 116 char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) { argument 117 return GVMemoryBlock::Create(GV, *getDataLayout()); 160 void ExecutionEngine::addGlobalMapping(const GlobalValue *GV, void *Addr) { argument 163 DEBUG(dbgs() << "JIT: Map \'" << GV 195 updateGlobalMapping(const GlobalValue *GV, void *Addr) argument 222 getPointerToGlobalIfAvailable(const GlobalValue *GV) argument 301 GlobalVariable *GV = module->getNamedGlobal(Name); local 524 getPointerToGlobal(const GlobalValue *GV) argument 589 GenericValue GV = getConstantValue(Op0); local 595 GenericValue GV = getConstantValue(Op0); local 601 GenericValue GV = getConstantValue(Op0); local 608 GenericValue GV = getConstantValue(Op0); local 614 GenericValue GV = getConstantValue(Op0); local 619 GenericValue GV = getConstantValue(Op0); local 634 GenericValue GV = getConstantValue(Op0); local 650 GenericValue GV = getConstantValue(Op0); local 668 GenericValue GV = getConstantValue(Op0); local 677 GenericValue GV = getConstantValue(Op0); local 685 GenericValue GV = getConstantValue(Op0); local 725 GenericValue GV; local 1186 const GlobalValue *GV = I; local 1251 const GlobalValue *GV = NonCanonicalGlobals[i]; local 1280 EmitGlobalVariable(const GlobalVariable *GV) argument [all...] |
/external/llvm/lib/Target/X86/ |
H A D | X86TargetObjectFile.cpp | 21 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang, argument 28 const MCSymbol *Sym = Mang->getSymbol(GV); 36 getTTypeGlobalReference(GV, Mang, MMI, Encoding, Streamer); 40 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, argument 42 return Mang->getSymbol(GV);
|
H A D | X86TargetObjectFile.h | 24 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang, 31 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
|
/external/llvm/lib/IR/ |
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/Target/PowerPC/ |
H A D | PPCTargetObjectFile.cpp | 26 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, argument 30 TargetLoweringObjectFileELF::SelectSectionForGlobal(GV, Kind, Mang, TM); 49 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV);
|
H A D | PPCSubtarget.cpp | 148 bool PPCSubtarget::hasLazyResolverStub(const GlobalValue *GV, argument 155 bool isDecl = GV->isDeclaration() && !GV->isMaterializable(); 156 if (GV->hasHiddenVisibility() && !isDecl && !GV->hasCommonLinkage()) 158 return GV->hasWeakLinkage() || GV->hasLinkOnceLinkage() || 159 GV->hasCommonLinkage() || isDecl;
|
/external/llvm/lib/Transforms/Utils/ |
H A D | ModuleUtils.cpp | 71 GlobalVariable *GV = M.getGlobalVariable(Name); local 72 if (!GV || !GV->hasInitializer()) 73 return GV; 75 const ConstantArray *Init = cast<ConstantArray>(GV->getInitializer()); 81 return GV;
|
/external/llvm/include/llvm/ExecutionEngine/ |
H A D | GenericValue.h | 50 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; } argument
|
/external/llvm/lib/Target/ARM/ |
H A D | ARMTargetObjectFile.cpp | 45 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang, argument 50 return MCSymbolRefExpr::Create(Mang->getSymbol(GV),
|
/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 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang, MachineModuleInfo *MMI, unsigned Encoding, MCStreamer &Streamer) const argument [all...] |