<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>Hello,</DIV>
<DIV>My target has two data memories, each with its own load/store instructions 
but also has some instructions using both memories. I want to be able to access 
both memories in C-programs through the address space attribute.</DIV>
<DIV>I have two ideas so far:</DIV>
<DIV>Either: use two sets of addressing modes in InstrInfo.td:</DIV>
<DIV><FONT size=2>def ADDRrr_A : ComplexPattern<i16, 2, â€œSelectADDRrr_A", [], 
[]>;</FONT></DIV>
<DIV><FONT size=2>def ADDRri : ComplexPattern<i16, 2, "SelectADDRri", 
[frameindex], []>;</FONT></DIV>
<DIV>and</DIV>
<DIV><FONT size=2>def ADDRrr_B : ComplexPattern<i16, 2, "SelectADDRrr_B", [], 
[]>;</FONT></DIV>
<DIV> </DIV>
<DIV>Or: do something in one of the lowering functions to catch load and stores, 
look at their address space attribute to pick the right assembly 
instruction</DIV>
<DIV> </DIV>
<DIV>Can someone hint me on how this can be implemented? Any input would be 
greatly appreciated. </DIV>
<DIV> </DIV>
<DIV>best</DIV>
<DIV>-Magnus</DIV>
<DIV> </DIV></DIV></DIV></BODY></HTML>