diff options
| author | Alex Voicu <alexandru.voicu@amd.com> | 2025-11-06 12:42:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-06 10:42:58 +0000 |
| commit | 06ec47055ad1f085e64edca3f94f34f4da053ba0 (patch) | |
| tree | ed232afb71ac02c4a76929a7a5077b248c7ad469 /flang/lib/Frontend/CompilerInvocation.cpp | |
| parent | 59f6f33bc3d666acdc5e4c822dfaddc92dee1f83 (diff) | |
| download | llvm-06ec47055ad1f085e64edca3f94f34f4da053ba0.zip llvm-06ec47055ad1f085e64edca3f94f34f4da053ba0.tar.gz llvm-06ec47055ad1f085e64edca3f94f34f4da053ba0.tar.bz2 | |
[SPIRV] Handle unknown intrinsics (#166284)
This ports rather useful functionality that was already available in the
Translator, and was mostly implemented in the BE. Today, if we encounter
an unknown intrinsic, we pipe it through and hope for the best, which in
practice yields either obtuse ISEL errors, or potentially impossible to
use SPIR-V. With this change, if instructed via a newly added
`--spv-allow-unknown-intrinsics` flag, we emit allowed intrinsics as
calls to extern (import) functions. The test is also mostly lifted from
the Translator.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
