[cfe-dev] Target Definition for MicroBlaze
    Chris Lattner 
    clattner at apple.com
       
    Fri Feb 26 16:10:39 PST 2010
    
    
  
On Feb 26, 2010, at 3:58 PM, Jakob Stoklund Olesen wrote:
>>> I am a little bit confused about what you are asking here. Do you mean that I shouldn't use MBlazeIntrinsicInfo at all or that I should move its use to inside of the class MBlazeTargetInfo (inside of lib/Basic/Targets.cpp)?
>> 
>> I'm saying that it shouldn't *directly* use MBlazeIntrinsicInfo at all: Given a TargetMachine object (which will your MBlaze TargetMachine), clang should call the TM.getIntrinsicInfo() method, which will return the existing MBlazeIntrinsicInfo object without clang having to know about mblaze directly.
> 
> So probably getIntrinsicForGCCBuiltin() needs to be added to TargetIntrinsicInfo? It doesn't currently exist.
Ah, quite likely!
-Chris
    
    
More information about the cfe-dev
mailing list