================
@@ -1145,6 +1178,92 @@ BuiltinTypeDeclBuilder 
&BuiltinTypeDeclBuilder::addLoadMethods() {
   return *this;
 }
 
+BuiltinTypeDeclBuilder &
+BuiltinTypeDeclBuilder::addByteAddressBufferLoadMethods() {
+  assert(!Record->isCompleteDefinition() && "record is already complete");
+
+  using PH = BuiltinTypeMethodBuilder::PlaceHolder;
+  ASTContext &AST = SemaRef.getASTContext();
+
+  auto addLoadMethod = [&](StringRef MethodName, QualType ReturnType) {
----------------
kmpeng wrote:

Ah yeah, I didn't want to name it that because there's already a 
`BuiltinTypeDeclBuilder::addLoadMethods()` and I thought it would be confusing. 
I probably need to find a better name or see if I can modify + use the existing 
one...

https://github.com/llvm/llvm-project/pull/176058
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to