Searched refs:CE (Results 176 - 200 of 252) sorted by relevance

1234567891011

/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp42 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V)) {
43 if (CE->getOpcode() == Instruction::BitCast ||
44 CE->getOpcode() == Instruction::AddrSpaceCast ||
45 CE->getOpcode() == Instruction::GetElementPtr)
46 return pointsToConstantGlobal(CE->getOperand(0));
H A DInstCombineAddSub.cpp482 const FAddendCoef &CE = Opnd0.getCoef(); local
483 return CE.isOne() ? Opnd0.getSymVal() : nullptr;
717 const FAddendCoef &CE = Opnd->getCoef(); local
718 if (CE.isMinusOne() || CE.isMinusTwo())
724 if (!CE.isMinusOne() && !CE.isOne())
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntime.cpp795 if (const auto *CE = dyn_cast<CallExpr>(ReductionOp))
796 if (const auto *OVE = dyn_cast<OpaqueValueExpr>(CE->getCallee()))
812 const auto *CE = cast<CallExpr>(InitOp); local
813 const auto *OVE = cast<OpaqueValueExpr>(CE->getCallee());
814 const Expr *LHS = CE->getArg(/*Arg=*/0)->IgnoreParenImpCasts();
815 const Expr *RHS = CE->getArg(/*Arg=*/1)->IgnoreParenImpCasts();
4183 if (const auto *CE =
4186 if (!CE->getID() || !CE->getAddress()) {
4188 StringRef FnName = ParentFunctions[CE
7482 auto CE = Components.rend(); local
8310 auto CE = Components.rend(); local
[all...]
H A DCGClass.cpp644 CXXConstructExpr *CE = dyn_cast<CXXConstructExpr>(MemberInit->getInit()); local
646 (CE && isMemcpyEquivalentSpecialMember(CE->getConstructor()))) {
1051 CXXConstructExpr *CE = dyn_cast<CXXConstructExpr>(MemberInit->getInit()); local
1054 if (!(CE && isMemcpyEquivalentSpecialMember(CE->getConstructor())) &&
1176 } else if (CallExpr *CE = dyn_cast<CallExpr>(S)) {
1177 FunctionDecl *FD = dyn_cast<FunctionDecl>(CE->getCalleeDecl());
1180 Expr *DstPtr = CE->getArg(0);
1192 Expr *SrcPtr = CE
[all...]
H A DCGCoroutine.cpp133 if (const auto *CE = dyn_cast<CXXMemberCallExpr>(E))
135 CE->getMethodDecl()->getType()->getAs<FunctionProtoType>())
H A DMicrosoftCXXABI.cpp1918 auto *CE = E.dyn_cast<const CXXMemberCallExpr *>(); local
1920 assert((CE != nullptr) ^ (D != nullptr));
1921 assert(CE == nullptr || CE->arg_begin() == CE->arg_end());
1930 CGCallee Callee = CGCallee::forVirtual(CE, GD, This, Ty);
1938 if (CE) {
1939 ThisTy = CE->getObjectType();
1946 ImplicitParam, Context.IntTy, CE);
/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaOpenMP.cpp5817 if (auto *CE = dyn_cast_or_null<CXXConstructExpr>(NewLB))
5818 if (const CXXConstructorDecl *Ctor = CE->getConstructor())
5821 CE->getNumArgs() > 0 && CE->getArg(0) != nullptr)
5822 NewLB = CE->getArg(0)->IgnoreParenImpCasts();
6071 } else if (auto *CE = dyn_cast<CXXOperatorCallExpr>(S)) {
6072 if (CE->getOperator() == OO_Equal) {
6073 Expr *LHS = CE->getArg(0);
6079 return setLCDeclAndLB(DRE->getDecl(), DRE, CE->getArg(1), EmitDiags);
6105 if (const auto *CE
[all...]
H A DSemaInit.cpp158 } else if (ChooseExpr *CE = dyn_cast<ChooseExpr>(E)) {
159 E = CE->getChosenSubExpr();
180 } else if (ChooseExpr *CE = dyn_cast<ChooseExpr>(E)) {
181 E = CE->getChosenSubExpr();
6816 } else if (auto *CE = dyn_cast<CallExpr>(Call)) {
6817 FunctionDecl *Callee = CE->getDirectCallee();
6819 VisitPointerArg(Callee, CE->getArg(0),
6854 if (auto *CE = dyn_cast<CallExpr>(Call)) {
6855 Callee = CE->getDirectCallee();
6856 Args = llvm::makeArrayRef(CE
[all...]
H A DAnalysisBasedWarnings.cpp192 const CallExpr *CE = dyn_cast<CallExpr>(B.getAs<CFGStmt>()->getStmt()); local
193 if (!CE || !CE->getCalleeDecl() ||
194 CE->getCalleeDecl()->getCanonicalDecl() != FD)
199 dyn_cast<DeclRefExpr>(CE->getCallee()->IgnoreParenImpCasts())) {
208 const CXXMemberCallExpr *MCE = dyn_cast<CXXMemberCallExpr>(CE);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp459 const ConstantExpr *CE = dyn_cast<ConstantExpr>(C); local
460 if (!CE)
465 if (ConstantExpr *Op = dyn_cast<ConstantExpr>(CE->getOperand(i))) {
472 switch (CE->getOpcode()) {
480 if (!isa<ConstantInt>(CE->getOperand(1)) ||CE->getOperand(1)->isNullValue())
549 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(this)) {
550 if (CE->getOpcode() == Instruction::Sub) {
551 ConstantExpr *LHS = dyn_cast<ConstantExpr>(CE->getOperand(0));
552 ConstantExpr *RHS = dyn_cast<ConstantExpr>(CE
[all...]
H A DCore.cpp2738 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(unwrap(Inst)))
2739 if (CE->getOpcode() == Instruction::ICmp)
2740 return (LLVMIntPredicate)CE->getPredicate();
2747 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(unwrap(Inst)))
2748 if (CE->getOpcode() == Instruction::FCmp)
2749 return (LLVMRealPredicate)CE->getPredicate();
2966 if (auto *CE = dyn_cast<ConstantExpr>(I))
2967 return CE->getIndices().size();
2978 if (auto *CE = dyn_cast<ConstantExpr>(I))
2979 return CE
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolutionExpander.cpp136 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V))
137 if ((CE->getOpcode() == Instruction::PtrToInt ||
138 CE->getOpcode() == Instruction::IntToPtr) &&
139 SE.getTypeSizeInBits(CE->getType()) ==
140 SE.getTypeSizeInBits(CE->getOperand(0)->getType()))
141 return CE->getOperand(0);
H A DAliasAnalysis.cpp667 for (auto CI = Call->data_operands_begin(), CE = Call->data_operands_end();
668 CI != CE; ++CI, ++ArgNo) {
/freebsd-11-stable/contrib/llvm-project/clang/lib/Analysis/
H A DRetainSummaryManager.cpp713 RetainSummaryManager::canEval(const CallExpr *CE, const FunctionDecl *FD, argument
723 QualType ResultTy = CE->getCallReturnType(Ctx);
737 if (CE->getNumArgs() == 1 &&
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DPartialInlining.cpp1134 CodeExtractor CE(RegionInfo.Region, &DT, /*AggregateArgs*/ false,
1139 CE.findInputsOutputs(Inputs, Outputs, Sinks);
1155 Function *OutlinedFunc = CE.extractCodeRegion(CEAC);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp860 for (unsigned CI = 0, CE = Size; CI < CE; CI += 64) {
861 unsigned Len = std::min<unsigned>(CE - CI, 64);
/freebsd-11-stable/libexec/getty/
H A Dsubr.c360 if (CE)
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Analysis/
H A DCFG.h158 explicit CFGConstructor(CXXConstructExpr *CE, const ConstructionContext *C) argument
159 : CFGStmt(CE, Constructor) {
186 /// Returns true when call expression \p CE needs to be represented
1100 void appendConstructor(CXXConstructExpr *CE, const ConstructionContext *CC,
1102 Elements.push_back(CFGConstructor(CE, CC), C);
H A DPathDiagnostic.h561 void setCallee(const CallEnter &CE, const SourceManager &SM);
581 construct(const CallExitEnd &CE,
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSmallVector.h449 iterator erase(const_iterator CS, const_iterator CE) { argument
452 iterator E = const_cast<iterator>(CE);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/MC/
H A DMCExpr.cpp496 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(this)) {
497 Res = CE->getValue();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp620 if (auto *CE = dyn_cast<MCConstantExpr>(SymRef))
621 return onInteger(CE->getValue(), ErrMsg);
2909 if (auto *CE = dyn_cast<MCConstantExpr>(Op1.getImm()))
2910 if (CE->getValue() == 3) {
3465 const auto *CE = dyn_cast<MCConstantExpr>(X86Op->getImm()); local
3467 if (CE &&
3468 (isIntN(Size, CE->getValue()) || isUIntN(Size, CE->getValue()))) {
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DExprEngine.cpp1864 const Stmt *CE = CalleeSF->getCallSite(); local
1884 if (SP->getStmt() == CE)
1895 // Note that CE is permitted to be NULL!
1897 EpsilonPoint(BeforeProcessingCall->getLocationContext(), CE);
1902 NewNodeState->set<ReplayWithoutInlining>(const_cast<Stmt *>(CE));
2015 while (const auto *CE = dyn_cast<CastExpr>(Ex)) {
2016 QualType T = CE->getType();
2027 Ex = CE->getSubExpr();
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DIRForTarget.cpp1484 if (auto CE = dyn_cast<ConstantExpr>(V)) {
1485 if (CE->getOpcode() != Instruction::BitCast)
1488 Old = CE->getOperand(0);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp2429 } else if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) {
2430 switch (CE->getOpcode()) {
2432 if (Instruction::isCast(CE->getOpcode())) {
2434 Record.push_back(getEncodedCastOpcode(CE->getOpcode()));
2439 assert(CE->getNumOperands() == 2 && "Unknown constant expr!");
2441 Record.push_back(getEncodedBinaryOpcode(CE->getOpcode()));
2444 uint64_t Flags = getOptimizationFlags(CE);
2450 assert(CE->getNumOperands() == 1 && "Unknown constant expr!");
2452 Record.push_back(getEncodedUnaryOpcode(CE->getOpcode()));
2454 uint64_t Flags = getOptimizationFlags(CE);
[all...]

Completed in 590 milliseconds

1234567891011