Category "llvm-ir"

How to get llc to optimize an ll file?

I am learning how IR and llc work. I got started by looking at output of clang. I thought llc could be used to optimize .ll files further, but I can't get it to

【SOLVED】LLVM DILocation: extract information from metadata

I wanna get value and 861 from a return instruction, for example ret i32 %3, !dbg !861 and it's metadata !861 = !DILocation(line: 8, column: 5, scope: !857). Bu

relocation R_X86_64_32 against symbol `G8' can not be used when making a PIE object; recompile with -fPIE

I'm trying to compile lambda-expressions from scheme to llvm-ir and am having trouble with position independet code. source: (lambda (x) (display x)) targe

Pragmatics of typed intermediate languages

One trend in the compilation is to use typed intermediate languages. Haskell's ghc with its core intermediate language, a variant of System F-omega, is an examp

How can I write an LLVM pass to detect redundant conditions in C / C + +

I want to write an LLVM pass to detect redundant condition pattern like this in c++. int a = ... , b = ..., c = ... //first if condition if(a == b + 1 - c){

Building LLVM eats up all the RAM

I have been trying to install LLVM on my system [i7 + 16GB RAM]. I have been following this tutorial : LLVM Install. But in building, it eats up all the RAM and