This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Use unsigned instead of signed types for Zk* and Zb* builtins.
ClosedPublic

Authored by craig.topper on Jul 6 2023, 8:16 AM.

Details

Summary

Unsigned is a better representation for bitmanipulation and cryptography.w

The only exception being the return values for clz and ctz intrinsics is
a signed int. That matches the target independent clz and ctz builtins.

This is consistent with the current scalar crypto proposal
https://github.com/riscv-non-isa/riscv-c-api-doc/pull/44

Diff Detail