[flang] Add IntrinsicProcTable::IsSpecificIntrinsicFunction
authorTim Keith <tkeith@nvidia.com>
Mon, 6 Jan 2020 23:56:32 +0000 (15:56 -0800)
committerTim Keith <tkeith@nvidia.com>
Tue, 14 Jan 2020 21:02:56 +0000 (13:02 -0800)
commita5db74b614db7fbb47ea13f1cd1095cad6f8ef89
tree589d4b6692af2eb451549b2ea1ac9ec9cae04965
parent355ab9bb82591dfebebfb2cb13bae113923b9189
[flang] Add IntrinsicProcTable::IsSpecificIntrinsicFunction

This replaces IsUnrestrictedSpecificIntrinsicFunction and returns
information that allows the caller to distinguish between restricted
and unrestricted intrinsics.

The new case in `resolve46.f90` used to get an internal error.

Original-commit: flang-compiler/f18@4cb1ee10b90bbc5e3c4899ab136fad4d1e841195
Reviewed-on: https://github.com/flang-compiler/f18/pull/928
Tree-same-pre-rewrite: false
flang/lib/evaluate/characteristics.cc
flang/lib/evaluate/intrinsics.cc
flang/lib/evaluate/intrinsics.h
flang/lib/semantics/expression.cc
flang/lib/semantics/resolve-names.cc
flang/test/semantics/resolve46.f90