Skip to content

Commit

Permalink
Integrate LLVM at llvm/llvm-project@b2613fb2f0f5
Browse files Browse the repository at this point in the history
Updates LLVM usage to match
[b2613fb2f0f5](llvm/llvm-project@b2613fb2f0f5)

PiperOrigin-RevId: 343012713
  • Loading branch information
iree-copybara-bot committed Nov 18, 2020
1 parent 00c8230 commit 3111eb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion SUBMODULE_VERSIONS
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ a5d9d0f7d368054fd1691aedf1db4116efcc233e third_party/flatbuffers
4fb0ff7069bd88ee85902f4d0bb62794e5f6d021 third_party/flatcc
f2fb48c3b3d79a75a88a99fba6576b25d42ec528 third_party/googletest
9c04d22c6068ec07d25e236b14e3362f3e5efc2c third_party/llvm-bazel
499bce3abab8a362b9b4197944bd40b826c736c4 third_party/llvm-project
b2613fb2f0f53691dd0211895afbb9413457fca7 third_party/llvm-project
55801f03f9cc69abfcf8b508a873f702c11b3b5f third_party/mlir-emitc
74d7261be17cf659d5930d4830609406bd7553e3 third_party/pffft
d8c7ee00a687ac369e62e2032514a93a9b413502 third_party/pybind11
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module attributes {spv.target_env = #spv.target_env<#spv.vce<v1.3, [Shader], [SP
func @push_constant() {
// CHECK: %[[INDEX_0:.+]] = spv.constant 0 : i32
// CHECK: %[[INDEX_1:.+]] = spv.constant 2 : i32
// CHECK: %[[ADDR:.+]] = spv._address_of @__push_constant_var__ : !spv.ptr<!spv.struct<(!spv.array<5 x i32, stride=4> [0])>, PushConstant>
// CHECK: %[[ADDR:.+]] = spv.mlir.addressof @__push_constant_var__ : !spv.ptr<!spv.struct<(!spv.array<5 x i32, stride=4> [0])>, PushConstant>
// CHECK: %[[AC:.+]] = spv.AccessChain %[[ADDR]][%[[INDEX_0]], %[[INDEX_1]]] : !spv.ptr<!spv.struct<(!spv.array<5 x i32, stride=4> [0])>, PushConstant>
// CHECK: spv.Load "PushConstant" %[[AC]] : i32
%0 = hal.interface.load.constant offset = 2 : index
Expand Down Expand Up @@ -49,17 +49,17 @@ module attributes {spv.target_env = #spv.target_env<#spv.vce<v1.3, [Shader], [SP

// CHECK: spv.func @resource_bindings_in_entry_func1()
func @resource_bindings_in_entry_func1() {
// CHECK: spv._address_of @[[FUNC1_ARG:.+]]
// CHECK: spv._address_of @[[FUNC1_RET:.+]]
// CHECK: spv.mlir.addressof @[[FUNC1_ARG:.+]]
// CHECK: spv.mlir.addressof @[[FUNC1_RET:.+]]
%0 = iree.placeholder for "interface buffer" {binding = @legacy_io::@arg0} : memref<4x4xf32>
%1 = iree.placeholder for "interface buffer" {binding = @legacy_io::@ret0} : memref<4xvector<4xf32>>
return
}

// CHECK: spv.func @resource_bindings_in_entry_func2()
func @resource_bindings_in_entry_func2() {
// CHECK: spv._address_of @[[FUNC2_ARG]]
// CHECK: spv._address_of @[[FUNC2_RET]]
// CHECK: spv.mlir.addressof @[[FUNC2_ARG]]
// CHECK: spv.mlir.addressof @[[FUNC2_RET]]
%0 = iree.placeholder for "interface buffer" {binding = @legacy_io::@arg0} : memref<4x4xf32>
%1 = iree.placeholder for "interface buffer" {binding = @legacy_io::@ret0} : memref<4x4xf32>
return
Expand Down

0 comments on commit 3111eb7

Please sign in to comment.