{"Template_token": ["", "return", "new", "AsmBackend", "(", "T", ",", "STI", ".", "getTargetTriple", "(", ")", ".", "getOS", "("], "ground_truth": [")", ")", ";"], "File": "LC2200AsmBackend", "Func": "createLC2200AsmBackend", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112015, "Length": 17, "Cover_Rate": 0.32075471698113206} {"Template_token": ["", "std", "::", "unique_ptr", "<", "MCObjectTargetWriter", ">", "AsmBackend", "::", "createObjectTargetWriter", "(", ")", "const", "{", "if", "(", "OSType", "==", "Triple", "::", "OSType", "::", "UnknownOS"], "ground_truth": [")", "{"], "File": "LC2200AsmBackend", "Func": "createObjectTargetWriter", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112016, "Length": 24, "Cover_Rate": 0.6486486486486487} {"Template_token": ["", "bool", "AsmBackend", "::", "fixupNeedsRelaxation", "(", "const", "MCFixup", "&", "Fixup", ",", "uint64_t", "Value", ",", "const", "MCRelaxableFragment", "*", "DF"], "ground_truth": [",", "const", "MCAsmLayout", "&", "Layout", ")", "const", "{"], "File": "LC2200AsmBackend", "Func": "fixupNeedsRelaxation", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112017, "Length": 25, "Cover_Rate": 0.8620689655172413} {"Template_token": ["", "unsigned", "int", "AsmBackend", "::", "getNumFixupKinds", "(", ")", "const", "{", "return", "", "::"], "ground_truth": ["NumTargetFixupKinds", ";"], "File": "LC2200AsmBackend", "Func": "getNumFixupKinds", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112018, "Length": 14, "Cover_Rate": 0.8235294117647058} {"Template_token": ["", "bool", "AsmBackend", "::", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "return"], "ground_truth": ["false", ";"], "File": "LC2200AsmBackend", "Func": "mayNeedRelaxation", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112019, "Length": 20, "Cover_Rate": 0.9523809523809523} {"Template_token": ["", "void", "addExpr", "(", "MCInst", "&", "Inst", ",", "const", "MCExpr", "*", "Expr", ")", "const", "{", "if", "(", "Expr", "==", "nullptr", ")", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "", ")", ")", ";", "else", "if", "(", "const", "auto", "*", "CE", "=", "dyn_cast", "<", "MCConstantExpr", ">", "(", "Expr", ")", ")", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "CE"], "ground_truth": ["->", "getValue", "(", ")", ")", ")", ";"], "File": "LC2200AsmParser", "Func": "addExpr", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112020, "Length": 64, "Cover_Rate": 0.8205128205128205} {"Template_token": ["", "void", "addExpr", "(", "MCInst", "&", "Inst", ",", "const", "MCExpr", "*", "Expr", ")", "const", "{", "if", "(", "Expr", "==", "nullptr", ")", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "", ")", ")", ";", "else", "if", "(", "const", "auto", "*", "CE", "=", "dyn_cast", "<", "MCConstantExpr", ">", "(", "Expr", ")", ")", "Inst", ".", "addOperand", "(", "MCOperand"], "ground_truth": ["::", "createImm", "(", "CE", "->", "getValue", "(", ")", ")", ")", ";"], "File": "LC2200AsmParser", "Func": "addExpr", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112021, "Length": 64, "Cover_Rate": 0.8205128205128205} {"Template_token": ["", "assert", "(", "N", "==", "", "&&", "", ")", ";", "addExpr", "(", "Inst", ",", "getImm", "(", ")"], "ground_truth": [")", ";"], "File": "LC2200AsmParser", "Func": "addImm20Operands", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112022, "Length": 18, "Cover_Rate": 0.5806451612903226} {"Template_token": ["", "assert", "(", "N", "==", "", "&&", "", ")", ";", "addExpr", "(", "Inst", ",", "getImm", "("], "ground_truth": [")", ")", ";"], "File": "LC2200AsmParser", "Func": "addImm20Operands", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112023, "Length": 18, "Cover_Rate": 0.5806451612903226} {"Template_token": ["", "void", "addRegOperands", "(", "MCInst", "&", "Inst", ",", "unsigned", "N", ")", "const", "{", "assert", "(", "N", "==", "", "&&", "", ")", ";", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "getReg"], "ground_truth": ["(", ")", ")", ")", ";"], "File": "LC2200AsmParser", "Func": "addRegOperands", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112024, "Length": 35, "Cover_Rate": 0.9722222222222222} {"Template_token": ["", "auto", "Op", "=", "std", "::", "make_unique", "<", "Operand", ">", "(", "k_Register", ")", ";", "Op", "->", "Reg", ".", "Num"], "ground_truth": ["=", "RegNo", ";"], "File": "LC2200AsmParser", "Func": "createReg", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112025, "Length": 21, "Cover_Rate": 0.375} {"Template_token": ["", "auto", "Op", "=", "std", "::", "make_unique", "<", "Operand", ">", "(", "k_Token", ")", ";", "Op", "->", "Tok", ".", "Data", "=", "Str", ".", "data", "(", ")", ";", "Op", "->", "Tok", ".", "Length", "=", "Str", ".", "size", "(", ")", ";", "Op", "->", "StartLoc", "=", "S", ";", "Op", "->", "EndLoc", "=", "S", ";", "return", "Op"], "ground_truth": [";"], "File": "LC2200AsmParser", "Func": "CreateToken", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112026, "Length": 52, "Cover_Rate": 0.7536231884057971} {"Template_token": ["", "SMLoc", "getEndLoc", "(", ")", "const"], "ground_truth": ["override", "{"], "File": "LC2200AsmParser", "Func": "getEndLoc", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112027, "Length": 7, "Cover_Rate": 0.6363636363636364} {"Template_token": ["", "const", "MCExpr", "*", "getImm", "(", ")", "const", "{", "assert", "(", "Kind", "==", "k_Immediate", "&&", "", ")", ";", "return", "Imm", "."], "ground_truth": ["Val", ";"], "File": "LC2200AsmParser", "Func": "getImm", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112028, "Length": 22, "Cover_Rate": 0.9565217391304348} {"Template_token": ["", "unsigned", "getReg", "(", ")", "const", "override", "{", "assert", "(", "Kind", "==", "k_Register", "&&", "", ")", ";", "return", "Reg", "."], "ground_truth": ["Num", ";"], "File": "LC2200AsmParser", "Func": "getReg", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112029, "Length": 21, "Cover_Rate": 0.9545454545454546} {"Template_token": ["", "StringRef", "getToken", "(", ")", "const", "{", "assert", "(", "Kind", "==", "k_Token", "&&", "", ")", ";", "return", "StringRef", "(", "Tok", ".", "Data", ","], "ground_truth": ["Tok", ".", "Length", ")", ";"], "File": "LC2200AsmParser", "Func": "getToken", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112030, "Length": 27, "Cover_Rate": 0.9642857142857143} {"Template_token": ["", "StringRef", "getToken", "(", ")", "const", "{", "assert", "(", "Kind", "==", "k_Token", "&&", ""], "ground_truth": [")", ";"], "File": "LC2200AsmParser", "Func": "getToken", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112031, "Length": 15, "Cover_Rate": 0.5357142857142857} {"Template_token": ["", "bool", "isImm", "(", ")", "const"], "ground_truth": ["override", "{"], "File": "LC2200AsmParser", "Func": "isImm", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112032, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "if", "(", "Kind", "==", "k_Immediate", "&&", "Imm", ".", "Val", "->", "getKind", "(", ")", "==", "MCExpr", "::", "ExprKind", "::", "Constant", ")", "{", "int64_t", "val", "=", "(", "(", "const", "MCConstantExpr", "*", ")"], "ground_truth": ["Imm", ".", "Val", ")", "->", "getValue", "(", ")", ";"], "File": "LC2200AsmParser", "Func": "isImm20", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112033, "Length": 39, "Cover_Rate": 0.6610169491525424} {"Template_token": ["", "return", "Kind"], "ground_truth": ["==", "k_Register", ";"], "File": "LC2200AsmParser", "Func": "isReg", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112034, "Length": 5, "Cover_Rate": 0.38461538461538464} {"Template_token": ["", "bool", "isReg", "(", ")", "const"], "ground_truth": ["override", "{"], "File": "LC2200AsmParser", "Func": "isReg", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112035, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "bool", "isToken", "("], "ground_truth": [")", "const", "override", "{"], "File": "LC2200AsmParser", "Func": "isToken", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112036, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "return", "Kind", "=="], "ground_truth": ["k_Token", ";"], "File": "LC2200AsmParser", "Func": "isToken", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112037, "Length": 5, "Cover_Rate": 0.38461538461538464} {"Template_token": ["", "AsmParser", "(", "const", "MCSubtargetInfo", "&", "_STI", ",", "MCAsmParser", "&", "_Parser", ",", "const", "MCInstrInfo", "&", "MII", ",", "const", "MCTargetOptions", "&", "Options", ")", ":", "MCTargetAsmParser", "("], "ground_truth": ["Options", ",", "_STI", ",", "MII", ")", ",", "STI", "(", "_STI", ")", ",", "Parser", "(", "_Parser", ")", "{"], "File": "LC2200AsmParser", "Func": "LC2200AsmParser", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112038, "Length": 41, "Cover_Rate": 0.8367346938775511} {"Template_token": ["", "void", "LLVMInitializeAsmParser", "(", ")"], "ground_truth": ["{"], "File": "LC2200AsmParser", "Func": "LLVMInitializeLC2200AsmParser", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112039, "Length": 5, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "RegisterMCAsmParser", "<", "AsmParser", ">", "X", "(", "TheTarget"], "ground_truth": [")", ";"], "File": "LC2200AsmParser", "Func": "LLVMInitializeLC2200AsmParser", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112040, "Length": 9, "Cover_Rate": 0.6} {"Template_token": ["", "MCInst", "Inst", ";", "if", "(", "MatchInstructionImpl", "(", "Operands", ",", "Inst", ",", "ErrorInfo", ",", "MatchingInlineAsm", ")", ")", "{", "Out", ".", "EmitInstruction", "(", "Inst", ",", "this", "->"], "ground_truth": ["STI", ")", ";"], "File": "LC2200AsmParser", "Func": "MatchAndEmitInstruction", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112041, "Length": 28, "Cover_Rate": 0.3888888888888889} {"Template_token": ["", "bool", "AsmParser", "::", "ParseDirective", "(", "AsmToken", "DirectiveID", ")", "{", "return"], "ground_truth": ["true", ";"], "File": "LC2200AsmParser", "Func": "ParseDirective", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112042, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "AsmToken", "::", "TokenKind", "kind", "=", "getLexer", "(", ")", ".", "getKind", "(", ")", ";", "switch", "(", "kind", ")", "{", "default", ":", "return", "true", ";", "case", "AsmToken", "::", "Minus", ":", "case", "AsmToken", "::", "Integer", ":", "if", "(", "getParser", "(", ")", ".", "parseExpression", "(", "EVal", ")"], "ground_truth": [")", "return", "true", ";"], "File": "LC2200AsmParser", "Func": "ParseImmediate", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112043, "Length": 47, "Cover_Rate": 0.39166666666666666} {"Template_token": ["", "const", "MCExpr", "*", "EVal", ";", "AsmToken", "::", "TokenKind", "kind", "=", "getLexer", "(", ")", ".", "getKind", "(", ")", ";", "switch", "(", "kind", ")", "{", "default", ":", "return", "true", ";", "case", "AsmToken", "::", "Minus", ":", "case", "AsmToken", "::", "Integer", ":", "if", "(", "getParser", "(", ")", ".", "parseExpression", "(", "EVal", ")", ")", "return", "true", ";", "Operands", ".", "push_back", "(", "", "(", "EVal", ",", "S", ",", "E", ")", ")", ";", "return"], "ground_truth": ["false", ";"], "File": "LC2200AsmParser", "Func": "ParseImmediate", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112044, "Length": 69, "Cover_Rate": 0.575} {"Template_token": ["", "continue", ";", "}", "if", "(", "ParseOperand", "(", "Operands", ")", ")", "return", "true", ";", "}", "if", "(", "getLexer", "(", ")", ".", "isNot", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "return", "Error", "(", "getLexer", "(", ")", ".", "getTok"], "ground_truth": ["(", ")", ".", "getLoc", "(", ")", ",", "", ")", ";"], "File": "LC2200AsmParser", "Func": "ParseInstruction", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112045, "Length": 45, "Cover_Rate": 0.3103448275862069} {"Template_token": ["", "bool", "AsmParser", "::", "ParseOperand", "(", "OperandVector", "&", "Operands", ")", "{", "switch", "(", "getLexer", "(", ")", ".", "getKind", "(", ")", ")", "{", "case", "AsmToken", "::", "LParen", ":", "case", "AsmToken", "::", "RParen", ":", "Operands", ".", "push_back", "(", "", "(", "getLexer", "(", ")", ".", "getTok", "(", ")", ".", "getString", "(", ")", ",", "getLexer", "(", ")", ".", "getTok", "(", ")", ".", "getLoc", "(", ")", ")", ")", ";", "getLexer", "(", ")", ".", "Lex", "(", ")", ";", "return", "false", ";", "default", ":", "break", ";", "}", "unsigned", "RegNo", ";", "if", "(", "!", "ParseRegister", "(", "RegNo", ",", "Operands", ")", ")", "return", "false", ";", "SMLoc", "S", "=", "getLexer", "(", ")", ".", "getTok", "(", ")", ".", "getLoc", "(", ")", ";", "if", "(", "!", "ParseImmediate", "(", "Operands", ")", "||", "!", "ParseSymbolReference", "(", "Operands", ")", ")", "{", "return", "false", ";", "}", "return", "Error", "(", "S"], "ground_truth": [",", "", ")", ";"], "File": "LC2200AsmParser", "Func": "ParseOperand", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112046, "Length": 137, "Cover_Rate": 0.9785714285714285} {"Template_token": ["", "Operand", "&", "Operand", "=", "static_cast", "<", "Operand", "&", ">", "(", "*", "Operands", ".", "front", "(", ")", ")", ";", "StartLoc", "=", "Operand", ".", "getStartLoc", "("], "ground_truth": [")", ";"], "File": "LC2200AsmParser", "Func": "ParseRegister", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112047, "Length": 26, "Cover_Rate": 0.32098765432098764} {"Template_token": ["", "StringRef", "Identifier", ";", "if", "(", "Parser", ".", "parseIdentifier", "(", "Identifier", ")", ")", "return", "true", ";", "SMLoc", "E", "=", "SMLoc", "::", "getFromPointer", "(", "Parser", ".", "getTok", "(", ")", ".", "getLoc", "(", ")", ".", "getPointer", "(", ")", "-", "", ")", ";", "MCSymbol", "*", "Sym", "=", "getContext", "(", ")", ".", "getOrCreateSymbol", "("], "ground_truth": ["Identifier", ")", ";"], "File": "LC2200AsmParser", "Func": "ParseSymbolReference", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112048, "Length": 52, "Cover_Rate": 0.45217391304347826} {"Template_token": ["", "SMLoc", "E", "=", "SMLoc", "::", "getFromPointer", "(", "Parser", ".", "getTok", "(", ")", ".", "getLoc", "(", ")", ".", "getPointer", "(", ")", "-", "", ")", ";", "MCSymbol", "*", "Sym", "=", "getContext", "(", ")"], "ground_truth": [".", "getOrCreateSymbol", "(", "Identifier", ")", ";"], "File": "LC2200AsmParser", "Func": "ParseSymbolReference", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112049, "Length": 37, "Cover_Rate": 0.3217391304347826} {"Template_token": ["", "unsigned", "int", "AsmParser", "::", "validateTargetOperandClass", "(", "MCParsedAsmOperand", "&", "Op", ",", "unsigned", "Kind"], "ground_truth": [")", "{"], "File": "LC2200AsmParser", "Func": "validateTargetOperandClass", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112050, "Length": 14, "Cover_Rate": 0.56} {"Template_token": ["", "void", "AsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "if", "(", "emitPseudoExpansionLowering", "(", "*", "OutStreamer", ",", "MI", ")", ")", "return", ";", "MCInst", "TmpInst", ";", "TmpInst", ".", "setOpcode", "(", "MI", "->", "getOpcode", "(", ")", ")", ";", "for", "(", "const", "MachineOperand", "&", "MO", ":", "MI", "->", "operands", "(", ")", ")", "{", "MCOperand", "MCOp", ";", "if", "(", "LowerMachineOperandToMCOperand", "(", "MO", ",", "MCOp", ",", "*", "this", ")", ")", "TmpInst", ".", "addOperand", "(", "MCOp", ")", ";", "}", "EmitToStreamer", "(", "*", "OutStreamer"], "ground_truth": [",", "TmpInst", ")", ";"], "File": "LC2200AsmPrinter", "Func": "EmitInstruction", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112051, "Length": 82, "Cover_Rate": 0.9879518072289156} {"Template_token": ["", "void", "LLVMInitializeAsmPrinter", "("], "ground_truth": [")", "{"], "File": "LC2200AsmPrinter", "Func": "LLVMInitializeLC2200AsmPrinter", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112052, "Length": 5, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "void", "LLVMInitializeAsmPrinter", "(", ")", "{", "RegisterAsmPrinter", "<", "AsmPrinter", ">"], "ground_truth": ["X", "(", "TheTarget", ")", ";"], "File": "LC2200AsmPrinter", "Func": "LLVMInitializeLC2200AsmPrinter", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112053, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "case", "MachineOperand", "::", "MO_Immediate", ":", "MCOp", "=", "MCOperand", "::", "createImm", "(", "MO", ".", "getImm", "(", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_MachineBasicBlock", ":", "MCOp", "=", "lowerSymbolOperand", "(", "MO", ",", "MO", ".", "getMBB", "(", ")", "->", "getSymbol", "(", ")", ",", "AP", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_GlobalAddress", ":", "MCOp", "=", "lowerSymbolOperand", "(", "MO", ",", "AP", ".", "getSymbol", "(", "MO", ".", "getGlobal", "(", ")", ")", ",", "AP", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_BlockAddress", ":", "MCOp", "=", "lowerSymbolOperand", "(", "MO", ",", "AP", ".", "GetBlockAddressSymbol", "(", "MO", ".", "getBlockAddress", "(", ")", ")", ",", "AP", ")", ";", "break", ";", "case", "MachineOperand", "::"], "ground_truth": ["MO_ExternalSymbol", ":"], "File": "LC2200AsmPrinter", "Func": "LowerLC2200MachineOperandToMCOperand", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112054, "Length": 105, "Cover_Rate": 0.45064377682403434} {"Template_token": ["", "const", "MCExpr", "*", "ME", "=", "MCSymbolRefExpr", "::", "create", "(", "Sym", ",", "MCSymbolRefExpr", "::", "VK_None", ",", "Ctx", ")", ";", "if", "(", "!", "MO", ".", "isJTI", "(", ")", "&&", "!", "MO", ".", "isMBB", "(", ")", "&&", "MO", ".", "getOffset", "(", ")", ")", "ME", "=", "MCBinaryExpr", "::", "createAdd", "(", "ME", ",", "MCConstantExpr", "::", "create", "(", "MO", ".", "getOffset", "(", ")"], "ground_truth": [",", "Ctx", ")", ",", "Ctx", ")", ";"], "File": "LC2200AsmPrinter", "Func": "lowerSymbolOperand", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112055, "Length": 64, "Cover_Rate": 0.64} {"Template_token": ["", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":"], "ground_truth": ["return", "", ";"], "File": "LC2200BaseInfo", "Func": "getLC2200RegisterNumbering", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112056, "Length": 48, "Cover_Rate": 0.31788079470198677} {"Template_token": ["", "std", "::", "unique_ptr", "<", "MCObjectTargetWriter", ">", "llvm", "::", "createELFObjectWriter", "("], "ground_truth": ["uint8_t", "OSABI", ")", "{"], "File": "LC2200ELFObjectWriter", "Func": "createLC2200ELFObjectWriter", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112057, "Length": 14, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "std", "::", "unique_ptr", "<", "MCObjectTargetWriter", ">", "llvm", "::", "createELFObjectWriter", "(", "uint8_t", "OSABI", ")", "{", "return", "std", "::", "make_unique", "<", "ELFObjectWriter"], "ground_truth": [">", "(", "OSABI", ")", ";"], "File": "LC2200ELFObjectWriter", "Func": "createLC2200ELFObjectWriter", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112058, "Length": 25, "Cover_Rate": 0.9615384615384616} {"Template_token": ["", "unsigned", "ELFObjectWriter", "::", "getRelocType", "(", "MCContext", "&", "Ctx", ",", "const", "MCValue", "&", "Target", ",", "const", "MCFixup", "&", "Fixup"], "ground_truth": [",", "bool", "IsPCRel", ")", "const", "{"], "File": "LC2200ELFObjectWriter", "Func": "getRelocType", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112059, "Length": 24, "Cover_Rate": 0.6857142857142857} {"Template_token": ["", "assert", "(", "hasFP", "(", "MF", ")", "&&", "", ")", ";", "adjustReg", "(", "MBB", ",", "LastFrameDestroy", ",", "DL", ",", "SPReg", ",", "FPReg", ",", "-", "FPOffset", ",", "MachineInstr", "::", "FrameDestroy", ")", ";", "}", "if", "(", "hasFP", "(", "MF", ")", ")", "{", "for", "(", "auto", "&", "I", "=", "LastFrameDestroy", ";", "I", "!=", "MBBI", ";", "++", "I", ")", "{", "if", "(", "I", "->", "mayLoad", "(", ")", "&&", "I", "->", "getOperand", "(", "", ")", ".", "isReg", "(", ")", ")", "{", "Register", "DestReg", "=", "I", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "DestReg", "==", "FPReg", ")", "{", "unsigned", "CFIIndex", "=", "MF", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createDefCfa", "(", "nullptr", ",", "RI", "->", "getDwarfRegNum", "(", "SPReg", ",", "true", ")", ",", "-", "FPOffset", ")", ")", ";", "BuildMI", "(", "MBB", ",", "std", "::", "next", "(", "I", ")", ",", "DL", ",", "TII", "->", "get"], "ground_truth": ["(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";"], "File": "LC2200FrameLowering1", "Func": "emitEpilogue", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112060, "Length": 151, "Cover_Rate": 0.3503480278422274} {"Template_token": ["", "if", "(", "RI", "->", "needsStackRealignment", "(", "MF", ")", "||", "MFI", ".", "hasVarSizedObjects", "(", ")", ")", "{", "assert", "(", "hasFP", "(", "MF", ")", "&&", "", ")", ";", "adjustReg", "(", "MBB", ",", "LastFrameDestroy", ",", "DL", ",", "SPReg", ",", "FPReg", ",", "-", "FPOffset", ",", "MachineInstr", "::", "FrameDestroy", ")", ";", "}", "if", "(", "hasFP", "(", "MF", ")", ")", "{", "for", "(", "auto", "&", "I", "=", "LastFrameDestroy", ";", "I", "!=", "MBBI", ";", "++", "I", ")", "{", "if", "(", "I", "->", "mayLoad", "(", ")", "&&", "I", "->", "getOperand", "(", "", ")", ".", "isReg", "(", ")", ")", "{", "Register", "DestReg", "=", "I", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "DestReg", "==", "FPReg", ")", "{", "unsigned", "CFIIndex", "=", "MF", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createDefCfa", "(", "nullptr", ",", "RI", "->", "getDwarfRegNum", "(", "SPReg", ",", "true", ")", ",", "-", "FPOffset", ")", ")", ";", "BuildMI", "(", "MBB", ",", "std", "::", "next", "(", "I", ")", ",", "DL", ",", "TII", "->", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";", "break", ";", "}", "}", "}", "}", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", "=", "MFI", ".", "getCalleeSavedInfo"], "ground_truth": ["(", ")", ";"], "File": "LC2200FrameLowering1", "Func": "emitEpilogue", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112061, "Length": 189, "Cover_Rate": 0.4385150812064965} {"Template_token": ["", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "RegisterInfo", "*", "RI", "=", "STI", ".", "getRegisterInfo", "(", ")", ";", "const", "InstrInfo", "*", "TII", "=", "STI", ".", "getInstrInfo", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "begin", "(", ")", ";", "if", "(", "RI", "->", "needsStackRealignment", "(", "MF", ")", "&&", "MFI", ".", "hasVarSizedObjects", "(", ")", ")", "{", "report_fatal_error", "(", "", "", ")", ";", "}", "Register", "FPReg", "=", "", ";", "Register", "SPReg", "=", "", ";", "DebugLoc", "DL", ";", "determineFrameLayout", "(", "MF", ")", ";", "uint64_t", "StackSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "if", "(", "StackSize", "==", "", "&&", "!", "MFI", ".", "adjustsStack", "(", ")", ")", "return", ";", "adjustReg", "(", "MBB", ",", "MBBI", ",", "DL", ",", "SPReg", ",", "SPReg", ",", "-", "StackSize", ",", "MachineInstr", "::", "FrameSetup", ")", ";", "unsigned", "CFIIndex", "=", "MF", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createDefCfaOffset", "(", "nullptr", ",", "-", "StackSize", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", "=", "MFI", ".", "getCalleeSavedInfo", "(", ")", ";", "std", "::", "advance", "(", "MBBI", ",", "CSI", ".", "size", "(", ")", ")", ";", "for", "(", "const", "auto", "&", "Entry", ":", "CSI", ")", "{", "int64_t", "Offset", "=", "MFI", ".", "getObjectOffset", "(", "Entry", ".", "getFrameIdx", "(", ")", ")", ";", "Register", "Reg", "=", "Entry", ".", "getReg", "(", ")", ";", "unsigned", "CFIIndex", "=", "MF", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createOffset", "(", "nullptr", ",", "RI", "->", "getDwarfRegNum", "(", "Reg", ",", "true", ")", ",", "Offset", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";", "}", "if", "(", "hasFP", "(", "MF", ")", ")", "{", "adjustReg", "(", "MBB", ",", "MBBI", ",", "DL", ",", "FPReg", ",", "SPReg", ",", "StackSize", ",", "MachineInstr", "::", "FrameSetup", ")", ";", "unsigned", "CFIIndex", "=", "MF", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createDefCfa", "(", "nullptr", ",", "RI", "->", "getDwarfRegNum", "(", "FPReg", ",", "true", ")", ",", "", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION"], "ground_truth": [")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";"], "File": "LC2200FrameLowering1", "Func": "emitPrologue", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112062, "Length": 357, "Cover_Rate": 0.85} {"Template_token": ["", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ")", ".", "addImm", "(", "Val", ")", ".", "setMIFlag", "(", "Flag", ")", ";", "}", "else", "if", "(", "isInt", "<", "", ">", "(", "Val", ")", ")", "{", "llvm_unreachable", "(", ""], "ground_truth": [")", ";"], "File": "LC2200FrameLowering", "Func": "adjustReg", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112063, "Length": 51, "Cover_Rate": 0.3493150684931507} {"Template_token": ["", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", "=", "MFI", ".", "getCalleeSavedInfo", "(", ")", ";", "for", "(", "const", "auto", "&", "Entry", ":", "CSI", ")", "{", "Register", "Reg", "=", "Entry", ".", "getReg", "(", ")", ";", "unsigned", "CFIIndex", "=", "MF", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createRestore", "(", "nullptr", ",", "RI", "->", "getDwarfRegNum", "(", "Reg", ",", "true", ")", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";", "}", "if", "(", "hasFramePointer", ")", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "", ")", ")", ".", "addReg", "(", "", ")", ".", "addReg", "("], "ground_truth": ["", ")", ".", "addImm", "(", "StackSize", "-", "", ")", ";"], "File": "LC2200FrameLowering", "Func": "emitEpilogue", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112064, "Length": 121, "Cover_Rate": 0.31926121372031663} {"Template_token": ["", "const", "RegisterInfo", "*", "RI", "=", "STI", ".", "getRegisterInfo", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "DebugLoc", "DL", "=", "MBBI", "->", "getDebugLoc", "(", ")", ";", "const", "InstrInfo", "*", "TII", "=", "STI", ".", "getInstrInfo", "(", ")", ";", "Register", "FPReg", "=", "", ";", "Register", "SPReg", "=", "", ";", "auto", "LastFrameDestroy", "=", "std", "::", "prev", "(", "MBBI", ",", "MFI", ".", "getCalleeSavedInfo", "(", ")", ".", "size", "(", ")", ")", ";", "uint64_t", "StackSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "if", "(", "hasFramePointer", ")", "StackSize", "++", ";", "if", "(", "RI", "->", "needsStackRealignment", "(", "MF", ")", "||", "MFI", ".", "hasVarSizedObjects", "(", ")", ")", "{", "assert", "(", "hasFP", "(", "MF", ")", "&&", "", ")", ";", "BuildMI", "(", "MBB", ",", "LastFrameDestroy", ",", "DL", ",", "TII", "->", "get", "(", "", ")", ")", ".", "addReg", "(", "", ")", ".", "addReg", "(", "", ")", ".", "addReg", "(", "", ")", ";", "}", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", "=", "MFI", ".", "getCalleeSavedInfo", "(", ")", ";", "for", "(", "const", "auto", "&", "Entry", ":", "CSI", ")", "{", "Register", "Reg", "=", "Entry", ".", "getReg", "(", ")", ";", "unsigned", "CFIIndex", "=", "MF", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createRestore", "(", "nullptr", ",", "RI", "->", "getDwarfRegNum", "(", "Reg", ",", "true", ")", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";", "}", "if", "(", "hasFramePointer", ")", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "", ")", ")", ".", "addReg", "(", "", ")", ".", "addReg", "(", "", ")", ".", "addImm", "("], "ground_truth": ["StackSize", "-", "", ")", ";"], "File": "LC2200FrameLowering", "Func": "emitEpilogue", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112065, "Length": 266, "Cover_Rate": 0.7018469656992085} {"Template_token": ["", "if", "(", "hasFramePointer", ")", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "", ")", ")", ".", "addReg", "(", "", ")", ".", "addReg", "(", "", ")", ".", "addImm", "(", "StackSize", "-", "", ")", ";", "}", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", "=", "MFI", ".", "getCalleeSavedInfo", "(", ")", ";", "std", "::", "advance", "(", "MBBI", ",", "CSI", ".", "size", "(", ")", ")", ";", "for", "(", "const", "auto", "&", "Entry", ":", "CSI", ")", "{", "int64_t", "Offset", "=", "MFI", ".", "getObjectOffset", "(", "Entry", ".", "getFrameIdx", "(", ")", ")", ";", "Register", "Reg", "=", "Entry", ".", "getReg", "(", ")", ";", "unsigned", "CFIIndex", "=", "MF", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createOffset", "(", "nullptr", ",", "RI", "->", "getDwarfRegNum", "(", "Reg", ",", "true", ")", ",", "Offset", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";", "}", "if", "(", "hasFramePointer", ")", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "", ")", ")", ".", "addReg", "(", "", ")", ".", "addReg", "(", "", ")", ".", "addReg", "(", "", ")", ";", "const", "RegisterInfo", "*", "RI", "=", "STI", ".", "getRegisterInfo", "(", ")", ";", "if", "(", "RI", "->", "needsStackRealignment", "(", "MF", ")"], "ground_truth": [")", "{"], "File": "LC2200FrameLowering", "Func": "emitPrologue", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112066, "Length": 208, "Cover_Rate": 0.4642857142857143} {"Template_token": ["", "void", "FrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "assert", "(", "&", "MF", ".", "front", "(", ")", "==", "&", "MBB", "&&", "", ")", ";", "bool", "hasFramePointer", "=", "hasFP", "(", "MF", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "RegisterInfo", "*", "RI", "=", "STI", ".", "getRegisterInfo", "(", ")", ";", "const", "InstrInfo", "*", "TII", "=", "STI", ".", "getInstrInfo", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "begin", "(", ")", ";", "if", "(", "RI", "->", "needsStackRealignment", "(", "MF", ")", "&&", "MFI", ".", "hasVarSizedObjects", "(", ")", ")", "{", "report_fatal_error", "(", "", "", ")", ";", "}", "Register", "FPReg", "=", "", ";", "Register", "SPReg", "=", "", ";", "DebugLoc", "DL", ";", "determineFrameLayout", "(", "MF", ")", ";", "uint64_t", "StackSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "if", "(", "hasFramePointer", ")", "StackSize", "++", ";", "if", "(", "StackSize", "==", "", "&&", "!", "MFI", ".", "adjustsStack", "(", ")", ")", "return", ";", "adjustReg", "(", "MBB", ",", "MBBI", ",", "DL", ",", "SPReg", ",", "SPReg", ",", "-", "StackSize", ",", "MachineInstr", "::", "FrameSetup", ")", ";", "unsigned", "CFIIndex", "=", "MF", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createDefCfaOffset", "(", "nullptr", ",", "-"], "ground_truth": ["StackSize", ")", ")", ";"], "File": "LC2200FrameLowering", "Func": "emitPrologue", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112067, "Length": 191, "Cover_Rate": 0.4263392857142857} {"Template_token": ["", "assert", "(", "offset", "%", "", "==", "", "&&", "", ")", ";", "return", "offset", "/", ""], "ground_truth": [";"], "File": "LC2200FrameLowering", "Func": "getFrameIndexReference", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112068, "Length": 16, "Cover_Rate": 0.32} {"Template_token": ["", "bool", "FrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "("], "ground_truth": [")", ";"], "File": "LC2200FrameLowering", "Func": "hasFP", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112069, "Length": 23, "Cover_Rate": 0.3382352941176471} {"Template_token": ["", "bool", "isFPCloseToIncomingSP", "(", ")"], "ground_truth": ["const", "override", "{"], "File": "LC2200FrameLowering", "Func": "isFPCloseToIncomingSP", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112070, "Length": 7, "Cover_Rate": 0.6363636363636364} {"Template_token": ["", "return", "Triple", "::"], "ground_truth": ["Hex", ";"], "File": "LC2200HexObjectWriter", "Func": "getFormat", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112071, "Length": 5, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "static", "void", "printExpr", "(", "const", "MCExpr", "*", "Expr", ",", "raw_ostream", "&", "OS", ")", "{", "const", "MCSymbolRefExpr", "*", "SRE", ";", "SRE", "=", "dyn_cast", "<", "MCSymbolRefExpr", ">", "(", "Expr", ")", ";", "assert", "(", "SRE", "&&", "", ")", ";", "const", "MCSymbolRefExpr", "::", "VariantKind", "Kind", "=", "SRE"], "ground_truth": ["->", "getKind", "(", ")", ";"], "File": "LC2200InstPrinter", "Func": "printExpr", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112072, "Length": 48, "Cover_Rate": 0.8421052631578947} {"Template_token": ["", "const", "MCSymbolRefExpr", "::", "VariantKind", "Kind", "=", "SRE", "->", "getKind", "(", ")", ";", "OS", "<<", "SRE", "->", "getSymbol", "("], "ground_truth": [")", ";"], "File": "LC2200InstPrinter", "Func": "printExpr", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112073, "Length": 20, "Cover_Rate": 0.3508771929824561} {"Template_token": ["", "void", "InstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "O", ",", "StringRef", "Annot", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "{", "printInstruction", "(", "MI", ",", "O"], "ground_truth": [")", ";"], "File": "LC2200InstPrinter", "Func": "printInst", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112074, "Length": 30, "Cover_Rate": 0.7894736842105263} {"Template_token": ["", "void", "InstPrinter", "::", "printRegName", "(", "raw_ostream", "&", "OS", ",", "unsigned", "RegNo", ")", "const", "{", "OS", "<<", "StringRef", "(", "getRegisterName", "(", "RegNo", ")", ")", ".", "lower"], "ground_truth": ["(", ")", ";"], "File": "LC2200InstPrinter", "Func": "printRegName", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112075, "Length": 28, "Cover_Rate": 0.9655172413793104} {"Template_token": ["", "MachineInstr", "*", "LastInst", "=", "&", "*", "I", ";", "unsigned", "LastOpc", "=", "LastInst", "->", "getOpcode", "(", ")", ";", "BranchInstrs", ".", "push_back", "(", "LastInst", ")", ";", "if", "(", "!", "getAnalyzableBrOpc", "(", "LastOpc", ")", ")", "return", "true", ";", "unsigned", "SecondLastOpc", "=", "", ";", "MachineInstr", "*", "SecondLastInst", "=", "nullptr", ";", "++", "I", ";", "while", "(", "I", "!=", "REnd", "&&", "I", "->", "isDebugInstr", "(", ")", ")", "++", "I", ";", "if", "(", "I", "!=", "REnd", ")", "{", "SecondLastInst", "=", "&", "*", "I", ";", "SecondLastOpc", "=", "SecondLastInst", "->", "getOpcode", "(", ")", ";", "if", "(", "isUnpredicatedTerminator", "(", "*", "SecondLastInst", ")", "&&", "!", "getAnalyzableBrOpc", "(", "SecondLastOpc", ")", ")", "return", "true", ";", "}", "if", "(", "!", "SecondLastOpc", "||", "(", "SecondLastOpc", "!=", "", "&&", "SecondLastOpc", "!=", "", "&&", "SecondLastOpc", "!=", "", ")", ")", "{", "if", "(", "LastInst", "->", "isUnconditionalBranch", "(", ")", ")", "{", "TBB", "=", "LastInst", "->", "getOperand", "(", "", ")", ".", "getMBB", "(", ")", ";", "return", "false", ";", "}", "AnalyzeCondBr", "(", "LastInst", ",", "LastOpc", ",", "TBB", ",", "Cond", ")", ";", "return", "false", ";", "}", "if", "(", "++", "I", "!=", "REnd", "&&", "isUnpredicatedTerminator", "(", "*", "I", ")", ")", "return", "true", ";", "BranchInstrs", ".", "insert", "(", "BranchInstrs", ".", "begin", "(", ")", ",", "SecondLastInst", ")", ";", "if", "(", "SecondLastInst", "->"], "ground_truth": ["isUnconditionalBranch", "(", ")", ")", "{"], "File": "LC2200InstrInfo1", "Func": "analyzeBranch", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112076, "Length": 202, "Cover_Rate": 0.5246753246753246} {"Template_token": ["", "return", "false", ";", "}", "AnalyzeCondBr", "(", "LastInst", ",", "LastOpc", ",", "TBB", ",", "Cond", ")", ";", "return", "false", ";", "}", "if", "(", "++", "I", "!=", "REnd", "&&", "isUnpredicatedTerminator", "(", "*", "I", ")", ")", "return", "true", ";", "BranchInstrs", ".", "insert", "(", "BranchInstrs", ".", "begin", "(", ")", ",", "SecondLastInst", ")", ";", "if", "(", "SecondLastInst", "->", "isUnconditionalBranch", "(", ")", ")", "{", "if", "(", "!", "AllowModify", ")", "{", "return", "true", ";", "}", "TBB", "=", "SecondLastInst", "->", "getOperand", "(", "", ")", ".", "getMBB", "(", ")", ";", "LastInst", "->", "eraseFromParent", "(", ")", ";", "BranchInstrs", ".", "pop_back", "(", ")", ";", "return", "false", ";", "}", "if", "(", "!", "LastInst", "->", "isUnconditionalBranch", "(", ")", ")", "return", "true", ";", "AnalyzeCondBr", "(", "SecondLastInst", ",", "SecondLastOpc", ",", "TBB", ",", "Cond"], "ground_truth": [")", ";"], "File": "LC2200InstrInfo1", "Func": "analyzeBranch", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112077, "Length": 119, "Cover_Rate": 0.3090909090909091} {"Template_token": ["", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "add", "(", "MI", ".", "getOperand", "(", "", ")", ")", ";", "break", ";", "}", "case", "", ":", "{", "auto", "Dst", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "auto", "TrueValue", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "auto", "FalseValue", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addImm", "(", "", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "Dst", ")", ".", "addReg", "(", "", ")", ".", "addReg", "(", "FalseValue", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addImm", "(", "", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "Dst", ")", ".", "addReg", "(", "", ")", ".", "addReg", "(", "TrueValue", ")", ";", "break", ";", "}", "case", "", ":", "{", "auto", "Dst", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "auto", "ConditionCode", "=", "", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", ";", "auto", "TrueValue", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "auto", "FalseValue", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "resolveComparison", "(", "MBB", ",", "MI", ",", "DL", ",", "ConditionCode", ",", "MI", ".", "getOperand", "(", "", ")", ",", "MI", ".", "getOperand", "(", "", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addImm", "(", "", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "Dst", ")", ".", "addReg", "(", "", ")", ".", "addReg", "(", "FalseValue", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addImm", "(", "", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "Dst", ")", ".", "addReg", "(", "", ")", ".", "addReg", "(", "TrueValue", ")", ";", "break", ";", "}", "case", "", ":", "{", "MachineOperand", "&", "op", "=", "MI", ".", "getOperand", "(", "", ")", ";", "if", "(", "op", ".", "isMBB", "(", ")", ")", "{", "MachineBasicBlock", "*", "dst", "=", "op", ".", "getMBB", "(", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addMBB", "(", "dst", ")", ";", "}", "else"], "ground_truth": ["{"], "File": "LC2200InstrInfo1", "Func": "expandPostRAPseudo", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112078, "Length": 415, "Cover_Rate": 0.5732044198895028} {"Template_token": ["", "break", ";", "}", "case", "", ":", "{", "auto", "ConditionCode", "=", "", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", ";", "resolveComparison", "(", "MBB", ",", "MI", ",", "DL", ",", "ConditionCode", ",", "MI", ".", "getOperand", "(", "", ")", ",", "MI", ".", "getOperand", "(", "", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "add", "(", "MI", ".", "getOperand", "(", "", ")", ")", ";", "break", ";", "}", "case", "", ":", "{", "auto", "Dst", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "auto", "TrueValue", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "auto", "FalseValue", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addImm", "(", "", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "Dst", ")", ".", "addReg", "(", "", ")", ".", "addReg", "(", "FalseValue", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addImm", "(", "", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "Dst", ")", ".", "addReg", "(", "", ")", ".", "addReg", "(", "TrueValue", ")", ";", "break", ";", "}", "case", "", ":", "{", "auto", "Dst", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "auto", "ConditionCode", "=", "", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", ";", "auto", "TrueValue", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "auto", "FalseValue", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "resolveComparison", "(", "MBB", ",", "MI", ",", "DL", ",", "ConditionCode", ",", "MI", ".", "getOperand", "(", "", ")", ",", "MI", ".", "getOperand", "(", "", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addImm"], "ground_truth": ["(", "", ")", ";"], "File": "LC2200InstrInfo1", "Func": "expandPostRAPseudo", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112079, "Length": 328, "Cover_Rate": 0.4530386740331492} {"Template_token": ["", "BB", "=", "Inst", "->", "getOperand", "(", "NumOp", "-", "", ")", ".", "getMBB", "(", ")", ";", "for", "(", "int", "i", "=", "", ";", "i", "<", "NumOp", "-", "", ";", "i", "++", ")", "Cond", ".", "push_back", "(", "Inst", "->", "getOperand"], "ground_truth": ["(", "i", ")", ")", ";"], "File": "LC2200InstrInfo", "Func": "AnalyzeCondBr", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112080, "Length": 43, "Cover_Rate": 0.48863636363636365} {"Template_token": ["", "void", "InstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "DebugLoc", "&", "DL", ",", "unsigned", "DestReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "DestReg", ")"], "ground_truth": [".", "addReg", "(", "SrcReg", ")", ".", "addReg", "(", "", ")", ";"], "File": "LC2200InstrInfo", "Func": "copyPhysReg", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112081, "Length": 59, "Cover_Rate": 0.921875} {"Template_token": ["", "auto", "Dst", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "auto", "ConditionCode", "=", "", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", ";", "auto", "TrueValue", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "auto", "FalseValue", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "resolveComparison", "(", "MBB", ",", "MI", ",", "DL", ",", "ConditionCode", ",", "MI", ".", "getOperand", "(", "", ")", ",", "MI", ".", "getOperand", "(", "", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addImm", "(", "", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "Dst", ")", ".", "addReg", "(", "", ")", ".", "addReg", "(", "FalseValue", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addImm", "(", "", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "Dst", ")", ".", "addReg", "(", "", ")", ".", "addReg", "(", "TrueValue", ")", ";", "break", ";", "}", "case", "", ":", "{", "MachineOperand", "&", "op", "=", "MI", ".", "getOperand", "(", "", ")", ";", "if", "(", "op", ".", "isMBB", "(", ")", ")", "{", "MachineBasicBlock", "*", "dst", "=", "op", ".", "getMBB", "(", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addMBB", "(", "dst", ")", ";", "}", "else", "{", "int64_t", "dst", "=", "op", ".", "getImm", "(", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addImm", "(", "dst", ")", ";", "}", "break", ";", "}", "case", "", ":", "{", "MachineOperand", "&", "op", "=", "MI", "."], "ground_truth": ["getOperand", "(", "", ")", ";"], "File": "LC2200InstrInfo", "Func": "expandPostRAPseudo", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112082, "Length": 286, "Cover_Rate": 0.330635838150289} {"Template_token": ["", "return", "Opc", "==", "", "||", "Opc", "==", "", "||", "Opc", "=="], "ground_truth": ["", ";"], "File": "LC2200InstrInfo", "Func": "getAnalyzableBrOpc", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112083, "Length": 13, "Cover_Rate": 0.4642857142857143} {"Template_token": ["", "assert", "(", "!", "FBB", "&&", "", ")", ";", "auto", "&", "MI", "=", "*", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addMBB", "(", "TBB", ")", ";", "if", "(", "BytesAdded", ")", "*", "BytesAdded", "+=", "", ";", "return", "", ";", "}", "auto", "ConditionCode", "=", "(", "", ")", "Cond", "[", "", "]", ".", "getImm", "(", ")", ";", "auto", "a", "=", "Cond", "[", "", "]", ";", "auto", "b", "=", "Cond", "[", "", "]", ";", "unsigned", "Count", "=", "resolveComparison", "(", "MBB", ",", "MBB", ".", "end", "(", ")", ",", "DL", ",", "ConditionCode", ",", "a", ",", "b", ")", ";", "if", "(", "BytesAdded", ")", "*", "BytesAdded", "+=", "(", "int", ")", "Count", "*", "", ";", "BuildMI", "(", "MBB", ",", "MBB", ".", "end", "(", ")", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addMBB", "(", "TBB", ")", ";", "if", "(", "BytesAdded", ")", "*", "BytesAdded", "+=", "", ";", "Count", "++"], "ground_truth": [";"], "File": "LC2200InstrInfo", "Func": "insertBranch", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112084, "Length": 146, "Cover_Rate": 0.5816733067729084} {"Template_token": ["", "case", "", ":", "return", "(", "MI", ".", "getOperand", "(", "", ")", ".", "isReg", "(", ")", "&&", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", "==", "", ")", ";", "}", "return", "MI", ".", "isAsCheapAsAMove", "("], "ground_truth": [")", ";"], "File": "LC2200InstrInfo", "Func": "isAsCheapAsAMove", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112085, "Length": 38, "Cover_Rate": 0.5135135135135135} {"Template_token": ["", "unsigned", "InstrInfo", "::", "loadImmediate", "(", "unsigned", "FrameReg", ",", "int64_t", "Imm", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "II", ",", "const", "DebugLoc", "&", "DL", ",", "unsigned", "&", "NewImm", ")", "const", "{", "llvm_unreachable", "(", ""], "ground_truth": [")", ";"], "File": "LC2200InstrInfo", "Func": "loadImmediate", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112086, "Length": 36, "Cover_Rate": 0.972972972972973} {"Template_token": ["", "unsigned", "InstrInfo", "::", "loadImmediate", "(", "unsigned", "FrameReg", ",", "int64_t", "Imm", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "II", ","], "ground_truth": ["const", "DebugLoc", "&", "DL", ",", "unsigned", "&", "NewImm", ")", "const", "{"], "File": "LC2200InstrInfo", "Func": "loadImmediate", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112087, "Length": 31, "Cover_Rate": 0.8378378378378378} {"Template_token": ["", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "unsigned", "Opcode", ";", "if", "(", "", ".", "hasSubClassEq", "(", "RC", ")", ")", "Opcode", "=", "", ";", "else", "llvm_unreachable", "(", "", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "Opcode", ")", ",", "DstReg", ")", ".", "addFrameIndex", "(", "FI", ")", "."], "ground_truth": ["addImm", "(", "", ")", ";"], "File": "LC2200InstrInfo", "Func": "loadRegFromStackSlot", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112088, "Length": 66, "Cover_Rate": 0.6226415094339622} {"Template_token": ["", "assert", "(", "!", "BytesRemoved", "&&", "", ")", ";", "MachineBasicBlock", "::", "reverse_iterator", "I", "=", "MBB", ".", "rbegin", "(", ")", ",", "REnd", "=", "MBB", ".", "rend", "(", ")", ";", "unsigned", "removed", "=", "", ";", "while", "(", "I", "!=", "REnd", "&&", "removed", "<", "", ")", "{", "if", "(", "I", "->", "isDebugInstr", "(", ")", ")", "{", "++", "I", ";", "continue", ";", "}", "if", "(", "!", "getAnalyzableBrOpc", "(", "I", "->", "getOpcode", "(", ")", ")", ")", "break", ";", "I", "->", "eraseFromParent", "(", ")", ";", "I", "=", "MBB", ".", "rbegin", "(", ")", ";", "++"], "ground_truth": ["removed", ";"], "File": "LC2200InstrInfo", "Func": "removeBranch", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112089, "Length": 89, "Cover_Rate": 0.8165137614678899} {"Template_token": ["", "unsigned", "Opcode", ";", "if", "(", "", ".", "hasSubClassEq", "(", "RC", ")", ")", "Opcode", "=", "", ";", "else", "llvm_unreachable", "(", "", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "Opcode", ")", ")", ".", "addReg", "(", "SrcReg", ")", "."], "ground_truth": ["addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "", ")", ";"], "File": "LC2200InstrInfo", "Func": "storeRegToStackSlot", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112090, "Length": 51, "Cover_Rate": 0.45535714285714285} {"Template_token": ["", "return", "new", "DAGToDAGISel", "(", "TM", ",", "OptLevel"], "ground_truth": [")", ";"], "File": "LC2200ISelDAGToDAG", "Func": "createLC2200ISelDag", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112091, "Length": 9, "Cover_Rate": 0.34615384615384615} {"Template_token": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return"], "ground_truth": ["", ";"], "File": "LC2200ISelDAGToDAG", "Func": "getPassName", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112092, "Length": 10, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "Subtarget", ">", "(", ")", ";", "return", "SelectionDAGISel", "::", "runOnMachineFunction", "(", "MF"], "ground_truth": [")", ";"], "File": "LC2200ISelDAGToDAG", "Func": "runOnMachineFunction", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112093, "Length": 29, "Cover_Rate": 0.9666666666666667} {"Template_token": ["", "auto", "ConstNode", "=", "cast", "<", "ConstantSDNode", ">", "(", "Node", ")", ";", "if", "(", "VT", "==", "XLenVT", "&&", "ConstNode", "->", "isNullValue", "(", ")", ")", "{", "SDValue", "New", "=", "CurDAG", "->", "getCopyFromReg", "(", "CurDAG", "->", "getEntryNode", "(", ")", ",", "SDLoc", "(", "Node", ")", ",", "", ",", "XLenVT", ")", ";", "ReplaceNode", "(", "Node", ",", "New", ".", "getNode", "(", ")", ")", ";", "return", ";", "}", "int64_t", "Imm", "=", "ConstNode", "->", "getSExtValue", "(", ")", ";", "if", "(", "XLenVT", "==", "", ")", "{", "ReplaceNode", "(", "Node", ",", "selectImm", "(", "CurDAG", ",", "SDLoc", "(", "Node", ")", ",", "Imm"], "ground_truth": [",", "XLenVT", ")", ")", ";"], "File": "LC2200ISelDAGToDAG", "Func": "Select", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112094, "Length": 96, "Cover_Rate": 0.34285714285714286} {"Template_token": ["", "Base", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FIN", "->", "getIndex", "(", ")", ",", "", ")", ";", "return", "true", ";", "}", "return", "false"], "ground_truth": [";"], "File": "LC2200ISelDAGToDAG", "Func": "SelectAddrFI", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112095, "Length": 22, "Cover_Rate": 0.4230769230769231} {"Template_token": ["", "", "ArgFlags", "=", "Ins", "[", "i", "]", ".", "Flags", ";", "if", "(", "IsRet", ")", "{", "if", "(", "RetCC_", "(", "i", ",", "ArgVT", ",", "ArgVT", ",", "CCValAssign", "::", "Full", ",", "ArgFlags", ",", "CCInfo", ")", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "i", "<<", "", "<<", "EVT", "(", "ArgVT", ")", ".", "getEVTString", "(", ")", "<<", "'\\n'", ")", ";", "llvm_unreachable", "(", "nullptr", ")", ";", "}", "}", "else", "{", "if", "(", "CC_", "(", "i", ",", "ArgVT", ",", "ArgVT", ",", "CCValAssign", "::"], "ground_truth": ["Full", ",", "ArgFlags", ",", "CCInfo", ")", ")", "{"], "File": "LC2200ISelLowering", "Func": "analyzeInputArgs", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112096, "Length": 88, "Cover_Rate": 0.44221105527638194} {"Template_token": ["", "unsigned", "NumArgs", "=", "Outs", ".", "size", "(", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "!=", "NumArgs", ";", "i", "++", ")", "{", "MVT", "ArgVT", "=", "Outs", "[", "i", "]", ".", "VT", ";", "", "ArgFlags", "=", "Outs", "[", "i", "]", ".", "Flags", ";", "if", "(", "IsRet", ")", "{", "if", "(", "RetCC_", "(", "i", ",", "ArgVT", ",", "ArgVT", ",", "CCValAssign", "::", "Full", ",", "ArgFlags", ",", "CCInfo", ")", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "i", "<<", "", "<<", "EVT", "(", "ArgVT", ")", ".", "getEVTString", "(", ")", "<<", "", ")", ";", "llvm_unreachable", "(", "nullptr", ")"], "ground_truth": [";"], "File": "LC2200ISelLowering", "Func": "analyzeOutputArgs", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112097, "Length": 98, "Cover_Rate": 0.5185185185185185} {"Template_token": ["", "static", "SDValue", "convertValVTToLocVT", "(", "SelectionDAG", "&", "DAG", ",", "SDValue", "Val", ",", "const", "CCValAssign", "&", "VA", ",", "const", "SDLoc", "&", "DL", ")", "{", "EVT", "LocVT", "=", "VA", ".", "getLocVT", "(", ")", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "CCValAssign", "::", "Full", ":", "break", ";", "case", "CCValAssign", "::", "BCvt", ":", "Val", "=", "DAG", ".", "getNode", "(", "", ",", "DL"], "ground_truth": [",", "LocVT", ",", "Val", ")", ";"], "File": "LC2200ISelLowering", "Func": "convertValVTToLocVT", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112098, "Length": 74, "Cover_Rate": 0.891566265060241} {"Template_token": ["", "Entry", ".", "IsSExt", "=", "shouldSignExtendTypeInLibCall", "(", "ArgVT", ",", "isSigned", ")", ";", "Entry", ".", "IsZExt", "=", "!", "shouldSignExtendTypeInLibCall", "(", "ArgVT", ",", "isSigned", ")", ";", "Args", ".", "push_back", "(", "Entry", ")", ";", "}", "SDValue", "Callee", "=", "DAG", ".", "getExternalSymbol", "(", "LibcallName", ",", "getPointerTy", "(", "DAG", ".", "getDataLayout", "(", ")", ")", ")", ";", "EVT", "RetVT", "=", "Node", "->", "getValueType", "(", "", ")", ";", "Type", "*", "RetTy", "=", "RetVT", ".", "getTypeForEVT", "(", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "SDValue", "InChain", "=", "DAG", ".", "getEntryNode", "(", ")", ";", "SDValue", "TCChain", "=", "InChain", ";", "const", "Function", "&", "F", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getFunction", "(", ")", ";", "bool", "isTailCall", "=", "isInTailCallPosition", "(", "DAG", ",", "Node", ",", "TCChain", ")", "&&", "(", "RetTy", "==", "F", ".", "getReturnType", "(", ")", "||", "F", ".", "getReturnType", "(", ")", "->", "isVoidTy", "(", ")", ")", ";", "if", "(", "isTailCall", ")", "InChain", "=", "TCChain", ";", "TargetLowering", "::", "CallLoweringInfo", "CLI", "("], "ground_truth": ["DAG", ")", ";"], "File": "LC2200ISelLowering", "Func": "ExpandLibCall", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112099, "Length": 153, "Cover_Rate": 0.391304347826087} {"Template_token": ["", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "}", "return", "nullptr"], "ground_truth": [";"], "File": "LC2200ISelLowering", "Func": "getTargetNodeName", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112100, "Length": 40, "Cover_Rate": 0.40816326530612246} {"Template_token": ["", "SDValue", "LHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "RHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "EVT", "VT", "=", "LHS", ".", "getValueType", "(", ")", ";", "SDLoc", "DL", "(", "Op", ")", ";", "SDValue", "Nand", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VT", ",", "LHS", ",", "RHS", ")", ";", "SDValue", "And", "=", "notValue", "(", "DAG", ",", "DL", ",", "VT", ",", "Nand", ")", ";", "return", "And"], "ground_truth": [";"], "File": "LC2200ISelLowering", "Func": "lowerAnd", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112101, "Length": 70, "Cover_Rate": 0.8045977011494253} {"Template_token": ["", "SDValue", "Chain", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "Dest", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDLoc", "DL", "(", "Op", ")", ";", "SDValue", "Jmp", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "", ",", "Chain"], "ground_truth": [",", "Dest", ")", ";"], "File": "LC2200ISelLowering", "Func": "lowerBr", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112102, "Length": 44, "Cover_Rate": 0.6111111111111112} {"Template_token": ["", "SDValue", "RHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "Dest", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDLoc", "DL", "(", "Op", ")", ";", "SDValue", "Cmp", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "", ",", "Chain", ",", "DAG", ".", "getConstant", "(", "CC", ",", "DL", ",", "", ")", ",", "LHS", ",", "RHS", ",", "Dest", ")", ";", "return", "Cmp"], "ground_truth": [";"], "File": "LC2200ISelLowering", "Func": "lowerBrCc", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112103, "Length": 62, "Cover_Rate": 0.4732824427480916} {"Template_token": ["", "SDValue", "RHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "Dest", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDLoc", "DL", "(", "Op", ")", ";", "SDValue", "Cmp", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "", ",", "Chain", ",", "DAG", ".", "getConstant", "(", "CC", ",", "DL", ",", "", ")", ",", "LHS", ",", "RHS", ",", "Dest", ")", ";", "return", "Cmp"], "ground_truth": [";"], "File": "LC2200ISelLowering", "Func": "lowerBrCc", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112104, "Length": 62, "Cover_Rate": 0.4732824427480916} {"Template_token": ["", "else", "ArgValue", "=", "unpackFromMemLoc", "(", "DAG", ",", "Chain", ",", "VA", ",", "DL", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "Indirect", ")", "{", "InVals", ".", "push_back", "(", "DAG", ".", "getLoad", "(", "VA", ".", "getValVT", "(", ")", ",", "DL", ",", "Chain", ",", "ArgValue", ",", "MachinePointerInfo", "(", ")", ")", ")", ";", "unsigned", "ArgIndex", "=", "Ins", "[", "i", "]", ".", "OrigArgIndex", ";", "assert", "(", "Ins", "[", "i", "]", ".", "PartOffset", "==", "", ")", ";", "while", "(", "i", "+", "", "!=", "e", "&&", "Ins", "[", "i", "+", "", "]", ".", "OrigArgIndex", "==", "ArgIndex", ")", "{", "CCValAssign", "&", "PartVA", "=", "ArgLocs", "[", "i", "+", "", "]", ";", "unsigned", "PartOffset", "=", "Ins", "[", "i", "+", "", "]", ".", "PartOffset", ";", "SDValue", "Address", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "PtrVT", ",", "ArgValue", ",", "DAG", ".", "getIntPtrConstant", "(", "PartOffset", ",", "DL", ")", ")", ";", "InVals", ".", "push_back", "(", "DAG", ".", "getLoad", "(", "PartVA", ".", "getValVT", "(", ")", ",", "DL", ",", "Chain", ",", "Address", ",", "MachinePointerInfo", "(", ")", ")", ")", ";", "++"], "ground_truth": ["i", ";"], "File": "LC2200ISelLowering", "Func": "LowerFormalArguments", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112105, "Length": 172, "Cover_Rate": 0.33204633204633205} {"Template_token": ["", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "MF", ",", "ArgLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "analyzeInputArgs", "(", "MF", ",", "CCInfo", ",", "Ins", ",", "false", ")", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "ArgLocs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "ArgLocs", "[", "i", "]", ";", "SDValue", "ArgValue", ";", "if", "(", "VA", ".", "isRegLoc", "(", ")", ")", "ArgValue", "=", "unpackFromRegLoc", "(", "DAG", ",", "Chain", ",", "VA", ",", "DL", ")", ";", "else", "ArgValue", "=", "unpackFromMemLoc", "(", "DAG", ",", "Chain", ",", "VA", ",", "DL", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "Indirect", ")", "{", "InVals", ".", "push_back", "(", "DAG", ".", "getLoad", "(", "VA", ".", "getValVT", "(", ")", ",", "DL", ",", "Chain", ",", "ArgValue", ",", "MachinePointerInfo", "(", ")", ")", ")", ";", "unsigned", "ArgIndex", "=", "Ins", "[", "i", "]", ".", "OrigArgIndex", ";", "assert", "(", "Ins", "[", "i", "]", ".", "PartOffset", "==", "", ")", ";", "while", "(", "i", "+", "", "!=", "e", "&&", "Ins", "[", "i", "+", "", "]", ".", "OrigArgIndex", "==", "ArgIndex", ")", "{", "CCValAssign", "&", "PartVA", "=", "ArgLocs", "[", "i", "+", "", "]", ";", "unsigned", "PartOffset", "=", "Ins", "[", "i", "+"], "ground_truth": ["", "]", ".", "PartOffset", ";"], "File": "LC2200ISelLowering", "Func": "LowerFormalArguments", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112106, "Length": 204, "Cover_Rate": 0.3938223938223938} {"Template_token": ["", "EVT", "Ty", "=", "Op", ".", "getValueType", "(", ")", ";", "GlobalAddressSDNode", "*", "N", "=", "cast", "<", "GlobalAddressSDNode", ">", "(", "Op", ")", ";", "int64_t", "Offset", "=", "N", "->", "getOffset", "(", ")", ";", "MVT", "XLenVT", "=", "", ";", "const", "GlobalValue", "*", "GV", "=", "N", "->", "getGlobal", "(", ")", ";", "return", "DAG", ".", "getTargetGlobalAddress", "(", "GV", ",", "DL", ","], "ground_truth": ["", ",", "Offset", ")", ";"], "File": "LC2200ISelLowering", "Func": "lowerGlobalAddress", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112107, "Length": 60, "Cover_Rate": 0.7058823529411765} {"Template_token": ["", "case", "", ":", "return", "lowerSelectCc", "(", "Op", ",", "DAG", ")", ";", "case", "", ":", "return", "lowerAnd", "(", "Op", ",", "DAG", ")", ";", "case", "", ":", "return", "lowerOr", "(", "Op", ",", "DAG", ")", ";", "case", "", ":", "return", "lowerXor", "(", "Op", ",", "DAG", ")", ";", "case", "", ":", "return", "lowerGlobalAddress", "(", "Op", ",", "DAG"], "ground_truth": [")", ";"], "File": "LC2200ISelLowering", "Func": "LowerOperation", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112108, "Length": 55, "Cover_Rate": 0.35947712418300654} {"Template_token": ["", "case", "", ":", "return", "lowerAnd", "(", "Op", ",", "DAG", ")", ";", "case", "", ":", "return", "lowerOr", "(", "Op", ",", "DAG", ")", ";", "case", "", ":", "return", "lowerXor", "(", "Op", ",", "DAG", ")", ";", "case", "", ":", "return", "lowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case"], "ground_truth": ["", ":"], "File": "LC2200ISelLowering", "Func": "LowerOperation", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112109, "Length": 47, "Cover_Rate": 0.30718954248366015} {"Template_token": ["", "SDLoc", "DL", "(", "Op", ")", ";", "SDValue", "NotA", "=", "notValue", "(", "DAG", ",", "DL", ",", "VT", ",", "LHS", ")", ";", "SDValue", "NotB", "=", "notValue", "(", "DAG", ",", "DL", ",", "VT", ","], "ground_truth": ["RHS", ")", ";"], "File": "LC2200ISelLowering", "Func": "lowerOr", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112110, "Length": 34, "Cover_Rate": 0.33663366336633666} {"Template_token": ["", "SDValue", "TargetLowering", "::", "lowerOr", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SDValue", "LHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "RHS", "=", "Op", "."], "ground_truth": ["getOperand", "(", "", ")", ";"], "File": "LC2200ISelLowering", "Func": "lowerOr", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112111, "Length": 34, "Cover_Rate": 0.33663366336633666} {"Template_token": ["", "llvm_unreachable", "(", "", ")", ";", "}", "else", "{", "Val", "=", "convertValVTToLocVT", "(", "DAG", ",", "Val", ",", "VA", ",", "DL", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "VA", ".", "getLocReg", "(", ")", ",", "Val", ",", "Glue", ")", ";", "Glue", "=", "Chain", ".", "getValue", "(", "", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "}", "RetOps", "[", "", "]", "=", "Chain", ";", "if", "(", "Glue", ".", "getNode", "(", ")", ")", "{", "RetOps", ".", "push_back", "(", "Glue", ")", ";", "}", "const", "Function", "&", "Func", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getFunction", "(", ")", ";", "if", "(", "Func", ".", "hasFnAttribute", "(", "", ")", ")", "{", "llvm_unreachable", "(", "", ")", ";", "}", "return", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "", ",", "RetOps"], "ground_truth": [")", ";"], "File": "LC2200ISelLowering", "Func": "LowerReturn", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112112, "Length": 144, "Cover_Rate": 0.43373493975903615} {"Template_token": ["", "SDValue", "Val", "=", "OutVals", "[", "i", "]", ";", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "", ")", ";", "if", "(", "VA", ".", "getLocVT", "(", ")", "==", "", "&&", "VA", ".", "getValVT", "(", ")", "==", "", ")", "{", "llvm_unreachable", "(", "", ")", ";", "}", "else", "{", "Val", "=", "convertValVTToLocVT", "(", "DAG", ",", "Val", ",", "VA", ",", "DL", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "VA", ".", "getLocReg", "(", ")", ",", "Val", ",", "Glue", ")", ";", "Glue", "=", "Chain", ".", "getValue", "(", "", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "}", "RetOps", "[", "", "]", "=", "Chain", ";", "if", "(", "Glue", ".", "getNode", "(", ")", ")", "{", "RetOps", ".", "push_back", "(", "Glue", ")", ";", "}", "const", "Function", "&", "Func", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getFunction", "(", ")", ";", "if", "(", "Func", ".", "hasFnAttribute", "(", "", ")", ")", "{", "llvm_unreachable", "(", "", ")", ";", "}", "return", "DAG", ".", "getNode", "(", "", ",", "DL"], "ground_truth": [",", "", ",", "RetOps", ")", ";"], "File": "LC2200ISelLowering", "Func": "LowerReturn", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112113, "Length": 191, "Cover_Rate": 0.5753012048192772} {"Template_token": ["", "SDValue", "FalseValue", "=", "Op", ".", "getOperand", "(", "", ")", ";", "", "CC", "=", "cast", "<", "CondCodeSDNode", ">", "(", "Op", ".", "getOperand", "(", "", ")", ")", "->", "get", "(", ")", ";", "SDLoc", "DL", "(", "Op", ")", ";", "EVT", "TrueType", "=", "TrueValue", ".", "getValueType", "(", ")", ";", "EVT", "FalseType", "=", "FalseValue", ".", "getValueType"], "ground_truth": ["(", ")", ";"], "File": "LC2200ISelLowering", "Func": "lowerSelectCc", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112114, "Length": 54, "Cover_Rate": 0.3375} {"Template_token": ["", "SDLoc", "DL", "(", "Op", ")", ";", "SDValue", "Vl", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "ShiftAmt", "=", "Op", ".", "getOperand", "(", "", ")", ";", "if", "(", "ShiftAmt", ".", "getOpcode", "(", ")", "!=", "", ")", "{", "return", "ExpandLibCall", "(", "", ",", "Op", ",", "false", ",", "DAG", ")", ";", "}", "EVT", "VT", "=", "Vl", ".", "getValueType", "(", ")", ";", "uint64_t", "ShAmt", "=", "cast", "<", "ConstantSDNode", ">", "(", "ShiftAmt", ".", "getNode", "(", ")", ")", "->", "getZExtValue", "(", ")", ";", "for", "(", "uint64_t", "i", "=", "", ";", "i", "<", "ShAmt", ";", "i"], "ground_truth": ["++", ")", "{"], "File": "LC2200ISelLowering", "Func": "lowerShiftLeft", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112115, "Length": 93, "Cover_Rate": 0.6992481203007519} {"Template_token": ["", "SDValue", "NandABNandA", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VT", ",", "NandAB", ",", "LHS", ")", ";", "SDValue", "NandABNandB", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VT", ",", "NandAB", ",", "RHS", ")", ";", "SDValue", "Xor", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VT", ",", "NandABNandA", ",", "NandABNandB", ")", ";", "return"], "ground_truth": ["Xor", ";"], "File": "LC2200ISelLowering", "Func": "lowerXor", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112116, "Length": 57, "Cover_Rate": 0.42857142857142855} {"Template_token": ["", "SupportsDebugInformation", "=", "false", ";", "Data16bitsDirective", "=", "", ";", "Data32bitsDirective", "=", "", ";", "Data64bitsDirective", "=", "", ";", "ZeroDirective", "=", "", ";", "CommentString", "=", "", ";", "AscizDirective", "=", "", ";", "HiddenVisibilityAttr", "=", "MCSA_Invalid", ";", "HiddenDeclarationVisibilityAttr", "=", "MCSA_Invalid", ";", "ProtectedVisibilityAttr", "=", "MCSA_Invalid", ";", "PrivateGlobalPrefix", "="], "ground_truth": ["", ";"], "File": "LC2200MCAsmInfo", "Func": "LC2200MCAsmInfo", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112117, "Length": 44, "Cover_Rate": 0.5301204819277109} {"Template_token": ["", "MCCodeEmitter", "*", "llvm", "::", "createMCCodeEmitter", "(", "const", "llvm", "::", "MCInstrInfo", "&", "MCII", ","], "ground_truth": ["const", "llvm", "::", "MCRegisterInfo", "&", "MRI", ",", "llvm", "::", "MCContext", "&", "Ctx", ")", "{"], "File": "LC2200MCCodeEmitter", "Func": "createLC2200MCCodeEmitter", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112118, "Length": 27, "Cover_Rate": 0.7714285714285715} {"Template_token": ["", "OS", "<<", "(", "char", ")", "C", ";", "++"], "ground_truth": ["CurByte", ";"], "File": "LC2200MCCodeEmitter", "Func": "EmitByte", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112119, "Length": 10, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "void", "EmitByte", "(", "unsigned", "char", "C", ",", "unsigned", "&", "CurByte", ",", "raw_ostream", "&", "OS", ")", "const", "{", "OS", "<<", "("], "ground_truth": ["char", ")", "C", ";"], "File": "LC2200MCCodeEmitter", "Func": "EmitByte", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112120, "Length": 24, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "void", "MCCodeEmitter", "::", "encodeInstruction", "(", "const", "MCInst", "&", "Inst", ",", "raw_ostream", "&", "OS", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "uint32_t", "CurByte", "=", "", ";", "unsigned", "Value", "=", "getBinaryCodeForInstr", "(", "Inst", ",", "Fixups"], "ground_truth": [",", "STI", ")", ";"], "File": "LC2200MCCodeEmitter", "Func": "encodeInstruction", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112121, "Length": 45, "Cover_Rate": 0.7894736842105263} {"Template_token": ["", "static", "MCStreamer", "*", "createELFStreamer", "(", "const", "Triple", "&", "T", ",", "MCContext", "&", "Ctx", ",", "std", "::", "unique_ptr", "<", "MCAsmBackend", ">", "&&", "MAB", ",", "std", "::", "unique_ptr", "<", "MCObjectWriter", ">", "&&", "OW", ",", "std", "::", "unique_ptr", "<"], "ground_truth": ["MCCodeEmitter", ">", "&&", "Emitter", ",", "bool", "RelaxAll", ")", "{"], "File": "LC2200MCTargetDesc", "Func": "createLC2200ELFStreamer", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112122, "Length": 45, "Cover_Rate": 0.6} {"Template_token": ["", "return", "createELFStreamer", "(", "Ctx", ",", "std", "::", "move", "(", "MAB", ")", ",", "std", "::", "move", "(", "OW", ")", ",", "std"], "ground_truth": ["::", "move", "(", "Emitter", ")", ",", "RelaxAll", ")", ";"], "File": "LC2200MCTargetDesc", "Func": "createLC2200ELFStreamer", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112123, "Length": 29, "Cover_Rate": 0.38666666666666666} {"Template_token": ["", "static", "MCInstPrinter", "*", "createMCInstPrinter", "(", "const", "Triple", "&", "T", ",", "unsigned", "SyntaxVariant", ",", "const", "MCAsmInfo", "&", "MAI", ",", "const", "MCInstrInfo", "&", "MII", ",", "const", "MCRegisterInfo", "&", "MRI", ")", "{", "return", "new", "InstPrinter", "(", "MAI", ","], "ground_truth": ["MII", ",", "MRI", ")", ";"], "File": "LC2200MCTargetDesc", "Func": "createLC2200MCInstPrinter", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112124, "Length": 40, "Cover_Rate": 0.975609756097561} {"Template_token": ["", "static", "MCInstrInfo", "*", "createMCInstrInfo", "(", ")", "{", "MCInstrInfo", "*", "X", "=", "new", "MCInstrInfo", "(", ")", ";", "InitMCInstrInfo", "(", "X", ")", ";", "return", "X"], "ground_truth": [";"], "File": "LC2200MCTargetDesc", "Func": "createLC2200MCInstrInfo", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112125, "Length": 24, "Cover_Rate": 0.96} {"Template_token": ["", "TargetRegistry", "::", "RegisterMCInstPrinter", "(", "TheTarget", ",", "createMCInstPrinter", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "TheTarget", ",", "createAsmBackend", ")", ";", "TargetRegistry", "::", "RegisterELFStreamer", "("], "ground_truth": ["TheTarget", ",", "createELFStreamer", ")", ";"], "File": "LC2200MCTargetDesc", "Func": "LLVMInitializeLC2200TargetMC", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112126, "Length": 27, "Cover_Rate": 0.35064935064935066} {"Template_token": ["", "TargetRegistry", "::", "RegisterMCRegInfo", "(", "TheTarget", ",", "createMCRegisterInfo", ")", ";", "TargetRegistry", "::", "RegisterMCSubtargetInfo", "(", "TheTarget", ",", "createMCSubtargetInfoImpl", ")", ";", "TargetRegistry", "::", "RegisterMCInstPrinter", "(", "TheTarget", ",", "createMCInstPrinter", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "TheTarget"], "ground_truth": [",", "createAsmBackend", ")", ";"], "File": "LC2200MCTargetDesc", "Func": "LLVMInitializeLC2200TargetMC", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112127, "Length": 36, "Cover_Rate": 0.4675324675324675} {"Template_token": ["", "unsigned", "FrameReg", ";", "if", "(", "FrameIndex", ">=", "MinCSFI", "&&", "FrameIndex", "<=", "MaxCSFI", ")", "FrameReg", "=", "", ";", "else", "{", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "{", "FrameReg", "=", "", ";", "}", "else", "{", "if", "(", "(", "MI", ".", "getNumOperands", "(", ")", ">", "OpNo", "+", "", ")", "&&", "MI", ".", "getOperand", "(", "OpNo", "+", "", ")", ".", "isReg", "(", ")", ")", "FrameReg", "=", "MI", ".", "getOperand", "(", "OpNo", "+", "", ")", ".", "getReg", "(", ")", ";", "else", "FrameReg", "=", "", ";", "}", "}", "int64_t", "Offset", ";", "bool", "IsKill", "=", "false", ";", "Offset", "=", "SPOffset", "+", "(", "int64_t", ")", "StackSize", ";", "Offset", "+=", "MI", ".", "getOperand", "(", "OpNo", "+", "", ")", ".", "getImm", "(", ")", ";", "LLVM_DEBUG", "(", "errs", "(", ")", "<<", "", "<<", "Offset", "<<", "", "<<", "", ")", ";", "if", "(", "!", "MI", ".", "isDebugValue", "(", ")", "&&", "!", "InstrInfo", "::", "validImmediate", "(", "MI", ".", "getOpcode", "(", ")", ",", "FrameReg", ",", "Offset", ")", ")", "{", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "DebugLoc", "DL", "=", "II", "->", "getDebugLoc", "(", ")", ";", "unsigned", "NewImm", ";", "const", "InstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "InstrInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "FrameReg", "=", "TII", ".", "loadImmediate", "(", "FrameReg", ",", "Offset", ",", "MBB", ",", "II", ","], "ground_truth": ["DL", ",", "NewImm", ")", ";"], "File": "LC2200RegisterInfo", "Func": "eliminateFrameIndex", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112128, "Length": 239, "Cover_Rate": 0.4605009633911368} {"Template_token": ["", "else", "{", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "{", "FrameReg", "=", "", ";", "}", "else", "{", "if", "(", "(", "MI", ".", "getNumOperands", "(", ")", ">", "OpNo", "+", "", ")", "&&", "MI", ".", "getOperand", "(", "OpNo", "+", "", ")", ".", "isReg", "(", ")", ")", "FrameReg", "=", "MI", ".", "getOperand", "(", "OpNo", "+", "", ")", ".", "getReg", "(", ")", ";", "else", "FrameReg", "=", "", ";", "}", "}", "int64_t", "Offset", ";", "bool", "IsKill", "=", "false", ";", "Offset", "=", "SPOffset", "+", "(", "int64_t", ")", "StackSize", ";", "Offset", "+=", "MI", ".", "getOperand", "(", "OpNo", "+", "", ")", ".", "getImm", "(", ")", ";", "LLVM_DEBUG", "(", "errs", "(", ")", "<<", "", "<<", "Offset", "<<", "", "<<", "", ")", ";", "if", "(", "!", "MI", ".", "isDebugValue", "(", ")", "&&", "!", "InstrInfo", "::", "validImmediate", "(", "MI", ".", "getOpcode", "(", ")", ",", "FrameReg", ",", "Offset", ")", ")", "{", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", "."], "ground_truth": ["getParent", "(", ")", ";"], "File": "LC2200RegisterInfo", "Func": "eliminateFrameIndex", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112129, "Length": 167, "Cover_Rate": 0.3217726396917148} {"Template_token": ["", "const", "MCPhysReg", "*", "RegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "return", "CC_Save_SaveList"], "ground_truth": [";"], "File": "LC2200RegisterInfo", "Func": "getCalleeSavedRegs", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112130, "Length": 17, "Cover_Rate": 0.9444444444444444} {"Template_token": ["", "const", "MCPhysReg", "*", "RegisterInfo", "::", "getCalleeSavedRegs", "(", "const"], "ground_truth": ["MachineFunction", "*", "MF", ")", "const", "{"], "File": "LC2200RegisterInfo", "Func": "getCalleeSavedRegs", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112131, "Length": 14, "Cover_Rate": 0.7777777777777778} {"Template_token": ["", "const", "uint32_t", "*", "RegisterInfo", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", "MF", ",", "CallingConv", "::", "ID", ")", "const", "{", "return"], "ground_truth": ["CC_Save_RegMask", ";"], "File": "LC2200RegisterInfo", "Func": "getCallPreservedMask", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112132, "Length": 21, "Cover_Rate": 0.9545454545454546} {"Template_token": ["", "Register", "RegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "Subtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "Subtarget", ">", "(", ")", ";", "const", "TargetFrameLowering", "*", "TFI", "=", "Subtarget", ".", "getFrameLowering", "(", ")", ";", "return", "TFI", "->", "hasFP", "(", "MF", ")"], "ground_truth": ["?", "", ":", "", ";"], "File": "LC2200RegisterInfo", "Func": "getFrameRegister", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112133, "Length": 49, "Cover_Rate": 0.9074074074074074} {"Template_token": ["", "const", "TargetRegisterClass", "*", "getPointerRegClass", "(", "const", "MachineFunction", "&", "MF", ",", "unsigned", "Kind", "=", "", ")", "const", "override", "{", "return", "&"], "ground_truth": ["", ";"], "File": "LC2200RegisterInfo", "Func": "getPointerRegClass", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112134, "Length": 22, "Cover_Rate": 0.88} {"Template_token": ["", "bool", "requiresFrameIndexScavenging", "(", "const", "MachineFunction", "&", "MF", ")", "const", "override", "{", "return", "true"], "ground_truth": [";"], "File": "LC2200RegisterInfo", "Func": "requiresFrameIndexScavenging", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112135, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "bool", "trackLivenessAfterRegAlloc", "(", "const", "MachineFunction", "&", ")", "const", "override", "{", "return", "true"], "ground_truth": [";"], "File": "LC2200RegisterInfo", "Func": "trackLivenessAfterRegAlloc", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112136, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "const", "FrameLowering", "*", "getFrameLowering"], "ground_truth": ["(", ")", "const", "override", "{"], "File": "LC2200Subtarget", "Func": "getFrameLowering", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112137, "Length": 9, "Cover_Rate": 0.6428571428571429} {"Template_token": ["", "", "getTargetABI", "(", ")", "const"], "ground_truth": ["{"], "File": "LC2200Subtarget", "Func": "getTargetABI", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112138, "Length": 6, "Cover_Rate": 0.5} {"Template_token": ["", "const", "TargetLowering", "*", "getTargetLowering", "(", ")", "const", "override", "{", "return", "&"], "ground_truth": ["TLInfo", ";"], "File": "LC2200Subtarget", "Func": "getTargetLowering", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112139, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")"], "ground_truth": [",", "FrameLowering", "(", "*", "this", ",", "", ")", "{"], "File": "LC2200Subtarget", "Func": "LC2200Subtarget", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112140, "Length": 25, "Cover_Rate": 0.5102040816326531} {"Template_token": ["", "Subtarget", "::", "Subtarget", "(", "const", "Triple", "&", "TT", ",", "const", "StringRef", "CPU", ",", "const", "StringRef", "FS", ",", "const", "TargetMachine"], "ground_truth": ["&", "TM", ")", ":"], "File": "LC2200Subtarget", "Func": "LC2200Subtarget", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112141, "Length": 23, "Cover_Rate": 0.46938775510204084} {"Template_token": ["", "void", "LLVMInitializeTargetInfo", "(", ")", "{", "RegisterTarget", "<", "Triple", "::", "lc2200", ">", "X", "(", "TheTarget", ","], "ground_truth": ["", ",", "", ",", "", ")", ";"], "File": "LC2200TargetInfo", "Func": "LLVMInitializeLC2200TargetInfo", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112142, "Length": 22, "Cover_Rate": 0.9565217391304348} {"Template_token": ["", "bool", "PassConfig", "::", "addGlobalInstructionSelect", "(", ")", "{", "addPass", "(", "new", "InstructionSelect", "(", ")", ")", ";", "return", "false"], "ground_truth": [";"], "File": "LC2200TargetMachine", "Func": "addGlobalInstructionSelect", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112143, "Length": 18, "Cover_Rate": 0.9473684210526315} {"Template_token": ["", "addPass", "(", "createISelDag", "(", "getTargetMachine", "(", ")", ",", "getOptLevel", "(", ")", ")", ")", ";", "return"], "ground_truth": ["false", ";"], "File": "LC2200TargetMachine", "Func": "addInstSelector", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112144, "Length": 17, "Cover_Rate": 0.68} {"Template_token": ["", "TargetPassConfig", "*", "TargetMachine", "::", "createPassConfig", "(", "PassManagerBase", "&", "PM", ")", "{", "return", "new", "PassConfig", "(", "*", "this", ","], "ground_truth": ["PM", ")", ";"], "File": "LC2200TargetMachine", "Func": "createPassConfig", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112145, "Length": 21, "Cover_Rate": 0.9545454545454546} {"Template_token": ["", "TargetLoweringObjectFile", "*", "getObjFileLowering", "(", ")"], "ground_truth": ["const", "override", "{"], "File": "LC2200TargetMachine", "Func": "getObjFileLowering", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112146, "Length": 8, "Cover_Rate": 0.5} {"Template_token": ["", "const", "Subtarget", "*", "getSubtargetImpl", "(", "const"], "ground_truth": ["Function", "&", ")", "const", "override", "{"], "File": "LC2200TargetMachine", "Func": "getSubtargetImpl", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112147, "Length": 12, "Cover_Rate": 0.7058823529411765} {"Template_token": ["", "const", "Subtarget", "*", "getSubtargetImpl", "(", "const", "Function", "&", ")", "const", "override", "{", "return", "&", "DefaultSubtarget"], "ground_truth": [";"], "File": "LC2200TargetMachine", "Func": "getSubtargetImpl", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112148, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "RegisterTargetMachine", "<", "TargetMachine", ">", "X", "("], "ground_truth": ["TheTarget", ")", ";"], "File": "LC2200TargetMachine", "Func": "LLVMInitializeLC2200Target", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112149, "Length": 9, "Cover_Rate": 0.6}