This is an archive of the discontinued LLVM Phabricator instance.

Add MCNoDeprecatedASM into MC ASMParser TargetOption to have an option to disable deprecate warning in asm
ClosedPublic

Authored by yinma on Nov 29 2016, 11:03 AM.

Details

Summary

Currently there is no way to disable deprecated warning from asm like this

clang -target arm qc-deprecated-asm.s -c
qc-deprecated-asm.s:30:9: warning: use of SP or PC in the list is deprecated

stmia   r4!, {r12-r14}

We have to have an option what can disable it.

Diff Detail

Repository
rL LLVM

Event Timeline

yinma updated this revision to Diff 79607.Nov 29 2016, 11:03 AM
yinma retitled this revision from to Add MCNoDeprecatedASM into MC ASMParser TargetOption to have an option to disable deprecate warning in asm.
yinma updated this object.
yinma added a subscriber: llvm-commits.
echristo accepted this revision.Nov 30 2016, 3:33 PM
echristo edited edge metadata.

*sigh* I don't like this model, but it's what we've got.

LGTM.

-eric

This revision is now accepted and ready to land.Nov 30 2016, 3:33 PM
weimingz edited edge metadata.Dec 3 2016, 10:22 PM

can you rename qc-deprecated-asm.s to something like derecated-warning.s

yinma updated this revision to Diff 80338.Dec 5 2016, 3:19 PM
yinma edited edge metadata.

rename unit test case from qc-deprecated-asm.s to deprecated-asm.s

echristo added inline comments.Dec 5 2016, 3:46 PM
utils/TableGen/AsmMatcherEmitter.cpp
3202 ↗(On Diff #80338)

Why the check for target parser here?

This revision was automatically updated to reflect the committed changes.
echristo added inline comments.Dec 5 2016, 5:21 PM
llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
3202

What's with the TargetParser check here?

kongyi added a subscriber: kongyi.Nov 2 2021, 2:37 AM
kongyi added inline comments.
llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
3202

This is not a check (see the trailing ".")

The format is quite confusing, fixing it in https://reviews.llvm.org/D112993.

Herald added a project: Restricted Project. · View Herald TranscriptNov 2 2021, 2:37 AM