{"ground_truth": ["", "void", "AGCAsmBackend", "::", "applyFixup", "(", "const", "MCAssembler", "&", "Asm", ",", "const", "MCFixup", "&", "Fixup", ",", "const", "MCValue", "&", "Target", ",", "MutableArrayRef", "<", "char", ">", "Data", ",", "uint64_t", "Value", ",", "bool", "IsResolved", ",", "const", "MCSubtargetInfo", "*", "STI", ")", "const", "{", "return", ";", "}", ""], "natrual_language": ["Apply", "the", "Value", "for", "given", "Fixup", "into", "the", "provided", "data", "fragment", ",", "at", "the", "offset", "specified", "by", "the", "fixup", "and", "following", "the", "fixup", "kind", "as", "appropriate", "."], "TS_V_token": ["AGC", "AGC"], "File": "AGCAsmBackend", "Func": "applyFixup", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28288, "Length": 42} {"ground_truth": ["", "bool", "fixupNeedsRelaxation", "(", "const", "MCFixup", "&", "Fixup", ",", "uint64_t", "Value", ",", "const", "MCRelaxableFragment", "*", "DF", ",", "const", "MCAsmLayout", "&", "Layout", ")", "const", "override", "{", "return", "false", ";", "}", ""], "natrual_language": ["Simple", "predicate", "for", "targets", "where", "!", "Resolved", "implies", "requiring", "relaxation", "."], "TS_V_token": ["AGC"], "File": "AGCAsmBackend", "Func": "fixupNeedsRelaxation", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28289, "Length": 28} {"ground_truth": ["", "unsigned", "getMinimumNopSize", "(", ")", "const", "override", "{", "return", "2", ";", "}", ""], "natrual_language": ["Returns", "the", "minimum", "size", "of", "a", "nop", "in", "bytes", "on", "this", "target", "."], "TS_V_token": ["AGC", "2"], "File": "AGCAsmBackend", "Func": "getMinimumNopSize", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28290, "Length": 11} {"ground_truth": ["", "unsigned", "getNumFixupKinds", "(", ")", "const", "override", "{", "return", "1", ";", "}", ""], "natrual_language": ["Get", "the", "number", "of", "target", "specific", "fixup", "kinds", "."], "TS_V_token": ["AGC", "1"], "File": "AGCAsmBackend", "Func": "getNumFixupKinds", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28291, "Length": 11} {"ground_truth": ["", "bool", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "override", "{", "return", "false", ";", "}", ""], "natrual_language": ["Check", "whether", "the", "given", "instruction", "may", "need", "relaxation", "."], "TS_V_token": ["AGC"], "File": "AGCAsmBackend", "Func": "mayNeedRelaxation", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28292, "Length": 20} {"ground_truth": ["", "void", "AGCAsmBackend", "::", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "MCInst", "&", "Res", ")", "const", "{", "llvm_unreachable", "(", "\"No relaxation implemented\"", ")", ";", "}", ""], "natrual_language": ["Relax", "the", "instruction", "in", "the", "given", "fragment", "to", "the", "next", "wider", "instruction", "."], "TS_V_token": ["AGC", "AGC", "\"No relaxation implemented\""], "File": "AGCAsmBackend", "Func": "relaxInstruction", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28293, "Length": 27} {"ground_truth": ["", "bool", "AGCAsmBackend", "::", "writeNopData", "(", "raw_ostream", "&", "OS", ",", "uint64_t", "Count", ")", "const", "{", "if", "(", "Count", "%", "2", "!=", "0", ")", "return", "false", ";", "uint64_t", "NopCount", "=", "Count", "/", "2", ";", "for", "(", "uint64_t", "i", "=", "0", ";", "i", "<", "NopCount", ";", "i", "++", ")", "AGCMCCodeEmitter", "::", "emitBitsWithParity", "(", "OS", ",", "0x3000", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Write", "an", "(", "optimal", ")", "nop", "sequence", "of", "Count", "bytes", "to", "the", "given", "output", "."], "TS_V_token": ["AGC", "AGC", "2", "0", "2", "0", "AGC", "0x3000"], "File": "AGCAsmBackend", "Func": "writeNopData", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28294, "Length": 59} {"ground_truth": ["", "void", "addExpr", "(", "MCInst", "&", "Inst", ",", "const", "MCExpr", "*", "Expr", ")", "const", "{", "assert", "(", "Expr", "&&", "\"Expr shouldn't be null!\"", ")", ";", "if", "(", "auto", "*", "CE", "=", "dyn_cast", "<", "MCConstantExpr", ">", "(", "Expr", ")", ")", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "CE", "->", "getValue", "(", ")", ")", ")", ";", "else", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createExpr", "(", "Expr", ")", ")", ";", "}", ""], "natrual_language": ["Add", "a", "new", "MCExpr", "operand", "."], "TS_V_token": ["AGC", "\"Expr shouldn't be null!\""], "File": "AGCAsmParser", "Func": "addExpr", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28295, "Length": 65} {"ground_truth": ["", "unsigned", "AGCAsmParser", "::", "checkEarlyTargetMatchPredicate", "(", "MCInst", "&", "Inst", ",", "const", "OperandVector", "&", "Operands", ")", "{", "unsigned", "Opcode", "=", "Inst", ".", "getOpcode", "(", ")", ";", "if", "(", "Opcode", "==", "AGC", "::", "EXTEND", ")", "{", "ParsedExtend", "=", "true", ";", "return", "Match_IgnoredExtend", ";", "}", "bool", "InstIsExtracode", "=", "MII", ".", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "AGCII", "::", "IsExtracode", ";", "if", "(", "!", "ParsingExtracode", ")", "return", "InstIsExtracode", "?", "Match_ExtracodeFail", ":", "Match_Success", ";", "return", "InstIsExtracode", "?", "Match_Success", ":", "Match_NonExtracodeFail", ";", "return", "Match_Success", ";", "}", ""], "natrual_language": ["Validate", "the", "instruction", "match", "against", "any", "complex", "target", "predicates", "before", "rendering", "any", "operands", "to", "it", "."], "TS_V_token": ["AGC", "AGC", "AGC::EXTEND", "AGCII::IsExtracode"], "File": "AGCAsmParser", "Func": "checkEarlyTargetMatchPredicate", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28296, "Length": 80} {"ground_truth": ["", "SMLoc", "getEndLoc", "(", ")", "const", "override", "{", "return", "EndLoc", ";", "}", ""], "natrual_language": ["getEndLoc", "-", "Get", "the", "location", "of", "the", "last", "token", "of", "this", "operand", "."], "TS_V_token": ["AGC"], "File": "AGCAsmParser", "Func": "getEndLoc", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28297, "Length": 11} {"ground_truth": ["", "SMLoc", "getLoc", "(", ")", "{", "return", "getParser", "(", ")", ".", "getTok", "(", ")", ".", "getLoc", "(", ")", ";", "}", ""], "natrual_language": ["Get", "the", "source", "location", "of", "the", "point", "where", "the", "field", "was", "defined", "."], "TS_V_token": ["AGC"], "File": "AGCAsmParser", "Func": "getLoc", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28298, "Length": 19} {"ground_truth": ["", "unsigned", "getReg", "(", ")", "const", "override", "{", "llvm_unreachable", "(", "\"Invalid type access!\"", ")", ";", "}", ""], "natrual_language": ["Returns", "the", "register", "associated", "with", "this", "edge", "."], "TS_V_token": ["AGC", "\"Invalid type access!\""], "File": "AGCAsmParser", "Func": "getReg", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28299, "Length": 13} {"ground_truth": ["", "SMLoc", "getStartLoc", "(", ")", "const", "override", "{", "return", "StartLoc", ";", "}", ""], "natrual_language": ["getStartLoc", "-", "Get", "the", "location", "of", "the", "first", "token", "of", "this", "operand", "."], "TS_V_token": ["AGC"], "File": "AGCAsmParser", "Func": "getStartLoc", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28300, "Length": 11} {"ground_truth": ["", "bool", "isImm", "(", ")", "const", "override", "{", "return", "Kind", "==", "Immediate", ";", "}", ""], "natrual_language": ["isImm", "-", "Is", "this", "an", "immediate", "operand", "?"], "TS_V_token": ["AGC"], "File": "AGCAsmParser", "Func": "isImm", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28301, "Length": 13} {"ground_truth": ["", "bool", "isMem", "(", ")", "const", "override", "{", "return", "false", ";", "}", ""], "natrual_language": ["isMem", "-", "Is", "this", "a", "memory", "operand", "?"], "TS_V_token": ["AGC"], "File": "AGCAsmParser", "Func": "isMem", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28302, "Length": 11} {"ground_truth": ["", "bool", "isReg", "(", ")", "const", "override", "{", "return", "false", ";", "}", ""], "natrual_language": ["isReg", "-", "Is", "this", "a", "register", "operand", "?"], "TS_V_token": ["AGC"], "File": "AGCAsmParser", "Func": "isReg", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28303, "Length": 11} {"ground_truth": ["", "bool", "isToken", "(", ")", "const", "override", "{", "return", "Kind", "==", "Token", ";", "}", ""], "natrual_language": ["isToken", "-", "Is", "this", "a", "token", "operand", "?"], "TS_V_token": ["AGC"], "File": "AGCAsmParser", "Func": "isToken", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28304, "Length": 13} {"ground_truth": ["", "bool", "AGCAsmParser", "::", "MatchAndEmitInstruction", "(", "SMLoc", "IDLoc", ",", "unsigned", "&", "Opcode", ",", "OperandVector", "&", "Operands", ",", "MCStreamer", "&", "Out", ",", "uint64_t", "&", "ErrorInfo", ",", "bool", "MatchingInlineAsm", ")", "{", "MCInst", "Inst", ";", "switch", "(", "MatchInstructionImpl", "(", "Operands", ",", "Inst", ",", "ErrorInfo", ",", "MatchingInlineAsm", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown match type detected!\"", ")", ";", "case", "Match_IgnoredExtend", ":", "return", "false", ";", "case", "Match_Success", ":", "Inst", ".", "setLoc", "(", "IDLoc", ")", ";", "Out", ".", "EmitInstruction", "(", "Inst", ",", "getSTI", "(", ")", ")", ";", "return", "false", ";", "case", "Match_MnemonicFail", ":", "return", "Error", "(", "IDLoc", ",", "\"unrecognized instruction mnemonic\"", ")", ";", "case", "Match_ExtracodeFail", ":", "return", "Error", "(", "IDLoc", ",", "\"extracode instruction should be prefixed with EXTEND\"", ")", ";", "case", "Match_NonExtracodeFail", ":", "return", "Error", "(", "IDLoc", ",", "\"instruction prefixed with EXTEND is not an extracode\"", ")", ";", "case", "Match_InvalidOperand", ":", "{", "SMLoc", "ErrorLoc", "=", "IDLoc", ";", "if", "(", "ErrorInfo", "!=", "~", "0U", ")", "{", "if", "(", "ErrorInfo", ">=", "Operands", ".", "size", "(", ")", ")", "return", "Error", "(", "ErrorLoc", ",", "\"too few operands for instruction\"", ")", ";", "ErrorLoc", "=", "Operands", "[", "ErrorInfo", "]", "->", "getStartLoc", "(", ")", ";", "if", "(", "ErrorLoc", "==", "SMLoc", "(", ")", ")", "ErrorLoc", "=", "IDLoc", ";", "}", "return", "Error", "(", "ErrorLoc", ",", "\"invalid operand for instruction\"", ")", ";", "}", "case", "Match_InvalidMem12", ":", "{", "SMLoc", "ErrorLoc", "=", "Operands", "[", "ErrorInfo", "]", "->", "getStartLoc", "(", ")", ";", "return", "Error", "(", "ErrorLoc", ",", "\"memory address must be an immediate in the range \"", "\"[0, 4095] or a symbol\"", ")", ";", "}", "case", "Match_InvalidMem10", ":", "{", "SMLoc", "ErrorLoc", "=", "Operands", "[", "ErrorInfo", "]", "->", "getStartLoc", "(", ")", ";", "return", "Error", "(", "ErrorLoc", ",", "\"memory address must be an immediate in the range \"", "\"[0, 1023] or a symbol\"", ")", ";", "}", "case", "Match_InvalidIO9", ":", "{", "SMLoc", "ErrorLoc", "=", "Operands", "[", "ErrorInfo", "]", "->", "getStartLoc", "(", ")", ";", "return", "Error", "(", "ErrorLoc", ",", "\"IO channel address must be an immediate in the \"", "\"range [0, 511] or a symbol\"", ")", ";", "}", "case", "Match_InvalidAddress12", ":", "{", "SMLoc", "ErrorLoc", "=", "Operands", "[", "ErrorInfo", "]", "->", "getStartLoc", "(", ")", ";", "return", "Error", "(", "ErrorLoc", ",", "\"address must be an immediate in the range [0, 4095] or a symbol\"", ")", ";", "}", "case", "Match_InvalidBank6", ":", "{", "SMLoc", "ErrorLoc", "=", "Operands", "[", "ErrorInfo", "]", "->", "getStartLoc", "(", ")", ";", "return", "Error", "(", "ErrorLoc", ",", "\"bank number must be an immediate in the range [0, 35]\"", ")", ";", "}", "case", "Match_InvalidBlock2", ":", "{", "SMLoc", "ErrorLoc", "=", "Operands", "[", "ErrorInfo", "]", "->", "getStartLoc", "(", ")", ";", "return", "Error", "(", "ErrorLoc", ",", "\"block number must be either 0, 2 or 3\"", ")", ";", "}", "case", "Match_InvalidImm15", ":", "{", "SMLoc", "ErrorLoc", "=", "Operands", "[", "ErrorInfo", "]", "->", "getStartLoc", "(", ")", ";", "return", "Error", "(", "ErrorLoc", ",", "\"operand must be an immediate in the range [0, 32767] or a symbol\"", ")", ";", "}", "}", "}", ""], "natrual_language": ["MatchAndEmitInstruction", "-", "Recognize", "a", "series", "of", "operands", "of", "a", "parsed", "instruction", "as", "an", "actual", "MCInst", "and", "emit", "it", "to", "the", "specified", "MCStreamer", "."], "TS_V_token": ["AGC", "AGC", "\"Unknown match type detected!\"", "\"unrecognized instruction mnemonic\"", "\"extracode instruction should be prefixed with EXTEND\"", "\"instruction prefixed with EXTEND is not an extracode\"", "0U", "\"too few operands for instruction\"", "\"invalid operand for instruction\"", "\"memory address must be an immediate in the range \"", "\"[0, 4095] or a symbol\"", "\"memory address must be an immediate in the range \"", "\"[0, 1023] or a symbol\"", "\"IO channel address must be an immediate in the \"", "\"range [0, 511] or a symbol\"", "\"address must be an immediate in the range [0, 4095] or a symbol\"", "\"bank number must be an immediate in the range [0, 35]\"", "\"block number must be either 0, 2 or 3\"", "\"operand must be an immediate in the range [0, 32767] or a symbol\""], "File": "AGCAsmParser", "Func": "MatchAndEmitInstruction", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28305, "Length": 363} {"ground_truth": ["", "bool", "AGCAsmParser", "::", "ParseDirective", "(", "AsmToken", "DirectiveID", ")", "{", "return", "true", ";", "}", ""], "natrual_language": ["ParseDirective", "-", "Parse", "a", "target", "specific", "assembler", "directive", "This", "method", "is", "deprecated", ",", "use", "'parseDirective", "'", "instead", "."], "TS_V_token": ["AGC", "AGC"], "File": "AGCAsmParser", "Func": "ParseDirective", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28306, "Length": 13} {"ground_truth": ["", "bool", "AGCAsmParser", "::", "ParseInstruction", "(", "ParseInstructionInfo", "&", "Info", ",", "StringRef", "Name", ",", "SMLoc", "NameLoc", ",", "OperandVector", "&", "Operands", ")", "{", "ParsingExtracode", "=", "ParsedExtend", ";", "ParsedExtend", "=", "false", ";", "Operands", ".", "push_back", "(", "AGCOperand", "::", "createToken", "(", "Name", ",", "NameLoc", ")", ")", ";", "if", "(", "getLexer", "(", ")", ".", "is", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "return", "false", ";", "if", "(", "parseImmediate", "(", "Operands", ")", "!=", "MatchOperand_Success", ")", "return", "Error", "(", "getLoc", "(", ")", ",", "\"unknown operand\"", ")", ";", "if", "(", "getLexer", "(", ")", ".", "isNot", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "{", "SMLoc", "Loc", "=", "getLoc", "(", ")", ";", "getParser", "(", ")", ".", "eatToEndOfStatement", "(", ")", ";", "return", "Error", "(", "Loc", ",", "\"unexpected token\"", ")", ";", "}", "getParser", "(", ")", ".", "Lex", "(", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["ParseInstruction", "-", "Parse", "one", "assembly", "instruction", "."], "TS_V_token": ["AGC", "AGC", "AGCOperand::createToken", "\"unknown operand\"", "\"unexpected token\""], "File": "AGCAsmParser", "Func": "ParseInstruction", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28307, "Length": 127} {"ground_truth": ["", "void", "print", "(", "raw_ostream", "&", "OS", ")", "const", "override", "{", "switch", "(", "Kind", ")", "{", "case", "Immediate", ":", "OS", "<<", "*", "getImm", "(", ")", ";", "break", ";", "case", "Token", ":", "OS", "<<", "\"'\"", "<<", "getToken", "(", ")", "<<", "\"'\"", ";", "break", ";", "}", "}", ""], "natrual_language": ["print", "-", "Print", "a", "debug", "representation", "of", "the", "operand", "to", "the", "given", "stream", "."], "TS_V_token": ["AGC", "\"'\"", "\"'\""], "File": "AGCAsmParser", "Func": "print", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28308, "Length": 44} {"ground_truth": ["", "void", "AGCAsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "if", "(", "emitPseudoExpansionLowering", "(", "*", "OutStreamer", ",", "MI", ")", ")", "return", ";", "MCInst", "TmpInst", ";", "LowerAGCMachineInstrToMCInst", "(", "MI", ",", "TmpInst", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "TmpInst", ")", ";", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["AGC", "AGC", "AGC"], "File": "AGCAsmPrinter", "Func": "EmitInstruction", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28309, "Length": 42} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"AGC Assembly Printer\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["AGC", "\"AGC Assembly Printer\""], "File": "AGCAsmPrinter", "Func": "getPassName", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28310, "Length": 11} {"ground_truth": ["", "DecodeStatus", "AGCDisassembler", "::", "getInstruction", "(", "MCInst", "&", "MI", ",", "uint64_t", "&", "Size", ",", "ArrayRef", "<", "uint8_t", ">", "Bytes", ",", "uint64_t", "Address", ",", "raw_ostream", "&", "OS", ",", "raw_ostream", "&", "CS", ")", "const", "{", "uint16_t", "Instruction", ";", "DecodeStatus", "Result", ";", "Instruction", "=", "support", "::", "endian", "::", "read16be", "(", "Bytes", ".", "data", "(", ")", ")", ";", "Instruction", "=", "(", "Instruction", "&", "0xFFFE", ")", ">>", "1", ";", "Result", "=", "decodeInstruction", "(", "DecoderTable16", ",", "MI", ",", "Instruction", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "!=", "AGC", "::", "EXTEND", ")", "{", "Size", "=", "2", ";", "return", "Result", ";", "}", "Instruction", "=", "support", "::", "endian", "::", "read16be", "(", "Bytes", ".", "drop_front", "(", "2", ")", ".", "data", "(", ")", ")", ";", "Instruction", "=", "(", "Instruction", "&", "0xFFFE", ")", ">>", "1", ";", "Result", "=", "decodeInstruction", "(", "DecoderTableExtracode16", ",", "MI", ",", "Instruction", ",", "Address", ",", "this", ",", "STI", ")", ";", "Size", "=", "4", ";", "return", "Result", ";", "}", ""], "natrual_language": ["Returns", "the", "disassembly", "of", "a", "single", "instruction", "."], "TS_V_token": ["AGC", "AGC", "support::endian", "0xFFFE", "1", "AGC::EXTEND", "2", "support::endian", "2", "0xFFFE", "1", "4"], "File": "AGCDisassembler", "Func": "getInstruction", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28311, "Length": 156} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"AGC pseudo instruction expansion pass\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["AGC", "\"AGC pseudo instruction expansion pass\""], "File": "AGCExpandPseudos", "Func": "getPassName", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28312, "Length": 11} {"ground_truth": ["", "bool", "AGCExpandPseudo", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "TII", "=", "static_cast", "<", "const", "AGCInstrInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "bool", "Modified", "=", "false", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "Modified", "|=", "expandMBB", "(", "MBB", ")", ";", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AGC", "AGC", "AGC"], "File": "AGCExpandPseudos", "Func": "runOnMachineFunction", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28313, "Length": 54} {"ground_truth": ["", "void", "AGCFrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "}", ""], "natrual_language": ["Insert", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["AGC", "AGC"], "File": "AGCFrameLowering", "Func": "emitEpilogue", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28314, "Length": 16} {"ground_truth": ["", "void", "AGCFrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "}", ""], "natrual_language": ["emitProlog/emitEpilog", "-", "These", "methods", "insert", "prolog", "and", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["AGC", "AGC"], "File": "AGCFrameLowering", "Func": "emitPrologue", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28315, "Length": 16} {"ground_truth": ["", "bool", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "override", "{", "return", "false", ";", "}", ""], "natrual_language": ["hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "."], "TS_V_token": ["AGC"], "File": "AGCFrameLowering", "Func": "hasFP", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28316, "Length": 15} {"ground_truth": ["", "void", "AGCInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "O", ",", "StringRef", "Annot", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "{", "unsigned", "Opcode", "=", "MI", "->", "getOpcode", "(", ")", ";", "if", "(", "MII", ".", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "AGCII", "::", "IsExtracode", ")", "O", "<<", "\"\\t\"", "<<", "\"extend\"", "<<", "\"\\n\"", ";", "printInstruction", "(", "MI", ",", "O", ")", ";", "printAnnotation", "(", "O", ",", "Annot", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["AGC", "AGC", "AGCII::IsExtracode", "\"\\t\"", "\"extend\"", "\"\\n\""], "File": "AGCInstPrinter", "Func": "printInst", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28317, "Length": 70} {"ground_truth": ["", "void", "AGCInstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "DebugLoc", "&", "DL", ",", "unsigned", "DestReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "if", "(", "SrcReg", "==", "DestReg", ")", "return", ";", "if", "(", "DestReg", "==", "AGC", "::", "R0", ")", "{", "assert", "(", "AGC", "::", "MM12RegClass", ".", "contains", "(", "SrcReg", ")", "&&", "\"Can only copy from memory\"", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "AGC", "::", "CA", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "return", ";", "}", "assert", "(", "AGC", "::", "MM10RegClass", ".", "contains", "(", "DestReg", ")", "&&", "\"Can only copy to erasable memory\"", ")", ";", "if", "(", "SrcReg", "!=", "AGC", "::", "R0", ")", "{", "assert", "(", "AGC", "::", "MM12RegClass", ".", "contains", "(", "SrcReg", ")", "&&", "\"Can only copy from memory\"", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "AGC", "::", "CA", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "KillSrc", "=", "true", ";", "}", "assert", "(", "KillSrc", "&&", "\"Cannot copy accumulator without killing it\"", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "AGC", "::", "TS", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "}", ""], "natrual_language": ["}", "Branch", "Analysis", "&", "Modification"], "TS_V_token": ["AGC", "AGC", "AGC::R0", "AGC::MM12RegClass", "\"Can only copy from memory\"", "AGC::CA", "AGC::MM10RegClass", "\"Can only copy to erasable memory\"", "AGC::R0", "AGC::MM12RegClass", "\"Can only copy from memory\"", "AGC::CA", "\"Cannot copy accumulator without killing it\"", "AGC::TS"], "File": "AGCInstrInfo", "Func": "copyPhysReg", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28318, "Length": 225} {"ground_truth": ["", "bool", "AGCInstrInfo", "::", "isCopyInstrImpl", "(", "const", "MachineInstr", "&", "MI", ",", "const", "MachineOperand", "*", "&", "SourceOpNum", ",", "const", "MachineOperand", "*", "&", "Destination", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "AGC", "::", "CA", ":", "case", "AGC", "::", "TS", ":", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["If", "the", "specific", "machine", "instruction", "is", "a", "instruction", "that", "moves/copies", "value", "from", "one", "register", "to", "another", "register", "return", "destination", "and", "source", "registers", "as", "machine", "operands", "."], "TS_V_token": ["AGC", "AGC", "AGC::CA", "AGC::TS"], "File": "AGCInstrInfo", "Func": "isCopyInstrImpl", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28319, "Length": 55} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"AGC DAG->DAG Pattern Instruction Selection\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["AGC", "\"AGC DAG->DAG Pattern Instruction Selection\""], "File": "AGCISelDAGToDAG", "Func": "getPassName", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28320, "Length": 11} {"ground_truth": ["", "void", "AGCDAGToDAGISel", "::", "Select", "(", "SDNode", "*", "Node", ")", "{", "if", "(", "Node", "->", "isMachineOpcode", "(", ")", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"== \"", "<<", "Node", "<<", "\"\\n\"", ")", ";", "Node", "->", "setNodeId", "(", "-", "1", ")", ";", "return", ";", "}", "switch", "(", "Node", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "Constant", ":", "{", "SelectAGCConstant", "(", "Node", ")", ";", "return", ";", "}", "}", "for", "(", "auto", "&", "Op", ":", "Node", "->", "ops", "(", ")", ")", "{", "switch", "(", "Op", ".", "getNode", "(", ")", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "Constant", ":", "{", "SelectAGCConstant", "(", "Op", ".", "getNode", "(", ")", ")", ";", "break", ";", "}", "}", "}", "SelectCode", "(", "Node", ")", ";", "}", ""], "natrual_language": ["Main", "hook", "for", "targets", "to", "transform", "nodes", "into", "machine", "nodes", "."], "TS_V_token": ["AGC", "AGC", "\"== \"", "\"\\n\"", "1", "ISD::Constant", "AGC", "ISD::Constant", "AGC"], "File": "AGCISelDAGToDAG", "Func": "Select", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28321, "Length": 127} {"ground_truth": ["", "const", "char", "*", "AGCTargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "(", "AGCISD", "::", "NodeType", ")", "Opcode", ")", "{", "default", ":", "break", ";", "case", "AGCISD", "::", "RET_FLAG", ":", "return", "\"AGCISD::RET_FLAG\"", ";", "}", "return", "nullptr", ";", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["AGC", "AGC", "AGCISD::NodeType", "AGCISD::RET_FLAG", "\"AGCISD::RET_FLAG\""], "File": "AGCISelLowering", "Func": "getTargetNodeName", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28322, "Length": 39} {"ground_truth": ["", "SDValue", "AGCTargetLowering", "::", "LowerFormalArguments", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "const", "SDLoc", "&", "DL", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "switch", "(", "CallConv", ")", "{", "default", ":", "report_fatal_error", "(", "\"unsupported calling convention\"", ")", ";", "case", "CallingConv", "::", "C", ":", "break", ";", "}", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "MachineRegisterInfo", "&", "RegInfo", "=", "MF", ".", "getRegInfo", "(", ")", ";", "if", "(", "IsVarArg", ")", "report_fatal_error", "(", "\"vararg not yet supported\"", ")", ";", "SmallVector", "<", "CCValAssign", ",", "16", ">", "ArgLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "MF", ",", "ArgLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeFormalArguments", "(", "Ins", ",", "CC_AGC", ")", ";", "for", "(", "auto", "&", "VA", ":", "ArgLocs", ")", "{", "if", "(", "!", "VA", ".", "isRegLoc", "(", ")", ")", "report_fatal_error", "(", "\"stack arguments not yet supported\"", ")", ";", "EVT", "RegVT", "=", "VA", ".", "getLocVT", "(", ")", ";", "if", "(", "RegVT", "!=", "MVT", "::", "i32", "&&", "RegVT", "!=", "MVT", "::", "i16", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"LowerFormalArguments Unhandled argument type: \"", "<<", "RegVT", ".", "getEVTString", "(", ")", "<<", "\"\\n\"", ")", ";", "report_fatal_error", "(", "\"unhandled argument type\"", ")", ";", "}", "unsigned", "VReg", "=", "RegInfo", ".", "createVirtualRegister", "(", "RegVT", "==", "MVT", "::", "i32", "?", "&", "AGC", "::", "MMD10RegClass", ":", "&", "AGC", "::", "MM10RegClass", ")", ";", "RegInfo", ".", "addLiveIn", "(", "VA", ".", "getLocReg", "(", ")", ",", "VReg", ")", ";", "SDValue", "ArgIn", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "VReg", ",", "RegVT", ")", ";", "InVals", ".", "push_back", "(", "ArgIn", ")", ";", "}", "return", "Chain", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "the", "incoming", "(", "formal", ")", "arguments", ",", "described", "by", "the", "Ins", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["AGC", "AGC", "ISD::InputArg", "\"unsupported calling convention\"", "\"vararg not yet supported\"", "16", "AGC", "\"stack arguments not yet supported\"", "MVT::i32", "MVT::i16", "\"LowerFormalArguments Unhandled argument type: \"", "\"\\n\"", "\"unhandled argument type\"", "MVT::i32", "AGC::MMD10RegClass", "AGC::MM10RegClass"], "File": "AGCISelLowering", "Func": "LowerFormalArguments", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28323, "Length": 264} {"ground_truth": ["", "SDValue", "AGCTargetLowering", "::", "LowerOperation", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "report_fatal_error", "(", "\"unimplemented operation\"", ")", ";", "case", "ISD", "::", "MUL", ":", "return", "LowerMUL", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SDIV", ":", "return", "LowerSDIV", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SREM", ":", "return", "LowerSREM", "(", "Op", ",", "DAG", ")", ";", "}", "}", ""], "natrual_language": ["LowerOperation", "-", "Provide", "custom", "lowering", "hooks", "for", "some", "operations", "."], "TS_V_token": ["AGC", "AGC", "\"unimplemented operation\"", "ISD::MUL", "ISD::SDIV", "ISD::SREM"], "File": "AGCISelLowering", "Func": "LowerOperation", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28324, "Length": 71} {"ground_truth": ["", "SDValue", "AGCTargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", ",", "const", "SDLoc", "&", "DL", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "if", "(", "IsVarArg", ")", "report_fatal_error", "(", "\"vararg not yet supported\"", ")", ";", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_AGC", ")", ";", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", "(", "1", ",", "Chain", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RVLocs", ".", "size", "(", ")", ";", "i", "<", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Can only return in upper and lower accumulators!\"", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "VA", ".", "getLocReg", "(", ")", ",", "OutVals", "[", "i", "]", ",", "Flag", ")", ";", "Flag", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "SDValue", "ArgOut", ";", "if", "(", "VA", ".", "getValNo", "(", ")", "==", "0", ")", "{", "ArgOut", "=", "DAG", ".", "getRegister", "(", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ")", ";", "}", "else", "if", "(", "VA", ".", "getValNo", "(", ")", "==", "1", ")", "{", "ArgOut", "=", "DAG", ".", "getRegister", "(", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ")", ";", "}", "else", "report_fatal_error", "(", "\"more than two register outputs\"", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "RetOps", "[", "0", "]", "=", "Chain", ";", "if", "(", "Flag", ".", "getNode", "(", ")", ")", "RetOps", ".", "push_back", "(", "Flag", ")", ";", "return", "DAG", ".", "getNode", "(", "AGCISD", "::", "RET_FLAG", ",", "DL", ",", "MVT", "::", "Other", ",", "RetOps", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["AGC", "AGC", "ISD::OutputArg", "\"vararg not yet supported\"", "16", "AGC", "4", "1", "0", "\"Can only return in upper and lower accumulators!\"", "1", "0", "1", "\"more than two register outputs\"", "0", "AGCISD::RET_FLAG", "MVT::Other"], "File": "AGCISelLowering", "Func": "LowerReturn", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28325, "Length": 322} {"ground_truth": ["", "void", "AGCTargetLowering", "::", "ReplaceNodeResults", "(", "SDNode", "*", "N", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "Results", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "SDValue", "Res", "=", "LowerOperation", "(", "SDValue", "(", "N", ",", "0", ")", ",", "DAG", ")", ";", "for", "(", "unsigned", "I", "=", "0", ",", "E", "=", "Res", "->", "getNumValues", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "Results", ".", "push_back", "(", "Res", ".", "getValue", "(", "I", ")", ")", ";", "break", ";", "}", "}", ""], "natrual_language": ["ReplaceNodeResults", "-", "Replace", "the", "results", "of", "node", "with", "an", "illegal", "result", "type", "with", "new", "values", "built", "out", "of", "custom", "code", "."], "TS_V_token": ["AGC", "AGC", "0", "0"], "File": "AGCISelLowering", "Func": "ReplaceNodeResults", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28326, "Length": 86} {"ground_truth": ["", "unsigned", "AGCMCCodeEmitter", "::", "getMachineOpValue", "(", "const", "MCInst", "&", "MI", ",", "const", "MCOperand", "&", "MO", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "if", "(", "MO", ".", "isImm", "(", ")", ")", "return", "static_cast", "<", "unsigned", ">", "(", "MO", ".", "getImm", "(", ")", ")", ";", "if", "(", "MO", ".", "isExpr", "(", ")", "&&", "MO", ".", "getExpr", "(", ")", "->", "getKind", "(", ")", "==", "MCExpr", "::", "SymbolRef", ")", "return", "0", ";", "llvm_unreachable", "(", "\"Unhandled expression!\"", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["getMachineOpValue", "-", "Return", "binary", "encoding", "of", "operand", "."], "TS_V_token": ["AGC", "AGC", "0", "\"Unhandled expression!\"", "0"], "File": "AGCMCCodeEmitter", "Func": "getMachineOpValue", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28327, "Length": 84} {"ground_truth": ["", "void", "AGCMCELFStreamer", "::", "EmitInstruction", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "bool", ")", "{", "switch", "(", "Inst", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "AGC", "::", "DirectiveBLOCK", ":", "{", "int64_t", "ImmOp", "=", "Inst", ".", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "StringRef", "SectionName", "=", "ImmOp", "==", "0", "?", "\"BLOCK0\"", ":", "(", "\"BANK\"", "+", "itostr", "(", "ImmOp", ")", ")", ";", "MCSection", "*", "Section", "=", "(", "(", "MCSection", "*", ")", "getContext", "(", ")", ".", "getELFSection", "(", "SectionName", ",", "ELF", "::", "SHT_PROGBITS", ",", "ELF", "::", "SHF_EXECINSTR", "|", "ELF", "::", "SHF_ALLOC", ")", ")", ";", "SwitchSection", "(", "Section", ",", "nullptr", ")", ";", "return", ";", "}", "case", "AGC", "::", "DirectiveBANK", ":", "{", "StringRef", "SectionName", "=", "\"BANK\"", "+", "itostr", "(", "Inst", ".", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ")", ";", "MCSection", "*", "Section", "=", "(", "(", "MCSection", "*", ")", "getContext", "(", ")", ".", "getELFSection", "(", "SectionName", ",", "ELF", "::", "SHT_PROGBITS", ",", "ELF", "::", "SHF_EXECINSTR", "|", "ELF", "::", "SHF_ALLOC", ")", ")", ";", "SwitchSection", "(", "Section", ",", "nullptr", ")", ";", "return", ";", "}", "case", "AGC", "::", "DirectiveBNKSUM", ":", "{", "return", ";", "}", "case", "AGC", "::", "DirectiveSETLOC", ":", "{", "StringRef", "SectionName", "=", "\"ADDR\"", "+", "itostr", "(", "Inst", ".", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ")", ";", "MCSection", "*", "Section", "=", "(", "(", "MCSection", "*", ")", "getContext", "(", ")", ".", "getELFSection", "(", "SectionName", ",", "ELF", "::", "SHT_PROGBITS", ",", "ELF", "::", "SHF_EXECINSTR", "|", "ELF", "::", "SHF_ALLOC", ")", ")", ";", "SwitchSection", "(", "Section", ",", "nullptr", ")", ";", "return", ";", "}", "}", "MCELFStreamer", "::", "EmitInstruction", "(", "Inst", ",", "STI", ")", ";", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["AGC", "AGC", "AGC::DirectiveBLOCK", "0", "0", "\"BLOCK0\"", "\"BANK\"", "AGC::DirectiveBANK", "\"BANK\"", "0", "AGC::DirectiveBNKSUM", "AGC::DirectiveSETLOC", "\"ADDR\"", "0"], "File": "AGCMCELFStreamer", "Func": "EmitInstruction", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28328, "Length": 262} {"ground_truth": ["", "void", "AGCRegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", "RS", ")", "const", "{", "report_fatal_error", "(", "\"Subroutines not supported yet\"", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["AGC", "AGC", "\"Subroutines not supported yet\""], "File": "AGCRegisterInfo", "Func": "eliminateFrameIndex", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28329, "Length": 28} {"ground_truth": ["", "const", "MCPhysReg", "*", "AGCRegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "return", "CSR_SaveList", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["AGC", "AGC"], "File": "AGCRegisterInfo", "Func": "getCalleeSavedRegs", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28330, "Length": 18} {"ground_truth": ["", "unsigned", "AGCRegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "~", "0u", ";", "}", ""], "natrual_language": ["Debug", "information", "queries", "."], "TS_V_token": ["AGC", "AGC", "0u"], "File": "AGCRegisterInfo", "Func": "getFrameRegister", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28331, "Length": 17} {"ground_truth": ["", "BitVector", "AGCRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "return", "Reserved", ";", "}", ""], "natrual_language": ["getReservedRegs", "-", "Returns", "a", "bitset", "indexed", "by", "physical", "register", "number", "indicating", "if", "a", "register", "is", "a", "special", "register", "that", "has", "particular", "uses", "and", "should", "be", "considered", "unavailable", "at", "all", "times", ",", "e.g", "."], "TS_V_token": ["AGC", "AGC"], "File": "AGCRegisterInfo", "Func": "getReservedRegs", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28332, "Length": 24} {"ground_truth": ["", "const", "AGCInstrInfo", "*", "getInstrInfo", "(", ")", "const", "override", "{", "return", "&", "InstrInfo", ";", "}", ""], "natrual_language": ["TargetInstrInfo", "getter", "."], "TS_V_token": ["AGC", "AGC"], "File": "AGCSubtarget", "Func": "getInstrInfo", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28333, "Length": 14} {"ground_truth": ["", "const", "AGCRegisterInfo", "*", "getRegisterInfo", "(", ")", "const", "override", "{", "return", "&", "RegInfo", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["AGC", "AGC"], "File": "AGCSubtarget", "Func": "getRegisterInfo", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28334, "Length": 14} {"ground_truth": ["", "bool", "AGCPassConfig", "::", "addInstSelector", "(", ")", "{", "addPass", "(", "createAGCISelDag", "(", "getAGCTargetMachine", "(", ")", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["addInstSelector", "-", "This", "method", "should", "install", "an", "instruction", "selector", "pass", ",", "which", "converts", "from", "LLVM", "code", "to", "machine", "instructions", "."], "TS_V_token": ["AGC", "AGC", "AGC", "AGC"], "File": "AGCTargetMachine", "Func": "addInstSelector", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28335, "Length": 21} {"ground_truth": ["", "void", "AGCPassConfig", "::", "addPreEmitPass2", "(", ")", "{", "addPass", "(", "createAGCExpandPseudoPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["Targets", "may", "add", "passes", "immediately", "before", "machine", "code", "is", "emitted", "in", "this", "callback", "."], "TS_V_token": ["AGC", "AGC", "AGC"], "File": "AGCTargetMachine", "Func": "addPreEmitPass2", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28336, "Length": 15} {"ground_truth": ["", "TargetPassConfig", "*", "AGCTargetMachine", "::", "createPassConfig", "(", "PassManagerBase", "&", "PM", ")", "{", "return", "new", "AGCPassConfig", "(", "*", "this", ",", "PM", ")", ";", "}", ""], "natrual_language": ["Create", "a", "pass", "configuration", "object", "to", "be", "used", "by", "addPassToEmitX", "methods", "for", "generating", "a", "pipeline", "of", "CodeGen", "passes", "."], "TS_V_token": ["AGC", "AGC", "AGC"], "File": "AGCTargetMachine", "Func": "createPassConfig", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28337, "Length": 22} {"ground_truth": ["", "TargetLoweringObjectFile", "*", "getObjFileLowering", "(", ")", "const", "override", "{", "return", "TLOF", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["Return", "information", "about", "object", "file", "lowering", "."], "TS_V_token": ["AGC"], "File": "AGCTargetMachine", "Func": "getObjFileLowering", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28338, "Length": 16} {"ground_truth": ["", "const", "AGCSubtarget", "*", "getSubtargetImpl", "(", "const", "Function", "&", ")", "const", "override", "{", "return", "&", "Subtarget", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["AGC", "AGC"], "File": "AGCTargetMachine", "Func": "getSubtargetImpl", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28339, "Length": 17} {"ground_truth": ["", "void", "AGCELFTargetObjectFile", "::", "Initialize", "(", "MCContext", "&", "Ctx", ",", "const", "TargetMachine", "&", "TM", ")", "{", "TargetLoweringObjectFileELF", "::", "Initialize", "(", "Ctx", ",", "TM", ")", ";", "InitializeELF", "(", "TM", ".", "Options", ".", "UseInitArray", ")", ";", "TextSection", "=", "(", "MCSection", "*", ")", "Ctx", ".", "getELFSection", "(", "\"BLOCK2\"", ",", "ELF", "::", "SHT_PROGBITS", ",", "ELF", "::", "SHF_EXECINSTR", "|", "ELF", "::", "SHF_ALLOC", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "called", "before", "any", "actual", "lowering", "is", "done", "."], "TS_V_token": ["AGC", "AGC", "\"BLOCK2\""], "File": "AGCTargetObjectFile", "Func": "Initialize", "Target": "AGC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28340, "Length": 59}