I would like to ask if it is possible to dump out the text format of certain instruction while debugging(I'm using gdb in vscode)?? I tried I->dum ...
I would like to ask if it is possible to dump out the text format of certain instruction while debugging(I'm using gdb in vscode)?? I tried I->dum ...
I'm researching of virus and I'm faced with the task of deobfuscating its virtual machine. I chose to do this through LLVM and I had a question, where ...
See this tiny piece of code: This compiles and works perfectly, as expected. But when I try replacing i32 with some non-primitive type it fails wit ...
Suppose I have a pointer to some Value* val in LLVM. I want to get a pointer to Instruction that assigned value to the variable that val points to. Ho ...
I'm new to llvm framework and using llvm to generate jit code. But the code generated about struct is a bit problematic: ` I think the struct a ...
. Answers to this question are eligible for a +50 reputation bounty. Ro ...
I am following this toy example to lower mlir to llvm ir and compile the result. Following the instructions, I can compile the project. However, the g ...
Are there any options that enable loop inversion? More specifically,can LLVM transform the while form loop into do-while form loop as the following. ...
LLVM is the backend for many languages such as C#, Ruby, Zig and so on. My question is: can all LLVM frontend languages “in principle” produce the sa ...
I am writing to enquire about a question. When I read the IR language generated by a piece of C programs, I found that in C programs, the behavior of ...
Is it possible to add a new target to llvmlite (python library)? For a new hardware (e.g. ASIC), I need to have a new and custom LLVM target. This is ...
I am trying to add my llvm pass into Rustc. Rustc has one compiling option -C passes=val where we could add extra LLVM passes to run. However, as my t ...
I am going to keep this short and to the point, but if further clarifications are needed please let me know. I have an i64 Value that I want to check ...
want to konw how can we update and get the analysis result in the transform pass, after the function have been modified. i don't want go back to the p ...
I want to do an LLVM compiler for a very old language, PL/M. This has some peculiar features, not least of which is having nested functions with the a ...
In LLVM, we can use StructType() to get all structs in a Module, but when we use multiple source files, the Modules are different, so the same struct ...
I use "builder->CreateSub" and "builder->CreateAdd" to generate LLVM-IR for subtraction and addition. However, the generated IR (shown below) ...
I Understand the difference between eraseFromParent() and removeFromParent() is that former unlinks and deletes instruction from the BasicBlock, while ...
mem2reg is an important optimization pass in llvm. I want to understand how this optimization works but didn't find good articles, books, tutorials an ...
let consider a header file named foo.h and a simple program named simple.c so how to coded in instrumentation.cpp to link that foo.h file and ge ...