[all-commits] [llvm/llvm-project] 464926: [HLSL] Disable integer promotion to avoid int16_t ...

Xiang Li via All-commits all-commits at lists.llvm.org
Thu Oct 20 16:06:40 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 464926ef4484e4cb2d410fd2e959a296d7b8d58e
      https://github.com/llvm/llvm-project/commit/464926ef4484e4cb2d410fd2e959a296d7b8d58e
  Author: Xiang Li <python3kgae at outlook.com>
  Date:   2022-10-20 (Thu, 20 Oct 2022)

  Changed paths:
    M clang/include/clang/AST/ASTContext.h
    M clang/include/clang/AST/CanonicalType.h
    M clang/include/clang/AST/Type.h
    M clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConv.h
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/AST/FormatString.cpp
    M clang/lib/AST/Type.cpp
    M clang/lib/CodeGen/CGExprScalar.cpp
    M clang/lib/CodeGen/TargetInfo.cpp
    M clang/lib/Sema/SemaChecking.cpp
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/Sema/SemaInit.cpp
    M clang/lib/Sema/SemaOverload.cpp
    M clang/lib/Sema/SemaType.cpp
    M clang/test/CodeGenHLSL/builtins/abs.hlsl
    A clang/test/CodeGenHLSL/no_int_promotion.hlsl
    A clang/test/SemaHLSL/BitInt128.hlsl

  Log Message:
  -----------
  [HLSL] Disable integer promotion to avoid int16_t being promoted to int for HLSL.

short will be promoted to int in UsualUnaryConversions.
Disable it for HLSL to keep int16_t as 16bit.

Reviewed By: aaron.ballman, rjmccall

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




More information about the All-commits mailing list