{"Template_token": ["", "void", "AsmBackend", "::", "applyFixup", "(", "const", "MCAssembler", "&", "Asm", ",", "const", "MCFixup", "&", "Fixup", ",", "const", "MCValue", "&", "Target", ",", "MutableArrayRef", "<", "char", ">", "Data", ",", "uint64_t", "Value", ",", "bool", "IsResolved", ",", "const", "MCSubtargetInfo", "*", "STI", ")", "const", "{", "return", ";"], "ground_truth": ["}"], "File": "LoongArchAsmBackend", "Func": "applyFixup", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188175, "Length": 42, "Cover_Rate": 1.0} {"Template_token": ["", "const", "Triple", "&", "TT", "=", "STI", ".", "getTargetTriple", "(", ")", ";"], "ground_truth": ["uint8_t", "OSABI", "=", "MCELFObjectTargetWriter", "::", "getOSABI", "(", "TT", ".", "getOS", "(", ")", ")", ";"], "File": "LoongArchAsmBackend", "Func": "createLoongArchAsmBackend", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188176, "Length": 25, "Cover_Rate": 0.36764705882352944} {"Template_token": ["", "const", "Triple", "&", "TT", "=", "STI", ".", "getTargetTriple", "(", ")", ";", "uint8_t", "OSABI", "=", "MCELFObjectTargetWriter", "::", "getOSABI", "(", "TT", ".", "getOS", "(", ")", ")", ";", "return", "new", "AsmBackend", "(", "STI", ",", "OSABI", ",", "TT", ".", "isArch64Bit", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmBackend", "Func": "createLoongArchAsmBackend", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188177, "Length": 41, "Cover_Rate": 0.6029411764705882} {"Template_token": ["", "unsigned", "getNumFixupKinds", "(", ")", "const", "override", "{"], "ground_truth": ["return", "", ";"], "File": "LoongArchAsmBackend", "Func": "getNumFixupKinds", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188181, "Length": 10, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "unsigned", "getNumFixupKinds", "(", ")", "const", "override", "{", "return", "", ";"], "ground_truth": ["}"], "File": "LoongArchAsmBackend", "Func": "getNumFixupKinds", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188182, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "AsmBackend", "(", "const", "MCSubtargetInfo", "&", "STI", ",", "uint8_t", "OSABI", ",", "bool", "Is64Bit", ")", ":", "MCAsmBackend", "(", "", ")", ",", "OSABI", "(", "OSABI", ")", ",", "Is64Bit", "(", "Is64Bit", ")", "{"], "ground_truth": ["}"], "File": "LoongArchAsmBackend", "Func": "LoongArchAsmBackend", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188183, "Length": 30, "Cover_Rate": 0.9375} {"Template_token": ["", "AsmBackend", "(", "const", "MCSubtargetInfo", "&", "STI", ",", "uint8_t", "OSABI", ",", "bool", "Is64Bit", ")", ":", "MCAsmBackend", "(", "", ")", ",", "OSABI", "(", "OSABI", ")", ",", "Is64Bit", "(", "Is64Bit", ")", "{"], "ground_truth": ["}"], "File": "LoongArchAsmBackend", "Func": "LoongArchAsmBackend", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188184, "Length": 30, "Cover_Rate": 0.9375} {"Template_token": ["", "void", "relaxInstruction", "(", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "override", "{"], "ground_truth": ["}"], "File": "LoongArchAsmBackend", "Func": "relaxInstruction", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188185, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "void", "relaxInstruction", "(", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "override", "{"], "ground_truth": ["}"], "File": "LoongArchAsmBackend", "Func": "relaxInstruction", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188186, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "AsmBackend", "::", "shouldForceRelocation", "(", "const", "MCAssembler", "&", "Asm", ",", "const", "MCFixup", "&", "Fixup", ",", "const", "MCValue", "&", "Target", ")", "{"], "ground_truth": ["return", "false", ";"], "File": "LoongArchAsmBackend", "Func": "shouldForceRelocation", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188187, "Length": 24, "Cover_Rate": 0.96} {"Template_token": ["", "bool", "AsmBackend", "::", "writeNopData", "(", "raw_ostream", "&", "OS", ",", "uint64_t", "Count", ",", "const", "MCSubtargetInfo", "*", "STI", ")", "const", "{", "if", "(", "Count", "%", "", "!=", "", ")", "return", "false", ";", "for", "(", ";", "Count", ">=", "", ";", "Count", "-=", "", ")", "", "::", "write", "<", "uint32_t", ">", "(", "OS", ",", "", ",", "", ")", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "LoongArchAsmBackend", "Func": "writeNopData", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188188, "Length": 59, "Cover_Rate": 0.9365079365079365} {"Template_token": ["", "bool", "AsmBackend", "::", "writeNopData", "(", "raw_ostream", "&", "OS", ",", "uint64_t", "Count", ",", "const", "MCSubtargetInfo", "*", "STI", ")", "const", "{"], "ground_truth": ["if", "(", "Count", "%", "", "!=", "", ")", "return", "false", ";"], "File": "LoongArchAsmBackend", "Func": "writeNopData", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188189, "Length": 30, "Cover_Rate": 0.47619047619047616} {"Template_token": ["", "~", "AsmBackend", "(", ")", "override", "{"], "ground_truth": ["}"], "File": "LoongArchAsmBackend", "Func": "~LoongArchAsmBackend", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188190, "Length": 7, "Cover_Rate": 1.0} {"Template_token": ["", "~", "AsmBackend", "(", ")", "override", "{"], "ground_truth": ["}"], "File": "LoongArchAsmBackend", "Func": "~LoongArchAsmBackend", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188191, "Length": 7, "Cover_Rate": 1.0} {"Template_token": ["", "unsigned", "Opc", "=", "Inst", ".", "getOpcode", "(", ")", ";", "const", "signed", "Msb", "=", "(", "Opc", "==", "", "||", "Opc", "==", "", ")", "?", "Inst", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ":", "Inst", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "const", "signed", "Lsb", "=", "(", "Opc", "==", "", "||", "Opc", "==", "", ")", "?", "Inst", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ":", "Inst", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "if", "(", "Msb", "<", "Lsb", ")", "return", "Match_RequiresMsbNotLessThanLsb", ";", "return", "Match_Success", ";", "}", "}"], "ground_truth": ["return", "Match_Success", ";"], "File": "LoongArchAsmParser1", "Func": "checkTargetMatchPredicate", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188192, "Length": 98, "Cover_Rate": 0.5104166666666666} {"Template_token": ["", "assert", "(", "Reg", ">=", "", "&&", "Reg", "<=", "", "&&", "", ")", ";"], "ground_truth": ["return", "Reg", "-", "", "+", "", ";"], "File": "LoongArchAsmParser1", "Func": "convertFPR32ToFPR64", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188193, "Length": 20, "Cover_Rate": 0.5405405405405406} {"Template_token": ["", "return", "isUImm", "<", "", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser1", "Func": "isUImm14", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188194, "Length": 9, "Cover_Rate": 0.6} {"Template_token": ["", "return", "isUImm", "<", "", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser1", "Func": "isUImm14", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188195, "Length": 9, "Cover_Rate": 0.6} {"Template_token": ["", "return", "Error", "(", "ErrorLoc", ",", "", ")", ";", "}", "}", "if", "(", "Result", ">", "FIRST_TARGET_MATCH_RESULT_TY", ")", "{", "SMLoc", "ErrorLoc", "=", "IDLoc", ";", "if", "(", "ErrorInfo", "!=", "~", "", "&&", "ErrorInfo", ">=", "Operands", ".", "size", "(", ")", ")", "return", "Error", "(", "ErrorLoc", ",", "", ")", ";", "}", "switch", "(", "Result", ")", "{", "default", ":", "break", ";", "case", "Match_RequiresMsbNotLessThanLsb", ":", "{", "SMLoc", "ErrorStart", "=", "Operands", "[", "", "]", "->", "getStartLoc", "(", ")", ";", "return", "Error", "(", "ErrorStart", ",", "", ",", "SMRange", "(", "ErrorStart", ",", "Operands", "[", "", "]", "->", "getEndLoc", "(", ")", ")", ")", ";", "}", "case", "Match_RequiresOpnd2NotR0R1", ":", "return", "Error", "(", "Operands", "[", "", "]", "->", "getStartLoc", "(", ")", ",", "", ")", ";", "case", "Match_InvalidUImm2", ":", "return", "generateImmOutOfRangeError", "(", "Operands", ",", "ErrorInfo", ",", "", ",", "(", "", "<<", "", ")", "-", "", ")", ";", "case", "Match_InvalidUImm2plus1", ":", "return", "generateImmOutOfRangeError", "(", "Operands", ",", "ErrorInfo", ",", "", ",", "(", "", "<<", "", ")", ")", ";", "case", "Match_InvalidUImm3", ":", "return", "generateImmOutOfRangeError", "(", "Operands", ",", "ErrorInfo", ",", "", ",", "(", "", "<<", "", ")", "-", "", ")", ";", "case", "Match_InvalidUImm5", ":", "return", "generateImmOutOfRangeError", "(", "Operands", ",", "ErrorInfo", ",", "", ",", "(", "", "<<", "", ")", "-", "", ")", ";", "case", "Match_InvalidUImm6", ":", "return", "generateImmOutOfRangeError", "(", "Operands", ",", "ErrorInfo", ",", "", ",", "(", "", "<<", "", ")", "-", "", ")", ";", "case", "Match_InvalidUImm12", ":", "return", "generateImmOutOfRangeError", "(", "Operands", ",", "ErrorInfo", ",", "", ",", "(", "", "<<", "", ")", "-", "", ")", ";", "case", "Match_InvalidUImm15", ":"], "ground_truth": ["return", "generateImmOutOfRangeError", "(", "Operands", ",", "ErrorInfo", ",", "", ",", "(", "", "<<", "", ")", "-", "", ")", ";"], "File": "LoongArchAsmParser1", "Func": "MatchAndEmitInstruction", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188198, "Length": 257, "Cover_Rate": 0.34776725304465494} {"Template_token": ["", "assert", "(", "!", "(", "RegNo", ">=", "", "&&", "RegNo", "<=", "", ")", ")", ";", "static_assert", "(", "", "<", "", ",", "", ")", ";", "if", "(", "RegNo", "==", "", ")", "RegNo", "=", "MatchRegisterAltName", "(", "Name", ")", ";", "return", "RegNo", "==", "", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser1", "Func": "matchRegisterNameHelper", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188200, "Length": 42, "Cover_Rate": 0.5753424657534246} {"Template_token": ["", "Reg", ".", "RegNum", "=", "PhysReg", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser1", "Func": "setReg", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188201, "Length": 7, "Cover_Rate": 0.5} {"Template_token": ["", "if", "(", "!", "Op", ".", "isReg", "(", ")", ")", "return", "Match_InvalidOperand", ";", "MCRegister", "Reg", "=", "Op", ".", "getReg", "(", ")", ";", "if", "(", "MCRegisterClasses", "[", "", "]", ".", "contains", "(", "Reg", ")", "&&", "Kind", "==", "MCK_FPR64", ")", "{", "Op", ".", "setReg", "(", "convertFPR32ToFPR64", "(", "Reg", ")", ")", ";", "return", "Match_Success", ";", "}", "return", "Match_InvalidOperand", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser1", "Func": "validateTargetOperandClass", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188203, "Length": 56, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "void", "addImmOperands", "(", "MCInst", "&", "Inst", ",", "unsigned", "N", ")", "const", "{"], "ground_truth": ["assert", "(", "N", "==", "", "&&", "", ")", ";"], "File": "LoongArchAsmParser", "Func": "addImmOperands", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188205, "Length": 21, "Cover_Rate": 0.6774193548387096} {"Template_token": ["", "assert", "(", "N", "==", "", "&&", "", ")", ";"], "ground_truth": ["addExpr", "(", "Inst", ",", "getImm", "(", ")", ")", ";"], "File": "LoongArchAsmParser", "Func": "addImmOperands", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188206, "Length": 18, "Cover_Rate": 0.5806451612903226} {"Template_token": ["", "assert", "(", "N", "==", "", "&&", "", ")", ";", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "getReg", "(", ")", ")", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "addRegOperands", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188207, "Length": 24, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "void", "addRegOperands", "(", "MCInst", "&", "Inst", ",", "unsigned", "N", ")", "const", "{", "assert", "(", "N", "==", "", "&&", "", ")", ";", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "getReg", "(", ")", ")", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "addRegOperands", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188208, "Length": 36, "Cover_Rate": 1.0} {"Template_token": ["", "auto", "Op", "=", "std", "::", "make_unique", "<", "Operand", ">", "(", "KindTy", "::", "Immediate", ")", ";", "Op", "->", "Imm", ".", "Val", "=", "Val", ";", "Op", "->", "StartLoc", "=", "S", ";"], "ground_truth": ["Op", "->", "EndLoc", "=", "E", ";"], "File": "LoongArchAsmParser", "Func": "createImm", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188209, "Length": 35, "Cover_Rate": 0.5833333333333334} {"Template_token": ["", "Op", "->", "Imm", ".", "Val", "=", "Val", ";", "Op", "->", "StartLoc", "=", "S", ";"], "ground_truth": ["Op", "->", "EndLoc", "=", "E", ";"], "File": "LoongArchAsmParser", "Func": "createImm", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188210, "Length": 20, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "auto", "Op", "=", "std", "::", "make_unique", "<", "Operand", ">", "(", "KindTy", "::", "Register", ")", ";", "Op", "->", "Reg", ".", "RegNum", "=", "RegNo", ";", "Op", "->", "StartLoc", "=", "S", ";", "Op", "->", "EndLoc", "=", "E", ";", "return", "Op", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "createReg", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188211, "Length": 39, "Cover_Rate": 0.6724137931034483} {"Template_token": ["", "auto", "Op", "=", "std", "::", "make_unique", "<", "Operand", ">", "(", "KindTy", "::", "Register", ")", ";", "Op", "->", "Reg", ".", "RegNum", "=", "RegNo", ";", "Op", "->", "StartLoc", "=", "S", ";", "Op", "->", "EndLoc", "=", "E", ";"], "ground_truth": ["return", "Op", ";"], "File": "LoongArchAsmParser", "Func": "createReg", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188212, "Length": 38, "Cover_Rate": 0.6551724137931034} {"Template_token": ["", "Op", "->", "StartLoc", "=", "S", ";", "Op", "->", "EndLoc", "=", "S", ";", "return", "Op", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "createToken", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188213, "Length": 16, "Cover_Rate": 0.3018867924528302} {"Template_token": ["", "bool", "AsmParser", "::", "generateImmOutOfRangeError", "(", "OperandVector", "&", "Operands", ",", "uint64_t", "ErrorInfo", ",", "int64_t", "Lower", ",", "int64_t", "Upper", ",", "Twine", "Msg", "=", "", ")", "{", "SMLoc", "ErrorLoc", "=", "(", "(", "Operand", "&", ")", "*", "Operands", "[", "ErrorInfo", "]", ")", ".", "getStartLoc", "(", ")", ";", "return", "Error", "(", "ErrorLoc", ",", "Msg", "+", "", "+", "Twine", "(", "Lower", ")", "+", "", "+", "Twine", "(", "Upper", ")", "+", "", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "generateImmOutOfRangeError", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188214, "Length": 68, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "AsmParser", "::", "generateImmOutOfRangeError", "(", "OperandVector", "&", "Operands", ",", "uint64_t", "ErrorInfo", ",", "int64_t", "Lower", ",", "int64_t", "Upper", ",", "Twine", "Msg", "=", "", ")", "{"], "ground_truth": ["SMLoc", "ErrorLoc", "=", "(", "(", "Operand", "&", ")", "*", "Operands", "[", "ErrorInfo", "]", ")", ".", "getStartLoc", "(", ")", ";"], "File": "LoongArchAsmParser", "Func": "generateImmOutOfRangeError", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188215, "Length": 43, "Cover_Rate": 0.6323529411764706} {"Template_token": ["", "SMLoc", "getEndLoc", "(", ")", "const", "override", "{", "return", "EndLoc", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "getEndLoc", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188216, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "const", "MCExpr", "*", "getImm", "(", ")", "const", "{", "assert", "(", "Kind", "==", "KindTy", "::", "Immediate", "&&", "", ")", ";", "return", "Imm", ".", "Val", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "getImm", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188218, "Length": 25, "Cover_Rate": 1.0} {"Template_token": ["", "assert", "(", "Kind", "==", "KindTy", "::", "Register", "&&", "", ")", ";", "return", "Reg", ".", "RegNum", ".", "id", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "getReg", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188220, "Length": 21, "Cover_Rate": 0.75} {"Template_token": ["", "SMLoc", "getStartLoc", "(", ")", "const", "override", "{"], "ground_truth": ["return", "StartLoc", ";"], "File": "LoongArchAsmParser", "Func": "getStartLoc", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188222, "Length": 10, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "SMLoc", "getStartLoc", "(", ")", "const", "override", "{"], "ground_truth": ["return", "StartLoc", ";"], "File": "LoongArchAsmParser", "Func": "getStartLoc", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188223, "Length": 10, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "assert", "(", "Kind", "==", "KindTy", "::", "Token", "&&", "", ")", ";"], "ground_truth": ["return", "Tok", ";"], "File": "LoongArchAsmParser", "Func": "getToken", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188224, "Length": 14, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "return", "Kind", "==", "KindTy", "::", "Immediate", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isImm", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188226, "Length": 8, "Cover_Rate": 0.5333333333333333} {"Template_token": ["", "bool", "isMem", "(", ")", "const", "override", "{", "return", "false", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isMem", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188227, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "isMem", "(", ")", "const", "override", "{", "return", "false", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isMem", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188228, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "isReg", "(", ")", "const", "override", "{", "return", "Kind", "==", "KindTy", "::", "Register", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isReg", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188230, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "!", "isImm", "(", ")", ")", "return", "false", ";", "int64_t", "Imm", ";", "bool", "IsConstantImm", "=", "evaluateConstantImm", "(", "getImm", "(", ")", ",", "Imm", ")", ";", "return", "IsConstantImm", "&&", "isShiftedInt", "<", "N", ",", "S", ">", "(", "Imm", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isSImm", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188231, "Length": 39, "Cover_Rate": 0.8666666666666667} {"Template_token": ["", "int64_t", "Imm", ";"], "ground_truth": ["bool", "IsConstantImm", "=", "evaluateConstantImm", "(", "getImm", "(", ")", ",", "Imm", ")", ";"], "File": "LoongArchAsmParser", "Func": "isSImm", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188232, "Length": 15, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "return", "isSImm", "<", "", ",", "", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isSImm14lsl2", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188235, "Length": 11, "Cover_Rate": 0.6470588235294118} {"Template_token": ["", "return", "isSImm", "<", "", ",", "", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isSImm14lsl2", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188236, "Length": 11, "Cover_Rate": 0.6470588235294118} {"Template_token": ["", "bool", "isSImm16", "(", ")", "const", "{", "return", "isSImm", "<", "", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isSImm16", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188237, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "return", "isSImm", "<", "", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isSImm16", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188238, "Length": 9, "Cover_Rate": 0.6} {"Template_token": ["", "return", "isSImm", "<", "", ",", "", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isSImm16lsl2", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188239, "Length": 11, "Cover_Rate": 0.6470588235294118} {"Template_token": ["", "return", "isSImm", "<", "", ",", "", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isSImm16lsl2", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188240, "Length": 11, "Cover_Rate": 0.6470588235294118} {"Template_token": ["", "bool", "isSImm20", "(", ")", "const", "{"], "ground_truth": ["return", "isSImm", "<", "", ">", "(", ")", ";"], "File": "LoongArchAsmParser", "Func": "isSImm20", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188241, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "bool", "isSImm20", "(", ")", "const", "{"], "ground_truth": ["return", "isSImm", "<", "", ">", "(", ")", ";"], "File": "LoongArchAsmParser", "Func": "isSImm20", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188242, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "return", "isSImm", "<", "", ",", "", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isSImm26lsl2", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188245, "Length": 11, "Cover_Rate": 0.6470588235294118} {"Template_token": ["", "bool", "isSImm26lsl2", "(", ")", "const", "{", "return", "isSImm", "<", "", ",", "", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isSImm26lsl2", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188246, "Length": 17, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "isToken", "(", ")", "const", "override", "{", "return", "Kind", "==", "KindTy", "::", "Token", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isToken", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188248, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "int64_t", "Imm", ";"], "ground_truth": ["bool", "IsConstantImm", "=", "evaluateConstantImm", "(", "getImm", "(", ")", ",", "Imm", ")", ";"], "File": "LoongArchAsmParser", "Func": "isUImm", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188249, "Length": 15, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "bool", "isUImm", "(", ")", "const", "{", "if", "(", "!", "isImm", "(", ")", ")", "return", "false", ";"], "ground_truth": ["int64_t", "Imm", ";"], "File": "LoongArchAsmParser", "Func": "isUImm", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188250, "Length": 19, "Cover_Rate": 0.4222222222222222} {"Template_token": ["", "return", "isUImm", "<", "", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isUImm15", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188254, "Length": 9, "Cover_Rate": 0.6} {"Template_token": ["", "return", "isUImm", "<", "", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isUImm2", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188255, "Length": 9, "Cover_Rate": 0.6} {"Template_token": ["", "bool", "isUImm2", "(", ")", "const", "{", "return", "isUImm", "<", "", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isUImm2", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188256, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "return", "isUImm", "<", "", ",", "", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isUImm2plus1", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188257, "Length": 11, "Cover_Rate": 0.6470588235294118} {"Template_token": ["", "return", "isUImm", "<", "", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isUImm3", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188259, "Length": 9, "Cover_Rate": 0.6} {"Template_token": ["", "return", "isUImm", "<", "", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isUImm3", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188260, "Length": 9, "Cover_Rate": 0.6} {"Template_token": ["", "return", "isUImm", "<", "", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isUImm5", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188261, "Length": 9, "Cover_Rate": 0.6} {"Template_token": ["", "bool", "isUImm5", "(", ")", "const", "{", "return", "isUImm", "<", "", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "isUImm5", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188262, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "Parser", ".", "addAliasForDirective", "(", "", ",", "", ")", ";", "Parser", ".", "addAliasForDirective", "(", "", ",", "", ")", ";"], "ground_truth": ["Parser", ".", "addAliasForDirective", "(", "", ",", "", ")", ";"], "File": "LoongArchAsmParser", "Func": "LoongArchAsmParser", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188267, "Length": 27, "Cover_Rate": 0.3375} {"Template_token": ["", "Parser", ".", "addAliasForDirective", "(", "", ",", "", ")", ";", "Parser", ".", "addAliasForDirective", "(", "", ",", "", ")", ";"], "ground_truth": ["setAvailableFeatures", "(", "ComputeAvailableFeatures", "(", "STI", ".", "getFeatureBits", "(", ")", ")", ")", ";"], "File": "LoongArchAsmParser", "Func": "LoongArchAsmParser", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188268, "Length": 30, "Cover_Rate": 0.375} {"Template_token": ["", "Operand", "(", "KindTy", "K", ")", ":", "MCParsedAsmOperand", "(", ")", ",", "Kind", "(", "K", ")", "{"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "LoongArchOperand", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188269, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "Operand", "(", "KindTy", "K", ")", ":", "MCParsedAsmOperand", "(", ")", ",", "Kind", "(", "K", ")", "{"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "LoongArchOperand", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188270, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "FirstFeature", "=", "true", ";", "std", "::", "string", "Msg", "=", "", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "MissingFeatures", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "if", "(", "MissingFeatures", "[", "i", "]", ")", "{", "Msg", "+=", "FirstFeature", "?", "", ":", "", ";", "Msg", "+=", "getSubtargetFeatureName", "(", "i", ")", ";", "FirstFeature", "=", "false", ";", "}", "}", "return", "Error", "(", "IDLoc", ",", "Msg", ")", ";", "}", "case", "Match_MnemonicFail", ":", "{", "FeatureBitset", "FBS", "=", "ComputeAvailableFeatures", "(", "getSTI", "(", ")", ".", "getFeatureBits", "(", ")", ")", ";", "std", "::", "string", "Suggestion", "=", "MnemonicSpellCheck", "(", "(", "(", "Operand", "&", ")", "*", "Operands", "[", "", "]", ")", ".", "getToken", "(", ")", ",", "FBS", ",", "", ")", ";", "return", "Error", "(", "IDLoc", ",", "", "+", "Suggestion", ")", ";", "}", "case", "Match_InvalidOperand", ":", "{", "SMLoc", "ErrorLoc", "=", "IDLoc", ";", "if", "(", "ErrorInfo", "!=", "~", "", ")", "{", "if", "(", "ErrorInfo", ">=", "Operands", ".", "size", "(", ")", ")", "return", "Error", "(", "ErrorLoc", ",", "", ")", ";", "ErrorLoc", "=", "(", "(", "Operand", "&", ")", "*", "Operands", "[", "ErrorInfo", "]", ")", ".", "getStartLoc", "(", ")", ";", "if", "(", "ErrorLoc", "==", "SMLoc", "(", ")", ")", "ErrorLoc", "=", "IDLoc", ";", "}", "return", "Error", "(", "ErrorLoc", ",", "", ")", ";", "}", "}", "if", "(", "Result", ">", "FIRST_TARGET_MATCH_RESULT_TY", ")", "{", "SMLoc", "ErrorLoc", "=", "IDLoc", ";", "if", "(", "ErrorInfo", "!=", "~", "", "&&", "ErrorInfo", ">=", "Operands", ".", "size", "(", ")", ")", "return", "Error", "(", "ErrorLoc", ",", "", ")", ";", "}", "switch", "(", "Result", ")", "{", "default", ":", "break", ";", "case", "Match_InvalidUImm2", ":", "return", "generateImmOutOfRangeError", "(", "Operands", ",", "ErrorInfo", ",", "", ",", "(", "", "<<", "", ")", "-", "", ")", ";", "case", "Match_InvalidUImm2plus1", ":", "return", "generateImmOutOfRangeError", "(", "Operands", ",", "ErrorInfo", ",", "", ",", "(", "", "<<", "", ")", ")", ";", "case", "Match_InvalidUImm3", ":", "return", "generateImmOutOfRangeError", "(", "Operands", ",", "ErrorInfo", ",", "", ",", "(", "", "<<", "", ")", "-", "", ")", ";", "case", "Match_InvalidUImm5", ":", "return", "generateImmOutOfRangeError", "(", "Operands", ",", "ErrorInfo", ",", "", ",", "(", "", "<<", "", ")", "-", "", ")", ";", "case", "Match_InvalidUImm6", ":", "return", "generateImmOutOfRangeError", "(", "Operands", ",", "ErrorInfo", ",", "", ",", "(", "", "<<", "", ")", "-", "", ")", ";", "case", "Match_InvalidUImm12", ":", "return", "generateImmOutOfRangeError", "(", "Operands", ",", "ErrorInfo", ",", "", ",", "(", "", "<<", "", ")", "-", "", ")", ";", "case", "Match_InvalidUImm15", ":", "return", "generateImmOutOfRangeError", "(", "Operands", ",", "ErrorInfo", ",", "", ",", "(", "", "<<", "", ")", "-", "", ")", ";", "case", "Match_InvalidSImm12", ":", "return", "generateImmOutOfRangeError", "(", "Operands", ",", "ErrorInfo", ",", "-", "(", "", "<<", "", ")", ",", "(", "", "<<", "", ")", "-", "", ")", ";", "case", "Match_InvalidSImm14lsl2", ":", "return", "generateImmOutOfRangeError", "(", "Operands", ",", "ErrorInfo", ",", "-", "(", "", "<<", "", ")", ",", "(", "", "<<", "", ")", "-", "", ",", "", ")", ";", "case", "Match_InvalidSImm16", ":", "return", "generateImmOutOfRangeError", "(", "Operands", ",", "ErrorInfo", ",", "-", "(", "", "<<", "", ")", ",", "(", "", "<<", "", ")", "-", "", ")", ";", "case", "Match_InvalidSImm16lsl2", ":"], "ground_truth": ["return", "generateImmOutOfRangeError", "(", "Operands", ",", "ErrorInfo", ",", "-", "(", "", "<<", "", ")", ",", "(", "", "<<", "", ")", "-", "", ",", "", ")", ";"], "File": "LoongArchAsmParser", "Func": "MatchAndEmitInstruction", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188271, "Length": 504, "Cover_Rate": 0.7390029325513197} {"Template_token": ["", "static", "bool", "matchRegisterNameHelper", "(", "MCRegister", "&", "RegNo", ",", "StringRef", "Name", ")", "{", "RegNo", "=", "MatchRegisterName", "(", "Name", ")", ";", "if", "(", "RegNo", "==", "", ")", "RegNo", "=", "MatchRegisterAltName", "(", "Name", ")", ";", "return", "RegNo", "==", "", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "matchRegisterNameHelper", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188273, "Length": 38, "Cover_Rate": 0.9047619047619048} {"Template_token": ["", "bool", "ParseDirective", "(", "AsmToken", "DirectiveID", ")", "override", "{"], "ground_truth": ["return", "true", ";"], "File": "LoongArchAsmParser", "Func": "ParseDirective", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188274, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "SMLoc", "S", "=", "getLoc", "(", ")", ";", "SMLoc", "E", ";", "const", "MCExpr", "*", "Res", ";", "if", "(", "getParser", "(", ")", ".", "parseExpression", "(", "Res", ",", "E", ")", ")", "return", "MatchOperand_ParseFail", ";", "Operands", ".", "push_back", "(", "", "(", "Res", ",", "S", ",", "E", ")", ")", ";"], "ground_truth": ["return", "MatchOperand_Success", ";"], "File": "LoongArchAsmParser", "Func": "parseImmediate", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188275, "Length": 48, "Cover_Rate": 0.7868852459016393} {"Template_token": ["", "if", "(", "getParser", "(", ")", ".", "parseExpression", "(", "Res", ",", "E", ")", ")", "return", "MatchOperand_ParseFail", ";"], "ground_truth": ["Operands", ".", "push_back", "(", "", "(", "Res", ",", "S", ",", "E", ")", ")", ";"], "File": "LoongArchAsmParser", "Func": "parseImmediate", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188276, "Length": 30, "Cover_Rate": 0.4918032786885246} {"Template_token": ["", "if", "(", "parseOperand", "(", "Operands", ",", "Name", ")", ")", "return", "true", ";", "while", "(", "parseOptionalToken", "(", "AsmToken", "::", "Comma", ")", ")", "if", "(", "parseOperand", "(", "Operands", ",", "Name", ")", ")", "return", "true", ";"], "ground_truth": ["if", "(", "parseOptionalToken", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "return", "false", ";"], "File": "LoongArchAsmParser", "Func": "ParseInstruction", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188277, "Length": 45, "Cover_Rate": 0.37815126050420167} {"Template_token": ["", "if", "(", "parseRegister", "(", "Operands", ")", "==", "MatchOperand_Success", "||", "parseImmediate", "(", "Operands", ")", "==", "MatchOperand_Success", ")", "return", "false", ";", "Error", "(", "getLoc", "(", ")", ",", "", ")", ";"], "ground_truth": ["return", "true", ";"], "File": "LoongArchAsmParser", "Func": "parseOperand", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188278, "Length": 31, "Cover_Rate": 0.6888888888888889} {"Template_token": ["", "if", "(", "getLexer", "(", ")", ".", "getKind", "(", ")", "!=", "AsmToken", "::", "Identifier", ")", "return", "MatchOperand_NoMatch", ";", "StringRef", "Name", "=", "getLexer", "(", ")", ".", "getTok", "(", ")", ".", "getIdentifier", "(", ")", ";", "MCRegister", "RegNo", ";", "matchRegisterNameHelper", "(", "RegNo", ",", "Name", ")", ";", "if", "(", "RegNo", "==", "", ")", "return", "MatchOperand_NoMatch", ";"], "ground_truth": ["SMLoc", "S", "=", "getLoc", "(", ")", ";"], "File": "LoongArchAsmParser", "Func": "ParseRegister", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188279, "Length": 58, "Cover_Rate": 0.3972602739726027} {"Template_token": ["", "matchRegisterNameHelper", "(", "RegNo", ",", "Name", ")", ";", "if", "(", "RegNo", "==", "", ")", "return", "MatchOperand_NoMatch", ";", "SMLoc", "S", "=", "getLoc", "(", ")", ";", "SMLoc", "E", "=", "SMLoc", "::", "getFromPointer", "(", "S", ".", "getPointer", "(", ")", "+", "Name", ".", "size", "(", ")", ")", ";"], "ground_truth": ["getLexer", "(", ")", ".", "Lex", "(", ")", ";"], "File": "LoongArchAsmParser", "Func": "ParseRegister", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188280, "Length": 51, "Cover_Rate": 0.3493150684931507} {"Template_token": ["", "Out", ".", "emitInstruction", "(", "Inst", ",", "getSTI", "(", ")", ")", ";", "return", "false", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "processInstruction", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188281, "Length": 15, "Cover_Rate": 0.3488372093023256} {"Template_token": ["", "OperandMatchResultTy", "AsmParser", "::", "tryParseRegister", "(", "unsigned", "&", "RegNo", ",", "SMLoc", "&", "StartLoc", ",", "SMLoc", "&", "EndLoc", ")", "{", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmParser", "Func": "tryParseRegister", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188282, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "void", "AsmPrinter", "::", "emitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "if", "(", "emitPseudoExpansionLowering", "(", "*", "OutStreamer", ",", "MI", ")", ")", "return", ";", "MCInst", "TmpInst", ";", "if", "(", "!", "lowerMachineInstrToMCInst", "(", "MI", ",", "TmpInst", ",", "*", "this", ")", ")", "EmitToStreamer", "(", "*", "OutStreamer", ",", "TmpInst", ")", ";"], "ground_truth": ["}"], "File": "LoongArchAsmPrinter", "Func": "emitInstruction", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188283, "Length": 48, "Cover_Rate": 1.0} {"Template_token": ["", "LLVM_EXTERNAL_VISIBILITY", "void", "LLVMInitializeAsmPrinter", "(", ")", "{"], "ground_truth": ["RegisterAsmPrinter", "<", "AsmPrinter", ">", "X", "(", "getThe32Target", "(", ")", ")", ";"], "File": "LoongArchAsmPrinter", "Func": "LLVMInitializeLoongArchAsmPrinter", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188286, "Length": 17, "Cover_Rate": 0.5862068965517241} {"Template_token": ["", "RegisterAsmPrinter", "<", "AsmPrinter", ">", "X", "(", "getThe32Target", "(", ")", ")", ";"], "ground_truth": ["RegisterAsmPrinter", "<", "AsmPrinter", ">", "Y", "(", "getThe64Target", "(", ")", ")", ";"], "File": "LoongArchAsmPrinter", "Func": "LLVMInitializeLoongArchAsmPrinter", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188287, "Length": 22, "Cover_Rate": 0.7586206896551724} {"Template_token": ["", "bool", "AsmPrinter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "AsmPrinter", "::", "runOnMachineFunction", "(", "MF", ")", ";"], "ground_truth": ["return", "true", ";"], "File": "LoongArchAsmPrinter", "Func": "runOnMachineFunction", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188289, "Length": 20, "Cover_Rate": 0.9523809523809523} {"Template_token": ["", "MCRegister", "getBPReg", "(", ")", "{", "return", "", ";"], "ground_truth": ["}"], "File": "LoongArchBaseInfo", "Func": "getBPReg", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188290, "Length": 9, "Cover_Rate": 0.8181818181818182} {"Template_token": ["", "return", "", ";"], "ground_truth": ["}"], "File": "LoongArchBaseInfo", "Func": "getBPReg", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188291, "Length": 4, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "ABI", "getTargetABI", "(", "StringRef", "ABIName", ")", "{", "auto", "TargetABI", "=", "StringSwitch", "<", "ABI", ">", "(", "ABIName", ")", ".", "Case", "(", "", ",", "ABI_ILP32S", ")", ".", "Case", "(", "", ",", "ABI_ILP32F", ")", ".", "Case", "(", "", ",", "ABI_ILP32D", ")", ".", "Case", "(", "", ",", "ABI_LP64S", ")", ".", "Case", "(", "", ",", "ABI_LP64F", ")", ".", "Case", "(", "", ",", "ABI_LP64D", ")", ".", "Default", "(", "ABI_Unknown", ")", ";"], "ground_truth": ["return", "TargetABI", ";"], "File": "LoongArchBaseInfo", "Func": "getTargetABI", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188292, "Length": 68, "Cover_Rate": 0.9855072463768116} {"Template_token": ["", "if", "(", "RegNo", ">=", "", ")", "return", "MCDisassembler", "::", "Fail", ";", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "", "+", "RegNo", ")", ")", ";", "return", "MCDisassembler", "::", "Success", ";"], "ground_truth": ["}"], "File": "LoongArchDisassembler1", "Func": "DecodeCFRRegisterClass", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188294, "Length": 31, "Cover_Rate": 0.5849056603773585} {"Template_token": ["", "static", "DecodeStatus", "DecodeCFRRegisterClass", "(", "MCInst", "&", "Inst", ",", "uint64_t", "RegNo", ",", "uint64_t", "Address", ",", "const", "MCDisassembler", "*", "Decoder", ")", "{"], "ground_truth": ["if", "(", "RegNo", ">=", "", ")", "return", "MCDisassembler", "::", "Fail", ";"], "File": "LoongArchDisassembler1", "Func": "DecodeCFRRegisterClass", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188295, "Length": 31, "Cover_Rate": 0.5849056603773585} {"Template_token": ["", "if", "(", "RegNo", ">=", "", ")", "return", "MCDisassembler", "::", "Fail", ";"], "ground_truth": ["Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "", "+", "RegNo", ")", ")", ";"], "File": "LoongArchDisassembler1", "Func": "DecodeFCSRRegisterClass", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188296, "Length": 25, "Cover_Rate": 0.4716981132075472} {"Template_token": ["", "if", "(", "RegNo", ">=", "", ")", "return", "MCDisassembler", "::", "Fail", ";", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "", "+", "RegNo", ")", ")", ";", "return", "MCDisassembler", "::", "Success", ";"], "ground_truth": ["}"], "File": "LoongArchDisassembler1", "Func": "DecodeFCSRRegisterClass", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188297, "Length": 31, "Cover_Rate": 0.5849056603773585} {"Template_token": ["", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "", "+", "RegNo", ")", ")", ";", "return", "MCDisassembler", "::", "Success", ";"], "ground_truth": ["}"], "File": "LoongArchDisassembler1", "Func": "DecodeFPR32RegisterClass", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188298, "Length": 20, "Cover_Rate": 0.37735849056603776} {"Template_token": ["", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "", "+", "RegNo", ")", ")", ";", "return", "MCDisassembler", "::", "Success", ";"], "ground_truth": ["}"], "File": "LoongArchDisassembler1", "Func": "DecodeFPR64RegisterClass", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188299, "Length": 20, "Cover_Rate": 0.37735849056603776} {"Template_token": ["", "static", "DecodeStatus", "DecodeFPR64RegisterClass", "(", "MCInst", "&", "Inst", ",", "uint64_t", "RegNo", ",", "uint64_t", "Address", ",", "const", "MCDisassembler", "*", "Decoder", ")", "{", "if", "(", "RegNo", ">=", "", ")", "return", "MCDisassembler", "::", "Fail", ";"], "ground_truth": ["Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "", "+", "RegNo", ")", ")", ";"], "File": "LoongArchDisassembler1", "Func": "DecodeFPR64RegisterClass", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188300, "Length": 45, "Cover_Rate": 0.8490566037735849} {"Template_token": ["", "static", "MCDisassembler", "*", "createDisassembler", "(", "const", "Target", "&", "T", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "MCContext", "&", "Ctx", ")", "{", "return", "new", "Disassembler", "(", "STI", ",", "Ctx", ")", ";"], "ground_truth": ["}"], "File": "LoongArchDisassembler", "Func": "createLoongArchDisassembler", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188301, "Length": 30, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "RegNo", ">=", "", ")", "return", "MCDisassembler", "::", "Fail", ";", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "", "+", "RegNo", ")", ")", ";", "return", "MCDisassembler", "::", "Success", ";"], "ground_truth": ["}"], "File": "LoongArchDisassembler", "Func": "DecodeGPRRegisterClass", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188303, "Length": 31, "Cover_Rate": 0.5849056603773585} {"Template_token": ["", "static", "DecodeStatus", "decodeSImmOperand", "(", "MCInst", "&", "Inst", ",", "uint64_t", "Imm", ",", "int64_t", "Address", ",", "const", "MCDisassembler", "*", "Decoder", ")", "{", "assert", "(", "isUInt", "<", "N", ">", "(", "Imm", ")", "&&", "", ")", ";", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "SignExtend64", "<", "N", ">", "(", "Imm", ")", "<<", "S", ")", ")", ";"], "ground_truth": ["return", "MCDisassembler", "::", "Success", ";"], "File": "LoongArchDisassembler", "Func": "decodeSImmOperand", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188304, "Length": 58, "Cover_Rate": 0.9830508474576272} {"Template_token": ["", "static", "DecodeStatus", "decodeSImmOperand", "(", "MCInst", "&", "Inst", ",", "uint64_t", "Imm", ",", "int64_t", "Address", ",", "const", "MCDisassembler", "*", "Decoder", ")", "{", "assert", "(", "isUInt", "<", "N", ">", "(", "Imm", ")", "&&", "", ")", ";", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "SignExtend64", "<", "N", ">", "(", "Imm", ")", "<<", "S", ")", ")", ";", "return", "MCDisassembler", "::", "Success", ";"], "ground_truth": ["}"], "File": "LoongArchDisassembler", "Func": "decodeSImmOperand", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188305, "Length": 59, "Cover_Rate": 1.0} {"Template_token": ["", "static", "DecodeStatus", "decodeUImmOperand", "(", "MCInst", "&", "Inst", ",", "uint64_t", "Imm", ",", "int64_t", "Address", ",", "const", "MCDisassembler", "*", "Decoder", ")", "{", "assert", "(", "isUInt", "<", "N", ">", "(", "Imm", ")", "&&", "", ")", ";"], "ground_truth": ["Inst", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "Imm", "+", "P", ")", ")", ";"], "File": "LoongArchDisassembler", "Func": "decodeUImmOperand", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188307, "Length": 47, "Cover_Rate": 0.8867924528301887} {"Template_token": ["", "TargetRegistry", "::", "RegisterMCDisassembler", "(", "getThe32Target", "(", ")", ",", "createDisassembler", ")", ";", "TargetRegistry", "::", "RegisterMCDisassembler", "(", "getThe64Target", "(", ")", ",", "createDisassembler", ")", ";"], "ground_truth": ["}"], "File": "LoongArchDisassembler", "Func": "LLVMInitializeLoongArchDisassembler", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188308, "Length": 23, "Cover_Rate": 0.7931034482758621} {"Template_token": ["", "TargetRegistry", "::", "RegisterMCDisassembler", "(", "getThe32Target", "(", ")", ",", "createDisassembler", ")", ";", "TargetRegistry", "::", "RegisterMCDisassembler", "(", "getThe64Target", "(", ")", ",", "createDisassembler", ")", ";"], "ground_truth": ["}"], "File": "LoongArchDisassembler", "Func": "LLVMInitializeLoongArchDisassembler", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188309, "Length": 23, "Cover_Rate": 0.7931034482758621} {"Template_token": ["", "Disassembler", "(", "const", "MCSubtargetInfo", "&", "STI", ",", "MCContext", "&", "Ctx", ")", ":", "MCDisassembler", "(", "STI", ",", "Ctx", ")", "{"], "ground_truth": ["}"], "File": "LoongArchDisassembler", "Func": "LoongArchDisassembler", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188310, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "Disassembler", "(", "const", "MCSubtargetInfo", "&", "STI", ",", "MCContext", "&", "Ctx", ")", ":", "MCDisassembler", "(", "STI", ",", "Ctx", ")", "{"], "ground_truth": ["}"], "File": "LoongArchDisassembler", "Func": "LoongArchDisassembler", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188311, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "return", "std", "::", "make_unique", "<", "ELFObjectWriter", ">", "(", "OSABI", ",", "Is64Bit", ")", ";"], "ground_truth": ["}"], "File": "LoongArchELFObjectWriter", "Func": "createLoongArchELFObjectWriter", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188312, "Length": 14, "Cover_Rate": 0.45161290322580644} {"Template_token": ["", "return", "std", "::", "make_unique", "<", "ELFObjectWriter", ">", "(", "OSABI", ",", "Is64Bit", ")", ";"], "ground_truth": ["}"], "File": "LoongArchELFObjectWriter", "Func": "createLoongArchELFObjectWriter", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188313, "Length": 14, "Cover_Rate": 0.45161290322580644} {"Template_token": ["", "unsigned", "Kind", "=", "Fixup", ".", "getTargetKind", "(", ")", ";", "if", "(", "Kind", ">=", "FirstLiteralRelocationKind", ")", "return", "Kind", "-", "FirstLiteralRelocationKind", ";"], "ground_truth": ["switch", "(", "Kind", ")", "{"], "File": "LoongArchELFObjectWriter", "Func": "getRelocType", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188314, "Length": 25, "Cover_Rate": 0.43103448275862066} {"Template_token": ["", "ELFObjectWriter", "::", "ELFObjectWriter", "(", "uint8_t", "OSABI", ",", "bool", "Is64Bit", ")", ":", "MCELFObjectTargetWriter", "(", "Is64Bit", ",", "OSABI", ",", "ELF", "::", "EM_LOONGARCH", ",", "true", ")", "{"], "ground_truth": ["}"], "File": "LoongArchELFObjectWriter", "Func": "LoongArchELFObjectWriter", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188315, "Length": 25, "Cover_Rate": 1.0} {"Template_token": ["", "ELFObjectWriter", "::", "ELFObjectWriter", "(", "uint8_t", "OSABI", ",", "bool", "Is64Bit", ")", ":", "MCELFObjectTargetWriter", "(", "Is64Bit", ",", "OSABI", ",", "ELF", "::", "EM_LOONGARCH", ",", "true", ")", "{"], "ground_truth": ["}"], "File": "LoongArchELFObjectWriter", "Func": "LoongArchELFObjectWriter", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188316, "Length": 25, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "needsRelocateWithSymbol", "(", "const", "MCSymbol", "&", "Sym", ",", "unsigned", "Type", ")", "const", "override", "{", "return", "true", ";"], "ground_truth": ["}"], "File": "LoongArchELFObjectWriter", "Func": "needsRelocateWithSymbol", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188317, "Length": 18, "Cover_Rate": 1.0} {"Template_token": ["", "ELFObjectWriter", "::", "~", "ELFObjectWriter", "(", ")", "{"], "ground_truth": ["}"], "File": "LoongArchELFObjectWriter", "Func": "~LoongArchELFObjectWriter", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188318, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "ELFObjectWriter", "::", "~", "ELFObjectWriter", "(", ")", "{"], "ground_truth": ["}"], "File": "LoongArchELFObjectWriter", "Func": "~LoongArchELFObjectWriter", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188319, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "void", "FrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{"], "ground_truth": ["}"], "File": "LoongArchFrameLowering", "Func": "emitEpilogue", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188320, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "void", "FrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{"], "ground_truth": ["}"], "File": "LoongArchFrameLowering", "Func": "emitEpilogue", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188321, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "void", "FrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{"], "ground_truth": ["}"], "File": "LoongArchFrameLowering", "Func": "emitPrologue", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188322, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "void", "FrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{"], "ground_truth": ["}"], "File": "LoongArchFrameLowering", "Func": "emitPrologue", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188323, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "return", "MFI", ".", "hasVarSizedObjects", "(", ")", "&&", "TRI", "->", "hasStackRealignment", "(", "MF", ")", ";"], "ground_truth": ["}"], "File": "LoongArchFrameLowering", "Func": "hasBP", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188324, "Length": 15, "Cover_Rate": 0.30612244897959184} {"Template_token": ["", "bool", "FrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetRegisterInfo", "*", "RegInfo", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "return", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "DisableFramePointerElim", "(", "MF", ")", "||", "RegInfo", "->", "hasStackRealignment", "(", "MF", ")", "||", "MFI", ".", "hasVarSizedObjects", "(", ")", "||", "MFI", ".", "isFrameAddressTaken", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchFrameLowering", "Func": "hasFP", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188325, "Length": 72, "Cover_Rate": 1.0} {"Template_token": ["", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";"], "ground_truth": ["return", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "DisableFramePointerElim", "(", "MF", ")", "||", "RegInfo", "->", "hasStackRealignment", "(", "MF", ")", "||", "MFI", ".", "hasVarSizedObjects", "(", ")", "||", "MFI", ".", "isFrameAddressTaken", "(", ")", ";"], "File": "LoongArchFrameLowering", "Func": "hasFP", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188326, "Length": 44, "Cover_Rate": 0.6111111111111112} {"Template_token": ["", "explicit", "FrameLowering", "(", "const", "Subtarget", "&", "STI", ")", ":", "TargetFrameLowering", "(", "StackGrowsDown", ",", "Align", "(", "", ")", ",", "", ")", ",", "STI", "(", "STI", ")", "{"], "ground_truth": ["}"], "File": "LoongArchFrameLowering", "Func": "LoongArchFrameLowering", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188327, "Length": 27, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "FrameLowering", "(", "const", "Subtarget", "&", "STI", ")", ":", "TargetFrameLowering", "(", "StackGrowsDown", ",", "Align", "(", "", ")", ",", "", ")", ",", "STI", "(", "STI", ")", "{"], "ground_truth": ["}"], "File": "LoongArchFrameLowering", "Func": "LoongArchFrameLowering", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188328, "Length": 27, "Cover_Rate": 1.0} {"Template_token": ["", "return", "getRegisterName", "(", "RegNo", ",", "", ")", ";"], "ground_truth": ["}"], "File": "LoongArchInstPrinter", "Func": "getRegisterName", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188329, "Length": 9, "Cover_Rate": 0.4090909090909091} {"Template_token": ["", "const", "char", "*", "InstPrinter", "::", "getRegisterName", "(", "unsigned", "RegNo", ")", "{", "return", "getRegisterName", "(", "RegNo", ",", "", ")", ";"], "ground_truth": ["}"], "File": "LoongArchInstPrinter", "Func": "getRegisterName", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188330, "Length": 20, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "InstPrinter", "(", "const", "MCAsmInfo", "&", "MAI", ",", "const", "MCInstrInfo", "&", "MII", ",", "const", "MCRegisterInfo", "&", "MRI", ")", ":", "MCInstPrinter", "(", "MAI", ",", "MII", ",", "MRI", ")", "{"], "ground_truth": ["}"], "File": "LoongArchInstPrinter", "Func": "LoongArchInstPrinter", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188331, "Length": 28, "Cover_Rate": 1.0} {"Template_token": ["", "InstPrinter", "(", "const", "MCAsmInfo", "&", "MAI", ",", "const", "MCInstrInfo", "&", "MII", ",", "const", "MCRegisterInfo", "&", "MRI", ")", ":", "MCInstPrinter", "(", "MAI", ",", "MII", ",", "MRI", ")", "{"], "ground_truth": ["}"], "File": "LoongArchInstPrinter", "Func": "LoongArchInstPrinter", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188332, "Length": 28, "Cover_Rate": 1.0} {"Template_token": ["", "printRegName", "(", "O", ",", "MO", ".", "getReg", "(", ")", ")", ";", "return", ";", "}", "if", "(", "MO", ".", "isImm", "(", ")", ")", "{", "O", "<<", "MO", ".", "getImm", "(", ")", ";", "return", ";", "}"], "ground_truth": ["assert", "(", "MO", ".", "isExpr", "(", ")", "&&", "", ")", ";"], "File": "LoongArchInstPrinter", "Func": "printOperand", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188334, "Length": 45, "Cover_Rate": 0.4326923076923077} {"Template_token": ["", "const", "MCOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "if", "(", "MO", ".", "isReg", "(", ")", ")", "{", "printRegName", "(", "O", ",", "MO", ".", "getReg", "(", ")", ")", ";", "return", ";", "}", "if", "(", "MO", ".", "isImm", "(", ")", ")", "{", "O", "<<", "MO", ".", "getImm", "(", ")", ";", "return", ";", "}", "assert", "(", "MO", ".", "isExpr", "(", ")", "&&", "", ")", ";", "MO", ".", "getExpr", "(", ")", "->", "print", "(", "O", ",", "&", "MAI", ")", ";"], "ground_truth": ["}"], "File": "LoongArchInstPrinter", "Func": "printOperand", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188335, "Length": 81, "Cover_Rate": 0.7788461538461539} {"Template_token": ["", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "get", "(", "", ")", ",", "DstReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ".", "addReg", "(", "", ")", ";"], "ground_truth": ["return", ";"], "File": "LoongArchInstrInfo1", "Func": "copyPhysReg", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188338, "Length": 33, "Cover_Rate": 0.375} {"Template_token": ["", "InstrInfo", "::", "InstrInfo", "(", "Subtarget", "&", "STI", ")", ":", "GenInstrInfo", "(", ")", "{"], "ground_truth": ["}"], "File": "LoongArchInstrInfo", "Func": "LoongArchInstrInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188339, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "InstrInfo", "::", "InstrInfo", "(", "Subtarget", "&", "STI", ")", ":", "GenInstrInfo", "(", ")", "{"], "ground_truth": ["}"], "File": "LoongArchInstrInfo", "Func": "LoongArchInstrInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188340, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "FunctionPass", "*", "llvm", "::", "createISelDag", "(", "TargetMachine", "&", "TM", ")", "{", "return", "new", "DAGToDAGISel", "(", "TM", ")", ";"], "ground_truth": ["}"], "File": "LoongArchISelDAGToDAG", "Func": "createLoongArchISelDag", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188342, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "return", "", ";"], "ground_truth": ["}"], "File": "LoongArchISelDAGToDAG", "Func": "getPassName", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188343, "Length": 4, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "explicit", "DAGToDAGISel", "(", "TargetMachine", "&", "TM", ")", ":", "SelectionDAGISel", "(", "TM", ")", "{"], "ground_truth": ["}"], "File": "LoongArchISelDAGToDAG", "Func": "LoongArchDAGToDAGISel", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188344, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "DAGToDAGISel", "(", "TargetMachine", "&", "TM", ")", ":", "SelectionDAGISel", "(", "TM", ")", "{"], "ground_truth": ["}"], "File": "LoongArchISelDAGToDAG", "Func": "LoongArchDAGToDAGISel", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188345, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "Node", "->", "isMachineOpcode", "(", ")", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "dbgs", "(", ")", "<<", "", ")", ";"], "ground_truth": ["Node", "->", "setNodeId", "(", "-", "", ")", ";"], "File": "LoongArchISelDAGToDAG", "Func": "Select", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188347, "Length": 39, "Cover_Rate": 0.46987951807228917} {"Template_token": ["", "}", "unsigned", "Opcode", "=", "Node", "->", "getOpcode", "(", ")", ";", "SDLoc", "DL", "(", "Node", ")", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "break", ";"], "ground_truth": ["}"], "File": "LoongArchISelDAGToDAG", "Func": "Select", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188348, "Length": 26, "Cover_Rate": 0.3132530120481928} {"Template_token": ["", "MVT", "ArgVT", "=", "Outs", "[", "i", "]", ".", "VT", ";", "if", "(", "Fn", "(", "i", ",", "ArgVT", ",", "CCValAssign", "::", "Full", ",", "CCInfo", ")", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "i", "<<", "", "<<", "EVT", "(", "ArgVT", ")", ".", "getEVTString", "(", ")", "<<", "", ")", ";", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "LoongArchISelLowering1", "Func": "analyzeOutputArgs", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188349, "Length": 56, "Cover_Rate": 0.5333333333333333} {"Template_token": ["", "bool", "TargetLowering", "::", "CanLowerReturn", "(", "CallingConv", "::", "ID", "CallConv", ",", "MachineFunction", "&", "MF", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "", ">", "&", "Outs", ",", "LLVMContext", "&", "Context", ")", "const", "{"], "ground_truth": ["return", "Outs", ".", "size", "(", ")", "<=", "", ";"], "File": "LoongArchISelLowering1", "Func": "CanLowerReturn", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188350, "Length": 40, "Cover_Rate": 0.9302325581395349} {"Template_token": ["", "static", "bool", "CC_", "(", "unsigned", "ValNo", ",", "MVT", "ValVT", ",", "CCValAssign", "::", "LocInfo", "LocInfo", ",", "CCState", "&", "State", ")", "{"], "ground_truth": ["Register", "Reg", "=", "State", ".", "AllocateReg", "(", "ArgGPRs", ")", ";"], "File": "LoongArchISelLowering1", "Func": "CC_LoongArch", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188352, "Length": 30, "Cover_Rate": 0.47619047619047616} {"Template_token": ["", "static", "bool", "CC_", "(", "unsigned", "ValNo", ",", "MVT", "ValVT", ",", "CCValAssign", "::", "LocInfo", "LocInfo", ",", "CCState", "&", "State", ")", "{", "Register", "Reg", "=", "State", ".", "AllocateReg", "(", "ArgGPRs", ")", ";"], "ground_truth": ["if", "(", "Reg", ")", "{"], "File": "LoongArchISelLowering1", "Func": "CC_LoongArch", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188353, "Length": 35, "Cover_Rate": 0.5555555555555556} {"Template_token": ["", "const", "char", "*", "TargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "(", "", ")", "Opcode", ")", "{", "case", "", ":", "break", ";", "case", "", ":", "\\", "return", "", "#", "node", ";"], "ground_truth": ["NODE_NAME_CASE", "(", "RET", ")", "}"], "File": "LoongArchISelLowering1", "Func": "getTargetNodeName", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188354, "Length": 39, "Cover_Rate": 0.7959183673469388} {"Template_token": ["", "switch", "(", "(", "", ")", "Opcode", ")", "{", "case", "", ":", "break", ";"], "ground_truth": ["case", "", ":", "\\", "return", "", "#", "node", ";"], "File": "LoongArchISelLowering1", "Func": "getTargetNodeName", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188355, "Length": 22, "Cover_Rate": 0.4489795918367347} {"Template_token": ["", "break", ";", "}", "SmallVector", "<", "CCValAssign", ">", "ArgLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "MF", ",", "ArgLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "analyzeInputArgs", "(", "CCInfo", ",", "Ins", ",", "CC_", ")", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "ArgLocs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "InVals", ".", "push_back", "(", "unpackFromRegLoc", "(", "DAG", ",", "Chain", ",", "ArgLocs", "[", "i", "]", ",", "DL", ",", "*", "this", ")", ")", ";", "return", "Chain", ";"], "ground_truth": ["}"], "File": "LoongArchISelLowering1", "Func": "LowerFormalArguments", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188356, "Length": 85, "Cover_Rate": 0.5448717948717948} {"Template_token": ["", "SDValue", "Glue", ";", "SmallVector", "<", "SDValue", ",", "", ">", "RetOps", "(", "", ",", "Chain", ")", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "RVLocs", ".", "size", "(", ")", ";", "i", "<", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "VA", ".", "getLocReg", "(", ")", ",", "OutVals", "[", "i", "]", ",", "Glue", ")", ";", "Glue", "=", "Chain", ".", "getValue", "(", "", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "RetOps", "[", "", "]", "=", "Chain", ";", "if", "(", "Glue", ".", "getNode", "(", ")", ")", "RetOps", ".", "push_back", "(", "Glue", ")", ";", "return", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "", ",", "RetOps", ")", ";"], "ground_truth": ["}"], "File": "LoongArchISelLowering1", "Func": "LowerReturn", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188357, "Length": 152, "Cover_Rate": 0.6359832635983264} {"Template_token": ["", "MachineRegisterInfo", "&", "RegInfo", "=", "MF", ".", "getRegInfo", "(", ")", ";", "EVT", "LocVT", "=", "VA", ".", "getLocVT", "(", ")", ";", "const", "TargetRegisterClass", "*", "RC", "=", "TLI", ".", "getRegClassFor", "(", "LocVT", ".", "getSimpleVT", "(", ")", ")", ";", "Register", "VReg", "=", "RegInfo", ".", "createVirtualRegister", "(", "RC", ")", ";"], "ground_truth": ["RegInfo", ".", "addLiveIn", "(", "VA", ".", "getLocReg", "(", ")", ",", "VReg", ")", ";"], "File": "LoongArchISelLowering1", "Func": "unpackFromRegLoc", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188358, "Length": 58, "Cover_Rate": 0.5272727272727272} {"Template_token": ["", "TargetLowering", "::", "TargetLowering", "(", "const", "TargetMachine", "&", "TM", ",", "const", "Subtarget", "&", "STI", ")", ":", "TargetLowering", "(", "TM", ")", ",", "Subtarget", "(", "STI", ")", "{", "MVT", "GRLenVT", "=", "Subtarget", ".", "getGRLenVT", "(", ")", ";", "addRegisterClass", "(", "GRLenVT", ",", "&", "", ")", ";"], "ground_truth": ["computeRegisterProperties", "(", "STI", ".", "getRegisterInfo", "(", ")", ")", ";"], "File": "LoongArchISelLowering", "Func": "LoongArchTargetLowering", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188360, "Length": 51, "Cover_Rate": 0.6986301369863014} {"Template_token": ["", "return", "CalleeSavedStackSize", ";"], "ground_truth": ["}"], "File": "LoongArchMachineFunctionInfo", "Func": "getCalleeSavedStackSize", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188361, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "return", "VarArgsFrameIndex", ";"], "ground_truth": ["}"], "File": "LoongArchMachineFunctionInfo", "Func": "getVarArgsFrameIndex", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188362, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "return", "VarArgsFrameIndex", ";"], "ground_truth": ["}"], "File": "LoongArchMachineFunctionInfo", "Func": "getVarArgsFrameIndex", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188363, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "return", "VarArgsSaveSize", ";"], "ground_truth": ["}"], "File": "LoongArchMachineFunctionInfo", "Func": "getVarArgsSaveSize", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188364, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "MachineFunctionInfo", "(", "const", "MachineFunction", "&", "MF", ")", "{"], "ground_truth": ["}"], "File": "LoongArchMachineFunctionInfo", "Func": "LoongArchMachineFunctionInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188365, "Length": 9, "Cover_Rate": 1.0} {"Template_token": ["", "MachineFunctionInfo", "(", "const", "MachineFunction", "&", "MF", ")", "{"], "ground_truth": ["}"], "File": "LoongArchMachineFunctionInfo", "Func": "LoongArchMachineFunctionInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188366, "Length": 9, "Cover_Rate": 1.0} {"Template_token": ["", "void", "setCalleeSavedStackSize", "(", "unsigned", "Size", ")", "{", "CalleeSavedStackSize", "=", "Size", ";"], "ground_truth": ["}"], "File": "LoongArchMachineFunctionInfo", "Func": "setCalleeSavedStackSize", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188367, "Length": 12, "Cover_Rate": 1.0} {"Template_token": ["", "CalleeSavedStackSize", "=", "Size", ";"], "ground_truth": ["}"], "File": "LoongArchMachineFunctionInfo", "Func": "setCalleeSavedStackSize", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188368, "Length": 5, "Cover_Rate": 0.4166666666666667} {"Template_token": ["", "VarArgsFrameIndex", "=", "Index", ";"], "ground_truth": ["}"], "File": "LoongArchMachineFunctionInfo", "Func": "setVarArgsFrameIndex", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188369, "Length": 5, "Cover_Rate": 0.4166666666666667} {"Template_token": ["", "void", "setVarArgsSaveSize", "(", "int", "Size", ")", "{", "VarArgsSaveSize", "=", "Size", ";"], "ground_truth": ["}"], "File": "LoongArchMachineFunctionInfo", "Func": "setVarArgsSaveSize", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188372, "Length": 12, "Cover_Rate": 1.0} {"Template_token": ["", "else", "if", "(", "SignExtend32", "<", "", ">", "(", "Lo12", ">>", "", ")", "==", "SignExtend32", "<", "", ">", "(", "Hi20", ")", ")", "Insts", ".", "push_back", "(", "Inst", "(", "", ",", "SignExtend64", "<", "", ">", "(", "Lo12", ")", ")", ")", ";", "else", "{", "Insts", ".", "push_back", "(", "Inst", "(", "", ",", "SignExtend64", "<", "", ">", "(", "Hi20", ")", ")", ")", ";", "if", "(", "Lo12", "!=", "", ")", "Insts", ".", "push_back", "(", "Inst", "(", "", ",", "Lo12", ")", ")", ";", "}", "if", "(", "SignExtend32", "<", "", ">", "(", "Hi20", ">>", "", ")", "!=", "SignExtend32", "<", "", ">", "(", "Higher20", ")", ")", "Insts", ".", "push_back", "(", "Inst", "(", "", ",", "SignExtend64", "<", "", ">", "(", "Higher20", ")", ")", ")", ";", "if", "(", "SignExtend32", "<", "", ">", "(", "Higher20", ">>", "", ")", "!=", "SignExtend32", "<", "", ">", "(", "Highest12", ")", ")", "Insts", ".", "push_back", "(", "Inst", "(", "", ",", "SignExtend64", "<", "", ">", "(", "Highest12", ")", ")", ")", ";"], "ground_truth": ["return", "Insts", ";"], "File": "LoongArchMatInt", "Func": "generateInstSeq", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188373, "Length": 157, "Cover_Rate": 0.5587188612099644} {"Template_token": ["", "Inst", "(", "unsigned", "Opc", ",", "int64_t", "Imm", ")", ":", "Opc", "(", "Opc", ")", ",", "Imm", "(", "Imm", ")", "{"], "ground_truth": ["}"], "File": "LoongArchMatInt", "Func": "Inst", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188374, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "Inst", "(", "unsigned", "Opc", ",", "int64_t", "Imm", ")", ":", "Opc", "(", "Opc", ")", ",", "Imm", "(", "Imm", ")", "{"], "ground_truth": ["}"], "File": "LoongArchMatInt", "Func": "Inst", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188375, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "void", "MCAsmInfo", "::", "anchor", "(", ")", "{"], "ground_truth": ["}"], "File": "LoongArchMCAsmInfo", "Func": "anchor", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188376, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "void", "MCAsmInfo", "::", "anchor", "(", ")", "{"], "ground_truth": ["}"], "File": "LoongArchMCAsmInfo", "Func": "anchor", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188377, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "MCAsmInfo", "::", "MCAsmInfo", "(", "const", "Triple", "&", "TT", ")", "{", "CodePointerSize", "=", "CalleeSaveStackSlotSize", "=", "TT", ".", "isArch64Bit", "(", ")", "?", "", ":", "", ";", "AlignmentIsInBytes", "=", "false", ";", "Data8bitsDirective", "=", "", ";", "Data16bitsDirective", "=", "", ";", "Data32bitsDirective", "=", "", ";", "Data64bitsDirective", "=", "", ";", "ZeroDirective", "=", "", ";", "CommentString", "=", "", ";", "SupportsDebugInformation", "=", "true", ";", "DwarfRegNumForCFI", "=", "true", ";"], "ground_truth": ["ExceptionsType", "=", "ExceptionHandling", "::", "DwarfCFI", ";"], "File": "LoongArchMCAsmInfo", "Func": "LoongArchMCAsmInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188378, "Length": 66, "Cover_Rate": 0.9850746268656716} {"Template_token": ["", "return", "new", "MCCodeEmitter", "(", "Ctx", ",", "MCII", ")", ";"], "ground_truth": ["}"], "File": "LoongArchMCCodeEmitter", "Func": "createLoongArchMCCodeEmitter", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188379, "Length": 10, "Cover_Rate": 0.38461538461538464} {"Template_token": ["", "return", "new", "MCCodeEmitter", "(", "Ctx", ",", "MCII", ")", ";"], "ground_truth": ["}"], "File": "LoongArchMCCodeEmitter", "Func": "createLoongArchMCCodeEmitter", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188380, "Length": 10, "Cover_Rate": 0.38461538461538464} {"Template_token": ["", "const", "MCInstrDesc", "&", "Desc", "=", "MCII", ".", "get", "(", "MI", ".", "getOpcode", "(", ")", ")", ";", "unsigned", "Size", "=", "Desc", ".", "getSize", "(", ")", ";", "switch", "(", "Size", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "", ":", "{"], "ground_truth": ["uint32_t", "Bits", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";"], "File": "LoongArchMCCodeEmitter", "Func": "encodeInstruction", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188381, "Length": 53, "Cover_Rate": 0.5247524752475248} {"Template_token": ["", "assert", "(", "(", "Res", "&", "", ")", "==", "", "&&", "", ")", ";", "return", "Res", ">>", "", ";"], "ground_truth": ["}"], "File": "LoongArchMCCodeEmitter", "Func": "getImmOpValueAsr2", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188382, "Length": 19, "Cover_Rate": 0.31666666666666665} {"Template_token": ["", "unsigned", "Res", "=", "MI", ".", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ";", "assert", "(", "(", "Res", "&", "", ")", "==", "", "&&", "", ")", ";"], "ground_truth": ["return", "Res", ">>", "", ";"], "File": "LoongArchMCCodeEmitter", "Func": "getImmOpValueAsr2", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188383, "Length": 32, "Cover_Rate": 0.5333333333333333} {"Template_token": ["", "unsigned", "MCCodeEmitter", "::", "getImmOpValueSub1", "(", "const", "MCInst", "&", "MI", ",", "unsigned", "OpNo", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{"], "ground_truth": ["return", "MI", ".", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", "-", "", ";"], "File": "LoongArchMCCodeEmitter", "Func": "getImmOpValueSub1", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188384, "Length": 41, "Cover_Rate": 0.9761904761904762} {"Template_token": ["", "unsigned", "MCCodeEmitter", "::", "getMachineOpValue", "(", "const", "MCInst", "&", "MI", ",", "const", "MCOperand", "&", "MO", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{"], "ground_truth": ["if", "(", "MO", ".", "isReg", "(", ")", ")", "return", "Ctx", ".", "getRegisterInfo", "(", ")", "->", "getEncodingValue", "(", "MO", ".", "getReg", "(", ")", ")", ";"], "File": "LoongArchMCCodeEmitter", "Func": "getMachineOpValue", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188386, "Length": 53, "Cover_Rate": 0.6625} {"Template_token": ["", "MCCodeEmitter", "(", "MCContext", "&", "ctx", ",", "MCInstrInfo", "const", "&", "MCII", ")", ":", "Ctx", "(", "ctx", ")", ",", "MCII", "(", "MCII", ")", "{"], "ground_truth": ["}"], "File": "LoongArchMCCodeEmitter", "Func": "LoongArchMCCodeEmitter", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188387, "Length": 23, "Cover_Rate": 1.0} {"Template_token": ["", "MCCodeEmitter", "(", "MCContext", "&", "ctx", ",", "MCInstrInfo", "const", "&", "MCII", ")", ":", "Ctx", "(", "ctx", ")", ",", "MCII", "(", "MCII", ")", "{"], "ground_truth": ["}"], "File": "LoongArchMCCodeEmitter", "Func": "LoongArchMCCodeEmitter", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188388, "Length": 23, "Cover_Rate": 1.0} {"Template_token": ["", "~", "MCCodeEmitter", "(", ")", "override", "{"], "ground_truth": ["}"], "File": "LoongArchMCCodeEmitter", "Func": "~LoongArchMCCodeEmitter", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188389, "Length": 7, "Cover_Rate": 1.0} {"Template_token": ["", "~", "MCCodeEmitter", "(", ")", "override", "{"], "ground_truth": ["}"], "File": "LoongArchMCCodeEmitter", "Func": "~LoongArchMCCodeEmitter", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188390, "Length": 7, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "llvm", "::", "lowerMachineInstrToMCInst", "(", "const", "MachineInstr", "*", "MI", ",", "MCInst", "&", "OutMI", ",", "AsmPrinter", "&", "AP", ")", "{"], "ground_truth": ["OutMI", ".", "setOpcode", "(", "MI", "->", "getOpcode", "(", ")", ")", ";"], "File": "LoongArchMCInstLower", "Func": "lowerLoongArchMachineInstrToMCInst", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188391, "Length": 30, "Cover_Rate": 0.42857142857142855} {"Template_token": ["", "case", "MachineOperand", "::", "MO_Immediate", ":", "MCOp", "=", "MCOperand", "::", "createImm", "(", "MO", ".", "getImm", "(", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_MachineBasicBlock", ":", "case", "MachineOperand", "::", "MO_GlobalAddress", ":", "case", "MachineOperand", "::", "MO_BlockAddress", ":"], "ground_truth": ["case", "MachineOperand", "::", "MO_ExternalSymbol", ":"], "File": "LoongArchMCInstLower", "Func": "lowerLoongArchMachineOperandToMCOperand", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188392, "Length": 40, "Cover_Rate": 0.30303030303030304} {"Template_token": ["", "MCCFIInstruction", "Inst", "=", "MCCFIInstruction", "::", "cfiDefCfa", "(", "nullptr", ",", "SP", ",", "", ")", ";", "MAI", "->", "addInitialFrameState", "(", "Inst", ")", ";"], "ground_truth": ["return", "MAI", ";"], "File": "LoongArchMCTargetDesc1", "Func": "createLoongArchMCAsmInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188393, "Length": 24, "Cover_Rate": 0.34285714285714286} {"Template_token": ["", "static", "MCInstrAnalysis", "*", "createInstrAnalysis", "(", "const", "MCInstrInfo", "*", "Info", ")", "{"], "ground_truth": ["return", "new", "MCInstrAnalysis", "(", "Info", ")", ";"], "File": "LoongArchMCTargetDesc", "Func": "createLoongArchInstrAnalysis", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188394, "Length": 18, "Cover_Rate": 0.9473684210526315} {"Template_token": ["", "static", "MCInstrAnalysis", "*", "createInstrAnalysis", "(", "const", "MCInstrInfo", "*", "Info", ")", "{", "return", "new", "MCInstrAnalysis", "(", "Info", ")", ";"], "ground_truth": ["}"], "File": "LoongArchMCTargetDesc", "Func": "createLoongArchInstrAnalysis", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188395, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "MCAsmInfo", "*", "MAI", "=", "new", "MCAsmInfo", "(", "TT", ")", ";", "MCRegister", "SP", "=", "MRI", ".", "getDwarfRegNum", "(", "", ",", "true", ")", ";"], "ground_truth": ["MCCFIInstruction", "Inst", "=", "MCCFIInstruction", "::", "cfiDefCfa", "(", "nullptr", ",", "SP", ",", "", ")", ";"], "File": "LoongArchMCTargetDesc", "Func": "createLoongArchMCAsmInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188396, "Length": 36, "Cover_Rate": 0.5142857142857142} {"Template_token": ["", "MCRegister", "SP", "=", "MRI", ".", "getDwarfRegNum", "(", "", ",", "true", ")", ";", "MCCFIInstruction", "Inst", "=", "MCCFIInstruction", "::", "cfiDefCfa", "(", "nullptr", ",", "SP", ",", "", ")", ";", "MAI", "->", "addInitialFrameState", "(", "Inst", ")", ";"], "ground_truth": ["return", "MAI", ";"], "File": "LoongArchMCTargetDesc", "Func": "createLoongArchMCAsmInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188397, "Length": 36, "Cover_Rate": 0.5142857142857142} {"Template_token": ["", "static", "MCInstPrinter", "*", "createMCInstPrinter", "(", "const", "Triple", "&", "T", ",", "unsigned", "SyntaxVariant", ",", "const", "MCAsmInfo", "&", "MAI", ",", "const", "MCInstrInfo", "&", "MII", ",", "const", "MCRegisterInfo", "&", "MRI", ")", "{", "return", "new", "InstPrinter", "(", "MAI", ",", "MII", ",", "MRI", ")", ";"], "ground_truth": ["}"], "File": "LoongArchMCTargetDesc", "Func": "createLoongArchMCInstPrinter", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188398, "Length": 41, "Cover_Rate": 1.0} {"Template_token": ["", "MCInstrInfo", "*", "X", "=", "new", "MCInstrInfo", "(", ")", ";"], "ground_truth": ["InitMCInstrInfo", "(", "X", ")", ";"], "File": "LoongArchMCTargetDesc", "Func": "createLoongArchMCInstrInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188399, "Length": 14, "Cover_Rate": 0.56} {"Template_token": ["", "static", "MCInstrInfo", "*", "createMCInstrInfo", "(", ")", "{", "MCInstrInfo", "*", "X", "=", "new", "MCInstrInfo", "(", ")", ";", "InitMCInstrInfo", "(", "X", ")", ";", "return", "X", ";"], "ground_truth": ["}"], "File": "LoongArchMCTargetDesc", "Func": "createLoongArchMCInstrInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188400, "Length": 25, "Cover_Rate": 1.0} {"Template_token": ["", "InitMCRegisterInfo", "(", "X", ",", "", ")", ";"], "ground_truth": ["return", "X", ";"], "File": "LoongArchMCTargetDesc", "Func": "createLoongArchMCRegisterInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188401, "Length": 10, "Cover_Rate": 0.30303030303030304} {"Template_token": ["", "MCRegisterInfo", "*", "X", "=", "new", "MCRegisterInfo", "(", ")", ";", "InitMCRegisterInfo", "(", "X", ",", "", ")", ";"], "ground_truth": ["return", "X", ";"], "File": "LoongArchMCTargetDesc", "Func": "createLoongArchMCRegisterInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188402, "Length": 19, "Cover_Rate": 0.5757575757575758} {"Template_token": ["", "static", "MCSubtargetInfo", "*", "createMCSubtargetInfo", "(", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ")", "{", "if", "(", "CPU", ".", "empty", "(", ")", ")", "CPU", "=", "TT", ".", "isArch64Bit", "(", ")", "?", "", ":", "", ";"], "ground_truth": ["return", "createMCSubtargetInfoImpl", "(", "TT", ",", "CPU", ",", "CPU", ",", "FS", ")", ";"], "File": "LoongArchMCTargetDesc", "Func": "createLoongArchMCSubtargetInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188403, "Length": 49, "Cover_Rate": 0.98} {"Template_token": ["", "unsigned", "NumOps", "=", "Inst", ".", "getNumOperands", "(", ")", ";", "if", "(", "isBranch", "(", "Inst", ")", "||", "Inst", ".", "getOpcode", "(", ")", "==", "", ")", "{", "Target", "=", "Addr", "+", "Inst", ".", "getOperand", "(", "NumOps", "-", "", ")", ".", "getImm", "(", ")", ";"], "ground_truth": ["return", "true", ";"], "File": "LoongArchMCTargetDesc", "Func": "evaluateBranch", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188404, "Length": 45, "Cover_Rate": 0.6164383561643836} {"Template_token": ["", "TargetRegistry", "::", "RegisterMCSubtargetInfo", "(", "*", "T", ",", "createMCSubtargetInfo", ")", ";", "TargetRegistry", "::", "RegisterMCAsmInfo", "(", "*", "T", ",", "createMCAsmInfo", ")", ";", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "*", "T", ",", "createMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "*", "T", ",", "createAsmBackend", ")", ";"], "ground_truth": ["TargetRegistry", "::", "RegisterMCInstPrinter", "(", "*", "T", ",", "createMCInstPrinter", ")", ";"], "File": "LoongArchMCTargetDesc", "Func": "LLVMInitializeLoongArchTargetMC", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188405, "Length": 50, "Cover_Rate": 0.4672897196261682} {"Template_token": ["", "explicit", "MCInstrAnalysis", "(", "const", "MCInstrInfo", "*", "Info", ")", ":", "MCInstrAnalysis", "(", "Info", ")", "{"], "ground_truth": ["}"], "File": "LoongArchMCTargetDesc", "Func": "LoongArchMCInstrAnalysis", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188406, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "MCInstrAnalysis", "(", "const", "MCInstrInfo", "*", "Info", ")", ":", "MCInstrAnalysis", "(", "Info", ")", "{"], "ground_truth": ["}"], "File": "LoongArchMCTargetDesc", "Func": "LoongArchMCInstrAnalysis", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188407, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "switch", "(", "Subtarget", ".", "getTargetABI", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "", ":", "case", "", ":", "return", "CSR_ILP32S_LP64S_RegMask", ";", "case", "", ":", "case", "", ":", "return", "CSR_ILP32F_LP64F_RegMask", ";", "case", "", ":", "case", "", ":", "return", "CSR_ILP32D_LP64D_RegMask", ";", "}"], "ground_truth": ["}"], "File": "LoongArchRegisterInfo", "Func": "getCallPreservedMask", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188409, "Length": 45, "Cover_Rate": 0.5056179775280899} {"Template_token": ["", "return", "TFI", "->", "hasFP", "(", "MF", ")", "?", "", ":", "", ";"], "ground_truth": ["}"], "File": "LoongArchRegisterInfo", "Func": "getFrameRegister", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188410, "Length": 13, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "const", "uint32_t", "*", "RegisterInfo", "::", "getNoPreservedMask", "(", ")", "const", "{", "return", "CSR_NoRegs_RegMask", ";"], "ground_truth": ["}"], "File": "LoongArchRegisterInfo", "Func": "getNoPreservedMask", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188411, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "const", "TargetRegisterClass", "*", "getPointerRegClass", "(", "const", "MachineFunction", "&", "MF", ",", "unsigned", "Kind", "=", "", ")", "const", "override", "{", "return", "&", "", ";"], "ground_truth": ["}"], "File": "LoongArchRegisterInfo", "Func": "getPointerRegClass", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188412, "Length": 23, "Cover_Rate": 0.92} {"Template_token": ["", "bool", "RegisterInfo", "::", "isConstantPhysReg", "(", "MCRegister", "PhysReg", ")", "const", "{"], "ground_truth": ["return", "PhysReg", "==", "", ";"], "File": "LoongArchRegisterInfo", "Func": "isConstantPhysReg", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188414, "Length": 15, "Cover_Rate": 0.8333333333333334} {"Template_token": ["", "RegisterInfo", "::", "RegisterInfo", "(", "unsigned", "HwMode", ")", ":", "GenRegisterInfo", "(", "", ",", "", ",", "", ",", "", ",", "HwMode", ")", "{"], "ground_truth": ["}"], "File": "LoongArchRegisterInfo", "Func": "LoongArchRegisterInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188415, "Length": 22, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "RegisterInfo", "::", "RegisterInfo", "(", "unsigned", "HwMode", ")", ":", "GenRegisterInfo", "(", "", ",", "", ",", "", ",", "", ",", "HwMode", ")", "{"], "ground_truth": ["}"], "File": "LoongArchRegisterInfo", "Func": "LoongArchRegisterInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188416, "Length": 22, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "void", "Subtarget", "::", "anchor", "(", ")", "{"], "ground_truth": ["}"], "File": "LoongArchSubtarget", "Func": "anchor", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188417, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "void", "Subtarget", "::", "anchor", "(", ")", "{"], "ground_truth": ["}"], "File": "LoongArchSubtarget", "Func": "anchor", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188418, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "return", "GRLen", ";"], "ground_truth": ["}"], "File": "LoongArchSubtarget", "Func": "getGRLen", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188420, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "unsigned", "getGRLen", "(", ")", "const", "{", "return", "GRLen", ";"], "ground_truth": ["}"], "File": "LoongArchSubtarget", "Func": "getGRLen", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188421, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "MVT", "getGRLenVT", "(", ")", "const", "{", "return", "GRLenVT", ";"], "ground_truth": ["}"], "File": "LoongArchSubtarget", "Func": "getGRLenVT", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188423, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "const", "InstrInfo", "*", "getInstrInfo", "(", ")", "const", "override", "{"], "ground_truth": ["return", "&", "InstrInfo", ";"], "File": "LoongArchSubtarget", "Func": "getInstrInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188424, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "return", "&", "RegInfo", ";"], "ground_truth": ["}"], "File": "LoongArchSubtarget", "Func": "getRegisterInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188426, "Length": 5, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "return", "&", "RegInfo", ";"], "ground_truth": ["}"], "File": "LoongArchSubtarget", "Func": "getRegisterInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188427, "Length": 5, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "", "getTargetABI", "(", ")", "const", "{", "return", "TargetABI", ";"], "ground_truth": ["}"], "File": "LoongArchSubtarget", "Func": "getTargetABI", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188428, "Length": 10, "Cover_Rate": 0.8333333333333334} {"Template_token": ["", "return", "TargetABI", ";"], "ground_truth": ["}"], "File": "LoongArchSubtarget", "Func": "getTargetABI", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188429, "Length": 4, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "return", "&", "TLInfo", ";"], "ground_truth": ["}"], "File": "LoongArchSubtarget", "Func": "getTargetLowering", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188430, "Length": 5, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "const", "TargetLowering", "*", "getTargetLowering", "(", ")", "const", "override", "{", "return", "&", "TLInfo", ";"], "ground_truth": ["}"], "File": "LoongArchSubtarget", "Func": "getTargetLowering", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188431, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "hasBasicD", "(", ")", "const", "{"], "ground_truth": ["return", "HasBasicD", ";"], "File": "LoongArchSubtarget", "Func": "hasBasicD", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188433, "Length": 9, "Cover_Rate": 0.9} {"Template_token": ["", "return", "HasBasicF", ";"], "ground_truth": ["}"], "File": "LoongArchSubtarget", "Func": "hasBasicF", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188434, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "return", "HasExtLASX", ";"], "ground_truth": ["}"], "File": "LoongArchSubtarget", "Func": "hasExtLASX", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188436, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "return", "HasExtLBT", ";"], "ground_truth": ["}"], "File": "LoongArchSubtarget", "Func": "hasExtLBT", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188437, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "bool", "hasExtLBT", "(", ")", "const", "{", "return", "HasExtLBT", ";"], "ground_truth": ["}"], "File": "LoongArchSubtarget", "Func": "hasExtLBT", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188438, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "hasExtLSX", "(", ")", "const", "{"], "ground_truth": ["return", "HasExtLSX", ";"], "File": "LoongArchSubtarget", "Func": "hasExtLSX", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188439, "Length": 9, "Cover_Rate": 0.9} {"Template_token": ["", "bool", "hasExtLSX", "(", ")", "const", "{"], "ground_truth": ["return", "HasExtLSX", ";"], "File": "LoongArchSubtarget", "Func": "hasExtLSX", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188440, "Length": 9, "Cover_Rate": 0.9} {"Template_token": ["", "return", "HasExtLVZ", ";"], "ground_truth": ["}"], "File": "LoongArchSubtarget", "Func": "hasExtLVZ", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188441, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "ParseSubtargetFeatures", "(", "CPU", ",", "TuneCPU", ",", "FS", ")", ";", "if", "(", "Is64Bit", ")", "{", "GRLenVT", "=", "", ";", "GRLen", "=", "", ";", "}"], "ground_truth": ["TargetABI", "=", "Is64Bit", "?", "", ":", "", ";"], "File": "LoongArchSubtarget", "Func": "initializeSubtargetDependencies", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188442, "Length": 31, "Cover_Rate": 0.30097087378640774} {"Template_token": ["", "bool", "Is64Bit", "=", "TT", ".", "isArch64Bit", "(", ")", ";", "if", "(", "CPU", ".", "empty", "(", ")", ")", "CPU", "=", "Is64Bit", "?", "", ":", "", ";", "if", "(", "TuneCPU", ".", "empty", "(", ")", ")", "TuneCPU", "=", "CPU", ";", "ParseSubtargetFeatures", "(", "CPU", ",", "TuneCPU", ",", "FS", ")", ";", "if", "(", "Is64Bit", ")", "{", "GRLenVT", "=", "", ";", "GRLen", "=", "", ";", "}"], "ground_truth": ["TargetABI", "=", "Is64Bit", "?", "", ":", "", ";"], "File": "LoongArchSubtarget", "Func": "initializeSubtargetDependencies", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188443, "Length": 68, "Cover_Rate": 0.6601941747572816} {"Template_token": ["", "bool", "is64Bit", "(", ")", "const", "{", "return", "HasLA64", ";"], "ground_truth": ["}"], "File": "LoongArchSubtarget", "Func": "is64Bit", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188444, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "is64Bit", "(", ")", "const", "{"], "ground_truth": ["return", "HasLA64", ";"], "File": "LoongArchSubtarget", "Func": "is64Bit", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188445, "Length": 9, "Cover_Rate": 0.9} {"Template_token": ["", "Subtarget", "::", "Subtarget", "(", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "TuneCPU", ",", "StringRef", "FS", ",", "StringRef", "ABIName", ",", "const", "TargetMachine", "&", "TM", ")", ":", "GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "TuneCPU", ",", "FS", ")", ",", "FrameLowering", "(", "initializeSubtargetDependencies", "(", "TT", ",", "CPU", ",", "TuneCPU", ",", "FS", ",", "ABIName", ")", ")", ",", "InstrInfo", "(", "*", "this", ")", ",", "RegInfo", "(", "getHwMode", "(", ")", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{"], "ground_truth": ["}"], "File": "LoongArchSubtarget", "Func": "LoongArchSubtarget", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188446, "Length": 76, "Cover_Rate": 1.0} {"Template_token": ["", "Subtarget", "::", "Subtarget", "(", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "TuneCPU", ",", "StringRef", "FS", ",", "StringRef", "ABIName", ",", "const", "TargetMachine", "&", "TM", ")", ":", "GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "TuneCPU", ",", "FS", ")", ",", "FrameLowering", "(", "initializeSubtargetDependencies", "(", "TT", ",", "CPU", ",", "TuneCPU", ",", "FS", ",", "ABIName", ")", ")", ",", "InstrInfo", "(", "*", "this", ")", ",", "RegInfo", "(", "getHwMode", "(", ")", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{"], "ground_truth": ["}"], "File": "LoongArchSubtarget", "Func": "LoongArchSubtarget", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188447, "Length": 76, "Cover_Rate": 1.0} {"Template_token": ["", "static", "Target", "The32Target", ";", "return", "The32Target", ";"], "ground_truth": ["}"], "File": "LoongArchTargetInfo", "Func": "getTheLoongArch32Target", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188448, "Length": 8, "Cover_Rate": 0.5} {"Template_token": ["", "Target", "&", "llvm", "::", "getThe32Target", "(", ")", "{", "static", "Target", "The32Target", ";", "return", "The32Target", ";"], "ground_truth": ["}"], "File": "LoongArchTargetInfo", "Func": "getTheLoongArch32Target", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188449, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "RegisterTarget", "<", "Triple", "::", "loongarch32", ",", "false", ">", "X", "(", "getThe32Target", "(", ")", ",", "", ",", "", ",", "", ")", ";", "RegisterTarget", "<", "Triple", "::", "loongarch64", ",", "false", ">", "Y", "(", "getThe64Target", "(", ")", ",", "", ",", "", ",", "", ")", ";"], "ground_truth": ["}"], "File": "LoongArchTargetInfo", "Func": "LLVMInitializeLoongArchTargetInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188450, "Length": 43, "Cover_Rate": 0.8775510204081632} {"Template_token": ["", "LLVM_EXTERNAL_VISIBILITY", "void", "LLVMInitializeTargetInfo", "(", ")", "{", "RegisterTarget", "<", "Triple", "::", "loongarch32", ",", "false", ">", "X", "(", "getThe32Target", "(", ")", ",", "", ",", "", ",", "", ")", ";"], "ground_truth": ["RegisterTarget", "<", "Triple", "::", "loongarch64", ",", "false", ">", "Y", "(", "getThe64Target", "(", ")", ",", "", ",", "", ",", "", ")", ";"], "File": "LoongArchTargetInfo", "Func": "LLVMInitializeLoongArchTargetInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188451, "Length": 48, "Cover_Rate": 0.9795918367346939} {"Template_token": ["", "static", "std", "::", "string", "computeDataLayout", "(", "const", "Triple", "&", "TT", ")", "{", "if", "(", "TT", ".", "isArch64Bit", "(", ")", ")", "return", "", ";", "assert", "(", "TT", ".", "isArch32Bit", "(", ")", "&&", "", ")", ";"], "ground_truth": ["return", "", ";"], "File": "LoongArchTargetMachine1", "Func": "computeDataLayout", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188452, "Length": 37, "Cover_Rate": 0.9736842105263158} {"Template_token": ["", "static", "std", "::", "string", "computeDataLayout", "(", "const", "Triple", "&", "TT", ")", "{", "if", "(", "TT", ".", "isArch64Bit", "(", ")", ")", "return", "", ";"], "ground_truth": ["assert", "(", "TT", ".", "isArch32Bit", "(", ")", "&&", "", ")", ";"], "File": "LoongArchTargetMachine1", "Func": "computeDataLayout", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188453, "Length": 34, "Cover_Rate": 0.8947368421052632} {"Template_token": ["", "bool", "PassConfig", "::", "addInstSelector", "(", ")", "{"], "ground_truth": ["addPass", "(", "createISelDag", "(", "getTargetMachine", "(", ")", ")", ")", ";"], "File": "LoongArchTargetMachine", "Func": "addInstSelector", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188454, "Length": 17, "Cover_Rate": 0.8095238095238095} {"Template_token": ["", "bool", "PassConfig", "::", "addInstSelector", "(", ")", "{", "addPass", "(", "createISelDag", "(", "getTargetMachine", "(", ")", ")", ")", ";"], "ground_truth": ["return", "false", ";"], "File": "LoongArchTargetMachine", "Func": "addInstSelector", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188455, "Length": 20, "Cover_Rate": 0.9523809523809523} {"Template_token": ["", "static", "std", "::", "string", "computeDataLayout", "(", "const", "Triple", "&", "TT", ")", "{", "std", "::", "string", "Ret", ";"], "ground_truth": ["Ret", "+=", "", ";"], "File": "LoongArchTargetMachine", "Func": "computeDataLayout", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188456, "Length": 21, "Cover_Rate": 0.84} {"Template_token": ["", "std", "::", "string", "Ret", ";", "Ret", "+=", "", ";", "return", "Ret", ";"], "ground_truth": ["}"], "File": "LoongArchTargetMachine", "Func": "computeDataLayout", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188457, "Length": 13, "Cover_Rate": 0.52} {"Template_token": ["", "return", "new", "PassConfig", "(", "*", "this", ",", "PM", ")", ";"], "ground_truth": ["}"], "File": "LoongArchTargetMachine", "Func": "createPassConfig", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188458, "Length": 11, "Cover_Rate": 0.5} {"Template_token": ["", "return", "new", "PassConfig", "(", "*", "this", ",", "PM", ")", ";"], "ground_truth": ["}"], "File": "LoongArchTargetMachine", "Func": "createPassConfig", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188459, "Length": 11, "Cover_Rate": 0.5} {"Template_token": ["", "static", "Reloc", "::", "Model", "getEffectiveRelocModel", "(", "const", "Triple", "&", "TT", ",", "Optional", "<", "Reloc", "::", "Model", ">", "RM", ")", "{"], "ground_truth": ["if", "(", "!", "RM", ".", "hasValue", "(", ")", ")", "return", "Reloc", "::", "Static", ";"], "File": "LoongArchTargetMachine", "Func": "getEffectiveRelocModel", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188460, "Length": 34, "Cover_Rate": 0.8717948717948718} {"Template_token": ["", "return", "getTM", "<", "TargetMachine", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchTargetMachine", "Func": "getLoongArchTargetMachine", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188462, "Length": 9, "Cover_Rate": 0.5625} {"Template_token": ["", "TargetMachine", "&", "getTargetMachine", "(", ")", "const", "{", "return", "getTM", "<", "TargetMachine", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchTargetMachine", "Func": "getLoongArchTargetMachine", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188463, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "TargetLoweringObjectFile", "*", "getObjFileLowering", "(", ")", "const", "override", "{", "return", "TLOF", ".", "get", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchTargetMachine", "Func": "getObjFileLowering", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188464, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "TargetLoweringObjectFile", "*", "getObjFileLowering", "(", ")", "const", "override", "{", "return", "TLOF", ".", "get", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchTargetMachine", "Func": "getObjFileLowering", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188465, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "std", "::", "string", "FS", "=", "FSAttr", ".", "isValid", "(", ")", "?", "FSAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetFS", ";", "std", "::", "string", "Key", "=", "CPU", "+", "TuneCPU", "+", "FS", ";", "auto", "&", "I", "=", "SubtargetMap", "[", "Key", "]", ";", "if", "(", "!", "I", ")", "{", "resetTargetOptions", "(", "F", ")", ";", "auto", "ABIName", "=", "Options", ".", "MCOptions", ".", "getABIName", "(", ")", ";", "if", "(", "const", "MDString", "*", "ModuleTargetABI", "=", "dyn_cast_or_null", "<", "MDString", ">", "(", "F", ".", "getParent", "(", ")", "->", "getModuleFlag", "(", "", ")", ")", ")", "{", "auto", "TargetABI", "=", "", "(", "ABIName", ")", ";", "if", "(", "TargetABI", "!=", "", "&&", "ModuleTargetABI", "->", "getString", "(", ")", "!=", "ABIName", ")", "{", "report_fatal_error", "(", "", ")", ";", "}", "ABIName", "=", "ModuleTargetABI", "->", "getString", "(", ")", ";", "}"], "ground_truth": ["I", "=", "std", "::", "make_unique", "<", "Subtarget", ">", "(", "TargetTriple", ",", "CPU", ",", "TuneCPU", ",", "FS", ",", "ABIName", ",", "*", "this", ")", ";"], "File": "LoongArchTargetMachine", "Func": "getSubtargetImpl", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188466, "Length": 151, "Cover_Rate": 0.594488188976378} {"Template_token": ["", "LLVM_EXTERNAL_VISIBILITY", "void", "LLVMInitializeTarget", "(", ")", "{"], "ground_truth": ["RegisterTargetMachine", "<", "TargetMachine", ">", "X", "(", "getThe32Target", "(", ")", ")", ";"], "File": "LoongArchTargetMachine", "Func": "LLVMInitializeLoongArchTarget", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188467, "Length": 17, "Cover_Rate": 0.5862068965517241} {"Template_token": ["", "RegisterTargetMachine", "<", "TargetMachine", ">", "Y", "(", "getThe64Target", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "LoongArchTargetMachine", "Func": "LLVMInitializeLoongArchTarget", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188468, "Length": 12, "Cover_Rate": 0.41379310344827586} {"Template_token": ["", "PassConfig", "(", "TargetMachine", "&", "TM", ",", "PassManagerBase", "&", "PM", ")", ":", "TargetPassConfig", "(", "TM", ",", "PM", ")", "{"], "ground_truth": ["}"], "File": "LoongArchTargetMachine", "Func": "LoongArchPassConfig", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188469, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "PassConfig", "(", "TargetMachine", "&", "TM", ",", "PassManagerBase", "&", "PM", ")", ":", "TargetPassConfig", "(", "TM", ",", "PM", ")", "{"], "ground_truth": ["}"], "File": "LoongArchTargetMachine", "Func": "LoongArchPassConfig", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188470, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "TargetMachine", "::", "TargetMachine", "(", "const", "Target", "&", "T", ",", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Optional", "<", "Reloc", "::", "Model", ">", "RM", ",", "Optional", "<", "CodeModel", "::", "Model", ">", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ",", "bool", "JIT", ")", ":", "LLVMTargetMachine", "(", "T", ",", "computeDataLayout", "(", "TT", ")", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "getEffectiveRelocModel", "(", "TT", ",", "RM", ")", ",", "getEffectiveCodeModel", "(", "CM", ",", "CodeModel", "::", "Small", ")", ",", "OL", ")", ",", "TLOF", "(", "std", "::", "make_unique", "<", "TargetLoweringObjectFileELF", ">", "(", ")", ")", "{", "initAsmInfo", "(", ")", ";"], "ground_truth": ["}"], "File": "LoongArchTargetMachine", "Func": "LoongArchTargetMachine", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188471, "Length": 103, "Cover_Rate": 1.0}