Home
last modified time | relevance | path

Searched refs:LHSI (Results 1 – 10 of 10) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCompares.cpp993 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 …]
DInstCombineAndOrXor.cpp410 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()
DInstCombine.h136 Instruction *FoldFCmp_IntToFP_Cst(FCmpInst &I, Instruction *LHSI,
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp1539 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 …]
DInstCombineAndOrXor.cpp361 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()
DInstCombineInternal.h265 Instruction *FoldFCmp_IntToFP_Cst(FCmpInst &I, Instruction *LHSI,
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DEarlyCSE.cpp123 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/
DEarlyCSE.cpp140 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/clang/lib/Format/
DSortJavaScriptImports.cpp147 [&](unsigned LHSI, unsigned RHSI) { in analyze() argument
148 return References[LHSI] < References[RHSI]; in analyze()
DFormat.cpp1227 Indices.begin(), Indices.end(), [&](unsigned LHSI, unsigned RHSI) { in sortCppIncludes() argument
1228 return std::tie(Includes[LHSI].Category, Includes[LHSI].Filename) < in sortCppIncludes()