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][Dialect][NFC] Fix double white spaces in cir.global assembly (llvm#1096)
Following llvm#1009 and llvm#1028, this PR removes the double white spaces in
the assembly format of `cir.global` op.
It's basically some `mlir-tablegen`-builtin magic: With
`constBuilderCall` specified, we can apply `DefaultValuedAttr` with any
default value we can construct from constant values. Then we can easily
omit the default in assembly. Hence, we don't need to compromise
anything for the wrapper attribute `cir::VisibilityAttr`.
Similarly to llvm#1009, an empty literal ``` `` ``` is used to omit the
leading space emitted by inner attribute.
The test case `visibility-attribute.c` is modified to save the
intermediate CIR to disk and reflect the effects.
Double whitespaces in other test files are removed.
0 commit comments