May 2015
Intermediate to advanced
296 pages
5h 10m
English
In this recipe, we will look into the exception handling infrastructure of LLVM. We will discuss how the exception handling information looks in the IR and the intrinsic functions provided by LLVM for exception handling.
You must understand how exception handling works normally and the concepts of try, catch and throw and so on. You must also have Clang and LLVM installed in your path.
We will take an example to describe how exception handling works in LLVM:
$ cat eh.cpp class Ex1 {}; void throw_exception(int a, int b) { Ex1 ex1; if (a > b) { throw ex1; } } int test_try_catch() { try { throw_exception(2, ...
Read now
Unlock full access