"LinkageAttributes" decoration allow a SPIR-V module to import
external functions and global variables, or export functions or
global variables for other SPIR-V modules to link against and use.
Import/export capability is extremely important when using outside
libraries (e.g., intrinsic libraries).
Added decorations:
- LinkageAttributes
Instead of just attaching this to the function and global variable as a normal attribute, I'd think we want to modify the definition of spirv.func and spirv.GlobalVariable to include it as a native (optional) attribute. That is, update those two ops' ODS to includ this. It would be better for printing/verification and to avoid accidentally dropping this.