LLVM to PTX Backend
University of Applied Sciences Rapperswil (HSR), Switzerland
Program Analysis and Transformation seminar, 2011
@article{keller2011llvm,
title={LLVM to PTX Backend},
author={Keller, M.},
year={2011}
}
The low-level virtual machine (LLVM) compiler infrastructure is a mature and stable framework to implement optimization and compiler passes. H. Rhodin presented an LLVM backend to generate Parallel Thread Execution (PTX) instructions from LLVM bitcode. PTX is used as intermediate representation for parallel programming. This paper discusses Rhodin’s PTX generator. Due to the similarity between LLVM bitcode and PTX instructions, a straightforward transformation can be done. The requirements of parallel computing show the GPU-depending disparities between LLVM bitcode and PTX instructions. The design of the generator, the disparities and an approach to solve them is showed.
September 26, 2011 by hgpu