Fix breakage of LLVM 3.1.

Add LLVM version number in llvmpy.
This commit is contained in:
Siu Kwan Lam 2013-01-04 14:24:26 -06:00
commit 5b6a1d75f8
7 changed files with 50 additions and 8 deletions

View file

@ -1,13 +1,17 @@
from llvm.core import *
from llvm.passes import *
from llvm.ee import *
import llvm
from os.path import dirname, join as join_path
import unittest
import re
class TestLoopVectorizer(unittest.TestCase):
def test_loop_vectorizer(self):
if llvm.version <= (3, 1):
return # SKIP
re_vector = re.compile("<\d+ x \w+>")