/external/llvm/include/llvm/IR/ |
D | GlobalVariable.h | 79 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/ |
D | ReduceGlobalVars.cpp | 28 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/ |
D | ASTMatchersTraversalTest.cpp | 1760 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 …]
|
D | ASTMatchersNodeTest.cpp | 509 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/ |
D | GlobalVariable.h | 92 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/ |
D | GlobalVariable.h | 92 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/ |
D | ASTMatchersTraversalTest.cpp | 1106 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 …]
|
D | ASTMatchersNodeTest.cpp | 358 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/ |
D | ASTImporterTest.cpp | 278 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/ |
D | MisplacedOperatorInStrlenInAllocCheck.cpp | 50 hasInitializer(ignoringParenImpCasts( in registerMatchers() 54 hasInitializer(ignoringParenImpCasts( in registerMatchers()
|
D | DanglingHandleCheck.cpp | 113 hasInitializer( in registerMatchersForVariables() 124 hasInitializer(exprWithCleanups( in registerMatchersForVariables()
|
D | StringConstructorCheck.cpp | 71 hasInitializer(ignoringParenImpCasts(BoundStringLiteral))); in registerMatchers() 75 hasInitializer(ignoringParenImpCasts(BoundStringLiteral))); in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
D | OwningMemoryCheck.cpp | 107 varDecl(hasInitializer(unless(ConsideredOwner)), IsOwnerType) in registerMatchers() 141 varDecl(eachOf(allOf(hasInitializer(CreatesOwner), in registerMatchers() 143 allOf(hasInitializer(ConsideredOwner), in registerMatchers()
|
D | InterfacesGlobalInitCheck.cpp | 32 hasInitializer(expr(hasDescendant( in registerMatchers()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | LowerEmuTLS.cpp | 99 if (GV->hasInitializer()) { in addEmuTlsVar() 126 if (!GV->hasInitializer()) in addEmuTlsVar()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | LowerEmuTLS.cpp | 100 if (GV->hasInitializer()) { in addEmuTlsVar() 127 if (!GV->hasInitializer()) in addEmuTlsVar()
|
/external/llvm/lib/CodeGen/ |
D | LowerEmuTLS.cpp | 97 if (GV->hasInitializer()) { in addEmuTlsVar() 124 if (!GV->hasInitializer()) in addEmuTlsVar()
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | UseAutoCheck.cpp | 216 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/ |
D | DefaultArgumentsCheck.cpp | 22 hasAnyParameter(parmVarDecl(hasInitializer(expr())))) in registerMatchers()
|
/external/llvm-project/clang/unittests/Tooling/ |
D | RefactoringCallbacksTest.cpp | 111 varDecl(hasInitializer(expr().bind("init"))).bind("decl"), in TEST() 122 varDecl(hasInitializer(expr().bind("init"))).bind("decl"), in TEST()
|
/external/llvm/lib/Transforms/IPO/ |
D | ElimAvailExtern.cpp | 37 if (GV.hasInitializer()) { in eliminateAvailableExternally()
|
D | GlobalDCE.cpp | 132 if (GV.hasInitializer()) { in run() 230 if (GV->hasInitializer()) in GlobalIsNeeded()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | ElimAvailExtern.cpp | 40 if (GV.hasInitializer()) { in eliminateAvailableExternally()
|
/external/llvm-project/llvm/lib/Transforms/IPO/ |
D | ElimAvailExtern.cpp | 40 if (GV.hasInitializer()) { in eliminateAvailableExternally()
|
/external/llvm-project/clang-tools-extra/clang-tidy/performance/ |
D | InefficientVectorOperationCheck.cpp | 95 varDecl(hasInitializer(DefaultConstructorCall)).bind(VarDeclName); in AddMatcher() 107 declStmt(hasSingleDecl(varDecl(hasInitializer(integerLiteral(equals(0)))) in AddMatcher()
|