/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/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-10.0/llvm/lib/Transforms/Scalar/ |
D | EarlyCSE.cpp | 304 Instruction *LHSI = LHS.Inst, *RHSI = RHS.Inst; in isEqualImpl() local 307 return LHSI == RHSI; in isEqualImpl() 309 if (LHSI->getOpcode() != RHSI->getOpcode()) in isEqualImpl() 311 if (LHSI->isIdenticalToWhenDefined(RHSI)) in isEqualImpl() 315 if (BinaryOperator *LHSBinOp = dyn_cast<BinaryOperator>(LHSI)) { in isEqualImpl() 327 if (CmpInst *LHSCmp = dyn_cast<CmpInst>(LHSI)) { in isEqualImpl() 342 if (matchSelectWithOptionalNotCond(LHSI, CondL, LHSA, LHSB, LSPF) && in isEqualImpl() 461 Instruction *LHSI = LHS.Inst, *RHSI = RHS.Inst; in isEqual() local 463 return LHSI == RHSI; in isEqual() 464 return LHSI->isIdenticalTo(RHSI); in isEqual()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | EarlyCSE.cpp | 302 Instruction *LHSI = LHS.Inst, *RHSI = RHS.Inst; in isEqualImpl() local 305 return LHSI == RHSI; in isEqualImpl() 307 if (LHSI->getOpcode() != RHSI->getOpcode()) in isEqualImpl() 309 if (LHSI->isIdenticalToWhenDefined(RHSI)) in isEqualImpl() 313 if (BinaryOperator *LHSBinOp = dyn_cast<BinaryOperator>(LHSI)) { in isEqualImpl() 325 if (CmpInst *LHSCmp = dyn_cast<CmpInst>(LHSI)) { in isEqualImpl() 336 auto *LII = dyn_cast<IntrinsicInst>(LHSI); in isEqualImpl() 349 if (matchSelectWithOptionalNotCond(LHSI, CondL, LHSA, LHSB, LSPF) && in isEqualImpl() 471 Instruction *LHSI = LHS.Inst, *RHSI = RHS.Inst; in isEqual() local 473 return LHSI == RHSI; in isEqual() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/llvm/ |
D | IncludeOrderCheck.cpp | 126 [&FileDirectives](unsigned LHSI, unsigned RHSI) { in EndOfMainFile() argument 127 IncludeDirective &LHS = FileDirectives[LHSI]; in EndOfMainFile()
|
/external/llvm-project/llvm/utils/TableGen/ |
D | SearchableTableEmitter.cpp | 225 Init *LHSI = LHS->getValueInit(Field.Name); in compareBy() local 229 int64_t LHSi = getAsInt(LHSI); in compareBy() 236 CodeGenIntrinsic &LHSi = getIntrinsic(LHSI); in compareBy() 246 Record *LHSr = cast<DefInit>(LHSI)->getDef(); in compareBy() 262 auto LHSr = cast<DefInit>(LHSI)->getDef(); in compareBy() 271 std::string LHSs = primaryRepresentation(Index.Loc, Field, LHSI); in compareBy()
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 3238 Instruction *LHSI = dyn_cast<Instruction>(Op0); in foldICmpInstWithConstantNotInt() local 3239 if (!RHSC || !LHSI) in foldICmpInstWithConstantNotInt() 3242 switch (LHSI->getOpcode()) { in foldICmpInstWithConstantNotInt() 3246 cast<GetElementPtrInst>(LHSI)->hasAllZeroIndices()) in foldICmpInstWithConstantNotInt() 3248 I.getPredicate(), LHSI->getOperand(0), in foldICmpInstWithConstantNotInt() 3249 Constant::getNullValue(LHSI->getOperand(0)->getType())); in foldICmpInstWithConstantNotInt() 3255 if (LHSI->getParent() == I.getParent()) in foldICmpInstWithConstantNotInt() 3256 if (Instruction *NV = foldOpIntoPhi(I, cast<PHINode>(LHSI))) in foldICmpInstWithConstantNotInt() 3265 if (Constant *C = dyn_cast<Constant>(LHSI->getOperand(1))) { in foldICmpInstWithConstantNotInt() 3269 if (Constant *C = dyn_cast<Constant>(LHSI->getOperand(2))) { in foldICmpInstWithConstantNotInt() [all …]
|
D | InstCombineInternal.h | 637 Instruction *foldFCmpIntToFPConst(FCmpInst &I, Instruction *LHSI,
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 3171 Instruction *LHSI = dyn_cast<Instruction>(Op0); in foldICmpInstWithConstantNotInt() local 3172 if (!RHSC || !LHSI) in foldICmpInstWithConstantNotInt() 3175 switch (LHSI->getOpcode()) { in foldICmpInstWithConstantNotInt() 3179 cast<GetElementPtrInst>(LHSI)->hasAllZeroIndices()) in foldICmpInstWithConstantNotInt() 3181 I.getPredicate(), LHSI->getOperand(0), in foldICmpInstWithConstantNotInt() 3182 Constant::getNullValue(LHSI->getOperand(0)->getType())); in foldICmpInstWithConstantNotInt() 3188 if (LHSI->getParent() == I.getParent()) in foldICmpInstWithConstantNotInt() 3189 if (Instruction *NV = foldOpIntoPhi(I, cast<PHINode>(LHSI))) in foldICmpInstWithConstantNotInt() 3198 if (Constant *C = dyn_cast<Constant>(LHSI->getOperand(1))) { in foldICmpInstWithConstantNotInt() 3202 if (Constant *C = dyn_cast<Constant>(LHSI->getOperand(2))) { in foldICmpInstWithConstantNotInt() [all …]
|
D | InstCombineInternal.h | 913 Instruction *foldFCmpIntToFPConst(FCmpInst &I, Instruction *LHSI,
|
/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()
|
/external/llvm-project/clang/lib/Format/ |
D | SortJavaScriptImports.cpp | 144 llvm::stable_sort(Indices, [&](unsigned LHSI, unsigned RHSI) { in analyze() argument 145 return References[LHSI] < References[RHSI]; in analyze()
|
D | Format.cpp | 2171 llvm::stable_sort(Indices, [&](unsigned LHSI, unsigned RHSI) { in sortCppIncludes() argument 2172 return std::tie(Includes[LHSI].Priority, Includes[LHSI].Filename) < in sortCppIncludes() 2186 [&](unsigned LHSI, unsigned RHSI) { in sortCppIncludes() argument 2187 return Includes[LHSI].Text.trim() == in sortCppIncludes() 2355 llvm::sort(Indices, [&](unsigned LHSI, unsigned RHSI) { in sortJavaImports() argument 2357 return std::make_tuple(!Imports[LHSI].IsStatic ^ in sortJavaImports() 2359 JavaImportGroups[LHSI], Imports[LHSI].Identifier) < in sortJavaImports() 2367 [&](unsigned LHSI, unsigned RHSI) { in sortJavaImports() argument 2368 return Imports[LHSI].Text == Imports[RHSI].Text; in sortJavaImports()
|