Displaying 1 result from an estimated 1 matches for "enable_tail_call_opt".
2012 Feb 29
1
[LLVMdev] Tail Call Optimization
...l optimization:
<code>
#include "llvm/ADT/StringRef.h" <!-- had to be added, since
TargetOptions references it - as noted already in the list. -->
#include "llvm/Target/TargetOptions.h"
#include <iostream>
extern "C" {
using namespace std;
void enable_tail_call_opt() {
cout << "Enabling TCO" << endl;
//llvm::PerformTailCallOpt = true; <-- pre-2.7 name
llvm::GuaranteedTailCallOpt = true;
}
}
</code>
Compiling 3.0 (but not 2.8 or earlier) I also had to run:
touch llvm-3.0.src/bindings/ocaml/llvm/Release/META.llvm
t...