Home
last modified time | relevance | path

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

/external/llvm-project/mlir/lib/Conversion/SPIRVToLLVM/
DConvertSPIRVToLLVM.cpp1194 matchAndRewrite(spirv::GLSLTanOp tanOp, ArrayRef<Value> operands, in matchAndRewrite() argument
1196 auto dstType = typeConverter.convertType(tanOp.getType()); in matchAndRewrite()
1200 Location loc = tanOp.getLoc(); in matchAndRewrite()
1201 Value sin = rewriter.create<LLVM::SinOp>(loc, dstType, tanOp.operand()); in matchAndRewrite()
1202 Value cos = rewriter.create<LLVM::CosOp>(loc, dstType, tanOp.operand()); in matchAndRewrite()
1203 rewriter.replaceOpWithNewOp<LLVM::FDivOp>(tanOp, dstType, sin, cos); in matchAndRewrite()