forked from OSchip/llvm-project
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:
parent
d37f27251f
commit
6e0a2e4e2f
|
@ -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";
|
||||||
|
|
Loading…
Reference in New Issue