Displaying 20 results from an estimated 264 matches for "fibonacci".
2018 May 30
0
[SROA][DebugInfo][GSoC] Testing SROA on amalgamated sqlite source
...g wrong, but should be looked at in conjunction with all the other
factors such as what the pass is trying to achieve optimization-wise, etc
etc. That is to say, it's not necessarily a bug, but it can be (especially
when observed as a regression between compiler revisions).
Using the standard Fibonacci example with clang and lldb from this
afternoon:
1 #ifdef _MSC_VER
2 # define DEX_NOINLINE __declspec(noinline)
3 #else
4 # define DEX_NOINLINE __attribute__((__noinline__))
5 #endif
6
7 DEX_NOINLINE
8 void Fibonacci(int terms, int& total)
9 {
10 int first = 0;
11 int second = 1;...
2018 May 30
4
[SROA][DebugInfo][GSoC] Testing SROA on amalgamated sqlite source
Introduction
============
`SROA' is an early stage pass running at the very beginning of the
pipeline in `-O{1,2,3}'. Greg Bedwell's report from his DExTer tool
shows SROA on function as one of the major culprits of Debug Info
loss.
With debugify-each partially done I tried testing this on the
amalgamated sqlite source.
The steps are as follows:
,----
| # generate
2018 May 30
2
[SROA][DebugInfo][GSoC] Testing SROA on amalgamated sqlite source
...y. From the
> source-level debugging experience, the variables now just get updated
> between iterations.
>
Obviously should've been 7 for that value of "total".
To try and be a bit more helpful there's definitely something dodgy
happening to variable visibility on the fibonacci example in LICM.
With "BISECT: NOT running pass (32) Loop Invariant Code Motion on loop":
## BEGIN ##
[1, "main", "tests/fibonacci/test.cpp", 24, 6, "BREAKPOINT", "FUNC", {}]
[2, "main", "tests/fibonacci/test.cpp", 25, 2, "...
2011 Apr 20
5
Fibonacci
Hi!
I am trying to work out the code to get a Fibonacci sequence, using the
while() loop and only one variable. And I can't figure it out.
Fibonacci<-c(1,1)
while (max(Fibonacci)<500){
Fibonacci<-c(Fibonacci, (max(Fibonacci) + ?(Fibanacci)))
}
How can I tell R to take the value one before the max value? (Without
defining another variable...
2011 Aug 11
2
[LLVMdev] LLVM 2.9 64bits on Visual Studio 9
Hello everybody,
I have sucessfully compiled LLVM with CMAKE generator "Visual Studio 9 2008
Win64" (OS Windows 7).
-But when I run the Fibonacci example program in "release" mode, I get a
crash with this visual studio popup message :
Microsoft Visual Studio C Runtime Library has detected a fatal error in
Fibonacci.exe.
-Here is the visual studio output:
'Fibonacci.exe':
Loaded 'C:\Users\IUC\Desktop\BUILD_64\bin\...
2011 Aug 15
0
[LLVMdev] LLVM 2.9 64bits on Visual Studio 9
FYI, I have confirmed it works on VS10SP1 with x64|Release.
E:\llvm\build\cmake-x64-vs10>bin\Release\Fibonacci.exe 24
verifying... OK
We just constructed this LLVM module:
---------
; ModuleID = 'test'
(snip)
---------
starting fibonacci(24) with JIT...
Result: 46368
...Takumi
2011/8/11 <gleizesd at gmail.com>:
> Hello everybody,
>
> I have sucessfully compiled LLVM with CMAKE ge...
2007 Sep 05
2
[LLVMdev] Seeing a crash with ConstantFP::get
Hola LLVMers,
I'm getting a crash when using ConstantFP::get.
I can repro it by adding one line to the Fibonacci example program:
int main(int argc, char **argv) {
int n = argc > 1 ? atol(argv[1]) : 24;
// Create some module to put our function into it.
Module *M = new Module("test");
// We are about to create the "fib" function:
Function *FibF = CreateFibFuncti...
2007 Sep 05
2
[LLVMdev] Seeing a crash with ConstantFP::get
...ay, September 05, 2007 2:39 PM
To: LLVM Developers Mailing List
Subject: Re: [LLVMdev] Seeing a crash with ConstantFP::get
On Sep 5, 2007, at 2:21 PM, Chuck Rose III wrote:
Hola LLVMers,
I'm getting a crash when using ConstantFP::get.
I can repro it by adding one line to the Fibonacci example program:
int main(int argc, char **argv) {
int n = argc > 1 ? atol(argv[1]) : 24;
// Create some module to put our function into it.
Module *M = new Module("test");
// We are about to create the "fib" function:
Function *FibF = CreateFibFuncti...
2007 Sep 05
0
[LLVMdev] Seeing a crash with ConstantFP::get
On Sep 5, 2007, at 2:21 PM, Chuck Rose III wrote:
> Hola LLVMers,
>
>
>
> I’m getting a crash when using ConstantFP::get.
>
>
>
> I can repro it by adding one line to the Fibonacci example program:
>
>
>
> int main(int argc, char **argv) {
>
> int n = argc > 1 ? atol(argv[1]) : 24;
>
>
>
> // Create some module to put our function into it.
>
> Module *M = new Module("test");
>
>
>
> // We are about to create...
2004 Feb 03
3
Implementating streams in R
Dear all,
I have an implementation of streams in R. The current implementation of
delay() and force() is
inspired from the LISP implementation found in Part VI "Languages for AI
problem solving" of
"Artificial Intelligence" by G. Luger.
I have tested it with the Fibonacci example in the same book (see examples
below). It works
but I do run into a problem when I try to generate fibonacci series more
than 25 elements.
> accumulate.into.list(25,fibonacci.stream(0,1))
Error in cons.stream(fibonacci1 + fibonacci2,
fibonacci.stream(fibonacci2, : evaluation is ne...
2007 Sep 06
0
[LLVMdev] Seeing a crash with ConstantFP::get
...day, September 05, 2007 2:39 PM
To: LLVM Developers Mailing List
Subject: Re: [LLVMdev] Seeing a crash with ConstantFP::get
On Sep 5, 2007, at 2:21 PM, Chuck Rose III wrote:
Hola LLVMers,
I'm getting a crash when using ConstantFP::get.
I can repro it by adding one line to the Fibonacci example program:
int main(int argc, char **argv) {
int n = argc > 1 ? atol(argv[1]) : 24;
// Create some module to put our function into it.
Module *M = new Module("test");
// We are about to create the "fib" function:
Function *FibF = CreateFibFuncti...
2018 Sep 21
2
can't build/run after adding lib to Fibonacci example, even reverting the complete llvm tree does not help
...llvm-build\LLVM.sln in VS2017 ... loading 273 projects
question1: if left click on the solution root and select "build
solution" (to check if everyhing is built) two files
DummyClangFuzzer.cpp and ClangFuzzer.cpp getting compiled - is that
indendet?
then i want to add some tests to the Fibonacci example and added
IRReader to llvm\examples\Fibonacci\CMakeLists.txt
set(LLVM_LINK_COMPONENTS
Core
ExecutionEngine
Interpreter
MC
MCJIT
Support
nativecodegen
IRReader # <-- new
)
and then build the Fibonacci example
but the build will fail with this log - e...
2016 Jun 10
2
MCJIT -- Poor run-time performance for Fibonacci example in LLVM 3.8.1
We have been using LLVM 3.4 and are currently migrating to LLVM 3.8.1. We have been using the Old JIT and since it has been removed since 3.6, we have to use MCJIT. I find that run-time performance is very poor in 3.8.1 for the Fibonacci example in llvm/examples/fibonacci.cpp. Logs below for fib34 and fib381 for input values of 30 and 40. I first thought it could be that MCJIT compile time is slower, but as I increase the input value, fib381 gets slower and slower in run-time performance (almost 200X for an input value of 40). Any...
2010 Nov 21
3
[LLVMdev] Running Examples
...n LLVM (and linux, and gcc and so on) and I'd like to know how to
run and test LLVM projects. I've downloaded, installed and tested LLVM
tools, such as llvm-gcc, llc, lli etc. But I don't know how to test examples
provided.
I just called "sudo make" inside "llvm/examples/fibonacci/", what generated
a directory named "Release" containing 2 files: *fibonacci.d* and *
fibonacci.o*. How can I generate a binary executable file from those ones?
I've tried to use gcc, but I got a lot of undefined reference errors. Where
can I find a example of the command line I...
2002 Apr 09
1
Fortran (77) in R
Hi,
I'm learning Fortran and trying to load a Fortran subroutine into R.
I've done:
R SHLIB Fibonacci.f
and it compiled fine.
Then I went into R and done:
> dyn.load("Fibonacci.so")
> Fib <- function(n) {
+ .Fortran("Fibonacci",
+ as.integer(n))[[1]]
+ }
> Fib(5)
Error in .Fortran("Fibonacci", as.integer(n)) :
C/Fortran function...
2004 Nov 05
0
[LLVMdev] Re: LLVM Visual Studio Project files
...f we could use precompiled header files.
Unfortunately, there's no way to do this with VC++ without modifying
every *.cpp file. On the other hand, doesn't gcc support precompiled
header files also? Not that it necessarily does it in even remotely the
same way...
The build finally gets to Fibonacci and fails with:
c:\llvm\examples\Fibonacci\fibonacci.cpp(111) : error C2065: 'args' : undeclared identifier
c:\llvm\examples\Fibonacci\fibonacci.cpp(111) : error C2228: left of '.IntVal' must have class/struct/union type
I don't how this compiles with gcc. "args" is...
2018 Sep 22
2
can't build/run after adding lib to Fibonacci example, even reverting the complete llvm tree does not help
first: thank you for helping out
>I might try compiling your source from the VS's Developer Command Prompt:
>cmake --build . --target Fibonacci
>Does this work?
call "C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
cd llvm-build
cmake --build . --config Debug --target Fibonacci
building Fibonacci example works BUT X86CommonTableGen get rebuild again?
Das Projekt
"D:\pro...
2007 May 16
2
[LLVMdev] generating ELF shared object, C code, from a module like Fibionnaci
Hello
Apparently the file llvm/examples/Fibonacci/fibonacci.cpp generate JIT code
without explicitly doing any pass (but I suppose that internally, compiler
passes are running!) - is there a dissymetry between JIT machine code
generation in memory, and C or ELF shared object generation in files? I
thought that all these shared a lot of LLVM infras...
2007 Sep 06
2
[LLVMdev] Seeing a crash with ConstantFP::get
...bject: Re: [LLVMdev] Seeing a crash with ConstantFP::get
>
>
>
>
>
> On Sep 5, 2007, at 2:21 PM, Chuck Rose III wrote:
>
>
>
> Hola LLVMers,
>
>
>
> I’m getting a crash when using ConstantFP::get.
>
>
>
> I can repro it by adding one line to the Fibonacci example program:
>
>
>
> int main(int argc, char **argv) {
>
> int n = argc > 1 ? atol(argv[1]) : 24;
>
>
>
> // Create some module to put our function into it.
>
> Module *M = new Module("test");
>
>
>
> // We are about to create...
2002 Oct 26
2
Fortran
Hello everybody,
Could someone please send me a very simple example using Fortran from
R? Say pass a value to an executable and get the result in R. Actually it
seems it may be possible to call an *.f file ?? or I am wrong again?
The manual is very terse on the subject.
Thank you very much
Stephen Elijah
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help