[KERNEL_GEN] Fix func type for DeallocRawOp in TF Framework.
PiperOrigin-RevId: 335374599 Change-Id: I2fd1782e0b4881834861ade76f3acbebafdd631a
This commit is contained in:
parent
5510653124
commit
45654084ab
@ -55,7 +55,7 @@ func @alloc_raw(%ctx: !tf_framework.op_kernel_context,
|
||||
|
||||
// -----
|
||||
|
||||
// CHECK: llvm.func @_mlir_ciface_tf_dealloc_raw(!llvm.ptr<i8>)
|
||||
// CHECK: llvm.func @_mlir_ciface_tf_dealloc_raw(!llvm.ptr<i8>, !llvm.ptr<i8>)
|
||||
|
||||
// CHECK-LABEL: llvm.func @dealloc_raw(
|
||||
// CHECK-SAME: [[TF_CTX:%.*]]: !llvm.ptr<i8>,
|
||||
|
@ -171,7 +171,8 @@ class DeallocRawOpConverter : public ConvertToLLVMCallOpPattern<DeallocRawOp> {
|
||||
protected:
|
||||
StringRef GetFuncName() const override { return kCInterfaceDealloc; }
|
||||
LLVMType GetFuncType() const override {
|
||||
return LLVM::LLVMType::getFunctionTy(getVoidType(), getVoidPtrType(),
|
||||
return LLVM::LLVMType::getFunctionTy(getVoidType(),
|
||||
{getVoidPtrType(), getVoidPtrType()},
|
||||
/*isVarArg=*/false);
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user