[all-commits] [llvm/llvm-project] b4f2e8: [RISCV] Refactor conversion of B extensions to IR ...

Craig Topper via All-commits all-commits at lists.llvm.org
Fri Apr 2 23:50:58 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b4f2e8060075761dd0e9727ea01ca0142b4e767f
      https://github.com/llvm/llvm-project/commit/b4f2e8060075761dd0e9727ea01ca0142b4e767f
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-04-02 (Fri, 02 Apr 2021)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp

  Log Message:
  -----------
  [RISCV] Refactor conversion of B extensions to IR intrinsics a little to reduce clang binary size.

These all pass 1 type to getIntrinsic. So rather than assigning
IntrinsicTypes for each builtin which invokes the SmallVector
constructor, just select the intrinsic ID with a switch and
share a single assignment of IntrinsicTypes.




More information about the All-commits mailing list