forked from OSchip/llvm-project
[mlir] Rename 'setInsertionPointAfter' to avoid ambiguity
Rename 'setInsertionPointAfter(Value)' API to avoid ambiguity with 'setInsertionPointAfter(Operation *)' for SingleResult operations which implicitly convert to Value (see D86756). Differential Revision: https://reviews.llvm.org/D87155
This commit is contained in:
parent
c3fd2a50ba
commit
609f5e050c
|
@ -333,7 +333,7 @@ public:
|
||||||
/// defining operation. This will cause subsequent insertions to go right
|
/// defining operation. This will cause subsequent insertions to go right
|
||||||
/// after it. Otherwise, value is a BlockArgumen. Sets the insertion point to
|
/// after it. Otherwise, value is a BlockArgumen. Sets the insertion point to
|
||||||
/// the start of its block.
|
/// the start of its block.
|
||||||
void setInsertionPointAfter(Value val) {
|
void setInsertionPointAfterValue(Value val) {
|
||||||
if (Operation *op = val.getDefiningOp()) {
|
if (Operation *op = val.getDefiningOp()) {
|
||||||
setInsertionPointAfter(op);
|
setInsertionPointAfter(op);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -945,7 +945,7 @@ static bool isUniformDefinition(Value value,
|
||||||
/// vectorization strategy in 'state'.
|
/// vectorization strategy in 'state'.
|
||||||
static Value vectorizeUniform(Value value, VectorizationState *state) {
|
static Value vectorizeUniform(Value value, VectorizationState *state) {
|
||||||
OpBuilder builder(value.getContext());
|
OpBuilder builder(value.getContext());
|
||||||
builder.setInsertionPointAfter(value);
|
builder.setInsertionPointAfterValue(value);
|
||||||
|
|
||||||
auto vectorTy = getVectorType(value.getType(), state->strategy);
|
auto vectorTy = getVectorType(value.getType(), state->strategy);
|
||||||
auto bcast = builder.create<BroadcastOp>(value.getLoc(), vectorTy, value);
|
auto bcast = builder.create<BroadcastOp>(value.getLoc(), vectorTy, value);
|
||||||
|
|
Loading…
Reference in New Issue