This is an archive of the discontinued LLVM Phabricator instance.

[AArch64-instr-info] Define a DEBUG_TYPE for AArch64-instr-info.
AbandonedPublic

Authored by mingmingl on May 4 2022, 11:23 AM.

Details

Summary

In this way, we could use llc -debug-only=aarch64-instr-info <file.ll> to see the LLVM_DEBUG logs.

Diff Detail

Event Timeline

mingmingl created this revision.May 4 2022, 11:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2022, 11:23 AM
mingmingl requested review of this revision.May 4 2022, 11:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2022, 11:23 AM

Do you plan to add LLVM_DEBUG statements? If so it probably makes sense to add the DEBUG_TYPE when they are added. As far as I understand, it doesn't do much on it's own :)

Do you plan to add LLVM_DEBUG statements? If so it probably makes sense to add the DEBUG_TYPE when they are added. As far as I understand, it doesn't do much on it's own :)

Ah this is a good point.

I had a command like llc -O3 -march=aarch64 -debug -debug-only=isel,aarch64-isel,selectiondag,legalizedag,<aarch64-instr-info-to-be-added> to dump the logs that are related, but I didn't realize this cpp doesn't have LLVM_DEBUG at this point. Makes sense to add DEBUT_TYPE until there are LLVM_DEBUG statements needed.

Will abandon this.

mingmingl abandoned this revision.May 4 2022, 12:32 PM