Permalink
Browse files

for LLVM 3.4

  • Loading branch information...
1 parent 3d5b842 commit 5e27eeb29784a208c359bfc01d9c49bbd83803df @duncantl committed Jan 10, 2014
Showing with 10 additions and 0 deletions.
  1. +4 −0 Changelog
  2. +6 −0 src/Target.cpp
View
@@ -1,3 +1,7 @@
+Version 0.6-1
+
+ * Minor changes for LLVM 3.4 (fields in TargetOptions that were removed)
+
Version 0.6-0
* added generatePTX() to convert Module to PTX code. See Rnvvm and libNVVM
View
@@ -48,7 +48,9 @@ R_Target_createTargetMachine(SEXP r_target, SEXP r_triple, SEXP r_cpu, SEXP r_fe
/* taken from Halide's CodeGen.cpp */
defaultOpts.LessPreciseFPMADOption = true;
defaultOpts.NoFramePointerElim = false;
+#ifdef LLVM_HAS_NOFRAMEPOINTERELIMNONLEAF
defaultOpts.NoFramePointerElimNonLeaf = false;
+#endif
defaultOpts.AllowFPOpFusion = llvm::FPOpFusion::Fast;
defaultOpts.UnsafeFPMath = true;
defaultOpts.NoInfsFPMath = true;
@@ -60,12 +62,16 @@ R_Target_createTargetMachine(SEXP r_target, SEXP r_triple, SEXP r_cpu, SEXP r_fe
defaultOpts.GuaranteedTailCallOpt = false;
defaultOpts.DisableTailCalls = false;
defaultOpts.StackAlignmentOverride = 32;
+#ifdef LLVM_HAS_REALIGNSTACK
defaultOpts.RealignStack = true;
+#endif
defaultOpts.TrapFuncName = "";
defaultOpts.PositionIndependentExecutable = true;
defaultOpts.EnableSegmentedStacks = false;
defaultOpts.UseInitArray = false;
+#ifdef LLVM_HAS_SSPBUFFERSIZE
defaultOpts.SSPBufferSize = 0;
+#endif
opts = &defaultOpts;
}

0 comments on commit 5e27eeb

Please sign in to comment.