Displaying 20 results from an estimated 20000 matches similar to: "[LLVMdev] Statistic API change"
2002 Sep 22
0
[LLVMdev] Cute LLVM feature that may be useful for 426 people
This is an FYI to all people who are writing LLVM passes (mostly 426
people) about a useful feature of LLVM.
The "Support/StatisticReporter.h" file provides two useful features that
you may want to make use of in your pass
(http://llvm.cs.uiuc.edu/doxygen/StatisticReporter_8h-source.html):
1. Statistics output - Often you may run your pass on some big program,
and you're
2006 Dec 19
0
[LLVMdev] Statistic API change
FYI. I just changed how statistics are defined. This eliminates one
static constructor for each statistic in the system, causing them to be
statically initalized instead. To update any out of tree code, change
this:
Statistic foo("blah", "desc");
into:
#define DEBUG_TYPE "blah" // before any #includes
...
STATISTIC(foo, "desc");
Statistics are
2002 Sep 30
1
[LLVMdev] llvm-g++ barfs
Hi,
In the quest for better test cases for my MP, I thought of trying
the Stepanov Abstraction Penalty benchmark. But apparently llvm-g++
is not ready for such terrible things. Let me know if you want me
to send the source code (it is widely available).
gaeke|csil-suna37|~/cs/426/MP1/step|[1177]% /usr/dcs/projects/cs426/Software/gcc_install/bin/g++ stepanov.cpp -o stepanov
In file included from
2002 Sep 13
0
[LLVMdev] FYI: AllocaInst & MallocInst ctor change
Just a note: I just checked in a change that corrects some very
non-intuitive behavior of the AllocaInst & MallocInst classes. Before,
the constructor would take a Type which would specify the return type of
the instruction, instead of the operand type. Now it takes the operand
type directly. More concretely:
LLVM Code:
X = alloca int ; int*
Y = malloc int * ; int**
Old C++
2002 Sep 09
0
[LLVMdev] Significant change to GCC front-end
I just checked in an important change to the LLVM Verifier pass, and have
compiled a new version of the GCC front-end. The big change is that we
now match the LangRef.html much more closely: many operations on pointer
operands are illegal.
Essentially, the GCC front-end should never generate adds, subtracts,
multiplies, divides, rem, or shr/shl instructions that take pointer
operands now. In
2002 Oct 31
1
[LLVMdev] problems with llvmgcc
Dear Prof. Adve,
Now I can use llvmgcc to compile a .c file into .bc file. But I still have
trouble simply run the .bc code. Below is the sequence I got when I tried.
I really don't know what's going on here. Please let me know how can I fix
it.
Thanks,
xiaodong
xli3|csil-suna48|~/cs426|[13]% llvmgcc scalarize.c -o scalarize
xli3|csil-suna48|~/cs426|[14]% scalarize
Cannot load value of
2002 Oct 30
2
[LLVMdev] running out of space in /usr/dcs/projects
% df -k /usr/dcs/projects
Filesystem kbytes used avail capacity Mounted on
csil-server1:/usr/dcs/csil-projects
17332442 16991416 167702 100% /usr/dcs/projects
% date
Wed Oct 30 21:21:25 CST 2002
if anybody has good ideas on how to reduce disk usage, better speak up
now....
2006 May 09
0
[LLVMdev] Fwd: [TSG-Announce] major CS department IT services outage on May 21 starting at 9pm
Just a warning that the LLVM web site and CVS server are likely to be
affected by the following maintenance work on May 21. Many of our
software utilities are automounted from DCSfiles.
--Vikram
http://www.cs.uiuc.edu/~vadve
http://llvm.cs.uiuc.edu/
Begin forwarded message:
> From: "Frank E Penrose" <fep at uiuc.edu>
> Date: May 9, 2006 9:01:38 AM CDT
> To:
2002 Oct 30
0
[LLVMdev] problems with llvmgcc
The problem with llvmgcc invoking as instead of llvm-as has been fixed.
3 llvm-specific executables needed to be copied into a default location
where gcc can find them if it does not find them as configured (gcc was
configured for the paths on our research machines and copied over). Let
us know if you have additional problems.
--Vikram
> -----Original Message-----
> From: llvmdev-admin
2002 Oct 30
2
[LLVMdev] problems with llvmgcc
Thanks, Chris,
Below is the output of 'llvmgcc he.c -v'
xli3|csil-suna27|~/cs426|[35]% llvmgcc he.c -v
Reading specs from
/usr/dcs/projects/cs426/Software/gcc_install/bin/../lib/gcc-lib/llvm/3.1/specs
Configured with: /home/vadve/lattner/cvs/gcc/configure
--srcdir=/home/vadve/lattner/cvs/gcc
--prefix=/home/vadve/lattner/cvs/gcc_install_sparc --target=llvm
--enable-languages=c
2002 Oct 29
0
[LLVMdev] problems with llvmgcc
> I just tried to compile a simple file hello.c. But each time I used
> llvmgcc hello.c, it gave me the following error:
>
> xli3|csil-suna33|~/cs426|[13]% llvmgcc hello.c
> as: error opening '/var/tmp//ccapglpE.o': file exists!
> Use -f command line argument to force output
First try doing an 'rm -f /var/tmp/*' and try again. If that still
doesn't work,
2009 Dec 15
0
[LLVMdev] Running a pass
Juan Carlos Martinez Santos wrote:
> Hello LLVM,
>
> I am following the document "Writing an LLVM Pass". When I ran "opt
> -load ../../../Debug/lib/MyPass.so -mypass < hello.bc > /dev/null" I
> got the next error:
>
> ***@ubuntu:~/test$ opt -load ../../llvm/Debug/lib/MyPass.so -mypass <
> hello.bc > /dev/null
> opt: Pass.cpp:159:
2018 Jan 29
1
Polly Dependency Analysis in MyPass
Thank You.
Actually i pass polly canonaclize IR to my new created polly pass called
"mypass". Mypass should first detect scops then find depedndencies as the
mechanism conventional approach.
Now i know how to write llvm pass here i am writing pass as loadable module
first afterwards i will integrate it with opt in the end.
I tried writing following code. Could you please help me on
2009 Dec 15
2
[LLVMdev] Running a pass
Hello LLVM,
I am following the document "Writing an LLVM Pass". When I ran "opt -load
../../../Debug/lib/MyPass.so -mypass < hello.bc > /dev/null" I got the next
error:
***@ubuntu:~/test$ opt -load ../../llvm/Debug/lib/MyPass.so -mypass <
hello.bc > /dev/null
opt: Pass.cpp:159: void<unnamed>::PassRegistrar::RegisterPass(const
llvm::PassInfo&): Assertion
2012 Apr 12
0
[LLVMdev] Function Pass Manager
Hi again,
I come back to this issue with an example. It's a pass which does
nothing but throw the 'Unable to schedule' error.
namespace {
struct MyPass : public FunctionPass {
static char ID; // Pass identification, replacement for typeid
MyPass() : FunctionPass(ID) {
initializeMyPassPass(*PassRegistry::getPassRegistry());
}
virtual void
2013 Jul 22
0
[LLVMdev] How to additionally compile the source files in subdirectories when using Makefile?
Hi guys,
I am writing a LLVM pass plugin, and just simply add a directory mypass into llvm/lib/Transforms. But since I don't hope this directory to contain too many source files, I add some subdirectories.
For instance, there are 2 files inside *mypass/sub: basic.h, basic.cpp. Here is the structure of the directory llvm/lib/Transforms/mypass
$tree mypass
mypass
├── Makefile
├──
2015 Oct 09
2
Get instance of CallGraph of a module in the pass
Hello,
I want an instance of CallGraph in my pass. By looking at -dot-callgraph
source, I've tried something like this:
CallGraphWrapperPass *CGWP = new CallGraphWrapperPass();
PM.add(CGWP);
CallGraph *CG = &CGWP->getCallGraph();
PM.add(new MyPass(CG));
I get the following error:
/home/riyad/installs/llvm-3.7.0/include/llvm/PassSupport.h:95:38: error: no
matching constructor for
2018 Jan 29
0
Polly Dependency Analysis in MyPass
How do you compile the code? Within the Polly subdirectory using CMake?
How do you run your pass. Using "opt -mypass inputfile.ll"?
Michael
2018-01-28 9:30 GMT-06:00 hameeza ahmed via llvm-dev <llvm-dev at lists.llvm.org>:
> Hello,
>
> I need to analyze dependencies in my llvm ir by using polly. i created a new
> pass called mypass there i added polly dependency
2009 Jul 27
2
[LLVMdev] Pass Scheduling Information without using opt
Daniel Dunbar wrote:
> Ah, in this case llvm_shutdown isn't what you are looking for. I've
> never looked at the Statistic implementation so I can't be any help
> here, but if you poke around starting with "llvm/ADT/Statistic.h" you
> may find a way to do what you want.
I looked into that already, but Statistic.h only gives me the
possibility to implement tracking
2008 May 06
0
[LLVMdev] debugging LLVM generated executables???
Hi everyone again,
I did discover the following works (see below). However, does anyone
know of the "proper" way with LLVM?
llvm-gcc -g -c -emit-llvm helloworld.c
opt -load=mypass.dylib -mypass < helloworld.o > helloworld-mypass.o
llc -fast -f -o helloworld.s helloworld-mypass.o
as -o helloworld-prime.o
gcc -o helloworld helloworld-prime.o
gdb helloworld
On May 5, 2008, at