aboutsummaryrefslogtreecommitdiff
path: root/src/arch/x86_64/CodeGen.zig
AgeCommit message (Collapse)Author
2023-03-11x86_64: handle all instructions without introducing Memory operandJakub Konka
2023-03-11x86_64: add helper for Jcc instructionJakub Konka
2023-03-11x86_64: add helpers for CMOVcc and SETcc at the MIR levelJakub Konka
2023-03-11x86_64: handle encoding and decoding Imm64 unsignedJakub Konka
2023-03-11x86_64: split up assemble() into more declarative single-purpose helpersJakub Konka
2023-03-11x86_64: introduce assemble() helper which encodes/decodes into MIR -> ↵Jakub Konka
Instruction
2023-03-11x86_64: all behavior tests passingJakub Konka
2023-03-11Get more things passingJakub Konka
2023-03-11x86_64: clean up call semantics in codegenJakub Konka
2023-03-11x86_64: truncate immediatesJakub Konka
2023-03-11x86_64: downstream table-driven instruction encoderJakub Konka
2023-03-04Merge pull request #14782 from r00ster91/trapAndrew Kelley
add `@trap` builtin
2023-03-04add @trap builtinr00ster91
This introduces a new builtin function that compiles down to something that results in an illegal instruction exception/interrupt. It can be used to exit a program abnormally. This implements the builtin for all backends.
2023-03-03arm: use common implementation of genTypedValue helperJakub Konka
2023-03-03codegen: move gen logic for typed values, consts and decl ref to common codegenJakub Konka
2023-02-27codegen: fix test failuresJacob Young
Various backend were mismatching arg instructions and function args.
2023-02-20x86: alloc new mcv in bitcast if cannot reuse operandJakub Konka
Implement missing pointees when ptr is in register.
2023-02-18update std lib and compiler sources to new for loop syntaxAndrew Kelley
2023-02-01link: decouple DI atoms from linker atoms, and manage them in Dwarf linkerJakub Konka
2023-02-01link: make Plan9 atoms fully owned by the linkerJakub Konka
2023-01-31link: make Coff atoms fully owned by the linkerJakub Konka
2023-01-31link: make Elf atoms fully owned by the linkerJakub Konka
2023-01-31link: make MachO atoms fully owned by the linkerJakub Konka
2023-01-26coff: migrate to new non-allocateDeclIndexes APIJakub Konka
2023-01-26elf: migrate to new non-allocateDeclIndexes APIJakub Konka
2023-01-26self-hosted: clean up calling logic for x86_64 and aarch64 across linkersJakub Konka
2023-01-26macho: completely remove allocateDeclIndexes in favor of linker trackingJakub Konka
2023-01-25self-hosted: rename codegen Result.appended to Result.okJakub Konka
2023-01-25self-hosted: remove unused `externally_managed` prong for Decls codeJakub Konka
2022-12-30fix generic function arg debug info referencing wrong parameterVeikka Tuominen
Closes #14123
2022-12-18Merge pull request #13914 from Vexu/variadicAndrew Kelley
implement defining C variadic functions
2022-12-17std.builtin: rename Type.UnionField and Type.StructField's field_type to typer00ster91
2022-12-17implement defining C variadic functionsVeikka Tuominen
2022-12-15port packed vector elem ptr logic from stage1Veikka Tuominen
Closes #12812 Closes #13925
2022-12-13remove `stack` option from `@call`Veikka Tuominen
2022-12-09Eliminate `BoundFn` type from the languageVeikka Tuominen
Closes #9484
2022-12-03Merge pull request #13744 from Vexu/stage2-fixesAndrew Kelley
Improve error messages, fix dependency loops
2022-12-03Sema: fix comparisons between lazy and runtime valuesVeikka Tuominen
Closes #12498
2022-12-02dwarf: pass linker Tag and owner Decl.Index instead of *AtomJakub Konka
2022-12-02x86: do not deref ptr type, let Dwart do itJakub Konka
2022-12-02dwarf: use common DI union object for arg and var genJakub Konka
2022-12-01dwarf: fix typos after refactoring dbi genJakub Konka
2022-12-01codegen: make LinkerLoad a common struct shared by backendsJakub Konka
2022-12-01dwarf: extract common logic for generating func var dbg infoJakub Konka
2022-12-01dwarf: update arm and riscv codegens to the new modelJakub Konka
2022-12-01dwarf: extract common logic for generating func arg dbg infoJakub Konka
2022-11-29std.mem.Allocator: allow shrink to failAndrew Kelley
closes #13535
2022-11-18run zig fmt on everything checked by CIStevie Hryciw
2022-11-09x86_64: add DWARF encoding for vector registersJakub Konka
Clean up how we handle emitting of DWARF debug info for `x86_64` codegen.
2022-10-29Merge pull request #13082 from g-w1/unnamed-decls-and-relocs-p9Andrew Kelley
Plan9: Fix The Backend