Home
last modified time | relevance | path

Searched refs:newOp (Results 1 – 21 of 21) sorted by relevance

/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/
DIntermediate.cpp569 bool TIntermediate::buildConvertOp(TBasicType dst, TBasicType src, TOperator& newOp) const in buildConvertOp()
575 case EbtUint: newOp = EOpConvUintToDouble; break; in buildConvertOp()
576 case EbtBool: newOp = EOpConvBoolToDouble; break; in buildConvertOp()
577 case EbtFloat: newOp = EOpConvFloatToDouble; break; in buildConvertOp()
578 case EbtInt: newOp = EOpConvIntToDouble; break; in buildConvertOp()
579 case EbtInt8: newOp = EOpConvInt8ToDouble; break; in buildConvertOp()
580 case EbtUint8: newOp = EOpConvUint8ToDouble; break; in buildConvertOp()
581 case EbtInt16: newOp = EOpConvInt16ToDouble; break; in buildConvertOp()
582 case EbtUint16: newOp = EOpConvUint16ToDouble; break; in buildConvertOp()
583 case EbtFloat16: newOp = EOpConvFloat16ToDouble; break; in buildConvertOp()
[all …]
/external/deqp-deps/glslang/glslang/MachineIndependent/
DIntermediate.cpp569 bool TIntermediate::buildConvertOp(TBasicType dst, TBasicType src, TOperator& newOp) const in buildConvertOp()
575 case EbtUint: newOp = EOpConvUintToDouble; break; in buildConvertOp()
576 case EbtBool: newOp = EOpConvBoolToDouble; break; in buildConvertOp()
577 case EbtFloat: newOp = EOpConvFloatToDouble; break; in buildConvertOp()
578 case EbtInt: newOp = EOpConvIntToDouble; break; in buildConvertOp()
579 case EbtInt8: newOp = EOpConvInt8ToDouble; break; in buildConvertOp()
580 case EbtUint8: newOp = EOpConvUint8ToDouble; break; in buildConvertOp()
581 case EbtInt16: newOp = EOpConvInt16ToDouble; break; in buildConvertOp()
582 case EbtUint16: newOp = EOpConvUint16ToDouble; break; in buildConvertOp()
583 case EbtFloat16: newOp = EOpConvFloat16ToDouble; break; in buildConvertOp()
[all …]
/external/tensorflow/tensorflow/compiler/xla/mlir_hlo/stablehlo/tests/
DTestUtils.cpp65 auto *newOp = rewriter.create(state); in matchAndRewrite() local
67 newOp->setAttr((StringRef("types") + Twine(it.index())).str(), in matchAndRewrite()
70 rewriter.replaceOp(op, {newOp->getResults()}); in matchAndRewrite()
98 auto *newOp = rewriter.create(state); in matchAndRewrite() local
101 newOp->setAttr((StringRef("dims") + Twine(it.index())).str(), in matchAndRewrite()
105 newOp->setAttr((Twine("element_type") + Twine(it.index())).str(), in matchAndRewrite()
109 rewriter.replaceOp(op, {newOp->getResults()}); in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/xla/mlir_hlo/lib/Dialect/mhlo/transforms/
Dtest_infer_shaped_type_pass.cc54 auto *newOp = rewriter.create(state); in matchAndRewrite() local
56 newOp->setAttr((StringRef("types") + Twine(it.index())).str(), in matchAndRewrite()
59 rewriter.replaceOp(op, {newOp->getResults()}); in matchAndRewrite()
86 auto *newOp = rewriter.create(state); in matchAndRewrite() local
89 newOp->setAttr((StringRef("dims") + Twine(it.index())).str(), in matchAndRewrite()
93 newOp->setAttr((Twine("element_type") + Twine(it.index())).str(), in matchAndRewrite()
97 rewriter.replaceOp(op, {newOp->getResults()}); in matchAndRewrite()
Dconvert_to_signless_pass.cc57 auto* newOp = Operation::create(op->getLoc(), op->getName(), resultTypes, in matchAndRewrite() local
60 for (auto regions : llvm::zip(op->getRegions(), newOp->getRegions())) { in matchAndRewrite()
67 rewriter.insert(newOp); in matchAndRewrite()
68 rewriter.replaceOp(op, newOp->getResults()); in matchAndRewrite()
Dmerge_assuming_ops.cc156 Operation *newOp = b.clone(*op, mapping); in moveUpIntoAssumingOpMatchAndRewrite() local
162 mappedResults.append(newOp->getResults().begin(), in moveUpIntoAssumingOpMatchAndRewrite()
163 newOp->getResults().end()); in moveUpIntoAssumingOpMatchAndRewrite()
231 Operation *newOp = rewriter.clone(*op); in moveDownIntoAssumingOpMatchAndRewrite() local
232 rewriter.replaceOp(op, newOp->getResults()); in moveDownIntoAssumingOpMatchAndRewrite()
281 Operation *newOp = rewriter.clone(*op); in matchAndRewrite() local
282 rewriter.replaceOp(op, newOp->getResults()); in matchAndRewrite()
287 auto isNewOpResult = [newOp](Value v) { in matchAndRewrite()
288 return llvm::is_contained(newOp->getResults(), v); in matchAndRewrite()
Dmhlo_canonicalize_reduction.cc217 auto newOp = b.create<ReduceOp>(loc, newOperands, op.init_values(), attr); in runOnOperation() local
218 newOp.body().takeBody(op.body()); in runOnOperation()
224 for (Value result : newOp.getResults()) { in runOnOperation()
236 for (auto&& e : llvm::zip(op.getResults(), newOp.getResults())) { in runOnOperation()
Dcollapse_elementwise_map.cc69 auto *newOp = rewriter.create( in matchAndRewrite() local
73 blockAndValueMap.map(op.getResult(0), newOp->getResult(0)); in matchAndRewrite()
Dhlo_legalize_to_lhlo.cc272 auto newOp = rewriter.create<mhlo::HloToLhloOp<HloOpTy>>( in matchAndRewrite() local
276 rewriter.inlineRegionBefore(hloOp.body(), newOp.getBody(), in matchAndRewrite()
277 newOp.getBody().end()); in matchAndRewrite()
280 auto& entryBlock = newOp.getBody().front(); in matchAndRewrite()
310 rewriter.applySignatureConversion(&newOp.getBody(), sigConversion); in matchAndRewrite()
Drank_specialization.cc217 auto newOp = rewriter.create<chlo::RankSpecializationClusterOp>( in matchAndRewrite() local
222 rewriter.createBlock(&newOp.body(), {}, operandTypes, in matchAndRewrite()
246 auto where = llvm::find(newOp.operands(), operand); in matchAndRewrite()
268 replacement = newOp->getResult(i++); in matchAndRewrite()
272 ValueRange opReplacements = newOp.results().take_back(op.getNumResults()); in matchAndRewrite()
/external/llvm/lib/Target/Hexagon/
DHexagonFixupHwLoops.cpp173 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/
DHexagonFixupHwLoops.cpp174 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/tensorflow/tensorflow/compiler/xla/mlir_hlo/lib/Dialect/gml_st/transforms/
Dbufferize_tiled_loop.cc211 auto *newOp = linalgOp.cloneWithoutRegions(rewriter, linalgOp.getLoc(), in createLinalgOpOnBuffers() local
214 for (auto regions : llvm::zip(linalgOp->getRegions(), newOp->getRegions())) { in createLinalgOpOnBuffers()
219 return newOp; in createLinalgOpOnBuffers()
310 auto newOp = rewriter.create<LoopOp>(op.getLoc(), mlir::TypeRange{}, in matchAndRewrite() local
313 rewriter.inlineRegionBefore(op.getLoopBody(), newOp.getLoopBody(), in matchAndRewrite()
314 newOp.getLoopBody().end()); in matchAndRewrite()
317 if (failed(rewriter.convertRegionTypes(&newOp.getLoopBody(), in matchAndRewrite()
322 rewriter.replaceOp(op, newOp.outputs()); in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/
Dstrip_quant_types.cc111 Operation* newOp = rewriter.create(state); in matchAndRewrite() local
112 rewriter.replaceOp(op, newOp->getResults()); in matchAndRewrite()
Dlegalize_tf.cc283 auto newOp = CreateOpAndInfer<tosa::AddOp>(rewriter, op->getLoc(), in matchAndRewrite() local
286 newOp = CreateOpAndInfer<tosa::AddOp>(rewriter, op->getLoc(), output_type, in matchAndRewrite()
287 inputs[i], newOp.getResult()); in matchAndRewrite()
290 rewriter.replaceOp(op, {newOp.getResult()}); in matchAndRewrite()
Dlegalize_tfl.cc855 auto newOp = CreateOpAndInfer<tosa::AddOp>(rewriter, op->getLoc(), in matchAndRewrite() local
858 newOp = CreateOpAndInfer<tosa::AddOp>(rewriter, op->getLoc(), output_type, in matchAndRewrite()
859 inputs[i], newOp.getResult()); in matchAndRewrite()
862 rewriter.replaceOp(op, {newOp.getResult()}); in matchAndRewrite()
/external/deqp/external/openglcts/modules/gl/
Dgl4cShaderAtomicCounterOpsTests.hpp257 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()
Dgl4cShaderAtomicCounterOpsTests.cpp43 …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/angle/third_party/vulkan-deps/glslang/src/glslang/Include/
Dintermediate.h1419 void setOp(TOperator newOp) { op = newOp; } in setOp() argument
/external/deqp-deps/glslang/glslang/Include/
Dintermediate.h1415 void setOp(TOperator newOp) { op = newOp; } in setOp() argument
/external/tensorflow/tensorflow/compiler/xla/mlir_hlo/lib/Dialect/mhlo/IR/
Dhlo_ops.cc1938 auto newOp = rewriter.create<OpTy>(op->getLoc(), std::forward<Args>(args)...); in refineOpWithNewOp() local
1941 assert(op->getNumResults() == newOp->getNumResults() && in refineOpWithNewOp()
1944 llvm::zip(op->getResults(), newOp->getResults())) { in refineOpWithNewOp()
1956 return newOp; in refineOpWithNewOp()
7197 auto newOp = rewriter.create<SortOp>(op.getLoc(), newOperands, op.dimension(), in sortDropEmptyUseArgs() local
7199 Region& region = newOp.comparator(); in sortDropEmptyUseArgs()
7208 results.push_back(newOp.getResult(j++)); in sortDropEmptyUseArgs()
7229 auto newOp = rewriter.create<SortOp>(op.getLoc(), op.getResultTypes(), in sortOpInferDefaultDimension() local
7231 Region& region = newOp.comparator(); in sortOpInferDefaultDimension()
7233 rewriter.replaceOp(op, newOp.getResults()); in sortOpInferDefaultDimension()