Displaying 9 results from an estimated 9 matches for "issplit".
2012 Nov 27
0
[LLVMdev] Problem selecting the correct registers for a calling convention
Hi Job,
> This issue is basically that I cannot find a way to distinguish two i16
> arguments from one i32. Is there a way to do this in LLVM? Preferably using
> tablegen, of course:-)
I think the property you want is "isSplit" (or, from the TableGen side
CCIfSplit).
This gets applied to the first of those i16s that are produced.
Unfortunately I can't think of much you can do from TableGen to swap
the registers around (CCIfSplit is useful if the i32 would have to
start at an even-numbered register, for example)...
2012 Nov 27
2
[LLVMdev] Problem selecting the correct registers for a calling convention
I'm currently working on the MSP430 backend and I have some problems
implementing the calling convention.
It's a 16-bit architecture which dictates that arguments should be passed in
registers R15-R12. Therefore, I have something like this is a .td file:
CCIfType<[i16], CCAssignToReg<[R15W, R14W, R13W, R12W]>>
32-bit arguments should be passed in R14:R15 (R12:R13).
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
2013 Jul 02
1
[LLVMdev] Problem selecting the correct registers for a calling convention
Hello Job,
I managed to resolve this same problem by using custom C++ code since as
you mentioned
the isSplit flag doesn't help here. There are 2 ways to analyze the
arguments of a function:
1) You can get a Function pointer in LowerFormalArguments, and in LowerCall
only when Callee can by dyn_casted to a GlobalAddressSDNode. By having this
pointer you can then do:
for (Function::const_arg_iterator I...
2012 Apr 04
3
[LLVMdev] [cfe-commits] Fix handling of ARM homogenous aggregates
...targets and send it for comparison.
The main issue with my approach is that split struct args are still tricky:
they get identical types and another custom CCState is needed to handle them
en-masse (to find out where we are in the struct). Optimal for that case might
be an extra flag similar to isSplit(), but for structs.
Thoughts?
Tim.
2011 Apr 02
0
[LLVMdev] Callee prototype info in LowerCall()
...an
ExternalSymbolSDNode inside TargetLowering::LowerCall(), this way i could
get the original argument sizes before they're legalized into smaller parts.
I need this sort of information because depending on the originaltypes of
the arguments i need to use some regs or others. I tried using the isSplit
flag in ArgFlagsTy but it only marks the first splitted argument piece, so
it's not possible to know into how many pieces is the argument divided. So
my question is how would i get this information or if it's possible to add
for example the original size of the argument into the OutputArg/I...
2012 Apr 04
0
[LLVMdev] [cfe-commits] Fix handling of ARM homogenous aggregates
Hi Tim,
> So I've come to the conclusion that the real flaw is LLVM
> not exposing enough information to the target-dependent
> backend code for it to do the right thing.
We also had this problem. You might find this patch useful as a starting point:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-March/048266.html
/Patrik Hägglund
-----Original Message-----
From: llvmdev-bounces
2012 Mar 30
2
[LLVMdev] [cfe-commits] Fix handling of ARM homogenous aggregates
Hi,
(Forward from cfe-commits, where some backend stuff has come up).
This is an issue I've been thinking about quite a bit recently, and I agree that the biggest problem is the one below:
> * The big thing still missing here is that there is no logic to check how many VFP registers have already been used for other arguments. When deciding whether to pass an argument as a homogeneous
2013 Sep 25
1
[LLVMdev] arm64 / iOS support
Attached is a working patch set for llvm to be able to emit arm64
(currently as triple aarch64-apple-ios) mach-o object files, in case
someone is interested. I'm not sure if the llvm maintainers want the
patch given the previous message that there's going to be an official
patch set from apple to support this, but here is mine.
What works (tested on an iPhone 5S):
* objc strings,