You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[CIR][CodeGen] Set constant properly for global variables (#904)
Fix#801 (the remaining `constant` part). Actually the missing stage is
CIRGen.
There are two places where `GV.setConstant` is called:
* `buildGlobalVarDefinition`
* `getOrCreateCIRGlobal`
Therefore, the primary test `global-constant.c` contains a global
definition and a global declaration with use, which should be enough to
cover the two paths.
A test for OpenCL `constant` qualified global is also added. Some
existing testcases need tweaking to avoid failure of missing constant.
0 commit comments