/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...] |
/prebuilts/clang/host/darwin-x86/clang-3957855/prebuilt_include/llvm/include/llvm/Transforms/Utils/ |
CmpInstAnalysis.h | 21 class ICmpInst; 47 unsigned getICmpCode(const ICmpInst *ICI, bool InvertPred = false); 65 bool decomposeBitTestICmp(const ICmpInst *I, CmpInst::Predicate &Pred,
|
/prebuilts/clang/host/darwin-x86/clang-3960126/prebuilt_include/llvm/include/llvm/Transforms/Utils/ |
CmpInstAnalysis.h | 21 class ICmpInst; 47 unsigned getICmpCode(const ICmpInst *ICI, bool InvertPred = false); 65 bool decomposeBitTestICmp(const ICmpInst *I, CmpInst::Predicate &Pred,
|
/prebuilts/clang/host/darwin-x86/clang-3977809/prebuilt_include/llvm/include/llvm/Transforms/Utils/ |
CmpInstAnalysis.h | 21 class ICmpInst; 47 unsigned getICmpCode(const ICmpInst *ICI, bool InvertPred = false); 65 bool decomposeBitTestICmp(const ICmpInst *I, CmpInst::Predicate &Pred,
|
/prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/llvm/include/llvm/Transforms/Utils/ |
CmpInstAnalysis.h | 21 class ICmpInst; 47 unsigned getICmpCode(const ICmpInst *ICI, bool InvertPred = false); 65 bool decomposeBitTestICmp(const ICmpInst *I, CmpInst::Predicate &Pred,
|
/prebuilts/clang/host/linux-x86/clang-3957855/prebuilt_include/llvm/include/llvm/Transforms/Utils/ |
CmpInstAnalysis.h | 21 class ICmpInst; 47 unsigned getICmpCode(const ICmpInst *ICI, bool InvertPred = false); 65 bool decomposeBitTestICmp(const ICmpInst *I, CmpInst::Predicate &Pred,
|
/prebuilts/clang/host/linux-x86/clang-3960126/prebuilt_include/llvm/include/llvm/Transforms/Utils/ |
CmpInstAnalysis.h | 21 class ICmpInst; 47 unsigned getICmpCode(const ICmpInst *ICI, bool InvertPred = false); 65 bool decomposeBitTestICmp(const ICmpInst *I, CmpInst::Predicate &Pred,
|
/prebuilts/clang/host/linux-x86/clang-3977809/prebuilt_include/llvm/include/llvm/Transforms/Utils/ |
CmpInstAnalysis.h | 21 class ICmpInst; 47 unsigned getICmpCode(const ICmpInst *ICI, bool InvertPred = false); 65 bool decomposeBitTestICmp(const ICmpInst *I, CmpInst::Predicate &Pred,
|
/prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/llvm/include/llvm/Transforms/Utils/ |
CmpInstAnalysis.h | 21 class ICmpInst; 47 unsigned getICmpCode(const ICmpInst *ICI, bool InvertPred = false); 65 bool decomposeBitTestICmp(const ICmpInst *I, CmpInst::Predicate &Pred,
|
/external/llvm/include/llvm/Transforms/Utils/ |
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...] |
InstCombineSelect.cpp | 48 return ICmpInst::ICMP_SLT; 50 return ICmpInst::ICMP_ULT; 52 return ICmpInst::ICMP_SGT; 54 return ICmpInst::ICMP_UGT; 312 const ICmpInst *IC = dyn_cast<ICmpInst>(SI.getCondition()); 350 ICmpInst::Predicate Pred = IC->getPredicate(); 351 if ((Pred == ICmpInst::ICMP_NE && OrOnFalseVal) || 352 (Pred == ICmpInst::ICMP_EQ && OrOnTrueVal)) 370 static Value *foldSelectCttzCtlz(ICmpInst *ICI, Value *TrueVal, Value *FalseVal [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/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/include/llvm/CodeGen/ |
Analysis.h | 76 ISD::CondCode getICmpCondCode(ICmpInst::Predicate Pred);
|