[LLVMdev] C embedded extensions and LLVM
christopher.lamb at gmail.com
Sat Nov 10 23:07:05 PST 2007
I've been playing around with clang/LLVM looking at adding partial
support for the draft technical report for embedded C extensions
specifically named address spaces.
Named address spaces need to be tracked in LLVM in essentially all
the same places that alignment is tracked, which necessitates adding
the information to the .bc format. Given the Apple has shipped .bc
files I'm guessing that backwards compatibility is very important.
Given this and the work I see happening on using the newish serialize/
deserialize infrastructure what is the pattern for extending the .bc
format in a backwards compatible way? Is it safe to add records to
the writer for an instruction and predicate parts of the reader based
on the number of records present so that old .bc files with fewer
records for that entry should still be able to be read?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev