Add basic inline asm support for x86_64

This commit is contained in:
bjorn3 2020-07-10 14:45:45 +02:00
parent 35701d8caa
commit 726e329f46
6 changed files with 243 additions and 15 deletions

View file

@ -254,6 +254,7 @@ pub(crate) struct FunctionCx<'clif, 'tcx, B: Backend + 'static> {
// FIXME use a reference to `CodegenCx` instead of `tcx`, `module` and `constants` and `caches`
pub(crate) tcx: TyCtxt<'tcx>,
pub(crate) module: &'clif mut Module<B>,
pub(crate) global_asm: &'clif mut String,
pub(crate) pointer_type: Type, // Cached from module
pub(crate) instance: Instance<'tcx>,