Skip to content
haohui edited this page Jan 31, 2012 · 2 revisions

This page describes how to use LLVMXMLIR to generate XML-based IR for LLVM.

Prerequisites

CMake 2.6 or higher ( http://cmake.org ) LLVM 3.0 and clang 3.0 ( http://llvm.org )

Installations

$ cd llvm-semantics/llvm-xml-ir $ mkdir build; cd build $ PATH=<path to llvm installation dir>:$PATH cmake .. $ make

You can run make test to check whether the installation is done correctly. Currently the code passes all unit tests.

Usage

llvm-xml-ir foo.bc -o foo.xml

Clone this wiki locally