{"ground_truth": ["", "void", "applyFixup", "(", "const", "MCAssembler", "&", "Asm", ",", "const", "MCFixup", "&", "Fixup", ",", "const", "MCValue", "&", "Target", ",", "MutableArrayRef", "<", "char", ">", "Data", ",", "uint64_t", "Value", ",", "bool", "IsResolved", ",", "const", "MCSubtargetInfo", "*", "STI", ")", "const", "override", "{", "unsigned", "Size", "=", "0", ";", "switch", "(", "(", "unsigned", ")", "Fixup", ".", "getKind", "(", ")", ")", "{", "case", "FK_Data_1", ":", "Size", "=", "1", ";", "break", ";", "case", "FK_Data_2", ":", "Size", "=", "2", ";", "break", ";", "case", "FK_Data_4", ":", "Size", "=", "4", ";", "break", ";", "case", "FK_Data_8", ":", "Size", "=", "8", ";", "break", ";", "default", ":", "return", ";", "}", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "Size", ";", "++", "i", ")", "{", "Data", "[", "i", "+", "Fixup", ".", "getOffset", "(", ")", "]", "|=", "static_cast", "<", "uint8_t", ">", "(", "Value", ">>", "(", "i", "*", "8", ")", ")", ";", "}", "return", ";", "}", ""], "natrual_language": ["Apply", "the", "Value", "for", "given", "Fixup", "into", "the", "provided", "data", "fragment", ",", "at", "the", "offset", "specified", "by", "the", "fixup", "and", "following", "the", "fixup", "kind", "as", "appropriate", "."], "TS_V_token": ["AAP", "0", "1", "2", "4", "8", "0", "8"], "File": "AAPAsmBackend", "Func": "applyFixup", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28947, "Length": 140}
{"ground_truth": ["", "bool", "fixupNeedsRelaxation", "(", "MCFixup", "const", "&", "Fixup", ",", "uint64_t", "Value", ",", "MCRelaxableFragment", "const", "*", "DF", ",", "MCAsmLayout", "const", "&", "Layout", ")", "const", "override", "{", "switch", "(", "(", "unsigned", ")", "Fixup", ".", "getKind", "(", ")", ")", "{", "case", "AAP", "::", "fixup_AAP_BR16", ":", "case", "AAP", "::", "fixup_AAP_BRCC16", ":", "case", "AAP", "::", "fixup_AAP_BAL16", ":", "llvm_unreachable", "(", "\"Cannot relax short instruction fixups!\"", ")", ";", "default", ":", "return", "false", ";", "}", "}", ""], "natrual_language": ["Simple", "predicate", "for", "targets", "where", "!", "Resolved", "implies", "requiring", "relaxation", "."], "TS_V_token": ["AAP", "AAP::fixup_AAP_BR16", "AAP::fixup_AAP_BRCC16", "AAP::fixup_AAP_BAL16", "\"Cannot relax short instruction fixups!\""], "File": "AAPAsmBackend", "Func": "fixupNeedsRelaxation", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28948, "Length": 63}
{"ground_truth": ["", "const", "MCFixupKindInfo", "&", "getFixupKindInfo", "(", "MCFixupKind", "Kind", ")", "const", "override", "{", "const", "static", "MCFixupKindInfo", "Infos", "[", "AAP", "::", "NumTargetFixupKinds", "]", "=", "{", "{", "\"fixup_AAP_NONE\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_AAP_BR16\"", ",", "0", ",", "9", ",", "0", "}", ",", "{", "\"fixup_AAP_BR32\"", ",", "0", ",", "9", ",", "0", "}", ",", "{", "\"fixup_AAP_BRCC16\"", ",", "6", ",", "3", ",", "0", "}", ",", "{", "\"fixup_AAP_BRCC32\"", ",", "6", ",", "3", ",", "0", "}", ",", "{", "\"fixup_AAP_BAL16\"", ",", "0", ",", "3", ",", "0", "}", ",", "{", "\"fixup_AAP_BAL32\"", ",", "0", ",", "3", ",", "0", "}", ",", "{", "\"fixup_AAP_ABS6\"", ",", "0", ",", "3", ",", "0", "}", ",", "{", "\"fixup_AAP_ABS9\"", ",", "0", ",", "3", ",", "0", "}", ",", "{", "\"fixup_AAP_ABS10\"", ",", "0", ",", "3", ",", "0", "}", ",", "{", "\"fixup_AAP_ABS12\"", ",", "0", ",", "6", ",", "0", "}", ",", "{", "\"fixup_AAP_ABS16\"", ",", "0", ",", "6", ",", "0", "}", ",", "{", "\"fixup_AAP_SHIFT6\"", ",", "0", ",", "3", ",", "0", "}", ",", "{", "\"fixup_AAP_OFF10\"", ",", "0", ",", "3", ",", "0", "}", "}", ";", "if", "(", "Kind", "<", "FirstTargetFixupKind", ")", "return", "MCAsmBackend", "::", "getFixupKindInfo", "(", "Kind", ")", ";", "assert", "(", "unsigned", "(", "Kind", "-", "FirstTargetFixupKind", ")", "<", "getNumFixupKinds", "(", ")", "&&", "\"Invalid kind!\"", ")", ";", "return", "Infos", "[", "Kind", "-", "FirstTargetFixupKind", "]", ";", "}", ""], "natrual_language": ["Get", "information", "on", "a", "fixup", "kind", "."], "TS_V_token": ["AAP", "AAP::NumTargetFixupKinds", "\"fixup_AAP_NONE\"", "0", "16", "0", "\"fixup_AAP_BR16\"", "0", "9", "0", "\"fixup_AAP_BR32\"", "0", "9", "0", "\"fixup_AAP_BRCC16\"", "6", "3", "0", "\"fixup_AAP_BRCC32\"", "6", "3", "0", "\"fixup_AAP_BAL16\"", "0", "3", "0", "\"fixup_AAP_BAL32\"", "0", "3", "0", "\"fixup_AAP_ABS6\"", "0", "3", "0", "\"fixup_AAP_ABS9\"", "0", "3", "0", "\"fixup_AAP_ABS10\"", "0", "3", "0", "\"fixup_AAP_ABS12\"", "0", "6", "0", "\"fixup_AAP_ABS16\"", "0", "6", "0", "\"fixup_AAP_SHIFT6\"", "0", "3", "0", "\"fixup_AAP_OFF10\"", "0", "3", "0", "\"Invalid kind!\""], "File": "AAPAsmBackend", "Func": "getFixupKindInfo", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28949, "Length": 202}
{"ground_truth": ["", "unsigned", "getNumFixupKinds", "(", ")", "const", "override", "{", "return", "14", ";", "}", ""], "natrual_language": ["Get", "the", "number", "of", "target", "specific", "fixup", "kinds", "."], "TS_V_token": ["AAP", "14"], "File": "AAPAsmBackend", "Func": "getNumFixupKinds", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28950, "Length": 11}
{"ground_truth": ["", "bool", "mayNeedRelaxation", "(", "MCInst", "const", "&", "Inst", ",", "MCSubtargetInfo", "const", "&", "STI", ")", "const", "override", "{", "return", "false", ";", "}", ""], "natrual_language": ["Check", "whether", "the", "given", "instruction", "may", "need", "relaxation", "."], "TS_V_token": ["AAP"], "File": "AAPAsmBackend", "Func": "mayNeedRelaxation", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28951, "Length": 20}
{"ground_truth": ["", "void", "relaxInstruction", "(", "MCInst", "const", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "MCInst", "&", "Res", ")", "const", "override", "{", "llvm_unreachable", "(", "\"Unexpected short instruction with fixup\"", ")", ";", "}", ""], "natrual_language": ["Relax", "the", "instruction", "in", "the", "given", "fragment", "to", "the", "next", "wider", "instruction", "."], "TS_V_token": ["AAP", "\"Unexpected short instruction with fixup\""], "File": "AAPAsmBackend", "Func": "relaxInstruction", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28952, "Length": 26}
{"ground_truth": ["", "bool", "writeNopData", "(", "raw_ostream", "&", "OS", ",", "uint64_t", "Count", ")", "const", "override", "{", "if", "(", "(", "Count", "%", "2", ")", "!=", "0", ")", "{", "return", "false", ";", "}", "for", "(", "uint64_t", "i", "=", "0", ";", "i", "<", "Count", ";", "i", "+=", "2", ")", "{", "OS", ".", "write", "(", "0x00", ")", ";", "OS", ".", "write", "(", "0x01", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Write", "an", "(", "optimal", ")", "nop", "sequence", "of", "Count", "bytes", "to", "the", "given", "output", "."], "TS_V_token": ["AAP", "2", "0", "0", "2", "0x00", "0x01"], "File": "AAPAsmBackend", "Func": "writeNopData", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28953, "Length": 63}
{"ground_truth": ["", "void", "addExpr", "(", "MCInst", "&", "Inst", ",", "const", "MCExpr", "*", "Expr", ")", "const", "{", "if", "(", "Expr", "==", "0", ")", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "0", ")", ")", ";", "else", "if", "(", "const", "MCConstantExpr", "*", "CE", "=", "dyn_cast", "<", "MCConstantExpr", ">", "(", "Expr", ")", ")", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "CE", "->", "getValue", "(", ")", ")", ")", ";", "else", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createExpr", "(", "Expr", ")", ")", ";", "}", ""], "natrual_language": ["Add", "a", "new", "MCExpr", "operand", "."], "TS_V_token": ["AAP", "0", "0"], "File": "AAPAsmParser", "Func": "addExpr", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28954, "Length": 78}
{"ground_truth": ["", "unsigned", "checkTargetMatchPredicate", "(", "MCInst", "&", "Inst", ")", "override", "{", "const", "MCRegisterClass", "&", "MRC", "=", "MRI", "->", "getRegClass", "(", "AAP", "::", "GR8RegClassID", ")", ";", "switch", "(", "Inst", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "Match_Success", ";", "case", "AAP", "::", "LDB_short", ":", "case", "AAP", "::", "LDW_short", ":", "case", "AAP", "::", "LDB_postinc_short", ":", "case", "AAP", "::", "LDW_postinc_short", ":", "case", "AAP", "::", "LDB_predec_short", ":", "case", "AAP", "::", "LDW_predec_short", ":", "case", "AAP", "::", "STB_short", ":", "case", "AAP", "::", "STW_short", ":", "case", "AAP", "::", "STB_postinc_short", ":", "case", "AAP", "::", "STW_postinc_short", ":", "case", "AAP", "::", "STB_predec_short", ":", "case", "AAP", "::", "STW_predec_short", ":", "break", ";", "}", "for", "(", "MCInst", "::", "iterator", "I", "=", "Inst", ".", "begin", "(", ")", ";", "I", "!=", "Inst", ".", "end", "(", ")", ";", "++", "I", ")", "{", "if", "(", "I", "->", "isReg", "(", ")", "&&", "!", "MRC", ".", "contains", "(", "I", "->", "getReg", "(", ")", ")", ")", "{", "return", "Match_InvalidOperand", ";", "}", "}", "return", "Match_Success", ";", "}", ""], "natrual_language": ["checkTargetMatchPredicate", "-", "Validate", "the", "instruction", "match", "against", "any", "complex", "target", "predicates", "not", "expressible", "via", "match", "classes", "."], "TS_V_token": ["AAP", "AAP::GR8RegClassID", "AAP::LDB_short", "AAP::LDW_short", "AAP::LDB_postinc_short", "AAP::LDW_postinc_short", "AAP::LDB_predec_short", "AAP::LDW_predec_short", "AAP::STB_short", "AAP::STW_short", "AAP::STB_postinc_short", "AAP::STW_postinc_short", "AAP::STB_predec_short", "AAP::STW_predec_short"], "File": "AAPAsmParser", "Func": "checkTargetMatchPredicate", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28955, "Length": 155}
{"ground_truth": ["", "static", "std", "::", "unique_ptr", "<", "AAPOperand", ">", "CreateReg", "(", "unsigned", "RegNo", ",", "SMLoc", "S", ",", "SMLoc", "E", ")", "{", "auto", "Op", "=", "make_unique", "<", "AAPOperand", ">", "(", "Register", ")", ";", "Op", "->", "Reg", ".", "RegNum", "=", "RegNo", ";", "Op", "->", "StartLoc", "=", "S", ";", "Op", "->", "EndLoc", "=", "E", ";", "return", "Op", ";", "}", ""], "natrual_language": ["CreateReg", "-", "Allocate", "a", "single", "virtual", "register", "for", "the", "given", "type", "."], "TS_V_token": ["AAP", "AAP", "AAP"], "File": "AAPAsmParser", "Func": "CreateReg", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28956, "Length": 54}
{"ground_truth": ["", "SMLoc", "getEndLoc", "(", ")", "const", "{", "return", "EndLoc", ";", "}", ""], "natrual_language": ["getEndLoc", "-", "Get", "the", "location", "of", "the", "last", "token", "of", "this", "operand", "."], "TS_V_token": ["AAP"], "File": "AAPAsmParser", "Func": "getEndLoc", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28957, "Length": 10}
{"ground_truth": ["", "unsigned", "getReg", "(", ")", "const", "{", "assert", "(", "Kind", "==", "Register", "&&", "\"Invalid type access!\"", ")", ";", "return", "Reg", ".", "RegNum", ";", "}", ""], "natrual_language": ["Returns", "the", "register", "associated", "with", "this", "edge", "."], "TS_V_token": ["AAP", "\"Invalid type access!\""], "File": "AAPAsmParser", "Func": "getReg", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28958, "Length": 21}
{"ground_truth": ["", "SMLoc", "getStartLoc", "(", ")", "const", "{", "return", "StartLoc", ";", "}", ""], "natrual_language": ["getStartLoc", "-", "Get", "the", "location", "of", "the", "first", "token", "of", "this", "operand", "."], "TS_V_token": ["AAP"], "File": "AAPAsmParser", "Func": "getStartLoc", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28959, "Length": 10}
{"ground_truth": ["", "bool", "isImm", "(", ")", "const", "{", "return", "Kind", "==", "Immediate", ";", "}", ""], "natrual_language": ["isImm", "-", "Is", "this", "an", "immediate", "operand", "?"], "TS_V_token": ["AAP"], "File": "AAPAsmParser", "Func": "isImm", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28960, "Length": 12}
{"ground_truth": ["", "bool", "isMem", "(", ")", "const", "{", "return", "false", ";", "}", ""], "natrual_language": ["isMem", "-", "Is", "this", "a", "memory", "operand", "?"], "TS_V_token": ["AAP"], "File": "AAPAsmParser", "Func": "isMem", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28961, "Length": 10}
{"ground_truth": ["", "bool", "isReg", "(", ")", "const", "{", "return", "Kind", "==", "Register", ";", "}", ""], "natrual_language": ["isReg", "-", "Is", "this", "a", "register", "operand", "?"], "TS_V_token": ["AAP"], "File": "AAPAsmParser", "Func": "isReg", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28962, "Length": 12}
{"ground_truth": ["", "bool", "isToken", "(", ")", "const", "{", "return", "Kind", "==", "Token", ";", "}", ""], "natrual_language": ["isToken", "-", "Is", "this", "a", "token", "operand", "?"], "TS_V_token": ["AAP"], "File": "AAPAsmParser", "Func": "isToken", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28963, "Length": 12}
{"ground_truth": ["", "bool", "AAPAsmParser", "::", "MatchAndEmitInstruction", "(", "SMLoc", "IDLoc", ",", "unsigned", "&", "Opcode", ",", "OperandVector", "&", "Operands", ",", "MCStreamer", "&", "Out", ",", "uint64_t", "&", "ErrorInfo", ",", "bool", "matchingInlineAsm", ")", "{", "MCInst", "Inst", ";", "SMLoc", "ErrorLoc", ";", "switch", "(", "MatchInstructionImpl", "(", "Operands", ",", "Inst", ",", "ErrorInfo", ",", "matchingInlineAsm", ")", ")", "{", "default", ":", "break", ";", "case", "Match_Success", ":", "Out", ".", "EmitInstruction", "(", "Inst", ",", "getSTI", "(", ")", ")", ";", "return", "false", ";", "case", "Match_MissingFeature", ":", "{", "assert", "(", "ErrorInfo", "&&", "\"Unknown missing feature!\"", ")", ";", "std", "::", "string", "Msg", "=", "\"Use of this instruction requires:\"", ";", "unsigned", "Mask", "=", "1", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "(", "sizeof", "(", "ErrorInfo", ")", "*", "8", "-", "1", ")", ";", "++", "i", ")", "{", "if", "(", "ErrorInfo", "&", "Mask", ")", "{", "Msg", "+=", "\" \"", ";", "Msg", "+=", "getSubtargetFeatureName", "(", "ErrorInfo", "&", "Mask", ")", ";", "}", "Mask", "<<=", "1", ";", "}", "return", "Error", "(", "IDLoc", ",", "Msg", ")", ";", "}", "case", "Match_MnemonicFail", ":", "return", "Error", "(", "IDLoc", ",", "\"Unrecognized instruction mnemonic\"", ")", ";", "case", "Match_InvalidOperand", ":", "ErrorLoc", "=", "IDLoc", ";", "if", "(", "ErrorInfo", "!=", "~", "0U", ")", "{", "if", "(", "ErrorInfo", ">=", "Operands", ".", "size", "(", ")", ")", "return", "Error", "(", "IDLoc", ",", "\"Too few operands for instruction\"", ")", ";", "ErrorLoc", "=", "(", "(", "AAPOperand", "&", ")", "*", "Operands", "[", "ErrorInfo", "]", ")", ".", "getStartLoc", "(", ")", ";", "if", "(", "ErrorLoc", "==", "SMLoc", "(", ")", ")", "ErrorLoc", "=", "IDLoc", ";", "}", "return", "Error", "(", "IDLoc", ",", "\"Invalid operand for instruction\"", ")", ";", "}", "llvm_unreachable", "(", "\"Unknown match type detected!\"", ")", ";", "}", ""], "natrual_language": ["MatchAndEmitInstruction", "-", "Recognize", "a", "series", "of", "operands", "of", "a", "parsed", "instruction", "as", "an", "actual", "MCInst", "and", "emit", "it", "to", "the", "specified", "MCStreamer", "."], "TS_V_token": ["AAP", "AAP", "\"Unknown missing feature!\"", "\"Use of this instruction requires:\"", "1", "0", "8", "1", "\" \"", "1", "\"Unrecognized instruction mnemonic\"", "0U", "\"Too few operands for instruction\"", "AAP", "\"Invalid operand for instruction\"", "\"Unknown match type detected!\""], "File": "AAPAsmParser", "Func": "MatchAndEmitInstruction", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28964, "Length": 241}
{"ground_truth": ["", "bool", "AAPAsmParser", "::", "ParseDirective", "(", "AsmToken", "DirectiveID", ")", "{", "return", "true", ";", "}", ""], "natrual_language": ["ParseDirective", "-", "Parse", "a", "target", "specific", "assembler", "directive", "This", "method", "is", "deprecated", ",", "use", "'parseDirective", "'", "instead", "."], "TS_V_token": ["AAP", "AAP"], "File": "AAPAsmParser", "Func": "ParseDirective", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28965, "Length": 13}
{"ground_truth": ["", "bool", "AAPAsmParser", "::", "ParseInstruction", "(", "ParseInstructionInfo", "&", "Info", ",", "StringRef", "Name", ",", "SMLoc", "NameLoc", ",", "OperandVector", "&", "Operands", ")", "{", "Operands", ".", "push_back", "(", "AAPOperand", "::", "CreateToken", "(", "Name", ",", "NameLoc", ")", ")", ";", "if", "(", "getLexer", "(", ")", ".", "is", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "return", "false", ";", "if", "(", "ParseOperand", "(", "Operands", ")", ")", "return", "true", ";", "while", "(", "getLexer", "(", ")", ".", "isNot", "(", "AsmToken", "::", "EndOfStatement", ")", "&&", "getLexer", "(", ")", ".", "is", "(", "AsmToken", "::", "Comma", ")", ")", "{", "getLexer", "(", ")", ".", "Lex", "(", ")", ";", "if", "(", "ParseOperand", "(", "Operands", ")", ")", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["ParseInstruction", "-", "Parse", "one", "assembly", "instruction", "."], "TS_V_token": ["AAP", "AAP", "AAPOperand::CreateToken"], "File": "AAPAsmParser", "Func": "ParseInstruction", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28966, "Length": 108}
{"ground_truth": ["", "void", "print", "(", "raw_ostream", "&", "OS", ")", "const", "{", "}", ""], "natrual_language": ["print", "-", "Print", "a", "debug", "representation", "of", "the", "operand", "to", "the", "given", "stream", "."], "TS_V_token": ["AAP"], "File": "AAPAsmParser", "Func": "print", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28967, "Length": 10}
{"ground_truth": ["", "void", "AAPAsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "if", "(", "emitPseudoExpansionLowering", "(", "*", "OutStreamer", ",", "MI", ")", ")", "return", ";", "AAPMCInstLower", "MCInstLowering", "(", "OutContext", ",", "*", "this", ")", ";", "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": ["AAP", "AAP", "AAP"], "File": "AAPAsmPrinter", "Func": "EmitInstruction", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28968, "Length": 53}
{"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"AAP Assembly Printer\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["AAP", "\"AAP Assembly Printer\""], "File": "AAPAsmPrinter", "Func": "getPassName", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28969, "Length": 11}
{"ground_truth": ["", "bool", "AAPAsmPrinter", "::", "lowerOperand", "(", "const", "MachineOperand", "&", "MO", ",", "MCOperand", "&", "MCOp", ")", "{", "AAPMCInstLower", "MCInstLowering", "(", "OutContext", ",", "*", "this", ")", ";", "return", "MCInstLowering", ".", "LowerMachineOperand", "(", "MO", ",", "MCOp", ")", ";", "}", ""], "natrual_language": ["Wrapper", "for", "MCInstLowering.lowerOperand", "(", ")", "for", "the", "tblgen'erated", "pseudo", "lowering", "."], "TS_V_token": ["AAP", "AAP", "AAP"], "File": "AAPAsmPrinter", "Func": "lowerOperand", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28970, "Length": 35}
{"ground_truth": ["", "bool", "AAPAsmPrinter", "::", "PrintAsmMemoryOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNo", ",", "unsigned", "AsmVariant", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "O", ")", "{", "printMemOffOperand", "(", "MI", ",", "OpNo", ",", "O", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "operand", "of", "MI", ",", "an", "INLINEASM", "instruction", ",", "using", "the", "specified", "assembler", "variant", "as", "an", "address", "."], "TS_V_token": ["AAP", "AAP"], "File": "AAPAsmPrinter", "Func": "PrintAsmMemoryOperand", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28971, "Length": 39}
{"ground_truth": ["", "bool", "AAPAsmPrinter", "::", "PrintAsmOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNo", ",", "unsigned", "AsmVariant", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "O", ")", "{", "printOperand", "(", "MI", ",", "OpNo", ",", "O", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["PrintAsmOperand", "-", "Print", "out", "an", "operand", "for", "an", "inline", "asm", "expression", "."], "TS_V_token": ["AAP", "AAP"], "File": "AAPAsmPrinter", "Func": "PrintAsmOperand", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28972, "Length": 39}
{"ground_truth": ["", "DecodeStatus", "AAPDisassembler", "::", "getInstruction", "(", "MCInst", "&", "MI", ",", "uint64_t", "&", "Size", ",", "ArrayRef", "<", "uint8_t", ">", "Bytes", ",", "uint64_t", "Address", ",", "raw_ostream", "&", "os", ",", "raw_ostream", "&", "cs", ")", "const", "{", "uint32_t", "Insn", ";", "DecodeStatus", "Result", ";", "if", "(", "Bytes", ".", "size", "(", ")", "<", "2", ")", "{", "Size", "=", "0", ";", "return", "MCDisassembler", "::", "Fail", ";", "}", "Insn", "=", "(", "Bytes", "[", "1", "]", "<<", "8", ")", "|", "(", "Bytes", "[", "0", "]", "<<", "0", ")", ";", "Result", "=", "decodeInstruction", "(", "DecoderTable16", ",", "MI", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Result", "!=", "MCDisassembler", "::", "Fail", ")", "{", "Size", "=", "2", ";", "return", "Result", ";", "}", "if", "(", "Bytes", ".", "size", "(", ")", "<", "4", ")", "{", "Size", "=", "0", ";", "return", "MCDisassembler", "::", "Fail", ";", "}", "Insn", "=", "(", "Bytes", "[", "3", "]", "<<", "24", ")", "|", "(", "Bytes", "[", "2", "]", "<<", "16", ")", "|", "(", "Bytes", "[", "1", "]", "<<", "8", ")", "|", "(", "Bytes", "[", "0", "]", "<<", "0", ")", ";", "Result", "=", "decodeInstruction", "(", "DecoderTable32", ",", "MI", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Result", "!=", "MCDisassembler", "::", "Fail", ")", "{", "Size", "=", "4", ";", "return", "Result", ";", "}", "Size", "=", "2", ";", "return", "MCDisassembler", "::", "Fail", ";", "}", ""], "natrual_language": ["Returns", "the", "disassembly", "of", "a", "single", "instruction", "."], "TS_V_token": ["AAP", "AAP", "2", "0", "1", "8", "0", "0", "2", "4", "0", "3", "24", "2", "16", "1", "8", "0", "0", "4", "2"], "File": "AAPDisassembler", "Func": "getInstruction", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28973, "Length": 216}
{"ground_truth": ["", "MachineBasicBlock", "::", "iterator", "AAPFrameLowering", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "assert", "(", "!", "hasFP", "(", "MF", ")", "&&", "\"Frame pointer unsupported!\"", ")", ";", "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": ["AAP", "AAP", "\"Frame pointer unsupported!\""], "File": "AAPFrameLowering", "Func": "eliminateCallFramePseudoInstr", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28974, "Length": 42}
{"ground_truth": ["", "void", "AAPFrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "const", "MachineFrameInfo", "&", "MFrameInfo", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "AAPMachineFunctionInfo", "*", "MFuncInfo", "=", "MF", ".", "getInfo", "<", "AAPMachineFunctionInfo", ">", "(", ")", ";", "const", "AAPInstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "AAPInstrInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "auto", "MBBI", "=", "MBB", ".", "getLastNonDebugInstr", "(", ")", ";", "DebugLoc", "DL", "=", "MBBI", "!=", "MBB", ".", "end", "(", ")", "?", "MBBI", "->", "getDebugLoc", "(", ")", ":", "DebugLoc", "(", ")", ";", "assert", "(", "(", "MBBI", "->", "getDesc", "(", ")", ".", "isReturn", "(", ")", ")", "&&", "\"Epilogue can only be inserted in returning blocks\"", ")", ";", "const", "uint64_t", "StackSize", "=", "MFrameInfo", ".", "getStackSize", "(", ")", ";", "uint64_t", "NumBytes", "=", "StackSize", "-", "MFuncInfo", "->", "getCalleeSavedFrameSize", "(", ")", ";", "const", "unsigned", "SP", "=", "AAPRegisterInfo", "::", "getStackPtrRegister", "(", ")", ";", "assert", "(", "!", "hasFP", "(", "MF", ")", "&&", "\"Frame pointer unsupported!\"", ")", ";", "if", "(", "NumBytes", ")", "{", "const", "uint64_t", "Addend", "=", "NumBytes", "%", "1023", ";", "const", "uint64_t", "NumChunks", "=", "NumBytes", "/", "1023", ";", "for", "(", "uint64_t", "i", "=", "0", ";", "i", "<", "NumChunks", ";", "++", "i", ")", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "AAP", "::", "ADDI_i10", ")", ",", "SP", ")", ".", "addReg", "(", "SP", ")", ".", "addImm", "(", "1023", ")", ";", "}", "if", "(", "Addend", ")", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "AAP", "::", "ADDI_i10", ")", ",", "SP", ")", ".", "addReg", "(", "SP", ")", ".", "addImm", "(", "Addend", ")", ";", "}", "}", "}", ""], "natrual_language": ["Insert", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["AAP", "AAP", "AAP", "AAP", "AAP", "AAP", "\"Epilogue can only be inserted in returning blocks\"", "AAP", "\"Frame pointer unsupported!\"", "1023", "1023", "0", "AAP::ADDI_i10", "1023", "AAP::ADDI_i10"], "File": "AAPFrameLowering", "Func": "emitEpilogue", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28975, "Length": 257}
{"ground_truth": ["", "void", "AAPFrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "MachineFrameInfo", "&", "MFrameInfo", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "AAPMachineFunctionInfo", "*", "MFuncInfo", "=", "MF", ".", "getInfo", "<", "AAPMachineFunctionInfo", ">", "(", ")", ";", "const", "AAPInstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "AAPInstrInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "auto", "MBBI", "=", "MBB", ".", "begin", "(", ")", ";", "DebugLoc", "DL", "=", "MBBI", "!=", "MBB", ".", "end", "(", ")", "?", "MBBI", "->", "getDebugLoc", "(", ")", ":", "DebugLoc", "(", ")", ";", "const", "uint64_t", "StackSize", "=", "MFrameInfo", ".", "getStackSize", "(", ")", ";", "assert", "(", "!", "hasFP", "(", "MF", ")", "&&", "\"Frame pointer unsupported!\"", ")", ";", "uint64_t", "NumBytes", "=", "StackSize", "-", "MFuncInfo", "->", "getCalleeSavedFrameSize", "(", ")", ";", "const", "unsigned", "SP", "=", "AAPRegisterInfo", "::", "getStackPtrRegister", "(", ")", ";", "if", "(", "NumBytes", ")", "{", "const", "uint64_t", "Addend", "=", "NumBytes", "%", "1023", ";", "const", "uint64_t", "NumChunks", "=", "NumBytes", "/", "1023", ";", "for", "(", "uint64_t", "i", "=", "0", ";", "i", "<", "NumChunks", ";", "++", "i", ")", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "AAP", "::", "SUBI_i10", ")", ",", "SP", ")", ".", "addReg", "(", "SP", ")", ".", "addImm", "(", "1023", ")", ";", "}", "if", "(", "Addend", ")", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "AAP", "::", "SUBI_i10", ")", ",", "SP", ")", ".", "addReg", "(", "SP", ")", ".", "addImm", "(", "Addend", ")", ";", "}", "}", "}", ""], "natrual_language": ["emitProlog/emitEpilog", "-", "These", "methods", "insert", "prolog", "and", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["AAP", "AAP", "AAP", "AAP", "AAP", "AAP", "\"Frame pointer unsupported!\"", "AAP", "1023", "1023", "0", "AAP::SUBI_i10", "1023", "AAP::SUBI_i10"], "File": "AAPFrameLowering", "Func": "emitPrologue", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28976, "Length": 239}
{"ground_truth": ["", "bool", "AAPFrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "DisableFramePointerElim", "(", "MF", ")", "||", "MF", ".", "getFrameInfo", "(", ")", ".", "hasVarSizedObjects", "(", ")", ";", "}", ""], "natrual_language": ["hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "."], "TS_V_token": ["AAP", "AAP"], "File": "AAPFrameLowering", "Func": "hasFP", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28977, "Length": 37}
{"ground_truth": ["", "void", "AAPFrameLowering", "::", "processFunctionBeforeFrameFinalized", "(", "MachineFunction", "&", "MF", ",", "RegScavenger", "*", "RS", ")", "const", "{", "}", ""], "natrual_language": ["processFunctionBeforeFrameFinalized", "-", "This", "method", "is", "called", "immediately", "before", "the", "specified", "function", "'s", "frame", "layout", "(", "MF.getFrameInfo", "(", ")", ")", "is", "finalized", "."], "TS_V_token": ["AAP", "AAP"], "File": "AAPFrameLowering", "Func": "processFunctionBeforeFrameFinalized", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28978, "Length": 16}
{"ground_truth": ["", "void", "AAPInstPrinter", "::", "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": ["AAP", "AAP"], "File": "AAPInstPrinter", "Func": "printInst", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28979, "Length": 38}
{"ground_truth": ["", "void", "AAPInstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "const", "DebugLoc", "&", "DL", ",", "unsigned", "DestReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "assert", "(", "AAP", "::", "GR64RegClass", ".", "contains", "(", "DestReg", ")", "&&", "AAP", "::", "GR64RegClass", ".", "contains", "(", "DestReg", ")", "&&", "\"Impossible register-register copy\"", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "AAP", "::", "MOV_r", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "}", ""], "natrual_language": ["}", "Branch", "Analysis", "&", "Modification"], "TS_V_token": ["AAP", "AAP", "AAP::GR64RegClass", "AAP::GR64RegClass", "\"Impossible register-register copy\"", "AAP::MOV_r"], "File": "AAPInstrInfo", "Func": "copyPhysReg", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28980, "Length": 82}
{"ground_truth": ["", "unsigned", "AAPInstrInfo", "::", "getInstSizeInBytes", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "MI", ".", "getDesc", "(", ")", ".", "getSize", "(", ")", ";", "case", "TargetOpcode", "::", "EH_LABEL", ":", "case", "TargetOpcode", "::", "IMPLICIT_DEF", ":", "case", "TargetOpcode", "::", "KILL", ":", "case", "TargetOpcode", "::", "DBG_VALUE", ":", "return", "0", ";", "case", "TargetOpcode", "::", "INLINEASM", ":", "{", "const", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "auto", "&", "TM", "=", "static_cast", "<", "const", "AAPTargetMachine", "&", ">", "(", "MF", ".", "getTarget", "(", ")", ")", ";", "return", "getInlineAsmLength", "(", "MI", ".", "getOperand", "(", "0", ")", ".", "getSymbolName", "(", ")", ",", "*", "TM", ".", "getMCAsmInfo", "(", ")", ")", ";", "}", "}", "}", ""], "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": ["AAP", "AAP", "0", "AAP", "0"], "File": "AAPInstrInfo", "Func": "getInstSizeInBytes", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28981, "Length": 123}
{"ground_truth": ["", "const", "TargetRegisterInfo", "&", "getRegisterInfo", "(", ")", "const", "{", "return", "TRI", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["AAP"], "File": "AAPInstrInfo", "Func": "getRegisterInfo", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28982, "Length": 12}
{"ground_truth": ["", "unsigned", "AAPInstrInfo", "::", "insertBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "*", "TBB", ",", "MachineBasicBlock", "*", "FBB", ",", "ArrayRef", "<", "MachineOperand", ">", "Cond", ",", "const", "DebugLoc", "&", "DL", ",", "int", "*", "BytesAdded", ")", "const", "{", "assert", "(", "TBB", "&&", "\"InsertBranch cannot insert a fallthrough\"", ")", ";", "assert", "(", "Cond", ".", "size", "(", ")", "==", "3", "||", "Cond", ".", "size", "(", ")", "==", "0", ")", ";", "MachineInstr", "*", "MI", ";", "if", "(", "Cond", ".", "empty", "(", ")", ")", "{", "assert", "(", "!", "FBB", "&&", "\"Unconditional branch cannot have multiple successors\"", ")", ";", "MI", "=", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "AAP", "::", "BRA", ")", ")", ".", "addMBB", "(", "TBB", ")", ";", "if", "(", "BytesAdded", ")", "*", "BytesAdded", "+=", "getInstSizeInBytes", "(", "*", "MI", ")", ";", "return", "1", ";", "}", "unsigned", "Count", "=", "0", ";", "AAPCC", "::", "CondCode", "CC", "=", "(", "AAPCC", "::", "CondCode", ")", "Cond", "[", "0", "]", ".", "getImm", "(", ")", ";", "MI", "=", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "getBranchOpcodeFromCond", "(", "CC", ")", ")", ")", ".", "addMBB", "(", "TBB", ")", ".", "addReg", "(", "Cond", "[", "1", "]", ".", "getReg", "(", ")", ")", ".", "addReg", "(", "Cond", "[", "2", "]", ".", "getReg", "(", ")", ")", ";", "if", "(", "BytesAdded", ")", "*", "BytesAdded", "+=", "getInstSizeInBytes", "(", "*", "MI", ")", ";", "++", "Count", ";", "if", "(", "FBB", ")", "{", "MI", "=", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "AAP", "::", "BRA", ")", ")", ".", "addMBB", "(", "FBB", ")", ";", "if", "(", "BytesAdded", ")", "*", "BytesAdded", "+=", "getInstSizeInBytes", "(", "*", "MI", ")", ";", "++", "Count", ";", "}", "return", "Count", ";", "}", ""], "natrual_language": ["Insert", "branch", "code", "into", "the", "end", "of", "the", "specified", "MachineBasicBlock", "."], "TS_V_token": ["AAP", "AAP", "\"InsertBranch cannot insert a fallthrough\"", "3", "0", "\"Unconditional branch cannot have multiple successors\"", "AAP::BRA", "1", "0", "AAPCC::CondCode", "AAPCC::CondCode", "0", "1", "2", "AAP::BRA"], "File": "AAPInstrInfo", "Func": "insertBranch", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28983, "Length": 255}
{"ground_truth": ["", "unsigned", "AAPInstrInfo", "::", "insertIndirectBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "&", "DestBB", ",", "const", "DebugLoc", "&", "DL", ",", "int64_t", "BrOffset", ",", "RegScavenger", "*", "RS", ")", "const", "{", "auto", "&", "MI", "=", "*", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "AAP", "::", "BRA", ")", ")", ".", "addMBB", "(", "&", "DestBB", ")", ";", "return", "getInstSizeInBytes", "(", "MI", ")", ";", "}", ""], "natrual_language": ["Insert", "an", "unconditional", "indirect", "branch", "at", "the", "end", "of", "MBB", "to", "NewDestBB", "."], "TS_V_token": ["AAP", "AAP", "AAP::BRA"], "File": "AAPInstrInfo", "Func": "insertIndirectBranch", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28984, "Length": 60}
{"ground_truth": ["", "bool", "AAPInstrInfo", "::", "isBranchOffsetInRange", "(", "unsigned", "BranchOpc", ",", "int64_t", "BrOffset", ")", "const", "{", "switch", "(", "BranchOpc", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Invalid opcode\"", ")", ";", "case", "AAP", "::", "BRA", ":", "return", "AAP", "::", "isOff22", "(", "BrOffset", ")", ";", "case", "AAP", "::", "BEQ_", ":", "case", "AAP", "::", "BNE_", ":", "case", "AAP", "::", "BLTS_", ":", "case", "AAP", "::", "BLES_", ":", "case", "AAP", "::", "BLTU_", ":", "case", "AAP", "::", "BLEU_", ":", "return", "AAP", "::", "isOff10", "(", "BrOffset", ")", ";", "}", "}", ""], "natrual_language": ["Determine", "if", "the", "branch", "target", "is", "in", "range", "."], "TS_V_token": ["AAP", "AAP", "\"Invalid opcode\"", "AAP::BRA", "AAP::isOff22", "AAP::BEQ_", "AAP::BNE_", "AAP::BLTS_", "AAP::BLES_", "AAP::BLTU_", "AAP::BLEU_", "AAP::isOff10"], "File": "AAPInstrInfo", "Func": "isBranchOffsetInRange", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28985, "Length": 78}
{"ground_truth": ["", "unsigned", "AAPInstrInfo", "::", "isLoadFromStackSlot", "(", "const", "MachineInstr", "&", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "0", ";", "case", "AAP", "::", "LDB", ":", "case", "AAP", "::", "LDW", ":", "case", "AAP", "::", "LDB_postinc", ":", "case", "AAP", "::", "LDW_postinc", ":", "case", "AAP", "::", "LDB_predec", ":", "case", "AAP", "::", "LDW_predec", ":", "break", ";", "}", "if", "(", "MI", ".", "getOperand", "(", "1", ")", ".", "isFI", "(", ")", "&&", "MI", ".", "getOperand", "(", "2", ")", ".", "isImm", "(", ")", "&&", "MI", ".", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", "==", "0", ")", "{", "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": ["AAP", "AAP", "0", "AAP::LDB", "AAP::LDW", "AAP::LDB_postinc", "AAP::LDW_postinc", "AAP::LDB_predec", "AAP::LDW_predec", "1", "2", "2", "0", "1", "0", "0"], "File": "AAPInstrInfo", "Func": "isLoadFromStackSlot", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28986, "Length": 131}
{"ground_truth": ["", "unsigned", "AAPInstrInfo", "::", "isStoreToStackSlot", "(", "const", "MachineInstr", "&", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "0", ";", "case", "AAP", "::", "STB", ":", "case", "AAP", "::", "STW", ":", "case", "AAP", "::", "STB_postinc", ":", "case", "AAP", "::", "STW_postinc", ":", "case", "AAP", "::", "STB_predec", ":", "case", "AAP", "::", "STW_predec", ":", "break", ";", "}", "if", "(", "MI", ".", "getOperand", "(", "0", ")", ".", "isFI", "(", ")", "&&", "MI", ".", "getOperand", "(", "1", ")", ".", "isImm", "(", ")", "&&", "MI", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", "==", "0", ")", "{", "FrameIndex", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getIndex", "(", ")", ";", "return", "MI", ".", "getOperand", "(", "2", ")", ".", "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": ["AAP", "AAP", "0", "AAP::STB", "AAP::STW", "AAP::STB_postinc", "AAP::STW_postinc", "AAP::STB_predec", "AAP::STW_predec", "0", "1", "1", "0", "0", "2", "0"], "File": "AAPInstrInfo", "Func": "isStoreToStackSlot", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28987, "Length": 131}
{"ground_truth": ["", "void", "AAPInstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "unsigned", "DstReg", ",", "int", "FrameIdx", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFrameInfo", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "DebugLoc", "DL", "=", "MI", "!=", "MBB", ".", "end", "(", ")", "?", "MI", "->", "getDebugLoc", "(", ")", ":", "DebugLoc", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FrameIdx", ")", ",", "MachineMemOperand", "::", "MOLoad", ",", "MFrameInfo", ".", "getObjectSize", "(", "FrameIdx", ")", ",", "MFrameInfo", ".", "getObjectAlignment", "(", "FrameIdx", ")", ")", ";", "assert", "(", "(", "RC", "==", "&", "AAP", "::", "GR8RegClass", "||", "RC", "==", "&", "AAP", "::", "GR64RegClass", ")", "&&", "\"Unknown register class to store to stack slot\"", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "AAP", "::", "LDW", ")", ",", "DstReg", ")", ".", "addFrameIndex", "(", "FrameIdx", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["AAP", "AAP", "AAP::GR8RegClass", "AAP::GR64RegClass", "\"Unknown register class to store to stack slot\"", "AAP::LDW", "0"], "File": "AAPInstrInfo", "Func": "loadRegFromStackSlot", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28988, "Length": 165}
{"ground_truth": ["", "unsigned", "AAPInstrInfo", "::", "removeBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "int", "*", "BytesRemoved", ")", "const", "{", "unsigned", "Count", "=", "0", ";", "auto", "I", "=", "MBB", ".", "end", "(", ")", ";", "while", "(", "I", "!=", "MBB", ".", "begin", "(", ")", ")", "{", "--", "I", ";", "if", "(", "I", "->", "isDebugValue", "(", ")", ")", "continue", ";", "if", "(", "!", "I", "->", "isBranch", "(", ")", ")", "break", ";", "I", "->", "eraseFromParent", "(", ")", ";", "if", "(", "BytesRemoved", ")", "*", "BytesRemoved", "+=", "getInstSizeInBytes", "(", "*", "I", ")", ";", "I", "=", "MBB", ".", "end", "(", ")", ";", "++", "Count", ";", "}", "return", "Count", ";", "}", ""], "natrual_language": ["Remove", "the", "branching", "code", "at", "the", "end", "of", "the", "specific", "MBB", "."], "TS_V_token": ["AAP", "AAP", "0"], "File": "AAPInstrInfo", "Func": "removeBranch", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28989, "Length": 99}
{"ground_truth": ["", "bool", "AAPInstrInfo", "::", "reverseBranchCondition", "(", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Cond", ")", "const", "{", "assert", "(", "Cond", ".", "size", "(", ")", "==", "3", "&&", "\"Invalid branch\"", ")", ";", "AAPCC", "::", "CondCode", "RCC", "=", "reverseCondCode", "(", "(", "AAPCC", "::", "CondCode", ")", "Cond", "[", "0", "]", ".", "getImm", "(", ")", ")", ";", "if", "(", "RCC", "==", "AAPCC", "::", "COND_INVALID", ")", "return", "true", ";", "Cond", "[", "0", "]", ".", "setImm", "(", "RCC", ")", ";", "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": ["AAP", "AAP", "3", "\"Invalid branch\"", "AAPCC::CondCode", "AAPCC::CondCode", "0", "AAPCC::COND_INVALID", "0"], "File": "AAPInstrInfo", "Func": "reverseBranchCondition", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28990, "Length": 74}
{"ground_truth": ["", "void", "AAPInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FrameIdx", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFrameInfo", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "DebugLoc", "DL", "=", "MI", "!=", "MBB", ".", "end", "(", ")", "?", "MI", "->", "getDebugLoc", "(", ")", ":", "DebugLoc", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FrameIdx", ")", ",", "MachineMemOperand", "::", "MOStore", ",", "MFrameInfo", ".", "getObjectSize", "(", "FrameIdx", ")", ",", "MFrameInfo", ".", "getObjectAlignment", "(", "FrameIdx", ")", ")", ";", "assert", "(", "(", "RC", "==", "&", "AAP", "::", "GR8RegClass", "||", "RC", "==", "&", "AAP", "::", "GR64RegClass", ")", "&&", "\"Unknown register class to store to stack slot\"", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "AAP", "::", "STW", ")", ")", ".", "addFrameIndex", "(", "FrameIdx", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["AAP", "AAP", "AAP::GR8RegClass", "AAP::GR64RegClass", "\"Unknown register class to store to stack slot\"", "AAP::STW", "0"], "File": "AAPInstrInfo", "Func": "storeRegToStackSlot", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28991, "Length": 176}
{"ground_truth": ["", "virtual", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"AAP DAG->DAG Pattern Instruction Selection\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["AAP", "\"AAP DAG->DAG Pattern Instruction Selection\""], "File": "AAPISelDAGToDAG", "Func": "getPassName", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28992, "Length": 12}
{"ground_truth": ["", "const", "AAPTargetMachine", "&", "getTargetMachine", "(", ")", "{", "return", "static_cast", "<", "const", "AAPTargetMachine", "&", ">", "(", "TM", ")", ";", "}", ""], "natrual_language": ["Return", "the", "target", "machine", "(", "if", "available", ")", "."], "TS_V_token": ["AAP", "AAP", "AAP"], "File": "AAPISelDAGToDAG", "Func": "getTargetMachine", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28993, "Length": 19}
{"ground_truth": ["", "void", "AAPDAGToDAGISel", "::", "Select", "(", "SDNode", "*", "Node", ")", "{", "unsigned", "Opcode", "=", "Node", "->", "getOpcode", "(", ")", ";", "SDLoc", "dl", "(", "Node", ")", ";", "LLVM_DEBUG", "(", "errs", "(", ")", "<<", "\"Selecting: \"", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "errs", "(", ")", "<<", "\"\\n\"", ")", ";", "if", "(", "Node", "->", "isMachineOpcode", "(", ")", ")", "{", "LLVM_DEBUG", "(", "errs", "(", ")", "<<", "\"== \"", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "errs", "(", ")", "<<", "\"\\n\"", ")", ";", "return", ";", "}", "switch", "(", "Opcode", ")", "{", "case", "ISD", "::", "FrameIndex", ":", "{", "assert", "(", "Node", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i16", ")", ";", "int", "FI", "=", "cast", "<", "FrameIndexSDNode", ">", "(", "Node", ")", "->", "getIndex", "(", ")", ";", "SDValue", "TFI", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FI", ",", "MVT", "::", "i16", ")", ";", "SDNode", "*", "N", "=", "CurDAG", "->", "getMachineNode", "(", "AAP", "::", "LEA", ",", "dl", ",", "MVT", "::", "i16", ",", "TFI", ",", "CurDAG", "->", "getTargetConstant", "(", "0", ",", "dl", ",", "MVT", "::", "i16", ")", ")", ";", "ReplaceNode", "(", "Node", ",", "N", ")", ";", "return", ";", "}", "default", ":", "break", ";", "}", "SelectCode", "(", "Node", ")", ";", "}", ""], "natrual_language": ["Main", "hook", "for", "targets", "to", "transform", "nodes", "into", "machine", "nodes", "."], "TS_V_token": ["AAP", "AAP", "\"Selecting: \"", "\"\\n\"", "\"== \"", "\"\\n\"", "ISD::FrameIndex", "0", "MVT::i16", "MVT::i16", "AAP::LEA", "MVT::i16", "0", "MVT::i16"], "File": "AAPISelDAGToDAG", "Func": "Select", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28994, "Length": 190}
{"ground_truth": ["", "bool", "AAPDAGToDAGISel", "::", "SelectInlineAsmMemoryOperand", "(", "const", "SDValue", "&", "Op", ",", "unsigned", "ConstraintID", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "OutOps", ")", "{", "switch", "(", "ConstraintID", ")", "{", "default", ":", "return", "true", ";", "case", "InlineAsm", "::", "Constraint_i", ":", "case", "InlineAsm", "::", "Constraint_m", ":", "SDLoc", "DL", "(", "Op", ")", ";", "SDValue", "RC", "=", "CurDAG", "->", "getTargetConstant", "(", "AAP", "::", "GR64RegClass", ".", "getID", "(", ")", ",", "DL", ",", "MVT", "::", "i16", ")", ";", "SDNode", "*", "N", "=", "CurDAG", "->", "getMachineNode", "(", "TargetOpcode", "::", "COPY_TO_REGCLASS", ",", "DL", ",", "Op", ".", "getValueType", "(", ")", ",", "Op", ",", "RC", ")", ";", "SDValue", "Zero", "=", "CurDAG", "->", "getTargetConstant", "(", "0", ",", "DL", ",", "MVT", "::", "i16", ")", ";", "OutOps", ".", "push_back", "(", "SDValue", "(", "N", ",", "0", ")", ")", ";", "OutOps", ".", "push_back", "(", "Zero", ")", ";", "break", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["SelectInlineAsmMemoryOperand", "-", "Select", "the", "specified", "address", "as", "a", "target", "addressing", "mode", ",", "according", "to", "the", "specified", "constraint", "."], "TS_V_token": ["AAP", "AAP", "AAP::GR64RegClass", "MVT::i16", "0", "MVT::i16", "0"], "File": "AAPISelDAGToDAG", "Func": "SelectInlineAsmMemoryOperand", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28995, "Length": 138}
{"ground_truth": ["", "bool", "AAPTargetLowering", "::", "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", ")", ";", "return", "CCInfo", ".", "CheckReturn", "(", "Outs", ",", "RetCC_AAP", ")", ";", "}", ""], "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": ["AAP", "AAP", "ISD::OutputArg", "16", "AAP"], "File": "AAPISelLowering", "Func": "CanLowerReturn", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28996, "Length": 66}
{"ground_truth": ["", "MachineBasicBlock", "*", "AAPTargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MachineInstr", "&", "MI", ",", "MachineBasicBlock", "*", "MBB", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "case", "AAP", "::", "BR_CC", ":", "return", "emitBrCC", "(", "MI", ",", "MBB", ")", ";", "case", "AAP", "::", "SELECT_CC", ":", "return", "emitSelectCC", "(", "MI", ",", "MBB", ")", ";", "default", ":", "llvm_unreachable", "(", "\"Unexpected instruction for custom insertion\"", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'usesCustomInserter", "'", "flag", "."], "TS_V_token": ["AAP", "AAP", "AAP::BR_CC", "AAP::SELECT_CC", "\"Unexpected instruction for custom insertion\""], "File": "AAPISelLowering", "Func": "EmitInstrWithCustomInserter", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28997, "Length": 60}
{"ground_truth": ["", "MVT", "::", "SimpleValueType", "getCmpLibcallReturnType", "(", ")", "const", "override", "{", "return", "MVT", "::", "i16", ";", "}", ""], "natrual_language": ["Return", "the", "ValueType", "for", "comparison", "libcalls", "."], "TS_V_token": ["AAP", "MVT::SimpleValueType", "MVT::i16"], "File": "AAPISelLowering", "Func": "getCmpLibcallReturnType", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28998, "Length": 15}
{"ground_truth": ["", "TargetLowering", "::", "ConstraintType", "AAPTargetLowering", "::", "getConstraintType", "(", "StringRef", "Constraint", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "default", ":", "break", ";", "case", "'r'", ":", "return", "C_RegisterClass", ";", "}", "}", "return", "TargetLowering", "::", "getConstraintType", "(", "Constraint", ")", ";", "}", ""], "natrual_language": ["Given", "a", "constraint", "letter", ",", "return", "the", "type", "of", "constraint", "for", "this", "target", "."], "TS_V_token": ["AAP", "AAP", "1", "0"], "File": "AAPISelLowering", "Func": "getConstraintType", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 28999, "Length": 52}
{"ground_truth": ["", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "AAPTargetLowering", "::", "getRegForInlineAsmConstraint", "(", "const", "TargetRegisterInfo", "*", "TRI", ",", "StringRef", "Constraint", ",", "MVT", "VT", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "default", ":", "break", ";", "case", "'r'", ":", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "AAP", "::", "GR64RegClass", ")", ";", "}", "}", "return", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "TRI", ",", "Constraint", ",", "VT", ")", ";", "}", ""], "natrual_language": ["Given", "a", "physical", "register", "constraint", "(", "e.g", "."], "TS_V_token": ["AAP", "AAP", "1", "0", "0U", "AAP::GR64RegClass"], "File": "AAPISelLowering", "Func": "getRegForInlineAsmConstraint", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29000, "Length": 81}
{"ground_truth": ["", "EVT", "AAPTargetLowering", "::", "getSetCCResultType", "(", "const", "DataLayout", "&", "DL", ",", "LLVMContext", "&", "Context", ",", "EVT", "VT", ")", "const", "{", "if", "(", "!", "VT", ".", "isVector", "(", ")", ")", "{", "return", "MVT", "::", "i16", ";", "}", "return", "VT", ".", "changeVectorElementTypeToInteger", "(", ")", ";", "}", ""], "natrual_language": ["Return", "the", "value", "type", "to", "use", "for", "ISD", ":", ":SETCC", "."], "TS_V_token": ["AAP", "AAP", "MVT::i16"], "File": "AAPISelLowering", "Func": "getSetCCResultType", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29001, "Length": 43}
{"ground_truth": ["", "const", "char", "*", "AAPTargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "nullptr", ";", "case", "AAPISD", "::", "RET_FLAG", ":", "return", "\"AAPISD::RET_FLAG\"", ";", "case", "AAPISD", "::", "CALL", ":", "return", "\"AAPISD::CALL\"", ";", "case", "AAPISD", "::", "Wrapper", ":", "return", "\"AAPISD::Wrapper\"", ";", "case", "AAPISD", "::", "SELECT_CC", ":", "return", "\"AAPISD::SELECT_CC\"", ";", "}", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["AAP", "AAP", "AAPISD::RET_FLAG", "\"AAPISD::RET_FLAG\"", "AAPISD::CALL", "\"AAPISD::CALL\"", "AAPISD::Wrapper", "\"AAPISD::Wrapper\"", "AAPISD::SELECT_CC", "\"AAPISD::SELECT_CC\""], "File": "AAPISelLowering", "Func": "getTargetNodeName", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29002, "Length": 56}
{"ground_truth": ["", "SDValue", "AAPTargetLowering", "::", "LowerCall", "(", "TargetLowering", "::", "CallLoweringInfo", "&", "CLI", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "SelectionDAG", "&", "DAG", "=", "CLI", ".", "DAG", ";", "SDLoc", "&", "DL", "=", "CLI", ".", "DL", ";", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", "=", "CLI", ".", "Outs", ";", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", "=", "CLI", ".", "OutVals", ";", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", "=", "CLI", ".", "Ins", ";", "SDValue", "Chain", "=", "CLI", ".", "Chain", ";", "SDValue", "Callee", "=", "CLI", ".", "Callee", ";", "bool", "&", "isTailCall", "=", "CLI", ".", "IsTailCall", ";", "CallingConv", "::", "ID", "CallConv", "=", "CLI", ".", "CallConv", ";", "bool", "isVarArg", "=", "CLI", ".", "IsVarArg", ";", "isTailCall", "=", "false", ";", "switch", "(", "CallConv", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unsupported calling convention\"", ")", ";", "case", "CallingConv", "::", "Fast", ":", "case", "CallingConv", "::", "C", ":", "return", "LowerCCCCallTo", "(", "Chain", ",", "Callee", ",", "CallConv", ",", "isVarArg", ",", "isTailCall", ",", "Outs", ",", "OutVals", ",", "Ins", ",", "DL", ",", "DAG", ",", "InVals", ")", ";", "}", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "calls", "into", "the", "specified", "DAG", "."], "TS_V_token": ["AAP", "AAP", "ISD::OutputArg", "ISD::InputArg", "\"Unsupported calling convention\""], "File": "AAPISelLowering", "Func": "LowerCall", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29003, "Length": 165}
{"ground_truth": ["", "SDValue", "AAPTargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "const", "SDLoc", "&", "DL", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ",", "uint32_t", "*", "RegMask", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "RetCC_AAP", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "Chain", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "RVLocs", "[", "i", "]", ".", "getLocReg", "(", ")", ",", "RVLocs", "[", "i", "]", ".", "getValVT", "(", ")", ",", "InFlag", ")", ".", "getValue", "(", "1", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "2", ")", ";", "InVals", ".", "push_back", "(", "Chain", ".", "getValue", "(", "0", ")", ")", ";", "}", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "unsigned", "Reg", "=", "RVLocs", "[", "i", "]", ".", "getLocReg", "(", ")", ";", "RegMask", "[", "Reg", "/", "32", "]", "&=", "~", "(", "1u", "<<", "(", "Reg", "&", "32", ")", ")", ";", "}", "return", "Chain", ";", "}", ""], "natrual_language": ["LowerCallResult", "-", "Lower", "the", "result", "values", "of", "an", "ISD", ":", ":CALL", "into", "the", "appropriate", "copies", "out", "of", "appropriate", "physical", "registers", "."], "TS_V_token": ["AAP", "AAP", "ISD::InputArg", "16", "AAP", "0", "1", "2", "0", "0", "32", "1u", "32"], "File": "AAPISelLowering", "Func": "LowerCallResult", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29004, "Length": 222}
{"ground_truth": ["", "SDValue", "AAPTargetLowering", "::", "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", "LowerCCCArguments", "(", "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": ["AAP", "AAP", "ISD::InputArg", "\"Unsupported calling convention\""], "File": "AAPISelLowering", "Func": "LowerFormalArguments", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29005, "Length": 86}
{"ground_truth": ["", "SDValue", "AAPTargetLowering", "::", "LowerOperation", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "case", "ISD", "::", "GlobalAddress", ":", "return", "LowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "ExternalSymbol", ":", "return", "LowerExternalSymbol", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BlockAddress", ":", "return", "LowerBlockAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BR_CC", ":", "return", "LowerBR_CC", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SELECT_CC", ":", "return", "LowerSELECT_CC", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "VASTART", ":", "return", "LowerVASTART", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "RETURNADDR", ":", "return", "LowerRETURNADDR", "(", "Op", ",", "DAG", ")", ";", "}", "llvm_unreachable", "(", "\"unimplemented operand\"", ")", ";", "}", ""], "natrual_language": ["LowerOperation", "-", "Provide", "custom", "lowering", "hooks", "for", "some", "operations", "."], "TS_V_token": ["AAP", "AAP", "ISD::GlobalAddress", "ISD::ExternalSymbol", "ISD::BlockAddress", "ISD::BR_CC", "ISD::SELECT_CC", "ISD::VASTART", "ISD::RETURNADDR", "\"unimplemented operand\""], "File": "AAPISelLowering", "Func": "LowerOperation", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29006, "Length": 121}
{"ground_truth": ["", "SDValue", "AAPTargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", ",", "const", "SDLoc", "&", "DL", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_AAP", ")", ";", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", "(", "1", ",", "Chain", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "AAPRegisterInfo", "::", "getLinkRegister", "(", ")", ",", "MVT", "::", "i16", ")", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getRegInfo", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "MRI", ".", "disableCalleeSavedRegister", "(", "RVLocs", "[", "i", "]", ".", "getLocReg", "(", ")", ")", ";", "}", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Can only return in registers!\"", ")", ";", "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", "(", "AAPISD", "::", "RET_FLAG", ",", "DL", ",", "{", "MVT", "::", "Other", ",", "MVT", "::", "i16", "}", ",", "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": ["AAP", "AAP", "ISD::OutputArg", "16", "AAP", "4", "1", "AAP", "MVT::i16", "0", "0", "\"Can only return in registers!\"", "1", "0", "AAPISD::RET_FLAG", "MVT::Other", "MVT::i16"], "File": "AAPISelLowering", "Func": "LowerReturn", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29007, "Length": 311}
{"ground_truth": ["", "SDValue", "AAPTargetLowering", "::", "PerformDAGCombine", "(", "SDNode", "*", "N", ",", "DAGCombinerInfo", "&", "DCI", ")", "const", "{", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "case", "ISD", "::", "ADD", ":", "return", "PerformADDCombine", "(", "N", ",", "DCI", ")", ";", "default", ":", "break", ";", "}", "return", "SDValue", "(", ")", ";", "}", ""], "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": ["AAP", "AAP", "ISD::ADD"], "File": "AAPISelLowering", "Func": "PerformDAGCombine", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29008, "Length": 48}
{"ground_truth": ["", "void", "AAPTargetLowering", "::", "ReplaceNodeResults", "(", "SDNode", "*", "N", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "Results", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "case", "ISD", "::", "FLT_ROUNDS_", ":", "Results", ".", "push_back", "(", "DAG", ".", "getTargetConstant", "(", "-", "1", ",", "SDLoc", "(", "N", ")", ",", "MVT", "::", "i32", ")", ")", ";", "break", ";", "default", ":", "llvm_unreachable", "(", "\"Unhandled node in ReplaceNodeResults\"", ")", ";", "}", "}", ""], "natrual_language": ["ReplaceNodeResults", "-", "Replace", "the", "results", "of", "node", "with", "an", "illegal", "result", "type", "with", "new", "values", "built", "out", "of", "custom", "code", "."], "TS_V_token": ["AAP", "AAP", "ISD::FLT_ROUNDS_", "1", "MVT::i32", "\"Unhandled node in ReplaceNodeResults\""], "File": "AAPISelLowering", "Func": "ReplaceNodeResults", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29009, "Length": 69}
{"ground_truth": ["", "unsigned", "AAPMachineFunctionInfo", "::", "getGlobalBaseReg", "(", ")", "{", "if", "(", "GlobalBaseReg", ")", "return", "GlobalBaseReg", ";", "return", "GlobalBaseReg", "=", "MF", ".", "getRegInfo", "(", ")", ".", "createVirtualRegister", "(", "&", "AAP", "::", "GR64RegClass", ")", ";", "}", ""], "natrual_language": ["getGlobalBaseReg", "-", "Return", "a", "virtual", "register", "initialized", "with", "the", "the", "global", "base", "register", "value", "."], "TS_V_token": ["AAP", "AAP", "AAP::GR64RegClass"], "File": "AAPMachineFunctionInfo", "Func": "getGlobalBaseReg", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29010, "Length": 32}
{"ground_truth": ["", "void", "AAPMCCodeEmitter", "::", "encodeInstruction", "(", "MCInst", "const", "&", "MI", ",", "raw_ostream", "&", "OS", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "MCSubtargetInfo", "const", "&", "STI", ")", "const", "{", "const", "MCInstrDesc", "&", "Desc", "=", "MCII", ".", "get", "(", "MI", ".", "getOpcode", "(", ")", ")", ";", "uint64_t", "Binary", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "emitLittleEndian", "(", "Binary", ",", "OS", ",", "Desc", ".", "getSize", "(", ")", ")", ";", "++", "MCNumEmitted", ";", "}", ""], "natrual_language": ["Encode", "the", "given", "Inst", "to", "bytes", "and", "append", "to", "CB", "."], "TS_V_token": ["AAP", "AAP"], "File": "AAPMCCodeEmitter", "Func": "encodeInstruction", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29011, "Length": 73}
{"ground_truth": ["", "unsigned", "AAPMCCodeEmitter", "::", "getMachineOpValue", "(", "MCInst", "const", "&", "MI", ",", "MCOperand", "const", "&", "MO", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "MCSubtargetInfo", "const", "&", "STI", ")", "const", "{", "if", "(", "MO", ".", "isReg", "(", ")", ")", "return", "MCtx", ".", "getRegisterInfo", "(", ")", "->", "getEncodingValue", "(", "MO", ".", "getReg", "(", ")", ")", ";", "if", "(", "MO", ".", "isImm", "(", ")", ")", "return", "static_cast", "<", "unsigned", ">", "(", "MO", ".", "getImm", "(", ")", ")", ";", "assert", "(", "MO", ".", "isExpr", "(", ")", ")", ";", "const", "MCExpr", "*", "Expr", "=", "MO", ".", "getExpr", "(", ")", ";", "MCExpr", "::", "ExprKind", "Kind", "=", "Expr", "->", "getKind", "(", ")", ";", "int64_t", "Res", ";", "if", "(", "Expr", "->", "evaluateAsAbsolute", "(", "Res", ")", ")", "return", "Res", ";", "assert", "(", "Kind", "==", "MCExpr", "::", "SymbolRef", "&&", "\"Currently only symbol operands are supported\"", ")", ";", "AAP", "::", "Fixups", "FixupKind", "=", "AAP", "::", "Fixups", "(", "0", ")", ";", "const", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "if", "(", "Opcode", "==", "AAP", "::", "BAL", ")", "{", "FixupKind", "=", "AAP", "::", "fixup_AAP_BAL32", ";", "}", "else", "{", "assert", "(", "Opcode", "==", "AAP", "::", "BAL_short", "&&", "\"Unhandled MCInst for getMachineOpValue\"", ")", ";", "FixupKind", "=", "AAP", "::", "fixup_AAP_BAL16", ";", "}", "Fixups", ".", "push_back", "(", "MCFixup", "::", "create", "(", "0", ",", "Expr", ",", "MCFixupKind", "(", "FixupKind", ")", ",", "MI", ".", "getLoc", "(", ")", ")", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["getMachineOpValue", "-", "Return", "binary", "encoding", "of", "operand", "."], "TS_V_token": ["AAP", "AAP", "\"Currently only symbol operands are supported\"", "AAP::Fixups", "AAP::Fixups", "0", "AAP::BAL", "AAP::fixup_AAP_BAL32", "AAP::BAL_short", "\"Unhandled MCInst for getMachineOpValue\"", "AAP::fixup_AAP_BAL16", "0", "0"], "File": "AAPMCCodeEmitter", "Func": "getMachineOpValue", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29012, "Length": 218}
{"ground_truth": ["", "MCSymbol", "*", "AAPMCInstLower", "::", "GetBlockAddressSymbol", "(", "const", "MachineOperand", "&", "MO", ")", "const", "{", "switch", "(", "MO", ".", "getTargetFlags", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown target flag on GV operand\"", ")", ";", "case", "0", ":", "break", ";", "}", "return", "Printer", ".", "GetBlockAddressSymbol", "(", "MO", ".", "getBlockAddress", "(", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "MCSymbol", "used", "to", "satisfy", "BlockAddress", "uses", "of", "the", "specified", "basic", "block", "."], "TS_V_token": ["AAP", "AAP", "\"Unknown target flag on GV operand\"", "0"], "File": "AAPMCInstLower", "Func": "GetBlockAddressSymbol", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29013, "Length": 48}
{"ground_truth": ["", "MCSymbol", "*", "AAPMCInstLower", "::", "GetExternalSymbolSymbol", "(", "const", "MachineOperand", "&", "MO", ")", "const", "{", "switch", "(", "MO", ".", "getTargetFlags", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown target flag on GV operand\"", ")", ";", "case", "0", ":", "break", ";", "}", "return", "Printer", ".", "GetExternalSymbolSymbol", "(", "MO", ".", "getSymbolName", "(", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "MCSymbol", "for", "the", "specified", "ExternalSymbol", "."], "TS_V_token": ["AAP", "AAP", "\"Unknown target flag on GV operand\"", "0"], "File": "AAPMCInstLower", "Func": "GetExternalSymbolSymbol", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29014, "Length": 48}
{"ground_truth": ["", "void", "AAPRegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "MBBI", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", "RS", ")", "const", "{", "MachineInstr", "&", "MI", "=", "*", "MBBI", ";", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "DebugLoc", "DL", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "unsigned", "i", "=", "0", ";", "while", "(", "!", "MI", ".", "getOperand", "(", "i", ")", ".", "isFI", "(", ")", ")", "{", "++", "i", ";", "assert", "(", "i", "<", "MI", ".", "getNumOperands", "(", ")", "&&", "\"Instr does not have a Frame Index operand!\"", ")", ";", "}", "int", "FrameIdx", "=", "MI", ".", "getOperand", "(", "i", ")", ".", "getIndex", "(", ")", ";", "unsigned", "BaseReg", "=", "getFrameRegister", "(", "MF", ")", ";", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectOffset", "(", "FrameIdx", ")", ";", "if", "(", "!", "TFI", "->", "hasFP", "(", "MF", ")", ")", "{", "Offset", "+=", "MF", ".", "getFrameInfo", "(", ")", ".", "getStackSize", "(", ")", ";", "}", "Offset", "+=", "MI", ".", "getOperand", "(", "i", "+", "1", ")", ".", "getImm", "(", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "AAP", "::", "LEA", ")", "{", "const", "TargetInstrInfo", "*", "TII", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "unsigned", "DstReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "assert", "(", "(", "(", "Offset", ">=", "-", "1023", ")", "||", "(", "Offset", "<=", "1023", ")", ")", "&&", "\"Currently LEA immediates must be in the range [-1023, 1023]\"", ")", ";", "if", "(", "Offset", ">", "0", ")", "{", "BuildMI", "(", "MBB", ",", "&", "MI", ",", "DL", ",", "TII", "->", "get", "(", "AAP", "::", "ADDI_i10", ")", ",", "DstReg", ")", ".", "addReg", "(", "BaseReg", ")", ".", "addImm", "(", "Offset", ")", ";", "}", "else", "if", "(", "Offset", "<", "0", ")", "{", "BuildMI", "(", "MBB", ",", "&", "MI", ",", "DL", ",", "TII", "->", "get", "(", "AAP", "::", "SUBI_i10", ")", ",", "DstReg", ")", ".", "addReg", "(", "BaseReg", ")", ".", "addImm", "(", "-", "Offset", ")", ";", "}", "else", "{", "BuildMI", "(", "MBB", ",", "&", "MI", ",", "DL", ",", "TII", "->", "get", "(", "AAP", "::", "MOV_r", ")", ",", "DstReg", ")", ".", "addReg", "(", "BaseReg", ")", ";", "}", "MI", ".", "eraseFromParent", "(", ")", ";", "}", "else", "{", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "BaseReg", ",", "false", ")", ";", "MI", ".", "getOperand", "(", "i", "+", "1", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["AAP", "AAP", "0", "\"Instr does not have a Frame Index operand!\"", "1", "AAP::LEA", "0", "1023", "1023", "\"Currently LEA immediates must be in the range [-1023, 1023]\"", "0", "AAP::ADDI_i10", "0", "AAP::SUBI_i10", "AAP::MOV_r", "1"], "File": "AAPRegisterInfo", "Func": "eliminateFrameIndex", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29015, "Length": 397}
{"ground_truth": ["", "const", "MCPhysReg", "*", "AAPRegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "return", "CSR_SaveList", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["AAP", "AAP"], "File": "AAPRegisterInfo", "Func": "getCalleeSavedRegs", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29016, "Length": 18}
{"ground_truth": ["", "const", "uint32_t", "*", "AAPRegisterInfo", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", "MF", ",", "CallingConv", "::", "ID", ")", "const", "{", "return", "CSR_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["AAP", "AAP"], "File": "AAPRegisterInfo", "Func": "getCallPreservedMask", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29017, "Length": 22}
{"ground_truth": ["", "unsigned", "AAPRegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "return", "TFI", "->", "hasFP", "(", "MF", ")", "?", "getFramePtrRegister", "(", ")", ":", "getStackPtrRegister", "(", ")", ";", "}", ""], "natrual_language": ["Debug", "information", "queries", "."], "TS_V_token": ["AAP", "AAP"], "File": "AAPRegisterInfo", "Func": "getFrameRegister", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29018, "Length": 44}
{"ground_truth": ["", "BitVector", "AAPRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "Reserved", ".", "set", "(", "getLinkRegister", "(", ")", ")", ";", "Reserved", ".", "set", "(", "getStackPtrRegister", "(", ")", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "{", "Reserved", ".", "set", "(", "getFramePtrRegister", "(", ")", ")", ";", "}", "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": ["AAP", "AAP"], "File": "AAPRegisterInfo", "Func": "getReservedRegs", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29019, "Length": 77}
{"ground_truth": ["", "bool", "AAPRegisterInfo", "::", "requiresRegisterScavenging", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "false", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "requires", "(", "and", "can", "make", "use", "of", ")", "the", "register", "scavenger", "."], "TS_V_token": ["AAP", "AAP"], "File": "AAPRegisterInfo", "Func": "requiresRegisterScavenging", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29020, "Length": 16}
{"ground_truth": ["", "bool", "AAPRegisterInfo", "::", "trackLivenessAfterRegAlloc", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "live-ins", "should", "be", "tracked", "after", "register", "allocation", "."], "TS_V_token": ["AAP", "AAP"], "File": "AAPRegisterInfo", "Func": "trackLivenessAfterRegAlloc", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29021, "Length": 16}
{"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"AAP Short Instruction Peephole\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["AAP", "\"AAP Short Instruction Peephole\""], "File": "AAPShortInstrPeephole", "Func": "getPassName", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29022, "Length": 11}
{"ground_truth": ["", "bool", "ShortInstrPeephole", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "bool", "Changed", "=", "false", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "{", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "{", "Changed", "|=", "runOnInstruction", "(", "MI", ")", ";", "}", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AAP"], "File": "AAPShortInstrPeephole", "Func": "runOnMachineFunction", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29023, "Length": 46}
{"ground_truth": ["", "const", "AAPInstrInfo", "*", "getInstrInfo", "(", ")", "const", "override", "{", "return", "&", "InstrInfo", ";", "}", ""], "natrual_language": ["TargetInstrInfo", "getter", "."], "TS_V_token": ["AAP", "AAP"], "File": "AAPSubtarget", "Func": "getInstrInfo", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29024, "Length": 14}
{"ground_truth": ["", "const", "TargetRegisterInfo", "*", "getRegisterInfo", "(", ")", "const", "override", "{", "return", "&", "InstrInfo", ".", "getRegisterInfo", "(", ")", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["AAP"], "File": "AAPSubtarget", "Func": "getRegisterInfo", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29025, "Length": 18}
{"ground_truth": ["", "bool", "AAPPassConfig", "::", "addInstSelector", "(", ")", "{", "addPass", "(", "createAAPISelDag", "(", "getAAPTargetMachine", "(", ")", ",", "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": ["AAP", "AAP", "AAP", "AAP"], "File": "AAPTargetMachine", "Func": "addInstSelector", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29026, "Length": 25}
{"ground_truth": ["", "void", "AAPPassConfig", "::", "addPreEmitPass", "(", ")", "{", "addPass", "(", "&", "BranchRelaxationPassID", ")", ";", "addPass", "(", "createAAPShortInstrPeepholePass", "(", "getAAPTargetMachine", "(", ")", ")", ",", "false", ")", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["AAP", "AAP", "AAP", "AAP"], "File": "AAPTargetMachine", "Func": "addPreEmitPass", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29027, "Length": 26}
{"ground_truth": ["", "TargetPassConfig", "*", "AAPTargetMachine", "::", "createPassConfig", "(", "PassManagerBase", "&", "PM", ")", "{", "return", "new", "AAPPassConfig", "(", "*", "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": ["AAP", "AAP", "AAP"], "File": "AAPTargetMachine", "Func": "createPassConfig", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29028, "Length": 22}
{"ground_truth": ["", "TargetLoweringObjectFile", "*", "getObjFileLowering", "(", ")", "const", "override", "{", "return", "TLOF", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["Return", "information", "about", "object", "file", "lowering", "."], "TS_V_token": ["AAP"], "File": "AAPTargetMachine", "Func": "getObjFileLowering", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29029, "Length": 16}
{"ground_truth": ["", "const", "AAPSubtarget", "*", "getSubtargetImpl", "(", "const", "Function", "&", "F", ")", "const", "override", "{", "return", "&", "Subtarget", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["AAP", "AAP"], "File": "AAPTargetMachine", "Func": "getSubtargetImpl", "Target": "AAP", "Target_Clf": "MPU", "Compiler_Type": "LLVM", "Idx": 29030, "Length": 18}