aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineOperand.cpp
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2025-02-10 14:25:44 -0600
committerGitHub <noreply@github.com>2025-02-10 14:25:44 -0600
commit3d9409f5bc413b12acf95b4a6c2a5c8860d95d7c (patch)
tree6896e8775154e2a979075ba120d45c331c4b9490 /llvm/lib/CodeGen/MachineOperand.cpp
parentf332455dd9a2b2b3ecb20f28349673313c5b440b (diff)
downloadllvm-3d9409f5bc413b12acf95b4a6c2a5c8860d95d7c.zip
llvm-3d9409f5bc413b12acf95b4a6c2a5c8860d95d7c.tar.gz
llvm-3d9409f5bc413b12acf95b4a6c2a5c8860d95d7c.tar.bz2
[NVPTX] Make ctor/dtor lowering always enabled in NVPTX (#126544)
Summary: Currently we conditionally enable NVPTX lowering depending on the language (C/C++/OpenMP). Unfortunately this causes problems because this option is only present if the backend was enabled, which causes this to error if you try to make LLVM-IR. This patch instead makes it the only accepted lowering. The reason we had it as opt-in before is because it is not handled by CUDA. So, this pach also introduces diagnostics to prevent *all* creation of device-side global constructors and destructors. We already did this for variables, now we do it for attributes as well. This inverts the responsibility of blocking this from the backend to the langauage like it should be given that support for this is language dependent.
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions