Implement CST_CODE_CE_GEP
(replacing CST_CODE_CE_GEP_OLD
in LLVM 19)
#278
Labels
CST_CODE_CE_GEP
(replacing CST_CODE_CE_GEP_OLD
in LLVM 19)
#278
LLVM 19 adds the ability to
nusw
andnuw
flags to constantgetelementptr
expressions. As a result, there is now a newCST_CODE_CE_GEP
(constant code 32), which replaces what is now known asCST_CODE_CE_GEP_OLD
(constant code 12). This was implemented on the LLVM side in commit llvm/llvm-project@8cdecd4.We will need to implement support for this on the
llvm-pretty-bc-parser
side. A minimal example that currently fails:If you compile this to bitcode using
llvm-as-19.1.0
and attempt to parse the resulting bitcode, it will fail with:The text was updated successfully, but these errors were encountered: