added some bindings for MC classes
This commit is contained in:
parent
8dbfc377ad
commit
bd9d71c713
1 changed files with 21 additions and 1 deletions
|
|
@ -14,9 +14,19 @@ MCRegisterInfo = llvm.Class()
|
||||||
MCInstrInfo = llvm.Class()
|
MCInstrInfo = llvm.Class()
|
||||||
MCInstrAnalysis = llvm.Class()
|
MCInstrAnalysis = llvm.Class()
|
||||||
MCInstPrinter = llvm.Class()
|
MCInstPrinter = llvm.Class()
|
||||||
|
MCInstrDesc = llvm.Class()
|
||||||
|
|
||||||
TargetSubtargetInfo = llvm.Class(MCSubtargetInfo)
|
TargetSubtargetInfo = llvm.Class(MCSubtargetInfo)
|
||||||
TargetInstrInfo = llvm.Class(MCInstrInfo)
|
TargetInstrInfo = llvm.Class(MCInstrInfo)
|
||||||
|
TargetRegisterInfo = llvm.Class(MCRegisterInfo)
|
||||||
|
|
||||||
|
@MCInstrDesc
|
||||||
|
class MCInstrDesc:
|
||||||
|
_include_ = "llvm/MC/MCInstrDesc.h"
|
||||||
|
|
||||||
|
TSFlags = Attr(getter=cast(Uint64, int), setter=cast(int, Uint64))
|
||||||
|
getFlags = Method(cast(Unsigned, int))
|
||||||
|
getOpcode = Method(cast(Unsigned, int))
|
||||||
|
|
||||||
@MCSubtargetInfo
|
@MCSubtargetInfo
|
||||||
class MCSubtargetInfo:
|
class MCSubtargetInfo:
|
||||||
|
|
@ -59,7 +69,9 @@ class MCInst:
|
||||||
|
|
||||||
getOperand = Method(const(ref(MCOperand)), cast(int, Unsigned))
|
getOperand = Method(const(ref(MCOperand)), cast(int, Unsigned))
|
||||||
|
|
||||||
MCOperand.getInst = Method(const(ptr(MCInst)))
|
getOpcode = Method(cast(Unsigned, int))
|
||||||
|
|
||||||
|
MCOperand.getInst = Method(const(ownedptr(MCInst)))
|
||||||
|
|
||||||
@MCAsmInfo
|
@MCAsmInfo
|
||||||
class MCAsmInfo:
|
class MCAsmInfo:
|
||||||
|
|
@ -75,14 +87,22 @@ class MCRegisterInfo:
|
||||||
|
|
||||||
getName = Method(cast(ConstCharPtr, str), cast(int, Unsigned))
|
getName = Method(cast(ConstCharPtr, str), cast(int, Unsigned))
|
||||||
|
|
||||||
|
@TargetRegisterInfo
|
||||||
|
class TargetRegisterInfo:
|
||||||
|
_include_ = "llvm/Target/TargetRegisterInfo.h"
|
||||||
|
|
||||||
@MCInstrInfo
|
@MCInstrInfo
|
||||||
class MCInstrInfo:
|
class MCInstrInfo:
|
||||||
_include_ = "llvm/MC/MCInstrInfo.h"
|
_include_ = "llvm/MC/MCInstrInfo.h"
|
||||||
|
|
||||||
|
get = Method(const(ref(MCInstrDesc)), cast(int, Unsigned))
|
||||||
|
|
||||||
@TargetInstrInfo
|
@TargetInstrInfo
|
||||||
class TargetInstrInfo:
|
class TargetInstrInfo:
|
||||||
_include_ = 'llvm/Target/TargetInstrInfo.h'
|
_include_ = 'llvm/Target/TargetInstrInfo.h'
|
||||||
|
|
||||||
|
get = Method(const(ref(MCInstrDesc)), cast(int, Unsigned))
|
||||||
|
|
||||||
@MCInstrAnalysis
|
@MCInstrAnalysis
|
||||||
class MCInstrAnalysis:
|
class MCInstrAnalysis:
|
||||||
_include_ = "llvm/MC/MCInstrAnalysis.h"
|
_include_ = "llvm/MC/MCInstrAnalysis.h"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue