Displaying 10 results from an estimated 10 matches for "ziqiang".
2014 Oct 13
4
[LLVMdev] Passing llc options to Clang
Hi,
Is there a way to passing llc options to clang, for example -march -mcpu,
etc. ?
Some threads suggested using -mllvm flag,
I tried ./clang -mllvm -march=X86-64 -mcpu=core2 -o hello hello.c, but got
"Unknown command line argument"
Thanks,
Ziqiang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141013/7982544a/attachment.html>
2015 Feb 18
2
[LLVMdev] How to specify displacement range of a target instruction to llc
Hi,
I'm working on a project that use llvm openrisc beckend (currently not part
of the upstream). Right now I'm looking at a bug where llc generates memory
instructions that has out-of-range displacement, for example
l.sb 37668(r1), r2 in which 37668 is a 17 bit signed integer, but the
instruction only allows 16 bit signed displacement. As a result, after
running through the
2015 Feb 28
2
[LLVMdev] Getting basic block address offset from its parent function
...offset of that MBB
from its MachineFunction. In order to correctly count the instructions,
this pass should be inserted after the last transform pass ..
Does this sound reasonable ?
Thanks,
Patrick
2015-02-28 9:07 GMT-05:00 John Criswell <jtcriswel at gmail.com>:
> On 2/27/15 6:30 PM, Ziqiang Patrick Huang wrote:
>
> Hi, all
>
> Is there a way of getting the basic block offset from its parent
> function ?
>
>
> At the LLVM IR level, no. At the code generator layer
> (MachineFunctionPass layer or the MC layer), probably yes.
>
>
> What I'm tryin...
2015 Mar 01
1
[LLVMdev] Getting basic block address offset from its parent function
On Sat, Feb 28, 2015 at 7:39 AM, Ziqiang Patrick Huang <
ziqiang.huang1001 at gmail.com> wrote:
> Hi John
>
> Thanks for your suggestions, they all sound reasonable to me. The way I'm
> thinking right now is to write a MachineFuncionPass that iterate through
> each MachinBasicBlock, for each MBB, adds up the inst...
2015 Apr 07
2
[LLVMdev] How to see what's going on behind llc through clang/clang++
Hi,
Is there a way to see what the default argument llc takes from
clang/clang++ ? I'm debugging my backend with a very simple c++ program.
Running through
*clang++ -target myTarget -S simple.cpp -o simple.s * (bug does no show up)
gives me different results from
*clang++ -target myTarget -S -emit-llvm -o simple.cpp -o simple.ll*
*llc simple.ll -o simple.s *(bug shows up)
Just trying to
2015 Feb 28
0
[LLVMdev] Getting basic block address offset from its parent function
On 2/27/15 6:30 PM, Ziqiang Patrick Huang wrote:
> Hi, all
>
> Is there a way of getting the basic block offset from its parent
> function ?
At the LLVM IR level, no. At the code generator layer
(MachineFunctionPass layer or the MC layer), probably yes.
>
> What I'm trying to do is to get an executi...
2015 Feb 27
2
[LLVMdev] Getting basic block address offset from its parent function
Hi, all
Is there a way of getting the basic block offset from its parent function ?
What I'm trying to do is to get an execution count of each basic blocks, so
I need to know the starting address of each basic blocks. Obviously we
can't get the absolute address before linking the program, but the offset
relative to parent function should be available so I can take it and get
the function
2013 Apr 23
2
Help: Where can I find the code for 'C_Cdqrls'?
Dear all,
I’m not sure if it is O.K. to ask this question here.
But where can I find the code for the function ‘C_Cdqrls’ which is called by the R function ‘lsfit‘.
Thank you all.
Sorry for being naïve if so.
--------------------
Ziqiang Zhao
2013-04-23
[[alternative HTML version deleted]]
2015 Dec 02
4
Cloning a MachineInstr
I'm trying to clone a MachineInstr in the AsmPrinter::EmitInstruction, Here
is the code:
void EsenciaAsmPrinter::EmitInstruction(const MachineInstr *MI) {
const MachineFunction *MF = MI->getParent()->getParent();
MachineInstr *CloneMI = MF->CloneMachineInstr(MI);
...
...
}
The problem is that MF is a const and CloneMachineInstr expects a
non-const. Does anybody know if there is
2014 Jan 18
1
Error when making R in Windows
...in package 'tools'
Execution halted
make[2]: *** [all] Error 1
make[1]: *** [R] Error 1
make: *** [all] Error 2
It seems that I get stuck in building the package ¡®tools¡¯.
Shall I just replace the codes for ¡®tools¡¯ with those from R 2.15.2?
Thanks for your help.
Ziqiang Zhao
2014-01-18
[[alternative HTML version deleted]]