rust/compiler/rustc_codegen_llvm/src
Nikita Popov d226e7aa93 Use standard attribute logic for allocator shim
Use llfn_attrs_from_instance() to generate the attributes for the
allocator shim. This ensures that we generate all the usual
attributes (and don't get to find out one-by-one that a certain
attribute is important for a certain target). Additionally this
will enable emitting the allocator-specific attributes (not
included here).

This change is quite awkward because the allocator shim uses
SimpleCx, while llfn_attrs_from_instance uses CodegenCx. I've
switched it to use SimpleCx plus tcx/sess arguments where necessary.
If there's a simpler way to do this, I'd love to know about it...
2025-09-25 10:04:40 +02:00
..
back Add self-profile events for target-machine creation 2025-09-21 21:37:15 +10:00
builder Auto merge of #142544 - Sa4dUs:prevent-abi-changes, r=ZuseZ4 2025-09-18 07:32:49 +00:00
coverageinfo coverage: Remove all unstable support for MC/DC instrumentation 2025-08-06 22:38:52 +10:00
debuginfo Use LLVMDIBuilderCreateTypedef 2025-09-17 22:32:22 +10:00
llvm emit attribute for readonly non-pure inline assembly 2025-09-21 21:16:06 +02:00
abi.rs Use standard attribute logic for allocator shim 2025-09-25 10:04:40 +02:00
allocator.rs Use standard attribute logic for allocator shim 2025-09-25 10:04:40 +02:00
asm.rs Rollup merge of #146831 - taiki-e:powerpc-clobber, r=Amanieu 2025-09-22 20:25:14 +10:00
attributes.rs Use standard attribute logic for allocator shim 2025-09-25 10:04:40 +02:00
base.rs Use standard attribute logic for allocator shim 2025-09-25 10:04:40 +02:00
builder.rs Use standard attribute logic for allocator shim 2025-09-25 10:04:40 +02:00
callee.rs remove rustc_attr_data_structures 2025-07-31 14:19:27 +02:00
common.rs initial implementation of the darwin_objc unstable feature 2025-09-13 16:06:22 -07:00
consts.rs initial implementation of the darwin_objc unstable feature 2025-09-13 16:06:22 -07:00
context.rs Use standard attribute logic for allocator shim 2025-09-25 10:04:40 +02:00
declare.rs Use standard attribute logic for allocator shim 2025-09-25 10:04:40 +02:00
errors.rs Use the object crate rather than LLVM for extracting bitcode sections 2025-07-25 11:21:28 +00:00
intrinsic.rs Add panic=immediate-abort 2025-09-21 13:12:18 -04:00
lib.rs generate list of all variants with target_spec_enum 2025-09-19 22:14:50 +00:00
llvm_util.rs Add panic=immediate-abort 2025-09-21 13:12:18 -04:00
mono_item.rs Replace the llvm::Bool typedef with a proper newtype 2025-08-24 23:09:54 +10:00
type_.rs Rename llvm::Bool aliases to standard const case 2025-08-24 23:09:54 +10:00
type_of.rs Auto merge of #145717 - BoxyUwU:erase_regions_rename, r=lcnr 2025-09-09 15:04:44 +00:00
va_arg.rs implement va_arg for arm in rustc itself 2025-09-08 13:46:28 +02:00
value.rs Add warn(unreachable_pub) to rustc_codegen_llvm. 2024-08-16 08:46:57 +10:00