[MLIR][NFC] Add FuncOp::getArgumentTypes()
Differential Revision: https://reviews.llvm.org/D85038
This commit is contained in:
parent
77d5a63c19
commit
eb8c72cb0d
|
@ -206,6 +206,7 @@ public:
|
|||
//===--------------------------------------------------------------------===//
|
||||
// Argument Handling
|
||||
//===--------------------------------------------------------------------===//
|
||||
using BlockArgListType = Region::BlockArgListType;
|
||||
|
||||
unsigned getNumArguments() {
|
||||
return static_cast<ConcreteType *>(this)->getNumFuncArguments();
|
||||
|
@ -224,6 +225,10 @@ public:
|
|||
args_iterator args_end() { return getBody().args_end(); }
|
||||
Block::BlockArgListType getArguments() { return getBody().getArguments(); }
|
||||
|
||||
ValueTypeRange<BlockArgListType> getArgumentTypes() {
|
||||
return getBody().getArgumentTypes();
|
||||
}
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
// Argument Attributes
|
||||
//===--------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in a new issue