Skip to content

Fully parameterize default kinds of intrinsic types #213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 16, 2018
Merged

Fully parameterize default kinds of intrinsic types #213

merged 4 commits into from
Oct 16, 2018

Conversation

klausler
Copy link
Collaborator

Eliminates old definitions of DefaultInteger in type.h. Creates a new object to hold default kinds of intrinsic types and uses it everywhere. Adds options to the development driver program to tweak those defaults. Renames dft-like names in intrinsics.cc to better names that have been made available. Changes intrinsic function result types to accommodate large arrays even when default INTEGER is small.

Also document that T and F are not supported as extensions.

} else if (arg == "-r8" || arg == "-fdefault-real-8") {
defaultKinds.set_defaultRealKind(8);
} else if (arg == "-i8" || arg == "-fdefault-integer-8") {
defaultKinds.set_defaultIntegerKind(8);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to allow the default real and integer kind to be set independently? Default integer and default real are both supposed to occupy "a single numeric storage unit" so changing one but not the other would violate that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way that these options kind of make sense, at least to me, in those circumstances, is by viewing the expanded default type as occupying two numeric storage units.

@klausler klausler merged commit f9da6f1 into master Oct 16, 2018
@klausler klausler deleted the pmk1 branch October 16, 2018 22:32
mem-frob pushed a commit to draperlaboratory/hope-llvm-project that referenced this pull request Oct 7, 2022
mem-frob pushed a commit to draperlaboratory/hope-llvm-project that referenced this pull request Oct 7, 2022
mem-frob pushed a commit to draperlaboratory/hope-llvm-project that referenced this pull request Oct 7, 2022
Original-commit: flang-compiler/f18@1760b9c
Reviewed-on: flang-compiler/f18#213
Tree-same-pre-rewrite: false
mem-frob pushed a commit to draperlaboratory/hope-llvm-project that referenced this pull request Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants