diff options
| author | Alex Zinenko <zinenko@google.com> | 2019-12-06 01:08:40 -0800 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-12-06 01:09:13 -0800 |
| commit | 58adf99ed1a2656c8aec310e6f78da986eb05570 (patch) | |
| tree | 995eeda0c2c7b3e96a3acbd09cb241a440315e00 /mlir/lib/Dialect/SPIRV/Serialization/Deserializer.cpp | |
| parent | 12e57cf6c030a4d1a071ee668d17c5db169d98d6 (diff) | |
| download | bcm5719-llvm-58adf99ed1a2656c8aec310e6f78da986eb05570.tar.gz bcm5719-llvm-58adf99ed1a2656c8aec310e6f78da986eb05570.zip | |
LLVM::AddressOfOp: properly take into account the address space
The AddressOf operation in the LLVM dialect return a pointer to a global
variable. The latter may be in a non-default address space as indicated by the
"addr_space" attribute. Check that the address space of the pointer returned by
AddressOfOp matches that of the referenced GlobalOp. Update the AddressOfOp
builder to respect this constraint.
PiperOrigin-RevId: 284138860
Diffstat (limited to 'mlir/lib/Dialect/SPIRV/Serialization/Deserializer.cpp')
0 files changed, 0 insertions, 0 deletions

