[llvm] [GlobalISel] use constexpr LLT types when creating ISel data (PR #191574)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 14 03:32:00 PDT 2026
================
@@ -411,15 +411,22 @@ void LLTCodeGen::emitCxxEnumValue(raw_ostream &OS) const {
void LLTCodeGen::emitCxxConstructorCall(raw_ostream &OS) const {
if (Ty.isScalar()) {
if (Ty.isInteger())
- OS << "LLT::integer(" << Ty.getScalarSizeInBits() << ")";
+ OS << "LLT(LLT::Kind::INTEGER, ElementCount::getFixed(0), "
----------------
davemgreen wrote:
Create a lambda that prints the LLT type and reuse it for vector elements too?
https://github.com/llvm/llvm-project/pull/191574
More information about the llvm-commits
mailing list