From c4f49e7dfffe8cffd5aafb9b341e0e126b42b5d8 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 24 Jun 2014 17:45:44 +0200 Subject: [PATCH] llvm_or1k_setup.txt: we are still using llvm 3.3 opcode numbers --- llvm_or1k_setup.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/llvm_or1k_setup.txt b/llvm_or1k_setup.txt index f2f6c4a74..528886c95 100644 --- a/llvm_or1k_setup.txt +++ b/llvm_or1k_setup.txt @@ -380,3 +380,16 @@ index 8f260f0..1771bce 100644 } namespace { /// OR1K Code Generator Pass Configuration Options. + +In llvmpy, edit core.h and replace line 177: + +if llvm.version <= (3, 3): + OPCODE_ICMP = 45 + OPCODE_FCMP = 46 +... + +with: +if True: + OPCODE_ICMP = 45 + OPCODE_FCMP = 46 +...