Displaying 20 results from an estimated 33 matches for "arnamoy".
2013 Nov 05
1
[LLVMdev] Identifying the instructions that uses a pointer used as a function argument
Thanks for the reply.
For the source code:
int main()
{
int a = 0;
int *p;
p = &a;
call_arnamoy(p);
int *p1;
p1 = p;
return 1;
}
The bit code:
%retval = alloca i32, align 4
%a = alloca i32, align 4
%p = alloca i32*, align 8
%p1 = alloca i32*, align 8
store i32 0, i32* %retval
store i32 0, i32* %a, align 4
store i32* %a, i32** %p, align 8
%0 = load i32** %p, align 8
%call = call i32 @a...
2012 May 18
3
[LLVMdev] Adding a New Instruction to LLVM IR
...he source code downloaded from the website. Could you tell me what are
the files that need to be modified to add a new token to parse my
instruction from assembly text file (STEP 4) and add the grammar on how my
instruction can be read and what it will construct as a result (STEP 5).
Thanks;
--
Arnamoy Bhattacharyya
Athabasca Hall 143
Department of Computing Science - University of Alberta
Edmonton, Alberta, Canada, T6G 2E8
780-680-7073
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120518/29f7d3ec/attachm...
2012 Jul 05
3
[LLVMdev] "symbol lookup error" while running a Simple Loop Pass
...at I am doing wrong?
Also what's the difference between declaring a pass as a struct vs
declaring it as a class. In the "writing a pass" tutorial the "Hello" pass
has been declared as a struct but most (if not all) the LLVM passes are
written as classes.
Thanks a lot;
--
Arnamoy Bhattacharyya
Athabasca Hall 143
Department of Computing Science - University of Alberta
Edmonton, Alberta, Canada, T6G 2E8
587-710-7073
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120705/ff65500b/attachm...
2012 Jul 05
0
[LLVMdev] "symbol lookup error" while running a Simple Loop Pass
....so in the llvm-src/Release+Asserts/lib directory) to solve the
problem.
Can anyone tell me what's the difference between writing a pass as a
"struct" (as in the tutorial) and as a "class" (as most developers do)?
Thanks again;
---------- Forwarded message ----------
From: Arnamoy Bhattacharyya <arnamoy at ualberta.ca>
Date: Thu, Jul 5, 2012 at 12:34 AM
Subject: "symbol lookup error" while running a Simple Loop Pass
To: llvmdev at cs.uiuc.edu
Hello;
I wrote this simple loop pass to collect the number of instructions in each
loop of the program. The code i...
2012 Jul 05
1
[LLVMdev] "symbol lookup error" while running a Simple Loop Pass
...h "class" and then placing all
members with "public:" visibility. From LLVM point of view,
functionality of your pass is not going to change at all by using
"class" or "struct" to define it.
BR
Carlos
> ---------- Forwarded message ----------
> From: Arnamoy Bhattacharyya <arnamoy at ualberta.ca>
> Date: Thu, Jul 5, 2012 at 12:34 AM
> Subject: "symbol lookup error" while running a Simple Loop Pass
> To: llvmdev at cs.uiuc.edu
>
>
> Hello;
>
> I wrote this simple loop pass to collect the number of instructions in...
2013 Nov 05
2
[LLVMdev] Identifying the instructions that uses a pointer used as a function argument
...ainst other instructions that use the same named pointer. But
this is also not working because first the pointer is loaded into
register and then the register is passed in the argument.
Sorry if the question does not make sense. Any pointer or explanation
will be appreciated.
Thanks a lot!!
--
Arnamoy Bhattacharyya
Athabasca Hall 143
Department of Computing Science - University of Alberta
Edmonton, Alberta, Canada, T6G 2E8
587-710-7073
2013 Oct 25
0
[LLVMdev] Question About Function Cloning
Hi Arnamoy,
> Any idea, why the output looks like -
> Hello World
> Hello World
> val is 58
>
> While the it should print 4 times?
Both your loops are sharing the counter variable (%i1) without
resetting it to 0 in between calls. I think that accounts for the
behaviour.
Cheers.
Tim.
2013 Nov 05
0
[LLVMdev] Identifying the instructions that uses a pointer used as a function argument
...ncomingValue(Idx, R);
}
for (auto& I : Replace)
I->replaceUsesOfWith(V, R);
}
If this doesn't help, you could try showing us the actual IR you're running
the transformation on.
Just FMI, is it okay to post code on this mailing list?
H.
On Tue, Nov 5, 2013 at 8:59 AM, Arnamoy Bhattacharyya
<arnamoy at ualberta.ca>wrote:
> Hello all;
>
> So here is my goal:
>
> *** If there is a Call instruction to myFunction(int * val), I need to
> identify all the instructions that uses val in the IR and replace the
> uses with a newly created pointer. I wi...
2012 Sep 05
2
[LLVMdev] llvm::ConstantArray::get(llvm::LLVMContext&, llvm::StringRef, bool) deprecated?
...lvm::ArrayRef<llvm::Constant*>)
Could anyone tell me how to give a value (lets say "hello world") to the
Array Constant using currently available get method?
Previously llvm::ConstantArray::get(getGlobalContext(), "hello world",
true) should have worked.
Thank you;
--
Arnamoy Bhattacharyya
Athabasca Hall 143
Department of Computing Science - University of Alberta
Edmonton, Alberta, Canada, T6G 2E8
587-710-7073
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120905/1bfb4bec/attachm...
2012 Jun 20
3
[LLVMdev] Is Loop Dependence Analysis Printing Correct Stats?
...nknown accesses
Why do the " Pairwise dependence results:" and the "Statistics Collected"
differ? Like first we get 11 "dependent"(must) accesses and later it says
11 "unknown" (may) accesses? Am I doing anything wrong or the code seems
buggy?
Thanks;
--
Arnamoy Bhattacharyya
Athabasca Hall 143
Department of Computing Science - University of Alberta
Edmonton, Alberta, Canada, T6G 2E8
587-710-7073
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120620/2dc31fde/attachm...
2012 Sep 07
1
[LLVMdev] Get the filename on which a pass is running?
...ow can I get the name of the bitcode file on which I am
running the pass. I am making my pass as a loadable module. And if I run
my pass like this -
opt -S -loops -load /home/arnie/llvm-clang/llvm/Release+Asserts/lib/XYZ.so
-xyz <b.bc> b1.bc
I want to get b.bc in the pass.
Thank you;
--
Arnamoy Bhattacharyya
Athabasca Hall 143
Department of Computing Science - University of Alberta
Edmonton, Alberta, Canada, T6G 2E8
587-710-7073
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120906/5152ad42/attachm...
2020 Nov 19
2
Understanding CallInst::Create
...r LLVM3.5 to LLVM10. There
used to be a call instruction with the signature
static CallInst * Create (Value *F, Value *Actual, const Twine
&NameStr="", Instruction *InsertBefore=0)
Can anyone please explain what it supposed to do? What was F and Actual?
Thank you so much.
--
Dr. Arnamoy Bhattacharyya
R&D Compiler Engineer
Huawei
2020 Nov 19
1
Understanding CallInst::Create
...be just
CallInst * Create (FunctionCallee Func, ArrayRef< Value *> Args...),
where I push the "Actual" argument to the ArrayRef and then create the
call?
On Thu, Nov 19, 2020 at 10:15 AM Tim Northover <t.p.northover at gmail.com> wrote:
>
> On Thu, 19 Nov 2020 at 14:24, Arnamoy Bhattacharyya via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
> > I am working on porting a tool written for LLVM3.5 to LLVM10. There
> > used to be a call instruction with the signature
> > static CallInst * Create (Value *F, Value *Actual, const Twine
> > &...
2012 May 20
1
[LLVMdev] Error While Inserting New Instruction to LLVM IR
...de/llvm/Instructions.h
llvm/include/llvm/Support/InstVisitor.h
llvm/lib/AsmParser/< necessary files>
llvm/include/llvm/Bitcode/LLVMBitCodes.h
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/VMCore/Instruction.cpp
llvm/lib/VMCore/Instructions.cpp
llvm/include/llvm-c/core.h
Thank you;
--
Arnamoy Bhattacharyya
Athabasca Hall 143
Department of Computing Science - University of Alberta
Edmonton, Alberta, Canada, T6G 2E8
780-680-7073
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120520/c12b74c3/attachm...
2013 Oct 25
3
[LLVMdev] Question About Function Cloning
...i32, align 4
%i1 = alloca i32, align 4
store i32 0, i32* %retval
store i32 2, i32* %num_iter, align 4
store i32 56, i32* %val, align 4
store i32 0, i32* %i1, align 4
br label %codeRepl
codeRepl: ; preds = %entry
call void @main_for.condarnamoy(i32* %i1, i32* %num_iter, i32* %val)
call void @main_for.cond(i32* %i1, i32* %num_iter, i32* %val)
br label %for.end
for.end: ; preds = %codeRepl
%0 = load i32* %val, align 4
%call3 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds
([11...
2012 Jul 04
1
[LLVMdev] Correct Way to Build an LLVM Pass
...39;. Stop.
However, if I configure and build the whole LLVM again (with my pass), it
is able to produce the shared library. Is it the only way to integrate my
pass into LLVM? Because, every time I modify my pass, I have to rebuilt
LLVM which takes close to half-an-hour to build?
Thank you;
--
Arnamoy Bhattacharyya
Athabasca Hall 143
Department of Computing Science - University of Alberta
Edmonton, Alberta, Canada, T6G 2E8
587-710-7073
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120704/f508dbe4/attachm...
2012 Jun 18
1
[LLVMdev] Any Work Done/ Going on for OpenMP Support in Clang?
...discussion went i the llvm mailing list about work on supporting
OpenMP in Clang (llvm-gcc already supports that).(
http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-January/046640.html)
I just want to know, anybody has made any progress in it? It would be
really helpful for me.
Thanks a lot;
--
Arnamoy Bhattacharyya
Athabasca Hall 143
Department of Computing Science - University of Alberta
Edmonton, Alberta, Canada, T6G 2E8
587-710-7073
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120618/09c7fa0e/attachm...
2012 Jun 20
0
[LLVMdev] Is Loop Dependence Analysis Printing Correct Stats?
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Arnamoy Bhattacharyya
> Subject: [LLVMdev] Is Loop Dependence Analysis Printing Correct Stats?
> for(i = 0; i < 4; i ++)
> {
> a[i] = a[i-1]+1;
> }
> Am I doing anything wrong or the code seems buggy?
Your code is buggy. The first time through the loop, you're referencing a[-1...
2012 Jun 16
2
[LLVMdev] What's Going Wrong with GCC 4.6.3 + dragonegg 3.1
...output:
lli: hello.bc:1:1: error: expected top-level entity
ELF@4(
*clang:*
clang -c hello.c -emit-llvm -o hello.bc
lli hello.bc
output:
hello world
hello.c:
#include <stdio.h>
int main() {
printf("hello world\n");
return 0;
}
Any suggestions on how to do it in llvm-gcc?
--
Arnamoy Bhattacharyya
Athabasca Hall 143
Department of Computing Science - University of Alberta
Edmonton, Alberta, Canada, T6G 2E8
587-710-7073
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120616/75684e09/attachm...
2012 Aug 22
1
[LLVMdev] Insert Self Written Function Call from a FunctionPass?
...CI, load_count);
BB->getInstList().insert((Instruction*)CI, call_print);
}//end of if
}
return true;
}
};
}
char bishe_insert::ID = 0;
static RegisterPass<bishe_insert> X("bishe_insert", "insert print calls");
Thanks a lot;
--
Arnamoy Bhattacharyya
Athabasca Hall 143
Department of Computing Science - University of Alberta
Edmonton, Alberta, Canada, T6G 2E8
587-710-7073
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120822/b2095ec8/attachm...