This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Enhance classof() checks in StructsGen
ClosedPublic

Authored by antiagainst on Jan 3 2020, 8:34 AM.

Details

Summary

Previously we only check that each field is of the correct
mlir::Attribute subclass. This commit enhances to also consider
the attribute's types, by leveraging the constraints already
encoded in TableGen attribute definitions.

Diff Detail

Event Timeline

antiagainst created this revision.Jan 3 2020, 8:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 3 2020, 8:34 AM

Unit tests: fail. 61177 tests passed, 3 failed and 729 were skipped.

failed: libc++.std/thread/thread_mutex/thread_mutex_requirements/thread_mutex_requirements_mutex/thread_mutex_class/try_lock.pass.cpp
failed: libc++.std/thread/thread_mutex/thread_mutex_requirements/thread_mutex_requirements_mutex/thread_mutex_recursive/lock.pass.cpp
failed: libc++.std/thread/thread_mutex/thread_mutex_requirements/thread_mutex_requirements_mutex/thread_mutex_recursive/try_lock.pass.cpp

clang-tidy: fail. Please fix clang-tidy findings.

clang-format: pass.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

rsuderman accepted this revision.Jan 3 2020, 11:02 AM

Looks good to me.

This revision is now accepted and ready to land.Jan 3 2020, 11:02 AM
This revision was automatically updated to reflect the committed changes.