Skip to content

novafacing/moirai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

moirai: MOre InstRuctions and Information

Backcronym. Anyway, this is a small project to extract useful instruction definitions from LLVM's platform definitions. Projects like capstone are amazing at what they do, but they aren't particularly useful for building analysis tools because they don't preserve any information in a human-accessible format. THis aims to borrow some of the techniques that capstone uses (using tblgen!) to quickly and accurately build lots of instruction information.

Usage:

python3 -m moirai --platform ARM Mips PowerPC --run --parse

Using the output:

It just gives you crap like this....so you'll need to come up with something interesting to do with it:

{
    "assemblystring": [
        "abs\\t$rd, $rs"
    ],
    "def ": [
        "GPR32Opnd:$rd"
    ],
    "flags": [
        "hasSideEffects",
        "isPseudo",
        "hasNoSchedulingInfo"
    ],
    "title": "ABSMacro"
},

About

A little tool that uses LLVM to extract simple "what does this do" level instruction information from all architectures.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published