Home
last modified time | relevance | path

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

1234567891011

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DCtorUtils.cpp31 ConstantArray *OldCA = cast<ConstantArray>(GCL->getInitializer()); in removeGlobalCtors()
68 if (GV->getInitializer()->isNullValue()) in parseGlobalCtors()
70 ConstantArray *CA = cast<ConstantArray>(GV->getInitializer()); in parseGlobalCtors()
92 if (isa<ConstantAggregateZero>(GV->getInitializer())) in findGlobalCtors()
94 ConstantArray *CA = cast<ConstantArray>(GV->getInitializer()); in findGlobalCtors()
DEvaluator.cpp162 return ConstantFoldLoadThroughGEPConstantExpr(GV->getInitializer(), CE); in isSimpleEnoughPointerToCommit()
178 static Constant *getInitializer(Constant *C) { in getInitializer() function
180 return GV && GV->hasDefinitiveInitializer() ? GV->getInitializer() : nullptr; in getInitializer()
194 return GV->getInitializer(); in ComputeLoadResult()
202 if (auto *I = getInitializer(CE->getOperand(0))) in ComputeLoadResult()
210 : getInitializer(CE->getOperand(0)); in ComputeLoadResult()
/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()
/external/ImageMagick/Magick++/fuzz/
Dencoder_list.cc8 static std::string getInitializer(const std::string module) in getInitializer() function
61 …std::cout << ((*it).isWritable() ? "+" : "-") << module << ":" << getInitializer(module) << std::e… in main()
63 …std::cout << ((*it).isWritable() ? "+" : "-") << (*it).name() << ":" << getInitializer(module) << … in main()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/wiki_samples/removenode/
DModifierVisitorTest.java52 && declarator.getInitializer().isPresent()) { in visit()
53 Expression expression = declarator.getInitializer().get(); in visit()
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DConstantMerge.cpp69 ConstantArray *Inits = dyn_cast<ConstantArray>(LLVMUsed->getInitializer()); in FindUsedValues()
143 Constant *Init = GV->getInitializer(); in runOnModule()
176 Constant *Init = GV->getInitializer(); in runOnModule()
DGlobalOpt.cpp214 if (StoredVal == GV->getInitializer()) { in AnalyzeGlobal()
502 Constant *Init = GV->getInitializer(); in SRAGlobal()
1585 if (GV->getInitializer()->getType()->isPointerTy() && in OptimizeOnceStoredGlobal()
1586 GV->getInitializer()->isNullValue()) { in OptimizeOnceStoredGlobal()
1588 if (GV->getInitializer()->getType() != SOVC->getType()) in OptimizeOnceStoredGlobal()
1589 SOVC = ConstantExpr::getBitCast(SOVC, GV->getInitializer()->getType()); in OptimizeOnceStoredGlobal()
1641 Constant *InitVal = GV->getInitializer(); in TryToShrinkGlobalToBoolean()
1763 if (!isa<UndefValue>(GV->getInitializer())) in ProcessInternalGlobal()
1764 new StoreInst(GV->getInitializer(), Alloca, &FirstI); in ProcessInternalGlobal()
1779 bool Changed = CleanupConstantGlobalUsers(GV, GV->getInitializer()); in ProcessInternalGlobal()
[all …]
/external/llvm/lib/Transforms/IPO/
DConstantMerge.cpp42 ConstantArray *Inits = cast<ConstantArray>(LLVMUsed->getInitializer()); in FindUsedValues()
116 Constant *Init = GV->getInitializer(); in mergeConstants()
147 Constant *Init = GV->getInitializer(); in mergeConstants()
DGlobalOpt.cpp439 Constant *Init = GV->getInitializer(); in SRAGlobal()
1528 if (GV->getInitializer()->getType()->isPointerTy() && in optimizeOnceStoredGlobal()
1529 GV->getInitializer()->isNullValue()) { in optimizeOnceStoredGlobal()
1531 if (GV->getInitializer()->getType() != SOVC->getType()) in optimizeOnceStoredGlobal()
1532 SOVC = ConstantExpr::getBitCast(SOVC, GV->getInitializer()->getType()); in optimizeOnceStoredGlobal()
1584 Constant *InitVal = GV->getInitializer(); in TryToShrinkGlobalToBoolean()
1838 if (!isa<UndefValue>(GV->getInitializer())) in processInternalGlobal()
1839 new StoreInst(GV->getInitializer(), Alloca, &FirstI); in processInternalGlobal()
1861 Changed = CleanupConstantGlobalUsers(GV, GV->getInitializer(), DL, TLI); in processInternalGlobal()
1878 CleanupConstantGlobalUsers(GV, GV->getInitializer(), DL, TLI); in processInternalGlobal()
[all …]
DGlobalDCE.cpp133 Constant *Init = GV.getInitializer(); in run()
231 MarkUsedGlobalsAsNeeded(GV->getInitializer()); in GlobalIsNeeded()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DConstantMerge.cpp49 ConstantArray *Inits = cast<ConstantArray>(LLVMUsed->getInitializer()); in FindUsedValues()
143 Constant *Init = GV->getInitializer(); in mergeConstants()
174 Constant *Init = GV->getInitializer(); in mergeConstants()
DGlobalSplit.cpp48 auto *Init = dyn_cast_or_null<ConstantStruct>(GV.getInitializer()); in splitGlobal()
128 SplitGlobals[I]->getInitializer()->getType(), SplitGlobals[I], Ops, in splitGlobal()
DGlobalOpt.cpp467 Constant *Init = GV->getInitializer(); in SRAGlobal()
1572 if (GV->getInitializer()->getType()->isPointerTy() && in optimizeOnceStoredGlobal()
1573 GV->getInitializer()->isNullValue() && in optimizeOnceStoredGlobal()
1576 GV->getInitializer()->getType()->getPointerAddressSpace())) { in optimizeOnceStoredGlobal()
1578 if (GV->getInitializer()->getType() != SOVC->getType()) in optimizeOnceStoredGlobal()
1579 SOVC = ConstantExpr::getBitCast(SOVC, GV->getInitializer()->getType()); in optimizeOnceStoredGlobal()
1631 Constant *InitVal = GV->getInitializer(); in TryToShrinkGlobalToBoolean()
1645 if (ConstantInt *CIInit = dyn_cast<ConstantInt>(GV->getInitializer())){ in TryToShrinkGlobalToBoolean()
1930 if (!isa<UndefValue>(GV->getInitializer())) in processInternalGlobal()
1931 new StoreInst(GV->getInitializer(), Alloca, &FirstI); in processInternalGlobal()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/
DGlobalVariable.h117 inline const Constant *getInitializer() const { in getInitializer() function
121 inline Constant *getInitializer() { in getInitializer() function
/external/llvm/include/llvm/IR/
DGlobalVariable.h123 inline const Constant *getInitializer() const { in getInitializer() function
127 inline Constant *getInitializer() { in getInitializer() function
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/
DJavaParserTest.java233 …alization().get(0).asVariableDeclarationExpr().getVariables().get(0).getInitializer().isPresent()); in parsingInitializedAndUnitializedVarsInForStmt()
234 …alization().get(0).asVariableDeclarationExpr().getVariables().get(1).getInitializer().isPresent()); in parsingInitializedAndUnitializedVarsInForStmt()
246 …alization().get(0).asVariableDeclarationExpr().getVariables().get(0).getInitializer().isPresent()); in parsingInitializedAndUnitializedVarsInForStmtComplexCase()
247 …alization().get(0).asVariableDeclarationExpr().getVariables().get(1).getInitializer().isPresent()); in parsingInitializedAndUnitializedVarsInForStmtComplexCase()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/validator/chunks/
DVarValidator.java71 if (!vd.getInitializer().isPresent()) { in accept()
74 vd.getInitializer().ifPresent(initializer -> { in accept()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DConstantsTest.cpp344 ASSERT_EQ(A0G, RefArray->getInitializer()); in TEST()
347 ASSERT_EQ(A01, RefArray->getInitializer()); in TEST()
367 ASSERT_EQ(Int1, Ref->getInitializer()); in TEST()
370 ASSERT_EQ(Int2, Ref->getInitializer()); in TEST()
387 ASSERT_EQ(GEP, Ref->getInitializer()); in TEST()
394 ASSERT_EQ(GEP, Ref->getInitializer()); in TEST()
/external/llvm/unittests/IR/
DConstantsTest.cpp343 ASSERT_EQ(A0G, RefArray->getInitializer()); in TEST()
346 ASSERT_EQ(A01, RefArray->getInitializer()); in TEST()
366 ASSERT_EQ(Int1, Ref->getInitializer()); in TEST()
369 ASSERT_EQ(Int2, Ref->getInitializer()); in TEST()
386 ASSERT_EQ(GEP, Ref->getInitializer()); in TEST()
393 ASSERT_EQ(GEP, Ref->getInitializer()); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DGlobalVariable.h137 inline const Constant *getInitializer() const { in getInitializer() function
141 inline Constant *getInitializer() { in getInitializer() function
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/
DLambdaExprContextResolutionTest.java78 LambdaExpr lambdaExpr = (LambdaExpr) field.getInitializer().get(); in solveParameterOfLambdaInFieldDecl()
99 LambdaExpr lambdaExpr = (LambdaExpr) varDecl.getInitializer().get(); in solveParameterOfLambdaInVarDecl()
/external/clang/include/clang/AST/
DDeclOpenMP.h143 Expr *getInitializer() { return Initializer; } in getInitializer() function
144 const Expr *getInitializer() const { return Initializer; } in getInitializer() function
/external/swiftshader/third_party/LLVM/lib/Target/
DTargetLoweringObjectFile.cpp52 const Constant *C = GV->getInitializer(); in isSuitableForBSS()
154 const Constant *C = GVar->getInitializer(); in getKindForGlobal()
/external/llvm/lib/Target/
DTargetLoweringObjectFile.cpp54 const Constant *C = GV->getInitializer(); in isSuitableForBSS()
164 const Constant *C = GVar->getInitializer(); in getKindForGlobal()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCTargetObjectFile.cpp44 if (GVar && GVar->isConstant() && GVar->getInitializer()->needsRelocation()) in SelectSectionForGlobal()

1234567891011