Home
last modified time | relevance | path

Searched refs:CE (Results 1 – 25 of 1037) sorted by relevance

12345678910>>...42

/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DUnixAPIChecker.cpp48 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
50 void CheckOpen(CheckerContext &C, const CallExpr *CE) const;
51 void CheckOpenAt(CheckerContext &C, const CallExpr *CE) const;
52 void CheckPthreadOnce(CheckerContext &C, const CallExpr *CE) const;
55 const CallExpr *CE, OpenVariant Variant) const;
66 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
71 void CheckCallocZero(CheckerContext &C, const CallExpr *CE) const;
72 void CheckMallocZero(CheckerContext &C, const CallExpr *CE) const;
73 void CheckReallocZero(CheckerContext &C, const CallExpr *CE) const;
74 void CheckReallocfZero(CheckerContext &C, const CallExpr *CE) const;
[all …]
DExprInspectionChecker.cpp37 void analyzerEval(const CallExpr *CE, CheckerContext &C) const;
38 void analyzerCheckInlined(const CallExpr *CE, CheckerContext &C) const;
39 void analyzerWarnIfReached(const CallExpr *CE, CheckerContext &C) const;
40 void analyzerNumTimesReached(const CallExpr *CE, CheckerContext &C) const;
41 void analyzerCrash(const CallExpr *CE, CheckerContext &C) const;
42 void analyzerWarnOnDeadSymbol(const CallExpr *CE, CheckerContext &C) const;
43 void analyzerDump(const CallExpr *CE, CheckerContext &C) const;
44 void analyzerExplain(const CallExpr *CE, CheckerContext &C) const;
45 void analyzerPrintState(const CallExpr *CE, CheckerContext &C) const;
46 void analyzerGetExtent(const CallExpr *CE, CheckerContext &C) const;
[all …]
DCheckSecuritySyntaxOnly.cpp87 void VisitCallExpr(CallExpr *CE);
88 void VisitObjCMessageExpr(ObjCMessageExpr *CE);
96 bool checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD);
103 void checkCall_bcmp(const CallExpr *CE, const FunctionDecl *FD);
104 void checkCall_bcopy(const CallExpr *CE, const FunctionDecl *FD);
105 void checkCall_bzero(const CallExpr *CE, const FunctionDecl *FD);
106 void checkCall_gets(const CallExpr *CE, const FunctionDecl *FD);
107 void checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD);
108 void checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD);
109 void checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD);
[all …]
DDebugIteratorModeling.cpp33 void analyzerIteratorDataField(const CallExpr *CE, CheckerContext &C,
35 void analyzerIteratorPosition(const CallExpr *CE, CheckerContext &C) const;
36 void analyzerIteratorContainer(const CallExpr *CE, CheckerContext &C) const;
37 void analyzerIteratorValidity(const CallExpr *CE, CheckerContext &C) const;
68 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr()); in evalCall() local
69 if (!CE) in evalCall()
76 (this->**Handler)(CE, C); in evalCall()
81 void DebugIteratorModeling::analyzerIteratorDataField(const CallExpr *CE, in analyzerIteratorDataField() argument
85 if (CE->getNumArgs() == 0) { in analyzerIteratorDataField()
91 SVal V = C.getSVal(CE->getArg(0)); in analyzerIteratorDataField()
[all …]
DCStringSyntaxChecker.cpp55 if (const auto *CE = dyn_cast<CallExpr>(E)) { in isStrlen() local
56 const FunctionDecl *FD = CE->getDirectCallee(); in isStrlen()
60 sameDecl(CE->getArg(0), WithArg)); in isStrlen()
80 bool containsBadStrncatPattern(const CallExpr *CE);
101 bool containsBadStrlcpyStrlcatPattern(const CallExpr *CE);
112 void VisitCallExpr(CallExpr *CE);
122 bool WalkAST::containsBadStrncatPattern(const CallExpr *CE) { in containsBadStrncatPattern() argument
123 if (CE->getNumArgs() != 3) in containsBadStrncatPattern()
125 const Expr *DstArg = CE->getArg(0); in containsBadStrncatPattern()
126 const Expr *SrcArg = CE->getArg(1); in containsBadStrncatPattern()
[all …]
DSTLAlgorithmModeling.cpp27 bool evalFind(CheckerContext &C, const CallExpr *CE) const;
29 void Find(CheckerContext &C, const CallExpr *CE, unsigned paramNum) const;
70 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr()); in evalCall() local
71 if (!CE) in evalCall()
78 return (this->**Handler)(C, CE); in evalCall()
82 const CallExpr *CE) const { in evalFind()
87 if (!isIteratorType(CE->getArg(1)->getType())) in evalFind()
92 if (isIteratorType(CE->getArg(0)->getType())) { in evalFind()
93 Find(C, CE, 0); in evalFind()
99 if (isIteratorType(CE->getArg(2)->getType())) { in evalFind()
[all …]
DDebugContainerModeling.cpp33 void analyzerContainerDataField(const CallExpr *CE, CheckerContext &C,
35 void analyzerContainerBegin(const CallExpr *CE, CheckerContext &C) const;
36 void analyzerContainerEnd(const CallExpr *CE, CheckerContext &C) const;
65 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr()); in evalCall() local
66 if (!CE) in evalCall()
73 (this->**Handler)(CE, C); in evalCall()
78 void DebugContainerModeling::analyzerContainerDataField(const CallExpr *CE, in analyzerContainerDataField() argument
81 if (CE->getNumArgs() == 0) { in analyzerContainerDataField()
87 const MemRegion *Cont = C.getSVal(CE->getArg(0)).getAsRegion(); in analyzerContainerDataField()
93 State = State->BindExpr(CE, C.getLocationContext(), in analyzerContainerDataField()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DStreamChecker.cpp76 bool evalCall(const CallExpr *CE, CheckerContext &C) const;
80 void Fopen(CheckerContext &C, const CallExpr *CE) const;
81 void Tmpfile(CheckerContext &C, const CallExpr *CE) const;
82 void Fclose(CheckerContext &C, const CallExpr *CE) const;
83 void Fread(CheckerContext &C, const CallExpr *CE) const;
84 void Fwrite(CheckerContext &C, const CallExpr *CE) const;
85 void Fseek(CheckerContext &C, const CallExpr *CE) const;
86 void Ftell(CheckerContext &C, const CallExpr *CE) const;
87 void Rewind(CheckerContext &C, const CallExpr *CE) const;
88 void Fgetpos(CheckerContext &C, const CallExpr *CE) const;
[all …]
DGenericTaintChecker.cpp36 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
38 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
53 bool checkPre(const CallExpr *CE, CheckerContext &C) const;
56 void addSourcesPre(const CallExpr *CE, CheckerContext &C) const;
59 bool propagateFromPre(const CallExpr *CE, CheckerContext &C) const;
62 void addSourcesPost(const CallExpr *CE, CheckerContext &C) const;
75 ProgramStateRef postScanf(const CallExpr *CE, CheckerContext &C) const;
76 ProgramStateRef postSocket(const CallExpr *CE, CheckerContext &C) const;
77 ProgramStateRef postRetTaint(const CallExpr *CE, CheckerContext &C) const;
80 ProgramStateRef preFscanf(const CallExpr *CE, CheckerContext &C) const;
[all …]
DExprInspectionChecker.cpp24 void analyzerEval(const CallExpr *CE, CheckerContext &C) const;
25 void analyzerCheckInlined(const CallExpr *CE, CheckerContext &C) const;
26 void analyzerWarnIfReached(const CallExpr *CE, CheckerContext &C) const;
27 void analyzerCrash(const CallExpr *CE, CheckerContext &C) const;
28 void analyzerWarnOnDeadSymbol(const CallExpr *CE, CheckerContext &C) const;
29 void analyzerExplain(const CallExpr *CE, CheckerContext &C) const;
30 void analyzerGetExtent(const CallExpr *CE, CheckerContext &C) const;
38 bool evalCall(const CallExpr *CE, CheckerContext &C) const;
45 bool ExprInspectionChecker::evalCall(const CallExpr *CE, in REGISTER_SET_WITH_PROGRAMSTATE()
49 FnCheck Handler = llvm::StringSwitch<FnCheck>(C.getCalleeName(CE)) in REGISTER_SET_WITH_PROGRAMSTATE()
[all …]
DUnixAPIChecker.cpp37 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
39 void CheckOpen(CheckerContext &C, const CallExpr *CE) const;
40 void CheckPthreadOnce(CheckerContext &C, const CallExpr *CE) const;
41 void CheckCallocZero(CheckerContext &C, const CallExpr *CE) const;
42 void CheckMallocZero(CheckerContext &C, const CallExpr *CE) const;
43 void CheckReallocZero(CheckerContext &C, const CallExpr *CE) const;
44 void CheckReallocfZero(CheckerContext &C, const CallExpr *CE) const;
45 void CheckAllocaZero(CheckerContext &C, const CallExpr *CE) const;
46 void CheckVallocZero(CheckerContext &C, const CallExpr *CE) const;
56 const CallExpr *CE,
[all …]
DPthreadLockChecker.cpp64 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
66 void AcquireLock(CheckerContext &C, const CallExpr *CE, SVal lock,
69 void ReleaseLock(CheckerContext &C, const CallExpr *CE, SVal lock) const;
70 void DestroyLock(CheckerContext &C, const CallExpr *CE, SVal Lock) const;
71 void InitLock(CheckerContext &C, const CallExpr *CE, SVal Lock) const;
72 void reportUseDestroyedBug(CheckerContext &C, const CallExpr *CE) const;
81 void PthreadLockChecker::checkPostStmt(const CallExpr *CE, in REGISTER_LIST_WITH_PROGRAMSTATE()
85 StringRef FName = C.getCalleeName(CE); in REGISTER_LIST_WITH_PROGRAMSTATE()
89 if (CE->getNumArgs() != 1 && CE->getNumArgs() != 2) in REGISTER_LIST_WITH_PROGRAMSTATE()
95 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in REGISTER_LIST_WITH_PROGRAMSTATE()
[all …]
DCheckSecuritySyntaxOnly.cpp79 void VisitCallExpr(CallExpr *CE);
87 bool checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD);
93 void checkCall_gets(const CallExpr *CE, const FunctionDecl *FD);
94 void checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD);
95 void checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD);
96 void checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD);
97 void checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD);
98 void checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD);
99 void checkCall_rand(const CallExpr *CE, const FunctionDecl *FD);
100 void checkCall_random(const CallExpr *CE, const FunctionDecl *FD);
[all …]
DCStringChecker.cpp62 bool evalCall(const CallExpr *CE, CheckerContext &C) const;
78 void evalMemcpy(CheckerContext &C, const CallExpr *CE) const;
79 void evalMempcpy(CheckerContext &C, const CallExpr *CE) const;
80 void evalMemmove(CheckerContext &C, const CallExpr *CE) const;
81 void evalBcopy(CheckerContext &C, const CallExpr *CE) const;
82 void evalCopyCommon(CheckerContext &C, const CallExpr *CE,
90 void evalMemcmp(CheckerContext &C, const CallExpr *CE) const;
92 void evalstrLength(CheckerContext &C, const CallExpr *CE) const;
93 void evalstrnLength(CheckerContext &C, const CallExpr *CE) const;
95 const CallExpr *CE,
[all …]
DBuiltinFunctionChecker.cpp27 bool evalCall(const CallExpr *CE, CheckerContext &C) const;
32 bool BuiltinFunctionChecker::evalCall(const CallExpr *CE, in evalCall() argument
35 const FunctionDecl *FD = C.getCalleeDecl(CE); in evalCall()
52 assert (CE->arg_begin() != CE->arg_end()); in evalCall()
53 SVal X = state->getSVal(*(CE->arg_begin()), LCtx); in evalCall()
54 C.addTransition(state->BindExpr(CE, LCtx, X)); in evalCall()
62 RM.getAllocaRegion(CE, C.blockCount(), C.getLocationContext()); in evalCall()
68 state->getSVal(*(CE->arg_begin()), LCtx).castAs<DefinedOrUnknownSVal>(); in evalCall()
77 C.addTransition(state->BindExpr(CE, LCtx, loc::MemRegionVal(R))); in evalCall()
86 if (CE->EvaluateAsInt(Result, C.getASTContext(), Expr::SE_NoSideEffects)) { in evalCall()
[all …]
DCStringSyntaxChecker.cpp57 if (const CallExpr *CE = dyn_cast<CallExpr>(E)) { in isStrlen() local
58 const FunctionDecl *FD = CE->getDirectCallee(); in isStrlen()
62 sameDecl(CE->getArg(0), WithArg)); in isStrlen()
82 bool containsBadStrncatPattern(const CallExpr *CE);
93 void VisitCallExpr(CallExpr *CE);
103 bool WalkAST::containsBadStrncatPattern(const CallExpr *CE) { in containsBadStrncatPattern() argument
104 if (CE->getNumArgs() != 3) in containsBadStrncatPattern()
106 const Expr *DstArg = CE->getArg(0); in containsBadStrncatPattern()
107 const Expr *SrcArg = CE->getArg(1); in containsBadStrncatPattern()
108 const Expr *LenArg = CE->getArg(2); in containsBadStrncatPattern()
[all …]
/external/clang/unittests/Tooling/
DFixItTest.cpp38 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() argument
39 EXPECT_EQ("foo(x, y)", getText(*CE, *Context)); in TEST()
40 EXPECT_EQ("foo(x, y)", getText(CE->getSourceRange(), *Context)); in TEST()
42 Expr *P0 = CE->getArg(0); in TEST()
43 Expr *P1 = CE->getArg(1); in TEST()
49 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() argument
50 EXPECT_EQ("APPLY(foo, x, y)", getText(*CE, *Context)); in TEST()
59 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() argument
60 EXPECT_EQ("F OO", getText(*CE, *Context)); in TEST()
61 Expr *P0 = CE->getArg(0); in TEST()
[all …]
/external/llvm-project/clang/unittests/Tooling/
DFixItTest.cpp37 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() argument
38 EXPECT_EQ("foo(x, y)", getText(*CE, *Context)); in TEST()
39 EXPECT_EQ("foo(x, y)", getText(CE->getSourceRange(), *Context)); in TEST()
41 Expr *P0 = CE->getArg(0); in TEST()
42 Expr *P1 = CE->getArg(1); in TEST()
48 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() argument
49 EXPECT_EQ("APPLY(foo, x, y)", getText(*CE, *Context)); in TEST()
58 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() argument
59 EXPECT_EQ("F OO", getText(*CE, *Context)); in TEST()
60 Expr *P0 = CE->getArg(0); in TEST()
[all …]
/external/llvm-project/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp78 createReplacementInstr(ConstantExpr *CE, Instruction *Instr) { in createReplacementInstr() argument
80 unsigned OpCode = CE->getOpcode(); in createReplacementInstr()
83 SmallVector<Value *,4> CEOpVec(CE->op_begin(), CE->op_end()); in createReplacementInstr()
86 cast<GEPOperator>(CE)->getSourceElementType(), CEOps[0], in createReplacementInstr()
106 CE->getOperand(0), CE->getOperand(1), in createReplacementInstr()
107 CE->getName())); in createReplacementInstr()
122 CE->getOperand(0), CE->getType(), in createReplacementInstr()
123 CE->getName())); in createReplacementInstr()
129 static bool replaceConstantExprOp(ConstantExpr *CE, Pass *P) { in replaceConstantExprOp() argument
131 SmallVector<WeakTrackingVH, 8> WUsers(CE->user_begin(), CE->user_end()); in replaceConstantExprOp()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp78 createReplacementInstr(ConstantExpr *CE, Instruction *Instr) { in createReplacementInstr() argument
80 unsigned OpCode = CE->getOpcode(); in createReplacementInstr()
83 SmallVector<Value *,4> CEOpVec(CE->op_begin(), CE->op_end()); in createReplacementInstr()
86 cast<GEPOperator>(CE)->getSourceElementType(), CEOps[0], in createReplacementInstr()
106 CE->getOperand(0), CE->getOperand(1), in createReplacementInstr()
107 CE->getName())); in createReplacementInstr()
122 CE->getOperand(0), CE->getType(), in createReplacementInstr()
123 CE->getName())); in createReplacementInstr()
129 static bool replaceConstantExprOp(ConstantExpr *CE, Pass *P) { in replaceConstantExprOp() argument
131 SmallVector<WeakTrackingVH, 8> WUsers(CE->user_begin(), CE->user_end()); in replaceConstantExprOp()
[all …]
/external/llvm-project/llvm/test/CodeGen/AMDGPU/
Dpal-userdata-regs.ll16CE\00,\00\00\CD,\0B\04\CD,\0C\CE\10\00\00\00\CD,J\CE\00,\00\00\CD,K\08\CD,L\CE\10\00\00\00\CD,\8A\
/external/llvm/unittests/Support/
DErrorTest.cpp85 static Error handleCustomError(const CustomError &CE) { return Error(); } in handleCustomError() argument
87 static void handleCustomErrorVoid(const CustomError &CE) {} in handleCustomErrorVoid() argument
89 static Error handleCustomErrorUP(std::unique_ptr<CustomError> CE) { in handleCustomErrorUP() argument
93 static void handleCustomErrorUPVoid(std::unique_ptr<CustomError> CE) {} in handleCustomErrorUPVoid() argument
172 handleAllErrors(make_error<CustomError>(42), [&](const CustomError &CE) { in TEST() argument
173 CaughtErrorInfo = CE.getInfo(); in TEST()
194 handleAllErrors(make_error<CustomError>(42), [](const CustomError &CE) {}); in TEST() argument
198 [](const CustomError &CE) mutable { return Error::success(); }); in TEST() argument
201 [](const CustomError &CE) mutable {}); in TEST() argument
204 [](CustomError &CE) { return Error::success(); }); in TEST() argument
[all …]
/external/llvm-project/llvm/unittests/Transforms/Utils/
DCodeExtractorTest.cpp62 CodeExtractor CE(Candidates); in TEST() local
63 EXPECT_TRUE(CE.isEligible()); in TEST()
66 Function *Outlined = CE.extractCodeRegion(CEAC); in TEST()
113 CodeExtractor CE(ExtractedBlocks); in TEST() local
114 EXPECT_TRUE(CE.isEligible()); in TEST()
117 Function *Outlined = CE.extractCodeRegion(CEAC); in TEST()
188 CodeExtractor CE(ExtractedBlocks); in TEST() local
189 EXPECT_TRUE(CE.isEligible()); in TEST()
192 Function *Outlined = CE.extractCodeRegion(CEAC); in TEST()
223 CodeExtractor CE(Blocks); in TEST() local
[all …]
/external/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp78 createReplacementInstr(ConstantExpr *CE, Instruction *Instr) { in createReplacementInstr() argument
80 unsigned OpCode = CE->getOpcode(); in createReplacementInstr()
83 SmallVector<Value *,4> CEOpVec(CE->op_begin(), CE->op_end()); in createReplacementInstr()
86 cast<GEPOperator>(CE)->getSourceElementType(), CEOps[0], in createReplacementInstr()
106 CE->getOperand(0), CE->getOperand(1), in createReplacementInstr()
107 CE->getName())); in createReplacementInstr()
122 CE->getOperand(0), CE->getType(), in createReplacementInstr()
123 CE->getName())); in createReplacementInstr()
129 static bool replaceConstantExprOp(ConstantExpr *CE, Pass *P) { in replaceConstantExprOp() argument
131 SmallVector<WeakVH,8> WUsers(CE->user_begin(), CE->user_end()); in replaceConstantExprOp()
[all …]
/external/llvm-project/llvm/lib/IR/
DConstantsContext.h60 static bool classof(const ConstantExpr *CE) { in classof() argument
61 return Instruction::isCast(CE->getOpcode()) || in classof()
62 Instruction::isUnaryOp(CE->getOpcode()); in classof()
89 static bool classof(const ConstantExpr *CE) { in classof() argument
90 return Instruction::isBinaryOp(CE->getOpcode()); in classof()
116 static bool classof(const ConstantExpr *CE) { in classof() argument
117 return CE->getOpcode() == Instruction::Select; in classof()
144 static bool classof(const ConstantExpr *CE) { in classof() argument
145 return CE->getOpcode() == Instruction::ExtractElement; in classof()
173 static bool classof(const ConstantExpr *CE) { in classof() argument
[all …]

12345678910>>...42