This is an archive of the discontinued LLVM Phabricator instance.

[APInt.h] Reduce the APInt header file interface a bit. NFC
AbandonedPublic

Authored by lattner on Sep 8 2021, 4:51 PM.

Details

Reviewers
None
Summary

This moves one mid-size function out of line, inlines the
trivial tcAnd/tcOr/tcXor/tcComplement methods into their only
caller, and moves the magic/umagic functions into SelectionDAG
since they are implementation details of its algorithm. This
also removes the unit tests for magic, but these are already
tested in the divide lowering logic for various targets.

Diff Detail

Event Timeline

lattner created this revision.Sep 8 2021, 4:51 PM
lattner requested review of this revision.Sep 8 2021, 4:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 8 2021, 4:51 PM

Looks like clang-format is overly excited. I will revise the diff.

lattner abandoned this revision.Sep 8 2021, 5:06 PM

Abandoning this, will recreate without all the noise.