| /llvm-project-15.0.7/mlir/test/mlir-tblgen/ |
| H A D | rewriter-indexing.td | 20 def BOp : NS_Op<"b_op", []> { 42 def test1 : Pat<(BOp $attr, (AOp $input)), 43 (BOp $attr, $input)>; 50 (BOp $attr1, $op2)>; 55 // We expect ODSOperand 0 here, the attribute before the operand in BOp 58 // CHECK: rewriter.create<test::BOp>((*a.getODSResults(0).begin()).getLoc() 59 def test3 : Pat<(BOp $attr, (AOp:$a $input)), 60 (BOp $attr, (AOp $input), (location $a))>;
|
| H A D | rewriter-static-matcher.td | 20 def BOp : NS_Op<"b_op", []> { 50 def : Pat<(AOp (BOp I32Attr:$attr, I32:$int)), 54 def : Pat<(COp $_, (BOp I32Attr:$attr, I32:$int)),
|
| H A D | op-attribute.td | 267 def BOp : NS_Op<"b_op", []> { 307 // DEF: ::mlir::Attribute BOp::any_attr() 308 // DEF: bool BOp::bool_attr() 309 // DEF: uint32_t BOp::i32_attr() 310 // DEF: uint64_t BOp::i64_attr() 311 // DEF: ::llvm::APFloat BOp::f32_attr() 312 // DEF: ::llvm::APFloat BOp::f64_attr() 313 // DEF: ::llvm::StringRef BOp::str_attr() 316 // DEF: SomeType BOp::some_type_attr() 317 // DEF: ::mlir::ArrayAttr BOp::array_attr() [all …]
|
| H A D | gen-dialect-doc.td | 58 def BOp : Op<Toc_Dialect, "b", []>;
|
| H A D | op-decl-and-defs.td | 147 // CHECK-LABEL: NS::BOp declarations 350 // REDUCE_INC-NOT: NS::BOp declarations 353 // REDUCE_EXC-LABEL: NS::BOp declarations
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PointerArithChecker.cpp | 64 void checkPreStmt(const BinaryOperator *BOp, CheckerContext &C) const; 317 void PointerArithChecker::checkPreStmt(const BinaryOperator *BOp, in checkPreStmt() argument 319 BinaryOperatorKind OpKind = BOp->getOpcode(); in checkPreStmt() 320 if (!BOp->isAdditiveOp() && OpKind != BO_AddAssign && OpKind != BO_SubAssign) in checkPreStmt() 323 const Expr *Lhs = BOp->getLHS(); in checkPreStmt() 324 const Expr *Rhs = BOp->getRHS(); in checkPreStmt() 331 reportPointerArithMisuse(Lhs, C, !BOp->isAdditiveOp()); in checkPreStmt()
|
| H A D | MallocOverflowSecurityChecker.cpp | 191 if (const BinaryOperator *BOp = dyn_cast<BinaryOperator>(rhse)) { in CheckAssignmentExpr() local 192 if (BOp->getOpcode() == BO_Div) { in CheckAssignmentExpr() 193 const Expr *denom = BOp->getRHS()->IgnoreParenImpCasts(); in CheckAssignmentExpr() 199 const Expr *numerator = BOp->getLHS()->IgnoreParenImpCasts(); in CheckAssignmentExpr()
|
| /llvm-project-15.0.7/mlir/test/Conversion/VectorToGPU/ |
| H A D | vector-to-mma-ops.mlir | 11 …*}}, %{{.*}}] {leadDimension = 16 : index} : memref<16x16xf16> -> !gpu.mma_matrix<16x16xf16, "BOp"> 13 …], %[[C]] : !gpu.mma_matrix<16x16xf16, "AOp">, !gpu.mma_matrix<16x16xf16, "BOp"> -> !gpu.mma_matri… 30 …*}}, %{{.*}}] {leadDimension = 16 : index} : memref<16x16xf16> -> !gpu.mma_matrix<16x16xf16, "BOp"> 32 …], %[[C]] : !gpu.mma_matrix<16x16xf16, "AOp">, !gpu.mma_matrix<16x16xf16, "BOp"> -> !gpu.mma_matri… 49 …*}}, %{{.*}}] {leadDimension = 16 : index} : memref<16x16xf16> -> !gpu.mma_matrix<16x16xf16, "BOp"> 50 …], %[[C]] : !gpu.mma_matrix<16x16xf16, "AOp">, !gpu.mma_matrix<16x16xf16, "BOp"> -> !gpu.mma_matri… 67 …, %{{.*}}] {leadDimension = 128 : index} : memref<128x128xf16> -> !gpu.mma_matrix<16x16xf16, "BOp"> 92 …*}}, %{{.*}}] {leadDimension = 16 : index} : memref<16x16xf16> -> !gpu.mma_matrix<16x16xf16, "BOp"> 114 …*}}, %{{.*}}] {leadDimension = 16 : index} : memref<16x16xf16> -> !gpu.mma_matrix<16x16xf16, "BOp"> 139 … %{{.*}}[%[[C0]]] {leadDimension = 0 : index} : memref<16xf16> -> !gpu.mma_matrix<16x16xf16, "BOp"> [all …]
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | PHITransAddr.cpp | 266 if (BinaryOperator *BOp = dyn_cast<BinaryOperator>(LHS)) in PHITranslateSubExpr() local 267 if (BOp->getOpcode() == Instruction::Add) in PHITranslateSubExpr() 268 if (ConstantInt *CI = dyn_cast<ConstantInt>(BOp->getOperand(1))) { in PHITranslateSubExpr() 269 LHS = BOp->getOperand(0); in PHITranslateSubExpr() 274 if (is_contained(InstInputs, BOp)) { in PHITranslateSubExpr() 275 RemoveInstInputs(BOp, InstInputs); in PHITranslateSubExpr()
|
| H A D | IVDescriptors.cpp | 1313 BinaryOperator *BOp = dyn_cast<BinaryOperator>(BEValue); in isFPInductionPHI() local 1314 if (!BOp) in isFPInductionPHI() 1318 if (BOp->getOpcode() == Instruction::FAdd) { in isFPInductionPHI() 1319 if (BOp->getOperand(0) == Phi) in isFPInductionPHI() 1320 Addend = BOp->getOperand(1); in isFPInductionPHI() 1321 else if (BOp->getOperand(1) == Phi) in isFPInductionPHI() 1322 Addend = BOp->getOperand(0); in isFPInductionPHI() 1323 } else if (BOp->getOpcode() == Instruction::FSub) in isFPInductionPHI() 1324 if (BOp->getOperand(0) == Phi) in isFPInductionPHI() 1325 Addend = BOp->getOperand(1); in isFPInductionPHI() [all …]
|
| H A D | BasicAliasAnalysis.cpp | 359 if (const BinaryOperator *BOp = dyn_cast<BinaryOperator>(Val.V)) { in GetLinearExpression() local 360 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(BOp->getOperand(1))) { in GetLinearExpression() 365 if (isa<OverflowingBinaryOperator>(BOp)) { in GetLinearExpression() 366 NUW &= BOp->hasNoUnsignedWrap(); in GetLinearExpression() 367 NSW &= BOp->hasNoSignedWrap(); in GetLinearExpression() 378 switch (BOp->getOpcode()) { in GetLinearExpression() 387 BOp, DT)) in GetLinearExpression() 392 E = GetLinearExpression(Val.withValue(BOp->getOperand(0)), DL, in GetLinearExpression() 399 E = GetLinearExpression(Val.withValue(BOp->getOperand(0)), DL, in GetLinearExpression() 406 E = GetLinearExpression(Val.withValue(BOp->getOperand(0)), DL, in GetLinearExpression() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/numerics/numeric.ops/transform.inclusive.scan/ |
| H A D | transform_inclusive_scan_bop_uop.pass.cpp | 39 template <class Iter1, class BOp, class UOp, class T> 41 test(Iter1 first, Iter1 last, BOp bop, UOp uop, const T *rFirst, const T *rLast) in test()
|
| H A D | transform_inclusive_scan_bop_uop_init.pass.cpp | 40 template <class Iter1, class BOp, class UOp, class T> 42 test(Iter1 first, Iter1 last, BOp bop, UOp uop, T init, const T *rFirst, const T *rLast) in test()
|
| /llvm-project-15.0.7/libcxx/test/std/numerics/numeric.ops/transform.reduce/ |
| H A D | transform_reduce_iter_iter_init_bop_uop.pass.cpp | 45 template <class Iter1, class T, class BOp, class UOp> 47 test(Iter1 first1, Iter1 last1, T init, BOp bOp, UOp uOp, T x) in test()
|
| /llvm-project-15.0.7/mlir/test/Integration/GPU/CUDA/TensorCore/ |
| H A D | wmma-matmul-f32.mlir | 45 … %0[%c0, %c0] {leadDimension = 16 : index} : memref<16x16xf16> -> !gpu.mma_matrix<16x16xf16, "BOp"> 48 …A, %B, %C : !gpu.mma_matrix<16x16xf16, "AOp">, !gpu.mma_matrix<16x16xf16, "BOp"> -> !gpu.mma_matri…
|
| H A D | wmma-matmul-f16.mlir | 47 … %0[%c0, %c0] {leadDimension = 16 : index} : memref<16x16xf16> -> !gpu.mma_matrix<16x16xf16, "BOp"> 50 …A, %B, %C : !gpu.mma_matrix<16x16xf16, "AOp">, !gpu.mma_matrix<16x16xf16, "BOp"> -> !gpu.mma_matri…
|
| /llvm-project-15.0.7/libcxx/test/std/numerics/numeric.ops/transform.exclusive.scan/ |
| H A D | transform_exclusive_scan_init_bop_uop.pass.cpp | 39 template <class Iter1, class BOp, class UOp, class T> 41 test(Iter1 first, Iter1 last, BOp bop, UOp uop, T init, const T *rFirst, const T *rLast) in test()
|
| /llvm-project-15.0.7/mlir/test/Dialect/GPU/ |
| H A D | invalid.mlir | 472 // expected-error @+1 {{operand expected to be one of AOp, BOp or COp}} 546 …r(%A : !gpu.mma_matrix<16x16xf16, "AOp">, %B : !gpu.mma_matrix<16x16xf16, "BOp">, %C : !gpu.mma_ma… 547 // expected-error @+1 {{operands must be in the order AOp, BOp, COp}} 548 …%D = gpu.subgroup_mma_compute %B, %A, %C : !gpu.mma_matrix<16x16xf16, "BOp">, !gpu.mma_matrix<16x1… 554 …s(%A : !gpu.mma_matrix<16x32xf16, "AOp">, %B : !gpu.mma_matrix<16x16xf16, "BOp">, %C : !gpu.mma_ma… 556 …A, %B, %C : !gpu.mma_matrix<16x32xf16, "AOp">, !gpu.mma_matrix<16x16xf16, "BOp"> -> !gpu.mma_matri…
|
| /llvm-project-15.0.7/mlir/docs/ |
| H A D | DeclarativeRewrites.md | 162 def BOp : Op<"b_op"> { 171 def : Pat<(AOp (BOp), $attr), ...>; 174 The above pattern matches an `AOp` whose only operand is generated by a `BOp`, 188 def : Pat<(AOp (BOp:$b_result), $attr), ...>; 191 The above will bind `$b_result` to the matched `BOp`'s result. (There are more 228 def : Pat<(AOp (BOp:$b_result) $attr), (COp $b_result $attr)>; 231 In the above, we are using `BOp`'s result for building `COp`. 288 def : Pat<(AOp $input, $attr), (COp (BOp), $attr)>; 291 In the above, we generate a `BOp`, and then use its result to generate the `COp` 313 def : Pat<(AOp $input, $ignored_attr), (DOp (BOp:$b_result) $b_result)>; [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | SILoadStoreOptimizer.cpp | 759 for (const auto &BOp : B.operands()) { in canSwapInstructions() local 760 if (!BOp.isReg()) in canSwapInstructions() 762 if ((BOp.isDef() || BOp.readsReg()) && ARegDefs.contains(BOp.getReg())) in canSwapInstructions() 764 if (BOp.isDef() && ARegUses.contains(BOp.getReg())) in canSwapInstructions()
|
| /llvm-project-15.0.7/mlir/test/Conversion/GPUToNVVM/ |
| H A D | wmma-ops-to-nvvm.mlir | 95 …p(%A : !gpu.mma_matrix<16x16xf16, "AOp">, %B : !gpu.mma_matrix<16x16xf16, "BOp">, %C : !gpu.mma_ma… 96 …A, %B, %C : !gpu.mma_matrix<16x16xf16, "AOp">, !gpu.mma_matrix<16x16xf16, "BOp"> -> !gpu.mma_matri… 177 …1[%1, %c0] {leadDimension = 128 : index} : memref<128x128xf16> -> !gpu.mma_matrix<16x16xf16, "BOp"> 178 …4, %5, %2 : !gpu.mma_matrix<16x16xf16, "AOp">, !gpu.mma_matrix<16x16xf16, "BOp"> -> !gpu.mma_matri…
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | Reassociate.cpp | 1647 BinaryOperator *BOp = in OptimizeAdd() local 1649 if (!BOp) in OptimizeAdd() 1654 FindSingleUseMultiplyFactors(BOp, Factors); in OptimizeAdd() 1719 BinaryOperator *BOp = in OptimizeAdd() local 1721 if (!BOp) in OptimizeAdd()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 380 if (const CmpInst *BOp = dyn_cast<CmpInst>(Cond)) { in emitBranchForMergedCondition() local 389 SwitchCG::CaseBlock CB(Condition, false, BOp->getOperand(0), in emitBranchForMergedCondition() 390 BOp->getOperand(1), nullptr, TBB, FBB, CurBB, in emitBranchForMergedCondition() 428 const Instruction *BOp = dyn_cast<Instruction>(Cond); in findMergedConditions() local 436 if (BOp) { in findMergedConditions() 437 BOpc = match(BOp, m_LogicalAnd(m_Value(BOpOp0), m_Value(BOpOp1))) in findMergedConditions() 439 : (match(BOp, m_LogicalOr(m_Value(BOpOp0), m_Value(BOpOp1))) in findMergedConditions() 452 bool BOpIsInOrAndTree = BOpc && BOpc == Opc && BOp->hasOneUse(); in findMergedConditions() 453 if (!BOpIsInOrAndTree || BOp->getParent() != CurBB->getBasicBlock() || in findMergedConditions()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 2166 if (const CmpInst *BOp = dyn_cast<CmpInst>(Cond)) { in EmitBranchForMergedCondition() local 2171 (isExportableFromCurrentBlock(BOp->getOperand(0), BB) && in EmitBranchForMergedCondition() 2172 isExportableFromCurrentBlock(BOp->getOperand(1), BB))) { in EmitBranchForMergedCondition() 2187 CaseBlock CB(Condition, BOp->getOperand(0), BOp->getOperand(1), nullptr, in EmitBranchForMergedCondition() 2220 const Instruction *BOp = dyn_cast<Instruction>(Cond); in FindMergedConditions() local 2228 if (BOp) { in FindMergedConditions() 2244 bool BOpIsInOrAndTree = BOpc && BOpc == Opc && BOp->hasOneUse(); in FindMergedConditions() 2401 const Instruction *BOp = dyn_cast<Instruction>(CondVal); in visitBr() local 2402 if (!DAG.getTargetLoweringInfo().isJumpExpensive() && BOp && in visitBr() 2407 if (match(BOp, m_LogicalAnd(m_Value(BOp0), m_Value(BOp1)))) in visitBr() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineAddSub.cpp | 1104 if (auto *BOp = dyn_cast<BinaryOperator>(NotMask)) { in canonicalizeLowbitMask() local 1106 BOp->setHasNoSignedWrap(); in canonicalizeLowbitMask() 1107 BOp->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in canonicalizeLowbitMask()
|