-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
… tests.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -208,7 +208,10 @@ def is_header_line(line: str) -> bool: | |
|
||
def is_entry_point(function: ValueRef) -> bool: | ||
assert function.is_function | ||
return any(b'"EntryPoint"' in attrs for attrs in function.attributes) | ||
return any( | ||
b'"EntryPoint"' in attrs or b'"InteropFriendly"' in attrs | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
cqc-alec
Author
Collaborator
|
||
for attrs in function.attributes | ||
) | ||
|
||
|
||
def apply_qirpass( | ||
|
I'm not sure I'd allow InterOpFriendly as a valid attribute. Although I know I sent some examples with InteropFriendly, any tests you want me to fix that use InteropFriendly can be fixed. EntryPoint is the expected attribute, and if some QIR file got submitted to us with both an EntryPoint function and InteropFriendly function, then that would be an issue.