We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CIR Codegen are missing function and call site attributes such as noalias, noundef, nonnull example code
noalias
noundef
nonnull
void test_basic() { __builtin_operator_delete(__builtin_operator_new(4)); }
Traditional clang (OG) generated code: like
%call = call noalias noundef nonnull ptr @_Znwm(i64 noundef 4) ... declare noundef nonnull ptr @_Znwm(i64 noundef)
Currently, CIR generates code like:
%1 = call ptr @_Znwm(i64 4) declare !dbg !3 ptr @_Znwm(i64)
The difference may come from the fact [CIRGenModule::constructAttributeList] not finished (
clangir/clang/lib/CIR/CodeGen/CIRGenCall.cpp
Line 347 in 3d16a0f
The text was updated successfully, but these errors were encountered:
No branches or pull requests
CIR Codegen are missing function and call site attributes such as
noalias
,noundef
,nonnull
example code
Traditional clang (OG) generated code: like
Currently, CIR generates code like:
The difference may come from the fact [CIRGenModule::constructAttributeList] not finished (
clangir/clang/lib/CIR/CodeGen/CIRGenCall.cpp
Line 347 in 3d16a0f
comparing to OG CodeGenModule::ConstructAttributeList
The text was updated successfully, but these errors were encountered: