[MLIR][NFC] Add FuncOp::getArgumentTypes()

Differential Revision: https://reviews.llvm.org/D85038
This commit is contained in:
Rahul Joshi 2020-07-31 11:39:49 -07:00
parent 77d5a63c19
commit eb8c72cb0d

View file

@ -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
//===--------------------------------------------------------------------===//