Skip to content

Instantly share code, notes, and snippets.

View TheOnlySilverClaw's full-sized avatar

Joel Lacour TheOnlySilverClaw

  • Würzburg, Germany
View GitHub Profile
@Mytherin
Mytherin / llvmtest.c
Created July 5, 2016 11:50
JIT Compile a For loop using the LLVM 3.9 C API
/**
* LLVM equivalent of:
*
* void loop(double *result, double *a, double *b, size_t length) {
* for(size_t i = 0; i < length; i++) {
* result[i] = a[i] * b[i];
* }
* }
*/