Added instruction properties (is_XXX, opcode, opcode_name)

git-svn-id: http://llvm-py.googlecode.com/svn/trunk@42 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
mdevan.foobar 2008-09-16 16:38:21 +00:00
commit aee33c6612
5 changed files with 108 additions and 5 deletions

View file

@ -411,6 +411,16 @@ def do_builder():
i = b.phi(Type.int())
i.add_incoming(v, blk)
t = i.is_terminator == False
t = i.is_binary_op == False
t = i.is_shift == False
t = i.is_cast == False
t = i.is_logical_shift == False
t = i.is_arithmetic_shift == False
t = i.is_associative == False
t = i.is_commutative == False
t = i.is_trapping == False
t = i.opcode
t = i.opcode_name
def do_moduleprovider():