Searched refs:GV (Results 1 - 25 of 209) sorted by relevance

123456789

/freebsd-10.1-release/contrib/llvm/lib/Transforms/IPO/
H A DConstantMerge.cpp48 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 {
96 unsigned Align = GV->getAlignment();
100 return TD->getPreferredAlignment(GV);
131 GlobalVariable *GV local
173 GlobalVariable *GV = GVI++; local
[all...]
H A DStripDeadPrototypes.cpp61 GlobalVariable *GV = I++; local
63 if (GV->isDeclaration() && GV->use_empty())
64 GV->eraseFromParent();
H A DExtractGV.cpp24 /// Make sure GV is visible from both modules. Delete is true if it is
26 /// This also makes sure GV cannot be dropped so that references from
28 static void makeVisible(GlobalValue &GV, bool Delete) { argument
29 bool Local = GV.hasLocalLinkage();
31 GV.setVisibility(GlobalValue::HiddenVisibility);
34 GV.setLinkage(GlobalValue::ExternalLinkage);
38 if (!GV.hasLinkOnceLinkage()) {
39 assert(!GV.isDiscardableIfUnused());
43 // Map linkonce* to weak* so that llvm doesn't drop this GV.
44 switch(GV
[all...]
/freebsd-10.1-release/contrib/llvm/lib/Target/SystemZ/
H A DSystemZSubtarget.cpp42 // Return true if GV binds locally under reloc model RM.
43 static bool bindsLocally(const GlobalValue *GV, Reloc::Model RM) { argument
48 return GV->hasLocalLinkage() || !GV->hasDefaultVisibility();
51 bool SystemZSubtarget::isPC32DBLSymbol(const GlobalValue *GV, argument
56 if (GV->getAlignment() == 1)
61 return bindsLocally(GV, RM);
H A DSystemZConstantPoolValue.cpp21 : 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 DSystemZConstantPoolValue.h30 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; }
/freebsd-10.1-release/contrib/llvm/include/llvm/
H A DGVMaterializer.h1 //===-- 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;
46 virtual error_code Materialize(GlobalValue *GV) = 0;
49 /// GVMaterializer supports it, release the memory for the GV, and set it up
/freebsd-10.1-release/contrib/llvm/lib/Target/Hexagon/
H A DHexagonTargetObjectFile.cpp57 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 DHexagonTargetObjectFile.h26 bool IsGlobalInSmallSection(const GlobalValue *GV,
29 bool IsGlobalInSmallSection(const GlobalValue *GV,
33 const MCSection* SelectSectionForGlobal(const GlobalValue *GV,
/freebsd-10.1-release/contrib/llvm/lib/Target/Mips/
H A DMipsTargetObjectFile.cpp64 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 DMipsTargetObjectFile.h28 bool IsGlobalInSmallSection(const GlobalValue *GV,
30 bool IsGlobalInSmallSection(const GlobalValue *GV,
33 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
/freebsd-10.1-release/contrib/llvm/lib/Target/Sparc/
H A DSparcTargetObjectFile.cpp20 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang, argument
27 //MCSymbol *SSym = getSymbolWithGlobalValueBase(*Mang, GV, ".DW.stub");
29 Mang->getNameWithPrefix(NameStr, GV, true);
37 MCSymbol *Sym = getSymbol(*Mang, GV);
38 StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage());
47 getTTypeGlobalReference(GV, Mang, MMI, Encoding, Streamer);
/freebsd-10.1-release/contrib/llvm/include/llvm/Target/
H A DTargetLoweringObjectFile.h67 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...]
/freebsd-10.1-release/contrib/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp49 bool lowerGlobal(GlobalVariable *GV);
163 static bool rewriteNonInstructionUses(GlobalVariable *GV, Pass *P) { argument
165 for (Value::use_iterator I = GV->use_begin(), E = GV->use_end(); I != E; ++I)
182 bool XCoreLowerThreadLocal::lowerGlobal(GlobalVariable *GV) { argument
183 Module *M = GV->getParent();
185 if (!GV->isThreadLocal())
189 if (!rewriteNonInstructionUses(GV, this) ||
190 !GV->getType()->isSized() || isZeroLengthArray(GV
233 GlobalVariable *GV = GVI; local
[all...]
H A DXCoreAsmPrinter.cpp72 void emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV);
73 virtual void EmitGlobalVariable(const GlobalVariable *GV);
82 void XCoreAsmPrinter::emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV) { argument
83 assert(((GV->hasExternalLinkage() ||
84 GV->hasWeakLinkage()) ||
85 GV->hasLinkOnceLinkage()) && "Unexpected linkage");
87 cast<PointerType>(GV->getType())->getElementType())) {
95 if (GV->hasWeakLinkage() || GV->hasLinkOnceLinkage()) {
102 void XCoreAsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) { argument
[all...]
/freebsd-10.1-release/contrib/llvm/include/llvm/CodeGen/
H A DTargetLoweringObjectFileImpl.h51 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...]
/freebsd-10.1-release/contrib/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp83 GVMemoryBlock(const GlobalVariable *GV) argument
84 : CallbackVH(const_cast<GlobalVariable*>(GV)) {}
89 static char *Create(const GlobalVariable *GV, const DataLayout& TD) { argument
90 Type *ElTy = GV->getType()->getElementType();
94 TD.getPreferredAlignment(GV))
96 new(RawMemory) GVMemoryBlock(GV);
110 char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) { argument
111 return GVMemoryBlock::Create(GV, *getDataLayout());
154 void ExecutionEngine::addGlobalMapping(const GlobalValue *GV, void *Addr) { argument
157 DEBUG(dbgs() << "JIT: Map \'" << GV
189 updateGlobalMapping(const GlobalValue *GV, void *Addr) argument
216 getPointerToGlobalIfAvailable(const GlobalValue *GV) argument
295 GlobalVariable *GV = module->getNamedGlobal(Name); local
518 getPointerToGlobal(const GlobalValue *GV) argument
601 GenericValue GV = getConstantValue(Op0); local
607 GenericValue GV = getConstantValue(Op0); local
613 GenericValue GV = getConstantValue(Op0); local
620 GenericValue GV = getConstantValue(Op0); local
626 GenericValue GV = getConstantValue(Op0); local
631 GenericValue GV = getConstantValue(Op0); local
646 GenericValue GV = getConstantValue(Op0); local
662 GenericValue GV = getConstantValue(Op0); local
680 GenericValue GV = getConstantValue(Op0); local
689 GenericValue GV = getConstantValue(Op0); local
697 GenericValue GV = getConstantValue(Op0); local
737 GenericValue GV; local
1198 const GlobalValue *GV = I; local
1263 const GlobalValue *GV = NonCanonicalGlobals[i]; local
1292 EmitGlobalVariable(const GlobalVariable *GV) argument
[all...]
/freebsd-10.1-release/contrib/llvm/lib/Target/X86/
H A DX86TargetObjectFile.cpp21 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang, argument
28 const MCSymbol *Sym = getSymbol(*Mang, GV);
36 getTTypeGlobalReference(GV, Mang, MMI, Encoding, Streamer);
40 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, argument
42 return getSymbol(*Mang, GV);
/freebsd-10.1-release/contrib/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp50 static bool isSuitableForBSS(const GlobalVariable *GV, bool NoZerosInBSS) { argument
51 const Constant *C = GV->getInitializer();
58 if (GV->isConstant())
62 if (!GV->getSection().empty())
103 const GlobalValue *GV) const {
105 M.getNameWithPrefix(NameStr, GV, false);
111 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, argument
113 return getSymbol(*Mang, GV);
127 SectionKind TargetLoweringObjectFile::getKindForGlobal(const GlobalValue *GV, argument
129 assert(!GV
255 SectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const argument
269 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const argument
302 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang, MachineModuleInfo *MMI, unsigned Encoding, MCStreamer &Streamer) const argument
[all...]
/freebsd-10.1-release/contrib/llvm/lib/IR/
H A DIntrinsicInst.cpp44 } else if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) {
45 if (GV->hasInitializer())
46 if (Value *CO = CastOperand(GV->getInitializer()))
/freebsd-10.1-release/contrib/llvm/lib/Target/AArch64/
H A DAArch64Subtarget.cpp55 bool AArch64Subtarget::GVIsIndirectSymbol(const GlobalValue *GV, argument
60 return !GV->hasLocalLinkage() && !GV->hasHiddenVisibility();
/freebsd-10.1-release/contrib/llvm/lib/Target/PowerPC/
H A DPPCTargetObjectFile.cpp26 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, argument
30 TargetLoweringObjectFileELF::SelectSectionForGlobal(GV, Kind, Mang, TM);
49 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV);
/freebsd-10.1-release/contrib/llvm/lib/Transforms/Utils/
H A DModuleUtils.cpp71 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;
/freebsd-10.1-release/contrib/llvm/include/llvm/ExecutionEngine/
H A DGenericValue.h50 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; } argument
/freebsd-10.1-release/contrib/llvm/lib/Target/ARM/
H A DARMTargetObjectFile.cpp45 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang, argument
50 return MCSymbolRefExpr::Create(getSymbol(*Mang, GV),

Completed in 120 milliseconds

123456789