Displaying 8 results from an estimated 8 matches similar to: "[LLVMdev] Getting size of array allocations"
2010 Apr 06
0
[LLVMdev] Getting size of array allocations
On 5 April 2010 22:27, aashays <aashay.shringarpure at gatech.edu> wrote:
>
> Now, how do I go about extracting '10' as the array size from the first
> alloca instruction? isArrayAllocation returns false and getArraySize returns
> 1.
>
As a guess, get the type of the first alloca instruction, [10 x i32],
and get the number of elements from the array type, rather than
2013 Mar 11
1
[LLVMdev] regarding C++11 plugins
Hi all,
I have written a Clang plug-in which uses some c++11 keywords.
Coz of that I am able to load that plug-in. Can you just help me out.
It produces lots of warnings at those keywords.
Thanks..
-Aashay
PICT, Pune
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130311/ccc43416/attachment.html>
2002 Nov 27
1
[LLVMdev] Instruciton replacement
llvm is giving me some assertion errors when trying to replace an
instruction, and I'm not quite sure of what to do. I have the
following snippet of code:
switch((*I)->getOpcode()) {
case Instruction::Malloc:
{
AllocaInst *AI;
AI = new AllocaInst(cast<AllocationInst>(*I)->getAllocatedType(),
cast<AllocationInst>(*I)->getArraySize());
2008 Apr 16
0
[LLVMdev] Problems in removing a cloned instruction.
Hi,
I'm gonna try to give some feedback, but I have only been working with LLVM
for a few days, so don't take what I'm saying without verifying :-)
> BasicBlock *ProgSlicer::CloneBasicBlock(const BasicBlock *BB,
> DenseMap<const Value*, Value*> &ValueMap,
> const char *NameSuffix, Function *F) {
>
> BasicBlock
2008 Apr 16
2
[LLVMdev] Problems in removing a cloned instruction.
Hi all,
I am trying to write a pass where i am creating a clone of a
function (the only difference being, the new function returns void ,
instead of any value).
I am creating a new Function Type with a void return type (rest being
the same as original function), and using this i am creating a new
function body. Then, i clone the body of the old function into new
function, but when ever i
2014 Nov 03
8
[LLVMdev] [PATCH] Protection against stack-based memory corruption errors using SafeStack
Dear LLVM developers,
Our team has developed an LLVM-based protection mechanism that (i) prevents
control-flow hijack attacks enabled by memory corruption errors and (ii)
has very low performance overhead. We would like to contribute the
implementation to LLVM. We presented this work at the OSDI 2014 conference,
at several software companies, and several US universities. We received
positive
2013 Mar 02
0
[LLVMdev] code for static taint analysis
Hi,
you have given the following link for the code of static taint analysis but
its showing the page not found error.
Can you just help me out.
*
"The code for static taint analysis (which should be similar to what you
need) is now publicly available. You can find the code at
https://github.com/thinkmoore/llvm-deps."
-- John T.
*thanks.
-------------- next part --------------
An
2013 Mar 02
0
[LLVMdev] Clang Plugin
Hi all,
Actually I am trying to build a clang plugin for finding the
data dependency in any source file like C/C++ as input file.
And have to use the concept called use-def chain in that.so I thought k
previous mentioned link will be useful. I have already
built the LLVM and currently developed some small plugins also. But stuck
up further... :(
If possible can any one help me out