Extending LLVM: Adding instructions, intrinsics, types, etc.

Hello all,

I am trying to add a new type; however, I found the information in the web site out of date. The modification was: 2008-12-11 12:23:24 -0600.

I am interested in the below files:

  1. llvm/lib/AsmReader/Lexer.l: add ability to parse in the type from text assembly
  2. llvm/lib/AsmReader/llvmAsmParser.y: add a token for that type
    I could not find them.

Could someone tell me what will be new way to add a type.

Thanks in advance,

Hi Juan,

We no longer use lex and yacc for compiling LLVM's IR. Check out the
new lexer/parser. :slight_smile:

-bw