Displaying 20 results from an estimated 1100 matches similar to: "[LLVMdev] Assembly Printer"
2011 Jan 13
3
[LLVMdev] llc linkage problem
I am using LLVM 2.8 on Ubuntu 10.10. (new to both)
I change name of instruction on XXXInstrInfo.td ( Sparc, X86 and XCore). I
looked into XXXGenAsmWriter.inc and I have seen the new instruction name.
But when I run llc for the three targets it prints out the old instruction
name.
For example for XCore I change “divs” to “sdiv” like
>From => def DIVS_l3r :
2011 Jan 13
1
[LLVMdev] need help on llc option -march=?
I am using LLVM 2.8 on Ubuntu 10.10. (new to both)
I change name of instruction on XXXInstrInfo.td ( Sparc, X86 and XCore). I
looked into XXXGenAsmWriter.inc and I have seen the new instruction name.
But when I run llc for the three targets it prints out the old instruction
name.
For example in XCoreInstrInfo.td I change the name of one of the instruction
let say "divs" to
2011 Jan 13
0
[LLVMdev] llc linkage problem
On 13 January 2011 19:20, Atse Zeriakob <atsezeriakob at gmail.com> wrote:
> For example in XCoreInstrInfo.td I change the name of one of the instruction
> let say "divs" to "newdivs",
>
> like
> def DIVS_l3r : FL3R<"newdivs", sdiv>;
>
> When I run llc with option -march=xcore, after I make the modification, it
> still outputs
2010 Jan 01
2
[LLVMdev] Assembly Printer
I am trying to understand how LLVM does code generation and I have a couple
of questions.
I am using LLVM 2.6.
First,
if I want to change the name of an instruction, all I need to do is to
modify the XXXInstrInfo.td, right?
Using Sparc as an example, if I wanted to output "mysra" instead of "sra",
in SparcInstrInfo.td, I would write,
defm SRA : F3_12<"mysra",
2010 Jan 03
0
[LLVMdev] Assembly Printer
On Jan 1, 2010, at 12:51 PM, mmms1841 wrote:
> I am trying to understand how LLVM does code generation and I have a couple of questions.
> I am using LLVM 2.6.
>
> First,
> if I want to change the name of an instruction, all I need to do is to modify the XXXInstrInfo.td, right?
> Using Sparc as an example, if I wanted to output "mysra" instead of "sra",
2010 Nov 25
1
[LLVMdev] Installing llvm on Windows Xp??
Could you pleas tell me how to install and run llvm-2.8 on Windows Xp. Pleas
do not tell me to go to http://llvm.org/docs/GettingStarted.html ! I read
everything and try to follow the steps but it doesn’t help me at all.
Pleassss!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2014 Jun 07
3
[LLVMdev] Load/Store Instruction Error
Hi all,
I started to write an LLVM backend for custom CPU. I created XXXInstrInfo
but there are some problems. I searched for it but I couldn't find
anything. Can anyone help me?
include "XXXInstrFormats.td"
def simm16 : Operand<i32> {
let DecoderMethod = "DecodeSimm16";
}
def mem : Operand<i32> {
let PrintMethod = "printMemOperand";
let
2013 Sep 29
0
[LLVMdev] SDIV >128bit, DAG->DAG error in LegalizeIntegerTypes
I'm getting the following error when trying to SDIV integers greater
than 128bit (on an AMD64 target).
LegalizeIntegerTypes.cpp:2047: void
llvm::DAGTypeLegalizer::ExpandIntRes_SDIV(llvm::SDNode*, llvm::SDValue&,
llvm::SDValue&): Assertion `LC != RTLIB::UNKNOWN_LIBCALL && "Unsupported
SDIV!"' failed.
Stack dump:
0. Running pass 'X86 DAG->DAG
2014 Aug 21
0
[PATCH 2/7] clock/nva3: Set PLL refclk
Signed-off-by: Roy Spliet <rspliet at eclipso.eu>
---
drivers/gpu/drm/nouveau/core/subdev/clock/nva3.c | 73 +++++++++++++++---------
drivers/gpu/drm/nouveau/core/subdev/clock/nva3.h | 2 +-
drivers/gpu/drm/nouveau/core/subdev/fb/ramnva3.c | 2 +-
3 files changed, 48 insertions(+), 29 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/core/subdev/clock/nva3.c
2017 Nov 29
3
RFC: Adding 'no-overflow' keyword to 'sdiv'\'udiv' instructions
Introduction:
We would like to add new keyword to 'sdiv'\'udiv' instructions i.e. 'no-overflow'.
This is the updated solution devised in the discussion: http://lists.llvm.org/pipermail/llvm-dev/2017-October/118257.html
The proposed keywords:
"nof" stands for 'no-overflow'
Syntax:
<result> = sdiv nof <ty> <op1>,
2017 Mar 29
2
sdiv in array subscript
Hi Eli,
Thanks. Do you mean ideally we should extend SimplifyIndVar to do the
sdiv->udiv replacement?
Thanks
Hongbin
On Wed, Mar 29, 2017 at 10:59 AM, Friedman, Eli <efriedma at codeaurora.org>
wrote:
> On 3/29/2017 10:35 AM, Hongbin Zheng via llvm-dev wrote:
>
>> Hi llvm-dev,
>>
>> Looks like currently ScalarEvolution will give up if there is a sdiv in
2017 Mar 29
2
sdiv in array subscript
Hi llvm-dev,
Looks like currently ScalarEvolution will give up if there is a sdiv in
array subscript, e.g.
int i;
A[i * 64 / 2]
in this case ScalarEvolution will just return an unknown for (i * 64 / 2).
For this case, InstCombine will do the jobs, but in general, is there a
pass to deal with the sdiv here? like replace sdiv by udiv based on the
range of "i"?
Thanks
Hongbin
2016 Jun 04
0
[PATCH 2/3] nvkm/clk/gf100: Read secondary bypass postdiv when required
Signed-off-by: Roy Spliet <nouveau at spliet.org>
---
drivers/gpu/drm/nouveau/nvkm/subdev/clk/gf100.c | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/clk/gf100.c b/drivers/gpu/drm/nouveau/nvkm/subdev/clk/gf100.c
index f9a4918..80c6dd6 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/clk/gf100.c
+++
2016 Jun 17
0
[PATCH v2 2/2] nvkm/clk/gf100: Read secondary bypass postdiv when required
v2: fix typo it's -> its
Signed-off-by: Roy Spliet <nouveau at spliet.org>
---
drivers/gpu/drm/nouveau/nvkm/subdev/clk/gf100.c | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/clk/gf100.c b/drivers/gpu/drm/nouveau/nvkm/subdev/clk/gf100.c
index 026baff..89d5543 100644
---
2020 Mar 27
2
Instruction selection phase
Hello LLVM-Dev,
Attached are:
· The DAG after being built
· The DAG before the legalization phase
The DAG illustrated performs a signed division for type i32. As can be seen, the SDIV node was converted to a series of other nodes (which includes a MULHS node). In the target lowering class of our target, the SDIV has an operation action of custom. Does anybody know where in
2014 Jul 01
2
[LLVMdev] Probable error in InstCombine
I've found what appears to be a bug in instcombine. Specifically, the transformation of -(X/C) to X/(-C) is invalid if C == INT_MIN.
Specifically, if I have
> define i32 @foo(i32 %x) #0 {
> entry:
> %div = sdiv i32 %x, -2147483648
> %sub = sub nsw i32 0, %div
> ret i32 %sub
> }
then opt -instcombine will produce
> define i32 @foo(i32 %x) #0 {
> entry:
> %sub
2019 Feb 13
2
Question about register allocation
Hi,
I'd like to understand how register allocation works in the case where an instruction is folded into another one. Where in the code would be a good place to start looking at?
After ISEL, one of the instructions has another instruction folded into it, which looks like this
t1: i32,i1,i1,i1,i1 = ADDRR TargetFrameIndex:i32<0>, MOVRI:i32,i1,i1
But during the 'Assembly
2006 Apr 18
1
[patch] sparc build fix
add object rules so that the division, remainder and friends get
really build on sparc, patch from Fabio M. Di Nitto <fabbione@ubuntu.com>.
reworked to apply on latest git tree.
Signed-off-by: maximilian attems <maks@sternwelten.at>
---
Has been since long in the Debian and Ubuntu klibc.
diff --git a/klibc/arch/sparc/Makefile.inc b/klibc/arch/sparc/Makefile.inc
index
2016 May 31
3
Signed Division and InstCombine
I was looking through the InstCombine pass, and I was wondering why signed
division is not considered a valid operation to combine in the
canEvaluateTruncated function. This means, given the following code:
%conv = sext i16 %0 to i32
%conv1 = sext i16 %1 to i32
%div = sdiv i32 %conv, %conv1
%conv2 = trunc i32 %div to i16
* Assume %0 and %1 are registers created from simple 16-bit loads.
We
2014 Sep 22
3
[LLVMdev] ARM assembler bug on LLVM 3.5
On Sun, 21 Sep 2014, Renato Golin wrote:
> On 20 September 2014 15:19, Mikulas Patocka
> <mikulas at artax.karlin.mff.cuni.cz> wrote:
> > The problem is this - you either compile this program with
> > -mcpu=cortex-a9, then clang reports error on the sdiv instruction because
> > cortex a9 doesn't have sdiv. Or - you compile the program with
> >