[llvm] [SPIR-V] Emit SPIR-V bitcasts between source/expected pointer type (PR #69621)

Ilia Diachkov via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 14 13:20:56 PST 2023


================
@@ -74,6 +74,10 @@ class SPIRVEmitIntrinsics
   void processInstrAfterVisit(Instruction *I);
   void insertAssignPtrTypeIntrs(Instruction *I);
   void insertAssignTypeIntrs(Instruction *I);
+
+  DenseSet<Instruction *> PtrCastInstrs;
+  void insertPtrCastInstr(Instruction *I);
+
----------------
iliya-diyachkov wrote:

If we don't need PtrCastInstrs, we also don't need the empty line here  and at 77.

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


More information about the llvm-commits mailing list