Use named traits in the ODS definition of LLVMFuncOp

The "FunctionLike" and "IsIsolatedFromAbove" op traits are now defined as named
records in base ODS file. Use those instead of NativeOpTrait referring to the
C++ class name in the ODS definition of LLVMFuncOp. NFC.

PiperOrigin-RevId: 284260891
This commit is contained in:
Alex Zinenko 2019-12-06 14:18:05 -08:00 committed by A. Unique TensorFlower
parent d37f27251f
commit 6e0a2e4e2f
1 changed files with 1 additions and 3 deletions

View File

@ -586,9 +586,7 @@ def LLVM_GlobalOp
} }
def LLVM_LLVMFuncOp def LLVM_LLVMFuncOp
: LLVM_ZeroResultOp<"func", : LLVM_ZeroResultOp<"func", [IsolatedFromAbove, FunctionLike, Symbol]>,
[NativeOpTrait<"IsIsolatedFromAbove">,
NativeOpTrait<"FunctionLike">, Symbol]>,
Arguments<(ins DefaultValuedAttr<Linkage, Arguments<(ins DefaultValuedAttr<Linkage,
"Linkage::External">:$linkage)> { "Linkage::External">:$linkage)> {
let summary = "LLVM dialect function, has wrapped LLVM IR function type"; let summary = "LLVM dialect function, has wrapped LLVM IR function type";