about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-14 11:09:58 +0100
committerGitHub <noreply@github.com>2024-03-14 11:09:58 +0100
commitbd53d1eee30af57593460a88831bd6f991da6d64 (patch)
tree011680ff513d0083c15d14215155331c6695e32b /compiler/rustc_codegen_llvm/src
parent7a744af83e8ae17444dd040093ceb5f7e97bf170 (diff)
parent893a9107b9f8b2038d77648a2ca4b06f36d3009d (diff)
downloadrust-bd53d1eee30af57593460a88831bd6f991da6d64.tar.gz
rust-bd53d1eee30af57593460a88831bd6f991da6d64.zip
Rollup merge of #122405 - celinval:smir-new-const, r=oli-obk
Add methods to create StableMIR constant

I've been experimenting with transforming the StableMIR to instrument the code with potential UB checks.

The modified body will only be used by our analysis tool, however, constants in StableMIR must be backed by rustc constants. Thus, I'm adding a few functions to build constants, such as building string and other primitives.

One question I have is whether we should create a global allocation instead for strings.

r? ``````@oli-obk``````
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions