Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

指令编号错误 #45

Answered by Yorkking
junshen1 asked this question in Q&A
May 21, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

LLVM IR 要求虚拟寄存器的编号必须递增命名,并且匿名基本块也会占用一个编号。你可以检查一下你这条 ir 之前是否存在创建过匿名基本块的情况:比如一个基本块已经有终止指令了(br, ret 之类),后面的指令如果没有安排在一个显式声明的基本块中,就好自动创建一个匿名基本块,也占用一个编号。

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Yorkking
Comment options

Answer selected by junshen1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants