The kalimba architecture currently has 3 important variants. I need to add support to recognise those variants into lldb. This patch adds the required variants as SubArchs and provides the relevant mappings when parsing the architecture part of a Triple string.
Details
Diff Detail
Event Timeline
Inline comment.
lib/Support/Triple.cpp | ||
---|---|---|
250 | Do you have a lot of things that begin with kalimba? |
"Do you have a lot of things that begin with kalimba?"
We currently have 3 such things: kalimba3, kalimba4 and kalimba5, where those strings are embedded at the front of the triple string passed back over gdb-remote to lldb. E.g. "kalimba4-csr-unknown". The number being reflective of the architecture revision of the kalimba processor.
I had originally chosen the ".Cases" construct to parse my string, however I subsequently changed this to ".StartsWith" to reduce verbosity. Both the ways achieved my goal at the time, so I don't really mind which is used by parseArch.
OK then. Normally I'd suggest we keep it simple and parse each of them separately, but if you expect to have a lot of architectures such that you are going to need to do this for each then go ahead. Otherwise grab each separately. Either way the patch is OK.
-eric
Eric Christopher wrote:
OK then. Normally I'd suggest we keep it simple and parse each of them separately, but if you expect to have a lot of architectures such that you are going to need to do this for each then go ahead. Otherwise grab each separately. Either way the patch is OK.
-eric
To report this email as spam click https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ== .
Thanks Eric
I've rebased my original diff against the trunk and submitted it.
Matt
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Keep up to date with CSR on our technical blog, www.csr.com/blog, CSR people blog, www.csr.com/people, YouTube, www.youtube.com/user/CSRplc, Facebook, www.facebook.com/pages/CSR/191038434253534, or follow us on Twitter at www.twitter.com/CSR_plc.
New for 2014, you can now access the wide range of products powered by aptX at www.aptx.com.
Do you have a lot of things that begin with kalimba?