[all-commits] [llvm/llvm-project] 8a7147: [NFC] [Clang] Use global enum for explicit float mode

Qiu Chaofan via All-commits all-commits at lists.llvm.org
Fri Oct 8 19:43:12 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a714722e2aa8a62d7812bd78babc99b7a6aeef6
      https://github.com/llvm/llvm-project/commit/8a714722e2aa8a62d7812bd78babc99b7a6aeef6
  Author: Qiu Chaofan <qiucofan at cn.ibm.com>
  Date:   2021-10-09 (Sat, 09 Oct 2021)

  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/TargetInfo.cpp
    M clang/lib/Basic/Targets/X86.h
    M clang/lib/CodeGen/CGCall.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp

  Log Message:
  -----------
  [NFC] [Clang] Use global enum for explicit float mode

Currently, there're multiple float types that can be represented by
__attribute__((mode(xx))). It's parsed, and then a corresponding type is
created if available.

This refactor moves the enum for mode into a global enum class visible
to ASTContext.

Reviewed By: aaron.ballman, erichkeane

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




More information about the All-commits mailing list