search for: hello2

Displaying 20 results from an estimated 67 matches for "hello2".

Did you mean: hello
2012 Jul 23
2
[LLVMdev] building a pass with cmake
Dear all, I want to build an LLVM pass by using CMake. After reading the ralevant part of the documentation ( http://llvm.org/releases/3.1/docs/CMake.html#passdev), I copied the files in the llvm/lib/Transforms/Hello to another folder in order to give a try. Then I renamed the folder as Hello2. Then I have changed CMakeLists.txt as following: cmake_minimum_required(VERSION 2.8) # A convenience variable: set(LLVM_ROOT "../llvm_cmake_build" CACHE PATH "Root of LLVM install.") # A bit of a sanity check: if( NOT EXISTS ${LLVM_ROOT}/include/llvm ) message(FATAL_ERROR &q...
2013 Mar 29
1
[LLVMdev] How to use the llvm::Linker?
Hi,All this one pass that will use the Linker namespace { // Hello2 - The second implementation with getAnalysisUsage implemented. llvm::StringRef programNametest(""); struct Hello2 : public ModulePass { static char ID; // Pass identification, replacement for typeid Hello2() : ModulePass(ID) {} virtual bool runOnModule(llvm::Module &M...
2012 Jul 23
0
[LLVMdev] building a pass with cmake
...son is that it can not find the directory to llvm > header files. > I could not figure it out which variable to set and how to use it in order > to point the required directory ? > ( as in the make pass build which requires LLVM_SRC_ROOT LLVM_OBJ_ROOT > variables to be set) > > Hello2/Hello.cpp:17:23: error: llvm/Pass.h: No such file or directory > Hello2/Hello.cpp:18:27: error: llvm/Function.h: No such file or directory > Hello2/Hello.cpp:19:38: error: llvm/Support/raw_ostream.h: No such file or > directory > Hello2/Hello.cpp:20:32: error: llvm/ADT/Statistic.h: No s...
2015 Jun 21
0
9p host/guest permissions & selinux...?
...exbox-storage [user@frontserver home]$ ls -al vortexbox-storage total 12 drwxrwxrwx. 2 qemu qemu 4096 Apr 4 09:58 . drwxr-xr-x. 5 root root 4096 Mar 24 11:23 .. -rwxrwxrwx. 1 qemu qemu 17 Apr 3 17:54 hello [user@frontserver home]$ cd vortexbox-storage [user@frontserver vortexbox-storage]$ touch hello2 [user@frontserver vortexbox-storage]$ ls -al total 12 drwxrwxrwx. 2 qemu qemu 4096 Jun 20 22:07 . drwxr-xr-x. 5 root root 4096 Mar 24 11:23 .. -rwxrwxrwx. 1 qemu qemu 17 Apr 3 17:54 hello -rw-rw-r--. 1 user user 0 Jun 20 22:07 hello2 [user@frontserver vortexbox-storage]$ echo hello2 > hell...
2017 Oct 25
3
LLVM v6.0 Internalize and GlobalDCE PASS can not work together?
...d\n", i);   }   return 0; } $ /opt/llvm-svn/bin/clang --version Fedora clang version 6.0.0 (trunk 316308) (based on LLVM 6.0.0svn) Target: x86_64-redhat-linux Thread model: posix InstalledDir: /opt/llvm-svn/bin $ /opt/llvm-svn/bin/clang -Xclang -disable-O0-optnone -S -emit-llvm hello.c -o hello2.ll $ cat hello2.ll ; ModuleID = 'hello.c' source_filename = "hello.c" target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" @.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 ; Funct...
2012 Nov 20
1
[LLVMdev] Removing unused global constant
Hi I create a simple bytecode file with clang -c -emit-llvm test.c -o test.bc #include <stdio.h> void hello(){ printf("hello\n"); } void hello2(){ printf("hello2\n"); } Then i want to keep only the hello function so i do : llvm-extract -func=hello -o test2.bc test.bc but the string constants are removed and "@.str" is marked as external @str = external hidden unnamed_addr constant [6 x i8] How do you keep th...
2017 Oct 26
2
LLVM v6.0 Internalize and GlobalDCE PASS can not work together?
...--version >> Fedora clang version 6.0.0 (trunk 316308) (based on LLVM 6.0.0svn) >> Target: x86_64-redhat-linux >> Thread model: posix >> InstalledDir: /opt/llvm-svn/bin >> >> $ /opt/llvm-svn/bin/clang -Xclang -disable-O0-optnone -S -emit-llvm >> hello.c -o hello2.ll >> >> $ cat hello2.ll >> ; ModuleID = 'hello.c' >> source_filename = "hello.c" >> target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" >> target triple = "x86_64-unknown-linux-gnu" >> >> @.str = private...
2005 Dec 27
1
Odd Behavior with render
...iterate through an array of hashes using the ActionController''s render method. Unfortunately, it appears that when I use a hash as one of the array elements, it gets passed as a nil to the partial. Here''s some code: @books = [ ''hello'', ''hello2'' ] render :partial => "book", :collection => @books In this case, the partial gets called twice, and the local variable ''book'' is populated with the values one would expect. @books = [ { ''title'' => ''h...
2004 Aug 06
1
[LLVMdev] Why I cannot use PgmDependenceGraph?
I want to use PgmDependenceGraph pass , but my pass cannot work with PgmDependenceGraph. I tried again in Hello2 pass, and it could not work also. The following is I did with llvm/lib/Transforms/Hello.cpp: 1.insert #include "llvm/Analysis/PgmDependenceGraph.h" in Hello.cpp. 2.insert AU.addRequired<PgmDependenceGraph>() in the getAnalysisUsage(AnalysisUsage &AU) of Hello2. 3.made...
2007 Feb 08
1
Help with interfacing C & R
Hi all, I was trying to set up an interface for using C functions in R. For this, my R file hello2.r is: --------------------------------------------------------------------------------- hello2 <- function(n) { .C("hello", as.integer(n)) } hello2(3) -------------------------------------------------------------------------------- and my hello.c file is: -------------------------...
2010 Nov 15
1
[LLVMdev] --enable-optimized breaks pass registration for dynamically loadable passes?
...anonymous namespace)::Hello>::RegisterPass llvm::RegisterPass<(anonymous namespace)::Hello>::RegisterPass llvm::RegisterPass<(anonymous namespace)::Hello>::~RegisterPass llvm::RegisterPass<(anonymous namespace)::Hello>::~RegisterPass llvm::RegisterPass<(anonymous namespace)::Hello2>::RegisterPass llvm::RegisterPass<(anonymous namespace)::Hello2>::RegisterPass llvm::RegisterPass<(anonymous namespace)::Hello2>::~RegisterPass llvm::RegisterPass<(anonymous namespace)::Hello2>::~RegisterPass As you might expect, after 'make install' installs the libLL...
2009 Dec 18
1
[LLVMdev] Compiling a raw binary with llvm/clang
$ clang -ffunction-sections -fdata-sections -Os -nostartfiles -c -o hello.o hello.c $ clang -ffunction-sections -fdata-sections -Os -nostartfiles -c -o test.o test.c $ llvm-ld -s -o hello2 hello.o $ llc hello2.bc -o hello3 $ ld -o hello_B hello3 --oformat binary ld:hello3: file format not recognized; treating as linker script ld:hello3:1: syntax error I am guessing that is what you meant by the "then use the same procedure you were originally using." right? Sorry for the...
2009 Jun 23
2
[LLVMdev] lli aborts on arm QEMU
...directional_iterator<NodeTy, int>::reference llvm::ilist_iterator<NodeTy>::operator*() const [with NodeTy = llvm::RecyclerStruct]: Assertion `Traits::getNext(NodePtr) != 0 && "Dereferencing end()!"' failed. 0 lli 0x006abbfc Stack dump: 0. Program arguments: ./lli hello2.bc 1. Running pass 'ARM Instruction Selection' on function '@main' Aborted. Is it a bug or I am doing something stupid? Thanks hannibal -- Be Yourself @ mail.com! Choose From 200+ Email Addresses Get a Free Account at www.mail.com
2009 Jun 24
0
[LLVMdev] lli aborts on arm QEMU
...rator<NodeTy, int>::reference llvm::ilist_iterator<NodeTy>::operator*() const [with NodeTy = llvm::RecyclerStruct]: Assertion `Traits::getNext(NodePtr) != 0 && "Dereferencing end()!"' failed. > 0 lli 0x006abbfc > Stack dump: > 0. Program arguments: ./lli hello2.bc > 1. Running pass 'ARM Instruction Selection' on function '@main' > Aborted. > > > Is it a bug or I am doing something stupid? It sounds like a bug. However ARM is moving fast at the moment, so you might want to try again in a few days time before opening a bu...
2011 May 03
0
[LLVMdev] Loop-Unroll optimization
...fter all the sequence of commands below bit-code is not showing any effect of loop-unrolling *manish at manish:~/Test2$ llvm-gcc-4.2 -O2 -emit-llvm Hello.c -c -o Hello.bc* *manish at manish:~/Test2$ opt-2.8 -loops Hello.bc -o Hello1.bc* *manish at manish:~/Test2$ opt-2.8 -loopsimplify Hello1.bc -o Hello2.bc* *manish at manish:~/Test2$ opt-2.8 -indvars Hello2.bc -o Hello3.bc* *manish at manish:~/Test2$ opt-2.8 -loop-unroll Hello3.bc -o Hello4.bc* *manish at manish:~/Test2$ llvm-dis-2.8 Hello4.bc* My *Hello.c* looks like: for(i=0; i< 1000; i++) { c[i] = a[i] + b[i]; } printf(&q...
2008 Jul 03
3
Running shell scripts from external media
OS=CentOS-5.2 media=Kingston 512Mb usb key Problem: As 'root', when running a script resident on the external drive mounted at /media/disk I receive the following error: /bin/sh: bad interpreter: Permission denied The meduia is a 512Mb USB key formatted as ext2/3 # ll -rwx------ 1 root root 28 Jul 2 17:30 hello.sh # cat hello.sh #!/bin/sh echo Hello World! # which sh /bin/sh I
2011 May 04
1
[LLVMdev] Loop-Unroll optimization
...nds below bit-code is not showing any > effect of loop-unrolling > > *manish at manish:~/Test2$ llvm-gcc-4.2 -O2 -emit-llvm Hello.c -c -o Hello.bc > * > *manish at manish:~/Test2$ opt-2.8 -loops Hello.bc -o Hello1.bc* > *manish at manish:~/Test2$ opt-2.8 -loopsimplify Hello1.bc -o Hello2.bc* > *manish at manish:~/Test2$ opt-2.8 -indvars Hello2.bc -o Hello3.bc* > *manish at manish:~/Test2$ opt-2.8 -loop-unroll Hello3.bc -o Hello4.bc* > *manish at manish:~/Test2$ llvm-dis-2.8 Hello4.bc* > > My *Hello.c* looks like: > for(i=0; i< 1000; i++) > { >...
2004 Sep 22
2
Facing problems with C code compilation - Please help.
...I have my C code - "hello.c" is lying in C:\Program Files\R\rw1091 This code is - #include <R.h> void hello(int *n) { int i; for(i=0;i< *n; i++) { Rprintf("Hello World ! \n"); } } ======= Code hello1.R is also lying in the same directory. This code is - hello2 <- function(n) { .C("hello", as.integer)) } ======= >From the command prompt, I go into the directory C:\Program Files\R\rw1091\bin and I do C:\Program Files\R\rw1091\bin>R CMD SHLIB hello.c 'make' is not recognized as an internal or external command, operable pro...
2011 May 03
3
[LLVMdev] Loop-Unroll optimization
Hi, You might want to try running -loops -loop-simplify before loop unroll. >From loop simplify.cpp This pass performs several transformations to transform natural loops into a00011 // simpler form, which makes subsequent analyses and transformations simpler and00012 // more effective. Arushi On Tue, May 3, 2011 at 2:17 PM, Manish Gupta <mgupta.iitr at gmail.com> wrote: > You
2009 Dec 17
0
[LLVMdev] Compiling a raw binary with llvm/clang
On Thu, Dec 17, 2009 at 1:00 PM, LiteHacker <vilmer88 at gmail.com> wrote: > > Indeed ld does link it. The reason I am using llvm-ld, is for its unique > functionality. > I intend to link to object files together (created by cling), and link them > with llvm-ld. > The main feature that I am currently interested in is the ability to have > "inline functions"