/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 993 Instruction *LHSI, in visitICmpInstWithInstAndIntCst() argument 997 switch (LHSI->getOpcode()) { in visitICmpInstWithInstAndIntCst() 999 if (ICI.isEquality() && LHSI->hasOneUse()) { in visitICmpInstWithInstAndIntCst() 1002 unsigned DstBits = LHSI->getType()->getPrimitiveSizeInBits(), in visitICmpInstWithInstAndIntCst() 1003 SrcBits = LHSI->getOperand(0)->getType()->getPrimitiveSizeInBits(); in visitICmpInstWithInstAndIntCst() 1006 ComputeMaskedBits(LHSI->getOperand(0), Mask, KnownZero, KnownOne); in visitICmpInstWithInstAndIntCst() 1013 return new ICmpInst(ICI.getPredicate(), LHSI->getOperand(0), in visitICmpInstWithInstAndIntCst() 1020 if (ConstantInt *XorCST = dyn_cast<ConstantInt>(LHSI->getOperand(1))) { in visitICmpInstWithInstAndIntCst() 1025 Value *CompareVal = LHSI->getOperand(0); in visitICmpInstWithInstAndIntCst() 1031 Worklist.Add(LHSI); in visitICmpInstWithInstAndIntCst() [all …]
|
D | InstCombineAndOrXor.cpp | 410 Instruction *LHSI = dyn_cast<Instruction>(LHS); in FoldLogicalPlusAnd() local 411 if (!LHSI || LHSI->getNumOperands() != 2 || in FoldLogicalPlusAnd() 412 !isa<ConstantInt>(LHSI->getOperand(1))) return 0; in FoldLogicalPlusAnd() 414 ConstantInt *N = cast<ConstantInt>(LHSI->getOperand(1)); in FoldLogicalPlusAnd() 416 switch (LHSI->getOpcode()) { in FoldLogicalPlusAnd() 449 return Builder->CreateSub(LHSI->getOperand(0), RHS, "fold"); in FoldLogicalPlusAnd() 450 return Builder->CreateAdd(LHSI->getOperand(0), RHS, "fold"); in FoldLogicalPlusAnd()
|
D | InstCombine.h | 136 Instruction *FoldFCmp_IntToFP_Cst(FCmpInst &I, Instruction *LHSI,
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 1539 Instruction *LHSI, in visitICmpInstWithInstAndIntCst() argument 1543 switch (LHSI->getOpcode()) { in visitICmpInstWithInstAndIntCst() 1549 match(LHSI->getOperand(0), m_Signum(m_Value(V)))) in visitICmpInstWithInstAndIntCst() 1553 if (ICI.isEquality() && LHSI->hasOneUse()) { in visitICmpInstWithInstAndIntCst() 1556 unsigned DstBits = LHSI->getType()->getPrimitiveSizeInBits(), in visitICmpInstWithInstAndIntCst() 1557 SrcBits = LHSI->getOperand(0)->getType()->getPrimitiveSizeInBits(); in visitICmpInstWithInstAndIntCst() 1559 computeKnownBits(LHSI->getOperand(0), KnownZero, KnownOne, 0, &ICI); in visitICmpInstWithInstAndIntCst() 1566 return new ICmpInst(ICI.getPredicate(), LHSI->getOperand(0), in visitICmpInstWithInstAndIntCst() 1573 if (ConstantInt *XorCst = dyn_cast<ConstantInt>(LHSI->getOperand(1))) { in visitICmpInstWithInstAndIntCst() 1578 Value *CompareVal = LHSI->getOperand(0); in visitICmpInstWithInstAndIntCst() [all …]
|
D | InstCombineAndOrXor.cpp | 361 Instruction *LHSI = dyn_cast<Instruction>(LHS); in FoldLogicalPlusAnd() local 362 if (!LHSI || LHSI->getNumOperands() != 2 || in FoldLogicalPlusAnd() 363 !isa<ConstantInt>(LHSI->getOperand(1))) return nullptr; in FoldLogicalPlusAnd() 365 ConstantInt *N = cast<ConstantInt>(LHSI->getOperand(1)); in FoldLogicalPlusAnd() 367 switch (LHSI->getOpcode()) { in FoldLogicalPlusAnd() 400 return Builder->CreateSub(LHSI->getOperand(0), RHS, "fold"); in FoldLogicalPlusAnd() 401 return Builder->CreateAdd(LHSI->getOperand(0), RHS, "fold"); in FoldLogicalPlusAnd()
|
D | InstCombineInternal.h | 265 Instruction *FoldFCmp_IntToFP_Cst(FCmpInst &I, Instruction *LHSI,
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | EarlyCSE.cpp | 123 Instruction *LHSI = LHS.Inst, *RHSI = RHS.Inst; in isEqual() local 126 return LHSI == RHSI; in isEqual() 128 if (LHSI->getOpcode() != RHSI->getOpcode()) return false; in isEqual() 129 return LHSI->isIdenticalTo(RHSI); in isEqual() 196 Instruction *LHSI = LHS.Inst, *RHSI = RHS.Inst; in isEqual() local 198 return LHSI == RHSI; in isEqual() 199 return LHSI->isIdenticalTo(RHSI); in isEqual()
|
/external/llvm/lib/Transforms/Scalar/ |
D | EarlyCSE.cpp | 140 Instruction *LHSI = LHS.Inst, *RHSI = RHS.Inst; in isEqual() local 143 return LHSI == RHSI; in isEqual() 145 if (LHSI->getOpcode() != RHSI->getOpcode()) in isEqual() 147 if (LHSI->isIdenticalToWhenDefined(RHSI)) in isEqual() 151 if (BinaryOperator *LHSBinOp = dyn_cast<BinaryOperator>(LHSI)) { in isEqual() 163 if (CmpInst *LHSCmp = dyn_cast<CmpInst>(LHSI)) { in isEqual() 230 Instruction *LHSI = LHS.Inst, *RHSI = RHS.Inst; in isEqual() local 232 return LHSI == RHSI; in isEqual() 233 return LHSI->isIdenticalTo(RHSI); in isEqual()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | EarlyCSE.cpp | 193 Instruction *LHSI = LHS.Inst, *RHSI = RHS.Inst; in isEqual() local 196 return LHSI == RHSI; in isEqual() 198 if (LHSI->getOpcode() != RHSI->getOpcode()) in isEqual() 200 if (LHSI->isIdenticalToWhenDefined(RHSI)) in isEqual() 204 if (BinaryOperator *LHSBinOp = dyn_cast<BinaryOperator>(LHSI)) { in isEqual() 216 if (CmpInst *LHSCmp = dyn_cast<CmpInst>(LHSI)) { in isEqual() 229 SelectPatternFlavor LSPF = matchSelectPattern(LHSI, LHSA, LHSB).Flavor; in isEqual() 308 Instruction *LHSI = LHS.Inst, *RHSI = RHS.Inst; in isEqual() local 310 return LHSI == RHSI; in isEqual() 311 return LHSI->isIdenticalTo(RHSI); in isEqual()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 2775 Instruction *LHSI = dyn_cast<Instruction>(Op0); in foldICmpInstWithConstantNotInt() local 2776 if (!RHSC || !LHSI) in foldICmpInstWithConstantNotInt() 2779 switch (LHSI->getOpcode()) { in foldICmpInstWithConstantNotInt() 2783 cast<GetElementPtrInst>(LHSI)->hasAllZeroIndices()) in foldICmpInstWithConstantNotInt() 2785 I.getPredicate(), LHSI->getOperand(0), in foldICmpInstWithConstantNotInt() 2786 Constant::getNullValue(LHSI->getOperand(0)->getType())); in foldICmpInstWithConstantNotInt() 2792 if (LHSI->getParent() == I.getParent()) in foldICmpInstWithConstantNotInt() 2793 if (Instruction *NV = foldOpIntoPhi(I, cast<PHINode>(LHSI))) in foldICmpInstWithConstantNotInt() 2802 if (Constant *C = dyn_cast<Constant>(LHSI->getOperand(1))) { in foldICmpInstWithConstantNotInt() 2806 if (Constant *C = dyn_cast<Constant>(LHSI->getOperand(2))) { in foldICmpInstWithConstantNotInt() [all …]
|
D | InstCombineInternal.h | 814 Instruction *foldFCmpIntToFPConst(FCmpInst &I, Instruction *LHSI,
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/TableGen/ |
D | SearchableTableEmitter.cpp | 214 Init *LHSI = LHS->getValueInit(Field.Name); in compareBy() local 218 int64_t LHSi = getAsInt(LHSI); in compareBy() 225 CodeGenIntrinsic &LHSi = getIntrinsic(LHSI); in compareBy() 235 Record *LHSr = cast<DefInit>(LHSI)->getDef(); in compareBy() 251 auto LHSr = cast<DefInit>(LHSI)->getDef(); in compareBy() 260 std::string LHSs = primaryRepresentation(Field, LHSI); in compareBy()
|
/external/clang/lib/Format/ |
D | SortJavaScriptImports.cpp | 147 [&](unsigned LHSI, unsigned RHSI) { in analyze() argument 148 return References[LHSI] < References[RHSI]; in analyze()
|
D | Format.cpp | 1227 Indices.begin(), Indices.end(), [&](unsigned LHSI, unsigned RHSI) { in sortCppIncludes() argument 1228 return std::tie(Includes[LHSI].Category, Includes[LHSI].Filename) < in sortCppIncludes()
|