[all-commits] [llvm/llvm-project] 016342: [RISCV] Evaluate ICE operands to builtins using ge...

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Jun 26 13:52:23 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 016342e319fd31e41cf5ed16a6140a8ea2de74dd
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    A clang/test/CodeGen/RISCV/rvv-intrinsics/vget-vset-ice.cpp

  Log Message:
  [RISCV] Evaluate ICE operands to builtins using getIntegerConstantExpr.

Some RISC-V builtins requires ICE operands. We should call
getIntegerConstantExpr instead of EmitScalarExpr to match other

This was made a little trickier by the vector intrinsics not having
a valid type string, but there are two that have ICE operands so
I specified them manually.

More information about the All-commits mailing list