Displaying 20 results from an estimated 39 matches for "ldy".
Did you mean:
ldt
2019 Mar 07
5
Writing unit tests - how to test re-orderable blocks...
We have a test that looks like this…
define void @array16_store() {
; CHECK-LABEL: array16_store:
; CHECK: ldi [[REG1:r[0-9]+]], 204
; CHECK: ldi [[REG2:r[0-9]+]], 170
; CHECK: sts int.array+3, [[REG2]]
; CHECK: sts int.array+2, [[REG1]]
; CHECK: ldi [[REG1:r[0-9]+]], 187
; CHECK: ldi [[REG2:r[0-9]+]], 170
; CHECK: sts int.array+1, [[REG2]]
; CHECK: sts int.array, [[REG1]]
; CHECK: ldi
2019 Mar 08
2
Writing unit tests - how to test re-orderable blocks...
I’m not sure if it’s truly deterministic. It always gives the same results (so far) on my machine but I’m not sure that’s enough.
My guess is it’s probably going to be deterministic on one machine but might well not be deterministic across environments. Like it might give varying results if cross compiled on different hosts, macOS vs intel Linux vs arm vs s390. (Obviously AVR is always a cross
2010 Dec 24
3
selection of outputs from the function
Hi Dear All,
This is a function which contains Covariance Ratio and Likelihood Distance
values (CVRi, LDi). i want to compute the all row's values, that is run this
function for nrow(X) times. The X and Y matrices are;
2016 Jul 28
2
[ORC JIT] Exposing IndirectStubsManager from CompileOnDemandLayer.h
...aa3362 100644
--- a/CompileOnDemandLayer.h
+++ b/CompileOnDemandLayer.h
@@ -429,6 +429,28 @@ private:
return CalledAddr;
}
+public:
+ TargetAddress updatePointer(std::string FuncName, TargetAddress
FnBodyAddr) {
+ //Find out which logical dylib contains our symbol
+ auto LDI = LogicalDylibs.begin();
+ for (auto LDE = LogicalDylibs.end(); LDI != LDE; ++LDI) {
+ if (auto LMResources =
LDI->getLogicalModuleResourcesForSymbol(FuncName, false)) {
+ Module &SrcM = LMResources->SourceModule->getResource();
+ std::string CalledFnName = mangle(F...
2020 Jun 25
2
How to implement load/store for vector predicate register
Hi, there
I am writing an backend, and I met a problem.
We don't have load/store instructions for vector predicate registers(vpr for short).
The hardware has 64 vector registers(vr for short) and 8 vector predicate registers. And there is no move instructions between vr and vpr.
vr supports many operations, and vpr supports vpror, vprxor, vprand and vprinv operations.
A vr has 512 bits, and
2016 Jul 29
0
[ORC JIT] Exposing IndirectStubsManager from CompileOnDemandLayer.h
...++ b/CompileOnDemandLayer.h
> @@ -429,6 +429,28 @@ private:
> return CalledAddr;
> }
>
> +public:
> + TargetAddress updatePointer(std::string FuncName, TargetAddress
> FnBodyAddr) {
> + //Find out which logical dylib contains our symbol
> + auto LDI = LogicalDylibs.begin();
> + for (auto LDE = LogicalDylibs.end(); LDI != LDE; ++LDI) {
> + if (auto LMResources =
> LDI->getLogicalModuleResourcesForSymbol(FuncName, false)) {
> + Module &SrcM = LMResources->SourceModule->getResource();
> + std::strin...
2016 Jul 29
2
[ORC JIT] Exposing IndirectStubsManager from CompileOnDemandLayer.h
Hi Sean,
This is great, but it couples LogicalDylib too tightly to
CompileOnDemandLayer. Does this alternative implementation of
getLogicalModuleResourcesForSymbol work for you (unfortunately I don't have
a local test case for this yet):
LogicalModuleResources*
getLogicalModuleResourcesForSymbol(const std::string &Name,...
2019 Mar 02
3
Legalising seems to lose critical information needed for lowering return values properly?
I'm a new LLVM developer contributing patches for the AVR platform and I'm trying to understand which parts of the code base are malfunctioning in my case.
This LLVM IR...
define hidden i32 @setServoAngle3(i32) local_unnamed_addr {
entry:
%1 = call i32 @myExternalFunction1(i32 %0, i32 119)
ret i32 %1
}
declare i32 @myExternalFunction1(i32, i32)
Is being lowered to this assembly
2016 Jul 29
0
[ORC JIT] Exposing IndirectStubsManager from CompileOnDemandLayer.h
...ple of people asking for support for updating stub
pointers for functions that are optimized at runtime, and I'd be willing to
work on adding that support.
On Fri, Jul 29, 2016 at 6:53 PM Lang Hames <lhames at gmail.com> wrote:
> Hi Sean,
>
> This is great, but it couples LogicalDylib too tightly to
> CompileOnDemandLayer. Does this alternative implementation of
> getLogicalModuleResourcesForSymbol work for you (unfortunately I don't
> have a local test case for this yet):
>
>
>
>
>
> LogicalModuleResources*
> getLogicalModuleResourcesFor...
2020 Jun 26
2
How to implement load/store for vector predicate register
Hi,
I am planning to expanding the pseudo instructions in XXXTargetLowering::EmitInstrWithCustomInserter(), and use temporary virtual registers as operands.
If I use virtual registers, do I need to mark them as "early clobber"?
I saw that sometimes they marked virtual register as "early clobber" in EmitInstrWithCustomInserter() in MIPS backend.
What is the effect of marking a
2016 Jul 30
1
[ORC JIT] Exposing IndirectStubsManager from CompileOnDemandLayer.h
...r updating stub
> pointers for functions that are optimized at runtime, and I'd be willing to
> work on adding that support.
>
> On Fri, Jul 29, 2016 at 6:53 PM Lang Hames <lhames at gmail.com> wrote:
>
>> Hi Sean,
>>
>> This is great, but it couples LogicalDylib too tightly to
>> CompileOnDemandLayer. Does this alternative implementation of
>> getLogicalModuleResourcesForSymbol work for you (unfortunately I don't
>> have a local test case for this yet):
>>
>>
>>
>>
>>
>> LogicalModuleResources*...
2014 May 19
2
[LLVMdev] Associate IR instruction with corresponding assembly
Hi,
Compiling for both x86 and ARM with llc aborts after this pass.
I have a simple helloworld.c program.
I am attaching the .ll file created by:
*clang -O3 -g -emit-llvm hello.c -c -o hello.bc*
*llvm-dis hello.bc*
Thanks again for the response!
Shruti
On Mon, May 19, 2014 at 1:28 AM, Tobias Grosser <tobias at grosser.es> wrote:
> On 19/05/2014 00:54, shruti padmanabha wrote:
>
2006 Jul 24
1
[PATCH] vfork() for parisc
Implement "pid_t vfork(void)" for parisc.
Signed-off-by: Kyle McMartin <kyle at parisc-linux.org>
---
Ugh. vfork() me harder.
Kbuild | 2 +-
vfork.S | 31 +++++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 1 deletion(-)
diff --git a/usr/klibc/arch/parisc/Kbuild b/usr/klibc/arch/parisc/Kbuild
index d57a873..57ca5c2 100644
--- a/usr/klibc/arch/parisc/Kbuild
2007 Nov 17
2
unlink_directory(....Trash.NewFolder) failed: Directory not empty
I noticed the following this week. No idea how long its been happening because I have
not tested deleting folders hardly at all. Steps to reproduce:
1. Create a folder "NewFolder", click on it in thunderbird so an index dir is created:
ls -ldi Maildir/.NewFolder/
1504062 drwx------ 5 mcdouga9 egrstaff 4096 Nov 16 19:44 Maildir/.NewFolder/
ls -ldi
2012 Feb 02
0
[LLVMdev] How to improve code generated for 'getelementptr' ?
Hi all,
I am working on an llvm backend for a processor with a relative simple instruction set.
For small loops, the code that is produced depends heavily on how the loop is specified:
The less information we provide to clang, the better the loop code becomes...
Any idea how I can learn llvm that we don't have load/store instructions with register index,
so that it is more efficient to
2017 Jul 11
6
RFC: Harvard architectures and default address spaces
Hello all, I’m looking into solving an AVR-specific issue and would love to
hear peoples thoughts on how to best fix it.
Background
As you may or may not know, I maintain the in-tree AVR backend, which also
happens to be (to the best of my knowledge) the first in-tree backend for a
Harvard architecture.
In this architecture, code lives inside the ‘program memory’ space
(numbered 1), whereas data
2012 Nov 20
1
[LLVMdev] My documentation work
Sean,
Thank your valuable opinion. I am doing the revision history now. I also review my book and find I made a mistake in LDI instruction. According cpu0, this instruction is move immediate value (for example, 5) to register, not add immediate value to register. I need to fix this for reader's feeling. I am an experienced programmer and I am less-experienced book writer. Please correct me if
2005 Nov 25
0
Fix syscalls with more than four arguments on parisc
Reimplement __common_syscall in assembler. The 32-bit ABI says that
the fifth and sixth arguments to the function are passed on the stack,
but our syscall ABI says they are passed in %arg4 and %arg5 like the
64-bit ABI. Also, tried to optimize the code slightly by making use of
the cmpb delay slot to load the errno return of -1.
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
diff
2012 Jan 10
1
[LLVMdev] SelectionDAG
Hello,
I am working on a AVR backend and have a version up and running that will convert LLVM IR code to assembly code for my target. I have written a bunch of instructions from the AVR Instruction Set in AVRInstrInfo.td and not much else. In a simple test case I am attempting to compile (if that is the word you are supposed to use for this operation) test.ll:
define i8 @foo(i8 %a, i8 %b) {
2014 Jul 04
2
[LLVMdev] MOS6502 target
...ir of ZP locations as the stack pointer (SP). You
> can't index off the hardware stack pointer, for a start.
>
> As mentioned before, if possible you'd want to statically allocate as many
> local vars as possible, as LDA $nnnn is a byte smaller and twice as fast (4
> vs 8) as LDY #nn; LDA (SP),Y. (you'll sometimes be able to use INY or DEY
> instead of the load .. or just reuse the last value. But still...)
>
>
> With regard to code layout, ideally everything would get inlined since I
>> have gobs of memory compared to everything else. I wouldn't n...