Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp1214 Instruction *LHSI, in visitICmpInstWithInstAndIntCst() argument
1218 switch (LHSI->getOpcode()) { in visitICmpInstWithInstAndIntCst()
1224 match(LHSI->getOperand(0), m_Signum(m_Value(V)))) in visitICmpInstWithInstAndIntCst()
1228 if (ICI.isEquality() && LHSI->hasOneUse()) { in visitICmpInstWithInstAndIntCst()
1231 unsigned DstBits = LHSI->getType()->getPrimitiveSizeInBits(), in visitICmpInstWithInstAndIntCst()
1232 SrcBits = LHSI->getOperand(0)->getType()->getPrimitiveSizeInBits(); in visitICmpInstWithInstAndIntCst()
1234 computeKnownBits(LHSI->getOperand(0), KnownZero, KnownOne, 0, &ICI); in visitICmpInstWithInstAndIntCst()
1241 return new ICmpInst(ICI.getPredicate(), LHSI->getOperand(0), in visitICmpInstWithInstAndIntCst()
1248 if (ConstantInt *XorCst = dyn_cast<ConstantInt>(LHSI->getOperand(1))) { in visitICmpInstWithInstAndIntCst()
1253 Value *CompareVal = LHSI->getOperand(0); in visitICmpInstWithInstAndIntCst()
[all …]
DInstCombineAndOrXor.cpp371 Instruction *LHSI = dyn_cast<Instruction>(LHS); in FoldLogicalPlusAnd() local
372 if (!LHSI || LHSI->getNumOperands() != 2 || in FoldLogicalPlusAnd()
373 !isa<ConstantInt>(LHSI->getOperand(1))) return nullptr; in FoldLogicalPlusAnd()
375 ConstantInt *N = cast<ConstantInt>(LHSI->getOperand(1)); in FoldLogicalPlusAnd()
377 switch (LHSI->getOpcode()) { in FoldLogicalPlusAnd()
410 return Builder->CreateSub(LHSI->getOperand(0), RHS, "fold"); in FoldLogicalPlusAnd()
411 return Builder->CreateAdd(LHSI->getOperand(0), RHS, "fold"); in FoldLogicalPlusAnd()
DInstCombineInternal.h262 Instruction *FoldFCmp_IntToFP_Cst(FCmpInst &I, Instruction *LHSI,
/external/llvm/lib/Transforms/Scalar/
DEarlyCSE.cpp148 Instruction *LHSI = LHS.Inst, *RHSI = RHS.Inst; in isEqual() local
151 return LHSI == RHSI; in isEqual()
153 if (LHSI->getOpcode() != RHSI->getOpcode()) in isEqual()
155 if (LHSI->isIdenticalTo(RHSI)) in isEqual()
159 if (BinaryOperator *LHSBinOp = dyn_cast<BinaryOperator>(LHSI)) { in isEqual()
180 if (CmpInst *LHSCmp = dyn_cast<CmpInst>(LHSI)) { in isEqual()
247 Instruction *LHSI = LHS.Inst, *RHSI = RHS.Inst; in isEqual() local
249 return LHSI == RHSI; in isEqual()
250 return LHSI->isIdenticalTo(RHSI); in isEqual()
/external/clang/lib/Format/
DFormat.cpp1748 std::sort(Indices.begin(), Indices.end(), [&](unsigned LHSI, unsigned RHSI) { in sortIncludes() argument
1749 return std::tie(Includes[LHSI].Category, Includes[LHSI].Filename) < in sortIncludes()