[all-commits] [llvm/llvm-project] c2d03e: [MLIR] Change return type of ParallelOp::getInduct...
Alexander Belyaev via All-commits
all-commits at lists.llvm.org
Mon Apr 6 01:11:47 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: c2d03e4ef1412e434ba62fd071f76b65e9f0e666
https://github.com/llvm/llvm-project/commit/c2d03e4ef1412e434ba62fd071f76b65e9f0e666
Author: Alexander Belyaev <pifon at google.com>
Date: 2020-04-06 (Mon, 06 Apr 2020)
Changed paths:
M mlir/include/mlir/Dialect/LoopOps/LoopOps.td
M mlir/lib/Dialect/GPU/Transforms/ParallelLoopMapper.cpp
Log Message:
-----------
[MLIR] Change return type of ParallelOp::getInductionVars to ValueRange.
The current return type sometimes leads to code like
to_vector<2>(ValueRange(loop.getInductionIvs())). It would be nice to
shorten it. Users who need access to Block::BlockArgListType (if there
are any), can always call getBody()->getArguments(); if needed.
Also remove getNumInductionVars(), since there is getNumLoops().
Differential Revision: https://reviews.llvm.org/D77526
More information about the All-commits
mailing list