Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions llvm/include/llvm/IR/Attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ class Attribute {
MemoryEffects ME);
LLVM_ABI static Attribute getWithNoFPClass(LLVMContext &Context,
FPClassTest Mask);
LLVM_ABI static Attribute getWithDeadOnReturnInfo(LLVMContext &Context,
DeadOnReturnInfo DI);
LLVM_ABI static Attribute getWithCaptureInfo(LLVMContext &Context,
CaptureInfo CI);

Expand Down
5 changes: 5 additions & 0 deletions llvm/lib/IR/Attributes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,11 @@ Attribute Attribute::getWithNoFPClass(LLVMContext &Context,
return get(Context, NoFPClass, ClassMask);
}

Attribute Attribute::getWithDeadOnReturnInfo(LLVMContext &Context,
DeadOnReturnInfo DI) {
return get(Context, DeadOnReturn, DI.toIntValue());
}

Attribute Attribute::getWithCaptureInfo(LLVMContext &Context, CaptureInfo CI) {
return get(Context, Captures, CI.toIntValue());
}
Expand Down
Loading