Home
last modified time | relevance | path

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

12345678910>>...16

/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_posix_fadvise.c108 #define CE(x, exp) \ in ATF_TC_BODY() macro
117 CE(posix_fadvise(fd, 0, 0, -1), EINVAL); in ATF_TC_BODY()
118 CE(posix_fadvise(pipe_fds[0], 0, 0, POSIX_FADV_NORMAL), ESPIPE); in ATF_TC_BODY()
119 CE(posix_fadvise(badfd, 0, 0, POSIX_FADV_NORMAL), EBADF); in ATF_TC_BODY()
120 CE(posix_fadvise(fd, 0, 0, POSIX_FADV_NORMAL), 0); in ATF_TC_BODY()
121 CE(posix_fadvise(fd, 0, 0, POSIX_FADV_SEQUENTIAL), 0); in ATF_TC_BODY()
122 CE(posix_fadvise(fd, 0, 0, POSIX_FADV_RANDOM), 0); in ATF_TC_BODY()
123 CE(posix_fadvise(fd, 0, 0, POSIX_FADV_WILLNEED), 0); in ATF_TC_BODY()
124 CE(posix_fadvise(fd, 0, 0, POSIX_FADV_DONTNEED), 0); in ATF_TC_BODY()
125 CE(posix_fadvise(fd, 0, 0, POSIX_FADV_NOREUSE), 0); in ATF_TC_BODY()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A 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 …]
H A DDebugIteratorModeling.cpp35 void analyzerIteratorDataField(const CallExpr *CE, CheckerContext &C,
37 void analyzerIteratorPosition(const CallExpr *CE, CheckerContext &C) const;
38 void analyzerIteratorContainer(const CallExpr *CE, CheckerContext &C) const;
39 void analyzerIteratorValidity(const CallExpr *CE, CheckerContext &C) const;
62 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr()); in evalCall() local
63 if (!CE) in evalCall()
70 (this->**Handler)(CE, C); in evalCall()
75 void DebugIteratorModeling::analyzerIteratorDataField(const CallExpr *CE, in analyzerIteratorDataField() argument
79 if (CE->getNumArgs() == 0) { in analyzerIteratorDataField()
85 SVal V = C.getSVal(CE->getArg(0)); in analyzerIteratorDataField()
[all …]
H A DSTLAlgorithmModeling.cpp28 bool evalFind(CheckerContext &C, const CallExpr *CE) const;
30 void Find(CheckerContext &C, const CallExpr *CE, unsigned paramNum) const;
92 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr()); in evalCall() local
93 if (!CE) in evalCall()
100 return (this->**Handler)(C, CE); in evalCall()
104 const CallExpr *CE) const { in evalFind()
109 if (!isIteratorType(CE->getArg(1)->getType())) in evalFind()
114 if (isIteratorType(CE->getArg(0)->getType())) { in evalFind()
115 Find(C, CE, 0); in evalFind()
121 if (isIteratorType(CE->getArg(2)->getType())) { in evalFind()
[all …]
H A DDebugContainerModeling.cpp35 void analyzerContainerDataField(const CallExpr *CE, CheckerContext &C,
37 void analyzerContainerBegin(const CallExpr *CE, CheckerContext &C) const;
38 void analyzerContainerEnd(const CallExpr *CE, CheckerContext &C) const;
59 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr()); in evalCall() local
60 if (!CE) in evalCall()
67 (this->**Handler)(CE, C); in evalCall()
72 void DebugContainerModeling::analyzerContainerDataField(const CallExpr *CE, in analyzerContainerDataField() argument
75 if (CE->getNumArgs() == 0) { in analyzerContainerDataField()
81 const MemRegion *Cont = C.getSVal(CE->getArg(0)).getAsRegion(); in analyzerContainerDataField()
87 State = State->BindExpr(CE, C.getLocationContext(), in analyzerContainerDataField()
[all …]
H A DObjCContainersChecker.cpp45 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
46 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
78 void ObjCContainersChecker::checkPostStmt(const CallExpr *CE, in checkPostStmt() argument
80 StringRef Name = C.getCalleeName(CE); in checkPostStmt()
81 if (Name.empty() || CE->getNumArgs() < 1) in checkPostStmt()
86 if (CE->getNumArgs() < 3) in checkPostStmt()
91 addSizeInfo(CE, CE->getArg(2), C); in checkPostStmt()
96 addSizeInfo(CE->getArg(0), CE, C); in checkPostStmt()
101 void ObjCContainersChecker::checkPreStmt(const CallExpr *CE, in checkPreStmt() argument
103 StringRef Name = C.getCalleeName(CE); in checkPreStmt()
[all …]
H A DUnixAPIChecker.cpp85 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
92 void CheckCallocZero(CheckerContext &C, const CallExpr *CE) const;
93 void CheckMallocZero(CheckerContext &C, const CallExpr *CE) const;
94 void CheckReallocZero(CheckerContext &C, const CallExpr *CE) const;
95 void CheckReallocfZero(CheckerContext &C, const CallExpr *CE) const;
96 void CheckAllocaZero(CheckerContext &C, const CallExpr *CE) const;
97 void CheckAllocaWithAlignZero(CheckerContext &C, const CallExpr *CE) const;
98 void CheckVallocZero(CheckerContext &C, const CallExpr *CE) const;
105 const CallExpr *CE,
487 const CallExpr *CE, in BasicAllocationCheck() argument
[all …]
H A DObjCContainersASTChecker.cpp80 void VisitCallExpr(CallExpr *CE);
84 static StringRef getCalleeName(CallExpr *CE) { in getCalleeName() argument
85 const FunctionDecl *FD = CE->getDirectCallee(); in getCalleeName()
96 void WalkAST::VisitCallExpr(CallExpr *CE) { in VisitCallExpr() argument
97 StringRef Name = getCalleeName(CE); in VisitCallExpr()
105 if (CE->getNumArgs() != 4) in VisitCallExpr()
108 Arg = CE->getArg(ArgNum)->IgnoreParenCasts(); in VisitCallExpr()
112 if (CE->getNumArgs() != 6) in VisitCallExpr()
116 Arg = CE->getArg(ArgNum)->IgnoreParenCasts(); in VisitCallExpr()
120 Arg = CE->getArg(ArgNum)->IgnoreParenCasts(); in VisitCallExpr()
[all …]
H A DCastToStructChecker.cpp35 bool VisitCastExpr(const CastExpr *CE);
39 bool CastToStructVisitor::VisitCastExpr(const CastExpr *CE) { in VisitCastExpr() argument
40 const Expr *E = CE->getSubExpr(); in VisitCastExpr()
43 QualType ToTy = Ctx.getCanonicalType(CE->getType()); in VisitCastExpr()
63 SourceRange Sr[1] = {CE->getSourceRange()}; in VisitCastExpr()
64 PathDiagnosticLocation Loc(CE, BR.getSourceManager(), AC); in VisitCastExpr()
96 PathDiagnosticLocation Loc(CE, BR.getSourceManager(), AC); in VisitCastExpr()
102 Loc, CE->getSourceRange()); in VisitCastExpr()
H A DBuiltinFunctionChecker.cpp78 const Expr *CE = Call.getOriginExpr(); in evalCall() local
81 C.addTransition(state->BindExpr(CE, LCtx, Call.getArgSVal(0))); in evalCall()
121 C.addTransition(state->BindExpr(CE, LCtx, Arg)); in evalCall()
133 if (CE->EvaluateAsInt(EVResult, C.getASTContext(), Expr::SE_NoSideEffects)) { in evalCall()
137 BVF.getAPSIntType(CE->getType()).apply(Result); in evalCall()
146 V = SVB.makeIntVal(0, CE->getType()); in evalCall()
149 C.addTransition(state->BindExpr(CE, LCtx, V)); in evalCall()
H A DNoReturnFunctionChecker.cpp34 void checkPostCall(const CallEvent &CE, CheckerContext &C) const;
40 void NoReturnFunctionChecker::checkPostCall(const CallEvent &CE, in checkPostCall() argument
44 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CE.getDecl())) in checkPostCall()
47 if (const CallExpr *CExpr = dyn_cast_or_null<CallExpr>(CE.getOriginExpr()); in checkPostCall()
53 if (!BuildSinks && CE.isGlobalCFunction()) { in checkPostCall()
54 if (const IdentifierInfo *II = CE.getCalleeIdentifier()) { in checkPostCall()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantsContext.h59 static bool classof(const ConstantExpr *CE) { in classof() argument
60 return Instruction::isCast(CE->getOpcode()); in classof()
86 static bool classof(const ConstantExpr *CE) { in classof() argument
87 return Instruction::isBinaryOp(CE->getOpcode()); in classof()
113 static bool classof(const ConstantExpr *CE) { in classof() argument
114 return CE->getOpcode() == Instruction::ExtractElement; in classof()
141 static bool classof(const ConstantExpr *CE) { in classof() argument
142 return CE->getOpcode() == Instruction::InsertElement; in classof()
177 static bool classof(const ConstantExpr *CE) { in classof() argument
178 return CE->getOpcode() == Instruction::ShuffleVector; in classof()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DIgnoreExpr.h76 if (auto *CE = dyn_cast<CastExpr>(E)) in IgnoreCastsSingleStep() local
77 return CE->getSubExpr(); in IgnoreCastsSingleStep()
94 if (auto *CE = dyn_cast<CastExpr>(E)) in IgnoreLValueCastsSingleStep() local
95 if (CE->getCastKind() != CK_LValueToRValue) in IgnoreLValueCastsSingleStep()
102 if (auto *CE = dyn_cast<CastExpr>(E)) in IgnoreBaseCastsSingleStep() local
103 if (CE->getCastKind() == CK_DerivedToBase || in IgnoreBaseCastsSingleStep()
104 CE->getCastKind() == CK_UncheckedDerivedToBase || in IgnoreBaseCastsSingleStep()
105 CE->getCastKind() == CK_NoOp) in IgnoreBaseCastsSingleStep()
106 return CE->getSubExpr(); in IgnoreBaseCastsSingleStep()
164 else if (auto *CE = dyn_cast<ChooseExpr>(E)) { in IgnoreParensSingleStep() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedCallArgsChecker.cpp63 bool VisitCallExpr(const CallExpr *CE) { in checkASTDecl()
64 Checker->visitCallExpr(CE); in checkASTDecl()
73 void visitCallExpr(const CallExpr *CE) const { in visitCallExpr()
74 if (shouldSkipCall(CE)) in visitCallExpr()
77 if (auto *F = CE->getDirectCallee()) { in visitCallExpr()
80 unsigned ArgIdx = isa<CXXOperatorCallExpr>(CE) && isa_and_nonnull<CXXMethodDecl>(F); in visitCallExpr()
82 if (auto *MemberCallExpr = dyn_cast<CXXMemberCallExpr>(CE)) { in visitCallExpr()
101 P < F->param_end() && ArgIdx < CE->getNumArgs(); ++P, ++ArgIdx) { in visitCallExpr()
115 const auto *Arg = CE->getArg(ArgIdx); in visitCallExpr()
148 bool shouldSkipCall(const CallExpr *CE) const { in shouldSkipCall()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp78 static bool replaceConstantExprOp(ConstantExpr *CE, Pass *P) { in replaceConstantExprOp() argument
80 SmallVector<WeakTrackingVH, 8> WUsers(CE->users()); in replaceConstantExprOp()
87 if (PN->getIncomingValue(I) == CE) { in replaceConstantExprOp()
93 Instruction *NewInst = CE->getAsInstruction(); in replaceConstantExprOp()
98 Instruction *NewInst = CE->getAsInstruction(); in replaceConstantExprOp()
100 Instr->replaceUsesOfWith(CE, NewInst); in replaceConstantExprOp()
107 } while (CE->hasNUsesOrMore(1)); // We need to check because a recursive in replaceConstantExprOp()
109 CE->destroyConstant(); in replaceConstantExprOp()
120 ConstantExpr *CE = dyn_cast<ConstantExpr>(WU); in rewriteNonInstructionUses() local
121 if (!CE || !replaceConstantExprOp(CE, P)) in rewriteNonInstructionUses()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
H A DMPIChecker.cpp135 const MemRegion *MPIChecker::topRegionUsedByWait(const CallEvent &CE) const { in topRegionUsedByWait()
137 if (FuncClassifier->isMPI_Wait(CE.getCalleeIdentifier())) { in topRegionUsedByWait()
138 return CE.getArgSVal(0).getAsRegion(); in topRegionUsedByWait()
139 } else if (FuncClassifier->isMPI_Waitall(CE.getCalleeIdentifier())) { in topRegionUsedByWait()
140 return CE.getArgSVal(1).getAsRegion(); in topRegionUsedByWait()
148 const MemRegion *const MR, const CallEvent &CE, CheckerContext &Ctx) const { in allRegionsUsedByWait() argument
152 if (FuncClassifier->isMPI_Waitall(CE.getCalleeIdentifier())) { in allRegionsUsedByWait()
166 CE.getArgExpr(1)->getType()->getPointeeType()); in allRegionsUsedByWait()
174 CE.getArgExpr(1)->getType()->getPointeeType(), Idx, SuperRegion, in allRegionsUsedByWait()
179 } else if (FuncClassifier->isMPI_Wait(CE.getCalleeIdentifier())) { in allRegionsUsedByWait()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCXX.cpp319 const auto *CE = dyn_cast_or_null<CXXConstructExpr>(E); in computeObjectUnderConstruction() local
320 if (getIndexOfElementToConstruct(State, CE, LCtx)) { in computeObjectUnderConstruction()
365 if (const auto *CE = dyn_cast<CallExpr>(E)) { in computeObjectUnderConstruction() local
367 CEMgr.getSimpleCall(CE, State, LCtx, getCFGElementRef()); in computeObjectUnderConstruction()
566 const auto *CE = in bindRequiredArrayElementToEnvironment() local
577 SVal NthElem = State->getLValue(CE->getType(), Idx, Base); in bindRequiredArrayElementToEnvironment()
579 return State->BindExpr(CE->getArg(0), LCtx, NthElem); in bindRequiredArrayElementToEnvironment()
585 const auto *CE = dyn_cast<CXXConstructExpr>(E); in handleConstructor() local
587 assert(CE || CIE); in handleConstructor()
594 if (CE) { in handleConstructor()
[all …]
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DGlobalISelCombinerEmitter.cpp88 void declareInstExpansion(CodeExpansions &CE, const InstructionMatcher &IM, in declareInstExpansion() argument
90 CE.declare(Name, "State.MIs[" + to_string(IM.getInsnVarID()) + "]"); in declareInstExpansion()
93 void declareInstExpansion(CodeExpansions &CE, const BuildMIAction &A, in declareInstExpansion() argument
97 CE.redeclare(Name, "OutMIs[" + to_string(A.getInsnID()) + "]"); in declareInstExpansion()
100 void declareOperandExpansion(CodeExpansions &CE, const OperandMatcher &OM, in declareOperandExpansion() argument
102 CE.declare(Name, "State.MIs[" + to_string(OM.getInsnVarID()) + in declareOperandExpansion()
106 void declareTempRegExpansion(CodeExpansions &CE, unsigned TempRegID, in declareTempRegExpansion() argument
108 CE.declare(Name, "State.TempRegisters[" + to_string(TempRegID) + "]"); in declareTempRegExpansion()
681 void declareAllMatchDatasExpansions(CodeExpansions &CE) const;
687 void addCXXPredicate(RuleMatcher &M, const CodeExpansions &CE,
[all …]
H A DGlobalISelCombinerMatchTableEmitter.cpp
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/AsmParser/
H A DARMAsmParser.cpp1077 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm())) in isARMBranchTarget() local
1078 return CE->getValue() % 4 == 0; in isARMBranchTarget()
1086 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm())) in isThumbBranchTarget() local
1087 return CE->getValue() % 2 == 0; in isThumbBranchTarget()
1097 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val)) { in isUnsignedOffset() local
1098 int64_t Val = CE->getValue(); in isUnsignedOffset()
1112 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val)) { in isSignedOffset() local
1113 int64_t Val = CE->getValue(); in isSignedOffset()
1127 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val)) { in isLEOffset() local
1128 int64_t Val = CE->getValue(); in isLEOffset()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUMCInstLower.h52 auto *CE = dyn_cast<ConstantExpr>(CV); in lowerAddrSpaceCast() local
57 if (CE && CE->getOpcode() == Instruction::AddrSpaceCast) { in lowerAddrSpaceCast()
58 auto Op = CE->getOperand(0); in lowerAddrSpaceCast()
61 auto DstAddr = CE->getType()->getPointerAddressSpace(); in lowerAddrSpaceCast()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DThreadSafetyCommon.cpp41 std::string threadSafety::getSourceLiteralString(const Expr *CE) { in getSourceLiteralString() argument
42 switch (CE->getStmtClass()) { in getSourceLiteralString()
44 return toString(cast<IntegerLiteral>(CE)->getValue(), 10, true); in getSourceLiteralString()
47 ret += cast<StringLiteral>(CE)->getString(); in getSourceLiteralString()
132 } else if (const auto *CE = dyn_cast<CXXMemberCallExpr>(DeclExp)) { in translateAttrExpr() local
133 Ctx.SelfArg = CE->getImplicitObjectArgument(); in translateAttrExpr()
134 Ctx.SelfArrow = isCalleeArrow(CE->getCallee()); in translateAttrExpr()
135 Ctx.NumArgs = CE->getNumArgs(); in translateAttrExpr()
136 Ctx.FunArgs = CE->getArgs(); in translateAttrExpr()
137 } else if (const auto *CE = dyn_cast<CallExpr>(DeclExp)) { in translateAttrExpr() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86Operand.h232 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isImmSExti16i8() local
233 if (!CE) in isImmSExti16i8()
238 return isImmSExti16i8Value(CE->getValue()); in isImmSExti16i8()
246 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isImmSExti32i8() local
247 if (!CE) in isImmSExti32i8()
252 return isImmSExti32i8Value(CE->getValue()); in isImmSExti32i8()
260 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isImmSExti64i8() local
261 if (!CE) in isImmSExti64i8()
266 return isImmSExti64i8Value(CE->getValue()); in isImmSExti64i8()
274 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isImmSExti64i32() local
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCallDescription.h163 bool matchesAsWritten(const CallExpr &CE) const;
170 friend bool matchesAnyAsWritten(const CallExpr &CE, in matchesAnyAsWritten() argument
172 return CD1.matchesAsWritten(CE); in matchesAnyAsWritten()
177 friend bool matchesAnyAsWritten(const CallExpr &CE, in matchesAnyAsWritten() argument
180 return CD1.matchesAsWritten(CE) || matchesAnyAsWritten(CE, CDs...); in matchesAnyAsWritten()
285 [[nodiscard]] bool containsAsWritten(const CallExpr &CE) const;
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/
H A DConstructionContext.h107 ConstructionContextItem(const CXXConstructExpr *CE) in ConstructionContextItem() argument
108 : Data(CE), Kind(ElidableConstructorKind) {} in ConstructionContextItem()
110 ConstructionContextItem(const CallExpr *CE, unsigned Index) in ConstructionContextItem() argument
111 : Data(CE), Kind(ArgumentKind), Index(Index) {} in ConstructionContextItem()
113 ConstructionContextItem(const CXXConstructExpr *CE, unsigned Index) in ConstructionContextItem() argument
114 : Data(CE), Kind(ArgumentKind), Index(Index) {} in ConstructionContextItem()
116 ConstructionContextItem(const CXXInheritedCtorInitExpr *CE, unsigned Index) in ConstructionContextItem() argument
117 : Data(CE), Kind(ArgumentKind), Index(Index) {} in ConstructionContextItem()
653 const Expr *CE; variable
665 explicit ArgumentConstructionContext(const Expr *CE, unsigned Index, in ArgumentConstructionContext() argument
[all …]

12345678910>>...16