Home
last modified time | relevance | path

Searched refs:getInitializer (Results 1 – 25 of 88) 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()
DCloneModule.cpp87 GV->setInitializer(MapValue(I->getInitializer(), VMap)); in CloneModule()
/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()
DGlobalOpt.cpp478 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()
1754 if (!isa<UndefValue>(GV->getInitializer())) in ProcessInternalGlobal()
1755 new StoreInst(GV->getInitializer(), Alloca, &FirstI); in ProcessInternalGlobal()
1775 Changed = CleanupConstantGlobalUsers(GV, GV->getInitializer(), DL, TLI); in ProcessInternalGlobal()
1791 CleanupConstantGlobalUsers(GV, GV->getInitializer(), DL, TLI); in ProcessInternalGlobal()
[all …]
DGlobalDCE.cpp135 Constant *Init = I->getInitializer(); in runOnModule()
214 MarkUsedGlobalsAsNeeded(GV->getInitializer()); in GlobalIsNeeded()
/external/llvm/include/llvm/IR/
DGlobalVariable.h127 inline const Constant *getInitializer() const { in getInitializer() function
131 inline Constant *getInitializer() { in getInitializer() function
/external/llvm/unittests/IR/
DConstantsTest.cpp300 ASSERT_EQ(A0G, RefArray->getInitializer()); in TEST()
303 ASSERT_EQ(A01, RefArray->getInitializer()); in TEST()
323 ASSERT_EQ(Int1, Ref->getInitializer()); in TEST()
326 ASSERT_EQ(Int2, Ref->getInitializer()); in TEST()
343 ASSERT_EQ(GEP, Ref->getInitializer()); in TEST()
350 ASSERT_EQ(GEP, Ref->getInitializer()); in TEST()
/external/llvm/lib/Transforms/Instrumentation/
DInstrProfiling.cpp159 Constant *Init = CoverageData->getInitializer(); in lowerCoverageData()
186 auto *Arr = cast<ConstantDataArray>(Inc->getName()->getInitializer()); in getVarName()
309 ConstantArray *Inits = cast<ConstantArray>(LLVMUsed->getInitializer()); in emitUses()
/external/llvm/lib/Target/PowerPC/
DPPCTargetObjectFile.cpp46 (GVar->getInitializer()->getRelocationInfo() == in SelectSectionForGlobal()
/external/llvm/lib/IR/
DIntrinsicInst.cpp46 if (Value *CO = CastOperand(GV->getInitializer())) in StripCast()
/external/llvm/lib/Target/
DTargetLoweringObjectFile.cpp55 const Constant *C = GV->getInitializer(); in isSuitableForBSS()
165 const Constant *C = GVar->getInitializer(); in getKindForGlobal()
/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.cpp267 Constant *cn = gvn->getInitializer(); in objcClassNameFromExpression()
281 const ConstantStruct *c = dyn_cast<ConstantStruct>(clgv->getInitializer()); in addObjCClass()
315 const ConstantStruct *c = dyn_cast<ConstantStruct>(clgv->getInitializer()); in addObjCCategory()
339 if (!objcClassNameFromExpression(clgv->getInitializer(), targetclassName)) in addObjCClassRef()
/external/llvm/lib/ExecutionEngine/Orc/
DExecutionUtils.cpp22 GV ? dyn_cast_or_null<ConstantArray>(GV->getInitializer()) : nullptr), in CtorDtorIterator()
DCloneSubModule.cpp13 New.setInitializer(MapValue(Orig.getInitializer(), VMap)); in copyGVInitializer()
/external/llvm/lib/CodeGen/
DGlobalMerge.cpp192 Inits.push_back(Globals[j]->getInitializer()); in doMerge()
252 const ConstantArray *InitList = cast<ConstantArray>(GV->getInitializer()); in collectUsedGlobalVariables()
/external/llvm/lib/Transforms/ObjCARC/
DObjCARCAPElim.cpp154 ConstantArray *Init = cast<ConstantArray>(GV->getInitializer()); in runOnModule()
/external/llvm/lib/Bitcode/Writer/
DValueEnumerator.cpp84 if (!isa<GlobalValue>(G.getInitializer())) in orderModule()
85 orderValue(G.getInitializer(), OM); in orderModule()
269 predictValueUseListOrder(G.getInitializer(), nullptr, OM, Stack); in predictUseListOrder()
316 EnumerateValue(I->getInitializer()); in ValueEnumerator()
/external/lldb/source/Expression/
DIRForTarget.cpp669 Constant *initializer = result_global->getInitializer(); in CreateResultVariable()
795 string_array = dyn_cast<ConstantDataSequential>(cstr->getInitializer()); in RewriteObjCConstString()
878 … ConstantStruct *nsstring_struct = dyn_cast<ConstantStruct>(nsstring_global->getInitializer()); in RewriteObjCConstStrings()
998 … ConstantDataArray *cstr_array = dyn_cast<ConstantDataArray>(cstr_global->getInitializer()); in RewriteObjCConstStrings()
1092 Constant *osr_initializer = _objc_selector_references_->getInitializer(); in RewriteObjCSelector()
1111 Constant *omvn_initializer = _objc_meth_var_name_->getInitializer(); in RewriteObjCSelector()
1440 Constant *initializer = global_variable->getInitializer(); in MaterializeInternalVariable()
1649 Constant *initializer = global_variable->getInitializer(); in HandleObjCClass()
1858 Constant *gc = gv->getInitializer(); in ReplaceStrings()
/external/llvm/tools/bugpoint/
DExtractFunction.cpp56 Constant *I = GV->getInitializer(); in globalInitUsesExternalBA()
224 ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer()); in SplitStaticCtorDtor()
/external/llvm/lib/Analysis/
DConstantFolding.cpp446 !GV->getInitializer()->getType()->isSized()) in FoldReinterpretLoadFromConstPtr()
456 DL.getTypeAllocSize(GV->getInitializer()->getType())) in FoldReinterpretLoadFromConstPtr()
460 if (!ReadDataFromGlobal(GV->getInitializer(), Offset.getZExtValue(), RawBytes, in FoldReinterpretLoadFromConstPtr()
533 return GV->getInitializer(); in ConstantFoldLoadFromConstPtr()
544 ConstantFoldLoadThroughGEPConstantExpr(GV->getInitializer(), CE)) in ConstantFoldLoadFromConstPtr()
595 if (GV->getInitializer()->isNullValue()) in ConstantFoldLoadFromConstPtr()
597 if (isa<UndefValue>(GV->getInitializer())) in ConstantFoldLoadFromConstPtr()
/external/clang/lib/StaticAnalyzer/Checkers/
DNonNullParamChecker.cpp128 dyn_cast<InitListExpr>(CE->getInitializer())) in checkPreCall()
/external/llvm/lib/Target/NVPTX/
DNVVMReflect.cpp188 const Constant *Initializer = GV->getInitializer(); in handleFunction()

1234