Lower all StandardOps to LLVMIR in kernel_gen.
PiperOrigin-RevId: 340702811 Change-Id: I525313971f23516454273f944c82f2a74ff01289
This commit is contained in:
parent
5adba3f435
commit
cd0ef5f0a2
@ -56,8 +56,8 @@ class TFKernelToLLVMPass : public TFKernelToLLVMPassBase<TFKernelToLLVMPass> {
|
|||||||
// Set target.
|
// Set target.
|
||||||
ConversionTarget target(getContext());
|
ConversionTarget target(getContext());
|
||||||
target.addLegalDialect<LLVM::LLVMDialect>();
|
target.addLegalDialect<LLVM::LLVMDialect>();
|
||||||
target
|
target.addIllegalDialect<gpu::GPUDialect, StandardOpsDialect,
|
||||||
.addIllegalDialect<gpu::GPUDialect, tf_framework::TFFrameworkDialect>();
|
tf_framework::TFFrameworkDialect>();
|
||||||
target.addIllegalOp<LLVM::DialectCastOp>();
|
target.addIllegalOp<LLVM::DialectCastOp>();
|
||||||
|
|
||||||
if (failed(applyPartialConversion(m, target, std::move(patterns)))) {
|
if (failed(applyPartialConversion(m, target, std::move(patterns)))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user