Home
last modified time | relevance | path

Searched refs:CondOp (Results 1 – 21 of 21) sorted by relevance

/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DRedundantBranchConditionCheck.cpp134 const auto *CondOp = in check() local
137 dyn_cast<DeclRefExpr>(CondOp->getLHS()->IgnoreParenImpCasts()); in check()
140 CondOp->getRHS()->getBeginLoc().getLocWithOffset(-1); in check()
142 CondOp->getLHS()->getBeginLoc(), BeforeRHS)); in check()
145 Lexer::findNextToken(CondOp->getLHS()->getEndLoc(), in check()
149 AfterLHS, CondOp->getRHS()->getEndLoc())); in check()
DStringIntegerAssignmentCheck.cpp69 if (const auto *CondOp = dyn_cast<AbstractConditionalOperator>(E)) in isLikelyCharExpression() local
71 CondOp->getFalseExpr()->IgnoreParenImpCasts()) || in isLikelyCharExpression()
73 CondOp->getTrueExpr()->IgnoreParenImpCasts()); in isLikelyCharExpression()
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DPreferMemberInitializerCheck.cpp138 if (const auto *CondOp = dyn_cast<ConditionalOperator>(S)) { in check() local
139 if (isNoReturnCallStatement(CondOp->getLHS()) || in check()
140 isNoReturnCallStatement(CondOp->getRHS())) in check()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DLoopUnrolling.cpp226 auto CondOp = Matches[0].getNodeAs<BinaryOperator>("conditionOperator"); in shouldCompletelyUnroll() local
232 if (CondOp->getOpcode() == BO_GE || CondOp->getOpcode() == BO_LE) in shouldCompletelyUnroll()
/external/clang/lib/CodeGen/
DCodeGenFunction.cpp1303 if (const ConditionalOperator *CondOp = dyn_cast<ConditionalOperator>(Cond)) { in EmitBranchOnBoolExpr() local
1309 EmitBranchOnBoolExpr(CondOp->getCond(), LHSBlock, RHSBlock, in EmitBranchOnBoolExpr()
1310 getProfileCount(CondOp)); in EmitBranchOnBoolExpr()
1320 getProfileCount(CondOp) / (double)getCurrentProfileCount(); in EmitBranchOnBoolExpr()
1326 incrementProfileCounter(CondOp); in EmitBranchOnBoolExpr()
1329 EmitBranchOnBoolExpr(CondOp->getLHS(), TrueBlock, FalseBlock, in EmitBranchOnBoolExpr()
1336 EmitBranchOnBoolExpr(CondOp->getRHS(), TrueBlock, FalseBlock, in EmitBranchOnBoolExpr()
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DRedundantExpressionCheck.cpp1220 if (const auto *CondOp = in check() local
1222 const Expr *TrueExpr = CondOp->getTrueExpr(); in check()
1223 const Expr *FalseExpr = CondOp->getFalseExpr(); in check()
1228 diag(CondOp->getColonLoc(), in check()
/external/llvm-project/clang/lib/CodeGen/
DCodeGenFunction.cpp1640 if (const ConditionalOperator *CondOp = dyn_cast<ConditionalOperator>(Cond)) { in EmitBranchOnBoolExpr() local
1648 EmitBranchOnBoolExpr(CondOp->getCond(), LHSBlock, RHSBlock, in EmitBranchOnBoolExpr()
1649 getProfileCount(CondOp), Stmt::LH_None); in EmitBranchOnBoolExpr()
1659 getProfileCount(CondOp) / (double)getCurrentProfileCount(); in EmitBranchOnBoolExpr()
1665 incrementProfileCounter(CondOp); in EmitBranchOnBoolExpr()
1668 EmitBranchOnBoolExpr(CondOp->getLHS(), TrueBlock, FalseBlock, in EmitBranchOnBoolExpr()
1675 EmitBranchOnBoolExpr(CondOp->getRHS(), TrueBlock, FalseBlock, in EmitBranchOnBoolExpr()
/external/llvm-project/llvm/unittests/Transforms/Vectorize/
DVPlanTest.cpp529 VPValue CondOp; in TEST() local
530 VPReductionRecipe Recipe(nullptr, nullptr, &ChainOp, &CondOp, &VecOp, false, in TEST()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/
DRISCVInstrInfo.td873 // Match `(brcond (CondOp ..), ..)` and lower to the appropriate RISC-V branch
875 class BccPat<PatFrag CondOp, RVInstB Inst>
876 : Pat<(brcond (XLenVT (CondOp GPR:$rs1, GPR:$rs2)), bb:$imm12),
886 class BccSwapPat<PatFrag CondOp, RVInst InstBcc>
887 : Pat<(brcond (XLenVT (CondOp GPR:$rs1, GPR:$rs2)), bb:$imm12),
DRISCVInstrInfoC.td242 class Bcz<bits<3> funct3, string OpcodeStr, PatFrag CondOp,
/external/llvm-project/llvm/lib/Transforms/Vectorize/
DVPlan.h1107 VPValue *VecOp, VPValue *CondOp, bool NoNaN, in VPReductionRecipe() argument
1112 if (CondOp)
1113 addOperand(CondOp);
DLoopVectorize.cpp8573 auto *CondOp = CM.foldTailByMasking() in adjustRecipesForInLoopReductions() local
8577 &RdxDesc, R, ChainOp, VecOp, CondOp, Legal->hasFunNoNaNAttr(), TTI); in adjustRecipesForInLoopReductions()
/external/llvm-project/llvm/lib/Target/RISCV/
DRISCVInstrInfo.td935 // Match `(brcond (CondOp ..), ..)` and lower to the appropriate RISC-V branch
937 class BccPat<PatFrag CondOp, RVInstB Inst>
938 : Pat<(brcond (XLenVT (CondOp GPR:$rs1, GPR:$rs2)), bb:$imm12),
948 class BccSwapPat<PatFrag CondOp, RVInst InstBcc>
949 : Pat<(brcond (XLenVT (CondOp GPR:$rs1, GPR:$rs2)), bb:$imm12),
/external/llvm-project/clang/lib/Parse/
DParseExpr.cpp638 ExprResult CondOp = Actions.ActOnConditionalOp( in ParseRHSOfBinaryExpression() local
641 if (CondOp.isInvalid()) { in ParseRHSOfBinaryExpression()
648 CondOp = Actions.CreateRecoveryExpr(LHS.get()->getBeginLoc(), in ParseRHSOfBinaryExpression()
652 LHS = CondOp; in ParseRHSOfBinaryExpression()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUInstructionSelector.cpp1578 MachineOperand &CondOp = I.getOperand(0); in selectG_BRCOND() local
1579 Register CondReg = CondOp.getReg(); in selectG_BRCOND()
/external/llvm/lib/Target/ARM/AsmParser/
DARMAsmParser.cpp4775 int CondOp = -1, ImmOp = -1; in cvtThumbBranches() local
4778 case ARM::tBcc: CondOp = 1; ImmOp = 2; break; in cvtThumbBranches()
4781 case ARM::t2Bcc: CondOp = 1; ImmOp = 3; break; in cvtThumbBranches()
4797 unsigned Cond = static_cast<ARMOperand &>(*Operands[CondOp]).getCondCode(); in cvtThumbBranches()
4828 ((ARMOperand &)*Operands[CondOp]).addCondCodeOperands(Inst, 2); in cvtThumbBranches()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/AsmParser/
DARMAsmParser.cpp5569 int CondOp = -1, ImmOp = -1; in cvtThumbBranches() local
5572 case ARM::tBcc: CondOp = 1; ImmOp = 2; break; in cvtThumbBranches()
5575 case ARM::t2Bcc: CondOp = 1; ImmOp = 3; break; in cvtThumbBranches()
5591 unsigned Cond = static_cast<ARMOperand &>(*Operands[CondOp]).getCondCode(); in cvtThumbBranches()
5622 ((ARMOperand &)*Operands[CondOp]).addCondCodeOperands(Inst, 2); in cvtThumbBranches()
/external/llvm-project/llvm/lib/Target/ARM/AsmParser/
DARMAsmParser.cpp5642 int CondOp = -1, ImmOp = -1; in cvtThumbBranches() local
5645 case ARM::tBcc: CondOp = 1; ImmOp = 2; break; in cvtThumbBranches()
5648 case ARM::t2Bcc: CondOp = 1; ImmOp = 3; break; in cvtThumbBranches()
5664 unsigned Cond = static_cast<ARMOperand &>(*Operands[CondOp]).getCondCode(); in cvtThumbBranches()
5695 ((ARMOperand &)*Operands[CondOp]).addCondCodeOperands(Inst, 2); in cvtThumbBranches()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPUInstructionSelector.cpp2412 MachineOperand &CondOp = I.getOperand(0); in selectG_BRCOND() local
2413 Register CondReg = CondOp.getReg(); in selectG_BRCOND()
/external/llvm-project/clang/lib/Sema/
DSemaOpenMP.cpp8434 ExprResult CondOp = SemaRef.ActOnConditionalOp( in checkOpenMPLoop() local
8438 CondOp.get()); in checkOpenMPLoop()
8662 ExprResult CondOp = SemaRef.ActOnConditionalOp( in checkOpenMPLoop() local
8665 CondOp.get()); in checkOpenMPLoop()
/external/clang/lib/Sema/
DSemaOpenMP.cpp5152 ExprResult CondOp = SemaRef.ActOnConditionalOp( in CheckOpenMPLoop() local
5155 CondOp.get()); in CheckOpenMPLoop()