[all-commits] [llvm/llvm-project] d35bcb: [Sema][X86] Consider target attribute into the che...

topperc via All-commits all-commits at lists.llvm.org
Mon Dec 23 11:24:06 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d35bcbbb5dab0e29b21a586505f5b274377cc41b
      https://github.com/llvm/llvm-project/commit/d35bcbbb5dab0e29b21a586505f5b274377cc41b
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2019-12-23 (Mon, 23 Dec 2019)

  Changed paths:
    M clang/include/clang/AST/ASTContext.h
    M clang/include/clang/Basic/TargetInfo.h
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/Basic/Targets/X86.cpp
    M clang/lib/Basic/Targets/X86.h
    M clang/lib/CodeGen/CodeGenFunction.cpp
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/CodeGen/CodeGenModule.h
    M clang/lib/Sema/SemaStmtAsm.cpp
    M clang/test/CodeGen/x86_32-inline-asm.c

  Log Message:
  -----------
  [Sema][X86] Consider target attribute into the checks in validateOutputSize and validateInputSize.

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 moves some of the code from CodeGen to create an
appropriate feature map that we can pass to the function.

Differential Revision: https://reviews.llvm.org/D68627




More information about the All-commits mailing list