diff options
author | ZhaoQi <zhaoqi01@loongson.cn> | 2023-11-10 15:54:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-10 15:54:33 +0800 |
commit | f7d784709673ca185f6fb0633fd53c72e81f2ae1 (patch) | |
tree | eedc4a41f5fa0656cd186f7004265100c3a48738 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | fe8c649d01a6fae02b0b2836a7d847a10631d7d9 (diff) | |
download | llvm-f7d784709673ca185f6fb0633fd53c72e81f2ae1.zip llvm-f7d784709673ca185f6fb0633fd53c72e81f2ae1.tar.gz llvm-f7d784709673ca185f6fb0633fd53c72e81f2ae1.tar.bz2 |
[LoongArch][MC] Refine MCInstrAnalysis based on registers used (#71276)
MCInstrAnalysis can return properties of instructions (e.g., isCall(),
isBranch(),...) based on the informations that MCInstrDesc can get from
*InstrInfo*.td files. These infos are based on opcodes only, but JIRL
can have different properties based on different registers used.
So this patch refines several MCInstrAnalysis methods: isTerminator,
isCall,isReturn,isBranch,isUnconditionalBranch and isIndirectBranch.
This patch also allows BOLT which will be supported on LoongArch later
to get right instruction infos.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions