The source type has OpenCL general address space but dest type does
not have address space. Address space cast is needed for this scenario.
Details
Details
- Reviewers
Anastasia
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Time | Test | |
---|---|---|
620 ms | x64 debian > Clang.Driver::rocm-detect.hip Script:
--
: 'RUN: at line 10'; /var/lib/buildkite-agent/builds/llvm-project/build/bin/clang -### -v -target x86_64-linux-gnu --cuda-gpu-arch=gfx902 --rocm-path=/var/lib/buildkite-agent/builds/llvm-project/clang/test/Driver/Inputs/rocm /var/lib/buildkite-agent/builds/llvm-project/clang/test/Driver/rocm-detect.hip 2>&1 | /var/lib/buildkite-agent/builds/llvm-project/build/bin/FileCheck -check-prefixes=COMMON,GFX902-DEFAULTLIBS /var/lib/buildkite-agent/builds/llvm-project/clang/test/Driver/rocm-detect.hip
|
Event Timeline
clang/lib/CodeGen/CGBuiltin.cpp | ||
---|---|---|
12412 | I think the semantics of builtin functions is that they accept any address space. So you should preserve the address space from Ops[1]. |