[LLVMdev] Assert in SelectionDAGLegalize when using arbitrary size integers

Duncan Sands
Wed, 25 Jun 2008 13:28:45 -0000

Hi,

> I am beginning to learn LLVM (using LLVM 2.3.0 on a Linux x86_64
> machine) and wanted to check the status of the support of arbitrary
> size integers.

use llvm from svn and apply this patch.

Ciao,

Duncan.

Index: llvm.master/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
==================================================================---
llvm.master.orig/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp	2008-06-23
17:16:00.000000000 +0200
+++ llvm.master/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp	2008-06-23
17:17:40.000000000 +0200
@@ -5341,8 +5341,9 @@

   // Second step, hack on the DAG until it only uses operations and types that
   // the target supports.
-#if 0  // Enable this some day.
+#if 1  // Enable this some day.
   DAG.LegalizeTypes();
+  DEBUG(DAG.dump());
   // Someday even later, enable a dag combine pass here.
 #endif
   DAG.Legalize();