/external/llvm-project/mlir/lib/Dialect/SCF/Transforms/ |
D | StructuralTypeConversions.cpp | 52 ForOp newOp = cast<ForOp>(rewriter.cloneWithoutRegions(*op.getOperation())); in matchAndRewrite() local 54 rewriter.inlineRegionBefore(op.getLoopBody(), newOp.getLoopBody(), in matchAndRewrite() 55 newOp.getLoopBody().end()); in matchAndRewrite() 60 if (failed(rewriter.convertRegionTypes(&newOp.getLoopBody(), in matchAndRewrite() 66 newOp->setOperands(operands); in matchAndRewrite() 68 for (auto t : llvm::zip(newOp.getResults(), newResultTypes)) in matchAndRewrite() 71 rewriter.replaceOp(op, newOp.getResults()); in matchAndRewrite() 104 IfOp newOp = cast<IfOp>(rewriter.cloneWithoutRegions(*op.getOperation())); in matchAndRewrite() local 105 rewriter.inlineRegionBefore(op.thenRegion(), newOp.thenRegion(), in matchAndRewrite() 106 newOp.thenRegion().end()); in matchAndRewrite() [all …]
|
/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/ |
D | Intermediate.cpp | 565 bool TIntermediate::buildConvertOp(TBasicType dst, TBasicType src, TOperator& newOp) const in buildConvertOp() 571 case EbtUint: newOp = EOpConvUintToDouble; break; in buildConvertOp() 572 case EbtBool: newOp = EOpConvBoolToDouble; break; in buildConvertOp() 573 case EbtFloat: newOp = EOpConvFloatToDouble; break; in buildConvertOp() 574 case EbtInt: newOp = EOpConvIntToDouble; break; in buildConvertOp() 575 case EbtInt8: newOp = EOpConvInt8ToDouble; break; in buildConvertOp() 576 case EbtUint8: newOp = EOpConvUint8ToDouble; break; in buildConvertOp() 577 case EbtInt16: newOp = EOpConvInt16ToDouble; break; in buildConvertOp() 578 case EbtUint16: newOp = EOpConvUint16ToDouble; break; in buildConvertOp() 579 case EbtFloat16: newOp = EOpConvFloat16ToDouble; break; in buildConvertOp() [all …]
|
/external/deqp-deps/glslang/glslang/MachineIndependent/ |
D | Intermediate.cpp | 565 bool TIntermediate::buildConvertOp(TBasicType dst, TBasicType src, TOperator& newOp) const in buildConvertOp() 571 case EbtUint: newOp = EOpConvUintToDouble; break; in buildConvertOp() 572 case EbtBool: newOp = EOpConvBoolToDouble; break; in buildConvertOp() 573 case EbtFloat: newOp = EOpConvFloatToDouble; break; in buildConvertOp() 574 case EbtInt: newOp = EOpConvIntToDouble; break; in buildConvertOp() 575 case EbtInt8: newOp = EOpConvInt8ToDouble; break; in buildConvertOp() 576 case EbtUint8: newOp = EOpConvUint8ToDouble; break; in buildConvertOp() 577 case EbtInt16: newOp = EOpConvInt16ToDouble; break; in buildConvertOp() 578 case EbtUint16: newOp = EOpConvUint16ToDouble; break; in buildConvertOp() 579 case EbtFloat16: newOp = EOpConvFloat16ToDouble; break; in buildConvertOp() [all …]
|
/external/llvm-project/mlir/lib/Conversion/GPUCommon/ |
D | IndexIntrinsicsOpLowering.h | 50 Value newOp; in matchAndRewrite() local 53 newOp = rewriter.create<XOp>(loc, LLVM::LLVMType::getInt32Ty(context)); in matchAndRewrite() 56 newOp = rewriter.create<YOp>(loc, LLVM::LLVMType::getInt32Ty(context)); in matchAndRewrite() 59 newOp = rewriter.create<ZOp>(loc, LLVM::LLVMType::getInt32Ty(context)); in matchAndRewrite() 66 newOp = rewriter.create<LLVM::SExtOp>( in matchAndRewrite() 67 loc, LLVM::LLVMType::getIntNTy(context, indexBitwidth), newOp); in matchAndRewrite() 69 newOp = rewriter.create<LLVM::TruncOp>( in matchAndRewrite() 70 loc, LLVM::LLVMType::getIntNTy(context, indexBitwidth), newOp); in matchAndRewrite() 73 rewriter.replaceOp(op, {newOp}); in matchAndRewrite()
|
/external/llvm-project/mlir/test/Conversion/PDLToPDLInterp/ |
D | pdl-to-pdl-interp-rewriter.mlir | 46 %newOp = pdl.operation "foo.op" {"attr" = %attr, "attr1" = %attr1} 66 %newOp, %result = pdl.operation "foo.op"(%operand) -> %type 87 %newOp, %result = pdl.operation "foo.op"(%operand) -> %type 107 %newOp, %newResults:2 = pdl.operation "foo.op" -> %rootType, %newType1 108 pdl.replace %root with %newOp 125 %newOp, %newResult = pdl.operation "foo.op" -> %newType 143 %newOp, %newResult = pdl.operation "foo.op" -> %type 144 pdl.replace %root with %newOp 162 %newOp, %newResult = pdl.operation "foo.op" -> %type 179 %newOp = pdl.operation "foo.op" [all …]
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonFixupHwLoops.cpp | 173 unsigned newOp; in useExtLoopInstr() local 176 newOp = Hexagon::J2_loop0rext; in useExtLoopInstr() 179 newOp = Hexagon::J2_loop0iext; in useExtLoopInstr() 182 newOp = Hexagon::J2_loop1rext; in useExtLoopInstr() 185 newOp = Hexagon::J2_loop1iext; in useExtLoopInstr() 190 MIB = BuildMI(*MBB, MII, DL, TII->get(newOp)); in useExtLoopInstr()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
D | HexagonFixupHwLoops.cpp | 174 unsigned newOp; in useExtLoopInstr() local 177 newOp = Hexagon::J2_loop0rext; in useExtLoopInstr() 180 newOp = Hexagon::J2_loop0iext; in useExtLoopInstr() 183 newOp = Hexagon::J2_loop1rext; in useExtLoopInstr() 186 newOp = Hexagon::J2_loop1iext; in useExtLoopInstr() 191 MIB = BuildMI(*MBB, MII, DL, TII->get(newOp)); in useExtLoopInstr()
|
/external/llvm-project/llvm/lib/Target/Hexagon/ |
D | HexagonFixupHwLoops.cpp | 174 unsigned newOp; in useExtLoopInstr() local 177 newOp = Hexagon::J2_loop0rext; in useExtLoopInstr() 180 newOp = Hexagon::J2_loop0iext; in useExtLoopInstr() 183 newOp = Hexagon::J2_loop1rext; in useExtLoopInstr() 186 newOp = Hexagon::J2_loop1iext; in useExtLoopInstr() 191 MIB = BuildMI(*MBB, MII, DL, TII->get(newOp)); in useExtLoopInstr()
|
/external/llvm-project/mlir/lib/Dialect/GPU/Transforms/ |
D | AsyncRegionRewriter.cpp | 91 auto *newOp = Operation::create(op->getLoc(), op->getName(), resultTypes, in rewriteAsyncOp() local 96 auto results = newOp->getResults(); in rewriteAsyncOp() 98 builder.insert(newOp); in rewriteAsyncOp() 174 auto newOp = builder.create<async::ExecuteOp>( in addAsyncTokenResults() local 178 newOp.getRegion().getBlocks().clear(); in addAsyncTokenResults() 179 executeOp.getRegion().cloneInto(&newOp.getRegion(), mapper); in addAsyncTokenResults() 183 newOp.getResults().drop_back(count)); in addAsyncTokenResults() 185 executeOp = newOp; in addAsyncTokenResults()
|
/external/llvm-project/mlir/lib/Conversion/OpenMPToLLVM/ |
D | OpenMPToLLVM.cpp | 34 auto newOp = rewriter.create<OpType>(curOp.getLoc(), TypeRange(), operands, in matchAndRewrite() local 36 rewriter.inlineRegionBefore(curOp.region(), newOp.region(), in matchAndRewrite() 37 newOp.region().end()); in matchAndRewrite() 38 if (failed(rewriter.convertRegionTypes(&newOp.region(), *typeConverter))) in matchAndRewrite()
|
/external/llvm-project/mlir/lib/Dialect/SCF/EDSC/ |
D | Builders.cpp | 103 auto newOp = ScopedContext::getBuilderRef().create<scf::IfOp>( in conditionBuilder() local 107 *ifOp = newOp; in conditionBuilder() 108 return newOp.getResults(); in conditionBuilder() 127 auto newOp = ScopedContext::getBuilderRef().create<scf::IfOp>( in conditionBuilder() local 133 *ifOp = newOp; in conditionBuilder()
|
/external/llvm-project/mlir/test/Dialect/PDL/ |
D | ops.mlir | 52 %newOp, %newResults:2 = pdl.operation "foo.op" -> %type1, %type3 53 pdl.replace %root with %newOp 67 %newOp, %newResults:2 = pdl.operation "foo.op" -> %type1, %type3 81 %newOp, %newResults:2 = pdl.operation "foo.op" -> %type1, %type2
|
D | invalid.mlir | 87 %newOp = pdl.operation 111 %newOp, %result = pdl.operation "foo.op" -> %type 158 %newOp, %newResult = pdl.operation "foo.op" -> %type 161 pdl.replace %root with %newOp 171 %newOp, %newResult = pdl.operation "foo.op" -> %type 174 "pdl.replace"(%root, %newOp, %newResult) { 186 %newOp, %newResult = pdl.operation "foo.op" -> %type
|
/external/llvm-project/mlir/lib/Conversion/AVX512ToLLVM/ |
D | ConvertAVX512ToLLVM.cpp | 50 auto newOp = rewriter.create<TargetOp>(op->getLoc(), packedType, operands, in matchAndRewriteOneToOne() local 57 return rewriter.replaceOp(op, newOp->getResult(0)), success(); in matchAndRewriteOneToOne() 66 op->getLoc(), type, newOp->getResult(0), rewriter.getI64ArrayAttr(i))); in matchAndRewriteOneToOne()
|
/external/llvm-project/mlir/lib/Transforms/ |
D | NormalizeMemRefs.cpp | 397 Operation *newOp = createOpResultsNormalized(funcOp, op); in normalizeFuncOpMemRefs() local 401 if (op != newOp) { in normalizeFuncOpMemRefs() 406 Value newMemRef = newOp->getResult(resIndex); in normalizeFuncOpMemRefs() 426 newOp->erase(); in normalizeFuncOpMemRefs() 434 op->replaceAllUsesWith(newOp); in normalizeFuncOpMemRefs()
|
/external/llvm-project/mlir/lib/IR/ |
D | PatternMatch.cpp | 243 Operation *newOp) { in replaceOpWithResultsOfAnotherOp() argument 244 assert(op->getNumResults() == newOp->getNumResults() && in replaceOpWithResultsOfAnotherOp() 247 return replaceOp(op, newOp->getResult(0)); in replaceOpWithResultsOfAnotherOp() 248 return replaceOp(op, newOp->getResults()); in replaceOpWithResultsOfAnotherOp()
|
D | Operation.cpp | 622 auto *newOp = create(getLoc(), getName(), getResultTypes(), operands, attrs, in cloneWithoutRegions() local 627 mapper.map(getResult(i), newOp->getResult(i)); in cloneWithoutRegions() 629 return newOp; in cloneWithoutRegions() 643 auto *newOp = cloneWithoutRegions(mapper); in clone() local 647 getRegion(i).cloneInto(&newOp->getRegion(i), mapper); in clone() 649 return newOp; in clone()
|
D | Builders.cpp | 464 Operation *newOp = op.clone(mapper); in clone() local 472 for (Region ®ion : newOp->getRegions()) in clone() 475 return insert(newOp); in clone()
|
/external/llvm-project/mlir/lib/Conversion/SCFToSPIRV/ |
D | SCFToSPIRV.cpp | 91 static void replaceSCFOutputValue(ScfOp scfOp, OpTy newOp, in replaceSCFOutputValue() argument 98 auto &allocas = scfToSPIRVContext->outputVars[newOp]; in replaceSCFOutputValue() 106 rewriter.setInsertionPoint(newOp); in replaceSCFOutputValue() 111 rewriter.setInsertionPointAfter(newOp); in replaceSCFOutputValue()
|
/external/deqp/external/openglcts/modules/gl/ |
D | gl4cShaderAtomicCounterOpsTests.hpp | 257 ShaderPipeline(glu::ShaderType testedShader, AtomicOperation* newOp, bool contextGL46); 296 inline void addOperation(AtomicOperation* newOp) in addOperation() argument 300 m_shaderPipelines.push_back(ShaderPipeline((glu::ShaderType)i, newOp, m_contextSupportsGL46)); in addOperation()
|
D | gl4cShaderAtomicCounterOpsTests.cpp | 43 …erOpsTestBase::ShaderPipeline::ShaderPipeline(glu::ShaderType testedShader, AtomicOperation* newOp, in ShaderPipeline() argument 45 : m_program(NULL), m_programCompute(NULL), m_testedShader(testedShader), m_atomicOp(newOp) in ShaderPipeline()
|
/external/llvm-project/mlir/include/mlir/IR/ |
D | PatternMatch.h | 459 auto newOp = create<OpTy>(op->getLoc(), std::forward<Args>(args)...); in replaceOpWithNewOp() local 460 replaceOpWithResultsOfAnotherOp(op, newOp.getOperation()); in replaceOpWithNewOp() 566 void replaceOpWithResultsOfAnotherOp(Operation *op, Operation *newOp);
|
/external/llvm-project/mlir/lib/Dialect/SCF/ |
D | SCF.cpp | 757 auto newOp = rewriter.create<IfOp>(op.getLoc(), newTypes, op.condition(), in matchAndRewrite() local 762 transferBody(op.getBody(0), newOp.getBody(0), usedResults, rewriter); in matchAndRewrite() 763 transferBody(op.getBody(1), newOp.getBody(1), usedResults, rewriter); in matchAndRewrite() 768 repResults[en.value().getResultNumber()] = newOp.getResult(en.index()); in matchAndRewrite() 1065 auto newOp = in matchAndRewrite() local 1070 rewriter.cloneRegionBefore(op.region(), newOp.region(), in matchAndRewrite() 1071 newOp.region().begin(), mapping); in matchAndRewrite() 1072 rewriter.replaceOp(op, newOp.getResults()); in matchAndRewrite()
|
/external/llvm-project/mlir/lib/Dialect/Linalg/IR/ |
D | LinalgOps.cpp | 1713 Operation *newOp = in matchAndRewrite() local 1715 rewriter.replaceOp(op, newOp->getResults()); in matchAndRewrite() 1773 Operation *newOp = linalgOp.clone(rewriter, op->getLoc(), in matchAndRewrite() local 1775 auto newLinalgOp = cast<LinalgOp>(newOp); in matchAndRewrite() 1785 newOp->setAttr("indexing_maps", in matchAndRewrite() 1801 Block &payload = newOp->getRegion(0).front(); in matchAndRewrite() 1816 rewriter.replaceOp(op, newOp->getResults()); in matchAndRewrite()
|
/external/llvm-project/mlir/lib/Dialect/Affine/Transforms/ |
D | SuperVectorize.cpp | 1083 OperationState newOp(opInst->getLoc(), opInst->getName().getStringRef(), in vectorizeOneOperation() local 1086 return b.createOperation(newOp); in vectorizeOneOperation()
|