aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorWenju He <wenju.he@intel.com>2025-08-12 17:19:08 +0800
committerGitHub <noreply@github.com>2025-08-12 17:19:08 +0800
commit111cdaac994ba79af6f51f0970b51c0e4d705cd9 (patch)
treefe3150424793941e0665c33133dd249c14a4ac28 /llvm/lib/Transforms
parenta6e870d0b6b8492781b97fd51ce0efffd822d55f (diff)
downloadllvm-111cdaac994ba79af6f51f0970b51c0e4d705cd9.zip
llvm-111cdaac994ba79af6f51f0970b51c0e4d705cd9.tar.gz
llvm-111cdaac994ba79af6f51f0970b51c0e4d705cd9.tar.bz2
[libclc] Add __attribute__((const)) to functions that don't access memory (#152456)
Before this PR, PostOrderFunctionAttrsPass in opt run can deduce memory(none) for these functions. This PR explicitly adds the attribute to align with Clang's OpenCL headers and ensures the attribute is present throughout the compilation flow. Generated bitcode files amdgcn--amdhsa.bc and nvptx64--nvidiacl.bc become slightly smaller.
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions