[llvm] [Utils][SPIR-V] Adding spirv-sim to LLVM (PR #104020)
Nathan Gauër via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 22 08:21:17 PDT 2024
================
@@ -0,0 +1,387 @@
+# Base class for an instruction. To implement a basic instruction that doesn't
+# impact the control-flow, create a new class inheriting from this.
+class Instruction:
+ _result: str
----------------
Keenuts wrote:
Looks like class members can be annotated either here or in the __init__. Moved all members annotation in the class body, and removed those from the constructor.
https://github.com/llvm/llvm-project/pull/104020
More information about the llvm-commits
mailing list