Home
last modified time | relevance | path

Searched refs:hasInitializer (Results 1 – 25 of 196) sorted by relevance

12345678

/external/llvm/include/llvm/IR/
DGlobalVariable.h79 inline bool hasInitializer() const { return !isDeclaration(); } in hasInitializer() function
98 return hasInitializer() && in hasDefinitiveInitializer()
124 assert(hasInitializer() && "GV doesn't have initializer!"); in getInitializer()
128 assert(hasInitializer() && "GV doesn't have initializer!"); in getInitializer()
/external/llvm-project/llvm/tools/llvm-reduce/deltas/
DReduceGlobalVars.cpp28 if (GV.hasInitializer() && O.shouldKeep()) in extractGVsFromModule()
35 if (GV.hasInitializer() && !GVsToKeep.count(&GV)) { in extractGVsFromModule()
65 if (GV.hasInitializer()) in countGVs()
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersTraversalTest.cpp1760 varDecl(hasInitializer(anyOf( in TEST()
1786 varDecl(hasInitializer( in TEST()
1801 varDecl(hasInitializer(ignoringElidableConstructorCall(callExpr()))); in TEST()
1853 hasInitializer(exprWithCleanups(has(cxxConstructExpr( in TEST()
1873 auto Matcher = varDecl(hasInitializer(floatLiteral())); in TEST()
1969 varDecl(hasInitializer(integerLiteral(equals(3))))))); in TEST()
2005 hasInitializer(ignoringImplicit(cxxConstructExpr(hasArgument( in TEST()
2026 hasInitializer(stringLiteral()))))))); in TEST()
2056 hasInitializer( in TEST()
2069 hasName("c1"), hasInitializer(unaryOperator( in TEST()
[all …]
DASTMatchersNodeTest.cpp509 StatementMatcher Reference = declRefExpr(to(varDecl(hasInitializer( in TEST_P()
1039 varDecl(hasInitializer(parenListExpr(has(unaryOperator())))))); in TEST_P()
1044 varDecl(hasInitializer(stmtExpr())))); in TEST_P()
1304 varDecl(hasInitializer(implicitCastExpr()))))); in TEST_P()
1308 varDecl(hasInitializer(implicitCastExpr()))))); in TEST_P()
1312 varDecl(hasInitializer(implicitCastExpr()))))); in TEST_P()
1321 notMatches("int x = 0;", varDecl(hasInitializer(implicitCastExpr())))); in TEST_P()
1323 notMatches("int x = (0);", varDecl(hasInitializer(implicitCastExpr())))); in TEST_P()
1325 varDecl(hasInitializer(implicitCastExpr())))); in TEST_P()
1333 varDecl(hasInitializer(implicitCastExpr())))); in TEST_P()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DGlobalVariable.h92 inline bool hasInitializer() const { return !isDeclaration(); } in hasInitializer() function
111 return hasInitializer() && in hasDefinitiveInitializer()
137 assert(hasInitializer() && "GV doesn't have initializer!"); in getInitializer()
141 assert(hasInitializer() && "GV doesn't have initializer!"); in getInitializer()
/external/llvm-project/llvm/include/llvm/IR/
DGlobalVariable.h92 inline bool hasInitializer() const { return !isDeclaration(); } in hasInitializer() function
111 return hasInitializer() && in hasDefinitiveInitializer()
137 assert(hasInitializer() && "GV doesn't have initializer!"); in getInitializer()
141 assert(hasInitializer() && "GV doesn't have initializer!"); in getInitializer()
/external/clang/unittests/ASTMatchers/
DASTMatchersTraversalTest.cpp1106 varDecl(hasInitializer(ignoringImpCasts( in TEST()
1110 varDecl(hasInitializer(ignoringImpCasts( in TEST()
1119 varDecl(hasInitializer(ignoringImpCasts( in TEST()
1122 varDecl(hasInitializer(ignoringImpCasts( in TEST()
1128 varDecl(hasInitializer(ignoringImpCasts( in TEST()
1131 varDecl(hasInitializer(ignoringImpCasts( in TEST()
1134 varDecl(hasInitializer(ignoringImpCasts( in TEST()
1137 varDecl(hasInitializer(ignoringImpCasts( in TEST()
1145 varDecl(hasInitializer(ignoringImpCasts( in TEST()
1153 varDecl(hasInitializer(ignoringParenCasts( in TEST()
[all …]
DASTMatchersNodeTest.cpp358 varDecl(hasInitializer( in TEST()
753 varDecl(hasInitializer(parenListExpr(has(unaryOperator())))))); in TEST()
758 varDecl(hasInitializer(stmtExpr())))); in TEST()
952 varDecl(hasInitializer(implicitCastExpr())))); in TEST()
955 varDecl(hasInitializer(implicitCastExpr())))); in TEST()
958 varDecl(hasInitializer(implicitCastExpr())))); in TEST()
967 varDecl(hasInitializer(implicitCastExpr())))); in TEST()
969 varDecl(hasInitializer(implicitCastExpr())))); in TEST()
972 varDecl(hasInitializer(implicitCastExpr())))); in TEST()
974 varDecl(hasInitializer(implicitCastExpr())))); in TEST()
[all …]
/external/clang/unittests/AST/
DASTImporterTest.cpp278 hasInitializer( in TEST()
303 hasInitializer( in TEST()
311 hasInitializer( in TEST()
376 hasInitializer( in TEST()
439 hasInitializer( in TEST()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DMisplacedOperatorInStrlenInAllocCheck.cpp50 hasInitializer(ignoringParenImpCasts( in registerMatchers()
54 hasInitializer(ignoringParenImpCasts( in registerMatchers()
DDanglingHandleCheck.cpp113 hasInitializer( in registerMatchersForVariables()
124 hasInitializer(exprWithCleanups( in registerMatchersForVariables()
DStringConstructorCheck.cpp71 hasInitializer(ignoringParenImpCasts(BoundStringLiteral))); in registerMatchers()
75 hasInitializer(ignoringParenImpCasts(BoundStringLiteral))); in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DOwningMemoryCheck.cpp107 varDecl(hasInitializer(unless(ConsideredOwner)), IsOwnerType) in registerMatchers()
141 varDecl(eachOf(allOf(hasInitializer(CreatesOwner), in registerMatchers()
143 allOf(hasInitializer(ConsideredOwner), in registerMatchers()
DInterfacesGlobalInitCheck.cpp32 hasInitializer(expr(hasDescendant( in registerMatchers()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DLowerEmuTLS.cpp99 if (GV->hasInitializer()) { in addEmuTlsVar()
126 if (!GV->hasInitializer()) in addEmuTlsVar()
/external/llvm-project/llvm/lib/CodeGen/
DLowerEmuTLS.cpp100 if (GV->hasInitializer()) { in addEmuTlsVar()
127 if (!GV->hasInitializer()) in addEmuTlsVar()
/external/llvm/lib/CodeGen/
DLowerEmuTLS.cpp97 if (GV->hasInitializer()) { in addEmuTlsVar()
124 if (!GV->hasInitializer()) in addEmuTlsVar()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseAutoCheck.cpp216 unless(hasInitializer(ignoringParenImpCasts(cxxNewExpr()))), in makeDeclWithNewMatcher()
233 unless(has(varDecl(unless(hasInitializer(explicitCastExpr())))))) in makeDeclWithCastMatcher()
254 unless(hasInitializer(ignoringImplicit(TemplateCall))))))) in makeDeclWithTemplateCastMatcher()
/external/llvm-project/clang-tools-extra/clang-tidy/google/
DDefaultArgumentsCheck.cpp22 hasAnyParameter(parmVarDecl(hasInitializer(expr())))) in registerMatchers()
/external/llvm-project/clang/unittests/Tooling/
DRefactoringCallbacksTest.cpp111 varDecl(hasInitializer(expr().bind("init"))).bind("decl"), in TEST()
122 varDecl(hasInitializer(expr().bind("init"))).bind("decl"), in TEST()
/external/llvm/lib/Transforms/IPO/
DElimAvailExtern.cpp37 if (GV.hasInitializer()) { in eliminateAvailableExternally()
DGlobalDCE.cpp132 if (GV.hasInitializer()) { in run()
230 if (GV->hasInitializer()) in GlobalIsNeeded()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DElimAvailExtern.cpp40 if (GV.hasInitializer()) { in eliminateAvailableExternally()
/external/llvm-project/llvm/lib/Transforms/IPO/
DElimAvailExtern.cpp40 if (GV.hasInitializer()) { in eliminateAvailableExternally()
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DInefficientVectorOperationCheck.cpp95 varDecl(hasInitializer(DefaultConstructorCall)).bind(VarDeclName); in AddMatcher()
107 declStmt(hasSingleDecl(varDecl(hasInitializer(integerLiteral(equals(0)))) in AddMatcher()

12345678