Fix breakage of LLVM 3.1.
Add LLVM version number in llvmpy.
This commit is contained in:
parent
dd32ce56b1
commit
5b6a1d75f8
7 changed files with 50 additions and 8 deletions
|
|
@ -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+>")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue