HomePhabricator

[RISCV] Refactor conversion of B extensions to IR intrinsics a little to reduce…

Authored by craig.topper on Fri, Apr 2, 11:34 PM.

Description

[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.

Details

Committed
craig.topperFri, Apr 2, 11:49 PM
Parents
rG2458aa0b9136: Add missing override to clang tblgen AttrEmitter
Branches
Unknown
Tags
Unknown