summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorAlex Voicu <alexandru.voicu@amd.com>2024-05-19 16:59:03 +0300
committerGitHub <noreply@github.com>2024-05-19 14:59:03 +0100
commit10edb4991c12738e60843d55cd9edbf6d702d9eb (patch)
treee75a23d05c4f3b8186bdba58f669cf59b86523f9 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentc587483da0b50efa04146fde205da1d16731e12e (diff)
[Clang][CodeGen] Start migrating away from assuming the Default AS is 0 (#88182)
At the moment, Clang is rather liberal in assuming that 0 (and by extension unqualified) is always a safe default. This does not work for targets that actually use a different value for the default / generic AS (for example, the SPIRV that obtains from HIPSPV or SYCL). This patch is a first, fairly safe step towards trying to clear things up by querying a modules' default AS from the target, rather than assuming it's 0, alongside fixing a few places where things break / we encode the 0 == DefaultAS assumption. A bunch of existing tests are extended to check for non-zero default AS usage.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions