[llvm] [SPIRV] Add legalization for long vectors (PR #169665)
Steven Perron via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 28 07:19:20 PST 2025
================
@@ -14,16 +14,22 @@
#include "SPIRV.h"
#include "SPIRVGlobalRegistry.h"
#include "SPIRVSubtarget.h"
+#include "llvm/CodeGen/GlobalISel/GenericMachineInstrs.h"
#include "llvm/CodeGen/GlobalISel/LegalizerHelper.h"
#include "llvm/CodeGen/GlobalISel/MachineIRBuilder.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/TargetOpcodes.h"
+#include "llvm/IR/IntrinsicsSPIRV.h"
+#include "llvm/Support/Debug.h"
+#include "llvm/Support/MathExtras.h"
using namespace llvm;
using namespace llvm::LegalizeActions;
using namespace llvm::LegalityPredicates;
+#define DEBUG_TYPE "spirv-legalizer"
----------------
s-perron wrote:
This allow us to use the `-debug-only=spirv-legalizer` option to turn on the debugging information.
https://github.com/llvm/llvm-project/pull/169665
More information about the llvm-commits
mailing list