Home
last modified time | relevance | path

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

123456789

/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 magick_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-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DVariableDeclaratorContext.java37 … if (wrappedNode.getInitializer().isPresent() && wrappedNode.getInitializer().get() == child) { in localVariablesExposedToChild()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/
DAncestorDescendantTests.java65 Expression subNode = superNode.getVariable(0).getInitializer().get(); // 42 in nodeInSameFileIsDescendantOfAncestor()
93 Expression subNodeA = superNodeA.getVariable(0).getInitializer().get(); // 42 in nodesInTwoDifferentFilesAreNotDescendantOrAncestorOfEachOther()
101 Expression subNodeB = superNodeB.getVariable(0).getInitializer().get(); // 42 in nodesInTwoDifferentFilesAreNotDescendantOrAncestorOfEachOther()
/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()
DElimAvailExtern.cpp38 Constant *Init = GV.getInitializer(); in eliminateAvailableExternally()
DGlobalDCE.cpp133 Constant *Init = GV.getInitializer(); in run()
231 MarkUsedGlobalsAsNeeded(GV->getInitializer()); in GlobalIsNeeded()
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 …]
/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/llvm/include/llvm/IR/
DGlobalVariable.h123 inline const Constant *getInitializer() const { in getInitializer() function
127 inline Constant *getInitializer() { in getInitializer() function
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DArrayExprTest.java32 …Facade.get(new ReflectionTypeSolver()).getType(field.getVariables().get(0).getInitializer().get()); in verifyAnArrayAccessExprTypeIsCalculatedProperly()
45 …lvedValueDeclaration = ((FieldAccessExpr)field.getVariables().get(0).getInitializer().get()).resol… in arrayLengthValueDeclaration()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/validator/chunks/
DVarValidator.java74 if (!vd.getInitializer().isPresent()) { in accept()
77 vd.getInitializer().ifPresent(initializer -> { in accept()
/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/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/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/
DJavaParserTest.java279 …alization().get(0).asVariableDeclarationExpr().getVariables().get(0).getInitializer().isPresent()); in parsingInitializedAndUnitializedVarsInForStmt()
280 …alization().get(0).asVariableDeclarationExpr().getVariables().get(1).getInitializer().isPresent()); in parsingInitializedAndUnitializedVarsInForStmt()
292 …alization().get(0).asVariableDeclarationExpr().getVariables().get(0).getInitializer().isPresent()); in parsingInitializedAndUnitializedVarsInForStmtComplexCase()
293 …alization().get(0).asVariableDeclarationExpr().getVariables().get(1).getInitializer().isPresent()); in parsingInitializedAndUnitializedVarsInForStmtComplexCase()
/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/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/
DLambdaExprContextResolutionTest.java80 LambdaExpr lambdaExpr = (LambdaExpr) field.getInitializer().get(); in solveParameterOfLambdaInFieldDecl()
101 LambdaExpr lambdaExpr = (LambdaExpr) varDecl.getInitializer().get(); in solveParameterOfLambdaInVarDecl()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCTargetObjectFile.cpp44 if (GVar && GVar->isConstant() && GVar->getInitializer()->needsRelocation()) in SelectSectionForGlobal()
/external/llvm/lib/Target/PowerPC/
DPPCTargetObjectFile.cpp45 if (GVar && GVar->isConstant() && GVar->getInitializer()->needsRelocation()) in SelectSectionForGlobal()
/external/llvm/lib/Target/
DTargetLoweringObjectFile.cpp54 const Constant *C = GV->getInitializer(); in isSuitableForBSS()
164 const Constant *C = GVar->getInitializer(); in getKindForGlobal()

123456789