Displaying 20 results from an estimated 3000 matches similar to: "beginner problem with cross compilation"
2015 Nov 17
2
Confused on how to do a machinefunction pass
Yes, I have done exactly the same. The wawanalyzer is the same. I changed
ARM.h and ARMTargetMachine.cpp in the tager/arm folder. then I make
tool/llc and lib folder.
On Tue, Nov 17, 2015 at 10:55 AM, John Criswell <jtcriswel at gmail.com> wrote:
> On 11/17/15 12:16 AM, fateme Hoseini via llvm-dev wrote:
>
> Hi,
> So, I run my pass in X86 target with llc command and it printed
2015 Nov 17
2
Confused on how to do a machinefunction pass
Hi,
So, I run my pass in X86 target with llc command and it printed out
"hello****". Now I am trying to do the same pass for ARM target. So I did
exactly what I did for X86 as mentioned in my previous posts. When I run
the following command:
llc -march=arm test.ll -o test
nothing prints out. I did the same for MIPS target too and I got no result.
Can anyone tell me what I'm doing
2015 Nov 04
3
Confused on how to do a machinefunction pass
Thank you so much.
That helped alot.
Fami
On Wed, Nov 4, 2015 at 9:40 AM, John Criswell <jtcriswel at gmail.com> wrote:
> On 11/3/15 7:54 PM, fateme Hoseini wrote:
>
> Dear John,
> Thank you so much for your help. I looked at those documents. Could you
> kindly answer the following questions:
>
> Does it mean that I have to make my own backend target in order to write
2017 Jan 09
4
Find instruction's offset
Hi,
Is there a way to get instruction's offset at compile time with llvm for
ARM?
I am trying to create a map between instructions at compile time and this
run-time info. Since PC is a relative value, I am trying to use the
instruction's offset as a constant property of instruction to create this
map. I think offset information should be available to create the
executable, if so where to
2015 Nov 03
2
Confused on how to do a machinefunction pass
Hi everyone,
I am a LLVM newbie. I need to write a machinefunction pass for my project.
This should be an analyzer of the machine code to do some profiling. I have
written a couple of function passes for front end, but it seems they are
completely different. I searched through forum and llvm documents, but
couldn't find anything useful or questions were unanswered. Can anyone
reference me to
2015 Nov 04
2
Confused on how to do a machinefunction pass
Dear John,
Thank you so much for your help. I looked at those documents. Could you
kindly answer the following questions:
Does it mean that I have to make my own backend target in order to write a
machine pass even if I want to run a simple machinefunction pass? for
example,if I want my pass to get MIPS instructions as an input, I have to
copy all the files from mips target and add a file to it
2016 Apr 05
3
Add Call instruction in IR for a non-existing function
Hello everyone,
I am trying to add checkpoints to my IR code. In order to do that I need to
add this instruction:
call void @m5_checkpoint(i64 0, i64 0)
to some of the basic blocks in my benchmark.
m5_checkpoint is a function defined for checkpointing in another simulator
and is not included in my benchmark source code. So I need to create this
instruction and I couldn't figure out how to do
2015 Dec 19
2
get instruction destination register
Hello everyone,
I am trying to write a code to do the following:
1. Get an ARM machine instruction
2. Find destination register of that instruction that has been written
3. set a bit in a vector, according to that register number. (Since it's
ARM, I have a 15 bit vector)
It means if I have :
add r0, r1, r0
I want to get r0 as dest reg and set the index 0 of my vector to 1.
I get my machine
2015 Dec 21
2
get instruction destination register
Dear Tim,
Thank you for your thorough reply. So, based on your reply I get every
operand and check them to be (isDef && !isimplicit). Now my problem is that
it gives me the physical register number.i.e, for example, instead of r0,
it return %physreg66. Could you please help me on how to convert these
physical register number to the ARM related register? I mean the 15 GPRs in
ARM.
Thank
2016 Jan 29
1
MachineModule pass
Hello everyone,
As I mentioned in my previous posts,I am using a machinefunction pass to
find all the loops in the program and do some analysis on them. I have
completed my pass now and it works correctly. but the only issue is that,I
have noticed that if I have two functions in my program, and one of them is
part of the loop for another one ,by using runonmachinefunction(), I will
get one loop
2016 May 06
2
Spill code
Hi,
Is it possible to add a spill code (a pair of store /load ) to the
machinecode in a pass before the instruction emitter? If so, how can I
calculate the address (offset to the sp) for the spill store/load
instructions?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2016 May 13
3
Access to dynamic execution information.
Hi
Does LLVM dynamically run the program to obtain profiling information like
branch weight? if so, can we access the information regarding this run like
the number of instructions that have been executed dynamically between two
specific points of the program?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2019 Mar 28
2
Why does LLVM keep some loads in the loops even after applying the O3 optimization?
Ryan Taylor via llvm-dev <llvm-dev at lists.llvm.org> writes:
> r0 gets overwritten inside the loop (assuming dst, src, src), is ldr
> r0, [r5] needed to initialize r0 for the loop at each iteration?
Register allocation should handle that if the load is hoisted.
I'm with the others. The printf is the most likely culprit.
-0David
> On Thu, Mar 28, 2019
2016 Feb 11
3
Writing an LLVM Pass that depends on mem2reg
Hi,
I read your post in LLVM forum. I want to use getAnalysisUsage(AnalysisUsage &AU) to get MachineLoopInfo. I have used this on my passes before but, this time I am trying to get this information in ScheduleDAGRRList scheduler class. There is no runonmachinefunction function. Do you know how I can implement this?
Regards,
Fateme
I will appreciate it you can help me with this problem.
2010 Sep 26
4
How to update an old unsupported package
Hi all,
I have a package that is specific to a task I was repetitively using a
few years ago.
I now needed to run it again with new data.
However I am told it was built with an older version or R and will not work.
How can I tweak the package so it will run on 11.1?
It was a one-off product and has not been maintained.
Is there a way to "unpackage" it and repackage it to work?
I
2019 Mar 28
3
Why does LLVM keep some loads in the loops even after applying the O3 optimization?
Hello all,
I am looking at the assembly code of a loop body which is created by
applying O3 optimization. Here it is:
.LBB4_19: @ %for.body.91
@ =>This Inner Loop Header: Depth=1
ldr r0, [r5]
mov r1, r8
add r0, r0, r7
vldr s0, [r0]
mov r0, r6
vcvt.f64.f32 d0, s0
vmov
2015 Feb 04
6
[LLVMdev] llvm builtins
In the following example with gcc style builtins, in once case
llvm.powi.f64 is emitted
and in the other just a call to library function powf.
~/llvm/build/Debug+Asserts/bin/clang -S -emit-llvm pow1.c
Why is that?
Is there a way to force the call to an llvm style builtin?
Tia.
Reed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pow1.c
Type: text/x-csrc
2008 Nov 11
1
Dial outside number using the E1 Link
Hi:
I've configured an asterisk server with A102d sangoma's card and the E1 link.I want to dial outside number using the E1 Link.How can I dial a phone number?Is this true?
exten => 123,1,Dial(ZAP/1/phone number)
I'd appreciate any help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Oct 08
3
asterisk1.2
Hi:
I want to use asterisk1.2 but I don't know which version of asterisk1.2 and zaptel1.2 is best.Please offer me one version of asterisk and zaptel and libpri.How about asterisk1.2.24 and zaptel1.2.20.1 and libpri1.2.5?And do they work togather well?
Best regards.
---------------------------------
Pinpoint customers who are looking for what you sell.
-------------- next part
2009 Feb 26
3
R question - combine values
The district a is the baseline and we observe the difference between
District a & b is not significant, we can choose to combine these 2 values.
How to write code to combine these 2 value ?
> m1=glm(Claims~District+Group+Age+log(Holders),fami ly=poisson,data=mydata)
> summary(m1)
Call:
glm(formula = Claims ~ District + Group + Age + log(Holders),
family = poisson, data = mydata)