[llvm-branch-commits] [llvm] [RuntimeLibcalls] Add wchar_t support (PR #241681)
Sergei Barannikov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Nov 11 23:13:02 PST 2026
================
@@ -204,6 +204,10 @@ struct RuntimeLibcallsInfo {
bool &ShouldZExtBoolReturn,
const Triple &T);
+ /// Returns the extension attribute needed for a wchar_t parameter of a
+ /// libcall. May be zeroext, signext, or none.
+ LLVM_ABI static Attribute::AttrKind getExtAttrForWCharParam(const Module &M);
----------------
s-barannikov wrote:
I guess Attribute::AttrKind is part of IR too? I would hate it to return std::optional<bool>.
WDYT about adding an enum for extension types?
https://github.com/llvm/llvm-project/pull/241681
More information about the llvm-branch-commits
mailing list