Lines Matching refs:M
261 static CallExpr *create_call_once_funcptr_call(ASTContext &C, ASTMaker M, in create_call_once_funcptr_call() argument
266 DeclRefExpr *Call = M.makeDeclRefExpr(Callback); in create_call_once_funcptr_call()
269 SubExpr = M.makeImplicitCast( in create_call_once_funcptr_call()
274 SubExpr = M.makeImplicitCast(Call, Ty, CK_FunctionToPointerDecay); in create_call_once_funcptr_call()
287 static CallExpr *create_call_once_lambda_call(ASTContext &C, ASTMaker M, in create_call_once_lambda_call() argument
323 ASTMaker M(C); in create_std_move_forward() local
326 Expr *Param = M.makeDeclRefExpr(D->getParamDecl(0)); in create_std_move_forward()
327 Expr *Cast = M.makeReferenceCast(Param, ReturnType); in create_std_move_forward()
328 return M.makeReturn(Cast); in create_std_move_forward()
353 ASTMaker M(C); in create_call_once() local
383 ValueDecl *FlagFieldDecl = M.findMemberField(FlagRecordDecl, "__state_"); in create_call_once()
388 FlagFieldDecl = M.findMemberField(FlagRecordDecl, "_M_once"); in create_call_once()
412 M.makeDeclRefExpr(Callback, in create_call_once()
450 Expr *ParamExpr = M.makeDeclRefExpr(PDecl); in create_call_once()
453 ParamExpr = M.makeLvalueToRvalue(ParamExpr, PTy); in create_call_once()
461 CallbackCall = create_call_once_lambda_call(C, M, Callback, in create_call_once()
466 CallbackCall = create_call_once_funcptr_call(C, M, Callback, CallArgs); in create_call_once()
470 M.makeDeclRefExpr(Flag, in create_call_once()
474 MemberExpr *Deref = M.makeMemberExpression(FlagDecl, FlagFieldDecl); in create_call_once()
482 M.makeImplicitCast(M.makeLvalueToRvalue(Deref, DerefType), DerefType, in create_call_once()
491 BinaryOperator *FlagAssignment = M.makeAssignment( in create_call_once()
492 Deref, M.makeIntegralCast(M.makeIntegerLiteral(1, C.IntTy), DerefType), in create_call_once()
502 /* Then=*/M.makeCompound({CallbackCall, FlagAssignment})); in create_call_once()
539 ASTMaker M(C); in create_dispatch_once() local
544 /*StmtClass=*/M.makeLvalueToRvalue(/*Expr=*/Block), in create_dispatch_once()
552 UnaryOperator::Create(C, M.makeIntegerLiteral(0, C.LongTy), UO_Not, in create_dispatch_once()
557 M.makeAssignment( in create_dispatch_once()
558 M.makeDereference( in create_dispatch_once()
559 M.makeLvalueToRvalue( in create_dispatch_once()
560 M.makeDeclRefExpr(Predicate), PredicateQPtrTy), in create_dispatch_once()
562 M.makeIntegralCast(DoneValue, PredicateTy), in create_dispatch_once()
567 CompoundStmt *CS = M.makeCompound(Stmts); in create_dispatch_once()
571 M.makeLvalueToRvalue( in create_dispatch_once()
572 M.makeDereference( in create_dispatch_once()
573 M.makeLvalueToRvalue( in create_dispatch_once()
574 M.makeDeclRefExpr(Predicate), in create_dispatch_once()
579 Expr *GuardCondition = M.makeComparison(LValToRval, DoneValue, BO_NE); in create_dispatch_once()
610 ASTMaker M(C); in create_dispatch_sync() local
611 DeclRefExpr *DR = M.makeDeclRefExpr(PV); in create_dispatch_sync()
612 ImplicitCastExpr *ICE = M.makeLvalueToRvalue(DR, Ty); in create_dispatch_sync()
655 ASTMaker M(C); in create_OSAtomicCompareAndSwap() local
658 M.makeComparison( in create_OSAtomicCompareAndSwap()
659 M.makeLvalueToRvalue(M.makeDeclRefExpr(OldValue), OldValueTy), in create_OSAtomicCompareAndSwap()
660 M.makeLvalueToRvalue( in create_OSAtomicCompareAndSwap()
661 M.makeDereference( in create_OSAtomicCompareAndSwap()
662 M.makeLvalueToRvalue(M.makeDeclRefExpr(TheValue), TheValueTy), in create_OSAtomicCompareAndSwap()
670 M.makeAssignment( in create_OSAtomicCompareAndSwap()
671 M.makeDereference( in create_OSAtomicCompareAndSwap()
672 M.makeLvalueToRvalue(M.makeDeclRefExpr(TheValue), TheValueTy), in create_OSAtomicCompareAndSwap()
674 M.makeLvalueToRvalue(M.makeDeclRefExpr(NewValue), NewValueTy), in create_OSAtomicCompareAndSwap()
677 Expr *BoolVal = M.makeObjCBool(true); in create_OSAtomicCompareAndSwap()
678 Expr *RetVal = isBoolean ? M.makeIntegralCastToBoolean(BoolVal) in create_OSAtomicCompareAndSwap()
679 : M.makeIntegralCast(BoolVal, ResultTy); in create_OSAtomicCompareAndSwap()
680 Stmts[1] = M.makeReturn(RetVal); in create_OSAtomicCompareAndSwap()
681 CompoundStmt *Body = M.makeCompound(Stmts); in create_OSAtomicCompareAndSwap()
684 BoolVal = M.makeObjCBool(false); in create_OSAtomicCompareAndSwap()
685 RetVal = isBoolean ? M.makeIntegralCastToBoolean(BoolVal) in create_OSAtomicCompareAndSwap()
686 : M.makeIntegralCast(BoolVal, ResultTy); in create_OSAtomicCompareAndSwap()
687 Stmt *Else = M.makeReturn(RetVal); in create_OSAtomicCompareAndSwap()
832 ASTMaker M(Ctx); in createObjCPropertyGetter() local
833 return M.makeReturn(I->getGetterCXXConstructor()); in createObjCPropertyGetter()
849 ASTMaker M(Ctx); in createObjCPropertyGetter() local
855 Expr *loadedIVar = M.makeObjCIvarRef( in createObjCPropertyGetter()
856 M.makeLvalueToRvalue(M.makeDeclRefExpr(selfVar), selfVar->getType()), in createObjCPropertyGetter()
860 loadedIVar = M.makeLvalueToRvalue(loadedIVar, IVar->getType()); in createObjCPropertyGetter()
862 return M.makeReturn(loadedIVar); in createObjCPropertyGetter()