================
@@ -77,6 +77,13 @@ class NVPTXTargetCIRGenInfo : public TargetCIRGenInfo {
return cir::IntType::get(&getABIInfo().cgt.getMLIRContext(), 64,
/*isSigned=*/true);
}
+
+ mlir::Type getCUDADeviceBuiltinTextureDeviceType() const override {
+ // On the device side, texture reference is represented as an object handle
+ // in 64-bit integer.
+ return cir::IntType::get(&getABIInfo().cgt.getMLIRContext(), 64,
----------------
Siya-05 wrote:
Thanks! I've updated this to preserve the texture semantics at the CIR level
with a dedicated `!cir.cuda_texture` type, and lower it to i64 during
CIR-to-LLVM lowering.
https://github.com/llvm/llvm-project/pull/214781
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits