Home
last modified time | relevance | path

Searched refs:getInitializer (Results 1 – 25 of 100) sorted by relevance

1234

/external/llvm/lib/Transforms/Utils/
DCtorUtils.cpp32 ConstantArray *OldCA = cast<ConstantArray>(GCL->getInitializer()); in removeGlobalCtors()
69 if (GV->getInitializer()->isNullValue()) in parseGlobalCtors()
71 ConstantArray *CA = cast<ConstantArray>(GV->getInitializer()); in parseGlobalCtors()
93 if (isa<ConstantAggregateZero>(GV->getInitializer())) in findGlobalCtors()
95 ConstantArray *CA = cast<ConstantArray>(GV->getInitializer()); in findGlobalCtors()
DModuleUtils.cpp38 if (Constant *Init = GVCtor->getInitializer()) { in appendToGlobalArray()
89 const ConstantArray *Init = cast<ConstantArray>(GV->getInitializer()); in collectUsedGlobalVariables()
DGlobalStatus.cpp108 if (StoredVal == GV->getInitializer()) { in analyzeGlobalAux()
/external/llvm/lib/Transforms/IPO/
DConstantMerge.cpp70 ConstantArray *Inits = cast<ConstantArray>(LLVMUsed->getInitializer()); in FindUsedValues()
145 Constant *Init = GV->getInitializer(); in runOnModule()
176 Constant *Init = GV->getInitializer(); in runOnModule()
DGlobalDCE.cpp129 Constant *Init = GV.getInitializer(); in runOnModule()
207 MarkUsedGlobalsAsNeeded(GV->getInitializer()); in GlobalIsNeeded()
DElimAvailExtern.cpp60 Constant *Init = GV.getInitializer(); in runOnModule()
DGlobalOpt.cpp480 Constant *Init = GV->getInitializer(); in SRAGlobal()
1571 if (GV->getInitializer()->getType()->isPointerTy() && in OptimizeOnceStoredGlobal()
1572 GV->getInitializer()->isNullValue()) { in OptimizeOnceStoredGlobal()
1574 if (GV->getInitializer()->getType() != SOVC->getType()) in OptimizeOnceStoredGlobal()
1575 SOVC = ConstantExpr::getBitCast(SOVC, GV->getInitializer()->getType()); in OptimizeOnceStoredGlobal()
1627 Constant *InitVal = GV->getInitializer(); in TryToShrinkGlobalToBoolean()
1888 if (!isa<UndefValue>(GV->getInitializer())) in ProcessInternalGlobal()
1889 new StoreInst(GV->getInitializer(), Alloca, &FirstI); in ProcessInternalGlobal()
1911 Changed = CleanupConstantGlobalUsers(GV, GV->getInitializer(), DL, TLI); in ProcessInternalGlobal()
1927 CleanupConstantGlobalUsers(GV, GV->getInitializer(), DL, TLI); in ProcessInternalGlobal()
[all …]
/external/llvm/include/llvm/IR/
DGlobalVariable.h121 inline const Constant *getInitializer() const { in getInitializer() function
125 inline Constant *getInitializer() { in getInitializer() function
/external/llvm/unittests/IR/
DConstantsTest.cpp318 ASSERT_EQ(A0G, RefArray->getInitializer()); in TEST()
321 ASSERT_EQ(A01, RefArray->getInitializer()); in TEST()
341 ASSERT_EQ(Int1, Ref->getInitializer()); in TEST()
344 ASSERT_EQ(Int2, Ref->getInitializer()); in TEST()
361 ASSERT_EQ(GEP, Ref->getInitializer()); in TEST()
368 ASSERT_EQ(GEP, Ref->getInitializer()); in TEST()
/external/llvm/lib/Target/
DTargetLoweringObjectFile.cpp54 const Constant *C = GV->getInitializer(); in isSuitableForBSS()
164 const Constant *C = GVar->getInitializer(); in getKindForGlobal()
/external/llvm/lib/Target/PowerPC/
DPPCTargetObjectFile.cpp45 if (GVar && GVar->isConstant() && GVar->getInitializer()->needsRelocation()) in SelectSectionForGlobal()
/external/llvm/lib/IR/
DIntrinsicInst.cpp46 if (Value *CO = CastOperand(GV->getInitializer())) in StripCast()
DTypeFinder.cpp31 incorporateValue(I->getInitializer()); in run()
/external/javassist/src/main/javassist/compiler/ast/
DNewExpr.java64 public ArrayInit getInitializer() { in getInitializer() method in NewExpr
DDeclarator.java84 public ASTree getInitializer() { in getInitializer() method in Declarator
/external/llvm/lib/LTO/
DLTOModule.cpp258 Constant *cn = gvn->getInitializer(); in objcClassNameFromExpression()
272 const ConstantStruct *c = dyn_cast<ConstantStruct>(clgv->getInitializer()); in addObjCClass()
306 const ConstantStruct *c = dyn_cast<ConstantStruct>(clgv->getInitializer()); in addObjCCategory()
330 if (!objcClassNameFromExpression(clgv->getInitializer(), targetclassName)) in addObjCClassRef()
/external/llvm/lib/Bitcode/Writer/
DValueEnumerator.cpp84 if (!isa<GlobalValue>(G.getInitializer())) in orderModule()
85 orderValue(G.getInitializer(), OM); in orderModule()
266 predictValueUseListOrder(G.getInitializer(), nullptr, OM, Stack); in predictUseListOrder()
308 EnumerateValue(GV.getInitializer()); in ValueEnumerator()
/external/llvm/lib/ExecutionEngine/Orc/
DExecutionUtils.cpp22 GV ? dyn_cast_or_null<ConstantArray>(GV->getInitializer()) : nullptr), in CtorDtorIterator()
/external/llvm/lib/Transforms/ObjCARC/
DObjCARCAPElim.cpp151 ConstantArray *Init = cast<ConstantArray>(GV->getInitializer()); in runOnModule()
/external/smali/smalidea/src/main/java/org/jf/smalidea/psi/impl/
DSmaliField.java112 @Nullable @Override public PsiExpression getInitializer() { in getInitializer() method in SmaliField
DSmaliMethodParameter.java92 @Nullable @Override public PsiExpression getInitializer() { in getInitializer() method in SmaliMethodParameter
/external/llvm/lib/CodeGen/
DLowerEmuTLS.cpp95 InitValue = GV->getInitializer(); in addEmuTlsVar()
DGlobalMerge.cpp434 Inits.push_back(Globals[j]->getInitializer()); in doMerge()
481 const ConstantArray *InitList = cast<ConstantArray>(GV->getInitializer()); in collectUsedGlobalVariables()
/external/llvm/tools/bugpoint/
DExtractFunction.cpp56 Constant *I = GV->getInitializer(); in globalInitUsesExternalBA()
256 ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer()); in SplitStaticCtorDtor()
/external/llvm/lib/Analysis/
DConstantFolding.cpp445 !GV->getInitializer()->getType()->isSized()) in FoldReinterpretLoadFromConstPtr()
455 DL.getTypeAllocSize(GV->getInitializer()->getType())) in FoldReinterpretLoadFromConstPtr()
459 if (!ReadDataFromGlobal(GV->getInitializer(), Offset.getZExtValue(), RawBytes, in FoldReinterpretLoadFromConstPtr()
532 return GV->getInitializer(); in ConstantFoldLoadFromConstPtr()
547 ConstantFoldLoadThroughGEPConstantExpr(GV->getInitializer(), CE)) in ConstantFoldLoadFromConstPtr()
598 if (GV->getInitializer()->isNullValue()) in ConstantFoldLoadFromConstPtr()
600 if (isa<UndefValue>(GV->getInitializer())) in ConstantFoldLoadFromConstPtr()

1234