summaryrefslogtreecommitdiffstats
path: root/mlir/test/EDSC/builder-api-test.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-12-22 21:59:55 -0800
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-12-22 22:00:23 -0800
commit35807bc4c5c9d8abc31ba0b2f955a82abf276e12 (patch)
treed083d37d993a774239081509a50e3e6c65366421 /mlir/test/EDSC/builder-api-test.cpp
parent22954a0e408afde1d8686dffb3a3dcab107a2cd3 (diff)
downloadbcm5719-llvm-35807bc4c5c9d8abc31ba0b2f955a82abf276e12.tar.gz
bcm5719-llvm-35807bc4c5c9d8abc31ba0b2f955a82abf276e12.zip
NFC: Introduce new ValuePtr/ValueRef typedefs to simplify the transition to Value being value-typed.
This is an initial step to refactoring the representation of OpResult as proposed in: https://groups.google.com/a/tensorflow.org/g/mlir/c/XXzzKhqqF_0/m/v6bKb08WCgAJ This change will make it much simpler to incrementally transition all of the existing code to use value-typed semantics. PiperOrigin-RevId: 286844725
Diffstat (limited to 'mlir/test/EDSC/builder-api-test.cpp')
-rw-r--r--mlir/test/EDSC/builder-api-test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/test/EDSC/builder-api-test.cpp b/mlir/test/EDSC/builder-api-test.cpp
index 0b105eadf5a..376fc249a18 100644
--- a/mlir/test/EDSC/builder-api-test.cpp
+++ b/mlir/test/EDSC/builder-api-test.cpp
@@ -484,7 +484,7 @@ TEST_FUNC(select_op_i32) {
IndexedValue A(f.getArgument(0));
IndexHandle i, j;
AffineLoopNestBuilder({&i, &j}, {zero, zero}, {one, one}, {1, 1})([&]{
- // This test exercises IndexedValue::operator Value*.
+ // This test exercises IndexedValue::operator Value.
// Without it, one must force conversion to ValueHandle as such:
// edsc::intrinsics::select(
// i == zero, ValueHandle(A(zero, zero)), ValueHandle(ValueA(i, j)))
@@ -802,7 +802,7 @@ TEST_FUNC(affine_if_op) {
};
auto intSet = IntegerSet::get(2, 2, affineExprs, isEq);
- SmallVector<Value *, 4> affineIfArgs = {zero, zero, ten, ten};
+ SmallVector<ValuePtr, 4> affineIfArgs = {zero, zero, ten, ten};
intrinsics::affine_if(intSet, affineIfArgs, /*withElseRegion=*/false);
intrinsics::affine_if(intSet, affineIfArgs, /*withElseRegion=*/true);
OpenPOWER on IntegriCloud