Services and Modeling for Embedded Software Development
Embecosm divider strip
Prev  Next

Chapter 3. Implementing Assembly Parser Support

3.1. LLVM Build System
3.2. archASMParser Class
3.3. archOperand Structure
3.4. Matching and Emitting Instructions
3.5. Parsing Registers and Immediates
3.6. Parsing Operands
3.7. Parsing Instructions
3.8. Testing

The first component which needs to be implemented is support for parsing assembly files. This allows llvm-mc to correctly read in assembly instructions and provide an internal representation of these for encoding.

The assembly parser is configured as a separate library which has the initial target implementation library as its parent. This library is placed in the lib/Target/arch/AsmParser directory.

Embecosm divider strip