================
@@ -767,12 +767,24 @@ def RotateLeft : BitInt8_16_32_64BuiltinsTemplate, 
Builtin {
   let Prototype = "T(T, T)";
 }
 
+def RotateLeftg : Builtin {
+  let Spellings = ["__builtin_rotateleftg"];
+  let Attributes = [NoThrow, Const, Constexpr, CustomTypeChecking];
+  let Prototype = "void(...)";
+}
+
 def RotateRight : BitInt8_16_32_64BuiltinsTemplate, Builtin {
   let Spellings = ["__builtin_rotateright"];
   let Attributes = [NoThrow, Const, Constexpr];
   let Prototype = "T(T, T)";
 }
 
+def RotateRightg : Builtin {
+  let Spellings = ["__builtin_rotaterightg"];
+  let Attributes = [NoThrow, Const, Constexpr, CustomTypeChecking];
----------------
philnik777 wrote:

There should be one though. Otherwise these builtins are much less useful IMO. 
Given that the constant size builtins are constexpr it should also be fairly 
trivial to implement.

https://github.com/llvm/llvm-project/pull/160259
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to