<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/88129>88129</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[SPIRV] getOrCreateComposite and getOrCreate<Type> only support type that are 32bit wide
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
farzonl
</td>
</tr>
</table>
<pre>
There is a prexisting TODO on this, but no issue tracking it
so this issue will become thr trackin.
Below is the stacktrace:
```
#0 0x000060969b04c53d llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /mnt/DevDrive/projects/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:11
#1 0x000060969b04ca2b PrintStackTraceSignalHandler(void*) /mnt/DevDrive/projects/llvm-project/llvm/lib/Support/Unix/Signals.inc:798:1
#2 0x000060969b04aa96 llvm::sys::RunSignalHandlers() /mnt/DevDrive/projects/llvm-project/llvm/lib/Support/Signals.cpp:105:5
#3 0x000060969b04d1e5 SignalHandler(int) /mnt/DevDrive/projects/llvm-project/llvm/lib/Support/Unix/Signals.inc:413:1
#4 0x0000701f3f442520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#5 0x0000701f3f4969fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
#6 0x0000701f3f442476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
#7 0x0000701f3f4287f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
#8 0x000060969af643f4 llvm::report_fatal_error(llvm::Twine const&, bool) /mnt/DevDrive/projects/llvm-project/llvm/lib/Support/ErrorHandling.cpp:125:5
#9 0x000060969bd32def reportGISelDiagnostic(llvm::DiagnosticSeverity, llvm::MachineFunction&, llvm::TargetPassConfig const&, llvm::MachineOptimizationRemarkEmitter&, llvm::MachineOptimizationRemarkMissed&) /mnt/DevDrive/projects/llvm-project/llvm/lib/CodeGen/GlobalISel/Utils.cpp:264:5
#10 0x000060969bd32e55 llvm::reportGISelFailure(llvm::MachineFunction&, llvm::TargetPassConfig const&, llvm::MachineOptimizationRemarkEmitter&, llvm::MachineOptimizationRemarkMissed&) /mnt/DevDrive/projects/llvm-project/llvm/lib/CodeGen/GlobalISel/Utils.cpp:278:1
#11 0x000060969bd3302f llvm::reportGISelFailure(llvm::MachineFunction&, llvm::TargetPassConfig const&, llvm::MachineOptimizationRemarkEmitter&, char const*, llvm::StringRef, llvm::MachineInstr const&) /mnt/DevDrive/projects/llvm-project/llvm/lib/CodeGen/GlobalISel/Utils.cpp:291:1
#12 0x000060969bc95634 llvm::InstructionSelect::runOnMachineFunction(llvm::MachineFunction&) /mnt/DevDrive/projects/llvm-project/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp:289:7
#13 0x0000609699a897f6 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /mnt/DevDrive/projects/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:93:8
#14 0x000060969a1ebb4a llvm::FPPassManager::runOnFunction(llvm::Function&) /mnt/DevDrive/projects/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1441:23
#15 0x000060969a1f09a2 llvm::FPPassManager::runOnModule(llvm::Module&) /mnt/DevDrive/projects/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1487:16
#16 0x000060969a1ec43b (anonymous namespace)::MPPassManager::runOnModule(llvm::Module&) /mnt/DevDrive/projects/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1556:23
#17 0x000060969a1ebfb1 llvm::legacy::PassManagerImpl::run(llvm::Module&) /mnt/DevDrive/projects/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:541:16
#18 0x000060969a1f0c81 llvm::legacy::PassManager::run(llvm::Module&) /mnt/DevDrive/projects/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1683:3
#19 0x0000609696bf0747 compileModule(char**, llvm::LLVMContext&) /mnt/DevDrive/projects/llvm-project/llvm/tools/llc/llc.cpp:741:9
#20 0x0000609696bee8f5 main /mnt/DevDrive/projects/llvm-project/llvm/tools/llc/llc.cpp:408:13
#21 0x0000701f3f429d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#22 0x0000701f3f429e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
```
_Originally posted by @farzonl in https://github.com/llvm/llvm-project/pull/87952#discussion_r1556152984_
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzkWN1u4ygYfRpygybCgH-4yEWmmcxWmqpV253bCNvYYYvBAtw28_QrHLex3a52qpnOjrRSlMQGDuccPvgA7pystRArEH8E8WbBO783dlVx-81otchNeVjd7oUVUDrIYWvFo3Re6hreXm4uodHQ76UD-AzmnYfaQOlcJ6C3vLgLtaQHaAPQ2pm-4lD8IJWCuShMI6Df26fqy2Pdj0KZh9Cf3wvoPC_uQrkAZH0sBwkaPsdHTBBEjwghlCCWsBzRIiYlVOq-CW3I2h3c8c-VldrfBMTbHhFnp0qWP-yM81bwBuAkKJLaA8wgwNsm_NtuxP3GynsB8La15i9ReAfwNiB8GJ6Hx_Ajc4C3N13bGhte_6nlY3gha82VW0pdALJOMQFkHUVHHRBgEs2FcJzDGesjxh9cl0pYgLN7I0uA1-9MlWWB6okpnjHlnCWvWX7d6QlhB3D206g-cSzaNrBDMSDr-MSRzDiWkYjh3L53H2Uakal1dKCVoqgiFaU4xgj2tgyAj1myS-gHJXX3-KHW3bGgWDqzTAD-iB77JgCzE2Y8xWQJqwrY-r0VvNzdhen2pg769pMOkjlpmiawdr3St5KnaTLBTqfYOEsrAnlurH8bct9wgpyNI4BXCSUVHUWpFWHgdhX3XO2EtcZOloTbB6kFLIx2flgScmPUT4uWT6HDPhClrp9iGM9imE1iuCS4FBU88v58fiPURvJaG-dlMaF-en0j7oWV_hDon8oveLGXWmw7XXhp9CBvJJ3bWvgr7tyZ0ZWsJy68gLlsvWzkNx6grkXD7d2nRnof5tf3NriQzom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