/external/llvm/lib/Transforms/Utils/ |
CmpInstAnalysis.cpp | 44 unsigned llvm::getICmpCode(const ICmpInst *ICI, bool InvertPred) { 45 ICmpInst::Predicate Pred = InvertPred ? ICI->getInversePredicate() 49 case ICmpInst::ICMP_UGT: return 1; // 001 50 case ICmpInst::ICMP_SGT: return 1; // 001 51 case ICmpInst::ICMP_EQ: return 2; // 010 52 case ICmpInst::ICMP_UGE: return 3; // 011 53 case ICmpInst::ICMP_SGE: return 3; // 011 54 case ICmpInst::ICMP_ULT: return 4; // 100 55 case ICmpInst::ICMP_SLT: return 4; // 100 56 case ICmpInst::ICMP_NE: return 5; // 10 [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
CmpInstAnalysis.cpp | 22 unsigned llvm::getICmpCode(const ICmpInst *ICI, bool InvertPred) { 23 ICmpInst::Predicate Pred = InvertPred ? ICI->getInversePredicate() 27 case ICmpInst::ICMP_UGT: return 1; // 001 28 case ICmpInst::ICMP_SGT: return 1; // 001 29 case ICmpInst::ICMP_EQ: return 2; // 010 30 case ICmpInst::ICMP_UGE: return 3; // 011 31 case ICmpInst::ICMP_SGE: return 3; // 011 32 case ICmpInst::ICMP_ULT: return 4; // 100 33 case ICmpInst::ICMP_SLT: return 4; // 100 34 case ICmpInst::ICMP_NE: return 5; // 10 [all...] |
InstructionSimplify.cpp | 78 ExpectedPred = ICmpInst::ICMP_NE; 80 ExpectedPred = ICmpInst::ICMP_EQ; [all...] |
/external/llvm/include/llvm/Transforms/Utils/ |
CmpInstAnalysis.h | 21 class ICmpInst; 47 unsigned getICmpCode(const ICmpInst *ICI, bool InvertPred = false);
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/ |
CmpInstAnalysis.h | 21 class ICmpInst; 47 unsigned getICmpCode(const ICmpInst *ICI, bool InvertPred = false);
|
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineCompares.cpp | 119 static bool isBranchOnSignBitCheck(ICmpInst &I, bool isSignBit) { 129 static bool isSignBitCheck(ICmpInst::Predicate Pred, ConstantInt *RHS, 132 case ICmpInst::ICMP_SLT: // True if LHS s< 0 135 case ICmpInst::ICMP_SLE: // True if LHS s<= RHS and RHS == -1 138 case ICmpInst::ICMP_SGT: // True if LHS s> -1 141 case ICmpInst::ICMP_UGT: 145 case ICmpInst::ICMP_UGE: 157 static bool isSignTest(ICmpInst::Predicate &Pred, const ConstantInt *RHS) { 158 if (!ICmpInst::isSigned(Pred)) 162 return ICmpInst::isRelational(Pred) [all...] |
InstCombineAndOrXor.cpp | 73 ICmpInst::Predicate NewPred; 293 ICmpInst::ICMP_SLE:ICmpInst::ICMP_ULE), Lo, Hi))->getZExtValue() && 302 ICmpInst::Predicate pred = (isSigned ? 303 ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT); 320 ICmpInst::Predicate pred = (isSigned ? 321 ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT); 443 ICmpInst::Predicate SCC [all...] |
InstCombineInternal.h | 249 Value *simplifyRangeCheck(ICmpInst *Cmp0, ICmpInst *Cmp1, bool Inverted); 250 Value *FoldAndOfICmps(ICmpInst *LHS, ICmpInst *RHS); 253 Value *FoldOrOfICmps(ICmpInst *LHS, ICmpInst *RHS, Instruction *CxtI); 271 Instruction *visitICmpInst(ICmpInst &I); 272 Instruction *visitICmpInstWithCastAndCast(ICmpInst &ICI); 273 Instruction *visitICmpInstWithInstAndIntCst(ICmpInst &ICI, Instruction *LHS, 275 Instruction *FoldICmpDivCst(ICmpInst &ICI, BinaryOperator *DivI [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
InstCombineCompares.cpp | 66 static bool hasBranchUse(ICmpInst &I) { 76 static bool isSignBitCheck(ICmpInst::Predicate Pred, const APInt &RHS, 79 case ICmpInst::ICMP_SLT: // True if LHS s< 0 82 case ICmpInst::ICMP_SLE: // True if LHS s<= RHS and RHS == -1 85 case ICmpInst::ICMP_SGT: // True if LHS s> -1 88 case ICmpInst::ICMP_UGT: 92 case ICmpInst::ICMP_UGE: 105 static bool isSignTest(ICmpInst::Predicate &Pred, const APInt &C) { 106 if (!ICmpInst::isSigned(Pred)) 110 return ICmpInst::isRelational(Pred) [all...] |
InstCombineInternal.h | 359 Value *simplifyRangeCheck(ICmpInst *Cmp0, ICmpInst *Cmp1, bool Inverted); 368 Instruction *visitICmpInst(ICmpInst &I); 422 bool replacedSelectWithOperand(SelectInst *SI, const ICmpInst *Icmp, 482 Instruction *transformZExtICmp(ICmpInst *ICI, ZExtInst &CI, 485 Instruction *transformSExtICmp(ICmpInst *ICI, Instruction &CI); 545 Value *foldAndOfICmps(ICmpInst *LHS, ICmpInst *RHS, Instruction &CxtI); 546 Value *foldOrOfICmps(ICmpInst *LHS, ICmpInst *RHS, Instruction &CxtI) [all...] |
InstCombineAndOrXor.cpp | 58 ICmpInst::Predicate NewPred; 177 ICmpInst::Predicate Pred = Inside ? ICmpInst::ICMP_ULT : ICmpInst::ICMP_UGE; 179 Pred = isSigned ? ICmpInst::getSignedPredicate(Pred) : Pred; 234 ICmpInst::Predicate Pred) { 238 bool IsEq = (Pred == ICmpInst::ICMP_EQ); 315 Value *&D, Value *&E, ICmpInst *LHS, 316 ICmpInst *RHS, 317 ICmpInst::Predicate &PredL [all...] |
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
InstCombineCompares.cpp | 116 static bool isSignBitCheck(ICmpInst::Predicate pred, ConstantInt *RHS, 119 case ICmpInst::ICMP_SLT: // True if LHS s< 0 122 case ICmpInst::ICMP_SLE: // True if LHS s<= RHS and RHS == -1 125 case ICmpInst::ICMP_SGT: // True if LHS s> -1 128 case ICmpInst::ICMP_UGT: 132 case ICmpInst::ICMP_UGE: 380 return new ICmpInst(ICmpInst::ICMP_EQ, Idx, FirstTrueIdx); 400 return new ICmpInst(ICmpInst::ICMP_NE, Idx, FirstFalseIdx) [all...] |
InstCombineAndOrXor.cpp | 89 static unsigned getICmpCode(const ICmpInst *ICI) { 92 case ICmpInst::ICMP_UGT: return 1; // 001 93 case ICmpInst::ICMP_SGT: return 1; // 001 94 case ICmpInst::ICMP_EQ: return 2; // 010 95 case ICmpInst::ICMP_UGE: return 3; // 011 96 case ICmpInst::ICMP_SGE: return 3; // 011 97 case ICmpInst::ICMP_ULT: return 4; // 100 98 case ICmpInst::ICMP_SLT: return 4; // 100 99 case ICmpInst::ICMP_NE: return 5; // 101 100 case ICmpInst::ICMP_ULE: return 6; // 11 [all...] |
InstCombineSelect.cpp | 29 ICmpInst *ICI = dyn_cast<ICmpInst>(SI->getCondition()); 40 case ICmpInst::ICMP_UGT: 41 case ICmpInst::ICMP_UGE: return SPF_UMAX; 42 case ICmpInst::ICMP_SGT: 43 case ICmpInst::ICMP_SGE: return SPF_SMAX; 44 case ICmpInst::ICMP_ULT: 45 case ICmpInst::ICMP_ULE: return SPF_UMIN; 46 case ICmpInst::ICMP_SLT: 47 case ICmpInst::ICMP_SLE: return SPF_SMIN [all...] |
InstCombine.h | 123 Value *FoldAndOfICmps(ICmpInst *LHS, ICmpInst *RHS); 126 Value *FoldOrOfICmps(ICmpInst *LHS, ICmpInst *RHS); 142 Instruction *visitICmpInst(ICmpInst &I); 143 Instruction *visitICmpInstWithCastAndCast(ICmpInst &ICI); 144 Instruction *visitICmpInstWithInstAndIntCst(ICmpInst &ICI, 147 Instruction *FoldICmpDivCst(ICmpInst &ICI, BinaryOperator *DivI, 149 Instruction *FoldICmpShrCst(ICmpInst &ICI, BinaryOperator *DivI, 151 Instruction *FoldICmpAddOpCst(ICmpInst &ICI, Value *X, ConstantInt *CI [all...] |
/external/llvm/lib/IR/ |
ConstantFold.cpp | [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
ConstantFold.cpp | [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
LoopPredication.cpp | 225 ICmpInst::Predicate Pred; 228 LoopICmp(ICmpInst::Predicate Pred, const SCEVAddRecExpr *IV, 247 Optional<LoopICmp> parseLoopICmp(ICmpInst *ICI) { 251 Optional<LoopICmp> parseLoopICmp(ICmpInst::Predicate Pred, Value *LHS, 258 ICmpInst::Predicate Pred, const SCEV *LHS, const SCEV *RHS, 261 Optional<Value *> widenICmpRangeCheck(ICmpInst *ICI, SCEVExpander &Expander, 354 LoopPredication::parseLoopICmp(ICmpInst::Predicate Pred, Value *LHS, 367 Pred = ICmpInst::getSwappedPredicate(Pred); 379 ICmpInst::Predicate Pred, const SCEV *LHS, 455 ICmpInst::getFlippedStrictnessPredicate(LatchCheck.Pred) [all...] |
InductiveRangeCheckElimination.cpp | 161 static RangeCheckKind parseRangeCheckICmp(Loop *L, ICmpInst *ICI, 216 return SE.isKnownPredicate(ICmpInst::ICMP_SGE, Begin, End); 218 return SE.isKnownPredicate(ICmpInst::ICMP_UGE, Begin, End); 312 InductiveRangeCheck::parseRangeCheckICmp(Loop *L, ICmpInst *ICI, 319 ICmpInst::Predicate Pred = ICI->getPredicate(); 327 case ICmpInst::ICMP_SLE: 330 case ICmpInst::ICMP_SGE: 338 case ICmpInst::ICMP_SLT: 341 case ICmpInst::ICMP_SGT: 355 case ICmpInst::ICMP_ULT [all...] |
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
LowerSwitch.cpp | 162 ICmpInst* Comp = new ICmpInst(ICmpInst::ICMP_SLT, 185 ICmpInst* Comp = NULL; 188 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_EQ, Val, 194 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_SLE, Val, Leaf.High, 198 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_ULE, Val, Leaf.High [all...] |
SimplifyIndVar.cpp | 79 void eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand); 153 void SimplifyIndvar::eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand) { 155 ICmpInst::Predicate Pred = ICmp->getPredicate(); 160 Pred = ICmpInst::getSwappedPredicate(Pred); 176 else if (SE->isKnownPredicate(ICmpInst::getInversePredicate(Pred), S, X)) 208 SE->isKnownPredicate(IsSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT, 219 ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT, 223 ICmpInst *ICmp = new ICmpInst(Rem, ICmpInst::ICMP_EQ [all...] |
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
Analysis.cpp | 184 ISD::CondCode llvm::getICmpCondCode(ICmpInst::Predicate Pred) { 186 case ICmpInst::ICMP_EQ: return ISD::SETEQ; 187 case ICmpInst::ICMP_NE: return ISD::SETNE; 188 case ICmpInst::ICMP_SLE: return ISD::SETLE; 189 case ICmpInst::ICMP_ULE: return ISD::SETULE; 190 case ICmpInst::ICMP_SGE: return ISD::SETGE; 191 case ICmpInst::ICMP_UGE: return ISD::SETUGE; 192 case ICmpInst::ICMP_SLT: return ISD::SETLT; 193 case ICmpInst::ICMP_ULT: return ISD::SETULT; 194 case ICmpInst::ICMP_SGT: return ISD::SETGT [all...] |
/external/llvm/lib/Analysis/ |
InstructionSimplify.cpp | [all...] |
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
ConstantFold.cpp | [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
SimplifyIndVar.cpp | 86 bool makeIVComparisonInvariant(ICmpInst *ICmp, Value *IVOperand); 87 void eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand); 165 bool SimplifyIndvar::makeIVComparisonInvariant(ICmpInst *ICmp, 168 ICmpInst::Predicate Pred = ICmp->getPredicate(); 173 Pred = ICmpInst::getSwappedPredicate(Pred); 182 ICmpInst::Predicate InvariantPredicate; 235 void SimplifyIndvar::eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand) { 237 ICmpInst::Predicate Pred = ICmp->getPredicate(); 238 ICmpInst::Predicate OriginalPred = Pred; 243 Pred = ICmpInst::getSwappedPredicate(Pred) [all...] |