Skip to content

Commit 5a820f2

Browse files
committed
Add new attribute cases to constructFunction()
1 parent 327084a commit 5a820f2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

llvm/lib/Transforms/Utils/CodeExtractor.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,11 @@ Function *CodeExtractor::constructFunction(const ValueSet &inputs,
925925
case Attribute::Memory:
926926
case Attribute::NoFPClass:
927927
case Attribute::CoroDestroyOnlyWhenComplete:
928+
case Attribute::HasCXXSEH:
929+
case Attribute::HasSEH:
930+
case Attribute::IsSEHFilterFunction:
931+
case Attribute::IsSEHFinallyFunction:
932+
case Attribute::Marker:
928933
continue;
929934
// Those attributes should be safe to propagate to the extracted function.
930935
case Attribute::AlwaysInline:
@@ -968,6 +973,10 @@ Function *CodeExtractor::constructFunction(const ValueSet &inputs,
968973
case Attribute::MustProgress:
969974
case Attribute::NoProfile:
970975
case Attribute::SkipProfile:
976+
case Attribute::DisableBlockPlacementPass:
977+
case Attribute::DisableCodeGenPreparePass:
978+
case Attribute::IsFastISelDisabled:
979+
case Attribute::IsVolatileFunction:
971980
break;
972981
// These attributes cannot be applied to functions.
973982
case Attribute::Alignment:

0 commit comments

Comments
 (0)