Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
7872ad07
Commit
7872ad07
authored
Apr 12, 2011
by
Matthias Braun
Browse files
add notes about const/pure properties and inifite loops
parent
f0570c58
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/libfirm/firm_types.h
View file @
7872ad07
...
...
@@ -179,10 +179,17 @@ typedef enum mtp_additional_properties {
mtp_no_property
=
0x00000000
,
/**< no additional properties, default */
mtp_property_const
=
0x00000001
,
/**< This method did not access memory and calculates
its return values solely from its parameters.
The only observable effect of a const function must be its
return value. So they must not exhibit infinite loops or wait
for user input. The return value must not depend on any
global variables/state.
GCC: __attribute__((const)). */
mtp_property_pure
=
0x00000002
,
/**< This method did NOT write to memory and calculates
its return values solely from its parameters and
the memory they points to (or global vars).
The only observable effect of a const function must be its
return value. So they must not exhibit infinite loops or wait
for user input.
GCC: __attribute__((pure)). */
mtp_property_noreturn
=
0x00000004
,
/**< This method did not return due to an aborting system
call.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment