Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

for LLVM 3.4

  • Loading branch information...
commit 5e27eeb29784a208c359bfc01d9c49bbd83803df 1 parent 3d5b842
@duncantl authored
Showing with 10 additions and 0 deletions.
  1. +4 −0 Changelog
  2. +6 −0 src/Target.cpp
View
4 Changelog
@@ -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
6 src/Target.cpp
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.