[PATCH] D68627: [Sema][X86] Consider target attribute into the checks in validateOutputSize and validateInputSize.

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 7 22:53:08 PDT 2019


craig.topper created this revision.
craig.topper added reviewers: rnk, echristo, erichkeane, RKSimon, spatel.
Herald added a project: clang.

The validateOutputSize and validateInputSize need to check whether
AVX or AVX512 are enabled. But this can be affected by the
target attribute so we need to factor that in.

This patch copies some of the code from CodeGen to create an
appropriate feature map that we can pass to the function. Probably
need some refactoring here to share more code with Codegen. Is
there a good place to do that? Also need to support the cpu_specific
attribute as well.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D68627

Files:
  clang/include/clang/Basic/TargetInfo.h
  clang/lib/Basic/Targets/X86.cpp
  clang/lib/Basic/Targets/X86.h
  clang/lib/Sema/SemaStmtAsm.cpp
  clang/test/CodeGen/x86_32-inline-asm.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68627.223788.patch
Type: text/x-patch
Size: 10303 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191008/c2887307/attachment.bin>


More information about the cfe-commits mailing list