[clang] [Clang][HLSL] Start emitting structured GEP instruction (PR #177332)

Nathan Gauër via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 26 07:18:10 PST 2026


================
@@ -5522,6 +5538,14 @@ static Address emitAddrOfFieldStorage(CodeGenFunction &CGF, Address base,
 
   unsigned idx =
     CGF.CGM.getTypes().getCGRecordLayout(rec).getLLVMFieldNo(field);
+  llvm::Type *StructType =
+      CGF.CGM.getTypes().getCGRecordLayout(rec).getLLVMType();
+
+  if (CGF.getLangOpts().HLSL && CGF.getLangOpts().EmitStructuredGEP)
----------------
Keenuts wrote:

replied to this in the other comment. Closing this in favor of the more general discussion.

https://github.com/llvm/llvm-project/pull/177332


More information about the cfe-commits mailing list