Displaying 20 results from an estimated 3000 matches similar to: "File contents not saving"
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
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){
llvm::Linker
2012 Jul 23
0
[LLVMdev] building a pass with cmake
erkan diken <erkandiken at gmail.com> writes:
[snip]
> It seems that cmake is ok. When I run make install, it gives errors (see
> below) and i think the reason 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
2017 Oct 25
3
LLVM v6.0 Internalize and GlobalDCE PASS can not work together?
Hi LLVM developers,
$ cat hello.c
#include <stdio.h>
void foo() {
}
int main(int argc, char *argv[]) {
for (int i = 0; i < 10; i++) {
printf("%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
$
2017 Oct 26
2
LLVM v6.0 Internalize and GlobalDCE PASS can not work together?
Hi Hal,
Thanks for your hint!
$ /opt/llvm-svn/bin/opt -S -internalize
-internalize-public-api-list=main -globaldce hello3.ll -o
hello3.dce.ll it works :)
But I argue that `main` Function should be inserted into ExternalNames
by default:
Index: lib/Transforms/IPO/Internalize.cpp
===================================================================
--- lib/Transforms/IPO/Internalize.cpp
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
2005 Dec 27
1
Odd Behavior with render
I''d been trying to 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",
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.
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:
2009 Jun 23
2
[LLVMdev] lli aborts on arm QEMU
I get the following error when I try to run arm lli on QEMU:
lli: llvm-arm/src/llvm/include/llvm/ADT/ilist.h:197: typename bidirectional_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.
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
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
2009 Jun 24
0
[LLVMdev] lli aborts on arm QEMU
hannibal hannibal wrote:
> I get the following error when I try to run arm lli on QEMU:
>
> lli: llvm-arm/src/llvm/include/llvm/ADT/ilist.h:197: typename bidirectional_iterator<NodeTy, int>::reference llvm::ilist_iterator<NodeTy>::operator*() const [with NodeTy = llvm::RecyclerStruct]: Assertion `Traits::getNext(NodePtr) != 0 && "Dereferencing end()!"'
2014 Aug 31
1
Install Centos 6 x86_64 on Dell PowerEdge 2970 and a SSD (hardware probing issues)
I have a fleet of 2970s and we are upgrading the hardrives on the motherboard SATA ports (A/B not the PERC backplane) when a "detecting hardware" is performed the system crashes, reboots and gives an E1422 error code (useless video: https://www.youtube.com/watch?v=PhyMeUHJar4).
We narrowed it down to a motherboard BIOS issue, if we remove the SSD or add noprobe to the kernel the
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
2003 Oct 08
3
rsync for transferring harddrive images
Hi,
I have a project where I have to backup (copy /dev/hda on a server) and
recover (copy back) hardrives from the clients. I tried this with rsync
using:
BACKUP: rsync /dev/hda user@host:/path/to/image
RECOVER: rsync user@host:/path/to/image /dev/hda
There is a problem when accessing devices like /dev/hda. The transfer
aborts after a few seconds with the error message:
write failed on
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"
2010 May 11
2
make: Nothing to be done for `all'.
Hi,
I just bought new macbook pro 10.6.3. I am trying to use some old c code
that used to work. I tried to recompile the code. In the directory with
code I used R CMD SHLIB hello.c and get the error
make: Nothing to be done for `all'.
I have tried reinstalling Xcode and R but I am still having this problem.
Any suggestions?
--
View this message in context:
2004 Sep 22
2
Facing problems with C code compilation - Please help.
Hello,
I started using R a month ago - so I am a novice in this area. I am stuck with a problem and need some help urgently.
I am using windows version of R 1.9.1. I am trying to compile C code in it. 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++)
{
2011 May 03
0
[LLVMdev] Loop-Unroll optimization
Even after 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