Ruiling Song via llvm-dev
2016-Oct-28 13:39 UTC
[llvm-dev] 128bit binary instruction format?
Hi, The ISA I am working on is always encoded in 128bit binary format. I find that getBinaryCodeForInst() only return at most 64bit Encoding. So, I think the proper way to encode the instructions is to write the XXXMCCodeEmitter by myself instead of automatic generation. right? Is there any guideline/suggestion on how to write the XXXMCCodeEmitter using current LLVM infrastructure? I want to use the existing classes/functions in backend infrastructure as much as I can. Thanks! Ruiling -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161028/51bc2db4/attachment.html>
Friedman, Eli via llvm-dev
2016-Oct-28 17:27 UTC
[llvm-dev] 128bit binary instruction format?
On 10/28/2016 6:39 AM, Ruiling Song via llvm-dev wrote:> Hi, > > The ISA I am working on is always encoded in 128bit binary format. I > find that getBinaryCodeForInst() only return at most 64bit Encoding. > So, I think the proper way to encode the instructions is to write the > XXXMCCodeEmitter by myself instead of automatic generation. right? > > Is there any guideline/suggestion on how to write the XXXMCCodeEmitter > using current LLVM infrastructure? I want to use the existing > classes/functions in backend infrastructure as much as I can.If you want an example of a backend that doesn't use getBinaryCodeForInst(), you can look at the x86 backend. That said, the right approach probably depends on what exactly you mean by 128bit binary format... -Eli -- Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Possibly Parallel Threads
- Possible bug of Alias Analysis?
- Assign different RegClasses to a virtual register based on 'uniform' attribute?
- Assign different RegClasses to a virtual register based on 'uniform' attribute?
- Possible bug of Alias Analysis?
- Assign different RegClasses to a virtual register based on 'uniform' attribute?