Displaying 20 results from an estimated 21 matches for "brainf".
Did you mean:
brain
2010 Aug 10
2
[LLVMdev] Patch to fix BrainF runtime assertion failure
Hi all,
I downloaded LLVM to play with today and found that the BrainF example
compiler fails with an assertion error like so:
examples$ ./BrainF -jit /tmp/test.bf
BrainF: Instructions.cpp:242: void llvm::CallInst::init(llvm::Value*, llvm::Value* const*, unsigned int): Assertion `(NumParams == FTy->getNumParams() || (FTy->isVarArg() && NumParams > FT...
2010 Aug 10
0
[LLVMdev] Patch to fix BrainF runtime assertion failure
...Dan Hipschman wrote:
> Could someone apply this for me, please?
I just realized I didn't fix up the comments completely. Here's an
identical patch plus two comment to reference the new intrinsic
suffix.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BrainF.patch
Type: text/x-diff
Size: 1311 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100809/b1cc01e1/attachment.patch>
2010 Jul 21
1
[LLVMdev] Is there a guide to LLVM's components?
I constructed an LLVM 2.7 VS solution with cmake, but it has 66 projects:
ALL_BUILD, ".\ALL_BUILD.vcproj"
BrainF, "examples\BrainF\BrainF.vcproj"
Fibonacci, "examples\Fibonacci\Fibonacci.vcproj"
FileCheck, "utils\FileCheck\FileCheck.vcproj"
HowToUseJIT, "examples\HowToUseJIT\HowToUseJIT.vcproj"
INSTALL, &qu...
2011 May 13
3
[LLVMdev] IO intrinsics?
I found these lines in the BrainF example:
//declare i32 @getchar()
getchar_func = cast<Function>(module->
getOrInsertFunction("getchar", IntegerType::getInt32Ty(C), NULL));
//declare i32 @putchar(i32)
putchar_func = cast<Function>(module->
getOrInsertFunction("putchar", Inte...
2011 May 13
1
[LLVMdev] IO intrinsics?
On 05/12/2011 11:08 PM, 陳韋任 wrote:
> Hi, Hans
>
>> Since getchar and putchar are never defined, I'm assuming they are
>> intrinsics, but they are not documented with the rest of the intrinsics. So
>> are they intrinsics or something else?
>
> I _guess_ standard functions like getchar/putchar are linked by
> default.
Indeed, they're coming from libc. The
2009 May 13
3
[LLVMdev] MSVC compile error with trunk
...IVStrideUse@llvm@@EAEXXZ)
40>LLVMScalarOpts.lib(LoopStrengthReduce.obj) : error LNK2001:
unresolved external symbol "public: static char llvm::IVUsers::ID"
(?ID at IVUsers@llvm@@2DA)
40>R:\SDKs\llvm\trunk_VC8_building\bin\Debug\lli.exe : fatal error
LNK1120: 2 unresolved externals
BrainF:
46> Creating library
R:\SDKs\llvm\trunk_VC8_building\lib\Debug\BrainF.lib and object
R:\SDKs\llvm\trunk_VC8_building\lib\Debug\BrainF.exp
46>LLVMScalarOpts.lib(LoopStrengthReduce.obj) : error LNK2001:
unresolved external symbol "private: virtual void __thiscall
llvm::IVStrideUse::dele...
2008 Mar 26
1
[LLVMdev] PATCH: Use size reduction -- wave1
.../Transforms/IPO/LowerSetJmp.cpp
Skipped missing target: 'lib/Transforms/IPO/ExtractFunction.cpp'
U lib/Transforms/IPO/GlobalOpt.cpp
U lib/Transforms/IPO/DeadArgumentElimination.cpp
U lib/Transforms/IPO/ArgumentPromotion.cpp
U lib/Transforms/IPO/RaiseAllocations.cpp
U examples/BrainF/BrainF.cpp
U examples/BrainF/BrainFDriver.cpp
U examples/ParallelJIT/ParallelJIT.cpp
U examples/HowToUseJIT/HowToUseJIT.cpp
U examples/ModuleMaker/ModuleMaker.cpp
U examples/Fibonacci/fibonacci.cpp
Notes:
- I shall take the *.cvs files out of the patch.
- lib/Transforms/IPO/Extract...
2010 Jul 22
2
[LLVMdev] Is there a guide to LLVM's components?
...From: David Piepgrass
Sent: Wednesday, July 21, 2010 4:16 PM
To: 'llvmdev at cs.uiuc.edu'
Subject: Is there a guide to LLVM's components?
I constructed an LLVM 2.7 VS solution with cmake, but it has 66 projects:
ALL_BUILD, ".\ALL_BUILD.vcproj"
BrainF, "examples\BrainF\BrainF.vcproj"
Fibonacci, "examples\Fibonacci\Fibonacci.vcproj"
FileCheck, "utils\FileCheck\FileCheck.vcproj"
HowToUseJIT, "examples\HowToUseJIT\HowToUseJIT.vcproj"
INSTALL, &qu...
2009 Jun 02
0
[LLVMdev] Ubuntu: no .eh_frame_hdr table will be created
...sr/bin/ld: error in ../../lib/./LLVMInterpreter.o(.eh_frame); no
.eh_frame_hdr table will be created.
/usr/bin/ld: error in ../../lib/./LLVMExecutionEngine.o(.eh_frame); no
.eh_frame_hdr table will be created.
[ 95%] Built target lli
Scanning dependencies of target llvm-extract
And similar for the BrainF, Fibonacci, Kaleidoscope and ParallelJIT examples
This seems to have come up for a 64-bit build before, due to certain
changes in the LLVM:
http://markmail.org/message/njw2rxsdv446ojrx
Did this issue reappear (but on 32-bit)?
Regards,
Paul
2009 Oct 04
4
[LLVMdev] LLVMdev Digest, Vol 64, Issue 5
Where exactly is this mythical Kaleidoscope example? I have llvm 2.5 installed.
examples dsw$ ls
BrainF Fibonacci Makefile ParallelJIT
CMakeLists.txt HowToUseJIT ModuleMaker
> Date: Sat, 3 Oct 2009 21:40:44 +0100
> From: Renato Golin <rengolin at systemcall.org>
> Subject: Re: [LLVMdev] LLVM-Kaleidoscope tutorial
>
> 2009/10/3 Remy Demarest <remy.demarest at gmail.com>:
&...
2010 Feb 01
0
[LLVMdev] Code generation for compiler backend
...use llvm as a backend for compiling
executable programs; here's my understanding of the state of affairs
so far:
Kaleidoscope demonstrates how to generate code in memory, and run it
in memory using JIT for interactive use (which will be handy in due
course for providing an interactive option); BrainF demonstrates how
to output intermediate code; but it is preferable to take it all the
way to CPU specific assembly.
CPU specific assembly is as far as llvm goes, at that point one hands
over to the GNU assembler and linker to generate an executable
program.
Generating assembly output is demonstrate...
2010 Jul 16
0
[LLVMdev] Tool for run-time code generation?
David Piepgrass <dpiepgrass at mentoreng.com> writes:
>> LLVM has a JIT for this purpose. You generate LLVM IR code (a sort of
>> generic assembler) and it produces optimized native code ready to be
>> executed.
>>
>> x86-win32 is fine. I don't think so about arm-wince.
>
> What's wrong with running LLVM on ARM?
LLVM can generate code for ARM,
2012 Aug 10
1
[LLVMdev] how to compile my LLVM project with CMake (on Windows)?
...i,
i already successfully compiled & installled LLVM 3.1 on Windows (with
CMake & Visual Studio 2008). next, i am trying to understand how to
create a standalone LLVM project, and compile that on Windows (also
using CMake & Visual Studio 2008).
to start, i picked up the "examples\BrainF" project, renamed it to
"examples\BrainF2" (and i still put BrainF2 under the same examples\
directory)
next, inside BrainF2, i run on Windows console:
c:\llvm-3.1\examples\BrainF2\> cmake -G "Visual Studio 9 2008"
but then cmake complains error like "unknown CMa...
2010 Jul 16
2
[LLVMdev] Tool for run-time code generation?
> LLVM has a JIT for this purpose. You generate LLVM IR code (a sort of
> generic assembler) and it produces optimized native code ready to be
> executed.
>
> x86-win32 is fine. I don't think so about arm-wince.
What's wrong with running LLVM on ARM? It's supposed to support ARM as a target, and since it's written in C it should theoretically compile for ARM. CMake
2008 Apr 12
0
[LLVMdev] LLVMBuilder vs LLVMFoldingBuilder
...y next patch.
> Index: Xcode/LLVM.xcodeproj/project.pbxproj
>
> I don't know what this Xcode stuff is, so I've no idea if it is correct
> or whether you should be committing it.
>
I've added some missing files, removed LLVMBuilder.h and added
IRBuilder.h and added the BrainF example (as I had to make changes to it
for the patch).
The only changes that I'm not 100% happy with are the
ShadowStackCollector changes. The code will currently assert if the
BasePtr passed in to the ShadowStackCollector is a constant as the GEP
will be a constant. If we want to make th...
2008 Apr 11
4
[LLVMdev] LLVMBuilder vs LLVMFoldingBuilder
Hi Dominic,
+//===-- llvm/Support/IRBuilder.h - Builder for LLVM Instrs -----*- C++ -*-===//
is this line the right length? It seems shorter than the similar lines below like
this one:
+//===----------------------------------------------------------------------===//
+ GetElementPtrInst *CreateStructGEP(Value *Ptr, unsigned Idx,
+ const char *Name =
2010 Jul 16
3
[LLVMdev] Tool for run-time code generation?
...say "compiler_rt now supports ARM targets". What else is needed? Keep in mind that I do not need (or want) Clang or any of the optimizers: I just want to generate small sequences of machine code in-memory (on the heap, I assume) and execute them.
By the way, LLVM comes with 66 projects (BrainF, bugpoint, Kaleidoscope, llc, etc.) and it's not obvious which one(s) I actually need to accomplish this "simple" use of LLVM. Is there a list of all the targets and what they are for?
> > It's supposed to support ARM as a target, and since it's written in C
> > i...
2009 Aug 27
1
[LLVMdev] llvm-gcc-4.2-2.5 fails to build from source on arm: - ARM buildbot are installed.
...the following bugs that are probably causing
most of these JIT-showstoppers for ARM:
http://llvm.org/bugs/show_bug.cgi?id=4772 ARM unittest
JIT.GlobalInFunction fail during ARM Machine...
http://llvm.org/bugs/show_bug.cgi?id=4592 ARM JIT 1+1=0
http://llvm.org/bugs/show_bug.cgi?id=4593 ARM JIT BrainF -jit hello.bf
Asserts while deleting putchar
Any advise on how to best tackle the remaining ~28 JIT bugs using common
tools like gdb and code manipulation are most welcome.
Anton do you know if there are current any bugs that breaks clang/gcc on
ARM?
With this said i gladly volunteer during the...
2018 Sep 21
2
can't build/run after adding lib to Fibonacci example, even reverting the complete llvm tree does not help
...times/CMakeFiles/generate.stamp
is up-to-date.
1>CMake does not need to re-run because
D:/projects/fun/jit_tests/clang_from_src/llvm-build/examples/CMakeFiles/generate.stamp
is up-to-date.
1>CMake does not need to re-run because
D:/projects/fun/jit_tests/clang_from_src/llvm-build/examples/BrainF/CMakeFiles/generate.stamp
is up-to-date.
1>CMake is re-running because
D:/projects/fun/jit_tests/clang_from_src/llvm-build/examples/Fibonacci/CMakeFiles/generate.stamp
is out-of-date.
1> the file
'D:/projects/fun/jit_tests/clang_from_src/llvm/examples/Fibonacci/CMakeLists.txt'
1&...
2009 Aug 19
5
[LLVMdev] llvm-gcc-4.2-2.5 fails to build from source on arm: MACHO_DYNAMIC_NO_PIC_P undeclared
On Aug 4, 2009, at 5:33 AM, Anton Korobeynikov wrote:
> Hello, Martin
>
>> llvm-gcc-4.2-2.5 is failing to build from source on arm, sparc,
>> powerpc and ia64, only succeeding on i386 and amd64:
>> http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=llvm-gcc-4.2;dist=unstable
>> so it looks like the 2.5 release was never properly tested before it
>> was published.