{"ground_truth": ["", "void", "J2AsmBackend", "::", "applyFixup", "(", "const", "MCAssembler", "&", "Asm", ",", "const", "MCFixup", "&", "Fixup", ",", "const", "MCValue", "&", "Target", ",", "MutableArrayRef", "<", "char", ">", "Data", ",", "uint64_t", "Value", ",", "bool", "IsResolved", ")", "const", "{", "auto", "Offset", "=", "Fixup", ".", "getOffset", "(", ")", ";", "switch", "(", "(", "unsigned", ")", "Fixup", ".", "getKind", "(", ")", ")", "{", "case", "J2", "::", "fixup_J2_PC2_12", ":", "applyDisplacement", "<", "12", ",", "2", ">", "(", "Value", ",", "Data", ".", "slice", "(", "Offset", ")", ")", ";", "break", ";", "case", "J2", "::", "fixup_J2_PC2_8", ":", "applyDisplacement", "<", "8", ",", "2", ">", "(", "Value", ",", "Data", ".", "slice", "(", "Offset", ")", ")", ";", "break", ";", "case", "J2", "::", "fixup_J2_PC4_8", ":", "{", "applyDisplacement", "<", "8", ",", "4", ">", "(", "Value", ",", "Data", ".", "slice", "(", "Offset", ")", ")", ";", "break", ";", "}", "case", "FK_Data_4", ":", "*", "reinterpret_cast", "<", "uint32_t", "*", ">", "(", "Data", ".", "slice", "(", "Offset", ")", ".", "data", "(", ")", ")", "=", "Value", "/", "4", ";", "break", ";", "default", ":", "llvm_unreachable", "(", "\"Unkown fixup!\"", ")", ";", "}", "}", ""], "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": ["J2", "J2", "J2::fixup_J2_PC2_12", "12", "2", "J2::fixup_J2_PC2_8", "8", "2", "J2::fixup_J2_PC4_8", "8", "4", "4", "\"Unkown fixup!\""], "File": "J2AsmBackend", "Func": "applyFixup", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18465, "Length": 166}
{"ground_truth": ["", "std", "::", "unique_ptr", "<", "MCObjectWriter", ">", "J2AsmBackend", "::", "createObjectWriter", "(", "raw_pwrite_stream", "&", "OS", ")", "const", "{", "auto", "MOTW", "=", "llvm", "::", "make_unique", "<", "J2ELFObjectWriter", ">", "(", "MCELFObjectTargetWriter", "::", "getOSABI", "(", "OSType", ")", ",", "ELF", "::", "EM_J2", ")", ";", "return", "createELFObjectWriter", "(", "std", "::", "move", "(", "MOTW", ")", ",", "OS", ",", "true", ")", ";", "}", ""], "natrual_language": ["Create", "a", "new", "MCObjectWriter", "instance", "for", "use", "by", "the", "assembler", "backend", "to", "emit", "the", "final", "object", "file", "."], "TS_V_token": ["J2", "J2", "J2", "J2"], "File": "J2AsmBackend", "Func": "createObjectWriter", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18466, "Length": 54}
{"ground_truth": ["", "bool", "fixupNeedsRelaxation", "(", "const", "MCFixup", "&", "Fixup", ",", "uint64_t", "Value", ",", "const", "MCRelaxableFragment", "*", "DF", ",", "const", "MCAsmLayout", "&", "Layout", ")", "const", "override", "{", "llvm_unreachable", "(", "\"RelaxInstruction() unimplemented\"", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["Simple", "predicate", "for", "targets", "where", "!", "Resolved", "implies", "requiring", "relaxation", "."], "TS_V_token": ["J2", "\"RelaxInstruction() unimplemented\""], "File": "J2AsmBackend", "Func": "fixupNeedsRelaxation", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18467, "Length": 33}
{"ground_truth": ["", "const", "MCFixupKindInfo", "&", "J2AsmBackend", "::", "getFixupKindInfo", "(", "MCFixupKind", "Kind", ")", "const", "{", "static", "const", "MCFixupKindInfo", "Infos", "[", "J2", "::", "NumTargetFixupKinds", "]", "=", "{", "{", "\"fixup_J2_NONE\"", ",", "0", ",", "0", ",", "0", "}", ",", "{", "\"fixup_J2_PC2_12\"", ",", "4", ",", "12", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_J2_PC2_8\"", ",", "8", ",", "8", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_J2_PC4_8\"", ",", "8", ",", "8", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "}", ";", "if", "(", "Kind", "<", "FirstTargetFixupKind", ")", "return", "MCAsmBackend", "::", "getFixupKindInfo", "(", "Kind", ")", ";", "assert", "(", "unsigned", "(", "Kind", "-", "FirstTargetFixupKind", ")", "<", "getNumFixupKinds", "(", ")", "&&", "\"Invalid kind\"", ")", ";", "return", "Infos", "[", "Kind", "-", "FirstTargetFixupKind", "]", ";", "}", ""], "natrual_language": ["Get", "information", "on", "a", "fixup", "kind", "."], "TS_V_token": ["J2", "J2", "J2::NumTargetFixupKinds", "\"fixup_J2_NONE\"", "0", "0", "0", "\"fixup_J2_PC2_12\"", "4", "12", "\"fixup_J2_PC2_8\"", "8", "8", "\"fixup_J2_PC4_8\"", "8", "8", "\"Invalid kind\""], "File": "J2AsmBackend", "Func": "getFixupKindInfo", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18468, "Length": 110}
{"ground_truth": ["", "unsigned", "getNumFixupKinds", "(", ")", "const", "override", "{", "return", "J2", "::", "NumTargetFixupKinds", ";", "}", ""], "natrual_language": ["Get", "the", "number", "of", "target", "specific", "fixup", "kinds", "."], "TS_V_token": ["J2", "J2::NumTargetFixupKinds"], "File": "J2AsmBackend", "Func": "getNumFixupKinds", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18469, "Length": 13}
{"ground_truth": ["", "bool", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ")", "const", "override", "{", "return", "false", ";", "}", ""], "natrual_language": ["Check", "whether", "the", "given", "instruction", "may", "need", "relaxation", "."], "TS_V_token": ["J2"], "File": "J2AsmBackend", "Func": "mayNeedRelaxation", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18470, "Length": 15}
{"ground_truth": ["", "void", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "MCInst", "&", "Res", ")", "const", "override", "{", "llvm_unreachable", "(", "\"RelaxInstruction() unimplemented\"", ")", ";", "}", ""], "natrual_language": ["Relax", "the", "instruction", "in", "the", "given", "fragment", "to", "the", "next", "wider", "instruction", "."], "TS_V_token": ["J2", "\"RelaxInstruction() unimplemented\""], "File": "J2AsmBackend", "Func": "relaxInstruction", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18471, "Length": 26}
{"ground_truth": ["", "bool", "writeNopData", "(", "uint64_t", "Count", ",", "MCObjectWriter", "*", "OW", ")", "const", "override", "{", "if", "(", "(", "Count", "%", "2", ")", "!=", "0", ")", "return", "false", ";", "for", "(", "uint64_t", "i", "=", "0", ";", "i", "<", "Count", ";", "i", "+=", "2", ")", "OW", "->", "write16", "(", "0x9", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Write", "an", "(", "optimal", ")", "nop", "sequence", "of", "Count", "bytes", "to", "the", "given", "output", "."], "TS_V_token": ["J2", "2", "0", "0", "2", "0x9"], "File": "J2AsmBackend", "Func": "writeNopData", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18472, "Length": 52}
{"ground_truth": ["", "void", "J2AsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "J2MCInstLower", "InstLower", "{", "OutContext", ",", "*", "this", "}", ";", "const", "DataLayout", "&", "DL", "=", "getDataLayout", "(", ")", ";", "auto", "MBB", "=", "MI", "->", "getParent", "(", ")", ";", "auto", "MF", "=", "MBB", "->", "getParent", "(", ")", ";", "auto", "MII", "=", "MI", "->", "getIterator", "(", ")", ";", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "J2", "::", "CONSTPOOL_ENTRY", ")", "{", "auto", "LabelID", "=", "MI", "->", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "auto", "CPIdx", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getIndex", "(", ")", ";", "OutStreamer", "->", "EmitLabel", "(", "GetCPISymbol", "(", "LabelID", ")", ")", ";", "auto", "&", "MCPE", "=", "MF", "->", "getConstantPool", "(", ")", "->", "getConstants", "(", ")", "[", "CPIdx", "]", ";", "if", "(", "MCPE", ".", "isMachineConstantPoolEntry", "(", ")", ")", "EmitMachineConstantPoolValue", "(", "MCPE", ".", "Val", ".", "MachineCPVal", ")", ";", "else", "EmitGlobalConstant", "(", "DL", ",", "MCPE", ".", "Val", ".", "ConstVal", ")", ";", "return", ";", "}", "do", "{", "MCInst", "TmpInst", ";", "InstLower", ".", "Lower", "(", "&", "*", "MII", ",", "TmpInst", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "TmpInst", ")", ";", "++", "MII", ";", "}", "while", "(", "MII", "!=", "MBB", "->", "instr_end", "(", ")", "&&", "MII", "->", "isInsideBundle", "(", ")", ")", ";", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["J2", "J2", "J2", "J2::CONSTPOOL_ENTRY", "0", "1"], "File": "J2AsmPrinter", "Func": "EmitInstruction", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18473, "Length": 202}
{"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"J2 Assembly Printer\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["J2", "\"J2 Assembly Printer\""], "File": "J2AsmPrinter", "Func": "getPassName", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18474, "Length": 11}
{"ground_truth": ["", "J2ConstantPoolValue", "*", "J2ConstantPoolValue", "::", "Create", "(", "const", "Constant", "*", "Value", ")", "{", "return", "new", "J2ConstantPoolValue", "(", "Value", ")", ";", "}", ""], "natrual_language": ["Construct", "a", "unary", "instruction", ",", "given", "the", "opcode", "and", "an", "operand", "."], "TS_V_token": ["J2", "J2", "J2", "J2"], "File": "J2ConstantPoolValue", "Func": "Create", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18475, "Length": 20}
{"ground_truth": ["", "const", "Constant", "*", "getValue", "(", ")", "const", "{", "return", "Value", ";", "}", ""], "natrual_language": ["Return", "the", "contained", "Value", "."], "TS_V_token": ["J2"], "File": "J2ConstantPoolValue", "Func": "getValue", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18476, "Length": 12}
{"ground_truth": ["", "void", "J2ConstantPoolValue", "::", "print", "(", "raw_ostream", "&", "O", ")", "const", "{", "O", "<<", "Value", ";", "}", ""], "natrual_language": ["print", "-", "Print", "a", "debug", "representation", "of", "the", "operand", "to", "the", "given", "stream", "."], "TS_V_token": ["J2", "J2"], "File": "J2ConstantPoolValue", "Func": "print", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18477, "Length": 16}
{"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"J2 Delay Slot Filler\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["J2", "\"J2 Delay Slot Filler\""], "File": "J2DelaySlotFiller", "Func": "getPassName", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18478, "Length": 11}
{"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "TII", "=", "MF", ".", "getSubtarget", "<", "J2Subtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "bool", "Changed", "=", "false", ";", "for", "(", "auto", "FI", "=", "MF", ".", "begin", "(", ")", ",", "FE", "=", "MF", ".", "end", "(", ")", ";", "FI", "!=", "FE", ";", "++", "FI", ")", "Changed", "|=", "runOnMachineBasicBlock", "(", "*", "FI", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["J2", "J2"], "File": "J2DelaySlotFiller", "Func": "runOnMachineFunction", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18479, "Length": 67}
{"ground_truth": ["", "DecodeStatus", "getInstruction", "(", "MCInst", "&", "MI", ",", "uint64_t", "&", "Size", ",", "ArrayRef", "<", "uint8_t", ">", "Bytes", ",", "uint64_t", "Address", ",", "raw_ostream", "&", "OS", ",", "raw_ostream", "&", "CS", ")", "const", "override", "{", "if", "(", "Bytes", ".", "size", "(", ")", "<", "2", ")", "{", "Size", "=", "0", ";", "return", "MCDisassembler", "::", "Fail", ";", "}", "uint16_t", "Insn", "=", "0", ";", "DecodeStatus", "Result", "=", "MCDisassembler", "::", "Fail", ";", "Insn", "=", "(", "Bytes", "[", "1", "]", "<<", "8", ")", "|", "(", "Bytes", "[", "0", "]", "<<", "0", ")", ";", "Result", "=", "decodeInstruction", "(", "DecoderTable16", ",", "MI", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Result", "!=", "MCDisassembler", "::", "Fail", ")", "{", "Size", "=", "2", ";", "return", "Result", ";", "}", "return", "MCDisassembler", "::", "Fail", ";", "}", ""], "natrual_language": ["Returns", "the", "disassembly", "of", "a", "single", "instruction", "."], "TS_V_token": ["J2", "2", "0", "0", "1", "8", "0", "0", "2"], "File": "J2Disassembler", "Func": "getInstruction", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18480, "Length": 124}
{"ground_truth": ["", "void", "J2FrameLowering", "::", "determineCalleeSaves", "(", "MachineFunction", "&", "MF", ",", "BitVector", "&", "SavedRegs", ",", "RegScavenger", "*", "RS", ")", "const", "{", "TargetFrameLowering", "::", "determineCalleeSaves", "(", "MF", ",", "SavedRegs", ",", "RS", ")", ";", "if", "(", "hasFP", "(", "MF", ")", ")", "SavedRegs", ".", "set", "(", "J2", "::", "R14", ")", ";", "}", ""], "natrual_language": ["This", "method", "determines", "which", "of", "the", "registers", "reported", "by", "TargetRegisterInfo", ":", ":getCalleeSavedRegs", "(", ")", "should", "actually", "get", "saved", "."], "TS_V_token": ["J2", "J2", "J2::R14"], "File": "J2FrameLowering", "Func": "determineCalleeSaves", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18481, "Length": 47}
{"ground_truth": ["", "void", "J2FrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "auto", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "auto", "StackSize", "=", "MFI", ".", "getStackSize", "(", ")", "-", "MFI", ".", "getCalleeSavedInfo", "(", ")", ".", "size", "(", ")", "*", "4", ";", "auto", "&", "TTI", "=", "*", "static_cast", "<", "const", "J2Subtarget", "&", ">", "(", "MF", ".", "getSubtarget", "(", ")", ")", ".", "getInstrInfo", "(", ")", ";", "if", "(", "StackSize", "==", "0", ")", "return", ";", "auto", "it", "=", "MBB", ".", "getFirstTerminator", "(", ")", ";", "auto", "DL", "=", "it", "==", "MBB", ".", "end", "(", ")", "?", "DebugLoc", "{", "}", ":", "it", "->", "getDebugLoc", "(", ")", ";", "it", "=", "std", "::", "prev", "(", "it", ",", "MFI", ".", "getCalleeSavedInfo", "(", ")", ".", "size", "(", ")", ")", ";", "if", "(", "hasFP", "(", "MF", ")", ")", "BuildMI", "(", "MBB", ",", "it", ",", "DL", ",", "TTI", ".", "get", "(", "J2", "::", "MOV32rr", ")", ",", "J2", "::", "R15", ")", ".", "addReg", "(", "J2", "::", "R14", ")", ";", "}", ""], "natrual_language": ["Insert", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["J2", "J2", "4", "J2", "0", "J2::MOV32rr", "J2::R15", "J2::R14"], "File": "J2FrameLowering", "Func": "emitEpilogue", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18482, "Length": 163}
{"ground_truth": ["", "void", "J2FrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "auto", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "auto", "StackSize", "=", "MFI", ".", "getStackSize", "(", ")", "-", "MFI", ".", "getCalleeSavedInfo", "(", ")", ".", "size", "(", ")", "*", "4", ";", "auto", "&", "TTI", "=", "*", "static_cast", "<", "const", "J2Subtarget", "&", ">", "(", "MF", ".", "getSubtarget", "(", ")", ")", ".", "getInstrInfo", "(", ")", ";", "if", "(", "StackSize", "==", "0", ")", "return", ";", "auto", "it", "=", "MBB", ".", "begin", "(", ")", ";", "it", "=", "std", "::", "next", "(", "it", ",", "MFI", ".", "getCalleeSavedInfo", "(", ")", ".", "size", "(", ")", ")", ";", "DebugLoc", "DL", ";", "if", "(", "hasFP", "(", "MF", ")", ")", "BuildMI", "(", "MBB", ",", "it", ",", "DL", ",", "TTI", ".", "get", "(", "J2", "::", "MOV32rr", ")", ",", "J2", "::", "R14", ")", ".", "addReg", "(", "J2", "::", "R15", ")", ";", "if", "(", "isInt", "<", "8", ">", "(", "-", "StackSize", ")", ")", "BuildMI", "(", "MBB", ",", "it", ",", "DL", ",", "TTI", ".", "get", "(", "J2", "::", "ADDri", ")", ",", "J2", "::", "R15", ")", ".", "addReg", "(", "J2", "::", "R15", ")", ".", "addImm", "(", "-", "StackSize", ")", ";", "else", "{", "llvm_unreachable", "(", "\"Not implemented yet\"", ")", ";", "}", "}", ""], "natrual_language": ["emitProlog/emitEpilog", "-", "These", "methods", "insert", "prolog", "and", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["J2", "J2", "4", "J2", "0", "J2::MOV32rr", "J2::R14", "J2::R15", "8", "J2::ADDri", "J2::R15", "J2::R15", "\"Not implemented yet\""], "File": "J2FrameLowering", "Func": "emitPrologue", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18483, "Length": 199}
{"ground_truth": ["", "bool", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "override", "{", "return", "true", ";", "}", ""], "natrual_language": ["hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "."], "TS_V_token": ["J2"], "File": "J2FrameLowering", "Func": "hasFP", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18484, "Length": 15}
{"ground_truth": ["", "bool", "J2FrameLowering", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "CSI", ".", "empty", "(", ")", ")", "return", "false", ";", "DebugLoc", "DL", ";", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "TII", ".", "get", "(", "J2", "::", "MOV32mrpop", ")", ",", "CSI", "[", "i", "]", ".", "getReg", "(", ")", ")", ".", "addReg", "(", "J2", "::", "R15", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["restoreCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "restore", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "load", "instructions", "via", "loadRegToStackSlot", "(", ")", "."], "TS_V_token": ["J2", "J2", "0", "J2::MOV32mrpop", "J2::R15"], "File": "J2FrameLowering", "Func": "restoreCalleeSavedRegisters", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18485, "Length": 149}
{"ground_truth": ["", "bool", "J2FrameLowering", "::", "spillCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "CSI", ".", "empty", "(", ")", ")", "return", "false", ";", "DebugLoc", "DL", ";", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "for", "(", "unsigned", "i", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "0", ";", "--", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "-", "1", "]", ".", "getReg", "(", ")", ";", "MBB", ".", "addLiveIn", "(", "Reg", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "TII", ".", "get", "(", "J2", "::", "MOV32rmpush", ")", ",", "J2", "::", "R15", ")", ".", "addReg", "(", "Reg", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Kill", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["spillCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "spill", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "store", "instructions", "via", "storeRegToStackSlot", "(", ")", "."], "TS_V_token": ["J2", "J2", "0", "1", "J2::MOV32rmpush", "J2::R15"], "File": "J2FrameLowering", "Func": "spillCalleeSavedRegisters", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18486, "Length": 171}
{"ground_truth": ["", "void", "J2InstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "O", ",", "StringRef", "Annot", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "{", "printInstruction", "(", "MI", ",", "O", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["J2", "J2"], "File": "J2InstPrinter", "Func": "printInst", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18487, "Length": 31}
{"ground_truth": ["", "void", "J2InstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "DebugLoc", "&", "DL", ",", "unsigned", "DestReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "unsigned", "Opc", "=", "J2", "::", "MOV32rr", ";", "if", "(", "J2", "::", "GPRRegClass", ".", "contains", "(", "DestReg", ")", "&&", "J2", "::", "GPRRegClass", ".", "contains", "(", "SrcReg", ")", ")", "{", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "Opc", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "return", ";", "}", "if", "(", "!", "J2", "::", "GPRRegClass", ".", "contains", "(", "SrcReg", ")", ")", "{", "Opc", "=", "[", "&", "]", "(", ")", "->", "unsigned", "{", "switch", "(", "SrcReg", ")", "{", "case", "J2", "::", "X", ":", "\\", "return", "J2", "::", "ST", "##", "Type", "##", "X", "CASE", "(", "S", ",", "MACL", ")", ";", "CASE", "(", "S", ",", "MACH", ")", ";", "CASE", "(", "S", ",", "PR", ")", ";", "CASE", "(", "C", ",", "GBR", ")", ";", "CASE", "(", "C", ",", "VBR", ")", ";", "default", ":", "llvm_unreachable", "(", "\"Special register not handled.\"", ")", ";", "}", "}", "(", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "Opc", ")", ",", "DestReg", ")", ";", "}", "else", "if", "(", "!", "J2", "::", "GPRRegClass", ".", "contains", "(", "DestReg", ")", ")", "{", "Opc", "=", "[", "&", "]", "(", ")", "->", "unsigned", "{", "switch", "(", "SrcReg", ")", "{", "case", "J2", "::", "X", ":", "\\", "return", "J2", "::", "LD", "##", "Type", "##", "X", "CASE", "(", "S", ",", "MACL", ")", ";", "CASE", "(", "S", ",", "MACH", ")", ";", "CASE", "(", "S", ",", "PR", ")", ";", "CASE", "(", "C", ",", "GBR", ")", ";", "CASE", "(", "C", ",", "VBR", ")", ";", "default", ":", "llvm_unreachable", "(", "\"Special register not handled.\"", ")", ";", "}", "}", "(", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "Opc", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "}", "}", ""], "natrual_language": ["}", "Branch", "Analysis", "&", "Modification"], "TS_V_token": ["J2", "J2", "J2::MOV32rr", "J2::GPRRegClass", "J2::GPRRegClass", "J2::GPRRegClass", "J2::X", "J2::ST", "\"Special register not handled.\"", "J2::GPRRegClass", "J2::X", "J2::LD", "\"Special register not handled.\""], "File": "J2InstrInfo", "Func": "copyPhysReg", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18488, "Length": 309}
{"ground_truth": ["", "unsigned", "J2InstrInfo", "::", "insertBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "*", "TBB", ",", "MachineBasicBlock", "*", "FBB", ",", "ArrayRef", "<", "MachineOperand", ">", "Cond", ",", "const", "DebugLoc", "&", "DL", ",", "int", "*", "BytesAdded", ")", "const", "{", "assert", "(", "!", "BytesAdded", "&&", "\"code size not handled\"", ")", ";", "if", "(", "Cond", ".", "empty", "(", ")", ")", "{", "assert", "(", "!", "FBB", "&&", "\"Unconditional branch with multiple successors!\"", ")", ";", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "J2", "::", "BRA", ")", ")", ".", "addMBB", "(", "TBB", ")", ";", "return", "1", ";", "}", "llvm_unreachable", "(", "\"Unexpected conditional branch\"", ")", ";", "}", ""], "natrual_language": ["Insert", "branch", "code", "into", "the", "end", "of", "the", "specified", "MachineBasicBlock", "."], "TS_V_token": ["J2", "J2", "\"code size not handled\"", "\"Unconditional branch with multiple successors!\"", "J2::BRA", "1", "\"Unexpected conditional branch\""], "File": "J2InstrInfo", "Func": "insertBranch", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18489, "Length": 89}
{"ground_truth": ["", "void", "J2InstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "unsigned", "DstReg", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", "=", "MI", "!=", "MBB", ".", "end", "(", ")", "?", "MI", "->", "getDebugLoc", "(", ")", ":", "DebugLoc", "(", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "J2", "::", "MOV32mr", ")", ",", "DstReg", ")", ".", "addFrameIndex", "(", "FrameIndex", ")", ";", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["J2", "J2", "J2::MOV32mr"], "File": "J2InstrInfo", "Func": "loadRegFromStackSlot", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18490, "Length": 77}
{"ground_truth": ["", "unsigned", "J2InstrInfo", "::", "removeBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "int", "*", "BytesRemoved", ")", "const", "{", "assert", "(", "!", "BytesRemoved", "&&", "\"code size not handled\"", ")", ";", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "end", "(", ")", ";", "unsigned", "Count", "=", "0", ";", "while", "(", "I", "!=", "MBB", ".", "begin", "(", ")", ")", "{", "--", "I", ";", "if", "(", "I", "->", "getOpcode", "(", ")", "!=", "J2", "::", "BRA", ")", "break", ";", "I", "->", "eraseFromParent", "(", ")", ";", "I", "=", "MBB", ".", "end", "(", ")", ";", "++", "Count", ";", "}", "return", "Count", ";", "}", ""], "natrual_language": ["Remove", "the", "branching", "code", "at", "the", "end", "of", "the", "specific", "MBB", "."], "TS_V_token": ["J2", "J2", "\"code size not handled\"", "0", "J2::BRA"], "File": "J2InstrInfo", "Func": "removeBranch", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18491, "Length": 89}
{"ground_truth": ["", "void", "J2InstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", "=", "MI", "!=", "MBB", ".", "end", "(", ")", "?", "MI", "->", "getDebugLoc", "(", ")", ":", "DebugLoc", "(", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "J2", "::", "MOV32rm", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addFrameIndex", "(", "FrameIndex", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["J2", "J2", "J2::MOV32rm"], "File": "J2InstrInfo", "Func": "storeRegToStackSlot", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18492, "Length": 88}
{"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"J2 DAG->DAG Pattern Instruction Selection\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["J2", "\"J2 DAG->DAG Pattern Instruction Selection\""], "File": "J2ISelDAGToDAG", "Func": "getPassName", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18493, "Length": 11}
{"ground_truth": ["", "void", "J2DAGToDAGISel", "::", "Select", "(", "SDNode", "*", "Node", ")", "{", "DEBUG", "(", "errs", "(", ")", "<<", "\"Selecting: \"", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "errs", "(", ")", "<<", "\"\\n\"", ")", ";", "SDLoc", "DL", "(", "Node", ")", ";", "switch", "(", "Node", "->", "getOpcode", "(", ")", ")", "{", "case", "ISD", "::", "FrameIndex", ":", "assert", "(", "Node", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i32", ")", ";", "int", "FI", "=", "cast", "<", "FrameIndexSDNode", ">", "(", "Node", ")", "->", "getIndex", "(", ")", ";", "SDValue", "TFI", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FI", ",", "MVT", "::", "i32", ")", ";", "const", "auto", "Opc", "=", "J2", "::", "MOV32rr", ";", "CurDAG", "->", "SelectNodeTo", "(", "Node", ",", "Opc", ",", "MVT", "::", "i32", ",", "TFI", ")", ";", "return", ";", "}", "SelectCode", "(", "Node", ")", ";", "}", ""], "natrual_language": ["Main", "hook", "for", "targets", "to", "transform", "nodes", "into", "machine", "nodes", "."], "TS_V_token": ["J2", "J2", "\"Selecting: \"", "\"\\n\"", "ISD::FrameIndex", "0", "MVT::i32", "MVT::i32", "J2::MOV32rr", "MVT::i32"], "File": "J2ISelDAGToDAG", "Func": "Select", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18494, "Length": 127}
{"ground_truth": ["", "MachineBasicBlock", "*", "J2TargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MachineInstr", "&", "MI", ",", "MachineBasicBlock", "*", "MBB", ")", "const", "{", "auto", "MF", "=", "MBB", "->", "getParent", "(", ")", ";", "auto", "&", "Ctx", "=", "MF", "->", "getFunction", "(", ")", ".", "getContext", "(", ")", ";", "auto", "&", "TTI", "=", "*", "static_cast", "<", "const", "J2Subtarget", "&", ">", "(", "MF", "->", "getSubtarget", "(", ")", ")", ".", "getInstrInfo", "(", ")", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "case", "J2", "::", "MOV32ir", ":", "{", "switch", "(", "MI", ".", "getOperand", "(", "1", ")", ".", "getType", "(", ")", ")", "{", "case", "MachineOperand", "::", "MO_Immediate", ":", "{", "auto", "MBBI", "=", "MI", ".", "getIterator", "(", ")", ";", "auto", "Pool", "=", "MF", "->", "getConstantPool", "(", ")", ";", "auto", "Imm", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ";", "auto", "Constant", "=", "ConstantInt", "::", "getSigned", "(", "IntegerType", "::", "get", "(", "Ctx", ",", "32", ")", ",", "Imm", ")", ";", "auto", "CPI", "=", "Pool", "->", "getConstantPoolIndex", "(", "Constant", ",", "4", ")", ";", "BuildMI", "(", "*", "MBB", ",", "MBBI", ",", "MBBI", "->", "getDebugLoc", "(", ")", ",", "TTI", ".", "get", "(", "J2", "::", "MOV32PCR", ")", ",", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ")", ".", "addConstantPoolIndex", "(", "CPI", ")", ";", "(", "MBBI", "++", ")", "->", "eraseFromParent", "(", ")", ";", "return", "MBB", ";", "}", "default", ":", "llvm_unreachable", "(", "\"Unexpected operand type for MOV32ir\"", ")", ";", "}", "break", ";", "}", "default", ":", "llvm_unreachable", "(", "\"Unexpected instr type to insert\"", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'usesCustomInserter", "'", "flag", "."], "TS_V_token": ["J2", "J2", "J2", "J2::MOV32ir", "1", "1", "32", "4", "J2::MOV32PCR", "0", "\"Unexpected operand type for MOV32ir\"", "\"Unexpected instr type to insert\""], "File": "J2ISelLowering", "Func": "EmitInstrWithCustomInserter", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18495, "Length": 232}
{"ground_truth": ["", "const", "char", "*", "J2TargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "(", "J2ISD", "::", "NodeType", ")", "Opcode", ")", "{", "case", "J2ISD", "::", "FIRST_NUMBER", ":", "break", ";", "case", "J2ISD", "::", "X", ":", "\\", "return", "#", "X", "CASE", "(", "Ret", ")", ";", "CASE", "(", "Call", ")", ";", "CASE", "(", "Wrapper", ")", ";", "CASE", "(", "SHL", ")", ";", "CASE", "(", "SRL", ")", ";", "}", "return", "nullptr", ";", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["J2", "J2", "J2ISD::NodeType", "J2ISD::FIRST_NUMBER", "J2ISD::X"], "File": "J2ISelLowering", "Func": "getTargetNodeName", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18496, "Length": 68}
{"ground_truth": ["", "SDValue", "J2TargetLowering", "::", "LowerFormalArguments", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "const", "SDLoc", "&", "DL", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "assert", "(", "!", "IsVarArg", "&&", "\"Variable arguments not supported.\"", ")", ";", "auto", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "SmallVector", "<", "CCValAssign", ",", "16", ">", "ArgLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "MF", ",", "ArgLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeFormalArguments", "(", "Ins", ",", "CC_J2", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "ArgLocs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "ArgLocs", "[", "i", "]", ";", "MVT", "RegVT", "=", "VA", ".", "getLocVT", "(", ")", ";", "const", "TargetRegisterClass", "*", "RC", "=", "getRegClassFor", "(", "RegVT", ")", ";", "unsigned", "Reg", "=", "MF", ".", "addLiveIn", "(", "VA", ".", "getLocReg", "(", ")", ",", "RC", ")", ";", "SDValue", "ArgValue", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "Reg", ",", "RegVT", ")", ";", "InVals", ".", "push_back", "(", "ArgValue", ")", ";", "}", "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": ["J2", "J2", "ISD::InputArg", "\"Variable arguments not supported.\"", "16", "J2", "0"], "File": "J2ISelLowering", "Func": "LowerFormalArguments", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18497, "Length": 193}
{"ground_truth": ["", "SDValue", "J2TargetLowering", "::", "LowerOperation", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "case", "ISD", "::", "GlobalAddress", ":", "return", "LowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "ConstantPool", ":", "return", "LowerConstantPool", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SHL", ":", "return", "LowerShift", "<", "J2ISD", "::", "SHL", ">", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SRL", ":", "return", "LowerShift", "<", "J2ISD", "::", "SRL", ">", "(", "Op", ",", "DAG", ")", ";", "default", ":", "llvm_unreachable", "(", "\"unimplemented operation\"", ")", ";", "}", "}", ""], "natrual_language": ["LowerOperation", "-", "Provide", "custom", "lowering", "hooks", "for", "some", "operations", "."], "TS_V_token": ["J2", "J2", "ISD::GlobalAddress", "ISD::ConstantPool", "ISD::SHL", "J2ISD::SHL", "ISD::SRL", "J2ISD::SRL", "\"unimplemented operation\""], "File": "J2ISelLowering", "Func": "LowerOperation", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18498, "Length": 94}
{"ground_truth": ["", "SDValue", "J2TargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", ",", "const", "SDLoc", "&", "DL", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "assert", "(", "!", "isVarArg", "&&", "\"Variable arguments not supported.\"", ")", ";", "auto", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "SmallVector", "<", "CCValAssign", ",", "4", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "MF", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_J2", ")", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", "{", "Chain", "}", ";", "SDValue", "Glue", ";", "for", "(", "size_t", "i", "=", "0", ";", "i", "<", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Return in memory is not supported!\"", ")", ";", "SDValue", "ValToCopy", "=", "OutVals", "[", "i", "]", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "VA", ".", "getLocReg", "(", ")", ",", "ValToCopy", ",", "Glue", ")", ";", "Glue", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "RetOps", "[", "0", "]", "=", "Chain", ";", "if", "(", "Glue", ".", "getNode", "(", ")", ")", "RetOps", ".", "push_back", "(", "Glue", ")", ";", "return", "DAG", ".", "getNode", "(", "J2ISD", "::", "Ret", ",", "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": ["J2", "J2", "ISD::OutputArg", "\"Variable arguments not supported.\"", "4", "J2", "4", "0", "\"Return in memory is not supported!\"", "1", "0", "J2ISD::Ret", "MVT::Other"], "File": "J2ISelLowering", "Func": "LowerReturn", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18499, "Length": 254}
{"ground_truth": ["", "void", "J2MCCodeEmitter", "::", "EmitInstruction", "(", "uint64_t", "Val", ",", "unsigned", "Size", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "raw_ostream", "&", "OS", ")", "const", "{", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "Size", ";", "++", "i", ")", "{", "unsigned", "Shift", "=", "i", "*", "8", ";", "EmitByte", "(", "(", "Val", ">>", "Shift", ")", "&", "0xff", ",", "OS", ")", ";", "}", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["J2", "J2", "0", "8", "0xff"], "File": "J2MCCodeEmitter", "Func": "EmitInstruction", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18500, "Length": 59}
{"ground_truth": ["", "void", "J2MCCodeEmitter", "::", "encodeInstruction", "(", "const", "MCInst", "&", "MI", ",", "raw_ostream", "&", "OS", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "uint32_t", "Binary", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "const", "MCInstrDesc", "&", "Desc", "=", "MCII", ".", "get", "(", "MI", ".", "getOpcode", "(", ")", ")", ";", "unsigned", "Size", "=", "Desc", ".", "getSize", "(", ")", ";", "if", "(", "!", "Size", ")", "llvm_unreachable", "(", "\"Desc.getSize() returns 0\"", ")", ";", "EmitInstruction", "(", "Binary", ",", "Size", ",", "STI", ",", "OS", ")", ";", "}", ""], "natrual_language": ["Encode", "the", "given", "Inst", "to", "bytes", "and", "append", "to", "CB", "."], "TS_V_token": ["J2", "J2", "\"Desc.getSize() returns 0\""], "File": "J2MCCodeEmitter", "Func": "encodeInstruction", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18501, "Length": 87}
{"ground_truth": ["", "unsigned", "J2MCCodeEmitter", "::", "getMachineOpValue", "(", "const", "MCInst", "&", "MI", ",", "const", "MCOperand", "&", "MO", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "if", "(", "MO", ".", "isReg", "(", ")", ")", "return", "Ctx", ".", "getRegisterInfo", "(", ")", "->", "getEncodingValue", "(", "MO", ".", "getReg", "(", ")", ")", ";", "if", "(", "MO", ".", "isImm", "(", ")", ")", "<", "unsigned", ">", "(", "MO", ".", "getImm", "(", ")", ")", ";", "assert", "(", "MO", ".", "isExpr", "(", ")", "&&", "MO", ".", "getExpr", "(", ")", "->", "getKind", "(", ")", "==", "MCExpr", "::", "SymbolRef", ")", ";", "J2", "::", "Fixups", "FixupKind", "=", "J2", "::", "fixup_J2_NONE", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "case", "J2", "::", "BSR", ":", "case", "J2", "::", "BRA", ":", "FixupKind", "=", "J2", "::", "fixup_J2_PC2_12", ";", "break", ";", "case", "J2", "::", "BT", ":", "FixupKind", "=", "J2", "::", "fixup_J2_PC2_8", ";", "break", ";", "case", "J2", "::", "MOV32PCR", ":", "FixupKind", "=", "J2", "::", "fixup_J2_PC4_8", ";", "break", ";", "default", ":", "llvm_unreachable", "(", "\"Opcode not handled.\"", ")", ";", "}", "Fixups", ".", "push_back", "(", "MCFixup", "::", "create", "(", "0", ",", "MO", ".", "getExpr", "(", ")", ",", "MCFixupKind", "(", "FixupKind", ")", ",", "MI", ".", "getLoc", "(", ")", ")", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["getMachineOpValue", "-", "Return", "binary", "encoding", "of", "operand", "."], "TS_V_token": ["J2", "J2", "J2::Fixups", "J2::fixup_J2_NONE", "J2::BSR", "J2::BRA", "J2::fixup_J2_PC2_12", "J2::BT", "J2::fixup_J2_PC2_8", "J2::MOV32PCR", "J2::fixup_J2_PC4_8", "\"Opcode not handled.\"", "0", "0"], "File": "J2MCCodeEmitter", "Func": "getMachineOpValue", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18502, "Length": 198}
{"ground_truth": ["", "MCSymbol", "*", "J2MCInstLower", "::", "GetExternalSymbolSymbol", "(", "const", "MachineOperand", "&", "MO", ")", "const", "{", "return", "Printer", ".", "GetExternalSymbolSymbol", "(", "MO", ".", "getSymbolName", "(", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "MCSymbol", "for", "the", "specified", "ExternalSymbol", "."], "TS_V_token": ["J2", "J2"], "File": "J2MCInstLower", "Func": "GetExternalSymbolSymbol", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18503, "Length": 26}
{"ground_truth": ["", "void", "J2RegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", "RS", ")", "const", "{", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "DebugLoc", "DL", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "int", "FrameIdx", "=", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "getIndex", "(", ")", ";", "auto", "isCalleeSaved", "=", "isCalleeSavedIndex", "(", "FrameIdx", ",", "MF", ".", "getFrameInfo", "(", ")", ")", ";", "unsigned", "BaseReg", "=", "isCalleeSaved", "?", "J2", "::", "R15", ":", "getFrameRegister", "(", "MF", ")", ";", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "ChangeToRegister", "(", "BaseReg", ",", "false", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["J2", "J2", "J2::R15"], "File": "J2RegisterInfo", "Func": "eliminateFrameIndex", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18504, "Length": 117}
{"ground_truth": ["", "const", "MCPhysReg", "*", "J2RegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "return", "CSR_SaveList", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["J2", "J2"], "File": "J2RegisterInfo", "Func": "getCalleeSavedRegs", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18505, "Length": 18}
{"ground_truth": ["", "unsigned", "J2RegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "J2", "::", "R14", ";", "}", ""], "natrual_language": ["Debug", "information", "queries", "."], "TS_V_token": ["J2", "J2", "J2::R14"], "File": "J2RegisterInfo", "Func": "getFrameRegister", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18506, "Length": 18}
{"ground_truth": ["", "BitVector", "J2RegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "static", "constexpr", "MCPhysReg", "ReservedRegs", "[", "]", "=", "{", "J2", "::", "R15", ",", "J2", "::", "SR", ",", "J2", "::", "GBR", ",", "J2", "::", "VBR", ",", "J2", "::", "MACH", ",", "J2", "::", "MACL", ",", "J2", "::", "PR", ",", "J2", "::", "PC", "}", ";", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "for", "(", "auto", "Reg", ":", "ReservedRegs", ")", "Reserved", ".", "set", "(", "Reg", ")", ";", "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": ["J2", "J2", "J2::R15", "J2::SR", "J2::GBR", "J2::VBR", "J2::MACH", "J2::MACL", "J2::PR", "J2::PC"], "File": "J2RegisterInfo", "Func": "getReservedRegs", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18507, "Length": 79}
{"ground_truth": ["", "const", "J2InstrInfo", "*", "getInstrInfo", "(", ")", "const", "override", "{", "return", "&", "InstrInfo", ";", "}", ""], "natrual_language": ["TargetInstrInfo", "getter", "."], "TS_V_token": ["J2", "J2"], "File": "J2Subtarget", "Func": "getInstrInfo", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18508, "Length": 14}
{"ground_truth": ["", "const", "J2RegisterInfo", "*", "getRegisterInfo", "(", ")", "const", "override", "{", "return", "&", "RegisterInfo", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["J2", "J2"], "File": "J2Subtarget", "Func": "getRegisterInfo", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18509, "Length": 14}
{"ground_truth": ["", "bool", "addInstSelector", "(", ")", "override", "{", "addPass", "(", "new", "J2DAGToDAGISel", "(", "getJ2TargetMachine", "(", ")", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["addInstSelector", "-", "This", "method", "should", "install", "an", "instruction", "selector", "pass", ",", "which", "converts", "from", "LLVM", "code", "to", "machine", "instructions", "."], "TS_V_token": ["J2", "J2", "J2"], "File": "J2TargetMachine", "Func": "addInstSelector", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18510, "Length": 21}
{"ground_truth": ["", "void", "addPreEmitPass", "(", ")", "override", "{", "addPass", "(", "createJ2DelaySlotFillerPass", "(", "getJ2TargetMachine", "(", ")", ")", ")", ";", "addPass", "(", "createJ2ConstantIslandPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["J2", "J2", "J2", "J2"], "File": "J2TargetMachine", "Func": "addPreEmitPass", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18511, "Length": 24}
{"ground_truth": ["", "TargetPassConfig", "*", "J2TargetMachine", "::", "createPassConfig", "(", "PassManagerBase", "&", "PM", ")", "{", "struct", "J2PassConfig", ":", "public", "TargetPassConfig", "{", "J2PassConfig", "(", "J2TargetMachine", "*", "TM", ",", "PassManagerBase", "&", "PM", ")", ":", "TargetPassConfig", "(", "*", "TM", ",", "PM", ")", "{", "}", "J2TargetMachine", "&", "getJ2TargetMachine", "(", ")", "const", "{", "return", "getTM", "<", "J2TargetMachine", ">", "(", ")", ";", "}", "bool", "addInstSelector", "(", ")", "override", "{", "addPass", "(", "new", "J2DAGToDAGISel", "(", "getJ2TargetMachine", "(", ")", ")", ")", ";", "return", "false", ";", "}", "void", "addPreEmitPass", "(", ")", "override", "{", "addPass", "(", "createJ2DelaySlotFillerPass", "(", "getJ2TargetMachine", "(", ")", ")", ")", ";", "addPass", "(", "createJ2ConstantIslandPass", "(", ")", ")", ";", "}", "}", ";", "return", "new", "J2PassConfig", "(", "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": ["J2", "J2", "J2", "J2", "J2", "J2", "J2", "J2", "J2", "J2", "J2", "J2", "J2", "J2"], "File": "J2TargetMachine", "Func": "createPassConfig", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18512, "Length": 110}
{"ground_truth": ["", "TargetLoweringObjectFile", "*", "getObjFileLowering", "(", ")", "const", "override", "{", "return", "TLOF", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["Return", "information", "about", "object", "file", "lowering", "."], "TS_V_token": ["J2"], "File": "J2TargetMachine", "Func": "getObjFileLowering", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18513, "Length": 16}
{"ground_truth": ["", "const", "J2Subtarget", "*", "getSubtargetImpl", "(", "const", "Function", "&", "F", ")", "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": ["J2", "J2"], "File": "J2TargetMachine", "Func": "getSubtargetImpl", "Target": "J2", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 18514, "Length": 18}