{"ground_truth": ["", "void", "ARCAsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "SmallString", "<", "128", ">", "Str", ";", "raw_svector_ostream", "O", "(", "Str", ")", ";", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "case", "ARC", "::", "DBG_VALUE", ":", "llvm_unreachable", "(", "\"Should be handled target independently\"", ")", ";", "break", ";", "}", "MCInst", "TmpInst", ";", "MCInstLowering", ".", "Lower", "(", "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": ["ARC", "ARC", "128", "ARC::DBG_VALUE", "\"Should be handled target independently\""], "File": "ARCAsmPrinter1", "Func": "EmitInstruction", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28700, "Length": 66} {"ground_truth": ["", "bool", "ARCAsmPrinter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "MF", ".", "ensureAlignment", "(", "Align", "(", "4", ")", ")", ";", "return", "AsmPrinter", "::", "runOnMachineFunction", "(", "MF", ")", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARC", "ARC", "4"], "File": "ARCAsmPrinter4", "Func": "runOnMachineFunction", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28701, "Length": 29} {"ground_truth": ["", "void", "ARCAsmPrinter", "::", "emitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "SmallString", "<", "128", ">", "Str", ";", "raw_svector_ostream", "O", "(", "Str", ")", ";", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "case", "ARC", "::", "DBG_VALUE", ":", "llvm_unreachable", "(", "\"Should be handled target independently\"", ")", ";", "break", ";", "}", "MCInst", "TmpInst", ";", "MCInstLowering", ".", "Lower", "(", "MI", ",", "TmpInst", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "TmpInst", ")", ";", "}", ""], "natrual_language": ["Targets", "should", "implement", "this", "to", "emit", "instructions", "."], "TS_V_token": ["ARC", "ARC", "128", "ARC::DBG_VALUE", "\"Should be handled target independently\""], "File": "ARCAsmPrinter", "Func": "emitInstruction", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28702, "Length": 66} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"ARC Assembly Printer\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["ARC", "\"ARC Assembly Printer\""], "File": "ARCAsmPrinter", "Func": "getPassName", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28703, "Length": 11} {"ground_truth": ["", "bool", "ARCAsmPrinter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "MF", ".", "ensureAlignment", "(", "Align", "(", "4", ")", ")", ";", "AsmPrinter", "::", "runOnMachineFunction", "(", "MF", ")", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARC", "ARC", "4"], "File": "ARCAsmPrinter", "Func": "runOnMachineFunction", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28704, "Length": 28} {"ground_truth": ["", "bool", "ARCBranchFinalize", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Running ARC Branch Finalize on \"", "<<", "MF", ".", "getFunction", "(", ")", "->", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "std", "::", "vector", "<", "MachineInstr", "*", ">", "Branches", ";", "bool", "Changed", "=", "false", ";", "unsigned", "MaxSize", "=", "0", ";", "TII", "=", "MF", ".", "getSubtarget", "<", "ARCSubtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "std", "::", "map", "<", "MachineBasicBlock", "*", ",", "unsigned", ">", "BlockToPCMap", ";", "std", "::", "vector", "<", "std", "::", "pair", "<", "MachineInstr", "*", ",", "unsigned", ">>", "BranchToPCList", ";", "unsigned", "PC", "=", "0", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "{", "BlockToPCMap", ".", "insert", "(", "std", "::", "make_pair", "(", "&", "MBB", ",", "PC", ")", ")", ";", "for", "(", "auto", "&", "MI", ":", "MBB", ")", "{", "unsigned", "Size", "=", "TII", "->", "getInstSizeInBytes", "(", "MI", ")", ";", "if", "(", "Size", ">", "8", "||", "Size", "==", "0", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Unknown (or size 0) size for: \"", "<<", "MI", "<<", "\"\\n\"", ")", ";", "}", "else", "{", "MaxSize", "+=", "Size", ";", "}", "if", "(", "MI", ".", "isBranch", "(", ")", ")", "{", "Branches", ".", "push_back", "(", "&", "MI", ")", ";", "BranchToPCList", ".", "emplace_back", "(", "&", "MI", ",", "PC", ")", ";", "}", "PC", "+=", "Size", ";", "}", "}", "for", "(", "auto", "P", ":", "BranchToPCList", ")", "{", "if", "(", "isBRccPseudo", "(", "P", ".", "first", ")", ")", "isInt", "<", "9", ">", "(", "MaxSize", ")", "?", "replaceWithBRcc", "(", "P", ".", "first", ")", ":", "replaceWithCmpBcc", "(", "P", ".", "first", ")", ";", "}", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Estimated function size for \"", "<<", "MF", ".", "getFunction", "(", ")", "->", "getName", "(", ")", "<<", "\": \"", "<<", "MaxSize", "<<", "\"\\n\"", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARC", "ARC", "\"Running ARC Branch Finalize on \"", "\"\\n\"", "0", "ARC", "0", "8", "0", "\"Unknown (or size 0) size for: \"", "\"\\n\"", "9", "\"Estimated function size for \"", "\": \"", "\"\\n\""], "File": "ARCBranchFinalize2", "Func": "runOnMachineFunction", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28705, "Length": 274} {"ground_truth": ["", "bool", "ARCBranchFinalize", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Running ARC Branch Finalize on \"", "<<", "MF", ".", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "std", "::", "vector", "<", "MachineInstr", "*", ">", "Branches", ";", "bool", "Changed", "=", "false", ";", "unsigned", "MaxSize", "=", "0", ";", "TII", "=", "MF", ".", "getSubtarget", "<", "ARCSubtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "std", "::", "map", "<", "MachineBasicBlock", "*", ",", "unsigned", ">", "BlockToPCMap", ";", "std", "::", "vector", "<", "std", "::", "pair", "<", "MachineInstr", "*", ",", "unsigned", ">>", "BranchToPCList", ";", "unsigned", "PC", "=", "0", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "{", "BlockToPCMap", ".", "insert", "(", "std", "::", "make_pair", "(", "&", "MBB", ",", "PC", ")", ")", ";", "for", "(", "auto", "&", "MI", ":", "MBB", ")", "{", "unsigned", "Size", "=", "TII", "->", "getInstSizeInBytes", "(", "MI", ")", ";", "if", "(", "Size", ">", "8", "||", "Size", "==", "0", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Unknown (or size 0) size for: \"", "<<", "MI", "<<", "\"\\n\"", ")", ";", "}", "else", "{", "MaxSize", "+=", "Size", ";", "}", "if", "(", "MI", ".", "isBranch", "(", ")", ")", "{", "Branches", ".", "push_back", "(", "&", "MI", ")", ";", "BranchToPCList", ".", "emplace_back", "(", "&", "MI", ",", "PC", ")", ";", "}", "PC", "+=", "Size", ";", "}", "}", "for", "(", "auto", "P", ":", "BranchToPCList", ")", "{", "if", "(", "isBRccPseudo", "(", "P", ".", "first", ")", ")", "isInt", "<", "9", ">", "(", "MaxSize", ")", "?", "replaceWithBRcc", "(", "P", ".", "first", ")", ":", "replaceWithCmpBcc", "(", "P", ".", "first", ")", ";", "}", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Estimated function size for \"", "<<", "MF", ".", "getName", "(", ")", "<<", "\": \"", "<<", "MaxSize", "<<", "\"\\n\"", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARC", "ARC", "\"Running ARC Branch Finalize on \"", "\"\\n\"", "0", "ARC", "0", "8", "0", "\"Unknown (or size 0) size for: \"", "\"\\n\"", "9", "\"Estimated function size for \"", "\": \"", "\"\\n\""], "File": "ARCBranchFinalize3", "Func": "runOnMachineFunction", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28706, "Length": 266} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"ARC Branch Finalization Pass\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["ARC", "\"ARC Branch Finalization Pass\""], "File": "ARCBranchFinalize", "Func": "getPassName", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28707, "Length": 11} {"ground_truth": ["", "bool", "ARCBranchFinalize", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Running ARC Branch Finalize on \"", "<<", "MF", ".", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "std", "::", "vector", "<", "MachineInstr", "*", ">", "Branches", ";", "bool", "Changed", "=", "false", ";", "unsigned", "MaxSize", "=", "0", ";", "TII", "=", "MF", ".", "getSubtarget", "<", "ARCSubtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "std", "::", "map", "<", "MachineBasicBlock", "*", ",", "unsigned", ">", "BlockToPCMap", ";", "std", "::", "vector", "<", "std", "::", "pair", "<", "MachineInstr", "*", ",", "unsigned", ">>", "BranchToPCList", ";", "unsigned", "PC", "=", "0", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "{", "BlockToPCMap", ".", "insert", "(", "std", "::", "make_pair", "(", "&", "MBB", ",", "PC", ")", ")", ";", "for", "(", "auto", "&", "MI", ":", "MBB", ")", "{", "unsigned", "Size", "=", "TII", "->", "getInstSizeInBytes", "(", "MI", ")", ";", "if", "(", "Size", ">", "8", "||", "Size", "==", "0", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Unknown (or size 0) size for: \"", "<<", "MI", "<<", "\"\\n\"", ")", ";", "}", "else", "{", "MaxSize", "+=", "Size", ";", "}", "if", "(", "MI", ".", "isBranch", "(", ")", ")", "{", "Branches", ".", "push_back", "(", "&", "MI", ")", ";", "BranchToPCList", ".", "emplace_back", "(", "&", "MI", ",", "PC", ")", ";", "}", "PC", "+=", "Size", ";", "}", "}", "for", "(", "auto", "P", ":", "BranchToPCList", ")", "{", "if", "(", "isBRccPseudo", "(", "P", ".", "first", ")", ")", "isInt", "<", "9", ">", "(", "MaxSize", ")", "?", "replaceWithBRcc", "(", "P", ".", "first", ")", ":", "replaceWithCmpBcc", "(", "P", ".", "first", ")", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Estimated function size for \"", "<<", "MF", ".", "getName", "(", ")", "<<", "\": \"", "<<", "MaxSize", "<<", "\"\\n\"", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARC", "ARC", "\"Running ARC Branch Finalize on \"", "\"\\n\"", "0", "ARC", "0", "8", "0", "\"Unknown (or size 0) size for: \"", "\"\\n\"", "9", "\"Estimated function size for \"", "\": \"", "\"\\n\""], "File": "ARCBranchFinalize", "Func": "runOnMachineFunction", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28708, "Length": 266} {"ground_truth": ["", "DecodeStatus", "ARCDisassembler", "::", "getInstruction", "(", "MCInst", "&", "Instr", ",", "uint64_t", "&", "Size", ",", "ArrayRef", "<", "uint8_t", ">", "Bytes", ",", "uint64_t", "Address", ",", "raw_ostream", "&", "vStream", ",", "raw_ostream", "&", "cStream", ")", "const", "{", "MCDisassembler", "::", "DecodeStatus", "Result", ";", "if", "(", "Bytes", ".", "size", "(", ")", "<", "2", ")", "{", "Size", "=", "0", ";", "return", "Fail", ";", "}", "uint8_t", "DecodeByte", "=", "(", "Bytes", "[", "1", "]", "&", "0xF7", ")", ">>", "3", ";", "if", "(", "DecodeByte", "<", "0x08", ")", "{", "if", "(", "Bytes", ".", "size", "(", ")", "<", "4", ")", "{", "Size", "=", "0", ";", "return", "Fail", ";", "}", "if", "(", "Bytes", ".", "size", "(", ")", ">=", "8", ")", "{", "uint64_t", "Insn64", ";", "if", "(", "!", "readInstruction64", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn64", ")", ")", "return", "Fail", ";", "Result", "=", "decodeInstruction", "(", "DecoderTable64", ",", "Instr", ",", "Insn64", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Success", "==", "Result", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Successfully decoded 64-bit instruction.\"", ")", ";", "return", "Result", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Not a 64-bit instruction, falling back to 32-bit.\"", ")", ";", "}", "uint32_t", "Insn32", ";", "if", "(", "!", "readInstruction32", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn32", ")", ")", "{", "return", "Fail", ";", "}", "return", "decodeInstruction", "(", "DecoderTable32", ",", "Instr", ",", "Insn32", ",", "Address", ",", "this", ",", "STI", ")", ";", "}", "else", "{", "if", "(", "Bytes", ".", "size", "(", ")", ">=", "6", ")", "{", "uint64_t", "Insn48", ";", "if", "(", "!", "readInstruction48", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn48", ")", ")", "return", "Fail", ";", "Result", "=", "decodeInstruction", "(", "DecoderTable48", ",", "Instr", ",", "Insn48", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Success", "==", "Result", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Successfully decoded 16-bit instruction with limm.\"", ")", ";", "return", "Result", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Not a 16-bit instruction with limm, try without it.\"", ")", ";", "}", "uint32_t", "Insn16", ";", "if", "(", "!", "readInstruction16", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn16", ")", ")", "return", "Fail", ";", "return", "decodeInstruction", "(", "DecoderTable16", ",", "Instr", ",", "Insn16", ",", "Address", ",", "this", ",", "STI", ")", ";", "}", "}", ""], "natrual_language": ["Returns", "the", "disassembly", "of", "a", "single", "instruction", "."], "TS_V_token": ["ARC", "ARC", "2", "0", "1", "0xF7", "3", "0x08", "4", "0", "8", "\"Successfully decoded 64-bit instruction.\"", "\"Not a 64-bit instruction, falling back to 32-bit.\"", "6", "\"Successfully decoded 16-bit instruction with limm.\"", "\"Not a 16-bit instruction with limm, try without it.\""], "File": "ARCDisassembler11", "Func": "getInstruction", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28709, "Length": 331} {"ground_truth": ["", "MCDisassembler", "::", "DecodeStatus", "ARCDisassembler", "::", "getInstruction", "(", "MCInst", "&", "Instr", ",", "uint64_t", "&", "Size", ",", "ArrayRef", "<", "uint8_t", ">", "Bytes", ",", "uint64_t", "Address", ",", "raw_ostream", "&", "vStream", ",", "raw_ostream", "&", "cStream", ")", "const", "{", "MCDisassembler", "::", "DecodeStatus", "Result", ";", "if", "(", "Bytes", ".", "size", "(", ")", "<", "2", ")", "{", "Size", "=", "0", ";", "return", "Fail", ";", "}", "uint8_t", "DecodeByte", "=", "(", "Bytes", "[", "1", "]", "&", "0xF7", ")", ">>", "3", ";", "if", "(", "DecodeByte", "<", "0x08", ")", "{", "if", "(", "Bytes", ".", "size", "(", ")", "<", "4", ")", "{", "Size", "=", "0", ";", "return", "Fail", ";", "}", "if", "(", "Bytes", ".", "size", "(", ")", ">=", "8", ")", "{", "uint64_t", "Insn64", ";", "if", "(", "!", "readInstruction64", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn64", ")", ")", "return", "Fail", ";", "Result", "=", "decodeInstruction", "(", "DecoderTable64", ",", "Instr", ",", "Insn64", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Result", "==", "MCDisassembler", "::", "Success", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Successfully decoded 64-bit instruction.\"", ")", ";", "return", "MCDisassembler", "::", "Success", ";", "}", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Not a 64-bit instruction, falling back to 32-bit.\"", ")", ";", "}", "uint32_t", "Insn32", ";", "if", "(", "!", "readInstruction32", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn32", ")", ")", "{", "return", "Fail", ";", "}", "return", "decodeInstruction", "(", "DecoderTable32", ",", "Instr", ",", "Insn32", ",", "Address", ",", "this", ",", "STI", ")", ";", "}", "uint32_t", "Insn16", ";", "if", "(", "!", "readInstruction16", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn16", ")", ")", "{", "return", "Fail", ";", "}", "return", "decodeInstruction", "(", "DecoderTable16", ",", "Instr", ",", "Insn16", ",", "Address", ",", "this", ",", "STI", ")", ";", "}", ""], "natrual_language": ["Returns", "the", "disassembly", "of", "a", "single", "instruction", "."], "TS_V_token": ["ARC", "ARC", "2", "0", "1", "0xF7", "3", "0x08", "4", "0", "8", "\"Successfully decoded 64-bit instruction.\"", "\"Not a 64-bit instruction, falling back to 32-bit.\""], "File": "ARCDisassembler8", "Func": "getInstruction", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28710, "Length": 258} {"ground_truth": ["", "DecodeStatus", "ARCDisassembler", "::", "getInstruction", "(", "MCInst", "&", "Instr", ",", "uint64_t", "&", "Size", ",", "ArrayRef", "<", "uint8_t", ">", "Bytes", ",", "uint64_t", "Address", ",", "raw_ostream", "&", "vStream", ",", "raw_ostream", "&", "cStream", ")", "const", "{", "MCDisassembler", "::", "DecodeStatus", "Result", ";", "if", "(", "Bytes", ".", "size", "(", ")", "<", "2", ")", "{", "Size", "=", "0", ";", "return", "Fail", ";", "}", "uint8_t", "DecodeByte", "=", "(", "Bytes", "[", "1", "]", "&", "0xF7", ")", ">>", "3", ";", "if", "(", "DecodeByte", "<", "0x08", ")", "{", "if", "(", "Bytes", ".", "size", "(", ")", "<", "4", ")", "{", "Size", "=", "0", ";", "return", "Fail", ";", "}", "if", "(", "Bytes", ".", "size", "(", ")", ">=", "8", ")", "{", "uint64_t", "Insn64", ";", "if", "(", "!", "readInstruction64", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn64", ")", ")", "return", "Fail", ";", "Result", "=", "decodeInstruction", "(", "DecoderTable64", ",", "Instr", ",", "Insn64", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Success", "==", "Result", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Successfully decoded 64-bit instruction.\"", ")", ";", "return", "Result", ";", "}", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Not a 64-bit instruction, falling back to 32-bit.\"", ")", ";", "}", "uint32_t", "Insn32", ";", "if", "(", "!", "readInstruction32", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn32", ")", ")", "{", "return", "Fail", ";", "}", "return", "decodeInstruction", "(", "DecoderTable32", ",", "Instr", ",", "Insn32", ",", "Address", ",", "this", ",", "STI", ")", ";", "}", "else", "{", "if", "(", "Bytes", ".", "size", "(", ")", ">=", "6", ")", "{", "uint64_t", "Insn48", ";", "if", "(", "!", "readInstruction48", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn48", ")", ")", "return", "Fail", ";", "Result", "=", "decodeInstruction", "(", "DecoderTable48", ",", "Instr", ",", "Insn48", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Success", "==", "Result", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Successfully decoded 16-bit instruction with limm.\"", ")", ";", "return", "Result", ";", "}", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Not a 16-bit instruction with limm, try without it.\"", ")", ";", "}", "uint32_t", "Insn16", ";", "if", "(", "!", "readInstruction16", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn16", ")", ")", "return", "Fail", ";", "return", "decodeInstruction", "(", "DecoderTable16", ",", "Instr", ",", "Insn16", ",", "Address", ",", "this", ",", "STI", ")", ";", "}", "}", ""], "natrual_language": ["Returns", "the", "disassembly", "of", "a", "single", "instruction", "."], "TS_V_token": ["ARC", "ARC", "2", "0", "1", "0xF7", "3", "0x08", "4", "0", "8", "\"Successfully decoded 64-bit instruction.\"", "\"Not a 64-bit instruction, falling back to 32-bit.\"", "6", "\"Successfully decoded 16-bit instruction with limm.\"", "\"Not a 16-bit instruction with limm, try without it.\""], "File": "ARCDisassembler9", "Func": "getInstruction", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28711, "Length": 331} {"ground_truth": ["", "DecodeStatus", "ARCDisassembler", "::", "getInstruction", "(", "MCInst", "&", "Instr", ",", "uint64_t", "&", "Size", ",", "ArrayRef", "<", "uint8_t", ">", "Bytes", ",", "uint64_t", "Address", ",", "raw_ostream", "&", "cStream", ")", "const", "{", "MCDisassembler", "::", "DecodeStatus", "Result", ";", "if", "(", "Bytes", ".", "size", "(", ")", "<", "2", ")", "{", "Size", "=", "0", ";", "return", "Fail", ";", "}", "uint8_t", "DecodeByte", "=", "(", "Bytes", "[", "1", "]", "&", "0xF7", ")", ">>", "3", ";", "if", "(", "DecodeByte", "<", "0x08", ")", "{", "if", "(", "Bytes", ".", "size", "(", ")", "<", "4", ")", "{", "Size", "=", "0", ";", "return", "Fail", ";", "}", "if", "(", "Bytes", ".", "size", "(", ")", ">=", "8", ")", "{", "uint64_t", "Insn64", ";", "if", "(", "!", "readInstruction64", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn64", ")", ")", "return", "Fail", ";", "Result", "=", "decodeInstruction", "(", "DecoderTable64", ",", "Instr", ",", "Insn64", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Success", "==", "Result", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Successfully decoded 64-bit instruction.\"", ")", ";", "return", "Result", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Not a 64-bit instruction, falling back to 32-bit.\"", ")", ";", "}", "uint32_t", "Insn32", ";", "if", "(", "!", "readInstruction32", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn32", ")", ")", "{", "return", "Fail", ";", "}", "return", "decodeInstruction", "(", "DecoderTable32", ",", "Instr", ",", "Insn32", ",", "Address", ",", "this", ",", "STI", ")", ";", "}", "else", "{", "if", "(", "Bytes", ".", "size", "(", ")", ">=", "6", ")", "{", "uint64_t", "Insn48", ";", "if", "(", "!", "readInstruction48", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn48", ")", ")", "return", "Fail", ";", "Result", "=", "decodeInstruction", "(", "DecoderTable48", ",", "Instr", ",", "Insn48", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Success", "==", "Result", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Successfully decoded 16-bit instruction with limm.\"", ")", ";", "return", "Result", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Not a 16-bit instruction with limm, try without it.\"", ")", ";", "}", "uint32_t", "Insn16", ";", "if", "(", "!", "readInstruction16", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn16", ")", ")", "return", "Fail", ";", "return", "decodeInstruction", "(", "DecoderTable16", ",", "Instr", ",", "Insn16", ",", "Address", ",", "this", ",", "STI", ")", ";", "}", "}", ""], "natrual_language": ["Returns", "the", "disassembly", "of", "a", "single", "instruction", "."], "TS_V_token": ["ARC", "ARC", "2", "0", "1", "0xF7", "3", "0x08", "4", "0", "8", "\"Successfully decoded 64-bit instruction.\"", "\"Not a 64-bit instruction, falling back to 32-bit.\"", "6", "\"Successfully decoded 16-bit instruction with limm.\"", "\"Not a 16-bit instruction with limm, try without it.\""], "File": "ARCDisassembler", "Func": "getInstruction", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28712, "Length": 327} {"ground_truth": ["", "void", "ARCExpandPseudos", "::", "expandCTLZ", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "::", "iterator", "MII", ")", "{", "MachineInstr", "&", "MI", "=", "*", "MII", ";", "const", "MachineOperand", "&", "Dest", "=", "MI", ".", "getOperand", "(", "0", ")", ";", "const", "MachineOperand", "&", "Src", "=", "MI", ".", "getOperand", "(", "1", ")", ";", "Register", "Ra", "=", "MF", ".", "getRegInfo", "(", ")", ".", "createVirtualRegister", "(", "&", "ARC", "::", "GPR32RegClass", ")", ";", "Register", "Rb", "=", "MF", ".", "getRegInfo", "(", ")", ".", "createVirtualRegister", "(", "&", "ARC", "::", "GPR32RegClass", ")", ";", "BuildMI", "(", "*", "MI", ".", "getParent", "(", ")", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "ARC", "::", "FLS_f_rr", ")", ",", "Ra", ")", ".", "add", "(", "Src", ")", ";", "BuildMI", "(", "*", "MI", ".", "getParent", "(", ")", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "ARC", "::", "MOV_cc_ru6", ")", ",", "Rb", ")", ".", "addImm", "(", "32", ")", ".", "addImm", "(", "ARCCC", "::", "EQ", ")", ".", "addReg", "(", "Ra", ")", ";", "BuildMI", "(", "*", "MI", ".", "getParent", "(", ")", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "ARC", "::", "RSUB_cc_rru6", ")", ")", ".", "add", "(", "Dest", ")", ".", "addImm", "(", "31", ")", ".", "addImm", "(", "ARCCC", "::", "NE", ")", ".", "addReg", "(", "Rb", ")", ";", "MI", ".", "eraseFromParent", "(", ")", ";", "}", ""], "natrual_language": ["Expand", "CTLZ/CTLZ_ZERO_UNDEF", "nodes", "."], "TS_V_token": ["ARC", "ARC", "0", "1", "ARC::GPR32RegClass", "ARC::GPR32RegClass", "ARC::FLS_f_rr", "ARC::MOV_cc_ru6", "32", "ARCCC::EQ", "ARC::RSUB_cc_rru6", "31", "ARCCC::NE"], "File": "ARCExpandPseudos1", "Func": "expandCTLZ", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28713, "Length": 216} {"ground_truth": ["", "void", "ARCExpandPseudos", "::", "expandCTTZ", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "::", "iterator", "MII", ")", "{", "MachineInstr", "&", "MI", "=", "*", "MII", ";", "const", "MachineOperand", "&", "Dest", "=", "MI", ".", "getOperand", "(", "0", ")", ";", "const", "MachineOperand", "&", "Src", "=", "MI", ".", "getOperand", "(", "1", ")", ";", "Register", "R", "=", "MF", ".", "getRegInfo", "(", ")", ".", "createVirtualRegister", "(", "&", "ARC", "::", "GPR32RegClass", ")", ";", "BuildMI", "(", "*", "MI", ".", "getParent", "(", ")", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "ARC", "::", "FFS_f_rr", ")", ",", "R", ")", ".", "add", "(", "Src", ")", ";", "BuildMI", "(", "*", "MI", ".", "getParent", "(", ")", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "ARC", "::", "MOV_cc_ru6", ")", ")", ".", "add", "(", "Dest", ")", ".", "addImm", "(", "32", ")", ".", "addImm", "(", "ARCCC", "::", "EQ", ")", ".", "addReg", "(", "R", ")", ";", "MI", ".", "eraseFromParent", "(", ")", ";", "}", ""], "natrual_language": ["Expand", "CTTZ/CTTZ_ZERO_UNDEF", "nodes", "."], "TS_V_token": ["ARC", "ARC", "0", "1", "ARC::GPR32RegClass", "ARC::FFS_f_rr", "ARC::MOV_cc_ru6", "32", "ARCCC::EQ"], "File": "ARCExpandPseudos1", "Func": "expandCTTZ", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28714, "Length": 153} {"ground_truth": ["", "bool", "ARCExpandPseudos", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "const", "ARCSubtarget", "*", "STI", "=", "&", "MF", ".", "getSubtarget", "<", "ARCSubtarget", ">", "(", ")", ";", "TII", "=", "STI", "->", "getInstrInfo", "(", ")", ";", "bool", "Expanded", "=", "false", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "{", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "begin", "(", ")", ",", "E", "=", "MBB", ".", "end", "(", ")", ";", "while", "(", "MBBI", "!=", "E", ")", "{", "MachineBasicBlock", "::", "iterator", "NMBBI", "=", "std", "::", "next", "(", "MBBI", ")", ";", "switch", "(", "MBBI", "->", "getOpcode", "(", ")", ")", "{", "case", "ARC", "::", "ST_FAR", ":", "case", "ARC", "::", "STH_FAR", ":", "case", "ARC", "::", "STB_FAR", ":", "expandStore", "(", "MF", ",", "MBBI", ")", ";", "Expanded", "=", "true", ";", "break", ";", "case", "ARC", "::", "CTLZ", ":", "expandCTLZ", "(", "MF", ",", "MBBI", ")", ";", "Expanded", "=", "true", ";", "break", ";", "case", "ARC", "::", "CTTZ", ":", "expandCTTZ", "(", "MF", ",", "MBBI", ")", ";", "Expanded", "=", "true", ";", "break", ";", "default", ":", "break", ";", "}", "MBBI", "=", "NMBBI", ";", "}", "}", "return", "Expanded", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARC", "ARC", "ARC", "ARC", "ARC::ST_FAR", "ARC::STH_FAR", "ARC::STB_FAR", "ARC::CTLZ", "ARC::CTTZ"], "File": "ARCExpandPseudos1", "Func": "runOnMachineFunction", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28715, "Length": 173} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"ARC Expand Pseudos\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["ARC", "\"ARC Expand Pseudos\""], "File": "ARCExpandPseudos", "Func": "getPassName", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28716, "Length": 11} {"ground_truth": ["", "bool", "ARCExpandPseudos", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "const", "ARCSubtarget", "*", "STI", "=", "&", "MF", ".", "getSubtarget", "<", "ARCSubtarget", ">", "(", ")", ";", "TII", "=", "STI", "->", "getInstrInfo", "(", ")", ";", "bool", "ExpandedStore", "=", "false", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "{", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "begin", "(", ")", ",", "E", "=", "MBB", ".", "end", "(", ")", ";", "while", "(", "MBBI", "!=", "E", ")", "{", "MachineBasicBlock", "::", "iterator", "NMBBI", "=", "std", "::", "next", "(", "MBBI", ")", ";", "switch", "(", "MBBI", "->", "getOpcode", "(", ")", ")", "{", "case", "ARC", "::", "ST_FAR", ":", "case", "ARC", "::", "STH_FAR", ":", "case", "ARC", "::", "STB_FAR", ":", "ExpandStore", "(", "MF", ",", "MBBI", ")", ";", "ExpandedStore", "=", "true", ";", "break", ";", "default", ":", "break", ";", "}", "MBBI", "=", "NMBBI", ";", "}", "}", "return", "ExpandedStore", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARC", "ARC", "ARC", "ARC", "ARC::ST_FAR", "ARC::STH_FAR", "ARC::STB_FAR"], "File": "ARCExpandPseudos", "Func": "runOnMachineFunction", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28717, "Length": 137} {"ground_truth": ["", "void", "ARCFrameLowering", "::", "determineCalleeSaves", "(", "MachineFunction", "&", "MF", ",", "BitVector", "&", "SavedRegs", ",", "RegScavenger", "*", "RS", ")", "const", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Determine Callee Saves: \"", "<<", "MF", ".", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "TargetFrameLowering", "::", "determineCalleeSaves", "(", "MF", ",", "SavedRegs", ",", "RS", ")", ";", "SavedRegs", ".", "set", "(", "ARC", "::", "BLINK", ")", ";", "}", ""], "natrual_language": ["This", "method", "determines", "which", "of", "the", "registers", "reported", "by", "TargetRegisterInfo", ":", ":getCalleeSavedRegs", "(", ")", "should", "actually", "get", "saved", "."], "TS_V_token": ["ARC", "ARC", "\"Determine Callee Saves: \"", "\"\\n\"", "ARC::BLINK"], "File": "ARCFrameLowering10", "Func": "determineCalleeSaves", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28718, "Length": 57} {"ground_truth": ["", "MachineBasicBlock", "::", "iterator", "ARCFrameLowering", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"EmitCallFramePseudo: \"", "<<", "MF", ".", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "const", "ARCInstrInfo", "*", "TII", "=", "MF", ".", "getSubtarget", "<", "ARCSubtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "MachineInstr", "&", "Old", "=", "*", "I", ";", "DebugLoc", "dl", "=", "Old", ".", "getDebugLoc", "(", ")", ";", "unsigned", "Amt", "=", "Old", ".", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "auto", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARCFunctionInfo", ">", "(", ")", ";", "if", "(", "!", "hasFP", "(", "MF", ")", ")", "{", "if", "(", "Amt", ">", "AFI", "->", "MaxCallStackReq", "&&", "Old", ".", "getOpcode", "(", ")", "==", "ARC", "::", "ADJCALLSTACKDOWN", ")", "AFI", "->", "MaxCallStackReq", "=", "Amt", ";", "}", "else", "{", "if", "(", "Amt", "!=", "0", ")", "{", "assert", "(", "(", "Old", ".", "getOpcode", "(", ")", "==", "ARC", "::", "ADJCALLSTACKDOWN", "||", "Old", ".", "getOpcode", "(", ")", "==", "ARC", "::", "ADJCALLSTACKUP", ")", "&&", "\"Unknown Frame Pseudo.\"", ")", ";", "bool", "IsAdd", "=", "(", "Old", ".", "getOpcode", "(", ")", "==", "ARC", "::", "ADJCALLSTACKUP", ")", ";", "emitRegUpdate", "(", "MBB", ",", "I", ",", "dl", ",", "ARC", "::", "SP", ",", "Amt", ",", "IsAdd", ",", "TII", ")", ";", "}", "}", "return", "MBB", ".", "erase", "(", "I", ")", ";", "}", ""], "natrual_language": ["This", "method", "is", "called", "during", "prolog/epilog", "code", "insertion", "to", "eliminate", "call", "frame", "setup", "and", "destroy", "pseudo", "instructions", "(", "but", "only", "if", "the", "Target", "is", "using", "them", ")", "."], "TS_V_token": ["ARC", "ARC", "\"EmitCallFramePseudo: \"", "\"\\n\"", "ARC", "ARC", "0", "ARC", "ARC::ADJCALLSTACKDOWN", "0", "ARC::ADJCALLSTACKDOWN", "ARC::ADJCALLSTACKUP", "\"Unknown Frame Pseudo.\"", "ARC::ADJCALLSTACKUP", "ARC::SP"], "File": "ARCFrameLowering10", "Func": "eliminateCallFramePseudoInstr", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28719, "Length": 215} {"ground_truth": ["", "void", "ARCFrameLowering", "::", "processFunctionBeforeFrameFinalized", "(", "MachineFunction", "&", "MF", ",", "RegScavenger", "*", "RS", ")", "const", "{", "const", "TargetRegisterInfo", "*", "RegInfo", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Process function before frame finalized: \"", "<<", "MF", ".", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Current stack size: \"", "<<", "MFI", ".", "getStackSize", "(", ")", "<<", "\"\\n\"", ")", ";", "const", "TargetRegisterClass", "*", "RC", "=", "&", "ARC", "::", "GPR32RegClass", ";", "if", "(", "MFI", ".", "hasStackObjects", "(", ")", ")", "{", "int", "RegScavFI", "=", "MFI", ".", "CreateStackObject", "(", "RegInfo", "->", "getSpillSize", "(", "*", "RC", ")", ",", "RegInfo", "->", "getSpillAlignment", "(", "*", "RC", ")", ",", "false", ")", ";", "RS", "->", "addScavengingFrameIndex", "(", "RegScavFI", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Created scavenging index RegScavFI=\"", "<<", "RegScavFI", "<<", "\"\\n\"", ")", ";", "}", "}", ""], "natrual_language": ["processFunctionBeforeFrameFinalized", "-", "This", "method", "is", "called", "immediately", "before", "the", "specified", "function", "'s", "frame", "layout", "(", "MF.getFrameInfo", "(", ")", ")", "is", "finalized", "."], "TS_V_token": ["ARC", "ARC", "\"Process function before frame finalized: \"", "\"\\n\"", "\"Current stack size: \"", "\"\\n\"", "ARC::GPR32RegClass", "\"Created scavenging index RegScavFI=\"", "\"\\n\""], "File": "ARCFrameLowering10", "Func": "processFunctionBeforeFrameFinalized", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28720, "Length": 141} {"ground_truth": ["", "bool", "ARCFrameLowering", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Restore callee saved registers: \"", "<<", "MBB", ".", "getParent", "(", ")", "->", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "unsigned", "Last", "=", "determineLastCalleeSave", "(", "CSI", ")", ";", "if", "(", "UseSaveRestoreFunclet", "&&", "Last", ">", "ARC", "::", "R14", ")", "{", "return", "true", ";", "}", "return", "false", ";", "}", ""], "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": ["ARC", "ARC", "\"Restore callee saved registers: \"", "\"\\n\"", "ARC::R14"], "File": "ARCFrameLowering10", "Func": "restoreCalleeSavedRegisters", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28721, "Length": 78} {"ground_truth": ["", "bool", "ARCFrameLowering", "::", "spillCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Spill callee saved registers: \"", "<<", "MBB", ".", "getParent", "(", ")", "->", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "unsigned", "Last", "=", "determineLastCalleeSave", "(", "CSI", ")", ";", "if", "(", "UseSaveRestoreFunclet", "&&", "Last", ">", "ARC", "::", "R14", ")", "{", "return", "true", ";", "}", "return", "false", ";", "}", ""], "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": ["ARC", "ARC", "\"Spill callee saved registers: \"", "\"\\n\"", "ARC::R14"], "File": "ARCFrameLowering10", "Func": "spillCalleeSavedRegisters", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28722, "Length": 79} {"ground_truth": ["", "bool", "ARCFrameLowering", "::", "spillCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "ArrayRef", "<", "CalleeSavedInfo", ">", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Spill callee saved registers: \"", "<<", "MBB", ".", "getParent", "(", ")", "->", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "unsigned", "Last", "=", "determineLastCalleeSave", "(", "CSI", ")", ";", "if", "(", "UseSaveRestoreFunclet", "&&", "Last", ">", "ARC", "::", "R14", ")", "{", "return", "true", ";", "}", "return", "false", ";", "}", ""], "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": ["ARC", "ARC", "\"Spill callee saved registers: \"", "\"\\n\"", "ARC::R14"], "File": "ARCFrameLowering12", "Func": "spillCalleeSavedRegisters", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28723, "Length": 75} {"ground_truth": ["", "void", "ARCFrameLowering", "::", "processFunctionBeforeFrameFinalized", "(", "MachineFunction", "&", "MF", ",", "RegScavenger", "*", "RS", ")", "const", "{", "const", "TargetRegisterInfo", "*", "RegInfo", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Process function before frame finalized: \"", "<<", "MF", ".", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Current stack size: \"", "<<", "MFI", ".", "getStackSize", "(", ")", "<<", "\"\\n\"", ")", ";", "const", "TargetRegisterClass", "*", "RC", "=", "&", "ARC", "::", "GPR32RegClass", ";", "if", "(", "MFI", ".", "hasStackObjects", "(", ")", ")", "{", "int", "RegScavFI", "=", "MFI", ".", "CreateStackObject", "(", "RegInfo", "->", "getSpillSize", "(", "*", "RC", ")", ",", "RegInfo", "->", "getSpillAlign", "(", "*", "RC", ")", ",", "false", ")", ";", "RS", "->", "addScavengingFrameIndex", "(", "RegScavFI", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Created scavenging index RegScavFI=\"", "<<", "RegScavFI", "<<", "\"\\n\"", ")", ";", "}", "}", ""], "natrual_language": ["processFunctionBeforeFrameFinalized", "-", "This", "method", "is", "called", "immediately", "before", "the", "specified", "function", "'s", "frame", "layout", "(", "MF.getFrameInfo", "(", ")", ")", "is", "finalized", "."], "TS_V_token": ["ARC", "ARC", "\"Process function before frame finalized: \"", "\"\\n\"", "\"Current stack size: \"", "\"\\n\"", "ARC::GPR32RegClass", "\"Created scavenging index RegScavFI=\"", "\"\\n\""], "File": "ARCFrameLowering13", "Func": "processFunctionBeforeFrameFinalized", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28724, "Length": 141} {"ground_truth": ["", "bool", "ARCFrameLowering", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "MutableArrayRef", "<", "CalleeSavedInfo", ">", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Restore callee saved registers: \"", "<<", "MBB", ".", "getParent", "(", ")", "->", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "unsigned", "Last", "=", "determineLastCalleeSave", "(", "CSI", ")", ";", "if", "(", "UseSaveRestoreFunclet", "&&", "Last", ">", "ARC", "::", "R14", ")", "{", "return", "true", ";", "}", "return", "false", ";", "}", ""], "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": ["ARC", "ARC", "\"Restore callee saved registers: \"", "\"\\n\"", "ARC::R14"], "File": "ARCFrameLowering13", "Func": "restoreCalleeSavedRegisters", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28725, "Length": 75} {"ground_truth": ["", "bool", "ARCFrameLowering", "::", "assignCalleeSavedSpillSlots", "(", "MachineFunction", "&", "MF", ",", "const", "TargetRegisterInfo", "*", "TRI", ",", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ")", "const", "{", "int", "CurOffset", "=", "-", "4", ";", "unsigned", "Last", "=", "determineLastCalleeSave", "(", "CSI", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "if", "(", "hasFP", "(", "MF", ")", ")", "{", "int", "StackObj", "=", "MFI", ".", "CreateFixedSpillStackObject", "(", "4", ",", "CurOffset", ",", "true", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Creating fixed object (\"", "<<", "StackObj", "<<", "\") for FP at \"", "<<", "CurOffset", "<<", "\"\\n\"", ")", ";", "(", "void", ")", "StackObj", ";", "CurOffset", "-=", "4", ";", "}", "if", "(", "MFI", ".", "hasCalls", "(", ")", "||", "(", "UseSaveRestoreFunclet", "&&", "Last", ">", "ARC", "::", "R14", ")", ")", "{", "int", "StackObj", "=", "MFI", ".", "CreateFixedSpillStackObject", "(", "4", ",", "CurOffset", ",", "true", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Creating fixed object (\"", "<<", "StackObj", "<<", "\") for BLINK at \"", "<<", "CurOffset", "<<", "\"\\n\"", ")", ";", "(", "void", ")", "StackObj", ";", "CurOffset", "-=", "4", ";", "}", "for", "(", "unsigned", "Which", "=", "Last", ";", "Which", ">", "ARC", "::", "R12", ";", "Which", "--", ")", "{", "auto", "RegI", "=", "getSavedReg", "(", "CSI", ",", "Which", ")", ";", "if", "(", "RegI", "==", "CSI", ".", "end", "(", ")", "||", "RegI", "->", "getFrameIdx", "(", ")", "==", "0", ")", "{", "int", "FI", "=", "MFI", ".", "CreateFixedSpillStackObject", "(", "4", ",", "CurOffset", ",", "true", ")", ";", "if", "(", "RegI", "!=", "CSI", ".", "end", "(", ")", ")", "RegI", "->", "setFrameIdx", "(", "FI", ")", ";", "}", "else", "MFI", ".", "setObjectOffset", "(", "RegI", "->", "getFrameIdx", "(", ")", ",", "CurOffset", ")", ";", "CurOffset", "-=", "4", ";", "}", "for", "(", "auto", "&", "I", ":", "CSI", ")", "{", "if", "(", "I", ".", "getReg", "(", ")", ">", "ARC", "::", "R12", ")", "continue", ";", "if", "(", "I", ".", "getFrameIdx", "(", ")", "==", "0", ")", "{", "I", ".", "setFrameIdx", "(", "MFI", ".", "CreateFixedSpillStackObject", "(", "4", ",", "CurOffset", ",", "true", ")", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Creating fixed object (\"", "<<", "I", ".", "getFrameIdx", "(", ")", "<<", "\") for other register at \"", "<<", "CurOffset", "<<", "\"\\n\"", ")", ";", "}", "else", "{", "MFI", ".", "setObjectOffset", "(", "I", ".", "getFrameIdx", "(", ")", ",", "CurOffset", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Updating fixed object (\"", "<<", "I", ".", "getFrameIdx", "(", ")", "<<", "\") for other register at \"", "<<", "CurOffset", "<<", "\"\\n\"", ")", ";", "}", "CurOffset", "-=", "4", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["This", "function", "will", "assign", "callee", "saved", "gprs", "to", "volatile", "vector", "registers", "for", "prologue", "spills", "when", "applicable", "."], "TS_V_token": ["ARC", "ARC", "4", "4", "\"Creating fixed object (\"", "\") for FP at \"", "\"\\n\"", "4", "ARC::R14", "4", "\"Creating fixed object (\"", "\") for BLINK at \"", "\"\\n\"", "4", "ARC::R12", "0", "4", "4", "ARC::R12", "0", "4", "\"Creating fixed object (\"", "\") for other register at \"", "\"\\n\"", "\"Updating fixed object (\"", "\") for other register at \"", "\"\\n\"", "4"], "File": "ARCFrameLowering1", "Func": "assignCalleeSavedSpillSlots", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28726, "Length": 373} {"ground_truth": ["", "void", "ARCFrameLowering", "::", "determineCalleeSaves", "(", "MachineFunction", "&", "MF", ",", "BitVector", "&", "SavedRegs", ",", "RegScavenger", "*", "RS", ")", "const", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Determine Callee Saves: \"", "<<", "MF", ".", "getFunction", "(", ")", "->", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "TargetFrameLowering", "::", "determineCalleeSaves", "(", "MF", ",", "SavedRegs", ",", "RS", ")", ";", "SavedRegs", ".", "set", "(", "ARC", "::", "BLINK", ")", ";", "}", ""], "natrual_language": ["This", "method", "determines", "which", "of", "the", "registers", "reported", "by", "TargetRegisterInfo", ":", ":getCalleeSavedRegs", "(", ")", "should", "actually", "get", "saved", "."], "TS_V_token": ["ARC", "ARC", "\"Determine Callee Saves: \"", "\"\\n\"", "ARC::BLINK"], "File": "ARCFrameLowering1", "Func": "determineCalleeSaves", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28727, "Length": 61} {"ground_truth": ["", "MachineBasicBlock", "::", "iterator", "ARCFrameLowering", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"EmitCallFramePseudo: \"", "<<", "MF", ".", "getFunction", "(", ")", "->", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "const", "ARCInstrInfo", "*", "TII", "=", "MF", ".", "getSubtarget", "<", "ARCSubtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "MachineInstr", "&", "Old", "=", "*", "I", ";", "DebugLoc", "dl", "=", "Old", ".", "getDebugLoc", "(", ")", ";", "unsigned", "Amt", "=", "Old", ".", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "auto", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARCFunctionInfo", ">", "(", ")", ";", "if", "(", "!", "hasFP", "(", "MF", ")", ")", "{", "if", "(", "Amt", ">", "AFI", "->", "MaxCallStackReq", "&&", "Old", ".", "getOpcode", "(", ")", "==", "ARC", "::", "ADJCALLSTACKDOWN", ")", "AFI", "->", "MaxCallStackReq", "=", "Amt", ";", "}", "else", "{", "if", "(", "Amt", "!=", "0", ")", "{", "assert", "(", "(", "Old", ".", "getOpcode", "(", ")", "==", "ARC", "::", "ADJCALLSTACKDOWN", "||", "Old", ".", "getOpcode", "(", ")", "==", "ARC", "::", "ADJCALLSTACKUP", ")", "&&", "\"Unknown Frame Pseudo.\"", ")", ";", "bool", "IsAdd", "=", "(", "Old", ".", "getOpcode", "(", ")", "==", "ARC", "::", "ADJCALLSTACKUP", ")", ";", "emitRegUpdate", "(", "MBB", ",", "I", ",", "dl", ",", "ARC", "::", "SP", ",", "Amt", ",", "IsAdd", ",", "TII", ")", ";", "}", "}", "return", "MBB", ".", "erase", "(", "I", ")", ";", "}", ""], "natrual_language": ["This", "method", "is", "called", "during", "prolog/epilog", "code", "insertion", "to", "eliminate", "call", "frame", "setup", "and", "destroy", "pseudo", "instructions", "(", "but", "only", "if", "the", "Target", "is", "using", "them", ")", "."], "TS_V_token": ["ARC", "ARC", "\"EmitCallFramePseudo: \"", "\"\\n\"", "ARC", "ARC", "0", "ARC", "ARC::ADJCALLSTACKDOWN", "0", "ARC::ADJCALLSTACKDOWN", "ARC::ADJCALLSTACKUP", "\"Unknown Frame Pseudo.\"", "ARC::ADJCALLSTACKUP", "ARC::SP"], "File": "ARCFrameLowering1", "Func": "eliminateCallFramePseudoInstr", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28728, "Length": 219} {"ground_truth": ["", "void", "ARCFrameLowering", "::", "processFunctionBeforeFrameFinalized", "(", "MachineFunction", "&", "MF", ",", "RegScavenger", "*", "RS", ")", "const", "{", "const", "TargetRegisterInfo", "*", "RegInfo", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Process function before frame finalized: \"", "<<", "MF", ".", "getFunction", "(", ")", "->", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Current stack size: \"", "<<", "MFI", ".", "getStackSize", "(", ")", "<<", "\"\\n\"", ")", ";", "const", "TargetRegisterClass", "*", "RC", "=", "&", "ARC", "::", "GPR32RegClass", ";", "if", "(", "MFI", ".", "hasStackObjects", "(", ")", ")", "{", "int", "RegScavFI", "=", "MFI", ".", "CreateStackObject", "(", "RegInfo", "->", "getSpillSize", "(", "*", "RC", ")", ",", "RegInfo", "->", "getSpillAlignment", "(", "*", "RC", ")", ",", "false", ")", ";", "RS", "->", "addScavengingFrameIndex", "(", "RegScavFI", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Created scavenging index RegScavFI=\"", "<<", "RegScavFI", "<<", "\"\\n\"", ")", ";", "}", "}", ""], "natrual_language": ["processFunctionBeforeFrameFinalized", "-", "This", "method", "is", "called", "immediately", "before", "the", "specified", "function", "'s", "frame", "layout", "(", "MF.getFrameInfo", "(", ")", ")", "is", "finalized", "."], "TS_V_token": ["ARC", "ARC", "\"Process function before frame finalized: \"", "\"\\n\"", "\"Current stack size: \"", "\"\\n\"", "ARC::GPR32RegClass", "\"Created scavenging index RegScavFI=\"", "\"\\n\""], "File": "ARCFrameLowering1", "Func": "processFunctionBeforeFrameFinalized", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28729, "Length": 145} {"ground_truth": ["", "bool", "ARCFrameLowering", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Restore callee saved registers: \"", "<<", "MBB", ".", "getParent", "(", ")", "->", "getFunction", "(", ")", "->", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "unsigned", "Last", "=", "determineLastCalleeSave", "(", "CSI", ")", ";", "if", "(", "UseSaveRestoreFunclet", "&&", "Last", ">", "ARC", "::", "R14", ")", "{", "return", "true", ";", "}", "return", "false", ";", "}", ""], "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": ["ARC", "ARC", "\"Restore callee saved registers: \"", "\"\\n\"", "ARC::R14"], "File": "ARCFrameLowering1", "Func": "restoreCalleeSavedRegisters", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28730, "Length": 82} {"ground_truth": ["", "bool", "ARCFrameLowering", "::", "spillCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Spill callee saved registers: \"", "<<", "MBB", ".", "getParent", "(", ")", "->", "getFunction", "(", ")", "->", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "unsigned", "Last", "=", "determineLastCalleeSave", "(", "CSI", ")", ";", "if", "(", "UseSaveRestoreFunclet", "&&", "Last", ">", "ARC", "::", "R14", ")", "{", "return", "true", ";", "}", "return", "false", ";", "}", ""], "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": ["ARC", "ARC", "\"Spill callee saved registers: \"", "\"\\n\"", "ARC::R14"], "File": "ARCFrameLowering1", "Func": "spillCalleeSavedRegisters", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28731, "Length": 83} {"ground_truth": ["", "bool", "ARCFrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetRegisterInfo", "*", "RegInfo", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "bool", "HasFP", "=", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "DisableFramePointerElim", "(", "MF", ")", "||", "MF", ".", "getFrameInfo", "(", ")", ".", "hasVarSizedObjects", "(", ")", "||", "MF", ".", "getFrameInfo", "(", ")", ".", "isFrameAddressTaken", "(", ")", "||", "RegInfo", "->", "hasStackRealignment", "(", "MF", ")", ";", "return", "HasFP", ";", "}", ""], "natrual_language": ["hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "."], "TS_V_token": ["ARC", "ARC"], "File": "ARCFrameLowering3", "Func": "hasFP", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28732, "Length": 74} {"ground_truth": ["", "bool", "ARCFrameLowering", "::", "assignCalleeSavedSpillSlots", "(", "MachineFunction", "&", "MF", ",", "const", "TargetRegisterInfo", "*", "TRI", ",", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ")", "const", "{", "int", "CurOffset", "=", "-", "4", ";", "unsigned", "Last", "=", "determineLastCalleeSave", "(", "CSI", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "if", "(", "hasFP", "(", "MF", ")", ")", "{", "int", "StackObj", "=", "MFI", ".", "CreateFixedSpillStackObject", "(", "4", ",", "CurOffset", ",", "true", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Creating fixed object (\"", "<<", "StackObj", "<<", "\") for FP at \"", "<<", "CurOffset", "<<", "\"\\n\"", ")", ";", "(", "void", ")", "StackObj", ";", "CurOffset", "-=", "4", ";", "}", "if", "(", "MFI", ".", "hasCalls", "(", ")", "||", "(", "UseSaveRestoreFunclet", "&&", "Last", ">", "ARC", "::", "R14", ")", ")", "{", "int", "StackObj", "=", "MFI", ".", "CreateFixedSpillStackObject", "(", "4", ",", "CurOffset", ",", "true", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Creating fixed object (\"", "<<", "StackObj", "<<", "\") for BLINK at \"", "<<", "CurOffset", "<<", "\"\\n\"", ")", ";", "(", "void", ")", "StackObj", ";", "CurOffset", "-=", "4", ";", "}", "for", "(", "unsigned", "Which", "=", "Last", ";", "Which", ">", "ARC", "::", "R12", ";", "Which", "--", ")", "{", "auto", "RegI", "=", "getSavedReg", "(", "CSI", ",", "Which", ")", ";", "if", "(", "RegI", "==", "CSI", ".", "end", "(", ")", "||", "RegI", "->", "getFrameIdx", "(", ")", "==", "0", ")", "{", "int", "FI", "=", "MFI", ".", "CreateFixedSpillStackObject", "(", "4", ",", "CurOffset", ",", "true", ")", ";", "if", "(", "RegI", "!=", "CSI", ".", "end", "(", ")", ")", "RegI", "->", "setFrameIdx", "(", "FI", ")", ";", "}", "else", "MFI", ".", "setObjectOffset", "(", "RegI", "->", "getFrameIdx", "(", ")", ",", "CurOffset", ")", ";", "CurOffset", "-=", "4", ";", "}", "for", "(", "auto", "&", "I", ":", "CSI", ")", "{", "if", "(", "I", ".", "getReg", "(", ")", ">", "ARC", "::", "R12", ")", "continue", ";", "if", "(", "I", ".", "getFrameIdx", "(", ")", "==", "0", ")", "{", "I", ".", "setFrameIdx", "(", "MFI", ".", "CreateFixedSpillStackObject", "(", "4", ",", "CurOffset", ",", "true", ")", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Creating fixed object (\"", "<<", "I", ".", "getFrameIdx", "(", ")", "<<", "\") for other register at \"", "<<", "CurOffset", "<<", "\"\\n\"", ")", ";", "}", "else", "{", "MFI", ".", "setObjectOffset", "(", "I", ".", "getFrameIdx", "(", ")", ",", "CurOffset", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Updating fixed object (\"", "<<", "I", ".", "getFrameIdx", "(", ")", "<<", "\") for other register at \"", "<<", "CurOffset", "<<", "\"\\n\"", ")", ";", "}", "CurOffset", "-=", "4", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["This", "function", "will", "assign", "callee", "saved", "gprs", "to", "volatile", "vector", "registers", "for", "prologue", "spills", "when", "applicable", "."], "TS_V_token": ["ARC", "ARC", "4", "4", "\"Creating fixed object (\"", "\") for FP at \"", "\"\\n\"", "4", "ARC::R14", "4", "\"Creating fixed object (\"", "\") for BLINK at \"", "\"\\n\"", "4", "ARC::R12", "0", "4", "4", "ARC::R12", "0", "4", "\"Creating fixed object (\"", "\") for other register at \"", "\"\\n\"", "\"Updating fixed object (\"", "\") for other register at \"", "\"\\n\"", "4"], "File": "ARCFrameLowering", "Func": "assignCalleeSavedSpillSlots", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28733, "Length": 373} {"ground_truth": ["", "void", "ARCFrameLowering", "::", "determineCalleeSaves", "(", "MachineFunction", "&", "MF", ",", "BitVector", "&", "SavedRegs", ",", "RegScavenger", "*", "RS", ")", "const", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Determine Callee Saves: \"", "<<", "MF", ".", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "TargetFrameLowering", "::", "determineCalleeSaves", "(", "MF", ",", "SavedRegs", ",", "RS", ")", ";", "SavedRegs", ".", "set", "(", "ARC", "::", "BLINK", ")", ";", "}", ""], "natrual_language": ["This", "method", "determines", "which", "of", "the", "registers", "reported", "by", "TargetRegisterInfo", ":", ":getCalleeSavedRegs", "(", ")", "should", "actually", "get", "saved", "."], "TS_V_token": ["ARC", "ARC", "\"Determine Callee Saves: \"", "\"\\n\"", "ARC::BLINK"], "File": "ARCFrameLowering", "Func": "determineCalleeSaves", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28734, "Length": 57} {"ground_truth": ["", "MachineBasicBlock", "::", "iterator", "ARCFrameLowering", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"EmitCallFramePseudo: \"", "<<", "MF", ".", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "const", "ARCInstrInfo", "*", "TII", "=", "MF", ".", "getSubtarget", "<", "ARCSubtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "MachineInstr", "&", "Old", "=", "*", "I", ";", "DebugLoc", "dl", "=", "Old", ".", "getDebugLoc", "(", ")", ";", "unsigned", "Amt", "=", "Old", ".", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "auto", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARCFunctionInfo", ">", "(", ")", ";", "if", "(", "!", "hasFP", "(", "MF", ")", ")", "{", "if", "(", "Amt", ">", "AFI", "->", "MaxCallStackReq", "&&", "Old", ".", "getOpcode", "(", ")", "==", "ARC", "::", "ADJCALLSTACKDOWN", ")", "AFI", "->", "MaxCallStackReq", "=", "Amt", ";", "}", "else", "{", "if", "(", "Amt", "!=", "0", ")", "{", "assert", "(", "(", "Old", ".", "getOpcode", "(", ")", "==", "ARC", "::", "ADJCALLSTACKDOWN", "||", "Old", ".", "getOpcode", "(", ")", "==", "ARC", "::", "ADJCALLSTACKUP", ")", "&&", "\"Unknown Frame Pseudo.\"", ")", ";", "bool", "IsAdd", "=", "(", "Old", ".", "getOpcode", "(", ")", "==", "ARC", "::", "ADJCALLSTACKUP", ")", ";", "emitRegUpdate", "(", "MBB", ",", "I", ",", "dl", ",", "ARC", "::", "SP", ",", "Amt", ",", "IsAdd", ",", "TII", ")", ";", "}", "}", "return", "MBB", ".", "erase", "(", "I", ")", ";", "}", ""], "natrual_language": ["This", "method", "is", "called", "during", "prolog/epilog", "code", "insertion", "to", "eliminate", "call", "frame", "setup", "and", "destroy", "pseudo", "instructions", "(", "but", "only", "if", "the", "Target", "is", "using", "them", ")", "."], "TS_V_token": ["ARC", "ARC", "\"EmitCallFramePseudo: \"", "\"\\n\"", "ARC", "ARC", "0", "ARC", "ARC::ADJCALLSTACKDOWN", "0", "ARC::ADJCALLSTACKDOWN", "ARC::ADJCALLSTACKUP", "\"Unknown Frame Pseudo.\"", "ARC::ADJCALLSTACKUP", "ARC::SP"], "File": "ARCFrameLowering", "Func": "eliminateCallFramePseudoInstr", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28735, "Length": 215} {"ground_truth": ["", "bool", "ARCFrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetRegisterInfo", "*", "RegInfo", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "bool", "HasFP", "=", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "DisableFramePointerElim", "(", "MF", ")", "||", "MF", ".", "getFrameInfo", "(", ")", ".", "hasVarSizedObjects", "(", ")", "||", "MF", ".", "getFrameInfo", "(", ")", ".", "isFrameAddressTaken", "(", ")", "||", "RegInfo", "->", "needsStackRealignment", "(", "MF", ")", ";", "return", "HasFP", ";", "}", ""], "natrual_language": ["hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "."], "TS_V_token": ["ARC", "ARC"], "File": "ARCFrameLowering", "Func": "hasFP", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28736, "Length": 74} {"ground_truth": ["", "void", "ARCFrameLowering", "::", "processFunctionBeforeFrameFinalized", "(", "MachineFunction", "&", "MF", ",", "RegScavenger", "*", "RS", ")", "const", "{", "const", "TargetRegisterInfo", "*", "RegInfo", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Process function before frame finalized: \"", "<<", "MF", ".", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Current stack size: \"", "<<", "MFI", ".", "getStackSize", "(", ")", "<<", "\"\\n\"", ")", ";", "const", "TargetRegisterClass", "*", "RC", "=", "&", "ARC", "::", "GPR32RegClass", ";", "if", "(", "MFI", ".", "hasStackObjects", "(", ")", ")", "{", "int", "RegScavFI", "=", "MFI", ".", "CreateStackObject", "(", "RegInfo", "->", "getSpillSize", "(", "*", "RC", ")", ",", "RegInfo", "->", "getSpillAlignment", "(", "*", "RC", ")", ",", "false", ")", ";", "RS", "->", "addScavengingFrameIndex", "(", "RegScavFI", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Created scavenging index RegScavFI=\"", "<<", "RegScavFI", "<<", "\"\\n\"", ")", ";", "}", "}", ""], "natrual_language": ["processFunctionBeforeFrameFinalized", "-", "This", "method", "is", "called", "immediately", "before", "the", "specified", "function", "'s", "frame", "layout", "(", "MF.getFrameInfo", "(", ")", ")", "is", "finalized", "."], "TS_V_token": ["ARC", "ARC", "\"Process function before frame finalized: \"", "\"\\n\"", "\"Current stack size: \"", "\"\\n\"", "ARC::GPR32RegClass", "\"Created scavenging index RegScavFI=\"", "\"\\n\""], "File": "ARCFrameLowering", "Func": "processFunctionBeforeFrameFinalized", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28737, "Length": 141} {"ground_truth": ["", "bool", "ARCFrameLowering", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Restore callee saved registers: \"", "<<", "MBB", ".", "getParent", "(", ")", "->", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "unsigned", "Last", "=", "determineLastCalleeSave", "(", "CSI", ")", ";", "if", "(", "UseSaveRestoreFunclet", "&&", "Last", ">", "ARC", "::", "R14", ")", "{", "return", "true", ";", "}", "return", "false", ";", "}", ""], "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": ["ARC", "ARC", "\"Restore callee saved registers: \"", "\"\\n\"", "ARC::R14"], "File": "ARCFrameLowering", "Func": "restoreCalleeSavedRegisters", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28738, "Length": 78} {"ground_truth": ["", "bool", "ARCFrameLowering", "::", "spillCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Spill callee saved registers: \"", "<<", "MBB", ".", "getParent", "(", ")", "->", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "unsigned", "Last", "=", "determineLastCalleeSave", "(", "CSI", ")", ";", "if", "(", "UseSaveRestoreFunclet", "&&", "Last", ">", "ARC", "::", "R14", ")", "{", "return", "true", ";", "}", "return", "false", ";", "}", ""], "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": ["ARC", "ARC", "\"Spill callee saved registers: \"", "\"\\n\"", "ARC::R14"], "File": "ARCFrameLowering", "Func": "spillCalleeSavedRegisters", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28739, "Length": 79} {"ground_truth": ["", "void", "ARCInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "uint64_t", "Address", ",", "StringRef", "Annot", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "raw_ostream", "&", "O", ")", "{", "printInstruction", "(", "MI", ",", "Address", ",", "O", ")", ";", "printAnnotation", "(", "O", ",", "Annot", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["ARC", "ARC"], "File": "ARCInstPrinter3", "Func": "printInst", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28740, "Length": 43} {"ground_truth": ["", "void", "ARCInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "O", ",", "StringRef", "Annot", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "{", "printInstruction", "(", "MI", ",", "O", ")", ";", "printAnnotation", "(", "O", ",", "Annot", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["ARC", "ARC"], "File": "ARCInstPrinter", "Func": "printInst", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28741, "Length": 38} {"ground_truth": ["", "void", "ARCInstPrinter", "::", "printRegName", "(", "raw_ostream", "&", "OS", ",", "unsigned", "RegNo", ")", "const", "{", "OS", "<<", "StringRef", "(", "getRegisterName", "(", "RegNo", ")", ")", ".", "lower", "(", ")", ";", "}", ""], "natrual_language": ["Print", "the", "assembler", "register", "name", "."], "TS_V_token": ["ARC", "ARC"], "File": "ARCInstPrinter", "Func": "printRegName", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28742, "Length": 29} {"ground_truth": ["", "bool", "ARCInstrInfo", "::", "analyzeBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "*", "&", "TBB", ",", "MachineBasicBlock", "*", "&", "FBB", ",", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Cond", ",", "bool", "AllowModify", ")", "const", "{", "TBB", "=", "FBB", "=", "nullptr", ";", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "end", "(", ")", ";", "if", "(", "I", "==", "MBB", ".", "begin", "(", ")", ")", "return", "false", ";", "--", "I", ";", "while", "(", "isPredicated", "(", "*", "I", ")", "||", "I", "->", "isTerminator", "(", ")", "||", "I", "->", "isDebugValue", "(", ")", ")", "{", "bool", "CantAnalyze", "=", "false", ";", "while", "(", "I", "->", "isDebugValue", "(", ")", "||", "!", "I", "->", "isTerminator", "(", ")", ")", "{", "if", "(", "I", "==", "MBB", ".", "begin", "(", ")", ")", "return", "false", ";", "--", "I", ";", "}", "if", "(", "isJumpOpcode", "(", "I", "->", "getOpcode", "(", ")", ")", ")", "{", "CantAnalyze", "=", "true", ";", "}", "else", "if", "(", "isUncondBranchOpcode", "(", "I", "->", "getOpcode", "(", ")", ")", ")", "{", "TBB", "=", "I", "->", "getOperand", "(", "0", ")", ".", "getMBB", "(", ")", ";", "}", "else", "if", "(", "isCondBranchOpcode", "(", "I", "->", "getOpcode", "(", ")", ")", ")", "{", "if", "(", "!", "Cond", ".", "empty", "(", ")", ")", "return", "true", ";", "assert", "(", "!", "FBB", "&&", "\"FBB should have been null.\"", ")", ";", "FBB", "=", "TBB", ";", "TBB", "=", "I", "->", "getOperand", "(", "0", ")", ".", "getMBB", "(", ")", ";", "Cond", ".", "push_back", "(", "I", "->", "getOperand", "(", "1", ")", ")", ";", "Cond", ".", "push_back", "(", "I", "->", "getOperand", "(", "2", ")", ")", ";", "Cond", ".", "push_back", "(", "I", "->", "getOperand", "(", "3", ")", ")", ";", "}", "else", "if", "(", "I", "->", "isReturn", "(", ")", ")", "{", "CantAnalyze", "=", "!", "isPredicated", "(", "*", "I", ")", ";", "}", "else", "{", "return", "true", ";", "}", "if", "(", "!", "isPredicated", "(", "*", "I", ")", "&&", "(", "isUncondBranchOpcode", "(", "I", "->", "getOpcode", "(", ")", ")", "||", "isJumpOpcode", "(", "I", "->", "getOpcode", "(", ")", ")", "||", "I", "->", "isReturn", "(", ")", ")", ")", "{", "Cond", ".", "clear", "(", ")", ";", "FBB", "=", "nullptr", ";", "if", "(", "AllowModify", ")", "{", "MachineBasicBlock", "::", "iterator", "DI", "=", "std", "::", "next", "(", "I", ")", ";", "while", "(", "DI", "!=", "MBB", ".", "end", "(", ")", ")", "{", "MachineInstr", "&", "InstToDelete", "=", "*", "DI", ";", "++", "DI", ";", "InstToDelete", ".", "eraseFromParent", "(", ")", ";", "}", "}", "}", "if", "(", "CantAnalyze", ")", "return", "true", ";", "if", "(", "I", "==", "MBB", ".", "begin", "(", ")", ")", "return", "false", ";", "--", "I", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["analyzeBranch", "-", "Analyze", "the", "branching", "code", "at", "the", "end", "of", "MBB", ",", "returning", "true", "if", "it", "can", "not", "be", "understood", "(", "e.g", "."], "TS_V_token": ["ARC", "ARC", "0", "\"FBB should have been null.\"", "0", "1", "2", "3"], "File": "ARCInstrInfo10", "Func": "analyzeBranch", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28743, "Length": 401} {"ground_truth": ["", "void", "ARCInstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "DestReg", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "dl", "=", "MBB", ".", "findDebugLoc", "(", "I", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "unsigned", "Align", "=", "MFI", ".", "getObjectAlignment", "(", "FrameIndex", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FrameIndex", ")", ",", "MachineMemOperand", "::", "MOLoad", ",", "MFI", ".", "getObjectSize", "(", "FrameIndex", ")", ",", "Align", ")", ";", "assert", "(", "MMO", "&&", "\"Couldn't get MachineMemOperand for store to stack.\"", ")", ";", "assert", "(", "TRI", "->", "getSpillSize", "(", "*", "RC", ")", "==", "4", "&&", "\"Only support 4-byte loads from stack now.\"", ")", ";", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "hasSubClassEq", "(", "RC", ")", "&&", "\"Only support GPR32 stores to stack now.\"", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Created load reg=\"", "<<", "PrintReg", "(", "DestReg", ",", "TRI", ")", "<<", "\" from FrameIndex=\"", "<<", "FrameIndex", "<<", "\"\\n\"", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "dl", ",", "get", "(", "ARC", "::", "LD_rs9", ")", ")", ".", "addReg", "(", "DestReg", ",", "RegState", "::", "Define", ")", ".", "addFrameIndex", "(", "FrameIndex", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARC", "ARC", "\"Couldn't get MachineMemOperand for store to stack.\"", "4", "\"Only support 4-byte loads from stack now.\"", "ARC::GPR32RegClass", "\"Only support GPR32 stores to stack now.\"", "\"Created load reg=\"", "\" from FrameIndex=\"", "\"\\n\"", "ARC::LD_rs9", "0"], "File": "ARCInstrInfo10", "Func": "loadRegFromStackSlot", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28744, "Length": 203} {"ground_truth": ["", "void", "ARCInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "dl", "=", "MBB", ".", "findDebugLoc", "(", "I", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "unsigned", "Align", "=", "MFI", ".", "getObjectAlignment", "(", "FrameIndex", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FrameIndex", ")", ",", "MachineMemOperand", "::", "MOStore", ",", "MFI", ".", "getObjectSize", "(", "FrameIndex", ")", ",", "Align", ")", ";", "assert", "(", "MMO", "&&", "\"Couldn't get MachineMemOperand for store to stack.\"", ")", ";", "assert", "(", "TRI", "->", "getSpillSize", "(", "*", "RC", ")", "==", "4", "&&", "\"Only support 4-byte stores to stack now.\"", ")", ";", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "hasSubClassEq", "(", "RC", ")", "&&", "\"Only support GPR32 stores to stack now.\"", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Created store reg=\"", "<<", "PrintReg", "(", "SrcReg", ",", "TRI", ")", "<<", "\" to FrameIndex=\"", "<<", "FrameIndex", "<<", "\"\\n\"", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "dl", ",", "get", "(", "ARC", "::", "ST_rs9", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addFrameIndex", "(", "FrameIndex", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARC", "ARC", "\"Couldn't get MachineMemOperand for store to stack.\"", "4", "\"Only support 4-byte stores to stack now.\"", "ARC::GPR32RegClass", "\"Only support GPR32 stores to stack now.\"", "\"Created store reg=\"", "\" to FrameIndex=\"", "\"\\n\"", "ARC::ST_rs9", "0"], "File": "ARCInstrInfo10", "Func": "storeRegToStackSlot", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28745, "Length": 207} {"ground_truth": ["", "void", "ARCInstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "DestReg", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "dl", "=", "MBB", ".", "findDebugLoc", "(", "I", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "unsigned", "Align", "=", "MFI", ".", "getObjectAlignment", "(", "FrameIndex", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FrameIndex", ")", ",", "MachineMemOperand", "::", "MOLoad", ",", "MFI", ".", "getObjectSize", "(", "FrameIndex", ")", ",", "Align", ")", ";", "assert", "(", "MMO", "&&", "\"Couldn't get MachineMemOperand for store to stack.\"", ")", ";", "assert", "(", "TRI", "->", "getSpillSize", "(", "*", "RC", ")", "==", "4", "&&", "\"Only support 4-byte loads from stack now.\"", ")", ";", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "hasSubClassEq", "(", "RC", ")", "&&", "\"Only support GPR32 stores to stack now.\"", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Created load reg=\"", "<<", "printReg", "(", "DestReg", ",", "TRI", ")", "<<", "\" from FrameIndex=\"", "<<", "FrameIndex", "<<", "\"\\n\"", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "dl", ",", "get", "(", "ARC", "::", "LD_rs9", ")", ")", ".", "addReg", "(", "DestReg", ",", "RegState", "::", "Define", ")", ".", "addFrameIndex", "(", "FrameIndex", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARC", "ARC", "\"Couldn't get MachineMemOperand for store to stack.\"", "4", "\"Only support 4-byte loads from stack now.\"", "ARC::GPR32RegClass", "\"Only support GPR32 stores to stack now.\"", "\"Created load reg=\"", "\" from FrameIndex=\"", "\"\\n\"", "ARC::LD_rs9", "0"], "File": "ARCInstrInfo13", "Func": "loadRegFromStackSlot", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28746, "Length": 203} {"ground_truth": ["", "void", "ARCInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "dl", "=", "MBB", ".", "findDebugLoc", "(", "I", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "unsigned", "Align", "=", "MFI", ".", "getObjectAlignment", "(", "FrameIndex", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FrameIndex", ")", ",", "MachineMemOperand", "::", "MOStore", ",", "MFI", ".", "getObjectSize", "(", "FrameIndex", ")", ",", "Align", ")", ";", "assert", "(", "MMO", "&&", "\"Couldn't get MachineMemOperand for store to stack.\"", ")", ";", "assert", "(", "TRI", "->", "getSpillSize", "(", "*", "RC", ")", "==", "4", "&&", "\"Only support 4-byte stores to stack now.\"", ")", ";", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "hasSubClassEq", "(", "RC", ")", "&&", "\"Only support GPR32 stores to stack now.\"", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Created store reg=\"", "<<", "printReg", "(", "SrcReg", ",", "TRI", ")", "<<", "\" to FrameIndex=\"", "<<", "FrameIndex", "<<", "\"\\n\"", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "dl", ",", "get", "(", "ARC", "::", "ST_rs9", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addFrameIndex", "(", "FrameIndex", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARC", "ARC", "\"Couldn't get MachineMemOperand for store to stack.\"", "4", "\"Only support 4-byte stores to stack now.\"", "ARC::GPR32RegClass", "\"Only support GPR32 stores to stack now.\"", "\"Created store reg=\"", "\" to FrameIndex=\"", "\"\\n\"", "ARC::ST_rs9", "0"], "File": "ARCInstrInfo13", "Func": "storeRegToStackSlot", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28747, "Length": 207} {"ground_truth": ["", "void", "ARCInstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "Register", "DestReg", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "dl", "=", "MBB", ".", "findDebugLoc", "(", "I", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "unsigned", "Align", "=", "MFI", ".", "getObjectAlignment", "(", "FrameIndex", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FrameIndex", ")", ",", "MachineMemOperand", "::", "MOLoad", ",", "MFI", ".", "getObjectSize", "(", "FrameIndex", ")", ",", "Align", ")", ";", "assert", "(", "MMO", "&&", "\"Couldn't get MachineMemOperand for store to stack.\"", ")", ";", "assert", "(", "TRI", "->", "getSpillSize", "(", "*", "RC", ")", "==", "4", "&&", "\"Only support 4-byte loads from stack now.\"", ")", ";", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "hasSubClassEq", "(", "RC", ")", "&&", "\"Only support GPR32 stores to stack now.\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Created load reg=\"", "<<", "printReg", "(", "DestReg", ",", "TRI", ")", "<<", "\" from FrameIndex=\"", "<<", "FrameIndex", "<<", "\"\\n\"", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "dl", ",", "get", "(", "ARC", "::", "LD_rs9", ")", ")", ".", "addReg", "(", "DestReg", ",", "RegState", "::", "Define", ")", ".", "addFrameIndex", "(", "FrameIndex", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARC", "ARC", "\"Couldn't get MachineMemOperand for store to stack.\"", "4", "\"Only support 4-byte loads from stack now.\"", "ARC::GPR32RegClass", "\"Only support GPR32 stores to stack now.\"", "\"Created load reg=\"", "\" from FrameIndex=\"", "\"\\n\"", "ARC::LD_rs9", "0"], "File": "ARCInstrInfo19", "Func": "loadRegFromStackSlot", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28748, "Length": 203} {"ground_truth": ["", "void", "ARCInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "Register", "SrcReg", ",", "bool", "isKill", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "dl", "=", "MBB", ".", "findDebugLoc", "(", "I", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "unsigned", "Align", "=", "MFI", ".", "getObjectAlignment", "(", "FrameIndex", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FrameIndex", ")", ",", "MachineMemOperand", "::", "MOStore", ",", "MFI", ".", "getObjectSize", "(", "FrameIndex", ")", ",", "Align", ")", ";", "assert", "(", "MMO", "&&", "\"Couldn't get MachineMemOperand for store to stack.\"", ")", ";", "assert", "(", "TRI", "->", "getSpillSize", "(", "*", "RC", ")", "==", "4", "&&", "\"Only support 4-byte stores to stack now.\"", ")", ";", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "hasSubClassEq", "(", "RC", ")", "&&", "\"Only support GPR32 stores to stack now.\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Created store reg=\"", "<<", "printReg", "(", "SrcReg", ",", "TRI", ")", "<<", "\" to FrameIndex=\"", "<<", "FrameIndex", "<<", "\"\\n\"", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "dl", ",", "get", "(", "ARC", "::", "ST_rs9", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addFrameIndex", "(", "FrameIndex", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARC", "ARC", "\"Couldn't get MachineMemOperand for store to stack.\"", "4", "\"Only support 4-byte stores to stack now.\"", "ARC::GPR32RegClass", "\"Only support GPR32 stores to stack now.\"", "\"Created store reg=\"", "\" to FrameIndex=\"", "\"\\n\"", "ARC::ST_rs9", "0"], "File": "ARCInstrInfo19", "Func": "storeRegToStackSlot", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28749, "Length": 207} {"ground_truth": ["", "void", "ARCInstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "const", "DebugLoc", "&", "dl", ",", "MCRegister", "DestReg", ",", "MCRegister", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "contains", "(", "SrcReg", ")", "&&", "\"Only GPR32 src copy supported.\"", ")", ";", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "contains", "(", "DestReg", ")", "&&", "\"Only GPR32 dest copy supported.\"", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "dl", ",", "get", "(", "ARC", "::", "MOV_rr", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "}", ""], "natrual_language": ["}", "Branch", "Analysis", "&", "Modification"], "TS_V_token": ["ARC", "ARC", "ARC::GPR32RegClass", "\"Only GPR32 src copy supported.\"", "ARC::GPR32RegClass", "\"Only GPR32 dest copy supported.\"", "ARC::MOV_rr"], "File": "ARCInstrInfo1", "Func": "copyPhysReg", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28750, "Length": 87} {"ground_truth": ["", "bool", "ARCInstrInfo", "::", "getBaseAndOffsetPosition", "(", "const", "MachineInstr", "&", "MI", ",", "unsigned", "&", "BasePos", ",", "unsigned", "&", "OffsetPos", ")", "const", "{", "if", "(", "!", "MI", ".", "mayLoad", "(", ")", "&&", "!", "MI", ".", "mayStore", "(", ")", ")", "return", "false", ";", "BasePos", "=", "1", ";", "OffsetPos", "=", "2", ";", "if", "(", "isPostIncrement", "(", "MI", ")", "||", "isPreIncrement", "(", "MI", ")", ")", "{", "BasePos", "++", ";", "OffsetPos", "++", ";", "}", "if", "(", "!", "MI", ".", "getOperand", "(", "BasePos", ")", ".", "isReg", "(", ")", "||", "!", "MI", ".", "getOperand", "(", "OffsetPos", ")", ".", "isImm", "(", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "instruction", "contains", "a", "base", "register", "and", "offset", "."], "TS_V_token": ["ARC", "ARC", "1", "2"], "File": "ARCInstrInfo1", "Func": "getBaseAndOffsetPosition", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28751, "Length": 100} {"ground_truth": ["", "unsigned", "ARCInstrInfo", "::", "getInstSizeInBytes", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "if", "(", "MI", ".", "isInlineAsm", "(", ")", ")", "{", "const", "MachineFunction", "*", "MF", "=", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "char", "*", "AsmStr", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getSymbolName", "(", ")", ";", "return", "getInlineAsmLength", "(", "AsmStr", ",", "*", "MF", "->", "getTarget", "(", ")", ".", "getMCAsmInfo", "(", ")", ")", ";", "}", "return", "MI", ".", "getDesc", "(", ")", ".", "getSize", "(", ")", ";", "}", ""], "natrual_language": ["Returns", "the", "size", "in", "bytes", "of", "the", "specified", "MachineInstr", ",", "or", "~0U", "when", "this", "function", "is", "not", "implemented", "by", "a", "target", "."], "TS_V_token": ["ARC", "ARC", "0"], "File": "ARCInstrInfo1", "Func": "getInstSizeInBytes", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28752, "Length": 82} {"ground_truth": ["", "unsigned", "ARCInstrInfo", "::", "insertBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "*", "TBB", ",", "MachineBasicBlock", "*", "FBB", ",", "ArrayRef", "<", "MachineOperand", ">", "Cond", ",", "const", "DebugLoc", "&", "dl", ",", "int", "*", "BytesAdded", ")", "const", "{", "assert", "(", "!", "BytesAdded", "&&", "\"Code size not handled.\"", ")", ";", "assert", "(", "TBB", "&&", "\"insertBranch must not be told to insert a fallthrough\"", ")", ";", "assert", "(", "(", "Cond", ".", "size", "(", ")", "==", "3", "||", "Cond", ".", "size", "(", ")", "==", "0", ")", "&&", "\"ARC branch conditions have two components!\"", ")", ";", "if", "(", "Cond", ".", "empty", "(", ")", ")", "{", "BuildMI", "(", "&", "MBB", ",", "dl", ",", "get", "(", "ARC", "::", "BR", ")", ")", ".", "addMBB", "(", "TBB", ")", ";", "return", "1", ";", "}", "int", "BccOpc", "=", "Cond", "[", "1", "]", ".", "isImm", "(", ")", "?", "ARC", "::", "BRcc_ru6_p", ":", "ARC", "::", "BRcc_rr_p", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "&", "MBB", ",", "dl", ",", "get", "(", "BccOpc", ")", ")", ";", "MIB", ".", "addMBB", "(", "TBB", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "3", ";", "i", "++", ")", "{", "MIB", ".", "add", "(", "Cond", "[", "i", "]", ")", ";", "}", "if", "(", "!", "FBB", ")", "{", "return", "1", ";", "}", "BuildMI", "(", "&", "MBB", ",", "dl", ",", "get", "(", "ARC", "::", "BR", ")", ")", ".", "addMBB", "(", "FBB", ")", ";", "return", "2", ";", "}", ""], "natrual_language": ["Insert", "branch", "code", "into", "the", "end", "of", "the", "specified", "MachineBasicBlock", "."], "TS_V_token": ["ARC", "ARC", "\"Code size not handled.\"", "\"insertBranch must not be told to insert a fallthrough\"", "3", "0", "\"ARC branch conditions have two components!\"", "ARC::BR", "1", "1", "ARC::BRcc_ru6_p", "ARC::BRcc_rr_p", "0", "3", "1", "ARC::BR", "2"], "File": "ARCInstrInfo1", "Func": "insertBranch", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28753, "Length": 208} {"ground_truth": ["", "bool", "ARCInstrInfo", "::", "isPostIncrement", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "const", "MCInstrDesc", "&", "MID", "=", "MI", ".", "getDesc", "(", ")", ";", "const", "uint64_t", "F", "=", "MID", ".", "TSFlags", ";", "return", "(", "(", "F", ">>", "TSF_AddrModeOff", ")", "&", "TSF_AddModeMask", ")", "==", "PostInc", ";", "}", ""], "natrual_language": ["Return", "true", "for", "post-incremented", "instructions", "."], "TS_V_token": ["ARC", "ARC"], "File": "ARCInstrInfo1", "Func": "isPostIncrement", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28754, "Length": 45} {"ground_truth": ["", "void", "ARCInstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "const", "DebugLoc", "&", "DL", ",", "MCRegister", "DestReg", ",", "MCRegister", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "contains", "(", "SrcReg", ")", "&&", "\"Only GPR32 src copy supported.\"", ")", ";", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "contains", "(", "DestReg", ")", "&&", "\"Only GPR32 dest copy supported.\"", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARC", "::", "MOV_rr", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "}", ""], "natrual_language": ["}", "Branch", "Analysis", "&", "Modification"], "TS_V_token": ["ARC", "ARC", "ARC::GPR32RegClass", "\"Only GPR32 src copy supported.\"", "ARC::GPR32RegClass", "\"Only GPR32 dest copy supported.\"", "ARC::MOV_rr"], "File": "ARCInstrInfo4", "Func": "copyPhysReg", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28755, "Length": 87} {"ground_truth": ["", "unsigned", "ARCInstrInfo", "::", "insertBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "*", "TBB", ",", "MachineBasicBlock", "*", "FBB", ",", "ArrayRef", "<", "MachineOperand", ">", "Cond", ",", "const", "DebugLoc", "&", "DL", ",", "int", "*", "BytesAdded", ")", "const", "{", "assert", "(", "!", "BytesAdded", "&&", "\"Code size not handled.\"", ")", ";", "assert", "(", "TBB", "&&", "\"insertBranch must not be told to insert a fallthrough\"", ")", ";", "assert", "(", "(", "Cond", ".", "size", "(", ")", "==", "3", "||", "Cond", ".", "size", "(", ")", "==", "0", ")", "&&", "\"ARC branch conditions have two components!\"", ")", ";", "if", "(", "Cond", ".", "empty", "(", ")", ")", "{", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "ARC", "::", "BR", ")", ")", ".", "addMBB", "(", "TBB", ")", ";", "return", "1", ";", "}", "int", "BccOpc", "=", "Cond", "[", "1", "]", ".", "isImm", "(", ")", "?", "ARC", "::", "BRcc_ru6_p", ":", "ARC", "::", "BRcc_rr_p", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "BccOpc", ")", ")", ";", "MIB", ".", "addMBB", "(", "TBB", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "3", ";", "i", "++", ")", "{", "MIB", ".", "add", "(", "Cond", "[", "i", "]", ")", ";", "}", "if", "(", "!", "FBB", ")", "{", "return", "1", ";", "}", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "ARC", "::", "BR", ")", ")", ".", "addMBB", "(", "FBB", ")", ";", "return", "2", ";", "}", ""], "natrual_language": ["Insert", "branch", "code", "into", "the", "end", "of", "the", "specified", "MachineBasicBlock", "."], "TS_V_token": ["ARC", "ARC", "\"Code size not handled.\"", "\"insertBranch must not be told to insert a fallthrough\"", "3", "0", "\"ARC branch conditions have two components!\"", "ARC::BR", "1", "1", "ARC::BRcc_ru6_p", "ARC::BRcc_rr_p", "0", "3", "1", "ARC::BR", "2"], "File": "ARCInstrInfo4", "Func": "insertBranch", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28756, "Length": 208} {"ground_truth": ["", "MachineBasicBlock", "::", "iterator", "ARCInstrInfo", "::", "loadImmediate", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "unsigned", "Reg", ",", "uint64_t", "Value", ")", "const", "{", "DebugLoc", "DL", "=", "MBB", ".", "findDebugLoc", "(", "MI", ")", ";", "if", "(", "isInt", "<", "12", ">", "(", "Value", ")", ")", "{", "return", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "ARC", "::", "MOV_rs12", ")", ",", "Reg", ")", ".", "addImm", "(", "Value", ")", ".", "getInstr", "(", ")", ";", "}", "llvm_unreachable", "(", "\"Need Arc long immediate instructions.\"", ")", ";", "}", ""], "natrual_language": ["Emit", "a", "series", "of", "instructions", "to", "load", "an", "immediate", "."], "TS_V_token": ["ARC", "ARC", "12", "ARC::MOV_rs12", "\"Need Arc long immediate instructions.\""], "File": "ARCInstrInfo4", "Func": "loadImmediate", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28757, "Length": 80} {"ground_truth": ["", "void", "ARCInstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "Register", "DestReg", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", "=", "MBB", ".", "findDebugLoc", "(", "I", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FrameIndex", ")", ",", "MachineMemOperand", "::", "MOLoad", ",", "MFI", ".", "getObjectSize", "(", "FrameIndex", ")", ",", "MFI", ".", "getObjectAlign", "(", "FrameIndex", ")", ")", ";", "assert", "(", "MMO", "&&", "\"Couldn't get MachineMemOperand for store to stack.\"", ")", ";", "assert", "(", "TRI", "->", "getSpillSize", "(", "*", "RC", ")", "==", "4", "&&", "\"Only support 4-byte loads from stack now.\"", ")", ";", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "hasSubClassEq", "(", "RC", ")", "&&", "\"Only support GPR32 stores to stack now.\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Created load reg=\"", "<<", "printReg", "(", "DestReg", ",", "TRI", ")", "<<", "\" from FrameIndex=\"", "<<", "FrameIndex", "<<", "\"\\n\"", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARC", "::", "LD_rs9", ")", ")", ".", "addReg", "(", "DestReg", ",", "RegState", "::", "Define", ")", ".", "addFrameIndex", "(", "FrameIndex", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARC", "ARC", "\"Couldn't get MachineMemOperand for store to stack.\"", "4", "\"Only support 4-byte loads from stack now.\"", "ARC::GPR32RegClass", "\"Only support GPR32 stores to stack now.\"", "\"Created load reg=\"", "\" from FrameIndex=\"", "\"\\n\"", "ARC::LD_rs9", "0"], "File": "ARCInstrInfo4", "Func": "loadRegFromStackSlot", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28758, "Length": 198} {"ground_truth": ["", "bool", "ARCInstrInfo", "::", "reverseBranchCondition", "(", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Cond", ")", "const", "{", "assert", "(", "(", "Cond", ".", "size", "(", ")", "==", "3", ")", "&&", "\"Invalid ARC branch condition!\"", ")", ";", "Cond", "[", "2", "]", ".", "setImm", "(", "getOppositeBranchCondition", "(", "(", "ARCCC", "::", "CondCode", ")", "Cond", "[", "2", "]", ".", "getImm", "(", ")", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["Reverses", "the", "branch", "condition", "of", "the", "specified", "condition", "list", ",", "returning", "false", "on", "success", "and", "true", "if", "it", "can", "not", "be", "reversed", "."], "TS_V_token": ["ARC", "ARC", "3", "\"Invalid ARC branch condition!\"", "2", "ARCCC::CondCode", "2"], "File": "ARCInstrInfo4", "Func": "reverseBranchCondition", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28759, "Length": 58} {"ground_truth": ["", "void", "ARCInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "Register", "SrcReg", ",", "bool", "IsKill", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", "=", "MBB", ".", "findDebugLoc", "(", "I", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FrameIndex", ")", ",", "MachineMemOperand", "::", "MOStore", ",", "MFI", ".", "getObjectSize", "(", "FrameIndex", ")", ",", "MFI", ".", "getObjectAlign", "(", "FrameIndex", ")", ")", ";", "assert", "(", "MMO", "&&", "\"Couldn't get MachineMemOperand for store to stack.\"", ")", ";", "assert", "(", "TRI", "->", "getSpillSize", "(", "*", "RC", ")", "==", "4", "&&", "\"Only support 4-byte stores to stack now.\"", ")", ";", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "hasSubClassEq", "(", "RC", ")", "&&", "\"Only support GPR32 stores to stack now.\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Created store reg=\"", "<<", "printReg", "(", "SrcReg", ",", "TRI", ")", "<<", "\" to FrameIndex=\"", "<<", "FrameIndex", "<<", "\"\\n\"", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARC", "::", "ST_rs9", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "IsKill", ")", ")", ".", "addFrameIndex", "(", "FrameIndex", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARC", "ARC", "\"Couldn't get MachineMemOperand for store to stack.\"", "4", "\"Only support 4-byte stores to stack now.\"", "ARC::GPR32RegClass", "\"Only support GPR32 stores to stack now.\"", "\"Created store reg=\"", "\" to FrameIndex=\"", "\"\\n\"", "ARC::ST_rs9", "0"], "File": "ARCInstrInfo4", "Func": "storeRegToStackSlot", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28760, "Length": 202} {"ground_truth": ["", "void", "ARCInstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "Register", "DestReg", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "dl", "=", "MBB", ".", "findDebugLoc", "(", "I", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FrameIndex", ")", ",", "MachineMemOperand", "::", "MOLoad", ",", "MFI", ".", "getObjectSize", "(", "FrameIndex", ")", ",", "MFI", ".", "getObjectAlign", "(", "FrameIndex", ")", ")", ";", "assert", "(", "MMO", "&&", "\"Couldn't get MachineMemOperand for store to stack.\"", ")", ";", "assert", "(", "TRI", "->", "getSpillSize", "(", "*", "RC", ")", "==", "4", "&&", "\"Only support 4-byte loads from stack now.\"", ")", ";", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "hasSubClassEq", "(", "RC", ")", "&&", "\"Only support GPR32 stores to stack now.\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Created load reg=\"", "<<", "printReg", "(", "DestReg", ",", "TRI", ")", "<<", "\" from FrameIndex=\"", "<<", "FrameIndex", "<<", "\"\\n\"", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "dl", ",", "get", "(", "ARC", "::", "LD_rs9", ")", ")", ".", "addReg", "(", "DestReg", ",", "RegState", "::", "Define", ")", ".", "addFrameIndex", "(", "FrameIndex", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARC", "ARC", "\"Couldn't get MachineMemOperand for store to stack.\"", "4", "\"Only support 4-byte loads from stack now.\"", "ARC::GPR32RegClass", "\"Only support GPR32 stores to stack now.\"", "\"Created load reg=\"", "\" from FrameIndex=\"", "\"\\n\"", "ARC::LD_rs9", "0"], "File": "ARCInstrInfo5", "Func": "loadRegFromStackSlot", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28761, "Length": 198} {"ground_truth": ["", "void", "ARCInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "Register", "SrcReg", ",", "bool", "isKill", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "dl", "=", "MBB", ".", "findDebugLoc", "(", "I", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FrameIndex", ")", ",", "MachineMemOperand", "::", "MOStore", ",", "MFI", ".", "getObjectSize", "(", "FrameIndex", ")", ",", "MFI", ".", "getObjectAlign", "(", "FrameIndex", ")", ")", ";", "assert", "(", "MMO", "&&", "\"Couldn't get MachineMemOperand for store to stack.\"", ")", ";", "assert", "(", "TRI", "->", "getSpillSize", "(", "*", "RC", ")", "==", "4", "&&", "\"Only support 4-byte stores to stack now.\"", ")", ";", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "hasSubClassEq", "(", "RC", ")", "&&", "\"Only support GPR32 stores to stack now.\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Created store reg=\"", "<<", "printReg", "(", "SrcReg", ",", "TRI", ")", "<<", "\" to FrameIndex=\"", "<<", "FrameIndex", "<<", "\"\\n\"", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "dl", ",", "get", "(", "ARC", "::", "ST_rs9", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addFrameIndex", "(", "FrameIndex", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARC", "ARC", "\"Couldn't get MachineMemOperand for store to stack.\"", "4", "\"Only support 4-byte stores to stack now.\"", "ARC::GPR32RegClass", "\"Only support GPR32 stores to stack now.\"", "\"Created store reg=\"", "\" to FrameIndex=\"", "\"\\n\"", "ARC::ST_rs9", "0"], "File": "ARCInstrInfo5", "Func": "storeRegToStackSlot", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28762, "Length": 202} {"ground_truth": ["", "bool", "ARCInstrInfo", "::", "analyzeBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "*", "&", "TBB", ",", "MachineBasicBlock", "*", "&", "FBB", ",", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Cond", ",", "bool", "AllowModify", ")", "const", "{", "TBB", "=", "FBB", "=", "nullptr", ";", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "end", "(", ")", ";", "if", "(", "I", "==", "MBB", ".", "begin", "(", ")", ")", "return", "false", ";", "--", "I", ";", "while", "(", "isPredicated", "(", "*", "I", ")", "||", "I", "->", "isTerminator", "(", ")", "||", "I", "->", "isDebugValue", "(", ")", ")", "{", "bool", "CantAnalyze", "=", "false", ";", "while", "(", "I", "->", "isDebugInstr", "(", ")", "||", "!", "I", "->", "isTerminator", "(", ")", ")", "{", "if", "(", "I", "==", "MBB", ".", "begin", "(", ")", ")", "return", "false", ";", "--", "I", ";", "}", "if", "(", "isJumpOpcode", "(", "I", "->", "getOpcode", "(", ")", ")", ")", "{", "CantAnalyze", "=", "true", ";", "}", "else", "if", "(", "isUncondBranchOpcode", "(", "I", "->", "getOpcode", "(", ")", ")", ")", "{", "TBB", "=", "I", "->", "getOperand", "(", "0", ")", ".", "getMBB", "(", ")", ";", "}", "else", "if", "(", "isCondBranchOpcode", "(", "I", "->", "getOpcode", "(", ")", ")", ")", "{", "if", "(", "!", "Cond", ".", "empty", "(", ")", ")", "return", "true", ";", "assert", "(", "!", "FBB", "&&", "\"FBB should have been null.\"", ")", ";", "FBB", "=", "TBB", ";", "TBB", "=", "I", "->", "getOperand", "(", "0", ")", ".", "getMBB", "(", ")", ";", "Cond", ".", "push_back", "(", "I", "->", "getOperand", "(", "1", ")", ")", ";", "Cond", ".", "push_back", "(", "I", "->", "getOperand", "(", "2", ")", ")", ";", "Cond", ".", "push_back", "(", "I", "->", "getOperand", "(", "3", ")", ")", ";", "}", "else", "if", "(", "I", "->", "isReturn", "(", ")", ")", "{", "CantAnalyze", "=", "!", "isPredicated", "(", "*", "I", ")", ";", "}", "else", "{", "return", "true", ";", "}", "if", "(", "!", "isPredicated", "(", "*", "I", ")", "&&", "(", "isUncondBranchOpcode", "(", "I", "->", "getOpcode", "(", ")", ")", "||", "isJumpOpcode", "(", "I", "->", "getOpcode", "(", ")", ")", "||", "I", "->", "isReturn", "(", ")", ")", ")", "{", "Cond", ".", "clear", "(", ")", ";", "FBB", "=", "nullptr", ";", "if", "(", "AllowModify", ")", "{", "MachineBasicBlock", "::", "iterator", "DI", "=", "std", "::", "next", "(", "I", ")", ";", "while", "(", "DI", "!=", "MBB", ".", "end", "(", ")", ")", "{", "MachineInstr", "&", "InstToDelete", "=", "*", "DI", ";", "++", "DI", ";", "InstToDelete", ".", "eraseFromParent", "(", ")", ";", "}", "}", "}", "if", "(", "CantAnalyze", ")", "return", "true", ";", "if", "(", "I", "==", "MBB", ".", "begin", "(", ")", ")", "return", "false", ";", "--", "I", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["analyzeBranch", "-", "Analyze", "the", "branching", "code", "at", "the", "end", "of", "MBB", ",", "returning", "true", "if", "it", "can", "not", "be", "understood", "(", "e.g", "."], "TS_V_token": ["ARC", "ARC", "0", "\"FBB should have been null.\"", "0", "1", "2", "3"], "File": "ARCInstrInfo", "Func": "analyzeBranch", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28763, "Length": 401} {"ground_truth": ["", "void", "ARCInstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "const", "DebugLoc", "&", "dl", ",", "unsigned", "DestReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "contains", "(", "SrcReg", ")", "&&", "\"Only GPR32 src copy supported.\"", ")", ";", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "contains", "(", "DestReg", ")", "&&", "\"Only GPR32 dest copy supported.\"", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "dl", ",", "get", "(", "ARC", "::", "MOV_rr", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "}", ""], "natrual_language": ["}", "Branch", "Analysis", "&", "Modification"], "TS_V_token": ["ARC", "ARC", "ARC::GPR32RegClass", "\"Only GPR32 src copy supported.\"", "ARC::GPR32RegClass", "\"Only GPR32 dest copy supported.\"", "ARC::MOV_rr"], "File": "ARCInstrInfo", "Func": "copyPhysReg", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28764, "Length": 87} {"ground_truth": ["", "unsigned", "ARCInstrInfo", "::", "getInstSizeInBytes", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "TargetOpcode", "::", "INLINEASM", ")", "{", "const", "MachineFunction", "*", "MF", "=", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "char", "*", "AsmStr", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getSymbolName", "(", ")", ";", "return", "getInlineAsmLength", "(", "AsmStr", ",", "*", "MF", "->", "getTarget", "(", ")", ".", "getMCAsmInfo", "(", ")", ")", ";", "}", "return", "MI", ".", "getDesc", "(", ")", ".", "getSize", "(", ")", ";", "}", ""], "natrual_language": ["Returns", "the", "size", "in", "bytes", "of", "the", "specified", "MachineInstr", ",", "or", "~0U", "when", "this", "function", "is", "not", "implemented", "by", "a", "target", "."], "TS_V_token": ["ARC", "ARC", "0"], "File": "ARCInstrInfo", "Func": "getInstSizeInBytes", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28765, "Length": 86} {"ground_truth": ["", "const", "ARCRegisterInfo", "&", "getRegisterInfo", "(", ")", "const", "{", "return", "RI", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["ARC", "ARC"], "File": "ARCInstrInfo", "Func": "getRegisterInfo", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28766, "Length": 12} {"ground_truth": ["", "unsigned", "ARCInstrInfo", "::", "insertBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "*", "TBB", ",", "MachineBasicBlock", "*", "FBB", ",", "ArrayRef", "<", "MachineOperand", ">", "Cond", ",", "const", "DebugLoc", "&", "dl", ",", "int", "*", "BytesAdded", ")", "const", "{", "assert", "(", "!", "BytesAdded", "&&", "\"Code size not handled.\"", ")", ";", "assert", "(", "TBB", "&&", "\"InsertBranch must not be told to insert a fallthrough\"", ")", ";", "assert", "(", "(", "Cond", ".", "size", "(", ")", "==", "3", "||", "Cond", ".", "size", "(", ")", "==", "0", ")", "&&", "\"ARC branch conditions have two components!\"", ")", ";", "if", "(", "Cond", ".", "empty", "(", ")", ")", "{", "BuildMI", "(", "&", "MBB", ",", "dl", ",", "get", "(", "ARC", "::", "BR", ")", ")", ".", "addMBB", "(", "TBB", ")", ";", "return", "1", ";", "}", "int", "BccOpc", "=", "Cond", "[", "1", "]", ".", "isImm", "(", ")", "?", "ARC", "::", "BRcc_ru6_p", ":", "ARC", "::", "BRcc_rr_p", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "&", "MBB", ",", "dl", ",", "get", "(", "BccOpc", ")", ")", ";", "MIB", ".", "addMBB", "(", "TBB", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "3", ";", "i", "++", ")", "{", "MIB", ".", "add", "(", "Cond", "[", "i", "]", ")", ";", "}", "if", "(", "!", "FBB", ")", "{", "return", "1", ";", "}", "BuildMI", "(", "&", "MBB", ",", "dl", ",", "get", "(", "ARC", "::", "BR", ")", ")", ".", "addMBB", "(", "FBB", ")", ";", "return", "2", ";", "}", ""], "natrual_language": ["Insert", "branch", "code", "into", "the", "end", "of", "the", "specified", "MachineBasicBlock", "."], "TS_V_token": ["ARC", "ARC", "\"Code size not handled.\"", "\"InsertBranch must not be told to insert a fallthrough\"", "3", "0", "\"ARC branch conditions have two components!\"", "ARC::BR", "1", "1", "ARC::BRcc_ru6_p", "ARC::BRcc_rr_p", "0", "3", "1", "ARC::BR", "2"], "File": "ARCInstrInfo", "Func": "insertBranch", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28767, "Length": 208} {"ground_truth": ["", "unsigned", "ARCInstrInfo", "::", "isLoadFromStackSlot", "(", "const", "MachineInstr", "&", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "int", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "if", "(", "isLoad", "(", "Opcode", ")", ")", "{", "if", "(", "(", "MI", ".", "getOperand", "(", "1", ")", ".", "isFI", "(", ")", ")", "&&", "(", "MI", ".", "getOperand", "(", "2", ")", ".", "isImm", "(", ")", ")", "&&", "(", "isZeroImm", "(", "MI", ".", "getOperand", "(", "2", ")", ")", ")", ")", "{", "FrameIndex", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getIndex", "(", ")", ";", "return", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "}", "}", "return", "0", ";", "}", ""], "natrual_language": ["isLoadFromStackSlot", "-", "If", "the", "specified", "machine", "instruction", "is", "a", "direct", "load", "from", "a", "stack", "slot", ",", "return", "the", "virtual", "or", "physical", "register", "number", "of", "the", "destination", "along", "with", "the", "FrameIndex", "of", "the", "loaded", "stack", "slot", "."], "TS_V_token": ["ARC", "ARC", "1", "2", "2", "1", "0", "0"], "File": "ARCInstrInfo", "Func": "isLoadFromStackSlot", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28768, "Length": 105} {"ground_truth": ["", "static", "bool", "isStore", "(", "int", "Opcode", ")", "{", "return", "Opcode", "==", "ARC", "::", "ST_rs9", "||", "Opcode", "==", "ARC", "::", "STH_rs9", "||", "Opcode", "==", "ARC", "::", "STB_rs9", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "this", "recipe", "is", "a", "store", "."], "TS_V_token": ["ARC", "ARC::ST_rs9", "ARC::STH_rs9", "ARC::STB_rs9"], "File": "ARCInstrInfo", "Func": "isStore", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28769, "Length": 28} {"ground_truth": ["", "unsigned", "ARCInstrInfo", "::", "isStoreToStackSlot", "(", "const", "MachineInstr", "&", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "int", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "if", "(", "isStore", "(", "Opcode", ")", ")", "{", "if", "(", "(", "MI", ".", "getOperand", "(", "1", ")", ".", "isFI", "(", ")", ")", "&&", "(", "MI", ".", "getOperand", "(", "2", ")", ".", "isImm", "(", ")", ")", "&&", "(", "isZeroImm", "(", "MI", ".", "getOperand", "(", "2", ")", ")", ")", ")", "{", "FrameIndex", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getIndex", "(", ")", ";", "return", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "}", "}", "return", "0", ";", "}", ""], "natrual_language": ["isStoreToStackSlot", "-", "If", "the", "specified", "machine", "instruction", "is", "a", "direct", "store", "to", "a", "stack", "slot", ",", "return", "the", "virtual", "or", "physical", "register", "number", "of", "the", "source", "reg", "along", "with", "the", "FrameIndex", "of", "the", "loaded", "stack", "slot", "."], "TS_V_token": ["ARC", "ARC", "1", "2", "2", "1", "0", "0"], "File": "ARCInstrInfo", "Func": "isStoreToStackSlot", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28770, "Length": 105} {"ground_truth": ["", "MachineBasicBlock", "::", "iterator", "ARCInstrInfo", "::", "loadImmediate", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "unsigned", "Reg", ",", "uint64_t", "Value", ")", "const", "{", "DebugLoc", "dl", "=", "MBB", ".", "findDebugLoc", "(", "MI", ")", ";", "if", "(", "isInt", "<", "12", ">", "(", "Value", ")", ")", "{", "return", "BuildMI", "(", "MBB", ",", "MI", ",", "dl", ",", "get", "(", "ARC", "::", "MOV_rs12", ")", ",", "Reg", ")", ".", "addImm", "(", "Value", ")", ".", "getInstr", "(", ")", ";", "}", "llvm_unreachable", "(", "\"Need Arc long immediate instructions.\"", ")", ";", "}", ""], "natrual_language": ["Emit", "a", "series", "of", "instructions", "to", "load", "an", "immediate", "."], "TS_V_token": ["ARC", "ARC", "12", "ARC::MOV_rs12", "\"Need Arc long immediate instructions.\""], "File": "ARCInstrInfo", "Func": "loadImmediate", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28771, "Length": 80} {"ground_truth": ["", "void", "ARCInstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "DestReg", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "dl", "=", "MBB", ".", "findDebugLoc", "(", "I", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "unsigned", "Align", "=", "MFI", ".", "getObjectAlignment", "(", "FrameIndex", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FrameIndex", ")", ",", "MachineMemOperand", "::", "MOLoad", ",", "MFI", ".", "getObjectSize", "(", "FrameIndex", ")", ",", "Align", ")", ";", "assert", "(", "MMO", "&&", "\"Couldn't get MachineMemOperand for store to stack.\"", ")", ";", "assert", "(", "TRI", "->", "getSpillSize", "(", "*", "RC", ")", "==", "4", "&&", "\"Only support 4-byte loads from stack now.\"", ")", ";", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "hasSubClassEq", "(", "RC", ")", "&&", "\"Only support GPR32 stores to stack now.\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Created load reg=\"", "<<", "printReg", "(", "DestReg", ",", "TRI", ")", "<<", "\" from FrameIndex=\"", "<<", "FrameIndex", "<<", "\"\\n\"", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "dl", ",", "get", "(", "ARC", "::", "LD_rs9", ")", ")", ".", "addReg", "(", "DestReg", ",", "RegState", "::", "Define", ")", ".", "addFrameIndex", "(", "FrameIndex", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARC", "ARC", "\"Couldn't get MachineMemOperand for store to stack.\"", "4", "\"Only support 4-byte loads from stack now.\"", "ARC::GPR32RegClass", "\"Only support GPR32 stores to stack now.\"", "\"Created load reg=\"", "\" from FrameIndex=\"", "\"\\n\"", "ARC::LD_rs9", "0"], "File": "ARCInstrInfo", "Func": "loadRegFromStackSlot", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28772, "Length": 203} {"ground_truth": ["", "unsigned", "ARCInstrInfo", "::", "removeBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "int", "*", "BytesRemoved", ")", "const", "{", "assert", "(", "!", "BytesRemoved", "&&", "\"Code size not handled\"", ")", ";", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "getLastNonDebugInstr", "(", ")", ";", "if", "(", "I", "==", "MBB", ".", "end", "(", ")", ")", "return", "0", ";", "if", "(", "!", "isUncondBranchOpcode", "(", "I", "->", "getOpcode", "(", ")", ")", "&&", "!", "isCondBranchOpcode", "(", "I", "->", "getOpcode", "(", ")", ")", ")", "return", "0", ";", "I", "->", "eraseFromParent", "(", ")", ";", "I", "=", "MBB", ".", "end", "(", ")", ";", "if", "(", "I", "==", "MBB", ".", "begin", "(", ")", ")", "return", "1", ";", "--", "I", ";", "if", "(", "!", "isCondBranchOpcode", "(", "I", "->", "getOpcode", "(", ")", ")", ")", "return", "1", ";", "I", "->", "eraseFromParent", "(", ")", ";", "return", "2", ";", "}", ""], "natrual_language": ["Remove", "the", "branching", "code", "at", "the", "end", "of", "the", "specific", "MBB", "."], "TS_V_token": ["ARC", "ARC", "\"Code size not handled\"", "0", "0", "1", "1", "2"], "File": "ARCInstrInfo", "Func": "removeBranch", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28773, "Length": 127} {"ground_truth": ["", "bool", "ARCInstrInfo", "::", "reverseBranchCondition", "(", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Cond", ")", "const", "{", "assert", "(", "(", "Cond", ".", "size", "(", ")", "==", "3", ")", "&&", "\"Invalid ARC branch condition!\"", ")", ";", "Cond", "[", "2", "]", ".", "setImm", "(", "GetOppositeBranchCondition", "(", "(", "ARCCC", "::", "CondCode", ")", "Cond", "[", "2", "]", ".", "getImm", "(", ")", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["Reverses", "the", "branch", "condition", "of", "the", "specified", "condition", "list", ",", "returning", "false", "on", "success", "and", "true", "if", "it", "can", "not", "be", "reversed", "."], "TS_V_token": ["ARC", "ARC", "3", "\"Invalid ARC branch condition!\"", "2", "ARCCC::CondCode", "2"], "File": "ARCInstrInfo", "Func": "reverseBranchCondition", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28774, "Length": 58} {"ground_truth": ["", "void", "ARCInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "dl", "=", "MBB", ".", "findDebugLoc", "(", "I", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "unsigned", "Align", "=", "MFI", ".", "getObjectAlignment", "(", "FrameIndex", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FrameIndex", ")", ",", "MachineMemOperand", "::", "MOStore", ",", "MFI", ".", "getObjectSize", "(", "FrameIndex", ")", ",", "Align", ")", ";", "assert", "(", "MMO", "&&", "\"Couldn't get MachineMemOperand for store to stack.\"", ")", ";", "assert", "(", "TRI", "->", "getSpillSize", "(", "*", "RC", ")", "==", "4", "&&", "\"Only support 4-byte stores to stack now.\"", ")", ";", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "hasSubClassEq", "(", "RC", ")", "&&", "\"Only support GPR32 stores to stack now.\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Created store reg=\"", "<<", "printReg", "(", "SrcReg", ",", "TRI", ")", "<<", "\" to FrameIndex=\"", "<<", "FrameIndex", "<<", "\"\\n\"", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "dl", ",", "get", "(", "ARC", "::", "ST_rs9", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addFrameIndex", "(", "FrameIndex", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARC", "ARC", "\"Couldn't get MachineMemOperand for store to stack.\"", "4", "\"Only support 4-byte stores to stack now.\"", "ARC::GPR32RegClass", "\"Only support GPR32 stores to stack now.\"", "\"Created store reg=\"", "\" to FrameIndex=\"", "\"\\n\"", "ARC::ST_rs9", "0"], "File": "ARCInstrInfo", "Func": "storeRegToStackSlot", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28775, "Length": 207} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"ARC DAG->DAG Pattern Instruction Selection\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["ARC", "\"ARC DAG->DAG Pattern Instruction Selection\""], "File": "ARCISelDAGToDAG", "Func": "getPassName", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28776, "Length": 11} {"ground_truth": ["", "void", "ARCDAGToDAGISel", "::", "Select", "(", "SDNode", "*", "N", ")", "{", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "case", "ISD", "::", "Constant", ":", "{", "uint64_t", "CVal", "=", "cast", "<", "ConstantSDNode", ">", "(", "N", ")", "->", "getZExtValue", "(", ")", ";", "ReplaceNode", "(", "N", ",", "CurDAG", "->", "getMachineNode", "(", "isInt", "<", "12", ">", "(", "CVal", ")", "?", "ARC", "::", "MOV_rs12", ":", "ARC", "::", "MOV_rlimm", ",", "SDLoc", "(", "N", ")", ",", "MVT", "::", "i32", ",", "CurDAG", "->", "getTargetConstant", "(", "CVal", ",", "SDLoc", "(", "N", ")", ",", "MVT", "::", "i32", ")", ")", ")", ";", "return", ";", "}", "}", "SelectCode", "(", "N", ")", ";", "}", ""], "natrual_language": ["Main", "hook", "for", "targets", "to", "transform", "nodes", "into", "machine", "nodes", "."], "TS_V_token": ["ARC", "ARC", "ISD::Constant", "12", "ARC::MOV_rs12", "ARC::MOV_rlimm", "MVT::i32", "MVT::i32"], "File": "ARCISelDAGToDAG", "Func": "Select", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28777, "Length": 101} {"ground_truth": ["", "SDValue", "ARCTargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", ",", "const", "SDLoc", "&", "dl", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "auto", "*", "AFI", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getInfo", "<", "ARCFunctionInfo", ">", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getFrameInfo", "(", ")", ";", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "if", "(", "!", "IsVarArg", ")", "CCInfo", ".", "AllocateStack", "(", "AFI", "->", "getReturnStackOffset", "(", ")", ",", "Align", "(", "4", ")", ")", ";", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_ARC", ")", ";", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", "(", "1", ",", "Chain", ")", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "MemOpChains", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RVLocs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "if", "(", "VA", ".", "isRegLoc", "(", ")", ")", "continue", ";", "assert", "(", "VA", ".", "isMemLoc", "(", ")", ")", ";", "if", "(", "IsVarArg", ")", "{", "report_fatal_error", "(", "\"Can't return value from vararg function in memory\"", ")", ";", "}", "int", "Offset", "=", "VA", ".", "getLocMemOffset", "(", ")", ";", "unsigned", "ObjSize", "=", "VA", ".", "getLocVT", "(", ")", ".", "getStoreSize", "(", ")", ";", "int", "FI", "=", "MFI", ".", "CreateFixedObject", "(", "ObjSize", ",", "Offset", ",", "false", ")", ";", "SDValue", "FIN", "=", "DAG", ".", "getFrameIndex", "(", "FI", ",", "MVT", "::", "i32", ")", ";", "MemOpChains", ".", "push_back", "(", "DAG", ".", "getStore", "(", "Chain", ",", "dl", ",", "OutVals", "[", "i", "]", ",", "FIN", ",", "MachinePointerInfo", "::", "getFixedStack", "(", "DAG", ".", "getMachineFunction", "(", ")", ",", "FI", ")", ")", ")", ";", "}", "if", "(", "!", "MemOpChains", ".", "empty", "(", ")", ")", "Chain", "=", "DAG", ".", "getNode", "(", "ISD", "::", "TokenFactor", ",", "dl", ",", "MVT", "::", "Other", ",", "MemOpChains", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RVLocs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "if", "(", "!", "VA", ".", "isRegLoc", "(", ")", ")", "continue", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "dl", ",", "VA", ".", "getLocReg", "(", ")", ",", "OutVals", "[", "i", "]", ",", "Flag", ")", ";", "Flag", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "RetOps", "[", "0", "]", "=", "Chain", ";", "if", "(", "Flag", ".", "getNode", "(", ")", ")", "RetOps", ".", "push_back", "(", "Flag", ")", ";", "return", "DAG", ".", "getNode", "(", "ARCISD", "::", "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": ["ARC", "ARC", "ISD::OutputArg", "ARC", "16", "4", "ARC", "4", "1", "4", "0", "\"Can't return value from vararg function in memory\"", "MVT::i32", "ISD::TokenFactor", "MVT::Other", "0", "1", "0", "ARCISD::RET", "MVT::Other"], "File": "ARCISelLowering15", "Func": "LowerReturn", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28778, "Length": 476} {"ground_truth": ["", "SDValue", "ARCTargetLowering", "::", "LowerOperation", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "case", "ISD", "::", "GlobalAddress", ":", "return", "LowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "FRAMEADDR", ":", "return", "LowerFRAMEADDR", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SELECT_CC", ":", "return", "LowerSELECT_CC", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BR_CC", ":", "return", "LowerBR_CC", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SIGN_EXTEND_INREG", ":", "return", "LowerSIGN_EXTEND_INREG", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "JumpTable", ":", "return", "LowerJumpTable", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "VASTART", ":", "return", "LowerVASTART", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "READCYCLECOUNTER", ":", "assert", "(", "Op", ".", "getSimpleValueType", "(", ")", "==", "MVT", "::", "i32", ")", ";", "return", "Op", ";", "default", ":", "llvm_unreachable", "(", "\"unimplemented operand\"", ")", ";", "}", "}", ""], "natrual_language": ["LowerOperation", "-", "Provide", "custom", "lowering", "hooks", "for", "some", "operations", "."], "TS_V_token": ["ARC", "ARC", "ISD::GlobalAddress", "ISD::FRAMEADDR", "ISD::SELECT_CC", "ISD::BR_CC", "ISD::SIGN_EXTEND_INREG", "ISD::JumpTable", "ISD::VASTART", "ISD::READCYCLECOUNTER", "MVT::i32", "\"unimplemented operand\""], "File": "ARCISelLowering3", "Func": "LowerOperation", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28779, "Length": 144} {"ground_truth": ["", "void", "ARCTargetLowering", "::", "ReplaceNodeResults", "(", "SDNode", "*", "N", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "Results", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"[ARC-ISEL] ReplaceNodeResults \"", ")", ";", "LLVM_DEBUG", "(", "N", "->", "dump", "(", "&", "DAG", ")", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"; use_count=\"", "<<", "N", "->", "use_size", "(", ")", "<<", "\"\\n\"", ")", ";", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "case", "ISD", "::", "READCYCLECOUNTER", ":", "if", "(", "N", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i64", ")", "{", "SDValue", "V", "=", "DAG", ".", "getNode", "(", "ISD", "::", "READCYCLECOUNTER", ",", "SDLoc", "(", "N", ")", ",", "DAG", ".", "getVTList", "(", "MVT", "::", "i32", ",", "MVT", "::", "Other", ")", ",", "N", "->", "getOperand", "(", "0", ")", ")", ";", "SDValue", "Op", "=", "DAG", ".", "getNode", "(", "ISD", "::", "ZERO_EXTEND", ",", "SDLoc", "(", "N", ")", ",", "MVT", "::", "i64", ",", "V", ")", ";", "Results", ".", "push_back", "(", "Op", ")", ";", "Results", ".", "push_back", "(", "V", ".", "getValue", "(", "1", ")", ")", ";", "}", "break", ";", "default", ":", "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": ["ARC", "ARC", "\"[ARC-ISEL] ReplaceNodeResults \"", "\"; use_count=\"", "\"\\n\"", "ISD::READCYCLECOUNTER", "0", "MVT::i64", "ISD::READCYCLECOUNTER", "MVT::i32", "MVT::Other", "0", "ISD::ZERO_EXTEND", "MVT::i64", "1"], "File": "ARCISelLowering3", "Func": "ReplaceNodeResults", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28780, "Length": 175} {"ground_truth": ["", "bool", "ARCTargetLowering", "::", "CanLowerReturn", "(", "CallingConv", "::", "ID", "CallConv", ",", "MachineFunction", "&", "MF", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "LLVMContext", "&", "Context", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "MF", ",", "RVLocs", ",", "Context", ")", ";", "if", "(", "!", "CCInfo", ".", "CheckReturn", "(", "Outs", ",", "RetCC_ARC", ")", ")", "return", "false", ";", "if", "(", "CCInfo", ".", "getNextStackOffset", "(", ")", "!=", "0", "&&", "IsVarArg", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "hook", "should", "be", "implemented", "to", "check", "whether", "the", "return", "values", "described", "by", "the", "Outs", "array", "can", "fit", "into", "the", "return", "registers", "."], "TS_V_token": ["ARC", "ARC", "ISD::OutputArg", "16", "ARC", "0"], "File": "ARCISelLowering", "Func": "CanLowerReturn", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28781, "Length": 89} {"ground_truth": ["", "const", "char", "*", "ARCTargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "Opcode", ")", "{", "case", "ARCISD", "::", "BL", ":", "return", "\"ARCISD::BL\"", ";", "case", "ARCISD", "::", "CMOV", ":", "return", "\"ARCISD::CMOV\"", ";", "case", "ARCISD", "::", "CMP", ":", "return", "\"ARCISD::CMP\"", ";", "case", "ARCISD", "::", "BRcc", ":", "return", "\"ARCISD::BRcc\"", ";", "case", "ARCISD", "::", "RET", ":", "return", "\"ARCISD::RET\"", ";", "case", "ARCISD", "::", "GAWRAPPER", ":", "return", "\"ARCISD::GAWRAPPER\"", ";", "}", "return", "nullptr", ";", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["ARC", "ARC", "ARCISD::BL", "\"ARCISD::BL\"", "ARCISD::CMOV", "\"ARCISD::CMOV\"", "ARCISD::CMP", "\"ARCISD::CMP\"", "ARCISD::BRcc", "\"ARCISD::BRcc\"", "ARCISD::RET", "\"ARCISD::RET\"", "ARCISD::GAWRAPPER", "\"ARCISD::GAWRAPPER\""], "File": "ARCISelLowering", "Func": "getTargetNodeName", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28782, "Length": 70} {"ground_truth": ["", "bool", "ARCTargetLowering", "::", "isLegalAddressingMode", "(", "const", "DataLayout", "&", "DL", ",", "const", "AddrMode", "&", "AM", ",", "Type", "*", "Ty", ",", "unsigned", "AS", ",", "Instruction", "*", "I", ")", "const", "{", "return", "AM", ".", "Scale", "==", "0", ";", "}", ""], "natrual_language": ["isLegalAddressingMode", "-", "Return", "true", "if", "the", "addressing", "mode", "represented", "by", "AM", "is", "legal", "for", "this", "target", ",", "for", "a", "load/store", "of", "the", "specified", "type", "."], "TS_V_token": ["ARC", "ARC", "0"], "File": "ARCISelLowering", "Func": "isLegalAddressingMode", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28783, "Length": 36} {"ground_truth": ["", "SDValue", "ARCTargetLowering", "::", "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", ":", "llvm_unreachable", "(", "\"Unsupported calling convention\"", ")", ";", "case", "CallingConv", "::", "C", ":", "case", "CallingConv", "::", "Fast", ":", "return", "LowerCallArguments", "(", "Chain", ",", "CallConv", ",", "IsVarArg", ",", "Ins", ",", "dl", ",", "DAG", ",", "InVals", ")", ";", "}", "}", ""], "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": ["ARC", "ARC", "ISD::InputArg", "\"Unsupported calling convention\""], "File": "ARCISelLowering", "Func": "LowerFormalArguments", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28784, "Length": 86} {"ground_truth": ["", "SDValue", "ARCTargetLowering", "::", "LowerOperation", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "case", "ISD", "::", "GlobalAddress", ":", "return", "LowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "FRAMEADDR", ":", "return", "LowerFRAMEADDR", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SELECT_CC", ":", "return", "LowerSELECT_CC", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BR_CC", ":", "return", "LowerBR_CC", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SIGN_EXTEND_INREG", ":", "return", "LowerSIGN_EXTEND_INREG", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "JumpTable", ":", "return", "LowerJumpTable", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "VASTART", ":", "return", "LowerVASTART", "(", "Op", ",", "DAG", ")", ";", "default", ":", "llvm_unreachable", "(", "\"unimplemented operand\"", ")", ";", "}", "}", ""], "natrual_language": ["LowerOperation", "-", "Provide", "custom", "lowering", "hooks", "for", "some", "operations", "."], "TS_V_token": ["ARC", "ARC", "ISD::GlobalAddress", "ISD::FRAMEADDR", "ISD::SELECT_CC", "ISD::BR_CC", "ISD::SIGN_EXTEND_INREG", "ISD::JumpTable", "ISD::VASTART", "\"unimplemented operand\""], "File": "ARCISelLowering", "Func": "LowerOperation", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28785, "Length": 123} {"ground_truth": ["", "SDValue", "ARCTargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", ",", "const", "SDLoc", "&", "dl", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "auto", "*", "AFI", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getInfo", "<", "ARCFunctionInfo", ">", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getFrameInfo", "(", ")", ";", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "if", "(", "!", "IsVarArg", ")", "CCInfo", ".", "AllocateStack", "(", "AFI", "->", "getReturnStackOffset", "(", ")", ",", "4", ")", ";", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_ARC", ")", ";", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", "(", "1", ",", "Chain", ")", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "MemOpChains", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RVLocs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "if", "(", "VA", ".", "isRegLoc", "(", ")", ")", "continue", ";", "assert", "(", "VA", ".", "isMemLoc", "(", ")", ")", ";", "if", "(", "IsVarArg", ")", "{", "report_fatal_error", "(", "\"Can't return value from vararg function in memory\"", ")", ";", "}", "int", "Offset", "=", "VA", ".", "getLocMemOffset", "(", ")", ";", "unsigned", "ObjSize", "=", "VA", ".", "getLocVT", "(", ")", ".", "getStoreSize", "(", ")", ";", "int", "FI", "=", "MFI", ".", "CreateFixedObject", "(", "ObjSize", ",", "Offset", ",", "false", ")", ";", "SDValue", "FIN", "=", "DAG", ".", "getFrameIndex", "(", "FI", ",", "MVT", "::", "i32", ")", ";", "MemOpChains", ".", "push_back", "(", "DAG", ".", "getStore", "(", "Chain", ",", "dl", ",", "OutVals", "[", "i", "]", ",", "FIN", ",", "MachinePointerInfo", "::", "getFixedStack", "(", "DAG", ".", "getMachineFunction", "(", ")", ",", "FI", ")", ")", ")", ";", "}", "if", "(", "!", "MemOpChains", ".", "empty", "(", ")", ")", "Chain", "=", "DAG", ".", "getNode", "(", "ISD", "::", "TokenFactor", ",", "dl", ",", "MVT", "::", "Other", ",", "MemOpChains", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RVLocs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "if", "(", "!", "VA", ".", "isRegLoc", "(", ")", ")", "continue", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "dl", ",", "VA", ".", "getLocReg", "(", ")", ",", "OutVals", "[", "i", "]", ",", "Flag", ")", ";", "Flag", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "RetOps", "[", "0", "]", "=", "Chain", ";", "if", "(", "Flag", ".", "getNode", "(", ")", ")", "RetOps", ".", "push_back", "(", "Flag", ")", ";", "return", "DAG", ".", "getNode", "(", "ARCISD", "::", "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": ["ARC", "ARC", "ISD::OutputArg", "ARC", "16", "4", "ARC", "4", "1", "4", "0", "\"Can't return value from vararg function in memory\"", "MVT::i32", "ISD::TokenFactor", "MVT::Other", "0", "1", "0", "ARCISD::RET", "MVT::Other"], "File": "ARCISelLowering", "Func": "LowerReturn", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28786, "Length": 473} {"ground_truth": ["", "bool", "ARCTargetLowering", "::", "mayBeEmittedAsTailCall", "(", "const", "CallInst", "*", "CI", ")", "const", "{", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "may", "be", "able", "emit", "the", "call", "instruction", "as", "a", "tail", "call", "."], "TS_V_token": ["ARC", "ARC"], "File": "ARCISelLowering", "Func": "mayBeEmittedAsTailCall", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28787, "Length": 16} {"ground_truth": ["", "SDValue", "ARCTargetLowering", "::", "PerformDAGCombine", "(", "SDNode", "*", "N", ",", "DAGCombinerInfo", "&", "DCI", ")", "const", "{", "return", "{", "}", ";", "}", ""], "natrual_language": ["This", "method", "will", "be", "invoked", "for", "all", "target", "nodes", "and", "for", "any", "target-independent", "nodes", "that", "the", "target", "has", "registered", "with", "invoke", "it", "for", "."], "TS_V_token": ["ARC", "ARC"], "File": "ARCISelLowering", "Func": "PerformDAGCombine", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28788, "Length": 20} {"ground_truth": ["", "bool", "ARCOptAddrMode", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", "||", "KILL_PASS", "(", ")", ")", "return", "false", ";", "if", "(", "DUMP_BEFORE", "(", ")", ")", "MF", ".", "dump", "(", ")", ";", "if", "(", "VIEW_BEFORE", "(", ")", ")", "MF", ".", "viewCFG", "(", ")", ";", "AST", "=", "&", "MF", ".", "getSubtarget", "<", "ARCSubtarget", ">", "(", ")", ";", "AII", "=", "AST", "->", "getInstrInfo", "(", ")", ";", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "MDT", "=", "&", "getAnalysis", "<", "MachineDominatorTree", ">", "(", ")", ";", "bool", "Changed", "=", "false", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "Changed", "|=", "processBasicBlock", "(", "MBB", ")", ";", "if", "(", "DUMP_AFTER", "(", ")", ")", "MF", ".", "dump", "(", ")", ";", "if", "(", "VIEW_AFTER", "(", ")", ")", "MF", ".", "viewCFG", "(", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARC", "ARC", "ARC"], "File": "ARCOptAddrMode1", "Func": "runOnMachineFunction", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28789, "Length": 139} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "setPreservesCFG", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "AU", ".", "addRequired", "<", "MachineDominatorTree", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "MachineDominatorTree", ">", "(", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["ARC"], "File": "ARCOptAddrMode", "Func": "getAnalysisUsage", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28790, "Length": 42} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "OPTADDRMODE_DESC", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["ARC"], "File": "ARCOptAddrMode", "Func": "getPassName", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28791, "Length": 11} {"ground_truth": ["", "bool", "ARCOptAddrMode", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "AST", "=", "&", "MF", ".", "getSubtarget", "<", "ARCSubtarget", ">", "(", ")", ";", "AII", "=", "AST", "->", "getInstrInfo", "(", ")", ";", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "MDT", "=", "&", "getAnalysis", "<", "MachineDominatorTree", ">", "(", ")", ";", "bool", "Changed", "=", "false", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "Changed", "|=", "processBasicBlock", "(", "MBB", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARC", "ARC", "ARC"], "File": "ARCOptAddrMode", "Func": "runOnMachineFunction", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28792, "Length": 87} {"ground_truth": ["", "void", "ARCRegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", "RS", ")", "const", "{", "assert", "(", "SPAdj", "==", "0", "&&", "\"Unexpected\"", ")", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineOperand", "&", "FrameOp", "=", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ";", "int", "FrameIndex", "=", "FrameOp", ".", "getIndex", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "ARCInstrInfo", "&", "TII", "=", "*", "MF", ".", "getSubtarget", "<", "ARCSubtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "const", "ARCFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectOffset", "(", "FrameIndex", ")", ";", "int", "ObjSize", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectSize", "(", "FrameIndex", ")", ";", "int", "StackSize", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getStackSize", "(", ")", ";", "int", "LocalFrameSize", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getLocalFrameSize", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"\\nFunction : \"", "<<", "MF", ".", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"<--------->\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "MI", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"FrameIndex : \"", "<<", "FrameIndex", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"ObjSize : \"", "<<", "ObjSize", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"FrameOffset : \"", "<<", "Offset", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"StackSize : \"", "<<", "StackSize", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"LocalFrameSize : \"", "<<", "LocalFrameSize", "<<", "\"\\n\"", ")", ";", "(", "void", ")", "LocalFrameSize", ";", "if", "(", "MI", ".", "isDebugValue", "(", ")", ")", "{", "Register", "FrameReg", "=", "getFrameRegister", "(", "MF", ")", ";", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ")", ";", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";", "return", ";", "}", "Offset", "+=", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "getImm", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Offset : \"", "<<", "Offset", "<<", "\"\\n\"", "<<", "\"<--------->\\n\"", ")", ";", "Register", "Reg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "contains", "(", "Reg", ")", "&&", "\"Unexpected register operand\"", ")", ";", "if", "(", "!", "TFI", "->", "hasFP", "(", "MF", ")", ")", "{", "Offset", "=", "StackSize", "+", "Offset", ";", "if", "(", "FrameIndex", ">=", "0", ")", "assert", "(", "(", "Offset", ">=", "0", "&&", "Offset", "<", "StackSize", ")", "&&", "\"SP Offset not in bounds.\"", ")", ";", "}", "else", "{", "if", "(", "FrameIndex", ">=", "0", ")", "{", "assert", "(", "(", "Offset", "<", "0", "&&", "-", "Offset", "<=", "StackSize", ")", "&&", "\"FP Offset not in bounds.\"", ")", ";", "}", "}", "ReplaceFrameIndex", "(", "II", ",", "TII", ",", "Reg", ",", "getFrameRegister", "(", "MF", ")", ",", "Offset", ",", "StackSize", ",", "ObjSize", ",", "RS", ",", "SPAdj", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["ARC", "ARC", "0", "\"Unexpected\"", "ARC", "ARC", "ARC", "\"\\nFunction : \"", "\"\\n\"", "\"<--------->\\n\"", "\"\\n\"", "\"FrameIndex : \"", "\"\\n\"", "\"ObjSize : \"", "\"\\n\"", "\"FrameOffset : \"", "\"\\n\"", "\"StackSize : \"", "\"\\n\"", "\"LocalFrameSize : \"", "\"\\n\"", "1", "1", "\"Offset : \"", "\"\\n\"", "\"<--------->\\n\"", "0", "ARC::GPR32RegClass", "\"Unexpected register operand\"", "0", "0", "\"SP Offset not in bounds.\"", "0", "0", "\"FP Offset not in bounds.\""], "File": "ARCRegisterInfo10", "Func": "eliminateFrameIndex", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28793, "Length": 460} {"ground_truth": ["", "bool", "ARCRegisterInfo", "::", "needsFrameMoves", "(", "const", "MachineFunction", "&", "MF", ")", "{", "return", "MF", ".", "needsFrameMoves", "(", ")", ";", "}", ""], "natrual_language": ["Return", "whether", "to", "emit", "frame", "moves", "."], "TS_V_token": ["ARC", "ARC"], "File": "ARCRegisterInfo10", "Func": "needsFrameMoves", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28794, "Length": 19} {"ground_truth": ["", "void", "ARCRegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", "RS", ")", "const", "{", "assert", "(", "SPAdj", "==", "0", "&&", "\"Unexpected\"", ")", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineOperand", "&", "FrameOp", "=", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ";", "int", "FrameIndex", "=", "FrameOp", ".", "getIndex", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "ARCInstrInfo", "&", "TII", "=", "*", "MF", ".", "getSubtarget", "<", "ARCSubtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "const", "ARCFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectOffset", "(", "FrameIndex", ")", ";", "int", "ObjSize", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectSize", "(", "FrameIndex", ")", ";", "int", "StackSize", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getStackSize", "(", ")", ";", "int", "LocalFrameSize", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getLocalFrameSize", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"\\nFunction : \"", "<<", "MF", ".", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"<--------->\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "MI", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"FrameIndex : \"", "<<", "FrameIndex", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"ObjSize : \"", "<<", "ObjSize", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"FrameOffset : \"", "<<", "Offset", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"StackSize : \"", "<<", "StackSize", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"LocalFrameSize : \"", "<<", "LocalFrameSize", "<<", "\"\\n\"", ")", ";", "(", "void", ")", "LocalFrameSize", ";", "if", "(", "MI", ".", "isDebugValue", "(", ")", ")", "{", "unsigned", "FrameReg", "=", "getFrameRegister", "(", "MF", ")", ";", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ")", ";", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";", "return", ";", "}", "Offset", "+=", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "getImm", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Offset : \"", "<<", "Offset", "<<", "\"\\n\"", "<<", "\"<--------->\\n\"", ")", ";", "unsigned", "Reg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "contains", "(", "Reg", ")", "&&", "\"Unexpected register operand\"", ")", ";", "if", "(", "!", "TFI", "->", "hasFP", "(", "MF", ")", ")", "{", "Offset", "=", "StackSize", "+", "Offset", ";", "if", "(", "FrameIndex", ">=", "0", ")", "assert", "(", "(", "Offset", ">=", "0", "&&", "Offset", "<", "StackSize", ")", "&&", "\"SP Offset not in bounds.\"", ")", ";", "}", "else", "{", "if", "(", "FrameIndex", ">=", "0", ")", "{", "assert", "(", "(", "Offset", "<", "0", "&&", "-", "Offset", "<=", "StackSize", ")", "&&", "\"FP Offset not in bounds.\"", ")", ";", "}", "}", "ReplaceFrameIndex", "(", "II", ",", "TII", ",", "Reg", ",", "getFrameRegister", "(", "MF", ")", ",", "Offset", ",", "StackSize", ",", "ObjSize", ",", "RS", ",", "SPAdj", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["ARC", "ARC", "0", "\"Unexpected\"", "ARC", "ARC", "ARC", "\"\\nFunction : \"", "\"\\n\"", "\"<--------->\\n\"", "\"\\n\"", "\"FrameIndex : \"", "\"\\n\"", "\"ObjSize : \"", "\"\\n\"", "\"FrameOffset : \"", "\"\\n\"", "\"StackSize : \"", "\"\\n\"", "\"LocalFrameSize : \"", "\"\\n\"", "1", "1", "\"Offset : \"", "\"\\n\"", "\"<--------->\\n\"", "0", "ARC::GPR32RegClass", "\"Unexpected register operand\"", "0", "0", "\"SP Offset not in bounds.\"", "0", "0", "\"FP Offset not in bounds.\""], "File": "ARCRegisterInfo11", "Func": "eliminateFrameIndex", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28795, "Length": 460} {"ground_truth": ["", "void", "ARCRegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", "RS", ")", "const", "{", "assert", "(", "SPAdj", "==", "0", "&&", "\"Unexpected\"", ")", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineOperand", "&", "FrameOp", "=", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ";", "int", "FrameIndex", "=", "FrameOp", ".", "getIndex", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "ARCInstrInfo", "&", "TII", "=", "*", "MF", ".", "getSubtarget", "<", "ARCSubtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "const", "ARCFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectOffset", "(", "FrameIndex", ")", ";", "int", "ObjSize", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectSize", "(", "FrameIndex", ")", ";", "int", "StackSize", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getStackSize", "(", ")", ";", "int", "LocalFrameSize", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getLocalFrameSize", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"\\nFunction : \"", "<<", "MF", ".", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"<--------->\\n\"", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "MI", "<<", "\"\\n\"", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"FrameIndex : \"", "<<", "FrameIndex", "<<", "\"\\n\"", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"ObjSize : \"", "<<", "ObjSize", "<<", "\"\\n\"", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"FrameOffset : \"", "<<", "Offset", "<<", "\"\\n\"", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"StackSize : \"", "<<", "StackSize", "<<", "\"\\n\"", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"LocalFrameSize : \"", "<<", "LocalFrameSize", "<<", "\"\\n\"", ")", ";", "(", "void", ")", "LocalFrameSize", ";", "if", "(", "MI", ".", "isDebugValue", "(", ")", ")", "{", "unsigned", "FrameReg", "=", "getFrameRegister", "(", "MF", ")", ";", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ")", ";", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";", "return", ";", "}", "Offset", "+=", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "getImm", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Offset : \"", "<<", "Offset", "<<", "\"\\n\"", "<<", "\"<--------->\\n\"", ")", ";", "unsigned", "Reg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "contains", "(", "Reg", ")", "&&", "\"Unexpected register operand\"", ")", ";", "if", "(", "!", "TFI", "->", "hasFP", "(", "MF", ")", ")", "{", "Offset", "=", "StackSize", "+", "Offset", ";", "if", "(", "FrameIndex", ">=", "0", ")", "assert", "(", "(", "Offset", ">=", "0", "&&", "Offset", "<", "StackSize", ")", "&&", "\"SP Offset not in bounds.\"", ")", ";", "}", "else", "{", "if", "(", "FrameIndex", ">=", "0", ")", "{", "assert", "(", "(", "Offset", "<", "0", "&&", "-", "Offset", "<=", "StackSize", ")", "&&", "\"FP Offset not in bounds.\"", ")", ";", "}", "}", "ReplaceFrameIndex", "(", "II", ",", "TII", ",", "Reg", ",", "getFrameRegister", "(", "MF", ")", ",", "Offset", ",", "StackSize", ",", "ObjSize", ",", "RS", ",", "SPAdj", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["ARC", "ARC", "0", "\"Unexpected\"", "ARC", "ARC", "ARC", "\"\\nFunction : \"", "\"\\n\"", "\"<--------->\\n\"", "\"\\n\"", "\"FrameIndex : \"", "\"\\n\"", "\"ObjSize : \"", "\"\\n\"", "\"FrameOffset : \"", "\"\\n\"", "\"StackSize : \"", "\"\\n\"", "\"LocalFrameSize : \"", "\"\\n\"", "1", "1", "\"Offset : \"", "\"\\n\"", "\"<--------->\\n\"", "0", "ARC::GPR32RegClass", "\"Unexpected register operand\"", "0", "0", "\"SP Offset not in bounds.\"", "0", "0", "\"FP Offset not in bounds.\""], "File": "ARCRegisterInfo1", "Func": "eliminateFrameIndex", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28796, "Length": 460} {"ground_truth": ["", "unsigned", "ARCRegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "ARCFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "return", "TFI", "->", "hasFP", "(", "MF", ")", "?", "ARC", "::", "FP", ":", "ARC", "::", "SP", ";", "}", ""], "natrual_language": ["Debug", "information", "queries", "."], "TS_V_token": ["ARC", "ARC", "ARC", "ARC::FP", "ARC::SP"], "File": "ARCRegisterInfo1", "Func": "getFrameRegister", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28797, "Length": 39} {"ground_truth": ["", "void", "ARCRegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", "RS", ")", "const", "{", "assert", "(", "SPAdj", "==", "0", "&&", "\"Unexpected\"", ")", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineOperand", "&", "FrameOp", "=", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ";", "int", "FrameIndex", "=", "FrameOp", ".", "getIndex", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "ARCInstrInfo", "&", "TII", "=", "*", "MF", ".", "getSubtarget", "<", "ARCSubtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "const", "ARCFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectOffset", "(", "FrameIndex", ")", ";", "int", "ObjSize", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectSize", "(", "FrameIndex", ")", ";", "int", "StackSize", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getStackSize", "(", ")", ";", "int", "LocalFrameSize", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getLocalFrameSize", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"\\nFunction : \"", "<<", "MF", ".", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"<--------->\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "MI", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"FrameIndex : \"", "<<", "FrameIndex", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"ObjSize : \"", "<<", "ObjSize", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"FrameOffset : \"", "<<", "Offset", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"StackSize : \"", "<<", "StackSize", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"LocalFrameSize : \"", "<<", "LocalFrameSize", "<<", "\"\\n\"", ")", ";", "(", "void", ")", "LocalFrameSize", ";", "if", "(", "MI", ".", "isDebugValue", "(", ")", ")", "{", "Register", "FrameReg", "=", "getFrameRegister", "(", "MF", ")", ";", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ")", ";", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";", "return", ";", "}", "Offset", "+=", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "getImm", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Offset : \"", "<<", "Offset", "<<", "\"\\n\"", "<<", "\"<--------->\\n\"", ")", ";", "Register", "Reg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "contains", "(", "Reg", ")", "&&", "\"Unexpected register operand\"", ")", ";", "if", "(", "!", "TFI", "->", "hasFP", "(", "MF", ")", ")", "{", "Offset", "=", "StackSize", "+", "Offset", ";", "if", "(", "FrameIndex", ">=", "0", ")", "assert", "(", "(", "Offset", ">=", "0", "&&", "Offset", "<", "StackSize", ")", "&&", "\"SP Offset not in bounds.\"", ")", ";", "}", "else", "{", "if", "(", "FrameIndex", ">=", "0", ")", "{", "assert", "(", "(", "Offset", "<", "0", "&&", "-", "Offset", "<=", "StackSize", ")", "&&", "\"FP Offset not in bounds.\"", ")", ";", "}", "}", "replaceFrameIndex", "(", "II", ",", "TII", ",", "Reg", ",", "getFrameRegister", "(", "MF", ")", ",", "Offset", ",", "StackSize", ",", "ObjSize", ",", "RS", ",", "SPAdj", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["ARC", "ARC", "0", "\"Unexpected\"", "ARC", "ARC", "ARC", "\"\\nFunction : \"", "\"\\n\"", "\"<--------->\\n\"", "\"\\n\"", "\"FrameIndex : \"", "\"\\n\"", "\"ObjSize : \"", "\"\\n\"", "\"FrameOffset : \"", "\"\\n\"", "\"StackSize : \"", "\"\\n\"", "\"LocalFrameSize : \"", "\"\\n\"", "1", "1", "\"Offset : \"", "\"\\n\"", "\"<--------->\\n\"", "0", "ARC::GPR32RegClass", "\"Unexpected register operand\"", "0", "0", "\"SP Offset not in bounds.\"", "0", "0", "\"FP Offset not in bounds.\""], "File": "ARCRegisterInfo2", "Func": "eliminateFrameIndex", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28798, "Length": 460} {"ground_truth": ["", "bool", "ARCRegisterInfo", "::", "needsFrameMoves", "(", "const", "MachineFunction", "&", "MF", ")", "{", "return", "MF", ".", "getMMI", "(", ")", ".", "hasDebugInfo", "(", ")", "||", "MF", ".", "getFunction", "(", ")", "->", "needsUnwindTableEntry", "(", ")", ";", "}", ""], "natrual_language": ["Return", "whether", "to", "emit", "frame", "moves", "."], "TS_V_token": ["ARC", "ARC"], "File": "ARCRegisterInfo3", "Func": "needsFrameMoves", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28799, "Length": 33} {"ground_truth": ["", "void", "ARCRegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", "RS", ")", "const", "{", "assert", "(", "SPAdj", "==", "0", "&&", "\"Unexpected\"", ")", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineOperand", "&", "FrameOp", "=", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ";", "int", "FrameIndex", "=", "FrameOp", ".", "getIndex", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "ARCInstrInfo", "&", "TII", "=", "*", "MF", ".", "getSubtarget", "<", "ARCSubtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "const", "ARCFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectOffset", "(", "FrameIndex", ")", ";", "int", "ObjSize", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectSize", "(", "FrameIndex", ")", ";", "int", "StackSize", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getStackSize", "(", ")", ";", "int", "LocalFrameSize", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getLocalFrameSize", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"\\nFunction : \"", "<<", "MF", ".", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"<--------->\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "MI", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"FrameIndex : \"", "<<", "FrameIndex", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"ObjSize : \"", "<<", "ObjSize", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"FrameOffset : \"", "<<", "Offset", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"StackSize : \"", "<<", "StackSize", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"LocalFrameSize : \"", "<<", "LocalFrameSize", "<<", "\"\\n\"", ")", ";", "(", "void", ")", "LocalFrameSize", ";", "if", "(", "MI", ".", "isDebugValue", "(", ")", ")", "{", "Register", "FrameReg", "=", "getFrameRegister", "(", "MF", ")", ";", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ")", ";", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";", "return", ";", "}", "Offset", "+=", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "getImm", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Offset : \"", "<<", "Offset", "<<", "\"\\n\"", "<<", "\"<--------->\\n\"", ")", ";", "unsigned", "Reg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "assert", "(", "ARC", "::", "GPR32RegClass", ".", "contains", "(", "Reg", ")", "&&", "\"Unexpected register operand\"", ")", ";", "if", "(", "!", "TFI", "->", "hasFP", "(", "MF", ")", ")", "{", "Offset", "=", "StackSize", "+", "Offset", ";", "if", "(", "FrameIndex", ">=", "0", ")", "assert", "(", "(", "Offset", ">=", "0", "&&", "Offset", "<", "StackSize", ")", "&&", "\"SP Offset not in bounds.\"", ")", ";", "}", "else", "{", "if", "(", "FrameIndex", ">=", "0", ")", "{", "assert", "(", "(", "Offset", "<", "0", "&&", "-", "Offset", "<=", "StackSize", ")", "&&", "\"FP Offset not in bounds.\"", ")", ";", "}", "}", "ReplaceFrameIndex", "(", "II", ",", "TII", ",", "Reg", ",", "getFrameRegister", "(", "MF", ")", ",", "Offset", ",", "StackSize", ",", "ObjSize", ",", "RS", ",", "SPAdj", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["ARC", "ARC", "0", "\"Unexpected\"", "ARC", "ARC", "ARC", "\"\\nFunction : \"", "\"\\n\"", "\"<--------->\\n\"", "\"\\n\"", "\"FrameIndex : \"", "\"\\n\"", "\"ObjSize : \"", "\"\\n\"", "\"FrameOffset : \"", "\"\\n\"", "\"StackSize : \"", "\"\\n\"", "\"LocalFrameSize : \"", "\"\\n\"", "1", "1", "\"Offset : \"", "\"\\n\"", "\"<--------->\\n\"", "0", "ARC::GPR32RegClass", "\"Unexpected register operand\"", "0", "0", "\"SP Offset not in bounds.\"", "0", "0", "\"FP Offset not in bounds.\""], "File": "ARCRegisterInfo", "Func": "eliminateFrameIndex", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28800, "Length": 460} {"ground_truth": ["", "const", "MCPhysReg", "*", "ARCRegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "return", "CSR_ARC_SaveList", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["ARC", "ARC", "ARC"], "File": "ARCRegisterInfo", "Func": "getCalleeSavedRegs", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28801, "Length": 18} {"ground_truth": ["", "const", "uint32_t", "*", "ARCRegisterInfo", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", "MF", ",", "CallingConv", "::", "ID", "CC", ")", "const", "{", "return", "CSR_ARC_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["ARC", "ARC", "ARC"], "File": "ARCRegisterInfo", "Func": "getCallPreservedMask", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28802, "Length": 23} {"ground_truth": ["", "Register", "ARCRegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "ARCFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "return", "TFI", "->", "hasFP", "(", "MF", ")", "?", "ARC", "::", "FP", ":", "ARC", "::", "SP", ";", "}", ""], "natrual_language": ["Debug", "information", "queries", "."], "TS_V_token": ["ARC", "ARC", "ARC", "ARC::FP", "ARC::SP"], "File": "ARCRegisterInfo", "Func": "getFrameRegister", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28803, "Length": 39} {"ground_truth": ["", "BitVector", "ARCRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "Reserved", ".", "set", "(", "ARC", "::", "ILINK", ")", ";", "Reserved", ".", "set", "(", "ARC", "::", "SP", ")", ";", "Reserved", ".", "set", "(", "ARC", "::", "GP", ")", ";", "Reserved", ".", "set", "(", "ARC", "::", "R25", ")", ";", "Reserved", ".", "set", "(", "ARC", "::", "BLINK", ")", ";", "Reserved", ".", "set", "(", "ARC", "::", "FP", ")", ";", "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": ["ARC", "ARC", "ARC::ILINK", "ARC::SP", "ARC::GP", "ARC::R25", "ARC::BLINK", "ARC::FP"], "File": "ARCRegisterInfo", "Func": "getReservedRegs", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28804, "Length": 78} {"ground_truth": ["", "bool", "ARCRegisterInfo", "::", "needsFrameMoves", "(", "const", "MachineFunction", "&", "MF", ")", "{", "return", "MF", ".", "getMMI", "(", ")", ".", "hasDebugInfo", "(", ")", "||", "MF", ".", "getFunction", "(", ")", ".", "needsUnwindTableEntry", "(", ")", ";", "}", ""], "natrual_language": ["Return", "whether", "to", "emit", "frame", "moves", "."], "TS_V_token": ["ARC", "ARC"], "File": "ARCRegisterInfo", "Func": "needsFrameMoves", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28805, "Length": 33} {"ground_truth": ["", "bool", "ARCRegisterInfo", "::", "requiresRegisterScavenging", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "requires", "(", "and", "can", "make", "use", "of", ")", "the", "register", "scavenger", "."], "TS_V_token": ["ARC", "ARC"], "File": "ARCRegisterInfo", "Func": "requiresRegisterScavenging", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28806, "Length": 16} {"ground_truth": ["", "bool", "ARCRegisterInfo", "::", "trackLivenessAfterRegAlloc", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "live-ins", "should", "be", "tracked", "after", "register", "allocation", "."], "TS_V_token": ["ARC", "ARC"], "File": "ARCRegisterInfo", "Func": "trackLivenessAfterRegAlloc", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28807, "Length": 16} {"ground_truth": ["", "bool", "ARCRegisterInfo", "::", "useFPForScavengingIndex", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "wants", "to", "use", "frame", "pointer", "based", "accesses", "to", "spill", "to", "the", "scavenger", "emergency", "spill", "slot", "."], "TS_V_token": ["ARC", "ARC"], "File": "ARCRegisterInfo", "Func": "useFPForScavengingIndex", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28808, "Length": 16} {"ground_truth": ["", "ARCSubtarget", "::", "ARCSubtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ")", ":", "ARCGenSubtargetInfo", "(", "TT", ",", "CPU", ",", "CPU", ",", "FS", ")", ",", "InstrInfo", "(", "*", "this", ")", ",", "FrameLowering", "(", "*", "this", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["ARC", "ARC", "ARC", "ARC"], "File": "ARCSubtarget3", "Func": "ARCSubtarget", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28809, "Length": 61} {"ground_truth": ["", "ARCSubtarget", "::", "ARCSubtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ")", ":", "ARCGenSubtargetInfo", "(", "TT", ",", "CPU", ",", "CPU", ",", "FS", ")", ",", "FrameLowering", "(", "*", "this", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["ARC", "ARC", "ARC", "ARC"], "File": "ARCSubtarget5", "Func": "ARCSubtarget", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28810, "Length": 55} {"ground_truth": ["", "ARCSubtarget", "::", "ARCSubtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ")", ":", "ARCGenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "FrameLowering", "(", "*", "this", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["ARC", "ARC", "ARC", "ARC"], "File": "ARCSubtarget", "Func": "ARCSubtarget", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28811, "Length": 53} {"ground_truth": ["", "const", "ARCInstrInfo", "*", "getInstrInfo", "(", ")", "const", "override", "{", "return", "&", "InstrInfo", ";", "}", ""], "natrual_language": ["TargetInstrInfo", "getter", "."], "TS_V_token": ["ARC", "ARC"], "File": "ARCSubtarget", "Func": "getInstrInfo", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28812, "Length": 14} {"ground_truth": ["", "const", "ARCRegisterInfo", "*", "getRegisterInfo", "(", ")", "const", "override", "{", "return", "&", "InstrInfo", ".", "getRegisterInfo", "(", ")", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["ARC", "ARC"], "File": "ARCSubtarget", "Func": "getRegisterInfo", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28813, "Length": 18} {"ground_truth": ["", "ARCTargetMachine", "::", "ARCTargetMachine", "(", "const", "Target", "&", "T", ",", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Optional", "<", "Reloc", "::", "Model", ">", "RM", ",", "Optional", "<", "CodeModel", "::", "Model", ">", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ",", "bool", "JIT", ")", ":", "LLVMTargetMachine", "(", "T", ",", "\"e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-\"", "\"f32:32:32-i64:32-f64:32-a:0:32-n32\"", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "getRelocModel", "(", "RM", ")", ",", "getEffectiveCodeModel", "(", "CM", ",", "CodeModel", "::", "Small", ")", ",", "OL", ")", ",", "TLOF", "(", "std", "::", "make_unique", "<", "TargetLoweringObjectFileELF", ">", "(", ")", ")", ",", "Subtarget", "(", "TT", ",", "std", "::", "string", "(", "CPU", ")", ",", "std", "::", "string", "(", "FS", ")", ",", "*", "this", ")", "{", "initAsmInfo", "(", ")", ";", "}", ""], "natrual_language": ["ARCTargetMachine", "ctor", "-", "Create", "an", "ILP32", "architecture", "model", "."], "TS_V_token": ["ARC", "ARC", "ARC", "\"e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-\"", "\"f32:32:32-i64:32-f64:32-a:0:32-n32\""], "File": "ARCTargetMachine10", "Func": "ARCTargetMachine", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28814, "Length": 121} {"ground_truth": ["", "void", "ARCPassConfig", "::", "addPreRegAlloc", "(", ")", "{", "addPass", "(", "createARCExpandPseudosPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "register", "allocation", "."], "TS_V_token": ["ARC", "ARC", "ARC"], "File": "ARCTargetMachine16", "Func": "addPreRegAlloc", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28815, "Length": 15} {"ground_truth": ["", "ARCTargetMachine", "::", "ARCTargetMachine", "(", "const", "Target", "&", "T", ",", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Optional", "<", "Reloc", "::", "Model", ">", "RM", ",", "Optional", "<", "CodeModel", "::", "Model", ">", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ",", "bool", "JIT", ")", ":", "LLVMTargetMachine", "(", "T", ",", "\"e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-\"", "\"f32:32:32-i64:32-f64:32-a:0:32-n32\"", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "getRelocModel", "(", "RM", ")", ",", "getEffectiveCodeModel", "(", "CM", ")", ",", "OL", ")", ",", "TLOF", "(", "make_unique", "<", "TargetLoweringObjectFileELF", ">", "(", ")", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ",", "*", "this", ")", "{", "initAsmInfo", "(", ")", ";", "}", ""], "natrual_language": ["ARCTargetMachine", "ctor", "-", "Create", "an", "ILP32", "architecture", "model", "."], "TS_V_token": ["ARC", "ARC", "ARC", "\"e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-\"", "\"f32:32:32-i64:32-f64:32-a:0:32-n32\""], "File": "ARCTargetMachine16", "Func": "ARCTargetMachine", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28816, "Length": 105} {"ground_truth": ["", "ARCTargetMachine", "::", "ARCTargetMachine", "(", "const", "Target", "&", "T", ",", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Optional", "<", "Reloc", "::", "Model", ">", "RM", ",", "Optional", "<", "CodeModel", "::", "Model", ">", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ",", "bool", "JIT", ")", ":", "LLVMTargetMachine", "(", "T", ",", "\"e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-\"", "\"f32:32:32-i64:32-f64:32-a:0:32-n32\"", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "getRelocModel", "(", "RM", ")", ",", "getEffectiveCodeModel", "(", "CM", ",", "CodeModel", "::", "Small", ")", ",", "OL", ")", ",", "TLOF", "(", "make_unique", "<", "TargetLoweringObjectFileELF", ">", "(", ")", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ",", "*", "this", ")", "{", "initAsmInfo", "(", ")", ";", "}", ""], "natrual_language": ["ARCTargetMachine", "ctor", "-", "Create", "an", "ILP32", "architecture", "model", "."], "TS_V_token": ["ARC", "ARC", "ARC", "\"e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-\"", "\"f32:32:32-i64:32-f64:32-a:0:32-n32\""], "File": "ARCTargetMachine1", "Func": "ARCTargetMachine", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28817, "Length": 109} {"ground_truth": ["", "TargetTransformInfo", "ARCTargetMachine", "::", "getTargetTransformInfo", "(", "const", "Function", "&", "F", ")", "const", "{", "return", "TargetTransformInfo", "(", "ARCTTIImpl", "(", "this", ",", "F", ")", ")", ";", "}", ""], "natrual_language": ["Get", "a", "TargetTransformInfo", "implementation", "for", "the", "target", "."], "TS_V_token": ["ARC", "ARC", "ARC"], "File": "ARCTargetMachine4", "Func": "getTargetTransformInfo", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28818, "Length": 24} {"ground_truth": ["", "TargetIRAnalysis", "ARCTargetMachine", "::", "getTargetIRAnalysis", "(", ")", "{", "return", "TargetIRAnalysis", "(", "[", "this", "]", "(", "const", "Function", "&", "F", ")", "{", "return", "TargetTransformInfo", "(", "ARCTTIImpl", "(", "this", ",", "F", ")", ")", ";", "}", ")", ";", "}", ""], "natrual_language": ["Get", "a", "TargetIRAnalysis", "appropriate", "for", "the", "target", "."], "TS_V_token": ["ARC", "ARC", "ARC"], "File": "ARCTargetMachine7", "Func": "getTargetIRAnalysis", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28819, "Length": 35} {"ground_truth": ["", "bool", "ARCPassConfig", "::", "addInstSelector", "(", ")", "{", "addPass", "(", "createARCISelDag", "(", "getARCTargetMachine", "(", ")", ",", "getOptLevel", "(", ")", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["addInstSelector", "-", "This", "method", "should", "install", "an", "instruction", "selector", "pass", ",", "which", "converts", "from", "LLVM", "code", "to", "machine", "instructions", "."], "TS_V_token": ["ARC", "ARC", "ARC", "ARC"], "File": "ARCTargetMachine", "Func": "addInstSelector", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28820, "Length": 25} {"ground_truth": ["", "void", "ARCPassConfig", "::", "addPreEmitPass", "(", ")", "{", "addPass", "(", "createARCBranchFinalizePass", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["ARC", "ARC", "ARC"], "File": "ARCTargetMachine", "Func": "addPreEmitPass", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28821, "Length": 15} {"ground_truth": ["", "void", "ARCPassConfig", "::", "addPreRegAlloc", "(", ")", "{", "addPass", "(", "createARCExpandPseudosPass", "(", ")", ")", ";", "addPass", "(", "createARCOptAddrMode", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "register", "allocation", "."], "TS_V_token": ["ARC", "ARC", "ARC", "ARC"], "File": "ARCTargetMachine", "Func": "addPreRegAlloc", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28822, "Length": 22} {"ground_truth": ["", "ARCTargetMachine", "::", "ARCTargetMachine", "(", "const", "Target", "&", "T", ",", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Optional", "<", "Reloc", "::", "Model", ">", "RM", ",", "Optional", "<", "CodeModel", "::", "Model", ">", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ",", "bool", "JIT", ")", ":", "LLVMTargetMachine", "(", "T", ",", "\"e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-\"", "\"f32:32:32-i64:32-f64:32-a:0:32-n32\"", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "getRelocModel", "(", "RM", ")", ",", "getEffectiveCodeModel", "(", "CM", ",", "CodeModel", "::", "Small", ")", ",", "OL", ")", ",", "TLOF", "(", "std", "::", "make_unique", "<", "TargetLoweringObjectFileELF", ">", "(", ")", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ",", "*", "this", ")", "{", "initAsmInfo", "(", ")", ";", "}", ""], "natrual_language": ["ARCTargetMachine", "ctor", "-", "Create", "an", "ILP32", "architecture", "model", "."], "TS_V_token": ["ARC", "ARC", "ARC", "\"e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-\"", "\"f32:32:32-i64:32-f64:32-a:0:32-n32\""], "File": "ARCTargetMachine", "Func": "ARCTargetMachine", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28823, "Length": 111} {"ground_truth": ["", "TargetPassConfig", "*", "ARCTargetMachine", "::", "createPassConfig", "(", "PassManagerBase", "&", "PM", ")", "{", "return", "new", "ARCPassConfig", "(", "*", "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": ["ARC", "ARC", "ARC"], "File": "ARCTargetMachine", "Func": "createPassConfig", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28824, "Length": 22} {"ground_truth": ["", "TargetLoweringObjectFile", "*", "getObjFileLowering", "(", ")", "const", "override", "{", "return", "TLOF", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["Return", "information", "about", "object", "file", "lowering", "."], "TS_V_token": ["ARC"], "File": "ARCTargetMachine", "Func": "getObjFileLowering", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28825, "Length": 16} {"ground_truth": ["", "const", "ARCSubtarget", "*", "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": ["ARC", "ARC"], "File": "ARCTargetMachine", "Func": "getSubtargetImpl", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28826, "Length": 17} {"ground_truth": ["", "TargetTransformInfo", "ARCTargetMachine", "::", "getTargetTransformInfo", "(", "const", "Function", "&", "F", ")", "{", "return", "TargetTransformInfo", "(", "ARCTTIImpl", "(", "this", ",", "F", ")", ")", ";", "}", ""], "natrual_language": ["Get", "a", "TargetTransformInfo", "implementation", "for", "the", "target", "."], "TS_V_token": ["ARC", "ARC", "ARC"], "File": "ARCTargetMachine", "Func": "getTargetTransformInfo", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28827, "Length": 23} {"ground_truth": ["", "const", "ARCTargetLowering", "*", "getTLI", "(", ")", "const", "{", "return", "TLI", ";", "}", ""], "natrual_language": ["Getter", "for", "generic", "TargetLowering", "class", "."], "TS_V_token": ["ARC", "ARC"], "File": "ARCTargetTransformInfo", "Func": "getTLI", "Target": "ARC", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28828, "Length": 12}