Questions tagged [llvm-ir]

The LLVM Intermediate Representation

The idea behind the LLVM IR is to be "light-weight and low-level while being expressive, typed, and extensible at the same time." This is achieved by being as low-level as possible while it still being possible to map higher level concepts to the IR. The LLVM IR also provides type information, which can be useful for some optimizations.

Source: Aalto University Wiki (LLVM IR Advanced Course on Compilers)

1263 questions
-2
votes
2 answers

llvm pass replaceAllUsesWith type not match?

use a encryptedString replace a GlobalVariable but type not match. the GlobalVariable a const char * string. code like that: GlobalVariable* GV = *it; //get clear text string std::string clearstr = getGlobalStringValue(GV); …
AloneMonkey
  • 111
  • 8
-2
votes
1 answer

how to apply if statement on llvm::value (C++)

I am trying to count number of zeros in a register from left to right. For this i need a loop. Getting out of this loop is difficult as i do not know how to put if statement on llvm::value? llvm::Value* intermediateValue =…
Zeeshan Haider
  • 101
  • 1
  • 9
-3
votes
1 answer

Can a device driver written in or compiled to LLVM IR?

The reason i am interested is that there is an everlasting problem with linux and proprietary drivers. Why hardware vendors do not ship their drivers in LLVM IR form?
jsaak
  • 587
  • 4
  • 17
1 2 3
84
85