[PATCH] D149123: [AArch64][InlineAsm]Add Clang support for flag output constraints

Mingming Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 24 22:55:23 PDT 2023


mingmingl created this revision.
Herald added subscribers: mstorsjo, kristof.beyls.
Herald added a project: All.
mingmingl requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Before:

- Clang emits 'invalid output constraint error' https://gcc.godbolt.org/z/jWKKr1vrv

After:

- Clang validates and parses flag output constraints to generate LLVM IR.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149123

Files:
  clang/lib/Basic/Targets/AArch64.cpp
  clang/lib/Basic/Targets/AArch64.h
  clang/test/CodeGen/inline-asm-aarch64-flag-output.c
  clang/test/Preprocessor/aarch64_asm_flag_output.c
  clang/test/Preprocessor/init-aarch64.c
  clang/test/Preprocessor/predefined-win-macros.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149123.516627.patch
Type: text/x-patch
Size: 9093 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230425/7e0cdbb5/attachment-0001.bin>


More information about the cfe-commits mailing list