Displaying 5 results from an estimated 5 matches for "tms9900".
2017 Oct 14
2
What's LLVM{target}CodeGen vs {target}CodeGen?
Hi all,
*TL;DR:* I have a target TMS9900CodeGen but cmake is looking for LLVMTMS9900
or LLVMTMS9900CodeGen which I don't have, and cmake dies. But the MSP430 target
doesn't have that either, and cmake is happy with it. What am I missing?
*The premise:*
I may be making a huge mistake, but I'm trying to develop an LLVM backend...
2017 Nov 02
2
Why am I getting FrameIndex:i64<0> when I have no i64's?
Here's the IR I'm trying to compile for my backend, a 16-bit CPU:
; ModuleID = 'foo.c'
source_filename = "foo.c"
target datalayout =
"E-m:e-p16:16:16-i1:16:16-i8:16:16-i16:16:16-i32:16:16-i64:16:16-S16-n16"
target triple = "tms9900"
@global_var = common global i16 0, align 2
; Function Attrs: noinline nounwind optnone
define signext i16 @dothis(i16 signext %a) #0 {
entry:
%a.addr = alloca i16, align 2
store i16 %a, i16* %a.addr, align 2
%0 = load i16, i16* @global_var, align 2
%1 = load i16, i16* %a.addr, align...
2017 Nov 05
2
What pattern string corresponds to CopyToReg?
...o do with "LLVM ERROR: Cannot select: t1: i16 =
Constant<127>".BTW, the function is:
; ModuleID = 'return.c'
source_filename = "return.c"
target datalayout =
"E-m:e-p:16:16:16-i1:16:16-i8:16:16-i16:16:16-i32:16:16-i64:16:16-S16-n16"
target triple = "tms9900"
; Function Attrs: noinline nounwind optnone
define signext i16 @my_func() #0 {
entry:
ret i16 127
}
------- debug output --------
Optimized legalized selection DAG: BB#0 'my_func:entry'
SelectionDAG has 5 nodes:
t0: ch = EntryToken
t3: ch,glue = CopyToReg t0, Register:i16 %...
2017 Nov 05
2
What pattern string corresponds to CopyToReg?
...Constant<127>".BTW, the function is:
>>
>> ; ModuleID = 'return.c'
>> source_filename = "return.c"
>> target datalayout =
>> "E-m:e-p:16:16:16-i1:16:16-i8:16:16-i16:16:16-i32:16:16-i64:16:16-S16-n16"
>> target triple = "tms9900"
>>
>> ; Function Attrs: noinline nounwind optnone
>> define signext i16 @my_func() #0 {
>> entry:
>> ret i16 127
>> }
>>
>> ------- debug output --------
>>
>> Optimized legalized selection DAG: BB#0 'my_func:entry'
>>...
2017 Nov 05
2
What pattern string corresponds to CopyToReg?
So there's a DAG that looks like this in the debug output:
Selecting: t3: ch,glue = CopyToReg t0, Register:i16 %R5, Constant:i16<127>
In the instruction selection phase, what pattern would that match? I've
constructed this so far:
(??? REG16:$dst, i16imm:$src)
but the problem is, I can't determine what to use as ???. There is an
ISD::CopyToReg enum value, but I don't