| /llvm-project-15.0.7/mlir/include/mlir/Parser/ |
| H A D | Parser.h | 49 if (llvm::hasSingleElement(*parsedBlock)) { in constructContainerOpForParserIfNecessary() 60 assert(op->getNumRegions() == 1 && llvm::hasSingleElement(op->getRegion(0)) && in constructContainerOpForParserIfNecessary()
|
| /llvm-project-15.0.7/mlir/tools/mlir-spirv-cpu-runner/ |
| H A D | mlir-spirv-cpu-runner.cpp | 57 if (!llvm::hasSingleElement(modules)) { in convertMLIRModule()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Transforms/ |
| H A D | TosaFoldConstantTranspose.cpp | 37 if (!llvm::hasSingleElement(op.getInput1().getDefiningOp()->getUsers())) in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/SCFToOpenMP/ |
| H A D | SCFToOpenMP.cpp | 37 if (block.empty() || llvm::hasSingleElement(block) || in matchSimpleReduction() 79 if (block.empty() || llvm::hasSingleElement(block) || in matchSelectReduction() 249 assert(llvm::hasSingleElement(reduce.getRegion()) && in declareReduction()
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | STLExtrasTest.cpp | 657 TEST(STLExtrasTest, hasSingleElement) { in TEST() argument 661 EXPECT_EQ(hasSingleElement(V0), false); in TEST() 662 EXPECT_EQ(hasSingleElement(V1), true); in TEST() 663 EXPECT_EQ(hasSingleElement(V2), false); in TEST() 664 EXPECT_EQ(hasSingleElement(V10), false); in TEST()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/GPU/Transforms/ |
| H A D | MemoryPromotion.cpp | 130 assert(llvm::hasSingleElement(region) && in insertCopies()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/SCFToControlFlow/ |
| H A D | SCFToControlFlow.cpp | 569 if (!llvm::hasSingleElement(whileOp.getAfter())) in matchAndRewrite() 575 if (!llvm::hasSingleElement(afterBlock)) in matchAndRewrite()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | MachineRegisterInfo.cpp | 416 return hasSingleElement(use_nodbg_operands(RegNo)); in hasOneNonDBGUse() 420 return hasSingleElement(use_nodbg_instructions(RegNo)); in hasOneNonDBGUser()
|
| /llvm-project-15.0.7/mlir/test/lib/Dialect/Affine/ |
| H A D | TestVectorizationUtils.cpp | 245 if (!llvm::hasSingleElement(f)) in runOnOperation()
|
| /llvm-project-15.0.7/mlir/lib/IR/ |
| H A D | Verifier.cpp | 102 if (!llvm::hasSingleElement(*block->getParent())) in mayBeValidWithoutTerminator()
|
| H A D | Block.cpp | 322 if (block->empty() || llvm::hasSingleElement(*block->getParent())) in SuccessorRange()
|
| H A D | SymbolTable.cpp | 123 assert(llvm::hasSingleElement(symbolTableOp->getRegion(0)) && in SymbolTable() 414 if (!llvm::hasSingleElement(op->getRegion(0))) in verifySymbolTable()
|
| /llvm-project-15.0.7/mlir/lib/Transforms/Utils/ |
| H A D | RegionUtils.cpp | 316 bool hasSingleBlock = llvm::hasSingleElement(region); in deleteDeadness() 654 if (region.empty() || llvm::hasSingleElement(region)) in mergeIdenticalBlocks()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SCF/IR/ |
| H A D | SCF.cpp | 87 assert(llvm::hasSingleElement(region) && "expected single-region block"); 159 if (!llvm::hasSingleElement(op.getRegion())) in matchAndRewrite() 764 if (!llvm::hasSingleElement(block)) in matchAndRewrite() 1953 if (!elseBlock || !llvm::hasSingleElement(*elseBlock)) in matchAndRewrite() 1986 if (!llvm::hasSingleElement(nestedOps)) in matchAndRewrite() 1990 if (op.elseBlock() && !llvm::hasSingleElement(*op.elseBlock())) in matchAndRewrite() 1997 if (nestedIf.elseBlock() && !llvm::hasSingleElement(*nestedIf.elseBlock())) in matchAndRewrite() 2408 if (!llvm::hasSingleElement(outerBody.without_terminator())) in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/ |
| H A D | ConstantFold.cpp | 277 if (!llvm::hasSingleElement(body)) in getRegionComputeFn()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/SPIRVToLLVM/ |
| H A D | ConvertLaunchFuncToLLVMCalls.cpp | 109 if (!llvm::hasSingleElement(entryPoints)) { in getKernelGlobalVariables()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | MachineRegisterInfo.h | 453 return hasSingleElement(def_operands(RegNo)); in hasOneDef() 519 return hasSingleElement(use_operands(RegNo)); in hasOneUse()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Utils/ |
| H A D | Utils.cpp | 101 if (!llvm::hasSingleElement(region)) in matchAsScalarBinaryOp() 111 if (!llvm::hasSingleElement(block.without_terminator())) in matchAsScalarBinaryOp() 152 if (!llvm::hasSingleElement(r)) in hasOnlyScalarElementwiseOp()
|
| /llvm-project-15.0.7/flang/unittests/Optimizer/Builder/ |
| H A D | FIRBuilderTest.cpp | 272 EXPECT_TRUE(llvm::hasSingleElement(stringLitOps)); in TEST_F() 319 EXPECT_TRUE(llvm::hasSingleElement(stringLitOps)); in TEST_F()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Value.h | 434 bool hasOneUse() const { return hasSingleElement(uses()); } in hasOneUse()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Affine/Utils/ |
| H A D | LoopUtils.cpp | 1105 if (llvm::hasSingleElement(forOp.getBody()->getOperations())) in loopUnrollByFactor() 1213 if (llvm::hasSingleElement(forOp.getBody()->getOperations())) in loopUnrollJamByFactor() 1737 if (!llvm::hasSingleElement(origUbMap.getResults())) in coalesceLoops() 1751 if (!llvm::hasSingleElement(origUbMap.getResults())) in coalesceLoops()
|
| /llvm-project-15.0.7/mlir/test/lib/Dialect/Test/ |
| H A D | TestPatterns.cpp | 305 !llvm::hasSingleElement(shapes)) in reifyReturnShape() 1474 return llvm::hasSingleElement(op.getBody()); in runOnOperation()
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | Operation.h | 626 bool hasOneUse() { return llvm::hasSingleElement(getUses()); } in hasOneUse()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Linalg/IR/ |
| H A D | LinalgInterfaces.cpp | 724 !llvm::hasSingleElement(linalgOp->getRegion(0))) in verifyStructuredOpInterface()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/ControlFlow/IR/ |
| H A D | ControlFlowOps.cpp | 148 if (succ == opParent || !llvm::hasSingleElement(succ->getPredecessors())) in simplifyBrToBlockWithSinglePred()
|