Home
last modified time | relevance | path

Searched refs:hasSingleElement (Results 1 – 25 of 38) sorted by relevance

12

/llvm-project-15.0.7/mlir/include/mlir/Parser/
H A DParser.h49 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 Dmlir-spirv-cpu-runner.cpp57 if (!llvm::hasSingleElement(modules)) { in convertMLIRModule()
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Transforms/
H A DTosaFoldConstantTranspose.cpp37 if (!llvm::hasSingleElement(op.getInput1().getDefiningOp()->getUsers())) in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/SCFToOpenMP/
H A DSCFToOpenMP.cpp37 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 DSTLExtrasTest.cpp657 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 DMemoryPromotion.cpp130 assert(llvm::hasSingleElement(region) && in insertCopies()
/llvm-project-15.0.7/mlir/lib/Conversion/SCFToControlFlow/
H A DSCFToControlFlow.cpp569 if (!llvm::hasSingleElement(whileOp.getAfter())) in matchAndRewrite()
575 if (!llvm::hasSingleElement(afterBlock)) in matchAndRewrite()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMachineRegisterInfo.cpp416 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 DTestVectorizationUtils.cpp245 if (!llvm::hasSingleElement(f)) in runOnOperation()
/llvm-project-15.0.7/mlir/lib/IR/
H A DVerifier.cpp102 if (!llvm::hasSingleElement(*block->getParent())) in mayBeValidWithoutTerminator()
H A DBlock.cpp322 if (block->empty() || llvm::hasSingleElement(*block->getParent())) in SuccessorRange()
H A DSymbolTable.cpp123 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 DRegionUtils.cpp316 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 DSCF.cpp87 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 DConstantFold.cpp277 if (!llvm::hasSingleElement(body)) in getRegionComputeFn()
/llvm-project-15.0.7/mlir/lib/Conversion/SPIRVToLLVM/
H A DConvertLaunchFuncToLLVMCalls.cpp109 if (!llvm::hasSingleElement(entryPoints)) { in getKernelGlobalVariables()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DMachineRegisterInfo.h453 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 DUtils.cpp101 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 DFIRBuilderTest.cpp272 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 DValue.h434 bool hasOneUse() const { return hasSingleElement(uses()); } in hasOneUse()
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/Utils/
H A DLoopUtils.cpp1105 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 DTestPatterns.cpp305 !llvm::hasSingleElement(shapes)) in reifyReturnShape()
1474 return llvm::hasSingleElement(op.getBody()); in runOnOperation()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DOperation.h626 bool hasOneUse() { return llvm::hasSingleElement(getUses()); } in hasOneUse()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/IR/
H A DLinalgInterfaces.cpp724 !llvm::hasSingleElement(linalgOp->getRegion(0))) in verifyStructuredOpInterface()
/llvm-project-15.0.7/mlir/lib/Dialect/ControlFlow/IR/
H A DControlFlowOps.cpp148 if (succ == opParent || !llvm::hasSingleElement(succ->getPredecessors())) in simplifyBrToBlockWithSinglePred()

12