Home
last modified time | relevance | path

Searched refs:SubExpr (Results 1 – 25 of 28) sorted by relevance

12

/external/llvm/lib/Target/ARM/MCTargetDesc/
DARMMachORelocationInfo.cpp25 const MCExpr *createExprForCAPIVariantKind(const MCExpr *SubExpr, in createExprForCAPIVariantKind() argument
29 return ARMMCExpr::CreateUpper16(SubExpr, Ctx); in createExprForCAPIVariantKind()
31 return ARMMCExpr::CreateLower16(SubExpr, Ctx); in createExprForCAPIVariantKind()
33 return MCRelocationInfo::createExprForCAPIVariantKind(SubExpr, in createExprForCAPIVariantKind()
/external/clang/include/clang/AST/
DExprCXX.h486 Stmt *SubExpr; variable
489 : Expr(CXXStdInitializerListExprClass, Empty), SubExpr(nullptr) {} in CXXStdInitializerListExpr()
492 CXXStdInitializerListExpr(QualType Ty, Expr *SubExpr) in CXXStdInitializerListExpr() argument
494 Ty->isDependentType(), SubExpr->isValueDependent(), in CXXStdInitializerListExpr()
495 SubExpr->isInstantiationDependent(), in CXXStdInitializerListExpr()
496 SubExpr->containsUnexpandedParameterPack()), in CXXStdInitializerListExpr()
497 SubExpr(SubExpr) {} in CXXStdInitializerListExpr()
499 Expr *getSubExpr() { return static_cast<Expr*>(SubExpr); } in getSubExpr()
500 const Expr *getSubExpr() const { return static_cast<const Expr*>(SubExpr); } in getSubExpr()
503 return SubExpr->getLocStart(); in getLocStart()
[all …]
DExprObjC.h93 Stmt *SubExpr; variable
102 SubExpr(E), BoxingMethod(method), Range(R) {} in ObjCBoxedExpr()
106 Expr *getSubExpr() { return cast<Expr>(SubExpr); } in getSubExpr()
107 const Expr *getSubExpr() const { return cast<Expr>(SubExpr); } in getSubExpr()
126 child_range children() { return child_range(&SubExpr, &SubExpr+1); } in children()
/external/llvm/lib/MC/
DMCRelocationInfo.cpp30 MCRelocationInfo::createExprForCAPIVariantKind(const MCExpr *SubExpr, in createExprForCAPIVariantKind() argument
34 return SubExpr; in createExprForCAPIVariantKind()
/external/clang/lib/Sema/
DTreeTransform.h1689 ExprResult RebuildParenExpr(Expr *SubExpr, SourceLocation LParen, in RebuildParenExpr() argument
1691 return getSema().ActOnParenExpr(LParen, RParen, SubExpr); in RebuildParenExpr()
1713 Expr *SubExpr) { in RebuildUnaryOperator() argument
1714 return getSema().BuildUnaryOp(/*Scope=*/nullptr, OpLoc, Opc, SubExpr); in RebuildUnaryOperator()
1747 ExprResult RebuildUnaryExprOrTypeTrait(Expr *SubExpr, SourceLocation OpLoc, in RebuildUnaryExprOrTypeTrait() argument
1751 = getSema().CreateUnaryExprOrTypeTraitExpr(SubExpr, OpLoc, ExprKind); in RebuildUnaryExprOrTypeTrait()
1870 Expr *SubExpr) { in RebuildCStyleCastExpr() argument
1872 SubExpr); in RebuildCStyleCastExpr()
1958 Expr *SubExpr, TypeSourceInfo *TInfo, in RebuildVAArgExpr() argument
1961 SubExpr, TInfo, in RebuildVAArgExpr()
[all …]
DSemaExprObjC.cpp3870 Expr *SubExpr) { in BuildObjCBridgedCast() argument
3871 ExprResult SubResult = UsualUnaryConversions(SubExpr); in BuildObjCBridgedCast()
3873 SubExpr = SubResult.get(); in BuildObjCBridgedCast()
3876 QualType FromType = SubExpr->getType(); in BuildObjCBridgedCast()
3881 if (T->isDependentType() || SubExpr->isTypeDependent()) { in BuildObjCBridgedCast()
3899 << SubExpr->getSourceRange() in BuildObjCBridgedCast()
3925 SubExpr = maybeUndoReclaimObject(SubExpr); in BuildObjCBridgedCast()
3930 SubExpr = ImplicitCastExpr::Create(Context, FromType, in BuildObjCBridgedCast()
3932 SubExpr, nullptr, VK_RValue); in BuildObjCBridgedCast()
3942 << SubExpr->getSourceRange() in BuildObjCBridgedCast()
[all …]
DSemaExprCXX.cpp4990 Sema::MaybeCreateExprWithCleanups(ExprResult SubExpr) { in MaybeCreateExprWithCleanups() argument
4991 if (SubExpr.isInvalid()) in MaybeCreateExprWithCleanups()
4994 return MaybeCreateExprWithCleanups(SubExpr.get()); in MaybeCreateExprWithCleanups()
4997 Expr *Sema::MaybeCreateExprWithCleanups(Expr *SubExpr) { in MaybeCreateExprWithCleanups() argument
4998 assert(SubExpr && "subexpression can't be null!"); in MaybeCreateExprWithCleanups()
5006 return SubExpr; in MaybeCreateExprWithCleanups()
5012 Expr *E = ExprWithCleanups::Create(Context, SubExpr, Cleanups); in MaybeCreateExprWithCleanups()
5056 ExprResult SubExpr = ActOnDecltypeExpression(PE->getSubExpr()); in ActOnDecltypeExpression() local
5057 if (SubExpr.isInvalid()) in ActOnDecltypeExpression()
5059 if (SubExpr.get() == PE->getSubExpr()) in ActOnDecltypeExpression()
[all …]
DSemaOverload.cpp12112 Expr *SubExpr = FixOverloadedFunctionReference(PE->getSubExpr(), in FixOverloadedFunctionReference() local
12114 if (SubExpr == PE->getSubExpr()) in FixOverloadedFunctionReference()
12117 return new (Context) ParenExpr(PE->getLParen(), PE->getRParen(), SubExpr); in FixOverloadedFunctionReference()
12121 Expr *SubExpr = FixOverloadedFunctionReference(ICE->getSubExpr(), in FixOverloadedFunctionReference() local
12124 SubExpr->getType()) && in FixOverloadedFunctionReference()
12127 if (SubExpr == ICE->getSubExpr()) in FixOverloadedFunctionReference()
12132 SubExpr, nullptr, in FixOverloadedFunctionReference()
12147 Expr *SubExpr = FixOverloadedFunctionReference(UnOp->getSubExpr(), in FixOverloadedFunctionReference() local
12149 if (SubExpr == UnOp->getSubExpr()) in FixOverloadedFunctionReference()
12152 assert(isa<DeclRefExpr>(SubExpr) in FixOverloadedFunctionReference()
[all …]
DSemaExpr.cpp7814 Expr *SubExpr = UO->getSubExpr()->IgnoreImpCasts(); in diagnoseLogicalNotOnLHSofComparison() local
7815 if (SubExpr->getType()->isBooleanType()) return; in diagnoseLogicalNotOnLHSofComparison()
7822 SourceLocation FirstOpen = SubExpr->getLocStart(); in diagnoseLogicalNotOnLHSofComparison()
9612 Expr *SubExpr, StringRef Shift) { in DiagnoseAdditionInShift() argument
9613 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(SubExpr)) { in DiagnoseAdditionInShift()
12946 Expr *SubExpr) { in ActOnBooleanCondition() argument
12947 if (!SubExpr) in ActOnBooleanCondition()
12950 return CheckBooleanCondition(SubExpr, Loc); in ActOnBooleanCondition()
12979 Expr *SubExpr = SubResult.get(); in rebuildSugarExpr() local
12980 E->setSubExpr(SubExpr); in rebuildSugarExpr()
[all …]
DAnalysisBasedWarnings.cpp134 if (const Expr *SubExpr = dyn_cast<Expr>(*SubStmts)) in HasMacroID() local
135 if (HasMacroID(SubExpr)) in HasMacroID()
DSemaChecking.cpp4625 Expr* SubExpr = cast<CastExpr>(E)->getSubExpr(); in EvalAddr() local
4636 return EvalAddr(SubExpr, refVars, ParentDecl); in EvalAddr()
4639 return EvalVal(SubExpr, refVars, ParentDecl); in EvalAddr()
4642 if (SubExpr->getType()->isAnyPointerType() || in EvalAddr()
4643 SubExpr->getType()->isBlockPointerType() || in EvalAddr()
4644 SubExpr->getType()->isObjCQualifiedIdType()) in EvalAddr()
4645 return EvalAddr(SubExpr, refVars, ParentDecl); in EvalAddr()
DSemaInit.cpp2221 Expr *SubExpr = StructuredList->getInit(0)->IgnoreParens(); in CheckDesignatedInitializer() local
2232 if (StringLiteral *SL = dyn_cast<StringLiteral>(SubExpr)) { in CheckDesignatedInitializer()
2244 Context, CodeUnit, PromotedCharTy, SubExpr->getExprLoc()); in CheckDesignatedInitializer()
2251 ObjCEncodeExpr *E = cast<ObjCEncodeExpr>(SubExpr); in CheckDesignatedInitializer()
2266 Context, CodeUnit, PromotedCharTy, SubExpr->getExprLoc()); in CheckDesignatedInitializer()
/external/llvm/include/llvm/MC/
DMCRelocationInfo.h49 virtual const MCExpr *createExprForCAPIVariantKind(const MCExpr *SubExpr,
/external/clang/lib/AST/
DExprCXX.cpp773 ParmVarDecl *Param, Expr *SubExpr) { in Create() argument
776 SubExpr); in Create()
797 Expr* SubExpr) { in Create() argument
798 assert((SubExpr->getType()->isRecordType() || in Create()
799 SubExpr->getType()->isArrayType()) && in Create()
802 return new (C) CXXBindTemporaryExpr(Temp, SubExpr); in Create()
1109 SubExpr(subexpr) { in ExprWithCleanups()
DExprConstant.cpp4721 const Expr* SubExpr = E->getSubExpr(); in VisitCastExpr() local
4731 if (!Visit(SubExpr)) in VisitCastExpr()
4738 if (SubExpr->getType()->isVoidPointerType()) in VisitCastExpr()
4740 << 3 << SubExpr->getType(); in VisitCastExpr()
4774 if (!EvaluateIntegerOrLValue(SubExpr, Value, Info)) in VisitCastExpr()
4792 if (SubExpr->isGLValue()) { in VisitCastExpr()
4793 if (!EvaluateLValue(SubExpr, Result, Info)) in VisitCastExpr()
4796 Result.set(SubExpr, Info.CurrentCall->Index); in VisitCastExpr()
4797 if (!EvaluateInPlace(Info.CurrentCall->createTemporary(SubExpr, false), in VisitCastExpr()
4798 Info, Result, SubExpr)) in VisitCastExpr()
[all …]
DExpr.cpp1641 Expr *SubExpr = nullptr; in getSubExprAsWritten() local
1644 SubExpr = E->getSubExpr(); in getSubExprAsWritten()
1648 = dyn_cast<MaterializeTemporaryExpr>(SubExpr)) in getSubExprAsWritten()
1649 SubExpr = Materialize->GetTemporaryExpr(); in getSubExprAsWritten()
1652 if (CXXBindTemporaryExpr *Binder = dyn_cast<CXXBindTemporaryExpr>(SubExpr)) in getSubExprAsWritten()
1653 SubExpr = Binder->getSubExpr(); in getSubExprAsWritten()
1658 SubExpr = cast<CXXConstructExpr>(SubExpr)->getArg(0); in getSubExprAsWritten()
1660 SubExpr = cast<CXXMemberCallExpr>(SubExpr)->getImplicitObjectArgument(); in getSubExprAsWritten()
1664 } while ((E = dyn_cast<ImplicitCastExpr>(SubExpr))); in getSubExprAsWritten()
1666 return SubExpr; in getSubExprAsWritten()
DASTImporter.cpp4405 Expr *SubExpr = Importer.Import(E->getSubExpr()); in VisitParenExpr() local
4406 if (!SubExpr) in VisitParenExpr()
4412 SubExpr); in VisitParenExpr()
4420 Expr *SubExpr = Importer.Import(E->getSubExpr()); in VisitUnaryOperator() local
4421 if (!SubExpr) in VisitUnaryOperator()
4424 return new (Importer.getToContext()) UnaryOperator(SubExpr, E->getOpcode(), in VisitUnaryOperator()
4445 Expr *SubExpr = Importer.Import(E->getArgumentExpr()); in VisitUnaryExprOrTypeTraitExpr() local
4446 if (!SubExpr) in VisitUnaryExprOrTypeTraitExpr()
4450 SubExpr, ResultType, in VisitUnaryExprOrTypeTraitExpr()
4517 Expr *SubExpr = Importer.Import(E->getSubExpr()); in VisitImplicitCastExpr() local
[all …]
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldChecker.cpp110 StringRef SubExpr, in unexpectedToken() argument
114 if (SubExpr != "") { in unexpectedToken()
116 ErrorMsg += SubExpr; in unexpectedToken()
/external/clang/lib/Parse/
DParseExpr.cpp2005 ExprResult SubExpr = ParseCastExpression(/*isUnaryExpression=*/false); in ParseParenExpression() local
2007 if (Ty.isInvalid() || SubExpr.isInvalid()) in ParseParenExpression()
2012 RParenLoc, SubExpr.get()); in ParseParenExpression()
/external/clang/lib/Serialization/
DASTReaderStmt.cpp925 E->SubExpr = Reader.ReadSubStmt(); in VisitObjCBoxedExpr()
1242 E->SubExpr = Reader.ReadSubExpr(); in VisitCXXStdInitializerListExpr()
1405 E->SubExpr = Reader.ReadSubExpr(); in VisitExprWithCleanups()
2565 Expr *SubExpr = ReadSubExpr(); in ReadStmtFromStream() local
2567 SubExpr); in ReadStmtFromStream()
/external/llvm/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp2511 const SCEV *SubExpr = *I; in getExprBase() local
2512 if (SubExpr->getSCEVType() == scAddExpr) in getExprBase()
2513 return getExprBase(SubExpr); in getExprBase()
2515 if (SubExpr->getSCEVType() != scMulExpr) in getExprBase()
2516 return SubExpr; in getExprBase()
/external/clang/lib/Rewrite/Frontend/
DRewriteModernObjC.cpp2695 const Expr *SubExpr = ICE->IgnoreParenImpCasts(); in RewriteObjCBoxedExpr() local
2697 if (SubExpr->getType()->isIntegralType(*Context) && type->isBooleanType()) in RewriteObjCBoxedExpr()
3513 const Expr *SubExpr = ICE->IgnoreParenImpCasts(); in SynthMessageExpr() local
3515 if (SubExpr->getType()->isIntegralType(*Context) && in SynthMessageExpr()
3519 if (SubExpr->getType()->isBlockPointerType()) { in SynthMessageExpr()
3521 } else if (SubExpr->getType()->isPointerType()) { in SynthMessageExpr()
DRewriteObjC.cpp2890 const Expr *SubExpr = ICE->IgnoreParenImpCasts(); in SynthMessageExpr() local
2892 if (SubExpr->getType()->isIntegralType(*Context) && in SynthMessageExpr()
2896 if (SubExpr->getType()->isBlockPointerType()) { in SynthMessageExpr()
2898 } else if (SubExpr->getType()->isPointerType()) { in SynthMessageExpr()
/external/clang/lib/CodeGen/
DCGExpr.cpp2287 const Expr *SubExpr = CE->getSubExpr(); in isSimpleArrayDecayOperand() local
2288 if (SubExpr->getType()->isVariableArrayType()) in isSimpleArrayDecayOperand()
2291 return SubExpr; in isSimpleArrayDecayOperand()
/external/clang/include/clang/Sema/
DSema.h4422 Expr *MaybeCreateExprWithCleanups(Expr *SubExpr);
4424 ExprResult MaybeCreateExprWithCleanups(ExprResult SubExpr);
7022 Expr *SubExpr);
7030 Expr *SubExpr);
7954 Expr *SubExpr);

12