Home
last modified time | relevance | path

Searched refs:ValueExpr (Results 1 – 14 of 14) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmtAttr.cpp83 Expr *ValueExpr = A.getArgAsExpr(3); in handleLoopHintAttr() local
113 if (ValueExpr) { in handleLoopHintAttr()
114 if (!ValueExpr->isValueDependent()) { in handleLoopHintAttr()
115 auto Value = ValueExpr->EvaluateKnownConstInt(S.getASTContext()); in handleLoopHintAttr()
128 if (ValueExpr) in handleLoopHintAttr()
151 assert((ValueExpr || (StateLoc && StateLoc->Ident)) && in handleLoopHintAttr()
153 if (ValueExpr && S.CheckLoopHintExpr(ValueExpr, St->getBeginLoc(), in handleLoopHintAttr()
163 assert(ValueExpr && "Attribute must have a valid value expression."); in handleLoopHintAttr()
164 if (S.CheckLoopHintExpr(ValueExpr, St->getBeginLoc(), in handleLoopHintAttr()
189 return LoopHintAttr::CreateImplicit(S.Context, Option, State, ValueExpr, A); in handleLoopHintAttr()
H A DSemaExprObjC.cpp509 ExprResult SemaObjC::BuildObjCBoxedExpr(SourceRange SR, Expr *ValueExpr) { in BuildObjCBoxedExpr() argument
511 if (ValueExpr->isTypeDependent()) { in BuildObjCBoxedExpr()
513 new (Context) ObjCBoxedExpr(ValueExpr, Context.DependentTy, nullptr, SR); in BuildObjCBoxedExpr()
519 ExprResult RValue = SemaRef.DefaultFunctionArrayLvalueConversion(ValueExpr); in BuildObjCBoxedExpr()
524 ValueExpr = RValue.get(); in BuildObjCBoxedExpr()
525 QualType ValueType(ValueExpr->getType()); in BuildObjCBoxedExpr()
542 if (auto *CE = dyn_cast<ImplicitCastExpr>(ValueExpr)) in BuildObjCBoxedExpr()
619 dyn_cast<CharacterLiteral>(ValueExpr->IgnoreParens())) { in BuildObjCBoxedExpr()
649 << ValueType << ValueExpr->getSourceRange(); in BuildObjCBoxedExpr()
728 << ValueType << ValueExpr->getSourceRange(); in BuildObjCBoxedExpr()
[all …]
H A DTreeTransform.h3735 ExprResult RebuildObjCBoxedExpr(SourceRange SR, Expr *ValueExpr) { in RebuildObjCBoxedExpr() argument
3736 return getSema().ObjC().BuildObjCBoxedExpr(SR, ValueExpr); in RebuildObjCBoxedExpr()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DNullabilityChecker.cpp169 const Stmt *ValueExpr = nullptr,
174 const Stmt *ValueExpr = nullptr) const { in reportBug() argument
181 if (ValueExpr) { in reportBug()
182 R->addRange(ValueExpr->getSourceRange()); in reportBug()
186 if (const auto *Ex = dyn_cast<Expr>(ValueExpr)) in reportBug()
483 const MemRegion *Region, CheckerContext &C, const Stmt *ValueExpr, in reportBugIfInvariantHolds() argument
494 reportBug(Msg, Error, CK, N, Region, C.getBugReporter(), ValueExpr); in reportBugIfInvariantHolds()
1282 const Expr *ValueExpr = matchValueExprForBind(S); in checkBind() local
1283 if (ValueExpr) { in checkBind()
1285 getNullabilityAnnotation(lookThroughImplicitCasts(ValueExpr)->getType()); in checkBind()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseObjc.cpp3462 ExprResult ValueExpr(ParseAssignmentExpression()); in ParseObjCBoxedExpr() local
3466 if (ValueExpr.isInvalid()) in ParseObjCBoxedExpr()
3472 ValueExpr = Actions.ActOnParenExpr(LPLoc, RPLoc, ValueExpr.get()); in ParseObjCBoxedExpr()
3474 ValueExpr.get()); in ParseObjCBoxedExpr()
3544 ExprResult ValueExpr(ParseAssignmentExpression()); in ParseObjCDictionaryLiteral() local
3545 if (ValueExpr.isInvalid()) { in ParseObjCDictionaryLiteral()
3550 return ValueExpr; in ParseObjCDictionaryLiteral()
3555 ValueExpr = Actions.CorrectDelayedTyposInExpr(ValueExpr.get()); in ParseObjCDictionaryLiteral()
3556 if (KeyExpr.isInvalid() || ValueExpr.isInvalid()) in ParseObjCDictionaryLiteral()
3568 ObjCDictionaryElement Element = {KeyExpr.get(), ValueExpr.get(), in ParseObjCDictionaryLiteral()
H A DParsePragma.cpp1579 Hint.ValueExpr = R.get(); in HandlePragmaLoopHint()
1605 Hint.ValueExpr = R.get(); in HandlePragmaLoopHint()
H A DParseStmt.cpp2490 ArgsUnion(Hint.ValueExpr)}; in ParsePragmaLoopHint()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGLoopInfo.cpp650 auto *ValueExpr = LH->getValue(); in push() local
651 if (ValueExpr) { in push()
652 llvm::APSInt ValueAPS = ValueExpr->EvaluateKnownConstInt(Ctx); in push()
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/AsmParser/
H A DCSKYAsmParser.cpp1580 const MCExpr *ValueExpr; in parseDirectiveAttribute() local
1581 if (Parser.parseExpression(ValueExpr)) in parseDirectiveAttribute()
1584 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ValueExpr); in parseDirectiveAttribute()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/AsmParser/
H A DHexagonAsmParser.cpp697 const MCExpr *ValueExpr; in parseDirectiveAttribute() local
698 if (Parser.parseExpression(ValueExpr)) in parseDirectiveAttribute()
701 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ValueExpr); in parseDirectiveAttribute()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaObjC.h677 ExprResult BuildObjCBoxedExpr(SourceRange SR, Expr *ValueExpr);
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/AsmParser/
H A DRISCVAsmParser.cpp3051 const MCExpr *ValueExpr; in parseDirectiveAttribute() local
3052 if (Parser.parseExpression(ValueExpr)) in parseDirectiveAttribute()
3055 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ValueExpr); in parseDirectiveAttribute()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DNewGVN.cpp3352 auto *ValueExpr = ValueToExpression.lookup(SE->getStoreInst()); in verifyStoreExpressions() local
3353 assert(ValueExpr && ValueExpr->equals(*SE) && in verifyStoreExpressions()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/AsmParser/
H A DARMAsmParser.cpp11859 const MCExpr *ValueExpr; in parseDirectiveEabiAttr() local
11861 if (Parser.parseExpression(ValueExpr)) in parseDirectiveEabiAttr()
11864 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ValueExpr); in parseDirectiveEabiAttr()