Skip to content

Commit c5f9f3e

Browse files
committed
Move bitfields into the IR
This commit moves bitfields and the computation of their allocation units into the IR. They were previously computed on-the-fly during code generation. In addition to breaking up and compartmentalizaing a portion of the gargantuan `CodeGeneration` implementation for `CompInfo`, this paves the way for adding const-fn bitfield unit constructors.
1 parent 228e648 commit c5f9f3e

21 files changed

+1561
-951
lines changed

Cargo.lock

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ cexpr = "0.2"
4646
cfg-if = "0.1.0"
4747
clang-sys = { version = "0.17.0", features = ["runtime", "clang_3_9"] }
4848
lazy_static = "0.2.1"
49+
peeking_take_while = "0.1.2"
4950
syntex_syntax = "0.58"
5051
regex = "0.2"
5152
# This kinda sucks: https://github.com/rust-lang/cargo/issues/1982

0 commit comments

Comments
 (0)