History log of /llvm-project/llvm/unittests/Target/LoongArch/MCInstrAnalysisTest.cpp (Results 1 – 3 of 3)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: llvmorg-18.1.8, llvmorg-18.1.7, llvmorg-18.1.6, llvmorg-18.1.5, llvmorg-18.1.4, llvmorg-18.1.3, llvmorg-18.1.2, llvmorg-18.1.1, llvmorg-18.1.0, llvmorg-18.1.0-rc4, llvmorg-18.1.0-rc3, llvmorg-18.1.0-rc2, llvmorg-18.1.0-rc1, llvmorg-19-init, llvmorg-17.0.6
# 42a4d5e8 16-Nov-2023 ZhaoQi <zhaoqi01@loongson.cn>

[LoongArch] Set isBarrier to true for instruction 'b' (#72339)

Instr "b offs26" represent to an unconditional branch in LoongArch. Set
isBarrier to 1 in tablegen for it, so that MCInstrAnalysis can

[LoongArch] Set isBarrier to true for instruction 'b' (#72339)

Instr "b offs26" represent to an unconditional branch in LoongArch. Set
isBarrier to 1 in tablegen for it, so that MCInstrAnalysis can return
correctly.

Fixes https://github.com/llvm/llvm-project/pull/71903.

show more ...


# f6c4bb07 15-Nov-2023 ZhaoQi <zhaoqi01@loongson.cn>

[LoongArch][NFC] Pre-commit MCInstrAnalysis tests for instruction 'b' (#71903)

The tests for 'b' which commented with FIXME are incorrect, the
following patch will fix it.


Revision tags: llvmorg-17.0.5
# f7d78470 10-Nov-2023 ZhaoQi <zhaoqi01@loongson.cn>

[LoongArch][MC] Refine MCInstrAnalysis based on registers used (#71276)

MCInstrAnalysis can return properties of instructions (e.g., isCall(),
isBranch(),...) based on the informations that MCInstr

[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.

show more ...