diff options
author | Valentin Clement <clementval@gmail.com> | 2022-11-18 21:16:50 +0100 |
---|---|---|
committer | Valentin Clement <clementval@gmail.com> | 2022-11-18 21:17:15 +0100 |
commit | 8dfd883531bf27163aa429daeb9691219875db1c (patch) | |
tree | 8ae415f4b524733dd21cb1229051693f21d40d48 /lldb/source/Plugins/ScriptInterpreter/Python | |
parent | 29016d2830d455cdf34a5cdf7ed63f3c3b93d9a3 (diff) | |
download | llvm-8dfd883531bf27163aa429daeb9691219875db1c.zip llvm-8dfd883531bf27163aa429daeb9691219875db1c.tar.gz llvm-8dfd883531bf27163aa429daeb9691219875db1c.tar.bz2 |
[flang] Add ClassIs runtime function
Add a `ClassIs` function that takes a descriptor and a
type desc to implement the check needed by the CLASS IS type guard
in SELECT TYPE construct.
Since the kind type parameter are directly folded in the type itself
in Flang and the type descriptor is a global, the function just check
if the type descriptor address of the descriptor is equivalent to
the type descriptor address of the global. If not, it check in the
parents of the descriptor's type descriptor.
Reviewed By: jeanPerier
Differential Revision: https://reviews.llvm.org/D138279
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions