{"id":14991153,"url":"https://github.com/cr0a3/codegenlib","last_synced_at":"2025-08-19T09:02:39.699Z","repository":{"id":229343004,"uuid":"776366087","full_name":"Cr0a3/CodeGenLib","owner":"Cr0a3","description":"A x86-64Bit code generator (like LLVM)","archived":false,"fork":false,"pushed_at":"2024-05-08T18:30:45.000Z","size":482,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T12:53:22.985Z","etag":null,"topics":["code-generation","codegen","llvm","rust","x86-64"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cr0a3.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-23T09:58:14.000Z","updated_at":"2025-03-21T08:48:24.000Z","dependencies_parsed_at":"2024-03-27T19:49:22.335Z","dependency_job_id":"d29ece88-f7ce-4a2b-9536-7b3ed7bf1fd9","html_url":"https://github.com/Cr0a3/CodeGenLib","commit_stats":null,"previous_names":["toni-graphics/codegenlib","cr0a3/codegenlib"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cr0a3%2FCodeGenLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cr0a3%2FCodeGenLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cr0a3%2FCodeGenLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cr0a3%2FCodeGenLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cr0a3","download_url":"https://codeload.github.com/Cr0a3/CodeGenLib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248511294,"owners_count":21116384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-generation","codegen","llvm","rust","x86-64"],"created_at":"2024-09-24T14:21:36.183Z","updated_at":"2025-04-12T03:25:47.515Z","avatar_url":"https://github.com/Cr0a3.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://github.com/Toni-Graphics/CodeGenLib/assets/127748753/a8e95f8b-2382-481c-b11a-29065e1f0e73\"\u003e\n\nA libary to generate x86-64Bit machine code\n\n\u003e **Warning:** this libary is currently undergoing big changes so don't use in production\n\n## Example\n```rust\nuse CodeGenLib::prelude::*;\n\n#[rustfmt::skip]\npub fn main() -\u003e Result\u003c(), Box\u003cdyn std::error::Error\u003e\u003e {\n    let mut builder = IrBuilder::new(Target::host());\n\n    let add = builder.add(\"add\");\n    add.args(vec![\n        (\"x\", Type::u64(0) ),\n        (\"y\", Type::u64(0) ),\n    ]);\n\n    add.vars(vec![\n        (\"z\", Type::u64(0) ),\n    ]);\n\n    add.build_add(\"x\", \"y\", \"z\")?;\n    add.build_return_var(\"z\")?;\n\n    add.set_public();\n\n    builder.write(\"tmp/ir.o\")?;\n\n    Ok(())\n}\n```\n\n## Documentation\n[ToDo]\n\n## Copyright\nCopyright (C) 2024 Cr0a3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcr0a3%2Fcodegenlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcr0a3%2Fcodegenlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcr0a3%2Fcodegenlib/lists"}