[llvm] 5baf351 - [BPF] Do not allow gotol in the middle of asm insn (#144545)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 17 09:51:43 PDT 2025


Author: yonghong-song
Date: 2025-06-17T09:51:40-07:00
New Revision: 5baf351ba819e1e6bae0250492e85a2862ef406b

URL: https://github.com/llvm/llvm-project/commit/5baf351ba819e1e6bae0250492e85a2862ef406b
DIFF: https://github.com/llvm/llvm-project/commit/5baf351ba819e1e6bae0250492e85a2862ef406b.diff

LOG: [BPF] Do not allow gotol in the middle of asm insn (#144545)

Previously I accidentally allowed 'gotol' insn in the middle of asm insn
([1]). But actually 'gotol' is not allowed in the middle of any asm
insn, so remove it from isValidIdInMiddle().

[1] https://github.com/yonghong-song/llvm-project/commit/6c412b6c6faa2dabd8602d35d3f5e796fb1daf80

Added: 
    

Modified: 
    llvm/lib/Target/BPF/AsmParser/BPFAsmParser.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/BPF/AsmParser/BPFAsmParser.cpp b/llvm/lib/Target/BPF/AsmParser/BPFAsmParser.cpp
index 139ac429dd135..7d1819134d162 100644
--- a/llvm/lib/Target/BPF/AsmParser/BPFAsmParser.cpp
+++ b/llvm/lib/Target/BPF/AsmParser/BPFAsmParser.cpp
@@ -261,7 +261,6 @@ struct BPFOperand : public MCParsedAsmOperand {
         .Case("bswap32", true)
         .Case("bswap64", true)
         .Case("goto", true)
-        .Case("gotol", true)
         .Case("ll", true)
         .Case("skb", true)
         .Case("s", true)


        


More information about the llvm-commits mailing list