This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // The following functions have no effect if their respective profiling | |
| // support wasn't enabled in the build configuration. | |
| EE->RegisterJITEventListener( | |
| JITEventListener::createOProfileJITEventListener()); | |
| EE->RegisterJITEventListener( | |
| JITEventListener::createIntelJITEventListener()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/disasm.cpp b/src/disasm.cpp | |
| index 3dec882..cd67f06 100644 | |
| --- a/src/disasm.cpp | |
| +++ b/src/disasm.cpp | |
| @@ -132,7 +132,11 @@ void jl_dump_function_asm(void* Fptr, size_t Fsize, | |
| MCAsmBackend *MAB = 0; | |
| if (ShowEncoding) { | |
| CE = TheTarget->createMCCodeEmitter(*MCII, *MRI, *STI, Ctx); | |
| +#ifdef LLVM34 | |
| + MAB = TheTarget->createMCAsmBackend(*MRI,TripleName, MCPU); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Fiilename Increase of Increase of | |
| Text Size Data Size | |
| bugpoint 0.0176% 0.2122% | |
| dnsimp 0.0000% 0.0000% | |
| fftwf-wisdom 0.0000% 0.0000% | |
| fftw-wisdom 0.0000% 0.0000% | |
| julia-basic 0.0000% 0.0000% | |
| julia-readline 0.0000% 0.0000% | |
| llc 0.0707% 0.3236% | |
| lli 0.2947% 0.6276% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LINK usr/lib/libjulia.so | |
| PERL base/pcre_h.jl | |
| PERL base/errno_h.jl | |
| PERL base/build_h.jl.phony | |
| PERL base/fenv_constants.jl | |
| PERL base/file_constants.jl | |
| PERL base/uv_constants.jl | |
| CC ui/repl.o | |
| CC ui/repl-readline.o | |
| LINK usr/bin/julia-readline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- a/ui/Makefile | |
| +++ b/ui/Makefile | |
| @@ -55,14 +55,14 @@ julia-readline: $(BUILD)/bin/julia-readline$(EXE) | |
| julia-debug-readline: $(BUILD)/bin/julia-debug-readline$(EXE) | |
| $(BUILD)/bin/julia-basic$(EXE): repl.o repl-basic.o | |
| - @$(call PRINT_LINK, $(CXX) $(LINK_FLAGS) $(SHIPFLAGS) $^ -o $@ -L$(BUILD)/$(JL_PRIVATE_LIBDIR) -L$(BUILD)/$(JL_LIBDIR) $(JLDFLAGS) -ljulia) | |
| + @$(call PRINT_LINK, $(CXX) $(LINK_FLAGS) $(SHIPFLAGS) $^ -o $@ -L$(BUILD)/$(JL_PRIVATE_LIBDIR) -L$(BUILD)/$(JL_LIBDIR) -ljulia $(JLDFLAGS)) | |
| $(BUILD)/bin/julia-debug-basic$(EXE): repl.do repl-basic.do | |
| - @$(call PRINT_LINK, $(CXX) $(LINK_FLAGS) $(DEBUGFLAGS) $^ -o $@ -L$(BUILD)/$(JL_PRIVATE_LIBDIR) -L$(BUILD)/$(JL_LIBDIR) $(JLDFLAGS) -ljulia-debug) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| julia> function foo( a::NTuple{4,Float32}, b::NTuple{4,Float32} ) | |
| (a[1]+b[1],a[2]+b[2],a[3]+b[3],a[4]+b[4]) | |
| end | |
| foo (generic function with 1 method) | |
| julia> t = NTuple{4,Float32} | |
| (Float32,Float32,Float32,Float32) | |
| julia> code_llvm(foo,(t,t)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function saxpy( a, x, y ) | |
| @simd for i=1:length(x) | |
| @inbounds y[i] = y[i]+a*x[i] | |
| end | |
| end | |
| function flog( n, reps, tolerance ) | |
| x = rand(Float32,n) | |
| y = rand(Float32,n) | |
| z = copy(y) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function sweep( irange, jrange, U, Vx, Vy, A, B ) | |
| for j in jrange | |
| @simd for i in irange | |
| @inbounds begin | |
| u = U[i,j] | |
| Vx[i,j] += (A[i,j+1]+A[i,j])*(U[i,j+1]-u) | |
| Vy[i,j] += (A[i+1,j]+A[i,j])*(U[i+1,j]-u) | |
| U [i,j] = u + B[i,j]*((Vx[i,j]-Vx[i,j-1]) + (Vy[i,j]-Vy[i-1,j])) | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function inner( x, y ) | |
| s = zero(eltype(x)) | |
| @simd for i=1:length(x) | |
| @inbounds s += x[i]*y[i] | |
| end | |
| s | |
| end | |
| function flog( n, reps, tolerance ) | |
| x = rand(Float32,n) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cat foo.jl | |
| function add( a::NTuple{4,Float32}, b::NTuple{4,Float32} ) | |
| (a[1]+b[1],a[2]+b[2],a[3]+b[3],a[4]+b[4]) | |
| end | |
| function mul( a::NTuple{4,Float32}, b::NTuple{4,Float32} ) | |
| (a[1]*b[1],a[2]*b[2],a[3]*b[3],a[4]*b[4]) | |
| end | |
| function madd( a::NTuple{4,Float32}, b::NTuple{4,Float32}, c::NTuple{4,Float32} ) |
OlderNewer