Clang now supports GNU's asm goto with outputs.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 45038 Build 46665: arc lint + arc unit
Event Timeline
Great idea; thanks for the patch! Needs documentation. :)
clang/test/Parser/asm-goto-with-outputs.c | ||
---|---|---|
7 ↗ | (On Diff #240657) | probably don't need a bunch of test cases, just the check for the preprocessor define? In that case, why don't you just add the above to an existing asm goto test? |
I can't find a place for documentation of extensions, at least not the names of extensions like gnu_asm.
clang/test/Parser/asm-goto-with-outputs.c | ||
---|---|---|
7 ↗ | (On Diff #240657) | Sure. done. |
How about https://clang.llvm.org/docs/LanguageExtensions.html#checks-for-standard-language-features ? Then we can add both gnu_asm and gnu_asm_goto_with_outputs.
clang/test/Parser/asm-goto.c | ||
---|---|---|
9 | ah, sorry, maybe a test that makes use of asm goto + output constraints? Maybe if you base your patch on top of the others in the series that implement the feature? |
clang/docs/LanguageExtensions.rst | ||
---|---|---|
1273 | Is the canonical spelling %l2? |
That looks like it's features specific to various versions of C/C++. There were other examples like https://clang.llvm.org/docs/LanguageExtensions.html#blocks.
clang/test/Parser/asm-goto.c | ||
---|---|---|
9 | There's one below in zoo. The order of these patches is a bit wonky because the front-end patch, which has more tests for AGWO, should go in before this one. |
Is the canonical spelling %l2?