Displaying 20 results from an estimated 400 matches similar to: "ArrayBoundChecks in SafeCode-llvm37"
2016 Mar 22
2
Passing llvm option -mem2reg to clang
I have my own llvm pass which requires mem2reg. It worked fine with
opt. However, I was trying to make it work with clang as I needed it
to run some spec cpu benchmarks.
Is there any way that I can mention mem2reg (PromotePass) pass as a
pre-requisite in my own pass's implementation?
On Mon, Mar 21, 2016 at 9:01 PM, Mehdi Amini <mehdi.amini at apple.com> wrote:
> Hi,
>
> You
2016 Mar 22
2
Passing llvm option -mem2reg to clang
I have used the following command for my pass (without -mem2reg):
clang -Xclang -load -Xclang MYPASS.so -c ../../tests/test1.c
For mem2reg, I tried the following:
clang -mllvm -mem2reg -Xclang -load -Xclang MYPASS.so -c ../../tests/test1.c
On Mon, Mar 21, 2016 at 9:26 PM, Mehdi Amini <mehdi.amini at apple.com> wrote:
>
>> On Mar 21, 2016, at 6:23 PM, Syed Rafiul Hussain
2016 Mar 22
2
Passing llvm option -mem2reg to clang
Hi,
I was trying to pass llvm option -mem2reg to clang using -mllvm and I
found the following error:
clang (LLVM option parsing): Unknown command line argument '-mem2reg'.
Try: 'clang (LLVM option parsing) -help'
clang (LLVM option parsing): Did you mean '-debug'?
I would appreciate if anyone could help me.
--
Syed Rafiul Hussain
2016 Jan 22
3
LLVM - getAnalysisUsage()
I have added -debug-pass=Structure, and found the following:
ModulePass Manager
X Analysis
Unnamed pass: implement Pass::getPassName()
FunctionPass Manager
Module Verifier
Bitcode Writer
Pass Arguments: -x -y -z
FunctionPass Manager
X Analysis
Y Construction
Z Construction
Even for getAnalysis<Y>(*F) and getAnalysis<Z>(&F), all the passes X,
2016 Jan 22
4
LLVM - getAnalysisUsage()
Hi,
I am using llvm-3.8 for my project. Following is my getAnalysisUsage() method:
virtual void getAnalysisUsage(AnalysisUsage &AU) const override
{
AU.setPreservesAll();
AU.addRequired<X>();
AU.addRequired<Y>();
AU.addRequired<Z>();
}
Now, if I call getAnalysis<X>(*F), instead of invoking just the X
pass, all the passes, i.e., X, Y and Z are being
2016 Mar 22
1
Passing llvm option -mem2reg to clang
Unless mem2reg does something other than my understanding of it, I can't
see why any pass would "require" that... It is not guaranteed to do
anything to any particular piece of code, so relying on it seems very
unreliable, I would think.
--
Mats
On 22 March 2016 at 04:32, Kevin Hu via llvm-dev <llvm-dev at lists.llvm.org>
wrote:
> Hi,
>
> > Is there any way that
2016 Jan 28
2
Find the instructions where a particular value is defined
Thank you all for your reply.
if(a>10)
b=10;
else if (a<10)
b = 5;
Here is the IR of the if-elseif:
56 %0 = load i32, i32* %a, align 4
57 %cmp = icmp sgt i32 %0, 10
58 br i1 %cmp, label %if.then, label %if.else
60 if.then: ; preds = %entry
61 store i32 10, i32* %b, align 4
62 br label %if.end.4
63
64 if.else:
2016 Jan 28
2
Find the instructions where a particular value is defined
Sorry, I should ask the following:
finds all the instructions of a function where a particular variable is defined?
Lets consider the following code snippet:
1. void foo(){
2. int a, b;
3. if(a > 10)
4. b = 10;
5. if(a<10)
6. b = 5;
7. cout << b;
8. }
I would like to know the instructions where variable b can be be
defined, i.e, in this case, the instructions 4 and 6.
On Wed,
2015 Oct 08
2
Pool allocator + safecode
Thanks for the fast response John.
On Thu, Oct 1, 2015, at 04:51 PM, John Criswell wrote:
> Dear Ed,
>
> First, someone has updated the DSA code in the poolalloc project to LLVM
> 3.7, and a Master's student worked for me over the summer to update a
> large chunk of SAFECode to LLVM 3.7. However, the update to LLVM 3.7
> isn't finished (we need to finish integrating
2016 Jan 28
2
Find the instructions where a particular value is defined
Hi,
I am wondering if there is anything like def-use chain which finds all
the instructions of a function where a particular value is defined?
Thanks.
--
Rafi
2015 Oct 01
2
Pool allocator + safecode
Hi,
I'm trying to get the pool allocator and safe code building against llvm
trunk. I've run into a build error, and I see that in the past another
user was told just not to build the pool allocator for use with safecode
[1]. However, I really want the pool allocator transforms, so I just
wanted to check why the suggestion was not to use it. Has it been
superseded in some way by something
2016 Mar 03
2
[GSoC16] Seeking Guidance for a project regarding SAFECode
Hello,
I am Abhinav Tripathi, B.Tech 3rd Year student from IIT Indore, India. I
was looking on the projects ideas page of llvm and saw that I could also
propose to work on the SAFECode Open projects. As I found no mailing list
on their site, I am sending this message here. Please redirect me to some
other list, if required.
.
I found most of the projects quite alluring as I have been working on a
2015 Jun 22
2
[LLVMdev] How to Obtain a DataLayout Reference Given a Function & F
I’ve been debugging SAFECode source code files, and line 170 in ArrayBoundCheckLocal.cpp has been causing the following compilation error:
In file included from /Users/peterfinn/Desktop/llvm_trunk_2/projects/safecode/lib/ArrayBoundChecks/ArrayBoundCheckLocal.cpp:18:
In file included from
2015 Sep 11
6
Optimizer issues on Windows
Dear Community,
The ponyc<https://github.com/CausalityLtd/ponyc/tree/llvm37> (llvm37 branch) project is facing an issue on Windows:
When optimizations are turned on (llvm 3.7.0-final and more specifically<https://github.com/CausalityLtd/ponyc/blob/llvm37/src/libponyc/codegen/genopt.cc>, opt-level 3, BBVectorize, LoopVectorize, SLPVectorize, RerollLoops, LoadCombine + a custom heap
2015 Jul 07
2
[LLVMdev] between r241513 and r241594, clang 3.7.0svn now crashes building clang-tools-extra
Since we are only a week away from branching for 3.7.0, this new
breakage in the stage2 bootstrap of
llvm/clang/compiler-rt/clang-tools-extra should get triaged. At
r241513, a three stage bootstrap with comparision of stage2/stage3
files completed fine. However at r241594 we now have the new
regression reported in https://llvm.org/bugs/show_bug.cgi?id=24054...
Assertion failed: (Val &&
2016 Jan 19
2
poolalloc: Updating to CMake
I hope this is the correct avenue to contact the poolalloc developers.
I'm trying to use an alias analysis from the poolalloc repository and can't get
it to compile with the latest LLVM. CMake is now required for LLVM, I'm pretty
sure at least, but poolalloc does not seem to use it correctly. The README in
the project refers to the old Makefiles.
I corrected a minor CMake error and a
2016 Oct 27
2
How to split module into several ones
Hi all,
Can anyone give me advice about an appropriate way for extracting number of
functions from module recursively (starting from entry point). Actually it
may be more than one entry point so all dependent functions and global
values must be extracted.
I've tried llvm-extract tool but it can't do work recursively. Maybe it
would be good to write some Call Graph pass or something. Any
2015 Sep 12
3
Optimizer issues on Windows
This got me into thinking. Indeed the problem is related to Windows exceptions, so I am not sure whether the bug reported<https://llvm.org/bugs/show_bug.cgi?id=24374> is actually fixed.
Compiling Pony code (helloworld) that includes no exceptions does work fine (with optimizations). As soon as exceptions on windows come into play, writing the object file dies with the mentioned error in
2007 Dec 03
1
[LLVMdev] Using Function Passes from Module Passes
Dear All,
I'm having some problems using a function pass from a Module pass. My
code is as follows:
DominatorTree & domTree;
...
Function &F = *I; // I is an interator from using Module::begin()
...
domTree = getAnalysis<DominatorTree>(F);
When I compile this code, I get the following error:
/home/vadve/criswell/src/llvm22/include/llvm/Pass.h: In member function
2015 Sep 12
2
Optimizer issues on Windows
… Also, it doesn’t appear that you are running on windows…
From: David Majnemer
Date: Saturday 12 September 2015 18:31
To: Sebastian Blessing
Cc: Reid Kleckner, "llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>"
Subject: Re: [llvm-dev] Optimizer issues on Windows
$ ~/llvm/Debug+Asserts/bin/llc try.ll
$ echo $?
0
On Sat, Sep 12, 2015 at 6:39 AM, Sebastian Blessing