Skip to content
davidlazar edited this page Feb 1, 2012 · 2 revisions

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

Prerequisites

Installation

$ 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