{"ground_truth": ["", "void", "RISCVFrameLowering", "::", "determineFrameLayout", "(", "MachineFunction", "&", "MF", ")", "const", "{", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "RISCVRegisterInfo", "*", "RI", "=", "STI", ".", "getRegisterInfo", "(", ")", ";", "uint64_t", "FrameSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "Align", "StackAlign", "=", "getStackAlign", "(", ")", ";", "if", "(", "RI", "->", "needsStackRealignment", "(", "MF", ")", ")", "{", "Align", "MaxStackAlign", "=", "std", "::", "max", "(", "StackAlign", ",", "MFI", ".", "getMaxAlign", "(", ")", ")", ";", "FrameSize", "+=", "(", "MaxStackAlign", ".", "value", "(", ")", "-", "StackAlign", ".", "value", "(", ")", ")", ";", "StackAlign", "=", "MaxStackAlign", ";", "}", "uint64_t", "MaxCallSize", "=", "alignTo", "(", "MFI", ".", "getMaxCallFrameSize", "(", ")", ",", "StackAlign", ")", ";", "MFI", ".", "setMaxCallFrameSize", "(", "MaxCallSize", ")", ";", "FrameSize", "=", "alignTo", "(", "FrameSize", ",", "StackAlign", ")", ";", "MFI", ".", "setStackSize", "(", "FrameSize", ")", ";", "}", ""], "natrual_language": ["Determine", "the", "frame", "layout", "but", "do", "not", "update", "the", "machine", "function", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV"], "File": "RISCVFrameLowering", "Func": "determineFrameLayout", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 0, "Length": 133, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MVT", "getScalarShiftAmountTy", "(", "const", "DataLayout", "&", ",", "EVT", "LHSTy", ")", "const", "override", "{", "return", "LHSTy", ".", "getSizeInBits", "(", ")", "<=", "32", "?", "MVT", "::", "i32", ":", "MVT", "::", "i64", ";", "}", ""], "natrual_language": ["Return", "the", "type", "to", "use", "for", "a", "scalar", "shift", "opcode", ",", "given", "the", "shifted", "amount", "type", "."], "TS_V_token": ["RISCV", "32", "MVT::i32", "MVT::i64"], "File": "RISCVISelLowering (2)1", "Func": "getScalarShiftAmountTy", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "riscv_in_small_data_p", "(", "const_tree", "x", ")", "{", "if", "(", "TREE_CODE", "(", "x", ")", "==", "STRING_CST", "||", "TREE_CODE", "(", "x", ")", "==", "FUNCTION_DECL", ")", "return", "false", ";", "if", "(", "TREE_CODE", "(", "x", ")", "==", "VAR_DECL", "&&", "DECL_SECTION_NAME", "(", "x", ")", ")", "{", "const", "char", "*", "sec", "=", "DECL_SECTION_NAME", "(", "x", ")", ";", "return", "strcmp", "(", "sec", ",", "\".sdata\"", ")", "==", "0", "||", "strcmp", "(", "sec", ",", "\".sbss\"", ")", "==", "0", ";", "}", "return", "riscv_size_ok_for_small_data_p", "(", "int_size_in_bytes", "(", "TREE_TYPE", "(", "x", ")", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "EXP", "should", "be", "placed", "in", "the", "small", "data", "section", "."], "TS_V_token": ["riscv", "\".sdata\"", "0", "\".sbss\"", "0"], "File": "riscv", "Func": "riscv_in_small_data_p", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2, "Length": 85, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "riscv_valid_offset_p", "(", "rtx", "x", ",", "enum", "machine_mode", "mode", ")", "{", "if", "(", "!", "const_arith_operand", "(", "x", ",", "Pmode", ")", ")", "return", "false", ";", "if", "(", "GET_MODE_SIZE", "(", "mode", ")", ">", "UNITS_PER_WORD", "&&", "!", "SMALL_OPERAND", "(", "INTVAL", "(", "x", ")", "+", "GET_MODE_SIZE", "(", "mode", ")", "-", "UNITS_PER_WORD", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", ",", "for", "every", "base", "register", "BASE_REG", ",", "(", "plus", "BASE_REG", "X", ")", "can", "address", "a", "value", "of", "mode", "MODE", "."], "TS_V_token": ["riscv"], "File": "riscv2", "Func": "riscv_valid_offset_p", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3, "Length": 57, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "riscv_split_64bit_move_p", "(", "rtx", "dest", ",", "rtx", "src", ")", "{", "if", "(", "TARGET_64BIT", ")", "return", "false", ";", "if", "(", "TARGET_DOUBLE_FLOAT", "&&", "(", "(", "FP_REG_RTX_P", "(", "src", ")", "&&", "FP_REG_RTX_P", "(", "dest", ")", ")", "||", "(", "FP_REG_RTX_P", "(", "dest", ")", "&&", "MEM_P", "(", "src", ")", ")", "||", "(", "FP_REG_RTX_P", "(", "src", ")", "&&", "MEM_P", "(", "dest", ")", ")", "||", "(", "FP_REG_RTX_P", "(", "dest", ")", "&&", "src", "==", "CONST0_RTX", "(", "GET_MODE", "(", "src", ")", ")", ")", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "a", "64-bit", "move", "from", "SRC", "to", "DEST", "should", "be", "split", "into", "two", "."], "TS_V_token": ["riscv"], "File": "riscv", "Func": "riscv_split_64bit_move_p", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 4, "Length": 83, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "inline", "unsigned", "int", "function_base", "::", "call_properties", "(", "const", "function_instance", "&", "instance", ")", "const", "{", "unsigned", "int", "flags", "=", "0", ";", "if", "(", "instance", ".", "any_type_float_p", "(", ")", ")", "return", "flags", "|", "CP_READ_FPCR", "|", "CP_RAISE_FP_EXCEPTIONS", ";", "return", "flags", ";", "}", ""], "natrual_language": ["Default", "implementation", "of", "function_base", ":", ":call_properties", ",", "with", "conservatively", "correct", "behavior", "for", "floating-point", "instructions", "."], "TS_V_token": ["riscv", "0"], "File": "riscv-vector-builtins", "Func": "call_properties", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 5, "Length": 39, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "RISCVTargetLowering", "::", "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", "(", ")", ")", ";", "analyzeOutputArgs", "(", "DAG", ".", "getMachineFunction", "(", ")", ",", "CCInfo", ",", "Outs", ",", "true", ",", "nullptr", ")", ";", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", "(", "1", ",", "Chain", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RVLocs", ".", "size", "(", ")", ";", "i", "<", "e", ";", "++", "i", ")", "{", "SDValue", "Val", "=", "OutVals", "[", "i", "]", ";", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Can only return in registers!\"", ")", ";", "assert", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "Full", "&&", "\"Unexpected CCValAssign::LocInfo\"", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "VA", ".", "getLocReg", "(", ")", ",", "Val", ",", "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", "(", "RISCVISD", "::", "RET_FLAG", ",", "DL", ",", "MVT", "::", "Other", ",", "RetOps", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["RISCV", "RISCV", "ISD::OutputArg", "16", "4", "1", "0", "\"Can only return in registers!\"", "\"Unexpected CCValAssign::LocInfo\"", "1", "0", "RISCVISD::RET_FLAG", "MVT::Other"], "File": "RISCVISelLowering17", "Func": "LowerReturn", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 6, "Length": 271, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVInstrInfo", "::", "getMemOperandWithOffsetWidth", "(", "const", "MachineInstr", "&", "LdSt", ",", "const", "MachineOperand", "*", "&", "BaseReg", ",", "int64_t", "&", "Offset", ",", "unsigned", "&", "Width", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "!", "LdSt", ".", "mayLoadOrStore", "(", ")", ")", "return", "false", ";", "if", "(", "LdSt", ".", "getNumExplicitOperands", "(", ")", "!=", "3", ")", "return", "false", ";", "if", "(", "!", "LdSt", ".", "getOperand", "(", "1", ")", ".", "isReg", "(", ")", "||", "!", "LdSt", ".", "getOperand", "(", "2", ")", ".", "isImm", "(", ")", ")", "return", "false", ";", "if", "(", "!", "LdSt", ".", "hasOneMemOperand", "(", ")", ")", "return", "false", ";", "Width", "=", "(", "*", "LdSt", ".", "memoperands_begin", "(", ")", ")", "->", "getSize", "(", ")", ";", "BaseReg", "=", "&", "LdSt", ".", "getOperand", "(", "1", ")", ";", "Offset", "=", "LdSt", ".", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "get", "the", "base", "operand", ",", "byte", "offset", "of", "an", "instruction", "and", "the", "memory", "width", "."], "TS_V_token": ["RISCV", "RISCV", "3", "1", "2", "1", "2"], "File": "RISCVInstrInfo (2)", "Func": "getMemOperandWithOffsetWidth", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 7, "Length": 139, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "riscv_cannot_force_const_mem", "(", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "rtx", "x", ")", "{", "enum", "riscv_symbol_type", "type", ";", "rtx", "base", ",", "offset", ";", "subrtx_iterator", "::", "array_type", "array", ";", "FOR_EACH_SUBRTX", "(", "iter", ",", "array", ",", "x", ",", "ALL", ")", "if", "(", "GET_CODE", "(", "*", "iter", ")", "==", "CONST_POLY_INT", ")", "return", "true", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "HIGH", ")", "return", "true", ";", "split_const", "(", "x", ",", "&", "base", ",", "&", "offset", ")", ";", "if", "(", "riscv_symbolic_constant_p", "(", "base", ",", "&", "type", ")", ")", "{", "if", "(", "SMALL_OPERAND", "(", "INTVAL", "(", "offset", ")", ")", "&&", "riscv_symbol_insns", "(", "type", ")", ">", "0", ")", "return", "true", ";", "if", "(", "flag_pic", ")", "return", "true", ";", "}", "if", "(", "tls_referenced_p", "(", "x", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Implement", "TARGET_CANNOT_FORCE_CONST_MEM", "."], "TS_V_token": ["riscv", "0"], "File": "riscv1", "Func": "riscv_cannot_force_const_mem", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 8, "Length": 125, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "hash_set", "<", "set_info", "*", ">", "get_all_sets", "(", "set_info", "*", "set", ",", "bool", "real_p", ",", "bool", "phi_p", ",", "bool", "param_p", ")", "{", "if", "(", "real_p", "&&", "phi_p", "&&", "param_p", ")", "return", "get_all_sets", "(", "safe_dyn_cast", "<", "phi_info", "*", ">", "(", "set", ")", ",", "REAL_SET", "|", "PHI_SET", "|", "BB_HEAD_SET", "|", "BB_END_SET", ")", ";", "else", "if", "(", "real_p", "&&", "param_p", ")", "return", "get_all_sets", "(", "safe_dyn_cast", "<", "phi_info", "*", ">", "(", "set", ")", ",", "REAL_SET", "|", "BB_HEAD_SET", "|", "BB_END_SET", ")", ";", "else", "if", "(", "real_p", ")", "return", "get_all_sets", "(", "safe_dyn_cast", "<", "phi_info", "*", ">", "(", "set", ")", ",", "REAL_SET", ")", ";", "return", "hash_set", "<", "set_info", "*", ">", "(", ")", ";", "}", ""], "natrual_language": ["Recursively", "find", "all", "define", "instructions", ".", "The", "kind", "of", "instruction", "is", "specified", "by", "the", "DEF_TYPE", "."], "TS_V_token": ["riscv"], "File": "riscv-vsetvl", "Func": "get_all_sets", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 9, "Length": 107, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "riscv_classify_address", "(", "struct", "riscv_address_info", "*", "info", ",", "rtx", "x", ",", "enum", "machine_mode", "mode", ",", "bool", "strict_p", ")", "{", "switch", "(", "GET_CODE", "(", "x", ")", ")", "{", "case", "REG", ":", "case", "SUBREG", ":", "info", "->", "type", "=", "ADDRESS_REG", ";", "info", "->", "reg", "=", "x", ";", "info", "->", "offset", "=", "const0_rtx", ";", "return", "riscv_valid_base_register_p", "(", "info", "->", "reg", ",", "mode", ",", "strict_p", ")", ";", "case", "PLUS", ":", "info", "->", "type", "=", "ADDRESS_REG", ";", "info", "->", "reg", "=", "XEXP", "(", "x", ",", "0", ")", ";", "info", "->", "offset", "=", "XEXP", "(", "x", ",", "1", ")", ";", "return", "(", "riscv_valid_base_register_p", "(", "info", "->", "reg", ",", "mode", ",", "strict_p", ")", "&&", "riscv_valid_offset_p", "(", "info", "->", "offset", ",", "mode", ")", ")", ";", "case", "LO_SUM", ":", "info", "->", "type", "=", "ADDRESS_LO_SUM", ";", "info", "->", "reg", "=", "XEXP", "(", "x", ",", "0", ")", ";", "info", "->", "offset", "=", "XEXP", "(", "x", ",", "1", ")", ";", "info", "->", "symbol_type", "=", "riscv_classify_symbolic_expression", "(", "info", "->", "offset", ")", ";", "return", "(", "riscv_valid_base_register_p", "(", "info", "->", "reg", ",", "mode", ",", "strict_p", ")", "&&", "riscv_valid_lo_sum_p", "(", "info", "->", "symbol_type", ",", "mode", ")", ")", ";", "case", "CONST_INT", ":", "info", "->", "type", "=", "ADDRESS_CONST_INT", ";", "return", "SMALL_OPERAND", "(", "INTVAL", "(", "x", ")", ")", ";", "default", ":", "return", "false", ";", "}", "}", ""], "natrual_language": ["Return", "true", "if", "X", "is", "a", "valid", "address", "for", "machine", "mode", "MODE", ".", "If", "it", "is", ",", "fill", "in", "INFO", "appropriately", ".", "STRICT_P", "is", "true", "if", "REG_OK_STRICT", "is", "in", "effect", "."], "TS_V_token": ["riscv", "0", "1", "0", "1"], "File": "riscv2", "Func": "riscv_classify_address", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 10, "Length": 208, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "RISCVTargetLowering", "::", "PerformDAGCombine", "(", "SDNode", "*", "N", ",", "DAGCombinerInfo", "&", "DCI", ")", "const", "{", "SelectionDAG", "&", "DAG", "=", "DCI", ".", "DAG", ";", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "SHL", ":", "case", "ISD", "::", "SRL", ":", "case", "ISD", "::", "SRA", ":", "{", "assert", "(", "Subtarget", ".", "getXLen", "(", ")", "==", "64", "&&", "\"Combine should be 64-bit only\"", ")", ";", "if", "(", "!", "DCI", ".", "isBeforeLegalize", "(", ")", ")", "break", ";", "SDValue", "RHS", "=", "N", "->", "getOperand", "(", "1", ")", ";", "if", "(", "N", "->", "getValueType", "(", "0", ")", "!=", "MVT", "::", "i32", "||", "RHS", "->", "getOpcode", "(", ")", "==", "ISD", "::", "Constant", "||", "(", "RHS", "->", "getOpcode", "(", ")", "==", "ISD", "::", "AssertZext", "&&", "cast", "<", "VTSDNode", ">", "(", "RHS", "->", "getOperand", "(", "1", ")", ")", "->", "getVT", "(", ")", ".", "getSizeInBits", "(", ")", "<=", "5", ")", ")", "break", ";", "SDValue", "LHS", "=", "N", "->", "getOperand", "(", "0", ")", ";", "SDLoc", "DL", "(", "N", ")", ";", "SDValue", "NewRHS", "=", "DAG", ".", "getNode", "(", "ISD", "::", "AssertZext", ",", "DL", ",", "RHS", ".", "getValueType", "(", ")", ",", "RHS", ",", "DAG", ".", "getValueType", "(", "EVT", "::", "getIntegerVT", "(", "*", "DAG", ".", "getContext", "(", ")", ",", "5", ")", ")", ")", ";", "return", "DCI", ".", "CombineTo", "(", "N", ",", "DAG", ".", "getNode", "(", "N", "->", "getOpcode", "(", ")", ",", "DL", ",", "LHS", ".", "getValueType", "(", ")", ",", "LHS", ",", "NewRHS", ")", ")", ";", "}", "case", "ISD", "::", "ANY_EXTEND", ":", "{", "SDValue", "Src", "=", "N", "->", "getOperand", "(", "0", ")", ";", "if", "(", "N", "->", "getValueType", "(", "0", ")", "!=", "MVT", "::", "i64", "||", "Src", ".", "getValueType", "(", ")", "!=", "MVT", "::", "i32", ")", "break", ";", "if", "(", "!", "isVariableShift", "(", "Src", ")", "&&", "!", "(", "Subtarget", ".", "hasStdExtM", "(", ")", "&&", "isVariableSDivUDivURem", "(", "Src", ")", ")", ")", "break", ";", "SDLoc", "DL", "(", "N", ")", ";", "return", "DCI", ".", "CombineTo", "(", "N", ",", "DAG", ".", "getNode", "(", "ISD", "::", "SIGN_EXTEND", ",", "DL", ",", "MVT", "::", "i64", ",", "Src", ")", ")", ";", "}", "case", "RISCVISD", "::", "SplitF64", ":", "{", "SDValue", "Op0", "=", "N", "->", "getOperand", "(", "0", ")", ";", "if", "(", "Op0", "->", "getOpcode", "(", ")", "!=", "RISCVISD", "::", "BuildPairF64", ")", "break", ";", "return", "DCI", ".", "CombineTo", "(", "N", ",", "Op0", ".", "getOperand", "(", "0", ")", ",", "Op0", ".", "getOperand", "(", "1", ")", ")", ";", "}", "}", "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": ["RISCV", "RISCV", "ISD::SHL", "ISD::SRL", "ISD::SRA", "64", "\"Combine should be 64-bit only\"", "1", "0", "MVT::i32", "ISD::Constant", "ISD::AssertZext", "1", "5", "0", "ISD::AssertZext", "5", "ISD::ANY_EXTEND", "0", "0", "MVT::i64", "MVT::i32", "ISD::SIGN_EXTEND", "MVT::i64", "RISCVISD::SplitF64", "0", "RISCVISD::BuildPairF64", "0", "1"], "File": "RISCVISelLowering71", "Func": "PerformDAGCombine", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 11, "Length": 392, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "Align", "getPrefTypeAlign", "(", "EVT", "VT", ",", "SelectionDAG", "&", "DAG", ")", "{", "return", "DAG", ".", "getDataLayout", "(", ")", ".", "getPrefTypeAlign", "(", "VT", ".", "getTypeForEVT", "(", "*", "DAG", ".", "getContext", "(", ")", ")", ")", ";", "}", ""], "natrual_language": ["Returns", "the", "preferred", "stack/global", "alignment", "for", "the", "specified", "type", "."], "TS_V_token": ["RISCV"], "File": "RISCVISelLowering1", "Func": "getPrefTypeAlign", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 12, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "RISCVTargetLowering", "::", "joinRegisterPartsIntoValue", "(", "SelectionDAG", "&", "DAG", ",", "const", "SDLoc", "&", "DL", ",", "const", "SDValue", "*", "Parts", ",", "unsigned", "NumParts", ",", "MVT", "PartVT", ",", "EVT", "ValueVT", ",", "Optional", "<", "CallingConv", "::", "ID", ">", "CC", ")", "const", "{", "bool", "IsABIRegCopy", "=", "CC", ".", "hasValue", "(", ")", ";", "if", "(", "IsABIRegCopy", "&&", "ValueVT", "==", "MVT", "::", "f16", "&&", "PartVT", "==", "MVT", "::", "f32", ")", "{", "SDValue", "Val", "=", "Parts", "[", "0", "]", ";", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "BITCAST", ",", "DL", ",", "MVT", "::", "i32", ",", "Val", ")", ";", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "TRUNCATE", ",", "DL", ",", "MVT", "::", "i16", ",", "Val", ")", ";", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "BITCAST", ",", "DL", ",", "MVT", "::", "f16", ",", "Val", ")", ";", "return", "Val", ";", "}", "if", "(", "ValueVT", ".", "isScalableVector", "(", ")", "&&", "PartVT", ".", "isScalableVector", "(", ")", ")", "{", "LLVMContext", "&", "Context", "=", "*", "DAG", ".", "getContext", "(", ")", ";", "SDValue", "Val", "=", "Parts", "[", "0", "]", ";", "EVT", "ValueEltVT", "=", "ValueVT", ".", "getVectorElementType", "(", ")", ";", "EVT", "PartEltVT", "=", "PartVT", ".", "getVectorElementType", "(", ")", ";", "unsigned", "ValueVTBitSize", "=", "ValueVT", ".", "getSizeInBits", "(", ")", ".", "getKnownMinSize", "(", ")", ";", "unsigned", "PartVTBitSize", "=", "PartVT", ".", "getSizeInBits", "(", ")", ".", "getKnownMinSize", "(", ")", ";", "if", "(", "PartVTBitSize", "%", "ValueVTBitSize", "==", "0", ")", "{", "assert", "(", "PartVTBitSize", ">=", "ValueVTBitSize", ")", ";", "EVT", "SameEltTypeVT", "=", "ValueVT", ";", "if", "(", "ValueEltVT", "!=", "PartEltVT", ")", "{", "unsigned", "Count", "=", "PartVTBitSize", "/", "ValueEltVT", ".", "getFixedSizeInBits", "(", ")", ";", "assert", "(", "Count", "!=", "0", "&&", "\"The number of element should not be zero.\"", ")", ";", "SameEltTypeVT", "=", "EVT", "::", "getVectorVT", "(", "Context", ",", "ValueEltVT", ",", "Count", ",", "true", ")", ";", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "BITCAST", ",", "DL", ",", "SameEltTypeVT", ",", "Val", ")", ";", "}", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "EXTRACT_SUBVECTOR", ",", "DL", ",", "ValueVT", ",", "Val", ",", "DAG", ".", "getVectorIdxConstant", "(", "0", ",", "DL", ")", ")", ";", "return", "Val", ";", "}", "}", "return", "SDValue", "(", ")", ";", "}", ""], "natrual_language": ["Target-specific", "combining", "of", "register", "parts", "into", "its", "original", "value", "."], "TS_V_token": ["RISCV", "RISCV", "MVT::f16", "MVT::f32", "0", "ISD::BITCAST", "MVT::i32", "ISD::TRUNCATE", "MVT::i16", "ISD::BITCAST", "MVT::f16", "0", "0", "0", "\"The number of element should not be zero.\"", "ISD::BITCAST", "ISD::EXTRACT_SUBVECTOR", "0"], "File": "RISCVISelLowering20", "Func": "joinRegisterPartsIntoValue", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 13, "Length": 329, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MBBI", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FrameIdx", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", "=", "MBBI", "!=", "MBB", ".", "end", "(", ")", "?", "MBBI", "->", "getDebugLoc", "(", ")", ":", "DebugLoc", "(", ")", ";", "unsigned", "LoadOpcode", ",", "StoreOpcode", ";", "getLoadStoreOpcodes", "(", "RC", ",", "LoadOpcode", ",", "StoreOpcode", ")", ";", "addFrameReference", "(", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "get", "(", "StoreOpcode", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ",", "FrameIdx", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["RISCV", "RISCV"], "File": "RISCVInstrInfo (2)1", "Func": "storeRegToStackSlot", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 14, "Length": 100, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "enum", "tail_policy", "get_prefer_tail_policy", "(", ")", "{", "return", "TAIL_ANY", ";", "}", ""], "natrual_language": ["Get", "prefer", "tail", "policy", "."], "TS_V_token": ["riscv"], "File": "riscv-v", "Func": "get_prefer_tail_policy", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 15, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "riscv_binary_cost", "(", "rtx", "x", ",", "int", "single_insns", ",", "int", "double_insns", ")", "{", "if", "(", "GET_MODE_SIZE", "(", "GET_MODE", "(", "x", ")", ")", "==", "UNITS_PER_WORD", "*", "2", ")", "return", "COSTS_N_INSNS", "(", "double_insns", ")", ";", "return", "COSTS_N_INSNS", "(", "single_insns", ")", ";", "}", ""], "natrual_language": ["Return", "the", "cost", "of", "binary", "operation", "X", ",", "given", "that", "the", "instruction", "sequence", "for", "a", "word-sized", "or", "smaller", "operation", "takes", "SIGNLE_INSNS", "instructions", "and", "that", "the", "sequence", "of", "a", "double-word", "operation", "takes", "DOUBLE_INSNS", "instructions", "."], "TS_V_token": ["riscv", "2"], "File": "riscv", "Func": "riscv_binary_cost", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 16, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "MCInst", "&", "Res", ")", "const", "override", "{", "report_fatal_error", "(", "\"RISCVAsmBackend::relaxInstruction() unimplemented\"", ")", ";", "}", ""], "natrual_language": ["Relax", "the", "instruction", "in", "the", "given", "fragment", "to", "the", "next", "wider", "instruction", "."], "TS_V_token": ["RISCV", "\"RISCVAsmBackend::relaxInstruction() unimplemented\""], "File": "RISCVAsmBackend10", "Func": "relaxInstruction", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 17, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVAsmPrinter", "::", "emitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "if", "(", "emitPseudoExpansionLowering", "(", "*", "OutStreamer", ",", "MI", ")", ")", "return", ";", "MCInst", "TmpInst", ";", "LowerRISCVMachineInstrToMCInst", "(", "MI", ",", "TmpInst", ",", "*", "this", ")", ";", "auto", "*", "MBB", "=", "MI", "->", "getParent", "(", ")", ";", "auto", "*", "RVFI", "=", "MI", "->", "getMF", "(", ")", "->", "getInfo", "<", "RISCVMachineFunctionInfo", ">", "(", ")", ";", "if", "(", "RVFI", "->", "isHwlpBasicBlock", "(", "MBB", ")", ")", "AsmPrinter", "::", "EmitToStreamer", "(", "*", "OutStreamer", ",", "TmpInst", ")", ";", "else", "EmitToStreamer", "(", "*", "OutStreamer", ",", "TmpInst", ")", ";", "}", ""], "natrual_language": ["Targets", "should", "implement", "this", "to", "emit", "instructions", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV", "RISCV"], "File": "RISCVAsmPrinter1", "Func": "emitInstruction", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 18, "Length": 92, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineInstr", "*", "RISCVInstrInfo", "::", "convertToThreeAddress", "(", "MachineInstr", "&", "MI", ",", "LiveVariables", "*", "LV", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "CASE_WIDEOP_OPCODE_LMULS", "(", "FWADD_WV", ")", ":", "case", "CASE_WIDEOP_OPCODE_LMULS", "(", "FWSUB_WV", ")", ":", "case", "CASE_WIDEOP_OPCODE_LMULS", "(", "WADD_WV", ")", ":", "case", "CASE_WIDEOP_OPCODE_LMULS", "(", "WADDU_WV", ")", ":", "case", "CASE_WIDEOP_OPCODE_LMULS", "(", "WSUB_WV", ")", ":", "case", "CASE_WIDEOP_OPCODE_LMULS", "(", "WSUBU_WV", ")", ":", "{", "unsigned", "NewOpc", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unexpected opcode\"", ")", ";", "CASE_WIDEOP_CHANGE_OPCODE_LMULS", "(", "FWADD_WV", ")", "CASE_WIDEOP_CHANGE_OPCODE_LMULS", "(", "FWSUB_WV", ")", "CASE_WIDEOP_CHANGE_OPCODE_LMULS", "(", "WADD_WV", ")", "CASE_WIDEOP_CHANGE_OPCODE_LMULS", "(", "WADDU_WV", ")", "CASE_WIDEOP_CHANGE_OPCODE_LMULS", "(", "WSUB_WV", ")", "CASE_WIDEOP_CHANGE_OPCODE_LMULS", "(", "WSUBU_WV", ")", "}", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "MBB", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "get", "(", "NewOpc", ")", ")", ".", "add", "(", "MI", ".", "getOperand", "(", "0", ")", ")", ".", "add", "(", "MI", ".", "getOperand", "(", "1", ")", ")", ".", "add", "(", "MI", ".", "getOperand", "(", "2", ")", ")", ".", "add", "(", "MI", ".", "getOperand", "(", "3", ")", ")", ".", "add", "(", "MI", ".", "getOperand", "(", "4", ")", ")", ";", "MIB", ".", "copyImplicitOps", "(", "MI", ")", ";", "if", "(", "LV", ")", "{", "unsigned", "NumOps", "=", "MI", ".", "getNumOperands", "(", ")", ";", "for", "(", "unsigned", "I", "=", "1", ";", "I", "<", "NumOps", ";", "++", "I", ")", "{", "MachineOperand", "&", "Op", "=", "MI", ".", "getOperand", "(", "I", ")", ";", "if", "(", "Op", ".", "isReg", "(", ")", "&&", "Op", ".", "isKill", "(", ")", ")", "LV", "->", "replaceKillInstruction", "(", "Op", ".", "getReg", "(", ")", ",", "MI", ",", "*", "MIB", ")", ";", "}", "}", "return", "MIB", ";", "}", "}", "return", "nullptr", ";", "}", ""], "natrual_language": ["convertToThreeAddress", "-", "This", "method", "must", "be", "implemented", "by", "targets", "that", "set", "the", "M_CONVERTIBLE_TO_3_ADDR", "flag", "."], "TS_V_token": ["RISCV", "RISCV", "\"Unexpected opcode\"", "0", "1", "2", "3", "4", "1"], "File": "RISCVInstrInfo (2)", "Func": "convertToThreeAddress", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 19, "Length": 280, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "sbitmap", "riscv_components_for_bb", "(", "basic_block", "bb", ")", "{", "bitmap", "in", "=", "DF_LIVE_IN", "(", "bb", ")", ";", "bitmap", "gen", "=", "&", "DF_LIVE_BB_INFO", "(", "bb", ")", "->", "gen", ";", "bitmap", "kill", "=", "&", "DF_LIVE_BB_INFO", "(", "bb", ")", "->", "kill", ";", "sbitmap", "components", "=", "sbitmap_alloc", "(", "FIRST_PSEUDO_REGISTER", ")", ";", "bitmap_clear", "(", "components", ")", ";", "function_abi_aggregator", "callee_abis", ";", "rtx_insn", "*", "insn", ";", "FOR_BB_INSNS", "(", "bb", ",", "insn", ")", "if", "(", "CALL_P", "(", "insn", ")", ")", "callee_abis", ".", "note_callee_abi", "(", "insn_callee_abi", "(", "insn", ")", ")", ";", "HARD_REG_SET", "extra_caller_saves", "=", "callee_abis", ".", "caller_save_regs", "(", "*", "crtl", "->", "abi", ")", ";", "for", "(", "unsigned", "int", "regno", "=", "GP_REG_FIRST", ";", "regno", "<=", "GP_REG_LAST", ";", "regno", "++", ")", "if", "(", "!", "fixed_regs", "[", "regno", "]", "&&", "!", "crtl", "->", "abi", "->", "clobbers_full_reg_p", "(", "regno", ")", "&&", "(", "TEST_HARD_REG_BIT", "(", "extra_caller_saves", ",", "regno", ")", "||", "bitmap_bit_p", "(", "in", ",", "regno", ")", "||", "bitmap_bit_p", "(", "gen", ",", "regno", ")", "||", "bitmap_bit_p", "(", "kill", ",", "regno", ")", ")", ")", "bitmap_set_bit", "(", "components", ",", "regno", ")", ";", "for", "(", "unsigned", "int", "regno", "=", "FP_REG_FIRST", ";", "regno", "<=", "FP_REG_LAST", ";", "regno", "++", ")", "if", "(", "!", "fixed_regs", "[", "regno", "]", "&&", "!", "crtl", "->", "abi", "->", "clobbers_full_reg_p", "(", "regno", ")", "&&", "(", "TEST_HARD_REG_BIT", "(", "extra_caller_saves", ",", "regno", ")", "||", "bitmap_bit_p", "(", "in", ",", "regno", ")", "||", "bitmap_bit_p", "(", "gen", ",", "regno", ")", "||", "bitmap_bit_p", "(", "kill", ",", "regno", ")", ")", ")", "bitmap_set_bit", "(", "components", ",", "regno", ")", ";", "return", "components", ";", "}", ""], "natrual_language": ["Implement", "TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB", "."], "TS_V_token": ["riscv"], "File": "riscv1", "Func": "riscv_components_for_bb", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 20, "Length": 238, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "SrcReg", ",", "bool", "IsKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "unsigned", "Opcode", ";", "if", "(", "RISCV", "::", "GPRRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "Opcode", "=", "TRI", "->", "getRegSizeInBits", "(", "RISCV", "::", "GPRRegClass", ")", "==", "32", "?", "RISCV", "::", "SW", ":", "RISCV", "::", "SD", ";", "else", "if", "(", "RISCV", "::", "FPR32RegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "Opcode", "=", "RISCV", "::", "FSW", ";", "else", "if", "(", "RISCV", "::", "FPR64RegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "Opcode", "=", "RISCV", "::", "FSD", ";", "else", "llvm_unreachable", "(", "\"Can't store this register to stack slot\"", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "Opcode", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "IsKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV::GPRRegClass", "RISCV::GPRRegClass", "32", "RISCV::SW", "RISCV::SD", "RISCV::FPR32RegClass", "RISCV::FSW", "RISCV::FPR64RegClass", "RISCV::FSD", "\"Can't store this register to stack slot\"", "0"], "File": "RISCVInstrInfo", "Func": "storeRegToStackSlot", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 21, "Length": 168, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "poly_int64", "calculate_x_in_sequence", "(", "rtx", "reg", ")", "{", "std", "::", "map", "<", "unsigned", ",", "rtx", ">", "regno_to_rtx", ";", "rtx_insn", "*", "insn", ";", "for", "(", "insn", "=", "get_insns", "(", ")", ";", "insn", ";", "insn", "=", "NEXT_INSN", "(", "insn", ")", ")", "{", "rtx", "pat", "=", "PATTERN", "(", "insn", ")", ";", "rtx", "dest", "=", "SET_DEST", "(", "pat", ")", ";", "if", "(", "GET_CODE", "(", "pat", ")", "==", "CLOBBER", ")", "continue", ";", "if", "(", "SUBREG_P", "(", "dest", ")", ")", "continue", ";", "gcc_assert", "(", "REG_P", "(", "dest", ")", ")", ";", "rtx", "note", "=", "find_reg_equal_equiv_note", "(", "insn", ")", ";", "unsigned", "regno", "=", "REGNO", "(", "dest", ")", ";", "if", "(", "note", ")", "regno_to_rtx", "[", "regno", "]", "=", "XEXP", "(", "note", ",", "0", ")", ";", "else", "regno_to_rtx", "[", "regno", "]", "=", "SET_SRC", "(", "pat", ")", ";", "}", "return", "eval_value", "(", "reg", ",", "regno_to_rtx", ")", ";", "}", ""], "natrual_language": ["Calculate", "the", "value", "of", "x", "register", "in", "the", "sequence", "."], "TS_V_token": ["riscv", "0"], "File": "riscv-selftests", "Func": "calculate_x_in_sequence", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 22, "Length": 137, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "fixupNeedsRelaxation", "(", "const", "MCFixup", "&", "Fixup", ",", "uint64_t", "Value", ",", "const", "MCRelaxableFragment", "*", "DF", ",", "const", "MCAsmLayout", "&", "Layout", ")", "const", "override", "{", "llvm_unreachable", "(", "\"Handled by fixupNeedsRelaxationAdvanced\"", ")", ";", "}", ""], "natrual_language": ["Simple", "predicate", "for", "targets", "where", "!", "Resolved", "implies", "requiring", "relaxation", "."], "TS_V_token": ["RISCV", "\"Handled by fixupNeedsRelaxationAdvanced\""], "File": "RISCVAsmBackend (2)", "Func": "fixupNeedsRelaxation", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 23, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVTargetLowering", "::", "shouldSinkOperands", "(", "Instruction", "*", "I", ",", "SmallVectorImpl", "<", "Use", "*", ">", "&", "Ops", ")", "const", "{", "using", "namespace", "llvm", "::", "PatternMatch", ";", "if", "(", "!", "I", "->", "getType", "(", ")", "->", "isVectorTy", "(", ")", "||", "!", "Subtarget", ".", "hasVInstructions", "(", ")", ")", "return", "false", ";", "auto", "IsSinker", "=", "[", "&", "]", "(", "Instruction", "*", "I", ",", "int", "Operand", ")", "{", "switch", "(", "I", "->", "getOpcode", "(", ")", ")", "{", "case", "Instruction", "::", "Add", ":", "case", "Instruction", "::", "Sub", ":", "case", "Instruction", "::", "Mul", ":", "case", "Instruction", "::", "And", ":", "case", "Instruction", "::", "Or", ":", "case", "Instruction", "::", "Xor", ":", "case", "Instruction", "::", "FAdd", ":", "case", "Instruction", "::", "FSub", ":", "case", "Instruction", "::", "FMul", ":", "case", "Instruction", "::", "FDiv", ":", "case", "Instruction", "::", "ICmp", ":", "case", "Instruction", "::", "FCmp", ":", "return", "true", ";", "case", "Instruction", "::", "Shl", ":", "case", "Instruction", "::", "LShr", ":", "case", "Instruction", "::", "AShr", ":", "case", "Instruction", "::", "UDiv", ":", "case", "Instruction", "::", "SDiv", ":", "case", "Instruction", "::", "URem", ":", "case", "Instruction", "::", "SRem", ":", "return", "Operand", "==", "1", ";", "case", "Instruction", "::", "Call", ":", "if", "(", "auto", "*", "II", "=", "dyn_cast", "<", "IntrinsicInst", ">", "(", "I", ")", ")", "{", "switch", "(", "II", "->", "getIntrinsicID", "(", ")", ")", "{", "case", "Intrinsic", "::", "fma", ":", "return", "Operand", "==", "0", "||", "Operand", "==", "1", ";", "default", ":", "return", "false", ";", "}", "}", "return", "false", ";", "default", ":", "return", "false", ";", "}", "}", ";", "for", "(", "auto", "OpIdx", ":", "enumerate", "(", "I", "->", "operands", "(", ")", ")", ")", "{", "if", "(", "!", "IsSinker", "(", "I", ",", "OpIdx", ".", "index", "(", ")", ")", ")", "continue", ";", "Instruction", "*", "Op", "=", "dyn_cast", "<", "Instruction", ">", "(", "OpIdx", ".", "value", "(", ")", ".", "get", "(", ")", ")", ";", "if", "(", "!", "Op", "||", "any_of", "(", "Ops", ",", "[", "&", "]", "(", "Use", "*", "U", ")", "{", "return", "U", "->", "get", "(", ")", "==", "Op", ";", "}", ")", ")", "continue", ";", "if", "(", "!", "match", "(", "Op", ",", "m_Shuffle", "(", "m_InsertElt", "(", "m_Undef", "(", ")", ",", "m_Value", "(", ")", ",", "m_ZeroInt", "(", ")", ")", ",", "m_Undef", "(", ")", ",", "m_ZeroMask", "(", ")", ")", ")", ")", "continue", ";", "for", "(", "Use", "&", "U", ":", "Op", "->", "uses", "(", ")", ")", "{", "Instruction", "*", "Insn", "=", "cast", "<", "Instruction", ">", "(", "U", ".", "getUser", "(", ")", ")", ";", "if", "(", "!", "IsSinker", "(", "Insn", ",", "U", ".", "getOperandNo", "(", ")", ")", ")", "return", "false", ";", "}", "Ops", ".", "push_back", "(", "&", "Op", "->", "getOperandUse", "(", "0", ")", ")", ";", "Ops", ".", "push_back", "(", "&", "OpIdx", ".", "value", "(", ")", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "sinking", "I", "'s", "operands", "to", "the", "same", "basic", "block", "as", "I", "is", "profitable", ",", "e.g", "."], "TS_V_token": ["RISCV", "RISCV", "1", "Intrinsic::fma", "0", "1", "0"], "File": "RISCVISelLowering80", "Func": "shouldSinkOperands", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 24, "Length": 432, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVMCAsmBackend", "::", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ")", "const", "{", "return", "getRelaxedOpcode", "(", "Inst", ".", "getOpcode", "(", ")", ")", "!=", "0", ";", "}", ""], "natrual_language": ["Check", "whether", "the", "given", "instruction", "may", "need", "relaxation", "."], "TS_V_token": ["RISCV", "RISCV", "0"], "File": "RISCVMCAsmBackend", "Func": "mayNeedRelaxation", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 25, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVInstrInfo", "::", "isBranchOffsetInRange", "(", "unsigned", "BranchOp", ",", "int64_t", "BrOffset", ")", "const", "{", "switch", "(", "BranchOp", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unexpected opcode!\"", ")", ";", "case", "RISCV", "::", "BEQ", ":", "case", "RISCV", "::", "BNE", ":", "case", "RISCV", "::", "BLT", ":", "case", "RISCV", "::", "BGE", ":", "case", "RISCV", "::", "BLTU", ":", "case", "RISCV", "::", "BGEU", ":", "return", "isIntN", "(", "13", ",", "BrOffset", ")", ";", "case", "RISCV", "::", "JAL", ":", "case", "RISCV", "::", "PseudoBR", ":", "return", "isIntN", "(", "21", ",", "BrOffset", ")", ";", "}", "}", ""], "natrual_language": ["Determine", "if", "the", "branch", "target", "is", "in", "range", "."], "TS_V_token": ["RISCV", "RISCV", "\"Unexpected opcode!\"", "RISCV::BEQ", "RISCV::BNE", "RISCV::BLT", "RISCV::BGE", "RISCV::BLTU", "RISCV::BGEU", "13", "RISCV::JAL", "RISCV::PseudoBR", "21"], "File": "RISCVInstrInfo", "Func": "isBranchOffsetInRange", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 26, "Length": 83, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "HOST_WIDE_INT", "riscv_first_stack_step", "(", "struct", "riscv_frame_info", "*", "frame", ")", "{", "HOST_WIDE_INT", "min_first_step", "=", "frame", "->", "total_size", "-", "frame", "->", "fp_sp_offset", ";", "HOST_WIDE_INT", "max_first_step", "=", "IMM_REACH", "/", "2", "-", "STACK_BOUNDARY", "/", "8", ";", "if", "(", "SMALL_OPERAND", "(", "frame", "->", "total_size", ")", ")", "return", "frame", "->", "total_size", ";", "if", "(", "!", "SMALL_OPERAND", "(", "frame", "->", "total_size", "-", "max_first_step", ")", "&&", "frame", "->", "total_size", "%", "IMM_REACH", "<", "IMM_REACH", "/", "2", "&&", "frame", "->", "total_size", "%", "IMM_REACH", ">=", "min_first_step", ")", "return", "frame", "->", "total_size", "%", "IMM_REACH", ";", "gcc_assert", "(", "min_first_step", "<=", "max_first_step", ")", ";", "return", "max_first_step", ";", "}", ""], "natrual_language": ["For", "stack", "frames", "that", "ca", "n't", "be", "allocated", "with", "a", "single", "ADDI", "instruction", ",", "compute", "the", "best", "value", "to", "initially", "allocate", ".", "It", "must", "at", "a", "minimum", "allocate", "enough", "space", "to", "spill", "the", "callee-saved", "registers", "."], "TS_V_token": ["riscv", "2", "8", "2"], "File": "riscv2", "Func": "riscv_first_stack_step", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 27, "Length": 94, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "*", "RISCVTargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MachineInstr", "*", "MI", ",", "MachineBasicBlock", "*", "MBB", ")", "const", "{", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "case", "RISCV", "::", "SELECT_CC", ":", "case", "RISCV", "::", "SELECT_CC64", ":", "case", "RISCV", "::", "FSELECT_CC_F", ":", "case", "RISCV", "::", "FSELECT_CC_D", ":", "return", "emitSelectCC", "(", "MI", ",", "MBB", ")", ";", "case", "RISCV", "::", "CALL", ":", "case", "RISCV", "::", "CALLREG", ":", "case", "RISCV", "::", "CALL64", ":", "case", "RISCV", "::", "CALLREG64", ":", "return", "emitCALL", "(", "MI", ",", "MBB", ")", ";", "default", ":", "llvm_unreachable", "(", "\"Unexpected instr type to insert\"", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'usesCustomInserter", "'", "flag", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV::SELECT_CC", "RISCV::SELECT_CC64", "RISCV::FSELECT_CC_F", "RISCV::FSELECT_CC_D", "RISCV::CALL", "RISCV::CALLREG", "RISCV::CALL64", "RISCV::CALLREG64", "\"Unexpected instr type to insert\""], "File": "RISCVISelLowering (2)2", "Func": "EmitInstrWithCustomInserter", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 28, "Length": 90, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCFixupKindInfo", "&", "getFixupKindInfo", "(", "MCFixupKind", "Kind", ")", "const", "override", "{", "const", "static", "MCFixupKindInfo", "Infos", "[", "]", "=", "{", "{", "\"fixup_riscv_hi20\"", ",", "12", ",", "20", ",", "0", "}", ",", "{", "\"fixup_riscv_lo12_i\"", ",", "20", ",", "12", ",", "0", "}", ",", "{", "\"fixup_riscv_lo12_s\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"fixup_riscv_pcrel_hi20\"", ",", "12", ",", "20", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_riscv_pcrel_lo12_i\"", ",", "20", ",", "12", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_riscv_pcrel_lo12_s\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_riscv_jal\"", ",", "12", ",", "20", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_riscv_branch\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_riscv_rvc_jump\"", ",", "2", ",", "11", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_riscv_rvc_branch\"", ",", "0", ",", "16", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_riscv_call\"", ",", "0", ",", "64", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_riscv_relax\"", ",", "0", ",", "0", ",", "0", "}", "}", ";", "static_assert", "(", "(", "array_lengthof", "(", "Infos", ")", ")", "==", "RISCV", "::", "NumTargetFixupKinds", ",", "\"Not all fixup kinds added to Infos array\"", ")", ";", "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": ["RISCV", "\"fixup_riscv_hi20\"", "12", "20", "0", "\"fixup_riscv_lo12_i\"", "20", "12", "0", "\"fixup_riscv_lo12_s\"", "0", "32", "0", "\"fixup_riscv_pcrel_hi20\"", "12", "20", "\"fixup_riscv_pcrel_lo12_i\"", "20", "12", "\"fixup_riscv_pcrel_lo12_s\"", "0", "32", "\"fixup_riscv_jal\"", "12", "20", "\"fixup_riscv_branch\"", "0", "32", "\"fixup_riscv_rvc_jump\"", "2", "11", "\"fixup_riscv_rvc_branch\"", "0", "16", "\"fixup_riscv_call\"", "0", "64", "\"fixup_riscv_relax\"", "0", "0", "0", "RISCV::NumTargetFixupKinds", "\"Not all fixup kinds added to Infos array\"", "\"Invalid kind!\""], "File": "RISCVAsmBackend (2)", "Func": "getFixupKindInfo", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 29, "Length": 211, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVTargetLowering", "::", "isFPImmLegal", "(", "const", "APFloat", "&", "Imm", ",", "EVT", "VT", ",", "bool", "ForCodeSize", ")", "const", "{", "if", "(", "VT", "==", "MVT", "::", "f16", "&&", "!", "Subtarget", ".", "hasStdExtZfhmin", "(", ")", ")", "return", "false", ";", "if", "(", "VT", "==", "MVT", "::", "f32", "&&", "!", "Subtarget", ".", "hasStdExtF", "(", ")", ")", "return", "false", ";", "if", "(", "VT", "==", "MVT", "::", "f64", "&&", "!", "Subtarget", ".", "hasStdExtD", "(", ")", ")", "return", "false", ";", "if", "(", "Imm", ".", "isNegZero", "(", ")", ")", "return", "false", ";", "return", "Imm", ".", "isZero", "(", ")", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "can", "instruction", "select", "the", "specified", "FP", "immediate", "natively", "."], "TS_V_token": ["RISCV", "RISCV", "MVT::f16", "MVT::f32", "MVT::f64"], "File": "RISCVISelLowering18", "Func": "isFPImmLegal", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 30, "Length": 91, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVFrameLowering", "::", "spillCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "MachineBasicBlock", "&", "EntryBlock", "=", "*", "(", "MF", "->", "begin", "(", ")", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", "->", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "]", ".", "getReg", "(", ")", ";", "bool", "IsRAAndRetAddrIsTaken", "=", "(", "Reg", "==", "RISCV", "::", "ra", "||", "Reg", "==", "RISCV", "::", "ra_64", ")", "&&", "MF", "->", "getFrameInfo", "(", ")", "->", "isReturnAddressTaken", "(", ")", ";", "if", "(", "!", "IsRAAndRetAddrIsTaken", ")", "EntryBlock", ".", "addLiveIn", "(", "Reg", ")", ";", "bool", "IsKill", "=", "!", "IsRAAndRetAddrIsTaken", ";", "const", "TargetRegisterClass", "*", "RC", "=", "TRI", "->", "getMinimalPhysRegClass", "(", "Reg", ")", ";", "TII", ".", "storeRegToStackSlot", "(", "EntryBlock", ",", "MI", ",", "Reg", ",", "IsKill", ",", "CSI", "[", "i", "]", ".", "getFrameIdx", "(", ")", ",", "RC", ",", "TRI", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["spillCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "spill", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "store", "instructions", "via", "storeRegToStackSlot", "(", ")", "."], "TS_V_token": ["RISCV", "RISCV", "0", "RISCV::ra", "RISCV::ra_64"], "File": "RISCVFrameLowering (2)1", "Func": "spillCalleeSavedRegisters", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 31, "Length": 193, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "th_mempair_save_restore_regs", "(", "rtx", "operands", "[", "4", "]", ",", "bool", "load_p", ",", "machine_mode", "mode", ")", "{", "gcc_assert", "(", "th_mempair_operands_p", "(", "operands", ",", "load_p", ",", "mode", ")", ")", ";", "th_mempair_order_operands", "(", "operands", ",", "load_p", ",", "mode", ")", ";", "if", "(", "load_p", ")", "th_mempair_restore_regs", "(", "operands", ")", ";", "else", "th_mempair_save_regs", "(", "operands", ")", ";", "}", ""], "natrual_language": ["Emit", "a", "mempair", "instruction", "to", "save/restore", "two", "registers", "to/from", "stack", "."], "TS_V_token": ["riscv", "4"], "File": "thead", "Func": "th_mempair_save_restore_regs", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 32, "Length": 53, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "riscv_block_move_straight", "(", "rtx", "dest", ",", "rtx", "src", ",", "HOST_WIDE_INT", "length", ")", "{", "HOST_WIDE_INT", "offset", ",", "delta", ";", "unsigned", "HOST_WIDE_INT", "bits", ";", "int", "i", ";", "enum", "machine_mode", "mode", ";", "rtx", "*", "regs", ";", "bits", "=", "MAX", "(", "BITS_PER_UNIT", ",", "MIN", "(", "BITS_PER_WORD", ",", "MIN", "(", "MEM_ALIGN", "(", "src", ")", ",", "MEM_ALIGN", "(", "dest", ")", ")", ")", ")", ";", "mode", "=", "mode_for_size", "(", "bits", ",", "MODE_INT", ",", "0", ")", ".", "require", "(", ")", ";", "delta", "=", "bits", "/", "BITS_PER_UNIT", ";", "regs", "=", "XALLOCAVEC", "(", "rtx", ",", "length", "/", "delta", ")", ";", "for", "(", "offset", "=", "0", ",", "i", "=", "0", ";", "offset", "+", "delta", "<=", "length", ";", "offset", "+=", "delta", ",", "i", "++", ")", "{", "regs", "[", "i", "]", "=", "gen_reg_rtx", "(", "mode", ")", ";", "riscv_emit_move", "(", "regs", "[", "i", "]", ",", "adjust_address", "(", "src", ",", "mode", ",", "offset", ")", ")", ";", "}", "for", "(", "offset", "=", "0", ",", "i", "=", "0", ";", "offset", "+", "delta", "<=", "length", ";", "offset", "+=", "delta", ",", "i", "++", ")", "riscv_emit_move", "(", "adjust_address", "(", "dest", ",", "mode", ",", "offset", ")", ",", "regs", "[", "i", "]", ")", ";", "if", "(", "offset", "<", "length", ")", "{", "src", "=", "adjust_address", "(", "src", ",", "BLKmode", ",", "offset", ")", ";", "dest", "=", "adjust_address", "(", "dest", ",", "BLKmode", ",", "offset", ")", ";", "move_by_pieces", "(", "dest", ",", "src", ",", "length", "-", "offset", ",", "MIN", "(", "MEM_ALIGN", "(", "src", ")", ",", "MEM_ALIGN", "(", "dest", ")", ")", ",", "0", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "straight-line", "code", "to", "move", "LENGTH", "bytes", "from", "SRC", "to", "DEST", ".", "Assume", "that", "the", "areas", "do", "not", "overlap", "."], "TS_V_token": ["riscv", "0", "0", "0", "0", "0", "0"], "File": "riscv3", "Func": "riscv_block_move_straight", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 33, "Length": 240, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVExpandCoreVHwlpPseudo", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "!", "MF", ".", "getSubtarget", "<", "RISCVSubtarget", ">", "(", ")", ".", "hasExtXCoreVHwlp", "(", ")", ")", "{", "return", "false", ";", "}", "MachineLoopInfo", "&", "MLI", "=", "getAnalysis", "<", "MachineLoopInfo", ">", "(", ")", ";", "bool", "Changed", "=", "false", ";", "for", "(", "auto", "&", "ML", ":", "MLI", ")", "{", "Changed", "|=", "ProcessLoop", "(", "ML", ",", "MF", ")", ";", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV"], "File": "RISCVExpandCoreVHwlpPseudoInsts", "Func": "runOnMachineFunction", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 34, "Length": 70, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVFrameLowering", "::", "determineFrameLayout", "(", "MachineFunction", "&", "MF", ")", "const", "{", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "RISCVRegisterInfo", "*", "RI", "=", "STI", ".", "getRegisterInfo", "(", ")", ";", "uint64_t", "FrameSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "unsigned", "StackAlign", "=", "getStackAlignment", "(", ")", ";", "if", "(", "RI", "->", "needsStackRealignment", "(", "MF", ")", ")", "{", "unsigned", "MaxStackAlign", "=", "std", "::", "max", "(", "StackAlign", ",", "MFI", ".", "getMaxAlignment", "(", ")", ")", ";", "FrameSize", "+=", "(", "MaxStackAlign", "-", "StackAlign", ")", ";", "StackAlign", "=", "MaxStackAlign", ";", "}", "uint64_t", "MaxCallSize", "=", "alignTo", "(", "MFI", ".", "getMaxCallFrameSize", "(", ")", ",", "StackAlign", ")", ";", "MFI", ".", "setMaxCallFrameSize", "(", "MaxCallSize", ")", ";", "FrameSize", "=", "alignTo", "(", "FrameSize", ",", "StackAlign", ")", ";", "MFI", ".", "setStackSize", "(", "FrameSize", ")", ";", "}", ""], "natrual_language": ["Determine", "the", "frame", "layout", "but", "do", "not", "update", "the", "machine", "function", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV"], "File": "RISCVFrameLowering16", "Func": "determineFrameLayout", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 35, "Length": 125, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "function_checker", "::", "report_non_ice", "(", "unsigned", "int", "argno", ")", "const", "{", "error_at", "(", "location", ",", "\"argument %d of %qE must be an integer constant\"", "\" expression\"", ",", "argno", "+", "1", ",", "fndecl", ")", ";", "}", ""], "natrual_language": ["Report", "that", "LOCATION", "has", "a", "call", "to", "FNDECL", "in", "which", "argument", "ARGNO", "was", "not", "an", "integer", "constant", "expression", ".", "ARGNO", "counts", "from", "zero", "."], "TS_V_token": ["riscv", "\"argument %d of %qE must be an integer constant\"", "\" expression\"", "1"], "File": "riscv-vector-builtins", "Func": "report_non_ice", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 36, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "sizeless_type_p", "(", "const_tree", "type", ")", "{", "if", "(", "type", "==", "error_mark_node", ")", "return", "NULL_TREE", ";", "return", "lookup_attribute", "(", "\"RVV sizeless type\"", ",", "TYPE_ATTRIBUTES", "(", "type", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "TYPE", "is", "a", "sizeless", "type", "."], "TS_V_token": ["riscv", "\"RVV sizeless type\""], "File": "riscv-vector-builtins", "Func": "sizeless_type_p", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 37, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVInstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "DstReg", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "unsigned", "Opcode", ";", "if", "(", "RISCV", "::", "GPRRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "Opcode", "=", "TRI", "->", "getRegSizeInBits", "(", "RISCV", "::", "GPRRegClass", ")", "==", "32", "?", "RISCV", "::", "LW", ":", "RISCV", "::", "LD", ";", "else", "if", "(", "RISCV", "::", "FPR32RegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "Opcode", "=", "RISCV", "::", "FLW", ";", "else", "if", "(", "RISCV", "::", "FPR64RegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "Opcode", "=", "RISCV", "::", "FLD", ";", "else", "if", "(", "RISCV", "::", "VGRRegClass", ".", "hasSubClassEq", "(", "RC", ")", "||", "RISCV", "::", "VPRRegClass", ".", "hasSubClassEq", "(", "RC", ")", "||", "RISCV", "::", "VQRRegClass", ".", "hasSubClassEq", "(", "RC", ")", "||", "RISCV", "::", "VORRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "Opcode", "=", "RISCV", "::", "VLE_V_um", ";", "else", "llvm_unreachable", "(", "\"Can't load this register from stack slot\"", ")", ";", "if", "(", "Opcode", "==", "RISCV", "::", "VLE_V_um", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "Opcode", ")", ",", "DstReg", ")", ".", "addFrameIndex", "(", "FI", ")", ";", "else", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "Opcode", ")", ",", "DstReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ";", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV::GPRRegClass", "RISCV::GPRRegClass", "32", "RISCV::LW", "RISCV::LD", "RISCV::FPR32RegClass", "RISCV::FLW", "RISCV::FPR64RegClass", "RISCV::FLD", "RISCV::VGRRegClass", "RISCV::VPRRegClass", "RISCV::VQRRegClass", "RISCV::VORRegClass", "RISCV::VLE_V_um", "\"Can't load this register from stack slot\"", "RISCV::VLE_V_um", "0"], "File": "RISCVInstrInfo31", "Func": "loadRegFromStackSlot", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 38, "Length": 232, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "DecodeStatus", "RISCVDisassembler", "::", "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", "[", "0", "]", "&", "0x3", ")", "==", "0x3", ")", "{", "if", "(", "Bytes", ".", "size", "(", ")", "<", "4", ")", "{", "Size", "=", "0", ";", "return", "MCDisassembler", "::", "Fail", ";", "}", "Insn", "=", "support", "::", "endian", "::", "read32le", "(", "Bytes", ".", "data", "(", ")", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Trying RISCV32 table :\\n\"", ")", ";", "Result", "=", "decodeInstruction", "(", "DecoderTable32", ",", "MI", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "Size", "=", "4", ";", "}", "else", "{", "if", "(", "Bytes", ".", "size", "(", ")", "<", "2", ")", "{", "Size", "=", "0", ";", "return", "MCDisassembler", "::", "Fail", ";", "}", "Insn", "=", "support", "::", "endian", "::", "read16le", "(", "Bytes", ".", "data", "(", ")", ")", ";", "if", "(", "!", "STI", ".", "getFeatureBits", "(", ")", "[", "RISCV", "::", "Feature64Bit", "]", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Trying RISCV32Only_16 table (16-bit Instruction):\\n\"", ")", ";", "Result", "=", "decodeInstruction", "(", "DecoderTableRISCV32Only_16", ",", "MI", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Result", "!=", "MCDisassembler", "::", "Fail", ")", "{", "Size", "=", "2", ";", "return", "Result", ";", "}", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Trying RISCV_C table (16-bit Instruction):\\n\"", ")", ";", "Result", "=", "decodeInstruction", "(", "DecoderTable16", ",", "MI", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "Size", "=", "2", ";", "}", "return", "Result", ";", "}", ""], "natrual_language": ["Returns", "the", "disassembly", "of", "a", "single", "instruction", "."], "TS_V_token": ["RISCV", "RISCV", "0", "0x3", "0x3", "4", "0", "support::endian", "\"Trying RISCV32 table :\\n\"", "4", "2", "0", "support::endian", "RISCV::Feature64Bit", "\"Trying RISCV32Only_16 table (16-bit Instruction):\\n\"", "RISCV", "2", "\"Trying RISCV_C table (16-bit Instruction):\\n\"", "2"], "File": "RISCVDisassembler", "Func": "getInstruction", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 39, "Length": 251, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVAsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "if", "(", "emitPseudoExpansionLowering", "(", "*", "OutStreamer", ",", "MI", ")", ")", "return", ";", "MCInst", "TmpInst", ";", "LowerRISCVMachineInstrToMCInst", "(", "MI", ",", "TmpInst", ",", "*", "this", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "TmpInst", ")", ";", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV"], "File": "RISCVAsmPrinter12", "Func": "EmitInstruction", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 40, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVAsmPrinter", "::", "emitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "if", "(", "emitPseudoExpansionLowering", "(", "*", "OutStreamer", ",", "MI", ")", ")", "return", ";", "MCInst", "TmpInst", ";", "if", "(", "!", "lowerRISCVMachineInstrToMCInst", "(", "MI", ",", "TmpInst", ",", "*", "this", ")", ")", "EmitToStreamer", "(", "*", "OutStreamer", ",", "TmpInst", ")", ";", "}", ""], "natrual_language": ["Targets", "should", "implement", "this", "to", "emit", "instructions", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV"], "File": "RISCVAsmPrinter", "Func": "emitInstruction", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 41, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "inline", "machine_mode", "function_expander", "::", "index_mode", "(", "void", ")", "const", "{", "return", "TYPE_MODE", "(", "op_info", "->", "args", "[", "1", "]", ".", "get_tree_type", "(", "type", ".", "index", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "machine_mode", "of", "the", "corresponding", "index", "type", "."], "TS_V_token": ["riscv", "1"], "File": "riscv-vector-builtins", "Func": "index_mode", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 42, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "has_vtype_op", "(", "rtx_insn", "*", "rinsn", ")", "{", "return", "recog_memoized", "(", "rinsn", ")", ">=", "0", "&&", "get_attr_has_vtype_op", "(", "rinsn", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "it", "is", "an", "RVV", "instruction", "depends", "on", "VTYPE", "global", "status", "register", "."], "TS_V_token": ["riscv", "0"], "File": "riscv-vsetvl", "Func": "has_vtype_op", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 43, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "RISCVAsmParser", "::", "validateTargetOperandClass", "(", "MCParsedAsmOperand", "&", "AsmOp", ",", "unsigned", "Kind", ")", "{", "RISCVOperand", "&", "Op", "=", "static_cast", "<", "RISCVOperand", "&", ">", "(", "AsmOp", ")", ";", "if", "(", "!", "Op", ".", "isReg", "(", ")", ")", "return", "Match_InvalidOperand", ";", "Register", "Reg", "=", "Op", ".", "getReg", "(", ")", ";", "bool", "IsRegFPR32", "=", "RISCVMCRegisterClasses", "[", "RISCV", "::", "FPR32RegClassID", "]", ".", "contains", "(", "Reg", ")", ";", "bool", "IsRegFPR32C", "=", "RISCVMCRegisterClasses", "[", "RISCV", "::", "FPR32CRegClassID", "]", ".", "contains", "(", "Reg", ")", ";", "if", "(", "(", "IsRegFPR32", "&&", "Kind", "==", "MCK_FPR64", ")", "||", "(", "IsRegFPR32C", "&&", "Kind", "==", "MCK_FPR64C", ")", ")", "{", "Op", ".", "Reg", ".", "RegNum", "=", "convertFPR32ToFPR64", "(", "Reg", ")", ";", "return", "Match_Success", ";", "}", "return", "Match_InvalidOperand", ";", "}", ""], "natrual_language": ["Allow", "a", "target", "to", "add", "special", "case", "operand", "matching", "for", "things", "that", "tblgen", "doesn't/ca", "n't", "handle", "effectively", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV", "RISCV", "RISCV", "RISCV::FPR32RegClassID", "RISCV", "RISCV::FPR32CRegClassID"], "File": "RISCVAsmParser46", "Func": "validateTargetOperandClass", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 44, "Length": 115, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "riscv_legitimize_const_move", "(", "enum", "machine_mode", "mode", ",", "rtx", "dest", ",", "rtx", "src", ")", "{", "rtx", "base", ",", "offset", ";", "if", "(", "splittable_const_int_operand", "(", "src", ",", "mode", ")", ")", "{", "riscv_move_integer", "(", "dest", ",", "dest", ",", "INTVAL", "(", "src", ")", ")", ";", "return", ";", "}", "if", "(", "riscv_split_symbol", "(", "dest", ",", "src", ",", "MAX_MACHINE_MODE", ",", "&", "src", ")", ")", "{", "riscv_emit_set", "(", "dest", ",", "src", ")", ";", "return", ";", "}", "if", "(", "riscv_tls_symbol_p", "(", "src", ")", ")", "{", "riscv_emit_move", "(", "dest", ",", "riscv_legitimize_tls_address", "(", "src", ")", ")", ";", "return", ";", "}", "split_const", "(", "src", ",", "&", "base", ",", "&", "offset", ")", ";", "if", "(", "offset", "!=", "const0_rtx", "&&", "(", "targetm", ".", "cannot_force_const_mem", "(", "mode", ",", "src", ")", "||", "can_create_pseudo_p", "(", ")", ")", ")", "{", "base", "=", "riscv_force_temporary", "(", "dest", ",", "base", ")", ";", "riscv_emit_move", "(", "dest", ",", "riscv_add_offset", "(", "NULL", ",", "base", ",", "INTVAL", "(", "offset", ")", ")", ")", ";", "return", ";", "}", "src", "=", "force_const_mem", "(", "mode", ",", "src", ")", ";", "riscv_split_symbol", "(", "dest", ",", "XEXP", "(", "src", ",", "0", ")", ",", "mode", ",", "&", "XEXP", "(", "src", ",", "0", ")", ")", ";", "riscv_emit_move", "(", "dest", ",", "src", ")", ";", "}", ""], "natrual_language": ["Subroutine", "of", "riscv_legitimize_move", ".", "Move", "constant", "SRC", "into", "register", "DEST", "given", "that", "SRC", "satisfies", "immediate_operand", "but", "does", "n't", "satisfy", "move_operand", "."], "TS_V_token": ["riscv", "0", "0"], "File": "riscv2", "Func": "riscv_legitimize_const_move", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 45, "Length": 192, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "SrcReg", ",", "bool", "IsKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "RC", "==", "&", "RISCV", "::", "GPRRegClass", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "RISCV", "::", "SW", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "IsKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ";", "else", "llvm_unreachable", "(", "\"Can't store this register to stack slot\"", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV::GPRRegClass", "RISCV::SW", "0", "\"Can't store this register to stack slot\""], "File": "RISCVInstrInfo33", "Func": "storeRegToStackSlot", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 46, "Length": 108, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVInstrInfo", "::", "analyzeBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "*", "&", "TBB", ",", "MachineBasicBlock", "*", "&", "FBB", ",", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Cond", ",", "bool", "AllowModify", ")", "const", "{", "TBB", "=", "FBB", "=", "nullptr", ";", "Cond", ".", "clear", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "getLastNonDebugInstr", "(", ")", ";", "if", "(", "I", "==", "MBB", ".", "end", "(", ")", "||", "!", "isUnpredicatedTerminator", "(", "*", "I", ")", ")", "return", "false", ";", "MachineBasicBlock", "::", "iterator", "FirstUncondOrIndirectBr", "=", "MBB", ".", "end", "(", ")", ";", "int", "NumTerminators", "=", "0", ";", "for", "(", "auto", "J", "=", "I", ".", "getReverse", "(", ")", ";", "J", "!=", "MBB", ".", "rend", "(", ")", "&&", "isUnpredicatedTerminator", "(", "*", "J", ")", ";", "J", "++", ")", "{", "NumTerminators", "++", ";", "if", "(", "J", "->", "getDesc", "(", ")", ".", "isUnconditionalBranch", "(", ")", "||", "J", "->", "getDesc", "(", ")", ".", "isIndirectBranch", "(", ")", ")", "{", "FirstUncondOrIndirectBr", "=", "J", ".", "getReverse", "(", ")", ";", "}", "}", "if", "(", "AllowModify", "&&", "FirstUncondOrIndirectBr", "!=", "MBB", ".", "end", "(", ")", ")", "{", "while", "(", "std", "::", "next", "(", "FirstUncondOrIndirectBr", ")", "!=", "MBB", ".", "end", "(", ")", ")", "{", "std", "::", "next", "(", "FirstUncondOrIndirectBr", ")", "->", "eraseFromParent", "(", ")", ";", "NumTerminators", "--", ";", "}", "I", "=", "FirstUncondOrIndirectBr", ";", "}", "if", "(", "I", "->", "getDesc", "(", ")", ".", "isIndirectBranch", "(", ")", ")", "return", "true", ";", "if", "(", "NumTerminators", ">", "2", ")", "return", "true", ";", "if", "(", "NumTerminators", "==", "1", "&&", "I", "->", "getDesc", "(", ")", ".", "isUnconditionalBranch", "(", ")", ")", "{", "TBB", "=", "I", "->", "getOperand", "(", "0", ")", ".", "getMBB", "(", ")", ";", "return", "false", ";", "}", "if", "(", "NumTerminators", "==", "1", "&&", "I", "->", "getDesc", "(", ")", ".", "isConditionalBranch", "(", ")", ")", "{", "parseCondBranch", "(", "*", "I", ",", "TBB", ",", "Cond", ")", ";", "return", "false", ";", "}", "if", "(", "NumTerminators", "==", "2", "&&", "std", "::", "prev", "(", "I", ")", "->", "getDesc", "(", ")", ".", "isConditionalBranch", "(", ")", "&&", "I", "->", "getDesc", "(", ")", ".", "isUnconditionalBranch", "(", ")", ")", "{", "parseCondBranch", "(", "*", "std", "::", "prev", "(", "I", ")", ",", "TBB", ",", "Cond", ")", ";", "FBB", "=", "I", "->", "getOperand", "(", "0", ")", ".", "getMBB", "(", ")", ";", "return", "false", ";", "}", "return", "true", ";", "}", ""], "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": ["RISCV", "RISCV", "0", "2", "1", "0", "1", "2", "0"], "File": "RISCVInstrInfo", "Func": "analyzeBranch", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 47, "Length": 361, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "riscv_use_save_libcall", "(", "const", "struct", "riscv_frame_info", "*", "frame", ")", "{", "if", "(", "!", "TARGET_SAVE_RESTORE", "||", "crtl", "->", "calls_eh_return", "||", "frame_pointer_needed", "||", "cfun", "->", "machine", "->", "interrupt_handler_p", ")", "return", "false", ";", "return", "frame", "->", "save_libcall_adjustment", "!=", "0", ";", "}", ""], "natrual_language": ["Determine", "whether", "to", "call", "GPR", "save/restore", "routines", "."], "TS_V_token": ["riscv", "0"], "File": "riscv", "Func": "riscv_use_save_libcall", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 48, "Length": 39, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "pass_shorten_memrefs", "::", "regno_map", "*", "pass_shorten_memrefs", "::", "analyze", "(", "basic_block", "bb", ")", "{", "regno_map", "*", "m", "=", "hash_map", "<", "regno_hash", ",", "int", ">", "::", "create_ggc", "(", "10", ")", ";", "rtx_insn", "*", "insn", ";", "regstat_init_n_sets_and_refs", "(", ")", ";", "FOR_BB_INSNS", "(", "bb", ",", "insn", ")", "{", "if", "(", "!", "NONJUMP_INSN_P", "(", "insn", ")", ")", "continue", ";", "rtx", "pat", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "pat", ")", "!=", "SET", ")", "continue", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "2", ";", "i", "++", ")", "{", "rtx", "mem", "=", "XEXP", "(", "pat", ",", "i", ")", ";", "rtx", "addr", ";", "bool", "extend", "=", "false", ";", "if", "(", "get_si_mem_base_reg", "(", "mem", ",", "&", "addr", ",", "&", "extend", ")", ")", "{", "HOST_WIDE_INT", "regno", "=", "REGNO", "(", "XEXP", "(", "addr", ",", "0", ")", ")", ";", "if", "(", "i", "==", "0", ")", "{", "if", "(", "XEXP", "(", "pat", ",", "1", ")", "==", "CONST0_RTX", "(", "GET_MODE", "(", "XEXP", "(", "pat", ",", "1", ")", ")", ")", ")", "continue", ";", "}", "if", "(", "REG_N_REFS", "(", "regno", ")", "<", "4", ")", "continue", ";", "m", "->", "get_or_insert", "(", "regno", ")", "++", ";", "}", "}", "}", "regstat_free_n_sets_and_refs", "(", ")", ";", "return", "m", ";", "}", ""], "natrual_language": ["Count", "how", "many", "times", "each", "regno", "is", "referenced", "as", "base", "address", "for", "a", "memory", "access", "."], "TS_V_token": ["riscv", "10", "0", "2", "0", "0", "1", "1", "4"], "File": "riscv-shorten-memrefs", "Func": "analyze", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 49, "Length": 194, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "section", "*", "riscv_elf_select_rtx_section", "(", "machine_mode", "mode", ",", "rtx", "x", ",", "unsigned", "HOST_WIDE_INT", "align", ")", "{", "section", "*", "s", "=", "default_elf_select_rtx_section", "(", "mode", ",", "x", ",", "align", ")", ";", "if", "(", "riscv_size_ok_for_small_data_p", "(", "GET_MODE_SIZE", "(", "mode", ")", ")", ")", "{", "if", "(", "startswith", "(", "s", "->", "named", ".", "name", ",", "\".rodata.cst\"", ")", ")", "{", "char", "*", "name", "=", "(", "char", "*", ")", "alloca", "(", "strlen", "(", "s", "->", "named", ".", "name", ")", "+", "2", ")", ";", "sprintf", "(", "name", ",", "\".s%s\"", ",", "s", "->", "named", ".", "name", "+", "1", ")", ";", "return", "get_section", "(", "name", ",", "s", "->", "named", ".", "common", ".", "flags", ",", "NULL", ")", ";", "}", "if", "(", "s", "==", "data_section", ")", "return", "sdata_section", ";", "}", "return", "s", ";", "}", ""], "natrual_language": ["Return", "a", "section", "for", "X", ",", "handling", "small", "data", "."], "TS_V_token": ["riscv", "\".rodata.cst\"", "2", "\".s%s\"", "1"], "File": "riscv", "Func": "riscv_elf_select_rtx_section", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 50, "Length": 122, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "can_be_overloaded_p", "(", "enum", "predication_type_index", "pred", ")", "const", "override", "{", "return", "pred", "==", "PRED_TYPE_tu", "||", "pred", "==", "PRED_TYPE_tum", "||", "pred", "==", "PRED_TYPE_tumu", ";", "}", ""], "natrual_language": ["Since", "most", "of", "intrinsics", "can", "be", "overloaded", ",", "we", "set", "it", "true", "by", "default", "."], "TS_V_token": ["riscv"], "File": "riscv-vector-builtins-bases", "Func": "can_be_overloaded_p", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 51, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "riscv_option_override", "(", "void", ")", "{", "const", "struct", "riscv_tune_info", "*", "cpu", ";", "SUBTARGET_OVERRIDE_OPTIONS", ";", "flag_pcc_struct_return", "=", "0", ";", "if", "(", "flag_pic", ")", "g_switch_value", "=", "0", ";", "if", "(", "TARGET_MUL", "&&", "(", "target_flags_explicit", "&", "MASK_DIV", ")", "==", "0", ")", "target_flags", "|=", "MASK_DIV", ";", "else", "if", "(", "!", "TARGET_MUL", "&&", "TARGET_DIV", ")", "error", "(", "\"%<-mdiv%> requires %<-march%> to subsume the % extension\"", ")", ";", "if", "(", "TARGET_HARD_FLOAT", "&&", "(", "target_flags_explicit", "&", "MASK_FDIV", ")", "==", "0", ")", "target_flags", "|=", "MASK_FDIV", ";", "cpu", "=", "riscv_parse_tune", "(", "riscv_tune_string", "?", "riscv_tune_string", ":", "(", "riscv_cpu_string", "?", "riscv_cpu_string", ":", "RISCV_TUNE_STRING_DEFAULT", ")", ")", ";", "riscv_microarchitecture", "=", "cpu", "->", "microarchitecture", ";", "tune_param", "=", "optimize_size", "?", "&", "optimize_size_tune_info", ":", "cpu", "->", "tune_param", ";", "riscv_slow_unaligned_access_p", "=", "(", "cpu", "->", "tune_param", "->", "slow_unaligned_access", "||", "TARGET_STRICT_ALIGN", ")", ";", "if", "(", "(", "target_flags_explicit", "&", "MASK_STRICT_ALIGN", ")", "==", "0", "&&", "cpu", "->", "tune_param", "->", "slow_unaligned_access", ")", "target_flags", "|=", "MASK_STRICT_ALIGN", ";", "if", "(", "riscv_branch_cost", "==", "0", ")", "riscv_branch_cost", "=", "tune_param", "->", "branch_cost", ";", "init_machine_status", "=", "&", "riscv_init_machine_status", ";", "if", "(", "flag_pic", ")", "riscv_cmodel", "=", "CM_PIC", ";", "if", "(", "(", "target_flags_explicit", "&", "MASK_EXPLICIT_RELOCS", ")", "==", "0", ")", "if", "(", "riscv_cmodel", "==", "CM_MEDLOW", ")", "target_flags", "|=", "MASK_EXPLICIT_RELOCS", ";", "if", "(", "UNITS_PER_FP_ARG", ">", "(", "TARGET_HARD_FLOAT", "?", "UNITS_PER_FP_REG", ":", "0", ")", ")", "error", "(", "\"requested ABI requires %<-march%> to subsume the %qc extension\"", ",", "UNITS_PER_FP_ARG", ">", "8", "?", "'Q'", ":", "(", "UNITS_PER_FP_ARG", ">", "4", "?", "'D'", ":", "'F'", ")", ")", ";", "if", "(", "TARGET_RVE", "&&", "riscv_abi", "!=", "ABI_ILP32E", ")", "error", "(", "\"rv32e requires ilp32e ABI\"", ")", ";", "if", "(", "BITS_PER_WORD", "!=", "POINTER_SIZE", ")", "error", "(", "\"ABI requires %<-march=rv%d%>\"", ",", "POINTER_SIZE", ")", ";", "riscv_stack_boundary", "=", "ABI_STACK_BOUNDARY", ";", "if", "(", "riscv_preferred_stack_boundary_arg", ")", "{", "int", "min", "=", "ctz_hwi", "(", "STACK_BOUNDARY", "/", "8", ")", ";", "int", "max", "=", "8", ";", "if", "(", "!", "IN_RANGE", "(", "riscv_preferred_stack_boundary_arg", ",", "min", ",", "max", ")", ")", "error", "(", "\"%<-mpreferred-stack-boundary=%d%> must be between %d and %d\"", ",", "riscv_preferred_stack_boundary_arg", ",", "min", ",", "max", ")", ";", "riscv_stack_boundary", "=", "8", "<<", "riscv_preferred_stack_boundary_arg", ";", "}", "if", "(", "riscv_emit_attribute_p", "<", "0", ")", "riscv_emit_attribute_p", "=", "TARGET_RISCV_ATTRIBUTE", ";", "riscv_emit_attribute_p", "=", "0", ";", "if", "(", "riscv_emit_attribute_p", ")", "error", "(", "\"%<-mriscv-attribute%> RISC-V ELF attribute requires GNU as 2.32\"", "\" [%<-mriscv-attribute%>]\"", ")", ";", "if", "(", "riscv_stack_protector_guard", "==", "SSP_GLOBAL", "&&", "OPTION_SET_P", "(", "riscv_stack_protector_guard_offset_str", ")", ")", "{", "error", "(", "\"incompatible options %<-mstack-protector-guard=global%> and \"", "\"%<-mstack-protector-guard-offset=%s%>\"", ",", "riscv_stack_protector_guard_offset_str", ")", ";", "}", "if", "(", "riscv_stack_protector_guard", "==", "SSP_TLS", "&&", "!", "(", "OPTION_SET_P", "(", "riscv_stack_protector_guard_offset_str", ")", "&&", "OPTION_SET_P", "(", "riscv_stack_protector_guard_reg_str", ")", ")", ")", "{", "error", "(", "\"both %<-mstack-protector-guard-offset%> and \"", "\"%<-mstack-protector-guard-reg%> must be used \"", "\"with %<-mstack-protector-guard=sysreg%>\"", ")", ";", "}", "if", "(", "OPTION_SET_P", "(", "riscv_stack_protector_guard_reg_str", ")", ")", "{", "const", "char", "*", "str", "=", "riscv_stack_protector_guard_reg_str", ";", "int", "reg", "=", "decode_reg_name", "(", "str", ")", ";", "if", "(", "!", "IN_RANGE", "(", "reg", ",", "GP_REG_FIRST", "+", "1", ",", "GP_REG_LAST", ")", ")", "error", "(", "\"%qs is not a valid base register in %qs\"", ",", "str", ",", "\"-mstack-protector-guard-reg=\"", ")", ";", "riscv_stack_protector_guard_reg", "=", "reg", ";", "}", "if", "(", "OPTION_SET_P", "(", "riscv_stack_protector_guard_offset_str", ")", ")", "{", "char", "*", "end", ";", "const", "char", "*", "str", "=", "riscv_stack_protector_guard_offset_str", ";", "errno", "=", "0", ";", "long", "offs", "=", "strtol", "(", "riscv_stack_protector_guard_offset_str", ",", "&", "end", ",", "0", ")", ";", "if", "(", "!", "*", "str", "||", "*", "end", "||", "errno", ")", "error", "(", "\"%qs is not a valid number in %qs\"", ",", "str", ",", "\"-mstack-protector-guard-offset=\"", ")", ";", "if", "(", "!", "SMALL_OPERAND", "(", "offs", ")", ")", "error", "(", "\"%qs is not a valid offset in %qs\"", ",", "str", ",", "\"-mstack-protector-guard-offset=\"", ")", ";", "riscv_stack_protector_guard_offset", "=", "offs", ";", "}", "}", ""], "natrual_language": ["Implement", "TARGET_OPTION_OVERRIDE", "."], "TS_V_token": ["riscv", "0", "0", "0", "\"%<-mdiv%> requires %<-march%> to subsume the % extension\"", "0", "0", "0", "0", "0", "\"requested ABI requires %<-march%> to subsume the %qc extension\"", "8", "4", "\"rv32e requires ilp32e ABI\"", "\"ABI requires %<-march=rv%d%>\"", "8", "8", "\"%<-mpreferred-stack-boundary=%d%> must be between %d and %d\"", "8", "0", "0", "\"%<-mriscv-attribute%> RISC-V ELF attribute requires GNU as 2.32\"", "\" [%<-mriscv-attribute%>]\"", "\"incompatible options %<-mstack-protector-guard=global%> and \"", "\"%<-mstack-protector-guard-offset=%s%>\"", "\"both %<-mstack-protector-guard-offset%> and \"", "\"%<-mstack-protector-guard-reg%> must be used \"", "\"with %<-mstack-protector-guard=sysreg%>\"", "1", "\"%qs is not a valid base register in %qs\"", "\"-mstack-protector-guard-reg=\"", "0", "0", "\"%qs is not a valid number in %qs\"", "\"-mstack-protector-guard-offset=\"", "\"%qs is not a valid offset in %qs\"", "\"-mstack-protector-guard-offset=\""], "File": "riscv", "Func": "riscv_option_override", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 52, "Length": 499, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVRegisterInfo", "::", "isConstantPhysReg", "(", "unsigned", "PhysReg", ")", "const", "{", "return", "PhysReg", "==", "RISCV", "::", "X0", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "PhysReg", "is", "unallocatable", "and", "constant", "throughout", "the", "function", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV::X0"], "File": "RISCVRegisterInfo", "Func": "isConstantPhysReg", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 53, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVAsmBackend", "::", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "MCInst", "&", "Res", ")", "const", "{", "switch", "(", "Inst", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Opcode not expected!\"", ")", ";", "case", "RISCV", "::", "C_BEQZ", ":", "Res", ".", "setOpcode", "(", "RISCV", "::", "BEQ", ")", ";", "Res", ".", "addOperand", "(", "Inst", ".", "getOperand", "(", "0", ")", ")", ";", "Res", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "RISCV", "::", "X0", ")", ")", ";", "Res", ".", "addOperand", "(", "Inst", ".", "getOperand", "(", "1", ")", ")", ";", "break", ";", "case", "RISCV", "::", "C_BNEZ", ":", "Res", ".", "setOpcode", "(", "RISCV", "::", "BNE", ")", ";", "Res", ".", "addOperand", "(", "Inst", ".", "getOperand", "(", "0", ")", ")", ";", "Res", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "RISCV", "::", "X0", ")", ")", ";", "Res", ".", "addOperand", "(", "Inst", ".", "getOperand", "(", "1", ")", ")", ";", "break", ";", "case", "RISCV", "::", "C_J", ":", "Res", ".", "setOpcode", "(", "RISCV", "::", "JAL", ")", ";", "Res", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "RISCV", "::", "X0", ")", ")", ";", "Res", ".", "addOperand", "(", "Inst", ".", "getOperand", "(", "0", ")", ")", ";", "break", ";", "case", "RISCV", "::", "C_JAL", ":", "Res", ".", "setOpcode", "(", "RISCV", "::", "JAL", ")", ";", "Res", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "RISCV", "::", "X1", ")", ")", ";", "Res", ".", "addOperand", "(", "Inst", ".", "getOperand", "(", "0", ")", ")", ";", "break", ";", "}", "}", ""], "natrual_language": ["Relax", "the", "instruction", "in", "the", "given", "fragment", "to", "the", "next", "wider", "instruction", "."], "TS_V_token": ["RISCV", "RISCV", "\"Opcode not expected!\"", "RISCV::C_BEQZ", "RISCV::BEQ", "0", "RISCV::X0", "1", "RISCV::C_BNEZ", "RISCV::BNE", "0", "RISCV::X0", "1", "RISCV::C_J", "RISCV::JAL", "RISCV::X0", "0", "RISCV::C_JAL", "RISCV::JAL", "RISCV::X1", "0"], "File": "RISCVAsmBackend", "Func": "relaxInstruction", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 54, "Length": 231, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "expand_builtin", "(", "unsigned", "int", "code", ",", "tree", "exp", ",", "rtx", "target", ")", "{", "registered_function", "&", "rfn", "=", "*", "(", "*", "registered_functions", ")", "[", "code", "]", ";", "return", "function_expander", "(", "rfn", ".", "instance", ",", "rfn", ".", "decl", ",", "exp", ",", "target", ")", ".", "expand", "(", ")", ";", "}", ""], "natrual_language": ["Expand", "a", "call", "to", "the", "RVV", "function", "with", "subcode", "CODE", ".", "EXP", "is", "the", "call", "expression", "and", "TARGET", "is", "the", "preferred", "location", "for", "the", "result", ".", "Return", "the", "value", "of", "the", "lhs", "."], "TS_V_token": ["riscv"], "File": "riscv-vector-builtins", "Func": "expand_builtin", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 55, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "RISCV_OPTIMIZE_VSETVL_USES_NAME", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["RISCV", "RISCV"], "File": "RISCVOptimizeVSETVLUses", "Func": "getPassName", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 56, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "riscv_load_store_insns", "(", "rtx", "mem", ",", "rtx_insn", "*", "insn", ")", "{", "machine_mode", "mode", ";", "bool", "might_split_p", ";", "rtx", "set", ";", "gcc_assert", "(", "MEM_P", "(", "mem", ")", ")", ";", "mode", "=", "GET_MODE", "(", "mem", ")", ";", "might_split_p", "=", "true", ";", "if", "(", "GET_MODE_BITSIZE", "(", "mode", ")", ".", "to_constant", "(", ")", "<=", "32", ")", "might_split_p", "=", "false", ";", "else", "if", "(", "GET_MODE_BITSIZE", "(", "mode", ")", ".", "to_constant", "(", ")", "==", "64", ")", "{", "set", "=", "single_set", "(", "insn", ")", ";", "if", "(", "set", "&&", "!", "riscv_split_64bit_move_p", "(", "SET_DEST", "(", "set", ")", ",", "SET_SRC", "(", "set", ")", ")", ")", "might_split_p", "=", "false", ";", "}", "return", "riscv_address_insns", "(", "XEXP", "(", "mem", ",", "0", ")", ",", "mode", ",", "might_split_p", ")", ";", "}", ""], "natrual_language": ["Return", "the", "number", "of", "instructions", "needed", "to", "implement", "INSN", ",", "given", "that", "it", "loads", "from", "or", "stores", "to", "MEM", "."], "TS_V_token": ["riscv", "32", "64", "0"], "File": "riscv1", "Func": "riscv_load_store_insns", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 57, "Length": 117, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "RISCVInstrInfo", "::", "getInstSizeInBytes", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "{", "return", "get", "(", "Opcode", ")", ".", "getSize", "(", ")", ";", "}", "case", "TargetOpcode", "::", "EH_LABEL", ":", "case", "TargetOpcode", "::", "IMPLICIT_DEF", ":", "case", "TargetOpcode", "::", "KILL", ":", "case", "TargetOpcode", "::", "DBG_VALUE", ":", "return", "0", ";", "case", "RISCV", "::", "PseudoCALL", ":", "case", "RISCV", "::", "PseudoTAIL", ":", "case", "RISCV", "::", "PseudoLLA", ":", "case", "RISCV", "::", "PseudoLA", ":", "return", "8", ";", "case", "TargetOpcode", "::", "INLINEASM", ":", "case", "TargetOpcode", "::", "INLINEASM_BR", ":", "{", "const", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "auto", "&", "TM", "=", "static_cast", "<", "const", "RISCVTargetMachine", "&", ">", "(", "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": ["RISCV", "RISCV", "0", "RISCV::PseudoCALL", "RISCV::PseudoTAIL", "RISCV::PseudoLLA", "RISCV::PseudoLA", "8", "RISCV", "0"], "File": "RISCVInstrInfo44", "Func": "getInstSizeInBytes", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 58, "Length": 157, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "riscv_expand_op", "(", "enum", "rtx_code", "code", ",", "machine_mode", "mode", ",", "rtx", "op0", ",", "rtx", "op1", ",", "rtx", "op2", ")", "{", "if", "(", "can_create_pseudo_p", "(", ")", ")", "{", "rtx", "result", ";", "if", "(", "GET_RTX_CLASS", "(", "code", ")", "==", "RTX_UNARY", ")", "result", "=", "expand_simple_unop", "(", "mode", ",", "code", ",", "op1", ",", "NULL_RTX", ",", "false", ")", ";", "else", "result", "=", "expand_simple_binop", "(", "mode", ",", "code", ",", "op1", ",", "op2", ",", "NULL_RTX", ",", "false", ",", "OPTAB_DIRECT", ")", ";", "riscv_emit_move", "(", "op0", ",", "result", ")", ";", "}", "else", "{", "rtx", "pat", ";", "if", "(", "GET_RTX_CLASS", "(", "code", ")", "==", "RTX_UNARY", ")", "pat", "=", "gen_rtx_fmt_e", "(", "code", ",", "mode", ",", "op1", ")", ";", "else", "pat", "=", "gen_rtx_fmt_ee", "(", "code", ",", "mode", ",", "op1", ",", "op2", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "op0", ",", "pat", ")", ")", ";", "}", "}", ""], "natrual_language": ["Helper", "function", "to", "operation", "for", "rtx_code", "CODE", "."], "TS_V_token": ["riscv"], "File": "riscv1", "Func": "riscv_expand_op", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 59, "Length": 134, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVAsmPrinter", "::", "PrintAsmOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNo", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "OS", ")", "{", "if", "(", "!", "AsmPrinter", "::", "PrintAsmOperand", "(", "MI", ",", "OpNo", ",", "ExtraCode", ",", "OS", ")", ")", "return", "false", ";", "if", "(", "!", "ExtraCode", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "switch", "(", "MO", ".", "getType", "(", ")", ")", "{", "case", "MachineOperand", "::", "MO_Immediate", ":", "OS", "<<", "MO", ".", "getImm", "(", ")", ";", "return", "false", ";", "case", "MachineOperand", "::", "MO_Register", ":", "OS", "<<", "RISCVInstPrinter", "::", "getRegisterName", "(", "MO", ".", "getReg", "(", ")", ")", ";", "return", "false", ";", "default", ":", "break", ";", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["PrintAsmOperand", "-", "Print", "out", "an", "operand", "for", "an", "inline", "asm", "expression", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV"], "File": "RISCVAsmPrinter20", "Func": "PrintAsmOperand", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 60, "Length": 116, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVRegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", "RS", ")", "const", "{", "assert", "(", "SPAdj", "==", "0", "&&", "\"Unexpected non-zero SPAdj value\"", ")", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "const", "RISCVInstrInfo", "*", "TII", "=", "MF", ".", "getSubtarget", "<", "RISCVSubtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "DebugLoc", "DL", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "getIndex", "(", ")", ";", "unsigned", "FrameReg", ";", "int", "Offset", "=", "getFrameLowering", "(", "MF", ")", "->", "getFrameIndexReference", "(", "MF", ",", "FrameIndex", ",", "FrameReg", ")", "+", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "getImm", "(", ")", ";", "if", "(", "!", "isInt", "<", "32", ">", "(", "Offset", ")", ")", "{", "report_fatal_error", "(", "\"Frame offsets outside of the signed 32-bit range not supported\"", ")", ";", "}", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "bool", "FrameRegIsKill", "=", "false", ";", "if", "(", "!", "isInt", "<", "12", ">", "(", "Offset", ")", ")", "{", "assert", "(", "isInt", "<", "32", ">", "(", "Offset", ")", "&&", "\"Int32 expected\"", ")", ";", "Register", "ScratchReg", "=", "MRI", ".", "createVirtualRegister", "(", "&", "RISCV", "::", "GPRRegClass", ")", ";", "TII", "->", "movImm", "(", "MBB", ",", "II", ",", "DL", ",", "ScratchReg", ",", "Offset", ")", ";", "BuildMI", "(", "MBB", ",", "II", ",", "DL", ",", "TII", "->", "get", "(", "RISCV", "::", "ADD", ")", ",", "ScratchReg", ")", ".", "addReg", "(", "FrameReg", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Kill", ")", ";", "Offset", "=", "0", ";", "FrameReg", "=", "ScratchReg", ";", "FrameRegIsKill", "=", "true", ";", "}", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ",", "false", ",", "FrameRegIsKill", ")", ";", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["RISCV", "RISCV", "0", "\"Unexpected non-zero SPAdj value\"", "RISCV", "RISCV", "1", "32", "\"Frame offsets outside of the signed 32-bit range not supported\"", "12", "32", "\"Int32 expected\"", "RISCV::GPRRegClass", "RISCV::ADD", "0", "1"], "File": "RISCVRegisterInfo10", "Func": "eliminateFrameIndex", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 61, "Length": 304, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "convertSetCCLogicToBitwiseLogic", "(", "EVT", "VT", ")", "const", "override", "{", "return", "VT", ".", "isScalarInteger", "(", ")", ";", "}", ""], "natrual_language": ["Use", "bitwise", "logic", "to", "make", "pairs", "of", "compares", "more", "efficient", "."], "TS_V_token": ["RISCV"], "File": "RISCVISelLowering1", "Func": "convertSetCCLogicToBitwiseLogic", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 62, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "riscv_function_arg_boundary", "(", "enum", "machine_mode", "mode", ",", "const_tree", "type", ")", "{", "unsigned", "int", "alignment", ";", "if", "(", "type", "&&", "!", "AGGREGATE_TYPE_P", "(", "type", ")", ")", "alignment", "=", "TYPE_ALIGN", "(", "TYPE_MAIN_VARIANT", "(", "type", ")", ")", ";", "else", "alignment", "=", "type", "?", "TYPE_ALIGN", "(", "type", ")", ":", "GET_MODE_ALIGNMENT", "(", "mode", ")", ";", "return", "MIN", "(", "STACK_BOUNDARY", ",", "MAX", "(", "PARM_BOUNDARY", ",", "alignment", ")", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_FUNCTION_ARG_BOUNDARY", ".", "Every", "parameter", "gets", "at", "least", "PARM_BOUNDARY", "bits", "of", "alignment", ",", "but", "will", "be", "given", "anything", "up", "to", "STACK_BOUNDARY", "bits", "if", "the", "type", "requires", "it", "."], "TS_V_token": ["riscv"], "File": "riscv2", "Func": "riscv_function_arg_boundary", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 63, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "riscv_legitimate_address_p", "(", "machine_mode", "mode", ",", "rtx", "x", ",", "bool", "strict_p", ")", "{", "struct", "riscv_address_info", "addr", ";", "return", "riscv_classify_address", "(", "&", "addr", ",", "x", ",", "mode", ",", "strict_p", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_LEGITIMATE_ADDRESS_P", "."], "TS_V_token": ["riscv"], "File": "riscv", "Func": "riscv_legitimate_address_p", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 64, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "RISCVRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "RISCVFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "for", "(", "size_t", "Reg", "=", "0", ";", "Reg", "<", "getNumRegs", "(", ")", ";", "Reg", "++", ")", "{", "if", "(", "MF", ".", "getSubtarget", "<", "RISCVSubtarget", ">", "(", ")", ".", "isRegisterReservedByUser", "(", "Reg", ")", ")", "markSuperRegs", "(", "Reserved", ",", "Reg", ")", ";", "}", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "X0", ")", ";", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "X2", ")", ";", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "X3", ")", ";", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "X4", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "X8", ")", ";", "if", "(", "TFI", "->", "hasBP", "(", "MF", ")", ")", "markSuperRegs", "(", "Reserved", ",", "RISCVABI", "::", "getBPReg", "(", ")", ")", ";", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "VL", ")", ";", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "VTYPE", ")", ";", "assert", "(", "checkAllSuperRegsMarked", "(", "Reserved", ")", ")", ";", "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": ["RISCV", "RISCV", "RISCV", "0", "RISCV", "RISCV::X0", "RISCV::X2", "RISCV::X3", "RISCV::X4", "RISCV::X8", "RISCVABI::getBPReg", "RISCV::VL", "RISCV::VTYPE"], "File": "RISCVRegisterInfo14", "Func": "getReservedRegs", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 65, "Length": 175, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "riscv_emit_float_compare", "(", "enum", "rtx_code", "*", "code", ",", "rtx", "*", "op0", ",", "rtx", "*", "op1", ")", "{", "rtx", "tmp0", ",", "tmp1", ",", "cmp_op0", "=", "*", "op0", ",", "cmp_op1", "=", "*", "op1", ";", "enum", "rtx_code", "fp_code", "=", "*", "code", ";", "*", "code", "=", "NE", ";", "switch", "(", "fp_code", ")", "{", "case", "UNORDERED", ":", "*", "code", "=", "EQ", ";", "case", "ORDERED", ":", "tmp0", "=", "riscv_force_binary", "(", "word_mode", ",", "EQ", ",", "cmp_op0", ",", "cmp_op0", ")", ";", "tmp1", "=", "riscv_force_binary", "(", "word_mode", ",", "EQ", ",", "cmp_op1", ",", "cmp_op1", ")", ";", "*", "op0", "=", "riscv_force_binary", "(", "word_mode", ",", "AND", ",", "tmp0", ",", "tmp1", ")", ";", "*", "op1", "=", "const0_rtx", ";", "break", ";", "case", "UNEQ", ":", "*", "code", "=", "EQ", ";", "tmp0", "=", "riscv_force_binary", "(", "word_mode", ",", "EQ", ",", "cmp_op0", ",", "cmp_op0", ")", ";", "tmp1", "=", "riscv_force_binary", "(", "word_mode", ",", "EQ", ",", "cmp_op1", ",", "cmp_op1", ")", ";", "*", "op0", "=", "riscv_force_binary", "(", "word_mode", ",", "AND", ",", "tmp0", ",", "tmp1", ")", ";", "*", "op1", "=", "riscv_force_binary", "(", "word_mode", ",", "EQ", ",", "cmp_op0", ",", "cmp_op1", ")", ";", "break", ";", "case", "CODE", ":", "\\", "*", "code", "=", "EQ", ";", "\\", "*", "op0", "=", "gen_reg_rtx", "(", "word_mode", ")", ";", "\\", "if", "(", "GET_MODE", "(", "cmp_op0", ")", "==", "SFmode", "&&", "TARGET_64BIT", ")", "\\", "emit_insn", "(", "gen_f", "##", "CMP", "##", "_quietsfdi4", "(", "*", "op0", ",", "cmp_op0", ",", "cmp_op1", ")", ")", ";", "\\", "else", "if", "(", "GET_MODE", "(", "cmp_op0", ")", "==", "SFmode", ")", "\\", "emit_insn", "(", "gen_f", "##", "CMP", "##", "_quietsfsi4", "(", "*", "op0", ",", "cmp_op0", ",", "cmp_op1", ")", ")", ";", "\\", "else", "if", "(", "GET_MODE", "(", "cmp_op0", ")", "==", "DFmode", "&&", "TARGET_64BIT", ")", "\\", "emit_insn", "(", "gen_f", "##", "CMP", "##", "_quietdfdi4", "(", "*", "op0", ",", "cmp_op0", ",", "cmp_op1", ")", ")", ";", "\\", "else", "if", "(", "GET_MODE", "(", "cmp_op0", ")", "==", "DFmode", ")", "\\", "emit_insn", "(", "gen_f", "##", "CMP", "##", "_quietdfsi4", "(", "*", "op0", ",", "cmp_op0", ",", "cmp_op1", ")", ")", ";", "\\", "else", "\\", "gcc_unreachable", "(", ")", ";", "\\", "*", "op1", "=", "const0_rtx", ";", "\\", "break", ";", "case", "UNLT", ":", "std", "::", "swap", "(", "cmp_op0", ",", "cmp_op1", ")", ";", "gcc_fallthrough", "(", ")", ";", "UNORDERED_COMPARISON", "(", "UNGT", ",", "le", ")", "case", "UNLE", ":", "std", "::", "swap", "(", "cmp_op0", ",", "cmp_op1", ")", ";", "gcc_fallthrough", "(", ")", ";", "UNORDERED_COMPARISON", "(", "UNGE", ",", "lt", ")", "case", "NE", ":", "fp_code", "=", "EQ", ";", "*", "code", "=", "EQ", ";", "case", "EQ", ":", "case", "LE", ":", "case", "LT", ":", "case", "GE", ":", "case", "GT", ":", "*", "op0", "=", "riscv_force_binary", "(", "word_mode", ",", "fp_code", ",", "cmp_op0", ",", "cmp_op1", ")", ";", "*", "op1", "=", "const0_rtx", ";", "break", ";", "case", "LTGT", ":", "tmp0", "=", "riscv_force_binary", "(", "word_mode", ",", "LT", ",", "cmp_op0", ",", "cmp_op1", ")", ";", "tmp1", "=", "riscv_force_binary", "(", "word_mode", ",", "GT", ",", "cmp_op0", ",", "cmp_op1", ")", ";", "*", "op0", "=", "riscv_force_binary", "(", "word_mode", ",", "IOR", ",", "tmp0", ",", "tmp1", ")", ";", "*", "op1", "=", "const0_rtx", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Like", "riscv_emit_int_compare", ",", "but", "for", "floating-point", "comparisons", "."], "TS_V_token": ["riscv"], "File": "riscv", "Func": "riscv_emit_float_compare", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 66, "Length": 475, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "struct", "riscv_tune_info", "*", "riscv_parse_tune", "(", "const", "char", "*", "tune_string", ")", "{", "const", "riscv_cpu_info", "*", "cpu", "=", "riscv_find_cpu", "(", "tune_string", ")", ";", "if", "(", "cpu", ")", "tune_string", "=", "cpu", "->", "tune", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "ARRAY_SIZE", "(", "riscv_tune_info_table", ")", ";", "i", "++", ")", "if", "(", "strcmp", "(", "riscv_tune_info_table", "[", "i", "]", ".", "name", ",", "tune_string", ")", "==", "0", ")", "return", "riscv_tune_info_table", "+", "i", ";", "error", "(", "\"unknown cpu %qs for %<-mtune%>\"", ",", "tune_string", ")", ";", "return", "riscv_tune_info_table", ";", "}", ""], "natrual_language": ["Return", "the", "riscv_tune_info", "entry", "for", "the", "given", "name", "string", "."], "TS_V_token": ["riscv", "0", "0", "\"unknown cpu %qs for %<-mtune%>\""], "File": "riscv", "Func": "riscv_parse_tune", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 67, "Length": 82, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVFrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "assert", "(", "&", "MF", ".", "front", "(", ")", "==", "&", "MBB", "&&", "\"Shrink-wrapping not yet supported\"", ")", ";", "if", "(", "!", "hasFP", "(", "MF", ")", ")", "{", "report_fatal_error", "(", "\"emitPrologue doesn't support framepointer-less functions\"", ")", ";", "}", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "begin", "(", ")", ";", "unsigned", "FPReg", "=", "getFPReg", "(", "STI", ")", ";", "unsigned", "SPReg", "=", "getSPReg", "(", "STI", ")", ";", "DebugLoc", "DL", ";", "determineFrameLayout", "(", "MF", ")", ";", "uint64_t", "StackSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "if", "(", "StackSize", "==", "0", "&&", "!", "MFI", ".", "adjustsStack", "(", ")", ")", "return", ";", "adjustReg", "(", "MBB", ",", "MBBI", ",", "DL", ",", "SPReg", ",", "SPReg", ",", "-", "StackSize", ",", "MachineInstr", "::", "FrameSetup", ")", ";", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", "=", "MFI", ".", "getCalleeSavedInfo", "(", ")", ";", "std", "::", "advance", "(", "MBBI", ",", "CSI", ".", "size", "(", ")", ")", ";", "adjustReg", "(", "MBB", ",", "MBBI", ",", "DL", ",", "FPReg", ",", "SPReg", ",", "StackSize", ",", "MachineInstr", "::", "FrameSetup", ")", ";", "}", ""], "natrual_language": ["emitProlog/emitEpilog", "-", "These", "methods", "insert", "prolog", "and", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["RISCV", "RISCV", "\"Shrink-wrapping not yet supported\"", "\"emitPrologue doesn't support framepointer-less functions\"", "0"], "File": "RISCVFrameLowering30", "Func": "emitPrologue", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 68, "Length": 183, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "apply_tail_policy_p", "(", ")", "const", "override", "{", "return", "false", ";", "}", ""], "natrual_language": ["We", "choose", "to", "apply", "tail", "policy", "operand", "by", "default", "since", "most", "of", "the", "intrinsics", "has", "tail", "policy", "operand", "."], "TS_V_token": ["riscv"], "File": "riscv-vector-builtins-bases", "Func": "apply_tail_policy_p", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 69, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "riscv_hard_regno_nregs", "(", "unsigned", "int", "regno", ",", "machine_mode", "mode", ")", "{", "if", "(", "riscv_v_ext_vector_mode_p", "(", "mode", ")", ")", "{", "if", "(", "maybe_lt", "(", "GET_MODE_SIZE", "(", "mode", ")", ",", "UNITS_PER_V_REG", ")", ")", "return", "1", ";", "return", "exact_div", "(", "GET_MODE_SIZE", "(", "mode", ")", ",", "UNITS_PER_V_REG", ")", ".", "to_constant", "(", ")", ";", "}", "if", "(", "regno", "==", "VTYPE_REGNUM", "||", "regno", "==", "VL_REGNUM", ")", "return", "1", ";", "if", "(", "V_REG_P", "(", "regno", ")", ")", "return", "1", ";", "if", "(", "FP_REG_P", "(", "regno", ")", ")", "return", "(", "GET_MODE_SIZE", "(", "mode", ")", ".", "to_constant", "(", ")", "+", "UNITS_PER_FP_REG", "-", "1", ")", "/", "UNITS_PER_FP_REG", ";", "return", "(", "GET_MODE_SIZE", "(", "mode", ")", ".", "to_constant", "(", ")", "+", "UNITS_PER_WORD", "-", "1", ")", "/", "UNITS_PER_WORD", ";", "}", ""], "natrual_language": ["Implement", "HARD_REGNO_NREGS", "."], "TS_V_token": ["riscv", "1", "1", "1", "1", "1"], "File": "riscv1", "Func": "riscv_hard_regno_nregs", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 70, "Length": 119, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVFrameLowering", "::", "determineCalleeSaves", "(", "MachineFunction", "&", "MF", ",", "BitVector", "&", "SavedRegs", ",", "RegScavenger", "*", "RS", ")", "const", "{", "TargetFrameLowering", "::", "determineCalleeSaves", "(", "MF", ",", "SavedRegs", ",", "RS", ")", ";", "if", "(", "hasFP", "(", "MF", ")", ")", "{", "SavedRegs", ".", "set", "(", "RISCV", "::", "X1", ")", ";", "SavedRegs", ".", "set", "(", "RISCV", "::", "X8", ")", ";", "}", "if", "(", "hasBP", "(", "MF", ")", ")", "SavedRegs", ".", "set", "(", "RISCVABI", "::", "getBPReg", "(", ")", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "if", "(", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "\"interrupt\"", ")", "&&", "MFI", ".", "hasCalls", "(", ")", ")", "{", "static", "const", "MCPhysReg", "CSRegs", "[", "]", "=", "{", "RISCV", "::", "X1", ",", "RISCV", "::", "X5", ",", "RISCV", "::", "X6", ",", "RISCV", "::", "X7", ",", "RISCV", "::", "X10", ",", "RISCV", "::", "X11", ",", "RISCV", "::", "X12", ",", "RISCV", "::", "X13", ",", "RISCV", "::", "X14", ",", "RISCV", "::", "X15", ",", "RISCV", "::", "X16", ",", "RISCV", "::", "X17", ",", "RISCV", "::", "X28", ",", "RISCV", "::", "X29", ",", "RISCV", "::", "X30", ",", "RISCV", "::", "X31", ",", "0", "}", ";", "for", "(", "unsigned", "i", "=", "0", ";", "CSRegs", "[", "i", "]", ";", "++", "i", ")", "SavedRegs", ".", "set", "(", "CSRegs", "[", "i", "]", ")", ";", "if", "(", "MF", ".", "getSubtarget", "<", "RISCVSubtarget", ">", "(", ")", ".", "hasStdExtD", "(", ")", "||", "MF", ".", "getSubtarget", "<", "RISCVSubtarget", ">", "(", ")", ".", "hasStdExtF", "(", ")", ")", "{", "const", "MCPhysReg", "*", "Regs", "=", "MF", ".", "getRegInfo", "(", ")", ".", "getCalleeSavedRegs", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "Regs", "[", "i", "]", ";", "++", "i", ")", "if", "(", "RISCV", "::", "FPR32RegClass", ".", "contains", "(", "Regs", "[", "i", "]", ")", "||", "RISCV", "::", "FPR64RegClass", ".", "contains", "(", "Regs", "[", "i", "]", ")", ")", "SavedRegs", ".", "set", "(", "Regs", "[", "i", "]", ")", ";", "}", "}", "}", ""], "natrual_language": ["This", "method", "determines", "which", "of", "the", "registers", "reported", "by", "TargetRegisterInfo", ":", ":getCalleeSavedRegs", "(", ")", "should", "actually", "get", "saved", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV::X1", "RISCV::X8", "RISCVABI::getBPReg", "\"interrupt\"", "RISCV::X1", "RISCV::X5", "RISCV::X6", "RISCV::X7", "RISCV::X10", "RISCV::X11", "RISCV::X12", "RISCV::X13", "RISCV::X14", "RISCV::X15", "RISCV::X16", "RISCV::X17", "RISCV::X28", "RISCV::X29", "RISCV::X30", "RISCV::X31", "0", "0", "RISCV", "RISCV", "0", "RISCV::FPR32RegClass", "RISCV::FPR64RegClass"], "File": "RISCVFrameLowering", "Func": "determineCalleeSaves", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 71, "Length": 303, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "riscv_memmodel_needs_amo_acquire", "(", "enum", "memmodel", "model", ")", "{", "switch", "(", "model", ")", "{", "case", "MEMMODEL_ACQ_REL", ":", "case", "MEMMODEL_SEQ_CST", ":", "case", "MEMMODEL_SYNC_SEQ_CST", ":", "case", "MEMMODEL_ACQUIRE", ":", "case", "MEMMODEL_CONSUME", ":", "case", "MEMMODEL_SYNC_ACQUIRE", ":", "return", "true", ";", "case", "MEMMODEL_RELEASE", ":", "case", "MEMMODEL_SYNC_RELEASE", ":", "case", "MEMMODEL_RELAXED", ":", "return", "false", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Return", "true", "if", "the", ".AQ", "suffix", "should", "be", "added", "to", "an", "AMO", "to", "implement", "the", "acquire", "portion", "of", "memory", "model", "MODEL", "."], "TS_V_token": ["riscv"], "File": "riscv", "Func": "riscv_memmodel_needs_amo_acquire", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 72, "Length": 55, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "riscv_epilogue_uses", "(", "unsigned", "int", "regno", ")", "{", "if", "(", "regno", "==", "RETURN_ADDR_REGNUM", ")", "return", "true", ";", "if", "(", "epilogue_completed", "&&", "cfun", "->", "machine", "->", "interrupt_handler_p", ")", "{", "if", "(", "df_regs_ever_live_p", "(", "regno", ")", "||", "(", "!", "crtl", "->", "is_leaf", "&&", "call_used_regs", "[", "regno", "]", ")", ")", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Implement", "EPILOGUE_USES", "."], "TS_V_token": ["riscv"], "File": "riscv4", "Func": "riscv_epilogue_uses", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 73, "Length": 55, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVInstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MBBI", ",", "const", "DebugLoc", "&", "DL", ",", "unsigned", "DstReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "if", "(", "RISCV", "::", "GPRRegClass", ".", "contains", "(", "DstReg", ",", "SrcReg", ")", ")", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "get", "(", "RISCV", "::", "ADDI", ")", ",", "DstReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ".", "addImm", "(", "0", ")", ";", "return", ";", "}", "unsigned", "Opc", ";", "if", "(", "RISCV", "::", "FPR32RegClass", ".", "contains", "(", "DstReg", ",", "SrcReg", ")", ")", "Opc", "=", "RISCV", "::", "FSGNJ_S", ";", "else", "if", "(", "RISCV", "::", "FPR64RegClass", ".", "contains", "(", "DstReg", ",", "SrcReg", ")", ")", "Opc", "=", "RISCV", "::", "FSGNJ_D", ";", "else", "llvm_unreachable", "(", "\"Impossible reg-to-reg copy\"", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "get", "(", "Opc", ")", ",", "DstReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "}", ""], "natrual_language": ["}", "Branch", "Analysis", "&", "Modification"], "TS_V_token": ["RISCV", "RISCV", "RISCV::GPRRegClass", "RISCV::ADDI", "0", "RISCV::FPR32RegClass", "RISCV::FSGNJ_S", "RISCV::FPR64RegClass", "RISCV::FSGNJ_D", "\"Impossible reg-to-reg copy\""], "File": "RISCVInstrInfo", "Func": "copyPhysReg", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 74, "Length": 165, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "RISCVTargetLowering", "::", "ConstraintType", "RISCVTargetLowering", "::", "getConstraintType", "(", "StringRef", "Constraint", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "default", ":", "break", ";", "case", "'f'", ":", "case", "'v'", ":", "return", "C_RegisterClass", ";", "case", "'I'", ":", "case", "'J'", ":", "case", "'K'", ":", "return", "C_Immediate", ";", "case", "'A'", ":", "return", "C_Memory", ";", "case", "'S'", ":", "return", "C_Other", ";", "}", "}", "return", "TargetLowering", "::", "getConstraintType", "(", "Constraint", ")", ";", "}", ""], "natrual_language": ["Given", "a", "constraint", "letter", ",", "return", "the", "type", "of", "constraint", "for", "this", "target", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV", "1", "0"], "File": "RISCVISelLowering35", "Func": "getConstraintType", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 75, "Length": 79, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "riscv_can_use_return_insn", "(", "void", ")", "{", "return", "reload_completed", "&&", "cfun", "->", "machine", "->", "frame", ".", "total_size", "==", "0", ";", "}", ""], "natrual_language": ["Return", "nonzero", "if", "this", "function", "is", "known", "to", "have", "a", "null", "epilogue", ".", "This", "allows", "the", "optimizer", "to", "omit", "jumps", "to", "jumps", "if", "no", "stack", "was", "created", "."], "TS_V_token": ["riscv", "0"], "File": "riscv2", "Func": "riscv_can_use_return_insn", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 76, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "inline", "rtx", "function_expander", "::", "expand", "(", ")", "{", "return", "base", "->", "expand", "(", "*", "this", ")", ";", "}", ""], "natrual_language": ["Expand", "the", "call", "and", "return", "its", "lhs", "."], "TS_V_token": ["riscv"], "File": "riscv-vector-builtins", "Func": "expand", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 77, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "RISCVInstrInfo", "::", "isLoadFromStackSlot", "(", "const", "MachineInstr", "&", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "0", ";", "case", "RISCV", "::", "LB", ":", "case", "RISCV", "::", "LBU", ":", "case", "RISCV", "::", "LH", ":", "case", "RISCV", "::", "LHU", ":", "case", "RISCV", "::", "FLH", ":", "case", "RISCV", "::", "LW", ":", "case", "RISCV", "::", "FLW", ":", "case", "RISCV", "::", "LWU", ":", "case", "RISCV", "::", "LD", ":", "case", "RISCV", "::", "FLD", ":", "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": ["RISCV", "RISCV", "0", "RISCV::LB", "RISCV::LBU", "RISCV::LH", "RISCV::LHU", "RISCV::FLH", "RISCV::LW", "RISCV::FLW", "RISCV::LWU", "RISCV::LD", "RISCV::FLD", "1", "2", "2", "0", "1", "0", "0"], "File": "RISCVInstrInfo (2)", "Func": "isLoadFromStackSlot", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 78, "Length": 151, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVInstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MBBI", ",", "const", "DebugLoc", "&", "DL", ",", "unsigned", "DstReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "assert", "(", "RISCV", "::", "GPRRegClass", ".", "contains", "(", "DstReg", ",", "SrcReg", ")", "&&", "\"Impossible reg-to-reg copy\"", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "get", "(", "RISCV", "::", "ADDI", ")", ",", "DstReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ".", "addImm", "(", "0", ")", ";", "}", ""], "natrual_language": ["}", "Branch", "Analysis", "&", "Modification"], "TS_V_token": ["RISCV", "RISCV", "RISCV::GPRRegClass", "\"Impossible reg-to-reg copy\"", "RISCV::ADDI", "0"], "File": "RISCVInstrInfo17", "Func": "copyPhysReg", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 79, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVAsmPrinter", "::", "emitBasicBlockEnd", "(", "const", "MachineBasicBlock", "&", "MBB", ")", "{", "auto", "*", "RVFI", "=", "MF", "->", "getInfo", "<", "RISCVMachineFunctionInfo", ">", "(", ")", ";", "RISCVTargetStreamer", "&", "RTS", "=", "static_cast", "<", "RISCVTargetStreamer", "&", ">", "(", "*", "OutStreamer", "->", "getTargetStreamer", "(", ")", ")", ";", "if", "(", "RVFI", "->", "isHwlpBasicBlock", "(", "&", "MBB", ")", ")", "{", "RTS", ".", "emitDirectiveOptionPop", "(", ")", ";", "}", "AsmPrinter", "::", "emitBasicBlockEnd", "(", "MBB", ")", ";", "}", ""], "natrual_language": ["Targets", "can", "override", "this", "to", "emit", "stuff", "at", "the", "end", "of", "a", "basic", "block", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV", "RISCV", "RISCV"], "File": "RISCVAsmPrinter1", "Func": "emitBasicBlockEnd", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 80, "Length": 68, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCExpr", "*", "getSubExpr", "(", ")", "const", "{", "return", "Expr", ";", "}", ""], "natrual_language": ["getSubExpr", "-", "Get", "the", "child", "of", "this", "expression", "."], "TS_V_token": ["RISCV"], "File": "RISCVMCExpr", "Func": "getSubExpr", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 81, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "riscv_unspec_address_offset", "(", "rtx", "base", ",", "rtx", "offset", ",", "enum", "riscv_symbol_type", "symbol_type", ")", "{", "base", "=", "gen_rtx_UNSPEC", "(", "Pmode", ",", "gen_rtvec", "(", "1", ",", "base", ")", ",", "UNSPEC_ADDRESS_FIRST", "+", "symbol_type", ")", ";", "if", "(", "offset", "!=", "const0_rtx", ")", "base", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "base", ",", "offset", ")", ";", "return", "gen_rtx_CONST", "(", "Pmode", ",", "base", ")", ";", "}", ""], "natrual_language": ["Wrap", "symbol", "or", "label", "BASE", "in", "an", "UNSPEC", "address", "of", "type", "SYMBOL_TYPE", ",", "then", "add", "CONST_INT", "OFFSET", "to", "the", "result", "."], "TS_V_token": ["riscv", "1"], "File": "riscv", "Func": "riscv_unspec_address_offset", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 82, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"RISCV gather/scatter lowering\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["RISCV", "\"RISCV gather/scatter lowering\""], "File": "RISCVGatherScatterLowering", "Func": "getPassName", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 83, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVTargetLowering", "::", "isZExtFree", "(", "SDValue", "Val", ",", "EVT", "VT2", ")", "const", "{", "if", "(", "auto", "*", "LD", "=", "dyn_cast", "<", "LoadSDNode", ">", "(", "Val", ")", ")", "{", "EVT", "MemVT", "=", "LD", "->", "getMemoryVT", "(", ")", ";", "if", "(", "(", "MemVT", "==", "MVT", "::", "i8", "||", "MemVT", "==", "MVT", "::", "i16", "||", "(", "Subtarget", ".", "is64Bit", "(", ")", "&&", "MemVT", "==", "MVT", "::", "i32", ")", ")", "&&", "(", "LD", "->", "getExtensionType", "(", ")", "==", "ISD", "::", "NON_EXTLOAD", "||", "LD", "->", "getExtensionType", "(", ")", "==", "ISD", "::", "ZEXTLOAD", ")", ")", "return", "true", ";", "}", "return", "TargetLowering", "::", "isZExtFree", "(", "Val", ",", "VT2", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "zero-extending", "the", "specific", "node", "Val", "to", "type", "VT2", "is", "free", "(", "either", "because", "it", "'s", "implicitly", "zero-extended", "such", "as", "ARM", "ldrb", "/", "ldrh", "or", "because", "it", "'s", "folded", "such", "as", "X86", "zero-extending", "loads", ")", "."], "TS_V_token": ["RISCV", "RISCV", "MVT::i8", "MVT::i16", "MVT::i32", "ISD::NON_EXTLOAD", "ISD::ZEXTLOAD"], "File": "RISCVISelLowering", "Func": "isZExtFree", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 84, "Length": 104, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVTargetLowering", "::", "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", ")", ";", "Optional", "<", "unsigned", ">", "FirstMaskArgument", ";", "if", "(", "Subtarget", ".", "hasStdExtV", "(", ")", ")", "FirstMaskArgument", "=", "preAssignMask", "(", "Outs", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "Outs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "MVT", "VT", "=", "Outs", "[", "i", "]", ".", "VT", ";", "ISD", "::", "ArgFlagsTy", "ArgFlags", "=", "Outs", "[", "i", "]", ".", "Flags", ";", "RISCVABI", "::", "ABI", "ABI", "=", "MF", ".", "getSubtarget", "<", "RISCVSubtarget", ">", "(", ")", ".", "getTargetABI", "(", ")", ";", "if", "(", "CC_RISCV", "(", "MF", ".", "getDataLayout", "(", ")", ",", "ABI", ",", "i", ",", "VT", ",", "VT", ",", "CCValAssign", "::", "Full", ",", "ArgFlags", ",", "CCInfo", ",", "true", ",", "true", ",", "nullptr", ",", "*", "this", ",", "FirstMaskArgument", ")", ")", "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": ["RISCV", "RISCV", "ISD::OutputArg", "16", "0", "ISD::ArgFlagsTy", "RISCVABI::ABI", "RISCV", "RISCV"], "File": "RISCVISelLowering1", "Func": "CanLowerReturn", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 85, "Length": 185, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "pass_vsetvl", "::", "transfer_before", "(", "vector_insn_info", "&", "info", ",", "insn_info", "*", "insn", ")", "const", "{", "if", "(", "!", "has_vtype_op", "(", "insn", "->", "rtl", "(", ")", ")", ")", "return", ";", "const", "vector_insn_info", "require", "=", "m_vector_manager", "->", "vector_insn_infos", "[", "insn", "->", "uid", "(", ")", "]", ";", "if", "(", "info", ".", "valid_p", "(", ")", "&&", "!", "need_vsetvl", "(", "require", ",", "info", ")", ")", "return", ";", "info", "=", "require", ";", "}", ""], "natrual_language": ["Given", "an", "incoming", "state", "reaching", "INSN", ",", "modifies", "that", "state", "so", "that", "it", "is", "minimally", "compatible", "with", "INSN", ".", "The", "resulting", "state", "is", "guaranteed", "to", "be", "semantically", "legal", "for", "INSN", ",", "but", "may", "not", "be", "the", "state", "requested", "by", "INSN", "."], "TS_V_token": ["riscv"], "File": "riscv-vsetvl", "Func": "transfer_before", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 86, "Length": 67, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx_insn", "*", "riscv_call_tls_get_addr", "(", "rtx", "sym", ",", "rtx", "result", ")", "{", "rtx", "a0", "=", "gen_rtx_REG", "(", "Pmode", ",", "GP_ARG_FIRST", ")", ",", "func", ";", "rtx_insn", "*", "insn", ";", "if", "(", "!", "riscv_tls_symbol", ")", "riscv_tls_symbol", "=", "init_one_libfunc", "(", "\"__tls_get_addr\"", ")", ";", "func", "=", "gen_rtx_MEM", "(", "FUNCTION_MODE", ",", "riscv_tls_symbol", ")", ";", "start_sequence", "(", ")", ";", "emit_insn", "(", "riscv_got_load_tls_gd", "(", "a0", ",", "sym", ")", ")", ";", "insn", "=", "emit_call_insn", "(", "gen_call_value", "(", "result", ",", "func", ",", "const0_rtx", ",", "NULL", ")", ")", ";", "RTL_CONST_CALL_P", "(", "insn", ")", "=", "1", ";", "use_reg", "(", "&", "CALL_INSN_FUNCTION_USAGE", "(", "insn", ")", ",", "a0", ")", ";", "insn", "=", "get_insns", "(", ")", ";", "end_sequence", "(", ")", ";", "return", "insn", ";", "}", ""], "natrual_language": ["Return", "an", "instruction", "sequence", "that", "calls", "__tls_get_addr", ".", "SYM", "is", "the", "TLS", "symbol", "we", "are", "referencing", "and", "TYPE", "is", "the", "symbol", "type", "to", "use", "(", "either", "global", "dynamic", "or", "local", "dynamic", ")", ".", "RESULT", "is", "an", "RTX", "for", "the", "return", "value", "location", "."], "TS_V_token": ["riscv", "\"__tls_get_addr\"", "1"], "File": "riscv", "Func": "riscv_call_tls_get_addr", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 87, "Length": 111, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "enum", "riscv_symbol_type", "riscv_classify_symbolic_expression", "(", "rtx", "x", ")", "{", "rtx", "offset", ";", "split_const", "(", "x", ",", "&", "x", ",", "&", "offset", ")", ";", "if", "(", "UNSPEC_ADDRESS_P", "(", "x", ")", ")", "return", "UNSPEC_ADDRESS_TYPE", "(", "x", ")", ";", "return", "riscv_classify_symbol", "(", "x", ")", ";", "}", ""], "natrual_language": ["Classify", "the", "base", "of", "symbolic", "expression", "X", "."], "TS_V_token": ["riscv"], "File": "riscv", "Func": "riscv_classify_symbolic_expression", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 88, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "RISCVTTIImpl", "::", "getIntImmCost", "(", "const", "APInt", "&", "Imm", ",", "Type", "*", "Ty", ",", "TTI", "::", "TargetCostKind", "CostKind", ")", "{", "assert", "(", "Ty", "->", "isIntegerTy", "(", ")", "&&", "\"getIntImmCost can only estimate cost of materialising integers\"", ")", ";", "if", "(", "Imm", "==", "0", ")", "return", "TTI", "::", "TCC_Free", ";", "const", "DataLayout", "&", "DL", "=", "getDataLayout", "(", ")", ";", "return", "RISCVMatInt", "::", "getIntMatCost", "(", "Imm", ",", "DL", ".", "getTypeSizeInBits", "(", "Ty", ")", ",", "getST", "(", ")", "->", "is64Bit", "(", ")", ")", ";", "}", ""], "natrual_language": ["Calculate", "the", "cost", "of", "materializing", "a", "64-bit", "value", "."], "TS_V_token": ["RISCV", "RISCV", "\"getIntImmCost can only estimate cost of materialising integers\"", "0", "RISCVMatInt::getIntMatCost"], "File": "RISCVTargetTransformInfo1", "Func": "getIntImmCost", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 89, "Length": 75, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVAsmBackend", "::", "applyFixup", "(", "const", "MCAssembler", "&", "Asm", ",", "const", "MCFixup", "&", "Fixup", ",", "const", "MCValue", "&", "Target", ",", "MutableArrayRef", "<", "char", ">", "Data", ",", "uint64_t", "Value", ",", "bool", "IsResolved", ",", "const", "MCSubtargetInfo", "*", "STI", ")", "const", "{", "MCContext", "&", "Ctx", "=", "Asm", ".", "getContext", "(", ")", ";", "MCFixupKindInfo", "Info", "=", "getFixupKindInfo", "(", "Fixup", ".", "getKind", "(", ")", ")", ";", "if", "(", "!", "Value", ")", "return", ";", "Value", "=", "adjustFixupValue", "(", "Fixup", ",", "Value", ",", "Ctx", ")", ";", "Value", "<<=", "Info", ".", "TargetOffset", ";", "unsigned", "Offset", "=", "Fixup", ".", "getOffset", "(", ")", ";", "unsigned", "NumBytes", "=", "alignTo", "(", "Info", ".", "TargetSize", "+", "Info", ".", "TargetOffset", ",", "8", ")", "/", "8", ";", "assert", "(", "Offset", "+", "NumBytes", "<=", "Data", ".", "size", "(", ")", "&&", "\"Invalid fixup offset!\"", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "NumBytes", ";", "++", "i", ")", "{", "Data", "[", "Offset", "+", "i", "]", "|=", "uint8_t", "(", "(", "Value", ">>", "(", "i", "*", "8", ")", ")", "&", "0xff", ")", ";", "}", "}", ""], "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": ["RISCV", "RISCV", "8", "8", "\"Invalid fixup offset!\"", "0", "8", "0xff"], "File": "RISCVAsmBackend", "Func": "applyFixup", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 90, "Length": 166, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVInstrInfo", "::", "expandPostRAPseudo", "(", "MachineInstr", "&", "MI", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "false", ";", "}", "}", ""], "natrual_language": ["This", "function", "is", "called", "for", "all", "pseudo", "instructions", "that", "remain", "after", "register", "allocation", "."], "TS_V_token": ["RISCV", "RISCV"], "File": "RISCVInstrInfo4", "Func": "expandPostRAPseudo", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 91, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCFixupKindInfo", "&", "RISCVAsmBackend", "::", "getFixupKindInfo", "(", "MCFixupKind", "Kind", ")", "const", "{", "const", "static", "MCFixupKindInfo", "Infos", "[", "]", "=", "{", "{", "\"fixup_riscv_hi20\"", ",", "12", ",", "20", ",", "0", "}", ",", "{", "\"fixup_riscv_lo12_i\"", ",", "20", ",", "12", ",", "0", "}", ",", "{", "\"fixup_riscv_lo12_s\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"fixup_riscv_pcrel_hi20\"", ",", "12", ",", "20", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "|", "MCFixupKindInfo", "::", "FKF_IsTarget", "}", ",", "{", "\"fixup_riscv_pcrel_lo12_i\"", ",", "20", ",", "12", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "|", "MCFixupKindInfo", "::", "FKF_IsTarget", "}", ",", "{", "\"fixup_riscv_pcrel_lo12_s\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "|", "MCFixupKindInfo", "::", "FKF_IsTarget", "}", ",", "{", "\"fixup_riscv_got_hi20\"", ",", "12", ",", "20", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_riscv_tprel_hi20\"", ",", "12", ",", "20", ",", "0", "}", ",", "{", "\"fixup_riscv_tprel_lo12_i\"", ",", "20", ",", "12", ",", "0", "}", ",", "{", "\"fixup_riscv_tprel_lo12_s\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"fixup_riscv_tprel_add\"", ",", "0", ",", "0", ",", "0", "}", ",", "{", "\"fixup_riscv_tls_got_hi20\"", ",", "12", ",", "20", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_riscv_tls_gd_hi20\"", ",", "12", ",", "20", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_riscv_jal\"", ",", "12", ",", "20", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_riscv_branch\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_riscv_rvc_jump\"", ",", "2", ",", "11", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_riscv_rvc_branch\"", ",", "0", ",", "16", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_riscv_call\"", ",", "0", ",", "64", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_riscv_call_plt\"", ",", "0", ",", "64", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_riscv_relax\"", ",", "0", ",", "0", ",", "0", "}", ",", "{", "\"fixup_riscv_align\"", ",", "0", ",", "0", ",", "0", "}", ",", "{", "\"fixup_riscv_cvpcrel_ui12\"", ",", "20", ",", "12", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_riscv_cvpcrel_urs1\"", ",", "15", ",", "5", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", "}", ";", "static_assert", "(", "(", "array_lengthof", "(", "Infos", ")", ")", "==", "RISCV", "::", "NumTargetFixupKinds", ",", "\"Not all fixup kinds added to Infos array\"", ")", ";", "if", "(", "Kind", ">=", "FirstLiteralRelocationKind", ")", "return", "MCAsmBackend", "::", "getFixupKindInfo", "(", "FK_NONE", ")", ";", "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": ["RISCV", "RISCV", "\"fixup_riscv_hi20\"", "12", "20", "0", "\"fixup_riscv_lo12_i\"", "20", "12", "0", "\"fixup_riscv_lo12_s\"", "0", "32", "0", "\"fixup_riscv_pcrel_hi20\"", "12", "20", "\"fixup_riscv_pcrel_lo12_i\"", "20", "12", "\"fixup_riscv_pcrel_lo12_s\"", "0", "32", "\"fixup_riscv_got_hi20\"", "12", "20", "\"fixup_riscv_tprel_hi20\"", "12", "20", "0", "\"fixup_riscv_tprel_lo12_i\"", "20", "12", "0", "\"fixup_riscv_tprel_lo12_s\"", "0", "32", "0", "\"fixup_riscv_tprel_add\"", "0", "0", "0", "\"fixup_riscv_tls_got_hi20\"", "12", "20", "\"fixup_riscv_tls_gd_hi20\"", "12", "20", "\"fixup_riscv_jal\"", "12", "20", "\"fixup_riscv_branch\"", "0", "32", "\"fixup_riscv_rvc_jump\"", "2", "11", "\"fixup_riscv_rvc_branch\"", "0", "16", "\"fixup_riscv_call\"", "0", "64", "\"fixup_riscv_call_plt\"", "0", "64", "\"fixup_riscv_relax\"", "0", "0", "0", "\"fixup_riscv_align\"", "0", "0", "0", "\"fixup_riscv_cvpcrel_ui12\"", "20", "12", "\"fixup_riscv_cvpcrel_urs1\"", "15", "5", "RISCV::NumTargetFixupKinds", "\"Not all fixup kinds added to Infos array\"", "\"Invalid kind!\""], "File": "RISCVAsmBackend2", "Func": "getFixupKindInfo", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 92, "Length": 360, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "inline", "bool", "registered_function_hasher", "::", "equal", "(", "value_type", "value", ",", "const", "compare_type", "&", "key", ")", "{", "return", "value", "->", "instance", "==", "key", ";", "}", ""], "natrual_language": ["Compare", "H1", "and", "H2", "for", "equivalence", "."], "TS_V_token": ["riscv"], "File": "riscv-vector-builtins", "Func": "equal", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 93, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "RISCVMCExpr", "::", "getVariantKindName", "(", "VariantKind", "Kind", ")", "{", "switch", "(", "Kind", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Invalid ELF symbol kind\"", ")", ";", "case", "VK_RISCV_LO", ":", "return", "\"lo\"", ";", "case", "VK_RISCV_HI", ":", "return", "\"hi\"", ";", "case", "VK_RISCV_PCREL_HI", ":", "return", "\"pcrel_hi\"", ";", "}", "}", ""], "natrual_language": ["Convert", "the", "variant", "kind", "into", "an", "ELF-appropriate", "modifier", "(", "e.g", "."], "TS_V_token": ["RISCV", "RISCV", "\"Invalid ELF symbol kind\"", "RISCV", "\"lo\"", "RISCV", "\"hi\"", "RISCV", "\"pcrel_hi\""], "File": "RISCVMCExpr", "Func": "getVariantKindName", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 94, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "RISCVTargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "(", "RISCVISD", "::", "NodeType", ")", "Opcode", ")", "{", "case", "RISCVISD", "::", "FIRST_NUMBER", ":", "break", ";", "case", "RISCVISD", "::", "RET_FLAG", ":", "return", "\"RISCVISD::RET_FLAG\"", ";", "case", "RISCVISD", "::", "URET_FLAG", ":", "return", "\"RISCVISD::URET_FLAG\"", ";", "case", "RISCVISD", "::", "SRET_FLAG", ":", "return", "\"RISCVISD::SRET_FLAG\"", ";", "case", "RISCVISD", "::", "MRET_FLAG", ":", "return", "\"RISCVISD::MRET_FLAG\"", ";", "case", "RISCVISD", "::", "CALL", ":", "return", "\"RISCVISD::CALL\"", ";", "case", "RISCVISD", "::", "SELECT_CC", ":", "return", "\"RISCVISD::SELECT_CC\"", ";", "case", "RISCVISD", "::", "BuildPairF64", ":", "return", "\"RISCVISD::BuildPairF64\"", ";", "case", "RISCVISD", "::", "SplitF64", ":", "return", "\"RISCVISD::SplitF64\"", ";", "case", "RISCVISD", "::", "TAIL", ":", "return", "\"RISCVISD::TAIL\"", ";", "case", "RISCVISD", "::", "SLLW", ":", "return", "\"RISCVISD::SLLW\"", ";", "case", "RISCVISD", "::", "SRAW", ":", "return", "\"RISCVISD::SRAW\"", ";", "case", "RISCVISD", "::", "SRLW", ":", "return", "\"RISCVISD::SRLW\"", ";", "case", "RISCVISD", "::", "DIVW", ":", "return", "\"RISCVISD::DIVW\"", ";", "case", "RISCVISD", "::", "DIVUW", ":", "return", "\"RISCVISD::DIVUW\"", ";", "case", "RISCVISD", "::", "REMUW", ":", "return", "\"RISCVISD::REMUW\"", ";", "case", "RISCVISD", "::", "FMV_W_X_RV64", ":", "return", "\"RISCVISD::FMV_W_X_RV64\"", ";", "case", "RISCVISD", "::", "FMV_X_ANYEXTW_RV64", ":", "return", "\"RISCVISD::FMV_X_ANYEXTW_RV64\"", ";", "}", "return", "nullptr", ";", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["RISCV", "RISCV", "RISCVISD::NodeType", "RISCVISD::FIRST_NUMBER", "RISCVISD::RET_FLAG", "\"RISCVISD::RET_FLAG\"", "RISCVISD::URET_FLAG", "\"RISCVISD::URET_FLAG\"", "RISCVISD::SRET_FLAG", "\"RISCVISD::SRET_FLAG\"", "RISCVISD::MRET_FLAG", "\"RISCVISD::MRET_FLAG\"", "RISCVISD::CALL", "\"RISCVISD::CALL\"", "RISCVISD::SELECT_CC", "\"RISCVISD::SELECT_CC\"", "RISCVISD::BuildPairF64", "\"RISCVISD::BuildPairF64\"", "RISCVISD::SplitF64", "\"RISCVISD::SplitF64\"", "RISCVISD::TAIL", "\"RISCVISD::TAIL\"", "RISCVISD::SLLW", "\"RISCVISD::SLLW\"", "RISCVISD::SRAW", "\"RISCVISD::SRAW\"", "RISCVISD::SRLW", "\"RISCVISD::SRLW\"", "RISCVISD::DIVW", "\"RISCVISD::DIVW\"", "RISCVISD::DIVUW", "\"RISCVISD::DIVUW\"", "RISCVISD::REMUW", "\"RISCVISD::REMUW\"", "RISCVISD::FMV_W_X_RV64", "\"RISCVISD::FMV_W_X_RV64\"", "RISCVISD::FMV_X_ANYEXTW_RV64", "\"RISCVISD::FMV_X_ANYEXTW_RV64\""], "File": "RISCVISelLowering36", "Func": "getTargetNodeName", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 95, "Length": 170, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "riscv_return_in_memory", "(", "const_tree", "type", ",", "const_tree", "fndecl", "ATTRIBUTE_UNUSED", ")", "{", "CUMULATIVE_ARGS", "args", ";", "cumulative_args_t", "cum", "=", "pack_cumulative_args", "(", "&", "args", ")", ";", "memset", "(", "&", "args", ",", "0", ",", "sizeof", "args", ")", ";", "function_arg_info", "arg", "(", "const_cast", "<", "tree", ">", "(", "type", ")", ",", "true", ")", ";", "return", "riscv_pass_by_reference", "(", "cum", ",", "arg", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_RETURN_IN_MEMORY", "."], "TS_V_token": ["riscv", "0"], "File": "riscv", "Func": "riscv_return_in_memory", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 96, "Length": 58, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "RISCVProcFamilyEnum", "getProcFamily", "(", ")", "const", "{", "return", "RISCVProcFamily", ";", "}", ""], "natrual_language": ["Returns", "RISC-V", "processor", "family", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV"], "File": "RISCVSubtarget (2)", "Func": "getProcFamily", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 97, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "RISCVTTIImpl", "::", "getIntImmCostInst", "(", "unsigned", "Opcode", ",", "unsigned", "Idx", ",", "const", "APInt", "&", "Imm", ",", "Type", "*", "Ty", ")", "{", "assert", "(", "Ty", "->", "isIntegerTy", "(", ")", "&&", "\"getIntImmCost can only estimate cost of materialising integers\"", ")", ";", "if", "(", "Imm", "==", "0", ")", "return", "TTI", "::", "TCC_Free", ";", "bool", "Takes12BitImm", "=", "false", ";", "unsigned", "ImmArgIdx", "=", "~", "0U", ";", "switch", "(", "Opcode", ")", "{", "case", "Instruction", "::", "GetElementPtr", ":", "return", "TTI", "::", "TCC_Free", ";", "case", "Instruction", "::", "Add", ":", "case", "Instruction", "::", "And", ":", "case", "Instruction", "::", "Or", ":", "case", "Instruction", "::", "Xor", ":", "case", "Instruction", "::", "Mul", ":", "Takes12BitImm", "=", "true", ";", "break", ";", "case", "Instruction", "::", "Sub", ":", "case", "Instruction", "::", "Shl", ":", "case", "Instruction", "::", "LShr", ":", "case", "Instruction", "::", "AShr", ":", "Takes12BitImm", "=", "true", ";", "ImmArgIdx", "=", "1", ";", "break", ";", "default", ":", "break", ";", "}", "if", "(", "Takes12BitImm", ")", "{", "if", "(", "Instruction", "::", "isCommutative", "(", "Opcode", ")", "||", "Idx", "==", "ImmArgIdx", ")", "{", "if", "(", "Imm", ".", "getMinSignedBits", "(", ")", "<=", "64", "&&", "getTLI", "(", ")", "->", "isLegalAddImmediate", "(", "Imm", ".", "getSExtValue", "(", ")", ")", ")", "{", "return", "TTI", "::", "TCC_Free", ";", "}", "}", "return", "getIntImmCost", "(", "Imm", ",", "Ty", ")", ";", "}", "return", "TTI", "::", "TCC_Free", ";", "}", ""], "natrual_language": ["Return", "the", "expected", "cost", "of", "materialization", "for", "the", "given", "integer", "immediate", "of", "the", "specified", "type", "for", "a", "given", "instruction", "."], "TS_V_token": ["RISCV", "RISCV", "\"getIntImmCost can only estimate cost of materialising integers\"", "0", "0U", "1", "64"], "File": "RISCVTargetTransformInfo2", "Func": "getIntImmCostInst", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 98, "Length": 200, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "riscv_add_offset", "(", "rtx", "temp", ",", "rtx", "reg", ",", "HOST_WIDE_INT", "offset", ")", "{", "if", "(", "!", "SMALL_OPERAND", "(", "offset", ")", ")", "{", "rtx", "high", ";", "high", "=", "gen_int_mode", "(", "CONST_HIGH_PART", "(", "offset", ")", ",", "Pmode", ")", ";", "offset", "=", "CONST_LOW_PART", "(", "offset", ")", ";", "high", "=", "riscv_force_temporary", "(", "temp", ",", "high", ",", "FALSE", ")", ";", "reg", "=", "riscv_force_temporary", "(", "temp", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "high", ",", "reg", ")", ",", "FALSE", ")", ";", "}", "return", "plus_constant", "(", "Pmode", ",", "reg", ",", "offset", ")", ";", "}", ""], "natrual_language": ["Return", "a", "legitimate", "address", "for", "REG", "+", "OFFSET", ".", "TEMP", "is", "as", "for", "riscv_force_temporary", ";", "it", "is", "only", "needed", "when", "OFFSET", "is", "not", "a", "SMALL_OPERAND", "."], "TS_V_token": ["riscv"], "File": "riscv", "Func": "riscv_add_offset", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 99, "Length": 86, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "get_vl", "(", "rtx_insn", "*", "rinsn", ")", "{", "if", "(", "has_vl_op", "(", "rinsn", ")", ")", "{", "extract_insn_cached", "(", "rinsn", ")", ";", "return", "recog_data", ".", "operand", "[", "get_attr_vl_op_idx", "(", "rinsn", ")", "]", ";", "}", "return", "SET_DEST", "(", "XVECEXP", "(", "PATTERN", "(", "rinsn", ")", ",", "0", ",", "0", ")", ")", ";", "}", ""], "natrual_language": ["Helper", "function", "to", "get", "VL", "operand", "."], "TS_V_token": ["riscv", "0", "0"], "File": "riscv-vsetvl", "Func": "get_vl", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 100, "Length": 51, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "RISCVInstrInfo", "::", "insertIndirectBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "&", "DestBB", ",", "const", "DebugLoc", "&", "DL", ",", "int64_t", "BrOffset", ",", "RegScavenger", "*", "RS", ")", "const", "{", "assert", "(", "RS", "&&", "\"RegScavenger required for long branching\"", ")", ";", "assert", "(", "MBB", ".", "empty", "(", ")", "&&", "\"new block should be inserted for expanding unconditional branch\"", ")", ";", "assert", "(", "MBB", ".", "pred_size", "(", ")", "==", "1", ")", ";", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "MF", "->", "getRegInfo", "(", ")", ";", "const", "auto", "&", "TM", "=", "static_cast", "<", "const", "RISCVTargetMachine", "&", ">", "(", "MF", "->", "getTarget", "(", ")", ")", ";", "if", "(", "TM", ".", "isPositionIndependent", "(", ")", ")", "report_fatal_error", "(", "\"Unable to insert indirect branch\"", ")", ";", "if", "(", "!", "isInt", "<", "32", ">", "(", "BrOffset", ")", ")", "report_fatal_error", "(", "\"Branch offsets outside of the signed 32-bit range not supported\"", ")", ";", "Register", "ScratchReg", "=", "MRI", ".", "createVirtualRegister", "(", "&", "RISCV", "::", "GPRRegClass", ")", ";", "auto", "II", "=", "MBB", ".", "end", "(", ")", ";", "MachineInstr", "&", "LuiMI", "=", "*", "BuildMI", "(", "MBB", ",", "II", ",", "DL", ",", "get", "(", "RISCV", "::", "LUI", ")", ",", "ScratchReg", ")", ".", "addMBB", "(", "&", "DestBB", ",", "RISCVII", "::", "MO_HI", ")", ";", "BuildMI", "(", "MBB", ",", "II", ",", "DL", ",", "get", "(", "RISCV", "::", "PseudoBRIND", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Kill", ")", ".", "addMBB", "(", "&", "DestBB", ",", "RISCVII", "::", "MO_LO", ")", ";", "RS", "->", "enterBasicBlockEnd", "(", "MBB", ")", ";", "unsigned", "Scav", "=", "RS", "->", "scavengeRegisterBackwards", "(", "RISCV", "::", "GPRRegClass", ",", "LuiMI", ".", "getIterator", "(", ")", ",", "false", ",", "0", ")", ";", "MRI", ".", "replaceRegWith", "(", "ScratchReg", ",", "Scav", ")", ";", "MRI", ".", "clearVirtRegs", "(", ")", ";", "RS", "->", "setRegUsed", "(", "Scav", ")", ";", "return", "8", ";", "}", ""], "natrual_language": ["Insert", "an", "unconditional", "indirect", "branch", "at", "the", "end", "of", "MBB", "to", "NewDestBB", "."], "TS_V_token": ["RISCV", "RISCV", "\"RegScavenger required for long branching\"", "\"new block should be inserted for expanding unconditional branch\"", "1", "RISCV", "\"Unable to insert indirect branch\"", "32", "\"Branch offsets outside of the signed 32-bit range not supported\"", "RISCV::GPRRegClass", "RISCV::LUI", "RISCVII::MO_HI", "RISCV::PseudoBRIND", "RISCVII::MO_LO", "RISCV::GPRRegClass", "0", "8"], "File": "RISCVInstrInfo11", "Func": "insertIndirectBranch", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 101, "Length": 269, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "get_ta", "(", "rtx", "ta", ")", "{", "if", "(", "INTVAL", "(", "ta", ")", "==", "TAIL_ANY", ")", "return", "INVALID_ATTRIBUTE", ";", "return", "INTVAL", "(", "ta", ")", ";", "}", ""], "natrual_language": ["Get", "ta", "according", "to", "operand", "[", "tail_op_idx", "]", "."], "TS_V_token": ["riscv"], "File": "riscv-v", "Func": "get_ta", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 102, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVAsmPrinter", "::", "PrintAsmMemoryOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNo", ",", "unsigned", "AsmVariant", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "OS", ")", "{", "if", "(", "AsmVariant", "!=", "0", ")", "report_fatal_error", "(", "\"There are no defined alternate asm variants\"", ")", ";", "if", "(", "!", "ExtraCode", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "if", "(", "!", "MO", ".", "isReg", "(", ")", ")", "return", "true", ";", "OS", "<<", "\"0(\"", "<<", "RISCVInstPrinter", "::", "getRegisterName", "(", "MO", ".", "getReg", "(", ")", ")", "<<", "\")\"", ";", "return", "false", ";", "}", "return", "AsmPrinter", "::", "PrintAsmMemoryOperand", "(", "MI", ",", "OpNo", ",", "AsmVariant", ",", "ExtraCode", ",", "OS", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "operand", "of", "MI", ",", "an", "INLINEASM", "instruction", ",", "using", "the", "specified", "assembler", "variant", "as", "an", "address", "."], "TS_V_token": ["RISCV", "RISCV", "0", "\"There are no defined alternate asm variants\"", "\"0(\"", "RISCV", "\")\""], "File": "RISCVAsmPrinter14", "Func": "PrintAsmMemoryOperand", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 103, "Length": 105, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCInst", "RISCVInstrInfo", "::", "getNop", "(", ")", "const", "{", "if", "(", "STI", ".", "getFeatureBits", "(", ")", "[", "RISCV", "::", "FeatureStdExtC", "]", ")", "return", "MCInstBuilder", "(", "RISCV", "::", "C_NOP", ")", ";", "return", "MCInstBuilder", "(", "RISCV", "::", "ADDI", ")", ".", "addReg", "(", "RISCV", "::", "X0", ")", ".", "addReg", "(", "RISCV", "::", "X0", ")", ".", "addImm", "(", "0", ")", ";", "}", ""], "natrual_language": ["Return", "the", "noop", "instruction", "to", "use", "for", "a", "noop", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV::FeatureStdExtC", "RISCV::C_NOP", "RISCV::ADDI", "RISCV::X0", "RISCV::X0", "0"], "File": "RISCVInstrInfo (2)", "Func": "getNop", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 104, "Length": 57, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "RISCVTargetLowering", "::", "LowerOperation", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "report_fatal_error", "(", "\"unimplemented operand\"", ")", ";", "case", "ISD", "::", "GlobalAddress", ":", "return", "lowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BlockAddress", ":", "return", "lowerBlockAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "ConstantPool", ":", "return", "lowerConstantPool", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "GlobalTLSAddress", ":", "return", "lowerGlobalTLSAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SELECT", ":", "return", "lowerSELECT", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "VASTART", ":", "return", "lowerVASTART", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "FRAMEADDR", ":", "return", "lowerFRAMEADDR", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "RETURNADDR", ":", "return", "lowerRETURNADDR", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SHL_PARTS", ":", "return", "lowerShiftLeftParts", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SRA_PARTS", ":", "return", "lowerShiftRightParts", "(", "Op", ",", "DAG", ",", "true", ")", ";", "case", "ISD", "::", "SRL_PARTS", ":", "return", "lowerShiftRightParts", "(", "Op", ",", "DAG", ",", "false", ")", ";", "case", "ISD", "::", "BITCAST", ":", "{", "assert", "(", "Subtarget", ".", "is64Bit", "(", ")", "&&", "Subtarget", ".", "hasStdExtF", "(", ")", "&&", "\"Unexpected custom legalisation\"", ")", ";", "SDLoc", "DL", "(", "Op", ")", ";", "SDValue", "Op0", "=", "Op", ".", "getOperand", "(", "0", ")", ";", "if", "(", "Op", ".", "getValueType", "(", ")", "!=", "MVT", "::", "f32", "||", "Op0", ".", "getValueType", "(", ")", "!=", "MVT", "::", "i32", ")", "return", "SDValue", "(", ")", ";", "SDValue", "NewOp0", "=", "DAG", ".", "getNode", "(", "ISD", "::", "ANY_EXTEND", ",", "DL", ",", "MVT", "::", "i64", ",", "Op0", ")", ";", "SDValue", "FPConv", "=", "DAG", ".", "getNode", "(", "RISCVISD", "::", "FMV_W_X_RV64", ",", "DL", ",", "MVT", "::", "f32", ",", "NewOp0", ")", ";", "return", "FPConv", ";", "}", "case", "ISD", "::", "INTRINSIC_WO_CHAIN", ":", "return", "LowerINTRINSIC_WO_CHAIN", "(", "Op", ",", "DAG", ")", ";", "}", "}", ""], "natrual_language": ["LowerOperation", "-", "Provide", "custom", "lowering", "hooks", "for", "some", "operations", "."], "TS_V_token": ["RISCV", "RISCV", "\"unimplemented operand\"", "ISD::GlobalAddress", "ISD::BlockAddress", "ISD::ConstantPool", "ISD::GlobalTLSAddress", "ISD::SELECT", "ISD::VASTART", "ISD::FRAMEADDR", "ISD::RETURNADDR", "ISD::SHL_PARTS", "ISD::SRA_PARTS", "ISD::SRL_PARTS", "ISD::BITCAST", "\"Unexpected custom legalisation\"", "0", "MVT::f32", "MVT::i32", "ISD::ANY_EXTEND", "MVT::i64", "RISCVISD::FMV_W_X_RV64", "MVT::f32", "ISD::INTRINSIC_WO_CHAIN"], "File": "RISCVISelLowering13", "Func": "LowerOperation", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 105, "Length": 302, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StackOffset", "RISCVFrameLowering", "::", "getFrameIndexReference", "(", "const", "MachineFunction", "&", "MF", ",", "int", "FI", ",", "Register", "&", "FrameReg", ")", "const", "{", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "TargetRegisterInfo", "*", "RI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "const", "auto", "*", "RVFI", "=", "MF", ".", "getInfo", "<", "RISCVMachineFunctionInfo", ">", "(", ")", ";", "const", "auto", "&", "CSI", "=", "getNonLibcallCSI", "(", "MFI", ".", "getCalleeSavedInfo", "(", ")", ")", ";", "int", "MinCSFI", "=", "0", ";", "int", "MaxCSFI", "=", "-", "1", ";", "int", "Offset", "=", "MFI", ".", "getObjectOffset", "(", "FI", ")", "-", "getOffsetOfLocalArea", "(", ")", "+", "MFI", ".", "getOffsetAdjustment", "(", ")", ";", "uint64_t", "FirstSPAdjustAmount", "=", "getFirstSPAdjustAmount", "(", "MF", ")", ";", "if", "(", "CSI", ".", "size", "(", ")", ")", "{", "MinCSFI", "=", "CSI", "[", "0", "]", ".", "getFrameIdx", "(", ")", ";", "MaxCSFI", "=", "CSI", "[", "CSI", ".", "size", "(", ")", "-", "1", "]", ".", "getFrameIdx", "(", ")", ";", "}", "if", "(", "FI", ">=", "MinCSFI", "&&", "FI", "<=", "MaxCSFI", ")", "{", "FrameReg", "=", "RISCV", "::", "X2", ";", "if", "(", "FirstSPAdjustAmount", ")", "Offset", "+=", "FirstSPAdjustAmount", ";", "else", "Offset", "+=", "MFI", ".", "getStackSize", "(", ")", ";", "}", "else", "if", "(", "RI", "->", "needsStackRealignment", "(", "MF", ")", "&&", "!", "MFI", ".", "isFixedObjectIndex", "(", "FI", ")", ")", "{", "if", "(", "hasBP", "(", "MF", ")", ")", "FrameReg", "=", "RISCVABI", "::", "getBPReg", "(", ")", ";", "else", "FrameReg", "=", "RISCV", "::", "X2", ";", "Offset", "+=", "MFI", ".", "getStackSize", "(", ")", ";", "if", "(", "FI", "<", "0", ")", "Offset", "+=", "RVFI", "->", "getLibCallStackSize", "(", ")", ";", "}", "else", "{", "FrameReg", "=", "RI", "->", "getFrameRegister", "(", "MF", ")", ";", "if", "(", "hasFP", "(", "MF", ")", ")", "{", "Offset", "+=", "RVFI", "->", "getVarArgsSaveSize", "(", ")", ";", "if", "(", "FI", ">=", "0", ")", "Offset", "-=", "RVFI", "->", "getLibCallStackSize", "(", ")", ";", "}", "else", "{", "Offset", "+=", "MFI", ".", "getStackSize", "(", ")", ";", "if", "(", "FI", "<", "0", ")", "Offset", "+=", "RVFI", "->", "getLibCallStackSize", "(", ")", ";", "}", "}", "return", "StackOffset", "::", "getFixed", "(", "Offset", ")", ";", "}", ""], "natrual_language": ["getFrameIndexReference", "-", "This", "method", "should", "return", "the", "base", "register", "and", "offset", "used", "to", "reference", "a", "frame", "index", "location", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV", "0", "1", "0", "1", "RISCV::X2", "RISCVABI::getBPReg", "RISCV::X2", "0", "0", "0"], "File": "RISCVFrameLowering", "Func": "getFrameIndexReference", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 106, "Length": 326, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "RISCVTargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "case", "RISCVISD", "::", "NODE", ":", "\\", "return", "\"RISCVISD::\"", "#", "NODE", ";", "switch", "(", "(", "RISCVISD", "::", "NodeType", ")", "Opcode", ")", "{", "case", "RISCVISD", "::", "FIRST_NUMBER", ":", "break", ";", "NODE_NAME_CASE", "(", "RET_FLAG", ")", "NODE_NAME_CASE", "(", "URET_FLAG", ")", "NODE_NAME_CASE", "(", "SRET_FLAG", ")", "NODE_NAME_CASE", "(", "MRET_FLAG", ")", "NODE_NAME_CASE", "(", "CALL", ")", "NODE_NAME_CASE", "(", "SELECT_CC", ")", "NODE_NAME_CASE", "(", "BuildPairF64", ")", "NODE_NAME_CASE", "(", "SplitF64", ")", "NODE_NAME_CASE", "(", "TAIL", ")", "NODE_NAME_CASE", "(", "SLLW", ")", "NODE_NAME_CASE", "(", "SRAW", ")", "NODE_NAME_CASE", "(", "SRLW", ")", "NODE_NAME_CASE", "(", "DIVW", ")", "NODE_NAME_CASE", "(", "DIVUW", ")", "NODE_NAME_CASE", "(", "REMUW", ")", "NODE_NAME_CASE", "(", "ROLW", ")", "NODE_NAME_CASE", "(", "RORW", ")", "NODE_NAME_CASE", "(", "FSLW", ")", "NODE_NAME_CASE", "(", "FSRW", ")", "NODE_NAME_CASE", "(", "FMV_H_X", ")", "NODE_NAME_CASE", "(", "FMV_X_ANYEXTH", ")", "NODE_NAME_CASE", "(", "FMV_W_X_RV64", ")", "NODE_NAME_CASE", "(", "FMV_X_ANYEXTW_RV64", ")", "NODE_NAME_CASE", "(", "READ_CYCLE_WIDE", ")", "NODE_NAME_CASE", "(", "GREVI", ")", "NODE_NAME_CASE", "(", "GREVIW", ")", "NODE_NAME_CASE", "(", "GORCI", ")", "NODE_NAME_CASE", "(", "GORCIW", ")", "NODE_NAME_CASE", "(", "VMV_X_S", ")", "NODE_NAME_CASE", "(", "SPLAT_VECTOR_I64", ")", "NODE_NAME_CASE", "(", "READ_VLENB", ")", "NODE_NAME_CASE", "(", "TRUNCATE_VECTOR", ")", "NODE_NAME_CASE", "(", "VLEFF", ")", "NODE_NAME_CASE", "(", "VLEFF_MASK", ")", "NODE_NAME_CASE", "(", "VLSEGFF", ")", "NODE_NAME_CASE", "(", "VLSEGFF_MASK", ")", "NODE_NAME_CASE", "(", "READ_VL", ")", "NODE_NAME_CASE", "(", "VSLIDEUP", ")", "NODE_NAME_CASE", "(", "VSLIDEDOWN", ")", "NODE_NAME_CASE", "(", "VID", ")", "}", "return", "nullptr", ";", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["RISCV", "RISCV", "RISCVISD::NODE", "\"RISCVISD::\"", "RISCVISD::NodeType", "RISCVISD::FIRST_NUMBER"], "File": "RISCVISelLowering70", "Func": "getTargetNodeName", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 107, "Length": 205, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVAsmBackend", "::", "applyFixup", "(", "const", "MCFixup", "&", "Fixup", ",", "MutableArrayRef", "<", "char", ">", "Data", ",", "uint64_t", "Value", ",", "bool", "IsPCRel", ",", "MCContext", "&", "Ctx", ")", "const", "{", "return", ";", "}", ""], "natrual_language": ["Apply", "the", "Value", "for", "given", "Fixup", "into", "the", "provided", "data", "fragment", ",", "at", "the", "offset", "specified", "by", "the", "fixup", "and", "following", "the", "fixup", "kind", "as", "appropriate", "."], "TS_V_token": ["RISCV", "RISCV"], "File": "RISCVAsmBackend4", "Func": "applyFixup", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 108, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVFrameLowering", "::", "determineCalleeSaves", "(", "MachineFunction", "&", "MF", ",", "BitVector", "&", "SavedRegs", ",", "RegScavenger", "*", "RS", ")", "const", "{", "TargetFrameLowering", "::", "determineCalleeSaves", "(", "MF", ",", "SavedRegs", ",", "RS", ")", ";", "if", "(", "hasFP", "(", "MF", ")", ")", "{", "SavedRegs", ".", "set", "(", "RISCV", "::", "X1", ")", ";", "SavedRegs", ".", "set", "(", "RISCV", "::", "X8", ")", ";", "}", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "if", "(", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "\"interrupt\"", ")", "&&", "MFI", ".", "hasCalls", "(", ")", ")", "{", "static", "const", "MCPhysReg", "CSRegs", "[", "]", "=", "{", "RISCV", "::", "X1", ",", "RISCV", "::", "X5", ",", "RISCV", "::", "X6", ",", "RISCV", "::", "X7", ",", "RISCV", "::", "X10", ",", "RISCV", "::", "X11", ",", "RISCV", "::", "X12", ",", "RISCV", "::", "X13", ",", "RISCV", "::", "X14", ",", "RISCV", "::", "X15", ",", "RISCV", "::", "X16", ",", "RISCV", "::", "X17", ",", "RISCV", "::", "X28", ",", "RISCV", "::", "X29", ",", "RISCV", "::", "X30", ",", "RISCV", "::", "X31", ",", "0", "}", ";", "for", "(", "unsigned", "i", "=", "0", ";", "CSRegs", "[", "i", "]", ";", "++", "i", ")", "SavedRegs", ".", "set", "(", "CSRegs", "[", "i", "]", ")", ";", "if", "(", "MF", ".", "getSubtarget", "<", "RISCVSubtarget", ">", "(", ")", ".", "hasStdExtD", "(", ")", "||", "MF", ".", "getSubtarget", "<", "RISCVSubtarget", ">", "(", ")", ".", "hasStdExtF", "(", ")", ")", "{", "const", "MCPhysReg", "*", "Regs", "=", "MF", ".", "getRegInfo", "(", ")", ".", "getCalleeSavedRegs", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "Regs", "[", "i", "]", ";", "++", "i", ")", "if", "(", "RISCV", "::", "FPR32RegClass", ".", "contains", "(", "Regs", "[", "i", "]", ")", "||", "RISCV", "::", "FPR64RegClass", ".", "contains", "(", "Regs", "[", "i", "]", ")", ")", "SavedRegs", ".", "set", "(", "Regs", "[", "i", "]", ")", ";", "}", "}", "}", ""], "natrual_language": ["This", "method", "determines", "which", "of", "the", "registers", "reported", "by", "TargetRegisterInfo", ":", ":getCalleeSavedRegs", "(", ")", "should", "actually", "get", "saved", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV::X1", "RISCV::X8", "\"interrupt\"", "RISCV::X1", "RISCV::X5", "RISCV::X6", "RISCV::X7", "RISCV::X10", "RISCV::X11", "RISCV::X12", "RISCV::X13", "RISCV::X14", "RISCV::X15", "RISCV::X16", "RISCV::X17", "RISCV::X28", "RISCV::X29", "RISCV::X30", "RISCV::X31", "0", "0", "RISCV", "RISCV", "0", "RISCV::FPR32RegClass", "RISCV::FPR64RegClass"], "File": "RISCVFrameLowering10", "Func": "determineCalleeSaves", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 109, "Length": 285, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "add_input_operand", "(", "rtx", "x", ",", "machine_mode", "mode", ")", "{", "create_input_operand", "(", "&", "m_ops", "[", "m_opno", "++", "]", ",", "x", ",", "mode", ")", ";", "gcc_assert", "(", "m_opno", "<=", "MAX_OPERANDS", ")", ";", "}", ""], "natrual_language": ["Create", "op", "and", "add", "it", "into", "M_OPS", "and", "increase", "OPNO", "."], "TS_V_token": ["riscv"], "File": "riscv-v", "Func": "add_input_operand", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 110, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVFrameLowering", "::", "determineFrameLayout", "(", "MachineFunction", "&", "MF", ")", "const", "{", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "uint64_t", "FrameSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "Align", "StackAlign", "=", "getStackAlign", "(", ")", ";", "FrameSize", "=", "alignTo", "(", "FrameSize", ",", "StackAlign", ")", ";", "MFI", ".", "setStackSize", "(", "FrameSize", ")", ";", "}", ""], "natrual_language": ["Determine", "the", "frame", "layout", "but", "do", "not", "update", "the", "machine", "function", "."], "TS_V_token": ["RISCV", "RISCV"], "File": "RISCVFrameLowering11", "Func": "determineFrameLayout", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 111, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "outliner", "::", "InstrType", "RISCVInstrInfo", "::", "getOutliningType", "(", "MachineBasicBlock", "::", "iterator", "&", "MBBI", ",", "unsigned", "Flags", ")", "const", "{", "MachineInstr", "&", "MI", "=", "*", "MBBI", ";", "MachineBasicBlock", "*", "MBB", "=", "MI", ".", "getParent", "(", ")", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "MBB", "->", "getParent", "(", ")", "->", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "if", "(", "MI", ".", "isPosition", "(", ")", ")", "{", "if", "(", "MI", ".", "isCFIInstruction", "(", ")", ")", "return", "outliner", "::", "InstrType", "::", "Invisible", ";", "return", "outliner", "::", "InstrType", "::", "Illegal", ";", "}", "if", "(", "MI", ".", "isInlineAsm", "(", ")", ")", "return", "outliner", "::", "InstrType", "::", "Illegal", ";", "if", "(", "MI", ".", "isTerminator", "(", ")", "&&", "!", "MBB", "->", "succ_empty", "(", ")", ")", "return", "outliner", "::", "InstrType", "::", "Illegal", ";", "if", "(", "MI", ".", "isReturn", "(", ")", ")", "return", "outliner", "::", "InstrType", "::", "Illegal", ";", "if", "(", "MI", ".", "modifiesRegister", "(", "RISCV", "::", "X5", ",", "TRI", ")", "||", "MI", ".", "getDesc", "(", ")", ".", "hasImplicitDefOfPhysReg", "(", "RISCV", "::", "X5", ")", ")", "return", "outliner", "::", "InstrType", "::", "Illegal", ";", "for", "(", "const", "auto", "&", "MO", ":", "MI", ".", "operands", "(", ")", ")", "if", "(", "MO", ".", "isMBB", "(", ")", "||", "MO", ".", "isBlockAddress", "(", ")", "||", "MO", ".", "isCPI", "(", ")", ")", "return", "outliner", "::", "InstrType", "::", "Illegal", ";", "if", "(", "MI", ".", "isMetaInstruction", "(", ")", ")", "return", "outliner", "::", "InstrType", "::", "Invisible", ";", "return", "outliner", "::", "InstrType", "::", "Legal", ";", "}", ""], "natrual_language": ["Returns", "how", "or", "if", "MIT", "should", "be", "outlined", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV::X5", "RISCV::X5"], "File": "RISCVInstrInfo11", "Func": "getOutliningType", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 112, "Length": 234, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVOptimizeVSETVLUses", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "Fn", ")", "{", "if", "(", "skipFunction", "(", "Fn", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "if", "(", "!", "Fn", ".", "getSubtarget", "<", "RISCVSubtarget", ">", "(", ")", ".", "hasStdExtV", "(", ")", ")", "return", "false", ";", "const", "MachineRegisterInfo", "&", "MRI", "=", "Fn", ".", "getRegInfo", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"*** Optimizing VSETVL in \"", "<<", "Fn", ".", "getFunction", "(", ")", ".", "getName", "(", ")", "<<", "\" ***\\n\"", ")", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "Fn", ")", "{", "for", "(", "MachineInstr", "&", "Instr", ":", "MBB", ")", "{", "if", "(", "Instr", ".", "isCopy", "(", ")", ")", "{", "const", "auto", "&", "CopyDest", "=", "Instr", ".", "getOperand", "(", "0", ")", ";", "auto", "&", "CopySource", "=", "Instr", ".", "getOperand", "(", "1", ")", ";", "const", "MachineInstr", "*", "MI", "=", "MRI", ".", "getVRegDef", "(", "CopySource", ".", "getReg", "(", ")", ")", ";", "if", "(", "!", "MI", ")", "{", "continue", ";", "}", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "RISCV", "::", "VSETVL", "&&", "!", "isSameRegisterClass", "(", "CopyDest", ".", "getReg", "(", ")", ",", "CopySource", ".", "getReg", "(", ")", ")", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"*** Found COPY instruction from VSETVL\"", "<<", "\"across register class\"", "<<", "\" ***\\n\"", ")", ";", "LLVM_DEBUG", "(", "Instr", ".", "dump", "(", ")", ")", ";", "const", "auto", "&", "VSETVLDefGPR", "=", "MI", "->", "getOperand", "(", "0", ")", ";", "const", "auto", "&", "VSETVLDefVLR", "=", "MI", "->", "getOperand", "(", "1", ")", ";", "const", "auto", "&", "Replacement", "=", "VSETVLDefGPR", ".", "getReg", "(", ")", "!=", "CopySource", ".", "getReg", "(", ")", "?", "VSETVLDefGPR", ":", "VSETVLDefVLR", ";", "CopySource", ".", "setIsKill", "(", "false", ")", ";", "CopySource", ".", "setReg", "(", "Replacement", ".", "getReg", "(", ")", ")", ";", "MRI", ".", "clearKillFlags", "(", "Replacement", ".", "getReg", "(", ")", ")", ";", "}", "}", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV", "\"*** Optimizing VSETVL in \"", "\" ***\\n\"", "0", "1", "RISCV::VSETVL", "\"*** Found COPY instruction from VSETVL\"", "\"across register class\"", "\" ***\\n\"", "0", "1"], "File": "RISCVOptimizeVSETVLUses", "Func": "runOnMachineFunction", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 113, "Length": 283, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "th_mempair_operand_p", "(", "rtx", "mem", ",", "machine_mode", "mode", ")", "{", "if", "(", "!", "MEM_SIZE_KNOWN_P", "(", "mem", ")", ")", "return", "false", ";", "gcc_assert", "(", "mode", "==", "SImode", "||", "mode", "==", "DImode", ")", ";", "auto", "mem_sz", "=", "MEM_SIZE", "(", "mem", ")", ";", "auto", "mode_sz", "=", "GET_MODE_SIZE", "(", "mode", ")", ";", "if", "(", "!", "known_eq", "(", "mem_sz", ",", "mode_sz", ")", ")", "return", "false", ";", "machine_mode", "mem_mode", "=", "GET_MODE", "(", "mem", ")", ";", "unsigned", "shamt", "=", "(", "mem_mode", "==", "DImode", ")", "?", "4", ":", "3", ";", "rtx", "base", ";", "HOST_WIDE_INT", "offset", ";", "split_plus", "(", "XEXP", "(", "mem", ",", "0", ")", ",", "&", "base", ",", "&", "offset", ")", ";", "HOST_WIDE_INT", "imm2", "=", "offset", ">>", "shamt", ";", "if", "(", "imm2", "<", "0", "||", "imm2", ">=", "4", ")", "return", "false", ";", "if", "(", "(", "imm2", "<<", "shamt", ")", "!=", "offset", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Check", "if", "the", "given", "MEM", "can", "be", "used", "to", "define", "the", "address", "of", "a", "mempair", "instruction", "."], "TS_V_token": ["riscv", "4", "3", "0", "0", "4"], "File": "thead", "Func": "th_mempair_operand_p", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 114, "Length": 142, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVCallLowering", "::", "lowerCall", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "CallLoweringInfo", "&", "Info", ")", "const", "{", "return", "false", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "the", "given", "call", "instruction", ",", "including", "argument", "and", "return", "value", "marshalling", "."], "TS_V_token": ["RISCV", "RISCV"], "File": "RISCVCallLowering", "Func": "lowerCall", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 115, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "riscv_warn_func_return", "(", "tree", "decl", ")", "{", "return", "!", "riscv_naked_function_p", "(", "decl", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_WARN_FUNC_RETURN", "."], "TS_V_token": ["riscv"], "File": "riscv", "Func": "riscv_warn_func_return", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 116, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "riscv_function_arg", "(", "cumulative_args_t", "cum_v", ",", "machine_mode", "mode", ",", "const_tree", "type", ",", "bool", "named", ")", "{", "CUMULATIVE_ARGS", "*", "cum", "=", "get_cumulative_args", "(", "cum_v", ")", ";", "struct", "riscv_arg_info", "info", ";", "if", "(", "mode", "==", "VOIDmode", ")", "return", "NULL", ";", "return", "riscv_get_arg_info", "(", "&", "info", ",", "cum", ",", "mode", ",", "type", ",", "named", ",", "false", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_FUNCTION_ARG", "."], "TS_V_token": ["riscv"], "File": "riscv3", "Func": "riscv_function_arg", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 117, "Length": 57, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVTargetLowering", "::", "allowsMisalignedMemoryAccesses", "(", "EVT", "VT", ",", "unsigned", "AddrSpace", "=", "0", ",", "unsigned", "Align", "=", "1", ",", "MachineMemOperand", "::", "Flags", "Flags", "=", "MachineMemOperand", "::", "MONone", ",", "bool", "*", "Fast", "=", "nullptr", ")", "const", "{", "if", "(", "Subtarget", ".", "hasNonStdExtPulp", "(", ")", ")", "{", "if", "(", "Fast", ")", "{", "*", "Fast", "=", "false", ";", "}", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "allows", "unaligned", "memory", "accesses", "of", "the", "specified", "type", "."], "TS_V_token": ["RISCV", "RISCV", "0", "1"], "File": "RISCVISelLowering73", "Func": "allowsMisalignedMemoryAccesses", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 118, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVFrameLowering", "::", "determineCalleeSaves", "(", "MachineFunction", "&", "MF", ",", "BitVector", "&", "SavedRegs", ",", "RegScavenger", "*", "RS", ")", "const", "{", "TargetFrameLowering", "::", "determineCalleeSaves", "(", "MF", ",", "SavedRegs", ",", "RS", ")", ";", "SavedRegs", ".", "set", "(", "RISCV", "::", "X1", ")", ";", "SavedRegs", ".", "set", "(", "RISCV", "::", "X8", ")", ";", "}", ""], "natrual_language": ["This", "method", "determines", "which", "of", "the", "registers", "reported", "by", "TargetRegisterInfo", ":", ":getCalleeSavedRegs", "(", ")", "should", "actually", "get", "saved", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV::X1", "RISCV::X8"], "File": "RISCVFrameLowering30", "Func": "determineCalleeSaves", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 119, "Length": 49, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "function_expander", "::", "use_scalar_move_insn", "(", "insn_code", "icode", ")", "{", "machine_mode", "mode", "=", "TYPE_MODE", "(", "TREE_TYPE", "(", "exp", ")", ")", ";", "int", "arg_offset", "=", "0", ";", "add_scalar_move_mask_operand", "(", "mask_mode", "(", ")", ")", ";", "if", "(", "use_real_merge_p", "(", "pred", ")", ")", "add_input_operand", "(", "arg_offset", "++", ")", ";", "else", "add_vundef_operand", "(", "mode", ")", ";", "for", "(", "int", "argno", "=", "arg_offset", ";", "argno", "<", "call_expr_nargs", "(", "exp", ")", ";", "argno", "++", ")", "add_input_operand", "(", "argno", ")", ";", "add_input_operand", "(", "Pmode", ",", "get_tail_policy_for_pred", "(", "pred", ")", ")", ";", "add_input_operand", "(", "Pmode", ",", "get_mask_policy_for_pred", "(", "pred", ")", ")", ";", "add_input_operand", "(", "Pmode", ",", "get_avl_type_rtx", "(", "avl_type", "::", "NONVLMAX", ")", ")", ";", "return", "generate_insn", "(", "icode", ")", ";", "}", ""], "natrual_language": ["Implement", "the", "call", "using", "instruction", "ICODE", ",", "with", "a", "1:1", "mapping", "between", "arguments", "and", "input", "operands", "."], "TS_V_token": ["riscv", "0"], "File": "riscv-vector-builtins", "Func": "use_scalar_move_insn", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 120, "Length": 112, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVRemoveRedundancyVSETVL", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "collectRedundancyVSETVLIInMF", "(", "MF", ")", ";", "return", "removeRedundancy", "(", ")", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["RISCV", "RISCV"], "File": "RISCVRemoveRedundancyVSETVL", "Func": "runOnMachineFunction", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 121, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVTargetLowering", "::", "allowsMisalignedMemoryAccesses", "(", "EVT", "VT", ",", "unsigned", "AddrSpace", ",", "Align", "Alignment", ",", "MachineMemOperand", "::", "Flags", "Flags", ",", "bool", "*", "Fast", ")", "const", "{", "if", "(", "!", "VT", ".", "isVector", "(", ")", ")", "return", "false", ";", "EVT", "ElemVT", "=", "VT", ".", "getVectorElementType", "(", ")", ";", "if", "(", "Alignment", ">=", "ElemVT", ".", "getStoreSize", "(", ")", ")", "{", "if", "(", "Fast", ")", "*", "Fast", "=", "true", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "allows", "unaligned", "memory", "accesses", "of", "the", "specified", "type", "."], "TS_V_token": ["RISCV", "RISCV"], "File": "RISCVISelLowering1", "Func": "allowsMisalignedMemoryAccesses", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 122, "Length": 74, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "riscv_split_integer_cost", "(", "HOST_WIDE_INT", "val", ")", "{", "int", "cost", ";", "unsigned", "HOST_WIDE_INT", "loval", "=", "sext_hwi", "(", "val", ",", "32", ")", ";", "unsigned", "HOST_WIDE_INT", "hival", "=", "sext_hwi", "(", "(", "val", "-", "loval", ")", ">>", "32", ",", "32", ")", ";", "struct", "riscv_integer_op", "codes", "[", "RISCV_MAX_INTEGER_OPS", "]", ";", "cost", "=", "2", "+", "riscv_build_integer", "(", "codes", ",", "loval", ",", "VOIDmode", ")", ";", "if", "(", "loval", "!=", "hival", ")", "cost", "+=", "riscv_build_integer", "(", "codes", ",", "hival", ",", "VOIDmode", ")", ";", "return", "cost", ";", "}", ""], "natrual_language": ["Return", "the", "cost", "of", "constructing", "VAL", "in", "the", "event", "that", "a", "scratch", "register", "is", "available", "."], "TS_V_token": ["riscv", "32", "32", "32", "2"], "File": "riscv", "Func": "riscv_split_integer_cost", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 123, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "th_mempair_check_consecutive_mems", "(", "machine_mode", "mode", ",", "rtx", "*", "mem1", ",", "rtx", "*", "mem2", ",", "bool", "*", "reversed", ")", "{", "rtx", "base1", ",", "base2", ",", "offset1", ",", "offset2", ";", "extract_base_offset_in_addr", "(", "*", "mem1", ",", "&", "base1", ",", "&", "offset1", ")", ";", "extract_base_offset_in_addr", "(", "*", "mem2", ",", "&", "base2", ",", "&", "offset2", ")", ";", "if", "(", "!", "base1", "||", "!", "base2", ")", "return", "false", ";", "if", "(", "rtx_equal_p", "(", "base1", ",", "base2", ")", ")", "{", "auto", "size", "=", "GET_MODE_SIZE", "(", "mode", ")", ";", "if", "(", "known_eq", "(", "UINTVAL", "(", "offset1", ")", "+", "size", ",", "UINTVAL", "(", "offset2", ")", ")", ")", "{", "*", "reversed", "=", "false", ";", "return", "true", ";", "}", "if", "(", "known_eq", "(", "UINTVAL", "(", "offset2", ")", "+", "size", ",", "UINTVAL", "(", "offset1", ")", ")", ")", "{", "*", "reversed", "=", "true", ";", "return", "true", ";", "}", "return", "false", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Analyse", "if", "a", "pair", "of", "loads/stores", "MEM1", "and", "MEM2", "with", "given", "MODE", "are", "consecutive", "so", "they", "can", "be", "merged", "into", "a", "mempair", "instruction", ".", "RESERVED", "will", "be", "set", "to", "true", ",", "if", "a", "reversal", "of", "the", "accesses", "is", "required", "(", "false", "otherwise", ")", ".", "Returns", "true", "if", "the", "accesses", "can", "be", "merged", "(", "even", "if", "reversing", "is", "necessary", ")", "and", "false", "if", "not", "."], "TS_V_token": ["riscv"], "File": "thead", "Func": "th_mempair_check_consecutive_mems", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 124, "Length": 144, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVTargetStreamer", "::", "emitTargetAttributes", "(", "const", "MCSubtargetInfo", "&", "STI", ")", "{", "if", "(", "STI", ".", "hasFeature", "(", "RISCV", "::", "FeatureRV32E", ")", ")", "emitAttribute", "(", "RISCVAttrs", "::", "STACK_ALIGN", ",", "RISCVAttrs", "::", "ALIGN_4", ")", ";", "else", "emitAttribute", "(", "RISCVAttrs", "::", "STACK_ALIGN", ",", "RISCVAttrs", "::", "ALIGN_16", ")", ";", "unsigned", "XLen", "=", "STI", ".", "hasFeature", "(", "RISCV", "::", "Feature64Bit", ")", "?", "64", ":", "32", ";", "std", "::", "vector", "<", "std", "::", "string", ">", "FeatureVector", ";", "RISCVFeatures", "::", "toFeatureVector", "(", "FeatureVector", ",", "STI", ".", "getFeatureBits", "(", ")", ")", ";", "auto", "ParseResult", "=", "llvm", "::", "RISCVISAInfo", "::", "parseFeatures", "(", "XLen", ",", "FeatureVector", ")", ";", "if", "(", "!", "ParseResult", ")", "{", "consumeError", "(", "ParseResult", ".", "takeError", "(", ")", ")", ";", "llvm_unreachable", "(", "\"Parsing feature error when emitTargetAttributes?\"", ")", ";", "}", "else", "{", "auto", "&", "ISAInfo", "=", "*", "ParseResult", ";", "emitTextAttribute", "(", "RISCVAttrs", "::", "ARCH", ",", "ISAInfo", "->", "toString", "(", ")", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "the", "build", "attributes", "that", "only", "depend", "on", "the", "hardware", "that", "we", "expect", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV::FeatureRV32E", "RISCVAttrs::STACK_ALIGN", "RISCVAttrs::ALIGN_4", "RISCVAttrs::STACK_ALIGN", "RISCVAttrs::ALIGN_16", "RISCV::Feature64Bit", "64", "32", "RISCVFeatures::toFeatureVector", "RISCVISAInfo::parseFeatures", "\"Parsing feature error when emitTargetAttributes?\"", "RISCVAttrs::ARCH"], "File": "RISCVTargetStreamer16", "Func": "emitTargetAttributes", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 125, "Length": 143, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVTargetLowering", "::", "splitValueIntoRegisterParts", "(", "SelectionDAG", "&", "DAG", ",", "const", "SDLoc", "&", "DL", ",", "SDValue", "Val", ",", "SDValue", "*", "Parts", ",", "unsigned", "NumParts", ",", "MVT", "PartVT", ",", "Optional", "<", "CallingConv", "::", "ID", ">", "CC", ")", "const", "{", "bool", "IsABIRegCopy", "=", "CC", ".", "hasValue", "(", ")", ";", "EVT", "ValueVT", "=", "Val", ".", "getValueType", "(", ")", ";", "if", "(", "IsABIRegCopy", "&&", "ValueVT", "==", "MVT", "::", "f16", "&&", "PartVT", "==", "MVT", "::", "f32", ")", "{", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "BITCAST", ",", "DL", ",", "MVT", "::", "i16", ",", "Val", ")", ";", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "ANY_EXTEND", ",", "DL", ",", "MVT", "::", "i32", ",", "Val", ")", ";", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "OR", ",", "DL", ",", "MVT", "::", "i32", ",", "Val", ",", "DAG", ".", "getConstant", "(", "0xFFFF0000", ",", "DL", ",", "MVT", "::", "i32", ")", ")", ";", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "BITCAST", ",", "DL", ",", "MVT", "::", "f32", ",", "Val", ")", ";", "Parts", "[", "0", "]", "=", "Val", ";", "return", "true", ";", "}", "if", "(", "ValueVT", ".", "isScalableVector", "(", ")", "&&", "PartVT", ".", "isScalableVector", "(", ")", ")", "{", "LLVMContext", "&", "Context", "=", "*", "DAG", ".", "getContext", "(", ")", ";", "EVT", "ValueEltVT", "=", "ValueVT", ".", "getVectorElementType", "(", ")", ";", "EVT", "PartEltVT", "=", "PartVT", ".", "getVectorElementType", "(", ")", ";", "unsigned", "ValueVTBitSize", "=", "ValueVT", ".", "getSizeInBits", "(", ")", ".", "getKnownMinSize", "(", ")", ";", "unsigned", "PartVTBitSize", "=", "PartVT", ".", "getSizeInBits", "(", ")", ".", "getKnownMinSize", "(", ")", ";", "if", "(", "PartVTBitSize", "%", "ValueVTBitSize", "==", "0", ")", "{", "assert", "(", "PartVTBitSize", ">=", "ValueVTBitSize", ")", ";", "if", "(", "ValueEltVT", "!=", "PartEltVT", ")", "{", "if", "(", "PartVTBitSize", ">", "ValueVTBitSize", ")", "{", "unsigned", "Count", "=", "PartVTBitSize", "/", "ValueEltVT", ".", "getFixedSizeInBits", "(", ")", ";", "assert", "(", "Count", "!=", "0", "&&", "\"The number of element should not be zero.\"", ")", ";", "EVT", "SameEltTypeVT", "=", "EVT", "::", "getVectorVT", "(", "Context", ",", "ValueEltVT", ",", "Count", ",", "true", ")", ";", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "INSERT_SUBVECTOR", ",", "DL", ",", "SameEltTypeVT", ",", "DAG", ".", "getUNDEF", "(", "SameEltTypeVT", ")", ",", "Val", ",", "DAG", ".", "getVectorIdxConstant", "(", "0", ",", "DL", ")", ")", ";", "}", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "BITCAST", ",", "DL", ",", "PartVT", ",", "Val", ")", ";", "}", "else", "{", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "INSERT_SUBVECTOR", ",", "DL", ",", "PartVT", ",", "DAG", ".", "getUNDEF", "(", "PartVT", ")", ",", "Val", ",", "DAG", ".", "getVectorIdxConstant", "(", "0", ",", "DL", ")", ")", ";", "}", "Parts", "[", "0", "]", "=", "Val", ";", "return", "true", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["Target-specific", "splitting", "of", "values", "into", "parts", "that", "fit", "a", "register", "storing", "a", "legal", "type", "."], "TS_V_token": ["RISCV", "RISCV", "MVT::f16", "MVT::f32", "ISD::BITCAST", "MVT::i16", "ISD::ANY_EXTEND", "MVT::i32", "ISD::OR", "MVT::i32", "0xFFFF0000", "MVT::i32", "ISD::BITCAST", "MVT::f32", "0", "0", "0", "\"The number of element should not be zero.\"", "ISD::INSERT_SUBVECTOR", "0", "ISD::BITCAST", "ISD::INSERT_SUBVECTOR", "0", "0"], "File": "RISCVISelLowering20", "Func": "splitValueIntoRegisterParts", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 126, "Length": 412, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "riscv_frame_set", "(", "rtx", "mem", ",", "rtx", "reg", ")", "{", "rtx", "set", "=", "gen_rtx_SET", "(", "mem", ",", "reg", ")", ";", "RTX_FRAME_RELATED_P", "(", "set", ")", "=", "1", ";", "return", "set", ";", "}", ""], "natrual_language": ["Return", "a", "frame-related", "rtx", "that", "stores", "REG", "at", "MEM", ".", "REG", "must", "be", "a", "single", "register", "."], "TS_V_token": ["riscv", "1"], "File": "riscv", "Func": "riscv_frame_set", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 127, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "EVT", "RISCVTargetLowering", "::", "getSetCCResultType", "(", "const", "DataLayout", "&", "DL", ",", "LLVMContext", "&", "Context", ",", "EVT", "VT", ")", "const", "{", "if", "(", "!", "VT", ".", "isVector", "(", ")", ")", "return", "getPointerTy", "(", "DL", ")", ";", "if", "(", "Subtarget", ".", "hasStdExtV", "(", ")", "&&", "(", "VT", ".", "isScalableVector", "(", ")", "||", "Subtarget", ".", "useRVVForFixedLengthVectors", "(", ")", ")", ")", "return", "EVT", "::", "getVectorVT", "(", "Context", ",", "MVT", "::", "i1", ",", "VT", ".", "getVectorElementCount", "(", ")", ")", ";", "return", "VT", ".", "changeVectorElementTypeToInteger", "(", ")", ";", "}", ""], "natrual_language": ["Return", "the", "value", "type", "to", "use", "for", "ISD", ":", ":SETCC", "."], "TS_V_token": ["RISCV", "RISCV", "MVT::i1"], "File": "RISCVISelLowering1", "Func": "getSetCCResultType", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 128, "Length": 82, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVMCExpr", "::", "evaluateAsConstant", "(", "int64_t", "&", "Res", ")", "const", "{", "MCValue", "Value", ";", "if", "(", "Kind", "==", "VK_RISCV_PCREL_HI", "||", "Kind", "==", "VK_RISCV_PCREL_LO", "||", "Kind", "==", "VK_RISCV_GOT_HI", "||", "Kind", "==", "VK_RISCV_TPREL_HI", "||", "Kind", "==", "VK_RISCV_TPREL_LO", "||", "Kind", "==", "VK_RISCV_TPREL_ADD", "||", "Kind", "==", "VK_RISCV_TLS_GOT_HI", "||", "Kind", "==", "VK_RISCV_TLS_GD_HI", "||", "Kind", "==", "VK_RISCV_CALL", "||", "Kind", "==", "VK_RISCV_CALL_PLT", ")", "return", "false", ";", "if", "(", "!", "getSubExpr", "(", ")", "->", "evaluateAsRelocatable", "(", "Value", ",", "nullptr", ",", "nullptr", ")", ")", "return", "false", ";", "if", "(", "!", "Value", ".", "isAbsolute", "(", ")", ")", "return", "false", ";", "Res", "=", "evaluateAsInt64", "(", "Value", ".", "getConstant", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Evaluates", "the", "fixup", "as", "a", "constant", "value", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV", "RISCV", "RISCV", "RISCV", "RISCV", "RISCV", "RISCV", "RISCV", "RISCV", "RISCV"], "File": "RISCVMCExpr11", "Func": "evaluateAsConstant", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 129, "Length": 105, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "riscv_expand_mult_with_const_int", "(", "machine_mode", "mode", ",", "rtx", "dest", ",", "rtx", "multiplicand", ",", "int", "multiplier", ")", "{", "if", "(", "multiplier", "==", "0", ")", "{", "riscv_emit_move", "(", "dest", ",", "GEN_INT", "(", "0", ")", ")", ";", "return", ";", "}", "bool", "neg_p", "=", "multiplier", "<", "0", ";", "int", "multiplier_abs", "=", "abs", "(", "multiplier", ")", ";", "if", "(", "multiplier_abs", "==", "1", ")", "{", "if", "(", "neg_p", ")", "riscv_expand_op", "(", "NEG", ",", "mode", ",", "dest", ",", "multiplicand", ",", "NULL_RTX", ")", ";", "else", "riscv_emit_move", "(", "dest", ",", "multiplicand", ")", ";", "}", "else", "{", "if", "(", "pow2p_hwi", "(", "multiplier_abs", ")", ")", "{", "riscv_expand_op", "(", "ASHIFT", ",", "mode", ",", "dest", ",", "multiplicand", ",", "gen_int_mode", "(", "exact_log2", "(", "multiplier_abs", ")", ",", "QImode", ")", ")", ";", "if", "(", "neg_p", ")", "riscv_expand_op", "(", "NEG", ",", "mode", ",", "dest", ",", "dest", ",", "NULL_RTX", ")", ";", "}", "else", "if", "(", "pow2p_hwi", "(", "multiplier_abs", "+", "1", ")", ")", "{", "riscv_expand_op", "(", "ASHIFT", ",", "mode", ",", "dest", ",", "multiplicand", ",", "gen_int_mode", "(", "exact_log2", "(", "multiplier_abs", "+", "1", ")", ",", "QImode", ")", ")", ";", "if", "(", "neg_p", ")", "riscv_expand_op", "(", "MINUS", ",", "mode", ",", "dest", ",", "multiplicand", ",", "dest", ")", ";", "else", "riscv_expand_op", "(", "MINUS", ",", "mode", ",", "dest", ",", "dest", ",", "multiplicand", ")", ";", "}", "else", "if", "(", "pow2p_hwi", "(", "multiplier", "-", "1", ")", ")", "{", "riscv_expand_op", "(", "ASHIFT", ",", "mode", ",", "dest", ",", "multiplicand", ",", "gen_int_mode", "(", "exact_log2", "(", "multiplier_abs", "-", "1", ")", ",", "QImode", ")", ")", ";", "riscv_expand_op", "(", "PLUS", ",", "mode", ",", "dest", ",", "dest", ",", "multiplicand", ")", ";", "if", "(", "neg_p", ")", "riscv_expand_op", "(", "NEG", ",", "mode", ",", "dest", ",", "dest", ",", "NULL_RTX", ")", ";", "}", "else", "{", "gcc_assert", "(", "TARGET_MUL", "&&", "\"M-extension must be enabled to calculate the poly_int \"", "\"size/offset.\"", ")", ";", "riscv_emit_move", "(", "dest", ",", "gen_int_mode", "(", "multiplier", ",", "mode", ")", ")", ";", "riscv_expand_op", "(", "MULT", ",", "mode", ",", "dest", ",", "dest", ",", "multiplicand", ")", ";", "}", "}", "}", ""], "natrual_language": ["Expand", "mult", "operation", "with", "constant", "integer", ",", "multiplicand", "also", "used", "as", "a", "*", "temporary", "register", "."], "TS_V_token": ["riscv", "0", "0", "0", "1", "1", "1", "1", "1", "\"M-extension must be enabled to calculate the poly_int \"", "\"size/offset.\""], "File": "riscv1", "Func": "riscv_expand_mult_with_const_int", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 130, "Length": 303, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVELFTargetObjectFile", "::", "getModuleMetadata", "(", "Module", "&", "M", ")", "{", "SmallVector", "<", "Module", "::", "ModuleFlagEntry", ",", "8", ">", "ModuleFlags", ";", "M", ".", "getModuleFlagsMetadata", "(", "ModuleFlags", ")", ";", "for", "(", "const", "auto", "&", "MFE", ":", "ModuleFlags", ")", "{", "StringRef", "Key", "=", "MFE", ".", "Key", "->", "getString", "(", ")", ";", "if", "(", "Key", "==", "\"SmallDataLimit\"", ")", "{", "SSThreshold", "=", "mdconst", "::", "extract", "<", "ConstantInt", ">", "(", "MFE", ".", "Val", ")", "->", "getZExtValue", "(", ")", ";", "break", ";", "}", "}", "}", ""], "natrual_language": ["Get", "the", "module-level", "metadata", "that", "the", "platform", "cares", "about", "."], "TS_V_token": ["RISCV", "RISCV", "8", "\"SmallDataLimit\""], "File": "RISCVTargetObjectFile2", "Func": "getModuleMetadata", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 131, "Length": 78, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "outliner", "::", "OutlinedFunction", "RISCVInstrInfo", "::", "getOutliningCandidateInfo", "(", "std", "::", "vector", "<", "outliner", "::", "Candidate", ">", "&", "RepeatedSequenceLocs", ")", "const", "{", "auto", "CannotInsertCall", "=", "[", "]", "(", "outliner", "::", "Candidate", "&", "C", ")", "{", "const", "TargetRegisterInfo", "*", "TRI", "=", "C", ".", "getMF", "(", ")", "->", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "C", ".", "initLRU", "(", "*", "TRI", ")", ";", "LiveRegUnits", "LRU", "=", "C", ".", "LRU", ";", "return", "!", "LRU", ".", "available", "(", "RISCV", "::", "X5", ")", ";", "}", ";", "RepeatedSequenceLocs", ".", "erase", "(", "std", "::", "remove_if", "(", "RepeatedSequenceLocs", ".", "begin", "(", ")", ",", "RepeatedSequenceLocs", ".", "end", "(", ")", ",", "CannotInsertCall", ")", ",", "RepeatedSequenceLocs", ".", "end", "(", ")", ")", ";", "if", "(", "RepeatedSequenceLocs", ".", "size", "(", ")", "<", "2", ")", "return", "outliner", "::", "OutlinedFunction", "(", ")", ";", "unsigned", "SequenceSize", "=", "0", ";", "auto", "I", "=", "RepeatedSequenceLocs", "[", "0", "]", ".", "front", "(", ")", ";", "auto", "E", "=", "std", "::", "next", "(", "RepeatedSequenceLocs", "[", "0", "]", ".", "back", "(", ")", ")", ";", "for", "(", ";", "I", "!=", "E", ";", "++", "I", ")", "SequenceSize", "+=", "getInstSizeInBytes", "(", "*", "I", ")", ";", "unsigned", "CallOverhead", "=", "8", ";", "for", "(", "auto", "&", "C", ":", "RepeatedSequenceLocs", ")", "C", ".", "setCallInfo", "(", "MachineOutlinerDefault", ",", "CallOverhead", ")", ";", "unsigned", "FrameOverhead", "=", "4", ";", "if", "(", "RepeatedSequenceLocs", "[", "0", "]", ".", "getMF", "(", ")", "->", "getSubtarget", "(", ")", ".", "getFeatureBits", "(", ")", "[", "RISCV", "::", "FeatureStdExtC", "]", ")", "FrameOverhead", "=", "2", ";", "return", "outliner", "::", "OutlinedFunction", "(", "RepeatedSequenceLocs", ",", "SequenceSize", ",", "FrameOverhead", ",", "MachineOutlinerDefault", ")", ";", "}", ""], "natrual_language": ["Returns", "a", "outliner", ":", ":OutlinedFunction", "struct", "containing", "target-specific", "information", "for", "a", "set", "of", "outlining", "candidates", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV::X5", "2", "0", "0", "0", "8", "4", "0", "RISCV::FeatureStdExtC", "2"], "File": "RISCVInstrInfo11", "Func": "getOutliningCandidateInfo", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 132, "Length": 249, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetTransformInfo", "RISCVTargetMachine", "::", "getTargetTransformInfo", "(", "const", "Function", "&", "F", ")", "{", "return", "TargetTransformInfo", "(", "RISCVTTIImpl", "(", "this", ",", "F", ")", ")", ";", "}", ""], "natrual_language": ["Get", "a", "TargetTransformInfo", "implementation", "for", "the", "target", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV"], "File": "RISCVTargetMachine10", "Func": "getTargetTransformInfo", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 133, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVAsmParser", "::", "processInstruction", "(", "MCInst", "&", "Inst", ",", "SMLoc", "IDLoc", ",", "MCStreamer", "&", "Out", ")", "{", "Inst", ".", "setLoc", "(", "IDLoc", ")", ";", "switch", "(", "Inst", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "RISCV", "::", "PseudoLI", ":", "{", "unsigned", "Reg", "=", "Inst", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "const", "MCOperand", "&", "Op1", "=", "Inst", ".", "getOperand", "(", "1", ")", ";", "if", "(", "Op1", ".", "isExpr", "(", ")", ")", "{", "emitToStreamer", "(", "Out", ",", "MCInstBuilder", "(", "RISCV", "::", "ADDI", ")", ".", "addReg", "(", "Reg", ")", ".", "addReg", "(", "RISCV", "::", "X0", ")", ".", "addExpr", "(", "Op1", ".", "getExpr", "(", ")", ")", ")", ";", "return", "false", ";", "}", "int64_t", "Imm", "=", "Inst", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ";", "if", "(", "!", "isRV64", "(", ")", ")", "Imm", "=", "SignExtend64", "<", "32", ">", "(", "Imm", ")", ";", "emitLoadImm", "(", "Reg", ",", "Imm", ",", "Out", ")", ";", "return", "false", ";", "}", "case", "RISCV", "::", "PseudoLLA", ":", "emitLoadLocalAddress", "(", "Inst", ",", "IDLoc", ",", "Out", ")", ";", "return", "false", ";", "case", "RISCV", "::", "PseudoLA", ":", "emitLoadAddress", "(", "Inst", ",", "IDLoc", ",", "Out", ")", ";", "return", "false", ";", "}", "emitToStreamer", "(", "Out", ",", "Inst", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["Process", "a", "single", "instruction", "and", "collect", "debug", "info", "anchors", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV::PseudoLI", "0", "1", "RISCV::ADDI", "RISCV::X0", "1", "32", "RISCV::PseudoLLA", "RISCV::PseudoLA"], "File": "RISCVAsmParser38", "Func": "processInstruction", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 134, "Length": 205, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "RISCVInstrInfo", "::", "isStoreToStackSlot", "(", "const", "MachineInstr", "&", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "0", ";", "case", "RISCV", "::", "SB", ":", "case", "RISCV", "::", "SH", ":", "case", "RISCV", "::", "SW", ":", "case", "RISCV", "::", "FSH", ":", "case", "RISCV", "::", "FSW", ":", "case", "RISCV", "::", "SD", ":", "case", "RISCV", "::", "FSD", ":", "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": ["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": ["RISCV", "RISCV", "0", "RISCV::SB", "RISCV::SH", "RISCV::SW", "RISCV::FSH", "RISCV::FSW", "RISCV::SD", "RISCV::FSD", "1", "2", "2", "0", "1", "0", "0"], "File": "RISCVInstrInfo (2)", "Func": "isStoreToStackSlot", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 135, "Length": 136, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "riscv_tls_symbol_p", "(", "const_rtx", "x", ")", "{", "return", "SYMBOL_REF_P", "(", "x", ")", "&&", "SYMBOL_REF_TLS_MODEL", "(", "x", ")", "!=", "0", ";", "}", ""], "natrual_language": ["Return", "true", "if", "X", "is", "a", "thread-local", "symbol", "."], "TS_V_token": ["riscv", "0"], "File": "riscv", "Func": "riscv_tls_symbol_p", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 136, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "InstructionCost", "RISCVTTIImpl", "::", "getArithmeticReductionCost", "(", "unsigned", "Opcode", ",", "VectorType", "*", "VTy", ",", "Optional", "<", "FastMathFlags", ">", "FMF", ",", "TTI", "::", "TargetCostKind", "CostKind", ")", "{", "if", "(", "!", "isa", "<", "FixedVectorType", ">", "(", "VTy", ")", ")", "return", "BaseT", "::", "getArithmeticReductionCost", "(", "Opcode", ",", "VTy", ",", "FMF", ",", "CostKind", ")", ";", "if", "(", "VTy", "->", "getElementType", "(", ")", "->", "isIntegerTy", "(", "1", ")", ")", "return", "BaseT", "::", "getArithmeticReductionCost", "(", "Opcode", ",", "VTy", ",", "FMF", ",", "CostKind", ")", ";", "if", "(", "!", "ST", "->", "useRVVForFixedLengthVectors", "(", ")", ")", "return", "BaseT", "::", "getArithmeticReductionCost", "(", "Opcode", ",", "VTy", ",", "FMF", ",", "CostKind", ")", ";", "if", "(", "VTy", "->", "getScalarSizeInBits", "(", ")", ">", "ST", "->", "getMaxELENForFixedLengthVectors", "(", ")", ")", "return", "BaseT", "::", "getArithmeticReductionCost", "(", "Opcode", ",", "VTy", ",", "FMF", ",", "CostKind", ")", ";", "int", "ISD", "=", "TLI", "->", "InstructionOpcodeToISD", "(", "Opcode", ")", ";", "assert", "(", "ISD", "&&", "\"Invalid opcode\"", ")", ";", "if", "(", "ISD", "!=", "ISD", "::", "ADD", "&&", "ISD", "!=", "ISD", "::", "OR", "&&", "ISD", "!=", "ISD", "::", "XOR", "&&", "ISD", "!=", "ISD", "::", "AND", "&&", "ISD", "!=", "ISD", "::", "FADD", ")", "return", "BaseT", "::", "getArithmeticReductionCost", "(", "Opcode", ",", "VTy", ",", "FMF", ",", "CostKind", ")", ";", "InstructionCost", "BaseCost", "=", "2", ";", "unsigned", "VL", "=", "cast", "<", "FixedVectorType", ">", "(", "VTy", ")", "->", "getNumElements", "(", ")", ";", "std", "::", "pair", "<", "InstructionCost", ",", "MVT", ">", "LT", "=", "TLI", "->", "getTypeLegalizationCost", "(", "DL", ",", "VTy", ")", ";", "if", "(", "TTI", "::", "requiresOrderedReduction", "(", "FMF", ")", ")", "return", "(", "LT", ".", "first", "-", "1", ")", "+", "BaseCost", "+", "VL", ";", "return", "(", "LT", ".", "first", "-", "1", ")", "+", "BaseCost", "+", "Log2_32_Ceil", "(", "VL", ")", ";", "}", ""], "natrual_language": ["Calculate", "the", "cost", "of", "vector", "reduction", "intrinsics", "."], "TS_V_token": ["RISCV", "RISCV", "1", "\"Invalid opcode\"", "ISD::ADD", "ISD::OR", "ISD::XOR", "ISD::AND", "ISD::FADD", "2", "1", "1"], "File": "RISCVTargetTransformInfo5", "Func": "getArithmeticReductionCost", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 137, "Length": 268, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "riscv_interrupt_type_p", "(", "tree", "type", ")", "{", "return", "lookup_attribute", "(", "\"interrupt\"", ",", "TYPE_ATTRIBUTES", "(", "type", ")", ")", "!=", "NULL", ";", "}", ""], "natrual_language": ["Return", "true", "if", "function", "TYPE", "is", "an", "interrupt", "function", "."], "TS_V_token": ["riscv", "\"interrupt\""], "File": "riscv", "Func": "riscv_interrupt_type_p", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 138, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "riscv_output_move", "(", "rtx", "dest", ",", "rtx", "src", ")", "{", "enum", "rtx_code", "dest_code", ",", "src_code", ";", "machine_mode", "mode", ";", "bool", "dbl_p", ";", "dest_code", "=", "GET_CODE", "(", "dest", ")", ";", "src_code", "=", "GET_CODE", "(", "src", ")", ";", "mode", "=", "GET_MODE", "(", "dest", ")", ";", "dbl_p", "=", "(", "GET_MODE_SIZE", "(", "mode", ")", "==", "8", ")", ";", "if", "(", "dbl_p", "&&", "riscv_split_64bit_move_p", "(", "dest", ",", "src", ")", ")", "return", "\"#\"", ";", "if", "(", "dest_code", "==", "REG", "&&", "GP_REG_P", "(", "REGNO", "(", "dest", ")", ")", ")", "{", "if", "(", "src_code", "==", "REG", "&&", "FP_REG_P", "(", "REGNO", "(", "src", ")", ")", ")", "return", "dbl_p", "?", "\"fmv.x.d\\t%0,%1\"", ":", "\"fmv.x.s\\t%0,%1\"", ";", "if", "(", "src_code", "==", "MEM", ")", "switch", "(", "GET_MODE_SIZE", "(", "mode", ")", ")", "{", "case", "1", ":", "return", "\"lbu\\t%0,%1\"", ";", "case", "2", ":", "return", "\"lhu\\t%0,%1\"", ";", "case", "4", ":", "return", "\"lw\\t%0,%1\"", ";", "case", "8", ":", "return", "\"ld\\t%0,%1\"", ";", "}", "if", "(", "src_code", "==", "CONST_INT", ")", "return", "\"li\\t%0,%1\"", ";", "if", "(", "src_code", "==", "HIGH", ")", "return", "\"lui\\t%0,%h1\"", ";", "if", "(", "symbolic_operand", "(", "src", ",", "VOIDmode", ")", ")", "switch", "(", "riscv_classify_symbolic_expression", "(", "src", ")", ")", "{", "case", "SYMBOL_GOT_DISP", ":", "return", "\"la\\t%0,%1\"", ";", "case", "SYMBOL_ABSOLUTE", ":", "return", "\"lla\\t%0,%1\"", ";", "case", "SYMBOL_PCREL", ":", "return", "\"lla\\t%0,%1\"", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "if", "(", "(", "src_code", "==", "REG", "&&", "GP_REG_P", "(", "REGNO", "(", "src", ")", ")", ")", "||", "(", "src", "==", "CONST0_RTX", "(", "mode", ")", ")", ")", "{", "if", "(", "dest_code", "==", "REG", ")", "{", "if", "(", "GP_REG_P", "(", "REGNO", "(", "dest", ")", ")", ")", "return", "\"mv\\t%0,%z1\"", ";", "if", "(", "FP_REG_P", "(", "REGNO", "(", "dest", ")", ")", ")", "{", "if", "(", "!", "dbl_p", ")", "return", "\"fmv.s.x\\t%0,%z1\"", ";", "if", "(", "TARGET_64BIT", ")", "return", "\"fmv.d.x\\t%0,%z1\"", ";", "gcc_assert", "(", "src", "==", "CONST0_RTX", "(", "mode", ")", ")", ";", "return", "\"fcvt.d.w\\t%0,x0\"", ";", "}", "}", "if", "(", "dest_code", "==", "MEM", ")", "switch", "(", "GET_MODE_SIZE", "(", "mode", ")", ")", "{", "case", "1", ":", "return", "\"sb\\t%z1,%0\"", ";", "case", "2", ":", "return", "\"sh\\t%z1,%0\"", ";", "case", "4", ":", "return", "\"sw\\t%z1,%0\"", ";", "case", "8", ":", "return", "\"sd\\t%z1,%0\"", ";", "}", "}", "if", "(", "src_code", "==", "REG", "&&", "FP_REG_P", "(", "REGNO", "(", "src", ")", ")", ")", "{", "if", "(", "dest_code", "==", "REG", "&&", "FP_REG_P", "(", "REGNO", "(", "dest", ")", ")", ")", "return", "dbl_p", "?", "\"fmv.d\\t%0,%1\"", ":", "\"fmv.s\\t%0,%1\"", ";", "if", "(", "dest_code", "==", "MEM", ")", "return", "dbl_p", "?", "\"fsd\\t%1,%0\"", ":", "\"fsw\\t%1,%0\"", ";", "}", "if", "(", "dest_code", "==", "REG", "&&", "FP_REG_P", "(", "REGNO", "(", "dest", ")", ")", ")", "{", "if", "(", "src_code", "==", "MEM", ")", "return", "dbl_p", "?", "\"fld\\t%0,%1\"", ":", "\"flw\\t%0,%1\"", ";", "}", "gcc_unreachable", "(", ")", ";", "}", ""], "natrual_language": ["Return", "the", "appropriate", "instructions", "to", "move", "SRC", "into", "DEST", ".", "Assume", "that", "SRC", "is", "operand", "1", "and", "DEST", "is", "operand", "0", "."], "TS_V_token": ["riscv", "8", "\"#\"", "\"fmv.x.d\\t%0,%1\"", "\"fmv.x.s\\t%0,%1\"", "1", "\"lbu\\t%0,%1\"", "2", "\"lhu\\t%0,%1\"", "4", "\"lw\\t%0,%1\"", "8", "\"ld\\t%0,%1\"", "\"li\\t%0,%1\"", "\"lui\\t%0,%h1\"", "\"la\\t%0,%1\"", "\"lla\\t%0,%1\"", "\"lla\\t%0,%1\"", "\"mv\\t%0,%z1\"", "\"fmv.s.x\\t%0,%z1\"", "\"fmv.d.x\\t%0,%z1\"", "\"fcvt.d.w\\t%0,x0\"", "1", "\"sb\\t%z1,%0\"", "2", "\"sh\\t%z1,%0\"", "4", "\"sw\\t%z1,%0\"", "8", "\"sd\\t%z1,%0\"", "\"fmv.d\\t%0,%1\"", "\"fmv.s\\t%0,%1\"", "\"fsd\\t%1,%0\"", "\"fsw\\t%1,%0\"", "\"fld\\t%0,%1\"", "\"flw\\t%0,%1\""], "File": "riscv3", "Func": "riscv_output_move", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 139, "Length": 417, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "RISCVTargetLowering", "::", "ConstraintType", "RISCVTargetLowering", "::", "getConstraintType", "(", "StringRef", "Constraint", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "default", ":", "break", ";", "case", "'C'", ":", "case", "'f'", ":", "case", "'v'", ":", "return", "C_RegisterClass", ";", "case", "'I'", ":", "case", "'J'", ":", "case", "'K'", ":", "return", "C_Immediate", ";", "case", "'A'", ":", "return", "C_Memory", ";", "case", "'S'", ":", "return", "C_Other", ";", "}", "}", "return", "TargetLowering", "::", "getConstraintType", "(", "Constraint", ")", ";", "}", ""], "natrual_language": ["Given", "a", "constraint", "letter", ",", "return", "the", "type", "of", "constraint", "for", "this", "target", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV", "1", "0"], "File": "RISCVISelLowering42", "Func": "getConstraintType", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 140, "Length": 82, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVTargetLowering", "::", "isOffsetFoldingLegal", "(", "const", "GlobalAddressSDNode", "*", "GA", ")", "const", "{", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "folding", "a", "constant", "offset", "with", "the", "given", "GlobalAddress", "is", "legal", "."], "TS_V_token": ["RISCV", "RISCV"], "File": "RISCVISelLowering33", "Func": "isOffsetFoldingLegal", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 141, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "RISCVTargetLowering", "::", "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", "(", ")", ")", ";", "analyzeOutputArgs", "(", "DAG", ".", "getMachineFunction", "(", ")", ",", "CCInfo", ",", "Outs", ",", "true", ",", "nullptr", ")", ";", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", "(", "1", ",", "Chain", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RVLocs", ".", "size", "(", ")", ";", "i", "<", "e", ";", "++", "i", ")", "{", "SDValue", "Val", "=", "OutVals", "[", "i", "]", ";", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Can only return in registers!\"", ")", ";", "Val", "=", "packIntoRegLoc", "(", "DAG", ",", "Val", ",", "VA", ",", "DL", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "VA", ".", "getLocReg", "(", ")", ",", "Val", ",", "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", "(", "RISCVISD", "::", "RET_FLAG", ",", "DL", ",", "MVT", "::", "Other", ",", "RetOps", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["RISCV", "RISCV", "ISD::OutputArg", "16", "4", "1", "0", "\"Can only return in registers!\"", "1", "0", "RISCVISD::RET_FLAG", "MVT::Other"], "File": "RISCVISelLowering31", "Func": "LowerReturn", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 142, "Length": 269, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "riscv_expand_conditional_branch", "(", "rtx", "label", ",", "rtx_code", "code", ",", "rtx", "op0", ",", "rtx", "op1", ")", "{", "if", "(", "FLOAT_MODE_P", "(", "GET_MODE", "(", "op1", ")", ")", ")", "riscv_emit_float_compare", "(", "&", "code", ",", "&", "op0", ",", "&", "op1", ")", ";", "else", "riscv_emit_int_compare", "(", "&", "code", ",", "&", "op0", ",", "&", "op1", ")", ";", "rtx", "condition", "=", "gen_rtx_fmt_ee", "(", "code", ",", "VOIDmode", ",", "op0", ",", "op1", ")", ";", "emit_jump_insn", "(", "gen_condjump", "(", "condition", ",", "label", ")", ")", ";", "}", ""], "natrual_language": ["Jump", "to", "LABEL", "if", "(", "CODE", "OP0", "OP1", ")", "holds", "."], "TS_V_token": ["riscv"], "File": "riscv", "Func": "riscv_expand_conditional_branch", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 143, "Length": 76, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "RISCVAsmParser", "::", "validateTargetOperandClass", "(", "MCParsedAsmOperand", "&", "AsmOp", ",", "unsigned", "Kind", ")", "{", "RISCVOperand", "&", "Op", "=", "static_cast", "<", "RISCVOperand", "&", ">", "(", "AsmOp", ")", ";", "if", "(", "!", "Op", ".", "isReg", "(", ")", ")", "return", "Match_InvalidOperand", ";", "Register", "Reg", "=", "Op", ".", "getReg", "(", ")", ";", "bool", "IsRegFPR64", "=", "RISCVMCRegisterClasses", "[", "RISCV", "::", "FPR64RegClassID", "]", ".", "contains", "(", "Reg", ")", ";", "bool", "IsRegFPR64C", "=", "RISCVMCRegisterClasses", "[", "RISCV", "::", "FPR64CRegClassID", "]", ".", "contains", "(", "Reg", ")", ";", "if", "(", "(", "IsRegFPR64", "&&", "Kind", "==", "MCK_FPR16", ")", "||", "(", "IsRegFPR64C", "&&", "Kind", "==", "MCK_FPR32C", ")", ")", "{", "Op", ".", "Reg", ".", "RegNum", "=", "convertFPR64ToFPR32", "(", "Reg", ")", ";", "return", "Match_Success", ";", "}", "return", "Match_InvalidOperand", ";", "}", ""], "natrual_language": ["Allow", "a", "target", "to", "add", "special", "case", "operand", "matching", "for", "things", "that", "tblgen", "doesn't/ca", "n't", "handle", "effectively", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV", "RISCV", "RISCV", "RISCV::FPR64RegClassID", "RISCV", "RISCV::FPR64CRegClassID"], "File": "RISCVAsmParser36", "Func": "validateTargetOperandClass", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 144, "Length": 115, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVAsmParser", "::", "ParseDirective", "(", "AsmToken", "DirectiveID", ")", "{", "StringRef", "IDVal", "=", "DirectiveID", ".", "getString", "(", ")", ";", "if", "(", "IDVal", "==", "\".option\"", ")", "return", "parseDirectiveOption", "(", ")", ";", "if", "(", "IDVal", "==", "\".attribute\"", ")", "return", "parseDirectiveAttribute", "(", ")", ";", "if", "(", "IDVal", "==", "\".insn\"", ")", "return", "parseDirectiveInsn", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["ParseDirective", "-", "Parse", "a", "target", "specific", "assembler", "directive", "This", "method", "is", "deprecated", ",", "use", "'parseDirective", "'", "instead", "."], "TS_V_token": ["RISCV", "RISCV", "\".option\"", "\".attribute\"", "\".insn\""], "File": "RISCVAsmParser (2)", "Func": "ParseDirective", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 145, "Length": 60, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVFrameLowering", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "MutableArrayRef", "<", "CalleeSavedInfo", ">", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "CSI", ".", "empty", "(", ")", ")", "return", "true", ";", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", "->", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "DebugLoc", "DL", ";", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", "&&", "!", "MI", "->", "isDebugInstr", "(", ")", ")", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "const", "auto", "&", "NonLibcallCSI", "=", "getNonLibcallCSI", "(", "CSI", ")", ";", "for", "(", "auto", "&", "CS", ":", "reverse", "(", "NonLibcallCSI", ")", ")", "{", "Register", "Reg", "=", "CS", ".", "getReg", "(", ")", ";", "const", "TargetRegisterClass", "*", "RC", "=", "TRI", "->", "getMinimalPhysRegClass", "(", "Reg", ")", ";", "TII", ".", "loadRegFromStackSlot", "(", "MBB", ",", "MI", ",", "Reg", ",", "CS", ".", "getFrameIdx", "(", ")", ",", "RC", ",", "TRI", ")", ";", "assert", "(", "MI", "!=", "MBB", ".", "begin", "(", ")", "&&", "\"loadRegFromStackSlot didn't insert any code!\"", ")", ";", "}", "const", "char", "*", "RestoreLibCall", "=", "getRestoreLibCallName", "(", "*", "MF", ",", "CSI", ")", ";", "if", "(", "RestoreLibCall", ")", "{", "MachineBasicBlock", "::", "iterator", "NewMI", "=", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "TII", ".", "get", "(", "RISCV", "::", "PseudoTAIL", ")", ")", ".", "addExternalSymbol", "(", "RestoreLibCall", ",", "RISCVII", "::", "MO_CALL", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameDestroy", ")", ";", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", "&&", "MI", "->", "getOpcode", "(", ")", "==", "RISCV", "::", "PseudoRET", ")", "{", "NewMI", "->", "copyImplicitOps", "(", "*", "MF", ",", "*", "MI", ")", ";", "MI", "->", "eraseFromParent", "(", ")", ";", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["restoreCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "restore", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "load", "instructions", "via", "loadRegToStackSlot", "(", ")", "."], "TS_V_token": ["RISCV", "RISCV", "\"loadRegFromStackSlot didn't insert any code!\"", "RISCV::PseudoTAIL", "RISCVII::MO_CALL", "RISCV::PseudoRET"], "File": "RISCVFrameLowering", "Func": "restoreCalleeSavedRegisters", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 146, "Length": 271, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "riscv_register_pragmas", "(", "void", ")", "{", "targetm", ".", "check_builtin_call", "=", "riscv_check_builtin_call", ";", "c_register_pragma", "(", "\"riscv\"", ",", "\"intrinsic\"", ",", "riscv_pragma_intrinsic", ")", ";", "}", ""], "natrual_language": ["Implement", "REGISTER_TARGET_PRAGMAS", "."], "TS_V_token": ["riscv", "\"riscv\"", "\"intrinsic\""], "File": "riscv-c1", "Func": "riscv_register_pragmas", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 147, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "riscv_memory_move_cost", "(", "enum", "machine_mode", "mode", ",", "reg_class_t", "rclass", ",", "bool", "in", ")", "{", "return", "(", "tune_info", "->", "memory_cost", "+", "memory_move_secondary_cost", "(", "mode", ",", "rclass", ",", "in", ")", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_MEMORY_MOVE_COST", "."], "TS_V_token": ["riscv"], "File": "riscv2", "Func": "riscv_memory_move_cost", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 148, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "riscv_merge_decl_attributes", "(", "tree", "olddecl", ",", "tree", "newdecl", ")", "{", "tree", "combined_attrs", ";", "enum", "riscv_privilege_levels", "old_interrupt_type", "=", "riscv_get_interrupt_type", "(", "olddecl", ")", ";", "enum", "riscv_privilege_levels", "new_interrupt_type", "=", "riscv_get_interrupt_type", "(", "newdecl", ")", ";", "if", "(", "(", "old_interrupt_type", "!=", "UNKNOWN_MODE", ")", "&&", "(", "new_interrupt_type", "!=", "UNKNOWN_MODE", ")", "&&", "(", "old_interrupt_type", "!=", "new_interrupt_type", ")", ")", "error", "(", "\"%qs function cannot have different interrupt type\"", ",", "\"interrupt\"", ")", ";", "combined_attrs", "=", "merge_attributes", "(", "DECL_ATTRIBUTES", "(", "olddecl", ")", ",", "DECL_ATTRIBUTES", "(", "newdecl", ")", ")", ";", "return", "combined_attrs", ";", "}", ""], "natrual_language": ["Implement", "TARGET_MERGE_DECL_ATTRIBUTES", "."], "TS_V_token": ["riscv", "\"%qs function cannot have different interrupt type\"", "\"interrupt\""], "File": "riscv", "Func": "riscv_merge_decl_attributes", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 149, "Length": 78, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVTTIImpl", "::", "isLoweredToCall", "(", "const", "Function", "*", "F", ")", "{", "if", "(", "F", "->", "getName", "(", ")", ".", "startswith", "(", "\"llvm.riscv.pulp\"", ")", ")", "return", "false", ";", "return", "BaseT", "::", "isLoweredToCall", "(", "F", ")", ";", "}", ""], "natrual_language": ["Test", "whether", "calls", "to", "a", "function", "lower", "to", "actual", "program", "function", "calls", "."], "TS_V_token": ["RISCV", "RISCV", "\"llvm.riscv.pulp\""], "File": "RISCVTargetTransformInfo17", "Func": "isLoweredToCall", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 150, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "legitimize_move", "(", "rtx", "dest", ",", "rtx", "src", ",", "machine_mode", "mask_mode", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "dest", ")", ";", "if", "(", "CONST_VECTOR_P", "(", "src", ")", ")", "{", "expand_const_vector", "(", "dest", ",", "src", ",", "mask_mode", ")", ";", "return", "true", ";", "}", "if", "(", "(", "known_lt", "(", "GET_MODE_SIZE", "(", "mode", ")", ",", "BYTES_PER_RISCV_VECTOR", ")", "||", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_VECTOR_BOOL", ")", "&&", "lra_in_progress", ")", "{", "emit_insn", "(", "gen_mov_lra", "(", "mode", ",", "Pmode", ",", "dest", ",", "src", ")", ")", ";", "return", "true", ";", "}", "if", "(", "known_ge", "(", "GET_MODE_SIZE", "(", "mode", ")", ",", "BYTES_PER_RISCV_VECTOR", ")", "&&", "GET_MODE_CLASS", "(", "mode", ")", "!=", "MODE_VECTOR_BOOL", ")", "{", "if", "(", "MEM_P", "(", "dest", ")", "&&", "!", "REG_P", "(", "src", ")", ")", "src", "=", "force_reg", "(", "mode", ",", "src", ")", ";", "return", "false", ";", "}", "if", "(", "register_operand", "(", "src", ",", "mode", ")", "&&", "register_operand", "(", "dest", ",", "mode", ")", ")", "{", "emit_insn", "(", "gen_rtx_SET", "(", "dest", ",", "src", ")", ")", ";", "return", "true", ";", "}", "if", "(", "!", "register_operand", "(", "src", ",", "mode", ")", "&&", "!", "register_operand", "(", "dest", ",", "mode", ")", ")", "{", "rtx", "tmp", "=", "gen_reg_rtx", "(", "mode", ")", ";", "if", "(", "MEM_P", "(", "src", ")", ")", "emit_vlmax_op", "(", "code_for_pred_mov", "(", "mode", ")", ",", "tmp", ",", "src", ",", "mask_mode", ")", ";", "else", "emit_move_insn", "(", "tmp", ",", "src", ")", ";", "src", "=", "tmp", ";", "}", "if", "(", "satisfies_constraint_vu", "(", "src", ")", ")", "return", "false", ";", "emit_vlmax_op", "(", "code_for_pred_mov", "(", "mode", ")", ",", "dest", ",", "src", ",", "mask_mode", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Expand", "a", "pre-RA", "RVV", "data", "move", "from", "SRC", "to", "DEST", ".", "It", "expands", "move", "for", "RVV", "fractional", "vector", "modes", "."], "TS_V_token": ["riscv"], "File": "riscv-v", "Func": "legitimize_move", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 151, "Length": 250, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "riscv_symbol_binds_local_p", "(", "const_rtx", "x", ")", "{", "if", "(", "SYMBOL_REF_P", "(", "x", ")", ")", "return", "(", "SYMBOL_REF_DECL", "(", "x", ")", "?", "targetm", ".", "binds_local_p", "(", "SYMBOL_REF_DECL", "(", "x", ")", ")", ":", "SYMBOL_REF_LOCAL_P", "(", "x", ")", ")", ";", "else", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "symbol", "X", "binds", "locally", "."], "TS_V_token": ["riscv"], "File": "riscv", "Func": "riscv_symbol_binds_local_p", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 152, "Length": 43, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "int", "get_ratio", "(", "machine_mode", "mode", ")", "{", "if", "(", "TARGET_MIN_VLEN", "==", "32", ")", "return", "mode_vtype_infos", ".", "ratio_for_min_vlen32", "[", "mode", "]", ";", "else", "return", "mode_vtype_infos", ".", "ratio_for_min_vlen64", "[", "mode", "]", ";", "}", ""], "natrual_language": ["Get", "ratio", "according", "to", "machine", "mode", "."], "TS_V_token": ["riscv", "32"], "File": "riscv-v", "Func": "get_ratio", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 153, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "riscv_conditional_register_usage", "(", "void", ")", "{", "if", "(", "TARGET_RVE", ")", "{", "for", "(", "int", "r", "=", "16", ";", "r", "<=", "31", ";", "r", "++", ")", "fixed_regs", "[", "r", "]", "=", "1", ";", "}", "if", "(", "riscv_abi", "==", "ABI_ILP32E", ")", "{", "for", "(", "int", "r", "=", "16", ";", "r", "<=", "31", ";", "r", "++", ")", "call_used_regs", "[", "r", "]", "=", "1", ";", "}", "if", "(", "!", "TARGET_HARD_FLOAT", ")", "{", "for", "(", "int", "regno", "=", "FP_REG_FIRST", ";", "regno", "<=", "FP_REG_LAST", ";", "regno", "++", ")", "fixed_regs", "[", "regno", "]", "=", "call_used_regs", "[", "regno", "]", "=", "1", ";", "}", "if", "(", "UNITS_PER_FP_ARG", "==", "0", ")", "{", "for", "(", "int", "regno", "=", "FP_REG_FIRST", ";", "regno", "<=", "FP_REG_LAST", ";", "regno", "++", ")", "call_used_regs", "[", "regno", "]", "=", "1", ";", "}", "if", "(", "!", "TARGET_VECTOR", ")", "{", "for", "(", "int", "regno", "=", "V_REG_FIRST", ";", "regno", "<=", "V_REG_LAST", ";", "regno", "++", ")", "fixed_regs", "[", "regno", "]", "=", "call_used_regs", "[", "regno", "]", "=", "1", ";", "fixed_regs", "[", "VTYPE_REGNUM", "]", "=", "call_used_regs", "[", "VTYPE_REGNUM", "]", "=", "1", ";", "fixed_regs", "[", "VL_REGNUM", "]", "=", "call_used_regs", "[", "VL_REGNUM", "]", "=", "1", ";", "}", "}", ""], "natrual_language": ["Implement", "TARGET_CONDITIONAL_REGISTER_USAGE", "."], "TS_V_token": ["riscv", "16", "31", "1", "16", "31", "1", "1", "0", "1", "1", "1", "1"], "File": "riscv1", "Func": "riscv_conditional_register_usage", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 154, "Length": 183, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "RISCVInstrInfo", "::", "insertIndirectBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "&", "DestBB", ",", "const", "DebugLoc", "&", "DL", ",", "int64_t", "BrOffset", ",", "RegScavenger", "*", "RS", ")", "const", "{", "assert", "(", "RS", "&&", "\"RegScavenger required for long branching\"", ")", ";", "assert", "(", "MBB", ".", "empty", "(", ")", "&&", "\"new block should be inserted for expanding unconditional branch\"", ")", ";", "assert", "(", "MBB", ".", "pred_size", "(", ")", "==", "1", ")", ";", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "MF", "->", "getRegInfo", "(", ")", ";", "if", "(", "!", "isInt", "<", "32", ">", "(", "BrOffset", ")", ")", "report_fatal_error", "(", "\"Branch offsets outside of the signed 32-bit range not supported\"", ")", ";", "Register", "ScratchReg", "=", "MRI", ".", "createVirtualRegister", "(", "&", "RISCV", "::", "GPRRegClass", ")", ";", "auto", "II", "=", "MBB", ".", "end", "(", ")", ";", "MachineInstr", "&", "MI", "=", "*", "BuildMI", "(", "MBB", ",", "II", ",", "DL", ",", "get", "(", "RISCV", "::", "PseudoJump", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Define", "|", "RegState", "::", "Dead", ")", ".", "addMBB", "(", "&", "DestBB", ",", "RISCVII", "::", "MO_CALL", ")", ";", "RS", "->", "enterBasicBlockEnd", "(", "MBB", ")", ";", "unsigned", "Scav", "=", "RS", "->", "scavengeRegisterBackwards", "(", "RISCV", "::", "GPRRegClass", ",", "MI", ".", "getIterator", "(", ")", ",", "false", ",", "0", ")", ";", "MRI", ".", "replaceRegWith", "(", "ScratchReg", ",", "Scav", ")", ";", "MRI", ".", "clearVirtRegs", "(", ")", ";", "RS", "->", "setRegUsed", "(", "Scav", ")", ";", "return", "8", ";", "}", ""], "natrual_language": ["Insert", "an", "unconditional", "indirect", "branch", "at", "the", "end", "of", "MBB", "to", "NewDestBB", "."], "TS_V_token": ["RISCV", "RISCV", "\"RegScavenger required for long branching\"", "\"new block should be inserted for expanding unconditional branch\"", "1", "32", "\"Branch offsets outside of the signed 32-bit range not supported\"", "RISCV::GPRRegClass", "RISCV::PseudoJump", "RISCVII::MO_CALL", "RISCV::GPRRegClass", "0", "8"], "File": "RISCVInstrInfo (2)", "Func": "insertIndirectBranch", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 155, "Length": 213, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "RISCVTargetLowering", "::", "LowerOperation", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "report_fatal_error", "(", "\"unimplemented operand\"", ")", ";", "case", "ISD", "::", "GlobalAddress", ":", "return", "lowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BlockAddress", ":", "return", "lowerBlockAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SELECT", ":", "return", "lowerSELECT", "(", "Op", ",", "DAG", ")", ";", "}", "}", ""], "natrual_language": ["LowerOperation", "-", "Provide", "custom", "lowering", "hooks", "for", "some", "operations", "."], "TS_V_token": ["RISCV", "RISCV", "\"unimplemented operand\"", "ISD::GlobalAddress", "ISD::BlockAddress", "ISD::SELECT"], "File": "RISCVISelLowering50", "Func": "LowerOperation", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 156, "Length": 71, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVFrameLowering", "::", "spillCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "ArrayRef", "<", "CalleeSavedInfo", ">", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "CSI", ".", "empty", "(", ")", ")", "return", "true", ";", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", "->", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "DebugLoc", "DL", ";", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", "&&", "!", "MI", "->", "isDebugInstr", "(", ")", ")", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "const", "char", "*", "SpillLibCall", "=", "getSpillLibCallName", "(", "*", "MF", ",", "CSI", ")", ";", "if", "(", "SpillLibCall", ")", "{", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "TII", ".", "get", "(", "RISCV", "::", "PseudoCALLReg", ")", ",", "RISCV", "::", "X5", ")", ".", "addExternalSymbol", "(", "SpillLibCall", ",", "RISCVII", "::", "MO_CALL", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ";", "for", "(", "auto", "&", "CS", ":", "CSI", ")", "MBB", ".", "addLiveIn", "(", "CS", ".", "getReg", "(", ")", ")", ";", "}", "const", "auto", "&", "NonLibcallCSI", "=", "getNonLibcallCSI", "(", "*", "MF", ",", "CSI", ")", ";", "for", "(", "auto", "&", "CS", ":", "NonLibcallCSI", ")", "{", "Register", "Reg", "=", "CS", ".", "getReg", "(", ")", ";", "const", "TargetRegisterClass", "*", "RC", "=", "TRI", "->", "getMinimalPhysRegClass", "(", "Reg", ")", ";", "TII", ".", "storeRegToStackSlot", "(", "MBB", ",", "MI", ",", "Reg", ",", "!", "MBB", ".", "isLiveIn", "(", "Reg", ")", ",", "CS", ".", "getFrameIdx", "(", ")", ",", "RC", ",", "TRI", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["spillCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "spill", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "store", "instructions", "via", "storeRegToStackSlot", "(", ")", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV::PseudoCALLReg", "RISCV::X5", "RISCVII::MO_CALL"], "File": "RISCVFrameLowering (2)", "Func": "spillCalleeSavedRegisters", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 157, "Length": 245, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVDAGToDAGISel", "::", "PostprocessISelDAG", "(", ")", "{", "doPeepholeLoadStoreOffset", "(", ")", ";", "}", ""], "natrual_language": ["PostprocessISelDAG", "(", ")", "-", "This", "hook", "allows", "the", "target", "to", "hack", "on", "the", "graph", "right", "after", "selection", "."], "TS_V_token": ["RISCV", "RISCV"], "File": "RISCVISelDAGToDAG24", "Func": "PostprocessISelDAG", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 158, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "RISCVTargetLowering", "::", "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", "(", ")", ")", ";", "analyzeOutputArgs", "(", "DAG", ".", "getMachineFunction", "(", ")", ",", "CCInfo", ",", "Outs", ",", "true", ",", "nullptr", ")", ";", "SDValue", "Glue", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", "(", "1", ",", "Chain", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RVLocs", ".", "size", "(", ")", ";", "i", "<", "e", ";", "++", "i", ")", "{", "SDValue", "Val", "=", "OutVals", "[", "i", "]", ";", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Can only return in registers!\"", ")", ";", "if", "(", "VA", ".", "getLocVT", "(", ")", "==", "MVT", "::", "i32", "&&", "VA", ".", "getValVT", "(", ")", "==", "MVT", "::", "f64", ")", "{", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Expected return via registers\"", ")", ";", "SDValue", "SplitF64", "=", "DAG", ".", "getNode", "(", "RISCVISD", "::", "SplitF64", ",", "DL", ",", "DAG", ".", "getVTList", "(", "MVT", "::", "i32", ",", "MVT", "::", "i32", ")", ",", "Val", ")", ";", "SDValue", "Lo", "=", "SplitF64", ".", "getValue", "(", "0", ")", ";", "SDValue", "Hi", "=", "SplitF64", ".", "getValue", "(", "1", ")", ";", "unsigned", "RegLo", "=", "VA", ".", "getLocReg", "(", ")", ";", "unsigned", "RegHi", "=", "RegLo", "+", "1", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "RegLo", ",", "Lo", ",", "Glue", ")", ";", "Glue", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "RegLo", ",", "MVT", "::", "i32", ")", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "RegHi", ",", "Hi", ",", "Glue", ")", ";", "Glue", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "RegHi", ",", "MVT", "::", "i32", ")", ")", ";", "}", "else", "{", "Val", "=", "packIntoRegLoc", "(", "DAG", ",", "Val", ",", "VA", ",", "DL", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "VA", ".", "getLocReg", "(", ")", ",", "Val", ",", "Glue", ")", ";", "Glue", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "}", "RetOps", "[", "0", "]", "=", "Chain", ";", "if", "(", "Glue", ".", "getNode", "(", ")", ")", "{", "RetOps", ".", "push_back", "(", "Glue", ")", ";", "}", "return", "DAG", ".", "getNode", "(", "RISCVISD", "::", "RET_FLAG", ",", "DL", ",", "MVT", "::", "Other", ",", "RetOps", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["RISCV", "RISCV", "ISD::OutputArg", "16", "4", "1", "0", "\"Can only return in registers!\"", "MVT::i32", "MVT::f64", "\"Expected return via registers\"", "RISCVISD::SplitF64", "MVT::i32", "MVT::i32", "0", "1", "1", "1", "MVT::i32", "1", "MVT::i32", "1", "0", "RISCVISD::RET_FLAG", "MVT::Other"], "File": "RISCVISelLowering10", "Func": "LowerReturn", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 159, "Length": 456, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "InstructionCost", "RISCVTTIImpl", "::", "getIntImmCostInst", "(", "unsigned", "Opcode", ",", "unsigned", "Idx", ",", "const", "APInt", "&", "Imm", ",", "Type", "*", "Ty", ",", "TTI", "::", "TargetCostKind", "CostKind", ",", "Instruction", "*", "Inst", ")", "{", "assert", "(", "Ty", "->", "isIntegerTy", "(", ")", "&&", "\"getIntImmCost can only estimate cost of materialising integers\"", ")", ";", "if", "(", "Imm", "==", "0", ")", "return", "TTI", "::", "TCC_Free", ";", "bool", "Takes12BitImm", "=", "false", ";", "unsigned", "ImmArgIdx", "=", "~", "0U", ";", "switch", "(", "Opcode", ")", "{", "case", "Instruction", "::", "GetElementPtr", ":", "return", "TTI", "::", "TCC_Free", ";", "case", "Instruction", "::", "And", ":", "if", "(", "Imm", "==", "UINT64_C", "(", "0xffff", ")", "&&", "ST", "->", "hasStdExtZbb", "(", ")", ")", "return", "TTI", "::", "TCC_Free", ";", "if", "(", "Imm", "==", "UINT64_C", "(", "0xffffffff", ")", "&&", "ST", "->", "hasStdExtZbb", "(", ")", ")", "return", "TTI", "::", "TCC_Free", ";", "LLVM_FALLTHROUGH", ";", "case", "Instruction", "::", "Add", ":", "case", "Instruction", "::", "Or", ":", "case", "Instruction", "::", "Xor", ":", "case", "Instruction", "::", "Mul", ":", "Takes12BitImm", "=", "true", ";", "break", ";", "case", "Instruction", "::", "Sub", ":", "case", "Instruction", "::", "Shl", ":", "case", "Instruction", "::", "LShr", ":", "case", "Instruction", "::", "AShr", ":", "Takes12BitImm", "=", "true", ";", "ImmArgIdx", "=", "1", ";", "break", ";", "default", ":", "break", ";", "}", "if", "(", "Takes12BitImm", ")", "{", "if", "(", "Instruction", "::", "isCommutative", "(", "Opcode", ")", "||", "Idx", "==", "ImmArgIdx", ")", "{", "if", "(", "Imm", ".", "getMinSignedBits", "(", ")", "<=", "64", "&&", "getTLI", "(", ")", "->", "isLegalAddImmediate", "(", "Imm", ".", "getSExtValue", "(", ")", ")", ")", "{", "return", "TTI", "::", "TCC_Free", ";", "}", "}", "return", "getIntImmCost", "(", "Imm", ",", "Ty", ",", "CostKind", ")", ";", "}", "return", "TTI", "::", "TCC_Free", ";", "}", ""], "natrual_language": ["Return", "the", "expected", "cost", "of", "materialization", "for", "the", "given", "integer", "immediate", "of", "the", "specified", "type", "for", "a", "given", "instruction", "."], "TS_V_token": ["RISCV", "RISCV", "\"getIntImmCost can only estimate cost of materialising integers\"", "0", "0U", "0xffff", "0xffffffff", "1", "64"], "File": "RISCVTargetTransformInfo10", "Func": "getIntImmCostInst", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 160, "Length": 253, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx_insn", "*", "riscv_sr_match_prologue", "(", "rtx_insn", "*", "*", "body", ")", "{", "rtx_insn", "*", "insn", ",", "*", "bb_note", ";", "*", "body", "=", "NULL", ";", "for", "(", "insn", "=", "get_insns", "(", ")", ";", "insn", "!=", "NULL", ";", "insn", "=", "NEXT_INSN", "(", "insn", ")", ")", "if", "(", "NOTE_P", "(", "insn", ")", "&&", "NOTE_KIND", "(", "insn", ")", "==", "NOTE_INSN_PROLOGUE_END", ")", "{", "*", "body", "=", "NEXT_INSN", "(", "insn", ")", ";", "break", ";", "}", "if", "(", "insn", "==", "NULL", "||", "PREV_INSN", "(", "insn", ")", "==", "NULL", ")", "return", "NULL", ";", "for", "(", "bb_note", "=", "PREV_INSN", "(", "PREV_INSN", "(", "insn", ")", ")", ";", "bb_note", "!=", "NULL", ";", "bb_note", "=", "PREV_INSN", "(", "bb_note", ")", ")", "{", "if", "(", "!", "NOTE_P", "(", "bb_note", ")", ")", "return", "NULL", ";", "if", "(", "NOTE_KIND", "(", "bb_note", ")", "==", "NOTE_INSN_BASIC_BLOCK", ")", "break", ";", "if", "(", "NOTE_KIND", "(", "bb_note", ")", "!=", "NOTE_INSN_DELETED", "&&", "NOTE_KIND", "(", "bb_note", ")", "!=", "NOTE_INSN_FUNCTION_BEG", ")", "return", "NULL", ";", "}", "if", "(", "bb_note", "==", "NULL", ")", "return", "NULL", ";", "insn", "=", "PREV_INSN", "(", "insn", ")", ";", "if", "(", "INSN_P", "(", "insn", ")", "&&", "INSN_CODE", "(", "insn", ")", "==", "CODE_FOR_gpr_save", "&&", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "==", "PARALLEL", "&&", "GET_CODE", "(", "XVECEXP", "(", "PATTERN", "(", "insn", ")", ",", "0", ",", "0", ")", ")", "==", "UNSPEC_VOLATILE", "&&", "(", "GET_CODE", "(", "XVECEXP", "(", "XVECEXP", "(", "PATTERN", "(", "insn", ")", ",", "0", ",", "0", ")", ",", "0", ",", "0", ")", ")", "==", "CONST_INT", ")", "&&", "INTVAL", "(", "XVECEXP", "(", "XVECEXP", "(", "PATTERN", "(", "insn", ")", ",", "0", ",", "0", ")", ",", "0", ",", "0", ")", ")", "==", "0", ")", "return", "insn", ";", "return", "NULL", ";", "}", ""], "natrual_language": ["Look", "in", "the", "function", "prologue", "for", "a", "call", "to", "the", "save", "stub", ".", "Ensure", "that", "the", "instruction", "is", "as", "we", "expect", "(", "see", "detail", "below", ")", "and", "if", "the", "instruction", "matches", "return", "a", "pointer", "to", "it", ".", "Otherwise", ",", "return", "NULL", ".", "We", "expect", "the", "function", "prologue", "to", "look", "like", "this", ":", "(", "note", "NOTE_INSN_BASIC_BLOCK", ")", "(", "insn", "(", "parallel", "[", "(", "unspec_volatile", "[", "(", "const_int", "2", "[", "0x2", "]", ")", "]", "UNSPECV_GPR_SAVE", ")", "(", "clobber", "(", "reg", ":", "SI", "5", "t0", ")", ")", "(", "clobber", "(", "reg", ":", "SI", "6", "t1", ")", ")", "]", ")", "(", "note", "NOTE_INSN_PROLOGUE_END", ")", "Between", "the", "NOTE_INSN_BASIC_BLOCK", "and", "the", "GPR_SAVE", "insn", "we", "might", "find", "other", "notes", "of", "type", "NOTE_INSN_DELETED", "and/or", "NOTE_INSN_FUNCTION_BEG", ".", "The", "parameter", "BODY", "is", "updated", "to", "point", "to", "the", "first", "instruction", "after", "the", "NOTE_INSN_PROLOGUE_END", "or", "will", "be", "updated", "to", "NULL", "if", "the", "prologue", "end", "note", "was", "not", "found", "."], "TS_V_token": ["riscv", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "File": "riscv-sr", "Func": "riscv_sr_match_prologue", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 161, "Length": 264, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "RISCVRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "X0", ")", ";", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "X1", ")", ";", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "X2", ")", ";", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "X3", ")", ";", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "X4", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "X8", ")", ";", "assert", "(", "checkAllSuperRegsMarked", "(", "Reserved", ")", ")", ";", "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": ["RISCV", "RISCV", "RISCV::X0", "RISCV::X1", "RISCV::X2", "RISCV::X3", "RISCV::X4", "RISCV::X8"], "File": "RISCVRegisterInfo10", "Func": "getReservedRegs", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 162, "Length": 105, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVTargetLowering", "::", "computeKnownBitsForTargetNode", "(", "const", "SDValue", "Op", ",", "KnownBits", "&", "Known", ",", "const", "APInt", "&", "DemandedElts", ",", "const", "SelectionDAG", "&", "DAG", ",", "unsigned", "Depth", ")", "const", "{", "if", "(", "Op", ".", "getOpcode", "(", ")", "!=", "RISCVISD", "::", "SELECT_CC", ")", "return", ";", "KnownBits", "Known2", ";", "DAG", ".", "computeKnownBits", "(", "Op", "->", "getOperand", "(", "3", ")", ",", "Known", ",", "Depth", "+", "1", ")", ";", "DAG", ".", "computeKnownBits", "(", "Op", "->", "getOperand", "(", "4", ")", ",", "Known2", ",", "Depth", "+", "1", ")", ";", "Known", ".", "Zero", "&=", "Known2", ".", "Zero", ";", "Known", ".", "One", "&=", "Known2", ".", "One", ";", "}", ""], "natrual_language": ["Determine", "which", "of", "the", "bits", "specified", "in", "Mask", "are", "known", "to", "be", "either", "zero", "or", "one", "and", "return", "them", "in", "the", "KnownZero/KnownOne", "bitsets", "."], "TS_V_token": ["RISCV", "RISCV", "RISCVISD::SELECT_CC", "3", "1", "4", "1"], "File": "RISCVISelLowering76", "Func": "computeKnownBitsForTargetNode", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 163, "Length": 98, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getReg", "(", ")", "const", "override", "{", "assert", "(", "Kind", "==", "KindReg", "&&", "\"Not a register\"", ")", ";", "return", "Reg", ".", "Num", ";", "}", ""], "natrual_language": ["Returns", "the", "register", "associated", "with", "this", "edge", "."], "TS_V_token": ["RISCV", "\"Not a register\""], "File": "RISCVAsmParser (2)1", "Func": "getReg", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 164, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "riscv_expand_prologue", "(", "void", ")", "{", "struct", "riscv_frame_info", "*", "frame", "=", "&", "cfun", "->", "machine", "->", "frame", ";", "poly_int64", "size", "=", "frame", "->", "total_size", ";", "unsigned", "mask", "=", "frame", "->", "mask", ";", "rtx", "insn", ";", "if", "(", "flag_stack_usage_info", ")", "current_function_static_stack_size", "=", "constant_lower_bound", "(", "size", ")", ";", "if", "(", "cfun", "->", "machine", "->", "naked_p", ")", "return", ";", "if", "(", "riscv_use_save_libcall", "(", "frame", ")", ")", "{", "rtx", "dwarf", "=", "NULL_RTX", ";", "dwarf", "=", "riscv_adjust_libcall_cfi_prologue", "(", ")", ";", "size", "-=", "frame", "->", "save_libcall_adjustment", ";", "insn", "=", "emit_insn", "(", "riscv_gen_gpr_save_insn", "(", "frame", ")", ")", ";", "frame", "->", "mask", "=", "0", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "REG_NOTES", "(", "insn", ")", "=", "dwarf", ";", "}", "if", "(", "(", "frame", "->", "mask", "|", "frame", "->", "fmask", ")", "!=", "0", ")", "{", "HOST_WIDE_INT", "step1", "=", "riscv_first_stack_step", "(", "frame", ")", ";", "if", "(", "size", ".", "is_constant", "(", ")", ")", "step1", "=", "MIN", "(", "size", ".", "to_constant", "(", ")", ",", "step1", ")", ";", "insn", "=", "gen_add3_insn", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "-", "step1", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "emit_insn", "(", "insn", ")", ")", "=", "1", ";", "size", "-=", "step1", ";", "riscv_for_each_saved_reg", "(", "size", ",", "riscv_save_reg", ",", "false", ",", "false", ")", ";", "}", "frame", "->", "mask", "=", "mask", ";", "if", "(", "frame_pointer_needed", ")", "{", "insn", "=", "gen_add3_insn", "(", "hard_frame_pointer_rtx", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "(", "frame", "->", "hard_frame_pointer_offset", "-", "size", ")", ".", "to_constant", "(", ")", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "emit_insn", "(", "insn", ")", ")", "=", "1", ";", "riscv_emit_stack_tie", "(", ")", ";", "}", "if", "(", "known_gt", "(", "size", ",", "0", ")", ")", "{", "poly_int64", "scalable_frame", "(", "0", ",", "0", ")", ";", "if", "(", "!", "size", ".", "is_constant", "(", ")", ")", "{", "poly_int64", "scalable_frame", "=", "size", ";", "scalable_frame", ".", "coeffs", "[", "0", "]", "=", "size", ".", "coeffs", "[", "1", "]", ";", "riscv_v_adjust_scalable_frame", "(", "stack_pointer_rtx", ",", "scalable_frame", ",", "false", ")", ";", "size", "-=", "scalable_frame", ";", "}", "HOST_WIDE_INT", "constant_frame", "=", "size", ".", "to_constant", "(", ")", ";", "if", "(", "constant_frame", "==", "0", ")", "return", ";", "if", "(", "SMALL_OPERAND", "(", "-", "constant_frame", ")", ")", "{", "insn", "=", "gen_add3_insn", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "-", "constant_frame", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "emit_insn", "(", "insn", ")", ")", "=", "1", ";", "}", "else", "{", "riscv_emit_move", "(", "RISCV_PROLOGUE_TEMP", "(", "Pmode", ")", ",", "GEN_INT", "(", "-", "constant_frame", ")", ")", ";", "emit_insn", "(", "gen_add3_insn", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "RISCV_PROLOGUE_TEMP", "(", "Pmode", ")", ")", ")", ";", "insn", "=", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "-", "constant_frame", ")", ";", "insn", "=", "gen_rtx_SET", "(", "stack_pointer_rtx", ",", "insn", ")", ";", "riscv_set_frame_expr", "(", "insn", ")", ";", "}", "}", "}", ""], "natrual_language": ["Expand", "the", "``", "prologue", "''", "pattern", "."], "TS_V_token": ["riscv", "0", "1", "0", "1", "1", "0", "0", "0", "0", "1", "0", "1"], "File": "riscv1", "Func": "riscv_expand_prologue", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 165, "Length": 420, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVAsmPrinter", "::", "PrintAsmOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNo", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "OS", ")", "{", "if", "(", "!", "AsmPrinter", "::", "PrintAsmOperand", "(", "MI", ",", "OpNo", ",", "ExtraCode", ",", "OS", ")", ")", "return", "false", ";", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "if", "(", "ExtraCode", "&&", "ExtraCode", "[", "0", "]", ")", "{", "if", "(", "ExtraCode", "[", "1", "]", "!=", "0", ")", "return", "true", ";", "switch", "(", "ExtraCode", "[", "0", "]", ")", "{", "default", ":", "return", "true", ";", "case", "'z'", ":", "if", "(", "MO", ".", "isImm", "(", ")", "&&", "MO", ".", "getImm", "(", ")", "==", "0", ")", "{", "OS", "<<", "RISCVInstPrinter", "::", "getRegisterName", "(", "RISCV", "::", "X0", ")", ";", "return", "false", ";", "}", "break", ";", "case", "'i'", ":", "if", "(", "!", "MO", ".", "isReg", "(", ")", ")", "OS", "<<", "'i'", ";", "return", "false", ";", "}", "}", "switch", "(", "MO", ".", "getType", "(", ")", ")", "{", "case", "MachineOperand", "::", "MO_Immediate", ":", "OS", "<<", "MO", ".", "getImm", "(", ")", ";", "return", "false", ";", "case", "MachineOperand", "::", "MO_Register", ":", "OS", "<<", "RISCVInstPrinter", "::", "getRegisterName", "(", "MO", ".", "getReg", "(", ")", ")", ";", "return", "false", ";", "default", ":", "break", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["PrintAsmOperand", "-", "Print", "out", "an", "operand", "for", "an", "inline", "asm", "expression", "."], "TS_V_token": ["RISCV", "RISCV", "0", "1", "0", "0", "0", "RISCV", "RISCV::X0", "RISCV"], "File": "RISCVAsmPrinter19", "Func": "PrintAsmOperand", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 166, "Length": 202, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVTargetLowering", "::", "getTgtMemIntrinsic", "(", "IntrinsicInfo", "&", "Info", ",", "const", "CallInst", "&", "I", ",", "MachineFunction", "&", "MF", ",", "unsigned", "Intrinsic", ")", "const", "{", "switch", "(", "Intrinsic", ")", "{", "default", ":", "return", "false", ";", "case", "Intrinsic", "::", "riscv_masked_atomicrmw_xchg_i32", ":", "case", "Intrinsic", "::", "riscv_masked_atomicrmw_add_i32", ":", "case", "Intrinsic", "::", "riscv_masked_atomicrmw_sub_i32", ":", "case", "Intrinsic", "::", "riscv_masked_atomicrmw_nand_i32", ":", "case", "Intrinsic", "::", "riscv_masked_atomicrmw_max_i32", ":", "case", "Intrinsic", "::", "riscv_masked_atomicrmw_min_i32", ":", "case", "Intrinsic", "::", "riscv_masked_atomicrmw_umax_i32", ":", "case", "Intrinsic", "::", "riscv_masked_atomicrmw_umin_i32", ":", "PointerType", "*", "PtrTy", "=", "cast", "<", "PointerType", ">", "(", "I", ".", "getArgOperand", "(", "0", ")", "->", "getType", "(", ")", ")", ";", "Info", ".", "opc", "=", "ISD", "::", "INTRINSIC_W_CHAIN", ";", "Info", ".", "memVT", "=", "MVT", "::", "getVT", "(", "PtrTy", "->", "getElementType", "(", ")", ")", ";", "Info", ".", "ptrVal", "=", "I", ".", "getArgOperand", "(", "0", ")", ";", "Info", ".", "offset", "=", "0", ";", "Info", ".", "align", "=", "4", ";", "Info", ".", "flags", "=", "MachineMemOperand", "::", "MOLoad", "|", "MachineMemOperand", "::", "MOStore", "|", "MachineMemOperand", "::", "MOVolatile", ";", "return", "true", ";", "}", "}", ""], "natrual_language": ["Given", "an", "intrinsic", ",", "checks", "if", "on", "the", "target", "the", "intrinsic", "will", "need", "to", "map", "to", "a", "MemIntrinsicNode", "(", "touches", "memory", ")", "."], "TS_V_token": ["RISCV", "RISCV", "Intrinsic::riscv_masked_atomicrmw_xchg_i32", "Intrinsic::riscv_masked_atomicrmw_add_i32", "Intrinsic::riscv_masked_atomicrmw_sub_i32", "Intrinsic::riscv_masked_atomicrmw_nand_i32", "Intrinsic::riscv_masked_atomicrmw_max_i32", "Intrinsic::riscv_masked_atomicrmw_min_i32", "Intrinsic::riscv_masked_atomicrmw_umax_i32", "Intrinsic::riscv_masked_atomicrmw_umin_i32", "0", "ISD::INTRINSIC_W_CHAIN", "MVT::getVT", "0", "0", "4"], "File": "RISCVISelLowering25", "Func": "getTgtMemIntrinsic", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 167, "Length": 161, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "riscv_vector", "::", "vlmul_type", "get_vlmul", "(", ")", "const", "{", "return", "m_vlmul", ";", "}", ""], "natrual_language": ["Helper", "function", "to", "get", "VLMUL", "operand", ".", "We", "always", "have", "VLMUL", "value", "for", "all", "RVV", "instructions", "that", "have", "VTYPE", "OP", "."], "TS_V_token": ["riscv", "riscv_vector::vlmul_type"], "File": "riscv-vsetvl", "Func": "get_vlmul", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 168, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "riscv_emit_int_order_test", "(", "enum", "rtx_code", "code", ",", "bool", "*", "invert_ptr", ",", "rtx", "target", ",", "rtx", "cmp0", ",", "rtx", "cmp1", ")", "{", "enum", "machine_mode", "mode", ";", "mode", "=", "GET_MODE", "(", "cmp0", ")", ";", "if", "(", "riscv_canonicalize_int_order_test", "(", "&", "code", ",", "&", "cmp1", ",", "mode", ")", ")", "riscv_emit_binary", "(", "code", ",", "target", ",", "cmp0", ",", "cmp1", ")", ";", "else", "{", "enum", "rtx_code", "inv_code", "=", "reverse_condition", "(", "code", ")", ";", "if", "(", "!", "riscv_canonicalize_int_order_test", "(", "&", "inv_code", ",", "&", "cmp1", ",", "mode", ")", ")", "{", "cmp1", "=", "force_reg", "(", "mode", ",", "cmp1", ")", ";", "riscv_emit_int_order_test", "(", "code", ",", "invert_ptr", ",", "target", ",", "cmp0", ",", "cmp1", ")", ";", "}", "else", "if", "(", "invert_ptr", "==", "0", ")", "{", "rtx", "inv_target", "=", "riscv_force_binary", "(", "GET_MODE", "(", "target", ")", ",", "inv_code", ",", "cmp0", ",", "cmp1", ")", ";", "riscv_emit_binary", "(", "XOR", ",", "target", ",", "inv_target", ",", "const1_rtx", ")", ";", "}", "else", "{", "*", "invert_ptr", "=", "!", "*", "invert_ptr", ";", "riscv_emit_binary", "(", "inv_code", ",", "target", ",", "cmp0", ",", "cmp1", ")", ";", "}", "}", "}", ""], "natrual_language": ["Compare", "CMP0", "and", "CMP1", "using", "ordering", "test", "CODE", "and", "store", "the", "result", "in", "TARGET", ".", "CMP0", "and", "TARGET", "are", "register_operands", ".", "If", "INVERT_PTR", "is", "nonnull", ",", "it", "'s", "OK", "to", "set", "TARGET", "to", "the", "inverse", "of", "the", "result", "and", "flip", "*", "INVERT_PTR", "instead", "."], "TS_V_token": ["riscv", "0"], "File": "riscv2", "Func": "riscv_emit_int_order_test", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 169, "Length": 166, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVTargetLowering", "::", "getTgtMemIntrinsic", "(", "IntrinsicInfo", "&", "Info", ",", "const", "CallInst", "&", "I", ",", "MachineFunction", "&", "MF", ",", "unsigned", "Intrinsic", ")", "const", "{", "switch", "(", "Intrinsic", ")", "{", "default", ":", "return", "false", ";", "case", "Intrinsic", "::", "riscv_masked_atomicrmw_xchg_i32", ":", "case", "Intrinsic", "::", "riscv_masked_atomicrmw_add_i32", ":", "case", "Intrinsic", "::", "riscv_masked_atomicrmw_sub_i32", ":", "case", "Intrinsic", "::", "riscv_masked_atomicrmw_nand_i32", ":", "case", "Intrinsic", "::", "riscv_masked_atomicrmw_max_i32", ":", "case", "Intrinsic", "::", "riscv_masked_atomicrmw_min_i32", ":", "case", "Intrinsic", "::", "riscv_masked_atomicrmw_umax_i32", ":", "case", "Intrinsic", "::", "riscv_masked_atomicrmw_umin_i32", ":", "case", "Intrinsic", "::", "riscv_masked_cmpxchg_i32", ":", "PointerType", "*", "PtrTy", "=", "cast", "<", "PointerType", ">", "(", "I", ".", "getArgOperand", "(", "0", ")", "->", "getType", "(", ")", ")", ";", "Info", ".", "opc", "=", "ISD", "::", "INTRINSIC_W_CHAIN", ";", "Info", ".", "memVT", "=", "MVT", "::", "getVT", "(", "PtrTy", "->", "getElementType", "(", ")", ")", ";", "Info", ".", "ptrVal", "=", "I", ".", "getArgOperand", "(", "0", ")", ";", "Info", ".", "offset", "=", "0", ";", "Info", ".", "align", "=", "Align", "(", "4", ")", ";", "Info", ".", "flags", "=", "MachineMemOperand", "::", "MOLoad", "|", "MachineMemOperand", "::", "MOStore", "|", "MachineMemOperand", "::", "MOVolatile", ";", "return", "true", ";", "}", "}", ""], "natrual_language": ["Given", "an", "intrinsic", ",", "checks", "if", "on", "the", "target", "the", "intrinsic", "will", "need", "to", "map", "to", "a", "MemIntrinsicNode", "(", "touches", "memory", ")", "."], "TS_V_token": ["RISCV", "RISCV", "Intrinsic::riscv_masked_atomicrmw_xchg_i32", "Intrinsic::riscv_masked_atomicrmw_add_i32", "Intrinsic::riscv_masked_atomicrmw_sub_i32", "Intrinsic::riscv_masked_atomicrmw_nand_i32", "Intrinsic::riscv_masked_atomicrmw_max_i32", "Intrinsic::riscv_masked_atomicrmw_min_i32", "Intrinsic::riscv_masked_atomicrmw_umax_i32", "Intrinsic::riscv_masked_atomicrmw_umin_i32", "Intrinsic::riscv_masked_cmpxchg_i32", "0", "ISD::INTRINSIC_W_CHAIN", "MVT::getVT", "0", "0", "4"], "File": "RISCVISelLowering11", "Func": "getTgtMemIntrinsic", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 170, "Length": 169, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "scalar_move_insn_p", "(", "rtx_insn", "*", "rinsn", ")", "{", "return", "get_attr_type", "(", "rinsn", ")", "==", "TYPE_VIMOVXV", "||", "get_attr_type", "(", "rinsn", ")", "==", "TYPE_VFMOVFV", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "instruction", "is", "scalar", "move", "instruction", "."], "TS_V_token": ["riscv"], "File": "riscv-vsetvl", "Func": "scalar_move_insn_p", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 171, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVAsmBackend", "::", "writeNopData", "(", "raw_ostream", "&", "OS", ",", "uint64_t", "Count", ")", "const", "{", "bool", "HasStdExtC", "=", "STI", ".", "getFeatureBits", "(", ")", "[", "RISCV", "::", "FeatureStdExtC", "]", ";", "unsigned", "MinNopLen", "=", "HasStdExtC", "?", "2", ":", "4", ";", "if", "(", "(", "Count", "%", "MinNopLen", ")", "!=", "0", ")", "return", "false", ";", "uint64_t", "Nop32Count", "=", "Count", "/", "4", ";", "for", "(", "uint64_t", "i", "=", "Nop32Count", ";", "i", "!=", "0", ";", "--", "i", ")", "OS", ".", "write", "(", "\"\\x13\\0\\0\\0\"", ",", "4", ")", ";", "if", "(", "HasStdExtC", ")", "{", "uint64_t", "Nop16Count", "=", "(", "Count", "-", "Nop32Count", "*", "4", ")", "/", "2", ";", "for", "(", "uint64_t", "i", "=", "Nop16Count", ";", "i", "!=", "0", ";", "--", "i", ")", "OS", ".", "write", "(", "\"\\x01\\0\"", ",", "2", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Write", "an", "(", "optimal", ")", "nop", "sequence", "of", "Count", "bytes", "to", "the", "given", "output", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV::FeatureStdExtC", "2", "4", "0", "4", "0", "\"\\x13\\0\\0\\0\"", "4", "4", "2", "0", "\"\\x01\\0\"", "2"], "File": "RISCVAsmBackend", "Func": "writeNopData", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 172, "Length": 126, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVPassConfig", "::", "addInstSelector", "(", ")", "{", "addPass", "(", "createRISCVISelDag", "(", "getRISCVTargetMachine", "(", ")", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["addInstSelector", "-", "This", "method", "should", "install", "an", "instruction", "selector", "pass", ",", "which", "converts", "from", "LLVM", "code", "to", "machine", "instructions", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV", "RISCV"], "File": "RISCVTargetMachine", "Func": "addInstSelector", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 173, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVPassConfig", "::", "addIRTranslator", "(", ")", "{", "addPass", "(", "new", "IRTranslator", "(", "getOptLevel", "(", ")", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["This", "method", "should", "install", "an", "IR", "translator", "pass", ",", "which", "converts", "from", "LLVM", "code", "to", "machine", "instructions", "with", "possibly", "generic", "opcodes", "."], "TS_V_token": ["RISCV", "RISCV"], "File": "RISCVTargetMachine1", "Func": "addIRTranslator", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 174, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "requiresFrameIndexScavenging", "(", "const", "MachineFunction", "&", "MF", ")", "const", "override", "{", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "requires", "post", "PEI", "scavenging", "of", "registers", "for", "materializing", "frame", "index", "constants", "."], "TS_V_token": ["RISCV"], "File": "RISCVRegisterInfo (2)", "Func": "requiresFrameIndexScavenging", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 175, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "shouldInsertFencesForAtomic", "(", "const", "Instruction", "*", "I", ")", "const", "override", "{", "return", "isa", "<", "LoadInst", ">", "(", "I", ")", "||", "isa", "<", "StoreInst", ">", "(", "I", ")", ";", "}", ""], "natrual_language": ["Helper", "functions", "for", "atomic", "operations", "."], "TS_V_token": ["RISCV"], "File": "RISCVISelLowering", "Func": "shouldInsertFencesForAtomic", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 176, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "RISCV_EXPAND_ATOMIC_PSEUDO_NAME", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["RISCV", "RISCV"], "File": "RISCVExpandAtomicPseudoInsts", "Func": "getPassName", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 177, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "*", "RISCVTargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MachineInstr", "&", "MI", ",", "MachineBasicBlock", "*", "BB", ")", "const", "{", "const", "TargetInstrInfo", "*", "TII", "=", "BB", "->", "getParent", "(", ")", "->", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "BB", "->", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "if", "(", "const", "RISCVVectorPseudosTable", "::", "RISCVVectorPseudoInfo", "*", "pseudo", "=", "RISCVVectorPseudosTable", "::", "getRISCVVectorPseudoInfo", "(", "MI", ".", "getOpcode", "(", ")", ")", ")", "{", "int", "Sew", "=", "MI", ".", "getOperand", "(", "pseudo", "->", "SEWIndex", ")", ".", "getImm", "(", ")", ";", "int", "Vlmul", "=", "pseudo", "->", "VLMul", ";", "unsigned", "vtypei", "=", "0", ";", "switch", "(", "Sew", ")", "{", "case", "8", ":", "vtypei", "|=", "RISCVVectorSEW", "::", "SEW8", ";", "break", ";", "case", "16", ":", "vtypei", "|=", "RISCVVectorSEW", "::", "SEW16", ";", "break", ";", "case", "32", ":", "vtypei", "|=", "RISCVVectorSEW", "::", "SEW32", ";", "break", ";", "case", "64", ":", "vtypei", "|=", "RISCVVectorSEW", "::", "SEW64", ";", "break", ";", "default", ":", "llvm_unreachable", "(", "\"unknown sew value\"", ")", ";", "}", "switch", "(", "Vlmul", ")", "{", "case", "1", ":", "vtypei", "|=", "RISCVVectorLMUL", "::", "M1", ";", "break", ";", "case", "2", ":", "vtypei", "|=", "RISCVVectorLMUL", "::", "M2", ";", "break", ";", "case", "4", ":", "vtypei", "|=", "RISCVVectorLMUL", "::", "M4", ";", "break", ";", "case", "8", ":", "vtypei", "|=", "RISCVVectorLMUL", "::", "M8", ";", "break", ";", "case", "9", ":", "vtypei", "|=", "RISCVVectorLMUL", "::", "MF2", ";", "break", ";", "case", "10", ":", "vtypei", "|=", "RISCVVectorLMUL", "::", "MF4", ";", "break", ";", "case", "11", ":", "vtypei", "|=", "RISCVVectorLMUL", "::", "MF8", ";", "break", ";", "default", ":", "llvm_unreachable", "(", "\"unknown vlmul value!\"", ")", ";", "}", "BuildMI", "(", "*", "BB", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "RISCV", "::", "VSETVLI", ")", ",", "RISCV", "::", "X0", ")", ".", "addReg", "(", "RISCV", "::", "X0", ")", ".", "addImm", "(", "vtypei", ")", ";", "return", "BB", ";", "}", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unexpected instr type to insert\"", ")", ";", "case", "RISCV", "::", "ReadCycleWide", ":", "assert", "(", "!", "Subtarget", ".", "is64Bit", "(", ")", "&&", "\"ReadCycleWrite is only to be used on riscv32\"", ")", ";", "return", "emitReadCycleWidePseudo", "(", "MI", ",", "BB", ")", ";", "case", "RISCV", "::", "Select_GPR_Using_CC_GPR", ":", "case", "RISCV", "::", "Select_FPR32_Using_CC_GPR", ":", "case", "RISCV", "::", "Select_FPR64_Using_CC_GPR", ":", "return", "emitSelectPseudo", "(", "MI", ",", "BB", ")", ";", "case", "RISCV", "::", "BuildPairF64Pseudo", ":", "return", "emitBuildPairF64Pseudo", "(", "MI", ",", "BB", ")", ";", "case", "RISCV", "::", "SplitF64Pseudo", ":", "return", "emitSplitF64Pseudo", "(", "MI", ",", "BB", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'usesCustomInserter", "'", "flag", "."], "TS_V_token": ["RISCV", "RISCV", "RISCVVectorPseudosTable::RISCVVectorPseudoInfo", "RISCVVectorPseudosTable::getRISCVVectorPseudoInfo", "0", "8", "RISCVVectorSEW::SEW8", "16", "RISCVVectorSEW::SEW16", "32", "RISCVVectorSEW::SEW32", "64", "RISCVVectorSEW::SEW64", "\"unknown sew value\"", "1", "RISCVVectorLMUL::M1", "2", "RISCVVectorLMUL::M2", "4", "RISCVVectorLMUL::M4", "8", "RISCVVectorLMUL::M8", "9", "RISCVVectorLMUL::MF2", "10", "RISCVVectorLMUL::MF4", "11", "RISCVVectorLMUL::MF8", "\"unknown vlmul value!\"", "RISCV::VSETVLI", "RISCV::X0", "RISCV::X0", "\"Unexpected instr type to insert\"", "RISCV::ReadCycleWide", "\"ReadCycleWrite is only to be used on riscv32\"", "RISCV::Select_GPR_Using_CC_GPR", "RISCV::Select_FPR32_Using_CC_GPR", "RISCV::Select_FPR64_Using_CC_GPR", "RISCV::BuildPairF64Pseudo", "RISCV::SplitF64Pseudo"], "File": "RISCVISelLowering41", "Func": "EmitInstrWithCustomInserter", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 178, "Length": 380, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isLegalMaskedGather", "(", "Type", "*", "DataType", ",", "Align", "Alignment", ")", "{", "return", "isLegalMaskedGatherScatter", "(", "DataType", ",", "Alignment", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "supports", "masked", "gather", "."], "TS_V_token": ["RISCV"], "File": "RISCVTargetTransformInfo10", "Func": "isLegalMaskedGather", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 179, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "riscv_int_order_operand_ok_p", "(", "enum", "rtx_code", "code", ",", "rtx", "cmp1", ")", "{", "switch", "(", "code", ")", "{", "case", "GT", ":", "case", "GTU", ":", "return", "reg_or_0_operand", "(", "cmp1", ",", "VOIDmode", ")", ";", "case", "GE", ":", "case", "GEU", ":", "return", "cmp1", "==", "const1_rtx", ";", "case", "LT", ":", "case", "LTU", ":", "return", "arith_operand", "(", "cmp1", ",", "VOIDmode", ")", ";", "case", "LE", ":", "return", "sle_operand", "(", "cmp1", ",", "VOIDmode", ")", ";", "case", "LEU", ":", "return", "sleu_operand", "(", "cmp1", ",", "VOIDmode", ")", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Return", "true", "if", "CMP1", "is", "a", "suitable", "second", "operand", "for", "integer", "ordering", "test", "CODE", ".", "See", "also", "the", "*", "sCC", "patterns", "in", "riscv.md", "."], "TS_V_token": ["riscv"], "File": "riscv", "Func": "riscv_int_order_operand_ok_p", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 180, "Length": 86, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "fixupNeedsRelaxation", "(", "const", "MCFixup", "&", "Fixup", ",", "uint64_t", "Value", ",", "const", "MCRelaxableFragment", "*", "DF", ",", "const", "MCAsmLayout", "&", "Layout", ")", "const", "override", "{", "return", "false", ";", "}", ""], "natrual_language": ["Simple", "predicate", "for", "targets", "where", "!", "Resolved", "implies", "requiring", "relaxation", "."], "TS_V_token": ["RISCV"], "File": "RISCVAsmBackend10", "Func": "fixupNeedsRelaxation", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 181, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVPassConfig", "::", "addGlobalInstructionSelect", "(", ")", "{", "addPass", "(", "new", "InstructionSelect", "(", "getOptLevel", "(", ")", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["This", "method", "should", "install", "a", "(", "global", ")", "instruction", "selector", "pass", ",", "which", "converts", "possibly", "generic", "instructions", "to", "fully", "target-specific", "instructions", ",", "thereby", "constraining", "all", "generic", "virtual", "registers", "to", "register", "classes", "."], "TS_V_token": ["RISCV", "RISCV"], "File": "RISCVTargetMachine1", "Func": "addGlobalInstructionSelect", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 182, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "th_mempair_restore_regs", "(", "rtx", "operands", "[", "4", "]", ")", "{", "rtx", "set1", "=", "gen_rtx_SET", "(", "operands", "[", "0", "]", ",", "operands", "[", "1", "]", ")", ";", "rtx", "set2", "=", "gen_rtx_SET", "(", "operands", "[", "2", "]", ",", "operands", "[", "3", "]", ")", ";", "rtx", "insn", "=", "emit_insn", "(", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "gen_rtvec", "(", "2", ",", "set1", ",", "set2", ")", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_RESTORE", ",", "operands", "[", "0", "]", ")", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_RESTORE", ",", "operands", "[", "2", "]", ")", ";", "}", ""], "natrual_language": ["Similar", "like", "riscv_restore_reg", ",", "but", "restores", "two", "registers", "from", "memory", "and", "marks", "the", "instruction", "frame-related", "."], "TS_V_token": ["riscv", "4", "0", "1", "2", "3", "2", "1", "0", "2"], "File": "thead", "Func": "th_mempair_restore_regs", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 183, "Length": 95, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "th_mempair_output_move", "(", "rtx", "operands", "[", "4", "]", ",", "bool", "load_p", ",", "machine_mode", "mode", ",", "RTX_CODE", "code", ")", "{", "rtx", "reg1", ",", "reg2", ",", "mem1", ",", "mem2", ",", "base1", ",", "base2", ";", "HOST_WIDE_INT", "offset1", ",", "offset2", ";", "rtx", "output_operands", "[", "5", "]", ";", "const", "char", "*", "format", ";", "gcc_assert", "(", "mode", "==", "SImode", "||", "mode", "==", "DImode", ")", ";", "unsigned", "shamt", "=", "(", "mode", "==", "DImode", ")", "?", "4", ":", "3", ";", "if", "(", "load_p", ")", "{", "reg1", "=", "copy_rtx", "(", "operands", "[", "0", "]", ")", ";", "reg2", "=", "copy_rtx", "(", "operands", "[", "2", "]", ")", ";", "mem1", "=", "copy_rtx", "(", "operands", "[", "1", "]", ")", ";", "mem2", "=", "copy_rtx", "(", "operands", "[", "3", "]", ")", ";", "if", "(", "mode", "==", "SImode", ")", "if", "(", "code", "==", "ZERO_EXTEND", ")", "format", "=", "\"th.lwud\\t%0, %1, (%2), %3, %4\"", ";", "else", "format", "=", "\"th.lwd\\t%0, %1, (%2), %3, %4\"", ";", "else", "format", "=", "\"th.ldd\\t%0, %1, (%2), %3, %4\"", ";", "}", "else", "{", "reg1", "=", "copy_rtx", "(", "operands", "[", "1", "]", ")", ";", "reg2", "=", "copy_rtx", "(", "operands", "[", "3", "]", ")", ";", "mem1", "=", "copy_rtx", "(", "operands", "[", "0", "]", ")", ";", "mem2", "=", "copy_rtx", "(", "operands", "[", "2", "]", ")", ";", "if", "(", "mode", "==", "SImode", ")", "format", "=", "\"th.swd\\t%z0, %z1, (%2), %3, %4\"", ";", "else", "format", "=", "\"th.sdd\\t%z0, %z1, (%2), %3, %4\"", ";", "}", "split_plus", "(", "XEXP", "(", "mem1", ",", "0", ")", ",", "&", "base1", ",", "&", "offset1", ")", ";", "split_plus", "(", "XEXP", "(", "mem2", ",", "0", ")", ",", "&", "base2", ",", "&", "offset2", ")", ";", "gcc_assert", "(", "rtx_equal_p", "(", "base1", ",", "base2", ")", ")", ";", "auto", "size1", "=", "MEM_SIZE", "(", "mem1", ")", ";", "auto", "size2", "=", "MEM_SIZE", "(", "mem2", ")", ";", "gcc_assert", "(", "known_eq", "(", "size1", ",", "size2", ")", ")", ";", "gcc_assert", "(", "known_eq", "(", "offset1", "+", "size1", ",", "offset2", ")", ")", ";", "HOST_WIDE_INT", "imm2", "=", "offset1", ">>", "shamt", ";", "gcc_assert", "(", "imm2", ">=", "0", "&&", "imm2", "<", "4", ")", ";", "gcc_assert", "(", "(", "imm2", "<<", "shamt", ")", "==", "offset1", ")", ";", "gcc_assert", "(", "REG_P", "(", "reg1", ")", ")", ";", "gcc_assert", "(", "REG_P", "(", "reg2", ")", ")", ";", "gcc_assert", "(", "REG_P", "(", "base1", ")", ")", ";", "if", "(", "load_p", ")", "{", "gcc_assert", "(", "REGNO", "(", "reg1", ")", "!=", "REGNO", "(", "reg2", ")", ")", ";", "gcc_assert", "(", "REGNO", "(", "reg1", ")", "!=", "REGNO", "(", "base1", ")", ")", ";", "gcc_assert", "(", "REGNO", "(", "reg2", ")", "!=", "REGNO", "(", "base1", ")", ")", ";", "}", "output_operands", "[", "0", "]", "=", "copy_rtx", "(", "reg1", ")", ";", "output_operands", "[", "1", "]", "=", "copy_rtx", "(", "reg2", ")", ";", "output_operands", "[", "2", "]", "=", "copy_rtx", "(", "base1", ")", ";", "output_operands", "[", "3", "]", "=", "gen_rtx_CONST_INT", "(", "mode", ",", "imm2", ")", ";", "output_operands", "[", "4", "]", "=", "gen_rtx_CONST_INT", "(", "mode", ",", "shamt", ")", ";", "output_asm_insn", "(", "format", ",", "output_operands", ")", ";", "return", "\"\"", ";", "}", ""], "natrual_language": ["Output", "a", "mempair", "instruction", "with", "the", "provided", "OPERANDS", ".", "LOAD_P", "is", "true", "if", "a", "we", "have", "a", "pair", "of", "loads", "(", "stores", "otherwise", ")", ".", "MODE", "is", "the", "access", "mode", "(", "DI", "or", "SI", ")", ".", "CODE", "is", "the", "extension", "code", "(", "UNKNOWN", ",", "SIGN_EXTEND", "or", "ZERO_EXTEND", ")", ".", "This", "instruction", "does", "not", "handle", "invalid", "inputs", "gracefully", ",", "but", "is", "full", "of", "assertions", "to", "ensure", "that", "only", "valid", "instructions", "are", "emitted", "."], "TS_V_token": ["riscv", "4", "5", "4", "3", "0", "2", "1", "3", "\"th.lwud\\t%0, %1, (%2), %3, %4\"", "\"th.lwd\\t%0, %1, (%2), %3, %4\"", "\"th.ldd\\t%0, %1, (%2), %3, %4\"", "1", "3", "0", "2", "\"th.swd\\t%z0, %z1, (%2), %3, %4\"", "\"th.sdd\\t%z0, %z1, (%2), %3, %4\"", "0", "0", "0", "4", "0", "1", "2", "3", "4", "\"\""], "File": "thead", "Func": "th_mempair_output_move", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 184, "Length": 447, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "dump", "(", ")", "{", "errs", "(", ")", "<<", "\"RISCVAddressingMode \"", "<<", "this", "<<", "'\\n'", ";", "errs", "(", ")", "<<", "\" Base \"", ";", "if", "(", "Base", ".", "getNode", "(", ")", "!=", "0", ")", "Base", ".", "getNode", "(", ")", "->", "dump", "(", ")", ";", "else", "errs", "(", ")", "<<", "\"null\\n\"", ";", "errs", "(", ")", "<<", "\" Offset \"", "<<", "Offset", ";", "}", ""], "natrual_language": ["Dump", "the", "plan", "to", "stderr", "(", "for", "debugging", ")", "."], "TS_V_token": ["RISCV", "\"RISCVAddressingMode \"", "\" Base \"", "0", "\"null\\n\"", "\" Offset \""], "File": "RISCVISelDAGToDAG (2)", "Func": "dump", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 185, "Length": 57, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "addExpr", "(", "MCInst", "&", "Inst", ",", "const", "MCExpr", "*", "Expr", ")", "const", "{", "assert", "(", "Expr", "&&", "\"Expr shouldn't be null!\"", ")", ";", "int64_t", "Imm", "=", "0", ";", "RISCVMCExpr", "::", "VariantKind", "VK", ";", "bool", "IsConstant", "=", "evaluateConstantImm", "(", "Expr", ",", "Imm", ",", "VK", ")", ";", "if", "(", "IsConstant", ")", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "Imm", ")", ")", ";", "else", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createExpr", "(", "Expr", ")", ")", ";", "}", ""], "natrual_language": ["Add", "a", "new", "MCExpr", "operand", "."], "TS_V_token": ["RISCV", "\"Expr shouldn't be null!\"", "0", "RISCV"], "File": "RISCVAsmParser", "Func": "addExpr", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 186, "Length": 73, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVMCExpr", "::", "evaluateAsConstant", "(", "int64_t", "&", "Res", ")", "const", "{", "MCValue", "Value", ";", "if", "(", "Kind", "==", "VK_RISCV_PCREL_HI", "||", "Kind", "==", "VK_RISCV_PCREL_LO", "||", "Kind", "==", "VK_RISCV_CALL", ")", "return", "false", ";", "if", "(", "!", "getSubExpr", "(", ")", "->", "evaluateAsRelocatable", "(", "Value", ",", "nullptr", ",", "nullptr", ")", ")", "return", "false", ";", "if", "(", "!", "Value", ".", "isAbsolute", "(", ")", ")", "return", "false", ";", "Res", "=", "evaluateAsInt64", "(", "Value", ".", "getConstant", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Evaluates", "the", "fixup", "as", "a", "constant", "value", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV", "RISCV", "RISCV"], "File": "RISCVMCExpr (2)", "Func": "evaluateAsConstant", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 187, "Length": 77, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "*", "RISCVTargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MachineInstr", "&", "MI", ",", "MachineBasicBlock", "*", "BB", ")", "const", "{", "uint64_t", "TSFlags", "=", "MI", ".", "getDesc", "(", ")", ".", "TSFlags", ";", "if", "(", "RISCVII", "::", "hasSEWOp", "(", "TSFlags", ")", ")", "{", "unsigned", "NumOperands", "=", "MI", ".", "getNumExplicitOperands", "(", ")", ";", "int", "VLIndex", "=", "RISCVII", "::", "hasVLOp", "(", "TSFlags", ")", "?", "NumOperands", "-", "2", ":", "-", "1", ";", "unsigned", "SEWIndex", "=", "NumOperands", "-", "1", ";", "bool", "ForceTailAgnostic", "=", "RISCVII", "::", "doesForceTailAgnostic", "(", "TSFlags", ")", ";", "RISCVII", "::", "VLMUL", "VLMul", "=", "RISCVII", "::", "getLMul", "(", "TSFlags", ")", ";", "return", "addVSetVL", "(", "MI", ",", "BB", ",", "VLIndex", ",", "SEWIndex", ",", "VLMul", ",", "ForceTailAgnostic", ")", ";", "}", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unexpected instr type to insert\"", ")", ";", "case", "RISCV", "::", "ReadCycleWide", ":", "assert", "(", "!", "Subtarget", ".", "is64Bit", "(", ")", "&&", "\"ReadCycleWrite is only to be used on riscv32\"", ")", ";", "return", "emitReadCycleWidePseudo", "(", "MI", ",", "BB", ")", ";", "case", "RISCV", "::", "Select_GPR_Using_CC_GPR", ":", "case", "RISCV", "::", "Select_FPR16_Using_CC_GPR", ":", "case", "RISCV", "::", "Select_FPR32_Using_CC_GPR", ":", "case", "RISCV", "::", "Select_FPR64_Using_CC_GPR", ":", "return", "emitSelectPseudo", "(", "MI", ",", "BB", ")", ";", "case", "RISCV", "::", "BuildPairF64Pseudo", ":", "return", "emitBuildPairF64Pseudo", "(", "MI", ",", "BB", ")", ";", "case", "RISCV", "::", "SplitF64Pseudo", ":", "return", "emitSplitF64Pseudo", "(", "MI", ",", "BB", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'usesCustomInserter", "'", "flag", "."], "TS_V_token": ["RISCV", "RISCV", "RISCVII::hasSEWOp", "RISCVII::hasVLOp", "2", "1", "1", "RISCVII::doesForceTailAgnostic", "RISCVII::VLMUL", "RISCVII::getLMul", "\"Unexpected instr type to insert\"", "RISCV::ReadCycleWide", "\"ReadCycleWrite is only to be used on riscv32\"", "RISCV::Select_GPR_Using_CC_GPR", "RISCV::Select_FPR16_Using_CC_GPR", "RISCV::Select_FPR32_Using_CC_GPR", "RISCV::Select_FPR64_Using_CC_GPR", "RISCV::BuildPairF64Pseudo", "RISCV::SplitF64Pseudo"], "File": "RISCVISelLowering57", "Func": "EmitInstrWithCustomInserter", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 188, "Length": 206, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "HOST_WIDE_INT", "riscv_first_stack_step", "(", "struct", "riscv_frame_info", "*", "frame", ")", "{", "HOST_WIDE_INT", "frame_total_constant_size", ";", "if", "(", "!", "frame", "->", "total_size", ".", "is_constant", "(", ")", ")", "frame_total_constant_size", "=", "riscv_stack_align", "(", "frame", "->", "total_size", ".", "coeffs", "[", "0", "]", ")", "-", "riscv_stack_align", "(", "frame", "->", "total_size", ".", "coeffs", "[", "1", "]", ")", ";", "else", "frame_total_constant_size", "=", "frame", "->", "total_size", ".", "to_constant", "(", ")", ";", "if", "(", "SMALL_OPERAND", "(", "frame_total_constant_size", ")", ")", "return", "frame_total_constant_size", ";", "HOST_WIDE_INT", "min_first_step", "=", "RISCV_STACK_ALIGN", "(", "(", "frame", "->", "total_size", "-", "frame", "->", "frame_pointer_offset", ")", ".", "to_constant", "(", ")", ")", ";", "HOST_WIDE_INT", "max_first_step", "=", "IMM_REACH", "/", "2", "-", "PREFERRED_STACK_BOUNDARY", "/", "8", ";", "HOST_WIDE_INT", "min_second_step", "=", "frame_total_constant_size", "-", "max_first_step", ";", "gcc_assert", "(", "min_first_step", "<=", "max_first_step", ")", ";", "if", "(", "!", "SMALL_OPERAND", "(", "min_second_step", ")", "&&", "frame_total_constant_size", "%", "IMM_REACH", "<", "IMM_REACH", "/", "2", "&&", "frame_total_constant_size", "%", "IMM_REACH", ">=", "min_first_step", ")", "return", "frame_total_constant_size", "%", "IMM_REACH", ";", "if", "(", "TARGET_RVC", ")", "{", "if", "(", "IN_RANGE", "(", "min_second_step", ",", "0", ",", "(", "TARGET_64BIT", "?", "SDSP_REACH", ":", "SWSP_REACH", ")", ")", ")", "return", "MAX", "(", "min_second_step", ",", "min_first_step", ")", ";", "else", "if", "(", "!", "SMALL_OPERAND", "(", "min_second_step", ")", ")", "return", "min_first_step", ";", "}", "return", "max_first_step", ";", "}", ""], "natrual_language": ["For", "stack", "frames", "that", "ca", "n't", "be", "allocated", "with", "a", "single", "ADDI", "instruction", ",", "compute", "the", "best", "value", "to", "initially", "allocate", ".", "It", "must", "at", "a", "minimum", "allocate", "enough", "space", "to", "spill", "the", "callee-saved", "registers", "."], "TS_V_token": ["riscv", "0", "1", "2", "8", "2", "0"], "File": "riscv1", "Func": "riscv_first_stack_step", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 189, "Length": 190, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "*", "RISCVTargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MachineInstr", "&", "MI", ",", "MachineBasicBlock", "*", "BB", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unexpected instr type to insert\"", ")", ";", "case", "RISCV", "::", "Select_GPR_Using_CC_GPR", ":", "case", "RISCV", "::", "Select_FPR32_Using_CC_GPR", ":", "case", "RISCV", "::", "Select_FPR64_Using_CC_GPR", ":", "return", "emitSelectPseudo", "(", "MI", ",", "BB", ")", ";", "case", "RISCV", "::", "BuildPairF64Pseudo", ":", "return", "emitBuildPairF64Pseudo", "(", "MI", ",", "BB", ")", ";", "case", "RISCV", "::", "SplitF64Pseudo", ":", "return", "emitSplitF64Pseudo", "(", "MI", ",", "BB", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'usesCustomInserter", "'", "flag", "."], "TS_V_token": ["RISCV", "RISCV", "\"Unexpected instr type to insert\"", "RISCV::Select_GPR_Using_CC_GPR", "RISCV::Select_FPR32_Using_CC_GPR", "RISCV::Select_FPR64_Using_CC_GPR", "RISCV::BuildPairF64Pseudo", "RISCV::SplitF64Pseudo"], "File": "RISCVISelLowering36", "Func": "EmitInstrWithCustomInserter", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 190, "Length": 83, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "riscv_expand_prologue", "(", "void", ")", "{", "struct", "riscv_frame_info", "*", "frame", "=", "&", "cfun", "->", "machine", "->", "frame", ";", "HOST_WIDE_INT", "size", "=", "frame", "->", "total_size", ";", "unsigned", "mask", "=", "frame", "->", "mask", ";", "rtx", "insn", ";", "if", "(", "flag_stack_usage_info", ")", "current_function_static_stack_size", "=", "size", ";", "if", "(", "cfun", "->", "machine", "->", "naked_p", ")", "return", ";", "if", "(", "riscv_use_save_libcall", "(", "frame", ")", ")", "{", "rtx", "dwarf", "=", "NULL_RTX", ";", "dwarf", "=", "riscv_adjust_libcall_cfi_prologue", "(", ")", ";", "size", "-=", "frame", "->", "save_libcall_adjustment", ";", "insn", "=", "emit_insn", "(", "riscv_gen_gpr_save_insn", "(", "frame", ")", ")", ";", "frame", "->", "mask", "=", "0", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "REG_NOTES", "(", "insn", ")", "=", "dwarf", ";", "}", "if", "(", "(", "frame", "->", "mask", "|", "frame", "->", "fmask", ")", "!=", "0", ")", "{", "HOST_WIDE_INT", "step1", "=", "MIN", "(", "size", ",", "riscv_first_stack_step", "(", "frame", ")", ")", ";", "insn", "=", "gen_add3_insn", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "-", "step1", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "emit_insn", "(", "insn", ")", ")", "=", "1", ";", "size", "-=", "step1", ";", "riscv_for_each_saved_reg", "(", "size", ",", "riscv_save_reg", ",", "false", ",", "false", ")", ";", "}", "frame", "->", "mask", "=", "mask", ";", "if", "(", "frame_pointer_needed", ")", "{", "insn", "=", "gen_add3_insn", "(", "hard_frame_pointer_rtx", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "frame", "->", "hard_frame_pointer_offset", "-", "size", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "emit_insn", "(", "insn", ")", ")", "=", "1", ";", "riscv_emit_stack_tie", "(", ")", ";", "}", "if", "(", "size", ">", "0", ")", "{", "if", "(", "SMALL_OPERAND", "(", "-", "size", ")", ")", "{", "insn", "=", "gen_add3_insn", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "-", "size", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "emit_insn", "(", "insn", ")", ")", "=", "1", ";", "}", "else", "{", "riscv_emit_move", "(", "RISCV_PROLOGUE_TEMP", "(", "Pmode", ")", ",", "GEN_INT", "(", "-", "size", ")", ")", ";", "emit_insn", "(", "gen_add3_insn", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "RISCV_PROLOGUE_TEMP", "(", "Pmode", ")", ")", ")", ";", "insn", "=", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "-", "size", ")", ";", "insn", "=", "gen_rtx_SET", "(", "stack_pointer_rtx", ",", "insn", ")", ";", "riscv_set_frame_expr", "(", "insn", ")", ";", "}", "}", "}", ""], "natrual_language": ["Expand", "the", "``", "prologue", "''", "pattern", "."], "TS_V_token": ["riscv", "0", "1", "0", "1", "1", "0", "1"], "File": "riscv", "Func": "riscv_expand_prologue", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 191, "Length": 324, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "riscv_block_move_straight", "(", "rtx", "dest", ",", "rtx", "src", ",", "unsigned", "HOST_WIDE_INT", "length", ")", "{", "unsigned", "HOST_WIDE_INT", "offset", ",", "delta", ";", "unsigned", "HOST_WIDE_INT", "bits", ";", "int", "i", ";", "enum", "machine_mode", "mode", ";", "rtx", "*", "regs", ";", "bits", "=", "MAX", "(", "BITS_PER_UNIT", ",", "MIN", "(", "BITS_PER_WORD", ",", "MIN", "(", "MEM_ALIGN", "(", "src", ")", ",", "MEM_ALIGN", "(", "dest", ")", ")", ")", ")", ";", "mode", "=", "mode_for_size", "(", "bits", ",", "MODE_INT", ",", "0", ")", ".", "require", "(", ")", ";", "delta", "=", "bits", "/", "BITS_PER_UNIT", ";", "regs", "=", "XALLOCAVEC", "(", "rtx", ",", "length", "/", "delta", ")", ";", "for", "(", "offset", "=", "0", ",", "i", "=", "0", ";", "offset", "+", "delta", "<=", "length", ";", "offset", "+=", "delta", ",", "i", "++", ")", "{", "regs", "[", "i", "]", "=", "gen_reg_rtx", "(", "mode", ")", ";", "riscv_emit_move", "(", "regs", "[", "i", "]", ",", "adjust_address", "(", "src", ",", "mode", ",", "offset", ")", ")", ";", "}", "for", "(", "offset", "=", "0", ",", "i", "=", "0", ";", "offset", "+", "delta", "<=", "length", ";", "offset", "+=", "delta", ",", "i", "++", ")", "riscv_emit_move", "(", "adjust_address", "(", "dest", ",", "mode", ",", "offset", ")", ",", "regs", "[", "i", "]", ")", ";", "if", "(", "offset", "<", "length", ")", "{", "src", "=", "adjust_address", "(", "src", ",", "BLKmode", ",", "offset", ")", ";", "dest", "=", "adjust_address", "(", "dest", ",", "BLKmode", ",", "offset", ")", ";", "move_by_pieces", "(", "dest", ",", "src", ",", "length", "-", "offset", ",", "MIN", "(", "MEM_ALIGN", "(", "src", ")", ",", "MEM_ALIGN", "(", "dest", ")", ")", ",", "RETURN_BEGIN", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "straight-line", "code", "to", "move", "LENGTH", "bytes", "from", "SRC", "to", "DEST", ".", "Assume", "that", "the", "areas", "do", "not", "overlap", "."], "TS_V_token": ["riscv", "0", "0", "0", "0", "0"], "File": "riscv", "Func": "riscv_block_move_straight", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 192, "Length": 242, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "TargetRegisterClass", "*", "RISCVRegisterInfo", "::", "getPointerRegClass", "(", "const", "MachineFunction", "&", "MF", ",", "unsigned", "Kind", ")", "const", "{", "return", "&", "RISCV", "::", "GPRRegClass", ";", "}", ""], "natrual_language": ["getPointerRegClass", "-", "Returns", "a", "TargetRegisterClass", "used", "for", "pointer", "values", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV::GPRRegClass"], "File": "RISCVRegisterInfo34", "Func": "getPointerRegClass", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 193, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "RISCVTargetLowering", "::", "ComputeNumSignBitsForTargetNode", "(", "SDValue", "Op", ",", "const", "APInt", "&", "DemandedElts", ",", "const", "SelectionDAG", "&", "DAG", ",", "unsigned", "Depth", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "RISCVISD", "::", "SLLW", ":", "case", "RISCVISD", "::", "SRAW", ":", "case", "RISCVISD", "::", "SRLW", ":", "case", "RISCVISD", "::", "DIVW", ":", "case", "RISCVISD", "::", "DIVUW", ":", "case", "RISCVISD", "::", "REMUW", ":", "case", "RISCVISD", "::", "ROLW", ":", "case", "RISCVISD", "::", "RORW", ":", "case", "RISCVISD", "::", "GREVIW", ":", "case", "RISCVISD", "::", "GORCIW", ":", "case", "RISCVISD", "::", "FSLW", ":", "case", "RISCVISD", "::", "FSRW", ":", "return", "33", ";", "case", "RISCVISD", "::", "VMV_X_S", ":", "return", "Subtarget", ".", "getXLen", "(", ")", "-", "Op", ".", "getOperand", "(", "0", ")", ".", "getScalarValueSizeInBits", "(", ")", "+", "1", ";", "}", "return", "1", ";", "}", ""], "natrual_language": ["Determine", "the", "number", "of", "bits", "in", "the", "operation", "that", "are", "sign", "bits", "."], "TS_V_token": ["RISCV", "RISCV", "RISCVISD::SLLW", "RISCVISD::SRAW", "RISCVISD::SRLW", "RISCVISD::DIVW", "RISCVISD::DIVUW", "RISCVISD::REMUW", "RISCVISD::ROLW", "RISCVISD::RORW", "RISCVISD::GREVIW", "RISCVISD::GORCIW", "RISCVISD::FSLW", "RISCVISD::FSRW", "33", "RISCVISD::VMV_X_S", "0", "1", "1"], "File": "RISCVISelLowering7", "Func": "ComputeNumSignBitsForTargetNode", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 194, "Length": 129, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVInstrInfo", "::", "reverseBranchCondition", "(", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Cond", ")", "const", "{", "assert", "(", "(", "Cond", ".", "size", "(", ")", "==", "3", ")", "&&", "\"Invalid branch condition!\"", ")", ";", "Cond", "[", "0", "]", ".", "setImm", "(", "getOppositeBranchOpcode", "(", "Cond", "[", "0", "]", ".", "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": ["RISCV", "RISCV", "3", "\"Invalid branch condition!\"", "0", "0"], "File": "RISCVInstrInfo", "Func": "reverseBranchCondition", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 195, "Length": 53, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVPassConfig", "::", "addInstSelector", "(", ")", "{", "addPass", "(", "createRISCVISelDag", "(", "getRISCVTargetMachine", "(", ")", ",", "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": ["RISCV", "RISCV", "RISCV", "RISCV"], "File": "RISCVTargetMachine (2)1", "Func": "addInstSelector", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 196, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "pass_vsetvl", "::", "hard_empty_block_p", "(", "const", "bb_info", "*", "bb", ",", "const", "vector_insn_info", "&", "info", ")", "const", "{", "if", "(", "!", "info", ".", "dirty_p", "(", ")", "||", "!", "info", ".", "has_avl_reg", "(", ")", ")", "return", "false", ";", "basic_block", "cfg_bb", "=", "bb", "->", "cfg_bb", "(", ")", ";", "sbitmap", "avin", "=", "m_vector_manager", "->", "vector_avin", "[", "cfg_bb", "->", "index", "]", ";", "set_info", "*", "set", "=", "info", ".", "get_avl_source", "(", ")", ";", "rtx", "avl", "=", "gen_rtx_REG", "(", "Pmode", ",", "set", "->", "regno", "(", ")", ")", ";", "hash_set", "<", "set_info", "*", ">", "sets", "=", "get_all_sets", "(", "set", ",", "true", ",", "false", ",", "false", ")", ";", "hash_set", "<", "basic_block", ">", "pred_cfg_bbs", "=", "get_all_predecessors", "(", "cfg_bb", ")", ";", "if", "(", "find_reg_killed_by", "(", "bb", ",", "avl", ")", ")", "{", "gcc_assert", "(", "info", ".", "dirty_with_killed_avl_p", "(", ")", ")", ";", "if", "(", "info", ".", "get_avl_source", "(", ")", "&&", "get_same_bb_set", "(", "sets", ",", "bb", "->", "cfg_bb", "(", ")", ")", "==", "info", ".", "get_avl_source", "(", ")", ")", "return", "false", ";", "}", "if", "(", "bitmap_empty_p", "(", "avin", ")", ")", "{", "bool", "hard_empty_p", "=", "true", ";", "for", "(", "const", "basic_block", "pred_cfg_bb", ":", "pred_cfg_bbs", ")", "{", "if", "(", "pred_cfg_bb", "==", "ENTRY_BLOCK_PTR_FOR_FN", "(", "cfun", ")", ")", "continue", ";", "sbitmap", "avout", "=", "m_vector_manager", "->", "vector_avout", "[", "pred_cfg_bb", "->", "index", "]", ";", "if", "(", "!", "bitmap_empty_p", "(", "avout", ")", ")", "{", "hard_empty_p", "=", "false", ";", "break", ";", "}", "}", "if", "(", "hard_empty_p", ")", "return", "true", ";", "}", "edge", "e", ";", "edge_iterator", "ei", ";", "bool", "has_avl_killed_insn_p", "=", "false", ";", "FOR_EACH_EDGE", "(", "e", ",", "ei", ",", "cfg_bb", "->", "succs", ")", "{", "const", "auto", "block_info", "=", "m_vector_manager", "->", "vector_block_infos", "[", "e", "->", "dest", "->", "index", "]", ";", "if", "(", "block_info", ".", "local_dem", ".", "dirty_with_killed_avl_p", "(", ")", ")", "{", "has_avl_killed_insn_p", "=", "true", ";", "break", ";", "}", "}", "if", "(", "!", "has_avl_killed_insn_p", ")", "return", "false", ";", "bool", "any_set_in_bbs_p", "=", "false", ";", "for", "(", "const", "basic_block", "pred_cfg_bb", ":", "pred_cfg_bbs", ")", "{", "insn_info", "*", "def_insn", "=", "extract_single_source", "(", "set", ")", ";", "if", "(", "def_insn", ")", "{", "insn_info", "*", "last_killed_insn", "=", "find_reg_killed_by", "(", "crtl", "->", "ssa", "->", "bb", "(", "pred_cfg_bb", ")", ",", "avl", ")", ";", "if", "(", "!", "last_killed_insn", "||", "pred_cfg_bb", "==", "def_insn", "->", "bb", "(", ")", "->", "cfg_bb", "(", ")", ")", "continue", ";", "if", "(", "source_equal_p", "(", "last_killed_insn", ",", "def_insn", ")", ")", "{", "any_set_in_bbs_p", "=", "true", ";", "break", ";", "}", "}", "else", "{", "if", "(", "any_set_in_bb_p", "(", "sets", ",", "crtl", "->", "ssa", "->", "bb", "(", "pred_cfg_bb", ")", ")", ")", "{", "any_set_in_bbs_p", "=", "true", ";", "break", ";", "}", "}", "}", "if", "(", "!", "any_set_in_bbs_p", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["We", "almost", "enable", "all", "cases", "in", "get_backward_fusion_type", ",", "this", "function", "disable", "the", "backward", "fusion", "by", "changing", "dirty", "blocks", "into", "hard", "empty", "blocks", "in", "forward", "dataflow", ".", "We", "can", "have", "more", "accurate", "optimization", "by", "this", "method", "."], "TS_V_token": ["riscv"], "File": "riscv-vsetvl", "Func": "hard_empty_block_p", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 197, "Length": 415, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVPassConfig", "::", "addIRPasses", "(", ")", "{", "addPass", "(", "createAtomicExpandPass", "(", ")", ")", ";", "addPass", "(", "createRISCVGatherScatterLoweringPass", "(", ")", ")", ";", "TargetPassConfig", "::", "addIRPasses", "(", ")", ";", "}", ""], "natrual_language": ["Add", "common", "target", "configurable", "passes", "that", "perform", "LLVM", "IR", "to", "IR", "transforms", "following", "machine", "independent", "optimization", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV"], "File": "RISCVTargetMachine1", "Func": "addIRPasses", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 198, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVFrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "getLastNonDebugInstr", "(", ")", ";", "const", "RISCVRegisterInfo", "*", "RI", "=", "STI", ".", "getRegisterInfo", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "auto", "*", "RVFI", "=", "MF", ".", "getInfo", "<", "RISCVMachineFunctionInfo", ">", "(", ")", ";", "DebugLoc", "DL", "=", "MBBI", "->", "getDebugLoc", "(", ")", ";", "unsigned", "FPReg", "=", "getFPReg", "(", "STI", ")", ";", "unsigned", "SPReg", "=", "getSPReg", "(", "STI", ")", ";", "auto", "LastFrameDestroy", "=", "std", "::", "prev", "(", "MBBI", ",", "MFI", ".", "getCalleeSavedInfo", "(", ")", ".", "size", "(", ")", ")", ";", "uint64_t", "StackSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "if", "(", "RI", "->", "needsStackRealignment", "(", "MF", ")", "||", "MFI", ".", "hasVarSizedObjects", "(", ")", ")", "{", "assert", "(", "hasFP", "(", "MF", ")", "&&", "\"frame pointer should not have been eliminated\"", ")", ";", "adjustReg", "(", "MBB", ",", "LastFrameDestroy", ",", "DL", ",", "SPReg", ",", "FPReg", ",", "-", "StackSize", "+", "RVFI", "->", "getVarArgsSaveSize", "(", ")", ",", "MachineInstr", "::", "FrameDestroy", ")", ";", "}", "adjustReg", "(", "MBB", ",", "MBBI", ",", "DL", ",", "SPReg", ",", "SPReg", ",", "StackSize", ",", "MachineInstr", "::", "FrameDestroy", ")", ";", "}", ""], "natrual_language": ["Insert", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV", "RISCV", "\"frame pointer should not have been eliminated\""], "File": "RISCVFrameLowering10", "Func": "emitEpilogue", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 199, "Length": 187, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVTargetLowering", "::", "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", ")", ";", "Optional", "<", "unsigned", ">", "FirstMaskArgument", ";", "if", "(", "Subtarget", ".", "hasVInstructions", "(", ")", ")", "FirstMaskArgument", "=", "preAssignMask", "(", "Outs", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "Outs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "MVT", "VT", "=", "Outs", "[", "i", "]", ".", "VT", ";", "ISD", "::", "ArgFlagsTy", "ArgFlags", "=", "Outs", "[", "i", "]", ".", "Flags", ";", "RISCVABI", "::", "ABI", "ABI", "=", "MF", ".", "getSubtarget", "<", "RISCVSubtarget", ">", "(", ")", ".", "getTargetABI", "(", ")", ";", "if", "(", "CC_RISCV", "(", "MF", ".", "getDataLayout", "(", ")", ",", "ABI", ",", "i", ",", "VT", ",", "VT", ",", "CCValAssign", "::", "Full", ",", "ArgFlags", ",", "CCInfo", ",", "true", ",", "true", ",", "nullptr", ",", "*", "this", ",", "FirstMaskArgument", ")", ")", "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": ["RISCV", "RISCV", "ISD::OutputArg", "16", "0", "ISD::ArgFlagsTy", "RISCVABI::ABI", "RISCV", "RISCV"], "File": "RISCVISelLowering18", "Func": "CanLowerReturn", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 200, "Length": 185, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "RISCVInstrInfo", "::", "isStoreToStackSlot", "(", "const", "MachineInstr", "&", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "0", ";", "case", "RISCV", "::", "SB", ":", "case", "RISCV", "::", "SH", ":", "case", "RISCV", "::", "SW", ":", "case", "RISCV", "::", "FSW", ":", "case", "RISCV", "::", "SD", ":", "case", "RISCV", "::", "FSD", ":", "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": ["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": ["RISCV", "RISCV", "0", "RISCV::SB", "RISCV::SH", "RISCV::SW", "RISCV::FSW", "RISCV::SD", "RISCV::FSD", "1", "2", "2", "0", "1", "0", "0"], "File": "RISCVInstrInfo11", "Func": "isStoreToStackSlot", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 201, "Length": 131, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCSection", "*", "RISCVELFTargetObjectFile", "::", "getSectionForConstant", "(", "const", "DataLayout", "&", "DL", ",", "SectionKind", "Kind", ",", "const", "Constant", "*", "C", ",", "unsigned", "&", "Align", ")", "const", "{", "if", "(", "isConstantInSmallSection", "(", "DL", ",", "C", ")", ")", "return", "SmallDataSection", ";", "return", "TargetLoweringObjectFileELF", "::", "getSectionForConstant", "(", "DL", ",", "Kind", ",", "C", ",", "Align", ")", ";", "}", ""], "natrual_language": ["Given", "a", "constant", "with", "the", "SectionKind", ",", "return", "a", "section", "that", "it", "should", "be", "placed", "in", "."], "TS_V_token": ["RISCV", "RISCV"], "File": "RISCVTargetObjectFile7", "Func": "getSectionForConstant", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 202, "Length": 52, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "RISCVAsmBackend", "::", "fixupNeedsRelaxationAdvanced", "(", "const", "MCFixup", "&", "Fixup", ",", "bool", "Resolved", ",", "uint64_t", "Value", ",", "const", "MCRelaxableFragment", "*", "DF", ",", "const", "MCAsmLayout", "&", "Layout", ",", "const", "bool", "WasForced", ")", "const", "{", "if", "(", "!", "Resolved", "&&", "!", "WasForced", ")", "return", "true", ";", "int64_t", "Offset", "=", "int64_t", "(", "Value", ")", ";", "switch", "(", "Fixup", ".", "getTargetKind", "(", ")", ")", "{", "default", ":", "return", "false", ";", "case", "RISCV", "::", "fixup_riscv_rvc_branch", ":", "return", "Offset", ">", "254", "||", "Offset", "<", "-", "256", ";", "case", "RISCV", "::", "fixup_riscv_rvc_jump", ":", "return", "Offset", ">", "2046", "||", "Offset", "<", "-", "2048", ";", "}", "}", ""], "natrual_language": ["Target", "specific", "predicate", "for", "whether", "a", "given", "fixup", "requires", "the", "associated", "instruction", "to", "be", "relaxed", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV::fixup_riscv_rvc_branch", "254", "256", "RISCV::fixup_riscv_rvc_jump", "2046", "2048"], "File": "RISCVAsmBackend14", "Func": "fixupNeedsRelaxationAdvanced", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 203, "Length": 97, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "RISCVAsmParser", "::", "validateTargetOperandClass", "(", "MCParsedAsmOperand", "&", "AsmOp", ",", "unsigned", "Kind", ")", "{", "RISCVOperand", "&", "Op", "=", "static_cast", "<", "RISCVOperand", "&", ">", "(", "AsmOp", ")", ";", "if", "(", "!", "Op", ".", "isReg", "(", ")", ")", "return", "Match_InvalidOperand", ";", "MCRegister", "Reg", "=", "Op", ".", "getReg", "(", ")", ";", "bool", "IsRegFPR64", "=", "RISCVMCRegisterClasses", "[", "RISCV", "::", "FPR64RegClassID", "]", ".", "contains", "(", "Reg", ")", ";", "bool", "IsRegFPR64C", "=", "RISCVMCRegisterClasses", "[", "RISCV", "::", "FPR64CRegClassID", "]", ".", "contains", "(", "Reg", ")", ";", "if", "(", "(", "IsRegFPR64", "&&", "Kind", "==", "MCK_FPR32", ")", "||", "(", "IsRegFPR64C", "&&", "Kind", "==", "MCK_FPR32C", ")", ")", "{", "Op", ".", "Reg", ".", "RegNum", "=", "convertFPR64ToFPR32", "(", "Reg", ")", ";", "return", "Match_Success", ";", "}", "if", "(", "IsRegFPR64", "&&", "Kind", "==", "MCK_FPR16", ")", "{", "Op", ".", "Reg", ".", "RegNum", "=", "convertFPR64ToFPR16", "(", "Reg", ")", ";", "return", "Match_Success", ";", "}", "return", "Match_InvalidOperand", ";", "}", ""], "natrual_language": ["Allow", "a", "target", "to", "add", "special", "case", "operand", "matching", "for", "things", "that", "tblgen", "doesn't/ca", "n't", "handle", "effectively", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV", "RISCV", "RISCV", "RISCV::FPR64RegClassID", "RISCV", "RISCV::FPR64CRegClassID"], "File": "RISCVAsmParser10", "Func": "validateTargetOperandClass", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 204, "Length": 139, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "available_occurrence_p", "(", "const", "bb_info", "*", "bb", ",", "const", "vector_insn_info", "dem", ")", "{", "insn_info", "*", "insn", "=", "dem", ".", "get_insn", "(", ")", ";", "if", "(", "dem", ".", "has_avl_reg", "(", ")", ")", "{", "if", "(", "!", "vlmax_avl_p", "(", "dem", ".", "get_avl", "(", ")", ")", ")", "{", "rtx", "dest", "=", "NULL_RTX", ";", "if", "(", "vsetvl_insn_p", "(", "insn", "->", "rtl", "(", ")", ")", ")", "dest", "=", "get_vl", "(", "insn", "->", "rtl", "(", ")", ")", ";", "for", "(", "const", "insn_info", "*", "i", "=", "insn", ";", "real_insn_and_same_bb_p", "(", "i", ",", "bb", ")", ";", "i", "=", "i", "->", "next_nondebug_insn", "(", ")", ")", "{", "if", "(", "read_vl_insn_p", "(", "i", "->", "rtl", "(", ")", ")", ")", "continue", ";", "if", "(", "find_access", "(", "i", "->", "defs", "(", ")", ",", "REGNO", "(", "dem", ".", "get_avl", "(", ")", ")", ")", ")", "return", "false", ";", "if", "(", "dest", "&&", "find_access", "(", "i", "->", "defs", "(", ")", ",", "REGNO", "(", "dest", ")", ")", ")", "return", "false", ";", "}", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["An", "``", "available", "occurrence", "''", "is", "one", "that", "is", "the", "last", "occurrence", "in", "the", "basic", "block", "and", "the", "operands", "are", "not", "modified", "by", "following", "statements", "in", "the", "basic", "block", "[", "including", "this", "insn", "]", ".", "For", "VSETVL", "instruction", ",", "we", "have", "these", "following", "formats", ":", "1.", "vsetvl", "zero", ",", "rs1", ".", "2.", "vsetvl", "zero", ",", "imm", ".", "3.", "vsetvl", "rd", ",", "rs1", ".", "So", "base", "on", "these", "circumstances", ",", "a", "DEM", "is", "considered", "as", "a", "local", "available", "occurrence", "should", "satisfy", "these", "following", "conditions", ":", "1", ")", ".", "rs1", "(", "avl", ")", "are", "not", "modified", "by", "following", "statements", "in", "the", "basic", "block", ".", "2", ")", ".", "rd", "(", "vl", ")", "are", "not", "modified", "by", "following", "statements", "in", "the", "basic", "block", ".", "Note", ":", "We", "do", "n't", "need", "to", "check", "VL/VTYPE", "here", "since", "DEM", "is", "UNKNOWN", "if", "VL/VTYPE", "is", "modified", "prior", "to", "the", "occurrence", ".", "This", "case", "is", "already", "considered", "as", "a", "non-local", "available", "occurrence", "."], "TS_V_token": ["riscv"], "File": "riscv-vsetvl", "Func": "available_occurrence_p", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 205, "Length": 162, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVFrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "assert", "(", "&", "MF", ".", "front", "(", ")", "==", "&", "MBB", "&&", "\"Shrink-wrapping not yet supported\"", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "auto", "*", "RVFI", "=", "MF", ".", "getInfo", "<", "RISCVMachineFunctionInfo", ">", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "begin", "(", ")", ";", "unsigned", "FPReg", "=", "getFPReg", "(", "STI", ")", ";", "unsigned", "SPReg", "=", "getSPReg", "(", "STI", ")", ";", "DebugLoc", "DL", ";", "determineFrameLayout", "(", "MF", ")", ";", "uint64_t", "StackSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "if", "(", "StackSize", "==", "0", "&&", "!", "MFI", ".", "adjustsStack", "(", ")", ")", "return", ";", "adjustReg", "(", "MBB", ",", "MBBI", ",", "DL", ",", "SPReg", ",", "SPReg", ",", "-", "StackSize", ",", "MachineInstr", "::", "FrameSetup", ")", ";", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", "=", "MFI", ".", "getCalleeSavedInfo", "(", ")", ";", "std", "::", "advance", "(", "MBBI", ",", "CSI", ".", "size", "(", ")", ")", ";", "if", "(", "hasFP", "(", "MF", ")", ")", "adjustReg", "(", "MBB", ",", "MBBI", ",", "DL", ",", "FPReg", ",", "SPReg", ",", "StackSize", "-", "RVFI", "->", "getVarArgsSaveSize", "(", ")", ",", "MachineInstr", "::", "FrameSetup", ")", ";", "}", ""], "natrual_language": ["emitProlog/emitEpilog", "-", "These", "methods", "insert", "prolog", "and", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["RISCV", "RISCV", "\"Shrink-wrapping not yet supported\"", "RISCV", "0"], "File": "RISCVFrameLowering10", "Func": "emitPrologue", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 206, "Length": 194, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVFrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "getLastNonDebugInstr", "(", ")", ";", "const", "RISCVRegisterInfo", "*", "RI", "=", "STI", ".", "getRegisterInfo", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "auto", "*", "RVFI", "=", "MF", ".", "getInfo", "<", "RISCVMachineFunctionInfo", ">", "(", ")", ";", "DebugLoc", "DL", "=", "MBBI", "->", "getDebugLoc", "(", ")", ";", "Register", "FPReg", "=", "getFPReg", "(", "STI", ")", ";", "Register", "SPReg", "=", "getSPReg", "(", "STI", ")", ";", "auto", "LastFrameDestroy", "=", "std", "::", "prev", "(", "MBBI", ",", "MFI", ".", "getCalleeSavedInfo", "(", ")", ".", "size", "(", ")", ")", ";", "uint64_t", "StackSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "uint64_t", "FPOffset", "=", "StackSize", "-", "RVFI", "->", "getVarArgsSaveSize", "(", ")", ";", "if", "(", "RI", "->", "needsStackRealignment", "(", "MF", ")", "||", "MFI", ".", "hasVarSizedObjects", "(", ")", ")", "{", "assert", "(", "hasFP", "(", "MF", ")", "&&", "\"frame pointer should not have been eliminated\"", ")", ";", "adjustReg", "(", "MBB", ",", "LastFrameDestroy", ",", "DL", ",", "SPReg", ",", "FPReg", ",", "-", "FPOffset", ",", "MachineInstr", "::", "FrameDestroy", ")", ";", "}", "uint64_t", "FirstSPAdjustAmount", "=", "getFirstSPAdjustAmount", "(", "MF", ")", ";", "if", "(", "FirstSPAdjustAmount", ")", "{", "uint64_t", "SecondSPAdjustAmount", "=", "MFI", ".", "getStackSize", "(", ")", "-", "FirstSPAdjustAmount", ";", "assert", "(", "SecondSPAdjustAmount", ">", "0", "&&", "\"SecondSPAdjustAmount should be greater than zero\"", ")", ";", "adjustReg", "(", "MBB", ",", "LastFrameDestroy", ",", "DL", ",", "SPReg", ",", "SPReg", ",", "SecondSPAdjustAmount", ",", "MachineInstr", "::", "FrameDestroy", ")", ";", "}", "if", "(", "FirstSPAdjustAmount", ")", "StackSize", "=", "FirstSPAdjustAmount", ";", "adjustReg", "(", "MBB", ",", "MBBI", ",", "DL", ",", "SPReg", ",", "SPReg", ",", "StackSize", ",", "MachineInstr", "::", "FrameDestroy", ")", ";", "}", ""], "natrual_language": ["Insert", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV", "RISCV", "\"frame pointer should not have been eliminated\"", "0", "\"SecondSPAdjustAmount should be greater than zero\""], "File": "RISCVFrameLowering16", "Func": "emitEpilogue", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 207, "Length": 253, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "riscv_conditional_register_usage", "(", "void", ")", "{", "if", "(", "!", "TARGET_HARD_FLOAT", ")", "{", "for", "(", "int", "regno", "=", "FP_REG_FIRST", ";", "regno", "<=", "FP_REG_LAST", ";", "regno", "++", ")", "fixed_regs", "[", "regno", "]", "=", "call_used_regs", "[", "regno", "]", "=", "1", ";", "}", "if", "(", "UNITS_PER_FP_ARG", "==", "0", ")", "{", "for", "(", "int", "regno", "=", "FP_REG_FIRST", ";", "regno", "<=", "FP_REG_LAST", ";", "regno", "++", ")", "call_used_regs", "[", "regno", "]", "=", "1", ";", "}", "}", ""], "natrual_language": ["Implement", "TARGET_CONDITIONAL_REGISTER_USAGE", "."], "TS_V_token": ["riscv", "1", "0", "1"], "File": "riscv3", "Func": "riscv_conditional_register_usage", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 208, "Length": 70, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "riscv_gimple_fold_builtin", "(", "gimple_stmt_iterator", "*", "gsi", ")", "{", "gcall", "*", "stmt", "=", "as_a", "<", "gcall", "*", ">", "(", "gsi_stmt", "(", "*", "gsi", ")", ")", ";", "tree", "fndecl", "=", "gimple_call_fndecl", "(", "stmt", ")", ";", "unsigned", "int", "code", "=", "DECL_MD_FUNCTION_CODE", "(", "fndecl", ")", ";", "unsigned", "int", "subcode", "=", "code", ">>", "RISCV_BUILTIN_SHIFT", ";", "gimple", "*", "new_stmt", "=", "NULL", ";", "switch", "(", "code", "&", "RISCV_BUILTIN_CLASS", ")", "{", "case", "RISCV_BUILTIN_GENERAL", ":", "new_stmt", "=", "NULL", ";", "break", ";", "case", "RISCV_BUILTIN_VECTOR", ":", "new_stmt", "=", "riscv_vector", "::", "gimple_fold_builtin", "(", "subcode", ",", "gsi", ",", "stmt", ")", ";", "break", ";", "}", "if", "(", "!", "new_stmt", ")", "return", "false", ";", "gsi_replace", "(", "gsi", ",", "new_stmt", ",", "false", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Implement", "TARGET_GIMPLE_FOLD_BUILTIN", "."], "TS_V_token": ["riscv", "riscv_vector::gimple_fold_builtin"], "File": "riscv-builtins1", "Func": "riscv_gimple_fold_builtin", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 209, "Length": 112, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "char", "*", "get_name", "(", "function_builder", "&", "b", ",", "const", "function_instance", "&", "instance", ",", "bool", "overloaded_p", ")", "const", "override", "{", "if", "(", "overloaded_p", ")", "if", "(", "instance", ".", "pred", "==", "PRED_TYPE_none", "||", "instance", ".", "pred", "==", "PRED_TYPE_mu", ")", "return", "nullptr", ";", "tree", "type", "=", "builtin_types", "[", "instance", ".", "type", ".", "index", "]", ".", "vector", ";", "machine_mode", "mode", "=", "TYPE_MODE", "(", "type", ")", ";", "int", "sew", "=", "GET_MODE_BITSIZE", "(", "GET_MODE_INNER", "(", "mode", ")", ")", ";", "b", ".", "append_name", "(", "\"__riscv_\"", ")", ";", "b", ".", "append_name", "(", "\"vle\"", ")", ";", "b", ".", "append_sew", "(", "sew", ")", ";", "b", ".", "append_name", "(", "\"ff\"", ")", ";", "if", "(", "!", "overloaded_p", ")", "{", "b", ".", "append_name", "(", "operand_suffixes", "[", "instance", ".", "op_info", "->", "op", "]", ")", ";", "b", ".", "append_name", "(", "type_suffixes", "[", "instance", ".", "type", ".", "index", "]", ".", "vector", ")", ";", "}", "if", "(", "overloaded_p", "&&", "instance", ".", "pred", "==", "PRED_TYPE_m", ")", "return", "b", ".", "finish_name", "(", ")", ";", "b", ".", "append_name", "(", "predication_suffixes", "[", "instance", ".", "pred", "]", ")", ";", "return", "b", ".", "finish_name", "(", ")", ";", "}", ""], "natrual_language": ["Return", "the", "overloaded", "or", "full", "function", "name", "for", "INSTANCE", ";", "OVERLOADED_P", "selects", "which", ".", "Allocate", "the", "string", "on", "m_string_obstack", ";", "the", "caller", "must", "use", "obstack_free", "to", "free", "it", "after", "use", "."], "TS_V_token": ["riscv", "\"__riscv_\"", "\"vle\"", "\"ff\""], "File": "riscv-vector-builtins-shapes", "Func": "get_name", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 210, "Length": 175, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SMLoc", "getEndLoc", "(", ")", "const", "override", "{", "return", "EndLoc", ";", "}", ""], "natrual_language": ["getEndLoc", "-", "Get", "the", "location", "of", "the", "last", "token", "of", "this", "operand", "."], "TS_V_token": ["RISCV"], "File": "RISCVAsmParser (2)", "Func": "getEndLoc", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 211, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "riscv_expand_prologue", "(", "void", ")", "{", "struct", "riscv_frame_info", "*", "frame", "=", "&", "cfun", "->", "machine", "->", "frame", ";", "HOST_WIDE_INT", "size", "=", "frame", "->", "total_size", ";", "unsigned", "mask", "=", "frame", "->", "mask", ";", "rtx", "insn", ";", "if", "(", "flag_stack_usage_info", ")", "current_function_static_stack_size", "=", "size", ";", "if", "(", "riscv_use_save_libcall", "(", "frame", ")", ")", "{", "rtx", "dwarf", "=", "NULL_RTX", ";", "dwarf", "=", "riscv_adjust_libcall_cfi_prologue", "(", ")", ";", "frame", "->", "mask", "=", "0", ";", "size", "-=", "frame", "->", "save_libcall_adjustment", ";", "insn", "=", "emit_insn", "(", "gen_gpr_save", "(", "GEN_INT", "(", "mask", ")", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "REG_NOTES", "(", "insn", ")", "=", "dwarf", ";", "}", "if", "(", "(", "frame", "->", "mask", "|", "frame", "->", "fmask", ")", "!=", "0", ")", "{", "HOST_WIDE_INT", "step1", "=", "MIN", "(", "size", ",", "riscv_first_stack_step", "(", "frame", ")", ")", ";", "insn", "=", "gen_add3_insn", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "-", "step1", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "emit_insn", "(", "insn", ")", ")", "=", "1", ";", "size", "-=", "step1", ";", "riscv_for_each_saved_reg", "(", "size", ",", "riscv_save_reg", ")", ";", "}", "frame", "->", "mask", "=", "mask", ";", "if", "(", "frame_pointer_needed", ")", "{", "insn", "=", "gen_add3_insn", "(", "hard_frame_pointer_rtx", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "frame", "->", "hard_frame_pointer_offset", "-", "size", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "emit_insn", "(", "insn", ")", ")", "=", "1", ";", "riscv_emit_stack_tie", "(", ")", ";", "}", "if", "(", "size", ">", "0", ")", "{", "if", "(", "SMALL_OPERAND", "(", "-", "size", ")", ")", "{", "insn", "=", "gen_add3_insn", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "-", "size", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "emit_insn", "(", "insn", ")", ")", "=", "1", ";", "}", "else", "{", "riscv_emit_move", "(", "RISCV_PROLOGUE_TEMP", "(", "Pmode", ")", ",", "GEN_INT", "(", "-", "size", ")", ")", ";", "emit_insn", "(", "gen_add3_insn", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "RISCV_PROLOGUE_TEMP", "(", "Pmode", ")", ")", ")", ";", "insn", "=", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "-", "size", ")", ";", "insn", "=", "gen_rtx_SET", "(", "stack_pointer_rtx", ",", "insn", ")", ";", "riscv_set_frame_expr", "(", "insn", ")", ";", "}", "}", "}", ""], "natrual_language": ["Expand", "the", "``", "prologue", "''", "pattern", "."], "TS_V_token": ["riscv", "0", "1", "0", "1", "1", "0", "1"], "File": "riscv2", "Func": "riscv_expand_prologue", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 212, "Length": 313, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "RISCVTargetLowering", "::", "ComputeNumSignBitsForTargetNode", "(", "SDValue", "Op", ",", "const", "APInt", "&", "DemandedElts", ",", "const", "SelectionDAG", "&", "DAG", ",", "unsigned", "Depth", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "RISCVISD", "::", "SLLW", ":", "case", "RISCVISD", "::", "SRAW", ":", "case", "RISCVISD", "::", "SRLW", ":", "case", "RISCVISD", "::", "DIVW", ":", "case", "RISCVISD", "::", "DIVUW", ":", "case", "RISCVISD", "::", "REMUW", ":", "case", "RISCVISD", "::", "ROLW", ":", "case", "RISCVISD", "::", "RORW", ":", "case", "RISCVISD", "::", "GREVIW", ":", "case", "RISCVISD", "::", "GORCIW", ":", "case", "RISCVISD", "::", "FSLW", ":", "case", "RISCVISD", "::", "FSRW", ":", "return", "33", ";", "}", "return", "1", ";", "}", ""], "natrual_language": ["Determine", "the", "number", "of", "bits", "in", "the", "operation", "that", "are", "sign", "bits", "."], "TS_V_token": ["RISCV", "RISCV", "RISCVISD::SLLW", "RISCVISD::SRAW", "RISCVISD::SRLW", "RISCVISD::DIVW", "RISCVISD::DIVUW", "RISCVISD::REMUW", "RISCVISD::ROLW", "RISCVISD::RORW", "RISCVISD::GREVIW", "RISCVISD::GORCIW", "RISCVISD::FSLW", "RISCVISD::FSRW", "33", "1"], "File": "RISCVISelLowering38", "Func": "ComputeNumSignBitsForTargetNode", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 213, "Length": 104, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVInstrInfo", "::", "loadImmediate", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MBBI", ",", "unsigned", "*", "Reg", ",", "int64_t", "Value", ")", "const", "{", "DebugLoc", "DL", "=", "MBBI", "!=", "MBB", ".", "end", "(", ")", "?", "MBBI", "->", "getDebugLoc", "(", ")", ":", "DebugLoc", "(", ")", ";", "unsigned", "Opcode", ";", "MachineRegisterInfo", "&", "RegInfo", "=", "MBB", ".", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "const", "TargetRegisterClass", "*", "RC", "=", "STI", ".", "isRV64", "(", ")", "?", "&", "RISCV", "::", "GR64BitRegClass", ":", "&", "RISCV", "::", "GR32BitRegClass", ";", "unsigned", "ZERO", "=", "STI", ".", "isRV64", "(", ")", "?", "RISCV", "::", "zero_64", ":", "RISCV", "::", "zero", ";", "*", "Reg", "=", "RegInfo", ".", "createVirtualRegister", "(", "RC", ")", ";", "if", "(", "isInt", "<", "12", ">", "(", "Value", ")", ")", "{", "Opcode", "=", "STI", ".", "isRV64", "(", ")", "?", "RISCV", "::", "ADDI64", ":", "RISCV", "::", "ADDI", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "get", "(", "Opcode", ")", ",", "*", "Reg", ")", ".", "addReg", "(", "ZERO", ")", ".", "addImm", "(", "Value", ")", ";", "}", "else", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "get", "(", "RISCV", "::", "LI", ")", ",", "*", "Reg", ")", ".", "addImm", "(", "Value", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "a", "series", "of", "instructions", "to", "load", "an", "immediate", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV::GR64BitRegClass", "RISCV::GR32BitRegClass", "RISCV::zero_64", "RISCV::zero", "12", "RISCV::ADDI64", "RISCV::ADDI", "RISCV::LI"], "File": "RISCVInstrInfo (2)1", "Func": "loadImmediate", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 214, "Length": 192, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"RISCV sext.w Removal\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["RISCV", "\"RISCV sext.w Removal\""], "File": "RISCVSExtWRemoval", "Func": "getPassName", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 215, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "riscv_emit_binary", "(", "enum", "rtx_code", "code", ",", "rtx", "dest", ",", "rtx", "x", ",", "rtx", "y", ")", "{", "return", "riscv_emit_set", "(", "dest", ",", "gen_rtx_fmt_ee", "(", "code", ",", "GET_MODE", "(", "dest", ")", ",", "x", ",", "y", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "an", "instruction", "of", "the", "form", "(", "set", "DEST", "(", "CODE", "X", "Y", ")", ")", "."], "TS_V_token": ["riscv"], "File": "riscv", "Func": "riscv_emit_binary", "Target": "riscv", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 216, "Length": 39, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "RISCVPassConfig", "::", "addMachineSSAOptimization", "(", ")", "{", "TargetPassConfig", "::", "addMachineSSAOptimization", "(", ")", ";", "addPass", "(", "createRISCVOptimizeVSETVLUsesPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["Methods", "with", "trivial", "inline", "returns", "are", "convenient", "points", "in", "the", "common", "codegen", "pass", "pipeline", "where", "targets", "may", "insert", "passes", "."], "TS_V_token": ["RISCV", "RISCV", "RISCV"], "File": "RISCVTargetMachine42", "Func": "addMachineSSAOptimization", "Target": "RISCV", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 217, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "X86SelectionDAGInfo", "::", "EmitTargetCodeForMemcpy", "(", "SelectionDAG", "&", "DAG", ",", "const", "SDLoc", "&", "dl", ",", "SDValue", "Chain", ",", "SDValue", "Dst", ",", "SDValue", "Src", ",", "SDValue", "Size", ",", "Align", "Alignment", ",", "bool", "isVolatile", ",", "bool", "AlwaysInline", ",", "MachinePointerInfo", "DstPtrInfo", ",", "MachinePointerInfo", "SrcPtrInfo", ")", "const", "{", "if", "(", "DstPtrInfo", ".", "getAddrSpace", "(", ")", ">=", "256", "||", "SrcPtrInfo", ".", "getAddrSpace", "(", ")", ">=", "256", ")", "return", "SDValue", "(", ")", ";", "const", "MCPhysReg", "ClobberSet", "[", "]", "=", "{", "X86", "::", "RCX", ",", "X86", "::", "RSI", ",", "X86", "::", "RDI", ",", "X86", "::", "ECX", ",", "X86", "::", "ESI", ",", "X86", "::", "EDI", "}", ";", "if", "(", "isBaseRegConflictPossible", "(", "DAG", ",", "ClobberSet", ")", ")", "return", "SDValue", "(", ")", ";", "const", "X86Subtarget", "&", "Subtarget", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "if", "(", "UseFSRMForMemcpy", "&&", "Subtarget", ".", "hasFSRM", "(", ")", ")", "return", "emitRepmovs", "(", "Subtarget", ",", "DAG", ",", "dl", ",", "Chain", ",", "Dst", ",", "Src", ",", "Size", ",", "MVT", "::", "i8", ")", ";", "if", "(", "ConstantSDNode", "*", "ConstantSize", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Size", ")", ")", "return", "emitConstantSizeRepmov", "(", "DAG", ",", "Subtarget", ",", "dl", ",", "Chain", ",", "Dst", ",", "Src", ",", "ConstantSize", "->", "getZExtValue", "(", ")", ",", "Size", ".", "getValueType", "(", ")", ",", "Alignment", ".", "value", "(", ")", ",", "isVolatile", ",", "AlwaysInline", ",", "DstPtrInfo", ",", "SrcPtrInfo", ")", ";", "return", "SDValue", "(", ")", ";", "}", ""], "natrual_language": ["Emit", "target-specific", "code", "that", "performs", "a", "memcpy", "."], "TS_V_token": ["X86", "X86", "256", "256", "X86::RCX", "X86::RSI", "X86::RDI", "X86::ECX", "X86::ESI", "X86::EDI", "X86", "X86", "MVT::i8"], "File": "X86SelectionDAGInfo24", "Func": "EmitTargetCodeForMemcpy", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 218, "Length": 224, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARM64DeadRegisterDefinitions", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "TRI", "=", "MF", ".", "getTarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "bool", "Changed", "=", "false", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** ARM64DeadRegisterDefinitions *****\\n\"", ")", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "if", "(", "processMachineBasicBlock", "(", "MBB", ")", ")", "Changed", "=", "true", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM64", "ARM64", "\"***** ARM64DeadRegisterDefinitions *****\\n\""], "File": "ARM64DeadRegisterDefinitionsPass", "Func": "runOnMachineFunction", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 219, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "MVT", "getShiftAmountTy", "(", "EVT", "LHSTy", ")", "const", "{", "return", "MVT", "::", "i64", ";", "}", ""], "natrual_language": ["Returns", "the", "type", "for", "the", "shift", "amount", "of", "a", "shift", "opcode", "."], "TS_V_token": ["SystemZ", "MVT::i64"], "File": "SystemZISelLowering65", "Func": "getShiftAmountTy", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 220, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "enum", "reg_class", "arm_regno_class", "(", "int", "regno", ")", "{", "if", "(", "regno", "==", "PC_REGNUM", ")", "return", "NO_REGS", ";", "if", "(", "IS_VPR_REGNUM", "(", "regno", ")", ")", "return", "VPR_REG", ";", "if", "(", "TARGET_THUMB1", ")", "{", "if", "(", "regno", "==", "STACK_POINTER_REGNUM", ")", "return", "STACK_REG", ";", "if", "(", "regno", "==", "CC_REGNUM", ")", "return", "CC_REG", ";", "if", "(", "regno", "<", "8", ")", "return", "LO_REGS", ";", "return", "HI_REGS", ";", "}", "if", "(", "TARGET_THUMB2", "&&", "regno", "<", "8", ")", "return", "LO_REGS", ";", "if", "(", "regno", "<=", "LAST_ARM_REGNUM", "||", "regno", "==", "FRAME_POINTER_REGNUM", "||", "regno", "==", "ARG_POINTER_REGNUM", ")", "return", "TARGET_THUMB2", "?", "HI_REGS", ":", "GENERAL_REGS", ";", "if", "(", "regno", "==", "CC_REGNUM", "||", "regno", "==", "VFPCC_REGNUM", ")", "return", "TARGET_THUMB2", "?", "CC_REG", ":", "NO_REGS", ";", "if", "(", "IS_VFP_REGNUM", "(", "regno", ")", ")", "{", "if", "(", "regno", "<=", "D7_VFP_REGNUM", ")", "return", "VFP_D0_D7_REGS", ";", "else", "if", "(", "regno", "<=", "LAST_LO_VFP_REGNUM", ")", "return", "VFP_LO_REGS", ";", "else", "return", "VFP_HI_REGS", ";", "}", "if", "(", "IS_IWMMXT_REGNUM", "(", "regno", ")", ")", "return", "IWMMXT_REGS", ";", "if", "(", "IS_IWMMXT_GR_REGNUM", "(", "regno", ")", ")", "return", "IWMMXT_GR_REGS", ";", "return", "NO_REGS", ";", "}", ""], "natrual_language": ["For", "efficiency", "and", "historical", "reasons", "LO_REGS", ",", "HI_REGS", "and", "CC_REGS", "are", "not", "used", "in", "arm", "mode", "."], "TS_V_token": ["arm", "8", "8"], "File": "arm", "Func": "arm_regno_class", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 221, "Length": 168, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCInstrInfo", "::", "isUnpredicatedTerminator", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "if", "(", "!", "MI", ".", "isTerminator", "(", ")", ")", "return", "false", ";", "if", "(", "MI", ".", "isBranch", "(", ")", "&&", "!", "MI", ".", "isBarrier", "(", ")", ")", "return", "true", ";", "return", "!", "isPredicated", "(", "MI", ")", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "instruction", "is", "a", "terminator", "instruction", "that", "has", "not", "been", "predicated", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCInstrInfo (2)2", "Func": "isUnpredicatedTerminator", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 222, "Length": 50, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ARMFrameLowering", "::", "getFrameIndexReference", "(", "const", "MachineFunction", "&", "MF", ",", "int", "FI", ",", "Register", "&", "FrameReg", ")", "const", "{", "return", "ResolveFrameIndexReference", "(", "MF", ",", "FI", ",", "FrameReg", ",", "0", ")", ";", "}", ""], "natrual_language": ["getFrameIndexReference", "-", "This", "method", "should", "return", "the", "base", "register", "and", "offset", "used", "to", "reference", "a", "frame", "index", "location", "."], "TS_V_token": ["ARM", "ARM", "0"], "File": "ARMFrameLowering11", "Func": "getFrameIndexReference", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 223, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "insn_terminates_group_p", "(", "rtx", "insn", ",", "enum", "group_termination", "which_group", ")", "{", "enum", "attr_type", "type", ";", "if", "(", "!", "insn", ")", "return", "false", ";", "type", "=", "get_attr_type", "(", "insn", ")", ";", "if", "(", "is_microcoded_insn", "(", "insn", ")", ")", "return", "true", ";", "if", "(", "which_group", "==", "current_group", ")", "{", "if", "(", "is_branch_slot_insn", "(", "insn", ")", ")", "return", "true", ";", "return", "false", ";", "}", "else", "if", "(", "which_group", "==", "previous_group", ")", "{", "if", "(", "is_dispatch_slot_restricted", "(", "insn", ")", ")", "return", "true", ";", "return", "false", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "whether", "the", "presence", "of", "INSN", "causes", "a", "dispatch", "group", "termination", "of", "group", "WHICH_GROUP", ".", "If", "WHICH_GROUP", "==", "current_group", ",", "this", "function", "will", "return", "true", "if", "INSN", "causes", "the", "termination", "of", "the", "current", "group", "(", "i.e", ",", "the", "dispatch", "group", "to", "which", "INSN", "belongs", ")", ".", "This", "means", "that", "INSN", "will", "be", "the", "last", "insn", "in", "the", "group", "it", "belongs", "to", ".", "If", "WHICH_GROUP", "==", "previous_group", ",", "this", "function", "will", "return", "true", "if", "INSN", "causes", "the", "termination", "of", "the", "previous", "group", "(", "i.e", ",", "the", "dispatch", "group", "that", "precedes", "the", "group", "to", "which", "INSN", "belongs", ")", ".", "This", "means", "that", "INSN", "will", "be", "the", "first", "insn", "in", "the", "group", "it", "belongs", "to", ")", "."], "TS_V_token": ["rs6000"], "File": "rs60003", "Func": "insn_terminates_group_p", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 224, "Length": 88, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtvec", "rs6000_const_vec", "(", "machine_mode", "mode", ")", "{", "int", "i", ",", "subparts", ";", "rtvec", "v", ";", "switch", "(", "mode", ")", "{", "case", "V1TImode", ":", "subparts", "=", "1", ";", "break", ";", "case", "V2DFmode", ":", "case", "V2DImode", ":", "subparts", "=", "2", ";", "break", ";", "case", "V4SFmode", ":", "case", "V4SImode", ":", "subparts", "=", "4", ";", "break", ";", "case", "V8HImode", ":", "subparts", "=", "8", ";", "break", ";", "case", "V16QImode", ":", "subparts", "=", "16", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "v", "=", "rtvec_alloc", "(", "subparts", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "subparts", "/", "2", ";", "++", "i", ")", "RTVEC_ELT", "(", "v", ",", "i", ")", "=", "gen_rtx_CONST_INT", "(", "DImode", ",", "i", "+", "subparts", "/", "2", ")", ";", "for", "(", "i", "=", "subparts", "/", "2", ";", "i", "<", "subparts", ";", "++", "i", ")", "RTVEC_ELT", "(", "v", ",", "i", ")", "=", "gen_rtx_CONST_INT", "(", "DImode", ",", "i", "-", "subparts", "/", "2", ")", ";", "return", "v", ";", "}", ""], "natrual_language": ["Generate", "a", "vector", "of", "constants", "to", "permute", "MODE", "for", "a", "little-endian", "storage", "operation", "by", "swapping", "the", "two", "halves", "of", "a", "vector", "."], "TS_V_token": ["rs6000", "1", "2", "4", "8", "16", "0", "2", "2", "2", "2"], "File": "rs60004", "Func": "rs6000_const_vec", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 225, "Length": 156, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMPagerandoOptimizer", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "auto", "&", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "if", "(", "!", "F", ".", "isPagerando", "(", ")", "||", "skipFunction", "(", "F", ")", ")", "{", "return", "false", ";", "}", "auto", "BinPrefix", "=", "F", ".", "getSectionPrefix", "(", ")", ".", "getValue", "(", ")", ";", "auto", "&", "CPEntries", "=", "MF", ".", "getConstantPool", "(", ")", "->", "getConstants", "(", ")", ";", "SmallSet", "<", "int", ",", "8", ">", "CPIndices", ";", "int", "Index", "=", "0", ";", "for", "(", "auto", "&", "E", ":", "CPEntries", ")", "{", "if", "(", "isIntraBin", "(", "E", ",", "BinPrefix", ")", ")", "CPIndices", ".", "insert", "(", "Index", ")", ";", "Index", "++", ";", "}", "if", "(", "CPIndices", ".", "empty", "(", ")", ")", "return", "false", ";", "std", "::", "vector", "<", "MachineInstr", "*", ">", "Uses", ";", "for", "(", "auto", "&", "BB", ":", "MF", ")", "{", "for", "(", "auto", "&", "MI", ":", "BB", ")", "{", "int", "Index", "=", "getCPIndex", "(", "MI", ")", ";", "if", "(", "CPIndices", ".", "count", "(", "Index", ")", ")", "Uses", ".", "push_back", "(", "&", "MI", ")", ";", "}", "}", "for", "(", "auto", "*", "MI", ":", "Uses", ")", "{", "int", "Index", "=", "getCPIndex", "(", "*", "MI", ")", ";", "auto", "*", "Callee", "=", "getCallee", "(", "CPEntries", "[", "Index", "]", ")", ";", "optimizeCalls", "(", "MI", ",", "Callee", ")", ";", "}", "deleteCPEntries", "(", "MF", ",", "CPIndices", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "8", "0"], "File": "ARMPagerandoOptimizer", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 226, "Length": 222, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_function_parms_need_stack", "(", "tree", "fun", ",", "bool", "incoming", ")", "{", "tree", "fntype", ",", "result", ";", "CUMULATIVE_ARGS", "args_so_far_v", ";", "cumulative_args_t", "args_so_far", ";", "if", "(", "!", "fun", ")", "return", "false", ";", "fntype", "=", "fun", ";", "if", "(", "!", "TYPE_P", "(", "fun", ")", ")", "fntype", "=", "TREE_TYPE", "(", "fun", ")", ";", "if", "(", "(", "!", "incoming", "&&", "!", "prototype_p", "(", "fntype", ")", ")", "||", "stdarg_p", "(", "fntype", ")", ")", "return", "true", ";", "INIT_CUMULATIVE_INCOMING_ARGS", "(", "args_so_far_v", ",", "fntype", ",", "NULL_RTX", ")", ";", "args_so_far", "=", "pack_cumulative_args", "(", "&", "args_so_far_v", ")", ";", "if", "(", "incoming", ")", "{", "gcc_assert", "(", "DECL_P", "(", "fun", ")", ")", ";", "result", "=", "DECL_RESULT", "(", "fun", ")", ";", "}", "else", "result", "=", "TREE_TYPE", "(", "fntype", ")", ";", "if", "(", "result", "&&", "aggregate_value_p", "(", "result", ",", "fntype", ")", ")", "{", "if", "(", "!", "TYPE_P", "(", "result", ")", ")", "result", "=", "TREE_TYPE", "(", "result", ")", ";", "result", "=", "build_pointer_type", "(", "result", ")", ";", "rs6000_parm_needs_stack", "(", "args_so_far", ",", "result", ")", ";", "}", "if", "(", "incoming", ")", "{", "tree", "parm", ";", "for", "(", "parm", "=", "DECL_ARGUMENTS", "(", "fun", ")", ";", "parm", "&&", "parm", "!=", "void_list_node", ";", "parm", "=", "TREE_CHAIN", "(", "parm", ")", ")", "if", "(", "rs6000_parm_needs_stack", "(", "args_so_far", ",", "TREE_TYPE", "(", "parm", ")", ")", ")", "return", "true", ";", "}", "else", "{", "function_args_iterator", "args_iter", ";", "tree", "arg_type", ";", "FOREACH_FUNCTION_ARGS", "(", "fntype", ",", "arg_type", ",", "args_iter", ")", "if", "(", "rs6000_parm_needs_stack", "(", "args_so_far", ",", "arg_type", ")", ")", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "FUN", "has", "no", "prototype", ",", "has", "a", "variable", "argument", "list", ",", "or", "passes", "any", "parameter", "in", "memory", "."], "TS_V_token": ["rs6000"], "File": "rs6000-call", "Func": "rs6000_function_parms_need_stack", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 227, "Length": 237, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_const_double_prefer_rsbs_rsc", "(", "rtx", "op", ")", "{", "if", "(", "TARGET_THUMB", "||", "!", "CONST_INT_P", "(", "op", ")", ")", "return", "false", ";", "HOST_WIDE_INT", "hi", ",", "lo", ";", "lo", "=", "UINTVAL", "(", "op", ")", "&", "0xffffffffULL", ";", "hi", "=", "UINTVAL", "(", "op", ")", ">>", "32", ";", "return", "const_ok_for_arm", "(", "lo", ")", "&&", "const_ok_for_arm", "(", "hi", ")", ";", "}", ""], "natrual_language": ["Return", "TRUE", "if", "op", "is", "a", "constant", "where", "both", "the", "low", "and", "top", "words", "are", "suitable", "for", "RSB/RSC", "instructions", ".", "This", "is", "never", "true", "for", "Thumb", ",", "since", "we", "do", "not", "have", "RSC", "in", "that", "case", "."], "TS_V_token": ["arm", "0xffffffffULL", "32"], "File": "arm", "Func": "arm_const_double_prefer_rsbs_rsc", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 228, "Length": 56, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMTargetLowering", "::", "isFPImmLegal", "(", "const", "APFloat", "&", "Imm", ",", "EVT", "VT", ",", "bool", "ForCodeSize", ")", "const", "{", "if", "(", "!", "Subtarget", "->", "hasVFP3", "(", ")", ")", "return", "false", ";", "if", "(", "VT", "==", "MVT", "::", "f16", "&&", "Subtarget", "->", "hasFullFP16", "(", ")", ")", "return", "ARM_AM", "::", "getFP16Imm", "(", "Imm", ")", "!=", "-", "1", ";", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "return", "ARM_AM", "::", "getFP32Imm", "(", "Imm", ")", "!=", "-", "1", ";", "if", "(", "VT", "==", "MVT", "::", "f64", "&&", "!", "Subtarget", "->", "isFPOnlySP", "(", ")", ")", "return", "ARM_AM", "::", "getFP64Imm", "(", "Imm", ")", "!=", "-", "1", ";", "return", "false", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "can", "instruction", "select", "the", "specified", "FP", "immediate", "natively", "."], "TS_V_token": ["ARM", "ARM", "MVT::f16", "ARM_AM::getFP16Imm", "1", "MVT::f32", "ARM_AM::getFP32Imm", "1", "MVT::f64", "ARM_AM::getFP64Imm", "1"], "File": "ARMISelLowering158", "Func": "isFPImmLegal", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 229, "Length": 104, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_mode_valid_for_sched_fusion_p", "(", "machine_mode", "mode", ")", "{", "return", "mode", "==", "SImode", "||", "mode", "==", "DImode", "||", "mode", "==", "SFmode", "||", "mode", "==", "DFmode", "||", "(", "aarch64_vector_mode_supported_p", "(", "mode", ")", "&&", "(", "known_eq", "(", "GET_MODE_SIZE", "(", "mode", ")", ",", "8", ")", "||", "(", "known_eq", "(", "GET_MODE_SIZE", "(", "mode", ")", ",", "16", ")", "&&", "(", "aarch64_tune_params", ".", "extra_tuning_flags", "&", "AARCH64_EXTRA_TUNE_NO_LDP_STP_QREGS", ")", "==", "0", ")", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "MODE", "is", "one", "of", "the", "modes", "for", "which", "we", "support", "LDP/STP", "operations", "."], "TS_V_token": ["aarch64", "8", "16", "0"], "File": "aarch64", "Func": "aarch64_mode_valid_for_sched_fusion_p", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 230, "Length": 67, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "SystemZRegisterInfo", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", "MF", ",", "CallingConv", "::", "ID", "CC", ")", "const", "{", "if", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getTargetLowering", "(", ")", "->", "supportSwiftError", "(", ")", "&&", "MF", ".", "getFunction", "(", ")", ".", "getAttributes", "(", ")", ".", "hasAttrSomewhere", "(", "Attribute", "::", "SwiftError", ")", ")", "return", "CSR_SystemZ_SwiftError_RegMask", ";", "return", "CSR_SystemZ_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ", "SystemZ"], "File": "SystemZRegisterInfo39", "Func": "getCallPreservedMask", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 231, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_finish_cost", "(", "void", "*", "data", ",", "unsigned", "*", "prologue_cost", ",", "unsigned", "*", "body_cost", ",", "unsigned", "*", "epilogue_cost", ")", "{", "auto", "*", "costs", "=", "static_cast", "<", "aarch64_vector_costs", "*", ">", "(", "data", ")", ";", "*", "prologue_cost", "=", "costs", "->", "region", "[", "vect_prologue", "]", ";", "*", "body_cost", "=", "costs", "->", "region", "[", "vect_body", "]", ";", "*", "epilogue_cost", "=", "costs", "->", "region", "[", "vect_epilogue", "]", ";", "if", "(", "costs", "->", "is_loop", "&&", "costs", "->", "vec_flags", "&&", "aarch64_use_new_vector_costs_p", "(", ")", ")", "*", "body_cost", "=", "aarch64_adjust_body_cost", "(", "costs", ",", "*", "body_cost", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_VECTORIZE_FINISH_COST", "."], "TS_V_token": ["aarch64"], "File": "aarch641", "Func": "aarch64_finish_cost", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 232, "Length": 90, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "sh2a_handle_function_vector_handler_attribute", "(", "tree", "*", "node", ",", "tree", "name", ",", "tree", "args", "ATTRIBUTE_UNUSED", ",", "int", "flags", "ATTRIBUTE_UNUSED", ",", "bool", "*", "no_add_attrs", ")", "{", "if", "(", "!", "TARGET_SH2A", ")", "{", "warning", "(", "OPT_Wattributes", ",", "\"%qE attribute only applies to SH2A\"", ",", "name", ")", ";", "*", "no_add_attrs", "=", "true", ";", "}", "else", "if", "(", "TREE_CODE", "(", "*", "node", ")", "!=", "FUNCTION_DECL", ")", "{", "warning", "(", "OPT_Wattributes", ",", "\"%qE attribute only applies to functions\"", ",", "name", ")", ";", "*", "no_add_attrs", "=", "true", ";", "}", "else", "if", "(", "TREE_CODE", "(", "TREE_VALUE", "(", "args", ")", ")", "!=", "INTEGER_CST", ")", "{", "warning", "(", "OPT_Wattributes", ",", "\"%qE attribute argument not an integer constant\"", ",", "name", ")", ";", "*", "no_add_attrs", "=", "true", ";", "}", "else", "if", "(", "TREE_INT_CST_LOW", "(", "TREE_VALUE", "(", "args", ")", ")", ">", "255", ")", "{", "warning", "(", "OPT_Wattributes", ",", "\"%qE attribute argument should be between 0 to 255\"", ",", "name", ")", ";", "*", "no_add_attrs", "=", "true", ";", "}", "return", "NULL_TREE", ";", "}", ""], "natrual_language": ["Handle", "an", "'function_vector", "'", "attribute", ";", "arguments", "as", "in", "struct", "attribute_spec.handler", "."], "TS_V_token": ["sh", "\"%qE attribute only applies to SH2A\"", "\"%qE attribute only applies to functions\"", "\"%qE attribute argument not an integer constant\"", "255", "\"%qE attribute argument should be between 0 to 255\""], "File": "sh", "Func": "sh2a_handle_function_vector_handler_attribute", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 233, "Length": 134, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_set_indirect_branch_type", "(", "tree", "fndecl", ")", "{", "if", "(", "cfun", "->", "machine", "->", "indirect_branch_type", "==", "indirect_branch_unset", ")", "{", "tree", "attr", "=", "lookup_attribute", "(", "\"indirect_branch\"", ",", "DECL_ATTRIBUTES", "(", "fndecl", ")", ")", ";", "if", "(", "attr", "!=", "NULL", ")", "{", "tree", "args", "=", "TREE_VALUE", "(", "attr", ")", ";", "if", "(", "args", "==", "NULL", ")", "gcc_unreachable", "(", ")", ";", "tree", "cst", "=", "TREE_VALUE", "(", "args", ")", ";", "if", "(", "strcmp", "(", "TREE_STRING_POINTER", "(", "cst", ")", ",", "\"keep\"", ")", "==", "0", ")", "cfun", "->", "machine", "->", "indirect_branch_type", "=", "indirect_branch_keep", ";", "else", "if", "(", "strcmp", "(", "TREE_STRING_POINTER", "(", "cst", ")", ",", "\"thunk\"", ")", "==", "0", ")", "cfun", "->", "machine", "->", "indirect_branch_type", "=", "indirect_branch_thunk", ";", "else", "if", "(", "strcmp", "(", "TREE_STRING_POINTER", "(", "cst", ")", ",", "\"thunk-inline\"", ")", "==", "0", ")", "cfun", "->", "machine", "->", "indirect_branch_type", "=", "indirect_branch_thunk_inline", ";", "else", "if", "(", "strcmp", "(", "TREE_STRING_POINTER", "(", "cst", ")", ",", "\"thunk-extern\"", ")", "==", "0", ")", "cfun", "->", "machine", "->", "indirect_branch_type", "=", "indirect_branch_thunk_extern", ";", "else", "gcc_unreachable", "(", ")", ";", "}", "else", "cfun", "->", "machine", "->", "indirect_branch_type", "=", "ix86_indirect_branch", ";", "if", "(", "(", "ix86_cmodel", "==", "CM_LARGE", "||", "ix86_cmodel", "==", "CM_LARGE_PIC", ")", "&&", "(", "(", "cfun", "->", "machine", "->", "indirect_branch_type", "==", "indirect_branch_thunk_extern", ")", "||", "(", "cfun", "->", "machine", "->", "indirect_branch_type", "==", "indirect_branch_thunk", ")", ")", ")", "error", "(", "\"%<-mindirect-branch=%s%> and %<-mcmodel=large%> are not \"", "\"compatible\"", ",", "(", "(", "cfun", "->", "machine", "->", "indirect_branch_type", "==", "indirect_branch_thunk_extern", ")", "?", "\"thunk-extern\"", ":", "\"thunk\"", ")", ")", ";", "if", "(", "(", "cfun", "->", "machine", "->", "indirect_branch_type", "==", "indirect_branch_thunk_extern", ")", "&&", "flag_check_pointer_bounds", "&&", "(", "flag_cf_protection", "&", "CF_BRANCH", ")", "!=", "0", ")", "error", "(", "\"%<-mindirect-branch=thunk-extern%>, \"", "\"%<-fcf-protection=branch%> and \"", "\"%<-fcheck-pointer-bounds%> are not compatible\"", ")", ";", "}", "if", "(", "cfun", "->", "machine", "->", "function_return_type", "==", "indirect_branch_unset", ")", "{", "tree", "attr", "=", "lookup_attribute", "(", "\"function_return\"", ",", "DECL_ATTRIBUTES", "(", "fndecl", ")", ")", ";", "if", "(", "attr", "!=", "NULL", ")", "{", "tree", "args", "=", "TREE_VALUE", "(", "attr", ")", ";", "if", "(", "args", "==", "NULL", ")", "gcc_unreachable", "(", ")", ";", "tree", "cst", "=", "TREE_VALUE", "(", "args", ")", ";", "if", "(", "strcmp", "(", "TREE_STRING_POINTER", "(", "cst", ")", ",", "\"keep\"", ")", "==", "0", ")", "cfun", "->", "machine", "->", "function_return_type", "=", "indirect_branch_keep", ";", "else", "if", "(", "strcmp", "(", "TREE_STRING_POINTER", "(", "cst", ")", ",", "\"thunk\"", ")", "==", "0", ")", "cfun", "->", "machine", "->", "function_return_type", "=", "indirect_branch_thunk", ";", "else", "if", "(", "strcmp", "(", "TREE_STRING_POINTER", "(", "cst", ")", ",", "\"thunk-inline\"", ")", "==", "0", ")", "cfun", "->", "machine", "->", "function_return_type", "=", "indirect_branch_thunk_inline", ";", "else", "if", "(", "strcmp", "(", "TREE_STRING_POINTER", "(", "cst", ")", ",", "\"thunk-extern\"", ")", "==", "0", ")", "cfun", "->", "machine", "->", "function_return_type", "=", "indirect_branch_thunk_extern", ";", "else", "gcc_unreachable", "(", ")", ";", "}", "else", "cfun", "->", "machine", "->", "function_return_type", "=", "ix86_function_return", ";", "if", "(", "(", "ix86_cmodel", "==", "CM_LARGE", "||", "ix86_cmodel", "==", "CM_LARGE_PIC", ")", "&&", "(", "(", "cfun", "->", "machine", "->", "function_return_type", "==", "indirect_branch_thunk_extern", ")", "||", "(", "cfun", "->", "machine", "->", "function_return_type", "==", "indirect_branch_thunk", ")", ")", ")", "error", "(", "\"%<-mfunction-return=%s%> and %<-mcmodel=large%> are not \"", "\"compatible\"", ",", "(", "(", "cfun", "->", "machine", "->", "function_return_type", "==", "indirect_branch_thunk_extern", ")", "?", "\"thunk-extern\"", ":", "\"thunk\"", ")", ")", ";", "}", "}", ""], "natrual_language": ["Set", "the", "indirect_branch_type", "field", "from", "the", "function", "FNDECL", "."], "TS_V_token": ["i386", "\"indirect_branch\"", "\"keep\"", "0", "\"thunk\"", "0", "\"thunk-inline\"", "0", "\"thunk-extern\"", "0", "\"%<-mindirect-branch=%s%> and %<-mcmodel=large%> are not \"", "\"compatible\"", "\"thunk-extern\"", "\"thunk\"", "0", "\"%<-mindirect-branch=thunk-extern%>, \"", "\"%<-fcf-protection=branch%> and \"", "\"%<-fcheck-pointer-bounds%> are not compatible\"", "\"function_return\"", "\"keep\"", "0", "\"thunk\"", "0", "\"thunk-inline\"", "0", "\"thunk-extern\"", "0", "\"%<-mfunction-return=%s%> and %<-mcmodel=large%> are not \"", "\"compatible\"", "\"thunk-extern\"", "\"thunk\""], "File": "i3867", "Func": "ix86_set_indirect_branch_type", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 234, "Length": 478, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "emit_scc_insn", "(", "rtx", "operands", "[", "]", ")", "{", "rtx", "tem", ",", "x", ",", "y", ";", "enum", "rtx_code", "code", ";", "machine_mode", "mode", ";", "if", "(", "GET_MODE", "(", "operands", "[", "2", "]", ")", "==", "TFmode", "&&", "!", "TARGET_HARD_QUAD", ")", "{", "operands", "[", "1", "]", "=", "sparc_emit_float_lib_cmp", "(", "operands", "[", "2", "]", ",", "operands", "[", "3", "]", ",", "GET_CODE", "(", "operands", "[", "1", "]", ")", ")", ";", "operands", "[", "2", "]", "=", "XEXP", "(", "operands", "[", "1", "]", ",", "0", ")", ";", "operands", "[", "3", "]", "=", "XEXP", "(", "operands", "[", "1", "]", ",", "1", ")", ";", "}", "code", "=", "GET_CODE", "(", "operands", "[", "1", "]", ")", ";", "x", "=", "operands", "[", "2", "]", ";", "y", "=", "operands", "[", "3", "]", ";", "mode", "=", "GET_MODE", "(", "x", ")", ";", "if", "(", "(", "code", "==", "EQ", "||", "code", "==", "NE", ")", "&&", "(", "mode", "==", "SImode", "||", "mode", "==", "DImode", ")", ")", "{", "if", "(", "y", "!=", "const0_rtx", ")", "x", "=", "force_reg", "(", "mode", ",", "gen_rtx_XOR", "(", "mode", ",", "x", ",", "y", ")", ")", ";", "rtx", "pat", "=", "gen_rtx_SET", "(", "operands", "[", "0", "]", ",", "gen_rtx_fmt_ee", "(", "code", ",", "GET_MODE", "(", "operands", "[", "0", "]", ")", ",", "x", ",", "const0_rtx", ")", ")", ";", "if", "(", "mode", "==", "SImode", "||", "(", "code", "==", "NE", "&&", "TARGET_VIS3", ")", ")", "{", "rtx", "clobber", "=", "gen_rtx_CLOBBER", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "mode", "==", "SImode", "?", "CCmode", ":", "CCXmode", ",", "SPARC_ICC_REG", ")", ")", ";", "pat", "=", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "gen_rtvec", "(", "2", ",", "pat", ",", "clobber", ")", ")", ";", "}", "emit_insn", "(", "pat", ")", ";", "return", "true", ";", "}", "if", "(", "TARGET_ARCH64", "&&", "mode", "==", "DImode", "&&", "!", "(", "(", "code", "==", "LTU", "||", "code", "==", "GTU", ")", "&&", "TARGET_VIS3", ")", "&&", "gen_v9_scc", "(", "operands", "[", "0", "]", ",", "code", ",", "x", ",", "y", ")", ")", "return", "true", ";", "if", "(", "code", "==", "GTU", "||", "code", "==", "LEU", ")", "{", "if", "(", "(", "GET_CODE", "(", "x", ")", "==", "REG", "||", "GET_CODE", "(", "x", ")", "==", "SUBREG", ")", "&&", "(", "GET_CODE", "(", "y", ")", "==", "REG", "||", "GET_CODE", "(", "y", ")", "==", "SUBREG", ")", ")", "{", "tem", "=", "x", ";", "x", "=", "y", ";", "y", "=", "tem", ";", "code", "=", "swap_condition", "(", "code", ")", ";", "}", "}", "if", "(", "code", "==", "LTU", "||", "code", "==", "GEU", ")", "{", "emit_insn", "(", "gen_rtx_SET", "(", "operands", "[", "0", "]", ",", "gen_rtx_fmt_ee", "(", "code", ",", "GET_MODE", "(", "operands", "[", "0", "]", ")", ",", "gen_compare_reg_1", "(", "code", ",", "x", ",", "y", ")", ",", "const0_rtx", ")", ")", ")", ";", "return", "true", ";", "}", "if", "(", "TARGET_V9", "&&", "gen_v9_scc", "(", "operands", "[", "0", "]", ",", "code", ",", "x", ",", "y", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Emit", "an", "scc", "insn", ".", "For", "seq", ",", "sne", ",", "sgeu", ",", "and", "sltu", ",", "we", "can", "do", "this", "without", "jumps", "using", "the", "addx/subx", "instructions", "."], "TS_V_token": ["sparc", "2", "1", "2", "3", "1", "2", "1", "0", "3", "1", "1", "1", "2", "3", "0", "0", "2", "0", "0", "0", "0"], "File": "sparc", "Func": "emit_scc_insn", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 235, "Length": 444, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "encodeInstruction", "(", "const", "MCInst", "&", "MI", ",", "raw_ostream", "&", "OS", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "override", "{", "verifyInstructionPredicates", "(", "MI", ",", "computeAvailableFeatures", "(", "STI", ".", "getFeatureBits", "(", ")", ")", ")", ";", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "const", "MCInstrDesc", "&", "Desc", "=", "MCII", ".", "get", "(", "Opcode", ")", ";", "uint64_t", "Bits", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "unsigned", "Size", "=", "Desc", ".", "getSize", "(", ")", ";", "support", "::", "endianness", "E", "=", "IsLittleEndian", "?", "support", "::", "little", ":", "support", "::", "big", ";", "switch", "(", "Size", ")", "{", "case", "0", ":", "break", ";", "case", "4", ":", "support", "::", "endian", "::", "write", "<", "uint32_t", ">", "(", "OS", ",", "Bits", ",", "E", ")", ";", "break", ";", "case", "8", ":", "support", "::", "endian", "::", "write", "<", "uint32_t", ">", "(", "OS", ",", "Bits", ">>", "32", ",", "E", ")", ";", "support", "::", "endian", "::", "write", "<", "uint32_t", ">", "(", "OS", ",", "Bits", ",", "E", ")", ";", "break", ";", "default", ":", "llvm_unreachable", "(", "\"Invalid instruction size\"", ")", ";", "}", "++", "MCNumEmitted", ";", "}", ""], "natrual_language": ["Encode", "the", "given", "Inst", "to", "bytes", "and", "append", "to", "CB", "."], "TS_V_token": ["PowerPC", "support::endianness", "support::little", "support::big", "0", "4", "support::endian", "8", "support::endian", "32", "support::endian", "\"Invalid instruction size\""], "File": "PPCMCCodeEmitter21", "Func": "encodeInstruction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 236, "Length": 180, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "output_probe_stack_range", "(", "rtx", "reg1", ",", "rtx", "reg2", ")", "{", "static", "int", "labelno", "=", "0", ";", "char", "loop_lab", "[", "32", "]", ",", "end_lab", "[", "32", "]", ";", "rtx", "xops", "[", "3", "]", ";", "ASM_GENERATE_INTERNAL_LABEL", "(", "loop_lab", ",", "\"LPSRL\"", ",", "labelno", ")", ";", "ASM_GENERATE_INTERNAL_LABEL", "(", "end_lab", ",", "\"LPSRE\"", ",", "labelno", "++", ")", ";", "ASM_OUTPUT_INTERNAL_LABEL", "(", "asm_out_file", ",", "loop_lab", ")", ";", "xops", "[", "0", "]", "=", "reg1", ";", "xops", "[", "1", "]", "=", "reg2", ";", "xops", "[", "2", "]", "=", "gen_rtx_REG", "(", "BImode", ",", "PR_REG", "(", "6", ")", ")", ";", "output_asm_insn", "(", "\"cmp.eq %2, %I2 = %0, %1\"", ",", "xops", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t(%s) br.cond.dpnt \"", ",", "reg_names", "[", "REGNO", "(", "xops", "[", "2", "]", ")", "]", ")", ";", "assemble_name_raw", "(", "asm_out_file", ",", "end_lab", ")", ";", "fputc", "(", "'\\n'", ",", "asm_out_file", ")", ";", "xops", "[", "1", "]", "=", "GEN_INT", "(", "-", "PROBE_INTERVAL", ")", ";", "output_asm_insn", "(", "\"addl %0 = %1, %0\"", ",", "xops", ")", ";", "fputs", "(", "\"\\t;;\\n\"", ",", "asm_out_file", ")", ";", "output_asm_insn", "(", "\"probe.w.fault %0, 0\"", ",", "xops", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\tbr \"", ")", ";", "assemble_name_raw", "(", "asm_out_file", ",", "loop_lab", ")", ";", "fputc", "(", "'\\n'", ",", "asm_out_file", ")", ";", "ASM_OUTPUT_INTERNAL_LABEL", "(", "asm_out_file", ",", "end_lab", ")", ";", "return", "\"\"", ";", "}", ""], "natrual_language": ["Wrapper", "around", "the", "output_probe_stack_range", "routines", "."], "TS_V_token": ["ia64", "0", "32", "32", "3", "\"LPSRL\"", "\"LPSRE\"", "0", "1", "2", "6", "\"cmp.eq %2, %I2 = %0, %1\"", "\"\\t(%s) br.cond.dpnt \"", "2", "1", "\"addl %0 = %1, %0\"", "\"\\t;;\\n\"", "\"probe.w.fault %0, 0\"", "\"\\tbr \"", "\"\""], "File": "ia644", "Func": "output_probe_stack_range", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 237, "Length": 193, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "VETargetLowering", "::", "hasAndNot", "(", "SDValue", "Y", ")", "const", "{", "EVT", "VT", "=", "Y", ".", "getValueType", "(", ")", ";", "if", "(", "VT", ".", "isVector", "(", ")", ")", "return", "false", ";", "if", "(", "auto", "*", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Y", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "has", "a", "bitwise", "and-not", "operation", ":", "X", "=", "~A", "&", "B", "This", "can", "be", "used", "to", "simplify", "select", "or", "other", "instructions", "."], "TS_V_token": ["VE", "VE"], "File": "VEISelLowering", "Func": "hasAndNot", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 238, "Length": 51, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"### runOnMachineFunction\\n\"", ")", ";", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "Comet2Subtarget", ">", "(", ")", ";", "return", "SelectionDAGISel", "::", "runOnMachineFunction", "(", "MF", ")", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Comet2", "\"### runOnMachineFunction\\n\"", "Comet2"], "File": "Comet2ISelDAGToDAG", "Func": "runOnMachineFunction", "Target": "Comet2", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 239, "Length": 39, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "*", "CJGTargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MachineInstr", "&", "MI", ",", "MachineBasicBlock", "*", "BB", ")", "const", "{", "unsigned", "Opc", "=", "MI", ".", "getOpcode", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "BB", "->", "getParent", "(", ")", "->", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "DebugLoc", "dl", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "assert", "(", "Opc", "==", "CJG", "::", "Select", "&&", "\"Unexpected instr type to insert\"", ")", ";", "const", "BasicBlock", "*", "LLVM_BB", "=", "BB", "->", "getBasicBlock", "(", ")", ";", "MachineFunction", "::", "iterator", "I", "=", "++", "BB", "->", "getIterator", "(", ")", ";", "MachineBasicBlock", "*", "thisMBB", "=", "BB", ";", "MachineFunction", "*", "F", "=", "BB", "->", "getParent", "(", ")", ";", "MachineBasicBlock", "*", "copy0MBB", "=", "F", "->", "CreateMachineBasicBlock", "(", "LLVM_BB", ")", ";", "MachineBasicBlock", "*", "copy1MBB", "=", "F", "->", "CreateMachineBasicBlock", "(", "LLVM_BB", ")", ";", "F", "->", "insert", "(", "I", ",", "copy0MBB", ")", ";", "F", "->", "insert", "(", "I", ",", "copy1MBB", ")", ";", "copy1MBB", "->", "splice", "(", "copy1MBB", "->", "begin", "(", ")", ",", "BB", ",", "std", "::", "next", "(", "MachineBasicBlock", "::", "iterator", "(", "MI", ")", ")", ",", "BB", "->", "end", "(", ")", ")", ";", "copy1MBB", "->", "transferSuccessorsAndUpdatePHIs", "(", "BB", ")", ";", "BB", "->", "addSuccessor", "(", "copy0MBB", ")", ";", "BB", "->", "addSuccessor", "(", "copy1MBB", ")", ";", "BuildMI", "(", "BB", ",", "dl", ",", "TII", ".", "get", "(", "CJG", "::", "JCC", ")", ")", ".", "addMBB", "(", "copy1MBB", ")", ".", "addImm", "(", "MI", ".", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", ")", ";", "BB", "=", "copy0MBB", ";", "BB", "->", "addSuccessor", "(", "copy1MBB", ")", ";", "BB", "=", "copy1MBB", ";", "BuildMI", "(", "*", "BB", ",", "BB", "->", "begin", "(", ")", ",", "dl", ",", "TII", ".", "get", "(", "CJG", "::", "PHI", ")", ",", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ")", ".", "addReg", "(", "MI", ".", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "copy0MBB", ")", ".", "addReg", "(", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "thisMBB", ")", ";", "MI", ".", "eraseFromParent", "(", ")", ";", "return", "BB", ";", "}", ""], "natrual_language": ["This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'usesCustomInserter", "'", "flag", "."], "TS_V_token": ["CJG", "CJG", "CJG::Select", "\"Unexpected instr type to insert\"", "CJG::JCC", "3", "CJG::PHI", "0", "2", "1"], "File": "CJGISelLowering", "Func": "EmitInstrWithCustomInserter", "Target": "CJG", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 240, "Length": 328, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMSubtarget", "::", "enablePostRAScheduler", "(", ")", "const", "{", "if", "(", "enableMachineScheduler", "(", ")", ")", "return", "false", ";", "if", "(", "disablePostRAScheduler", "(", ")", ")", "return", "false", ";", "return", "!", "isThumb1Only", "(", ")", ";", "}", ""], "natrual_language": ["True", "if", "the", "subtarget", "should", "run", "a", "scheduler", "after", "register", "allocation", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMSubtarget37", "Func": "enablePostRAScheduler", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 241, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "analyzeCompare", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "&", "SrcReg", ",", "unsigned", "&", "SrcReg2", ",", "int", "&", "CmpMask", ",", "int", "&", "CmpValue", ")", "const", "{", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "AArch64", "::", "SUBSWrr", ":", "case", "AArch64", "::", "SUBSWrs", ":", "case", "AArch64", "::", "SUBSWrx", ":", "case", "AArch64", "::", "SUBSXrr", ":", "case", "AArch64", "::", "SUBSXrs", ":", "case", "AArch64", "::", "SUBSXrx", ":", "case", "AArch64", "::", "ADDSWrr", ":", "case", "AArch64", "::", "ADDSWrs", ":", "case", "AArch64", "::", "ADDSWrx", ":", "case", "AArch64", "::", "ADDSXrr", ":", "case", "AArch64", "::", "ADDSXrs", ":", "case", "AArch64", "::", "ADDSXrx", ":", "SrcReg", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "MI", "->", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ";", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "0", ";", "return", "true", ";", "case", "AArch64", "::", "SUBSWri", ":", "case", "AArch64", "::", "ADDSWri", ":", "case", "AArch64", "::", "SUBSXri", ":", "case", "AArch64", "::", "ADDSXri", ":", "SrcReg", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "0", ";", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "MI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "return", "true", ";", "case", "AArch64", "::", "ANDSWri", ":", "case", "AArch64", "::", "ANDSXri", ":", "SrcReg", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "0", ";", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "AArch64_AM", "::", "decodeLogicalImmediate", "(", "MI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ",", "MI", "->", "getOpcode", "(", ")", "==", "AArch64", "::", "ANDSWri", "?", "32", ":", "64", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["analyzeCompare", "-", "For", "a", "comparison", "instruction", ",", "return", "the", "source", "registers", "in", "SrcReg", "and", "SrcReg2", "if", "having", "two", "register", "operands", ",", "and", "the", "value", "it", "compares", "against", "in", "CmpValue", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::SUBSWrr", "AArch64::SUBSWrs", "AArch64::SUBSWrx", "AArch64::SUBSXrr", "AArch64::SUBSXrs", "AArch64::SUBSXrx", "AArch64::ADDSWrr", "AArch64::ADDSWrs", "AArch64::ADDSWrx", "AArch64::ADDSXrr", "AArch64::ADDSXrs", "AArch64::ADDSXrx", "1", "2", "0", "0", "AArch64::SUBSWri", "AArch64::ADDSWri", "AArch64::SUBSXri", "AArch64::ADDSXri", "1", "0", "0", "2", "AArch64::ANDSWri", "AArch64::ANDSXri", "1", "0", "0", "AArch64_AM::decodeLogicalImmediate", "2", "AArch64::ANDSWri", "32", "64"], "File": "AArch64InstrInfo4", "Func": "analyzeCompare", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 242, "Length": 269, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "RegisterBankInfo", "*", "PPCSubtarget", "::", "getRegBankInfo", "(", ")", "const", "{", "return", "RegBankInfo", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["If", "the", "information", "for", "the", "register", "banks", "is", "available", ",", "return", "it", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCSubtarget13", "Func": "getRegBankInfo", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 243, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCSubtarget", "::", "enablePostRAScheduler", "(", "CodeGenOpt", "::", "Level", "OptLevel", ",", "TargetSubtargetInfo", "::", "AntiDepBreakMode", "&", "Mode", ",", "RegClassVector", "&", "CriticalPathRCs", ")", "const", "{", "if", "(", "DarwinDirective", "==", "PPC", "::", "DIR_440", ")", "return", "false", ";", "Mode", "=", "TargetSubtargetInfo", "::", "ANTIDEP_CRITICAL", ";", "CriticalPathRCs", ".", "clear", "(", ")", ";", "if", "(", "isPPC64", "(", ")", ")", "CriticalPathRCs", ".", "push_back", "(", "&", "PPC", "::", "G8RCRegClass", ")", ";", "else", "CriticalPathRCs", ".", "push_back", "(", "&", "PPC", "::", "GPRCRegClass", ")", ";", "return", "OptLevel", ">=", "CodeGenOpt", "::", "Default", ";", "}", ""], "natrual_language": ["True", "if", "the", "subtarget", "should", "run", "a", "scheduler", "after", "register", "allocation", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::DIR_440", "PPC", "PPC::G8RCRegClass", "PPC::GPRCRegClass"], "File": "PPCSubtarget45", "Func": "enablePostRAScheduler", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 244, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "VariantKind", "getKind", "(", ")", "const", "{", "return", "Kind", ";", "}", ""], "natrual_language": ["Returns", "the", "Kind", "of", "lane", "offset", "."], "TS_V_token": ["VE"], "File": "VEMCExpr", "Func": "getKind", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 245, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_is_empty_record", "(", "const_tree", "type", ")", "{", "if", "(", "!", "TARGET_64BIT", ")", "return", "false", ";", "return", "default_is_empty_record", "(", "type", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_EMPTY_RECORD_P", "."], "TS_V_token": ["i386"], "File": "i386", "Func": "ix86_is_empty_record", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 246, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mips_linked_madd_p", "(", "rtx_insn", "*", "out_insn", ",", "rtx_insn", "*", "in_insn", ")", "{", "enum", "attr_accum_in", "accum_in", ";", "int", "accum_in_opnum", ";", "rtx", "accum_in_op", ";", "if", "(", "recog_memoized", "(", "in_insn", ")", "<", "0", ")", "return", "false", ";", "accum_in", "=", "get_attr_accum_in", "(", "in_insn", ")", ";", "if", "(", "accum_in", "==", "ACCUM_IN_NONE", ")", "return", "false", ";", "accum_in_opnum", "=", "accum_in", "-", "ACCUM_IN_0", ";", "extract_insn", "(", "in_insn", ")", ";", "gcc_assert", "(", "accum_in_opnum", "<", "recog_data", ".", "n_operands", ")", ";", "accum_in_op", "=", "recog_data", ".", "operand", "[", "accum_in_opnum", "]", ";", "return", "reg_set_p", "(", "accum_in_op", ",", "out_insn", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "INSN", "is", "a", "multiply-add", "or", "multiply-subtract", "instruction", "and", "PREV", "assigns", "to", "the", "accumulator", "operand", "."], "TS_V_token": ["mips", "0"], "File": "mips", "Func": "mips_linked_madd_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 247, "Length": 88, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "X86Subtarget", "::", "X86Subtarget", "(", "const", "std", "::", "string", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "unsigned", "StackAlignOverride", ")", ":", "X86GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "X86ProcFamily", "(", "Others", ")", ",", "PICStyle", "(", "PICStyles", "::", "None", ")", ",", "TargetTriple", "(", "TT", ")", ",", "StackAlignOverride", "(", "StackAlignOverride", ")", ",", "In64BitMode", "(", "TargetTriple", ".", "getArch", "(", ")", "==", "Triple", "::", "x86_64", ")", ",", "In32BitMode", "(", "TargetTriple", ".", "getArch", "(", ")", "==", "Triple", "::", "x86", "&&", "TargetTriple", ".", "getEnvironment", "(", ")", "!=", "Triple", "::", "CODE16", ")", ",", "In16BitMode", "(", "TargetTriple", ".", "getArch", "(", ")", "==", "Triple", "::", "x86", "&&", "TargetTriple", ".", "getEnvironment", "(", ")", "==", "Triple", "::", "CODE16", ")", "{", "initializeEnvironment", "(", ")", ";", "resetSubtargetFeatures", "(", "CPU", ",", "FS", ")", ";", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86"], "File": "X86Subtarget30", "Func": "X86Subtarget", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 248, "Length": 131, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "PPCTargetLowering", "::", "LowerOperation", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Wasn't expecting to be able to lower this!\"", ")", ";", "case", "ISD", "::", "ConstantPool", ":", "return", "LowerConstantPool", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BlockAddress", ":", "return", "LowerBlockAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "GlobalAddress", ":", "return", "LowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "GlobalTLSAddress", ":", "return", "LowerGlobalTLSAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "JumpTable", ":", "return", "LowerJumpTable", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SETCC", ":", "return", "LowerSETCC", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "INIT_TRAMPOLINE", ":", "return", "LowerINIT_TRAMPOLINE", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "ADJUST_TRAMPOLINE", ":", "return", "LowerADJUST_TRAMPOLINE", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "VASTART", ":", "return", "LowerVASTART", "(", "Op", ",", "DAG", ",", "PPCSubTarget", ")", ";", "case", "ISD", "::", "VAARG", ":", "return", "LowerVAARG", "(", "Op", ",", "DAG", ",", "PPCSubTarget", ")", ";", "case", "ISD", "::", "STACKRESTORE", ":", "return", "LowerSTACKRESTORE", "(", "Op", ",", "DAG", ",", "PPCSubTarget", ")", ";", "case", "ISD", "::", "DYNAMIC_STACKALLOC", ":", "return", "LowerDYNAMIC_STACKALLOC", "(", "Op", ",", "DAG", ",", "PPCSubTarget", ")", ";", "case", "ISD", "::", "SELECT_CC", ":", "return", "LowerSELECT_CC", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "FP_TO_UINT", ":", "case", "ISD", "::", "FP_TO_SINT", ":", "return", "LowerFP_TO_INT", "(", "Op", ",", "DAG", ",", "Op", ".", "getDebugLoc", "(", ")", ")", ";", "case", "ISD", "::", "SINT_TO_FP", ":", "return", "LowerSINT_TO_FP", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "FLT_ROUNDS_", ":", "return", "LowerFLT_ROUNDS_", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SHL_PARTS", ":", "return", "LowerSHL_PARTS", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SRL_PARTS", ":", "return", "LowerSRL_PARTS", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SRA_PARTS", ":", "return", "LowerSRA_PARTS", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BUILD_VECTOR", ":", "return", "LowerBUILD_VECTOR", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "VECTOR_SHUFFLE", ":", "return", "LowerVECTOR_SHUFFLE", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "INTRINSIC_WO_CHAIN", ":", "return", "LowerINTRINSIC_WO_CHAIN", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SCALAR_TO_VECTOR", ":", "return", "LowerSCALAR_TO_VECTOR", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "MUL", ":", "return", "LowerMUL", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "RETURNADDR", ":", "return", "LowerRETURNADDR", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "FRAMEADDR", ":", "return", "LowerFRAMEADDR", "(", "Op", ",", "DAG", ")", ";", "}", "}", ""], "natrual_language": ["LowerOperation", "-", "Provide", "custom", "lowering", "hooks", "for", "some", "operations", "."], "TS_V_token": ["PowerPC", "PPC", "\"Wasn't expecting to be able to lower this!\"", "ISD::ConstantPool", "ISD::BlockAddress", "ISD::GlobalAddress", "ISD::GlobalTLSAddress", "ISD::JumpTable", "ISD::SETCC", "ISD::INIT_TRAMPOLINE", "ISD::ADJUST_TRAMPOLINE", "ISD::VASTART", "PPC", "ISD::VAARG", "PPC", "ISD::STACKRESTORE", "PPC", "ISD::DYNAMIC_STACKALLOC", "PPC", "ISD::SELECT_CC", "ISD::FP_TO_UINT", "ISD::FP_TO_SINT", "ISD::SINT_TO_FP", "ISD::FLT_ROUNDS_", "ISD::SHL_PARTS", "ISD::SRL_PARTS", "ISD::SRA_PARTS", "ISD::BUILD_VECTOR", "ISD::VECTOR_SHUFFLE", "ISD::INTRINSIC_WO_CHAIN", "ISD::SCALAR_TO_VECTOR", "ISD::MUL", "ISD::RETURNADDR", "ISD::FRAMEADDR"], "File": "PPCISelLowering105", "Func": "LowerOperation", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 249, "Length": 389, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "push_minipool_barrier", "(", "rtx_insn", "*", "insn", ",", "HOST_WIDE_INT", "address", ")", "{", "Mfix", "*", "fix", "=", "(", "Mfix", "*", ")", "obstack_alloc", "(", "&", "minipool_obstack", ",", "sizeof", "(", "*", "fix", ")", ")", ";", "fix", "->", "insn", "=", "insn", ";", "fix", "->", "address", "=", "address", ";", "fix", "->", "next", "=", "NULL", ";", "if", "(", "minipool_fix_head", "!=", "NULL", ")", "minipool_fix_tail", "->", "next", "=", "fix", ";", "else", "minipool_fix_head", "=", "fix", ";", "minipool_fix_tail", "=", "fix", ";", "}", ""], "natrual_language": ["Record", "that", "there", "is", "a", "natural", "barrier", "in", "the", "insn", "stream", "at", "ADDRESS", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "push_minipool_barrier", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 250, "Length": 72, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_add_gc_roots", "(", ")", "{", "ggc_add_rtx_root", "(", "&", "mips_load_reg", ",", "1", ")", ";", "ggc_add_rtx_root", "(", "&", "mips_load_reg2", ",", "1", ")", ";", "ggc_add_rtx_root", "(", "&", "mips_load_reg3", ",", "1", ")", ";", "ggc_add_rtx_root", "(", "&", "mips_load_reg4", ",", "1", ")", ";", "ggc_add_rtx_root", "(", "branch_cmp", ",", "sizeof", "(", "branch_cmp", ")", "/", "sizeof", "(", "rtx", ")", ")", ";", "ggc_add_rtx_root", "(", "&", "embedded_pic_fnaddr_rtx", ",", "1", ")", ";", "ggc_add_rtx_root", "(", "&", "mips16_gp_pseudo_rtx", ",", "1", ")", ";", "}", ""], "natrual_language": ["Called", "to", "register", "all", "of", "our", "global", "variables", "with", "the", "garbage", "collector", "."], "TS_V_token": ["mips", "1", "1", "1", "1", "1", "1"], "File": "mips2", "Func": "mips_add_gc_roots", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 251, "Length": 70, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsInstrInfo", "::", "HasFPUDelaySlot", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "case", "Mips", "::", "MTC1", ":", "case", "Mips", "::", "MFC1", ":", "case", "Mips", "::", "MTC1_D64", ":", "case", "Mips", "::", "MFC1_D64", ":", "case", "Mips", "::", "DMTC1", ":", "case", "Mips", "::", "DMFC1", ":", "case", "Mips", "::", "FCMP_S32", ":", "case", "Mips", "::", "FCMP_D32", ":", "case", "Mips", "::", "FCMP_D64", ":", "return", "true", ";", "default", ":", "return", "false", ";", "}", "}", ""], "natrual_language": ["Predicate", "to", "determine", "if", "an", "instruction", "has", "an", "FPU", "delay", "slot", "."], "TS_V_token": ["Mips", "Mips", "Mips::MTC1", "Mips::MFC1", "Mips::MTC1_D64", "Mips::MFC1_D64", "Mips::DMTC1", "Mips::DMFC1", "Mips::FCMP_S32", "Mips::FCMP_D32", "Mips::FCMP_D64"], "File": "MipsInstrInfo29", "Func": "HasFPUDelaySlot", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 252, "Length": 76, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86IntelInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "uint64_t", "Address", ",", "StringRef", "Annot", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "raw_ostream", "&", "OS", ")", "{", "printInstFlags", "(", "MI", ",", "OS", ")", ";", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "X86", "::", "DATA16_PREFIX", "&&", "STI", ".", "getFeatureBits", "(", ")", "[", "X86", "::", "Mode16Bit", "]", ")", "{", "OS", "<<", "\"\\tdata32\"", ";", "}", "else", "if", "(", "!", "printAliasInstr", "(", "MI", ",", "Address", ",", "OS", ")", "&&", "!", "printVecCompareInstr", "(", "MI", ",", "OS", ")", ")", "printInstruction", "(", "MI", ",", "Address", ",", "OS", ")", ";", "printAnnotation", "(", "OS", ",", "Annot", ")", ";", "if", "(", "CommentStream", ")", "EmitAnyX86InstComments", "(", "MI", ",", "*", "CommentStream", ",", "MII", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["X86", "X86", "X86::DATA16_PREFIX", "X86::Mode16Bit", "\"\\tdata32\"", "X86"], "File": "X86IntelInstPrinter21", "Func": "printInst", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 253, "Length": 114, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "LLVM_DUMP_METHOD", "void", "dump", "(", "const", "MachineRegisterInfo", "*", "MRI", ")", "const", "{", "dbgs", "(", ")", "<<", "\"Registers: \"", ";", "bool", "First", "=", "true", ";", "for", "(", "Register", "Reg", ":", "Edges", ")", "{", "if", "(", "!", "First", ")", "dbgs", "(", ")", "<<", "\", \"", ";", "First", "=", "false", ";", "dbgs", "(", ")", "<<", "printReg", "(", "Reg", ",", "MRI", "->", "getTargetRegisterInfo", "(", ")", ",", "0", ",", "MRI", ")", ";", "}", "dbgs", "(", ")", "<<", "\"\\n\"", "<<", "\"Instructions:\"", ";", "for", "(", "MachineInstr", "*", "MI", ":", "Instrs", ")", "{", "dbgs", "(", ")", "<<", "\"\\n \"", ";", "MI", "->", "print", "(", "dbgs", "(", ")", ")", ";", "}", "dbgs", "(", ")", "<<", "\"\\n\"", ";", "}", ""], "natrual_language": ["Dump", "the", "plan", "to", "stderr", "(", "for", "debugging", ")", "."], "TS_V_token": ["X86", "\"Registers: \"", "\", \"", "0", "\"\\n\"", "\"Instructions:\"", "\"\\n \"", "\"\\n\""], "File": "X86DomainReassignment11", "Func": "dump", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 254, "Length": 105, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "get_memref_parts", "(", "rtx", "mem", ",", "rtx", "*", "base", ",", "HOST_WIDE_INT", "*", "offset", ",", "HOST_WIDE_INT", "*", "size", ")", "{", "rtx", "addr_rtx", ";", "if", "(", "MEM_SIZE_KNOWN_P", "(", "mem", ")", ")", "*", "size", "=", "MEM_SIZE", "(", "mem", ")", ";", "else", "return", "false", ";", "addr_rtx", "=", "(", "XEXP", "(", "mem", ",", "0", ")", ")", ";", "if", "(", "GET_CODE", "(", "addr_rtx", ")", "==", "PRE_MODIFY", ")", "addr_rtx", "=", "XEXP", "(", "addr_rtx", ",", "1", ")", ";", "*", "offset", "=", "0", ";", "while", "(", "GET_CODE", "(", "addr_rtx", ")", "==", "PLUS", "&&", "CONST_INT_P", "(", "XEXP", "(", "addr_rtx", ",", "1", ")", ")", ")", "{", "*", "offset", "+=", "INTVAL", "(", "XEXP", "(", "addr_rtx", ",", "1", ")", ")", ";", "addr_rtx", "=", "XEXP", "(", "addr_rtx", ",", "0", ")", ";", "}", "if", "(", "!", "REG_P", "(", "addr_rtx", ")", ")", "return", "false", ";", "*", "base", "=", "addr_rtx", ";", "return", "true", ";", "}", ""], "natrual_language": ["Try", "to", "determine", "base/offset/size", "parts", "of", "the", "given", "MEM", ".", "Return", "true", "if", "successful", ",", "false", "if", "all", "the", "values", "could", "n't", "be", "determined", ".", "This", "function", "only", "looks", "for", "REG", "or", "REG+CONST", "address", "forms", ".", "REG+REG", "address", "form", "will", "return", "false", "."], "TS_V_token": ["rs6000", "0", "1", "0", "1", "1", "0"], "File": "rs60001", "Func": "get_memref_parts", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 255, "Length": 139, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "X86TargetMachine", "::", "X86TargetMachine", "(", "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", ",", "computeDataLayout", "(", "TT", ")", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "getEffectiveRelocModel", "(", "TT", ",", "RM", ")", ",", "getEffectiveCodeModel", "(", "CM", ",", "JIT", ",", "TT", ".", "getArch", "(", ")", "==", "Triple", "::", "x86_64", ")", ",", "OL", ")", ",", "TLOF", "(", "createTLOF", "(", "getTargetTriple", "(", ")", ")", ")", "{", "if", "(", "(", "TT", ".", "isOSWindows", "(", ")", "&&", "TT", ".", "getArch", "(", ")", "==", "Triple", "::", "x86_64", ")", "||", "TT", ".", "isPS4", "(", ")", "||", "TT", ".", "isOSBinFormatMachO", "(", ")", ")", "this", "->", "Options", ".", "TrapUnreachable", "=", "true", ";", "initAsmInfo", "(", ")", ";", "}", ""], "natrual_language": ["Create", "an", "X86", "target", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86TargetMachine38", "Func": "X86TargetMachine", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 256, "Length": 149, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64Operand", "::", "print", "(", "raw_ostream", "&", "OS", ")", "const", "{", "switch", "(", "Kind", ")", "{", "case", "k_FPImm", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "k_Barrier", ":", "{", "StringRef", "Name", "=", "getBarrierName", "(", ")", ";", "if", "(", "!", "Name", ".", "empty", "(", ")", ")", "OS", "<<", "\"\"", ";", "else", "OS", "<<", "\"\"", ";", "break", ";", "}", "case", "k_Immediate", ":", "OS", "<<", "*", "getImm", "(", ")", ";", "break", ";", "case", "k_ShiftedImm", ":", "{", "unsigned", "Shift", "=", "getShiftedImmShift", "(", ")", ";", "OS", "<<", "\"\"", ";", "break", ";", "}", "case", "k_CondCode", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "k_VectorList", ":", "{", "OS", "<<", "\"\"", ";", "break", ";", "}", "case", "k_VectorIndex", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "k_SysReg", ":", "OS", "<<", "\"'", ";", "break", ";", "case", "k_Token", ":", "OS", "<<", "\"'\"", "<<", "getToken", "(", ")", "<<", "\"'\"", ";", "break", ";", "case", "k_SysCR", ":", "OS", "<<", "\"c\"", "<<", "getSysCR", "(", ")", ";", "break", ";", "case", "k_Prefetch", ":", "{", "StringRef", "Name", "=", "getPrefetchName", "(", ")", ";", "if", "(", "!", "Name", ".", "empty", "(", ")", ")", "OS", "<<", "\"\"", ";", "else", "OS", "<<", "\"\"", ";", "break", ";", "}", "case", "k_PSBHint", ":", "OS", "<<", "getPSBHintName", "(", ")", ";", "break", ";", "case", "k_Register", ":", "OS", "<<", "\"\"", ";", "if", "(", "!", "getShiftExtendAmount", "(", ")", "&&", "!", "hasShiftExtendAmount", "(", ")", ")", "break", ";", "LLVM_FALLTHROUGH", ";", "case", "k_BTIHint", ":", "OS", "<<", "getBTIHintName", "(", ")", ";", "break", ";", "case", "k_ShiftExtend", ":", "OS", "<<", "\"<\"", "<<", "AArch64_AM", "::", "getShiftExtendName", "(", "getShiftExtendType", "(", ")", ")", "<<", "\" #\"", "<<", "getShiftExtendAmount", "(", ")", ";", "if", "(", "!", "hasShiftExtendAmount", "(", ")", ")", "OS", "<<", "\"\"", ";", "OS", "<<", "'>'", ";", "break", ";", "}", "}", ""], "natrual_language": ["print", "-", "Print", "a", "debug", "representation", "of", "the", "operand", "to", "the", "given", "stream", "."], "TS_V_token": ["AArch64", "AArch64", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"<\"", "AArch64_AM::getShiftExtendName", "\" #\"", "\"\""], "File": "AArch64AsmParser (2)2", "Func": "print", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 257, "Length": 401, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "validate_condition_mode", "(", "enum", "rtx_code", "code", ",", "machine_mode", "mode", ")", "{", "gcc_assert", "(", "(", "GET_RTX_CLASS", "(", "code", ")", "==", "RTX_COMPARE", "||", "GET_RTX_CLASS", "(", "code", ")", "==", "RTX_COMM_COMPARE", ")", "&&", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_CC", ")", ";", "gcc_assert", "(", "(", "code", "!=", "GT", "&&", "code", "!=", "LT", "&&", "code", "!=", "GE", "&&", "code", "!=", "LE", ")", "||", "mode", "!=", "CCUNSmode", ")", ";", "gcc_assert", "(", "(", "code", "!=", "GTU", "&&", "code", "!=", "LTU", "&&", "code", "!=", "GEU", "&&", "code", "!=", "LEU", ")", "||", "mode", "==", "CCUNSmode", ")", ";", "gcc_assert", "(", "mode", "==", "CCFPmode", "||", "(", "code", "!=", "ORDERED", "&&", "code", "!=", "UNORDERED", "&&", "code", "!=", "UNEQ", "&&", "code", "!=", "LTGT", "&&", "code", "!=", "UNGT", "&&", "code", "!=", "UNLT", "&&", "code", "!=", "UNGE", "&&", "code", "!=", "UNLE", ")", ")", ";", "gcc_assert", "(", "mode", "!=", "CCEQmode", "||", "code", "==", "EQ", "||", "code", "==", "NE", ")", ";", "}", ""], "natrual_language": ["A", "validation", "routine", ":", "say", "whether", "CODE", ",", "a", "condition", "code", ",", "and", "MODE", "match", ".", "The", "other", "alternatives", "either", "do", "n't", "make", "sense", "or", "should", "never", "be", "generated", "."], "TS_V_token": ["rs6000"], "File": "rs6000", "Func": "validate_condition_mode", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 258, "Length": 144, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Mips16FrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "assert", "(", "&", "MF", ".", "front", "(", ")", "==", "&", "MBB", "&&", "\"Shrink-wrapping not yet supported\"", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "Mips16InstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "Mips16InstrInfo", "*", ">", "(", "STI", ".", "getInstrInfo", "(", ")", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "begin", "(", ")", ";", "DebugLoc", "dl", ";", "uint64_t", "StackSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "if", "(", "StackSize", "==", "0", "&&", "!", "MFI", ".", "adjustsStack", "(", ")", ")", "return", ";", "MachineModuleInfo", "&", "MMI", "=", "MF", ".", "getMMI", "(", ")", ";", "const", "MCRegisterInfo", "*", "MRI", "=", "MMI", ".", "getContext", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "MachineLocation", "DstML", ",", "SrcML", ";", "TII", ".", "makeFrame", "(", "Mips", "::", "SP", ",", "StackSize", ",", "MBB", ",", "MBBI", ")", ";", "unsigned", "CFIIndex", "=", "MF", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createDefCfaOffset", "(", "nullptr", ",", "-", "StackSize", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", "=", "MFI", ".", "getCalleeSavedInfo", "(", ")", ";", "if", "(", "!", "CSI", ".", "empty", "(", ")", ")", "{", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", "=", "MFI", ".", "getCalleeSavedInfo", "(", ")", ";", "for", "(", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "::", "const_iterator", "I", "=", "CSI", ".", "begin", "(", ")", ",", "E", "=", "CSI", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "int64_t", "Offset", "=", "MFI", ".", "getObjectOffset", "(", "I", "->", "getFrameIdx", "(", ")", ")", ";", "unsigned", "Reg", "=", "I", "->", "getReg", "(", ")", ";", "unsigned", "DReg", "=", "MRI", "->", "getDwarfRegNum", "(", "Reg", ",", "true", ")", ";", "unsigned", "CFIIndex", "=", "MF", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createOffset", "(", "nullptr", ",", "DReg", ",", "Offset", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";", "}", "}", "if", "(", "hasFP", "(", "MF", ")", ")", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "Mips", "::", "MoveR3216", ")", ",", "Mips", "::", "S0", ")", ".", "addReg", "(", "Mips", "::", "SP", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ";", "}", ""], "natrual_language": ["emitProlog/emitEpilog", "-", "These", "methods", "insert", "prolog", "and", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["Mips", "Mips", "\"Shrink-wrapping not yet supported\"", "Mips", "Mips", "0", "Mips::SP", "Mips::MoveR3216", "Mips::S0", "Mips::SP"], "File": "Mips16FrameLowering21", "Func": "emitPrologue", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 259, "Length": 383, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseRegisterInfo", "::", "shouldCoalesce", "(", "MachineInstr", "*", "MI", ",", "const", "TargetRegisterClass", "*", "SrcRC", ",", "unsigned", "SubReg", ",", "const", "TargetRegisterClass", "*", "DstRC", ",", "unsigned", "DstSubReg", ",", "const", "TargetRegisterClass", "*", "NewRC", ",", "LiveIntervals", "&", "LIS", ")", "const", "{", "auto", "MBB", "=", "MI", "->", "getParent", "(", ")", ";", "auto", "MF", "=", "MBB", "->", "getParent", "(", ")", ";", "const", "MachineRegisterInfo", "&", "MRI", "=", "MF", "->", "getRegInfo", "(", ")", ";", "if", "(", "!", "DstSubReg", ")", "return", "true", ";", "if", "(", "getRegSizeInBits", "(", "*", "NewRC", ")", "<", "256", "&&", "getRegSizeInBits", "(", "*", "DstRC", ")", "<", "256", "&&", "getRegSizeInBits", "(", "*", "SrcRC", ")", "<", "256", ")", "return", "true", ";", "auto", "NewRCWeight", "=", "MRI", ".", "getTargetRegisterInfo", "(", ")", "->", "getRegClassWeight", "(", "NewRC", ")", ";", "auto", "SrcRCWeight", "=", "MRI", ".", "getTargetRegisterInfo", "(", ")", "->", "getRegClassWeight", "(", "SrcRC", ")", ";", "auto", "DstRCWeight", "=", "MRI", ".", "getTargetRegisterInfo", "(", ")", "->", "getRegClassWeight", "(", "DstRC", ")", ";", "if", "(", "SrcRCWeight", ".", "RegWeight", ">", "NewRCWeight", ".", "RegWeight", ")", "return", "true", ";", "if", "(", "DstRCWeight", ".", "RegWeight", ">", "NewRCWeight", ".", "RegWeight", ")", "return", "true", ";", "auto", "AFI", "=", "MF", "->", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "auto", "It", "=", "AFI", "->", "getCoalescedWeight", "(", "MBB", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"\\tARM::shouldCoalesce - Coalesced Weight: \"", "<<", "It", "->", "second", "<<", "\"\\n\"", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"\\tARM::shouldCoalesce - Reg Weight: \"", "<<", "NewRCWeight", ".", "RegWeight", "<<", "\"\\n\"", ")", ";", "unsigned", "SizeMultiplier", "=", "MBB", "->", "size", "(", ")", "/", "100", ";", "SizeMultiplier", "=", "SizeMultiplier", "?", "SizeMultiplier", ":", "1", ";", "if", "(", "It", "->", "second", "<", "NewRCWeight", ".", "WeightLimit", "*", "SizeMultiplier", ")", "{", "It", "->", "second", "+=", "NewRCWeight", ".", "RegWeight", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Subtarget", "Hooks", "."], "TS_V_token": ["ARM", "ARM", "256", "256", "256", "ARM", "\"\\tARM::shouldCoalesce - Coalesced Weight: \"", "\"\\n\"", "\"\\tARM::shouldCoalesce - Reg Weight: \"", "\"\\n\"", "100", "1"], "File": "ARMBaseRegisterInfo23", "Func": "shouldCoalesce", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 260, "Length": 270, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "XNCMTargetLowering", "::", "isZExtFree", "(", "EVT", "VT1", ",", "EVT", "VT2", ")", "const", "{", "return", "0", "&&", "VT1", "==", "MVT", "::", "i8", "&&", "VT2", "==", "MVT", "::", "i16", ";", "}", ""], "natrual_language": ["Return", "true", "if", "zero-extending", "the", "specific", "node", "Val", "to", "type", "VT2", "is", "free", "(", "either", "because", "it", "'s", "implicitly", "zero-extended", "such", "as", "ARM", "ldrb", "/", "ldrh", "or", "because", "it", "'s", "folded", "such", "as", "X86", "zero-extending", "loads", ")", "."], "TS_V_token": ["XNCM", "XNCM", "0", "MVT::i8", "MVT::i16"], "File": "XNCMISelLowering", "Func": "isZExtFree", "Target": "XNCM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 261, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SMLoc", "getStartLoc", "(", ")", "const", "override", "{", "return", "StartLoc", ";", "}", ""], "natrual_language": ["getStartLoc", "-", "Get", "the", "location", "of", "the", "first", "token", "of", "this", "operand", "."], "TS_V_token": ["LoongArch"], "File": "LoongArchAsmParser", "Func": "getStartLoc", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 262, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64FrameLowering", "::", "canUseRedZone", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "if", "(", "!", "EnableRedZone", ")", "return", "false", ";", "if", "(", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "Attribute", "::", "NoRedZone", ")", ")", "return", "false", ";", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "AArch64FunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "AArch64FunctionInfo", ">", "(", ")", ";", "unsigned", "NumBytes", "=", "AFI", "->", "getLocalStackSize", "(", ")", ";", "return", "!", "(", "MFI", ".", "hasCalls", "(", ")", "||", "hasFP", "(", "MF", ")", "||", "NumBytes", ">", "128", ")", ";", "}", ""], "natrual_language": ["Can", "this", "function", "use", "the", "red", "zone", "for", "local", "allocations", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "128"], "File": "AArch64FrameLowering10", "Func": "canUseRedZone", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 263, "Length": 92, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "assignValueToReg", "(", "unsigned", "ValVReg", ",", "unsigned", "PhysReg", ",", "CCValAssign", "&", "VA", ")", "override", "{", "markPhysRegUsed", "(", "PhysReg", ")", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "default", ":", "{", "unsigned", "PhysRegSize", "=", "MRI", ".", "getTargetRegisterInfo", "(", ")", "->", "getRegSizeInBits", "(", "PhysReg", ",", "MRI", ")", ";", "unsigned", "ValSize", "=", "VA", ".", "getValVT", "(", ")", ".", "getSizeInBits", "(", ")", ";", "unsigned", "LocSize", "=", "VA", ".", "getLocVT", "(", ")", ".", "getSizeInBits", "(", ")", ";", "if", "(", "PhysRegSize", ">", "ValSize", "&&", "LocSize", "==", "ValSize", ")", "{", "auto", "Copy", "=", "MIRBuilder", ".", "buildCopy", "(", "LLT", "::", "scalar", "(", "PhysRegSize", ")", ",", "PhysReg", ")", ";", "MIRBuilder", ".", "buildTrunc", "(", "ValVReg", ",", "Copy", ")", ";", "return", ";", "}", "MIRBuilder", ".", "buildCopy", "(", "ValVReg", ",", "PhysReg", ")", ";", "break", ";", "}", "case", "CCValAssign", "::", "LocInfo", "::", "SExt", ":", "case", "CCValAssign", "::", "LocInfo", "::", "ZExt", ":", "case", "CCValAssign", "::", "LocInfo", "::", "AExt", ":", "{", "auto", "Copy", "=", "MIRBuilder", ".", "buildCopy", "(", "LLT", "{", "VA", ".", "getLocVT", "(", ")", "}", ",", "PhysReg", ")", ";", "MIRBuilder", ".", "buildTrunc", "(", "ValVReg", ",", "Copy", ")", ";", "break", ";", "}", "}", "}", ""], "natrual_language": ["The", "specified", "value", "has", "been", "assigned", "to", "a", "physical", "register", ",", "handle", "the", "appropriate", "COPY", "(", "either", "to", "or", "from", ")", "and", "mark", "any", "relevant", "uses/defines", "as", "needed", "."], "TS_V_token": ["X86"], "File": "X86CallLowering", "Func": "assignValueToReg", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 264, "Length": 181, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86TTIImpl", "::", "getScalarizationOverhead", "(", "Type", "*", "Ty", ",", "bool", "Insert", ",", "bool", "Extract", ")", "{", "assert", "(", "Ty", "->", "isVectorTy", "(", ")", "&&", "\"Can only scalarize vectors\"", ")", ";", "unsigned", "Cost", "=", "0", ";", "for", "(", "int", "i", "=", "0", ",", "e", "=", "Ty", "->", "getVectorNumElements", "(", ")", ";", "i", "<", "e", ";", "++", "i", ")", "{", "if", "(", "Insert", ")", "Cost", "+=", "getVectorInstrCost", "(", "Instruction", "::", "InsertElement", ",", "Ty", ",", "i", ")", ";", "if", "(", "Extract", ")", "Cost", "+=", "getVectorInstrCost", "(", "Instruction", "::", "ExtractElement", ",", "Ty", ",", "i", ")", ";", "}", "return", "Cost", ";", "}", ""], "natrual_language": ["Estimate", "the", "overhead", "of", "scalarizing", "an", "instruction", "."], "TS_V_token": ["X86", "X86", "\"Can only scalarize vectors\"", "0", "0"], "File": "X86TargetTransformInfo86", "Func": "getScalarizationOverhead", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 265, "Length": 94, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTargetLowering", "::", "isFMAFasterThanFMulAndFAdd", "(", "const", "Function", "&", "F", ",", "Type", "*", "Ty", ")", "const", "{", "switch", "(", "Ty", "->", "getScalarType", "(", ")", "->", "getTypeID", "(", ")", ")", "{", "case", "Type", "::", "FloatTyID", ":", "case", "Type", "::", "DoubleTyID", ":", "return", "true", ";", "case", "Type", "::", "FP128TyID", ":", "return", "Subtarget", ".", "hasP9Vector", "(", ")", ";", "default", ":", "return", "false", ";", "}", "}", ""], "natrual_language": ["Return", "true", "if", "an", "FMA", "operation", "is", "faster", "than", "a", "pair", "of", "fmul", "and", "fadd", "instructions", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCISelLowering100", "Func": "isFMAFasterThanFMulAndFAdd", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 266, "Length": 61, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isCheapToSpeculateCtlz", "(", ")", "const", "{", "return", "Subtarget", "->", "hasLZCNT", "(", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "it", "is", "cheap", "to", "speculate", "a", "call", "to", "intrinsic", "ctlz", "."], "TS_V_token": ["X86", "X86"], "File": "X86ISelLowering (2)3", "Func": "isCheapToSpeculateCtlz", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 267, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "sparc_solaris_elf_asm_named_section", "(", "const", "char", "*", "name", ",", "unsigned", "int", "flags", ",", "tree", "decl", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "HAVE_COMDAT_GROUP", "&&", "flags", "&", "SECTION_LINKONCE", ")", "{", "solaris_elf_asm_comdat_section", "(", "name", ",", "flags", ",", "decl", ")", ";", "return", ";", "}", "fprintf", "(", "asm_out_file", ",", "\"\\t.section\\t\\\"%s\\\"\"", ",", "name", ")", ";", "if", "(", "!", "(", "flags", "&", "SECTION_DEBUG", ")", ")", "fputs", "(", "\",#alloc\"", ",", "asm_out_file", ")", ";", "if", "(", "flags", "&", "SECTION_EXCLUDE", ")", "fputs", "(", "\",#exclude\"", ",", "asm_out_file", ")", ";", "if", "(", "flags", "&", "SECTION_WRITE", ")", "fputs", "(", "\",#write\"", ",", "asm_out_file", ")", ";", "if", "(", "flags", "&", "SECTION_TLS", ")", "fputs", "(", "\",#tls\"", ",", "asm_out_file", ")", ";", "if", "(", "flags", "&", "SECTION_CODE", ")", "fputs", "(", "\",#execinstr\"", ",", "asm_out_file", ")", ";", "if", "(", "flags", "&", "SECTION_NOTYPE", ")", ";", "else", "if", "(", "flags", "&", "SECTION_BSS", ")", "fputs", "(", "\",#nobits\"", ",", "asm_out_file", ")", ";", "else", "fputs", "(", "\",#progbits\"", ",", "asm_out_file", ")", ";", "fputc", "(", "'\\n'", ",", "asm_out_file", ")", ";", "}", ""], "natrual_language": ["Solaris", "implementation", "of", "TARGET_ASM_NAMED_SECTION", "."], "TS_V_token": ["sparc", "\"\\t.section\\t\\\"%s\\\"\"", "\",#alloc\"", "\",#exclude\"", "\",#write\"", "\",#tls\"", "\",#execinstr\"", "\",#nobits\"", "\",#progbits\""], "File": "sparc", "Func": "sparc_solaris_elf_asm_named_section", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 268, "Length": 153, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "char", "*", "rs6000_invalid_binary_op", "(", "int", "op", "ATTRIBUTE_UNUSED", ",", "const_tree", "type1", ",", "const_tree", "type2", ")", "{", "machine_mode", "mode1", "=", "TYPE_MODE", "(", "type1", ")", ";", "machine_mode", "mode2", "=", "TYPE_MODE", "(", "type2", ")", ";", "if", "(", "COMPLEX_MODE_P", "(", "mode1", ")", ")", "mode1", "=", "GET_MODE_INNER", "(", "mode1", ")", ";", "if", "(", "COMPLEX_MODE_P", "(", "mode2", ")", ")", "mode2", "=", "GET_MODE_INNER", "(", "mode2", ")", ";", "if", "(", "mode1", "==", "mode2", ")", "return", "NULL", ";", "if", "(", "!", "TARGET_FLOAT128_CVT", ")", "{", "if", "(", "(", "FLOAT128_IEEE_P", "(", "mode1", ")", "&&", "FLOAT128_IBM_P", "(", "mode2", ")", ")", "||", "(", "FLOAT128_IBM_P", "(", "mode1", ")", "&&", "FLOAT128_IEEE_P", "(", "mode2", ")", ")", ")", "return", "N_", "(", "\"Invalid mixing of IEEE 128-bit and IBM 128-bit floating \"", "\"point types\"", ")", ";", "}", "return", "NULL", ";", "}", ""], "natrual_language": ["Return", "the", "diagnostic", "message", "string", "if", "the", "binary", "operation", "OP", "is", "not", "permitted", "on", "TYPE1", "and", "TYPE2", ",", "NULL", "otherwise", "."], "TS_V_token": ["rs6000", "\"Invalid mixing of IEEE 128-bit and IBM 128-bit floating \"", "\"point types\""], "File": "rs6000", "Func": "rs6000_invalid_binary_op", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 269, "Length": 114, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64PassConfig", "::", "addGlobalInstructionSelect", "(", ")", "{", "addPass", "(", "new", "InstructionSelect", "(", "getOptLevel", "(", ")", ")", ")", ";", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createAArch64PostSelectOptimize", "(", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["This", "method", "should", "install", "a", "(", "global", ")", "instruction", "selector", "pass", ",", "which", "converts", "possibly", "generic", "instructions", "to", "fully", "target-specific", "instructions", ",", "thereby", "constraining", "all", "generic", "virtual", "registers", "to", "register", "classes", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64"], "File": "AArch64TargetMachine1", "Func": "addGlobalInstructionSelect", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 270, "Length": 39, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64InstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MBBI", ",", "unsigned", "DestReg", ",", "int", "FrameIdx", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", "=", "MBB", ".", "findDebugLoc", "(", "MBBI", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "*", "MF", ".", "getFrameInfo", "(", ")", ";", "unsigned", "Align", "=", "MFI", ".", "getObjectAlignment", "(", "FrameIdx", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "FrameIdx", ")", ",", "MachineMemOperand", "::", "MOLoad", ",", "MFI", ".", "getObjectSize", "(", "FrameIdx", ")", ",", "Align", ")", ";", "unsigned", "LoadOp", "=", "0", ";", "if", "(", "RC", "->", "hasType", "(", "MVT", "::", "i64", ")", "||", "RC", "->", "hasType", "(", "MVT", "::", "i32", ")", ")", "{", "switch", "(", "RC", "->", "getSize", "(", ")", ")", "{", "case", "4", ":", "LoadOp", "=", "AArch64", "::", "LS32_LDR", ";", "break", ";", "case", "8", ":", "LoadOp", "=", "AArch64", "::", "LS64_LDR", ";", "break", ";", "default", ":", "llvm_unreachable", "(", "\"Unknown size for regclass\"", ")", ";", "}", "}", "else", "if", "(", "AArch64", "::", "FPR8RegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "LoadOp", "=", "AArch64", "::", "LSFP8_LDR", ";", "}", "else", "if", "(", "AArch64", "::", "FPR16RegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "LoadOp", "=", "AArch64", "::", "LSFP16_LDR", ";", "}", "else", "if", "(", "RC", "->", "hasType", "(", "MVT", "::", "f32", ")", "||", "RC", "->", "hasType", "(", "MVT", "::", "f64", ")", "||", "RC", "->", "hasType", "(", "MVT", "::", "f128", ")", ")", "{", "switch", "(", "RC", "->", "getSize", "(", ")", ")", "{", "case", "4", ":", "LoadOp", "=", "AArch64", "::", "LSFP32_LDR", ";", "break", ";", "case", "8", ":", "LoadOp", "=", "AArch64", "::", "LSFP64_LDR", ";", "break", ";", "case", "16", ":", "LoadOp", "=", "AArch64", "::", "LSFP128_LDR", ";", "break", ";", "default", ":", "llvm_unreachable", "(", "\"Unknown size for regclass\"", ")", ";", "}", "}", "else", "{", "if", "(", "AArch64", "::", "DPairRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "LoadOp", "=", "AArch64", "::", "LD1x2_8B", ";", "else", "if", "(", "AArch64", "::", "DTripleRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "LoadOp", "=", "AArch64", "::", "LD1x3_8B", ";", "else", "if", "(", "AArch64", "::", "DQuadRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "LoadOp", "=", "AArch64", "::", "LD1x4_8B", ";", "else", "if", "(", "AArch64", "::", "QPairRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "LoadOp", "=", "AArch64", "::", "LD1x2_16B", ";", "else", "if", "(", "AArch64", "::", "QTripleRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "LoadOp", "=", "AArch64", "::", "LD1x3_16B", ";", "else", "if", "(", "AArch64", "::", "QQuadRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "LoadOp", "=", "AArch64", "::", "LD1x4_16B", ";", "else", "llvm_unreachable", "(", "\"Unknown reg class\"", ")", ";", "MachineInstrBuilder", "NewMI", "=", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "get", "(", "LoadOp", ")", ",", "DestReg", ")", ";", "NewMI", ".", "addFrameIndex", "(", "FrameIdx", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "return", ";", "}", "MachineInstrBuilder", "NewMI", "=", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "get", "(", "LoadOp", ")", ",", "DestReg", ")", ";", "NewMI", ".", "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": ["AArch64", "AArch64", "0", "MVT::i64", "MVT::i32", "4", "AArch64::LS32_LDR", "8", "AArch64::LS64_LDR", "\"Unknown size for regclass\"", "AArch64::FPR8RegClass", "AArch64::LSFP8_LDR", "AArch64::FPR16RegClass", "AArch64::LSFP16_LDR", "MVT::f32", "MVT::f64", "MVT::f128", "4", "AArch64::LSFP32_LDR", "8", "AArch64::LSFP64_LDR", "16", "AArch64::LSFP128_LDR", "\"Unknown size for regclass\"", "AArch64::DPairRegClass", "AArch64::LD1x2_8B", "AArch64::DTripleRegClass", "AArch64::LD1x3_8B", "AArch64::DQuadRegClass", "AArch64::LD1x4_8B", "AArch64::QPairRegClass", "AArch64::LD1x2_16B", "AArch64::QTripleRegClass", "AArch64::LD1x3_16B", "AArch64::QQuadRegClass", "AArch64::LD1x4_16B", "\"Unknown reg class\"", "0"], "File": "AArch64InstrInfo39", "Func": "loadRegFromStackSlot", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 271, "Length": 477, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "MipsSEFrameLowering", "::", "getFrameIndexReference", "(", "const", "MachineFunction", "&", "MF", ",", "int", "FI", ",", "Register", "&", "FrameReg", ")", "const", "{", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "MipsABIInfo", "ABI", "=", "STI", ".", "getABI", "(", ")", ";", "if", "(", "MFI", ".", "isFixedObjectIndex", "(", "FI", ")", ")", "FrameReg", "=", "hasFP", "(", "MF", ")", "?", "ABI", ".", "GetFramePtr", "(", ")", ":", "ABI", ".", "GetStackPtr", "(", ")", ";", "else", "FrameReg", "=", "hasBP", "(", "MF", ")", "?", "ABI", ".", "GetBasePtr", "(", ")", ":", "ABI", ".", "GetStackPtr", "(", ")", ";", "return", "MFI", ".", "getObjectOffset", "(", "FI", ")", "+", "MFI", ".", "getStackSize", "(", ")", "-", "getOffsetOfLocalArea", "(", ")", "+", "MFI", ".", "getOffsetAdjustment", "(", ")", ";", "}", ""], "natrual_language": ["getFrameIndexReference", "-", "This", "method", "should", "return", "the", "base", "register", "and", "offset", "used", "to", "reference", "a", "frame", "index", "location", "."], "TS_V_token": ["Mips", "Mips", "Mips"], "File": "MipsSEFrameLowering11", "Func": "getFrameIndexReference", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 272, "Length": 112, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "Comet2RegisterInfo", "*", "getRegisterInfo", "(", ")", "const", "override", "{", "return", "&", "RegInfo", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["Comet2", "Comet2"], "File": "Comet2Subtarget", "Func": "getRegisterInfo", "Target": "Comet2", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 273, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "aarch64_simd_emit_pair_result_insn", "(", "machine_mode", "mode", ",", "rtx", "(", "*", "intfn", ")", "(", "rtx", ",", "rtx", ",", "rtx", ")", ",", "rtx", "destaddr", ",", "rtx", "op1", ")", "{", "rtx", "mem", "=", "gen_rtx_MEM", "(", "mode", ",", "destaddr", ")", ";", "rtx", "tmp1", "=", "gen_reg_rtx", "(", "mode", ")", ";", "rtx", "tmp2", "=", "gen_reg_rtx", "(", "mode", ")", ";", "emit_insn", "(", "intfn", "(", "tmp1", ",", "op1", ",", "tmp2", ")", ")", ";", "emit_move_insn", "(", "mem", ",", "tmp1", ")", ";", "mem", "=", "adjust_address", "(", "mem", ",", "mode", ",", "GET_MODE_SIZE", "(", "mode", ")", ")", ";", "emit_move_insn", "(", "mem", ",", "tmp2", ")", ";", "}", ""], "natrual_language": ["Emit", "code", "to", "place", "a", "AdvSIMD", "pair", "result", "in", "memory", "locations", "(", "with", "equal", "registers", ")", "."], "TS_V_token": ["aarch64"], "File": "aarch642", "Func": "aarch64_simd_emit_pair_result_insn", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 274, "Length": 93, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMPassConfig", "::", "addIRPasses", "(", ")", "{", "if", "(", "TM", "->", "Options", ".", "ThreadModel", "==", "ThreadModel", "::", "Single", ")", "addPass", "(", "createLowerAtomicPass", "(", ")", ")", ";", "else", "addPass", "(", "createAtomicExpandPass", "(", ")", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "EnableAtomicTidy", ")", "addPass", "(", "createCFGSimplificationPass", "(", "SimplifyCFGOptions", "(", ")", ".", "hoistCommonInsts", "(", "true", ")", ".", "sinkCommonInsts", "(", "true", ")", ",", "[", "this", "]", "(", "const", "Function", "&", "F", ")", "{", "const", "auto", "&", "ST", "=", "this", "->", "TM", "->", "getSubtarget", "<", "ARMSubtarget", ">", "(", "F", ")", ";", "return", "ST", ".", "hasAnyDataBarrier", "(", ")", "&&", "!", "ST", ".", "isThumb1Only", "(", ")", ";", "}", ")", ")", ";", "addPass", "(", "createMVEGatherScatterLoweringPass", "(", ")", ")", ";", "addPass", "(", "createMVELaneInterleavingPass", "(", ")", ")", ";", "TargetPassConfig", "::", "addIRPasses", "(", ")", ";", "if", "(", "getOptLevel", "(", ")", "==", "CodeGenOpt", "::", "Aggressive", ")", "addPass", "(", "createARMParallelDSPPass", "(", ")", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createInterleavedAccessPass", "(", ")", ")", ";", "if", "(", "TM", "->", "getTargetTriple", "(", ")", ".", "isOSWindows", "(", ")", ")", "addPass", "(", "createCFGuardCheckPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["Add", "common", "target", "configurable", "passes", "that", "perform", "LLVM", "IR", "to", "IR", "transforms", "following", "machine", "independent", "optimization", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM"], "File": "ARMTargetMachine1", "Func": "addIRPasses", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 275, "Length": 187, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "LC2200FrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "bool", "hasFramePointer", "=", "hasFP", "(", "MF", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "getLastNonDebugInstr", "(", ")", ";", "const", "LC2200RegisterInfo", "*", "RI", "=", "STI", ".", "getRegisterInfo", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "DebugLoc", "DL", "=", "MBBI", "->", "getDebugLoc", "(", ")", ";", "const", "LC2200InstrInfo", "*", "TII", "=", "STI", ".", "getInstrInfo", "(", ")", ";", "Register", "FPReg", "=", "LC2200", "::", "fp", ";", "Register", "SPReg", "=", "LC2200", "::", "sp", ";", "auto", "LastFrameDestroy", "=", "std", "::", "prev", "(", "MBBI", ",", "MFI", ".", "getCalleeSavedInfo", "(", ")", ".", "size", "(", ")", ")", ";", "uint64_t", "StackSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "if", "(", "hasFramePointer", ")", "StackSize", "++", ";", "if", "(", "RI", "->", "needsStackRealignment", "(", "MF", ")", "||", "MFI", ".", "hasVarSizedObjects", "(", ")", ")", "{", "assert", "(", "hasFP", "(", "MF", ")", "&&", "\"frame pointer should not have been eliminated\"", ")", ";", "BuildMI", "(", "MBB", ",", "LastFrameDestroy", ",", "DL", ",", "TII", "->", "get", "(", "LC2200", "::", "ADD", ")", ")", ".", "addReg", "(", "LC2200", "::", "sp", ")", ".", "addReg", "(", "LC2200", "::", "fp", ")", ".", "addReg", "(", "LC2200", "::", "zero", ")", ";", "}", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", "=", "MFI", ".", "getCalleeSavedInfo", "(", ")", ";", "for", "(", "const", "auto", "&", "Entry", ":", "CSI", ")", "{", "Register", "Reg", "=", "Entry", ".", "getReg", "(", ")", ";", "unsigned", "CFIIndex", "=", "MF", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createRestore", "(", "nullptr", ",", "RI", "->", "getDwarfRegNum", "(", "Reg", ",", "true", ")", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";", "}", "if", "(", "hasFramePointer", ")", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "LC2200", "::", "LW", ")", ")", ".", "addReg", "(", "LC2200", "::", "fp", ")", ".", "addReg", "(", "LC2200", "::", "fp", ")", ".", "addImm", "(", "StackSize", "-", "1", ")", ";", "}", "adjustReg", "(", "MBB", ",", "MBBI", ",", "DL", ",", "SPReg", ",", "SPReg", ",", "StackSize", ",", "MachineInstr", "::", "FrameDestroy", ")", ";", "unsigned", "CFIIndex", "=", "MF", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createDefCfaOffset", "(", "nullptr", ",", "0", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";", "}", ""], "natrual_language": ["Insert", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["LC2200", "LC2200", "LC2200", "LC2200", "LC2200::fp", "LC2200::sp", "\"frame pointer should not have been eliminated\"", "LC2200::ADD", "LC2200::sp", "LC2200::fp", "LC2200::zero", "LC2200::LW", "LC2200::fp", "LC2200::fp", "1", "0"], "File": "LC2200FrameLowering", "Func": "emitEpilogue", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 276, "Length": 379, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "X86TTIImpl", "::", "getIntImmCost", "(", "unsigned", "Opcode", ",", "unsigned", "Idx", ",", "const", "APInt", "&", "Imm", ",", "Type", "*", "Ty", ")", "{", "assert", "(", "Ty", "->", "isIntegerTy", "(", ")", ")", ";", "unsigned", "BitSize", "=", "Ty", "->", "getPrimitiveSizeInBits", "(", ")", ";", "if", "(", "BitSize", "==", "0", ")", "return", "TTI", "::", "TCC_Free", ";", "unsigned", "ImmIdx", "=", "~", "0U", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "TTI", "::", "TCC_Free", ";", "case", "Instruction", "::", "GetElementPtr", ":", "if", "(", "Idx", "==", "0", ")", "return", "2", "*", "TTI", "::", "TCC_Basic", ";", "return", "TTI", "::", "TCC_Free", ";", "case", "Instruction", "::", "Store", ":", "ImmIdx", "=", "0", ";", "break", ";", "case", "Instruction", "::", "ICmp", ":", "if", "(", "Idx", "==", "1", "&&", "Imm", ".", "getBitWidth", "(", ")", "==", "64", ")", "{", "uint64_t", "ImmVal", "=", "Imm", ".", "getZExtValue", "(", ")", ";", "if", "(", "ImmVal", "==", "0x100000000ULL", "||", "ImmVal", "==", "0xffffffff", ")", "return", "TTI", "::", "TCC_Free", ";", "}", "ImmIdx", "=", "1", ";", "break", ";", "case", "Instruction", "::", "And", ":", "if", "(", "Idx", "==", "1", "&&", "Imm", ".", "getBitWidth", "(", ")", "==", "64", "&&", "isUInt", "<", "32", ">", "(", "Imm", ".", "getZExtValue", "(", ")", ")", ")", "return", "TTI", "::", "TCC_Free", ";", "ImmIdx", "=", "1", ";", "break", ";", "case", "Instruction", "::", "Add", ":", "case", "Instruction", "::", "Sub", ":", "if", "(", "Idx", "==", "1", "&&", "Imm", ".", "getBitWidth", "(", ")", "==", "64", "&&", "isInt", "<", "32", ">", "(", "-", "Imm", ".", "getSExtValue", "(", ")", ")", ")", "return", "TTI", "::", "TCC_Free", ";", "ImmIdx", "=", "1", ";", "break", ";", "case", "Instruction", "::", "Mul", ":", "case", "Instruction", "::", "UDiv", ":", "case", "Instruction", "::", "SDiv", ":", "case", "Instruction", "::", "URem", ":", "case", "Instruction", "::", "SRem", ":", "case", "Instruction", "::", "Or", ":", "case", "Instruction", "::", "Xor", ":", "ImmIdx", "=", "1", ";", "break", ";", "case", "Instruction", "::", "Shl", ":", "case", "Instruction", "::", "LShr", ":", "case", "Instruction", "::", "AShr", ":", "if", "(", "Idx", "==", "1", ")", "return", "TTI", "::", "TCC_Free", ";", "break", ";", "case", "Instruction", "::", "Trunc", ":", "case", "Instruction", "::", "ZExt", ":", "case", "Instruction", "::", "SExt", ":", "case", "Instruction", "::", "IntToPtr", ":", "case", "Instruction", "::", "PtrToInt", ":", "case", "Instruction", "::", "BitCast", ":", "case", "Instruction", "::", "PHI", ":", "case", "Instruction", "::", "Call", ":", "case", "Instruction", "::", "Select", ":", "case", "Instruction", "::", "Ret", ":", "case", "Instruction", "::", "Load", ":", "break", ";", "}", "if", "(", "Idx", "==", "ImmIdx", ")", "{", "int", "NumConstants", "=", "divideCeil", "(", "BitSize", ",", "64", ")", ";", "int", "Cost", "=", "X86TTIImpl", "::", "getIntImmCost", "(", "Imm", ",", "Ty", ")", ";", "return", "(", "Cost", "<=", "NumConstants", "*", "TTI", "::", "TCC_Basic", ")", "?", "static_cast", "<", "int", ">", "(", "TTI", "::", "TCC_Free", ")", ":", "Cost", ";", "}", "return", "X86TTIImpl", "::", "getIntImmCost", "(", "Imm", ",", "Ty", ")", ";", "}", ""], "natrual_language": ["Calculate", "the", "cost", "of", "materializing", "a", "64-bit", "value", "."], "TS_V_token": ["X86", "X86", "0", "0U", "0", "2", "0", "1", "64", "0x100000000ULL", "0xffffffff", "1", "1", "64", "32", "1", "1", "64", "32", "1", "1", "1", "64", "X86", "X86"], "File": "X86TargetTransformInfo63", "Func": "getIntImmCost", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 277, "Length": 434, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_debug_target_options", "(", "tree", "args", ",", "const", "char", "*", "prefix", ")", "{", "if", "(", "args", "==", "NULL_TREE", ")", "fprintf", "(", "stderr", ",", "\"%s\"", ",", "prefix", ")", ";", "else", "if", "(", "TREE_CODE", "(", "args", ")", "==", "STRING_CST", ")", "{", "char", "*", "p", "=", "ASTRDUP", "(", "TREE_STRING_POINTER", "(", "args", ")", ")", ";", "char", "*", "q", ";", "while", "(", "(", "q", "=", "strtok", "(", "p", ",", "\",\"", ")", ")", "!=", "NULL", ")", "{", "p", "=", "NULL", ";", "fprintf", "(", "stderr", ",", "\"%s\\\"%s\\\"\"", ",", "prefix", ",", "q", ")", ";", "prefix", "=", "\", \"", ";", "}", "}", "else", "if", "(", "TREE_CODE", "(", "args", ")", "==", "TREE_LIST", ")", "{", "do", "{", "tree", "value", "=", "TREE_VALUE", "(", "args", ")", ";", "if", "(", "value", ")", "{", "rs6000_debug_target_options", "(", "value", ",", "prefix", ")", ";", "prefix", "=", "\", \"", ";", "}", "args", "=", "TREE_CHAIN", "(", "args", ")", ";", "}", "while", "(", "args", "!=", "NULL_TREE", ")", ";", "}", "else", "gcc_unreachable", "(", ")", ";", "return", ";", "}", ""], "natrual_language": ["Print", "out", "the", "target", "options", "as", "a", "list", "for", "-mdebug=target", "."], "TS_V_token": ["rs6000", "\"%s\"", "\",\"", "\"%s\\\"%s\\\"\"", "\", \"", "\", \""], "File": "rs6000", "Func": "rs6000_debug_target_options", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 278, "Length": 154, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ShouldShrinkFPConstant", "(", "EVT", "VT", ")", "const", "override", "{", "return", "!", "X86ScalarSSEf64", "||", "VT", "==", "MVT", "::", "f80", ";", "}", ""], "natrual_language": ["If", "true", ",", "then", "instruction", "selection", "should", "seek", "to", "shrink", "the", "FP", "constant", "of", "the", "specified", "type", "to", "a", "smaller", "type", "in", "order", "to", "save", "space", "and", "/", "or", "reduce", "runtime", "."], "TS_V_token": ["X86", "X86", "MVT::f80"], "File": "X86ISelLowering (2)1", "Func": "ShouldShrinkFPConstant", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 279, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "LanaiAsmBackend", "::", "writeNopData", "(", "raw_ostream", "&", "OS", ",", "uint64_t", "Count", ")", "const", "{", "if", "(", "(", "Count", "%", "4", ")", "!=", "0", ")", "return", "false", ";", "for", "(", "uint64_t", "i", "=", "0", ";", "i", "<", "Count", ";", "i", "+=", "4", ")", "OS", ".", "write", "(", "\"\\x15\\0\\0\\0\"", ",", "4", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Write", "an", "(", "optimal", ")", "nop", "sequence", "of", "Count", "bytes", "to", "the", "given", "output", "."], "TS_V_token": ["Lanai", "Lanai", "4", "0", "0", "4", "\"\\x15\\0\\0\\0\"", "4"], "File": "LanaiAsmBackend12", "Func": "writeNopData", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 280, "Length": 55, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ScheduleHazardRecognizer", "*", "ARMBaseInstrInfo", "::", "CreateTargetMIHazardRecognizer", "(", "const", "InstrItineraryData", "*", "II", ",", "const", "ScheduleDAGMI", "*", "DAG", ")", "const", "{", "MultiHazardRecognizer", "*", "MHR", "=", "new", "MultiHazardRecognizer", "(", ")", ";", "if", "(", "Subtarget", ".", "isCortexM7", "(", ")", "&&", "!", "DAG", "->", "hasVRegLiveness", "(", ")", ")", "MHR", "->", "AddHazardRecognizer", "(", "std", "::", "make_unique", "<", "ARMBankConflictHazardRecognizer", ">", "(", "DAG", ",", "0x4", ",", "true", ")", ")", ";", "auto", "BHR", "=", "TargetInstrInfo", "::", "CreateTargetMIHazardRecognizer", "(", "II", ",", "DAG", ")", ";", "MHR", "->", "AddHazardRecognizer", "(", "std", "::", "unique_ptr", "<", "ScheduleHazardRecognizer", ">", "(", "BHR", ")", ")", ";", "return", "MHR", ";", "}", ""], "natrual_language": ["Allocate", "and", "return", "a", "hazard", "recognizer", "to", "use", "for", "this", "target", "when", "scheduling", "the", "machine", "instructions", "before", "register", "allocation", "."], "TS_V_token": ["ARM", "ARM", "ARM", "0x4"], "File": "ARMBaseInstrInfo110", "Func": "CreateTargetMIHazardRecognizer", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 281, "Length": 92, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineInstr", "*", "ARMBaseInstrInfo", "::", "commuteInstructionImpl", "(", "MachineInstr", "*", "MI", ",", "bool", "NewMI", ",", "unsigned", "OpIdx1", ",", "unsigned", "OpIdx2", ")", "const", "{", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "case", "ARM", "::", "MOVCCr", ":", "case", "ARM", "::", "t2MOVCCr", ":", "{", "unsigned", "PredReg", "=", "0", ";", "ARMCC", "::", "CondCodes", "CC", "=", "getInstrPredicate", "(", "MI", ",", "PredReg", ")", ";", "if", "(", "CC", "==", "ARMCC", "::", "AL", "||", "PredReg", "!=", "ARM", "::", "CPSR", ")", "return", "nullptr", ";", "MI", "=", "TargetInstrInfo", "::", "commuteInstructionImpl", "(", "MI", ",", "NewMI", ",", "OpIdx1", ",", "OpIdx2", ")", ";", "if", "(", "!", "MI", ")", "return", "nullptr", ";", "MI", "->", "getOperand", "(", "MI", "->", "findFirstPredOperandIdx", "(", ")", ")", ".", "setImm", "(", "ARMCC", "::", "getOppositeCondition", "(", "CC", ")", ")", ";", "return", "MI", ";", "}", "}", "return", "TargetInstrInfo", "::", "commuteInstructionImpl", "(", "MI", ",", "NewMI", ",", "OpIdx1", ",", "OpIdx2", ")", ";", "}", ""], "natrual_language": ["Commutes", "the", "operands", "in", "the", "given", "instruction", "by", "changing", "the", "operands", "order", "and/or", "changing", "the", "instruction", "'s", "opcode", "and/or", "the", "immediate", "value", "operand", "."], "TS_V_token": ["ARM", "ARM", "ARM::MOVCCr", "ARM::t2MOVCCr", "0", "ARMCC::CondCodes", "ARMCC::AL", "ARM::CPSR", "ARMCC::getOppositeCondition"], "File": "ARMBaseInstrInfo (2)3", "Func": "commuteInstructionImpl", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 282, "Length": 139, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "XNCMFrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "}", ""], "natrual_language": ["Insert", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["XNCM", "XNCM"], "File": "XNCMFrameLowering", "Func": "emitEpilogue", "Target": "XNCM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 283, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "sparc_arg_partial_bytes", "(", "cumulative_args_t", "cum", ",", "machine_mode", "mode", ",", "tree", "type", ",", "bool", "named", ")", "{", "int", "slotno", ",", "regno", ",", "padding", ";", "slotno", "=", "function_arg_slotno", "(", "get_cumulative_args", "(", "cum", ")", ",", "mode", ",", "type", ",", "named", ",", "false", ",", "&", "regno", ",", "&", "padding", ")", ";", "if", "(", "slotno", "==", "-", "1", ")", "return", "0", ";", "if", "(", "TARGET_ARCH32", ")", "{", "if", "(", "(", "slotno", "+", "(", "mode", "==", "BLKmode", "?", "ROUND_ADVANCE", "(", "int_size_in_bytes", "(", "type", ")", ")", ":", "ROUND_ADVANCE", "(", "GET_MODE_SIZE", "(", "mode", ")", ")", ")", ")", ">", "SPARC_INT_ARG_MAX", ")", "return", "(", "SPARC_INT_ARG_MAX", "-", "slotno", ")", "*", "UNITS_PER_WORD", ";", "}", "else", "{", "if", "(", "type", "&&", "AGGREGATE_TYPE_P", "(", "type", ")", ")", "{", "int", "size", "=", "int_size_in_bytes", "(", "type", ")", ";", "if", "(", "size", ">", "UNITS_PER_WORD", "&&", "slotno", "==", "SPARC_INT_ARG_MAX", "-", "1", ")", "return", "UNITS_PER_WORD", ";", "}", "else", "if", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_COMPLEX_INT", "||", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_COMPLEX_FLOAT", "&&", "!", "(", "TARGET_FPU", "&&", "named", ")", ")", ")", "{", "if", "(", "GET_MODE_SIZE", "(", "mode", ")", ">", "UNITS_PER_WORD", "&&", "slotno", "==", "SPARC_INT_ARG_MAX", "-", "1", ")", "return", "UNITS_PER_WORD", ";", "}", "else", "if", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_COMPLEX_FLOAT", ")", "{", "if", "(", "(", "slotno", "+", "GET_MODE_SIZE", "(", "mode", ")", "/", "UNITS_PER_WORD", ")", ">", "SPARC_FP_ARG_MAX", ")", "return", "UNITS_PER_WORD", ";", "}", "}", "return", "0", ";", "}", ""], "natrual_language": ["For", "an", "arg", "passed", "partly", "in", "registers", "and", "partly", "in", "memory", ",", "this", "is", "the", "number", "of", "bytes", "of", "registers", "used", ".", "For", "args", "passed", "entirely", "in", "registers", "or", "entirely", "in", "memory", ",", "zero", ".", "Any", "arg", "that", "starts", "in", "the", "first", "6", "regs", "but", "wo", "n't", "entirely", "fit", "in", "them", "needs", "partial", "registers", "on", "v8", ".", "On", "v9", ",", "structures", "with", "integer", "values", "in", "arg", "slots", "5,6", "will", "be", "passed", "in", "%", "o5", "and", "SP+176", ",", "and", "complex", "fp", "values", "that", "begin", "in", "the", "last", "fp", "reg", "[", "where", "``", "last", "fp", "reg", "''", "varies", "with", "the", "mode", "]", "will", "be", "split", "between", "that", "reg", "and", "memory", "."], "TS_V_token": ["sparc", "1", "0", "1", "1", "0"], "File": "sparc4", "Func": "sparc_arg_partial_bytes", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 284, "Length": 220, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "widen_mem_for_ldd_peep", "(", "rtx", "mem1", ",", "rtx", "mem2", ",", "machine_mode", "mode", ")", "{", "rtx", "x", "=", "widen_memory_access", "(", "mem1", ",", "mode", ",", "0", ")", ";", "MEM_NOTRAP_P", "(", "x", ")", "=", "MEM_NOTRAP_P", "(", "mem1", ")", "&&", "MEM_NOTRAP_P", "(", "mem2", ")", ";", "return", "x", ";", "}", ""], "natrual_language": ["Return", "the", "widened", "memory", "access", "made", "of", "MEM1", "and", "MEM2", "in", "MODE", "."], "TS_V_token": ["sparc", "0"], "File": "sparc", "Func": "widen_mem_for_ldd_peep", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 285, "Length": 44, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SparcInstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "DestReg", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", "->", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", "->", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "*", "MF", ",", "FI", ")", ",", "MachineMemOperand", "::", "MOLoad", ",", "MFI", ".", "getObjectSize", "(", "FI", ")", ",", "MFI", ".", "getObjectAlignment", "(", "FI", ")", ")", ";", "if", "(", "RC", "==", "&", "SP", "::", "I64RegsRegClass", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "SP", "::", "LDXri", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "else", "if", "(", "RC", "==", "&", "SP", "::", "IntRegsRegClass", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "SP", "::", "LDri", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "else", "if", "(", "RC", "==", "&", "SP", "::", "IntPairRegClass", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "SP", "::", "LDDri", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "else", "if", "(", "RC", "==", "&", "SP", "::", "FPRegsRegClass", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "SP", "::", "LDFri", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "else", "if", "(", "SP", "::", "DFPRegsRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "SP", "::", "LDDFri", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "else", "if", "(", "SP", "::", "QFPRegsRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "SP", "::", "LDQFri", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "else", "llvm_unreachable", "(", "\"Can't load this register from stack slot\"", ")", ";", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["Sparc", "Sparc", "SP::I64RegsRegClass", "SP::LDXri", "0", "SP::IntRegsRegClass", "SP::LDri", "0", "SP::IntPairRegClass", "SP::LDDri", "0", "SP::FPRegsRegClass", "SP::LDFri", "0", "SP::DFPRegsRegClass", "SP::LDDFri", "0", "SP::QFPRegsRegClass", "SP::LDQFri", "0", "\"Can't load this register from stack slot\""], "File": "SparcInstrInfo1", "Func": "loadRegFromStackSlot", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 286, "Length": 379, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "DataLayout", "*", "getDataLayout", "(", ")", "const", "override", "{", "return", "&", "DL", ";", "}", ""], "natrual_language": ["Return", "the", "DataLayout", "associated", "with", "the", "module", "this", "SCEV", "instance", "is", "operating", "on", "."], "TS_V_token": ["AArch64"], "File": "AArch64Subtarget78", "Func": "getDataLayout", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 287, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "enum", "flt_eval_method", "ix86_get_excess_precision", "(", "enum", "excess_precision_type", "type", ")", "{", "switch", "(", "type", ")", "{", "case", "EXCESS_PRECISION_TYPE_FAST", ":", "return", "TARGET_AVX512FP16", "?", "FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16", ":", "FLT_EVAL_METHOD_PROMOTE_TO_FLOAT", ";", "case", "EXCESS_PRECISION_TYPE_STANDARD", ":", "case", "EXCESS_PRECISION_TYPE_IMPLICIT", ":", "if", "(", "TARGET_AVX512FP16", "&&", "TARGET_SSE_MATH", ")", "return", "FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16", ";", "else", "if", "(", "!", "TARGET_80387", ")", "return", "FLT_EVAL_METHOD_PROMOTE_TO_FLOAT", ";", "else", "if", "(", "!", "TARGET_MIX_SSE_I387", ")", "{", "if", "(", "!", "(", "TARGET_SSE", "&&", "TARGET_SSE_MATH", ")", ")", "return", "FLT_EVAL_METHOD_PROMOTE_TO_LONG_DOUBLE", ";", "else", "if", "(", "TARGET_SSE2", ")", "return", "FLT_EVAL_METHOD_PROMOTE_TO_FLOAT", ";", "}", "return", "(", "type", "==", "EXCESS_PRECISION_TYPE_STANDARD", "?", "FLT_EVAL_METHOD_PROMOTE_TO_FLOAT", ":", "FLT_EVAL_METHOD_UNPREDICTABLE", ")", ";", "case", "EXCESS_PRECISION_TYPE_FLOAT16", ":", "if", "(", "TARGET_80387", "&&", "!", "(", "TARGET_SSE_MATH", "&&", "TARGET_SSE", ")", ")", "error", "(", "\"%<-fexcess-precision=16%> is not compatible with %<-mfpmath=387%>\"", ")", ";", "return", "FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "return", "FLT_EVAL_METHOD_UNPREDICTABLE", ";", "}", ""], "natrual_language": ["Set", "the", "value", "of", "FLT_EVAL_METHOD", "in", "float.h", ".", "When", "using", "only", "the", "FPU", ",", "assume", "that", "the", "fpcw", "is", "set", "to", "extended", "precision", ";", "when", "using", "only", "SSE", ",", "rounding", "is", "correct", ";", "when", "using", "both", "SSE", "and", "the", "FPU", ",", "the", "rounding", "precision", "is", "indeterminate", ",", "since", "either", "may", "be", "chosen", "apparently", "at", "random", "."], "TS_V_token": ["i386", "\"%<-fexcess-precision=16%> is not compatible with %<-mfpmath=387%>\""], "File": "i386", "Func": "ix86_get_excess_precision", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 288, "Length": 121, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx_insn", "*", "emit_frame_save", "(", "rtx", "frame_reg", ",", "machine_mode", "mode", ",", "unsigned", "int", "regno", ",", "int", "offset", ",", "HOST_WIDE_INT", "frame_reg_to_sp", ")", "{", "rtx", "reg", ";", "gcc_checking_assert", "(", "!", "(", "(", "TARGET_ALTIVEC_ABI", "&&", "ALTIVEC_VECTOR_MODE", "(", "mode", ")", ")", "||", "(", "TARGET_VSX", "&&", "ALTIVEC_OR_VSX_VECTOR_MODE", "(", "mode", ")", ")", "||", "(", "TARGET_E500_DOUBLE", "&&", "mode", "==", "DFmode", ")", "||", "(", "TARGET_SPE_ABI", "&&", "SPE_VECTOR_MODE", "(", "mode", ")", "&&", "!", "SPE_CONST_OFFSET_OK", "(", "offset", ")", ")", ")", ")", ";", "reg", "=", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "rtx_insn", "*", "insn", "=", "emit_insn", "(", "gen_frame_store", "(", "reg", ",", "frame_reg", ",", "offset", ")", ")", ";", "return", "rs6000_frame_related", "(", "insn", ",", "frame_reg", ",", "frame_reg_to_sp", ",", "NULL_RTX", ",", "NULL_RTX", ")", ";", "}", ""], "natrual_language": ["Save", "a", "register", "into", "the", "frame", ",", "and", "emit", "RTX_FRAME_RELATED_P", "notes", ".", "Save", "REGNO", "into", "[", "FRAME_REG", "+", "OFFSET", "]", "in", "mode", "MODE", "."], "TS_V_token": ["rs6000"], "File": "rs60006", "Func": "emit_frame_save", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 289, "Length": 112, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ArrayRef", "<", "std", "::", "pair", "<", "unsigned", ",", "const", "char", "*", ">>", "PPCInstrInfo", "::", "getSerializableBitmaskMachineOperandTargetFlags", "(", ")", "const", "{", "using", "namespace", "PPCII", ";", "static", "const", "std", "::", "pair", "<", "unsigned", ",", "const", "char", "*", ">", "TargetFlags", "[", "]", "=", "{", "{", "MO_PLT", ",", "\"ppc-plt\"", "}", ",", "{", "MO_PIC_FLAG", ",", "\"ppc-pic\"", "}", ",", "{", "MO_PCREL_FLAG", ",", "\"ppc-pcrel\"", "}", ",", "{", "MO_GOT_FLAG", ",", "\"ppc-got\"", "}", ",", "{", "MO_PCREL_OPT_FLAG", ",", "\"ppc-opt-pcrel\"", "}", "}", ";", "return", "makeArrayRef", "(", "TargetFlags", ")", ";", "}", ""], "natrual_language": ["Return", "an", "array", "that", "contains", "the", "bitmask", "target", "flag", "values", "and", "their", "names", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "\"ppc-plt\"", "\"ppc-pic\"", "\"ppc-pcrel\"", "\"ppc-got\"", "\"ppc-opt-pcrel\""], "File": "PPCInstrInfo65", "Func": "getSerializableBitmaskMachineOperandTargetFlags", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 290, "Length": 78, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "DataLayout", "*", "getDataLayout", "(", ")", "const", "override", "{", "return", "&", "DL", ";", "}", ""], "natrual_language": ["Return", "the", "DataLayout", "associated", "with", "the", "module", "this", "SCEV", "instance", "is", "operating", "on", "."], "TS_V_token": ["Mips"], "File": "MipsSubtarget29", "Func": "getDataLayout", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 291, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCObjectStreamer", "&", "getStreamer", "(", ")", "{", "return", "static_cast", "<", "MCObjectStreamer", "&", ">", "(", "Streamer", ")", ";", "}", ""], "natrual_language": ["Return", "the", "output", "streamer", "for", "the", "assembler", "."], "TS_V_token": ["PowerPC"], "File": "PPCMCTargetDesc17", "Func": "getStreamer", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 292, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86PassConfig", "::", "addPreEmitPass2", "(", ")", "{", "addPass", "(", "createX86RetpolineThunksPass", "(", ")", ")", ";", "const", "Triple", "&", "TT", "=", "TM", "->", "getTargetTriple", "(", ")", ";", "const", "MCAsmInfo", "*", "MAI", "=", "TM", "->", "getMCAsmInfo", "(", ")", ";", "if", "(", "!", "TT", ".", "isOSDarwin", "(", ")", "&&", "(", "!", "TT", ".", "isOSWindows", "(", ")", "||", "MAI", "->", "getExceptionHandlingType", "(", ")", "==", "ExceptionHandling", "::", "DwarfCFI", ")", ")", "addPass", "(", "createCFIInstrInserter", "(", ")", ")", ";", "}", ""], "natrual_language": ["Targets", "may", "add", "passes", "immediately", "before", "machine", "code", "is", "emitted", "in", "this", "callback", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86TargetMachine105", "Func": "addPreEmitPass2", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 293, "Length": 72, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_interrupt_type_p", "(", "tree", "type", ")", "{", "return", "lookup_attribute", "(", "\"interrupt\"", ",", "TYPE_ATTRIBUTES", "(", "type", ")", ")", "!=", "NULL", ";", "}", ""], "natrual_language": ["Check", "if", "the", "interrupt", "attribute", "is", "set", "for", "a", "function", "."], "TS_V_token": ["mips", "\"interrupt\""], "File": "mips", "Func": "mips_interrupt_type_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 294, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsAsmParser", "::", "getReg", "(", "int", "RC", ",", "int", "RegNo", ")", "{", "return", "*", "(", "getContext", "(", ")", ".", "getRegisterInfo", "(", ")", ".", "getRegClass", "(", "RC", ")", ".", "begin", "(", ")", "+", "RegNo", ")", ";", "}", ""], "natrual_language": ["Returns", "the", "register", "associated", "with", "this", "edge", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsAsmParser18", "Func": "getReg", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 295, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "OutgoingValueHandler", "::", "assignValueToReg", "(", "Register", "ValVReg", ",", "const", "CCValAssign", "&", "VA", ",", "const", "EVT", "&", "VT", ")", "{", "Register", "PhysReg", "=", "VA", ".", "getLocReg", "(", ")", ";", "const", "MipsSubtarget", "&", "STI", "=", "static_cast", "<", "const", "MipsSubtarget", "&", ">", "(", "MIRBuilder", ".", "getMF", "(", ")", ".", "getSubtarget", "(", ")", ")", ";", "if", "(", "VT", "==", "MVT", "::", "f64", "&&", "PhysReg", ">=", "Mips", "::", "A0", "&&", "PhysReg", "<=", "Mips", "::", "A3", ")", "{", "MIRBuilder", ".", "buildInstr", "(", "STI", ".", "isFP64bit", "(", ")", "?", "Mips", "::", "ExtractElementF64_64", ":", "Mips", "::", "ExtractElementF64", ")", ".", "addDef", "(", "PhysReg", "+", "(", "STI", ".", "isLittle", "(", ")", "?", "1", ":", "0", ")", ")", ".", "addUse", "(", "ValVReg", ")", ".", "addImm", "(", "1", ")", ".", "constrainAllUses", "(", "MIRBuilder", ".", "getTII", "(", ")", ",", "*", "STI", ".", "getRegisterInfo", "(", ")", ",", "*", "STI", ".", "getRegBankInfo", "(", ")", ")", ";", "MIRBuilder", ".", "buildInstr", "(", "STI", ".", "isFP64bit", "(", ")", "?", "Mips", "::", "ExtractElementF64_64", ":", "Mips", "::", "ExtractElementF64", ")", ".", "addDef", "(", "PhysReg", "+", "(", "STI", ".", "isLittle", "(", ")", "?", "0", ":", "1", ")", ")", ".", "addUse", "(", "ValVReg", ")", ".", "addImm", "(", "0", ")", ".", "constrainAllUses", "(", "MIRBuilder", ".", "getTII", "(", ")", ",", "*", "STI", ".", "getRegisterInfo", "(", ")", ",", "*", "STI", ".", "getRegBankInfo", "(", ")", ")", ";", "}", "else", "if", "(", "VT", "==", "MVT", "::", "f32", "&&", "PhysReg", ">=", "Mips", "::", "A0", "&&", "PhysReg", "<=", "Mips", "::", "A3", ")", "{", "MIRBuilder", ".", "buildInstr", "(", "Mips", "::", "MFC1", ")", ".", "addDef", "(", "PhysReg", ")", ".", "addUse", "(", "ValVReg", ")", ".", "constrainAllUses", "(", "MIRBuilder", ".", "getTII", "(", ")", ",", "*", "STI", ".", "getRegisterInfo", "(", ")", ",", "*", "STI", ".", "getRegBankInfo", "(", ")", ")", ";", "}", "else", "{", "Register", "ExtReg", "=", "extendRegister", "(", "ValVReg", ",", "VA", ")", ";", "MIRBuilder", ".", "buildCopy", "(", "PhysReg", ",", "ExtReg", ")", ";", "MIB", ".", "addUse", "(", "PhysReg", ",", "RegState", "::", "Implicit", ")", ";", "}", "}", ""], "natrual_language": ["The", "specified", "value", "has", "been", "assigned", "to", "a", "physical", "register", ",", "handle", "the", "appropriate", "COPY", "(", "either", "to", "or", "from", ")", "and", "mark", "any", "relevant", "uses/defines", "as", "needed", "."], "TS_V_token": ["Mips", "Mips", "Mips", "MVT::f64", "Mips::A0", "Mips::A3", "Mips::ExtractElementF64_64", "Mips::ExtractElementF64", "1", "0", "1", "Mips::ExtractElementF64_64", "Mips::ExtractElementF64", "0", "1", "0", "MVT::f32", "Mips::A0", "Mips::A3", "Mips::MFC1"], "File": "MipsCallLowering10", "Func": "assignValueToReg", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 296, "Length": 310, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "resolve_vec_step", "(", "resolution", "*", "res", ",", "vec", "<", "tree", ",", "va_gc", ">", "*", "arglist", ",", "unsigned", "nargs", ")", "{", "if", "(", "nargs", "!=", "1", ")", "{", "error", "(", "\"builtin %qs only accepts 1 argument\"", ",", "\"vec_step\"", ")", ";", "*", "res", "=", "resolved", ";", "return", "error_mark_node", ";", "}", "tree", "arg0", "=", "(", "*", "arglist", ")", "[", "0", "]", ";", "tree", "arg0_type", "=", "TREE_TYPE", "(", "arg0", ")", ";", "if", "(", "TREE_CODE", "(", "arg0_type", ")", "!=", "VECTOR_TYPE", ")", "{", "*", "res", "=", "resolved_bad", ";", "return", "error_mark_node", ";", "}", "*", "res", "=", "resolved", ";", "return", "build_int_cst", "(", "NULL_TREE", ",", "TYPE_VECTOR_SUBPARTS", "(", "arg0_type", ")", ")", ";", "}", ""], "natrual_language": ["Resolve", "an", "overloaded", "vec_step", "call", "and", "return", "a", "tree", "expression", "for", "the", "resolved", "call", "if", "successful", ".", "NARGS", "is", "the", "number", "of", "arguments", "to", "the", "call", ".", "ARGLIST", "contains", "the", "arguments", ".", "RES", "must", "be", "set", "to", "indicate", "the", "status", "of", "the", "resolution", "attempt", "."], "TS_V_token": ["rs6000", "1", "\"builtin %qs only accepts 1 argument\"", "\"vec_step\"", "0"], "File": "rs6000-c", "Func": "resolve_vec_step", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 297, "Length": 99, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "register_builtin_types", "(", ")", "{", "scalar_types", "[", "VECTOR_TYPE_", "##", "ACLE_NAME", "]", "=", "SCALAR_TYPE", ";", "for", "(", "unsigned", "int", "i", "=", "0", ";", "i", "<", "NUM_VECTOR_TYPES", ";", "++", "i", ")", "{", "tree", "eltype", "=", "scalar_types", "[", "i", "]", ";", "tree", "vectype", ";", "unsigned", "int", "num_zr", "=", "0", ",", "num_pr", "=", "0", ";", "if", "(", "eltype", "==", "boolean_type_node", ")", "{", "vectype", "=", "build_truth_vector_type_for_mode", "(", "BYTES_PER_SVE_VECTOR", ",", "VNx16BImode", ")", ";", "gcc_assert", "(", "TYPE_MODE", "(", "vectype", ")", "==", "VNx16BImode", "&&", "TYPE_MODE", "(", "vectype", ")", "==", "TYPE_MODE_RAW", "(", "vectype", ")", "&&", "TYPE_ALIGN", "(", "vectype", ")", "==", "16", "&&", "known_eq", "(", "wi", "::", "to_poly_offset", "(", "TYPE_SIZE", "(", "vectype", ")", ")", ",", "BYTES_PER_SVE_VECTOR", ")", ")", ";", "num_pr", "=", "1", ";", "}", "else", "{", "scalar_mode", "elmode", "=", "SCALAR_TYPE_MODE", "(", "eltype", ")", ";", "unsigned", "int", "elbytes", "=", "GET_MODE_SIZE", "(", "elmode", ")", ";", "poly_uint64", "nunits", "=", "exact_div", "(", "BYTES_PER_SVE_VECTOR", ",", "elbytes", ")", ";", "machine_mode", "mode", "=", "aarch64_sve_data_mode", "(", "elmode", ",", "nunits", ")", ".", "require", "(", ")", ";", "vectype", "=", "build_vector_type_for_mode", "(", "eltype", ",", "mode", ")", ";", "gcc_assert", "(", "VECTOR_MODE_P", "(", "TYPE_MODE", "(", "vectype", ")", ")", "&&", "TYPE_MODE", "(", "vectype", ")", "==", "mode", "&&", "TYPE_MODE_RAW", "(", "vectype", ")", "==", "mode", "&&", "TYPE_ALIGN", "(", "vectype", ")", "==", "128", "&&", "known_eq", "(", "wi", "::", "to_poly_offset", "(", "TYPE_SIZE", "(", "vectype", ")", ")", ",", "BITS_PER_SVE_VECTOR", ")", ")", ";", "num_zr", "=", "1", ";", "}", "vectype", "=", "build_distinct_type_copy", "(", "vectype", ")", ";", "gcc_assert", "(", "vectype", "==", "TYPE_MAIN_VARIANT", "(", "vectype", ")", ")", ";", "SET_TYPE_STRUCTURAL_EQUALITY", "(", "vectype", ")", ";", "TYPE_ARTIFICIAL", "(", "vectype", ")", "=", "1", ";", "TYPE_INDIVISIBLE_P", "(", "vectype", ")", "=", "1", ";", "add_sve_type_attribute", "(", "vectype", ",", "num_zr", ",", "num_pr", ",", "vector_types", "[", "i", "]", ".", "mangled_name", ",", "vector_types", "[", "i", "]", ".", "acle_name", ")", ";", "make_type_sizeless", "(", "vectype", ")", ";", "abi_vector_types", "[", "i", "]", "=", "vectype", ";", "lang_hooks", ".", "types", ".", "register_builtin_type", "(", "vectype", ",", "vector_types", "[", "i", "]", ".", "abi_name", ")", ";", "}", "}", ""], "natrual_language": ["Register", "the", "built-in", "RVV", "ABI", "types", ",", "such", "as", "__rvv_int32m1_t", "."], "TS_V_token": ["aarch64", "0", "0", "0", "16", "1", "128", "1", "1", "1"], "File": "aarch64-sve-builtins1", "Func": "register_builtin_types", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 298, "Length": 308, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "rs6000_cost_data", "::", "update_target_cost_per_stmt", "(", "vect_cost_for_stmt", "kind", ",", "stmt_vec_info", "stmt_info", ",", "vect_cost_model_location", "where", ",", "unsigned", "int", "orig_count", ")", "{", "if", "(", "kind", "==", "vec_to_scalar", "||", "kind", "==", "vec_perm", "||", "kind", "==", "vec_promote_demote", "||", "kind", "==", "vec_construct", "||", "kind", "==", "scalar_to_vec", "||", "(", "where", "==", "vect_body", "&&", "kind", "==", "vector_stmt", ")", ")", "m_vect_nonmem", "=", "true", ";", "if", "(", "!", "m_costing_for_scalar", "&&", "is_a", "<", "loop_vec_info", ">", "(", "m_vinfo", ")", "&&", "where", "==", "vect_body", ")", "{", "m_nstmts", "+=", "orig_count", ";", "if", "(", "kind", "==", "scalar_load", "||", "kind", "==", "vector_load", "||", "kind", "==", "unaligned_load", "||", "kind", "==", "vector_gather_load", ")", "{", "m_nloads", "+=", "orig_count", ";", "if", "(", "stmt_info", "&&", "STMT_VINFO_GATHER_SCATTER_P", "(", "stmt_info", ")", ")", "m_gather_load", "=", "true", ";", "}", "else", "if", "(", "kind", "==", "scalar_store", "||", "kind", "==", "vector_store", "||", "kind", "==", "unaligned_store", "||", "kind", "==", "vector_scatter_store", ")", "m_nstores", "+=", "orig_count", ";", "else", "if", "(", "(", "kind", "==", "scalar_stmt", "||", "kind", "==", "vector_stmt", "||", "kind", "==", "vec_to_scalar", ")", "&&", "stmt_info", "&&", "vect_is_reduction", "(", "stmt_info", ")", ")", "{", "tree", "lhs", "=", "gimple_get_lhs", "(", "stmt_info", "->", "stmt", ")", ";", "bool", "is_float", "=", "FLOAT_TYPE_P", "(", "TREE_TYPE", "(", "lhs", ")", ")", ";", "unsigned", "int", "basic_cost", "=", "is_float", "?", "2", ":", "1", ";", "m_reduc_factor", "=", "MAX", "(", "basic_cost", "*", "orig_count", ",", "m_reduc_factor", ")", ";", "}", "if", "(", "kind", "==", "vec_construct", "&&", "stmt_info", "&&", "STMT_VINFO_TYPE", "(", "stmt_info", ")", "==", "load_vec_info_type", "&&", "(", "STMT_VINFO_MEMORY_ACCESS_TYPE", "(", "stmt_info", ")", "==", "VMAT_ELEMENTWISE", "||", "STMT_VINFO_MEMORY_ACCESS_TYPE", "(", "stmt_info", ")", "==", "VMAT_STRIDED_SLP", ")", ")", "{", "tree", "vectype", "=", "STMT_VINFO_VECTYPE", "(", "stmt_info", ")", ";", "unsigned", "int", "nunits", "=", "vect_nunits_for_cost", "(", "vectype", ")", ";", "if", "(", "nunits", "==", "1", ")", "return", ";", "unsigned", "int", "adjusted_cost", "=", "(", "nunits", "==", "2", ")", "?", "2", ":", "1", ";", "unsigned", "int", "extra_cost", "=", "nunits", "*", "adjusted_cost", ";", "m_extra_ctor_cost", "+=", "extra_cost", ";", "}", "}", "}", ""], "natrual_language": ["Helper", "function", "for", "add_stmt_cost", ".", "Check", "each", "statement", "cost", "entry", ",", "gather", "information", "and", "update", "the", "target_cost", "fields", "accordingly", "."], "TS_V_token": ["rs6000", "2", "1", "1", "2", "2", "1"], "File": "rs60001", "Func": "update_target_cost_per_stmt", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 299, "Length": 291, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Thumb2InstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ")", "const", "{", "DebugLoc", "DL", "=", "DebugLoc", "::", "getUnknownLoc", "(", ")", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "RC", "==", "ARM", "::", "GPRRegisterClass", ")", "{", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "*", "MF", ".", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "PseudoSourceValue", "::", "getFixedStack", "(", "FI", ")", ",", "MachineMemOperand", "::", "MOStore", ",", "0", ",", "MFI", ".", "getObjectSize", "(", "FI", ")", ",", "MFI", ".", "getObjectAlignment", "(", "FI", ")", ")", ";", "AddDefaultPred", "(", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "t2STRi12", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ")", ";", "return", ";", "}", "ARMBaseInstrInfo", "::", "storeRegToStackSlot", "(", "MBB", ",", "I", ",", "SrcReg", ",", "isKill", ",", "FI", ",", "RC", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARM", "ARM::GPRRegisterClass", "0", "ARM::t2STRi12", "0", "ARM"], "File": "Thumb2InstrInfo37", "Func": "storeRegToStackSlot", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 300, "Length": 189, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Value", "*", "ARMTargetLowering", "::", "emitStoreConditional", "(", "IRBuilder", "<", ">", "&", "Builder", ",", "Value", "*", "Val", ",", "Value", "*", "Addr", ",", "AtomicOrdering", "Ord", ")", "const", "{", "Module", "*", "M", "=", "Builder", ".", "GetInsertBlock", "(", ")", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "bool", "IsRelease", "=", "Ord", "==", "Release", "||", "Ord", "==", "AcquireRelease", "||", "Ord", "==", "SequentiallyConsistent", ";", "if", "(", "Val", "->", "getType", "(", ")", "->", "getPrimitiveSizeInBits", "(", ")", "==", "64", ")", "{", "Intrinsic", "::", "ID", "Int", "=", "IsRelease", "?", "Intrinsic", "::", "arm_stlexd", ":", "Intrinsic", "::", "arm_strexd", ";", "Function", "*", "Strex", "=", "Intrinsic", "::", "getDeclaration", "(", "M", ",", "Int", ")", ";", "Type", "*", "Int32Ty", "=", "Type", "::", "getInt32Ty", "(", "M", "->", "getContext", "(", ")", ")", ";", "Value", "*", "Lo", "=", "Builder", ".", "CreateTrunc", "(", "Val", ",", "Int32Ty", ",", "\"lo\"", ")", ";", "Value", "*", "Hi", "=", "Builder", ".", "CreateTrunc", "(", "Builder", ".", "CreateLShr", "(", "Val", ",", "32", ")", ",", "Int32Ty", ",", "\"hi\"", ")", ";", "Addr", "=", "Builder", ".", "CreateBitCast", "(", "Addr", ",", "Type", "::", "getInt8PtrTy", "(", "M", "->", "getContext", "(", ")", ")", ")", ";", "return", "Builder", ".", "CreateCall3", "(", "Strex", ",", "Lo", ",", "Hi", ",", "Addr", ")", ";", "}", "Intrinsic", "::", "ID", "Int", "=", "IsRelease", "?", "Intrinsic", "::", "arm_stlex", ":", "Intrinsic", "::", "arm_strex", ";", "Type", "*", "Tys", "[", "]", "=", "{", "Addr", "->", "getType", "(", ")", "}", ";", "Function", "*", "Strex", "=", "Intrinsic", "::", "getDeclaration", "(", "M", ",", "Int", ",", "Tys", ")", ";", "return", "Builder", ".", "CreateCall2", "(", "Strex", ",", "Builder", ".", "CreateZExtOrBitCast", "(", "Val", ",", "Strex", "->", "getFunctionType", "(", ")", "->", "getParamType", "(", "0", ")", ")", ",", "Addr", ")", ";", "}", ""], "natrual_language": ["Perform", "a", "store-conditional", "operation", "to", "Addr", "."], "TS_V_token": ["ARM", "ARM", "64", "Intrinsic::ID", "Intrinsic::arm_stlexd", "Intrinsic::arm_strexd", "Intrinsic::getDeclaration", "\"lo\"", "32", "\"hi\"", "Intrinsic::ID", "Intrinsic::arm_stlex", "Intrinsic::arm_strex", "Intrinsic::getDeclaration", "0"], "File": "ARMISelLowering121", "Func": "emitStoreConditional", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 301, "Length": 261, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "seh_frame_related_expr", "(", "FILE", "*", "f", ",", "struct", "seh_frame_state", "*", "seh", ",", "rtx", "pat", ")", "{", "rtx", "dest", ",", "src", ";", "HOST_WIDE_INT", "addend", ";", "if", "(", "GET_CODE", "(", "pat", ")", "==", "PARALLEL", "||", "GET_CODE", "(", "pat", ")", "==", "SEQUENCE", ")", "{", "int", "i", ",", "n", "=", "XVECLEN", "(", "pat", ",", "0", ")", ",", "pass", ",", "npass", ";", "npass", "=", "(", "GET_CODE", "(", "pat", ")", "==", "PARALLEL", "?", "2", ":", "1", ")", ";", "for", "(", "pass", "=", "0", ";", "pass", "<", "npass", ";", "++", "pass", ")", "for", "(", "i", "=", "0", ";", "i", "<", "n", ";", "++", "i", ")", "{", "rtx", "ele", "=", "XVECEXP", "(", "pat", ",", "0", ",", "i", ")", ";", "if", "(", "GET_CODE", "(", "ele", ")", "!=", "SET", ")", "continue", ";", "dest", "=", "SET_DEST", "(", "ele", ")", ";", "if", "(", "i", "==", "0", "||", "RTX_FRAME_RELATED_P", "(", "ele", ")", ")", "{", "if", "(", "(", "MEM_P", "(", "dest", ")", "^", "pass", ")", "||", "npass", "==", "1", ")", "seh_frame_related_expr", "(", "f", ",", "seh", ",", "ele", ")", ";", "}", "}", "return", ";", "}", "dest", "=", "SET_DEST", "(", "pat", ")", ";", "src", "=", "SET_SRC", "(", "pat", ")", ";", "switch", "(", "GET_CODE", "(", "dest", ")", ")", "{", "case", "REG", ":", "switch", "(", "GET_CODE", "(", "src", ")", ")", "{", "case", "REG", ":", "gcc_assert", "(", "src", "==", "stack_pointer_rtx", ")", ";", "gcc_assert", "(", "dest", "==", "hard_frame_pointer_rtx", ")", ";", "seh_cfa_adjust_cfa", "(", "f", ",", "seh", ",", "pat", ")", ";", "break", ";", "case", "PLUS", ":", "addend", "=", "INTVAL", "(", "XEXP", "(", "src", ",", "1", ")", ")", ";", "src", "=", "XEXP", "(", "src", ",", "0", ")", ";", "if", "(", "dest", "==", "hard_frame_pointer_rtx", ")", "seh_cfa_adjust_cfa", "(", "f", ",", "seh", ",", "pat", ")", ";", "else", "if", "(", "dest", "==", "stack_pointer_rtx", ")", "{", "gcc_assert", "(", "src", "==", "stack_pointer_rtx", ")", ";", "seh_emit_stackalloc", "(", "f", ",", "seh", ",", "addend", ")", ";", "}", "else", "gcc_unreachable", "(", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "break", ";", "case", "MEM", ":", "dest", "=", "XEXP", "(", "dest", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "dest", ")", "==", "PRE_DEC", ")", "{", "gcc_checking_assert", "(", "GET_MODE", "(", "src", ")", "==", "Pmode", ")", ";", "gcc_checking_assert", "(", "REG_P", "(", "src", ")", ")", ";", "seh_emit_push", "(", "f", ",", "seh", ",", "src", ")", ";", "}", "else", "seh_cfa_offset", "(", "f", ",", "seh", ",", "pat", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Process", "a", "FRAME_RELATED_EXPR", "for", "SEH", "."], "TS_V_token": ["i386", "0", "2", "1", "0", "0", "0", "0", "1", "1", "0", "0"], "File": "winnt", "Func": "seh_frame_related_expr", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 302, "Length": 382, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZRegisterInfo", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "const", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "TargetFrameInfo", "&", "TFI", "=", "*", "MF", ".", "getTarget", "(", ")", ".", "getFrameInfo", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "prior", "(", "MBB", ".", "end", "(", ")", ")", ";", "SystemZMachineFunctionInfo", "*", "SystemZMFI", "=", "MF", ".", "getInfo", "<", "SystemZMachineFunctionInfo", ">", "(", ")", ";", "unsigned", "RetOpcode", "=", "MBBI", "->", "getOpcode", "(", ")", ";", "switch", "(", "RetOpcode", ")", "{", "case", "SystemZ", "::", "RET", ":", "break", ";", "default", ":", "assert", "(", "0", "&&", "\"Can only insert epilog into returning blocks\"", ")", ";", "}", "uint64_t", "StackSize", "=", "MFI", "->", "getStackSize", "(", ")", "-", "SystemZMFI", "->", "getCalleeSavedFrameSize", "(", ")", ";", "uint64_t", "NumBytes", "=", "StackSize", "-", "TFI", ".", "getOffsetOfLocalArea", "(", ")", ";", "while", "(", "MBBI", "!=", "MBB", ".", "begin", "(", ")", ")", "{", "MachineBasicBlock", "::", "iterator", "PI", "=", "prior", "(", "MBBI", ")", ";", "--", "MBBI", ";", "if", "(", "!", "PI", "->", "getDesc", "(", ")", ".", "isTerminator", "(", ")", ")", "break", ";", "}", "if", "(", "StackSize", "||", "MFI", "->", "hasCalls", "(", ")", ")", "{", "assert", "(", "(", "MBBI", "->", "getOpcode", "(", ")", "==", "SystemZ", "::", "MOV64rmm", "||", "MBBI", "->", "getOpcode", "(", ")", "==", "SystemZ", "::", "MOV64rm", ")", "&&", "\"Expected to see callee-save register restore code\"", ")", ";", "assert", "(", "MF", ".", "getRegInfo", "(", ")", ".", "isPhysRegUsed", "(", "SystemZ", "::", "R15D", ")", "&&", "\"Invalid stack frame calculation!\"", ")", ";", "unsigned", "i", "=", "0", ";", "MachineInstr", "&", "MI", "=", "*", "MBBI", ";", "while", "(", "!", "MI", ".", "getOperand", "(", "i", ")", ".", "isImm", "(", ")", ")", "{", "++", "i", ";", "assert", "(", "i", "<", "MI", ".", "getNumOperands", "(", ")", "&&", "\"Unexpected restore code!\"", ")", ";", "}", "uint64_t", "Offset", "=", "NumBytes", "+", "MI", ".", "getOperand", "(", "i", ")", ".", "getImm", "(", ")", ";", "if", "(", "Offset", ">", "524287", ")", "{", "NumBytes", "=", "Offset", "-", "524287", ";", "Offset", "=", "524287", ";", "emitSPUpdate", "(", "MBB", ",", "MBBI", ",", "NumBytes", ",", "TII", ")", ";", "}", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";", "}", "}", ""], "natrual_language": ["Insert", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ::RET", "0", "\"Can only insert epilog into returning blocks\"", "SystemZ", "SystemZ::MOV64rmm", "SystemZ::MOV64rm", "\"Expected to see callee-save register restore code\"", "SystemZ::R15D", "\"Invalid stack frame calculation!\"", "0", "\"Unexpected restore code!\"", "524287", "524287", "524287"], "File": "SystemZRegisterInfo13", "Func": "emitEpilogue", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 303, "Length": 325, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "HOST_WIDE_INT", "compute_frame_size", "(", "HOST_WIDE_INT", "size", ")", "{", "int", "regno", ";", "HOST_WIDE_INT", "total_size", ";", "HOST_WIDE_INT", "var_size", ";", "HOST_WIDE_INT", "args_size", ";", "HOST_WIDE_INT", "extra_size", ";", "HOST_WIDE_INT", "gp_reg_rounded", ";", "HOST_WIDE_INT", "gp_reg_size", ";", "HOST_WIDE_INT", "fp_reg_size", ";", "long", "mask", ";", "gp_reg_size", "=", "0", ";", "fp_reg_size", "=", "0", ";", "mask", "=", "0", ";", "extra_size", "=", "IQ2000_STACK_ALIGN", "(", "(", "0", ")", ")", ";", "var_size", "=", "IQ2000_STACK_ALIGN", "(", "size", ")", ";", "args_size", "=", "IQ2000_STACK_ALIGN", "(", "crtl", "->", "outgoing_args_size", ")", ";", "if", "(", "args_size", "==", "0", "&&", "cfun", "->", "calls_alloca", ")", "args_size", "=", "4", "*", "UNITS_PER_WORD", ";", "total_size", "=", "var_size", "+", "args_size", "+", "extra_size", ";", "for", "(", "regno", "=", "GP_REG_FIRST", ";", "regno", "<=", "GP_REG_LAST", ";", "regno", "++", ")", "{", "if", "(", "MUST_SAVE_REGISTER", "(", "regno", ")", ")", "{", "gp_reg_size", "+=", "GET_MODE_SIZE", "(", "gpr_mode", ")", ";", "mask", "|=", "1L", "<<", "(", "regno", "-", "GP_REG_FIRST", ")", ";", "}", "}", "if", "(", "crtl", "->", "calls_eh_return", ")", "{", "unsigned", "int", "i", ";", "for", "(", "i", "=", "0", ";", ";", "++", "i", ")", "{", "regno", "=", "EH_RETURN_DATA_REGNO", "(", "i", ")", ";", "if", "(", "regno", "==", "(", "int", ")", "INVALID_REGNUM", ")", "break", ";", "gp_reg_size", "+=", "GET_MODE_SIZE", "(", "gpr_mode", ")", ";", "mask", "|=", "1L", "<<", "(", "regno", "-", "GP_REG_FIRST", ")", ";", "}", "}", "gp_reg_rounded", "=", "IQ2000_STACK_ALIGN", "(", "gp_reg_size", ")", ";", "total_size", "+=", "gp_reg_rounded", "+", "IQ2000_STACK_ALIGN", "(", "fp_reg_size", ")", ";", "if", "(", "total_size", "==", "extra_size", "&&", "!", "profile_flag", ")", "total_size", "=", "extra_size", "=", "0", ";", "total_size", "+=", "IQ2000_STACK_ALIGN", "(", "crtl", "->", "args", ".", "pretend_args_size", ")", ";", "cfun", "->", "machine", "->", "total_size", "=", "total_size", ";", "cfun", "->", "machine", "->", "var_size", "=", "var_size", ";", "cfun", "->", "machine", "->", "args_size", "=", "args_size", ";", "cfun", "->", "machine", "->", "extra_size", "=", "extra_size", ";", "cfun", "->", "machine", "->", "gp_reg_size", "=", "gp_reg_size", ";", "cfun", "->", "machine", "->", "fp_reg_size", "=", "fp_reg_size", ";", "cfun", "->", "machine", "->", "mask", "=", "mask", ";", "cfun", "->", "machine", "->", "initialized", "=", "reload_completed", ";", "cfun", "->", "machine", "->", "num_gp", "=", "gp_reg_size", "/", "UNITS_PER_WORD", ";", "if", "(", "mask", ")", "{", "unsigned", "long", "offset", ";", "offset", "=", "(", "args_size", "+", "extra_size", "+", "var_size", "+", "gp_reg_size", "-", "GET_MODE_SIZE", "(", "gpr_mode", ")", ")", ";", "cfun", "->", "machine", "->", "gp_sp_offset", "=", "offset", ";", "cfun", "->", "machine", "->", "gp_save_offset", "=", "offset", "-", "total_size", ";", "}", "else", "{", "cfun", "->", "machine", "->", "gp_sp_offset", "=", "0", ";", "cfun", "->", "machine", "->", "gp_save_offset", "=", "0", ";", "}", "cfun", "->", "machine", "->", "fp_sp_offset", "=", "0", ";", "cfun", "->", "machine", "->", "fp_save_offset", "=", "0", ";", "return", "total_size", ";", "}", ""], "natrual_language": ["Typical", "stack", "layout", "should", "looks", "like", "this", "after", "the", "function", "'s", "prologue", ":", "|", "|", "--", "^", "|", "|", "\\", "|", "|", "|", "arguments", "saved", "|", "Increasing", "|", "|", "on", "the", "stack", "|", "addresses", "PARENT", "arg", "pointer", "-", ">", "|", "|", "/", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "-", "|", "|", "-", "space", "for", "argument", "split", "between", "regs", "&", "stack", "--", "CHILD", "|", "|", "\\", "<", "--", "(", "return", "address", "here", ")", "|", "|", "other", "call", "|", "|", "saved", "registers", "|", "|", "/", "--", "frame", "pointer", "-", ">", "|", "|", "\\", "___", "|", "|", "local", "|", "|", "|", "variables", "|f", "|", "|", "/", "|r", "--", "|a", "|", "|", "\\", "|m", "|", "|", "outgoing", "|e", "|", "|", "arguments", "|", "|", "Decreasing", "(", "hard", ")", "frame", "pointer", "|", "|", "/", "|", "|", "addresses", "and", "stack", "pointer", "-", ">", "|", "|", "/", "_|_", "|", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "--", "V"], "TS_V_token": ["iq2000", "0", "0", "0", "0", "0", "4", "1L", "0", "1L", "0", "0", "0", "0", "0"], "File": "iq2000", "Func": "compute_frame_size", "Target": "iq2000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 304, "Length": 395, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZPassConfig", "::", "addInstSelector", "(", ")", "{", "addPass", "(", "createSystemZISelDag", "(", "getSystemZTargetMachine", "(", ")", ",", "getOptLevel", "(", ")", ")", ")", ";", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createSystemZLDCleanupPass", "(", "getSystemZTargetMachine", "(", ")", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["addInstSelector", "-", "This", "method", "should", "install", "an", "instruction", "selector", "pass", ",", "which", "converts", "from", "LLVM", "code", "to", "machine", "instructions", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ"], "File": "SystemZTargetMachine10", "Func": "addInstSelector", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 305, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Value", "*", "X86TargetLowering", "::", "getSafeStackPointerLocation", "(", "IRBuilder", "<", ">", "&", "IRB", ")", "const", "{", "if", "(", "!", "Subtarget", "->", "isTargetAndroid", "(", ")", ")", "return", "TargetLowering", "::", "getSafeStackPointerLocation", "(", "IRB", ")", ";", "unsigned", "AddressSpace", ",", "Offset", ";", "if", "(", "Subtarget", "->", "is64Bit", "(", ")", ")", "{", "Offset", "=", "0x48", ";", "if", "(", "getTargetMachine", "(", ")", ".", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Kernel", ")", "AddressSpace", "=", "256", ";", "else", "AddressSpace", "=", "257", ";", "}", "else", "{", "Offset", "=", "0x24", ";", "AddressSpace", "=", "256", ";", "}", "return", "ConstantExpr", "::", "getIntToPtr", "(", "ConstantInt", "::", "get", "(", "Type", "::", "getInt32Ty", "(", "IRB", ".", "getContext", "(", ")", ")", ",", "Offset", ")", ",", "Type", "::", "getInt8PtrTy", "(", "IRB", ".", "getContext", "(", ")", ")", "->", "getPointerTo", "(", "AddressSpace", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "stores", "SafeStack", "pointer", "at", "a", "fixed", "offset", "in", "some", "non-standard", "address", "space", ",", "and", "populates", "the", "address", "space", "and", "offset", "as", "appropriate", "."], "TS_V_token": ["X86", "X86", "0x48", "256", "257", "0x24", "256"], "File": "X86ISelLowering (2)3", "Func": "getSafeStackPointerLocation", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 306, "Length": 125, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SparcRegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", "RS", ")", "const", "{", "assert", "(", "SPAdj", "==", "0", "&&", "\"Unexpected\"", ")", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "DebugLoc", "dl", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "getIndex", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "SparcSubtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "SparcSubtarget", ">", "(", ")", ";", "const", "SparcFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "unsigned", "FrameReg", ";", "int", "Offset", ";", "Offset", "=", "TFI", "->", "getFrameIndexReference", "(", "MF", ",", "FrameIndex", ",", "FrameReg", ")", ";", "Offset", "+=", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "getImm", "(", ")", ";", "if", "(", "!", "Subtarget", ".", "isV9", "(", ")", "||", "!", "Subtarget", ".", "hasHardQuad", "(", ")", ")", "{", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "SP", "::", "STQFri", ")", "{", "const", "TargetInstrInfo", "&", "TII", "=", "*", "Subtarget", ".", "getInstrInfo", "(", ")", ";", "unsigned", "SrcReg", "=", "MI", ".", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ";", "unsigned", "SrcEvenReg", "=", "getSubReg", "(", "SrcReg", ",", "SP", "::", "sub_even64", ")", ";", "unsigned", "SrcOddReg", "=", "getSubReg", "(", "SrcReg", ",", "SP", "::", "sub_odd64", ")", ";", "MachineInstr", "*", "StMI", "=", "BuildMI", "(", "*", "MI", ".", "getParent", "(", ")", ",", "II", ",", "dl", ",", "TII", ".", "get", "(", "SP", "::", "STDFri", ")", ")", ".", "addReg", "(", "FrameReg", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcEvenReg", ")", ";", "replaceFI", "(", "MF", ",", "*", "StMI", ",", "*", "StMI", ",", "dl", ",", "0", ",", "Offset", ",", "FrameReg", ")", ";", "MI", ".", "setDesc", "(", "TII", ".", "get", "(", "SP", "::", "STDFri", ")", ")", ";", "MI", ".", "getOperand", "(", "2", ")", ".", "setReg", "(", "SrcOddReg", ")", ";", "Offset", "+=", "8", ";", "}", "else", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "SP", "::", "LDQFri", ")", "{", "const", "TargetInstrInfo", "&", "TII", "=", "*", "Subtarget", ".", "getInstrInfo", "(", ")", ";", "unsigned", "DestReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "unsigned", "DestEvenReg", "=", "getSubReg", "(", "DestReg", ",", "SP", "::", "sub_even64", ")", ";", "unsigned", "DestOddReg", "=", "getSubReg", "(", "DestReg", ",", "SP", "::", "sub_odd64", ")", ";", "MachineInstr", "*", "StMI", "=", "BuildMI", "(", "*", "MI", ".", "getParent", "(", ")", ",", "II", ",", "dl", ",", "TII", ".", "get", "(", "SP", "::", "LDDFri", ")", ",", "DestEvenReg", ")", ".", "addReg", "(", "FrameReg", ")", ".", "addImm", "(", "0", ")", ";", "replaceFI", "(", "MF", ",", "*", "StMI", ",", "*", "StMI", ",", "dl", ",", "1", ",", "Offset", ",", "FrameReg", ")", ";", "MI", ".", "setDesc", "(", "TII", ".", "get", "(", "SP", "::", "LDDFri", ")", ")", ";", "MI", ".", "getOperand", "(", "0", ")", ".", "setReg", "(", "DestOddReg", ")", ";", "Offset", "+=", "8", ";", "}", "}", "replaceFI", "(", "MF", ",", "II", ",", "MI", ",", "dl", ",", "FIOperandNum", ",", "Offset", ",", "FrameReg", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["Sparc", "Sparc", "SP", "SP", "0", "\"Unexpected\"", "Sparc", "Sparc", "Sparc", "1", "SP::STQFri", "2", "SP::sub_even64", "SP::sub_odd64", "SP::STDFri", "0", "0", "SP::STDFri", "2", "8", "SP::LDQFri", "0", "SP::sub_even64", "SP::sub_odd64", "SP::LDDFri", "0", "1", "SP::LDDFri", "0", "8"], "File": "SparcRegisterInfo22", "Func": "eliminateFrameIndex", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 307, "Length": 478, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "AArch64RegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "Reserved", ".", "set", "(", "AArch64", "::", "XSP", ")", ";", "Reserved", ".", "set", "(", "AArch64", "::", "WSP", ")", ";", "Reserved", ".", "set", "(", "AArch64", "::", "XZR", ")", ";", "Reserved", ".", "set", "(", "AArch64", "::", "WZR", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "{", "Reserved", ".", "set", "(", "AArch64", "::", "X29", ")", ";", "Reserved", ".", "set", "(", "AArch64", "::", "W29", ")", ";", "}", "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": ["AArch64", "AArch64", "AArch64::XSP", "AArch64::WSP", "AArch64::XZR", "AArch64::WZR", "AArch64::X29", "AArch64::W29"], "File": "AArch64RegisterInfo20", "Func": "getReservedRegs", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 308, "Length": 104, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCObjectWriter", "*", "createObjectWriter", "(", "raw_ostream", "&", "OS", ")", "const", "override", "{", "return", "createSystemZObjectWriter", "(", "OS", ",", "OSABI", ")", ";", "}", ""], "natrual_language": ["Create", "a", "new", "MCObjectWriter", "instance", "for", "use", "by", "the", "assembler", "backend", "to", "emit", "the", "final", "object", "file", "."], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZMCAsmBackend13", "Func": "createObjectWriter", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 309, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ix86_expand_copysign", "(", "rtx", "operands", "[", "]", ")", "{", "machine_mode", "mode", ",", "vmode", ";", "rtx", "dest", ",", "op0", ",", "op1", ",", "mask", ",", "nmask", ";", "dest", "=", "operands", "[", "0", "]", ";", "op0", "=", "operands", "[", "1", "]", ";", "op1", "=", "operands", "[", "2", "]", ";", "mode", "=", "GET_MODE", "(", "dest", ")", ";", "if", "(", "mode", "==", "SFmode", ")", "vmode", "=", "V4SFmode", ";", "else", "if", "(", "mode", "==", "DFmode", ")", "vmode", "=", "V2DFmode", ";", "else", "vmode", "=", "mode", ";", "if", "(", "GET_CODE", "(", "op0", ")", "==", "CONST_DOUBLE", ")", "{", "rtx", "(", "*", "copysign_insn", ")", "(", "rtx", ",", "rtx", ",", "rtx", ",", "rtx", ")", ";", "if", "(", "real_isneg", "(", "CONST_DOUBLE_REAL_VALUE", "(", "op0", ")", ")", ")", "op0", "=", "simplify_unary_operation", "(", "ABS", ",", "mode", ",", "op0", ",", "mode", ")", ";", "if", "(", "mode", "==", "SFmode", "||", "mode", "==", "DFmode", ")", "{", "if", "(", "op0", "==", "CONST0_RTX", "(", "mode", ")", ")", "op0", "=", "CONST0_RTX", "(", "vmode", ")", ";", "else", "{", "rtx", "v", "=", "ix86_build_const_vector", "(", "vmode", ",", "false", ",", "op0", ")", ";", "op0", "=", "force_reg", "(", "vmode", ",", "v", ")", ";", "}", "}", "else", "if", "(", "op0", "!=", "CONST0_RTX", "(", "mode", ")", ")", "op0", "=", "force_reg", "(", "mode", ",", "op0", ")", ";", "mask", "=", "ix86_build_signbit_mask", "(", "vmode", ",", "0", ",", "0", ")", ";", "if", "(", "mode", "==", "SFmode", ")", "copysign_insn", "=", "gen_copysignsf3_const", ";", "else", "if", "(", "mode", "==", "DFmode", ")", "copysign_insn", "=", "gen_copysigndf3_const", ";", "else", "copysign_insn", "=", "gen_copysigntf3_const", ";", "emit_insn", "(", "copysign_insn", "(", "dest", ",", "op0", ",", "op1", ",", "mask", ")", ")", ";", "}", "else", "{", "rtx", "(", "*", "copysign_insn", ")", "(", "rtx", ",", "rtx", ",", "rtx", ",", "rtx", ",", "rtx", ",", "rtx", ")", ";", "nmask", "=", "ix86_build_signbit_mask", "(", "vmode", ",", "0", ",", "1", ")", ";", "mask", "=", "ix86_build_signbit_mask", "(", "vmode", ",", "0", ",", "0", ")", ";", "if", "(", "mode", "==", "SFmode", ")", "copysign_insn", "=", "gen_copysignsf3_var", ";", "else", "if", "(", "mode", "==", "DFmode", ")", "copysign_insn", "=", "gen_copysigndf3_var", ";", "else", "copysign_insn", "=", "gen_copysigntf3_var", ";", "emit_insn", "(", "copysign_insn", "(", "dest", ",", "NULL_RTX", ",", "op0", ",", "op1", ",", "nmask", ",", "mask", ")", ")", ";", "}", "}", ""], "natrual_language": ["Expand", "a", "copysign", "operation", ".", "Special", "case", "operand", "0", "being", "a", "constant", "."], "TS_V_token": ["i386", "0", "1", "2", "0", "0", "0", "1", "0", "0"], "File": "i3864", "Func": "ix86_expand_copysign", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 310, "Length": 339, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "get213Opcode", "(", ")", "const", "{", "return", "Opcodes", "[", "Form213", "]", ";", "}", ""], "natrual_language": ["Returns", "the", "213", "form", "of", "FMA", "opcode", "."], "TS_V_token": ["X86"], "File": "X86InstrFMA3Info11", "Func": "get213Opcode", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 311, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "OR1KInstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "DebugLoc", "DL", ",", "unsigned", "DestReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "if", "(", "OR1K", "::", "GPRRegClass", ".", "contains", "(", "DestReg", ",", "SrcReg", ")", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "OR1K", "::", "ORI", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ".", "addImm", "(", "0", ")", ";", "else", "llvm_unreachable", "(", "\"Impossible reg-to-reg copy\"", ")", ";", "}", ""], "natrual_language": ["}", "Branch", "Analysis", "&", "Modification"], "TS_V_token": ["OR1K", "OR1K", "OR1K::GPRRegClass", "OR1K::ORI", "0", "\"Impossible reg-to-reg copy\""], "File": "OR1KInstrInfo", "Func": "copyPhysReg", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 312, "Length": 81, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "Cpu0SEInstrInfo", "::", "loadImmediate", "(", "int64_t", "Imm", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "II", ",", "const", "DebugLoc", "&", "DL", ",", "unsigned", "*", "NewImm", ")", "const", "{", "Cpu0AnalyzeImmediate", "AnalyzeImm", ";", "unsigned", "Size", "=", "32", ";", "unsigned", "LUi", "=", "Cpu0", "::", "LUi", ";", "unsigned", "ZEROReg", "=", "Cpu0", "::", "ZERO", ";", "unsigned", "ATReg", "=", "Cpu0", "::", "AT", ";", "bool", "LastInstrIsADDiu", "=", "NewImm", ";", "const", "Cpu0AnalyzeImmediate", "::", "InstSeq", "&", "Seq", "=", "AnalyzeImm", ".", "Analyze", "(", "Imm", ",", "Size", ",", "LastInstrIsADDiu", ")", ";", "Cpu0AnalyzeImmediate", "::", "InstSeq", "::", "const_iterator", "Inst", "=", "Seq", ".", "begin", "(", ")", ";", "assert", "(", "Seq", ".", "size", "(", ")", "&&", "(", "!", "LastInstrIsADDiu", "||", "(", "Seq", ".", "size", "(", ")", ">", "1", ")", ")", ")", ";", "if", "(", "Inst", "->", "Opc", "==", "LUi", ")", "BuildMI", "(", "MBB", ",", "II", ",", "DL", ",", "get", "(", "LUi", ")", ",", "ATReg", ")", ".", "addImm", "(", "SignExtend64", "<", "16", ">", "(", "Inst", "->", "ImmOperand", ")", ")", ";", "else", "BuildMI", "(", "MBB", ",", "II", ",", "DL", ",", "get", "(", "Inst", "->", "Opc", ")", ",", "ATReg", ")", ".", "addReg", "(", "ZEROReg", ")", ".", "addImm", "(", "SignExtend64", "<", "16", ">", "(", "Inst", "->", "ImmOperand", ")", ")", ";", "for", "(", "++", "Inst", ";", "Inst", "!=", "Seq", ".", "end", "(", ")", "-", "LastInstrIsADDiu", ";", "++", "Inst", ")", "BuildMI", "(", "MBB", ",", "II", ",", "DL", ",", "get", "(", "Inst", "->", "Opc", ")", ",", "ATReg", ")", ".", "addReg", "(", "ATReg", ")", ".", "addImm", "(", "SignExtend64", "<", "16", ">", "(", "Inst", "->", "ImmOperand", ")", ")", ";", "if", "(", "LastInstrIsADDiu", ")", "*", "NewImm", "=", "Inst", "->", "ImmOperand", ";", "return", "ATReg", ";", "}", ""], "natrual_language": ["Emit", "a", "series", "of", "instructions", "to", "load", "an", "immediate", "."], "TS_V_token": ["Cpu0", "Cpu0", "Cpu0", "32", "Cpu0::LUi", "Cpu0::ZERO", "Cpu0::AT", "Cpu0", "Cpu0", "InstSeq::const_iterator", "1", "16", "16", "16"], "File": "Cpu0SEInstrInfo1", "Func": "loadImmediate", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 313, "Length": 260, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86IntelInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "OS", ")", "{", "printInstruction", "(", "MI", ",", "OS", ")", ";", "if", "(", "CommentStream", ")", "EmitAnyX86InstComments", "(", "MI", ",", "*", "CommentStream", ",", "getRegisterName", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86IntelInstPrinter13", "Func": "printInst", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 314, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64A53Fix835769", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "F", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** AArch64A53Fix835769 *****\\n\"", ")", ";", "auto", "&", "STI", "=", "F", ".", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ";", "if", "(", "!", "STI", ".", "fixCortexA53_835769", "(", ")", ")", "return", "false", ";", "bool", "Changed", "=", "false", ";", "TII", "=", "STI", ".", "getInstrInfo", "(", ")", ";", "for", "(", "auto", "&", "MBB", ":", "F", ")", "{", "Changed", "|=", "runOnBasicBlock", "(", "MBB", ")", ";", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "\"***** AArch64A53Fix835769 *****\\n\"", "AArch64"], "File": "AArch64A53Fix8357697", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 315, "Length": 78, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsAsmParser", "::", "ParseInstruction", "(", "ParseInstructionInfo", "&", "Info", ",", "StringRef", "Name", ",", "SMLoc", "NameLoc", ",", "SmallVectorImpl", "<", "MCParsedAsmOperand", "*", ">", "&", "Operands", ")", "{", "if", "(", "!", "mnemonicIsValid", "(", "Name", ",", "0", ")", ")", "{", "Parser", ".", "eatToEndOfStatement", "(", ")", ";", "return", "Error", "(", "NameLoc", ",", "\"Unknown instruction\"", ")", ";", "}", "Operands", ".", "push_back", "(", "MipsOperand", "::", "CreateToken", "(", "Name", ",", "NameLoc", ")", ")", ";", "if", "(", "getLexer", "(", ")", ".", "isNot", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "{", "if", "(", "ParseOperand", "(", "Operands", ",", "Name", ")", ")", "{", "SMLoc", "Loc", "=", "getLexer", "(", ")", ".", "getLoc", "(", ")", ";", "Parser", ".", "eatToEndOfStatement", "(", ")", ";", "return", "Error", "(", "Loc", ",", "\"unexpected token in argument list\"", ")", ";", "}", "while", "(", "getLexer", "(", ")", ".", "is", "(", "AsmToken", "::", "Comma", ")", ")", "{", "Parser", ".", "Lex", "(", ")", ";", "if", "(", "ParseOperand", "(", "Operands", ",", "Name", ")", ")", "{", "SMLoc", "Loc", "=", "getLexer", "(", ")", ".", "getLoc", "(", ")", ";", "Parser", ".", "eatToEndOfStatement", "(", ")", ";", "return", "Error", "(", "Loc", ",", "\"unexpected token in argument list\"", ")", ";", "}", "}", "}", "if", "(", "getLexer", "(", ")", ".", "isNot", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "{", "SMLoc", "Loc", "=", "getLexer", "(", ")", ".", "getLoc", "(", ")", ";", "Parser", ".", "eatToEndOfStatement", "(", ")", ";", "return", "Error", "(", "Loc", ",", "\"unexpected token in argument list\"", ")", ";", "}", "Parser", ".", "Lex", "(", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["ParseInstruction", "-", "Parse", "one", "assembly", "instruction", "."], "TS_V_token": ["Mips", "Mips", "0", "\"Unknown instruction\"", "MipsOperand::CreateToken", "\"unexpected token in argument list\"", "\"unexpected token in argument list\"", "\"unexpected token in argument list\""], "File": "MipsAsmParser11", "Func": "ParseInstruction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 316, "Length": 222, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMAsmPrinter", "::", "emitXXStructor", "(", "const", "DataLayout", "&", "DL", ",", "const", "Constant", "*", "CV", ")", "{", "uint64_t", "Size", "=", "getDataLayout", "(", ")", ".", "getTypeAllocSize", "(", "CV", "->", "getType", "(", ")", ")", ";", "assert", "(", "Size", "&&", "\"C++ constructor pointer had zero size!\"", ")", ";", "const", "GlobalValue", "*", "GV", "=", "dyn_cast", "<", "GlobalValue", ">", "(", "CV", "->", "stripPointerCasts", "(", "true", ")", ")", ";", "assert", "(", "GV", "&&", "\"C++ constructor pointer was not a GlobalValue!\"", ")", ";", "const", "MCExpr", "*", "E", "=", "MCSymbolRefExpr", "::", "create", "(", "GetARMGVSymbol", "(", "GV", ",", "ARMII", "::", "MO_NO_FLAG", ")", ",", "(", "Subtarget", "->", "isTargetELF", "(", ")", "?", "MCSymbolRefExpr", "::", "VK_ARM_TARGET1", ":", "MCSymbolRefExpr", "::", "VK_None", ")", ",", "OutContext", ")", ";", "OutStreamer", "->", "emitValue", "(", "E", ",", "Size", ")", ";", "}", ""], "natrual_language": ["Targets", "can", "override", "this", "to", "change", "how", "global", "constants", "that", "are", "part", "of", "a", "C++", "static/global", "constructor", "list", "are", "emitted", "."], "TS_V_token": ["ARM", "ARM", "\"C++ constructor pointer had zero size!\"", "\"C++ constructor pointer was not a GlobalValue!\"", "ARM", "ARMII::MO_NO_FLAG", "ARM"], "File": "ARMAsmPrinter5", "Func": "emitXXStructor", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 317, "Length": 111, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86RegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "RegScavenger", "*", "RS", ")", "const", "{", "assert", "(", "SPAdj", "==", "0", "&&", "\"Unexpected\"", ")", ";", "unsigned", "i", "=", "0", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "while", "(", "!", "MI", ".", "getOperand", "(", "i", ")", ".", "isFI", "(", ")", ")", "{", "++", "i", ";", "assert", "(", "i", "<", "MI", ".", "getNumOperands", "(", ")", "&&", "\"Instr doesn't have FrameIndex operand!\"", ")", ";", "}", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "i", ")", ".", "getIndex", "(", ")", ";", "unsigned", "BasePtr", ";", "if", "(", "needsStackRealignment", "(", "MF", ")", ")", "BasePtr", "=", "(", "FrameIndex", "<", "0", "?", "FramePtr", ":", "StackPtr", ")", ";", "else", "BasePtr", "=", "(", "hasFP", "(", "MF", ")", "?", "FramePtr", ":", "StackPtr", ")", ";", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "BasePtr", ",", "false", ")", ";", "if", "(", "MI", ".", "getOperand", "(", "i", "+", "3", ")", ".", "isImm", "(", ")", ")", "{", "int", "Offset", "=", "getFrameIndexOffset", "(", "MF", ",", "FrameIndex", ")", "+", "(", "int", ")", "(", "MI", ".", "getOperand", "(", "i", "+", "3", ")", ".", "getImm", "(", ")", ")", ";", "MI", ".", "getOperand", "(", "i", "+", "3", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";", "}", "else", "{", "uint64_t", "Offset", "=", "getFrameIndexOffset", "(", "MF", ",", "FrameIndex", ")", "+", "(", "uint64_t", ")", "MI", ".", "getOperand", "(", "i", "+", "3", ")", ".", "getOffset", "(", ")", ";", "MI", ".", "getOperand", "(", "i", "+", "3", ")", ".", "setOffset", "(", "Offset", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["X86", "X86", "0", "\"Unexpected\"", "0", "\"Instr doesn't have FrameIndex operand!\"", "0", "3", "3", "3", "3", "3"], "File": "X86RegisterInfo33", "Func": "eliminateFrameIndex", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 318, "Length": 254, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "std", "::", "pair", "<", "rtx_insn", "*", ",", "rtx_insn", "*", ">", "sh_try_split_insn_simple", "(", "rtx_insn", "*", "i", ",", "rtx_insn", "*", "curr_insn", ",", "int", "n", "=", "0", ")", "{", "if", "(", "dump_file", ")", "{", "fprintf", "(", "dump_file", ",", "\"sh_try_split_insn_simple n = %d i = \\n\"", ",", "n", ")", ";", "print_rtl_single", "(", "dump_file", ",", "i", ")", ";", "fprintf", "(", "dump_file", ",", "\"\\n\"", ")", ";", "}", "rtx_insn", "*", "seq", "=", "safe_as_a", "<", "rtx_insn", "*", ">", "(", "split_insns", "(", "PATTERN", "(", "i", ")", ",", "curr_insn", ")", ")", ";", "if", "(", "seq", "==", "NULL", ")", "return", "std", "::", "make_pair", "(", "i", ",", "i", ")", ";", "for", "(", "rtx_insn", "*", "s", "=", "seq", ";", "s", "!=", "NULL", ";", "s", "=", "NEXT_INSN", "(", "s", ")", ")", "if", "(", "INSN_P", "(", "s", ")", "&&", "rtx_equal_p", "(", "PATTERN", "(", "s", ")", ",", "PATTERN", "(", "i", ")", ")", ")", "return", "std", "::", "make_pair", "(", "i", ",", "i", ")", ";", "unshare_all_rtl_in_chain", "(", "seq", ")", ";", "rtx_insn", "*", "seqlast", "=", "seq", ";", "while", "(", "NEXT_INSN", "(", "seqlast", ")", "!=", "NULL", ")", "seqlast", "=", "NEXT_INSN", "(", "seqlast", ")", ";", "if", "(", "rtx_insn", "*", "iprev", "=", "PREV_INSN", "(", "i", ")", ")", "SET_NEXT_INSN", "(", "iprev", ")", "=", "seq", ";", "if", "(", "rtx_insn", "*", "inext", "=", "NEXT_INSN", "(", "i", ")", ")", "SET_PREV_INSN", "(", "inext", ")", "=", "seqlast", ";", "SET_PREV_INSN", "(", "seq", ")", "=", "PREV_INSN", "(", "i", ")", ";", "SET_NEXT_INSN", "(", "seqlast", ")", "=", "NEXT_INSN", "(", "i", ")", ";", "SET_PREV_INSN", "(", "i", ")", "=", "NULL", ";", "SET_NEXT_INSN", "(", "i", ")", "=", "NULL", ";", "for", "(", "i", "=", "seq", ";", ";", "i", "=", "NEXT_INSN", "(", "i", ")", ")", "{", "std", "::", "pair", "<", "rtx_insn", "*", ",", "rtx_insn", "*", ">", "ii", "=", "sh_try_split_insn_simple", "(", "i", ",", "curr_insn", ",", "n", "+", "1", ")", ";", "if", "(", "i", "==", "seq", ")", "seq", "=", "ii", ".", "first", ";", "if", "(", "i", "==", "seqlast", ")", "{", "seqlast", "=", "ii", ".", "second", ";", "break", ";", "}", "i", "=", "ii", ".", "first", ";", "}", "return", "std", "::", "make_pair", "(", "seq", ",", "seqlast", ")", ";", "}", ""], "natrual_language": ["Given", "an", "rtx", "x", ",", "which", "is", "assumed", "to", "be", "some", "expression", "that", "has", "been", "matched", "by", "the", "'treg_set_expr", "'", "predicate", "before", ",", "split", "and", "emit", "the", "insns", "that", "are", "necessary", "to", "calculate", "the", "expression", "and", "store", "the", "result", "in", "the", "T", "bit", ".", "The", "splitting", "is", "done", "recursively", "similar", "to", "'try_split", "'", "in", "emit-rt.c", ".", "Unfortunately", "we", "ca", "n't", "use", "'try_split", "'", "here", "directly", ",", "as", "it", "tries", "to", "invoke", "'delete_insn", "'", "which", "then", "causes", "the", "DF", "parts", "to", "bail", "out", ",", "because", "we", "currently", "are", "inside", "another", "gen_split", "*", "function", "and", "would", "invoke", "'try_split", "'", "in", "a", "reentrant", "way", "."], "TS_V_token": ["sh", "0", "\"sh_try_split_insn_simple n = %d i = \\n\"", "\"\\n\"", "1"], "File": "sh4", "Func": "sh_try_split_insn_simple", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 319, "Length": 323, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx_insn", "*", "rs6000_md_asm_adjust", "(", "vec", "<", "rtx", ">", "&", ",", "vec", "<", "rtx", ">", "&", ",", "vec", "<", "const", "char", "*", ">", "&", ",", "vec", "<", "rtx", ">", "&", "clobbers", ",", "HARD_REG_SET", "&", "clobbered_regs", ")", "{", "clobbers", ".", "safe_push", "(", "gen_rtx_REG", "(", "SImode", ",", "CA_REGNO", ")", ")", ";", "SET_HARD_REG_BIT", "(", "clobbered_regs", ",", "CA_REGNO", ")", ";", "return", "NULL", ";", "}", ""], "natrual_language": ["Implement", "TARGET_MD_ASM_ADJUST", ".", "All", "asm", "statements", "are", "considered", "to", "clobber", "the", "XER", "[", "CA", "]", "bit", "because", "clobbering", "that", "bit", "without", "telling", "the", "compiler", "worked", "just", "fine", "with", "versions", "of", "GCC", "before", "GCC", "5", ",", "and", "breaking", "a", "lot", "of", "older", "code", "in", "ways", "that", "are", "hard", "to", "track", "down", "is", "not", "such", "a", "great", "idea", "."], "TS_V_token": ["powerpcspe"], "File": "powerpcspe", "Func": "rs6000_md_asm_adjust", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 320, "Length": 60, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64FastISel", "::", "optimizeSelect", "(", "const", "SelectInst", "*", "SI", ")", "{", "if", "(", "!", "SI", "->", "getType", "(", ")", "->", "isIntegerTy", "(", "1", ")", ")", "return", "false", ";", "const", "Value", "*", "Src1Val", ",", "*", "Src2Val", ";", "unsigned", "Opc", "=", "0", ";", "bool", "NeedExtraOp", "=", "false", ";", "if", "(", "auto", "*", "CI", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "SI", "->", "getTrueValue", "(", ")", ")", ")", "{", "if", "(", "CI", "->", "isOne", "(", ")", ")", "{", "Src1Val", "=", "SI", "->", "getCondition", "(", ")", ";", "Src2Val", "=", "SI", "->", "getFalseValue", "(", ")", ";", "Opc", "=", "AArch64", "::", "ORRWrr", ";", "}", "else", "{", "assert", "(", "CI", "->", "isZero", "(", ")", ")", ";", "Src1Val", "=", "SI", "->", "getFalseValue", "(", ")", ";", "Src2Val", "=", "SI", "->", "getCondition", "(", ")", ";", "Opc", "=", "AArch64", "::", "BICWrr", ";", "}", "}", "else", "if", "(", "auto", "*", "CI", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "SI", "->", "getFalseValue", "(", ")", ")", ")", "{", "if", "(", "CI", "->", "isOne", "(", ")", ")", "{", "Src1Val", "=", "SI", "->", "getCondition", "(", ")", ";", "Src2Val", "=", "SI", "->", "getTrueValue", "(", ")", ";", "Opc", "=", "AArch64", "::", "ORRWrr", ";", "NeedExtraOp", "=", "true", ";", "}", "else", "{", "assert", "(", "CI", "->", "isZero", "(", ")", ")", ";", "Src1Val", "=", "SI", "->", "getCondition", "(", ")", ";", "Src2Val", "=", "SI", "->", "getTrueValue", "(", ")", ";", "Opc", "=", "AArch64", "::", "ANDWrr", ";", "}", "}", "if", "(", "!", "Opc", ")", "return", "false", ";", "Register", "Src1Reg", "=", "getRegForValue", "(", "Src1Val", ")", ";", "if", "(", "!", "Src1Reg", ")", "return", "false", ";", "Register", "Src2Reg", "=", "getRegForValue", "(", "Src2Val", ")", ";", "if", "(", "!", "Src2Reg", ")", "return", "false", ";", "if", "(", "NeedExtraOp", ")", "Src1Reg", "=", "emitLogicalOp_ri", "(", "ISD", "::", "XOR", ",", "MVT", "::", "i32", ",", "Src1Reg", ",", "1", ")", ";", "Register", "ResultReg", "=", "fastEmitInst_rr", "(", "Opc", ",", "&", "AArch64", "::", "GPR32RegClass", ",", "Src1Reg", ",", "Src2Reg", ")", ";", "updateValueMap", "(", "SI", ",", "ResultReg", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Given", "a", "select", "instruction", "that", "was", "understood", "by", "analyzeSelect", "and", "returned", "Optimizable", "=", "true", ",", "attempt", "to", "optimize", "MI", "by", "merging", "it", "with", "one", "of", "its", "operands", "."], "TS_V_token": ["AArch64", "AArch64", "1", "0", "AArch64::ORRWrr", "AArch64::BICWrr", "AArch64::ORRWrr", "AArch64::ANDWrr", "ISD::XOR", "MVT::i32", "1", "AArch64::GPR32RegClass"], "File": "AArch64FastISel18", "Func": "optimizeSelect", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 321, "Length": 312, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCFixupKindInfo", "&", "getFixupKindInfo", "(", "MCFixupKind", "Kind", ")", "const", "override", "{", "const", "static", "MCFixupKindInfo", "Infos", "[", "UPT", "::", "NumTargetFixupKinds", "]", "=", "{", "{", "\"fixup_upt_mov_hi16_pcrel\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_upt_mov_lo16_pcrel\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "}", ";", "if", "(", "Kind", "<", "FirstTargetFixupKind", ")", "{", "return", "MCAsmBackend", "::", "getFixupKindInfo", "(", "Kind", ")", ";", "}", "assert", "(", "unsigned", "(", "Kind", "-", "FirstTargetFixupKind", ")", "<", "getNumFixupKinds", "(", ")", "&&", "\"Invalid kind!\"", ")", ";", "return", "Infos", "[", "Kind", "-", "FirstTargetFixupKind", "]", ";", "}", ""], "natrual_language": ["Get", "information", "on", "a", "fixup", "kind", "."], "TS_V_token": ["UPT", "UPT::NumTargetFixupKinds", "\"fixup_upt_mov_hi16_pcrel\"", "0", "32", "\"fixup_upt_mov_lo16_pcrel\"", "0", "32", "\"Invalid kind!\""], "File": "UPTAsmBackend", "Func": "getFixupKindInfo", "Target": "UPT", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 322, "Length": 89, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "pru_hard_regno_scratch_ok", "(", "unsigned", "int", "regno", ")", "{", "if", "(", "(", "!", "reload_completed", "||", "frame_pointer_needed", ")", "&&", "(", "IN_RANGE", "(", "regno", ",", "HARD_FRAME_POINTER_REGNUM", ",", "HARD_FRAME_POINTER_REGNUM", "+", "3", ")", "||", "IN_RANGE", "(", "regno", ",", "FRAME_POINTER_REGNUM", ",", "FRAME_POINTER_REGNUM", "+", "3", ")", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Implement", "`", "TARGET_HARD_REGNO_SCRATCH_OK", "'", ".", "Returns", "true", "if", "REGNO", "is", "safe", "to", "be", "allocated", "as", "a", "scratch", "register", "(", "for", "a", "define_peephole2", ")", "in", "the", "current", "function", "."], "TS_V_token": ["pru", "3", "3"], "File": "pru", "Func": "pru_hard_regno_scratch_ok", "Target": "pru", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 323, "Length": 49, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDNode", "*", "SparcDAGToDAGISel", "::", "Select", "(", "SDNode", "*", "N", ")", "{", "SDLoc", "dl", "(", "N", ")", ";", "if", "(", "N", "->", "isMachineOpcode", "(", ")", ")", "return", "NULL", ";", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "SPISD", "::", "GLOBAL_BASE_REG", ":", "return", "getGlobalBaseReg", "(", ")", ";", "case", "ISD", "::", "SDIV", ":", "case", "ISD", "::", "UDIV", ":", "{", "if", "(", "N", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i64", ")", "break", ";", "SDValue", "DivLHS", "=", "N", "->", "getOperand", "(", "0", ")", ";", "SDValue", "DivRHS", "=", "N", "->", "getOperand", "(", "1", ")", ";", "SDValue", "TopPart", ";", "if", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "SDIV", ")", "{", "TopPart", "=", "SDValue", "(", "CurDAG", "->", "getMachineNode", "(", "SP", "::", "SRAri", ",", "dl", ",", "MVT", "::", "i32", ",", "DivLHS", ",", "CurDAG", "->", "getTargetConstant", "(", "31", ",", "MVT", "::", "i32", ")", ")", ",", "0", ")", ";", "}", "else", "{", "TopPart", "=", "CurDAG", "->", "getRegister", "(", "SP", "::", "G0", ",", "MVT", "::", "i32", ")", ";", "}", "TopPart", "=", "SDValue", "(", "CurDAG", "->", "getMachineNode", "(", "SP", "::", "WRYrr", ",", "dl", ",", "MVT", "::", "Glue", ",", "TopPart", ",", "CurDAG", "->", "getRegister", "(", "SP", "::", "G0", ",", "MVT", "::", "i32", ")", ")", ",", "0", ")", ";", "unsigned", "Opcode", "=", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "SDIV", "?", "SP", "::", "SDIVrr", ":", "SP", "::", "UDIVrr", ";", "return", "CurDAG", "->", "SelectNodeTo", "(", "N", ",", "Opcode", ",", "MVT", "::", "i32", ",", "DivLHS", ",", "DivRHS", ",", "TopPart", ")", ";", "}", "case", "ISD", "::", "MULHU", ":", "case", "ISD", "::", "MULHS", ":", "{", "SDValue", "MulLHS", "=", "N", "->", "getOperand", "(", "0", ")", ";", "SDValue", "MulRHS", "=", "N", "->", "getOperand", "(", "1", ")", ";", "unsigned", "Opcode", "=", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "MULHU", "?", "SP", "::", "UMULrr", ":", "SP", "::", "SMULrr", ";", "SDNode", "*", "Mul", "=", "CurDAG", "->", "getMachineNode", "(", "Opcode", ",", "dl", ",", "MVT", "::", "i32", ",", "MVT", "::", "Glue", ",", "MulLHS", ",", "MulRHS", ")", ";", "return", "CurDAG", "->", "SelectNodeTo", "(", "N", ",", "SP", "::", "RDY", ",", "MVT", "::", "i32", ",", "SDValue", "(", "Mul", ",", "1", ")", ")", ";", "}", "}", "return", "SelectCode", "(", "N", ")", ";", "}", ""], "natrual_language": ["Main", "hook", "for", "targets", "to", "transform", "nodes", "into", "machine", "nodes", "."], "TS_V_token": ["Sparc", "Sparc", "SPISD::GLOBAL_BASE_REG", "ISD::SDIV", "ISD::UDIV", "0", "MVT::i64", "0", "1", "ISD::SDIV", "SP::SRAri", "MVT::i32", "31", "MVT::i32", "0", "SP::G0", "MVT::i32", "SP::WRYrr", "MVT::Glue", "SP::G0", "MVT::i32", "0", "ISD::SDIV", "SP::SDIVrr", "SP::UDIVrr", "MVT::i32", "ISD::MULHU", "ISD::MULHS", "0", "1", "ISD::MULHU", "SP::UMULrr", "SP::SMULrr", "MVT::i32", "MVT::Glue", "SP::RDY", "MVT::i32", "1"], "File": "SparcISelDAGToDAG2", "Func": "Select", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 324, "Length": 355, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "FastISel", "*", "ARMTargetLowering", "::", "createFastISel", "(", "FunctionLoweringInfo", "&", "funcInfo", ")", "const", "{", "return", "ARM", "::", "createFastISel", "(", "funcInfo", ")", ";", "}", ""], "natrual_language": ["This", "method", "returns", "a", "target", "specific", "FastISel", "object", ",", "or", "null", "if", "the", "target", "does", "not", "support", "``", "fast", "''", "ISel", "."], "TS_V_token": ["ARM", "ARM", "ARM::createFastISel"], "File": "ARMISelLowering114", "Func": "createFastISel", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 325, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTargetLowering", "::", "isFPImmLegal", "(", "const", "APFloat", "&", "Imm", ",", "EVT", "VT", ",", "bool", "ForCodeSize", ")", "const", "{", "if", "(", "!", "VT", ".", "isSimple", "(", ")", "||", "!", "Subtarget", ".", "hasVSX", "(", ")", ")", "return", "false", ";", "switch", "(", "VT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ")", "{", "default", ":", "return", "false", ";", "case", "MVT", "::", "f32", ":", "case", "MVT", "::", "f64", ":", "case", "MVT", "::", "ppcf128", ":", "return", "Imm", ".", "isPosZero", "(", ")", ";", "}", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "can", "instruction", "select", "the", "specified", "FP", "immediate", "natively", "."], "TS_V_token": ["PowerPC", "PPC", "MVT::f32", "MVT::f64", "MVT::ppcf128"], "File": "PPCISelLowering101", "Func": "isFPImmLegal", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 326, "Length": 77, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "EVT", "MipsTargetLowering", "::", "getSetCCResultType", "(", "EVT", "VT", ")", "const", "{", "return", "MVT", "::", "i32", ";", "}", ""], "natrual_language": ["Return", "the", "value", "type", "to", "use", "for", "ISD", ":", ":SETCC", "."], "TS_V_token": ["Mips", "Mips", "MVT::i32"], "File": "MipsISelLowering (2)3", "Func": "getSetCCResultType", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 327, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "canInsertSelect", "(", "const", "MachineBasicBlock", "&", "MBB", ",", "const", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Cond", ",", "unsigned", "TrueReg", ",", "unsigned", "FalseReg", ",", "int", "&", "CondCycles", ",", "int", "&", "TrueCycles", ",", "int", "&", "FalseCycles", ")", "const", "{", "const", "MachineRegisterInfo", "&", "MRI", "=", "MBB", ".", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "const", "TargetRegisterClass", "*", "RC", "=", "RI", ".", "getCommonSubClass", "(", "MRI", ".", "getRegClass", "(", "TrueReg", ")", ",", "MRI", ".", "getRegClass", "(", "FalseReg", ")", ")", ";", "if", "(", "!", "RC", ")", "return", "false", ";", "unsigned", "ExtraCondLat", "=", "Cond", ".", "size", "(", ")", "!=", "1", ";", "if", "(", "AArch64", "::", "GPR64allRegClass", ".", "hasSubClassEq", "(", "RC", ")", "||", "AArch64", "::", "GPR32allRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "CondCycles", "=", "1", "+", "ExtraCondLat", ";", "TrueCycles", "=", "FalseCycles", "=", "1", ";", "if", "(", "canFoldIntoCSel", "(", "MRI", ",", "TrueReg", ")", ")", "TrueCycles", "=", "0", ";", "else", "if", "(", "canFoldIntoCSel", "(", "MRI", ",", "FalseReg", ")", ")", "FalseCycles", "=", "0", ";", "return", "true", ";", "}", "if", "(", "AArch64", "::", "FPR64RegClass", ".", "hasSubClassEq", "(", "RC", ")", "||", "AArch64", "::", "FPR32RegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "CondCycles", "=", "5", "+", "ExtraCondLat", ";", "TrueCycles", "=", "FalseCycles", "=", "2", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "it", "is", "possible", "to", "insert", "a", "select", "instruction", "that", "chooses", "between", "TrueReg", "and", "FalseReg", "based", "on", "the", "condition", "code", "in", "Cond", "."], "TS_V_token": ["AArch64", "AArch64", "1", "AArch64::GPR64allRegClass", "AArch64::GPR32allRegClass", "1", "1", "0", "0", "AArch64::FPR64RegClass", "AArch64::FPR32RegClass", "5", "2"], "File": "AArch64InstrInfo100", "Func": "canInsertSelect", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 328, "Length": 201, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseInstrInfo", "::", "isSchedulingBoundary", "(", "const", "MachineInstr", "*", "MI", ",", "const", "MachineBasicBlock", "*", "MBB", ",", "const", "MachineFunction", "&", "MF", ")", "const", "{", "if", "(", "MI", "->", "isDebugValue", "(", ")", ")", "return", "false", ";", "if", "(", "MI", "->", "isTerminator", "(", ")", "||", "MI", "->", "isLabel", "(", ")", ")", "return", "true", ";", "MachineBasicBlock", "::", "const_iterator", "I", "=", "MI", ";", "while", "(", "++", "I", "!=", "MBB", "->", "end", "(", ")", "&&", "I", "->", "isDebugValue", "(", ")", ")", ";", "if", "(", "I", "!=", "MBB", "->", "end", "(", ")", "&&", "I", "->", "getOpcode", "(", ")", "==", "ARM", "::", "t2IT", ")", "return", "true", ";", "if", "(", "MI", "->", "definesRegister", "(", "ARM", "::", "SP", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["isSchedulingBoundary", "-", "Overrides", "the", "isSchedulingBoundary", "from", "Codegen/TargetInstrInfo.cpp", "to", "make", "it", "capable", "of", "identifying", "ENDBR", "intructions", "and", "prevent", "it", "from", "being", "re-scheduled", "."], "TS_V_token": ["ARM", "ARM", "ARM::t2IT", "ARM::SP"], "File": "ARMBaseInstrInfo83", "Func": "isSchedulingBoundary", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 329, "Length": 116, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCELFStreamer", "&", "SHUXITargetELFStreamer", "::", "getStreamer", "(", ")", "{", "return", "static_cast", "<", "MCELFStreamer", "&", ">", "(", "Streamer", ")", ";", "}", ""], "natrual_language": ["Return", "the", "output", "streamer", "for", "the", "assembler", "."], "TS_V_token": ["SHUXI", "SHUXI"], "File": "SHUXITargetStreamer", "Func": "getStreamer", "Target": "SHUXI", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 330, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "rs6000_asm_output_opcode", "(", "FILE", "*", "stream", ")", "{", "if", "(", "prepend_p_to_next_insn", ")", "{", "fprintf", "(", "stream", ",", "\"p\"", ")", ";", "prepend_p_to_next_insn", "=", "false", ";", "}", "return", ";", "}", ""], "natrual_language": ["Define", "ASM_OUTPUT_OPCODE", "to", "do", "anything", "special", "before", "emitting", "an", "opcode", ".", "We", "use", "it", "to", "emit", "a", "'", "p", "'", "for", "prefixed", "insns", "that", "is", "set", "in", "FINAL_PRESCAN_INSN", "."], "TS_V_token": ["rs6000", "\"p\""], "File": "rs6000", "Func": "rs6000_asm_output_opcode", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 331, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsInstrInfo", "::", "HasForbiddenSlot", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "return", "(", "MI", ".", "getDesc", "(", ")", ".", "TSFlags", "&", "MipsII", "::", "HasForbiddenSlot", ")", "!=", "0", ";", "}", ""], "natrual_language": ["Predicate", "to", "determine", "if", "an", "instruction", "has", "a", "forbidden", "slot", "."], "TS_V_token": ["Mips", "Mips", "MipsII::HasForbiddenSlot", "0"], "File": "MipsInstrInfo (2)", "Func": "HasForbiddenSlot", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 332, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "CAHPFrameLowering", "::", "determineFrameLayout", "(", "MachineFunction", "&", "MF", ")", "const", "{", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "CAHPRegisterInfo", "*", "RI", "=", "STI", ".", "getRegisterInfo", "(", ")", ";", "uint64_t", "FrameSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "uint64_t", "StackAlign", "=", "RI", "->", "needsStackRealignment", "(", "MF", ")", "?", "MFI", ".", "getMaxAlignment", "(", ")", ":", "getStackAlignment", "(", ")", ";", "FrameSize", "=", "alignTo", "(", "FrameSize", ",", "StackAlign", ")", ";", "MFI", ".", "setStackSize", "(", "FrameSize", ")", ";", "}", ""], "natrual_language": ["Determine", "the", "frame", "layout", "but", "do", "not", "update", "the", "machine", "function", "."], "TS_V_token": ["CAHP", "CAHP", "CAHP"], "File": "CAHPFrameLowering", "Func": "determineFrameLayout", "Target": "CAHP", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 333, "Length": 78, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "{", "return", "\"MIPS: Optimize calls to math library functions.\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["Mips", "\"MIPS: Optimize calls to math library functions.\""], "File": "MipsOptimizeMathLibCalls", "Func": "getPassName", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 334, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mt_emit_save_restore", "(", "enum", "save_direction", "direction", ",", "rtx", "reg", ",", "rtx", "mem", ",", "int", "stack_offset", ")", "{", "if", "(", "direction", "==", "FROM_PROCESSOR_TO_MEM", ")", "{", "rtx", "insn", ";", "insn", "=", "emit_move_insn", "(", "mem", ",", "reg", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "REG_NOTES", "(", "insn", ")", "=", "gen_rtx_EXPR_LIST", "(", "REG_FRAME_RELATED_EXPR", ",", "gen_rtx_SET", "(", "VOIDmode", ",", "gen_rtx_MEM", "(", "SImode", ",", "gen_rtx_PLUS", "(", "SImode", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "stack_offset", ")", ")", ")", ",", "reg", ")", ",", "REG_NOTES", "(", "insn", ")", ")", ";", "}", "else", "emit_move_insn", "(", "reg", ",", "mem", ")", ";", "}", ""], "natrual_language": ["Emit", "code", "to", "save", "REG", "in", "stack", "offset", "pointed", "to", "by", "MEM", ".", "STACK_OFFSET", "is", "the", "offset", "from", "the", "SP", "where", "the", "save", "will", "happen", ".", "This", "function", "sets", "the", "REG_FRAME_RELATED_EXPR", "note", "accordingly", "."], "TS_V_token": ["mt", "1"], "File": "mt", "Func": "mt_emit_save_restore", "Target": "mt", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 335, "Length": 93, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "CAHPTargetLowering", "::", "LowerOperation", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "report_fatal_error", "(", "\"unimplemented operand\"", ")", ";", "case", "ISD", "::", "BR_CC", ":", "return", "LowerBR_CC", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "GlobalAddress", ":", "return", "LowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SELECT", ":", "return", "LowerSELECT", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "FRAMEADDR", ":", "return", "LowerFRAMEADDR", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "RETURNADDR", ":", "return", "LowerRETURNADDR", "(", "Op", ",", "DAG", ")", ";", "}", "}", ""], "natrual_language": ["LowerOperation", "-", "Provide", "custom", "lowering", "hooks", "for", "some", "operations", "."], "TS_V_token": ["CAHP", "CAHP", "\"unimplemented operand\"", "ISD::BR_CC", "ISD::GlobalAddress", "ISD::SELECT", "ISD::FRAMEADDR", "ISD::RETURNADDR"], "File": "CAHPISelLowering", "Func": "LowerOperation", "Target": "CAHP", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 336, "Length": 97, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "loongarch_valid_offset_p", "(", "rtx", "x", ",", "machine_mode", "mode", ")", "{", "if", "(", "!", "(", "const_arith_operand", "(", "x", ",", "Pmode", ")", "||", "(", "(", "mode", "==", "E_SImode", "||", "mode", "==", "E_DImode", ")", "&&", "const_imm16_operand", "(", "x", ",", "Pmode", ")", "&&", "(", "loongarch_signed_immediate_p", "(", "INTVAL", "(", "x", ")", ",", "14", ",", "2", ")", ")", ")", ")", ")", "return", "false", ";", "if", "(", "GET_MODE_SIZE", "(", "mode", ")", ">", "UNITS_PER_WORD", "&&", "!", "IMM12_OPERAND", "(", "INTVAL", "(", "x", ")", "+", "GET_MODE_SIZE", "(", "mode", ")", "-", "UNITS_PER_WORD", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", ",", "for", "every", "base", "register", "BASE_REG", ",", "(", "plus", "BASE_REG", "X", ")", "can", "address", "a", "value", "of", "mode", "MODE", "."], "TS_V_token": ["loongarch", "14", "2"], "File": "loongarch", "Func": "loongarch_valid_offset_p", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 337, "Length": 91, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "char", "*", "rs6000_call_template_1", "(", "rtx", "*", "operands", ",", "unsigned", "int", "funop", ",", "bool", "sibcall", ")", "{", "gcc_assert", "(", "funop", "<=", "MAX_RECOG_OPERANDS", ")", ";", "char", "arg", "[", "12", "]", ";", "arg", "[", "0", "]", "=", "0", ";", "if", "(", "TARGET_TLS_MARKERS", "&&", "GET_CODE", "(", "operands", "[", "funop", "+", "1", "]", ")", "==", "UNSPEC", ")", "{", "if", "(", "XINT", "(", "operands", "[", "funop", "+", "1", "]", ",", "1", ")", "==", "UNSPEC_TLSGD", ")", "sprintf", "(", "arg", ",", "\"(%%%u@tlsgd)\"", ",", "funop", "+", "1", ")", ";", "else", "if", "(", "XINT", "(", "operands", "[", "funop", "+", "1", "]", ",", "1", ")", "==", "UNSPEC_TLSLD", ")", "sprintf", "(", "arg", ",", "\"(%%&@tlsld)\"", ")", ";", "else", "gcc_unreachable", "(", ")", ";", "}", "char", "z", "[", "11", "]", ";", "sprintf", "(", "z", ",", "\"%%z%u%s\"", ",", "funop", ",", "(", "DEFAULT_ABI", "==", "ABI_V4", "&&", "TARGET_SECURE_PLT", "&&", "flag_pic", "==", "2", "?", "\"+32768\"", ":", "\"\"", ")", ")", ";", "static", "char", "str", "[", "32", "]", ";", "if", "(", "DEFAULT_ABI", "==", "ABI_AIX", "||", "DEFAULT_ABI", "==", "ABI_ELFv2", ")", "sprintf", "(", "str", ",", "\"b%s %s%s%s\"", ",", "sibcall", "?", "\"\"", ":", "\"l\"", ",", "z", ",", "arg", ",", "sibcall", "?", "\"\"", ":", "\"\\n\\tnop\"", ")", ";", "else", "if", "(", "DEFAULT_ABI", "==", "ABI_V4", ")", "sprintf", "(", "str", ",", "\"b%s %s%s%s\"", ",", "sibcall", "?", "\"\"", ":", "\"l\"", ",", "z", ",", "arg", ",", "flag_pic", "?", "\"@plt\"", ":", "\"\"", ")", ";", "else", "if", "(", "DEFAULT_ABI", "==", "ABI_DARWIN", ")", "{", "gcc_checking_assert", "(", "GET_CODE", "(", "operands", "[", "funop", "+", "2", "]", ")", "==", "CONST_INT", ")", ";", "int", "cookie", "=", "INTVAL", "(", "operands", "[", "funop", "+", "2", "]", ")", ";", "if", "(", "cookie", "&", "CALL_LONG", ")", "{", "tree", "funname", "=", "get_identifier", "(", "XSTR", "(", "operands", "[", "funop", "]", ",", "0", ")", ")", ";", "tree", "labelname", "=", "get_prev_label", "(", "funname", ")", ";", "gcc_checking_assert", "(", "labelname", "&&", "!", "sibcall", ")", ";", "sprintf", "(", "str", ",", "\"jbsr %%z%u,%.10s\"", ",", "funop", ",", "IDENTIFIER_POINTER", "(", "labelname", ")", ")", ";", "}", "else", "sprintf", "(", "str", ",", "\"b%s %s%s\"", ",", "sibcall", "?", "\"\"", ":", "\"l\"", ",", "z", ",", "arg", ")", ";", "}", "else", "gcc_unreachable", "(", ")", ";", "return", "str", ";", "}", ""], "natrual_language": ["Return", "a", "template", "string", "for", "assembly", "to", "emit", "when", "making", "an", "external", "call", ".", "FUNOP", "is", "the", "call", "mem", "argument", "operand", "number", "."], "TS_V_token": ["rs6000", "12", "0", "0", "1", "1", "1", "\"(%%%u@tlsgd)\"", "1", "1", "1", "\"(%%&@tlsld)\"", "11", "\"%%z%u%s\"", "2", "\"+32768\"", "\"\"", "32", "\"b%s %s%s%s\"", "\"\"", "\"l\"", "\"\"", "\"\\n\\tnop\"", "\"b%s %s%s%s\"", "\"\"", "\"l\"", "\"@plt\"", "\"\"", "2", "2", "0", "\"jbsr %%z%u,%.10s\"", "\"b%s %s%s\"", "\"\"", "\"l\""], "File": "rs60008", "Func": "rs6000_call_template_1", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 338, "Length": 331, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isNoTOCCallInstr", "(", "unsigned", "Opcode", ")", "const", "{", "if", "(", "!", "get", "(", "Opcode", ")", ".", "isCall", "(", ")", ")", "return", "false", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown call opcode\"", ")", ";", "return", "false", ";", "case", "PPC", "::", "BL8_NOTOC", ":", "case", "PPC", "::", "BL8_NOTOC_TLS", ":", "case", "PPC", "::", "BL8_NOTOC_RM", ":", "return", "true", ";", "case", "PPC", "::", "BL8", ":", "case", "PPC", "::", "BL", ":", "case", "PPC", "::", "BL8_TLS", ":", "case", "PPC", "::", "BL_TLS", ":", "case", "PPC", "::", "BLA8", ":", "case", "PPC", "::", "BLA", ":", "case", "PPC", "::", "BCCL", ":", "case", "PPC", "::", "BCCLA", ":", "case", "PPC", "::", "BCL", ":", "case", "PPC", "::", "BCLn", ":", "case", "PPC", "::", "BL8_NOP", ":", "case", "PPC", "::", "BL_NOP", ":", "case", "PPC", "::", "BL8_NOP_TLS", ":", "case", "PPC", "::", "BLA8_NOP", ":", "case", "PPC", "::", "BCTRL8", ":", "case", "PPC", "::", "BCTRL", ":", "case", "PPC", "::", "BCCCTRL8", ":", "case", "PPC", "::", "BCCCTRL", ":", "case", "PPC", "::", "BCCTRL8", ":", "case", "PPC", "::", "BCCTRL", ":", "case", "PPC", "::", "BCCTRL8n", ":", "case", "PPC", "::", "BCCTRLn", ":", "case", "PPC", "::", "BL8_RM", ":", "case", "PPC", "::", "BLA8_RM", ":", "case", "PPC", "::", "BL8_NOP_RM", ":", "case", "PPC", "::", "BLA8_NOP_RM", ":", "case", "PPC", "::", "BCTRL8_RM", ":", "case", "PPC", "::", "BCTRL8_LDinto_toc", ":", "case", "PPC", "::", "BCTRL8_LDinto_toc_RM", ":", "case", "PPC", "::", "BL8_TLS_", ":", "case", "PPC", "::", "TCRETURNdi8", ":", "case", "PPC", "::", "TCRETURNai8", ":", "case", "PPC", "::", "TCRETURNri8", ":", "case", "PPC", "::", "TAILBCTR8", ":", "case", "PPC", "::", "TAILB8", ":", "case", "PPC", "::", "TAILBA8", ":", "case", "PPC", "::", "BCLalways", ":", "case", "PPC", "::", "BLRL", ":", "case", "PPC", "::", "BCCLRL", ":", "case", "PPC", "::", "BCLRL", ":", "case", "PPC", "::", "BCLRLn", ":", "case", "PPC", "::", "BDZL", ":", "case", "PPC", "::", "BDNZL", ":", "case", "PPC", "::", "BDZLA", ":", "case", "PPC", "::", "BDNZLA", ":", "case", "PPC", "::", "BDZLp", ":", "case", "PPC", "::", "BDNZLp", ":", "case", "PPC", "::", "BDZLAp", ":", "case", "PPC", "::", "BDNZLAp", ":", "case", "PPC", "::", "BDZLm", ":", "case", "PPC", "::", "BDNZLm", ":", "case", "PPC", "::", "BDZLAm", ":", "case", "PPC", "::", "BDNZLAm", ":", "case", "PPC", "::", "BDZLRL", ":", "case", "PPC", "::", "BDNZLRL", ":", "case", "PPC", "::", "BDZLRLp", ":", "case", "PPC", "::", "BDNZLRLp", ":", "case", "PPC", "::", "BDZLRLm", ":", "case", "PPC", "::", "BDNZLRLm", ":", "case", "PPC", "::", "BL_RM", ":", "case", "PPC", "::", "BLA_RM", ":", "case", "PPC", "::", "BL_NOP_RM", ":", "case", "PPC", "::", "BCTRL_RM", ":", "case", "PPC", "::", "TCRETURNdi", ":", "case", "PPC", "::", "TCRETURNai", ":", "case", "PPC", "::", "TCRETURNri", ":", "case", "PPC", "::", "BCTRL_LWZinto_toc", ":", "case", "PPC", "::", "BCTRL_LWZinto_toc_RM", ":", "case", "PPC", "::", "TAILBCTR", ":", "case", "PPC", "::", "TAILB", ":", "case", "PPC", "::", "TAILBA", ":", "return", "false", ";", "}", "}", ""], "natrual_language": ["Check", "if", "Opcode", "corresponds", "to", "a", "call", "instruction", "that", "should", "be", "marked", "with", "the", "NOTOC", "relocation", "."], "TS_V_token": ["PowerPC", "\"Unknown call opcode\"", "PPC::BL8_NOTOC", "PPC::BL8_NOTOC_TLS", "PPC::BL8_NOTOC_RM", "PPC::BL8", "PPC::BL", "PPC::BL8_TLS", "PPC::BL_TLS", "PPC::BLA8", "PPC::BLA", "PPC::BCCL", "PPC::BCCLA", "PPC::BCL", "PPC::BCLn", "PPC::BL8_NOP", "PPC::BL_NOP", "PPC::BL8_NOP_TLS", "PPC::BLA8_NOP", "PPC::BCTRL8", "PPC::BCTRL", "PPC::BCCCTRL8", "PPC::BCCCTRL", "PPC::BCCTRL8", "PPC::BCCTRL", "PPC::BCCTRL8n", "PPC::BCCTRLn", "PPC::BL8_RM", "PPC::BLA8_RM", "PPC::BL8_NOP_RM", "PPC::BLA8_NOP_RM", "PPC::BCTRL8_RM", "PPC::BCTRL8_LDinto_toc", "PPC::BCTRL8_LDinto_toc_RM", "PPC::BL8_TLS_", "PPC::TCRETURNdi8", "PPC::TCRETURNai8", "PPC::TCRETURNri8", "PPC::TAILBCTR8", "PPC::TAILB8", "PPC::TAILBA8", "PPC::BCLalways", "PPC::BLRL", "PPC::BCCLRL", "PPC::BCLRL", "PPC::BCLRLn", "PPC::BDZL", "PPC::BDNZL", "PPC::BDZLA", "PPC::BDNZLA", "PPC::BDZLp", "PPC::BDNZLp", "PPC::BDZLAp", "PPC::BDNZLAp", "PPC::BDZLm", "PPC::BDNZLm", "PPC::BDZLAm", "PPC::BDNZLAm", "PPC::BDZLRL", "PPC::BDNZLRL", "PPC::BDZLRLp", "PPC::BDNZLRLp", "PPC::BDZLRLm", "PPC::BDNZLRLm", "PPC::BL_RM", "PPC::BLA_RM", "PPC::BL_NOP_RM", "PPC::BCTRL_RM", "PPC::TCRETURNdi", "PPC::TCRETURNai", "PPC::TCRETURNri", "PPC::BCTRL_LWZinto_toc", "PPC::BCTRL_LWZinto_toc_RM", "PPC::TAILBCTR", "PPC::TAILB", "PPC::TAILBA"], "File": "PPCInstrInfo41", "Func": "isNoTOCCallInstr", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 339, "Length": 416, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_init_hard_regno_mode_ok", "(", "void", ")", "{", "int", "r", ",", "m", ";", "for", "(", "r", "=", "0", ";", "r", "<", "FIRST_PSEUDO_REGISTER", ";", "++", "r", ")", "for", "(", "m", "=", "0", ";", "m", "<", "NUM_MACHINE_MODES", ";", "++", "m", ")", "if", "(", "rs6000_hard_regno_mode_ok", "(", "r", ",", "m", ")", ")", "rs6000_hard_regno_mode_ok_p", "[", "m", "]", "[", "r", "]", "=", "true", ";", "}", ""], "natrual_language": ["Initialize", "rs6000_hard_regno_mode_ok_p", "table", "."], "TS_V_token": ["rs6000", "0", "0"], "File": "rs60003", "Func": "rs6000_init_hard_regno_mode_ok", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 340, "Length": 58, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCFastISel", "::", "fastEmitInst_rr", "(", "unsigned", "MachineInstOpcode", ",", "const", "TargetRegisterClass", "*", "RC", ",", "unsigned", "Op0", ",", "bool", "Op0IsKill", ",", "unsigned", "Op1", ",", "bool", "Op1IsKill", ")", "{", "const", "TargetRegisterClass", "*", "UseRC", "=", "(", "RC", "==", "&", "PPC", "::", "GPRCRegClass", "?", "&", "PPC", "::", "GPRC_and_GPRC_NOR0RegClass", ":", "(", "RC", "==", "&", "PPC", "::", "G8RCRegClass", "?", "&", "PPC", "::", "G8RC_and_G8RC_NOX0RegClass", ":", "RC", ")", ")", ";", "return", "FastISel", "::", "fastEmitInst_rr", "(", "MachineInstOpcode", ",", "UseRC", ",", "Op0", ",", "Op0IsKill", ",", "Op1", ",", "Op1IsKill", ")", ";", "}", ""], "natrual_language": ["Emit", "a", "MachineInstr", "with", "two", "register", "operands", "and", "a", "result", "register", "in", "the", "given", "register", "class", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::GPRCRegClass", "PPC::GPRC_and_GPRC_NOR0RegClass", "PPC::G8RCRegClass", "PPC::G8RC_and_G8RC_NOX0RegClass"], "File": "PPCFastISel (2)", "Func": "fastEmitInst_rr", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 341, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "InstructionCost", "getArithmeticInstrCost", "(", "unsigned", "Opcode", ",", "Type", "*", "Ty", ",", "TTI", "::", "TargetCostKind", "CostKind", ",", "TTI", "::", "OperandValueKind", "Opd1Info", "=", "TTI", "::", "OK_AnyValue", ",", "TTI", "::", "OperandValueKind", "Opd2Info", "=", "TTI", "::", "OK_AnyValue", ",", "TTI", "::", "OperandValueProperties", "Opd1PropInfo", "=", "TTI", "::", "OP_None", ",", "TTI", "::", "OperandValueProperties", "Opd2PropInfo", "=", "TTI", "::", "OP_None", ",", "ArrayRef", "<", "const", "Value", "*", ">", "Args", "=", "ArrayRef", "<", "const", "Value", "*", ">", "(", ")", ",", "const", "Instruction", "*", "CxtI", "=", "nullptr", ")", "{", "int", "ISD", "=", "TLI", "->", "InstructionOpcodeToISD", "(", "Opcode", ")", ";", "switch", "(", "ISD", ")", "{", "default", ":", "return", "BaseT", "::", "getArithmeticInstrCost", "(", "Opcode", ",", "Ty", ",", "CostKind", ",", "Opd1Info", ",", "Opd2Info", ",", "Opd1PropInfo", ",", "Opd2PropInfo", ")", ";", "case", "ISD", "::", "MUL", ":", "case", "ISD", "::", "SDIV", ":", "case", "ISD", "::", "UDIV", ":", "case", "ISD", "::", "UREM", ":", "return", "64", "*", "BaseT", "::", "getArithmeticInstrCost", "(", "Opcode", ",", "Ty", ",", "CostKind", ",", "Opd1Info", ",", "Opd2Info", ",", "Opd1PropInfo", ",", "Opd2PropInfo", ")", ";", "}", "}", ""], "natrual_language": ["This", "is", "an", "approximation", "of", "reciprocal", "throughput", "of", "a", "math/logic", "op", "."], "TS_V_token": ["Lanai", "ISD::MUL", "ISD::SDIV", "ISD::UDIV", "ISD::UREM", "64"], "File": "LanaiTargetTransformInfo4", "Func": "getArithmeticInstrCost", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 342, "Length": 157, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "enum", "loongarch_symbol_type", "loongarch_classify_symbolic_expression", "(", "rtx", "x", ")", "{", "rtx", "offset", ";", "split_const", "(", "x", ",", "&", "x", ",", "&", "offset", ")", ";", "if", "(", "UNSPEC_ADDRESS_P", "(", "x", ")", ")", "return", "UNSPEC_ADDRESS_TYPE", "(", "x", ")", ";", "return", "loongarch_classify_symbol", "(", "x", ")", ";", "}", ""], "natrual_language": ["Classify", "the", "base", "of", "symbolic", "expression", "X", ",", "given", "that", "X", "appears", "in", "context", "CONTEXT", "."], "TS_V_token": ["loongarch"], "File": "loongarch1", "Func": "loongarch_classify_symbolic_expression", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 343, "Length": 43, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_emit_atomic_swap", "(", "machine_mode", "mode", ",", "rtx", "dst", ",", "rtx", "value", ",", "rtx", "mem", ",", "rtx", "model", ")", "{", "rtx", "(", "*", "gen", ")", "(", "rtx", ",", "rtx", ",", "rtx", ",", "rtx", ")", ";", "switch", "(", "mode", ")", "{", "case", "QImode", ":", "gen", "=", "gen_aarch64_atomic_swpqi", ";", "break", ";", "case", "HImode", ":", "gen", "=", "gen_aarch64_atomic_swphi", ";", "break", ";", "case", "SImode", ":", "gen", "=", "gen_aarch64_atomic_swpsi", ";", "break", ";", "case", "DImode", ":", "gen", "=", "gen_aarch64_atomic_swpdi", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "emit_insn", "(", "gen", "(", "dst", ",", "mem", ",", "value", ",", "model", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "an", "atomic", "swap", "."], "TS_V_token": ["aarch64"], "File": "aarch643", "Func": "aarch64_emit_atomic_swap", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 344, "Length": 98, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_print_options_internal", "(", "FILE", "*", "file", ",", "int", "indent", ",", "const", "char", "*", "string", ",", "HOST_WIDE_INT", "flags", ",", "const", "char", "*", "prefix", ",", "const", "struct", "rs6000_opt_mask", "*", "opts", ",", "size_t", "num_elements", ")", "{", "size_t", "i", ";", "size_t", "start_column", "=", "0", ";", "size_t", "cur_column", ";", "size_t", "max_column", "=", "120", ";", "size_t", "prefix_len", "=", "strlen", "(", "prefix", ")", ";", "size_t", "comma_len", "=", "0", ";", "const", "char", "*", "comma", "=", "\"\"", ";", "if", "(", "indent", ")", "start_column", "+=", "fprintf", "(", "file", ",", "\"%*s\"", ",", "indent", ",", "\"\"", ")", ";", "if", "(", "!", "flags", ")", "{", "fprintf", "(", "stderr", ",", "DEBUG_FMT_S", ",", "string", ",", "\"\"", ")", ";", "return", ";", "}", "start_column", "+=", "fprintf", "(", "stderr", ",", "DEBUG_FMT_WX", ",", "string", ",", "flags", ")", ";", "cur_column", "=", "start_column", ";", "for", "(", "i", "=", "0", ";", "i", "<", "num_elements", ";", "i", "++", ")", "{", "bool", "invert", "=", "opts", "[", "i", "]", ".", "invert", ";", "const", "char", "*", "name", "=", "opts", "[", "i", "]", ".", "name", ";", "const", "char", "*", "no_str", "=", "\"\"", ";", "HOST_WIDE_INT", "mask", "=", "opts", "[", "i", "]", ".", "mask", ";", "size_t", "len", "=", "comma_len", "+", "prefix_len", "+", "strlen", "(", "name", ")", ";", "if", "(", "!", "invert", ")", "{", "if", "(", "(", "flags", "&", "mask", ")", "==", "0", ")", "{", "no_str", "=", "\"no-\"", ";", "len", "+=", "strlen", "(", "\"no-\"", ")", ";", "}", "flags", "&=", "~", "mask", ";", "}", "else", "{", "if", "(", "(", "flags", "&", "mask", ")", "!=", "0", ")", "{", "no_str", "=", "\"no-\"", ";", "len", "+=", "strlen", "(", "\"no-\"", ")", ";", "}", "flags", "|=", "mask", ";", "}", "cur_column", "+=", "len", ";", "if", "(", "cur_column", ">", "max_column", ")", "{", "fprintf", "(", "stderr", ",", "\", \\\\\\n%*s\"", ",", "(", "int", ")", "start_column", ",", "\"\"", ")", ";", "cur_column", "=", "start_column", "+", "len", ";", "comma", "=", "\"\"", ";", "}", "fprintf", "(", "file", ",", "\"%s%s%s%s\"", ",", "comma", ",", "prefix", ",", "no_str", ",", "name", ")", ";", "comma", "=", "\", \"", ";", "comma_len", "=", "strlen", "(", "\", \"", ")", ";", "}", "fputs", "(", "\"\\n\"", ",", "file", ")", ";", "}", ""], "natrual_language": ["Helper", "function", "to", "print", "the", "current", "isa", "or", "misc", "options", "on", "a", "line", "."], "TS_V_token": ["rs6000", "0", "120", "0", "\"\"", "\"%*s\"", "\"\"", "\"\"", "0", "\"\"", "0", "\"no-\"", "\"no-\"", "0", "\"no-\"", "\"no-\"", "\", \\\\\\n%*s\"", "\"\"", "\"\"", "\"%s%s%s%s\"", "\", \"", "\", \"", "\"\\n\""], "File": "rs6000", "Func": "rs6000_print_options_internal", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 345, "Length": 325, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86DAGToDAGISel", "::", "PreprocessISelDAG", "(", ")", "{", "OptForSize", "=", "MF", "->", "getFunction", "(", ")", "->", "hasFnAttr", "(", "Attribute", "::", "OptimizeForSize", ")", ";", "for", "(", "SelectionDAG", "::", "allnodes_iterator", "I", "=", "CurDAG", "->", "allnodes_begin", "(", ")", ",", "E", "=", "CurDAG", "->", "allnodes_end", "(", ")", ";", "I", "!=", "E", ";", ")", "{", "SDNode", "*", "N", "=", "I", "++", ";", "if", "(", "OptLevel", "!=", "CodeGenOpt", "::", "None", "&&", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "CALL", ")", "{", "SDValue", "Chain", "=", "N", "->", "getOperand", "(", "0", ")", ";", "SDValue", "Load", "=", "N", "->", "getOperand", "(", "1", ")", ";", "if", "(", "!", "isCalleeLoad", "(", "Load", ",", "Chain", ")", ")", "continue", ";", "MoveBelowCallSeqStart", "(", "CurDAG", ",", "Load", ",", "SDValue", "(", "N", ",", "0", ")", ",", "Chain", ")", ";", "++", "NumLoadMoved", ";", "continue", ";", "}", "if", "(", "N", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "FP_ROUND", "&&", "N", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "FP_EXTEND", ")", "continue", ";", "EVT", "SrcVT", "=", "N", "->", "getOperand", "(", "0", ")", ".", "getValueType", "(", ")", ";", "EVT", "DstVT", "=", "N", "->", "getValueType", "(", "0", ")", ";", "bool", "SrcIsSSE", "=", "X86Lowering", ".", "isScalarFPTypeInSSEReg", "(", "SrcVT", ")", ";", "bool", "DstIsSSE", "=", "X86Lowering", ".", "isScalarFPTypeInSSEReg", "(", "DstVT", ")", ";", "if", "(", "SrcIsSSE", "&&", "DstIsSSE", ")", "continue", ";", "if", "(", "!", "SrcIsSSE", "&&", "!", "DstIsSSE", ")", "{", "if", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "FP_EXTEND", ")", "continue", ";", "if", "(", "N", "->", "getConstantOperandVal", "(", "1", ")", ")", "continue", ";", "}", "EVT", "MemVT", ";", "if", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "FP_ROUND", ")", "MemVT", "=", "DstVT", ";", "else", "MemVT", "=", "SrcIsSSE", "?", "SrcVT", ":", "DstVT", ";", "SDValue", "MemTmp", "=", "CurDAG", "->", "CreateStackTemporary", "(", "MemVT", ")", ";", "DebugLoc", "dl", "=", "N", "->", "getDebugLoc", "(", ")", ";", "SDValue", "Store", "=", "CurDAG", "->", "getTruncStore", "(", "CurDAG", "->", "getEntryNode", "(", ")", ",", "dl", ",", "N", "->", "getOperand", "(", "0", ")", ",", "MemTmp", ",", "NULL", ",", "0", ",", "MemVT", ",", "false", ",", "false", ",", "0", ")", ";", "SDValue", "Result", "=", "CurDAG", "->", "getExtLoad", "(", "ISD", "::", "EXTLOAD", ",", "dl", ",", "DstVT", ",", "Store", ",", "MemTmp", ",", "NULL", ",", "0", ",", "MemVT", ",", "false", ",", "false", ",", "0", ")", ";", "--", "I", ";", "CurDAG", "->", "ReplaceAllUsesOfValueWith", "(", "SDValue", "(", "N", ",", "0", ")", ",", "Result", ")", ";", "++", "I", ";", "CurDAG", "->", "DeleteNode", "(", "N", ")", ";", "}", "}", ""], "natrual_language": ["PreprocessISelDAG", "-", "This", "hook", "allows", "targets", "to", "hack", "on", "the", "graph", "before", "instruction", "selection", "starts", "."], "TS_V_token": ["X86", "X86", "X86ISD::CALL", "0", "1", "0", "ISD::FP_ROUND", "ISD::FP_EXTEND", "0", "0", "X86", "X86", "ISD::FP_EXTEND", "1", "ISD::FP_ROUND", "0", "0", "0", "ISD::EXTLOAD", "0", "0", "0"], "File": "X86ISelDAGToDAG91", "Func": "PreprocessISelDAG", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 346, "Length": 385, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMPassConfig", "::", "addPreEmitPass", "(", ")", "{", "addPass", "(", "createThumb2SizeReductionPass", "(", ")", ")", ";", "addPass", "(", "createUnpackMachineBundles", "(", "[", "]", "(", "const", "MachineFunction", "&", "MF", ")", "{", "return", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ".", "isThumb2", "(", ")", ";", "}", ")", ")", ";", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createARMOptimizeBarriersPass", "(", ")", ")", ";", "addPass", "(", "createARMConstantIslandPass", "(", ")", ")", ";", "addPass", "(", "createARMLowOverheadLoopsPass", "(", ")", ")", ";", "if", "(", "TM", "->", "getTargetTriple", "(", ")", ".", "isOSWindows", "(", ")", ")", "addPass", "(", "createCFGuardLongjmpPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM"], "File": "ARMTargetMachine10", "Func": "addPreEmitPass", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 347, "Length": 96, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64TargetLowering", "::", "insertSSPDeclarations", "(", "Module", "&", "M", ")", "const", "{", "if", "(", "Subtarget", "->", "getTargetTriple", "(", ")", ".", "isWindowsMSVCEnvironment", "(", ")", ")", "{", "M", ".", "getOrInsertGlobal", "(", "\"__security_cookie\"", ",", "Type", "::", "getInt8PtrTy", "(", "M", ".", "getContext", "(", ")", ")", ")", ";", "FunctionCallee", "SecurityCheckCookie", "=", "M", ".", "getOrInsertFunction", "(", "\"__security_check_cookie\"", ",", "Type", "::", "getVoidTy", "(", "M", ".", "getContext", "(", ")", ")", ",", "Type", "::", "getInt8PtrTy", "(", "M", ".", "getContext", "(", ")", ")", ")", ";", "if", "(", "Function", "*", "F", "=", "dyn_cast", "<", "Function", ">", "(", "SecurityCheckCookie", ".", "getCallee", "(", ")", ")", ")", "{", "F", "->", "setCallingConv", "(", "CallingConv", "::", "Win64", ")", ";", "F", "->", "addAttribute", "(", "1", ",", "Attribute", "::", "AttrKind", "::", "InReg", ")", ";", "}", "return", ";", "}", "TargetLowering", "::", "insertSSPDeclarations", "(", "M", ")", ";", "}", ""], "natrual_language": ["Inserts", "necessary", "declarations", "for", "SSP", "(", "stack", "protection", ")", "purpose", "."], "TS_V_token": ["AArch64", "AArch64", "\"__security_cookie\"", "\"__security_check_cookie\"", "1"], "File": "AArch64ISelLowering (2)3", "Func": "insertSSPDeclarations", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 348, "Length": 127, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64TargetLowering", "::", "ReplaceNodeResults", "(", "SDNode", "*", "N", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "Results", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Don't know how to custom expand this\"", ")", ";", "case", "ISD", "::", "BITCAST", ":", "ReplaceBITCASTResults", "(", "N", ",", "Results", ",", "DAG", ")", ";", "return", ";", "case", "ISD", "::", "FP_TO_UINT", ":", "case", "ISD", "::", "FP_TO_SINT", ":", "assert", "(", "N", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i128", "&&", "\"unexpected illegal conversion\"", ")", ";", "return", ";", "}", "}", ""], "natrual_language": ["ReplaceNodeResults", "-", "Replace", "the", "results", "of", "node", "with", "an", "illegal", "result", "type", "with", "new", "values", "built", "out", "of", "custom", "code", "."], "TS_V_token": ["AArch64", "AArch64", "\"Don't know how to custom expand this\"", "ISD::BITCAST", "ISD::FP_TO_UINT", "ISD::FP_TO_SINT", "0", "MVT::i128", "\"unexpected illegal conversion\""], "File": "AArch64ISelLowering1", "Func": "ReplaceNodeResults", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 349, "Length": 84, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "shl_sext_kind", "(", "rtx", "left_rtx", ",", "rtx", "size_rtx", ",", "int", "*", "costp", ")", "{", "int", "left", ",", "size", ",", "insize", ",", "ext", ";", "int", "cost", "=", "0", ",", "best_cost", ";", "int", "kind", ";", "left", "=", "INTVAL", "(", "left_rtx", ")", ";", "size", "=", "INTVAL", "(", "size_rtx", ")", ";", "insize", "=", "size", "-", "left", ";", "gcc_assert", "(", "insize", ">", "0", ")", ";", "kind", "=", "0", ";", "best_cost", "=", "shift_insns", "[", "32", "-", "insize", "]", "+", "ashiftrt_insns", "[", "32", "-", "size", "]", ";", "if", "(", "size", "<=", "16", ")", "{", "cost", "=", "shift_insns", "[", "16", "-", "insize", "]", "+", "1", "+", "ashiftrt_insns", "[", "16", "-", "size", "]", ";", "if", "(", "cost", "<", "best_cost", ")", "{", "kind", "=", "5", ";", "best_cost", "=", "cost", ";", "}", "}", "for", "(", "ext", "=", "16", ";", "ext", ">=", "insize", ";", "ext", "-=", "8", ")", "{", "if", "(", "ext", "<=", "size", ")", "{", "cost", "=", "ext_shift_insns", "[", "ext", "-", "insize", "]", "+", "1", "+", "shift_insns", "[", "size", "-", "ext", "]", ";", "if", "(", "cost", "<", "best_cost", ")", "{", "kind", "=", "ext", "/", "(", "unsigned", ")", "8", ";", "best_cost", "=", "cost", ";", "}", "}", "if", "(", "EXT_SHIFT_SIGNED", "(", "size", "-", "ext", ")", ")", "cost", "=", "ext_shift_insns", "[", "ext", "-", "insize", "]", "+", "ext_shift_insns", "[", "size", "-", "ext", "]", "+", "1", ";", "else", "if", "(", "size", "<=", "16", ")", "cost", "=", "ext_shift_insns", "[", "ext", "-", "insize", "]", "+", "1", "+", "ext_shift_insns", "[", "size", ">", "ext", "?", "size", "-", "ext", ":", "ext", "-", "size", "]", "+", "1", ";", "else", "continue", ";", "if", "(", "cost", "<", "best_cost", ")", "{", "kind", "=", "ext", "/", "(", "unsigned", ")", "8", "+", "2", ";", "best_cost", "=", "cost", ";", "}", "}", "if", "(", "insize", "<", "8", ")", "{", "cost", "=", "3", "+", "shift_insns", "[", "left", "]", ";", "if", "(", "cost", "<", "best_cost", ")", "{", "kind", "=", "6", ";", "best_cost", "=", "cost", ";", "}", "if", "(", "left", "<", "31", ")", "{", "cost", "=", "3", "+", "ext_shift_insns", "[", "left", "+", "1", "]", "+", "1", ";", "if", "(", "cost", "<", "best_cost", ")", "{", "kind", "=", "7", ";", "best_cost", "=", "cost", ";", "}", "}", "}", "if", "(", "TARGET_SH3", ")", "{", "cost", "=", "shift_insns", "[", "32", "-", "insize", "]", "+", "1", "+", "SH_DYNAMIC_SHIFT_COST", ";", "if", "(", "cost", "<", "best_cost", ")", "{", "kind", "=", "0", ";", "best_cost", "=", "cost", ";", "}", "}", "if", "(", "costp", ")", "*", "costp", "=", "cost", ";", "return", "kind", ";", "}", ""], "natrual_language": ["Try", "to", "find", "a", "good", "way", "to", "implement", "the", "combiner", "pattern", "[", "(", "set", "(", "match_operand", ":", "SI", "0", "``", "register_operand", "''", "``", "=r", "''", ")", "(", "sign_extract", ":", "SI", "(", "ashift", ":", "SI", "(", "match_operand", ":", "SI", "1", "``", "register_operand", "''", "``", "r", "''", ")", "(", "match_operand", ":", "SI", "2", "``", "const_int_operand", "''", "``", "n", "''", ")", "(", "match_operand", ":", "SI", "3", "``", "const_int_operand", "''", "``", "n", "''", ")", "(", "const_int", "0", ")", ")", ")", "(", "clobber", "(", "reg", ":", "SI", "T_REG", ")", ")", "]", "LEFT_RTX", "is", "operand", "2", "in", "the", "above", "pattern", ",", "and", "SIZE_RTX", "is", "operand", "3.", "return", "0", "for", "simple", "left", "/", "right", "shift", "combination", ".", "return", "1", "for", "left", "shift", "/", "8", "bit", "sign", "extend", "/", "left", "shift", ".", "return", "2", "for", "left", "shift", "/", "16", "bit", "sign", "extend", "/", "left", "shift", ".", "return", "3", "for", "left", "shift", "/", "8", "bit", "sign", "extend", "/", "shift", "/", "sign", "extend", ".", "return", "4", "for", "left", "shift", "/", "16", "bit", "sign", "extend", "/", "shift", "/", "sign", "extend", ".", "return", "5", "for", "left", "shift", "/", "16", "bit", "sign", "extend", "/", "right", "shift", "return", "6", "for", "<", "8", "bit", "sign", "extend", "/", "left", "shift", ".", "return", "7", "for", "<", "8", "bit", "sign", "extend", "/", "left", "shift", "/", "single", "right", "shift", ".", "If", "COSTP", "is", "nonzero", ",", "assign", "the", "calculated", "cost", "to", "*", "COSTP", "."], "TS_V_token": ["sh", "0", "0", "0", "32", "32", "16", "16", "1", "16", "5", "16", "8", "1", "8", "1", "16", "1", "1", "8", "2", "8", "3", "6", "31", "3", "1", "1", "7", "32", "1", "0"], "File": "sh3", "Func": "shl_sext_kind", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 350, "Length": 391, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "mips_subword_at_byte", "(", "rtx", "op", ",", "unsigned", "int", "byte", ")", "{", "machine_mode", "mode", ";", "mode", "=", "GET_MODE", "(", "op", ")", ";", "if", "(", "mode", "==", "VOIDmode", ")", "mode", "=", "TImode", ";", "gcc_assert", "(", "!", "FP_REG_RTX_P", "(", "op", ")", ")", ";", "if", "(", "MEM_P", "(", "op", ")", ")", "return", "mips_rewrite_small_data", "(", "adjust_address", "(", "op", ",", "word_mode", ",", "byte", ")", ")", ";", "return", "simplify_gen_subreg", "(", "word_mode", ",", "op", ",", "mode", ",", "byte", ")", ";", "}", ""], "natrual_language": ["Return", "one", "word", "of", "128-bit", "value", "OP", ",", "taking", "into", "account", "the", "fixed", "endianness", "of", "certain", "registers", ".", "BYTE", "selects", "from", "the", "byte", "address", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_subword_at_byte", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 351, "Length": 73, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64TTIImpl", "::", "getUnrollingPreferences", "(", "Loop", "*", "L", ",", "ScalarEvolution", "&", "SE", ",", "TTI", "::", "UnrollingPreferences", "&", "UP", ")", "{", "BaseT", "::", "getUnrollingPreferences", "(", "L", ",", "SE", ",", "UP", ")", ";", "if", "(", "L", "->", "getLoopDepth", "(", ")", ">", "1", ")", "UP", ".", "PartialThreshold", "*=", "2", ";", "UP", ".", "PartialOptSizeThreshold", "=", "0", ";", "if", "(", "ST", "->", "getProcFamily", "(", ")", "==", "AArch64Subtarget", "::", "Falkor", "&&", "EnableFalkorHWPFUnrollFix", ")", "getFalkorUnrollingPreferences", "(", "L", ",", "SE", ",", "UP", ")", ";", "for", "(", "auto", "*", "BB", ":", "L", "->", "getBlocks", "(", ")", ")", "{", "for", "(", "auto", "&", "I", ":", "*", "BB", ")", "{", "if", "(", "I", ".", "getType", "(", ")", "->", "isVectorTy", "(", ")", ")", "return", ";", "if", "(", "isa", "<", "CallInst", ">", "(", "I", ")", "||", "isa", "<", "InvokeInst", ">", "(", "I", ")", ")", "{", "if", "(", "const", "Function", "*", "F", "=", "cast", "<", "CallBase", ">", "(", "I", ")", ".", "getCalledFunction", "(", ")", ")", "{", "if", "(", "!", "isLoweredToCall", "(", "F", ")", ")", "continue", ";", "}", "return", ";", "}", "}", "}", "if", "(", "ST", "->", "getProcFamily", "(", ")", "!=", "AArch64Subtarget", "::", "Others", "&&", "!", "ST", "->", "getSchedModel", "(", ")", ".", "isOutOfOrder", "(", ")", ")", "{", "UP", ".", "Runtime", "=", "true", ";", "UP", ".", "Partial", "=", "true", ";", "UP", ".", "UpperBound", "=", "true", ";", "UP", ".", "UnrollRemainder", "=", "true", ";", "UP", ".", "DefaultUnrollRuntimeCount", "=", "4", ";", "}", "}", ""], "natrual_language": ["Get", "target-customized", "preferences", "for", "the", "generic", "loop", "unrolling", "transformation", "."], "TS_V_token": ["AArch64", "AArch64", "1", "2", "0", "AArch64", "AArch64", "4"], "File": "AArch64TargetTransformInfo27", "Func": "getUnrollingPreferences", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 352, "Length": 224, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_cheap_mult_shift_p", "(", "rtx", "x", ")", "{", "rtx", "op0", ",", "op1", ";", "op0", "=", "XEXP", "(", "x", ",", "0", ")", ";", "op1", "=", "XEXP", "(", "x", ",", "1", ")", ";", "if", "(", "!", "(", "aarch64_tune_params", ".", "extra_tuning_flags", "&", "AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND", ")", ")", "return", "false", ";", "if", "(", "GET_CODE", "(", "op0", ")", "==", "SIGN_EXTEND", ")", "return", "false", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "ASHIFT", "&&", "CONST_INT_P", "(", "op1", ")", "&&", "UINTVAL", "(", "op1", ")", "<=", "4", ")", "return", "true", ";", "if", "(", "GET_CODE", "(", "x", ")", "!=", "MULT", "||", "!", "CONST_INT_P", "(", "op1", ")", ")", "return", "false", ";", "HOST_WIDE_INT", "l2", "=", "exact_log2", "(", "INTVAL", "(", "op1", ")", ")", ";", "if", "(", "l2", ">", "0", "&&", "l2", "<=", "4", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "iff", "X", "is", "a", "cheap", "shift", "without", "a", "sign", "extend", "."], "TS_V_token": ["aarch64", "0", "1", "4", "0", "4"], "File": "aarch64", "Func": "aarch64_cheap_mult_shift_p", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 353, "Length": 127, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "char", "*", "shift_op", "(", "rtx", "op", ",", "HOST_WIDE_INT", "*", "amountp", ")", "{", "const", "char", "*", "mnem", ";", "enum", "rtx_code", "code", "=", "GET_CODE", "(", "op", ")", ";", "switch", "(", "code", ")", "{", "case", "ROTATE", ":", "if", "(", "!", "CONST_INT_P", "(", "XEXP", "(", "op", ",", "1", ")", ")", ")", "{", "output_operand_lossage", "(", "\"invalid shift operand\"", ")", ";", "return", "NULL", ";", "}", "code", "=", "ROTATERT", ";", "*", "amountp", "=", "32", "-", "INTVAL", "(", "XEXP", "(", "op", ",", "1", ")", ")", ";", "mnem", "=", "\"ror\"", ";", "break", ";", "case", "ASHIFT", ":", "case", "ASHIFTRT", ":", "case", "LSHIFTRT", ":", "case", "ROTATERT", ":", "mnem", "=", "arm_shift_nmem", "(", "code", ")", ";", "if", "(", "CONST_INT_P", "(", "XEXP", "(", "op", ",", "1", ")", ")", ")", "{", "*", "amountp", "=", "INTVAL", "(", "XEXP", "(", "op", ",", "1", ")", ")", ";", "}", "else", "if", "(", "REG_P", "(", "XEXP", "(", "op", ",", "1", ")", ")", ")", "{", "*", "amountp", "=", "-", "1", ";", "return", "mnem", ";", "}", "else", "{", "output_operand_lossage", "(", "\"invalid shift operand\"", ")", ";", "return", "NULL", ";", "}", "break", ";", "case", "MULT", ":", "if", "(", "!", "CONST_INT_P", "(", "XEXP", "(", "op", ",", "1", ")", ")", ")", "{", "output_operand_lossage", "(", "\"invalid shift operand\"", ")", ";", "return", "NULL", ";", "}", "*", "amountp", "=", "INTVAL", "(", "XEXP", "(", "op", ",", "1", ")", ")", "&", "0xFFFFFFFF", ";", "if", "(", "*", "amountp", "&", "(", "*", "amountp", "-", "1", ")", ")", "{", "output_operand_lossage", "(", "\"invalid shift operand\"", ")", ";", "return", "NULL", ";", "}", "*", "amountp", "=", "exact_log2", "(", "*", "amountp", ")", ";", "gcc_assert", "(", "IN_RANGE", "(", "*", "amountp", ",", "0", ",", "31", ")", ")", ";", "return", "ARM_LSL_NAME", ";", "default", ":", "output_operand_lossage", "(", "\"invalid shift operand\"", ")", ";", "return", "NULL", ";", "}", "if", "(", "code", "==", "ROTATERT", ")", "*", "amountp", "&=", "31", ";", "else", "if", "(", "*", "amountp", "!=", "(", "*", "amountp", "&", "31", ")", ")", "{", "if", "(", "code", "==", "ASHIFT", ")", "mnem", "=", "\"lsr\"", ";", "*", "amountp", "=", "32", ";", "}", "if", "(", "*", "amountp", "==", "0", ")", "return", "NULL", ";", "return", "mnem", ";", "}", ""], "natrual_language": ["Ensure", "valid", "constant", "shifts", "and", "return", "the", "appropriate", "shift", "mnemonic", "for", "the", "operation", "code", ".", "The", "returned", "result", "should", "not", "be", "overwritten", ".", "OP", "is", "the", "rtx", "code", "of", "the", "shift", ".", "On", "exit", ",", "*", "AMOUNTP", "will", "be", "-1", "if", "the", "shift", "is", "by", "a", "register", ",", "or", "a", "constant", "shift", "."], "TS_V_token": ["arm", "1", "\"invalid shift operand\"", "32", "1", "\"ror\"", "1", "1", "1", "1", "\"invalid shift operand\"", "1", "\"invalid shift operand\"", "1", "0xFFFFFFFF", "1", "\"invalid shift operand\"", "0", "31", "\"invalid shift operand\"", "31", "31", "\"lsr\"", "32", "0"], "File": "arm", "Func": "shift_op", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 354, "Length": 321, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZPostRASchedStrategy", "::", "enterMBB", "(", "MachineBasicBlock", "*", "NextMBB", ")", "{", "assert", "(", "(", "SchedStates", ".", "find", "(", "NextMBB", ")", "==", "SchedStates", ".", "end", "(", ")", ")", "&&", "\"Entering MBB twice?\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"** Entering \"", "<<", "printMBBReference", "(", "*", "NextMBB", ")", ")", ";", "MBB", "=", "NextMBB", ";", "HazardRec", "=", "SchedStates", "[", "MBB", "]", "=", "new", "SystemZHazardRecognizer", "(", "TII", ",", "&", "SchedModel", ")", ";", "LLVM_DEBUG", "(", "const", "MachineLoop", "*", "Loop", "=", "MLI", "->", "getLoopFor", "(", "MBB", ")", ";", "if", "(", "Loop", "&&", "Loop", "->", "getHeader", "(", ")", "==", "MBB", ")", "dbgs", "(", ")", "<<", "\" (Loop header)\"", ";", "dbgs", "(", ")", "<<", "\":\\n\"", ";", ")", ";", "MachineBasicBlock", "*", "SinglePredMBB", "=", "getSingleSchedPred", "(", "MBB", ",", "MLI", "->", "getLoopFor", "(", "MBB", ")", ")", ";", "if", "(", "SinglePredMBB", "==", "nullptr", "||", "SchedStates", ".", "find", "(", "SinglePredMBB", ")", "==", "SchedStates", ".", "end", "(", ")", ")", "return", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"** Continued scheduling from \"", "<<", "printMBBReference", "(", "*", "SinglePredMBB", ")", "<<", "\"\\n\"", ";", ")", ";", "HazardRec", "->", "copyState", "(", "SchedStates", "[", "SinglePredMBB", "]", ")", ";", "LLVM_DEBUG", "(", "HazardRec", "->", "dumpState", "(", ")", ";", ")", ";", "for", "(", "MachineBasicBlock", "::", "iterator", "I", "=", "SinglePredMBB", "->", "getFirstTerminator", "(", ")", ";", "I", "!=", "SinglePredMBB", "->", "end", "(", ")", ";", "I", "++", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"** Emitting incoming branch: \"", ";", "I", "->", "dump", "(", ")", ";", ")", ";", "bool", "TakenBranch", "=", "(", "I", "->", "isBranch", "(", ")", "&&", "(", "TII", "->", "getBranchInfo", "(", "*", "I", ")", ".", "isIndirect", "(", ")", "||", "TII", "->", "getBranchInfo", "(", "*", "I", ")", ".", "getMBBTarget", "(", ")", "==", "MBB", ")", ")", ";", "HazardRec", "->", "emitInstruction", "(", "&", "*", "I", ",", "TakenBranch", ")", ";", "if", "(", "TakenBranch", ")", "break", ";", "}", "}", ""], "natrual_language": ["Tell", "the", "strategy", "that", "MBB", "is", "about", "to", "be", "processed", "."], "TS_V_token": ["SystemZ", "SystemZ", "\"Entering MBB twice?\"", "\"** Entering \"", "SystemZ", "\" (Loop header)\"", "\":\\n\"", "\"** Continued scheduling from \"", "\"\\n\"", "\"** Emitting incoming branch: \""], "File": "SystemZMachineScheduler1", "Func": "enterMBB", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 355, "Length": 279, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "enum", "machine_mode", "rs6000_eh_return_filter_mode", "(", "void", ")", "{", "return", "TARGET_32BIT", "?", "SImode", ":", "word_mode", ";", "}", ""], "natrual_language": ["target", "hook", "eh_return_filter_mode"], "TS_V_token": ["rs6000"], "File": "rs60003", "Func": "rs6000_eh_return_filter_mode", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 356, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "DLXRegisterInfo", "::", "trackLivenessAfterRegAlloc", "(", "const", "MachineFunction", "&", ")", "const", "{", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "live-ins", "should", "be", "tracked", "after", "register", "allocation", "."], "TS_V_token": ["DLX", "DLX"], "File": "DLXRegisterInfo", "Func": "trackLivenessAfterRegAlloc", "Target": "DLX", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 357, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"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": ["OR1K", "0", "0"], "File": "OR1KAsmParser", "Func": "addExpr", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 358, "Length": 78, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Thumb2InstrInfo", "::", "ReplaceTailWithBranchTo", "(", "MachineBasicBlock", "::", "iterator", "Tail", ",", "MachineBasicBlock", "*", "NewDest", ")", "const", "{", "MachineBasicBlock", "*", "MBB", "=", "Tail", "->", "getParent", "(", ")", ";", "ARMFunctionInfo", "*", "AFI", "=", "MBB", "->", "getParent", "(", ")", "->", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "if", "(", "!", "AFI", "->", "hasITBlocks", "(", ")", "||", "Tail", "->", "isBranch", "(", ")", ")", "{", "TargetInstrInfo", "::", "ReplaceTailWithBranchTo", "(", "Tail", ",", "NewDest", ")", ";", "return", ";", "}", "unsigned", "PredReg", "=", "0", ";", "ARMCC", "::", "CondCodes", "CC", "=", "getInstrPredicate", "(", "*", "Tail", ",", "PredReg", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "Tail", ";", "if", "(", "CC", "!=", "ARMCC", "::", "AL", ")", "--", "MBBI", ";", "TargetInstrInfo", "::", "ReplaceTailWithBranchTo", "(", "Tail", ",", "NewDest", ")", ";", "if", "(", "CC", "!=", "ARMCC", "::", "AL", ")", "{", "MachineBasicBlock", "::", "iterator", "E", "=", "MBB", "->", "begin", "(", ")", ";", "unsigned", "Count", "=", "4", ";", "while", "(", "Count", "&&", "MBBI", "!=", "E", ")", "{", "if", "(", "MBBI", "->", "isDebugInstr", "(", ")", ")", "{", "--", "MBBI", ";", "continue", ";", "}", "if", "(", "MBBI", "->", "getOpcode", "(", ")", "==", "ARM", "::", "t2IT", ")", "{", "unsigned", "Mask", "=", "MBBI", "->", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ";", "if", "(", "Count", "==", "4", ")", "MBBI", "->", "eraseFromParent", "(", ")", ";", "else", "{", "unsigned", "MaskOn", "=", "1", "<<", "Count", ";", "unsigned", "MaskOff", "=", "~", "(", "MaskOn", "-", "1", ")", ";", "MBBI", "->", "getOperand", "(", "1", ")", ".", "setImm", "(", "(", "Mask", "&", "MaskOff", ")", "|", "MaskOn", ")", ";", "}", "return", ";", "}", "--", "MBBI", ";", "--", "Count", ";", "}", "}", "}", ""], "natrual_language": ["Delete", "the", "instruction", "OldInst", "and", "everything", "after", "it", ",", "replacing", "it", "with", "an", "unconditional", "branch", "to", "NewDest", "."], "TS_V_token": ["ARM", "ARM", "ARM", "0", "ARMCC::CondCodes", "ARMCC::AL", "ARMCC::AL", "4", "ARM::t2IT", "1", "4", "1", "1", "1"], "File": "Thumb2InstrInfo (2)1", "Func": "ReplaceTailWithBranchTo", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 359, "Length": 254, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "AArch64Subtarget", "&", "AArch64Subtarget", "::", "initializeSubtargetDependencies", "(", "StringRef", "FS", ",", "StringRef", "CPUString", ")", "{", "if", "(", "CPUString", ".", "empty", "(", ")", ")", "CPUString", "=", "\"generic\"", ";", "ParseSubtargetFeatures", "(", "CPUString", ",", "FS", ")", ";", "initializeProperties", "(", ")", ";", "return", "*", "this", ";", "}", ""], "natrual_language": ["initializeSubtargetDependencies", "-", "Initializes", "using", "a", "CPU", ",", "a", "TuneCPU", ",", "and", "feature", "string", "so", "that", "we", "can", "use", "initializer", "lists", "for", "subtarget", "initialization", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "\"generic\""], "File": "AArch64Subtarget10", "Func": "initializeSubtargetDependencies", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 360, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "enableShrinkWrapping", "(", "const", "MachineFunction", "&", "MF", ")", "const", "override", "{", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "will", "correctly", "handle", "shrink", "wrapping", "."], "TS_V_token": ["Mips"], "File": "MipsFrameLowering20", "Func": "enableShrinkWrapping", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 361, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "function_expander", "::", "add_ptrue_hint", "(", "unsigned", "int", "argno", ",", "machine_mode", "pred_mode", ")", "{", "rtx", "pred", "=", "gen_lowpart", "(", "pred_mode", ",", "args", "[", "argno", "]", ")", ";", "int", "hint", "=", "(", "pred", "==", "CONSTM1_RTX", "(", "pred_mode", ")", "?", "SVE_KNOWN_PTRUE", ":", "SVE_MAYBE_NOT_PTRUE", ")", ";", "args", ".", "quick_insert", "(", "argno", "+", "1", ",", "gen_int_mode", "(", "hint", ",", "SImode", ")", ")", ";", "}", ""], "natrual_language": ["Add", "a", "dummy", "argument", "to", "indicate", "whether", "predicate", "argument", "ARGNO", "is", "all-true", "when", "interpreted", "in", "mode", "PRED_MODE", ".", "The", "hint", "goes", "immediately", "after", "ARGNO", "."], "TS_V_token": ["aarch64", "1"], "File": "aarch64-sve-builtins", "Func": "add_ptrue_hint", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 362, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "d30v_add_gc_roots", "(", ")", "{", "ggc_add_rtx_root", "(", "&", "d30v_compare_op0", ",", "1", ")", ";", "ggc_add_rtx_root", "(", "&", "d30v_compare_op1", ",", "1", ")", ";", "}", ""], "natrual_language": ["Called", "to", "register", "all", "of", "our", "global", "variables", "with", "the", "garbage", "collector", "."], "TS_V_token": ["d30v", "1", "1"], "File": "d30v", "Func": "d30v_add_gc_roots", "Target": "d30v", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 363, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "r10k_protected_bb_p", "(", "basic_block", "bb", ",", "sbitmap", "protected_bbs", ")", "{", "edge_iterator", "ei", ";", "edge", "e", ";", "FOR_EACH_EDGE", "(", "e", ",", "ei", ",", "bb", "->", "preds", ")", "if", "(", "!", "single_succ_p", "(", "e", "->", "src", ")", "||", "!", "bitmap_bit_p", "(", "protected_bbs", ",", "e", "->", "src", "->", "index", ")", "||", "(", "e", "->", "flags", "&", "EDGE_COMPLEX", ")", "!=", "0", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "BB", "is", "only", "reached", "by", "blocks", "in", "PROTECTED_BBS", "and", "if", "every", "edge", "is", "unconditional", "."], "TS_V_token": ["mips", "0"], "File": "mips", "Func": "r10k_protected_bb_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 364, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64PreLegalizerCombiner", "::", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "{", "AU", ".", "addRequired", "<", "TargetPassConfig", ">", "(", ")", ";", "AU", ".", "setPreservesCFG", "(", ")", ";", "getSelectionDAGFallbackAnalysisUsage", "(", "AU", ")", ";", "AU", ".", "addRequired", "<", "GISelKnownBitsAnalysis", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "GISelKnownBitsAnalysis", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "MachineDominatorTree", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "MachineDominatorTree", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "GISelCSEAnalysisWrapperPass", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "GISelCSEAnalysisWrapperPass", ">", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64PreLegalizerCombiner10", "Func": "getAnalysisUsage", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 365, "Length": 93, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "HOST_WIDE_INT", "rounded_frame_size", "(", "int", "pushed", ")", "{", "HOST_WIDE_INT", "size", "=", "get_frame_size", "(", ")", ";", "HOST_WIDE_INT", "align", "=", "STACK_BOUNDARY", "/", "BITS_PER_UNIT", ";", "if", "(", "ACCUMULATE_OUTGOING_ARGS", ")", "size", "+=", "crtl", "->", "outgoing_args_size", ";", "return", "(", "(", "size", "+", "pushed", "+", "align", "-", "1", ")", "&", "-", "align", ")", "-", "pushed", ";", "}", ""], "natrual_language": ["PUSHED", "is", "the", "number", "of", "bytes", "that", "are", "bing", "pushed", "on", "the", "stack", "for", "register", "saves", ".", "Return", "the", "frame", "size", ",", "padded", "appropriately", "so", "that", "the", "stack", "stays", "properly", "aligned", "."], "TS_V_token": ["sh", "1"], "File": "sh", "Func": "rounded_frame_size", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 366, "Length": 51, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Thumb1RegisterInfo", "::", "emitLoadConstPool", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "MBBI", ",", "DebugLoc", "dl", ",", "unsigned", "DestReg", ",", "unsigned", "SubIdx", ",", "int", "Val", ",", "ARMCC", "::", "CondCodes", "Pred", ",", "unsigned", "PredReg", ")", "const", "{", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineConstantPool", "*", "ConstantPool", "=", "MF", ".", "getConstantPool", "(", ")", ";", "Constant", "*", "C", "=", "ConstantInt", "::", "get", "(", "Type", "::", "getInt32Ty", "(", "MBB", ".", "getParent", "(", ")", "->", "getFunction", "(", ")", "->", "getContext", "(", ")", ")", ",", "Val", ")", ";", "unsigned", "Idx", "=", "ConstantPool", "->", "getConstantPoolIndex", "(", "C", ",", "4", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "ARM", "::", "tLDRcp", ")", ")", ".", "addReg", "(", "DestReg", ",", "getDefRegState", "(", "true", ")", ",", "SubIdx", ")", ".", "addConstantPoolIndex", "(", "Idx", ")", ".", "addImm", "(", "Pred", ")", ".", "addReg", "(", "PredReg", ")", ";", "}", ""], "natrual_language": ["emitLoadConstPool", "-", "Emits", "a", "load", "from", "constpool", "to", "materialize", "the", "specified", "immediate", "."], "TS_V_token": ["ARM", "ARMCC::CondCodes", "4", "ARM::tLDRcp"], "File": "Thumb1RegisterInfo13", "Func": "emitLoadConstPool", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 367, "Length": 146, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "CCAssignFn", "*", "ARM64FastISel", "::", "CCAssignFnForCall", "(", "CallingConv", "::", "ID", "CC", ")", "const", "{", "if", "(", "CC", "==", "CallingConv", "::", "WebKit_JS", ")", "return", "CC_ARM64_WebKit_JS", ";", "return", "Subtarget", "->", "isTargetDarwin", "(", ")", "?", "CC_ARM64_DarwinPCS", ":", "CC_ARM64_AAPCS", ";", "}", ""], "natrual_language": ["Selects", "the", "correct", "CCAssignFn", "for", "a", "given", "CallingConvention", "value", "."], "TS_V_token": ["ARM64", "ARM64", "ARM64", "ARM64", "ARM64"], "File": "ARM64FastISel", "Func": "CCAssignFnForCall", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 368, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86PassConfig", "::", "addILPOpts", "(", ")", "{", "addPass", "(", "&", "EarlyIfConverterID", ")", ";", "if", "(", "EnableMachineCombinerPass", ")", "addPass", "(", "&", "MachineCombinerID", ")", ";", "addPass", "(", "createX86CmovConverterPass", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Add", "passes", "that", "optimize", "instruction", "level", "parallelism", "for", "out-of-order", "targets", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86TargetMachine101", "Func": "addILPOpts", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 369, "Length": 34, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "AVOIDCALL_DESC", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["X86"], "File": "X86AvoidTrailingCall", "Func": "getPassName", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 370, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86TTI", "::", "getArithmeticInstrCost", "(", "unsigned", "Opcode", ",", "Type", "*", "Ty", ")", "const", "{", "std", "::", "pair", "<", "unsigned", ",", "MVT", ">", "LT", "=", "TLI", "->", "getTypeLegalizationCost", "(", "Ty", ")", ";", "int", "ISD", "=", "TLI", "->", "InstructionOpcodeToISD", "(", "Opcode", ")", ";", "assert", "(", "ISD", "&&", "\"Invalid opcode\"", ")", ";", "static", "const", "CostTblEntry", "<", "MVT", ">", "AVX1CostTable", "[", "]", "=", "{", "{", "ISD", "::", "MUL", ",", "MVT", "::", "v8i32", ",", "4", "}", ",", "{", "ISD", "::", "SUB", ",", "MVT", "::", "v8i32", ",", "4", "}", ",", "{", "ISD", "::", "ADD", ",", "MVT", "::", "v8i32", ",", "4", "}", ",", "{", "ISD", "::", "MUL", ",", "MVT", "::", "v4i64", ",", "4", "}", ",", "{", "ISD", "::", "SUB", ",", "MVT", "::", "v4i64", ",", "4", "}", ",", "{", "ISD", "::", "ADD", ",", "MVT", "::", "v4i64", ",", "4", "}", ",", "}", ";", "if", "(", "ST", "->", "hasAVX", "(", ")", ")", "{", "int", "Idx", "=", "CostTableLookup", "<", "MVT", ">", "(", "AVX1CostTable", ",", "array_lengthof", "(", "AVX1CostTable", ")", ",", "ISD", ",", "LT", ".", "second", ")", ";", "if", "(", "Idx", "!=", "-", "1", ")", "return", "LT", ".", "first", "*", "AVX1CostTable", "[", "Idx", "]", ".", "Cost", ";", "}", "return", "TargetTransformInfo", "::", "getArithmeticInstrCost", "(", "Opcode", ",", "Ty", ")", ";", "}", ""], "natrual_language": ["This", "is", "an", "approximation", "of", "reciprocal", "throughput", "of", "a", "math/logic", "op", "."], "TS_V_token": ["X86", "X86", "\"Invalid opcode\"", "ISD::MUL", "MVT::v8i32", "4", "ISD::SUB", "MVT::v8i32", "4", "ISD::ADD", "MVT::v8i32", "4", "ISD::MUL", "MVT::v4i64", "4", "ISD::SUB", "MVT::v4i64", "4", "ISD::ADD", "MVT::v4i64", "4", "1"], "File": "X86TargetTransformInfo53", "Func": "getArithmeticInstrCost", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 371, "Length": 195, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86PassConfig", "::", "addPreRegAlloc", "(", ")", "{", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "addPass", "(", "createX86FixupSetCC", "(", ")", ")", ";", "addPass", "(", "createX86OptimizeLEAs", "(", ")", ")", ";", "}", "addPass", "(", "createX86CallFrameOptimization", "(", ")", ")", ";", "addPass", "(", "createX86WinAllocaExpander", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "register", "allocation", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86"], "File": "X86TargetMachine98", "Func": "addPreRegAlloc", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 372, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "DEBUG_FUNCTION", "static", "void", "debug_dispatch_window_file", "(", "FILE", "*", "file", ",", "int", "window_num", ")", "{", "dispatch_windows", "*", "list", ";", "int", "i", ";", "if", "(", "window_num", "==", "0", ")", "list", "=", "dispatch_window_list", ";", "else", "list", "=", "dispatch_window_list1", ";", "fprintf", "(", "file", ",", "\"Window #%d:\\n\"", ",", "list", "->", "window_num", ")", ";", "fprintf", "(", "file", ",", "\" num_insn = %d, num_uops = %d, window_size = %d\\n\"", ",", "list", "->", "num_insn", ",", "list", "->", "num_uops", ",", "list", "->", "window_size", ")", ";", "fprintf", "(", "file", ",", "\" num_imm = %d, num_imm_32 = %d, num_imm_64 = %d, imm_size = %d\\n\"", ",", "list", "->", "num_imm", ",", "list", "->", "num_imm_32", ",", "list", "->", "num_imm_64", ",", "list", "->", "imm_size", ")", ";", "fprintf", "(", "file", ",", "\" num_loads = %d, num_stores = %d\\n\"", ",", "list", "->", "num_loads", ",", "list", "->", "num_stores", ")", ";", "fprintf", "(", "file", ",", "\" insn info:\\n\"", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "MAX_INSN", ";", "i", "++", ")", "{", "if", "(", "!", "list", "->", "window", "[", "i", "]", ".", "insn", ")", "break", ";", "fprintf", "(", "file", ",", "\" group[%d] = %s, insn[%d] = %p, path[%d] = %d byte_len[%d] = %d, imm_bytes[%d] = %d\\n\"", ",", "i", ",", "group_name", "[", "list", "->", "window", "[", "i", "]", ".", "group", "]", ",", "i", ",", "(", "void", "*", ")", "list", "->", "window", "[", "i", "]", ".", "insn", ",", "i", ",", "list", "->", "window", "[", "i", "]", ".", "path", ",", "i", ",", "list", "->", "window", "[", "i", "]", ".", "byte_len", ",", "i", ",", "list", "->", "window", "[", "i", "]", ".", "imm_bytes", ")", ";", "}", "}", ""], "natrual_language": ["Print", "the", "dispatch", "window", ",", "WINDOW_NUM", ",", "to", "FILE", "."], "TS_V_token": ["i386", "0", "\"Window #%d:\\n\"", "\" num_insn = %d, num_uops = %d, window_size = %d\\n\"", "\" num_imm = %d, num_imm_32 = %d, num_imm_64 = %d, imm_size = %d\\n\"", "\" num_loads = %d, num_stores = %d\\n\"", "\" insn info:\\n\"", "0", "\" group[%d] = %s, insn[%d] = %p, path[%d] = %d byte_len[%d] = %d, imm_bytes[%d] = %d\\n\""], "File": "i3864", "Func": "debug_dispatch_window_file", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 373, "Length": 209, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64AsmPrinter", "::", "PrintAsmOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNum", ",", "unsigned", "AsmVariant", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "O", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "OpNum", ")", ";", "if", "(", "!", "AsmPrinter", "::", "PrintAsmOperand", "(", "MI", ",", "OpNum", ",", "AsmVariant", ",", "ExtraCode", ",", "O", ")", ")", "return", "false", ";", "if", "(", "ExtraCode", "&&", "ExtraCode", "[", "0", "]", ")", "{", "if", "(", "ExtraCode", "[", "1", "]", "!=", "0", ")", "return", "true", ";", "switch", "(", "ExtraCode", "[", "0", "]", ")", "{", "default", ":", "return", "true", ";", "case", "'w'", ":", "case", "'x'", ":", "if", "(", "MO", ".", "isReg", "(", ")", ")", "return", "printAsmMRegister", "(", "MO", ",", "ExtraCode", "[", "0", "]", ",", "O", ")", ";", "if", "(", "MO", ".", "isImm", "(", ")", "&&", "MO", ".", "getImm", "(", ")", "==", "0", ")", "{", "unsigned", "Reg", "=", "ExtraCode", "[", "0", "]", "==", "'w'", "?", "AArch64", "::", "WZR", ":", "AArch64", "::", "XZR", ";", "O", "<<", "AArch64InstPrinter", "::", "getRegisterName", "(", "Reg", ")", ";", "return", "false", ";", "}", "printOperand", "(", "MI", ",", "OpNum", ",", "O", ")", ";", "return", "false", ";", "case", "'b'", ":", "case", "'h'", ":", "case", "'s'", ":", "case", "'d'", ":", "case", "'q'", ":", "case", "'z'", ":", "if", "(", "MO", ".", "isReg", "(", ")", ")", "{", "const", "TargetRegisterClass", "*", "RC", ";", "switch", "(", "ExtraCode", "[", "0", "]", ")", "{", "case", "'b'", ":", "RC", "=", "&", "AArch64", "::", "FPR8RegClass", ";", "break", ";", "case", "'h'", ":", "RC", "=", "&", "AArch64", "::", "FPR16RegClass", ";", "break", ";", "case", "'s'", ":", "RC", "=", "&", "AArch64", "::", "FPR32RegClass", ";", "break", ";", "case", "'d'", ":", "RC", "=", "&", "AArch64", "::", "FPR64RegClass", ";", "break", ";", "case", "'q'", ":", "RC", "=", "&", "AArch64", "::", "FPR128RegClass", ";", "break", ";", "case", "'z'", ":", "RC", "=", "&", "AArch64", "::", "ZPRRegClass", ";", "break", ";", "default", ":", "return", "true", ";", "}", "return", "printAsmRegInClass", "(", "MO", ",", "RC", ",", "false", ",", "O", ")", ";", "}", "printOperand", "(", "MI", ",", "OpNum", ",", "O", ")", ";", "return", "false", ";", "}", "}", "if", "(", "MO", ".", "isReg", "(", ")", ")", "{", "unsigned", "Reg", "=", "MO", ".", "getReg", "(", ")", ";", "if", "(", "AArch64", "::", "GPR32allRegClass", ".", "contains", "(", "Reg", ")", "||", "AArch64", "::", "GPR64allRegClass", ".", "contains", "(", "Reg", ")", ")", "return", "printAsmMRegister", "(", "MO", ",", "'x'", ",", "O", ")", ";", "bool", "hasAltName", ";", "const", "TargetRegisterClass", "*", "RegClass", ";", "if", "(", "AArch64", "::", "ZPRRegClass", ".", "contains", "(", "Reg", ")", ")", "{", "RegClass", "=", "&", "AArch64", "::", "ZPRRegClass", ";", "hasAltName", "=", "false", ";", "}", "else", "if", "(", "AArch64", "::", "PPRRegClass", ".", "contains", "(", "Reg", ")", ")", "{", "RegClass", "=", "&", "AArch64", "::", "PPRRegClass", ";", "hasAltName", "=", "false", ";", "}", "else", "{", "RegClass", "=", "&", "AArch64", "::", "FPR128RegClass", ";", "hasAltName", "=", "true", ";", "}", "return", "printAsmRegInClass", "(", "MO", ",", "RegClass", ",", "hasAltName", ",", "O", ")", ";", "}", "printOperand", "(", "MI", ",", "OpNum", ",", "O", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["PrintAsmOperand", "-", "Print", "out", "an", "operand", "for", "an", "inline", "asm", "expression", "."], "TS_V_token": ["AArch64", "AArch64", "0", "1", "0", "0", "0", "0", "0", "AArch64::WZR", "AArch64::XZR", "AArch64", "0", "AArch64::FPR8RegClass", "AArch64::FPR16RegClass", "AArch64::FPR32RegClass", "AArch64::FPR64RegClass", "AArch64::FPR128RegClass", "AArch64::ZPRRegClass", "AArch64::GPR32allRegClass", "AArch64::GPR64allRegClass", "AArch64::ZPRRegClass", "AArch64::ZPRRegClass", "AArch64::PPRRegClass", "AArch64::PPRRegClass", "AArch64::FPR128RegClass"], "File": "AArch64AsmPrinter47", "Func": "PrintAsmOperand", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 374, "Length": 471, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "AArch64TargetMachine", "::", "AArch64TargetMachine", "(", "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", ",", "bool", "LittleEndian", ")", ":", "LLVMTargetMachine", "(", "T", ",", "computeDataLayout", "(", "TT", ",", "Options", ".", "MCOptions", ",", "LittleEndian", ")", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "getEffectiveRelocModel", "(", "TT", ",", "RM", ")", ",", "getEffectiveCodeModel", "(", "TT", ",", "CM", ",", "JIT", ")", ",", "OL", ")", ",", "TLOF", "(", "createTLOF", "(", "getTargetTriple", "(", ")", ")", ")", ",", "isLittle", "(", "LittleEndian", ")", "{", "initAsmInfo", "(", ")", ";", "if", "(", "TT", ".", "isOSBinFormatMachO", "(", ")", ")", "{", "this", "->", "Options", ".", "TrapUnreachable", "=", "true", ";", "this", "->", "Options", ".", "NoTrapAfterNoreturn", "=", "true", ";", "}", "if", "(", "getOptLevel", "(", ")", "<=", "EnableGlobalISelAtO", ")", "setGlobalISel", "(", "true", ")", ";", "setMachineOutliner", "(", "true", ")", ";", "setSupportsDefaultOutlining", "(", "true", ")", ";", "}", ""], "natrual_language": ["Create", "an", "AArch64", "architecture", "model", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64"], "File": "AArch64TargetMachine25", "Func": "AArch64TargetMachine", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 375, "Length": 164, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "loongarch_print_operand_address", "(", "FILE", "*", "file", ",", "machine_mode", ",", "rtx", "x", ")", "{", "struct", "loongarch_address_info", "addr", ";", "if", "(", "loongarch_classify_address", "(", "&", "addr", ",", "x", ",", "word_mode", ",", "true", ")", ")", "switch", "(", "addr", ".", "type", ")", "{", "case", "ADDRESS_REG", ":", "fprintf", "(", "file", ",", "\"%s,\"", ",", "reg_names", "[", "REGNO", "(", "addr", ".", "reg", ")", "]", ")", ";", "loongarch_print_operand", "(", "file", ",", "addr", ".", "offset", ",", "0", ")", ";", "return", ";", "case", "ADDRESS_REG_REG", ":", "fprintf", "(", "file", ",", "\"%s,%s\"", ",", "reg_names", "[", "REGNO", "(", "addr", ".", "reg", ")", "]", ",", "reg_names", "[", "REGNO", "(", "addr", ".", "offset", ")", "]", ")", ";", "return", ";", "case", "ADDRESS_CONST_INT", ":", "fprintf", "(", "file", ",", "\"%s,\"", ",", "reg_names", "[", "GP_REG_FIRST", "]", ")", ";", "output_addr_const", "(", "file", ",", "x", ")", ";", "return", ";", "case", "ADDRESS_SYMBOLIC", ":", "output_addr_const", "(", "file", ",", "loongarch_strip_unspec_address", "(", "x", ")", ")", ";", "return", ";", "}", "if", "(", "CONST_INT_P", "(", "x", ")", ")", "output_addr_const", "(", "file", ",", "x", ")", ";", "else", "gcc_unreachable", "(", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_PRINT_OPERAND_ADDRESS", "."], "TS_V_token": ["loongarch", "\"%s,\"", "0", "\"%s,%s\"", "\"%s,\""], "File": "loongarch", "Func": "loongarch_print_operand_address", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 376, "Length": 164, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "gen_push", "(", "rtx", "arg", ")", "{", "struct", "machine_function", "*", "m", "=", "cfun", "->", "machine", ";", "if", "(", "m", "->", "fs", ".", "cfa_reg", "==", "stack_pointer_rtx", ")", "m", "->", "fs", ".", "cfa_offset", "+=", "UNITS_PER_WORD", ";", "m", "->", "fs", ".", "sp_offset", "+=", "UNITS_PER_WORD", ";", "if", "(", "REG_P", "(", "arg", ")", "&&", "GET_MODE", "(", "arg", ")", "!=", "word_mode", ")", "arg", "=", "gen_rtx_REG", "(", "word_mode", ",", "REGNO", "(", "arg", ")", ")", ";", "return", "gen_rtx_SET", "(", "gen_rtx_MEM", "(", "word_mode", ",", "gen_rtx_PRE_DEC", "(", "Pmode", ",", "stack_pointer_rtx", ")", ")", ",", "arg", ")", ";", "}", ""], "natrual_language": ["Code", "to", "generate", "prologue", "and", "epilogue", "sequences"], "TS_V_token": ["i386"], "File": "i3865", "Func": "gen_push", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 377, "Length": 88, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "{", "return", "\"OR1K Delay Slot Filler\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["OR1K", "\"OR1K Delay Slot Filler\""], "File": "OR1KDelaySlotFiller", "Func": "getPassName", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 378, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "pru_function_value", "(", "const_tree", "ret_type", ",", "const_tree", "fn", "ATTRIBUTE_UNUSED", ",", "bool", "outgoing", "ATTRIBUTE_UNUSED", ")", "{", "return", "gen_rtx_REG", "(", "TYPE_MODE", "(", "ret_type", ")", ",", "FIRST_RETVAL_REGNUM", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_FUNCTION_VALUE", "."], "TS_V_token": ["pru"], "File": "pru", "Func": "pru_function_value", "Target": "pru", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 379, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_print_operand_address", "(", "FILE", "*", "file", ",", "rtx", "x", ")", "{", "struct", "mips_address_info", "addr", ";", "if", "(", "mips_classify_address", "(", "&", "addr", ",", "x", ",", "word_mode", ",", "true", ")", ")", "switch", "(", "addr", ".", "type", ")", "{", "case", "ADDRESS_REG", ":", "mips_print_operand", "(", "file", ",", "addr", ".", "offset", ",", "0", ")", ";", "fprintf", "(", "file", ",", "\"(%s)\"", ",", "reg_names", "[", "REGNO", "(", "addr", ".", "reg", ")", "]", ")", ";", "return", ";", "case", "ADDRESS_LO_SUM", ":", "mips_print_operand_reloc", "(", "file", ",", "addr", ".", "offset", ",", "SYMBOL_CONTEXT_MEM", ",", "mips_lo_relocs", ")", ";", "fprintf", "(", "file", ",", "\"(%s)\"", ",", "reg_names", "[", "REGNO", "(", "addr", ".", "reg", ")", "]", ")", ";", "return", ";", "case", "ADDRESS_CONST_INT", ":", "output_addr_const", "(", "file", ",", "x", ")", ";", "fprintf", "(", "file", ",", "\"(%s)\"", ",", "reg_names", "[", "GP_REG_FIRST", "]", ")", ";", "return", ";", "case", "ADDRESS_SYMBOLIC", ":", "output_addr_const", "(", "file", ",", "mips_strip_unspec_address", "(", "x", ")", ")", ";", "return", ";", "}", "gcc_unreachable", "(", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_PRINT_OPERAND_ADDRESS", "."], "TS_V_token": ["mips", "0", "\"(%s)\"", "\"(%s)\"", "\"(%s)\""], "File": "mips4", "Func": "mips_print_operand_address", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 380, "Length": 150, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_save_callee_saves", "(", "machine_mode", "mode", ",", "HOST_WIDE_INT", "start_offset", ",", "unsigned", "start", ",", "unsigned", "limit", ",", "bool", "skip_wb", ")", "{", "rtx_insn", "*", "insn", ";", "rtx", "(", "*", "gen_mem_ref", ")", "(", "machine_mode", ",", "rtx", ")", "=", "(", "frame_pointer_needed", "?", "gen_frame_mem", ":", "gen_rtx_MEM", ")", ";", "unsigned", "regno", ";", "unsigned", "regno2", ";", "for", "(", "regno", "=", "aarch64_next_callee_save", "(", "start", ",", "limit", ")", ";", "regno", "<=", "limit", ";", "regno", "=", "aarch64_next_callee_save", "(", "regno", "+", "1", ",", "limit", ")", ")", "{", "rtx", "reg", ",", "mem", ";", "HOST_WIDE_INT", "offset", ";", "if", "(", "skip_wb", "&&", "(", "regno", "==", "cfun", "->", "machine", "->", "frame", ".", "wb_candidate1", "||", "regno", "==", "cfun", "->", "machine", "->", "frame", ".", "wb_candidate2", ")", ")", "continue", ";", "reg", "=", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "offset", "=", "start_offset", "+", "cfun", "->", "machine", "->", "frame", ".", "reg_offset", "[", "regno", "]", ";", "mem", "=", "gen_mem_ref", "(", "mode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ";", "regno2", "=", "aarch64_next_callee_save", "(", "regno", "+", "1", ",", "limit", ")", ";", "if", "(", "regno2", "<=", "limit", "&&", "(", "(", "cfun", "->", "machine", "->", "frame", ".", "reg_offset", "[", "regno", "]", "+", "UNITS_PER_WORD", ")", "==", "cfun", "->", "machine", "->", "frame", ".", "reg_offset", "[", "regno2", "]", ")", ")", "{", "rtx", "reg2", "=", "gen_rtx_REG", "(", "mode", ",", "regno2", ")", ";", "rtx", "mem2", ";", "offset", "=", "start_offset", "+", "cfun", "->", "machine", "->", "frame", ".", "reg_offset", "[", "regno2", "]", ";", "mem2", "=", "gen_mem_ref", "(", "mode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ";", "insn", "=", "emit_insn", "(", "aarch64_gen_store_pair", "(", "mode", ",", "mem", ",", "reg", ",", "mem2", ",", "reg2", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "XVECEXP", "(", "PATTERN", "(", "insn", ")", ",", "0", ",", "1", ")", ")", "=", "1", ";", "regno", "=", "regno2", ";", "}", "else", "insn", "=", "emit_move_insn", "(", "mem", ",", "reg", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "}", ""], "natrual_language": ["Emit", "code", "to", "save", "the", "callee-saved", "registers", "from", "register", "number", "START", "to", "LIMIT", "to", "the", "stack", "at", "the", "location", "starting", "at", "offset", "START_OFFSET", ",", "skipping", "any", "write-back", "candidates", "if", "SKIP_WB", "is", "true", "."], "TS_V_token": ["aarch64", "1", "1", "0", "1", "1", "1"], "File": "aarch642", "Func": "aarch64_save_callee_saves", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 381, "Length": 301, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "iq2000_va_start", "(", "tree", "valist", ",", "rtx", "nextarg", ")", "{", "int", "int_arg_words", ";", "int", "gpr_save_area_size", ";", "int_arg_words", "=", "crtl", "->", "args", ".", "info", ".", "arg_words", ";", "if", "(", "int_arg_words", "<", "8", ")", "gpr_save_area_size", "=", "(", "8", "-", "int_arg_words", ")", "*", "UNITS_PER_WORD", ";", "else", "gpr_save_area_size", "=", "0", ";", "nextarg", "=", "plus_constant", "(", "Pmode", ",", "nextarg", ",", "-", "gpr_save_area_size", ")", ";", "std_expand_builtin_va_start", "(", "valist", ",", "nextarg", ")", ";", "}", ""], "natrual_language": ["Implement", "va_start", "."], "TS_V_token": ["iq2000", "8", "8", "0"], "File": "iq2000", "Func": "iq2000_va_start", "Target": "iq2000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 382, "Length": 68, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ia64_register_move_cost", "(", "enum", "machine_mode", "mode", ",", "enum", "reg_class", "from", ",", "enum", "reg_class", "to", ")", "{", "if", "(", "to", "==", "ADDL_REGS", ")", "to", "=", "GR_REGS", ";", "if", "(", "from", "==", "ADDL_REGS", ")", "from", "=", "GR_REGS", ";", "if", "(", "from", "<", "to", ")", "{", "enum", "reg_class", "tmp", "=", "to", ";", "to", "=", "from", ",", "from", "=", "tmp", ";", "}", "if", "(", "mode", "==", "XFmode", "||", "mode", "==", "RFmode", ")", "{", "if", "(", "to", "!=", "GR_REGS", "||", "from", "!=", "GR_REGS", ")", "return", "MEMORY_MOVE_COST", "(", "mode", ",", "to", ",", "0", ")", ";", "else", "return", "3", ";", "}", "switch", "(", "to", ")", "{", "case", "PR_REGS", ":", "if", "(", "from", "==", "PR_REGS", ")", "return", "3", ";", "if", "(", "from", "!=", "GR_REGS", ")", "return", "MEMORY_MOVE_COST", "(", "mode", ",", "to", ",", "0", ")", ";", "break", ";", "case", "BR_REGS", ":", "if", "(", "from", "!=", "GR_REGS", "&&", "from", "!=", "GR_AND_BR_REGS", ")", "return", "MEMORY_MOVE_COST", "(", "mode", ",", "to", ",", "0", ")", ";", "break", ";", "case", "AR_I_REGS", ":", "case", "AR_M_REGS", ":", "if", "(", "from", "!=", "GR_REGS", ")", "return", "MEMORY_MOVE_COST", "(", "mode", ",", "to", ",", "0", ")", ";", "break", ";", "case", "GR_REGS", ":", "case", "FR_REGS", ":", "case", "FP_REGS", ":", "case", "GR_AND_FR_REGS", ":", "case", "GR_AND_BR_REGS", ":", "case", "ALL_REGS", ":", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "return", "2", ";", "}", ""], "natrual_language": ["Calulate", "the", "cost", "of", "moving", "data", "from", "a", "register", "in", "class", "FROM", "to", "one", "in", "class", "TO", ",", "using", "MODE", "."], "TS_V_token": ["ia64", "0", "3", "3", "0", "0", "0", "2"], "File": "ia643", "Func": "ia64_register_move_cost", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 383, "Length": 209, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Mips16FrameLowering", "::", "hasReservedCallFrame", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "true", ";", "}", ""], "natrual_language": ["hasReservedCallFrame", "-", "Under", "normal", "circumstances", ",", "when", "a", "frame", "pointer", "is", "not", "required", ",", "we", "reserve", "argument", "space", "for", "call", "sites", "in", "the", "function", "immediately", "on", "entry", "to", "the", "current", "function", "."], "TS_V_token": ["Mips", "Mips"], "File": "Mips16FrameLowering26", "Func": "hasReservedCallFrame", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 384, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mips_split_move_p", "(", "rtx", "dest", ",", "rtx", "src", ",", "enum", "mips_split_type", "split_type", ")", "{", "if", "(", "mips_mult_move_p", "(", "dest", ",", "src", ",", "split_type", ")", ")", "return", "false", ";", "unsigned", "int", "size", "=", "GET_MODE_SIZE", "(", "GET_MODE", "(", "dest", ")", ")", ";", "if", "(", "size", "==", "8", "&&", "FP_REG_RTX_P", "(", "src", ")", "&&", "FP_REG_RTX_P", "(", "dest", ")", ")", "return", "false", ";", "if", "(", "size", "==", "8", "&&", "ISA_HAS_LDC1_SDC1", ")", "{", "if", "(", "FP_REG_RTX_P", "(", "dest", ")", "&&", "MEM_P", "(", "src", ")", ")", "return", "false", ";", "if", "(", "FP_REG_RTX_P", "(", "src", ")", "&&", "MEM_P", "(", "dest", ")", ")", "return", "false", ";", "}", "if", "(", "MSA_SUPPORTED_MODE_P", "(", "GET_MODE", "(", "dest", ")", ")", ")", "return", "mips_split_128bit_move_p", "(", "dest", ",", "src", ")", ";", "return", "size", ">", "UNITS_PER_WORD", ";", "}", ""], "natrual_language": ["Return", "true", "if", "a", "move", "from", "SRC", "to", "DEST", "should", "be", "split", "into", "two", ".", "SPLIT_TYPE", "describes", "the", "split", "condition", "."], "TS_V_token": ["mips", "8", "8"], "File": "mips", "Func": "mips_split_move_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 385, "Length": 123, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "unsigned", "int", "execute", "(", "function", "*", ")", "{", "return", "mips_machine_reorg2", "(", ")", ";", "}", ""], "natrual_language": ["Main", "entry", "point", "for", "this", "pass", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "execute", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 386, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ix86_expand_fp_movcc", "(", "rtx", "operands", "[", "]", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "operands", "[", "0", "]", ")", ";", "enum", "rtx_code", "code", "=", "GET_CODE", "(", "operands", "[", "1", "]", ")", ";", "rtx", "tmp", ",", "compare_op", ";", "rtx", "op0", "=", "XEXP", "(", "operands", "[", "1", "]", ",", "0", ")", ";", "rtx", "op1", "=", "XEXP", "(", "operands", "[", "1", "]", ",", "1", ")", ";", "if", "(", "TARGET_SSE_MATH", "&&", "SSE_FLOAT_MODE_P", "(", "mode", ")", ")", "{", "machine_mode", "cmode", ";", "cmode", "=", "GET_MODE", "(", "op0", ")", ";", "if", "(", "cmode", "==", "VOIDmode", ")", "cmode", "=", "GET_MODE", "(", "op1", ")", ";", "if", "(", "cmode", "!=", "mode", ")", "return", "false", ";", "code", "=", "ix86_prepare_sse_fp_compare_args", "(", "operands", "[", "0", "]", ",", "code", ",", "&", "op0", ",", "&", "op1", ")", ";", "if", "(", "code", "==", "UNKNOWN", ")", "return", "false", ";", "if", "(", "ix86_expand_sse_fp_minmax", "(", "operands", "[", "0", "]", ",", "code", ",", "op0", ",", "op1", ",", "operands", "[", "2", "]", ",", "operands", "[", "3", "]", ")", ")", "return", "true", ";", "tmp", "=", "ix86_expand_sse_cmp", "(", "operands", "[", "0", "]", ",", "code", ",", "op0", ",", "op1", ",", "operands", "[", "2", "]", ",", "operands", "[", "3", "]", ")", ";", "ix86_expand_sse_movcc", "(", "operands", "[", "0", "]", ",", "tmp", ",", "operands", "[", "2", "]", ",", "operands", "[", "3", "]", ")", ";", "return", "true", ";", "}", "if", "(", "GET_MODE", "(", "op0", ")", "==", "TImode", "||", "(", "GET_MODE", "(", "op0", ")", "==", "DImode", "&&", "!", "TARGET_64BIT", ")", ")", "return", "false", ";", "compare_op", "=", "ix86_expand_compare", "(", "code", ",", "op0", ",", "op1", ")", ";", "if", "(", "!", "fcmov_comparison_operator", "(", "compare_op", ",", "VOIDmode", ")", ")", "{", "tmp", "=", "gen_reg_rtx", "(", "QImode", ")", ";", "ix86_expand_setcc", "(", "tmp", ",", "code", ",", "op0", ",", "op1", ")", ";", "compare_op", "=", "ix86_expand_compare", "(", "NE", ",", "tmp", ",", "const0_rtx", ")", ";", "}", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "operands", "[", "0", "]", ",", "gen_rtx_IF_THEN_ELSE", "(", "mode", ",", "compare_op", ",", "operands", "[", "2", "]", ",", "operands", "[", "3", "]", ")", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Expand", "a", "floating-point", "conditional", "move", ".", "Return", "true", "if", "successful", "."], "TS_V_token": ["i386", "0", "1", "1", "0", "1", "1", "0", "0", "2", "3", "0", "2", "3", "0", "2", "3", "0", "2", "3"], "File": "i3864", "Func": "ix86_expand_fp_movcc", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 387, "Length": 321, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "nds32_interrupt_attribute_parse_string", "(", "const", "char", "*", "original_str", ",", "const", "char", "*", "func_name", ",", "unsigned", "int", "s_level", ")", "{", "char", "target_str", "[", "100", "]", ";", "enum", "nds32_isr_save_reg", "save_reg", ";", "enum", "nds32_isr_nested_type", "nested_type", ";", "char", "*", "save_all_regs_str", ",", "*", "save_caller_regs_str", ";", "char", "*", "nested_str", ",", "*", "not_nested_str", ",", "*", "ready_nested_str", ",", "*", "critical_str", ";", "char", "*", "id_str", ",", "*", "value_str", ";", "strcpy", "(", "target_str", ",", "original_str", ")", ";", "save_all_regs_str", "=", "strstr", "(", "target_str", ",", "\"save_all_regs\"", ")", ";", "save_caller_regs_str", "=", "strstr", "(", "target_str", ",", "\"save_caller_regs\"", ")", ";", "if", "(", "save_all_regs_str", ")", "save_reg", "=", "NDS32_SAVE_ALL", ";", "else", "if", "(", "save_caller_regs_str", ")", "save_reg", "=", "NDS32_PARTIAL_SAVE", ";", "else", "save_reg", "=", "NDS32_PARTIAL_SAVE", ";", "nested_str", "=", "strstr", "(", "target_str", ",", "\"nested\"", ")", ";", "not_nested_str", "=", "strstr", "(", "target_str", ",", "\"not_nested\"", ")", ";", "ready_nested_str", "=", "strstr", "(", "target_str", ",", "\"ready_nested\"", ")", ";", "critical_str", "=", "strstr", "(", "target_str", ",", "\"critical\"", ")", ";", "if", "(", "not_nested_str", ")", "nested_type", "=", "NDS32_NOT_NESTED", ";", "else", "if", "(", "ready_nested_str", ")", "nested_type", "=", "NDS32_NESTED_READY", ";", "else", "if", "(", "nested_str", ")", "nested_type", "=", "NDS32_NESTED", ";", "else", "if", "(", "critical_str", ")", "nested_type", "=", "NDS32_CRITICAL", ";", "else", "nested_type", "=", "NDS32_NOT_NESTED", ";", "id_str", "=", "strstr", "(", "target_str", ",", "\"id=\"", ")", ";", "if", "(", "id_str", "==", "NULL", ")", "error", "(", "\"require id argument in the string\"", ")", ";", "id_str", "=", "strtok", "(", "id_str", ",", "\"=\"", ")", ";", "value_str", "=", "strtok", "(", "NULL", ",", "\";\"", ")", ";", "value_str", "=", "strtok", "(", "value_str", ",", "\",\"", ")", ";", "while", "(", "value_str", "!=", "NULL", ")", "{", "int", "i", ";", "i", "=", "atoi", "(", "value_str", ")", ";", "i", "=", "i", "+", "9", ";", "if", "(", "i", "<", "9", "||", "i", ">", "72", ")", "error", "(", "\"invalid id value for interrupt attribute\"", ")", ";", "nds32_isr_vectors", "[", "i", "]", ".", "category", "=", "NDS32_ISR_INTERRUPT", ";", "strcpy", "(", "nds32_isr_vectors", "[", "i", "]", ".", "func_name", ",", "func_name", ")", ";", "nds32_isr_vectors", "[", "i", "]", ".", "save_reg", "=", "save_reg", ";", "nds32_isr_vectors", "[", "i", "]", ".", "nested_type", "=", "nested_type", ";", "nds32_isr_vectors", "[", "i", "]", ".", "security_level", "=", "s_level", ";", "value_str", "=", "strtok", "(", "NULL", ",", "\",\"", ")", ";", "}", "return", ";", "}", ""], "natrual_language": ["FIXME", ":", "FOR", "BACKWARD", "COMPATIBILITY", ",", "we", "need", "to", "support", "following", "patterns", ":", "__attribute__", "(", "(", "interrupt", "(", "``", "XXX", ";", "YYY", ";", "id=ZZZ", "''", ")", ")", ")", "__attribute__", "(", "(", "exception", "(", "``", "XXX", ";", "YYY", ";", "id=ZZZ", "''", ")", ")", ")", "__attribute__", "(", "(", "reset", "(", "``", "vectors=XXX", ";", "nmi_func=YYY", ";", "warm_func=ZZZ", "''", ")", ")", ")", "We", "provide", "several", "functions", "to", "parse", "the", "strings", "."], "TS_V_token": ["nds32", "100", "\"save_all_regs\"", "\"save_caller_regs\"", "\"nested\"", "\"not_nested\"", "\"ready_nested\"", "\"critical\"", "\"id=\"", "\"require id argument in the string\"", "\"=\"", "\";\"", "\",\"", "9", "9", "72", "\"invalid id value for interrupt attribute\"", "\",\""], "File": "nds32-isr", "Func": "nds32_interrupt_attribute_parse_string", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 388, "Length": 329, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "swap_endian_selector_for_mode", "(", "machine_mode", "mode", ")", "{", "unsigned", "int", "swap1", "[", "16", "]", "=", "{", "15", ",", "14", ",", "13", ",", "12", ",", "11", ",", "10", ",", "9", ",", "8", ",", "7", ",", "6", ",", "5", ",", "4", ",", "3", ",", "2", ",", "1", ",", "0", "}", ";", "unsigned", "int", "swap2", "[", "16", "]", "=", "{", "7", ",", "6", ",", "5", ",", "4", ",", "3", ",", "2", ",", "1", ",", "0", ",", "15", ",", "14", ",", "13", ",", "12", ",", "11", ",", "10", ",", "9", ",", "8", "}", ";", "unsigned", "int", "swap4", "[", "16", "]", "=", "{", "3", ",", "2", ",", "1", ",", "0", ",", "7", ",", "6", ",", "5", ",", "4", ",", "11", ",", "10", ",", "9", ",", "8", ",", "15", ",", "14", ",", "13", ",", "12", "}", ";", "unsigned", "int", "swap8", "[", "16", "]", "=", "{", "1", ",", "0", ",", "3", ",", "2", ",", "5", ",", "4", ",", "7", ",", "6", ",", "9", ",", "8", ",", "11", ",", "10", ",", "13", ",", "12", ",", "15", ",", "14", "}", ";", "unsigned", "int", "*", "swaparray", ",", "i", ";", "rtx", "perm", "[", "16", "]", ";", "switch", "(", "mode", ")", "{", "case", "E_V1TImode", ":", "swaparray", "=", "swap1", ";", "break", ";", "case", "E_V2DFmode", ":", "case", "E_V2DImode", ":", "swaparray", "=", "swap2", ";", "break", ";", "case", "E_V4SFmode", ":", "case", "E_V4SImode", ":", "swaparray", "=", "swap4", ";", "break", ";", "case", "E_V8HImode", ":", "swaparray", "=", "swap8", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "for", "(", "i", "=", "0", ";", "i", "<", "16", ";", "++", "i", ")", "if", "(", "BYTES_BIG_ENDIAN", ")", "perm", "[", "i", "]", "=", "GEN_INT", "(", "swaparray", "[", "i", "]", ")", ";", "else", "perm", "[", "i", "]", "=", "GEN_INT", "(", "~", "swaparray", "[", "i", "]", "&", "0x0000001f", ")", ";", "return", "force_reg", "(", "V16QImode", ",", "gen_rtx_CONST_VECTOR", "(", "V16QImode", ",", "gen_rtvec_v", "(", "16", ",", "perm", ")", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "permutation", "index", "for", "the", "swapping", "on", "the", "given", "vector", "mode", ".", "Note", "that", "the", "permutation", "index", "is", "correspondingly", "generated", "by", "endianness", ",", "it", "should", "be", "used", "by", "direct", "vector", "permutation", "."], "TS_V_token": ["rs6000", "16", "15", "14", "13", "12", "11", "10", "9", "8", "7", "6", "5", "4", "3", "2", "1", "0", "16", "7", "6", "5", "4", "3", "2", "1", "0", "15", "14", "13", "12", "11", "10", "9", "8", "16", "3", "2", "1", "0", "7", "6", "5", "4", "11", "10", "9", "8", "15", "14", "13", "12", "16", "1", "0", "3", "2", "5", "4", "7", "6", "9", "8", "11", "10", "13", "12", "15", "14", "16", "0", "16", "0x0000001f", "16"], "File": "rs6000-call1", "Func": "swap_endian_selector_for_mode", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 389, "Length": 304, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCPassConfig", "::", "addPreEmitPass", "(", ")", "{", "PM", "->", "add", "(", "createPPCBranchSelectionPass", "(", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["PowerPC", "PPC", "PPC"], "File": "PPCTargetMachine62", "Func": "addPreEmitPass", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 390, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "A57ChainingConstraint", "::", "apply", "(", "PBQPRAGraph", "&", "G", ")", "{", "const", "MachineFunction", "&", "MF", "=", "G", ".", "getMetadata", "(", ")", ".", "MF", ";", "LiveIntervals", "&", "LIs", "=", "G", ".", "getMetadata", "(", ")", ".", "LIS", ";", "TRI", "=", "MF", ".", "getTarget", "(", ")", ".", "getSubtargetImpl", "(", ")", "->", "getRegisterInfo", "(", ")", ";", "DEBUG", "(", "MF", ".", "dump", "(", ")", ")", ";", "for", "(", "const", "auto", "&", "MBB", ":", "MF", ")", "{", "Chains", ".", "clear", "(", ")", ";", "for", "(", "const", "auto", "&", "MI", ":", "MBB", ")", "{", "for", "(", "auto", "r", ":", "Chains", ")", "{", "SmallVector", "<", "unsigned", ",", "8", ">", "toDel", ";", "if", "(", "regJustKilledBefore", "(", "LIs", ",", "r", ",", "MI", ")", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Killing chain \"", "<<", "PrintReg", "(", "r", ",", "TRI", ")", "<<", "\" at \"", ";", "MI", ".", "print", "(", "dbgs", "(", ")", ")", ";", ")", ";", "toDel", ".", "push_back", "(", "r", ")", ";", "}", "while", "(", "!", "toDel", ".", "empty", "(", ")", ")", "{", "Chains", ".", "remove", "(", "toDel", ".", "back", "(", ")", ")", ";", "toDel", ".", "pop_back", "(", ")", ";", "}", "}", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "case", "AArch64", "::", "FMSUBSrrr", ":", "case", "AArch64", "::", "FMADDSrrr", ":", "case", "AArch64", "::", "FNMSUBSrrr", ":", "case", "AArch64", "::", "FNMADDSrrr", ":", "case", "AArch64", "::", "FMSUBDrrr", ":", "case", "AArch64", "::", "FMADDDrrr", ":", "case", "AArch64", "::", "FNMSUBDrrr", ":", "case", "AArch64", "::", "FNMADDDrrr", ":", "{", "unsigned", "Rd", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "unsigned", "Ra", "=", "MI", ".", "getOperand", "(", "3", ")", ".", "getReg", "(", ")", ";", "if", "(", "addIntraChainConstraint", "(", "G", ",", "Rd", ",", "Ra", ")", ")", "addInterChainConstraint", "(", "G", ",", "Rd", ",", "Ra", ")", ";", "break", ";", "}", "case", "AArch64", "::", "FMLAv2f32", ":", "case", "AArch64", "::", "FMLSv2f32", ":", "{", "unsigned", "Rd", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "addInterChainConstraint", "(", "G", ",", "Rd", ",", "Rd", ")", ";", "break", ";", "}", "default", ":", "break", ";", "}", "}", "}", "}", ""], "natrual_language": ["Apply", "the", "profile", "inference", "algorithm", "for", "a", "given", "function", "."], "TS_V_token": ["AArch64", "8", "\"Killing chain \"", "\" at \"", "AArch64::FMSUBSrrr", "AArch64::FMADDSrrr", "AArch64::FNMSUBSrrr", "AArch64::FNMADDSrrr", "AArch64::FMSUBDrrr", "AArch64::FMADDDrrr", "AArch64::FNMSUBDrrr", "AArch64::FNMADDDrrr", "0", "3", "AArch64::FMLAv2f32", "AArch64::FMLSv2f32", "0"], "File": "AArch64PBQPRegAlloc12", "Func": "apply", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 391, "Length": 325, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "sparc_handle_option", "(", "size_t", "code", ",", "const", "char", "*", "arg", ",", "int", "value", "ATTRIBUTE_UNUSED", ")", "{", "switch", "(", "code", ")", "{", "case", "OPT_mfpu", ":", "case", "OPT_mhard_float", ":", "case", "OPT_msoft_float", ":", "fpu_option_set", "=", "true", ";", "break", ";", "case", "OPT_mcpu_", ":", "sparc_select", "[", "1", "]", ".", "string", "=", "arg", ";", "break", ";", "case", "OPT_mtune_", ":", "sparc_select", "[", "2", "]", ".", "string", "=", "arg", ";", "break", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Implement", "TARGET_HANDLE_OPTION", "."], "TS_V_token": ["sparc", "1", "2"], "File": "sparc3", "Func": "sparc_handle_option", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 392, "Length": 70, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "uint16_t", "*", "lookup", "(", "unsigned", "opcode", ",", "unsigned", "domain", ")", "{", "for", "(", "const", "uint16_t", "(", "&", "Row", ")", "[", "3", "]", ":", "ReplaceableInstrs", ")", "if", "(", "Row", "[", "domain", "-", "1", "]", "==", "opcode", ")", "return", "Row", ";", "return", "nullptr", ";", "}", ""], "natrual_language": ["This", "method", "finds", "the", "value", "with", "the", "given", "Name", "in", "the", "the", "symbol", "table", "."], "TS_V_token": ["X86", "3", "1"], "File": "X86InstrInfo (2)1", "Func": "lookup", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 393, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aapcs_vfp_is_call_or_return_candidate", "(", "enum", "arm_pcs", "pcs_variant", ",", "machine_mode", "mode", ",", "const_tree", "type", ",", "machine_mode", "*", "base_mode", ",", "int", "*", "count", ")", "{", "machine_mode", "new_mode", "=", "VOIDmode", ";", "if", "(", "type", ")", "{", "int", "ag_count", "=", "aapcs_vfp_sub_candidate", "(", "type", ",", "&", "new_mode", ")", ";", "if", "(", "ag_count", ">", "0", "&&", "ag_count", "<=", "4", ")", "*", "count", "=", "ag_count", ";", "else", "return", "false", ";", "}", "else", "if", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_FLOAT", "||", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_VECTOR_INT", "||", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_VECTOR_FLOAT", ")", "{", "*", "count", "=", "1", ";", "new_mode", "=", "mode", ";", "}", "else", "if", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_COMPLEX_FLOAT", ")", "{", "*", "count", "=", "2", ";", "new_mode", "=", "(", "mode", "==", "DCmode", "?", "DFmode", ":", "SFmode", ")", ";", "}", "else", "return", "false", ";", "if", "(", "!", "use_vfp_abi", "(", "pcs_variant", ",", "ARM_NUM_REGS", "(", "new_mode", ")", ">", "1", ")", ")", "return", "false", ";", "*", "base_mode", "=", "new_mode", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "an", "argument", "whose", "type", "is", "TYPE", ",", "or", "mode", "is", "MODE", ",", "is", "suitable", "for", "passing", "or", "returning", "in", "VFP", "registers", "for", "the", "PCS", "variant", "selected", ".", "If", "it", "is", ",", "then", "*", "BASE_MODE", "is", "updated", "to", "contain", "a", "machine", "mode", "describing", "each", "element", "of", "the", "argument", "'s", "type", "and", "*", "COUNT", "to", "hold", "the", "number", "of", "such", "elements", "."], "TS_V_token": ["arm", "0", "4", "1", "2", "1"], "File": "arm4", "Func": "aapcs_vfp_is_call_or_return_candidate", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 394, "Length": 159, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64TargetLowering", "::", "isZExtFree", "(", "SDValue", "Val", ",", "EVT", "VT2", ")", "const", "{", "EVT", "VT1", "=", "Val", ".", "getValueType", "(", ")", ";", "if", "(", "isZExtFree", "(", "VT1", ",", "VT2", ")", ")", "{", "return", "true", ";", "}", "if", "(", "Val", ".", "getOpcode", "(", ")", "!=", "ISD", "::", "LOAD", ")", "return", "false", ";", "return", "(", "VT1", ".", "isSimple", "(", ")", "&&", "VT1", ".", "isInteger", "(", ")", "&&", "VT2", ".", "isSimple", "(", ")", "&&", "VT2", ".", "isInteger", "(", ")", "&&", "VT1", ".", "getSizeInBits", "(", ")", "<=", "32", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "zero-extending", "the", "specific", "node", "Val", "to", "type", "VT2", "is", "free", "(", "either", "because", "it", "'s", "implicitly", "zero-extended", "such", "as", "ARM", "ldrb", "/", "ldrh", "or", "because", "it", "'s", "folded", "such", "as", "X86", "zero-extending", "loads", ")", "."], "TS_V_token": ["AArch64", "AArch64", "ISD::LOAD", "32"], "File": "AArch64ISelLowering109", "Func": "isZExtFree", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 395, "Length": 87, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsTargetLowering", "::", "getNumRegistersForCallingConv", "(", "LLVMContext", "&", "Context", ",", "CallingConv", "::", "ID", "CC", ",", "EVT", "VT", ")", "const", "{", "if", "(", "VT", ".", "isVector", "(", ")", ")", "return", "std", "::", "max", "(", "(", "VT", ".", "getSizeInBits", "(", ")", "/", "(", "Subtarget", ".", "isABI_O32", "(", ")", "?", "32", ":", "64", ")", ")", ",", "1U", ")", ";", "return", "MipsTargetLowering", "::", "getNumRegisters", "(", "Context", ",", "VT", ")", ";", "}", ""], "natrual_language": ["Certain", "targets", "require", "unusual", "breakdowns", "of", "certain", "types", "."], "TS_V_token": ["Mips", "Mips", "32", "64", "1U", "Mips"], "File": "MipsISelLowering116", "Func": "getNumRegistersForCallingConv", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 396, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "rs6000_fold_builtin", "(", "tree", "fndecl", ",", "int", "n_args", "ATTRIBUTE_UNUSED", ",", "tree", "*", "args", ",", "bool", "ignore", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "DECL_BUILT_IN_CLASS", "(", "fndecl", ")", "==", "BUILT_IN_MD", ")", "{", "enum", "rs6000_builtins", "fn_code", "=", "(", "enum", "rs6000_builtins", ")", "DECL_FUNCTION_CODE", "(", "fndecl", ")", ";", "switch", "(", "fn_code", ")", "{", "case", "RS6000_BUILTIN_NANQ", ":", "case", "RS6000_BUILTIN_NANSQ", ":", "{", "tree", "type", "=", "TREE_TYPE", "(", "TREE_TYPE", "(", "fndecl", ")", ")", ";", "const", "char", "*", "str", "=", "c_getstr", "(", "*", "args", ")", ";", "int", "quiet", "=", "fn_code", "==", "RS6000_BUILTIN_NANQ", ";", "REAL_VALUE_TYPE", "real", ";", "if", "(", "str", "&&", "real_nan", "(", "&", "real", ",", "str", ",", "quiet", ",", "TYPE_MODE", "(", "type", ")", ")", ")", "return", "build_real", "(", "type", ",", "real", ")", ";", "return", "NULL_TREE", ";", "}", "case", "RS6000_BUILTIN_INFQ", ":", "case", "RS6000_BUILTIN_HUGE_VALQ", ":", "{", "tree", "type", "=", "TREE_TYPE", "(", "TREE_TYPE", "(", "fndecl", ")", ")", ";", "REAL_VALUE_TYPE", "inf", ";", "real_inf", "(", "&", "inf", ")", ";", "return", "build_real", "(", "type", ",", "inf", ")", ";", "}", "default", ":", "break", ";", "}", "}", "return", "SUBTARGET_FOLD_BUILTIN", "(", "fndecl", ",", "n_args", ",", "args", ",", "ignore", ")", ";", "return", "NULL_TREE", ";", "}", ""], "natrual_language": ["Target", "hook", "for", "early", "folding", "of", "built-ins", ",", "shamelessly", "stolen", "from", "ia64.cc", "."], "TS_V_token": ["rs6000"], "File": "rs60006", "Func": "rs6000_fold_builtin", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 397, "Length": 176, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64AsmParser", "::", "ParseDirective", "(", "AsmToken", "DirectiveID", ")", "{", "const", "MCObjectFileInfo", "::", "Environment", "Format", "=", "getContext", "(", ")", ".", "getObjectFileInfo", "(", ")", "->", "getObjectFileType", "(", ")", ";", "bool", "IsMachO", "=", "Format", "==", "MCObjectFileInfo", "::", "IsMachO", ";", "bool", "IsCOFF", "=", "Format", "==", "MCObjectFileInfo", "::", "IsCOFF", ";", "StringRef", "IDVal", "=", "DirectiveID", ".", "getIdentifier", "(", ")", ";", "SMLoc", "Loc", "=", "DirectiveID", ".", "getLoc", "(", ")", ";", "if", "(", "IDVal", "==", "\".arch\"", ")", "return", "parseDirectiveArch", "(", "Loc", ")", ";", "if", "(", "IDVal", "==", "\".cpu\"", ")", "return", "parseDirectiveCPU", "(", "Loc", ")", ";", "if", "(", "IDVal", "==", "\".hword\"", ")", "return", "parseDirectiveWord", "(", "2", ",", "Loc", ")", ";", "if", "(", "IDVal", "==", "\".word\"", ")", "return", "parseDirectiveWord", "(", "4", ",", "Loc", ")", ";", "if", "(", "IDVal", "==", "\".xword\"", ")", "return", "parseDirectiveWord", "(", "8", ",", "Loc", ")", ";", "if", "(", "IDVal", "==", "\".tlsdesccall\"", ")", "return", "parseDirectiveTLSDescCall", "(", "Loc", ")", ";", "if", "(", "IDVal", "==", "\".ltorg\"", "||", "IDVal", "==", "\".pool\"", ")", "return", "parseDirectiveLtorg", "(", "Loc", ")", ";", "if", "(", "IDVal", "==", "\".unreq\"", ")", "return", "parseDirectiveUnreq", "(", "Loc", ")", ";", "if", "(", "!", "IsMachO", "&&", "!", "IsCOFF", ")", "{", "if", "(", "IDVal", "==", "\".inst\"", ")", "return", "parseDirectiveInst", "(", "Loc", ")", ";", "}", "return", "parseDirectiveLOH", "(", "IDVal", ",", "Loc", ")", ";", "}", ""], "natrual_language": ["ParseDirective", "-", "Parse", "a", "target", "specific", "assembler", "directive", "This", "method", "is", "deprecated", ",", "use", "'parseDirective", "'", "instead", "."], "TS_V_token": ["AArch64", "AArch64", "\".arch\"", "\".cpu\"", "\".hword\"", "2", "\".word\"", "4", "\".xword\"", "8", "\".tlsdesccall\"", "\".ltorg\"", "\".pool\"", "\".unreq\"", "\".inst\""], "File": "AArch64AsmParser5", "Func": "ParseDirective", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 398, "Length": 200, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDNode", "*", "PPCDAGToDAGISel", "::", "getGlobalBaseReg", "(", ")", "{", "if", "(", "!", "GlobalBaseReg", ")", "{", "const", "TargetInstrInfo", "&", "TII", "=", "*", "PPCSubTarget", "->", "getInstrInfo", "(", ")", ";", "MachineBasicBlock", "&", "FirstMBB", "=", "MF", "->", "front", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "FirstMBB", ".", "begin", "(", ")", ";", "const", "Module", "*", "M", "=", "MF", "->", "getFunction", "(", ")", "->", "getParent", "(", ")", ";", "DebugLoc", "dl", ";", "if", "(", "PPCLowering", "->", "getPointerTy", "(", "CurDAG", "->", "getDataLayout", "(", ")", ")", "==", "MVT", "::", "i32", ")", "{", "if", "(", "PPCSubTarget", "->", "isTargetELF", "(", ")", ")", "{", "GlobalBaseReg", "=", "PPC", "::", "R30", ";", "if", "(", "M", "->", "getPICLevel", "(", ")", "==", "PICLevel", "::", "SmallPIC", ")", "{", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "MoveGOTtoLR", ")", ")", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "MFLR", ")", ",", "GlobalBaseReg", ")", ";", "MF", "->", "getInfo", "<", "PPCFunctionInfo", ">", "(", ")", "->", "setUsesPICBase", "(", "true", ")", ";", "}", "else", "{", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "MovePCtoLR", ")", ")", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "MFLR", ")", ",", "GlobalBaseReg", ")", ";", "unsigned", "TempReg", "=", "RegInfo", "->", "createVirtualRegister", "(", "&", "PPC", "::", "GPRCRegClass", ")", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "UpdateGBR", ")", ",", "GlobalBaseReg", ")", ".", "addReg", "(", "TempReg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "GlobalBaseReg", ")", ";", "MF", "->", "getInfo", "<", "PPCFunctionInfo", ">", "(", ")", "->", "setUsesPICBase", "(", "true", ")", ";", "}", "}", "else", "{", "GlobalBaseReg", "=", "RegInfo", "->", "createVirtualRegister", "(", "&", "PPC", "::", "GPRC_NOR0RegClass", ")", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "MovePCtoLR", ")", ")", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "MFLR", ")", ",", "GlobalBaseReg", ")", ";", "}", "}", "else", "{", "GlobalBaseReg", "=", "RegInfo", "->", "createVirtualRegister", "(", "&", "PPC", "::", "G8RC_NOX0RegClass", ")", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "MovePCtoLR8", ")", ")", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "MFLR8", ")", ",", "GlobalBaseReg", ")", ";", "}", "}", "return", "CurDAG", "->", "getRegister", "(", "GlobalBaseReg", ",", "PPCLowering", "->", "getPointerTy", "(", "CurDAG", "->", "getDataLayout", "(", ")", ")", ")", ".", "getNode", "(", ")", ";", "}", ""], "natrual_language": ["getGlobalBaseReg", "-", "Return", "a", "virtual", "register", "initialized", "with", "the", "the", "global", "base", "register", "value", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "MVT::i32", "PPC", "PPC::R30", "PPC::MoveGOTtoLR", "PPC::MFLR", "PPC", "PPC::MovePCtoLR", "PPC::MFLR", "PPC::GPRCRegClass", "PPC::UpdateGBR", "PPC", "PPC::GPRC_NOR0RegClass", "PPC::MovePCtoLR", "PPC::MFLR", "PPC::G8RC_NOX0RegClass", "PPC::MovePCtoLR8", "PPC::MFLR8", "PPC"], "File": "PPCISelDAGToDAG6", "Func": "getGlobalBaseReg", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 399, "Length": 399, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86FrameLowering", "::", "assignCalleeSavedSpillSlots", "(", "MachineFunction", "&", "MF", ",", "const", "TargetRegisterInfo", "*", "TRI", ",", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ")", "const", "{", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "X86MachineFunctionInfo", "*", "X86FI", "=", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", ";", "unsigned", "CalleeSavedFrameSize", "=", "0", ";", "int", "SpillSlotOffset", "=", "getOffsetOfLocalArea", "(", ")", "+", "X86FI", "->", "getTCReturnAddrDelta", "(", ")", ";", "if", "(", "hasFP", "(", "MF", ")", ")", "{", "SpillSlotOffset", "-=", "SlotSize", ";", "MFI", ".", "CreateFixedSpillStackObject", "(", "SlotSize", ",", "SpillSlotOffset", ")", ";", "unsigned", "FPReg", "=", "TRI", "->", "getFrameRegister", "(", "MF", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "CSI", ".", "size", "(", ")", ";", "++", "i", ")", "{", "if", "(", "TRI", "->", "regsOverlap", "(", "CSI", "[", "i", "]", ".", "getReg", "(", ")", ",", "FPReg", ")", ")", "{", "CSI", ".", "erase", "(", "CSI", ".", "begin", "(", ")", "+", "i", ")", ";", "break", ";", "}", "}", "}", "for", "(", "unsigned", "i", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "0", ";", "--", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "-", "1", "]", ".", "getReg", "(", ")", ";", "if", "(", "!", "X86", "::", "GR64RegClass", ".", "contains", "(", "Reg", ")", "&&", "!", "X86", "::", "GR32RegClass", ".", "contains", "(", "Reg", ")", ")", "continue", ";", "SpillSlotOffset", "-=", "SlotSize", ";", "CalleeSavedFrameSize", "+=", "SlotSize", ";", "int", "SlotIndex", "=", "MFI", ".", "CreateFixedSpillStackObject", "(", "SlotSize", ",", "SpillSlotOffset", ")", ";", "CSI", "[", "i", "-", "1", "]", ".", "setFrameIdx", "(", "SlotIndex", ")", ";", "}", "X86FI", "->", "setCalleeSavedFrameSize", "(", "CalleeSavedFrameSize", ")", ";", "for", "(", "unsigned", "i", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "0", ";", "--", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "-", "1", "]", ".", "getReg", "(", ")", ";", "if", "(", "X86", "::", "GR64RegClass", ".", "contains", "(", "Reg", ")", "||", "X86", "::", "GR32RegClass", ".", "contains", "(", "Reg", ")", ")", "continue", ";", "const", "TargetRegisterClass", "*", "RC", "=", "TRI", "->", "getMinimalPhysRegClass", "(", "Reg", ")", ";", "SpillSlotOffset", "-=", "std", "::", "abs", "(", "SpillSlotOffset", ")", "%", "RC", "->", "getAlignment", "(", ")", ";", "SpillSlotOffset", "-=", "RC", "->", "getSize", "(", ")", ";", "int", "SlotIndex", "=", "MFI", ".", "CreateFixedSpillStackObject", "(", "RC", "->", "getSize", "(", ")", ",", "SpillSlotOffset", ")", ";", "CSI", "[", "i", "-", "1", "]", ".", "setFrameIdx", "(", "SlotIndex", ")", ";", "MFI", ".", "ensureMaxAlignment", "(", "RC", "->", "getAlignment", "(", ")", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["This", "function", "will", "assign", "callee", "saved", "gprs", "to", "volatile", "vector", "registers", "for", "prologue", "spills", "when", "applicable", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "0", "X86", "0", "0", "1", "X86::GR64RegClass", "X86::GR32RegClass", "1", "X86", "0", "1", "X86::GR64RegClass", "X86::GR32RegClass", "1"], "File": "X86FrameLowering102", "Func": "assignCalleeSavedSpillSlots", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 400, "Length": 384, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "reg_unused_after", "(", "rtx", "reg", ",", "rtx_insn", "*", "insn", ")", "{", "rtx", "set", "=", "single_set", "(", "insn", ")", ";", "if", "(", "set", "&&", "!", "MEM_P", "(", "SET_DEST", "(", "set", ")", ")", "&&", "reg_overlap_mentioned_p", "(", "reg", ",", "SET_DEST", "(", "set", ")", ")", ")", "return", "true", ";", "while", "(", "(", "insn", "=", "NEXT_INSN", "(", "insn", ")", ")", ")", "{", "if", "(", "!", "INSN_P", "(", "insn", ")", ")", "continue", ";", "rtx_code", "code", "=", "GET_CODE", "(", "insn", ")", ";", "if", "(", "code", "==", "CODE_LABEL", ")", "return", "1", ";", "if", "(", "code", "==", "JUMP_INSN", ")", "return", "false", ";", "else", "if", "(", "code", "==", "INSN", "&&", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "==", "SEQUENCE", ")", "{", "rtx_sequence", "*", "seq", "=", "as_a", "<", "rtx_sequence", "*", ">", "(", "PATTERN", "(", "insn", ")", ")", ";", "bool", "retval", "=", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "seq", "->", "len", "(", ")", ";", "i", "++", ")", "{", "rtx_insn", "*", "this_insn", "=", "seq", "->", "insn", "(", "i", ")", ";", "rtx", "set", "=", "single_set", "(", "this_insn", ")", ";", "if", "(", "CALL_P", "(", "this_insn", ")", ")", "code", "=", "CALL_INSN", ";", "else", "if", "(", "JUMP_P", "(", "this_insn", ")", ")", "{", "if", "(", "INSN_ANNULLED_BRANCH_P", "(", "this_insn", ")", ")", "return", "false", ";", "code", "=", "JUMP_INSN", ";", "}", "if", "(", "set", "&&", "reg_overlap_mentioned_p", "(", "reg", ",", "SET_SRC", "(", "set", ")", ")", ")", "return", "false", ";", "if", "(", "set", "&&", "reg_overlap_mentioned_p", "(", "reg", ",", "SET_DEST", "(", "set", ")", ")", ")", "{", "if", "(", "!", "MEM_P", "(", "SET_DEST", "(", "set", ")", ")", ")", "retval", "=", "true", ";", "else", "return", "false", ";", "}", "if", "(", "set", "==", "NULL_RTX", "&&", "reg_overlap_mentioned_p", "(", "reg", ",", "PATTERN", "(", "this_insn", ")", ")", ")", "return", "false", ";", "}", "if", "(", "retval", ")", "return", "true", ";", "else", "if", "(", "code", "==", "JUMP_INSN", ")", "return", "false", ";", "}", "rtx", "set", "=", "single_set", "(", "insn", ")", ";", "if", "(", "set", "&&", "reg_overlap_mentioned_p", "(", "reg", ",", "SET_SRC", "(", "set", ")", ")", ")", "return", "false", ";", "if", "(", "set", "&&", "reg_overlap_mentioned_p", "(", "reg", ",", "SET_DEST", "(", "set", ")", ")", ")", "return", "!", "MEM_P", "(", "SET_DEST", "(", "set", ")", ")", ";", "if", "(", "set", "==", "NULL", "&&", "reg_overlap_mentioned_p", "(", "reg", ",", "PATTERN", "(", "insn", ")", ")", ")", "return", "false", ";", "if", "(", "code", "==", "CALL_INSN", "&&", "call_really_used_regs", "[", "REGNO", "(", "reg", ")", "]", ")", "return", "true", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Return", "nonzero", "if", "REG", "is", "not", "used", "after", "INSN", ".", "We", "assume", "REG", "is", "a", "reload", "reg", ",", "and", "therefore", "does", "not", "live", "past", "labels", "or", "calls", "or", "jumps", "."], "TS_V_token": ["sh", "1", "0"], "File": "sh6", "Func": "reg_unused_after", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 401, "Length": 385, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_save_callee_saves", "(", "machine_mode", "mode", ",", "poly_int64", "start_offset", ",", "unsigned", "start", ",", "unsigned", "limit", ",", "bool", "skip_wb", ")", "{", "rtx_insn", "*", "insn", ";", "unsigned", "regno", ";", "unsigned", "regno2", ";", "for", "(", "regno", "=", "aarch64_next_callee_save", "(", "start", ",", "limit", ")", ";", "regno", "<=", "limit", ";", "regno", "=", "aarch64_next_callee_save", "(", "regno", "+", "1", ",", "limit", ")", ")", "{", "rtx", "reg", ",", "mem", ";", "poly_int64", "offset", ";", "int", "offset_diff", ";", "if", "(", "skip_wb", "&&", "(", "regno", "==", "cfun", "->", "machine", "->", "frame", ".", "wb_candidate1", "||", "regno", "==", "cfun", "->", "machine", "->", "frame", ".", "wb_candidate2", ")", ")", "continue", ";", "if", "(", "cfun", "->", "machine", "->", "reg_is_wrapped_separately", "[", "regno", "]", ")", "continue", ";", "reg", "=", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "offset", "=", "start_offset", "+", "cfun", "->", "machine", "->", "frame", ".", "reg_offset", "[", "regno", "]", ";", "mem", "=", "gen_frame_mem", "(", "mode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ";", "regno2", "=", "aarch64_next_callee_save", "(", "regno", "+", "1", ",", "limit", ")", ";", "offset_diff", "=", "cfun", "->", "machine", "->", "frame", ".", "reg_offset", "[", "regno2", "]", "-", "cfun", "->", "machine", "->", "frame", ".", "reg_offset", "[", "regno", "]", ";", "if", "(", "regno2", "<=", "limit", "&&", "!", "cfun", "->", "machine", "->", "reg_is_wrapped_separately", "[", "regno2", "]", "&&", "known_eq", "(", "GET_MODE_SIZE", "(", "mode", ")", ",", "offset_diff", ")", ")", "{", "rtx", "reg2", "=", "gen_rtx_REG", "(", "mode", ",", "regno2", ")", ";", "rtx", "mem2", ";", "offset", "=", "start_offset", "+", "cfun", "->", "machine", "->", "frame", ".", "reg_offset", "[", "regno2", "]", ";", "mem2", "=", "gen_frame_mem", "(", "mode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ";", "insn", "=", "emit_insn", "(", "aarch64_gen_store_pair", "(", "mode", ",", "mem", ",", "reg", ",", "mem2", ",", "reg2", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "XVECEXP", "(", "PATTERN", "(", "insn", ")", ",", "0", ",", "1", ")", ")", "=", "1", ";", "regno", "=", "regno2", ";", "}", "else", "insn", "=", "emit_move_insn", "(", "mem", ",", "reg", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "}", ""], "natrual_language": ["Emit", "code", "to", "save", "the", "callee-saved", "registers", "from", "register", "number", "START", "to", "LIMIT", "to", "the", "stack", "at", "the", "location", "starting", "at", "offset", "START_OFFSET", ",", "skipping", "any", "write-back", "candidates", "if", "SKIP_WB", "is", "true", "."], "TS_V_token": ["aarch64", "1", "1", "0", "1", "1", "1"], "File": "aarch646", "Func": "aarch64_save_callee_saves", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 402, "Length": 314, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ThumbDisassembler", "::", "getInstruction", "(", "MCInst", "&", "MI", ",", "uint64_t", "&", "Size", ",", "const", "MemoryObject", "&", "Region", ",", "uint64_t", "Address", ",", "raw_ostream", "&", "os", ")", "const", "{", "uint32_t", "insn", "=", "0", ";", "uint16_t", "insn1", "=", "0", ";", "uint8_t", "bytes", "[", "2", "]", ";", "if", "(", "Region", ".", "readBytes", "(", "Address", ",", "2", ",", "(", "uint8_t", "*", ")", "bytes", ",", "NULL", ")", "==", "-", "1", ")", "return", "false", ";", "insn", "=", "(", "bytes", "[", "1", "]", "<<", "8", ")", "|", "bytes", "[", "0", "]", ";", "unsigned", "bits15_11", "=", "slice", "(", "insn", ",", "15", ",", "11", ")", ";", "bool", "IsThumb2", "=", "false", ";", "if", "(", "bits15_11", "==", "0x1D", "||", "bits15_11", "==", "0x1E", "||", "bits15_11", "==", "0x1F", ")", "{", "IsThumb2", "=", "true", ";", "if", "(", "Region", ".", "readBytes", "(", "Address", "+", "2", ",", "2", ",", "(", "uint8_t", "*", ")", "bytes", ",", "NULL", ")", "==", "-", "1", ")", "return", "false", ";", "insn1", "=", "(", "bytes", "[", "1", "]", "<<", "8", ")", "|", "bytes", "[", "0", "]", ";", "insn", "=", "(", "insn", "<<", "16", "|", "insn1", ")", ";", "}", "unsigned", "Opcode", "=", "decodeThumbSideEffect", "(", "IsThumb2", ",", "insn", ")", ";", "if", "(", "Thumb2PreloadOpcodeNoPCI", "(", "Opcode", ")", "&&", "slice", "(", "insn", ",", "19", ",", "16", ")", "==", "15", ")", "Opcode", "=", "T2Morph2Preload2PCI", "(", "Opcode", ")", ";", "ARMFormat", "Format", "=", "ARMFormats", "[", "Opcode", "]", ";", "Size", "=", "IsThumb2", "?", "4", ":", "2", ";", "DEBUG", "(", "{", "errs", "(", ")", "<<", "\"Opcode=\"", "<<", "Opcode", "<<", "\" Name=\"", "<<", "ARMUtils", "::", "OpcodeName", "(", "Opcode", ")", "<<", "\" Format=\"", "<<", "stringForARMFormat", "(", "Format", ")", "<<", "'('", "<<", "(", "int", ")", "Format", "<<", "\")\\n\"", ";", "showBitVector", "(", "errs", "(", ")", ",", "insn", ")", ";", "}", ")", ";", "ARMBasicMCBuilder", "*", "Builder", "=", "CreateMCBuilder", "(", "Opcode", ",", "Format", ")", ";", "Builder", "->", "SetSession", "(", "const_cast", "<", "Session", "*", ">", "(", "&", "SO", ")", ")", ";", "if", "(", "!", "Builder", ")", "return", "false", ";", "if", "(", "!", "Builder", "->", "Build", "(", "MI", ",", "insn", ")", ")", "return", "false", ";", "delete", "Builder", ";", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "the", "disassembly", "of", "a", "single", "instruction", "."], "TS_V_token": ["ARM", "0", "0", "2", "2", "1", "1", "8", "0", "15", "11", "0x1D", "0x1E", "0x1F", "2", "2", "1", "1", "8", "0", "16", "19", "16", "15", "ARM", "ARM", "4", "2", "\"Opcode=\"", "\" Name=\"", "ARMUtils::OpcodeName", "\" Format=\"", "ARM", "\")\\n\"", "ARM"], "File": "ARMDisassembler11", "Func": "getInstruction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 403, "Length": 329, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Thumb2InstrInfo", "::", "ReplaceTailWithBranchTo", "(", "MachineBasicBlock", "::", "iterator", "Tail", ",", "MachineBasicBlock", "*", "NewDest", ")", "const", "{", "MachineBasicBlock", "*", "MBB", "=", "Tail", "->", "getParent", "(", ")", ";", "ARMFunctionInfo", "*", "AFI", "=", "MBB", "->", "getParent", "(", ")", "->", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "if", "(", "!", "AFI", "->", "hasITBlocks", "(", ")", ")", "{", "TargetInstrInfo", "::", "ReplaceTailWithBranchTo", "(", "Tail", ",", "NewDest", ")", ";", "return", ";", "}", "unsigned", "PredReg", "=", "0", ";", "ARMCC", "::", "CondCodes", "CC", "=", "getInstrPredicate", "(", "*", "Tail", ",", "PredReg", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "Tail", ";", "if", "(", "CC", "!=", "ARMCC", "::", "AL", ")", "--", "MBBI", ";", "TargetInstrInfo", "::", "ReplaceTailWithBranchTo", "(", "Tail", ",", "NewDest", ")", ";", "if", "(", "CC", "!=", "ARMCC", "::", "AL", ")", "{", "MachineBasicBlock", "::", "iterator", "E", "=", "MBB", "->", "begin", "(", ")", ";", "unsigned", "Count", "=", "4", ";", "while", "(", "Count", "&&", "MBBI", "!=", "E", ")", "{", "if", "(", "MBBI", "->", "isDebugValue", "(", ")", ")", "{", "--", "MBBI", ";", "continue", ";", "}", "if", "(", "MBBI", "->", "getOpcode", "(", ")", "==", "ARM", "::", "t2IT", ")", "{", "unsigned", "Mask", "=", "MBBI", "->", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ";", "if", "(", "Count", "==", "4", ")", "MBBI", "->", "eraseFromParent", "(", ")", ";", "else", "{", "unsigned", "MaskOn", "=", "1", "<<", "Count", ";", "unsigned", "MaskOff", "=", "~", "(", "MaskOn", "-", "1", ")", ";", "MBBI", "->", "getOperand", "(", "1", ")", ".", "setImm", "(", "(", "Mask", "&", "MaskOff", ")", "|", "MaskOn", ")", ";", "}", "return", ";", "}", "--", "MBBI", ";", "--", "Count", ";", "}", "}", "}", ""], "natrual_language": ["Delete", "the", "instruction", "OldInst", "and", "everything", "after", "it", ",", "replacing", "it", "with", "an", "unconditional", "branch", "to", "NewDest", "."], "TS_V_token": ["ARM", "ARM", "ARM", "0", "ARMCC::CondCodes", "ARMCC::AL", "ARMCC::AL", "4", "ARM::t2IT", "1", "4", "1", "1", "1"], "File": "Thumb2InstrInfo40", "Func": "ReplaceTailWithBranchTo", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 404, "Length": 248, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMSubtarget", "::", "enablePostRAScheduler", "(", ")", "const", "{", "if", "(", "disablePostRAScheduler", "(", ")", ")", "return", "false", ";", "return", "!", "isThumb1Only", "(", ")", ";", "}", ""], "natrual_language": ["True", "if", "the", "subtarget", "should", "run", "a", "scheduler", "after", "register", "allocation", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMSubtarget", "Func": "enablePostRAScheduler", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 405, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_scalar_mode_supported_p", "(", "machine_mode", "mode", ")", "{", "if", "(", "TARGET_32BIT", "&&", "mode", "==", "TImode", ")", "return", "false", ";", "if", "(", "DECIMAL_FLOAT_MODE_P", "(", "mode", ")", ")", "return", "default_decimal_float_supported_p", "(", ")", ";", "else", "return", "default_scalar_mode_supported_p", "(", "mode", ")", ";", "}", ""], "natrual_language": ["Target", "hook", "for", "scalar_mode_supported_p", "."], "TS_V_token": ["rs6000"], "File": "rs60004", "Func": "rs6000_scalar_mode_supported_p", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 406, "Length": 39, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "::", "iterator", "CJGFrameLowering", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "const", "CJGInstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "CJGInstrInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "unsigned", "StackAlign", "=", "getStackAlignment", "(", ")", ";", "if", "(", "!", "hasReservedCallFrame", "(", "MF", ")", ")", "{", "MachineInstr", "&", "Old", "=", "*", "I", ";", "uint64_t", "Amount", "=", "Old", ".", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "if", "(", "Amount", "!=", "0", ")", "{", "Amount", "=", "(", "Amount", "+", "StackAlign", "-", "1", ")", "/", "StackAlign", "*", "StackAlign", ";", "MachineInstr", "*", "New", "=", "nullptr", ";", "if", "(", "Old", ".", "getOpcode", "(", ")", "==", "TII", ".", "getCallFrameSetupOpcode", "(", ")", ")", "{", "New", "=", "BuildMI", "(", "MF", ",", "Old", ".", "getDebugLoc", "(", ")", ",", "TII", ".", "get", "(", "CJG", "::", "SUBri", ")", ",", "CJG", "::", "SP", ")", ".", "addReg", "(", "CJG", "::", "SP", ")", ".", "addImm", "(", "Amount", ")", ";", "}", "else", "{", "assert", "(", "Old", ".", "getOpcode", "(", ")", "==", "TII", ".", "getCallFrameDestroyOpcode", "(", ")", ")", ";", "uint64_t", "CalleeAmt", "=", "Old", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ";", "Amount", "-=", "CalleeAmt", ";", "if", "(", "Amount", ")", "New", "=", "BuildMI", "(", "MF", ",", "Old", ".", "getDebugLoc", "(", ")", ",", "TII", ".", "get", "(", "CJG", "::", "ADDri", ")", ",", "CJG", "::", "SP", ")", ".", "addReg", "(", "CJG", "::", "SP", ")", ".", "addImm", "(", "Amount", ")", ";", "}", "if", "(", "New", ")", "{", "New", "->", "getOperand", "(", "3", ")", ".", "setIsDead", "(", ")", ";", "MBB", ".", "insert", "(", "I", ",", "New", ")", ";", "}", "}", "}", "else", "if", "(", "I", "->", "getOpcode", "(", ")", "==", "TII", ".", "getCallFrameDestroyOpcode", "(", ")", ")", "{", "if", "(", "uint64_t", "CalleeAmt", "=", "I", "->", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ")", "{", "MachineInstr", "&", "Old", "=", "*", "I", ";", "MachineInstr", "*", "New", "=", "BuildMI", "(", "MF", ",", "Old", ".", "getDebugLoc", "(", ")", ",", "TII", ".", "get", "(", "CJG", "::", "SUBri", ")", ",", "CJG", "::", "SP", ")", ".", "addReg", "(", "CJG", "::", "SP", ")", ".", "addImm", "(", "CalleeAmt", ")", ";", "New", "->", "getOperand", "(", "3", ")", ".", "setIsDead", "(", ")", ";", "MBB", ".", "insert", "(", "I", ",", "New", ")", ";", "}", "}", "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": ["CJG", "CJG", "CJG", "CJG", "0", "0", "1", "CJG::SUBri", "CJG::SP", "CJG::SP", "1", "CJG::ADDri", "CJG::SP", "CJG::SP", "3", "1", "CJG::SUBri", "CJG::SP", "CJG::SP", "3"], "File": "CJGFrameLowering", "Func": "eliminateCallFramePseudoInstr", "Target": "CJG", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 407, "Length": 381, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZMCAsmBackend", "::", "applyFixup", "(", "const", "MCAssembler", "&", "Asm", ",", "const", "MCFixup", "&", "Fixup", ",", "const", "MCValue", "&", "Target", ",", "MutableArrayRef", "<", "char", ">", "Data", ",", "uint64_t", "Value", ",", "bool", "IsResolved", ",", "const", "MCSubtargetInfo", "*", "STI", ")", "const", "{", "MCFixupKind", "Kind", "=", "Fixup", ".", "getKind", "(", ")", ";", "if", "(", "Kind", ">=", "FirstLiteralRelocationKind", ")", "return", ";", "unsigned", "Offset", "=", "Fixup", ".", "getOffset", "(", ")", ";", "unsigned", "BitSize", "=", "getFixupKindInfo", "(", "Kind", ")", ".", "TargetSize", ";", "unsigned", "Size", "=", "(", "BitSize", "+", "7", ")", "/", "8", ";", "assert", "(", "Offset", "+", "Size", "<=", "Data", ".", "size", "(", ")", "&&", "\"Invalid fixup offset!\"", ")", ";", "Value", "=", "extractBitsForFixup", "(", "Kind", ",", "Value", ")", ";", "if", "(", "BitSize", "<", "64", ")", "Value", "&=", "(", "(", "uint64_t", ")", "1", "<<", "BitSize", ")", "-", "1", ";", "unsigned", "ShiftValue", "=", "(", "Size", "*", "8", ")", "-", "8", ";", "for", "(", "unsigned", "I", "=", "0", ";", "I", "!=", "Size", ";", "++", "I", ")", "{", "Data", "[", "Offset", "+", "I", "]", "|=", "uint8_t", "(", "Value", ">>", "ShiftValue", ")", ";", "ShiftValue", "-=", "8", ";", "}", "}", ""], "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": ["SystemZ", "SystemZ", "7", "8", "\"Invalid fixup offset!\"", "64", "1", "1", "8", "8", "0", "8"], "File": "SystemZMCAsmBackend22", "Func": "applyFixup", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 408, "Length": 175, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_output_addr_const_extra", "(", "FILE", "*", "fp", ",", "rtx", "x", ")", "{", "if", "(", "GET_CODE", "(", "x", ")", "==", "UNSPEC", "&&", "XINT", "(", "x", ",", "1", ")", "==", "UNSPEC_TLS", ")", "return", "arm_emit_tls_decoration", "(", "fp", ",", "x", ")", ";", "else", "if", "(", "GET_CODE", "(", "x", ")", "==", "UNSPEC", "&&", "XINT", "(", "x", ",", "1", ")", "==", "UNSPEC_PIC_LABEL", ")", "{", "char", "label", "[", "256", "]", ";", "int", "labelno", "=", "INTVAL", "(", "XVECEXP", "(", "x", ",", "0", ",", "0", ")", ")", ";", "ASM_GENERATE_INTERNAL_LABEL", "(", "label", ",", "\"LPIC\"", ",", "labelno", ")", ";", "assemble_name_raw", "(", "fp", ",", "label", ")", ";", "return", "TRUE", ";", "}", "else", "if", "(", "GET_CODE", "(", "x", ")", "==", "UNSPEC", "&&", "XINT", "(", "x", ",", "1", ")", "==", "UNSPEC_GOTSYM_OFF", ")", "{", "assemble_name", "(", "fp", ",", "\"_GLOBAL_OFFSET_TABLE_\"", ")", ";", "if", "(", "GOT_PCREL", ")", "fputs", "(", "\"+.\"", ",", "fp", ")", ";", "fputs", "(", "\"-(\"", ",", "fp", ")", ";", "output_addr_const", "(", "fp", ",", "XVECEXP", "(", "x", ",", "0", ",", "0", ")", ")", ";", "fputc", "(", "')'", ",", "fp", ")", ";", "return", "TRUE", ";", "}", "else", "if", "(", "GET_CODE", "(", "x", ")", "==", "UNSPEC", "&&", "XINT", "(", "x", ",", "1", ")", "==", "UNSPEC_SYMBOL_OFFSET", ")", "{", "output_addr_const", "(", "fp", ",", "XVECEXP", "(", "x", ",", "0", ",", "0", ")", ")", ";", "if", "(", "GOT_PCREL", ")", "fputs", "(", "\"+.\"", ",", "fp", ")", ";", "fputs", "(", "\"-(\"", ",", "fp", ")", ";", "output_addr_const", "(", "fp", ",", "XVECEXP", "(", "x", ",", "0", ",", "1", ")", ")", ";", "fputc", "(", "')'", ",", "fp", ")", ";", "return", "TRUE", ";", "}", "else", "if", "(", "GET_CODE", "(", "x", ")", "==", "CONST_VECTOR", ")", "return", "arm_emit_vector_const", "(", "fp", ",", "x", ")", ";", "return", "FALSE", ";", "}", ""], "natrual_language": ["Implement", "TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA", "."], "TS_V_token": ["arm", "1", "1", "256", "0", "0", "\"LPIC\"", "1", "\"_GLOBAL_OFFSET_TABLE_\"", "\"+.\"", "\"-(\"", "0", "0", "1", "0", "0", "\"+.\"", "\"-(\"", "0", "1"], "File": "arm", "Func": "arm_output_addr_const_extra", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 409, "Length": 268, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isImm", "(", ")", "const", "override", "{", "return", "Kind", "==", "k_Immediate", ";", "}", ""], "natrual_language": ["isImm", "-", "Is", "this", "an", "immediate", "operand", "?"], "TS_V_token": ["VE"], "File": "VEAsmParser (2)", "Func": "isImm", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 410, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "LoongArchPassConfig", "::", "addInstSelector", "(", ")", "{", "addPass", "(", "createLoongArchISelDag", "(", "getLoongArchTargetMachine", "(", ")", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["addInstSelector", "-", "This", "method", "should", "install", "an", "instruction", "selector", "pass", ",", "which", "converts", "from", "LLVM", "code", "to", "machine", "instructions", "."], "TS_V_token": ["LoongArch", "LoongArch", "LoongArch", "LoongArch"], "File": "LoongArchTargetMachine", "Func": "addInstSelector", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 411, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "sparc_legitimize_reload_address", "(", "rtx", "x", ",", "machine_mode", "mode", ",", "int", "opnum", ",", "int", "type", ",", "int", "ind_levels", "ATTRIBUTE_UNUSED", ",", "int", "*", "win", ")", "{", "if", "(", "CONSTANT_P", "(", "x", ")", "&&", "(", "mode", "!=", "TFmode", "||", "TARGET_ARCH64", ")", "&&", "GET_MODE", "(", "x", ")", "==", "SImode", "&&", "GET_CODE", "(", "x", ")", "!=", "LO_SUM", "&&", "GET_CODE", "(", "x", ")", "!=", "HIGH", "&&", "sparc_cmodel", "<=", "CM_MEDLOW", "&&", "!", "(", "flag_pic", "&&", "(", "symbolic_operand", "(", "x", ",", "Pmode", ")", "||", "pic_address_needs_scratch", "(", "x", ")", ")", ")", ")", "{", "x", "=", "gen_rtx_LO_SUM", "(", "GET_MODE", "(", "x", ")", ",", "gen_rtx_HIGH", "(", "GET_MODE", "(", "x", ")", ",", "x", ")", ",", "x", ")", ";", "push_reload", "(", "XEXP", "(", "x", ",", "0", ")", ",", "NULL_RTX", ",", "&", "XEXP", "(", "x", ",", "0", ")", ",", "NULL", ",", "BASE_REG_CLASS", ",", "GET_MODE", "(", "x", ")", ",", "VOIDmode", ",", "0", ",", "0", ",", "opnum", ",", "(", "enum", "reload_type", ")", "type", ")", ";", "*", "win", "=", "1", ";", "return", "x", ";", "}", "if", "(", "GET_CODE", "(", "x", ")", "==", "LO_SUM", "&&", "GET_CODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", "==", "HIGH", ")", "{", "push_reload", "(", "XEXP", "(", "x", ",", "0", ")", ",", "NULL_RTX", ",", "&", "XEXP", "(", "x", ",", "0", ")", ",", "NULL", ",", "BASE_REG_CLASS", ",", "GET_MODE", "(", "x", ")", ",", "VOIDmode", ",", "0", ",", "0", ",", "opnum", ",", "(", "enum", "reload_type", ")", "type", ")", ";", "*", "win", "=", "1", ";", "return", "x", ";", "}", "*", "win", "=", "0", ";", "return", "x", ";", "}", ""], "natrual_language": ["SPARC", "implementation", "of", "LEGITIMIZE_RELOAD_ADDRESS", ".", "Returns", "a", "value", "to", "replace", "the", "input", "X", ",", "or", "the", "original", "X", "if", "no", "replacement", "is", "called", "for", ".", "The", "output", "parameter", "*", "WIN", "is", "1", "if", "the", "calling", "macro", "should", "goto", "WIN", ",", "0", "if", "it", "should", "not", ".", "For", "SPARC", ",", "we", "wish", "to", "handle", "addresses", "by", "splitting", "them", "into", "HIGH+LO_SUM", "pairs", ",", "retaining", "the", "LO_SUM", "in", "the", "memory", "reference", ".", "This", "cuts", "the", "number", "of", "extra", "insns", "by", "one", ".", "Do", "nothing", "when", "generating", "PIC", "code", "and", "the", "address", "is", "a", "symbolic", "operand", "or", "requires", "a", "scratch", "register", "."], "TS_V_token": ["sparc", "0", "0", "0", "0", "1", "0", "0", "0", "0", "0", "1", "0"], "File": "sparc4", "Func": "sparc_legitimize_reload_address", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 412, "Length": 241, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64PassConfig", "::", "addPreLegalizeMachineIR", "(", ")", "{", "addPass", "(", "createAArch64PreLegalizeCombiner", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "legalization", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64"], "File": "AArch64TargetMachine (2)3", "Func": "addPreLegalizeMachineIR", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 413, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "rs6000_variable_issue_1", "(", "rtx_insn", "*", "insn", ",", "int", "more", ")", "{", "last_scheduled_insn", "=", "insn", ";", "if", "(", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "==", "USE", "||", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "==", "CLOBBER", ")", "{", "cached_can_issue_more", "=", "more", ";", "return", "cached_can_issue_more", ";", "}", "if", "(", "insn_terminates_group_p", "(", "insn", ",", "current_group", ")", ")", "{", "cached_can_issue_more", "=", "0", ";", "return", "cached_can_issue_more", ";", "}", "if", "(", "recog_memoized", "(", "insn", ")", "<", "0", ")", "return", "more", ";", "if", "(", "rs6000_sched_groups", ")", "{", "if", "(", "is_microcoded_insn", "(", "insn", ")", ")", "cached_can_issue_more", "=", "0", ";", "else", "if", "(", "is_cracked_insn", "(", "insn", ")", ")", "cached_can_issue_more", "=", "more", ">", "2", "?", "more", "-", "2", ":", "0", ";", "else", "cached_can_issue_more", "=", "more", "-", "1", ";", "return", "cached_can_issue_more", ";", "}", "if", "(", "rs6000_cpu_attr", "==", "CPU_CELL", "&&", "is_nonpipeline_insn", "(", "insn", ")", ")", "return", "0", ";", "cached_can_issue_more", "=", "more", "-", "1", ";", "return", "cached_can_issue_more", ";", "}", ""], "natrual_language": ["Power4", "load", "update", "and", "store", "update", "instructions", "are", "cracked", "into", "a", "load", "or", "store", "and", "an", "integer", "insn", "which", "are", "executed", "in", "the", "same", "cycle", ".", "Branches", "have", "their", "own", "dispatch", "slot", "which", "does", "not", "count", "against", "the", "GCC", "issue", "rate", ",", "but", "it", "changes", "the", "program", "flow", "so", "there", "are", "no", "other", "instructions", "to", "issue", "in", "this", "cycle", "."], "TS_V_token": ["rs6000", "0", "0", "0", "2", "2", "0", "1", "0", "1"], "File": "rs60004", "Func": "rs6000_variable_issue_1", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 414, "Length": 148, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"SPARC DAG->DAG Pattern Instruction Selection\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["Sparc", "\"SPARC DAG->DAG Pattern Instruction Selection\""], "File": "SparcISelDAGToDAG (2)1", "Func": "getPassName", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 415, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "::", "iterator", "AArch64InstrInfo", "::", "insertOutlinedCall", "(", "Module", "&", "M", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "It", ",", "MachineFunction", "&", "MF", ",", "const", "outliner", "::", "Candidate", "&", "C", ")", "const", "{", "if", "(", "C", ".", "CallConstructionID", "==", "MachineOutlinerTailCall", ")", "{", "It", "=", "MBB", ".", "insert", "(", "It", ",", "BuildMI", "(", "MF", ",", "DebugLoc", "(", ")", ",", "get", "(", "AArch64", "::", "TCRETURNdi", ")", ")", ".", "addGlobalAddress", "(", "M", ".", "getNamedValue", "(", "MF", ".", "getName", "(", ")", ")", ")", ".", "addImm", "(", "0", ")", ")", ";", "return", "It", ";", "}", "if", "(", "C", ".", "CallConstructionID", "==", "MachineOutlinerNoLRSave", "||", "C", ".", "CallConstructionID", "==", "MachineOutlinerThunk", ")", "{", "It", "=", "MBB", ".", "insert", "(", "It", ",", "BuildMI", "(", "MF", ",", "DebugLoc", "(", ")", ",", "get", "(", "AArch64", "::", "BL", ")", ")", ".", "addGlobalAddress", "(", "M", ".", "getNamedValue", "(", "MF", ".", "getName", "(", ")", ")", ")", ")", ";", "return", "It", ";", "}", "MachineBasicBlock", "::", "iterator", "CallPt", ";", "MachineInstr", "*", "Save", ";", "MachineInstr", "*", "Restore", ";", "if", "(", "C", ".", "CallConstructionID", "==", "MachineOutlinerRegSave", ")", "{", "unsigned", "Reg", "=", "findRegisterToSaveLRTo", "(", "C", ")", ";", "assert", "(", "Reg", "!=", "0", "&&", "\"No callee-saved register available?\"", ")", ";", "Save", "=", "BuildMI", "(", "MF", ",", "DebugLoc", "(", ")", ",", "get", "(", "AArch64", "::", "ORRXrs", ")", ",", "Reg", ")", ".", "addReg", "(", "AArch64", "::", "XZR", ")", ".", "addReg", "(", "AArch64", "::", "LR", ")", ".", "addImm", "(", "0", ")", ";", "Restore", "=", "BuildMI", "(", "MF", ",", "DebugLoc", "(", ")", ",", "get", "(", "AArch64", "::", "ORRXrs", ")", ",", "AArch64", "::", "LR", ")", ".", "addReg", "(", "AArch64", "::", "XZR", ")", ".", "addReg", "(", "Reg", ")", ".", "addImm", "(", "0", ")", ";", "}", "else", "{", "Save", "=", "BuildMI", "(", "MF", ",", "DebugLoc", "(", ")", ",", "get", "(", "AArch64", "::", "STRXpre", ")", ")", ".", "addReg", "(", "AArch64", "::", "SP", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "AArch64", "::", "LR", ")", ".", "addReg", "(", "AArch64", "::", "SP", ")", ".", "addImm", "(", "-", "16", ")", ";", "Restore", "=", "BuildMI", "(", "MF", ",", "DebugLoc", "(", ")", ",", "get", "(", "AArch64", "::", "LDRXpost", ")", ")", ".", "addReg", "(", "AArch64", "::", "SP", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "AArch64", "::", "LR", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "AArch64", "::", "SP", ")", ".", "addImm", "(", "16", ")", ";", "}", "It", "=", "MBB", ".", "insert", "(", "It", ",", "Save", ")", ";", "It", "++", ";", "It", "=", "MBB", ".", "insert", "(", "It", ",", "BuildMI", "(", "MF", ",", "DebugLoc", "(", ")", ",", "get", "(", "AArch64", "::", "BL", ")", ")", ".", "addGlobalAddress", "(", "M", ".", "getNamedValue", "(", "MF", ".", "getName", "(", ")", ")", ")", ")", ";", "CallPt", "=", "It", ";", "It", "++", ";", "It", "=", "MBB", ".", "insert", "(", "It", ",", "Restore", ")", ";", "return", "CallPt", ";", "}", ""], "natrual_language": ["Insert", "a", "call", "to", "an", "outlined", "function", "into", "the", "program", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::TCRETURNdi", "0", "AArch64::BL", "0", "\"No callee-saved register available?\"", "AArch64::ORRXrs", "AArch64::XZR", "AArch64::LR", "0", "AArch64::ORRXrs", "AArch64::LR", "AArch64::XZR", "0", "AArch64::STRXpre", "AArch64::SP", "AArch64::LR", "AArch64::SP", "16", "AArch64::LDRXpost", "AArch64::SP", "AArch64::LR", "AArch64::SP", "16", "AArch64::BL"], "File": "AArch64InstrInfo (2)1", "Func": "insertOutlinedCall", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 416, "Length": 446, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "output_v9branch", "(", "rtx", "op", ",", "rtx", "dest", ",", "int", "reg", ",", "int", "label", ",", "int", "reversed", ",", "int", "annul", ",", "rtx", "insn", ")", "{", "static", "char", "string", "[", "64", "]", ";", "enum", "rtx_code", "code", "=", "GET_CODE", "(", "op", ")", ";", "enum", "machine_mode", "mode", "=", "GET_MODE", "(", "XEXP", "(", "op", ",", "0", ")", ")", ";", "rtx", "note", ";", "int", "far", ";", "char", "*", "p", ";", "far", "=", "get_attr_length", "(", "insn", ")", ">=", "3", ";", "if", "(", "reversed", "^", "far", ")", "code", "=", "reverse_condition", "(", "code", ")", ";", "gcc_assert", "(", "mode", "==", "DImode", ")", ";", "switch", "(", "code", ")", "{", "case", "NE", ":", "strcpy", "(", "string", ",", "\"brnz\"", ")", ";", "break", ";", "case", "EQ", ":", "strcpy", "(", "string", ",", "\"brz\"", ")", ";", "break", ";", "case", "GE", ":", "strcpy", "(", "string", ",", "\"brgez\"", ")", ";", "break", ";", "case", "LT", ":", "strcpy", "(", "string", ",", "\"brlz\"", ")", ";", "break", ";", "case", "LE", ":", "strcpy", "(", "string", ",", "\"brlez\"", ")", ";", "break", ";", "case", "GT", ":", "strcpy", "(", "string", ",", "\"brgz\"", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "p", "=", "strchr", "(", "string", ",", "'\\0'", ")", ";", "if", "(", "annul", "&&", "!", "far", ")", "{", "strcpy", "(", "p", ",", "\",a\"", ")", ";", "p", "+=", "2", ";", "}", "if", "(", "insn", "&&", "(", "note", "=", "find_reg_note", "(", "insn", ",", "REG_BR_PROB", ",", "NULL_RTX", ")", ")", ")", "{", "strcpy", "(", "p", ",", "(", "(", "INTVAL", "(", "XEXP", "(", "note", ",", "0", ")", ")", ">=", "REG_BR_PROB_BASE", "/", "2", ")", "^", "far", ")", "?", "\",pt\"", ":", "\",pn\"", ")", ";", "p", "+=", "3", ";", "}", "*", "p", "=", "p", "<", "string", "+", "8", "?", "'\\t'", ":", "' '", ";", "p", "++", ";", "*", "p", "++", "=", "'%'", ";", "*", "p", "++", "=", "'0'", "+", "reg", ";", "*", "p", "++", "=", "','", ";", "*", "p", "++", "=", "' '", ";", "if", "(", "far", ")", "{", "int", "veryfar", "=", "1", ",", "delta", ";", "if", "(", "INSN_ADDRESSES_SET_P", "(", ")", ")", "{", "delta", "=", "(", "INSN_ADDRESSES", "(", "INSN_UID", "(", "dest", ")", ")", "-", "INSN_ADDRESSES", "(", "INSN_UID", "(", "insn", ")", ")", ")", ";", "if", "(", "delta", ">=", "-", "260000", "&&", "delta", "<", "260000", ")", "veryfar", "=", "0", ";", "}", "strcpy", "(", "p", ",", "\".+12\\n\\t nop\\n\\t\"", ")", ";", "if", "(", "annul", "||", "!", "final_sequence", ")", "p", "[", "3", "]", "=", "'6'", ";", "p", "+=", "12", ";", "if", "(", "veryfar", ")", "{", "strcpy", "(", "p", ",", "\"b\\t\"", ")", ";", "p", "+=", "2", ";", "}", "else", "{", "strcpy", "(", "p", ",", "\"ba,pt\\t%%xcc, \"", ")", ";", "p", "+=", "13", ";", "}", "}", "*", "p", "++", "=", "'%'", ";", "*", "p", "++", "=", "'l'", ";", "*", "p", "++", "=", "'0'", "+", "label", ";", "*", "p", "++", "=", "'%'", ";", "*", "p", "++", "=", "'#'", ";", "*", "p", "=", "'\\0'", ";", "return", "string", ";", "}", ""], "natrual_language": ["Return", "the", "string", "to", "output", "a", "conditional", "branch", "to", "LABEL", ",", "testing", "register", "REG", ".", "LABEL", "is", "the", "operand", "number", "of", "the", "label", ";", "REG", "is", "the", "operand", "number", "of", "the", "reg", ".", "OP", "is", "the", "conditional", "expression", ".", "The", "mode", "of", "REG", "says", "what", "kind", "of", "comparison", "we", "made", ".", "REVERSED", "is", "non-zero", "if", "we", "should", "reverse", "the", "sense", "of", "the", "comparison", ".", "ANNUL", "is", "non-zero", "if", "we", "should", "generate", "an", "annulling", "branch", ".", "NOOP", "is", "non-zero", "if", "we", "have", "to", "follow", "this", "branch", "by", "a", "noop", "."], "TS_V_token": ["sparc", "64", "0", "3", "\"brnz\"", "\"brz\"", "\"brgez\"", "\"brlz\"", "\"brlez\"", "\"brgz\"", "\",a\"", "2", "0", "2", "\",pt\"", "\",pn\"", "3", "8", "1", "260000", "260000", "0", "\".+12\\n\\t nop\\n\\t\"", "3", "12", "\"b\\t\"", "2", "\"ba,pt\\t%%xcc, \"", "13"], "File": "sparc3", "Func": "output_v9branch", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 417, "Length": 456, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "FixupLEAPass", "::", "processInstruction", "(", "MachineBasicBlock", "::", "iterator", "&", "I", ",", "MachineFunction", "::", "iterator", "MFI", ")", "{", "MachineInstr", "*", "MI", "=", "I", ";", "int", "opcode", "=", "MI", "->", "getOpcode", "(", ")", ";", "const", "MCInstrDesc", "&", "Desc", "=", "MI", "->", "getDesc", "(", ")", ";", "int", "AddrOffset", "=", "X86II", "::", "getMemoryOperandNo", "(", "Desc", ".", "TSFlags", ",", "opcode", ")", ";", "if", "(", "AddrOffset", ">=", "0", ")", "{", "AddrOffset", "+=", "X86II", "::", "getOperandBias", "(", "Desc", ")", ";", "MachineOperand", "&", "p", "=", "MI", "->", "getOperand", "(", "AddrOffset", "+", "X86", "::", "AddrBaseReg", ")", ";", "if", "(", "p", ".", "isReg", "(", ")", "&&", "p", ".", "getReg", "(", ")", "!=", "X86", "::", "ESP", ")", "{", "seekLEAFixup", "(", "p", ",", "I", ",", "MFI", ")", ";", "}", "MachineOperand", "&", "q", "=", "MI", "->", "getOperand", "(", "AddrOffset", "+", "X86", "::", "AddrIndexReg", ")", ";", "if", "(", "q", ".", "isReg", "(", ")", "&&", "q", ".", "getReg", "(", ")", "!=", "X86", "::", "ESP", ")", "{", "seekLEAFixup", "(", "q", ",", "I", ",", "MFI", ")", ";", "}", "}", "}", ""], "natrual_language": ["Process", "a", "single", "instruction", "and", "collect", "debug", "info", "anchors", "."], "TS_V_token": ["X86", "X86II::getMemoryOperandNo", "0", "X86II::getOperandBias", "X86::AddrBaseReg", "X86::ESP", "X86::AddrIndexReg", "X86::ESP"], "File": "X86FixupLEAs12", "Func": "processInstruction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 418, "Length": 163, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_const_not_ok_for_debug_p", "(", "rtx", "p", ")", "{", "tree", "decl_op0", "=", "NULL", ";", "tree", "decl_op1", "=", "NULL", ";", "if", "(", "GET_CODE", "(", "p", ")", "==", "MINUS", ")", "{", "if", "(", "GET_CODE", "(", "XEXP", "(", "p", ",", "1", ")", ")", "==", "SYMBOL_REF", ")", "{", "decl_op1", "=", "SYMBOL_REF_DECL", "(", "XEXP", "(", "p", ",", "1", ")", ")", ";", "if", "(", "decl_op1", "&&", "GET_CODE", "(", "XEXP", "(", "p", ",", "0", ")", ")", "==", "SYMBOL_REF", "&&", "(", "decl_op0", "=", "SYMBOL_REF_DECL", "(", "XEXP", "(", "p", ",", "0", ")", ")", ")", ")", "{", "if", "(", "(", "VAR_P", "(", "decl_op1", ")", "||", "TREE_CODE", "(", "decl_op1", ")", "==", "CONST_DECL", ")", "&&", "(", "VAR_P", "(", "decl_op0", ")", "||", "TREE_CODE", "(", "decl_op0", ")", "==", "CONST_DECL", ")", ")", "return", "(", "get_variable_section", "(", "decl_op1", ",", "false", ")", "!=", "get_variable_section", "(", "decl_op0", ",", "false", ")", ")", ";", "if", "(", "TREE_CODE", "(", "decl_op1", ")", "==", "LABEL_DECL", "&&", "TREE_CODE", "(", "decl_op0", ")", "==", "LABEL_DECL", ")", "return", "(", "DECL_CONTEXT", "(", "decl_op1", ")", "!=", "DECL_CONTEXT", "(", "decl_op0", ")", ")", ";", "}", "return", "true", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["This", "is", "a", "temporary", "fix", "for", "PR60655", ".", "Ideally", "we", "need", "to", "handle", "most", "of", "these", "cases", "in", "the", "generic", "part", "but", "currently", "we", "reject", "minus", "(", "..", ")", "(", "sym_ref", ")", ".", "We", "try", "to", "ameliorate", "the", "case", "with", "minus", "(", "sym_ref1", ")", "(", "sym_ref2", ")", "where", "they", "are", "in", "the", "same", "section", "."], "TS_V_token": ["arm", "1", "1", "0", "0"], "File": "arm6", "Func": "arm_const_not_ok_for_debug_p", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 419, "Length": 172, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86InstrInfo", "::", "areLoadsFromSameBasePtr", "(", "SDNode", "*", "Load1", ",", "SDNode", "*", "Load2", ",", "int64_t", "&", "Offset1", ",", "int64_t", "&", "Offset2", ")", "const", "{", "if", "(", "!", "Load1", "->", "isMachineOpcode", "(", ")", "||", "!", "Load2", "->", "isMachineOpcode", "(", ")", ")", "return", "false", ";", "unsigned", "Opc1", "=", "Load1", "->", "getMachineOpcode", "(", ")", ";", "unsigned", "Opc2", "=", "Load2", "->", "getMachineOpcode", "(", ")", ";", "switch", "(", "Opc1", ")", "{", "default", ":", "return", "false", ";", "case", "X86", "::", "MOV8rm", ":", "case", "X86", "::", "MOV16rm", ":", "case", "X86", "::", "MOV32rm", ":", "case", "X86", "::", "MOV64rm", ":", "case", "X86", "::", "LD_Fp32m", ":", "case", "X86", "::", "LD_Fp64m", ":", "case", "X86", "::", "LD_Fp80m", ":", "case", "X86", "::", "MOVSSrm", ":", "case", "X86", "::", "MOVSDrm", ":", "case", "X86", "::", "MMX_MOVD64rm", ":", "case", "X86", "::", "MMX_MOVQ64rm", ":", "case", "X86", "::", "FsMOVAPSrm", ":", "case", "X86", "::", "FsMOVAPDrm", ":", "case", "X86", "::", "MOVAPSrm", ":", "case", "X86", "::", "MOVUPSrm", ":", "case", "X86", "::", "MOVUPSrm_Int", ":", "case", "X86", "::", "MOVAPDrm", ":", "case", "X86", "::", "MOVDQArm", ":", "case", "X86", "::", "MOVDQUrm", ":", "case", "X86", "::", "MOVDQUrm_Int", ":", "break", ";", "}", "switch", "(", "Opc2", ")", "{", "default", ":", "return", "false", ";", "case", "X86", "::", "MOV8rm", ":", "case", "X86", "::", "MOV16rm", ":", "case", "X86", "::", "MOV32rm", ":", "case", "X86", "::", "MOV64rm", ":", "case", "X86", "::", "LD_Fp32m", ":", "case", "X86", "::", "LD_Fp64m", ":", "case", "X86", "::", "LD_Fp80m", ":", "case", "X86", "::", "MOVSSrm", ":", "case", "X86", "::", "MOVSDrm", ":", "case", "X86", "::", "MMX_MOVD64rm", ":", "case", "X86", "::", "MMX_MOVQ64rm", ":", "case", "X86", "::", "FsMOVAPSrm", ":", "case", "X86", "::", "FsMOVAPDrm", ":", "case", "X86", "::", "MOVAPSrm", ":", "case", "X86", "::", "MOVUPSrm", ":", "case", "X86", "::", "MOVUPSrm_Int", ":", "case", "X86", "::", "MOVAPDrm", ":", "case", "X86", "::", "MOVDQArm", ":", "case", "X86", "::", "MOVDQUrm", ":", "case", "X86", "::", "MOVDQUrm_Int", ":", "break", ";", "}", "if", "(", "Load1", "->", "getOperand", "(", "0", ")", "!=", "Load2", "->", "getOperand", "(", "0", ")", "||", "Load1", "->", "getOperand", "(", "5", ")", "!=", "Load2", "->", "getOperand", "(", "5", ")", ")", "return", "false", ";", "if", "(", "Load1", "->", "getOperand", "(", "4", ")", "!=", "Load2", "->", "getOperand", "(", "4", ")", ")", "return", "false", ";", "if", "(", "Load1", "->", "getOperand", "(", "1", ")", "==", "Load2", "->", "getOperand", "(", "1", ")", "&&", "Load1", "->", "getOperand", "(", "2", ")", "==", "Load2", "->", "getOperand", "(", "2", ")", ")", "{", "if", "(", "cast", "<", "ConstantSDNode", ">", "(", "Load1", "->", "getOperand", "(", "1", ")", ")", "->", "getZExtValue", "(", ")", "!=", "1", ")", "return", "false", ";", "SDValue", "Op2", "=", "Load1", "->", "getOperand", "(", "2", ")", ";", "if", "(", "!", "isa", "<", "RegisterSDNode", ">", "(", "Op2", ")", "||", "cast", "<", "RegisterSDNode", ">", "(", "Op2", ")", "->", "getReg", "(", ")", "!=", "0", ")", "return", "0", ";", "if", "(", "isa", "<", "ConstantSDNode", ">", "(", "Load1", "->", "getOperand", "(", "3", ")", ")", "&&", "isa", "<", "ConstantSDNode", ">", "(", "Load2", "->", "getOperand", "(", "3", ")", ")", ")", "{", "Offset1", "=", "cast", "<", "ConstantSDNode", ">", "(", "Load1", "->", "getOperand", "(", "3", ")", ")", "->", "getSExtValue", "(", ")", ";", "Offset2", "=", "cast", "<", "ConstantSDNode", ">", "(", "Load2", "->", "getOperand", "(", "3", ")", ")", "->", "getSExtValue", "(", ")", ";", "return", "true", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["areLoadsFromSameBasePtr", "-", "This", "is", "used", "by", "the", "pre-regalloc", "scheduler", "to", "determine", "if", "two", "loads", "are", "loading", "from", "the", "same", "base", "address", "."], "TS_V_token": ["X86", "X86", "X86::MOV8rm", "X86::MOV16rm", "X86::MOV32rm", "X86::MOV64rm", "X86::LD_Fp32m", "X86::LD_Fp64m", "X86::LD_Fp80m", "X86::MOVSSrm", "X86::MOVSDrm", "X86::MMX_MOVD64rm", "X86::MMX_MOVQ64rm", "X86::FsMOVAPSrm", "X86::FsMOVAPDrm", "X86::MOVAPSrm", "X86::MOVUPSrm", "X86::MOVUPSrm_Int", "X86::MOVAPDrm", "X86::MOVDQArm", "X86::MOVDQUrm", "X86::MOVDQUrm_Int", "X86::MOV8rm", "X86::MOV16rm", "X86::MOV32rm", "X86::MOV64rm", "X86::LD_Fp32m", "X86::LD_Fp64m", "X86::LD_Fp80m", "X86::MOVSSrm", "X86::MOVSDrm", "X86::MMX_MOVD64rm", "X86::MMX_MOVQ64rm", "X86::FsMOVAPSrm", "X86::FsMOVAPDrm", "X86::MOVAPSrm", "X86::MOVUPSrm", "X86::MOVUPSrm_Int", "X86::MOVAPDrm", "X86::MOVDQArm", "X86::MOVDQUrm", "X86::MOVDQUrm_Int", "0", "0", "5", "5", "4", "4", "1", "1", "2", "2", "1", "1", "2", "0", "0", "3", "3", "3", "3"], "File": "X86InstrInfo134", "Func": "areLoadsFromSameBasePtr", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 420, "Length": 507, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Finish", "(", ")", "{", "const", "size_t", "ContentsSize", "=", "Contents", ".", "size", "(", ")", ";", "const", "size_t", "VendorHeaderSize", "=", "4", "+", "CurrentVendor", ".", "size", "(", ")", "+", "1", ";", "const", "size_t", "TagHeaderSize", "=", "1", "+", "4", ";", "Streamer", ".", "EmitIntValue", "(", "VendorHeaderSize", "+", "TagHeaderSize", "+", "ContentsSize", ",", "4", ")", ";", "Streamer", ".", "EmitBytes", "(", "CurrentVendor", ",", "0", ")", ";", "Streamer", ".", "EmitIntValue", "(", "0", ",", "1", ")", ";", "Streamer", ".", "EmitIntValue", "(", "ARMBuildAttrs", "::", "File", ",", "1", ")", ";", "Streamer", ".", "EmitIntValue", "(", "TagHeaderSize", "+", "ContentsSize", ",", "4", ")", ";", "Streamer", ".", "EmitBytes", "(", "Contents", ",", "0", ")", ";", "Contents", ".", "clear", "(", ")", ";", "}", ""], "natrual_language": ["Finish", "-", "Do", "final", "processing", "and", "write", "the", "object", "to", "the", "output", "stream", "."], "TS_V_token": ["ARM", "4", "1", "1", "4", "4", "0", "0", "1", "ARMBuildAttrs::File", "1", "4", "0"], "File": "ARMAsmPrinter32", "Func": "Finish", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 421, "Length": 106, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "sh_vector_mode_supported_p", "(", "machine_mode", "mode", ")", "{", "if", "(", "TARGET_SHMEDIA_FPU", "&&", "(", "(", "mode", "==", "V2SFmode", ")", "||", "(", "mode", "==", "V4SFmode", ")", "||", "(", "mode", "==", "V16SFmode", ")", ")", ")", "return", "true", ";", "else", "if", "(", "TARGET_SHMEDIA", "&&", "(", "(", "mode", "==", "V8QImode", ")", "||", "(", "mode", "==", "V2HImode", ")", "||", "(", "mode", "==", "V4HImode", ")", "||", "(", "mode", "==", "V2SImode", ")", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Implements", "target", "hook", "vector_mode_supported_p", "."], "TS_V_token": ["sh"], "File": "sh5", "Func": "sh_vector_mode_supported_p", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 422, "Length": 72, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "DLXRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "Reserved", ".", "set", "(", "DLX", "::", "RA", ")", ";", "Reserved", ".", "set", "(", "DLX", "::", "FP", ")", ";", "Reserved", ".", "set", "(", "DLX", "::", "SP", ")", ";", "if", "(", "hasBasePointer", "(", "MF", ")", ")", "Reserved", ".", "set", "(", "getBaseRegister", "(", ")", ")", ";", "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": ["DLX", "DLX", "DLX::RA", "DLX::FP", "DLX::SP"], "File": "DLXRegisterInfo", "Func": "getReservedRegs", "Target": "DLX", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 423, "Length": 67, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86AsmBackend", "::", "applyFixup", "(", "const", "MCAssembler", "&", "Asm", ",", "const", "MCFixup", "&", "Fixup", ",", "const", "MCValue", "&", "Target", ",", "MutableArrayRef", "<", "char", ">", "Data", ",", "uint64_t", "Value", ",", "bool", "IsResolved", ",", "const", "MCSubtargetInfo", "*", "STI", ")", "const", "{", "unsigned", "Size", "=", "getFixupKindSize", "(", "Fixup", ".", "getKind", "(", ")", ")", ";", "assert", "(", "Fixup", ".", "getOffset", "(", ")", "+", "Size", "<=", "Data", ".", "size", "(", ")", "&&", "\"Invalid fixup offset!\"", ")", ";", "int64_t", "SignedValue", "=", "static_cast", "<", "int64_t", ">", "(", "Value", ")", ";", "if", "(", "(", "Target", ".", "isAbsolute", "(", ")", "||", "IsResolved", ")", "&&", "getFixupKindInfo", "(", "Fixup", ".", "getKind", "(", ")", ")", ".", "Flags", "&", "MCFixupKindInfo", "::", "FKF_IsPCRel", ")", "{", "if", "(", "Size", ">", "0", "&&", "!", "isIntN", "(", "Size", "*", "8", ",", "SignedValue", ")", ")", "Asm", ".", "getContext", "(", ")", ".", "reportError", "(", "Fixup", ".", "getLoc", "(", ")", ",", "\"value of \"", "+", "Twine", "(", "SignedValue", ")", "+", "\" is too large for field of \"", "+", "Twine", "(", "Size", ")", "+", "(", "(", "Size", "==", "1", ")", "?", "\" byte.\"", ":", "\" bytes.\"", ")", ")", ";", "}", "else", "{", "assert", "(", "(", "Size", "==", "0", "||", "isIntN", "(", "Size", "*", "8", "+", "1", ",", "SignedValue", ")", ")", "&&", "\"Value does not fit in the Fixup field\"", ")", ";", "}", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "Size", ";", "++", "i", ")", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "i", "]", "=", "uint8_t", "(", "Value", ">>", "(", "i", "*", "8", ")", ")", ";", "}", ""], "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": ["X86", "X86", "\"Invalid fixup offset!\"", "0", "8", "\"value of \"", "\" is too large for field of \"", "1", "\" byte.\"", "\" bytes.\"", "0", "8", "1", "\"Value does not fit in the Fixup field\"", "0", "8"], "File": "X86AsmBackend17", "Func": "applyFixup", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 424, "Length": 229, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_avoid_jump_mispredicts", "(", "void", ")", "{", "rtx_insn", "*", "insn", ",", "*", "start", "=", "get_insns", "(", ")", ";", "int", "nbytes", "=", "0", ",", "njumps", "=", "0", ";", "bool", "isjump", "=", "false", ";", "for", "(", "insn", "=", "start", ";", "insn", ";", "insn", "=", "NEXT_INSN", "(", "insn", ")", ")", "{", "int", "min_size", ";", "if", "(", "LABEL_P", "(", "insn", ")", ")", "{", "int", "align", "=", "label_to_alignment", "(", "insn", ")", ";", "int", "max_skip", "=", "label_to_max_skip", "(", "insn", ")", ";", "if", "(", "max_skip", ">", "15", ")", "max_skip", "=", "15", ";", "if", "(", "align", "<=", "0", "||", "(", "align", "<=", "3", "&&", "max_skip", "!=", "(", "1", "<<", "align", ")", "-", "1", ")", ")", "max_skip", "=", "0", ";", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"Label %i with max_skip %i\\n\"", ",", "INSN_UID", "(", "insn", ")", ",", "max_skip", ")", ";", "if", "(", "max_skip", ")", "{", "while", "(", "nbytes", "+", "max_skip", ">=", "16", ")", "{", "start", "=", "NEXT_INSN", "(", "start", ")", ";", "if", "(", "(", "JUMP_P", "(", "start", ")", "&&", "asm_noperands", "(", "PATTERN", "(", "start", ")", ")", "<", "0", ")", "||", "CALL_P", "(", "start", ")", ")", "njumps", "--", ",", "isjump", "=", "true", ";", "else", "isjump", "=", "false", ";", "nbytes", "-=", "min_insn_size", "(", "start", ")", ";", "}", "}", "continue", ";", "}", "min_size", "=", "min_insn_size", "(", "insn", ")", ";", "nbytes", "+=", "min_size", ";", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"Insn %i estimated to %i bytes\\n\"", ",", "INSN_UID", "(", "insn", ")", ",", "min_size", ")", ";", "if", "(", "(", "JUMP_P", "(", "insn", ")", "&&", "asm_noperands", "(", "PATTERN", "(", "insn", ")", ")", "<", "0", ")", "||", "CALL_P", "(", "insn", ")", ")", "njumps", "++", ";", "else", "continue", ";", "while", "(", "njumps", ">", "3", ")", "{", "start", "=", "NEXT_INSN", "(", "start", ")", ";", "if", "(", "(", "JUMP_P", "(", "start", ")", "&&", "asm_noperands", "(", "PATTERN", "(", "start", ")", ")", "<", "0", ")", "||", "CALL_P", "(", "start", ")", ")", "njumps", "--", ",", "isjump", "=", "true", ";", "else", "isjump", "=", "false", ";", "nbytes", "-=", "min_insn_size", "(", "start", ")", ";", "}", "gcc_assert", "(", "njumps", ">=", "0", ")", ";", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"Interval %i to %i has %i bytes\\n\"", ",", "INSN_UID", "(", "start", ")", ",", "INSN_UID", "(", "insn", ")", ",", "nbytes", ")", ";", "if", "(", "njumps", "==", "3", "&&", "isjump", "&&", "nbytes", "<", "16", ")", "{", "int", "padsize", "=", "15", "-", "nbytes", "+", "min_insn_size", "(", "insn", ")", ";", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"Padding insn %i by %i bytes!\\n\"", ",", "INSN_UID", "(", "insn", ")", ",", "padsize", ")", ";", "emit_insn_before", "(", "gen_pad", "(", "GEN_INT", "(", "padsize", ")", ")", ",", "insn", ")", ";", "}", "}", "}", ""], "natrual_language": ["AMD", "K8", "core", "mispredicts", "jumps", "when", "there", "are", "more", "than", "3", "jumps", "in", "16", "byte", "window", "."], "TS_V_token": ["i386", "0", "0", "15", "15", "0", "3", "1", "1", "0", "\"Label %i with max_skip %i\\n\"", "16", "0", "\"Insn %i estimated to %i bytes\\n\"", "0", "3", "0", "0", "\"Interval %i to %i has %i bytes\\n\"", "3", "16", "15", "\"Padding insn %i by %i bytes!\\n\""], "File": "i3864", "Func": "ix86_avoid_jump_mispredicts", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 425, "Length": 404, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "systemSupportsUnalignedAccess", "(", ")", "const", "{", "return", "true", ";", "}", ""], "natrual_language": ["Does", "the", "system", "support", "unaligned", "memory", "access", "."], "TS_V_token": ["Mips"], "File": "MipsSubtarget36", "Func": "systemSupportsUnalignedAccess", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 426, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnFunction", "(", "Function", "&", "F", ")", "override", "{", "if", "(", "!", "X86ScalarizeAMX", ")", "return", "false", ";", "TargetMachine", "*", "TM", "=", "&", "getAnalysis", "<", "TargetPassConfig", ">", "(", ")", ".", "getTM", "<", "TargetMachine", ">", "(", ")", ";", "if", "(", "!", "F", ".", "hasFnAttribute", "(", "Attribute", "::", "OptimizeNone", ")", "&&", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "return", "false", ";", "auto", "*", "DTWP", "=", "getAnalysisIfAvailable", "<", "DominatorTreeWrapperPass", ">", "(", ")", ";", "auto", "*", "DT", "=", "DTWP", "?", "&", "DTWP", "->", "getDomTree", "(", ")", ":", "nullptr", ";", "auto", "*", "LIWP", "=", "getAnalysisIfAvailable", "<", "LoopInfoWrapperPass", ">", "(", ")", ";", "auto", "*", "LI", "=", "LIWP", "?", "&", "LIWP", "->", "getLoopInfo", "(", ")", ":", "nullptr", ";", "DomTreeUpdater", "DTU", "(", "DT", ",", "DomTreeUpdater", "::", "UpdateStrategy", "::", "Lazy", ")", ";", "X86LowerAMXIntrinsics", "LAT", "(", "F", ",", "DTU", ",", "LI", ")", ";", "return", "LAT", ".", "visit", "(", ")", ";", "}", ""], "natrual_language": ["runOnFunction", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "the", "per-function", "processing", "of", "the", "pass", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86LowerAMXIntrinsics", "Func": "runOnFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 427, "Length": 143, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ComplexPatternFuncMutatesDAG", "(", ")", "const", "override", "{", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "complex", "patterns", "for", "this", "target", "can", "mutate", "the", "DAG", "."], "TS_V_token": ["X86"], "File": "X86ISelDAGToDAG (2)", "Func": "ComplexPatternFuncMutatesDAG", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 428, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsConstantIslands", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "mf", ")", "{", "MF", "=", "&", "mf", ";", "MCP", "=", "mf", ".", "getConstantPool", "(", ")", ";", "STI", "=", "&", "mf", ".", "getTarget", "(", ")", ".", "getSubtarget", "<", "MipsSubtarget", ">", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"constant island machine function \"", "<<", "\"\\n\"", ")", ";", "if", "(", "!", "STI", "->", "inMips16Mode", "(", ")", "||", "!", "MipsSubtarget", "::", "useConstantIslands", "(", ")", ")", "{", "return", "false", ";", "}", "TII", "=", "(", "const", "Mips16InstrInfo", "*", ")", "MF", "->", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "MFI", "=", "MF", "->", "getInfo", "<", "MipsFunctionInfo", ">", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"constant island processing \"", "<<", "\"\\n\"", ")", ";", "if", "(", "!", "PrescannedForConstants", ")", "prescanForConstants", "(", ")", ";", "HasFarJump", "=", "false", ";", "MF", "->", "getRegInfo", "(", ")", ".", "invalidateLiveness", "(", ")", ";", "MF", "->", "RenumberBlocks", "(", ")", ";", "bool", "MadeChange", "=", "false", ";", "std", "::", "vector", "<", "MachineInstr", "*", ">", "CPEMIs", ";", "if", "(", "!", "MCP", "->", "isEmpty", "(", ")", ")", "doInitialPlacement", "(", "CPEMIs", ")", ";", "initPICLabelUId", "(", "CPEMIs", ".", "size", "(", ")", ")", ";", "initializeFunctionInfo", "(", "CPEMIs", ")", ";", "CPEMIs", ".", "clear", "(", ")", ";", "DEBUG", "(", "dumpBBs", "(", ")", ")", ";", "MadeChange", "|=", "removeUnusedCPEntries", "(", ")", ";", "unsigned", "NoCPIters", "=", "0", ",", "NoBRIters", "=", "0", ";", "(", "void", ")", "NoBRIters", ";", "while", "(", "true", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Beginning CP iteration #\"", "<<", "NoCPIters", "<<", "'\\n'", ")", ";", "bool", "CPChange", "=", "false", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "CPUsers", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "CPChange", "|=", "handleConstantPoolUser", "(", "i", ")", ";", "if", "(", "CPChange", "&&", "++", "NoCPIters", ">", "30", ")", "report_fatal_error", "(", "\"Constant Island pass failed to converge!\"", ")", ";", "DEBUG", "(", "dumpBBs", "(", ")", ")", ";", "NewWaterList", ".", "clear", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Beginning BR iteration #\"", "<<", "NoBRIters", "<<", "'\\n'", ")", ";", "bool", "BRChange", "=", "false", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "ImmBranches", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "BRChange", "|=", "fixupImmediateBr", "(", "ImmBranches", "[", "i", "]", ")", ";", "if", "(", "BRChange", "&&", "++", "NoBRIters", ">", "30", ")", "report_fatal_error", "(", "\"Branch Fix Up pass failed to converge!\"", ")", ";", "DEBUG", "(", "dumpBBs", "(", ")", ")", ";", "if", "(", "!", "CPChange", "&&", "!", "BRChange", ")", "break", ";", "MadeChange", "=", "true", ";", "}", "DEBUG", "(", "dbgs", "(", ")", "<<", "'\\n'", ";", "dumpBBs", "(", ")", ")", ";", "BBInfo", ".", "clear", "(", ")", ";", "WaterList", ".", "clear", "(", ")", ";", "CPUsers", ".", "clear", "(", ")", ";", "CPEntries", ".", "clear", "(", ")", ";", "ImmBranches", ".", "clear", "(", ")", ";", "return", "MadeChange", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Mips", "Mips", "Mips", "\"constant island machine function \"", "\"\\n\"", "Mips", "Mips", "Mips", "Mips", "\"constant island processing \"", "\"\\n\"", "0", "0", "\"Beginning CP iteration #\"", "0", "30", "\"Constant Island pass failed to converge!\"", "\"Beginning BR iteration #\"", "0", "30", "\"Branch Fix Up pass failed to converge!\""], "File": "MipsConstantIslandPass1", "Func": "runOnMachineFunction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 429, "Length": 426, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCAIXAsmPrinter", "::", "SetupMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "MCSectionXCOFF", "*", "FnDescSec", "=", "cast", "<", "MCSectionXCOFF", ">", "(", "getObjFileLowering", "(", ")", ".", "getSectionForFunctionDescriptor", "(", "&", "MF", ".", "getFunction", "(", ")", ",", "TM", ")", ")", ";", "FnDescSec", "->", "setAlignment", "(", "Align", "(", "Subtarget", "->", "isPPC64", "(", ")", "?", "8", ":", "4", ")", ")", ";", "CurrentFnDescSym", "=", "FnDescSec", "->", "getQualNameSymbol", "(", ")", ";", "return", "AsmPrinter", "::", "SetupMachineFunction", "(", "MF", ")", ";", "}", ""], "natrual_language": ["This", "should", "be", "called", "when", "a", "new", "MachineFunction", "is", "being", "processed", "from", "runOnMachineFunction", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "8", "4"], "File": "PPCAsmPrinter (2)3", "Func": "SetupMachineFunction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 430, "Length": 71, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86InstrInfo", "::", "isReallyTriviallyReMaterializable", "(", "const", "MachineInstr", "*", "MI", ",", "AliasAnalysis", "*", "AA", ")", "const", "{", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "X86", "::", "MOV8rm", ":", "case", "X86", "::", "MOV16rm", ":", "case", "X86", "::", "MOV32rm", ":", "case", "X86", "::", "MOV64rm", ":", "case", "X86", "::", "LD_Fp64m", ":", "case", "X86", "::", "MOVSSrm", ":", "case", "X86", "::", "MOVSDrm", ":", "case", "X86", "::", "MOVAPSrm", ":", "case", "X86", "::", "MOVUPSrm", ":", "case", "X86", "::", "MOVUPSrm_Int", ":", "case", "X86", "::", "MOVAPDrm", ":", "case", "X86", "::", "MOVDQArm", ":", "case", "X86", "::", "MMX_MOVD64rm", ":", "case", "X86", "::", "MMX_MOVQ64rm", ":", "case", "X86", "::", "FsMOVAPSrm", ":", "case", "X86", "::", "FsMOVAPDrm", ":", "{", "if", "(", "MI", "->", "getOperand", "(", "1", ")", ".", "isReg", "(", ")", "&&", "MI", "->", "getOperand", "(", "2", ")", ".", "isImm", "(", ")", "&&", "MI", "->", "getOperand", "(", "3", ")", ".", "isReg", "(", ")", "&&", "MI", "->", "getOperand", "(", "3", ")", ".", "getReg", "(", ")", "==", "0", "&&", "MI", "->", "isInvariantLoad", "(", "AA", ")", ")", "{", "unsigned", "BaseReg", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "if", "(", "BaseReg", "==", "0", "||", "BaseReg", "==", "X86", "::", "RIP", ")", "return", "true", ";", "if", "(", "!", "ReMatPICStubLoad", "&&", "MI", "->", "getOperand", "(", "4", ")", ".", "isGlobal", "(", ")", ")", "return", "false", ";", "const", "MachineFunction", "&", "MF", "=", "*", "MI", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "bool", "isPICBase", "=", "false", ";", "for", "(", "MachineRegisterInfo", "::", "def_iterator", "I", "=", "MRI", ".", "def_begin", "(", "BaseReg", ")", ",", "E", "=", "MRI", ".", "def_end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "MachineInstr", "*", "DefMI", "=", "I", ".", "getOperand", "(", ")", ".", "getParent", "(", ")", ";", "if", "(", "DefMI", "->", "getOpcode", "(", ")", "!=", "X86", "::", "MOVPC32r", ")", "return", "false", ";", "assert", "(", "!", "isPICBase", "&&", "\"More than one PIC base?\"", ")", ";", "isPICBase", "=", "true", ";", "}", "return", "isPICBase", ";", "}", "return", "false", ";", "}", "case", "X86", "::", "LEA32r", ":", "case", "X86", "::", "LEA64r", ":", "{", "if", "(", "MI", "->", "getOperand", "(", "2", ")", ".", "isImm", "(", ")", "&&", "MI", "->", "getOperand", "(", "3", ")", ".", "isReg", "(", ")", "&&", "MI", "->", "getOperand", "(", "3", ")", ".", "getReg", "(", ")", "==", "0", "&&", "!", "MI", "->", "getOperand", "(", "4", ")", ".", "isReg", "(", ")", ")", "{", "if", "(", "!", "MI", "->", "getOperand", "(", "1", ")", ".", "isReg", "(", ")", ")", "return", "true", ";", "unsigned", "BaseReg", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "if", "(", "BaseReg", "==", "0", ")", "return", "true", ";", "const", "MachineFunction", "&", "MF", "=", "*", "MI", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "return", "regIsPICBase", "(", "BaseReg", ",", "MRI", ")", ";", "}", "return", "false", ";", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["For", "instructions", "with", "opcodes", "for", "which", "the", "M_REMATERIALIZABLE", "flag", "is", "set", ",", "this", "hook", "lets", "the", "target", "specify", "whether", "the", "instruction", "is", "actually", "trivially", "rematerializable", ",", "taking", "into", "consideration", "its", "operands", "."], "TS_V_token": ["X86", "X86", "X86::MOV8rm", "X86::MOV16rm", "X86::MOV32rm", "X86::MOV64rm", "X86::LD_Fp64m", "X86::MOVSSrm", "X86::MOVSDrm", "X86::MOVAPSrm", "X86::MOVUPSrm", "X86::MOVUPSrm_Int", "X86::MOVAPDrm", "X86::MOVDQArm", "X86::MMX_MOVD64rm", "X86::MMX_MOVQ64rm", "X86::FsMOVAPSrm", "X86::FsMOVAPDrm", "1", "2", "3", "3", "0", "1", "0", "X86::RIP", "4", "X86::MOVPC32r", "\"More than one PIC base?\"", "X86::LEA32r", "X86::LEA64r", "2", "3", "3", "0", "4", "1", "1", "0"], "File": "X86InstrInfo12", "Func": "isReallyTriviallyReMaterializable", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 431, "Length": 472, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86RegisterInfo", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "MachineModuleInfo", "&", "MMI", "=", "MF", ".", "getMMI", "(", ")", ";", "return", "(", "NoFramePointerElim", "||", "needsStackRealignment", "(", "MF", ")", "||", "MFI", "->", "hasVarSizedObjects", "(", ")", "||", "MFI", "->", "isFrameAddressTaken", "(", ")", "||", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", "->", "getForceFramePointer", "(", ")", "||", "MMI", ".", "callsUnwindInit", "(", ")", ")", ";", "}", ""], "natrual_language": ["hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86RegisterInfo11", "Func": "hasFP", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 432, "Length": 76, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "enableIndirectBrExpand", "(", ")", "const", "override", "{", "return", "useIndirectThunkBranches", "(", ")", ";", "}", ""], "natrual_language": ["If", "we", "are", "using", "indirect", "thunks", ",", "we", "need", "to", "expand", "indirectbr", "to", "avoid", "it", "lowering", "to", "an", "actual", "indirect", "jump", "."], "TS_V_token": ["X86"], "File": "X86Subtarget (2)2", "Func": "enableIndirectBrExpand", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 433, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_save_callee_saves", "(", "machine_mode", "mode", ",", "HOST_WIDE_INT", "start_offset", ",", "unsigned", "start", ",", "unsigned", "limit", ",", "bool", "skip_wb", ")", "{", "rtx_insn", "*", "insn", ";", "rtx", "(", "*", "gen_mem_ref", ")", "(", "machine_mode", ",", "rtx", ")", "=", "(", "frame_pointer_needed", "?", "gen_frame_mem", ":", "gen_rtx_MEM", ")", ";", "unsigned", "regno", ";", "unsigned", "regno2", ";", "for", "(", "regno", "=", "aarch64_next_callee_save", "(", "start", ",", "limit", ")", ";", "regno", "<=", "limit", ";", "regno", "=", "aarch64_next_callee_save", "(", "regno", "+", "1", ",", "limit", ")", ")", "{", "rtx", "reg", ",", "mem", ";", "HOST_WIDE_INT", "offset", ";", "if", "(", "skip_wb", "&&", "(", "regno", "==", "cfun", "->", "machine", "->", "frame", ".", "wb_candidate1", "||", "regno", "==", "cfun", "->", "machine", "->", "frame", ".", "wb_candidate2", ")", ")", "continue", ";", "if", "(", "cfun", "->", "machine", "->", "reg_is_wrapped_separately", "[", "regno", "]", ")", "continue", ";", "reg", "=", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "offset", "=", "start_offset", "+", "cfun", "->", "machine", "->", "frame", ".", "reg_offset", "[", "regno", "]", ";", "mem", "=", "gen_mem_ref", "(", "mode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ";", "regno2", "=", "aarch64_next_callee_save", "(", "regno", "+", "1", ",", "limit", ")", ";", "if", "(", "regno2", "<=", "limit", "&&", "!", "cfun", "->", "machine", "->", "reg_is_wrapped_separately", "[", "regno2", "]", "&&", "(", "(", "cfun", "->", "machine", "->", "frame", ".", "reg_offset", "[", "regno", "]", "+", "UNITS_PER_WORD", ")", "==", "cfun", "->", "machine", "->", "frame", ".", "reg_offset", "[", "regno2", "]", ")", ")", "{", "rtx", "reg2", "=", "gen_rtx_REG", "(", "mode", ",", "regno2", ")", ";", "rtx", "mem2", ";", "offset", "=", "start_offset", "+", "cfun", "->", "machine", "->", "frame", ".", "reg_offset", "[", "regno2", "]", ";", "mem2", "=", "gen_mem_ref", "(", "mode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ";", "insn", "=", "emit_insn", "(", "aarch64_gen_store_pair", "(", "mode", ",", "mem", ",", "reg", ",", "mem2", ",", "reg2", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "XVECEXP", "(", "PATTERN", "(", "insn", ")", ",", "0", ",", "1", ")", ")", "=", "1", ";", "regno", "=", "regno2", ";", "}", "else", "insn", "=", "emit_move_insn", "(", "mem", ",", "reg", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "}", ""], "natrual_language": ["Emit", "code", "to", "save", "the", "callee-saved", "registers", "from", "register", "number", "START", "to", "LIMIT", "to", "the", "stack", "at", "the", "location", "starting", "at", "offset", "START_OFFSET", ",", "skipping", "any", "write-back", "candidates", "if", "SKIP_WB", "is", "true", "."], "TS_V_token": ["aarch64", "1", "1", "0", "1", "1", "1"], "File": "aarch644", "Func": "aarch64_save_callee_saves", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 434, "Length": 324, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TOYSubtarget", "&", "TOYSubtarget", "::", "initializeSubtargetDependencies", "(", "StringRef", "CPU", ",", "StringRef", "FS", ",", "bool", "Is64Bit", "=", "false", ")", "{", "std", "::", "string", "CPUName", "=", "CPU", ";", "if", "(", "CPUName", ".", "empty", "(", ")", ")", "CPUName", "=", "Is64Bit", "?", "\"generic-rv64\"", ":", "\"generic-rv32\"", ";", "ParseSubtargetFeatures", "(", "CPUName", ",", "FS", ")", ";", "return", "*", "this", ";", "}", ""], "natrual_language": ["initializeSubtargetDependencies", "-", "Initializes", "using", "a", "CPU", ",", "a", "TuneCPU", ",", "and", "feature", "string", "so", "that", "we", "can", "use", "initializer", "lists", "for", "subtarget", "initialization", "."], "TS_V_token": ["TOY", "TOY", "TOY", "\"generic-rv64\"", "\"generic-rv32\""], "File": "TOYSubtarget1", "Func": "initializeSubtargetDependencies", "Target": "TOY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 435, "Length": 53, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ix86_mode_after", "(", "int", "entity", ",", "int", "mode", ",", "rtx_insn", "*", "insn", ")", "{", "switch", "(", "entity", ")", "{", "case", "X86_DIRFLAG", ":", "return", "mode", ";", "case", "AVX_U128", ":", "return", "ix86_avx_u128_mode_after", "(", "mode", ",", "insn", ")", ";", "case", "I387_TRUNC", ":", "case", "I387_FLOOR", ":", "case", "I387_CEIL", ":", "case", "I387_MASK_PM", ":", "return", "mode", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Return", "the", "mode", "that", "an", "insn", "results", "in", "."], "TS_V_token": ["i386"], "File": "i3866", "Func": "ix86_mode_after", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 436, "Length": 60, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "{", "return", "\"ARM64 branch relaxation pass\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["ARM64", "\"ARM64 branch relaxation pass\""], "File": "ARM64BranchRelaxation", "Func": "getPassName", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 437, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "reg_class_t", "rs6000_ira_change_pseudo_allocno_class", "(", "int", "regno", "ATTRIBUTE_UNUSED", ",", "reg_class_t", "allocno_class", ",", "reg_class_t", "best_class", ")", "{", "switch", "(", "allocno_class", ")", "{", "case", "GEN_OR_VSX_REGS", ":", "gcc_checking_assert", "(", "best_class", "==", "GEN_OR_VSX_REGS", "||", "best_class", "==", "GEN_OR_FLOAT_REGS", "||", "best_class", "==", "VSX_REGS", "||", "best_class", "==", "ALTIVEC_REGS", "||", "best_class", "==", "FLOAT_REGS", "||", "best_class", "==", "GENERAL_REGS", "||", "best_class", "==", "BASE_REGS", ")", ";", "if", "(", "best_class", "==", "BASE_REGS", ")", "return", "GENERAL_REGS", ";", "if", "(", "TARGET_VSX", "&&", "best_class", "==", "FLOAT_REGS", ")", "return", "VSX_REGS", ";", "return", "best_class", ";", "case", "VSX_REGS", ":", "if", "(", "best_class", "==", "ALTIVEC_REGS", ")", "return", "ALTIVEC_REGS", ";", "default", ":", "break", ";", "}", "return", "allocno_class", ";", "}", ""], "natrual_language": ["Implement", "TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS", ".", "The", "register", "allocator", "chooses", "GEN_OR_VSX_REGS", "for", "the", "allocno", "class", "if", "GENERAL_REGS", "and", "VSX_REGS", "cost", "is", "lower", "than", "the", "memory", "cost", ".", "This", "happens", "a", "lot", "when", "TARGET_DIRECT_MOVE", "makes", "the", "register", "move", "cost", "between", "GENERAL_REGS", "and", "VSX_REGS", "low", ".", "It", "might", "seem", "reasonable", "to", "use", "a", "union", "class", ".", "After", "all", ",", "if", "usage", "of", "vsr", "is", "low", "and", "gpr", "high", ",", "it", "might", "make", "sense", "to", "spill", "gpr", "to", "vsr", "rather", "than", "memory", ".", "However", ",", "in", "cases", "where", "register", "pressure", "of", "both", "is", "high", ",", "like", "the", "cactus_adm", "spec", "test", ",", "allowing", "GEN_OR_VSX_REGS", "as", "the", "allocno", "class", "results", "in", "bad", "decisions", "in", "the", "first", "scheduling", "pass", ".", "This", "is", "partly", "due", "to", "an", "allocno", "of", "GEN_OR_VSX_REGS", "wrongly", "contributing", "to", "the", "GENERAL_REGS", "pressure", "class", ",", "which", "gives", "too", "high", "a", "pressure", "for", "GENERAL_REGS", "and", "too", "low", "for", "VSX_REGS", ".", "So", ",", "force", "a", "choice", "of", "the", "subclass", "here", ".", "The", "best", "class", "is", "also", "the", "union", "if", "GENERAL_REGS", "and", "VSX_REGS", "have", "the", "same", "cost", ".", "In", "that", "case", "we", "do", "use", "GEN_OR_VSX_REGS", "as", "the", "allocno", "class", ",", "since", "trying", "to", "narrow", "down", "the", "class", "by", "regno", "mode", "is", "prone", "to", "error", ".", "For", "example", ",", "SImode", "is", "allowed", "in", "VSX", "regs", "and", "in", "some", "cases", "(", "eg", ".", "gcc.target/powerpc/p9-xxbr-3.c", "do_bswap32_vect", ")", "it", "would", "be", "wrong", "to", "choose", "an", "allocno", "of", "GENERAL_REGS", "based", "on", "SImode", "."], "TS_V_token": ["rs6000"], "File": "rs6000", "Func": "rs6000_ira_change_pseudo_allocno_class", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 438, "Length": 98, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "DLXInstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "Position", ",", "unsigned", "DestinationRegister", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RegisterClass", ",", "const", "TargetRegisterInfo", "*", "RegisterInfo", ")", "const", "{", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["DLX", "DLX"], "File": "DLXInstrInfo", "Func": "loadRegFromStackSlot", "Target": "DLX", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 439, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "unique_ptr", "<", "CSEConfigBase", ">", "X86PassConfig", "::", "getCSEConfig", "(", ")", "const", "{", "return", "getStandardCSEConfigForOpt", "(", "TM", "->", "getOptLevel", "(", ")", ")", ";", "}", ""], "natrual_language": ["Returns", "the", "CSEConfig", "object", "to", "use", "for", "the", "current", "optimization", "level", "."], "TS_V_token": ["X86", "X86"], "File": "X86TargetMachine105", "Func": "getCSEConfig", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 440, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "arm_expand_builtin_1", "(", "int", "fcode", ",", "tree", "exp", ",", "rtx", "target", ",", "arm_builtin_datum", "*", "d", ")", "{", "enum", "insn_code", "icode", "=", "d", "->", "code", ";", "builtin_arg", "args", "[", "SIMD_MAX_BUILTIN_ARGS", "+", "1", "]", ";", "int", "num_args", "=", "insn_data", "[", "d", "->", "code", "]", ".", "n_operands", ";", "int", "is_void", "=", "0", ";", "int", "k", ";", "bool", "neon", "=", "false", ";", "bool", "mve", "=", "false", ";", "if", "(", "IN_RANGE", "(", "fcode", ",", "ARM_BUILTIN_VFP_BASE", ",", "ARM_BUILTIN_ACLE_BASE", "-", "1", ")", ")", "neon", "=", "true", ";", "if", "(", "IN_RANGE", "(", "fcode", ",", "ARM_BUILTIN_MVE_BASE", ",", "ARM_BUILTIN_MAX", "-", "1", ")", ")", "mve", "=", "true", ";", "is_void", "=", "!", "!", "(", "d", "->", "qualifiers", "[", "0", "]", "&", "qualifier_void", ")", ";", "num_args", "+=", "is_void", ";", "for", "(", "k", "=", "1", ";", "k", "<", "num_args", ";", "k", "++", ")", "{", "int", "qualifiers_k", "=", "k", ";", "int", "operands_k", "=", "k", "-", "is_void", ";", "int", "expr_args_k", "=", "k", "-", "1", ";", "if", "(", "d", "->", "qualifiers", "[", "qualifiers_k", "]", "&", "qualifier_lane_index", ")", "args", "[", "k", "]", "=", "ARG_BUILTIN_LANE_INDEX", ";", "else", "if", "(", "d", "->", "qualifiers", "[", "qualifiers_k", "]", "&", "qualifier_lane_pair_index", ")", "args", "[", "k", "]", "=", "ARG_BUILTIN_LANE_PAIR_INDEX", ";", "else", "if", "(", "d", "->", "qualifiers", "[", "qualifiers_k", "]", "&", "qualifier_lane_quadtup_index", ")", "args", "[", "k", "]", "=", "ARG_BUILTIN_LANE_QUADTUP_INDEX", ";", "else", "if", "(", "d", "->", "qualifiers", "[", "qualifiers_k", "]", "&", "qualifier_struct_load_store_lane_index", ")", "args", "[", "k", "]", "=", "ARG_BUILTIN_STRUCT_LOAD_STORE_LANE_INDEX", ";", "else", "if", "(", "d", "->", "qualifiers", "[", "qualifiers_k", "]", "&", "qualifier_immediate", ")", "args", "[", "k", "]", "=", "ARG_BUILTIN_CONSTANT", ";", "else", "if", "(", "d", "->", "qualifiers", "[", "qualifiers_k", "]", "&", "qualifier_maybe_immediate", ")", "{", "rtx", "arg", "=", "expand_normal", "(", "CALL_EXPR_ARG", "(", "exp", ",", "(", "expr_args_k", ")", ")", ")", ";", "bool", "op_const_int_p", "=", "(", "CONST_INT_P", "(", "arg", ")", "&&", "(", "*", "insn_data", "[", "icode", "]", ".", "operand", "[", "operands_k", "]", ".", "predicate", ")", "(", "arg", ",", "insn_data", "[", "icode", "]", ".", "operand", "[", "operands_k", "]", ".", "mode", ")", ")", ";", "args", "[", "k", "]", "=", "op_const_int_p", "?", "ARG_BUILTIN_CONSTANT", ":", "ARG_BUILTIN_COPY_TO_REG", ";", "}", "else", "if", "(", "d", "->", "qualifiers", "[", "qualifiers_k", "]", "&", "qualifier_pointer", ")", "{", "if", "(", "neon", "||", "mve", ")", "args", "[", "k", "]", "=", "ARG_BUILTIN_NEON_MEMORY", ";", "else", "args", "[", "k", "]", "=", "ARG_BUILTIN_MEMORY", ";", "}", "else", "args", "[", "k", "]", "=", "ARG_BUILTIN_COPY_TO_REG", ";", "}", "args", "[", "k", "]", "=", "ARG_BUILTIN_STOP", ";", "return", "arm_expand_builtin_args", "(", "target", ",", "d", "->", "mode", ",", "fcode", ",", "icode", ",", "!", "is_void", ",", "exp", ",", "&", "args", "[", "1", "]", ")", ";", "}", ""], "natrual_language": ["Expand", "a", "builtin", ".", "These", "builtins", "are", "``", "special", "''", "because", "they", "do", "n't", "have", "symbolic", "constants", "defined", "per-instruction", "or", "per", "instruction-variant", ".", "Instead", ",", "the", "required", "info", "is", "looked", "up", "in", "the", "ARM_BUILTIN_DATA", "record", "that", "is", "passed", "into", "the", "function", "."], "TS_V_token": ["arm", "1", "0", "1", "1", "0", "1", "1", "1"], "File": "arm-builtins", "Func": "arm_expand_builtin_1", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 441, "Length": 401, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64CallLowering", "::", "lowerReturn", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "const", "Value", "*", "Val", ",", "unsigned", "VReg", ")", "const", "{", "MachineFunction", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "const", "Function", "&", "F", "=", "*", "MF", ".", "getFunction", "(", ")", ";", "auto", "MIB", "=", "MIRBuilder", ".", "buildInstrNoInsert", "(", "AArch64", "::", "RET_ReallyLR", ")", ";", "assert", "(", "(", "(", "Val", "&&", "VReg", ")", "||", "(", "!", "Val", "&&", "!", "VReg", ")", ")", "&&", "\"Return value without a vreg\"", ")", ";", "bool", "Success", "=", "true", ";", "if", "(", "VReg", ")", "{", "const", "AArch64TargetLowering", "&", "TLI", "=", "*", "getTLI", "<", "AArch64TargetLowering", ">", "(", ")", ";", "CCAssignFn", "*", "AssignFn", "=", "TLI", ".", "CCAssignFnForReturn", "(", "F", ".", "getCallingConv", "(", ")", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "auto", "&", "DL", "=", "F", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "ArgInfo", "OrigArg", "{", "VReg", ",", "Val", "->", "getType", "(", ")", "}", ";", "setArgFlags", "(", "OrigArg", ",", "AttributeList", "::", "ReturnIndex", ",", "DL", ",", "F", ")", ";", "SmallVector", "<", "ArgInfo", ",", "8", ">", "SplitArgs", ";", "splitToValueTypes", "(", "OrigArg", ",", "SplitArgs", ",", "DL", ",", "MRI", ",", "F", ".", "getCallingConv", "(", ")", ",", "[", "&", "]", "(", "unsigned", "Reg", ",", "uint64_t", "Offset", ")", "{", "MIRBuilder", ".", "buildExtract", "(", "Reg", ",", "VReg", ",", "Offset", ")", ";", "}", ")", ";", "OutgoingArgHandler", "Handler", "(", "MIRBuilder", ",", "MRI", ",", "MIB", ",", "AssignFn", ",", "AssignFn", ")", ";", "Success", "=", "handleAssignments", "(", "MIRBuilder", ",", "SplitArgs", ",", "Handler", ")", ";", "}", "MIRBuilder", ".", "insertInstr", "(", "MIB", ")", ";", "return", "Success", ";", "}", ""], "natrual_language": ["This", "hook", "behaves", "as", "the", "extended", "lowerReturn", "function", ",", "but", "for", "targets", "that", "do", "not", "support", "swifterror", "value", "promotion", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::RET_ReallyLR", "\"Return value without a vreg\"", "AArch64", "AArch64", "8"], "File": "AArch64CallLowering20", "Func": "lowerReturn", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 442, "Length": 247, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64CallLowering", "::", "lowerFormalArguments", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "const", "Function", "&", "F", ",", "ArrayRef", "<", "unsigned", ">", "VRegs", ")", "const", "{", "auto", "&", "Args", "=", "F", ".", "getArgumentList", "(", ")", ";", "MachineFunction", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "MachineBasicBlock", "&", "MBB", "=", "MIRBuilder", ".", "getMBB", "(", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "auto", "&", "DL", "=", "F", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "SmallVector", "<", "ArgInfo", ",", "8", ">", "SplitArgs", ";", "unsigned", "i", "=", "0", ";", "for", "(", "auto", "&", "Arg", ":", "Args", ")", "{", "ArgInfo", "OrigArg", "{", "VRegs", "[", "i", "]", ",", "Arg", ".", "getType", "(", ")", "}", ";", "setArgFlags", "(", "OrigArg", ",", "i", "+", "1", ",", "DL", ",", "F", ")", ";", "splitToValueTypes", "(", "OrigArg", ",", "SplitArgs", ",", "DL", ",", "MRI", ",", "[", "&", "]", "(", "ArrayRef", "<", "unsigned", ">", "Regs", ",", "ArrayRef", "<", "uint64_t", ">", "Offsets", ")", "{", "MIRBuilder", ".", "buildSequence", "(", "VRegs", "[", "i", "]", ",", "Regs", ",", "Offsets", ")", ";", "}", ")", ";", "++", "i", ";", "}", "if", "(", "!", "MBB", ".", "empty", "(", ")", ")", "MIRBuilder", ".", "setInstr", "(", "*", "MBB", ".", "begin", "(", ")", ")", ";", "const", "AArch64TargetLowering", "&", "TLI", "=", "*", "getTLI", "<", "AArch64TargetLowering", ">", "(", ")", ";", "CCAssignFn", "*", "AssignFn", "=", "TLI", ".", "CCAssignFnForCall", "(", "F", ".", "getCallingConv", "(", ")", ",", "false", ")", ";", "FormalArgHandler", "Handler", "(", "MIRBuilder", ",", "MRI", ")", ";", "if", "(", "!", "handleAssignments", "(", "MIRBuilder", ",", "AssignFn", ",", "SplitArgs", ",", "Handler", ")", ")", "return", "false", ";", "MIRBuilder", ".", "setMBB", "(", "MBB", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "the", "incoming", "(", "formal", ")", "arguments", ",", "described", "by", "VRegs", ",", "for", "GlobalISel", "."], "TS_V_token": ["AArch64", "AArch64", "8", "0", "1", "AArch64", "AArch64"], "File": "AArch64CallLowering22", "Func": "lowerFormalArguments", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 443, "Length": 261, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "print", "(", "raw_ostream", "&", "OS", ")", "const", "override", "{", "switch", "(", "Kind", ")", "{", "case", "k_Token", ":", "OS", "<<", "\"Token: \"", "<<", "getToken", "(", ")", "<<", "\"\\n\"", ";", "break", ";", "case", "k_Register", ":", "OS", "<<", "\"Reg: #\"", "<<", "getReg", "(", ")", "<<", "\"\\n\"", ";", "break", ";", "case", "k_Immediate", ":", "OS", "<<", "\"Imm: \"", "<<", "getImm", "(", ")", "<<", "\"\\n\"", ";", "break", ";", "case", "k_MemoryReg", ":", "OS", "<<", "\"Mem: \"", "<<", "getMemBase", "(", ")", "<<", "\"+\"", "<<", "getMemOffsetReg", "(", ")", "<<", "\"\\n\"", ";", "break", ";", "case", "k_MemoryImm", ":", "assert", "(", "getMemOff", "(", ")", "!=", "nullptr", ")", ";", "OS", "<<", "\"Mem: \"", "<<", "getMemBase", "(", ")", "<<", "\"+\"", "<<", "*", "getMemOff", "(", ")", "<<", "\"\\n\"", ";", "break", ";", "}", "}", ""], "natrual_language": ["print", "-", "Print", "a", "debug", "representation", "of", "the", "operand", "to", "the", "given", "stream", "."], "TS_V_token": ["Sparc", "\"Token: \"", "\"\\n\"", "\"Reg: #\"", "\"\\n\"", "\"Imm: \"", "\"\\n\"", "\"Mem: \"", "\"+\"", "\"\\n\"", "\"Mem: \"", "\"+\"", "\"\\n\""], "File": "SparcAsmParser", "Func": "print", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 444, "Length": 114, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "PPCTargetLowering", "::", "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", ";", "bool", "isPatchPoint", "=", "CLI", ".", "IsPatchPoint", ";", "ImmutableCallSite", "CS", "=", "CLI", ".", "CS", ";", "if", "(", "isTailCall", ")", "{", "if", "(", "Subtarget", ".", "useLongCalls", "(", ")", "&&", "!", "(", "CS", "&&", "CS", ".", "isMustTailCall", "(", ")", ")", ")", "isTailCall", "=", "false", ";", "else", "if", "(", "Subtarget", ".", "isSVR4ABI", "(", ")", "&&", "Subtarget", ".", "isPPC64", "(", ")", ")", "isTailCall", "=", "IsEligibleForTailCallOptimization_64SVR4", "(", "Callee", ",", "CallConv", ",", "CS", ",", "isVarArg", ",", "Outs", ",", "Ins", ",", "DAG", ")", ";", "else", "isTailCall", "=", "IsEligibleForTailCallOptimization", "(", "Callee", ",", "CallConv", ",", "isVarArg", ",", "Ins", ",", "DAG", ")", ";", "if", "(", "isTailCall", ")", "{", "++", "NumTailCalls", ";", "if", "(", "!", "getTargetMachine", "(", ")", ".", "Options", ".", "GuaranteedTailCallOpt", ")", "++", "NumSiblingCalls", ";", "assert", "(", "isa", "<", "GlobalAddressSDNode", ">", "(", "Callee", ")", "&&", "\"Callee should be an llvm::Function object.\"", ")", ";", "DEBUG", "(", "const", "GlobalValue", "*", "GV", "=", "cast", "<", "GlobalAddressSDNode", ">", "(", "Callee", ")", "->", "getGlobal", "(", ")", ";", "const", "unsigned", "Width", "=", "80", "-", "strlen", "(", "\"TCO caller: \"", ")", "-", "strlen", "(", "\", callee linkage: 0, 0\"", ")", ";", "dbgs", "(", ")", "<<", "\"TCO caller: \"", "<<", "left_justify", "(", "DAG", ".", "getMachineFunction", "(", ")", ".", "getName", "(", ")", ",", "Width", ")", "<<", "\", callee linkage: \"", "<<", "GV", "->", "getVisibility", "(", ")", "<<", "\", \"", "<<", "GV", "->", "getLinkage", "(", ")", "<<", "\"\\n\"", ")", ";", "}", "}", "if", "(", "!", "isTailCall", "&&", "CS", "&&", "CS", ".", "isMustTailCall", "(", ")", ")", "report_fatal_error", "(", "\"failed to perform tail call elimination on a call \"", "\"site marked musttail\"", ")", ";", "if", "(", "Subtarget", ".", "useLongCalls", "(", ")", "&&", "isa", "<", "GlobalAddressSDNode", ">", "(", "Callee", ")", "&&", "!", "isTailCall", ")", "Callee", "=", "LowerGlobalAddress", "(", "Callee", ",", "DAG", ")", ";", "if", "(", "Subtarget", ".", "isSVR4ABI", "(", ")", ")", "{", "if", "(", "Subtarget", ".", "isPPC64", "(", ")", ")", "return", "LowerCall_64SVR4", "(", "Chain", ",", "Callee", ",", "CallConv", ",", "isVarArg", ",", "isTailCall", ",", "isPatchPoint", ",", "Outs", ",", "OutVals", ",", "Ins", ",", "dl", ",", "DAG", ",", "InVals", ",", "CS", ")", ";", "else", "return", "LowerCall_32SVR4", "(", "Chain", ",", "Callee", ",", "CallConv", ",", "isVarArg", ",", "isTailCall", ",", "isPatchPoint", ",", "Outs", ",", "OutVals", ",", "Ins", ",", "dl", ",", "DAG", ",", "InVals", ",", "CS", ")", ";", "}", "return", "LowerCall_Darwin", "(", "Chain", ",", "Callee", ",", "CallConv", ",", "isVarArg", ",", "isTailCall", ",", "isPatchPoint", ",", "Outs", ",", "OutVals", ",", "Ins", ",", "dl", ",", "DAG", ",", "InVals", ",", "CS", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "calls", "into", "the", "specified", "DAG", "."], "TS_V_token": ["PowerPC", "PPC", "ISD::OutputArg", "ISD::InputArg", "PPC", "\"Callee should be an llvm::Function object.\"", "80", "\"TCO caller: \"", "\", callee linkage: 0, 0\"", "\"TCO caller: \"", "\", callee linkage: \"", "\", \"", "\"\\n\"", "\"failed to perform tail call elimination on a call \"", "\"site marked musttail\"", "PPC"], "File": "PPCISelLowering106", "Func": "LowerCall", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 445, "Length": 472, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MachineDomTreeNode", "*", "MBBInfo", "::", "getNode", "(", ")", "const", "{", "return", "Node", ";", "}", ""], "natrual_language": ["getNode", "{"], "TS_V_token": ["Mips"], "File": "MipsOptimizePICCall", "Func": "getNode", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 446, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MINA32RegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "MI", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", "RS", ")", "const", "{", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["MINA32", "MINA32"], "File": "MINA32RegisterInfo", "Func": "eliminateFrameIndex", "Target": "MINA32", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 447, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_record_potential_advsimd_unrolling", "(", "loop_vec_info", "loop_vinfo", ",", "aarch64_vector_costs", "*", "costs", ")", "{", "if", "(", "!", "(", "aarch64_tune_params", ".", "extra_tuning_flags", "&", "AARCH64_EXTRA_TUNE_MATCHED_VECTOR_THROUGHPUT", ")", ")", "return", ";", "if", "(", "!", "(", "costs", "->", "vec_flags", "&", "VEC_ANY_SVE", ")", ")", "return", ";", "if", "(", "aarch64_autovec_preference", "==", "2", ")", "return", ";", "if", "(", "LOOP_VINFO_LOOP", "(", "loop_vinfo", ")", "->", "inner", ")", "return", ";", "if", "(", "!", "LOOP_VINFO_NITERS_KNOWN_P", "(", "loop_vinfo", ")", "||", "aarch64_sve_vg", ".", "is_constant", "(", ")", ")", "return", ";", "unsigned", "int", "estimated_vq", "=", "aarch64_estimated_sve_vq", "(", ")", ";", "unsigned", "int", "advsimd_vf", "=", "CEIL", "(", "vect_vf_for_cost", "(", "loop_vinfo", ")", ",", "estimated_vq", ")", ";", "unsigned", "HOST_WIDE_INT", "unrolled_advsimd_niters", "=", "LOOP_VINFO_INT_NITERS", "(", "loop_vinfo", ")", "/", "advsimd_vf", ";", "if", "(", "unrolled_advsimd_niters", ">", "(", "unsigned", "int", ")", "param_max_completely_peel_times", ")", "return", ";", "costs", "->", "unrolled_advsimd_niters", "=", "unrolled_advsimd_niters", ";", "}", ""], "natrual_language": ["Decide", "whether", "to", "use", "the", "unrolling", "heuristic", "described", "above", "aarch64_vector_costs", ":", ":unrolled_advsimd_niters", ",", "updating", "that", "field", "if", "so", ".", "LOOP_VINFO", "describes", "the", "loop", "that", "we", "'re", "vectorizing", "and", "COSTS", "are", "the", "costs", "that", "we", "'re", "calculating", "for", "it", "."], "TS_V_token": ["aarch64", "2"], "File": "aarch641", "Func": "aarch64_record_potential_advsimd_unrolling", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 448, "Length": 125, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mep_legitimate_constant_p", "(", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "rtx", "x", ")", "{", "if", "(", "GET_CODE", "(", "x", ")", "==", "SYMBOL_REF", "&&", "(", "reload_in_progress", "||", "reload_completed", ")", ")", "{", "char", "e", "=", "mep_section_tag", "(", "x", ")", ";", "return", "(", "e", "!=", "'t'", "&&", "e", "!=", "'b'", ")", ";", "}", "return", "1", ";", "}", ""], "natrual_language": ["Implement", "TARGET_LEGITIMATE_CONSTANT_P", "."], "TS_V_token": ["mep", "1"], "File": "mep", "Func": "mep_legitimate_constant_p", "Target": "mep", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 449, "Length": 52, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MVT", "getScalarShiftAmountTy", "(", "EVT", "LHSTy", ")", "const", "override", "{", "return", "MVT", "::", "i32", ";", "}", ""], "natrual_language": ["Return", "the", "type", "to", "use", "for", "a", "scalar", "shift", "opcode", ",", "given", "the", "shifted", "amount", "type", "."], "TS_V_token": ["Mips", "MVT::i32"], "File": "MipsISelLowering10", "Func": "getScalarShiftAmountTy", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 450, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ia64_direct_return", "(", "void", ")", "{", "if", "(", "reload_completed", "&&", "!", "frame_pointer_needed", ")", "{", "ia64_compute_frame_size", "(", "get_frame_size", "(", ")", ")", ";", "return", "(", "current_frame_info", ".", "total_size", "==", "0", "&&", "current_frame_info", ".", "n_spilled", "==", "0", "&&", "current_frame_info", ".", "r", "[", "reg_save_b0", "]", "==", "0", "&&", "current_frame_info", ".", "r", "[", "reg_save_pr", "]", "==", "0", "&&", "current_frame_info", ".", "r", "[", "reg_save_ar_pfs", "]", "==", "0", "&&", "current_frame_info", ".", "r", "[", "reg_save_ar_unat", "]", "==", "0", "&&", "current_frame_info", ".", "r", "[", "reg_save_ar_lc", "]", "==", "0", ")", ";", "}", "return", "0", ";", "}", ""], "natrual_language": ["Return", "1", "if", "br.ret", "can", "do", "all", "the", "work", "required", "to", "return", "from", "a", "function", "."], "TS_V_token": ["ia64", "0", "0", "0", "0", "0", "0", "0", "0"], "File": "ia64", "Func": "ia64_direct_return", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 451, "Length": 86, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARM64TargetLowering", "::", "isShuffleMaskLegal", "(", "const", "SmallVectorImpl", "<", "int", ">", "&", "M", ",", "EVT", "VT", ")", "const", "{", "if", "(", "VT", ".", "getVectorNumElements", "(", ")", "==", "4", "&&", "(", "VT", ".", "is128BitVector", "(", ")", "||", "VT", ".", "is64BitVector", "(", ")", ")", ")", "{", "unsigned", "PFIndexes", "[", "4", "]", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "4", ";", "++", "i", ")", "{", "if", "(", "M", "[", "i", "]", "<", "0", ")", "PFIndexes", "[", "i", "]", "=", "8", ";", "else", "PFIndexes", "[", "i", "]", "=", "M", "[", "i", "]", ";", "}", "unsigned", "PFTableIndex", "=", "PFIndexes", "[", "0", "]", "*", "9", "*", "9", "*", "9", "+", "PFIndexes", "[", "1", "]", "*", "9", "*", "9", "+", "PFIndexes", "[", "2", "]", "*", "9", "+", "PFIndexes", "[", "3", "]", ";", "unsigned", "PFEntry", "=", "PerfectShuffleTable", "[", "PFTableIndex", "]", ";", "unsigned", "Cost", "=", "(", "PFEntry", ">>", "30", ")", ";", "if", "(", "Cost", "<=", "4", ")", "return", "true", ";", "}", "bool", "DummyBool", ";", "int", "DummyInt", ";", "unsigned", "DummyUnsigned", ";", "return", "(", "ShuffleVectorSDNode", "::", "isSplatMask", "(", "&", "M", "[", "0", "]", ",", "VT", ")", "||", "isREVMask", "(", "M", ",", "VT", ",", "64", ")", "||", "isREVMask", "(", "M", ",", "VT", ",", "32", ")", "||", "isREVMask", "(", "M", ",", "VT", ",", "16", ")", "||", "isEXTMask", "(", "M", ",", "VT", ",", "DummyBool", ",", "DummyUnsigned", ")", "||", "isTRNMask", "(", "M", ",", "VT", ",", "DummyUnsigned", ")", "||", "isUZPMask", "(", "M", ",", "VT", ",", "DummyUnsigned", ")", "||", "isZIPMask", "(", "M", ",", "VT", ",", "DummyUnsigned", ")", "||", "isTRN_v_undef_Mask", "(", "M", ",", "VT", ",", "DummyUnsigned", ")", "||", "isUZP_v_undef_Mask", "(", "M", ",", "VT", ",", "DummyUnsigned", ")", "||", "isZIP_v_undef_Mask", "(", "M", ",", "VT", ",", "DummyUnsigned", ")", "||", "isINSMask", "(", "M", ",", "VT", ".", "getVectorNumElements", "(", ")", ",", "DummyBool", ",", "DummyInt", ")", "||", "isConcatMask", "(", "M", ",", "VT", ",", "VT", ".", "getSizeInBits", "(", ")", "==", "128", ")", ")", ";", "}", ""], "natrual_language": ["Targets", "can", "use", "this", "to", "indicate", "that", "they", "only", "support", "some", "VECTOR_SHUFFLE", "operations", ",", "those", "with", "specific", "masks", "."], "TS_V_token": ["ARM64", "ARM64", "4", "4", "0", "4", "0", "8", "0", "9", "9", "9", "1", "9", "9", "2", "9", "3", "30", "4", "0", "64", "32", "16", "128"], "File": "ARM64ISelLowering", "Func": "isShuffleMaskLegal", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 452, "Length": 302, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "gen_stack_pointer_inc", "(", "rtx", "increment", ")", "{", "return", "gen_rtx_SET", "(", "VOIDmode", ",", "stack_pointer_rtx", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "increment", ")", ")", ";", "}", ""], "natrual_language": ["Generate", "an", "increment", "for", "the", "stack", "pointer", "."], "TS_V_token": ["sparc"], "File": "sparc3", "Func": "gen_stack_pointer_inc", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 453, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SMLoc", "getStartLoc", "(", ")", "const", "override", "{", "return", "StartLoc", ";", "}", ""], "natrual_language": ["getStartLoc", "-", "Get", "the", "location", "of", "the", "first", "token", "of", "this", "operand", "."], "TS_V_token": ["OR1K"], "File": "OR1KAsmParser1", "Func": "getStartLoc", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 454, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "nds32_expand_builtin_load", "(", "enum", "insn_code", "icode", ",", "tree", "exp", ",", "rtx", "target", ")", "{", "rtx", "pat", ";", "rtx", "op0", "=", "nds32_read_argument", "(", "exp", ",", "0", ")", ";", "rtx", "addr_helper", "=", "gen_reg_rtx", "(", "insn_data", "[", "icode", "]", ".", "operand", "[", "1", "]", ".", "mode", ")", ";", "target", "=", "nds32_legitimize_target", "(", "icode", ",", "target", ")", ";", "op0", "=", "nds32_legitimize_argument", "(", "icode", ",", "1", ",", "op0", ")", ";", "pat", "=", "GEN_FCN", "(", "icode", ")", "(", "target", ",", "op0", ",", "addr_helper", ")", ";", "if", "(", "!", "pat", ")", "return", "NULL_RTX", ";", "emit_move_insn", "(", "addr_helper", ",", "GEN_INT", "(", "0", ")", ")", ";", "emit_insn", "(", "pat", ")", ";", "return", "target", ";", "}", ""], "natrual_language": ["Expand", "builtins", "for", "load", "."], "TS_V_token": ["nds32", "0", "1", "1", "0"], "File": "nds32-intrinsic", "Func": "nds32_expand_builtin_load", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 455, "Length": 107, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_function_ok_for_sibcall", "(", "tree", "decl", "ATTRIBUTE_UNUSED", ",", "tree", "exp", "ATTRIBUTE_UNUSED", ")", "{", "return", "TARGET_SIBCALLS", ";", "}", ""], "natrual_language": ["We", "can", "handle", "any", "sibcall", "when", "TARGET_SIBCALLS", "is", "true", "."], "TS_V_token": ["mips"], "File": "mips3", "Func": "mips_function_ok_for_sibcall", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 456, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "XNCMInstrInfo", "*", "getInstrInfo", "(", ")", "const", "{", "return", "&", "InstrInfo", ";", "}", ""], "natrual_language": ["TargetInstrInfo", "getter", "."], "TS_V_token": ["XNCM", "XNCM"], "File": "XNCMTargetMachine", "Func": "getInstrInfo", "Target": "XNCM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 457, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "EVT", "SystemZTargetLowering", "::", "getOptimalMemOpType", "(", "const", "MemOp", "&", "Op", ",", "const", "AttributeList", "&", "FuncAttributes", ")", "const", "{", "return", "Subtarget", ".", "hasVector", "(", ")", "?", "MVT", "::", "v2i64", ":", "MVT", "::", "Other", ";", "}", ""], "natrual_language": ["It", "returns", "EVT", ":", ":Other", "if", "the", "type", "should", "be", "determined", "using", "generic", "target-independent", "logic", "."], "TS_V_token": ["SystemZ", "SystemZ", "MVT::v2i64", "MVT::Other"], "File": "SystemZISelLowering57", "Func": "getOptimalMemOpType", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 458, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SMLoc", "getStartLoc", "(", ")", "const", "{", "return", "StartLoc", ";", "}", ""], "natrual_language": ["getStartLoc", "-", "Get", "the", "location", "of", "the", "first", "token", "of", "this", "operand", "."], "TS_V_token": ["Mips"], "File": "MipsAsmParser102", "Func": "getStartLoc", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 459, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_conditional_register_usage", "(", "void", ")", "{", "int", "i", ";", "if", "(", "TARGET_DEBUG_TARGET", ")", "fprintf", "(", "stderr", ",", "\"rs6000_conditional_register_usage called\\n\"", ")", ";", "fixed_regs", "[", "64", "]", "=", "1", ";", "if", "(", "TARGET_64BIT", ")", "fixed_regs", "[", "13", "]", "=", "call_used_regs", "[", "13", "]", "=", "call_really_used_regs", "[", "13", "]", "=", "1", ";", "if", "(", "TARGET_SOFT_FLOAT", ")", "for", "(", "i", "=", "32", ";", "i", "<", "64", ";", "i", "++", ")", "fixed_regs", "[", "i", "]", "=", "call_used_regs", "[", "i", "]", "=", "call_really_used_regs", "[", "i", "]", "=", "1", ";", "if", "(", "DEFAULT_ABI", "==", "ABI_AIX", "||", "DEFAULT_ABI", "==", "ABI_ELFv2", ")", "call_really_used_regs", "[", "2", "]", "=", "0", ";", "if", "(", "DEFAULT_ABI", "==", "ABI_V4", "&&", "flag_pic", "==", "2", ")", "fixed_regs", "[", "RS6000_PIC_OFFSET_TABLE_REGNUM", "]", "=", "1", ";", "if", "(", "DEFAULT_ABI", "==", "ABI_V4", "&&", "flag_pic", "==", "1", ")", "fixed_regs", "[", "RS6000_PIC_OFFSET_TABLE_REGNUM", "]", "=", "call_used_regs", "[", "RS6000_PIC_OFFSET_TABLE_REGNUM", "]", "=", "call_really_used_regs", "[", "RS6000_PIC_OFFSET_TABLE_REGNUM", "]", "=", "1", ";", "if", "(", "DEFAULT_ABI", "==", "ABI_DARWIN", "&&", "flag_pic", ")", "fixed_regs", "[", "RS6000_PIC_OFFSET_TABLE_REGNUM", "]", "=", "call_used_regs", "[", "RS6000_PIC_OFFSET_TABLE_REGNUM", "]", "=", "call_really_used_regs", "[", "RS6000_PIC_OFFSET_TABLE_REGNUM", "]", "=", "1", ";", "if", "(", "TARGET_TOC", "&&", "TARGET_MINIMAL_TOC", ")", "fixed_regs", "[", "RS6000_PIC_OFFSET_TABLE_REGNUM", "]", "=", "call_used_regs", "[", "RS6000_PIC_OFFSET_TABLE_REGNUM", "]", "=", "1", ";", "if", "(", "!", "TARGET_ALTIVEC", "&&", "!", "TARGET_VSX", ")", "{", "for", "(", "i", "=", "FIRST_ALTIVEC_REGNO", ";", "i", "<=", "LAST_ALTIVEC_REGNO", ";", "++", "i", ")", "fixed_regs", "[", "i", "]", "=", "call_used_regs", "[", "i", "]", "=", "call_really_used_regs", "[", "i", "]", "=", "1", ";", "call_really_used_regs", "[", "VRSAVE_REGNO", "]", "=", "1", ";", "}", "if", "(", "TARGET_ALTIVEC", "||", "TARGET_VSX", ")", "global_regs", "[", "VSCR_REGNO", "]", "=", "1", ";", "if", "(", "TARGET_ALTIVEC_ABI", ")", "{", "for", "(", "i", "=", "FIRST_ALTIVEC_REGNO", ";", "i", "<", "FIRST_ALTIVEC_REGNO", "+", "20", ";", "++", "i", ")", "call_used_regs", "[", "i", "]", "=", "call_really_used_regs", "[", "i", "]", "=", "1", ";", "if", "(", "TARGET_XCOFF", ")", "for", "(", "i", "=", "FIRST_ALTIVEC_REGNO", "+", "20", ";", "i", "<", "FIRST_ALTIVEC_REGNO", "+", "32", ";", "++", "i", ")", "fixed_regs", "[", "i", "]", "=", "call_used_regs", "[", "i", "]", "=", "call_really_used_regs", "[", "i", "]", "=", "1", ";", "}", "}", ""], "natrual_language": ["Change", "register", "usage", "conditional", "on", "target", "flags", "."], "TS_V_token": ["rs6000", "\"rs6000_conditional_register_usage called\\n\"", "64", "1", "13", "13", "13", "1", "32", "64", "1", "2", "0", "2", "1", "1", "1", "1", "1", "1", "1", "1", "20", "1", "20", "32", "1"], "File": "rs60007", "Func": "rs6000_conditional_register_usage", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 460, "Length": 319, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_default_align", "(", "struct", "gcc_options", "*", "opts", ")", "{", "if", "(", "opts", "->", "x_align_loops", "==", "0", ")", "{", "opts", "->", "x_align_loops", "=", "processor_target_table", "[", "ix86_tune", "]", ".", "align_loop", ";", "align_loops_max_skip", "=", "processor_target_table", "[", "ix86_tune", "]", ".", "align_loop_max_skip", ";", "}", "if", "(", "opts", "->", "x_align_jumps", "==", "0", ")", "{", "opts", "->", "x_align_jumps", "=", "processor_target_table", "[", "ix86_tune", "]", ".", "align_jump", ";", "align_jumps_max_skip", "=", "processor_target_table", "[", "ix86_tune", "]", ".", "align_jump_max_skip", ";", "}", "if", "(", "opts", "->", "x_align_functions", "==", "0", ")", "{", "opts", "->", "x_align_functions", "=", "processor_target_table", "[", "ix86_tune", "]", ".", "align_func", ";", "}", "}", ""], "natrual_language": ["Default", "align_", "*", "from", "the", "processor", "table", "."], "TS_V_token": ["i386", "0", "0", "0"], "File": "i3865", "Func": "ix86_default_align", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 461, "Length": 92, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "VEInstrInfo", "::", "insertBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "*", "TBB", ",", "MachineBasicBlock", "*", "FBB", ",", "ArrayRef", "<", "MachineOperand", ">", "Cond", ",", "const", "DebugLoc", "&", "DL", ",", "int", "*", "BytesAdded", ")", "const", "{", "assert", "(", "TBB", "&&", "\"insertBranch must not be told to insert a fallthrough\"", ")", ";", "assert", "(", "(", "Cond", ".", "size", "(", ")", "==", "3", "||", "Cond", ".", "size", "(", ")", "==", "0", ")", "&&", "\"VE branch conditions should have three component!\"", ")", ";", "assert", "(", "!", "BytesAdded", "&&", "\"code size not handled\"", ")", ";", "if", "(", "Cond", ".", "empty", "(", ")", ")", "{", "assert", "(", "!", "FBB", "&&", "\"Unconditional branch with multiple successors!\"", ")", ";", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "VE", "::", "BRCFLa_t", ")", ")", ".", "addMBB", "(", "TBB", ")", ";", "return", "1", ";", "}", "assert", "(", "Cond", "[", "0", "]", ".", "isImm", "(", ")", "&&", "Cond", "[", "2", "]", ".", "isReg", "(", ")", "&&", "\"not implemented\"", ")", ";", "unsigned", "opc", "[", "2", "]", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "&", "getRegisterInfo", "(", ")", ";", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "MachineRegisterInfo", "&", "MRI", "=", "MF", "->", "getRegInfo", "(", ")", ";", "unsigned", "Reg", "=", "Cond", "[", "2", "]", ".", "getReg", "(", ")", ";", "if", "(", "IsIntegerCC", "(", "Cond", "[", "0", "]", ".", "getImm", "(", ")", ")", ")", "{", "if", "(", "TRI", "->", "getRegSizeInBits", "(", "Reg", ",", "MRI", ")", "==", "32", ")", "{", "opc", "[", "0", "]", "=", "VE", "::", "BRCFWir", ";", "opc", "[", "1", "]", "=", "VE", "::", "BRCFWrr", ";", "}", "else", "{", "opc", "[", "0", "]", "=", "VE", "::", "BRCFLir", ";", "opc", "[", "1", "]", "=", "VE", "::", "BRCFLrr", ";", "}", "}", "else", "{", "if", "(", "TRI", "->", "getRegSizeInBits", "(", "Reg", ",", "MRI", ")", "==", "32", ")", "{", "opc", "[", "0", "]", "=", "VE", "::", "BRCFSir", ";", "opc", "[", "1", "]", "=", "VE", "::", "BRCFSrr", ";", "}", "else", "{", "opc", "[", "0", "]", "=", "VE", "::", "BRCFDir", ";", "opc", "[", "1", "]", "=", "VE", "::", "BRCFDrr", ";", "}", "}", "if", "(", "Cond", "[", "1", "]", ".", "isImm", "(", ")", ")", "{", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "opc", "[", "0", "]", ")", ")", ".", "add", "(", "Cond", "[", "0", "]", ")", ".", "add", "(", "Cond", "[", "1", "]", ")", ".", "add", "(", "Cond", "[", "2", "]", ")", ".", "addMBB", "(", "TBB", ")", ";", "}", "else", "{", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "opc", "[", "1", "]", ")", ")", ".", "add", "(", "Cond", "[", "0", "]", ")", ".", "add", "(", "Cond", "[", "1", "]", ")", ".", "add", "(", "Cond", "[", "2", "]", ")", ".", "addMBB", "(", "TBB", ")", ";", "}", "if", "(", "!", "FBB", ")", "return", "1", ";", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "VE", "::", "BRCFLa_t", ")", ")", ".", "addMBB", "(", "FBB", ")", ";", "return", "2", ";", "}", ""], "natrual_language": ["Insert", "branch", "code", "into", "the", "end", "of", "the", "specified", "MachineBasicBlock", "."], "TS_V_token": ["VE", "VE", "\"insertBranch must not be told to insert a fallthrough\"", "3", "0", "\"VE branch conditions should have three component!\"", "\"code size not handled\"", "\"Unconditional branch with multiple successors!\"", "VE::BRCFLa_t", "1", "0", "2", "\"not implemented\"", "2", "2", "0", "32", "0", "VE::BRCFWir", "1", "VE::BRCFWrr", "0", "VE::BRCFLir", "1", "VE::BRCFLrr", "32", "0", "VE::BRCFSir", "1", "VE::BRCFSrr", "0", "VE::BRCFDir", "1", "VE::BRCFDrr", "1", "0", "0", "1", "2", "1", "0", "1", "2", "1", "VE::BRCFLa_t", "2"], "File": "VEInstrInfo", "Func": "insertBranch", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 462, "Length": 450, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "ix86_canonical_va_list_type", "(", "tree", "type", ")", "{", "tree", "wtype", ",", "htype", ";", "if", "(", "TREE_CODE", "(", "type", ")", "==", "MEM_REF", ")", "type", "=", "TREE_TYPE", "(", "type", ")", ";", "else", "if", "(", "POINTER_TYPE_P", "(", "type", ")", "&&", "POINTER_TYPE_P", "(", "TREE_TYPE", "(", "type", ")", ")", ")", "type", "=", "TREE_TYPE", "(", "type", ")", ";", "else", "if", "(", "POINTER_TYPE_P", "(", "type", ")", "&&", "TREE_CODE", "(", "TREE_TYPE", "(", "type", ")", ")", "==", "ARRAY_TYPE", ")", "type", "=", "TREE_TYPE", "(", "type", ")", ";", "if", "(", "TARGET_64BIT", "&&", "va_list_type_node", "!=", "NULL_TREE", ")", "{", "wtype", "=", "va_list_type_node", ";", "gcc_assert", "(", "wtype", "!=", "NULL_TREE", ")", ";", "htype", "=", "type", ";", "if", "(", "TREE_CODE", "(", "wtype", ")", "==", "ARRAY_TYPE", ")", "{", "if", "(", "TREE_CODE", "(", "htype", ")", "==", "ARRAY_TYPE", "||", "POINTER_TYPE_P", "(", "htype", ")", ")", "{", "wtype", "=", "TREE_TYPE", "(", "wtype", ")", ";", "htype", "=", "TREE_TYPE", "(", "htype", ")", ";", "}", "}", "if", "(", "TYPE_MAIN_VARIANT", "(", "wtype", ")", "==", "TYPE_MAIN_VARIANT", "(", "htype", ")", ")", "return", "va_list_type_node", ";", "wtype", "=", "sysv_va_list_type_node", ";", "gcc_assert", "(", "wtype", "!=", "NULL_TREE", ")", ";", "htype", "=", "type", ";", "if", "(", "TREE_CODE", "(", "wtype", ")", "==", "ARRAY_TYPE", ")", "{", "if", "(", "TREE_CODE", "(", "htype", ")", "==", "ARRAY_TYPE", "||", "POINTER_TYPE_P", "(", "htype", ")", ")", "{", "wtype", "=", "TREE_TYPE", "(", "wtype", ")", ";", "htype", "=", "TREE_TYPE", "(", "htype", ")", ";", "}", "}", "if", "(", "TYPE_MAIN_VARIANT", "(", "wtype", ")", "==", "TYPE_MAIN_VARIANT", "(", "htype", ")", ")", "return", "sysv_va_list_type_node", ";", "wtype", "=", "ms_va_list_type_node", ";", "gcc_assert", "(", "wtype", "!=", "NULL_TREE", ")", ";", "htype", "=", "type", ";", "if", "(", "TREE_CODE", "(", "wtype", ")", "==", "ARRAY_TYPE", ")", "{", "if", "(", "TREE_CODE", "(", "htype", ")", "==", "ARRAY_TYPE", "||", "POINTER_TYPE_P", "(", "htype", ")", ")", "{", "wtype", "=", "TREE_TYPE", "(", "wtype", ")", ";", "htype", "=", "TREE_TYPE", "(", "htype", ")", ";", "}", "}", "if", "(", "TYPE_MAIN_VARIANT", "(", "wtype", ")", "==", "TYPE_MAIN_VARIANT", "(", "htype", ")", ")", "return", "ms_va_list_type_node", ";", "return", "NULL_TREE", ";", "}", "return", "std_canonical_va_list_type", "(", "type", ")", ";", "}", ""], "natrual_language": ["Returns", "the", "canonical", "va_list", "type", "specified", "by", "TYPE", ".", "If", "there", "is", "no", "valid", "TYPE", "provided", ",", "it", "return", "NULL_TREE", "."], "TS_V_token": ["i386"], "File": "i3864", "Func": "ix86_canonical_va_list_type", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 463, "Length": 310, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "ds_t", "ia64_get_insn_spec_ds", "(", "rtx_insn", "*", "insn", ")", "{", "int", "code", "=", "get_insn_spec_code", "(", "insn", ")", ";", "switch", "(", "code", ")", "{", "case", "UNSPEC_LDA", ":", "return", "BEGIN_DATA", ";", "case", "UNSPEC_LDS", ":", "case", "UNSPEC_LDS_A", ":", "return", "BEGIN_CONTROL", ";", "case", "UNSPEC_LDSA", ":", "return", "BEGIN_DATA", "|", "BEGIN_CONTROL", ";", "default", ":", "return", "0", ";", "}", "}", ""], "natrual_language": ["If", "INSN", "is", "a", "speculative", "load", ",", "return", "a", "ds", "with", "the", "speculation", "types", ".", "Otherwise", "[", "if", "INSN", "is", "a", "normal", "instruction", "]", "return", "0", "."], "TS_V_token": ["ia64", "0"], "File": "ia64", "Func": "ia64_get_insn_spec_ds", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 464, "Length": 52, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "initializePass", "(", ")", "override", "{", "pushTTIStack", "(", "this", ")", ";", "}", ""], "natrual_language": ["initializePass", "-", "This", "method", "may", "be", "overriden", "by", "immutable", "passes", "to", "allow", "them", "to", "perform", "various", "initialization", "actions", "they", "require", "."], "TS_V_token": ["ARM64"], "File": "ARM64TargetTransformInfo", "Func": "initializePass", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 465, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "char", "*", "invalid_arg_for_unprototyped_fn", "(", "const_tree", "typelist", ",", "const_tree", "funcdecl", ",", "const_tree", "val", ")", "{", "return", "(", "!", "rs6000_darwin64_abi", "&&", "typelist", "==", "0", "&&", "TREE_CODE", "(", "TREE_TYPE", "(", "val", ")", ")", "==", "VECTOR_TYPE", "&&", "(", "funcdecl", "==", "NULL_TREE", "||", "(", "TREE_CODE", "(", "funcdecl", ")", "==", "FUNCTION_DECL", "&&", "DECL_BUILT_IN_CLASS", "(", "funcdecl", ")", "!=", "BUILT_IN_MD", ")", ")", ")", "?", "N_", "(", "\"AltiVec argument passed to unprototyped function\"", ")", ":", "NULL", ";", "}", ""], "natrual_language": ["Target", "hook", "for", "invalid_arg_for_unprototyped_fn", "."], "TS_V_token": ["rs6000", "0", "\"AltiVec argument passed to unprototyped function\""], "File": "rs6000", "Func": "invalid_arg_for_unprototyped_fn", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 466, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "HOST_WIDE_INT", "arm_shift_truncation_mask", "(", "machine_mode", "mode", ")", "{", "return", "mode", "==", "SImode", "?", "255", ":", "0", ";", "}", ""], "natrual_language": ["Implement", "TARGET_SHIFT_TRUNCATION_MASK", ".", "SImode", "shifts", "use", "normal", "ARM", "insns", "and", "therefore", "guarantee", "that", "the", "shift", "count", "is", "modulo", "256", ".", "DImode", "shifts", "(", "those", "implemented", "by", "lib1funcs.asm", "or", "by", "optabs.c", ")", "guarantee", "no", "particular", "behavior", "for", "out-of-range", "counts", "."], "TS_V_token": ["arm", "255", "0"], "File": "arm", "Func": "arm_shift_truncation_mask", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 467, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_xcoff_output_readwrite_section_asm_op", "(", "const", "char", "*", ")", "{", "fprintf", "(", "asm_out_file", ",", "\"\\t.csect %s[RW],%s\\n\"", ",", "xcoff_private_data_section_name", ",", "XCOFF_CSECT_DEFAULT_ALIGNMENT_STR", ")", ";", "}", ""], "natrual_language": ["Likewise", "for", "read-write", "sections", "."], "TS_V_token": ["rs6000", "\"\\t.csect %s[RW],%s\\n\""], "File": "rs6000", "Func": "rs6000_xcoff_output_readwrite_section_asm_op", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 468, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "SystemZRegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "FrameIndexValue", "*", "Value", ",", "RegScavenger", "*", "RS", ")", "const", "{", "assert", "(", "SPAdj", "==", "0", "&&", "\"Unxpected\"", ")", ";", "unsigned", "i", "=", "0", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "while", "(", "!", "MI", ".", "getOperand", "(", "i", ")", ".", "isFI", "(", ")", ")", "{", "++", "i", ";", "assert", "(", "i", "<", "MI", ".", "getNumOperands", "(", ")", "&&", "\"Instr doesn't have FrameIndex operand!\"", ")", ";", "}", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "i", ")", ".", "getIndex", "(", ")", ";", "unsigned", "BasePtr", "=", "(", "hasFP", "(", "MF", ")", "?", "SystemZ", "::", "R11D", ":", "SystemZ", "::", "R15D", ")", ";", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "BasePtr", ",", "false", ")", ";", "int", "Offset", "=", "getFrameIndexOffset", "(", "MF", ",", "FrameIndex", ")", "+", "MI", ".", "getOperand", "(", "i", "+", "1", ")", ".", "getImm", "(", ")", ";", "MI", ".", "setDesc", "(", "TII", ".", "getMemoryInstr", "(", "MI", ".", "getOpcode", "(", ")", ",", "Offset", ")", ")", ";", "MI", ".", "getOperand", "(", "i", "+", "1", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["SystemZ", "SystemZ", "0", "\"Unxpected\"", "0", "\"Instr doesn't have FrameIndex operand!\"", "SystemZ::R11D", "SystemZ::R15D", "1", "1", "0"], "File": "SystemZRegisterInfo2", "Func": "eliminateFrameIndex", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 469, "Length": 196, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "aarch64_comparison_type", "(", "stmt_vec_info", "stmt_info", ")", "{", "if", "(", "auto", "*", "assign", "=", "dyn_cast", "<", "gassign", "*", ">", "(", "stmt_info", "->", "stmt", ")", ")", "if", "(", "TREE_CODE_CLASS", "(", "gimple_assign_rhs_code", "(", "assign", ")", ")", "==", "tcc_comparison", ")", "return", "TREE_TYPE", "(", "gimple_assign_rhs1", "(", "assign", ")", ")", ";", "return", "aarch64_embedded_comparison_type", "(", "stmt_info", ")", ";", "}", ""], "natrual_language": ["If", "STMT_INFO", "is", "a", "comparison", "or", "contains", "an", "embedded", "comparison", ",", "return", "the", "scalar", "type", "of", "the", "values", "being", "compared", ".", "Return", "null", "otherwise", "."], "TS_V_token": ["aarch64"], "File": "aarch641", "Func": "aarch64_comparison_type", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 470, "Length": 53, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "char", "AArch64Subtarget", "::", "ClassifyGlobalReference", "(", "const", "GlobalValue", "*", "GV", ",", "const", "TargetMachine", "&", "TM", ")", "const", "{", "bool", "isDecl", "=", "GV", "->", "hasAvailableExternallyLinkage", "(", ")", ";", "if", "(", "GV", "->", "isDeclaration", "(", ")", "&&", "!", "GV", "->", "isMaterializable", "(", ")", ")", "isDecl", "=", "true", ";", "if", "(", "TM", ".", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Large", "&&", "isTargetMachO", "(", ")", ")", "return", "AArch64II", "::", "MO_GOT", ";", "if", "(", "TM", ".", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Small", "&&", "GV", "->", "isWeakForLinker", "(", ")", "&&", "isDecl", ")", "return", "AArch64II", "::", "MO_GOT", ";", "if", "(", "TM", ".", "getRelocationModel", "(", ")", "!=", "Reloc", "::", "Static", "&&", "GV", "->", "hasDefaultVisibility", "(", ")", ")", "{", "if", "(", "isTargetMachO", "(", ")", ")", "return", "(", "isDecl", "||", "GV", "->", "isWeakForLinker", "(", ")", ")", "?", "AArch64II", "::", "MO_GOT", ":", "AArch64II", "::", "MO_NO_FLAG", ";", "else", "return", "GV", "->", "hasLocalLinkage", "(", ")", "?", "AArch64II", "::", "MO_NO_FLAG", ":", "AArch64II", "::", "MO_GOT", ";", "}", "return", "AArch64II", "::", "MO_NO_FLAG", ";", "}", ""], "natrual_language": ["ClassifyGlobalReference", "-", "Find", "the", "target", "operand", "flags", "that", "describe", "how", "a", "global", "value", "should", "be", "referenced", "for", "the", "current", "subtarget", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64II::MO_GOT", "AArch64II::MO_GOT", "AArch64II::MO_GOT", "AArch64II::MO_NO_FLAG", "AArch64II::MO_NO_FLAG", "AArch64II::MO_GOT", "AArch64II::MO_NO_FLAG"], "File": "AArch64Subtarget2", "Func": "ClassifyGlobalReference", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 471, "Length": 159, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "host_detect_local_cpu", "(", "int", "argc", ",", "const", "char", "*", "*", "argv", ")", "{", "const", "char", "*", "cpu", "=", "NULL", ";", "char", "buf", "[", "128", "]", ";", "FILE", "*", "f", ";", "bool", "arch", ";", "if", "(", "argc", "<", "1", ")", "return", "NULL", ";", "arch", "=", "strcmp", "(", "argv", "[", "0", "]", ",", "\"arch\"", ")", "==", "0", ";", "if", "(", "!", "arch", "&&", "strcmp", "(", "argv", "[", "0", "]", ",", "\"tune\"", ")", ")", "return", "NULL", ";", "f", "=", "fopen", "(", "\"/proc/cpuinfo\"", ",", "\"r\"", ")", ";", "if", "(", "f", "==", "NULL", ")", "return", "NULL", ";", "while", "(", "fgets", "(", "buf", ",", "sizeof", "(", "buf", ")", ",", "f", ")", "!=", "NULL", ")", "if", "(", "startswith", "(", "buf", ",", "\"cpu model\"", ")", ")", "{", "if", "(", "strstr", "(", "buf", ",", "\"Godson2 V0.2\"", ")", "!=", "NULL", "||", "strstr", "(", "buf", ",", "\"Loongson-2 V0.2\"", ")", "!=", "NULL", "||", "strstr", "(", "buf", ",", "\"Loongson-2E\"", ")", "!=", "NULL", ")", "cpu", "=", "\"loongson2e\"", ";", "else", "if", "(", "strstr", "(", "buf", ",", "\"Godson2 V0.3\"", ")", "!=", "NULL", "||", "strstr", "(", "buf", ",", "\"Loongson-2 V0.3\"", ")", "!=", "NULL", "||", "strstr", "(", "buf", ",", "\"Loongson-2F\"", ")", "!=", "NULL", ")", "cpu", "=", "\"loongson2f\"", ";", "else", "if", "(", "strstr", "(", "buf", ",", "\"Godson3 V0.5\"", ")", "!=", "NULL", "||", "strstr", "(", "buf", ",", "\"Loongson-3 V0.5\"", ")", "!=", "NULL", "||", "strstr", "(", "buf", ",", "\"Loongson-3A\"", ")", "!=", "NULL", ")", "cpu", "=", "\"loongson3a\"", ";", "else", "if", "(", "strstr", "(", "buf", ",", "\"SiByte SB1\"", ")", "!=", "NULL", ")", "cpu", "=", "\"sb1\"", ";", "else", "if", "(", "strstr", "(", "buf", ",", "\"R5000\"", ")", "!=", "NULL", ")", "cpu", "=", "\"r5000\"", ";", "else", "if", "(", "strstr", "(", "buf", ",", "\"Octeon II\"", ")", "!=", "NULL", ")", "cpu", "=", "\"octeon2\"", ";", "else", "if", "(", "strstr", "(", "buf", ",", "\"Octeon\"", ")", "!=", "NULL", ")", "cpu", "=", "\"octeon\"", ";", "break", ";", "}", "fclose", "(", "f", ")", ";", "if", "(", "cpu", "==", "NULL", ")", "return", "NULL", ";", "return", "concat", "(", "\"-m\"", ",", "argv", "[", "0", "]", ",", "\"=\"", ",", "cpu", ",", "NULL", ")", ";", "}", ""], "natrual_language": ["This", "will", "be", "called", "by", "the", "spec", "parser", "in", "gcc.cc", "when", "it", "sees", "a", "%", ":", "local_cpu_detect", "(", "args", ")", "construct", ".", "Currently", "it", "will", "be", "called", "with", "either", "``", "cpu", "''", "or", "``", "tune", "''", "as", "argument", "depending", "on", "if", "-mcpu=native", "or", "-mtune=native", "is", "to", "be", "substituted", ".", "It", "returns", "a", "string", "containing", "new", "command", "line", "parameters", "to", "be", "put", "at", "the", "place", "of", "the", "above", "two", "options", ",", "depending", "on", "what", "CPU", "this", "is", "executed", ".", "E.g", ".", "``", "-mcpu=ultrasparc3", "''", "on", "an", "UltraSPARC", "III", "for", "-mcpu=native", ".", "If", "the", "routine", "ca", "n't", "detect", "a", "known", "processor", ",", "the", "-mcpu", "or", "-mtune", "option", "is", "discarded", ".", "ARGC", "and", "ARGV", "are", "set", "depending", "on", "the", "actual", "arguments", "given", "in", "the", "spec", "."], "TS_V_token": ["mips", "128", "1", "0", "\"arch\"", "0", "0", "\"tune\"", "\"/proc/cpuinfo\"", "\"r\"", "\"cpu model\"", "\"Godson2 V0.2\"", "\"Loongson-2 V0.2\"", "\"Loongson-2E\"", "\"loongson2e\"", "\"Godson2 V0.3\"", "\"Loongson-2 V0.3\"", "\"Loongson-2F\"", "\"loongson2f\"", "\"Godson3 V0.5\"", "\"Loongson-3 V0.5\"", "\"Loongson-3A\"", "\"loongson3a\"", "\"SiByte SB1\"", "\"sb1\"", "\"R5000\"", "\"r5000\"", "\"Octeon II\"", "\"octeon2\"", "\"Octeon\"", "\"octeon\"", "\"-m\"", "0", "\"=\""], "File": "driver-native", "Func": "host_detect_local_cpu", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 472, "Length": 320, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "PPCSubtarget", "::", "PPCSubtarget", "(", "const", "std", "::", "string", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "PPCTargetMachine", "&", "TM", ")", ":", "PPCGenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "TargetTriple", "(", "TT", ")", ",", "DL", "(", "getDataLayoutString", "(", "TargetTriple", ")", ")", ",", "IsPPC64", "(", "TargetTriple", ".", "getArch", "(", ")", "==", "Triple", "::", "ppc64", "||", "TargetTriple", ".", "getArch", "(", ")", "==", "Triple", "::", "ppc64le", ")", ",", "TargetABI", "(", "PPC_ABI_UNKNOWN", ")", ",", "FrameLowering", "(", "initializeSubtargetDependencies", "(", "CPU", ",", "FS", ")", ")", ",", "InstrInfo", "(", "*", "this", ")", ",", "TLInfo", "(", "TM", ")", ",", "TSInfo", "(", "&", "DL", ")", "{", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "PPC", "PPC", "PPC"], "File": "PPCSubtarget28", "Func": "PPCSubtarget", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 473, "Length": 109, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64BranchTargets", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "const", "Function", "&", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "if", "(", "!", "F", ".", "hasFnAttribute", "(", "\"branch-target-enforcement\"", ")", ")", "return", "false", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"********** AArch64 Branch Targets **********\\n\"", "<<", "\"********** Function: \"", "<<", "MF", ".", "getName", "(", ")", "<<", "'\\n'", ")", ";", "SmallPtrSet", "<", "MachineBasicBlock", "*", ",", "8", ">", "JumpTableTargets", ";", "if", "(", "auto", "*", "JTI", "=", "MF", ".", "getJumpTableInfo", "(", ")", ")", "for", "(", "auto", "&", "JTE", ":", "JTI", "->", "getJumpTables", "(", ")", ")", "for", "(", "auto", "*", "MBB", ":", "JTE", ".", "MBBs", ")", "JumpTableTargets", ".", "insert", "(", "MBB", ")", ";", "bool", "MadeChange", "=", "false", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "{", "bool", "CouldCall", "=", "false", ",", "CouldJump", "=", "false", ";", "if", "(", "&", "MBB", "==", "&", "*", "MF", ".", "begin", "(", ")", "&&", "(", "F", ".", "hasAddressTaken", "(", ")", "||", "!", "F", ".", "hasLocalLinkage", "(", ")", ")", ")", "CouldCall", "=", "true", ";", "if", "(", "MBB", ".", "hasAddressTaken", "(", ")", "||", "JumpTableTargets", ".", "count", "(", "&", "MBB", ")", ")", "CouldJump", "=", "true", ";", "if", "(", "CouldCall", "||", "CouldJump", ")", "{", "addBTI", "(", "MBB", ",", "CouldCall", ",", "CouldJump", ")", ";", "MadeChange", "=", "true", ";", "}", "}", "return", "MadeChange", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "\"branch-target-enforcement\"", "\"********** AArch64 Branch Targets **********\\n\"", "\"********** Function: \"", "8"], "File": "AArch64BranchTargets", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 474, "Length": 204, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "MipsRegisterInfo", "*", "getRegisterInfo", "(", ")", "const", "{", "return", "&", "InstrInfo", ".", "getRegisterInfo", "(", ")", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsTargetMachine", "Func": "getRegisterInfo", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 475, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "MCSymbol", "*", "GetSymbolFromOperand", "(", "const", "MachineOperand", "&", "MO", ",", "AsmPrinter", "&", "AP", ")", "{", "const", "TargetMachine", "&", "TM", "=", "AP", ".", "TM", ";", "Mangler", "*", "Mang", "=", "AP", ".", "Mang", ";", "const", "DataLayout", "*", "DL", "=", "TM", ".", "getDataLayout", "(", ")", ";", "MCContext", "&", "Ctx", "=", "AP", ".", "OutContext", ";", "bool", "isDarwin", "=", "TM", ".", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ".", "isDarwin", "(", ")", ";", "SmallString", "<", "128", ">", "Name", ";", "StringRef", "Suffix", ";", "if", "(", "MO", ".", "getTargetFlags", "(", ")", "==", "PPCII", "::", "MO_PLT_OR_STUB", ")", "{", "if", "(", "isDarwin", ")", "Suffix", "=", "\"$stub\"", ";", "}", "else", "if", "(", "MO", ".", "getTargetFlags", "(", ")", "&", "PPCII", "::", "MO_NLP_FLAG", ")", "Suffix", "=", "\"$non_lazy_ptr\"", ";", "if", "(", "!", "Suffix", ".", "empty", "(", ")", ")", "Name", "+=", "DL", "->", "getPrivateGlobalPrefix", "(", ")", ";", "unsigned", "PrefixLen", "=", "Name", ".", "size", "(", ")", ";", "if", "(", "!", "MO", ".", "isGlobal", "(", ")", ")", "{", "assert", "(", "MO", ".", "isSymbol", "(", ")", "&&", "\"Isn't a symbol reference\"", ")", ";", "Mang", "->", "getNameWithPrefix", "(", "Name", ",", "MO", ".", "getSymbolName", "(", ")", ")", ";", "}", "else", "{", "const", "GlobalValue", "*", "GV", "=", "MO", ".", "getGlobal", "(", ")", ";", "TM", ".", "getNameWithPrefix", "(", "Name", ",", "GV", ",", "*", "Mang", ")", ";", "}", "unsigned", "OrigLen", "=", "Name", ".", "size", "(", ")", "-", "PrefixLen", ";", "Name", "+=", "Suffix", ";", "MCSymbol", "*", "Sym", "=", "Ctx", ".", "GetOrCreateSymbol", "(", "Name", ".", "str", "(", ")", ")", ";", "StringRef", "OrigName", "=", "StringRef", "(", "Name", ")", ".", "substr", "(", "PrefixLen", ",", "OrigLen", ")", ";", "if", "(", "MO", ".", "getTargetFlags", "(", ")", "==", "PPCII", "::", "MO_PLT_OR_STUB", "&&", "isDarwin", ")", "{", "MachineModuleInfoImpl", "::", "StubValueTy", "&", "StubSym", "=", "getMachOMMI", "(", "AP", ")", ".", "getFnStubEntry", "(", "Sym", ")", ";", "if", "(", "StubSym", ".", "getPointer", "(", ")", ")", "return", "Sym", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "StubSym", "=", "MachineModuleInfoImpl", "::", "StubValueTy", "(", "AP", ".", "getSymbol", "(", "MO", ".", "getGlobal", "(", ")", ")", ",", "!", "MO", ".", "getGlobal", "(", ")", "->", "hasInternalLinkage", "(", ")", ")", ";", "}", "else", "{", "StubSym", "=", "MachineModuleInfoImpl", "::", "StubValueTy", "(", "Ctx", ".", "GetOrCreateSymbol", "(", "OrigName", ")", ",", "false", ")", ";", "}", "return", "Sym", ";", "}", "if", "(", "MO", ".", "getTargetFlags", "(", ")", "&", "PPCII", "::", "MO_NLP_FLAG", ")", "{", "MachineModuleInfoMachO", "&", "MachO", "=", "getMachOMMI", "(", "AP", ")", ";", "MachineModuleInfoImpl", "::", "StubValueTy", "&", "StubSym", "=", "(", "MO", ".", "getTargetFlags", "(", ")", "&", "PPCII", "::", "MO_NLP_HIDDEN_FLAG", ")", "?", "MachO", ".", "getHiddenGVStubEntry", "(", "Sym", ")", ":", "MachO", ".", "getGVStubEntry", "(", "Sym", ")", ";", "if", "(", "!", "StubSym", ".", "getPointer", "(", ")", ")", "{", "assert", "(", "MO", ".", "isGlobal", "(", ")", "&&", "\"Extern symbol not handled yet\"", ")", ";", "StubSym", "=", "MachineModuleInfoImpl", "::", "StubValueTy", "(", "AP", ".", "getSymbol", "(", "MO", ".", "getGlobal", "(", ")", ")", ",", "!", "MO", ".", "getGlobal", "(", ")", "->", "hasInternalLinkage", "(", ")", ")", ";", "}", "return", "Sym", ";", "}", "return", "Sym", ";", "}", ""], "natrual_language": ["Lower", "an", "MO_GlobalAddress", "or", "MO_ExternalSymbol", "operand", "to", "an", "MCSymbol", "."], "TS_V_token": ["PowerPC", "PPC", "128", "PPCII::MO_PLT_OR_STUB", "\"$stub\"", "PPCII::MO_NLP_FLAG", "\"$non_lazy_ptr\"", "\"Isn't a symbol reference\"", "PPCII::MO_PLT_OR_STUB", "PPCII::MO_NLP_FLAG", "PPCII::MO_NLP_HIDDEN_FLAG", "\"Extern symbol not handled yet\""], "File": "PPCMCInstLower23", "Func": "GetSymbolFromOperand", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 476, "Length": 464, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "ConstraintType", "SystemZTargetLowering", "::", "getConstraintType", "(", "const", "std", "::", "string", "&", "Constraint", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'a'", ":", "case", "'d'", ":", "case", "'f'", ":", "case", "'r'", ":", "return", "C_RegisterClass", ";", "case", "'Q'", ":", "case", "'R'", ":", "case", "'S'", ":", "case", "'T'", ":", "case", "'m'", ":", "return", "C_Memory", ";", "case", "'I'", ":", "case", "'J'", ":", "case", "'K'", ":", "case", "'L'", ":", "case", "'M'", ":", "return", "C_Other", ";", "default", ":", "break", ";", "}", "}", "return", "TargetLowering", "::", "getConstraintType", "(", "Constraint", ")", ";", "}", ""], "natrual_language": ["Given", "a", "constraint", "letter", ",", "return", "the", "type", "of", "constraint", "for", "this", "target", "."], "TS_V_token": ["SystemZ", "SystemZ", "1", "0"], "File": "SystemZISelLowering (2)", "Func": "getConstraintType", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 477, "Length": 101, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "rs6000_expand_vector_init", "(", "rtx", "target", ",", "rtx", "vals", ")", "{", "enum", "machine_mode", "mode", "=", "GET_MODE", "(", "target", ")", ";", "enum", "machine_mode", "inner_mode", "=", "GET_MODE_INNER", "(", "mode", ")", ";", "int", "n_elts", "=", "GET_MODE_NUNITS", "(", "mode", ")", ";", "int", "n_var", "=", "0", ",", "one_var", "=", "-", "1", ";", "bool", "all_same", "=", "true", ",", "all_const_zero", "=", "true", ";", "rtx", "x", ",", "mem", ";", "int", "i", ";", "for", "(", "i", "=", "0", ";", "i", "<", "n_elts", ";", "++", "i", ")", "{", "x", "=", "XVECEXP", "(", "vals", ",", "0", ",", "i", ")", ";", "if", "(", "!", "CONSTANT_P", "(", "x", ")", ")", "++", "n_var", ",", "one_var", "=", "i", ";", "else", "if", "(", "x", "!=", "CONST0_RTX", "(", "inner_mode", ")", ")", "all_const_zero", "=", "false", ";", "if", "(", "i", ">", "0", "&&", "!", "rtx_equal_p", "(", "x", ",", "XVECEXP", "(", "vals", ",", "0", ",", "0", ")", ")", ")", "all_same", "=", "false", ";", "}", "if", "(", "n_var", "==", "0", ")", "{", "if", "(", "mode", "!=", "V4SFmode", "&&", "all_const_zero", ")", "{", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "target", ",", "gen_rtx_XOR", "(", "mode", ",", "target", ",", "target", ")", ")", ")", ";", "return", ";", "}", "else", "if", "(", "mode", "!=", "V4SFmode", "&&", "easy_vector_constant", "(", "vals", ",", "mode", ")", ")", "{", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "target", ",", "vals", ")", ")", ";", "return", ";", "}", "else", "if", "(", "all_same", ")", ";", "else", "{", "emit_move_insn", "(", "target", ",", "gen_rtx_CONST_VECTOR", "(", "mode", ",", "XVEC", "(", "vals", ",", "0", ")", ")", ")", ";", "return", ";", "}", "}", "if", "(", "all_same", ")", "{", "mem", "=", "assign_stack_temp", "(", "mode", ",", "GET_MODE_SIZE", "(", "inner_mode", ")", ",", "0", ")", ";", "emit_move_insn", "(", "adjust_address_nv", "(", "mem", ",", "inner_mode", ",", "0", ")", ",", "XVECEXP", "(", "vals", ",", "0", ",", "0", ")", ")", ";", "x", "=", "gen_rtx_UNSPEC", "(", "VOIDmode", ",", "gen_rtvec", "(", "1", ",", "const0_rtx", ")", ",", "UNSPEC_LVE", ")", ";", "emit_insn", "(", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "gen_rtvec", "(", "2", ",", "gen_rtx_SET", "(", "VOIDmode", ",", "target", ",", "mem", ")", ",", "x", ")", ")", ")", ";", "x", "=", "gen_rtx_VEC_SELECT", "(", "inner_mode", ",", "target", ",", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "gen_rtvec", "(", "1", ",", "const0_rtx", ")", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "target", ",", "gen_rtx_VEC_DUPLICATE", "(", "mode", ",", "x", ")", ")", ")", ";", "return", ";", "}", "if", "(", "n_var", "==", "1", ")", "{", "rtx", "copy", "=", "copy_rtx", "(", "vals", ")", ";", "XVECEXP", "(", "copy", ",", "0", ",", "one_var", ")", "=", "XVECEXP", "(", "vals", ",", "0", ",", "(", "one_var", "+", "1", ")", "%", "n_elts", ")", ";", "rs6000_expand_vector_init", "(", "target", ",", "copy", ")", ";", "rs6000_expand_vector_set", "(", "target", ",", "XVECEXP", "(", "vals", ",", "0", ",", "one_var", ")", ",", "one_var", ")", ";", "return", ";", "}", "mem", "=", "assign_stack_temp", "(", "mode", ",", "GET_MODE_SIZE", "(", "mode", ")", ",", "0", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "n_elts", ";", "i", "++", ")", "emit_move_insn", "(", "adjust_address_nv", "(", "mem", ",", "inner_mode", ",", "i", "*", "GET_MODE_SIZE", "(", "inner_mode", ")", ")", ",", "XVECEXP", "(", "vals", ",", "0", ",", "i", ")", ")", ";", "emit_move_insn", "(", "target", ",", "mem", ")", ";", "}", ""], "natrual_language": ["Initialize", "vector", "TARGET", "to", "VALS", "."], "TS_V_token": ["rs6000", "0", "1", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "1", "2", "1", "1", "0", "0", "1", "0", "0", "0", "0"], "File": "rs60003", "Func": "rs6000_expand_vector_init", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 478, "Length": 487, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "ix86_output_call_insn", "(", "rtx_insn", "*", "insn", ",", "rtx", "call_op", ")", "{", "bool", "direct_p", "=", "constant_call_address_operand", "(", "call_op", ",", "VOIDmode", ")", ";", "bool", "seh_nop_p", "=", "false", ";", "const", "char", "*", "xasm", ";", "if", "(", "SIBLING_CALL_P", "(", "insn", ")", ")", "{", "if", "(", "direct_p", ")", "xasm", "=", "\"%!jmp\\t%P0\"", ";", "else", "if", "(", "TARGET_SEH", ")", "xasm", "=", "\"%!rex.W jmp %A0\"", ";", "else", "xasm", "=", "\"%!jmp\\t%A0\"", ";", "output_asm_insn", "(", "xasm", ",", "&", "call_op", ")", ";", "return", "\"\"", ";", "}", "if", "(", "TARGET_SEH", ")", "{", "rtx_insn", "*", "i", ";", "for", "(", "i", "=", "NEXT_INSN", "(", "insn", ")", ";", "i", ";", "i", "=", "NEXT_INSN", "(", "i", ")", ")", "{", "if", "(", "INSN_P", "(", "i", ")", ")", "break", ";", "if", "(", "NOTE_P", "(", "i", ")", "&&", "NOTE_KIND", "(", "i", ")", "==", "NOTE_INSN_EPILOGUE_BEG", "&&", "!", "flag_non_call_exceptions", "&&", "!", "can_throw_internal", "(", "insn", ")", ")", "{", "seh_nop_p", "=", "true", ";", "break", ";", "}", "}", "if", "(", "i", "==", "NULL", ")", "seh_nop_p", "=", "true", ";", "}", "if", "(", "direct_p", ")", "xasm", "=", "\"%!call\\t%P0\"", ";", "else", "xasm", "=", "\"%!call\\t%A0\"", ";", "output_asm_insn", "(", "xasm", ",", "&", "call_op", ")", ";", "if", "(", "seh_nop_p", ")", "return", "\"nop\"", ";", "return", "\"\"", ";", "}", ""], "natrual_language": ["Output", "the", "assembly", "for", "a", "call", "instruction", "."], "TS_V_token": ["i386", "\"%!jmp\\t%P0\"", "\"%!rex.W jmp %A0\"", "\"%!jmp\\t%A0\"", "\"\"", "\"%!call\\t%P0\"", "\"%!call\\t%A0\"", "\"nop\"", "\"\""], "File": "i3864", "Func": "ix86_output_call_insn", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 479, "Length": 187, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64TargetLowering", "::", "shouldConvertConstantLoadToIntImm", "(", "const", "APInt", "&", "Imm", ",", "Type", "*", "Ty", ")", "const", "{", "assert", "(", "Ty", "->", "isIntegerTy", "(", ")", ")", ";", "unsigned", "BitSize", "=", "Ty", "->", "getPrimitiveSizeInBits", "(", ")", ";", "if", "(", "BitSize", "==", "0", ")", "return", "false", ";", "int64_t", "Val", "=", "Imm", ".", "getSExtValue", "(", ")", ";", "if", "(", "Val", "==", "0", "||", "AArch64_AM", "::", "isLogicalImmediate", "(", "Val", ",", "BitSize", ")", ")", "return", "true", ";", "if", "(", "(", "int64_t", ")", "Val", "<", "0", ")", "Val", "=", "~", "Val", ";", "if", "(", "BitSize", "==", "32", ")", "Val", "&=", "(", "1LL", "<<", "32", ")", "-", "1", ";", "unsigned", "LZ", "=", "countLeadingZeros", "(", "(", "uint64_t", ")", "Val", ")", ";", "unsigned", "Shift", "=", "(", "63", "-", "LZ", ")", "/", "16", ";", "return", "(", "Shift", "<", "3", ")", "?", "true", ":", "false", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "it", "is", "beneficial", "to", "convert", "a", "load", "of", "a", "constant", "to", "just", "the", "constant", "itself", "."], "TS_V_token": ["AArch64", "AArch64", "0", "0", "AArch64_AM::isLogicalImmediate", "0", "32", "1LL", "32", "1", "63", "16", "3"], "File": "AArch64ISelLowering117", "Func": "shouldConvertConstantLoadToIntImm", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 480, "Length": 134, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "crx_memory_move_cost", "(", "enum", "machine_mode", "mode", ",", "enum", "reg_class", "class", "ATTRIBUTE_UNUSED", ",", "int", "in", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "reg_classes_intersect_p", "(", "class", ",", "GENERAL_REGS", ")", ")", "{", "return", "4", "*", "HARD_REGNO_NREGS", "(", "0", ",", "mode", ")", ";", "}", "else", "if", "(", "reg_classes_intersect_p", "(", "class", ",", "HILO_REGS", ")", ")", "{", "return", "(", "REGISTER_MOVE_COST", "(", "mode", ",", "in", "?", "GENERAL_REGS", ":", "HILO_REGS", ",", "in", "?", "HILO_REGS", ":", "GENERAL_REGS", ")", "+", "4", ")", "*", "HARD_REGNO_NREGS", "(", "0", ",", "mode", ")", ";", "}", "else", "{", "return", "100", ";", "}", "}", ""], "natrual_language": ["Return", "the", "cost", "of", "moving", "data", "of", "mode", "MODE", "between", "a", "register", "of", "class", "*", "CLASS", "and", "memory", ";", "IN", "is", "zero", "if", "the", "value", "is", "to", "be", "written", "to", "memory", ",", "*", "nonzero", "if", "it", "is", "to", "be", "read", "in", ".", "This", "cost", "is", "relative", "to", "those", "in", "*", "REGISTER_MOVE_COST", "."], "TS_V_token": ["crx", "4", "0", "4", "0", "100"], "File": "crx", "Func": "crx_memory_move_cost", "Target": "crx", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 481, "Length": 86, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ix86_dependencies_evaluation_hook", "static", "int", "ix86_reassociation_width", "(", "unsigned", "int", "op", ",", "machine_mode", "mode", ")", "{", "int", "width", "=", "1", ";", "if", "(", "VECTOR_MODE_P", "(", "mode", ")", ")", "{", "int", "div", "=", "1", ";", "if", "(", "INTEGRAL_MODE_P", "(", "mode", ")", ")", "width", "=", "ix86_cost", "->", "reassoc_vec_int", ";", "else", "if", "(", "FLOAT_MODE_P", "(", "mode", ")", ")", "width", "=", "ix86_cost", "->", "reassoc_vec_fp", ";", "if", "(", "width", "==", "1", ")", "return", "1", ";", "if", "(", "(", "ix86_tune", "==", "PROCESSOR_ZNVER1", "||", "ix86_tune", "==", "PROCESSOR_ZNVER2", "||", "ix86_tune", "==", "PROCESSOR_ZNVER3", "||", "ix86_tune", "==", "PROCESSOR_ZNVER4", ")", "&&", "INTEGRAL_MODE_P", "(", "mode", ")", "&&", "op", "!=", "PLUS", "&&", "op", "!=", "MINUS", ")", "return", "1", ";", "if", "(", "TARGET_AVX512_SPLIT_REGS", "&&", "GET_MODE_BITSIZE", "(", "mode", ")", ">", "256", ")", "div", "=", "GET_MODE_BITSIZE", "(", "mode", ")", "/", "256", ";", "else", "if", "(", "TARGET_AVX256_SPLIT_REGS", "&&", "GET_MODE_BITSIZE", "(", "mode", ")", ">", "128", ")", "div", "=", "GET_MODE_BITSIZE", "(", "mode", ")", "/", "128", ";", "else", "if", "(", "TARGET_SSE_SPLIT_REGS", "&&", "GET_MODE_BITSIZE", "(", "mode", ")", ">", "64", ")", "div", "=", "GET_MODE_BITSIZE", "(", "mode", ")", "/", "64", ";", "width", "=", "(", "width", "+", "div", "-", "1", ")", "/", "div", ";", "}", "else", "if", "(", "INTEGRAL_MODE_P", "(", "mode", ")", ")", "width", "=", "ix86_cost", "->", "reassoc_int", ";", "else", "if", "(", "FLOAT_MODE_P", "(", "mode", ")", ")", "width", "=", "ix86_cost", "->", "reassoc_fp", ";", "if", "(", "!", "TARGET_64BIT", "&&", "width", ">", "2", ")", "width", "=", "2", ";", "return", "width", ";", "}", ""], "natrual_language": ["Implementation", "of", "reassociation_width", "target", "hook", "used", "by", "reassoc", "phase", "to", "identify", "parallelism", "level", "in", "reassociated", "tree", ".", "Statements", "tree_code", "is", "passed", "in", "OPC", ".", "Arguments", "type", "is", "passed", "in", "MODE", ".", "Currently", "parallel", "reassociation", "is", "enabled", "for", "Atom", "processors", "only", "and", "we", "set", "reassociation", "width", "to", "be", "2", "because", "Atom", "may", "issue", "up", "to", "2", "instructions", "per", "cycle", ".", "Return", "value", "should", "be", "fixed", "if", "parallel", "reassociation", "is", "enabled", "for", "other", "processors", "."], "TS_V_token": ["i386", "1", "1", "1", "1", "1", "256", "256", "128", "128", "64", "64", "1", "2", "2"], "File": "i3861", "Func": "ix86_reassociation_width", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 482, "Length": 223, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCPassConfig", "::", "addPreRegAlloc", "(", ")", "{", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "initializePPCVSXFMAMutatePass", "(", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ")", ";", "insertPass", "(", "VSXFMAMutateEarly", "?", "&", "RegisterCoalescerID", ":", "&", "MachineSchedulerID", ",", "&", "PPCVSXFMAMutateID", ")", ";", "}", "if", "(", "getPPCTargetMachine", "(", ")", ".", "isPositionIndependent", "(", ")", ")", "{", "addPass", "(", "&", "LiveVariablesID", ",", "false", ")", ";", "addPass", "(", "createPPCTLSDynamicCallPass", "(", ")", ")", ";", "}", "if", "(", "EnableExtraTOCRegDeps", ")", "addPass", "(", "createPPCTOCRegDepsPass", "(", ")", ")", ";", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "&", "MachinePipelinerID", ")", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "register", "allocation", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "PPC", "PPC", "PPC"], "File": "PPCTargetMachine1", "Func": "addPreRegAlloc", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 483, "Length": 98, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_emit_save_sse_regs_using_mov", "(", "HOST_WIDE_INT", "cfa_offset", ")", "{", "unsigned", "int", "regno", ";", "for", "(", "regno", "=", "0", ";", "regno", "<", "FIRST_PSEUDO_REGISTER", ";", "regno", "++", ")", "if", "(", "SSE_REGNO_P", "(", "regno", ")", "&&", "ix86_save_reg", "(", "regno", ",", "true", ")", ")", "{", "ix86_emit_save_reg_using_mov", "(", "V4SFmode", ",", "regno", ",", "cfa_offset", ")", ";", "cfa_offset", "-=", "GET_MODE_SIZE", "(", "V4SFmode", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "code", "to", "save", "SSE", "registers", "using", "MOV", "insns", ".", "First", "register", "is", "stored", "at", "CFA", "-", "CFA_OFFSET", "."], "TS_V_token": ["i386", "0"], "File": "i3865", "Func": "ix86_emit_save_sse_regs_using_mov", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 484, "Length": 58, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "mips_expand_builtin", "(", "tree", "exp", ",", "rtx", "target", ",", "rtx", "subtarget", "ATTRIBUTE_UNUSED", ",", "machine_mode", "mode", ",", "int", "ignore", ")", "{", "tree", "fndecl", ";", "unsigned", "int", "fcode", ",", "avail", ";", "const", "struct", "mips_builtin_description", "*", "d", ";", "fndecl", "=", "TREE_OPERAND", "(", "CALL_EXPR_FN", "(", "exp", ")", ",", "0", ")", ";", "fcode", "=", "DECL_FUNCTION_CODE", "(", "fndecl", ")", ";", "gcc_assert", "(", "fcode", "<", "ARRAY_SIZE", "(", "mips_builtins", ")", ")", ";", "d", "=", "&", "mips_builtins", "[", "fcode", "]", ";", "avail", "=", "d", "->", "avail", "(", ")", ";", "gcc_assert", "(", "avail", "!=", "0", ")", ";", "if", "(", "TARGET_MIPS16", "&&", "!", "(", "avail", "&", "BUILTIN_AVAIL_MIPS16", ")", ")", "{", "error", "(", "\"built-in function %qE not supported for MIPS16\"", ",", "DECL_NAME", "(", "fndecl", ")", ")", ";", "return", "ignore", "?", "const0_rtx", ":", "CONST0_RTX", "(", "mode", ")", ";", "}", "switch", "(", "d", "->", "builtin_type", ")", "{", "case", "MIPS_BUILTIN_DIRECT", ":", "return", "mips_expand_builtin_direct", "(", "d", "->", "icode", ",", "target", ",", "exp", ",", "true", ")", ";", "case", "MIPS_BUILTIN_DIRECT_NO_TARGET", ":", "return", "mips_expand_builtin_direct", "(", "d", "->", "icode", ",", "target", ",", "exp", ",", "false", ")", ";", "case", "MIPS_BUILTIN_MOVT", ":", "case", "MIPS_BUILTIN_MOVF", ":", "return", "mips_expand_builtin_movtf", "(", "d", "->", "builtin_type", ",", "d", "->", "icode", ",", "d", "->", "cond", ",", "target", ",", "exp", ")", ";", "case", "MIPS_BUILTIN_CMP_ANY", ":", "case", "MIPS_BUILTIN_CMP_ALL", ":", "case", "MIPS_BUILTIN_CMP_UPPER", ":", "case", "MIPS_BUILTIN_CMP_LOWER", ":", "case", "MIPS_BUILTIN_CMP_SINGLE", ":", "return", "mips_expand_builtin_compare", "(", "d", "->", "builtin_type", ",", "d", "->", "icode", ",", "d", "->", "cond", ",", "target", ",", "exp", ")", ";", "case", "MIPS_BUILTIN_BPOSGE32", ":", "return", "mips_expand_builtin_bposge", "(", "d", "->", "builtin_type", ",", "target", ")", ";", "}", "gcc_unreachable", "(", ")", ";", "}", ""], "natrual_language": ["Expand", "builtin", "functions", ".", "This", "is", "called", "from", "TARGET_EXPAND_BUILTIN", "."], "TS_V_token": ["mips", "0", "0", "\"built-in function %qE not supported for MIPS16\""], "File": "mips4", "Func": "mips_expand_builtin", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 485, "Length": 242, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "aarch64_simd_switcher", "::", "aarch64_simd_switcher", "(", "unsigned", "int", "extra_flags", ")", ":", "m_old_asm_isa_flags", "(", "aarch64_asm_isa_flags", ")", ",", "m_old_general_regs_only", "(", "TARGET_GENERAL_REGS_ONLY", ")", "{", "global_options", ".", "x_target_flags", "&=", "~", "MASK_GENERAL_REGS_ONLY", ";", "aarch64_set_asm_isa_flags", "(", "AARCH64_FL_FP", "|", "AARCH64_FL_SIMD", "|", "extra_flags", ")", ";", "}", ""], "natrual_language": ["Enable", "AARCH64_FL_", "*", "flags", "EXTRA_FLAGS", "on", "top", "of", "the", "base", "Advanced", "SIMD", "set", "."], "TS_V_token": ["aarch64", "aarch64_simd_switcher::aarch64_simd_switcher"], "File": "aarch64-builtins1", "Func": "aarch64_simd_switcher", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 486, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "VEFrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "assert", "(", "&", "MF", ".", "front", "(", ")", "==", "&", "MBB", "&&", "\"Shrink-wrapping not yet supported\"", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "VESubtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "VESubtarget", ">", "(", ")", ";", "const", "VEInstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "VEInstrInfo", "*", ">", "(", "Subtarget", ".", "getInstrInfo", "(", ")", ")", ";", "const", "VERegisterInfo", "&", "RegInfo", "=", "*", "static_cast", "<", "const", "VERegisterInfo", "*", ">", "(", "Subtarget", ".", "getRegisterInfo", "(", ")", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "begin", "(", ")", ";", "DebugLoc", "dl", ";", "bool", "NeedsStackRealignment", "=", "RegInfo", ".", "needsStackRealignment", "(", "MF", ")", ";", "if", "(", "!", "NeedsStackRealignment", "&&", "MFI", ".", "getMaxAlignment", "(", ")", ">", "getStackAlignment", "(", ")", ")", "report_fatal_error", "(", "\"Function \\\"\"", "+", "Twine", "(", "MF", ".", "getName", "(", ")", ")", "+", "\"\\\" required \"", "\"stack re-alignment, but LLVM couldn't handle it \"", "\"(probably because it has a dynamic alloca).\"", ")", ";", "int", "NumBytes", "=", "(", "int", ")", "MFI", ".", "getStackSize", "(", ")", ";", "if", "(", "MFI", ".", "adjustsStack", "(", ")", "&&", "hasReservedCallFrame", "(", "MF", ")", ")", "NumBytes", "+=", "MFI", ".", "getMaxCallFrameSize", "(", ")", ";", "NumBytes", "=", "Subtarget", ".", "getAdjustedFrameSize", "(", "NumBytes", ")", ";", "if", "(", "MFI", ".", "getMaxAlignment", "(", ")", ">", "0", ")", "{", "NumBytes", "=", "alignTo", "(", "NumBytes", ",", "MFI", ".", "getMaxAlignment", "(", ")", ")", ";", "}", "MFI", ".", "setStackSize", "(", "NumBytes", ")", ";", "emitPrologueInsns", "(", "MF", ",", "MBB", ",", "MBBI", ",", "NumBytes", ",", "true", ")", ";", "emitSPAdjustment", "(", "MF", ",", "MBB", ",", "MBBI", ",", "-", "NumBytes", ")", ";", "emitSPExtend", "(", "MF", ",", "MBB", ",", "MBBI", ",", "-", "NumBytes", ")", ";", "unsigned", "regFP", "=", "RegInfo", ".", "getDwarfRegNum", "(", "VE", "::", "SX9", ",", "true", ")", ";", "unsigned", "CFIIndex", "=", "MF", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createDefCfaRegister", "(", "nullptr", ",", "regFP", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";", "CFIIndex", "=", "MF", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createWindowSave", "(", "nullptr", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";", "}", ""], "natrual_language": ["emitProlog/emitEpilog", "-", "These", "methods", "insert", "prolog", "and", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["VE", "VE", "\"Shrink-wrapping not yet supported\"", "VE", "VE", "VE", "VE", "VE", "VE", "\"Function \\\"\"", "\"\\\" required \"", "\"stack re-alignment, but LLVM couldn't handle it \"", "\"(probably because it has a dynamic alloca).\"", "0", "VE::SX9"], "File": "VEFrameLowering10", "Func": "emitPrologue", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 487, "Length": 354, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "MipsAsmParser", "::", "tryParseRegister", "(", "bool", "is64BitReg", ")", "{", "const", "AsmToken", "&", "Tok", "=", "Parser", ".", "getTok", "(", ")", ";", "int", "RegNum", "=", "-", "1", ";", "if", "(", "Tok", ".", "is", "(", "AsmToken", "::", "Identifier", ")", ")", "{", "std", "::", "string", "lowerCase", "=", "Tok", ".", "getString", "(", ")", ".", "lower", "(", ")", ";", "RegNum", "=", "matchRegisterName", "(", "lowerCase", ",", "is64BitReg", ")", ";", "}", "else", "if", "(", "Tok", ".", "is", "(", "AsmToken", "::", "Integer", ")", ")", "RegNum", "=", "matchRegisterByNumber", "(", "static_cast", "<", "unsigned", ">", "(", "Tok", ".", "getIntVal", "(", ")", ")", ",", "is64BitReg", "?", "Mips", "::", "GPR64RegClassID", ":", "Mips", "::", "GPR32RegClassID", ")", ";", "return", "RegNum", ";", "}", ""], "natrual_language": ["tryParseRegister", "-", "parse", "one", "register", "if", "possible"], "TS_V_token": ["Mips", "Mips", "1", "Mips::GPR64RegClassID", "Mips::GPR32RegClassID"], "File": "MipsAsmParser11", "Func": "tryParseRegister", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 488, "Length": 106, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCPassConfig", "::", "addPreRegAlloc", "(", ")", "{", "initializePPCVSXFMAMutatePass", "(", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ")", ";", "insertPass", "(", "VSXFMAMutateEarly", "?", "&", "RegisterCoalescerID", ":", "&", "MachineSchedulerID", ",", "&", "PPCVSXFMAMutateID", ")", ";", "if", "(", "getPPCTargetMachine", "(", ")", ".", "getRelocationModel", "(", ")", "==", "Reloc", "::", "PIC_", ")", "addPass", "(", "createPPCTLSDynamicCallPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "register", "allocation", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "PPC", "PPC"], "File": "PPCTargetMachine32", "Func": "addPreRegAlloc", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 489, "Length": 53, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "ix86_build_builtin_va_list_abi", "(", "enum", "calling_abi", "abi", ")", "{", "tree", "f_gpr", ",", "f_fpr", ",", "f_ovf", ",", "f_sav", ",", "record", ",", "type_decl", ";", "if", "(", "!", "TARGET_64BIT", "||", "abi", "==", "MS_ABI", ")", "return", "build_pointer_type", "(", "char_type_node", ")", ";", "record", "=", "lang_hooks", ".", "types", ".", "make_type", "(", "RECORD_TYPE", ")", ";", "type_decl", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "TYPE_DECL", ",", "get_identifier", "(", "\"__va_list_tag\"", ")", ",", "record", ")", ";", "f_gpr", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "FIELD_DECL", ",", "get_identifier", "(", "\"gp_offset\"", ")", ",", "unsigned_type_node", ")", ";", "f_fpr", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "FIELD_DECL", ",", "get_identifier", "(", "\"fp_offset\"", ")", ",", "unsigned_type_node", ")", ";", "f_ovf", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "FIELD_DECL", ",", "get_identifier", "(", "\"overflow_arg_area\"", ")", ",", "ptr_type_node", ")", ";", "f_sav", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "FIELD_DECL", ",", "get_identifier", "(", "\"reg_save_area\"", ")", ",", "ptr_type_node", ")", ";", "va_list_gpr_counter_field", "=", "f_gpr", ";", "va_list_fpr_counter_field", "=", "f_fpr", ";", "DECL_FIELD_CONTEXT", "(", "f_gpr", ")", "=", "record", ";", "DECL_FIELD_CONTEXT", "(", "f_fpr", ")", "=", "record", ";", "DECL_FIELD_CONTEXT", "(", "f_ovf", ")", "=", "record", ";", "DECL_FIELD_CONTEXT", "(", "f_sav", ")", "=", "record", ";", "TYPE_STUB_DECL", "(", "record", ")", "=", "type_decl", ";", "TYPE_NAME", "(", "record", ")", "=", "type_decl", ";", "TYPE_FIELDS", "(", "record", ")", "=", "f_gpr", ";", "DECL_CHAIN", "(", "f_gpr", ")", "=", "f_fpr", ";", "DECL_CHAIN", "(", "f_fpr", ")", "=", "f_ovf", ";", "DECL_CHAIN", "(", "f_ovf", ")", "=", "f_sav", ";", "layout_type", "(", "record", ")", ";", "return", "build_array_type", "(", "record", ",", "build_index_type", "(", "size_zero_node", ")", ")", ";", "}", ""], "natrual_language": ["Returns", "the", "calling", "convention", "specific", "va_list", "date", "type", ".", "The", "argument", "ABI", "can", "be", "DEFAULT_ABI", ",", "MS_ABI", ",", "or", "SYSV_ABI", "."], "TS_V_token": ["i386", "\"__va_list_tag\"", "\"gp_offset\"", "\"fp_offset\"", "\"overflow_arg_area\"", "\"reg_save_area\""], "File": "i3864", "Func": "ix86_build_builtin_va_list_abi", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 490, "Length": 223, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "loongarch_symbol_binds_local_p", "(", "const_rtx", "x", ")", "{", "if", "(", "TARGET_DIRECT_EXTERN_ACCESS", ")", "return", "true", ";", "if", "(", "SYMBOL_REF_P", "(", "x", ")", ")", "return", "(", "SYMBOL_REF_DECL", "(", "x", ")", "?", "targetm", ".", "binds_local_p", "(", "SYMBOL_REF_DECL", "(", "x", ")", ")", ":", "SYMBOL_REF_LOCAL_P", "(", "x", ")", ")", ";", "else", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "SYMBOL_REF", "X", "binds", "locally", "."], "TS_V_token": ["loongarch"], "File": "loongarch1", "Func": "loongarch_symbol_binds_local_p", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 491, "Length": 49, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "neon_split_vcombine", "(", "rtx", "operands", "[", "3", "]", ")", "{", "unsigned", "int", "dest", "=", "REGNO", "(", "operands", "[", "0", "]", ")", ";", "unsigned", "int", "src1", "=", "REGNO", "(", "operands", "[", "1", "]", ")", ";", "unsigned", "int", "src2", "=", "REGNO", "(", "operands", "[", "2", "]", ")", ";", "machine_mode", "halfmode", "=", "GET_MODE", "(", "operands", "[", "1", "]", ")", ";", "unsigned", "int", "halfregs", "=", "REG_NREGS", "(", "operands", "[", "1", "]", ")", ";", "rtx", "destlo", ",", "desthi", ";", "if", "(", "src1", "==", "dest", "&&", "src2", "==", "dest", "+", "halfregs", ")", "{", "emit_note", "(", "NOTE_INSN_DELETED", ")", ";", "return", ";", "}", "destlo", "=", "gen_rtx_REG_offset", "(", "operands", "[", "0", "]", ",", "halfmode", ",", "dest", ",", "0", ")", ";", "desthi", "=", "gen_rtx_REG_offset", "(", "operands", "[", "0", "]", ",", "halfmode", ",", "dest", "+", "halfregs", ",", "GET_MODE_SIZE", "(", "halfmode", ")", ")", ";", "if", "(", "src2", "==", "dest", "&&", "src1", "==", "dest", "+", "halfregs", ")", "{", "rtx", "x", "=", "gen_rtx_SET", "(", "destlo", ",", "operands", "[", "1", "]", ")", ";", "rtx", "y", "=", "gen_rtx_SET", "(", "desthi", ",", "operands", "[", "2", "]", ")", ";", "emit_insn", "(", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "gen_rtvec", "(", "2", ",", "x", ",", "y", ")", ")", ")", ";", "return", ";", "}", "if", "(", "!", "reg_overlap_mentioned_p", "(", "operands", "[", "2", "]", ",", "destlo", ")", ")", "{", "if", "(", "src1", "!=", "dest", ")", "emit_move_insn", "(", "destlo", ",", "operands", "[", "1", "]", ")", ";", "if", "(", "src2", "!=", "dest", "+", "halfregs", ")", "emit_move_insn", "(", "desthi", ",", "operands", "[", "2", "]", ")", ";", "}", "else", "{", "if", "(", "src2", "!=", "dest", "+", "halfregs", ")", "emit_move_insn", "(", "desthi", ",", "operands", "[", "2", "]", ")", ";", "if", "(", "src1", "!=", "dest", ")", "emit_move_insn", "(", "destlo", ",", "operands", "[", "1", "]", ")", ";", "}", "}", ""], "natrual_language": ["Split", "operands", "into", "moves", "from", "op", "[", "1", "]", "+", "op", "[", "2", "]", "into", "op", "[", "0", "]", "."], "TS_V_token": ["arm", "3", "0", "1", "2", "1", "1", "0", "0", "0", "1", "2", "2", "2", "1", "2", "2", "1"], "File": "arm", "Func": "neon_split_vcombine", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 492, "Length": 278, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "emitSPUpdate", "(", "bool", "isARM", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "MBBI", ",", "const", "DebugLoc", "&", "dl", ",", "const", "ARMBaseInstrInfo", "&", "TII", ",", "int", "NumBytes", ",", "unsigned", "MIFlags", "=", "MachineInstr", "::", "NoFlags", ",", "ARMCC", "::", "CondCodes", "Pred", "=", "ARMCC", "::", "AL", ",", "unsigned", "PredReg", "=", "0", ")", "{", "emitRegPlusImmediate", "(", "isARM", ",", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ",", "ARM", "::", "SP", ",", "ARM", "::", "SP", ",", "NumBytes", ",", "MIFlags", ",", "Pred", ",", "PredReg", ")", ";", "}", ""], "natrual_language": ["Emit", "a", "series", "of", "instructions", "to", "increment", "/", "decrement", "the", "stack", "pointer", "by", "a", "constant", "value", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARMCC::CondCodes", "ARMCC::AL", "0", "ARM", "ARM::SP", "ARM::SP"], "File": "ARMFrameLowering100", "Func": "emitSPUpdate", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 493, "Length": 82, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "SICAsmPrinter", "::", "getCurrentABIString", "(", ")", "const", "{", "switch", "(", "static_cast", "<", "SICTargetMachine", "&", ">", "(", "TM", ")", ".", "getABI", "(", ")", ".", "GetEnumValue", "(", ")", ")", "{", "case", "SICABIInfo", "::", "ABI", "::", "O32", ":", "return", "\"abiO32\"", ";", "case", "SICABIInfo", "::", "ABI", "::", "S32", ":", "return", "\"abiS32\"", ";", "default", ":", "llvm_unreachable", "(", "\"Unknown SIC ABI\"", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "Set", "directives", "."], "TS_V_token": ["SIC", "SIC", "SIC", "SIC", "ABI::O32", "\"abiO32\"", "SIC", "ABI::S32", "\"abiS32\"", "\"Unknown SIC ABI\""], "File": "SICAsmPrinter", "Func": "getCurrentABIString", "Target": "SIC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 494, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "X86Subtarget", "::", "X86Subtarget", "(", "const", "Module", "&", "M", ",", "const", "std", "::", "string", "&", "FS", ",", "bool", "is64Bit", ")", ":", "AsmFlavor", "(", "AsmWriterFlavor", ")", ",", "PICStyle", "(", "PICStyles", "::", "None", ")", ",", "X86SSELevel", "(", "NoMMXSSE", ")", ",", "X863DNowLevel", "(", "NoThreeDNow", ")", ",", "HasX86_64", "(", "false", ")", ",", "IsBTMemSlow", "(", "false", ")", ",", "DarwinVers", "(", "0", ")", ",", "IsLinux", "(", "false", ")", ",", "stackAlignment", "(", "8", ")", ",", "MaxInlineSizeThreshold", "(", "128", ")", ",", "Is64Bit", "(", "is64Bit", ")", ",", "TargetType", "(", "isELF", ")", "{", "if", "(", "!", "FS", ".", "empty", "(", ")", ")", "{", "std", "::", "string", "CPU", "=", "GetCurrentX86CPU", "(", ")", ";", "ParseSubtargetFeatures", "(", "FS", ",", "CPU", ")", ";", "}", "else", "{", "AutoDetectSubtargetFeatures", "(", ")", ";", "if", "(", "Is64Bit", "&&", "X86SSELevel", "<", "SSE2", ")", "X86SSELevel", "=", "SSE2", ";", "}", "if", "(", "Is64Bit", ")", "HasX86_64", "=", "true", ";", "DOUT", "<<", "\"Subtarget features: SSELevel \"", "<<", "X86SSELevel", "<<", "\", 3DNowLevel \"", "<<", "X863DNowLevel", "<<", "\", 64bit \"", "<<", "HasX86_64", "<<", "\"\\n\"", ";", "assert", "(", "(", "!", "Is64Bit", "||", "HasX86_64", ")", "&&", "\"64-bit code requested on a subtarget that doesn't support it!\"", ")", ";", "const", "std", "::", "string", "&", "TT", "=", "M", ".", "getTargetTriple", "(", ")", ";", "if", "(", "TT", ".", "length", "(", ")", ">", "5", ")", "{", "size_t", "Pos", ";", "if", "(", "(", "Pos", "=", "TT", ".", "find", "(", "\"-darwin\"", ")", ")", "!=", "std", "::", "string", "::", "npos", ")", "{", "TargetType", "=", "isDarwin", ";", "if", "(", "isdigit", "(", "TT", "[", "Pos", "+", "7", "]", ")", ")", "DarwinVers", "=", "atoi", "(", "&", "TT", "[", "Pos", "+", "7", "]", ")", ";", "else", "DarwinVers", "=", "8", ";", "}", "else", "if", "(", "TT", ".", "find", "(", "\"linux\"", ")", "!=", "std", "::", "string", "::", "npos", ")", "{", "TargetType", "=", "isELF", ";", "IsLinux", "=", "true", ";", "}", "else", "if", "(", "TT", ".", "find", "(", "\"cygwin\"", ")", "!=", "std", "::", "string", "::", "npos", ")", "{", "TargetType", "=", "isCygwin", ";", "}", "else", "if", "(", "TT", ".", "find", "(", "\"mingw\"", ")", "!=", "std", "::", "string", "::", "npos", ")", "{", "TargetType", "=", "isMingw", ";", "}", "else", "if", "(", "TT", ".", "find", "(", "\"win32\"", ")", "!=", "std", "::", "string", "::", "npos", ")", "{", "TargetType", "=", "isWindows", ";", "}", "else", "if", "(", "TT", ".", "find", "(", "\"windows\"", ")", "!=", "std", "::", "string", "::", "npos", ")", "{", "TargetType", "=", "isWindows", ";", "}", "else", "if", "(", "TT", ".", "find", "(", "\"-cl\"", ")", "!=", "std", "::", "string", "::", "npos", ")", "{", "TargetType", "=", "isDarwin", ";", "DarwinVers", "=", "9", ";", "}", "}", "else", "if", "(", "TT", ".", "empty", "(", ")", ")", "{", "TargetType", "=", "isCygwin", ";", "TargetType", "=", "isMingw", ";", "TargetType", "=", "isDarwin", ";", "DarwinVers", "=", "9", ";", "DarwinVers", "=", "8", ";", "TargetType", "=", "isWindows", ";", "TargetType", "=", "isELF", ";", "IsLinux", "=", "true", ";", "}", "if", "(", "AsmFlavor", "==", "X86Subtarget", "::", "Unset", ")", "{", "AsmFlavor", "=", "(", "TargetType", "==", "isWindows", ")", "?", "X86Subtarget", "::", "Intel", ":", "X86Subtarget", "::", "ATT", ";", "}", "if", "(", "TargetType", "==", "isDarwin", "||", "Is64Bit", ")", "stackAlignment", "=", "16", ";", "if", "(", "StackAlignment", ")", "stackAlignment", "=", "StackAlignment", ";", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86", "0", "8", "128", "X86", "X86", "X86", "X86", "\"Subtarget features: SSELevel \"", "X86", "\", 3DNowLevel \"", "X86", "\", 64bit \"", "X86", "\"\\n\"", "X86", "\"64-bit code requested on a subtarget that doesn't support it!\"", "5", "\"-darwin\"", "7", "7", "8", "\"linux\"", "\"cygwin\"", "\"mingw\"", "\"win32\"", "\"windows\"", "\"-cl\"", "9", "9", "8", "X86", "X86", "X86", "16"], "File": "X86Subtarget29", "Func": "X86Subtarget", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 495, "Length": 477, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_pic_register_p", "(", "rtx", "x", ")", "{", "if", "(", "GET_CODE", "(", "x", ")", "==", "VALUE", "&&", "CSELIB_VAL_PTR", "(", "x", ")", ")", "return", "(", "pic_offset_table_rtx", "&&", "rtx_equal_for_cselib_p", "(", "x", ",", "pic_offset_table_rtx", ")", ")", ";", "else", "if", "(", "!", "REG_P", "(", "x", ")", ")", "return", "false", ";", "else", "if", "(", "pic_offset_table_rtx", ")", "{", "if", "(", "REGNO", "(", "x", ")", "==", "REGNO", "(", "pic_offset_table_rtx", ")", ")", "return", "true", ";", "if", "(", "HARD_REGISTER_P", "(", "x", ")", "&&", "!", "HARD_REGISTER_P", "(", "pic_offset_table_rtx", ")", "&&", "ORIGINAL_REGNO", "(", "x", ")", "==", "REGNO", "(", "pic_offset_table_rtx", ")", ")", "return", "true", ";", "return", "false", ";", "}", "else", "return", "REGNO", "(", "x", ")", "==", "PIC_OFFSET_TABLE_REGNUM", ";", "}", ""], "natrual_language": ["Return", "true", "if", "X", "is", "a", "representation", "of", "the", "PIC", "register", ".", "This", "copes", "with", "calls", "from", "ix86_find_base_term", ",", "where", "the", "register", "might", "have", "been", "replaced", "by", "a", "cselib", "value", "."], "TS_V_token": ["i386"], "File": "i3864", "Func": "ix86_pic_register_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 496, "Length": 107, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64AsmPrinter", "::", "PrintAsmOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNum", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "O", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "OpNum", ")", ";", "if", "(", "!", "AsmPrinter", "::", "PrintAsmOperand", "(", "MI", ",", "OpNum", ",", "ExtraCode", ",", "O", ")", ")", "return", "false", ";", "if", "(", "ExtraCode", "&&", "ExtraCode", "[", "0", "]", ")", "{", "if", "(", "ExtraCode", "[", "1", "]", "!=", "0", ")", "return", "true", ";", "switch", "(", "ExtraCode", "[", "0", "]", ")", "{", "default", ":", "return", "true", ";", "case", "'w'", ":", "case", "'x'", ":", "if", "(", "MO", ".", "isReg", "(", ")", ")", "return", "printAsmMRegister", "(", "MO", ",", "ExtraCode", "[", "0", "]", ",", "O", ")", ";", "if", "(", "MO", ".", "isImm", "(", ")", "&&", "MO", ".", "getImm", "(", ")", "==", "0", ")", "{", "unsigned", "Reg", "=", "ExtraCode", "[", "0", "]", "==", "'w'", "?", "AArch64", "::", "WZR", ":", "AArch64", "::", "XZR", ";", "O", "<<", "AArch64InstPrinter", "::", "getRegisterName", "(", "Reg", ")", ";", "return", "false", ";", "}", "printOperand", "(", "MI", ",", "OpNum", ",", "O", ")", ";", "return", "false", ";", "case", "'b'", ":", "case", "'h'", ":", "case", "'s'", ":", "case", "'d'", ":", "case", "'q'", ":", "if", "(", "MO", ".", "isReg", "(", ")", ")", "{", "const", "TargetRegisterClass", "*", "RC", ";", "switch", "(", "ExtraCode", "[", "0", "]", ")", "{", "case", "'b'", ":", "RC", "=", "&", "AArch64", "::", "FPR8RegClass", ";", "break", ";", "case", "'h'", ":", "RC", "=", "&", "AArch64", "::", "FPR16RegClass", ";", "break", ";", "case", "'s'", ":", "RC", "=", "&", "AArch64", "::", "FPR32RegClass", ";", "break", ";", "case", "'d'", ":", "RC", "=", "&", "AArch64", "::", "FPR64RegClass", ";", "break", ";", "case", "'q'", ":", "RC", "=", "&", "AArch64", "::", "FPR128RegClass", ";", "break", ";", "default", ":", "return", "true", ";", "}", "return", "printAsmRegInClass", "(", "MO", ",", "RC", ",", "false", ",", "O", ")", ";", "}", "printOperand", "(", "MI", ",", "OpNum", ",", "O", ")", ";", "return", "false", ";", "}", "}", "if", "(", "MO", ".", "isReg", "(", ")", ")", "{", "Register", "Reg", "=", "MO", ".", "getReg", "(", ")", ";", "if", "(", "AArch64", "::", "GPR32allRegClass", ".", "contains", "(", "Reg", ")", "||", "AArch64", "::", "GPR64allRegClass", ".", "contains", "(", "Reg", ")", ")", "return", "printAsmMRegister", "(", "MO", ",", "'x'", ",", "O", ")", ";", "return", "printAsmRegInClass", "(", "MO", ",", "&", "AArch64", "::", "FPR128RegClass", ",", "true", ",", "O", ")", ";", "}", "printOperand", "(", "MI", ",", "OpNum", ",", "O", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["PrintAsmOperand", "-", "Print", "out", "an", "operand", "for", "an", "inline", "asm", "expression", "."], "TS_V_token": ["AArch64", "AArch64", "0", "1", "0", "0", "0", "0", "0", "AArch64::WZR", "AArch64::XZR", "AArch64", "0", "AArch64::FPR8RegClass", "AArch64::FPR16RegClass", "AArch64::FPR32RegClass", "AArch64::FPR64RegClass", "AArch64::FPR128RegClass", "AArch64::GPR32allRegClass", "AArch64::GPR64allRegClass", "AArch64::FPR128RegClass"], "File": "AArch64AsmPrinter70", "Func": "PrintAsmOperand", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 497, "Length": 383, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZPostRASchedStrategy", "::", "schedNode", "(", "SUnit", "*", "SU", ",", "bool", "IsTopNode", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"** Scheduling SU(\"", "<<", "SU", "->", "NodeNum", "<<", "\") \"", ";", "if", "(", "Available", ".", "size", "(", ")", "==", "1", ")", "dbgs", "(", ")", "<<", "\"(only one) \"", ";", "Candidate", "c", "(", "SU", ",", "*", "HazardRec", ")", ";", "c", ".", "dumpCosts", "(", ")", ";", "dbgs", "(", ")", "<<", "\"\\n\"", ";", ")", ";", "Available", ".", "erase", "(", "SU", ")", ";", "HazardRec", "->", "EmitInstruction", "(", "SU", ")", ";", "}", ""], "natrual_language": ["ScheduleDAGMI", "has", "scheduled", "an", "instruction", "-", "tell", "HazardRec", "about", "it", "."], "TS_V_token": ["SystemZ", "SystemZ", "\"** Scheduling SU(\"", "\") \"", "1", "\"(only one) \"", "\"\\n\""], "File": "SystemZMachineScheduler", "Func": "schedNode", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 498, "Length": 81, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Optional", "<", "uint64_t", ">", "X86MCInstrAnalysis", "::", "getMemoryOperandRelocationOffset", "(", "const", "MCInst", "&", "Inst", ",", "uint64_t", "Size", ")", "const", "{", "if", "(", "Inst", ".", "getOpcode", "(", ")", "!=", "X86", "::", "LEA64r", ")", "return", "None", ";", "const", "MCInstrDesc", "&", "MCID", "=", "Info", "->", "get", "(", "Inst", ".", "getOpcode", "(", ")", ")", ";", "int", "MemOpStart", "=", "X86II", "::", "getMemoryOperandNo", "(", "MCID", ".", "TSFlags", ")", ";", "if", "(", "MemOpStart", "==", "-", "1", ")", "return", "None", ";", "MemOpStart", "+=", "X86II", "::", "getOperandBias", "(", "MCID", ")", ";", "const", "MCOperand", "&", "SegReg", "=", "Inst", ".", "getOperand", "(", "MemOpStart", "+", "X86", "::", "AddrSegmentReg", ")", ";", "const", "MCOperand", "&", "BaseReg", "=", "Inst", ".", "getOperand", "(", "MemOpStart", "+", "X86", "::", "AddrBaseReg", ")", ";", "const", "MCOperand", "&", "IndexReg", "=", "Inst", ".", "getOperand", "(", "MemOpStart", "+", "X86", "::", "AddrIndexReg", ")", ";", "const", "MCOperand", "&", "ScaleAmt", "=", "Inst", ".", "getOperand", "(", "MemOpStart", "+", "X86", "::", "AddrScaleAmt", ")", ";", "const", "MCOperand", "&", "Disp", "=", "Inst", ".", "getOperand", "(", "MemOpStart", "+", "X86", "::", "AddrDisp", ")", ";", "if", "(", "BaseReg", ".", "getReg", "(", ")", "!=", "X86", "::", "RIP", "||", "SegReg", ".", "getReg", "(", ")", "!=", "0", "||", "IndexReg", ".", "getReg", "(", ")", "!=", "0", "||", "ScaleAmt", ".", "getImm", "(", ")", "!=", "1", "||", "!", "Disp", ".", "isImm", "(", ")", ")", "return", "None", ";", "assert", "(", "Size", ">", "4", "&&", "\"invalid instruction size for rip-relative lea\"", ")", ";", "return", "Size", "-", "4", ";", "}", ""], "natrual_language": ["Given", "an", "instruction", "with", "a", "memory", "operand", "that", "could", "require", "relocation", ",", "returns", "the", "offset", "within", "the", "instruction", "of", "that", "relocation", "."], "TS_V_token": ["X86", "X86", "X86::LEA64r", "X86II::getMemoryOperandNo", "1", "X86II::getOperandBias", "X86::AddrSegmentReg", "X86::AddrBaseReg", "X86::AddrIndexReg", "X86::AddrScaleAmt", "X86::AddrDisp", "X86::RIP", "0", "0", "1", "4", "\"invalid instruction size for rip-relative lea\"", "4"], "File": "X86MCTargetDesc13", "Func": "getMemoryOperandRelocationOffset", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 499, "Length": 221, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_valid_floating_const", "(", "machine_mode", "mode", ",", "rtx", "x", ")", "{", "if", "(", "!", "CONST_DOUBLE_P", "(", "x", ")", ")", "return", "false", ";", "if", "(", "aarch64_float_const_zero_rtx_p", "(", "x", ")", ")", "return", "true", ";", "if", "(", "!", "(", "mode", "==", "SFmode", "||", "mode", "==", "DFmode", ")", ")", "return", "false", ";", "return", "aarch64_float_const_representable_p", "(", "x", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "X", "holds", "either", "a", "quarter-precision", "or", "floating-point", "+0.0", "constant", "."], "TS_V_token": ["aarch64"], "File": "aarch643", "Func": "aarch64_valid_floating_const", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 500, "Length": 55, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "std", "::", "unique_ptr", "<", "MINA32Operand", ">", "CreateMem", "(", "unsigned", "Base", ",", "const", "MCExpr", "*", "Off", ",", "SMLoc", "S", ",", "SMLoc", "E", ")", "{", "auto", "Op", "=", "std", "::", "make_unique", "<", "MINA32Operand", ">", "(", "k_Memory", ")", ";", "Op", "->", "Mem", ".", "Base", "=", "Base", ";", "Op", "->", "Mem", ".", "Off", "=", "Off", ";", "Op", "->", "StartLoc", "=", "S", ";", "Op", "->", "EndLoc", "=", "E", ";", "return", "Op", ";", "}", ""], "natrual_language": ["Create", "a", "generalized", "memory", "operand", "."], "TS_V_token": ["MINA32", "MINA32", "MINA32"], "File": "MINA32AsmParser", "Func": "CreateMem", "Target": "MINA32", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 501, "Length": 69, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64FrameLowering", "::", "canUseRedZone", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "if", "(", "!", "EnableRedZone", ")", "return", "false", ";", "const", "AArch64Subtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ";", "const", "unsigned", "RedZoneSize", "=", "Subtarget", ".", "getTargetLowering", "(", ")", "->", "getRedZoneSize", "(", "MF", ".", "getFunction", "(", ")", ")", ";", "if", "(", "!", "RedZoneSize", ")", "return", "false", ";", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "AArch64FunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "AArch64FunctionInfo", ">", "(", ")", ";", "uint64_t", "NumBytes", "=", "AFI", "->", "getLocalStackSize", "(", ")", ";", "return", "!", "(", "MFI", ".", "hasCalls", "(", ")", "||", "hasFP", "(", "MF", ")", "||", "NumBytes", ">", "RedZoneSize", "||", "getSVEStackSize", "(", "MF", ")", ")", ";", "}", ""], "natrual_language": ["Can", "this", "function", "use", "the", "red", "zone", "for", "local", "allocations", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64FrameLowering (2)1", "Func": "canUseRedZone", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 502, "Length": 120, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "mips_expand_builtin", "(", "tree", "exp", ",", "rtx", "target", ",", "rtx", "subtarget", "ATTRIBUTE_UNUSED", ",", "enum", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "int", "ignore", "ATTRIBUTE_UNUSED", ")", "{", "enum", "insn_code", "icode", ";", "enum", "mips_builtin_type", "type", ";", "tree", "fndecl", ",", "arglist", ";", "unsigned", "int", "fcode", ";", "const", "struct", "builtin_description", "*", "bdesc", ";", "const", "struct", "bdesc_map", "*", "m", ";", "fndecl", "=", "TREE_OPERAND", "(", "TREE_OPERAND", "(", "exp", ",", "0", ")", ",", "0", ")", ";", "arglist", "=", "TREE_OPERAND", "(", "exp", ",", "1", ")", ";", "fcode", "=", "DECL_FUNCTION_CODE", "(", "fndecl", ")", ";", "bdesc", "=", "NULL", ";", "for", "(", "m", "=", "bdesc_arrays", ";", "m", "<", "&", "bdesc_arrays", "[", "ARRAY_SIZE", "(", "bdesc_arrays", ")", "]", ";", "m", "++", ")", "{", "if", "(", "fcode", "<", "m", "->", "size", ")", "{", "bdesc", "=", "m", "->", "bdesc", ";", "icode", "=", "bdesc", "[", "fcode", "]", ".", "icode", ";", "type", "=", "bdesc", "[", "fcode", "]", ".", "builtin_type", ";", "break", ";", "}", "fcode", "-=", "m", "->", "size", ";", "}", "if", "(", "bdesc", "==", "NULL", ")", "return", "0", ";", "switch", "(", "type", ")", "{", "case", "MIPS_BUILTIN_DIRECT", ":", "return", "mips_expand_builtin_direct", "(", "icode", ",", "target", ",", "arglist", ",", "true", ")", ";", "case", "MIPS_BUILTIN_DIRECT_NO_TARGET", ":", "return", "mips_expand_builtin_direct", "(", "icode", ",", "target", ",", "arglist", ",", "false", ")", ";", "case", "MIPS_BUILTIN_MOVT", ":", "case", "MIPS_BUILTIN_MOVF", ":", "return", "mips_expand_builtin_movtf", "(", "type", ",", "icode", ",", "bdesc", "[", "fcode", "]", ".", "cond", ",", "target", ",", "arglist", ")", ";", "case", "MIPS_BUILTIN_CMP_ANY", ":", "case", "MIPS_BUILTIN_CMP_ALL", ":", "case", "MIPS_BUILTIN_CMP_UPPER", ":", "case", "MIPS_BUILTIN_CMP_LOWER", ":", "case", "MIPS_BUILTIN_CMP_SINGLE", ":", "return", "mips_expand_builtin_compare", "(", "type", ",", "icode", ",", "bdesc", "[", "fcode", "]", ".", "cond", ",", "target", ",", "arglist", ")", ";", "case", "MIPS_BUILTIN_BPOSGE32", ":", "return", "mips_expand_builtin_bposge", "(", "type", ",", "target", ")", ";", "default", ":", "return", "0", ";", "}", "}", ""], "natrual_language": ["Expand", "builtin", "functions", ".", "This", "is", "called", "from", "TARGET_EXPAND_BUILTIN", "."], "TS_V_token": ["mips", "0", "0", "1", "0", "0"], "File": "mips3", "Func": "mips_expand_builtin", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 503, "Length": 271, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "tree", "def_builtin", "(", "HOST_WIDE_INT", "mask", ",", "const", "char", "*", "name", ",", "enum", "ix86_builtin_func_type", "tcode", ",", "enum", "ix86_builtins", "code", ")", "{", "tree", "decl", "=", "NULL_TREE", ";", "if", "(", "!", "(", "mask", "&", "OPTION_MASK_ISA_64BIT", ")", "||", "TARGET_64BIT", ")", "{", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "isa", "=", "mask", ";", "if", "(", "mask", "&", "ix86_isa_flags", "&", "OPTION_MASK_ISA_AVX512VL", ")", "mask", "&=", "~", "OPTION_MASK_ISA_AVX512VL", ";", "mask", "&=", "~", "OPTION_MASK_ISA_64BIT", ";", "if", "(", "mask", "==", "0", "||", "(", "mask", "&", "ix86_isa_flags", ")", "!=", "0", "||", "(", "lang_hooks", ".", "builtin_function", "==", "lang_hooks", ".", "builtin_function_ext_scope", ")", ")", "{", "tree", "type", "=", "ix86_get_builtin_func_type", "(", "tcode", ")", ";", "decl", "=", "add_builtin_function", "(", "name", ",", "type", ",", "code", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";", "ix86_builtins", "[", "(", "int", ")", "code", "]", "=", "decl", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "set_and_not_built_p", "=", "false", ";", "}", "else", "{", "deferred_isa_values", "|=", "mask", ";", "ix86_builtins", "[", "(", "int", ")", "code", "]", "=", "NULL_TREE", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "tcode", "=", "tcode", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "name", "=", "name", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "leaf_p", "=", "false", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "nothrow_p", "=", "false", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "const_p", "=", "false", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "set_and_not_built_p", "=", "true", ";", "}", "}", "return", "decl", ";", "}", ""], "natrual_language": ["Add", "a", "SPARC", "builtin", "function", "with", "NAME", ",", "ICODE", ",", "CODE", "and", "TYPE", ".", "Return", "the", "function", "decl", "or", "NULL_TREE", "if", "the", "builtin", "was", "not", "added", "."], "TS_V_token": ["i386", "0", "0"], "File": "i3865", "Func": "def_builtin", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 504, "Length": 236, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64FrameLowering", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "const", "AArch64InstrInfo", "*", "TII", "=", "static_cast", "<", "const", "AArch64InstrInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "DebugLoc", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "unsigned", "Opc", "=", "I", "->", "getOpcode", "(", ")", ";", "bool", "IsDestroy", "=", "Opc", "==", "TII", "->", "getCallFrameDestroyOpcode", "(", ")", ";", "uint64_t", "CalleePopAmount", "=", "IsDestroy", "?", "I", "->", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ":", "0", ";", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "if", "(", "!", "TFI", "->", "hasReservedCallFrame", "(", "MF", ")", ")", "{", "unsigned", "Align", "=", "getStackAlignment", "(", ")", ";", "int64_t", "Amount", "=", "I", "->", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "Amount", "=", "alignTo", "(", "Amount", ",", "Align", ")", ";", "if", "(", "!", "IsDestroy", ")", "Amount", "=", "-", "Amount", ";", "if", "(", "CalleePopAmount", "==", "0", ")", "{", "assert", "(", "Amount", ">", "-", "0xffffff", "&&", "Amount", "<", "0xffffff", "&&", "\"call frame too large\"", ")", ";", "emitFrameOffset", "(", "MBB", ",", "I", ",", "DL", ",", "AArch64", "::", "SP", ",", "AArch64", "::", "SP", ",", "Amount", ",", "TII", ")", ";", "}", "}", "else", "if", "(", "CalleePopAmount", "!=", "0", ")", "{", "assert", "(", "CalleePopAmount", "<", "0xffffff", "&&", "\"call frame too large\"", ")", ";", "emitFrameOffset", "(", "MBB", ",", "I", ",", "DL", ",", "AArch64", "::", "SP", ",", "AArch64", "::", "SP", ",", "-", "CalleePopAmount", ",", "TII", ")", ";", "}", "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": ["AArch64", "AArch64", "AArch64", "AArch64", "1", "0", "0", "0", "0xffffff", "0xffffff", "\"call frame too large\"", "AArch64::SP", "AArch64::SP", "0", "0xffffff", "\"call frame too large\"", "AArch64::SP", "AArch64::SP"], "File": "AArch64FrameLowering63", "Func": "eliminateCallFramePseudoInstr", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 505, "Length": 248, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "*", "getAdjustedAnalysisPointer", "(", "const", "void", "*", "ID", ")", "override", "{", "if", "(", "ID", "==", "&", "TargetTransformInfo", "::", "ID", ")", "return", "(", "TargetTransformInfo", "*", ")", "this", ";", "return", "this", ";", "}", ""], "natrual_language": ["getAdjustedAnalysisPointer", "-", "This", "method", "is", "used", "when", "a", "pass", "implements", "an", "analysis", "interface", "through", "multiple", "inheritance", "."], "TS_V_token": ["ARM"], "File": "ARMTargetTransformInfo21", "Func": "getAdjustedAnalysisPointer", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 506, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isUsedByReturnOnly", "(", "SDNode", "*", "N", ",", "SDValue", "&", "Chain", ")", "const", "{", "if", "(", "N", "->", "getNumValues", "(", ")", "!=", "1", ")", "return", "false", ";", "if", "(", "!", "N", "->", "hasNUsesOfValue", "(", "1", ",", "0", ")", ")", "return", "false", ";", "SDValue", "TCChain", "=", "Chain", ";", "SDNode", "*", "Copy", "=", "*", "N", "->", "use_begin", "(", ")", ";", "if", "(", "Copy", "->", "getOpcode", "(", ")", "==", "ISD", "::", "CopyToReg", ")", "{", "if", "(", "Copy", "->", "getOperand", "(", "Copy", "->", "getNumOperands", "(", ")", "-", "1", ")", ".", "getValueType", "(", ")", "==", "MVT", "::", "Glue", ")", "return", "false", ";", "TCChain", "=", "Copy", "->", "getOperand", "(", "0", ")", ";", "}", "else", "if", "(", "Copy", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "FP_EXTEND", ")", "return", "false", ";", "bool", "HasRet", "=", "false", ";", "for", "(", "SDNode", "::", "use_iterator", "UI", "=", "Copy", "->", "use_begin", "(", ")", ",", "UE", "=", "Copy", "->", "use_end", "(", ")", ";", "UI", "!=", "UE", ";", "++", "UI", ")", "{", "if", "(", "UI", "->", "getOpcode", "(", ")", "!=", "X86ISD", "::", "RET_FLAG", ")", "return", "false", ";", "HasRet", "=", "true", ";", "}", "if", "(", "!", "HasRet", ")", "return", "false", ";", "Chain", "=", "TCChain", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "result", "of", "the", "specified", "node", "is", "used", "by", "a", "return", "node", "only", "."], "TS_V_token": ["X86", "X86", "1", "1", "0", "ISD::CopyToReg", "1", "MVT::Glue", "0", "ISD::FP_EXTEND", "X86ISD::RET_FLAG"], "File": "X86ISelLowering (2)", "Func": "isUsedByReturnOnly", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 507, "Length": 194, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCAsmPrinter", "::", "PrintAsmMemoryOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNo", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "O", ")", "{", "if", "(", "ExtraCode", "&&", "ExtraCode", "[", "0", "]", ")", "{", "if", "(", "ExtraCode", "[", "1", "]", "!=", "0", ")", "return", "true", ";", "switch", "(", "ExtraCode", "[", "0", "]", ")", "{", "default", ":", "return", "true", ";", "case", "'L'", ":", "O", "<<", "getDataLayout", "(", ")", ".", "getPointerSize", "(", ")", "<<", "\"(\"", ";", "printOperand", "(", "MI", ",", "OpNo", ",", "O", ")", ";", "O", "<<", "\")\"", ";", "return", "false", ";", "case", "'y'", ":", "O", "<<", "\"0, \"", ";", "printOperand", "(", "MI", ",", "OpNo", ",", "O", ")", ";", "return", "false", ";", "case", "'U'", ":", "case", "'X'", ":", "assert", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "isReg", "(", ")", ")", ";", "return", "false", ";", "}", "}", "assert", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "isReg", "(", ")", ")", ";", "O", "<<", "\"0(\"", ";", "printOperand", "(", "MI", ",", "OpNo", ",", "O", ")", ";", "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": ["PowerPC", "PPC", "0", "1", "0", "0", "\"(\"", "\")\"", "\"0, \"", "\"0(\"", "\")\""], "File": "PPCAsmPrinter10", "Func": "PrintAsmMemoryOperand", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 508, "Length": 168, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_pragma_target_parse", "(", "tree", "args", ",", "tree", "pop_target", ")", "{", "tree", "prev_tree", "=", "target_option_current_node", ";", "tree", "cur_tree", ";", "struct", "cl_target_option", "*", "prev_opt", ";", "struct", "cl_target_option", "*", "cur_opt", ";", "if", "(", "!", "args", ")", "{", "cur_tree", "=", "(", "(", "pop_target", ")", "?", "pop_target", ":", "target_option_default_node", ")", ";", "cl_target_option_restore", "(", "&", "global_options", ",", "&", "global_options_set", ",", "TREE_TARGET_OPTION", "(", "cur_tree", ")", ")", ";", "}", "else", "{", "cur_tree", "=", "arm_valid_target_attribute_tree", "(", "args", ",", "&", "global_options", ",", "&", "global_options_set", ")", ";", "if", "(", "cur_tree", "==", "NULL_TREE", ")", "{", "cl_target_option_restore", "(", "&", "global_options", ",", "&", "global_options_set", ",", "TREE_TARGET_OPTION", "(", "prev_tree", ")", ")", ";", "return", "false", ";", "}", "target_option_current_node", "=", "cur_tree", ";", "arm_configure_build_target", "(", "&", "arm_active_target", ",", "TREE_TARGET_OPTION", "(", "cur_tree", ")", ",", "&", "global_options_set", ",", "false", ")", ";", "}", "prev_opt", "=", "TREE_TARGET_OPTION", "(", "prev_tree", ")", ";", "cur_opt", "=", "TREE_TARGET_OPTION", "(", "cur_tree", ")", ";", "gcc_assert", "(", "prev_opt", ")", ";", "gcc_assert", "(", "cur_opt", ")", ";", "if", "(", "cur_opt", "!=", "prev_opt", ")", "{", "cpp_options", "*", "cpp_opts", "=", "cpp_get_options", "(", "parse_in", ")", ";", "unsigned", "char", "saved_warn_unused_macros", "=", "cpp_opts", "->", "warn_unused_macros", ";", "cpp_opts", "->", "warn_unused_macros", "=", "0", ";", "gcc_assert", "(", "cur_opt", "->", "x_target_flags", "==", "target_flags", ")", ";", "tree", "acond_macro", "=", "get_identifier", "(", "\"__ARM_NEON_FP\"", ")", ";", "C_CPP_HASHNODE", "(", "acond_macro", ")", "->", "flags", "|=", "NODE_CONDITIONAL", ";", "acond_macro", "=", "get_identifier", "(", "\"__ARM_FP\"", ")", ";", "C_CPP_HASHNODE", "(", "acond_macro", ")", "->", "flags", "|=", "NODE_CONDITIONAL", ";", "acond_macro", "=", "get_identifier", "(", "\"__ARM_FEATURE_LDREX\"", ")", ";", "C_CPP_HASHNODE", "(", "acond_macro", ")", "->", "flags", "|=", "NODE_CONDITIONAL", ";", "arm_cpu_builtins", "(", "parse_in", ")", ";", "cpp_opts", "->", "warn_unused_macros", "=", "saved_warn_unused_macros", ";", "arm_reset_previous_fndecl", "(", ")", ";", "if", "(", "cur_tree", "==", "target_option_default_node", ")", "save_restore_target_globals", "(", "cur_tree", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Hook", "to", "validate", "the", "current", "#", "pragma", "GCC", "target", "and", "set", "the", "arch", "custom", "mode", "state", ".", "If", "ARGS", "is", "NULL", ",", "then", "POP_TARGET", "is", "used", "to", "reset", "the", "options", "."], "TS_V_token": ["arm", "0", "\"__ARM_NEON_FP\"", "\"__ARM_FP\"", "\"__ARM_FEATURE_LDREX\""], "File": "arm-c1", "Func": "arm_pragma_target_parse", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 509, "Length": 266, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86LoadValueInjectionLoadHardeningPass", "::", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "{", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "AU", ".", "addRequired", "<", "MachineLoopInfo", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "MachineDominatorTree", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "MachineDominanceFrontier", ">", "(", ")", ";", "AU", ".", "setPreservesCFG", "(", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["X86", "X86"], "File": "X86LoadValueInjectionLoadHardening", "Func": "getAnalysisUsage", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 510, "Length": 52, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86IntelInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "OS", ",", "StringRef", "Annot", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "{", "const", "MCInstrDesc", "&", "Desc", "=", "MII", ".", "get", "(", "MI", "->", "getOpcode", "(", ")", ")", ";", "uint64_t", "TSFlags", "=", "Desc", ".", "TSFlags", ";", "if", "(", "TSFlags", "&", "X86II", "::", "LOCK", ")", "OS", "<<", "\"\\tlock\\n\"", ";", "printInstruction", "(", "MI", ",", "OS", ")", ";", "printAnnotation", "(", "OS", ",", "Annot", ")", ";", "if", "(", "CommentStream", ")", "EmitAnyX86InstComments", "(", "MI", ",", "*", "CommentStream", ",", "getRegisterName", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["X86", "X86", "X86II::LOCK", "\"\\tlock\\n\"", "X86"], "File": "X86IntelInstPrinter2", "Func": "printInst", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 511, "Length": 87, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "LC3InstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "BuildMI", "(", "MBB", ",", "I", ",", "I", "->", "getDebugLoc", "(", ")", ",", "get", "(", "LC3", "::", "STR", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addFrameIndex", "(", "FrameIndex", ")", ".", "addImm", "(", "0", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["LC3", "LC3", "LC3::STR", "0"], "File": "LC3InstrInfo", "Func": "storeRegToStackSlot", "Target": "LC3", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 512, "Length": 76, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "InstrItineraryData", "*", "getInstrItineraryData", "(", ")", "const", "override", "{", "return", "&", "getSubtargetImpl", "(", ")", "->", "getInstrItineraryData", "(", ")", ";", "}", ""], "natrual_language": ["getInstrItineraryData", "-", "Returns", "instruction", "itinerary", "data", "for", "the", "target", "or", "specific", "subtarget", "."], "TS_V_token": ["X86"], "File": "X86TargetMachine", "Func": "getInstrItineraryData", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 513, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_sim_wait_regs", "(", "struct", "mips_sim", "*", "state", ",", "rtx", "insn", ")", "{", "mips_sim_insn", "=", "insn", ";", "note_uses", "(", "&", "PATTERN", "(", "insn", ")", ",", "mips_sim_wait_regs_1", ",", "state", ")", ";", "}", ""], "natrual_language": ["Advance", "simulation", "state", "STATE", "until", "all", "of", "INSN", "'s", "register", "dependencies", "are", "satisfied", "."], "TS_V_token": ["mips"], "File": "mips3", "Func": "mips_sim_wait_regs", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 514, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86InstrInfo", "::", "analyzeCompare", "(", "const", "MachineInstr", "&", "MI", ",", "Register", "&", "SrcReg", ",", "Register", "&", "SrcReg2", ",", "int64_t", "&", "CmpMask", ",", "int64_t", "&", "CmpValue", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "X86", "::", "CMP64ri32", ":", "case", "X86", "::", "CMP64ri8", ":", "case", "X86", "::", "CMP32ri", ":", "case", "X86", "::", "CMP32ri8", ":", "case", "X86", "::", "CMP16ri", ":", "case", "X86", "::", "CMP16ri8", ":", "case", "X86", "::", "CMP8ri", ":", "SrcReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "0", ";", "if", "(", "MI", ".", "getOperand", "(", "1", ")", ".", "isImm", "(", ")", ")", "{", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ";", "}", "else", "{", "CmpMask", "=", "CmpValue", "=", "0", ";", "}", "return", "true", ";", "case", "X86", "::", "SUB64rm", ":", "case", "X86", "::", "SUB32rm", ":", "case", "X86", "::", "SUB16rm", ":", "case", "X86", "::", "SUB8rm", ":", "SrcReg", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "0", ";", "CmpMask", "=", "0", ";", "CmpValue", "=", "0", ";", "return", "true", ";", "case", "X86", "::", "SUB64rr", ":", "case", "X86", "::", "SUB32rr", ":", "case", "X86", "::", "SUB16rr", ":", "case", "X86", "::", "SUB8rr", ":", "SrcReg", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "MI", ".", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ";", "CmpMask", "=", "0", ";", "CmpValue", "=", "0", ";", "return", "true", ";", "case", "X86", "::", "SUB64ri32", ":", "case", "X86", "::", "SUB64ri8", ":", "case", "X86", "::", "SUB32ri", ":", "case", "X86", "::", "SUB32ri8", ":", "case", "X86", "::", "SUB16ri", ":", "case", "X86", "::", "SUB16ri8", ":", "case", "X86", "::", "SUB8ri", ":", "SrcReg", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "0", ";", "if", "(", "MI", ".", "getOperand", "(", "2", ")", ".", "isImm", "(", ")", ")", "{", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "MI", ".", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "}", "else", "{", "CmpMask", "=", "CmpValue", "=", "0", ";", "}", "return", "true", ";", "case", "X86", "::", "CMP64rr", ":", "case", "X86", "::", "CMP32rr", ":", "case", "X86", "::", "CMP16rr", ":", "case", "X86", "::", "CMP8rr", ":", "SrcReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "CmpMask", "=", "0", ";", "CmpValue", "=", "0", ";", "return", "true", ";", "case", "X86", "::", "TEST8rr", ":", "case", "X86", "::", "TEST16rr", ":", "case", "X86", "::", "TEST32rr", ":", "case", "X86", "::", "TEST64rr", ":", "SrcReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "if", "(", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", "!=", "SrcReg", ")", "return", "false", ";", "SrcReg2", "=", "0", ";", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "0", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["analyzeCompare", "-", "For", "a", "comparison", "instruction", ",", "return", "the", "source", "registers", "in", "SrcReg", "and", "SrcReg2", "if", "having", "two", "register", "operands", ",", "and", "the", "value", "it", "compares", "against", "in", "CmpValue", "."], "TS_V_token": ["X86", "X86", "X86::CMP64ri32", "X86::CMP64ri8", "X86::CMP32ri", "X86::CMP32ri8", "X86::CMP16ri", "X86::CMP16ri8", "X86::CMP8ri", "0", "0", "1", "0", "1", "0", "X86::SUB64rm", "X86::SUB32rm", "X86::SUB16rm", "X86::SUB8rm", "1", "0", "0", "0", "X86::SUB64rr", "X86::SUB32rr", "X86::SUB16rr", "X86::SUB8rr", "1", "2", "0", "0", "X86::SUB64ri32", "X86::SUB64ri8", "X86::SUB32ri", "X86::SUB32ri8", "X86::SUB16ri", "X86::SUB16ri8", "X86::SUB8ri", "1", "0", "2", "0", "2", "0", "X86::CMP64rr", "X86::CMP32rr", "X86::CMP16rr", "X86::CMP8rr", "0", "1", "0", "0", "X86::TEST8rr", "X86::TEST16rr", "X86::TEST32rr", "X86::TEST64rr", "0", "1", "0", "0", "0"], "File": "X86InstrInfo (2)3", "Func": "analyzeCompare", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 515, "Length": 469, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86TargetLowering", "::", "insertSSPDeclarations", "(", "Module", "&", "M", ")", "const", "{", "if", "(", "!", "Subtarget", ".", "isTargetGlibc", "(", ")", ")", "TargetLowering", "::", "insertSSPDeclarations", "(", "M", ")", ";", "}", ""], "natrual_language": ["Inserts", "necessary", "declarations", "for", "SSP", "(", "stack", "protection", ")", "purpose", "."], "TS_V_token": ["X86", "X86"], "File": "X86ISelLowering148", "Func": "insertSSPDeclarations", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 516, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "sh_cannot_copy_insn_p", "(", "rtx_insn", "*", "insn", ")", "{", "rtx", "pat", ";", "if", "(", "!", "reload_completed", "||", "!", "flag_pic", ")", "return", "false", ";", "if", "(", "!", "NONJUMP_INSN_P", "(", "insn", ")", ")", "return", "false", ";", "if", "(", "asm_noperands", "(", "insn", ")", ">=", "0", ")", "return", "false", ";", "pat", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "pat", ")", "==", "CLOBBER", "||", "GET_CODE", "(", "pat", ")", "==", "USE", ")", "return", "false", ";", "if", "(", "TARGET_FDPIC", "&&", "GET_CODE", "(", "pat", ")", "==", "PARALLEL", ")", "{", "rtx", "t", "=", "XVECEXP", "(", "pat", ",", "0", ",", "XVECLEN", "(", "pat", ",", "0", ")", "-", "1", ")", ";", "if", "(", "GET_CODE", "(", "t", ")", "==", "USE", "&&", "unspec_caller_rtx_p", "(", "XEXP", "(", "t", ",", "0", ")", ")", ")", "return", "true", ";", "}", "if", "(", "GET_CODE", "(", "pat", ")", "!=", "SET", ")", "return", "false", ";", "pat", "=", "SET_SRC", "(", "pat", ")", ";", "if", "(", "unspec_caller_rtx_p", "(", "pat", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Indicate", "that", "INSN", "can", "not", "be", "duplicated", ".", "This", "is", "true", "for", "insn", "that", "generates", "a", "unique", "label", "."], "TS_V_token": ["sh", "0", "0", "0", "1", "0"], "File": "sh5", "Func": "sh_cannot_copy_insn_p", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 517, "Length": 159, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCDisassembler", "::", "DecodeStatus", "X86GenericDisassembler", "::", "getInstruction", "(", "MCInst", "&", "Instr", ",", "uint64_t", "&", "Size", ",", "ArrayRef", "<", "uint8_t", ">", "Bytes", ",", "uint64_t", "Address", ",", "raw_ostream", "&", "VStream", ",", "raw_ostream", "&", "CStream", ")", "const", "{", "CommentStream", "=", "&", "CStream", ";", "InternalInstruction", "InternalInstr", ";", "dlog_t", "LoggerFn", "=", "logger", ";", "if", "(", "&", "VStream", "==", "&", "nulls", "(", ")", ")", "LoggerFn", "=", "nullptr", ";", "Region", "R", "(", "Bytes", ",", "Address", ")", ";", "int", "Ret", "=", "decodeInstruction", "(", "&", "InternalInstr", ",", "regionReader", ",", "(", "const", "void", "*", ")", "&", "R", ",", "LoggerFn", ",", "(", "void", "*", ")", "&", "VStream", ",", "(", "const", "void", "*", ")", "MII", ".", "get", "(", ")", ",", "Address", ",", "fMode", ")", ";", "if", "(", "Ret", ")", "{", "Size", "=", "InternalInstr", ".", "readerCursor", "-", "Address", ";", "return", "Fail", ";", "}", "else", "{", "Size", "=", "InternalInstr", ".", "length", ";", "bool", "Ret", "=", "translateInstruction", "(", "Instr", ",", "InternalInstr", ",", "this", ")", ";", "if", "(", "!", "Ret", ")", "{", "unsigned", "Flags", "=", "X86", "::", "IP_NO_PREFIX", ";", "if", "(", "InternalInstr", ".", "hasAdSize", ")", "Flags", "|=", "X86", "::", "IP_HAS_AD_SIZE", ";", "if", "(", "!", "InternalInstr", ".", "mandatoryPrefix", ")", "{", "if", "(", "InternalInstr", ".", "hasOpSize", ")", "Flags", "|=", "X86", "::", "IP_HAS_OP_SIZE", ";", "if", "(", "InternalInstr", ".", "repeatPrefix", "==", "0xf2", ")", "Flags", "|=", "X86", "::", "IP_HAS_REPEAT_NE", ";", "else", "if", "(", "InternalInstr", ".", "repeatPrefix", "==", "0xf3", "&&", "InternalInstr", ".", "opcode", "!=", "0x90", ")", "Flags", "|=", "X86", "::", "IP_HAS_REPEAT", ";", "}", "Instr", ".", "setFlags", "(", "Flags", ")", ";", "}", "return", "(", "!", "Ret", ")", "?", "Success", ":", "Fail", ";", "}", "}", ""], "natrual_language": ["Returns", "the", "disassembly", "of", "a", "single", "instruction", "."], "TS_V_token": ["X86", "X86", "X86::IP_NO_PREFIX", "X86::IP_HAS_AD_SIZE", "X86::IP_HAS_OP_SIZE", "0xf2", "X86::IP_HAS_REPEAT_NE", "0xf3", "0x90", "X86::IP_HAS_REPEAT"], "File": "X86Disassembler10", "Func": "getInstruction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 518, "Length": 250, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "F2003fMCAsmStreamer", "::", "emitValueToOffset", "(", "const", "MCExpr", "*", "Offset", ",", "unsigned", "char", "Value", ",", "SMLoc", "Loc", ")", "{", "llvm_unreachable", "(", "\"2003lk doesn't support this directive\"", ")", ";", "}", ""], "natrual_language": ["Emit", "some", "number", "of", "copies", "of", "Value", "until", "the", "byte", "offset", "Offset", "is", "reached", "."], "TS_V_token": ["F2003f", "F2003f", "\"2003lk doesn't support this directive\""], "File": "F2003fMCAsmStreamer", "Func": "emitValueToOffset", "Target": "F2003f", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 519, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "reset", "(", "unsigned", "RequiredSize", ")", "{", "RequiredShadowSize", "=", "RequiredSize", ";", "CurrentShadowSize", "=", "0", ";", "InShadow", "=", "true", ";", "}", ""], "natrual_language": ["Reset", "an", "existing", "scalar", "value", "for", "Def", "and", "a", "given", "Instance", "."], "TS_V_token": ["X86", "0"], "File": "X86AsmPrinter (2)2", "Func": "reset", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 520, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86PassConfig", "::", "addIRPasses", "(", ")", "{", "addPass", "(", "createAtomicExpandPass", "(", ")", ")", ";", "TargetPassConfig", "::", "addIRPasses", "(", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createInterleavedAccessPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["Add", "common", "target", "configurable", "passes", "that", "perform", "LLVM", "IR", "to", "IR", "transforms", "following", "machine", "independent", "optimization", "."], "TS_V_token": ["X86", "X86"], "File": "X86TargetMachine18", "Func": "addIRPasses", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 521, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "allowsMisalignedMemoryAccesses", "(", "EVT", "VT", ",", "unsigned", ",", "unsigned", ",", "bool", "*", "Fast", ")", "const", "{", "if", "(", "Fast", ")", "{", "switch", "(", "VT", ".", "getSizeInBits", "(", ")", ")", "{", "default", ":", "*", "Fast", "=", "true", ";", "break", ";", "case", "128", ":", "*", "Fast", "=", "!", "Subtarget", "->", "isUnalignedMem16Slow", "(", ")", ";", "break", ";", "case", "256", ":", "*", "Fast", "=", "!", "Subtarget", "->", "isUnalignedMem32Slow", "(", ")", ";", "break", ";", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "allows", "unaligned", "memory", "accesses", "of", "the", "specified", "type", "."], "TS_V_token": ["X86", "X86", "128", "256"], "File": "X86ISelLowering (2)3", "Func": "allowsMisalignedMemoryAccesses", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 522, "Length": 77, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "movd44_even_dep_p", "(", "rtx_insn", "*", "insn", ",", "rtx", "def_reg", ")", "{", "if", "(", "!", "movd44_insn_p", "(", "insn", ")", ")", "return", "false", ";", "rtx", "use_rtx", "=", "SET_SRC", "(", "PATTERN", "(", "insn", ")", ")", ";", "if", "(", "REG_P", "(", "def_reg", ")", ")", "{", "return", "rtx_equal_p", "(", "def_reg", ",", "use_rtx", ")", ";", "}", "else", "if", "(", "GET_CODE", "(", "def_reg", ")", "==", "SUBREG", "&&", "GET_MODE", "(", "def_reg", ")", "==", "SImode", "&&", "rtx_equal_p", "(", "SUBREG_REG", "(", "def_reg", ")", ",", "use_rtx", ")", ")", "{", "if", "(", "TARGET_BIG_ENDIAN", "&&", "SUBREG_BYTE", "(", "def_reg", ")", "==", "4", ")", "return", "true", ";", "if", "(", "!", "TARGET_BIG_ENDIAN", "&&", "SUBREG_BYTE", "(", "def_reg", ")", "==", "0", ")", "return", "true", ";", "return", "false", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Check", "if", "INSN", "is", "a", "movd44", "insn", "consuming", "DEF_REG", "."], "TS_V_token": ["nds32", "4", "0"], "File": "nds32-pipelines-auxiliary", "Func": "movd44_even_dep_p", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 523, "Length": 115, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Mips16HardFloat", "::", "runOnModule", "(", "Module", "&", "M", ")", "{", "DEBUG", "(", "errs", "(", ")", "<<", "\"Run on Module Mips16HardFloat\\n\"", ")", ";", "bool", "Modified", "=", "false", ";", "for", "(", "Module", "::", "iterator", "F", "=", "M", ".", "begin", "(", ")", ",", "E", "=", "M", ".", "end", "(", ")", ";", "F", "!=", "E", ";", "++", "F", ")", "{", "if", "(", "F", "->", "isDeclaration", "(", ")", "||", "F", "->", "hasFnAttribute", "(", "\"mips16_fp_stub\"", ")", "||", "F", "->", "hasFnAttribute", "(", "\"nomips16\"", ")", ")", "continue", ";", "Modified", "|=", "fixupFPReturnAndCall", "(", "*", "F", ",", "&", "M", ",", "Subtarget", ")", ";", "FPParamVariant", "V", "=", "whichFPParamVariantNeeded", "(", "*", "F", ")", ";", "if", "(", "V", "!=", "NoSig", ")", "{", "Modified", "=", "true", ";", "createFPFnStub", "(", "F", ",", "&", "M", ",", "V", ",", "Subtarget", ")", ";", "}", "}", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnModule", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "process", "the", "module", "being", "operated", "on", "."], "TS_V_token": ["Mips", "Mips", "\"Run on Module Mips16HardFloat\\n\"", "\"mips16_fp_stub\"", "\"nomips16\""], "File": "Mips16HardFloat", "Func": "runOnModule", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 524, "Length": 128, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"AArch64O0PreLegalizerCombiner\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["AArch64", "\"AArch64O0PreLegalizerCombiner\""], "File": "AArch64O0PreLegalizerCombiner", "Func": "getPassName", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 525, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "hasBitTest", "(", "SDValue", "X", ",", "SDValue", "Y", ")", "const", "{", "return", "X", ".", "getValueType", "(", ")", ".", "isScalarInteger", "(", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "has", "a", "bit-test", "instruction", ":", "(", "X", "&", "(", "1", "<", "<", "Y", ")", ")", "==/", "!", "=", "0", "This", "knowledge", "can", "be", "used", "to", "prevent", "breaking", "the", "pattern", ",", "or", "creating", "it", "if", "it", "could", "be", "recognized", "."], "TS_V_token": ["X86", "X86"], "File": "X86ISelLowering (2)5", "Func": "hasBitTest", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 526, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "rs6000_final_prescan_insn", "(", "rtx_insn", "*", "insn", ",", "rtx", "*", "operand", "ATTRIBUTE_UNUSED", ",", "int", "num_operands", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "rs6000_warn_cell_microcode", ")", "{", "const", "char", "*", "temp", ";", "int", "insn_code_number", "=", "recog_memoized", "(", "insn", ")", ";", "location_t", "location", "=", "INSN_LOCATION", "(", "insn", ")", ";", "if", "(", "insn_code_number", "<", "0", ")", "return", ";", "temp", "=", "get_insn_template", "(", "insn_code_number", ",", "insn", ")", ";", "if", "(", "get_attr_cell_micro", "(", "insn", ")", "==", "CELL_MICRO_ALWAYS", ")", "warning_at", "(", "location", ",", "OPT_mwarn_cell_microcode", ",", "\"emitting microcode insn %s\\t[%s] #%d\"", ",", "temp", ",", "insn_data", "[", "INSN_CODE", "(", "insn", ")", "]", ".", "name", ",", "INSN_UID", "(", "insn", ")", ")", ";", "else", "if", "(", "get_attr_cell_micro", "(", "insn", ")", "==", "CELL_MICRO_CONDITIONAL", ")", "warning_at", "(", "location", ",", "OPT_mwarn_cell_microcode", ",", "\"emitting conditional microcode insn %s\\t[%s] #%d\"", ",", "temp", ",", "insn_data", "[", "INSN_CODE", "(", "insn", ")", "]", ".", "name", ",", "INSN_UID", "(", "insn", ")", ")", ";", "}", "}", ""], "natrual_language": ["Define", "FINAL_PRESCAN_INSN", "if", "some", "processing", "needs", "to", "be", "done", "before", "outputting", "the", "assembler", "code", ".", "On", "the", "PowerPC", ",", "we", "remember", "if", "the", "current", "insn", "is", "a", "prefixed", "insn", "where", "we", "need", "to", "emit", "a", "'", "p", "'", "before", "the", "insn", ".", "In", "addition", ",", "if", "the", "insn", "is", "part", "of", "a", "PC-relative", "reference", "to", "an", "external", "label", "optimization", ",", "this", "is", "recorded", "also", "."], "TS_V_token": ["rs6000", "0", "\"emitting microcode insn %s\\t[%s] #%d\"", "\"emitting conditional microcode insn %s\\t[%s] #%d\""], "File": "rs60004", "Func": "rs6000_final_prescan_insn", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 527, "Length": 133, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMBaseInstrInfo", "::", "getNumMicroOps", "(", "const", "InstrItineraryData", "*", "ItinData", ",", "const", "MachineInstr", "*", "MI", ")", "const", "{", "if", "(", "!", "ItinData", "||", "ItinData", "->", "isEmpty", "(", ")", ")", "return", "1", ";", "const", "MCInstrDesc", "&", "Desc", "=", "MI", "->", "getDesc", "(", ")", ";", "unsigned", "Class", "=", "Desc", ".", "getSchedClass", "(", ")", ";", "unsigned", "UOps", "=", "ItinData", "->", "Itineraries", "[", "Class", "]", ".", "NumMicroOps", ";", "if", "(", "UOps", ")", "return", "UOps", ";", "unsigned", "Opc", "=", "MI", "->", "getOpcode", "(", ")", ";", "switch", "(", "Opc", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unexpected multi-uops instruction!\"", ")", ";", "case", "ARM", "::", "VLDMQIA", ":", "case", "ARM", "::", "VSTMQIA", ":", "return", "2", ";", "case", "ARM", "::", "VLDMDIA", ":", "case", "ARM", "::", "VLDMDIA_UPD", ":", "case", "ARM", "::", "VLDMDDB_UPD", ":", "case", "ARM", "::", "VLDMSIA", ":", "case", "ARM", "::", "VLDMSIA_UPD", ":", "case", "ARM", "::", "VLDMSDB_UPD", ":", "case", "ARM", "::", "VSTMDIA", ":", "case", "ARM", "::", "VSTMDIA_UPD", ":", "case", "ARM", "::", "VSTMDDB_UPD", ":", "case", "ARM", "::", "VSTMSIA", ":", "case", "ARM", "::", "VSTMSIA_UPD", ":", "case", "ARM", "::", "VSTMSDB_UPD", ":", "{", "unsigned", "NumRegs", "=", "MI", "->", "getNumOperands", "(", ")", "-", "Desc", ".", "getNumOperands", "(", ")", ";", "return", "(", "NumRegs", "/", "2", ")", "+", "(", "NumRegs", "%", "2", ")", "+", "1", ";", "}", "case", "ARM", "::", "LDMIA_RET", ":", "case", "ARM", "::", "LDMIA", ":", "case", "ARM", "::", "LDMDA", ":", "case", "ARM", "::", "LDMDB", ":", "case", "ARM", "::", "LDMIB", ":", "case", "ARM", "::", "LDMIA_UPD", ":", "case", "ARM", "::", "LDMDA_UPD", ":", "case", "ARM", "::", "LDMDB_UPD", ":", "case", "ARM", "::", "LDMIB_UPD", ":", "case", "ARM", "::", "STMIA", ":", "case", "ARM", "::", "STMDA", ":", "case", "ARM", "::", "STMDB", ":", "case", "ARM", "::", "STMIB", ":", "case", "ARM", "::", "STMIA_UPD", ":", "case", "ARM", "::", "STMDA_UPD", ":", "case", "ARM", "::", "STMDB_UPD", ":", "case", "ARM", "::", "STMIB_UPD", ":", "case", "ARM", "::", "tLDMIA", ":", "case", "ARM", "::", "tLDMIA_UPD", ":", "case", "ARM", "::", "tSTMIA_UPD", ":", "case", "ARM", "::", "tPOP_RET", ":", "case", "ARM", "::", "tPOP", ":", "case", "ARM", "::", "tPUSH", ":", "case", "ARM", "::", "t2LDMIA_RET", ":", "case", "ARM", "::", "t2LDMIA", ":", "case", "ARM", "::", "t2LDMDB", ":", "case", "ARM", "::", "t2LDMIA_UPD", ":", "case", "ARM", "::", "t2LDMDB_UPD", ":", "case", "ARM", "::", "t2STMIA", ":", "case", "ARM", "::", "t2STMDB", ":", "case", "ARM", "::", "t2STMIA_UPD", ":", "case", "ARM", "::", "t2STMDB_UPD", ":", "{", "unsigned", "NumRegs", "=", "MI", "->", "getNumOperands", "(", ")", "-", "Desc", ".", "getNumOperands", "(", ")", "+", "1", ";", "if", "(", "Subtarget", ".", "isCortexA8", "(", ")", ")", "{", "if", "(", "NumRegs", "<", "4", ")", "return", "2", ";", "UOps", "=", "(", "NumRegs", "/", "2", ")", ";", "if", "(", "NumRegs", "%", "2", ")", "++", "UOps", ";", "return", "UOps", ";", "}", "else", "if", "(", "Subtarget", ".", "isCortexA9", "(", ")", ")", "{", "UOps", "=", "(", "NumRegs", "/", "2", ")", ";", "if", "(", "(", "NumRegs", "%", "2", ")", "||", "!", "MI", "->", "hasOneMemOperand", "(", ")", "||", "(", "*", "MI", "->", "memoperands_begin", "(", ")", ")", "->", "getAlignment", "(", ")", "<", "8", ")", "++", "UOps", ";", "return", "UOps", ";", "}", "else", "{", "return", "NumRegs", ";", "}", "}", "}", "}", ""], "natrual_language": ["Return", "the", "number", "of", "issue", "slots", "required", "for", "this", "MI", "."], "TS_V_token": ["ARM", "ARM", "1", "\"Unexpected multi-uops instruction!\"", "ARM::VLDMQIA", "ARM::VSTMQIA", "2", "ARM::VLDMDIA", "ARM::VLDMDIA_UPD", "ARM::VLDMDDB_UPD", "ARM::VLDMSIA", "ARM::VLDMSIA_UPD", "ARM::VLDMSDB_UPD", "ARM::VSTMDIA", "ARM::VSTMDIA_UPD", "ARM::VSTMDDB_UPD", "ARM::VSTMSIA", "ARM::VSTMSIA_UPD", "ARM::VSTMSDB_UPD", "2", "2", "1", "ARM::LDMIA_RET", "ARM::LDMIA", "ARM::LDMDA", "ARM::LDMDB", "ARM::LDMIB", "ARM::LDMIA_UPD", "ARM::LDMDA_UPD", "ARM::LDMDB_UPD", "ARM::LDMIB_UPD", "ARM::STMIA", "ARM::STMDA", "ARM::STMDB", "ARM::STMIB", "ARM::STMIA_UPD", "ARM::STMDA_UPD", "ARM::STMDB_UPD", "ARM::STMIB_UPD", "ARM::tLDMIA", "ARM::tLDMIA_UPD", "ARM::tSTMIA_UPD", "ARM::tPOP_RET", "ARM::tPOP", "ARM::tPUSH", "ARM::t2LDMIA_RET", "ARM::t2LDMIA", "ARM::t2LDMDB", "ARM::t2LDMIA_UPD", "ARM::t2LDMDB_UPD", "ARM::t2STMIA", "ARM::t2STMDB", "ARM::t2STMIA_UPD", "ARM::t2STMDB_UPD", "1", "4", "2", "2", "2", "2", "2", "8"], "File": "ARMBaseInstrInfo (2)4", "Func": "getNumMicroOps", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 528, "Length": 477, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SHUXIAsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "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": ["SHUXI", "SHUXI"], "File": "SHUXIAsmPrinter", "Func": "EmitInstruction", "Target": "SHUXI", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 529, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "MipsTargetLowering", "::", "getTargetNode", "(", "ConstantPoolSDNode", "*", "N", ",", "EVT", "Ty", ",", "SelectionDAG", "&", "DAG", ",", "unsigned", "Flag", ")", "const", "{", "return", "DAG", ".", "getTargetConstantPool", "(", "N", "->", "getConstVal", "(", ")", ",", "Ty", ",", "N", "->", "getAlign", "(", ")", ",", "N", "->", "getOffset", "(", ")", ",", "Flag", ")", ";", "}", ""], "natrual_language": ["Retrieve", "the", "target", "node", "this", "edge", "connects", "to", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsISelLowering107", "Func": "getTargetNode", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 530, "Length": 50, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "RC", "==", "Mips", "::", "CPURegsRegisterClass", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "Mips", "::", "SW", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addImm", "(", "0", ")", ".", "addFrameIndex", "(", "FI", ")", ";", "else", "if", "(", "RC", "==", "Mips", "::", "FGR32RegisterClass", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "Mips", "::", "SWC1", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addImm", "(", "0", ")", ".", "addFrameIndex", "(", "FI", ")", ";", "else", "if", "(", "RC", "==", "Mips", "::", "AFGR64RegisterClass", ")", "{", "if", "(", "!", "TM", ".", "getSubtarget", "<", "MipsSubtarget", ">", "(", ")", ".", "isMips1", "(", ")", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "Mips", "::", "SDC1", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addImm", "(", "0", ")", ".", "addFrameIndex", "(", "FI", ")", ";", "}", "else", "{", "const", "TargetRegisterInfo", "*", "TRI", "=", "MBB", ".", "getParent", "(", ")", "->", "getTarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "const", "unsigned", "*", "SubSet", "=", "TRI", "->", "getSubRegisters", "(", "SrcReg", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "Mips", "::", "SWC1", ")", ")", ".", "addReg", "(", "SubSet", "[", "0", "]", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addImm", "(", "0", ")", ".", "addFrameIndex", "(", "FI", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "Mips", "::", "SWC1", ")", ")", ".", "addReg", "(", "SubSet", "[", "1", "]", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addImm", "(", "4", ")", ".", "addFrameIndex", "(", "FI", ")", ";", "}", "}", "else", "llvm_unreachable", "(", "\"Register class not handled!\"", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["Mips", "Mips", "Mips::CPURegsRegisterClass", "Mips::SW", "0", "Mips::FGR32RegisterClass", "Mips::SWC1", "0", "Mips::AFGR64RegisterClass", "Mips", "Mips", "Mips::SDC1", "0", "Mips::SWC1", "0", "0", "Mips::SWC1", "1", "4", "\"Register class not handled!\""], "File": "MipsInstrInfo15", "Func": "storeRegToStackSlot", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 531, "Length": 329, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_global_symbol_p", "(", "const_rtx", "x", ")", "{", "const_tree", "decl", "=", "SYMBOL_REF_DECL", "(", "x", ")", ";", "if", "(", "!", "decl", ")", "return", "!", "SYMBOL_REF_LOCAL_P", "(", "x", ")", "||", "SYMBOL_REF_EXTERNAL_P", "(", "x", ")", ";", "return", "DECL_P", "(", "decl", ")", "&&", "(", "TREE_PUBLIC", "(", "decl", ")", "||", "DECL_WEAK", "(", "decl", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "SYMBOL_REF", "X", "is", "associated", "with", "a", "global", "symbol", "(", "in", "the", "STB_GLOBAL", "sense", ")", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_global_symbol_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 532, "Length": 52, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ";", "bool", "Changed", "=", "AsmPrinter", "::", "runOnMachineFunction", "(", "MF", ")", ";", "emitXRayTable", "(", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCAsmPrinter (2)3", "Func": "runOnMachineFunction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 533, "Length": 39, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCInstPrinter", "::", "printRegName", "(", "raw_ostream", "&", "OS", ",", "unsigned", "RegNo", ")", "const", "{", "const", "char", "*", "RegName", "=", "getRegisterName", "(", "RegNo", ")", ";", "if", "(", "RegName", "[", "0", "]", "==", "'q'", ")", "{", "std", "::", "string", "RN", "(", "RegName", ")", ";", "RN", "[", "0", "]", "=", "'f'", ";", "OS", "<<", "RN", ";", "return", ";", "}", "OS", "<<", "RegName", ";", "}", ""], "natrual_language": ["Print", "the", "assembler", "register", "name", "."], "TS_V_token": ["PowerPC", "PPC", "0", "0"], "File": "PPCInstPrinter", "Func": "printRegName", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 534, "Length": 61, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64AppleInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "O", ",", "StringRef", "Annot", ")", "{", "unsigned", "Opcode", "=", "MI", "->", "getOpcode", "(", ")", ";", "StringRef", "Layout", ",", "Mnemonic", ";", "bool", "IsTbx", ";", "if", "(", "isTblTbxInstruction", "(", "MI", "->", "getOpcode", "(", ")", ",", "Layout", ",", "IsTbx", ")", ")", "{", "O", "<<", "\"\\t\"", "<<", "(", "IsTbx", "?", "\"tbx\"", ":", "\"tbl\"", ")", "<<", "Layout", "<<", "'\\t'", "<<", "getRegisterName", "(", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ",", "AArch64", "::", "vreg", ")", "<<", "\", \"", ";", "unsigned", "ListOpNum", "=", "IsTbx", "?", "2", ":", "1", ";", "printVectorList", "(", "MI", ",", "ListOpNum", ",", "O", ",", "\"\"", ")", ";", "O", "<<", "\", \"", "<<", "getRegisterName", "(", "MI", "->", "getOperand", "(", "ListOpNum", "+", "1", ")", ".", "getReg", "(", ")", ",", "AArch64", "::", "vreg", ")", ";", "printAnnotation", "(", "O", ",", "Annot", ")", ";", "return", ";", "}", "if", "(", "LdStNInstrDesc", "*", "LdStDesc", "=", "getLdStNInstrDesc", "(", "Opcode", ")", ")", "{", "O", "<<", "\"\\t\"", "<<", "LdStDesc", "->", "Mnemonic", "<<", "LdStDesc", "->", "Layout", "<<", "'\\t'", ";", "int", "OpNum", "=", "LdStDesc", "->", "ListOperand", ";", "printVectorList", "(", "MI", ",", "OpNum", "++", ",", "O", ",", "\"\"", ")", ";", "if", "(", "LdStDesc", "->", "HasLane", ")", "O", "<<", "'['", "<<", "MI", "->", "getOperand", "(", "OpNum", "++", ")", ".", "getImm", "(", ")", "<<", "']'", ";", "unsigned", "AddrReg", "=", "MI", "->", "getOperand", "(", "OpNum", "++", ")", ".", "getReg", "(", ")", ";", "O", "<<", "\", [\"", "<<", "getRegisterName", "(", "AddrReg", ")", "<<", "']'", ";", "if", "(", "LdStDesc", "->", "NaturalOffset", "!=", "0", ")", "{", "unsigned", "Reg", "=", "MI", "->", "getOperand", "(", "OpNum", "++", ")", ".", "getReg", "(", ")", ";", "if", "(", "Reg", "!=", "AArch64", "::", "XZR", ")", "O", "<<", "\", \"", "<<", "getRegisterName", "(", "Reg", ")", ";", "else", "{", "assert", "(", "LdStDesc", "->", "NaturalOffset", "&&", "\"no offset on post-inc instruction?\"", ")", ";", "O", "<<", "\", #\"", "<<", "LdStDesc", "->", "NaturalOffset", ";", "}", "}", "printAnnotation", "(", "O", ",", "Annot", ")", ";", "return", ";", "}", "AArch64InstPrinter", "::", "printInst", "(", "MI", ",", "O", ",", "Annot", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["AArch64", "AArch64", "\"\\t\"", "\"tbx\"", "\"tbl\"", "0", "AArch64::vreg", "\", \"", "2", "1", "\"\"", "\", \"", "1", "AArch64::vreg", "\"\\t\"", "\"\"", "\", [\"", "0", "AArch64::XZR", "\", \"", "\"no offset on post-inc instruction?\"", "\", #\"", "AArch64"], "File": "AArch64InstPrinter", "Func": "printInst", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 535, "Length": 320, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "uint16_t", "name", "(", "struct", "InternalInstruction", "*", "insn", ",", "\\", "OperandType", "type", ",", "\\", "uint8_t", "index", ",", "\\", "uint8_t", "*", "valid", ")", "{", "\\", "*", "valid", "=", "1", ";", "\\", "switch", "(", "type", ")", "{", "\\", "default", ":", "\\", "debug", "(", "\"Unhandled register type\"", ")", ";", "\\", "*", "valid", "=", "0", ";", "\\", "return", "0", ";", "\\", "case", "TYPE_Rv", ":", "\\", "return", "base", "+", "index", ";", "\\", "case", "TYPE_R8", ":", "\\", "index", "&=", "mask", ";", "\\", "if", "(", "index", ">", "0xf", ")", "\\", "*", "valid", "=", "0", ";", "\\", "if", "(", "insn", "->", "rexPrefix", "&&", "\\", "index", ">=", "4", "&&", "index", "<=", "7", ")", "{", "\\", "return", "prefix", "##", "_SPL", "+", "(", "index", "-", "4", ")", ";", "\\", "}", "else", "{", "\\", "return", "prefix", "##", "_AL", "+", "index", ";", "\\", "}", "\\", "case", "TYPE_R16", ":", "\\", "index", "&=", "mask", ";", "\\", "if", "(", "index", ">", "0xf", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_AX", "+", "index", ";", "\\", "case", "TYPE_R32", ":", "\\", "index", "&=", "mask", ";", "\\", "if", "(", "index", ">", "0xf", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_EAX", "+", "index", ";", "\\", "case", "TYPE_R64", ":", "\\", "index", "&=", "mask", ";", "\\", "if", "(", "index", ">", "0xf", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_RAX", "+", "index", ";", "\\", "case", "TYPE_ZMM", ":", "\\", "return", "prefix", "##", "_ZMM0", "+", "index", ";", "\\", "case", "TYPE_YMM", ":", "\\", "return", "prefix", "##", "_YMM0", "+", "index", ";", "\\", "case", "TYPE_XMM", ":", "\\", "return", "prefix", "##", "_XMM0", "+", "index", ";", "\\", "case", "TYPE_VK", ":", "\\", "index", "&=", "0xf", ";", "\\", "if", "(", "index", ">", "7", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_K0", "+", "index", ";", "\\", "case", "TYPE_MM64", ":", "\\", "return", "prefix", "##", "_MM0", "+", "(", "index", "&", "0x7", ")", ";", "\\", "case", "TYPE_SEGMENTREG", ":", "\\", "if", "(", "(", "index", "&", "7", ")", ">", "5", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_ES", "+", "(", "index", "&", "7", ")", ";", "\\", "case", "TYPE_DEBUGREG", ":", "\\", "return", "prefix", "##", "_DR0", "+", "index", ";", "\\", "case", "TYPE_CONTROLREG", ":", "\\", "return", "prefix", "##", "_CR0", "+", "index", ";", "\\", "case", "TYPE_BNDR", ":", "\\", "if", "(", "index", ">", "3", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_BND0", "+", "index", ";", "\\", "case", "TYPE_MVSIBX", ":", "\\", "return", "prefix", "##", "_XMM0", "+", "index", ";", "\\", "case", "TYPE_MVSIBY", ":", "\\", "return", "prefix", "##", "_YMM0", "+", "index", ";", "\\", "case", "TYPE_MVSIBZ", ":", "\\", "return", "prefix", "##", "_ZMM0", "+", "index", ";", "\\", "}", "\\", "}", ""], "natrual_language": ["Gets", "the", "name", "of", "the", "pass", "we", "are", "mixed", "into", "."], "TS_V_token": ["X86", "1", "\"Unhandled register type\"", "0", "0", "0xf", "0", "4", "7", "4", "0xf", "0", "0xf", "0", "0xf", "0", "0xf", "7", "0", "0x7", "7", "5", "0", "7", "3", "0"], "File": "X86DisassemblerDecoder", "Func": "name", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 536, "Length": 423, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isProfitableToUnpredicate", "(", ")", "const", "{", "return", "IsProfitableToUnpredicate", ";", "}", ""], "natrual_language": ["Return", "true", "if", "it", "'s", "profitable", "to", "unpredicate", "one", "side", "of", "a", "'diamond", "'", ",", "i.e", "."], "TS_V_token": ["ARM"], "File": "ARMSubtarget (2)3", "Func": "isProfitableToUnpredicate", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 537, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCTargetLowering", "::", "ReplaceNodeResults", "(", "SDNode", "*", "N", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "Results", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SDLoc", "dl", "(", "N", ")", ";", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Do not know how to custom type legalize this operation!\"", ")", ";", "case", "ISD", "::", "READCYCLECOUNTER", ":", "{", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "MVT", "::", "i32", ",", "MVT", "::", "i32", ",", "MVT", "::", "Other", ")", ";", "SDValue", "RTB", "=", "DAG", ".", "getNode", "(", "PPCISD", "::", "READ_TIME_BASE", ",", "dl", ",", "VTs", ",", "N", "->", "getOperand", "(", "0", ")", ")", ";", "Results", ".", "push_back", "(", "RTB", ")", ";", "Results", ".", "push_back", "(", "RTB", ".", "getValue", "(", "1", ")", ")", ";", "Results", ".", "push_back", "(", "RTB", ".", "getValue", "(", "2", ")", ")", ";", "break", ";", "}", "case", "ISD", "::", "INTRINSIC_W_CHAIN", ":", "{", "if", "(", "cast", "<", "ConstantSDNode", ">", "(", "N", "->", "getOperand", "(", "1", ")", ")", "->", "getZExtValue", "(", ")", "!=", "Intrinsic", "::", "ppc_is_decremented_ctr_nonzero", ")", "break", ";", "assert", "(", "N", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i1", "&&", "\"Unexpected result type for CTR decrement intrinsic\"", ")", ";", "EVT", "SVT", "=", "getSetCCResultType", "(", "DAG", ".", "getDataLayout", "(", ")", ",", "*", "DAG", ".", "getContext", "(", ")", ",", "N", "->", "getValueType", "(", "0", ")", ")", ";", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "SVT", ",", "MVT", "::", "Other", ")", ";", "SDValue", "NewInt", "=", "DAG", ".", "getNode", "(", "N", "->", "getOpcode", "(", ")", ",", "dl", ",", "VTs", ",", "N", "->", "getOperand", "(", "0", ")", ",", "N", "->", "getOperand", "(", "1", ")", ")", ";", "Results", ".", "push_back", "(", "DAG", ".", "getNode", "(", "ISD", "::", "TRUNCATE", ",", "dl", ",", "MVT", "::", "i1", ",", "NewInt", ")", ")", ";", "Results", ".", "push_back", "(", "NewInt", ".", "getValue", "(", "1", ")", ")", ";", "break", ";", "}", "case", "ISD", "::", "VAARG", ":", "{", "if", "(", "!", "Subtarget", ".", "isSVR4ABI", "(", ")", "||", "Subtarget", ".", "isPPC64", "(", ")", ")", "return", ";", "EVT", "VT", "=", "N", "->", "getValueType", "(", "0", ")", ";", "if", "(", "VT", "==", "MVT", "::", "i64", ")", "{", "SDValue", "NewNode", "=", "LowerVAARG", "(", "SDValue", "(", "N", ",", "1", ")", ",", "DAG", ")", ";", "Results", ".", "push_back", "(", "NewNode", ")", ";", "Results", ".", "push_back", "(", "NewNode", ".", "getValue", "(", "1", ")", ")", ";", "}", "return", ";", "}", "case", "ISD", "::", "FP_TO_SINT", ":", "case", "ISD", "::", "FP_TO_UINT", ":", "if", "(", "N", "->", "getOperand", "(", "0", ")", ".", "getValueType", "(", ")", "==", "MVT", "::", "ppcf128", ")", "return", ";", "Results", ".", "push_back", "(", "LowerFP_TO_INT", "(", "SDValue", "(", "N", ",", "0", ")", ",", "DAG", ",", "dl", ")", ")", ";", "return", ";", "}", "}", ""], "natrual_language": ["ReplaceNodeResults", "-", "Replace", "the", "results", "of", "node", "with", "an", "illegal", "result", "type", "with", "new", "values", "built", "out", "of", "custom", "code", "."], "TS_V_token": ["PowerPC", "PPC", "\"Do not know how to custom type legalize this operation!\"", "ISD::READCYCLECOUNTER", "MVT::i32", "MVT::i32", "MVT::Other", "PPCISD::READ_TIME_BASE", "0", "1", "2", "ISD::INTRINSIC_W_CHAIN", "1", "Intrinsic::ppc_is_decremented_ctr_nonzero", "0", "MVT::i1", "\"Unexpected result type for CTR decrement intrinsic\"", "0", "MVT::Other", "0", "1", "ISD::TRUNCATE", "MVT::i1", "1", "ISD::VAARG", "PPC", "0", "MVT::i64", "1", "1", "ISD::FP_TO_SINT", "ISD::FP_TO_UINT", "0", "MVT::ppcf128", "0"], "File": "PPCISelLowering", "Func": "ReplaceNodeResults", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 538, "Length": 415, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "TargetRegisterClass", "*", "CJGRegisterInfo", "::", "getPointerRegClass", "(", "const", "MachineFunction", "&", "MF", ",", "unsigned", "Kind", ")", "const", "{", "return", "&", "CJG", "::", "GPRegsRegClass", ";", "}", ""], "natrual_language": ["getPointerRegClass", "-", "Returns", "a", "TargetRegisterClass", "used", "for", "pointer", "values", "."], "TS_V_token": ["CJG", "CJG", "CJG::GPRegsRegClass"], "File": "CJGRegisterInfo", "Func": "getPointerRegClass", "Target": "CJG", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 539, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMTargetLowering", "::", "isLegalICmpImmediate", "(", "int64_t", "Imm", ")", "const", "{", "if", "(", "!", "Subtarget", "->", "isThumb", "(", ")", ")", "return", "ARM_AM", "::", "getSOImmVal", "(", "llvm", "::", "abs64", "(", "Imm", ")", ")", "!=", "-", "1", ";", "if", "(", "Subtarget", "->", "isThumb2", "(", ")", ")", "return", "ARM_AM", "::", "getT2SOImmVal", "(", "llvm", "::", "abs64", "(", "Imm", ")", ")", "!=", "-", "1", ";", "return", "Imm", ">=", "0", "&&", "Imm", "<=", "255", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "specified", "immediate", "is", "legal", "icmp", "immediate", ",", "that", "is", "the", "target", "has", "icmp", "instructions", "which", "can", "compare", "a", "register", "against", "the", "immediate", "without", "having", "to", "materialize", "the", "immediate", "into", "a", "register", "."], "TS_V_token": ["ARM", "ARM", "ARM_AM::getSOImmVal", "1", "ARM_AM::getT2SOImmVal", "1", "0", "255"], "File": "ARMISelLowering (2)", "Func": "isLegalICmpImmediate", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 540, "Length": 69, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86DAGToDAGISel", "::", "PreprocessISelDAG", "(", ")", "{", "OptForSize", "=", "MF", "->", "getFunction", "(", ")", "->", "getFnAttributes", "(", ")", ".", "hasOptimizeForSizeAttr", "(", ")", ";", "for", "(", "SelectionDAG", "::", "allnodes_iterator", "I", "=", "CurDAG", "->", "allnodes_begin", "(", ")", ",", "E", "=", "CurDAG", "->", "allnodes_end", "(", ")", ";", "I", "!=", "E", ";", ")", "{", "SDNode", "*", "N", "=", "I", "++", ";", "if", "(", "OptLevel", "!=", "CodeGenOpt", "::", "None", "&&", "(", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "CALL", "||", "(", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "TC_RETURN", "&&", "(", "Subtarget", "->", "is64Bit", "(", ")", "||", "getTargetMachine", "(", ")", ".", "getRelocationModel", "(", ")", "!=", "Reloc", "::", "PIC_", ")", ")", ")", ")", "{", "bool", "HasCallSeq", "=", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "CALL", ";", "SDValue", "Chain", "=", "N", "->", "getOperand", "(", "0", ")", ";", "SDValue", "Load", "=", "N", "->", "getOperand", "(", "1", ")", ";", "if", "(", "!", "isCalleeLoad", "(", "Load", ",", "Chain", ",", "HasCallSeq", ")", ")", "continue", ";", "MoveBelowOrigChain", "(", "CurDAG", ",", "Load", ",", "SDValue", "(", "N", ",", "0", ")", ",", "Chain", ")", ";", "++", "NumLoadMoved", ";", "continue", ";", "}", "if", "(", "N", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "FP_ROUND", "&&", "N", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "FP_EXTEND", ")", "continue", ";", "EVT", "SrcVT", "=", "N", "->", "getOperand", "(", "0", ")", ".", "getValueType", "(", ")", ";", "EVT", "DstVT", "=", "N", "->", "getValueType", "(", "0", ")", ";", "if", "(", "SrcVT", ".", "isVector", "(", ")", "||", "DstVT", ".", "isVector", "(", ")", ")", "continue", ";", "bool", "SrcIsSSE", "=", "X86Lowering", ".", "isScalarFPTypeInSSEReg", "(", "SrcVT", ")", ";", "bool", "DstIsSSE", "=", "X86Lowering", ".", "isScalarFPTypeInSSEReg", "(", "DstVT", ")", ";", "if", "(", "SrcIsSSE", "&&", "DstIsSSE", ")", "continue", ";", "if", "(", "!", "SrcIsSSE", "&&", "!", "DstIsSSE", ")", "{", "if", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "FP_EXTEND", ")", "continue", ";", "if", "(", "N", "->", "getConstantOperandVal", "(", "1", ")", ")", "continue", ";", "}", "EVT", "MemVT", ";", "if", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "FP_ROUND", ")", "MemVT", "=", "DstVT", ";", "else", "MemVT", "=", "SrcIsSSE", "?", "SrcVT", ":", "DstVT", ";", "SDValue", "MemTmp", "=", "CurDAG", "->", "CreateStackTemporary", "(", "MemVT", ")", ";", "DebugLoc", "dl", "=", "N", "->", "getDebugLoc", "(", ")", ";", "SDValue", "Store", "=", "CurDAG", "->", "getTruncStore", "(", "CurDAG", "->", "getEntryNode", "(", ")", ",", "dl", ",", "N", "->", "getOperand", "(", "0", ")", ",", "MemTmp", ",", "MachinePointerInfo", "(", ")", ",", "MemVT", ",", "false", ",", "false", ",", "0", ")", ";", "SDValue", "Result", "=", "CurDAG", "->", "getExtLoad", "(", "ISD", "::", "EXTLOAD", ",", "dl", ",", "DstVT", ",", "Store", ",", "MemTmp", ",", "MachinePointerInfo", "(", ")", ",", "MemVT", ",", "false", ",", "false", ",", "0", ")", ";", "--", "I", ";", "CurDAG", "->", "ReplaceAllUsesOfValueWith", "(", "SDValue", "(", "N", ",", "0", ")", ",", "Result", ")", ";", "++", "I", ";", "CurDAG", "->", "DeleteNode", "(", "N", ")", ";", "}", "}", ""], "natrual_language": ["PreprocessISelDAG", "-", "This", "hook", "allows", "targets", "to", "hack", "on", "the", "graph", "before", "instruction", "selection", "starts", "."], "TS_V_token": ["X86", "X86", "X86ISD::CALL", "X86ISD::TC_RETURN", "X86ISD::CALL", "0", "1", "0", "ISD::FP_ROUND", "ISD::FP_EXTEND", "0", "0", "X86", "X86", "ISD::FP_EXTEND", "1", "ISD::FP_ROUND", "0", "0", "ISD::EXTLOAD", "0", "0"], "File": "X86ISelDAGToDAG13", "Func": "PreprocessISelDAG", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 541, "Length": 451, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx_insn", "*", "rs6000_md_asm_adjust", "(", "vec", "<", "rtx", ">", "&", ",", "vec", "<", "rtx", ">", "&", ",", "vec", "<", "machine_mode", ">", "&", ",", "vec", "<", "const", "char", "*", ">", "&", ",", "vec", "<", "rtx", ">", "&", "clobbers", ",", "HARD_REG_SET", "&", "clobbered_regs", ",", "location_t", ")", "{", "clobbers", ".", "safe_push", "(", "gen_rtx_REG", "(", "SImode", ",", "CA_REGNO", ")", ")", ";", "SET_HARD_REG_BIT", "(", "clobbered_regs", ",", "CA_REGNO", ")", ";", "return", "NULL", ";", "}", ""], "natrual_language": ["Implement", "TARGET_MD_ASM_ADJUST", ".", "All", "asm", "statements", "are", "considered", "to", "clobber", "the", "XER", "[", "CA", "]", "bit", "because", "clobbering", "that", "bit", "without", "telling", "the", "compiler", "worked", "just", "fine", "with", "versions", "of", "GCC", "before", "GCC", "5", ",", "and", "breaking", "a", "lot", "of", "older", "code", "in", "ways", "that", "are", "hard", "to", "track", "down", "is", "not", "such", "a", "great", "idea", "."], "TS_V_token": ["rs6000"], "File": "rs6000", "Func": "rs6000_md_asm_adjust", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 542, "Length": 68, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "arm_expand_neon_builtin", "(", "int", "fcode", ",", "tree", "exp", ",", "rtx", "target", ")", "{", "if", "(", "!", "TARGET_NEON", ")", "{", "fatal_error", "(", "input_location", ",", "\"You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use these intrinsics.\"", ")", ";", "return", "const0_rtx", ";", "}", "if", "(", "fcode", "==", "ARM_BUILTIN_NEON_LANE_CHECK", ")", "{", "tree", "nlanes", "=", "CALL_EXPR_ARG", "(", "exp", ",", "0", ")", ";", "gcc_assert", "(", "TREE_CODE", "(", "nlanes", ")", "==", "INTEGER_CST", ")", ";", "rtx", "lane_idx", "=", "expand_normal", "(", "CALL_EXPR_ARG", "(", "exp", ",", "1", ")", ")", ";", "if", "(", "CONST_INT_P", "(", "lane_idx", ")", ")", "neon_lane_bounds", "(", "lane_idx", ",", "0", ",", "TREE_INT_CST_LOW", "(", "nlanes", ")", ",", "exp", ")", ";", "else", "error", "(", "\"%Klane index must be a constant immediate\"", ",", "exp", ")", ";", "return", "const0_rtx", ";", "}", "neon_builtin_datum", "*", "d", "=", "&", "neon_builtin_data", "[", "fcode", "-", "ARM_BUILTIN_NEON_PATTERN_START", "]", ";", "enum", "insn_code", "icode", "=", "d", "->", "code", ";", "builtin_arg", "args", "[", "SIMD_MAX_BUILTIN_ARGS", "+", "1", "]", ";", "int", "num_args", "=", "insn_data", "[", "d", "->", "code", "]", ".", "n_operands", ";", "int", "is_void", "=", "0", ";", "int", "k", ";", "is_void", "=", "!", "!", "(", "d", "->", "qualifiers", "[", "0", "]", "&", "qualifier_void", ")", ";", "num_args", "+=", "is_void", ";", "for", "(", "k", "=", "1", ";", "k", "<", "num_args", ";", "k", "++", ")", "{", "int", "qualifiers_k", "=", "k", ";", "int", "operands_k", "=", "k", "-", "is_void", ";", "int", "expr_args_k", "=", "k", "-", "1", ";", "if", "(", "d", "->", "qualifiers", "[", "qualifiers_k", "]", "&", "qualifier_lane_index", ")", "args", "[", "k", "]", "=", "NEON_ARG_LANE_INDEX", ";", "else", "if", "(", "d", "->", "qualifiers", "[", "qualifiers_k", "]", "&", "qualifier_struct_load_store_lane_index", ")", "args", "[", "k", "]", "=", "NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX", ";", "else", "if", "(", "d", "->", "qualifiers", "[", "qualifiers_k", "]", "&", "qualifier_immediate", ")", "args", "[", "k", "]", "=", "NEON_ARG_CONSTANT", ";", "else", "if", "(", "d", "->", "qualifiers", "[", "qualifiers_k", "]", "&", "qualifier_maybe_immediate", ")", "{", "rtx", "arg", "=", "expand_normal", "(", "CALL_EXPR_ARG", "(", "exp", ",", "(", "expr_args_k", ")", ")", ")", ";", "bool", "op_const_int_p", "=", "(", "CONST_INT_P", "(", "arg", ")", "&&", "(", "*", "insn_data", "[", "icode", "]", ".", "operand", "[", "operands_k", "]", ".", "predicate", ")", "(", "arg", ",", "insn_data", "[", "icode", "]", ".", "operand", "[", "operands_k", "]", ".", "mode", ")", ")", ";", "args", "[", "k", "]", "=", "op_const_int_p", "?", "NEON_ARG_CONSTANT", ":", "NEON_ARG_COPY_TO_REG", ";", "}", "else", "if", "(", "d", "->", "qualifiers", "[", "qualifiers_k", "]", "&", "qualifier_pointer", ")", "args", "[", "k", "]", "=", "NEON_ARG_MEMORY", ";", "else", "args", "[", "k", "]", "=", "NEON_ARG_COPY_TO_REG", ";", "}", "args", "[", "k", "]", "=", "NEON_ARG_STOP", ";", "return", "arm_expand_neon_args", "(", "target", ",", "d", "->", "mode", ",", "fcode", ",", "icode", ",", "!", "is_void", ",", "exp", ",", "&", "args", "[", "1", "]", ")", ";", "}", ""], "natrual_language": ["Expand", "a", "Neon", "builtin", ",", "i.e", ".", "those", "registered", "only", "if", "TARGET_NEON", "holds", ".", "Most", "of", "these", "are", "``", "special", "''", "because", "they", "do", "n't", "have", "symbolic", "constants", "defined", "per-instruction", "or", "per", "instruction-variant", ".", "Instead", ",", "the", "required", "info", "is", "looked", "up", "in", "the", "table", "neon_builtin_data", "."], "TS_V_token": ["arm", "\"You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use these intrinsics.\"", "0", "1", "0", "\"%Klane index must be a constant immediate\"", "1", "0", "0", "1", "1", "1"], "File": "arm-builtins3", "Func": "arm_expand_neon_builtin", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 543, "Length": 401, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Value", "*", "ARM64TargetLowering", "::", "emitStoreConditional", "(", "IRBuilder", "<", ">", "&", "Builder", ",", "Value", "*", "Val", ",", "Value", "*", "Addr", ",", "AtomicOrdering", "Ord", ")", "const", "{", "Module", "*", "M", "=", "Builder", ".", "GetInsertBlock", "(", ")", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "bool", "IsRelease", "=", "Ord", "==", "Release", "||", "Ord", "==", "AcquireRelease", "||", "Ord", "==", "SequentiallyConsistent", ";", "if", "(", "Val", "->", "getType", "(", ")", "->", "getPrimitiveSizeInBits", "(", ")", "==", "128", ")", "{", "Intrinsic", "::", "ID", "Int", "=", "IsRelease", "?", "Intrinsic", "::", "arm64_stlxp", ":", "Intrinsic", "::", "arm64_stxp", ";", "Function", "*", "Stxr", "=", "Intrinsic", "::", "getDeclaration", "(", "M", ",", "Int", ")", ";", "Type", "*", "Int64Ty", "=", "Type", "::", "getInt64Ty", "(", "M", "->", "getContext", "(", ")", ")", ";", "Value", "*", "Lo", "=", "Builder", ".", "CreateTrunc", "(", "Val", ",", "Int64Ty", ",", "\"lo\"", ")", ";", "Value", "*", "Hi", "=", "Builder", ".", "CreateTrunc", "(", "Builder", ".", "CreateLShr", "(", "Val", ",", "64", ")", ",", "Int64Ty", ",", "\"hi\"", ")", ";", "Addr", "=", "Builder", ".", "CreateBitCast", "(", "Addr", ",", "Type", "::", "getInt8PtrTy", "(", "M", "->", "getContext", "(", ")", ")", ")", ";", "return", "Builder", ".", "CreateCall3", "(", "Stxr", ",", "Lo", ",", "Hi", ",", "Addr", ")", ";", "}", "Intrinsic", "::", "ID", "Int", "=", "IsRelease", "?", "Intrinsic", "::", "arm64_stlxr", ":", "Intrinsic", "::", "arm64_stxr", ";", "Type", "*", "Tys", "[", "]", "=", "{", "Addr", "->", "getType", "(", ")", "}", ";", "Function", "*", "Stxr", "=", "Intrinsic", "::", "getDeclaration", "(", "M", ",", "Int", ",", "Tys", ")", ";", "return", "Builder", ".", "CreateCall2", "(", "Stxr", ",", "Builder", ".", "CreateZExtOrBitCast", "(", "Val", ",", "Stxr", "->", "getFunctionType", "(", ")", "->", "getParamType", "(", "0", ")", ")", ",", "Addr", ")", ";", "}", ""], "natrual_language": ["Perform", "a", "store-conditional", "operation", "to", "Addr", "."], "TS_V_token": ["ARM64", "ARM64", "128", "Intrinsic::ID", "Intrinsic::arm64_stlxp", "Intrinsic::arm64_stxp", "Intrinsic::getDeclaration", "\"lo\"", "64", "\"hi\"", "Intrinsic::ID", "Intrinsic::arm64_stlxr", "Intrinsic::arm64_stxr", "Intrinsic::getDeclaration", "0"], "File": "ARM64ISelLowering", "Func": "emitStoreConditional", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 544, "Length": 261, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "ARMTargetLowering", "::", "getRegForInlineAsmConstraint", "(", "const", "std", "::", "string", "&", "Constraint", ",", "MVT", "VT", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'l'", ":", "case", "'r'", ":", "return", "std", "::", "make_pair", "(", "0U", ",", "ARM", "::", "GPRRegisterClass", ")", ";", "case", "'w'", ":", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "ARM", "::", "SPRRegisterClass", ")", ";", "if", "(", "VT", "==", "MVT", "::", "f64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "ARM", "::", "DPRRegisterClass", ")", ";", "break", ";", "}", "}", "return", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "Constraint", ",", "VT", ")", ";", "}", ""], "natrual_language": ["Given", "a", "physical", "register", "constraint", "(", "e.g", "."], "TS_V_token": ["ARM", "ARM", "1", "0", "0U", "ARM::GPRRegisterClass", "MVT::f32", "0U", "ARM::SPRRegisterClass", "MVT::f64", "0U", "ARM::DPRRegisterClass"], "File": "ARMISelLowering124", "Func": "getRegForInlineAsmConstraint", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 545, "Length": 121, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMCallLowering", "::", "lowerFormalArguments", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "const", "Function", "&", "F", ",", "ArrayRef", "<", "unsigned", ">", "VRegs", ")", "const", "{", "auto", "&", "TLI", "=", "*", "getTLI", "<", "ARMTargetLowering", ">", "(", ")", ";", "auto", "Subtarget", "=", "TLI", ".", "getSubtarget", "(", ")", ";", "if", "(", "Subtarget", "->", "isThumb", "(", ")", ")", "return", "false", ";", "if", "(", "F", ".", "arg_empty", "(", ")", ")", "return", "true", ";", "if", "(", "F", ".", "isVarArg", "(", ")", ")", "return", "false", ";", "auto", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "auto", "&", "MBB", "=", "MIRBuilder", ".", "getMBB", "(", ")", ";", "auto", "DL", "=", "MF", ".", "getDataLayout", "(", ")", ";", "for", "(", "auto", "&", "Arg", ":", "F", ".", "args", "(", ")", ")", "if", "(", "!", "isSupportedType", "(", "DL", ",", "TLI", ",", "Arg", ".", "getType", "(", ")", ")", ")", "return", "false", ";", "CCAssignFn", "*", "AssignFn", "=", "TLI", ".", "CCAssignFnForCall", "(", "F", ".", "getCallingConv", "(", ")", ",", "F", ".", "isVarArg", "(", ")", ")", ";", "FormalArgHandler", "ArgHandler", "(", "MIRBuilder", ",", "MIRBuilder", ".", "getMF", "(", ")", ".", "getRegInfo", "(", ")", ",", "AssignFn", ")", ";", "SmallVector", "<", "ArgInfo", ",", "8", ">", "ArgInfos", ";", "SmallVector", "<", "unsigned", ",", "4", ">", "SplitRegs", ";", "unsigned", "Idx", "=", "0", ";", "for", "(", "auto", "&", "Arg", ":", "F", ".", "args", "(", ")", ")", "{", "ArgInfo", "AInfo", "(", "VRegs", "[", "Idx", "]", ",", "Arg", ".", "getType", "(", ")", ")", ";", "setArgFlags", "(", "AInfo", ",", "Idx", "+", "AttributeList", "::", "FirstArgIndex", ",", "DL", ",", "F", ")", ";", "SplitRegs", ".", "clear", "(", ")", ";", "splitToValueTypes", "(", "AInfo", ",", "ArgInfos", ",", "MF", ",", "[", "&", "]", "(", "unsigned", "Reg", ",", "uint64_t", "Offset", ")", "{", "SplitRegs", ".", "push_back", "(", "Reg", ")", ";", "}", ")", ";", "if", "(", "!", "SplitRegs", ".", "empty", "(", ")", ")", "MIRBuilder", ".", "buildMerge", "(", "VRegs", "[", "Idx", "]", ",", "SplitRegs", ")", ";", "Idx", "++", ";", "}", "if", "(", "!", "MBB", ".", "empty", "(", ")", ")", "MIRBuilder", ".", "setInstr", "(", "*", "MBB", ".", "begin", "(", ")", ")", ";", "return", "handleAssignments", "(", "MIRBuilder", ",", "ArgInfos", ",", "ArgHandler", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "the", "incoming", "(", "formal", ")", "arguments", ",", "described", "by", "VRegs", ",", "for", "GlobalISel", "."], "TS_V_token": ["ARM", "ARM", "ARM", "8", "4", "0"], "File": "ARMCallLowering26", "Func": "lowerFormalArguments", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 546, "Length": 331, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMExpandPseudo", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "STI", "=", "&", "static_cast", "<", "const", "ARMSubtarget", "&", ">", "(", "MF", ".", "getSubtarget", "(", ")", ")", ";", "TII", "=", "STI", "->", "getInstrInfo", "(", ")", ";", "TRI", "=", "STI", "->", "getRegisterInfo", "(", ")", ";", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "IsRelocPIC", "=", "MF", ".", "getTarget", "(", ")", ".", "getRelocationModel", "(", ")", "==", "Reloc", "::", "PIC_", ";", "bool", "Modified", "=", "false", ";", "for", "(", "MachineFunction", "::", "iterator", "MFI", "=", "MF", ".", "begin", "(", ")", ",", "E", "=", "MF", ".", "end", "(", ")", ";", "MFI", "!=", "E", ";", "++", "MFI", ")", "Modified", "|=", "ExpandMBB", "(", "*", "MFI", ")", ";", "if", "(", "VerifyARMPseudo", ")", "MF", ".", "verify", "(", "this", ",", "\"After expanding ARM pseudo instructions.\"", ")", ";", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "\"After expanding ARM pseudo instructions.\""], "File": "ARMExpandPseudoInsts78", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 547, "Length": 128, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "LC3AsmBackend", "::", "applyFixup", "(", "const", "MCFixup", "&", "Fixup", ",", "char", "*", "Data", ",", "unsigned", "DataSize", ",", "uint64_t", "Value", ",", "bool", "isPCRel", ")", "const", "{", "unsigned", "NumBytes", "=", "4", ";", "Value", "=", "adjustFixupValue", "(", "Fixup", ",", "Value", ")", ";", "if", "(", "!", "Value", ")", "{", "return", ";", "}", "unsigned", "Offset", "=", "Fixup", ".", "getOffset", "(", ")", ";", "assert", "(", "Offset", "+", "NumBytes", "<=", "DataSize", "&&", "\"Invalid fixup offset!\"", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "NumBytes", ";", "++", "i", ")", "{", "Data", "[", "Offset", "+", "i", "]", "|=", "uint8_t", "(", "(", "Value", ">>", "(", "i", "*", "8", ")", ")", "&", "0xff", ")", ";", "}", "}", ""], "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": ["LC3", "LC3", "4", "\"Invalid fixup offset!\"", "0", "8", "0xff"], "File": "LC3AsmBackend", "Func": "applyFixup", "Target": "LC3", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 548, "Length": 107, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Thumb1InstrInfo", "::", "canCopyGluedNodeDuringSchedule", "(", "SDNode", "*", "N", ")", "const", "{", "unsigned", "Opcode", "=", "N", "->", "getMachineOpcode", "(", ")", ";", "if", "(", "Opcode", "==", "ARM", "::", "tADCS", "||", "Opcode", "==", "ARM", "::", "tSBCS", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "given", "SDNode", "can", "be", "copied", "during", "scheduling", "even", "if", "it", "has", "glue", "."], "TS_V_token": ["ARM", "ARM::tADCS", "ARM::tSBCS"], "File": "Thumb1InstrInfo10", "Func": "canCopyGluedNodeDuringSchedule", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 549, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMPassConfig", "::", "addPreSched2", "(", ")", "{", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "if", "(", "!", "getARMSubtarget", "(", ")", ".", "isThumb1Only", "(", ")", ")", "{", "PM", ".", "add", "(", "createARMLoadStoreOptimizationPass", "(", ")", ")", ";", "printAndVerify", "(", "\"After ARM load / store optimizer\"", ")", ";", "}", "if", "(", "getARMSubtarget", "(", ")", ".", "hasNEON", "(", ")", ")", "PM", ".", "add", "(", "createExecutionDependencyFixPass", "(", "&", "ARM", "::", "DPRRegClass", ")", ")", ";", "}", "PM", ".", "add", "(", "createARMExpandPseudoPass", "(", ")", ")", ";", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "if", "(", "!", "getARMSubtarget", "(", ")", ".", "isThumb1Only", "(", ")", ")", "addPass", "(", "IfConverterID", ")", ";", "}", "if", "(", "getARMSubtarget", "(", ")", ".", "isThumb2", "(", ")", ")", "PM", ".", "add", "(", "createThumb2ITBlockPass", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "after", "prolog-epilog", "insertion", "and", "before", "the", "second", "instruction", "scheduling", "pass", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "\"After ARM load / store optimizer\"", "ARM", "ARM::DPRRegClass", "ARM", "ARM", "ARM"], "File": "ARMTargetMachine11", "Func": "addPreSched2", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 550, "Length": 129, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86PassConfig", "::", "addPostRegAlloc", "(", ")", "{", "PM", ".", "add", "(", "createX86FloatingPointStackifierPass", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "after", "register", "allocation", "pass", "pipeline", "but", "before", "prolog-epilog", "insertion", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86TargetMachine43", "Func": "addPostRegAlloc", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 551, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "EVT", "AArch64TargetLowering", "::", "getOptimalMemOpType", "(", "uint64_t", "Size", ",", "unsigned", "DstAlign", ",", "unsigned", "SrcAlign", ",", "bool", "IsMemset", ",", "bool", "ZeroMemset", ",", "bool", "MemcpyStrSrc", ",", "const", "AttributeList", "&", "FuncAttributes", ")", "const", "{", "bool", "CanImplicitFloat", "=", "!", "FuncAttributes", ".", "hasFnAttribute", "(", "Attribute", "::", "NoImplicitFloat", ")", ";", "bool", "CanUseNEON", "=", "Subtarget", "->", "hasNEON", "(", ")", "&&", "CanImplicitFloat", ";", "bool", "CanUseFP", "=", "Subtarget", "->", "hasFPARMv8", "(", ")", "&&", "CanImplicitFloat", ";", "bool", "IsSmallMemset", "=", "IsMemset", "&&", "Size", "<", "32", ";", "auto", "AlignmentIsAcceptable", "=", "[", "&", "]", "(", "EVT", "VT", ",", "unsigned", "AlignCheck", ")", "{", "if", "(", "memOpAlign", "(", "SrcAlign", ",", "DstAlign", ",", "AlignCheck", ")", ")", "return", "true", ";", "bool", "Fast", ";", "return", "allowsMisalignedMemoryAccesses", "(", "VT", ",", "0", ",", "1", ",", "&", "Fast", ")", "&&", "Fast", ";", "}", ";", "if", "(", "CanUseNEON", "&&", "IsMemset", "&&", "!", "IsSmallMemset", "&&", "AlignmentIsAcceptable", "(", "MVT", "::", "v2i64", ",", "16", ")", ")", "return", "MVT", "::", "v2i64", ";", "if", "(", "CanUseFP", "&&", "!", "IsSmallMemset", "&&", "AlignmentIsAcceptable", "(", "MVT", "::", "f128", ",", "16", ")", ")", "return", "MVT", "::", "f128", ";", "if", "(", "Size", ">=", "8", "&&", "AlignmentIsAcceptable", "(", "MVT", "::", "i64", ",", "8", ")", ")", "return", "MVT", "::", "i64", ";", "if", "(", "Size", ">=", "4", "&&", "AlignmentIsAcceptable", "(", "MVT", "::", "i32", ",", "4", ")", ")", "return", "MVT", "::", "i32", ";", "return", "MVT", "::", "Other", ";", "}", ""], "natrual_language": ["It", "returns", "EVT", ":", ":Other", "if", "the", "type", "should", "be", "determined", "using", "generic", "target-independent", "logic", "."], "TS_V_token": ["AArch64", "AArch64", "32", "0", "1", "MVT::v2i64", "16", "MVT::v2i64", "MVT::f128", "16", "MVT::f128", "8", "MVT::i64", "8", "MVT::i64", "4", "MVT::i32", "4", "MVT::i32", "MVT::Other"], "File": "AArch64ISelLowering110", "Func": "getOptimalMemOpType", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 552, "Length": 212, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "PPCTargetMachine", "&", "getTargetMachine", "(", ")", "const", "{", "return", "TM", ";", "}", ""], "natrual_language": ["Return", "the", "target", "machine", "(", "if", "available", ")", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCSubtarget (2)1", "Func": "getTargetMachine", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 553, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "AtomicExpansionKind", "X86TargetLowering", "::", "shouldExpandAtomicLoadInIR", "(", "LoadInst", "*", "LI", ")", "const", "{", "Type", "*", "MemType", "=", "LI", "->", "getType", "(", ")", ";", "bool", "NoImplicitFloatOps", "=", "LI", "->", "getFunction", "(", ")", "->", "hasFnAttribute", "(", "Attribute", "::", "NoImplicitFloat", ")", ";", "if", "(", "MemType", "->", "getPrimitiveSizeInBits", "(", ")", "==", "64", "&&", "!", "Subtarget", ".", "is64Bit", "(", ")", "&&", "!", "Subtarget", ".", "useSoftFloat", "(", ")", "&&", "!", "NoImplicitFloatOps", "&&", "(", "Subtarget", ".", "hasSSE2", "(", ")", "||", "Subtarget", ".", "hasX87", "(", ")", ")", ")", "return", "AtomicExpansionKind", "::", "None", ";", "return", "needsCmpXchgNb", "(", "MemType", ")", "?", "AtomicExpansionKind", "::", "CmpXChg", ":", "AtomicExpansionKind", "::", "None", ";", "}", ""], "natrual_language": ["Returns", "how", "the", "given", "(", "atomic", ")", "load", "should", "be", "expanded", "by", "the", "IR-level", "AtomicExpand", "pass", "."], "TS_V_token": ["X86", "X86", "64"], "File": "X86ISelLowering (2)6", "Func": "shouldExpandAtomicLoadInIR", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 554, "Length": 100, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "rs6000_hard_regno_nregs_internal", "(", "int", "regno", ",", "machine_mode", "mode", ")", "{", "unsigned", "HOST_WIDE_INT", "reg_size", ";", "if", "(", "FP_REGNO_P", "(", "regno", ")", ")", "reg_size", "=", "(", "(", "VECTOR_MEM_VSX_P", "(", "mode", ")", "&&", "mode", "!=", "TDmode", "&&", "mode", "!=", "TFmode", ")", "?", "UNITS_PER_VSX_WORD", ":", "UNITS_PER_FP_WORD", ")", ";", "else", "if", "(", "SPE_SIMD_REGNO_P", "(", "regno", ")", "&&", "TARGET_SPE", "&&", "SPE_VECTOR_MODE", "(", "mode", ")", ")", "reg_size", "=", "UNITS_PER_SPE_WORD", ";", "else", "if", "(", "ALTIVEC_REGNO_P", "(", "regno", ")", ")", "reg_size", "=", "UNITS_PER_ALTIVEC_WORD", ";", "else", "if", "(", "TARGET_E500_DOUBLE", "&&", "FLOAT_MODE_P", "(", "mode", ")", "&&", "mode", "!=", "SCmode", "&&", "!", "DECIMAL_FLOAT_MODE_P", "(", "mode", ")", "&&", "SPE_SIMD_REGNO_P", "(", "regno", ")", ")", "reg_size", "=", "UNITS_PER_FP_WORD", ";", "else", "reg_size", "=", "UNITS_PER_WORD", ";", "return", "(", "GET_MODE_SIZE", "(", "mode", ")", "+", "reg_size", "-", "1", ")", "/", "reg_size", ";", "}", ""], "natrual_language": ["Return", "number", "of", "consecutive", "hard", "regs", "needed", "starting", "at", "reg", "REGNO", "to", "hold", "something", "of", "mode", "MODE", ".", "This", "is", "ordinarily", "the", "length", "in", "words", "of", "a", "value", "of", "mode", "MODE", "but", "can", "be", "less", "for", "certain", "modes", "in", "special", "long", "registers", ".", "POWER", "and", "PowerPC", "GPRs", "hold", "32", "bits", "worth", ";", "PowerPC64", "GPRs", "and", "FPRs", "point", "register", "holds", "64", "bits", "worth", "."], "TS_V_token": ["rs6000", "1"], "File": "rs60004", "Func": "rs6000_hard_regno_nregs_internal", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 555, "Length": 125, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "CSKYAsmPrinter", "::", "PrintAsmMemoryOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNo", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "OS", ")", "{", "if", "(", "!", "ExtraCode", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "if", "(", "!", "MO", ".", "isReg", "(", ")", ")", "return", "true", ";", "OS", "<<", "\"(\"", "<<", "CSKYInstPrinter", "::", "getRegisterName", "(", "MO", ".", "getReg", "(", ")", ")", "<<", "\", 0)\"", ";", "return", "false", ";", "}", "return", "AsmPrinter", "::", "PrintAsmMemoryOperand", "(", "MI", ",", "OpNo", ",", "ExtraCode", ",", "OS", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "operand", "of", "MI", ",", "an", "INLINEASM", "instruction", ",", "using", "the", "specified", "assembler", "variant", "as", "an", "address", "."], "TS_V_token": ["CSKY", "CSKY", "\"(\"", "CSKY", "\", 0)\""], "File": "CSKYAsmPrinter1", "Func": "PrintAsmMemoryOperand", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 556, "Length": 89, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "pbsada_insn_rt_dep_reg_p", "(", "rtx", "pbsada_insn", ",", "rtx", "def_reg", ")", "{", "rtx", "pbsada_rt", "=", "SET_DEST", "(", "PATTERN", "(", "pbsada_insn", ")", ")", ";", "if", "(", "rtx_equal_p", "(", "def_reg", ",", "pbsada_rt", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Determine", "if", "the", "latency", "is", "occured", "when", "the", "consumer", "PBSADA_INSN", "uses", "the", "value", "of", "DEF_REG", "in", "its", "Rt", "field", "."], "TS_V_token": ["nds32"], "File": "nds32-pipelines-auxiliary", "Func": "pbsada_insn_rt_dep_reg_p", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 557, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZDAGToDAGISel", "::", "SelectInlineAsmMemoryOperand", "(", "const", "SDValue", "&", "Op", ",", "unsigned", "ConstraintID", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "OutOps", ")", "{", "SystemZAddressingMode", "::", "AddrForm", "Form", ";", "SystemZAddressingMode", "::", "DispRange", "DispRange", ";", "SDValue", "Base", ",", "Disp", ",", "Index", ";", "switch", "(", "ConstraintID", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unexpected asm memory constraint\"", ")", ";", "case", "InlineAsm", "::", "Constraint_i", ":", "case", "InlineAsm", "::", "Constraint_Q", ":", "Form", "=", "SystemZAddressingMode", "::", "FormBD", ";", "DispRange", "=", "SystemZAddressingMode", "::", "Disp12Only", ";", "break", ";", "case", "InlineAsm", "::", "Constraint_R", ":", "Form", "=", "SystemZAddressingMode", "::", "FormBDXNormal", ";", "DispRange", "=", "SystemZAddressingMode", "::", "Disp12Only", ";", "break", ";", "case", "InlineAsm", "::", "Constraint_S", ":", "Form", "=", "SystemZAddressingMode", "::", "FormBD", ";", "DispRange", "=", "SystemZAddressingMode", "::", "Disp20Only", ";", "break", ";", "case", "InlineAsm", "::", "Constraint_T", ":", "case", "InlineAsm", "::", "Constraint_m", ":", "case", "InlineAsm", "::", "Constraint_o", ":", "case", "InlineAsm", "::", "Constraint_p", ":", "Form", "=", "SystemZAddressingMode", "::", "FormBDXNormal", ";", "DispRange", "=", "SystemZAddressingMode", "::", "Disp20Only", ";", "break", ";", "}", "if", "(", "selectBDXAddr", "(", "Form", ",", "DispRange", ",", "Op", ",", "Base", ",", "Disp", ",", "Index", ")", ")", "{", "const", "TargetRegisterClass", "*", "TRC", "=", "Subtarget", "->", "getRegisterInfo", "(", ")", "->", "getPointerRegClass", "(", "*", "MF", ")", ";", "SDLoc", "DL", "(", "Base", ")", ";", "SDValue", "RC", "=", "CurDAG", "->", "getTargetConstant", "(", "TRC", "->", "getID", "(", ")", ",", "DL", ",", "MVT", "::", "i32", ")", ";", "if", "(", "Base", ".", "getOpcode", "(", ")", "!=", "ISD", "::", "TargetFrameIndex", "&&", "Base", ".", "getOpcode", "(", ")", "!=", "ISD", "::", "Register", ")", "{", "Base", "=", "SDValue", "(", "CurDAG", "->", "getMachineNode", "(", "TargetOpcode", "::", "COPY_TO_REGCLASS", ",", "DL", ",", "Base", ".", "getValueType", "(", ")", ",", "Base", ",", "RC", ")", ",", "0", ")", ";", "}", "if", "(", "Index", ".", "getOpcode", "(", ")", "!=", "ISD", "::", "Register", ")", "{", "Index", "=", "SDValue", "(", "CurDAG", "->", "getMachineNode", "(", "TargetOpcode", "::", "COPY_TO_REGCLASS", ",", "DL", ",", "Index", ".", "getValueType", "(", ")", ",", "Index", ",", "RC", ")", ",", "0", ")", ";", "}", "OutOps", ".", "push_back", "(", "Base", ")", ";", "OutOps", ".", "push_back", "(", "Disp", ")", ";", "OutOps", ".", "push_back", "(", "Index", ")", ";", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["SelectInlineAsmMemoryOperand", "-", "Select", "the", "specified", "address", "as", "a", "target", "addressing", "mode", ",", "according", "to", "the", "specified", "constraint", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZAddressingMode::AddrForm", "SystemZAddressingMode::DispRange", "\"Unexpected asm memory constraint\"", "SystemZAddressingMode::FormBD", "SystemZAddressingMode::Disp12Only", "SystemZAddressingMode::FormBDXNormal", "SystemZAddressingMode::Disp12Only", "SystemZAddressingMode::FormBD", "SystemZAddressingMode::Disp20Only", "SystemZAddressingMode::FormBDXNormal", "SystemZAddressingMode::Disp20Only", "MVT::i32", "ISD::TargetFrameIndex", "ISD::Register", "0", "ISD::Register", "0"], "File": "SystemZISelDAGToDAG22", "Func": "SelectInlineAsmMemoryOperand", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 558, "Length": 333, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "optimizeCompareInstr", "(", "MachineInstr", "&", "CmpInstr", ",", "Register", "SrcReg", ",", "Register", "SrcReg2", ",", "int64_t", "CmpMask", ",", "int64_t", "CmpValue", ",", "const", "MachineRegisterInfo", "*", "MRI", ")", "const", "{", "assert", "(", "CmpInstr", ".", "getParent", "(", ")", ")", ";", "assert", "(", "MRI", ")", ";", "int", "DeadNZCVIdx", "=", "CmpInstr", ".", "findRegisterDefOperandIdx", "(", "AArch64", "::", "NZCV", ",", "true", ")", ";", "if", "(", "DeadNZCVIdx", "!=", "-", "1", ")", "{", "if", "(", "CmpInstr", ".", "definesRegister", "(", "AArch64", "::", "WZR", ")", "||", "CmpInstr", ".", "definesRegister", "(", "AArch64", "::", "XZR", ")", ")", "{", "CmpInstr", ".", "eraseFromParent", "(", ")", ";", "return", "true", ";", "}", "unsigned", "Opc", "=", "CmpInstr", ".", "getOpcode", "(", ")", ";", "unsigned", "NewOpc", "=", "convertToNonFlagSettingOpc", "(", "CmpInstr", ")", ";", "if", "(", "NewOpc", "==", "Opc", ")", "return", "false", ";", "const", "MCInstrDesc", "&", "MCID", "=", "get", "(", "NewOpc", ")", ";", "CmpInstr", ".", "setDesc", "(", "MCID", ")", ";", "CmpInstr", ".", "removeOperand", "(", "DeadNZCVIdx", ")", ";", "bool", "succeeded", "=", "UpdateOperandRegClass", "(", "CmpInstr", ")", ";", "(", "void", ")", "succeeded", ";", "assert", "(", "succeeded", "&&", "\"Some operands reg class are incompatible!\"", ")", ";", "return", "true", ";", "}", "if", "(", "CmpInstr", ".", "getOpcode", "(", ")", "==", "AArch64", "::", "PTEST_PP", ")", "return", "optimizePTestInstr", "(", "&", "CmpInstr", ",", "SrcReg", ",", "SrcReg2", ",", "MRI", ")", ";", "if", "(", "SrcReg2", "!=", "0", ")", "return", "false", ";", "if", "(", "!", "MRI", "->", "use_nodbg_empty", "(", "CmpInstr", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ")", ")", "return", "false", ";", "if", "(", "CmpValue", "==", "0", "&&", "substituteCmpToZero", "(", "CmpInstr", ",", "SrcReg", ",", "*", "MRI", ")", ")", "return", "true", ";", "return", "(", "CmpValue", "==", "0", "||", "CmpValue", "==", "1", ")", "&&", "removeCmpToZeroOrOne", "(", "CmpInstr", ",", "SrcReg", ",", "CmpValue", ",", "*", "MRI", ")", ";", "}", ""], "natrual_language": ["optimizeCompareInstr", "-", "Check", "if", "there", "exists", "an", "earlier", "instruction", "that", "operates", "on", "the", "same", "source", "operands", "and", "sets", "flags", "in", "the", "same", "way", "as", "Compare", ";", "remove", "Compare", "if", "possible", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::NZCV", "1", "AArch64::WZR", "AArch64::XZR", "\"Some operands reg class are incompatible!\"", "AArch64::PTEST_PP", "0", "0", "0", "0", "1"], "File": "AArch64InstrInfo51", "Func": "optimizeCompareInstr", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 559, "Length": 268, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ix86_attr_length_address_default", "(", "rtx_insn", "*", "insn", ")", "{", "int", "i", ";", "if", "(", "get_attr_type", "(", "insn", ")", "==", "TYPE_LEA", ")", "{", "rtx", "set", "=", "PATTERN", "(", "insn", ")", ",", "addr", ";", "if", "(", "GET_CODE", "(", "set", ")", "==", "PARALLEL", ")", "set", "=", "XVECEXP", "(", "set", ",", "0", ",", "0", ")", ";", "gcc_assert", "(", "GET_CODE", "(", "set", ")", "==", "SET", ")", ";", "addr", "=", "SET_SRC", "(", "set", ")", ";", "return", "memory_address_length", "(", "addr", ",", "true", ")", ";", "}", "extract_insn_cached", "(", "insn", ")", ";", "for", "(", "i", "=", "recog_data", ".", "n_operands", "-", "1", ";", "i", ">=", "0", ";", "--", "i", ")", "if", "(", "MEM_P", "(", "recog_data", ".", "operand", "[", "i", "]", ")", ")", "{", "constrain_operands_cached", "(", "insn", ",", "reload_completed", ")", ";", "if", "(", "which_alternative", "!=", "-", "1", ")", "{", "const", "char", "*", "constraints", "=", "recog_data", ".", "constraints", "[", "i", "]", ";", "int", "alt", "=", "which_alternative", ";", "while", "(", "*", "constraints", "==", "'='", "||", "*", "constraints", "==", "'+'", ")", "constraints", "++", ";", "while", "(", "alt", "--", ">", "0", ")", "while", "(", "*", "constraints", "++", "!=", "','", ")", ";", "if", "(", "*", "constraints", "==", "'X'", ")", "continue", ";", "}", "return", "memory_address_length", "(", "XEXP", "(", "recog_data", ".", "operand", "[", "i", "]", ",", "0", ")", ",", "false", ")", ";", "}", "return", "0", ";", "}", ""], "natrual_language": ["Compute", "default", "value", "for", "``", "length_address", "''", "attribute", "."], "TS_V_token": ["i386", "0", "0", "1", "0", "1", "0", "0", "0"], "File": "i3864", "Func": "ix86_attr_length_address_default", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 560, "Length": 208, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "rs6000_emit_savres_rtx", "(", "rs6000_stack_t", "*", "info", ",", "rtx", "frame_reg_rtx", ",", "int", "save_area_offset", ",", "int", "lr_offset", ",", "machine_mode", "reg_mode", ",", "int", "sel", ")", "{", "int", "i", ";", "int", "offset", ",", "start_reg", ",", "end_reg", ",", "n_regs", ",", "use_reg", ";", "int", "reg_size", "=", "GET_MODE_SIZE", "(", "reg_mode", ")", ";", "rtx", "sym", ";", "rtvec", "p", ";", "rtx", "par", ",", "insn", ";", "offset", "=", "0", ";", "start_reg", "=", "(", "(", "sel", "&", "SAVRES_REG", ")", "==", "SAVRES_GPR", "?", "info", "->", "first_gp_reg_save", ":", "(", "sel", "&", "SAVRES_REG", ")", "==", "SAVRES_FPR", "?", "info", "->", "first_fp_reg_save", ":", "(", "sel", "&", "SAVRES_REG", ")", "==", "SAVRES_VR", "?", "info", "->", "first_altivec_reg_save", ":", "-", "1", ")", ";", "end_reg", "=", "(", "(", "sel", "&", "SAVRES_REG", ")", "==", "SAVRES_GPR", "?", "32", ":", "(", "sel", "&", "SAVRES_REG", ")", "==", "SAVRES_FPR", "?", "64", ":", "(", "sel", "&", "SAVRES_REG", ")", "==", "SAVRES_VR", "?", "LAST_ALTIVEC_REGNO", "+", "1", ":", "-", "1", ")", ";", "n_regs", "=", "end_reg", "-", "start_reg", ";", "p", "=", "rtvec_alloc", "(", "3", "+", "(", "(", "sel", "&", "SAVRES_LR", ")", "?", "1", ":", "0", ")", "+", "(", "(", "sel", "&", "SAVRES_REG", ")", "==", "SAVRES_VR", "?", "1", ":", "0", ")", "+", "n_regs", ")", ";", "if", "(", "!", "(", "sel", "&", "SAVRES_SAVE", ")", "&&", "(", "sel", "&", "SAVRES_LR", ")", ")", "RTVEC_ELT", "(", "p", ",", "offset", "++", ")", "=", "ret_rtx", ";", "RTVEC_ELT", "(", "p", ",", "offset", "++", ")", "=", "gen_rtx_CLOBBER", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "Pmode", ",", "LR_REGNO", ")", ")", ";", "sym", "=", "rs6000_savres_routine_sym", "(", "info", ",", "sel", ")", ";", "RTVEC_ELT", "(", "p", ",", "offset", "++", ")", "=", "gen_rtx_USE", "(", "VOIDmode", ",", "sym", ")", ";", "use_reg", "=", "ptr_regno_for_savres", "(", "sel", ")", ";", "if", "(", "(", "sel", "&", "SAVRES_REG", ")", "==", "SAVRES_VR", ")", "{", "RTVEC_ELT", "(", "p", ",", "offset", "++", ")", "=", "gen_rtx_CLOBBER", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "Pmode", ",", "use_reg", ")", ")", ";", "RTVEC_ELT", "(", "p", ",", "offset", "++", ")", "=", "gen_rtx_USE", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "Pmode", ",", "0", ")", ")", ";", "}", "else", "RTVEC_ELT", "(", "p", ",", "offset", "++", ")", "=", "gen_rtx_USE", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "Pmode", ",", "use_reg", ")", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "end_reg", "-", "start_reg", ";", "i", "++", ")", "RTVEC_ELT", "(", "p", ",", "i", "+", "offset", ")", "=", "gen_frame_set", "(", "gen_rtx_REG", "(", "reg_mode", ",", "start_reg", "+", "i", ")", ",", "frame_reg_rtx", ",", "save_area_offset", "+", "reg_size", "*", "i", ",", "(", "sel", "&", "SAVRES_SAVE", ")", "!=", "0", ")", ";", "if", "(", "(", "sel", "&", "SAVRES_SAVE", ")", "&&", "(", "sel", "&", "SAVRES_LR", ")", ")", "RTVEC_ELT", "(", "p", ",", "i", "+", "offset", ")", "=", "gen_frame_store", "(", "gen_rtx_REG", "(", "Pmode", ",", "0", ")", ",", "frame_reg_rtx", ",", "lr_offset", ")", ";", "par", "=", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "p", ")", ";", "if", "(", "!", "(", "sel", "&", "SAVRES_SAVE", ")", "&&", "(", "sel", "&", "SAVRES_LR", ")", ")", "{", "insn", "=", "emit_jump_insn", "(", "par", ")", ";", "JUMP_LABEL", "(", "insn", ")", "=", "ret_rtx", ";", "}", "else", "insn", "=", "emit_insn", "(", "par", ")", ";", "return", "insn", ";", "}", ""], "natrual_language": ["Construct", "a", "parallel", "rtx", "describing", "the", "effect", "of", "a", "call", "to", "an", "out-of-line", "register", "save/restore", "routine", ",", "and", "emit", "the", "insn", "or", "jump_insn", "as", "appropriate", "."], "TS_V_token": ["rs6000", "0", "1", "32", "64", "1", "1", "3", "1", "0", "1", "0", "0", "0", "0", "0"], "File": "rs60004", "Func": "rs6000_emit_savres_rtx", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 561, "Length": 474, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "ix86_autovectorize_vector_sizes", "(", "void", ")", "{", "return", "TARGET_AVX512F", "?", "64", "|", "32", "|", "16", ":", "(", "TARGET_AVX", "&&", "!", "TARGET_PREFER_AVX128", ")", "?", "32", "|", "16", ":", "0", ";", "}", ""], "natrual_language": ["If", "AVX", "is", "enabled", "then", "try", "vectorizing", "with", "both", "256bit", "and", "128bit", "vectors", ".", "If", "AVX512F", "is", "enabled", "then", "try", "vectorizing", "with", "512bit", ",", "256bit", "and", "128bit", "vectors", "."], "TS_V_token": ["i386", "64", "32", "16", "32", "16", "0"], "File": "i3864", "Func": "ix86_autovectorize_vector_sizes", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 562, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "save_entry", "*", "sh5_schedule_saves", "(", "HARD_REG_SET", "*", "live_regs_mask", ",", "save_schedule", "*", "schedule", ",", "int", "offset_base", ")", "{", "int", "align", ",", "i", ";", "save_entry", "*", "entry", "=", "schedule", "->", "entries", ";", "int", "tmpx", "=", "0", ";", "int", "offset", ";", "if", "(", "!", "current_function_interrupt", ")", "for", "(", "i", "=", "FIRST_GENERAL_REG", ";", "tmpx", "<", "MAX_TEMPS", "&&", "i", "<=", "LAST_GENERAL_REG", ";", "i", "++", ")", "if", "(", "call_really_used_regs", "[", "i", "]", "&&", "!", "fixed_regs", "[", "i", "]", "&&", "i", "!=", "PR_MEDIA_REG", "&&", "!", "FUNCTION_ARG_REGNO_P", "(", "i", ")", "&&", "i", "!=", "FIRST_RET_REG", "&&", "!", "(", "cfun", "->", "static_chain_decl", "!=", "NULL", "&&", "i", "==", "STATIC_CHAIN_REGNUM", ")", "&&", "!", "(", "current_function_calls_eh_return", "&&", "(", "i", "==", "EH_RETURN_STACKADJ_REGNO", "||", "(", "(", "unsigned", ")", "i", ">=", "EH_RETURN_DATA_REGNO", "(", "0", ")", "&&", "(", "unsigned", ")", "i", "<=", "EH_RETURN_DATA_REGNO", "(", "3", ")", ")", ")", ")", ")", "schedule", "->", "temps", "[", "tmpx", "++", "]", "=", "i", ";", "entry", "->", "reg", "=", "-", "1", ";", "entry", "->", "mode", "=", "VOIDmode", ";", "entry", "->", "offset", "=", "offset_base", ";", "entry", "++", ";", "offset", "=", "offset_base", ";", "for", "(", "align", "=", "1", ";", "align", ">=", "0", ";", "align", "--", ")", "{", "for", "(", "i", "=", "FIRST_PSEUDO_REGISTER", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "if", "(", "TEST_HARD_REG_BIT", "(", "*", "live_regs_mask", ",", "i", ")", ")", "{", "enum", "machine_mode", "mode", "=", "REGISTER_NATURAL_MODE", "(", "i", ")", ";", "int", "reg", "=", "i", ";", "if", "(", "current_function_interrupt", ")", "{", "if", "(", "TARGET_REGISTER_P", "(", "i", ")", ")", "continue", ";", "if", "(", "GENERAL_REGISTER_P", "(", "i", ")", ")", "mode", "=", "DImode", ";", "}", "if", "(", "mode", "==", "SFmode", "&&", "(", "i", "%", "2", ")", "==", "1", "&&", "!", "TARGET_FPU_SINGLE", "&&", "FP_REGISTER_P", "(", "i", ")", "&&", "(", "TEST_HARD_REG_BIT", "(", "*", "live_regs_mask", ",", "(", "i", "^", "1", ")", ")", ")", ")", "{", "mode", "=", "DFmode", ";", "i", "--", ";", "reg", "--", ";", "}", "if", "(", "(", "GET_MODE_SIZE", "(", "mode", ")", "%", "(", "STACK_BOUNDARY", "/", "BITS_PER_UNIT", ")", "==", "0", ")", "!=", "align", ")", "continue", ";", "if", "(", "current_function_interrupt", "&&", "GENERAL_REGISTER_P", "(", "i", ")", "&&", "tmpx", "<", "MAX_TEMPS", ")", "schedule", "->", "temps", "[", "tmpx", "++", "]", "=", "i", ";", "offset", "-=", "GET_MODE_SIZE", "(", "mode", ")", ";", "entry", "->", "reg", "=", "i", ";", "entry", "->", "mode", "=", "mode", ";", "entry", "->", "offset", "=", "offset", ";", "entry", "++", ";", "}", "if", "(", "align", "&&", "current_function_interrupt", ")", "for", "(", "i", "=", "LAST_TARGET_REG", ";", "i", ">=", "FIRST_TARGET_REG", ";", "i", "--", ")", "if", "(", "TEST_HARD_REG_BIT", "(", "*", "live_regs_mask", ",", "i", ")", ")", "{", "offset", "-=", "GET_MODE_SIZE", "(", "DImode", ")", ";", "entry", "->", "reg", "=", "i", ";", "entry", "->", "mode", "=", "DImode", ";", "entry", "->", "offset", "=", "offset", ";", "entry", "++", ";", "}", "}", "entry", "->", "reg", "=", "-", "1", ";", "entry", "->", "mode", "=", "VOIDmode", ";", "entry", "->", "offset", "=", "offset", ";", "schedule", "->", "temps", "[", "tmpx", "]", "=", "-", "1", ";", "return", "entry", "-", "1", ";", "}", ""], "natrual_language": ["Fill", "in", "SCHEDULE", "according", "to", "LIVE_REGS_MASK", ".", "If", "RESTORE", "is", "nonzero", ",", "use", "reverse", "order", ".", "Returns", "the", "last", "entry", "written", "to", "(", "not", "counting", "the", "delimiter", ")", ".", "OFFSET_BASE", "is", "a", "number", "to", "be", "added", "to", "all", "offset", "entries", "."], "TS_V_token": ["sh", "0", "0", "3", "1", "1", "0", "1", "0", "2", "1", "1", "0", "1", "1", "1"], "File": "sh3", "Func": "sh5_schedule_saves", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 563, "Length": 465, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "output_branch", "(", "int", "logic", ",", "rtx_insn", "*", "insn", ",", "rtx", "*", "operands", ")", "{", "switch", "(", "get_attr_length", "(", "insn", ")", ")", "{", "case", "6", ":", "if", "(", "!", "TARGET_RELAX", ")", "{", "int", "label", "=", "lf", "++", ";", "rtx", "op0", "=", "operands", "[", "0", "]", ";", "if", "(", "final_sequence", "&&", "!", "INSN_ANNULLED_BRANCH_P", "(", "final_sequence", "->", "insn", "(", "0", ")", ")", "&&", "get_attr_length", "(", "final_sequence", "->", "insn", "(", "1", ")", ")", ")", "{", "asm_fprintf", "(", "asm_out_file", ",", "\"\\tb%s%ss\\t%LLF%d\\n\"", ",", "logic", "?", "\"f\"", ":", "\"t\"", ",", "ASSEMBLER_DIALECT", "?", "\"/\"", ":", "\".\"", ",", "label", ")", ";", "print_slot", "(", "final_sequence", ")", ";", "}", "else", "asm_fprintf", "(", "asm_out_file", ",", "\"\\tb%s\\t%LLF%d\\n\"", ",", "logic", "?", "\"f\"", ":", "\"t\"", ",", "label", ")", ";", "output_asm_insn", "(", "\"bra\\t%l0\"", ",", "&", "op0", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\tnop\\n\"", ")", ";", "(", "*", "targetm", ".", "asm_out", ".", "internal_label", ")", "(", "asm_out_file", ",", "\"LF\"", ",", "label", ")", ";", "return", "\"\"", ";", "}", "case", "2", ":", "return", "logic", "?", "\"bt%.\\t%l0\"", ":", "\"bf%.\\t%l0\"", ";", "case", "8", ":", "if", "(", "!", "TARGET_RELAX", ")", "{", "int", "label", "=", "lf", "++", ";", "gcc_assert", "(", "!", "final_sequence", "||", "!", "(", "INSN_ANNULLED_BRANCH_P", "(", "XVECEXP", "(", "final_sequence", ",", "0", ",", "0", ")", ")", ")", ")", ";", "asm_fprintf", "(", "asm_out_file", ",", "\"b%s%ss\\t%LLF%d\\n\"", ",", "logic", "?", "\"f\"", ":", "\"t\"", ",", "ASSEMBLER_DIALECT", "?", "\"/\"", ":", "\".\"", ",", "label", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\tnop\\n\"", ")", ";", "output_asm_insn", "(", "\"bra\\t%l0\"", ",", "operands", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\tnop\\n\"", ")", ";", "(", "*", "targetm", ".", "asm_out", ".", "internal_label", ")", "(", "asm_out_file", ",", "\"LF\"", ",", "label", ")", ";", "return", "\"\"", ";", "}", "case", "4", ":", "{", "char", "buffer", "[", "10", "]", ";", "sprintf", "(", "buffer", ",", "\"b%s%ss\\t%%l0\"", ",", "logic", "?", "\"t\"", ":", "\"f\"", ",", "ASSEMBLER_DIALECT", "?", "\"/\"", ":", "\".\"", ")", ";", "output_asm_insn", "(", "buffer", ",", "&", "operands", "[", "0", "]", ")", ";", "return", "\"nop\"", ";", "}", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Output", "a", "conditional/unconditional", "branch", "to", "LABEL", ".", "COND", "is", "the", "string", "condition", ".", "INSN", "is", "the", "instruction", "."], "TS_V_token": ["sh", "6", "0", "0", "1", "\"\\tb%s%ss\\t%LLF%d\\n\"", "\"f\"", "\"t\"", "\"/\"", "\".\"", "\"\\tb%s\\t%LLF%d\\n\"", "\"f\"", "\"t\"", "\"bra\\t%l0\"", "\"\\tnop\\n\"", "\"LF\"", "\"\"", "2", "\"bt%.\\t%l0\"", "\"bf%.\\t%l0\"", "8", "0", "0", "\"b%s%ss\\t%LLF%d\\n\"", "\"f\"", "\"t\"", "\"/\"", "\".\"", "\"\\tnop\\n\"", "\"bra\\t%l0\"", "\"\\tnop\\n\"", "\"LF\"", "\"\"", "4", "10", "\"b%s%ss\\t%%l0\"", "\"t\"", "\"f\"", "\"/\"", "\".\"", "0", "\"nop\""], "File": "sh", "Func": "output_branch", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 564, "Length": 312, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "csky_register_move_cost", "(", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "reg_class_t", "from", ",", "reg_class_t", "to", ")", "{", "(", "(", "CLASS", ")", "==", "GENERAL_REGS", "||", "(", "CLASS", ")", "==", "MINI_REGS", "||", "(", "CLASS", ")", "==", "SP_REGS", "\\", "||", "(", "CLASS", ")", "==", "LOW_REGS", ")", "(", "(", "CLASS", ")", "==", "HILO_REGS", ")", "(", "(", "CLASS", ")", "==", "V_REGS", ")", "if", "(", "V_REG_CLASS_P", "(", "from", ")", "&&", "V_REG_CLASS_P", "(", "to", ")", ")", "return", "2", ";", "if", "(", "(", "V_REG_CLASS_P", "(", "from", ")", "&&", "GR_REG_CLASS_P", "(", "to", ")", ")", "||", "(", "GR_REG_CLASS_P", "(", "from", ")", "&&", "V_REG_CLASS_P", "(", "to", ")", ")", ")", "return", "6", ";", "if", "(", "(", "HILO_REG_CLASS_P", "(", "from", ")", "&&", "GR_REG_CLASS_P", "(", "to", ")", ")", "||", "(", "GR_REG_CLASS_P", "(", "from", ")", "&&", "HILO_REG_CLASS_P", "(", "to", ")", ")", ")", "return", "16", ";", "if", "(", "HILO_REG_CLASS_P", "(", "from", ")", "&&", "HILO_REG_CLASS_P", "(", "to", ")", ")", "return", "32", ";", "if", "(", "(", "HILO_REG_CLASS_P", "(", "from", ")", "&&", "V_REG_CLASS_P", "(", "to", ")", ")", "||", "(", "V_REG_CLASS_P", "(", "from", ")", "&&", "HILO_REG_CLASS_P", "(", "to", ")", ")", ")", "return", "64", ";", "return", "2", ";", "}", ""], "natrual_language": ["Implement", "TARGET_REGISTER_MOVE_COST", ":", "compute", "extra", "cost", "of", "moving", "data", "between", "one", "register", "class", "and", "another", "."], "TS_V_token": ["csky", "2", "6", "16", "32", "64", "2"], "File": "csky", "Func": "csky_register_move_cost", "Target": "csky", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 565, "Length": 175, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "isPreLdSt", "(", "const", "MachineInstr", "&", "MI", ")", "{", "return", "isPreLd", "(", "MI", ")", "||", "isPreSt", "(", "MI", ")", ";", "}", ""], "natrual_language": ["Returns", "whether", "the", "instruction", "is", "a", "pre-indexed", "load/store", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64InstrInfo105", "Func": "isPreLdSt", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 566, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86RegisterInfo", "::", "getRegPressureLimit", "(", "const", "TargetRegisterClass", "*", "RC", ",", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "unsigned", "FPDiff", "=", "TFI", "->", "hasFP", "(", "MF", ")", "?", "1", ":", "0", ";", "switch", "(", "RC", "->", "getID", "(", ")", ")", "{", "default", ":", "return", "0", ";", "case", "X86", "::", "GR32RegClassID", ":", "return", "4", "-", "FPDiff", ";", "case", "X86", "::", "GR64RegClassID", ":", "return", "12", "-", "FPDiff", ";", "case", "X86", "::", "VR128RegClassID", ":", "return", "Subtarget", ".", "is64Bit", "(", ")", "?", "10", ":", "4", ";", "case", "X86", "::", "VR64RegClassID", ":", "return", "4", ";", "}", "}", ""], "natrual_language": ["Return", "the", "register", "pressure", "``", "high", "water", "mark", "''", "for", "the", "specific", "register", "class", "."], "TS_V_token": ["X86", "X86", "1", "0", "0", "X86::GR32RegClassID", "4", "X86::GR64RegClassID", "12", "X86::VR128RegClassID", "10", "4", "X86::VR64RegClassID", "4"], "File": "X86RegisterInfo2", "Func": "getRegPressureLimit", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 567, "Length": 105, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mayNeedRelaxation", "(", "const", "MCInst", "&", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "override", "{", "return", "false", ";", "}", ""], "natrual_language": ["Check", "whether", "the", "given", "instruction", "may", "need", "relaxation", "."], "TS_V_token": ["Lanai"], "File": "LanaiAsmBackend12", "Func": "mayNeedRelaxation", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 568, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCRegisterInfo", "::", "lowerCRSpilling", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "unsigned", "FrameIndex", ")", "const", "{", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", ".", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "DebugLoc", "dl", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "bool", "LP64", "=", "Subtarget", ".", "isPPC64", "(", ")", ";", "const", "TargetRegisterClass", "*", "G8RC", "=", "&", "PPC", "::", "G8RCRegClass", ";", "const", "TargetRegisterClass", "*", "GPRC", "=", "&", "PPC", "::", "GPRCRegClass", ";", "unsigned", "Reg", "=", "MF", ".", "getRegInfo", "(", ")", ".", "createVirtualRegister", "(", "LP64", "?", "G8RC", ":", "GPRC", ")", ";", "unsigned", "SrcReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "BuildMI", "(", "MBB", ",", "II", ",", "dl", ",", "TII", ".", "get", "(", "LP64", "?", "PPC", "::", "MFCR8pseud", ":", "PPC", "::", "MFCRpseud", ")", ",", "Reg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "MI", ".", "getOperand", "(", "0", ")", ".", "isKill", "(", ")", ")", ")", ";", "if", "(", "SrcReg", "!=", "PPC", "::", "CR0", ")", "{", "unsigned", "Reg1", "=", "Reg", ";", "Reg", "=", "MF", ".", "getRegInfo", "(", ")", ".", "createVirtualRegister", "(", "LP64", "?", "G8RC", ":", "GPRC", ")", ";", "BuildMI", "(", "MBB", ",", "II", ",", "dl", ",", "TII", ".", "get", "(", "LP64", "?", "PPC", "::", "RLWINM8", ":", "PPC", "::", "RLWINM", ")", ",", "Reg", ")", ".", "addReg", "(", "Reg1", ",", "RegState", "::", "Kill", ")", ".", "addImm", "(", "getEncodingValue", "(", "SrcReg", ")", "*", "4", ")", ".", "addImm", "(", "0", ")", ".", "addImm", "(", "31", ")", ";", "}", "addFrameReference", "(", "BuildMI", "(", "MBB", ",", "II", ",", "dl", ",", "TII", ".", "get", "(", "LP64", "?", "PPC", "::", "STW8", ":", "PPC", "::", "STW", ")", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Kill", ")", ",", "FrameIndex", ")", ";", "MBB", ".", "erase", "(", "II", ")", ";", "}", ""], "natrual_language": ["lowerCRSpilling", "-", "Generate", "the", "code", "for", "spilling", "a", "CR", "register", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC::G8RCRegClass", "PPC::GPRCRegClass", "0", "PPC::MFCR8pseud", "PPC::MFCRpseud", "0", "PPC::CR0", "PPC::RLWINM8", "PPC::RLWINM", "4", "0", "31", "PPC::STW8", "PPC::STW"], "File": "PPCRegisterInfo1", "Func": "lowerCRSpilling", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 569, "Length": 308, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86AsmBackend", "::", "getMaximumNopSize", "(", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "if", "(", "STI", ".", "hasFeature", "(", "X86", "::", "Is16Bit", ")", ")", "return", "4", ";", "if", "(", "!", "STI", ".", "hasFeature", "(", "X86", "::", "FeatureNOPL", ")", "&&", "!", "STI", ".", "hasFeature", "(", "X86", "::", "Is64Bit", ")", ")", "return", "1", ";", "if", "(", "STI", ".", "getFeatureBits", "(", ")", "[", "X86", "::", "TuningFast7ByteNOP", "]", ")", "return", "7", ";", "if", "(", "STI", ".", "getFeatureBits", "(", ")", "[", "X86", "::", "TuningFast15ByteNOP", "]", ")", "return", "15", ";", "if", "(", "STI", ".", "getFeatureBits", "(", ")", "[", "X86", "::", "TuningFast11ByteNOP", "]", ")", "return", "11", ";", "return", "10", ";", "}", ""], "natrual_language": ["Returns", "the", "maximum", "size", "of", "a", "nop", "in", "bytes", "on", "this", "target", "."], "TS_V_token": ["X86", "X86", "X86::Is16Bit", "4", "X86::FeatureNOPL", "X86::Is64Bit", "1", "X86::TuningFast7ByteNOP", "7", "X86::TuningFast15ByteNOP", "15", "X86::TuningFast11ByteNOP", "11", "10"], "File": "X86AsmBackend (2)1", "Func": "getMaximumNopSize", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 570, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "output_fp_compare", "(", "rtx_insn", "*", "insn", ",", "rtx", "*", "operands", ",", "bool", "eflags_p", ",", "bool", "unordered_p", ")", "{", "int", "stack_top_dies", ";", "rtx", "cmp_op0", ",", "cmp_op1", ";", "int", "is_sse", "=", "SSE_REG_P", "(", "operands", "[", "0", "]", ")", "||", "SSE_REG_P", "(", "operands", "[", "1", "]", ")", ";", "if", "(", "eflags_p", ")", "{", "cmp_op0", "=", "operands", "[", "0", "]", ";", "cmp_op1", "=", "operands", "[", "1", "]", ";", "}", "else", "{", "cmp_op0", "=", "operands", "[", "1", "]", ";", "cmp_op1", "=", "operands", "[", "2", "]", ";", "}", "if", "(", "is_sse", ")", "{", "if", "(", "GET_MODE", "(", "operands", "[", "0", "]", ")", "==", "SFmode", ")", "if", "(", "unordered_p", ")", "return", "\"%vucomiss\\t{%1, %0|%0, %1}\"", ";", "else", "return", "\"%vcomiss\\t{%1, %0|%0, %1}\"", ";", "else", "if", "(", "unordered_p", ")", "return", "\"%vucomisd\\t{%1, %0|%0, %1}\"", ";", "else", "return", "\"%vcomisd\\t{%1, %0|%0, %1}\"", ";", "}", "gcc_assert", "(", "STACK_TOP_P", "(", "cmp_op0", ")", ")", ";", "stack_top_dies", "=", "find_regno_note", "(", "insn", ",", "REG_DEAD", ",", "FIRST_STACK_REG", ")", "!=", "0", ";", "if", "(", "cmp_op1", "==", "CONST0_RTX", "(", "GET_MODE", "(", "cmp_op1", ")", ")", ")", "{", "if", "(", "stack_top_dies", ")", "{", "output_asm_insn", "(", "\"ftst\\n\\tfnstsw\\t%0\"", ",", "operands", ")", ";", "return", "output_387_ffreep", "(", "operands", ",", "1", ")", ";", "}", "else", "return", "\"ftst\\n\\tfnstsw\\t%0\"", ";", "}", "if", "(", "STACK_REG_P", "(", "cmp_op1", ")", "&&", "stack_top_dies", "&&", "find_regno_note", "(", "insn", ",", "REG_DEAD", ",", "REGNO", "(", "cmp_op1", ")", ")", "&&", "REGNO", "(", "cmp_op1", ")", "!=", "FIRST_STACK_REG", ")", "{", "if", "(", "eflags_p", ")", "{", "if", "(", "unordered_p", ")", "output_asm_insn", "(", "\"fucomip\\t{%y1, %0|%0, %y1}\"", ",", "operands", ")", ";", "else", "output_asm_insn", "(", "\"fcomip\\t{%y1, %0|%0, %y1}\"", ",", "operands", ")", ";", "return", "output_387_ffreep", "(", "operands", ",", "0", ")", ";", "}", "else", "{", "if", "(", "unordered_p", ")", "return", "\"fucompp\\n\\tfnstsw\\t%0\"", ";", "else", "return", "\"fcompp\\n\\tfnstsw\\t%0\"", ";", "}", "}", "else", "{", "static", "const", "char", "*", "const", "alt", "[", "16", "]", "=", "{", "\"fcom%Z2\\t%y2\\n\\tfnstsw\\t%0\"", ",", "\"fcomp%Z2\\t%y2\\n\\tfnstsw\\t%0\"", ",", "\"fucom%Z2\\t%y2\\n\\tfnstsw\\t%0\"", ",", "\"fucomp%Z2\\t%y2\\n\\tfnstsw\\t%0\"", ",", "\"ficom%Z2\\t%y2\\n\\tfnstsw\\t%0\"", ",", "\"ficomp%Z2\\t%y2\\n\\tfnstsw\\t%0\"", ",", "NULL", ",", "NULL", ",", "\"fcomi\\t{%y1, %0|%0, %y1}\"", ",", "\"fcomip\\t{%y1, %0|%0, %y1}\"", ",", "\"fucomi\\t{%y1, %0|%0, %y1}\"", ",", "\"fucomip\\t{%y1, %0|%0, %y1}\"", ",", "NULL", ",", "NULL", ",", "NULL", ",", "NULL", "}", ";", "int", "mask", ";", "const", "char", "*", "ret", ";", "mask", "=", "eflags_p", "<<", "3", ";", "mask", "|=", "(", "GET_MODE_CLASS", "(", "GET_MODE", "(", "cmp_op1", ")", ")", "==", "MODE_INT", ")", "<<", "2", ";", "mask", "|=", "unordered_p", "<<", "1", ";", "mask", "|=", "stack_top_dies", ";", "gcc_assert", "(", "mask", "<", "16", ")", ";", "ret", "=", "alt", "[", "mask", "]", ";", "gcc_assert", "(", "ret", ")", ";", "return", "ret", ";", "}", "}", ""], "natrual_language": ["Output", "code", "for", "INSN", "to", "compare", "OPERANDS", ".", "EFLAGS_P", "is", "1", "when", "fcomi", "should", "be", "used", "and", "2", "when", "fnstsw", "should", "be", "used", ".", "UNORDERED_P", "is", "true", "when", "fucom", "should", "be", "used", "."], "TS_V_token": ["i386", "0", "1", "0", "1", "1", "2", "0", "\"%vucomiss\\t{%1, %0|%0, %1}\"", "\"%vcomiss\\t{%1, %0|%0, %1}\"", "\"%vucomisd\\t{%1, %0|%0, %1}\"", "\"%vcomisd\\t{%1, %0|%0, %1}\"", "0", "\"ftst\\n\\tfnstsw\\t%0\"", "1", "\"ftst\\n\\tfnstsw\\t%0\"", "\"fucomip\\t{%y1, %0|%0, %y1}\"", "\"fcomip\\t{%y1, %0|%0, %y1}\"", "0", "\"fucompp\\n\\tfnstsw\\t%0\"", "\"fcompp\\n\\tfnstsw\\t%0\"", "16", "\"fcom%Z2\\t%y2\\n\\tfnstsw\\t%0\"", "\"fcomp%Z2\\t%y2\\n\\tfnstsw\\t%0\"", "\"fucom%Z2\\t%y2\\n\\tfnstsw\\t%0\"", "\"fucomp%Z2\\t%y2\\n\\tfnstsw\\t%0\"", "\"ficom%Z2\\t%y2\\n\\tfnstsw\\t%0\"", "\"ficomp%Z2\\t%y2\\n\\tfnstsw\\t%0\"", "\"fcomi\\t{%y1, %0|%0, %y1}\"", "\"fcomip\\t{%y1, %0|%0, %y1}\"", "\"fucomi\\t{%y1, %0|%0, %y1}\"", "\"fucomip\\t{%y1, %0|%0, %y1}\"", "3", "2", "1", "16"], "File": "i3866", "Func": "output_fp_compare", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 571, "Length": 372, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZRegisterInfo", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "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": ["SystemZ", "SystemZ"], "File": "SystemZRegisterInfo13", "Func": "eliminateCallFramePseudoInstr", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 572, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Cpu0SEFrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "assert", "(", "&", "MF", ".", "front", "(", ")", "==", "&", "MBB", "&&", "\"Shrink-wrapping not yet supported\"", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "Cpu0MachineFunctionInfo", "*", "Cpu0FI", "=", "MF", ".", "getInfo", "<", "Cpu0MachineFunctionInfo", ">", "(", ")", ";", "const", "Cpu0SEInstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "Cpu0SEInstrInfo", "*", ">", "(", "STI", ".", "getInstrInfo", "(", ")", ")", ";", "const", "Cpu0RegisterInfo", "&", "RegInfo", "=", "*", "static_cast", "<", "const", "Cpu0RegisterInfo", "*", ">", "(", "STI", ".", "getRegisterInfo", "(", ")", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "begin", "(", ")", ";", "DebugLoc", "dl", "=", "MBBI", "!=", "MBB", ".", "end", "(", ")", "?", "MBBI", "->", "getDebugLoc", "(", ")", ":", "DebugLoc", "(", ")", ";", "Cpu0ABIInfo", "ABI", "=", "STI", ".", "getABI", "(", ")", ";", "unsigned", "SP", "=", "Cpu0", "::", "SP", ";", "const", "TargetRegisterClass", "*", "RC", "=", "&", "Cpu0", "::", "GPROutRegClass", ";", "uint64_t", "StackSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "if", "(", "StackSize", "==", "0", "&&", "!", "MFI", ".", "adjustsStack", "(", ")", ")", "return", ";", "MachineModuleInfo", "&", "MMI", "=", "MF", ".", "getMMI", "(", ")", ";", "const", "MCRegisterInfo", "*", "MRI", "=", "MMI", ".", "getContext", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "TII", ".", "adjustStackPtr", "(", "SP", ",", "-", "StackSize", ",", "MBB", ",", "MBBI", ")", ";", "unsigned", "CFIIndex", "=", "MF", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createDefCfaOffset", "(", "nullptr", ",", "-", "StackSize", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", "=", "MFI", ".", "getCalleeSavedInfo", "(", ")", ";", "if", "(", "CSI", ".", "size", "(", ")", ")", "{", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "CSI", ".", "size", "(", ")", ";", "++", "i", ")", "++", "MBBI", ";", "for", "(", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "::", "const_iterator", "I", "=", "CSI", ".", "begin", "(", ")", ",", "E", "=", "CSI", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "int64_t", "Offset", "=", "MFI", ".", "getObjectOffset", "(", "I", "->", "getFrameIdx", "(", ")", ")", ";", "unsigned", "Reg", "=", "I", "->", "getReg", "(", ")", ";", "{", "unsigned", "CFIIndex", "=", "MF", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createOffset", "(", "nullptr", ",", "MRI", "->", "getDwarfRegNum", "(", "Reg", ",", "1", ")", ",", "Offset", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";", "}", "}", "}", "}", ""], "natrual_language": ["emitProlog/emitEpilog", "-", "These", "methods", "insert", "prolog", "and", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["Cpu0", "Cpu0", "\"Shrink-wrapping not yet supported\"", "Cpu0", "Cpu0", "Cpu0", "Cpu0", "Cpu0", "Cpu0", "Cpu0", "Cpu0", "Cpu0::SP", "Cpu0::GPROutRegClass", "0", "0", "1"], "File": "Cpu0SEFrameLowering1", "Func": "emitPrologue", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 573, "Length": 412, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "MipsTargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", ",", "DebugLoc", "dl", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "getTargetMachine", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_Mips", ")", ";", "if", "(", "DAG", ".", "getMachineFunction", "(", ")", ".", "getRegInfo", "(", ")", ".", "liveout_empty", "(", ")", ")", "{", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "if", "(", "RVLocs", "[", "i", "]", ".", "isRegLoc", "(", ")", ")", "DAG", ".", "getMachineFunction", "(", ")", ".", "getRegInfo", "(", ")", ".", "addLiveOut", "(", "RVLocs", "[", "i", "]", ".", "getLocReg", "(", ")", ")", ";", "}", "SDValue", "Flag", ";", "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", ")", ";", "}", "if", "(", "DAG", ".", "getMachineFunction", "(", ")", ".", "getFunction", "(", ")", "->", "hasStructRetAttr", "(", ")", ")", "{", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "MipsFunctionInfo", "*", "MipsFI", "=", "MF", ".", "getInfo", "<", "MipsFunctionInfo", ">", "(", ")", ";", "unsigned", "Reg", "=", "MipsFI", "->", "getSRetReturnReg", "(", ")", ";", "if", "(", "!", "Reg", ")", "llvm_unreachable", "(", "\"sret virtual register not created in the entry block\"", ")", ";", "SDValue", "Val", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "dl", ",", "Reg", ",", "getPointerTy", "(", ")", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "dl", ",", "Mips", "::", "V0", ",", "Val", ",", "Flag", ")", ";", "Flag", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "}", "if", "(", "Flag", ".", "getNode", "(", ")", ")", "return", "DAG", ".", "getNode", "(", "MipsISD", "::", "Ret", ",", "dl", ",", "MVT", "::", "Other", ",", "Chain", ",", "DAG", ".", "getRegister", "(", "Mips", "::", "RA", ",", "MVT", "::", "i32", ")", ",", "Flag", ")", ";", "else", "return", "DAG", ".", "getNode", "(", "MipsISD", "::", "Ret", ",", "dl", ",", "MVT", "::", "Other", ",", "Chain", ",", "DAG", ".", "getRegister", "(", "Mips", "::", "RA", ",", "MVT", "::", "i32", ")", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["Mips", "Mips", "ISD::OutputArg", "16", "Mips", "0", "0", "\"Can only return in registers!\"", "1", "Mips", "Mips", "Mips", "Mips", "\"sret virtual register not created in the entry block\"", "Mips::V0", "1", "MipsISD::Ret", "MVT::Other", "Mips::RA", "MVT::i32", "MipsISD::Ret", "MVT::Other", "Mips::RA", "MVT::i32"], "File": "MipsISelLowering (2)3", "Func": "LowerReturn", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 574, "Length": 412, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64BranchRelaxation", "::", "verify", "(", ")", "{", "unsigned", "PrevNum", "=", "MF", "->", "begin", "(", ")", "->", "getNumber", "(", ")", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "*", "MF", ")", "{", "unsigned", "Align", "=", "MBB", ".", "getAlignment", "(", ")", ";", "unsigned", "Num", "=", "MBB", ".", "getNumber", "(", ")", ";", "assert", "(", "BlockInfo", "[", "Num", "]", ".", "Offset", "%", "(", "1u", "<<", "Align", ")", "==", "0", ")", ";", "assert", "(", "!", "Num", "||", "BlockInfo", "[", "PrevNum", "]", ".", "postOffset", "(", ")", "<=", "BlockInfo", "[", "Num", "]", ".", "Offset", ")", ";", "PrevNum", "=", "Num", ";", "}", "}", ""], "natrual_language": ["Check", "if", "this", "register", "bank", "is", "valid", "."], "TS_V_token": ["AArch64", "AArch64", "1u", "0"], "File": "AArch64BranchRelaxation", "Func": "verify", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 575, "Length": 94, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "arm_declare_function_name", "(", "FILE", "*", "stream", ",", "const", "char", "*", "name", ",", "tree", "decl", ")", "{", "tree", "target_parts", "=", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "decl", ")", ";", "struct", "cl_target_option", "*", "targ_options", ";", "if", "(", "target_parts", ")", "targ_options", "=", "TREE_TARGET_OPTION", "(", "target_parts", ")", ";", "else", "targ_options", "=", "TREE_TARGET_OPTION", "(", "target_option_current_node", ")", ";", "gcc_assert", "(", "targ_options", ")", ";", "arm_print_asm_arch_directives", "(", "stream", ",", "targ_options", ")", ";", "fprintf", "(", "stream", ",", "\"\\t.syntax unified\\n\"", ")", ";", "if", "(", "TARGET_THUMB", ")", "{", "if", "(", "is_called_in_ARM_mode", "(", "decl", ")", "||", "(", "TARGET_THUMB1", "&&", "!", "TARGET_THUMB1_ONLY", "&&", "cfun", "->", "is_thunk", ")", ")", "fprintf", "(", "stream", ",", "\"\\t.code 32\\n\"", ")", ";", "else", "if", "(", "TARGET_THUMB1", ")", "fprintf", "(", "stream", ",", "\"\\t.code\\t16\\n\\t.thumb_func\\n\"", ")", ";", "else", "fprintf", "(", "stream", ",", "\"\\t.thumb\\n\\t.thumb_func\\n\"", ")", ";", "}", "else", "fprintf", "(", "stream", ",", "\"\\t.arm\\n\"", ")", ";", "if", "(", "TARGET_POKE_FUNCTION_NAME", ")", "arm_poke_function_name", "(", "stream", ",", "(", "const", "char", "*", ")", "name", ")", ";", "}", ""], "natrual_language": ["Implement", "ASM_DECLARE_FUNCTION_NAME", ".", "Output", "the", "ISA", "features", "used", "by", "the", "function", "fndecl", "."], "TS_V_token": ["arm", "\"\\t.syntax unified\\n\"", "\"\\t.code 32\\n\"", "\"\\t.code\\t16\\n\\t.thumb_func\\n\"", "\"\\t.thumb\\n\\t.thumb_func\\n\"", "\"\\t.arm\\n\""], "File": "arm", "Func": "arm_declare_function_name", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 576, "Length": 143, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "PPCTargetLowering", "::", "getRegForInlineAsmConstraint", "(", "const", "std", "::", "string", "&", "Constraint", ",", "MVT", "VT", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'b'", ":", "if", "(", "VT", "==", "MVT", "::", "i64", "&&", "PPCSubTarget", ".", "isPPC64", "(", ")", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "G8RC_NOX0RegClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "GPRC_NOR0RegClass", ")", ";", "case", "'r'", ":", "if", "(", "VT", "==", "MVT", "::", "i64", "&&", "PPCSubTarget", ".", "isPPC64", "(", ")", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "G8RCRegClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "GPRCRegClass", ")", ";", "case", "'f'", ":", "if", "(", "VT", "==", "MVT", "::", "f32", "||", "VT", "==", "MVT", "::", "i32", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "F4RCRegClass", ")", ";", "if", "(", "VT", "==", "MVT", "::", "f64", "||", "VT", "==", "MVT", "::", "i64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "F8RCRegClass", ")", ";", "break", ";", "case", "'v'", ":", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "VRRCRegClass", ")", ";", "case", "'y'", ":", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "CRRCRegClass", ")", ";", "}", "}", "else", "if", "(", "Constraint", "==", "\"wc\"", ")", "{", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "CRBITRCRegClass", ")", ";", "}", "else", "if", "(", "Constraint", "==", "\"wa\"", "||", "Constraint", "==", "\"wd\"", "||", "Constraint", "==", "\"wf\"", ")", "{", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "VSRCRegClass", ")", ";", "}", "else", "if", "(", "Constraint", "==", "\"ws\"", ")", "{", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "VSFRCRegClass", ")", ";", "}", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "R", "=", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "Constraint", ",", "VT", ")", ";", "if", "(", "R", ".", "first", "&&", "VT", "==", "MVT", "::", "i64", "&&", "PPCSubTarget", ".", "isPPC64", "(", ")", "&&", "PPC", "::", "GPRCRegClass", ".", "contains", "(", "R", ".", "first", ")", ")", "{", "const", "TargetRegisterInfo", "*", "TRI", "=", "getTargetMachine", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "return", "std", "::", "make_pair", "(", "TRI", "->", "getMatchingSuperReg", "(", "R", ".", "first", ",", "PPC", "::", "sub_32", ",", "&", "PPC", "::", "G8RCRegClass", ")", ",", "&", "PPC", "::", "G8RCRegClass", ")", ";", "}", "return", "R", ";", "}", ""], "natrual_language": ["Given", "a", "physical", "register", "constraint", "(", "e.g", "."], "TS_V_token": ["PowerPC", "PPC", "1", "0", "MVT::i64", "PPC", "PPC", "0U", "PPC::G8RC_NOX0RegClass", "0U", "PPC::GPRC_NOR0RegClass", "MVT::i64", "PPC", "PPC", "0U", "PPC::G8RCRegClass", "0U", "PPC::GPRCRegClass", "MVT::f32", "MVT::i32", "0U", "PPC::F4RCRegClass", "MVT::f64", "MVT::i64", "0U", "PPC::F8RCRegClass", "0U", "PPC::VRRCRegClass", "0U", "PPC::CRRCRegClass", "\"wc\"", "0U", "PPC::CRBITRCRegClass", "\"wa\"", "\"wd\"", "\"wf\"", "0U", "PPC::VSRCRegClass", "\"ws\"", "0U", "PPC::VSFRCRegClass", "MVT::i64", "PPC", "PPC", "PPC::GPRCRegClass", "PPC::sub_32", "PPC::G8RCRegClass", "PPC::G8RCRegClass"], "File": "PPCISelLowering120", "Func": "getRegForInlineAsmConstraint", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 577, "Length": 396, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "nds32_output_16bit_load", "(", "rtx", "*", "operands", ",", "int", "byte", ")", "{", "char", "pattern", "[", "100", "]", ";", "unsigned", "char", "size", ";", "rtx", "code", "=", "XEXP", "(", "operands", "[", "1", "]", ",", "0", ")", ";", "size", "=", "nds32_byte_to_size", "(", "byte", ")", ";", "switch", "(", "nds32_mem_format", "(", "operands", "[", "1", "]", ")", ")", "{", "case", "ADDRESS_REG", ":", "operands", "[", "1", "]", "=", "code", ";", "output_asm_insn", "(", "\"lwi450\\t%0, [%1]\"", ",", "operands", ")", ";", "break", ";", "case", "ADDRESS_LO_REG_IMM3U", ":", "snprintf", "(", "pattern", ",", "sizeof", "(", "pattern", ")", ",", "\"l%ci333\\t%%0, %%1\"", ",", "size", ")", ";", "output_asm_insn", "(", "pattern", ",", "operands", ")", ";", "break", ";", "case", "ADDRESS_POST_INC_LO_REG_IMM3U", ":", "snprintf", "(", "pattern", ",", "sizeof", "(", "pattern", ")", ",", "\"l%ci333.bi\\t%%0, %%1\"", ",", "size", ")", ";", "output_asm_insn", "(", "pattern", ",", "operands", ")", ";", "break", ";", "case", "ADDRESS_FP_IMM7U", ":", "output_asm_insn", "(", "\"lwi37\\t%0, %1\"", ",", "operands", ")", ";", "break", ";", "case", "ADDRESS_SP_IMM7U", ":", "operands", "[", "1", "]", "=", "XEXP", "(", "code", ",", "1", ")", ";", "output_asm_insn", "(", "\"lwi37.sp\\t%0, [ + (%1)]\"", ",", "operands", ")", ";", "break", ";", "default", ":", "break", ";", "}", "return", "\"\"", ";", "}", ""], "natrual_language": ["Output", "16-bit", "load", "."], "TS_V_token": ["nds32", "100", "1", "0", "1", "1", "\"lwi450\\t%0, [%1]\"", "\"l%ci333\\t%%0, %%1\"", "\"l%ci333.bi\\t%%0, %%1\"", "\"lwi37\\t%0, %1\"", "1", "1", "\"lwi37.sp\\t%0, [ + (%1)]\"", "\"\""], "File": "nds32-md-auxiliary2", "Func": "nds32_output_16bit_load", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 578, "Length": 170, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "sh_movrt_set_dest", "(", "const", "rtx_insn", "*", "i", ")", "{", "if", "(", "i", "==", "NULL", ")", "return", "NULL", ";", "const_rtx", "p", "=", "PATTERN", "(", "i", ")", ";", "if", "(", "GET_CODE", "(", "p", ")", "==", "PARALLEL", ")", "p", "=", "XVECEXP", "(", "p", ",", "0", ",", "0", ")", ";", "return", "GET_CODE", "(", "p", ")", "==", "SET", "&&", "arith_reg_dest", "(", "XEXP", "(", "p", ",", "0", ")", ",", "SImode", ")", "&&", "negt_reg_operand", "(", "XEXP", "(", "p", ",", "1", ")", ",", "VOIDmode", ")", "?", "XEXP", "(", "p", ",", "0", ")", ":", "NULL", ";", "}", ""], "natrual_language": ["Given", "an", "insn", ",", "check", "whether", "it", "'s", "a", "'movrt", "'", "kind", "of", "insn", ",", "i.e", ".", "an", "insn", "that", "stores", "the", "negated", "T", "bit", "in", "a", "register", ",", "and", "return", "the", "destination", "register", "rtx", ",", "or", "null", "."], "TS_V_token": ["sh", "0", "0", "0", "1", "0"], "File": "sh4", "Func": "sh_movrt_set_dest", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 579, "Length": 88, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "DCPU16InstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "unsigned", "DestReg", ",", "int", "FrameIdx", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "*", "MF", ".", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "FrameIdx", ")", ",", "MachineMemOperand", "::", "MOLoad", ",", "MFI", ".", "getObjectSize", "(", "FrameIdx", ")", ",", "MFI", ".", "getObjectAlignment", "(", "FrameIdx", ")", ")", ";", "if", "(", "RC", "==", "&", "DCPU16", "::", "GR16RegClass", "||", "RC", "==", "&", "DCPU16", "::", "GEXR16RegClass", ")", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "DCPU16", "::", "MOV16rm", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FrameIdx", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "else", "llvm_unreachable", "(", "\"Cannot store this register to stack slot!\"", ")", ";", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["Dcpu16", "DCPU16", "DCPU16::GR16RegClass", "DCPU16::GEXR16RegClass", "DCPU16::MOV16rm", "0", "\"Cannot store this register to stack slot!\""], "File": "Dcpu16InstrInfo", "Func": "loadRegFromStackSlot", "Target": "Dcpu16", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 580, "Length": 165, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "setPreservesCFG", "(", ")", ";", "AU", ".", "addRequired", "<", "MachineLoopInfo", ">", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["AArch64"], "File": "AArch64FalkorHWPFFix", "Func": "getAnalysisUsage", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 581, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64SIMDInstrOpt", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "TII", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "const", "TargetSubtargetInfo", "&", "ST", "=", "MF", ".", "getSubtarget", "(", ")", ";", "const", "AArch64InstrInfo", "*", "AAII", "=", "static_cast", "<", "const", "AArch64InstrInfo", "*", ">", "(", "ST", ".", "getInstrInfo", "(", ")", ")", ";", "if", "(", "!", "AAII", ")", "return", "false", ";", "SchedModel", ".", "init", "(", "&", "ST", ")", ";", "if", "(", "!", "SchedModel", ".", "hasInstrSchedModel", "(", ")", ")", "return", "false", ";", "bool", "Changed", "=", "false", ";", "for", "(", "auto", "OptimizationKind", ":", "{", "VectorElem", ",", "Interleave", "}", ")", "{", "if", "(", "!", "shouldExitEarly", "(", "&", "MF", ",", "OptimizationKind", ")", ")", "{", "SmallVector", "<", "MachineInstr", "*", ",", "8", ">", "RemoveMIs", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "{", "for", "(", "MachineBasicBlock", "::", "iterator", "MII", "=", "MBB", ".", "begin", "(", ")", ",", "MIE", "=", "MBB", ".", "end", "(", ")", ";", "MII", "!=", "MIE", ";", ")", "{", "MachineInstr", "&", "MI", "=", "*", "MII", ";", "bool", "InstRewrite", ";", "if", "(", "OptimizationKind", "==", "VectorElem", ")", "InstRewrite", "=", "optimizeVectElement", "(", "MI", ")", ";", "else", "InstRewrite", "=", "optimizeLdStInterleave", "(", "MI", ")", ";", "if", "(", "InstRewrite", ")", "{", "RemoveMIs", ".", "push_back", "(", "&", "MI", ")", ";", "Changed", "=", "true", ";", "}", "++", "MII", ";", "}", "}", "for", "(", "MachineInstr", "*", "MI", ":", "RemoveMIs", ")", "MI", "->", "eraseFromParent", "(", ")", ";", "}", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "8"], "File": "AArch64SIMDInstrOpt (2)", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 582, "Length": 251, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Candidate", "(", ")", ":", "SU", "(", "nullptr", ")", ",", "GroupingCost", "(", "0", ")", ",", "ResourcesCost", "(", "0", ")", "{", "}", ""], "natrual_language": ["Describes", "the", "region", "of", "code", "."], "TS_V_token": ["SystemZ", "0", "0"], "File": "SystemZMachineScheduler5", "Func": "Candidate", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 583, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "unsigned", "*", "ARMRegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "static", "const", "unsigned", "CalleeSavedRegs", "[", "]", "=", "{", "ARM", "::", "LR", ",", "ARM", "::", "R11", ",", "ARM", "::", "R10", ",", "ARM", "::", "R9", ",", "ARM", "::", "R8", ",", "ARM", "::", "R7", ",", "ARM", "::", "R6", ",", "ARM", "::", "R5", ",", "ARM", "::", "R4", ",", "ARM", "::", "D15", ",", "ARM", "::", "D14", ",", "ARM", "::", "D13", ",", "ARM", "::", "D12", ",", "ARM", "::", "D11", ",", "ARM", "::", "D10", ",", "ARM", "::", "D9", ",", "ARM", "::", "D8", ",", "0", "}", ";", "static", "const", "unsigned", "DarwinCalleeSavedRegs", "[", "]", "=", "{", "ARM", "::", "LR", ",", "ARM", "::", "R7", ",", "ARM", "::", "R6", ",", "ARM", "::", "R5", ",", "ARM", "::", "R4", ",", "ARM", "::", "R11", ",", "ARM", "::", "R10", ",", "ARM", "::", "R9", ",", "ARM", "::", "R8", ",", "ARM", "::", "D15", ",", "ARM", "::", "D14", ",", "ARM", "::", "D13", ",", "ARM", "::", "D12", ",", "ARM", "::", "D11", ",", "ARM", "::", "D10", ",", "ARM", "::", "D9", ",", "ARM", "::", "D8", ",", "0", "}", ";", "return", "STI", ".", "isTargetDarwin", "(", ")", "?", "DarwinCalleeSavedRegs", ":", "CalleeSavedRegs", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["ARM", "ARM", "ARM::LR", "ARM::R11", "ARM::R10", "ARM::R9", "ARM::R8", "ARM::R7", "ARM::R6", "ARM::R5", "ARM::R4", "ARM::D15", "ARM::D14", "ARM::D13", "ARM::D12", "ARM::D11", "ARM::D10", "ARM::D9", "ARM::D8", "0", "ARM::LR", "ARM::R7", "ARM::R6", "ARM::R5", "ARM::R4", "ARM::R11", "ARM::R10", "ARM::R9", "ARM::R8", "ARM::D15", "ARM::D14", "ARM::D13", "ARM::D12", "ARM::D11", "ARM::D10", "ARM::D9", "ARM::D8", "0"], "File": "ARMRegisterInfo13", "Func": "getCalleeSavedRegs", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 584, "Length": 184, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "check_required_registers", "(", "location_t", "location", ",", "tree", "fndecl", ")", "{", "if", "(", "reported_missing_registers_p", ")", "return", "false", ";", "if", "(", "TARGET_GENERAL_REGS_ONLY", ")", "{", "error_at", "(", "location", ",", "\"ACLE function %qD is incompatible with the use of %qs\"", ",", "fndecl", ",", "\"-mgeneral-regs-only\"", ")", ";", "reported_missing_registers_p", "=", "true", ";", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Check", "whether", "the", "registers", "required", "by", "SVE", "function", "fndecl", "are", "available", ".", "Report", "an", "error", "against", "LOCATION", "and", "return", "false", "if", "not", "."], "TS_V_token": ["aarch64", "\"ACLE function %qD is incompatible with the use of %qs\"", "\"-mgeneral-regs-only\""], "File": "aarch64-sve-builtins", "Func": "check_required_registers", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 585, "Length": 46, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "add_constant", "(", "int", "dest", ",", "int", "src", ",", "int", "value", ",", "int", "mark_frame", ")", "{", "rtx_insn", "*", "insn", ";", "int", "hi", ",", "lo", ";", "if", "(", "src", "==", "dest", "&&", "value", "==", "0", ")", "return", ";", "if", "(", "value", "==", "0", ")", "{", "insn", "=", "emit_move_insn", "(", "gen_rtx_REG", "(", "SImode", ",", "dest", ")", ",", "gen_rtx_REG", "(", "SImode", ",", "src", ")", ")", ";", "if", "(", "mark_frame", ")", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "return", ";", "}", "if", "(", "value", ">=", "-", "32768", "&&", "value", "<=", "32767", ")", "{", "insn", "=", "emit_insn", "(", "gen_addsi3", "(", "gen_rtx_REG", "(", "SImode", ",", "dest", ")", ",", "gen_rtx_REG", "(", "SImode", ",", "src", ")", ",", "GEN_INT", "(", "value", ")", ")", ")", ";", "if", "(", "mark_frame", ")", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "return", ";", "}", "hi", "=", "trunc_int_for_mode", "(", "value", "&", "0xffff0000", ",", "SImode", ")", ";", "lo", "=", "value", "&", "0xffff", ";", "insn", "=", "emit_move_insn", "(", "gen_rtx_REG", "(", "SImode", ",", "REGSAVE_CONTROL_TEMP", ")", ",", "GEN_INT", "(", "hi", ")", ")", ";", "if", "(", "lo", ")", "{", "insn", "=", "emit_insn", "(", "gen_iorsi3", "(", "gen_rtx_REG", "(", "SImode", ",", "REGSAVE_CONTROL_TEMP", ")", ",", "gen_rtx_REG", "(", "SImode", ",", "REGSAVE_CONTROL_TEMP", ")", ",", "GEN_INT", "(", "lo", ")", ")", ")", ";", "}", "insn", "=", "emit_insn", "(", "gen_addsi3", "(", "gen_rtx_REG", "(", "SImode", ",", "dest", ")", ",", "gen_rtx_REG", "(", "SImode", ",", "src", ")", ",", "gen_rtx_REG", "(", "SImode", ",", "REGSAVE_CONTROL_TEMP", ")", ")", ")", ";", "if", "(", "mark_frame", ")", "{", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "add_reg_note", "(", "insn", ",", "REG_FRAME_RELATED_EXPR", ",", "gen_rtx_SET", "(", "SImode", ",", "gen_rtx_REG", "(", "SImode", ",", "dest", ")", ",", "gen_rtx_PLUS", "(", "SImode", ",", "gen_rtx_REG", "(", "SImode", ",", "dest", ")", ",", "GEN_INT", "(", "value", ")", ")", ")", ")", ";", "}", "}", ""], "natrual_language": ["Add", "a", "constant", "to", "the", "pool", "and", "return", "its", "label", "."], "TS_V_token": ["mep", "0", "0", "1", "32768", "32767", "1", "0xffff0000", "0xffff", "1"], "File": "mep", "Func": "add_constant", "Target": "mep", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 586, "Length": 277, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "ARMRegisterInfo", "&", "getRegisterInfo", "(", ")", "const", "{", "return", "RI", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMInstrInfo19", "Func": "getRegisterInfo", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 587, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_xcoff_output_readonly_section_asm_op", "(", "const", "char", "*", "directive", ")", "{", "fprintf", "(", "asm_out_file", ",", "\"\\t.csect %s[RO],%s\\n\"", ",", "directive", "?", "xcoff_private_rodata_section_name", ":", "xcoff_read_only_section_name", ",", "XCOFF_CSECT_DEFAULT_ALIGNMENT_STR", ")", ";", "}", ""], "natrual_language": ["A", "get_unnamed_decl", "callback", ",", "used", "for", "read-only", "sections", ".", "PTR", "points", "to", "the", "section", "string", "variable", "."], "TS_V_token": ["rs6000", "\"\\t.csect %s[RO],%s\\n\""], "File": "rs6000", "Func": "rs6000_xcoff_output_readonly_section_asm_op", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 588, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "O", ")", "{", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "PPC", "::", "RLWINM", ")", "{", "unsigned", "char", "SH", "=", "MI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "unsigned", "char", "MB", "=", "MI", "->", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", ";", "unsigned", "char", "ME", "=", "MI", "->", "getOperand", "(", "4", ")", ".", "getImm", "(", ")", ";", "bool", "useSubstituteMnemonic", "=", "false", ";", "if", "(", "SH", "<=", "31", "&&", "MB", "==", "0", "&&", "ME", "==", "(", "31", "-", "SH", ")", ")", "{", "O", "<<", "\"\\tslwi \"", ";", "useSubstituteMnemonic", "=", "true", ";", "}", "if", "(", "SH", "<=", "31", "&&", "MB", "==", "(", "32", "-", "SH", ")", "&&", "ME", "==", "31", ")", "{", "O", "<<", "\"\\tsrwi \"", ";", "useSubstituteMnemonic", "=", "true", ";", "SH", "=", "32", "-", "SH", ";", "}", "if", "(", "useSubstituteMnemonic", ")", "{", "printOperand", "(", "MI", ",", "0", ",", "O", ")", ";", "O", "<<", "\", \"", ";", "printOperand", "(", "MI", ",", "1", ",", "O", ")", ";", "O", "<<", "\", \"", "<<", "(", "unsigned", "int", ")", "SH", ";", "return", ";", "}", "}", "if", "(", "(", "MI", "->", "getOpcode", "(", ")", "==", "PPC", "::", "OR", "||", "MI", "->", "getOpcode", "(", ")", "==", "PPC", "::", "OR8", ")", "&&", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", "==", "MI", "->", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ")", "{", "O", "<<", "\"\\tmr \"", ";", "printOperand", "(", "MI", ",", "0", ",", "O", ")", ";", "O", "<<", "\", \"", ";", "printOperand", "(", "MI", ",", "1", ",", "O", ")", ";", "return", ";", "}", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "PPC", "::", "RLDICR", ")", "{", "unsigned", "char", "SH", "=", "MI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "unsigned", "char", "ME", "=", "MI", "->", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", ";", "if", "(", "63", "-", "SH", "==", "ME", ")", "{", "O", "<<", "\"\\tsldi \"", ";", "printOperand", "(", "MI", ",", "0", ",", "O", ")", ";", "O", "<<", "\", \"", ";", "printOperand", "(", "MI", ",", "1", ",", "O", ")", ";", "O", "<<", "\", \"", "<<", "(", "unsigned", "int", ")", "SH", ";", "return", ";", "}", "}", "printInstruction", "(", "MI", ",", "O", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::RLWINM", "2", "3", "4", "31", "0", "31", "\"\\tslwi \"", "31", "32", "31", "\"\\tsrwi \"", "32", "0", "\", \"", "1", "\", \"", "PPC::OR", "PPC::OR8", "1", "2", "\"\\tmr \"", "0", "\", \"", "1", "PPC::RLDICR", "2", "3", "63", "\"\\tsldi \"", "0", "\", \"", "1", "\", \""], "File": "PPCInstPrinter2", "Func": "printInst", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 589, "Length": 357, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86InstrInfo", "::", "breakPartialRegDependency", "(", "MachineBasicBlock", "::", "iterator", "MI", ",", "unsigned", "OpNum", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "unsigned", "Reg", "=", "MI", "->", "getOperand", "(", "OpNum", ")", ".", "getReg", "(", ")", ";", "if", "(", "MI", "->", "killsRegister", "(", "Reg", ",", "TRI", ")", ")", "return", ";", "if", "(", "X86", "::", "VR128RegClass", ".", "contains", "(", "Reg", ")", ")", "{", "bool", "HasAVX", "=", "TM", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "hasAVX", "(", ")", ";", "unsigned", "Opc", "=", "HasAVX", "?", "X86", "::", "VXORPSrr", ":", "X86", "::", "XORPSrr", ";", "BuildMI", "(", "*", "MI", "->", "getParent", "(", ")", ",", "MI", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "get", "(", "Opc", ")", ",", "Reg", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Undef", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Undef", ")", ";", "}", "else", "if", "(", "X86", "::", "VR256RegClass", ".", "contains", "(", "Reg", ")", ")", "{", "unsigned", "XReg", "=", "TRI", "->", "getSubReg", "(", "Reg", ",", "X86", "::", "sub_xmm", ")", ";", "BuildMI", "(", "*", "MI", "->", "getParent", "(", ")", ",", "MI", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "get", "(", "X86", "::", "VXORPSrr", ")", ",", "XReg", ")", ".", "addReg", "(", "XReg", ",", "RegState", "::", "Undef", ")", ".", "addReg", "(", "XReg", ",", "RegState", "::", "Undef", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "ImplicitDefine", ")", ";", "}", "else", "return", ";", "MI", "->", "addRegisterKilled", "(", "Reg", ",", "TRI", ",", "true", ")", ";", "}", ""], "natrual_language": ["Insert", "a", "dependency-breaking", "instruction", "before", "MI", "to", "eliminate", "an", "unwanted", "dependency", "on", "OpNum", "."], "TS_V_token": ["X86", "X86", "X86::VR128RegClass", "X86", "X86::VXORPSrr", "X86::XORPSrr", "X86::VR256RegClass", "X86::sub_xmm", "X86::VXORPSrr"], "File": "X86InstrInfo (2)", "Func": "breakPartialRegDependency", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 590, "Length": 229, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsSEInstrInfo", "::", "loadImmediate", "(", "int64_t", "Imm", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "II", ",", "DebugLoc", "DL", ",", "unsigned", "*", "NewImm", ")", "const", "{", "MipsAnalyzeImmediate", "AnalyzeImm", ";", "const", "MipsSubtarget", "&", "STI", "=", "TM", ".", "getSubtarget", "<", "MipsSubtarget", ">", "(", ")", ";", "unsigned", "Size", "=", "STI", ".", "isABI_N64", "(", ")", "?", "64", ":", "32", ";", "unsigned", "LUi", "=", "STI", ".", "isABI_N64", "(", ")", "?", "Mips", "::", "LUi64", ":", "Mips", "::", "LUi", ";", "unsigned", "ZEROReg", "=", "STI", ".", "isABI_N64", "(", ")", "?", "Mips", "::", "ZERO_64", ":", "Mips", "::", "ZERO", ";", "unsigned", "ATReg", "=", "STI", ".", "isABI_N64", "(", ")", "?", "Mips", "::", "AT_64", ":", "Mips", "::", "AT", ";", "bool", "LastInstrIsADDiu", "=", "NewImm", ";", "const", "MipsAnalyzeImmediate", "::", "InstSeq", "&", "Seq", "=", "AnalyzeImm", ".", "Analyze", "(", "Imm", ",", "Size", ",", "LastInstrIsADDiu", ")", ";", "MipsAnalyzeImmediate", "::", "InstSeq", "::", "const_iterator", "Inst", "=", "Seq", ".", "begin", "(", ")", ";", "assert", "(", "Seq", ".", "size", "(", ")", "&&", "(", "!", "LastInstrIsADDiu", "||", "(", "Seq", ".", "size", "(", ")", ">", "1", ")", ")", ")", ";", "if", "(", "Inst", "->", "Opc", "==", "LUi", ")", "BuildMI", "(", "MBB", ",", "II", ",", "DL", ",", "get", "(", "LUi", ")", ",", "ATReg", ")", ".", "addImm", "(", "SignExtend64", "<", "16", ">", "(", "Inst", "->", "ImmOpnd", ")", ")", ";", "else", "BuildMI", "(", "MBB", ",", "II", ",", "DL", ",", "get", "(", "Inst", "->", "Opc", ")", ",", "ATReg", ")", ".", "addReg", "(", "ZEROReg", ")", ".", "addImm", "(", "SignExtend64", "<", "16", ">", "(", "Inst", "->", "ImmOpnd", ")", ")", ";", "for", "(", "++", "Inst", ";", "Inst", "!=", "Seq", ".", "end", "(", ")", "-", "LastInstrIsADDiu", ";", "++", "Inst", ")", "BuildMI", "(", "MBB", ",", "II", ",", "DL", ",", "get", "(", "Inst", "->", "Opc", ")", ",", "ATReg", ")", ".", "addReg", "(", "ATReg", ")", ".", "addImm", "(", "SignExtend64", "<", "16", ">", "(", "Inst", "->", "ImmOpnd", ")", ")", ";", "if", "(", "LastInstrIsADDiu", ")", "*", "NewImm", "=", "Inst", "->", "ImmOpnd", ";", "return", "ATReg", ";", "}", ""], "natrual_language": ["Emit", "a", "series", "of", "instructions", "to", "load", "an", "immediate", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "Mips", "64", "32", "Mips::LUi64", "Mips::LUi", "Mips::ZERO_64", "Mips::ZERO", "Mips::AT_64", "Mips::AT", "Mips", "Mips", "1", "16", "16", "16"], "File": "MipsSEInstrInfo43", "Func": "loadImmediate", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 591, "Length": 310, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "setShrinkWrapDisabled", "(", "bool", "U", ")", "{", "ShrinkWrapDisabled", "=", "U", ";", "}", ""], "natrual_language": ["We", "certainly", "do", "n't", "want", "to", "shrink", "wrap", "functions", "if", "we", "'ve", "emitted", "a", "MovePCtoLR8", "as", "that", "has", "to", "go", "into", "the", "entry", ",", "so", "the", "prologue", "definitely", "has", "to", "go", "into", "the", "entry", "block", "."], "TS_V_token": ["PowerPC"], "File": "PPCMachineFunctionInfo1", "Func": "setShrinkWrapDisabled", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 592, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"Lanai DAG->DAG Pattern Instruction Selection\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["Lanai", "\"Lanai DAG->DAG Pattern Instruction Selection\""], "File": "LanaiISelDAGToDAG12", "Func": "getPassName", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 593, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "EVT", "X86TargetLowering", "::", "getOptimalMemOpType", "(", "uint64_t", "Size", ",", "unsigned", "DstAlign", ",", "unsigned", "SrcAlign", ",", "bool", "NonScalarIntSafe", ",", "bool", "MemcpyStrSrc", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "const", "Function", "*", "F", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getFunction", "(", ")", ";", "if", "(", "NonScalarIntSafe", "&&", "!", "F", "->", "hasFnAttr", "(", "Attribute", "::", "NoImplicitFloat", ")", ")", "{", "if", "(", "Size", ">=", "16", "&&", "(", "Subtarget", "->", "isUnalignedMemAccessFast", "(", ")", "||", "(", "(", "DstAlign", "==", "0", "||", "DstAlign", ">=", "16", ")", "&&", "(", "SrcAlign", "==", "0", "||", "SrcAlign", ">=", "16", ")", ")", ")", "&&", "Subtarget", "->", "getStackAlignment", "(", ")", ">=", "16", ")", "{", "if", "(", "Subtarget", "->", "hasSSE2", "(", ")", ")", "return", "MVT", "::", "v4i32", ";", "if", "(", "Subtarget", "->", "hasSSE1", "(", ")", ")", "return", "MVT", "::", "v4f32", ";", "}", "else", "if", "(", "!", "MemcpyStrSrc", "&&", "Size", ">=", "8", "&&", "!", "Subtarget", "->", "is64Bit", "(", ")", "&&", "Subtarget", "->", "getStackAlignment", "(", ")", ">=", "8", "&&", "Subtarget", "->", "hasSSE2", "(", ")", ")", "{", "return", "MVT", "::", "f64", ";", "}", "}", "if", "(", "Subtarget", "->", "is64Bit", "(", ")", "&&", "Size", ">=", "8", ")", "return", "MVT", "::", "i64", ";", "return", "MVT", "::", "i32", ";", "}", ""], "natrual_language": ["It", "returns", "EVT", ":", ":Other", "if", "the", "type", "should", "be", "determined", "using", "generic", "target-independent", "logic", "."], "TS_V_token": ["X86", "X86", "16", "0", "16", "0", "16", "16", "MVT::v4i32", "MVT::v4f32", "8", "8", "MVT::f64", "8", "MVT::i64", "MVT::i32"], "File": "X86ISelLowering21", "Func": "getOptimalMemOpType", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 594, "Length": 190, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86InstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FrameIdx", ",", "const", "TargetRegisterClass", "*", "RC", ")", "const", "{", "const", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "bool", "isAligned", "=", "(", "RI", ".", "getStackAlignment", "(", ")", ">=", "16", ")", "||", "RI", ".", "needsStackRealignment", "(", "MF", ")", ";", "unsigned", "Opc", "=", "getStoreRegOpcode", "(", "RC", ",", "isAligned", ")", ";", "DebugLoc", "DL", "=", "DebugLoc", "::", "getUnknownLoc", "(", ")", ";", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "addFrameReference", "(", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "Opc", ")", ")", ",", "FrameIdx", ")", ".", "addReg", "(", "SrcReg", ",", "false", ",", "false", ",", "isKill", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["X86", "X86", "16"], "File": "X86InstrInfo101", "Func": "storeRegToStackSlot", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 595, "Length": 130, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_legitimate_constant_p", "(", "machine_mode", "mode", ",", "rtx", "x", ")", "{", "if", "(", "TARGET_ELF", "&&", "tls_referenced_p", "(", "x", ")", ")", "return", "false", ";", "return", "(", "(", "GET_CODE", "(", "x", ")", "!=", "CONST_DOUBLE", "&&", "GET_CODE", "(", "x", ")", "!=", "CONST_VECTOR", ")", "||", "GET_MODE", "(", "x", ")", "==", "VOIDmode", "||", "(", "TARGET_POWERPC64", "&&", "mode", "==", "DImode", ")", "||", "easy_fp_constant", "(", "x", ",", "mode", ")", "||", "easy_vector_constant", "(", "x", ",", "mode", ")", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_LEGITIMATE_CONSTANT_P", ".", "On", "the", "RS/6000", ",", "all", "integer", "constants", "are", "acceptable", ",", "most", "wo", "n't", "be", "valid", "for", "particular", "insns", ",", "though", ".", "Only", "easy", "FP", "constants", "are", "acceptable", "."], "TS_V_token": ["powerpcspe"], "File": "powerpcspe", "Func": "rs6000_legitimate_constant_p", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 596, "Length": 72, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "EVT", "AArch64TargetLowering", "::", "getOptimalMemOpType", "(", "uint64_t", "Size", ",", "unsigned", "DstAlign", ",", "unsigned", "SrcAlign", ",", "bool", "IsMemset", ",", "bool", "ZeroMemset", ",", "bool", "MemcpyStrSrc", ",", "MachineFunction", "&", "MF", ")", "const", "{", "bool", "Fast", ";", "const", "Function", "*", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "if", "(", "Subtarget", "->", "hasFPARMv8", "(", ")", "&&", "!", "IsMemset", "&&", "Size", ">=", "16", "&&", "!", "F", "->", "getAttributes", "(", ")", ".", "hasAttribute", "(", "AttributeSet", "::", "FunctionIndex", ",", "Attribute", "::", "NoImplicitFloat", ")", "&&", "(", "memOpAlign", "(", "SrcAlign", ",", "DstAlign", ",", "16", ")", "||", "(", "allowsUnalignedMemoryAccesses", "(", "MVT", "::", "f128", ",", "0", ",", "&", "Fast", ")", "&&", "Fast", ")", ")", ")", "return", "MVT", "::", "f128", ";", "return", "Size", ">=", "8", "?", "MVT", "::", "i64", ":", "MVT", "::", "i32", ";", "}", ""], "natrual_language": ["It", "returns", "EVT", ":", ":Other", "if", "the", "type", "should", "be", "determined", "using", "generic", "target-independent", "logic", "."], "TS_V_token": ["AArch64", "AArch64", "16", "16", "MVT::f128", "0", "MVT::f128", "8", "MVT::i64", "MVT::i32"], "File": "AArch64ISelLowering23", "Func": "getOptimalMemOpType", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 597, "Length": 122, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCInst", "AArch64InstrInfo", "::", "getNop", "(", ")", "const", "{", "return", "MCInstBuilder", "(", "AArch64", "::", "HINT", ")", ".", "addImm", "(", "0", ")", ";", "}", ""], "natrual_language": ["Return", "the", "noop", "instruction", "to", "use", "for", "a", "noop", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::HINT", "0"], "File": "AArch64InstrInfo105", "Func": "getNop", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 598, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMPassConfig", "::", "addPreISel", "(", ")", "{", "if", "(", "(", "TM", "->", "getOptLevel", "(", ")", "==", "CodeGenOpt", "::", "Aggressive", "&&", "EnableGlobalMerge", "==", "cl", "::", "BOU_UNSET", ")", "||", "EnableGlobalMerge", "==", "cl", "::", "BOU_TRUE", ")", "addPass", "(", "createGlobalMergePass", "(", "TM", ",", "127", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["{", "{", "@", "For", "GlobalISel"], "TS_V_token": ["ARM", "ARM", "127"], "File": "ARMTargetMachine29", "Func": "addPreISel", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 599, "Length": 47, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_emit_restore_sse_regs_using_mov", "(", "HOST_WIDE_INT", "cfa_offset", ",", "bool", "maybe_eh_return", ")", "{", "unsigned", "int", "regno", ";", "for", "(", "regno", "=", "0", ";", "regno", "<", "FIRST_PSEUDO_REGISTER", ";", "regno", "++", ")", "if", "(", "SSE_REGNO_P", "(", "regno", ")", "&&", "ix86_save_reg", "(", "regno", ",", "maybe_eh_return", ")", ")", "{", "rtx", "reg", "=", "gen_rtx_REG", "(", "V4SFmode", ",", "regno", ")", ";", "rtx", "mem", ";", "unsigned", "int", "align", ";", "mem", "=", "choose_baseaddr", "(", "cfa_offset", ")", ";", "mem", "=", "gen_rtx_MEM", "(", "V4SFmode", ",", "mem", ")", ";", "align", "=", "MIN", "(", "GET_MODE_ALIGNMENT", "(", "V4SFmode", ")", ",", "INCOMING_STACK_BOUNDARY", ")", ";", "set_mem_align", "(", "mem", ",", "align", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "reg", ",", "mem", ")", ")", ";", "ix86_add_cfa_restore_note", "(", "NULL", ",", "reg", ",", "cfa_offset", ")", ";", "cfa_offset", "-=", "GET_MODE_SIZE", "(", "V4SFmode", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "code", "to", "restore", "saved", "registers", "using", "MOV", "insns", ".", "First", "register", "is", "restored", "from", "CFA", "-", "CFA_OFFSET", "."], "TS_V_token": ["i386", "0"], "File": "i3866", "Func": "ix86_emit_restore_sse_regs_using_mov", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 600, "Length": 123, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMAsmParser", "::", "ParseDirective", "(", "AsmToken", "DirectiveID", ")", "{", "StringRef", "IDVal", "=", "DirectiveID", ".", "getIdentifier", "(", ")", ";", "if", "(", "IDVal", "==", "\".word\"", ")", "return", "ParseDirectiveWord", "(", "4", ",", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".thumb\"", ")", "return", "ParseDirectiveThumb", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".thumb_func\"", ")", "return", "ParseDirectiveThumbFunc", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".code\"", ")", "return", "ParseDirectiveCode", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".syntax\"", ")", "return", "ParseDirectiveSyntax", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["ParseDirective", "-", "Parse", "a", "target", "specific", "assembler", "directive", "This", "method", "is", "deprecated", ",", "use", "'parseDirective", "'", "instead", "."], "TS_V_token": ["ARM", "ARM", "\".word\"", "4", "\".thumb\"", "\".thumb_func\"", "\".code\"", "\".syntax\""], "File": "ARMAsmParser13", "Func": "ParseDirective", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 601, "Length": 108, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "UnwindOpcodeAssembler", "::", "EmitSPOffset", "(", "int64_t", "Offset", ")", "{", "if", "(", "Offset", ">", "0x200", ")", "{", "uint8_t", "Buff", "[", "16", "]", ";", "Buff", "[", "0", "]", "=", "ARM", "::", "EHABI", "::", "UNWIND_OPCODE_INC_VSP_ULEB128", ";", "size_t", "ULEBSize", "=", "encodeULEB128", "(", "(", "Offset", "-", "0x204", ")", ">>", "2", ",", "Buff", "+", "1", ")", ";", "EmitBytes", "(", "Buff", ",", "ULEBSize", "+", "1", ")", ";", "}", "else", "if", "(", "Offset", ">", "0", ")", "{", "if", "(", "Offset", ">", "0x100", ")", "{", "EmitInt8", "(", "ARM", "::", "EHABI", "::", "UNWIND_OPCODE_INC_VSP", "|", "0x3fu", ")", ";", "Offset", "-=", "0x100", ";", "}", "EmitInt8", "(", "ARM", "::", "EHABI", "::", "UNWIND_OPCODE_INC_VSP", "|", "static_cast", "<", "uint8_t", ">", "(", "(", "Offset", "-", "4", ")", ">>", "2", ")", ")", ";", "}", "else", "if", "(", "Offset", "<", "0", ")", "{", "while", "(", "Offset", "<", "-", "0x100", ")", "{", "EmitInt8", "(", "ARM", "::", "EHABI", "::", "UNWIND_OPCODE_DEC_VSP", "|", "0x3fu", ")", ";", "Offset", "+=", "0x100", ";", "}", "EmitInt8", "(", "ARM", "::", "EHABI", "::", "UNWIND_OPCODE_DEC_VSP", "|", "static_cast", "<", "uint8_t", ">", "(", "(", "(", "-", "Offset", ")", "-", "4", ")", ">>", "2", ")", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "unwind", "opcodes", "to", "add", "$", "sp", "with", "an", "offset", "."], "TS_V_token": ["ARM", "0x200", "16", "0", "ARM::EHABI", "0x204", "2", "1", "1", "0", "0x100", "ARM::EHABI", "0x3fu", "0x100", "ARM::EHABI", "4", "2", "0", "0x100", "ARM::EHABI", "0x3fu", "0x100", "ARM::EHABI", "4", "2"], "File": "ARMUnwindOpAsm (2)", "Func": "EmitSPOffset", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 602, "Length": 176, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "is_store_insn", "(", "rtx", "insn", ",", "rtx", "*", "str_mem", ")", "{", "if", "(", "!", "insn", "||", "!", "INSN_P", "(", "insn", ")", ")", "return", "false", ";", "return", "is_store_insn1", "(", "PATTERN", "(", "insn", ")", ",", "str_mem", ")", ";", "}", ""], "natrual_language": ["Determine", "if", "INSN", "stores", "to", "memory", "."], "TS_V_token": ["powerpcspe"], "File": "powerpcspe", "Func": "is_store_insn", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 603, "Length": 38, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isTarget64BitLP64", "(", ")", "const", "{", "return", "In64BitMode", "&&", "(", "TargetTriple", ".", "getEnvironment", "(", ")", "!=", "Triple", "::", "GNUX32", "&&", "TargetTriple", ".", "getOS", "(", ")", "!=", "Triple", "::", "NaCl", ")", ";", "}", ""], "natrual_language": ["Is", "this", "x86_64", "with", "the", "LP64", "programming", "model", "(", "standard", "AMD64", ",", "no", "x32", ")", "?"], "TS_V_token": ["X86"], "File": "X86Subtarget104", "Func": "isTarget64BitLP64", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 604, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86ATTInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "OS", ",", "StringRef", "Annot", ")", "{", "const", "MCInstrDesc", "&", "Desc", "=", "MII", ".", "get", "(", "MI", "->", "getOpcode", "(", ")", ")", ";", "uint64_t", "TSFlags", "=", "Desc", ".", "TSFlags", ";", "if", "(", "CommentStream", ")", "HasCustomInstComment", "=", "EmitAnyX86InstComments", "(", "MI", ",", "*", "CommentStream", ",", "getRegisterName", ")", ";", "if", "(", "TSFlags", "&", "X86II", "::", "LOCK", ")", "OS", "<<", "\"\\tlock\\n\"", ";", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "X86", "::", "CALLpcrel32", "&&", "(", "getAvailableFeatures", "(", ")", "&", "X86", "::", "Mode64Bit", ")", "!=", "0", ")", "{", "OS", "<<", "\"\\tcallq\\t\"", ";", "printPCRelImm", "(", "MI", ",", "0", ",", "OS", ")", ";", "}", "else", "if", "(", "!", "printAliasInstr", "(", "MI", ",", "OS", ")", ")", "printInstruction", "(", "MI", ",", "OS", ")", ";", "printAnnotation", "(", "OS", ",", "Annot", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["X86", "X86", "X86", "X86II::LOCK", "\"\\tlock\\n\"", "X86::CALLpcrel32", "X86::Mode64Bit", "0", "\"\\tcallq\\t\"", "0"], "File": "X86ATTInstPrinter23", "Func": "printInst", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 605, "Length": 134, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "ix86_expand_sse_cmp", "(", "rtx", "dest", ",", "enum", "rtx_code", "code", ",", "rtx", "cmp_op0", ",", "rtx", "cmp_op1", ",", "rtx", "op_true", ",", "rtx", "op_false", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "dest", ")", ";", "machine_mode", "cmp_ops_mode", "=", "GET_MODE", "(", "cmp_op0", ")", ";", "machine_mode", "cmp_mode", ";", "bool", "maskcmp", "=", "false", ";", "rtx", "x", ";", "if", "(", "ix86_use_mask_cmp_p", "(", "mode", ",", "cmp_ops_mode", ",", "op_true", ",", "op_false", ")", ")", "{", "unsigned", "int", "nbits", "=", "GET_MODE_NUNITS", "(", "cmp_ops_mode", ")", ";", "maskcmp", "=", "true", ";", "cmp_mode", "=", "nbits", ">", "8", "?", "int_mode_for_size", "(", "nbits", ",", "0", ")", ".", "require", "(", ")", ":", "E_QImode", ";", "}", "else", "cmp_mode", "=", "cmp_ops_mode", ";", "cmp_op0", "=", "force_reg", "(", "cmp_ops_mode", ",", "cmp_op0", ")", ";", "bool", "(", "*", "op1_predicate", ")", "(", "rtx", ",", "machine_mode", ")", "=", "VECTOR_MODE_P", "(", "cmp_ops_mode", ")", "?", "vector_operand", ":", "nonimmediate_operand", ";", "if", "(", "!", "op1_predicate", "(", "cmp_op1", ",", "cmp_ops_mode", ")", ")", "cmp_op1", "=", "force_reg", "(", "cmp_ops_mode", ",", "cmp_op1", ")", ";", "if", "(", "optimize", "||", "(", "maskcmp", "&&", "cmp_mode", "!=", "mode", ")", "||", "(", "op_true", "&&", "reg_overlap_mentioned_p", "(", "dest", ",", "op_true", ")", ")", "||", "(", "op_false", "&&", "reg_overlap_mentioned_p", "(", "dest", ",", "op_false", ")", ")", ")", "dest", "=", "gen_reg_rtx", "(", "maskcmp", "?", "cmp_mode", ":", "mode", ")", ";", "if", "(", "maskcmp", ")", "{", "bool", "ok", "=", "ix86_expand_mask_vec_cmp", "(", "dest", ",", "code", ",", "cmp_op0", ",", "cmp_op1", ")", ";", "gcc_assert", "(", "ok", ")", ";", "return", "dest", ";", "}", "x", "=", "gen_rtx_fmt_ee", "(", "code", ",", "cmp_mode", ",", "cmp_op0", ",", "cmp_op1", ")", ";", "if", "(", "cmp_mode", "!=", "mode", ")", "{", "x", "=", "force_reg", "(", "cmp_ops_mode", ",", "x", ")", ";", "convert_move", "(", "dest", ",", "x", ",", "false", ")", ";", "}", "else", "emit_insn", "(", "gen_rtx_SET", "(", "dest", ",", "x", ")", ")", ";", "return", "dest", ";", "}", ""], "natrual_language": ["Expand", "an", "sse", "vector", "comparison", ".", "Return", "the", "register", "with", "the", "result", "."], "TS_V_token": ["i386", "8", "0"], "File": "i386-expand", "Func": "ix86_expand_sse_cmp", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 606, "Length": 278, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ARMSubtarget", "::", "ARMSubtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "ARMBaseTargetMachine", "&", "TM", ",", "bool", "IsLittle", ")", ":", "ARMGenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "UseMulOps", "(", "UseFusedMulOps", ")", ",", "GenExecuteOnly", "(", "EnableExecuteOnly", ")", ",", "CPUString", "(", "CPU", ")", ",", "IsLittle", "(", "IsLittle", ")", ",", "TargetTriple", "(", "TT", ")", ",", "Options", "(", "TM", ".", "Options", ")", ",", "TM", "(", "TM", ")", ",", "FrameLowering", "(", "initializeFrameLowering", "(", "CPU", ",", "FS", ")", ")", ",", "InstrInfo", "(", "isThumb1Only", "(", ")", "?", "(", "ARMBaseInstrInfo", "*", ")", "new", "Thumb1InstrInfo", "(", "*", "this", ")", ":", "!", "isThumb", "(", ")", "?", "(", "ARMBaseInstrInfo", "*", ")", "new", "ARMInstrInfo", "(", "*", "this", ")", ":", "(", "ARMBaseInstrInfo", "*", ")", "new", "Thumb2InstrInfo", "(", "*", "this", ")", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM"], "File": "ARMSubtarget31", "Func": "ARMSubtarget", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 607, "Length": 142, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "fp_one_operand", "(", "rtx", "op", ")", "{", "REAL_VALUE_TYPE", "r", ";", "if", "(", "GET_MODE", "(", "op", ")", "!=", "SFmode", ")", "return", "0", ";", "REAL_VALUE_FROM_CONST_DOUBLE", "(", "r", ",", "op", ")", ";", "return", "REAL_VALUES_EQUAL", "(", "r", ",", "dconst1", ")", ";", "}", ""], "natrual_language": ["Nonzero", "if", "OP", "is", "a", "floating", "point", "value", "with", "value", "1.0", "."], "TS_V_token": ["sh", "0"], "File": "sh3", "Func": "fp_one_operand", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 608, "Length": 38, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "{", "return", "\"ARM pseudo instruction expansion pass\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["ARM", "\"ARM pseudo instruction expansion pass\""], "File": "ARMExpandPseudoInsts11", "Func": "getPassName", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 609, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MMIXInstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MBBI", ",", "const", "DebugLoc", "&", "DL", ",", "MCRegister", "DstReg", ",", "MCRegister", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "assert", "(", "MMIX", "::", "GPRRegClass", ".", "contains", "(", "DstReg", ",", "SrcReg", ")", "&&", "\"Impossible reg-to-reg copy\"", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "get", "(", "MMIX", "::", "ADD_I", ")", ",", "DstReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ".", "addImm", "(", "0", ")", ";", "}", ""], "natrual_language": ["}", "Branch", "Analysis", "&", "Modification"], "TS_V_token": ["MMIX", "MMIX", "MMIX::GPRRegClass", "\"Impossible reg-to-reg copy\"", "MMIX::ADD_I", "0"], "File": "MMIXInstrInfo", "Func": "copyPhysReg", "Target": "MMIX", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 610, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "aarch64_split_compare_and_swap", "(", "rtx", "operands", "[", "]", ")", "{", "rtx", "rval", ",", "mem", ",", "oldval", ",", "newval", ",", "scratch", ";", "machine_mode", "mode", ";", "bool", "is_weak", ";", "rtx_code_label", "*", "label1", ",", "*", "label2", ";", "rtx", "x", ",", "cond", ";", "enum", "memmodel", "model", ";", "rtx", "model_rtx", ";", "rval", "=", "operands", "[", "0", "]", ";", "mem", "=", "operands", "[", "1", "]", ";", "oldval", "=", "operands", "[", "2", "]", ";", "newval", "=", "operands", "[", "3", "]", ";", "is_weak", "=", "(", "operands", "[", "4", "]", "!=", "const0_rtx", ")", ";", "model_rtx", "=", "operands", "[", "5", "]", ";", "scratch", "=", "operands", "[", "7", "]", ";", "mode", "=", "GET_MODE", "(", "mem", ")", ";", "model", "=", "memmodel_from_int", "(", "INTVAL", "(", "model_rtx", ")", ")", ";", "label1", "=", "NULL", ";", "if", "(", "!", "is_weak", ")", "{", "label1", "=", "gen_label_rtx", "(", ")", ";", "emit_label", "(", "label1", ")", ";", "}", "label2", "=", "gen_label_rtx", "(", ")", ";", "if", "(", "is_mm_sync", "(", "model", ")", ")", "aarch64_emit_load_exclusive", "(", "mode", ",", "rval", ",", "mem", ",", "GEN_INT", "(", "MEMMODEL_RELAXED", ")", ")", ";", "else", "aarch64_emit_load_exclusive", "(", "mode", ",", "rval", ",", "mem", ",", "model_rtx", ")", ";", "cond", "=", "aarch64_gen_compare_reg", "(", "NE", ",", "rval", ",", "oldval", ")", ";", "x", "=", "gen_rtx_NE", "(", "VOIDmode", ",", "cond", ",", "const0_rtx", ")", ";", "x", "=", "gen_rtx_IF_THEN_ELSE", "(", "VOIDmode", ",", "x", ",", "gen_rtx_LABEL_REF", "(", "Pmode", ",", "label2", ")", ",", "pc_rtx", ")", ";", "aarch64_emit_unlikely_jump", "(", "gen_rtx_SET", "(", "pc_rtx", ",", "x", ")", ")", ";", "aarch64_emit_store_exclusive", "(", "mode", ",", "scratch", ",", "mem", ",", "newval", ",", "model_rtx", ")", ";", "if", "(", "!", "is_weak", ")", "{", "x", "=", "gen_rtx_NE", "(", "VOIDmode", ",", "scratch", ",", "const0_rtx", ")", ";", "x", "=", "gen_rtx_IF_THEN_ELSE", "(", "VOIDmode", ",", "x", ",", "gen_rtx_LABEL_REF", "(", "Pmode", ",", "label1", ")", ",", "pc_rtx", ")", ";", "aarch64_emit_unlikely_jump", "(", "gen_rtx_SET", "(", "pc_rtx", ",", "x", ")", ")", ";", "}", "else", "{", "cond", "=", "gen_rtx_REG", "(", "CCmode", ",", "CC_REGNUM", ")", ";", "x", "=", "gen_rtx_COMPARE", "(", "CCmode", ",", "scratch", ",", "const0_rtx", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "cond", ",", "x", ")", ")", ";", "}", "emit_label", "(", "label2", ")", ";", "if", "(", "is_mm_sync", "(", "model", ")", ")", "aarch64_emit_post_barrier", "(", "model", ")", ";", "}", ""], "natrual_language": ["Split", "a", "compare", "and", "swap", "pattern", "."], "TS_V_token": ["aarch64", "0", "1", "2", "3", "4", "5", "7"], "File": "aarch643", "Func": "aarch64_split_compare_and_swap", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 611, "Length": 336, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "int", "mt_compute_frame_size", "(", "int", "size", ")", "{", "int", "regno", ";", "unsigned", "int", "total_size", ";", "unsigned", "int", "var_size", ";", "unsigned", "int", "args_size", ";", "unsigned", "int", "pretend_size", ";", "unsigned", "int", "extra_size", ";", "unsigned", "int", "reg_size", ";", "unsigned", "int", "frame_size", ";", "unsigned", "int", "reg_mask", ";", "var_size", "=", "size", ";", "args_size", "=", "current_function_outgoing_args_size", ";", "pretend_size", "=", "current_function_pretend_args_size", ";", "extra_size", "=", "FIRST_PARM_OFFSET", "(", "0", ")", ";", "total_size", "=", "extra_size", "+", "pretend_size", "+", "args_size", "+", "var_size", ";", "reg_size", "=", "0", ";", "reg_mask", "=", "0", ";", "for", "(", "regno", "=", "GPR_R0", ";", "regno", "<=", "GPR_LAST", ";", "regno", "++", ")", "{", "if", "(", "MUST_SAVE_REGISTER", "(", "regno", ")", ")", "{", "reg_size", "+=", "UNITS_PER_WORD", ";", "reg_mask", "|=", "1", "<<", "regno", ";", "}", "}", "current_frame_info", ".", "save_fp", "=", "(", "regs_ever_live", "[", "GPR_FP", "]", "||", "frame_pointer_needed", "||", "interrupt_handler", ")", ";", "current_frame_info", ".", "save_lr", "=", "(", "regs_ever_live", "[", "GPR_LINK", "]", "||", "profile_flag", "||", "interrupt_handler", ")", ";", "reg_size", "+=", "(", "current_frame_info", ".", "save_fp", "+", "current_frame_info", ".", "save_lr", ")", "*", "UNITS_PER_WORD", ";", "total_size", "+=", "reg_size", ";", "total_size", "=", "(", "(", "total_size", "+", "3", ")", "&", "~", "3", ")", ";", "frame_size", "=", "total_size", ";", "current_frame_info", ".", "pretend_size", "=", "pretend_size", ";", "current_frame_info", ".", "var_size", "=", "var_size", ";", "current_frame_info", ".", "args_size", "=", "args_size", ";", "current_frame_info", ".", "reg_size", "=", "reg_size", ";", "current_frame_info", ".", "frame_size", "=", "args_size", "+", "var_size", ";", "current_frame_info", ".", "total_size", "=", "total_size", ";", "current_frame_info", ".", "extra_size", "=", "extra_size", ";", "current_frame_info", ".", "reg_mask", "=", "reg_mask", ";", "current_frame_info", ".", "initialized", "=", "reload_completed", ";", "return", "total_size", ";", "}", ""], "natrual_language": ["Returns", "the", "number", "of", "bytes", "offset", "between", "the", "frame", "pointer", "and", "the", "stack", "pointer", "for", "the", "current", "function", ".", "SIZE", "is", "the", "number", "of", "bytes", "of", "space", "needed", "for", "local", "variables", "."], "TS_V_token": ["mt", "0", "0", "0", "1", "3", "3"], "File": "mt", "Func": "mt_compute_frame_size", "Target": "mt", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 612, "Length": 239, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "rs6000_parm_start", "(", "machine_mode", "mode", ",", "const_tree", "type", ",", "unsigned", "int", "nwords", ")", "{", "unsigned", "int", "align", ";", "align", "=", "rs6000_function_arg_boundary", "(", "mode", ",", "type", ")", "/", "PARM_BOUNDARY", "-", "1", ";", "return", "nwords", "+", "(", "-", "(", "rs6000_parm_offset", "(", ")", "+", "nwords", ")", "&", "align", ")", ";", "}", ""], "natrual_language": ["For", "a", "function", "parm", "of", "MODE", "and", "TYPE", ",", "return", "the", "starting", "word", "in", "the", "parameter", "area", ".", "NWORDS", "of", "the", "parameter", "area", "are", "already", "used", "."], "TS_V_token": ["powerpcspe", "1"], "File": "powerpcspe", "Func": "rs6000_parm_start", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 613, "Length": 50, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "mergeSPUpdates", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "MBBI", ",", "unsigned", "StackPtr", ",", "bool", "doMergeWithPrevious", ")", "{", "if", "(", "(", "doMergeWithPrevious", "&&", "MBBI", "==", "MBB", ".", "begin", "(", ")", ")", "||", "(", "!", "doMergeWithPrevious", "&&", "MBBI", "==", "MBB", ".", "end", "(", ")", ")", ")", "return", "0", ";", "MachineBasicBlock", "::", "iterator", "PI", "=", "doMergeWithPrevious", "?", "prior", "(", "MBBI", ")", ":", "MBBI", ";", "MachineBasicBlock", "::", "iterator", "NI", "=", "doMergeWithPrevious", "?", "0", ":", "next", "(", "MBBI", ")", ";", "unsigned", "Opc", "=", "PI", "->", "getOpcode", "(", ")", ";", "int", "Offset", "=", "0", ";", "if", "(", "(", "Opc", "==", "X86", "::", "ADD64ri32", "||", "Opc", "==", "X86", "::", "ADD64ri8", "||", "Opc", "==", "X86", "::", "ADD32ri", "||", "Opc", "==", "X86", "::", "ADD32ri8", ")", "&&", "PI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", "==", "StackPtr", ")", "{", "Offset", "+=", "PI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "MBB", ".", "erase", "(", "PI", ")", ";", "if", "(", "!", "doMergeWithPrevious", ")", "MBBI", "=", "NI", ";", "}", "else", "if", "(", "(", "Opc", "==", "X86", "::", "SUB64ri32", "||", "Opc", "==", "X86", "::", "SUB64ri8", "||", "Opc", "==", "X86", "::", "SUB32ri", "||", "Opc", "==", "X86", "::", "SUB32ri8", ")", "&&", "PI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", "==", "StackPtr", ")", "{", "Offset", "-=", "PI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "MBB", ".", "erase", "(", "PI", ")", ";", "if", "(", "!", "doMergeWithPrevious", ")", "MBBI", "=", "NI", ";", "}", "return", "Offset", ";", "}", ""], "natrual_language": ["Check", "the", "instruction", "before/after", "the", "passed", "instruction", "."], "TS_V_token": ["X86", "0", "0", "0", "X86::ADD64ri32", "X86::ADD64ri8", "X86::ADD32ri", "X86::ADD32ri8", "0", "2", "X86::SUB64ri32", "X86::SUB64ri8", "X86::SUB32ri", "X86::SUB32ri8", "0", "2"], "File": "X86RegisterInfo41", "Func": "mergeSPUpdates", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 614, "Length": 242, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "thumb_force_lr_save", "(", "void", ")", "{", "return", "!", "cfun", "->", "machine", "->", "lr_save_eliminated", "&&", "(", "!", "crtl", "->", "is_leaf", "||", "thumb_far_jump_used_p", "(", ")", "||", "df_regs_ever_live_p", "(", "LR_REGNUM", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "current", "function", "needs", "to", "save/restore", "LR", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "thumb_force_lr_save", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 615, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "mmix_dbx_register_number", "(", "unsigned", "regno", ")", "{", "regno", "=", "MMIX_OUTPUT_REGNO", "(", "regno", ")", ";", "return", "regno", ">=", "224", "?", "(", "regno", "-", "224", ")", ":", "(", "regno", "+", "48", ")", ";", "}", ""], "natrual_language": ["DBX_REGISTER_NUMBER", "."], "TS_V_token": ["mmix", "224", "224", "48"], "File": "mmix", "Func": "mmix_dbx_register_number", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 616, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "IA64InstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "unsigned", "DestReg", ",", "int", "FrameIdx", ",", "const", "TargetRegisterClass", "*", "RC", ")", "const", "{", "DebugLoc", "DL", "=", "DebugLoc", "::", "getUnknownLoc", "(", ")", ";", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "if", "(", "RC", "==", "IA64", "::", "FPRegisterClass", ")", "{", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "IA64", "::", "LDF_FILL", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FrameIdx", ")", ";", "}", "else", "if", "(", "RC", "==", "IA64", "::", "GRRegisterClass", ")", "{", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "IA64", "::", "LD8", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FrameIdx", ")", ";", "}", "else", "if", "(", "RC", "==", "IA64", "::", "PRRegisterClass", ")", "{", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "IA64", "::", "LD8", ")", ",", "IA64", "::", "r2", ")", ".", "addFrameIndex", "(", "FrameIdx", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "IA64", "::", "CMPNE", ")", ",", "DestReg", ")", ".", "addReg", "(", "IA64", "::", "r2", ")", ".", "addReg", "(", "IA64", "::", "r0", ")", ";", "}", "else", "{", "assert", "(", "0", "&&", "\"sorry, I don't know how to load this sort of reg from the stack\\n\"", ")", ";", "}", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["IA64", "IA64", "IA64::FPRegisterClass", "IA64::LDF_FILL", "IA64::GRRegisterClass", "IA64::LD8", "IA64::PRRegisterClass", "IA64::LD8", "IA64::r2", "IA64::CMPNE", "IA64::r2", "IA64::r0", "0", "\"sorry, I don't know how to load this sort of reg from the stack\\n\""], "File": "IA64InstrInfo", "Func": "loadRegFromStackSlot", "Target": "IA64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 617, "Length": 200, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "mips_expand_builtin_bposge", "(", "enum", "mips_builtin_type", "builtin_type", ",", "rtx", "target", ")", "{", "rtx", "condition", ",", "cmp_result", ";", "int", "cmp_value", ";", "if", "(", "target", "==", "0", "||", "GET_MODE", "(", "target", ")", "!=", "SImode", ")", "target", "=", "gen_reg_rtx", "(", "SImode", ")", ";", "cmp_result", "=", "gen_rtx_REG", "(", "CCDSPmode", ",", "CCDSP_PO_REGNUM", ")", ";", "if", "(", "builtin_type", "==", "MIPS_BUILTIN_BPOSGE32", ")", "cmp_value", "=", "32", ";", "else", "gcc_assert", "(", "0", ")", ";", "condition", "=", "gen_rtx_GE", "(", "VOIDmode", ",", "cmp_result", ",", "GEN_INT", "(", "cmp_value", ")", ")", ";", "return", "mips_builtin_branch_and_move", "(", "condition", ",", "target", ",", "const1_rtx", ",", "const0_rtx", ")", ";", "}", ""], "natrual_language": ["Expand", "a", "bposge", "builtin", "of", "type", "BUILTIN_TYPE", ".", "TARGET", ",", "if", "nonnull", ",", "suggests", "a", "good", "place", "to", "put", "the", "boolean", "result", ".", "The", "sequence", "we", "want", "is", "li", "target", ",", "0", "bposge", "*", "label1", "j", "label2", "label1", ":", "li", "target", ",", "1", "label2", ":"], "TS_V_token": ["mips", "0", "32", "0"], "File": "mips", "Func": "mips_expand_builtin_bposge", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 618, "Length": 92, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_sim_init", "(", "struct", "mips_sim", "*", "state", ",", "state_t", "dfa_state", ")", "{", "state", "->", "issue_rate", "=", "mips_issue_rate", "(", ")", ";", "state", "->", "dfa_state", "=", "dfa_state", ";", "mips_sim_reset", "(", "state", ")", ";", "}", ""], "natrual_language": ["Initialize", "STATE", "before", "its", "first", "use", ".", "DFA_STATE", "points", "to", "an", "allocated", "but", "uninitialized", "DFA", "state", "."], "TS_V_token": ["mips"], "File": "mips3", "Func": "mips_sim_init", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 619, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "nds32_expand_prologue", "(", "void", ")", "{", "int", "fp_adjust", ";", "int", "sp_adjust", ";", "int", "en4_const", ";", "rtx", "Rb", ",", "Re", ";", "rtx", "fp_adjust_insn", ",", "sp_adjust_insn", ";", "nds32_compute_stack_frame", "(", ")", ";", "if", "(", "cfun", "->", "machine", "->", "va_args_size", "!=", "0", ")", "{", "Rb", "=", "gen_rtx_REG", "(", "SImode", ",", "cfun", "->", "machine", "->", "va_args_first_regno", ")", ";", "Re", "=", "gen_rtx_REG", "(", "SImode", ",", "cfun", "->", "machine", "->", "va_args_last_regno", ")", ";", "nds32_emit_stack_push_multiple", "(", "Rb", ",", "Re", ",", "GEN_INT", "(", "0", ")", ",", "true", ")", ";", "if", "(", "cfun", "->", "machine", "->", "va_args_area_padding_bytes", ")", "{", "sp_adjust", "=", "cfun", "->", "machine", "->", "va_args_area_padding_bytes", ";", "sp_adjust_insn", "=", "gen_addsi3", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "-", "1", "*", "sp_adjust", ")", ")", ";", "sp_adjust_insn", "=", "emit_insn", "(", "sp_adjust_insn", ")", ";", "RTX_FRAME_RELATED_P", "(", "sp_adjust_insn", ")", "=", "1", ";", "}", "}", "if", "(", "cfun", "->", "machine", "->", "naked_p", ")", "return", ";", "Rb", "=", "gen_rtx_REG", "(", "SImode", ",", "cfun", "->", "machine", "->", "callee_saved_first_gpr_regno", ")", ";", "Re", "=", "gen_rtx_REG", "(", "SImode", ",", "cfun", "->", "machine", "->", "callee_saved_last_gpr_regno", ")", ";", "en4_const", "=", "0", ";", "if", "(", "cfun", "->", "machine", "->", "fp_size", ")", "en4_const", "+=", "8", ";", "if", "(", "cfun", "->", "machine", "->", "gp_size", ")", "en4_const", "+=", "4", ";", "if", "(", "cfun", "->", "machine", "->", "lp_size", ")", "en4_const", "+=", "2", ";", "if", "(", "!", "(", "REGNO", "(", "Rb", ")", "==", "SP_REGNUM", "&&", "REGNO", "(", "Re", ")", "==", "SP_REGNUM", "&&", "en4_const", "==", "0", ")", ")", "{", "nds32_emit_stack_push_multiple", "(", "Rb", ",", "Re", ",", "GEN_INT", "(", "en4_const", ")", ",", "false", ")", ";", "}", "if", "(", "frame_pointer_needed", ")", "{", "fp_adjust", "=", "cfun", "->", "machine", "->", "fp_size", "+", "cfun", "->", "machine", "->", "gp_size", "+", "cfun", "->", "machine", "->", "lp_size", "+", "cfun", "->", "machine", "->", "callee_saved_gpr_regs_size", ";", "fp_adjust_insn", "=", "gen_addsi3", "(", "hard_frame_pointer_rtx", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "fp_adjust", ")", ")", ";", "fp_adjust_insn", "=", "emit_insn", "(", "fp_adjust_insn", ")", ";", "RTX_FRAME_RELATED_P", "(", "fp_adjust_insn", ")", "=", "1", ";", "}", "sp_adjust", "=", "cfun", "->", "machine", "->", "local_size", "+", "cfun", "->", "machine", "->", "out_args_size", "+", "cfun", "->", "machine", "->", "callee_saved_area_gpr_padding_bytes", ";", "sp_adjust", "=", "nds32_force_addi_stack_int", "(", "(", "-", "1", ")", "*", "sp_adjust", ")", ";", "if", "(", "sp_adjust", ")", "{", "sp_adjust_insn", "=", "gen_addsi3", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "-", "1", "*", "sp_adjust", ")", ")", ";", "sp_adjust_insn", "=", "emit_insn", "(", "sp_adjust_insn", ")", ";", "RTX_FRAME_RELATED_P", "(", "sp_adjust_insn", ")", "=", "1", ";", "}", "emit_insn", "(", "gen_blockage", "(", ")", ")", ";", "}", ""], "natrual_language": ["Function", "for", "normal", "multiple", "push", "prologue", "."], "TS_V_token": ["nds32", "0", "0", "1", "1", "0", "8", "4", "2", "0", "1", "1", "1", "1"], "File": "nds322", "Func": "nds32_expand_prologue", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 620, "Length": 382, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "VETargetLowering", "::", "getPICJumpTableRelocBase", "(", "SDValue", "Table", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "assert", "(", "isPositionIndependent", "(", ")", ")", ";", "SDLoc", "DL", "(", "Table", ")", ";", "Function", "*", "Function", "=", "&", "DAG", ".", "getMachineFunction", "(", ")", ".", "getFunction", "(", ")", ";", "assert", "(", "Function", "!=", "nullptr", ")", ";", "auto", "PtrTy", "=", "getPointerTy", "(", "DAG", ".", "getDataLayout", "(", ")", ",", "Function", "->", "getAddressSpace", "(", ")", ")", ";", "SDValue", "Op", "=", "DAG", ".", "getGlobalAddress", "(", "Function", ",", "DL", ",", "PtrTy", ")", ";", "SDValue", "HiLo", "=", "makeHiLoPair", "(", "Op", ",", "VEMCExpr", "::", "VK_VE_GOTOFF_HI32", ",", "VEMCExpr", "::", "VK_VE_GOTOFF_LO32", ",", "DAG", ")", ";", "SDValue", "GlobalBase", "=", "DAG", ".", "getNode", "(", "VEISD", "::", "GLOBAL_BASE_REG", ",", "DL", ",", "PtrTy", ")", ";", "return", "DAG", ".", "getNode", "(", "ISD", "::", "ADD", ",", "DL", ",", "PtrTy", ",", "GlobalBase", ",", "HiLo", ")", ";", "}", ""], "natrual_language": ["Returns", "relocation", "base", "for", "the", "given", "PIC", "jumptable", "."], "TS_V_token": ["VE", "VE", "VE", "VE", "VE", "VE", "VEISD::GLOBAL_BASE_REG", "ISD::ADD"], "File": "VEISelLowering11", "Func": "getPICJumpTableRelocBase", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 621, "Length": 134, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AnalyzeCallResult", "(", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "CCAssignFn", "Fn", ",", "const", "Type", "*", "RetTy", ",", "const", "char", "*", "Func", ")", "{", "PreAnalyzeCallResultForF128", "(", "Ins", ",", "RetTy", ",", "Func", ")", ";", "PreAnalyzeCallResultForVectorFloat", "(", "Ins", ",", "RetTy", ")", ";", "CCState", "::", "AnalyzeCallResult", "(", "Ins", ",", "Fn", ")", ";", "OriginalArgWasFloat", ".", "clear", "(", ")", ";", "OriginalArgWasF128", ".", "clear", "(", ")", ";", "OriginalArgWasFloatVector", ".", "clear", "(", ")", ";", "}", ""], "natrual_language": ["AnalyzeCallResult", "-", "Same", "as", "above", "except", "it", "'s", "specialized", "for", "calls", "which", "produce", "a", "single", "value", "."], "TS_V_token": ["Mips", "ISD::InputArg"], "File": "MipsCCState12", "Func": "AnalyzeCallResult", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 622, "Length": 71, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "rs6000_emit_vector_compare_inner", "(", "enum", "rtx_code", "code", ",", "rtx", "op0", ",", "rtx", "op1", ")", "{", "rtx", "mask", ";", "machine_mode", "mode", "=", "GET_MODE", "(", "op0", ")", ";", "switch", "(", "code", ")", "{", "default", ":", "break", ";", "case", "GE", ":", "if", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_VECTOR_INT", ")", "return", "NULL_RTX", ";", "case", "EQ", ":", "case", "GT", ":", "case", "GTU", ":", "case", "ORDERED", ":", "case", "UNORDERED", ":", "case", "UNEQ", ":", "case", "LTGT", ":", "mask", "=", "gen_reg_rtx", "(", "mode", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "mask", ",", "gen_rtx_fmt_ee", "(", "code", ",", "mode", ",", "op0", ",", "op1", ")", ")", ")", ";", "return", "mask", ";", "}", "return", "NULL_RTX", ";", "}", ""], "natrual_language": ["Return", "insn", "for", "VSX", "or", "Altivec", "comparisons", "."], "TS_V_token": ["rs6000"], "File": "rs60004", "Func": "rs6000_emit_vector_compare_inner", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 623, "Length": 107, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMAsmParser", "::", "MatchAndEmitInstruction", "(", "SMLoc", "IDLoc", ",", "unsigned", "&", "Opcode", ",", "OperandVector", "&", "Operands", ",", "MCStreamer", "&", "Out", ",", "uint64_t", "&", "ErrorInfo", ",", "bool", "MatchingInlineAsm", ")", "{", "MCInst", "Inst", ";", "unsigned", "MatchResult", ";", "bool", "PendConditionalInstruction", "=", "false", ";", "SmallVector", "<", "NearMissInfo", ",", "4", ">", "NearMisses", ";", "MatchResult", "=", "MatchInstruction", "(", "Operands", ",", "Inst", ",", "NearMisses", ",", "MatchingInlineAsm", ",", "PendConditionalInstruction", ",", "Out", ")", ";", "switch", "(", "MatchResult", ")", "{", "case", "Match_Success", ":", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Parsed as: \"", ";", "Inst", ".", "dump_pretty", "(", "dbgs", "(", ")", ",", "MII", ".", "getName", "(", "Inst", ".", "getOpcode", "(", ")", ")", ")", ";", "dbgs", "(", ")", "<<", "\"\\n\"", ")", ";", "if", "(", "validateInstruction", "(", "Inst", ",", "Operands", ")", ")", "{", "forwardITPosition", "(", ")", ";", "forwardVPTPosition", "(", ")", ";", "return", "true", ";", "}", "{", "bool", "wasInITBlock", "=", "inITBlock", "(", ")", ";", "while", "(", "processInstruction", "(", "Inst", ",", "Operands", ",", "Out", ")", ")", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Changed to: \"", ";", "Inst", ".", "dump_pretty", "(", "dbgs", "(", ")", ",", "MII", ".", "getName", "(", "Inst", ".", "getOpcode", "(", ")", ")", ")", ";", "dbgs", "(", ")", "<<", "\"\\n\"", ")", ";", "if", "(", "wasInITBlock", "&&", "hasV8Ops", "(", ")", "&&", "isThumb", "(", ")", "&&", "!", "isV8EligibleForIT", "(", "&", "Inst", ")", "&&", "!", "getTargetOptions", "(", ")", ".", "MCNoDeprecatedWarn", ")", "{", "Warning", "(", "IDLoc", ",", "\"deprecated instruction in IT block\"", ")", ";", "}", "}", "forwardITPosition", "(", ")", ";", "forwardVPTPosition", "(", ")", ";", "if", "(", "Inst", ".", "getOpcode", "(", ")", "==", "ARM", "::", "ITasm", ")", "return", "false", ";", "Inst", ".", "setLoc", "(", "IDLoc", ")", ";", "if", "(", "PendConditionalInstruction", ")", "{", "PendingConditionalInsts", ".", "push_back", "(", "Inst", ")", ";", "if", "(", "isITBlockFull", "(", ")", "||", "isITBlockTerminator", "(", "Inst", ")", ")", "flushPendingInstructions", "(", "Out", ")", ";", "}", "else", "{", "Out", ".", "emitInstruction", "(", "Inst", ",", "getSTI", "(", ")", ")", ";", "}", "return", "false", ";", "case", "Match_NearMisses", ":", "ReportNearMisses", "(", "NearMisses", ",", "IDLoc", ",", "Operands", ")", ";", "return", "true", ";", "case", "Match_MnemonicFail", ":", "{", "FeatureBitset", "FBS", "=", "ComputeAvailableFeatures", "(", "getSTI", "(", ")", ".", "getFeatureBits", "(", ")", ")", ";", "std", "::", "string", "Suggestion", "=", "ARMMnemonicSpellCheck", "(", "(", "(", "ARMOperand", "&", ")", "*", "Operands", "[", "0", "]", ")", ".", "getToken", "(", ")", ",", "FBS", ")", ";", "return", "Error", "(", "IDLoc", ",", "\"invalid instruction\"", "+", "Suggestion", ",", "(", "(", "ARMOperand", "&", ")", "*", "Operands", "[", "0", "]", ")", ".", "getLocRange", "(", ")", ")", ";", "}", "}", "llvm_unreachable", "(", "\"Implement any new match types added!\"", ")", ";", "}", ""], "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": ["ARM", "ARM", "4", "\"Parsed as: \"", "\"\\n\"", "\"Changed to: \"", "\"\\n\"", "\"deprecated instruction in IT block\"", "ARM::ITasm", "ARM", "ARM", "0", "\"invalid instruction\"", "ARM", "0", "\"Implement any new match types added!\""], "File": "ARMAsmParser127", "Func": "MatchAndEmitInstruction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 624, "Length": 388, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "SparcTargetLowering", "::", "LowerOperation", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "bool", "hasHardQuad", "=", "Subtarget", "->", "hasHardQuad", "(", ")", ";", "bool", "is64Bit", "=", "Subtarget", "->", "is64Bit", "(", ")", ";", "bool", "isV9", "=", "Subtarget", "->", "isV9", "(", ")", ";", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Should not custom lower this!\"", ")", ";", "case", "ISD", "::", "RETURNADDR", ":", "return", "LowerRETURNADDR", "(", "Op", ",", "DAG", ",", "*", "this", ")", ";", "case", "ISD", "::", "FRAMEADDR", ":", "return", "LowerFRAMEADDR", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "GlobalTLSAddress", ":", "return", "LowerGlobalTLSAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "GlobalAddress", ":", "return", "LowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BlockAddress", ":", "return", "LowerBlockAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "ConstantPool", ":", "return", "LowerConstantPool", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "FP_TO_SINT", ":", "return", "LowerFP_TO_SINT", "(", "Op", ",", "DAG", ",", "*", "this", ",", "hasHardQuad", ")", ";", "case", "ISD", "::", "SINT_TO_FP", ":", "return", "LowerSINT_TO_FP", "(", "Op", ",", "DAG", ",", "*", "this", ",", "hasHardQuad", ")", ";", "case", "ISD", "::", "BR_CC", ":", "return", "LowerBR_CC", "(", "Op", ",", "DAG", ",", "*", "this", ",", "hasHardQuad", ")", ";", "case", "ISD", "::", "SELECT_CC", ":", "return", "LowerSELECT_CC", "(", "Op", ",", "DAG", ",", "*", "this", ",", "hasHardQuad", ")", ";", "case", "ISD", "::", "VASTART", ":", "return", "LowerVASTART", "(", "Op", ",", "DAG", ",", "*", "this", ")", ";", "case", "ISD", "::", "VAARG", ":", "return", "LowerVAARG", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "DYNAMIC_STACKALLOC", ":", "return", "LowerDYNAMIC_STACKALLOC", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "LOAD", ":", "return", "LowerF128Load", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "STORE", ":", "return", "LowerF128Store", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "FADD", ":", "return", "LowerF128Op", "(", "Op", ",", "DAG", ",", "getLibcallName", "(", "RTLIB", "::", "ADD_F128", ")", ",", "2", ")", ";", "case", "ISD", "::", "FSUB", ":", "return", "LowerF128Op", "(", "Op", ",", "DAG", ",", "getLibcallName", "(", "RTLIB", "::", "SUB_F128", ")", ",", "2", ")", ";", "case", "ISD", "::", "FMUL", ":", "return", "LowerF128Op", "(", "Op", ",", "DAG", ",", "getLibcallName", "(", "RTLIB", "::", "MUL_F128", ")", ",", "2", ")", ";", "case", "ISD", "::", "FDIV", ":", "return", "LowerF128Op", "(", "Op", ",", "DAG", ",", "getLibcallName", "(", "RTLIB", "::", "DIV_F128", ")", ",", "2", ")", ";", "case", "ISD", "::", "FSQRT", ":", "return", "LowerF128Op", "(", "Op", ",", "DAG", ",", "getLibcallName", "(", "RTLIB", "::", "SQRT_F128", ")", ",", "1", ")", ";", "case", "ISD", "::", "FNEG", ":", "return", "LowerFNEG", "(", "Op", ",", "DAG", ",", "*", "this", ",", "is64Bit", ")", ";", "case", "ISD", "::", "FABS", ":", "return", "LowerFABS", "(", "Op", ",", "DAG", ",", "isV9", ")", ";", "case", "ISD", "::", "FP_EXTEND", ":", "return", "LowerF128_FPEXTEND", "(", "Op", ",", "DAG", ",", "*", "this", ")", ";", "case", "ISD", "::", "FP_ROUND", ":", "return", "LowerF128_FPROUND", "(", "Op", ",", "DAG", ",", "*", "this", ")", ";", "case", "ISD", "::", "ADDC", ":", "case", "ISD", "::", "ADDE", ":", "case", "ISD", "::", "SUBC", ":", "case", "ISD", "::", "SUBE", ":", "return", "LowerADDC_ADDE_SUBC_SUBE", "(", "Op", ",", "DAG", ")", ";", "}", "}", ""], "natrual_language": ["LowerOperation", "-", "Provide", "custom", "lowering", "hooks", "for", "some", "operations", "."], "TS_V_token": ["Sparc", "Sparc", "\"Should not custom lower this!\"", "ISD::RETURNADDR", "ISD::FRAMEADDR", "ISD::GlobalTLSAddress", "ISD::GlobalAddress", "ISD::BlockAddress", "ISD::ConstantPool", "ISD::FP_TO_SINT", "ISD::SINT_TO_FP", "ISD::BR_CC", "ISD::SELECT_CC", "ISD::VASTART", "ISD::VAARG", "ISD::DYNAMIC_STACKALLOC", "ISD::LOAD", "ISD::STORE", "ISD::FADD", "2", "ISD::FSUB", "2", "ISD::FMUL", "2", "ISD::FDIV", "2", "ISD::FSQRT", "1", "ISD::FNEG", "ISD::FABS", "ISD::FP_EXTEND", "ISD::FP_ROUND", "ISD::ADDC", "ISD::ADDE", "ISD::SUBC", "ISD::SUBE"], "File": "SparcISelLowering87", "Func": "LowerOperation", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 625, "Length": 483, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCFrameLowering", "::", "getTOCSaveOffset", "(", ")", "const", "{", "if", "(", "Subtarget", ".", "isAIXABI", "(", ")", ")", "report_fatal_error", "(", "\"TOC save is not implemented on AIX yet.\"", ")", ";", "return", "TOCSaveOffset", ";", "}", ""], "natrual_language": ["getTOCSaveOffset", "-", "Return", "the", "previous", "frame", "offset", "to", "save", "the", "TOC", "register", "\ufffd", "?", "64-bit", "SVR4", "ABI", "only", "."], "TS_V_token": ["PowerPC", "PPC", "\"TOC save is not implemented on AIX yet.\""], "File": "PPCFrameLowering65", "Func": "getTOCSaveOffset", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 626, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "VEInstrInfo", "::", "isStoreToStackSlot", "(", "const", "MachineInstr", "&", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "VE", "::", "STrii", "||", "MI", ".", "getOpcode", "(", ")", "==", "VE", "::", "STLrii", "||", "MI", ".", "getOpcode", "(", ")", "==", "VE", "::", "STUrii", "||", "MI", ".", "getOpcode", "(", ")", "==", "VE", "::", "STQrii", ")", "{", "if", "(", "MI", ".", "getOperand", "(", "0", ")", ".", "isFI", "(", ")", "&&", "MI", ".", "getOperand", "(", "1", ")", ".", "isImm", "(", ")", "&&", "MI", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", "==", "0", "&&", "MI", ".", "getOperand", "(", "2", ")", ".", "isImm", "(", ")", "&&", "MI", ".", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", "==", "0", ")", "{", "FrameIndex", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getIndex", "(", ")", ";", "return", "MI", ".", "getOperand", "(", "3", ")", ".", "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": ["VE", "VE", "VE::STrii", "VE::STLrii", "VE::STUrii", "VE::STQrii", "0", "1", "1", "0", "2", "2", "0", "0", "3", "0"], "File": "VEInstrInfo", "Func": "isStoreToStackSlot", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 627, "Length": 152, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64TargetLowering", "::", "isFPImmLegal", "(", "const", "APFloat", "&", "Imm", ",", "EVT", "VT", ")", "const", "{", "bool", "IsLegal", "=", "false", ";", "const", "APInt", "ImmInt", "=", "Imm", ".", "bitcastToAPInt", "(", ")", ";", "if", "(", "VT", "==", "MVT", "::", "f64", ")", "IsLegal", "=", "AArch64_AM", "::", "getFP64Imm", "(", "ImmInt", ")", "!=", "-", "1", "||", "Imm", ".", "isPosZero", "(", ")", ";", "else", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "IsLegal", "=", "AArch64_AM", "::", "getFP32Imm", "(", "ImmInt", ")", "!=", "-", "1", "||", "Imm", ".", "isPosZero", "(", ")", ";", "else", "if", "(", "VT", "==", "MVT", "::", "f16", "&&", "Subtarget", "->", "hasFullFP16", "(", ")", ")", "IsLegal", "=", "AArch64_AM", "::", "getFP16Imm", "(", "ImmInt", ")", "!=", "-", "1", "||", "Imm", ".", "isPosZero", "(", ")", ";", "if", "(", "!", "IsLegal", "&&", "(", "VT", "==", "MVT", "::", "f64", "||", "VT", "==", "MVT", "::", "f32", ")", ")", "IsLegal", "=", "AArch64_AM", "::", "isAnyMOVWMovAlias", "(", "ImmInt", ".", "getZExtValue", "(", ")", ",", "VT", ".", "getSizeInBits", "(", ")", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "(", "IsLegal", "?", "\"Legal \"", ":", "\"Illegal \"", ")", "<<", "VT", ".", "getEVTString", "(", ")", "<<", "\" imm value: \"", ";", "Imm", ".", "dump", "(", ")", ";", ")", ";", "return", "IsLegal", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "can", "instruction", "select", "the", "specified", "FP", "immediate", "natively", "."], "TS_V_token": ["AArch64", "AArch64", "MVT::f64", "AArch64_AM::getFP64Imm", "1", "MVT::f32", "AArch64_AM::getFP32Imm", "1", "MVT::f16", "AArch64_AM::getFP16Imm", "1", "MVT::f64", "MVT::f32", "AArch64_AM::isAnyMOVWMovAlias", "\"Legal \"", "\"Illegal \"", "\" imm value: \""], "File": "AArch64ISelLowering114", "Func": "isFPImmLegal", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 628, "Length": 188, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTTIImpl", "::", "enableAggressiveInterleaving", "(", "bool", "LoopHasReductions", ")", "{", "if", "(", "ST", "->", "getMcpu", "(", ")", "==", "PPC", "::", "MCPU_A2", ")", "return", "true", ";", "return", "LoopHasReductions", ";", "}", ""], "natrual_language": ["Do", "n't", "restrict", "interleaved", "unrolling", "to", "small", "loops", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::MCPU_A2"], "File": "PPCTargetTransformInfo15", "Func": "enableAggressiveInterleaving", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 629, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ix86_reassociation_width", "(", "unsigned", "int", ",", "machine_mode", "mode", ")", "{", "if", "(", "VECTOR_MODE_P", "(", "mode", ")", ")", "{", "if", "(", "TARGET_VECTOR_PARALLEL_EXECUTION", ")", "return", "2", ";", "else", "return", "1", ";", "}", "if", "(", "INTEGRAL_MODE_P", "(", "mode", ")", "&&", "TARGET_REASSOC_INT_TO_PARALLEL", ")", "return", "2", ";", "else", "if", "(", "FLOAT_MODE_P", "(", "mode", ")", "&&", "TARGET_REASSOC_FP_TO_PARALLEL", ")", "return", "2", ";", "else", "return", "1", ";", "}", ""], "natrual_language": ["Implementation", "of", "reassociation_width", "target", "hook", "used", "by", "reassoc", "phase", "to", "identify", "parallelism", "level", "in", "reassociated", "tree", ".", "Statements", "tree_code", "is", "passed", "in", "OPC", ".", "Arguments", "type", "is", "passed", "in", "MODE", ".", "Currently", "parallel", "reassociation", "is", "enabled", "for", "Atom", "processors", "only", "and", "we", "set", "reassociation", "width", "to", "be", "2", "because", "Atom", "may", "issue", "up", "to", "2", "instructions", "per", "cycle", ".", "Return", "value", "should", "be", "fixed", "if", "parallel", "reassociation", "is", "enabled", "for", "other", "processors", "."], "TS_V_token": ["i386", "2", "1", "2", "2", "1"], "File": "i3864", "Func": "ix86_reassociation_width", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 630, "Length": 61, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ARMBaseInstrInfo", "::", "getInstrLatency", "(", "const", "InstrItineraryData", "*", "ItinData", ",", "SDNode", "*", "Node", ")", "const", "{", "if", "(", "!", "Node", "->", "isMachineOpcode", "(", ")", ")", "return", "1", ";", "if", "(", "!", "ItinData", "||", "ItinData", "->", "isEmpty", "(", ")", ")", "return", "1", ";", "unsigned", "Opcode", "=", "Node", "->", "getMachineOpcode", "(", ")", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "ItinData", "->", "getStageLatency", "(", "get", "(", "Opcode", ")", ".", "getSchedClass", "(", ")", ")", ";", "case", "ARM", "::", "VLDMQIA", ":", "case", "ARM", "::", "VLDMQDB", ":", "case", "ARM", "::", "VSTMQIA", ":", "case", "ARM", "::", "VSTMQDB", ":", "return", "2", ";", "}", "}", ""], "natrual_language": ["Compute", "the", "instruction", "latency", "of", "a", "given", "instruction", "."], "TS_V_token": ["ARM", "ARM", "1", "1", "ARM::VLDMQIA", "ARM::VLDMQDB", "ARM::VSTMQIA", "ARM::VSTMQDB", "2"], "File": "ARMBaseInstrInfo11", "Func": "getInstrLatency", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 631, "Length": 98, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "A57PBQPConstraints", "::", "apply", "(", "PBQPRAGraph", "&", "G", ")", "{", "MachineFunction", "&", "MF", "=", "G", ".", "getMetadata", "(", ")", ".", "MF", ";", "const", "TargetRegisterInfo", "&", "TRI", "=", "*", "MF", ".", "getTarget", "(", ")", ".", "getSubtargetImpl", "(", ")", "->", "getRegisterInfo", "(", ")", ";", "(", "void", ")", "TRI", ";", "DEBUG", "(", "MF", ".", "dump", "(", ")", ")", ";", "for", "(", "MachineFunction", "::", "const_iterator", "mbbItr", "=", "MF", ".", "begin", "(", ")", ",", "mbbEnd", "=", "MF", ".", "end", "(", ")", ";", "mbbItr", "!=", "mbbEnd", ";", "++", "mbbItr", ")", "{", "const", "MachineBasicBlock", "*", "MBB", "=", "&", "*", "mbbItr", ";", "Chains", ".", "clear", "(", ")", ";", "for", "(", "MachineBasicBlock", "::", "const_iterator", "miItr", "=", "MBB", "->", "begin", "(", ")", ",", "miEnd", "=", "MBB", "->", "end", "(", ")", ";", "miItr", "!=", "miEnd", ";", "++", "miItr", ")", "{", "const", "MachineInstr", "*", "MI", "=", "&", "*", "miItr", ";", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "case", "AArch64", "::", "FMSUBSrrr", ":", "case", "AArch64", "::", "FMADDSrrr", ":", "case", "AArch64", "::", "FNMSUBSrrr", ":", "case", "AArch64", "::", "FNMADDSrrr", ":", "case", "AArch64", "::", "FMSUBDrrr", ":", "case", "AArch64", "::", "FMADDDrrr", ":", "case", "AArch64", "::", "FNMSUBDrrr", ":", "case", "AArch64", "::", "FNMADDDrrr", ":", "{", "unsigned", "Rd", "=", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "unsigned", "Ra", "=", "MI", "->", "getOperand", "(", "3", ")", ".", "getReg", "(", ")", ";", "if", "(", "addIntraChainConstraint", "(", "G", ",", "Rd", ",", "Ra", ")", ")", "addInterChainConstraint", "(", "G", ",", "Rd", ",", "Ra", ")", ";", "break", ";", "}", "case", "AArch64", "::", "FMLAv2f32", ":", "case", "AArch64", "::", "FMLSv2f32", ":", "{", "unsigned", "Rd", "=", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "addInterChainConstraint", "(", "G", ",", "Rd", ",", "Rd", ")", ";", "break", ";", "}", "default", ":", "for", "(", "auto", "r", ":", "Chains", ")", "{", "SmallVector", "<", "unsigned", ",", "8", ">", "toDel", ";", "if", "(", "MI", "->", "killsRegister", "(", "r", ")", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Killing chain \"", "<<", "PrintReg", "(", "r", ",", "&", "TRI", ")", "<<", "\" at \"", ";", "MI", "->", "print", "(", "dbgs", "(", ")", ")", ";", ")", ";", "toDel", ".", "push_back", "(", "r", ")", ";", "}", "while", "(", "!", "toDel", ".", "empty", "(", ")", ")", "{", "Chains", ".", "remove", "(", "toDel", ".", "back", "(", ")", ")", ";", "toDel", ".", "pop_back", "(", ")", ";", "}", "}", "}", "}", "}", "}", ""], "natrual_language": ["Apply", "the", "profile", "inference", "algorithm", "for", "a", "given", "function", "."], "TS_V_token": ["AArch64", "AArch64::FMSUBSrrr", "AArch64::FMADDSrrr", "AArch64::FNMSUBSrrr", "AArch64::FNMADDSrrr", "AArch64::FMSUBDrrr", "AArch64::FMADDDrrr", "AArch64::FNMSUBDrrr", "AArch64::FNMADDDrrr", "0", "3", "AArch64::FMLAv2f32", "AArch64::FMLSv2f32", "0", "8", "\"Killing chain \"", "\" at \""], "File": "AArch64PBQPRegAlloc6", "Func": "apply", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 632, "Length": 374, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64FrameLowering", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "DebugLoc", "DL", ";", "SmallVector", "<", "RegPairInfo", ",", "8", ">", "RegPairs", ";", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "computeCalleeSaveRegisterPairs", "(", "MF", ",", "CSI", ",", "TRI", ",", "RegPairs", ")", ";", "for", "(", "auto", "RPII", "=", "RegPairs", ".", "begin", "(", ")", ",", "RPIE", "=", "RegPairs", ".", "end", "(", ")", ";", "RPII", "!=", "RPIE", ";", "++", "RPII", ")", "{", "RegPairInfo", "RPI", "=", "*", "RPII", ";", "unsigned", "Reg1", "=", "RPI", ".", "Reg1", ";", "unsigned", "Reg2", "=", "RPI", ".", "Reg2", ";", "unsigned", "LdrOpc", ";", "if", "(", "RPI", ".", "IsGPR", ")", "LdrOpc", "=", "RPI", ".", "isPaired", "(", ")", "?", "AArch64", "::", "LDPXi", ":", "AArch64", "::", "LDRXui", ";", "else", "LdrOpc", "=", "RPI", ".", "isPaired", "(", ")", "?", "AArch64", "::", "LDPDi", ":", "AArch64", "::", "LDRDui", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"CSR restore: (\"", "<<", "printReg", "(", "Reg1", ",", "TRI", ")", ";", "if", "(", "RPI", ".", "isPaired", "(", ")", ")", "dbgs", "(", ")", "<<", "\", \"", "<<", "printReg", "(", "Reg2", ",", "TRI", ")", ";", "dbgs", "(", ")", "<<", "\") -> fi#(\"", "<<", "RPI", ".", "FrameIdx", ";", "if", "(", "RPI", ".", "isPaired", "(", ")", ")", "dbgs", "(", ")", "<<", "\", \"", "<<", "RPI", ".", "FrameIdx", "+", "1", ";", "dbgs", "(", ")", "<<", "\")\\n\"", ")", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "TII", ".", "get", "(", "LdrOpc", ")", ")", ";", "if", "(", "RPI", ".", "isPaired", "(", ")", ")", "{", "MIB", ".", "addReg", "(", "Reg2", ",", "getDefRegState", "(", "true", ")", ")", ";", "MIB", ".", "addMemOperand", "(", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "RPI", ".", "FrameIdx", "+", "1", ")", ",", "MachineMemOperand", "::", "MOLoad", ",", "8", ",", "8", ")", ")", ";", "}", "MIB", ".", "addReg", "(", "Reg1", ",", "getDefRegState", "(", "true", ")", ")", ".", "addReg", "(", "AArch64", "::", "SP", ")", ".", "addImm", "(", "RPI", ".", "Offset", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameDestroy", ")", ";", "MIB", ".", "addMemOperand", "(", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "RPI", ".", "FrameIdx", ")", ",", "MachineMemOperand", "::", "MOLoad", ",", "8", ",", "8", ")", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["restoreCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "restore", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "load", "instructions", "via", "loadRegToStackSlot", "(", ")", "."], "TS_V_token": ["AArch64", "AArch64", "8", "AArch64::LDPXi", "AArch64::LDRXui", "AArch64::LDPDi", "AArch64::LDRDui", "\"CSR restore: (\"", "\", \"", "\") -> fi#(\"", "\", \"", "1", "\")\\n\"", "1", "8", "8", "AArch64::SP", "8", "8"], "File": "AArch64FrameLowering28", "Func": "restoreCalleeSavedRegisters", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 633, "Length": 398, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86IndirectBranchTrackingPass", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "const", "X86Subtarget", "&", "SubTarget", "=", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "Metadata", "*", "isCFProtectionSupported", "=", "MF", ".", "getMMI", "(", ")", ".", "getModule", "(", ")", "->", "getModuleFlag", "(", "\"cf-protection-branch\"", ")", ";", "const", "X86TargetMachine", "*", "TM", "=", "static_cast", "<", "const", "X86TargetMachine", "*", ">", "(", "&", "MF", ".", "getTarget", "(", ")", ")", ";", "bool", "isJITwithCET", "=", "TM", "->", "isJIT", "(", ")", ";", "bool", "isJITwithCET", "=", "false", ";", "if", "(", "!", "isCFProtectionSupported", "&&", "!", "IndirectBranchTracking", "&&", "!", "isJITwithCET", ")", "return", "false", ";", "bool", "Changed", "=", "false", ";", "TII", "=", "SubTarget", ".", "getInstrInfo", "(", ")", ";", "EndbrOpcode", "=", "SubTarget", ".", "is64Bit", "(", ")", "?", "X86", "::", "ENDBR64", ":", "X86", "::", "ENDBR32", ";", "if", "(", "(", "TM", "->", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Large", "||", "MF", ".", "getFunction", "(", ")", ".", "hasAddressTaken", "(", ")", "||", "!", "MF", ".", "getFunction", "(", ")", ".", "hasLocalLinkage", "(", ")", ")", "&&", "!", "MF", ".", "getFunction", "(", ")", ".", "doesNoCfCheck", "(", ")", ")", "{", "auto", "MBB", "=", "MF", ".", "begin", "(", ")", ";", "Changed", "|=", "addENDBR", "(", "*", "MBB", ",", "MBB", "->", "begin", "(", ")", ")", ";", "}", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "{", "if", "(", "MBB", ".", "hasAddressTaken", "(", ")", ")", "Changed", "|=", "addENDBR", "(", "MBB", ",", "MBB", ".", "begin", "(", ")", ")", ";", "bool", "EHPadIBTNeeded", "=", "MBB", ".", "isEHPad", "(", ")", ";", "for", "(", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "begin", "(", ")", ";", "I", "!=", "MBB", ".", "end", "(", ")", ";", "++", "I", ")", "{", "if", "(", "I", "->", "isCall", "(", ")", "&&", "IsCallReturnTwice", "(", "I", "->", "getOperand", "(", "0", ")", ")", ")", "Changed", "|=", "addENDBR", "(", "MBB", ",", "std", "::", "next", "(", "I", ")", ")", ";", "if", "(", "EHPadIBTNeeded", "&&", "I", "->", "isEHLabel", "(", ")", ")", "{", "Changed", "|=", "addENDBR", "(", "MBB", ",", "std", "::", "next", "(", "I", ")", ")", ";", "EHPadIBTNeeded", "=", "false", ";", "}", "}", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "\"cf-protection-branch\"", "X86", "X86", "X86::ENDBR64", "X86::ENDBR32", "0"], "File": "X86IndirectBranchTracking1", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 634, "Length": 323, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_xcoff_asm_init_sections", "(", "void", ")", "{", "read_only_data_section", "=", "get_unnamed_section", "(", "0", ",", "rs6000_xcoff_output_readonly_section_asm_op", ",", "NULL", ")", ";", "private_data_section", "=", "get_unnamed_section", "(", "SECTION_WRITE", ",", "rs6000_xcoff_output_readwrite_section_asm_op", ",", "NULL", ")", ";", "read_only_private_data_section", "=", "get_unnamed_section", "(", "0", ",", "rs6000_xcoff_output_readonly_section_asm_op", ",", "\"\"", ")", ";", "tls_data_section", "=", "get_unnamed_section", "(", "SECTION_TLS", ",", "rs6000_xcoff_output_tls_section_asm_op", ",", "NULL", ")", ";", "tls_private_data_section", "=", "get_unnamed_section", "(", "SECTION_TLS", ",", "rs6000_xcoff_output_tls_section_asm_op", ",", "\"\"", ")", ";", "toc_section", "=", "get_unnamed_section", "(", "0", ",", "rs6000_xcoff_output_toc_section_asm_op", ",", "NULL", ")", ";", "readonly_data_section", "=", "read_only_data_section", ";", "}", ""], "natrual_language": ["Implement", "TARGET_ASM_INIT_SECTIONS", "."], "TS_V_token": ["rs6000", "0", "0", "\"\"", "\"\"", "0"], "File": "rs6000", "Func": "rs6000_xcoff_asm_init_sections", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 635, "Length": 78, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "OR1KOperand", "*", "CreateReg", "(", "unsigned", "RegNo", ",", "SMLoc", "S", ",", "SMLoc", "E", ")", "{", "OR1KOperand", "*", "Op", "=", "new", "OR1KOperand", "(", "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": ["OR1K", "OR1K", "OR1K", "OR1K"], "File": "OR1KAsmParser", "Func": "CreateReg", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 636, "Length": 49, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsTargetMachine", "::", "addInstSelector", "(", "PassManagerBase", "&", "PM", ",", "bool", "Fast", ")", "{", "PM", ".", "add", "(", "createMipsISelDag", "(", "*", "this", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["addInstSelector", "-", "This", "method", "should", "install", "an", "instruction", "selector", "pass", ",", "which", "converts", "from", "LLVM", "code", "to", "machine", "instructions", "."], "TS_V_token": ["Mips", "Mips", "Mips"], "File": "MipsTargetMachine62", "Func": "addInstSelector", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 637, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMTargetLowering", "::", "isFPImmLegal", "(", "const", "APFloat", "&", "Imm", ",", "EVT", "VT", ")", "const", "{", "if", "(", "!", "Subtarget", "->", "hasVFP3", "(", ")", ")", "return", "false", ";", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "return", "ARM_AM", "::", "getFP32Imm", "(", "Imm", ")", "!=", "-", "1", ";", "if", "(", "VT", "==", "MVT", "::", "f64", ")", "return", "ARM_AM", "::", "getFP64Imm", "(", "Imm", ")", "!=", "-", "1", ";", "return", "false", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "can", "instruction", "select", "the", "specified", "FP", "immediate", "natively", "."], "TS_V_token": ["ARM", "ARM", "MVT::f32", "ARM_AM::getFP32Imm", "1", "MVT::f64", "ARM_AM::getFP64Imm", "1"], "File": "ARMISelLowering (2)", "Func": "isFPImmLegal", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 638, "Length": 69, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Optional", "<", "ParamLoadedValue", ">", "AArch64InstrInfo", "::", "describeLoadedValue", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "case", "AArch64", "::", "MOVZWi", ":", "case", "AArch64", "::", "MOVZXi", ":", "if", "(", "!", "MI", ".", "getOperand", "(", "1", ")", ".", "isImm", "(", ")", ")", "return", "None", ";", "int64_t", "Immediate", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ";", "int", "Shift", "=", "MI", ".", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "return", "ParamLoadedValue", "(", "MachineOperand", "::", "CreateImm", "(", "Immediate", "<<", "Shift", ")", ",", "nullptr", ")", ";", "}", "return", "TargetInstrInfo", "::", "describeLoadedValue", "(", "MI", ")", ";", "}", ""], "natrual_language": ["Produce", "the", "expression", "describing", "the", "MI", "loading", "a", "value", "into", "the", "physical", "register", "Reg", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::MOVZWi", "AArch64::MOVZXi", "1", "1", "2"], "File": "AArch64InstrInfo124", "Func": "describeLoadedValue", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 639, "Length": 104, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "uses_TOC", "(", "void", ")", "{", "rtx_insn", "*", "insn", ";", "for", "(", "insn", "=", "get_insns", "(", ")", ";", "insn", ";", "insn", "=", "NEXT_INSN", "(", "insn", ")", ")", "if", "(", "INSN_P", "(", "insn", ")", ")", "{", "rtx", "pat", "=", "PATTERN", "(", "insn", ")", ";", "int", "i", ";", "if", "(", "GET_CODE", "(", "pat", ")", "==", "PARALLEL", ")", "for", "(", "i", "=", "0", ";", "i", "<", "XVECLEN", "(", "pat", ",", "0", ")", ";", "i", "++", ")", "{", "rtx", "sub", "=", "XVECEXP", "(", "pat", ",", "0", ",", "i", ")", ";", "if", "(", "GET_CODE", "(", "sub", ")", "==", "USE", ")", "{", "sub", "=", "XEXP", "(", "sub", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "sub", ")", "==", "UNSPEC", "&&", "XINT", "(", "sub", ",", "1", ")", "==", "UNSPEC_TOC", ")", "return", "1", ";", "}", "}", "}", "return", "0", ";", "}", ""], "natrual_language": ["This", "retuns", "nonzero", "if", "the", "current", "function", "uses", "the", "TOC", ".", "This", "is", "determined", "by", "the", "presence", "of", "(", "unspec", "...", "7", ")", ",", "which", "is", "generated", "by", "the", "various", "load_toc_", "*", "patterns", "."], "TS_V_token": ["rs6000", "0", "0", "0", "0", "1", "1", "0"], "File": "rs60004", "Func": "uses_TOC", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 640, "Length": 134, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "PPCSubtarget", "*", "PPCTargetMachine", "::", "getSubtargetImpl", "(", "const", "Function", "&", "F", ")", "const", "{", "Attribute", "CPUAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-cpu\"", ")", ";", "Attribute", "FSAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-features\"", ")", ";", "std", "::", "string", "CPU", "=", "CPUAttr", ".", "isValid", "(", ")", "?", "CPUAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetCPU", ";", "std", "::", "string", "FS", "=", "FSAttr", ".", "isValid", "(", ")", "?", "FSAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetFS", ";", "bool", "SoftFloat", "=", "F", ".", "getFnAttribute", "(", "\"use-soft-float\"", ")", ".", "getValueAsString", "(", ")", "==", "\"true\"", ";", "if", "(", "SoftFloat", ")", "FS", "+=", "FS", ".", "empty", "(", ")", "?", "\"-hard-float\"", ":", "\",-hard-float\"", ";", "auto", "&", "I", "=", "SubtargetMap", "[", "CPU", "+", "FS", "]", ";", "if", "(", "!", "I", ")", "{", "resetTargetOptions", "(", "F", ")", ";", "I", "=", "std", "::", "make_unique", "<", "PPCSubtarget", ">", "(", "TargetTriple", ",", "CPU", ",", "computeFSAdditions", "(", "FS", ",", "getOptLevel", "(", ")", ",", "getTargetTriple", "(", ")", ")", ",", "*", "this", ")", ";", "}", "return", "I", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "\"target-cpu\"", "\"target-features\"", "\"use-soft-float\"", "\"true\"", "\"-hard-float\"", "\",-hard-float\"", "PPC"], "File": "PPCTargetMachine5", "Func": "getSubtargetImpl", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 641, "Length": 173, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZMCAsmBackend", "::", "applyFixup", "(", "const", "MCFixup", "&", "Fixup", ",", "char", "*", "Data", ",", "unsigned", "DataSize", ",", "uint64_t", "Value", ",", "bool", "IsPCRel", ")", "const", "{", "MCFixupKind", "Kind", "=", "Fixup", ".", "getKind", "(", ")", ";", "unsigned", "Offset", "=", "Fixup", ".", "getOffset", "(", ")", ";", "unsigned", "BitSize", "=", "getFixupKindInfo", "(", "Kind", ")", ".", "TargetSize", ";", "unsigned", "Size", "=", "(", "BitSize", "+", "7", ")", "/", "8", ";", "assert", "(", "Offset", "+", "Size", "<=", "DataSize", "&&", "\"Invalid fixup offset!\"", ")", ";", "Value", "=", "extractBitsForFixup", "(", "Kind", ",", "Value", ")", ";", "if", "(", "BitSize", "<", "64", ")", "Value", "&=", "(", "(", "uint64_t", ")", "1", "<<", "BitSize", ")", "-", "1", ";", "unsigned", "ShiftValue", "=", "(", "Size", "*", "8", ")", "-", "8", ";", "for", "(", "unsigned", "I", "=", "0", ";", "I", "!=", "Size", ";", "++", "I", ")", "{", "Data", "[", "Offset", "+", "I", "]", "|=", "uint8_t", "(", "Value", ">>", "ShiftValue", ")", ";", "ShiftValue", "-=", "8", ";", "}", "}", ""], "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": ["SystemZ", "SystemZ", "7", "8", "\"Invalid fixup offset!\"", "64", "1", "1", "8", "8", "0", "8"], "File": "SystemZMCAsmBackend36", "Func": "applyFixup", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 642, "Length": 149, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"X86 insert wait instruction\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["X86", "\"X86 insert wait instruction\""], "File": "X86InsertWait", "Func": "getPassName", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 643, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLoweringBase", "::", "LegalizeTypeAction", "getPreferredVectorAction", "(", "EVT", "VT", ")", "const", "override", "{", "if", "(", "VT", ".", "getScalarSizeInBits", "(", ")", "%", "8", "==", "0", ")", "return", "TypeWidenVector", ";", "return", "TargetLoweringBase", "::", "getPreferredVectorAction", "(", "VT", ")", ";", "}", ""], "natrual_language": ["Customize", "the", "preferred", "legalization", "strategy", "for", "certain", "types", "."], "TS_V_token": ["PowerPC", "8", "0"], "File": "PPCISelLowering108", "Func": "getPreferredVectorAction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 644, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86IndirectBranchTrackingPass", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "const", "X86Subtarget", "&", "SubTarget", "=", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "if", "(", "!", "SubTarget", ".", "hasIBT", "(", ")", ")", "return", "false", ";", "Metadata", "*", "isCFProtectionSupported", "=", "MF", ".", "getMMI", "(", ")", ".", "getModule", "(", ")", "->", "getModuleFlag", "(", "\"cf-protection-branch\"", ")", ";", "if", "(", "!", "isCFProtectionSupported", "&&", "!", "IndirectBranchTracking", ")", "return", "false", ";", "bool", "Changed", "=", "false", ";", "TII", "=", "SubTarget", ".", "getInstrInfo", "(", ")", ";", "EndbrOpcode", "=", "SubTarget", ".", "is64Bit", "(", ")", "?", "X86", "::", "ENDBR64", ":", "X86", "::", "ENDBR32", ";", "if", "(", "MF", ".", "getFunction", "(", ")", ".", "hasAddressTaken", "(", ")", "||", "!", "MF", ".", "getFunction", "(", ")", ".", "hasLocalLinkage", "(", ")", ")", "{", "auto", "MBB", "=", "MF", ".", "begin", "(", ")", ";", "addENDBR", "(", "*", "MBB", ")", ";", "Changed", "=", "true", ";", "}", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "{", "if", "(", "MBB", ".", "hasAddressTaken", "(", ")", ")", "{", "addENDBR", "(", "MBB", ")", ";", "Changed", "=", "true", ";", "}", "}", "if", "(", "MachineJumpTableInfo", "*", "JTI", "=", "MF", ".", "getJumpTableInfo", "(", ")", ")", "{", "for", "(", "const", "auto", "&", "JT", ":", "JTI", "->", "getJumpTables", "(", ")", ")", "{", "for", "(", "auto", "*", "MBB", ":", "JT", ".", "MBBs", ")", "{", "assert", "(", "verifyIndirectJump", "(", "MBB", ")", "&&", "\"The MBB is not the destination of an indirect jump\"", ")", ";", "addENDBR", "(", "*", "MBB", ")", ";", "Changed", "=", "true", ";", "}", "}", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "\"cf-protection-branch\"", "X86::ENDBR64", "X86::ENDBR32", "\"The MBB is not the destination of an indirect jump\""], "File": "X86IndirectBranchTracking5", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 645, "Length": 233, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_assemble_visibility", "(", "tree", "decl", ",", "int", "vis", ")", "{", "if", "(", "TARGET_XCOFF", ")", "return", ";", "if", "(", "DEFAULT_ABI", "==", "ABI_AIX", "&&", "DOT_SYMBOLS", "&&", "TREE_CODE", "(", "decl", ")", "==", "FUNCTION_DECL", ")", "{", "static", "const", "char", "*", "const", "visibility_types", "[", "]", "=", "{", "NULL", ",", "\"protected\"", ",", "\"hidden\"", ",", "\"internal\"", "}", ";", "const", "char", "*", "name", ",", "*", "type", ";", "name", "=", "(", "(", "*", "targetm", ".", "strip_name_encoding", ")", "(", "IDENTIFIER_POINTER", "(", "DECL_ASSEMBLER_NAME", "(", "decl", ")", ")", ")", ")", ";", "type", "=", "visibility_types", "[", "vis", "]", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t.%s\\t%s\\n\"", ",", "type", ",", "name", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t.%s\\t.%s\\n\"", ",", "type", ",", "name", ")", ";", "}", "else", "default_assemble_visibility", "(", "decl", ",", "vis", ")", ";", "}", ""], "natrual_language": ["Emit", "an", "assembler", "directive", "to", "set", "symbol", "visibility", "for", "DECL", "to", "VISIBILITY_TYPE", "."], "TS_V_token": ["powerpcspe", "\"protected\"", "\"hidden\"", "\"internal\"", "\"\\t.%s\\t%s\\n\"", "\"\\t.%s\\t.%s\\n\""], "File": "powerpcspe", "Func": "rs6000_assemble_visibility", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 646, "Length": 119, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCRegisterInfo", "::", "hasReservedSpillSlot", "(", "const", "MachineFunction", "&", "MF", ",", "unsigned", "Reg", ",", "int", "&", "FrameIdx", ")", "const", "{", "const", "PPCSubtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ";", "if", "(", "Subtarget", ".", "isSVR4ABI", "(", ")", "&&", "PPC", "::", "CR2", "<=", "Reg", "&&", "Reg", "<=", "PPC", "::", "CR4", ")", "{", "if", "(", "TM", ".", "isPPC64", "(", ")", ")", "FrameIdx", "=", "0", ";", "else", "{", "const", "PPCFunctionInfo", "*", "FI", "=", "MF", ".", "getInfo", "<", "PPCFunctionInfo", ">", "(", ")", ";", "FrameIdx", "=", "FI", "->", "getCRSpillFrameIndex", "(", ")", ";", "}", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "target", "has", "reserved", "a", "spill", "slot", "in", "the", "stack", "frame", "of", "the", "given", "function", "for", "the", "specified", "register", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "PPC::CR2", "PPC::CR4", "PPC", "0", "PPC", "PPC"], "File": "PPCRegisterInfo (2)1", "Func": "hasReservedSpillSlot", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 647, "Length": 99, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "ARMSelectionDAGInfo", "::", "EmitTargetCodeForMemset", "(", "SelectionDAG", "&", "DAG", ",", "SDLoc", "dl", ",", "SDValue", "Chain", ",", "SDValue", "Dst", ",", "SDValue", "Src", ",", "SDValue", "Size", ",", "unsigned", "Align", ",", "bool", "isVolatile", ",", "MachinePointerInfo", "DstPtrInfo", ")", "const", "{", "return", "EmitSpecializedLibcall", "(", "DAG", ",", "dl", ",", "Chain", ",", "Dst", ",", "Src", ",", "Size", ",", "Align", ",", "RTLIB", "::", "MEMSET", ")", ";", "}", ""], "natrual_language": ["Emit", "target-specific", "code", "that", "performs", "a", "memset", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMSelectionDAGInfo16", "Func": "EmitTargetCodeForMemset", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 648, "Length": 58, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ix86_gimple_fold_builtin", "(", "gimple_stmt_iterator", "*", "gsi", ")", "{", "gimple", "*", "stmt", "=", "gsi_stmt", "(", "*", "gsi", ")", ";", "tree", "fndecl", "=", "gimple_call_fndecl", "(", "stmt", ")", ";", "gcc_checking_assert", "(", "fndecl", "&&", "DECL_BUILT_IN_CLASS", "(", "fndecl", ")", "==", "BUILT_IN_MD", ")", ";", "int", "n_args", "=", "gimple_call_num_args", "(", "stmt", ")", ";", "enum", "ix86_builtins", "fn_code", "=", "(", "enum", "ix86_builtins", ")", "DECL_FUNCTION_CODE", "(", "fndecl", ")", ";", "tree", "decl", "=", "NULL_TREE", ";", "tree", "arg0", ",", "arg1", ";", "switch", "(", "fn_code", ")", "{", "case", "IX86_BUILTIN_TZCNT32", ":", "decl", "=", "builtin_decl_implicit", "(", "BUILT_IN_CTZ", ")", ";", "goto", "fold_tzcnt_lzcnt", ";", "case", "IX86_BUILTIN_TZCNT64", ":", "decl", "=", "builtin_decl_implicit", "(", "BUILT_IN_CTZLL", ")", ";", "goto", "fold_tzcnt_lzcnt", ";", "case", "IX86_BUILTIN_LZCNT32", ":", "decl", "=", "builtin_decl_implicit", "(", "BUILT_IN_CLZ", ")", ";", "goto", "fold_tzcnt_lzcnt", ";", "case", "IX86_BUILTIN_LZCNT64", ":", "decl", "=", "builtin_decl_implicit", "(", "BUILT_IN_CLZLL", ")", ";", "goto", "fold_tzcnt_lzcnt", ";", "fold_tzcnt_lzcnt", ":", "gcc_assert", "(", "n_args", "==", "1", ")", ";", "arg0", "=", "gimple_call_arg", "(", "stmt", ",", "0", ")", ";", "if", "(", "TREE_CODE", "(", "arg0", ")", "==", "SSA_NAME", "&&", "decl", "&&", "gimple_call_lhs", "(", "stmt", ")", ")", "{", "int", "prec", "=", "TYPE_PRECISION", "(", "TREE_TYPE", "(", "arg0", ")", ")", ";", "if", "(", "!", "expr_not_equal_to", "(", "arg0", ",", "wi", "::", "zero", "(", "prec", ")", ")", ")", "return", "false", ";", "location_t", "loc", "=", "gimple_location", "(", "stmt", ")", ";", "gimple", "*", "g", "=", "gimple_build_call", "(", "decl", ",", "1", ",", "arg0", ")", ";", "gimple_set_location", "(", "g", ",", "loc", ")", ";", "tree", "lhs", "=", "make_ssa_name", "(", "integer_type_node", ")", ";", "gimple_call_set_lhs", "(", "g", ",", "lhs", ")", ";", "gsi_insert_before", "(", "gsi", ",", "g", ",", "GSI_SAME_STMT", ")", ";", "g", "=", "gimple_build_assign", "(", "gimple_call_lhs", "(", "stmt", ")", ",", "NOP_EXPR", ",", "lhs", ")", ";", "gimple_set_location", "(", "g", ",", "loc", ")", ";", "gsi_replace", "(", "gsi", ",", "g", ",", "false", ")", ";", "return", "true", ";", "}", "break", ";", "case", "IX86_BUILTIN_BZHI32", ":", "case", "IX86_BUILTIN_BZHI64", ":", "gcc_assert", "(", "n_args", "==", "2", ")", ";", "arg1", "=", "gimple_call_arg", "(", "stmt", ",", "1", ")", ";", "if", "(", "tree_fits_uhwi_p", "(", "arg1", ")", "&&", "gimple_call_lhs", "(", "stmt", ")", ")", "{", "unsigned", "int", "idx", "=", "tree_to_uhwi", "(", "arg1", ")", "&", "0xff", ";", "arg0", "=", "gimple_call_arg", "(", "stmt", ",", "0", ")", ";", "if", "(", "idx", "<", "TYPE_PRECISION", "(", "TREE_TYPE", "(", "arg0", ")", ")", ")", "break", ";", "location_t", "loc", "=", "gimple_location", "(", "stmt", ")", ";", "gimple", "*", "g", "=", "gimple_build_assign", "(", "gimple_call_lhs", "(", "stmt", ")", ",", "arg0", ")", ";", "gimple_set_location", "(", "g", ",", "loc", ")", ";", "gsi_replace", "(", "gsi", ",", "g", ",", "false", ")", ";", "return", "true", ";", "}", "break", ";", "case", "IX86_BUILTIN_PDEP32", ":", "case", "IX86_BUILTIN_PDEP64", ":", "case", "IX86_BUILTIN_PEXT32", ":", "case", "IX86_BUILTIN_PEXT64", ":", "gcc_assert", "(", "n_args", "==", "2", ")", ";", "arg1", "=", "gimple_call_arg", "(", "stmt", ",", "1", ")", ";", "if", "(", "integer_all_onesp", "(", "arg1", ")", "&&", "gimple_call_lhs", "(", "stmt", ")", ")", "{", "location_t", "loc", "=", "gimple_location", "(", "stmt", ")", ";", "arg0", "=", "gimple_call_arg", "(", "stmt", ",", "0", ")", ";", "gimple", "*", "g", "=", "gimple_build_assign", "(", "gimple_call_lhs", "(", "stmt", ")", ",", "arg0", ")", ";", "gimple_set_location", "(", "g", ",", "loc", ")", ";", "gsi_replace", "(", "gsi", ",", "g", ",", "false", ")", ";", "return", "true", ";", "}", "break", ";", "default", ":", "break", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Fold", "a", "MD", "builtin", "(", "use", "ix86_fold_builtin", "for", "folding", "into", "constant", ")", "in", "GIMPLE", "."], "TS_V_token": ["i386", "1", "0", "1", "2", "1", "0xff", "0", "2", "1", "0"], "File": "i3866", "Func": "ix86_gimple_fold_builtin", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 649, "Length": 494, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLoweringBase", "::", "AtomicRMWExpansionKind", "X86TargetLowering", "::", "shouldExpandAtomicRMWInIR", "(", "AtomicRMWInst", "*", "AI", ")", "const", "{", "unsigned", "NativeWidth", "=", "Subtarget", "->", "is64Bit", "(", ")", "?", "64", ":", "32", ";", "Type", "*", "MemType", "=", "AI", "->", "getType", "(", ")", ";", "if", "(", "MemType", "->", "getPrimitiveSizeInBits", "(", ")", ">", "NativeWidth", ")", "{", "return", "needsCmpXchgNb", "(", "MemType", ")", "?", "AtomicRMWExpansionKind", "::", "CmpXChg", ":", "AtomicRMWExpansionKind", "::", "None", ";", "}", "AtomicRMWInst", "::", "BinOp", "Op", "=", "AI", "->", "getOperation", "(", ")", ";", "switch", "(", "Op", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown atomic operation\"", ")", ";", "case", "AtomicRMWInst", "::", "Xchg", ":", "case", "AtomicRMWInst", "::", "Add", ":", "case", "AtomicRMWInst", "::", "Sub", ":", "return", "AtomicRMWExpansionKind", "::", "None", ";", "case", "AtomicRMWInst", "::", "Or", ":", "case", "AtomicRMWInst", "::", "And", ":", "case", "AtomicRMWInst", "::", "Xor", ":", "return", "!", "AI", "->", "use_empty", "(", ")", "?", "AtomicRMWExpansionKind", "::", "CmpXChg", ":", "AtomicRMWExpansionKind", "::", "None", ";", "case", "AtomicRMWInst", "::", "Nand", ":", "case", "AtomicRMWInst", "::", "Max", ":", "case", "AtomicRMWInst", "::", "Min", ":", "case", "AtomicRMWInst", "::", "UMax", ":", "case", "AtomicRMWInst", "::", "UMin", ":", "return", "AtomicRMWExpansionKind", "::", "CmpXChg", ";", "}", "}", ""], "natrual_language": ["Returns", "how", "the", "IR-level", "AtomicExpand", "pass", "should", "expand", "the", "given", "AtomicRMW", ",", "if", "at", "all", "."], "TS_V_token": ["X86", "X86", "64", "32", "\"Unknown atomic operation\""], "File": "X86ISelLowering173", "Func": "shouldExpandAtomicRMWInIR", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 650, "Length": 168, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "VEInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "Register", "SrcReg", ",", "bool", "isKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", "->", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", "->", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "*", "MF", ",", "FI", ")", ",", "MachineMemOperand", "::", "MOStore", ",", "MFI", ".", "getObjectSize", "(", "FI", ")", ",", "MFI", ".", "getObjectAlign", "(", "FI", ")", ")", ";", "if", "(", "RC", "==", "&", "VE", "::", "I64RegClass", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "VE", "::", "STrii", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", "else", "if", "(", "RC", "==", "&", "VE", "::", "I32RegClass", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "VE", "::", "STLrii", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", "else", "if", "(", "RC", "==", "&", "VE", "::", "F32RegClass", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "VE", "::", "STUrii", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", "else", "report_fatal_error", "(", "\"Can't store this register to stack slot\"", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["VE", "VE", "VE::I64RegClass", "VE::STrii", "0", "0", "VE::I32RegClass", "VE::STLrii", "0", "0", "VE::F32RegClass", "VE::STUrii", "0", "0", "\"Can't store this register to stack slot\""], "File": "VEInstrInfo1", "Func": "storeRegToStackSlot", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 651, "Length": 294, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsSEInstrInfo", "::", "getOppositeBranchOpc", "(", "unsigned", "Opc", ")", "const", "{", "switch", "(", "Opc", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Illegal opcode!\"", ")", ";", "case", "Mips", "::", "BEQ", ":", "return", "Mips", "::", "BNE", ";", "case", "Mips", "::", "BNE", ":", "return", "Mips", "::", "BEQ", ";", "case", "Mips", "::", "BGTZ", ":", "return", "Mips", "::", "BLEZ", ";", "case", "Mips", "::", "BGEZ", ":", "return", "Mips", "::", "BLTZ", ";", "case", "Mips", "::", "BLTZ", ":", "return", "Mips", "::", "BGEZ", ";", "case", "Mips", "::", "BLEZ", ":", "return", "Mips", "::", "BGTZ", ";", "case", "Mips", "::", "BC1T", ":", "return", "Mips", "::", "BC1F", ";", "case", "Mips", "::", "BC1F", ":", "return", "Mips", "::", "BC1T", ";", "}", "}", ""], "natrual_language": ["getOppositeBranchOpc", "-", "Return", "the", "inverse", "of", "the", "specified", "opcode", ",", "e.g", "."], "TS_V_token": ["Mips", "Mips", "\"Illegal opcode!\"", "Mips::BEQ", "Mips::BNE", "Mips::BNE", "Mips::BEQ", "Mips::BGTZ", "Mips::BLEZ", "Mips::BGEZ", "Mips::BLTZ", "Mips::BLTZ", "Mips::BGEZ", "Mips::BLEZ", "Mips::BGTZ", "Mips::BC1T", "Mips::BC1F", "Mips::BC1F", "Mips::BC1T"], "File": "MipsSEInstrInfo25", "Func": "getOppositeBranchOpc", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 652, "Length": 104, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMAsmBackend", "::", "applyFixup", "(", "const", "MCAssembler", "&", "Asm", ",", "const", "MCFixup", "&", "Fixup", ",", "const", "MCValue", "&", "Target", ",", "MutableArrayRef", "<", "char", ">", "Data", ",", "uint64_t", "Value", ",", "bool", "IsResolved", ")", "const", "{", "unsigned", "NumBytes", "=", "getFixupKindNumBytes", "(", "Fixup", ".", "getKind", "(", ")", ")", ";", "MCContext", "&", "Ctx", "=", "Asm", ".", "getContext", "(", ")", ";", "Value", "=", "adjustFixupValue", "(", "Asm", ",", "Fixup", ",", "Target", ",", "Value", ",", "IsResolved", ",", "Ctx", ")", ";", "if", "(", "!", "Value", ")", "return", ";", "unsigned", "Offset", "=", "Fixup", ".", "getOffset", "(", ")", ";", "assert", "(", "Offset", "+", "NumBytes", "<=", "Data", ".", "size", "(", ")", "&&", "\"Invalid fixup offset!\"", ")", ";", "unsigned", "FullSizeBytes", ";", "if", "(", "Endian", "==", "support", "::", "big", ")", "{", "FullSizeBytes", "=", "getFixupKindContainerSizeBytes", "(", "Fixup", ".", "getKind", "(", ")", ")", ";", "assert", "(", "(", "Offset", "+", "FullSizeBytes", ")", "<=", "Data", ".", "size", "(", ")", "&&", "\"Invalid fixup size!\"", ")", ";", "assert", "(", "NumBytes", "<=", "FullSizeBytes", "&&", "\"Invalid fixup size!\"", ")", ";", "}", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "NumBytes", ";", "++", "i", ")", "{", "unsigned", "Idx", "=", "Endian", "==", "support", "::", "little", "?", "i", ":", "(", "FullSizeBytes", "-", "1", "-", "i", ")", ";", "Data", "[", "Offset", "+", "Idx", "]", "|=", "uint8_t", "(", "(", "Value", ">>", "(", "i", "*", "8", ")", ")", "&", "0xff", ")", ";", "}", "}", ""], "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": ["ARM", "ARM", "\"Invalid fixup offset!\"", "support::big", "\"Invalid fixup size!\"", "\"Invalid fixup size!\"", "0", "support::little", "1", "8", "0xff"], "File": "ARMAsmBackend21", "Func": "applyFixup", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 653, "Length": 212, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "emit_save_or_restore_global_fp_regs", "(", "rtx", "base", ",", "int", "offset", ",", "sorr_act_t", "action", ")", "{", "if", "(", "offset", "<", "-", "4096", "||", "offset", "+", "sparc_n_global_fp_regs", "*", "4", ">", "4095", ")", "{", "base", "=", "emit_adjust_base_to_offset", "(", "base", ",", "offset", ")", ";", "offset", "=", "0", ";", "}", "offset", "=", "emit_save_or_restore_regs", "(", "0", ",", "8", ",", "base", ",", "offset", ",", "0", ",", "save_global_or_fp_reg_p", ",", "action", ",", "SORR_NONE", ")", ";", "emit_save_or_restore_regs", "(", "32", ",", "TARGET_V9", "?", "96", ":", "64", ",", "base", ",", "offset", ",", "0", ",", "save_global_or_fp_reg_p", ",", "action", ",", "SORR_NONE", ")", ";", "}", ""], "natrual_language": ["Emit", "code", "to", "save/restore", "call-saved", "global", "and", "FP", "registers", "."], "TS_V_token": ["sparc", "4096", "4", "4095", "0", "0", "8", "0", "32", "96", "64", "0"], "File": "sparc", "Func": "emit_save_or_restore_global_fp_regs", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 654, "Length": 89, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86InstrInfo", "::", "expandPostRAPseudo", "(", "MachineBasicBlock", "::", "iterator", "MI", ")", "const", "{", "bool", "HasAVX", "=", "TM", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "hasAVX", "(", ")", ";", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "case", "X86", "::", "SETB_C8r", ":", "return", "Expand2AddrUndef", "(", "MI", ",", "get", "(", "X86", "::", "SBB8rr", ")", ")", ";", "case", "X86", "::", "SETB_C16r", ":", "return", "Expand2AddrUndef", "(", "MI", ",", "get", "(", "X86", "::", "SBB16rr", ")", ")", ";", "case", "X86", "::", "SETB_C32r", ":", "return", "Expand2AddrUndef", "(", "MI", ",", "get", "(", "X86", "::", "SBB32rr", ")", ")", ";", "case", "X86", "::", "SETB_C64r", ":", "return", "Expand2AddrUndef", "(", "MI", ",", "get", "(", "X86", "::", "SBB64rr", ")", ")", ";", "case", "X86", "::", "V_SET0", ":", "case", "X86", "::", "FsFLD0SS", ":", "case", "X86", "::", "FsFLD0SD", ":", "return", "Expand2AddrUndef", "(", "MI", ",", "get", "(", "HasAVX", "?", "X86", "::", "VXORPSrr", ":", "X86", "::", "XORPSrr", ")", ")", ";", "case", "X86", "::", "AVX_SET0", ":", "assert", "(", "HasAVX", "&&", "\"AVX not supported\"", ")", ";", "return", "Expand2AddrUndef", "(", "MI", ",", "get", "(", "X86", "::", "VXORPSYrr", ")", ")", ";", "case", "X86", "::", "V_SETALLONES", ":", "return", "Expand2AddrUndef", "(", "MI", ",", "get", "(", "HasAVX", "?", "X86", "::", "VPCMPEQDrr", ":", "X86", "::", "PCMPEQDrr", ")", ")", ";", "case", "X86", "::", "AVX2_SETALLONES", ":", "return", "Expand2AddrUndef", "(", "MI", ",", "get", "(", "X86", "::", "VPCMPEQDYrr", ")", ")", ";", "case", "X86", "::", "TEST8ri_NOREX", ":", "MI", "->", "setDesc", "(", "get", "(", "X86", "::", "TEST8ri", ")", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["This", "function", "is", "called", "for", "all", "pseudo", "instructions", "that", "remain", "after", "register", "allocation", "."], "TS_V_token": ["X86", "X86", "X86", "X86::SETB_C8r", "X86::SBB8rr", "X86::SETB_C16r", "X86::SBB16rr", "X86::SETB_C32r", "X86::SBB32rr", "X86::SETB_C64r", "X86::SBB64rr", "X86::V_SET0", "X86::FsFLD0SS", "X86::FsFLD0SD", "X86::VXORPSrr", "X86::XORPSrr", "X86::AVX_SET0", "\"AVX not supported\"", "X86::VXORPSYrr", "X86::V_SETALLONES", "X86::VPCMPEQDrr", "X86::PCMPEQDrr", "X86::AVX2_SETALLONES", "X86::VPCMPEQDYrr", "X86::TEST8ri_NOREX", "X86::TEST8ri"], "File": "X86InstrInfo120", "Func": "expandPostRAPseudo", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 655, "Length": 235, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMInstrInfo", "::", "SubsumesPredicate", "(", "const", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Pred1", ",", "const", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Pred2", ")", "const", "{", "if", "(", "Pred1", ".", "size", "(", ")", ">", "2", "||", "Pred2", ".", "size", "(", ")", ">", "2", ")", "return", "false", ";", "ARMCC", "::", "CondCodes", "CC1", "=", "(", "ARMCC", "::", "CondCodes", ")", "Pred1", "[", "0", "]", ".", "getImm", "(", ")", ";", "ARMCC", "::", "CondCodes", "CC2", "=", "(", "ARMCC", "::", "CondCodes", ")", "Pred2", "[", "0", "]", ".", "getImm", "(", ")", ";", "if", "(", "CC1", "==", "CC2", ")", "return", "true", ";", "switch", "(", "CC1", ")", "{", "default", ":", "return", "false", ";", "case", "ARMCC", "::", "AL", ":", "return", "true", ";", "case", "ARMCC", "::", "HS", ":", "return", "CC2", "==", "ARMCC", "::", "HI", ";", "case", "ARMCC", "::", "LS", ":", "return", "CC2", "==", "ARMCC", "::", "LO", "||", "CC2", "==", "ARMCC", "::", "EQ", ";", "case", "ARMCC", "::", "GE", ":", "return", "CC2", "==", "ARMCC", "::", "GT", ";", "case", "ARMCC", "::", "LE", ":", "return", "CC2", "==", "ARMCC", "::", "LT", ";", "}", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "first", "specified", "predicate", "subsumes", "the", "second", ",", "e.g", "."], "TS_V_token": ["ARM", "ARM", "2", "2", "ARMCC::CondCodes", "ARMCC::CondCodes", "0", "ARMCC::CondCodes", "ARMCC::CondCodes", "0", "ARMCC::AL", "ARMCC::HS", "ARMCC::HI", "ARMCC::LS", "ARMCC::LO", "ARMCC::EQ", "ARMCC::GE", "ARMCC::GT", "ARMCC::LE", "ARMCC::LT"], "File": "ARMInstrInfo14", "Func": "SubsumesPredicate", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 656, "Length": 165, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "X86TargetMachine", "::", "X86TargetMachine", "(", "const", "Target", "&", "T", ",", "const", "std", "::", "string", "&", "TT", ",", "const", "std", "::", "string", "&", "FS", ",", "bool", "is64Bit", ")", ":", "LLVMTargetMachine", "(", "T", ",", "TT", ")", ",", "Subtarget", "(", "TT", ",", "FS", ",", "is64Bit", ")", ",", "FrameLowering", "(", "*", "this", ",", "Subtarget", ")", ",", "ELFWriterInfo", "(", "is64Bit", ",", "true", ")", "{", "DefRelocModel", "=", "getRelocationModel", "(", ")", ";", "if", "(", "getRelocationModel", "(", ")", "==", "Reloc", "::", "Default", ")", "{", "if", "(", "Subtarget", ".", "isTargetDarwin", "(", ")", ")", "{", "if", "(", "Subtarget", ".", "is64Bit", "(", ")", ")", "setRelocationModel", "(", "Reloc", "::", "PIC_", ")", ";", "else", "setRelocationModel", "(", "Reloc", "::", "DynamicNoPIC", ")", ";", "}", "else", "if", "(", "Subtarget", ".", "isTargetWin64", "(", ")", ")", "setRelocationModel", "(", "Reloc", "::", "PIC_", ")", ";", "else", "setRelocationModel", "(", "Reloc", "::", "Static", ")", ";", "}", "assert", "(", "getRelocationModel", "(", ")", "!=", "Reloc", "::", "Default", "&&", "\"Relocation mode not picked\"", ")", ";", "if", "(", "getRelocationModel", "(", ")", "==", "Reloc", "::", "DynamicNoPIC", ")", "{", "if", "(", "is64Bit", ")", "setRelocationModel", "(", "Reloc", "::", "PIC_", ")", ";", "else", "if", "(", "!", "Subtarget", ".", "isTargetDarwin", "(", ")", ")", "setRelocationModel", "(", "Reloc", "::", "Static", ")", ";", "}", "if", "(", "getRelocationModel", "(", ")", "==", "Reloc", "::", "Static", "&&", "Subtarget", ".", "isTargetDarwin", "(", ")", "&&", "is64Bit", ")", "setRelocationModel", "(", "Reloc", "::", "PIC_", ")", ";", "if", "(", "getRelocationModel", "(", ")", "==", "Reloc", "::", "Static", ")", "{", "Subtarget", ".", "setPICStyle", "(", "PICStyles", "::", "None", ")", ";", "}", "else", "if", "(", "Subtarget", ".", "is64Bit", "(", ")", ")", "{", "Subtarget", ".", "setPICStyle", "(", "PICStyles", "::", "RIPRel", ")", ";", "}", "else", "if", "(", "Subtarget", ".", "isTargetCygMing", "(", ")", ")", "{", "Subtarget", ".", "setPICStyle", "(", "PICStyles", "::", "None", ")", ";", "}", "else", "if", "(", "Subtarget", ".", "isTargetDarwin", "(", ")", ")", "{", "if", "(", "getRelocationModel", "(", ")", "==", "Reloc", "::", "PIC_", ")", "Subtarget", ".", "setPICStyle", "(", "PICStyles", "::", "StubPIC", ")", ";", "else", "{", "assert", "(", "getRelocationModel", "(", ")", "==", "Reloc", "::", "DynamicNoPIC", ")", ";", "Subtarget", ".", "setPICStyle", "(", "PICStyles", "::", "StubDynamicNoPIC", ")", ";", "}", "}", "else", "if", "(", "Subtarget", ".", "isTargetELF", "(", ")", ")", "{", "Subtarget", ".", "setPICStyle", "(", "PICStyles", "::", "GOT", ")", ";", "}", "if", "(", "Subtarget", ".", "getPICStyle", "(", ")", "==", "PICStyles", "::", "None", ")", "setRelocationModel", "(", "Reloc", "::", "Static", ")", ";", "}", ""], "natrual_language": ["Create", "an", "X86", "target", "."], "TS_V_token": ["X86", "X86", "X86", "\"Relocation mode not picked\""], "File": "X86TargetMachine41", "Func": "X86TargetMachine", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 657, "Length": 365, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Sched", "::", "Preference", "ARMTargetLowering", "::", "getSchedulingPreference", "(", "SDNode", "*", "N", ")", "const", "{", "unsigned", "NumVals", "=", "N", "->", "getNumValues", "(", ")", ";", "if", "(", "!", "NumVals", ")", "return", "Sched", "::", "RegPressure", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "NumVals", ";", "++", "i", ")", "{", "EVT", "VT", "=", "N", "->", "getValueType", "(", "i", ")", ";", "if", "(", "VT", "==", "MVT", "::", "Glue", "||", "VT", "==", "MVT", "::", "Other", ")", "continue", ";", "if", "(", "VT", ".", "isFloatingPoint", "(", ")", "||", "VT", ".", "isVector", "(", ")", ")", "return", "Sched", "::", "ILP", ";", "}", "if", "(", "!", "N", "->", "isMachineOpcode", "(", ")", ")", "return", "Sched", "::", "RegPressure", ";", "const", "TargetInstrInfo", "*", "TII", "=", "getTargetMachine", "(", ")", ".", "getInstrInfo", "(", ")", ";", "const", "MCInstrDesc", "&", "MCID", "=", "TII", "->", "get", "(", "N", "->", "getMachineOpcode", "(", ")", ")", ";", "if", "(", "MCID", ".", "getNumDefs", "(", ")", "==", "0", ")", "return", "Sched", "::", "RegPressure", ";", "if", "(", "!", "Itins", "->", "isEmpty", "(", ")", "&&", "Itins", "->", "getOperandCycle", "(", "MCID", ".", "getSchedClass", "(", ")", ",", "0", ")", ">", "2", ")", "return", "Sched", "::", "ILP", ";", "return", "Sched", "::", "RegPressure", ";", "}", ""], "natrual_language": ["Some", "scheduler", ",", "e.g", "."], "TS_V_token": ["ARM", "ARM", "0", "MVT::Glue", "MVT::Other", "0", "0", "2"], "File": "ARMISelLowering (2)", "Func": "getSchedulingPreference", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 658, "Length": 186, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "encodeInstruction", "(", "const", "MCInst", "&", "MI", ",", "raw_ostream", "&", "OS", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "override", "{", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "const", "MCInstrDesc", "&", "Desc", "=", "MCII", ".", "get", "(", "Opcode", ")", ";", "uint64_t", "Bits", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "unsigned", "Size", "=", "Desc", ".", "getSize", "(", ")", ";", "switch", "(", "Size", ")", "{", "case", "0", ":", "break", ";", "case", "4", ":", "if", "(", "IsLittleEndian", ")", "{", "support", "::", "endian", "::", "Writer", "<", "support", "::", "little", ">", "(", "OS", ")", ".", "write", "<", "uint32_t", ">", "(", "Bits", ")", ";", "}", "else", "{", "support", "::", "endian", "::", "Writer", "<", "support", "::", "big", ">", "(", "OS", ")", ".", "write", "<", "uint32_t", ">", "(", "Bits", ")", ";", "}", "break", ";", "case", "8", ":", "if", "(", "IsLittleEndian", ")", "{", "uint64_t", "Swapped", "=", "(", "Bits", "<<", "32", ")", "|", "(", "Bits", ">>", "32", ")", ";", "support", "::", "endian", "::", "Writer", "<", "support", "::", "little", ">", "(", "OS", ")", ".", "write", "<", "uint64_t", ">", "(", "Swapped", ")", ";", "}", "else", "{", "support", "::", "endian", "::", "Writer", "<", "support", "::", "big", ">", "(", "OS", ")", ".", "write", "<", "uint64_t", ">", "(", "Bits", ")", ";", "}", "break", ";", "default", ":", "llvm_unreachable", "(", "\"Invalid instruction size\"", ")", ";", "}", "++", "MCNumEmitted", ";", "}", ""], "natrual_language": ["Encode", "the", "given", "Inst", "to", "bytes", "and", "append", "to", "CB", "."], "TS_V_token": ["PowerPC", "0", "4", "support::endian", "support::little", "support::endian", "support::big", "8", "32", "32", "support::endian", "support::little", "support::endian", "support::big", "\"Invalid instruction size\""], "File": "PPCMCCodeEmitter39", "Func": "encodeInstruction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 659, "Length": 222, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ia64_function_arg_advance", "(", "cumulative_args_t", "cum_v", ",", "const", "function_arg_info", "&", "arg", ")", "{", "CUMULATIVE_ARGS", "*", "cum", "=", "get_cumulative_args", "(", "cum_v", ")", ";", "int", "words", "=", "ia64_function_arg_words", "(", "arg", ".", "type", ",", "arg", ".", "mode", ")", ";", "int", "offset", "=", "ia64_function_arg_offset", "(", "cum", ",", "arg", ".", "type", ",", "words", ")", ";", "machine_mode", "hfa_mode", "=", "VOIDmode", ";", "if", "(", "cum", "->", "words", ">=", "MAX_ARGUMENT_SLOTS", ")", "{", "cum", "->", "words", "+=", "words", "+", "offset", ";", "return", ";", "}", "cum", "->", "atypes", "[", "cum", "->", "words", "]", "=", "ia64_arg_type", "(", "arg", ".", "mode", ")", ";", "cum", "->", "words", "+=", "words", "+", "offset", ";", "if", "(", "TARGET_ABI_OPEN_VMS", ")", "{", "cum", "->", "int_regs", "=", "cum", "->", "words", ";", "cum", "->", "fp_regs", "=", "cum", "->", "words", ";", "return", ";", "}", "if", "(", "arg", ".", "type", ")", "hfa_mode", "=", "hfa_element_mode", "(", "arg", ".", "type", ",", "0", ")", ";", "if", "(", "hfa_mode", "!=", "VOIDmode", "&&", "(", "!", "cum", "->", "prototype", "||", "arg", ".", "named", ")", ")", "{", "int", "fp_regs", "=", "cum", "->", "fp_regs", ";", "int", "int_regs", "=", "cum", "->", "words", "-", "words", ";", "int", "hfa_size", "=", "GET_MODE_SIZE", "(", "hfa_mode", ")", ";", "int", "byte_size", ";", "int", "args_byte_size", ";", "byte_size", "=", "arg", ".", "promoted_size_in_bytes", "(", ")", ";", "args_byte_size", "=", "int_regs", "*", "UNITS_PER_WORD", ";", "offset", "=", "0", ";", "for", "(", ";", "(", "offset", "<", "byte_size", "&&", "fp_regs", "<", "MAX_ARGUMENT_SLOTS", "&&", "args_byte_size", "<", "(", "MAX_ARGUMENT_SLOTS", "*", "UNITS_PER_WORD", ")", ")", ";", ")", "{", "offset", "+=", "hfa_size", ";", "args_byte_size", "+=", "hfa_size", ";", "fp_regs", "++", ";", "}", "cum", "->", "fp_regs", "=", "fp_regs", ";", "}", "else", "if", "(", "arg", ".", "mode", "==", "TFmode", "||", "arg", ".", "mode", "==", "TCmode", "||", "!", "FLOAT_MODE_P", "(", "arg", ".", "mode", ")", "||", "cum", "->", "fp_regs", "==", "MAX_ARGUMENT_SLOTS", ")", "cum", "->", "int_regs", "=", "cum", "->", "words", ";", "else", "if", "(", "cum", "->", "prototype", ")", "{", "if", "(", "!", "arg", ".", "named", ")", "cum", "->", "int_regs", "=", "cum", "->", "words", ";", "else", "cum", "->", "fp_regs", "+=", "(", "GET_MODE_CLASS", "(", "arg", ".", "mode", ")", "==", "MODE_COMPLEX_FLOAT", "?", "2", ":", "1", ")", ";", "}", "else", "{", "cum", "->", "fp_regs", "+=", "(", "GET_MODE_CLASS", "(", "arg", ".", "mode", ")", "==", "MODE_COMPLEX_FLOAT", "?", "2", ":", "1", ")", ";", "cum", "->", "int_regs", "=", "cum", "->", "words", ";", "}", "}", ""], "natrual_language": ["Update", "CUM", "to", "point", "after", "this", "argument", ".", "This", "is", "patterned", "after", "ia64_function_arg", "."], "TS_V_token": ["ia64", "0", "0", "2", "1", "2", "1"], "File": "ia64", "Func": "ia64_function_arg_advance", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 660, "Length": 360, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "SparcRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "G1", ")", ";", "if", "(", "ReserveAppRegisters", ")", "{", "Reserved", ".", "set", "(", "SP", "::", "G2", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "G3", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "G4", ")", ";", "}", "if", "(", "!", "Subtarget", ".", "is64Bit", "(", ")", ")", "Reserved", ".", "set", "(", "SP", "::", "G5", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "O6", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "I6", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "I7", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "G0", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "G6", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "G7", ")", ";", "if", "(", "!", "Subtarget", ".", "isV9", "(", ")", ")", "{", "for", "(", "unsigned", "n", "=", "0", ";", "n", "!=", "16", ";", "++", "n", ")", "{", "for", "(", "MCRegAliasIterator", "AI", "(", "SP", "::", "D16", "+", "n", ",", "this", ",", "true", ")", ";", "AI", ".", "isValid", "(", ")", ";", "++", "AI", ")", "Reserved", ".", "set", "(", "*", "AI", ")", ";", "}", "}", "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": ["Sparc", "Sparc", "SP::G1", "SP::G2", "SP::G3", "SP::G4", "SP::G5", "SP::O6", "SP::I6", "SP::I7", "SP::G0", "SP::G6", "SP::G7", "0", "16", "SP::D16"], "File": "SparcRegisterInfo", "Func": "getReservedRegs", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 661, "Length": 198, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "emit_unlikely_jump", "(", "rtx", "cond", ",", "rtx", "label", ")", "{", "rtx", "x", "=", "gen_rtx_IF_THEN_ELSE", "(", "VOIDmode", ",", "cond", ",", "label", ",", "pc_rtx", ")", ";", "rtx_insn", "*", "insn", "=", "emit_jump_insn", "(", "gen_rtx_SET", "(", "pc_rtx", ",", "x", ")", ")", ";", "add_reg_br_prob_note", "(", "insn", ",", "profile_probability", "::", "very_unlikely", "(", ")", ")", ";", "}", ""], "natrual_language": ["Mark", "the", "previous", "jump", "instruction", "as", "unlikely", "."], "TS_V_token": ["powerpcspe"], "File": "powerpcspe", "Func": "emit_unlikely_jump", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 662, "Length": 51, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "nds32_group_insns", "(", "rtx", "sethi", ")", "{", "df_ref", "def_record", ",", "use_record", ";", "df_link", "*", "link", ";", "rtx_insn", "*", "use_insn", "=", "NULL", ";", "rtx", "group_id", ";", "def_record", "=", "DF_INSN_DEFS", "(", "sethi", ")", ";", "for", "(", "link", "=", "DF_REF_CHAIN", "(", "def_record", ")", ";", "link", ";", "link", "=", "link", "->", "next", ")", "{", "if", "(", "!", "DF_REF_INSN_INFO", "(", "link", "->", "ref", ")", ")", "continue", ";", "use_insn", "=", "DF_REF_INSN", "(", "link", "->", "ref", ")", ";", "if", "(", "!", "dominated_by_p", "(", "CDI_DOMINATORS", ",", "BLOCK_FOR_INSN", "(", "use_insn", ")", ",", "BLOCK_FOR_INSN", "(", "sethi", ")", ")", ")", "return", ";", "use_record", "=", "DF_INSN_USES", "(", "use_insn", ")", ";", "if", "(", "DF_REF_CHAIN", "(", "use_record", ")", "&&", "DF_REF_CHAIN", "(", "use_record", ")", "->", "next", ")", "return", ";", "if", "(", "!", "active_insn_p", "(", "use_insn", ")", ")", "return", ";", "if", "(", "!", "(", "recog_memoized", "(", "use_insn", ")", "==", "CODE_FOR_lo_sum", "||", "nds32_symbol_load_store_p", "(", "use_insn", ")", "||", "(", "nds32_reg_base_load_store_p", "(", "use_insn", ")", "&&", "!", "nds32_sp_base_or_plus_load_store_p", "(", "use_insn", ")", ")", ")", ")", "return", ";", "}", "group_id", "=", "GEN_INT", "(", "relax_group_id", ")", ";", "emit_insn_before", "(", "gen_relax_group", "(", "group_id", ")", ",", "sethi", ")", ";", "for", "(", "link", "=", "DF_REF_CHAIN", "(", "def_record", ")", ";", "link", ";", "link", "=", "link", "->", "next", ")", "{", "if", "(", "!", "DF_REF_INSN_INFO", "(", "link", "->", "ref", ")", ")", "continue", ";", "use_insn", "=", "DF_REF_INSN", "(", "link", "->", "ref", ")", ";", "if", "(", "active_insn_p", "(", "use_insn", ")", ")", "emit_insn_before", "(", "gen_relax_group", "(", "group_id", ")", ",", "use_insn", ")", ";", "}", "relax_group_id", "++", ";", "}", ""], "natrual_language": ["Group", "the", "relax", "candidates", "with", "group", "id", "."], "TS_V_token": ["nds32"], "File": "nds32-relax-opt2", "Func": "nds32_group_insns", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 663, "Length": 236, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "r10k_insert_cache_barriers", "(", "void", ")", "{", "int", "*", "rev_post_order", ";", "unsigned", "int", "i", ",", "n", ";", "basic_block", "bb", ";", "sbitmap", "protected_bbs", ";", "rtx_insn", "*", "insn", ",", "*", "end", ";", "rtx", "unprotected_region", ";", "if", "(", "TARGET_MIPS16", ")", "{", "sorry", "(", "\"%qs does not support MIPS16 code\"", ",", "\"-mr10k-cache-barrier\"", ")", ";", "return", ";", "}", "calculate_dominance_info", "(", "CDI_DOMINATORS", ")", ";", "protected_bbs", "=", "sbitmap_alloc", "(", "last_basic_block_for_fn", "(", "cfun", ")", ")", ";", "bitmap_clear", "(", "protected_bbs", ")", ";", "rev_post_order", "=", "XNEWVEC", "(", "int", ",", "last_basic_block_for_fn", "(", "cfun", ")", ")", ";", "n", "=", "pre_and_rev_post_order_compute", "(", "NULL", ",", "rev_post_order", ",", "false", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "n", ";", "i", "++", ")", "{", "bb", "=", "BASIC_BLOCK_FOR_FN", "(", "cfun", ",", "rev_post_order", "[", "i", "]", ")", ";", "if", "(", "r10k_protected_bb_p", "(", "bb", ",", "protected_bbs", ")", ")", "unprotected_region", "=", "NULL_RTX", ";", "else", "unprotected_region", "=", "pc_rtx", ";", "end", "=", "NEXT_INSN", "(", "BB_END", "(", "bb", ")", ")", ";", "for", "(", "insn", "=", "BB_HEAD", "(", "bb", ")", ";", "insn", "!=", "end", ";", "insn", "=", "NEXT_INSN", "(", "insn", ")", ")", "{", "if", "(", "unprotected_region", "&&", "USEFUL_INSN_P", "(", "insn", ")", ")", "{", "if", "(", "recog_memoized", "(", "insn", ")", "==", "CODE_FOR_mips_cache", ")", "unprotected_region", "=", "NULL_RTX", ";", "else", "{", "if", "(", "unprotected_region", "==", "pc_rtx", ")", "unprotected_region", "=", "insn", ";", "if", "(", "r10k_needs_protection_p", "(", "insn", ")", ")", "{", "emit_insn_before", "(", "gen_r10k_cache_barrier", "(", ")", ",", "as_a", "<", "rtx_insn", "*", ">", "(", "unprotected_region", ")", ")", ";", "unprotected_region", "=", "NULL_RTX", ";", "}", "}", "}", "if", "(", "CALL_P", "(", "insn", ")", ")", "unprotected_region", "=", "pc_rtx", ";", "}", "if", "(", "unprotected_region", "==", "NULL_RTX", ")", "bitmap_set_bit", "(", "protected_bbs", ",", "bb", "->", "index", ")", ";", "}", "XDELETEVEC", "(", "rev_post_order", ")", ";", "sbitmap_free", "(", "protected_bbs", ")", ";", "free_dominance_info", "(", "CDI_DOMINATORS", ")", ";", "}", ""], "natrual_language": ["Implement", "-mr10k-cache-barrier=", "for", "the", "current", "function", "."], "TS_V_token": ["mips", "\"%qs does not support MIPS16 code\"", "\"-mr10k-cache-barrier\"", "0"], "File": "mips", "Func": "r10k_insert_cache_barriers", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 664, "Length": 276, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMAsmBackend", "::", "applyFixup", "(", "const", "MCFixup", "&", "Fixup", ",", "char", "*", "Data", ",", "unsigned", "DataSize", ",", "uint64_t", "Value", ",", "bool", "IsPCRel", ")", "const", "{", "unsigned", "NumBytes", "=", "getFixupKindNumBytes", "(", "Fixup", ".", "getKind", "(", ")", ")", ";", "Value", "=", "adjustFixupValue", "(", "Fixup", ",", "Value", ",", "IsPCRel", ",", "nullptr", ",", "IsLittleEndian", ",", "true", ")", ";", "if", "(", "!", "Value", ")", "return", ";", "unsigned", "Offset", "=", "Fixup", ".", "getOffset", "(", ")", ";", "assert", "(", "Offset", "+", "NumBytes", "<=", "DataSize", "&&", "\"Invalid fixup offset!\"", ")", ";", "unsigned", "FullSizeBytes", ";", "if", "(", "!", "IsLittleEndian", ")", "{", "FullSizeBytes", "=", "getFixupKindContainerSizeBytes", "(", "Fixup", ".", "getKind", "(", ")", ")", ";", "assert", "(", "(", "Offset", "+", "FullSizeBytes", ")", "<=", "DataSize", "&&", "\"Invalid fixup size!\"", ")", ";", "assert", "(", "NumBytes", "<=", "FullSizeBytes", "&&", "\"Invalid fixup size!\"", ")", ";", "}", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "NumBytes", ";", "++", "i", ")", "{", "unsigned", "Idx", "=", "IsLittleEndian", "?", "i", ":", "(", "FullSizeBytes", "-", "1", "-", "i", ")", ";", "Data", "[", "Offset", "+", "Idx", "]", "|=", "uint8_t", "(", "(", "Value", ">>", "(", "i", "*", "8", ")", ")", "&", "0xff", ")", ";", "}", "}", ""], "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": ["ARM", "ARM", "\"Invalid fixup offset!\"", "\"Invalid fixup size!\"", "\"Invalid fixup size!\"", "0", "1", "8", "0xff"], "File": "ARMAsmBackend (2)1", "Func": "applyFixup", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 665, "Length": 178, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "CAHPMCCodeEmitter", "::", "encodeInstruction", "(", "const", "MCInst", "&", "MI", ",", "raw_ostream", "&", "OS", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "const", "MCInstrDesc", "&", "Desc", "=", "MCII", ".", "get", "(", "MI", ".", "getOpcode", "(", ")", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "CAHP", "::", "PseudoHLT", ")", "{", "expandHlt", "(", "MI", ",", "OS", ",", "Fixups", ",", "STI", ")", ";", "MCNumEmitted", "+=", "2", ";", "return", ";", "}", "unsigned", "Size", "=", "Desc", ".", "getSize", "(", ")", ";", "switch", "(", "Size", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unhandled encodeInstruction length!\"", ")", ";", "case", "2", ":", "{", "uint16_t", "Bits", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "support", "::", "endian", "::", "write", "<", "uint16_t", ">", "(", "OS", ",", "Bits", ",", "support", "::", "little", ")", ";", "break", ";", "}", "case", "3", ":", "{", "uint32_t", "Bits", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "support", "::", "endian", "::", "write", "<", "uint16_t", ">", "(", "OS", ",", "Bits", "&", "0xffff", ",", "support", "::", "little", ")", ";", "OS", ".", "write", "(", "(", "Bits", ">>", "16", ")", "&", "0xff", ")", ";", "break", ";", "}", "}", "++", "MCNumEmitted", ";", "}", ""], "natrual_language": ["Encode", "the", "given", "Inst", "to", "bytes", "and", "append", "to", "CB", "."], "TS_V_token": ["CAHP", "CAHP", "CAHP::PseudoHLT", "2", "\"Unhandled encodeInstruction length!\"", "2", "support::endian", "support::little", "3", "support::endian", "0xffff", "support::little", "16", "0xff"], "File": "CAHPMCCodeEmitter", "Func": "encodeInstruction", "Target": "CAHP", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 666, "Length": 190, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCIncomingValueHandler", "::", "assignValueToAddress", "(", "Register", "ValVReg", ",", "Register", "Addr", ",", "LLT", "MemTy", ",", "MachinePointerInfo", "&", "MPO", ",", "CCValAssign", "&", "VA", ")", "{", "auto", "BuildLoad", "=", "[", "]", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "MachinePointerInfo", "&", "MPO", ",", "LLT", "MemTy", ",", "const", "DstOp", "&", "Res", ",", "Register", "Addr", ")", "{", "MachineFunction", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "auto", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MPO", ",", "MachineMemOperand", "::", "MOLoad", ",", "MemTy", ",", "inferAlignFromPtrInfo", "(", "MF", ",", "MPO", ")", ")", ";", "return", "MIRBuilder", ".", "buildLoad", "(", "Res", ",", "Addr", ",", "*", "MMO", ")", ";", "}", ";", "BuildLoad", "(", "MIRBuilder", ",", "MPO", ",", "MemTy", ",", "ValVReg", ",", "Addr", ")", ";", "}", ""], "natrual_language": ["An", "overload", "which", "takes", "an", "ArgInfo", "if", "additional", "information", "about", "the", "arg", "is", "needed", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCCallLowering", "Func": "assignValueToAddress", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 667, "Length": 112, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "string", "getDataLayout", "(", ")", "const", "{", "const", "char", "*", "p", ";", "if", "(", "is64Bit", "(", ")", ")", "p", "=", "\"e-p:64:64-s:64-f64:64:64-i64:64:64-f80:128:128-n8:16:32:64\"", ";", "else", "if", "(", "isTargetDarwin", "(", ")", ")", "p", "=", "\"e-p:32:32-f64:32:64-i64:32:64-f80:128:128-n8:16:32\"", ";", "else", "if", "(", "isTargetMingw", "(", ")", "||", "isTargetWindows", "(", ")", ")", "p", "=", "\"e-p:32:32-f64:64:64-i64:64:64-f80:32:32-n8:16:32\"", ";", "else", "p", "=", "\"e-p:32:32-f64:32:64-i64:32:64-f80:32:32-n8:16:32\"", ";", "return", "std", "::", "string", "(", "p", ")", ";", "}", ""], "natrual_language": ["Return", "the", "DataLayout", "associated", "with", "the", "module", "this", "SCEV", "instance", "is", "operating", "on", "."], "TS_V_token": ["X86", "\"e-p:64:64-s:64-f64:64:64-i64:64:64-f80:128:128-n8:16:32:64\"", "\"e-p:32:32-f64:32:64-i64:32:64-f80:128:128-n8:16:32\"", "\"e-p:32:32-f64:64:64-i64:64:64-f80:32:32-n8:16:32\"", "\"e-p:32:32-f64:32:64-i64:32:64-f80:32:32-n8:16:32\""], "File": "X86Subtarget110", "Func": "getDataLayout", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 668, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "IA64RegisterInfo", "::", "getDwarfRegNum", "(", "unsigned", "RegNum", ",", "bool", "isEH", ")", "const", "{", "assert", "(", "0", "&&", "\"What is the dwarf register number\"", ")", ";", "return", "-", "1", ";", "}", ""], "natrual_language": ["Map", "a", "target", "register", "to", "an", "equivalent", "dwarf", "register", "number", "."], "TS_V_token": ["IA64", "IA64", "0", "\"What is the dwarf register number\"", "1"], "File": "IA64RegisterInfo", "Func": "getDwarfRegNum", "Target": "IA64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 669, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "*", "SparcTargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MachineInstr", "&", "MI", ",", "MachineBasicBlock", "*", "BB", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown SELECT_CC!\"", ")", ";", "case", "SP", "::", "SELECT_CC_Int_ICC", ":", "case", "SP", "::", "SELECT_CC_FP_ICC", ":", "case", "SP", "::", "SELECT_CC_DFP_ICC", ":", "case", "SP", "::", "SELECT_CC_QFP_ICC", ":", "return", "expandSelectCC", "(", "MI", ",", "BB", ",", "SP", "::", "BCOND", ")", ";", "case", "SP", "::", "SELECT_CC_Int_FCC", ":", "case", "SP", "::", "SELECT_CC_FP_FCC", ":", "case", "SP", "::", "SELECT_CC_DFP_FCC", ":", "case", "SP", "::", "SELECT_CC_QFP_FCC", ":", "return", "expandSelectCC", "(", "MI", ",", "BB", ",", "SP", "::", "FBCOND", ")", ";", "case", "SP", "::", "EH_SJLJ_SETJMP32ri", ":", "case", "SP", "::", "EH_SJLJ_SETJMP32rr", ":", "return", "emitEHSjLjSetJmp", "(", "MI", ",", "BB", ")", ";", "case", "SP", "::", "EH_SJLJ_LONGJMP32rr", ":", "case", "SP", "::", "EH_SJLJ_LONGJMP32ri", ":", "return", "emitEHSjLjLongJmp", "(", "MI", ",", "BB", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'usesCustomInserter", "'", "flag", "."], "TS_V_token": ["Sparc", "Sparc", "\"Unknown SELECT_CC!\"", "SP::SELECT_CC_Int_ICC", "SP::SELECT_CC_FP_ICC", "SP::SELECT_CC_DFP_ICC", "SP::SELECT_CC_QFP_ICC", "SP::BCOND", "SP::SELECT_CC_Int_FCC", "SP::SELECT_CC_FP_FCC", "SP::SELECT_CC_DFP_FCC", "SP::SELECT_CC_QFP_FCC", "SP::FBCOND", "SP::EH_SJLJ_SETJMP32ri", "SP::EH_SJLJ_SETJMP32rr", "SP::EH_SJLJ_LONGJMP32rr", "SP::EH_SJLJ_LONGJMP32ri"], "File": "SparcISelLowering14", "Func": "EmitInstrWithCustomInserter", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 670, "Length": 134, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMBaseRegisterInfo", "::", "materializeFrameBaseRegister", "(", "MachineBasicBlock", "*", "MBB", ",", "unsigned", "BaseReg", ",", "int", "FrameIdx", ",", "int64_t", "Offset", ")", "const", "{", "ARMFunctionInfo", "*", "AFI", "=", "MBB", "->", "getParent", "(", ")", "->", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "unsigned", "ADDriOpc", "=", "!", "AFI", "->", "isThumbFunction", "(", ")", "?", "ARM", "::", "ADDri", ":", "(", "AFI", "->", "isThumb1OnlyFunction", "(", ")", "?", "ARM", "::", "tADDframe", ":", "ARM", "::", "t2ADDri", ")", ";", "MachineBasicBlock", "::", "iterator", "Ins", "=", "MBB", "->", "begin", "(", ")", ";", "DebugLoc", "DL", ";", "if", "(", "Ins", "!=", "MBB", "->", "end", "(", ")", ")", "DL", "=", "Ins", "->", "getDebugLoc", "(", ")", ";", "const", "MachineFunction", "&", "MF", "=", "*", "MBB", "->", "getParent", "(", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "MBB", "->", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "const", "MCInstrDesc", "&", "MCID", "=", "TII", ".", "get", "(", "ADDriOpc", ")", ";", "MRI", ".", "constrainRegClass", "(", "BaseReg", ",", "TII", ".", "getRegClass", "(", "MCID", ",", "0", ",", "this", ",", "MF", ")", ")", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "*", "MBB", ",", "Ins", ",", "DL", ",", "MCID", ",", "BaseReg", ")", ".", "addFrameIndex", "(", "FrameIdx", ")", ".", "addImm", "(", "Offset", ")", ";", "if", "(", "!", "AFI", "->", "isThumb1OnlyFunction", "(", ")", ")", "AddDefaultCC", "(", "AddDefaultPred", "(", "MIB", ")", ")", ";", "}", ""], "natrual_language": ["Insert", "defining", "instruction", "(", "s", ")", "for", "a", "pointer", "to", "FrameIdx", "before", "insertion", "point", "I", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM::ADDri", "ARM::tADDframe", "ARM::t2ADDri", "0"], "File": "ARMBaseRegisterInfo13", "Func": "materializeFrameBaseRegister", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 671, "Length": 218, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "push_csky_minipool_fix", "(", "rtx_insn", "*", "insn", ",", "HOST_WIDE_INT", "address", ",", "rtx", "*", "loc", ",", "machine_mode", "mode", ",", "rtx", "value", ")", "{", ":", "CSKY_LRW16_RANGE", ")", "(", "GET_MODE_SIZE", "(", "(", "mode", ")", ")", ">=", "4", "?", "GET_MODE_SIZE", "(", "(", "mode", ")", ")", ":", "4", ")", "Mfix", "*", "fix", "=", "(", "Mfix", "*", ")", "obstack_alloc", "(", "&", "minipool_obstack", ",", "sizeof", "(", "*", "fix", ")", ")", ";", "fix", "->", "insn", "=", "insn", ";", "fix", "->", "address", "=", "address", ";", "fix", "->", "loc", "=", "loc", ";", "fix", "->", "mode", "=", "mode", ";", "fix", "->", "fix_size", "=", "CSKY_MINIPOOL_FIX_SIZE", "(", "mode", ")", ";", "fix", "->", "value", "=", "value", ";", "fix", "->", "forwards", "=", "CSKY_CONSTANT_POOL_RANGE", ";", "fix", "->", "backwards", "=", "0", ";", "fix", "->", "minipool", "=", "NULL", ";", "gcc_assert", "(", "fix", "->", "forwards", "||", "fix", "->", "backwards", ")", ";", "if", "(", "dump_file", ")", "{", "fprintf", "(", "dump_file", ",", "\";; %smode fixup for i%d; addr %lu, range (%ld,%ld): \"", ",", "GET_MODE_NAME", "(", "mode", ")", ",", "INSN_UID", "(", "insn", ")", ",", "(", "unsigned", "long", ")", "address", ",", "-", "1", "*", "(", "long", ")", "fix", "->", "backwards", ",", "(", "long", ")", "fix", "->", "forwards", ")", ";", "print_csky_value", "(", "dump_file", ",", "fix", "->", "value", ")", ";", "fprintf", "(", "dump_file", ",", "\"\\n\"", ")", ";", "}", "fix", "->", "next", "=", "NULL", ";", "if", "(", "minipool_fix_head", "!=", "NULL", ")", "minipool_fix_tail", "->", "next", "=", "fix", ";", "else", "minipool_fix_head", "=", "fix", ";", "minipool_fix_tail", "=", "fix", ";", "}", ""], "natrual_language": ["Record", "INSN", ",", "which", "will", "need", "fixing", "up", "to", "load", "a", "value", "from", "the", "minipool", ".", "ADDRESS", "is", "the", "offset", "of", "the", "insn", "since", "the", "start", "of", "the", "function", ";", "LOC", "is", "a", "pointer", "to", "the", "part", "of", "the", "insn", "which", "requires", "fixing", ";", "VALUE", "is", "the", "constant", "that", "must", "be", "loaded", ",", "which", "is", "of", "type", "MODE", "."], "TS_V_token": ["csky", "4", "4", "0", "\";; %smode fixup for i%d; addr %lu, range (%ld,%ld): \"", "1", "\"\\n\""], "File": "csky", "Func": "push_csky_minipool_fix", "Target": "csky", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 672, "Length": 222, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "swap_const_vector_halves", "(", "rtx", "op", ")", "{", "int", "i", ";", "enum", "rtx_code", "code", "=", "GET_CODE", "(", "op", ")", ";", "if", "(", "GET_CODE", "(", "op", ")", "==", "CONST_VECTOR", ")", "{", "int", "half_units", "=", "GET_MODE_NUNITS", "(", "GET_MODE", "(", "op", ")", ")", "/", "2", ";", "for", "(", "i", "=", "0", ";", "i", "<", "half_units", ";", "++", "i", ")", "{", "rtx", "temp", "=", "CONST_VECTOR_ELT", "(", "op", ",", "i", ")", ";", "CONST_VECTOR_ELT", "(", "op", ",", "i", ")", "=", "CONST_VECTOR_ELT", "(", "op", ",", "i", "+", "half_units", ")", ";", "CONST_VECTOR_ELT", "(", "op", ",", "i", "+", "half_units", ")", "=", "temp", ";", "}", "}", "else", "{", "int", "j", ";", "const", "char", "*", "fmt", "=", "GET_RTX_FORMAT", "(", "code", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "GET_RTX_LENGTH", "(", "code", ")", ";", "++", "i", ")", "if", "(", "fmt", "[", "i", "]", "==", "'e'", "||", "fmt", "[", "i", "]", "==", "'u'", ")", "swap_const_vector_halves", "(", "XEXP", "(", "op", ",", "i", ")", ")", ";", "else", "if", "(", "fmt", "[", "i", "]", "==", "'E'", ")", "for", "(", "j", "=", "0", ";", "j", "<", "XVECLEN", "(", "op", ",", "i", ")", ";", "++", "j", ")", "swap_const_vector_halves", "(", "XVECEXP", "(", "op", ",", "i", ",", "j", ")", ")", ";", "}", "}", ""], "natrual_language": ["OP", "is", "either", "a", "CONST_VECTOR", "or", "an", "expression", "containing", "one", ".", "Swap", "the", "first", "half", "of", "the", "vector", "with", "the", "second", "in", "the", "first", "case", ".", "Recurse", "to", "find", "it", "in", "the", "second", "."], "TS_V_token": ["rs6000", "2", "0", "0", "0"], "File": "rs60004", "Func": "swap_const_vector_halves", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 673, "Length": 195, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "X86TargetLowering", "::", "LowerAsmOutputForConstraint", "(", "SDValue", "&", "Chain", ",", "SDValue", "&", "Flag", ",", "SDLoc", "DL", ",", "const", "AsmOperandInfo", "&", "OpInfo", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "X86", "::", "CondCode", "Cond", "=", "parseConstraintCode", "(", "OpInfo", ".", "ConstraintCode", ")", ";", "if", "(", "Cond", "==", "X86", "::", "COND_INVALID", ")", "return", "SDValue", "(", ")", ";", "if", "(", "OpInfo", ".", "ConstraintVT", ".", "isVector", "(", ")", "||", "!", "OpInfo", ".", "ConstraintVT", ".", "isInteger", "(", ")", "||", "OpInfo", ".", "ConstraintVT", ".", "getSizeInBits", "(", ")", "<", "8", ")", "report_fatal_error", "(", "\"Flag output operand is of invalid type\"", ")", ";", "if", "(", "Flag", ".", "getNode", "(", ")", ")", "{", "Flag", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "X86", "::", "EFLAGS", ",", "MVT", "::", "i32", ",", "Flag", ")", ";", "Chain", "=", "Flag", ".", "getValue", "(", "1", ")", ";", "}", "else", "Flag", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "X86", "::", "EFLAGS", ",", "MVT", "::", "i32", ")", ";", "SDValue", "CC", "=", "getSETCC", "(", "Cond", ",", "Flag", ",", "DL", ",", "DAG", ")", ";", "SDValue", "Result", "=", "DAG", ".", "getNode", "(", "ISD", "::", "ZERO_EXTEND", ",", "DL", ",", "OpInfo", ".", "ConstraintVT", ",", "CC", ")", ";", "return", "Result", ";", "}", ""], "natrual_language": ["Handle", "Lowering", "flag", "assembly", "outputs", "."], "TS_V_token": ["X86", "X86", "X86::CondCode", "X86::COND_INVALID", "8", "\"Flag output operand is of invalid type\"", "X86::EFLAGS", "MVT::i32", "1", "X86::EFLAGS", "MVT::i32", "ISD::ZERO_EXTEND"], "File": "X86ISelLowering (2)6", "Func": "LowerAsmOutputForConstraint", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 674, "Length": 184, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "print_slot", "(", "rtx", "insn", ")", "{", "final_scan_insn", "(", "XVECEXP", "(", "insn", ",", "0", ",", "1", ")", ",", "asm_out_file", ",", "optimize", ",", "1", ",", "NULL", ")", ";", "INSN_DELETED_P", "(", "XVECEXP", "(", "insn", ",", "0", ",", "1", ")", ")", "=", "1", ";", "}", ""], "natrual_language": ["Print", "an", "instruction", "which", "would", "have", "gone", "into", "a", "delay", "slot", "after", "another", "instruction", ",", "but", "could", "n't", "because", "the", "other", "instruction", "expanded", "into", "a", "sequence", "where", "putting", "the", "slot", "insn", "at", "the", "end", "would", "n't", "work", "."], "TS_V_token": ["sh", "0", "1", "1", "0", "1", "1"], "File": "sh3", "Func": "print_slot", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 675, "Length": 43, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "EVT", "PPCTargetLowering", "::", "getSetCCResultType", "(", "LLVMContext", "&", ",", "EVT", "VT", ")", "const", "{", "if", "(", "!", "VT", ".", "isVector", "(", ")", ")", "return", "MVT", "::", "i32", ";", "return", "VT", ".", "changeVectorElementTypeToInteger", "(", ")", ";", "}", ""], "natrual_language": ["Return", "the", "value", "type", "to", "use", "for", "ISD", ":", ":SETCC", "."], "TS_V_token": ["PowerPC", "PPC", "MVT::i32"], "File": "PPCISelLowering (2)1", "Func": "getSetCCResultType", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 676, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ThumbRegisterInfo", "::", "emitLoadConstPool", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "MBBI", ",", "const", "DebugLoc", "&", "dl", ",", "unsigned", "DestReg", ",", "unsigned", "SubIdx", ",", "int", "Val", ",", "ARMCC", "::", "CondCodes", "Pred", ",", "unsigned", "PredReg", ",", "unsigned", "MIFlags", ")", "const", "{", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "const", "ARMSubtarget", "&", "STI", "=", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "if", "(", "STI", ".", "isThumb1Only", "(", ")", ")", "{", "assert", "(", "(", "isARMLowRegister", "(", "DestReg", ")", "||", "Register", "::", "isVirtualRegister", "(", "DestReg", ")", ")", "&&", "\"Thumb1 does not have ldr to high register\"", ")", ";", "return", "emitThumb1LoadConstPool", "(", "MBB", ",", "MBBI", ",", "dl", ",", "DestReg", ",", "SubIdx", ",", "Val", ",", "Pred", ",", "PredReg", ",", "MIFlags", ")", ";", "}", "return", "emitThumb2LoadConstPool", "(", "MBB", ",", "MBBI", ",", "dl", ",", "DestReg", ",", "SubIdx", ",", "Val", ",", "Pred", ",", "PredReg", ",", "MIFlags", ")", ";", "}", ""], "natrual_language": ["emitLoadConstPool", "-", "Emits", "a", "load", "from", "constpool", "to", "materialize", "the", "specified", "immediate", "."], "TS_V_token": ["ARM", "ARMCC::CondCodes", "ARM", "ARM", "ARM", "\"Thumb1 does not have ldr to high register\""], "File": "ThumbRegisterInfo3", "Func": "emitLoadConstPool", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 677, "Length": 141, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "X86TargetMachine", "::", "X86TargetMachine", "(", "const", "Target", "&", "T", ",", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Reloc", "::", "Model", "RM", ",", "CodeModel", "::", "Model", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ")", ":", "LLVMTargetMachine", "(", "T", ",", "computeDataLayout", "(", "TT", ")", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "RM", ",", "CM", ",", "OL", ")", ",", "TLOF", "(", "createTLOF", "(", "getTargetTriple", "(", ")", ")", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ",", "*", "this", ",", "Options", ".", "StackAlignmentOverride", ")", "{", "if", "(", "Subtarget", ".", "isTargetWin64", "(", ")", ")", "this", "->", "Options", ".", "TrapUnreachable", "=", "true", ";", "this", "->", "Options", ".", "Reciprocals", ".", "setDefaults", "(", "\"sqrtf\"", ",", "true", ",", "1", ")", ";", "this", "->", "Options", ".", "Reciprocals", ".", "setDefaults", "(", "\"divf\"", ",", "false", ",", "1", ")", ";", "this", "->", "Options", ".", "Reciprocals", ".", "setDefaults", "(", "\"vec-sqrtf\"", ",", "true", ",", "1", ")", ";", "this", "->", "Options", ".", "Reciprocals", ".", "setDefaults", "(", "\"vec-divf\"", ",", "true", ",", "1", ")", ";", "initAsmInfo", "(", ")", ";", "}", ""], "natrual_language": ["Create", "an", "X86", "target", "."], "TS_V_token": ["X86", "X86", "X86", "\"sqrtf\"", "1", "\"divf\"", "1", "\"vec-sqrtf\"", "1", "\"vec-divf\"", "1"], "File": "X86TargetMachine10", "Func": "X86TargetMachine", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 678, "Length": 172, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "compute_vrsave_mask", "(", "void", ")", "{", "unsigned", "int", "i", ",", "mask", "=", "0", ";", "if", "(", "DEFAULT_ABI", "==", "ABI_DARWIN", "&&", "crtl", "->", "calls_eh_return", "&&", "!", "TARGET_ALTIVEC", ")", "mask", "|=", "0xFFF", ";", "for", "(", "i", "=", "FIRST_ALTIVEC_REGNO", ";", "i", "<=", "LAST_ALTIVEC_REGNO", ";", "++", "i", ")", "if", "(", "df_regs_ever_live_p", "(", "i", ")", ")", "mask", "|=", "ALTIVEC_REG_BIT", "(", "i", ")", ";", "if", "(", "mask", "==", "0", ")", "return", "mask", ";", "for", "(", "i", "=", "ALTIVEC_ARG_MIN_REG", ";", "i", "<", "(", "unsigned", ")", "crtl", "->", "args", ".", "info", ".", "vregno", ";", "i", "++", ")", "mask", "&=", "~", "ALTIVEC_REG_BIT", "(", "i", ")", ";", "{", "bool", "yes", "=", "false", ";", "diddle_return_value", "(", "is_altivec_return_reg", ",", "&", "yes", ")", ";", "if", "(", "yes", ")", "mask", "&=", "~", "ALTIVEC_REG_BIT", "(", "ALTIVEC_ARG_RETURN", ")", ";", "}", "return", "mask", ";", "}", ""], "natrual_language": ["Return", "a", "32-bit", "mask", "of", "the", "AltiVec", "registers", "we", "need", "to", "set", "in", "VRSAVE", ".", "Bit", "n", "of", "the", "return", "value", "is", "1", "if", "Vn", "is", "live", ".", "The", "MSB", "in", "the", "32-bit", "word", "is", "0", "."], "TS_V_token": ["powerpcspe", "0", "0xFFF", "0"], "File": "powerpcspe", "Func": "compute_vrsave_mask", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 679, "Length": 130, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "rs6000_legitimate_address", "(", "enum", "machine_mode", "mode", ",", "rtx", "x", ",", "int", "reg_ok_strict", ")", "{", "if", "(", "TARGET_ALTIVEC", "&&", "ALTIVEC_VECTOR_MODE", "(", "mode", ")", "&&", "GET_CODE", "(", "x", ")", "==", "AND", "&&", "GET_CODE", "(", "XEXP", "(", "x", ",", "1", ")", ")", "==", "CONST_INT", "&&", "INTVAL", "(", "XEXP", "(", "x", ",", "1", ")", ")", "==", "-", "16", ")", "x", "=", "XEXP", "(", "x", ",", "0", ")", ";", "if", "(", "RS6000_SYMBOL_REF_TLS_P", "(", "x", ")", ")", "return", "0", ";", "if", "(", "legitimate_indirect_address_p", "(", "x", ",", "reg_ok_strict", ")", ")", "return", "1", ";", "if", "(", "(", "GET_CODE", "(", "x", ")", "==", "PRE_INC", "||", "GET_CODE", "(", "x", ")", "==", "PRE_DEC", ")", "&&", "!", "ALTIVEC_VECTOR_MODE", "(", "mode", ")", "&&", "!", "SPE_VECTOR_MODE", "(", "mode", ")", "&&", "!", "(", "TARGET_E500_DOUBLE", "&&", "(", "mode", "==", "DFmode", "||", "mode", "==", "DImode", ")", ")", "&&", "TARGET_UPDATE", "&&", "legitimate_indirect_address_p", "(", "XEXP", "(", "x", ",", "0", ")", ",", "reg_ok_strict", ")", ")", "return", "1", ";", "if", "(", "rs6000_legitimate_small_data_p", "(", "mode", ",", "x", ")", ")", "return", "1", ";", "if", "(", "legitimate_constant_pool_address_p", "(", "x", ")", ")", "return", "1", ";", "if", "(", "!", "reg_ok_strict", "&&", "GET_CODE", "(", "x", ")", "==", "PLUS", "&&", "GET_CODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", "==", "REG", "&&", "(", "XEXP", "(", "x", ",", "0", ")", "==", "virtual_stack_vars_rtx", "||", "XEXP", "(", "x", ",", "0", ")", "==", "arg_pointer_rtx", ")", "&&", "GET_CODE", "(", "XEXP", "(", "x", ",", "1", ")", ")", "==", "CONST_INT", ")", "return", "1", ";", "if", "(", "rs6000_legitimate_offset_address_p", "(", "mode", ",", "x", ",", "reg_ok_strict", ")", ")", "return", "1", ";", "if", "(", "mode", "!=", "TImode", "&&", "mode", "!=", "TFmode", "&&", "(", "(", "TARGET_HARD_FLOAT", "&&", "TARGET_FPRS", ")", "||", "TARGET_POWERPC64", "||", "(", "(", "mode", "!=", "DFmode", "||", "TARGET_E500_DOUBLE", ")", "&&", "mode", "!=", "TFmode", ")", ")", "&&", "(", "TARGET_POWERPC64", "||", "mode", "!=", "DImode", ")", "&&", "legitimate_indexed_address_p", "(", "x", ",", "reg_ok_strict", ")", ")", "return", "1", ";", "if", "(", "legitimate_lo_sum_address_p", "(", "mode", ",", "x", ",", "reg_ok_strict", ")", ")", "return", "1", ";", "return", "0", ";", "}", ""], "natrual_language": ["GO_IF_LEGITIMATE_ADDRESS", "recognizes", "an", "RTL", "expression", "that", "is", "a", "valid", "memory", "address", "for", "an", "instruction", ".", "The", "MODE", "argument", "is", "the", "machine", "mode", "for", "the", "MEM", "expression", "that", "wants", "to", "use", "this", "address", ".", "On", "the", "RS/6000", ",", "there", "are", "four", "valid", "address", ":", "a", "SYMBOL_REF", "that", "refers", "to", "a", "constant", "pool", "entry", "of", "an", "address", "(", "or", "the", "sum", "of", "it", "plus", "a", "constant", ")", ",", "a", "short", "(", "16-bit", "signed", ")", "constant", "plus", "a", "register", ",", "the", "sum", "of", "two", "registers", ",", "or", "a", "register", "indirect", ",", "possibly", "with", "an", "auto-increment", ".", "For", "DFmode", "and", "DImode", "with", "a", "constant", "plus", "register", ",", "we", "must", "ensure", "that", "both", "words", "are", "addressable", "or", "PowerPC64", "with", "offset", "word", "aligned", ".", "For", "modes", "spanning", "multiple", "registers", "(", "DFmode", "in", "32-bit", "GPRs", ",", "32-bit", "DImode", ",", "TImode", ",", "TFmode", ")", ",", "indexed", "addressing", "can", "not", "be", "used", "because", "adjacent", "memory", "cells", "are", "accessed", "by", "adding", "word-sized", "offsets", "during", "assembly", "output", "."], "TS_V_token": ["rs6000", "1", "1", "16", "0", "0", "1", "0", "1", "1", "1", "0", "0", "0", "1", "1", "1", "1", "1", "0"], "File": "rs60003", "Func": "rs6000_legitimate_address", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 680, "Length": 313, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "aarch64_can_tag_addresses", "(", ")", "{", "return", "!", "TARGET_ILP32", ";", "}", ""], "natrual_language": ["Implement", "TARGET_MEMTAG_CAN_TAG_ADDRESSES", ".", "Here", "we", "tell", "the", "rest", "of", "the", "compiler", "that", "we", "automatically", "ignore", "the", "top", "byte", "of", "our", "pointers", ",", "which", "allows", "using", "-fsanitize=hwaddress", "."], "TS_V_token": ["aarch64"], "File": "aarch641", "Func": "aarch64_can_tag_addresses", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 681, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCFastISel", "::", "fastMaterializeAlloca", "(", "const", "AllocaInst", "*", "AI", ")", "{", "if", "(", "!", "FuncInfo", ".", "StaticAllocaMap", ".", "count", "(", "AI", ")", ")", "return", "0", ";", "MVT", "VT", ";", "if", "(", "!", "isLoadTypeLegal", "(", "AI", "->", "getType", "(", ")", ",", "VT", ")", ")", "return", "0", ";", "DenseMap", "<", "const", "AllocaInst", "*", ",", "int", ">", "::", "iterator", "SI", "=", "FuncInfo", ".", "StaticAllocaMap", ".", "find", "(", "AI", ")", ";", "if", "(", "SI", "!=", "FuncInfo", ".", "StaticAllocaMap", ".", "end", "(", ")", ")", "{", "Register", "ResultReg", "=", "createResultReg", "(", "&", "PPC", "::", "G8RC_and_G8RC_NOX0RegClass", ")", ";", "BuildMI", "(", "*", "FuncInfo", ".", "MBB", ",", "FuncInfo", ".", "InsertPt", ",", "DbgLoc", ",", "TII", ".", "get", "(", "PPC", "::", "ADDI8", ")", ",", "ResultReg", ")", ".", "addFrameIndex", "(", "SI", "->", "second", ")", ".", "addImm", "(", "0", ")", ";", "return", "ResultReg", ";", "}", "return", "0", ";", "}", ""], "natrual_language": ["Emit", "an", "alloca", "address", "in", "a", "register", "using", "target-specific", "logic", "."], "TS_V_token": ["PowerPC", "PPC", "0", "0", "PPC::G8RC_and_G8RC_NOX0RegClass", "PPC::ADDI8", "0", "0"], "File": "PPCFastISel12", "Func": "fastMaterializeAlloca", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 682, "Length": 136, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMBaseRegisterInfo", "::", "getRegPressureLimit", "(", "const", "TargetRegisterClass", "*", "RC", ",", "MachineFunction", "&", "MF", ")", "const", "{", "const", "ARMSubtarget", "&", "STI", "=", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "const", "TargetFrameLowering", "*", "TFI", "=", "STI", ".", "getFrameLowering", "(", ")", ";", "switch", "(", "RC", "->", "getID", "(", ")", ")", "{", "default", ":", "return", "0", ";", "case", "ARM", "::", "tGPRRegClassID", ":", "return", "TFI", "->", "hasFP", "(", "MF", ")", "?", "4", ":", "5", ";", "case", "ARM", "::", "GPRRegClassID", ":", "{", "unsigned", "FP", "=", "TFI", "->", "hasFP", "(", "MF", ")", "?", "1", ":", "0", ";", "return", "10", "-", "FP", "-", "(", "STI", ".", "isR9Reserved", "(", ")", "?", "1", ":", "0", ")", ";", "}", "case", "ARM", "::", "SPRRegClassID", ":", "case", "ARM", "::", "DPRRegClassID", ":", "return", "32", "-", "10", ";", "}", "}", ""], "natrual_language": ["Return", "the", "register", "pressure", "``", "high", "water", "mark", "''", "for", "the", "specific", "register", "class", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "0", "ARM::tGPRRegClassID", "4", "5", "ARM::GPRRegClassID", "1", "0", "10", "1", "0", "ARM::SPRRegClassID", "ARM::DPRRegClassID", "32", "10"], "File": "ARMBaseRegisterInfo22", "Func": "getRegPressureLimit", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 683, "Length": 127, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_legitimate_combined_insn", "(", "rtx_insn", "*", "insn", ")", "{", "int", "icode", "=", "INSN_CODE", "(", "insn", ")", ";", "if", "(", "icode", "!=", "CODE_FOR_nothing", "&&", "(", "icode", "==", "CODE_FOR_ctrsi_internal1", "||", "icode", "==", "CODE_FOR_ctrdi_internal1", "||", "icode", "==", "CODE_FOR_ctrsi_internal2", "||", "icode", "==", "CODE_FOR_ctrdi_internal2", "||", "icode", "==", "CODE_FOR_ctrsi_internal3", "||", "icode", "==", "CODE_FOR_ctrdi_internal3", "||", "icode", "==", "CODE_FOR_ctrsi_internal4", "||", "icode", "==", "CODE_FOR_ctrdi_internal4", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Implement", "the", "TARGET_LEGITIMATE_COMBINED_INSN", "hook", "."], "TS_V_token": ["powerpcspe"], "File": "powerpcspe", "Func": "rs6000_legitimate_combined_insn", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 684, "Length": 64, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "machine_mode", "memory_vector_mode", "(", "const", "function_instance", "&", ")", "const", "OVERRIDE", "{", "return", "m_mode", ";", "}", ""], "natrual_language": ["If", "the", "function", "addresses", "memory", ",", "return", "a", "vector", "mode", "whose", "GET_MODE_NUNITS", "is", "the", "number", "of", "elements", "addressed", "and", "whose", "GET_MODE_INNER", "is", "the", "mode", "of", "a", "single", "scalar", "memory", "element", "."], "TS_V_token": ["aarch64"], "File": "aarch64-sve-builtins-base", "Func": "memory_vector_mode", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 685, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86DAGToDAGISel", "::", "PreprocessISelDAG", "(", ")", "{", "OptForSize", "=", "MF", "->", "getFunction", "(", ")", "->", "optForSize", "(", ")", ";", "OptForMinSize", "=", "MF", "->", "getFunction", "(", ")", "->", "optForMinSize", "(", ")", ";", "assert", "(", "(", "!", "OptForMinSize", "||", "OptForSize", ")", "&&", "\"OptForMinSize implies OptForSize\"", ")", ";", "for", "(", "SelectionDAG", "::", "allnodes_iterator", "I", "=", "CurDAG", "->", "allnodes_begin", "(", ")", ",", "E", "=", "CurDAG", "->", "allnodes_end", "(", ")", ";", "I", "!=", "E", ";", ")", "{", "SDNode", "*", "N", "=", "&", "*", "I", "++", ";", "if", "(", "OptLevel", "!=", "CodeGenOpt", "::", "None", "&&", "(", "(", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "CALL", "&&", "!", "Subtarget", "->", "callRegIndirect", "(", ")", ")", "||", "(", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "TC_RETURN", "&&", "(", "Subtarget", "->", "is64Bit", "(", ")", "||", "!", "getTargetMachine", "(", ")", ".", "isPositionIndependent", "(", ")", ")", ")", ")", ")", "{", "bool", "HasCallSeq", "=", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "CALL", ";", "SDValue", "Chain", "=", "N", "->", "getOperand", "(", "0", ")", ";", "SDValue", "Load", "=", "N", "->", "getOperand", "(", "1", ")", ";", "if", "(", "!", "isCalleeLoad", "(", "Load", ",", "Chain", ",", "HasCallSeq", ")", ")", "continue", ";", "moveBelowOrigChain", "(", "CurDAG", ",", "Load", ",", "SDValue", "(", "N", ",", "0", ")", ",", "Chain", ")", ";", "++", "NumLoadMoved", ";", "continue", ";", "}", "if", "(", "N", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "FP_ROUND", "&&", "N", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "FP_EXTEND", ")", "continue", ";", "MVT", "SrcVT", "=", "N", "->", "getOperand", "(", "0", ")", ".", "getSimpleValueType", "(", ")", ";", "MVT", "DstVT", "=", "N", "->", "getSimpleValueType", "(", "0", ")", ";", "if", "(", "SrcVT", ".", "isVector", "(", ")", "||", "DstVT", ".", "isVector", "(", ")", ")", "continue", ";", "const", "X86TargetLowering", "*", "X86Lowering", "=", "static_cast", "<", "const", "X86TargetLowering", "*", ">", "(", "TLI", ")", ";", "bool", "SrcIsSSE", "=", "X86Lowering", "->", "isScalarFPTypeInSSEReg", "(", "SrcVT", ")", ";", "bool", "DstIsSSE", "=", "X86Lowering", "->", "isScalarFPTypeInSSEReg", "(", "DstVT", ")", ";", "if", "(", "SrcIsSSE", "&&", "DstIsSSE", ")", "continue", ";", "if", "(", "!", "SrcIsSSE", "&&", "!", "DstIsSSE", ")", "{", "if", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "FP_EXTEND", ")", "continue", ";", "if", "(", "N", "->", "getConstantOperandVal", "(", "1", ")", ")", "continue", ";", "}", "MVT", "MemVT", ";", "if", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "FP_ROUND", ")", "MemVT", "=", "DstVT", ";", "else", "MemVT", "=", "SrcIsSSE", "?", "SrcVT", ":", "DstVT", ";", "SDValue", "MemTmp", "=", "CurDAG", "->", "CreateStackTemporary", "(", "MemVT", ")", ";", "SDLoc", "dl", "(", "N", ")", ";", "SDValue", "Store", "=", "CurDAG", "->", "getTruncStore", "(", "CurDAG", "->", "getEntryNode", "(", ")", ",", "dl", ",", "N", "->", "getOperand", "(", "0", ")", ",", "MemTmp", ",", "MachinePointerInfo", "(", ")", ",", "MemVT", ",", "false", ",", "false", ",", "0", ")", ";", "SDValue", "Result", "=", "CurDAG", "->", "getExtLoad", "(", "ISD", "::", "EXTLOAD", ",", "dl", ",", "DstVT", ",", "Store", ",", "MemTmp", ",", "MachinePointerInfo", "(", ")", ",", "MemVT", ",", "false", ",", "false", ",", "false", ",", "0", ")", ";", "--", "I", ";", "CurDAG", "->", "ReplaceAllUsesOfValueWith", "(", "SDValue", "(", "N", ",", "0", ")", ",", "Result", ")", ";", "++", "I", ";", "CurDAG", "->", "DeleteNode", "(", "N", ")", ";", "}", "}", ""], "natrual_language": ["PreprocessISelDAG", "-", "This", "hook", "allows", "targets", "to", "hack", "on", "the", "graph", "before", "instruction", "selection", "starts", "."], "TS_V_token": ["X86", "X86", "\"OptForMinSize implies OptForSize\"", "X86ISD::CALL", "X86ISD::TC_RETURN", "X86ISD::CALL", "0", "1", "0", "ISD::FP_ROUND", "ISD::FP_EXTEND", "0", "0", "X86", "X86", "X86", "X86", "X86", "ISD::FP_EXTEND", "1", "ISD::FP_ROUND", "0", "0", "ISD::EXTLOAD", "0", "0"], "File": "X86ISelDAGToDAG108", "Func": "PreprocessISelDAG", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 686, "Length": 493, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "CCAssignFn", "*", "AArch64TargetLowering", "::", "CCAssignFnForCall", "(", "CallingConv", "::", "ID", "CC", ",", "bool", "IsVarArg", ")", "const", "{", "switch", "(", "CC", ")", "{", "default", ":", "report_fatal_error", "(", "\"Unsupported calling convention.\"", ")", ";", "case", "CallingConv", "::", "WebKit_JS", ":", "return", "CC_AArch64_WebKit_JS", ";", "case", "CallingConv", "::", "GHC", ":", "return", "CC_AArch64_GHC", ";", "case", "CallingConv", "::", "C", ":", "case", "CallingConv", "::", "Fast", ":", "case", "CallingConv", "::", "PreserveMost", ":", "case", "CallingConv", "::", "CXX_FAST_TLS", ":", "case", "CallingConv", "::", "Swift", ":", "if", "(", "Subtarget", "->", "isTargetWindows", "(", ")", "&&", "IsVarArg", ")", "return", "CC_AArch64_Win64_VarArg", ";", "if", "(", "!", "Subtarget", "->", "isTargetDarwin", "(", ")", ")", "return", "CC_AArch64_AAPCS", ";", "if", "(", "!", "IsVarArg", ")", "return", "CC_AArch64_DarwinPCS", ";", "return", "Subtarget", "->", "isTargetILP32", "(", ")", "?", "CC_AArch64_DarwinPCS_ILP32_VarArg", ":", "CC_AArch64_DarwinPCS_VarArg", ";", "case", "CallingConv", "::", "Win64", ":", "return", "IsVarArg", "?", "CC_AArch64_Win64_VarArg", ":", "CC_AArch64_AAPCS", ";", "case", "CallingConv", "::", "CFGuard_Check", ":", "return", "CC_AArch64_Win64_CFGuard_Check", ";", "case", "CallingConv", "::", "AArch64_VectorCall", ":", "case", "CallingConv", "::", "AArch64_SVE_VectorCall", ":", "return", "CC_AArch64_AAPCS", ";", "}", "}", ""], "natrual_language": ["Selects", "the", "correct", "CCAssignFn", "for", "a", "given", "CallingConvention", "value", "."], "TS_V_token": ["AArch64", "AArch64", "\"Unsupported calling convention.\"", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64ISelLowering10", "Func": "CCAssignFnForCall", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 687, "Length": 148, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTargetLowering", "::", "SelectAddressEVXRegReg", "(", "SDValue", "N", ",", "SDValue", "&", "Base", ",", "SDValue", "&", "Index", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "for", "(", "SDNode", "::", "use_iterator", "UI", "=", "N", "->", "use_begin", "(", ")", ",", "E", "=", "N", "->", "use_end", "(", ")", ";", "UI", "!=", "E", ";", "++", "UI", ")", "{", "if", "(", "MemSDNode", "*", "Memop", "=", "dyn_cast", "<", "MemSDNode", ">", "(", "*", "UI", ")", ")", "{", "if", "(", "Memop", "->", "getMemoryVT", "(", ")", "==", "MVT", "::", "f64", ")", "{", "Base", "=", "N", ".", "getOperand", "(", "0", ")", ";", "Index", "=", "N", ".", "getOperand", "(", "1", ")", ";", "return", "true", ";", "}", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["SelectAddressEVXRegReg", "-", "Given", "the", "specified", "addressed", ",", "check", "to", "see", "if", "it", "can", "be", "more", "efficiently", "represented", "as", "[", "r+imm", "]", "."], "TS_V_token": ["PowerPC", "PPC", "MVT::f64", "0", "1"], "File": "PPCISelLowering100", "Func": "SelectAddressEVXRegReg", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 688, "Length": 108, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86FrameLowering", "::", "assignCalleeSavedSpillSlots", "(", "MachineFunction", "&", "MF", ",", "const", "TargetRegisterInfo", "*", "TRI", ",", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ")", "const", "{", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "X86RegisterInfo", "*", "RegInfo", "=", "static_cast", "<", "const", "X86RegisterInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ")", ";", "unsigned", "SlotSize", "=", "RegInfo", "->", "getSlotSize", "(", ")", ";", "X86MachineFunctionInfo", "*", "X86FI", "=", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", ";", "unsigned", "CalleeSavedFrameSize", "=", "0", ";", "int", "SpillSlotOffset", "=", "getOffsetOfLocalArea", "(", ")", "+", "X86FI", "->", "getTCReturnAddrDelta", "(", ")", ";", "if", "(", "hasFP", "(", "MF", ")", ")", "{", "SpillSlotOffset", "-=", "SlotSize", ";", "MFI", "->", "CreateFixedSpillStackObject", "(", "SlotSize", ",", "SpillSlotOffset", ")", ";", "unsigned", "FPReg", "=", "RegInfo", "->", "getFrameRegister", "(", "MF", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "CSI", ".", "size", "(", ")", ";", "++", "i", ")", "{", "if", "(", "TRI", "->", "regsOverlap", "(", "CSI", "[", "i", "]", ".", "getReg", "(", ")", ",", "FPReg", ")", ")", "{", "CSI", ".", "erase", "(", "CSI", ".", "begin", "(", ")", "+", "i", ")", ";", "break", ";", "}", "}", "}", "for", "(", "unsigned", "i", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "0", ";", "--", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "-", "1", "]", ".", "getReg", "(", ")", ";", "if", "(", "!", "X86", "::", "GR64RegClass", ".", "contains", "(", "Reg", ")", "&&", "!", "X86", "::", "GR32RegClass", ".", "contains", "(", "Reg", ")", ")", "continue", ";", "SpillSlotOffset", "-=", "SlotSize", ";", "CalleeSavedFrameSize", "+=", "SlotSize", ";", "int", "SlotIndex", "=", "MFI", "->", "CreateFixedSpillStackObject", "(", "SlotSize", ",", "SpillSlotOffset", ")", ";", "CSI", "[", "i", "-", "1", "]", ".", "setFrameIdx", "(", "SlotIndex", ")", ";", "}", "X86FI", "->", "setCalleeSavedFrameSize", "(", "CalleeSavedFrameSize", ")", ";", "for", "(", "unsigned", "i", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "0", ";", "--", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "-", "1", "]", ".", "getReg", "(", ")", ";", "if", "(", "X86", "::", "GR64RegClass", ".", "contains", "(", "Reg", ")", "||", "X86", "::", "GR32RegClass", ".", "contains", "(", "Reg", ")", ")", "continue", ";", "const", "TargetRegisterClass", "*", "RC", "=", "RegInfo", "->", "getMinimalPhysRegClass", "(", "Reg", ")", ";", "SpillSlotOffset", "-=", "abs", "(", "SpillSlotOffset", ")", "%", "RC", "->", "getAlignment", "(", ")", ";", "SpillSlotOffset", "-=", "RC", "->", "getSize", "(", ")", ";", "int", "SlotIndex", "=", "MFI", "->", "CreateFixedSpillStackObject", "(", "RC", "->", "getSize", "(", ")", ",", "SpillSlotOffset", ")", ";", "CSI", "[", "i", "-", "1", "]", ".", "setFrameIdx", "(", "SlotIndex", ")", ";", "MFI", "->", "ensureMaxAlignment", "(", "RC", "->", "getAlignment", "(", ")", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["This", "function", "will", "assign", "callee", "saved", "gprs", "to", "volatile", "vector", "registers", "for", "prologue", "spills", "when", "applicable", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86", "X86", "0", "X86", "0", "0", "1", "X86::GR64RegClass", "X86::GR32RegClass", "1", "X86", "0", "1", "X86::GR64RegClass", "X86::GR32RegClass", "1"], "File": "X86FrameLowering120", "Func": "assignCalleeSavedSpillSlots", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 689, "Length": 414, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZInstrInfo", "::", "PredicateInstruction", "(", "MachineInstr", "*", "MI", ",", "const", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Pred", ")", "const", "{", "assert", "(", "Pred", ".", "size", "(", ")", "==", "2", "&&", "\"Invalid condition\"", ")", ";", "unsigned", "CCValid", "=", "Pred", "[", "0", "]", ".", "getImm", "(", ")", ";", "unsigned", "CCMask", "=", "Pred", "[", "1", "]", ".", "getImm", "(", ")", ";", "assert", "(", "CCMask", ">", "0", "&&", "CCMask", "<", "15", "&&", "\"Invalid predicate\"", ")", ";", "unsigned", "Opcode", "=", "MI", "->", "getOpcode", "(", ")", ";", "if", "(", "TM", ".", "getSubtargetImpl", "(", ")", "->", "hasLoadStoreOnCond", "(", ")", ")", "{", "if", "(", "unsigned", "CondOpcode", "=", "getConditionalMove", "(", "Opcode", ")", ")", "{", "MI", "->", "setDesc", "(", "get", "(", "CondOpcode", ")", ")", ";", "MachineInstrBuilder", "(", "*", "MI", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ",", "MI", ")", ".", "addImm", "(", "CCValid", ")", ".", "addImm", "(", "CCMask", ")", ".", "addReg", "(", "SystemZ", "::", "CC", ",", "RegState", "::", "Implicit", ")", ";", "return", "true", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["Convert", "the", "instruction", "into", "a", "predicated", "instruction", "."], "TS_V_token": ["SystemZ", "SystemZ", "2", "\"Invalid condition\"", "0", "1", "0", "15", "\"Invalid predicate\"", "SystemZ::CC"], "File": "SystemZInstrInfo38", "Func": "PredicateInstruction", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 690, "Length": 158, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_emit_sve_predicated_cond", "(", "rtx", "target", ",", "rtx_code", "code", ",", "rtx", "pred", ",", "rtx", "op0", ",", "rtx", "op1", ")", "{", "rtx", "unspec", "=", "gen_rtx_UNSPEC", "(", "GET_MODE", "(", "pred", ")", ",", "gen_rtvec", "(", "3", ",", "pred", ",", "op0", ",", "op1", ")", ",", "aarch64_unspec_cond_code", "(", "code", ")", ")", ";", "emit_set_insn", "(", "target", ",", "unspec", ")", ";", "}", ""], "natrual_language": ["Emit", ":", "(", "set", "TARGET", "(", "unspec", "[", "PRED", "OP0", "OP1", "]", "UNSPEC_COND_", "<", "X", ">", ")", ")", "where", "<", "X", ">", "is", "the", "operation", "associated", "with", "comparison", "CODE", ".", "This", "form", "of", "instruction", "is", "used", "when", "(", "and", "(", "CODE", "OP0", "OP1", ")", "PRED", ")", "would", "have", "different", "semantics", ",", "such", "as", "when", "PRED", "might", "not", "be", "all-true", "and", "when", "comparing", "inactive", "lanes", "could", "have", "side", "effects", "."], "TS_V_token": ["aarch64", "3"], "File": "aarch646", "Func": "aarch64_emit_sve_predicated_cond", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 691, "Length": 55, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "aarch64_stack_protect_guard", "(", "void", ")", "{", "if", "(", "aarch64_stack_protector_guard", "==", "SSP_GLOBAL", ")", "return", "default_stack_protect_guard", "(", ")", ";", "return", "NULL_TREE", ";", "}", ""], "natrual_language": ["Implement", "TARGET_STACK_PROTECT_GUARD", ".", "In", "case", "of", "a", "global", "variable", "based", "guard", "use", "the", "default", "else", "return", "a", "null", "tree", "."], "TS_V_token": ["aarch64"], "File": "aarch64", "Func": "aarch64_stack_protect_guard", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 692, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_output_fldmx", "(", "FILE", "*", "stream", ",", "unsigned", "int", "base", ",", "int", "reg", ",", "int", "count", ")", "{", "int", "i", ";", "if", "(", "count", "==", "2", "&&", "!", "arm_arch6", ")", "{", "if", "(", "reg", "==", "15", ")", "reg", "--", ";", "count", "++", ";", "}", "fputc", "(", "'\\t'", ",", "stream", ")", ";", "asm_fprintf", "(", "stream", ",", "\"fldmfdx\\t%r!, {\"", ",", "base", ")", ";", "for", "(", "i", "=", "reg", ";", "i", "<", "reg", "+", "count", ";", "i", "++", ")", "{", "if", "(", "i", ">", "reg", ")", "fputs", "(", "\", \"", ",", "stream", ")", ";", "asm_fprintf", "(", "stream", ",", "\"d%d\"", ",", "i", ")", ";", "}", "fputs", "(", "\"}\\n\"", ",", "stream", ")", ";", "}", ""], "natrual_language": ["Output", "a", "FLDMX", "instruction", "to", "STREAM", ".", "BASE", "if", "the", "register", "containing", "the", "address", ".", "REG", "and", "COUNT", "specify", "the", "register", "range", ".", "Extra", "registers", "may", "be", "added", "to", "avoid", "hardware", "bugs", "."], "TS_V_token": ["arm", "2", "15", "\"fldmfdx\\t%r!, {\"", "\", \"", "\"d%d\"", "\"}\\n\""], "File": "arm3", "Func": "arm_output_fldmx", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 693, "Length": 108, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "AArch64InstrInfo", "::", "getInstSizeInBytes", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "const", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "const", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "MCAsmInfo", "*", "MAI", "=", "MF", "->", "getTarget", "(", ")", ".", "getMCAsmInfo", "(", ")", ";", "{", "auto", "Op", "=", "MI", ".", "getOpcode", "(", ")", ";", "if", "(", "Op", "==", "AArch64", "::", "INLINEASM", "||", "Op", "==", "AArch64", "::", "INLINEASM_BR", ")", "return", "getInlineAsmLength", "(", "MI", ".", "getOperand", "(", "0", ")", ".", "getSymbolName", "(", ")", ",", "*", "MAI", ")", ";", "}", "if", "(", "MI", ".", "isMetaInstruction", "(", ")", ")", "return", "0", ";", "unsigned", "NumBytes", "=", "0", ";", "const", "MCInstrDesc", "&", "Desc", "=", "MI", ".", "getDesc", "(", ")", ";", "switch", "(", "Desc", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "NumBytes", "=", "4", ";", "break", ";", "case", "TargetOpcode", "::", "STACKMAP", ":", "NumBytes", "=", "StackMapOpers", "(", "&", "MI", ")", ".", "getNumPatchBytes", "(", ")", ";", "assert", "(", "NumBytes", "%", "4", "==", "0", "&&", "\"Invalid number of NOP bytes requested!\"", ")", ";", "break", ";", "case", "TargetOpcode", "::", "PATCHPOINT", ":", "NumBytes", "=", "PatchPointOpers", "(", "&", "MI", ")", ".", "getNumPatchBytes", "(", ")", ";", "assert", "(", "NumBytes", "%", "4", "==", "0", "&&", "\"Invalid number of NOP bytes requested!\"", ")", ";", "break", ";", "case", "TargetOpcode", "::", "STATEPOINT", ":", "NumBytes", "=", "StatepointOpers", "(", "&", "MI", ")", ".", "getNumPatchBytes", "(", ")", ";", "assert", "(", "NumBytes", "%", "4", "==", "0", "&&", "\"Invalid number of NOP bytes requested!\"", ")", ";", "if", "(", "NumBytes", "==", "0", ")", "NumBytes", "=", "4", ";", "break", ";", "case", "AArch64", "::", "TLSDESC_CALLSEQ", ":", "NumBytes", "=", "16", ";", "break", ";", "case", "AArch64", "::", "SpeculationBarrierISBDSBEndBB", ":", "NumBytes", "=", "8", ";", "break", ";", "case", "AArch64", "::", "SpeculationBarrierSBEndBB", ":", "NumBytes", "=", "4", ";", "break", ";", "case", "AArch64", "::", "AUT", ":", "NumBytes", "=", "24", ";", "break", ";", "case", "AArch64", "::", "AUTPAC", ":", "NumBytes", "=", "28", ";", "break", ";", "case", "AArch64", "::", "MOVaddrPAC", ":", "NumBytes", "=", "28", ";", "break", ";", "case", "AArch64", "::", "BR_JumpTable", ":", "NumBytes", "=", "44", ";", "break", ";", "case", "AArch64", "::", "JumpTableDest32", ":", "case", "AArch64", "::", "JumpTableDest16", ":", "case", "AArch64", "::", "JumpTableDest8", ":", "NumBytes", "=", "12", ";", "break", ";", "case", "AArch64", "::", "SPACE", ":", "NumBytes", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ";", "break", ";", "case", "AArch64", "::", "StoreSwiftAsyncContext", ":", "NumBytes", "=", "20", ";", "break", ";", "case", "TargetOpcode", "::", "BUNDLE", ":", "NumBytes", "=", "getInstBundleLength", "(", "MI", ")", ";", "break", ";", "}", "return", "NumBytes", ";", "}", ""], "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": ["AArch64", "AArch64", "AArch64::INLINEASM", "AArch64::INLINEASM_BR", "0", "0", "0", "4", "4", "0", "\"Invalid number of NOP bytes requested!\"", "4", "0", "\"Invalid number of NOP bytes requested!\"", "4", "0", "\"Invalid number of NOP bytes requested!\"", "0", "4", "AArch64::TLSDESC_CALLSEQ", "16", "AArch64::SpeculationBarrierISBDSBEndBB", "8", "AArch64::SpeculationBarrierSBEndBB", "4", "AArch64::AUT", "24", "AArch64::AUTPAC", "28", "AArch64::MOVaddrPAC", "28", "AArch64::BR_JumpTable", "44", "AArch64::JumpTableDest32", "AArch64::JumpTableDest16", "AArch64::JumpTableDest8", "12", "AArch64::SPACE", "1", "AArch64::StoreSwiftAsyncContext", "20"], "File": "AArch64InstrInfo122", "Func": "getInstSizeInBytes", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 694, "Length": 385, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMPassConfig", "::", "addPreRegAlloc", "(", ")", "{", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "addPass", "(", "createMVETPAndVPTOptimisationsPass", "(", ")", ")", ";", "addPass", "(", "createMLxExpansionPass", "(", ")", ")", ";", "if", "(", "EnableARMLoadStoreOpt", ")", "addPass", "(", "createARMLoadStoreOptimizationPass", "(", "true", ")", ")", ";", "if", "(", "!", "DisableA15SDOptimization", ")", "addPass", "(", "createA15SDOptimizerPass", "(", ")", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "register", "allocation", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM"], "File": "ARMTargetMachine1", "Func": "addPreRegAlloc", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 695, "Length": 58, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86InstrInfo", "::", "classifyLEAReg", "(", "MachineInstr", "&", "MI", ",", "const", "MachineOperand", "&", "Src", ",", "unsigned", "Opc", ",", "bool", "AllowSP", ",", "Register", "&", "NewSrc", ",", "bool", "&", "isKill", ",", "MachineOperand", "&", "ImplicitOp", ",", "LiveVariables", "*", "LV", ")", "const", "{", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "TargetRegisterClass", "*", "RC", ";", "if", "(", "AllowSP", ")", "{", "RC", "=", "Opc", "!=", "X86", "::", "LEA32r", "?", "&", "X86", "::", "GR64RegClass", ":", "&", "X86", "::", "GR32RegClass", ";", "}", "else", "{", "RC", "=", "Opc", "!=", "X86", "::", "LEA32r", "?", "&", "X86", "::", "GR64_NOSPRegClass", ":", "&", "X86", "::", "GR32_NOSPRegClass", ";", "}", "Register", "SrcReg", "=", "Src", ".", "getReg", "(", ")", ";", "if", "(", "Opc", "!=", "X86", "::", "LEA64_32r", ")", "{", "NewSrc", "=", "SrcReg", ";", "isKill", "=", "Src", ".", "isKill", "(", ")", ";", "assert", "(", "!", "Src", ".", "isUndef", "(", ")", "&&", "\"Undef op doesn't need optimization\"", ")", ";", "if", "(", "NewSrc", ".", "isVirtual", "(", ")", "&&", "!", "MF", ".", "getRegInfo", "(", ")", ".", "constrainRegClass", "(", "NewSrc", ",", "RC", ")", ")", "return", "false", ";", "return", "true", ";", "}", "if", "(", "SrcReg", ".", "isPhysical", "(", ")", ")", "{", "ImplicitOp", "=", "Src", ";", "ImplicitOp", ".", "setImplicit", "(", ")", ";", "NewSrc", "=", "getX86SubSuperRegister", "(", "Src", ".", "getReg", "(", ")", ",", "64", ")", ";", "isKill", "=", "Src", ".", "isKill", "(", ")", ";", "assert", "(", "!", "Src", ".", "isUndef", "(", ")", "&&", "\"Undef op doesn't need optimization\"", ")", ";", "}", "else", "{", "NewSrc", "=", "MF", ".", "getRegInfo", "(", ")", ".", "createVirtualRegister", "(", "RC", ")", ";", "MachineInstr", "*", "Copy", "=", "BuildMI", "(", "*", "MI", ".", "getParent", "(", ")", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "get", "(", "TargetOpcode", "::", "COPY", ")", ")", ".", "addReg", "(", "NewSrc", ",", "RegState", "::", "Define", "|", "RegState", "::", "Undef", ",", "X86", "::", "sub_32bit", ")", ".", "add", "(", "Src", ")", ";", "isKill", "=", "true", ";", "if", "(", "LV", ")", "LV", "->", "replaceKillInstruction", "(", "SrcReg", ",", "MI", ",", "*", "Copy", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Given", "an", "operand", "within", "a", "MachineInstr", ",", "insert", "preceding", "code", "to", "put", "it", "into", "the", "right", "format", "for", "a", "particular", "kind", "of", "LEA", "instruction", "."], "TS_V_token": ["X86", "X86", "X86::LEA32r", "X86::GR64RegClass", "X86::GR32RegClass", "X86::LEA32r", "X86::GR64_NOSPRegClass", "X86::GR32_NOSPRegClass", "X86::LEA64_32r", "\"Undef op doesn't need optimization\"", "X86", "64", "\"Undef op doesn't need optimization\"", "X86::sub_32bit"], "File": "X86InstrInfo100", "Func": "classifyLEAReg", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 696, "Length": 318, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "aarch64_expand_sve_const_pred_trn", "(", "rtx", "target", ",", "rtx_vector_builder", "&", "builder", ",", "unsigned", "int", "elt_size", ",", "unsigned", "int", "permute_size", ")", "{", "unsigned", "int", "a_elt_size", "=", "GET_MODE_SIZE", "(", "DImode", ")", ";", "unsigned", "int", "b_elt_size", "=", "GET_MODE_SIZE", "(", "DImode", ")", ";", "for", "(", "unsigned", "int", "i", "=", "0", ";", "i", "<", "builder", ".", "encoded_nelts", "(", ")", ";", "i", "+=", "elt_size", ")", "if", "(", "INTVAL", "(", "builder", ".", "elt", "(", "i", ")", ")", "!=", "0", ")", "{", "if", "(", "i", "&", "permute_size", ")", "b_elt_size", "|=", "i", "-", "permute_size", ";", "else", "a_elt_size", "|=", "i", ";", "}", "a_elt_size", "&=", "-", "a_elt_size", ";", "b_elt_size", "&=", "-", "b_elt_size", ";", "rtx_vector_builder", "a_builder", "(", "VNx16BImode", ",", "builder", ".", "npatterns", "(", ")", ",", "builder", ".", "nelts_per_pattern", "(", ")", ")", ";", "rtx_vector_builder", "b_builder", "(", "VNx16BImode", ",", "builder", ".", "npatterns", "(", ")", ",", "builder", ".", "nelts_per_pattern", "(", ")", ")", ";", "unsigned", "int", "nelts", "=", "builder", ".", "encoded_nelts", "(", ")", ";", "for", "(", "unsigned", "int", "i", "=", "0", ";", "i", "<", "nelts", ";", "++", "i", ")", "if", "(", "i", "&", "(", "elt_size", "-", "1", ")", ")", "{", "a_builder", ".", "quick_push", "(", "const0_rtx", ")", ";", "b_builder", ".", "quick_push", "(", "const0_rtx", ")", ";", "}", "else", "if", "(", "(", "i", "&", "permute_size", ")", "==", "0", ")", "{", "a_builder", ".", "quick_push", "(", "builder", ".", "elt", "(", "i", ")", ")", ";", "b_builder", ".", "quick_push", "(", "builder", ".", "elt", "(", "i", "+", "permute_size", ")", ")", ";", "}", "else", "{", "if", "(", "a_elt_size", ">", "permute_size", ")", "a_builder", ".", "quick_push", "(", "const0_rtx", ")", ";", "else", "a_builder", ".", "quick_push", "(", "a_builder", ".", "elt", "(", "i", "-", "a_elt_size", ")", ")", ";", "if", "(", "b_elt_size", ">", "permute_size", ")", "b_builder", ".", "quick_push", "(", "const0_rtx", ")", ";", "else", "b_builder", ".", "quick_push", "(", "b_builder", ".", "elt", "(", "i", "-", "b_elt_size", ")", ")", ";", "}", "a_builder", ".", "finalize", "(", ")", ";", "b_builder", ".", "finalize", "(", ")", ";", "rtx_insn", "*", "last", "=", "get_last_insn", "(", ")", ";", "rtx", "a", "=", "aarch64_expand_sve_const_pred_1", "(", "NULL_RTX", ",", "a_builder", ",", "false", ")", ";", "if", "(", "!", "a", ")", "return", "NULL_RTX", ";", "rtx", "b", "=", "a", ";", "if", "(", "a_builder", "!=", "b_builder", ")", "{", "b", "=", "aarch64_expand_sve_const_pred_1", "(", "NULL_RTX", ",", "b_builder", ",", "false", ")", ";", "if", "(", "!", "b", ")", "{", "delete_insns_since", "(", "last", ")", ";", "return", "NULL_RTX", ";", "}", "}", "machine_mode", "mode", "=", "aarch64_sve_pred_mode", "(", "permute_size", ")", ".", "require", "(", ")", ";", "target", "=", "aarch64_target_reg", "(", "target", ",", "GET_MODE", "(", "a", ")", ")", ";", "rtx", "type_reg", "=", "CONST0_RTX", "(", "mode", ")", ";", "emit_insn", "(", "gen_aarch64_sve_trn1_conv", "(", "mode", ",", "target", ",", "a", ",", "b", ",", "type_reg", ")", ")", ";", "return", "target", ";", "}", ""], "natrual_language": ["BUILDER", "is", "a", "constant", "predicate", "in", "which", "the", "index", "of", "every", "set", "bit", "is", "a", "multiple", "of", "ELT_SIZE", "(", "which", "is", "<", "=", "8", ")", ".", "Try", "to", "load", "the", "constant", "using", "a", "TRN1", "of", "size", "PERMUTE_SIZE", ",", "which", "is", ">", "=", "ELT_SIZE", ".", "Return", "the", "register", "on", "success", ",", "otherwise", "return", "null", ".", "Use", "TARGET", "as", "the", "register", "if", "nonnull", "and", "convenient", "."], "TS_V_token": ["aarch64", "0", "0", "0", "1", "0"], "File": "aarch641", "Func": "aarch64_expand_sve_const_pred_trn", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 697, "Length": 417, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_if_then_else_costs", "(", "rtx", "op0", ",", "rtx", "op1", ",", "rtx", "op2", ",", "int", "*", "cost", ",", "bool", "speed", ")", "{", "rtx", "inner", ";", "rtx", "comparator", ";", "enum", "rtx_code", "cmpcode", ";", "if", "(", "COMPARISON_P", "(", "op0", ")", ")", "{", "inner", "=", "XEXP", "(", "op0", ",", "0", ")", ";", "comparator", "=", "XEXP", "(", "op0", ",", "1", ")", ";", "cmpcode", "=", "GET_CODE", "(", "op0", ")", ";", "}", "else", "{", "inner", "=", "op0", ";", "comparator", "=", "const0_rtx", ";", "cmpcode", "=", "NE", ";", "}", "if", "(", "GET_CODE", "(", "op1", ")", "==", "PC", "||", "GET_CODE", "(", "op2", ")", "==", "PC", ")", "{", "if", "(", "GET_MODE_CLASS", "(", "GET_MODE", "(", "inner", ")", ")", "==", "MODE_CC", ")", "return", "true", ";", "else", "{", "if", "(", "cmpcode", "==", "NE", "||", "cmpcode", "==", "EQ", ")", "{", "if", "(", "comparator", "==", "const0_rtx", ")", "{", "if", "(", "GET_CODE", "(", "inner", ")", "==", "ZERO_EXTRACT", ")", "*", "cost", "+=", "rtx_cost", "(", "XEXP", "(", "inner", ",", "0", ")", ",", "VOIDmode", ",", "ZERO_EXTRACT", ",", "0", ",", "speed", ")", ";", "else", "*", "cost", "+=", "rtx_cost", "(", "inner", ",", "VOIDmode", ",", "cmpcode", ",", "0", ",", "speed", ")", ";", "return", "true", ";", "}", "}", "else", "if", "(", "cmpcode", "==", "LT", "||", "cmpcode", "==", "GE", ")", "{", "if", "(", "comparator", "==", "const0_rtx", ")", "return", "true", ";", "}", "}", "}", "else", "if", "(", "GET_MODE_CLASS", "(", "GET_MODE", "(", "inner", ")", ")", "==", "MODE_CC", ")", "{", "if", "(", "GET_CODE", "(", "op1", ")", "==", "COMPARE", ")", "{", "if", "(", "XEXP", "(", "op1", ",", "1", ")", "==", "const0_rtx", ")", "*", "cost", "+=", "1", ";", "if", "(", "speed", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "XEXP", "(", "op1", ",", "0", ")", ")", ";", "const", "struct", "cpu_cost_table", "*", "extra_cost", "=", "aarch64_tune_params", ".", "insn_extra_cost", ";", "if", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_INT", ")", "*", "cost", "+=", "extra_cost", "->", "alu", ".", "arith", ";", "else", "*", "cost", "+=", "extra_cost", "->", "fp", "[", "mode", "==", "DFmode", "]", ".", "compare", ";", "}", "return", "true", ";", "}", "if", "(", "GET_CODE", "(", "op1", ")", "==", "NEG", "||", "GET_CODE", "(", "op1", ")", "==", "NOT", "||", "(", "GET_CODE", "(", "op1", ")", "==", "PLUS", "&&", "XEXP", "(", "op1", ",", "1", ")", "==", "const1_rtx", ")", ")", "op1", "=", "XEXP", "(", "op1", ",", "0", ")", ";", "else", "if", "(", "GET_CODE", "(", "op1", ")", "==", "ZERO_EXTEND", "&&", "GET_CODE", "(", "op2", ")", "==", "ZERO_EXTEND", ")", "{", "op1", "=", "XEXP", "(", "op1", ",", "0", ")", ";", "op2", "=", "XEXP", "(", "op2", ",", "0", ")", ";", "}", "*", "cost", "+=", "rtx_cost", "(", "op1", ",", "VOIDmode", ",", "IF_THEN_ELSE", ",", "1", ",", "speed", ")", ";", "*", "cost", "+=", "rtx_cost", "(", "op2", ",", "VOIDmode", ",", "IF_THEN_ELSE", ",", "2", ",", "speed", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Calculate", "the", "cost", "of", "calculating", "(", "if_then_else", "(", "OP0", ")", "(", "OP1", ")", "(", "OP2", ")", ")", ",", "storing", "it", "in", "*", "COST", ".", "Result", "is", "true", "if", "the", "total", "cost", "of", "the", "operation", "has", "now", "been", "calculated", "."], "TS_V_token": ["aarch64", "0", "1", "0", "0", "0", "1", "1", "0", "1", "0", "0", "0", "1", "2"], "File": "aarch643", "Func": "aarch64_if_then_else_costs", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 698, "Length": 434, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isExtractVecEltCheap", "(", "EVT", "VT", ",", "unsigned", "Index", ")", "const", "override", "{", "EVT", "EltVT", "=", "VT", ".", "getScalarType", "(", ")", ";", "return", "(", "EltVT", "==", "MVT", "::", "f32", "||", "EltVT", "==", "MVT", "::", "f64", ")", "&&", "Index", "==", "0", ";", "}", ""], "natrual_language": ["Extract", "of", "a", "scalar", "FP", "value", "from", "index", "0", "of", "a", "vector", "is", "free", "."], "TS_V_token": ["X86", "MVT::f32", "MVT::f64", "0"], "File": "X86ISelLowering10", "Func": "isExtractVecEltCheap", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 699, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "void", "Initialize", "(", "MCContext", "&", "Ctx", ",", "const", "TargetMachine", "&", "TM", ")", "{", "TargetLoweringObjectFileMachO", "::", "Initialize", "(", "Ctx", ",", "TM", ")", ";", "LSDASection", "=", "getMachOSection", "(", "\"__TEXT\"", ",", "\"__gcc_except_tab\"", ",", "0", ",", "SectionKind", "::", "getReadOnlyWithRel", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "called", "before", "any", "actual", "lowering", "is", "done", "."], "TS_V_token": ["X86", "\"__TEXT\"", "\"__gcc_except_tab\"", "0"], "File": "X86ISelLowering201", "Func": "Initialize", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 700, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "bool", "enableMachineScheduler", "(", ")", "const", "{", "return", "true", ";", "}", ""], "natrual_language": ["Enable", "the", "MachineScheduler", "pass", "for", "all", "X86", "subtargets", "."], "TS_V_token": ["AArch64"], "File": "AArch64Subtarget32", "Func": "enableMachineScheduler", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 701, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "rs6000_function_pcrel_p", "(", "struct", "function", "*", "fn", ")", "{", "if", "(", "DEFAULT_ABI", "!=", "ABI_ELFv2", ")", "return", "false", ";", "if", "(", "fn", "==", "cfun", ")", "return", "(", "(", "rs6000_isa_flags", "&", "OPTION_MASK_PCREL", ")", "!=", "0", "&&", "TARGET_CMODEL", "==", "CMODEL_MEDIUM", ")", ";", "return", "rs6000_fndecl_pcrel_p", "(", "fn", "->", "decl", ")", ";", "}", ""], "natrual_language": ["Return", "whether", "we", "should", "generate", "PC-relative", "code", "for", "*", "FN", "."], "TS_V_token": ["rs6000", "0"], "File": "rs6000", "Func": "rs6000_function_pcrel_p", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 702, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "X86Subtarget", "::", "X86Subtarget", "(", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "X86TargetMachine", "&", "TM", ",", "unsigned", "StackAlignOverride", ")", ":", "X86GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "X86ProcFamily", "(", "Others", ")", ",", "PICStyle", "(", "PICStyles", "::", "None", ")", ",", "TM", "(", "TM", ")", ",", "TargetTriple", "(", "TT", ")", ",", "StackAlignOverride", "(", "StackAlignOverride", ")", ",", "In64BitMode", "(", "TargetTriple", ".", "getArch", "(", ")", "==", "Triple", "::", "x86_64", ")", ",", "In32BitMode", "(", "TargetTriple", ".", "getArch", "(", ")", "==", "Triple", "::", "x86", "&&", "TargetTriple", ".", "getEnvironment", "(", ")", "!=", "Triple", "::", "CODE16", ")", ",", "In16BitMode", "(", "TargetTriple", ".", "getArch", "(", ")", "==", "Triple", "::", "x86", "&&", "TargetTriple", ".", "getEnvironment", "(", ")", "==", "Triple", "::", "CODE16", ")", ",", "InstrInfo", "(", "initializeSubtargetDependencies", "(", "CPU", ",", "FS", ")", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", ",", "FrameLowering", "(", "*", "this", ",", "getStackAlignment", "(", ")", ")", "{", "if", "(", "!", "isPositionIndependent", "(", ")", ")", "setPICStyle", "(", "PICStyles", "::", "None", ")", ";", "else", "if", "(", "is64Bit", "(", ")", ")", "setPICStyle", "(", "PICStyles", "::", "RIPRel", ")", ";", "else", "if", "(", "isTargetCOFF", "(", ")", ")", "setPICStyle", "(", "PICStyles", "::", "None", ")", ";", "else", "if", "(", "isTargetDarwin", "(", ")", ")", "setPICStyle", "(", "PICStyles", "::", "StubPIC", ")", ";", "else", "if", "(", "isTargetELF", "(", ")", ")", "setPICStyle", "(", "PICStyles", "::", "GOT", ")", ";", "GISelAccessor", "*", "GISel", "=", "new", "GISelAccessor", "(", ")", ";", "X86GISelActualAccessor", "*", "GISel", "=", "new", "X86GISelActualAccessor", "(", ")", ";", "GISel", "->", "CallLoweringInfo", ".", "reset", "(", "new", "X86CallLowering", "(", "*", "getTargetLowering", "(", ")", ")", ")", ";", "GISel", "->", "Legalizer", ".", "reset", "(", "new", "X86LegalizerInfo", "(", "*", "this", ",", "TM", ")", ")", ";", "auto", "*", "RBI", "=", "new", "X86RegisterBankInfo", "(", "*", "getRegisterInfo", "(", ")", ")", ";", "GISel", "->", "RegBankInfo", ".", "reset", "(", "RBI", ")", ";", "GISel", "->", "InstSelector", ".", "reset", "(", "createX86InstructionSelector", "(", "TM", ",", "*", "this", ",", "*", "RBI", ")", ")", ";", "setGISelAccessor", "(", "*", "GISel", ")", ";", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86"], "File": "X86Subtarget24", "Func": "X86Subtarget", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 703, "Length": 314, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "sparc_tls_got", "(", "void", ")", "{", "if", "(", "flag_pic", ")", "{", "crtl", "->", "uses_pic_offset_table", "=", "1", ";", "return", "pic_offset_table_rtx", ";", "}", "if", "(", "TARGET_SUN_TLS", "&&", "TARGET_ARCH32", ")", "{", "load_got_register", "(", ")", ";", "return", "got_register_rtx", ";", "}", "return", "copy_to_reg", "(", "sparc_got", "(", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "Global", "Offset", "Table", "to", "be", "used", "in", "TLS", "mode", "."], "TS_V_token": ["sparc", "1"], "File": "sparc", "Func": "sparc_tls_got", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 704, "Length": 46, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64AdvSIMDScalar", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "mf", ")", "{", "bool", "Changed", "=", "false", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** AArch64AdvSIMDScalar *****\\n\"", ")", ";", "if", "(", "skipFunction", "(", "mf", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "MRI", "=", "&", "mf", ".", "getRegInfo", "(", ")", ";", "TII", "=", "mf", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "for", "(", "MachineFunction", "::", "iterator", "I", "=", "mf", ".", "begin", "(", ")", ",", "E", "=", "mf", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "if", "(", "processMachineBasicBlock", "(", "&", "*", "I", ")", ")", "Changed", "=", "true", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "\"***** AArch64AdvSIMDScalar *****\\n\""], "File": "AArch64AdvSIMDScalarPass12", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 705, "Length": 104, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsFastISel", "::", "fastLowerCall", "(", "CallLoweringInfo", "&", "CLI", ")", "{", "CallingConv", "::", "ID", "CC", "=", "CLI", ".", "CallConv", ";", "bool", "IsTailCall", "=", "CLI", ".", "IsTailCall", ";", "bool", "IsVarArg", "=", "CLI", ".", "IsVarArg", ";", "const", "Value", "*", "Callee", "=", "CLI", ".", "Callee", ";", "MCSymbol", "*", "Symbol", "=", "CLI", ".", "Symbol", ";", "if", "(", "CC", "==", "CallingConv", "::", "Fast", ")", "return", "false", ";", "if", "(", "IsTailCall", ")", "return", "false", ";", "if", "(", "IsVarArg", ")", "return", "false", ";", "MVT", "RetVT", ";", "if", "(", "CLI", ".", "RetTy", "->", "isVoidTy", "(", ")", ")", "RetVT", "=", "MVT", "::", "isVoid", ";", "else", "if", "(", "!", "isTypeSupported", "(", "CLI", ".", "RetTy", ",", "RetVT", ")", ")", "return", "false", ";", "for", "(", "auto", "Flag", ":", "CLI", ".", "OutFlags", ")", "if", "(", "Flag", ".", "isInReg", "(", ")", "||", "Flag", ".", "isSRet", "(", ")", "||", "Flag", ".", "isNest", "(", ")", "||", "Flag", ".", "isByVal", "(", ")", ")", "return", "false", ";", "SmallVector", "<", "MVT", ",", "16", ">", "OutVTs", ";", "OutVTs", ".", "reserve", "(", "CLI", ".", "OutVals", ".", "size", "(", ")", ")", ";", "for", "(", "auto", "*", "Val", ":", "CLI", ".", "OutVals", ")", "{", "MVT", "VT", ";", "if", "(", "!", "isTypeLegal", "(", "Val", "->", "getType", "(", ")", ",", "VT", ")", "&&", "!", "(", "VT", "==", "MVT", "::", "i1", "||", "VT", "==", "MVT", "::", "i8", "||", "VT", "==", "MVT", "::", "i16", ")", ")", "return", "false", ";", "if", "(", "VT", ".", "isVector", "(", ")", "||", "VT", ".", "getSizeInBits", "(", ")", ">", "64", ")", "return", "false", ";", "OutVTs", ".", "push_back", "(", "VT", ")", ";", "}", "Address", "Addr", ";", "if", "(", "!", "computeCallAddress", "(", "Callee", ",", "Addr", ")", ")", "return", "false", ";", "unsigned", "NumBytes", ";", "if", "(", "!", "processCallArgs", "(", "CLI", ",", "OutVTs", ",", "NumBytes", ")", ")", "return", "false", ";", "if", "(", "!", "Addr", ".", "getGlobalValue", "(", ")", ")", "return", "false", ";", "unsigned", "DestAddress", ";", "if", "(", "Symbol", ")", "DestAddress", "=", "materializeExternalCallSym", "(", "Symbol", ")", ";", "else", "DestAddress", "=", "materializeGV", "(", "Addr", ".", "getGlobalValue", "(", ")", ",", "MVT", "::", "i32", ")", ";", "emitInst", "(", "TargetOpcode", "::", "COPY", ",", "Mips", "::", "T9", ")", ".", "addReg", "(", "DestAddress", ")", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "*", "FuncInfo", ".", "MBB", ",", "FuncInfo", ".", "InsertPt", ",", "DbgLoc", ",", "TII", ".", "get", "(", "Mips", "::", "JALR", ")", ",", "Mips", "::", "RA", ")", ".", "addReg", "(", "Mips", "::", "T9", ")", ";", "for", "(", "auto", "Reg", ":", "CLI", ".", "OutRegs", ")", "MIB", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Implicit", ")", ";", "MIB", ".", "addRegMask", "(", "TRI", ".", "getCallPreservedMask", "(", "*", "FuncInfo", ".", "MF", ",", "CC", ")", ")", ";", "CLI", ".", "Call", "=", "MIB", ";", "if", "(", "EmitJalrReloc", "&&", "!", "Subtarget", "->", "inMips16Mode", "(", ")", ")", "{", "if", "(", "Symbol", ")", "MIB", ".", "addSym", "(", "Symbol", ",", "MipsII", "::", "MO_JALR", ")", ";", "else", "MIB", ".", "addSym", "(", "FuncInfo", ".", "MF", "->", "getContext", "(", ")", ".", "getOrCreateSymbol", "(", "Addr", ".", "getGlobalValue", "(", ")", "->", "getName", "(", ")", ")", ",", "MipsII", "::", "MO_JALR", ")", ";", "}", "return", "finishCall", "(", "CLI", ",", "RetVT", ",", "NumBytes", ")", ";", "}", ""], "natrual_language": ["This", "method", "is", "called", "by", "target-independent", "code", "to", "do", "target-", "specific", "call", "lowering", "."], "TS_V_token": ["Mips", "Mips", "MVT::isVoid", "16", "MVT::i1", "MVT::i8", "MVT::i16", "64", "MVT::i32", "Mips::T9", "Mips::JALR", "Mips::RA", "Mips::T9", "Mips", "MipsII::MO_JALR", "MipsII::MO_JALR"], "File": "MipsFastISel14", "Func": "fastLowerCall", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 706, "Length": 490, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86InstrInfo", "::", "hasLiveCondCodeDef", "(", "MachineInstr", "&", "MI", ")", "const", "{", "for", "(", "const", "MachineOperand", "&", "MO", ":", "MI", ".", "operands", "(", ")", ")", "{", "if", "(", "MO", ".", "isReg", "(", ")", "&&", "MO", ".", "isDef", "(", ")", "&&", "MO", ".", "getReg", "(", ")", "==", "X86", "::", "EFLAGS", "&&", "!", "MO", ".", "isDead", "(", ")", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["True", "if", "MI", "has", "a", "condition", "code", "def", ",", "e.g", "."], "TS_V_token": ["X86", "X86", "X86::EFLAGS"], "File": "X86InstrInfo153", "Func": "hasLiveCondCodeDef", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 707, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMOperand", "::", "dump", "(", "raw_ostream", "&", "OS", ")", "const", "{", "switch", "(", "Kind", ")", "{", "case", "CondCode", ":", "OS", "<<", "ARMCondCodeToString", "(", "getCondCode", "(", ")", ")", ";", "break", ";", "case", "CCOut", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "Immediate", ":", "getImm", "(", ")", "->", "print", "(", "OS", ")", ";", "break", ";", "case", "Memory", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "Register", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "RegisterList", ":", "case", "DPRRegisterList", ":", "case", "SPRRegisterList", ":", "{", "OS", "<<", "\"", "&", "RegList", "=", "getRegList", "(", ")", ";", "for", "(", "SmallVectorImpl", "<", "unsigned", ">", "::", "const_iterator", "I", "=", "RegList", ".", "begin", "(", ")", ",", "E", "=", "RegList", ".", "end", "(", ")", ";", "I", "!=", "E", ";", ")", "{", "OS", "<<", "*", "I", ";", "if", "(", "++", "I", "<", "E", ")", "OS", "<<", "\", \"", ";", "}", "OS", "<<", "\">\"", ";", "break", ";", "}", "case", "Token", ":", "OS", "<<", "\"'\"", "<<", "getToken", "(", ")", "<<", "\"'\"", ";", "break", ";", "}", "}", ""], "natrual_language": ["Dump", "the", "plan", "to", "stderr", "(", "for", "debugging", ")", "."], "TS_V_token": ["ARM", "ARM", "ARM", "\"\"", "\"\"", "\"\"", "\"\"", "\"'\"", "\"'\""], "File": "ARMAsmParser46", "Func": "dump", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 708, "Length": 180, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86AsmParser", "::", "parsePrimaryExpr", "(", "const", "MCExpr", "*", "&", "Res", ",", "SMLoc", "&", "EndLoc", ")", "{", "MCAsmParser", "&", "Parser", "=", "getParser", "(", ")", ";", "if", "(", "getTok", "(", ")", ".", "is", "(", "AsmToken", "::", "Percent", ")", "||", "(", "isParsingIntelSyntax", "(", ")", "&&", "getTok", "(", ")", ".", "is", "(", "AsmToken", "::", "Identifier", ")", "&&", "MatchRegisterName", "(", "Parser", ".", "getTok", "(", ")", ".", "getString", "(", ")", ")", ")", ")", "{", "SMLoc", "StartLoc", "=", "Parser", ".", "getTok", "(", ")", ".", "getLoc", "(", ")", ";", "unsigned", "RegNo", ";", "if", "(", "ParseRegister", "(", "RegNo", ",", "StartLoc", ",", "EndLoc", ")", ")", "return", "true", ";", "Res", "=", "X86MCExpr", "::", "create", "(", "RegNo", ",", "Parser", ".", "getContext", "(", ")", ")", ";", "return", "false", ";", "}", "return", "Parser", ".", "parsePrimaryExpr", "(", "Res", ",", "EndLoc", ")", ";", "}", ""], "natrual_language": ["Parse", "a", "primary", "expression", "."], "TS_V_token": ["X86", "X86", "X86MCExpr::create"], "File": "X86AsmParser (2)5", "Func": "parsePrimaryExpr", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 709, "Length": 128, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Thumb1InstrInfo", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ")", "const", "{", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "ARMFunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "if", "(", "CSI", ".", "empty", "(", ")", ")", "return", "false", ";", "bool", "isVarArg", "=", "AFI", "->", "getVarArgsRegSaveSize", "(", ")", ">", "0", ";", "DebugLoc", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "MF", ",", "DL", ",", "get", "(", "ARM", "::", "tPOP", ")", ")", ";", "AddDefaultPred", "(", "MIB", ")", ";", "MIB", ".", "addReg", "(", "0", ")", ";", "bool", "NumRegs", "=", "false", ";", "for", "(", "unsigned", "i", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "0", ";", "--", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "-", "1", "]", ".", "getReg", "(", ")", ";", "if", "(", "Reg", "==", "ARM", "::", "LR", ")", "{", "if", "(", "isVarArg", ")", "continue", ";", "Reg", "=", "ARM", "::", "PC", ";", "(", "*", "MIB", ")", ".", "setDesc", "(", "get", "(", "ARM", "::", "tPOP_RET", ")", ")", ";", "MI", "=", "MBB", ".", "erase", "(", "MI", ")", ";", "}", "MIB", ".", "addReg", "(", "Reg", ",", "getDefRegState", "(", "true", ")", ")", ";", "NumRegs", "=", "true", ";", "}", "if", "(", "NumRegs", ")", "MBB", ".", "insert", "(", "MI", ",", "&", "*", "MIB", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["restoreCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "restore", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "load", "instructions", "via", "loadRegToStackSlot", "(", ")", "."], "TS_V_token": ["ARM", "ARM", "ARM", "0", "ARM::tPOP", "0", "0", "1", "ARM::LR", "ARM::PC", "ARM::tPOP_RET"], "File": "Thumb1InstrInfo22", "Func": "restoreCalleeSavedRegisters", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 710, "Length": 230, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "isShift", "(", "MachineInstr", "*", "MI", ",", "unsigned", "Opcode", ",", "int64_t", "Imm", ")", "{", "return", "(", "MI", "->", "getOpcode", "(", ")", "==", "Opcode", "&&", "!", "MI", "->", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", "&&", "MI", "->", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", "==", "Imm", ")", ";", "}", ""], "natrual_language": ["Determine", "if", "the", "Opcode", "is", "one", "of", "the", "shift", "instructions", "."], "TS_V_token": ["SystemZ", "2", "3"], "File": "SystemZInstrInfo", "Func": "isShift", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 711, "Length": 52, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SparcSubtarget", "&", "SparcSubtarget", "::", "initializeSubtargetDependencies", "(", "StringRef", "CPU", ",", "StringRef", "FS", ")", "{", "IsV9", "=", "false", ";", "IsLeon", "=", "false", ";", "V8DeprecatedInsts", "=", "false", ";", "IsVIS", "=", "false", ";", "HasHardQuad", "=", "false", ";", "UsePopc", "=", "false", ";", "UseSoftFloat", "=", "false", ";", "HasLeonCasa", "=", "false", ";", "HasUmacSmac", "=", "false", ";", "InsertNOPLoad", "=", "false", ";", "FixFSMULD", "=", "false", ";", "ReplaceFMULS", "=", "false", ";", "FixAllFDIVSQRT", "=", "false", ";", "std", "::", "string", "CPUName", "=", "CPU", ";", "if", "(", "CPUName", ".", "empty", "(", ")", ")", "CPUName", "=", "(", "Is64Bit", ")", "?", "\"v9\"", ":", "\"v8\"", ";", "ParseSubtargetFeatures", "(", "CPUName", ",", "FS", ")", ";", "if", "(", "!", "IsV9", ")", "UsePopc", "=", "false", ";", "return", "*", "this", ";", "}", ""], "natrual_language": ["initializeSubtargetDependencies", "-", "Initializes", "using", "a", "CPU", ",", "a", "TuneCPU", ",", "and", "feature", "string", "so", "that", "we", "can", "use", "initializer", "lists", "for", "subtarget", "initialization", "."], "TS_V_token": ["Sparc", "Sparc", "Sparc", "\"v9\"", "\"v8\""], "File": "SparcSubtarget37", "Func": "initializeSubtargetDependencies", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 712, "Length": 111, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ix86_expand_fp_vec_cmp", "(", "rtx", "operands", "[", "]", ")", "{", "enum", "rtx_code", "code", "=", "GET_CODE", "(", "operands", "[", "1", "]", ")", ";", "rtx", "cmp", ";", "code", "=", "ix86_prepare_sse_fp_compare_args", "(", "operands", "[", "0", "]", ",", "code", ",", "&", "operands", "[", "2", "]", ",", "&", "operands", "[", "3", "]", ")", ";", "if", "(", "code", "==", "UNKNOWN", ")", "{", "rtx", "temp", ";", "switch", "(", "GET_CODE", "(", "operands", "[", "1", "]", ")", ")", "{", "case", "LTGT", ":", "temp", "=", "ix86_expand_sse_cmp", "(", "operands", "[", "0", "]", ",", "ORDERED", ",", "operands", "[", "2", "]", ",", "operands", "[", "3", "]", ",", "NULL", ",", "NULL", ")", ";", "cmp", "=", "ix86_expand_sse_cmp", "(", "operands", "[", "0", "]", ",", "NE", ",", "operands", "[", "2", "]", ",", "operands", "[", "3", "]", ",", "NULL", ",", "NULL", ")", ";", "code", "=", "AND", ";", "break", ";", "case", "UNEQ", ":", "temp", "=", "ix86_expand_sse_cmp", "(", "operands", "[", "0", "]", ",", "UNORDERED", ",", "operands", "[", "2", "]", ",", "operands", "[", "3", "]", ",", "NULL", ",", "NULL", ")", ";", "cmp", "=", "ix86_expand_sse_cmp", "(", "operands", "[", "0", "]", ",", "EQ", ",", "operands", "[", "2", "]", ",", "operands", "[", "3", "]", ",", "NULL", ",", "NULL", ")", ";", "code", "=", "IOR", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "cmp", "=", "expand_simple_binop", "(", "GET_MODE", "(", "cmp", ")", ",", "code", ",", "temp", ",", "cmp", ",", "cmp", ",", "1", ",", "OPTAB_DIRECT", ")", ";", "}", "else", "cmp", "=", "ix86_expand_sse_cmp", "(", "operands", "[", "0", "]", ",", "code", ",", "operands", "[", "2", "]", ",", "operands", "[", "3", "]", ",", "NULL", ",", "NULL", ")", ";", "if", "(", "operands", "[", "0", "]", "!=", "cmp", ")", "emit_move_insn", "(", "operands", "[", "0", "]", ",", "cmp", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Expand", "fp", "vector", "comparison", "."], "TS_V_token": ["i386", "1", "0", "2", "3", "1", "0", "2", "3", "0", "2", "3", "0", "2", "3", "0", "2", "3", "1", "0", "2", "3", "0", "0"], "File": "i386-expand", "Func": "ix86_expand_fp_vec_cmp", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 713, "Length": 271, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "n8_consumed_by_ex_p", "(", "rtx_insn", "*", "consumer", ",", "rtx", "def_reg", ")", "{", "rtx", "use_rtx", ";", "switch", "(", "get_attr_type", "(", "consumer", ")", ")", "{", "case", "TYPE_ALU", ":", "if", "(", "movd44_even_dep_p", "(", "consumer", ",", "def_reg", ")", ")", "return", "true", ";", "use_rtx", "=", "SET_SRC", "(", "PATTERN", "(", "consumer", ")", ")", ";", "break", ";", "case", "TYPE_MUL", ":", "use_rtx", "=", "SET_SRC", "(", "PATTERN", "(", "consumer", ")", ")", ";", "break", ";", "case", "TYPE_MAC", ":", "use_rtx", "=", "extract_mac_non_acc_rtx", "(", "consumer", ")", ";", "break", ";", "case", "TYPE_DIV", ":", "if", "(", "divmod_p", "(", "consumer", ")", ")", "use_rtx", "=", "SET_SRC", "(", "parallel_element", "(", "consumer", ",", "0", ")", ")", ";", "else", "use_rtx", "=", "SET_SRC", "(", "PATTERN", "(", "consumer", ")", ")", ";", "break", ";", "case", "TYPE_BRANCH", ":", "use_rtx", "=", "extract_branch_condition_rtx", "(", "consumer", ")", ";", "break", ";", "case", "TYPE_STORE", ":", "if", "(", "!", "post_update_insn_p", "(", "consumer", ")", "&&", "!", "immed_offset_p", "(", "extract_mem_rtx", "(", "consumer", ")", ")", ")", "return", "false", ";", "use_rtx", "=", "SET_SRC", "(", "PATTERN", "(", "consumer", ")", ")", ";", "break", ";", "case", "TYPE_STORE_MULTIPLE", ":", "use_rtx", "=", "extract_nth_access_rtx", "(", "consumer", ",", "0", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "return", "reg_overlap_p", "(", "def_reg", ",", "use_rtx", ")", ";", "}", ""], "natrual_language": ["Check", "the", "dependency", "between", "the", "producer", "defining", "DEF_REG", "and", "CONSUMER", "requiring", "input", "operand", "at", "EX", "."], "TS_V_token": ["nds32", "0", "0"], "File": "nds32-pipelines-auxiliary", "Func": "n8_consumed_by_ex_p", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 714, "Length": 188, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARM64RegisterInfo", "::", "needsFrameBaseReg", "(", "MachineInstr", "*", "MI", ",", "int64_t", "Offset", ")", "const", "{", "for", "(", "unsigned", "i", "=", "0", ";", "!", "MI", "->", "getOperand", "(", "i", ")", ".", "isFI", "(", ")", ";", "++", "i", ")", "assert", "(", "i", "<", "MI", "->", "getNumOperands", "(", ")", "&&", "\"Instr doesn't have FrameIndex operand!\"", ")", ";", "if", "(", "!", "MI", "->", "mayLoad", "(", ")", "&&", "!", "MI", "->", "mayStore", "(", ")", ")", "return", "false", ";", "MachineFunction", "&", "MF", "=", "*", "MI", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "int64_t", "FPOffset", "=", "Offset", "-", "16", "*", "20", ";", "Offset", "+=", "MFI", "->", "getLocalFrameSize", "(", ")", ";", "Offset", "+=", "128", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", "&&", "isFrameOffsetLegal", "(", "MI", ",", "FPOffset", ")", ")", "return", "false", ";", "if", "(", "isFrameOffsetLegal", "(", "MI", ",", "Offset", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "instruction", "'s", "frame", "index", "reference", "would", "be", "better", "served", "by", "a", "base", "register", "other", "than", "FP", "or", "SP", "."], "TS_V_token": ["ARM64", "ARM64", "0", "\"Instr doesn't have FrameIndex operand!\"", "16", "20", "128"], "File": "ARM64RegisterInfo", "Func": "needsFrameBaseReg", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 715, "Length": 164, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZPostRASchedStrategy", "::", "releaseTopNode", "(", "SUnit", "*", "SU", ")", "{", "const", "MCSchedClassDesc", "*", "SC", "=", "HazardRec", "->", "getSchedClass", "(", "SU", ")", ";", "bool", "AffectsGrouping", "=", "(", "SC", "->", "isValid", "(", ")", "&&", "(", "SC", "->", "BeginGroup", "||", "SC", "->", "EndGroup", ")", ")", ";", "SU", "->", "isScheduleHigh", "=", "(", "AffectsGrouping", "||", "SU", "->", "isUnbuffered", ")", ";", "Available", ".", "insert", "(", "SU", ")", ";", "}", ""], "natrual_language": ["SU", "has", "had", "all", "predecessor", "dependencies", "resolved", "."], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZMachineScheduler", "Func": "releaseTopNode", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 716, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "SDValue", ",", "SDValue", ">", "SystemZSelectionDAGInfo", "::", "EmitTargetCodeForStrcmp", "(", "SelectionDAG", "&", "DAG", ",", "const", "SDLoc", "&", "DL", ",", "SDValue", "Chain", ",", "SDValue", "Src1", ",", "SDValue", "Src2", ",", "MachinePointerInfo", "Op1PtrInfo", ",", "MachinePointerInfo", "Op2PtrInfo", ")", "const", "{", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "Src1", ".", "getValueType", "(", ")", ",", "MVT", "::", "i32", ",", "MVT", "::", "Other", ")", ";", "SDValue", "Unused", "=", "DAG", ".", "getNode", "(", "SystemZISD", "::", "STRCMP", ",", "DL", ",", "VTs", ",", "Chain", ",", "Src2", ",", "Src1", ",", "DAG", ".", "getConstant", "(", "0", ",", "DL", ",", "MVT", "::", "i32", ")", ")", ";", "SDValue", "CCReg", "=", "Unused", ".", "getValue", "(", "1", ")", ";", "Chain", "=", "Unused", ".", "getValue", "(", "2", ")", ";", "return", "std", "::", "make_pair", "(", "addIPMSequence", "(", "DL", ",", "CCReg", ",", "DAG", ")", ",", "Chain", ")", ";", "}", ""], "natrual_language": ["Emit", "target-specific", "code", "that", "performs", "a", "strcmp", ",", "in", "cases", "where", "that", "is", "faster", "than", "a", "libcall", "."], "TS_V_token": ["SystemZ", "SystemZ", "MVT::i32", "MVT::Other", "SystemZISD::STRCMP", "0", "MVT::i32", "1", "2"], "File": "SystemZSelectionDAGInfo", "Func": "EmitTargetCodeForStrcmp", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 717, "Length": 132, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SVEIntrinsicOpts", "::", "runOnModule", "(", "Module", "&", "M", ")", "{", "bool", "Changed", "=", "false", ";", "SmallSetVector", "<", "Function", "*", ",", "4", ">", "Functions", ";", "for", "(", "auto", "&", "F", ":", "M", ".", "getFunctionList", "(", ")", ")", "{", "if", "(", "!", "F", ".", "isDeclaration", "(", ")", ")", "continue", ";", "switch", "(", "F", ".", "getIntrinsicID", "(", ")", ")", "{", "case", "Intrinsic", "::", "aarch64_sve_convert_from_svbool", ":", "case", "Intrinsic", "::", "aarch64_sve_ptest_any", ":", "case", "Intrinsic", "::", "aarch64_sve_ptest_first", ":", "case", "Intrinsic", "::", "aarch64_sve_ptest_last", ":", "for", "(", "auto", "I", "=", "F", ".", "user_begin", "(", ")", ",", "E", "=", "F", ".", "user_end", "(", ")", ";", "I", "!=", "E", ";", ")", "{", "auto", "*", "Inst", "=", "dyn_cast", "<", "Instruction", ">", "(", "*", "I", "++", ")", ";", "Functions", ".", "insert", "(", "Inst", "->", "getFunction", "(", ")", ")", ";", "}", "break", ";", "default", ":", "break", ";", "}", "}", "if", "(", "!", "Functions", ".", "empty", "(", ")", ")", "Changed", "|=", "optimizeFunctions", "(", "Functions", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnModule", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "process", "the", "module", "being", "operated", "on", "."], "TS_V_token": ["AArch64", "4", "Intrinsic::aarch64_sve_convert_from_svbool", "Intrinsic::aarch64_sve_ptest_any", "Intrinsic::aarch64_sve_ptest_first", "Intrinsic::aarch64_sve_ptest_last"], "File": "SVEIntrinsicOpts", "Func": "runOnModule", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 718, "Length": 156, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", "\"AArch64 pseudo instruction expansion pass\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["AArch64", "\"AArch64 pseudo instruction expansion pass\""], "File": "AArch64ExpandPseudoInsts", "Func": "getPassName", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 719, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "CSKYFrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetRegisterInfo", "*", "RegInfo", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "return", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "DisableFramePointerElim", "(", "MF", ")", "||", "RegInfo", "->", "hasStackRealignment", "(", "MF", ")", "||", "MFI", ".", "hasVarSizedObjects", "(", ")", "||", "MFI", ".", "isFrameAddressTaken", "(", ")", ";", "}", ""], "natrual_language": ["hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "."], "TS_V_token": ["CSKY", "CSKY"], "File": "CSKYFrameLowering", "Func": "hasFP", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 720, "Length": 72, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "initialize", "(", "ScheduleDAGMI", "*", "dag", ")", "override", "{", "}", ""], "natrual_language": ["Initialize", "the", "strategy", "after", "building", "the", "DAG", "for", "a", "new", "region", "."], "TS_V_token": ["SystemZ"], "File": "SystemZMachineScheduler", "Func": "initialize", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 721, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "char", "PPCSubtarget", "::", "classifyGlobalReference", "(", "const", "GlobalValue", "*", "GV", ")", "const", "{", "if", "(", "TM", ".", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Large", ")", "return", "PPCII", "::", "MO_PIC_FLAG", "|", "PPCII", "::", "MO_NLP_FLAG", ";", "if", "(", "TM", ".", "shouldAssumeDSOLocal", "(", "*", "GV", "->", "getParent", "(", ")", ",", "GV", ")", ")", "return", "PPCII", "::", "MO_PIC_FLAG", ";", "return", "PPCII", "::", "MO_PIC_FLAG", "|", "PPCII", "::", "MO_NLP_FLAG", ";", "}", ""], "natrual_language": ["Classify", "a", "global", "variable", "reference", "for", "the", "current", "subtarget", "according", "to", "how", "we", "should", "reference", "it", "in", "a", "non-pcrel", "context", "."], "TS_V_token": ["PowerPC", "PPC", "PPCII::MO_PIC_FLAG", "PPCII::MO_NLP_FLAG", "PPCII::MO_PIC_FLAG", "PPCII::MO_PIC_FLAG", "PPCII::MO_NLP_FLAG"], "File": "PPCSubtarget", "Func": "classifyGlobalReference", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 722, "Length": 65, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "function_arg_advance", "(", "CUMULATIVE_ARGS", "*", "cum", ",", "enum", "machine_mode", "mode", ",", "tree", "type", ",", "int", "named", ")", "{", "struct", "mips_arg_info", "info", ";", "mips_arg_info", "(", "cum", ",", "mode", ",", "type", ",", "named", ",", "&", "info", ")", ";", "if", "(", "!", "info", ".", "fpr_p", ")", "cum", "->", "gp_reg_found", "=", "true", ";", "if", "(", "cum", "->", "arg_number", "<", "2", "&&", "info", ".", "fpr_p", ")", "cum", "->", "fp_code", "+=", "(", "mode", "==", "SFmode", "?", "1", ":", "2", ")", "<<", "(", "(", "cum", "->", "arg_number", "-", "1", ")", "*", "2", ")", ";", "if", "(", "mips_abi", "!=", "ABI_EABI", "||", "!", "info", ".", "fpr_p", ")", "cum", "->", "num_gprs", "=", "info", ".", "reg_offset", "+", "info", ".", "reg_words", ";", "else", "if", "(", "info", ".", "reg_words", ">", "0", ")", "cum", "->", "num_fprs", "+=", "FP_INC", ";", "if", "(", "info", ".", "stack_words", ">", "0", ")", "cum", "->", "stack_words", "=", "info", ".", "stack_offset", "+", "info", ".", "stack_words", ";", "cum", "->", "arg_number", "++", ";", "}", ""], "natrual_language": ["Handle", "the", "FUNCTION_ARG_ADVANCE", "macro", ".", "Update", "the", "data", "in", "CUM", "to", "advance", "over", "an", "argument", "of", "mode", "MODE", "and", "data", "type", "TYPE", ".", "TYPE", "is", "null", "for", "libcalls", "where", "that", "information", "may", "not", "be", "available", "."], "TS_V_token": ["mips", "2", "1", "2", "1", "2", "0", "0"], "File": "mips3", "Func": "function_arg_advance", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 723, "Length": 151, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Cpu0DAGToDAGISel", "::", "Select", "(", "SDNode", "*", "Node", ")", "{", "unsigned", "Opcode", "=", "Node", "->", "getOpcode", "(", ")", ";", "LLVM_DEBUG", "(", "errs", "(", ")", "<<", "\"Selecting: \"", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "errs", "(", ")", "<<", "\"\\n\"", ")", ";", "if", "(", "Node", "->", "isMachineOpcode", "(", ")", ")", "{", "LLVM_DEBUG", "(", "errs", "(", ")", "<<", "\"== \"", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "errs", "(", ")", "<<", "\"\\n\"", ")", ";", "Node", "->", "setNodeId", "(", "-", "1", ")", ";", "return", ";", "}", "if", "(", "trySelect", "(", "Node", ")", ")", "return", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "GLOBAL_OFFSET_TABLE", ":", "ReplaceNode", "(", "Node", ",", "getGlobalBaseReg", "(", ")", ")", ";", "return", ";", "}", "SelectCode", "(", "Node", ")", ";", "}", ""], "natrual_language": ["Main", "hook", "for", "targets", "to", "transform", "nodes", "into", "machine", "nodes", "."], "TS_V_token": ["Cpu0", "Cpu0", "\"Selecting: \"", "\"\\n\"", "\"== \"", "\"\\n\"", "1", "ISD::GLOBAL_OFFSET_TABLE"], "File": "Cpu0ISelDAGToDAG", "Func": "Select", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 724, "Length": 124, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "MMIXRegisterInfo", "::", "getNoPreservedMask", "(", ")", "const", "{", "return", "CSR_NoRegs_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "register", "mask", "that", "clobbers", "everything", "."], "TS_V_token": ["MMIX", "MMIX"], "File": "MMIXRegisterInfo", "Func": "getNoPreservedMask", "Target": "MMIX", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 725, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_can_inline_p", "(", "tree", "caller", ",", "tree", "callee", ")", "{", "tree", "caller_tree", "=", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "caller", ")", ";", "tree", "callee_tree", "=", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "callee", ")", ";", "struct", "cl_target_option", "*", "caller_opts", "=", "TREE_TARGET_OPTION", "(", "caller_tree", "?", "caller_tree", ":", "target_option_default_node", ")", ";", "struct", "cl_target_option", "*", "callee_opts", "=", "TREE_TARGET_OPTION", "(", "callee_tree", "?", "callee_tree", ":", "target_option_default_node", ")", ";", "const", "struct", "arm_fpu_desc", "*", "caller_fpu", "=", "&", "all_fpus", "[", "caller_opts", "->", "x_arm_fpu_index", "]", ";", "const", "struct", "arm_fpu_desc", "*", "callee_fpu", "=", "&", "all_fpus", "[", "callee_opts", "->", "x_arm_fpu_index", "]", ";", "if", "(", "(", "caller_fpu", "->", "features", "&", "callee_fpu", "->", "features", ")", "!=", "callee_fpu", "->", "features", ")", "return", "false", ";", "if", "(", "callee_fpu", "->", "model", "!=", "caller_fpu", "->", "model", "||", "callee_fpu", "->", "regs", "!=", "callee_fpu", "->", "regs", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Hook", "to", "determine", "if", "one", "function", "can", "safely", "inline", "another", "."], "TS_V_token": ["arm"], "File": "arm5", "Func": "arm_can_inline_p", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 726, "Length": 127, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "LEGDAGToDAGISel", "::", "Select", "(", "SDNode", "*", "N", ")", "{", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "case", "ISD", "::", "Constant", ":", "SelectMoveImmediate", "(", "N", ")", ";", "return", ";", "case", "ISD", "::", "BR_CC", ":", "SelectConditionalBranch", "(", "N", ")", ";", "return", ";", "}", "SelectCode", "(", "N", ")", ";", "}", ""], "natrual_language": ["Main", "hook", "for", "targets", "to", "transform", "nodes", "into", "machine", "nodes", "."], "TS_V_token": ["LEG", "LEG", "ISD::Constant", "ISD::BR_CC"], "File": "LEGISelDAGToDAG", "Func": "Select", "Target": "LEG", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 727, "Length": 50, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_pragma_target_parse", "(", "tree", "args", ",", "tree", "pop_target", ")", "{", "tree", "prev_tree", "=", "build_target_option_node", "(", "&", "global_options", ")", ";", "tree", "cur_tree", ";", "struct", "cl_target_option", "*", "prev_opt", ";", "struct", "cl_target_option", "*", "cur_opt", ";", "HOST_WIDE_INT", "prev_isa", ";", "HOST_WIDE_INT", "cur_isa", ";", "HOST_WIDE_INT", "diff_isa", ";", "HOST_WIDE_INT", "prev_isa2", ";", "HOST_WIDE_INT", "cur_isa2", ";", "HOST_WIDE_INT", "diff_isa2", ";", "enum", "processor_type", "prev_arch", ";", "enum", "processor_type", "prev_tune", ";", "enum", "processor_type", "cur_arch", ";", "enum", "processor_type", "cur_tune", ";", "if", "(", "!", "args", ")", "{", "cur_tree", "=", "(", "pop_target", "?", "pop_target", ":", "target_option_default_node", ")", ";", "cl_target_option_restore", "(", "&", "global_options", ",", "TREE_TARGET_OPTION", "(", "cur_tree", ")", ")", ";", "}", "else", "{", "cur_tree", "=", "ix86_valid_target_attribute_tree", "(", "args", ",", "&", "global_options", ",", "&", "global_options_set", ")", ";", "if", "(", "!", "cur_tree", "||", "cur_tree", "==", "error_mark_node", ")", "{", "cl_target_option_restore", "(", "&", "global_options", ",", "TREE_TARGET_OPTION", "(", "prev_tree", ")", ")", ";", "return", "false", ";", "}", "}", "target_option_current_node", "=", "cur_tree", ";", "ix86_reset_previous_fndecl", "(", ")", ";", "prev_opt", "=", "TREE_TARGET_OPTION", "(", "prev_tree", ")", ";", "cur_opt", "=", "TREE_TARGET_OPTION", "(", "cur_tree", ")", ";", "prev_isa", "=", "prev_opt", "->", "x_ix86_isa_flags", ";", "cur_isa", "=", "cur_opt", "->", "x_ix86_isa_flags", ";", "diff_isa", "=", "(", "prev_isa", "^", "cur_isa", ")", ";", "prev_isa2", "=", "prev_opt", "->", "x_ix86_isa_flags2", ";", "cur_isa2", "=", "cur_opt", "->", "x_ix86_isa_flags2", ";", "diff_isa2", "=", "(", "prev_isa2", "^", "cur_isa2", ")", ";", "prev_arch", "=", "(", "enum", "processor_type", ")", "prev_opt", "->", "arch", ";", "prev_tune", "=", "(", "enum", "processor_type", ")", "prev_opt", "->", "tune", ";", "cur_arch", "=", "(", "enum", "processor_type", ")", "cur_opt", "->", "arch", ";", "cur_tune", "=", "(", "enum", "processor_type", ")", "cur_opt", "->", "tune", ";", "if", "(", "cur_arch", "==", "prev_arch", ")", "cur_arch", "=", "prev_arch", "=", "PROCESSOR_max", ";", "if", "(", "cur_tune", "==", "prev_tune", ")", "cur_tune", "=", "prev_tune", "=", "PROCESSOR_max", ";", "ix86_target_macros_internal", "(", "prev_isa", "&", "diff_isa", ",", "prev_isa2", "&", "diff_isa2", ",", "prev_arch", ",", "prev_tune", ",", "(", "enum", "fpmath_unit", ")", "prev_opt", "->", "x_ix86_fpmath", ",", "cpp_undef", ")", ";", "cpp_options", "*", "cpp_opts", "=", "cpp_get_options", "(", "parse_in", ")", ";", "unsigned", "char", "saved_warn_unused_macros", "=", "cpp_opts", "->", "warn_unused_macros", ";", "cpp_opts", "->", "warn_unused_macros", "=", "0", ";", "ix86_target_macros_internal", "(", "cur_isa", "&", "diff_isa", ",", "cur_isa2", "&", "diff_isa2", ",", "cur_arch", ",", "cur_tune", ",", "(", "enum", "fpmath_unit", ")", "cur_opt", "->", "x_ix86_fpmath", ",", "cpp_define", ")", ";", "cpp_opts", "->", "warn_unused_macros", "=", "saved_warn_unused_macros", ";", "return", "true", ";", "}", ""], "natrual_language": ["Hook", "to", "validate", "the", "current", "#", "pragma", "GCC", "target", "and", "set", "the", "state", ",", "and", "update", "the", "macros", "based", "on", "what", "was", "changed", ".", "If", "ARGS", "is", "NULL", ",", "then", "POP_TARGET", "is", "used", "to", "reset", "the", "options", "."], "TS_V_token": ["i386", "0"], "File": "i386-c4", "Func": "ix86_pragma_target_parse", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 728, "Length": 345, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "shouldReduceLoadWidth", "(", "SDNode", "*", "Load", ",", "ISD", "::", "LoadExtType", "ExtTy", ",", "EVT", "NewVT", ")", "const", "{", "assert", "(", "cast", "<", "LoadSDNode", ">", "(", "Load", ")", "->", "isSimple", "(", ")", "&&", "\"illegal to narrow\"", ")", ";", "SDValue", "BasePtr", "=", "cast", "<", "LoadSDNode", ">", "(", "Load", ")", "->", "getBasePtr", "(", ")", ";", "if", "(", "BasePtr", ".", "getOpcode", "(", ")", "==", "X86ISD", "::", "WrapperRIP", ")", "if", "(", "const", "auto", "*", "GA", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "BasePtr", ".", "getOperand", "(", "0", ")", ")", ")", "return", "GA", "->", "getTargetFlags", "(", ")", "!=", "X86II", "::", "MO_GOTTPOFF", ";", "EVT", "VT", "=", "Load", "->", "getValueType", "(", "0", ")", ";", "if", "(", "(", "VT", ".", "is256BitVector", "(", ")", "||", "VT", ".", "is512BitVector", "(", ")", ")", "&&", "!", "Load", "->", "hasOneUse", "(", ")", ")", "{", "for", "(", "auto", "UI", "=", "Load", "->", "use_begin", "(", ")", ",", "UE", "=", "Load", "->", "use_end", "(", ")", ";", "UI", "!=", "UE", ";", "++", "UI", ")", "{", "if", "(", "UI", ".", "getUse", "(", ")", ".", "getResNo", "(", ")", "!=", "0", ")", "continue", ";", "if", "(", "UI", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "EXTRACT_SUBVECTOR", "||", "!", "UI", "->", "hasOneUse", "(", ")", "||", "UI", "->", "use_begin", "(", ")", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "STORE", ")", "return", "true", ";", "}", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "we", "believe", "it", "is", "correct", "and", "profitable", "to", "reduce", "the", "load", "node", "to", "a", "smaller", "type", "."], "TS_V_token": ["X86", "X86", "ISD::LoadExtType", "\"illegal to narrow\"", "X86ISD::WrapperRIP", "0", "X86II::MO_GOTTPOFF", "0", "0", "ISD::EXTRACT_SUBVECTOR", "ISD::STORE"], "File": "X86ISelLowering (2)5", "Func": "shouldReduceLoadWidth", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 729, "Length": 216, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ARMTTIImpl", "::", "getFPOpCost", "(", "Type", "*", "Ty", ")", "{", "if", "(", "ST", "->", "hasVFP2", "(", ")", "&&", "!", "ST", "->", "isThumb1Only", "(", ")", ")", "{", "if", "(", "Ty", "->", "isFloatTy", "(", ")", ")", "{", "return", "TargetTransformInfo", "::", "TCC_Basic", ";", "}", "if", "(", "Ty", "->", "isDoubleTy", "(", ")", ")", "{", "return", "ST", "->", "isFPOnlySP", "(", ")", "?", "TargetTransformInfo", "::", "TCC_Expensive", ":", "TargetTransformInfo", "::", "TCC_Basic", ";", "}", "}", "return", "TargetTransformInfo", "::", "TCC_Expensive", ";", "}", ""], "natrual_language": ["Return", "the", "expected", "cost", "of", "supporting", "the", "floating", "point", "operation", "of", "the", "specified", "type", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMTargetTransformInfo (2)", "Func": "getFPOpCost", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 730, "Length": 73, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_evpc_neon_vuzp", "(", "struct", "expand_vec_perm_d", "*", "d", ")", "{", "unsigned", "int", "i", ",", "odd", ",", "mask", ",", "nelt", "=", "d", "->", "perm", ".", "length", "(", ")", ";", "rtx", "out0", ",", "out1", ",", "in0", ",", "in1", ";", "int", "first_elem", ";", "int", "swap_nelt", ";", "if", "(", "GET_MODE_UNIT_SIZE", "(", "d", "->", "vmode", ")", ">=", "8", ")", "return", "false", ";", "swap_nelt", "=", "BYTES_BIG_ENDIAN", "&&", "!", "d", "->", "one_vector_p", "&&", "GET_MODE_SIZE", "(", "d", "->", "vmode", ")", "==", "8", "?", "nelt", ":", "0", ";", "first_elem", "=", "d", "->", "perm", "[", "neon_endian_lane_map", "(", "d", "->", "vmode", ",", "0", ")", "]", "^", "swap_nelt", ";", "if", "(", "first_elem", "==", "neon_endian_lane_map", "(", "d", "->", "vmode", ",", "0", ")", ")", "odd", "=", "0", ";", "else", "if", "(", "first_elem", "==", "neon_endian_lane_map", "(", "d", "->", "vmode", ",", "1", ")", ")", "odd", "=", "1", ";", "else", "return", "false", ";", "mask", "=", "(", "d", "->", "one_vector_p", "?", "nelt", "-", "1", ":", "2", "*", "nelt", "-", "1", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "nelt", ";", "i", "++", ")", "{", "unsigned", "elt", "=", "(", "neon_pair_endian_lane_map", "(", "d", "->", "vmode", ",", "i", ")", "*", "2", "+", "odd", ")", "&", "mask", ";", "if", "(", "(", "d", "->", "perm", "[", "i", "]", "^", "swap_nelt", ")", "!=", "neon_pair_endian_lane_map", "(", "d", "->", "vmode", ",", "elt", ")", ")", "return", "false", ";", "}", "if", "(", "d", "->", "testing_p", ")", "return", "true", ";", "in0", "=", "d", "->", "op0", ";", "in1", "=", "d", "->", "op1", ";", "if", "(", "swap_nelt", "!=", "0", ")", "std", "::", "swap", "(", "in0", ",", "in1", ")", ";", "out0", "=", "d", "->", "target", ";", "out1", "=", "gen_reg_rtx", "(", "d", "->", "vmode", ")", ";", "if", "(", "odd", ")", "std", "::", "swap", "(", "out0", ",", "out1", ")", ";", "emit_insn", "(", "gen_neon_vuzp_internal", "(", "d", "->", "vmode", ",", "out0", ",", "in0", ",", "in1", ",", "out1", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Recognize", "patterns", "for", "the", "VUZP", "insns", "."], "TS_V_token": ["arm", "8", "8", "0", "0", "0", "0", "1", "1", "1", "2", "1", "0", "2", "0"], "File": "arm", "Func": "arm_evpc_neon_vuzp", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 731, "Length": 300, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMCallLowering", "::", "lowerFormalArguments", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "const", "Function", "&", "F", ",", "ArrayRef", "<", "unsigned", ">", "VRegs", ")", "const", "{", "auto", "&", "TLI", "=", "*", "getTLI", "<", "ARMTargetLowering", ">", "(", ")", ";", "auto", "Subtarget", "=", "TLI", ".", "getSubtarget", "(", ")", ";", "if", "(", "Subtarget", "->", "isThumb", "(", ")", ")", "return", "false", ";", "if", "(", "F", ".", "arg_empty", "(", ")", ")", "return", "true", ";", "if", "(", "F", ".", "isVarArg", "(", ")", ")", "return", "false", ";", "auto", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "auto", "&", "MBB", "=", "MIRBuilder", ".", "getMBB", "(", ")", ";", "auto", "DL", "=", "MF", ".", "getDataLayout", "(", ")", ";", "for", "(", "auto", "&", "Arg", ":", "F", ".", "args", "(", ")", ")", "{", "if", "(", "!", "isSupportedType", "(", "DL", ",", "TLI", ",", "Arg", ".", "getType", "(", ")", ")", ")", "return", "false", ";", "if", "(", "Arg", ".", "hasByValOrInAllocaAttr", "(", ")", ")", "return", "false", ";", "}", "CCAssignFn", "*", "AssignFn", "=", "TLI", ".", "CCAssignFnForCall", "(", "F", ".", "getCallingConv", "(", ")", ",", "F", ".", "isVarArg", "(", ")", ")", ";", "FormalArgHandler", "ArgHandler", "(", "MIRBuilder", ",", "MIRBuilder", ".", "getMF", "(", ")", ".", "getRegInfo", "(", ")", ",", "AssignFn", ")", ";", "SmallVector", "<", "ArgInfo", ",", "8", ">", "ArgInfos", ";", "SmallVector", "<", "unsigned", ",", "4", ">", "SplitRegs", ";", "unsigned", "Idx", "=", "0", ";", "for", "(", "auto", "&", "Arg", ":", "F", ".", "args", "(", ")", ")", "{", "ArgInfo", "AInfo", "(", "VRegs", "[", "Idx", "]", ",", "Arg", ".", "getType", "(", ")", ")", ";", "setArgFlags", "(", "AInfo", ",", "Idx", "+", "AttributeList", "::", "FirstArgIndex", ",", "DL", ",", "F", ")", ";", "SplitRegs", ".", "clear", "(", ")", ";", "splitToValueTypes", "(", "AInfo", ",", "ArgInfos", ",", "MF", ",", "[", "&", "]", "(", "unsigned", "Reg", ",", "uint64_t", "Offset", ")", "{", "SplitRegs", ".", "push_back", "(", "Reg", ")", ";", "}", ")", ";", "if", "(", "!", "SplitRegs", ".", "empty", "(", ")", ")", "MIRBuilder", ".", "buildMerge", "(", "VRegs", "[", "Idx", "]", ",", "SplitRegs", ")", ";", "Idx", "++", ";", "}", "if", "(", "!", "MBB", ".", "empty", "(", ")", ")", "MIRBuilder", ".", "setInstr", "(", "*", "MBB", ".", "begin", "(", ")", ")", ";", "if", "(", "!", "handleAssignments", "(", "MIRBuilder", ",", "ArgInfos", ",", "ArgHandler", ")", ")", "return", "false", ";", "MIRBuilder", ".", "setMBB", "(", "MBB", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "the", "incoming", "(", "formal", ")", "arguments", ",", "described", "by", "VRegs", ",", "for", "GlobalISel", "."], "TS_V_token": ["ARM", "ARM", "ARM", "8", "4", "0"], "File": "ARMCallLowering17", "Func": "lowerFormalArguments", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 732, "Length": 359, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64PassConfig", "::", "addIRPasses", "(", ")", "{", "addPass", "(", "createAtomicExpandPass", "(", "TM", ")", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "EnableAtomicTidy", ")", "addPass", "(", "createCFGSimplificationPass", "(", ")", ")", ";", "TargetPassConfig", "::", "addIRPasses", "(", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "==", "CodeGenOpt", "::", "Aggressive", "&&", "EnableGEPOpt", ")", "{", "addPass", "(", "createSeparateConstOffsetFromGEPPass", "(", "TM", ",", "true", ")", ")", ";", "addPass", "(", "createEarlyCSEPass", "(", ")", ")", ";", "addPass", "(", "createLICMPass", "(", ")", ")", ";", "}", "}", ""], "natrual_language": ["Add", "common", "target", "configurable", "passes", "that", "perform", "LLVM", "IR", "to", "IR", "transforms", "following", "machine", "independent", "optimization", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64TargetMachine29", "Func": "addIRPasses", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 733, "Length": 83, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "rs6000_issue_rate", "(", "void", ")", "{", "if", "(", "!", "reload_completed", ")", "return", "1", ";", "switch", "(", "rs6000_cpu_attr", ")", "{", "case", "CPU_RIOS1", ":", "case", "CPU_RS64A", ":", "case", "CPU_PPC601", ":", "case", "CPU_PPC7450", ":", "return", "3", ";", "case", "CPU_PPC440", ":", "case", "CPU_PPC603", ":", "case", "CPU_PPC750", ":", "case", "CPU_PPC7400", ":", "case", "CPU_PPC8540", ":", "return", "2", ";", "case", "CPU_RIOS2", ":", "case", "CPU_PPC604", ":", "case", "CPU_PPC604E", ":", "case", "CPU_PPC620", ":", "case", "CPU_PPC630", ":", "return", "4", ";", "case", "CPU_POWER4", ":", "case", "CPU_POWER5", ":", "return", "5", ";", "default", ":", "return", "1", ";", "}", "}", ""], "natrual_language": ["Return", "how", "many", "instructions", "the", "machine", "can", "issue", "per", "cycle", "."], "TS_V_token": ["rs6000", "1", "3", "2", "4", "5", "1"], "File": "rs60003", "Func": "rs6000_issue_rate", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 734, "Length": 87, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "hppa_encode_label", "(", "rtx", "sym", ")", "{", "const", "char", "*", "str", "=", "XSTR", "(", "sym", ",", "0", ")", ";", "int", "len", "=", "strlen", "(", "str", ")", "+", "1", ";", "char", "*", "newstr", ",", "*", "p", ";", "p", "=", "newstr", "=", "alloca", "(", "len", "+", "1", ")", ";", "*", "p", "++", "=", "'@'", ";", "strcpy", "(", "p", ",", "str", ")", ";", "XSTR", "(", "sym", ",", "0", ")", "=", "ggc_alloc_string", "(", "newstr", ",", "len", ")", ";", "}", ""], "natrual_language": ["In", "HPUX", "8.0", "'s", "shared", "library", "scheme", ",", "special", "relocations", "are", "needed", "for", "function", "labels", "if", "they", "might", "be", "passed", "to", "a", "function", "in", "a", "shared", "library", "(", "because", "shared", "libraries", "do", "n't", "live", "in", "code", "space", ")", ",", "and", "special", "magic", "is", "needed", "to", "construct", "their", "address", "."], "TS_V_token": ["pa", "0", "1", "1", "0"], "File": "pa3", "Func": "hppa_encode_label", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 735, "Length": 75, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isGAPlusOffset", "(", "SDNode", "*", "N", ",", "GlobalValue", "*", "&", "GA", ",", "int64_t", "&", "Offset", ")", "const", "{", "if", "(", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "Wrapper", ")", "{", "if", "(", "isa", "<", "GlobalAddressSDNode", ">", "(", "N", "->", "getOperand", "(", "0", ")", ")", ")", "{", "GA", "=", "cast", "<", "GlobalAddressSDNode", ">", "(", "N", "->", "getOperand", "(", "0", ")", ")", "->", "getGlobal", "(", ")", ";", "Offset", "=", "cast", "<", "GlobalAddressSDNode", ">", "(", "N", "->", "getOperand", "(", "0", ")", ")", "->", "getOffset", "(", ")", ";", "return", "true", ";", "}", "}", "return", "TargetLowering", "::", "isGAPlusOffset", "(", "N", ",", "GA", ",", "Offset", ")", ";", "}", ""], "natrual_language": ["Returns", "true", "(", "and", "the", "GlobalValue", "and", "the", "offset", ")", "if", "the", "node", "is", "a", "GlobalAddress", "+", "offset", "."], "TS_V_token": ["X86", "X86", "X86ISD::Wrapper", "0", "0", "0"], "File": "X86ISelLowering144", "Func": "isGAPlusOffset", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 736, "Length": 105, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "altivec_expand_dst_builtin", "(", "tree", "exp", ",", "rtx", "target", "ATTRIBUTE_UNUSED", ",", "bool", "*", "expandedp", ")", "{", "tree", "fndecl", "=", "TREE_OPERAND", "(", "CALL_EXPR_FN", "(", "exp", ")", ",", "0", ")", ";", "enum", "rs6000_builtins", "fcode", "=", "(", "enum", "rs6000_builtins", ")", "DECL_FUNCTION_CODE", "(", "fndecl", ")", ";", "tree", "arg0", ",", "arg1", ",", "arg2", ";", "machine_mode", "mode0", ",", "mode1", ";", "rtx", "pat", ",", "op0", ",", "op1", ",", "op2", ";", "const", "struct", "builtin_description", "*", "d", ";", "size_t", "i", ";", "*", "expandedp", "=", "false", ";", "d", "=", "bdesc_dst", ";", "for", "(", "i", "=", "0", ";", "i", "<", "ARRAY_SIZE", "(", "bdesc_dst", ")", ";", "i", "++", ",", "d", "++", ")", "if", "(", "d", "->", "code", "==", "fcode", ")", "{", "arg0", "=", "CALL_EXPR_ARG", "(", "exp", ",", "0", ")", ";", "arg1", "=", "CALL_EXPR_ARG", "(", "exp", ",", "1", ")", ";", "arg2", "=", "CALL_EXPR_ARG", "(", "exp", ",", "2", ")", ";", "op0", "=", "expand_normal", "(", "arg0", ")", ";", "op1", "=", "expand_normal", "(", "arg1", ")", ";", "op2", "=", "expand_normal", "(", "arg2", ")", ";", "mode0", "=", "insn_data", "[", "d", "->", "icode", "]", ".", "operand", "[", "0", "]", ".", "mode", ";", "mode1", "=", "insn_data", "[", "d", "->", "icode", "]", ".", "operand", "[", "1", "]", ".", "mode", ";", "if", "(", "arg0", "==", "error_mark_node", "||", "arg1", "==", "error_mark_node", "||", "arg2", "==", "error_mark_node", ")", "return", "const0_rtx", ";", "*", "expandedp", "=", "true", ";", "STRIP_NOPS", "(", "arg2", ")", ";", "if", "(", "TREE_CODE", "(", "arg2", ")", "!=", "INTEGER_CST", "||", "TREE_INT_CST_LOW", "(", "arg2", ")", "&", "~", "0x3", ")", "{", "error", "(", "\"argument to %qs must be a 2-bit unsigned literal\"", ",", "d", "->", "name", ")", ";", "return", "const0_rtx", ";", "}", "if", "(", "!", "(", "*", "insn_data", "[", "d", "->", "icode", "]", ".", "operand", "[", "0", "]", ".", "predicate", ")", "(", "op0", ",", "mode0", ")", ")", "op0", "=", "copy_to_mode_reg", "(", "Pmode", ",", "op0", ")", ";", "if", "(", "!", "(", "*", "insn_data", "[", "d", "->", "icode", "]", ".", "operand", "[", "1", "]", ".", "predicate", ")", "(", "op1", ",", "mode1", ")", ")", "op1", "=", "copy_to_mode_reg", "(", "mode1", ",", "op1", ")", ";", "pat", "=", "GEN_FCN", "(", "d", "->", "icode", ")", "(", "op0", ",", "op1", ",", "op2", ")", ";", "if", "(", "pat", "!=", "0", ")", "emit_insn", "(", "pat", ")", ";", "return", "NULL_RTX", ";", "}", "return", "NULL_RTX", ";", "}", ""], "natrual_language": ["Expand", "the", "dst", "builtins", "."], "TS_V_token": ["powerpcspe", "0", "0", "0", "1", "2", "0", "1", "0x3", "\"argument to %qs must be a 2-bit unsigned literal\"", "0", "1", "0"], "File": "powerpcspe", "Func": "altivec_expand_dst_builtin", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 737, "Length": 350, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMRegisterInfo", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "return", "NoFramePointerElim", "||", "MFI", "->", "hasVarSizedObjects", "(", ")", ";", "}", ""], "natrual_language": ["hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMRegisterInfo13", "Func": "hasFP", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 738, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "aarch64_emit_approx_div", "(", "rtx", "quo", ",", "rtx", "num", ",", "rtx", "den", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "quo", ")", ";", "if", "(", "GET_MODE_INNER", "(", "mode", ")", "==", "HFmode", ")", "return", "false", ";", "bool", "use_approx_division_p", "=", "(", "flag_mlow_precision_div", "||", "(", "aarch64_tune_params", ".", "approx_modes", "->", "division", "&", "AARCH64_APPROX_MODE", "(", "mode", ")", ")", ")", ";", "if", "(", "!", "flag_finite_math_only", "||", "flag_trapping_math", "||", "!", "flag_unsafe_math_optimizations", "||", "optimize_function_for_size_p", "(", "cfun", ")", "||", "!", "use_approx_division_p", ")", "return", "false", ";", "rtx", "xrcp", "=", "gen_reg_rtx", "(", "mode", ")", ";", "emit_insn", "(", "(", "*", "get_recpe_type", "(", "mode", ")", ")", "(", "xrcp", ",", "den", ")", ")", ";", "int", "iterations", "=", "(", "GET_MODE_INNER", "(", "mode", ")", "==", "DFmode", ")", "?", "3", ":", "2", ";", "if", "(", "flag_mlow_precision_div", ")", "iterations", "--", ";", "rtx", "xtmp", "=", "gen_reg_rtx", "(", "mode", ")", ";", "while", "(", "iterations", "--", ")", "{", "emit_insn", "(", "(", "*", "get_recps_type", "(", "mode", ")", ")", "(", "xtmp", ",", "xrcp", ",", "den", ")", ")", ";", "if", "(", "iterations", ">", "0", ")", "emit_set_insn", "(", "xrcp", ",", "gen_rtx_MULT", "(", "mode", ",", "xrcp", ",", "xtmp", ")", ")", ";", "}", "if", "(", "num", "!=", "CONST1_RTX", "(", "mode", ")", ")", "{", "rtx", "xnum", "=", "force_reg", "(", "mode", ",", "num", ")", ";", "emit_set_insn", "(", "xrcp", ",", "gen_rtx_MULT", "(", "mode", ",", "xrcp", ",", "xnum", ")", ")", ";", "}", "emit_set_insn", "(", "quo", ",", "gen_rtx_MULT", "(", "mode", ",", "xrcp", ",", "xtmp", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Emit", "the", "instruction", "sequence", "to", "compute", "the", "approximation", "for", "the", "division", "of", "NUM", "by", "DEN", "in", "QUO", "and", "return", "whether", "the", "sequence", "was", "emitted", "or", "not", "."], "TS_V_token": ["aarch64", "3", "2", "0"], "File": "aarch644", "Func": "aarch64_emit_approx_div", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 739, "Length": 227, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMTargetLowering", "::", "isUsedByReturnOnly", "(", "SDNode", "*", "N", ")", "const", "{", "if", "(", "N", "->", "getNumValues", "(", ")", "!=", "1", ")", "return", "false", ";", "if", "(", "!", "N", "->", "hasNUsesOfValue", "(", "1", ",", "0", ")", ")", "return", "false", ";", "unsigned", "NumCopies", "=", "0", ";", "SDNode", "*", "Copies", "[", "2", "]", ";", "SDNode", "*", "Use", "=", "*", "N", "->", "use_begin", "(", ")", ";", "if", "(", "Use", "->", "getOpcode", "(", ")", "==", "ISD", "::", "CopyToReg", ")", "{", "Copies", "[", "NumCopies", "++", "]", "=", "Use", ";", "}", "else", "if", "(", "Use", "->", "getOpcode", "(", ")", "==", "ARMISD", "::", "VMOVRRD", ")", "{", "for", "(", "SDNode", "::", "use_iterator", "UI", "=", "Use", "->", "use_begin", "(", ")", ",", "UE", "=", "Use", "->", "use_end", "(", ")", ";", "UI", "!=", "UE", ";", "++", "UI", ")", "{", "if", "(", "UI", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "CopyToReg", ")", "return", "false", ";", "Copies", "[", "UI", ".", "getUse", "(", ")", ".", "getResNo", "(", ")", "]", "=", "*", "UI", ";", "++", "NumCopies", ";", "}", "}", "else", "if", "(", "Use", "->", "getOpcode", "(", ")", "==", "ISD", "::", "BITCAST", ")", "{", "if", "(", "!", "Use", "->", "hasNUsesOfValue", "(", "1", ",", "0", ")", ")", "return", "false", ";", "Use", "=", "*", "Use", "->", "use_begin", "(", ")", ";", "if", "(", "Use", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "CopyToReg", "||", "!", "Use", "->", "hasNUsesOfValue", "(", "1", ",", "0", ")", ")", "return", "false", ";", "Copies", "[", "NumCopies", "++", "]", "=", "Use", ";", "}", "else", "{", "return", "false", ";", "}", "if", "(", "NumCopies", "!=", "1", "&&", "NumCopies", "!=", "2", ")", "return", "false", ";", "bool", "HasRet", "=", "false", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "NumCopies", ";", "++", "i", ")", "{", "SDNode", "*", "Copy", "=", "Copies", "[", "i", "]", ";", "for", "(", "SDNode", "::", "use_iterator", "UI", "=", "Copy", "->", "use_begin", "(", ")", ",", "UE", "=", "Copy", "->", "use_end", "(", ")", ";", "UI", "!=", "UE", ";", "++", "UI", ")", "{", "if", "(", "UI", "->", "getOpcode", "(", ")", "==", "ISD", "::", "CopyToReg", ")", "{", "SDNode", "*", "Use", "=", "*", "UI", ";", "if", "(", "Use", "==", "Copies", "[", "0", "]", "||", "Use", "==", "Copies", "[", "1", "]", ")", "continue", ";", "return", "false", ";", "}", "if", "(", "UI", "->", "getOpcode", "(", ")", "!=", "ARMISD", "::", "RET_FLAG", ")", "return", "false", ";", "HasRet", "=", "true", ";", "}", "}", "return", "HasRet", ";", "}", ""], "natrual_language": ["Return", "true", "if", "result", "of", "the", "specified", "node", "is", "used", "by", "a", "return", "node", "only", "."], "TS_V_token": ["ARM", "ARM", "1", "1", "0", "0", "2", "ISD::CopyToReg", "ARMISD::VMOVRRD", "ISD::CopyToReg", "ISD::BITCAST", "1", "0", "ISD::CopyToReg", "1", "0", "1", "2", "0", "ISD::CopyToReg", "0", "1", "ARMISD::RET_FLAG"], "File": "ARMISelLowering114", "Func": "isUsedByReturnOnly", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 740, "Length": 379, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_macro_fusion_p", "(", "void", ")", "{", "return", "aarch64_tune_params", ".", "fusible_ops", "!=", "AARCH64_FUSE_NOTHING", ";", "}", ""], "natrual_language": ["Implement", "TARGET_SCHED_MACRO_FUSION_P", ".", "Return", "true", "if", "target", "supports", "instruction", "fusion", "of", "some", "sort", "."], "TS_V_token": ["aarch64"], "File": "aarch64", "Func": "aarch64_macro_fusion_p", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 741, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "llvm", "::", "FastISel", "*", "ARM", "::", "createFastISel", "(", "FunctionLoweringInfo", "&", "funcInfo", ")", "{", "const", "TargetMachine", "&", "TM", "=", "funcInfo", ".", "MF", "->", "getTarget", "(", ")", ";", "const", "ARMSubtarget", "*", "Subtarget", "=", "&", "TM", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "if", "(", "Subtarget", "->", "isTargetIOS", "(", ")", "&&", "!", "Subtarget", "->", "isThumb1Only", "(", ")", "&&", "!", "DisableARMFastISel", ")", "return", "new", "ARMFastISel", "(", "funcInfo", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["This", "method", "returns", "a", "target", "specific", "FastISel", "object", ",", "or", "null", "if", "the", "target", "does", "not", "support", "``", "fast", "''", "ISel", "."], "TS_V_token": ["ARM", "ARM::createFastISel", "ARM", "ARM", "ARM", "ARM", "0"], "File": "ARMFastISel56", "Func": "createFastISel", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 742, "Length": 70, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "LC3bInstrInfo", "*", "getInstrInfo", "(", ")", "const", "{", "return", "&", "InstrInfo", ";", "}", ""], "natrual_language": ["TargetInstrInfo", "getter", "."], "TS_V_token": ["LC3b", "LC3b"], "File": "LC3bTargetMachine", "Func": "getInstrInfo", "Target": "LC3b", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 743, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ia64_asm_init_sections", "(", "void", ")", "{", "exception_section", "=", "get_unnamed_section", "(", "0", ",", "output_section_asm_op", ",", "\"\\t.handlerdata\"", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_ASM_INITIALIZE_SECTIONS", "."], "TS_V_token": ["ia64", "0", "\"\\t.handlerdata\""], "File": "ia64", "Func": "ia64_asm_init_sections", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 744, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "OR1KMachineFunctionInfo", "::", "getGlobalBaseReg", "(", ")", "{", "if", "(", "GlobalBaseReg", ")", "return", "GlobalBaseReg", ";", "return", "GlobalBaseReg", "=", "MF", ".", "getRegInfo", "(", ")", ".", "createVirtualRegister", "(", "&", "OR1K", "::", "GPRRegClass", ")", ";", "}", ""], "natrual_language": ["getGlobalBaseReg", "-", "Return", "a", "virtual", "register", "initialized", "with", "the", "the", "global", "base", "register", "value", "."], "TS_V_token": ["OR1K", "OR1K", "OR1K::GPRRegClass"], "File": "OR1KMachineFunctionInfo", "Func": "getGlobalBaseReg", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 745, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMScalarTargetTransformImpl", "::", "getIntImmCost", "(", "const", "APInt", "&", "Imm", ",", "Type", "*", "Ty", ")", "const", "{", "assert", "(", "Ty", "->", "isIntegerTy", "(", ")", ")", ";", "unsigned", "Bits", "=", "Ty", "->", "getPrimitiveSizeInBits", "(", ")", ";", "if", "(", "Bits", "==", "0", "||", "Bits", ">", "32", ")", "return", "4", ";", "int32_t", "SImmVal", "=", "Imm", ".", "getSExtValue", "(", ")", ";", "uint32_t", "ZImmVal", "=", "Imm", ".", "getZExtValue", "(", ")", ";", "if", "(", "!", "Subtarget", "->", "isThumb", "(", ")", ")", "{", "if", "(", "(", "SImmVal", ">=", "0", "&&", "SImmVal", "<", "65536", ")", "||", "(", "ARM_AM", "::", "getSOImmVal", "(", "ZImmVal", ")", "!=", "-", "1", ")", "||", "(", "ARM_AM", "::", "getSOImmVal", "(", "~", "ZImmVal", ")", "!=", "-", "1", ")", ")", "return", "1", ";", "return", "Subtarget", "->", "hasV6T2Ops", "(", ")", "?", "2", ":", "3", ";", "}", "else", "if", "(", "Subtarget", "->", "isThumb2", "(", ")", ")", "{", "if", "(", "(", "SImmVal", ">=", "0", "&&", "SImmVal", "<", "65536", ")", "||", "(", "ARM_AM", "::", "getT2SOImmVal", "(", "ZImmVal", ")", "!=", "-", "1", ")", "||", "(", "ARM_AM", "::", "getT2SOImmVal", "(", "~", "ZImmVal", ")", "!=", "-", "1", ")", ")", "return", "1", ";", "return", "Subtarget", "->", "hasV6T2Ops", "(", ")", "?", "2", ":", "3", ";", "}", "else", "{", "if", "(", "SImmVal", ">=", "0", "&&", "SImmVal", "<", "256", ")", "return", "1", ";", "if", "(", "(", "~", "ZImmVal", "<", "256", ")", "||", "ARM_AM", "::", "isThumbImmShiftedVal", "(", "ZImmVal", ")", ")", "return", "2", ";", "return", "3", ";", "}", "return", "2", ";", "}", ""], "natrual_language": ["Calculate", "the", "cost", "of", "materializing", "a", "64-bit", "value", "."], "TS_V_token": ["ARM", "ARM", "0", "32", "4", "0", "65536", "ARM_AM::getSOImmVal", "1", "ARM_AM::getSOImmVal", "1", "1", "2", "3", "0", "65536", "ARM_AM::getT2SOImmVal", "1", "ARM_AM::getT2SOImmVal", "1", "1", "2", "3", "0", "256", "1", "256", "ARM_AM::isThumbImmShiftedVal", "2", "3", "2"], "File": "ARMISelLowering74", "Func": "getIntImmCost", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 746, "Length": 231, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsTargetLowering", "::", "getOpndList", "(", "SmallVectorImpl", "<", "SDValue", ">", "&", "Ops", ",", "std", "::", "deque", "<", "std", "::", "pair", "<", "unsigned", ",", "SDValue", ">", ">", "&", "RegsToPass", ",", "bool", "IsPICCall", ",", "bool", "GlobalOrExternal", ",", "bool", "InternalLinkage", ",", "bool", "IsCallReloc", ",", "CallLoweringInfo", "&", "CLI", ",", "SDValue", "Callee", ",", "SDValue", "Chain", ")", "const", "{", "if", "(", "IsPICCall", "&&", "!", "InternalLinkage", "&&", "IsCallReloc", ")", "{", "unsigned", "GPReg", "=", "ABI", ".", "IsN64", "(", ")", "?", "Mips", "::", "GP_64", ":", "Mips", "::", "GP", ";", "EVT", "Ty", "=", "ABI", ".", "IsN64", "(", ")", "?", "MVT", "::", "i64", ":", "MVT", "::", "i32", ";", "RegsToPass", ".", "push_back", "(", "std", "::", "make_pair", "(", "GPReg", ",", "getGlobalReg", "(", "CLI", ".", "DAG", ",", "Ty", ")", ")", ")", ";", "}", "SDValue", "InFlag", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RegsToPass", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "Chain", "=", "CLI", ".", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "CLI", ".", "DL", ",", "RegsToPass", "[", "i", "]", ".", "first", ",", "RegsToPass", "[", "i", "]", ".", "second", ",", "InFlag", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "}", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RegsToPass", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "Ops", ".", "push_back", "(", "CLI", ".", "DAG", ".", "getRegister", "(", "RegsToPass", "[", "i", "]", ".", "first", ",", "RegsToPass", "[", "i", "]", ".", "second", ".", "getValueType", "(", ")", ")", ")", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "Subtarget", ".", "getRegisterInfo", "(", ")", ";", "const", "uint32_t", "*", "Mask", "=", "TRI", "->", "getCallPreservedMask", "(", "CLI", ".", "CallConv", ")", ";", "assert", "(", "Mask", "&&", "\"Missing call preserved mask for calling convention\"", ")", ";", "if", "(", "Subtarget", ".", "inMips16HardFloat", "(", ")", ")", "{", "if", "(", "GlobalAddressSDNode", "*", "G", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "CLI", ".", "Callee", ")", ")", "{", "llvm", "::", "StringRef", "Sym", "=", "G", "->", "getGlobal", "(", ")", "->", "getName", "(", ")", ";", "Function", "*", "F", "=", "G", "->", "getGlobal", "(", ")", "->", "getParent", "(", ")", "->", "getFunction", "(", "Sym", ")", ";", "if", "(", "F", "&&", "F", "->", "hasFnAttribute", "(", "\"__Mips16RetHelper\"", ")", ")", "{", "Mask", "=", "MipsRegisterInfo", "::", "getMips16RetHelperMask", "(", ")", ";", "}", "}", "}", "Ops", ".", "push_back", "(", "CLI", ".", "DAG", ".", "getRegisterMask", "(", "Mask", ")", ")", ";", "if", "(", "InFlag", ".", "getNode", "(", ")", ")", "Ops", ".", "push_back", "(", "InFlag", ")", ";", "}", ""], "natrual_language": ["This", "function", "fills", "Ops", ",", "which", "is", "the", "list", "of", "operands", "that", "will", "later", "be", "used", "when", "a", "function", "call", "node", "is", "created", "."], "TS_V_token": ["Mips", "Mips", "Mips::GP_64", "Mips::GP", "MVT::i64", "MVT::i32", "0", "1", "0", "\"Missing call preserved mask for calling convention\"", "Mips", "\"__Mips16RetHelper\"", "Mips", "Mips"], "File": "MipsISelLowering42", "Func": "getOpndList", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 747, "Length": 382, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "LEGInstrInfo", "::", "isLoadFromStackSlot", "(", "const", "MachineInstr", "&", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "assert", "(", "0", "&&", "\"Unimplemented\"", ")", ";", "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": ["LEG", "LEG", "0", "\"Unimplemented\"", "0"], "File": "LEGInstrInfo", "Func": "isLoadFromStackSlot", "Target": "LEG", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 748, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "fusion_split_address", "(", "rtx", "addr", ",", "rtx", "*", "p_hi", ",", "rtx", "*", "p_lo", ")", "{", "rtx", "hi", ",", "lo", ";", "if", "(", "GET_CODE", "(", "addr", ")", "==", "UNSPEC", "&&", "XINT", "(", "addr", ",", "1", ")", "==", "UNSPEC_FUSION_ADDIS", ")", "{", "lo", "=", "XVECEXP", "(", "addr", ",", "0", ",", "0", ")", ";", "hi", "=", "gen_rtx_HIGH", "(", "Pmode", ",", "lo", ")", ";", "}", "else", "if", "(", "GET_CODE", "(", "addr", ")", "==", "PLUS", "||", "GET_CODE", "(", "addr", ")", "==", "LO_SUM", ")", "{", "hi", "=", "XEXP", "(", "addr", ",", "0", ")", ";", "lo", "=", "XEXP", "(", "addr", ",", "1", ")", ";", "}", "else", "gcc_unreachable", "(", ")", ";", "*", "p_hi", "=", "hi", ";", "*", "p_lo", "=", "lo", ";", "}", ""], "natrual_language": ["Given", "an", "address", ",", "convert", "it", "into", "the", "addis", "and", "load", "offset", "parts", ".", "Addresses", "created", "during", "the", "peephole2", "process", "look", "like", ":", "(", "lo_sum", "(", "high", "(", "unspec", "[", "(", "sym", ")", "]", "UNSPEC_TOCREL", ")", ")", "(", "unspec", "[", "(", "...", ")", "]", "UNSPEC_TOCREL", ")", ")"], "TS_V_token": ["rs6000", "1", "0", "0", "0", "1"], "File": "rs60005", "Func": "fusion_split_address", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 749, "Length": 114, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "nds32_isr_function_p", "(", "tree", "func", ")", "{", "tree", "t_intr", ";", "tree", "t_excp", ";", "tree", "t_reset", ";", "tree", "attrs", ";", "if", "(", "TREE_CODE", "(", "func", ")", "!=", "FUNCTION_DECL", ")", "abort", "(", ")", ";", "attrs", "=", "DECL_ATTRIBUTES", "(", "func", ")", ";", "t_intr", "=", "lookup_attribute", "(", "\"interrupt\"", ",", "attrs", ")", ";", "t_excp", "=", "lookup_attribute", "(", "\"exception\"", ",", "attrs", ")", ";", "t_reset", "=", "lookup_attribute", "(", "\"reset\"", ",", "attrs", ")", ";", "return", "(", "(", "t_intr", "!=", "NULL_TREE", ")", "||", "(", "t_excp", "!=", "NULL_TREE", ")", "||", "(", "t_reset", "!=", "NULL_TREE", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "FUNC", "is", "a", "isr", "function", "."], "TS_V_token": ["nds32", "\"interrupt\"", "\"exception\"", "\"reset\""], "File": "nds32-isr", "Func": "nds32_isr_function_p", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 750, "Length": 88, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "crx_compute_save_regs", "(", "void", ")", "{", "unsigned", "int", "regno", ";", "last_reg_to_save", "=", "-", "1", ";", "if", "(", "FUNC_IS_NORETURN_P", "(", "current_function_decl", ")", ")", "return", ";", "sum_regs", "=", "0", ";", "for", "(", "regno", "=", "0", ";", "regno", "<", "FIRST_PSEUDO_REGISTER", ";", "regno", "++", ")", "{", "if", "(", "fixed_regs", "[", "regno", "]", ")", "{", "save_regs", "[", "regno", "]", "=", "0", ";", "continue", ";", "}", "if", "(", "crx_interrupt_function_p", "(", ")", ")", "{", "if", "(", "!", "current_function_is_leaf", "&&", "call_used_regs", "[", "regno", "]", ")", "save_regs", "[", "regno", "]", "=", "1", ";", "else", "if", "(", "regs_ever_live", "[", "regno", "]", ")", "save_regs", "[", "regno", "]", "=", "1", ";", "else", "save_regs", "[", "regno", "]", "=", "0", ";", "}", "else", "{", "if", "(", "regs_ever_live", "[", "regno", "]", "&&", "(", "!", "call_used_regs", "[", "regno", "]", "||", "regno", "==", "RETURN_ADDRESS_REGNUM", ")", ")", "save_regs", "[", "regno", "]", "=", "1", ";", "else", "save_regs", "[", "regno", "]", "=", "0", ";", "}", "}", "for", "(", "regno", "=", "0", ";", "regno", "<", "FIRST_PSEUDO_REGISTER", ";", "regno", "++", ")", "if", "(", "save_regs", "[", "regno", "]", "==", "1", ")", "{", "last_reg_to_save", "=", "regno", ";", "sum_regs", "+=", "UNITS_PER_WORD", ";", "}", "}", ""], "natrual_language": ["Compute", "values", "for", "the", "array", "save_regs", "and", "the", "variable", "sum_regs", ".", "The", "index", "*", "of", "save_regs", "is", "numbers", "of", "register", ",", "each", "will", "get", "1", "if", "we", "need", "to", "save", "it", "*", "in", "the", "current", "function", ",", "0", "if", "not", ".", "sum_regs", "is", "the", "total", "sum", "of", "the", "*", "registers", "being", "saved", "."], "TS_V_token": ["crx", "1", "0", "0", "0", "1", "1", "0", "1", "0", "0", "1"], "File": "crx", "Func": "crx_compute_save_regs", "Target": "crx", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 751, "Length": 180, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "bool", "shouldForceRelocation", "(", "const", "MCAssembler", "&", "Asm", ",", "const", "MCFixup", "&", "Fixup", ",", "const", "MCValue", "&", "Target", ")", "override", "{", "(", "void", ")", "adjustFixupValue", "(", "Fixup", ",", "Target", ".", "getConstant", "(", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["Hook", "to", "check", "if", "a", "relocation", "is", "needed", "for", "some", "target", "specific", "reason", "."], "TS_V_token": ["UPT"], "File": "UPTAsmBackend", "Func": "shouldForceRelocation", "Target": "UPT", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 752, "Length": 39, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineInstrBuilder", "MipsInstrInfo", "::", "genInstrWithNewOpc", "(", "unsigned", "NewOpc", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "MachineInstrBuilder", "MIB", ";", "int", "ZeroOperandPosition", "=", "-", "1", ";", "bool", "BranchWithZeroOperand", "=", "false", ";", "if", "(", "I", "->", "isBranch", "(", ")", "&&", "!", "I", "->", "isPseudo", "(", ")", ")", "{", "auto", "TRI", "=", "I", "->", "getParent", "(", ")", "->", "getParent", "(", ")", "->", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "ZeroOperandPosition", "=", "I", "->", "findRegisterUseOperandIdx", "(", "Mips", "::", "ZERO", ",", "false", ",", "TRI", ")", ";", "BranchWithZeroOperand", "=", "ZeroOperandPosition", "!=", "-", "1", ";", "}", "if", "(", "BranchWithZeroOperand", ")", "{", "switch", "(", "NewOpc", ")", "{", "case", "Mips", "::", "BEQC", ":", "NewOpc", "=", "Mips", "::", "BEQZC", ";", "break", ";", "case", "Mips", "::", "BNEC", ":", "NewOpc", "=", "Mips", "::", "BNEZC", ";", "break", ";", "case", "Mips", "::", "BGEC", ":", "NewOpc", "=", "Mips", "::", "BGEZC", ";", "break", ";", "case", "Mips", "::", "BLTC", ":", "NewOpc", "=", "Mips", "::", "BLTZC", ";", "break", ";", "case", "Mips", "::", "BEQC64", ":", "NewOpc", "=", "Mips", "::", "BEQZC64", ";", "break", ";", "case", "Mips", "::", "BNEC64", ":", "NewOpc", "=", "Mips", "::", "BNEZC64", ";", "break", ";", "}", "}", "MIB", "=", "BuildMI", "(", "*", "I", "->", "getParent", "(", ")", ",", "I", ",", "I", "->", "getDebugLoc", "(", ")", ",", "get", "(", "NewOpc", ")", ")", ";", "if", "(", "NewOpc", "==", "Mips", "::", "JIC", "||", "NewOpc", "==", "Mips", "::", "JIALC", "||", "NewOpc", "==", "Mips", "::", "JIC64", "||", "NewOpc", "==", "Mips", "::", "JIALC64", ")", "{", "if", "(", "NewOpc", "==", "Mips", "::", "JIALC", "||", "NewOpc", "==", "Mips", "::", "JIALC64", ")", "MIB", "->", "removeOperand", "(", "0", ")", ";", "for", "(", "unsigned", "J", "=", "0", ",", "E", "=", "I", "->", "getDesc", "(", ")", ".", "getNumOperands", "(", ")", ";", "J", "<", "E", ";", "++", "J", ")", "{", "MIB", ".", "add", "(", "I", "->", "getOperand", "(", "J", ")", ")", ";", "}", "MIB", ".", "addImm", "(", "0", ")", ";", "for", "(", "unsigned", "J", "=", "I", "->", "getDesc", "(", ")", ".", "getNumOperands", "(", ")", ",", "E", "=", "I", "->", "getNumOperands", "(", ")", ";", "J", "<", "E", ";", "++", "J", ")", "{", "const", "MachineOperand", "&", "MO", "=", "I", "->", "getOperand", "(", "J", ")", ";", "if", "(", "MO", ".", "isMCSymbol", "(", ")", "&&", "(", "MO", ".", "getTargetFlags", "(", ")", "&", "MipsII", "::", "MO_JALR", ")", ")", "MIB", ".", "addSym", "(", "MO", ".", "getMCSymbol", "(", ")", ",", "MipsII", "::", "MO_JALR", ")", ";", "}", "}", "else", "{", "for", "(", "unsigned", "J", "=", "0", ",", "E", "=", "I", "->", "getDesc", "(", ")", ".", "getNumOperands", "(", ")", ";", "J", "<", "E", ";", "++", "J", ")", "{", "if", "(", "BranchWithZeroOperand", "&&", "(", "unsigned", ")", "ZeroOperandPosition", "==", "J", ")", "continue", ";", "MIB", ".", "add", "(", "I", "->", "getOperand", "(", "J", ")", ")", ";", "}", "}", "MIB", ".", "copyImplicitOps", "(", "*", "I", ")", ";", "MIB", ".", "cloneMemRefs", "(", "*", "I", ")", ";", "return", "MIB", ";", "}", ""], "natrual_language": ["Create", "an", "instruction", "which", "has", "the", "same", "operands", "and", "memory", "operands", "as", "MI", "but", "has", "a", "new", "opcode", "."], "TS_V_token": ["Mips", "Mips", "1", "Mips::ZERO", "1", "Mips::BEQC", "Mips::BEQZC", "Mips::BNEC", "Mips::BNEZC", "Mips::BGEC", "Mips::BGEZC", "Mips::BLTC", "Mips::BLTZC", "Mips::BEQC64", "Mips::BEQZC64", "Mips::BNEC64", "Mips::BNEZC64", "Mips::JIC", "Mips::JIALC", "Mips::JIC64", "Mips::JIALC64", "Mips::JIALC", "Mips::JIALC64", "0", "0", "0", "MipsII::MO_JALR", "MipsII::MO_JALR", "0"], "File": "MipsInstrInfo29", "Func": "genInstrWithNewOpc", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 753, "Length": 455, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "TOYMCCodeEmitter", "::", "encodeInstruction", "(", "const", "MCInst", "&", "MI", ",", "raw_ostream", "&", "OS", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "const", "MCInstrDesc", "&", "Desc", "=", "MCII", ".", "get", "(", "MI", ".", "getOpcode", "(", ")", ")", ";", "if", "(", "Desc", ".", "getSize", "(", ")", "!=", "4", ")", "{", "llvm_unreachable", "(", "\"Unexpected instruction size!\"", ")", ";", "}", "const", "uint32_t", "Binary", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "EmitConstant", "(", "Binary", ",", "Desc", ".", "getSize", "(", ")", ",", "OS", ")", ";", "++", "MCNumEmitted", ";", "}", ""], "natrual_language": ["Encode", "the", "given", "Inst", "to", "bytes", "and", "append", "to", "CB", "."], "TS_V_token": ["TOY", "TOY", "4", "\"Unexpected instruction size!\""], "File": "TOYMCCodeEmitter1", "Func": "encodeInstruction", "Target": "TOY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 754, "Length": 91, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MINA32Subtarget", "*", "MINA32TargetMachine", "::", "getSubtargetImpl", "(", "const", "Function", "&", ")", "const", "{", "return", "&", "SubTarget", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["MINA32", "MINA32", "MINA32"], "File": "MINA32TargetMachine", "Func": "getSubtargetImpl", "Target": "MINA32", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 755, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "group_barrier_needed", "(", "rtx_insn", "*", "insn", ")", "{", "rtx", "pat", ";", "int", "need_barrier", "=", "0", ";", "struct", "reg_flags", "flags", ";", "memset", "(", "&", "flags", ",", "0", ",", "sizeof", "(", "flags", ")", ")", ";", "switch", "(", "GET_CODE", "(", "insn", ")", ")", "{", "case", "NOTE", ":", "case", "DEBUG_INSN", ":", "break", ";", "case", "BARRIER", ":", "break", ";", "case", "CODE_LABEL", ":", "memset", "(", "rws_insn", ",", "0", ",", "sizeof", "(", "rws_insn", ")", ")", ";", "return", "1", ";", "case", "CALL_INSN", ":", "flags", ".", "is_branch", "=", "1", ";", "flags", ".", "is_sibcall", "=", "SIBLING_CALL_P", "(", "insn", ")", ";", "memset", "(", "rws_insn", ",", "0", ",", "sizeof", "(", "rws_insn", ")", ")", ";", "if", "(", "(", "pat", "=", "prev_active_insn", "(", "insn", ")", ")", "&&", "CALL_P", "(", "pat", ")", ")", "{", "need_barrier", "=", "1", ";", "break", ";", "}", "need_barrier", "=", "rtx_needs_barrier", "(", "PATTERN", "(", "insn", ")", ",", "flags", ",", "0", ")", ";", "break", ";", "case", "JUMP_INSN", ":", "if", "(", "!", "ia64_spec_check_p", "(", "insn", ")", ")", "flags", ".", "is_branch", "=", "1", ";", "if", "(", "(", "pat", "=", "prev_active_insn", "(", "insn", ")", ")", "&&", "CALL_P", "(", "pat", ")", ")", "{", "need_barrier", "=", "1", ";", "break", ";", "}", "case", "INSN", ":", "if", "(", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "==", "USE", "||", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "==", "CLOBBER", ")", "break", ";", "pat", "=", "PATTERN", "(", "insn", ")", ";", "switch", "(", "recog_memoized", "(", "insn", ")", ")", "{", "case", "CODE_FOR_epilogue_deallocate_stack", ":", "case", "CODE_FOR_prologue_allocate_stack", ":", "pat", "=", "XVECEXP", "(", "pat", ",", "0", ",", "0", ")", ";", "break", ";", "case", "CODE_FOR_doloop_end_internal", ":", "pat", "=", "XVECEXP", "(", "pat", ",", "0", ",", "1", ")", ";", "break", ";", "case", "CODE_FOR_pred_rel_mutex", ":", "case", "CODE_FOR_prologue_use", ":", "return", "0", ";", "default", ":", "break", ";", "}", "memset", "(", "rws_insn", ",", "0", ",", "sizeof", "(", "rws_insn", ")", ")", ";", "need_barrier", "=", "rtx_needs_barrier", "(", "pat", ",", "flags", ",", "0", ")", ";", "if", "(", "!", "need_barrier", ")", "need_barrier", "=", "rws_access_regno", "(", "REG_VOLATILE", ",", "flags", ",", "0", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "if", "(", "first_instruction", "&&", "important_for_bundling_p", "(", "insn", ")", ")", "{", "need_barrier", "=", "0", ";", "first_instruction", "=", "0", ";", "}", "return", "need_barrier", ";", "}", ""], "natrual_language": ["Given", "the", "current", "state", ",", "determine", "whether", "a", "group", "barrier", "(", "a", "stop", "bit", ")", "is", "necessary", "before", "INSN", ".", "Return", "nonzero", "if", "so", ".", "This", "modifies", "the", "state", "to", "include", "the", "effects", "of", "INSN", "as", "a", "side-effect", "."], "TS_V_token": ["ia64", "0", "0", "0", "1", "1", "0", "1", "0", "1", "1", "0", "0", "0", "1", "0", "0", "0", "0", "0", "0"], "File": "ia64", "Func": "group_barrier_needed", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 756, "Length": 346, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "iq2000_count_memory_refs", "(", "rtx", "op", ",", "int", "num", ")", "{", "int", "additional", "=", "0", ";", "int", "n_words", "=", "0", ";", "rtx", "addr", ",", "plus0", ",", "plus1", ";", "enum", "rtx_code", "code0", ",", "code1", ";", "int", "looping", ";", "if", "(", "TARGET_DEBUG_B_MODE", ")", "{", "fprintf", "(", "stderr", ",", "\"\\n========== iq2000_count_memory_refs:\\n\"", ")", ";", "debug_rtx", "(", "op", ")", ";", "}", "addr", "=", "(", "GET_CODE", "(", "op", ")", "!=", "MEM", ")", "?", "op", ":", "XEXP", "(", "op", ",", "0", ")", ";", "do", "{", "looping", "=", "FALSE", ";", "switch", "(", "GET_CODE", "(", "addr", ")", ")", "{", "case", "REG", ":", "case", "CONST_INT", ":", "case", "LO_SUM", ":", "break", ";", "case", "PLUS", ":", "plus0", "=", "XEXP", "(", "addr", ",", "0", ")", ";", "plus1", "=", "XEXP", "(", "addr", ",", "1", ")", ";", "code0", "=", "GET_CODE", "(", "plus0", ")", ";", "code1", "=", "GET_CODE", "(", "plus1", ")", ";", "if", "(", "code0", "==", "REG", ")", "{", "additional", "++", ";", "addr", "=", "plus1", ";", "looping", "=", "1", ";", "continue", ";", "}", "if", "(", "code0", "==", "CONST_INT", ")", "{", "addr", "=", "plus1", ";", "looping", "=", "1", ";", "continue", ";", "}", "if", "(", "code1", "==", "REG", ")", "{", "additional", "++", ";", "addr", "=", "plus0", ";", "looping", "=", "1", ";", "continue", ";", "}", "if", "(", "code1", "==", "CONST_INT", ")", "{", "addr", "=", "plus0", ";", "looping", "=", "1", ";", "continue", ";", "}", "if", "(", "code0", "==", "SYMBOL_REF", "||", "code0", "==", "LABEL_REF", "||", "code0", "==", "CONST", ")", "{", "addr", "=", "plus0", ";", "looping", "=", "1", ";", "continue", ";", "}", "if", "(", "code1", "==", "SYMBOL_REF", "||", "code1", "==", "LABEL_REF", "||", "code1", "==", "CONST", ")", "{", "addr", "=", "plus1", ";", "looping", "=", "1", ";", "continue", ";", "}", "break", ";", "case", "LABEL_REF", ":", "n_words", "=", "2", ";", "break", ";", "case", "CONST", ":", "addr", "=", "XEXP", "(", "addr", ",", "0", ")", ";", "looping", "=", "1", ";", "continue", ";", "case", "SYMBOL_REF", ":", "n_words", "=", "SYMBOL_REF_FLAG", "(", "addr", ")", "?", "1", ":", "2", ";", "break", ";", "default", ":", "break", ";", "}", "}", "while", "(", "looping", ")", ";", "if", "(", "n_words", "==", "0", ")", "return", ";", "n_words", "+=", "additional", ";", "if", "(", "n_words", ">", "3", ")", "n_words", "=", "3", ";", "num_refs", "[", "n_words", "-", "1", "]", "+=", "num", ";", "}", ""], "natrual_language": ["Determine", "whether", "a", "memory", "reference", "takes", "one", "(", "based", "off", "of", "the", "GP", "pointer", ")", ",", "two", "(", "normal", ")", ",", "or", "three", "(", "label", "+", "reg", ")", "instructions", ",", "and", "bump", "the", "appropriate", "counter", "for", "-mstats", "."], "TS_V_token": ["iq2000", "0", "0", "\"\\n========== iq2000_count_memory_refs:\\n\"", "0", "0", "1", "1", "1", "1", "1", "1", "1", "2", "0", "1", "1", "2", "0", "3", "3", "1"], "File": "iq2000", "Func": "iq2000_count_memory_refs", "Target": "iq2000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 757, "Length": 353, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "neon_vdup_constant", "(", "rtx", "vals", ",", "bool", "generate", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "vals", ")", ";", "machine_mode", "inner_mode", "=", "GET_MODE_INNER", "(", "mode", ")", ";", "rtx", "x", ";", "if", "(", "GET_CODE", "(", "vals", ")", "!=", "CONST_VECTOR", "||", "GET_MODE_SIZE", "(", "inner_mode", ")", ">", "4", ")", "return", "NULL_RTX", ";", "if", "(", "!", "const_vec_duplicate_p", "(", "vals", ",", "&", "x", ")", ")", "return", "NULL_RTX", ";", "if", "(", "!", "generate", ")", "return", "x", ";", "x", "=", "copy_to_mode_reg", "(", "inner_mode", ",", "x", ")", ";", "return", "gen_vec_duplicate", "(", "mode", ",", "x", ")", ";", "}", ""], "natrual_language": ["Return", "a", "non-NULL", "RTX", "iff", "VALS", "is", "a", "vector", "constant", "that", "can", "be", "loaded", "into", "a", "register", "using", "VDUP", ".", "If", "this", "is", "the", "case", ",", "and", "GENERATE", "is", "set", ",", "we", "also", "generate", "instructions", "to", "do", "this", "and", "return", "an", "RTX", "to", "assign", "to", "the", "register", "."], "TS_V_token": ["arm", "4"], "File": "arm", "Func": "neon_vdup_constant", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 758, "Length": 89, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "winnt_d_os_builtins", "(", "void", ")", "{", "d_add_builtin_version", "(", "\"Windows\"", ")", ";", "d_add_builtin_version", "(", "\"MinGW\"", ")", ";", "if", "(", "TARGET_64BIT", "&&", "ix86_abi", "==", "MS_ABI", ")", "d_add_builtin_version", "(", "\"Win64\"", ")", ";", "else", "if", "(", "!", "TARGET_64BIT", ")", "d_add_builtin_version", "(", "\"Win32\"", ")", ";", "d_add_builtin_version", "(", "\"CRuntime_Microsoft\"", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_D_OS_VERSIONS", "for", "Windows", "targets", "."], "TS_V_token": ["i386", "\"Windows\"", "\"MinGW\"", "\"Win64\"", "\"Win32\"", "\"CRuntime_Microsoft\""], "File": "winnt-d1", "Func": "winnt_d_os_builtins", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 759, "Length": 47, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCExpr", "*", "getSubExpr", "(", ")", "const", "{", "return", "Expr", ";", "}", ""], "natrual_language": ["getSubExpr", "-", "Get", "the", "child", "of", "this", "expression", "."], "TS_V_token": ["Mips"], "File": "MipsMCExpr", "Func": "getSubExpr", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 760, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Thumb2InstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "Register", "SrcReg", ",", "bool", "isKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FI", ")", ",", "MachineMemOperand", "::", "MOStore", ",", "MFI", ".", "getObjectSize", "(", "FI", ")", ",", "MFI", ".", "getObjectAlign", "(", "FI", ")", ")", ";", "if", "(", "ARM", "::", "GPRRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "t2STRi12", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "return", ";", "}", "if", "(", "ARM", "::", "GPRPairRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "if", "(", "Register", "::", "isVirtualRegister", "(", "SrcReg", ")", ")", "{", "MachineRegisterInfo", "*", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "MRI", "->", "constrainRegClass", "(", "SrcReg", ",", "&", "ARM", "::", "GPRPairnospRegClass", ")", ";", "}", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "t2STRDi8", ")", ")", ";", "AddDReg", "(", "MIB", ",", "SrcReg", ",", "ARM", "::", "gsub_0", ",", "getKillRegState", "(", "isKill", ")", ",", "TRI", ")", ";", "AddDReg", "(", "MIB", ",", "SrcReg", ",", "ARM", "::", "gsub_1", ",", "0", ",", "TRI", ")", ";", "MIB", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "return", ";", "}", "ARMBaseInstrInfo", "::", "storeRegToStackSlot", "(", "MBB", ",", "I", ",", "SrcReg", ",", "isKill", ",", "FI", ",", "RC", ",", "TRI", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARM", "ARM::GPRRegClass", "ARM::t2STRi12", "0", "ARMCC::AL", "ARM::GPRPairRegClass", "ARM::GPRPairnospRegClass", "ARM::t2STRDi8", "ARM::gsub_0", "ARM::gsub_1", "0", "0", "ARMCC::AL", "ARM"], "File": "Thumb2InstrInfo", "Func": "storeRegToStackSlot", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 761, "Length": 327, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMConstantPoolMBB", "::", "print", "(", "raw_ostream", "&", "O", ")", "const", "{", "ARMConstantPoolValue", "::", "print", "(", "O", ")", ";", "}", ""], "natrual_language": ["print", "-", "Print", "a", "debug", "representation", "of", "the", "operand", "to", "the", "given", "stream", "."], "TS_V_token": ["ARM", "ARM", "ARM"], "File": "ARMConstantPoolValue35", "Func": "print", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 762, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "rs6000_store_data_bypass_p", "(", "rtx_insn", "*", "out_insn", ",", "rtx_insn", "*", "in_insn", ")", "{", "rtx", "out_set", ",", "in_set", ";", "rtx", "out_pat", ",", "in_pat", ";", "rtx", "out_exp", ",", "in_exp", ";", "int", "i", ",", "j", ";", "in_set", "=", "single_set", "(", "in_insn", ")", ";", "if", "(", "in_set", ")", "{", "if", "(", "MEM_P", "(", "SET_DEST", "(", "in_set", ")", ")", ")", "{", "out_set", "=", "single_set", "(", "out_insn", ")", ";", "if", "(", "!", "out_set", ")", "{", "out_pat", "=", "PATTERN", "(", "out_insn", ")", ";", "if", "(", "GET_CODE", "(", "out_pat", ")", "==", "PARALLEL", ")", "{", "for", "(", "i", "=", "0", ";", "i", "<", "XVECLEN", "(", "out_pat", ",", "0", ")", ";", "i", "++", ")", "{", "out_exp", "=", "XVECEXP", "(", "out_pat", ",", "0", ",", "i", ")", ";", "if", "(", "(", "GET_CODE", "(", "out_exp", ")", "==", "CLOBBER", ")", "||", "(", "GET_CODE", "(", "out_exp", ")", "==", "USE", ")", ")", "continue", ";", "else", "if", "(", "GET_CODE", "(", "out_exp", ")", "!=", "SET", ")", "return", "false", ";", "}", "}", "}", "}", "}", "else", "{", "in_pat", "=", "PATTERN", "(", "in_insn", ")", ";", "if", "(", "GET_CODE", "(", "in_pat", ")", "!=", "PARALLEL", ")", "return", "false", ";", "for", "(", "i", "=", "0", ";", "i", "<", "XVECLEN", "(", "in_pat", ",", "0", ")", ";", "i", "++", ")", "{", "in_exp", "=", "XVECEXP", "(", "in_pat", ",", "0", ",", "i", ")", ";", "if", "(", "(", "GET_CODE", "(", "in_exp", ")", "==", "CLOBBER", ")", "||", "(", "GET_CODE", "(", "in_exp", ")", "==", "USE", ")", ")", "continue", ";", "else", "if", "(", "GET_CODE", "(", "in_exp", ")", "!=", "SET", ")", "return", "false", ";", "if", "(", "MEM_P", "(", "SET_DEST", "(", "in_exp", ")", ")", ")", "{", "out_set", "=", "single_set", "(", "out_insn", ")", ";", "if", "(", "!", "out_set", ")", "{", "out_pat", "=", "PATTERN", "(", "out_insn", ")", ";", "if", "(", "GET_CODE", "(", "out_pat", ")", "!=", "PARALLEL", ")", "return", "false", ";", "for", "(", "j", "=", "0", ";", "j", "<", "XVECLEN", "(", "out_pat", ",", "0", ")", ";", "j", "++", ")", "{", "out_exp", "=", "XVECEXP", "(", "out_pat", ",", "0", ",", "j", ")", ";", "if", "(", "(", "GET_CODE", "(", "out_exp", ")", "==", "CLOBBER", ")", "||", "(", "GET_CODE", "(", "out_exp", ")", "==", "USE", ")", ")", "continue", ";", "else", "if", "(", "GET_CODE", "(", "out_exp", ")", "!=", "SET", ")", "return", "false", ";", "}", "}", "}", "}", "}", "return", "store_data_bypass_p", "(", "out_insn", ",", "in_insn", ")", ";", "}", ""], "natrual_language": ["Given", "that", "there", "exists", "at", "least", "one", "variable", "that", "is", "set", "(", "produced", ")", "by", "OUT_INSN", "and", "read", "(", "consumed", ")", "by", "IN_INSN", ",", "return", "true", "iff", "IN_INSN", "represents", "one", "or", "more", "memory", "store", "operations", "and", "none", "of", "the", "variables", "set", "by", "OUT_INSN", "is", "used", "by", "IN_INSN", "as", "the", "address", "of", "a", "store", "operation", ".", "If", "either", "IN_INSN", "or", "OUT_INSN", "does", "not", "represent", "a", "``", "single", "''", "RTL", "SET", "expression", "(", "as", "loosely", "defined", "by", "the", "implementation", "of", "the", "single_set", "function", ")", "or", "a", "PARALLEL", "with", "only", "SETs", ",", "CLOBBERs", ",", "and", "USEs", "inside", ",", "this", "function", "returns", "false", ".", "This", "rs6000-specific", "version", "of", "store_data_bypass_p", "checks", "for", "certain", "conditions", "that", "result", "in", "assertion", "failures", "(", "and", "internal", "compiler", "errors", ")", "in", "the", "generic", "store_data_bypass_p", "function", "and", "returns", "false", "rather", "than", "calling", "store_data_bypass_p", "if", "one", "of", "the", "problematic", "conditions", "is", "detected", "."], "TS_V_token": ["rs6000", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "File": "rs6000", "Func": "rs6000_store_data_bypass_p", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 763, "Length": 363, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "mt_expand_epilogue", "(", "enum", "epilogue_type", "eh_mode", ")", "{", "rtx", "size_rtx", ",", "insn", ";", "unsigned", "frame_size", ";", "mt_compute_frame_size", "(", "get_frame_size", "(", ")", ")", ";", "if", "(", "TARGET_DEBUG_STACK", ")", "mt_debug_stack", "(", "&", "current_frame_info", ")", ";", "frame_size", "=", "current_frame_info", ".", "total_size", ";", "if", "(", "CONST_OK_FOR_LETTER_P", "(", "frame_size", ",", "'O'", ")", ")", "size_rtx", "=", "GEN_INT", "(", "frame_size", ")", ";", "else", "{", "gcc_assert", "(", "!", "interrupt_handler", ")", ";", "size_rtx", "=", "gen_rtx_REG", "(", "SImode", ",", "GPR_R9", ")", ";", "insn", "=", "emit_move_insn", "(", "size_rtx", ",", "GEN_INT", "(", "frame_size", "&", "0xffff0000", ")", ")", ";", "insn", "=", "emit_insn", "(", "gen_iorsi3", "(", "size_rtx", ",", "size_rtx", ",", "GEN_INT", "(", "frame_size", "&", "0x0000ffff", ")", ")", ")", ";", "emit_insn", "(", "gen_addsi3", "(", "size_rtx", ",", "size_rtx", ",", "stack_pointer_rtx", ")", ")", ";", "}", "if", "(", "frame_pointer_needed", ")", "insn", "=", "emit_move_insn", "(", "stack_pointer_rtx", ",", "frame_pointer_rtx", ")", ";", "mt_emit_save_fp", "(", "FROM_MEM_TO_PROCESSOR", ",", "current_frame_info", ")", ";", "mt_emit_save_regs", "(", "FROM_MEM_TO_PROCESSOR", ",", "current_frame_info", ")", ";", "if", "(", "frame_size", ")", "{", "if", "(", "CONST_OK_FOR_LETTER_P", "(", "frame_size", ",", "'O'", ")", ")", "insn", "=", "emit_insn", "(", "gen_addsi3", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "size_rtx", ")", ")", ";", "else", "insn", "=", "emit_move_insn", "(", "stack_pointer_rtx", ",", "gen_rtx_REG", "(", "SImode", ",", "GPR_R9", ")", ")", ";", "REG_NOTES", "(", "insn", ")", "=", "gen_rtx_EXPR_LIST", "(", "REG_FRAME_RELATED_EXPR", ",", "gen_rtx_SET", "(", "VOIDmode", ",", "stack_pointer_rtx", ",", "gen_rtx_PLUS", "(", "SImode", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "frame_size", ")", ")", ")", ",", "REG_NOTES", "(", "insn", ")", ")", ";", "}", "if", "(", "cfun", "->", "machine", "&&", "cfun", "->", "machine", "->", "eh_stack_adjust", "!=", "NULL_RTX", ")", "emit_insn", "(", "gen_addsi3", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "cfun", "->", "machine", "->", "eh_stack_adjust", ")", ")", ";", "if", "(", "eh_mode", "==", "EH_EPILOGUE", ")", "{", "emit_jump_insn", "(", "gen_eh_return_internal", "(", ")", ")", ";", "emit_barrier", "(", ")", ";", "}", "else", "if", "(", "interrupt_handler", ")", "emit_jump_insn", "(", "gen_return_interrupt_internal", "(", ")", ")", ";", "else", "emit_jump_insn", "(", "gen_return_internal", "(", ")", ")", ";", "interrupt_handler", "=", "0", ";", "current_frame_info", "=", "zero_frame_info", ";", "if", "(", "cfun", "->", "machine", ")", "cfun", "->", "machine", "->", "eh_stack_adjust", "=", "NULL_RTX", ";", "}", ""], "natrual_language": ["Generate", "epilogue", ".", "EH_MODE", "is", "NORMAL_EPILOGUE", "when", "generating", "a", "function", "epilogue", ",", "or", "EH_EPILOGUE", "when", "generating", "an", "EH", "epilogue", "."], "TS_V_token": ["mt", "0xffff0000", "0x0000ffff", "0"], "File": "mt", "Func": "mt_expand_epilogue", "Target": "mt", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 764, "Length": 315, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "pa_expand_compare_and_swap_loop", "(", "rtx", "mem", ",", "rtx", "old_reg", ",", "rtx", "new_reg", ",", "rtx", "seq", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "mem", ")", ";", "rtx_code_label", "*", "label", ";", "rtx", "cmp_reg", ",", "success", ",", "oldval", ";", "label", "=", "gen_label_rtx", "(", ")", ";", "cmp_reg", "=", "gen_reg_rtx", "(", "mode", ")", ";", "emit_move_insn", "(", "cmp_reg", ",", "mem", ")", ";", "emit_label", "(", "label", ")", ";", "emit_move_insn", "(", "old_reg", ",", "cmp_reg", ")", ";", "if", "(", "seq", ")", "emit_insn", "(", "seq", ")", ";", "success", "=", "NULL_RTX", ";", "oldval", "=", "cmp_reg", ";", "if", "(", "!", "expand_atomic_compare_and_swap", "(", "&", "success", ",", "&", "oldval", ",", "mem", ",", "old_reg", ",", "new_reg", ",", "false", ",", "MEMMODEL_SYNC_SEQ_CST", ",", "MEMMODEL_RELAXED", ")", ")", "return", "false", ";", "if", "(", "oldval", "!=", "cmp_reg", ")", "emit_move_insn", "(", "cmp_reg", ",", "oldval", ")", ";", "emit_cmp_and_jump_insns", "(", "success", ",", "const0_rtx", ",", "EQ", ",", "const0_rtx", ",", "GET_MODE", "(", "success", ")", ",", "1", ",", "label", ",", "0", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "is", "a", "helper", "function", "for", "the", "other", "atomic", "operations", ".", "This", "function", "emits", "a", "loop", "that", "contains", "SEQ", "that", "iterates", "until", "a", "compare-and-swap", "operation", "at", "the", "end", "succeeds", ".", "MEM", "is", "the", "memory", "to", "be", "modified", ".", "SEQ", "is", "a", "set", "of", "instructions", "that", "takes", "a", "value", "from", "OLD_REG", "as", "an", "input", "and", "produces", "a", "value", "in", "NEW_REG", "as", "an", "output", ".", "Before", "SEQ", ",", "OLD_REG", "will", "be", "set", "to", "the", "current", "contents", "of", "MEM", ".", "After", "SEQ", ",", "a", "compare-and-swap", "will", "attempt", "to", "update", "MEM", "with", "NEW_REG", ".", "The", "function", "returns", "true", "when", "the", "loop", "was", "generated", "successfully", "."], "TS_V_token": ["pa", "1", "0"], "File": "pa5", "Func": "pa_expand_compare_and_swap_loop", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 765, "Length": 151, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsTargetMachine", "::", "addPreEmitPass", "(", "PassManagerBase", "&", "PM", ",", "CodeGenOpt", "::", "Level", "OptLevel", ")", "{", "PM", ".", "add", "(", "createMipsDelaySlotFillerPass", "(", "*", "this", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["Mips", "Mips", "Mips"], "File": "MipsTargetMachine", "Func": "addPreEmitPass", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 766, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "sh_is_nott_insn", "(", "const", "rtx_insn", "*", "i", ")", "{", "return", "i", "!=", "NULL", "&&", "GET_CODE", "(", "PATTERN", "(", "i", ")", ")", "==", "SET", "&&", "t_reg_operand", "(", "XEXP", "(", "PATTERN", "(", "i", ")", ",", "0", ")", ",", "VOIDmode", ")", "&&", "negt_reg_operand", "(", "XEXP", "(", "PATTERN", "(", "i", ")", ",", "1", ")", ",", "VOIDmode", ")", ";", "}", ""], "natrual_language": ["Given", "an", "insn", ",", "determine", "whether", "it", "'s", "a", "'nott", "'", "insn", ",", "i.e", ".", "an", "insn", "that", "negates", "the", "T", "bit", "and", "stores", "the", "result", "in", "the", "T", "bit", "."], "TS_V_token": ["sh", "0", "1"], "File": "sh", "Func": "sh_is_nott_insn", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 767, "Length": 55, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "WinEHStatePass", "::", "runOnFunction", "(", "Function", "&", "F", ")", "{", "if", "(", "!", "F", ".", "hasPersonalityFn", "(", ")", ")", "return", "false", ";", "PersonalityFn", "=", "dyn_cast", "<", "Function", ">", "(", "F", ".", "getPersonalityFn", "(", ")", "->", "stripPointerCasts", "(", ")", ")", ";", "if", "(", "!", "PersonalityFn", ")", "return", "false", ";", "Personality", "=", "classifyEHPersonality", "(", "PersonalityFn", ")", ";", "if", "(", "!", "isFuncletEHPersonality", "(", "Personality", ")", ")", "return", "false", ";", "bool", "HasPads", "=", "false", ";", "for", "(", "BasicBlock", "&", "BB", ":", "F", ")", "{", "if", "(", "BB", ".", "isEHPad", "(", ")", ")", "{", "HasPads", "=", "true", ";", "break", ";", "}", "}", "if", "(", "!", "HasPads", ")", "return", "false", ";", "F", ".", "addFnAttr", "(", "\"no-frame-pointer-elim\"", ",", "\"true\"", ")", ";", "emitExceptionRegistrationRecord", "(", "&", "F", ")", ";", "auto", "*", "MMI", "=", "getAnalysisIfAvailable", "<", "MachineModuleInfo", ">", "(", ")", ";", "std", "::", "unique_ptr", "<", "WinEHFuncInfo", ">", "FuncInfoPtr", ";", "if", "(", "!", "MMI", ")", "FuncInfoPtr", ".", "reset", "(", "new", "WinEHFuncInfo", "(", ")", ")", ";", "WinEHFuncInfo", "&", "FuncInfo", "=", "*", "(", "MMI", "?", "&", "MMI", "->", "getWinEHFuncInfo", "(", "&", "F", ")", ":", "FuncInfoPtr", ".", "get", "(", ")", ")", ";", "FuncInfo", ".", "EHRegNode", "=", "RegNode", ";", "switch", "(", "Personality", ")", "{", "default", ":", "llvm_unreachable", "(", "\"unexpected personality function\"", ")", ";", "case", "EHPersonality", "::", "MSVC_CXX", ":", "addCXXStateStores", "(", "F", ",", "FuncInfo", ")", ";", "break", ";", "case", "EHPersonality", "::", "MSVC_X86SEH", ":", "addSEHStateStores", "(", "F", ",", "FuncInfo", ")", ";", "break", ";", "}", "PersonalityFn", "=", "nullptr", ";", "Personality", "=", "EHPersonality", "::", "Unknown", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnFunction", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "the", "per-function", "processing", "of", "the", "pass", "."], "TS_V_token": ["X86", "\"no-frame-pointer-elim\"", "\"true\"", "\"unexpected personality function\"", "X86"], "File": "X86WinEHState5", "Func": "runOnFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 768, "Length": 239, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "thumb2_expand_return", "(", "bool", "simple_return", ")", "{", "int", "i", ",", "num_regs", ";", "unsigned", "long", "saved_regs_mask", ";", "arm_stack_offsets", "*", "offsets", ";", "offsets", "=", "arm_get_frame_offsets", "(", ")", ";", "saved_regs_mask", "=", "offsets", "->", "saved_regs_mask", ";", "for", "(", "i", "=", "0", ",", "num_regs", "=", "0", ";", "i", "<=", "LAST_ARM_REGNUM", ";", "i", "++", ")", "if", "(", "saved_regs_mask", "&", "(", "1", "<<", "i", ")", ")", "num_regs", "++", ";", "if", "(", "!", "simple_return", "&&", "saved_regs_mask", ")", "{", "gcc_assert", "(", "!", "IS_CMSE_ENTRY", "(", "arm_current_func_type", "(", ")", ")", ")", ";", "if", "(", "arm_current_function_pac_enabled_p", "(", ")", ")", "{", "gcc_assert", "(", "!", "(", "saved_regs_mask", "&", "(", "1", "<<", "PC_REGNUM", ")", ")", ")", ";", "arm_emit_multi_reg_pop", "(", "saved_regs_mask", ")", ";", "emit_insn", "(", "gen_aut_nop", "(", ")", ")", ";", "emit_jump_insn", "(", "simple_return_rtx", ")", ";", "}", "else", "if", "(", "num_regs", "==", "1", ")", "{", "rtx", "par", "=", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "rtvec_alloc", "(", "2", ")", ")", ";", "rtx", "reg", "=", "gen_rtx_REG", "(", "SImode", ",", "PC_REGNUM", ")", ";", "rtx", "addr", "=", "gen_rtx_MEM", "(", "SImode", ",", "gen_rtx_POST_INC", "(", "SImode", ",", "stack_pointer_rtx", ")", ")", ";", "set_mem_alias_set", "(", "addr", ",", "get_frame_alias_set", "(", ")", ")", ";", "XVECEXP", "(", "par", ",", "0", ",", "0", ")", "=", "ret_rtx", ";", "XVECEXP", "(", "par", ",", "0", ",", "1", ")", "=", "gen_rtx_SET", "(", "reg", ",", "addr", ")", ";", "RTX_FRAME_RELATED_P", "(", "XVECEXP", "(", "par", ",", "0", ",", "1", ")", ")", "=", "1", ";", "emit_jump_insn", "(", "par", ")", ";", "}", "else", "{", "saved_regs_mask", "&=", "~", "(", "1", "<<", "LR_REGNUM", ")", ";", "saved_regs_mask", "|=", "(", "1", "<<", "PC_REGNUM", ")", ";", "arm_emit_multi_reg_pop", "(", "saved_regs_mask", ")", ";", "}", "}", "else", "{", "if", "(", "IS_CMSE_ENTRY", "(", "arm_current_func_type", "(", ")", ")", ")", "cmse_nonsecure_entry_clear_before_return", "(", ")", ";", "emit_jump_insn", "(", "simple_return_rtx", ")", ";", "}", "}", ""], "natrual_language": ["Generate", "pattern", "*", "pop_multiple_with_stack_update_and_return", "if", "single", "POP", "instruction", "can", "be", "generated", ".", "LR", "should", "be", "replaced", "by", "PC", ".", "All", "the", "checks", "required", "are", "already", "done", "by", "USE_RETURN_INSN", "(", ")", ".", "Hence", ",", "all", "we", "really", "need", "to", "check", "here", "is", "if", "single", "register", "is", "to", "be", "returned", ",", "or", "multiple", "register", "return", "."], "TS_V_token": ["arm", "0", "0", "1", "1", "1", "2", "0", "0", "0", "1", "0", "1", "1", "1", "1"], "File": "arm1", "Func": "thumb2_expand_return", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 769, "Length": 270, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "int", "nds32_dbx_register_number", "(", "unsigned", "int", "regno", ")", "{", "if", "(", "NDS32_IS_FPR_REGNUM", "(", "regno", ")", ")", "return", "regno", "+", "4", ";", "return", "regno", ";", "}", ""], "natrual_language": ["Map", "internal", "gcc", "register", "numbers", "to", "DWARF2", "register", "numbers", "."], "TS_V_token": ["nds32", "4"], "File": "nds32", "Func": "nds32_dbx_register_number", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 770, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "fma_forest", "::", "merge_forest", "(", "fma_forest", "*", "other_forest", ")", "{", "std", "::", "list", "<", "fma_root_node", "*", ">", "*", "other_roots", ";", "std", "::", "list", "<", "fma_root_node", "*", ">", "::", "iterator", "other_root_iter", ";", "if", "(", "this", "==", "other_forest", ")", "return", ";", "other_roots", "=", "other_forest", "->", "m_roots", ";", "for", "(", "other_root_iter", "=", "other_roots", "->", "begin", "(", ")", ";", "other_root_iter", "!=", "other_roots", "->", "end", "(", ")", ";", "++", "other_root_iter", ")", "(", "*", "other_root_iter", ")", "->", "set_forest", "(", "this", ")", ";", "this", "->", "m_globals", "->", "remove_forest", "(", "other_forest", ")", ";", "this", "->", "m_roots", "->", "splice", "(", "this", "->", "m_roots", "->", "begin", "(", ")", ",", "*", "other_roots", ")", ";", "this", "->", "m_nb_nodes", "+=", "other_forest", "->", "m_nb_nodes", ";", "delete", "other_forest", ";", "}", ""], "natrual_language": ["Merge", "REF_FOREST", "and", "OTHER_FOREST", "together", ",", "making", "REF_FOREST", "the", "canonical", "fma_forest", "object", "to", "represent", "both", "."], "TS_V_token": ["aarch64"], "File": "cortex-a57-fma-steering", "Func": "merge_forest", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 771, "Length": 115, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "adjust_extract", "(", "rtx_insn", "*", "insn", ")", "{", "rtx", "pattern", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "pattern", ")", "==", "PARALLEL", ")", "pattern", "=", "XVECEXP", "(", "pattern", ",", "0", ",", "0", ")", ";", "rtx", "src", "=", "SET_SRC", "(", "pattern", ")", ";", "rtx", "sel", "=", "GET_CODE", "(", "src", ")", "==", "VEC_DUPLICATE", "?", "XEXP", "(", "src", ",", "0", ")", ":", "src", ";", "rtx", "par", "=", "XEXP", "(", "sel", ",", "1", ")", ";", "int", "half_elts", "=", "GET_MODE_NUNITS", "(", "GET_MODE", "(", "XEXP", "(", "sel", ",", "0", ")", ")", ")", ">>", "1", ";", "int", "lane", "=", "INTVAL", "(", "XVECEXP", "(", "par", ",", "0", ",", "0", ")", ")", ";", "lane", "=", "lane", ">=", "half_elts", "?", "lane", "-", "half_elts", ":", "lane", "+", "half_elts", ";", "XVECEXP", "(", "par", ",", "0", ",", "0", ")", "=", "GEN_INT", "(", "lane", ")", ";", "INSN_CODE", "(", "insn", ")", "=", "-", "1", ";", "df_insn_rescan", "(", "insn", ")", ";", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"Changing lane for extract %d\\n\"", ",", "INSN_UID", "(", "insn", ")", ")", ";", "}", ""], "natrual_language": ["Given", "OP", "that", "contains", "a", "vector", "extract", "operation", ",", "adjust", "the", "index", "of", "the", "extracted", "lane", "to", "account", "for", "the", "doubleword", "swap", "."], "TS_V_token": ["rs6000", "0", "0", "0", "1", "0", "1", "0", "0", "0", "0", "1", "\"Changing lane for extract %d\\n\""], "File": "rs6000-p8swap", "Func": "adjust_extract", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 772, "Length": 165, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCFixupKindInfo", "&", "getFixupKindInfo", "(", "MCFixupKind", "Kind", ")", "const", "{", "const", "static", "MCFixupKindInfo", "Infos", "[", "PPC", "::", "NumTargetFixupKinds", "]", "=", "{", "{", "\"fixup_ppc_br24\"", ",", "6", ",", "24", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_ppc_brcond14\"", ",", "16", ",", "14", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_ppc_lo16\"", ",", "16", ",", "16", ",", "0", "}", ",", "{", "\"fixup_ppc_ha16\"", ",", "16", ",", "16", ",", "0", "}", ",", "{", "\"fixup_ppc_lo14\"", ",", "16", ",", "14", ",", "0", "}", "}", ";", "if", "(", "Kind", "<", "FirstTargetFixupKind", ")", "return", "TargetAsmBackend", "::", "getFixupKindInfo", "(", "Kind", ")", ";", "assert", "(", "unsigned", "(", "Kind", "-", "FirstTargetFixupKind", ")", "<", "getNumFixupKinds", "(", ")", "&&", "\"Invalid kind!\"", ")", ";", "return", "Infos", "[", "Kind", "-", "FirstTargetFixupKind", "]", ";", "}", ""], "natrual_language": ["Get", "information", "on", "a", "fixup", "kind", "."], "TS_V_token": ["PowerPC", "PPC::NumTargetFixupKinds", "\"fixup_ppc_br24\"", "6", "24", "\"fixup_ppc_brcond14\"", "16", "14", "\"fixup_ppc_lo16\"", "16", "16", "0", "\"fixup_ppc_ha16\"", "16", "16", "0", "\"fixup_ppc_lo14\"", "16", "14", "0", "\"Invalid kind!\""], "File": "PPCAsmBackend6", "Func": "getFixupKindInfo", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 773, "Length": 115, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "AtomicExpansionKind", "X86TargetLowering", "::", "shouldExpandAtomicLoadInIR", "(", "LoadInst", "*", "LI", ")", "const", "{", "Type", "*", "MemType", "=", "LI", "->", "getType", "(", ")", ";", "bool", "NoImplicitFloatOps", "=", "LI", "->", "getFunction", "(", ")", "->", "hasFnAttribute", "(", "Attribute", "::", "NoImplicitFloat", ")", ";", "if", "(", "MemType", "->", "getPrimitiveSizeInBits", "(", ")", "==", "64", "&&", "!", "Subtarget", ".", "is64Bit", "(", ")", "&&", "!", "Subtarget", ".", "useSoftFloat", "(", ")", "&&", "!", "NoImplicitFloatOps", "&&", "(", "Subtarget", ".", "hasSSE1", "(", ")", "||", "Subtarget", ".", "hasX87", "(", ")", ")", ")", "return", "AtomicExpansionKind", "::", "None", ";", "return", "needsCmpXchgNb", "(", "MemType", ")", "?", "AtomicExpansionKind", "::", "CmpXChg", ":", "AtomicExpansionKind", "::", "None", ";", "}", ""], "natrual_language": ["Returns", "how", "the", "given", "(", "atomic", ")", "load", "should", "be", "expanded", "by", "the", "IR-level", "AtomicExpand", "pass", "."], "TS_V_token": ["X86", "X86", "64"], "File": "X86ISelLowering (2)5", "Func": "shouldExpandAtomicLoadInIR", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 774, "Length": 100, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "DecodeStatus", "SystemZDisassembler", "::", "getInstruction", "(", "MCInst", "&", "MI", ",", "uint64_t", "&", "Size", ",", "const", "MemoryObject", "&", "Region", ",", "uint64_t", "Address", ",", "raw_ostream", "&", "os", ",", "raw_ostream", "&", "cs", ")", "const", "{", "uint8_t", "Bytes", "[", "6", "]", ";", "Size", "=", "0", ";", "if", "(", "Region", ".", "readBytes", "(", "Address", ",", "2", ",", "Bytes", ")", "==", "-", "1", ")", "return", "MCDisassembler", "::", "Fail", ";", "const", "uint8_t", "*", "Table", ";", "if", "(", "Bytes", "[", "0", "]", "<", "0x40", ")", "{", "Size", "=", "2", ";", "Table", "=", "DecoderTable16", ";", "}", "else", "if", "(", "Bytes", "[", "0", "]", "<", "0xc0", ")", "{", "Size", "=", "4", ";", "Table", "=", "DecoderTable32", ";", "}", "else", "{", "Size", "=", "6", ";", "Table", "=", "DecoderTable48", ";", "}", "if", "(", "Size", ">", "2", "&&", "Region", ".", "readBytes", "(", "Address", "+", "2", ",", "Size", "-", "2", ",", "Bytes", "+", "2", ")", "==", "-", "1", ")", "return", "MCDisassembler", "::", "Fail", ";", "uint64_t", "Inst", "=", "0", ";", "for", "(", "uint64_t", "I", "=", "0", ";", "I", "<", "Size", ";", "++", "I", ")", "Inst", "=", "(", "Inst", "<<", "8", ")", "|", "Bytes", "[", "I", "]", ";", "return", "decodeInstruction", "(", "Table", ",", "MI", ",", "Inst", ",", "Address", ",", "this", ",", "STI", ")", ";", "}", ""], "natrual_language": ["Returns", "the", "disassembly", "of", "a", "single", "instruction", "."], "TS_V_token": ["SystemZ", "SystemZ", "6", "0", "2", "1", "0", "0x40", "2", "0", "0xc0", "4", "6", "2", "2", "2", "2", "1", "0", "0", "8"], "File": "SystemZDisassembler1", "Func": "getInstruction", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 775, "Length": 197, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64ConditionOptimizer", "::", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "{", "AU", ".", "addRequired", "<", "MachineDominatorTree", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "MachineDominatorTree", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "LiveIntervals", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "LiveIntervals", ">", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64ConditionOptimizer26", "Func": "getAnalysisUsage", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 776, "Length": 55, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86FrameLowering", "::", "emitSPUpdate", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "MBBI", ",", "int64_t", "NumBytes", ",", "bool", "InEpilogue", ")", "const", "{", "bool", "isSub", "=", "NumBytes", "<", "0", ";", "uint64_t", "Offset", "=", "isSub", "?", "-", "NumBytes", ":", "NumBytes", ";", "uint64_t", "Chunk", "=", "(", "1LL", "<<", "31", ")", "-", "1", ";", "DebugLoc", "DL", "=", "MBB", ".", "findDebugLoc", "(", "MBBI", ")", ";", "while", "(", "Offset", ")", "{", "if", "(", "Offset", ">", "Chunk", ")", "{", "unsigned", "Reg", "=", "0", ";", "if", "(", "isSub", "&&", "!", "isEAXLiveIn", "(", "MBB", ")", ")", "Reg", "=", "(", "unsigned", ")", "(", "Is64Bit", "?", "X86", "::", "RAX", ":", "X86", "::", "EAX", ")", ";", "else", "Reg", "=", "findDeadCallerSavedReg", "(", "MBB", ",", "MBBI", ",", "TRI", ",", "Is64Bit", ")", ";", "if", "(", "Reg", ")", "{", "unsigned", "Opc", "=", "Is64Bit", "?", "X86", "::", "MOV64ri", ":", "X86", "::", "MOV32ri", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "Opc", ")", ",", "Reg", ")", ".", "addImm", "(", "Offset", ")", ";", "Opc", "=", "isSub", "?", "getSUBrrOpcode", "(", "Is64Bit", ")", ":", "getADDrrOpcode", "(", "Is64Bit", ")", ";", "MachineInstr", "*", "MI", "=", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "Opc", ")", ",", "StackPtr", ")", ".", "addReg", "(", "StackPtr", ")", ".", "addReg", "(", "Reg", ")", ";", "MI", "->", "getOperand", "(", "3", ")", ".", "setIsDead", "(", ")", ";", "Offset", "=", "0", ";", "continue", ";", "}", "}", "uint64_t", "ThisVal", "=", "std", "::", "min", "(", "Offset", ",", "Chunk", ")", ";", "if", "(", "ThisVal", "==", "(", "Is64Bit", "?", "8", ":", "4", ")", ")", "{", "unsigned", "Reg", "=", "isSub", "?", "(", "unsigned", ")", "(", "Is64Bit", "?", "X86", "::", "RAX", ":", "X86", "::", "EAX", ")", ":", "findDeadCallerSavedReg", "(", "MBB", ",", "MBBI", ",", "TRI", ",", "Is64Bit", ")", ";", "if", "(", "Reg", ")", "{", "unsigned", "Opc", "=", "isSub", "?", "(", "Is64Bit", "?", "X86", "::", "PUSH64r", ":", "X86", "::", "PUSH32r", ")", ":", "(", "Is64Bit", "?", "X86", "::", "POP64r", ":", "X86", "::", "POP32r", ")", ";", "MachineInstr", "*", "MI", "=", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "Opc", ")", ")", ".", "addReg", "(", "Reg", ",", "getDefRegState", "(", "!", "isSub", ")", "|", "getUndefRegState", "(", "isSub", ")", ")", ";", "if", "(", "isSub", ")", "MI", "->", "setFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ";", "else", "MI", "->", "setFlag", "(", "MachineInstr", "::", "FrameDestroy", ")", ";", "Offset", "-=", "ThisVal", ";", "continue", ";", "}", "}", "MachineInstrBuilder", "MI", "=", "BuildStackAdjustment", "(", "MBB", ",", "MBBI", ",", "DL", ",", "isSub", "?", "-", "ThisVal", ":", "ThisVal", ",", "InEpilogue", ")", ";", "if", "(", "isSub", ")", "MI", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ";", "else", "MI", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameDestroy", ")", ";", "Offset", "-=", "ThisVal", ";", "}", "}", ""], "natrual_language": ["Emit", "a", "series", "of", "instructions", "to", "increment", "/", "decrement", "the", "stack", "pointer", "by", "a", "constant", "value", "."], "TS_V_token": ["X86", "X86", "0", "1LL", "31", "1", "0", "X86::RAX", "X86::EAX", "X86::MOV64ri", "X86::MOV32ri", "3", "0", "8", "4", "X86::RAX", "X86::EAX", "X86::PUSH64r", "X86::PUSH32r", "X86::POP64r", "X86::POP32r"], "File": "X86FrameLowering102", "Func": "emitSPUpdate", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 777, "Length": 432, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "length_fp_args", "(", "rtx_insn", "*", "insn", ")", "{", "int", "length", "=", "0", ";", "rtx", "link", ";", "for", "(", "link", "=", "CALL_INSN_FUNCTION_USAGE", "(", "insn", ")", ";", "link", ";", "link", "=", "XEXP", "(", "link", ",", "1", ")", ")", "{", "int", "arg_mode", ",", "regno", ";", "rtx", "use", "=", "XEXP", "(", "link", ",", "0", ")", ";", "if", "(", "!", "(", "GET_CODE", "(", "use", ")", "==", "USE", "&&", "GET_CODE", "(", "XEXP", "(", "use", ",", "0", ")", ")", "==", "REG", "&&", "FUNCTION_ARG_REGNO_P", "(", "REGNO", "(", "XEXP", "(", "use", ",", "0", ")", ")", ")", ")", ")", "continue", ";", "arg_mode", "=", "GET_MODE", "(", "XEXP", "(", "use", ",", "0", ")", ")", ";", "regno", "=", "REGNO", "(", "XEXP", "(", "use", ",", "0", ")", ")", ";", "if", "(", "regno", ">=", "32", "&&", "regno", "<=", "39", ")", "{", "if", "(", "arg_mode", "==", "SFmode", ")", "length", "+=", "8", ";", "else", "length", "+=", "12", ";", "}", "}", "return", "length", ";", "}", ""], "natrual_language": ["Compute", "length", "of", "the", "FP", "argument", "copy", "sequence", "for", "INSN", "."], "TS_V_token": ["pa", "0", "1", "0", "0", "0", "0", "0", "32", "39", "8", "12"], "File": "pa", "Func": "length_fp_args", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 778, "Length": 148, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseInstrInfo", "::", "reverseBranchCondition", "(", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Cond", ")", "const", "{", "ARMCC", "::", "CondCodes", "CC", "=", "(", "ARMCC", "::", "CondCodes", ")", "(", "int", ")", "Cond", "[", "0", "]", ".", "getImm", "(", ")", ";", "Cond", "[", "0", "]", ".", "setImm", "(", "ARMCC", "::", "getOppositeCondition", "(", "CC", ")", ")", ";", "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": ["ARM", "ARM", "ARMCC::CondCodes", "ARMCC::CondCodes", "0", "0", "ARMCC::getOppositeCondition"], "File": "ARMBaseInstrInfo1", "Func": "reverseBranchCondition", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 779, "Length": 55, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "noncall_uses_reg", "(", "rtx", "reg", ",", "rtx_insn", "*", "insn", ",", "rtx", "*", "set", ")", "{", "rtx", "pattern", ",", "reg2", ";", "*", "set", "=", "NULL_RTX", ";", "reg2", "=", "sfunc_uses_reg", "(", "insn", ")", ";", "if", "(", "reg2", "&&", "REGNO", "(", "reg2", ")", "==", "REGNO", "(", "reg", ")", ")", "{", "pattern", "=", "single_set", "(", "insn", ")", ";", "if", "(", "pattern", "&&", "REG_P", "(", "SET_DEST", "(", "pattern", ")", ")", "&&", "REGNO", "(", "reg", ")", "==", "REGNO", "(", "SET_DEST", "(", "pattern", ")", ")", ")", "*", "set", "=", "pattern", ";", "return", "false", ";", "}", "if", "(", "!", "CALL_P", "(", "insn", ")", ")", "{", "pattern", "=", "single_set", "(", "insn", ")", ";", "if", "(", "pattern", "&&", "REG_P", "(", "SET_DEST", "(", "pattern", ")", ")", "&&", "REGNO", "(", "reg", ")", "==", "REGNO", "(", "SET_DEST", "(", "pattern", ")", ")", ")", "{", "rtx", "par", ",", "part", ";", "int", "i", ";", "*", "set", "=", "pattern", ";", "par", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "par", ")", "==", "PARALLEL", ")", "for", "(", "i", "=", "XVECLEN", "(", "par", ",", "0", ")", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "part", "=", "XVECEXP", "(", "par", ",", "0", ",", "i", ")", ";", "if", "(", "GET_CODE", "(", "part", ")", "!=", "SET", "&&", "reg_mentioned_p", "(", "reg", ",", "part", ")", ")", "return", "true", ";", "}", "return", "reg_mentioned_p", "(", "reg", ",", "SET_SRC", "(", "pattern", ")", ")", ";", "}", "return", "true", ";", "}", "pattern", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "pattern", ")", "==", "PARALLEL", ")", "{", "int", "i", ";", "for", "(", "i", "=", "XVECLEN", "(", "pattern", ",", "0", ")", "-", "1", ";", "i", ">=", "1", ";", "i", "--", ")", "if", "(", "reg_mentioned_p", "(", "reg", ",", "XVECEXP", "(", "pattern", ",", "0", ",", "i", ")", ")", ")", "return", "true", ";", "pattern", "=", "XVECEXP", "(", "pattern", ",", "0", ",", "0", ")", ";", "}", "if", "(", "GET_CODE", "(", "pattern", ")", "==", "SET", ")", "{", "if", "(", "reg_mentioned_p", "(", "reg", ",", "SET_DEST", "(", "pattern", ")", ")", ")", "{", "if", "(", "!", "REG_P", "(", "SET_DEST", "(", "pattern", ")", ")", "||", "REGNO", "(", "reg", ")", "!=", "REGNO", "(", "SET_DEST", "(", "pattern", ")", ")", ")", "return", "true", ";", "*", "set", "=", "pattern", ";", "}", "pattern", "=", "SET_SRC", "(", "pattern", ")", ";", "}", "if", "(", "GET_CODE", "(", "pattern", ")", "!=", "CALL", "||", "!", "MEM_P", "(", "XEXP", "(", "pattern", ",", "0", ")", ")", "||", "!", "rtx_equal_p", "(", "reg", ",", "XEXP", "(", "XEXP", "(", "pattern", ",", "0", ")", ",", "0", ")", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["See", "if", "the", "only", "way", "in", "which", "INSN", "uses", "REG", "is", "by", "calling", "it", ",", "or", "by", "setting", "it", "while", "calling", "it", ".", "Set", "*", "SET", "to", "a", "SET", "rtx", "if", "the", "register", "is", "set", "by", "INSN", "."], "TS_V_token": ["sh", "0", "1", "0", "0", "0", "1", "1", "0", "0", "0", "0", "0", "0"], "File": "sh4", "Func": "noncall_uses_reg", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 780, "Length": 408, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "forceScalarizeMaskedGather", "(", "VectorType", "*", "VTy", ",", "Align", "Alignment", ")", "{", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "forces", "scalarizing", "of", "llvm.masked.gather", "intrinsics", "."], "TS_V_token": ["ARM"], "File": "ARMTargetTransformInfo (2)1", "Func": "forceScalarizeMaskedGather", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 781, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "X86TargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "DebugLoc", "dl", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "bool", "Is64Bit", "=", "Subtarget", "->", "is64Bit", "(", ")", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "getTargetMachine", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "RetCC_X86", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "EVT", "CopyVT", "=", "VA", ".", "getValVT", "(", ")", ";", "if", "(", "(", "CopyVT", "==", "MVT", "::", "f32", "||", "CopyVT", "==", "MVT", "::", "f64", ")", "&&", "(", "(", "Is64Bit", "||", "Ins", "[", "i", "]", ".", "Flags", ".", "isInReg", "(", ")", ")", "&&", "!", "Subtarget", "->", "hasSSE1", "(", ")", ")", ")", "{", "report_fatal_error", "(", "\"SSE register return with SSE disabled\"", ")", ";", "}", "SDValue", "Val", ";", "if", "(", "VA", ".", "getLocReg", "(", ")", "==", "X86", "::", "ST0", "||", "VA", ".", "getLocReg", "(", ")", "==", "X86", "::", "ST1", ")", "{", "if", "(", "isScalarFPTypeInSSEReg", "(", "VA", ".", "getValVT", "(", ")", ")", ")", "CopyVT", "=", "MVT", "::", "f80", ";", "SDValue", "Ops", "[", "]", "=", "{", "Chain", ",", "InFlag", "}", ";", "Chain", "=", "SDValue", "(", "DAG", ".", "getMachineNode", "(", "X86", "::", "FpPOP_RETVAL", ",", "dl", ",", "CopyVT", ",", "MVT", "::", "Other", ",", "MVT", "::", "Glue", ",", "Ops", ",", "2", ")", ",", "1", ")", ";", "Val", "=", "Chain", ".", "getValue", "(", "0", ")", ";", "if", "(", "CopyVT", "!=", "VA", ".", "getValVT", "(", ")", ")", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "FP_ROUND", ",", "dl", ",", "VA", ".", "getValVT", "(", ")", ",", "Val", ",", "DAG", ".", "getIntPtrConstant", "(", "1", ")", ")", ";", "}", "else", "{", "Chain", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "dl", ",", "VA", ".", "getLocReg", "(", ")", ",", "CopyVT", ",", "InFlag", ")", ".", "getValue", "(", "1", ")", ";", "Val", "=", "Chain", ".", "getValue", "(", "0", ")", ";", "}", "InFlag", "=", "Chain", ".", "getValue", "(", "2", ")", ";", "InVals", ".", "push_back", "(", "Val", ")", ";", "}", "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": ["X86", "X86", "ISD::InputArg", "16", "X86", "0", "MVT::f32", "MVT::f64", "\"SSE register return with SSE disabled\"", "X86::ST0", "X86::ST1", "MVT::f80", "X86::FpPOP_RETVAL", "MVT::Other", "MVT::Glue", "2", "1", "0", "ISD::FP_ROUND", "1", "1", "0", "2"], "File": "X86ISelLowering114", "Func": "LowerCallResult", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 782, "Length": 375, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mem_locations_overlap", "(", "rtx", "mem1", ",", "rtx", "mem2", ")", "{", "rtx", "reg1", ",", "reg2", ";", "HOST_WIDE_INT", "off1", ",", "size1", ",", "off2", ",", "size2", ";", "if", "(", "get_memref_parts", "(", "mem1", ",", "&", "reg1", ",", "&", "off1", ",", "&", "size1", ")", "&&", "get_memref_parts", "(", "mem2", ",", "&", "reg2", ",", "&", "off2", ",", "&", "size2", ")", ")", "return", "(", "(", "REGNO", "(", "reg1", ")", "==", "REGNO", "(", "reg2", ")", ")", "&&", "(", "(", "(", "off1", "<=", "off2", ")", "&&", "(", "off1", "+", "size1", ">", "off2", ")", ")", "||", "(", "(", "off2", "<=", "off1", ")", "&&", "(", "off2", "+", "size2", ">", "off1", ")", ")", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["This", "function", "returns", "true", "if", "it", "can", "be", "determined", "that", "the", "two", "MEM", "locations", "overlap", "by", "at", "least", "1", "byte", "based", "on", "base", "reg/offset/size", "."], "TS_V_token": ["rs6000"], "File": "rs6000", "Func": "mem_locations_overlap", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 783, "Length": 108, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "AArch64GNULDBackend", "&", "getTarget", "(", ")", "const", "{", "return", "m_Target", ";", "}", ""], "natrual_language": ["getTarget", "-", "Return", "the", "target", "machine", "this", "machine", "code", "is", "compiled", "with"], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64Relocator", "Func": "getTarget", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 784, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCExpandAtomicPseudo", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "bool", "Changed", "=", "false", ";", "TII", "=", "static_cast", "<", "const", "PPCInstrInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "&", "TII", "->", "getRegisterInfo", "(", ")", ";", "for", "(", "MachineFunction", "::", "iterator", "I", "=", "MF", ".", "begin", "(", ")", ",", "E", "=", "MF", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "MachineBasicBlock", "&", "MBB", "=", "*", "I", ";", "for", "(", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "begin", "(", ")", ",", "MBBE", "=", "MBB", ".", "end", "(", ")", ";", "MBBI", "!=", "MBBE", ";", ")", "{", "MachineInstr", "&", "MI", "=", "*", "MBBI", ";", "MachineBasicBlock", "::", "iterator", "NMBBI", "=", "std", "::", "next", "(", "MBBI", ")", ";", "Changed", "|=", "expandMI", "(", "MBB", ",", "MI", ",", "NMBBI", ")", ";", "MBBI", "=", "NMBBI", ";", "}", "}", "if", "(", "Changed", ")", "MF", ".", "RenumberBlocks", "(", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["PowerPC", "PPC", "PPC"], "File": "PPCExpandAtomicPseudoInsts", "Func": "runOnMachineFunction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 785, "Length": 157, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "setKind", "(", "BaseKind", "K", ")", "{", "Kind", "=", "K", ";", "}", ""], "natrual_language": ["Setter", "for", "the", "kind", "of", "this", "node", "."], "TS_V_token": ["ARM64"], "File": "ARM64FastISel", "Func": "setKind", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 786, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_restore_callee_saves", "(", "machine_mode", "mode", ",", "poly_int64", "start_offset", ",", "unsigned", "start", ",", "unsigned", "limit", ",", "bool", "skip_wb", ",", "rtx", "*", "cfi_ops", ")", "{", "rtx", "base_rtx", "=", "stack_pointer_rtx", ";", "unsigned", "regno", ";", "unsigned", "regno2", ";", "poly_int64", "offset", ";", "for", "(", "regno", "=", "aarch64_next_callee_save", "(", "start", ",", "limit", ")", ";", "regno", "<=", "limit", ";", "regno", "=", "aarch64_next_callee_save", "(", "regno", "+", "1", ",", "limit", ")", ")", "{", "if", "(", "cfun", "->", "machine", "->", "reg_is_wrapped_separately", "[", "regno", "]", ")", "continue", ";", "rtx", "reg", ",", "mem", ";", "int", "offset_diff", ";", "if", "(", "skip_wb", "&&", "(", "regno", "==", "cfun", "->", "machine", "->", "frame", ".", "wb_candidate1", "||", "regno", "==", "cfun", "->", "machine", "->", "frame", ".", "wb_candidate2", ")", ")", "continue", ";", "reg", "=", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "offset", "=", "start_offset", "+", "cfun", "->", "machine", "->", "frame", ".", "reg_offset", "[", "regno", "]", ";", "mem", "=", "gen_frame_mem", "(", "mode", ",", "plus_constant", "(", "Pmode", ",", "base_rtx", ",", "offset", ")", ")", ";", "regno2", "=", "aarch64_next_callee_save", "(", "regno", "+", "1", ",", "limit", ")", ";", "offset_diff", "=", "cfun", "->", "machine", "->", "frame", ".", "reg_offset", "[", "regno2", "]", "-", "cfun", "->", "machine", "->", "frame", ".", "reg_offset", "[", "regno", "]", ";", "if", "(", "regno2", "<=", "limit", "&&", "!", "cfun", "->", "machine", "->", "reg_is_wrapped_separately", "[", "regno2", "]", "&&", "known_eq", "(", "GET_MODE_SIZE", "(", "mode", ")", ",", "offset_diff", ")", ")", "{", "rtx", "reg2", "=", "gen_rtx_REG", "(", "mode", ",", "regno2", ")", ";", "rtx", "mem2", ";", "offset", "=", "start_offset", "+", "cfun", "->", "machine", "->", "frame", ".", "reg_offset", "[", "regno2", "]", ";", "mem2", "=", "gen_frame_mem", "(", "mode", ",", "plus_constant", "(", "Pmode", ",", "base_rtx", ",", "offset", ")", ")", ";", "emit_insn", "(", "aarch64_gen_load_pair", "(", "mode", ",", "reg", ",", "mem", ",", "reg2", ",", "mem2", ")", ")", ";", "*", "cfi_ops", "=", "alloc_reg_note", "(", "REG_CFA_RESTORE", ",", "reg2", ",", "*", "cfi_ops", ")", ";", "regno", "=", "regno2", ";", "}", "else", "emit_move_insn", "(", "reg", ",", "mem", ")", ";", "*", "cfi_ops", "=", "alloc_reg_note", "(", "REG_CFA_RESTORE", ",", "reg", ",", "*", "cfi_ops", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "code", "to", "restore", "the", "callee", "registers", "of", "mode", "MODE", "from", "register", "number", "START", "up", "to", "and", "including", "LIMIT", ".", "Restore", "from", "the", "stack", "offset", "START_OFFSET", ",", "skipping", "any", "write-back", "candidates", "if", "SKIP_WB", "is", "true", ".", "Write", "the", "appropriate", "REG_CFA_RESTORE", "notes", "into", "CFI_OPS", "."], "TS_V_token": ["aarch64", "1", "1"], "File": "aarch646", "Func": "aarch64_restore_callee_saves", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 787, "Length": 317, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetMachine", "::", "isNoopAddrSpaceCast", "(", "unsigned", "SrcAS", ",", "unsigned", "DestAS", ")", "const", "{", "assert", "(", "SrcAS", "!=", "DestAS", "&&", "\"Expected different address spaces!\"", ")", ";", "if", "(", "getPointerSize", "(", "SrcAS", ")", "!=", "getPointerSize", "(", "DestAS", ")", ")", "return", "false", ";", "return", "SrcAS", "<", "256", "&&", "DestAS", "<", "256", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "a", "cast", "between", "SrcAS", "and", "DestAS", "is", "a", "noop", "."], "TS_V_token": ["X86", "X86", "\"Expected different address spaces!\"", "256", "256"], "File": "X86TargetMachine114", "Func": "isNoopAddrSpaceCast", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 788, "Length": 47, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mips_pad_reg_upward", "(", "enum", "machine_mode", "mode", ",", "tree", "type", ")", "{", "if", "(", "type", "!=", "0", "?", "FLOAT_TYPE_P", "(", "type", ")", ":", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_FLOAT", ")", "return", "!", "BYTES_BIG_ENDIAN", ";", "return", "mips_pad_arg_upward", "(", "mode", ",", "type", ")", ";", "}", ""], "natrual_language": ["Likewise", "BLOCK_REG_PADDING", "(", "MODE", ",", "TYPE", ",", "...", ")", ".", "Return", "!", "BYTES_BIG_ENDIAN", "if", "the", "least", "significant", "byte", "of", "the", "register", "has", "useful", "data", ".", "Return", "the", "opposite", "if", "the", "most", "significant", "byte", "does", "."], "TS_V_token": ["mips", "0"], "File": "mips3", "Func": "mips_pad_reg_upward", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 789, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "or1k_expand_eh_return", "(", "rtx", "eh_addr", ")", "{", "rtx", "lraddr", ";", "lraddr", "=", "gen_frame_mem", "(", "Pmode", ",", "plus_constant", "(", "Pmode", ",", "arg_pointer_rtx", ",", "-", "UNITS_PER_WORD", ")", ")", ";", "MEM_VOLATILE_P", "(", "lraddr", ")", "=", "true", ";", "emit_move_insn", "(", "lraddr", ",", "eh_addr", ")", ";", "}", ""], "natrual_language": ["Expand", "the", "``", "eh_return", "''", "pattern", ".", "Used", "for", "defining", "__builtin_eh_return", ",", "this", "will", "emit", "RTX", "to", "override", "the", "current", "function", "'s", "return", "address", "stored", "on", "the", "stack", ".", "The", "emitted", "RTX", "is", "inserted", "before", "the", "epilogue", "so", "we", "ca", "n't", "just", "update", "the", "link", "register", ".", "This", "is", "used", "when", "handling", "exceptions", "to", "jump", "into", "the", "exception", "handler", "catch", "block", "upon", "return", "from", "_Unwind_RaiseException", "."], "TS_V_token": ["or1k"], "File": "or1k", "Func": "or1k_expand_eh_return", "Target": "or1k", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 790, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCSubtarget", "::", "useAA", "(", ")", "const", "{", "return", "needsAggressiveScheduling", "(", "DarwinDirective", ")", ";", "}", ""], "natrual_language": ["Enable", "use", "of", "alias", "analysis", "during", "code", "generation", "(", "during", "MI", "scheduling", ",", "DAGCombine", ",", "etc", ".", ")", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCSubtarget (2)", "Func": "useAA", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 791, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "DecodeStatus", "Mips64Disassembler", "::", "getInstruction", "(", "MCInst", "&", "Instr", ",", "uint64_t", "&", "Size", ",", "ArrayRef", "<", "uint8_t", ">", "Bytes", ",", "uint64_t", "Address", ",", "raw_ostream", "&", "VStream", ",", "raw_ostream", "&", "CStream", ")", "const", "{", "uint32_t", "Insn", ";", "DecodeStatus", "Result", "=", "readInstruction32", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn", ",", "IsBigEndian", ",", "false", ")", ";", "if", "(", "Result", "==", "MCDisassembler", "::", "Fail", ")", "return", "MCDisassembler", "::", "Fail", ";", "Result", "=", "decodeInstruction", "(", "DecoderTableMips6432", ",", "Instr", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Result", "!=", "MCDisassembler", "::", "Fail", ")", "{", "Size", "=", "4", ";", "return", "Result", ";", "}", "Result", "=", "decodeInstruction", "(", "DecoderTableMips32", ",", "Instr", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Result", "!=", "MCDisassembler", "::", "Fail", ")", "{", "Size", "=", "4", ";", "return", "Result", ";", "}", "return", "MCDisassembler", "::", "Fail", ";", "}", ""], "natrual_language": ["Returns", "the", "disassembly", "of", "a", "single", "instruction", "."], "TS_V_token": ["Mips", "Mips", "Mips", "4", "Mips", "4"], "File": "MipsDisassembler27", "Func": "getInstruction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 792, "Length": 140, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "dump_insn_list", "(", "const", "rtx", "&", "t", ",", "const", "insn_info_list_t", "&", "insn_info", ",", "void", "*", "unused", "ATTRIBUTE_UNUSED", ")", "{", "gcc_assert", "(", "dump_file", ")", ";", "fprintf", "(", "dump_file", ",", "\"Tag 0x%lx ::\\n\"", ",", "INTVAL", "(", "t", ")", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "insn_info", ".", "length", "(", ")", ";", "i", "++", ")", "dump_insn_slim", "(", "dump_file", ",", "insn_info", "[", "i", "]", "->", "insn", ")", ";", "fprintf", "(", "dump_file", ",", "\"\\n\"", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Callback", "invoked", "for", "each", "name-value", "pair", "(", "T", ",", "INSN_INFO", ")", "to", "dump", "the", "insn", "list", "INSN_INFO", "for", "tag", "T", "."], "TS_V_token": ["aarch64", "\"Tag 0x%lx ::\\n\"", "0", "\"\\n\""], "File": "falkor-tag-collision-avoidance", "Func": "dump_insn_list", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 793, "Length": 77, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Cpu0AsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "if", "(", "MI", "->", "isDebugValue", "(", ")", ")", "{", "SmallString", "<", "128", ">", "Str", ";", "raw_svector_ostream", "OS", "(", "Str", ")", ";", "PrintDebugValueComment", "(", "MI", ",", "OS", ")", ";", "return", ";", "}", "MachineBasicBlock", "::", "const_instr_iterator", "I", "=", "MI", "->", "getIterator", "(", ")", ";", "MachineBasicBlock", "::", "const_instr_iterator", "E", "=", "MI", "->", "getParent", "(", ")", "->", "instr_end", "(", ")", ";", "do", "{", "if", "(", "emitPseudoExpansionLowering", "(", "*", "OutStreamer", ",", "&", "*", "I", ")", ")", "continue", ";", "if", "(", "I", "->", "getOpcode", "(", ")", "==", "Cpu0", "::", "CPRESTORE", ")", "{", "emitPseudoCPRestore", "(", "*", "OutStreamer", ",", "&", "*", "I", ")", ";", "continue", ";", "}", "if", "(", "I", "->", "isPseudo", "(", ")", "&&", "!", "isLongBranchPseudo", "(", "I", "->", "getOpcode", "(", ")", ")", ")", "llvm_unreachable", "(", "\"Pseudo opcode found in EmitInstruction()\"", ")", ";", "MCInst", "TmpInst0", ";", "MCInstLowering", ".", "Lower", "(", "&", "*", "I", ",", "TmpInst0", ")", ";", "OutStreamer", "->", "EmitInstruction", "(", "TmpInst0", ",", "getSubtargetInfo", "(", ")", ")", ";", "}", "while", "(", "(", "++", "I", "!=", "E", ")", "&&", "I", "->", "isInsideBundle", "(", ")", ")", ";", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["Cpu0", "Cpu0", "128", "Cpu0::CPRESTORE", "\"Pseudo opcode found in EmitInstruction()\""], "File": "Cpu0AsmPrinter", "Func": "EmitInstruction", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 794, "Length": 176, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMConstantPoolValue", "::", "hasSameValue", "(", "ARMConstantPoolValue", "*", "ACPV", ")", "{", "if", "(", "ACPV", "->", "Kind", "==", "Kind", "&&", "ACPV", "->", "PCAdjust", "==", "PCAdjust", "&&", "ACPV", "->", "Modifier", "==", "Modifier", "&&", "ACPV", "->", "LabelId", "==", "LabelId", "&&", "ACPV", "->", "AddCurrentAddress", "==", "AddCurrentAddress", ")", "{", "if", "(", "Kind", "==", "ARMCP", "::", "CPValue", "||", "Kind", "==", "ARMCP", "::", "CPExtSymbol", ")", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["hasSameValue", "-", "Return", "true", "if", "this", "ARM", "constpool", "value", "can", "share", "the", "same", "constantpool", "entry", "as", "another", "ARM", "constpool", "value", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARMCP::CPValue", "ARMCP::CPExtSymbol"], "File": "ARMConstantPoolValue1", "Func": "hasSameValue", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 795, "Length": 65, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "OR1KInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "RC", "==", "&", "OR1K", "::", "GPRRegClass", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "OR1K", "::", "SW", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ";", "else", "llvm_unreachable", "(", "\"Can't store this register to stack slot\"", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["OR1K", "OR1K", "OR1K::GPRRegClass", "OR1K::SW", "0", "\"Can't store this register to stack slot\""], "File": "OR1KInstrInfo", "Func": "storeRegToStackSlot", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 796, "Length": 108, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "AArch64FrameLowering", "::", "getFrameIndexReference", "(", "const", "MachineFunction", "&", "MF", ",", "int", "FI", ",", "unsigned", "&", "FrameReg", ")", "const", "{", "return", "resolveFrameIndexReference", "(", "MF", ",", "FI", ",", "FrameReg", ",", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "Attribute", "::", "SanitizeHWAddress", ")", ",", "false", ")", ";", "}", ""], "natrual_language": ["getFrameIndexReference", "-", "This", "method", "should", "return", "the", "base", "register", "and", "offset", "used", "to", "reference", "a", "frame", "index", "location", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64FrameLowering37", "Func": "getFrameIndexReference", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 797, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "rs6000_debug_address_cost", "(", "rtx", "x", ",", "machine_mode", "mode", ",", "addr_space_t", "as", ",", "bool", "speed", ")", "{", "int", "ret", "=", "TARGET_ADDRESS_COST", "(", "x", ",", "mode", ",", "as", ",", "speed", ")", ";", "fprintf", "(", "stderr", ",", "\"\\nrs6000_address_cost, return = %d, speed = %s, x:\\n\"", ",", "ret", ",", "speed", "?", "\"true\"", ":", "\"false\"", ")", ";", "debug_rtx", "(", "x", ")", ";", "return", "ret", ";", "}", ""], "natrual_language": ["Debug", "form", "of", "ADDRESS_COST", "that", "is", "selected", "if", "-mdebug=cost", "."], "TS_V_token": ["powerpcspe", "\"\\nrs6000_address_cost, return = %d, speed = %s, x:\\n\"", "\"true\"", "\"false\""], "File": "powerpcspe", "Func": "rs6000_debug_address_cost", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 798, "Length": 55, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "TeeRISCSubtarget", "*", "getSubtargetImpl", "(", ")", "const", "{", "return", "&", "Subtarget", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["TeeRISC", "TeeRISC"], "File": "TeeRISCTargetMachine", "Func": "getSubtargetImpl", "Target": "TeeRISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 799, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Register", "LanaiTargetLowering", "::", "getRegisterByName", "(", "const", "char", "*", "RegName", ",", "EVT", ",", "const", "MachineFunction", "&", ")", "const", "{", "Register", "Reg", "=", "StringSwitch", "<", "unsigned", ">", "(", "RegName", ")", ".", "Case", "(", "\"pc\"", ",", "Lanai", "::", "PC", ")", ".", "Case", "(", "\"sp\"", ",", "Lanai", "::", "SP", ")", ".", "Case", "(", "\"fp\"", ",", "Lanai", "::", "FP", ")", ".", "Case", "(", "\"rr1\"", ",", "Lanai", "::", "RR1", ")", ".", "Case", "(", "\"r10\"", ",", "Lanai", "::", "R10", ")", ".", "Case", "(", "\"rr2\"", ",", "Lanai", "::", "RR2", ")", ".", "Case", "(", "\"r11\"", ",", "Lanai", "::", "R11", ")", ".", "Case", "(", "\"rca\"", ",", "Lanai", "::", "RCA", ")", ".", "Default", "(", "0", ")", ";", "if", "(", "Reg", ")", "return", "Reg", ";", "report_fatal_error", "(", "\"Invalid register name global variable\"", ")", ";", "}", ""], "natrual_language": ["Return", "the", "register", "ID", "of", "the", "name", "passed", "in", "."], "TS_V_token": ["Lanai", "Lanai", "\"pc\"", "Lanai::PC", "\"sp\"", "Lanai::SP", "\"fp\"", "Lanai::FP", "\"rr1\"", "Lanai::RR1", "\"r10\"", "Lanai::R10", "\"rr2\"", "Lanai::RR2", "\"r11\"", "Lanai::R11", "\"rca\"", "Lanai::RCA", "0", "\"Invalid register name global variable\""], "File": "LanaiISelLowering18", "Func": "getRegisterByName", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 800, "Length": 119, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "mmix_eh_return_data_regno", "(", "int", "n", ")", "{", "if", "(", "n", ">=", "0", "&&", "n", "<", "4", ")", "return", "MMIX_EH_RETURN_DATA_REGNO_START", "+", "n", ";", "return", "INVALID_REGNUM", ";", "}", ""], "natrual_language": ["EH_RETURN_DATA_REGNO", "."], "TS_V_token": ["mmix", "0", "4"], "File": "mmix", "Func": "mmix_eh_return_data_regno", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 801, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "aarch64_stack_protect_canary_mem", "(", "machine_mode", "mode", ",", "rtx", "decl_rtl", ",", "aarch64_salt_type", "salt_type", ")", "{", "rtx", "addr", ";", "if", "(", "aarch64_stack_protector_guard", "==", "SSP_GLOBAL", ")", "{", "gcc_assert", "(", "MEM_P", "(", "decl_rtl", ")", ")", ";", "addr", "=", "XEXP", "(", "decl_rtl", ",", "0", ")", ";", "poly_int64", "offset", ";", "rtx", "base", "=", "strip_offset_and_salt", "(", "addr", ",", "&", "offset", ")", ";", "if", "(", "!", "SYMBOL_REF_P", "(", "base", ")", ")", "return", "decl_rtl", ";", "rtvec", "v", "=", "gen_rtvec", "(", "2", ",", "base", ",", "GEN_INT", "(", "salt_type", ")", ")", ";", "addr", "=", "gen_rtx_UNSPEC", "(", "Pmode", ",", "v", ",", "UNSPEC_SALT_ADDR", ")", ";", "addr", "=", "gen_rtx_CONST", "(", "Pmode", ",", "addr", ")", ";", "addr", "=", "plus_constant", "(", "Pmode", ",", "addr", ",", "offset", ")", ";", "}", "else", "{", "rtx", "salt", "=", "GEN_INT", "(", "salt_type", ")", ";", "addr", "=", "gen_reg_rtx", "(", "mode", ")", ";", "if", "(", "mode", "==", "DImode", ")", "emit_insn", "(", "gen_reg_stack_protect_address_di", "(", "addr", ",", "salt", ")", ")", ";", "else", "{", "emit_insn", "(", "gen_reg_stack_protect_address_si", "(", "addr", ",", "salt", ")", ")", ";", "addr", "=", "convert_memory_address", "(", "Pmode", ",", "addr", ")", ";", "}", "addr", "=", "plus_constant", "(", "Pmode", ",", "addr", ",", "aarch64_stack_protector_guard_offset", ")", ";", "}", "return", "gen_rtx_MEM", "(", "mode", ",", "force_reg", "(", "Pmode", ",", "addr", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "MEM", "rtx", "that", "provides", "the", "canary", "value", "that", "should", "be", "used", "for", "stack-smashing", "protection", ".", "MODE", "is", "the", "mode", "of", "the", "memory", ".", "For", "SSP_GLOBAL", ",", "DECL_RTL", "is", "the", "MEM", "rtx", "for", "the", "canary", "variable", "(", "__stack_chk_guard", ")", ",", "otherwise", "it", "has", "no", "useful", "value", ".", "SALT_TYPE", "indicates", "whether", "the", "caller", "is", "performing", "a", "SET", "or", "a", "TEST", "operation", "."], "TS_V_token": ["aarch64", "0", "2"], "File": "aarch641", "Func": "aarch64_stack_protect_canary_mem", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 802, "Length": 193, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "aarch64_final_eh_return_addr", "(", "void", ")", "{", "HOST_WIDE_INT", "fp_offset", ";", "aarch64_layout_frame", "(", ")", ";", "fp_offset", "=", "cfun", "->", "machine", "->", "frame", ".", "frame_size", "-", "cfun", "->", "machine", "->", "frame", ".", "hard_fp_offset", ";", "if", "(", "cfun", "->", "machine", "->", "frame", ".", "reg_offset", "[", "LR_REGNUM", "]", "<", "0", ")", "return", "gen_rtx_REG", "(", "DImode", ",", "LR_REGNUM", ")", ";", "if", "(", "frame_pointer_needed", ")", "{", "if", "(", "fp_offset", ")", "return", "gen_frame_mem", "(", "DImode", ",", "plus_constant", "(", "Pmode", ",", "hard_frame_pointer_rtx", ",", "UNITS_PER_WORD", ")", ")", ";", "else", "return", "gen_frame_mem", "(", "DImode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "UNITS_PER_WORD", ")", ")", ";", "}", "return", "gen_frame_mem", "(", "DImode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "fp_offset", "+", "cfun", "->", "machine", "->", "frame", ".", "saved_regs_size", "-", "2", "*", "UNITS_PER_WORD", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "place", "to", "copy", "the", "exception", "unwinding", "return", "address", "to", ".", "This", "will", "probably", "be", "a", "stack", "slot", ",", "but", "could", "(", "in", "theory", "be", "the", "return", "register", ")", "."], "TS_V_token": ["aarch64", "0", "2"], "File": "aarch642", "Func": "aarch64_final_eh_return_addr", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 803, "Length": 123, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "SystemZTargetLowering", "::", "LowerCall", "(", "SDValue", "Chain", ",", "SDValue", "Callee", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "bool", "&", "isTailCall", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "DebugLoc", "dl", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "{", "isTailCall", "=", "false", ";", "switch", "(", "CallConv", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unsupported calling convention\"", ")", ";", "case", "CallingConv", "::", "Fast", ":", "case", "CallingConv", "::", "C", ":", "return", "LowerCCCCallTo", "(", "Chain", ",", "Callee", ",", "CallConv", ",", "isVarArg", ",", "isTailCall", ",", "Outs", ",", "Ins", ",", "dl", ",", "DAG", ",", "InVals", ")", ";", "}", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "calls", "into", "the", "specified", "DAG", "."], "TS_V_token": ["SystemZ", "SystemZ", "ISD::OutputArg", "ISD::InputArg", "\"Unsupported calling convention\""], "File": "SystemZISelLowering101", "Func": "LowerCall", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 804, "Length": 110, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsRegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", "RS", ")", "const", "{", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "DEBUG", "(", "errs", "(", ")", "<<", "\"\\nFunction : \"", "<<", "MF", ".", "getName", "(", ")", "<<", "\"\\n\"", ";", "errs", "(", ")", "<<", "\"<--------->\\n\"", "<<", "MI", ")", ";", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "getIndex", "(", ")", ";", "uint64_t", "stackSize", "=", "MF", ".", "getFrameInfo", "(", ")", "->", "getStackSize", "(", ")", ";", "int64_t", "spOffset", "=", "MF", ".", "getFrameInfo", "(", ")", "->", "getObjectOffset", "(", "FrameIndex", ")", ";", "DEBUG", "(", "errs", "(", ")", "<<", "\"FrameIndex : \"", "<<", "FrameIndex", "<<", "\"\\n\"", "<<", "\"spOffset : \"", "<<", "spOffset", "<<", "\"\\n\"", "<<", "\"stackSize : \"", "<<", "stackSize", "<<", "\"\\n\"", ")", ";", "eliminateFI", "(", "MI", ",", "FIOperandNum", ",", "FrameIndex", ",", "stackSize", ",", "spOffset", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["Mips", "Mips", "\"\\nFunction : \"", "\"\\n\"", "\"<--------->\\n\"", "\"FrameIndex : \"", "\"\\n\"", "\"spOffset : \"", "\"\\n\"", "\"stackSize : \"", "\"\\n\""], "File": "MipsRegisterInfo (2)1", "Func": "eliminateFrameIndex", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 805, "Length": 149, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Emitter", "<", "CodeEmitter", ">", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "MCE", ".", "setModuleInfo", "(", "&", "getAnalysis", "<", "MachineModuleInfo", ">", "(", ")", ")", ";", "II", "=", "TM", ".", "getInstrInfo", "(", ")", ";", "TD", "=", "TM", ".", "getTargetData", "(", ")", ";", "Is64BitMode", "=", "TM", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "is64Bit", "(", ")", ";", "IsPIC", "=", "TM", ".", "getRelocationModel", "(", ")", "==", "Reloc", "::", "PIC_", ";", "do", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"JITTing function '\"", "<<", "MF", ".", "getFunction", "(", ")", "->", "getName", "(", ")", "<<", "\"'\\n\"", ")", ";", "MCE", ".", "startFunction", "(", "MF", ")", ";", "for", "(", "MachineFunction", "::", "iterator", "MBB", "=", "MF", ".", "begin", "(", ")", ",", "E", "=", "MF", ".", "end", "(", ")", ";", "MBB", "!=", "E", ";", "++", "MBB", ")", "{", "MCE", ".", "StartMachineBasicBlock", "(", "MBB", ")", ";", "for", "(", "MachineBasicBlock", "::", "const_iterator", "I", "=", "MBB", "->", "begin", "(", ")", ",", "E", "=", "MBB", "->", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "const", "TargetInstrDesc", "&", "Desc", "=", "I", "->", "getDesc", "(", ")", ";", "emitInstruction", "(", "*", "I", ",", "&", "Desc", ")", ";", "if", "(", "Desc", ".", "getOpcode", "(", ")", "==", "X86", "::", "MOVPC32r", ")", "emitInstruction", "(", "*", "I", ",", "&", "II", "->", "get", "(", "X86", "::", "POP32r", ")", ")", ";", "NumEmitted", "++", ";", "}", "}", "}", "while", "(", "MCE", ".", "finishFunction", "(", "MF", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "\"JITTing function '\"", "\"'\\n\"", "X86::MOVPC32r", "X86::POP32r"], "File": "X86CodeEmitter20", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 806, "Length": 232, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "ia64_gen_spec_load", "(", "rtx", "insn", ",", "ds_t", "ts", ",", "int", "mode_no", ")", "{", "rtx", "pat", ",", "new_pat", ";", "gen_func_t", "gen_load", ";", "gen_load", "=", "get_spec_load_gen_function", "(", "ts", ",", "mode_no", ")", ";", "new_pat", "=", "gen_load", "(", "copy_rtx", "(", "recog_data", ".", "operand", "[", "0", "]", ")", ",", "copy_rtx", "(", "recog_data", ".", "operand", "[", "1", "]", ")", ")", ";", "pat", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "pat", ")", "==", "COND_EXEC", ")", "new_pat", "=", "gen_rtx_COND_EXEC", "(", "VOIDmode", ",", "copy_rtx", "(", "COND_EXEC_TEST", "(", "pat", ")", ")", ",", "new_pat", ")", ";", "return", "new_pat", ";", "}", ""], "natrual_language": ["If", "GEN_P", "is", "true", ",", "calculate", "the", "index", "of", "needed", "speculation", "check", "and", "return", "speculative", "pattern", "for", "INSN", "with", "speculative", "mode", "TS", ",", "machine", "mode", "MODE_NO", "and", "with", "ZERO_EXTEND", "(", "if", "EXTEND_P", "is", "true", ")", ".", "If", "GEN_P", "is", "false", ",", "just", "calculate", "the", "index", "of", "needed", "speculation", "check", "."], "TS_V_token": ["ia64", "0", "1"], "File": "ia64", "Func": "ia64_gen_spec_load", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 807, "Length": 93, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "loongarch_got_load_tls_le", "(", "rtx", "dest", ",", "rtx", "sym", ")", "{", "return", "gen_got_load_tls_le", "(", "Pmode", ",", "dest", ",", "sym", ")", ";", "}", ""], "natrual_language": ["Add", "in", "the", "thread", "pointer", "for", "a", "TLS", "LE", "access", "."], "TS_V_token": ["loongarch"], "File": "loongarch", "Func": "loongarch_got_load_tls_le", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 808, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "uint16_t", "name", "(", "struct", "InternalInstruction", "*", "insn", ",", "\\", "OperandType", "type", ",", "\\", "uint8_t", "index", ",", "\\", "uint8_t", "*", "valid", ")", "{", "\\", "*", "valid", "=", "1", ";", "\\", "switch", "(", "type", ")", "{", "\\", "default", ":", "\\", "debug", "(", "\"Unhandled register type\"", ")", ";", "\\", "*", "valid", "=", "0", ";", "\\", "return", "0", ";", "\\", "case", "TYPE_Rv", ":", "\\", "return", "base", "+", "index", ";", "\\", "case", "TYPE_R8", ":", "\\", "if", "(", "insn", "->", "rexPrefix", "&&", "\\", "index", ">=", "4", "&&", "index", "<=", "7", ")", "{", "\\", "return", "prefix", "##", "_SPL", "+", "(", "index", "-", "4", ")", ";", "\\", "}", "else", "{", "\\", "return", "prefix", "##", "_AL", "+", "index", ";", "\\", "}", "\\", "case", "TYPE_R16", ":", "\\", "return", "prefix", "##", "_AX", "+", "index", ";", "\\", "case", "TYPE_R32", ":", "\\", "return", "prefix", "##", "_EAX", "+", "index", ";", "\\", "case", "TYPE_R64", ":", "\\", "return", "prefix", "##", "_RAX", "+", "index", ";", "\\", "case", "TYPE_XMM512", ":", "\\", "return", "prefix", "##", "_ZMM0", "+", "index", ";", "\\", "case", "TYPE_XMM256", ":", "\\", "return", "prefix", "##", "_YMM0", "+", "index", ";", "\\", "case", "TYPE_XMM128", ":", "\\", "case", "TYPE_XMM64", ":", "\\", "case", "TYPE_XMM32", ":", "\\", "return", "prefix", "##", "_XMM0", "+", "index", ";", "\\", "case", "TYPE_VK1", ":", "\\", "case", "TYPE_VK2", ":", "\\", "case", "TYPE_VK4", ":", "\\", "case", "TYPE_VK8", ":", "\\", "case", "TYPE_VK16", ":", "\\", "case", "TYPE_VK32", ":", "\\", "case", "TYPE_VK64", ":", "\\", "if", "(", "index", ">", "7", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_K0", "+", "index", ";", "\\", "case", "TYPE_MM64", ":", "\\", "return", "prefix", "##", "_MM0", "+", "(", "index", "&", "0x7", ")", ";", "\\", "case", "TYPE_SEGMENTREG", ":", "\\", "if", "(", "index", ">", "5", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_ES", "+", "index", ";", "\\", "case", "TYPE_DEBUGREG", ":", "\\", "return", "prefix", "##", "_DR0", "+", "index", ";", "\\", "case", "TYPE_CONTROLREG", ":", "\\", "return", "prefix", "##", "_CR0", "+", "index", ";", "\\", "case", "TYPE_BNDR", ":", "\\", "if", "(", "index", ">", "3", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_BND0", "+", "index", ";", "\\", "}", "\\", "}", ""], "natrual_language": ["Gets", "the", "name", "of", "the", "pass", "we", "are", "mixed", "into", "."], "TS_V_token": ["X86", "1", "\"Unhandled register type\"", "0", "0", "4", "7", "4", "7", "0", "0x7", "5", "0", "3", "0"], "File": "X86DisassemblerDecoder10", "Func": "name", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 809, "Length": 334, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "fixupNeedsRelaxation", "(", "const", "MCFixup", "&", "Fixup", ",", "uint64_t", "Value", ",", "const", "MCRelaxableFragment", "*", "DF", ",", "const", "MCAsmLayout", "&", "Layout", ")", "const", "override", "{", "assert", "(", "0", "&&", "\"RelaxInstruction() unimplemented\"", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["Simple", "predicate", "for", "targets", "where", "!", "Resolved", "implies", "requiring", "relaxation", "."], "TS_V_token": ["Mips", "0", "\"RelaxInstruction() unimplemented\""], "File": "MipsAsmBackend24", "Func": "fixupNeedsRelaxation", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 810, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "tool_cleanup", "(", "bool", "from_signal", "ATTRIBUTE_UNUSED", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "num_temps", ";", "i", "++", ")", "maybe_unlink", "(", "temp_files", "[", "i", "]", ")", ";", "}", ""], "natrual_language": ["Delete", "tempfiles", "."], "TS_V_token": ["i386", "0"], "File": "intelmic-mkoffload", "Func": "tool_cleanup", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 811, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_avoid_hazard", "(", "rtx", "after", ",", "rtx", "insn", ",", "int", "*", "hilo_delay", ",", "rtx", "*", "delayed_reg", ",", "rtx", "lo_reg", ")", "{", "rtx", "pattern", ",", "set", ";", "int", "nops", ",", "ninsns", ";", "if", "(", "!", "INSN_P", "(", "insn", ")", ")", "return", ";", "pattern", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "pattern", ")", "==", "ASM_INPUT", "||", "asm_noperands", "(", "pattern", ")", ">=", "0", ")", "cfun", "->", "machine", "->", "all_noreorder_p", "=", "false", ";", "ninsns", "=", "get_attr_length", "(", "insn", ")", "/", "4", ";", "if", "(", "ninsns", "==", "0", ")", "return", ";", "if", "(", "*", "hilo_delay", "<", "2", "&&", "reg_set_p", "(", "lo_reg", ",", "pattern", ")", ")", "nops", "=", "2", "-", "*", "hilo_delay", ";", "else", "if", "(", "*", "delayed_reg", "!=", "0", "&&", "reg_referenced_p", "(", "*", "delayed_reg", ",", "pattern", ")", ")", "nops", "=", "1", ";", "else", "nops", "=", "0", ";", "*", "hilo_delay", "+=", "nops", ";", "while", "(", "nops", "--", ">", "0", ")", "emit_insn_after", "(", "gen_hazard_nop", "(", ")", ",", "after", ")", ";", "*", "hilo_delay", "+=", "ninsns", ";", "*", "delayed_reg", "=", "0", ";", "if", "(", "INSN_CODE", "(", "insn", ")", ">=", "0", ")", "switch", "(", "get_attr_hazard", "(", "insn", ")", ")", "{", "case", "HAZARD_NONE", ":", "break", ";", "case", "HAZARD_HILO", ":", "*", "hilo_delay", "=", "0", ";", "break", ";", "case", "HAZARD_DELAY", ":", "set", "=", "single_set", "(", "insn", ")", ";", "gcc_assert", "(", "set", "!=", "0", ")", ";", "*", "delayed_reg", "=", "SET_DEST", "(", "set", ")", ";", "break", ";", "}", "}", ""], "natrual_language": ["Subroutine", "of", "mips_reorg", ".", "If", "there", "is", "a", "hazard", "between", "INSN", "and", "a", "previous", "instruction", ",", "avoid", "it", "by", "inserting", "nops", "after", "instruction", "AFTER", ".", "*", "DELAYED_REG", "and", "*", "HILO_DELAY", "describe", "the", "hazards", "that", "apply", "at", "this", "point", ".", "If", "*", "DELAYED_REG", "is", "non-null", ",", "INSN", "must", "wait", "a", "cycle", "before", "using", "the", "value", "of", "that", "register", ".", "*", "HILO_DELAY", "counts", "the", "number", "of", "instructions", "since", "the", "last", "hilo", "hazard", "(", "that", "is", ",", "the", "number", "of", "instructions", "since", "the", "last", "mflo", "or", "mfhi", ")", ".", "After", "inserting", "nops", "for", "INSN", ",", "update", "*", "DELAYED_REG", "and", "*", "HILO_DELAY", "for", "the", "next", "instruction", ".", "LO_REG", "is", "an", "rtx", "for", "the", "LO", "register", ",", "used", "in", "dependence", "checking", "."], "TS_V_token": ["mips", "0", "4", "0", "2", "2", "0", "1", "0", "0", "0", "0", "0", "0"], "File": "mips3", "Func": "mips_avoid_hazard", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 812, "Length": 228, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "sparc_emit_probe_stack_range", "(", "HOST_WIDE_INT", "first", ",", "HOST_WIDE_INT", "size", ")", "{", "rtx", "g1", "=", "gen_rtx_REG", "(", "Pmode", ",", "1", ")", ";", "if", "(", "size", "<=", "PROBE_INTERVAL", ")", "{", "emit_move_insn", "(", "g1", ",", "GEN_INT", "(", "first", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "g1", ",", "gen_rtx_MINUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "g1", ")", ")", ")", ";", "emit_stack_probe", "(", "plus_constant", "(", "Pmode", ",", "g1", ",", "-", "size", ")", ")", ";", "}", "else", "if", "(", "size", "<=", "4", "*", "PROBE_INTERVAL", ")", "{", "HOST_WIDE_INT", "i", ";", "emit_move_insn", "(", "g1", ",", "GEN_INT", "(", "first", "+", "PROBE_INTERVAL", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "g1", ",", "gen_rtx_MINUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "g1", ")", ")", ")", ";", "emit_stack_probe", "(", "g1", ")", ";", "for", "(", "i", "=", "2", "*", "PROBE_INTERVAL", ";", "i", "<", "size", ";", "i", "+=", "PROBE_INTERVAL", ")", "{", "emit_insn", "(", "gen_rtx_SET", "(", "g1", ",", "plus_constant", "(", "Pmode", ",", "g1", ",", "-", "PROBE_INTERVAL", ")", ")", ")", ";", "emit_stack_probe", "(", "g1", ")", ";", "}", "emit_stack_probe", "(", "plus_constant", "(", "Pmode", ",", "g1", ",", "(", "i", "-", "PROBE_INTERVAL", ")", "-", "size", ")", ")", ";", "}", "else", "{", "HOST_WIDE_INT", "rounded_size", ";", "rtx", "g4", "=", "gen_rtx_REG", "(", "Pmode", ",", "4", ")", ";", "emit_move_insn", "(", "g1", ",", "GEN_INT", "(", "first", ")", ")", ";", "rounded_size", "=", "ROUND_DOWN", "(", "size", ",", "PROBE_INTERVAL", ")", ";", "emit_move_insn", "(", "g4", ",", "GEN_INT", "(", "rounded_size", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "g1", ",", "gen_rtx_MINUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "g1", ")", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "g4", ",", "gen_rtx_MINUS", "(", "Pmode", ",", "g1", ",", "g4", ")", ")", ")", ";", "emit_insn", "(", "gen_probe_stack_range", "(", "Pmode", ",", "g1", ",", "g1", ",", "g4", ")", ")", ";", "if", "(", "size", "!=", "rounded_size", ")", "emit_stack_probe", "(", "plus_constant", "(", "Pmode", ",", "g4", ",", "rounded_size", "-", "size", ")", ")", ";", "}", "emit_insn", "(", "gen_blockage", "(", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "code", "to", "probe", "a", "range", "of", "stack", "addresses", "from", "FIRST", "to", "FIRST+SIZE", ",", "inclusive", ".", "These", "are", "offsets", "from", "the", "current", "stack", "pointer", ".", "Note", "that", "we", "do", "n't", "use", "the", "REG+REG", "addressing", "mode", "for", "the", "probes", "because", "of", "the", "stack", "bias", "in", "64-bit", "mode", ".", "And", "it", "does", "n't", "really", "buy", "us", "anything", "so", "the", "advantages", "of", "having", "a", "single", "code", "win", "here", "."], "TS_V_token": ["sparc", "1", "4", "2", "4"], "File": "sparc", "Func": "sparc_emit_probe_stack_range", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 813, "Length": 297, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "AArch64TTIImpl", "::", "getGatherScatterOpCost", "(", "unsigned", "Opcode", ",", "Type", "*", "DataTy", ",", "const", "Value", "*", "Ptr", ",", "bool", "VariableMask", ",", "Align", "Alignment", ",", "TTI", "::", "TargetCostKind", "CostKind", ",", "const", "Instruction", "*", "I", ")", "{", "if", "(", "!", "isa", "<", "ScalableVectorType", ">", "(", "DataTy", ")", ")", "return", "BaseT", "::", "getGatherScatterOpCost", "(", "Opcode", ",", "DataTy", ",", "Ptr", ",", "VariableMask", ",", "Alignment", ",", "CostKind", ",", "I", ")", ";", "auto", "*", "VT", "=", "cast", "<", "VectorType", ">", "(", "DataTy", ")", ";", "auto", "LT", "=", "TLI", "->", "getTypeLegalizationCost", "(", "DL", ",", "DataTy", ")", ";", "ElementCount", "LegalVF", "=", "LT", ".", "second", ".", "getVectorElementCount", "(", ")", ";", "Optional", "<", "unsigned", ">", "MaxNumVScale", "=", "getMaxVScale", "(", ")", ";", "assert", "(", "MaxNumVScale", "&&", "\"Expected valid max vscale value\"", ")", ";", "unsigned", "MemOpCost", "=", "getMemoryOpCost", "(", "Opcode", ",", "VT", "->", "getElementType", "(", ")", ",", "Alignment", ",", "0", ",", "CostKind", ",", "I", ")", ";", "unsigned", "MaxNumElementsPerGather", "=", "MaxNumVScale", ".", "getValue", "(", ")", "*", "LegalVF", ".", "getKnownMinValue", "(", ")", ";", "return", "LT", ".", "first", "*", "MaxNumElementsPerGather", "*", "MemOpCost", ";", "}", ""], "natrual_language": ["Calculate", "the", "cost", "of", "Gather", "/", "Scatter", "operation", "."], "TS_V_token": ["AArch64", "AArch64", "\"Expected valid max vscale value\"", "0"], "File": "AArch64TargetTransformInfo36", "Func": "getGatherScatterOpCost", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 814, "Length": 164, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "arithmetic_instr", "(", "rtx", "op", ",", "int", "shift_first_arg", ")", "{", "switch", "(", "GET_CODE", "(", "op", ")", ")", "{", "case", "PLUS", ":", "return", "\"add\"", ";", "case", "MINUS", ":", "return", "shift_first_arg", "?", "\"rsb\"", ":", "\"sub\"", ";", "case", "IOR", ":", "return", "\"orr\"", ";", "case", "XOR", ":", "return", "\"eor\"", ";", "case", "AND", ":", "return", "\"and\"", ";", "case", "ASHIFT", ":", "case", "ASHIFTRT", ":", "case", "LSHIFTRT", ":", "case", "ROTATERT", ":", "return", "arm_shift_nmem", "(", "GET_CODE", "(", "op", ")", ")", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Return", "the", "appropriate", "ARM", "instruction", "for", "the", "operation", "code", ".", "The", "returned", "result", "should", "not", "be", "overwritten", ".", "OP", "is", "the", "rtx", "of", "the", "operation", ".", "SHIFT_FIRST_ARG", "is", "TRUE", "if", "the", "first", "argument", "of", "the", "operator", "was", "shifted", "."], "TS_V_token": ["arm", "\"add\"", "\"rsb\"", "\"sub\"", "\"orr\"", "\"eor\"", "\"and\""], "File": "arm", "Func": "arithmetic_instr", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 815, "Length": 83, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "const", "X86TargetMachine", "*", "TM", "=", "static_cast", "<", "const", "X86TargetMachine", "*", ">", "(", "&", "MF", ".", "getTarget", "(", ")", ")", ";", "const", "TargetFrameLowering", "*", "TFI", "=", "TM", "->", "getFrameLowering", "(", ")", ";", "MachineRegisterInfo", "&", "RI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "X86MachineFunctionInfo", "*", "FuncInfo", "=", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", ";", "unsigned", "StackAlignment", "=", "TFI", "->", "getStackAlignment", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RI", ".", "getNumVirtRegs", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "unsigned", "Reg", "=", "TargetRegisterInfo", "::", "index2VirtReg", "(", "i", ")", ";", "if", "(", "(", "RI", ".", "getRegClass", "(", "Reg", ")", "->", "getAlignment", "(", ")", "/", "8", ")", ">", "StackAlignment", ")", "{", "FuncInfo", "->", "setForceFramePointer", "(", "true", ")", ";", "return", "true", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "0", "8"], "File": "X86RegisterInfo36", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 816, "Length": 141, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "push_csky_minipool_barrier", "(", "rtx_insn", "*", "insn", ",", "HOST_WIDE_INT", "address", ")", "{", "Mfix", "*", "fix", "=", "(", "Mfix", "*", ")", "obstack_alloc", "(", "&", "minipool_obstack", ",", "sizeof", "(", "*", "fix", ")", ")", ";", "fix", "->", "insn", "=", "insn", ";", "fix", "->", "address", "=", "address", ";", "fix", "->", "next", "=", "NULL", ";", "if", "(", "minipool_fix_head", "!=", "NULL", ")", "minipool_fix_tail", "->", "next", "=", "fix", ";", "else", "minipool_fix_head", "=", "fix", ";", "minipool_fix_tail", "=", "fix", ";", "}", ""], "natrual_language": ["Record", "that", "there", "is", "a", "natural", "barrier", "in", "the", "insn", "stream", "at", "ADDRESS", "."], "TS_V_token": ["csky"], "File": "csky", "Func": "push_csky_minipool_barrier", "Target": "csky", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 817, "Length": 72, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ARMTTIImpl", "::", "getIntImmCodeSizeCost", "(", "unsigned", "Opcode", ",", "unsigned", "Idx", ",", "const", "APInt", "&", "Imm", ",", "Type", "*", "Ty", ")", "{", "if", "(", "Imm", ".", "isNonNegative", "(", ")", "&&", "Imm", ".", "getLimitedValue", "(", ")", "<", "256", ")", "return", "0", ";", "return", "1", ";", "}", ""], "natrual_language": ["Return", "the", "expected", "cost", "for", "the", "given", "integer", "when", "optimising", "for", "size", "."], "TS_V_token": ["ARM", "ARM", "256", "0", "1"], "File": "ARMTargetTransformInfo (2)1", "Func": "getIntImmCodeSizeCost", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 818, "Length": 44, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCObjectWriter", "*", "OR1KAsmBackend", "::", "createObjectWriter", "(", "raw_ostream", "&", "OS", ")", "const", "{", "return", "createOR1KELFObjectWriter", "(", "OS", ",", "MCELFObjectTargetWriter", "::", "getOSABI", "(", "OSType", ")", ")", ";", "}", ""], "natrual_language": ["Create", "a", "new", "MCObjectWriter", "instance", "for", "use", "by", "the", "assembler", "backend", "to", "emit", "the", "final", "object", "file", "."], "TS_V_token": ["OR1K", "OR1K", "OR1K"], "File": "OR1KAsmBackend", "Func": "createObjectWriter", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 819, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCRegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "if", "(", "!", "Subtarget", ".", "isPPC64", "(", ")", ")", "return", "TFI", "->", "hasFP", "(", "MF", ")", "?", "PPC", "::", "R31", ":", "PPC", "::", "R1", ";", "else", "return", "TFI", "->", "hasFP", "(", "MF", ")", "?", "PPC", "::", "X31", ":", "PPC", "::", "X1", ";", "}", ""], "natrual_language": ["Debug", "information", "queries", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC::R31", "PPC::R1", "PPC::X31", "PPC::X1"], "File": "PPCRegisterInfo (2)", "Func": "getFrameRegister", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 820, "Length": 70, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "arm_expand_vfp_builtin", "(", "int", "fcode", ",", "tree", "exp", ",", "rtx", "target", ")", "{", "if", "(", "fcode", ">=", "ARM_BUILTIN_VFP_BASE", "&&", "!", "TARGET_HARD_FLOAT", ")", "{", "fatal_error", "(", "input_location", ",", "\"You must enable VFP instructions\"", "\" to use these intrinsics.\"", ")", ";", "return", "const0_rtx", ";", "}", "arm_builtin_datum", "*", "d", "=", "&", "vfp_builtin_data", "[", "fcode", "-", "ARM_BUILTIN_VFP_PATTERN_START", "]", ";", "return", "arm_expand_builtin_1", "(", "fcode", ",", "exp", ",", "target", ",", "d", ")", ";", "}", ""], "natrual_language": ["Expand", "a", "VFP", "builtin", ".", "These", "builtins", "are", "treated", "like", "neon", "builtins", "except", "that", "the", "data", "is", "looked", "up", "in", "table", "VFP_BUILTIN_DATA", "."], "TS_V_token": ["arm", "\"You must enable VFP instructions\"", "\" to use these intrinsics.\""], "File": "arm-builtins", "Func": "arm_expand_vfp_builtin", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 821, "Length": 61, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCFixupKindInfo", "&", "DLXAsmBackend", "::", "getFixupKindInfo", "(", "MCFixupKind", "Kind", ")", "const", "{", "static", "const", "MCFixupKindInfo", "Infos", "[", "DLX", "::", "NumTargetFixupKinds", "]", "=", "{", "{", "\"FIXUP_DLX_NONE\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"FIXUP_DLX_21\"", ",", "16", ",", "16", ",", "0", "}", ",", "{", "\"FIXUP_DLX_21_F\"", ",", "16", ",", "16", ",", "0", "}", ",", "{", "\"FIXUP_DLX_25\"", ",", "7", ",", "25", ",", "0", "}", ",", "{", "\"FIXUP_DLX_32\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"FIXUP_DLX_HI16\"", ",", "16", ",", "16", ",", "0", "}", ",", "{", "\"FIXUP_DLX_LO16\"", ",", "16", ",", "16", ",", "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": ["DLX", "DLX", "DLX::NumTargetFixupKinds", "\"FIXUP_DLX_NONE\"", "0", "32", "0", "\"FIXUP_DLX_21\"", "16", "16", "0", "\"FIXUP_DLX_21_F\"", "16", "16", "0", "\"FIXUP_DLX_25\"", "7", "25", "0", "\"FIXUP_DLX_32\"", "0", "32", "0", "\"FIXUP_DLX_HI16\"", "16", "16", "0", "\"FIXUP_DLX_LO16\"", "16", "16", "0", "\"Invalid kind!\""], "File": "DLXAsmBackend", "Func": "getFixupKindInfo", "Target": "DLX", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 822, "Length": 133, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"ARM MVE VPT Optimisation Pass\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["ARM", "\"ARM MVE VPT Optimisation Pass\""], "File": "MVEVPTOptimisationsPass", "Func": "getPassName", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 823, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "CSKYDAGToDAGISel", "::", "Select", "(", "SDNode", "*", "N", ")", "{", "if", "(", "N", "->", "isMachineOpcode", "(", ")", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"== \"", ";", "N", "->", "dump", "(", "CurDAG", ")", ";", "dbgs", "(", ")", "<<", "\"\\n\"", ")", ";", "N", "->", "setNodeId", "(", "-", "1", ")", ";", "return", ";", "}", "SDLoc", "Dl", "(", "N", ")", ";", "unsigned", "Opcode", "=", "N", "->", "getOpcode", "(", ")", ";", "bool", "IsSelected", "=", "false", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "ADDCARRY", ":", "IsSelected", "=", "selectAddCarry", "(", "N", ")", ";", "break", ";", "case", "ISD", "::", "SUBCARRY", ":", "IsSelected", "=", "selectSubCarry", "(", "N", ")", ";", "break", ";", "case", "ISD", "::", "GLOBAL_OFFSET_TABLE", ":", "{", "Register", "GP", "=", "Subtarget", "->", "getInstrInfo", "(", ")", "->", "getGlobalBaseReg", "(", "*", "MF", ")", ";", "ReplaceNode", "(", "N", ",", "CurDAG", "->", "getRegister", "(", "GP", ",", "N", "->", "getValueType", "(", "0", ")", ")", ".", "getNode", "(", ")", ")", ";", "IsSelected", "=", "true", ";", "break", ";", "}", "case", "ISD", "::", "FrameIndex", ":", "{", "SDValue", "Imm", "=", "CurDAG", "->", "getTargetConstant", "(", "0", ",", "Dl", ",", "MVT", "::", "i32", ")", ";", "int", "FI", "=", "cast", "<", "FrameIndexSDNode", ">", "(", "N", ")", "->", "getIndex", "(", ")", ";", "SDValue", "TFI", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FI", ",", "MVT", "::", "i32", ")", ";", "ReplaceNode", "(", "N", ",", "CurDAG", "->", "getMachineNode", "(", "Subtarget", "->", "hasE2", "(", ")", "?", "CSKY", "::", "ADDI32", ":", "CSKY", "::", "ADDI16XZ", ",", "Dl", ",", "MVT", "::", "i32", ",", "TFI", ",", "Imm", ")", ")", ";", "IsSelected", "=", "true", ";", "break", ";", "}", "case", "CSKYISD", "::", "BITCAST_TO_LOHI", ":", "IsSelected", "=", "selectBITCAST_TO_LOHI", "(", "N", ")", ";", "break", ";", "case", "ISD", "::", "INLINEASM", ":", "case", "ISD", "::", "INLINEASM_BR", ":", "IsSelected", "=", "selectInlineAsm", "(", "N", ")", ";", "break", ";", "}", "if", "(", "IsSelected", ")", "return", ";", "SelectCode", "(", "N", ")", ";", "}", ""], "natrual_language": ["Main", "hook", "for", "targets", "to", "transform", "nodes", "into", "machine", "nodes", "."], "TS_V_token": ["CSKY", "CSKY", "\"== \"", "\"\\n\"", "1", "ISD::ADDCARRY", "ISD::SUBCARRY", "ISD::GLOBAL_OFFSET_TABLE", "0", "ISD::FrameIndex", "0", "MVT::i32", "MVT::i32", "CSKY::ADDI32", "CSKY::ADDI16XZ", "MVT::i32", "CSKYISD::BITCAST_TO_LOHI", "ISD::INLINEASM", "ISD::INLINEASM_BR"], "File": "CSKYISelDAGToDAG3", "Func": "Select", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 824, "Length": 298, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "int", "and_xor_ior_costs", "(", "rtx", "x", ",", "int", "code", ")", "{", "const", "int", "cost_scale", "=", "!", "TARGET_SHMEDIA", "&&", "GET_MODE_SIZE", "(", "GET_MODE", "(", "x", ")", ")", ">", "UNITS_PER_WORD", "?", "2", ":", "1", ";", "if", "(", "!", "CONST_INT_P", "(", "XEXP", "(", "x", ",", "1", ")", ")", ")", "return", "1", "*", "cost_scale", ";", "int", "i", "=", "INTVAL", "(", "XEXP", "(", "x", ",", "1", ")", ")", ";", "if", "(", "TARGET_SHMEDIA", ")", "{", "if", "(", "satisfies_constraint_I10", "(", "XEXP", "(", "x", ",", "1", ")", ")", "||", "satisfies_constraint_J16", "(", "XEXP", "(", "x", ",", "1", ")", ")", ")", "return", "1", ";", "else", "return", "1", "+", "rtx_cost", "(", "XEXP", "(", "x", ",", "1", ")", ",", "GET_MODE", "(", "x", ")", ",", "AND", ",", "1", ",", "!", "optimize_size", ")", ";", "}", "if", "(", "(", "i", "==", "0xff", "||", "i", "==", "0xffff", ")", "&&", "code", "==", "AND", ")", "return", "1", "*", "cost_scale", ";", "if", "(", "CONST_OK_FOR_K08", "(", "i", ")", ")", "return", "2", "*", "cost_scale", ";", "if", "(", "CONST_OK_FOR_I08", "(", "i", ")", ")", "return", "2", "*", "cost_scale", ";", "return", "3", "*", "cost_scale", ";", "}", ""], "natrual_language": ["Return", "the", "cost", "of", "an", "AND/XOR/IOR", "operation", "."], "TS_V_token": ["sh", "2", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "0xff", "0xffff", "1", "2", "2", "3"], "File": "sh5", "Func": "and_xor_ior_costs", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 825, "Length": 172, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MandarinInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "MachineFrameInfo", "&", "MFI", "=", "*", "MF", "->", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", "->", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "FrameIndex", ")", ",", "MachineMemOperand", "::", "MOStore", ",", "MFI", ".", "getObjectSize", "(", "FrameIndex", ")", ",", "MFI", ".", "getObjectAlignment", "(", "FrameIndex", ")", ")", ";", "if", "(", "RC", "==", "&", "MD", "::", "GenericRegsRegClass", ")", "{", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "MD", "::", "STORErr", ")", ")", ".", "addFrameIndex", "(", "FrameIndex", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", "else", "{", "llvm_unreachable", "(", "\"Cannot store this register to stack slot!\"", ")", ";", "}", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["Mandarin", "MD::GenericRegsRegClass", "MD::STORErr", "0", "\"Cannot store this register to stack slot!\""], "File": "MandarinInstrInfo", "Func": "storeRegToStackSlot", "Target": "Mandarin", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 826, "Length": 173, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "function_arg", "(", "const", "struct", "sparc_args", "*", "cum", ",", "enum", "machine_mode", "mode", ",", "tree", "type", ",", "int", "named", ",", "int", "incoming_p", ")", "{", "int", "regbase", "=", "(", "incoming_p", "?", "SPARC_INCOMING_INT_ARG_FIRST", ":", "SPARC_OUTGOING_INT_ARG_FIRST", ")", ";", "int", "slotno", ",", "regno", ",", "padding", ";", "enum", "mode_class", "mclass", "=", "GET_MODE_CLASS", "(", "mode", ")", ";", "rtx", "reg", ";", "slotno", "=", "function_arg_slotno", "(", "cum", ",", "mode", ",", "type", ",", "named", ",", "incoming_p", ",", "&", "regno", ",", "&", "padding", ")", ";", "if", "(", "slotno", "==", "-", "1", ")", "return", "0", ";", "if", "(", "TARGET_ARCH32", ")", "{", "reg", "=", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "return", "reg", ";", "}", "if", "(", "type", "&&", "TREE_CODE", "(", "type", ")", "==", "RECORD_TYPE", ")", "{", "gcc_assert", "(", "int_size_in_bytes", "(", "type", ")", "<=", "16", ")", ";", "return", "function_arg_record_value", "(", "type", ",", "mode", ",", "slotno", ",", "named", ",", "regbase", ")", ";", "}", "else", "if", "(", "type", "&&", "TREE_CODE", "(", "type", ")", "==", "UNION_TYPE", ")", "{", "HOST_WIDE_INT", "size", "=", "int_size_in_bytes", "(", "type", ")", ";", "gcc_assert", "(", "size", "<=", "16", ")", ";", "return", "function_arg_union_value", "(", "size", ",", "mode", ",", "slotno", ",", "regno", ")", ";", "}", "else", "if", "(", "type", "&&", "TREE_CODE", "(", "type", ")", "==", "VECTOR_TYPE", ")", "{", "HOST_WIDE_INT", "size", "=", "int_size_in_bytes", "(", "type", ")", ";", "gcc_assert", "(", "size", "<=", "16", ")", ";", "if", "(", "mode", "==", "BLKmode", ")", "return", "function_arg_vector_value", "(", "size", ",", "TYPE_MODE", "(", "TREE_TYPE", "(", "type", ")", ")", ",", "SPARC_FP_ARG_FIRST", "+", "2", "*", "slotno", ")", ";", "else", "mclass", "=", "MODE_FLOAT", ";", "}", "if", "(", "(", "mclass", "==", "MODE_FLOAT", "||", "mclass", "==", "MODE_COMPLEX_FLOAT", ")", "&&", "SPARC_FP_REG_P", "(", "regno", ")", ")", "{", "reg", "=", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "if", "(", "cum", "->", "prototype_p", "||", "cum", "->", "libcall_p", ")", "{", "if", "(", "(", "regno", "-", "SPARC_FP_ARG_FIRST", ")", ">=", "SPARC_INT_ARG_MAX", "*", "2", ")", "return", "gen_rtx_PARALLEL", "(", "mode", ",", "gen_rtvec", "(", "2", ",", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "NULL_RTX", ",", "const0_rtx", ")", ",", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "reg", ",", "const0_rtx", ")", ")", ")", ";", "else", "return", "reg", ";", "}", "else", "{", "rtx", "v0", ",", "v1", ";", "if", "(", "(", "regno", "-", "SPARC_FP_ARG_FIRST", ")", "<", "SPARC_INT_ARG_MAX", "*", "2", ")", "{", "int", "intreg", ";", "if", "(", "incoming_p", ")", "return", "reg", ";", "intreg", "=", "(", "SPARC_OUTGOING_INT_ARG_FIRST", "+", "(", "regno", "-", "SPARC_FP_ARG_FIRST", ")", "/", "2", ")", ";", "v0", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "reg", ",", "const0_rtx", ")", ";", "v1", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "mode", ",", "intreg", ")", ",", "const0_rtx", ")", ";", "return", "gen_rtx_PARALLEL", "(", "mode", ",", "gen_rtvec", "(", "2", ",", "v0", ",", "v1", ")", ")", ";", "}", "else", "{", "v0", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "NULL_RTX", ",", "const0_rtx", ")", ";", "v1", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "reg", ",", "const0_rtx", ")", ";", "return", "gen_rtx_PARALLEL", "(", "mode", ",", "gen_rtvec", "(", "2", ",", "v0", ",", "v1", ")", ")", ";", "}", "}", "}", "else", "{", "reg", "=", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "}", "return", "reg", ";", "}", ""], "natrual_language": ["Return", "an", "RTL", "expression", "containing", "the", "register", "for", "the", "given", "mode", ",", "or", "0", "if", "the", "argument", "is", "to", "be", "passed", "on", "the", "stack", ".", "INCOMING_P", "is", "nonzero", "if", "this", "is", "an", "incoming", "argument", "to", "the", "current", "function", "."], "TS_V_token": ["sparc", "1", "0", "16", "16", "16", "2", "2", "2", "2", "2", "2", "2"], "File": "sparc3", "Func": "function_arg", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 827, "Length": 469, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "arm_coproc_mem_operand_no_writeback", "(", "rtx", "op", ")", "{", "return", "arm_coproc_mem_operand_wb", "(", "op", ",", "0", ")", ";", "}", ""], "natrual_language": ["Return", "TRUE", "if", "OP", "is", "a", "valid", "coprocessor", "memory", "address", "pattern", "in", "a", "context", "in", "which", "no", "writeback", "address", "modes", "are", "allowed", "."], "TS_V_token": ["arm", "0"], "File": "arm", "Func": "arm_coproc_mem_operand_no_writeback", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 828, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "CSKYMCExpr", "*", "CSKYMCExpr", "::", "create", "(", "const", "MCExpr", "*", "Expr", ",", "VariantKind", "Kind", ",", "MCContext", "&", "Ctx", ")", "{", "return", "new", "(", "Ctx", ")", "CSKYMCExpr", "(", "Kind", ",", "Expr", ")", ";", "}", ""], "natrual_language": ["This", "creates", "an", "identified", "struct", "."], "TS_V_token": ["CSKY", "CSKY", "CSKY", "CSKY"], "File": "CSKYMCExpr", "Func": "create", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 829, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsTargetObjectFile", "::", "IsGlobalInSmallSection", "(", "const", "GlobalValue", "*", "GV", ",", "const", "TargetMachine", "&", "TM", ",", "SectionKind", "Kind", ")", "const", "{", "const", "MipsSubtarget", "&", "Subtarget", "=", "TM", ".", "getSubtarget", "<", "MipsSubtarget", ">", "(", ")", ";", "if", "(", "!", "Subtarget", ".", "useSmallSection", "(", ")", ")", "return", "false", ";", "const", "GlobalVariable", "*", "GVA", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GV", ")", ";", "if", "(", "!", "GVA", ")", "return", "false", ";", "if", "(", "!", "Kind", ".", "isBSS", "(", ")", "&&", "!", "Kind", ".", "isDataRel", "(", ")", ")", "return", "false", ";", "if", "(", "Kind", ".", "isMergeable1ByteCString", "(", ")", ")", "return", "false", ";", "Type", "*", "Ty", "=", "GV", "->", "getType", "(", ")", "->", "getElementType", "(", ")", ";", "return", "IsInSmallSection", "(", "TM", ".", "getDataLayout", "(", ")", "->", "getTypeAllocSize", "(", "Ty", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "this", "global", "address", "should", "be", "placed", "into", "small", "data/bss", "section", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips"], "File": "MipsTargetObjectFile19", "Func": "IsGlobalInSmallSection", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 830, "Length": 127, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PadShortFunc", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "const", "AttributeSet", "&", "FnAttrs", "=", "MF", ".", "getFunction", "(", ")", "->", "getAttributes", "(", ")", ";", "if", "(", "FnAttrs", ".", "hasAttribute", "(", "AttributeSet", "::", "FunctionIndex", ",", "Attribute", "::", "OptimizeForSize", ")", "||", "FnAttrs", ".", "hasAttribute", "(", "AttributeSet", "::", "FunctionIndex", ",", "Attribute", "::", "MinSize", ")", ")", "{", "return", "false", ";", "}", "STI", "=", "&", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "if", "(", "!", "STI", "->", "padShortFunctions", "(", ")", ")", "return", "false", ";", "TII", "=", "STI", "->", "getInstrInfo", "(", ")", ";", "ReturnBBs", ".", "clear", "(", ")", ";", "VisitedBBs", ".", "clear", "(", ")", ";", "findReturns", "(", "MF", ".", "begin", "(", ")", ")", ";", "bool", "MadeChange", "=", "false", ";", "MachineBasicBlock", "*", "MBB", ";", "unsigned", "int", "Cycles", "=", "0", ";", "for", "(", "DenseMap", "<", "MachineBasicBlock", "*", ",", "unsigned", "int", ">", "::", "iterator", "I", "=", "ReturnBBs", ".", "begin", "(", ")", ";", "I", "!=", "ReturnBBs", ".", "end", "(", ")", ";", "++", "I", ")", "{", "MBB", "=", "I", "->", "first", ";", "Cycles", "=", "I", "->", "second", ";", "if", "(", "Cycles", "<", "Threshold", ")", "{", "assert", "(", "MBB", "->", "size", "(", ")", ">", "0", "&&", "\"Basic block should contain at least a RET but is empty\"", ")", ";", "MachineBasicBlock", "::", "iterator", "ReturnLoc", "=", "--", "MBB", "->", "end", "(", ")", ";", "while", "(", "ReturnLoc", "->", "isDebugValue", "(", ")", ")", "--", "ReturnLoc", ";", "assert", "(", "ReturnLoc", "->", "isReturn", "(", ")", "&&", "!", "ReturnLoc", "->", "isCall", "(", ")", "&&", "\"Basic block does not end with RET\"", ")", ";", "addPadding", "(", "MBB", ",", "ReturnLoc", ",", "Threshold", "-", "Cycles", ")", ";", "NumBBsPadded", "++", ";", "MadeChange", "=", "true", ";", "}", "}", "return", "MadeChange", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "0", "0", "\"Basic block should contain at least a RET but is empty\"", "\"Basic block does not end with RET\""], "File": "X86PadShortFunction16", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 831, "Length": 255, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCInstrInfo", "::", "shouldClusterMemOps", "(", "ArrayRef", "<", "const", "MachineOperand", "*", ">", "BaseOps1", ",", "ArrayRef", "<", "const", "MachineOperand", "*", ">", "BaseOps2", ",", "unsigned", "NumLoads", ",", "unsigned", "NumBytes", ")", "const", "{", "assert", "(", "BaseOps1", ".", "size", "(", ")", "==", "1", "&&", "BaseOps2", ".", "size", "(", ")", "==", "1", ")", ";", "const", "MachineOperand", "&", "BaseOp1", "=", "*", "BaseOps1", ".", "front", "(", ")", ";", "const", "MachineOperand", "&", "BaseOp2", "=", "*", "BaseOps2", ".", "front", "(", ")", ";", "assert", "(", "(", "BaseOp1", ".", "isReg", "(", ")", "||", "BaseOp1", ".", "isFI", "(", ")", ")", "&&", "\"Only base registers and frame indices are supported.\"", ")", ";", "if", "(", "NumLoads", ">", "2", ")", "return", "false", ";", "if", "(", "(", "BaseOp1", ".", "isReg", "(", ")", "!=", "BaseOp2", ".", "isReg", "(", ")", ")", "||", "(", "BaseOp1", ".", "isReg", "(", ")", "&&", "BaseOp1", ".", "getReg", "(", ")", "!=", "BaseOp2", ".", "getReg", "(", ")", ")", "||", "(", "BaseOp1", ".", "isFI", "(", ")", "&&", "BaseOp1", ".", "getIndex", "(", ")", "!=", "BaseOp2", ".", "getIndex", "(", ")", ")", ")", "return", "false", ";", "const", "MachineInstr", "&", "FirstLdSt", "=", "*", "BaseOp1", ".", "getParent", "(", ")", ";", "const", "MachineInstr", "&", "SecondLdSt", "=", "*", "BaseOp2", ".", "getParent", "(", ")", ";", "unsigned", "FirstOpc", "=", "FirstLdSt", ".", "getOpcode", "(", ")", ";", "unsigned", "SecondOpc", "=", "SecondLdSt", ".", "getOpcode", "(", ")", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "&", "getRegisterInfo", "(", ")", ";", "if", "(", "!", "isClusterableLdStOpcPair", "(", "FirstOpc", ",", "SecondOpc", ",", "Subtarget", ")", ")", "return", "false", ";", "if", "(", "!", "isLdStSafeToCluster", "(", "FirstLdSt", ",", "TRI", ")", "||", "!", "isLdStSafeToCluster", "(", "SecondLdSt", ",", "TRI", ")", ")", "return", "false", ";", "int64_t", "Offset1", "=", "0", ",", "Offset2", "=", "0", ";", "unsigned", "Width1", "=", "0", ",", "Width2", "=", "0", ";", "const", "MachineOperand", "*", "Base1", "=", "nullptr", ",", "*", "Base2", "=", "nullptr", ";", "if", "(", "!", "getMemOperandWithOffsetWidth", "(", "FirstLdSt", ",", "Base1", ",", "Offset1", ",", "Width1", ",", "TRI", ")", "||", "!", "getMemOperandWithOffsetWidth", "(", "SecondLdSt", ",", "Base2", ",", "Offset2", ",", "Width2", ",", "TRI", ")", "||", "Width1", "!=", "Width2", ")", "return", "false", ";", "assert", "(", "Base1", "==", "&", "BaseOp1", "&&", "Base2", "==", "&", "BaseOp2", "&&", "\"getMemOperandWithOffsetWidth return incorrect base op\"", ")", ";", "assert", "(", "Offset1", "<=", "Offset2", "&&", "\"Caller should have ordered offsets.\"", ")", ";", "return", "Offset1", "+", "Width1", "==", "Offset2", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "two", "given", "memory", "operations", "should", "be", "scheduled", "adjacent", "."], "TS_V_token": ["PowerPC", "PPC", "1", "1", "\"Only base registers and frame indices are supported.\"", "2", "0", "0", "0", "0", "\"getMemOperandWithOffsetWidth return incorrect base op\"", "\"Caller should have ordered offsets.\""], "File": "PPCInstrInfo", "Func": "shouldClusterMemOps", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 832, "Length": 346, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SparcFrameLowering", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "MachineInstr", "&", "MI", "=", "*", "I", ";", "DebugLoc", "dl", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "int", "Size", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "SP", "::", "ADJCALLSTACKDOWN", ")", "Size", "=", "-", "Size", ";", "const", "SparcInstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "SparcInstrInfo", "*", ">", "(", "MF", ".", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "if", "(", "Size", ")", "BuildMI", "(", "MBB", ",", "I", ",", "dl", ",", "TII", ".", "get", "(", "SP", "::", "ADDri", ")", ",", "SP", "::", "O6", ")", ".", "addReg", "(", "SP", "::", "O6", ")", ".", "addImm", "(", "Size", ")", ";", "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": ["Sparc", "Sparc", "0", "SP::ADJCALLSTACKDOWN", "Sparc", "Sparc", "SP::ADDri", "SP::O6", "SP::O6"], "File": "SparcFrameLowering12", "Func": "eliminateCallFramePseudoInstr", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 833, "Length": 137, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZElimCompare", "::", "processBlock", "(", "MachineBasicBlock", "&", "MBB", ")", "{", "bool", "Changed", "=", "false", ";", "bool", "CompleteCCUsers", "=", "!", "isCCLiveOut", "(", "MBB", ")", ";", "SmallVector", "<", "MachineInstr", "*", ",", "4", ">", "CCUsers", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "end", "(", ")", ";", "while", "(", "MBBI", "!=", "MBB", ".", "begin", "(", ")", ")", "{", "MachineInstr", "*", "MI", "=", "--", "MBBI", ";", "if", "(", "CompleteCCUsers", "&&", "(", "MI", "->", "isCompare", "(", ")", "||", "isLoadAndTestAsCmp", "(", "MI", ")", ")", "&&", "(", "optimizeCompareZero", "(", "MI", ",", "CCUsers", ")", "||", "fuseCompareOperations", "(", "MI", ",", "CCUsers", ")", ")", ")", "{", "++", "MBBI", ";", "MI", "->", "eraseFromParent", "(", ")", ";", "Changed", "=", "true", ";", "CCUsers", ".", "clear", "(", ")", ";", "continue", ";", "}", "if", "(", "MI", "->", "definesRegister", "(", "SystemZ", "::", "CC", ")", ")", "{", "CCUsers", ".", "clear", "(", ")", ";", "CompleteCCUsers", "=", "true", ";", "}", "if", "(", "MI", "->", "readsRegister", "(", "SystemZ", "::", "CC", ")", "&&", "CompleteCCUsers", ")", "CCUsers", ".", "push_back", "(", "MI", ")", ";", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["processBlock", "-", "If", "there", "are", "any", "predecessors", "whose", "control", "can", "be", "threaded", "through", "to", "a", "successor", ",", "transform", "them", "now", "."], "TS_V_token": ["SystemZ", "SystemZ", "4", "SystemZ::CC", "SystemZ::CC"], "File": "SystemZElimCompare38", "Func": "processBlock", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 834, "Length": 166, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "aarch64_expand_builtin_memtag", "(", "int", "fcode", ",", "tree", "exp", ",", "rtx", "target", ")", "{", "if", "(", "TARGET_ILP32", ")", "{", "error", "(", "\"Memory Tagging Extension does not support %<-mabi=ilp32%>\"", ")", ";", "return", "const0_rtx", ";", "}", "rtx", "pat", "=", "NULL", ";", "enum", "insn_code", "icode", "=", "aarch64_memtag_builtin_data", "[", "fcode", "-", "AARCH64_MEMTAG_BUILTIN_START", "-", "1", "]", ".", "icode", ";", "rtx", "op0", "=", "expand_normal", "(", "CALL_EXPR_ARG", "(", "exp", ",", "0", ")", ")", ";", "machine_mode", "mode0", "=", "GET_MODE", "(", "op0", ")", ";", "op0", "=", "force_reg", "(", "mode0", "==", "VOIDmode", "?", "DImode", ":", "mode0", ",", "op0", ")", ";", "op0", "=", "convert_to_mode", "(", "DImode", ",", "op0", ",", "true", ")", ";", "switch", "(", "fcode", ")", "{", "case", "AARCH64_MEMTAG_BUILTIN_IRG", ":", "case", "AARCH64_MEMTAG_BUILTIN_GMI", ":", "case", "AARCH64_MEMTAG_BUILTIN_SUBP", ":", "case", "AARCH64_MEMTAG_BUILTIN_INC_TAG", ":", "{", "if", "(", "!", "target", "||", "GET_MODE", "(", "target", ")", "!=", "DImode", "||", "!", "(", "*", "insn_data", "[", "icode", "]", ".", "operand", "[", "0", "]", ".", "predicate", ")", "(", "target", ",", "DImode", ")", ")", "target", "=", "gen_reg_rtx", "(", "DImode", ")", ";", "if", "(", "fcode", "==", "AARCH64_MEMTAG_BUILTIN_INC_TAG", ")", "{", "rtx", "op1", "=", "expand_normal", "(", "CALL_EXPR_ARG", "(", "exp", ",", "1", ")", ")", ";", "if", "(", "(", "*", "insn_data", "[", "icode", "]", ".", "operand", "[", "3", "]", ".", "predicate", ")", "(", "op1", ",", "QImode", ")", ")", "{", "pat", "=", "GEN_FCN", "(", "icode", ")", "(", "target", ",", "op0", ",", "const0_rtx", ",", "op1", ")", ";", "break", ";", "}", "error_at", "(", "EXPR_LOCATION", "(", "exp", ")", ",", "\"argument %d must be a constant immediate \"", "\"in range [0,15]\"", ",", "2", ")", ";", "return", "const0_rtx", ";", "}", "else", "{", "rtx", "op1", "=", "expand_normal", "(", "CALL_EXPR_ARG", "(", "exp", ",", "1", ")", ")", ";", "machine_mode", "mode1", "=", "GET_MODE", "(", "op1", ")", ";", "op1", "=", "force_reg", "(", "mode1", "==", "VOIDmode", "?", "DImode", ":", "mode1", ",", "op1", ")", ";", "op1", "=", "convert_to_mode", "(", "DImode", ",", "op1", ",", "true", ")", ";", "pat", "=", "GEN_FCN", "(", "icode", ")", "(", "target", ",", "op0", ",", "op1", ")", ";", "}", "break", ";", "}", "case", "AARCH64_MEMTAG_BUILTIN_GET_TAG", ":", "target", "=", "op0", ";", "pat", "=", "GEN_FCN", "(", "icode", ")", "(", "target", ",", "op0", ",", "const0_rtx", ")", ";", "break", ";", "case", "AARCH64_MEMTAG_BUILTIN_SET_TAG", ":", "pat", "=", "GEN_FCN", "(", "icode", ")", "(", "op0", ",", "op0", ",", "const0_rtx", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "if", "(", "!", "pat", ")", "return", "NULL_RTX", ";", "emit_insn", "(", "pat", ")", ";", "return", "target", ";", "}", ""], "natrual_language": ["Expand", "an", "expression", "EXP", "that", "calls", "a", "MEMTAG", "built-in", "FCODE", "with", "result", "going", "to", "TARGET", "."], "TS_V_token": ["aarch64", "\"Memory Tagging Extension does not support %<-mabi=ilp32%>\"", "1", "0", "0", "1", "3", "\"argument %d must be a constant immediate \"", "\"in range [0,15]\"", "2", "1"], "File": "aarch64-builtins", "Func": "aarch64_expand_builtin_memtag", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 835, "Length": 365, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "avoid_collisions_1", "(", "const", "rtx", "&", "t", ",", "insn_info_list_t", "*", "v", ",", "tag_map_t", "*", "tag_map", ")", "{", "if", "(", "v", "->", "length", "(", ")", "<", "2", ")", "return", "true", ";", "tag_insn_info", "*", "vec_start", "=", "v", "->", "pop", "(", ")", ";", "tag_insn_info", "*", "insn_info", "=", "vec_start", ";", "do", "{", "int", "new_regno", ";", "if", "(", "(", "new_regno", "=", "rename_dest", "(", "insn_info", ",", "*", "tag_map", ")", ")", "!=", "-", "1", ")", "{", "rtx", "new_tag", "=", "GEN_INT", "(", "TAG_UPDATE_DEST", "(", "INTVAL", "(", "t", ")", ",", "new_regno", ")", ")", ";", "tag_map", "->", "get_or_insert", "(", "new_tag", ")", ".", "safe_push", "(", "insn_info", ")", ";", "df_set_regs_ever_live", "(", "new_regno", ",", "true", ")", ";", "map_changed", "=", "true", ";", "return", "false", ";", "}", "v", "->", "safe_insert", "(", "0", ",", "insn_info", ")", ";", "insn_info", "=", "v", "->", "pop", "(", ")", ";", "}", "while", "(", "insn_info", "!=", "vec_start", ")", ";", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"\\t>> Failed to rename destination in insn %d\\n\\t>>\"", ",", "INSN_UID", "(", "insn_info", "->", "insn", ")", ")", ";", "delete", "insn_info", ";", "return", "true", ";", "}", ""], "natrual_language": ["The", "actual", "reallocation", "logic", ".", "For", "each", "vector", "of", "collisions", "V", ",", "try", "to", "resolve", "the", "collision", "by", "attempting", "to", "rename", "the", "destination", "register", "of", "all", "but", "one", "of", "the", "loads", ".", "This", "is", "a", "callback", "that", "is", "invoked", "for", "each", "name-value", "pair", "(", "T", ",", "V", ")", "in", "TAG_MAP", ".", "The", "function", "returns", "true", "whenever", "it", "returns", "unchanged", "and", "false", "otherwise", "to", "halt", "traversal", "."], "TS_V_token": ["aarch64", "2", "1", "0", "\"\\t>> Failed to rename destination in insn %d\\n\\t>>\""], "File": "falkor-tag-collision-avoidance", "Func": "avoid_collisions_1", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 836, "Length": 162, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "TargetRegisterClass", "*", "X86RegisterInfo", "::", "getPointerRegClass", "(", "const", "MachineFunction", "&", "MF", ",", "unsigned", "Kind", ")", "const", "{", "const", "X86Subtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "switch", "(", "Kind", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unexpected Kind in getPointerRegClass!\"", ")", ";", "case", "0", ":", "if", "(", "Subtarget", ".", "isTarget64BitLP64", "(", ")", "||", "Subtarget", ".", "isTargetNaCl64", "(", ")", ")", "return", "&", "X86", "::", "GR64RegClass", ";", "return", "&", "X86", "::", "GR32RegClass", ";", "case", "1", ":", "if", "(", "Subtarget", ".", "isTarget64BitLP64", "(", ")", "||", "Subtarget", ".", "isTargetNaCl64", "(", ")", ")", "return", "&", "X86", "::", "GR64_NOSPRegClass", ";", "return", "&", "X86", "::", "GR32_NOSPRegClass", ";", "case", "2", ":", "if", "(", "Subtarget", ".", "isTarget64BitLP64", "(", ")", "||", "Subtarget", ".", "isTargetNaCl64", "(", ")", ")", "return", "&", "X86", "::", "GR64_NOREXRegClass", ";", "return", "&", "X86", "::", "GR32_NOREXRegClass", ";", "case", "3", ":", "if", "(", "Subtarget", ".", "isTarget64BitLP64", "(", ")", "||", "Subtarget", ".", "isTargetNaCl64", "(", ")", ")", "return", "&", "X86", "::", "GR64_NOREX_NOSPRegClass", ";", "return", "&", "X86", "::", "GR32_NOREX_NOSPRegClass", ";", "case", "4", ":", "const", "Function", "*", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "if", "(", "IsWin64", "||", "(", "F", "&&", "F", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "X86_64_Win64", ")", ")", "return", "&", "X86", "::", "GR64_TCW64RegClass", ";", "else", "if", "(", "Is64Bit", ")", "return", "&", "X86", "::", "GR64_TCRegClass", ";", "bool", "hasHipeCC", "=", "(", "F", "?", "F", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "HiPE", ":", "false", ")", ";", "if", "(", "hasHipeCC", ")", "return", "&", "X86", "::", "GR32RegClass", ";", "return", "&", "X86", "::", "GR32_TCRegClass", ";", "}", "}", ""], "natrual_language": ["getPointerRegClass", "-", "Returns", "a", "TargetRegisterClass", "used", "for", "pointer", "values", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "\"Unexpected Kind in getPointerRegClass!\"", "0", "X86::GR64RegClass", "X86::GR32RegClass", "1", "X86::GR64_NOSPRegClass", "X86::GR32_NOSPRegClass", "2", "X86::GR64_NOREXRegClass", "X86::GR32_NOREXRegClass", "3", "X86::GR64_NOREX_NOSPRegClass", "X86::GR32_NOREX_NOSPRegClass", "4", "X86", "X86::GR64_TCW64RegClass", "X86::GR64_TCRegClass", "X86::GR32RegClass", "X86::GR32_TCRegClass"], "File": "X86RegisterInfo87", "Func": "getPointerRegClass", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 837, "Length": 245, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint16_t", "*", "Cpu0RegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "return", "CSR_O32_SaveList", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["Cpu0", "Cpu0"], "File": "Cpu0RegisterInfo2", "Func": "getCalleeSavedRegs", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 838, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "X86TargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "DebugLoc", "dl", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "bool", "Is64Bit", "=", "Subtarget", "->", "is64Bit", "(", ")", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "getTargetMachine", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "RetCC_X86", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "EVT", "CopyVT", "=", "VA", ".", "getValVT", "(", ")", ";", "if", "(", "(", "CopyVT", "==", "MVT", "::", "f32", "||", "CopyVT", "==", "MVT", "::", "f64", ")", "&&", "(", "(", "Is64Bit", "||", "Ins", "[", "i", "]", ".", "Flags", ".", "isInReg", "(", ")", ")", "&&", "!", "Subtarget", "->", "hasXMM", "(", ")", ")", ")", "{", "report_fatal_error", "(", "\"SSE register return with SSE disabled\"", ")", ";", "}", "SDValue", "Val", ";", "if", "(", "VA", ".", "getLocReg", "(", ")", "==", "X86", "::", "ST0", "||", "VA", ".", "getLocReg", "(", ")", "==", "X86", "::", "ST1", ")", "{", "if", "(", "isScalarFPTypeInSSEReg", "(", "VA", ".", "getValVT", "(", ")", ")", ")", "CopyVT", "=", "MVT", "::", "f80", ";", "SDValue", "Ops", "[", "]", "=", "{", "Chain", ",", "InFlag", "}", ";", "Chain", "=", "SDValue", "(", "DAG", ".", "getMachineNode", "(", "X86", "::", "FpPOP_RETVAL", ",", "dl", ",", "CopyVT", ",", "MVT", "::", "Other", ",", "MVT", "::", "Glue", ",", "Ops", ",", "2", ")", ",", "1", ")", ";", "Val", "=", "Chain", ".", "getValue", "(", "0", ")", ";", "if", "(", "CopyVT", "!=", "VA", ".", "getValVT", "(", ")", ")", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "FP_ROUND", ",", "dl", ",", "VA", ".", "getValVT", "(", ")", ",", "Val", ",", "DAG", ".", "getIntPtrConstant", "(", "1", ")", ")", ";", "}", "else", "{", "Chain", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "dl", ",", "VA", ".", "getLocReg", "(", ")", ",", "CopyVT", ",", "InFlag", ")", ".", "getValue", "(", "1", ")", ";", "Val", "=", "Chain", ".", "getValue", "(", "0", ")", ";", "}", "InFlag", "=", "Chain", ".", "getValue", "(", "2", ")", ";", "InVals", ".", "push_back", "(", "Val", ")", ";", "}", "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": ["X86", "X86", "ISD::InputArg", "16", "X86", "0", "MVT::f32", "MVT::f64", "\"SSE register return with SSE disabled\"", "X86::ST0", "X86::ST1", "MVT::f80", "X86::FpPOP_RETVAL", "MVT::Other", "MVT::Glue", "2", "1", "0", "ISD::FP_ROUND", "1", "1", "0", "2"], "File": "X86ISelLowering191", "Func": "LowerCallResult", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 839, "Length": 375, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "MCInst", "&", "Res", ")", "const", "{", "}", ""], "natrual_language": ["Relax", "the", "instruction", "in", "the", "given", "fragment", "to", "the", "next", "wider", "instruction", "."], "TS_V_token": ["OR1K"], "File": "OR1KAsmBackend", "Func": "relaxInstruction", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 840, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "DLXRegisterInfo", "&", "getRegisterInfo", "(", ")", "const", "{", "return", "RegisterInfo", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["DLX", "DLX"], "File": "DLXInstrInfo", "Func": "getRegisterInfo", "Target": "DLX", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 841, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AZPRFrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ")", "const", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\">> AZPRFrameLowering::emitPrologue <<\\n\"", ")", ";", "MachineBasicBlock", "&", "MBB", "=", "MF", ".", "front", "(", ")", ";", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "AZPRInstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "AZPRInstrInfo", "*", ">", "(", "MF", ".", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "begin", "(", ")", ";", "DebugLoc", "dl", "=", "MBBI", "!=", "MBB", ".", "end", "(", ")", "?", "MBBI", "->", "getDebugLoc", "(", ")", ":", "DebugLoc", "(", ")", ";", "uint64_t", "StackSize", "=", "4", "*", "16", ";", "MFI", "->", "setStackSize", "(", "StackSize", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "AZPR", "::", "ADDUI", ")", ",", "AZPR", "::", "r30", ")", ".", "addReg", "(", "AZPR", "::", "r30", ")", ".", "addImm", "(", "-", "StackSize", ")", ";", "}", ""], "natrual_language": ["emitProlog/emitEpilog", "-", "These", "methods", "insert", "prolog", "and", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["AZPR", "AZPR", "\">> AZPRFrameLowering::emitPrologue <<\\n\"", "AZPR", "AZPR", "4", "16", "AZPR::ADDUI", "AZPR::r30", "AZPR::r30"], "File": "AZPRFrameLowering", "Func": "emitPrologue", "Target": "AZPR", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 842, "Length": 146, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "std", "::", "unique_ptr", "<", "MINA32Operand", ">", "CreateReg", "(", "unsigned", "RegNum", ",", "SMLoc", "S", ",", "SMLoc", "E", ")", "{", "auto", "Op", "=", "std", "::", "make_unique", "<", "MINA32Operand", ">", "(", "k_Register", ")", ";", "Op", "->", "Reg", ".", "RegNum", "=", "RegNum", ";", "Op", "->", "StartLoc", "=", "S", ";", "Op", "->", "EndLoc", "=", "E", ";", "return", "Op", ";", "}", ""], "natrual_language": ["CreateReg", "-", "Allocate", "a", "single", "virtual", "register", "for", "the", "given", "type", "."], "TS_V_token": ["MINA32", "MINA32", "MINA32"], "File": "MINA32AsmParser", "Func": "CreateReg", "Target": "MINA32", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 843, "Length": 56, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCInstrInfo", "::", "FoldImmediate", "(", "MachineInstr", "&", "UseMI", ",", "MachineInstr", "&", "DefMI", ",", "Register", "Reg", ",", "MachineRegisterInfo", "*", "MRI", ")", "const", "{", "bool", "Changed", "=", "onlyFoldImmediate", "(", "UseMI", ",", "DefMI", ",", "Reg", ")", ";", "if", "(", "MRI", "->", "use_nodbg_empty", "(", "Reg", ")", ")", "DefMI", ".", "eraseFromParent", "(", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["Reg", "is", "known", "to", "be", "defined", "by", "a", "move", "immediate", "instruction", ",", "try", "to", "fold", "the", "immediate", "into", "the", "use", "instruction", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCInstrInfo", "Func": "FoldImmediate", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 844, "Length": 53, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isConditionalBranch", "(", "const", "MCInst", "&", "Inst", ")", "const", "override", "{", "if", "(", "Inst", ".", "getOpcode", "(", ")", "==", "ARM", "::", "Bcc", "&&", "Inst", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", "==", "ARMCC", "::", "AL", ")", "return", "false", ";", "return", "MCInstrAnalysis", "::", "isConditionalBranch", "(", "Inst", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "this", "is", "a", "branch", "which", "may", "fall", "through", "to", "the", "next", "instruction", "or", "may", "transfer", "control", "flow", "to", "some", "other", "block", "."], "TS_V_token": ["ARM", "ARM::Bcc", "1", "ARMCC::AL"], "File": "ARMMCTargetDesc (2)", "Func": "isConditionalBranch", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 845, "Length": 50, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "load_cr_save", "(", "int", "regno", ",", "rtx", "frame_reg_rtx", ",", "int", "offset", ",", "bool", "exit_func", ")", "{", "rtx", "mem", "=", "gen_frame_mem_offset", "(", "SImode", ",", "frame_reg_rtx", ",", "offset", ")", ";", "rtx", "reg", "=", "gen_rtx_REG", "(", "SImode", ",", "regno", ")", ";", "rtx_insn", "*", "insn", "=", "emit_move_insn", "(", "reg", ",", "mem", ")", ";", "if", "(", "!", "exit_func", "&&", "DEFAULT_ABI", "==", "ABI_V4", ")", "{", "rtx", "cr", "=", "gen_rtx_REG", "(", "SImode", ",", "CR2_REGNO", ")", ";", "rtx", "set", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "reg", ",", "cr", ")", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_REGISTER", ",", "set", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "return", "reg", ";", "}", ""], "natrual_language": ["Restoring", "cr", "is", "a", "two", "step", "process", ":", "loading", "a", "reg", "from", "the", "frame", "save", ",", "then", "moving", "the", "reg", "to", "cr", ".", "For", "ABI_V4", "we", "must", "let", "the", "unwinder", "know", "that", "the", "stack", "location", "is", "no", "longer", "valid", "at", "or", "before", "the", "stack", "deallocation", ",", "but", "we", "ca", "n't", "emit", "a", "cfa_restore", "for", "cr", "at", "the", "stack", "deallocation", "like", "we", "do", "for", "other", "registers", ".", "The", "trouble", "is", "that", "it", "is", "possible", "for", "the", "move", "to", "cr", "to", "be", "scheduled", "after", "the", "stack", "deallocation", ".", "So", "say", "exactly", "where", "cr", "is", "located", "on", "each", "of", "the", "two", "insns", "."], "TS_V_token": ["rs6000", "1"], "File": "rs60004", "Func": "load_cr_save", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 846, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCAIXAsmPrinter", "::", "emitFunctionEntryLabel", "(", ")", "{", "if", "(", "!", "TM", ".", "getFunctionSections", "(", ")", ")", "PPCAsmPrinter", "::", "emitFunctionEntryLabel", "(", ")", ";", "llvm", "::", "for_each", "(", "GOAliasMap", "[", "&", "MF", "->", "getFunction", "(", ")", "]", ",", "[", "this", "]", "(", "const", "GlobalAlias", "*", "Alias", ")", "{", "OutStreamer", "->", "emitLabel", "(", "getObjFileLowering", "(", ")", ".", "getFunctionEntryPointSymbol", "(", "Alias", ",", "TM", ")", ")", ";", "}", ")", ";", "}", ""], "natrual_language": ["EmitFunctionEntryLabel", "-", "Emit", "the", "label", "that", "is", "the", "entrypoint", "for", "the", "function", "."], "TS_V_token": ["PowerPC", "PPC", "PPC"], "File": "PPCAsmPrinter (2)3", "Func": "emitFunctionEntryLabel", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 847, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "VETargetLowering", "*", "getTLI", "(", ")", "const", "{", "return", "TLI", ";", "}", ""], "natrual_language": ["Getter", "for", "generic", "TargetLowering", "class", "."], "TS_V_token": ["VE", "VE"], "File": "VETargetTransformInfo", "Func": "getTLI", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 848, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"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": ["MINA32", "0", "0"], "File": "MINA32AsmParser", "Func": "addExpr", "Target": "MINA32", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 849, "Length": 78, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "rs6000_use_sched_lookahead", "(", "void", ")", "{", "switch", "(", "rs6000_cpu_attr", ")", "{", "case", "CPU_PPC8540", ":", "case", "CPU_PPC8548", ":", "return", "4", ";", "case", "CPU_CELL", ":", "return", "(", "reload_completed", "?", "8", ":", "0", ")", ";", "default", ":", "return", "0", ";", "}", "}", ""], "natrual_language": ["Return", "how", "many", "instructions", "to", "look", "ahead", "for", "better", "insn", "scheduling", "."], "TS_V_token": ["rs6000", "4", "8", "0", "0"], "File": "rs60004", "Func": "rs6000_use_sched_lookahead", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 850, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64PassConfig", "::", "addIRPasses", "(", ")", "{", "addPass", "(", "createAtomicExpandPass", "(", ")", ")", ";", "if", "(", "EnableSVEIntrinsicOpts", "&&", "TM", "->", "getOptLevel", "(", ")", "==", "CodeGenOpt", "::", "Aggressive", ")", "addPass", "(", "createSVEIntrinsicOptsPass", "(", ")", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "EnableAtomicTidy", ")", "addPass", "(", "createCFGSimplificationPass", "(", "1", ",", "true", ",", "true", ",", "false", ",", "true", ")", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "if", "(", "EnableLoopDataPrefetch", ")", "addPass", "(", "createLoopDataPrefetchPass", "(", ")", ")", ";", "if", "(", "EnableFalkorHWPFFix", ")", "addPass", "(", "createFalkorMarkStridedAccessesPass", "(", ")", ")", ";", "}", "TargetPassConfig", "::", "addIRPasses", "(", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "addPass", "(", "createInterleavedLoadCombinePass", "(", ")", ")", ";", "addPass", "(", "createInterleavedAccessPass", "(", ")", ")", ";", "}", "if", "(", "TM", "->", "getOptLevel", "(", ")", "==", "CodeGenOpt", "::", "Aggressive", "&&", "EnableGEPOpt", ")", "{", "addPass", "(", "createSeparateConstOffsetFromGEPPass", "(", "true", ")", ")", ";", "addPass", "(", "createEarlyCSEPass", "(", ")", ")", ";", "addPass", "(", "createLICMPass", "(", ")", ")", ";", "}", "addPass", "(", "createAArch64StackTaggingPass", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", ")", ";", "if", "(", "TM", "->", "getTargetTriple", "(", ")", ".", "isOSWindows", "(", ")", ")", "addPass", "(", "createCFGuardCheckPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["Add", "common", "target", "configurable", "passes", "that", "perform", "LLVM", "IR", "to", "IR", "transforms", "following", "machine", "independent", "optimization", "."], "TS_V_token": ["AArch64", "AArch64", "1", "AArch64"], "File": "AArch64TargetMachine42", "Func": "addIRPasses", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 851, "Length": 209, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_legitimate_constant_p", "(", "machine_mode", "mode", ",", "rtx", "x", ")", "{", "if", "(", "POINTER_BOUNDS_MODE_P", "(", "GET_MODE", "(", "x", ")", ")", ")", "return", "false", ";", "switch", "(", "GET_CODE", "(", "x", ")", ")", "{", "case", "CONST", ":", "x", "=", "XEXP", "(", "x", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "PLUS", ")", "{", "if", "(", "!", "CONST_INT_P", "(", "XEXP", "(", "x", ",", "1", ")", ")", ")", "return", "false", ";", "x", "=", "XEXP", "(", "x", ",", "0", ")", ";", "}", "if", "(", "TARGET_MACHO", "&&", "darwin_local_data_pic", "(", "x", ")", ")", "return", "true", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "UNSPEC", ")", "switch", "(", "XINT", "(", "x", ",", "1", ")", ")", "{", "case", "UNSPEC_GOT", ":", "case", "UNSPEC_GOTOFF", ":", "case", "UNSPEC_PLTOFF", ":", "return", "TARGET_64BIT", ";", "case", "UNSPEC_TPOFF", ":", "case", "UNSPEC_NTPOFF", ":", "x", "=", "XVECEXP", "(", "x", ",", "0", ",", "0", ")", ";", "return", "(", "GET_CODE", "(", "x", ")", "==", "SYMBOL_REF", "&&", "SYMBOL_REF_TLS_MODEL", "(", "x", ")", "==", "TLS_MODEL_LOCAL_EXEC", ")", ";", "case", "UNSPEC_DTPOFF", ":", "x", "=", "XVECEXP", "(", "x", ",", "0", ",", "0", ")", ";", "return", "(", "GET_CODE", "(", "x", ")", "==", "SYMBOL_REF", "&&", "SYMBOL_REF_TLS_MODEL", "(", "x", ")", "==", "TLS_MODEL_LOCAL_DYNAMIC", ")", ";", "default", ":", "return", "false", ";", "}", "if", "(", "GET_CODE", "(", "x", ")", "==", "LABEL_REF", ")", "return", "true", ";", "if", "(", "GET_CODE", "(", "x", ")", "!=", "SYMBOL_REF", ")", "return", "false", ";", "case", "SYMBOL_REF", ":", "if", "(", "SYMBOL_REF_TLS_MODEL", "(", "x", ")", ")", "return", "false", ";", "if", "(", "TARGET_DLLIMPORT_DECL_ATTRIBUTES", "&&", "SYMBOL_REF_DLLIMPORT_P", "(", "x", ")", ")", "return", "false", ";", "if", "(", "MACHO_DYNAMIC_NO_PIC_P", ")", "return", "machopic_symbol_defined_p", "(", "x", ")", ";", "if", "(", "ix86_force_load_from_GOT_p", "(", "x", ")", ")", "return", "false", ";", "break", ";", "CASE_CONST_SCALAR_INT", ":", "switch", "(", "mode", ")", "{", "case", "TImode", ":", "if", "(", "TARGET_64BIT", ")", "return", "true", ";", "case", "OImode", ":", "case", "XImode", ":", "if", "(", "!", "standard_sse_constant_p", "(", "x", ",", "mode", ")", ")", "return", "false", ";", "default", ":", "break", ";", "}", "break", ";", "case", "CONST_VECTOR", ":", "if", "(", "!", "standard_sse_constant_p", "(", "x", ",", "mode", ")", ")", "return", "false", ";", "default", ":", "break", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Determine", "if", "a", "given", "RTX", "is", "a", "valid", "constant", ".", "We", "already", "know", "this", "satisfies", "CONSTANT_P", "."], "TS_V_token": ["i386", "0", "1", "0", "1", "0", "0", "0", "0"], "File": "i3866", "Func": "ix86_legitimate_constant_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 852, "Length": 333, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "init_insn_group_barriers", "(", ")", "{", "memset", "(", "rws_sum", ",", "0", ",", "sizeof", "(", "rws_sum", ")", ")", ";", "first_instruction", "=", "1", ";", "}", ""], "natrual_language": ["Clear", "out", "the", "state", "for", "group_barrier_needed_p", "at", "the", "start", "of", "a", "sequence", "of", "insns", "."], "TS_V_token": ["ia64", "0", "1"], "File": "ia642", "Func": "init_insn_group_barriers", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 853, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCAsmParser", "::", "ParseInstruction", "(", "ParseInstructionInfo", "&", "Info", ",", "StringRef", "Name", ",", "SMLoc", "NameLoc", ",", "OperandVector", "&", "Operands", ")", "{", "std", "::", "string", "NewOpcode", ";", "if", "(", "getLexer", "(", ")", ".", "is", "(", "AsmToken", "::", "Plus", ")", ")", "{", "getLexer", "(", ")", ".", "Lex", "(", ")", ";", "NewOpcode", "=", "Name", ";", "NewOpcode", "+=", "'+'", ";", "Name", "=", "NewOpcode", ";", "}", "if", "(", "getLexer", "(", ")", ".", "is", "(", "AsmToken", "::", "Minus", ")", ")", "{", "getLexer", "(", ")", ".", "Lex", "(", ")", ";", "NewOpcode", "=", "Name", ";", "NewOpcode", "+=", "'-'", ";", "Name", "=", "NewOpcode", ";", "}", "size_t", "Dot", "=", "Name", ".", "find", "(", "'.'", ")", ";", "StringRef", "Mnemonic", "=", "Name", ".", "slice", "(", "0", ",", "Dot", ")", ";", "if", "(", "!", "NewOpcode", ".", "empty", "(", ")", ")", "Operands", ".", "push_back", "(", "PPCOperand", "::", "CreateTokenWithStringCopy", "(", "Mnemonic", ",", "NameLoc", ",", "isPPC64", "(", ")", ")", ")", ";", "else", "Operands", ".", "push_back", "(", "PPCOperand", "::", "CreateToken", "(", "Mnemonic", ",", "NameLoc", ",", "isPPC64", "(", ")", ")", ")", ";", "if", "(", "Dot", "!=", "StringRef", "::", "npos", ")", "{", "SMLoc", "DotLoc", "=", "SMLoc", "::", "getFromPointer", "(", "NameLoc", ".", "getPointer", "(", ")", "+", "Dot", ")", ";", "StringRef", "DotStr", "=", "Name", ".", "slice", "(", "Dot", ",", "StringRef", "::", "npos", ")", ";", "if", "(", "!", "NewOpcode", ".", "empty", "(", ")", ")", "Operands", ".", "push_back", "(", "PPCOperand", "::", "CreateTokenWithStringCopy", "(", "DotStr", ",", "DotLoc", ",", "isPPC64", "(", ")", ")", ")", ";", "else", "Operands", ".", "push_back", "(", "PPCOperand", "::", "CreateToken", "(", "DotStr", ",", "DotLoc", ",", "isPPC64", "(", ")", ")", ")", ";", "}", "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": ["PowerPC", "PPC", "0", "PPC", "PPC", "PPC", "PPC", "PPC", "PPC", "PPC", "PPC"], "File": "PPCAsmParser2", "Func": "ParseInstruction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 854, "Length": 323, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsMCCodeEmitter", "::", "getJumpTargetOpValue", "(", "const", "MCInst", "&", "MI", ",", "unsigned", "OpNo", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "const", "MCOperand", "&", "MO", "=", "MI", ".", "getOperand", "(", "OpNo", ")", ";", "if", "(", "MO", ".", "isImm", "(", ")", ")", "return", "MO", ".", "getImm", "(", ")", ">>", "2", ";", "assert", "(", "MO", ".", "isExpr", "(", ")", "&&", "\"getJumpTargetOpValue expects only expressions or an immediate\"", ")", ";", "const", "MCExpr", "*", "Expr", "=", "MO", ".", "getExpr", "(", ")", ";", "Fixups", ".", "push_back", "(", "MCFixup", "::", "Create", "(", "0", ",", "Expr", ",", "MCFixupKind", "(", "Mips", "::", "fixup_Mips_26", ")", ")", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["getJumpTargetOpValue", "-", "Return", "binary", "encoding", "of", "the", "jump", "target", "operand", "."], "TS_V_token": ["Mips", "Mips", "2", "\"getJumpTargetOpValue expects only expressions or an immediate\"", "0", "Mips::fixup_Mips_26", "0"], "File": "MipsMCCodeEmitter2", "Func": "getJumpTargetOpValue", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 855, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "mips16e_save_restore_reg", "(", "bool", "restore_p", ",", "bool", "reg_parm_p", ",", "HOST_WIDE_INT", "offset", ",", "unsigned", "int", "regno", ")", "{", "rtx", "reg", ",", "mem", ";", "mem", "=", "gen_frame_mem", "(", "SImode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ";", "reg", "=", "gen_rtx_REG", "(", "SImode", ",", "regno", ")", ";", "if", "(", "restore_p", ")", "{", "mips_add_cfa_restore", "(", "reg", ")", ";", "return", "gen_rtx_SET", "(", "VOIDmode", ",", "reg", ",", "mem", ")", ";", "}", "if", "(", "reg_parm_p", ")", "return", "gen_rtx_SET", "(", "VOIDmode", ",", "mem", ",", "reg", ")", ";", "return", "mips_frame_set", "(", "mem", ",", "reg", ")", ";", "}", ""], "natrual_language": ["Return", "a", "move", "between", "register", "REGNO", "and", "memory", "location", "SP", "+", "OFFSET", ".", "REG_PARM_P", "is", "true", "if", "SP", "+", "OFFSET", "belongs", "to", "REG_PARM_STACK_SPACE", ".", "Make", "the", "move", "a", "load", "if", "RESTORE_P", ",", "otherwise", "make", "it", "a", "store", "."], "TS_V_token": ["mips"], "File": "mips4", "Func": "mips16e_save_restore_reg", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 856, "Length": 92, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "LC2200PassConfig", "::", "addGlobalInstructionSelect", "(", ")", "{", "addPass", "(", "new", "InstructionSelect", "(", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["This", "method", "should", "install", "a", "(", "global", ")", "instruction", "selector", "pass", ",", "which", "converts", "possibly", "generic", "instructions", "to", "fully", "target-specific", "instructions", ",", "thereby", "constraining", "all", "generic", "virtual", "registers", "to", "register", "classes", "."], "TS_V_token": ["LC2200", "LC2200"], "File": "LC2200TargetMachine", "Func": "addGlobalInstructionSelect", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 857, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_hard_regno_mode_ok_uncached", "(", "unsigned", "int", "regno", ",", "machine_mode", "mode", ")", "{", "unsigned", "int", "size", ";", "enum", "mode_class", "mclass", ";", "if", "(", "mode", "==", "CCV2mode", ")", "return", "(", "ISA_HAS_8CC", "&&", "ST_REG_P", "(", "regno", ")", "&&", "(", "regno", "-", "ST_REG_FIRST", ")", "%", "2", "==", "0", ")", ";", "if", "(", "mode", "==", "CCV4mode", ")", "return", "(", "ISA_HAS_8CC", "&&", "ST_REG_P", "(", "regno", ")", "&&", "(", "regno", "-", "ST_REG_FIRST", ")", "%", "4", "==", "0", ")", ";", "if", "(", "mode", "==", "CCmode", ")", "return", "ISA_HAS_8CC", "?", "ST_REG_P", "(", "regno", ")", ":", "regno", "==", "FPSW_REGNUM", ";", "size", "=", "GET_MODE_SIZE", "(", "mode", ")", ";", "mclass", "=", "GET_MODE_CLASS", "(", "mode", ")", ";", "if", "(", "GP_REG_P", "(", "regno", ")", "&&", "mode", "!=", "CCFmode", "&&", "!", "MSA_SUPPORTED_MODE_P", "(", "mode", ")", ")", "return", "(", "(", "regno", "-", "GP_REG_FIRST", ")", "&", "1", ")", "==", "0", "||", "size", "<=", "UNITS_PER_WORD", ";", "if", "(", "FP_REG_P", "(", "regno", ")", "&&", "MSA_SUPPORTED_MODE_P", "(", "mode", ")", ")", "return", "true", ";", "if", "(", "FP_REG_P", "(", "regno", ")", "&&", "(", "(", "(", "regno", "-", "FP_REG_FIRST", ")", "%", "MAX_FPRS_PER_FMT", ")", "==", "0", "||", "(", "MIN_FPRS_PER_FMT", "==", "1", "&&", "size", "<=", "UNITS_PER_FPREG", ")", ")", ")", "{", "if", "(", "TARGET_O32_FP64A_ABI", "&&", "size", "<=", "4", "&&", "(", "regno", "&", "1", ")", "!=", "0", ")", "return", "false", ";", "if", "(", "mode", "==", "CCFmode", ")", "return", "!", "(", "TARGET_FLOATXX", "&&", "(", "regno", "&", "1", ")", "!=", "0", ")", ";", "if", "(", "TARGET_LOONGSON_MMI", "&&", "(", "mode", "==", "V2SImode", "||", "mode", "==", "V4HImode", "||", "mode", "==", "V8QImode", "||", "mode", "==", "DImode", ")", ")", "return", "true", ";", "if", "(", "mclass", "==", "MODE_FLOAT", "||", "mclass", "==", "MODE_COMPLEX_FLOAT", "||", "mclass", "==", "MODE_VECTOR_FLOAT", ")", "return", "size", "<=", "UNITS_PER_FPVALUE", ";", "if", "(", "mclass", "==", "MODE_INT", ")", "return", "size", ">=", "MIN_UNITS_PER_WORD", "&&", "size", "<=", "UNITS_PER_FPREG", ";", "}", "if", "(", "ACC_REG_P", "(", "regno", ")", "&&", "!", "VECTOR_MODE_P", "(", "mode", ")", "&&", "(", "INTEGRAL_MODE_P", "(", "mode", ")", "||", "ALL_FIXED_POINT_MODE_P", "(", "mode", ")", ")", ")", "{", "if", "(", "MD_REG_P", "(", "regno", ")", ")", "{", "if", "(", "size", "<=", "UNITS_PER_WORD", "*", "2", ")", "return", "regno", "==", "(", "size", "<=", "UNITS_PER_WORD", "?", "LO_REGNUM", ":", "MD_REG_FIRST", ")", ";", "}", "else", "{", "if", "(", "size", "<=", "UNITS_PER_WORD", ")", "return", "true", ";", "if", "(", "size", "<=", "UNITS_PER_WORD", "*", "2", "&&", "(", "(", "regno", "-", "DSP_ACC_REG_FIRST", ")", "&", "1", ")", "==", "0", ")", "return", "true", ";", "}", "}", "if", "(", "ALL_COP_REG_P", "(", "regno", ")", ")", "return", "mclass", "==", "MODE_INT", "&&", "size", "<=", "UNITS_PER_WORD", ";", "if", "(", "regno", "==", "GOT_VERSION_REGNUM", ")", "return", "mode", "==", "SImode", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "register", "REGNO", "can", "store", "a", "value", "of", "mode", "MODE", ".", "The", "result", "of", "this", "function", "is", "cached", "in", "mips_hard_regno_mode_ok", "."], "TS_V_token": ["mips", "2", "0", "4", "0", "1", "0", "0", "1", "4", "1", "0", "1", "0", "2", "2", "1", "0"], "File": "mips", "Func": "mips_hard_regno_mode_ok_uncached", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 858, "Length": 407, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMPassConfig", "::", "addPreSched2", "(", ")", "{", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "if", "(", "EnableARMLoadStoreOpt", ")", "addPass", "(", "createARMLoadStoreOptimizationPass", "(", ")", ")", ";", "addPass", "(", "createExecutionDependencyFixPass", "(", "&", "ARM", "::", "DPRRegClass", ")", ")", ";", "}", "addPass", "(", "createARMExpandPseudoPass", "(", ")", ")", ";", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "if", "(", "getARMSubtarget", "(", ")", ".", "restrictIT", "(", ")", ")", "addPass", "(", "createThumb2SizeReductionPass", "(", ")", ")", ";", "if", "(", "!", "getARMSubtarget", "(", ")", ".", "isThumb1Only", "(", ")", ")", "addPass", "(", "&", "IfConverterID", ")", ";", "}", "addPass", "(", "createThumb2ITBlockPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "after", "prolog-epilog", "insertion", "and", "before", "the", "second", "instruction", "scheduling", "pass", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM::DPRRegClass", "ARM", "ARM", "ARM"], "File": "ARMTargetMachine29", "Func": "addPreSched2", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 859, "Length": 102, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "ARMSubtarget", "*", "ARMBaseTargetMachine", "::", "getSubtargetImpl", "(", "const", "Function", "&", "F", ")", "const", "{", "Attribute", "CPUAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-cpu\"", ")", ";", "Attribute", "FSAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-features\"", ")", ";", "std", "::", "string", "CPU", "=", "!", "CPUAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "CPUAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetCPU", ";", "std", "::", "string", "FS", "=", "!", "FSAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "FSAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetFS", ";", "bool", "SoftFloat", "=", "F", ".", "getFnAttribute", "(", "\"use-soft-float\"", ")", ".", "getValueAsString", "(", ")", "==", "\"true\"", ";", "if", "(", "SoftFloat", ")", "FS", "+=", "FS", ".", "empty", "(", ")", "?", "\"+soft-float\"", ":", "\",+soft-float\"", ";", "std", "::", "string", "Key", "=", "CPU", "+", "FS", ";", "if", "(", "F", ".", "optForMinSize", "(", ")", ")", "Key", "+=", "\"+minsize\"", ";", "auto", "&", "I", "=", "SubtargetMap", "[", "Key", "]", ";", "if", "(", "!", "I", ")", "{", "resetTargetOptions", "(", "F", ")", ";", "I", "=", "llvm", "::", "make_unique", "<", "ARMSubtarget", ">", "(", "TargetTriple", ",", "CPU", ",", "FS", ",", "*", "this", ",", "isLittle", ",", "F", ".", "optForMinSize", "(", ")", ")", ";", "if", "(", "!", "I", "->", "isThumb", "(", ")", "&&", "!", "I", "->", "hasARMOps", "(", ")", ")", "F", ".", "getContext", "(", ")", ".", "emitError", "(", "\"Function '\"", "+", "F", ".", "getName", "(", ")", "+", "\"' uses ARM \"", "\"instructions, but the target does not support ARM mode execution.\"", ")", ";", "}", "return", "I", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["ARM", "ARM", "ARM", "\"target-cpu\"", "\"target-features\"", "\"use-soft-float\"", "\"true\"", "\"+soft-float\"", "\",+soft-float\"", "\"+minsize\"", "ARM", "ARM", "\"Function '\"", "\"' uses ARM \"", "\"instructions, but the target does not support ARM mode execution.\""], "File": "ARMTargetMachine50", "Func": "getSubtargetImpl", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 860, "Length": 233, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCPhysReg", "*", "PPCRegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "const", "PPCSubtarget", "&", "Subtarget", "=", "MF", "->", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ";", "if", "(", "MF", "->", "getFunction", "(", ")", ".", "getCallingConv", "(", ")", "==", "CallingConv", "::", "AnyReg", ")", "{", "if", "(", "Subtarget", ".", "hasVSX", "(", ")", ")", "return", "CSR_64_AllRegs_VSX_SaveList", ";", "if", "(", "Subtarget", ".", "hasAltivec", "(", ")", ")", "return", "CSR_64_AllRegs_Altivec_SaveList", ";", "return", "CSR_64_AllRegs_SaveList", ";", "}", "if", "(", "Subtarget", ".", "isDarwinABI", "(", ")", ")", "return", "TM", ".", "isPPC64", "(", ")", "?", "(", "Subtarget", ".", "hasAltivec", "(", ")", "?", "CSR_Darwin64_Altivec_SaveList", ":", "CSR_Darwin64_SaveList", ")", ":", "(", "Subtarget", ".", "hasAltivec", "(", ")", "?", "CSR_Darwin32_Altivec_SaveList", ":", "CSR_Darwin32_SaveList", ")", ";", "if", "(", "TM", ".", "isPPC64", "(", ")", "&&", "MF", "->", "getInfo", "<", "PPCFunctionInfo", ">", "(", ")", "->", "isSplitCSR", "(", ")", ")", "return", "CSR_SRV464_TLS_PE_SaveList", ";", "bool", "SaveR2", "=", "MF", "->", "getRegInfo", "(", ")", ".", "isAllocatable", "(", "PPC", "::", "X2", ")", ";", "if", "(", "MF", "->", "getFunction", "(", ")", ".", "getCallingConv", "(", ")", "==", "CallingConv", "::", "Cold", ")", "{", "if", "(", "TM", ".", "isPPC64", "(", ")", ")", "{", "if", "(", "Subtarget", ".", "hasAltivec", "(", ")", ")", "return", "SaveR2", "?", "CSR_SVR64_ColdCC_R2_Altivec_SaveList", ":", "CSR_SVR64_ColdCC_Altivec_SaveList", ";", "return", "SaveR2", "?", "CSR_SVR64_ColdCC_R2_SaveList", ":", "CSR_SVR64_ColdCC_SaveList", ";", "}", "if", "(", "Subtarget", ".", "hasAltivec", "(", ")", ")", "return", "CSR_SVR32_ColdCC_Altivec_SaveList", ";", "else", "if", "(", "Subtarget", ".", "hasSPE", "(", ")", ")", "return", "CSR_SVR32_ColdCC_SPE_SaveList", ";", "return", "CSR_SVR32_ColdCC_SaveList", ";", "}", "if", "(", "TM", ".", "isPPC64", "(", ")", ")", "{", "if", "(", "Subtarget", ".", "hasAltivec", "(", ")", ")", "return", "SaveR2", "?", "CSR_SVR464_R2_Altivec_SaveList", ":", "CSR_SVR464_Altivec_SaveList", ";", "return", "SaveR2", "?", "CSR_SVR464_R2_SaveList", ":", "CSR_SVR464_SaveList", ";", "}", "if", "(", "Subtarget", ".", "hasAltivec", "(", ")", ")", "return", "CSR_SVR432_Altivec_SaveList", ";", "else", "if", "(", "Subtarget", ".", "hasSPE", "(", ")", ")", "return", "CSR_SVR432_SPE_SaveList", ";", "return", "CSR_SVR432_SaveList", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "PPC", "PPC", "PPC", "PPC::X2", "PPC", "PPC"], "File": "PPCRegisterInfo56", "Func": "getCalleeSavedRegs", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 861, "Length": 285, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "bounds_check", "(", "rtx", "operand", ",", "HOST_WIDE_INT", "low", ",", "HOST_WIDE_INT", "high", ",", "const_tree", "exp", ",", "const", "char", "*", "desc", ")", "{", "HOST_WIDE_INT", "lane", ";", "gcc_assert", "(", "CONST_INT_P", "(", "operand", ")", ")", ";", "lane", "=", "INTVAL", "(", "operand", ")", ";", "if", "(", "lane", "<", "low", "||", "lane", ">=", "high", ")", "{", "if", "(", "exp", ")", "error_at", "(", "EXPR_LOCATION", "(", "exp", ")", ",", "\"%s %wd out of range %wd - %wd\"", ",", "desc", ",", "lane", ",", "low", ",", "high", "-", "1", ")", ";", "else", "error", "(", "\"%s %wd out of range %wd - %wd\"", ",", "desc", ",", "lane", ",", "low", ",", "high", "-", "1", ")", ";", "}", "}", ""], "natrual_language": ["Ensure", "OPERAND", "lies", "between", "LOW", "(", "inclusive", ")", "and", "HIGH", "(", "exclusive", ")", ".", "Raise", "ERR", "if", "it", "does", "n't", ".", "FIXME", ":", "NEON", "bounds", "checks", "occur", "late", "in", "compilation", ",", "so", "reported", "source", "locations", "are", "bogus", "."], "TS_V_token": ["arm", "\"%s %wd out of range %wd - %wd\"", "1", "\"%s %wd out of range %wd - %wd\"", "1"], "File": "arm", "Func": "bounds_check", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 862, "Length": 93, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "expand_fusion_p9_load", "(", "rtx", "*", "operands", ")", "{", "rtx", "tmp_reg", "=", "operands", "[", "0", "]", ";", "rtx", "addis_value", "=", "operands", "[", "1", "]", ";", "rtx", "target", "=", "operands", "[", "2", "]", ";", "rtx", "orig_mem", "=", "operands", "[", "3", "]", ";", "rtx", "new_addr", ",", "new_mem", ",", "orig_addr", ",", "offset", ",", "set", ",", "clobber", ",", "insn", ";", "enum", "rtx_code", "plus_or_lo_sum", ";", "machine_mode", "target_mode", "=", "GET_MODE", "(", "target", ")", ";", "machine_mode", "extend_mode", "=", "target_mode", ";", "machine_mode", "ptr_mode", "=", "Pmode", ";", "enum", "rtx_code", "extend", "=", "UNKNOWN", ";", "if", "(", "GET_CODE", "(", "orig_mem", ")", "==", "FLOAT_EXTEND", "||", "GET_CODE", "(", "orig_mem", ")", "==", "ZERO_EXTEND", ")", "{", "extend", "=", "GET_CODE", "(", "orig_mem", ")", ";", "orig_mem", "=", "XEXP", "(", "orig_mem", ",", "0", ")", ";", "target_mode", "=", "GET_MODE", "(", "orig_mem", ")", ";", "}", "gcc_assert", "(", "MEM_P", "(", "orig_mem", ")", ")", ";", "orig_addr", "=", "XEXP", "(", "orig_mem", ",", "0", ")", ";", "plus_or_lo_sum", "=", "GET_CODE", "(", "orig_addr", ")", ";", "gcc_assert", "(", "plus_or_lo_sum", "==", "PLUS", "||", "plus_or_lo_sum", "==", "LO_SUM", ")", ";", "offset", "=", "XEXP", "(", "orig_addr", ",", "1", ")", ";", "new_addr", "=", "gen_rtx_fmt_ee", "(", "plus_or_lo_sum", ",", "ptr_mode", ",", "addis_value", ",", "offset", ")", ";", "new_mem", "=", "replace_equiv_address_nv", "(", "orig_mem", ",", "new_addr", ",", "false", ")", ";", "if", "(", "extend", "!=", "UNKNOWN", ")", "new_mem", "=", "gen_rtx_fmt_e", "(", "extend", ",", "extend_mode", ",", "new_mem", ")", ";", "new_mem", "=", "gen_rtx_UNSPEC", "(", "extend_mode", ",", "gen_rtvec", "(", "1", ",", "new_mem", ")", ",", "UNSPEC_FUSION_P9", ")", ";", "set", "=", "gen_rtx_SET", "(", "target", ",", "new_mem", ")", ";", "clobber", "=", "gen_rtx_CLOBBER", "(", "VOIDmode", ",", "tmp_reg", ")", ";", "insn", "=", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "gen_rtvec", "(", "2", ",", "set", ",", "clobber", ")", ")", ";", "emit_insn", "(", "insn", ")", ";", "return", ";", "}", ""], "natrual_language": ["During", "the", "peephole2", "pass", ",", "adjust", "and", "expand", "the", "insns", "for", "an", "extended", "fusion", "load", "sequence", ".", "The", "operands", "are", ":", "operands", "[", "0", "]", "register", "set", "with", "addis", "operands", "[", "1", "]", "value", "set", "via", "addis", "operands", "[", "2", "]", "target", "register", "being", "loaded", "operands", "[", "3", "]", "D-form", "memory", "reference", "using", "operands", "[", "0", "]", ".", "This", "is", "similar", "to", "the", "fusion", "introduced", "with", "power8", ",", "except", "it", "scales", "to", "both", "loads/stores", "and", "does", "not", "require", "the", "result", "register", "to", "be", "the", "same", "as", "the", "base", "register", ".", "At", "the", "moment", ",", "we", "only", "do", "this", "if", "register", "set", "with", "addis", "is", "dead", "."], "TS_V_token": ["rs6000", "0", "1", "2", "3", "0", "0", "1", "1", "2"], "File": "rs60005", "Func": "expand_fusion_p9_load", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 863, "Length": 267, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SUnit", "*", "SystemZPostRASchedStrategy", "::", "pickNode", "(", "bool", "&", "IsTopNode", ")", "{", "IsTopNode", "=", "true", ";", "if", "(", "Available", ".", "empty", "(", ")", ")", "return", "nullptr", ";", "if", "(", "Available", ".", "size", "(", ")", "==", "1", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"** Only one: \"", ";", "HazardRec", "->", "dumpSU", "(", "*", "Available", ".", "begin", "(", ")", ",", "dbgs", "(", ")", ")", ";", "dbgs", "(", ")", "<<", "\"\\n\"", ";", ")", ";", "return", "*", "Available", ".", "begin", "(", ")", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"** Available: \"", ";", "Available", ".", "dump", "(", "*", "HazardRec", ")", ";", ")", ";", "Candidate", "Best", ";", "for", "(", "auto", "*", "SU", ":", "Available", ")", "{", "Candidate", "c", "(", "SU", ",", "*", "HazardRec", ")", ";", "if", "(", "Best", ".", "SU", "==", "nullptr", "||", "c", "<", "Best", ")", "{", "Best", "=", "c", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"** Best so far: \"", ";", ")", ";", "}", "else", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"** Tried : \"", ";", ")", ";", "LLVM_DEBUG", "(", "HazardRec", "->", "dumpSU", "(", "c", ".", "SU", ",", "dbgs", "(", ")", ")", ";", "c", ".", "dumpCosts", "(", ")", ";", "dbgs", "(", ")", "<<", "\" Height:\"", "<<", "c", ".", "SU", "->", "getHeight", "(", ")", ";", "dbgs", "(", ")", "<<", "\"\\n\"", ";", ")", ";", "if", "(", "!", "SU", "->", "isScheduleHigh", "&&", "Best", ".", "noCost", "(", ")", ")", "break", ";", "}", "assert", "(", "Best", ".", "SU", "!=", "nullptr", ")", ";", "return", "Best", ".", "SU", ";", "}", ""], "natrual_language": ["Pick", "the", "next", "node", "to", "schedule", ",", "or", "return", "NULL", "."], "TS_V_token": ["SystemZ", "SystemZ", "1", "\"** Only one: \"", "\"\\n\"", "\"** Available: \"", "\"** Best so far: \"", "\"** Tried : \"", "\" Height:\"", "\"\\n\""], "File": "SystemZMachineScheduler", "Func": "pickNode", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 864, "Length": 230, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_legitimate_combined_insn", "(", "rtx_insn", "*", "insn", ")", "{", "int", "icode", "=", "INSN_CODE", "(", "insn", ")", ";", "if", "(", "icode", "!=", "CODE_FOR_nothing", "&&", "(", "icode", "==", "CODE_FOR_bdz_si", "||", "icode", "==", "CODE_FOR_bdz_di", "||", "icode", "==", "CODE_FOR_bdnz_si", "||", "icode", "==", "CODE_FOR_bdnz_di", "||", "icode", "==", "CODE_FOR_bdztf_si", "||", "icode", "==", "CODE_FOR_bdztf_di", "||", "icode", "==", "CODE_FOR_bdnztf_si", "||", "icode", "==", "CODE_FOR_bdnztf_di", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Implement", "the", "TARGET_LEGITIMATE_COMBINED_INSN", "hook", "."], "TS_V_token": ["rs6000"], "File": "rs6000", "Func": "rs6000_legitimate_combined_insn", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 865, "Length": 64, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "AArch64TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "const", "TargetRegisterInfo", "*", "TRI", ",", "StringRef", "Constraint", ",", "MVT", "VT", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'r'", ":", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "AArch64", "::", "GPR64commonRegClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "AArch64", "::", "GPR32commonRegClass", ")", ";", "case", "'w'", ":", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "AArch64", "::", "FPR32RegClass", ")", ";", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "AArch64", "::", "FPR64RegClass", ")", ";", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "128", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "AArch64", "::", "FPR128RegClass", ")", ";", "break", ";", "case", "'x'", ":", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "128", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "AArch64", "::", "FPR128_loRegClass", ")", ";", "break", ";", "}", "}", "if", "(", "StringRef", "(", "\"{cc}\"", ")", ".", "equals_lower", "(", "Constraint", ")", ")", "return", "std", "::", "make_pair", "(", "unsigned", "(", "AArch64", "::", "NZCV", ")", ",", "&", "AArch64", "::", "CCRRegClass", ")", ";", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "Res", ";", "Res", "=", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "TRI", ",", "Constraint", ",", "VT", ")", ";", "if", "(", "!", "Res", ".", "second", ")", "{", "unsigned", "Size", "=", "Constraint", ".", "size", "(", ")", ";", "if", "(", "(", "Size", "==", "4", "||", "Size", "==", "5", ")", "&&", "Constraint", "[", "0", "]", "==", "'{'", "&&", "tolower", "(", "Constraint", "[", "1", "]", ")", "==", "'v'", "&&", "Constraint", "[", "Size", "-", "1", "]", "==", "'}'", ")", "{", "int", "RegNo", ";", "bool", "Failed", "=", "Constraint", ".", "slice", "(", "2", ",", "Size", "-", "1", ")", ".", "getAsInteger", "(", "10", ",", "RegNo", ")", ";", "if", "(", "!", "Failed", "&&", "RegNo", ">=", "0", "&&", "RegNo", "<=", "31", ")", "{", "Res", ".", "first", "=", "AArch64", "::", "FPR128RegClass", ".", "getRegister", "(", "RegNo", ")", ";", "Res", ".", "second", "=", "&", "AArch64", "::", "FPR128RegClass", ";", "}", "}", "}", "return", "Res", ";", "}", ""], "natrual_language": ["Given", "a", "physical", "register", "constraint", "(", "e.g", "."], "TS_V_token": ["AArch64", "AArch64", "1", "0", "64", "0U", "AArch64::GPR64commonRegClass", "0U", "AArch64::GPR32commonRegClass", "MVT::f32", "0U", "AArch64::FPR32RegClass", "64", "0U", "AArch64::FPR64RegClass", "128", "0U", "AArch64::FPR128RegClass", "128", "0U", "AArch64::FPR128_loRegClass", "\"{cc}\"", "AArch64::NZCV", "AArch64::CCRRegClass", "4", "5", "0", "1", "1", "2", "1", "10", "0", "31", "AArch64::FPR128RegClass", "AArch64::FPR128RegClass"], "File": "AArch64ISelLowering (2)1", "Func": "getRegForInlineAsmConstraint", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 866, "Length": 365, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZMCAsmBackend", "::", "applyFixup", "(", "const", "MCFixup", "&", "Fixup", ",", "MutableArrayRef", "<", "char", ">", "Data", ",", "uint64_t", "Value", ",", "bool", "IsPCRel", ",", "MCContext", "&", "Ctx", ")", "const", "{", "MCFixupKind", "Kind", "=", "Fixup", ".", "getKind", "(", ")", ";", "unsigned", "Offset", "=", "Fixup", ".", "getOffset", "(", ")", ";", "unsigned", "BitSize", "=", "getFixupKindInfo", "(", "Kind", ")", ".", "TargetSize", ";", "unsigned", "Size", "=", "(", "BitSize", "+", "7", ")", "/", "8", ";", "assert", "(", "Offset", "+", "Size", "<=", "Data", ".", "size", "(", ")", "&&", "\"Invalid fixup offset!\"", ")", ";", "Value", "=", "extractBitsForFixup", "(", "Kind", ",", "Value", ")", ";", "if", "(", "BitSize", "<", "64", ")", "Value", "&=", "(", "(", "uint64_t", ")", "1", "<<", "BitSize", ")", "-", "1", ";", "unsigned", "ShiftValue", "=", "(", "Size", "*", "8", ")", "-", "8", ";", "for", "(", "unsigned", "I", "=", "0", ";", "I", "!=", "Size", ";", "++", "I", ")", "{", "Data", "[", "Offset", "+", "I", "]", "|=", "uint8_t", "(", "Value", ">>", "ShiftValue", ")", ";", "ShiftValue", "-=", "8", ";", "}", "}", ""], "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": ["SystemZ", "SystemZ", "7", "8", "\"Invalid fixup offset!\"", "64", "1", "1", "8", "8", "0", "8"], "File": "SystemZMCAsmBackend2", "Func": "applyFixup", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 867, "Length": 156, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "const", "PPCSubtarget", "&", "STI", "=", "MF", ".", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ";", "if", "(", "!", "STI", ".", "useCRBits", "(", ")", ")", "return", "false", ";", "initialize", "(", "MF", ")", ";", "collectCRLogicals", "(", ")", ";", "return", "simplifyCode", "(", ")", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["PowerPC", "PPC", "PPC"], "File": "PPCReduceCRLogicals", "Func": "runOnMachineFunction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 868, "Length": 64, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "PPCInstrInfo", "::", "getOperandLatency", "(", "const", "InstrItineraryData", "*", "ItinData", ",", "const", "MachineInstr", "*", "DefMI", ",", "unsigned", "DefIdx", ",", "const", "MachineInstr", "*", "UseMI", ",", "unsigned", "UseIdx", ")", "const", "{", "int", "Latency", "=", "PPCGenInstrInfo", "::", "getOperandLatency", "(", "ItinData", ",", "DefMI", ",", "DefIdx", ",", "UseMI", ",", "UseIdx", ")", ";", "const", "MachineOperand", "&", "DefMO", "=", "DefMI", "->", "getOperand", "(", "DefIdx", ")", ";", "unsigned", "Reg", "=", "DefMO", ".", "getReg", "(", ")", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "&", "getRegisterInfo", "(", ")", ";", "bool", "IsRegCR", ";", "if", "(", "TRI", "->", "isVirtualRegister", "(", "Reg", ")", ")", "{", "const", "MachineRegisterInfo", "*", "MRI", "=", "&", "DefMI", "->", "getParent", "(", ")", "->", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "IsRegCR", "=", "MRI", "->", "getRegClass", "(", "Reg", ")", "->", "hasSuperClassEq", "(", "&", "PPC", "::", "CRRCRegClass", ")", "||", "MRI", "->", "getRegClass", "(", "Reg", ")", "->", "hasSuperClassEq", "(", "&", "PPC", "::", "CRBITRCRegClass", ")", ";", "}", "else", "{", "IsRegCR", "=", "PPC", "::", "CRRCRegClass", ".", "contains", "(", "Reg", ")", "||", "PPC", "::", "CRBITRCRegClass", ".", "contains", "(", "Reg", ")", ";", "}", "if", "(", "UseMI", "->", "isBranch", "(", ")", "&&", "IsRegCR", ")", "{", "if", "(", "Latency", "<", "0", ")", "Latency", "=", "getInstrLatency", "(", "ItinData", ",", "DefMI", ")", ";", "unsigned", "Directive", "=", "TM", ".", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ".", "getDarwinDirective", "(", ")", ";", "switch", "(", "Directive", ")", "{", "default", ":", "break", ";", "case", "PPC", "::", "DIR_7400", ":", "case", "PPC", "::", "DIR_750", ":", "case", "PPC", "::", "DIR_970", ":", "case", "PPC", "::", "DIR_E5500", ":", "case", "PPC", "::", "DIR_PWR4", ":", "case", "PPC", "::", "DIR_PWR5", ":", "case", "PPC", "::", "DIR_PWR5X", ":", "case", "PPC", "::", "DIR_PWR6", ":", "case", "PPC", "::", "DIR_PWR6X", ":", "case", "PPC", "::", "DIR_PWR7", ":", "Latency", "+=", "2", ";", "break", ";", "}", "}", "return", "Latency", ";", "}", ""], "natrual_language": ["Compute", "and", "return", "the", "use", "operand", "latency", "of", "a", "given", "pair", "of", "def", "and", "use", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC::CRRCRegClass", "PPC::CRBITRCRegClass", "PPC::CRRCRegClass", "PPC::CRBITRCRegClass", "0", "PPC", "PPC::DIR_7400", "PPC::DIR_750", "PPC::DIR_970", "PPC::DIR_E5500", "PPC::DIR_PWR4", "PPC::DIR_PWR5", "PPC::DIR_PWR5X", "PPC::DIR_PWR6", "PPC::DIR_PWR6X", "PPC::DIR_PWR7", "2"], "File": "PPCInstrInfo (2)", "Func": "getOperandLatency", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 869, "Length": 279, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_autovectorize_vector_sizes", "(", "vector_sizes", "*", "sizes", ")", "{", "if", "(", "ISA_HAS_MSA", ")", "sizes", "->", "safe_push", "(", "16", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES", "."], "TS_V_token": ["mips", "16"], "File": "mips7", "Func": "mips_autovectorize_vector_sizes", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 870, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCPhysReg", "*", "ARMBaseRegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "const", "ARMSubtarget", "&", "STI", "=", "MF", "->", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "const", "MCPhysReg", "*", "RegList", "=", "STI", ".", "isTargetDarwin", "(", ")", "?", "CSR_iOS_SaveList", ":", "CSR_AAPCS_SaveList", ";", "const", "Function", "*", "F", "=", "MF", "->", "getFunction", "(", ")", ";", "if", "(", "F", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "GHC", ")", "{", "return", "CSR_NoRegs_SaveList", ";", "}", "else", "if", "(", "F", "->", "hasFnAttribute", "(", "\"interrupt\"", ")", ")", "{", "if", "(", "STI", ".", "isMClass", "(", ")", ")", "{", "return", "CSR_AAPCS_SaveList", ";", "}", "else", "if", "(", "F", "->", "getFnAttribute", "(", "\"interrupt\"", ")", ".", "getValueAsString", "(", ")", "==", "\"FIQ\"", ")", "{", "return", "CSR_FIQ_SaveList", ";", "}", "else", "{", "return", "CSR_GenericInt_SaveList", ";", "}", "}", "return", "RegList", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "\"interrupt\"", "\"interrupt\"", "\"FIQ\""], "File": "ARMBaseRegisterInfo5", "Func": "getCalleeSavedRegs", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 871, "Length": 127, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "StringRef", "(", "\"LEG DAG->DAG Pattern Instruction Selection\"", ")", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["LEG", "\"LEG DAG->DAG Pattern Instruction Selection\""], "File": "LEGISelDAGToDAG", "Func": "getPassName", "Target": "LEG", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 872, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86CallLowering", "::", "splitToValueTypes", "(", "const", "ArgInfo", "&", "OrigArg", ",", "SmallVectorImpl", "<", "ArgInfo", ">", "&", "SplitArgs", ",", "const", "DataLayout", "&", "DL", ",", "MachineRegisterInfo", "&", "MRI", ",", "SplitArgTy", "PerformArgSplit", ")", "const", "{", "const", "X86TargetLowering", "&", "TLI", "=", "*", "getTLI", "<", "X86TargetLowering", ">", "(", ")", ";", "LLVMContext", "&", "Context", "=", "OrigArg", ".", "Ty", "->", "getContext", "(", ")", ";", "SmallVector", "<", "EVT", ",", "4", ">", "SplitVTs", ";", "SmallVector", "<", "uint64_t", ",", "4", ">", "Offsets", ";", "ComputeValueVTs", "(", "TLI", ",", "DL", ",", "OrigArg", ".", "Ty", ",", "SplitVTs", ",", "&", "Offsets", ",", "0", ")", ";", "assert", "(", "OrigArg", ".", "Regs", ".", "size", "(", ")", "==", "1", "&&", "\"Can't handle multple regs yet\"", ")", ";", "if", "(", "OrigArg", ".", "Ty", "->", "isVoidTy", "(", ")", ")", "return", "true", ";", "EVT", "VT", "=", "SplitVTs", "[", "0", "]", ";", "unsigned", "NumParts", "=", "TLI", ".", "getNumRegisters", "(", "Context", ",", "VT", ")", ";", "if", "(", "NumParts", "==", "1", ")", "{", "SplitArgs", ".", "emplace_back", "(", "OrigArg", ".", "Regs", "[", "0", "]", ",", "VT", ".", "getTypeForEVT", "(", "Context", ")", ",", "OrigArg", ".", "Flags", ",", "OrigArg", ".", "IsFixed", ")", ";", "return", "true", ";", "}", "SmallVector", "<", "Register", ",", "8", ">", "SplitRegs", ";", "EVT", "PartVT", "=", "TLI", ".", "getRegisterType", "(", "Context", ",", "VT", ")", ";", "Type", "*", "PartTy", "=", "PartVT", ".", "getTypeForEVT", "(", "Context", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "NumParts", ";", "++", "i", ")", "{", "ArgInfo", "Info", "=", "ArgInfo", "{", "MRI", ".", "createGenericVirtualRegister", "(", "getLLTForType", "(", "*", "PartTy", ",", "DL", ")", ")", ",", "PartTy", ",", "OrigArg", ".", "Flags", "}", ";", "SplitArgs", ".", "push_back", "(", "Info", ")", ";", "SplitRegs", ".", "push_back", "(", "Info", ".", "Regs", "[", "0", "]", ")", ";", "}", "PerformArgSplit", "(", "SplitRegs", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Break", "OrigArgInfo", "into", "one", "or", "more", "pieces", "the", "calling", "convention", "can", "process", ",", "returned", "in", "SplitArgs", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "4", "4", "0", "1", "\"Can't handle multple regs yet\"", "0", "1", "0", "8", "0", "0"], "File": "X86CallLowering1", "Func": "splitToValueTypes", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 873, "Length": 276, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "moxie_legitimate_address_p", "(", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "rtx", "x", ",", "bool", "strict_p", ",", "addr_space_t", "as", ")", "{", "gcc_assert", "(", "ADDR_SPACE_GENERIC_P", "(", "as", ")", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "PLUS", "&&", "REG_P", "(", "XEXP", "(", "x", ",", "0", ")", ")", "&&", "moxie_reg_ok_for_base_p", "(", "XEXP", "(", "x", ",", "0", ")", ",", "strict_p", ")", "&&", "CONST_INT_P", "(", "XEXP", "(", "x", ",", "1", ")", ")", "&&", "IN_RANGE", "(", "INTVAL", "(", "XEXP", "(", "x", ",", "1", ")", ")", ",", "-", "32768", ",", "32767", ")", ")", "return", "true", ";", "if", "(", "REG_P", "(", "x", ")", "&&", "moxie_reg_ok_for_base_p", "(", "x", ",", "strict_p", ")", ")", "return", "true", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "SYMBOL_REF", "||", "GET_CODE", "(", "x", ")", "==", "LABEL_REF", "||", "GET_CODE", "(", "x", ")", "==", "CONST", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Worker", "function", "for", "TARGET_LEGITIMATE_ADDRESS_P", "."], "TS_V_token": ["moxie", "0", "0", "1", "1", "32768", "32767"], "File": "moxie", "Func": "moxie_legitimate_address_p", "Target": "moxie", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 874, "Length": 135, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_evpc_ext", "(", "struct", "expand_vec_perm_d", "*", "d", ")", "{", "unsigned", "int", "i", ",", "nelt", "=", "d", "->", "nelt", ";", "rtx", "(", "*", "gen", ")", "(", "rtx", ",", "rtx", ",", "rtx", ",", "rtx", ")", ";", "rtx", "offset", ";", "unsigned", "int", "location", "=", "d", "->", "perm", "[", "0", "]", ";", "for", "(", "i", "=", "1", ";", "i", "<", "nelt", ";", "i", "++", ")", "{", "unsigned", "int", "required", "=", "location", "+", "i", ";", "if", "(", "d", "->", "one_vector_p", ")", "{", "required", "&=", "(", "nelt", "-", "1", ")", ";", "}", "if", "(", "d", "->", "perm", "[", "i", "]", "!=", "required", ")", "return", "false", ";", "}", "switch", "(", "d", "->", "vmode", ")", "{", "case", "V16QImode", ":", "gen", "=", "gen_aarch64_extv16qi", ";", "break", ";", "case", "V8QImode", ":", "gen", "=", "gen_aarch64_extv8qi", ";", "break", ";", "case", "V4HImode", ":", "gen", "=", "gen_aarch64_extv4hi", ";", "break", ";", "case", "V8HImode", ":", "gen", "=", "gen_aarch64_extv8hi", ";", "break", ";", "case", "V2SImode", ":", "gen", "=", "gen_aarch64_extv2si", ";", "break", ";", "case", "V4SImode", ":", "gen", "=", "gen_aarch64_extv4si", ";", "break", ";", "case", "V2SFmode", ":", "gen", "=", "gen_aarch64_extv2sf", ";", "break", ";", "case", "V4SFmode", ":", "gen", "=", "gen_aarch64_extv4sf", ";", "break", ";", "case", "V2DImode", ":", "gen", "=", "gen_aarch64_extv2di", ";", "break", ";", "case", "V2DFmode", ":", "gen", "=", "gen_aarch64_extv2df", ";", "break", ";", "default", ":", "return", "false", ";", "}", "if", "(", "d", "->", "testing_p", ")", "return", "true", ";", "if", "(", "BYTES_BIG_ENDIAN", "&&", "(", "location", "!=", "0", ")", ")", "{", "std", "::", "swap", "(", "d", "->", "op0", ",", "d", "->", "op1", ")", ";", "location", "=", "nelt", "-", "location", ";", "}", "offset", "=", "GEN_INT", "(", "location", ")", ";", "emit_insn", "(", "gen", "(", "d", "->", "target", ",", "d", "->", "op0", ",", "d", "->", "op1", ",", "offset", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Recognize", "patterns", "for", "the", "EXT", "insn", "."], "TS_V_token": ["aarch64", "0", "1", "1", "0"], "File": "aarch642", "Func": "aarch64_evpc_ext", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 875, "Length": 276, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "int", "rs6000_special_round_type_align", "(", "tree", "type", ",", "int", "computed", ",", "int", "specified", ")", "{", "tree", "field", "=", "TYPE_FIELDS", "(", "type", ")", ";", "while", "(", "field", "!=", "NULL", "&&", "TREE_CODE", "(", "field", ")", "!=", "FIELD_DECL", ")", "field", "=", "TREE_CHAIN", "(", "field", ")", ";", "if", "(", "field", "==", "NULL", "||", "field", "==", "type", "||", "DECL_MODE", "(", "field", ")", "!=", "DFmode", ")", "return", "MAX", "(", "computed", ",", "specified", ")", ";", "return", "MAX", "(", "MAX", "(", "computed", ",", "specified", ")", ",", "64", ")", ";", "}", ""], "natrual_language": ["Darwin", ",", "AIX", "increases", "natural", "record", "alignment", "to", "doubleword", "if", "the", "first", "field", "is", "an", "FP", "double", "while", "the", "FP", "fields", "remain", "word", "aligned", "."], "TS_V_token": ["rs6000", "64"], "File": "rs60003", "Func": "rs6000_special_round_type_align", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 876, "Length": 81, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "{", "return", "\"OpenRISC Assembly Printer\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["OpenRISC", "\"OpenRISC Assembly Printer\""], "File": "OpenRISCAsmPrinter", "Func": "getPassName", "Target": "OpenRISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 877, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Thumb1RegisterInfo", "::", "resolveFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "BaseReg", ",", "int64_t", "Offset", ")", "const", "{", "MachineInstr", "&", "MI", "=", "*", "I", ";", "int", "Off", "=", "Offset", ";", "unsigned", "i", "=", "0", ";", "while", "(", "!", "MI", ".", "getOperand", "(", "i", ")", ".", "isFI", "(", ")", ")", "{", "++", "i", ";", "assert", "(", "i", "<", "MI", ".", "getNumOperands", "(", ")", "&&", "\"Instr doesn't have FrameIndex operand!\"", ")", ";", "}", "bool", "Done", "=", "rewriteFrameIndex", "(", "MI", ",", "i", ",", "BaseReg", ",", "Off", ",", "TII", ")", ";", "assert", "(", "Done", "&&", "\"Unable to resolve frame index!\"", ")", ";", "(", "void", ")", "Done", ";", "}", ""], "natrual_language": ["Resolve", "a", "frame", "index", "operand", "of", "an", "instruction", "to", "reference", "the", "indicated", "base", "register", "plus", "offset", "instead", "."], "TS_V_token": ["ARM", "0", "\"Instr doesn't have FrameIndex operand!\"", "\"Unable to resolve frame index!\""], "File": "Thumb1RegisterInfo", "Func": "resolveFrameIndex", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 878, "Length": 96, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsLongBranch", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "F", ")", "{", "const", "MipsSubtarget", "&", "STI", "=", "static_cast", "<", "const", "MipsSubtarget", "&", ">", "(", "F", ".", "getSubtarget", "(", ")", ")", ";", "const", "MipsInstrInfo", "*", "TII", "=", "static_cast", "<", "const", "MipsInstrInfo", "*", ">", "(", "STI", ".", "getInstrInfo", "(", ")", ")", ";", "LongBranchSeqSize", "=", "!", "IsPIC", "?", "2", ":", "(", "ABI", ".", "IsN64", "(", ")", "?", "10", ":", "(", "!", "STI", ".", "isTargetNaCl", "(", ")", "?", "9", ":", "10", ")", ")", ";", "if", "(", "STI", ".", "inMips16Mode", "(", ")", "||", "!", "STI", ".", "enableLongBranchPass", "(", ")", ")", "return", "false", ";", "if", "(", "IsPIC", "&&", "static_cast", "<", "const", "MipsTargetMachine", "&", ">", "(", "TM", ")", ".", "getABI", "(", ")", ".", "IsO32", "(", ")", "&&", "F", ".", "getInfo", "<", "MipsFunctionInfo", ">", "(", ")", "->", "globalBaseRegSet", "(", ")", ")", "emitGPDisp", "(", "F", ",", "TII", ")", ";", "if", "(", "SkipLongBranch", ")", "return", "true", ";", "MF", "=", "&", "F", ";", "initMBBInfo", "(", ")", ";", "SmallVectorImpl", "<", "MBBInfo", ">", "::", "iterator", "I", ",", "E", "=", "MBBInfos", ".", "end", "(", ")", ";", "bool", "EverMadeChange", "=", "false", ",", "MadeChange", "=", "true", ";", "while", "(", "MadeChange", ")", "{", "MadeChange", "=", "false", ";", "for", "(", "I", "=", "MBBInfos", ".", "begin", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "if", "(", "!", "I", "->", "Br", "||", "I", "->", "HasLongBranch", ")", "continue", ";", "int", "ShVal", "=", "STI", ".", "inMicroMipsMode", "(", ")", "?", "2", ":", "4", ";", "int64_t", "Offset", "=", "computeOffset", "(", "I", "->", "Br", ")", "/", "ShVal", ";", "if", "(", "STI", ".", "isTargetNaCl", "(", ")", ")", "{", "Offset", "*=", "2", ";", "}", "if", "(", "!", "ForceLongBranch", "&&", "isInt", "<", "16", ">", "(", "Offset", ")", ")", "continue", ";", "I", "->", "HasLongBranch", "=", "true", ";", "I", "->", "Size", "+=", "LongBranchSeqSize", "*", "4", ";", "++", "LongBranches", ";", "EverMadeChange", "=", "MadeChange", "=", "true", ";", "}", "}", "if", "(", "!", "EverMadeChange", ")", "return", "true", ";", "if", "(", "IsPIC", ")", "{", "uint64_t", "Address", "=", "0", ";", "for", "(", "I", "=", "MBBInfos", ".", "begin", "(", ")", ";", "I", "!=", "E", ";", "Address", "+=", "I", "->", "Size", ",", "++", "I", ")", "I", "->", "Address", "=", "Address", ";", "}", "for", "(", "I", "=", "MBBInfos", ".", "begin", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "if", "(", "I", "->", "HasLongBranch", ")", "expandToLongBranch", "(", "*", "I", ")", ";", "MF", "->", "RenumberBlocks", "(", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "2", "10", "9", "10", "Mips", "Mips", "Mips", "Mips", "2", "4", "2", "16", "4", "0"], "File": "MipsLongBranch10", "Func": "runOnMachineFunction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 879, "Length": 385, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "inline", "tree", "function_instance", "::", "vector_type", "(", "unsigned", "int", "i", ")", "const", "{", "return", "acle_vector_types", "[", "0", "]", "[", "type_suffix", "(", "i", ")", ".", "vector_type", "]", ";", "}", ""], "natrual_language": ["Return", "the", "vector", "type", "associated", "with", "type", "suffix", "I", "."], "TS_V_token": ["aarch64", "0"], "File": "aarch64-sve-builtins", "Func": "vector_type", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 880, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "sparc_arg_partial_bytes", "(", "cumulative_args_t", "cum", ",", "machine_mode", "mode", ",", "tree", "type", ",", "bool", "named", ")", "{", "int", "slotno", ",", "regno", ",", "padding", ";", "slotno", "=", "function_arg_slotno", "(", "get_cumulative_args", "(", "cum", ")", ",", "mode", ",", "type", ",", "named", ",", "false", ",", "&", "regno", ",", "&", "padding", ")", ";", "if", "(", "slotno", "==", "-", "1", ")", "return", "0", ";", "if", "(", "TARGET_ARCH32", ")", "{", "const", "int", "size", "=", "GET_MODE_SIZE", "(", "mode", ")", ";", "if", "(", "size", ">", "UNITS_PER_WORD", "&&", "slotno", "==", "SPARC_INT_ARG_MAX", "-", "1", ")", "return", "UNITS_PER_WORD", ";", "}", "else", "{", "if", "(", "type", "&&", "AGGREGATE_TYPE_P", "(", "type", ")", ")", "{", "const", "int", "size", "=", "int_size_in_bytes", "(", "type", ")", ";", "if", "(", "size", ">", "UNITS_PER_WORD", "&&", "(", "slotno", "==", "SPARC_INT_ARG_MAX", "-", "1", "||", "slotno", "==", "SPARC_FP_ARG_MAX", "-", "1", ")", ")", "return", "UNITS_PER_WORD", ";", "}", "else", "if", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_COMPLEX_INT", "||", "(", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_COMPLEX_FLOAT", "||", "(", "type", "&&", "VECTOR_TYPE_P", "(", "type", ")", ")", ")", "&&", "!", "(", "TARGET_FPU", "&&", "named", ")", ")", ")", "{", "const", "int", "size", "=", "(", "type", "&&", "VECTOR_FLOAT_TYPE_P", "(", "type", ")", ")", "?", "int_size_in_bytes", "(", "type", ")", ":", "GET_MODE_SIZE", "(", "mode", ")", ";", "if", "(", "size", ">", "UNITS_PER_WORD", "&&", "slotno", "==", "SPARC_INT_ARG_MAX", "-", "1", ")", "return", "UNITS_PER_WORD", ";", "}", "else", "if", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_COMPLEX_FLOAT", "||", "(", "type", "&&", "VECTOR_TYPE_P", "(", "type", ")", ")", ")", "{", "const", "int", "size", "=", "(", "type", "&&", "VECTOR_FLOAT_TYPE_P", "(", "type", ")", ")", "?", "int_size_in_bytes", "(", "type", ")", ":", "GET_MODE_SIZE", "(", "mode", ")", ";", "if", "(", "size", ">", "UNITS_PER_WORD", "&&", "slotno", "==", "SPARC_FP_ARG_MAX", "-", "1", ")", "return", "UNITS_PER_WORD", ";", "}", "}", "return", "0", ";", "}", ""], "natrual_language": ["For", "an", "arg", "passed", "partly", "in", "registers", "and", "partly", "in", "memory", ",", "this", "is", "the", "number", "of", "bytes", "of", "registers", "used", ".", "For", "args", "passed", "entirely", "in", "registers", "or", "entirely", "in", "memory", ",", "zero", ".", "Any", "arg", "that", "starts", "in", "the", "first", "6", "regs", "but", "wo", "n't", "entirely", "fit", "in", "them", "needs", "partial", "registers", "on", "v8", ".", "On", "v9", ",", "structures", "with", "integer", "values", "in", "arg", "slots", "5,6", "will", "be", "passed", "in", "%", "o5", "and", "SP+176", ",", "and", "complex", "fp", "values", "that", "begin", "in", "the", "last", "fp", "reg", "[", "where", "``", "last", "fp", "reg", "''", "varies", "with", "the", "mode", "]", "will", "be", "split", "between", "that", "reg", "and", "memory", "."], "TS_V_token": ["sparc", "1", "0", "1", "1", "1", "1", "1", "0"], "File": "sparc8", "Func": "sparc_arg_partial_bytes", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 881, "Length": 274, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"Cpu0 Delay Slot Fille\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["Cpu0", "\"Cpu0 Delay Slot Fille\""], "File": "Cpu0DelaySlotFiller", "Func": "getPassName", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 882, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MVETPAndVPTOptimisations", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "Fn", ")", "{", "const", "ARMSubtarget", "&", "STI", "=", "Fn", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "if", "(", "!", "STI", ".", "isThumb2", "(", ")", "||", "!", "STI", ".", "hasLOB", "(", ")", ")", "return", "false", ";", "TII", "=", "static_cast", "<", "const", "Thumb2InstrInfo", "*", ">", "(", "STI", ".", "getInstrInfo", "(", ")", ")", ";", "MRI", "=", "&", "Fn", ".", "getRegInfo", "(", ")", ";", "MachineLoopInfo", "*", "MLI", "=", "&", "getAnalysis", "<", "MachineLoopInfo", ">", "(", ")", ";", "MachineDominatorTree", "*", "DT", "=", "&", "getAnalysis", "<", "MachineDominatorTree", ">", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"********** ARM MVE VPT Optimisations **********\\n\"", "<<", "\"********** Function: \"", "<<", "Fn", ".", "getName", "(", ")", "<<", "'\\n'", ")", ";", "bool", "Modified", "=", "false", ";", "for", "(", "MachineLoop", "*", "ML", ":", "MLI", "->", "getBase", "(", ")", ".", "getLoopsInPreorder", "(", ")", ")", "{", "Modified", "|=", "LowerWhileLoopStart", "(", "ML", ")", ";", "Modified", "|=", "MergeLoopEnd", "(", "ML", ")", ";", "Modified", "|=", "ConvertTailPredLoop", "(", "ML", ",", "DT", ")", ";", "}", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "Fn", ")", "{", "Modified", "|=", "HintDoLoopStartReg", "(", "MBB", ")", ";", "Modified", "|=", "ReplaceConstByVPNOTs", "(", "MBB", ",", "DT", ")", ";", "Modified", "|=", "ReplaceVCMPsByVPNOTs", "(", "MBB", ")", ";", "Modified", "|=", "ReduceOldVCCRValueUses", "(", "MBB", ")", ";", "Modified", "|=", "ConvertVPSEL", "(", "MBB", ")", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"**************************************\\n\"", ")", ";", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "\"********** ARM MVE VPT Optimisations **********\\n\"", "\"********** Function: \"", "\"**************************************\\n\""], "File": "MVETPAndVPTOptimisationsPass4", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 883, "Length": 217, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Value", "*", "ARMTargetLowering", "::", "getSDagStackGuard", "(", "const", "Module", "&", "M", ")", "const", "{", "if", "(", "Subtarget", "->", "getTargetTriple", "(", ")", ".", "isWindowsMSVCEnvironment", "(", ")", ")", "return", "M", ".", "getGlobalVariable", "(", "\"__security_cookie\"", ")", ";", "return", "TargetLowering", "::", "getSDagStackGuard", "(", "M", ")", ";", "}", ""], "natrual_language": ["Return", "the", "variable", "that", "'s", "previously", "inserted", "by", "insertSSPDeclarations", ",", "if", "any", ",", "otherwise", "return", "nullptr", "."], "TS_V_token": ["ARM", "ARM", "\"__security_cookie\""], "File": "ARMISelLowering (2)5", "Func": "getSDagStackGuard", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 884, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_xcoff_file_start", "(", "void", ")", "{", "rs6000_gen_section_name", "(", "&", "xcoff_bss_section_name", ",", "main_input_filename", ",", "\".bss_\"", ")", ";", "rs6000_gen_section_name", "(", "&", "xcoff_private_data_section_name", ",", "main_input_filename", ",", "\".rw_\"", ")", ";", "rs6000_gen_section_name", "(", "&", "xcoff_read_only_section_name", ",", "main_input_filename", ",", "\".ro_\"", ")", ";", "rs6000_gen_section_name", "(", "&", "xcoff_tls_data_section_name", ",", "main_input_filename", ",", "\".tls_\"", ")", ";", "rs6000_gen_section_name", "(", "&", "xcoff_tbss_section_name", ",", "main_input_filename", ",", "\".tbss_[UL]\"", ")", ";", "fputs", "(", "\"\\t.file\\t\"", ",", "asm_out_file", ")", ";", "output_quoted_string", "(", "asm_out_file", ",", "main_input_filename", ")", ";", "fputc", "(", "'\\n'", ",", "asm_out_file", ")", ";", "if", "(", "write_symbols", "!=", "NO_DEBUG", ")", "switch_to_section", "(", "private_data_section", ")", ";", "switch_to_section", "(", "text_section", ")", ";", "if", "(", "profile_flag", ")", "fprintf", "(", "asm_out_file", ",", "\"\\t.extern %s\\n\"", ",", "RS6000_MCOUNT", ")", ";", "rs6000_file_start", "(", ")", ";", "}", ""], "natrual_language": ["Output", "at", "beginning", "of", "assembler", "file", ".", "Initialize", "the", "section", "names", "for", "the", "RS/6000", "at", "this", "point", ".", "Specify", "filename", ",", "including", "full", "path", ",", "to", "assembler", ".", "We", "want", "to", "go", "into", "the", "TOC", "section", "so", "at", "least", "one", ".toc", "will", "be", "emitted", ".", "Also", ",", "in", "order", "to", "output", "proper", ".bs/.es", "pairs", ",", "we", "need", "at", "least", "one", "static", "[", "RW", "]", "section", "emitted", ".", "Finally", ",", "declare", "mcount", "when", "profiling", "to", "make", "the", "assembler", "happy", "."], "TS_V_token": ["rs6000", "\".bss_\"", "\".rw_\"", "\".ro_\"", "\".tls_\"", "\".tbss_[UL]\"", "\"\\t.file\\t\"", "\"\\t.extern %s\\n\""], "File": "rs60004", "Func": "rs6000_xcoff_file_start", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 885, "Length": 112, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "ARMSelectionDAGInfo", "::", "EmitTargetCodeForMemmove", "(", "SelectionDAG", "&", "DAG", ",", "SDLoc", "dl", ",", "SDValue", "Chain", ",", "SDValue", "Dst", ",", "SDValue", "Src", ",", "SDValue", "Size", ",", "unsigned", "Align", ",", "bool", "isVolatile", ",", "MachinePointerInfo", "DstPtrInfo", ",", "MachinePointerInfo", "SrcPtrInfo", ")", "const", "{", "return", "EmitSpecializedLibcall", "(", "DAG", ",", "dl", ",", "Chain", ",", "Dst", ",", "Src", ",", "Size", ",", "Align", ",", "RTLIB", "::", "MEMMOVE", ")", ";", "}", ""], "natrual_language": ["Emit", "target-specific", "code", "that", "performs", "a", "memmove", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMSelectionDAGInfo16", "Func": "EmitTargetCodeForMemmove", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 886, "Length": 61, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "unique_ptr", "<", "TargetInstrInfo", "::", "PipelinerLoopInfo", ">", "ARMBaseInstrInfo", "::", "analyzeLoopForPipelining", "(", "MachineBasicBlock", "*", "LoopBB", ")", "const", "{", "MachineBasicBlock", "::", "iterator", "I", "=", "LoopBB", "->", "getFirstTerminator", "(", ")", ";", "MachineBasicBlock", "*", "Preheader", "=", "*", "LoopBB", "->", "pred_begin", "(", ")", ";", "if", "(", "Preheader", "==", "LoopBB", ")", "Preheader", "=", "*", "std", "::", "next", "(", "LoopBB", "->", "pred_begin", "(", ")", ")", ";", "if", "(", "I", "!=", "LoopBB", "->", "end", "(", ")", "&&", "I", "->", "getOpcode", "(", ")", "==", "ARM", "::", "t2Bcc", ")", "{", "MachineInstr", "*", "CCSetter", "=", "nullptr", ";", "for", "(", "auto", "&", "L", ":", "LoopBB", "->", "instrs", "(", ")", ")", "{", "if", "(", "L", ".", "isCall", "(", ")", ")", "return", "nullptr", ";", "if", "(", "isCPSRDefined", "(", "L", ")", ")", "CCSetter", "=", "&", "L", ";", "}", "if", "(", "CCSetter", ")", "return", "std", "::", "make_unique", "<", "ARMPipelinerLoopInfo", ">", "(", "&", "*", "I", ",", "CCSetter", ")", ";", "else", "return", "nullptr", ";", "}", "if", "(", "I", "!=", "LoopBB", "->", "end", "(", ")", "&&", "I", "->", "getOpcode", "(", ")", "==", "ARM", "::", "t2LoopEnd", ")", "{", "for", "(", "auto", "&", "L", ":", "LoopBB", "->", "instrs", "(", ")", ")", "if", "(", "L", ".", "isCall", "(", ")", ")", "return", "nullptr", ";", "else", "if", "(", "isVCTP", "(", "&", "L", ")", ")", "return", "nullptr", ";", "Register", "LoopDecResult", "=", "I", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "LoopBB", "->", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "MachineInstr", "*", "LoopDec", "=", "MRI", ".", "getUniqueVRegDef", "(", "LoopDecResult", ")", ";", "if", "(", "!", "LoopDec", "||", "LoopDec", "->", "getOpcode", "(", ")", "!=", "ARM", "::", "t2LoopDec", ")", "return", "nullptr", ";", "MachineInstr", "*", "LoopStart", "=", "nullptr", ";", "for", "(", "auto", "&", "J", ":", "Preheader", "->", "instrs", "(", ")", ")", "if", "(", "J", ".", "getOpcode", "(", ")", "==", "ARM", "::", "t2DoLoopStart", ")", "LoopStart", "=", "&", "J", ";", "if", "(", "!", "LoopStart", ")", "return", "nullptr", ";", "return", "std", "::", "make_unique", "<", "ARMPipelinerLoopInfo", ">", "(", "&", "*", "I", ",", "LoopDec", ")", ";", "}", "return", "nullptr", ";", "}", ""], "natrual_language": ["Analyze", "loop", "L", ",", "which", "must", "be", "a", "single-basic-block", "loop", ",", "and", "if", "the", "conditions", "can", "be", "understood", "enough", "produce", "a", "PipelinerLoopInfo", "object", "."], "TS_V_token": ["ARM", "ARM", "ARM::t2Bcc", "ARM", "ARM::t2LoopEnd", "0", "ARM::t2LoopDec", "ARM::t2DoLoopStart", "ARM"], "File": "ARMBaseInstrInfo70", "Func": "analyzeLoopForPipelining", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 887, "Length": 324, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "ix86_expand_sse_cmp", "(", "rtx", "dest", ",", "enum", "rtx_code", "code", ",", "rtx", "cmp_op0", ",", "rtx", "cmp_op1", ",", "rtx", "op_true", ",", "rtx", "op_false", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "dest", ")", ";", "machine_mode", "cmp_ops_mode", "=", "GET_MODE", "(", "cmp_op0", ")", ";", "machine_mode", "cmp_mode", ";", "bool", "maskcmp", "=", "false", ";", "rtx", "x", ";", "if", "(", "GET_MODE_SIZE", "(", "cmp_ops_mode", ")", "==", "64", ")", "{", "cmp_mode", "=", "mode_for_size", "(", "GET_MODE_NUNITS", "(", "cmp_ops_mode", ")", ",", "MODE_INT", ",", "0", ")", ";", "gcc_assert", "(", "cmp_mode", "!=", "BLKmode", ")", ";", "maskcmp", "=", "true", ";", "}", "else", "cmp_mode", "=", "cmp_ops_mode", ";", "cmp_op0", "=", "force_reg", "(", "cmp_ops_mode", ",", "cmp_op0", ")", ";", "if", "(", "!", "nonimmediate_operand", "(", "cmp_op1", ",", "cmp_ops_mode", ")", ")", "cmp_op1", "=", "force_reg", "(", "cmp_ops_mode", ",", "cmp_op1", ")", ";", "if", "(", "optimize", "||", "reg_overlap_mentioned_p", "(", "dest", ",", "op_true", ")", "||", "reg_overlap_mentioned_p", "(", "dest", ",", "op_false", ")", ")", "dest", "=", "gen_reg_rtx", "(", "maskcmp", "?", "cmp_mode", ":", "mode", ")", ";", "if", "(", "maskcmp", "&&", "(", "code", "==", "GT", "||", "code", "==", "EQ", ")", ")", "{", "rtx", "(", "*", "gen", ")", "(", "rtx", ",", "rtx", ",", "rtx", ")", ";", "switch", "(", "cmp_ops_mode", ")", "{", "case", "V64QImode", ":", "gcc_assert", "(", "TARGET_AVX512BW", ")", ";", "gen", "=", "code", "==", "GT", "?", "gen_avx512bw_gtv64qi3", ":", "gen_avx512bw_eqv64qi3_1", ";", "break", ";", "case", "V32HImode", ":", "gcc_assert", "(", "TARGET_AVX512BW", ")", ";", "gen", "=", "code", "==", "GT", "?", "gen_avx512bw_gtv32hi3", ":", "gen_avx512bw_eqv32hi3_1", ";", "break", ";", "case", "V16SImode", ":", "gen", "=", "code", "==", "GT", "?", "gen_avx512f_gtv16si3", ":", "gen_avx512f_eqv16si3_1", ";", "break", ";", "case", "V8DImode", ":", "gen", "=", "code", "==", "GT", "?", "gen_avx512f_gtv8di3", ":", "gen_avx512f_eqv8di3_1", ";", "break", ";", "default", ":", "gen", "=", "NULL", ";", "}", "if", "(", "gen", ")", "{", "emit_insn", "(", "gen", "(", "dest", ",", "cmp_op0", ",", "cmp_op1", ")", ")", ";", "return", "dest", ";", "}", "}", "x", "=", "gen_rtx_fmt_ee", "(", "code", ",", "cmp_mode", ",", "cmp_op0", ",", "cmp_op1", ")", ";", "if", "(", "cmp_mode", "!=", "mode", "&&", "!", "maskcmp", ")", "{", "x", "=", "force_reg", "(", "cmp_ops_mode", ",", "x", ")", ";", "convert_move", "(", "dest", ",", "x", ",", "false", ")", ";", "}", "else", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "dest", ",", "x", ")", ")", ";", "return", "dest", ";", "}", ""], "natrual_language": ["Expand", "an", "sse", "vector", "comparison", ".", "Return", "the", "register", "with", "the", "result", "."], "TS_V_token": ["i386", "64", "0"], "File": "i3864", "Func": "ix86_expand_sse_cmp", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 888, "Length": 340, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "extract_nth_access_reg", "(", "rtx_insn", "*", "insn", ",", "int", "index", ")", "{", "switch", "(", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", ")", "{", "case", "PARALLEL", ":", "return", "extract_nth_lmsw_access_reg", "(", "insn", ",", "index", ")", ";", "case", "SET", ":", "return", "extract_nth_ls2_access_reg", "(", "insn", ",", "index", ")", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Returns", "the", "register", "operated", "by", "the", "nth", "load/store", "operation", "in", "the", "real", "micro-operation", "accessing", "order", "."], "TS_V_token": ["nds32"], "File": "nds32-pipelines-auxiliary", "Func": "extract_nth_access_reg", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 889, "Length": 52, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseRegisterInfo", "::", "getRegAllocationHints", "(", "unsigned", "VirtReg", ",", "ArrayRef", "<", "MCPhysReg", ">", "Order", ",", "SmallVectorImpl", "<", "MCPhysReg", ">", "&", "Hints", ",", "const", "MachineFunction", "&", "MF", ",", "const", "VirtRegMap", "*", "VRM", ",", "const", "LiveRegMatrix", "*", "Matrix", ")", "const", "{", "const", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "std", "::", "pair", "<", "unsigned", ",", "unsigned", ">", "Hint", "=", "MRI", ".", "getRegAllocationHint", "(", "VirtReg", ")", ";", "unsigned", "Odd", ";", "switch", "(", "Hint", ".", "first", ")", "{", "case", "ARMRI", "::", "RegPairEven", ":", "Odd", "=", "0", ";", "break", ";", "case", "ARMRI", "::", "RegPairOdd", ":", "Odd", "=", "1", ";", "break", ";", "default", ":", "TargetRegisterInfo", "::", "getRegAllocationHints", "(", "VirtReg", ",", "Order", ",", "Hints", ",", "MF", ",", "VRM", ")", ";", "return", "false", ";", "}", "unsigned", "Paired", "=", "Hint", ".", "second", ";", "if", "(", "Paired", "==", "0", ")", "return", "false", ";", "unsigned", "PairedPhys", "=", "0", ";", "if", "(", "TargetRegisterInfo", "::", "isPhysicalRegister", "(", "Paired", ")", ")", "{", "PairedPhys", "=", "Paired", ";", "}", "else", "if", "(", "VRM", "&&", "VRM", "->", "hasPhys", "(", "Paired", ")", ")", "{", "PairedPhys", "=", "getPairedGPR", "(", "VRM", "->", "getPhys", "(", "Paired", ")", ",", "Odd", ",", "this", ")", ";", "}", "if", "(", "PairedPhys", "&&", "is_contained", "(", "Order", ",", "PairedPhys", ")", ")", "Hints", ".", "push_back", "(", "PairedPhys", ")", ";", "for", "(", "unsigned", "Reg", ":", "Order", ")", "{", "if", "(", "Reg", "==", "PairedPhys", "||", "(", "getEncodingValue", "(", "Reg", ")", "&", "1", ")", "!=", "Odd", ")", "continue", ";", "unsigned", "Paired", "=", "getPairedGPR", "(", "Reg", ",", "!", "Odd", ",", "this", ")", ";", "if", "(", "!", "Paired", "||", "MRI", ".", "isReserved", "(", "Paired", ")", ")", "continue", ";", "Hints", ".", "push_back", "(", "Reg", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Get", "a", "list", "of", "'hint", "'", "registers", "that", "the", "register", "allocator", "should", "try", "first", "when", "allocating", "a", "physical", "register", "for", "the", "virtual", "register", "VirtReg", "."], "TS_V_token": ["ARM", "ARM", "ARMRI::RegPairEven", "0", "ARMRI::RegPairOdd", "1", "0", "0", "1"], "File": "ARMBaseRegisterInfo23", "Func": "getRegAllocationHints", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 890, "Length": 269, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "LLVM_OVERRIDE", "{", "return", "\"X86 AT&T-Style Assembly Printer\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["X86", "\"X86 AT&T-Style Assembly Printer\""], "File": "X86AsmPrinter33", "Func": "getPassName", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 891, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "print", "(", "raw_ostream", "*", "O", ")", "const", "{", "if", "(", "O", ")", "print", "(", "*", "O", ")", ";", "}", ""], "natrual_language": ["print", "-", "Print", "a", "debug", "representation", "of", "the", "operand", "to", "the", "given", "stream", "."], "TS_V_token": ["ARM"], "File": "ARMConstantPoolValue", "Func": "print", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 892, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "PPCInstrInfo", "*", "getInstrInfo", "(", ")", "const", "override", "{", "return", "&", "InstrInfo", ";", "}", ""], "natrual_language": ["TargetInstrInfo", "getter", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCTargetMachine22", "Func": "getInstrInfo", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 893, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Reloc", "::", "Model", "getRelocationModel", "(", ")", "const", "{", "return", "RM", ";", "}", ""], "natrual_language": ["Returns", "the", "code", "generation", "relocation", "model", "."], "TS_V_token": ["Mips"], "File": "MipsSubtarget (2)", "Func": "getRelocationModel", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 894, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "*", "SparcTargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MachineInstr", "*", "MI", ",", "MachineBasicBlock", "*", "BB", ")", "const", "{", "const", "TargetInstrInfo", "&", "TII", "=", "*", "getTargetMachine", "(", ")", ".", "getInstrInfo", "(", ")", ";", "unsigned", "BROpcode", ";", "unsigned", "CC", ";", "DebugLoc", "dl", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown SELECT_CC!\"", ")", ";", "case", "SP", "::", "SELECT_CC_Int_ICC", ":", "case", "SP", "::", "SELECT_CC_FP_ICC", ":", "case", "SP", "::", "SELECT_CC_DFP_ICC", ":", "BROpcode", "=", "SP", "::", "BCOND", ";", "break", ";", "case", "SP", "::", "SELECT_CC_Int_FCC", ":", "case", "SP", "::", "SELECT_CC_FP_FCC", ":", "case", "SP", "::", "SELECT_CC_DFP_FCC", ":", "BROpcode", "=", "SP", "::", "FBCOND", ";", "break", ";", "}", "CC", "=", "(", "SPCC", "::", "CondCodes", ")", "MI", "->", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", ";", "const", "BasicBlock", "*", "LLVM_BB", "=", "BB", "->", "getBasicBlock", "(", ")", ";", "MachineFunction", "::", "iterator", "It", "=", "BB", ";", "++", "It", ";", "MachineBasicBlock", "*", "thisMBB", "=", "BB", ";", "MachineFunction", "*", "F", "=", "BB", "->", "getParent", "(", ")", ";", "MachineBasicBlock", "*", "copy0MBB", "=", "F", "->", "CreateMachineBasicBlock", "(", "LLVM_BB", ")", ";", "MachineBasicBlock", "*", "sinkMBB", "=", "F", "->", "CreateMachineBasicBlock", "(", "LLVM_BB", ")", ";", "sinkMBB", "->", "splice", "(", "sinkMBB", "->", "begin", "(", ")", ",", "BB", ",", "llvm", "::", "next", "(", "MachineBasicBlock", "::", "iterator", "(", "MI", ")", ")", ",", "BB", "->", "end", "(", ")", ")", ";", "sinkMBB", "->", "transferSuccessorsAndUpdatePHIs", "(", "BB", ")", ";", "BB", "->", "addSuccessor", "(", "copy0MBB", ")", ";", "BB", "->", "addSuccessor", "(", "sinkMBB", ")", ";", "BuildMI", "(", "BB", ",", "dl", ",", "TII", ".", "get", "(", "BROpcode", ")", ")", ".", "addMBB", "(", "sinkMBB", ")", ".", "addImm", "(", "CC", ")", ";", "F", "->", "insert", "(", "It", ",", "copy0MBB", ")", ";", "F", "->", "insert", "(", "It", ",", "sinkMBB", ")", ";", "BB", "=", "copy0MBB", ";", "BB", "->", "addSuccessor", "(", "sinkMBB", ")", ";", "BB", "=", "sinkMBB", ";", "BuildMI", "(", "*", "BB", ",", "BB", "->", "begin", "(", ")", ",", "dl", ",", "TII", ".", "get", "(", "SP", "::", "PHI", ")", ",", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ")", ".", "addReg", "(", "MI", "->", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "copy0MBB", ")", ".", "addReg", "(", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "thisMBB", ")", ";", "MI", "->", "eraseFromParent", "(", ")", ";", "return", "BB", ";", "}", ""], "natrual_language": ["This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'usesCustomInserter", "'", "flag", "."], "TS_V_token": ["Sparc", "Sparc", "\"Unknown SELECT_CC!\"", "SP::SELECT_CC_Int_ICC", "SP::SELECT_CC_FP_ICC", "SP::SELECT_CC_DFP_ICC", "SP::BCOND", "SP::SELECT_CC_Int_FCC", "SP::SELECT_CC_FP_FCC", "SP::SELECT_CC_DFP_FCC", "SP::FBCOND", "SPCC::CondCodes", "3", "SP::PHI", "0", "2", "1"], "File": "SparcISelLowering32", "Func": "EmitInstrWithCustomInserter", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 895, "Length": 376, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZDAGToDAGISel", "::", "SelectInlineAsmMemoryOperand", "(", "const", "SDValue", "&", "Op", ",", "unsigned", "ConstraintID", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "OutOps", ")", "{", "SystemZAddressingMode", "::", "AddrForm", "Form", ";", "SystemZAddressingMode", "::", "DispRange", "DispRange", ";", "SDValue", "Base", ",", "Disp", ",", "Index", ";", "switch", "(", "ConstraintID", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unexpected asm memory constraint\"", ")", ";", "case", "InlineAsm", "::", "Constraint_i", ":", "case", "InlineAsm", "::", "Constraint_Q", ":", "Form", "=", "SystemZAddressingMode", "::", "FormBD", ";", "DispRange", "=", "SystemZAddressingMode", "::", "Disp12Only", ";", "break", ";", "case", "InlineAsm", "::", "Constraint_R", ":", "Form", "=", "SystemZAddressingMode", "::", "FormBDXNormal", ";", "DispRange", "=", "SystemZAddressingMode", "::", "Disp12Only", ";", "break", ";", "case", "InlineAsm", "::", "Constraint_S", ":", "Form", "=", "SystemZAddressingMode", "::", "FormBD", ";", "DispRange", "=", "SystemZAddressingMode", "::", "Disp20Only", ";", "break", ";", "case", "InlineAsm", "::", "Constraint_T", ":", "case", "InlineAsm", "::", "Constraint_m", ":", "Form", "=", "SystemZAddressingMode", "::", "FormBDXNormal", ";", "DispRange", "=", "SystemZAddressingMode", "::", "Disp20Only", ";", "break", ";", "}", "if", "(", "selectBDXAddr", "(", "Form", ",", "DispRange", ",", "Op", ",", "Base", ",", "Disp", ",", "Index", ")", ")", "{", "OutOps", ".", "push_back", "(", "Base", ")", ";", "OutOps", ".", "push_back", "(", "Disp", ")", ";", "OutOps", ".", "push_back", "(", "Index", ")", ";", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["SelectInlineAsmMemoryOperand", "-", "Select", "the", "specified", "address", "as", "a", "target", "addressing", "mode", ",", "according", "to", "the", "specified", "constraint", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZAddressingMode::AddrForm", "SystemZAddressingMode::DispRange", "\"Unexpected asm memory constraint\"", "SystemZAddressingMode::FormBD", "SystemZAddressingMode::Disp12Only", "SystemZAddressingMode::FormBDXNormal", "SystemZAddressingMode::Disp12Only", "SystemZAddressingMode::FormBD", "SystemZAddressingMode::Disp20Only", "SystemZAddressingMode::FormBDXNormal", "SystemZAddressingMode::Disp20Only"], "File": "SystemZISelDAGToDAG37", "Func": "SelectInlineAsmMemoryOperand", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 896, "Length": 186, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "function_expander", "::", "use_pred_x_insn", "(", "insn_code", "icode", ")", "{", "gcc_assert", "(", "pred", "==", "PRED_x", ")", ";", "unsigned", "int", "nops", "=", "args", ".", "length", "(", ")", "-", "1", ";", "bool", "has_float_operand_p", "=", "FLOAT_MODE_P", "(", "insn_data", "[", "icode", "]", ".", "operand", "[", "0", "]", ".", "mode", ")", ";", "add_output_operand", "(", "icode", ")", ";", "add_input_operand", "(", "icode", ",", "args", "[", "0", "]", ")", ";", "for", "(", "unsigned", "int", "i", "=", "0", ";", "i", "<", "nops", ";", "++", "i", ")", "{", "add_input_operand", "(", "icode", ",", "args", "[", "i", "+", "1", "]", ")", ";", "if", "(", "FLOAT_MODE_P", "(", "GET_MODE", "(", "args", "[", "i", "+", "1", "]", ")", ")", ")", "has_float_operand_p", "=", "true", ";", "}", "if", "(", "has_float_operand_p", ")", "{", "rtx", "pred", "=", "m_ops", "[", "1", "]", ".", "value", ";", "if", "(", "flag_trapping_math", "&&", "pred", "!=", "CONST1_RTX", "(", "GET_MODE", "(", "pred", ")", ")", ")", "add_integer_operand", "(", "SVE_STRICT_GP", ")", ";", "else", "add_integer_operand", "(", "SVE_RELAXED_GP", ")", ";", "}", "return", "generate_insn", "(", "icode", ")", ";", "}", ""], "natrual_language": ["Implement", "the", "call", "using", "instruction", "ICODE", ",", "which", "is", "a", "predicated", "operation", "that", "returns", "arbitrary", "values", "for", "inactive", "lanes", "."], "TS_V_token": ["aarch64", "1", "0", "0", "0", "1", "1", "1"], "File": "aarch64-sve-builtins", "Func": "use_pred_x_insn", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 897, "Length": 157, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getType", "(", ")", "const", "{", "return", "CurType", ".", "Name", ";", "}", ""], "natrual_language": ["Overload", "to", "return", "most", "specific", "vector", "type", "."], "TS_V_token": ["X86"], "File": "X86AsmParser (2)4", "Func": "getType", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 898, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SparcSubtarget", "&", "SparcSubtarget", "::", "initializeSubtargetDependencies", "(", "StringRef", "CPU", ",", "StringRef", "FS", ")", "{", "IsV9", "=", "false", ";", "IsLeon", "=", "false", ";", "V8DeprecatedInsts", "=", "false", ";", "IsVIS", "=", "false", ";", "HasHardQuad", "=", "false", ";", "UsePopc", "=", "false", ";", "UseSoftFloat", "=", "false", ";", "HasLeonCasa", "=", "false", ";", "HasUmacSmac", "=", "false", ";", "InsertNOPLoad", "=", "false", ";", "std", "::", "string", "CPUName", "=", "CPU", ";", "if", "(", "CPUName", ".", "empty", "(", ")", ")", "CPUName", "=", "(", "Is64Bit", ")", "?", "\"v9\"", ":", "\"v8\"", ";", "ParseSubtargetFeatures", "(", "CPUName", ",", "FS", ")", ";", "if", "(", "!", "IsV9", ")", "UsePopc", "=", "false", ";", "return", "*", "this", ";", "}", ""], "natrual_language": ["initializeSubtargetDependencies", "-", "Initializes", "using", "a", "CPU", ",", "a", "TuneCPU", ",", "and", "feature", "string", "so", "that", "we", "can", "use", "initializer", "lists", "for", "subtarget", "initialization", "."], "TS_V_token": ["Sparc", "Sparc", "Sparc", "\"v9\"", "\"v8\""], "File": "SparcSubtarget24", "Func": "initializeSubtargetDependencies", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 899, "Length": 99, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "X86FrameLowering", "::", "getFrameIndexReference", "(", "const", "MachineFunction", "&", "MF", ",", "int", "FI", ",", "unsigned", "&", "FrameReg", ")", "const", "{", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "bool", "IsFixed", "=", "MFI", ".", "isFixedObjectIndex", "(", "FI", ")", ";", "if", "(", "TRI", "->", "hasBasePointer", "(", "MF", ")", ")", "FrameReg", "=", "IsFixed", "?", "TRI", "->", "getFramePtr", "(", ")", ":", "TRI", "->", "getBaseRegister", "(", ")", ";", "else", "if", "(", "TRI", "->", "needsStackRealignment", "(", "MF", ")", ")", "FrameReg", "=", "IsFixed", "?", "TRI", "->", "getFramePtr", "(", ")", ":", "TRI", "->", "getStackRegister", "(", ")", ";", "else", "FrameReg", "=", "TRI", "->", "getFrameRegister", "(", "MF", ")", ";", "int", "Offset", "=", "MFI", ".", "getObjectOffset", "(", "FI", ")", "-", "getOffsetOfLocalArea", "(", ")", ";", "const", "X86MachineFunctionInfo", "*", "X86FI", "=", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", ";", "unsigned", "CSSize", "=", "X86FI", "->", "getCalleeSavedFrameSize", "(", ")", ";", "uint64_t", "StackSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "bool", "HasFP", "=", "hasFP", "(", "MF", ")", ";", "bool", "IsWin64Prologue", "=", "MF", ".", "getTarget", "(", ")", ".", "getMCAsmInfo", "(", ")", "->", "usesWindowsCFI", "(", ")", ";", "int64_t", "FPDelta", "=", "0", ";", "if", "(", "IsWin64Prologue", ")", "{", "assert", "(", "!", "MFI", ".", "hasCalls", "(", ")", "||", "(", "StackSize", "%", "16", ")", "==", "8", ")", ";", "uint64_t", "FrameSize", "=", "StackSize", "-", "SlotSize", ";", "if", "(", "X86FI", "->", "getRestoreBasePointer", "(", ")", ")", "FrameSize", "+=", "SlotSize", ";", "uint64_t", "NumBytes", "=", "FrameSize", "-", "CSSize", ";", "uint64_t", "SEHFrameOffset", "=", "calculateSetFPREG", "(", "NumBytes", ")", ";", "if", "(", "FI", "&&", "FI", "==", "X86FI", "->", "getFAIndex", "(", ")", ")", "return", "-", "SEHFrameOffset", ";", "FPDelta", "=", "FrameSize", "-", "SEHFrameOffset", ";", "assert", "(", "(", "!", "MFI", ".", "hasCalls", "(", ")", "||", "(", "FPDelta", "%", "16", ")", "==", "0", ")", "&&", "\"FPDelta isn't aligned per the Win64 ABI!\"", ")", ";", "}", "if", "(", "TRI", "->", "hasBasePointer", "(", "MF", ")", ")", "{", "assert", "(", "HasFP", "&&", "\"VLAs and dynamic stack realign, but no FP?!\"", ")", ";", "if", "(", "FI", "<", "0", ")", "{", "return", "Offset", "+", "SlotSize", "+", "FPDelta", ";", "}", "else", "{", "assert", "(", "(", "-", "(", "Offset", "+", "StackSize", ")", ")", "%", "MFI", ".", "getObjectAlignment", "(", "FI", ")", "==", "0", ")", ";", "return", "Offset", "+", "StackSize", ";", "}", "}", "else", "if", "(", "TRI", "->", "needsStackRealignment", "(", "MF", ")", ")", "{", "if", "(", "FI", "<", "0", ")", "{", "return", "Offset", "+", "SlotSize", "+", "FPDelta", ";", "}", "else", "{", "assert", "(", "(", "-", "(", "Offset", "+", "StackSize", ")", ")", "%", "MFI", ".", "getObjectAlignment", "(", "FI", ")", "==", "0", ")", ";", "return", "Offset", "+", "StackSize", ";", "}", "}", "else", "{", "if", "(", "!", "HasFP", ")", "return", "Offset", "+", "StackSize", ";", "Offset", "+=", "SlotSize", ";", "int", "TailCallReturnAddrDelta", "=", "X86FI", "->", "getTCReturnAddrDelta", "(", ")", ";", "if", "(", "TailCallReturnAddrDelta", "<", "0", ")", "Offset", "-=", "TailCallReturnAddrDelta", ";", "}", "return", "Offset", "+", "FPDelta", ";", "}", ""], "natrual_language": ["getFrameIndexReference", "-", "This", "method", "should", "return", "the", "base", "register", "and", "offset", "used", "to", "reference", "a", "frame", "index", "location", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86", "0", "16", "8", "X86", "X86", "16", "0", "\"FPDelta isn't aligned per the Win64 ABI!\"", "\"VLAs and dynamic stack realign, but no FP?!\"", "0", "0", "0", "0", "X86", "0"], "File": "X86FrameLowering (2)2", "Func": "getFrameIndexReference", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 900, "Length": 439, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetIRAnalysis", "MipsTargetMachine", "::", "getTargetIRAnalysis", "(", ")", "{", "return", "TargetIRAnalysis", "(", "[", "this", "]", "(", "Function", "&", "F", ")", "{", "if", "(", "Subtarget", "->", "allowMixed16_32", "(", ")", ")", "{", "DEBUG", "(", "errs", "(", ")", "<<", "\"No Target Transform Info Pass Added\\n\"", ")", ";", "return", "TargetTransformInfo", "(", "getDataLayout", "(", ")", ")", ";", "}", "DEBUG", "(", "errs", "(", ")", "<<", "\"Target Transform Info Pass Added\\n\"", ")", ";", "return", "TargetTransformInfo", "(", "BasicTTIImpl", "(", "this", ",", "F", ")", ")", ";", "}", ")", ";", "}", ""], "natrual_language": ["Get", "a", "TargetIRAnalysis", "appropriate", "for", "the", "target", "."], "TS_V_token": ["Mips", "Mips", "\"No Target Transform Info Pass Added\\n\"", "\"Target Transform Info Pass Added\\n\""], "File": "MipsTargetMachine28", "Func": "getTargetIRAnalysis", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 901, "Length": 70, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isTruncateFree", "(", "MVT", "VT1", ",", "MVT", "VT2", ")", "const", "{", "if", "(", "!", "VT1", ".", "isInteger", "(", ")", "||", "!", "VT2", ".", "isInteger", "(", ")", ")", "return", "false", ";", "unsigned", "NumBits1", "=", "VT1", ".", "getSizeInBits", "(", ")", ";", "unsigned", "NumBits2", "=", "VT2", ".", "getSizeInBits", "(", ")", ";", "if", "(", "NumBits1", "<=", "NumBits2", ")", "return", "false", ";", "return", "Subtarget", "->", "is64Bit", "(", ")", "||", "NumBits1", "<", "64", ";", "}", ""], "natrual_language": ["Return", "true", "if", "it", "'s", "free", "to", "truncate", "a", "value", "of", "type", "Ty1", "to", "type", "Ty2", "."], "TS_V_token": ["X86", "X86", "64"], "File": "X86ISelLowering160", "Func": "isTruncateFree", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 902, "Length": 71, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int64_t", "ARMBaseRegisterInfo", "::", "getFrameIndexInstrOffset", "(", "const", "MachineInstr", "*", "MI", ",", "int", "Idx", ")", "const", "{", "const", "TargetInstrDesc", "&", "Desc", "=", "MI", "->", "getDesc", "(", ")", ";", "unsigned", "AddrMode", "=", "(", "Desc", ".", "TSFlags", "&", "ARMII", "::", "AddrModeMask", ")", ";", "int64_t", "InstrOffs", "=", "0", ";", ";", "int", "Scale", "=", "1", ";", "unsigned", "ImmIdx", "=", "0", ";", "switch", "(", "AddrMode", ")", "{", "case", "ARMII", "::", "AddrModeT2_i8", ":", "case", "ARMII", "::", "AddrModeT2_i12", ":", "case", "ARMII", "::", "AddrMode_i12", ":", "InstrOffs", "=", "MI", "->", "getOperand", "(", "Idx", "+", "1", ")", ".", "getImm", "(", ")", ";", "Scale", "=", "1", ";", "break", ";", "case", "ARMII", "::", "AddrMode5", ":", "{", "const", "MachineOperand", "&", "OffOp", "=", "MI", "->", "getOperand", "(", "Idx", "+", "1", ")", ";", "InstrOffs", "=", "ARM_AM", "::", "getAM5Offset", "(", "OffOp", ".", "getImm", "(", ")", ")", ";", "if", "(", "ARM_AM", "::", "getAM5Op", "(", "OffOp", ".", "getImm", "(", ")", ")", "==", "ARM_AM", "::", "sub", ")", "InstrOffs", "=", "-", "InstrOffs", ";", "Scale", "=", "4", ";", "break", ";", "}", "case", "ARMII", "::", "AddrMode2", ":", "{", "ImmIdx", "=", "Idx", "+", "2", ";", "InstrOffs", "=", "ARM_AM", "::", "getAM2Offset", "(", "MI", "->", "getOperand", "(", "ImmIdx", ")", ".", "getImm", "(", ")", ")", ";", "if", "(", "ARM_AM", "::", "getAM2Op", "(", "MI", "->", "getOperand", "(", "ImmIdx", ")", ".", "getImm", "(", ")", ")", "==", "ARM_AM", "::", "sub", ")", "InstrOffs", "=", "-", "InstrOffs", ";", "break", ";", "}", "case", "ARMII", "::", "AddrMode3", ":", "{", "ImmIdx", "=", "Idx", "+", "2", ";", "InstrOffs", "=", "ARM_AM", "::", "getAM3Offset", "(", "MI", "->", "getOperand", "(", "ImmIdx", ")", ".", "getImm", "(", ")", ")", ";", "if", "(", "ARM_AM", "::", "getAM3Op", "(", "MI", "->", "getOperand", "(", "ImmIdx", ")", ".", "getImm", "(", ")", ")", "==", "ARM_AM", "::", "sub", ")", "InstrOffs", "=", "-", "InstrOffs", ";", "break", ";", "}", "case", "ARMII", "::", "AddrModeT1_s", ":", "{", "ImmIdx", "=", "Idx", "+", "1", ";", "InstrOffs", "=", "MI", "->", "getOperand", "(", "ImmIdx", ")", ".", "getImm", "(", ")", ";", "Scale", "=", "4", ";", "break", ";", "}", "default", ":", "llvm_unreachable", "(", "\"Unsupported addressing mode!\"", ")", ";", "break", ";", "}", "return", "InstrOffs", "*", "Scale", ";", "}", ""], "natrual_language": ["Get", "the", "offset", "from", "the", "referenced", "frame", "index", "in", "the", "instruction", ",", "if", "there", "is", "one", "."], "TS_V_token": ["ARM", "ARM", "ARMII::AddrModeMask", "0", "1", "0", "ARMII::AddrModeT2_i8", "ARMII::AddrModeT2_i12", "ARMII::AddrMode_i12", "1", "1", "ARMII::AddrMode5", "1", "ARM_AM::getAM5Offset", "ARM_AM::getAM5Op", "ARM_AM::sub", "4", "ARMII::AddrMode2", "2", "ARM_AM::getAM2Offset", "ARM_AM::getAM2Op", "ARM_AM::sub", "ARMII::AddrMode3", "2", "ARM_AM::getAM3Offset", "ARM_AM::getAM3Op", "ARM_AM::sub", "ARMII::AddrModeT1_s", "1", "4", "\"Unsupported addressing mode!\""], "File": "ARMBaseRegisterInfo36", "Func": "getFrameIndexInstrOffset", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 903, "Length": 326, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "pa_shadd_constant_p", "(", "int", "val", ")", "{", "if", "(", "val", "==", "2", "||", "val", "==", "4", "||", "val", "==", "8", ")", "return", "1", ";", "else", "return", "0", ";", "}", ""], "natrual_language": ["Return", "1", "if", "the", "given", "constant", "is", "2", ",", "4", ",", "or", "8", ".", "These", "are", "the", "valid", "constants", "for", "shadd", "instructions", "."], "TS_V_token": ["pa", "2", "4", "8", "1", "0"], "File": "pa4", "Func": "pa_shadd_constant_p", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 904, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "aarch64_expand_setmem", "(", "rtx", "*", "operands", ")", "{", "int", "n", ",", "mode_bits", ";", "unsigned", "HOST_WIDE_INT", "len", ";", "rtx", "dst", "=", "operands", "[", "0", "]", ";", "rtx", "val", "=", "operands", "[", "2", "]", ",", "src", ";", "rtx", "base", ";", "machine_mode", "cur_mode", "=", "BLKmode", ",", "next_mode", ";", "if", "(", "!", "CONST_INT_P", "(", "operands", "[", "1", "]", ")", ")", "return", "false", ";", "bool", "speed_p", "=", "!", "optimize_function_for_size_p", "(", "cfun", ")", ";", "unsigned", "max_set_size", "=", "256", ";", "max_set_size", "=", "(", "!", "speed_p", "||", "(", "aarch64_tune_params", ".", "extra_tuning_flags", "&", "AARCH64_EXTRA_TUNE_NO_LDP_STP_QREGS", ")", ")", "?", "max_set_size", "/", "2", ":", "max_set_size", ";", "len", "=", "INTVAL", "(", "operands", "[", "1", "]", ")", ";", "if", "(", "len", ">", "max_set_size", ")", "return", "false", ";", "base", "=", "copy_to_mode_reg", "(", "Pmode", ",", "XEXP", "(", "dst", ",", "0", ")", ")", ";", "dst", "=", "adjust_automodify_address", "(", "dst", ",", "VOIDmode", ",", "base", ",", "0", ")", ";", "src", "=", "expand_vector_broadcast", "(", "V16QImode", ",", "val", ")", ";", "src", "=", "force_reg", "(", "V16QImode", ",", "src", ")", ";", "n", "=", "len", "*", "BITS_PER_UNIT", ";", "const", "int", "copy_limit", "=", "(", "speed_p", "&&", "(", "aarch64_tune_params", ".", "extra_tuning_flags", "&", "AARCH64_EXTRA_TUNE_NO_LDP_STP_QREGS", ")", ")", "?", "GET_MODE_BITSIZE", "(", "TImode", ")", ":", "256", ";", "while", "(", "n", ">", "0", ")", "{", "opt_scalar_int_mode", "mode_iter", ";", "FOR_EACH_MODE_IN_CLASS", "(", "mode_iter", ",", "MODE_INT", ")", "if", "(", "GET_MODE_BITSIZE", "(", "mode_iter", ".", "require", "(", ")", ")", "<=", "MIN", "(", "n", ",", "copy_limit", ")", ")", "cur_mode", "=", "mode_iter", ".", "require", "(", ")", ";", "gcc_assert", "(", "cur_mode", "!=", "BLKmode", ")", ";", "mode_bits", "=", "GET_MODE_BITSIZE", "(", "cur_mode", ")", ".", "to_constant", "(", ")", ";", "aarch64_set_one_block_and_progress_pointer", "(", "src", ",", "&", "dst", ",", "cur_mode", ")", ";", "n", "-=", "mode_bits", ";", "if", "(", "n", ">", "0", "&&", "n", "<", "copy_limit", "/", "2", ")", "{", "next_mode", "=", "smallest_mode_for_size", "(", "n", ",", "MODE_INT", ")", ";", "int", "n_bits", "=", "GET_MODE_BITSIZE", "(", "next_mode", ")", ".", "to_constant", "(", ")", ";", "gcc_assert", "(", "n_bits", "<=", "mode_bits", ")", ";", "dst", "=", "aarch64_move_pointer", "(", "dst", ",", "(", "n", "-", "n_bits", ")", "/", "BITS_PER_UNIT", ")", ";", "n", "=", "n_bits", ";", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["Expand", "setmem", ",", "as", "if", "from", "a", "__builtin_memset", ".", "Return", "true", "if", "we", "succeed", ",", "otherwise", "return", "false", "."], "TS_V_token": ["aarch64", "0", "2", "1", "256", "2", "1", "0", "0", "256", "0", "0", "2"], "File": "aarch641", "Func": "aarch64_expand_setmem", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 905, "Length": 327, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_cfun_call_saved_reg_p", "(", "unsigned", "int", "regno", ")", "{", "if", "(", "global_regs", "[", "regno", "]", ")", "return", "false", ";", "if", "(", "cfun", "->", "machine", "->", "interrupt_handler_p", "&&", "mips_interrupt_extra_call_saved_reg_p", "(", "regno", ")", ")", "return", "true", ";", "return", "(", "regno", "==", "GLOBAL_POINTER_REGNUM", "?", "TARGET_CALL_SAVED_GP", ":", "!", "call_used_regs", "[", "regno", "]", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "current", "function", "should", "treat", "register", "REGNO", "as", "call-saved", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_cfun_call_saved_reg_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 906, "Length": 51, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "ix86_output_call_insn", "(", "rtx_insn", "*", "insn", ",", "rtx", "call_op", ")", "{", "bool", "direct_p", "=", "constant_call_address_operand", "(", "call_op", ",", "VOIDmode", ")", ";", "bool", "output_indirect_p", "=", "(", "!", "TARGET_SEH", "&&", "cfun", "->", "machine", "->", "indirect_branch_type", "!=", "indirect_branch_keep", ")", ";", "bool", "seh_nop_p", "=", "false", ";", "const", "char", "*", "xasm", ";", "if", "(", "SIBLING_CALL_P", "(", "insn", ")", ")", "{", "if", "(", "direct_p", ")", "{", "if", "(", "ix86_nopic_noplt_attribute_p", "(", "call_op", ")", ")", "{", "direct_p", "=", "false", ";", "if", "(", "TARGET_64BIT", ")", "{", "if", "(", "output_indirect_p", ")", "xasm", "=", "\"{%p0@GOTPCREL(%%rip)|[QWORD PTR %p0@GOTPCREL[rip]]}\"", ";", "else", "xasm", "=", "\"%!jmp\\t{*%p0@GOTPCREL(%%rip)|[QWORD PTR %p0@GOTPCREL[rip]]}\"", ";", "}", "else", "{", "if", "(", "output_indirect_p", ")", "xasm", "=", "\"{%p0@GOT|[DWORD PTR %p0@GOT]}\"", ";", "else", "xasm", "=", "\"%!jmp\\t{*%p0@GOT|[DWORD PTR %p0@GOT]}\"", ";", "}", "}", "else", "xasm", "=", "\"%!jmp\\t%P0\"", ";", "}", "else", "if", "(", "TARGET_SEH", ")", "xasm", "=", "\"%!rex.W jmp\\t%A0\"", ";", "else", "{", "if", "(", "output_indirect_p", ")", "xasm", "=", "\"%0\"", ";", "else", "xasm", "=", "\"%!jmp\\t%A0\"", ";", "}", "if", "(", "output_indirect_p", "&&", "!", "direct_p", ")", "ix86_output_indirect_branch", "(", "call_op", ",", "xasm", ",", "true", ")", ";", "else", "output_asm_insn", "(", "xasm", ",", "&", "call_op", ")", ";", "return", "\"\"", ";", "}", "if", "(", "TARGET_SEH", ")", "{", "rtx_insn", "*", "i", ";", "for", "(", "i", "=", "NEXT_INSN", "(", "insn", ")", ";", "i", ";", "i", "=", "NEXT_INSN", "(", "i", ")", ")", "{", "if", "(", "JUMP_P", "(", "i", ")", "&&", "CROSSING_JUMP_P", "(", "i", ")", ")", "{", "seh_nop_p", "=", "true", ";", "break", ";", "}", "if", "(", "INSN_P", "(", "i", ")", ")", "break", ";", "if", "(", "NOTE_P", "(", "i", ")", "&&", "NOTE_KIND", "(", "i", ")", "==", "NOTE_INSN_EPILOGUE_BEG", "&&", "!", "flag_non_call_exceptions", "&&", "!", "can_throw_internal", "(", "insn", ")", ")", "{", "seh_nop_p", "=", "true", ";", "break", ";", "}", "}", "if", "(", "i", "==", "NULL", ")", "seh_nop_p", "=", "true", ";", "}", "if", "(", "direct_p", ")", "{", "if", "(", "ix86_nopic_noplt_attribute_p", "(", "call_op", ")", ")", "{", "direct_p", "=", "false", ";", "if", "(", "TARGET_64BIT", ")", "{", "if", "(", "output_indirect_p", ")", "xasm", "=", "\"{%p0@GOTPCREL(%%rip)|[QWORD PTR %p0@GOTPCREL[rip]]}\"", ";", "else", "xasm", "=", "\"%!call\\t{*%p0@GOTPCREL(%%rip)|[QWORD PTR %p0@GOTPCREL[rip]]}\"", ";", "}", "else", "{", "if", "(", "output_indirect_p", ")", "xasm", "=", "\"{%p0@GOT|[DWORD PTR %p0@GOT]}\"", ";", "else", "xasm", "=", "\"%!call\\t{*%p0@GOT|[DWORD PTR %p0@GOT]}\"", ";", "}", "}", "else", "xasm", "=", "\"%!call\\t%P0\"", ";", "}", "else", "{", "if", "(", "output_indirect_p", ")", "xasm", "=", "\"%0\"", ";", "else", "xasm", "=", "\"%!call\\t%A0\"", ";", "}", "if", "(", "output_indirect_p", "&&", "!", "direct_p", ")", "ix86_output_indirect_branch", "(", "call_op", ",", "xasm", ",", "false", ")", ";", "else", "output_asm_insn", "(", "xasm", ",", "&", "call_op", ")", ";", "if", "(", "seh_nop_p", ")", "return", "\"nop\"", ";", "return", "\"\"", ";", "}", ""], "natrual_language": ["Output", "the", "assembly", "for", "a", "call", "instruction", "."], "TS_V_token": ["i386", "\"{%p0@GOTPCREL(%%rip)|[QWORD PTR %p0@GOTPCREL[rip]]}\"", "\"%!jmp\\t{*%p0@GOTPCREL(%%rip)|[QWORD PTR %p0@GOTPCREL[rip]]}\"", "\"{%p0@GOT|[DWORD PTR %p0@GOT]}\"", "\"%!jmp\\t{*%p0@GOT|[DWORD PTR %p0@GOT]}\"", "\"%!jmp\\t%P0\"", "\"%!rex.W jmp\\t%A0\"", "\"%0\"", "\"%!jmp\\t%A0\"", "\"\"", "\"{%p0@GOTPCREL(%%rip)|[QWORD PTR %p0@GOTPCREL[rip]]}\"", "\"%!call\\t{*%p0@GOTPCREL(%%rip)|[QWORD PTR %p0@GOTPCREL[rip]]}\"", "\"{%p0@GOT|[DWORD PTR %p0@GOT]}\"", "\"%!call\\t{*%p0@GOT|[DWORD PTR %p0@GOT]}\"", "\"%!call\\t%P0\"", "\"%0\"", "\"%!call\\t%A0\"", "\"nop\"", "\"\""], "File": "i3867", "Func": "ix86_output_call_insn", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 907, "Length": 381, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "LoongArchDAGToDAGISel", "::", "Select", "(", "SDNode", "*", "Node", ")", "{", "if", "(", "Node", "->", "isMachineOpcode", "(", ")", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"== \"", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "dbgs", "(", ")", "<<", "\"\\n\"", ")", ";", "Node", "->", "setNodeId", "(", "-", "1", ")", ";", "return", ";", "}", "unsigned", "Opcode", "=", "Node", "->", "getOpcode", "(", ")", ";", "SDLoc", "DL", "(", "Node", ")", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "break", ";", "}", "SelectCode", "(", "Node", ")", ";", "}", ""], "natrual_language": ["Main", "hook", "for", "targets", "to", "transform", "nodes", "into", "machine", "nodes", "."], "TS_V_token": ["LoongArch", "LoongArch", "\"== \"", "\"\\n\"", "1"], "File": "LoongArchISelDAGToDAG", "Func": "Select", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 908, "Length": 83, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_elf_select_rtx_section", "(", "enum", "machine_mode", "mode", ",", "rtx", "x", ",", "unsigned", "HOST_WIDE_INT", "align", ")", "{", "if", "(", "ASM_OUTPUT_SPECIAL_POOL_ENTRY_P", "(", "x", ",", "mode", ")", ")", "toc_section", "(", ")", ";", "else", "default_elf_select_rtx_section", "(", "mode", ",", "x", ",", "align", ")", ";", "}", ""], "natrual_language": ["A", "C", "statement", "or", "statements", "to", "switch", "to", "the", "appropriate", "section", "for", "output", "of", "RTX", "in", "mode", "MODE", ".", "You", "can", "assume", "that", "RTX", "is", "some", "kind", "of", "constant", "in", "RTL", ".", "The", "argument", "MODE", "is", "redundant", "except", "in", "the", "case", "of", "a", "`", "const_int", "'", "rtx", ".", "Select", "the", "section", "by", "calling", "`", "text_section", "'", "or", "one", "of", "the", "alternatives", "for", "other", "sections", ".", "Do", "not", "define", "this", "macro", "if", "you", "put", "all", "constants", "in", "the", "read-only", "data", "section", "."], "TS_V_token": ["rs6000"], "File": "rs60003", "Func": "rs6000_elf_select_rtx_section", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 909, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_emit_stack_tie", "(", "rtx", "fp", ",", "bool", "hard_frame_needed", ")", "{", "rtvec", "p", ";", "int", "i", ";", "rtx", "regs", "[", "3", "]", ";", "i", "=", "0", ";", "regs", "[", "i", "++", "]", "=", "gen_rtx_REG", "(", "Pmode", ",", "STACK_POINTER_REGNUM", ")", ";", "if", "(", "hard_frame_needed", ")", "regs", "[", "i", "++", "]", "=", "gen_rtx_REG", "(", "Pmode", ",", "HARD_FRAME_POINTER_REGNUM", ")", ";", "if", "(", "!", "(", "REGNO", "(", "fp", ")", "==", "STACK_POINTER_REGNUM", "||", "(", "hard_frame_needed", "&&", "REGNO", "(", "fp", ")", "==", "HARD_FRAME_POINTER_REGNUM", ")", ")", ")", "regs", "[", "i", "++", "]", "=", "fp", ";", "p", "=", "rtvec_alloc", "(", "i", ")", ";", "while", "(", "--", "i", ">=", "0", ")", "{", "rtx", "mem", "=", "gen_frame_mem", "(", "BLKmode", ",", "regs", "[", "i", "]", ")", ";", "RTVEC_ELT", "(", "p", ",", "i", ")", "=", "gen_rtx_SET", "(", "mem", ",", "const0_rtx", ")", ";", "}", "emit_insn", "(", "gen_stack_tie", "(", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "p", ")", ")", ")", ";", "}", ""], "natrual_language": ["This", "ties", "together", "stack", "memory", "(", "MEM", "with", "an", "alias", "set", "of", "rs6000_sr_alias_set", ")", "and", "the", "change", "to", "the", "stack", "pointer", "."], "TS_V_token": ["powerpcspe", "3", "0", "0"], "File": "powerpcspe", "Func": "rs6000_emit_stack_tie", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 910, "Length": 145, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCObjectWriter", "*", "createObjectWriter", "(", "raw_pwrite_stream", "&", "OS", ")", "const", "override", "{", "bool", "is64", "=", "getPointerSize", "(", ")", "==", "8", ";", "return", "createPPCELFObjectWriter", "(", "OS", ",", "is64", ",", "isLittleEndian", "(", ")", ",", "OSABI", ")", ";", "}", ""], "natrual_language": ["Create", "a", "new", "MCObjectWriter", "instance", "for", "use", "by", "the", "assembler", "backend", "to", "emit", "the", "final", "object", "file", "."], "TS_V_token": ["PowerPC", "8", "PPC"], "File": "PPCAsmBackend11", "Func": "createObjectWriter", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 911, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "setPreservesCFG", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["ARM"], "File": "ARMInstrInfo", "Func": "getAnalysisUsage", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 912, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TTIImpl", "::", "isLegalMaskedScatter", "(", "Type", "*", "DataType", ")", "{", "return", "isLegalMaskedGather", "(", "DataType", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "supports", "masked", "scatter", "."], "TS_V_token": ["X86", "X86"], "File": "X86TargetTransformInfo (3)", "Func": "isLegalMaskedScatter", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 913, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "CSKYAsmPrinter", "::", "emitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "if", "(", "emitPseudoExpansionLowering", "(", "*", "OutStreamer", ",", "MI", ")", ")", "return", ";", "MCInst", "TmpInst", ";", "MCInstLowering", ".", "Lower", "(", "MI", ",", "TmpInst", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "TmpInst", ")", ";", "}", ""], "natrual_language": ["Targets", "should", "implement", "this", "to", "emit", "instructions", "."], "TS_V_token": ["CSKY", "CSKY"], "File": "CSKYAsmPrinter", "Func": "emitInstruction", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 914, "Length": 44, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "rs6000_fndecl_pcrel_p", "(", "const_tree", "fndecl", ")", "{", "if", "(", "DEFAULT_ABI", "!=", "ABI_ELFv2", ")", "return", "false", ";", "struct", "cl_target_option", "*", "opts", "=", "target_opts_for_fn", "(", "fndecl", ")", ";", "return", "(", "(", "opts", "->", "x_rs6000_isa_flags", "&", "OPTION_MASK_PCREL", ")", "!=", "0", "&&", "TARGET_CMODEL", "==", "CMODEL_MEDIUM", ")", ";", "}", ""], "natrual_language": ["Return", "whether", "we", "should", "generate", "PC-relative", "code", "for", "FNDECL", "."], "TS_V_token": ["rs6000", "0"], "File": "rs6000", "Func": "rs6000_fndecl_pcrel_p", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 915, "Length": 44, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_must_pass_in_stack", "(", "machine_mode", "mode", ",", "const_tree", "type", ")", "{", "if", "(", "DEFAULT_ABI", "==", "ABI_AIX", "||", "DEFAULT_ABI", "==", "ABI_ELFv2", "||", "TARGET_64BIT", ")", "return", "must_pass_in_stack_var_size", "(", "mode", ",", "type", ")", ";", "else", "return", "must_pass_in_stack_var_size_or_pad", "(", "mode", ",", "type", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "TYPE", "must", "be", "passed", "on", "the", "stack", "and", "not", "in", "registers", "."], "TS_V_token": ["rs6000"], "File": "rs60004", "Func": "rs6000_must_pass_in_stack", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 916, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCCallLowering", "::", "lowerFormalArguments", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "const", "Function", "&", "F", ",", "ArrayRef", "<", "ArrayRef", "<", "Register", ">>", "VRegs", ",", "FunctionLoweringInfo", "&", "FLI", ")", "const", "{", "MachineFunction", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "const", "auto", "&", "DL", "=", "F", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "auto", "&", "TLI", "=", "*", "getTLI", "<", "PPCTargetLowering", ">", "(", ")", ";", "SmallVector", "<", "ArgInfo", ",", "8", ">", "SplitArgs", ";", "unsigned", "I", "=", "0", ";", "for", "(", "const", "auto", "&", "Arg", ":", "F", ".", "args", "(", ")", ")", "{", "if", "(", "DL", ".", "getTypeStoreSize", "(", "Arg", ".", "getType", "(", ")", ")", ".", "isZero", "(", ")", ")", "continue", ";", "ArgInfo", "OrigArg", "{", "VRegs", "[", "I", "]", ",", "Arg", ",", "I", "}", ";", "setArgFlags", "(", "OrigArg", ",", "I", "+", "AttributeList", "::", "FirstArgIndex", ",", "DL", ",", "F", ")", ";", "splitToValueTypes", "(", "OrigArg", ",", "SplitArgs", ",", "DL", ",", "F", ".", "getCallingConv", "(", ")", ")", ";", "++", "I", ";", "}", "CCAssignFn", "*", "AssignFn", "=", "TLI", ".", "ccAssignFnForCall", "(", "F", ".", "getCallingConv", "(", ")", ",", "false", ",", "F", ".", "isVarArg", "(", ")", ")", ";", "IncomingValueAssigner", "ArgAssigner", "(", "AssignFn", ")", ";", "FormalArgHandler", "ArgHandler", "(", "MIRBuilder", ",", "MRI", ")", ";", "return", "determineAndHandleAssignments", "(", "ArgHandler", ",", "ArgAssigner", ",", "SplitArgs", ",", "MIRBuilder", ",", "F", ".", "getCallingConv", "(", ")", ",", "F", ".", "isVarArg", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "the", "incoming", "(", "formal", ")", "arguments", ",", "described", "by", "VRegs", ",", "for", "GlobalISel", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "8", "0"], "File": "PPCCallLowering", "Func": "lowerFormalArguments", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 917, "Length": 230, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCSection", "*", "MipsTargetObjectFile", "::", "getSectionForConstant", "(", "const", "DataLayout", "&", "DL", ",", "SectionKind", "Kind", ",", "const", "Constant", "*", "C", ",", "unsigned", "&", "Align", ",", "const", "GlobalObject", "*", "GO", ")", "const", "{", "if", "(", "IsConstantInSmallSection", "(", "DL", ",", "C", ",", "*", "TM", ")", ")", "return", "SmallDataSection", ";", "return", "TargetLoweringObjectFileELF", "::", "getSectionForConstant", "(", "DL", ",", "Kind", ",", "C", ",", "Align", ",", "GO", ")", ";", "}", ""], "natrual_language": ["Given", "a", "constant", "with", "the", "SectionKind", ",", "return", "a", "section", "that", "it", "should", "be", "placed", "in", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsTargetObjectFile25", "Func": "getSectionForConstant", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 918, "Length": 62, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCPassConfig", "::", "addPreISel", "(", ")", "{", "if", "(", "!", "DisableInstrFormPrep", "&&", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createPPCLoopInstrFormPrepPass", "(", "getPPCTargetMachine", "(", ")", ")", ")", ";", "if", "(", "!", "DisableCTRLoops", "&&", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createHardwareLoopsPass", "(", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["{", "{", "@", "For", "GlobalISel"], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC"], "File": "PPCTargetMachine11", "Func": "addPreISel", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 919, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mep_mov_ok", "(", "rtx", "*", "operands", ",", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ")", "{", "int", "i", ";", "fprintf", "(", "stderr", ",", "\"mep_mov_ok %s %c=%c\\n\"", ",", "mode_name", "[", "mode", "]", ",", "mep_section_tag", "(", "operands", "[", "0", "]", ")", ",", "mep_section_tag", "(", "operands", "[", "1", "]", ")", ")", ";", "debug_rtx", "(", "operands", "[", "0", "]", ")", ";", "debug_rtx", "(", "operands", "[", "1", "]", ")", ";", "if", "(", "GET_CODE", "(", "operands", "[", "1", "]", ")", "==", "HIGH", ")", "return", "false", ";", "if", "(", "mep_section_tag", "(", "operands", "[", "0", "]", ")", "==", "'f'", "||", "mep_section_tag", "(", "operands", "[", "1", "]", ")", "==", "'f'", ")", "{", "fprintf", "(", "stderr", ",", "\" - no, f\\n\"", ")", ";", "return", "false", ";", "}", "i", "=", "mep_section_tag", "(", "operands", "[", "1", "]", ")", ";", "if", "(", "(", "i", "==", "'b'", "||", "i", "==", "'t'", ")", "&&", "!", "reload_completed", "&&", "!", "reload_in_progress", ")", "{", "fprintf", "(", "stderr", ",", "\" - no, bt\\n\"", ")", ";", "return", "false", ";", "}", "for", "(", "i", "=", "0", ";", "i", "<", "2", ";", "i", "++", ")", "{", "rtx", "x", "=", "operands", "[", "i", "]", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "SUBREG", ")", "x", "=", "XEXP", "(", "x", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "REG", "&&", "!", "MEP_CONTROL_REG", "(", "x", ")", ")", "{", "fprintf", "(", "stderr", ",", "\" - ok\\n\"", ")", ";", "return", "true", ";", "}", "}", "fprintf", "(", "stderr", ",", "\" - no, no gen reg\\n\"", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["Cases", "where", "the", "pattern", "ca", "n't", "be", "made", "to", "use", "at", "all", "."], "TS_V_token": ["mep", "\"mep_mov_ok %s %c=%c\\n\"", "0", "1", "0", "1", "1", "0", "1", "\" - no, f\\n\"", "1", "\" - no, bt\\n\"", "0", "2", "0", "\" - ok\\n\"", "\" - no, no gen reg\\n\""], "File": "mep", "Func": "mep_mov_ok", "Target": "mep", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 920, "Length": 227, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "bool", "inline_secondary_memory_needed", "(", "enum", "reg_class", "class1", ",", "enum", "reg_class", "class2", ",", "machine_mode", "mode", ",", "int", "strict", ")", "{", "if", "(", "lra_in_progress", "&&", "(", "class1", "==", "NO_REGS", "||", "class2", "==", "NO_REGS", ")", ")", "return", "false", ";", "if", "(", "MAYBE_FLOAT_CLASS_P", "(", "class1", ")", "!=", "FLOAT_CLASS_P", "(", "class1", ")", "||", "MAYBE_FLOAT_CLASS_P", "(", "class2", ")", "!=", "FLOAT_CLASS_P", "(", "class2", ")", "||", "MAYBE_SSE_CLASS_P", "(", "class1", ")", "!=", "SSE_CLASS_P", "(", "class1", ")", "||", "MAYBE_SSE_CLASS_P", "(", "class2", ")", "!=", "SSE_CLASS_P", "(", "class2", ")", "||", "MAYBE_MMX_CLASS_P", "(", "class1", ")", "!=", "MMX_CLASS_P", "(", "class1", ")", "||", "MAYBE_MMX_CLASS_P", "(", "class2", ")", "!=", "MMX_CLASS_P", "(", "class2", ")", "||", "MAYBE_MASK_CLASS_P", "(", "class1", ")", "!=", "MASK_CLASS_P", "(", "class1", ")", "||", "MAYBE_MASK_CLASS_P", "(", "class2", ")", "!=", "MASK_CLASS_P", "(", "class2", ")", ")", "{", "gcc_assert", "(", "!", "strict", "||", "lra_in_progress", ")", ";", "return", "true", ";", "}", "if", "(", "FLOAT_CLASS_P", "(", "class1", ")", "!=", "FLOAT_CLASS_P", "(", "class2", ")", ")", "return", "true", ";", "if", "(", "(", "MASK_CLASS_P", "(", "class1", ")", "!=", "MASK_CLASS_P", "(", "class2", ")", ")", "&&", "(", "GET_MODE_SIZE", "(", "mode", ")", ">", "UNITS_PER_WORD", ")", ")", "return", "true", ";", "if", "(", "MMX_CLASS_P", "(", "class1", ")", "!=", "MMX_CLASS_P", "(", "class2", ")", ")", "return", "true", ";", "if", "(", "SSE_CLASS_P", "(", "class1", ")", "!=", "SSE_CLASS_P", "(", "class2", ")", ")", "{", "if", "(", "!", "TARGET_SSE2", ")", "return", "true", ";", "if", "(", "(", "SSE_CLASS_P", "(", "class1", ")", "&&", "!", "TARGET_INTER_UNIT_MOVES_FROM_VEC", ")", "||", "(", "SSE_CLASS_P", "(", "class2", ")", "&&", "!", "TARGET_INTER_UNIT_MOVES_TO_VEC", ")", ")", "return", "true", ";", "if", "(", "GET_MODE_SIZE", "(", "mode", ")", ">", "UNITS_PER_WORD", ")", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["If", "we", "are", "copying", "between", "general", "and", "FP", "registers", ",", "we", "need", "a", "memory", "location", ".", "The", "same", "is", "true", "for", "SSE", "and", "MMX", "registers", ".", "To", "optimize", "register_move_cost", "performance", ",", "allow", "inline", "variant", ".", "The", "macro", "ca", "n't", "work", "reliably", "when", "one", "of", "the", "CLASSES", "is", "class", "containing", "registers", "from", "multiple", "units", "(", "SSE", ",", "MMX", ",", "integer", ")", ".", "We", "avoid", "this", "by", "never", "combining", "those", "units", "in", "single", "alternative", "in", "the", "machine", "description", ".", "Ensure", "that", "this", "constraint", "holds", "to", "avoid", "unexpected", "surprises", ".", "When", "STRICT", "is", "false", ",", "we", "are", "being", "called", "from", "REGISTER_MOVE_COST", ",", "so", "do", "not", "enforce", "these", "sanity", "checks", "."], "TS_V_token": ["i386"], "File": "i3866", "Func": "inline_secondary_memory_needed", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 921, "Length": 251, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86TargetLowering", "::", "insertSSPDeclarations", "(", "Module", "&", "M", ")", "const", "{", "if", "(", "Subtarget", ".", "getTargetTriple", "(", ")", ".", "isOSMSVCRT", "(", ")", ")", "{", "M", ".", "getOrInsertGlobal", "(", "\"__security_cookie\"", ",", "Type", "::", "getInt8PtrTy", "(", "M", ".", "getContext", "(", ")", ")", ")", ";", "auto", "*", "SecurityCheckCookie", "=", "cast", "<", "Function", ">", "(", "M", ".", "getOrInsertFunction", "(", "\"__security_check_cookie\"", ",", "Type", "::", "getVoidTy", "(", "M", ".", "getContext", "(", ")", ")", ",", "Type", "::", "getInt8PtrTy", "(", "M", ".", "getContext", "(", ")", ")", ",", "nullptr", ")", ")", ";", "SecurityCheckCookie", "->", "setCallingConv", "(", "CallingConv", "::", "X86_FastCall", ")", ";", "SecurityCheckCookie", "->", "addAttribute", "(", "1", ",", "Attribute", "::", "AttrKind", "::", "InReg", ")", ";", "return", ";", "}", "if", "(", "Subtarget", ".", "isTargetGlibc", "(", ")", ")", "return", ";", "TargetLowering", "::", "insertSSPDeclarations", "(", "M", ")", ";", "}", ""], "natrual_language": ["Inserts", "necessary", "declarations", "for", "SSP", "(", "stack", "protection", ")", "purpose", "."], "TS_V_token": ["X86", "X86", "\"__security_cookie\"", "\"__security_check_cookie\"", "X86", "1"], "File": "X86ISelLowering (3)", "Func": "insertSSPDeclarations", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 922, "Length": 126, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_modes_tieable_p", "(", "machine_mode", "mode1", ",", "machine_mode", "mode2", ")", "{", "if", "(", "mode1", "==", "mode2", ")", "return", "true", ";", "if", "(", "ix86_tieable_integer_mode_p", "(", "mode1", ")", "&&", "ix86_tieable_integer_mode_p", "(", "mode2", ")", ")", "return", "true", ";", "if", "(", "mode2", "==", "XFmode", ")", "return", "mode1", "==", "SFmode", "||", "mode1", "==", "DFmode", ";", "if", "(", "mode2", "==", "DFmode", ")", "return", "mode1", "==", "SFmode", ";", "if", "(", "GET_MODE_SIZE", "(", "mode2", ")", "==", "32", "&&", "ix86_hard_regno_mode_ok", "(", "FIRST_SSE_REG", ",", "mode2", ")", ")", "return", "(", "GET_MODE_SIZE", "(", "mode1", ")", "==", "32", "&&", "ix86_hard_regno_mode_ok", "(", "FIRST_SSE_REG", ",", "mode1", ")", ")", ";", "if", "(", "GET_MODE_SIZE", "(", "mode2", ")", "==", "16", "&&", "ix86_hard_regno_mode_ok", "(", "FIRST_SSE_REG", ",", "mode2", ")", ")", "return", "(", "GET_MODE_SIZE", "(", "mode1", ")", "==", "16", "&&", "ix86_hard_regno_mode_ok", "(", "FIRST_SSE_REG", ",", "mode1", ")", ")", ";", "if", "(", "GET_MODE_SIZE", "(", "mode2", ")", "==", "8", "&&", "ix86_hard_regno_mode_ok", "(", "FIRST_MMX_REG", ",", "mode2", ")", ")", "return", "(", "GET_MODE_SIZE", "(", "mode1", ")", "==", "8", "&&", "ix86_hard_regno_mode_ok", "(", "FIRST_MMX_REG", ",", "mode1", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "MODE1", "is", "accessible", "in", "a", "register", "that", "can", "hold", "MODE2", "without", "copying", ".", "That", "is", ",", "all", "register", "classes", "that", "can", "hold", "MODE2", "can", "also", "hold", "MODE1", "."], "TS_V_token": ["i386", "32", "32", "16", "16", "8", "8"], "File": "i3867", "Func": "ix86_modes_tieable_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 923, "Length": 164, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZDAGToDAGISel", "::", "SelectInlineAsmMemoryOperand", "(", "const", "SDValue", "&", "Op", ",", "unsigned", "ConstraintID", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "OutOps", ")", "{", "SystemZAddressingMode", "::", "AddrForm", "Form", ";", "SystemZAddressingMode", "::", "DispRange", "DispRange", ";", "SDValue", "Base", ",", "Disp", ",", "Index", ";", "switch", "(", "ConstraintID", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unexpected asm memory constraint\"", ")", ";", "case", "InlineAsm", "::", "Constraint_i", ":", "case", "InlineAsm", "::", "Constraint_Q", ":", "Form", "=", "SystemZAddressingMode", "::", "FormBD", ";", "DispRange", "=", "SystemZAddressingMode", "::", "Disp12Only", ";", "break", ";", "case", "InlineAsm", "::", "Constraint_R", ":", "Form", "=", "SystemZAddressingMode", "::", "FormBDXNormal", ";", "DispRange", "=", "SystemZAddressingMode", "::", "Disp12Only", ";", "break", ";", "case", "InlineAsm", "::", "Constraint_S", ":", "Form", "=", "SystemZAddressingMode", "::", "FormBD", ";", "DispRange", "=", "SystemZAddressingMode", "::", "Disp20Only", ";", "break", ";", "case", "InlineAsm", "::", "Constraint_T", ":", "case", "InlineAsm", "::", "Constraint_m", ":", "case", "InlineAsm", "::", "Constraint_o", ":", "Form", "=", "SystemZAddressingMode", "::", "FormBDXNormal", ";", "DispRange", "=", "SystemZAddressingMode", "::", "Disp20Only", ";", "break", ";", "}", "if", "(", "selectBDXAddr", "(", "Form", ",", "DispRange", ",", "Op", ",", "Base", ",", "Disp", ",", "Index", ")", ")", "{", "const", "TargetRegisterClass", "*", "TRC", "=", "Subtarget", "->", "getRegisterInfo", "(", ")", "->", "getPointerRegClass", "(", "*", "MF", ")", ";", "SDLoc", "DL", "(", "Base", ")", ";", "SDValue", "RC", "=", "CurDAG", "->", "getTargetConstant", "(", "TRC", "->", "getID", "(", ")", ",", "DL", ",", "MVT", "::", "i32", ")", ";", "if", "(", "Base", ".", "getOpcode", "(", ")", "!=", "ISD", "::", "TargetFrameIndex", "&&", "Base", ".", "getOpcode", "(", ")", "!=", "ISD", "::", "Register", ")", "{", "Base", "=", "SDValue", "(", "CurDAG", "->", "getMachineNode", "(", "TargetOpcode", "::", "COPY_TO_REGCLASS", ",", "DL", ",", "Base", ".", "getValueType", "(", ")", ",", "Base", ",", "RC", ")", ",", "0", ")", ";", "}", "if", "(", "Index", ".", "getOpcode", "(", ")", "!=", "ISD", "::", "Register", ")", "{", "Index", "=", "SDValue", "(", "CurDAG", "->", "getMachineNode", "(", "TargetOpcode", "::", "COPY_TO_REGCLASS", ",", "DL", ",", "Index", ".", "getValueType", "(", ")", ",", "Index", ",", "RC", ")", ",", "0", ")", ";", "}", "OutOps", ".", "push_back", "(", "Base", ")", ";", "OutOps", ".", "push_back", "(", "Disp", ")", ";", "OutOps", ".", "push_back", "(", "Index", ")", ";", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["SelectInlineAsmMemoryOperand", "-", "Select", "the", "specified", "address", "as", "a", "target", "addressing", "mode", ",", "according", "to", "the", "specified", "constraint", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZAddressingMode::AddrForm", "SystemZAddressingMode::DispRange", "\"Unexpected asm memory constraint\"", "SystemZAddressingMode::FormBD", "SystemZAddressingMode::Disp12Only", "SystemZAddressingMode::FormBDXNormal", "SystemZAddressingMode::Disp12Only", "SystemZAddressingMode::FormBD", "SystemZAddressingMode::Disp20Only", "SystemZAddressingMode::FormBDXNormal", "SystemZAddressingMode::Disp20Only", "MVT::i32", "ISD::TargetFrameIndex", "ISD::Register", "0", "ISD::Register", "0"], "File": "SystemZISelDAGToDAG (2)1", "Func": "SelectInlineAsmMemoryOperand", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 924, "Length": 328, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "char", "*", "describe_cache", "(", "struct", "cache_desc", "level1", ",", "struct", "cache_desc", "level2", ")", "{", "char", "size", "[", "100", "]", ",", "line", "[", "100", "]", ",", "size2", "[", "100", "]", ";", "snprintf", "(", "size", ",", "sizeof", "(", "size", ")", ",", "\"--param l1-cache-size=%u \"", ",", "level1", ".", "sizekb", ")", ";", "snprintf", "(", "line", ",", "sizeof", "(", "line", ")", ",", "\"--param l1-cache-line-size=%u \"", ",", "level1", ".", "line", ")", ";", "snprintf", "(", "size2", ",", "sizeof", "(", "size2", ")", ",", "\"--param l2-cache-size=%u \"", ",", "level2", ".", "sizekb", ")", ";", "return", "concat", "(", "size", ",", "line", ",", "size2", ",", "NULL", ")", ";", "}", ""], "natrual_language": ["Returns", "parameters", "that", "describe", "L1_ASSOC", "associative", "cache", "of", "size", "L1_SIZEKB", "with", "lines", "of", "size", "L1_LINE", ",", "and", "L2_SIZEKB", "."], "TS_V_token": ["i386", "100", "100", "100", "\"--param l1-cache-size=%u \"", "\"--param l1-cache-line-size=%u \"", "\"--param l2-cache-size=%u \""], "File": "driver-i386", "Func": "describe_cache", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 925, "Length": 91, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "TM", "=", "static_cast", "<", "const", "PPCTargetMachine", "*", ">", "(", "&", "MF", ".", "getTarget", "(", ")", ")", ";", "TII", "=", "TM", "->", "getInstrInfo", "(", ")", ";", "bool", "Changed", "=", "false", ";", "if", "(", "MF", ".", "size", "(", ")", "<", "2", ")", "return", "Changed", ";", "for", "(", "MachineFunction", "::", "iterator", "I", "=", "MF", ".", "begin", "(", ")", ";", "I", "!=", "MF", ".", "end", "(", ")", ";", ")", "{", "MachineBasicBlock", "&", "B", "=", "*", "I", "++", ";", "if", "(", "processBlock", "(", "B", ")", ")", "Changed", "=", "true", ";", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["PowerPC", "PPC", "2"], "File": "PPCInstrInfo1", "Func": "runOnMachineFunction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 926, "Length": 99, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SparcFrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ")", "const", "{", "SparcMachineFunctionInfo", "*", "FuncInfo", "=", "MF", ".", "getInfo", "<", "SparcMachineFunctionInfo", ">", "(", ")", ";", "MachineBasicBlock", "&", "MBB", "=", "MF", ".", "front", "(", ")", ";", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "SparcInstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "SparcInstrInfo", "*", ">", "(", "MF", ".", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "begin", "(", ")", ";", "DebugLoc", "dl", "=", "MBBI", "!=", "MBB", ".", "end", "(", ")", "?", "MBBI", "->", "getDebugLoc", "(", ")", ":", "DebugLoc", "(", ")", ";", "int", "NumBytes", "=", "(", "int", ")", "MFI", "->", "getStackSize", "(", ")", ";", "unsigned", "SAVEri", "=", "SP", "::", "SAVEri", ";", "unsigned", "SAVErr", "=", "SP", "::", "SAVErr", ";", "if", "(", "FuncInfo", "->", "isLeafProc", "(", ")", ")", "{", "if", "(", "NumBytes", "==", "0", ")", "return", ";", "SAVEri", "=", "SP", "::", "ADDri", ";", "SAVErr", "=", "SP", "::", "ADDrr", ";", "}", "NumBytes", "=", "-", "MF", ".", "getTarget", "(", ")", ".", "getSubtarget", "<", "SparcSubtarget", ">", "(", ")", ".", "getAdjustedFrameSize", "(", "NumBytes", ")", ";", "emitSPAdjustment", "(", "MF", ",", "MBB", ",", "MBBI", ",", "NumBytes", ",", "SAVErr", ",", "SAVEri", ")", ";", "MachineModuleInfo", "&", "MMI", "=", "MF", ".", "getMMI", "(", ")", ";", "const", "MCRegisterInfo", "*", "MRI", "=", "MMI", ".", "getContext", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "unsigned", "regFP", "=", "MRI", "->", "getDwarfRegNum", "(", "SP", "::", "I6", ",", "true", ")", ";", "unsigned", "CFIIndex", "=", "MMI", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createDefCfaRegister", "(", "nullptr", ",", "regFP", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";", "CFIIndex", "=", "MMI", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createWindowSave", "(", "nullptr", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";", "unsigned", "regInRA", "=", "MRI", "->", "getDwarfRegNum", "(", "SP", "::", "I7", ",", "true", ")", ";", "unsigned", "regOutRA", "=", "MRI", "->", "getDwarfRegNum", "(", "SP", "::", "O7", ",", "true", ")", ";", "CFIIndex", "=", "MMI", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createRegister", "(", "nullptr", ",", "regOutRA", ",", "regInRA", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";", "}", ""], "natrual_language": ["emitProlog/emitEpilog", "-", "These", "methods", "insert", "prolog", "and", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["Sparc", "Sparc", "Sparc", "Sparc", "Sparc", "Sparc", "SP::SAVEri", "SP::SAVErr", "0", "SP::ADDri", "SP::ADDrr", "Sparc", "SP", "SP::I6", "SP::I7", "SP::O7"], "File": "SparcFrameLowering1", "Func": "emitPrologue", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 927, "Length": 378, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86InstrInfo", "::", "replaceBranchWithTailCall", "(", "MachineBasicBlock", "&", "MBB", ",", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "BranchCond", ",", "const", "MachineInstr", "&", "TailCall", ")", "const", "{", "assert", "(", "canMakeTailCallConditional", "(", "BranchCond", ",", "TailCall", ")", ")", ";", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "end", "(", ")", ";", "while", "(", "I", "!=", "MBB", ".", "begin", "(", ")", ")", "{", "--", "I", ";", "if", "(", "I", "->", "isDebugValue", "(", ")", ")", "continue", ";", "if", "(", "!", "I", "->", "isBranch", "(", ")", ")", "assert", "(", "0", "&&", "\"Can't find the branch to replace!\"", ")", ";", "X86", "::", "CondCode", "CC", "=", "getCondFromBranchOpc", "(", "I", "->", "getOpcode", "(", ")", ")", ";", "assert", "(", "BranchCond", ".", "size", "(", ")", "==", "1", ")", ";", "if", "(", "CC", "!=", "BranchCond", "[", "0", "]", ".", "getImm", "(", ")", ")", "continue", ";", "break", ";", "}", "unsigned", "Opc", "=", "TailCall", ".", "getOpcode", "(", ")", "==", "X86", "::", "TCRETURNdi", "?", "X86", "::", "TCRETURNdicc", ":", "X86", "::", "TCRETURNdi64cc", ";", "auto", "MIB", "=", "BuildMI", "(", "MBB", ",", "I", ",", "MBB", ".", "findDebugLoc", "(", "I", ")", ",", "get", "(", "Opc", ")", ")", ";", "MIB", "->", "addOperand", "(", "TailCall", ".", "getOperand", "(", "0", ")", ")", ";", "MIB", ".", "addImm", "(", "0", ")", ";", "MIB", "->", "addOperand", "(", "BranchCond", "[", "0", "]", ")", ";", "MIB", ".", "copyImplicitOps", "(", "TailCall", ")", ";", "LivePhysRegs", "LiveRegs", "(", "&", "getRegisterInfo", "(", ")", ")", ";", "LiveRegs", ".", "addLiveOuts", "(", "MBB", ")", ";", "SmallVector", "<", "std", "::", "pair", "<", "unsigned", ",", "const", "MachineOperand", "*", ">", ",", "8", ">", "Clobbers", ";", "LiveRegs", ".", "stepForward", "(", "*", "MIB", ",", "Clobbers", ")", ";", "for", "(", "const", "auto", "&", "C", ":", "Clobbers", ")", "{", "MIB", ".", "addReg", "(", "C", ".", "first", ",", "RegState", "::", "Implicit", ")", ";", "MIB", ".", "addReg", "(", "C", ".", "first", ",", "RegState", "::", "Implicit", "|", "RegState", "::", "Define", ")", ";", "}", "I", "->", "eraseFromParent", "(", ")", ";", "}", ""], "natrual_language": ["Replace", "the", "conditional", "branch", "in", "MBB", "with", "a", "conditional", "tail", "call", "."], "TS_V_token": ["X86", "X86", "0", "\"Can't find the branch to replace!\"", "X86::CondCode", "1", "0", "X86::TCRETURNdi", "X86::TCRETURNdicc", "X86::TCRETURNdi64cc", "0", "0", "0", "8"], "File": "X86InstrInfo114", "Func": "replaceBranchWithTailCall", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 928, "Length": 297, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ArrayRef", "<", "std", "::", "pair", "<", "unsigned", ",", "const", "char", "*", ">>", "X86InstrInfo", "::", "getSerializableDirectMachineOperandTargetFlags", "(", ")", "const", "{", "using", "namespace", "X86II", ";", "static", "const", "std", "::", "pair", "<", "unsigned", ",", "const", "char", "*", ">", "TargetFlags", "[", "]", "=", "{", "{", "MO_GOT_ABSOLUTE_ADDRESS", ",", "\"x86-got-absolute-address\"", "}", ",", "{", "MO_PIC_BASE_OFFSET", ",", "\"x86-pic-base-offset\"", "}", ",", "{", "MO_GOT", ",", "\"x86-got\"", "}", ",", "{", "MO_GOTOFF", ",", "\"x86-gotoff\"", "}", ",", "{", "MO_GOTPCREL", ",", "\"x86-gotpcrel\"", "}", ",", "{", "MO_PLT", ",", "\"x86-plt\"", "}", ",", "{", "MO_TLSGD", ",", "\"x86-tlsgd\"", "}", ",", "{", "MO_TLSLD", ",", "\"x86-tlsld\"", "}", ",", "{", "MO_TLSLDM", ",", "\"x86-tlsldm\"", "}", ",", "{", "MO_GOTTPOFF", ",", "\"x86-gottpoff\"", "}", ",", "{", "MO_INDNTPOFF", ",", "\"x86-indntpoff\"", "}", ",", "{", "MO_TPOFF", ",", "\"x86-tpoff\"", "}", ",", "{", "MO_DTPOFF", ",", "\"x86-dtpoff\"", "}", ",", "{", "MO_NTPOFF", ",", "\"x86-ntpoff\"", "}", ",", "{", "MO_GOTNTPOFF", ",", "\"x86-gotntpoff\"", "}", ",", "{", "MO_DLLIMPORT", ",", "\"x86-dllimport\"", "}", ",", "{", "MO_DARWIN_NONLAZY", ",", "\"x86-darwin-nonlazy\"", "}", ",", "{", "MO_DARWIN_NONLAZY_PIC_BASE", ",", "\"x86-darwin-nonlazy-pic-base\"", "}", ",", "{", "MO_TLVP", ",", "\"x86-tlvp\"", "}", ",", "{", "MO_TLVP_PIC_BASE", ",", "\"x86-tlvp-pic-base\"", "}", ",", "{", "MO_SECREL", ",", "\"x86-secrel\"", "}", "}", ";", "return", "makeArrayRef", "(", "TargetFlags", ")", ";", "}", ""], "natrual_language": ["Return", "an", "array", "that", "contains", "the", "direct", "target", "flag", "values", "and", "their", "names", "."], "TS_V_token": ["X86", "X86", "X86", "\"x86-got-absolute-address\"", "\"x86-pic-base-offset\"", "\"x86-got\"", "\"x86-gotoff\"", "\"x86-gotpcrel\"", "\"x86-plt\"", "\"x86-tlsgd\"", "\"x86-tlsld\"", "\"x86-tlsldm\"", "\"x86-gottpoff\"", "\"x86-indntpoff\"", "\"x86-tpoff\"", "\"x86-dtpoff\"", "\"x86-ntpoff\"", "\"x86-gotntpoff\"", "\"x86-dllimport\"", "\"x86-darwin-nonlazy\"", "\"x86-darwin-nonlazy-pic-base\"", "\"x86-tlvp\"", "\"x86-tlvp-pic-base\"", "\"x86-secrel\""], "File": "X86InstrInfo (2)1", "Func": "getSerializableDirectMachineOperandTargetFlags", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 929, "Length": 174, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "void", "aarch64_sub_sp", "(", "rtx", "temp1", ",", "rtx", "temp2", ",", "poly_int64", "delta", ",", "bool", "frame_related_p", ")", "{", "aarch64_add_offset", "(", "Pmode", ",", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "-", "delta", ",", "temp1", ",", "temp2", ",", "frame_related_p", ")", ";", "}", ""], "natrual_language": ["Subtract", "DELTA", "from", "the", "stack", "pointer", ",", "marking", "the", "instructions", "frame-related", "if", "FRAME_RELATED_P", ".", "TEMP1", "is", "available", "as", "a", "temporary", "if", "nonnull", "."], "TS_V_token": ["aarch64"], "File": "aarch645", "Func": "aarch64_sub_sp", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 930, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "sh_expand_prologue", "(", "void", ")", "{", "int", "save_flags", "=", "target_flags", ";", "tree", "sp_switch_attr", "=", "lookup_attribute", "(", "\"sp_switch\"", ",", "DECL_ATTRIBUTES", "(", "current_function_decl", ")", ")", ";", "current_function_interrupt", "=", "sh_cfun_interrupt_handler_p", "(", ")", ";", "int", "pretend_args", "=", "crtl", "->", "args", ".", "pretend_args_size", ";", "if", "(", "TARGET_VARARGS_PRETEND_ARGS", "(", "current_function_decl", ")", "&&", "(", "NPARM_REGS", "(", "SImode", ")", ">", "crtl", "->", "args", ".", "info", ".", "arg_count", "[", "(", "int", ")", "SH_ARG_INT", "]", ")", ")", "pretend_args", "=", "0", ";", "output_stack_adjust", "(", "-", "pretend_args", ",", "stack_pointer_rtx", ",", "0", ",", "NULL", ",", "true", ")", ";", "int", "stack_usage", "=", "pretend_args", ";", "if", "(", "cfun", "->", "stdarg", ")", "{", "if", "(", "TARGET_VARARGS_PRETEND_ARGS", "(", "current_function_decl", ")", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "NPARM_REGS", "(", "SImode", ")", ";", "i", "++", ")", "{", "int", "rn", "=", "NPARM_REGS", "(", "SImode", ")", "+", "FIRST_PARM_REG", "-", "i", "-", "1", ";", "if", "(", "i", ">=", "(", "NPARM_REGS", "(", "SImode", ")", "-", "crtl", "->", "args", ".", "info", ".", "arg_count", "[", "(", "int", ")", "SH_ARG_INT", "]", ")", ")", "break", ";", "push", "(", "rn", ")", ";", "stack_usage", "+=", "GET_MODE_SIZE", "(", "SImode", ")", ";", "}", "}", "}", "if", "(", "sp_switch_attr", ")", "{", "rtx", "lab", ",", "newsrc", ";", "tree", "arg", "=", "TREE_VALUE", "(", "TREE_VALUE", "(", "sp_switch_attr", ")", ")", ";", "const", "char", "*", "s", "=", "ggc_strdup", "(", "TREE_STRING_POINTER", "(", "arg", ")", ")", ";", "rtx", "sp_switch", "=", "gen_rtx_SYMBOL_REF", "(", "Pmode", ",", "s", ")", ";", "lab", "=", "add_constant", "(", "sp_switch", ",", "SImode", ",", "0", ")", ";", "newsrc", "=", "gen_rtx_LABEL_REF", "(", "VOIDmode", ",", "lab", ")", ";", "emit_insn", "(", "gen_sp_switch_1", "(", "newsrc", ")", ")", ";", "}", "HARD_REG_SET", "live_regs_mask", ";", "int", "d", "=", "calc_live_regs", "(", "&", "live_regs_mask", ")", ";", "if", "(", "target_flags", "!=", "save_flags", "&&", "!", "current_function_interrupt", ")", "emit_insn", "(", "gen_toggle_sz", "(", ")", ")", ";", "push_regs", "(", "&", "live_regs_mask", ",", "current_function_interrupt", ")", ";", "stack_usage", "+=", "d", ";", "if", "(", "flag_pic", "&&", "!", "TARGET_FDPIC", "&&", "df_regs_ever_live_p", "(", "PIC_OFFSET_TABLE_REGNUM", ")", ")", "emit_insn", "(", "gen_GOTaddr2picreg", "(", "const0_rtx", ")", ")", ";", "if", "(", "target_flags", "!=", "save_flags", "&&", "!", "current_function_interrupt", ")", "emit_insn", "(", "gen_toggle_sz", "(", ")", ")", ";", "target_flags", "=", "save_flags", ";", "output_stack_adjust", "(", "-", "rounded_frame_size", "(", "d", ")", ",", "stack_pointer_rtx", ",", "0", ",", "NULL", ",", "true", ")", ";", "stack_usage", "+=", "rounded_frame_size", "(", "d", ")", ";", "if", "(", "frame_pointer_needed", ")", "emit_frame_insn", "(", "GEN_MOV", "(", "hard_frame_pointer_rtx", ",", "stack_pointer_rtx", ")", ")", ";", "if", "(", "crtl", "->", "profile", "||", "flag_exceptions", "||", "flag_unwind_tables", ")", "emit_insn", "(", "gen_blockage", "(", ")", ")", ";", "if", "(", "flag_stack_usage_info", ")", "current_function_static_stack_size", "=", "stack_usage", ";", "}", ""], "natrual_language": ["Expand", "code", "for", "the", "function", "prologue", "."], "TS_V_token": ["sh", "\"sp_switch\"", "0", "0", "0", "1", "0", "0"], "File": "sh", "Func": "sh_expand_prologue", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 931, "Length": 396, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "MipsSETargetLowering", "::", "PerformDAGCombine", "(", "SDNode", "*", "N", ",", "DAGCombinerInfo", "&", "DCI", ")", "const", "{", "SelectionDAG", "&", "DAG", "=", "DCI", ".", "DAG", ";", "SDValue", "Val", ";", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "case", "ISD", "::", "ADDE", ":", "return", "performADDECombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "AND", ":", "Val", "=", "performANDCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "break", ";", "case", "ISD", "::", "OR", ":", "Val", "=", "performORCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "break", ";", "case", "ISD", "::", "SUBE", ":", "return", "performSUBECombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "MUL", ":", "return", "performMULCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "this", ")", ";", "case", "ISD", "::", "SHL", ":", "Val", "=", "performSHLCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "break", ";", "case", "ISD", "::", "SRA", ":", "return", "performSRACombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "SRL", ":", "return", "performSRLCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "VSELECT", ":", "return", "performVSELECTCombine", "(", "N", ",", "DAG", ")", ";", "case", "ISD", "::", "XOR", ":", "Val", "=", "performXORCombine", "(", "N", ",", "DAG", ",", "Subtarget", ")", ";", "break", ";", "case", "ISD", "::", "SETCC", ":", "Val", "=", "performSETCCCombine", "(", "N", ",", "DAG", ")", ";", "break", ";", "}", "if", "(", "Val", ".", "getNode", "(", ")", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"\\nMipsSE DAG Combine:\\n\"", ";", "N", "->", "printrWithDepth", "(", "dbgs", "(", ")", ",", "&", "DAG", ")", ";", "dbgs", "(", ")", "<<", "\"\\n=> \\n\"", ";", "Val", ".", "getNode", "(", ")", "->", "printrWithDepth", "(", "dbgs", "(", ")", ",", "&", "DAG", ")", ";", "dbgs", "(", ")", "<<", "\"\\n\"", ")", ";", "return", "Val", ";", "}", "return", "MipsTargetLowering", "::", "PerformDAGCombine", "(", "N", ",", "DCI", ")", ";", "}", ""], "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": ["Mips", "Mips", "ISD::ADDE", "ISD::AND", "ISD::OR", "ISD::SUBE", "ISD::MUL", "ISD::SHL", "ISD::SRA", "ISD::SRL", "ISD::VSELECT", "ISD::XOR", "ISD::SETCC", "\"\\nMipsSE DAG Combine:\\n\"", "\"\\n=> \\n\"", "\"\\n\"", "Mips"], "File": "MipsSEISelLowering14", "Func": "PerformDAGCombine", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 932, "Length": 301, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SparcPassConfig", "::", "addPreEmitPass", "(", ")", "{", "addPass", "(", "createSparcDelaySlotFillerPass", "(", "getSparcTargetMachine", "(", ")", ")", ")", ";", "if", "(", "this", "->", "getSparcTargetMachine", "(", ")", ".", "getSubtargetImpl", "(", ")", "->", "insertNOPLoad", "(", ")", ")", "{", "addPass", "(", "new", "InsertNOPLoad", "(", "getSparcTargetMachine", "(", ")", ")", ")", ";", "}", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["Sparc", "Sparc", "Sparc", "Sparc", "Sparc", "Sparc"], "File": "SparcTargetMachine33", "Func": "addPreEmitPass", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 933, "Length": 47, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "tree", "function_resolver", "::", "resolve_uniform_opt_n", "(", "unsigned", "int", "nops", ")", "{", "unsigned", "int", "i", ",", "nargs", ";", "type_suffix_index", "type", ";", "if", "(", "!", "check_gp_argument", "(", "nops", ",", "i", ",", "nargs", ")", "||", "(", "type", "=", "infer_vector_type", "(", "i", ")", ")", "==", "NUM_TYPE_SUFFIXES", ")", "return", "error_mark_node", ";", "unsigned", "int", "first_arg", "=", "i", "++", ";", "for", "(", ";", "i", "<", "nargs", "-", "1", ";", "++", "i", ")", "if", "(", "!", "require_matching_vector_type", "(", "i", ",", "type", ")", ")", "return", "error_mark_node", ";", "return", "finish_opt_n_resolution", "(", "i", ",", "first_arg", ",", "type", ")", ";", "}", ""], "natrual_language": ["Resolve", "a", "(", "possibly", "predicated", ")", "function", "that", "offers", "a", "choice", "between", "taking", ":", "-", "NOPS", "like-typed", "vector", "arguments", "or", "-", "NOPS", "-", "1", "like-typed", "vector", "arguments", "followed", "by", "a", "scalar", "argument", "Return", "the", "function", "decl", "of", "the", "resolved", "function", "on", "success", ",", "otherwise", "report", "a", "suitable", "error", "and", "return", "error_mark_node", "."], "TS_V_token": ["aarch64", "1"], "File": "aarch64-sve-builtins", "Func": "resolve_uniform_opt_n", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 934, "Length": 88, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "arm_gen_far_branch", "(", "rtx", "*", "operands", ",", "int", "pos_label", ",", "const", "char", "*", "dest", ",", "const", "char", "*", "branch_format", ")", "{", "rtx_code_label", "*", "tmp_label", "=", "gen_label_rtx", "(", ")", ";", "char", "label_buf", "[", "256", "]", ";", "char", "buffer", "[", "128", "]", ";", "ASM_GENERATE_INTERNAL_LABEL", "(", "label_buf", ",", "dest", ",", "\\", "CODE_LABEL_NUMBER", "(", "tmp_label", ")", ")", ";", "const", "char", "*", "label_ptr", "=", "arm_strip_name_encoding", "(", "label_buf", ")", ";", "rtx", "dest_label", "=", "operands", "[", "pos_label", "]", ";", "operands", "[", "pos_label", "]", "=", "tmp_label", ";", "snprintf", "(", "buffer", ",", "sizeof", "(", "buffer", ")", ",", "\"%s%s\"", ",", "branch_format", ",", "label_ptr", ")", ";", "output_asm_insn", "(", "buffer", ",", "operands", ")", ";", "snprintf", "(", "buffer", ",", "sizeof", "(", "buffer", ")", ",", "\"b\\t%%l0%d\\n%s:\"", ",", "pos_label", ",", "label_ptr", ")", ";", "operands", "[", "pos_label", "]", "=", "dest_label", ";", "output_asm_insn", "(", "buffer", ",", "operands", ")", ";", "return", "\"\"", ";", "}", ""], "natrual_language": ["Generate", "code", "to", "enable", "conditional", "branches", "in", "functions", "over", "1", "MiB", ".", "Parameters", "are", ":", "operands", ":", "is", "the", "operands", "list", "of", "the", "asm", "insn", "(", "see", "arm_cond_branch", "or", "arm_cond_branch_reversed", ")", ".", "pos_label", ":", "is", "an", "index", "into", "the", "operands", "array", "where", "operands", "[", "pos_label", "]", "is", "the", "asm", "label", "of", "the", "final", "jump", "destination", ".", "dest", ":", "is", "a", "string", "which", "is", "used", "to", "generate", "the", "asm", "label", "of", "the", "intermediate", "destination", "branch_format", ":", "is", "a", "string", "denoting", "the", "intermediate", "branch", "format", ",", "e.g", ".", "``", "beq", "''", ",", "``", "bne", "''", ",", "etc", "."], "TS_V_token": ["arm", "256", "128", "\"%s%s\"", "\"b\\t%%l0%d\\n%s:\"", "\"\""], "File": "arm", "Func": "arm_gen_far_branch", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 935, "Length": 138, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "CAHPTargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "(", "CAHPISD", "::", "NodeType", ")", "Opcode", ")", "{", "case", "CAHPISD", "::", "FIRST_NUMBER", ":", "break", ";", "case", "CAHPISD", "::", "BR_CC", ":", "return", "\"CAHPISD::BR_CC\"", ";", "case", "CAHPISD", "::", "CALL", ":", "return", "\"CAHPISD::CALL\"", ";", "case", "CAHPISD", "::", "SELECT_CC", ":", "return", "\"CAHPISD::SELECT_CC\"", ";", "case", "CAHPISD", "::", "RET_FLAG", ":", "return", "\"CAHPISD::RET_FLAG\"", ";", "}", "return", "nullptr", ";", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["CAHP", "CAHP", "CAHPISD::NodeType", "CAHPISD::FIRST_NUMBER", "CAHPISD::BR_CC", "\"CAHPISD::BR_CC\"", "CAHPISD::CALL", "\"CAHPISD::CALL\"", "CAHPISD::SELECT_CC", "\"CAHPISD::SELECT_CC\"", "CAHPISD::RET_FLAG", "\"CAHPISD::RET_FLAG\""], "File": "CAHPISelLowering", "Func": "getTargetNodeName", "Target": "CAHP", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 936, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "char", "*", "aarch64_invalid_binary_op", "(", "int", "op", "ATTRIBUTE_UNUSED", ",", "const_tree", "type1", ",", "const_tree", "type2", ")", "{", "if", "(", "element_mode", "(", "type1", ")", "==", "BFmode", "||", "element_mode", "(", "type2", ")", "==", "BFmode", ")", "return", "N_", "(", "\"operation not permitted on type %\"", ")", ";", "if", "(", "VECTOR_TYPE_P", "(", "type1", ")", "&&", "VECTOR_TYPE_P", "(", "type2", ")", "&&", "!", "TYPE_INDIVISIBLE_P", "(", "type1", ")", "&&", "!", "TYPE_INDIVISIBLE_P", "(", "type2", ")", "&&", "(", "aarch64_sve", "::", "builtin_type_p", "(", "type1", ")", "!=", "aarch64_sve", "::", "builtin_type_p", "(", "type2", ")", ")", ")", "return", "N_", "(", "\"cannot combine GNU and SVE vectors in a binary operation\"", ")", ";", "return", "NULL", ";", "}", ""], "natrual_language": ["Return", "the", "diagnostic", "message", "string", "if", "the", "binary", "operation", "OP", "is", "not", "permitted", "on", "TYPE1", "and", "TYPE2", ",", "NULL", "otherwise", "."], "TS_V_token": ["aarch64", "\"operation not permitted on type %\"", "aarch64_sve::builtin_type_p", "aarch64_sve::builtin_type_p", "\"cannot combine GNU and SVE vectors in a binary operation\""], "File": "aarch64", "Func": "aarch64_invalid_binary_op", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 937, "Length": 89, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "ConstraintType", "SystemZTargetLowering", "::", "getConstraintType", "(", "StringRef", "Constraint", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'a'", ":", "case", "'d'", ":", "case", "'f'", ":", "case", "'h'", ":", "case", "'r'", ":", "case", "'v'", ":", "return", "C_RegisterClass", ";", "case", "'Q'", ":", "case", "'R'", ":", "case", "'S'", ":", "case", "'T'", ":", "case", "'m'", ":", "return", "C_Memory", ";", "case", "'I'", ":", "case", "'J'", ":", "case", "'K'", ":", "case", "'L'", ":", "case", "'M'", ":", "return", "C_Immediate", ";", "default", ":", "break", ";", "}", "}", "return", "TargetLowering", "::", "getConstraintType", "(", "Constraint", ")", ";", "}", ""], "natrual_language": ["Given", "a", "constraint", "letter", ",", "return", "the", "type", "of", "constraint", "for", "this", "target", "."], "TS_V_token": ["SystemZ", "SystemZ", "1", "0"], "File": "SystemZISelLowering (2)2", "Func": "getConstraintType", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 938, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "mips_build_builtin_va_list", "(", "void", ")", "{", "if", "(", "EABI_FLOAT_VARARGS_P", ")", "{", "tree", "f_ovfl", ",", "f_gtop", ",", "f_ftop", ",", "f_goff", ",", "f_foff", ",", "f_res", ",", "record", ";", "tree", "array", ",", "index", ";", "record", "=", "(", "*", "lang_hooks", ".", "types", ".", "make_type", ")", "(", "RECORD_TYPE", ")", ";", "f_ovfl", "=", "build_decl", "(", "FIELD_DECL", ",", "get_identifier", "(", "\"__overflow_argptr\"", ")", ",", "ptr_type_node", ")", ";", "f_gtop", "=", "build_decl", "(", "FIELD_DECL", ",", "get_identifier", "(", "\"__gpr_top\"", ")", ",", "ptr_type_node", ")", ";", "f_ftop", "=", "build_decl", "(", "FIELD_DECL", ",", "get_identifier", "(", "\"__fpr_top\"", ")", ",", "ptr_type_node", ")", ";", "f_goff", "=", "build_decl", "(", "FIELD_DECL", ",", "get_identifier", "(", "\"__gpr_offset\"", ")", ",", "unsigned_char_type_node", ")", ";", "f_foff", "=", "build_decl", "(", "FIELD_DECL", ",", "get_identifier", "(", "\"__fpr_offset\"", ")", ",", "unsigned_char_type_node", ")", ";", "index", "=", "build_int_cst", "(", "NULL_TREE", ",", "GET_MODE_SIZE", "(", "ptr_mode", ")", "-", "2", "-", "1", ")", ";", "array", "=", "build_array_type", "(", "unsigned_char_type_node", ",", "build_index_type", "(", "index", ")", ")", ";", "f_res", "=", "build_decl", "(", "FIELD_DECL", ",", "get_identifier", "(", "\"__reserved\"", ")", ",", "array", ")", ";", "DECL_FIELD_CONTEXT", "(", "f_ovfl", ")", "=", "record", ";", "DECL_FIELD_CONTEXT", "(", "f_gtop", ")", "=", "record", ";", "DECL_FIELD_CONTEXT", "(", "f_ftop", ")", "=", "record", ";", "DECL_FIELD_CONTEXT", "(", "f_goff", ")", "=", "record", ";", "DECL_FIELD_CONTEXT", "(", "f_foff", ")", "=", "record", ";", "DECL_FIELD_CONTEXT", "(", "f_res", ")", "=", "record", ";", "TYPE_FIELDS", "(", "record", ")", "=", "f_ovfl", ";", "TREE_CHAIN", "(", "f_ovfl", ")", "=", "f_gtop", ";", "TREE_CHAIN", "(", "f_gtop", ")", "=", "f_ftop", ";", "TREE_CHAIN", "(", "f_ftop", ")", "=", "f_goff", ";", "TREE_CHAIN", "(", "f_goff", ")", "=", "f_foff", ";", "TREE_CHAIN", "(", "f_foff", ")", "=", "f_res", ";", "layout_type", "(", "record", ")", ";", "return", "record", ";", "}", "else", "if", "(", "TARGET_IRIX", "&&", "TARGET_IRIX6", ")", "return", "build_pointer_type", "(", "char_type_node", ")", ";", "else", "return", "ptr_type_node", ";", "}", ""], "natrual_language": ["Create", "the", "va_list", "data", "type", ".", "We", "keep", "3", "pointers", ",", "and", "two", "offsets", ".", "Two", "pointers", "are", "to", "the", "overflow", "area", ",", "which", "starts", "at", "the", "CFA", ".", "One", "of", "these", "is", "constant", ",", "for", "addressing", "into", "the", "GPR", "save", "area", "below", "it", ".", "The", "other", "is", "advanced", "up", "the", "stack", "through", "the", "overflow", "region", ".", "The", "third", "pointer", "is", "to", "the", "GPR", "save", "area", ".", "Since", "the", "FPR", "save", "area", "is", "just", "below", "it", ",", "we", "can", "address", "FPR", "slots", "off", "this", "pointer", ".", "We", "also", "keep", "two", "one-byte", "offsets", ",", "which", "are", "to", "be", "subtracted", "from", "the", "constant", "pointers", "to", "yield", "addresses", "in", "the", "GPR", "and", "FPR", "save", "areas", ".", "These", "are", "downcounted", "as", "float", "or", "non-float", "arguments", "are", "used", ",", "and", "when", "they", "get", "to", "zero", ",", "the", "argument", "must", "be", "obtained", "from", "the", "overflow", "region", ".", "If", "!", "EABI_FLOAT_VARARGS_P", ",", "then", "no", "FPR", "save", "area", "exists", ",", "and", "a", "single", "pointer", "is", "enough", ".", "It", "'s", "started", "at", "the", "GPR", "save", "area", ",", "and", "is", "advanced", ",", "period", ".", "Note", "that", "the", "GPR", "save", "area", "is", "not", "constant", "size", ",", "due", "to", "optimization", "in", "the", "prologue", ".", "Hence", ",", "we", "ca", "n't", "use", "a", "design", "with", "two", "pointers", "and", "two", "offsets", ",", "although", "we", "could", "have", "designed", "this", "with", "two", "pointers", "and", "three", "offsets", "."], "TS_V_token": ["mips", "\"__overflow_argptr\"", "\"__gpr_top\"", "\"__fpr_top\"", "\"__gpr_offset\"", "\"__fpr_offset\"", "2", "1", "\"__reserved\""], "File": "mips3", "Func": "mips_build_builtin_va_list", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 939, "Length": 269, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64CallLowering", "::", "handleAssignments", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "CCAssignFn", "*", "AssignFn", ",", "ArrayRef", "<", "MVT", ">", "ArgTypes", ",", "ArrayRef", "<", "unsigned", ">", "ArgRegs", ",", "AssignFnTy", "AssignValToReg", ")", "const", "{", "MachineFunction", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "const", "Function", "&", "F", "=", "*", "MF", ".", "getFunction", "(", ")", ";", "SmallVector", "<", "CCValAssign", ",", "16", ">", "ArgLocs", ";", "CCState", "CCInfo", "(", "F", ".", "getCallingConv", "(", ")", ",", "F", ".", "isVarArg", "(", ")", ",", "MF", ",", "ArgLocs", ",", "F", ".", "getContext", "(", ")", ")", ";", "unsigned", "NumArgs", "=", "ArgTypes", ".", "size", "(", ")", ";", "auto", "CurVT", "=", "ArgTypes", ".", "begin", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "NumArgs", ";", "++", "i", ",", "++", "CurVT", ")", "{", "bool", "Res", "=", "AssignFn", "(", "i", ",", "*", "CurVT", ",", "*", "CurVT", ",", "CCValAssign", "::", "Full", ",", "ISD", "::", "ArgFlagsTy", "(", ")", ",", "CCInfo", ")", ";", "assert", "(", "!", "Res", "&&", "\"Call operand has unhandled type\"", ")", ";", "(", "void", ")", "Res", ";", "}", "assert", "(", "ArgLocs", ".", "size", "(", ")", "==", "ArgTypes", ".", "size", "(", ")", "&&", "\"We have a different number of location and args?!\"", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "ArgLocs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "ArgLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Not yet implemented\"", ")", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown loc info!\"", ")", ";", "case", "CCValAssign", "::", "Full", ":", "break", ";", "case", "CCValAssign", "::", "BCvt", ":", "break", ";", "case", "CCValAssign", "::", "AExt", ":", "break", ";", "case", "CCValAssign", "::", "SExt", ":", "case", "CCValAssign", "::", "ZExt", ":", "assert", "(", "0", "&&", "\"Not yet implemented\"", ")", ";", "break", ";", "}", "AssignValToReg", "(", "MIRBuilder", ",", "ArgRegs", "[", "i", "]", ",", "VA", ".", "getLocReg", "(", ")", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Use", "Handler", "to", "insert", "code", "to", "handle", "the", "argument/return", "values", "represented", "by", "Args", "."], "TS_V_token": ["AArch64", "AArch64", "16", "0", "ISD::ArgFlagsTy", "\"Call operand has unhandled type\"", "\"We have a different number of location and args?!\"", "0", "\"Not yet implemented\"", "\"Unknown loc info!\"", "0", "\"Not yet implemented\""], "File": "AArch64CallLowering47", "Func": "handleAssignments", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 940, "Length": 300, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCRegisterInfo", "::", "getRegPressureLimit", "(", "const", "TargetRegisterClass", "*", "RC", ",", "MachineFunction", "&", "MF", ")", "const", "{", "const", "PPCFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "const", "unsigned", "DefaultSafety", "=", "1", ";", "switch", "(", "RC", "->", "getID", "(", ")", ")", "{", "default", ":", "return", "0", ";", "case", "PPC", "::", "G8RC_NOX0RegClassID", ":", "case", "PPC", "::", "GPRC_NOR0RegClassID", ":", "case", "PPC", "::", "SPERCRegClassID", ":", "case", "PPC", "::", "G8RCRegClassID", ":", "case", "PPC", "::", "GPRCRegClassID", ":", "{", "unsigned", "FP", "=", "TFI", "->", "hasFP", "(", "MF", ")", "?", "1", ":", "0", ";", "return", "32", "-", "FP", "-", "DefaultSafety", ";", "}", "case", "PPC", "::", "F8RCRegClassID", ":", "case", "PPC", "::", "F4RCRegClassID", ":", "case", "PPC", "::", "VRRCRegClassID", ":", "case", "PPC", "::", "VFRCRegClassID", ":", "case", "PPC", "::", "VSLRCRegClassID", ":", "return", "32", "-", "DefaultSafety", ";", "case", "PPC", "::", "VSRCRegClassID", ":", "case", "PPC", "::", "VSFRCRegClassID", ":", "case", "PPC", "::", "VSSRCRegClassID", ":", "return", "64", "-", "DefaultSafety", ";", "case", "PPC", "::", "CRRCRegClassID", ":", "return", "8", "-", "DefaultSafety", ";", "}", "}", ""], "natrual_language": ["Return", "the", "register", "pressure", "``", "high", "water", "mark", "''", "for", "the", "specific", "register", "class", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "1", "0", "PPC::G8RC_NOX0RegClassID", "PPC::GPRC_NOR0RegClassID", "PPC::SPERCRegClassID", "PPC::G8RCRegClassID", "PPC::GPRCRegClassID", "1", "0", "32", "PPC::F8RCRegClassID", "PPC::F4RCRegClassID", "PPC::VRRCRegClassID", "PPC::VFRCRegClassID", "PPC::VSLRCRegClassID", "32", "PPC::VSRCRegClassID", "PPC::VSFRCRegClassID", "PPC::VSSRCRegClassID", "64", "PPC::CRRCRegClassID", "8"], "File": "PPCRegisterInfo3", "Func": "getRegPressureLimit", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 941, "Length": 156, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "aarch64_emit_call_insn", "(", "rtx", "pat", ")", "{", "rtx", "insn", "=", "emit_call_insn", "(", "pat", ")", ";", "rtx", "*", "fusage", "=", "&", "CALL_INSN_FUNCTION_USAGE", "(", "insn", ")", ";", "clobber_reg", "(", "fusage", ",", "gen_rtx_REG", "(", "word_mode", ",", "IP0_REGNUM", ")", ")", ";", "clobber_reg", "(", "fusage", ",", "gen_rtx_REG", "(", "word_mode", ",", "IP1_REGNUM", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "call", "insn", "with", "PAT", "and", "do", "aarch64-specific", "handling", "."], "TS_V_token": ["aarch64"], "File": "aarch64", "Func": "aarch64_emit_call_insn", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 942, "Length": 50, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "machine_mode", "rx_promote_function_mode", "(", "const_tree", "type", "ATTRIBUTE_UNUSED", ",", "machine_mode", "mode", ",", "int", "*", "punsignedp", "ATTRIBUTE_UNUSED", ",", "const_tree", "funtype", "ATTRIBUTE_UNUSED", ",", "int", "for_return", ")", "{", "if", "(", "for_return", "!=", "1", "||", "GET_MODE_SIZE", "(", "mode", ")", ">=", "4", "||", "COMPLEX_MODE_P", "(", "mode", ")", "||", "GET_MODE_SIZE", "(", "mode", ")", "<", "1", ")", "return", "mode", ";", "return", "SImode", ";", "}", ""], "natrual_language": ["TARGET_PROMOTE_FUNCTION_MODE", "must", "behave", "in", "the", "same", "way", "with", "regard", "to", "function", "returns", "as", "does", "TARGET_FUNCTION_VALUE", "."], "TS_V_token": ["rx", "1", "4", "1"], "File": "rx2", "Func": "rx_promote_function_mode", "Target": "rx", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 943, "Length": 56, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "rs6000_final_prescan_insn", "(", "rtx_insn", "*", "insn", ",", "rtx", "*", "operand", "ATTRIBUTE_UNUSED", ",", "int", "num_operands", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "rs6000_warn_cell_microcode", ")", "{", "const", "char", "*", "temp", ";", "int", "insn_code_number", "=", "recog_memoized", "(", "insn", ")", ";", "location_t", "location", "=", "INSN_LOCATION", "(", "insn", ")", ";", "if", "(", "insn_code_number", "<", "0", ")", "return", ";", "struct", "recog_data_d", "recog_data_save", "=", "recog_data", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "recog_data", ".", "n_operands", ";", "i", "++", ")", "recog_data", ".", "operand", "[", "i", "]", "=", "copy_rtx", "(", "recog_data", ".", "operand", "[", "i", "]", ")", ";", "temp", "=", "get_insn_template", "(", "insn_code_number", ",", "insn", ")", ";", "recog_data", "=", "recog_data_save", ";", "if", "(", "get_attr_cell_micro", "(", "insn", ")", "==", "CELL_MICRO_ALWAYS", ")", "warning_at", "(", "location", ",", "OPT_mwarn_cell_microcode", ",", "\"emitting microcode insn %s\\t[%s] #%d\"", ",", "temp", ",", "insn_data", "[", "INSN_CODE", "(", "insn", ")", "]", ".", "name", ",", "INSN_UID", "(", "insn", ")", ")", ";", "else", "if", "(", "get_attr_cell_micro", "(", "insn", ")", "==", "CELL_MICRO_CONDITIONAL", ")", "warning_at", "(", "location", ",", "OPT_mwarn_cell_microcode", ",", "\"emitting conditional microcode insn %s\\t[%s] #%d\"", ",", "temp", ",", "insn_data", "[", "INSN_CODE", "(", "insn", ")", "]", ".", "name", ",", "INSN_UID", "(", "insn", ")", ")", ";", "}", "}", ""], "natrual_language": ["Define", "FINAL_PRESCAN_INSN", "if", "some", "processing", "needs", "to", "be", "done", "before", "outputting", "the", "assembler", "code", ".", "On", "the", "PowerPC", ",", "we", "remember", "if", "the", "current", "insn", "is", "a", "prefixed", "insn", "where", "we", "need", "to", "emit", "a", "'", "p", "'", "before", "the", "insn", ".", "In", "addition", ",", "if", "the", "insn", "is", "part", "of", "a", "PC-relative", "reference", "to", "an", "external", "label", "optimization", ",", "this", "is", "recorded", "also", "."], "TS_V_token": ["powerpcspe", "0", "0", "\"emitting microcode insn %s\\t[%s] #%d\"", "\"emitting conditional microcode insn %s\\t[%s] #%d\""], "File": "powerpcspe", "Func": "rs6000_final_prescan_insn", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 944, "Length": 176, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "PPCRegisterInfo", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", "MF", ",", "CallingConv", "::", "ID", "CC", ")", "const", "{", "const", "PPCSubtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ";", "if", "(", "CC", "==", "CallingConv", "::", "AnyReg", ")", "{", "if", "(", "Subtarget", ".", "hasVSX", "(", ")", ")", "return", "CSR_64_AllRegs_VSX_RegMask", ";", "if", "(", "Subtarget", ".", "hasAltivec", "(", ")", ")", "return", "CSR_64_AllRegs_Altivec_RegMask", ";", "return", "CSR_64_AllRegs_RegMask", ";", "}", "if", "(", "Subtarget", ".", "isDarwinABI", "(", ")", ")", "return", "TM", ".", "isPPC64", "(", ")", "?", "(", "Subtarget", ".", "hasAltivec", "(", ")", "?", "CSR_Darwin64_Altivec_RegMask", ":", "CSR_Darwin64_RegMask", ")", ":", "(", "Subtarget", ".", "hasAltivec", "(", ")", "?", "CSR_Darwin32_Altivec_RegMask", ":", "CSR_Darwin32_RegMask", ")", ";", "return", "TM", ".", "isPPC64", "(", ")", "?", "(", "Subtarget", ".", "hasAltivec", "(", ")", "?", "CSR_SVR464_Altivec_RegMask", ":", "CSR_SVR464_RegMask", ")", ":", "(", "Subtarget", ".", "hasAltivec", "(", ")", "?", "CSR_SVR432_Altivec_RegMask", ":", "CSR_SVR432_RegMask", ")", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "PPC", "PPC"], "File": "PPCRegisterInfo (2)1", "Func": "getCallPreservedMask", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 945, "Length": 139, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "sparc_asm_function_prologue", "(", "FILE", "*", "file", ",", "HOST_WIDE_INT", "size", "ATTRIBUTE_UNUSED", ")", "{", "gcc_assert", "(", "sparc_leaf_function_p", "==", "current_function_uses_only_leaf_regs", ")", ";", "sparc_output_scratch_registers", "(", "file", ")", ";", "}", ""], "natrual_language": ["This", "function", "generates", "the", "assembly", "code", "for", "function", "entry", ",", "which", "boils", "down", "to", "emitting", "the", "necessary", ".register", "directives", "."], "TS_V_token": ["sparc"], "File": "sparc3", "Func": "sparc_asm_function_prologue", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 946, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SelectInlineAsmMemoryOperand", "(", "const", "SDValue", "&", "Op", ",", "unsigned", "ConstraintID", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "OutOps", ")", "override", "{", "switch", "(", "ConstraintID", ")", "{", "default", ":", "errs", "(", ")", "<<", "\"ConstraintID: \"", "<<", "ConstraintID", "<<", "\"\\n\"", ";", "llvm_unreachable", "(", "\"Unexpected asm memory constraint\"", ")", ";", "case", "InlineAsm", "::", "Constraint_es", ":", "case", "InlineAsm", "::", "Constraint_m", ":", "case", "InlineAsm", "::", "Constraint_o", ":", "case", "InlineAsm", "::", "Constraint_Q", ":", "case", "InlineAsm", "::", "Constraint_Z", ":", "case", "InlineAsm", "::", "Constraint_Zy", ":", "const", "TargetRegisterInfo", "*", "TRI", "=", "Subtarget", "->", "getRegisterInfo", "(", ")", ";", "const", "TargetRegisterClass", "*", "TRC", "=", "TRI", "->", "getPointerRegClass", "(", "*", "MF", ",", "1", ")", ";", "SDLoc", "dl", "(", "Op", ")", ";", "SDValue", "RC", "=", "CurDAG", "->", "getTargetConstant", "(", "TRC", "->", "getID", "(", ")", ",", "dl", ",", "MVT", "::", "i32", ")", ";", "SDValue", "NewOp", "=", "SDValue", "(", "CurDAG", "->", "getMachineNode", "(", "TargetOpcode", "::", "COPY_TO_REGCLASS", ",", "dl", ",", "Op", ".", "getValueType", "(", ")", ",", "Op", ",", "RC", ")", ",", "0", ")", ";", "OutOps", ".", "push_back", "(", "NewOp", ")", ";", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["SelectInlineAsmMemoryOperand", "-", "Select", "the", "specified", "address", "as", "a", "target", "addressing", "mode", ",", "according", "to", "the", "specified", "constraint", "."], "TS_V_token": ["PowerPC", "\"ConstraintID: \"", "\"\\n\"", "\"Unexpected asm memory constraint\"", "1", "MVT::i32", "0"], "File": "PPCISelDAGToDAG1", "Func": "SelectInlineAsmMemoryOperand", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 947, "Length": 170, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "check_pic", "(", "int", "i", ")", "{", "rtx", "op", ";", "switch", "(", "flag_pic", ")", "{", "case", "1", ":", "op", "=", "recog_data", ".", "operand", "[", "i", "]", ";", "gcc_assert", "(", "GET_CODE", "(", "op", ")", "!=", "SYMBOL_REF", "&&", "(", "GET_CODE", "(", "op", ")", "!=", "CONST", "||", "(", "GET_CODE", "(", "XEXP", "(", "op", ",", "0", ")", ")", "==", "MINUS", "&&", "XEXP", "(", "XEXP", "(", "op", ",", "0", ")", ",", "0", ")", "==", "sparc_got", "(", ")", "&&", "GET_CODE", "(", "XEXP", "(", "XEXP", "(", "op", ",", "0", ")", ",", "1", ")", ")", "==", "CONST", ")", ")", ")", ";", "case", "2", ":", "default", ":", "return", "1", ";", "}", "}", ""], "natrual_language": ["Ensure", "that", "we", "are", "not", "using", "patterns", "that", "are", "not", "OK", "with", "PIC", "."], "TS_V_token": ["sparc", "1", "0", "0", "0", "0", "1", "2", "1"], "File": "sparc", "Func": "check_pic", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 948, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "tryAddingPcLoadReferenceComment", "(", "uint64_t", "Address", ",", "int", "Value", ",", "const", "MCDisassembler", "*", "Decoder", ")", "{", "const", "MCDisassembler", "*", "Dis", "=", "static_cast", "<", "const", "MCDisassembler", "*", ">", "(", "Decoder", ")", ";", "Dis", "->", "tryAddingPcLoadReferenceComment", "(", "Value", ",", "Address", ")", ";", "}", ""], "natrual_language": ["Try", "to", "add", "a", "comment", "on", "the", "PC-relative", "load", "."], "TS_V_token": ["ARM"], "File": "ARMDisassembler39", "Func": "tryAddingPcLoadReferenceComment", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 949, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMAsmBackend", "::", "relaxInstruction", "(", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "unsigned", "RelaxedOp", "=", "getRelaxedOpcode", "(", "Inst", ".", "getOpcode", "(", ")", ",", "STI", ")", ";", "if", "(", "RelaxedOp", "==", "Inst", ".", "getOpcode", "(", ")", ")", "{", "SmallString", "<", "256", ">", "Tmp", ";", "raw_svector_ostream", "OS", "(", "Tmp", ")", ";", "Inst", ".", "dump_pretty", "(", "OS", ")", ";", "OS", "<<", "\"\\n\"", ";", "report_fatal_error", "(", "\"unexpected instruction to relax: \"", "+", "OS", ".", "str", "(", ")", ")", ";", "}", "if", "(", "(", "Inst", ".", "getOpcode", "(", ")", "==", "ARM", "::", "tCBZ", "||", "Inst", ".", "getOpcode", "(", ")", "==", "ARM", "::", "tCBNZ", ")", "&&", "RelaxedOp", "==", "ARM", "::", "tHINT", ")", "{", "MCInst", "Res", ";", "Res", ".", "setOpcode", "(", "RelaxedOp", ")", ";", "Res", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "0", ")", ")", ";", "Res", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "14", ")", ")", ";", "Res", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "0", ")", ")", ";", "Inst", "=", "std", "::", "move", "(", "Res", ")", ";", "return", ";", "}", "Inst", ".", "setOpcode", "(", "RelaxedOp", ")", ";", "}", ""], "natrual_language": ["Relax", "the", "instruction", "in", "the", "given", "fragment", "to", "the", "next", "wider", "instruction", "."], "TS_V_token": ["ARM", "ARM", "256", "\"\\n\"", "\"unexpected instruction to relax: \"", "ARM::tCBZ", "ARM::tCBNZ", "ARM::tHINT", "0", "14", "0"], "File": "ARMAsmBackend26", "Func": "relaxInstruction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 950, "Length": 173, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isShuffleMaskLegal", "(", "SDValue", "Mask", ",", "MVT", "VT", ")", "const", "{", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "64", ")", "return", "false", ";", "return", "(", "Mask", ".", "getNode", "(", ")", "->", "getNumOperands", "(", ")", "<=", "4", "||", "isIdentityMask", "(", "Mask", ".", "getNode", "(", ")", ")", "||", "isIdentityMask", "(", "Mask", ".", "getNode", "(", ")", ",", "true", ")", "||", "isSplatMask", "(", "Mask", ".", "getNode", "(", ")", ")", "||", "X86", "::", "isPSHUFHWMask", "(", "Mask", ".", "getNode", "(", ")", ")", "||", "X86", "::", "isPSHUFLWMask", "(", "Mask", ".", "getNode", "(", ")", ")", "||", "X86", "::", "isUNPCKLMask", "(", "Mask", ".", "getNode", "(", ")", ")", "||", "X86", "::", "isUNPCKHMask", "(", "Mask", ".", "getNode", "(", ")", ")", "||", "X86", "::", "isUNPCKL_v_undef_Mask", "(", "Mask", ".", "getNode", "(", ")", ")", "||", "X86", "::", "isUNPCKH_v_undef_Mask", "(", "Mask", ".", "getNode", "(", ")", ")", ")", ";", "}", ""], "natrual_language": ["Targets", "can", "use", "this", "to", "indicate", "that", "they", "only", "support", "some", "VECTOR_SHUFFLE", "operations", ",", "those", "with", "specific", "masks", "."], "TS_V_token": ["X86", "X86", "64", "4", "X86::isPSHUFHWMask", "X86::isPSHUFLWMask", "X86::isUNPCKLMask", "X86::isUNPCKHMask", "X86::isUNPCKL_v_undef_Mask", "X86::isUNPCKH_v_undef_Mask"], "File": "X86ISelLowering160", "Func": "isShuffleMaskLegal", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 951, "Length": 137, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "isSchedulingBoundary", "(", "const", "MachineInstr", "&", "MI", ",", "const", "MachineBasicBlock", "*", "MBB", ",", "const", "MachineFunction", "&", "MF", ")", "const", "{", "if", "(", "TargetInstrInfo", "::", "isSchedulingBoundary", "(", "MI", ",", "MBB", ",", "MF", ")", ")", "return", "true", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "case", "AArch64", "::", "HINT", ":", "if", "(", "MI", ".", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", "==", "0x14", ")", "return", "true", ";", "break", ";", "case", "AArch64", "::", "DSB", ":", "case", "AArch64", "::", "ISB", ":", "return", "true", ";", "default", ":", ";", "}", "return", "isSEHInstruction", "(", "MI", ")", ";", "}", ""], "natrual_language": ["isSchedulingBoundary", "-", "Overrides", "the", "isSchedulingBoundary", "from", "Codegen/TargetInstrInfo.cpp", "to", "make", "it", "capable", "of", "identifying", "ENDBR", "intructions", "and", "prevent", "it", "from", "being", "re-scheduled", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::HINT", "0", "0x14", "AArch64::DSB", "AArch64::ISB"], "File": "AArch64InstrInfo (2)1", "Func": "isSchedulingBoundary", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 952, "Length": 96, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "csky_emit_compare", "(", "enum", "rtx_code", "code", ",", "rtx", "op0", ",", "rtx", "op1", ")", "{", "bool", "invert", ";", "rtx", "cc_reg", "=", "gen_rtx_REG", "(", "CCmode", ",", "CSKY_CC_REGNUM", ")", ";", "if", "(", "GET_MODE_CLASS", "(", "GET_MODE", "(", "op0", ")", ")", "==", "MODE_FLOAT", ")", "return", "csky_emit_compare_float", "(", "code", ",", "op0", ",", "op1", ")", ";", "if", "(", "GET_CODE", "(", "op1", ")", "==", "CONST_INT", ")", "{", "HOST_WIDE_INT", "val", "=", "INTVAL", "(", "op1", ")", ";", "switch", "(", "code", ")", "{", "case", "GTU", ":", "if", "(", "val", "==", "0", ")", "code", "=", "NE", ";", "else", "if", "(", "TARGET_MINI_REGISTERS", "?", "CSKY_CONST_OK_FOR_J", "(", "val", "+", "1", ")", ":", "CSKY_CONST_OK_FOR_Uk", "(", "val", "+", "1", ")", ")", "{", "op1", "=", "GEN_INT", "(", "val", "+", "1", ")", ";", "code", "=", "GEU", ";", "}", "break", ";", "case", "GT", ":", "case", "LE", ":", "if", "(", "TARGET_MINI_REGISTERS", "?", "CSKY_CONST_OK_FOR_J", "(", "val", "+", "1", ")", ":", "CSKY_CONST_OK_FOR_Uk", "(", "val", "+", "1", ")", ")", "{", "op1", "=", "GEN_INT", "(", "val", "+", "1", ")", ";", "code", "=", "code", "==", "LE", "?", "LT", ":", "GE", ";", "}", "break", ";", "default", ":", "break", ";", "}", "}", "if", "(", "CONSTANT_P", "(", "op1", ")", "&&", "GET_CODE", "(", "op1", ")", "!=", "CONST_INT", ")", "op1", "=", "force_reg", "(", "GET_MODE", "(", "op1", ")", ",", "op1", ")", ";", "invert", "=", "false", ";", "switch", "(", "code", ")", "{", "case", "EQ", ":", "code", "=", "NE", ";", "invert", "=", "true", ";", "case", "NE", ":", "if", "(", "GET_CODE", "(", "op1", ")", "==", "CONST_INT", "&&", "(", "TARGET_MINI_REGISTERS", "?", "!", "csky_literal_K_operand", "(", "op1", ",", "SImode", ")", ":", "!", "csky_literal_I_operand", "(", "op1", ",", "SImode", ")", ")", ")", "op1", "=", "force_reg", "(", "SImode", ",", "op1", ")", ";", "break", ";", "case", "LE", ":", "code", "=", "GT", ";", "invert", "=", "true", ";", "case", "GT", ":", "if", "(", "GET_CODE", "(", "op1", ")", "==", "CONST_INT", ")", "op1", "=", "force_reg", "(", "SImode", ",", "op1", ")", ";", "break", ";", "case", "GE", ":", "code", "=", "LT", ";", "invert", "=", "true", ";", "case", "LT", ":", "if", "(", "GET_CODE", "(", "op1", ")", "==", "CONST_INT", "&&", "INTVAL", "(", "op1", ")", "!=", "0", "&&", "(", "TARGET_MINI_REGISTERS", "?", "!", "csky_literal_J_operand", "(", "op1", ",", "SImode", ")", ":", "!", "csky_literal_Uk_operand", "(", "op1", ",", "SImode", ")", ")", ")", "op1", "=", "force_reg", "(", "SImode", ",", "op1", ")", ";", "break", ";", "case", "GTU", ":", "gcc_assert", "(", "GET_CODE", "(", "op1", ")", "!=", "CONST_INT", "||", "INTVAL", "(", "op1", ")", "!=", "0", ")", ";", "code", "=", "LEU", ";", "invert", "=", "true", ";", "case", "LEU", ":", "if", "(", "GET_CODE", "(", "op1", ")", "==", "CONST_INT", "&&", "INTVAL", "(", "op1", ")", "!=", "0", ")", "op1", "=", "force_reg", "(", "SImode", ",", "op1", ")", ";", "break", ";", "case", "LTU", ":", "code", "=", "GEU", ";", "invert", "=", "true", ";", "case", "GEU", ":", "if", "(", "GET_CODE", "(", "op1", ")", "==", "CONST_INT", "&&", "INTVAL", "(", "op1", ")", "!=", "0", "&&", "(", "TARGET_MINI_REGISTERS", "?", "!", "csky_literal_J_operand", "(", "op1", ",", "SImode", ")", ":", "!", "csky_literal_Uk_operand", "(", "op1", ",", "SImode", ")", ")", ")", "op1", "=", "force_reg", "(", "SImode", ",", "op1", ")", ";", "break", ";", "default", ":", "break", ";", "}", "emit_insn", "(", "gen_rtx_SET", "(", "cc_reg", ",", "gen_rtx_fmt_ee", "(", "code", ",", "CCmode", ",", "op0", ",", "op1", ")", ")", ")", ";", "return", "invert", ";", "}", ""], "natrual_language": ["Emit", "a", "comparison", "instruction", ".", "Return", "true", "if", "an", "inverted", "comparison", "is", "generated", "."], "TS_V_token": ["csky", "0", "1", "1", "1", "1", "1", "1", "0", "0", "0", "0"], "File": "csky", "Func": "csky_emit_compare", "Target": "csky", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 953, "Length": 505, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "LanaiTargetLowering", "::", "LowerAsmOperandForConstraint", "(", "SDValue", "Op", ",", "std", "::", "string", "&", "Constraint", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "Ops", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SDValue", "Result", ";", "if", "(", "Constraint", ".", "length", "(", ")", ">", "1", ")", "return", ";", "char", "ConstraintLetter", "=", "Constraint", "[", "0", "]", ";", "switch", "(", "ConstraintLetter", ")", "{", "case", "'I'", ":", "if", "(", "ConstantSDNode", "*", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ")", ")", "{", "if", "(", "isInt", "<", "16", ">", "(", "C", "->", "getSExtValue", "(", ")", ")", ")", "{", "Result", "=", "DAG", ".", "getTargetConstant", "(", "C", "->", "getSExtValue", "(", ")", ",", "SDLoc", "(", "C", ")", ",", "Op", ".", "getValueType", "(", ")", ")", ";", "break", ";", "}", "}", "return", ";", "case", "'J'", ":", "case", "'O'", ":", "if", "(", "ConstantSDNode", "*", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ")", ")", "{", "if", "(", "C", "->", "getZExtValue", "(", ")", "==", "0", ")", "{", "Result", "=", "DAG", ".", "getTargetConstant", "(", "0", ",", "SDLoc", "(", "C", ")", ",", "Op", ".", "getValueType", "(", ")", ")", ";", "break", ";", "}", "}", "return", ";", "case", "'K'", ":", "if", "(", "ConstantSDNode", "*", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ")", ")", "{", "if", "(", "isUInt", "<", "16", ">", "(", "C", "->", "getZExtValue", "(", ")", ")", ")", "{", "Result", "=", "DAG", ".", "getTargetConstant", "(", "C", "->", "getSExtValue", "(", ")", ",", "SDLoc", "(", "C", ")", ",", "Op", ".", "getValueType", "(", ")", ")", ";", "break", ";", "}", "}", "return", ";", "case", "'L'", ":", "if", "(", "ConstantSDNode", "*", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ")", ")", "{", "if", "(", "C", "->", "getZExtValue", "(", ")", "<=", "31", ")", "{", "Result", "=", "DAG", ".", "getTargetConstant", "(", "C", "->", "getZExtValue", "(", ")", ",", "SDLoc", "(", "C", ")", ",", "Op", ".", "getValueType", "(", ")", ")", ";", "break", ";", "}", "}", "return", ";", "case", "'M'", ":", "if", "(", "ConstantSDNode", "*", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ")", ")", "{", "int64_t", "Val", "=", "C", "->", "getSExtValue", "(", ")", ";", "if", "(", "(", "isInt", "<", "32", ">", "(", "Val", ")", ")", "&&", "(", "(", "Val", "&", "0xffff", ")", "==", "0", ")", ")", "{", "Result", "=", "DAG", ".", "getTargetConstant", "(", "Val", ",", "SDLoc", "(", "C", ")", ",", "Op", ".", "getValueType", "(", ")", ")", ";", "break", ";", "}", "}", "return", ";", "case", "'N'", ":", "if", "(", "ConstantSDNode", "*", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ")", ")", "{", "int64_t", "Val", "=", "C", "->", "getSExtValue", "(", ")", ";", "if", "(", "(", "Val", ">=", "-", "33554432", ")", "&&", "(", "Val", "<=", "33554431", ")", ")", "{", "Result", "=", "DAG", ".", "getTargetConstant", "(", "Val", ",", "SDLoc", "(", "C", ")", ",", "Op", ".", "getValueType", "(", ")", ")", ";", "break", ";", "}", "}", "return", ";", "default", ":", "break", ";", "}", "if", "(", "Result", ".", "getNode", "(", ")", ")", "{", "Ops", ".", "push_back", "(", "Result", ")", ";", "return", ";", "}", "TargetLowering", "::", "LowerAsmOperandForConstraint", "(", "Op", ",", "Constraint", ",", "Ops", ",", "DAG", ")", ";", "}", ""], "natrual_language": ["Lower", "the", "specified", "operand", "into", "the", "Ops", "vector", "."], "TS_V_token": ["Lanai", "Lanai", "1", "0", "16", "0", "0", "16", "31", "32", "0xffff", "0", "33554432", "33554431"], "File": "LanaiISelLowering12", "Func": "LowerAsmOperandForConstraint", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 954, "Length": 483, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "SparcOperand", "*", "CreateReg", "(", "unsigned", "RegNum", ",", "unsigned", "Kind", ",", "SMLoc", "S", ",", "SMLoc", "E", ")", "{", "SparcOperand", "*", "Op", "=", "new", "SparcOperand", "(", "k_Register", ")", ";", "Op", "->", "Reg", ".", "RegNum", "=", "RegNum", ";", "Op", "->", "Reg", ".", "Kind", "=", "(", "SparcOperand", "::", "RegisterKind", ")", "Kind", ";", "Op", "->", "StartLoc", "=", "S", ";", "Op", "->", "EndLoc", "=", "E", ";", "return", "Op", ";", "}", ""], "natrual_language": ["CreateReg", "-", "Allocate", "a", "single", "virtual", "register", "for", "the", "given", "type", "."], "TS_V_token": ["Sparc", "Sparc", "Sparc", "Sparc", "SparcOperand::RegisterKind"], "File": "SparcAsmParser11", "Func": "CreateReg", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 955, "Length": 65, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "CSKYTargetStreamer", "::", "emitCurrentConstantPool", "(", ")", "{", "ConstantPool", "->", "emitAll", "(", "Streamer", ")", ";", "ConstantPool", "->", "clearCache", "(", ")", ";", "}", ""], "natrual_language": ["Callback", "used", "to", "implement", "the", ".ltorg", "directive", "."], "TS_V_token": ["CSKY", "CSKY"], "File": "CSKYTargetStreamer", "Func": "emitCurrentConstantPool", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 956, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Thumb2InstrInfo", "::", "isLegalToSplitMBBAt", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MBBI", ")", "const", "{", "while", "(", "MBBI", "->", "isDebugInstr", "(", ")", ")", "{", "++", "MBBI", ";", "if", "(", "MBBI", "==", "MBB", ".", "end", "(", ")", ")", "return", "false", ";", "}", "Register", "PredReg", ";", "return", "getITInstrPredicate", "(", "*", "MBBI", ",", "PredReg", ")", "==", "ARMCC", "::", "AL", ";", "}", ""], "natrual_language": ["Return", "true", "if", "it", "'s", "legal", "to", "split", "the", "given", "basic", "block", "at", "the", "specified", "instruction", "(", "i.e", "."], "TS_V_token": ["ARM", "ARMCC::AL"], "File": "Thumb2InstrInfo", "Func": "isLegalToSplitMBBAt", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 957, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZPassConfig", "::", "addPostRegAlloc", "(", ")", "{", "if", "(", "getOptLevel", "(", ")", "==", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createSystemZPostRewritePass", "(", "getSystemZTargetMachine", "(", ")", ")", ")", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "after", "register", "allocation", "pass", "pipeline", "but", "before", "prolog-epilog", "insertion", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ", "SystemZ"], "File": "SystemZTargetMachine18", "Func": "addPostRegAlloc", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 958, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mt_machine_reorg", "(", "void", ")", "{", "if", "(", "mt_flag_delayed_branch", ")", "dbr_schedule", "(", "get_insns", "(", ")", ",", "dump_file", ")", ";", "if", "(", "TARGET_MS2", ")", "{", "split_all_insns_noflow", "(", ")", ";", "mt_reorg_hazard", "(", ")", ";", "}", "}", ""], "natrual_language": ["Fixup", "the", "looping", "instructions", ",", "do", "delayed", "branch", "scheduling", ",", "fixup", "scheduling", "hazards", "."], "TS_V_token": ["mt"], "File": "mt", "Func": "mt_machine_reorg", "Target": "mt", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 959, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetMachine", "::", "addInstSelector", "(", "PassManagerBase", "&", "PM", ",", "CodeGenOpt", "::", "Level", "OptLevel", ")", "{", "PM", ".", "add", "(", "createX86ISelDag", "(", "*", "this", ",", "OptLevel", ")", ")", ";", "if", "(", "!", "Subtarget", ".", "is64Bit", "(", ")", ")", "PM", ".", "add", "(", "createGlobalBaseRegPass", "(", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["addInstSelector", "-", "This", "method", "should", "install", "an", "instruction", "selector", "pass", ",", "which", "converts", "from", "LLVM", "code", "to", "machine", "instructions", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86TargetMachine122", "Func": "addInstSelector", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 960, "Length": 50, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64CollectLOH", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"********** AArch64 Collect LOH **********\\n\"", "<<", "\"Looking in function \"", "<<", "MF", ".", "getName", "(", ")", "<<", "'\\n'", ")", ";", "LOHInfo", "LOHInfos", "[", "N_GPR_REGS", "]", ";", "AArch64FunctionInfo", "&", "AFI", "=", "*", "MF", ".", "getInfo", "<", "AArch64FunctionInfo", ">", "(", ")", ";", "for", "(", "const", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "{", "memset", "(", "LOHInfos", ",", "0", ",", "sizeof", "(", "LOHInfos", ")", ")", ";", "for", "(", "const", "MachineBasicBlock", "*", "Succ", ":", "MBB", ".", "successors", "(", ")", ")", "{", "for", "(", "const", "auto", "&", "LI", ":", "Succ", "->", "liveins", "(", ")", ")", "{", "int", "RegIdx", "=", "mapRegToGPRIndex", "(", "LI", ".", "PhysReg", ")", ";", "if", "(", "RegIdx", ">=", "0", ")", "LOHInfos", "[", "RegIdx", "]", ".", "OneUser", "=", "true", ";", "}", "}", "for", "(", "const", "MachineInstr", "&", "MI", ":", "make_range", "(", "MBB", ".", "rbegin", "(", ")", ",", "MBB", ".", "rend", "(", ")", ")", ")", "{", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "switch", "(", "Opcode", ")", "{", "case", "AArch64", "::", "ADDXri", ":", "case", "AArch64", "::", "LDRXui", ":", "if", "(", "canDefBePartOfLOH", "(", "MI", ")", ")", "{", "const", "MachineOperand", "&", "Def", "=", "MI", ".", "getOperand", "(", "0", ")", ";", "const", "MachineOperand", "&", "Op", "=", "MI", ".", "getOperand", "(", "1", ")", ";", "assert", "(", "Def", ".", "isReg", "(", ")", "&&", "Def", ".", "isDef", "(", ")", "&&", "\"Expected reg def\"", ")", ";", "assert", "(", "Op", ".", "isReg", "(", ")", "&&", "Op", ".", "isUse", "(", ")", "&&", "\"Expected reg use\"", ")", ";", "int", "DefIdx", "=", "mapRegToGPRIndex", "(", "Def", ".", "getReg", "(", ")", ")", ";", "int", "OpIdx", "=", "mapRegToGPRIndex", "(", "Op", ".", "getReg", "(", ")", ")", ";", "if", "(", "DefIdx", ">=", "0", "&&", "OpIdx", ">=", "0", "&&", "handleMiddleInst", "(", "MI", ",", "LOHInfos", "[", "DefIdx", "]", ",", "LOHInfos", "[", "OpIdx", "]", ")", ")", "continue", ";", "}", "break", ";", "case", "AArch64", "::", "ADRP", ":", "const", "MachineOperand", "&", "Op0", "=", "MI", ".", "getOperand", "(", "0", ")", ";", "int", "Idx", "=", "mapRegToGPRIndex", "(", "Op0", ".", "getReg", "(", ")", ")", ";", "if", "(", "Idx", ">=", "0", ")", "{", "handleADRP", "(", "MI", ",", "AFI", ",", "LOHInfos", "[", "Idx", "]", ")", ";", "continue", ";", "}", "break", ";", "}", "handleNormalInst", "(", "MI", ",", "LOHInfos", ")", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "\"********** AArch64 Collect LOH **********\\n\"", "\"Looking in function \"", "AArch64", "AArch64", "0", "0", "AArch64::ADDXri", "AArch64::LDRXui", "0", "1", "\"Expected reg def\"", "\"Expected reg use\"", "0", "0", "AArch64::ADRP", "0", "0"], "File": "AArch64CollectLOH25", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 961, "Length": 374, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "xstormy16_splittable_below100_operand", "(", "rtx", "x", ",", "machine_mode", "mode", ")", "{", "if", "(", "MEM_P", "(", "x", ")", "&&", "MEM_VOLATILE_P", "(", "x", ")", ")", "return", "0", ";", "return", "xstormy16_below100_operand", "(", "x", ",", "mode", ")", ";", "}", ""], "natrual_language": ["Likewise", ",", "but", "only", "for", "non-volatile", "MEMs", ",", "for", "patterns", "where", "the", "MEM", "will", "get", "split", "into", "smaller", "sized", "accesses", "."], "TS_V_token": ["stormy16", "0"], "File": "stormy16", "Func": "xstormy16_splittable_below100_operand", "Target": "stormy16", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 962, "Length": 34, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "expand_block_clear", "(", "rtx", "operands", "[", "]", ")", "{", "rtx", "orig_dest", "=", "operands", "[", "0", "]", ";", "rtx", "bytes_rtx", "=", "operands", "[", "1", "]", ";", "rtx", "align_rtx", "=", "operands", "[", "3", "]", ";", "bool", "constp", "=", "(", "GET_CODE", "(", "bytes_rtx", ")", "==", "CONST_INT", ")", ";", "HOST_WIDE_INT", "align", ";", "HOST_WIDE_INT", "bytes", ";", "int", "offset", ";", "int", "clear_bytes", ";", "int", "clear_step", ";", "if", "(", "!", "constp", ")", "return", "0", ";", "gcc_assert", "(", "GET_CODE", "(", "align_rtx", ")", "==", "CONST_INT", ")", ";", "align", "=", "INTVAL", "(", "align_rtx", ")", "*", "BITS_PER_UNIT", ";", "bytes", "=", "INTVAL", "(", "bytes_rtx", ")", ";", "if", "(", "bytes", "<=", "0", ")", "return", "1", ";", "if", "(", "TARGET_ALTIVEC", "&&", "align", ">=", "128", ")", "clear_step", "=", "16", ";", "else", "if", "(", "TARGET_POWERPC64", "&&", "(", "align", ">=", "64", "||", "!", "STRICT_ALIGNMENT", ")", ")", "clear_step", "=", "8", ";", "else", "if", "(", "TARGET_SPE", "&&", "align", ">=", "64", ")", "clear_step", "=", "8", ";", "else", "clear_step", "=", "4", ";", "if", "(", "optimize_size", "&&", "bytes", ">", "3", "*", "clear_step", ")", "return", "0", ";", "if", "(", "!", "optimize_size", "&&", "bytes", ">", "8", "*", "clear_step", ")", "return", "0", ";", "for", "(", "offset", "=", "0", ";", "bytes", ">", "0", ";", "offset", "+=", "clear_bytes", ",", "bytes", "-=", "clear_bytes", ")", "{", "machine_mode", "mode", "=", "BLKmode", ";", "rtx", "dest", ";", "if", "(", "bytes", ">=", "16", "&&", "TARGET_ALTIVEC", "&&", "align", ">=", "128", ")", "{", "clear_bytes", "=", "16", ";", "mode", "=", "V4SImode", ";", "}", "else", "if", "(", "bytes", ">=", "8", "&&", "TARGET_SPE", "&&", "align", ">=", "64", ")", "{", "clear_bytes", "=", "8", ";", "mode", "=", "V2SImode", ";", "}", "else", "if", "(", "bytes", ">=", "8", "&&", "TARGET_POWERPC64", "&&", "(", "align", ">=", "64", "||", "!", "STRICT_ALIGNMENT", ")", ")", "{", "clear_bytes", "=", "8", ";", "mode", "=", "DImode", ";", "if", "(", "offset", "==", "0", "&&", "align", "<", "64", ")", "{", "rtx", "addr", ";", "addr", "=", "XEXP", "(", "orig_dest", ",", "0", ")", ";", "if", "(", "(", "GET_CODE", "(", "addr", ")", "==", "PLUS", "||", "GET_CODE", "(", "addr", ")", "==", "LO_SUM", ")", "&&", "GET_CODE", "(", "XEXP", "(", "addr", ",", "1", ")", ")", "==", "CONST_INT", "&&", "(", "INTVAL", "(", "XEXP", "(", "addr", ",", "1", ")", ")", "&", "3", ")", "!=", "0", ")", "{", "addr", "=", "copy_addr_to_reg", "(", "addr", ")", ";", "orig_dest", "=", "replace_equiv_address", "(", "orig_dest", ",", "addr", ")", ";", "}", "}", "}", "else", "if", "(", "bytes", ">=", "4", "&&", "(", "align", ">=", "32", "||", "!", "STRICT_ALIGNMENT", ")", ")", "{", "clear_bytes", "=", "4", ";", "mode", "=", "SImode", ";", "}", "else", "if", "(", "bytes", ">=", "2", "&&", "(", "align", ">=", "16", "||", "!", "STRICT_ALIGNMENT", ")", ")", "{", "clear_bytes", "=", "2", ";", "mode", "=", "HImode", ";", "}", "else", "{", "clear_bytes", "=", "1", ";", "mode", "=", "QImode", ";", "}", "dest", "=", "adjust_address", "(", "orig_dest", ",", "mode", ",", "offset", ")", ";", "emit_move_insn", "(", "dest", ",", "CONST0_RTX", "(", "mode", ")", ")", ";", "}", "return", "1", ";", "}", ""], "natrual_language": ["Expand", "a", "block", "clear", "operation", ",", "and", "return", "1", "if", "successful", ".", "Return", "0", "if", "we", "should", "let", "the", "compiler", "generate", "normal", "code", ".", "operands", "[", "0", "]", "is", "the", "destination", "operands", "[", "1", "]", "is", "the", "length", "operands", "[", "3", "]", "is", "the", "alignment"], "TS_V_token": ["rs6000", "0", "1", "3", "0", "0", "1", "128", "16", "64", "8", "64", "8", "4", "3", "0", "8", "0", "0", "0", "16", "128", "16", "8", "64", "8", "8", "64", "8", "0", "64", "0", "1", "1", "3", "0", "4", "32", "4", "2", "16", "2", "1", "1"], "File": "rs60004", "Func": "expand_block_clear", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 963, "Length": 455, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64TargetLowering", "::", "isLegalICmpImmediate", "(", "int64_t", "Immed", ")", "const", "{", "return", "isLegalAddImmediate", "(", "Immed", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "specified", "immediate", "is", "legal", "icmp", "immediate", ",", "that", "is", "the", "target", "has", "icmp", "instructions", "which", "can", "compare", "a", "register", "against", "the", "immediate", "without", "having", "to", "materialize", "the", "immediate", "into", "a", "register", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64ISelLowering (2)", "Func": "isLegalICmpImmediate", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 964, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "arm_gen_compare_reg", "(", "enum", "rtx_code", "code", ",", "rtx", "x", ",", "rtx", "y", ",", "rtx", "scratch", ")", "{", "machine_mode", "mode", ";", "rtx", "cc_reg", ";", "int", "dimode_comparison", "=", "GET_MODE", "(", "x", ")", "==", "DImode", "||", "GET_MODE", "(", "y", ")", "==", "DImode", ";", "if", "(", "dimode_comparison", "&&", "!", "REG_P", "(", "x", ")", ")", "x", "=", "force_reg", "(", "DImode", ",", "x", ")", ";", "mode", "=", "SELECT_CC_MODE", "(", "code", ",", "x", ",", "y", ")", ";", "cc_reg", "=", "gen_rtx_REG", "(", "mode", ",", "CC_REGNUM", ")", ";", "if", "(", "dimode_comparison", "&&", "mode", "!=", "CC_CZmode", ")", "{", "rtx", "clobber", ",", "set", ";", "if", "(", "mode", "==", "CC_Zmode", "&&", "y", "!=", "const0_rtx", ")", "{", "gcc_assert", "(", "!", "reload_completed", ")", ";", "x", "=", "expand_binop", "(", "DImode", ",", "xor_optab", ",", "x", ",", "y", ",", "NULL_RTX", ",", "0", ",", "OPTAB_WIDEN", ")", ";", "y", "=", "const0_rtx", ";", "}", "if", "(", "reload_completed", ")", "gcc_assert", "(", "scratch", "!=", "NULL", "&&", "GET_MODE", "(", "scratch", ")", "==", "SImode", ")", ";", "else", "scratch", "=", "gen_rtx_SCRATCH", "(", "SImode", ")", ";", "clobber", "=", "gen_rtx_CLOBBER", "(", "VOIDmode", ",", "scratch", ")", ";", "set", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "cc_reg", ",", "gen_rtx_COMPARE", "(", "mode", ",", "x", ",", "y", ")", ")", ";", "emit_insn", "(", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "gen_rtvec", "(", "2", ",", "set", ",", "clobber", ")", ")", ")", ";", "}", "else", "emit_set_insn", "(", "cc_reg", ",", "gen_rtx_COMPARE", "(", "mode", ",", "x", ",", "y", ")", ")", ";", "return", "cc_reg", ";", "}", ""], "natrual_language": ["X", "and", "Y", "are", "two", "things", "to", "compare", "using", "CODE", ".", "Emit", "the", "compare", "insn", "and", "return", "the", "rtx", "for", "register", "0", "in", "the", "proper", "mode", ".", "FP", "means", "this", "is", "a", "floating", "point", "compare", ":", "I", "do", "n't", "think", "that", "it", "is", "needed", "on", "the", "arm", "."], "TS_V_token": ["arm", "0", "2"], "File": "arm4", "Func": "arm_gen_compare_reg", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 965, "Length": 224, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ix86_attr_length_immediate_default", "(", "rtx", "insn", ",", "int", "shortform", ")", "{", "int", "len", "=", "0", ";", "int", "i", ";", "extract_insn_cached", "(", "insn", ")", ";", "for", "(", "i", "=", "recog_data", ".", "n_operands", "-", "1", ";", "i", ">=", "0", ";", "--", "i", ")", "if", "(", "CONSTANT_P", "(", "recog_data", ".", "operand", "[", "i", "]", ")", ")", "{", "gcc_assert", "(", "!", "len", ")", ";", "if", "(", "shortform", "&&", "GET_CODE", "(", "recog_data", ".", "operand", "[", "i", "]", ")", "==", "CONST_INT", "&&", "CONST_OK_FOR_LETTER_P", "(", "INTVAL", "(", "recog_data", ".", "operand", "[", "i", "]", ")", ",", "'K'", ")", ")", "len", "=", "1", ";", "else", "{", "switch", "(", "get_attr_mode", "(", "insn", ")", ")", "{", "case", "MODE_QI", ":", "len", "+=", "1", ";", "break", ";", "case", "MODE_HI", ":", "len", "+=", "2", ";", "break", ";", "case", "MODE_SI", ":", "len", "+=", "4", ";", "break", ";", "case", "MODE_DI", ":", "len", "+=", "4", ";", "break", ";", "default", ":", "fatal_insn", "(", "\"unknown insn mode\"", ",", "insn", ")", ";", "}", "}", "}", "return", "len", ";", "}", ""], "natrual_language": ["Compute", "default", "value", "for", "``", "length_immediate", "''", "attribute", ".", "When", "SHORTFORM", "is", "set", "expect", "that", "insn", "have", "8bit", "immediate", "alternative", "."], "TS_V_token": ["i386", "0", "1", "0", "1", "1", "2", "4", "4", "\"unknown insn mode\""], "File": "i3863", "Func": "ix86_attr_length_immediate_default", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 966, "Length": 156, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "ARMSelectionDAGInfo", "::", "EmitTargetCodeForMemset", "(", "SelectionDAG", "&", "DAG", ",", "DebugLoc", "dl", ",", "SDValue", "Chain", ",", "SDValue", "Dst", ",", "SDValue", "Src", ",", "SDValue", "Size", ",", "unsigned", "Align", ",", "bool", "isVolatile", ",", "MachinePointerInfo", "DstPtrInfo", ")", "const", "{", "if", "(", "!", "Subtarget", "->", "isAAPCS_ABI", "(", ")", "||", "Subtarget", "->", "isTargetDarwin", "(", ")", ")", "return", "SDValue", "(", ")", ";", "const", "ARMTargetLowering", "&", "TLI", "=", "*", "static_cast", "<", "const", "ARMTargetLowering", "*", ">", "(", "DAG", ".", "getTarget", "(", ")", ".", "getTargetLowering", "(", ")", ")", ";", "TargetLowering", "::", "ArgListTy", "Args", ";", "TargetLowering", "::", "ArgListEntry", "Entry", ";", "unsigned", "AS", "=", "DstPtrInfo", ".", "getAddrSpace", "(", ")", ";", "Type", "*", "IntPtrTy", "=", "TLI", ".", "getDataLayout", "(", ")", "->", "getIntPtrType", "(", "*", "DAG", ".", "getContext", "(", ")", ",", "AS", ")", ";", "Entry", ".", "Node", "=", "Dst", ";", "Entry", ".", "Ty", "=", "IntPtrTy", ";", "Args", ".", "push_back", "(", "Entry", ")", ";", "Entry", ".", "Node", "=", "Size", ";", "Entry", ".", "Ty", "=", "IntPtrTy", ";", "Entry", ".", "isSExt", "=", "false", ";", "Args", ".", "push_back", "(", "Entry", ")", ";", "if", "(", "Src", ".", "getValueType", "(", ")", ".", "bitsGT", "(", "MVT", "::", "i32", ")", ")", "Src", "=", "DAG", ".", "getNode", "(", "ISD", "::", "TRUNCATE", ",", "dl", ",", "MVT", "::", "i32", ",", "Src", ")", ";", "else", "Src", "=", "DAG", ".", "getNode", "(", "ISD", "::", "ZERO_EXTEND", ",", "dl", ",", "MVT", "::", "i32", ",", "Src", ")", ";", "Entry", ".", "Node", "=", "Src", ";", "Entry", ".", "Ty", "=", "Type", "::", "getInt32Ty", "(", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "Entry", ".", "isSExt", "=", "true", ";", "Args", ".", "push_back", "(", "Entry", ")", ";", "TargetLowering", "::", "CallLoweringInfo", "CLI", "(", "Chain", ",", "Type", "::", "getVoidTy", "(", "*", "DAG", ".", "getContext", "(", ")", ")", ",", "false", ",", "false", ",", "false", ",", "false", ",", "0", ",", "TLI", ".", "getLibcallCallingConv", "(", "RTLIB", "::", "MEMSET", ")", ",", "false", ",", "false", ",", "false", ",", "DAG", ".", "getExternalSymbol", "(", "TLI", ".", "getLibcallName", "(", "RTLIB", "::", "MEMSET", ")", ",", "TLI", ".", "getPointerTy", "(", ")", ")", ",", "Args", ",", "DAG", ",", "dl", ")", ";", "std", "::", "pair", "<", "SDValue", ",", "SDValue", ">", "CallResult", "=", "TLI", ".", "LowerCallTo", "(", "CLI", ")", ";", "return", "CallResult", ".", "second", ";", "}", ""], "natrual_language": ["Emit", "target-specific", "code", "that", "performs", "a", "memset", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "MVT::i32", "ISD::TRUNCATE", "MVT::i32", "ISD::ZERO_EXTEND", "MVT::i32", "0"], "File": "ARMSelectionDAGInfo7", "Func": "EmitTargetCodeForMemset", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 967, "Length": 347, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86FrameLowering", "::", "getWinEHParentFrameOffset", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "unsigned", "Offset", "=", "16", ";", "Offset", "+=", "SlotSize", ";", "Offset", "+=", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", "->", "getCalleeSavedFrameSize", "(", ")", ";", "Offset", "+=", "getWinEHFuncletFrameSize", "(", "MF", ")", ";", "return", "Offset", ";", "}", ""], "natrual_language": ["The", "parent", "frame", "offset", "(", "aka", "dispFrame", ")", "is", "only", "used", "on", "X86_64", "to", "retrieve", "the", "parent", "'s", "frame", "pointer", "."], "TS_V_token": ["X86", "X86", "16", "X86"], "File": "X86FrameLowering (2)2", "Func": "getWinEHParentFrameOffset", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 968, "Length": 47, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCTargetLowering", "::", "getPrefLoopAlignment", "(", "MachineLoop", "*", "ML", ")", "const", "{", "switch", "(", "Subtarget", ".", "getDarwinDirective", "(", ")", ")", "{", "default", ":", "break", ";", "case", "PPC", "::", "DIR_970", ":", "case", "PPC", "::", "DIR_PWR4", ":", "case", "PPC", "::", "DIR_PWR5", ":", "case", "PPC", "::", "DIR_PWR5X", ":", "case", "PPC", "::", "DIR_PWR6", ":", "case", "PPC", "::", "DIR_PWR6X", ":", "case", "PPC", "::", "DIR_PWR7", ":", "case", "PPC", "::", "DIR_PWR8", ":", "case", "PPC", "::", "DIR_PWR9", ":", "{", "if", "(", "!", "ML", ")", "break", ";", "const", "PPCInstrInfo", "*", "TII", "=", "Subtarget", ".", "getInstrInfo", "(", ")", ";", "uint64_t", "LoopSize", "=", "0", ";", "for", "(", "auto", "I", "=", "ML", "->", "block_begin", "(", ")", ",", "IE", "=", "ML", "->", "block_end", "(", ")", ";", "I", "!=", "IE", ";", "++", "I", ")", "for", "(", "auto", "J", "=", "(", "*", "I", ")", "->", "begin", "(", ")", ",", "JE", "=", "(", "*", "I", ")", "->", "end", "(", ")", ";", "J", "!=", "JE", ";", "++", "J", ")", "{", "LoopSize", "+=", "TII", "->", "GetInstSizeInBytes", "(", "*", "J", ")", ";", "if", "(", "LoopSize", ">", "32", ")", "break", ";", "}", "if", "(", "LoopSize", ">", "16", "&&", "LoopSize", "<=", "32", ")", "return", "5", ";", "break", ";", "}", "}", "return", "TargetLowering", "::", "getPrefLoopAlignment", "(", "ML", ")", ";", "}", ""], "natrual_language": ["Return", "the", "preferred", "loop", "alignment", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::DIR_970", "PPC::DIR_PWR4", "PPC::DIR_PWR5", "PPC::DIR_PWR5X", "PPC::DIR_PWR6", "PPC::DIR_PWR6X", "PPC::DIR_PWR7", "PPC::DIR_PWR8", "PPC::DIR_PWR9", "PPC", "0", "32", "16", "32", "5"], "File": "PPCISelLowering119", "Func": "getPrefLoopAlignment", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 969, "Length": 197, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCInstrInfo", "::", "getMemOperandWithOffsetWidth", "(", "const", "MachineInstr", "&", "LdSt", ",", "const", "MachineOperand", "*", "&", "BaseReg", ",", "int64_t", "&", "Offset", ",", "unsigned", "&", "Width", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "!", "LdSt", ".", "mayLoadOrStore", "(", ")", "||", "LdSt", ".", "getNumExplicitOperands", "(", ")", "!=", "3", ")", "return", "false", ";", "if", "(", "!", "LdSt", ".", "getOperand", "(", "1", ")", ".", "isImm", "(", ")", "||", "(", "!", "LdSt", ".", "getOperand", "(", "2", ")", ".", "isReg", "(", ")", "&&", "!", "LdSt", ".", "getOperand", "(", "2", ")", ".", "isFI", "(", ")", ")", ")", "return", "false", ";", "if", "(", "!", "LdSt", ".", "getOperand", "(", "1", ")", ".", "isImm", "(", ")", "||", "(", "!", "LdSt", ".", "getOperand", "(", "2", ")", ".", "isReg", "(", ")", "&&", "!", "LdSt", ".", "getOperand", "(", "2", ")", ".", "isFI", "(", ")", ")", ")", "return", "false", ";", "if", "(", "!", "LdSt", ".", "hasOneMemOperand", "(", ")", ")", "return", "false", ";", "Width", "=", "(", "*", "LdSt", ".", "memoperands_begin", "(", ")", ")", "->", "getSize", "(", ")", ";", "Offset", "=", "LdSt", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ";", "BaseReg", "=", "&", "LdSt", ".", "getOperand", "(", "2", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "get", "the", "base", "operand", ",", "byte", "offset", "of", "an", "instruction", "and", "the", "memory", "width", "."], "TS_V_token": ["PowerPC", "PPC", "3", "1", "2", "2", "1", "2", "2", "1", "2"], "File": "PPCInstrInfo", "Func": "getMemOperandWithOffsetWidth", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 970, "Length": 191, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsTargetObjectFile", "::", "IsGlobalInSmallSection", "(", "const", "GlobalObject", "*", "GO", ",", "const", "TargetMachine", "&", "TM", ",", "SectionKind", "Kind", ")", "const", "{", "return", "(", "IsGlobalInSmallSectionImpl", "(", "GO", ",", "TM", ")", "&&", "(", "Kind", ".", "isData", "(", ")", "||", "Kind", ".", "isBSS", "(", ")", "||", "Kind", ".", "isCommon", "(", ")", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "this", "global", "address", "should", "be", "placed", "into", "small", "data/bss", "section", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsTargetObjectFile10", "Func": "IsGlobalInSmallSection", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 971, "Length": 51, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTargetLowering", "::", "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_PPC", ")", ";", "}", ""], "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": ["PowerPC", "PPC", "ISD::OutputArg", "16", "PPC"], "File": "PPCISelLowering (2)2", "Func": "CanLowerReturn", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 972, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "rs6000_xcoff_declare_function_name", "(", "FILE", "*", "file", ",", "const", "char", "*", "name", ",", "tree", "decl", ")", "{", "char", "*", "buffer", "=", "(", "char", "*", ")", "alloca", "(", "strlen", "(", "name", ")", "+", "1", ")", ";", "char", "*", "p", ";", "int", "dollar_inside", "=", "0", ";", "struct", "declare_alias_data", "data", "=", "{", "file", ",", "false", "}", ";", "strcpy", "(", "buffer", ",", "name", ")", ";", "p", "=", "strchr", "(", "buffer", ",", "'$'", ")", ";", "while", "(", "p", ")", "{", "*", "p", "=", "'_'", ";", "dollar_inside", "++", ";", "p", "=", "strchr", "(", "p", "+", "1", ",", "'$'", ")", ";", "}", "if", "(", "TREE_PUBLIC", "(", "decl", ")", ")", "{", "if", "(", "!", "RS6000_WEAK", "||", "!", "DECL_WEAK", "(", "decl", ")", ")", "{", "if", "(", "dollar_inside", ")", "{", "fprintf", "(", "file", ",", "\"\\t.rename .%s,\\\".%s\\\"\\n\"", ",", "buffer", ",", "name", ")", ";", "fprintf", "(", "file", ",", "\"\\t.rename %s,\\\"%s\\\"\\n\"", ",", "buffer", ",", "name", ")", ";", "}", "fputs", "(", "\"\\t.globl .\"", ",", "file", ")", ";", "RS6000_OUTPUT_BASENAME", "(", "file", ",", "buffer", ")", ";", "putc", "(", "'\\n'", ",", "file", ")", ";", "}", "}", "else", "{", "if", "(", "dollar_inside", ")", "{", "fprintf", "(", "file", ",", "\"\\t.rename .%s,\\\".%s\\\"\\n\"", ",", "buffer", ",", "name", ")", ";", "fprintf", "(", "file", ",", "\"\\t.rename %s,\\\"%s\\\"\\n\"", ",", "buffer", ",", "name", ")", ";", "}", "fputs", "(", "\"\\t.lglobl .\"", ",", "file", ")", ";", "RS6000_OUTPUT_BASENAME", "(", "file", ",", "buffer", ")", ";", "putc", "(", "'\\n'", ",", "file", ")", ";", "}", "fputs", "(", "\"\\t.csect \"", ",", "file", ")", ";", "RS6000_OUTPUT_BASENAME", "(", "file", ",", "buffer", ")", ";", "fputs", "(", "TARGET_32BIT", "?", "\"[DS]\\n\"", ":", "\"[DS],3\\n\"", ",", "file", ")", ";", "RS6000_OUTPUT_BASENAME", "(", "file", ",", "buffer", ")", ";", "fputs", "(", "\":\\n\"", ",", "file", ")", ";", "symtab_node", "::", "get", "(", "decl", ")", "->", "call_for_symbol_and_aliases", "(", "rs6000_declare_alias", ",", "&", "data", ",", "true", ")", ";", "fputs", "(", "TARGET_32BIT", "?", "\"\\t.long .\"", ":", "\"\\t.llong .\"", ",", "file", ")", ";", "RS6000_OUTPUT_BASENAME", "(", "file", ",", "buffer", ")", ";", "fputs", "(", "\", TOC[tc0], 0\\n\"", ",", "file", ")", ";", "in_section", "=", "NULL", ";", "switch_to_section", "(", "function_section", "(", "decl", ")", ")", ";", "putc", "(", "'.'", ",", "file", ")", ";", "RS6000_OUTPUT_BASENAME", "(", "file", ",", "buffer", ")", ";", "fputs", "(", "\":\\n\"", ",", "file", ")", ";", "data", ".", "function_descriptor", "=", "true", ";", "symtab_node", "::", "get", "(", "decl", ")", "->", "call_for_symbol_and_aliases", "(", "rs6000_declare_alias", ",", "&", "data", ",", "true", ")", ";", "if", "(", "write_symbols", "!=", "NO_DEBUG", "&&", "!", "DECL_IGNORED_P", "(", "decl", ")", ")", "xcoffout_declare_function", "(", "file", ",", "decl", ",", "buffer", ")", ";", "return", ";", "}", ""], "natrual_language": ["This", "macro", "produces", "the", "initial", "definition", "of", "a", "function", "name", ".", "On", "the", "RS/6000", ",", "we", "need", "to", "place", "an", "extra", "'", ".", "'", "in", "the", "function", "name", "and", "output", "the", "function", "descriptor", ".", "Dollar", "signs", "are", "converted", "to", "underscores", ".", "The", "csect", "for", "the", "function", "will", "have", "already", "been", "created", "when", "text_section", "was", "selected", ".", "We", "do", "have", "to", "go", "back", "to", "that", "csect", ",", "however", ".", "The", "third", "and", "fourth", "parameters", "to", "the", ".function", "pseudo-op", "(", "16", "and", "044", ")", "are", "placeholders", "which", "no", "longer", "have", "any", "use", ".", "Because", "AIX", "assembler", "'s", ".set", "command", "has", "unexpected", "semantics", ",", "we", "output", "all", "aliases", "as", "alternative", "labels", "in", "front", "of", "the", "definition", "."], "TS_V_token": ["rs6000", "1", "0", "1", "\"\\t.rename .%s,\\\".%s\\\"\\n\"", "\"\\t.rename %s,\\\"%s\\\"\\n\"", "\"\\t.globl .\"", "\"\\t.rename .%s,\\\".%s\\\"\\n\"", "\"\\t.rename %s,\\\"%s\\\"\\n\"", "\"\\t.lglobl .\"", "\"\\t.csect \"", "\"[DS]\\n\"", "\"[DS],3\\n\"", "\":\\n\"", "\"\\t.long .\"", "\"\\t.llong .\"", "\", TOC[tc0], 0\\n\"", "\":\\n\""], "File": "rs60004", "Func": "rs6000_xcoff_declare_function_name", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 973, "Length": 378, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "aarch64_ptrue_reg", "(", "machine_mode", "mode", ")", "{", "gcc_assert", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_VECTOR_BOOL", ")", ";", "rtx", "reg", "=", "force_reg", "(", "VNx16BImode", ",", "CONSTM1_RTX", "(", "VNx16BImode", ")", ")", ";", "return", "gen_lowpart", "(", "mode", ",", "reg", ")", ";", "}", ""], "natrual_language": ["Return", "an", "all-true", "predicate", "register", "of", "mode", "MODE", "."], "TS_V_token": ["aarch64"], "File": "aarch64", "Func": "aarch64_ptrue_reg", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 974, "Length": 39, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "fpscr_set_from_mem", "(", "int", "mode", ",", "HARD_REG_SET", "regs_live", ")", "{", "enum", "attr_fp_mode", "fp_mode", "=", "(", "enum", "attr_fp_mode", ")", "mode", ";", "enum", "attr_fp_mode", "norm_mode", "=", "ACTUAL_NORMAL_MODE", "(", "FP_MODE", ")", ";", "rtx", "addr_reg", ";", "addr_reg", "=", "!", "can_create_pseudo_p", "(", ")", "?", "get_free_reg", "(", "regs_live", ")", ":", "NULL_RTX", ";", "emit_fpu_switch", "(", "addr_reg", ",", "fp_mode", "==", "norm_mode", ")", ";", "}", ""], "natrual_language": ["This", "function", "will", "set", "the", "fpscr", "from", "memory", ".", "MODE", "is", "the", "mode", "we", "are", "setting", "it", "to", "."], "TS_V_token": ["sh"], "File": "sh4", "Func": "fpscr_set_from_mem", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 975, "Length": 56, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "HOST_WIDE_INT", "rs6000_constant_alignment", "(", "const_tree", "exp", ",", "HOST_WIDE_INT", "align", ")", "{", "if", "(", "TREE_CODE", "(", "exp", ")", "==", "STRING_CST", "&&", "(", "STRICT_ALIGNMENT", "||", "!", "optimize_size", ")", ")", "return", "MAX", "(", "align", ",", "BITS_PER_WORD", ")", ";", "return", "align", ";", "}", ""], "natrual_language": ["Implement", "TARGET_CONSTANT_ALIGNMENT", "."], "TS_V_token": ["rs6000"], "File": "rs6000", "Func": "rs6000_constant_alignment", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 976, "Length": 39, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTTIImpl", "::", "isHardwareLoopProfitable", "(", "Loop", "*", "L", ",", "ScalarEvolution", "&", "SE", ",", "AssumptionCache", "&", "AC", ",", "TargetLibraryInfo", "*", "LibInfo", ",", "HardwareLoopInfo", "&", "HWLoopInfo", ")", "{", "const", "PPCTargetMachine", "&", "TM", "=", "ST", "->", "getTargetMachine", "(", ")", ";", "TargetSchedModel", "SchedModel", ";", "SchedModel", ".", "init", "(", "ST", ")", ";", "unsigned", "ConstTripCount", "=", "SE", ".", "getSmallConstantTripCount", "(", "L", ")", ";", "if", "(", "ConstTripCount", "&&", "ConstTripCount", "<", "SmallCTRLoopThreshold", ")", "{", "SmallPtrSet", "<", "const", "Value", "*", ",", "32", ">", "EphValues", ";", "CodeMetrics", "::", "collectEphemeralValues", "(", "L", ",", "&", "AC", ",", "EphValues", ")", ";", "CodeMetrics", "Metrics", ";", "for", "(", "BasicBlock", "*", "BB", ":", "L", "->", "blocks", "(", ")", ")", "Metrics", ".", "analyzeBasicBlock", "(", "BB", ",", "*", "this", ",", "EphValues", ")", ";", "if", "(", "Metrics", ".", "NumInsts", "<=", "(", "6", "*", "SchedModel", ".", "getIssueWidth", "(", ")", ")", ")", "return", "false", ";", "}", "SmallPtrSet", "<", "const", "Value", "*", ",", "4", ">", "Visited", ";", "for", "(", "Loop", "::", "block_iterator", "I", "=", "L", "->", "block_begin", "(", ")", ",", "IE", "=", "L", "->", "block_end", "(", ")", ";", "I", "!=", "IE", ";", "++", "I", ")", "if", "(", "mightUseCTR", "(", "*", "I", ",", "LibInfo", ",", "Visited", ")", ")", "return", "false", ";", "SmallVector", "<", "BasicBlock", "*", ",", "4", ">", "ExitingBlocks", ";", "L", "->", "getExitingBlocks", "(", "ExitingBlocks", ")", ";", "for", "(", "auto", "&", "BB", ":", "ExitingBlocks", ")", "{", "Instruction", "*", "TI", "=", "BB", "->", "getTerminator", "(", ")", ";", "if", "(", "!", "TI", ")", "continue", ";", "if", "(", "BranchInst", "*", "BI", "=", "dyn_cast", "<", "BranchInst", ">", "(", "TI", ")", ")", "{", "uint64_t", "TrueWeight", "=", "0", ",", "FalseWeight", "=", "0", ";", "if", "(", "!", "BI", "->", "isConditional", "(", ")", "||", "!", "BI", "->", "extractProfMetadata", "(", "TrueWeight", ",", "FalseWeight", ")", ")", "continue", ";", "bool", "TrueIsExit", "=", "!", "L", "->", "contains", "(", "BI", "->", "getSuccessor", "(", "0", ")", ")", ";", "if", "(", "(", "TrueIsExit", "&&", "FalseWeight", "<", "TrueWeight", ")", "||", "(", "!", "TrueIsExit", "&&", "FalseWeight", ">", "TrueWeight", ")", ")", "return", "false", ";", "}", "}", "SmallVector", "<", "BasicBlock", "*", ",", "4", ">", "ExitBlocks", ";", "L", "->", "getExitBlocks", "(", "ExitBlocks", ")", ";", "for", "(", "auto", "&", "BB", ":", "ExitBlocks", ")", "{", "for", "(", "auto", "&", "PHI", ":", "BB", "->", "phis", "(", ")", ")", "{", "for", "(", "int", "Idx", "=", "0", ",", "EndIdx", "=", "PHI", ".", "getNumIncomingValues", "(", ")", ";", "Idx", "<", "EndIdx", ";", "Idx", "++", ")", "{", "const", "BasicBlock", "*", "IncomingBB", "=", "PHI", ".", "getIncomingBlock", "(", "Idx", ")", ";", "const", "Value", "*", "IncomingValue", "=", "PHI", ".", "getIncomingValue", "(", "Idx", ")", ";", "if", "(", "L", "->", "contains", "(", "IncomingBB", ")", "&&", "memAddrUsesCTR", "(", "IncomingValue", ",", "TM", ",", "Visited", ")", ")", "return", "false", ";", "}", "}", "}", "LLVMContext", "&", "C", "=", "L", "->", "getHeader", "(", ")", "->", "getContext", "(", ")", ";", "HWLoopInfo", ".", "CountType", "=", "TM", ".", "isPPC64", "(", ")", "?", "Type", "::", "getInt64Ty", "(", "C", ")", ":", "Type", "::", "getInt32Ty", "(", "C", ")", ";", "HWLoopInfo", ".", "LoopDecrement", "=", "ConstantInt", "::", "get", "(", "HWLoopInfo", ".", "CountType", ",", "1", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Query", "the", "target", "whether", "it", "would", "be", "profitable", "to", "convert", "the", "given", "loop", "into", "a", "hardware", "loop", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "32", "6", "4", "4", "0", "0", "0", "4", "0", "PPC", "1"], "File": "PPCTargetTransformInfo1", "Func": "isHardwareLoopProfitable", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 977, "Length": 481, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "arm_emit_eabi_attribute", "(", "const", "char", "*", "name", ",", "int", "num", ",", "int", "val", ")", "{", "asm_fprintf", "(", "asm_out_file", ",", "\"\\t.eabi_attribute %d, %d\"", ",", "num", ",", "val", ")", ";", "if", "(", "flag_verbose_asm", "||", "flag_debug_asm", ")", "asm_fprintf", "(", "asm_out_file", ",", "\"\\t%s %s\"", ",", "ASM_COMMENT_START", ",", "name", ")", ";", "asm_fprintf", "(", "asm_out_file", ",", "\"\\n\"", ")", ";", "}", ""], "natrual_language": ["This", "function", "is", "used", "to", "emit", "an", "EABI", "tag", "and", "its", "associated", "value", ".", "We", "emit", "the", "numerical", "value", "of", "the", "tag", "in", "case", "the", "assembler", "does", "not", "support", "textual", "tags", ".", "(", "Eg", "gas", "prior", "to", "2.20", ")", ".", "If", "requested", "we", "include", "the", "tag", "name", "in", "a", "comment", "so", "that", "anyone", "reading", "the", "assembler", "output", "will", "know", "which", "tag", "is", "being", "set", ".", "This", "function", "is", "not", "static", "because", "arm-c.cc", "needs", "it", "too", "."], "TS_V_token": ["arm", "\"\\t.eabi_attribute %d, %d\"", "\"\\t%s %s\"", "\"\\n\""], "File": "arm", "Func": "arm_emit_eabi_attribute", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 978, "Length": 51, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "pa_init_libfuncs", "(", "void", ")", "{", "if", "(", "HPUX_LONG_DOUBLE_LIBRARY", ")", "{", "set_optab_libfunc", "(", "add_optab", ",", "TFmode", ",", "\"_U_Qfadd\"", ")", ";", "set_optab_libfunc", "(", "sub_optab", ",", "TFmode", ",", "\"_U_Qfsub\"", ")", ";", "set_optab_libfunc", "(", "smul_optab", ",", "TFmode", ",", "\"_U_Qfmpy\"", ")", ";", "set_optab_libfunc", "(", "sdiv_optab", ",", "TFmode", ",", "\"_U_Qfdiv\"", ")", ";", "set_optab_libfunc", "(", "smin_optab", ",", "TFmode", ",", "\"_U_Qmin\"", ")", ";", "set_optab_libfunc", "(", "smax_optab", ",", "TFmode", ",", "\"_U_Qfmax\"", ")", ";", "set_optab_libfunc", "(", "sqrt_optab", ",", "TFmode", ",", "\"_U_Qfsqrt\"", ")", ";", "set_optab_libfunc", "(", "abs_optab", ",", "TFmode", ",", "\"_U_Qfabs\"", ")", ";", "set_optab_libfunc", "(", "neg_optab", ",", "TFmode", ",", "\"_U_Qfneg\"", ")", ";", "set_optab_libfunc", "(", "eq_optab", ",", "TFmode", ",", "\"_U_Qfeq\"", ")", ";", "set_optab_libfunc", "(", "ne_optab", ",", "TFmode", ",", "\"_U_Qfne\"", ")", ";", "set_optab_libfunc", "(", "gt_optab", ",", "TFmode", ",", "\"_U_Qfgt\"", ")", ";", "set_optab_libfunc", "(", "ge_optab", ",", "TFmode", ",", "\"_U_Qfge\"", ")", ";", "set_optab_libfunc", "(", "lt_optab", ",", "TFmode", ",", "\"_U_Qflt\"", ")", ";", "set_optab_libfunc", "(", "le_optab", ",", "TFmode", ",", "\"_U_Qfle\"", ")", ";", "set_optab_libfunc", "(", "unord_optab", ",", "TFmode", ",", "\"_U_Qfunord\"", ")", ";", "set_conv_libfunc", "(", "sext_optab", ",", "TFmode", ",", "SFmode", ",", "\"_U_Qfcnvff_sgl_to_quad\"", ")", ";", "set_conv_libfunc", "(", "sext_optab", ",", "TFmode", ",", "DFmode", ",", "\"_U_Qfcnvff_dbl_to_quad\"", ")", ";", "set_conv_libfunc", "(", "trunc_optab", ",", "SFmode", ",", "TFmode", ",", "\"_U_Qfcnvff_quad_to_sgl\"", ")", ";", "set_conv_libfunc", "(", "trunc_optab", ",", "DFmode", ",", "TFmode", ",", "\"_U_Qfcnvff_quad_to_dbl\"", ")", ";", "set_conv_libfunc", "(", "sfix_optab", ",", "SImode", ",", "TFmode", ",", "TARGET_64BIT", "?", "\"__U_Qfcnvfxt_quad_to_sgl\"", ":", "\"_U_Qfcnvfxt_quad_to_sgl\"", ")", ";", "set_conv_libfunc", "(", "sfix_optab", ",", "DImode", ",", "TFmode", ",", "\"_U_Qfcnvfxt_quad_to_dbl\"", ")", ";", "set_conv_libfunc", "(", "ufix_optab", ",", "SImode", ",", "TFmode", ",", "\"_U_Qfcnvfxt_quad_to_usgl\"", ")", ";", "set_conv_libfunc", "(", "ufix_optab", ",", "DImode", ",", "TFmode", ",", "\"_U_Qfcnvfxt_quad_to_udbl\"", ")", ";", "set_conv_libfunc", "(", "sfloat_optab", ",", "TFmode", ",", "SImode", ",", "\"_U_Qfcnvxf_sgl_to_quad\"", ")", ";", "set_conv_libfunc", "(", "sfloat_optab", ",", "TFmode", ",", "DImode", ",", "\"_U_Qfcnvxf_dbl_to_quad\"", ")", ";", "set_conv_libfunc", "(", "ufloat_optab", ",", "TFmode", ",", "SImode", ",", "\"_U_Qfcnvxf_usgl_to_quad\"", ")", ";", "set_conv_libfunc", "(", "ufloat_optab", ",", "TFmode", ",", "DImode", ",", "\"_U_Qfcnvxf_udbl_to_quad\"", ")", ";", "}", "if", "(", "TARGET_SYNC_LIBCALL", ")", "init_sync_libfuncs", "(", "UNITS_PER_WORD", ")", ";", "}", ""], "natrual_language": ["Initialize", "optabs", "to", "point", "to", "emulation", "routines", "."], "TS_V_token": ["pa", "\"_U_Qfadd\"", "\"_U_Qfsub\"", "\"_U_Qfmpy\"", "\"_U_Qfdiv\"", "\"_U_Qmin\"", "\"_U_Qfmax\"", "\"_U_Qfsqrt\"", "\"_U_Qfabs\"", "\"_U_Qfneg\"", "\"_U_Qfeq\"", "\"_U_Qfne\"", "\"_U_Qfgt\"", "\"_U_Qfge\"", "\"_U_Qflt\"", "\"_U_Qfle\"", "\"_U_Qfunord\"", "\"_U_Qfcnvff_sgl_to_quad\"", "\"_U_Qfcnvff_dbl_to_quad\"", "\"_U_Qfcnvff_quad_to_sgl\"", "\"_U_Qfcnvff_quad_to_dbl\"", "\"__U_Qfcnvfxt_quad_to_sgl\"", "\"_U_Qfcnvfxt_quad_to_sgl\"", "\"_U_Qfcnvfxt_quad_to_dbl\"", "\"_U_Qfcnvfxt_quad_to_usgl\"", "\"_U_Qfcnvfxt_quad_to_udbl\"", "\"_U_Qfcnvxf_sgl_to_quad\"", "\"_U_Qfcnvxf_dbl_to_quad\"", "\"_U_Qfcnvxf_usgl_to_quad\"", "\"_U_Qfcnvxf_udbl_to_quad\""], "File": "pa4", "Func": "pa_init_libfuncs", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 979, "Length": 303, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "PPCTargetLowering", "::", "getPICJumpTableRelocBase", "(", "SDValue", "Table", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "if", "(", "!", "Subtarget", ".", "isPPC64", "(", ")", ")", "return", "TargetLowering", "::", "getPICJumpTableRelocBase", "(", "Table", ",", "DAG", ")", ";", "switch", "(", "getTargetMachine", "(", ")", ".", "getCodeModel", "(", ")", ")", "{", "case", "CodeModel", "::", "Default", ":", "case", "CodeModel", "::", "Small", ":", "case", "CodeModel", "::", "Medium", ":", "return", "TargetLowering", "::", "getPICJumpTableRelocBase", "(", "Table", ",", "DAG", ")", ";", "default", ":", "return", "DAG", ".", "getNode", "(", "PPCISD", "::", "GlobalBaseReg", ",", "SDLoc", "(", ")", ",", "getPointerTy", "(", "DAG", ".", "getDataLayout", "(", ")", ")", ")", ";", "}", "}", ""], "natrual_language": ["Returns", "relocation", "base", "for", "the", "given", "PIC", "jumptable", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPCISD::GlobalBaseReg"], "File": "PPCISelLowering135", "Func": "getPICJumpTableRelocBase", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 980, "Length": 96, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Value", "*", "ARMTargetLowering", "::", "emitStoreConditional", "(", "IRBuilder", "<", ">", "&", "Builder", ",", "Value", "*", "Val", ",", "Value", "*", "Addr", ",", "AtomicOrdering", "Ord", ")", "const", "{", "Module", "*", "M", "=", "Builder", ".", "GetInsertBlock", "(", ")", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "bool", "IsRelease", "=", "isReleaseOrStronger", "(", "Ord", ")", ";", "if", "(", "Val", "->", "getType", "(", ")", "->", "getPrimitiveSizeInBits", "(", ")", "==", "64", ")", "{", "Intrinsic", "::", "ID", "Int", "=", "IsRelease", "?", "Intrinsic", "::", "arm_stlexd", ":", "Intrinsic", "::", "arm_strexd", ";", "Function", "*", "Strex", "=", "Intrinsic", "::", "getDeclaration", "(", "M", ",", "Int", ")", ";", "Type", "*", "Int32Ty", "=", "Type", "::", "getInt32Ty", "(", "M", "->", "getContext", "(", ")", ")", ";", "Value", "*", "Lo", "=", "Builder", ".", "CreateTrunc", "(", "Val", ",", "Int32Ty", ",", "\"lo\"", ")", ";", "Value", "*", "Hi", "=", "Builder", ".", "CreateTrunc", "(", "Builder", ".", "CreateLShr", "(", "Val", ",", "32", ")", ",", "Int32Ty", ",", "\"hi\"", ")", ";", "if", "(", "!", "Subtarget", "->", "isLittle", "(", ")", ")", "std", "::", "swap", "(", "Lo", ",", "Hi", ")", ";", "Addr", "=", "Builder", ".", "CreateBitCast", "(", "Addr", ",", "Type", "::", "getInt8PtrTy", "(", "M", "->", "getContext", "(", ")", ")", ")", ";", "return", "Builder", ".", "CreateCall", "(", "Strex", ",", "{", "Lo", ",", "Hi", ",", "Addr", "}", ")", ";", "}", "Intrinsic", "::", "ID", "Int", "=", "IsRelease", "?", "Intrinsic", "::", "arm_stlex", ":", "Intrinsic", "::", "arm_strex", ";", "Type", "*", "Tys", "[", "]", "=", "{", "Addr", "->", "getType", "(", ")", "}", ";", "Function", "*", "Strex", "=", "Intrinsic", "::", "getDeclaration", "(", "M", ",", "Int", ",", "Tys", ")", ";", "return", "Builder", ".", "CreateCall", "(", "Strex", ",", "{", "Builder", ".", "CreateZExtOrBitCast", "(", "Val", ",", "Strex", "->", "getFunctionType", "(", ")", "->", "getParamType", "(", "0", ")", ")", ",", "Addr", "}", ")", ";", "}", ""], "natrual_language": ["Perform", "a", "store-conditional", "operation", "to", "Addr", "."], "TS_V_token": ["ARM", "ARM", "64", "Intrinsic::ID", "Intrinsic::arm_stlexd", "Intrinsic::arm_strexd", "Intrinsic::getDeclaration", "\"lo\"", "32", "\"hi\"", "Intrinsic::ID", "Intrinsic::arm_stlex", "Intrinsic::arm_strex", "Intrinsic::getDeclaration", "0"], "File": "ARMISelLowering (2)6", "Func": "emitStoreConditional", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 981, "Length": 276, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "HOST_WIDE_INT", "iq2000_constant_alignment", "(", "const_tree", "exp", ",", "HOST_WIDE_INT", "align", ")", "{", "if", "(", "TREE_CODE", "(", "exp", ")", "==", "STRING_CST", "||", "TREE_CODE", "(", "exp", ")", "==", "CONSTRUCTOR", ")", "return", "MAX", "(", "align", ",", "BITS_PER_WORD", ")", ";", "return", "align", ";", "}", ""], "natrual_language": ["Implement", "TARGET_CONSTANT_ALIGNMENT", "."], "TS_V_token": ["iq2000"], "File": "iq2000", "Func": "iq2000_constant_alignment", "Target": "iq2000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 982, "Length": 39, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64RegisterInfo", "::", "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": ["AArch64", "AArch64"], "File": "AArch64RegisterInfo (2)", "Func": "requiresRegisterScavenging", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 983, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "writeNopData", "(", "uint64_t", "Count", ",", "MCObjectWriter", "*", "OW", ")", "const", "override", "{", "if", "(", "Count", "==", "0", ")", "{", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Write", "an", "(", "optimal", ")", "nop", "sequence", "of", "Count", "bytes", "to", "the", "given", "output", "."], "TS_V_token": ["TOY", "0"], "File": "TOYAsmBackend1", "Func": "writeNopData", "Target": "TOY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 984, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "FastISel", "*", "PPC", "::", "createFastISel", "(", "FunctionLoweringInfo", "&", "FuncInfo", ",", "const", "TargetLibraryInfo", "*", "LibInfo", ")", "{", "const", "PPCSubtarget", "&", "Subtarget", "=", "FuncInfo", ".", "MF", "->", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ";", "if", "(", "Subtarget", ".", "isPPC64", "(", ")", "&&", "Subtarget", ".", "isSVR4ABI", "(", ")", ")", "return", "new", "PPCFastISel", "(", "FuncInfo", ",", "LibInfo", ")", ";", "return", "nullptr", ";", "}", ""], "natrual_language": ["This", "method", "returns", "a", "target", "specific", "FastISel", "object", ",", "or", "null", "if", "the", "target", "does", "not", "support", "``", "fast", "''", "ISel", "."], "TS_V_token": ["PowerPC", "PPC::createFastISel", "PPC", "PPC", "PPC", "PPC"], "File": "PPCFastISel (2)", "Func": "createFastISel", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 985, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "isPreSt", "(", "const", "MachineInstr", "&", "MI", ")", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "false", ";", "case", "AArch64", "::", "STRWpre", ":", "case", "AArch64", "::", "STRXpre", ":", "case", "AArch64", "::", "STRSpre", ":", "case", "AArch64", "::", "STRDpre", ":", "case", "AArch64", "::", "STRQpre", ":", "return", "true", ";", "}", "}", ""], "natrual_language": ["Returns", "whether", "the", "instruction", "is", "a", "pre-indexed", "store", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::STRWpre", "AArch64::STRXpre", "AArch64::STRSpre", "AArch64::STRDpre", "AArch64::STRQpre"], "File": "AArch64InstrInfo105", "Func": "isPreSt", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 986, "Length": 55, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86AsmPrinter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "SetupMachineFunction", "(", "MF", ")", ";", "if", "(", "Subtarget", "->", "isTargetCOFF", "(", ")", ")", "{", "const", "Function", "*", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "OutStreamer", ".", "EmitRawText", "(", "\"\\t.def\\t \"", "+", "Twine", "(", "CurrentFnSym", "->", "getName", "(", ")", ")", "+", "\";\\t.scl\\t\"", "+", "Twine", "(", "F", "->", "hasInternalLinkage", "(", ")", "?", "COFF", "::", "C_STAT", ":", "COFF", "::", "C_EXT", ")", "+", "\";\\t.type\\t\"", "+", "Twine", "(", "COFF", "::", "DT_FCN", "<<", "COFF", "::", "N_BTSHFT", ")", "+", "\";\\t.endef\"", ")", ";", "}", "EmitFunctionHeader", "(", ")", ";", "EmitFunctionBody", "(", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "\"\\t.def\\t \"", "\";\\t.scl\\t\"", "\";\\t.type\\t\"", "\";\\t.endef\""], "File": "X86AsmPrinter4", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 987, "Length": 98, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "inline", "hashval_t", "libcall_hasher", "::", "hash", "(", "const", "rtx_def", "*", "p1", ")", "{", "return", "hash_rtx", "(", "p1", ",", "VOIDmode", ",", "NULL", ",", "NULL", ",", "FALSE", ")", ";", "}", ""], "natrual_language": ["Hash", "function", "for", "builtin", "functions", "with", "up", "to", "3", "arguments", "and", "a", "return", "type", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "hash", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 988, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "::", "iterator", "ARMBaseInstrInfo", "::", "insertOutlinedCall", "(", "Module", "&", "M", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "It", ",", "MachineFunction", "&", "MF", ",", "const", "outliner", "::", "Candidate", "&", "C", ")", "const", "{", "MachineInstrBuilder", "MIB", ";", "MachineBasicBlock", "::", "iterator", "CallPt", ";", "unsigned", "Opc", ";", "bool", "isThumb", "=", "Subtarget", ".", "isThumb", "(", ")", ";", "if", "(", "C", ".", "CallConstructionID", "==", "MachineOutlinerTailCall", ")", "{", "Opc", "=", "isThumb", "?", "Subtarget", ".", "isTargetMachO", "(", ")", "?", "ARM", "::", "tTAILJMPd", ":", "ARM", "::", "tTAILJMPdND", ":", "ARM", "::", "TAILJMPd", ";", "MIB", "=", "BuildMI", "(", "MF", ",", "DebugLoc", "(", ")", ",", "get", "(", "Opc", ")", ")", ".", "addGlobalAddress", "(", "M", ".", "getNamedValue", "(", "MF", ".", "getName", "(", ")", ")", ")", ";", "if", "(", "isThumb", ")", "MIB", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "It", "=", "MBB", ".", "insert", "(", "It", ",", "MIB", ")", ";", "return", "It", ";", "}", "Opc", "=", "isThumb", "?", "ARM", "::", "tBL", ":", "ARM", "::", "BL", ";", "MachineInstrBuilder", "CallMIB", "=", "BuildMI", "(", "MF", ",", "DebugLoc", "(", ")", ",", "get", "(", "Opc", ")", ")", ";", "if", "(", "isThumb", ")", "CallMIB", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "CallMIB", ".", "addGlobalAddress", "(", "M", ".", "getNamedValue", "(", "MF", ".", "getName", "(", ")", ")", ")", ";", "if", "(", "C", ".", "CallConstructionID", "==", "MachineOutlinerNoLRSave", "||", "C", ".", "CallConstructionID", "==", "MachineOutlinerThunk", ")", "{", "It", "=", "MBB", ".", "insert", "(", "It", ",", "CallMIB", ")", ";", "return", "It", ";", "}", "if", "(", "C", ".", "CallConstructionID", "==", "MachineOutlinerRegSave", ")", "{", "unsigned", "Reg", "=", "findRegisterToSaveLRTo", "(", "C", ")", ";", "assert", "(", "Reg", "!=", "0", "&&", "\"No callee-saved register available?\"", ")", ";", "copyPhysReg", "(", "MBB", ",", "It", ",", "DebugLoc", "(", ")", ",", "Reg", ",", "ARM", "::", "LR", ",", "true", ")", ";", "CallPt", "=", "MBB", ".", "insert", "(", "It", ",", "CallMIB", ")", ";", "copyPhysReg", "(", "MBB", ",", "It", ",", "DebugLoc", "(", ")", ",", "ARM", "::", "LR", ",", "Reg", ",", "true", ")", ";", "It", "--", ";", "return", "CallPt", ";", "}", "saveLROnStack", "(", "MBB", ",", "It", ")", ";", "CallPt", "=", "MBB", ".", "insert", "(", "It", ",", "CallMIB", ")", ";", "restoreLRFromStack", "(", "MBB", ",", "It", ")", ";", "It", "--", ";", "return", "CallPt", ";", "}", ""], "natrual_language": ["Insert", "a", "call", "to", "an", "outlined", "function", "into", "the", "program", "."], "TS_V_token": ["ARM", "ARM", "ARM::tTAILJMPd", "ARM::tTAILJMPdND", "ARM::TAILJMPd", "ARMCC::AL", "ARM::tBL", "ARM::BL", "ARMCC::AL", "0", "\"No callee-saved register available?\"", "ARM::LR", "ARM::LR"], "File": "ARMBaseInstrInfo116", "Func": "insertOutlinedCall", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 989, "Length": 351, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCPhysReg", "*", "ARM64RegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "assert", "(", "MF", "&&", "\"Invalid MachineFunction pointer.\"", ")", ";", "if", "(", "MF", "->", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "AnyReg", ")", "return", "CSR_ARM64_AllRegs_SaveList", ";", "else", "return", "CSR_ARM64_AAPCS_SaveList", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["ARM64", "ARM64", "\"Invalid MachineFunction pointer.\"", "ARM64", "ARM64"], "File": "ARM64RegisterInfo", "Func": "getCalleeSavedRegs", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 990, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_use_mask_cmp_p", "(", "machine_mode", "mode", ",", "machine_mode", "cmp_mode", ",", "rtx", "op_true", ",", "rtx", "op_false", ")", "{", "int", "vector_size", "=", "GET_MODE_SIZE", "(", "mode", ")", ";", "if", "(", "cmp_mode", "==", "HFmode", ")", "return", "true", ";", "else", "if", "(", "vector_size", "<", "16", ")", "return", "false", ";", "else", "if", "(", "vector_size", "==", "64", ")", "return", "true", ";", "else", "if", "(", "GET_MODE_INNER", "(", "cmp_mode", ")", "==", "HFmode", ")", "return", "true", ";", "gcc_assert", "(", "!", "op_true", "==", "!", "op_false", ")", ";", "if", "(", "!", "op_true", "||", "!", "ix86_valid_mask_cmp_mode", "(", "cmp_mode", ")", ")", "return", "false", ";", "if", "(", "op_false", "==", "CONST0_RTX", "(", "mode", ")", "||", "op_true", "==", "CONST0_RTX", "(", "mode", ")", "||", "(", "INTEGRAL_MODE_P", "(", "mode", ")", "&&", "(", "op_true", "==", "CONSTM1_RTX", "(", "mode", ")", "||", "op_false", "==", "CONSTM1_RTX", "(", "mode", ")", ")", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "integer", "mask", "comparison", "should", "be", "used", "."], "TS_V_token": ["i386", "16", "64"], "File": "i386-expand", "Func": "ix86_use_mask_cmp_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 991, "Length": 136, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86FrameLowering", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "const", "X86Subtarget", "&", "STI", "=", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "STI", ".", "getInstrInfo", "(", ")", ";", "const", "X86RegisterInfo", "&", "RegInfo", "=", "*", "STI", ".", "getRegisterInfo", "(", ")", ";", "unsigned", "StackPtr", "=", "RegInfo", ".", "getStackRegister", "(", ")", ";", "bool", "reserveCallFrame", "=", "hasReservedCallFrame", "(", "MF", ")", ";", "unsigned", "Opcode", "=", "I", "->", "getOpcode", "(", ")", ";", "bool", "isDestroy", "=", "Opcode", "==", "TII", ".", "getCallFrameDestroyOpcode", "(", ")", ";", "bool", "IsLP64", "=", "STI", ".", "isTarget64BitLP64", "(", ")", ";", "DebugLoc", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "uint64_t", "Amount", "=", "!", "reserveCallFrame", "?", "I", "->", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ":", "0", ";", "uint64_t", "InternalAmt", "=", "(", "isDestroy", "||", "Amount", ")", "?", "I", "->", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ":", "0", ";", "I", "=", "MBB", ".", "erase", "(", "I", ")", ";", "if", "(", "!", "reserveCallFrame", ")", "{", "if", "(", "Amount", "==", "0", ")", "return", ";", "unsigned", "StackAlign", "=", "getStackAlignment", "(", ")", ";", "Amount", "=", "RoundUpToAlignment", "(", "Amount", ",", "StackAlign", ")", ";", "MachineInstr", "*", "New", "=", "nullptr", ";", "Amount", "-=", "InternalAmt", ";", "if", "(", "Amount", ")", "{", "if", "(", "Opcode", "==", "TII", ".", "getCallFrameSetupOpcode", "(", ")", ")", "{", "New", "=", "BuildMI", "(", "MF", ",", "DL", ",", "TII", ".", "get", "(", "getSUBriOpcode", "(", "IsLP64", ",", "Amount", ")", ")", ",", "StackPtr", ")", ".", "addReg", "(", "StackPtr", ")", ".", "addImm", "(", "Amount", ")", ";", "}", "else", "{", "assert", "(", "Opcode", "==", "TII", ".", "getCallFrameDestroyOpcode", "(", ")", ")", ";", "unsigned", "Opc", "=", "getADDriOpcode", "(", "IsLP64", ",", "Amount", ")", ";", "New", "=", "BuildMI", "(", "MF", ",", "DL", ",", "TII", ".", "get", "(", "Opc", ")", ",", "StackPtr", ")", ".", "addReg", "(", "StackPtr", ")", ".", "addImm", "(", "Amount", ")", ";", "}", "}", "if", "(", "New", ")", "{", "New", "->", "getOperand", "(", "3", ")", ".", "setIsDead", "(", ")", ";", "MBB", ".", "insert", "(", "I", ",", "New", ")", ";", "}", "return", ";", "}", "if", "(", "Opcode", "==", "TII", ".", "getCallFrameDestroyOpcode", "(", ")", "&&", "InternalAmt", ")", "{", "unsigned", "Opc", "=", "getSUBriOpcode", "(", "IsLP64", ",", "InternalAmt", ")", ";", "MachineInstr", "*", "New", "=", "BuildMI", "(", "MF", ",", "DL", ",", "TII", ".", "get", "(", "Opc", ")", ",", "StackPtr", ")", ".", "addReg", "(", "StackPtr", ")", ".", "addImm", "(", "InternalAmt", ")", ";", "New", "->", "getOperand", "(", "3", ")", ".", "setIsDead", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "B", "=", "MBB", ".", "begin", "(", ")", ";", "while", "(", "I", "!=", "B", "&&", "!", "std", "::", "prev", "(", "I", ")", "->", "isCall", "(", ")", ")", "--", "I", ";", "MBB", ".", "insert", "(", "I", ",", "New", ")", ";", "}", "}", ""], "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": ["X86", "X86", "X86", "X86", "X86", "0", "0", "1", "0", "0", "3", "3"], "File": "X86FrameLowering90", "Func": "eliminateCallFramePseudoInstr", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 992, "Length": 442, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "gen_ashift", "(", "int", "type", ",", "int", "n", ",", "rtx", "reg", ")", "{", "rtx", "n_rtx", ";", "if", "(", "n", "<", "0", ")", "{", "if", "(", "type", "==", "ASHIFT", ")", "type", "=", "LSHIFTRT", ";", "else", "type", "=", "ASHIFT", ";", "n", "=", "-", "n", ";", "}", "n_rtx", "=", "GEN_INT", "(", "n", ")", ";", "gcc_assert", "(", "satisfies_constraint_P27", "(", "n_rtx", ")", ")", ";", "switch", "(", "type", ")", "{", "case", "ASHIFTRT", ":", "emit_insn", "(", "gen_ashrsi3_k", "(", "reg", ",", "reg", ",", "n_rtx", ")", ")", ";", "break", ";", "case", "LSHIFTRT", ":", "if", "(", "n", "==", "1", ")", "emit_insn", "(", "gen_shlr", "(", "reg", ",", "reg", ")", ")", ";", "else", "emit_insn", "(", "gen_lshrsi3_k", "(", "reg", ",", "reg", ",", "n_rtx", ")", ")", ";", "break", ";", "case", "ASHIFT", ":", "emit_insn", "(", "gen_ashlsi3_k", "(", "reg", ",", "reg", ",", "n_rtx", ")", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Code", "to", "expand", "a", "shift", "."], "TS_V_token": ["sh", "0", "1"], "File": "sh", "Func": "gen_ashift", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 993, "Length": 141, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCInst", "X86InstrInfo", "::", "getNop", "(", ")", "const", "{", "MCInst", "Nop", ";", "Nop", ".", "setOpcode", "(", "X86", "::", "NOOP", ")", ";", "return", "Nop", ";", "}", ""], "natrual_language": ["Return", "the", "noop", "instruction", "to", "use", "for", "a", "noop", "."], "TS_V_token": ["X86", "X86", "X86::NOOP"], "File": "X86InstrInfo (2)3", "Func": "getNop", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 994, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_function_value_regno_p", "(", "const", "unsigned", "int", "regno", ")", "{", "switch", "(", "regno", ")", "{", "case", "AX_REG", ":", "return", "true", ";", "case", "DX_REG", ":", "return", "(", "!", "TARGET_64BIT", "||", "ix86_abi", "!=", "MS_ABI", ")", ";", "case", "DI_REG", ":", "case", "SI_REG", ":", "return", "TARGET_64BIT", "&&", "ix86_abi", "!=", "MS_ABI", ";", "case", "FIRST_BND_REG", ":", "return", "chkp_function_instrumented_p", "(", "current_function_decl", ")", ";", "case", "ST0_REG", ":", "case", "ST1_REG", ":", "if", "(", "TARGET_64BIT", "&&", "ix86_abi", "==", "MS_ABI", ")", "return", "false", ";", "return", "TARGET_FLOAT_RETURNS_IN_80387", ";", "case", "XMM0_REG", ":", "case", "XMM1_REG", ":", "return", "TARGET_SSE", ";", "case", "MM0_REG", ":", "if", "(", "TARGET_MACHO", "||", "TARGET_64BIT", ")", "return", "false", ";", "return", "TARGET_MMX", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "N", "is", "a", "possible", "register", "number", "of", "function", "value", "."], "TS_V_token": ["i386"], "File": "i3864", "Func": "ix86_function_value_regno_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 995, "Length": 105, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "replace_swapped_aligned_store", "(", "swap_web_entry", "*", "insn_entry", ",", "rtx_insn", "*", "store_insn", ")", "{", "unsigned", "uid", "=", "INSN_UID", "(", "store_insn", ")", ";", "gcc_assert", "(", "insn_entry", "[", "uid", "]", ".", "is_swap", "&&", "insn_entry", "[", "uid", "]", ".", "is_store", ")", ";", "rtx", "body", "=", "PATTERN", "(", "store_insn", ")", ";", "rtx", "dest_address", "=", "XEXP", "(", "SET_DEST", "(", "body", ")", ",", "0", ")", ";", "rtx", "swap_reg", "=", "XEXP", "(", "SET_SRC", "(", "body", ")", ",", "0", ")", ";", "gcc_assert", "(", "REG_P", "(", "dest_address", ")", "||", "rs6000_sum_of_two_registers_p", "(", "dest_address", ")", ")", ";", "struct", "df_insn_info", "*", "insn_info", "=", "DF_INSN_INFO_GET", "(", "store_insn", ")", ";", "df_ref", "use", ";", "rtx_insn", "*", "swap_insn", "=", "NULL", ";", "unsigned", "uid2", "=", "0", ";", "FOR_EACH_INSN_INFO_USE", "(", "use", ",", "insn_info", ")", "{", "struct", "df_link", "*", "def_link", "=", "DF_REF_CHAIN", "(", "use", ")", ";", "if", "(", "!", "rtx_equal_p", "(", "DF_REF_REG", "(", "use", ")", ",", "swap_reg", ")", ")", "continue", ";", "gcc_assert", "(", "def_link", "&&", "def_link", "->", "ref", "&&", "!", "def_link", "->", "next", "&&", "!", "DF_REF_IS_ARTIFICIAL", "(", "def_link", "->", "ref", ")", ")", ";", "swap_insn", "=", "DF_REF_INSN", "(", "def_link", "->", "ref", ")", ";", "uid2", "=", "INSN_UID", "(", "swap_insn", ")", ";", "gcc_assert", "(", "insn_entry", "[", "uid2", "]", ".", "is_swap", "&&", "!", "insn_entry", "[", "uid2", "]", ".", "is_load", "&&", "!", "insn_entry", "[", "uid2", "]", ".", "is_store", ")", ";", "break", ";", "}", "gcc_assert", "(", "swap_insn", ")", ";", "rtx", "set", "=", "single_set", "(", "store_insn", ")", ";", "gcc_assert", "(", "set", ")", ";", "rtx", "dest_exp", "=", "SET_DEST", "(", "set", ")", ";", "rtx", "src_exp", "=", "XEXP", "(", "SET_SRC", "(", "body", ")", ",", "0", ")", ";", "enum", "machine_mode", "mode", "=", "GET_MODE", "(", "dest_exp", ")", ";", "gcc_assert", "(", "MEM_P", "(", "dest_exp", ")", ")", ";", "gcc_assert", "(", "MEM_ALIGN", "(", "dest_exp", ")", ">=", "128", ")", ";", "rtx", "stvx", ";", "stvx", "=", "rs6000_gen_stvx", "(", "mode", ",", "dest_exp", ",", "src_exp", ")", ";", "rtx_insn", "*", "new_insn", "=", "emit_insn_before", "(", "stvx", ",", "store_insn", ")", ";", "rtx", "new_body", "=", "PATTERN", "(", "new_insn", ")", ";", "gcc_assert", "(", "(", "GET_CODE", "(", "new_body", ")", "==", "SET", ")", "&&", "(", "GET_CODE", "(", "SET_DEST", "(", "new_body", ")", ")", "==", "MEM", ")", ")", ";", "set_block_for_insn", "(", "new_insn", ",", "BLOCK_FOR_INSN", "(", "store_insn", ")", ")", ";", "df_insn_rescan", "(", "new_insn", ")", ";", "df_insn_delete", "(", "store_insn", ")", ";", "remove_insn", "(", "store_insn", ")", ";", "store_insn", "->", "set_deleted", "(", ")", ";", "uid2", "=", "INSN_UID", "(", "swap_insn", ")", ";", "mark_swaps_for_removal", "(", "insn_entry", ",", "uid2", ")", ";", "replace_swap_with_copy", "(", "insn_entry", ",", "uid2", ")", ";", "}", ""], "natrual_language": ["Given", "that", "STORE_INSN", "represents", "an", "aligned", "store-with-swap", "of", "a", "swapped", "value", ",", "replace", "the", "store", "with", "an", "aligned", "store", "(", "without", "swap", ")", "and", "replace", "the", "swap", "with", "a", "copy", "insn", "."], "TS_V_token": ["rs6000", "0", "0", "0", "0", "128"], "File": "rs6000-p8swap2", "Func": "replace_swapped_aligned_store", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 996, "Length": 384, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getReg", "(", ")", "const", "{", "assert", "(", "(", "Kind", "==", "k_Register", "||", "Kind", "==", "k_WrappedRegister", ")", "&&", "\"Invalid access!\"", ")", ";", "return", "Reg", ".", "RegNum", ";", "}", ""], "natrual_language": ["Returns", "the", "register", "associated", "with", "this", "edge", "."], "TS_V_token": ["AArch64", "\"Invalid access!\""], "File": "AArch64AsmParser13", "Func": "getReg", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 997, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "DEBUG_FUNCTION", "char", "*", "rs6000_debug_addr_mask", "(", "addr_mask_type", "mask", ",", "bool", "keep_spaces", ")", "{", "static", "char", "ret", "[", "8", "]", ";", "char", "*", "p", "=", "ret", ";", "if", "(", "(", "mask", "&", "RELOAD_REG_VALID", ")", "!=", "0", ")", "*", "p", "++", "=", "'v'", ";", "else", "if", "(", "keep_spaces", ")", "*", "p", "++", "=", "' '", ";", "if", "(", "(", "mask", "&", "RELOAD_REG_MULTIPLE", ")", "!=", "0", ")", "*", "p", "++", "=", "'m'", ";", "else", "if", "(", "keep_spaces", ")", "*", "p", "++", "=", "' '", ";", "if", "(", "(", "mask", "&", "RELOAD_REG_INDEXED", ")", "!=", "0", ")", "*", "p", "++", "=", "'i'", ";", "else", "if", "(", "keep_spaces", ")", "*", "p", "++", "=", "' '", ";", "if", "(", "(", "mask", "&", "RELOAD_REG_QUAD_OFFSET", ")", "!=", "0", ")", "*", "p", "++", "=", "'O'", ";", "else", "if", "(", "(", "mask", "&", "RELOAD_REG_OFFSET", ")", "!=", "0", ")", "*", "p", "++", "=", "'o'", ";", "else", "if", "(", "keep_spaces", ")", "*", "p", "++", "=", "' '", ";", "if", "(", "(", "mask", "&", "RELOAD_REG_PRE_INCDEC", ")", "!=", "0", ")", "*", "p", "++", "=", "'+'", ";", "else", "if", "(", "keep_spaces", ")", "*", "p", "++", "=", "' '", ";", "if", "(", "(", "mask", "&", "RELOAD_REG_PRE_MODIFY", ")", "!=", "0", ")", "*", "p", "++", "=", "'+'", ";", "else", "if", "(", "keep_spaces", ")", "*", "p", "++", "=", "' '", ";", "if", "(", "(", "mask", "&", "RELOAD_REG_AND_M16", ")", "!=", "0", ")", "*", "p", "++", "=", "'&'", ";", "else", "if", "(", "keep_spaces", ")", "*", "p", "++", "=", "' '", ";", "*", "p", "=", "'\\0'", ";", "return", "ret", ";", "}", ""], "natrual_language": ["Inner", "function", "printing", "just", "the", "address", "mask", "for", "a", "particular", "reload", "register", "class", "."], "TS_V_token": ["rs6000", "8", "0", "0", "0", "0", "0", "0", "0", "0"], "File": "rs6000", "Func": "rs6000_debug_addr_mask", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 998, "Length": 240, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_seh_fixup_eh_fallthru", "(", "void", ")", "{", "edge", "e", ";", "edge_iterator", "ei", ";", "FOR_EACH_EDGE", "(", "e", ",", "ei", ",", "EXIT_BLOCK_PTR_FOR_FN", "(", "cfun", ")", "->", "preds", ")", "{", "rtx_insn", "*", "insn", ",", "*", "next", ";", "for", "(", "insn", "=", "BB_END", "(", "e", "->", "src", ")", ";", "insn", "!=", "NULL", ";", "insn", "=", "PREV_INSN", "(", "insn", ")", ")", "if", "(", "NOTE_P", "(", "insn", ")", "&&", "NOTE_KIND", "(", "insn", ")", "==", "NOTE_INSN_EPILOGUE_BEG", ")", "break", ";", "if", "(", "insn", "==", "NULL", ")", "continue", ";", "insn", "=", "prev_active_insn", "(", "insn", ")", ";", "if", "(", "insn", "==", "NULL", "||", "!", "can_throw_internal", "(", "insn", ")", ")", "continue", ";", "for", "(", "next", "=", "NEXT_INSN", "(", "insn", ")", ";", "next", "!=", "NULL", ";", "next", "=", "NEXT_INSN", "(", "next", ")", ")", "if", "(", "NOTE_P", "(", "next", ")", "&&", "NOTE_KIND", "(", "next", ")", "==", "NOTE_INSN_VAR_LOCATION", ")", "insn", "=", "next", ";", "else", "break", ";", "emit_insn_after", "(", "gen_nops", "(", "const1_rtx", ")", ",", "insn", ")", ";", "}", "}", ""], "natrual_language": ["Fix", "up", "a", "Windows", "system", "unwinder", "issue", ".", "If", "an", "EH", "region", "falls", "through", "into", "the", "epilogue", ",", "the", "Windows", "system", "unwinder", "will", "apply", "epilogue", "logic", "and", "produce", "incorrect", "offsets", ".", "This", "can", "be", "avoided", "by", "adding", "a", "nop", "between", "the", "last", "insn", "that", "can", "throw", "and", "the", "first", "insn", "of", "the", "epilogue", "."], "TS_V_token": ["i386"], "File": "i386", "Func": "ix86_seh_fixup_eh_fallthru", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 999, "Length": 154, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "VEFrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "const", "VEMachineFunctionInfo", "*", "FuncInfo", "=", "MF", ".", "getInfo", "<", "VEMachineFunctionInfo", ">", "(", ")", ";", "assert", "(", "&", "MF", ".", "front", "(", ")", "==", "&", "MBB", "&&", "\"Shrink-wrapping not yet supported\"", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "VEInstrInfo", "&", "TII", "=", "*", "STI", ".", "getInstrInfo", "(", ")", ";", "const", "VERegisterInfo", "&", "RegInfo", "=", "*", "STI", ".", "getRegisterInfo", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "begin", "(", ")", ";", "bool", "NeedsStackRealignment", "=", "RegInfo", ".", "needsStackRealignment", "(", "MF", ")", ";", "DebugLoc", "DL", ";", "if", "(", "!", "NeedsStackRealignment", "&&", "MFI", ".", "getMaxAlign", "(", ")", ">", "getStackAlign", "(", ")", ")", "report_fatal_error", "(", "\"Function \\\"\"", "+", "Twine", "(", "MF", ".", "getName", "(", ")", ")", "+", "\"\\\" required \"", "\"stack re-alignment, but LLVM couldn't handle it \"", "\"(probably because it has a dynamic alloca).\"", ")", ";", "uint64_t", "NumBytes", "=", "MFI", ".", "getStackSize", "(", ")", ";", "if", "(", "!", "FuncInfo", "->", "isLeafProc", "(", ")", ")", "{", "NumBytes", "=", "STI", ".", "getAdjustedFrameSize", "(", "NumBytes", ")", ";", "}", "NumBytes", "=", "alignTo", "(", "NumBytes", ",", "MFI", ".", "getMaxAlign", "(", ")", ")", ";", "MFI", ".", "setStackSize", "(", "NumBytes", ")", ";", "emitPrologueInsns", "(", "MF", ",", "MBB", ",", "MBBI", ",", "NumBytes", ",", "true", ")", ";", "if", "(", "!", "FuncInfo", "->", "isLeafProc", "(", ")", ")", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "VE", "::", "ORri", ")", ",", "VE", "::", "SX9", ")", ".", "addReg", "(", "VE", "::", "SX11", ")", ".", "addImm", "(", "0", ")", ";", "MaybeAlign", "RuntimeAlign", "=", "NeedsStackRealignment", "?", "MaybeAlign", "(", "MFI", ".", "getMaxAlign", "(", ")", ")", ":", "None", ";", "assert", "(", "(", "RuntimeAlign", "==", "None", "||", "!", "FuncInfo", "->", "isLeafProc", "(", ")", ")", "&&", "\"SP has to be saved in order to align variable sized stack object!\"", ")", ";", "emitSPAdjustment", "(", "MF", ",", "MBB", ",", "MBBI", ",", "-", "(", "int64_t", ")", "NumBytes", ",", "RuntimeAlign", ")", ";", "if", "(", "hasBP", "(", "MF", ")", ")", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "VE", "::", "ORri", ")", ",", "VE", "::", "SX17", ")", ".", "addReg", "(", "VE", "::", "SX11", ")", ".", "addImm", "(", "0", ")", ";", "}", "if", "(", "NumBytes", "!=", "0", ")", "emitSPExtend", "(", "MF", ",", "MBB", ",", "MBBI", ")", ";", "}", ""], "natrual_language": ["emitProlog/emitEpilog", "-", "These", "methods", "insert", "prolog", "and", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["VE", "VE", "VE", "VE", "\"Shrink-wrapping not yet supported\"", "VE", "VE", "\"Function \\\"\"", "\"\\\" required \"", "\"stack re-alignment, but LLVM couldn't handle it \"", "\"(probably because it has a dynamic alloca).\"", "VE::ORri", "VE::SX9", "VE::SX11", "0", "\"SP has to be saved in order to align variable sized stack object!\"", "VE::ORri", "VE::SX17", "VE::SX11", "0", "0"], "File": "VEFrameLowering2", "Func": "emitPrologue", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1000, "Length": 350, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "RegisterBank", "&", "ARMRegisterBankInfo", "::", "getRegBankFromRegClass", "(", "const", "TargetRegisterClass", "&", "RC", ")", "const", "{", "using", "namespace", "ARM", ";", "switch", "(", "RC", ".", "getID", "(", ")", ")", "{", "case", "GPRRegClassID", ":", "case", "GPRwithAPSRRegClassID", ":", "case", "GPRnopcRegClassID", ":", "case", "rGPRRegClassID", ":", "case", "GPRspRegClassID", ":", "case", "tGPR_and_tcGPRRegClassID", ":", "case", "tcGPRRegClassID", ":", "case", "tGPRRegClassID", ":", "return", "getRegBank", "(", "ARM", "::", "GPRRegBankID", ")", ";", "case", "HPRRegClassID", ":", "case", "SPR_8RegClassID", ":", "case", "SPRRegClassID", ":", "case", "DPR_8RegClassID", ":", "case", "DPRRegClassID", ":", "case", "QPRRegClassID", ":", "return", "getRegBank", "(", "ARM", "::", "FPRRegBankID", ")", ";", "default", ":", "llvm_unreachable", "(", "\"Unsupported register kind\"", ")", ";", "}", "llvm_unreachable", "(", "\"Switch should handle all register classes\"", ")", ";", "}", ""], "natrual_language": ["Get", "a", "register", "bank", "that", "covers", "RC", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM::GPRRegBankID", "ARM::FPRRegBankID", "\"Unsupported register kind\"", "\"Switch should handle all register classes\""], "File": "ARMRegisterBankInfo", "Func": "getRegBankFromRegClass", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1001, "Length": 99, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_use_shadow_register_set_p", "(", "tree", "type", ")", "{", "return", "lookup_attribute", "(", "\"use_shadow_register_set\"", ",", "TYPE_ATTRIBUTES", "(", "type", ")", ")", "!=", "NULL", ";", "}", ""], "natrual_language": ["Check", "if", "the", "attribute", "to", "use", "shadow", "register", "set", "is", "set", "for", "a", "function", "."], "TS_V_token": ["mips", "\"use_shadow_register_set\""], "File": "mips4", "Func": "mips_use_shadow_register_set_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1002, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsAsmPrinter", "::", "isBlockOnlyReachableByFallthrough", "(", "const", "MachineBasicBlock", "*", "MBB", ")", "const", "{", "const", "MachineBasicBlock", "*", "Pred", "=", "*", "MBB", "->", "pred_begin", "(", ")", ";", "if", "(", "const", "BasicBlock", "*", "bb", "=", "Pred", "->", "getBasicBlock", "(", ")", ")", "if", "(", "isa", "<", "SwitchInst", ">", "(", "bb", "->", "getTerminator", "(", ")", ")", ")", "return", "false", ";", "return", "AsmPrinter", "::", "isBlockOnlyReachableByFallthrough", "(", "MBB", ")", ";", "}", ""], "natrual_language": ["isBlockOnlyReachableByFallthough", "-", "Return", "true", "if", "the", "basic", "block", "has", "exactly", "one", "predecessor", "and", "the", "control", "transfer", "mechanism", "between", "the", "predecessor", "and", "this", "block", "is", "a", "fall-through", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsAsmPrinter19", "Func": "isBlockOnlyReachableByFallthrough", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1003, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_print_options_internal", "(", "FILE", "*", "file", ",", "int", "indent", ",", "const", "char", "*", "string", ",", "HOST_WIDE_INT", "flags", ",", "const", "char", "*", "prefix", ",", "const", "struct", "rs6000_opt_mask", "*", "opts", ",", "size_t", "num_elements", ")", "{", "size_t", "i", ";", "size_t", "start_column", "=", "0", ";", "size_t", "cur_column", ";", "size_t", "max_column", "=", "120", ";", "size_t", "prefix_len", "=", "strlen", "(", "prefix", ")", ";", "size_t", "comma_len", "=", "0", ";", "const", "char", "*", "comma", "=", "\"\"", ";", "if", "(", "indent", ")", "start_column", "+=", "fprintf", "(", "file", ",", "\"%*s\"", ",", "indent", ",", "\"\"", ")", ";", "if", "(", "!", "flags", ")", "{", "fprintf", "(", "stderr", ",", "DEBUG_FMT_S", ",", "string", ",", "\"\"", ")", ";", "return", ";", "}", "start_column", "+=", "fprintf", "(", "stderr", ",", "DEBUG_FMT_WX", ",", "string", ",", "flags", ")", ";", "cur_column", "=", "start_column", ";", "for", "(", "i", "=", "0", ";", "i", "<", "num_elements", ";", "i", "++", ")", "{", "bool", "invert", "=", "opts", "[", "i", "]", ".", "invert", ";", "const", "char", "*", "name", "=", "opts", "[", "i", "]", ".", "name", ";", "const", "char", "*", "no_str", "=", "\"\"", ";", "HOST_WIDE_INT", "mask", "=", "opts", "[", "i", "]", ".", "mask", ";", "size_t", "len", "=", "comma_len", "+", "prefix_len", "+", "strlen", "(", "name", ")", ";", "if", "(", "!", "invert", ")", "{", "if", "(", "(", "flags", "&", "mask", ")", "==", "0", ")", "{", "no_str", "=", "\"no-\"", ";", "len", "+=", "sizeof", "(", "\"no-\"", ")", "-", "1", ";", "}", "flags", "&=", "~", "mask", ";", "}", "else", "{", "if", "(", "(", "flags", "&", "mask", ")", "!=", "0", ")", "{", "no_str", "=", "\"no-\"", ";", "len", "+=", "sizeof", "(", "\"no-\"", ")", "-", "1", ";", "}", "flags", "|=", "mask", ";", "}", "cur_column", "+=", "len", ";", "if", "(", "cur_column", ">", "max_column", ")", "{", "fprintf", "(", "stderr", ",", "\", \\\\\\n%*s\"", ",", "(", "int", ")", "start_column", ",", "\"\"", ")", ";", "cur_column", "=", "start_column", "+", "len", ";", "comma", "=", "\"\"", ";", "}", "fprintf", "(", "file", ",", "\"%s%s%s%s\"", ",", "comma", ",", "prefix", ",", "no_str", ",", "name", ")", ";", "comma", "=", "\", \"", ";", "comma_len", "=", "sizeof", "(", "\", \"", ")", "-", "1", ";", "}", "fputs", "(", "\"\\n\"", ",", "file", ")", ";", "}", ""], "natrual_language": ["Helper", "function", "to", "print", "the", "current", "isa", "or", "misc", "options", "on", "a", "line", "."], "TS_V_token": ["powerpcspe", "0", "120", "0", "\"\"", "\"%*s\"", "\"\"", "\"\"", "0", "\"\"", "0", "\"no-\"", "\"no-\"", "1", "0", "\"no-\"", "\"no-\"", "1", "\", \\\\\\n%*s\"", "\"\"", "\"\"", "\"%s%s%s%s\"", "\", \"", "\", \"", "1", "\"\\n\""], "File": "powerpcspe", "Func": "rs6000_print_options_internal", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1004, "Length": 331, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isFPImm", "(", ")", "const", "{", "return", "Kind", "==", "k_FPImm", ";", "}", ""], "natrual_language": ["isFPImm", "-", "Tests", "if", "this", "is", "a", "MO_FPImmediate", "operand", "."], "TS_V_token": ["ARM64"], "File": "ARM64AsmParser", "Func": "isFPImm", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1005, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_emit_dot_insn", "(", "rtx", "dst", ",", "rtx", "src", ",", "int", "dot", ",", "rtx", "ccreg", ")", "{", "if", "(", "dot", "==", "0", ")", "{", "emit_move_insn", "(", "dst", ",", "src", ")", ";", "return", ";", "}", "if", "(", "cc_reg_not_cr0_operand", "(", "ccreg", ",", "CCmode", ")", ")", "{", "emit_move_insn", "(", "dst", ",", "src", ")", ";", "emit_move_insn", "(", "ccreg", ",", "gen_rtx_COMPARE", "(", "CCmode", ",", "dst", ",", "const0_rtx", ")", ")", ";", "return", ";", "}", "rtx", "ccset", "=", "gen_rtx_SET", "(", "ccreg", ",", "gen_rtx_COMPARE", "(", "CCmode", ",", "src", ",", "const0_rtx", ")", ")", ";", "if", "(", "dot", "==", "1", ")", "{", "rtx", "clobber", "=", "gen_rtx_CLOBBER", "(", "VOIDmode", ",", "dst", ")", ";", "emit_insn", "(", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "gen_rtvec", "(", "2", ",", "ccset", ",", "clobber", ")", ")", ")", ";", "}", "else", "{", "rtx", "set", "=", "gen_rtx_SET", "(", "dst", ",", "src", ")", ";", "emit_insn", "(", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "gen_rtvec", "(", "2", ",", "ccset", ",", "set", ")", ")", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "a", "potentially", "record-form", "instruction", ",", "setting", "DST", "from", "SRC", ".", "If", "DOT", "is", "0", ",", "that", "is", "all", ";", "otherwise", ",", "set", "CCREG", "to", "the", "result", "of", "the", "signed", "comparison", "of", "DST", "with", "zero", ".", "If", "DOT", "is", "1", ",", "the", "generated", "RTL", "does", "n't", "care", "about", "the", "DST", "result", ";", "if", "DOT", "is", "2", ",", "it", "does", ".", "If", "CCREG", "is", "CR0", "do", "a", "single", "dot", "insn", "(", "as", "a", "PARALLEL", ")", ";", "otherwise", ",", "do", "a", "SET", "and", "a", "separate", "COMPARE", "."], "TS_V_token": ["powerpcspe", "0", "1", "2", "2"], "File": "powerpcspe", "Func": "rs6000_emit_dot_insn", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1006, "Length": 151, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "useAA", "(", ")", "const", "override", "{", "return", "true", ";", "}", ""], "natrual_language": ["Enable", "use", "of", "alias", "analysis", "during", "code", "generation", "(", "during", "MI", "scheduling", ",", "DAGCombine", ",", "etc", ".", ")", "."], "TS_V_token": ["ARM"], "File": "ARMSubtarget (2)3", "Func": "useAA", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1007, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "sh_trampoline_init", "(", "rtx", "tramp_mem", ",", "tree", "fndecl", ",", "rtx", "cxt", ")", "{", "rtx", "fnaddr", "=", "XEXP", "(", "DECL_RTL", "(", "fndecl", ")", ",", "0", ")", ";", "rtx", "tramp", "=", "force_reg", "(", "Pmode", ",", "XEXP", "(", "tramp_mem", ",", "0", ")", ")", ";", "if", "(", "TARGET_FDPIC", ")", "{", "rtx", "a", "=", "force_reg", "(", "Pmode", ",", "plus_constant", "(", "Pmode", ",", "XEXP", "(", "tramp_mem", ",", "0", ")", ",", "8", ")", ")", ";", "sh_emit_storesi", "(", "tramp_mem", ",", "0", ",", "a", ")", ";", "sh_emit_storesi", "(", "tramp_mem", ",", "4", ",", "sh_get_fdpic_reg_initial_val", "(", ")", ")", ";", "sh_emit_storehi", "(", "tramp_mem", ",", "8", ",", "0xd302", ",", "0xd203", ")", ";", "sh_emit_storehi", "(", "tramp_mem", ",", "12", ",", "0x6122", ",", "0x5c21", ")", ";", "sh_emit_storehi", "(", "tramp_mem", ",", "16", ",", "0x412b", ",", "0x0009", ")", ";", "sh_emit_storesi", "(", "tramp_mem", ",", "20", ",", "cxt", ")", ";", "sh_emit_storesi", "(", "tramp_mem", ",", "24", ",", "fnaddr", ")", ";", "}", "else", "{", "sh_emit_storehi", "(", "tramp_mem", ",", "0", ",", "0xd202", ",", "0xd301", ")", ";", "sh_emit_storehi", "(", "tramp_mem", ",", "4", ",", "0x422b", ",", "0x0009", ")", ";", "sh_emit_storesi", "(", "tramp_mem", ",", "8", ",", "cxt", ")", ";", "sh_emit_storesi", "(", "tramp_mem", ",", "12", ",", "fnaddr", ")", ";", "}", "if", "(", "TARGET_HARD_SH4", ")", "{", "if", "(", "!", "TARGET_INLINE_IC_INVALIDATE", "||", "(", "!", "(", "TARGET_SH4A", "||", "TARGET_SH4_300", ")", "&&", "TARGET_USERMODE", ")", ")", "emit_library_call", "(", "function_symbol", "(", "NULL", ",", "\"__ic_invalidate\"", ",", "FUNCTION_ORDINARY", ")", ".", "sym", ",", "LCT_NORMAL", ",", "VOIDmode", ",", "1", ",", "tramp", ",", "SImode", ")", ";", "else", "emit_insn", "(", "gen_ic_invalidate_line", "(", "tramp", ")", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "RTL", "insns", "to", "initialize", "the", "variable", "parts", "of", "a", "trampoline", ".", "FNADDR", "is", "an", "RTX", "for", "the", "address", "of", "the", "function", "'s", "pure", "code", ".", "CXT", "is", "an", "RTX", "for", "the", "static", "chain", "value", "for", "the", "function", "."], "TS_V_token": ["sh", "0", "0", "0", "8", "0", "4", "8", "0xd302", "0xd203", "12", "0x6122", "0x5c21", "16", "0x412b", "0x0009", "20", "24", "0", "0xd202", "0xd301", "4", "0x422b", "0x0009", "8", "12", "\"__ic_invalidate\"", "1"], "File": "sh6", "Func": "sh_trampoline_init", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1008, "Length": 240, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "MipsRegisterInfo", "::", "getCallPreservedMask", "(", "CallingConv", "::", "ID", ")", "const", "{", "if", "(", "Subtarget", ".", "isSingleFloat", "(", ")", ")", "return", "CSR_SingleFloatOnly_RegMask", ";", "if", "(", "Subtarget", ".", "isABI_N64", "(", ")", ")", "return", "CSR_N64_RegMask", ";", "if", "(", "Subtarget", ".", "isABI_N32", "(", ")", ")", "return", "CSR_N32_RegMask", ";", "if", "(", "Subtarget", ".", "isFP64bit", "(", ")", ")", "return", "CSR_O32_FP64_RegMask", ";", "return", "CSR_O32_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsRegisterInfo19", "Func": "getCallPreservedMask", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1009, "Length": 61, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "getIntrinsicID", "(", "const", "SDNode", "*", "N", ")", "{", "unsigned", "Opcode", "=", "N", "->", "getOpcode", "(", ")", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "Intrinsic", "::", "not_intrinsic", ";", "case", "ISD", "::", "INTRINSIC_WO_CHAIN", ":", "{", "unsigned", "IID", "=", "cast", "<", "ConstantSDNode", ">", "(", "N", "->", "getOperand", "(", "0", ")", ")", "->", "getZExtValue", "(", ")", ";", "if", "(", "IID", "<", "Intrinsic", "::", "num_intrinsics", ")", "return", "IID", ";", "return", "Intrinsic", "::", "not_intrinsic", ";", "}", "}", "}", ""], "natrual_language": ["Return", "the", "target", "intrinsic", "ID", "of", "a", "function", ",", "or", "0", "."], "TS_V_token": ["ARM64", "Intrinsic::not_intrinsic", "ISD::INTRINSIC_WO_CHAIN", "0", "Intrinsic::num_intrinsics", "Intrinsic::not_intrinsic"], "File": "ARM64ISelLowering", "Func": "getIntrinsicID", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1010, "Length": 76, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SparcPassConfig", "::", "addPreEmitPass", "(", ")", "{", "addPass", "(", "createSparcFPMoverPass", "(", "getSparcTargetMachine", "(", ")", ")", ")", ";", "addPass", "(", "createSparcDelaySlotFillerPass", "(", "getSparcTargetMachine", "(", ")", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["Sparc", "Sparc", "Sparc", "Sparc", "Sparc", "Sparc"], "File": "SparcTargetMachine29", "Func": "addPreEmitPass", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1011, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "FPGASubtarget", "*", "FPGATargetMachine", "::", "getSubtargetImpl", "(", "const", "Function", "&", "F", ")", "const", "{", "Attribute", "FPGAAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-cpu\"", ")", ";", "Attribute", "FSAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-features\"", ")", ";", "StringRef", "FPGA", "=", "!", "FPGAAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "FPGAAttr", ".", "getValueAsString", "(", ")", ":", "(", "StringRef", ")", "TargetCPU", ";", "StringRef", "FS", "=", "!", "FSAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "FSAttr", ".", "getValueAsString", "(", ")", ":", "(", "StringRef", ")", "TargetFS", ";", "SmallString", "<", "512", ">", "Key", ";", "Key", ".", "reserve", "(", "FPGA", ".", "size", "(", ")", "+", "FS", ".", "size", "(", ")", ")", ";", "Key", "+=", "FPGA", ";", "Key", "+=", "FS", ";", "auto", "&", "I", "=", "SubtargetMap", "[", "Key", "]", ";", "if", "(", "!", "I", ")", "{", "resetTargetOptions", "(", "F", ")", ";", "I", "=", "llvm", "::", "make_unique", "<", "FPGASubtarget", ">", "(", "TargetTriple", ",", "FPGA", ",", "FS", ",", "*", "this", ")", ";", "}", "return", "I", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["FPGA", "FPGA", "FPGA", "FPGA", "\"target-cpu\"", "\"target-features\"", "FPGA", "FPGA", "FPGA", "512", "FPGA", "FPGA", "FPGA", "FPGA"], "File": "FPGATargetMachine", "Func": "getSubtargetImpl", "Target": "FPGA", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1012, "Length": 161, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "csky_add_gc_roots", "(", "void", ")", "{", "gcc_obstack_init", "(", "&", "minipool_obstack", ")", ";", "minipool_startobj", "=", "(", "char", "*", ")", "obstack_alloc", "(", "&", "minipool_obstack", ",", "0", ")", ";", "}", ""], "natrual_language": ["Allow", "GC", "scanning", "of", "the", "minipool", "obstack", "."], "TS_V_token": ["csky", "0"], "File": "csky", "Func": "csky_add_gc_roots", "Target": "csky", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1013, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "aarch64_return_addr", "(", "int", "count", ",", "rtx", "frame", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "count", "!=", "0", ")", "return", "const0_rtx", ";", "return", "aarch64_return_addr_rtx", "(", ")", ";", "}", ""], "natrual_language": ["Implement", "RETURN_ADDR_RTX", ".", "We", "do", "not", "support", "moving", "back", "to", "a", "previous", "frame", "."], "TS_V_token": ["aarch64", "0"], "File": "aarch641", "Func": "aarch64_return_addr", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1014, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "rx_adjust_insn_length", "(", "rtx_insn", "*", "insn", ",", "int", "current_length", ")", "{", "rtx", "extend", ",", "mem", ",", "offset", ";", "bool", "zero", ";", "int", "factor", ";", "if", "(", "!", "INSN_P", "(", "insn", ")", ")", "return", "current_length", ";", "switch", "(", "INSN_CODE", "(", "insn", ")", ")", "{", "default", ":", "return", "current_length", ";", "case", "CODE_FOR_plussi3_zero_extendhi", ":", "case", "CODE_FOR_andsi3_zero_extendhi", ":", "case", "CODE_FOR_iorsi3_zero_extendhi", ":", "case", "CODE_FOR_xorsi3_zero_extendhi", ":", "case", "CODE_FOR_divsi3_zero_extendhi", ":", "case", "CODE_FOR_udivsi3_zero_extendhi", ":", "case", "CODE_FOR_minussi3_zero_extendhi", ":", "case", "CODE_FOR_smaxsi3_zero_extendhi", ":", "case", "CODE_FOR_sminsi3_zero_extendhi", ":", "case", "CODE_FOR_multsi3_zero_extendhi", ":", "case", "CODE_FOR_comparesi3_zero_extendhi", ":", "zero", "=", "true", ";", "factor", "=", "2", ";", "break", ";", "case", "CODE_FOR_plussi3_sign_extendhi", ":", "case", "CODE_FOR_andsi3_sign_extendhi", ":", "case", "CODE_FOR_iorsi3_sign_extendhi", ":", "case", "CODE_FOR_xorsi3_sign_extendhi", ":", "case", "CODE_FOR_divsi3_sign_extendhi", ":", "case", "CODE_FOR_udivsi3_sign_extendhi", ":", "case", "CODE_FOR_minussi3_sign_extendhi", ":", "case", "CODE_FOR_smaxsi3_sign_extendhi", ":", "case", "CODE_FOR_sminsi3_sign_extendhi", ":", "case", "CODE_FOR_multsi3_sign_extendhi", ":", "case", "CODE_FOR_comparesi3_sign_extendhi", ":", "zero", "=", "false", ";", "factor", "=", "2", ";", "break", ";", "case", "CODE_FOR_plussi3_zero_extendqi", ":", "case", "CODE_FOR_andsi3_zero_extendqi", ":", "case", "CODE_FOR_iorsi3_zero_extendqi", ":", "case", "CODE_FOR_xorsi3_zero_extendqi", ":", "case", "CODE_FOR_divsi3_zero_extendqi", ":", "case", "CODE_FOR_udivsi3_zero_extendqi", ":", "case", "CODE_FOR_minussi3_zero_extendqi", ":", "case", "CODE_FOR_smaxsi3_zero_extendqi", ":", "case", "CODE_FOR_sminsi3_zero_extendqi", ":", "case", "CODE_FOR_multsi3_zero_extendqi", ":", "case", "CODE_FOR_comparesi3_zero_extendqi", ":", "zero", "=", "true", ";", "factor", "=", "1", ";", "break", ";", "case", "CODE_FOR_plussi3_sign_extendqi", ":", "case", "CODE_FOR_andsi3_sign_extendqi", ":", "case", "CODE_FOR_iorsi3_sign_extendqi", ":", "case", "CODE_FOR_xorsi3_sign_extendqi", ":", "case", "CODE_FOR_divsi3_sign_extendqi", ":", "case", "CODE_FOR_udivsi3_sign_extendqi", ":", "case", "CODE_FOR_minussi3_sign_extendqi", ":", "case", "CODE_FOR_smaxsi3_sign_extendqi", ":", "case", "CODE_FOR_sminsi3_sign_extendqi", ":", "case", "CODE_FOR_multsi3_sign_extendqi", ":", "case", "CODE_FOR_comparesi3_sign_extendqi", ":", "zero", "=", "false", ";", "factor", "=", "1", ";", "break", ";", "}", "extend", "=", "single_set", "(", "insn", ")", ";", "gcc_assert", "(", "extend", "!=", "NULL_RTX", ")", ";", "extend", "=", "SET_SRC", "(", "extend", ")", ";", "if", "(", "GET_CODE", "(", "XEXP", "(", "extend", ",", "0", ")", ")", "==", "ZERO_EXTEND", "||", "GET_CODE", "(", "XEXP", "(", "extend", ",", "0", ")", ")", "==", "SIGN_EXTEND", ")", "extend", "=", "XEXP", "(", "extend", ",", "0", ")", ";", "else", "extend", "=", "XEXP", "(", "extend", ",", "1", ")", ";", "gcc_assert", "(", "(", "zero", "&&", "(", "GET_CODE", "(", "extend", ")", "==", "ZERO_EXTEND", ")", ")", "||", "(", "!", "zero", "&&", "(", "GET_CODE", "(", "extend", ")", "==", "SIGN_EXTEND", ")", ")", ")", ";", "mem", "=", "XEXP", "(", "extend", ",", "0", ")", ";", "gcc_checking_assert", "(", "MEM_P", "(", "mem", ")", ")", ";", "if", "(", "REG_P", "(", "XEXP", "(", "mem", ",", "0", ")", ")", ")", "return", "(", "zero", "&&", "factor", "==", "1", ")", "?", "2", ":", "3", ";", "gcc_checking_assert", "(", "GET_CODE", "(", "XEXP", "(", "mem", ",", "0", ")", ")", "==", "PLUS", ")", ";", "gcc_checking_assert", "(", "REG_P", "(", "XEXP", "(", "XEXP", "(", "mem", ",", "0", ")", ",", "0", ")", ")", ")", ";", "offset", "=", "XEXP", "(", "XEXP", "(", "mem", ",", "0", ")", ",", "1", ")", ";", "gcc_checking_assert", "(", "GET_CODE", "(", "offset", ")", "==", "CONST_INT", ")", ";", "if", "(", "IN_RANGE", "(", "INTVAL", "(", "offset", ")", ",", "0", ",", "255", "*", "factor", ")", ")", "return", "(", "zero", "&&", "factor", "==", "1", ")", "?", "3", ":", "4", ";", "return", "(", "zero", "&&", "factor", "==", "1", ")", "?", "4", ":", "5", ";", "}", ""], "natrual_language": ["Compute", "the", "real", "length", "of", "the", "extending", "load-and-op", "instructions", "."], "TS_V_token": ["rx", "2", "2", "1", "1", "0", "0", "0", "1", "0", "0", "1", "2", "3", "0", "0", "0", "0", "1", "0", "255", "1", "3", "4", "1", "4", "5"], "File": "rx", "Func": "rx_adjust_insn_length", "Target": "rx", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1015, "Length": 459, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_cfun_might_clobber_call_saved_reg_p", "(", "unsigned", "int", "regno", ")", "{", "if", "(", "crtl", "->", "saves_all_registers", ")", "return", "true", ";", "if", "(", "df_regs_ever_live_p", "(", "regno", ")", ")", "return", "true", ";", "if", "(", "crtl", "->", "profile", "&&", "MIPS_SAVE_REG_FOR_PROFILING_P", "(", "regno", ")", ")", "return", "true", ";", "if", "(", "cfun", "->", "machine", "->", "global_pointer", "==", "regno", ")", "return", "true", ";", "if", "(", "regno", "==", "HARD_FRAME_POINTER_REGNUM", "&&", "frame_pointer_needed", ")", "return", "true", ";", "if", "(", "regno", "==", "RETURN_ADDR_REGNUM", "&&", "mips16_cfun_returns_in_fpr_p", "(", ")", ")", "return", "true", ";", "if", "(", "cfun", "->", "machine", "->", "interrupt_handler_p", "&&", "!", "crtl", "->", "is_leaf", "&&", "mips_interrupt_extra_call_saved_reg_p", "(", "regno", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "function", "body", "might", "clobber", "register", "REGNO", ".", "We", "know", "that", "REGNO", "is", "call-saved", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_cfun_might_clobber_call_saved_reg_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1016, "Length": 104, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "rs6000_use_sched_lookahead", "(", "void", ")", "{", "switch", "(", "rs6000_tune", ")", "{", "case", "PROCESSOR_PPC8540", ":", "case", "PROCESSOR_PPC8548", ":", "return", "4", ";", "case", "PROCESSOR_CELL", ":", "return", "(", "reload_completed", "?", "8", ":", "0", ")", ";", "default", ":", "return", "0", ";", "}", "}", ""], "natrual_language": ["Return", "how", "many", "instructions", "to", "look", "ahead", "for", "better", "insn", "scheduling", "."], "TS_V_token": ["rs6000", "4", "8", "0", "0"], "File": "rs6000", "Func": "rs6000_use_sched_lookahead", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1017, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "find_addr_reg", "(", "rtx", "addr", ")", "{", "while", "(", "GET_CODE", "(", "addr", ")", "==", "PLUS", ")", "{", "if", "(", "GET_CODE", "(", "XEXP", "(", "addr", ",", "0", ")", ")", "==", "REG", "&&", "REGNO", "(", "XEXP", "(", "addr", ",", "0", ")", ")", "!=", "0", ")", "addr", "=", "XEXP", "(", "addr", ",", "0", ")", ";", "else", "if", "(", "GET_CODE", "(", "XEXP", "(", "addr", ",", "1", ")", ")", "==", "REG", "&&", "REGNO", "(", "XEXP", "(", "addr", ",", "1", ")", ")", "!=", "0", ")", "addr", "=", "XEXP", "(", "addr", ",", "1", ")", ";", "else", "if", "(", "CONSTANT_P", "(", "XEXP", "(", "addr", ",", "0", ")", ")", ")", "addr", "=", "XEXP", "(", "addr", ",", "1", ")", ";", "else", "if", "(", "CONSTANT_P", "(", "XEXP", "(", "addr", ",", "1", ")", ")", ")", "addr", "=", "XEXP", "(", "addr", ",", "0", ")", ";", "else", "gcc_unreachable", "(", ")", ";", "}", "gcc_assert", "(", "GET_CODE", "(", "addr", ")", "==", "REG", "&&", "REGNO", "(", "addr", ")", "!=", "0", ")", ";", "return", "addr", ";", "}", ""], "natrual_language": ["Return", "a", "REG", "that", "occurs", "in", "ADDR", "with", "coefficient", "1", ".", "ADDR", "can", "be", "effectively", "incremented", "by", "incrementing", "REG", ".", "r0", "is", "special", "and", "we", "must", "not", "select", "it", "as", "an", "address", "register", "by", "this", "routine", "since", "our", "caller", "will", "try", "to", "increment", "the", "returned", "register", "via", "an", "``", "la", "''", "instruction", "."], "TS_V_token": ["powerpcspe", "0", "0", "0", "0", "1", "1", "0", "1", "0", "1", "1", "0", "0"], "File": "powerpcspe", "Func": "find_addr_reg", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1018, "Length": 159, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "aarch64_use_return_insn_p", "(", "void", ")", "{", "if", "(", "!", "reload_completed", ")", "return", "false", ";", "if", "(", "crtl", "->", "profile", ")", "return", "false", ";", "aarch64_layout_frame", "(", ")", ";", "return", "known_eq", "(", "cfun", "->", "machine", "->", "frame", ".", "frame_size", ",", "0", ")", ";", "}", ""], "natrual_language": ["Return", "TRUE", "if", "we", "can", "use", "a", "simple_return", "insn", ".", "This", "function", "checks", "whether", "the", "callee", "saved", "stack", "is", "empty", ",", "which", "means", "no", "restore", "actions", "are", "need", ".", "The", "pro_and_epilogue", "will", "use", "this", "to", "check", "whether", "shrink-wrapping", "opt", "is", "feasible", "."], "TS_V_token": ["aarch64", "0"], "File": "aarch645", "Func": "aarch64_use_return_insn_p", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1019, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "~", "SystemZCallingConventionRegisters", "(", ")", "{", "}", ""], "natrual_language": ["Destroys", "the", "object", "."], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZRegisterInfo (2)1", "Func": "~SystemZCallingConventionRegisters", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1020, "Length": 7, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCPhysReg", "*", "SystemZRegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "if", "(", "MF", "->", "getSubtarget", "(", ")", ".", "getTargetLowering", "(", ")", "->", "supportSwiftError", "(", ")", "&&", "MF", "->", "getFunction", "(", ")", ".", "getAttributes", "(", ")", ".", "hasAttrSomewhere", "(", "Attribute", "::", "SwiftError", ")", ")", "return", "CSR_SystemZ_SwiftError_SaveList", ";", "return", "CSR_SystemZ_SaveList", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ", "SystemZ"], "File": "SystemZRegisterInfo39", "Func": "getCalleeSavedRegs", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1021, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getMinPrefetchStride", "(", ")", "{", "return", "2048", ";", "}", ""], "natrual_language": ["Some", "HW", "prefetchers", "can", "handle", "accesses", "up", "to", "a", "certain", "constant", "stride", "."], "TS_V_token": ["SystemZ", "2048"], "File": "SystemZTargetTransformInfo10", "Func": "getMinPrefetchStride", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1022, "Length": 9, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "RegisterBank", "&", "AArch64RegisterBankInfo", "::", "getRegBankFromRegClass", "(", "const", "TargetRegisterClass", "&", "RC", ",", "LLT", ")", "const", "{", "switch", "(", "RC", ".", "getID", "(", ")", ")", "{", "case", "AArch64", "::", "FPR8RegClassID", ":", "case", "AArch64", "::", "FPR16RegClassID", ":", "case", "AArch64", "::", "FPR16_loRegClassID", ":", "case", "AArch64", "::", "FPR32_with_hsub_in_FPR16_loRegClassID", ":", "case", "AArch64", "::", "FPR32RegClassID", ":", "case", "AArch64", "::", "FPR64RegClassID", ":", "case", "AArch64", "::", "FPR64_loRegClassID", ":", "case", "AArch64", "::", "FPR128RegClassID", ":", "case", "AArch64", "::", "FPR128_loRegClassID", ":", "case", "AArch64", "::", "DDRegClassID", ":", "case", "AArch64", "::", "DDDRegClassID", ":", "case", "AArch64", "::", "DDDDRegClassID", ":", "case", "AArch64", "::", "QQRegClassID", ":", "case", "AArch64", "::", "QQQRegClassID", ":", "case", "AArch64", "::", "QQQQRegClassID", ":", "return", "getRegBank", "(", "AArch64", "::", "FPRRegBankID", ")", ";", "case", "AArch64", "::", "GPR32commonRegClassID", ":", "case", "AArch64", "::", "GPR32RegClassID", ":", "case", "AArch64", "::", "GPR32spRegClassID", ":", "case", "AArch64", "::", "GPR32sponlyRegClassID", ":", "case", "AArch64", "::", "GPR32argRegClassID", ":", "case", "AArch64", "::", "GPR32allRegClassID", ":", "case", "AArch64", "::", "GPR64commonRegClassID", ":", "case", "AArch64", "::", "GPR64RegClassID", ":", "case", "AArch64", "::", "GPR64spRegClassID", ":", "case", "AArch64", "::", "GPR64sponlyRegClassID", ":", "case", "AArch64", "::", "GPR64argRegClassID", ":", "case", "AArch64", "::", "GPR64allRegClassID", ":", "case", "AArch64", "::", "GPR64noipRegClassID", ":", "case", "AArch64", "::", "GPR64common_and_GPR64noipRegClassID", ":", "case", "AArch64", "::", "GPR64noip_and_tcGPR64RegClassID", ":", "case", "AArch64", "::", "tcGPR64RegClassID", ":", "case", "AArch64", "::", "WSeqPairsClassRegClassID", ":", "case", "AArch64", "::", "XSeqPairsClassRegClassID", ":", "return", "getRegBank", "(", "AArch64", "::", "GPRRegBankID", ")", ";", "case", "AArch64", "::", "CCRRegClassID", ":", "return", "getRegBank", "(", "AArch64", "::", "CCRegBankID", ")", ";", "default", ":", "llvm_unreachable", "(", "\"Register class not supported\"", ")", ";", "}", "}", ""], "natrual_language": ["Get", "a", "register", "bank", "that", "covers", "RC", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::FPR8RegClassID", "AArch64::FPR16RegClassID", "AArch64::FPR16_loRegClassID", "AArch64::FPR32_with_hsub_in_FPR16_loRegClassID", "AArch64::FPR32RegClassID", "AArch64::FPR64RegClassID", "AArch64::FPR64_loRegClassID", "AArch64::FPR128RegClassID", "AArch64::FPR128_loRegClassID", "AArch64::DDRegClassID", "AArch64::DDDRegClassID", "AArch64::DDDDRegClassID", "AArch64::QQRegClassID", "AArch64::QQQRegClassID", "AArch64::QQQQRegClassID", "AArch64::FPRRegBankID", "AArch64::GPR32commonRegClassID", "AArch64::GPR32RegClassID", "AArch64::GPR32spRegClassID", "AArch64::GPR32sponlyRegClassID", "AArch64::GPR32argRegClassID", "AArch64::GPR32allRegClassID", "AArch64::GPR64commonRegClassID", "AArch64::GPR64RegClassID", "AArch64::GPR64spRegClassID", "AArch64::GPR64sponlyRegClassID", "AArch64::GPR64argRegClassID", "AArch64::GPR64allRegClassID", "AArch64::GPR64noipRegClassID", "AArch64::GPR64common_and_GPR64noipRegClassID", "AArch64::GPR64noip_and_tcGPR64RegClassID", "AArch64::tcGPR64RegClassID", "AArch64::WSeqPairsClassRegClassID", "AArch64::XSeqPairsClassRegClassID", "AArch64::GPRRegBankID", "AArch64::CCRRegClassID", "AArch64::CCRegBankID", "\"Register class not supported\""], "File": "AArch64RegisterBankInfo24", "Func": "getRegBankFromRegClass", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1023, "Length": 228, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "vspltis_constant", "(", "rtx", "op", ",", "unsigned", "step", ",", "unsigned", "copies", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "op", ")", ";", "machine_mode", "inner", "=", "GET_MODE_INNER", "(", "mode", ")", ";", "unsigned", "i", ";", "unsigned", "nunits", ";", "unsigned", "bitsize", ";", "unsigned", "mask", ";", "HOST_WIDE_INT", "val", ";", "HOST_WIDE_INT", "splat_val", ";", "HOST_WIDE_INT", "msb_val", ";", "if", "(", "mode", "==", "V2DImode", "||", "mode", "==", "V2DFmode", "||", "mode", "==", "V1TImode", ")", "return", "false", ";", "nunits", "=", "GET_MODE_NUNITS", "(", "mode", ")", ";", "bitsize", "=", "GET_MODE_BITSIZE", "(", "inner", ")", ";", "mask", "=", "GET_MODE_MASK", "(", "inner", ")", ";", "val", "=", "const_vector_elt_as_int", "(", "op", ",", "BYTES_BIG_ENDIAN", "?", "nunits", "-", "1", ":", "0", ")", ";", "splat_val", "=", "val", ";", "msb_val", "=", "val", ">=", "0", "?", "0", ":", "-", "1", ";", "if", "(", "val", "==", "0", "&&", "step", ">", "1", ")", "{", "for", "(", "i", "=", "1", ";", "i", "<", "nunits", ";", "++", "i", ")", "{", "unsigned", "elt", "=", "BYTES_BIG_ENDIAN", "?", "nunits", "-", "1", "-", "i", ":", "i", ";", "HOST_WIDE_INT", "elt_val", "=", "const_vector_elt_as_int", "(", "op", ",", "elt", ")", ";", "if", "(", "(", "i", "&", "(", "step", "-", "1", ")", ")", "==", "step", "-", "1", ")", "{", "if", "(", "!", "EASY_VECTOR_MSB", "(", "elt_val", ",", "inner", ")", ")", "break", ";", "}", "else", "if", "(", "elt_val", ")", "break", ";", "}", "if", "(", "i", "==", "nunits", ")", "return", "true", ";", "}", "for", "(", "i", "=", "2", ";", "i", "<=", "copies", ";", "i", "*=", "2", ")", "{", "HOST_WIDE_INT", "small_val", ";", "bitsize", "/=", "2", ";", "small_val", "=", "splat_val", ">>", "bitsize", ";", "mask", ">>=", "bitsize", ";", "if", "(", "splat_val", "!=", "(", "(", "HOST_WIDE_INT", ")", "(", "(", "unsigned", "HOST_WIDE_INT", ")", "small_val", "<<", "bitsize", ")", "|", "(", "small_val", "&", "mask", ")", ")", ")", "return", "false", ";", "splat_val", "=", "small_val", ";", "inner", "=", "smallest_int_mode_for_size", "(", "bitsize", ")", ";", "}", "if", "(", "EASY_VECTOR_15", "(", "splat_val", ")", ")", ";", "else", "if", "(", "EASY_VECTOR_15_ADD_SELF", "(", "splat_val", ")", "&&", "(", "splat_val", ">=", "0", "||", "(", "step", "==", "1", "&&", "copies", "==", "1", ")", ")", ")", ";", "else", "if", "(", "EASY_VECTOR_MSB", "(", "splat_val", ",", "inner", ")", "&&", "step", "==", "1", ")", ";", "else", "return", "false", ";", "for", "(", "i", "=", "1", ";", "i", "<", "nunits", ";", "++", "i", ")", "{", "HOST_WIDE_INT", "desired_val", ";", "unsigned", "elt", "=", "BYTES_BIG_ENDIAN", "?", "nunits", "-", "1", "-", "i", ":", "i", ";", "if", "(", "(", "i", "&", "(", "step", "-", "1", ")", ")", "==", "0", ")", "desired_val", "=", "val", ";", "else", "desired_val", "=", "msb_val", ";", "if", "(", "desired_val", "!=", "const_vector_elt_as_int", "(", "op", ",", "elt", ")", ")", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "OP", "can", "be", "synthesized", "with", "a", "particular", "vspltisb", ",", "vspltish", "or", "vspltisw", "instruction", ".", "OP", "is", "a", "CONST_VECTOR", ".", "Which", "instruction", "is", "used", "depends", "on", "STEP", "and", "COPIES", ",", "one", "of", "which", "will", "be", "1", ".", "If", "COPIES", ">", "1", ",", "all", "items", "are", "set", "to", "the", "same", "value", "and", "contain", "COPIES", "replicas", "of", "the", "vsplt", "'s", "operand", ";", "if", "STEP", ">", "1", ",", "one", "in", "STEP", "elements", "is", "set", "to", "the", "vsplt", "'s", "operand", "and", "the", "others", "are", "set", "to", "the", "value", "of", "the", "operand", "'s", "msb", "."], "TS_V_token": ["rs6000", "1", "0", "0", "0", "1", "0", "1", "1", "1", "1", "1", "2", "2", "2", "0", "1", "1", "1", "1", "1", "1", "0"], "File": "rs6000", "Func": "vspltis_constant", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1024, "Length": 411, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "InstructionCost", "AArch64TTIImpl", "::", "getMinMaxReductionCost", "(", "VectorType", "*", "Ty", ",", "VectorType", "*", "CondTy", ",", "bool", "IsUnsigned", ",", "TTI", "::", "TargetCostKind", "CostKind", ")", "{", "std", "::", "pair", "<", "InstructionCost", ",", "MVT", ">", "LT", "=", "TLI", "->", "getTypeLegalizationCost", "(", "DL", ",", "Ty", ")", ";", "if", "(", "LT", ".", "second", ".", "getScalarType", "(", ")", "==", "MVT", "::", "f16", "&&", "!", "ST", "->", "hasFullFP16", "(", ")", ")", "return", "BaseT", "::", "getMinMaxReductionCost", "(", "Ty", ",", "CondTy", ",", "IsUnsigned", ",", "CostKind", ")", ";", "assert", "(", "(", "isa", "<", "ScalableVectorType", ">", "(", "Ty", ")", "==", "isa", "<", "ScalableVectorType", ">", "(", "CondTy", ")", ")", "&&", "\"Both vector needs to be equally scalable\"", ")", ";", "InstructionCost", "LegalizationCost", "=", "0", ";", "if", "(", "LT", ".", "first", ">", "1", ")", "{", "Type", "*", "LegalVTy", "=", "EVT", "(", "LT", ".", "second", ")", ".", "getTypeForEVT", "(", "Ty", "->", "getContext", "(", ")", ")", ";", "unsigned", "MinMaxOpcode", "=", "Ty", "->", "isFPOrFPVectorTy", "(", ")", "?", "Intrinsic", "::", "maxnum", ":", "(", "IsUnsigned", "?", "Intrinsic", "::", "umin", ":", "Intrinsic", "::", "smin", ")", ";", "IntrinsicCostAttributes", "Attrs", "(", "MinMaxOpcode", ",", "LegalVTy", ",", "{", "LegalVTy", ",", "LegalVTy", "}", ")", ";", "LegalizationCost", "=", "getIntrinsicInstrCost", "(", "Attrs", ",", "CostKind", ")", "*", "(", "LT", ".", "first", "-", "1", ")", ";", "}", "return", "LegalizationCost", "+", "2", ";", "}", ""], "natrual_language": ["Try", "to", "calculate", "op", "costs", "for", "min/max", "reduction", "operations", "."], "TS_V_token": ["AArch64", "AArch64", "MVT::f16", "\"Both vector needs to be equally scalable\"", "0", "1", "Intrinsic::maxnum", "Intrinsic::umin", "Intrinsic::smin", "1", "2"], "File": "AArch64TargetTransformInfo", "Func": "getMinMaxReductionCost", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1025, "Length": 196, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "addRange", "(", "uint64_t", "Start", ",", "uint64_t", "End", ",", "Instruction", "*", "Inst", ")", "{", "auto", "I", "=", "std", "::", "lower_bound", "(", "Ranges", ".", "begin", "(", ")", ",", "Ranges", ".", "end", "(", ")", ",", "Start", ",", "[", "]", "(", "const", "Range", "&", "LHS", ",", "uint64_t", "RHS", ")", "{", "return", "LHS", ".", "End", "<=", "RHS", ";", "}", ")", ";", "if", "(", "I", "!=", "Ranges", ".", "end", "(", ")", "&&", "End", ">", "I", "->", "Start", ")", "{", "return", "false", ";", "}", "Ranges", ".", "insert", "(", "I", ",", "{", "Start", ",", "End", ",", "Inst", "}", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["addRange", "-", "Add", "an", "address", "range", "to", "the", "list", "of", "ranges", "for", "this", "unit", "."], "TS_V_token": ["AArch64"], "File": "AArch64StackTagging", "Func": "addRange", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1026, "Length": 97, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMTargetLowering", "::", "shouldExpandAtomicCmpXchgInIR", "(", "AtomicCmpXchgInst", "*", "AI", ")", "const", "{", "bool", "hasAtomicCmpXchg", "=", "!", "Subtarget", "->", "isThumb", "(", ")", "||", "Subtarget", "->", "hasV8MBaselineOps", "(", ")", ";", "return", "getTargetMachine", "(", ")", ".", "getOptLevel", "(", ")", "!=", "0", "&&", "hasAtomicCmpXchg", ";", "}", ""], "natrual_language": ["Returns", "how", "the", "given", "atomic", "cmpxchg", "should", "be", "expanded", "by", "the", "IR-level", "AtomicExpand", "pass", "."], "TS_V_token": ["ARM", "ARM", "0"], "File": "ARMISelLowering106", "Func": "shouldExpandAtomicCmpXchgInIR", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1027, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "AArch64Subtarget", "::", "AArch64Subtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ",", "bool", "LittleEndian", ")", ":", "AArch64GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "ReserveXRegister", "(", "AArch64", "::", "GPR64commonRegClass", ".", "getNumRegs", "(", ")", ")", ",", "CustomCallSavedXRegs", "(", "AArch64", "::", "GPR64commonRegClass", ".", "getNumRegs", "(", ")", ")", ",", "IsLittle", "(", "LittleEndian", ")", ",", "TargetTriple", "(", "TT", ")", ",", "FrameLowering", "(", ")", ",", "InstrInfo", "(", "initializeSubtargetDependencies", "(", "FS", ",", "CPU", ")", ")", ",", "TSInfo", "(", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{", "if", "(", "AArch64", "::", "isX18ReservedByDefault", "(", "TT", ")", ")", "ReserveXRegister", ".", "set", "(", "18", ")", ";", "CallLoweringInfo", ".", "reset", "(", "new", "AArch64CallLowering", "(", "*", "getTargetLowering", "(", ")", ")", ")", ";", "Legalizer", ".", "reset", "(", "new", "AArch64LegalizerInfo", "(", "*", "this", ")", ")", ";", "auto", "*", "RBI", "=", "new", "AArch64RegisterBankInfo", "(", "*", "getRegisterInfo", "(", ")", ")", ";", "InstSelector", ".", "reset", "(", "createAArch64InstructionSelector", "(", "*", "static_cast", "<", "const", "AArch64TargetMachine", "*", ">", "(", "&", "TM", ")", ",", "*", "this", ",", "*", "RBI", ")", ")", ";", "RegBankInfo", ".", "reset", "(", "RBI", ")", ";", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "AArch64::GPR64commonRegClass", "AArch64::GPR64commonRegClass", "AArch64::isX18ReservedByDefault", "18", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64Subtarget15", "Func": "AArch64Subtarget", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1028, "Length": 188, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ix86_target_macros", "(", "void", ")", "{", "if", "(", "TARGET_64BIT", ")", "{", "cpp_assert", "(", "parse_in", ",", "\"cpu=x86_64\"", ")", ";", "cpp_assert", "(", "parse_in", ",", "\"machine=x86_64\"", ")", ";", "cpp_define", "(", "parse_in", ",", "\"__amd64\"", ")", ";", "cpp_define", "(", "parse_in", ",", "\"__amd64__\"", ")", ";", "cpp_define", "(", "parse_in", ",", "\"__x86_64\"", ")", ";", "cpp_define", "(", "parse_in", ",", "\"__x86_64__\"", ")", ";", "if", "(", "TARGET_X32", ")", "{", "cpp_define", "(", "parse_in", ",", "\"_ILP32\"", ")", ";", "cpp_define", "(", "parse_in", ",", "\"__ILP32__\"", ")", ";", "}", "}", "else", "{", "cpp_assert", "(", "parse_in", ",", "\"cpu=i386\"", ")", ";", "cpp_assert", "(", "parse_in", ",", "\"machine=i386\"", ")", ";", "builtin_define_std", "(", "\"i386\"", ")", ";", "}", "if", "(", "!", "TARGET_80387", ")", "cpp_define", "(", "parse_in", ",", "\"_SOFT_FLOAT\"", ")", ";", "if", "(", "TARGET_LONG_DOUBLE_64", ")", "cpp_define", "(", "parse_in", ",", "\"__LONG_DOUBLE_64__\"", ")", ";", "if", "(", "TARGET_LONG_DOUBLE_128", ")", "cpp_define", "(", "parse_in", ",", "\"__LONG_DOUBLE_128__\"", ")", ";", "if", "(", "TARGET_128BIT_LONG_DOUBLE", ")", "cpp_define", "(", "parse_in", ",", "\"__SIZEOF_FLOAT80__=16\"", ")", ";", "else", "cpp_define", "(", "parse_in", ",", "\"__SIZEOF_FLOAT80__=12\"", ")", ";", "cpp_define", "(", "parse_in", ",", "\"__SIZEOF_FLOAT128__=16\"", ")", ";", "cpp_define_formatted", "(", "parse_in", ",", "\"__ATOMIC_HLE_ACQUIRE=%d\"", ",", "IX86_HLE_ACQUIRE", ")", ";", "cpp_define_formatted", "(", "parse_in", ",", "\"__ATOMIC_HLE_RELEASE=%d\"", ",", "IX86_HLE_RELEASE", ")", ";", "ix86_target_macros_internal", "(", "ix86_isa_flags", ",", "ix86_arch", ",", "ix86_tune", ",", "ix86_fpmath", ",", "cpp_define", ")", ";", "}", ""], "natrual_language": ["Function", "to", "tell", "the", "preprocessor", "about", "the", "defines", "for", "the", "current", "target", "."], "TS_V_token": ["i386", "\"cpu=x86_64\"", "\"machine=x86_64\"", "\"__amd64\"", "\"__amd64__\"", "\"__x86_64\"", "\"__x86_64__\"", "\"_ILP32\"", "\"__ILP32__\"", "\"cpu=i386\"", "\"machine=i386\"", "\"i386\"", "\"_SOFT_FLOAT\"", "\"__LONG_DOUBLE_64__\"", "\"__LONG_DOUBLE_128__\"", "\"__SIZEOF_FLOAT80__=16\"", "\"__SIZEOF_FLOAT80__=12\"", "\"__SIZEOF_FLOAT128__=16\"", "\"__ATOMIC_HLE_ACQUIRE=%d\"", "\"__ATOMIC_HLE_RELEASE=%d\""], "File": "i386-c2", "Func": "ix86_target_macros", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1029, "Length": 188, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx_insn", "*", "mep_insert_repeat_label_last", "(", "rtx_insn", "*", "last_insn", ",", "rtx_code_label", "*", "label", ",", "bool", "including", ",", "bool", "shared", ")", "{", "rtx_insn", "*", "next", ",", "*", "prev", ";", "int", "count", "=", "0", ",", "code", ",", "icode", ";", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"considering end of repeat loop at insn %d\\n\"", ",", "INSN_UID", "(", "last_insn", ")", ")", ";", "prev", "=", "last_insn", ";", "if", "(", "!", "including", ")", "prev", "=", "PREV_INSN", "(", "prev", ")", ";", "next", "=", "last_insn", ";", "if", "(", "!", "shared", ")", "while", "(", "prev", "!=", "0", ")", "{", "code", "=", "GET_CODE", "(", "prev", ")", ";", "if", "(", "code", "==", "CALL_INSN", "||", "code", "==", "CODE_LABEL", "||", "code", "==", "BARRIER", ")", "break", ";", "if", "(", "INSN_P", "(", "prev", ")", ")", "{", "if", "(", "GET_CODE", "(", "PATTERN", "(", "prev", ")", ")", "==", "SEQUENCE", ")", "prev", "=", "as_a", "<", "rtx_insn", "*", ">", "(", "XVECEXP", "(", "PATTERN", "(", "prev", ")", ",", "0", ",", "1", ")", ")", ";", "icode", "=", "recog_memoized", "(", "prev", ")", ";", "if", "(", "icode", "<", "0", "||", "icode", "==", "CODE_FOR_repeat", "||", "icode", "==", "CODE_FOR_erepeat", "||", "get_attr_may_trap", "(", "prev", ")", "==", "MAY_TRAP_YES", ")", "break", ";", "if", "(", "GET_MODE", "(", "prev", ")", "!=", "BImode", ")", "{", "count", "++", ";", "next", "=", "prev", ";", "if", "(", "dump_file", ")", "print_rtl_single", "(", "dump_file", ",", "next", ")", ";", "if", "(", "count", "==", "2", ")", "break", ";", "}", "}", "prev", "=", "PREV_INSN", "(", "prev", ")", ";", "}", "prev", "=", "prev_real_insn", "(", "next", ")", ";", "if", "(", "prev", ")", "switch", "(", "recog_memoized", "(", "prev", ")", ")", "{", "case", "CODE_FOR_repeat", ":", "case", "CODE_FOR_erepeat", ":", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"Adding nop inside loop\\n\"", ")", ";", "emit_insn_before", "(", "gen_nop", "(", ")", ",", "next", ")", ";", "break", ";", "default", ":", "break", ";", "}", "emit_label_before", "(", "label", ",", "next", ")", ";", "if", "(", "dump_file", "&&", "count", "<", "2", ")", "fprintf", "(", "dump_file", ",", "\"Adding %d nop%s\\n\\n\"", ",", "2", "-", "count", ",", "count", "==", "1", "?", "\"\"", ":", "\"s\"", ")", ";", "for", "(", ";", "count", "<", "2", ";", "count", "++", ")", "if", "(", "including", ")", "last_insn", "=", "emit_insn_after", "(", "gen_nop", "(", ")", ",", "last_insn", ")", ";", "else", "emit_insn_before", "(", "gen_nop", "(", ")", ",", "last_insn", ")", ";", "return", "last_insn", ";", "}", ""], "natrual_language": ["Figure", "out", "where", "to", "put", "LABEL", ",", "which", "is", "the", "label", "for", "a", "repeat", "loop", ".", "If", "INCLUDING", ",", "LAST_INSN", "is", "the", "last", "instruction", "in", "the", "loop", ",", "otherwise", "the", "loop", "ends", "just", "before", "LAST_INSN", ".", "If", "SHARED", ",", "insns", "other", "than", "the", "``", "repeat", "''", "might", "use", "LABEL", "to", "jump", "to", "the", "loop", "'s", "continuation", "point", ".", "Return", "the", "last", "instruction", "in", "the", "adjusted", "loop", "."], "TS_V_token": ["mep", "0", "\"considering end of repeat loop at insn %d\\n\"", "0", "0", "1", "0", "2", "\"Adding nop inside loop\\n\"", "2", "\"Adding %d nop%s\\n\\n\"", "2", "1", "\"\"", "\"s\"", "2"], "File": "mep", "Func": "mep_insert_repeat_label_last", "Target": "mep", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1030, "Length": 349, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "CSKYTargetLowering", "::", "LowerOperation", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"unimplemented op\"", ")", ";", "case", "ISD", "::", "GlobalAddress", ":", "return", "LowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "ExternalSymbol", ":", "return", "LowerExternalSymbol", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "GlobalTLSAddress", ":", "return", "LowerGlobalTLSAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "JumpTable", ":", "return", "LowerJumpTable", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BlockAddress", ":", "return", "LowerBlockAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "VASTART", ":", "return", "LowerVASTART", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "FRAMEADDR", ":", "return", "LowerFRAMEADDR", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "RETURNADDR", ":", "return", "LowerRETURNADDR", "(", "Op", ",", "DAG", ")", ";", "}", "}", ""], "natrual_language": ["LowerOperation", "-", "Provide", "custom", "lowering", "hooks", "for", "some", "operations", "."], "TS_V_token": ["CSKY", "CSKY", "\"unimplemented op\"", "ISD::GlobalAddress", "ISD::ExternalSymbol", "ISD::GlobalTLSAddress", "ISD::JumpTable", "ISD::BlockAddress", "ISD::VASTART", "ISD::FRAMEADDR", "ISD::RETURNADDR"], "File": "CSKYISelLowering", "Func": "LowerOperation", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1031, "Length": 136, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64TargetLowering", "::", "ReplaceNodeResults", "(", "SDNode", "*", "N", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "Results", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Don't know how to custom expand this\"", ")", ";", "case", "ISD", "::", "BITCAST", ":", "ReplaceBITCASTResults", "(", "N", ",", "Results", ",", "DAG", ")", ";", "return", ";", "case", "ISD", "::", "VECREDUCE_ADD", ":", "case", "ISD", "::", "VECREDUCE_SMAX", ":", "case", "ISD", "::", "VECREDUCE_SMIN", ":", "case", "ISD", "::", "VECREDUCE_UMAX", ":", "case", "ISD", "::", "VECREDUCE_UMIN", ":", "Results", ".", "push_back", "(", "LowerVECREDUCE", "(", "SDValue", "(", "N", ",", "0", ")", ",", "DAG", ")", ")", ";", "return", ";", "case", "AArch64ISD", "::", "SADDV", ":", "ReplaceReductionResults", "(", "N", ",", "Results", ",", "DAG", ",", "ISD", "::", "ADD", ",", "AArch64ISD", "::", "SADDV", ")", ";", "return", ";", "case", "AArch64ISD", "::", "UADDV", ":", "ReplaceReductionResults", "(", "N", ",", "Results", ",", "DAG", ",", "ISD", "::", "ADD", ",", "AArch64ISD", "::", "UADDV", ")", ";", "return", ";", "case", "AArch64ISD", "::", "SMINV", ":", "ReplaceReductionResults", "(", "N", ",", "Results", ",", "DAG", ",", "ISD", "::", "SMIN", ",", "AArch64ISD", "::", "SMINV", ")", ";", "return", ";", "case", "AArch64ISD", "::", "UMINV", ":", "ReplaceReductionResults", "(", "N", ",", "Results", ",", "DAG", ",", "ISD", "::", "UMIN", ",", "AArch64ISD", "::", "UMINV", ")", ";", "return", ";", "case", "AArch64ISD", "::", "SMAXV", ":", "ReplaceReductionResults", "(", "N", ",", "Results", ",", "DAG", ",", "ISD", "::", "SMAX", ",", "AArch64ISD", "::", "SMAXV", ")", ";", "return", ";", "case", "AArch64ISD", "::", "UMAXV", ":", "ReplaceReductionResults", "(", "N", ",", "Results", ",", "DAG", ",", "ISD", "::", "UMAX", ",", "AArch64ISD", "::", "UMAXV", ")", ";", "return", ";", "case", "ISD", "::", "FP_TO_UINT", ":", "case", "ISD", "::", "FP_TO_SINT", ":", "assert", "(", "N", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i128", "&&", "\"unexpected illegal conversion\"", ")", ";", "return", ";", "case", "ISD", "::", "ATOMIC_CMP_SWAP", ":", "ReplaceCMP_SWAP_128Results", "(", "N", ",", "Results", ",", "DAG", ")", ";", "return", ";", "}", "}", ""], "natrual_language": ["ReplaceNodeResults", "-", "Replace", "the", "results", "of", "node", "with", "an", "illegal", "result", "type", "with", "new", "values", "built", "out", "of", "custom", "code", "."], "TS_V_token": ["AArch64", "AArch64", "\"Don't know how to custom expand this\"", "ISD::BITCAST", "ISD::VECREDUCE_ADD", "ISD::VECREDUCE_SMAX", "ISD::VECREDUCE_SMIN", "ISD::VECREDUCE_UMAX", "ISD::VECREDUCE_UMIN", "0", "AArch64ISD::SADDV", "ISD::ADD", "AArch64ISD::SADDV", "AArch64ISD::UADDV", "ISD::ADD", "AArch64ISD::UADDV", "AArch64ISD::SMINV", "ISD::SMIN", "AArch64ISD::SMINV", "AArch64ISD::UMINV", "ISD::UMIN", "AArch64ISD::UMINV", "AArch64ISD::SMAXV", "ISD::SMAX", "AArch64ISD::SMAXV", "AArch64ISD::UMAXV", "ISD::UMAX", "AArch64ISD::UMAXV", "ISD::FP_TO_UINT", "ISD::FP_TO_SINT", "0", "MVT::i128", "\"unexpected illegal conversion\"", "ISD::ATOMIC_CMP_SWAP"], "File": "AArch64ISelLowering105", "Func": "ReplaceNodeResults", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1032, "Length": 288, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "loongarch_14bit_shifted_offset_address_p", "(", "rtx", "x", ",", "machine_mode", "mode", ")", "{", "struct", "loongarch_address_info", "addr", ";", "return", "(", "loongarch_classify_address", "(", "&", "addr", ",", "x", ",", "mode", ",", "false", ")", "&&", "addr", ".", "type", "==", "ADDRESS_REG", "&&", "CONST_INT_P", "(", "addr", ".", "offset", ")", "&&", "LARCH_16BIT_OFFSET_P", "(", "INTVAL", "(", "addr", ".", "offset", ")", ")", "&&", "LARCH_SHIFT_2_OFFSET_P", "(", "INTVAL", "(", "addr", ".", "offset", ")", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "X", "is", "a", "legitimate", "address", "with", "a", "14-bit", "offset", "shifted", "2", ".", "MODE", "is", "the", "mode", "of", "the", "value", "being", "accessed", "."], "TS_V_token": ["loongarch"], "File": "loongarch", "Func": "loongarch_14bit_shifted_offset_address_p", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1033, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_output_filename", "(", "FILE", "*", "stream", ",", "const", "char", "*", "name", ")", "{", "if", "(", "dwarf_debuginfo_p", "(", ")", ")", "return", ";", "else", "if", "(", "mips_output_filename_first_time", ")", "{", "mips_output_filename_first_time", "=", "0", ";", "num_source_filenames", "+=", "1", ";", "current_function_file", "=", "name", ";", "fprintf", "(", "stream", ",", "\"\\t.file\\t%d \"", ",", "num_source_filenames", ")", ";", "output_quoted_string", "(", "stream", ",", "name", ")", ";", "putc", "(", "'\\n'", ",", "stream", ")", ";", "}", "else", "if", "(", "write_symbols", "==", "DBX_DEBUG", ")", "return", ";", "else", "if", "(", "name", "!=", "current_function_file", "&&", "strcmp", "(", "name", ",", "current_function_file", ")", "!=", "0", ")", "{", "num_source_filenames", "+=", "1", ";", "current_function_file", "=", "name", ";", "fprintf", "(", "stream", ",", "\"\\t.file\\t%d \"", ",", "num_source_filenames", ")", ";", "output_quoted_string", "(", "stream", ",", "name", ")", ";", "putc", "(", "'\\n'", ",", "stream", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "a", "new", "filename", "to", "a", "stream", ".", "If", "we", "are", "smuggling", "stabs", ",", "try", "to", "put", "out", "a", "MIPS", "ECOFF", "file", "and", "a", "stab", "."], "TS_V_token": ["mips", "0", "1", "\"\\t.file\\t%d \"", "0", "1", "\"\\t.file\\t%d \""], "File": "mips", "Func": "mips_output_filename", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1034, "Length": 123, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "machine_mode", "hfa_element_mode", "(", "const_tree", "type", ",", "bool", "nested", ")", "{", "machine_mode", "element_mode", "=", "VOIDmode", ";", "machine_mode", "mode", ";", "enum", "tree_code", "code", "=", "TREE_CODE", "(", "type", ")", ";", "int", "know_element_mode", "=", "0", ";", "tree", "t", ";", "if", "(", "!", "nested", "&&", "(", "!", "TYPE_SIZE", "(", "type", ")", "||", "integer_zerop", "(", "TYPE_SIZE", "(", "type", ")", ")", ")", ")", "return", "VOIDmode", ";", "switch", "(", "code", ")", "{", "case", "VOID_TYPE", ":", "case", "INTEGER_TYPE", ":", "case", "ENUMERAL_TYPE", ":", "case", "BOOLEAN_TYPE", ":", "case", "POINTER_TYPE", ":", "case", "OFFSET_TYPE", ":", "case", "REFERENCE_TYPE", ":", "case", "METHOD_TYPE", ":", "case", "LANG_TYPE", ":", "case", "FUNCTION_TYPE", ":", "return", "VOIDmode", ";", "case", "COMPLEX_TYPE", ":", "if", "(", "GET_MODE_CLASS", "(", "TYPE_MODE", "(", "type", ")", ")", "==", "MODE_COMPLEX_FLOAT", "&&", "TYPE_MODE", "(", "type", ")", "!=", "TCmode", ")", "return", "GET_MODE_INNER", "(", "TYPE_MODE", "(", "type", ")", ")", ";", "else", "return", "VOIDmode", ";", "case", "REAL_TYPE", ":", "if", "(", "nested", "&&", "TYPE_MODE", "(", "type", ")", "!=", "TFmode", ")", "return", "TYPE_MODE", "(", "type", ")", ";", "else", "return", "VOIDmode", ";", "case", "ARRAY_TYPE", ":", "return", "hfa_element_mode", "(", "TREE_TYPE", "(", "type", ")", ",", "1", ")", ";", "case", "RECORD_TYPE", ":", "case", "UNION_TYPE", ":", "case", "QUAL_UNION_TYPE", ":", "for", "(", "t", "=", "TYPE_FIELDS", "(", "type", ")", ";", "t", ";", "t", "=", "DECL_CHAIN", "(", "t", ")", ")", "{", "if", "(", "TREE_CODE", "(", "t", ")", "!=", "FIELD_DECL", "||", "DECL_FIELD_ABI_IGNORED", "(", "t", ")", ")", "continue", ";", "mode", "=", "hfa_element_mode", "(", "TREE_TYPE", "(", "t", ")", ",", "1", ")", ";", "if", "(", "know_element_mode", ")", "{", "if", "(", "mode", "!=", "element_mode", ")", "return", "VOIDmode", ";", "}", "else", "if", "(", "GET_MODE_CLASS", "(", "mode", ")", "!=", "MODE_FLOAT", ")", "return", "VOIDmode", ";", "else", "{", "know_element_mode", "=", "1", ";", "element_mode", "=", "mode", ";", "}", "}", "return", "element_mode", ";", "default", ":", "return", "VOIDmode", ";", "}", "return", "VOIDmode", ";", "}", ""], "natrual_language": ["Check", "whether", "TYPE", "is", "a", "homogeneous", "floating", "point", "aggregate", ".", "If", "it", "is", ",", "return", "the", "mode", "of", "the", "floating", "point", "type", "that", "appears", "in", "all", "leafs", ".", "If", "it", "is", "not", ",", "return", "VOIDmode", ".", "An", "aggregate", "is", "a", "homogeneous", "floating", "point", "aggregate", "is", "if", "all", "fields/elements", "in", "it", "have", "the", "same", "floating", "point", "type", "(", "e.g", ",", "SFmode", ")", ".", "128-bit", "quad-precision", "floats", "are", "excluded", "."], "TS_V_token": ["ia64", "0", "1", "1", "1"], "File": "ia64", "Func": "hfa_element_mode", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1035, "Length": 280, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "PPCTargetLowering", "::", "getRegForInlineAsmConstraint", "(", "const", "std", "::", "string", "&", "Constraint", ",", "MVT", "VT", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'b'", ":", "if", "(", "VT", "==", "MVT", "::", "i64", "&&", "PPCSubTarget", ".", "isPPC64", "(", ")", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "G8RC_NOX0RegClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "GPRC_NOR0RegClass", ")", ";", "case", "'r'", ":", "if", "(", "VT", "==", "MVT", "::", "i64", "&&", "PPCSubTarget", ".", "isPPC64", "(", ")", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "G8RCRegClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "GPRCRegClass", ")", ";", "case", "'f'", ":", "if", "(", "VT", "==", "MVT", "::", "f32", "||", "VT", "==", "MVT", "::", "i32", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "F4RCRegClass", ")", ";", "if", "(", "VT", "==", "MVT", "::", "f64", "||", "VT", "==", "MVT", "::", "i64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "F8RCRegClass", ")", ";", "break", ";", "case", "'v'", ":", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "VRRCRegClass", ")", ";", "case", "'y'", ":", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "CRRCRegClass", ")", ";", "}", "}", "else", "if", "(", "Constraint", "==", "\"wc\"", ")", "{", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "CRBITRCRegClass", ")", ";", "}", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "R", "=", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "Constraint", ",", "VT", ")", ";", "if", "(", "R", ".", "first", "&&", "VT", "==", "MVT", "::", "i64", "&&", "PPCSubTarget", ".", "isPPC64", "(", ")", "&&", "PPC", "::", "GPRCRegClass", ".", "contains", "(", "R", ".", "first", ")", ")", "{", "const", "TargetRegisterInfo", "*", "TRI", "=", "getTargetMachine", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "return", "std", "::", "make_pair", "(", "TRI", "->", "getMatchingSuperReg", "(", "R", ".", "first", ",", "PPC", "::", "sub_32", ",", "&", "PPC", "::", "G8RCRegClass", ")", ",", "&", "PPC", "::", "G8RCRegClass", ")", ";", "}", "return", "R", ";", "}", ""], "natrual_language": ["Given", "a", "physical", "register", "constraint", "(", "e.g", "."], "TS_V_token": ["PowerPC", "PPC", "1", "0", "MVT::i64", "PPC", "PPC", "0U", "PPC::G8RC_NOX0RegClass", "0U", "PPC::GPRC_NOR0RegClass", "MVT::i64", "PPC", "PPC", "0U", "PPC::G8RCRegClass", "0U", "PPC::GPRCRegClass", "MVT::f32", "MVT::i32", "0U", "PPC::F4RCRegClass", "MVT::f64", "MVT::i64", "0U", "PPC::F8RCRegClass", "0U", "PPC::VRRCRegClass", "0U", "PPC::CRRCRegClass", "\"wc\"", "0U", "PPC::CRBITRCRegClass", "MVT::i64", "PPC", "PPC", "PPC::GPRCRegClass", "PPC::sub_32", "PPC::G8RCRegClass", "PPC::G8RCRegClass"], "File": "PPCISelLowering (2)", "Func": "getRegForInlineAsmConstraint", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1036, "Length": 344, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86InstrInfo", "::", "isLoadFromStackSlot", "(", "const", "MachineInstr", "&", "MI", ",", "int", "&", "FrameIndex", ",", "unsigned", "&", "MemBytes", ")", "const", "{", "if", "(", "isFrameLoadOpcode", "(", "MI", ".", "getOpcode", "(", ")", ",", "MemBytes", ")", ")", "if", "(", "MI", ".", "getOperand", "(", "0", ")", ".", "getSubReg", "(", ")", "==", "0", "&&", "isFrameOperand", "(", "MI", ",", "1", ",", "FrameIndex", ")", ")", "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": ["X86", "X86", "0", "0", "1", "0", "0"], "File": "X86InstrInfo (2)3", "Func": "isLoadFromStackSlot", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1037, "Length": 73, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "uint64_t", "Address", ",", "StringRef", "Annot", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "raw_ostream", "&", "O", ")", "{", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "Mips", "::", "RDHWR", ":", "case", "Mips", "::", "RDHWR64", ":", "O", "<<", "\"\\t.set\\tpush\\n\"", ";", "O", "<<", "\"\\t.set\\tmips32r2\\n\"", ";", "break", ";", "case", "Mips", "::", "Save16", ":", "O", "<<", "\"\\tsave\\t\"", ";", "printSaveRestore", "(", "MI", ",", "STI", ",", "O", ")", ";", "O", "<<", "\" # 16 bit inst\\n\"", ";", "return", ";", "case", "Mips", "::", "SaveX16", ":", "O", "<<", "\"\\tsave\\t\"", ";", "printSaveRestore", "(", "MI", ",", "STI", ",", "O", ")", ";", "O", "<<", "\"\\n\"", ";", "return", ";", "case", "Mips", "::", "Restore16", ":", "O", "<<", "\"\\trestore\\t\"", ";", "printSaveRestore", "(", "MI", ",", "STI", ",", "O", ")", ";", "O", "<<", "\" # 16 bit inst\\n\"", ";", "return", ";", "case", "Mips", "::", "RestoreX16", ":", "O", "<<", "\"\\trestore\\t\"", ";", "printSaveRestore", "(", "MI", ",", "STI", ",", "O", ")", ";", "O", "<<", "\"\\n\"", ";", "return", ";", "}", "if", "(", "!", "printAliasInstr", "(", "MI", ",", "Address", ",", "STI", ",", "O", ")", "&&", "!", "printAlias", "(", "*", "MI", ",", "Address", ",", "STI", ",", "O", ")", ")", "printInstruction", "(", "MI", ",", "Address", ",", "STI", ",", "O", ")", ";", "printAnnotation", "(", "O", ",", "Annot", ")", ";", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "Mips", "::", "RDHWR", ":", "case", "Mips", "::", "RDHWR64", ":", "O", "<<", "\"\\n\\t.set\\tpop\"", ";", "}", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["Mips", "Mips", "Mips::RDHWR", "Mips::RDHWR64", "\"\\t.set\\tpush\\n\"", "\"\\t.set\\tmips32r2\\n\"", "Mips::Save16", "\"\\tsave\\t\"", "\" # 16 bit inst\\n\"", "Mips::SaveX16", "\"\\tsave\\t\"", "\"\\n\"", "Mips::Restore16", "\"\\trestore\\t\"", "\" # 16 bit inst\\n\"", "Mips::RestoreX16", "\"\\trestore\\t\"", "\"\\n\"", "Mips::RDHWR", "Mips::RDHWR64", "\"\\n\\t.set\\tpop\""], "File": "MipsInstPrinter15", "Func": "printInst", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1038, "Length": 230, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_legitimize_address_displacement", "(", "rtx", "*", "offset1", ",", "rtx", "*", "offset2", ",", "poly_int64", "orig_offset", ",", "machine_mode", "mode", ")", "{", "HOST_WIDE_INT", "size", ";", "if", "(", "GET_MODE_SIZE", "(", "mode", ")", ".", "is_constant", "(", "&", "size", ")", ")", "{", "HOST_WIDE_INT", "const_offset", ",", "second_offset", ";", "const_offset", "=", "orig_offset", ".", "coeffs", "[", "0", "]", "-", "orig_offset", ".", "coeffs", "[", "1", "]", ";", "if", "(", "mode", "==", "TImode", "||", "mode", "==", "TFmode", ")", "second_offset", "=", "(", "(", "const_offset", "+", "0x100", ")", "&", "0x1f8", ")", "-", "0x100", ";", "else", "if", "(", "(", "const_offset", "&", "(", "size", "-", "1", ")", ")", "!=", "0", ")", "second_offset", "=", "(", "(", "const_offset", "+", "0x100", ")", "&", "0x1ff", ")", "-", "0x100", ";", "else", "second_offset", "=", "const_offset", "&", "(", "size", "<", "4", "?", "0xfff", ":", "0x3ffc", ")", ";", "if", "(", "second_offset", "==", "0", "||", "known_eq", "(", "orig_offset", ",", "second_offset", ")", ")", "return", "false", ";", "*", "offset1", "=", "gen_int_mode", "(", "orig_offset", "-", "second_offset", ",", "Pmode", ")", ";", "*", "offset2", "=", "gen_int_mode", "(", "second_offset", ",", "Pmode", ")", ";", "return", "true", ";", "}", "else", "{", "unsigned", "int", "vec_flags", "=", "aarch64_classify_vector_mode", "(", "mode", ")", ";", "machine_mode", "step_mode", "=", "(", "vec_flags", "&", "VEC_STRUCT", ")", "!=", "0", "?", "SVE_BYTE_MODE", ":", "mode", ";", "HOST_WIDE_INT", "factor", "=", "GET_MODE_SIZE", "(", "step_mode", ")", ".", "coeffs", "[", "1", "]", ";", "HOST_WIDE_INT", "vnum", "=", "orig_offset", ".", "coeffs", "[", "1", "]", "/", "factor", ";", "if", "(", "vec_flags", "&", "VEC_SVE_DATA", ")", "vnum", "=", "(", "(", "vnum", "+", "128", ")", "&", "255", ")", "-", "128", ";", "else", "vnum", "=", "(", "(", "vnum", "+", "256", ")", "&", "511", ")", "-", "256", ";", "if", "(", "vnum", "==", "0", ")", "return", "false", ";", "poly_int64", "second_offset", "=", "GET_MODE_SIZE", "(", "step_mode", ")", "*", "vnum", ";", "if", "(", "known_eq", "(", "second_offset", ",", "orig_offset", ")", ")", "return", "false", ";", "*", "offset1", "=", "gen_int_mode", "(", "orig_offset", "-", "second_offset", ",", "Pmode", ")", ";", "*", "offset2", "=", "gen_int_mode", "(", "second_offset", ",", "Pmode", ")", ";", "return", "true", ";", "}", "}", ""], "natrual_language": ["Split", "an", "out-of-range", "address", "displacement", "into", "a", "base", "and", "offset", ".", "Use", "4KB", "range", "for", "1-", "and", "2-byte", "accesses", "and", "a", "16KB", "range", "otherwise", "to", "increase", "opportunities", "for", "sharing", "the", "base", "address", "of", "different", "sizes", ".", "For", "unaligned", "accesses", "and", "TI/TF", "mode", "use", "the", "signed", "9-bit", "range", "."], "TS_V_token": ["aarch64", "0", "1", "0x100", "0x1f8", "0x100", "1", "0", "0x100", "0x1ff", "0x100", "4", "0xfff", "0x3ffc", "0", "0", "1", "1", "128", "255", "128", "256", "511", "256", "0"], "File": "aarch64", "Func": "aarch64_legitimize_address_displacement", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1039, "Length": 311, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "pure_scalable_type_info", "::", "analysis_result", "pure_scalable_type_info", "::", "analyze_array", "(", "const_tree", "type", ")", "{", "pure_scalable_type_info", "element_info", ";", "analysis_result", "result", "=", "element_info", ".", "analyze", "(", "TREE_TYPE", "(", "type", ")", ")", ";", "if", "(", "result", "!=", "IS_PST", ")", "return", "result", ";", "tree", "nelts_minus_one", "=", "array_type_nelts", "(", "type", ")", ";", "if", "(", "!", "tree_fits_uhwi_p", "(", "nelts_minus_one", ")", ")", "return", "DOESNT_MATTER", ";", "unsigned", "HOST_WIDE_INT", "count", "=", "tree_to_uhwi", "(", "nelts_minus_one", ")", ";", "if", "(", "count", ">", "MAX_PIECES", ")", "return", "DOESNT_MATTER", ";", "count", "+=", "1", ";", "if", "(", "count", "*", "element_info", ".", "pieces", ".", "length", "(", ")", ">", "MAX_PIECES", ")", "return", "DOESNT_MATTER", ";", "poly_uint64", "element_bytes", ";", "if", "(", "!", "poly_int_tree_p", "(", "TYPE_SIZE_UNIT", "(", "TREE_TYPE", "(", "type", ")", ")", ",", "&", "element_bytes", ")", ")", "gcc_unreachable", "(", ")", ";", "gcc_assert", "(", "!", "element_info", ".", "pieces", ".", "is_empty", "(", ")", ")", ";", "for", "(", "unsigned", "int", "i", "=", "0", ";", "i", "<", "count", ";", "++", "i", ")", "for", "(", "unsigned", "int", "j", "=", "0", ";", "j", "<", "element_info", ".", "pieces", ".", "length", "(", ")", ";", "++", "j", ")", "{", "piece", "p", "=", "element_info", ".", "pieces", "[", "j", "]", ";", "p", ".", "offset", "+=", "i", "*", "element_bytes", ";", "add_piece", "(", "p", ")", ";", "}", "return", "IS_PST", ";", "}", ""], "natrual_language": ["Subroutine", "of", "analyze", "for", "handling", "ARRAY_TYPEs", "."], "TS_V_token": ["aarch64", "1", "0", "0"], "File": "aarch64", "Func": "analyze_array", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1040, "Length": 195, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "output_v8plus_shift", "(", "rtx", "*", "operands", ",", "rtx", "insn", ",", "const", "char", "*", "opcode", ")", "{", "static", "char", "asm_code", "[", "60", "]", ";", "if", "(", "which_alternative", "!=", "2", ")", "operands", "[", "3", "]", "=", "operands", "[", "0", "]", ";", "if", "(", "GET_CODE", "(", "operands", "[", "2", "]", ")", "==", "CONST_INT", ")", "operands", "[", "2", "]", "=", "GEN_INT", "(", "INTVAL", "(", "operands", "[", "2", "]", ")", "&", "0x3f", ")", ";", "if", "(", "GET_CODE", "(", "operands", "[", "1", "]", ")", "==", "CONST_INT", ")", "{", "output_asm_insn", "(", "\"mov\\t%1, %3\"", ",", "operands", ")", ";", "}", "else", "{", "output_asm_insn", "(", "\"sllx\\t%H1, 32, %3\"", ",", "operands", ")", ";", "if", "(", "sparc_check_64", "(", "operands", "[", "1", "]", ",", "insn", ")", "<=", "0", ")", "output_asm_insn", "(", "\"srl\\t%L1, 0, %L1\"", ",", "operands", ")", ";", "output_asm_insn", "(", "\"or\\t%L1, %3, %3\"", ",", "operands", ")", ";", "}", "strcpy", "(", "asm_code", ",", "opcode", ")", ";", "if", "(", "which_alternative", "!=", "2", ")", "return", "strcat", "(", "asm_code", ",", "\"\\t%0, %2, %L0\\n\\tsrlx\\t%L0, 32, %H0\"", ")", ";", "else", "return", "strcat", "(", "asm_code", ",", "\"\\t%3, %2, %3\\n\\tsrlx\\t%3, 32, %H0\\n\\tmov\\t%3, %L0\"", ")", ";", "}", ""], "natrual_language": ["Returns", "assembly", "code", "to", "perform", "a", "DImode", "shift", "using", "a", "64-bit", "global", "or", "out", "register", "on", "SPARC-V8+", "."], "TS_V_token": ["sparc", "60", "2", "3", "0", "2", "2", "2", "0x3f", "1", "\"mov\\t%1, %3\"", "\"sllx\\t%H1, 32, %3\"", "1", "0", "\"srl\\t%L1, 0, %L1\"", "\"or\\t%L1, %3, %3\"", "2", "\"\\t%0, %2, %L0\\n\\tsrlx\\t%L0, 32, %H0\"", "\"\\t%3, %2, %3\\n\\tsrlx\\t%3, 32, %H0\\n\\tmov\\t%3, %L0\""], "File": "sparc3", "Func": "output_v8plus_shift", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1041, "Length": 161, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "nds32_can_use_bset_p", "(", "int", "ival", ")", "{", "int", "one_bit_count", ";", "one_bit_count", "=", "popcount_hwi", "(", "(", "unsigned", "HOST_WIDE_INT", ")", "(", "ival", ")", ")", ";", "return", "(", "TARGET_PERF_EXT", "&&", "(", "one_bit_count", "==", "1", ")", ")", ";", "}", ""], "natrual_language": ["Function", "to", "check", "if", "'bset", "'", "instruction", "can", "be", "used", "with", "IVAL", "."], "TS_V_token": ["nds32", "1"], "File": "nds32-predicates2", "Func": "nds32_can_use_bset_p", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1042, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SparcPassConfig", "::", "addPreEmitPass", "(", ")", "{", "addPass", "(", "createSparcDelaySlotFillerPass", "(", "getSparcTargetMachine", "(", ")", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["Sparc", "Sparc", "Sparc", "Sparc"], "File": "SparcTargetMachine3", "Func": "addPreEmitPass", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1043, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getNumFixupKinds", "(", ")", "const", "{", "return", "PPC", "::", "NumTargetFixupKinds", ";", "}", ""], "natrual_language": ["Get", "the", "number", "of", "target", "specific", "fixup", "kinds", "."], "TS_V_token": ["PowerPC", "PPC::NumTargetFixupKinds"], "File": "PPCAsmBackend1", "Func": "getNumFixupKinds", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1044, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "direct_return", "(", "void", ")", "{", "if", "(", "reload_completed", ")", "{", "rs6000_stack_t", "*", "info", "=", "rs6000_stack_info", "(", ")", ";", "if", "(", "info", "->", "first_gp_reg_save", "==", "32", "&&", "info", "->", "first_fp_reg_save", "==", "64", "&&", "info", "->", "first_altivec_reg_save", "==", "LAST_ALTIVEC_REGNO", "+", "1", "&&", "!", "info", "->", "lr_save_p", "&&", "!", "info", "->", "cr_save_p", "&&", "info", "->", "vrsave_size", "==", "0", "&&", "!", "info", "->", "push_p", ")", "return", "1", ";", "}", "return", "0", ";", "}", ""], "natrual_language": ["Return", "non-zero", "if", "this", "function", "is", "known", "to", "have", "a", "null", "epilogue", "."], "TS_V_token": ["powerpcspe", "32", "64", "1", "0", "1", "0"], "File": "powerpcspe", "Func": "direct_return", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1045, "Length": 70, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "uint64_t", "SystemZInstrInfo", "::", "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": ["SystemZ", "SystemZ", "0"], "File": "SystemZInstrInfo18", "Func": "getInstSizeInBytes", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1046, "Length": 86, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_evpc_trn", "(", "struct", "expand_vec_perm_d", "*", "d", ")", "{", "HOST_WIDE_INT", "odd", ";", "poly_uint64", "nelt", "=", "d", "->", "perm", ".", "length", "(", ")", ";", "rtx", "out", ",", "in0", ",", "in1", ",", "x", ";", "machine_mode", "vmode", "=", "d", "->", "vmode", ";", "if", "(", "GET_MODE_UNIT_SIZE", "(", "vmode", ")", ">", "8", ")", "return", "false", ";", "if", "(", "!", "d", "->", "perm", "[", "0", "]", ".", "is_constant", "(", "&", "odd", ")", "||", "(", "odd", "!=", "0", "&&", "odd", "!=", "1", ")", "||", "!", "d", "->", "perm", ".", "series_p", "(", "0", ",", "2", ",", "odd", ",", "2", ")", "||", "!", "d", "->", "perm", ".", "series_p", "(", "1", ",", "2", ",", "nelt", "+", "odd", ",", "2", ")", ")", "return", "false", ";", "if", "(", "d", "->", "testing_p", ")", "return", "true", ";", "in0", "=", "d", "->", "op0", ";", "in1", "=", "d", "->", "op1", ";", "if", "(", "BYTES_BIG_ENDIAN", "&&", "d", "->", "vec_flags", "==", "VEC_ADVSIMD", ")", "{", "x", "=", "in0", ",", "in0", "=", "in1", ",", "in1", "=", "x", ";", "odd", "=", "!", "odd", ";", "}", "out", "=", "d", "->", "target", ";", "emit_set_insn", "(", "out", ",", "gen_rtx_UNSPEC", "(", "vmode", ",", "gen_rtvec", "(", "2", ",", "in0", ",", "in1", ")", ",", "odd", "?", "UNSPEC_TRN2", ":", "UNSPEC_TRN1", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Recognize", "patterns", "suitable", "for", "the", "TRN", "instructions", "."], "TS_V_token": ["aarch64", "8", "0", "0", "1", "0", "2", "2", "1", "2", "2", "2"], "File": "aarch64", "Func": "aarch64_evpc_trn", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1047, "Length": 200, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "HOST_WIDE_INT", "mips_shift_truncation_mask", "(", "machine_mode", "mode", ")", "{", "if", "(", "TARGET_LOONGSON_VECTORS", "&&", "VECTOR_MODE_P", "(", "mode", ")", ")", "return", "0", ";", "return", "GET_MODE_BITSIZE", "(", "mode", ")", "-", "1", ";", "}", ""], "natrual_language": ["Implement", "TARGET_SHIFT_TRUNCATION_MASK", ".", "We", "want", "to", "keep", "the", "default", "behavior", "of", "TARGET_SHIFT_TRUNCATION_MASK", "for", "non-vector", "modes", "even", "when", "TARGET_LOONGSON_VECTORS", "is", "true", "."], "TS_V_token": ["mips", "0", "1"], "File": "mips4", "Func": "mips_shift_truncation_mask", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1048, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "AArch64TTIImpl", "::", "getArithmeticInstrCost", "(", "unsigned", "Opcode", ",", "Type", "*", "Ty", ",", "TTI", "::", "OperandValueKind", "Opd1Info", ",", "TTI", "::", "OperandValueKind", "Opd2Info", ",", "TTI", "::", "OperandValueProperties", "Opd1PropInfo", ",", "TTI", "::", "OperandValueProperties", "Opd2PropInfo", ",", "ArrayRef", "<", "const", "Value", "*", ">", "Args", ")", "{", "std", "::", "pair", "<", "int", ",", "MVT", ">", "LT", "=", "TLI", "->", "getTypeLegalizationCost", "(", "DL", ",", "Ty", ")", ";", "int", "Cost", "=", "0", ";", "if", "(", "isWideningInstruction", "(", "Ty", ",", "Opcode", ",", "Args", ")", ")", "Cost", "+=", "ST", "->", "getWideningBaseCost", "(", ")", ";", "int", "ISD", "=", "TLI", "->", "InstructionOpcodeToISD", "(", "Opcode", ")", ";", "switch", "(", "ISD", ")", "{", "default", ":", "return", "Cost", "+", "BaseT", "::", "getArithmeticInstrCost", "(", "Opcode", ",", "Ty", ",", "Opd1Info", ",", "Opd2Info", ",", "Opd1PropInfo", ",", "Opd2PropInfo", ")", ";", "case", "ISD", "::", "SDIV", ":", "if", "(", "Opd2Info", "==", "TargetTransformInfo", "::", "OK_UniformConstantValue", "&&", "Opd2PropInfo", "==", "TargetTransformInfo", "::", "OP_PowerOf2", ")", "{", "Cost", "+=", "getArithmeticInstrCost", "(", "Instruction", "::", "Add", ",", "Ty", ",", "Opd1Info", ",", "Opd2Info", ",", "TargetTransformInfo", "::", "OP_None", ",", "TargetTransformInfo", "::", "OP_None", ")", ";", "Cost", "+=", "getArithmeticInstrCost", "(", "Instruction", "::", "Sub", ",", "Ty", ",", "Opd1Info", ",", "Opd2Info", ",", "TargetTransformInfo", "::", "OP_None", ",", "TargetTransformInfo", "::", "OP_None", ")", ";", "Cost", "+=", "getArithmeticInstrCost", "(", "Instruction", "::", "Select", ",", "Ty", ",", "Opd1Info", ",", "Opd2Info", ",", "TargetTransformInfo", "::", "OP_None", ",", "TargetTransformInfo", "::", "OP_None", ")", ";", "Cost", "+=", "getArithmeticInstrCost", "(", "Instruction", "::", "AShr", ",", "Ty", ",", "Opd1Info", ",", "Opd2Info", ",", "TargetTransformInfo", "::", "OP_None", ",", "TargetTransformInfo", "::", "OP_None", ")", ";", "return", "Cost", ";", "}", "LLVM_FALLTHROUGH", ";", "case", "ISD", "::", "UDIV", ":", "if", "(", "Opd2Info", "==", "TargetTransformInfo", "::", "OK_UniformConstantValue", ")", "{", "auto", "VT", "=", "TLI", "->", "getValueType", "(", "DL", ",", "Ty", ")", ";", "if", "(", "TLI", "->", "isOperationLegalOrCustom", "(", "ISD", "::", "MULHU", ",", "VT", ")", ")", "{", "int", "MulCost", "=", "getArithmeticInstrCost", "(", "Instruction", "::", "Mul", ",", "Ty", ",", "Opd1Info", ",", "Opd2Info", ",", "TargetTransformInfo", "::", "OP_None", ",", "TargetTransformInfo", "::", "OP_None", ")", ";", "int", "AddCost", "=", "getArithmeticInstrCost", "(", "Instruction", "::", "Add", ",", "Ty", ",", "Opd1Info", ",", "Opd2Info", ",", "TargetTransformInfo", "::", "OP_None", ",", "TargetTransformInfo", "::", "OP_None", ")", ";", "int", "ShrCost", "=", "getArithmeticInstrCost", "(", "Instruction", "::", "AShr", ",", "Ty", ",", "Opd1Info", ",", "Opd2Info", ",", "TargetTransformInfo", "::", "OP_None", ",", "TargetTransformInfo", "::", "OP_None", ")", ";", "return", "MulCost", "*", "2", "+", "AddCost", "*", "2", "+", "ShrCost", "*", "2", "+", "1", ";", "}", "}", "Cost", "+=", "BaseT", "::", "getArithmeticInstrCost", "(", "Opcode", ",", "Ty", ",", "Opd1Info", ",", "Opd2Info", ",", "Opd1PropInfo", ",", "Opd2PropInfo", ")", ";", "if", "(", "Ty", "->", "isVectorTy", "(", ")", ")", "{", "Cost", "+=", "getArithmeticInstrCost", "(", "Instruction", "::", "ExtractElement", ",", "Ty", ",", "Opd1Info", ",", "Opd2Info", ",", "Opd1PropInfo", ",", "Opd2PropInfo", ")", ";", "Cost", "+=", "getArithmeticInstrCost", "(", "Instruction", "::", "InsertElement", ",", "Ty", ",", "Opd1Info", ",", "Opd2Info", ",", "Opd1PropInfo", ",", "Opd2PropInfo", ")", ";", "Cost", "+=", "Cost", ";", "}", "return", "Cost", ";", "case", "ISD", "::", "ADD", ":", "case", "ISD", "::", "MUL", ":", "case", "ISD", "::", "XOR", ":", "case", "ISD", "::", "OR", ":", "case", "ISD", "::", "AND", ":", "return", "(", "Cost", "+", "1", ")", "*", "LT", ".", "first", ";", "}", "}", ""], "natrual_language": ["This", "is", "an", "approximation", "of", "reciprocal", "throughput", "of", "a", "math/logic", "op", "."], "TS_V_token": ["AArch64", "AArch64", "0", "ISD::SDIV", "ISD::UDIV", "ISD::MULHU", "2", "2", "2", "1", "ISD::ADD", "ISD::MUL", "ISD::XOR", "ISD::OR", "ISD::AND", "1"], "File": "AArch64TargetTransformInfo18", "Func": "getArithmeticInstrCost", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1049, "Length": 480, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "mips_fpr_return_fields", "(", "const_tree", "valtype", ",", "tree", "*", "fields", ",", "bool", "*", "has_cxx_zero_width_bf", ",", "bool", "*", "has_cxx17_empty_base", ")", "{", "tree", "field", ";", "int", "i", ";", "if", "(", "!", "TARGET_NEWABI", ")", "return", "0", ";", "if", "(", "TREE_CODE", "(", "valtype", ")", "!=", "RECORD_TYPE", ")", "return", "0", ";", "i", "=", "0", ";", "for", "(", "field", "=", "TYPE_FIELDS", "(", "valtype", ")", ";", "field", "!=", "0", ";", "field", "=", "DECL_CHAIN", "(", "field", ")", ")", "{", "if", "(", "TREE_CODE", "(", "field", ")", "!=", "FIELD_DECL", ")", "continue", ";", "if", "(", "cxx17_empty_base_field_p", "(", "field", ")", ")", "{", "*", "has_cxx17_empty_base", "=", "true", ";", "continue", ";", "}", "if", "(", "DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD", "(", "field", ")", ")", "{", "*", "has_cxx_zero_width_bf", "=", "true", ";", "continue", ";", "}", "if", "(", "!", "SCALAR_FLOAT_TYPE_P", "(", "TREE_TYPE", "(", "field", ")", ")", ")", "return", "0", ";", "if", "(", "i", "==", "2", ")", "return", "0", ";", "fields", "[", "i", "++", "]", "=", "field", ";", "}", "return", "i", ";", "}", ""], "natrual_language": ["See", "whether", "VALTYPE", "is", "a", "record", "whose", "fields", "should", "be", "returned", "in", "floating-point", "registers", ".", "If", "so", ",", "return", "the", "number", "of", "fields", "and", "list", "them", "in", "FIELDS", "(", "which", "should", "have", "two", "elements", ")", ".", "Return", "0", "otherwise", ".", "For", "n32", "&", "n64", ",", "a", "structure", "with", "one", "or", "two", "fields", "is", "returned", "in", "floating-point", "registers", "as", "long", "as", "every", "field", "has", "a", "floating-point", "type", ".", "The", "C++", "FE", "used", "to", "remove", "zero-width", "bit-fields", "in", "GCC", "11", "and", "earlier", ".", "To", "make", "a", "proper", "diagnostic", ",", "this", "function", "will", "set", "HAS_CXX_ZERO_WIDTH_BF", "to", "true", "once", "a", "C++", "zero-width", "bit-field", "shows", "up", ",", "and", "then", "ignore", "it", ".", "We", "had", "failed", "to", "ignore", "C++17", "empty", "bases", "in", "GCC", "7", ",", "8", ",", "9", ",", "10", ",", "and", "11", ".", "This", "caused", "an", "ABI", "incompatibility", "between", "C++14", "and", "C++17", ".", "This", "is", "fixed", "now", "and", "to", "make", "a", "proper", "diagnostic", ",", "this", "function", "will", "set", "HAS_CXX17_EMPTY_BASE", "to", "true", "once", "a", "C++17", "empty", "base", "shows", "up", ",", "and", "then", "ignore", "it", ".", "The", "caller", "should", "use", "the", "value", "of", "HAS_CXX17_EMPTY_BASE", "and/or", "HAS_CXX_ZERO_WIDTH_BF", "to", "emit", "a", "proper", "-Wpsabi", "inform", "."], "TS_V_token": ["mips", "0", "0", "0", "0", "0", "2", "0"], "File": "mips", "Func": "mips_fpr_return_fields", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1050, "Length": 150, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "gen_rx_rtsd_vector", "(", "unsigned", "int", "adjust", ",", "unsigned", "int", "low", ",", "unsigned", "int", "high", ")", "{", "unsigned", "int", "i", ";", "unsigned", "int", "bias", "=", "3", ";", "unsigned", "int", "count", "=", "(", "high", "-", "low", ")", "+", "bias", ";", "rtx", "vector", ";", "vector", "=", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "rtvec_alloc", "(", "count", ")", ")", ";", "XVECEXP", "(", "vector", ",", "0", ",", "0", ")", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "stack_pointer_rtx", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "adjust", ")", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "count", "-", "2", ";", "i", "++", ")", "XVECEXP", "(", "vector", ",", "0", ",", "i", "+", "1", ")", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "SImode", ",", "low", "+", "i", ")", ",", "gen_rtx_MEM", "(", "SImode", ",", "i", "==", "0", "?", "stack_pointer_rtx", ":", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "i", "*", "UNITS_PER_WORD", ")", ")", ")", ";", "XVECEXP", "(", "vector", ",", "0", ",", "count", "-", "1", ")", "=", "ret_rtx", ";", "return", "vector", ";", "}", ""], "natrual_language": ["Generate", "a", "PARALLEL", "which", "will", "satisfy", "the", "rx_rtsd_vector", "predicate", "."], "TS_V_token": ["rx", "3", "0", "0", "0", "2", "0", "1", "0", "0", "1"], "File": "rx2", "Func": "gen_rx_rtsd_vector", "Target": "rx", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1051, "Length": 158, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "setPreservesCFG", "(", ")", ";", "AU", ".", "addRequired", "<", "DominatorTreeWrapperPass", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "DominatorTreeWrapperPass", ">", "(", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["ARM64"], "File": "ARM64PromoteConstant1", "Func": "getAnalysisUsage", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1052, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "SparcInstrInfo", "::", "isLoadFromStackSlot", "(", "const", "MachineInstr", "*", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "SP", "::", "LDri", "||", "MI", "->", "getOpcode", "(", ")", "==", "SP", "::", "LDFri", "||", "MI", "->", "getOpcode", "(", ")", "==", "SP", "::", "LDDFri", ")", "{", "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": ["Sparc", "Sparc", "SP::LDri", "SP::LDFri", "SP::LDDFri", "1", "2", "2", "0", "1", "0", "0"], "File": "SparcInstrInfo16", "Func": "isLoadFromStackSlot", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1053, "Length": 118, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "operands_ok_ldrd_strd", "(", "rtx", "rt", ",", "rtx", "rt2", ",", "rtx", "rn", ",", "HOST_WIDE_INT", "offset", ",", "bool", "wback", ",", "bool", "load", ")", "{", "unsigned", "int", "t", ",", "t2", ",", "n", ";", "if", "(", "!", "reload_completed", ")", "return", "true", ";", "if", "(", "!", "offset_ok_for_ldrd_strd", "(", "offset", ")", ")", "return", "false", ";", "t", "=", "REGNO", "(", "rt", ")", ";", "t2", "=", "REGNO", "(", "rt2", ")", ";", "n", "=", "REGNO", "(", "rn", ")", ";", "if", "(", "(", "TARGET_THUMB2", ")", "&&", "(", "(", "wback", "&&", "(", "n", "==", "t", "||", "n", "==", "t2", ")", ")", "||", "(", "t", "==", "SP_REGNUM", ")", "||", "(", "t", "==", "PC_REGNUM", ")", "||", "(", "t2", "==", "SP_REGNUM", ")", "||", "(", "t2", "==", "PC_REGNUM", ")", "||", "(", "!", "load", "&&", "(", "n", "==", "PC_REGNUM", ")", ")", "||", "(", "load", "&&", "(", "t", "==", "t2", ")", ")", "||", "(", "!", "wback", "&&", "load", "&&", "fix_cm3_ldrd", "&&", "(", "n", "==", "t", ")", ")", ")", ")", "return", "false", ";", "if", "(", "(", "TARGET_ARM", ")", "&&", "(", "(", "wback", "&&", "(", "n", "==", "t", "||", "n", "==", "t2", ")", ")", "||", "(", "t2", "==", "PC_REGNUM", ")", "||", "(", "t", "%", "2", "!=", "0", ")", "||", "(", "t2", "!=", "t", "+", "1", ")", "||", "(", "n", "==", "PC_REGNUM", ")", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Checks", "whether", "the", "operands", "are", "valid", "for", "use", "in", "an", "LDRD/STRD", "instruction", ".", "Assumes", "that", "RT", ",", "RT2", ",", "and", "RN", "are", "REG", ".", "This", "is", "guaranteed", "by", "the", "patterns", ".", "Assumes", "that", "the", "address", "in", "the", "base", "register", "RN", "is", "word", "aligned", ".", "Pattern", "guarantees", "that", "both", "memory", "accesses", "use", "the", "same", "base", "register", ",", "the", "offsets", "are", "constants", "within", "the", "range", ",", "and", "the", "gap", "between", "the", "offsets", "is", "4", ".", "If", "preload", "complete", "then", "check", "that", "registers", "are", "legal", ".", "WBACK", "indicates", "whether", "address", "is", "updated", ".", "LOAD", "indicates", "whether", "memory", "access", "is", "load", "or", "store", "."], "TS_V_token": ["arm", "2", "0", "1"], "File": "arm", "Func": "operands_ok_ldrd_strd", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1054, "Length": 212, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64FrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "getLastNonDebugInstr", "(", ")", ";", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "AArch64Subtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ";", "const", "TargetInstrInfo", "*", "TII", "=", "Subtarget", ".", "getInstrInfo", "(", ")", ";", "DebugLoc", "DL", ";", "bool", "IsTailCallReturn", "=", "false", ";", "if", "(", "MBB", ".", "end", "(", ")", "!=", "MBBI", ")", "{", "DL", "=", "MBBI", "->", "getDebugLoc", "(", ")", ";", "unsigned", "RetOpcode", "=", "MBBI", "->", "getOpcode", "(", ")", ";", "IsTailCallReturn", "=", "RetOpcode", "==", "AArch64", "::", "TCRETURNdi", "||", "RetOpcode", "==", "AArch64", "::", "TCRETURNri", ";", "}", "int", "NumBytes", "=", "MFI", "->", "getStackSize", "(", ")", ";", "const", "AArch64FunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "AArch64FunctionInfo", ">", "(", ")", ";", "if", "(", "MF", ".", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "GHC", ")", "return", ";", "uint64_t", "ArgumentPopSize", "=", "0", ";", "if", "(", "IsTailCallReturn", ")", "{", "MachineOperand", "&", "StackAdjust", "=", "MBBI", "->", "getOperand", "(", "1", ")", ";", "ArgumentPopSize", "=", "StackAdjust", ".", "getImm", "(", ")", ";", "}", "else", "{", "ArgumentPopSize", "=", "AFI", "->", "getArgumentStackToRestore", "(", ")", ";", "}", "MachineBasicBlock", "::", "iterator", "LastPopI", "=", "MBB", ".", "getFirstTerminator", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "Begin", "=", "MBB", ".", "begin", "(", ")", ";", "while", "(", "LastPopI", "!=", "Begin", ")", "{", "--", "LastPopI", ";", "if", "(", "!", "LastPopI", "->", "getFlag", "(", "MachineInstr", "::", "FrameDestroy", ")", ")", "{", "++", "LastPopI", ";", "break", ";", "}", "}", "NumBytes", "-=", "AFI", "->", "getCalleeSavedStackSize", "(", ")", ";", "assert", "(", "NumBytes", ">=", "0", "&&", "\"Negative stack allocation size!?\"", ")", ";", "if", "(", "!", "hasFP", "(", "MF", ")", ")", "{", "bool", "RedZone", "=", "canUseRedZone", "(", "MF", ")", ";", "if", "(", "RedZone", "&&", "ArgumentPopSize", "==", "0", ")", "return", ";", "bool", "NoCalleeSaveRestore", "=", "AFI", "->", "getCalleeSavedStackSize", "(", ")", "==", "0", ";", "int", "StackRestoreBytes", "=", "RedZone", "?", "0", ":", "NumBytes", ";", "if", "(", "NoCalleeSaveRestore", ")", "StackRestoreBytes", "+=", "ArgumentPopSize", ";", "emitFrameOffset", "(", "MBB", ",", "LastPopI", ",", "DL", ",", "AArch64", "::", "SP", ",", "AArch64", "::", "SP", ",", "StackRestoreBytes", ",", "TII", ",", "MachineInstr", "::", "FrameDestroy", ")", ";", "if", "(", "NoCalleeSaveRestore", "||", "ArgumentPopSize", "==", "0", ")", "return", ";", "NumBytes", "=", "0", ";", "}", "if", "(", "NumBytes", "||", "MFI", "->", "hasVarSizedObjects", "(", ")", ")", "emitFrameOffset", "(", "MBB", ",", "LastPopI", ",", "DL", ",", "AArch64", "::", "SP", ",", "AArch64", "::", "FP", ",", "-", "AFI", "->", "getCalleeSavedStackSize", "(", ")", "+", "16", ",", "TII", ",", "MachineInstr", "::", "FrameDestroy", ")", ";", "if", "(", "ArgumentPopSize", ")", "emitFrameOffset", "(", "MBB", ",", "MBB", ".", "getFirstTerminator", "(", ")", ",", "DL", ",", "AArch64", "::", "SP", ",", "AArch64", "::", "SP", ",", "ArgumentPopSize", ",", "TII", ",", "MachineInstr", "::", "FrameDestroy", ")", ";", "}", ""], "natrual_language": ["Insert", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "AArch64::TCRETURNdi", "AArch64::TCRETURNri", "AArch64", "AArch64", "0", "1", "0", "\"Negative stack allocation size!?\"", "0", "0", "0", "AArch64::SP", "AArch64::SP", "0", "0", "AArch64::SP", "AArch64::FP", "16", "AArch64::SP", "AArch64::SP"], "File": "AArch64FrameLowering9", "Func": "emitEpilogue", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1055, "Length": 434, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "*", "getAdjustedAnalysisPointer", "(", "const", "void", "*", "ID", ")", "override", "{", "if", "(", "ID", "==", "&", "TargetTransformInfo", "::", "ID", ")", "return", "(", "TargetTransformInfo", "*", ")", "this", ";", "return", "this", ";", "}", ""], "natrual_language": ["getAdjustedAnalysisPointer", "-", "This", "method", "is", "used", "when", "a", "pass", "implements", "an", "analysis", "interface", "through", "multiple", "inheritance", "."], "TS_V_token": ["X86"], "File": "X86TargetTransformInfo112", "Func": "getAdjustedAnalysisPointer", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1056, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "aarch64_function_arg_boundary", "(", "machine_mode", "mode", ",", "const_tree", "type", ")", "{", "bool", "abi_break", ";", "unsigned", "int", "alignment", "=", "aarch64_function_arg_alignment", "(", "mode", ",", "type", ",", "&", "abi_break", ")", ";", "if", "(", "abi_break", "&", "warn_psabi", ")", "inform", "(", "input_location", ",", "\"parameter passing for argument of type \"", "\"%qT changed in GCC 9.1\"", ",", "type", ")", ";", "return", "MIN", "(", "MAX", "(", "alignment", ",", "PARM_BOUNDARY", ")", ",", "STACK_BOUNDARY", ")", ";", "}", ""], "natrual_language": ["Implement", "FUNCTION_ARG_BOUNDARY", ".", "Every", "parameter", "gets", "at", "least", "PARM_BOUNDARY", "bits", "of", "alignment", ",", "but", "will", "be", "given", "anything", "up", "to", "STACK_BOUNDARY", "bits", "if", "the", "type", "requires", "it", ".", "This", "makes", "sure", "that", "both", "before", "and", "after", "the", "layout", "of", "each", "argument", ",", "the", "Next", "Stacked", "Argument", "Address", "(", "NSAA", ")", "will", "have", "a", "minimum", "alignment", "of", "8", "bytes", "."], "TS_V_token": ["aarch64", "\"parameter passing for argument of type \"", "\"%qT changed in GCC 9.1\""], "File": "aarch64", "Func": "aarch64_function_arg_boundary", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1057, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64CallLowering", "::", "lowerFormalArguments", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "const", "Function", "::", "ArgumentListType", "&", "Args", ",", "const", "SmallVectorImpl", "<", "unsigned", ">", "&", "VRegs", ")", "const", "{", "MachineFunction", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "const", "Function", "&", "F", "=", "*", "MF", ".", "getFunction", "(", ")", ";", "SmallVector", "<", "CCValAssign", ",", "16", ">", "ArgLocs", ";", "CCState", "CCInfo", "(", "F", ".", "getCallingConv", "(", ")", ",", "F", ".", "isVarArg", "(", ")", ",", "MF", ",", "ArgLocs", ",", "F", ".", "getContext", "(", ")", ")", ";", "unsigned", "NumArgs", "=", "Args", ".", "size", "(", ")", ";", "Function", "::", "const_arg_iterator", "CurOrigArg", "=", "Args", ".", "begin", "(", ")", ";", "const", "AArch64TargetLowering", "&", "TLI", "=", "*", "getTLI", "<", "AArch64TargetLowering", ">", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "NumArgs", ";", "++", "i", ",", "++", "CurOrigArg", ")", "{", "MVT", "ValVT", "=", "MVT", "::", "getVT", "(", "CurOrigArg", "->", "getType", "(", ")", ")", ";", "CCAssignFn", "*", "AssignFn", "=", "TLI", ".", "CCAssignFnForCall", "(", "F", ".", "getCallingConv", "(", ")", ",", "false", ")", ";", "bool", "Res", "=", "AssignFn", "(", "i", ",", "ValVT", ",", "ValVT", ",", "CCValAssign", "::", "Full", ",", "ISD", "::", "ArgFlagsTy", "(", ")", ",", "CCInfo", ")", ";", "assert", "(", "!", "Res", "&&", "\"Call operand has unhandled type\"", ")", ";", "(", "void", ")", "Res", ";", "}", "assert", "(", "ArgLocs", ".", "size", "(", ")", "==", "Args", ".", "size", "(", ")", "&&", "\"We have a different number of location and args?!\"", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "ArgLocs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "ArgLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Not yet implemented\"", ")", ";", "MIRBuilder", ".", "getMBB", "(", ")", ".", "addLiveIn", "(", "VA", ".", "getLocReg", "(", ")", ")", ";", "MIRBuilder", ".", "buildCopy", "(", "VRegs", "[", "i", "]", ",", "VA", ".", "getLocReg", "(", ")", ")", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown loc info!\"", ")", ";", "case", "CCValAssign", "::", "Full", ":", "break", ";", "case", "CCValAssign", "::", "BCvt", ":", "break", ";", "case", "CCValAssign", "::", "AExt", ":", "break", ";", "case", "CCValAssign", "::", "SExt", ":", "case", "CCValAssign", "::", "ZExt", ":", "assert", "(", "0", "&&", "\"Not yet implemented\"", ")", ";", "break", ";", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "the", "incoming", "(", "formal", ")", "arguments", ",", "described", "by", "VRegs", ",", "for", "GlobalISel", "."], "TS_V_token": ["AArch64", "AArch64", "16", "AArch64", "AArch64", "0", "MVT::getVT", "ISD::ArgFlagsTy", "\"Call operand has unhandled type\"", "\"We have a different number of location and args?!\"", "0", "\"Not yet implemented\"", "\"Unknown loc info!\"", "0", "\"Not yet implemented\""], "File": "AArch64CallLowering6", "Func": "lowerFormalArguments", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1058, "Length": 355, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "expand_set_or_movmem_via_rep", "(", "rtx", "destmem", ",", "rtx", "srcmem", ",", "rtx", "destptr", ",", "rtx", "srcptr", ",", "rtx", "value", ",", "rtx", "orig_value", ",", "rtx", "count", ",", "machine_mode", "mode", ",", "bool", "issetmem", ")", "{", "rtx", "destexp", ";", "rtx", "srcexp", ";", "rtx", "countreg", ";", "HOST_WIDE_INT", "rounded_count", ";", "if", "(", "mode", "==", "QImode", "&&", "CONST_INT_P", "(", "count", ")", "&&", "!", "(", "INTVAL", "(", "count", ")", "&", "3", ")", "&&", "(", "!", "issetmem", "||", "orig_value", "==", "const0_rtx", ")", ")", "mode", "=", "SImode", ";", "if", "(", "destptr", "!=", "XEXP", "(", "destmem", ",", "0", ")", "||", "GET_MODE", "(", "destmem", ")", "!=", "BLKmode", ")", "destmem", "=", "adjust_automodify_address_nv", "(", "destmem", ",", "BLKmode", ",", "destptr", ",", "0", ")", ";", "countreg", "=", "ix86_zero_extend_to_Pmode", "(", "scale_counter", "(", "count", ",", "GET_MODE_SIZE", "(", "mode", ")", ")", ")", ";", "if", "(", "mode", "!=", "QImode", ")", "{", "destexp", "=", "gen_rtx_ASHIFT", "(", "Pmode", ",", "countreg", ",", "GEN_INT", "(", "exact_log2", "(", "GET_MODE_SIZE", "(", "mode", ")", ")", ")", ")", ";", "destexp", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "destexp", ",", "destptr", ")", ";", "}", "else", "destexp", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "destptr", ",", "countreg", ")", ";", "if", "(", "(", "!", "issetmem", "||", "orig_value", "==", "const0_rtx", ")", "&&", "CONST_INT_P", "(", "count", ")", ")", "{", "rounded_count", "=", "ROUND_DOWN", "(", "INTVAL", "(", "count", ")", ",", "(", "HOST_WIDE_INT", ")", "GET_MODE_SIZE", "(", "mode", ")", ")", ";", "destmem", "=", "shallow_copy_rtx", "(", "destmem", ")", ";", "set_mem_size", "(", "destmem", ",", "rounded_count", ")", ";", "}", "else", "if", "(", "MEM_SIZE_KNOWN_P", "(", "destmem", ")", ")", "clear_mem_size", "(", "destmem", ")", ";", "if", "(", "issetmem", ")", "{", "value", "=", "force_reg", "(", "mode", ",", "gen_lowpart", "(", "mode", ",", "value", ")", ")", ";", "emit_insn", "(", "gen_rep_stos", "(", "destptr", ",", "countreg", ",", "destmem", ",", "value", ",", "destexp", ")", ")", ";", "}", "else", "{", "if", "(", "srcptr", "!=", "XEXP", "(", "srcmem", ",", "0", ")", "||", "GET_MODE", "(", "srcmem", ")", "!=", "BLKmode", ")", "srcmem", "=", "adjust_automodify_address_nv", "(", "srcmem", ",", "BLKmode", ",", "srcptr", ",", "0", ")", ";", "if", "(", "mode", "!=", "QImode", ")", "{", "srcexp", "=", "gen_rtx_ASHIFT", "(", "Pmode", ",", "countreg", ",", "GEN_INT", "(", "exact_log2", "(", "GET_MODE_SIZE", "(", "mode", ")", ")", ")", ")", ";", "srcexp", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "srcexp", ",", "srcptr", ")", ";", "}", "else", "srcexp", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "srcptr", ",", "countreg", ")", ";", "if", "(", "CONST_INT_P", "(", "count", ")", ")", "{", "rounded_count", "=", "ROUND_DOWN", "(", "INTVAL", "(", "count", ")", ",", "(", "HOST_WIDE_INT", ")", "GET_MODE_SIZE", "(", "mode", ")", ")", ";", "srcmem", "=", "shallow_copy_rtx", "(", "srcmem", ")", ";", "set_mem_size", "(", "srcmem", ",", "rounded_count", ")", ";", "}", "else", "{", "if", "(", "MEM_SIZE_KNOWN_P", "(", "srcmem", ")", ")", "clear_mem_size", "(", "srcmem", ")", ";", "}", "emit_insn", "(", "gen_rep_mov", "(", "destptr", ",", "destmem", ",", "srcptr", ",", "srcmem", ",", "countreg", ",", "destexp", ",", "srcexp", ")", ")", ";", "}", "}", ""], "natrual_language": ["Output", "``", "rep", ";", "mov", "''", "or", "``", "rep", ";", "stos", "''", "instruction", "depending", "on", "ISSETMEM", "argument", ".", "When", "ISSETMEM", "is", "true", ",", "arguments", "SRCMEM", "and", "SRCPTR", "are", "ignored", ".", "When", "ISSETMEM", "is", "false", ",", "arguments", "VALUE", "and", "ORIG_VALUE", "are", "ignored", ".", "For", "setmem", "case", ",", "VALUE", "is", "a", "promoted", "to", "a", "wider", "size", "ORIG_VALUE", ".", "ORIG_VALUE", "is", "the", "original", "value", "passed", "to", "memset", "to", "fill", "the", "memory", "with", ".", "Other", "arguments", "have", "same", "meaning", "as", "for", "previous", "function", "."], "TS_V_token": ["i386", "3", "0", "0", "0", "0"], "File": "i3865", "Func": "expand_set_or_movmem_via_rep", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1059, "Length": 436, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "analyzeCompare", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "&", "SrcReg", ",", "unsigned", "&", "SrcReg2", ",", "int", "&", "CmpMask", ",", "int", "&", "CmpValue", ")", "const", "{", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "AArch64", "::", "PTEST_PP", ":", "SrcReg", "=", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "0", ";", "return", "true", ";", "case", "AArch64", "::", "SUBSWrr", ":", "case", "AArch64", "::", "SUBSWrs", ":", "case", "AArch64", "::", "SUBSWrx", ":", "case", "AArch64", "::", "SUBSXrr", ":", "case", "AArch64", "::", "SUBSXrs", ":", "case", "AArch64", "::", "SUBSXrx", ":", "case", "AArch64", "::", "ADDSWrr", ":", "case", "AArch64", "::", "ADDSWrs", ":", "case", "AArch64", "::", "ADDSWrx", ":", "case", "AArch64", "::", "ADDSXrr", ":", "case", "AArch64", "::", "ADDSXrs", ":", "case", "AArch64", "::", "ADDSXrx", ":", "SrcReg", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "MI", "->", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ";", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "0", ";", "return", "true", ";", "case", "AArch64", "::", "SUBSWri", ":", "case", "AArch64", "::", "ADDSWri", ":", "case", "AArch64", "::", "SUBSXri", ":", "case", "AArch64", "::", "ADDSXri", ":", "SrcReg", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "0", ";", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "(", "MI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", "!=", "0", ")", ";", "return", "true", ";", "case", "AArch64", "::", "ANDSWri", ":", "case", "AArch64", "::", "ANDSXri", ":", "SrcReg", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "0", ";", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "(", "AArch64_AM", "::", "decodeLogicalImmediate", "(", "MI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ",", "MI", "->", "getOpcode", "(", ")", "==", "AArch64", "::", "ANDSWri", "?", "32", ":", "64", ")", "!=", "0", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["analyzeCompare", "-", "For", "a", "comparison", "instruction", ",", "return", "the", "source", "registers", "in", "SrcReg", "and", "SrcReg2", "if", "having", "two", "register", "operands", ",", "and", "the", "value", "it", "compares", "against", "in", "CmpValue", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::PTEST_PP", "0", "1", "0", "0", "AArch64::SUBSWrr", "AArch64::SUBSWrs", "AArch64::SUBSWrx", "AArch64::SUBSXrr", "AArch64::SUBSXrs", "AArch64::SUBSXrx", "AArch64::ADDSWrr", "AArch64::ADDSWrs", "AArch64::ADDSWrx", "AArch64::ADDSXrr", "AArch64::ADDSXrs", "AArch64::ADDSXrx", "1", "2", "0", "0", "AArch64::SUBSWri", "AArch64::ADDSWri", "AArch64::SUBSXri", "AArch64::ADDSXri", "1", "0", "0", "2", "0", "AArch64::ANDSWri", "AArch64::ANDSXri", "1", "0", "0", "AArch64_AM::decodeLogicalImmediate", "2", "AArch64::ANDSWri", "32", "64", "0"], "File": "AArch64InstrInfo73", "Func": "analyzeCompare", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1060, "Length": 320, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "emitSPUpdate", "(", "bool", "isARM", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "MBBI", ",", "DebugLoc", "dl", ",", "const", "ARMBaseInstrInfo", "&", "TII", ",", "int", "NumBytes", ",", "unsigned", "MIFlags", "=", "MachineInstr", "::", "NoFlags", ")", "{", "if", "(", "isARM", ")", "emitARMRegPlusImmediate", "(", "MBB", ",", "MBBI", ",", "dl", ",", "ARM", "::", "SP", ",", "ARM", "::", "SP", ",", "NumBytes", ",", "ARMCC", "::", "AL", ",", "0", ",", "TII", ",", "MIFlags", ")", ";", "else", "emitT2RegPlusImmediate", "(", "MBB", ",", "MBBI", ",", "dl", ",", "ARM", "::", "SP", ",", "ARM", "::", "SP", ",", "NumBytes", ",", "ARMCC", "::", "AL", ",", "0", ",", "TII", ",", "MIFlags", ")", ";", "}", ""], "natrual_language": ["Emit", "a", "series", "of", "instructions", "to", "increment", "/", "decrement", "the", "stack", "pointer", "by", "a", "constant", "value", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM::SP", "ARM::SP", "ARMCC::AL", "0", "ARM::SP", "ARM::SP", "ARMCC::AL", "0"], "File": "ARMFrameLowering104", "Func": "emitSPUpdate", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1061, "Length": 100, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getNumFixupKinds", "(", ")", "const", "{", "return", "Mips", "::", "NumTargetFixupKinds", ";", "}", ""], "natrual_language": ["Get", "the", "number", "of", "target", "specific", "fixup", "kinds", "."], "TS_V_token": ["Mips", "Mips::NumTargetFixupKinds"], "File": "MipsAsmBackend11", "Func": "getNumFixupKinds", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1062, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Thumb1RegisterInfo", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "if", "(", "!", "hasReservedCallFrame", "(", "MF", ")", ")", "{", "MachineInstr", "*", "Old", "=", "I", ";", "DebugLoc", "dl", "=", "Old", "->", "getDebugLoc", "(", ")", ";", "unsigned", "Amount", "=", "Old", "->", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "if", "(", "Amount", "!=", "0", ")", "{", "unsigned", "Align", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameInfo", "(", ")", "->", "getStackAlignment", "(", ")", ";", "Amount", "=", "(", "Amount", "+", "Align", "-", "1", ")", "/", "Align", "*", "Align", ";", "unsigned", "Opc", "=", "Old", "->", "getOpcode", "(", ")", ";", "if", "(", "Opc", "==", "ARM", "::", "ADJCALLSTACKDOWN", "||", "Opc", "==", "ARM", "::", "tADJCALLSTACKDOWN", ")", "{", "emitSPUpdate", "(", "MBB", ",", "I", ",", "TII", ",", "dl", ",", "*", "this", ",", "-", "Amount", ")", ";", "}", "else", "{", "assert", "(", "Opc", "==", "ARM", "::", "ADJCALLSTACKUP", "||", "Opc", "==", "ARM", "::", "tADJCALLSTACKUP", ")", ";", "emitSPUpdate", "(", "MBB", ",", "I", ",", "TII", ",", "dl", ",", "*", "this", ",", "Amount", ")", ";", "}", "}", "}", "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": ["ARM", "0", "0", "1", "ARM::ADJCALLSTACKDOWN", "ARM::tADJCALLSTACKDOWN", "ARM::ADJCALLSTACKUP", "ARM::tADJCALLSTACKUP"], "File": "Thumb1RegisterInfo13", "Func": "eliminateCallFramePseudoInstr", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1063, "Length": 182, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_vector_mode_supported_p", "(", "machine_mode", "mode", ")", "{", "if", "(", "TARGET_PAIRED_FLOAT", "&&", "PAIRED_VECTOR_MODE", "(", "mode", ")", ")", "return", "true", ";", "if", "(", "TARGET_SPE", "&&", "SPE_VECTOR_MODE", "(", "mode", ")", ")", "return", "true", ";", "else", "if", "(", "VECTOR_MEM_ALTIVEC_OR_VSX_P", "(", "mode", ")", "&&", "!", "FLOAT128_IEEE_P", "(", "mode", ")", ")", "return", "true", ";", "else", "return", "false", ";", "}", ""], "natrual_language": ["Target", "hook", "for", "vector_mode_supported_p", "."], "TS_V_token": ["rs6000"], "File": "rs60005", "Func": "rs6000_vector_mode_supported_p", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1064, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "machine_mode", "rx_select_cc_mode", "(", "enum", "rtx_code", "cmp_code", ",", "rtx", "x", ",", "rtx", "y", ")", "{", "if", "(", "GET_MODE_CLASS", "(", "GET_MODE", "(", "x", ")", ")", "==", "MODE_FLOAT", ")", "return", "CC_Fmode", ";", "if", "(", "y", "!=", "const0_rtx", ")", "return", "CCmode", ";", "return", "mode_from_flags", "(", "flags_from_code", "(", "cmp_code", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "minimal", "CC", "mode", "needed", "to", "implement", "(", "CMP_CODE", "X", "Y", ")", "."], "TS_V_token": ["rx"], "File": "rx", "Func": "rx_select_cc_mode", "Target": "rx", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1065, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "ARMSubtarget", "*", "getSubtargetImpl", "(", ")", "const", "{", "return", "&", "Subtarget", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMTargetMachine16", "Func": "getSubtargetImpl", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1066, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64FrameLowering", "::", "hasReservedCallFrame", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "!", "MF", ".", "getFrameInfo", "(", ")", "->", "hasVarSizedObjects", "(", ")", ";", "}", ""], "natrual_language": ["hasReservedCallFrame", "-", "Under", "normal", "circumstances", ",", "when", "a", "frame", "pointer", "is", "not", "required", ",", "we", "reserve", "argument", "space", "for", "call", "sites", "in", "the", "function", "immediately", "on", "entry", "to", "the", "current", "function", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64FrameLowering (2)", "Func": "hasReservedCallFrame", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1067, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "machine_mode", "rs6000_preferred_simd_mode", "(", "scalar_mode", "mode", ")", "{", "if", "(", "TARGET_VSX", ")", "switch", "(", "mode", ")", "{", "case", "E_DFmode", ":", "return", "V2DFmode", ";", "default", ":", ";", "}", "if", "(", "TARGET_ALTIVEC", "||", "TARGET_VSX", ")", "switch", "(", "mode", ")", "{", "case", "E_SFmode", ":", "return", "V4SFmode", ";", "case", "E_TImode", ":", "return", "V1TImode", ";", "case", "E_DImode", ":", "return", "V2DImode", ";", "case", "E_SImode", ":", "return", "V4SImode", ";", "case", "E_HImode", ":", "return", "V8HImode", ";", "case", "E_QImode", ":", "return", "V16QImode", ";", "default", ":", ";", "}", "return", "word_mode", ";", "}", ""], "natrual_language": ["Implement", "targetm.vectorize.preferred_simd_mode", "."], "TS_V_token": ["rs6000"], "File": "rs60008", "Func": "rs6000_preferred_simd_mode", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1068, "Length": 82, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64TargetLowering", "::", "allowsMisalignedMemoryAccesses", "(", "EVT", "VT", ",", "unsigned", "AddrSpace", ",", "unsigned", "Align", ",", "bool", "*", "Fast", ")", "const", "{", "if", "(", "Subtarget", "->", "requiresStrictAlign", "(", ")", ")", "return", "false", ";", "if", "(", "Fast", ")", "{", "*", "Fast", "=", "!", "Subtarget", "->", "isMisaligned128StoreSlow", "(", ")", "||", "VT", ".", "getStoreSize", "(", ")", "!=", "16", "||", "Align", "<=", "2", "||", "VT", "==", "MVT", "::", "v2i64", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "allows", "unaligned", "memory", "accesses", "of", "the", "specified", "type", "."], "TS_V_token": ["AArch64", "AArch64", "16", "2", "MVT::v2i64"], "File": "AArch64ISelLowering (2)", "Func": "allowsMisalignedMemoryAccesses", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1069, "Length": 69, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "LoadInst", "*", "X86TargetLowering", "::", "lowerIdempotentRMWIntoFencedLoad", "(", "AtomicRMWInst", "*", "AI", ")", "const", "{", "unsigned", "NativeWidth", "=", "Subtarget", ".", "is64Bit", "(", ")", "?", "64", ":", "32", ";", "Type", "*", "MemType", "=", "AI", "->", "getType", "(", ")", ";", "if", "(", "MemType", "->", "getPrimitiveSizeInBits", "(", ")", ">", "NativeWidth", ")", "return", "nullptr", ";", "if", "(", "auto", "*", "C", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "AI", "->", "getValOperand", "(", ")", ")", ")", "if", "(", "AI", "->", "getOperation", "(", ")", "==", "AtomicRMWInst", "::", "Or", "&&", "C", "->", "isZero", "(", ")", "&&", "AI", "->", "use_empty", "(", ")", ")", "return", "nullptr", ";", "IRBuilder", "<", ">", "Builder", "(", "AI", ")", ";", "Module", "*", "M", "=", "Builder", ".", "GetInsertBlock", "(", ")", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "auto", "SSID", "=", "AI", "->", "getSyncScopeID", "(", ")", ";", "auto", "Order", "=", "AtomicCmpXchgInst", "::", "getStrongestFailureOrdering", "(", "AI", "->", "getOrdering", "(", ")", ")", ";", "if", "(", "SSID", "==", "SyncScope", "::", "SingleThread", ")", "return", "nullptr", ";", "if", "(", "!", "Subtarget", ".", "hasMFence", "(", ")", ")", "return", "nullptr", ";", "Function", "*", "MFence", "=", "llvm", "::", "Intrinsic", "::", "getDeclaration", "(", "M", ",", "Intrinsic", "::", "x86_sse2_mfence", ")", ";", "Builder", ".", "CreateCall", "(", "MFence", ",", "{", "}", ")", ";", "LoadInst", "*", "Loaded", "=", "Builder", ".", "CreateAlignedLoad", "(", "AI", "->", "getType", "(", ")", ",", "AI", "->", "getPointerOperand", "(", ")", ",", "Align", "(", "AI", "->", "getType", "(", ")", "->", "getPrimitiveSizeInBits", "(", ")", ")", ")", ";", "Loaded", "->", "setAtomic", "(", "Order", ",", "SSID", ")", ";", "AI", "->", "replaceAllUsesWith", "(", "Loaded", ")", ";", "AI", "->", "eraseFromParent", "(", ")", ";", "return", "Loaded", ";", "}", ""], "natrual_language": ["On", "some", "platforms", ",", "an", "AtomicRMW", "that", "never", "actually", "modifies", "the", "value", "(", "such", "as", "fetch_add", "of", "0", ")", "can", "be", "turned", "into", "a", "fence", "followed", "by", "an", "atomic", "load", "."], "TS_V_token": ["X86", "X86", "64", "32", "Intrinsic::getDeclaration", "Intrinsic::x86_sse2_mfence"], "File": "X86ISelLowering101", "Func": "lowerIdempotentRMWIntoFencedLoad", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1070, "Length": 252, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ix86_check_no_addr_space", "(", "rtx", "insn", ")", "{", "subrtx_var_iterator", "::", "array_type", "array", ";", "FOR_EACH_SUBRTX_VAR", "(", "iter", ",", "array", ",", "PATTERN", "(", "insn", ")", ",", "ALL", ")", "{", "rtx", "x", "=", "*", "iter", ";", "if", "(", "MEM_P", "(", "x", ")", "&&", "!", "ADDR_SPACE_GENERIC_P", "(", "MEM_ADDR_SPACE", "(", "x", ")", ")", ")", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Return", "false", "if", "INSN", "contains", "a", "MEM", "with", "a", "non-default", "address", "space", "."], "TS_V_token": ["i386"], "File": "i386", "Func": "ix86_check_no_addr_space", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1071, "Length": 56, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsBranchExpansion", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "const", "TargetMachine", "&", "TM", "=", "MF", ".", "getTarget", "(", ")", ";", "IsPIC", "=", "TM", ".", "isPositionIndependent", "(", ")", ";", "ABI", "=", "static_cast", "<", "const", "MipsTargetMachine", "&", ">", "(", "TM", ")", ".", "getABI", "(", ")", ";", "STI", "=", "&", "MF", ".", "getSubtarget", "<", "MipsSubtarget", ">", "(", ")", ";", "TII", "=", "static_cast", "<", "const", "MipsInstrInfo", "*", ">", "(", "STI", "->", "getInstrInfo", "(", ")", ")", ";", "if", "(", "IsPIC", "&&", "ABI", ".", "IsO32", "(", ")", "&&", "MF", ".", "getInfo", "<", "MipsFunctionInfo", ">", "(", ")", "->", "globalBaseRegSet", "(", ")", ")", "emitGPDisp", "(", "MF", ",", "TII", ")", ";", "MFp", "=", "&", "MF", ";", "ForceLongBranchFirstPass", "=", "ForceLongBranch", ";", "bool", "longBranchChanged", "=", "handlePossibleLongBranch", "(", ")", ";", "bool", "forbiddenSlotChanged", "=", "handleForbiddenSlot", "(", ")", ";", "bool", "fpuDelaySlotChanged", "=", "handleFPUDelaySlot", "(", ")", ";", "bool", "loadDelaySlotChanged", "=", "handleLoadDelaySlot", "(", ")", ";", "bool", "Changed", "=", "longBranchChanged", "||", "forbiddenSlotChanged", "||", "fpuDelaySlotChanged", "||", "loadDelaySlotChanged", ";", "while", "(", "forbiddenSlotChanged", ")", "{", "longBranchChanged", "=", "handlePossibleLongBranch", "(", ")", ";", "fpuDelaySlotChanged", "=", "handleFPUDelaySlot", "(", ")", ";", "loadDelaySlotChanged", "=", "handleLoadDelaySlot", "(", ")", ";", "if", "(", "!", "longBranchChanged", "&&", "!", "fpuDelaySlotChanged", "&&", "!", "loadDelaySlotChanged", ")", "break", ";", "forbiddenSlotChanged", "=", "handleForbiddenSlot", "(", ")", ";", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "Mips", "Mips"], "File": "MipsBranchExpansion (2)", "Func": "runOnMachineFunction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1072, "Length": 198, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCAsmParser", "::", "ParseDirective", "(", "AsmToken", "DirectiveID", ")", "{", "StringRef", "IDVal", "=", "DirectiveID", ".", "getIdentifier", "(", ")", ";", "if", "(", "IDVal", "==", "\".word\"", ")", "ParseDirectiveWord", "(", "2", ",", "DirectiveID", ")", ";", "else", "if", "(", "IDVal", "==", "\".llong\"", ")", "ParseDirectiveWord", "(", "8", ",", "DirectiveID", ")", ";", "else", "if", "(", "IDVal", "==", "\".tc\"", ")", "ParseDirectiveTC", "(", "isPPC64", "(", ")", "?", "8", ":", "4", ",", "DirectiveID", ")", ";", "else", "if", "(", "IDVal", "==", "\".machine\"", ")", "ParseDirectiveMachine", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".abiversion\"", ")", "ParseDirectiveAbiVersion", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".localentry\"", ")", "ParseDirectiveLocalEntry", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", ".", "startswith", "(", "\".gnu_attribute\"", ")", ")", "ParseGNUAttribute", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["ParseDirective", "-", "Parse", "a", "target", "specific", "assembler", "directive", "This", "method", "is", "deprecated", ",", "use", "'parseDirective", "'", "instead", "."], "TS_V_token": ["PowerPC", "PPC", "\".word\"", "2", "\".llong\"", "8", "\".tc\"", "PPC", "8", "4", "\".machine\"", "\".abiversion\"", "\".localentry\"", "\".gnu_attribute\""], "File": "PPCAsmParser12", "Func": "ParseDirective", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1073, "Length": 140, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "PPCSubtarget", "*", "PPCTargetMachine", "::", "getSubtargetImpl", "(", "const", "Function", "&", "F", ")", "const", "{", "AttributeSet", "FnAttrs", "=", "F", ".", "getAttributes", "(", ")", ";", "Attribute", "CPUAttr", "=", "FnAttrs", ".", "getAttribute", "(", "AttributeSet", "::", "FunctionIndex", ",", "\"target-cpu\"", ")", ";", "Attribute", "FSAttr", "=", "FnAttrs", ".", "getAttribute", "(", "AttributeSet", "::", "FunctionIndex", ",", "\"target-features\"", ")", ";", "std", "::", "string", "CPU", "=", "!", "CPUAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "CPUAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetCPU", ";", "std", "::", "string", "FS", "=", "!", "FSAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "FSAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetFS", ";", "auto", "&", "I", "=", "SubtargetMap", "[", "CPU", "+", "FS", "]", ";", "if", "(", "!", "I", ")", "{", "resetTargetOptions", "(", "F", ")", ";", "I", "=", "llvm", "::", "make_unique", "<", "PPCSubtarget", ">", "(", "TargetTriple", ",", "CPU", ",", "FS", ",", "*", "this", ")", ";", "}", "return", "I", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "\"target-cpu\"", "\"target-features\"", "PPC"], "File": "PPCTargetMachine27", "Func": "getSubtargetImpl", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1074, "Length": 155, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsMCCodeEmitter", "::", "encodeInstruction", "(", "const", "MCInst", "&", "MI", ",", "raw_ostream", "&", "OS", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "MCInst", "TmpInst", "=", "MI", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "case", "Mips", "::", "DSLL", ":", "case", "Mips", "::", "DSRL", ":", "case", "Mips", "::", "DSRA", ":", "case", "Mips", "::", "DROTR", ":", "LowerLargeShift", "(", "TmpInst", ")", ";", "break", ";", "case", "Mips", "::", "BEQC", ":", "case", "Mips", "::", "BNEC", ":", "case", "Mips", "::", "BEQC64", ":", "case", "Mips", "::", "BNEC64", ":", "case", "Mips", "::", "BOVC", ":", "case", "Mips", "::", "BOVC_MMR6", ":", "case", "Mips", "::", "BNVC", ":", "case", "Mips", "::", "BNVC_MMR6", ":", "LowerCompactBranch", "(", "TmpInst", ")", ";", "}", "unsigned", "long", "N", "=", "Fixups", ".", "size", "(", ")", ";", "uint32_t", "Binary", "=", "getBinaryCodeForInstr", "(", "TmpInst", ",", "Fixups", ",", "STI", ")", ";", "const", "unsigned", "Opcode", "=", "TmpInst", ".", "getOpcode", "(", ")", ";", "if", "(", "(", "Opcode", "!=", "Mips", "::", "NOP", ")", "&&", "(", "Opcode", "!=", "Mips", "::", "SLL", ")", "&&", "(", "Opcode", "!=", "Mips", "::", "SLL_MM", ")", "&&", "(", "Opcode", "!=", "Mips", "::", "SLL_MMR6", ")", "&&", "!", "Binary", ")", "llvm_unreachable", "(", "\"unimplemented opcode in encodeInstruction()\"", ")", ";", "int", "NewOpcode", "=", "-", "1", ";", "if", "(", "isMicroMips", "(", "STI", ")", ")", "{", "if", "(", "isMips32r6", "(", "STI", ")", ")", "{", "NewOpcode", "=", "Mips", "::", "MipsR62MicroMipsR6", "(", "Opcode", ",", "Mips", "::", "Arch_micromipsr6", ")", ";", "if", "(", "NewOpcode", "==", "-", "1", ")", "NewOpcode", "=", "Mips", "::", "Std2MicroMipsR6", "(", "Opcode", ",", "Mips", "::", "Arch_micromipsr6", ")", ";", "}", "else", "NewOpcode", "=", "Mips", "::", "Std2MicroMips", "(", "Opcode", ",", "Mips", "::", "Arch_micromips", ")", ";", "if", "(", "NewOpcode", "==", "-", "1", ")", "NewOpcode", "=", "Mips", "::", "Dsp2MicroMips", "(", "Opcode", ",", "Mips", "::", "Arch_mmdsp", ")", ";", "if", "(", "NewOpcode", "!=", "-", "1", ")", "{", "if", "(", "Fixups", ".", "size", "(", ")", ">", "N", ")", "Fixups", ".", "pop_back", "(", ")", ";", "TmpInst", ".", "setOpcode", "(", "NewOpcode", ")", ";", "Binary", "=", "getBinaryCodeForInstr", "(", "TmpInst", ",", "Fixups", ",", "STI", ")", ";", "}", "if", "(", "(", "(", "MI", ".", "getOpcode", "(", ")", "==", "Mips", "::", "MOVEP_MM", ")", "||", "(", "MI", ".", "getOpcode", "(", ")", "==", "Mips", "::", "MOVEP_MMR6", ")", ")", ")", "{", "unsigned", "RegPair", "=", "getMovePRegPairOpValue", "(", "MI", ",", "0", ",", "Fixups", ",", "STI", ")", ";", "Binary", "=", "(", "Binary", "&", "0xFFFFFC7F", ")", "|", "(", "RegPair", "<<", "7", ")", ";", "}", "}", "const", "MCInstrDesc", "&", "Desc", "=", "MCII", ".", "get", "(", "TmpInst", ".", "getOpcode", "(", ")", ")", ";", "unsigned", "Size", "=", "Desc", ".", "getSize", "(", ")", ";", "if", "(", "!", "Size", ")", "llvm_unreachable", "(", "\"Desc.getSize() returns 0\"", ")", ";", "emitInstruction", "(", "Binary", ",", "Size", ",", "STI", ",", "OS", ")", ";", "}", ""], "natrual_language": ["Encode", "the", "given", "Inst", "to", "bytes", "and", "append", "to", "CB", "."], "TS_V_token": ["Mips", "Mips", "Mips::DSLL", "Mips::DSRL", "Mips::DSRA", "Mips::DROTR", "Mips::BEQC", "Mips::BNEC", "Mips::BEQC64", "Mips::BNEC64", "Mips::BOVC", "Mips::BOVC_MMR6", "Mips::BNVC", "Mips::BNVC_MMR6", "Mips::NOP", "Mips::SLL", "Mips::SLL_MM", "Mips::SLL_MMR6", "\"unimplemented opcode in encodeInstruction()\"", "1", "Mips", "Mips", "Mips::MipsR62MicroMipsR6", "Mips::Arch_micromipsr6", "1", "Mips::Std2MicroMipsR6", "Mips::Arch_micromipsr6", "Mips::Std2MicroMips", "Mips::Arch_micromips", "1", "Mips::Dsp2MicroMips", "Mips::Arch_mmdsp", "1", "Mips::MOVEP_MM", "Mips::MOVEP_MMR6", "0", "0xFFFFFC7F", "7", "\"Desc.getSize() returns 0\""], "File": "MipsMCCodeEmitter (2)2", "Func": "encodeInstruction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1075, "Length": 428, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Optional", "<", "Instruction", "*", ">", "AArch64TTIImpl", "::", "instCombineIntrinsic", "(", "InstCombiner", "&", "IC", ",", "IntrinsicInst", "&", "II", ")", "const", "{", "Intrinsic", "::", "ID", "IID", "=", "II", ".", "getIntrinsicID", "(", ")", ";", "switch", "(", "IID", ")", "{", "default", ":", "break", ";", "case", "Intrinsic", "::", "aarch64_sve_convert_from_svbool", ":", "return", "instCombineConvertFromSVBool", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_dup", ":", "return", "instCombineSVEDup", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_cmpne", ":", "case", "Intrinsic", "::", "aarch64_sve_cmpne_wide", ":", "return", "instCombineSVECmpNE", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_rdffr", ":", "return", "instCombineRDFFR", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_lasta", ":", "case", "Intrinsic", "::", "aarch64_sve_lastb", ":", "return", "instCombineSVELast", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_cntd", ":", "return", "instCombineSVECntElts", "(", "IC", ",", "II", ",", "2", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_cntw", ":", "return", "instCombineSVECntElts", "(", "IC", ",", "II", ",", "4", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_cnth", ":", "return", "instCombineSVECntElts", "(", "IC", ",", "II", ",", "8", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_cntb", ":", "return", "instCombineSVECntElts", "(", "IC", ",", "II", ",", "16", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_ptest_any", ":", "case", "Intrinsic", "::", "aarch64_sve_ptest_first", ":", "case", "Intrinsic", "::", "aarch64_sve_ptest_last", ":", "return", "instCombineSVEPTest", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_mul", ":", "case", "Intrinsic", "::", "aarch64_sve_fmul", ":", "return", "instCombineSVEVectorMul", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_tbl", ":", "return", "instCombineSVETBL", "(", "IC", ",", "II", ")", ";", "}", "return", "None", ";", "}", ""], "natrual_language": ["Targets", "can", "implement", "their", "own", "combinations", "for", "target-specific", "intrinsics", "."], "TS_V_token": ["AArch64", "AArch64", "Intrinsic::ID", "Intrinsic::aarch64_sve_convert_from_svbool", "Intrinsic::aarch64_sve_dup", "Intrinsic::aarch64_sve_cmpne", "Intrinsic::aarch64_sve_cmpne_wide", "Intrinsic::aarch64_sve_rdffr", "Intrinsic::aarch64_sve_lasta", "Intrinsic::aarch64_sve_lastb", "Intrinsic::aarch64_sve_cntd", "2", "Intrinsic::aarch64_sve_cntw", "4", "Intrinsic::aarch64_sve_cnth", "8", "Intrinsic::aarch64_sve_cntb", "16", "Intrinsic::aarch64_sve_ptest_any", "Intrinsic::aarch64_sve_ptest_first", "Intrinsic::aarch64_sve_ptest_last", "Intrinsic::aarch64_sve_mul", "Intrinsic::aarch64_sve_fmul", "Intrinsic::aarch64_sve_tbl"], "File": "AArch64TargetTransformInfo28", "Func": "instCombineIntrinsic", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1076, "Length": 233, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMMCCodeEmitter", "::", "getMachineOpValue", "(", "const", "MCInst", "&", "MI", ",", "const", "MCOperand", "&", "MO", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ")", "const", "{", "if", "(", "MO", ".", "isReg", "(", ")", ")", "{", "unsigned", "Reg", "=", "MO", ".", "getReg", "(", ")", ";", "unsigned", "RegNo", "=", "CTX", ".", "getRegisterInfo", "(", ")", "->", "getEncodingValue", "(", "Reg", ")", ";", "switch", "(", "Reg", ")", "{", "default", ":", "return", "RegNo", ";", "case", "ARM", "::", "Q0", ":", "case", "ARM", "::", "Q1", ":", "case", "ARM", "::", "Q2", ":", "case", "ARM", "::", "Q3", ":", "case", "ARM", "::", "Q4", ":", "case", "ARM", "::", "Q5", ":", "case", "ARM", "::", "Q6", ":", "case", "ARM", "::", "Q7", ":", "case", "ARM", "::", "Q8", ":", "case", "ARM", "::", "Q9", ":", "case", "ARM", "::", "Q10", ":", "case", "ARM", "::", "Q11", ":", "case", "ARM", "::", "Q12", ":", "case", "ARM", "::", "Q13", ":", "case", "ARM", "::", "Q14", ":", "case", "ARM", "::", "Q15", ":", "return", "2", "*", "RegNo", ";", "}", "}", "else", "if", "(", "MO", ".", "isImm", "(", ")", ")", "{", "return", "static_cast", "<", "unsigned", ">", "(", "MO", ".", "getImm", "(", ")", ")", ";", "}", "else", "if", "(", "MO", ".", "isFPImm", "(", ")", ")", "{", "return", "static_cast", "<", "unsigned", ">", "(", "APFloat", "(", "MO", ".", "getFPImm", "(", ")", ")", ".", "bitcastToAPInt", "(", ")", ".", "getHiBits", "(", "32", ")", ".", "getLimitedValue", "(", ")", ")", ";", "}", "llvm_unreachable", "(", "\"Unable to encode MCOperand!\"", ")", ";", "}", ""], "natrual_language": ["getMachineOpValue", "-", "Return", "binary", "encoding", "of", "operand", "."], "TS_V_token": ["ARM", "ARM", "ARM::Q0", "ARM::Q1", "ARM::Q2", "ARM::Q3", "ARM::Q4", "ARM::Q5", "ARM::Q6", "ARM::Q7", "ARM::Q8", "ARM::Q9", "ARM::Q10", "ARM::Q11", "ARM::Q12", "ARM::Q13", "ARM::Q14", "ARM::Q15", "2", "32", "\"Unable to encode MCOperand!\""], "File": "ARMMCCodeEmitter2", "Func": "getMachineOpValue", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1077, "Length": 223, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86PassConfig", "::", "addPreRegAlloc", "(", ")", "{", "addPass", "(", "createX86MaxStackAlignmentHeuristicPass", "(", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "register", "allocation", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86TargetMachine103", "Func": "addPreRegAlloc", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1078, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64TTIImpl", "::", "getPeelingPreferences", "(", "Loop", "*", "L", ",", "ScalarEvolution", "&", "SE", ",", "TTI", "::", "PeelingPreferences", "&", "PP", ")", "{", "BaseT", "::", "getPeelingPreferences", "(", "L", ",", "SE", ",", "PP", ")", ";", "}", ""], "natrual_language": ["Get", "target-customized", "preferences", "for", "the", "generic", "loop", "peeling", "transformation", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64TargetTransformInfo", "Func": "getPeelingPreferences", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1079, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "aarch64_sve_cmp_immediate_p", "(", "rtx", "x", ",", "bool", "signed_p", ")", "{", "x", "=", "unwrap_const_vec_duplicate", "(", "x", ")", ";", "return", "(", "CONST_INT_P", "(", "x", ")", "&&", "(", "signed_p", "?", "IN_RANGE", "(", "INTVAL", "(", "x", ")", ",", "-", "16", ",", "15", ")", ":", "IN_RANGE", "(", "INTVAL", "(", "x", ")", ",", "0", ",", "127", ")", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "X", "is", "a", "valid", "immediate", "operand", "for", "an", "SVE", "CMP", "instruction", ".", "SIGNED_P", "says", "whether", "the", "operand", "is", "signed", "rather", "than", "unsigned", "."], "TS_V_token": ["aarch64", "16", "15", "0", "127"], "File": "aarch64", "Func": "aarch64_sve_cmp_immediate_p", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1080, "Length": 55, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "getValue", "(", ")", "const", "{", "assert", "(", "hasValue", "(", ")", "&&", "\"Cannot get the value of a constant bit\"", ")", ";", "return", "V", ";", "}", ""], "natrual_language": ["Return", "the", "contained", "Value", "."], "TS_V_token": ["PowerPC", "\"Cannot get the value of a constant bit\""], "File": "PPCISelDAGToDAG (2)1", "Func": "getValue", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1081, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_print_vector_float_operand", "(", "FILE", "*", "f", ",", "rtx", "x", ",", "bool", "negate", ")", "{", "rtx", "elt", ";", "if", "(", "!", "const_vec_duplicate_p", "(", "x", ",", "&", "elt", ")", ")", "return", "false", ";", "REAL_VALUE_TYPE", "r", "=", "*", "CONST_DOUBLE_REAL_VALUE", "(", "elt", ")", ";", "if", "(", "negate", ")", "r", "=", "real_value_negate", "(", "&", "r", ")", ";", "if", "(", "real_equal", "(", "&", "r", ",", "&", "dconst0", ")", ")", "asm_fprintf", "(", "f", ",", "\"0.0\"", ")", ";", "else", "if", "(", "real_equal", "(", "&", "r", ",", "&", "dconst2", ")", ")", "asm_fprintf", "(", "f", ",", "\"2.0\"", ")", ";", "else", "if", "(", "real_equal", "(", "&", "r", ",", "&", "dconst1", ")", ")", "asm_fprintf", "(", "f", ",", "\"1.0\"", ")", ";", "else", "if", "(", "real_equal", "(", "&", "r", ",", "&", "dconsthalf", ")", ")", "asm_fprintf", "(", "f", ",", "\"0.5\"", ")", ";", "else", "{", "const", "int", "buf_size", "=", "20", ";", "char", "float_buf", "[", "buf_size", "]", "=", "{", "'\\0'", "}", ";", "real_to_decimal_for_mode", "(", "float_buf", ",", "&", "r", ",", "buf_size", ",", "buf_size", ",", "1", ",", "GET_MODE", "(", "elt", ")", ")", ";", "asm_fprintf", "(", "f", ",", "\"%s\"", ",", "float_buf", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Print", "floating-point", "vector", "immediate", "operand", "X", "to", "F", ",", "negating", "it", "first", "if", "NEGATE", "is", "true", ".", "Return", "true", "on", "success", ",", "false", "if", "it", "is", "n't", "a", "constant", "we", "can", "handle", "."], "TS_V_token": ["aarch64", "\"0.0\"", "\"2.0\"", "\"1.0\"", "\"0.5\"", "20", "1", "\"%s\""], "File": "aarch64", "Func": "aarch64_print_vector_float_operand", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1082, "Length": 179, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_optab_supported_p", "(", "int", "op", ",", "machine_mode", ",", "machine_mode", ",", "optimization_type", "opt_type", ")", "{", "switch", "(", "op", ")", "{", "case", "rsqrt_optab", ":", "return", "opt_type", "==", "OPTIMIZE_FOR_SPEED", "&&", "use_rsqrt_p", "(", ")", ";", "default", ":", "return", "true", ";", "}", "}", ""], "natrual_language": ["Implement", "the", "TARGET_OPTAB_SUPPORTED_P", "hook", "."], "TS_V_token": ["aarch64"], "File": "aarch643", "Func": "aarch64_optab_supported_p", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1083, "Length": 39, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ix86_division_cost", "(", "const", "struct", "processor_costs", "*", "cost", ",", "enum", "machine_mode", "mode", ")", "{", "machine_mode", "inner_mode", "=", "mode", ";", "if", "(", "VECTOR_MODE_P", "(", "mode", ")", ")", "inner_mode", "=", "GET_MODE_INNER", "(", "mode", ")", ";", "if", "(", "SSE_FLOAT_MODE_SSEMATH_OR_HF_P", "(", "mode", ")", ")", "return", "inner_mode", "==", "DFmode", "?", "cost", "->", "divsd", ":", "cost", "->", "divss", ";", "else", "if", "(", "X87_FLOAT_MODE_P", "(", "mode", ")", ")", "return", "cost", "->", "fdiv", ";", "else", "if", "(", "FLOAT_MODE_P", "(", "mode", ")", ")", "return", "ix86_vec_cost", "(", "mode", ",", "inner_mode", "==", "DFmode", "?", "cost", "->", "divsd", ":", "cost", "->", "divss", ")", ";", "else", "return", "cost", "->", "divide", "[", "MODE_INDEX", "(", "mode", ")", "]", ";", "}", ""], "natrual_language": ["Return", "cost", "of", "multiplication", "in", "MODE", "."], "TS_V_token": ["i386"], "File": "i386", "Func": "ix86_division_cost", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1084, "Length": 106, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"AArch64 Conditional Compares\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["AArch64", "\"AArch64 Conditional Compares\""], "File": "AArch64ConditionalCompares1", "Func": "getPassName", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1085, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "X86TargetLowering", "::", "BuildSDIVPow2", "(", "SDNode", "*", "N", ",", "const", "APInt", "&", "Divisor", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDNode", "*", ">", "&", "Created", ")", "const", "{", "AttributeList", "Attr", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getFunction", "(", ")", ".", "getAttributes", "(", ")", ";", "if", "(", "isIntDivCheap", "(", "N", "->", "getValueType", "(", "0", ")", ",", "Attr", ")", ")", "return", "SDValue", "(", "N", ",", "0", ")", ";", "assert", "(", "(", "Divisor", ".", "isPowerOf2", "(", ")", "||", "Divisor", ".", "isNegatedPowerOf2", "(", ")", ")", "&&", "\"Unexpected divisor!\"", ")", ";", "if", "(", "!", "Subtarget", ".", "canUseCMOV", "(", ")", ")", "return", "SDValue", "(", ")", ";", "EVT", "VT", "=", "N", "->", "getValueType", "(", "0", ")", ";", "if", "(", "VT", "!=", "MVT", "::", "i16", "&&", "VT", "!=", "MVT", "::", "i32", "&&", "!", "(", "Subtarget", ".", "is64Bit", "(", ")", "&&", "VT", "==", "MVT", "::", "i64", ")", ")", "return", "SDValue", "(", ")", ";", "unsigned", "Lg2", "=", "Divisor", ".", "countTrailingZeros", "(", ")", ";", "if", "(", "Lg2", "==", "1", ")", "return", "SDValue", "(", ")", ";", "SDLoc", "DL", "(", "N", ")", ";", "SDValue", "N0", "=", "N", "->", "getOperand", "(", "0", ")", ";", "SDValue", "Zero", "=", "DAG", ".", "getConstant", "(", "0", ",", "DL", ",", "VT", ")", ";", "APInt", "Lg2Mask", "=", "APInt", "::", "getLowBitsSet", "(", "VT", ".", "getSizeInBits", "(", ")", ",", "Lg2", ")", ";", "SDValue", "Pow2MinusOne", "=", "DAG", ".", "getConstant", "(", "Lg2Mask", ",", "DL", ",", "VT", ")", ";", "SDValue", "Cmp", "=", "DAG", ".", "getSetCC", "(", "DL", ",", "MVT", "::", "i8", ",", "N0", ",", "Zero", ",", "ISD", "::", "SETLT", ")", ";", "SDValue", "Add", "=", "DAG", ".", "getNode", "(", "ISD", "::", "ADD", ",", "DL", ",", "VT", ",", "N0", ",", "Pow2MinusOne", ")", ";", "SDValue", "CMov", "=", "DAG", ".", "getNode", "(", "ISD", "::", "SELECT", ",", "DL", ",", "VT", ",", "Cmp", ",", "Add", ",", "N0", ")", ";", "Created", ".", "push_back", "(", "Cmp", ".", "getNode", "(", ")", ")", ";", "Created", ".", "push_back", "(", "Add", ".", "getNode", "(", ")", ")", ";", "Created", ".", "push_back", "(", "CMov", ".", "getNode", "(", ")", ")", ";", "SDValue", "SRA", "=", "DAG", ".", "getNode", "(", "ISD", "::", "SRA", ",", "DL", ",", "VT", ",", "CMov", ",", "DAG", ".", "getConstant", "(", "Lg2", ",", "DL", ",", "MVT", "::", "i8", ")", ")", ";", "if", "(", "Divisor", ".", "isNonNegative", "(", ")", ")", "return", "SRA", ";", "Created", ".", "push_back", "(", "SRA", ".", "getNode", "(", ")", ")", ";", "return", "DAG", ".", "getNode", "(", "ISD", "::", "SUB", ",", "DL", ",", "VT", ",", "Zero", ",", "SRA", ")", ";", "}", ""], "natrual_language": ["Targets", "may", "override", "this", "function", "to", "provide", "custom", "SDIV", "lowering", "for", "power-of-2", "denominators", "."], "TS_V_token": ["X86", "X86", "0", "0", "\"Unexpected divisor!\"", "0", "MVT::i16", "MVT::i32", "MVT::i64", "1", "0", "0", "MVT::i8", "ISD::SETLT", "ISD::ADD", "ISD::SELECT", "ISD::SRA", "MVT::i8", "ISD::SUB"], "File": "X86ISelLowering100", "Func": "BuildSDIVPow2", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1086, "Length": 393, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86InstrInfo", "::", "isLoadFromStackSlotPostFE", "(", "const", "MachineInstr", "&", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "if", "(", "isFrameLoadOpcode", "(", "MI", ".", "getOpcode", "(", ")", ")", ")", "{", "unsigned", "Reg", ";", "if", "(", "(", "Reg", "=", "isLoadFromStackSlot", "(", "MI", ",", "FrameIndex", ")", ")", ")", "return", "Reg", ";", "const", "MachineMemOperand", "*", "Dummy", ";", "return", "hasLoadFromStackSlot", "(", "MI", ",", "Dummy", ",", "FrameIndex", ")", ";", "}", "return", "0", ";", "}", ""], "natrual_language": ["isLoadFromStackSlotPostFE", "-", "Check", "for", "post-frame", "ptr", "elimination", "stack", "locations", "as", "well", "."], "TS_V_token": ["X86", "X86", "0"], "File": "X86InstrInfo (2)1", "Func": "isLoadFromStackSlotPostFE", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1087, "Length": 67, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "AArch64TargetLowering", "::", "PerformDAGCombine", "(", "SDNode", "*", "N", ",", "DAGCombinerInfo", "&", "DCI", ")", "const", "{", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "AND", ":", "return", "PerformANDCombine", "(", "N", ",", "DCI", ")", ";", "case", "ISD", "::", "ATOMIC_FENCE", ":", "return", "PerformATOMIC_FENCECombine", "(", "N", ",", "DCI", ")", ";", "case", "ISD", "::", "ATOMIC_STORE", ":", "return", "PerformATOMIC_STORECombine", "(", "N", ",", "DCI", ")", ";", "case", "ISD", "::", "OR", ":", "return", "PerformORCombine", "(", "N", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "SRA", ":", "return", "PerformSRACombine", "(", "N", ",", "DCI", ")", ";", "}", "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": ["AArch64", "AArch64", "ISD::AND", "ISD::ATOMIC_FENCE", "ISD::ATOMIC_STORE", "ISD::OR", "ISD::SRA"], "File": "AArch64ISelLowering160", "Func": "PerformDAGCombine", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1088, "Length": 102, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "aarch64_split_simd_combine", "(", "rtx", "dst", ",", "rtx", "src1", ",", "rtx", "src2", ")", "{", "machine_mode", "src_mode", "=", "GET_MODE", "(", "src1", ")", ";", "machine_mode", "dst_mode", "=", "GET_MODE", "(", "dst", ")", ";", "gcc_assert", "(", "VECTOR_MODE_P", "(", "dst_mode", ")", ")", ";", "if", "(", "REG_P", "(", "dst", ")", "&&", "REG_P", "(", "src1", ")", "&&", "REG_P", "(", "src2", ")", ")", "{", "rtx", "(", "*", "gen", ")", "(", "rtx", ",", "rtx", ",", "rtx", ")", ";", "switch", "(", "src_mode", ")", "{", "case", "V8QImode", ":", "gen", "=", "gen_aarch64_simd_combinev8qi", ";", "break", ";", "case", "V4HImode", ":", "gen", "=", "gen_aarch64_simd_combinev4hi", ";", "break", ";", "case", "V2SImode", ":", "gen", "=", "gen_aarch64_simd_combinev2si", ";", "break", ";", "case", "V2SFmode", ":", "gen", "=", "gen_aarch64_simd_combinev2sf", ";", "break", ";", "case", "DImode", ":", "gen", "=", "gen_aarch64_simd_combinedi", ";", "break", ";", "case", "DFmode", ":", "gen", "=", "gen_aarch64_simd_combinedf", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "emit_insn", "(", "gen", "(", "dst", ",", "src1", ",", "src2", ")", ")", ";", "return", ";", "}", "}", ""], "natrual_language": ["Split", "a", "complex", "SIMD", "combine", "."], "TS_V_token": ["aarch64"], "File": "aarch642", "Func": "aarch64_split_simd_combine", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1089, "Length": 150, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "X86DCFunction", "&", "getParent", "(", ")", "{", "return", "static_cast", "<", "X86DCFunction", "&", ">", "(", "DCBasicBlock", "::", "getParent", "(", ")", ")", ";", "}", ""], "natrual_language": ["getParent", "-", "Return", "the", "last", "analyzed", "interval", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86DCBasicBlock", "Func": "getParent", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1090, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "ARMBaseRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "Reserved", ".", "set", "(", "ARM", "::", "SP", ")", ";", "Reserved", ".", "set", "(", "ARM", "::", "PC", ")", ";", "Reserved", ".", "set", "(", "ARM", "::", "FPSCR", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "Reserved", ".", "set", "(", "FramePtr", ")", ";", "if", "(", "hasBasePointer", "(", "MF", ")", ")", "Reserved", ".", "set", "(", "BasePtr", ")", ";", "if", "(", "STI", ".", "isR9Reserved", "(", ")", ")", "Reserved", ".", "set", "(", "ARM", "::", "R9", ")", ";", "if", "(", "!", "STI", ".", "hasVFP3", "(", ")", "||", "STI", ".", "hasD16", "(", ")", ")", "{", "assert", "(", "ARM", "::", "D31", "==", "ARM", "::", "D16", "+", "15", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "16", ";", "++", "i", ")", "Reserved", ".", "set", "(", "ARM", "::", "D16", "+", "i", ")", ";", "}", "const", "TargetRegisterClass", "*", "RC", "=", "&", "ARM", "::", "GPRPairRegClass", ";", "for", "(", "TargetRegisterClass", "::", "iterator", "I", "=", "RC", "->", "begin", "(", ")", ",", "E", "=", "RC", "->", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "for", "(", "MCSubRegIterator", "SI", "(", "*", "I", ",", "this", ")", ";", "SI", ".", "isValid", "(", ")", ";", "++", "SI", ")", "if", "(", "Reserved", ".", "test", "(", "*", "SI", ")", ")", "Reserved", ".", "set", "(", "*", "I", ")", ";", "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": ["ARM", "ARM", "ARM::SP", "ARM::PC", "ARM::FPSCR", "ARM::R9", "ARM::D31", "ARM::D16", "15", "0", "16", "ARM::D16", "ARM::GPRPairRegClass"], "File": "ARMBaseRegisterInfo21", "Func": "getReservedRegs", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1091, "Length": 244, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "extract_base_offset_in_addr", "(", "rtx", "mem", ",", "rtx", "*", "base", ",", "rtx", "*", "offset", ")", "{", "rtx", "addr", ";", "gcc_assert", "(", "MEM_P", "(", "mem", ")", ")", ";", "addr", "=", "XEXP", "(", "mem", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "addr", ")", "==", "CONST", ")", "addr", "=", "XEXP", "(", "addr", ",", "0", ")", ";", "if", "(", "REG_P", "(", "addr", ")", ")", "{", "*", "base", "=", "addr", ";", "*", "offset", "=", "const0_rtx", ";", "return", "true", ";", "}", "if", "(", "GET_CODE", "(", "addr", ")", "==", "PLUS", "&&", "GET_CODE", "(", "XEXP", "(", "addr", ",", "0", ")", ")", "==", "REG", "&&", "CONST_INT_P", "(", "XEXP", "(", "addr", ",", "1", ")", ")", ")", "{", "*", "base", "=", "XEXP", "(", "addr", ",", "0", ")", ";", "*", "offset", "=", "XEXP", "(", "addr", ",", "1", ")", ";", "return", "true", ";", "}", "*", "base", "=", "NULL_RTX", ";", "*", "offset", "=", "NULL_RTX", ";", "return", "false", ";", "}", ""], "natrual_language": ["If", "MEM", "is", "in", "the", "form", "of", "``", "base+offset", "''", ",", "extract", "the", "two", "parts", "of", "address", "and", "set", "to", "BASE", "and", "OFFSET", ",", "otherwise", "return", "false", "after", "clearing", "BASE", "and", "OFFSET", "."], "TS_V_token": ["arm", "0", "0", "0", "1", "0", "1"], "File": "arm", "Func": "extract_base_offset_in_addr", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1092, "Length": 146, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ScheduleHazardRecognizer", "*", "ARMBaseInstrInfo", "::", "CreateTargetPostRAHazardRecognizer", "(", "const", "InstrItineraryData", "*", "II", ",", "const", "ScheduleDAG", "*", "DAG", ")", "const", "{", "MultiHazardRecognizer", "*", "MHR", "=", "new", "MultiHazardRecognizer", "(", ")", ";", "if", "(", "Subtarget", ".", "isThumb2", "(", ")", "||", "Subtarget", ".", "hasVFP2Base", "(", ")", ")", "MHR", "->", "AddHazardRecognizer", "(", "std", "::", "make_unique", "<", "ARMHazardRecognizerFPMLx", ">", "(", ")", ")", ";", "auto", "BHR", "=", "TargetInstrInfo", "::", "CreateTargetPostRAHazardRecognizer", "(", "II", ",", "DAG", ")", ";", "if", "(", "BHR", ")", "MHR", "->", "AddHazardRecognizer", "(", "std", "::", "unique_ptr", "<", "ScheduleHazardRecognizer", ">", "(", "BHR", ")", ")", ";", "return", "MHR", ";", "}", ""], "natrual_language": ["Allocate", "and", "return", "a", "hazard", "recognizer", "to", "use", "for", "by", "non-scheduling", "passes", "."], "TS_V_token": ["ARM", "ARM", "ARM"], "File": "ARMBaseInstrInfo110", "Func": "CreateTargetPostRAHazardRecognizer", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1093, "Length": 90, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "ARMSubtarget", "*", "getSubtargetImpl", "(", ")", "const", "{", "return", "&", "Subtarget", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMTargetMachine", "Func": "getSubtargetImpl", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1094, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "uint16_t", "name", "(", "struct", "InternalInstruction", "*", "insn", ",", "OperandType", "type", ",", "\\", "uint8_t", "index", ",", "uint8_t", "*", "valid", ")", "{", "\\", "*", "valid", "=", "1", ";", "\\", "switch", "(", "type", ")", "{", "\\", "default", ":", "\\", "debug", "(", "\"Unhandled register type\"", ")", ";", "\\", "*", "valid", "=", "0", ";", "\\", "return", "0", ";", "\\", "case", "TYPE_Rv", ":", "\\", "return", "base", "+", "index", ";", "\\", "case", "TYPE_R8", ":", "\\", "index", "&=", "mask", ";", "\\", "if", "(", "index", ">", "0xf", ")", "\\", "*", "valid", "=", "0", ";", "\\", "if", "(", "insn", "->", "rexPrefix", "&&", "index", ">=", "4", "&&", "index", "<=", "7", ")", "{", "\\", "return", "prefix", "##", "_SPL", "+", "(", "index", "-", "4", ")", ";", "\\", "}", "else", "{", "\\", "return", "prefix", "##", "_AL", "+", "index", ";", "\\", "}", "\\", "case", "TYPE_R16", ":", "\\", "index", "&=", "mask", ";", "\\", "if", "(", "index", ">", "0xf", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_AX", "+", "index", ";", "\\", "case", "TYPE_R32", ":", "\\", "index", "&=", "mask", ";", "\\", "if", "(", "index", ">", "0xf", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_EAX", "+", "index", ";", "\\", "case", "TYPE_R64", ":", "\\", "index", "&=", "mask", ";", "\\", "if", "(", "index", ">", "0xf", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_RAX", "+", "index", ";", "\\", "case", "TYPE_ZMM", ":", "\\", "return", "prefix", "##", "_ZMM0", "+", "index", ";", "\\", "case", "TYPE_YMM", ":", "\\", "return", "prefix", "##", "_YMM0", "+", "index", ";", "\\", "case", "TYPE_XMM", ":", "\\", "return", "prefix", "##", "_XMM0", "+", "index", ";", "\\", "case", "TYPE_VK", ":", "\\", "index", "&=", "0xf", ";", "\\", "if", "(", "index", ">", "7", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_K0", "+", "index", ";", "\\", "case", "TYPE_VK_PAIR", ":", "\\", "if", "(", "index", ">", "7", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_K0_K1", "+", "(", "index", "/", "2", ")", ";", "\\", "case", "TYPE_MM64", ":", "\\", "return", "prefix", "##", "_MM0", "+", "(", "index", "&", "0x7", ")", ";", "\\", "case", "TYPE_SEGMENTREG", ":", "\\", "if", "(", "(", "index", "&", "7", ")", ">", "5", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_ES", "+", "(", "index", "&", "7", ")", ";", "\\", "case", "TYPE_DEBUGREG", ":", "\\", "return", "prefix", "##", "_DR0", "+", "index", ";", "\\", "case", "TYPE_CONTROLREG", ":", "\\", "return", "prefix", "##", "_CR0", "+", "index", ";", "\\", "case", "TYPE_BNDR", ":", "\\", "if", "(", "index", ">", "3", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_BND0", "+", "index", ";", "\\", "case", "TYPE_MVSIBX", ":", "\\", "return", "prefix", "##", "_XMM0", "+", "index", ";", "\\", "case", "TYPE_MVSIBY", ":", "\\", "return", "prefix", "##", "_YMM0", "+", "index", ";", "\\", "case", "TYPE_MVSIBZ", ":", "\\", "return", "prefix", "##", "_ZMM0", "+", "index", ";", "\\", "}", "\\", "}", ""], "natrual_language": ["Gets", "the", "name", "of", "the", "pass", "we", "are", "mixed", "into", "."], "TS_V_token": ["X86", "1", "\"Unhandled register type\"", "0", "0", "0xf", "0", "4", "7", "4", "0xf", "0", "0xf", "0", "0xf", "0", "0xf", "7", "0", "7", "0", "2", "0x7", "7", "5", "0", "7", "3", "0"], "File": "X86Disassembler33", "Func": "name", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1095, "Length": 449, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getFirstDomain", "(", ")", "const", "{", "return", "CountTrailingZeros_32", "(", "AvailableDomains", ")", ";", "}", ""], "natrual_language": ["First", "domain", "available", "."], "TS_V_token": ["X86"], "File": "SSEDomainFix", "Func": "getFirstDomain", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1096, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseRegisterInfo", "::", "canRealignStack", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "MachineRegisterInfo", "*", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "const", "ARMFunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "if", "(", "MF", ".", "getFunction", "(", ")", "->", "hasFnAttribute", "(", "\"no-realign-stack\"", ")", ")", "return", "false", ";", "if", "(", "AFI", "->", "isThumb1OnlyFunction", "(", ")", ")", "return", "false", ";", "if", "(", "!", "MRI", "->", "canReserveReg", "(", "getFramePointerReg", "(", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ")", ")", ")", "return", "false", ";", "if", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getFrameLowering", "(", ")", "->", "hasReservedCallFrame", "(", "MF", ")", ")", "return", "true", ";", "return", "MRI", "->", "canReserveReg", "(", "BasePtr", ")", ";", "}", ""], "natrual_language": ["True", "if", "the", "stack", "can", "be", "realigned", "for", "the", "target", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "\"no-realign-stack\"", "ARM"], "File": "ARMBaseRegisterInfo22", "Func": "canRealignStack", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1097, "Length": 117, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsSEInstrInfo", "::", "loadImmediate", "(", "int64_t", "Imm", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "II", ",", "const", "DebugLoc", "&", "DL", ",", "unsigned", "*", "NewImm", ")", "const", "{", "MipsAnalyzeImmediate", "AnalyzeImm", ";", "const", "MipsSubtarget", "&", "STI", "=", "Subtarget", ";", "MachineRegisterInfo", "&", "RegInfo", "=", "MBB", ".", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "unsigned", "Size", "=", "STI", ".", "isABI_N64", "(", ")", "?", "64", ":", "32", ";", "unsigned", "LUi", "=", "STI", ".", "isABI_N64", "(", ")", "?", "Mips", "::", "LUi64", ":", "Mips", "::", "LUi", ";", "unsigned", "ZEROReg", "=", "STI", ".", "isABI_N64", "(", ")", "?", "Mips", "::", "ZERO_64", ":", "Mips", "::", "ZERO", ";", "const", "TargetRegisterClass", "*", "RC", "=", "STI", ".", "isABI_N64", "(", ")", "?", "&", "Mips", "::", "GPR64RegClass", ":", "&", "Mips", "::", "GPR32RegClass", ";", "bool", "LastInstrIsADDiu", "=", "NewImm", ";", "const", "MipsAnalyzeImmediate", "::", "InstSeq", "&", "Seq", "=", "AnalyzeImm", ".", "Analyze", "(", "Imm", ",", "Size", ",", "LastInstrIsADDiu", ")", ";", "MipsAnalyzeImmediate", "::", "InstSeq", "::", "const_iterator", "Inst", "=", "Seq", ".", "begin", "(", ")", ";", "assert", "(", "Seq", ".", "size", "(", ")", "&&", "(", "!", "LastInstrIsADDiu", "||", "(", "Seq", ".", "size", "(", ")", ">", "1", ")", ")", ")", ";", "unsigned", "Reg", "=", "RegInfo", ".", "createVirtualRegister", "(", "RC", ")", ";", "if", "(", "Inst", "->", "Opc", "==", "LUi", ")", "BuildMI", "(", "MBB", ",", "II", ",", "DL", ",", "get", "(", "LUi", ")", ",", "Reg", ")", ".", "addImm", "(", "SignExtend64", "<", "16", ">", "(", "Inst", "->", "ImmOpnd", ")", ")", ";", "else", "BuildMI", "(", "MBB", ",", "II", ",", "DL", ",", "get", "(", "Inst", "->", "Opc", ")", ",", "Reg", ")", ".", "addReg", "(", "ZEROReg", ")", ".", "addImm", "(", "SignExtend64", "<", "16", ">", "(", "Inst", "->", "ImmOpnd", ")", ")", ";", "for", "(", "++", "Inst", ";", "Inst", "!=", "Seq", ".", "end", "(", ")", "-", "LastInstrIsADDiu", ";", "++", "Inst", ")", "BuildMI", "(", "MBB", ",", "II", ",", "DL", ",", "get", "(", "Inst", "->", "Opc", ")", ",", "Reg", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Kill", ")", ".", "addImm", "(", "SignExtend64", "<", "16", ">", "(", "Inst", "->", "ImmOpnd", ")", ")", ";", "if", "(", "LastInstrIsADDiu", ")", "*", "NewImm", "=", "Inst", "->", "ImmOpnd", ";", "return", "Reg", ";", "}", ""], "natrual_language": ["Emit", "a", "series", "of", "instructions", "to", "load", "an", "immediate", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "64", "32", "Mips::LUi64", "Mips::LUi", "Mips::ZERO_64", "Mips::ZERO", "Mips::GPR64RegClass", "Mips::GPR32RegClass", "Mips", "Mips", "1", "16", "16", "16"], "File": "MipsSEInstrInfo10", "Func": "loadImmediate", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1098, "Length": 337, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "O", ",", "StringRef", "Annot", ")", "{", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "Mips", "::", "RDHWR", ":", "case", "Mips", "::", "RDHWR64", ":", "O", "<<", "\"\\t.set\\tpush\\n\"", ";", "O", "<<", "\"\\t.set\\tmips32r2\\n\"", ";", "}", "if", "(", "!", "printAliasInstr", "(", "MI", ",", "O", ")", ")", "printInstruction", "(", "MI", ",", "O", ")", ";", "printAnnotation", "(", "O", ",", "Annot", ")", ";", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "Mips", "::", "RDHWR", ":", "case", "Mips", "::", "RDHWR64", ":", "O", "<<", "\"\\n\\t.set\\tpop\"", ";", "}", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["Mips", "Mips", "Mips::RDHWR", "Mips::RDHWR64", "\"\\t.set\\tpush\\n\"", "\"\\t.set\\tmips32r2\\n\"", "Mips::RDHWR", "Mips::RDHWR64", "\"\\n\\t.set\\tpop\""], "File": "MipsInstPrinter38", "Func": "printInst", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1099, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "char", "*", "arm_invalid_return_type", "(", "const_tree", "t", ")", "{", "if", "(", "SCALAR_FLOAT_TYPE_P", "(", "t", ")", "&&", "TYPE_PRECISION", "(", "t", ")", "==", "16", ")", "return", "N_", "(", "\"functions cannot return __fp16 type\"", ")", ";", "return", "NULL", ";", "}", ""], "natrual_language": ["Implement", "TARGET_INVALID_PARAMETER_TYPE", "."], "TS_V_token": ["arm", "16", "\"functions cannot return __fp16 type\""], "File": "arm4", "Func": "arm_invalid_return_type", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1100, "Length": 34, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getNumRegisters", "(", "LLVMContext", "&", "Context", ",", "EVT", "VT", ",", "Optional", "<", "MVT", ">", "RegisterVT", ")", "const", "override", "{", "if", "(", "VT", "==", "MVT", "::", "i128", "&&", "RegisterVT", ".", "hasValue", "(", ")", "&&", "RegisterVT", ".", "getValue", "(", ")", "==", "MVT", "::", "Untyped", ")", "return", "1", ";", "return", "TargetLowering", "::", "getNumRegisters", "(", "Context", ",", "VT", ")", ";", "}", ""], "natrual_language": ["Return", "the", "number", "of", "registers", "that", "this", "ValueType", "will", "eventually", "require", "."], "TS_V_token": ["SystemZ", "MVT::i128", "MVT::Untyped", "1"], "File": "SystemZISelLowering18", "Func": "getNumRegisters", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1101, "Length": 57, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "SDValue", "getTargetNode", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ",", "unsigned", "Flag", ")", "{", "EVT", "Ty", "=", "Op", ".", "getValueType", "(", ")", ";", "if", "(", "GlobalAddressSDNode", "*", "N", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "Op", ")", ")", "return", "DAG", ".", "getTargetGlobalAddress", "(", "N", "->", "getGlobal", "(", ")", ",", "Op", ".", "getDebugLoc", "(", ")", ",", "Ty", ",", "0", ",", "Flag", ")", ";", "if", "(", "ExternalSymbolSDNode", "*", "N", "=", "dyn_cast", "<", "ExternalSymbolSDNode", ">", "(", "Op", ")", ")", "return", "DAG", ".", "getTargetExternalSymbol", "(", "N", "->", "getSymbol", "(", ")", ",", "Ty", ",", "Flag", ")", ";", "if", "(", "BlockAddressSDNode", "*", "N", "=", "dyn_cast", "<", "BlockAddressSDNode", ">", "(", "Op", ")", ")", "return", "DAG", ".", "getTargetBlockAddress", "(", "N", "->", "getBlockAddress", "(", ")", ",", "Ty", ",", "0", ",", "Flag", ")", ";", "if", "(", "JumpTableSDNode", "*", "N", "=", "dyn_cast", "<", "JumpTableSDNode", ">", "(", "Op", ")", ")", "return", "DAG", ".", "getTargetJumpTable", "(", "N", "->", "getIndex", "(", ")", ",", "Ty", ",", "Flag", ")", ";", "if", "(", "ConstantPoolSDNode", "*", "N", "=", "dyn_cast", "<", "ConstantPoolSDNode", ">", "(", "Op", ")", ")", "return", "DAG", ".", "getTargetConstantPool", "(", "N", "->", "getConstVal", "(", ")", ",", "Ty", ",", "N", "->", "getAlignment", "(", ")", ",", "N", "->", "getOffset", "(", ")", ",", "Flag", ")", ";", "llvm_unreachable", "(", "\"Unexpected node type.\"", ")", ";", "return", "SDValue", "(", ")", ";", "}", ""], "natrual_language": ["Retrieve", "the", "target", "node", "this", "edge", "connects", "to", "."], "TS_V_token": ["Cpu0", "0", "0", "\"Unexpected node type.\""], "File": "Cpu0ISelLowering1", "Func": "getTargetNode", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1102, "Length": 207, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rbt_left_rotate", "(", "struct", "rbt_strings", "*", "t", ",", "struct", "rbt_string_node", "*", "node", ")", "{", "struct", "rbt_string_node", "*", "right", "=", "node", "->", "right", ";", "assert", "(", "right", ")", ";", "node", "->", "right", "=", "right", "->", "left", ";", "if", "(", "right", "->", "left", "!=", "t", "->", "rbt_nil", ")", "right", "->", "left", "->", "par", "=", "node", ";", "right", "->", "par", "=", "node", "->", "par", ";", "if", "(", "node", "->", "par", "==", "t", "->", "rbt_nil", ")", "t", "->", "rbt_root", "=", "right", ";", "else", "if", "(", "node", "==", "node", "->", "par", "->", "left", ")", "node", "->", "par", "->", "left", "=", "right", ";", "else", "node", "->", "par", "->", "right", "=", "right", ";", "right", "->", "left", "=", "node", ";", "node", "->", "par", "=", "right", ";", "}", ""], "natrual_language": ["Perform", "a", "left-rotate", "operation", "on", "NODE", "in", "the", "red-black", "tree", "."], "TS_V_token": ["rs6000"], "File": "rbtree", "Func": "rbt_left_rotate", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1103, "Length": 120, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mips_cfun_has_cprestore_slot_p", "(", "void", ")", "{", "return", "(", "cfun", "->", "machine", "->", "global_pointer", "!=", "INVALID_REGNUM", "&&", "cfun", "->", "machine", "->", "frame", ".", "cprestore_size", ">", "0", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "current", "function", "has", "a", "cprestore", "slot", "."], "TS_V_token": ["mips", "0"], "File": "mips", "Func": "mips_cfun_has_cprestore_slot_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1104, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsTargetLowering", "::", "getNumRegistersForCallingConv", "(", "LLVMContext", "&", "Context", ",", "EVT", "VT", ")", "const", "{", "if", "(", "VT", ".", "isVector", "(", ")", ")", "return", "std", "::", "max", "(", "(", "VT", ".", "getSizeInBits", "(", ")", "/", "(", "Subtarget", ".", "isABI_O32", "(", ")", "?", "32", ":", "64", ")", ")", ",", "1U", ")", ";", "return", "MipsTargetLowering", "::", "getNumRegisters", "(", "Context", ",", "VT", ")", ";", "}", ""], "natrual_language": ["Certain", "targets", "require", "unusual", "breakdowns", "of", "certain", "types", "."], "TS_V_token": ["Mips", "Mips", "32", "64", "1U", "Mips"], "File": "MipsISelLowering10", "Func": "getNumRegistersForCallingConv", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1105, "Length": 61, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ArrayRef", "<", "std", "::", "pair", "<", "unsigned", ",", "const", "char", "*", ">>", "MipsInstrInfo", "::", "getSerializableDirectMachineOperandTargetFlags", "(", ")", "const", "{", "using", "namespace", "MipsII", ";", "static", "const", "std", "::", "pair", "<", "unsigned", ",", "const", "char", "*", ">", "Flags", "[", "]", "=", "{", "{", "MO_GOT", ",", "\"mips-got\"", "}", ",", "{", "MO_GOT_CALL", ",", "\"mips-got-call\"", "}", ",", "{", "MO_GPREL", ",", "\"mips-gprel\"", "}", ",", "{", "MO_ABS_HI", ",", "\"mips-abs-hi\"", "}", ",", "{", "MO_ABS_LO", ",", "\"mips-abs-lo\"", "}", ",", "{", "MO_TLSGD", ",", "\"mips-tlsgd\"", "}", ",", "{", "MO_TLSLDM", ",", "\"mips-tlsldm\"", "}", ",", "{", "MO_DTPREL_HI", ",", "\"mips-dtprel-hi\"", "}", ",", "{", "MO_DTPREL_LO", ",", "\"mips-dtprel-lo\"", "}", ",", "{", "MO_GOTTPREL", ",", "\"mips-gottprel\"", "}", ",", "{", "MO_TPREL_HI", ",", "\"mips-tprel-hi\"", "}", ",", "{", "MO_TPREL_LO", ",", "\"mips-tprel-lo\"", "}", ",", "{", "MO_GPOFF_HI", ",", "\"mips-gpoff-hi\"", "}", ",", "{", "MO_GPOFF_LO", ",", "\"mips-gpoff-lo\"", "}", ",", "{", "MO_GOT_DISP", ",", "\"mips-got-disp\"", "}", ",", "{", "MO_GOT_PAGE", ",", "\"mips-got-page\"", "}", ",", "{", "MO_GOT_OFST", ",", "\"mips-got-ofst\"", "}", ",", "{", "MO_HIGHER", ",", "\"mips-higher\"", "}", ",", "{", "MO_HIGHEST", ",", "\"mips-highest\"", "}", ",", "{", "MO_GOT_HI16", ",", "\"mips-got-hi16\"", "}", ",", "{", "MO_GOT_LO16", ",", "\"mips-got-lo16\"", "}", ",", "{", "MO_CALL_HI16", ",", "\"mips-call-hi16\"", "}", ",", "{", "MO_CALL_LO16", ",", "\"mips-call-lo16\"", "}", ",", "{", "MO_JALR", ",", "\"mips-jalr\"", "}", "}", ";", "return", "makeArrayRef", "(", "Flags", ")", ";", "}", ""], "natrual_language": ["Return", "an", "array", "that", "contains", "the", "direct", "target", "flag", "values", "and", "their", "names", "."], "TS_V_token": ["Mips", "Mips", "Mips", "\"mips-got\"", "\"mips-got-call\"", "\"mips-gprel\"", "\"mips-abs-hi\"", "\"mips-abs-lo\"", "\"mips-tlsgd\"", "\"mips-tlsldm\"", "\"mips-dtprel-hi\"", "\"mips-dtprel-lo\"", "\"mips-gottprel\"", "\"mips-tprel-hi\"", "\"mips-tprel-lo\"", "\"mips-gpoff-hi\"", "\"mips-gpoff-lo\"", "\"mips-got-disp\"", "\"mips-got-page\"", "\"mips-got-ofst\"", "\"mips-higher\"", "\"mips-highest\"", "\"mips-got-hi16\"", "\"mips-got-lo16\"", "\"mips-call-hi16\"", "\"mips-call-lo16\"", "\"mips-jalr\""], "File": "MipsInstrInfo (2)3", "Func": "getSerializableDirectMachineOperandTargetFlags", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1106, "Length": 192, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLoweringObjectFile", "*", "getObjFileLowering", "(", ")", "const", "override", "{", "return", "TLOF", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["Return", "information", "about", "object", "file", "lowering", "."], "TS_V_token": ["LoongArch"], "File": "LoongArchTargetMachine", "Func": "getObjFileLowering", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1107, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseTargetMachine", "::", "addPreISel", "(", "PassManagerBase", "&", "PM", ",", "CodeGenOpt", "::", "Level", "OptLevel", ")", "{", "if", "(", "OptLevel", "!=", "CodeGenOpt", "::", "None", "&&", "EnableGlobalMerge", ")", "PM", ".", "add", "(", "createGlobalMergePass", "(", "getTargetLowering", "(", ")", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["{", "{", "@", "For", "GlobalISel"], "TS_V_token": ["ARM", "ARM"], "File": "ARMTargetMachine94", "Func": "addPreISel", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1108, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SparcTargetLowering", "::", "IsEligibleForTailCallOptimization", "(", "CCState", "&", "CCInfo", ",", "CallLoweringInfo", "&", "CLI", ",", "MachineFunction", "&", "MF", ")", "const", "{", "auto", "&", "Outs", "=", "CLI", ".", "Outs", ";", "auto", "&", "Caller", "=", "MF", ".", "getFunction", "(", ")", ";", "if", "(", "Caller", ".", "getFnAttribute", "(", "\"disable-tail-calls\"", ")", ".", "getValueAsString", "(", ")", "==", "\"true\"", ")", "return", "false", ";", "if", "(", "CCInfo", ".", "getNextStackOffset", "(", ")", "!=", "0", ")", "return", "false", ";", "if", "(", "!", "Outs", ".", "empty", "(", ")", "&&", "Caller", ".", "hasStructRetAttr", "(", ")", "!=", "Outs", "[", "0", "]", ".", "Flags", ".", "isSRet", "(", ")", ")", "return", "false", ";", "for", "(", "auto", "&", "Arg", ":", "Outs", ")", "if", "(", "Arg", ".", "Flags", ".", "isByVal", "(", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["IsEligibleForTailCallOptimization", "-", "Check", "whether", "the", "call", "is", "eligible", "for", "tail", "call", "optimization", "."], "TS_V_token": ["Sparc", "Sparc", "\"disable-tail-calls\"", "\"true\"", "0", "0"], "File": "SparcISelLowering45", "Func": "IsEligibleForTailCallOptimization", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1109, "Length": 122, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64TargetLowering", "::", "isExtractSubvectorCheap", "(", "EVT", "ResVT", ",", "EVT", "SrcVT", ",", "unsigned", "Index", ")", "const", "{", "if", "(", "!", "isOperationLegalOrCustom", "(", "ISD", "::", "EXTRACT_SUBVECTOR", ",", "ResVT", ")", ")", "return", "false", ";", "return", "(", "Index", "==", "0", "||", "Index", "==", "ResVT", ".", "getVectorNumElements", "(", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "EXTRACT_SUBVECTOR", "is", "cheap", "for", "this", "result", "type", "with", "this", "index", "."], "TS_V_token": ["AArch64", "AArch64", "ISD::EXTRACT_SUBVECTOR", "0"], "File": "AArch64ISelLowering (2)2", "Func": "isExtractSubvectorCheap", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1110, "Length": 47, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "KudeyarPassConfig", "::", "addInstSelector", "(", ")", "{", "addPass", "(", "createKudeyarISelDag", "(", "getKudeyarTargetMachine", "(", ")", ",", "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": ["Kudeyar", "Kudeyar", "Kudeyar", "Kudeyar"], "File": "KudeyarTargetMachine", "Func": "addInstSelector", "Target": "Kudeyar", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1111, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "inline", "static", "rtx_insn", "*", "emit_set_insn", "(", "rtx", "x", ",", "rtx", "y", ")", "{", "return", "emit_insn", "(", "gen_rtx_SET", "(", "x", ",", "y", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "an", "insn", "that", "'s", "a", "simple", "single-set", ".", "Both", "the", "operands", "must", "be", "known", "to", "be", "valid", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "emit_set_insn", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1112, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "assign_386_stack_local", "(", "machine_mode", "mode", ",", "enum", "ix86_stack_slot", "n", ")", "{", "struct", "stack_local_entry", "*", "s", ";", "gcc_assert", "(", "n", "<", "MAX_386_STACK_LOCALS", ")", ";", "for", "(", "s", "=", "ix86_stack_locals", ";", "s", ";", "s", "=", "s", "->", "next", ")", "if", "(", "s", "->", "mode", "==", "mode", "&&", "s", "->", "n", "==", "n", ")", "return", "validize_mem", "(", "copy_rtx", "(", "s", "->", "rtl", ")", ")", ";", "s", "=", "ggc_alloc", "<", "stack_local_entry", ">", "(", ")", ";", "s", "->", "n", "=", "n", ";", "s", "->", "mode", "=", "mode", ";", "s", "->", "rtl", "=", "assign_stack_local", "(", "mode", ",", "GET_MODE_SIZE", "(", "mode", ")", ",", "0", ")", ";", "s", "->", "next", "=", "ix86_stack_locals", ";", "ix86_stack_locals", "=", "s", ";", "return", "validize_mem", "(", "copy_rtx", "(", "s", "->", "rtl", ")", ")", ";", "}", ""], "natrual_language": ["Return", "a", "MEM", "corresponding", "to", "a", "stack", "slot", "with", "mode", "MODE", ".", "Allocate", "a", "new", "slot", "if", "necessary", ".", "The", "RTL", "for", "a", "function", "can", "have", "several", "slots", "available", ":", "N", "is", "which", "slot", "to", "use", "."], "TS_V_token": ["i386", "0"], "File": "i386", "Func": "assign_386_stack_local", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1113, "Length": 121, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "SystemZHazardRecognizer", "::", "groupingCost", "(", "SUnit", "*", "SU", ")", "const", "{", "const", "MCSchedClassDesc", "*", "SC", "=", "getSchedClass", "(", "SU", ")", ";", "if", "(", "!", "SC", "->", "isValid", "(", ")", ")", "return", "0", ";", "if", "(", "SC", "->", "BeginGroup", ")", "{", "if", "(", "CurrGroupSize", ")", "return", "3", "-", "CurrGroupSize", ";", "return", "-", "1", ";", "}", "if", "(", "SC", "->", "EndGroup", ")", "{", "unsigned", "resultingGroupSize", "=", "(", "CurrGroupSize", "+", "getNumDecoderSlots", "(", "SU", ")", ")", ";", "if", "(", "resultingGroupSize", "<", "3", ")", "return", "(", "3", "-", "resultingGroupSize", ")", ";", "return", "-", "1", ";", "}", "if", "(", "CurrGroupSize", "==", "2", "&&", "has4RegOps", "(", "SU", "->", "getInstr", "(", ")", ")", ")", "return", "1", ";", "return", "0", ";", "}", ""], "natrual_language": ["Return", "the", "cost", "of", "decoder", "grouping", "for", "SU", "."], "TS_V_token": ["SystemZ", "SystemZ", "0", "3", "1", "3", "3", "1", "2", "1", "0"], "File": "SystemZHazardRecognizer", "Func": "groupingCost", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1114, "Length": 113, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "AArch64RegisterInfo", "::", "getCallPreservedMask", "(", "CallingConv", "::", "ID", ")", "const", "{", "return", "CSR_PCS_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64RegisterInfo20", "Func": "getCallPreservedMask", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1115, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ix86_builtin_vectorization_cost", "(", "enum", "vect_cost_for_stmt", "type_of_cost", ",", "tree", "vectype", ",", "int", ")", "{", "switch", "(", "type_of_cost", ")", "{", "case", "scalar_stmt", ":", "return", "ix86_cost", "->", "scalar_stmt_cost", ";", "case", "scalar_load", ":", "return", "ix86_cost", "->", "scalar_load_cost", ";", "case", "scalar_store", ":", "return", "ix86_cost", "->", "scalar_store_cost", ";", "case", "vector_stmt", ":", "return", "ix86_cost", "->", "vec_stmt_cost", ";", "case", "vector_load", ":", "return", "ix86_cost", "->", "vec_align_load_cost", ";", "case", "vector_store", ":", "return", "ix86_cost", "->", "vec_store_cost", ";", "case", "vec_to_scalar", ":", "return", "ix86_cost", "->", "vec_to_scalar_cost", ";", "case", "scalar_to_vec", ":", "return", "ix86_cost", "->", "scalar_to_vec_cost", ";", "case", "unaligned_load", ":", "case", "unaligned_store", ":", "return", "ix86_cost", "->", "vec_unalign_load_cost", ";", "case", "cond_branch_taken", ":", "return", "ix86_cost", "->", "cond_taken_branch_cost", ";", "case", "cond_branch_not_taken", ":", "return", "ix86_cost", "->", "cond_not_taken_branch_cost", ";", "case", "vec_perm", ":", "case", "vec_promote_demote", ":", "return", "ix86_cost", "->", "vec_stmt_cost", ";", "case", "vec_construct", ":", "return", "ix86_cost", "->", "vec_stmt_cost", "*", "(", "TYPE_VECTOR_SUBPARTS", "(", "vectype", ")", "-", "1", ")", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Implement", "targetm.vectorize.builtin_vectorization_cost", "."], "TS_V_token": ["i386", "1"], "File": "i3866", "Func": "ix86_builtin_vectorization_cost", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1116, "Length": 146, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMPassConfig", "::", "addPreRegAlloc", "(", ")", "{", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createARMLoadStoreOptimizationPass", "(", "true", ")", ")", ";", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "getARMSubtarget", "(", ")", ".", "isCortexA9", "(", ")", ")", "addPass", "(", "createMLxExpansionPass", "(", ")", ")", ";", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "getARMSubtarget", "(", ")", ".", "isCortexA15", "(", ")", "&&", "getARMSubtarget", "(", ")", ".", "hasNEON", "(", ")", "&&", "!", "DisableA15SDOptimization", ")", "{", "addPass", "(", "createA15SDOptimizerPass", "(", ")", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "register", "allocation", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM"], "File": "ARMTargetMachine25", "Func": "addPreRegAlloc", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1117, "Length": 89, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Thumb2InstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ")", "const", "{", "DebugLoc", "DL", "=", "DebugLoc", "::", "getUnknownLoc", "(", ")", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "RC", "==", "ARM", "::", "GPRRegisterClass", ")", "{", "AddDefaultPred", "(", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "t2STRi12", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ")", ";", "return", ";", "}", "ARMBaseInstrInfo", "::", "storeRegToStackSlot", "(", "MBB", ",", "I", ",", "SrcReg", ",", "isKill", ",", "FI", ",", "RC", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARM", "ARM::GPRRegisterClass", "ARM::t2STRi12", "0", "ARM"], "File": "Thumb2InstrInfo49", "Func": "storeRegToStackSlot", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1118, "Length": 126, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARM64AsmPrinter", "::", "PrintAsmMemoryOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNum", ",", "unsigned", "AsmVariant", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "O", ")", "{", "if", "(", "ExtraCode", "&&", "ExtraCode", "[", "0", "]", ")", "return", "true", ";", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "OpNum", ")", ";", "assert", "(", "MO", ".", "isReg", "(", ")", "&&", "\"unexpected inline asm memory operand\"", ")", ";", "O", "<<", "\"[\"", "<<", "ARM64InstPrinter", "::", "getRegisterName", "(", "MO", ".", "getReg", "(", ")", ")", "<<", "\"]\"", ";", "return", "false", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "operand", "of", "MI", ",", "an", "INLINEASM", "instruction", ",", "using", "the", "specified", "assembler", "variant", "as", "an", "address", "."], "TS_V_token": ["ARM64", "ARM64", "0", "\"unexpected inline asm memory operand\"", "\"[\"", "ARM64", "\"]\""], "File": "ARM64AsmPrinter", "Func": "PrintAsmMemoryOperand", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1119, "Length": 82, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86ATTInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "OS", ",", "StringRef", "Annot", ")", "{", "const", "MCInstrDesc", "&", "Desc", "=", "MII", ".", "get", "(", "MI", "->", "getOpcode", "(", ")", ")", ";", "uint64_t", "TSFlags", "=", "Desc", ".", "TSFlags", ";", "if", "(", "TSFlags", "&", "X86II", "::", "LOCK", ")", "OS", "<<", "\"\\tlock\\n\"", ";", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "X86", "::", "CALLpcrel32", "&&", "(", "getAvailableFeatures", "(", ")", "&", "X86", "::", "Mode64Bit", ")", "!=", "0", ")", "{", "OS", "<<", "\"\\tcallq\\t\"", ";", "printPCRelImm", "(", "MI", ",", "0", ",", "OS", ")", ";", "}", "else", "if", "(", "!", "printAliasInstr", "(", "MI", ",", "OS", ")", ")", "printInstruction", "(", "MI", ",", "OS", ")", ";", "printAnnotation", "(", "OS", ",", "Annot", ")", ";", "if", "(", "CommentStream", ")", "EmitAnyX86InstComments", "(", "MI", ",", "*", "CommentStream", ",", "getRegisterName", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["X86", "X86", "X86II::LOCK", "\"\\tlock\\n\"", "X86::CALLpcrel32", "X86::Mode64Bit", "0", "\"\\tcallq\\t\"", "0", "X86"], "File": "X86ATTInstPrinter49", "Func": "printInst", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1120, "Length": 132, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "hasAndNotCompare", "(", "SDValue", "Y", ")", "const", "{", "if", "(", "!", "Subtarget", ".", "hasBMI", "(", ")", ")", "return", "false", ";", "EVT", "VT", "=", "Y", ".", "getValueType", "(", ")", ";", "if", "(", "VT", "!=", "MVT", "::", "i32", "&&", "VT", "!=", "MVT", "::", "i64", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "should", "transform", ":", "(", "X", "&", "Y", ")", "==", "Y", "\ufffd", "?", "(", "~X", "&", "Y", ")", "==", "0", "(", "X", "&", "Y", ")", "!", "=", "Y", "\ufffd", "?", "(", "~X", "&", "Y", ")", "!", "=", "0", "."], "TS_V_token": ["X86", "X86", "MVT::i32", "MVT::i64"], "File": "X86ISelLowering (3)", "Func": "hasAndNotCompare", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1121, "Length": 52, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StackOffset", "(", "int64_t", "Offset", ",", "MVT", "::", "SimpleValueType", "T", ")", ":", "StackOffset", "(", ")", "{", "assert", "(", "MVT", "(", "T", ")", ".", "isByteSized", "(", ")", "&&", "\"Offset type is not a multiple of bytes\"", ")", ";", "*", "this", "+=", "Part", "(", "Offset", ",", "T", ")", ";", "}", ""], "natrual_language": ["Offset", "from", "the", "stack", "pointer", "."], "TS_V_token": ["AArch64", "MVT::SimpleValueType", "\"Offset type is not a multiple of bytes\""], "File": "AArch64StackOffset2", "Func": "StackOffset", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1122, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "needsFixedCatchObjects", "(", ")", "const", "{", "return", "Subtarget", ".", "isTargetWin64", "(", ")", ";", "}", ""], "natrual_language": ["Used", "for", "exception", "handling", "on", "Win64", "."], "TS_V_token": ["X86", "X86"], "File": "X86ISelLowering (2)5", "Func": "needsFixedCatchObjects", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1123, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ix86_fp_cmp_code_to_pcmp_immediate", "(", "enum", "rtx_code", "code", ")", "{", "switch", "(", "code", ")", "{", "case", "EQ", ":", "return", "0x00", ";", "case", "NE", ":", "return", "0x04", ";", "case", "GT", ":", "return", "0x0e", ";", "case", "LE", ":", "return", "0x02", ";", "case", "GE", ":", "return", "0x0d", ";", "case", "LT", ":", "return", "0x01", ";", "case", "UNLE", ":", "return", "0x0a", ";", "case", "UNLT", ":", "return", "0x09", ";", "case", "UNGE", ":", "return", "0x05", ";", "case", "UNGT", ":", "return", "0x06", ";", "case", "UNEQ", ":", "return", "0x18", ";", "case", "LTGT", ":", "return", "0x0c", ";", "case", "ORDERED", ":", "return", "0x07", ";", "case", "UNORDERED", ":", "return", "0x03", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Helper", "for", "ix86_cmp_code_to_pcmp_immediate", "for", "fp", "modes", "."], "TS_V_token": ["i386", "0x00", "0x04", "0x0e", "0x02", "0x0d", "0x01", "0x0a", "0x09", "0x05", "0x06", "0x18", "0x0c", "0x07", "0x03"], "File": "i386-expand", "Func": "ix86_fp_cmp_code_to_pcmp_immediate", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1124, "Length": 106, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseTargetMachine", "::", "addPreSched2", "(", "PassManagerBase", "&", "PM", ",", "CodeGenOpt", "::", "Level", "OptLevel", ")", "{", "if", "(", "OptLevel", "!=", "CodeGenOpt", "::", "None", ")", "{", "if", "(", "!", "Subtarget", ".", "isThumb1Only", "(", ")", ")", "PM", ".", "add", "(", "createARMLoadStoreOptimizationPass", "(", ")", ")", ";", "if", "(", "Subtarget", ".", "hasNEON", "(", ")", ")", "PM", ".", "add", "(", "createExecutionDependencyFixPass", "(", "&", "ARM", "::", "DPRRegClass", ")", ")", ";", "}", "PM", ".", "add", "(", "createARMExpandPseudoPass", "(", ")", ")", ";", "if", "(", "OptLevel", "!=", "CodeGenOpt", "::", "None", ")", "{", "if", "(", "!", "Subtarget", ".", "isThumb1Only", "(", ")", ")", "PM", ".", "add", "(", "createIfConverterPass", "(", ")", ")", ";", "}", "if", "(", "Subtarget", ".", "isThumb2", "(", ")", ")", "PM", ".", "add", "(", "createThumb2ITBlockPass", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "after", "prolog-epilog", "insertion", "and", "before", "the", "second", "instruction", "scheduling", "pass", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM::DPRRegClass", "ARM"], "File": "ARMTargetMachine87", "Func": "addPreSched2", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1125, "Length": 122, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "gen_stdcall_or_fastcall_decoration", "(", "tree", "decl", ",", "char", "prefix", ")", "{", "unsigned", "total", "=", "0", ";", "const", "char", "*", "asmname", "=", "IDENTIFIER_POINTER", "(", "DECL_ASSEMBLER_NAME", "(", "decl", ")", ")", ";", "char", "*", "newsym", ";", "tree", "formal_type", "=", "TYPE_ARG_TYPES", "(", "TREE_TYPE", "(", "decl", ")", ")", ";", "if", "(", "formal_type", "!=", "NULL_TREE", ")", "{", "if", "(", "TREE_VALUE", "(", "tree_last", "(", "formal_type", ")", ")", "!=", "void_type_node", ")", "return", "NULL_TREE", ";", "while", "(", "TREE_VALUE", "(", "formal_type", ")", "!=", "void_type_node", "&&", "COMPLETE_TYPE_P", "(", "TREE_VALUE", "(", "formal_type", ")", ")", ")", "{", "unsigned", "parm_size", "=", "TREE_INT_CST_LOW", "(", "TYPE_SIZE", "(", "TREE_VALUE", "(", "formal_type", ")", ")", ")", ";", "parm_size", "=", "(", "(", "parm_size", "+", "PARM_BOUNDARY", "-", "1", ")", "/", "PARM_BOUNDARY", "*", "PARM_BOUNDARY", ")", ";", "total", "+=", "parm_size", ";", "formal_type", "=", "TREE_CHAIN", "(", "formal_type", ")", ";", "}", "}", "newsym", "=", "alloca", "(", "1", "+", "strlen", "(", "asmname", ")", "+", "1", "+", "10", "+", "1", ")", ";", "return", "get_identifier_with_length", "(", "newsym", ",", "sprintf", "(", "newsym", ",", "\"%c%s@%u\"", ",", "prefix", ",", "asmname", ",", "total", "/", "BITS_PER_UNIT", ")", ")", ";", "}", ""], "natrual_language": ["Return", "string", "which", "is", "the", "former", "assembler", "name", "modified", "with", "an", "underscore", "prefix", "and", "a", "suffix", "consisting", "of", "an", "atsign", "(", "@", ")", "followed", "by", "the", "number", "of", "bytes", "of", "arguments"], "TS_V_token": ["i386", "0", "1", "1", "1", "10", "1", "\"%c%s@%u\""], "File": "netware", "Func": "gen_stdcall_or_fastcall_decoration", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1126, "Length": 167, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "function_expander", "::", "add_fixed_operand", "(", "rtx", "x", ")", "{", "m_ops", ".", "safe_grow", "(", "m_ops", ".", "length", "(", ")", "+", "1", ",", "true", ")", ";", "create_fixed_operand", "(", "&", "m_ops", ".", "last", "(", ")", ",", "x", ")", ";", "}", ""], "natrual_language": ["Add", "an", "operand", "that", "must", "be", "X", ".", "The", "only", "way", "of", "legitimizing", "an", "invalid", "X", "is", "to", "reload", "the", "address", "of", "a", "MEM", "."], "TS_V_token": ["aarch64", "1"], "File": "aarch64-sve-builtins1", "Func": "add_fixed_operand", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1127, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "findDeadCallerSavedReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "MBBI", ",", "const", "X86RegisterInfo", "*", "TRI", ",", "bool", "Is64Bit", ")", "{", "const", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "Function", "*", "F", "=", "MF", "->", "getFunction", "(", ")", ";", "if", "(", "!", "F", "||", "MF", "->", "getMMI", "(", ")", ".", "callsEHReturn", "(", ")", ")", "return", "0", ";", "const", "TargetRegisterClass", "&", "AvailableRegs", "=", "*", "TRI", "->", "getGPRsForTailCall", "(", "*", "MF", ")", ";", "unsigned", "Opc", "=", "MBBI", "->", "getOpcode", "(", ")", ";", "switch", "(", "Opc", ")", "{", "default", ":", "return", "0", ";", "case", "X86", "::", "RETL", ":", "case", "X86", "::", "RETQ", ":", "case", "X86", "::", "RETIL", ":", "case", "X86", "::", "RETIQ", ":", "case", "X86", "::", "TCRETURNdi", ":", "case", "X86", "::", "TCRETURNri", ":", "case", "X86", "::", "TCRETURNmi", ":", "case", "X86", "::", "TCRETURNdi64", ":", "case", "X86", "::", "TCRETURNri64", ":", "case", "X86", "::", "TCRETURNmi64", ":", "case", "X86", "::", "EH_RETURN", ":", "case", "X86", "::", "EH_RETURN64", ":", "{", "SmallSet", "<", "uint16_t", ",", "8", ">", "Uses", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "MBBI", "->", "getNumOperands", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "MachineOperand", "&", "MO", "=", "MBBI", "->", "getOperand", "(", "i", ")", ";", "if", "(", "!", "MO", ".", "isReg", "(", ")", "||", "MO", ".", "isDef", "(", ")", ")", "continue", ";", "unsigned", "Reg", "=", "MO", ".", "getReg", "(", ")", ";", "if", "(", "!", "Reg", ")", "continue", ";", "for", "(", "MCRegAliasIterator", "AI", "(", "Reg", ",", "TRI", ",", "true", ")", ";", "AI", ".", "isValid", "(", ")", ";", "++", "AI", ")", "Uses", ".", "insert", "(", "*", "AI", ")", ";", "}", "for", "(", "auto", "CS", ":", "AvailableRegs", ")", "if", "(", "!", "Uses", ".", "count", "(", "CS", ")", "&&", "CS", "!=", "X86", "::", "RIP", ")", "return", "CS", ";", "}", "}", "return", "0", ";", "}", ""], "natrual_language": ["findDeadCallerSavedReg", "-", "Return", "a", "caller-saved", "register", "that", "is", "n't", "live", "when", "it", "reaches", "the", "``", "return", "''", "instruction", "."], "TS_V_token": ["X86", "X86", "0", "0", "X86::RETL", "X86::RETQ", "X86::RETIL", "X86::RETIQ", "X86::TCRETURNdi", "X86::TCRETURNri", "X86::TCRETURNmi", "X86::TCRETURNdi64", "X86::TCRETURNri64", "X86::TCRETURNmi64", "X86::EH_RETURN", "X86::EH_RETURN64", "8", "0", "X86::RIP", "0"], "File": "X86FrameLowering (2)4", "Func": "findDeadCallerSavedReg", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1128, "Length": 294, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZTargetLowering", "::", "isLegalAddressingMode", "(", "const", "DataLayout", "&", "DL", ",", "const", "AddrMode", "&", "AM", ",", "Type", "*", "Ty", ",", "unsigned", "AS", ",", "Instruction", "*", "I", ")", "const", "{", "if", "(", "AM", ".", "BaseGV", ")", "return", "false", ";", "if", "(", "!", "isInt", "<", "20", ">", "(", "AM", ".", "BaseOffs", ")", ")", "return", "false", ";", "bool", "RequireD12", "=", "Subtarget", ".", "hasVector", "(", ")", "&&", "Ty", "->", "isVectorTy", "(", ")", ";", "AddressingMode", "SupportedAM", "(", "!", "RequireD12", ",", "true", ")", ";", "if", "(", "I", "!=", "nullptr", ")", "SupportedAM", "=", "supportedAddressingMode", "(", "I", ",", "Subtarget", ".", "hasVector", "(", ")", ")", ";", "if", "(", "!", "SupportedAM", ".", "LongDisplacement", "&&", "!", "isUInt", "<", "12", ">", "(", "AM", ".", "BaseOffs", ")", ")", "return", "false", ";", "if", "(", "!", "SupportedAM", ".", "IndexReg", ")", "return", "AM", ".", "Scale", "==", "0", ";", "else", "return", "AM", ".", "Scale", "==", "0", "||", "AM", ".", "Scale", "==", "1", ";", "}", ""], "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": ["SystemZ", "SystemZ", "20", "12", "0", "0", "1"], "File": "SystemZISelLowering57", "Func": "isLegalAddressingMode", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1129, "Length": 146, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getExceptionSelectorRegister", "(", "const", "Constant", "*", "PersonalityFn", ")", "const", "override", "{", "return", "SP", "::", "I1", ";", "}", ""], "natrual_language": ["If", "a", "physical", "register", ",", "this", "returns", "the", "register", "that", "receives", "the", "exception", "typeid", "on", "entry", "to", "a", "landing", "pad", "."], "TS_V_token": ["Sparc", "SP::I1"], "File": "SparcISelLowering (2)2", "Func": "getExceptionSelectorRegister", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1130, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "requiresRegisterScavenging", "(", "const", "MachineFunction", "&", "MF", ")", "const", "override", "{", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "requires", "(", "and", "can", "make", "use", "of", ")", "the", "register", "scavenger", "."], "TS_V_token": ["MMIX"], "File": "MMIXRegisterInfo", "Func": "requiresRegisterScavenging", "Target": "MMIX", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1131, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ultra_flush_pipeline", "(", ")", "{", "ultra_cur_hist", "=", "(", "ultra_cur_hist", "+", "1", ")", "&", "(", "ULTRA_NUM_HIST", "-", "1", ")", ";", "ultra_cycles_elapsed", "+=", "1", ";", "memset", "(", "(", "char", "*", ")", "&", "ultra_pipe", ",", "0", ",", "sizeof", "ultra_pipe", ")", ";", "ultra_pipe", ".", "free_slot_mask", "=", "0xf", ";", "}", ""], "natrual_language": ["Advance", "to", "the", "next", "pipeline", "group", "."], "TS_V_token": ["sparc", "1", "1", "1", "0", "0xf"], "File": "sparc2", "Func": "ultra_flush_pipeline", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1132, "Length": 46, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "get_vec_cmp_insn", "(", "enum", "rtx_code", "code", ",", "enum", "machine_mode", "dest_mode", ",", "enum", "machine_mode", "op_mode", ")", "{", "if", "(", "!", "TARGET_ALTIVEC", ")", "return", "INSN_NOT_AVAILABLE", ";", "switch", "(", "code", ")", "{", "case", "EQ", ":", "if", "(", "dest_mode", "==", "V16QImode", "&&", "op_mode", "==", "V16QImode", ")", "return", "UNSPEC_VCMPEQUB", ";", "if", "(", "dest_mode", "==", "V8HImode", "&&", "op_mode", "==", "V8HImode", ")", "return", "UNSPEC_VCMPEQUH", ";", "if", "(", "dest_mode", "==", "V4SImode", "&&", "op_mode", "==", "V4SImode", ")", "return", "UNSPEC_VCMPEQUW", ";", "if", "(", "dest_mode", "==", "V4SImode", "&&", "op_mode", "==", "V4SFmode", ")", "return", "UNSPEC_VCMPEQFP", ";", "break", ";", "case", "GE", ":", "if", "(", "dest_mode", "==", "V4SImode", "&&", "op_mode", "==", "V4SFmode", ")", "return", "UNSPEC_VCMPGEFP", ";", "case", "GT", ":", "if", "(", "dest_mode", "==", "V16QImode", "&&", "op_mode", "==", "V16QImode", ")", "return", "UNSPEC_VCMPGTSB", ";", "if", "(", "dest_mode", "==", "V8HImode", "&&", "op_mode", "==", "V8HImode", ")", "return", "UNSPEC_VCMPGTSH", ";", "if", "(", "dest_mode", "==", "V4SImode", "&&", "op_mode", "==", "V4SImode", ")", "return", "UNSPEC_VCMPGTSW", ";", "if", "(", "dest_mode", "==", "V4SImode", "&&", "op_mode", "==", "V4SFmode", ")", "return", "UNSPEC_VCMPGTFP", ";", "break", ";", "case", "GTU", ":", "if", "(", "dest_mode", "==", "V16QImode", "&&", "op_mode", "==", "V16QImode", ")", "return", "UNSPEC_VCMPGTUB", ";", "if", "(", "dest_mode", "==", "V8HImode", "&&", "op_mode", "==", "V8HImode", ")", "return", "UNSPEC_VCMPGTUH", ";", "if", "(", "dest_mode", "==", "V4SImode", "&&", "op_mode", "==", "V4SImode", ")", "return", "UNSPEC_VCMPGTUW", ";", "break", ";", "default", ":", "break", ";", "}", "return", "INSN_NOT_AVAILABLE", ";", "}", ""], "natrual_language": ["Return", "insn", "index", "for", "the", "vector", "compare", "instruction", "for", "given", "CODE", ",", "and", "DEST_MODE", ",", "OP_MODE", ".", "Return", "-1", "if", "valid", "insn", "is", "not", "available", "."], "TS_V_token": ["rs6000"], "File": "rs60003", "Func": "get_vec_cmp_insn", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1133, "Length": 213, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMConstantIslands", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "MachineConstantPool", "&", "MCP", "=", "*", "MF", ".", "getConstantPool", "(", ")", ";", "TII", "=", "MF", ".", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "STI", "=", "&", "MF", ".", "getTarget", "(", ")", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "isThumb", "=", "AFI", "->", "isThumbFunction", "(", ")", ";", "isThumb1", "=", "AFI", "->", "isThumb1OnlyFunction", "(", ")", ";", "isThumb2", "=", "AFI", "->", "isThumb2Function", "(", ")", ";", "HasFarJump", "=", "false", ";", "HasInlineAsm", "=", "false", ";", "MF", ".", "RenumberBlocks", "(", ")", ";", "bool", "MadeChange", "=", "false", ";", "if", "(", "isThumb2", "&&", "AdjustJumpTableBlocks", ")", "{", "JumpTableFunctionScan", "(", "MF", ")", ";", "MadeChange", "|=", "ReorderThumb2JumpTables", "(", "MF", ")", ";", "T2JumpTables", ".", "clear", "(", ")", ";", "MF", ".", "RenumberBlocks", "(", ")", ";", "}", "if", "(", "!", "isThumb1", ")", "MF", ".", "EnsureAlignment", "(", "2", ")", ";", "std", "::", "vector", "<", "MachineInstr", "*", ">", "CPEMIs", ";", "if", "(", "!", "MCP", ".", "isEmpty", "(", ")", ")", "{", "DoInitialPlacement", "(", "MF", ",", "CPEMIs", ")", ";", "if", "(", "isThumb1", ")", "MF", ".", "EnsureAlignment", "(", "2", ")", ";", "}", "AFI", "->", "initConstPoolEntryUId", "(", "CPEMIs", ".", "size", "(", ")", ")", ";", "InitialFunctionScan", "(", "MF", ",", "CPEMIs", ")", ";", "CPEMIs", ".", "clear", "(", ")", ";", "RemoveUnusedCPEntries", "(", ")", ";", "unsigned", "NoCPIters", "=", "0", ",", "NoBRIters", "=", "0", ";", "while", "(", "true", ")", "{", "bool", "CPChange", "=", "false", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "CPUsers", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "CPChange", "|=", "HandleConstantPoolUser", "(", "MF", ",", "i", ")", ";", "if", "(", "CPChange", "&&", "++", "NoCPIters", ">", "30", ")", "llvm_unreachable", "(", "\"Constant Island pass failed to converge!\"", ")", ";", "DEBUG", "(", "dumpBBs", "(", ")", ")", ";", "NewWaterList", ".", "clear", "(", ")", ";", "bool", "BRChange", "=", "false", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "ImmBranches", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "BRChange", "|=", "FixUpImmediateBr", "(", "MF", ",", "ImmBranches", "[", "i", "]", ")", ";", "if", "(", "BRChange", "&&", "++", "NoBRIters", ">", "30", ")", "llvm_unreachable", "(", "\"Branch Fix Up pass failed to converge!\"", ")", ";", "DEBUG", "(", "dumpBBs", "(", ")", ")", ";", "if", "(", "!", "CPChange", "&&", "!", "BRChange", ")", "break", ";", "MadeChange", "=", "true", ";", "}", "if", "(", "isThumb2", ")", "MadeChange", "|=", "OptimizeThumb2Instructions", "(", "MF", ")", ";", "verify", "(", "MF", ")", ";", "if", "(", "isThumb", "&&", "!", "HasFarJump", "&&", "AFI", "->", "isLRSpilledForFarJump", "(", ")", ")", "MadeChange", "|=", "UndoLRSpillRestore", "(", ")", ";", "BBSizes", ".", "clear", "(", ")", ";", "BBOffsets", ".", "clear", "(", ")", ";", "WaterList", ".", "clear", "(", ")", ";", "CPUsers", ".", "clear", "(", ")", ";", "CPEntries", ".", "clear", "(", ")", ";", "ImmBranches", ".", "clear", "(", ")", ";", "PushPopMIs", ".", "clear", "(", ")", ";", "T2JumpTables", ".", "clear", "(", ")", ";", "return", "MadeChange", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "2", "2", "0", "0", "0", "30", "\"Constant Island pass failed to converge!\"", "0", "30", "\"Branch Fix Up pass failed to converge!\""], "File": "ARMConstantIslandPass47", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1134, "Length": 452, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "emitSPUpdate", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "MBBI", ",", "const", "TargetInstrInfo", "&", "TII", ",", "const", "DebugLoc", "&", "dl", ",", "const", "ThumbRegisterInfo", "&", "MRI", ",", "int", "NumBytes", ",", "unsigned", "MIFlags", "=", "MachineInstr", "::", "NoFlags", ")", "{", "emitThumbRegPlusImmediate", "(", "MBB", ",", "MBBI", ",", "dl", ",", "ARM", "::", "SP", ",", "ARM", "::", "SP", ",", "NumBytes", ",", "TII", ",", "MRI", ",", "MIFlags", ")", ";", "}", ""], "natrual_language": ["Emit", "a", "series", "of", "instructions", "to", "increment", "/", "decrement", "the", "stack", "pointer", "by", "a", "constant", "value", "."], "TS_V_token": ["ARM", "ARM::SP", "ARM::SP"], "File": "Thumb1FrameLowering13", "Func": "emitSPUpdate", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1135, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86RetpolineThunks", "::", "runOnModule", "(", "Module", "&", "M", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "getPassName", "(", ")", "<<", "'\\n'", ")", ";", "auto", "*", "TPC", "=", "getAnalysisIfAvailable", "<", "TargetPassConfig", ">", "(", ")", ";", "assert", "(", "TPC", "&&", "\"X86-specific target pass should not be run without a target \"", "\"pass config!\"", ")", ";", "MMI", "=", "&", "getAnalysis", "<", "MachineModuleInfo", ">", "(", ")", ";", "TM", "=", "&", "TPC", "->", "getTM", "<", "TargetMachine", ">", "(", ")", ";", "Is64Bit", "=", "TM", "->", "getTargetTriple", "(", ")", ".", "getArch", "(", ")", "==", "Triple", "::", "x86_64", ";", "if", "(", "!", "llvm", "::", "any_of", "(", "M", ",", "[", "&", "]", "(", "const", "Function", "&", "F", ")", "{", "STI", "=", "&", "TM", "->", "getSubtarget", "<", "X86Subtarget", ">", "(", "F", ")", ";", "return", "STI", "->", "useRetpoline", "(", ")", "&&", "!", "STI", "->", "useRetpolineExternalThunk", "(", ")", ";", "}", ")", ")", "return", "false", ";", "TII", "=", "STI", "->", "getInstrInfo", "(", ")", ";", "if", "(", "Is64Bit", ")", "{", "createThunk", "(", "M", ",", "\"r11\"", ",", "X86", "::", "R11", ")", ";", "}", "else", "{", "createThunk", "(", "M", ",", "\"eax\"", ",", "X86", "::", "EAX", ")", ";", "createThunk", "(", "M", ",", "\"ecx\"", ",", "X86", "::", "ECX", ")", ";", "createThunk", "(", "M", ",", "\"edx\"", ",", "X86", "::", "EDX", ")", ";", "createThunk", "(", "M", ",", "\"push\"", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["runOnModule", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "process", "the", "module", "being", "operated", "on", "."], "TS_V_token": ["X86", "X86", "\"X86-specific target pass should not be run without a target \"", "\"pass config!\"", "X86", "\"r11\"", "X86::R11", "\"eax\"", "X86::EAX", "\"ecx\"", "X86::ECX", "\"edx\"", "X86::EDX", "\"push\""], "File": "X86RetpolineThunks1", "Func": "runOnModule", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1136, "Length": 204, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "nds32_n10_last_load_to_ex_p", "(", "rtx_insn", "*", "producer", ",", "rtx_insn", "*", "consumer", ")", "{", "rtx", "last_def_reg", "=", "extract_nth_access_reg", "(", "producer", ",", "-", "1", ")", ";", "return", "n10_consumed_by_ex_dep_p", "(", "consumer", ",", "last_def_reg", ")", ";", "}", ""], "natrual_language": ["Check", "dependencies", "from", "LMW", "(", "N", ",", "N", ")", "to", "EX", "."], "TS_V_token": ["nds32", "1"], "File": "nds32-pipelines-auxiliary", "Func": "nds32_n10_last_load_to_ex_p", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1137, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "rs6000_pragma_target_parse", "(", "tree", "args", ",", "tree", "pop_target", ")", "{", "tree", "prev_tree", "=", "build_target_option_node", "(", "&", "global_options", ")", ";", "tree", "cur_tree", ";", "struct", "cl_target_option", "*", "prev_opt", ",", "*", "cur_opt", ";", "HOST_WIDE_INT", "prev_flags", ",", "cur_flags", ",", "diff_flags", ";", "HOST_WIDE_INT", "prev_bumask", ",", "cur_bumask", ",", "diff_bumask", ";", "if", "(", "TARGET_DEBUG_TARGET", ")", "{", "fprintf", "(", "stderr", ",", "\"\\n==================== rs6000_pragma_target_parse\\n\"", ")", ";", "fprintf", "(", "stderr", ",", "\"args:\"", ")", ";", "rs6000_debug_target_options", "(", "args", ",", "\" \"", ")", ";", "fprintf", "(", "stderr", ",", "\"\\n\"", ")", ";", "if", "(", "pop_target", ")", "{", "fprintf", "(", "stderr", ",", "\"pop_target:\\n\"", ")", ";", "debug_tree", "(", "pop_target", ")", ";", "}", "else", "fprintf", "(", "stderr", ",", "\"pop_target: \\n\"", ")", ";", "fprintf", "(", "stderr", ",", "\"--------------------\\n\"", ")", ";", "}", "if", "(", "!", "args", ")", "{", "cur_tree", "=", "(", "(", "pop_target", ")", "?", "pop_target", ":", "target_option_default_node", ")", ";", "cl_target_option_restore", "(", "&", "global_options", ",", "TREE_TARGET_OPTION", "(", "cur_tree", ")", ")", ";", "}", "else", "{", "rs6000_cpu_index", "=", "rs6000_tune_index", "=", "-", "1", ";", "if", "(", "!", "rs6000_inner_target_options", "(", "args", ",", "false", ")", "||", "!", "rs6000_option_override_internal", "(", "false", ")", "||", "(", "cur_tree", "=", "build_target_option_node", "(", "&", "global_options", ")", ")", "==", "NULL_TREE", ")", "{", "if", "(", "TARGET_DEBUG_BUILTIN", "||", "TARGET_DEBUG_TARGET", ")", "fprintf", "(", "stderr", ",", "\"invalid pragma\\n\"", ")", ";", "return", "false", ";", "}", "}", "target_option_current_node", "=", "cur_tree", ";", "if", "(", "rs6000_target_modify_macros_ptr", ")", "{", "prev_opt", "=", "TREE_TARGET_OPTION", "(", "prev_tree", ")", ";", "prev_bumask", "=", "prev_opt", "->", "x_rs6000_builtin_mask", ";", "prev_flags", "=", "prev_opt", "->", "x_rs6000_isa_flags", ";", "cur_opt", "=", "TREE_TARGET_OPTION", "(", "cur_tree", ")", ";", "cur_flags", "=", "cur_opt", "->", "x_rs6000_isa_flags", ";", "cur_bumask", "=", "cur_opt", "->", "x_rs6000_builtin_mask", ";", "diff_bumask", "=", "(", "prev_bumask", "^", "cur_bumask", ")", ";", "diff_flags", "=", "(", "prev_flags", "^", "cur_flags", ")", ";", "if", "(", "(", "diff_flags", "!=", "0", ")", "||", "(", "diff_bumask", "!=", "0", ")", ")", "{", "rs6000_target_modify_macros_ptr", "(", "false", ",", "prev_flags", "&", "diff_flags", ",", "prev_bumask", "&", "diff_bumask", ")", ";", "rs6000_target_modify_macros_ptr", "(", "true", ",", "cur_flags", "&", "diff_flags", ",", "cur_bumask", "&", "diff_bumask", ")", ";", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["Hook", "to", "validate", "the", "current", "#", "pragma", "GCC", "target", "and", "set", "the", "state", ",", "and", "update", "the", "macros", "based", "on", "what", "was", "changed", ".", "If", "ARGS", "is", "NULL", ",", "then", "POP_TARGET", "is", "used", "to", "reset", "the", "options", "."], "TS_V_token": ["rs6000", "\"\\n==================== rs6000_pragma_target_parse\\n\"", "\"args:\"", "\" \"", "\"\\n\"", "\"pop_target:\\n\"", "\"pop_target: \\n\"", "\"--------------------\\n\"", "1", "\"invalid pragma\\n\"", "0", "0"], "File": "rs60004", "Func": "rs6000_pragma_target_parse", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1138, "Length": 307, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "FISCDAGToDAGISel", "::", "SelectInlineAsmMemoryOperand", "(", "const", "SDValue", "&", "Op", ",", "unsigned", "ConstraintID", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "OutOps", ")", "{", "switch", "(", "ConstraintID", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unexpected asm memory constraint\"", ")", ";", "case", "InlineAsm", "::", "Constraint_m", ":", "OutOps", ".", "push_back", "(", "Op", ")", ";", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["SelectInlineAsmMemoryOperand", "-", "Select", "the", "specified", "address", "as", "a", "target", "addressing", "mode", ",", "according", "to", "the", "specified", "constraint", "."], "TS_V_token": ["FISC", "FISC", "\"Unexpected asm memory constraint\""], "File": "FISCISelDAGToDAG", "Func": "SelectInlineAsmMemoryOperand", "Target": "FISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1139, "Length": 55, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "OR1KTargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "SDLoc", "dl", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "RetCC_OR1K32", ")", ";", "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", ")", ")", ";", "}", "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": ["OR1K", "OR1K", "ISD::InputArg", "16", "OR1K", "0", "1", "2", "0"], "File": "OR1KISelLowering1", "Func": "LowerCallResult", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1140, "Length": 166, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ")", "const", "{", "return", "false", ";", "}", ""], "natrual_language": ["Check", "whether", "the", "given", "instruction", "may", "need", "relaxation", "."], "TS_V_token": ["PowerPC"], "File": "PPCAsmBackend1", "Func": "mayNeedRelaxation", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1141, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "aarch64_function_value", "(", "const_tree", "type", ",", "const_tree", "func", ",", "bool", "outgoing", "ATTRIBUTE_UNUSED", ")", "{", "machine_mode", "mode", ";", "int", "unsignedp", ";", "int", "count", ";", "machine_mode", "ag_mode", ";", "mode", "=", "TYPE_MODE", "(", "type", ")", ";", "if", "(", "INTEGRAL_TYPE_P", "(", "type", ")", ")", "mode", "=", "promote_function_mode", "(", "type", ",", "mode", ",", "&", "unsignedp", ",", "func", ",", "1", ")", ";", "if", "(", "aarch64_return_in_msb", "(", "type", ")", ")", "{", "HOST_WIDE_INT", "size", "=", "int_size_in_bytes", "(", "type", ")", ";", "if", "(", "size", "%", "UNITS_PER_WORD", "!=", "0", ")", "{", "size", "+=", "UNITS_PER_WORD", "-", "size", "%", "UNITS_PER_WORD", ";", "mode", "=", "mode_for_size", "(", "size", "*", "BITS_PER_UNIT", ",", "MODE_INT", ",", "0", ")", ";", "}", "}", "if", "(", "aarch64_vfp_is_call_or_return_candidate", "(", "mode", ",", "type", ",", "&", "ag_mode", ",", "&", "count", ",", "NULL", ")", ")", "{", "if", "(", "!", "aarch64_composite_type_p", "(", "type", ",", "mode", ")", ")", "{", "gcc_assert", "(", "count", "==", "1", "&&", "mode", "==", "ag_mode", ")", ";", "return", "gen_rtx_REG", "(", "mode", ",", "V0_REGNUM", ")", ";", "}", "else", "{", "int", "i", ";", "rtx", "par", ";", "par", "=", "gen_rtx_PARALLEL", "(", "mode", ",", "rtvec_alloc", "(", "count", ")", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "count", ";", "i", "++", ")", "{", "rtx", "tmp", "=", "gen_rtx_REG", "(", "ag_mode", ",", "V0_REGNUM", "+", "i", ")", ";", "tmp", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "tmp", ",", "GEN_INT", "(", "i", "*", "GET_MODE_SIZE", "(", "ag_mode", ")", ")", ")", ";", "XVECEXP", "(", "par", ",", "0", ",", "i", ")", "=", "tmp", ";", "}", "return", "par", ";", "}", "}", "else", "return", "gen_rtx_REG", "(", "mode", ",", "R0_REGNUM", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_FUNCTION_VALUE", ".", "Define", "how", "to", "find", "the", "value", "returned", "by", "a", "function", "."], "TS_V_token": ["aarch64", "1", "0", "0", "1", "0", "0"], "File": "aarch642", "Func": "aarch64_function_value", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1142, "Length": 246, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCHazardRecognizer970", "::", "EmitInstruction", "(", "SUnit", "*", "SU", ")", "{", "MachineInstr", "*", "MI", "=", "SU", "->", "getInstr", "(", ")", ";", "if", "(", "MI", "->", "isDebugValue", "(", ")", ")", "return", ";", "unsigned", "Opcode", "=", "MI", "->", "getOpcode", "(", ")", ";", "LastWasBL8_ELF", "=", "(", "Opcode", "==", "PPC", "::", "BL8_ELF", ")", ";", "bool", "isFirst", ",", "isSingle", ",", "isCracked", ",", "isLoad", ",", "isStore", ";", "PPCII", "::", "PPC970_Unit", "InstrType", "=", "GetInstrType", "(", "Opcode", ",", "isFirst", ",", "isSingle", ",", "isCracked", ",", "isLoad", ",", "isStore", ")", ";", "if", "(", "InstrType", "==", "PPCII", "::", "PPC970_Pseudo", ")", "return", ";", "if", "(", "Opcode", "==", "PPC", "::", "MTCTR", "||", "Opcode", "==", "PPC", "::", "MTCTR8", ")", "HasCTRSet", "=", "true", ";", "if", "(", "isStore", "&&", "NumStores", "<", "4", "&&", "!", "MI", "->", "memoperands_empty", "(", ")", ")", "{", "MachineMemOperand", "*", "MO", "=", "*", "MI", "->", "memoperands_begin", "(", ")", ";", "StoreSize", "[", "NumStores", "]", "=", "MO", "->", "getSize", "(", ")", ";", "StoreOffset", "[", "NumStores", "]", "=", "MO", "->", "getOffset", "(", ")", ";", "StoreValue", "[", "NumStores", "]", "=", "MO", "->", "getValue", "(", ")", ";", "++", "NumStores", ";", "}", "if", "(", "InstrType", "==", "PPCII", "::", "PPC970_BRU", "||", "isSingle", ")", "NumIssued", "=", "4", ";", "++", "NumIssued", ";", "if", "(", "isCracked", ")", "++", "NumIssued", ";", "if", "(", "NumIssued", "==", "5", ")", "EndDispatchGroup", "(", ")", ";", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::BL8_ELF", "PPCII::PPC970_Unit", "PPCII::PPC970_Pseudo", "PPC::MTCTR", "PPC::MTCTR8", "4", "PPCII::PPC970_BRU", "4", "5"], "File": "PPCHazardRecognizers34", "Func": "EmitInstruction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1143, "Length": 207, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsMCCodeEmitter", "::", "getBranchTargetOpValueMMPC10", "(", "const", "MCInst", "&", "MI", ",", "unsigned", "OpNo", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "const", "MCOperand", "&", "MO", "=", "MI", ".", "getOperand", "(", "OpNo", ")", ";", "if", "(", "MO", ".", "isImm", "(", ")", ")", "return", "MO", ".", "getImm", "(", ")", ">>", "1", ";", "assert", "(", "MO", ".", "isExpr", "(", ")", "&&", "\"getBranchTargetOpValuePC10 expects only expressions or immediates\"", ")", ";", "const", "MCExpr", "*", "Expr", "=", "MO", ".", "getExpr", "(", ")", ";", "Fixups", ".", "push_back", "(", "MCFixup", "::", "create", "(", "0", ",", "Expr", ",", "MCFixupKind", "(", "Mips", "::", "fixup_MICROMIPS_PC10_S1", ")", ")", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["getBranchTargetOpValueMMPC10", "-", "Return", "binary", "encoding", "of", "the", "microMIPS", "10-bit", "branch", "target", "operand", "."], "TS_V_token": ["Mips", "Mips", "1", "\"getBranchTargetOpValuePC10 expects only expressions or immediates\"", "0", "Mips::fixup_MICROMIPS_PC10_S1", "0"], "File": "MipsMCCodeEmitter (2)", "Func": "getBranchTargetOpValueMMPC10", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1144, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "node_value_type", "&", "getValue", "(", ")", "const", "{", "return", "Value", ";", "}", ""], "natrual_language": ["Return", "the", "contained", "Value", "."], "TS_V_token": ["X86"], "File": "ImmutableGraph", "Func": "getValue", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1145, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "get_pc_thunk_name", "(", "char", "name", "[", "32", "]", ",", "unsigned", "int", "regno", ")", "{", "gcc_assert", "(", "!", "TARGET_64BIT", ")", ";", "if", "(", "USE_HIDDEN_LINKONCE", ")", "sprintf", "(", "name", ",", "\"__x86.get_pc_thunk.%s\"", ",", "reg_names", "[", "regno", "]", ")", ";", "else", "ASM_GENERATE_INTERNAL_LABEL", "(", "name", ",", "\"LPR\"", ",", "regno", ")", ";", "}", ""], "natrual_language": ["Fills", "in", "the", "label", "name", "that", "should", "be", "used", "for", "a", "pc", "thunk", "for", "the", "given", "register", "."], "TS_V_token": ["i386", "32", "\"__x86.get_pc_thunk.%s\"", "\"LPR\""], "File": "i386", "Func": "get_pc_thunk_name", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1146, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "aarch64_expand_mov_immediate", "(", "rtx", "dest", ",", "rtx", "imm", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "dest", ")", ";", "gcc_assert", "(", "mode", "==", "SImode", "||", "mode", "==", "DImode", ")", ";", "if", "(", "GET_CODE", "(", "imm", ")", "==", "SYMBOL_REF", "||", "GET_CODE", "(", "imm", ")", "==", "LABEL_REF", "||", "GET_CODE", "(", "imm", ")", "==", "CONST", ")", "{", "rtx", "mem", ",", "base", ",", "offset", ";", "enum", "aarch64_symbol_type", "sty", ";", "split_const", "(", "imm", ",", "&", "base", ",", "&", "offset", ")", ";", "sty", "=", "aarch64_classify_symbol", "(", "base", ",", "offset", ")", ";", "switch", "(", "sty", ")", "{", "case", "SYMBOL_FORCE_TO_MEM", ":", "if", "(", "offset", "!=", "const0_rtx", "&&", "targetm", ".", "cannot_force_const_mem", "(", "mode", ",", "imm", ")", ")", "{", "gcc_assert", "(", "can_create_pseudo_p", "(", ")", ")", ";", "base", "=", "aarch64_force_temporary", "(", "mode", ",", "dest", ",", "base", ")", ";", "base", "=", "aarch64_add_offset", "(", "mode", ",", "NULL", ",", "base", ",", "INTVAL", "(", "offset", ")", ")", ";", "aarch64_emit_move", "(", "dest", ",", "base", ")", ";", "return", ";", "}", "mem", "=", "force_const_mem", "(", "ptr_mode", ",", "imm", ")", ";", "gcc_assert", "(", "mem", ")", ";", "if", "(", "!", "aarch64_pcrelative_literal_loads", ")", "{", "gcc_assert", "(", "can_create_pseudo_p", "(", ")", ")", ";", "base", "=", "gen_reg_rtx", "(", "ptr_mode", ")", ";", "aarch64_expand_mov_immediate", "(", "base", ",", "XEXP", "(", "mem", ",", "0", ")", ")", ";", "mem", "=", "gen_rtx_MEM", "(", "ptr_mode", ",", "base", ")", ";", "}", "if", "(", "mode", "!=", "ptr_mode", ")", "mem", "=", "gen_rtx_ZERO_EXTEND", "(", "mode", ",", "mem", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "dest", ",", "mem", ")", ")", ";", "return", ";", "case", "SYMBOL_SMALL_TLSGD", ":", "case", "SYMBOL_SMALL_TLSDESC", ":", "case", "SYMBOL_SMALL_TLSIE", ":", "case", "SYMBOL_SMALL_GOT_28K", ":", "case", "SYMBOL_SMALL_GOT_4G", ":", "case", "SYMBOL_TINY_GOT", ":", "case", "SYMBOL_TINY_TLSIE", ":", "if", "(", "offset", "!=", "const0_rtx", ")", "{", "gcc_assert", "(", "can_create_pseudo_p", "(", ")", ")", ";", "base", "=", "aarch64_force_temporary", "(", "mode", ",", "dest", ",", "base", ")", ";", "base", "=", "aarch64_add_offset", "(", "mode", ",", "NULL", ",", "base", ",", "INTVAL", "(", "offset", ")", ")", ";", "aarch64_emit_move", "(", "dest", ",", "base", ")", ";", "return", ";", "}", "case", "SYMBOL_SMALL_ABSOLUTE", ":", "case", "SYMBOL_TINY_ABSOLUTE", ":", "case", "SYMBOL_TLSLE12", ":", "case", "SYMBOL_TLSLE24", ":", "case", "SYMBOL_TLSLE32", ":", "case", "SYMBOL_TLSLE48", ":", "aarch64_load_symref_appropriately", "(", "dest", ",", "imm", ",", "sty", ")", ";", "return", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "if", "(", "!", "CONST_INT_P", "(", "imm", ")", ")", "{", "if", "(", "GET_CODE", "(", "imm", ")", "==", "HIGH", ")", "emit_insn", "(", "gen_rtx_SET", "(", "dest", ",", "imm", ")", ")", ";", "else", "{", "rtx", "mem", "=", "force_const_mem", "(", "mode", ",", "imm", ")", ";", "gcc_assert", "(", "mem", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "dest", ",", "mem", ")", ")", ";", "}", "return", ";", "}", "aarch64_internal_mov_immediate", "(", "dest", ",", "imm", ",", "true", ",", "GET_MODE", "(", "dest", ")", ")", ";", "}", ""], "natrual_language": ["Set", "DEST", "to", "immediate", "IMM", ".", "For", "SVE", "vector", "modes", ",", "GEN_VEC_DUPLICATE", "is", "a", "pattern", "that", "can", "be", "used", "to", "set", "DEST", "to", "a", "replicated", "scalar", "element", "."], "TS_V_token": ["aarch64", "0"], "File": "aarch644", "Func": "aarch64_expand_mov_immediate", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1147, "Length": 418, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "mips_builtin_branch_and_move", "(", "rtx", "condition", ",", "rtx", "target", ",", "rtx", "value_if_true", ",", "rtx", "value_if_false", ")", "{", "rtx_code_label", "*", "true_label", ",", "*", "done_label", ";", "true_label", "=", "gen_label_rtx", "(", ")", ";", "done_label", "=", "gen_label_rtx", "(", ")", ";", "mips_emit_move", "(", "target", ",", "value_if_false", ")", ";", "emit_jump_insn", "(", "gen_condjump", "(", "condition", ",", "true_label", ")", ")", ";", "emit_jump_insn", "(", "gen_jump", "(", "done_label", ")", ")", ";", "emit_barrier", "(", ")", ";", "emit_label", "(", "true_label", ")", ";", "mips_emit_move", "(", "target", ",", "value_if_true", ")", ";", "emit_label", "(", "done_label", ")", ";", "return", "target", ";", "}", ""], "natrual_language": ["Move", "VALUE_IF_TRUE", "into", "TARGET", "if", "CONDITION", "is", "true", ";", "move", "VALUE_IF_FALSE", "into", "TARGET", "otherwise", ".", "Return", "TARGET", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_builtin_branch_and_move", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1148, "Length": 86, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "CCAssignFn", "*", "AArch64FastISel", "::", "CCAssignFnForCall", "(", "CallingConv", "::", "ID", "CC", ")", "const", "{", "if", "(", "CC", "==", "CallingConv", "::", "WebKit_JS", ")", "return", "CC_AArch64_WebKit_JS", ";", "return", "Subtarget", "->", "isTargetDarwin", "(", ")", "?", "CC_AArch64_DarwinPCS", ":", "CC_AArch64_AAPCS", ";", "}", ""], "natrual_language": ["Selects", "the", "correct", "CCAssignFn", "for", "a", "given", "CallingConvention", "value", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64FastISel1", "Func": "CCAssignFnForCall", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1149, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "ConstraintWeight", "PPCTargetLowering", "::", "getSingleConstraintMatchWeight", "(", "AsmOperandInfo", "&", "info", ",", "const", "char", "*", "constraint", ")", "const", "{", "ConstraintWeight", "weight", "=", "CW_Invalid", ";", "Value", "*", "CallOperandVal", "=", "info", ".", "CallOperandVal", ";", "if", "(", "CallOperandVal", "==", "NULL", ")", "return", "CW_Default", ";", "Type", "*", "type", "=", "CallOperandVal", "->", "getType", "(", ")", ";", "if", "(", "StringRef", "(", "constraint", ")", "==", "\"wc\"", "&&", "type", "->", "isIntegerTy", "(", "1", ")", ")", "return", "CW_Register", ";", "switch", "(", "*", "constraint", ")", "{", "default", ":", "weight", "=", "TargetLowering", "::", "getSingleConstraintMatchWeight", "(", "info", ",", "constraint", ")", ";", "break", ";", "case", "'b'", ":", "if", "(", "type", "->", "isIntegerTy", "(", ")", ")", "weight", "=", "CW_Register", ";", "break", ";", "case", "'f'", ":", "if", "(", "type", "->", "isFloatTy", "(", ")", ")", "weight", "=", "CW_Register", ";", "break", ";", "case", "'d'", ":", "if", "(", "type", "->", "isDoubleTy", "(", ")", ")", "weight", "=", "CW_Register", ";", "break", ";", "case", "'v'", ":", "if", "(", "type", "->", "isVectorTy", "(", ")", ")", "weight", "=", "CW_Register", ";", "break", ";", "case", "'y'", ":", "weight", "=", "CW_Register", ";", "break", ";", "case", "'Z'", ":", "weight", "=", "CW_Memory", ";", "break", ";", "}", "return", "weight", ";", "}", ""], "natrual_language": ["Examine", "constraint", "string", "and", "operand", "type", "and", "determine", "a", "weight", "value", "."], "TS_V_token": ["PowerPC", "PPC", "\"wc\"", "1"], "File": "PPCISelLowering (2)", "Func": "getSingleConstraintMatchWeight", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1150, "Length": 181, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "aarch64_split_simd_combine", "(", "rtx", "dst", ",", "rtx", "src1", ",", "rtx", "src2", ")", "{", "machine_mode", "src_mode", "=", "GET_MODE", "(", "src1", ")", ";", "machine_mode", "dst_mode", "=", "GET_MODE", "(", "dst", ")", ";", "gcc_assert", "(", "VECTOR_MODE_P", "(", "dst_mode", ")", ")", ";", "gcc_assert", "(", "register_operand", "(", "dst", ",", "dst_mode", ")", "&&", "register_operand", "(", "src1", ",", "src_mode", ")", "&&", "register_operand", "(", "src2", ",", "src_mode", ")", ")", ";", "rtx", "(", "*", "gen", ")", "(", "rtx", ",", "rtx", ",", "rtx", ")", ";", "switch", "(", "src_mode", ")", "{", "case", "E_V8QImode", ":", "gen", "=", "gen_aarch64_simd_combinev8qi", ";", "break", ";", "case", "E_V4HImode", ":", "gen", "=", "gen_aarch64_simd_combinev4hi", ";", "break", ";", "case", "E_V2SImode", ":", "gen", "=", "gen_aarch64_simd_combinev2si", ";", "break", ";", "case", "E_V4HFmode", ":", "gen", "=", "gen_aarch64_simd_combinev4hf", ";", "break", ";", "case", "E_V2SFmode", ":", "gen", "=", "gen_aarch64_simd_combinev2sf", ";", "break", ";", "case", "E_DImode", ":", "gen", "=", "gen_aarch64_simd_combinedi", ";", "break", ";", "case", "E_DFmode", ":", "gen", "=", "gen_aarch64_simd_combinedf", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "emit_insn", "(", "gen", "(", "dst", ",", "src1", ",", "src2", ")", ")", ";", "return", ";", "}", ""], "natrual_language": ["Split", "a", "complex", "SIMD", "combine", "."], "TS_V_token": ["aarch64"], "File": "aarch645", "Func": "aarch64_split_simd_combine", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1151, "Length": 164, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "aarch64_sve_arith_immediate_p", "(", "machine_mode", "mode", ",", "rtx", "x", ",", "bool", "negate_p", ")", "{", "rtx", "elt", "=", "unwrap_const_vec_duplicate", "(", "x", ")", ";", "if", "(", "!", "CONST_INT_P", "(", "elt", ")", ")", "return", "false", ";", "HOST_WIDE_INT", "val", "=", "INTVAL", "(", "elt", ")", ";", "if", "(", "negate_p", ")", "val", "=", "-", "val", ";", "val", "&=", "GET_MODE_MASK", "(", "GET_MODE_INNER", "(", "mode", ")", ")", ";", "if", "(", "val", "&", "0xff", ")", "return", "IN_RANGE", "(", "val", ",", "0", ",", "0xff", ")", ";", "return", "IN_RANGE", "(", "val", ",", "0", ",", "0xff00", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "X", "is", "a", "valid", "immediate", "for", "the", "SVE", "ADD", "and", "SUB", "instructions", ".", "Negate", "X", "first", "if", "NEGATE_P", "is", "true", "."], "TS_V_token": ["aarch64", "0xff", "0", "0xff", "0", "0xff00"], "File": "aarch64", "Func": "aarch64_sve_arith_immediate_p", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1152, "Length": 86, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "is_store_insn", "(", "rtx", "insn", ",", "rtx", "*", "str_mem", ")", "{", "if", "(", "!", "insn", "||", "!", "INSN_P", "(", "insn", ")", ")", "return", "false", ";", "return", "is_store_insn1", "(", "PATTERN", "(", "insn", ")", ",", "str_mem", ")", ";", "}", ""], "natrual_language": ["Determine", "if", "INSN", "stores", "to", "memory", "."], "TS_V_token": ["rs6000"], "File": "rs6000", "Func": "is_store_insn", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1153, "Length": 38, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64TargetLowering", "::", "computeKnownBitsForTargetNode", "(", "const", "SDValue", "Op", ",", "KnownBits", "&", "Known", ",", "const", "APInt", "&", "DemandedElts", ",", "const", "SelectionDAG", "&", "DAG", ",", "unsigned", "Depth", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "AArch64ISD", "::", "CSEL", ":", "{", "KnownBits", "Known2", ";", "Known", "=", "DAG", ".", "computeKnownBits", "(", "Op", "->", "getOperand", "(", "0", ")", ",", "Depth", "+", "1", ")", ";", "Known2", "=", "DAG", ".", "computeKnownBits", "(", "Op", "->", "getOperand", "(", "1", ")", ",", "Depth", "+", "1", ")", ";", "Known", "=", "KnownBits", "::", "commonBits", "(", "Known", ",", "Known2", ")", ";", "break", ";", "}", "case", "AArch64ISD", "::", "LOADgot", ":", "case", "AArch64ISD", "::", "ADDlow", ":", "{", "if", "(", "!", "Subtarget", "->", "isTargetILP32", "(", ")", ")", "break", ";", "Known", ".", "Zero", "=", "APInt", "::", "getHighBitsSet", "(", "64", ",", "32", ")", ";", "break", ";", "}", "case", "ISD", "::", "INTRINSIC_W_CHAIN", ":", "{", "ConstantSDNode", "*", "CN", "=", "cast", "<", "ConstantSDNode", ">", "(", "Op", "->", "getOperand", "(", "1", ")", ")", ";", "Intrinsic", "::", "ID", "IntID", "=", "static_cast", "<", "Intrinsic", "::", "ID", ">", "(", "CN", "->", "getZExtValue", "(", ")", ")", ";", "switch", "(", "IntID", ")", "{", "default", ":", "return", ";", "case", "Intrinsic", "::", "aarch64_ldaxr", ":", "case", "Intrinsic", "::", "aarch64_ldxr", ":", "{", "unsigned", "BitWidth", "=", "Known", ".", "getBitWidth", "(", ")", ";", "EVT", "VT", "=", "cast", "<", "MemIntrinsicSDNode", ">", "(", "Op", ")", "->", "getMemoryVT", "(", ")", ";", "unsigned", "MemBits", "=", "VT", ".", "getScalarSizeInBits", "(", ")", ";", "Known", ".", "Zero", "|=", "APInt", "::", "getHighBitsSet", "(", "BitWidth", ",", "BitWidth", "-", "MemBits", ")", ";", "return", ";", "}", "}", "break", ";", "}", "case", "ISD", "::", "INTRINSIC_WO_CHAIN", ":", "case", "ISD", "::", "INTRINSIC_VOID", ":", "{", "unsigned", "IntNo", "=", "cast", "<", "ConstantSDNode", ">", "(", "Op", ".", "getOperand", "(", "0", ")", ")", "->", "getZExtValue", "(", ")", ";", "switch", "(", "IntNo", ")", "{", "default", ":", "break", ";", "case", "Intrinsic", "::", "aarch64_neon_umaxv", ":", "case", "Intrinsic", "::", "aarch64_neon_uminv", ":", "{", "MVT", "VT", "=", "Op", ".", "getOperand", "(", "1", ")", ".", "getValueType", "(", ")", ".", "getSimpleVT", "(", ")", ";", "unsigned", "BitWidth", "=", "Known", ".", "getBitWidth", "(", ")", ";", "if", "(", "VT", "==", "MVT", "::", "v8i8", "||", "VT", "==", "MVT", "::", "v16i8", ")", "{", "assert", "(", "BitWidth", ">=", "8", "&&", "\"Unexpected width!\"", ")", ";", "APInt", "Mask", "=", "APInt", "::", "getHighBitsSet", "(", "BitWidth", ",", "BitWidth", "-", "8", ")", ";", "Known", ".", "Zero", "|=", "Mask", ";", "}", "else", "if", "(", "VT", "==", "MVT", "::", "v4i16", "||", "VT", "==", "MVT", "::", "v8i16", ")", "{", "assert", "(", "BitWidth", ">=", "16", "&&", "\"Unexpected width!\"", ")", ";", "APInt", "Mask", "=", "APInt", "::", "getHighBitsSet", "(", "BitWidth", ",", "BitWidth", "-", "16", ")", ";", "Known", ".", "Zero", "|=", "Mask", ";", "}", "break", ";", "}", "break", ";", "}", "}", "}", "}", ""], "natrual_language": ["Determine", "which", "of", "the", "bits", "specified", "in", "Mask", "are", "known", "to", "be", "either", "zero", "or", "one", "and", "return", "them", "in", "the", "KnownZero/KnownOne", "bitsets", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64ISD::CSEL", "0", "1", "1", "1", "AArch64ISD::LOADgot", "AArch64ISD::ADDlow", "64", "32", "ISD::INTRINSIC_W_CHAIN", "1", "Intrinsic::ID", "Intrinsic::ID", "Intrinsic::aarch64_ldaxr", "Intrinsic::aarch64_ldxr", "ISD::INTRINSIC_WO_CHAIN", "ISD::INTRINSIC_VOID", "0", "Intrinsic::aarch64_neon_umaxv", "Intrinsic::aarch64_neon_uminv", "1", "MVT::v8i8", "MVT::v16i8", "8", "\"Unexpected width!\"", "8", "MVT::v4i16", "MVT::v8i16", "16", "\"Unexpected width!\"", "16"], "File": "AArch64ISelLowering10", "Func": "computeKnownBitsForTargetNode", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1154, "Length": 433, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMAsmBackend", "::", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ")", "const", "{", "if", "(", "getRelaxedOpcode", "(", "Inst", ".", "getOpcode", "(", ")", ")", "!=", "Inst", ".", "getOpcode", "(", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Check", "whether", "the", "given", "instruction", "may", "need", "relaxation", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMAsmBackend (2)", "Func": "mayNeedRelaxation", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1155, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZTargetLowering", "::", "isFMAFasterThanFMulAndFAdd", "(", "EVT", "VT", ")", "const", "{", "VT", "=", "VT", ".", "getScalarType", "(", ")", ";", "if", "(", "!", "VT", ".", "isSimple", "(", ")", ")", "return", "false", ";", "switch", "(", "VT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ")", "{", "case", "MVT", "::", "f32", ":", "case", "MVT", "::", "f64", ":", "return", "true", ";", "case", "MVT", "::", "f128", ":", "return", "false", ";", "default", ":", "break", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "an", "FMA", "operation", "is", "faster", "than", "a", "pair", "of", "fmul", "and", "fadd", "instructions", "."], "TS_V_token": ["SystemZ", "SystemZ", "MVT::f32", "MVT::f64", "MVT::f128"], "File": "SystemZISelLowering (2)", "Func": "isFMAFasterThanFMulAndFAdd", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1156, "Length": 71, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZPostRASchedStrategy", "::", "initialize", "(", "ScheduleDAGMI", "*", "dag", ")", "{", "DEBUG", "(", "HazardRec", "->", "dumpState", "(", ")", ";", ")", ";", "}", ""], "natrual_language": ["Initialize", "the", "strategy", "after", "building", "the", "DAG", "for", "a", "new", "region", "."], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZMachineScheduler12", "Func": "initialize", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1157, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "XNCMTargetLowering", "::", "getPostIndexedAddressParts", "(", "SDNode", "*", "N", ",", "SDNode", "*", "Op", ",", "SDValue", "&", "Base", ",", "SDValue", "&", "Offset", ",", "ISD", "::", "MemIndexedMode", "&", "AM", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "LoadSDNode", "*", "LD", "=", "cast", "<", "LoadSDNode", ">", "(", "N", ")", ";", "if", "(", "LD", "->", "getExtensionType", "(", ")", "!=", "ISD", "::", "NON_EXTLOAD", ")", "return", "false", ";", "EVT", "VT", "=", "LD", "->", "getMemoryVT", "(", ")", ";", "if", "(", "VT", "!=", "MVT", "::", "i8", "&&", "VT", "!=", "MVT", "::", "i16", ")", "return", "false", ";", "if", "(", "Op", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "ADD", ")", "return", "false", ";", "if", "(", "ConstantSDNode", "*", "RHS", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", "->", "getOperand", "(", "1", ")", ")", ")", "{", "uint64_t", "RHSC", "=", "RHS", "->", "getZExtValue", "(", ")", ";", "if", "(", "(", "VT", "==", "MVT", "::", "i16", "&&", "RHSC", "!=", "2", ")", "||", "(", "VT", "==", "MVT", "::", "i8", "&&", "RHSC", "!=", "1", ")", ")", "return", "false", ";", "Base", "=", "Op", "->", "getOperand", "(", "0", ")", ";", "Offset", "=", "DAG", ".", "getConstant", "(", "RHSC", ",", "VT", ")", ";", "AM", "=", "ISD", "::", "POST_INC", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Returns", "true", "by", "value", ",", "base", "pointer", "and", "offset", "pointer", "and", "addressing", "mode", "by", "reference", "if", "this", "node", "can", "be", "combined", "with", "a", "load", "/", "store", "to", "form", "a", "post-indexed", "load", "/", "store", "."], "TS_V_token": ["XNCM", "XNCM", "ISD::MemIndexedMode", "ISD::NON_EXTLOAD", "MVT::i8", "MVT::i16", "ISD::ADD", "1", "MVT::i16", "2", "MVT::i8", "1", "0", "ISD::POST_INC"], "File": "XNCMISelLowering", "Func": "getPostIndexedAddressParts", "Target": "XNCM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1158, "Length": 193, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "ARMFunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "if", "(", "AFI", "->", "getGlobalBaseReg", "(", ")", "==", "0", ")", "return", "false", ";", "const", "ARMTargetMachine", "*", "TM", "=", "static_cast", "<", "const", "ARMTargetMachine", "*", ">", "(", "&", "MF", ".", "getTarget", "(", ")", ")", ";", "if", "(", "TM", "->", "getRelocationModel", "(", ")", "!=", "Reloc", "::", "PIC_", ")", "return", "false", ";", "LLVMContext", "*", "Context", "=", "&", "MF", ".", "getFunction", "(", ")", "->", "getContext", "(", ")", ";", "GlobalValue", "*", "GV", "=", "new", "GlobalVariable", "(", "Type", "::", "getInt32Ty", "(", "*", "Context", ")", ",", "false", ",", "GlobalValue", "::", "ExternalLinkage", ",", "0", ",", "\"_GLOBAL_OFFSET_TABLE_\"", ")", ";", "unsigned", "Id", "=", "AFI", "->", "createPICLabelUId", "(", ")", ";", "ARMConstantPoolValue", "*", "CPV", "=", "ARMConstantPoolConstant", "::", "Create", "(", "GV", ",", "Id", ")", ";", "unsigned", "Align", "=", "TM", "->", "getDataLayout", "(", ")", "->", "getPrefTypeAlignment", "(", "GV", "->", "getType", "(", ")", ")", ";", "unsigned", "Idx", "=", "MF", ".", "getConstantPool", "(", ")", "->", "getConstantPoolIndex", "(", "CPV", ",", "Align", ")", ";", "MachineBasicBlock", "&", "FirstMBB", "=", "MF", ".", "front", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "FirstMBB", ".", "begin", "(", ")", ";", "DebugLoc", "DL", "=", "FirstMBB", ".", "findDebugLoc", "(", "MBBI", ")", ";", "unsigned", "GlobalBaseReg", "=", "AFI", "->", "getGlobalBaseReg", "(", ")", ";", "unsigned", "Opc", "=", "TM", "->", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ".", "isThumb2", "(", ")", "?", "ARM", "::", "t2LDRpci", ":", "ARM", "::", "LDRcp", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "TM", "->", "getInstrInfo", "(", ")", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "Opc", ")", ",", "GlobalBaseReg", ")", ".", "addConstantPoolIndex", "(", "Idx", ")", ";", "if", "(", "Opc", "==", "ARM", "::", "LDRcp", ")", "MIB", ".", "addImm", "(", "0", ")", ";", "AddDefaultPred", "(", "MIB", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "0", "ARM", "ARM", "0", "\"_GLOBAL_OFFSET_TABLE_\"", "ARM", "ARM", "ARM", "ARM::t2LDRpci", "ARM::LDRcp", "ARM::LDRcp", "0"], "File": "ARMInstrInfo11", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1159, "Length": 293, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMBaseInstrInfo", "::", "isStoreToStackSlot", "(", "const", "MachineInstr", "*", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "ARM", "::", "STRrs", ":", "case", "ARM", "::", "t2STRs", ":", "if", "(", "MI", "->", "getOperand", "(", "1", ")", ".", "isFI", "(", ")", "&&", "MI", "->", "getOperand", "(", "2", ")", ".", "isReg", "(", ")", "&&", "MI", "->", "getOperand", "(", "3", ")", ".", "isImm", "(", ")", "&&", "MI", "->", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", "==", "0", "&&", "MI", "->", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", "==", "0", ")", "{", "FrameIndex", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getIndex", "(", ")", ";", "return", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "}", "break", ";", "case", "ARM", "::", "STRi12", ":", "case", "ARM", "::", "t2STRi12", ":", "case", "ARM", "::", "tSTRspi", ":", "case", "ARM", "::", "VSTRD", ":", "case", "ARM", "::", "VSTRS", ":", "if", "(", "MI", "->", "getOperand", "(", "1", ")", ".", "isFI", "(", ")", "&&", "MI", "->", "getOperand", "(", "2", ")", ".", "isImm", "(", ")", "&&", "MI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", "==", "0", ")", "{", "FrameIndex", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getIndex", "(", ")", ";", "return", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "}", "break", ";", "case", "ARM", "::", "VST1q64", ":", "if", "(", "MI", "->", "getOperand", "(", "0", ")", ".", "isFI", "(", ")", "&&", "MI", "->", "getOperand", "(", "2", ")", ".", "getSubReg", "(", ")", "==", "0", ")", "{", "FrameIndex", "=", "MI", "->", "getOperand", "(", "0", ")", ".", "getIndex", "(", ")", ";", "return", "MI", "->", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ";", "}", "break", ";", "case", "ARM", "::", "VSTMQIA", ":", "if", "(", "MI", "->", "getOperand", "(", "1", ")", ".", "isFI", "(", ")", "&&", "MI", "->", "getOperand", "(", "0", ")", ".", "getSubReg", "(", ")", "==", "0", ")", "{", "FrameIndex", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getIndex", "(", ")", ";", "return", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "}", "break", ";", "}", "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": ["ARM", "ARM", "ARM::STRrs", "ARM::t2STRs", "1", "2", "3", "2", "0", "3", "0", "1", "0", "ARM::STRi12", "ARM::t2STRi12", "ARM::tSTRspi", "ARM::VSTRD", "ARM::VSTRS", "1", "2", "2", "0", "1", "0", "ARM::VST1q64", "0", "2", "0", "0", "2", "ARM::VSTMQIA", "1", "0", "0", "1", "0", "0"], "File": "ARMBaseInstrInfo (2)4", "Func": "isStoreToStackSlot", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1160, "Length": 345, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86PassConfig", "::", "addPreRegAlloc", "(", ")", "{", "addPass", "(", "createX86ProtectJTSupport", "(", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "register", "allocation", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86TargetMachine2", "Func": "addPreRegAlloc", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1161, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "{", "AU", ".", "setPreservesAll", "(", ")", ";", "AU", ".", "addRequired", "<", "MachineModuleInfo", ">", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["X86"], "File": "X86CodeEmitter", "Func": "getAnalysisUsage", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1162, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "replace_swap_with_copy", "(", "swap_web_entry", "*", "insn_entry", ",", "unsigned", "i", ")", "{", "rtx_insn", "*", "insn", "=", "insn_entry", "[", "i", "]", ".", "insn", ";", "rtx", "body", "=", "PATTERN", "(", "insn", ")", ";", "rtx", "src_reg", "=", "XEXP", "(", "SET_SRC", "(", "body", ")", ",", "0", ")", ";", "rtx", "copy", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "SET_DEST", "(", "body", ")", ",", "src_reg", ")", ";", "rtx_insn", "*", "new_insn", "=", "emit_insn_before", "(", "copy", ",", "insn", ")", ";", "set_block_for_insn", "(", "new_insn", ",", "BLOCK_FOR_INSN", "(", "insn", ")", ")", ";", "df_insn_rescan", "(", "new_insn", ")", ";", "if", "(", "dump_file", ")", "{", "unsigned", "int", "new_uid", "=", "INSN_UID", "(", "new_insn", ")", ";", "fprintf", "(", "dump_file", ",", "\"Replacing swap %d with copy %d\\n\"", ",", "i", ",", "new_uid", ")", ";", "}", "df_insn_delete", "(", "insn", ")", ";", "remove_insn", "(", "insn", ")", ";", "insn", "->", "set_deleted", "(", ")", ";", "}", ""], "natrual_language": ["Find", "the", "insn", "from", "the", "Ith", "table", "entry", ",", "which", "is", "known", "to", "be", "a", "register", "swap", "Y", "=", "SWAP", "(", "X", ")", ".", "Replace", "it", "with", "a", "copy", "Y", "=", "X", "."], "TS_V_token": ["rs6000", "0", "\"Replacing swap %d with copy %d\\n\""], "File": "rs60004", "Func": "replace_swap_with_copy", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1163, "Length": 128, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "iq2000_pass_by_reference", "(", "cumulative_args_t", "cum_v", ",", "machine_mode", "mode", ",", "const_tree", "type", ",", "bool", "named", "ATTRIBUTE_UNUSED", ")", "{", "CUMULATIVE_ARGS", "*", "cum", "=", "get_cumulative_args", "(", "cum_v", ")", ";", "int", "size", ";", "if", "(", "cum", "&&", "targetm", ".", "calls", ".", "must_pass_in_stack", "(", "mode", ",", "type", ")", ")", "{", "CUMULATIVE_ARGS", "temp", ";", "temp", "=", "*", "cum", ";", "if", "(", "iq2000_function_arg", "(", "pack_cumulative_args", "(", "&", "temp", ")", ",", "mode", ",", "type", ",", "named", ")", "!=", "0", ")", "return", "1", ";", "}", "if", "(", "type", "==", "NULL_TREE", "||", "mode", "==", "DImode", "||", "mode", "==", "DFmode", ")", "return", "0", ";", "size", "=", "int_size_in_bytes", "(", "type", ")", ";", "return", "size", "==", "-", "1", "||", "size", ">", "UNITS_PER_WORD", ";", "}", ""], "natrual_language": ["Return", "true", "when", "an", "argument", "must", "be", "passed", "by", "reference", "."], "TS_V_token": ["iq2000", "0", "1", "0", "1"], "File": "iq20003", "Func": "iq2000_pass_by_reference", "Target": "iq2000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1164, "Length": 112, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "crx_function_arg_regno_p", "(", "int", "n", ")", "{", "return", "(", "n", "<=", "MAX_REG_FOR_PASSING_ARGS", "&&", "n", ">=", "MIN_REG_FOR_PASSING_ARGS", ")", ";", "}", ""], "natrual_language": ["Implements", "the", "macro", "FUNCTION_ARG_REGNO_P", "defined", "in", "crx.h", ".", "Return", "nonzero", "*", "if", "N", "is", "a", "register", "used", "for", "passing", "parameters", "."], "TS_V_token": ["crx"], "File": "crx", "Func": "crx_function_arg_regno_p", "Target": "crx", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1165, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "LanaiPassConfig", "::", "addPreSched2", "(", ")", "{", "addPass", "(", "createLanaiMemAluCombinerPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "after", "prolog-epilog", "insertion", "and", "before", "the", "second", "instruction", "scheduling", "pass", "."], "TS_V_token": ["Lanai", "Lanai", "Lanai"], "File": "LanaiTargetMachine", "Func": "addPreSched2", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1166, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "KudeyarTargetObjectFile", "::", "IsGlobalInSmallSection", "(", "const", "GlobalValue", "*", "GV", ",", "const", "TargetMachine", "&", "TM", ",", "SectionKind", "Kind", ")", "const", "{", "const", "KudeyarSubtarget", "&", "Subtarget", "=", "TM", ".", "getSubtarget", "<", "KudeyarSubtarget", ">", "(", ")", ";", "if", "(", "Subtarget", ".", "isLinux", "(", ")", ")", "return", "false", ";", "const", "GlobalVariable", "*", "GVA", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GV", ")", ";", "if", "(", "!", "GVA", ")", "return", "false", ";", "if", "(", "!", "Kind", ".", "isBSS", "(", ")", "&&", "!", "Kind", ".", "isDataRel", "(", ")", ")", "return", "false", ";", "if", "(", "Kind", ".", "isMergeable1ByteCString", "(", ")", ")", "return", "false", ";", "Type", "*", "Ty", "=", "GV", "->", "getType", "(", ")", "->", "getElementType", "(", ")", ";", "return", "IsInSmallSection", "(", "TM", ".", "getDataLayout", "(", ")", "->", "getTypeAllocSize", "(", "Ty", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "this", "global", "address", "should", "be", "placed", "into", "small", "data/bss", "section", "."], "TS_V_token": ["Kudeyar", "Kudeyar", "Kudeyar", "Kudeyar"], "File": "KudeyarTargetObjectFile", "Func": "IsGlobalInSmallSection", "Target": "Kudeyar", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1167, "Length": 126, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "PPCTargetLowering", "::", "LowerOperation", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Wasn't expecting to be able to lower this!\"", ")", ";", "case", "ISD", "::", "ConstantPool", ":", "return", "LowerConstantPool", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BlockAddress", ":", "return", "LowerBlockAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "GlobalAddress", ":", "return", "LowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "GlobalTLSAddress", ":", "llvm_unreachable", "(", "\"TLS not implemented for PPC\"", ")", ";", "case", "ISD", "::", "JumpTable", ":", "return", "LowerJumpTable", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SETCC", ":", "return", "LowerSETCC", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "TRAMPOLINE", ":", "return", "LowerTRAMPOLINE", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "VASTART", ":", "return", "LowerVASTART", "(", "Op", ",", "DAG", ",", "PPCSubTarget", ")", ";", "case", "ISD", "::", "VAARG", ":", "return", "LowerVAARG", "(", "Op", ",", "DAG", ",", "PPCSubTarget", ")", ";", "case", "ISD", "::", "STACKRESTORE", ":", "return", "LowerSTACKRESTORE", "(", "Op", ",", "DAG", ",", "PPCSubTarget", ")", ";", "case", "ISD", "::", "DYNAMIC_STACKALLOC", ":", "return", "LowerDYNAMIC_STACKALLOC", "(", "Op", ",", "DAG", ",", "PPCSubTarget", ")", ";", "case", "ISD", "::", "SELECT_CC", ":", "return", "LowerSELECT_CC", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "FP_TO_UINT", ":", "case", "ISD", "::", "FP_TO_SINT", ":", "return", "LowerFP_TO_INT", "(", "Op", ",", "DAG", ",", "Op", ".", "getDebugLoc", "(", ")", ")", ";", "case", "ISD", "::", "SINT_TO_FP", ":", "return", "LowerSINT_TO_FP", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "FLT_ROUNDS_", ":", "return", "LowerFLT_ROUNDS_", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SHL_PARTS", ":", "return", "LowerSHL_PARTS", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SRL_PARTS", ":", "return", "LowerSRL_PARTS", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SRA_PARTS", ":", "return", "LowerSRA_PARTS", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BUILD_VECTOR", ":", "return", "LowerBUILD_VECTOR", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "VECTOR_SHUFFLE", ":", "return", "LowerVECTOR_SHUFFLE", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "INTRINSIC_WO_CHAIN", ":", "return", "LowerINTRINSIC_WO_CHAIN", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SCALAR_TO_VECTOR", ":", "return", "LowerSCALAR_TO_VECTOR", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "MUL", ":", "return", "LowerMUL", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "RETURNADDR", ":", "return", "LowerRETURNADDR", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "FRAMEADDR", ":", "return", "LowerFRAMEADDR", "(", "Op", ",", "DAG", ")", ";", "}", "return", "SDValue", "(", ")", ";", "}", ""], "natrual_language": ["LowerOperation", "-", "Provide", "custom", "lowering", "hooks", "for", "some", "operations", "."], "TS_V_token": ["PowerPC", "PPC", "\"Wasn't expecting to be able to lower this!\"", "ISD::ConstantPool", "ISD::BlockAddress", "ISD::GlobalAddress", "ISD::GlobalTLSAddress", "\"TLS not implemented for PPC\"", "ISD::JumpTable", "ISD::SETCC", "ISD::TRAMPOLINE", "ISD::VASTART", "PPC", "ISD::VAARG", "PPC", "ISD::STACKRESTORE", "PPC", "ISD::DYNAMIC_STACKALLOC", "PPC", "ISD::SELECT_CC", "ISD::FP_TO_UINT", "ISD::FP_TO_SINT", "ISD::SINT_TO_FP", "ISD::FLT_ROUNDS_", "ISD::SHL_PARTS", "ISD::SRL_PARTS", "ISD::SRA_PARTS", "ISD::BUILD_VECTOR", "ISD::VECTOR_SHUFFLE", "ISD::INTRINSIC_WO_CHAIN", "ISD::SCALAR_TO_VECTOR", "ISD::MUL", "ISD::RETURNADDR", "ISD::FRAMEADDR"], "File": "PPCISelLowering115", "Func": "LowerOperation", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1168, "Length": 378, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_asm_trampoline_template", "(", "FILE", "*", "f", ")", "{", "fprintf", "(", "f", ",", "\"\\t.syntax unified\\n\"", ")", ";", "if", "(", "TARGET_FDPIC", ")", "{", "if", "(", "TARGET_ARM", ")", "fprintf", "(", "f", ",", "\"\\t.arm\\n\"", ")", ";", "else", "if", "(", "TARGET_THUMB2", ")", "fprintf", "(", "f", ",", "\"\\t.thumb\\n\"", ")", ";", "else", "gcc_unreachable", "(", ")", ";", "assemble_aligned_integer", "(", "UNITS_PER_WORD", ",", "const0_rtx", ")", ";", "assemble_aligned_integer", "(", "UNITS_PER_WORD", ",", "const0_rtx", ")", ";", "asm_fprintf", "(", "f", ",", "\"\\tldr\\t%r, [%r, #%d]\\n\"", ",", "STATIC_CHAIN_REGNUM", ",", "PC_REGNUM", ",", "TARGET_THUMB2", "?", "8", ":", "4", ")", ";", "asm_fprintf", "(", "f", ",", "\"\\tldr\\t%r, [%r, #%d]\\n\"", ",", "PIC_OFFSET_TABLE_REGNUM", ",", "PC_REGNUM", ",", "TARGET_THUMB2", "?", "8", ":", "4", ")", ";", "asm_fprintf", "(", "f", ",", "\"\\tldr\\t%r, [%r, #%d]\\n\"", ",", "PC_REGNUM", ",", "PC_REGNUM", ",", "TARGET_THUMB2", "?", "8", ":", "4", ")", ";", "assemble_aligned_integer", "(", "UNITS_PER_WORD", ",", "const0_rtx", ")", ";", "}", "else", "if", "(", "TARGET_ARM", ")", "{", "fprintf", "(", "f", ",", "\"\\t.arm\\n\"", ")", ";", "asm_fprintf", "(", "f", ",", "\"\\tldr\\t%r, [%r, #0]\\n\"", ",", "STATIC_CHAIN_REGNUM", ",", "PC_REGNUM", ")", ";", "asm_fprintf", "(", "f", ",", "\"\\tldr\\t%r, [%r, #0]\\n\"", ",", "PC_REGNUM", ",", "PC_REGNUM", ")", ";", "}", "else", "if", "(", "TARGET_THUMB2", ")", "{", "fprintf", "(", "f", ",", "\"\\t.thumb\\n\"", ")", ";", "asm_fprintf", "(", "f", ",", "\"\\tldr.w\\t%r, [%r, #4]\\n\"", ",", "STATIC_CHAIN_REGNUM", ",", "PC_REGNUM", ")", ";", "asm_fprintf", "(", "f", ",", "\"\\tldr.w\\t%r, [%r, #4]\\n\"", ",", "PC_REGNUM", ",", "PC_REGNUM", ")", ";", "}", "else", "{", "ASM_OUTPUT_ALIGN", "(", "f", ",", "2", ")", ";", "fprintf", "(", "f", ",", "\"\\t.code\\t16\\n\"", ")", ";", "fprintf", "(", "f", ",", "\".Ltrampoline_start:\\n\"", ")", ";", "asm_fprintf", "(", "f", ",", "\"\\tpush\\t{r0, r1}\\n\"", ")", ";", "asm_fprintf", "(", "f", ",", "\"\\tldr\\tr0, [%r, #8]\\n\"", ",", "PC_REGNUM", ")", ";", "asm_fprintf", "(", "f", ",", "\"\\tmov\\t%r, r0\\n\"", ",", "STATIC_CHAIN_REGNUM", ")", ";", "asm_fprintf", "(", "f", ",", "\"\\tldr\\tr0, [%r, #8]\\n\"", ",", "PC_REGNUM", ")", ";", "asm_fprintf", "(", "f", ",", "\"\\tstr\\tr0, [%r, #4]\\n\"", ",", "SP_REGNUM", ")", ";", "asm_fprintf", "(", "f", ",", "\"\\tpop\\t{r0, %r}\\n\"", ",", "PC_REGNUM", ")", ";", "}", "assemble_aligned_integer", "(", "UNITS_PER_WORD", ",", "const0_rtx", ")", ";", "assemble_aligned_integer", "(", "UNITS_PER_WORD", ",", "const0_rtx", ")", ";", "}", ""], "natrual_language": ["Output", "assembler", "code", "for", "a", "block", "containing", "the", "constant", "parts", "of", "a", "trampoline", ",", "leaving", "space", "for", "the", "variable", "parts", ".", "On", "the", "ARM", ",", "(", "if", "r8", "is", "the", "static", "chain", "regnum", ",", "and", "remembering", "that", "referencing", "pc", "adds", "an", "offset", "of", "8", ")", "the", "trampoline", "looks", "like", ":", "ldr", "r8", ",", "[", "pc", ",", "#", "0", "]", "ldr", "pc", ",", "[", "pc", "]", ".word", "static", "chain", "value", ".word", "function", "'s", "address", "XXX", "FIXME", ":", "When", "the", "trampoline", "returns", ",", "r8", "will", "be", "clobbered", "."], "TS_V_token": ["arm", "\"\\t.syntax unified\\n\"", "\"\\t.arm\\n\"", "\"\\t.thumb\\n\"", "\"\\tldr\\t%r, [%r, #%d]\\n\"", "8", "4", "\"\\tldr\\t%r, [%r, #%d]\\n\"", "8", "4", "\"\\tldr\\t%r, [%r, #%d]\\n\"", "8", "4", "\"\\t.arm\\n\"", "\"\\tldr\\t%r, [%r, #0]\\n\"", "\"\\tldr\\t%r, [%r, #0]\\n\"", "\"\\t.thumb\\n\"", "\"\\tldr.w\\t%r, [%r, #4]\\n\"", "\"\\tldr.w\\t%r, [%r, #4]\\n\"", "2", "\"\\t.code\\t16\\n\"", "\".Ltrampoline_start:\\n\"", "\"\\tpush\\t{r0, r1}\\n\"", "\"\\tldr\\tr0, [%r, #8]\\n\"", "\"\\tmov\\t%r, r0\\n\"", "\"\\tldr\\tr0, [%r, #8]\\n\"", "\"\\tstr\\tr0, [%r, #4]\\n\"", "\"\\tpop\\t{r0, %r}\\n\""], "File": "arm", "Func": "arm_asm_trampoline_template", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1169, "Length": 285, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ARMBaseTargetMachine", "::", "ARMBaseTargetMachine", "(", "const", "Target", "&", "T", ",", "StringRef", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Reloc", "::", "Model", "RM", ",", "CodeModel", "::", "Model", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ",", "bool", "isLittle", ")", ":", "LLVMTargetMachine", "(", "T", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "RM", ",", "CM", ",", "OL", ")", ",", "TargetABI", "(", "computeTargetABI", "(", "Triple", "(", "TT", ")", ",", "CPU", ",", "Options", ")", ")", ",", "DL", "(", "computeDataLayout", "(", "Triple", "(", "TT", ")", ",", "TargetABI", ",", "isLittle", ")", ")", ",", "TLOF", "(", "createTLOF", "(", "Triple", "(", "getTargetTriple", "(", ")", ")", ")", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ",", "*", "this", ",", "isLittle", ")", ",", "isLittle", "(", "isLittle", ")", "{", "if", "(", "Options", ".", "FloatABIType", "==", "FloatABI", "::", "Default", ")", "this", "->", "Options", ".", "FloatABIType", "=", "Subtarget", ".", "isTargetHardFloat", "(", ")", "?", "FloatABI", "::", "Hard", ":", "FloatABI", "::", "Soft", ";", "}", ""], "natrual_language": ["Create", "an", "ARM", "architecture", "model", "."], "TS_V_token": ["ARM", "ARM", "ARM"], "File": "ARMTargetMachine25", "Func": "ARMBaseTargetMachine", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1170, "Length": 154, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "addRequired", "<", "AAResultsWrapperPass", ">", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["ARM"], "File": "ARMLoadStoreOptimizer10", "Func": "getAnalysisUsage", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1171, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getNumberOfRegisters", "(", "bool", "Vector", ")", "const", "override", "{", "if", "(", "Vector", ")", "{", "if", "(", "ST", "->", "hasNEON", "(", ")", ")", "return", "32", ";", "return", "0", ";", "}", "return", "31", ";", "}", ""], "natrual_language": ["\ufffd", "?", "Vector", "TTI", "begin", "\ufffd", "?"], "TS_V_token": ["ARM64", "32", "0", "31"], "File": "ARM64TargetTransformInfo", "Func": "getNumberOfRegisters", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1172, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCPhysReg", "*", "CAHPRegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "return", "CSR_SaveList", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["CAHP", "CAHP"], "File": "CAHPRegisterInfo", "Func": "getCalleeSavedRegs", "Target": "CAHP", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1173, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "mips_emit_save_slot_move", "(", "rtx", "dest", ",", "rtx", "src", ",", "rtx", "temp", ")", "{", "unsigned", "int", "regno", ";", "rtx", "mem", ";", "if", "(", "REG_P", "(", "src", ")", ")", "{", "regno", "=", "REGNO", "(", "src", ")", ";", "mem", "=", "dest", ";", "}", "else", "{", "regno", "=", "REGNO", "(", "dest", ")", ";", "mem", "=", "src", ";", "}", "if", "(", "regno", "==", "cfun", "->", "machine", "->", "global_pointer", "&&", "!", "mips_must_initialize_gp_p", "(", ")", ")", "{", "if", "(", "TARGET_64BIT", ")", "emit_insn", "(", "gen_move_gpdi", "(", "dest", ",", "src", ")", ")", ";", "else", "emit_insn", "(", "gen_move_gpsi", "(", "dest", ",", "src", ")", ")", ";", "return", ";", "}", "if", "(", "regno", "==", "HI_REGNUM", ")", "{", "if", "(", "REG_P", "(", "dest", ")", ")", "{", "mips_emit_move", "(", "temp", ",", "src", ")", ";", "if", "(", "TARGET_64BIT", ")", "emit_insn", "(", "gen_mthisi_di", "(", "gen_rtx_REG", "(", "TImode", ",", "MD_REG_FIRST", ")", ",", "temp", ",", "gen_rtx_REG", "(", "DImode", ",", "LO_REGNUM", ")", ")", ")", ";", "else", "emit_insn", "(", "gen_mthisi_di", "(", "gen_rtx_REG", "(", "DImode", ",", "MD_REG_FIRST", ")", ",", "temp", ",", "gen_rtx_REG", "(", "SImode", ",", "LO_REGNUM", ")", ")", ")", ";", "}", "else", "{", "if", "(", "TARGET_64BIT", ")", "emit_insn", "(", "gen_mfhidi_ti", "(", "temp", ",", "gen_rtx_REG", "(", "TImode", ",", "MD_REG_FIRST", ")", ")", ")", ";", "else", "emit_insn", "(", "gen_mfhisi_di", "(", "temp", ",", "gen_rtx_REG", "(", "DImode", ",", "MD_REG_FIRST", ")", ")", ")", ";", "mips_emit_move", "(", "dest", ",", "temp", ")", ";", "}", "}", "else", "if", "(", "mips_direct_save_slot_move_p", "(", "regno", ",", "mem", ",", "mem", "==", "src", ")", ")", "mips_emit_move", "(", "dest", ",", "src", ")", ";", "else", "{", "gcc_assert", "(", "!", "reg_overlap_mentioned_p", "(", "dest", ",", "temp", ")", ")", ";", "mips_emit_move", "(", "temp", ",", "src", ")", ";", "mips_emit_move", "(", "dest", ",", "temp", ")", ";", "}", "if", "(", "MEM_P", "(", "dest", ")", ")", "mips_set_frame_expr", "(", "mips_frame_set", "(", "dest", ",", "src", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "a", "move", "from", "SRC", "to", "DEST", ",", "given", "that", "one", "of", "them", "is", "a", "register", "save", "slot", "and", "that", "the", "other", "is", "a", "register", ".", "TEMP", "is", "a", "temporary", "GPR", "of", "the", "same", "mode", "that", "is", "available", "if", "need", "be", "."], "TS_V_token": ["mips"], "File": "mips4", "Func": "mips_emit_save_slot_move", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1174, "Length": 283, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "requiresFrameIndexScavenging", "(", "const", "MachineFunction", "&", "MF", ")", "const", "override", "{", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "requires", "post", "PEI", "scavenging", "of", "registers", "for", "materializing", "frame", "index", "constants", "."], "TS_V_token": ["AArch64"], "File": "AArch64RegisterInfo24", "Func": "requiresFrameIndexScavenging", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1175, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "tree", "mips_build_va_list", "(", ")", "{", "if", "(", "mips_abi", "==", "ABI_EABI", "&&", "!", "TARGET_SOFT_FLOAT", "&&", "!", "TARGET_SINGLE_FLOAT", ")", "{", "tree", "f_ovfl", ",", "f_gtop", ",", "f_ftop", ",", "f_goff", ",", "f_foff", ",", "record", ";", "record", "=", "make_node", "(", "RECORD_TYPE", ")", ";", "f_ovfl", "=", "build_decl", "(", "FIELD_DECL", ",", "get_identifier", "(", "\"__overflow_argptr\"", ")", ",", "ptr_type_node", ")", ";", "f_gtop", "=", "build_decl", "(", "FIELD_DECL", ",", "get_identifier", "(", "\"__gpr_top\"", ")", ",", "ptr_type_node", ")", ";", "f_ftop", "=", "build_decl", "(", "FIELD_DECL", ",", "get_identifier", "(", "\"__fpr_top\"", ")", ",", "ptr_type_node", ")", ";", "f_goff", "=", "build_decl", "(", "FIELD_DECL", ",", "get_identifier", "(", "\"__gpr_offset\"", ")", ",", "unsigned_char_type_node", ")", ";", "f_foff", "=", "build_decl", "(", "FIELD_DECL", ",", "get_identifier", "(", "\"__fpr_offset\"", ")", ",", "unsigned_char_type_node", ")", ";", "DECL_FIELD_CONTEXT", "(", "f_ovfl", ")", "=", "record", ";", "DECL_FIELD_CONTEXT", "(", "f_gtop", ")", "=", "record", ";", "DECL_FIELD_CONTEXT", "(", "f_ftop", ")", "=", "record", ";", "DECL_FIELD_CONTEXT", "(", "f_goff", ")", "=", "record", ";", "DECL_FIELD_CONTEXT", "(", "f_foff", ")", "=", "record", ";", "TYPE_FIELDS", "(", "record", ")", "=", "f_ovfl", ";", "TREE_CHAIN", "(", "f_ovfl", ")", "=", "f_gtop", ";", "TREE_CHAIN", "(", "f_gtop", ")", "=", "f_ftop", ";", "TREE_CHAIN", "(", "f_ftop", ")", "=", "f_goff", ";", "TREE_CHAIN", "(", "f_goff", ")", "=", "f_foff", ";", "layout_type", "(", "record", ")", ";", "return", "record", ";", "}", "else", "return", "ptr_type_node", ";", "}", ""], "natrual_language": ["Create", "the", "va_list", "data", "type", ".", "We", "keep", "3", "pointers", ",", "and", "two", "offsets", ".", "Two", "pointers", "are", "to", "the", "overflow", "area", ",", "which", "starts", "at", "the", "CFA", ".", "One", "of", "these", "is", "constant", ",", "for", "addressing", "into", "the", "GPR", "save", "area", "below", "it", ".", "The", "other", "is", "advanced", "up", "the", "stack", "through", "the", "overflow", "region", ".", "The", "third", "pointer", "is", "to", "the", "GPR", "save", "area", ".", "Since", "the", "FPR", "save", "area", "is", "just", "below", "it", ",", "we", "can", "address", "FPR", "slots", "off", "this", "pointer", ".", "We", "also", "keep", "two", "one-byte", "offsets", ",", "which", "are", "to", "be", "subtracted", "from", "the", "constant", "pointers", "to", "yield", "addresses", "in", "the", "GPR", "and", "FPR", "save", "areas", ".", "These", "are", "downcounted", "as", "float", "or", "non-float", "arguments", "are", "used", ",", "and", "when", "they", "get", "to", "zero", ",", "the", "argument", "must", "be", "obtained", "from", "the", "overflow", "region", ".", "If", "TARGET_SOFT_FLOAT", "or", "TARGET_SINGLE_FLOAT", ",", "then", "no", "FPR", "save", "area", "exists", ",", "and", "a", "single", "pointer", "is", "enough", ".", "It", "'s", "started", "at", "the", "GPR", "save", "area", ",", "and", "is", "advanced", ",", "period", ".", "Note", "that", "the", "GPR", "save", "area", "is", "not", "constant", "size", ",", "due", "to", "optimization", "in", "the", "prologue", ".", "Hence", ",", "we", "ca", "n't", "use", "a", "design", "with", "two", "pointers", "and", "two", "offsets", ",", "although", "we", "could", "have", "designed", "this", "with", "two", "pointers", "and", "three", "offsets", "."], "TS_V_token": ["mips", "\"__overflow_argptr\"", "\"__gpr_top\"", "\"__fpr_top\"", "\"__gpr_offset\"", "\"__fpr_offset\""], "File": "mips2", "Func": "mips_build_va_list", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1176, "Length": 192, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ix86_register_move_cost", "(", "machine_mode", "mode", ",", "reg_class_t", "class1_i", ",", "reg_class_t", "class2_i", ")", "{", "enum", "reg_class", "class1", "=", "(", "enum", "reg_class", ")", "class1_i", ";", "enum", "reg_class", "class2", "=", "(", "enum", "reg_class", ")", "class2_i", ";", "if", "(", "inline_secondary_memory_needed", "(", "mode", ",", "class1", ",", "class2", ",", "false", ")", ")", "{", "int", "cost", "=", "1", ";", "cost", "+=", "inline_memory_move_cost", "(", "mode", ",", "class1", ",", "2", ")", ";", "cost", "+=", "inline_memory_move_cost", "(", "mode", ",", "class2", ",", "2", ")", ";", "if", "(", "GET_MODE_BITSIZE", "(", "mode", ")", ">", "BITS_PER_WORD", "&&", "TARGET_MEMORY_MISMATCH_STALL", "&&", "targetm", ".", "class_max_nregs", "(", "class1", ",", "mode", ")", ">", "targetm", ".", "class_max_nregs", "(", "class2", ",", "mode", ")", ")", "cost", "+=", "20", ";", "if", "(", "(", "MMX_CLASS_P", "(", "class1", ")", "&&", "MAYBE_FLOAT_CLASS_P", "(", "class2", ")", ")", "||", "(", "MMX_CLASS_P", "(", "class2", ")", "&&", "MAYBE_FLOAT_CLASS_P", "(", "class1", ")", ")", ")", "cost", "+=", "20", ";", "return", "cost", ";", "}", "if", "(", "MMX_CLASS_P", "(", "class1", ")", "!=", "MMX_CLASS_P", "(", "class2", ")", ")", "gcc_unreachable", "(", ")", ";", "if", "(", "SSE_CLASS_P", "(", "class1", ")", "!=", "SSE_CLASS_P", "(", "class2", ")", ")", "return", "(", "SSE_CLASS_P", "(", "class1", ")", "?", "ix86_cost", "->", "hard_register", ".", "sse_to_integer", ":", "ix86_cost", "->", "hard_register", ".", "integer_to_sse", ")", ";", "if", "(", "MASK_CLASS_P", "(", "class1", ")", "!=", "MASK_CLASS_P", "(", "class2", ")", ")", "{", "return", "(", "MASK_CLASS_P", "(", "class1", ")", "?", "ix86_cost", "->", "hard_register", ".", "mask_to_integer", ":", "ix86_cost", "->", "hard_register", ".", "integer_to_mask", ")", ";", "}", "if", "(", "MASK_CLASS_P", "(", "class1", ")", "&&", "MASK_CLASS_P", "(", "class2", ")", ")", "return", "ix86_cost", "->", "hard_register", ".", "mask_move", ";", "if", "(", "MAYBE_FLOAT_CLASS_P", "(", "class1", ")", ")", "return", "ix86_cost", "->", "hard_register", ".", "fp_move", ";", "if", "(", "MAYBE_SSE_CLASS_P", "(", "class1", ")", ")", "{", "if", "(", "GET_MODE_BITSIZE", "(", "mode", ")", "<=", "128", ")", "return", "ix86_cost", "->", "hard_register", ".", "xmm_move", ";", "if", "(", "GET_MODE_BITSIZE", "(", "mode", ")", "<=", "256", ")", "return", "ix86_cost", "->", "hard_register", ".", "ymm_move", ";", "return", "ix86_cost", "->", "hard_register", ".", "zmm_move", ";", "}", "if", "(", "MAYBE_MMX_CLASS_P", "(", "class1", ")", ")", "return", "ix86_cost", "->", "hard_register", ".", "mmx_move", ";", "return", "2", ";", "}", ""], "natrual_language": ["Return", "the", "cost", "of", "moving", "data", "from", "a", "register", "in", "class", "CLASS1", "to", "one", "in", "class", "CLASS2", ".", "It", "is", "not", "required", "that", "the", "cost", "always", "equal", "2", "when", "FROM", "is", "the", "same", "as", "TO", ";", "on", "some", "machines", "it", "is", "expensive", "to", "move", "between", "registers", "if", "they", "are", "not", "general", "registers", "."], "TS_V_token": ["i386", "1", "2", "2", "20", "20", "128", "256", "2"], "File": "i386", "Func": "ix86_register_move_cost", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1177, "Length": 323, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_init_print_operand_punct", "(", "void", ")", "{", "const", "char", "*", "p", ";", "for", "(", "p", "=", "\"()[]<>*#/?~.@^+$:!\"", ";", "*", "p", ";", "p", "++", ")", "mips_print_operand_punct", "[", "(", "unsigned", "char", ")", "*", "p", "]", "=", "true", ";", "}", ""], "natrual_language": ["Initialize", "mips_print_operand_punct", "."], "TS_V_token": ["mips", "\"()[]<>*#/?~.@^+$:!\""], "File": "mips", "Func": "mips_init_print_operand_punct", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1178, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "OR1KFrameLowering", "::", "determineFrameLayout", "(", "MachineFunction", "&", "MF", ")", "const", "{", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "unsigned", "FrameSize", "=", "MFI", "->", "getStackSize", "(", ")", ";", "unsigned", "StackAlign", "=", "TRI", "->", "needsStackRealignment", "(", "MF", ")", "?", "MFI", "->", "getMaxAlignment", "(", ")", ":", "MF", ".", "getSubtarget", "(", ")", ".", "getFrameLowering", "(", ")", "->", "getStackAlignment", "(", ")", ";", "unsigned", "maxCallFrameSize", "=", "MFI", "->", "getMaxCallFrameSize", "(", ")", ";", "if", "(", "MFI", "->", "hasVarSizedObjects", "(", ")", ")", "maxCallFrameSize", "=", "alignTo", "(", "maxCallFrameSize", ",", "StackAlign", ")", ";", "MFI", "->", "setMaxCallFrameSize", "(", "maxCallFrameSize", ")", ";", "if", "(", "!", "(", "hasReservedCallFrame", "(", "MF", ")", "&&", "MFI", "->", "adjustsStack", "(", ")", ")", ")", "FrameSize", "+=", "maxCallFrameSize", ";", "FrameSize", "=", "alignTo", "(", "FrameSize", ",", "StackAlign", ")", ";", "MFI", "->", "setStackSize", "(", "FrameSize", ")", ";", "}", ""], "natrual_language": ["Determine", "the", "frame", "layout", "but", "do", "not", "update", "the", "machine", "function", "."], "TS_V_token": ["OR1K", "OR1K"], "File": "OR1KFrameLowering1", "Func": "determineFrameLayout", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1179, "Length": 145, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "char", "X86Subtarget", "::", "classifyLocalReference", "(", "const", "GlobalValue", "*", "GV", ")", "const", "{", "if", "(", "AllowTaggedGlobals", "&&", "TM", ".", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Small", "&&", "GV", "&&", "!", "isa", "<", "Function", ">", "(", "GV", ")", ")", "return", "X86II", "::", "MO_GOTPCREL_NORELAX", ";", "if", "(", "!", "isPositionIndependent", "(", ")", ")", "return", "X86II", "::", "MO_NO_FLAG", ";", "if", "(", "is64Bit", "(", ")", ")", "{", "if", "(", "isTargetELF", "(", ")", ")", "{", "switch", "(", "TM", ".", "getCodeModel", "(", ")", ")", "{", "case", "CodeModel", "::", "Tiny", ":", "llvm_unreachable", "(", "\"Tiny codesize model not supported on X86\"", ")", ";", "case", "CodeModel", "::", "Small", ":", "case", "CodeModel", "::", "Kernel", ":", "return", "X86II", "::", "MO_NO_FLAG", ";", "case", "CodeModel", "::", "Large", ":", "return", "X86II", "::", "MO_GOTOFF", ";", "case", "CodeModel", "::", "Medium", ":", "if", "(", "isa_and_nonnull", "<", "Function", ">", "(", "GV", ")", ")", "return", "X86II", "::", "MO_NO_FLAG", ";", "return", "X86II", "::", "MO_GOTOFF", ";", "}", "llvm_unreachable", "(", "\"invalid code model\"", ")", ";", "}", "return", "X86II", "::", "MO_NO_FLAG", ";", "}", "if", "(", "isTargetCOFF", "(", ")", ")", "return", "X86II", "::", "MO_NO_FLAG", ";", "if", "(", "isTargetDarwin", "(", ")", ")", "{", "if", "(", "GV", "&&", "(", "GV", "->", "isDeclarationForLinker", "(", ")", "||", "GV", "->", "hasCommonLinkage", "(", ")", ")", ")", "return", "X86II", "::", "MO_DARWIN_NONLAZY_PIC_BASE", ";", "return", "X86II", "::", "MO_PIC_BASE_OFFSET", ";", "}", "return", "X86II", "::", "MO_GOTOFF", ";", "}", ""], "natrual_language": ["Classify", "a", "global", "variable", "reference", "for", "the", "current", "subtarget", "according", "to", "how", "we", "should", "reference", "it", "in", "a", "non-pcrel", "context", "."], "TS_V_token": ["X86", "X86", "X86II::MO_GOTPCREL_NORELAX", "X86II::MO_NO_FLAG", "\"Tiny codesize model not supported on X86\"", "X86II::MO_NO_FLAG", "X86II::MO_GOTOFF", "X86II::MO_NO_FLAG", "X86II::MO_GOTOFF", "\"invalid code model\"", "X86II::MO_NO_FLAG", "X86II::MO_NO_FLAG", "X86II::MO_DARWIN_NONLAZY_PIC_BASE", "X86II::MO_PIC_BASE_OFFSET", "X86II::MO_GOTOFF"], "File": "X86Subtarget41", "Func": "classifyLocalReference", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1180, "Length": 204, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ix86_dependencies_evaluation_hook", "static", "int", "ix86_reassociation_width", "(", "unsigned", "int", "op", ",", "machine_mode", "mode", ")", "{", "int", "width", "=", "1", ";", "if", "(", "VECTOR_MODE_P", "(", "mode", ")", ")", "{", "int", "div", "=", "1", ";", "if", "(", "INTEGRAL_MODE_P", "(", "mode", ")", ")", "width", "=", "ix86_cost", "->", "reassoc_vec_int", ";", "else", "if", "(", "FLOAT_MODE_P", "(", "mode", ")", ")", "width", "=", "ix86_cost", "->", "reassoc_vec_fp", ";", "if", "(", "width", "==", "1", ")", "return", "1", ";", "if", "(", "(", "ix86_tune", "==", "PROCESSOR_ZNVER1", "||", "ix86_tune", "==", "PROCESSOR_ZNVER2", "||", "ix86_tune", "==", "PROCESSOR_ZNVER3", ")", "&&", "INTEGRAL_MODE_P", "(", "mode", ")", "&&", "op", "!=", "PLUS", "&&", "op", "!=", "MINUS", ")", "return", "1", ";", "if", "(", "TARGET_AVX256_SPLIT_REGS", "&&", "GET_MODE_BITSIZE", "(", "mode", ")", ">", "128", ")", "div", "=", "GET_MODE_BITSIZE", "(", "mode", ")", "/", "128", ";", "else", "if", "(", "TARGET_SSE_SPLIT_REGS", "&&", "GET_MODE_BITSIZE", "(", "mode", ")", ">", "64", ")", "div", "=", "GET_MODE_BITSIZE", "(", "mode", ")", "/", "64", ";", "width", "=", "(", "width", "+", "div", "-", "1", ")", "/", "div", ";", "}", "else", "if", "(", "INTEGRAL_MODE_P", "(", "mode", ")", ")", "width", "=", "ix86_cost", "->", "reassoc_int", ";", "else", "if", "(", "FLOAT_MODE_P", "(", "mode", ")", ")", "width", "=", "ix86_cost", "->", "reassoc_fp", ";", "if", "(", "!", "TARGET_64BIT", "&&", "width", ">", "2", ")", "width", "=", "2", ";", "return", "width", ";", "}", ""], "natrual_language": ["Implementation", "of", "reassociation_width", "target", "hook", "used", "by", "reassoc", "phase", "to", "identify", "parallelism", "level", "in", "reassociated", "tree", ".", "Statements", "tree_code", "is", "passed", "in", "OPC", ".", "Arguments", "type", "is", "passed", "in", "MODE", ".", "Currently", "parallel", "reassociation", "is", "enabled", "for", "Atom", "processors", "only", "and", "we", "set", "reassociation", "width", "to", "be", "2", "because", "Atom", "may", "issue", "up", "to", "2", "instructions", "per", "cycle", ".", "Return", "value", "should", "be", "fixed", "if", "parallel", "reassociation", "is", "enabled", "for", "other", "processors", "."], "TS_V_token": ["i386", "1", "1", "1", "1", "1", "128", "128", "64", "64", "1", "2", "2"], "File": "i386", "Func": "ix86_reassociation_width", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1181, "Length": 198, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ARMELFStreamer", "&", "ARMTargetELFStreamer", "::", "getStreamer", "(", ")", "{", "ARMELFStreamer", "*", "S", "=", "static_cast", "<", "ARMELFStreamer", "*", ">", "(", "Streamer", ")", ";", "return", "*", "S", ";", "}", ""], "natrual_language": ["Return", "the", "output", "streamer", "for", "the", "assembler", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM"], "File": "ARMELFStreamer52", "Func": "getStreamer", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1182, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_emit_probe_stack_range", "(", "HOST_WIDE_INT", "first", ",", "HOST_WIDE_INT", "size", ")", "{", "if", "(", "first", "+", "size", "<=", "32768", ")", "{", "HOST_WIDE_INT", "i", ";", "for", "(", "i", "=", "PROBE_INTERVAL", ";", "i", "<", "size", ";", "i", "+=", "PROBE_INTERVAL", ")", "emit_stack_probe", "(", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "-", "(", "first", "+", "i", ")", ")", ")", ";", "emit_stack_probe", "(", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "-", "(", "first", "+", "size", ")", ")", ")", ";", "}", "else", "{", "HOST_WIDE_INT", "rounded_size", ";", "rtx", "r12", "=", "gen_rtx_REG", "(", "Pmode", ",", "12", ")", ";", "rtx", "r0", "=", "gen_rtx_REG", "(", "Pmode", ",", "0", ")", ";", "gcc_assert", "(", "first", "<=", "32768", ")", ";", "rounded_size", "=", "ROUND_DOWN", "(", "size", ",", "PROBE_INTERVAL", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "r12", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "-", "first", ")", ")", ")", ";", "if", "(", "rounded_size", ">", "32768", ")", "{", "emit_move_insn", "(", "r0", ",", "GEN_INT", "(", "-", "rounded_size", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "r0", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "r12", ",", "r0", ")", ")", ")", ";", "}", "else", "emit_insn", "(", "gen_rtx_SET", "(", "r0", ",", "plus_constant", "(", "Pmode", ",", "r12", ",", "-", "rounded_size", ")", ")", ")", ";", "if", "(", "TARGET_64BIT", ")", "emit_insn", "(", "gen_probe_stack_rangedi", "(", "r12", ",", "r12", ",", "stack_pointer_rtx", ",", "r0", ")", ")", ";", "else", "emit_insn", "(", "gen_probe_stack_rangesi", "(", "r12", ",", "r12", ",", "stack_pointer_rtx", ",", "r0", ")", ")", ";", "if", "(", "size", "!=", "rounded_size", ")", "emit_stack_probe", "(", "plus_constant", "(", "Pmode", ",", "r12", ",", "rounded_size", "-", "size", ")", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "code", "to", "probe", "a", "range", "of", "stack", "addresses", "from", "FIRST", "to", "FIRST+SIZE", ",", "inclusive", ".", "These", "are", "offsets", "from", "the", "current", "stack", "pointer", "."], "TS_V_token": ["rs6000", "32768", "12", "0", "32768", "32768"], "File": "rs6000-logue", "Func": "rs6000_emit_probe_stack_range", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1183, "Length": 241, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "char", "*", "output_multi_immediate", "(", "rtx", "*", "operands", ",", "const", "char", "*", "instr1", ",", "const", "char", "*", "instr2", ",", "int", "immed_op", ",", "HOST_WIDE_INT", "n", ")", "{", "n", "&=", "0xffffffff", ";", "if", "(", "n", "==", "0", ")", "{", "operands", "[", "immed_op", "]", "=", "const0_rtx", ";", "output_asm_insn", "(", "instr1", ",", "operands", ")", ";", "}", "else", "{", "int", "i", ";", "const", "char", "*", "instr", "=", "instr1", ";", "for", "(", "i", "=", "0", ";", "i", "<", "32", ";", "i", "+=", "2", ")", "{", "if", "(", "n", "&", "(", "3", "<<", "i", ")", ")", "{", "operands", "[", "immed_op", "]", "=", "GEN_INT", "(", "n", "&", "(", "255", "<<", "i", ")", ")", ";", "output_asm_insn", "(", "instr", ",", "operands", ")", ";", "instr", "=", "instr2", ";", "i", "+=", "6", ";", "}", "}", "}", "return", "\"\"", ";", "}", ""], "natrual_language": ["Output", "a", "multiple", "immediate", "operation", ".", "OPERANDS", "is", "the", "vector", "of", "operands", "referred", "to", "in", "the", "output", "patterns", ".", "INSTR1", "is", "the", "output", "pattern", "to", "use", "for", "the", "first", "constant", ".", "INSTR2", "is", "the", "output", "pattern", "to", "use", "for", "subsequent", "constants", ".", "IMMED_OP", "is", "the", "index", "of", "the", "constant", "slot", "in", "OPERANDS", ".", "N", "is", "the", "constant", "value", "."], "TS_V_token": ["arm", "0xffffffff", "0", "0", "32", "2", "3", "255", "6", "\"\""], "File": "arm", "Func": "output_multi_immediate", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1184, "Length": 129, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_override_options_after_change", "(", "void", ")", "{", "arm_override_options_after_change_1", "(", "&", "global_options", ",", "&", "global_options_set", ")", ";", "}", ""], "natrual_language": ["Implement", "targetm.override_options_after_change", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "arm_override_options_after_change", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1185, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "mips_expand_conditional_trap", "(", "rtx", "comparison", ")", "{", "rtx", "op0", ",", "op1", ";", "machine_mode", "mode", ";", "enum", "rtx_code", "code", ";", "code", "=", "GET_CODE", "(", "comparison", ")", ";", "switch", "(", "code", ")", "{", "case", "GT", ":", "case", "LE", ":", "case", "GTU", ":", "case", "LEU", ":", "code", "=", "swap_condition", "(", "code", ")", ";", "op0", "=", "XEXP", "(", "comparison", ",", "1", ")", ";", "op1", "=", "XEXP", "(", "comparison", ",", "0", ")", ";", "break", ";", "default", ":", "op0", "=", "XEXP", "(", "comparison", ",", "0", ")", ";", "op1", "=", "XEXP", "(", "comparison", ",", "1", ")", ";", "break", ";", "}", "mode", "=", "GET_MODE", "(", "XEXP", "(", "comparison", ",", "0", ")", ")", ";", "op0", "=", "force_reg", "(", "mode", ",", "op0", ")", ";", "if", "(", "!", "(", "ISA_HAS_COND_TRAPI", "?", "arith_operand", "(", "op1", ",", "mode", ")", ":", "reg_or_0_operand", "(", "op1", ",", "mode", ")", ")", ")", "op1", "=", "force_reg", "(", "mode", ",", "op1", ")", ";", "emit_insn", "(", "gen_rtx_TRAP_IF", "(", "VOIDmode", ",", "gen_rtx_fmt_ee", "(", "code", ",", "mode", ",", "op0", ",", "op1", ")", ",", "const0_rtx", ")", ")", ";", "}", ""], "natrual_language": ["Perform", "the", "comparison", "in", "COMPARISON", ",", "then", "trap", "if", "the", "condition", "holds", "."], "TS_V_token": ["mips", "1", "0", "0", "1", "0"], "File": "mips", "Func": "mips_expand_conditional_trap", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1186, "Length": 166, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_sim_reset", "(", "struct", "mips_sim", "*", "state", ")", "{", "curr_state", "=", "state", "->", "dfa_state", ";", "state", "->", "time", "=", "0", ";", "state", "->", "insns_left", "=", "state", "->", "issue_rate", ";", "memset", "(", "&", "state", "->", "last_set", ",", "0", ",", "sizeof", "(", "state", "->", "last_set", ")", ")", ";", "state_reset", "(", "curr_state", ")", ";", "targetm", ".", "sched", ".", "init", "(", "0", ",", "false", ",", "0", ")", ";", "advance_state", "(", "curr_state", ")", ";", "}", ""], "natrual_language": ["Reset", "STATE", "to", "the", "initial", "simulation", "state", "."], "TS_V_token": ["mips", "0", "0", "0", "0"], "File": "mips", "Func": "mips_sim_reset", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1187, "Length": 71, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "use_rsqrt_p", "(", ")", "{", "return", "(", "TARGET_SSE_MATH", "&&", "flag_finite_math_only", "&&", "!", "flag_trapping_math", "&&", "flag_unsafe_math_optimizations", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "it", "is", "safe", "to", "use", "the", "rsqrt", "optabs", "to", "optimize", "1.0/sqrt", "."], "TS_V_token": ["i386"], "File": "i3865", "Func": "use_rsqrt_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1188, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "EmitInstruction", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "override", "{", "if", "(", "isIndirectJump", "(", "Inst", ")", ")", "{", "if", "(", "PendingCall", ")", "report_fatal_error", "(", "\"Dangerous instruction in branch delay slot!\"", ")", ";", "sandboxIndirectJump", "(", "Inst", ",", "STI", ")", ";", "return", ";", "}", "unsigned", "AddrIdx", ";", "bool", "IsStore", ";", "bool", "IsMemAccess", "=", "isBasePlusOffsetMemoryAccess", "(", "Inst", ".", "getOpcode", "(", ")", ",", "&", "AddrIdx", ",", "&", "IsStore", ")", ";", "bool", "IsSPFirstOperand", "=", "isStackPointerFirstOperand", "(", "Inst", ")", ";", "if", "(", "IsMemAccess", "||", "IsSPFirstOperand", ")", "{", "bool", "MaskBefore", "=", "(", "IsMemAccess", "&&", "baseRegNeedsLoadStoreMask", "(", "Inst", ".", "getOperand", "(", "AddrIdx", ")", ".", "getReg", "(", ")", ")", ")", ";", "bool", "MaskAfter", "=", "IsSPFirstOperand", "&&", "!", "IsStore", ";", "if", "(", "MaskBefore", "||", "MaskAfter", ")", "{", "if", "(", "PendingCall", ")", "report_fatal_error", "(", "\"Dangerous instruction in branch delay slot!\"", ")", ";", "sandboxLoadStoreStackChange", "(", "Inst", ",", "AddrIdx", ",", "STI", ",", "MaskBefore", ",", "MaskAfter", ")", ";", "return", ";", "}", "}", "bool", "IsIndirectCall", ";", "if", "(", "isCall", "(", "Inst", ",", "&", "IsIndirectCall", ")", ")", "{", "if", "(", "PendingCall", ")", "report_fatal_error", "(", "\"Dangerous instruction in branch delay slot!\"", ")", ";", "EmitBundleLock", "(", "true", ")", ";", "if", "(", "IsIndirectCall", ")", "{", "unsigned", "TargetReg", "=", "Inst", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "emitMask", "(", "TargetReg", ",", "IndirectBranchMaskReg", ",", "STI", ")", ";", "}", "MipsELFStreamer", "::", "EmitInstruction", "(", "Inst", ",", "STI", ")", ";", "PendingCall", "=", "true", ";", "return", ";", "}", "if", "(", "PendingCall", ")", "{", "MipsELFStreamer", "::", "EmitInstruction", "(", "Inst", ",", "STI", ")", ";", "EmitBundleUnlock", "(", ")", ";", "PendingCall", "=", "false", ";", "return", ";", "}", "MipsELFStreamer", "::", "EmitInstruction", "(", "Inst", ",", "STI", ")", ";", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["Mips", "\"Dangerous instruction in branch delay slot!\"", "\"Dangerous instruction in branch delay slot!\"", "\"Dangerous instruction in branch delay slot!\"", "1", "Mips", "Mips", "Mips"], "File": "MipsNaClELFStreamer10", "Func": "EmitInstruction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1189, "Length": 251, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCInstrInfo", "::", "SubsumesPredicate", "(", "const", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Pred1", ",", "const", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Pred2", ")", "const", "{", "assert", "(", "Pred1", ".", "size", "(", ")", "==", "2", "&&", "\"Invalid PPC first predicate\"", ")", ";", "assert", "(", "Pred2", ".", "size", "(", ")", "==", "2", "&&", "\"Invalid PPC second predicate\"", ")", ";", "if", "(", "Pred1", "[", "1", "]", ".", "getReg", "(", ")", "==", "PPC", "::", "CTR8", "||", "Pred1", "[", "1", "]", ".", "getReg", "(", ")", "==", "PPC", "::", "CTR", ")", "return", "false", ";", "if", "(", "Pred2", "[", "1", "]", ".", "getReg", "(", ")", "==", "PPC", "::", "CTR8", "||", "Pred2", "[", "1", "]", ".", "getReg", "(", ")", "==", "PPC", "::", "CTR", ")", "return", "false", ";", "if", "(", "Pred1", "[", "1", "]", ".", "getReg", "(", ")", "!=", "Pred2", "[", "1", "]", ".", "getReg", "(", ")", ")", "return", "false", ";", "PPC", "::", "Predicate", "P1", "=", "(", "PPC", "::", "Predicate", ")", "Pred1", "[", "0", "]", ".", "getImm", "(", ")", ";", "PPC", "::", "Predicate", "P2", "=", "(", "PPC", "::", "Predicate", ")", "Pred2", "[", "0", "]", ".", "getImm", "(", ")", ";", "if", "(", "P1", "==", "P2", ")", "return", "true", ";", "if", "(", "P1", "==", "PPC", "::", "PRED_LE", "&&", "(", "P2", "==", "PPC", "::", "PRED_LT", "||", "P2", "==", "PPC", "::", "PRED_EQ", ")", ")", "return", "true", ";", "if", "(", "P1", "==", "PPC", "::", "PRED_GE", "&&", "(", "P2", "==", "PPC", "::", "PRED_GT", "||", "P2", "==", "PPC", "::", "PRED_EQ", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "first", "specified", "predicate", "subsumes", "the", "second", ",", "e.g", "."], "TS_V_token": ["PowerPC", "PPC", "2", "\"Invalid PPC first predicate\"", "2", "\"Invalid PPC second predicate\"", "1", "PPC::CTR8", "1", "PPC::CTR", "1", "PPC::CTR8", "1", "PPC::CTR", "1", "1", "PPC::Predicate", "PPC::Predicate", "0", "PPC::Predicate", "PPC::Predicate", "0", "PPC::PRED_LE", "PPC::PRED_LT", "PPC::PRED_EQ", "PPC::PRED_GE", "PPC::PRED_GT", "PPC::PRED_EQ"], "File": "PPCInstrInfo (2)", "Func": "SubsumesPredicate", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1190, "Length": 235, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "getReturnSaveOffset", "(", "bool", "isPPC64", ",", "bool", "isDarwinABI", ")", "{", "if", "(", "isDarwinABI", ")", "return", "isPPC64", "?", "16", ":", "8", ";", "return", "isPPC64", "?", "16", ":", "4", ";", "}", ""], "natrual_language": ["getReturnSaveOffset", "-", "Return", "the", "previous", "frame", "offset", "to", "save", "the", "return", "address", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "16", "8", "PPC", "16", "4"], "File": "PPCFrameInfo1", "Func": "getReturnSaveOffset", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1191, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86AsmBackend", "::", "getMaximumNopSize", "(", ")", "const", "{", "if", "(", "STI", ".", "hasFeature", "(", "X86", "::", "Mode16Bit", ")", ")", "return", "4", ";", "if", "(", "!", "STI", ".", "hasFeature", "(", "X86", "::", "FeatureNOPL", ")", "&&", "!", "STI", ".", "hasFeature", "(", "X86", "::", "Mode64Bit", ")", ")", "return", "1", ";", "if", "(", "STI", ".", "getFeatureBits", "(", ")", "[", "X86", "::", "TuningFast7ByteNOP", "]", ")", "return", "7", ";", "if", "(", "STI", ".", "getFeatureBits", "(", ")", "[", "X86", "::", "TuningFast15ByteNOP", "]", ")", "return", "15", ";", "if", "(", "STI", ".", "getFeatureBits", "(", ")", "[", "X86", "::", "TuningFast11ByteNOP", "]", ")", "return", "11", ";", "return", "10", ";", "}", ""], "natrual_language": ["Returns", "the", "maximum", "size", "of", "a", "nop", "in", "bytes", "on", "this", "target", "."], "TS_V_token": ["X86", "X86", "X86::Mode16Bit", "4", "X86::FeatureNOPL", "X86::Mode64Bit", "1", "X86::TuningFast7ByteNOP", "7", "X86::TuningFast15ByteNOP", "15", "X86::TuningFast11ByteNOP", "11", "10"], "File": "X86AsmBackend57", "Func": "getMaximumNopSize", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1192, "Length": 99, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMLoadStoreOpt", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "Fn", ")", "{", "const", "TargetMachine", "&", "TM", "=", "Fn", ".", "getTarget", "(", ")", ";", "AFI", "=", "Fn", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "TII", "=", "TM", ".", "getInstrInfo", "(", ")", ";", "TRI", "=", "TM", ".", "getRegisterInfo", "(", ")", ";", "RS", "=", "new", "RegScavenger", "(", ")", ";", "isThumb2", "=", "AFI", "->", "isThumb2Function", "(", ")", ";", "bool", "Modified", "=", "false", ";", "for", "(", "MachineFunction", "::", "iterator", "MFI", "=", "Fn", ".", "begin", "(", ")", ",", "E", "=", "Fn", ".", "end", "(", ")", ";", "MFI", "!=", "E", ";", "++", "MFI", ")", "{", "MachineBasicBlock", "&", "MBB", "=", "*", "MFI", ";", "Modified", "|=", "LoadStoreMultipleOpti", "(", "MBB", ")", ";", "if", "(", "TM", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ".", "hasV5TOps", "(", ")", ")", "Modified", "|=", "MergeReturnIntoLDM", "(", "MBB", ")", ";", "}", "delete", "RS", ";", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM"], "File": "ARMLoadStoreOptimizer4", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1193, "Length": 141, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getReg", "(", ")", "const", "override", "{", "assert", "(", "isRegNumber", "(", ")", "&&", "\"Invalid access!\"", ")", ";", "return", "(", "unsigned", ")", "Imm", ".", "Val", ";", "}", ""], "natrual_language": ["Returns", "the", "register", "associated", "with", "this", "edge", "."], "TS_V_token": ["PowerPC", "\"Invalid access!\""], "File": "PPCAsmParser (2)1", "Func": "getReg", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1194, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "DLXRegisterInfo", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", ",", "CallingConv", "::", "ID", ")", "const", "{", "return", "nullptr", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["DLX", "DLX"], "File": "DLXRegisterInfo", "Func": "getCallPreservedMask", "Target": "DLX", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1195, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseRegisterInfo", "::", "canSimplifyCallFramePseudos", "(", "MachineFunction", "&", "MF", ")", "const", "{", "return", "hasReservedCallFrame", "(", "MF", ")", "||", "MF", ".", "getFrameInfo", "(", ")", "->", "hasVarSizedObjects", "(", ")", ";", "}", ""], "natrual_language": ["canSimplifyCallFramePseudos", "-", "If", "there", "is", "a", "reserved", "call", "frame", ",", "the", "call", "frame", "pseudos", "can", "be", "simplified", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMBaseRegisterInfo12", "Func": "canSimplifyCallFramePseudos", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1196, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "EmitInstruction", "(", "uint64_t", "Val", ",", "unsigned", "Size", ",", "raw_ostream", "&", "OS", ")", "const", "{", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "Size", ";", "++", "i", ")", "{", "unsigned", "Shift", "=", "IsLittleEndian", "?", "i", "*", "8", ":", "(", "Size", "-", "1", "-", "i", ")", "*", "8", ";", "EmitByte", "(", "(", "Val", ">>", "Shift", ")", "&", "0xff", ",", "OS", ")", ";", "}", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["Cpu0", "0", "8", "1", "8", "0xff"], "File": "Cpu0MCCodeEmitter1", "Func": "EmitInstruction", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1197, "Length": 64, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "thumb_pop", "(", "FILE", "*", "f", ",", "unsigned", "long", "mask", ")", "{", "int", "regno", ";", "int", "lo_mask", "=", "mask", "&", "0xFF", ";", "gcc_assert", "(", "mask", ")", ";", "if", "(", "lo_mask", "==", "0", "&&", "(", "mask", "&", "(", "1", "<<", "PC_REGNUM", ")", ")", ")", "{", "thumb_exit", "(", "f", ",", "-", "1", ")", ";", "return", ";", "}", "fprintf", "(", "f", ",", "\"\\tpop\\t{\"", ")", ";", "for", "(", "regno", "=", "0", ";", "regno", "<=", "LAST_LO_REGNUM", ";", "regno", "++", ",", "lo_mask", ">>=", "1", ")", "{", "if", "(", "lo_mask", "&", "1", ")", "{", "asm_fprintf", "(", "f", ",", "\"%r\"", ",", "regno", ")", ";", "if", "(", "(", "lo_mask", "&", "~", "1", ")", "!=", "0", ")", "fprintf", "(", "f", ",", "\", \"", ")", ";", "}", "}", "if", "(", "mask", "&", "(", "1", "<<", "PC_REGNUM", ")", ")", "{", "if", "(", "TARGET_INTERWORK", "||", "TARGET_BACKTRACE", "||", "crtl", "->", "calls_eh_return", "||", "IS_CMSE_ENTRY", "(", "arm_current_func_type", "(", ")", ")", ")", "{", "fprintf", "(", "f", ",", "\"}\\n\"", ")", ";", "thumb_exit", "(", "f", ",", "-", "1", ")", ";", "return", ";", "}", "else", "{", "if", "(", "mask", "&", "0xFF", ")", "fprintf", "(", "f", ",", "\", \"", ")", ";", "asm_fprintf", "(", "f", ",", "\"%r\"", ",", "PC_REGNUM", ")", ";", "}", "}", "fprintf", "(", "f", ",", "\"}\\n\"", ")", ";", "}", ""], "natrual_language": ["Emit", "code", "to", "push", "or", "pop", "registers", "to", "or", "from", "the", "stack", ".", "F", "is", "the", "assembly", "file", ".", "MASK", "is", "the", "registers", "to", "pop", "."], "TS_V_token": ["arm", "0xFF", "0", "1", "1", "\"\\tpop\\t{\"", "0", "1", "1", "\"%r\"", "1", "0", "\", \"", "1", "\"}\\n\"", "1", "0xFF", "\", \"", "\"%r\"", "\"}\\n\""], "File": "arm", "Func": "thumb_pop", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1198, "Length": 198, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "arm_load_pic_register", "(", "unsigned", "long", "saved_regs", "ATTRIBUTE_UNUSED", ")", "{", "rtx", "l1", ",", "labelno", ",", "pic_tmp", ",", "pic_tmp2", ",", "pic_rtx", ";", "rtx", "global_offset_table", ";", "if", "(", "current_function_uses_pic_offset_table", "==", "0", "||", "TARGET_SINGLE_PIC_BASE", ")", "return", ";", "gcc_assert", "(", "flag_pic", ")", ";", "labelno", "=", "GEN_INT", "(", "pic_labelno", "++", ")", ";", "l1", "=", "gen_rtx_UNSPEC", "(", "Pmode", ",", "gen_rtvec", "(", "1", ",", "labelno", ")", ",", "UNSPEC_PIC_LABEL", ")", ";", "l1", "=", "gen_rtx_CONST", "(", "VOIDmode", ",", "l1", ")", ";", "global_offset_table", "=", "gen_rtx_SYMBOL_REF", "(", "Pmode", ",", "\"_GLOBAL_OFFSET_TABLE_\"", ")", ";", "pic_tmp", "=", "plus_constant", "(", "l1", ",", "TARGET_ARM", "?", "8", ":", "4", ")", ";", "if", "(", "GOT_PCREL", ")", "pic_tmp2", "=", "gen_rtx_CONST", "(", "VOIDmode", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "global_offset_table", ",", "pc_rtx", ")", ")", ";", "else", "pic_tmp2", "=", "gen_rtx_CONST", "(", "VOIDmode", ",", "global_offset_table", ")", ";", "pic_rtx", "=", "gen_rtx_CONST", "(", "Pmode", ",", "gen_rtx_MINUS", "(", "Pmode", ",", "pic_tmp2", ",", "pic_tmp", ")", ")", ";", "if", "(", "TARGET_ARM", ")", "{", "emit_insn", "(", "gen_pic_load_addr_arm", "(", "pic_offset_table_rtx", ",", "pic_rtx", ")", ")", ";", "emit_insn", "(", "gen_pic_add_dot_plus_eight", "(", "pic_offset_table_rtx", ",", "pic_offset_table_rtx", ",", "labelno", ")", ")", ";", "}", "else", "{", "if", "(", "REGNO", "(", "pic_offset_table_rtx", ")", ">", "LAST_LO_REGNUM", ")", "{", "pic_tmp", "=", "gen_rtx_REG", "(", "SImode", ",", "thumb_find_work_register", "(", "saved_regs", ")", ")", ";", "emit_insn", "(", "gen_pic_load_addr_thumb", "(", "pic_tmp", ",", "pic_rtx", ")", ")", ";", "emit_insn", "(", "gen_movsi", "(", "pic_offset_table_rtx", ",", "pic_tmp", ")", ")", ";", "}", "else", "emit_insn", "(", "gen_pic_load_addr_thumb", "(", "pic_offset_table_rtx", ",", "pic_rtx", ")", ")", ";", "emit_insn", "(", "gen_pic_add_dot_plus_four", "(", "pic_offset_table_rtx", ",", "pic_offset_table_rtx", ",", "labelno", ")", ")", ";", "}", "emit_insn", "(", "gen_rtx_USE", "(", "VOIDmode", ",", "pic_offset_table_rtx", ")", ")", ";", "}", ""], "natrual_language": ["Generate", "code", "to", "load", "the", "PIC", "register", ".", "In", "thumb", "mode", "SCRATCH", "is", "a", "low", "register", "."], "TS_V_token": ["arm", "0", "1", "\"_GLOBAL_OFFSET_TABLE_\"", "8", "4"], "File": "arm3", "Func": "arm_load_pic_register", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1199, "Length": 247, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "rs6000_allocate_stack_temp", "(", "machine_mode", "mode", ",", "bool", "offsettable_p", ",", "bool", "reg_reg_p", ")", "{", "rtx", "stack", "=", "assign_stack_temp", "(", "mode", ",", "GET_MODE_SIZE", "(", "mode", ")", ")", ";", "rtx", "addr", "=", "XEXP", "(", "stack", ",", "0", ")", ";", "int", "strict_p", "=", "(", "reload_in_progress", "||", "reload_completed", ")", ";", "if", "(", "!", "legitimate_indirect_address_p", "(", "addr", ",", "strict_p", ")", ")", "{", "if", "(", "offsettable_p", "&&", "!", "rs6000_legitimate_offset_address_p", "(", "mode", ",", "addr", ",", "strict_p", ",", "true", ")", ")", "stack", "=", "replace_equiv_address", "(", "stack", ",", "copy_addr_to_reg", "(", "addr", ")", ")", ";", "else", "if", "(", "reg_reg_p", "&&", "!", "legitimate_indexed_address_p", "(", "addr", ",", "strict_p", ")", ")", "stack", "=", "replace_equiv_address", "(", "stack", ",", "copy_addr_to_reg", "(", "addr", ")", ")", ";", "}", "return", "stack", ";", "}", ""], "natrual_language": ["Allocate", "a", "stack", "temp", "and", "fixup", "the", "address", "so", "it", "meets", "the", "particular", "memory", "requirements", "(", "either", "offetable", "or", "REG+REG", "addressing", ")", "."], "TS_V_token": ["powerpcspe", "0"], "File": "powerpcspe", "Func": "rs6000_allocate_stack_temp", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1200, "Length": 114, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_emit_load_exclusive", "(", "machine_mode", "mode", ",", "rtx", "rval", ",", "rtx", "mem", ",", "rtx", "model_rtx", ")", "{", "rtx", "(", "*", "gen", ")", "(", "rtx", ",", "rtx", ",", "rtx", ")", ";", "switch", "(", "mode", ")", "{", "case", "E_QImode", ":", "gen", "=", "gen_aarch64_load_exclusiveqi", ";", "break", ";", "case", "E_HImode", ":", "gen", "=", "gen_aarch64_load_exclusivehi", ";", "break", ";", "case", "E_SImode", ":", "gen", "=", "gen_aarch64_load_exclusivesi", ";", "break", ";", "case", "E_DImode", ":", "gen", "=", "gen_aarch64_load_exclusivedi", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "emit_insn", "(", "gen", "(", "rval", ",", "mem", ",", "model_rtx", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "load", "exclusive", "."], "TS_V_token": ["aarch64"], "File": "aarch645", "Func": "aarch64_emit_load_exclusive", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1201, "Length": 91, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "setupMF", "(", "MachineFunction", "&", "MF", ",", "GISelKnownBits", "&", "KB", ",", "CodeGenCoverage", "&", "CoverageInfo", ")", "override", "{", "InstructionSelector", "::", "setupMF", "(", "MF", ",", "KB", ",", "CoverageInfo", ")", ";", "ProduceNonFlagSettingCondBr", "=", "!", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "Attribute", "::", "SpeculativeLoadHardening", ")", ";", "}", ""], "natrual_language": ["Setup", "per-MF", "executor", "state", "."], "TS_V_token": ["AArch64"], "File": "AArch64InstructionSelector11", "Func": "setupMF", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1202, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "SystemZInstrInfo", "::", "isStoreToStackSlot", "(", "const", "MachineInstr", "*", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "SystemZ", "::", "MOV32mr", ":", "case", "SystemZ", "::", "MOV32mry", ":", "case", "SystemZ", "::", "MOV64mr", ":", "case", "SystemZ", "::", "MOV32m8r", ":", "case", "SystemZ", "::", "MOV32m8ry", ":", "case", "SystemZ", "::", "MOV32m16r", ":", "case", "SystemZ", "::", "MOV32m16ry", ":", "case", "SystemZ", "::", "MOV64m8r", ":", "case", "SystemZ", "::", "MOV64m8ry", ":", "case", "SystemZ", "::", "MOV64m16r", ":", "case", "SystemZ", "::", "MOV64m16ry", ":", "case", "SystemZ", "::", "MOV64m32r", ":", "case", "SystemZ", "::", "MOV64m32ry", ":", "case", "SystemZ", "::", "FMOV32mr", ":", "case", "SystemZ", "::", "FMOV32mry", ":", "case", "SystemZ", "::", "FMOV64mr", ":", "case", "SystemZ", "::", "FMOV64mry", ":", "case", "SystemZ", "::", "MOV64Pmr", ":", "case", "SystemZ", "::", "MOV64Pmry", ":", "case", "SystemZ", "::", "MOV128mr", ":", "if", "(", "MI", "->", "getOperand", "(", "0", ")", ".", "isFI", "(", ")", "&&", "MI", "->", "getOperand", "(", "1", ")", ".", "isImm", "(", ")", "&&", "MI", "->", "getOperand", "(", "2", ")", ".", "isReg", "(", ")", "&&", "MI", "->", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", "==", "0", "&&", "MI", "->", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", "==", "0", ")", "{", "FrameIndex", "=", "MI", "->", "getOperand", "(", "0", ")", ".", "getIndex", "(", ")", ";", "return", "MI", "->", "getOperand", "(", "3", ")", ".", "getReg", "(", ")", ";", "}", "break", ";", "}", "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": ["SystemZ", "SystemZ", "SystemZ::MOV32mr", "SystemZ::MOV32mry", "SystemZ::MOV64mr", "SystemZ::MOV32m8r", "SystemZ::MOV32m8ry", "SystemZ::MOV32m16r", "SystemZ::MOV32m16ry", "SystemZ::MOV64m8r", "SystemZ::MOV64m8ry", "SystemZ::MOV64m16r", "SystemZ::MOV64m16ry", "SystemZ::MOV64m32r", "SystemZ::MOV64m32ry", "SystemZ::FMOV32mr", "SystemZ::FMOV32mry", "SystemZ::FMOV64mr", "SystemZ::FMOV64mry", "SystemZ::MOV64Pmr", "SystemZ::MOV64Pmry", "SystemZ::MOV128mr", "0", "1", "2", "1", "0", "2", "0", "0", "3", "0"], "File": "SystemZInstrInfo25", "Func": "isStoreToStackSlot", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1203, "Length": 224, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "{", "AsmPrinter", "::", "getAnalysisUsage", "(", "AU", ")", ";", "AU", ".", "setPreservesAll", "(", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["SystemZ"], "File": "SystemZAsmPrinter21", "Func": "getAnalysisUsage", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1204, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_legitimate_combined_insn", "(", "rtx_insn", "*", "insn", ")", "{", "int", "i", ";", "gcc_assert", "(", "INSN_CODE", "(", "insn", ")", ">=", "0", ")", ";", "extract_insn", "(", "insn", ")", ";", "preprocess_constraints", "(", "insn", ")", ";", "int", "n_operands", "=", "recog_data", ".", "n_operands", ";", "int", "n_alternatives", "=", "recog_data", ".", "n_alternatives", ";", "for", "(", "i", "=", "0", ";", "i", "<", "n_operands", ";", "i", "++", ")", "{", "rtx", "op", "=", "recog_data", ".", "operand", "[", "i", "]", ";", "machine_mode", "mode", "=", "GET_MODE", "(", "op", ")", ";", "const", "operand_alternative", "*", "op_alt", ";", "int", "offset", "=", "0", ";", "bool", "win", ";", "int", "j", ";", "if", "(", "UNARY_P", "(", "op", ")", ")", "op", "=", "XEXP", "(", "op", ",", "0", ")", ";", "if", "(", "SUBREG_P", "(", "op", ")", ")", "{", "if", "(", "REG_P", "(", "SUBREG_REG", "(", "op", ")", ")", "&&", "REGNO", "(", "SUBREG_REG", "(", "op", ")", ")", "<", "FIRST_PSEUDO_REGISTER", ")", "offset", "=", "subreg_regno_offset", "(", "REGNO", "(", "SUBREG_REG", "(", "op", ")", ")", ",", "GET_MODE", "(", "SUBREG_REG", "(", "op", ")", ")", ",", "SUBREG_BYTE", "(", "op", ")", ",", "GET_MODE", "(", "op", ")", ")", ";", "op", "=", "SUBREG_REG", "(", "op", ")", ";", "}", "if", "(", "!", "(", "REG_P", "(", "op", ")", "&&", "HARD_REGISTER_P", "(", "op", ")", ")", ")", "continue", ";", "op_alt", "=", "recog_op_alt", ";", "win", "=", "!", "n_alternatives", ";", "alternative_mask", "preferred", "=", "get_preferred_alternatives", "(", "insn", ")", ";", "for", "(", "j", "=", "0", ";", "j", "<", "n_alternatives", ";", "j", "++", ",", "op_alt", "+=", "n_operands", ")", "{", "if", "(", "!", "TEST_BIT", "(", "preferred", ",", "j", ")", ")", "continue", ";", "if", "(", "op_alt", "[", "i", "]", ".", "anything_ok", "||", "(", "op_alt", "[", "i", "]", ".", "matches", "!=", "-", "1", "&&", "operands_match_p", "(", "recog_data", ".", "operand", "[", "i", "]", ",", "recog_data", ".", "operand", "[", "op_alt", "[", "i", "]", ".", "matches", "]", ")", ")", "||", "reg_fits_class_p", "(", "op", ",", "op_alt", "[", "i", "]", ".", "cl", ",", "offset", ",", "mode", ")", ")", "{", "win", "=", "true", ";", "break", ";", "}", "}", "if", "(", "!", "win", ")", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Implement", "the", "TARGET_LEGITIMATE_COMBINED_INSN", "hook", "."], "TS_V_token": ["i386", "0", "0", "0", "0", "0", "1"], "File": "i386", "Func": "ix86_legitimate_combined_insn", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1205, "Length": 322, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64TargetLowering", "::", "isMaskAndCmp0FoldingBeneficial", "(", "const", "Instruction", "&", "AndI", ")", "const", "{", "ConstantInt", "*", "Mask", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "AndI", ".", "getOperand", "(", "1", ")", ")", ";", "if", "(", "!", "Mask", ")", "return", "false", ";", "return", "Mask", "->", "getValue", "(", ")", ".", "isPowerOf2", "(", ")", ";", "}", ""], "natrual_language": ["Return", "if", "the", "target", "supports", "combining", "a", "chain", "like", ":"], "TS_V_token": ["AArch64", "AArch64", "1"], "File": "AArch64ISelLowering (2)2", "Func": "isMaskAndCmp0FoldingBeneficial", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1206, "Length": 49, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "enum", "insn_code", "rs6000_htm_spr_icode", "(", "bool", "nonvoid", ")", "{", "if", "(", "nonvoid", ")", "return", "(", "TARGET_POWERPC64", ")", "?", "CODE_FOR_htm_mfspr_di", ":", "CODE_FOR_htm_mfspr_si", ";", "else", "return", "(", "TARGET_POWERPC64", ")", "?", "CODE_FOR_htm_mtspr_di", ":", "CODE_FOR_htm_mtspr_si", ";", "}", ""], "natrual_language": ["Return", "the", "correct", "ICODE", "value", "depending", "on", "whether", "we", "are", "setting", "or", "reading", "the", "HTM", "SPRs", "."], "TS_V_token": ["powerpcspe"], "File": "powerpcspe", "Func": "rs6000_htm_spr_icode", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1207, "Length": 34, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMCodeGenPrepare", "::", "doFinalization", "(", "Module", "&", "M", ")", "{", "delete", "Promoter", ";", "return", "false", ";", "}", ""], "natrual_language": ["doFinalization", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "any", "necessary", "clean", "up", "after", "all", "passes", "have", "run", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMCodeGenPrepare", "Func": "doFinalization", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1208, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "VEPassConfig", "::", "addInstSelector", "(", ")", "{", "addPass", "(", "createVEISelDag", "(", "getVETargetMachine", "(", ")", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["addInstSelector", "-", "This", "method", "should", "install", "an", "instruction", "selector", "pass", ",", "which", "converts", "from", "LLVM", "code", "to", "machine", "instructions", "."], "TS_V_token": ["VE", "VE", "VE", "VE"], "File": "VETargetMachine", "Func": "addInstSelector", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1209, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "mips_call_expr_from_insn", "(", "rtx_insn", "*", "insn", ",", "rtx", "*", "second_call", ")", "{", "rtx", "x", ";", "rtx", "x2", ";", "if", "(", "!", "CALL_P", "(", "insn", ")", ")", "return", "NULL_RTX", ";", "x", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "PARALLEL", ")", "{", "x2", "=", "XVECEXP", "(", "x", ",", "0", ",", "1", ")", ";", "if", "(", "GET_CODE", "(", "x2", ")", "==", "SET", ")", "x2", "=", "XEXP", "(", "x2", ",", "1", ")", ";", "if", "(", "GET_CODE", "(", "x2", ")", "==", "CALL", ")", "*", "second_call", "=", "x2", ";", "x", "=", "XVECEXP", "(", "x", ",", "0", ",", "0", ")", ";", "}", "if", "(", "GET_CODE", "(", "x", ")", "==", "SET", ")", "x", "=", "XEXP", "(", "x", ",", "1", ")", ";", "gcc_assert", "(", "GET_CODE", "(", "x", ")", "==", "CALL", ")", ";", "return", "x", ";", "}", ""], "natrual_language": ["If", "INSN", "is", "a", "call", ",", "return", "the", "underlying", "CALL", "expr", ".", "Return", "NULL_RTX", "otherwise", ".", "If", "INSN", "has", "two", "call", "rtx", ",", "then", "store", "the", "second", "one", "in", "SECOND_CALL", "."], "TS_V_token": ["mips", "0", "1", "1", "0", "0", "1"], "File": "mips", "Func": "mips_call_expr_from_insn", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1210, "Length": 134, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isMem", "(", ")", "const", "override", "{", "return", "Kind", "==", "k_Memory", ";", "}", ""], "natrual_language": ["isMem", "-", "Is", "this", "a", "memory", "operand", "?"], "TS_V_token": ["ARM64"], "File": "ARM64AsmParser1", "Func": "isMem", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1211, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "seh_emit_push", "(", "FILE", "*", "f", ",", "struct", "seh_frame_state", "*", "seh", ",", "rtx", "reg", ")", "{", "const", "unsigned", "int", "regno", "=", "REGNO", "(", "reg", ")", ";", "gcc_checking_assert", "(", "GENERAL_REGNO_P", "(", "regno", ")", ")", ";", "seh", "->", "sp_offset", "+=", "UNITS_PER_WORD", ";", "seh", "->", "reg_offset", "[", "regno", "]", "=", "seh", "->", "sp_offset", ";", "if", "(", "seh", "->", "cfa_reg", "==", "stack_pointer_rtx", ")", "seh", "->", "cfa_offset", "+=", "UNITS_PER_WORD", ";", "fputs", "(", "\"\\t.seh_pushreg\\t\"", ",", "f", ")", ";", "print_reg", "(", "reg", ",", "0", ",", "f", ")", ";", "fputc", "(", "'\\n'", ",", "f", ")", ";", "}", ""], "natrual_language": ["Emit", "an", "assembler", "directive", "to", "save", "REG", "via", "a", "PUSH", "."], "TS_V_token": ["i386", "\"\\t.seh_pushreg\\t\"", "0"], "File": "winnt", "Func": "seh_emit_push", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1212, "Length": 90, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ix86_modes_tieable_p", "(", "machine_mode", "mode1", ",", "machine_mode", "mode2", ")", "{", "if", "(", "mode1", "==", "mode2", ")", "return", "true", ";", "if", "(", "ix86_tieable_integer_mode_p", "(", "mode1", ")", "&&", "ix86_tieable_integer_mode_p", "(", "mode2", ")", ")", "return", "true", ";", "if", "(", "mode2", "==", "XFmode", ")", "return", "mode1", "==", "SFmode", "||", "mode1", "==", "DFmode", ";", "if", "(", "mode2", "==", "DFmode", ")", "return", "mode1", "==", "SFmode", ";", "if", "(", "GET_MODE_SIZE", "(", "mode2", ")", "==", "32", "&&", "ix86_hard_regno_mode_ok", "(", "FIRST_SSE_REG", ",", "mode2", ")", ")", "return", "(", "GET_MODE_SIZE", "(", "mode1", ")", "==", "32", "&&", "ix86_hard_regno_mode_ok", "(", "FIRST_SSE_REG", ",", "mode1", ")", ")", ";", "if", "(", "GET_MODE_SIZE", "(", "mode2", ")", "==", "16", "&&", "ix86_hard_regno_mode_ok", "(", "FIRST_SSE_REG", ",", "mode2", ")", ")", "return", "(", "GET_MODE_SIZE", "(", "mode1", ")", "==", "16", "&&", "ix86_hard_regno_mode_ok", "(", "FIRST_SSE_REG", ",", "mode1", ")", ")", ";", "if", "(", "GET_MODE_SIZE", "(", "mode2", ")", "==", "8", "&&", "ix86_hard_regno_mode_ok", "(", "FIRST_MMX_REG", ",", "mode2", ")", ")", "return", "(", "GET_MODE_SIZE", "(", "mode1", ")", "==", "8", "&&", "ix86_hard_regno_mode_ok", "(", "FIRST_MMX_REG", ",", "mode1", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "MODE1", "is", "accessible", "in", "a", "register", "that", "can", "hold", "MODE2", "without", "copying", ".", "That", "is", ",", "all", "register", "classes", "that", "can", "hold", "MODE2", "can", "also", "hold", "MODE1", "."], "TS_V_token": ["i386", "32", "32", "16", "16", "8", "8"], "File": "i3864", "Func": "ix86_modes_tieable_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1213, "Length": 163, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "xstormy16_expand_epilogue", "(", "void", ")", "{", "struct", "xstormy16_stack_layout", "layout", ";", "rtx", "mem_pop_rtx", ",", "insn", ";", "int", "regno", ";", "const", "int", "ifun", "=", "xstormy16_interrupt_function_p", "(", ")", ";", "mem_pop_rtx", "=", "gen_rtx_PRE_DEC", "(", "Pmode", ",", "stack_pointer_rtx", ")", ";", "mem_pop_rtx", "=", "gen_rtx_MEM", "(", "HImode", ",", "mem_pop_rtx", ")", ";", "layout", "=", "xstormy16_compute_stack_layout", "(", ")", ";", "if", "(", "layout", ".", "locals_size", ")", "{", "if", "(", "frame_pointer_needed", "&&", "layout", ".", "sp_minus_fp", "==", "layout", ".", "locals_size", ")", "emit_move_insn", "(", "stack_pointer_rtx", ",", "hard_frame_pointer_rtx", ")", ";", "else", "{", "insn", "=", "emit_addhi3_postreload", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "-", "layout", ".", "locals_size", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "}", "for", "(", "regno", "=", "FIRST_PSEUDO_REGISTER", "-", "1", ";", "regno", ">=", "0", ";", "regno", "--", ")", "if", "(", "REG_NEEDS_SAVE", "(", "regno", ",", "ifun", ")", ")", "{", "rtx", "dwarf", ";", "insn", "=", "emit_move_insn", "(", "gen_rtx_REG", "(", "HImode", ",", "regno", ")", ",", "mem_pop_rtx", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "dwarf", "=", "gen_rtx_SET", "(", "Pmode", ",", "stack_pointer_rtx", ",", "plus_constant", "(", "stack_pointer_rtx", ",", "-", "GET_MODE_SIZE", "(", "Pmode", ")", ")", ")", ";", "REG_NOTES", "(", "insn", ")", "=", "gen_rtx_EXPR_LIST", "(", "REG_FRAME_RELATED_EXPR", ",", "dwarf", ",", "REG_NOTES", "(", "insn", ")", ")", ";", "}", "if", "(", "layout", ".", "stdarg_save_size", ")", "{", "insn", "=", "emit_addhi3_postreload", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "-", "layout", ".", "stdarg_save_size", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "if", "(", "ifun", ")", "emit_jump_insn", "(", "gen_return_internal_interrupt", "(", ")", ")", ";", "else", "emit_jump_insn", "(", "gen_return_internal", "(", ")", ")", ";", "}", ""], "natrual_language": ["Called", "after", "register", "allocation", "to", "add", "any", "instructions", "needed", "for", "the", "epilogue", ".", "Using", "an", "epilogue", "insn", "is", "favored", "compared", "to", "putting", "all", "of", "the", "instructions", "in", "the", "TARGET_ASM_FUNCTION_PROLOGUE", "macro", ",", "since", "it", "allows", "the", "scheduler", "to", "intermix", "instructions", "with", "the", "saves", "of", "the", "caller", "saved", "registers", ".", "In", "some", "cases", ",", "it", "might", "be", "necessary", "to", "emit", "a", "barrier", "instruction", "as", "the", "last", "insn", "to", "prevent", "such", "scheduling", "."], "TS_V_token": ["stormy16", "1", "1", "0", "1", "1"], "File": "stormy163", "Func": "xstormy16_expand_epilogue", "Target": "stormy16", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1214, "Length": 243, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseRegisterInfo", "::", "getRegAllocationHints", "(", "Register", "VirtReg", ",", "ArrayRef", "<", "MCPhysReg", ">", "Order", ",", "SmallVectorImpl", "<", "MCPhysReg", ">", "&", "Hints", ",", "const", "MachineFunction", "&", "MF", ",", "const", "VirtRegMap", "*", "VRM", ",", "const", "LiveRegMatrix", "*", "Matrix", ")", "const", "{", "const", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "std", "::", "pair", "<", "Register", ",", "Register", ">", "Hint", "=", "MRI", ".", "getRegAllocationHint", "(", "VirtReg", ")", ";", "unsigned", "Odd", ";", "switch", "(", "Hint", ".", "first", ")", "{", "case", "ARMRI", "::", "RegPairEven", ":", "Odd", "=", "0", ";", "break", ";", "case", "ARMRI", "::", "RegPairOdd", ":", "Odd", "=", "1", ";", "break", ";", "default", ":", "TargetRegisterInfo", "::", "getRegAllocationHints", "(", "VirtReg", ",", "Order", ",", "Hints", ",", "MF", ",", "VRM", ")", ";", "return", "false", ";", "}", "Register", "Paired", "=", "Hint", ".", "second", ";", "if", "(", "!", "Paired", ")", "return", "false", ";", "Register", "PairedPhys", ";", "if", "(", "Paired", ".", "isPhysical", "(", ")", ")", "{", "PairedPhys", "=", "Paired", ";", "}", "else", "if", "(", "VRM", "&&", "VRM", "->", "hasPhys", "(", "Paired", ")", ")", "{", "PairedPhys", "=", "getPairedGPR", "(", "VRM", "->", "getPhys", "(", "Paired", ")", ",", "Odd", ",", "this", ")", ";", "}", "if", "(", "PairedPhys", "&&", "is_contained", "(", "Order", ",", "PairedPhys", ")", ")", "Hints", ".", "push_back", "(", "PairedPhys", ")", ";", "for", "(", "MCPhysReg", "Reg", ":", "Order", ")", "{", "if", "(", "Reg", "==", "PairedPhys", "||", "(", "getEncodingValue", "(", "Reg", ")", "&", "1", ")", "!=", "Odd", ")", "continue", ";", "MCPhysReg", "Paired", "=", "getPairedGPR", "(", "Reg", ",", "!", "Odd", ",", "this", ")", ";", "if", "(", "!", "Paired", "||", "MRI", ".", "isReserved", "(", "Paired", ")", ")", "continue", ";", "Hints", ".", "push_back", "(", "Reg", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Get", "a", "list", "of", "'hint", "'", "registers", "that", "the", "register", "allocator", "should", "try", "first", "when", "allocating", "a", "physical", "register", "for", "the", "virtual", "register", "VirtReg", "."], "TS_V_token": ["ARM", "ARM", "ARMRI::RegPairEven", "0", "ARMRI::RegPairOdd", "1", "1"], "File": "ARMBaseRegisterInfo16", "Func": "getRegAllocationHints", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1215, "Length": 265, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ScheduleHazardRecognizer", "*", "PPCInstrInfo", "::", "CreateTargetHazardRecognizer", "(", "const", "TargetMachine", "*", "TM", ",", "const", "ScheduleDAG", "*", "DAG", ")", "const", "{", "const", "TargetInstrInfo", "*", "TII", "=", "TM", "->", "getInstrInfo", "(", ")", ";", "assert", "(", "TII", "&&", "\"No InstrInfo?\"", ")", ";", "unsigned", "Directive", "=", "TM", "->", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ".", "getDarwinDirective", "(", ")", ";", "if", "(", "Directive", "==", "PPC", "::", "DIR_440", ")", "{", "const", "InstrItineraryData", "*", "II", "=", "TM", "->", "getInstrItineraryData", "(", ")", ";", "return", "new", "PPCHazardRecognizer440", "(", "II", ",", "DAG", ")", ";", "}", "else", "{", "return", "new", "PPCHazardRecognizer970", "(", "*", "TII", ")", ";", "}", "}", ""], "natrual_language": ["Allocate", "and", "return", "a", "hazard", "recognizer", "to", "use", "for", "this", "target", "when", "scheduling", "the", "machine", "instructions", "before", "register", "allocation", "."], "TS_V_token": ["PowerPC", "PPC", "\"No InstrInfo?\"", "PPC", "PPC::DIR_440", "PPC", "PPC"], "File": "PPCInstrInfo117", "Func": "CreateTargetHazardRecognizer", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1216, "Length": 94, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64AsmBackend", "::", "fixupNeedsRelaxation", "(", "const", "MCFixup", "&", "Fixup", ",", "uint64_t", "Value", ",", "const", "MCRelaxableFragment", "*", "DF", ",", "const", "MCAsmLayout", "&", "Layout", ")", "const", "{", "return", "int64_t", "(", "Value", ")", "!=", "int64_t", "(", "int8_t", "(", "Value", ")", ")", ";", "}", ""], "natrual_language": ["Simple", "predicate", "for", "targets", "where", "!", "Resolved", "implies", "requiring", "relaxation", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64AsmBackend (2)", "Func": "fixupNeedsRelaxation", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1217, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMFrameLowering", "::", "canSimplifyCallFramePseudos", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "hasReservedCallFrame", "(", "MF", ")", "||", "MF", ".", "getFrameInfo", "(", ")", "->", "hasVarSizedObjects", "(", ")", ";", "}", ""], "natrual_language": ["canSimplifyCallFramePseudos", "-", "If", "there", "is", "a", "reserved", "call", "frame", ",", "the", "call", "frame", "pseudos", "can", "be", "simplified", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMFrameLowering (2)", "Func": "canSimplifyCallFramePseudos", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1218, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "mmix_asm_output_skip", "(", "FILE", "*", "stream", ",", "int", "nbytes", ")", "{", "fprintf", "(", "stream", ",", "\"\\tLOC @+%d\\n\"", ",", "nbytes", ")", ";", "}", ""], "natrual_language": ["ASM_OUTPUT_SKIP", "."], "TS_V_token": ["mmix", "\"\\tLOC @+%d\\n\""], "File": "mmix", "Func": "mmix_asm_output_skip", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1219, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZPassConfig", "::", "addIRPasses", "(", ")", "{", "TargetPassConfig", "::", "addIRPasses", "(", ")", ";", "}", ""], "natrual_language": ["Add", "common", "target", "configurable", "passes", "that", "perform", "LLVM", "IR", "to", "IR", "transforms", "following", "machine", "independent", "optimization", "."], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZTargetMachine12", "Func": "addIRPasses", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1220, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86CmovConverterPass", "::", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "{", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "AU", ".", "addRequired", "<", "MachineLoopInfo", ">", "(", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["X86", "X86"], "File": "X86CmovConversion (2)", "Func": "getAnalysisUsage", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1221, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "X86Subtarget", "*", "X86TargetMachine", "::", "getSubtargetImpl", "(", "const", "Function", "&", "F", ")", "const", "{", "Attribute", "CPUAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-cpu\"", ")", ";", "Attribute", "FSAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-features\"", ")", ";", "StringRef", "CPU", "=", "!", "CPUAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "CPUAttr", ".", "getValueAsString", "(", ")", ":", "(", "StringRef", ")", "TargetCPU", ";", "StringRef", "FS", "=", "!", "FSAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "FSAttr", ".", "getValueAsString", "(", ")", ":", "(", "StringRef", ")", "TargetFS", ";", "SmallString", "<", "512", ">", "Key", ";", "Key", ".", "reserve", "(", "CPU", ".", "size", "(", ")", "+", "FS", ".", "size", "(", ")", ")", ";", "Key", "+=", "CPU", ";", "Key", "+=", "FS", ";", "bool", "SoftFloat", "=", "F", ".", "getFnAttribute", "(", "\"use-soft-float\"", ")", ".", "getValueAsString", "(", ")", "==", "\"true\"", ";", "if", "(", "SoftFloat", ")", "Key", "+=", "FS", ".", "empty", "(", ")", "?", "\"+soft-float\"", ":", "\",+soft-float\"", ";", "FS", "=", "Key", ".", "substr", "(", "CPU", ".", "size", "(", ")", ")", ";", "auto", "&", "I", "=", "SubtargetMap", "[", "Key", "]", ";", "if", "(", "!", "I", ")", "{", "resetTargetOptions", "(", "F", ")", ";", "I", "=", "llvm", "::", "make_unique", "<", "X86Subtarget", ">", "(", "TargetTriple", ",", "CPU", ",", "FS", ",", "*", "this", ",", "Options", ".", "StackAlignmentOverride", ")", ";", "GISelAccessor", "*", "GISel", "=", "new", "GISelAccessor", "(", ")", ";", "X86GISelActualAccessor", "*", "GISel", "=", "new", "X86GISelActualAccessor", "(", "new", "X86CallLowering", "(", "*", "I", "->", "getTargetLowering", "(", ")", ")", ")", ";", "I", "->", "setGISelAccessor", "(", "*", "GISel", ")", ";", "}", "return", "I", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["X86", "X86", "X86", "\"target-cpu\"", "\"target-features\"", "512", "\"use-soft-float\"", "\"true\"", "\"+soft-float\"", "\",+soft-float\"", "X86", "X86", "X86", "X86"], "File": "X86TargetMachine45", "Func": "getSubtargetImpl", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1222, "Length": 246, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "SparcTargetLowering", "::", "getRegForInlineAsmConstraint", "(", "const", "TargetRegisterInfo", "*", "TRI", ",", "StringRef", "Constraint", ",", "MVT", "VT", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'r'", ":", "if", "(", "VT", "==", "MVT", "::", "v2i32", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SP", "::", "IntPairRegClass", ")", ";", "else", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SP", "::", "IntRegsRegClass", ")", ";", "case", "'f'", ":", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SP", "::", "FPRegsRegClass", ")", ";", "else", "if", "(", "VT", "==", "MVT", "::", "f64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SP", "::", "LowDFPRegsRegClass", ")", ";", "else", "if", "(", "VT", "==", "MVT", "::", "f128", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SP", "::", "LowQFPRegsRegClass", ")", ";", "llvm_unreachable", "(", "\"Unknown ValueType for f-register-type!\"", ")", ";", "break", ";", "case", "'e'", ":", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SP", "::", "FPRegsRegClass", ")", ";", "else", "if", "(", "VT", "==", "MVT", "::", "f64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SP", "::", "DFPRegsRegClass", ")", ";", "else", "if", "(", "VT", "==", "MVT", "::", "f128", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SP", "::", "QFPRegsRegClass", ")", ";", "llvm_unreachable", "(", "\"Unknown ValueType for e-register-type!\"", ")", ";", "break", ";", "}", "}", "else", "if", "(", "!", "Constraint", ".", "empty", "(", ")", "&&", "Constraint", ".", "size", "(", ")", "<=", "5", "&&", "Constraint", "[", "0", "]", "==", "'{'", "&&", "*", "(", "Constraint", ".", "end", "(", ")", "-", "1", ")", "==", "'}'", ")", "{", "StringRef", "name", "(", "Constraint", ".", "data", "(", ")", "+", "1", ",", "Constraint", ".", "size", "(", ")", "-", "2", ")", ";", "uint64_t", "intVal", "=", "0", ";", "if", "(", "name", ".", "substr", "(", "0", ",", "1", ")", ".", "equals", "(", "\"r\"", ")", "&&", "!", "name", ".", "substr", "(", "1", ")", ".", "getAsInteger", "(", "10", ",", "intVal", ")", "&&", "intVal", "<=", "31", ")", "{", "const", "char", "regTypes", "[", "]", "=", "{", "'g'", ",", "'o'", ",", "'l'", ",", "'i'", "}", ";", "char", "regType", "=", "regTypes", "[", "intVal", "/", "8", "]", ";", "char", "regIdx", "=", "'0'", "+", "(", "intVal", "%", "8", ")", ";", "char", "tmp", "[", "]", "=", "{", "'{'", ",", "regType", ",", "regIdx", ",", "'}'", ",", "0", "}", ";", "std", "::", "string", "newConstraint", "=", "std", "::", "string", "(", "tmp", ")", ";", "return", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "TRI", ",", "newConstraint", ",", "VT", ")", ";", "}", "}", "return", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "TRI", ",", "Constraint", ",", "VT", ")", ";", "}", ""], "natrual_language": ["Given", "a", "physical", "register", "constraint", "(", "e.g", "."], "TS_V_token": ["Sparc", "Sparc", "1", "0", "MVT::v2i32", "0U", "SP::IntPairRegClass", "0U", "SP::IntRegsRegClass", "MVT::f32", "0U", "SP::FPRegsRegClass", "MVT::f64", "0U", "SP::LowDFPRegsRegClass", "MVT::f128", "0U", "SP::LowQFPRegsRegClass", "\"Unknown ValueType for f-register-type!\"", "MVT::f32", "0U", "SP::FPRegsRegClass", "MVT::f64", "0U", "SP::DFPRegsRegClass", "MVT::f128", "0U", "SP::QFPRegsRegClass", "\"Unknown ValueType for e-register-type!\"", "5", "0", "1", "1", "2", "0", "0", "1", "\"r\"", "1", "10", "31", "8", "8", "0"], "File": "SparcISelLowering20", "Func": "getRegForInlineAsmConstraint", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1223, "Length": 429, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "quad_aligned_load_p", "(", "swap_web_entry", "*", "insn_entry", ",", "rtx_insn", "*", "insn", ")", "{", "unsigned", "uid", "=", "INSN_UID", "(", "insn", ")", ";", "if", "(", "!", "insn_entry", "[", "uid", "]", ".", "is_swap", "||", "insn_entry", "[", "uid", "]", ".", "is_load", ")", "return", "false", ";", "struct", "df_insn_info", "*", "insn_info", "=", "DF_INSN_INFO_GET", "(", "insn", ")", ";", "df_ref", "use", "=", "DF_INSN_INFO_USES", "(", "insn_info", ")", ";", "struct", "df_link", "*", "def_link", "=", "DF_REF_CHAIN", "(", "use", ")", ";", "if", "(", "!", "def_link", "||", "!", "def_link", "->", "ref", "||", "DF_REF_IS_ARTIFICIAL", "(", "def_link", "->", "ref", ")", "||", "def_link", "->", "next", ")", "return", "false", ";", "rtx", "def_insn", "=", "DF_REF_INSN", "(", "def_link", "->", "ref", ")", ";", "unsigned", "uid2", "=", "INSN_UID", "(", "def_insn", ")", ";", "if", "(", "!", "insn_entry", "[", "uid2", "]", ".", "is_load", "||", "!", "insn_entry", "[", "uid2", "]", ".", "is_swap", ")", "return", "false", ";", "rtx", "body", "=", "PATTERN", "(", "def_insn", ")", ";", "if", "(", "GET_CODE", "(", "body", ")", "!=", "SET", "||", "!", "(", "GET_CODE", "(", "SET_SRC", "(", "body", ")", ")", "==", "VEC_SELECT", "||", "pattern_is_rotate64", "(", "body", ")", ")", "||", "!", "MEM_P", "(", "XEXP", "(", "SET_SRC", "(", "body", ")", ",", "0", ")", ")", ")", "return", "false", ";", "rtx", "mem", "=", "XEXP", "(", "SET_SRC", "(", "body", ")", ",", "0", ")", ";", "rtx", "base_reg", "=", "XEXP", "(", "mem", ",", "0", ")", ";", "return", "(", "(", "REG_P", "(", "base_reg", ")", "||", "rs6000_sum_of_two_registers_p", "(", "base_reg", ")", ")", "&&", "MEM_ALIGN", "(", "mem", ")", ">=", "128", ")", "?", "true", ":", "false", ";", "}", ""], "natrual_language": ["Return", "TRUE", "if", "INSN", "represents", "a", "swap", "of", "a", "swapped", "load", "from", "memory", "and", "the", "memory", "address", "is", "quad-word", "aligned", "."], "TS_V_token": ["rs6000", "0", "0", "0", "128"], "File": "rs6000-p8swap", "Func": "quad_aligned_load_p", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1224, "Length": 234, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "has_part_mult", "(", "rtx_insn", "*", "insn", ")", "{", "rtx", "body", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "body", ")", "!=", "SET", ")", "return", "false", ";", "rtx", "src", "=", "SET_SRC", "(", "body", ")", ";", "if", "(", "GET_CODE", "(", "src", ")", "!=", "SUBREG", ")", "return", "false", ";", "rtx", "inner", "=", "XEXP", "(", "src", ",", "0", ")", ";", "return", "(", "GET_CODE", "(", "inner", ")", "==", "MULT", ")", ";", "}", ""], "natrual_language": ["INSN", "is", "known", "to", "contain", "a", "SUBREG", ",", "which", "we", "can", "normally", "handle", ",", "but", "if", "the", "SUBREG", "itself", "contains", "a", "MULT", "then", "we", "need", "to", "leave", "it", "alone", "to", "avoid", "turning", "a", "mult_hipart", "into", "a", "mult_lopart", ",", "for", "example", "."], "TS_V_token": ["rs6000", "0"], "File": "rs6000-p8swap", "Func": "has_part_mult", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1225, "Length": 70, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "aarch_crypto_can_dual_issue", "(", "rtx_insn", "*", "producer_insn", ",", "rtx_insn", "*", "consumer_insn", ")", "{", "rtx", "producer_set", ",", "consumer_set", ";", "rtx", "producer_src", ",", "consumer_src", ";", "producer_set", "=", "single_set", "(", "producer_insn", ")", ";", "consumer_set", "=", "single_set", "(", "consumer_insn", ")", ";", "producer_src", "=", "producer_set", "?", "SET_SRC", "(", "producer_set", ")", ":", "NULL", ";", "consumer_src", "=", "consumer_set", "?", "SET_SRC", "(", "consumer_set", ")", ":", "NULL", ";", "if", "(", "producer_src", "&&", "consumer_src", "&&", "GET_CODE", "(", "producer_src", ")", "==", "UNSPEC", "&&", "GET_CODE", "(", "consumer_src", ")", "==", "UNSPEC", "&&", "(", "(", "XINT", "(", "producer_src", ",", "1", ")", "==", "UNSPEC_AESE", "&&", "XINT", "(", "consumer_src", ",", "1", ")", "==", "UNSPEC_AESMC", ")", "||", "(", "XINT", "(", "producer_src", ",", "1", ")", "==", "UNSPEC_AESD", "&&", "XINT", "(", "consumer_src", ",", "1", ")", "==", "UNSPEC_AESIMC", ")", ")", ")", "{", "unsigned", "int", "regno", "=", "REGNO", "(", "SET_DEST", "(", "producer_set", ")", ")", ";", "return", "REGNO", "(", "SET_DEST", "(", "consumer_set", ")", ")", "==", "regno", "&&", "REGNO", "(", "XVECEXP", "(", "consumer_src", ",", "0", ",", "0", ")", ")", "==", "regno", ";", "}", "return", "0", ";", "}", ""], "natrual_language": ["In", "ARMv8-A", "there", "'s", "a", "general", "expectation", "that", "AESE/AESMC", "and", "AESD/AESIMC", "sequences", "of", "the", "form", ":", "AESE", "Vn", ",", "_", "AESMC", "Vn", ",", "Vn", "will", "issue", "both", "instructions", "in", "a", "single", "cycle", "on", "super-scalar", "implementations", ".", "This", "function", "identifies", "such", "pairs", "."], "TS_V_token": ["arm", "1", "1", "1", "1", "0", "0", "0"], "File": "aarch-common2", "Func": "aarch_crypto_can_dual_issue", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1226, "Length": 163, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "PPCTargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", ",", "DebugLoc", "dl", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "getTargetMachine", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_PPC", ")", ";", "if", "(", "DAG", ".", "getMachineFunction", "(", ")", ".", "getRegInfo", "(", ")", ".", "liveout_empty", "(", ")", ")", "{", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "DAG", ".", "getMachineFunction", "(", ")", ".", "getRegInfo", "(", ")", ".", "addLiveOut", "(", "RVLocs", "[", "i", "]", ".", "getLocReg", "(", ")", ")", ";", "}", "SDValue", "Flag", ";", "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", ")", ";", "}", "if", "(", "Flag", ".", "getNode", "(", ")", ")", "return", "DAG", ".", "getNode", "(", "PPCISD", "::", "RET_FLAG", ",", "dl", ",", "MVT", "::", "Other", ",", "Chain", ",", "Flag", ")", ";", "else", "return", "DAG", ".", "getNode", "(", "PPCISD", "::", "RET_FLAG", ",", "dl", ",", "MVT", "::", "Other", ",", "Chain", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["PowerPC", "PPC", "ISD::OutputArg", "16", "PPC", "0", "0", "\"Can only return in registers!\"", "1", "PPCISD::RET_FLAG", "MVT::Other", "PPCISD::RET_FLAG", "MVT::Other"], "File": "PPCISelLowering113", "Func": "LowerReturn", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1227, "Length": 269, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "enum", "tls_model", "tls_symbolic_operand_type", "(", "rtx", "addr", ")", "{", "enum", "tls_model", "tls_kind", "=", "TLS_MODEL_NONE", ";", "rtx", "sym", ",", "addend", ";", "if", "(", "GET_CODE", "(", "addr", ")", "==", "CONST", ")", "{", "split_const", "(", "addr", ",", "&", "sym", ",", "&", "addend", ")", ";", "if", "(", "GET_CODE", "(", "sym", ")", "==", "SYMBOL_REF", ")", "tls_kind", "=", "SYMBOL_REF_TLS_MODEL", "(", "sym", ")", ";", "}", "else", "if", "(", "GET_CODE", "(", "addr", ")", "==", "SYMBOL_REF", ")", "tls_kind", "=", "SYMBOL_REF_TLS_MODEL", "(", "addr", ")", ";", "return", "tls_kind", ";", "}", ""], "natrual_language": ["Return", "the", "TLS", "model", "to", "use", "for", "SYMBOL", "."], "TS_V_token": ["aarch64"], "File": "aarch642", "Func": "tls_symbolic_operand_type", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1228, "Length": 79, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_expand_vec_perm_1", "(", "rtx", "target", ",", "rtx", "op0", ",", "rtx", "op1", ",", "rtx", "sel", ")", "{", "machine_mode", "vmode", "=", "GET_MODE", "(", "target", ")", ";", "bool", "one_vector_p", "=", "rtx_equal_p", "(", "op0", ",", "op1", ")", ";", "gcc_checking_assert", "(", "vmode", "==", "V8QImode", "||", "vmode", "==", "V16QImode", ")", ";", "gcc_checking_assert", "(", "GET_MODE", "(", "op0", ")", "==", "vmode", ")", ";", "gcc_checking_assert", "(", "GET_MODE", "(", "op1", ")", "==", "vmode", ")", ";", "gcc_checking_assert", "(", "GET_MODE", "(", "sel", ")", "==", "vmode", ")", ";", "gcc_checking_assert", "(", "TARGET_NEON", ")", ";", "if", "(", "one_vector_p", ")", "{", "if", "(", "vmode", "==", "V8QImode", ")", "emit_insn", "(", "gen_neon_vtbl1v8qi", "(", "target", ",", "op0", ",", "sel", ")", ")", ";", "else", "emit_insn", "(", "gen_neon_vtbl1v16qi", "(", "target", ",", "op0", ",", "sel", ")", ")", ";", "}", "else", "{", "rtx", "pair", ";", "if", "(", "vmode", "==", "V8QImode", ")", "{", "pair", "=", "gen_reg_rtx", "(", "V16QImode", ")", ";", "emit_insn", "(", "gen_neon_vcombinev8qi", "(", "pair", ",", "op0", ",", "op1", ")", ")", ";", "pair", "=", "gen_lowpart", "(", "TImode", ",", "pair", ")", ";", "emit_insn", "(", "gen_neon_vtbl2v8qi", "(", "target", ",", "pair", ",", "sel", ")", ")", ";", "}", "else", "{", "pair", "=", "gen_reg_rtx", "(", "OImode", ")", ";", "emit_insn", "(", "gen_neon_vcombinev16qi", "(", "pair", ",", "op0", ",", "op1", ")", ")", ";", "emit_insn", "(", "gen_neon_vtbl2v16qi", "(", "target", ",", "pair", ",", "sel", ")", ")", ";", "}", "}", "}", ""], "natrual_language": ["Generate", "a", "variable", "permutation", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "arm_expand_vec_perm_1", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1229, "Length": 207, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86DomainReassignment", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "if", "(", "DisableX86DomainReassignment", ")", "return", "false", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** Machine Function before Domain Reassignment *****\\n\"", ")", ";", "LLVM_DEBUG", "(", "MF", ".", "print", "(", "dbgs", "(", ")", ")", ")", ";", "STI", "=", "&", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "if", "(", "!", "STI", "->", "hasAVX512", "(", ")", "||", "!", "STI", "->", "hasBWI", "(", ")", ")", "return", "false", ";", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "assert", "(", "MRI", "->", "isSSA", "(", ")", "&&", "\"Expected MIR to be in SSA form\"", ")", ";", "TII", "=", "STI", "->", "getInstrInfo", "(", ")", ";", "initConverters", "(", ")", ";", "bool", "Changed", "=", "false", ";", "EnclosedEdges", ".", "clear", "(", ")", ";", "EnclosedInstrs", ".", "clear", "(", ")", ";", "std", "::", "vector", "<", "Closure", ">", "Closures", ";", "unsigned", "ClosureID", "=", "0", ";", "for", "(", "unsigned", "Idx", "=", "0", ";", "Idx", "<", "MRI", "->", "getNumVirtRegs", "(", ")", ";", "++", "Idx", ")", "{", "unsigned", "Reg", "=", "Register", "::", "index2VirtReg", "(", "Idx", ")", ";", "if", "(", "!", "isGPR", "(", "MRI", "->", "getRegClass", "(", "Reg", ")", ")", ")", "continue", ";", "if", "(", "EnclosedEdges", ".", "count", "(", "Reg", ")", ")", "continue", ";", "Closure", "C", "(", "ClosureID", "++", ",", "{", "MaskDomain", "}", ")", ";", "buildClosure", "(", "C", ",", "Reg", ")", ";", "if", "(", "!", "C", ".", "empty", "(", ")", "&&", "C", ".", "isLegal", "(", "MaskDomain", ")", ")", "Closures", ".", "push_back", "(", "std", "::", "move", "(", "C", ")", ")", ";", "}", "for", "(", "Closure", "&", "C", ":", "Closures", ")", "{", "LLVM_DEBUG", "(", "C", ".", "dump", "(", "MRI", ")", ")", ";", "if", "(", "isReassignmentProfitable", "(", "C", ",", "MaskDomain", ")", ")", "{", "reassign", "(", "C", ",", "MaskDomain", ")", ";", "++", "NumClosuresConverted", ";", "Changed", "=", "true", ";", "}", "}", "DeleteContainerSeconds", "(", "Converters", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** Machine Function after Domain Reassignment *****\\n\"", ")", ";", "LLVM_DEBUG", "(", "MF", ".", "print", "(", "dbgs", "(", ")", ")", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "\"***** Machine Function before Domain Reassignment *****\\n\"", "X86", "\"Expected MIR to be in SSA form\"", "0", "0", "\"***** Machine Function after Domain Reassignment *****\\n\""], "File": "X86DomainReassignment23", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1230, "Length": 322, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "ix86_vectorize_builtin_scatter", "(", "const_tree", "vectype", ",", "const_tree", "index_type", ",", "int", "scale", ")", "{", "bool", "si", ";", "enum", "ix86_builtins", "code", ";", "if", "(", "!", "TARGET_AVX512F", ")", "return", "NULL_TREE", ";", "if", "(", "known_eq", "(", "TYPE_VECTOR_SUBPARTS", "(", "vectype", ")", ",", "2u", ")", "?", "!", "TARGET_USE_SCATTER_2PARTS", ":", "(", "known_eq", "(", "TYPE_VECTOR_SUBPARTS", "(", "vectype", ")", ",", "4u", ")", "?", "!", "TARGET_USE_SCATTER_4PARTS", ":", "!", "TARGET_USE_SCATTER", ")", ")", "return", "NULL_TREE", ";", "if", "(", "(", "TREE_CODE", "(", "index_type", ")", "!=", "INTEGER_TYPE", "&&", "!", "POINTER_TYPE_P", "(", "index_type", ")", ")", "||", "(", "TYPE_MODE", "(", "index_type", ")", "!=", "SImode", "&&", "TYPE_MODE", "(", "index_type", ")", "!=", "DImode", ")", ")", "return", "NULL_TREE", ";", "if", "(", "TYPE_PRECISION", "(", "index_type", ")", ">", "POINTER_SIZE", ")", "return", "NULL_TREE", ";", "if", "(", "TYPE_PRECISION", "(", "index_type", ")", "<", "POINTER_SIZE", "&&", "TYPE_UNSIGNED", "(", "index_type", ")", ")", "return", "NULL_TREE", ";", "if", "(", "scale", "<=", "0", "||", "scale", ">", "8", "||", "(", "scale", "&", "(", "scale", "-", "1", ")", ")", "!=", "0", ")", "return", "NULL_TREE", ";", "si", "=", "TYPE_MODE", "(", "index_type", ")", "==", "SImode", ";", "switch", "(", "TYPE_MODE", "(", "vectype", ")", ")", "{", "case", "E_V8DFmode", ":", "code", "=", "si", "?", "IX86_BUILTIN_SCATTERALTSIV8DF", ":", "IX86_BUILTIN_SCATTERDIV8DF", ";", "break", ";", "case", "E_V8DImode", ":", "code", "=", "si", "?", "IX86_BUILTIN_SCATTERALTSIV8DI", ":", "IX86_BUILTIN_SCATTERDIV8DI", ";", "break", ";", "case", "E_V16SFmode", ":", "code", "=", "si", "?", "IX86_BUILTIN_SCATTERSIV16SF", ":", "IX86_BUILTIN_SCATTERALTDIV16SF", ";", "break", ";", "case", "E_V16SImode", ":", "code", "=", "si", "?", "IX86_BUILTIN_SCATTERSIV16SI", ":", "IX86_BUILTIN_SCATTERALTDIV16SI", ";", "break", ";", "case", "E_V4DFmode", ":", "if", "(", "TARGET_AVX512VL", ")", "code", "=", "si", "?", "IX86_BUILTIN_SCATTERALTSIV4DF", ":", "IX86_BUILTIN_SCATTERDIV4DF", ";", "else", "return", "NULL_TREE", ";", "break", ";", "case", "E_V4DImode", ":", "if", "(", "TARGET_AVX512VL", ")", "code", "=", "si", "?", "IX86_BUILTIN_SCATTERALTSIV4DI", ":", "IX86_BUILTIN_SCATTERDIV4DI", ";", "else", "return", "NULL_TREE", ";", "break", ";", "case", "E_V8SFmode", ":", "if", "(", "TARGET_AVX512VL", ")", "code", "=", "si", "?", "IX86_BUILTIN_SCATTERSIV8SF", ":", "IX86_BUILTIN_SCATTERALTDIV8SF", ";", "else", "return", "NULL_TREE", ";", "break", ";", "case", "E_V8SImode", ":", "if", "(", "TARGET_AVX512VL", ")", "code", "=", "si", "?", "IX86_BUILTIN_SCATTERSIV8SI", ":", "IX86_BUILTIN_SCATTERALTDIV8SI", ";", "else", "return", "NULL_TREE", ";", "break", ";", "case", "E_V2DFmode", ":", "if", "(", "TARGET_AVX512VL", ")", "code", "=", "si", "?", "IX86_BUILTIN_SCATTERALTSIV2DF", ":", "IX86_BUILTIN_SCATTERDIV2DF", ";", "else", "return", "NULL_TREE", ";", "break", ";", "case", "E_V2DImode", ":", "if", "(", "TARGET_AVX512VL", ")", "code", "=", "si", "?", "IX86_BUILTIN_SCATTERALTSIV2DI", ":", "IX86_BUILTIN_SCATTERDIV2DI", ";", "else", "return", "NULL_TREE", ";", "break", ";", "case", "E_V4SFmode", ":", "if", "(", "TARGET_AVX512VL", ")", "code", "=", "si", "?", "IX86_BUILTIN_SCATTERSIV4SF", ":", "IX86_BUILTIN_SCATTERALTDIV4SF", ";", "else", "return", "NULL_TREE", ";", "break", ";", "case", "E_V4SImode", ":", "if", "(", "TARGET_AVX512VL", ")", "code", "=", "si", "?", "IX86_BUILTIN_SCATTERSIV4SI", ":", "IX86_BUILTIN_SCATTERALTDIV4SI", ";", "else", "return", "NULL_TREE", ";", "break", ";", "default", ":", "return", "NULL_TREE", ";", "}", "return", "get_ix86_builtin", "(", "code", ")", ";", "}", ""], "natrual_language": ["Returns", "a", "decl", "of", "a", "function", "that", "implements", "scatter", "store", "with", "register", "type", "VECTYPE", "and", "index", "type", "INDEX_TYPE", "and", "SCALE", ".", "Return", "NULL_TREE", "if", "it", "is", "not", "available", "."], "TS_V_token": ["i386", "2u", "4u", "0", "8", "1", "0"], "File": "i3861", "Func": "ix86_vectorize_builtin_scatter", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1231, "Length": 405, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "dump", "(", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Reduction:\\n\"", ";", "for", "(", "auto", "*", "Add", ":", "Adds", ")", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "*", "Add", "<<", "\"\\n\"", ")", ";", "for", "(", "auto", "&", "Mul", ":", "Muls", ")", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "*", "Mul", "->", "Root", "<<", "\"\\n\"", "<<", "\" \"", "<<", "*", "Mul", "->", "LHS", "<<", "\"\\n\"", "<<", "\" \"", "<<", "*", "Mul", "->", "RHS", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "if", "(", "Acc", ")", "dbgs", "(", ")", "<<", "\"Acc in: \"", "<<", "*", "Acc", "<<", "\"\\n\"", ")", ")", ";", "}", ""], "natrual_language": ["Dump", "the", "plan", "to", "stderr", "(", "for", "debugging", ")", "."], "TS_V_token": ["ARM", "\"Reduction:\\n\"", "\"\\n\"", "\"\\n\"", "\" \"", "\"\\n\"", "\" \"", "\"\\n\"", "\"Acc in: \"", "\"\\n\""], "File": "ARMParallelDSP10", "Func": "dump", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1232, "Length": 93, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ConstantPool", "*", "AssemblerConstantPools", "::", "getConstantPool", "(", "const", "MCSection", "*", "Section", ")", "{", "ConstantPoolMapTy", "::", "iterator", "CP", "=", "ConstantPools", ".", "find", "(", "Section", ")", ";", "if", "(", "CP", "==", "ConstantPools", ".", "end", "(", ")", ")", "return", "0", ";", "return", "&", "CP", "->", "second", ";", "}", ""], "natrual_language": ["Return", "a", "pseudo", "source", "value", "referencing", "the", "constant", "pool", "."], "TS_V_token": ["ARM", "0"], "File": "ARMTargetStreamer10", "Func": "getConstantPool", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1233, "Length": 44, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "rs6000_address_for_altivec", "(", "rtx", "x", ")", "{", "gcc_assert", "(", "MEM_P", "(", "x", ")", ")", ";", "if", "(", "!", "altivec_indexed_or_indirect_operand", "(", "x", ",", "GET_MODE", "(", "x", ")", ")", ")", "{", "rtx", "addr", "=", "XEXP", "(", "x", ",", "0", ")", ";", "int", "strict_p", "=", "(", "reload_in_progress", "||", "reload_completed", ")", ";", "if", "(", "!", "legitimate_indexed_address_p", "(", "addr", ",", "strict_p", ")", "&&", "!", "legitimate_indirect_address_p", "(", "addr", ",", "strict_p", ")", ")", "addr", "=", "copy_to_mode_reg", "(", "Pmode", ",", "addr", ")", ";", "addr", "=", "gen_rtx_AND", "(", "Pmode", ",", "addr", ",", "GEN_INT", "(", "-", "16", ")", ")", ";", "x", "=", "change_address", "(", "x", ",", "GET_MODE", "(", "x", ")", ",", "addr", ")", ";", "}", "return", "x", ";", "}", ""], "natrual_language": ["Given", "a", "memory", "reference", ",", "if", "it", "is", "not", "in", "the", "form", "for", "altivec", "memory", "reference", "instructions", "(", "i.e", ".", "reg", "or", "reg+reg", "addressing", "with", "AND", "of", "-16", ")", ",", "convert", "to", "the", "altivec", "format", "."], "TS_V_token": ["powerpcspe", "0", "16"], "File": "powerpcspe", "Func": "rs6000_address_for_altivec", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1234, "Length": 109, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "TOYFrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "getLastNonDebugInstr", "(", ")", ";", "DebugLoc", "dl", "=", "MBBI", "->", "getDebugLoc", "(", ")", ";", "uint64_t", "StackSize", "=", "computeStackSize", "(", "MF", ")", ";", "if", "(", "!", "StackSize", ")", "{", "return", ";", "}", "unsigned", "StackReg", "=", "TOY", "::", "SP", ";", "unsigned", "OffsetReg", "=", "materializeOffset", "(", "MF", ",", "MBB", ",", "MBBI", ",", "(", "unsigned", ")", "StackSize", ")", ";", "if", "(", "OffsetReg", ")", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "TOY", "::", "ADDrr", ")", ",", "StackReg", ")", ".", "addReg", "(", "StackReg", ")", ".", "addReg", "(", "OffsetReg", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ";", "}", "else", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "TOY", "::", "ADDri", ")", ",", "StackReg", ")", ".", "addReg", "(", "StackReg", ")", ".", "addImm", "(", "StackSize", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ";", "}", "}", ""], "natrual_language": ["Insert", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["TOY", "TOY", "TOY::SP", "TOY::ADDrr", "TOY::ADDri"], "File": "TOYFrameLowering1", "Func": "emitEpilogue", "Target": "TOY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1235, "Length": 176, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "reg_class_t", "mips_ira_change_pseudo_allocno_class", "(", "int", "regno", ",", "reg_class_t", "allocno_class", ",", "reg_class_t", "best_class", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "INTEGRAL_MODE_P", "(", "PSEUDO_REGNO_MODE", "(", "regno", ")", ")", "&&", "allocno_class", "==", "ALL_REGS", ")", "return", "GR_REGS", ";", "return", "allocno_class", ";", "}", ""], "natrual_language": ["Implement", "TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_ira_change_pseudo_allocno_class", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1236, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsCallLowering", "::", "lowerReturn", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "const", "Value", "*", "Val", ",", "ArrayRef", "<", "Register", ">", "VRegs", ")", "const", "{", "MachineInstrBuilder", "Ret", "=", "MIRBuilder", ".", "buildInstrNoInsert", "(", "Mips", "::", "RetRA", ")", ";", "if", "(", "Val", "!=", "nullptr", "&&", "!", "isSupportedType", "(", "Val", "->", "getType", "(", ")", ")", ")", "return", "false", ";", "if", "(", "!", "VRegs", ".", "empty", "(", ")", ")", "{", "MachineFunction", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "const", "Function", "&", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "const", "DataLayout", "&", "DL", "=", "MF", ".", "getDataLayout", "(", ")", ";", "const", "MipsTargetLowering", "&", "TLI", "=", "*", "getTLI", "<", "MipsTargetLowering", ">", "(", ")", ";", "LLVMContext", "&", "Ctx", "=", "Val", "->", "getType", "(", ")", "->", "getContext", "(", ")", ";", "SmallVector", "<", "EVT", ",", "4", ">", "SplitEVTs", ";", "ComputeValueVTs", "(", "TLI", ",", "DL", ",", "Val", "->", "getType", "(", ")", ",", "SplitEVTs", ")", ";", "assert", "(", "VRegs", ".", "size", "(", ")", "==", "SplitEVTs", ".", "size", "(", ")", "&&", "\"For each split Type there should be exactly one VReg.\"", ")", ";", "SmallVector", "<", "ArgInfo", ",", "8", ">", "RetInfos", ";", "SmallVector", "<", "unsigned", ",", "8", ">", "OrigArgIndices", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "SplitEVTs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "ArgInfo", "CurArgInfo", "=", "ArgInfo", "{", "VRegs", "[", "i", "]", ",", "SplitEVTs", "[", "i", "]", ".", "getTypeForEVT", "(", "Ctx", ")", "}", ";", "setArgFlags", "(", "CurArgInfo", ",", "AttributeList", "::", "ReturnIndex", ",", "DL", ",", "F", ")", ";", "splitToValueTypes", "(", "CurArgInfo", ",", "0", ",", "RetInfos", ",", "OrigArgIndices", ")", ";", "}", "SmallVector", "<", "ISD", "::", "OutputArg", ",", "8", ">", "Outs", ";", "subTargetRegTypeForCallingConv", "(", "F", ",", "RetInfos", ",", "OrigArgIndices", ",", "Outs", ")", ";", "SmallVector", "<", "CCValAssign", ",", "16", ">", "ArgLocs", ";", "MipsCCState", "CCInfo", "(", "F", ".", "getCallingConv", "(", ")", ",", "F", ".", "isVarArg", "(", ")", ",", "MF", ",", "ArgLocs", ",", "F", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "TLI", ".", "CCAssignFnForReturn", "(", ")", ")", ";", "setLocInfo", "(", "ArgLocs", ",", "Outs", ")", ";", "OutgoingValueHandler", "RetHandler", "(", "MIRBuilder", ",", "MF", ".", "getRegInfo", "(", ")", ",", "Ret", ")", ";", "if", "(", "!", "RetHandler", ".", "handle", "(", "ArgLocs", ",", "RetInfos", ")", ")", "{", "return", "false", ";", "}", "}", "MIRBuilder", ".", "insertInstr", "(", "Ret", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "hook", "behaves", "as", "the", "extended", "lowerReturn", "function", ",", "but", "for", "targets", "that", "do", "not", "support", "swifterror", "value", "promotion", "."], "TS_V_token": ["Mips", "Mips", "Mips::RetRA", "Mips", "Mips", "4", "\"For each split Type there should be exactly one VReg.\"", "8", "8", "0", "0", "ISD::OutputArg", "8", "16", "Mips"], "File": "MipsCallLowering10", "Func": "lowerReturn", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1237, "Length": 361, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "build_all", "(", "function_builder", "&", "b", ",", "const", "char", "*", "signature", ",", "const", "function_group_info", "&", "group", ",", "mode_suffix_index", "mode_suffix_id", ",", "bool", "force_direct_overloads", "=", "false", ")", "{", "for", "(", "unsigned", "int", "pi", "=", "0", ";", "group", ".", "preds", "[", "pi", "]", "!=", "NUM_PREDS", ";", "++", "pi", ")", "for", "(", "unsigned", "int", "ti", "=", "0", ";", "ti", "==", "0", "||", "group", ".", "types", "[", "ti", "]", "[", "0", "]", "!=", "NUM_TYPE_SUFFIXES", ";", "++", "ti", ")", "build_one", "(", "b", ",", "signature", ",", "group", ",", "mode_suffix_id", ",", "ti", ",", "pi", ",", "force_direct_overloads", ")", ";", "}", ""], "natrual_language": ["Add", "a", "function", "instance", "for", "every", "operand", "&", "&", "predicate", "&", "&", "args", "combination", "in", "GROUP", ".", "Take", "the", "function", "base", "name", "from", "GROUP", "&", "&", "operand", "suffix", "from", "operand_suffixes", "&", "&", "mode", "suffix", "from", "type_suffixes", "&", "&", "predication", "suffix", "from", "predication_suffixes", ".", "Use", "apply_predication", "to", "add", "in", "the", "predicate", "."], "TS_V_token": ["aarch64", "0", "0", "0", "0"], "File": "aarch64-sve-builtins-shapes", "Func": "build_all", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1238, "Length": 92, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "LanaiAsmPrinter", "::", "PrintAsmOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNo", ",", "unsigned", "AsmVariant", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "O", ")", "{", "if", "(", "ExtraCode", "&&", "ExtraCode", "[", "0", "]", ")", "{", "if", "(", "ExtraCode", "[", "1", "]", ")", "return", "true", ";", "switch", "(", "ExtraCode", "[", "0", "]", ")", "{", "case", "'H'", ":", "{", "if", "(", "OpNo", "==", "0", ")", "return", "true", ";", "const", "MachineOperand", "&", "FlagsOP", "=", "MI", "->", "getOperand", "(", "OpNo", "-", "1", ")", ";", "if", "(", "!", "FlagsOP", ".", "isImm", "(", ")", ")", "return", "true", ";", "unsigned", "Flags", "=", "FlagsOP", ".", "getImm", "(", ")", ";", "unsigned", "NumVals", "=", "InlineAsm", "::", "getNumOperandRegisters", "(", "Flags", ")", ";", "if", "(", "NumVals", "!=", "2", ")", "return", "true", ";", "unsigned", "RegOp", "=", "OpNo", "+", "1", ";", "if", "(", "RegOp", ">=", "MI", "->", "getNumOperands", "(", ")", ")", "return", "true", ";", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "RegOp", ")", ";", "if", "(", "!", "MO", ".", "isReg", "(", ")", ")", "return", "true", ";", "unsigned", "Reg", "=", "MO", ".", "getReg", "(", ")", ";", "O", "<<", "LanaiInstPrinter", "::", "getRegisterName", "(", "Reg", ")", ";", "return", "false", ";", "}", "default", ":", "return", "true", ";", "}", "}", "printOperand", "(", "MI", ",", "OpNo", ",", "O", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["PrintAsmOperand", "-", "Print", "out", "an", "operand", "for", "an", "inline", "asm", "expression", "."], "TS_V_token": ["Lanai", "Lanai", "0", "1", "0", "0", "1", "2", "1", "Lanai"], "File": "LanaiAsmPrinter", "Func": "PrintAsmOperand", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1239, "Length": 207, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64AsmBackend", "::", "shouldForceRelocation", "(", "const", "MCAssembler", "&", "Asm", ",", "const", "MCFixup", "&", "Fixup", ",", "const", "MCValue", "&", "Target", ")", "{", "unsigned", "Kind", "=", "Fixup", ".", "getKind", "(", ")", ";", "if", "(", "Kind", "==", "FK_NONE", ")", "return", "true", ";", "if", "(", "Kind", "==", "AArch64", "::", "fixup_aarch64_pcrel_adrp_imm21", ")", "return", "true", ";", "AArch64MCExpr", "::", "VariantKind", "RefKind", "=", "static_cast", "<", "AArch64MCExpr", "::", "VariantKind", ">", "(", "Target", ".", "getRefKind", "(", ")", ")", ";", "AArch64MCExpr", "::", "VariantKind", "SymLoc", "=", "AArch64MCExpr", "::", "getSymbolLoc", "(", "RefKind", ")", ";", "if", "(", "Kind", "==", "AArch64", "::", "fixup_aarch64_ldr_pcrel_imm19", "&&", "SymLoc", "==", "AArch64MCExpr", "::", "VK_GOT", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Hook", "to", "check", "if", "a", "relocation", "is", "needed", "for", "some", "target", "specific", "reason", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::fixup_aarch64_pcrel_adrp_imm21", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64::fixup_aarch64_ldr_pcrel_imm19", "AArch64"], "File": "AArch64AsmBackend40", "Func": "shouldForceRelocation", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1240, "Length": 102, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "LoongArchSubtarget", "*", "LoongArchTargetMachine", "::", "getSubtargetImpl", "(", "const", "Function", "&", "F", ")", "const", "{", "Attribute", "CPUAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-cpu\"", ")", ";", "Attribute", "TuneAttr", "=", "F", ".", "getFnAttribute", "(", "\"tune-cpu\"", ")", ";", "Attribute", "FSAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-features\"", ")", ";", "std", "::", "string", "CPU", "=", "CPUAttr", ".", "isValid", "(", ")", "?", "CPUAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetCPU", ";", "std", "::", "string", "TuneCPU", "=", "TuneAttr", ".", "isValid", "(", ")", "?", "TuneAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "CPU", ";", "std", "::", "string", "FS", "=", "FSAttr", ".", "isValid", "(", ")", "?", "FSAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetFS", ";", "std", "::", "string", "Key", "=", "CPU", "+", "TuneCPU", "+", "FS", ";", "auto", "&", "I", "=", "SubtargetMap", "[", "Key", "]", ";", "if", "(", "!", "I", ")", "{", "resetTargetOptions", "(", "F", ")", ";", "auto", "ABIName", "=", "Options", ".", "MCOptions", ".", "getABIName", "(", ")", ";", "if", "(", "const", "MDString", "*", "ModuleTargetABI", "=", "dyn_cast_or_null", "<", "MDString", ">", "(", "F", ".", "getParent", "(", ")", "->", "getModuleFlag", "(", "\"target-abi\"", ")", ")", ")", "{", "auto", "TargetABI", "=", "LoongArchABI", "::", "getTargetABI", "(", "ABIName", ")", ";", "if", "(", "TargetABI", "!=", "LoongArchABI", "::", "ABI_Unknown", "&&", "ModuleTargetABI", "->", "getString", "(", ")", "!=", "ABIName", ")", "{", "report_fatal_error", "(", "\"-target-abi option != target-abi module flag\"", ")", ";", "}", "ABIName", "=", "ModuleTargetABI", "->", "getString", "(", ")", ";", "}", "I", "=", "std", "::", "make_unique", "<", "LoongArchSubtarget", ">", "(", "TargetTriple", ",", "CPU", ",", "TuneCPU", ",", "FS", ",", "ABIName", ",", "*", "this", ")", ";", "}", "return", "I", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["LoongArch", "LoongArch", "LoongArch", "\"target-cpu\"", "\"tune-cpu\"", "\"target-features\"", "\"target-abi\"", "LoongArchABI::getTargetABI", "LoongArchABI::ABI_Unknown", "\"-target-abi option != target-abi module flag\"", "LoongArch"], "File": "LoongArchTargetMachine", "Func": "getSubtargetImpl", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1241, "Length": 254, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCInstrInfo", "::", "shouldReduceRegisterPressure", "(", "MachineBasicBlock", "*", "MBB", ",", "RegisterClassInfo", "*", "RegClassInfo", ")", "const", "{", "if", "(", "!", "EnableFMARegPressureReduction", ")", "return", "false", ";", "if", "(", "!", "(", "Subtarget", ".", "isPPC64", "(", ")", "&&", "Subtarget", ".", "hasP9Vector", "(", ")", "&&", "Subtarget", ".", "getTargetMachine", "(", ")", ".", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Medium", ")", ")", "return", "false", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "&", "getRegisterInfo", "(", ")", ";", "MachineFunction", "*", "MF", "=", "MBB", "->", "getParent", "(", ")", ";", "MachineRegisterInfo", "*", "MRI", "=", "&", "MF", "->", "getRegInfo", "(", ")", ";", "auto", "GetMBBPressure", "=", "[", "&", "]", "(", "MachineBasicBlock", "*", "MBB", ")", "->", "std", "::", "vector", "<", "unsigned", ">", "{", "RegionPressure", "Pressure", ";", "RegPressureTracker", "RPTracker", "(", "Pressure", ")", ";", "RPTracker", ".", "init", "(", "MBB", "->", "getParent", "(", ")", ",", "RegClassInfo", ",", "nullptr", ",", "MBB", ",", "MBB", "->", "end", "(", ")", ",", "false", ",", "true", ")", ";", "for", "(", "MachineBasicBlock", "::", "iterator", "MII", "=", "MBB", "->", "instr_end", "(", ")", ",", "MIE", "=", "MBB", "->", "instr_begin", "(", ")", ";", "MII", "!=", "MIE", ";", "--", "MII", ")", "{", "MachineInstr", "&", "MI", "=", "*", "std", "::", "prev", "(", "MII", ")", ";", "if", "(", "MI", ".", "isDebugValue", "(", ")", "||", "MI", ".", "isDebugLabel", "(", ")", ")", "continue", ";", "RegisterOperands", "RegOpers", ";", "RegOpers", ".", "collect", "(", "MI", ",", "*", "TRI", ",", "*", "MRI", ",", "false", ",", "false", ")", ";", "RPTracker", ".", "recedeSkipDebugValues", "(", ")", ";", "assert", "(", "&", "*", "RPTracker", ".", "getPos", "(", ")", "==", "&", "MI", "&&", "\"RPTracker sync error!\"", ")", ";", "RPTracker", ".", "recede", "(", "RegOpers", ")", ";", "}", "RPTracker", ".", "closeRegion", "(", ")", ";", "return", "RPTracker", ".", "getPressure", "(", ")", ".", "MaxSetPressure", ";", "}", ";", "unsigned", "VSSRCLimit", "=", "TRI", "->", "getRegPressureSetLimit", "(", "*", "MBB", "->", "getParent", "(", ")", ",", "PPC", "::", "RegisterPressureSets", "::", "VSSRC", ")", ";", "return", "GetMBBPressure", "(", "MBB", ")", "[", "PPC", "::", "RegisterPressureSets", "::", "VSSRC", "]", ">", "(", "float", ")", "VSSRCLimit", "*", "FMARPFactor", ";", "}", ""], "natrual_language": ["Return", "true", "if", "target", "supports", "reassociation", "of", "instructions", "in", "machine", "combiner", "pass", "to", "reduce", "register", "pressure", "for", "a", "given", "BB", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "\"RPTracker sync error!\"", "PPC::RegisterPressureSets", "PPC::RegisterPressureSets"], "File": "PPCInstrInfo", "Func": "shouldReduceRegisterPressure", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1242, "Length": 309, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "scalar_chain", "::", "make_vector_copies", "(", "rtx_insn", "*", "insn", ",", "rtx", "reg", ")", "{", "rtx", "vreg", "=", "*", "defs_map", ".", "get", "(", "reg", ")", ";", "start_sequence", "(", ")", ";", "if", "(", "!", "TARGET_INTER_UNIT_MOVES_TO_VEC", ")", "{", "rtx", "tmp", "=", "assign_386_stack_local", "(", "smode", ",", "SLOT_STV_TEMP", ")", ";", "if", "(", "smode", "==", "DImode", "&&", "!", "TARGET_64BIT", ")", "{", "emit_move_insn", "(", "adjust_address", "(", "tmp", ",", "SImode", ",", "0", ")", ",", "gen_rtx_SUBREG", "(", "SImode", ",", "reg", ",", "0", ")", ")", ";", "emit_move_insn", "(", "adjust_address", "(", "tmp", ",", "SImode", ",", "4", ")", ",", "gen_rtx_SUBREG", "(", "SImode", ",", "reg", ",", "4", ")", ")", ";", "}", "else", "emit_move_insn", "(", "copy_rtx", "(", "tmp", ")", ",", "reg", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "gen_rtx_SUBREG", "(", "vmode", ",", "vreg", ",", "0", ")", ",", "gen_gpr_to_xmm_move_src", "(", "vmode", ",", "tmp", ")", ")", ")", ";", "}", "else", "if", "(", "!", "TARGET_64BIT", "&&", "smode", "==", "DImode", ")", "{", "if", "(", "TARGET_SSE4_1", ")", "{", "emit_insn", "(", "gen_sse2_loadld", "(", "gen_rtx_SUBREG", "(", "V4SImode", ",", "vreg", ",", "0", ")", ",", "CONST0_RTX", "(", "V4SImode", ")", ",", "gen_rtx_SUBREG", "(", "SImode", ",", "reg", ",", "0", ")", ")", ")", ";", "emit_insn", "(", "gen_sse4_1_pinsrd", "(", "gen_rtx_SUBREG", "(", "V4SImode", ",", "vreg", ",", "0", ")", ",", "gen_rtx_SUBREG", "(", "V4SImode", ",", "vreg", ",", "0", ")", ",", "gen_rtx_SUBREG", "(", "SImode", ",", "reg", ",", "4", ")", ",", "GEN_INT", "(", "2", ")", ")", ")", ";", "}", "else", "{", "rtx", "tmp", "=", "gen_reg_rtx", "(", "DImode", ")", ";", "emit_insn", "(", "gen_sse2_loadld", "(", "gen_rtx_SUBREG", "(", "V4SImode", ",", "vreg", ",", "0", ")", ",", "CONST0_RTX", "(", "V4SImode", ")", ",", "gen_rtx_SUBREG", "(", "SImode", ",", "reg", ",", "0", ")", ")", ")", ";", "emit_insn", "(", "gen_sse2_loadld", "(", "gen_rtx_SUBREG", "(", "V4SImode", ",", "tmp", ",", "0", ")", ",", "CONST0_RTX", "(", "V4SImode", ")", ",", "gen_rtx_SUBREG", "(", "SImode", ",", "reg", ",", "4", ")", ")", ")", ";", "emit_insn", "(", "gen_vec_interleave_lowv4si", "(", "gen_rtx_SUBREG", "(", "V4SImode", ",", "vreg", ",", "0", ")", ",", "gen_rtx_SUBREG", "(", "V4SImode", ",", "vreg", ",", "0", ")", ",", "gen_rtx_SUBREG", "(", "V4SImode", ",", "tmp", ",", "0", ")", ")", ")", ";", "}", "}", "else", "emit_insn", "(", "gen_rtx_SET", "(", "gen_rtx_SUBREG", "(", "vmode", ",", "vreg", ",", "0", ")", ",", "gen_gpr_to_xmm_move_src", "(", "vmode", ",", "reg", ")", ")", ")", ";", "rtx_insn", "*", "seq", "=", "get_insns", "(", ")", ";", "end_sequence", "(", ")", ";", "emit_conversion_insns", "(", "seq", ",", "insn", ")", ";", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\" Copied r%d to a vector register r%d for insn %d\\n\"", ",", "REGNO", "(", "reg", ")", ",", "REGNO", "(", "vreg", ")", ",", "INSN_UID", "(", "insn", ")", ")", ";", "}", ""], "natrual_language": ["Make", "vector", "copies", "for", "all", "register", "REGNO", "definitions", "and", "replace", "its", "uses", "in", "a", "chain", "."], "TS_V_token": ["i386", "0", "0", "4", "4", "0", "0", "0", "0", "0", "4", "2", "0", "0", "0", "4", "0", "0", "0", "0", "\" Copied r%d to a vector register r%d for insn %d\\n\""], "File": "i386-features1", "Func": "make_vector_copies", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1243, "Length": 387, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsPassConfig", "::", "addIRPasses", "(", ")", "{", "TargetPassConfig", "::", "addIRPasses", "(", ")", ";", "if", "(", "getMipsSubtarget", "(", ")", ".", "os16", "(", ")", ")", "addPass", "(", "createMipsOs16", "(", "getMipsTargetMachine", "(", ")", ")", ")", ";", "if", "(", "getMipsSubtarget", "(", ")", ".", "inMips16HardFloat", "(", ")", ")", "addPass", "(", "createMips16HardFloat", "(", "getMipsTargetMachine", "(", ")", ")", ")", ";", "}", ""], "natrual_language": ["Add", "common", "target", "configurable", "passes", "that", "perform", "LLVM", "IR", "to", "IR", "transforms", "following", "machine", "independent", "optimization", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips"], "File": "MipsTargetMachine35", "Func": "addIRPasses", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1244, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "gen_easy_altivec_constant", "(", "rtx", "op", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "op", ")", ";", "int", "nunits", "=", "GET_MODE_NUNITS", "(", "mode", ")", ";", "rtx", "val", "=", "CONST_VECTOR_ELT", "(", "op", ",", "BYTES_BIG_ENDIAN", "?", "nunits", "-", "1", ":", "0", ")", ";", "unsigned", "step", "=", "nunits", "/", "4", ";", "unsigned", "copies", "=", "1", ";", "if", "(", "vspltis_constant", "(", "op", ",", "step", ",", "copies", ")", ")", "return", "gen_rtx_VEC_DUPLICATE", "(", "V4SImode", ",", "gen_lowpart", "(", "SImode", ",", "val", ")", ")", ";", "if", "(", "step", "==", "1", ")", "copies", "<<=", "1", ";", "else", "step", ">>=", "1", ";", "if", "(", "vspltis_constant", "(", "op", ",", "step", ",", "copies", ")", ")", "return", "gen_rtx_VEC_DUPLICATE", "(", "V8HImode", ",", "gen_lowpart", "(", "HImode", ",", "val", ")", ")", ";", "if", "(", "step", "==", "1", ")", "copies", "<<=", "1", ";", "else", "step", ">>=", "1", ";", "if", "(", "vspltis_constant", "(", "op", ",", "step", ",", "copies", ")", ")", "return", "gen_rtx_VEC_DUPLICATE", "(", "V16QImode", ",", "gen_lowpart", "(", "QImode", ",", "val", ")", ")", ";", "gcc_unreachable", "(", ")", ";", "}", ""], "natrual_language": ["Generate", "a", "VEC_DUPLICATE", "representing", "a", "vspltis", "[", "bhw", "]", "instruction", "whose", "result", "is", "OP", ".", "Abort", "if", "it", "is", "not", "possible", "."], "TS_V_token": ["powerpcspe", "1", "0", "4", "1", "1", "1", "1", "1", "1", "1"], "File": "powerpcspe", "Func": "gen_easy_altivec_constant", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1245, "Length": 158, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARM64DAGToDAGISel", "::", "SelectInlineAsmMemoryOperand", "(", "const", "SDValue", "&", "Op", ",", "char", "ConstraintCode", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "OutOps", ")", "{", "assert", "(", "ConstraintCode", "==", "'m'", "&&", "\"unexpected asm memory constraint\"", ")", ";", "OutOps", ".", "push_back", "(", "Op", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["SelectInlineAsmMemoryOperand", "-", "Select", "the", "specified", "address", "as", "a", "target", "addressing", "mode", ",", "according", "to", "the", "specified", "constraint", "."], "TS_V_token": ["ARM64", "ARM64", "\"unexpected asm memory constraint\""], "File": "ARM64ISelDAGToDAG", "Func": "SelectInlineAsmMemoryOperand", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1246, "Length": 43, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getDstReg", "(", ")", "const", "{", "return", "Dst", ";", "}", ""], "natrual_language": ["Get", "the", "definition", "register", "of", "the", "loaded", "value", "."], "TS_V_token": ["AArch64"], "File": "AArch64AsmParser (2)2", "Func": "getDstReg", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1247, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AZPRFrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "false", ";", "}", ""], "natrual_language": ["hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "."], "TS_V_token": ["AZPR", "AZPR"], "File": "AZPRFrameLowering", "Func": "hasFP", "Target": "AZPR", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1248, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "OpenRISCTargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "DebugLoc", "dl", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "getTargetMachine", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "RetCC_OpenRISC", ")", ";", "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", ")", ")", ";", "}", "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": ["OpenRISC", "OpenRISC", "ISD::InputArg", "16", "OpenRISC", "0", "1", "2", "0"], "File": "OpenRISCISelLowering", "Func": "LowerCallResult", "Target": "OpenRISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1249, "Length": 170, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "EVT", "X86TargetLowering", "::", "getSetCCResultType", "(", "LLVMContext", "&", ",", "EVT", "VT", ")", "const", "{", "if", "(", "!", "VT", ".", "isVector", "(", ")", ")", "return", "MVT", "::", "i8", ";", "return", "VT", ".", "changeVectorElementTypeToInteger", "(", ")", ";", "}", ""], "natrual_language": ["Return", "the", "value", "type", "to", "use", "for", "ISD", ":", ":SETCC", "."], "TS_V_token": ["X86", "X86", "MVT::i8"], "File": "X86ISelLowering (2)2", "Func": "getSetCCResultType", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1250, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsMCCodeEmitter", "::", "getBranchTarget21OpValue", "(", "const", "MCInst", "&", "MI", ",", "unsigned", "OpNo", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "const", "MCOperand", "&", "MO", "=", "MI", ".", "getOperand", "(", "OpNo", ")", ";", "if", "(", "MO", ".", "isImm", "(", ")", ")", "return", "MO", ".", "getImm", "(", ")", ">>", "2", ";", "assert", "(", "MO", ".", "isExpr", "(", ")", "&&", "\"getBranchTarget21OpValue expects only expressions or immediates\"", ")", ";", "const", "MCExpr", "*", "Expr", "=", "MO", ".", "getExpr", "(", ")", ";", "Fixups", ".", "push_back", "(", "MCFixup", "::", "create", "(", "0", ",", "Expr", ",", "MCFixupKind", "(", "Mips", "::", "fixup_MIPS_PC21_S2", ")", ")", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["getBranchTarget21OpValue", "-", "Return", "binary", "encoding", "of", "the", "branch", "target", "operand", "."], "TS_V_token": ["Mips", "Mips", "2", "\"getBranchTarget21OpValue expects only expressions or immediates\"", "0", "Mips::fixup_MIPS_PC21_S2", "0"], "File": "MipsMCCodeEmitter55", "Func": "getBranchTarget21OpValue", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1251, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "uint8_t", "name", "(", "struct", "InternalInstruction", "*", "insn", ",", "\\", "OperandType", "type", ",", "\\", "uint8_t", "index", ",", "\\", "uint8_t", "*", "valid", ")", "{", "\\", "*", "valid", "=", "1", ";", "\\", "switch", "(", "type", ")", "{", "\\", "default", ":", "\\", "debug", "(", "\"Unhandled register type\"", ")", ";", "\\", "*", "valid", "=", "0", ";", "\\", "return", "0", ";", "\\", "case", "TYPE_Rv", ":", "\\", "return", "base", "+", "index", ";", "\\", "case", "TYPE_R8", ":", "\\", "if", "(", "insn", "->", "rexPrefix", "&&", "\\", "index", ">=", "4", "&&", "index", "<=", "7", ")", "{", "\\", "return", "prefix", "##", "_SPL", "+", "(", "index", "-", "4", ")", ";", "\\", "}", "else", "{", "\\", "return", "prefix", "##", "_AL", "+", "index", ";", "\\", "}", "\\", "case", "TYPE_R16", ":", "\\", "return", "prefix", "##", "_AX", "+", "index", ";", "\\", "case", "TYPE_R32", ":", "\\", "return", "prefix", "##", "_EAX", "+", "index", ";", "\\", "case", "TYPE_R64", ":", "\\", "return", "prefix", "##", "_RAX", "+", "index", ";", "\\", "case", "TYPE_XMM512", ":", "\\", "return", "prefix", "##", "_ZMM0", "+", "index", ";", "\\", "case", "TYPE_XMM256", ":", "\\", "return", "prefix", "##", "_YMM0", "+", "index", ";", "\\", "case", "TYPE_XMM128", ":", "\\", "case", "TYPE_XMM64", ":", "\\", "case", "TYPE_XMM32", ":", "\\", "return", "prefix", "##", "_XMM0", "+", "index", ";", "\\", "case", "TYPE_VK1", ":", "\\", "case", "TYPE_VK2", ":", "\\", "case", "TYPE_VK4", ":", "\\", "case", "TYPE_VK8", ":", "\\", "case", "TYPE_VK16", ":", "\\", "case", "TYPE_VK32", ":", "\\", "case", "TYPE_VK64", ":", "\\", "if", "(", "index", ">", "7", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_K0", "+", "index", ";", "\\", "case", "TYPE_MM64", ":", "\\", "return", "prefix", "##", "_MM0", "+", "(", "index", "&", "0x7", ")", ";", "\\", "case", "TYPE_SEGMENTREG", ":", "\\", "if", "(", "index", ">", "5", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_ES", "+", "index", ";", "\\", "case", "TYPE_DEBUGREG", ":", "\\", "return", "prefix", "##", "_DR0", "+", "index", ";", "\\", "case", "TYPE_CONTROLREG", ":", "\\", "return", "prefix", "##", "_CR0", "+", "index", ";", "\\", "}", "\\", "}", ""], "natrual_language": ["Gets", "the", "name", "of", "the", "pass", "we", "are", "mixed", "into", "."], "TS_V_token": ["X86", "1", "\"Unhandled register type\"", "0", "0", "4", "7", "4", "7", "0", "0x7", "5", "0"], "File": "X86DisassemblerDecoder25", "Func": "name", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1252, "Length": 309, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsRegisterInfo", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "return", "DisableFramePointerElim", "(", "MF", ")", "||", "MFI", "->", "hasVarSizedObjects", "(", ")", ";", "}", ""], "natrual_language": ["hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsRegisterInfo17", "Func": "hasFP", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1253, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "ix86_fn_abi_va_list", "(", "tree", "fndecl", ")", "{", "if", "(", "!", "TARGET_64BIT", ")", "return", "va_list_type_node", ";", "gcc_assert", "(", "fndecl", "!=", "NULL_TREE", ")", ";", "if", "(", "ix86_function_abi", "(", "(", "const_tree", ")", "fndecl", ")", "==", "MS_ABI", ")", "return", "ms_va_list_type_node", ";", "else", "return", "sysv_va_list_type_node", ";", "}", ""], "natrual_language": ["This", "function", "returns", "the", "calling", "abi", "specific", "va_list", "type", "node", ".", "It", "returns", "the", "FNDECL", "specific", "va_list", "type", "."], "TS_V_token": ["i386"], "File": "i386", "Func": "ix86_fn_abi_va_list", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1254, "Length": 43, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86CallFrameOptimization", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "STI", "=", "&", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "TII", "=", "STI", "->", "getInstrInfo", "(", ")", ";", "TFL", "=", "STI", "->", "getFrameLowering", "(", ")", ";", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "const", "X86RegisterInfo", "&", "RegInfo", "=", "*", "static_cast", "<", "const", "X86RegisterInfo", "*", ">", "(", "STI", "->", "getRegisterInfo", "(", ")", ")", ";", "SlotSize", "=", "RegInfo", ".", "getSlotSize", "(", ")", ";", "assert", "(", "isPowerOf2_32", "(", "SlotSize", ")", "&&", "\"Expect power of 2 stack slot size\"", ")", ";", "Log2SlotSize", "=", "Log2_32", "(", "SlotSize", ")", ";", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", "||", "!", "isLegal", "(", "MF", ")", ")", "return", "false", ";", "unsigned", "FrameSetupOpcode", "=", "TII", "->", "getCallFrameSetupOpcode", "(", ")", ";", "bool", "Changed", "=", "false", ";", "ContextVector", "CallSeqVector", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "for", "(", "auto", "&", "MI", ":", "MBB", ")", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "FrameSetupOpcode", ")", "{", "CallContext", "Context", ";", "collectCallInfo", "(", "MF", ",", "MBB", ",", "MI", ",", "Context", ")", ";", "CallSeqVector", ".", "push_back", "(", "Context", ")", ";", "}", "if", "(", "!", "isProfitable", "(", "MF", ",", "CallSeqVector", ")", ")", "return", "false", ";", "for", "(", "const", "auto", "&", "CC", ":", "CallSeqVector", ")", "{", "if", "(", "CC", ".", "UsePush", ")", "{", "adjustCallSequence", "(", "MF", ",", "CC", ")", ";", "Changed", "=", "true", ";", "}", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "\"Expect power of 2 stack slot size\""], "File": "X86CallFrameOptimization", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1255, "Length": 225, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "mips_set_return_address", "(", "rtx", "address", ",", "rtx", "scratch", ")", "{", "rtx", "slot_address", ";", "gcc_assert", "(", "BITSET_P", "(", "cfun", "->", "machine", "->", "frame", ".", "mask", ",", "RETURN_ADDR_REGNUM", ")", ")", ";", "slot_address", "=", "mips_add_offset", "(", "scratch", ",", "stack_pointer_rtx", ",", "cfun", "->", "machine", "->", "frame", ".", "gp_sp_offset", ")", ";", "mips_emit_move", "(", "gen_frame_mem", "(", "GET_MODE", "(", "address", ")", ",", "slot_address", ")", ",", "address", ")", ";", "}", ""], "natrual_language": ["Emit", "code", "to", "change", "the", "current", "function", "'s", "return", "address", "to", "ADDRESS", ".", "SCRATCH", "is", "available", "as", "a", "scratch", "register", ",", "if", "needed", ".", "ADDRESS", "and", "SCRATCH", "are", "both", "word-mode", "GPRs", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_set_return_address", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1256, "Length": 62, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "altivec_expand_st_builtin", "(", "tree", "exp", ",", "rtx", "target", "ATTRIBUTE_UNUSED", ",", "bool", "*", "expandedp", ")", "{", "tree", "fndecl", "=", "TREE_OPERAND", "(", "CALL_EXPR_FN", "(", "exp", ")", ",", "0", ")", ";", "unsigned", "int", "fcode", "=", "DECL_FUNCTION_CODE", "(", "fndecl", ")", ";", "tree", "arg0", ",", "arg1", ";", "machine_mode", "mode0", ",", "mode1", ";", "rtx", "pat", ",", "op0", ",", "op1", ";", "enum", "insn_code", "icode", ";", "switch", "(", "fcode", ")", "{", "case", "ALTIVEC_BUILTIN_ST_INTERNAL_16qi", ":", "icode", "=", "CODE_FOR_vector_altivec_store_v16qi", ";", "break", ";", "case", "ALTIVEC_BUILTIN_ST_INTERNAL_8hi", ":", "icode", "=", "CODE_FOR_vector_altivec_store_v8hi", ";", "break", ";", "case", "ALTIVEC_BUILTIN_ST_INTERNAL_4si", ":", "icode", "=", "CODE_FOR_vector_altivec_store_v4si", ";", "break", ";", "case", "ALTIVEC_BUILTIN_ST_INTERNAL_4sf", ":", "icode", "=", "CODE_FOR_vector_altivec_store_v4sf", ";", "break", ";", "case", "ALTIVEC_BUILTIN_ST_INTERNAL_2df", ":", "icode", "=", "CODE_FOR_vector_altivec_store_v2df", ";", "break", ";", "case", "ALTIVEC_BUILTIN_ST_INTERNAL_2di", ":", "icode", "=", "CODE_FOR_vector_altivec_store_v2di", ";", "break", ";", "case", "ALTIVEC_BUILTIN_ST_INTERNAL_1ti", ":", "icode", "=", "CODE_FOR_vector_altivec_store_v1ti", ";", "break", ";", "default", ":", "*", "expandedp", "=", "false", ";", "return", "NULL_RTX", ";", "}", "arg0", "=", "CALL_EXPR_ARG", "(", "exp", ",", "0", ")", ";", "arg1", "=", "CALL_EXPR_ARG", "(", "exp", ",", "1", ")", ";", "op0", "=", "expand_normal", "(", "arg0", ")", ";", "op1", "=", "expand_normal", "(", "arg1", ")", ";", "mode0", "=", "insn_data", "[", "icode", "]", ".", "operand", "[", "0", "]", ".", "mode", ";", "mode1", "=", "insn_data", "[", "icode", "]", ".", "operand", "[", "1", "]", ".", "mode", ";", "if", "(", "!", "(", "*", "insn_data", "[", "icode", "]", ".", "operand", "[", "0", "]", ".", "predicate", ")", "(", "op0", ",", "mode0", ")", ")", "op0", "=", "gen_rtx_MEM", "(", "mode0", ",", "copy_to_mode_reg", "(", "Pmode", ",", "op0", ")", ")", ";", "if", "(", "!", "(", "*", "insn_data", "[", "icode", "]", ".", "operand", "[", "1", "]", ".", "predicate", ")", "(", "op1", ",", "mode1", ")", ")", "op1", "=", "copy_to_mode_reg", "(", "mode1", ",", "op1", ")", ";", "pat", "=", "GEN_FCN", "(", "icode", ")", "(", "op0", ",", "op1", ")", ";", "if", "(", "pat", ")", "emit_insn", "(", "pat", ")", ";", "*", "expandedp", "=", "true", ";", "return", "NULL_RTX", ";", "}", ""], "natrual_language": ["Expand", "the", "stvx", "builtins", "."], "TS_V_token": ["rs6000", "0", "0", "1", "0", "1", "0", "1"], "File": "rs60006", "Func": "altivec_expand_st_builtin", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1257, "Length": 297, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMTargetLowering", "::", "isLegalAddressingMode", "(", "const", "AddrMode", "&", "AM", ",", "Type", "*", "Ty", ")", "const", "{", "EVT", "VT", "=", "getValueType", "(", "Ty", ",", "true", ")", ";", "if", "(", "!", "isLegalAddressImmediate", "(", "AM", ".", "BaseOffs", ",", "VT", ",", "Subtarget", ")", ")", "return", "false", ";", "if", "(", "AM", ".", "BaseGV", ")", "return", "false", ";", "switch", "(", "AM", ".", "Scale", ")", "{", "case", "0", ":", "break", ";", "case", "1", ":", "if", "(", "Subtarget", "->", "isThumb1Only", "(", ")", ")", "return", "false", ";", "default", ":", "if", "(", "AM", ".", "BaseOffs", ")", "return", "false", ";", "if", "(", "!", "VT", ".", "isSimple", "(", ")", ")", "return", "false", ";", "if", "(", "Subtarget", "->", "isThumb2", "(", ")", ")", "return", "isLegalT2ScaledAddressingMode", "(", "AM", ",", "VT", ")", ";", "int", "Scale", "=", "AM", ".", "Scale", ";", "switch", "(", "VT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ")", "{", "default", ":", "return", "false", ";", "case", "MVT", "::", "i1", ":", "case", "MVT", "::", "i8", ":", "case", "MVT", "::", "i32", ":", "if", "(", "Scale", "<", "0", ")", "Scale", "=", "-", "Scale", ";", "if", "(", "Scale", "==", "1", ")", "return", "true", ";", "return", "isPowerOf2_32", "(", "Scale", "&", "~", "1", ")", ";", "case", "MVT", "::", "i16", ":", "case", "MVT", "::", "i64", ":", "if", "(", "(", "(", "unsigned", ")", "AM", ".", "HasBaseReg", "+", "Scale", ")", "<=", "2", ")", "return", "true", ";", "return", "false", ";", "case", "MVT", "::", "isVoid", ":", "if", "(", "Scale", "&", "1", ")", "return", "false", ";", "return", "isPowerOf2_32", "(", "Scale", ")", ";", "}", "}", "return", "true", ";", "}", ""], "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": ["ARM", "ARM", "0", "1", "MVT::i1", "MVT::i8", "MVT::i32", "0", "1", "1", "MVT::i16", "MVT::i64", "2", "MVT::isVoid", "1"], "File": "ARMISelLowering (2)", "Func": "isLegalAddressingMode", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1258, "Length": 241, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "mt_expand_eh_return", "(", "rtx", "*", "operands", ")", "{", "if", "(", "GET_CODE", "(", "operands", "[", "0", "]", ")", "!=", "REG", "||", "REGNO", "(", "operands", "[", "0", "]", ")", "!=", "EH_RETURN_STACKADJ_REGNO", ")", "{", "rtx", "sp", "=", "EH_RETURN_STACKADJ_RTX", ";", "emit_move_insn", "(", "sp", ",", "operands", "[", "0", "]", ")", ";", "operands", "[", "0", "]", "=", "sp", ";", "}", "emit_insn", "(", "gen_eh_epilogue", "(", "operands", "[", "0", "]", ")", ")", ";", "}", ""], "natrual_language": ["Generate", "code", "for", "the", "``", "eh_return", "''", "pattern", "."], "TS_V_token": ["mt", "0", "0", "0", "0", "0"], "File": "mt", "Func": "mt_expand_eh_return", "Target": "mt", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1259, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "nds32_n13_last_load_to_e1_p", "(", "rtx_insn", "*", "producer", ",", "rtx_insn", "*", "consumer", ")", "{", "rtx", "last_def_reg", "=", "extract_nth_access_reg", "(", "producer", ",", "-", "1", ")", ";", "return", "n13_consumed_by_e1_dep_p", "(", "consumer", ",", "last_def_reg", ")", ";", "}", ""], "natrual_language": ["Check", "dependencies", "from", "LMW", "(", "N", ",", "N", ")", "to", "E1", "."], "TS_V_token": ["nds32", "1"], "File": "nds32-pipelines-auxiliary", "Func": "nds32_n13_last_load_to_e1_p", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1260, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "rs6000_use_sched_lookahead", "(", "void", ")", "{", "if", "(", "rs6000_cpu_attr", "==", "CPU_PPC8540", ")", "return", "4", ";", "return", "0", ";", "}", ""], "natrual_language": ["Return", "how", "many", "instructions", "to", "look", "ahead", "for", "better", "insn", "scheduling", "."], "TS_V_token": ["rs6000", "4", "0"], "File": "rs60003", "Func": "rs6000_use_sched_lookahead", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1261, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "ConstraintWeight", "SystemZTargetLowering", "::", "getSingleConstraintMatchWeight", "(", "AsmOperandInfo", "&", "info", ",", "const", "char", "*", "constraint", ")", "const", "{", "ConstraintWeight", "weight", "=", "CW_Invalid", ";", "Value", "*", "CallOperandVal", "=", "info", ".", "CallOperandVal", ";", "if", "(", "CallOperandVal", "==", "NULL", ")", "return", "CW_Default", ";", "Type", "*", "type", "=", "CallOperandVal", "->", "getType", "(", ")", ";", "switch", "(", "*", "constraint", ")", "{", "default", ":", "weight", "=", "TargetLowering", "::", "getSingleConstraintMatchWeight", "(", "info", ",", "constraint", ")", ";", "break", ";", "case", "'a'", ":", "case", "'d'", ":", "case", "'r'", ":", "if", "(", "CallOperandVal", "->", "getType", "(", ")", "->", "isIntegerTy", "(", ")", ")", "weight", "=", "CW_Register", ";", "break", ";", "case", "'f'", ":", "if", "(", "type", "->", "isFloatingPointTy", "(", ")", ")", "weight", "=", "CW_Register", ";", "break", ";", "case", "'I'", ":", "if", "(", "ConstantInt", "*", "C", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "CallOperandVal", ")", ")", "if", "(", "isUInt", "<", "8", ">", "(", "C", "->", "getZExtValue", "(", ")", ")", ")", "weight", "=", "CW_Constant", ";", "break", ";", "case", "'J'", ":", "if", "(", "ConstantInt", "*", "C", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "CallOperandVal", ")", ")", "if", "(", "isUInt", "<", "12", ">", "(", "C", "->", "getZExtValue", "(", ")", ")", ")", "weight", "=", "CW_Constant", ";", "break", ";", "case", "'K'", ":", "if", "(", "ConstantInt", "*", "C", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "CallOperandVal", ")", ")", "if", "(", "isInt", "<", "16", ">", "(", "C", "->", "getSExtValue", "(", ")", ")", ")", "weight", "=", "CW_Constant", ";", "break", ";", "case", "'L'", ":", "if", "(", "ConstantInt", "*", "C", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "CallOperandVal", ")", ")", "if", "(", "isInt", "<", "20", ">", "(", "C", "->", "getSExtValue", "(", ")", ")", ")", "weight", "=", "CW_Constant", ";", "break", ";", "case", "'M'", ":", "if", "(", "ConstantInt", "*", "C", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "CallOperandVal", ")", ")", "if", "(", "C", "->", "getZExtValue", "(", ")", "==", "0x7fffffff", ")", "weight", "=", "CW_Constant", ";", "break", ";", "}", "return", "weight", ";", "}", ""], "natrual_language": ["Examine", "constraint", "string", "and", "operand", "type", "and", "determine", "a", "weight", "value", "."], "TS_V_token": ["SystemZ", "SystemZ", "8", "12", "16", "20", "0x7fffffff"], "File": "SystemZISelLowering (2)", "Func": "getSingleConstraintMatchWeight", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1262, "Length": 301, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "*", "AArch64TargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MachineInstr", "&", "MI", ",", "MachineBasicBlock", "*", "BB", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "MI", ".", "dump", "(", ")", ";", "llvm_unreachable", "(", "\"Unexpected instruction for custom inserter!\"", ")", ";", "case", "AArch64", "::", "F128CSEL", ":", "return", "EmitF128CSEL", "(", "MI", ",", "BB", ")", ";", "case", "TargetOpcode", "::", "STATEPOINT", ":", "MI", ".", "addOperand", "(", "*", "MI", ".", "getMF", "(", ")", ",", "MachineOperand", "::", "CreateReg", "(", "AArch64", "::", "LR", ",", "true", ",", "true", ",", "false", ",", "true", ")", ")", ";", "LLVM_FALLTHROUGH", ";", "case", "TargetOpcode", "::", "STACKMAP", ":", "case", "TargetOpcode", "::", "PATCHPOINT", ":", "return", "emitPatchPoint", "(", "MI", ",", "BB", ")", ";", "case", "AArch64", "::", "CATCHRET", ":", "return", "EmitLoweredCatchRet", "(", "MI", ",", "BB", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'usesCustomInserter", "'", "flag", "."], "TS_V_token": ["AArch64", "AArch64", "\"Unexpected instruction for custom inserter!\"", "AArch64::F128CSEL", "AArch64::LR", "AArch64::CATCHRET"], "File": "AArch64ISelLowering168", "Func": "EmitInstrWithCustomInserter", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1263, "Length": 120, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "::", "iterator", "MipsFrameLowering", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "unsigned", "SP", "=", "STI", ".", "getABI", "(", ")", ".", "GetStackPtr", "(", ")", ";", "if", "(", "!", "hasReservedCallFrame", "(", "MF", ")", ")", "{", "int64_t", "Amount", "=", "I", "->", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "if", "(", "(", "I", "->", "getOpcode", "(", ")", "==", "Mips", "::", "ADJCALLSTACKDOWN", ")", "||", "(", "I", "->", "getOpcode", "(", ")", "==", "Mips", "::", "ADJCALLSTACKCAPDOWN", ")", ")", "Amount", "=", "-", "Amount", ";", "STI", ".", "getInstrInfo", "(", ")", "->", "adjustStackPtr", "(", "SP", ",", "Amount", ",", "MBB", ",", "I", ")", ";", "}", "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": ["Mips", "Mips", "0", "Mips::ADJCALLSTACKDOWN", "Mips::ADJCALLSTACKCAPDOWN"], "File": "MipsFrameLowering22", "Func": "eliminateCallFramePseudoInstr", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1264, "Length": 116, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "int", "regno_or_subregno", "(", "rtx", "op", ")", "{", "if", "(", "REG_P", "(", "op", ")", ")", "return", "REGNO", "(", "op", ")", ";", "else", "if", "(", "SUBREG_P", "(", "op", ")", ")", "return", "subreg_regno", "(", "op", ")", ";", "else", "gcc_unreachable", "(", ")", ";", "}", ""], "natrual_language": ["Helper", "function", "to", "return", "the", "register", "number", "of", "a", "RTX", "."], "TS_V_token": ["powerpcspe"], "File": "powerpcspe", "Func": "regno_or_subregno", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1265, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "MCInst", "&", "Res", ")", "const", "{", "llvm_unreachable", "(", "\"relaxInstruction() unimplemented\"", ")", ";", "}", ""], "natrual_language": ["Relax", "the", "instruction", "in", "the", "given", "fragment", "to", "the", "next", "wider", "instruction", "."], "TS_V_token": ["PowerPC", "\"relaxInstruction() unimplemented\""], "File": "PPCAsmBackend1", "Func": "relaxInstruction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1266, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ia64_sched_reorder", "(", "FILE", "*", "dump", ",", "int", "sched_verbose", ",", "rtx_insn", "*", "*", "ready", ",", "int", "*", "pn_ready", ",", "int", "clock_var", ")", "{", "return", "ia64_dfa_sched_reorder", "(", "dump", ",", "sched_verbose", ",", "ready", ",", "pn_ready", ",", "clock_var", ",", "0", ")", ";", "}", ""], "natrual_language": ["We", "are", "about", "to", "being", "issuing", "insns", "for", "this", "clock", "cycle", ".", "Override", "the", "default", "sort", "algorithm", "to", "better", "slot", "instructions", "."], "TS_V_token": ["ia64", "0"], "File": "ia64", "Func": "ia64_sched_reorder", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1267, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "aarch64_override_options_internal", "(", "struct", "gcc_options", "*", "opts", ")", "{", "aarch64_tune_flags", "=", "selected_tune", "->", "flags", ";", "aarch64_tune", "=", "selected_tune", "->", "sched_core", ";", "aarch64_tune_params", "=", "*", "(", "selected_tune", "->", "tune", ")", ";", "aarch64_architecture_version", "=", "selected_arch", "->", "architecture_version", ";", "if", "(", "opts", "->", "x_aarch64_override_tune_string", ")", "aarch64_parse_override_string", "(", "opts", "->", "x_aarch64_override_tune_string", ",", "&", "aarch64_tune_params", ")", ";", "if", "(", "opts", "->", "x_flag_strict_volatile_bitfields", "<", "0", "&&", "abi_version_at_least", "(", "2", ")", ")", "opts", "->", "x_flag_strict_volatile_bitfields", "=", "1", ";", "initialize_aarch64_code_model", "(", "opts", ")", ";", "initialize_aarch64_tls_size", "(", "opts", ")", ";", "int", "queue_depth", "=", "0", ";", "switch", "(", "aarch64_tune_params", ".", "autoprefetcher_model", ")", "{", "case", "tune_params", "::", "AUTOPREFETCHER_OFF", ":", "queue_depth", "=", "-", "1", ";", "break", ";", "case", "tune_params", "::", "AUTOPREFETCHER_WEAK", ":", "queue_depth", "=", "0", ";", "break", ";", "case", "tune_params", "::", "AUTOPREFETCHER_STRONG", ":", "queue_depth", "=", "max_insn_queue_index", "+", "1", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "maybe_set_param_value", "(", "PARAM_SCHED_AUTOPREF_QUEUE_DEPTH", ",", "queue_depth", ",", "opts", "->", "x_param_values", ",", "global_options_set", ".", "x_param_values", ")", ";", "if", "(", "aarch64_tune_params", ".", "prefetch", "->", "num_slots", ">", "0", ")", "maybe_set_param_value", "(", "PARAM_SIMULTANEOUS_PREFETCHES", ",", "aarch64_tune_params", ".", "prefetch", "->", "num_slots", ",", "opts", "->", "x_param_values", ",", "global_options_set", ".", "x_param_values", ")", ";", "if", "(", "aarch64_tune_params", ".", "prefetch", "->", "l1_cache_size", ">=", "0", ")", "maybe_set_param_value", "(", "PARAM_L1_CACHE_SIZE", ",", "aarch64_tune_params", ".", "prefetch", "->", "l1_cache_size", ",", "opts", "->", "x_param_values", ",", "global_options_set", ".", "x_param_values", ")", ";", "if", "(", "aarch64_tune_params", ".", "prefetch", "->", "l1_cache_line_size", ">=", "0", ")", "maybe_set_param_value", "(", "PARAM_L1_CACHE_LINE_SIZE", ",", "aarch64_tune_params", ".", "prefetch", "->", "l1_cache_line_size", ",", "opts", "->", "x_param_values", ",", "global_options_set", ".", "x_param_values", ")", ";", "if", "(", "aarch64_tune_params", ".", "prefetch", "->", "l2_cache_size", ">=", "0", ")", "maybe_set_param_value", "(", "PARAM_L2_CACHE_SIZE", ",", "aarch64_tune_params", ".", "prefetch", "->", "l2_cache_size", ",", "opts", "->", "x_param_values", ",", "global_options_set", ".", "x_param_values", ")", ";", "maybe_set_param_value", "(", "PARAM_SCHED_PRESSURE_ALGORITHM", ",", "SCHED_PRESSURE_MODEL", ",", "opts", "->", "x_param_values", ",", "global_options_set", ".", "x_param_values", ")", ";", "if", "(", "opts", "->", "x_flag_prefetch_loop_arrays", "<", "0", "&&", "!", "opts", "->", "x_optimize_size", "&&", "aarch64_tune_params", ".", "prefetch", "->", "default_opt_level", ">=", "0", "&&", "opts", "->", "x_optimize", ">=", "aarch64_tune_params", ".", "prefetch", "->", "default_opt_level", ")", "opts", "->", "x_flag_prefetch_loop_arrays", "=", "1", ";", "aarch64_override_options_after_change_1", "(", "opts", ")", ";", "}", ""], "natrual_language": ["'Unpack", "'", "up", "the", "internal", "tuning", "structs", "and", "update", "the", "options", "in", "OPTS", ".", "The", "caller", "must", "have", "set", "up", "selected_tune", "and", "selected_arch", "as", "all", "the", "other", "target-specific", "codegen", "decisions", "are", "derived", "from", "them", "."], "TS_V_token": ["aarch64", "0", "2", "1", "0", "1", "0", "1", "0", "0", "0", "0", "0", "0", "1"], "File": "aarch645", "Func": "aarch64_override_options_internal", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1268, "Length": 325, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "bool", "mode_supports_vsx_dform_quad", "(", "machine_mode", "mode", ")", "{", "return", "(", "(", "reg_addr", "[", "mode", "]", ".", "addr_mask", "[", "RELOAD_REG_ANY", "]", "&", "RELOAD_REG_QUAD_OFFSET", ")", "!=", "0", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "we", "have", "D-form", "addressing", "in", "VSX", "registers", ".", "This", "addressing", "is", "more", "limited", "than", "normal", "d-form", "addressing", "in", "that", "the", "offset", "must", "be", "aligned", "on", "a", "16-byte", "boundary", "."], "TS_V_token": ["powerpcspe", "0"], "File": "powerpcspe", "Func": "mode_supports_vsx_dform_quad", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1269, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "LanaiTargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "Opcode", ")", "{", "case", "LanaiISD", "::", "ADJDYNALLOC", ":", "return", "\"LanaiISD::ADJDYNALLOC\"", ";", "case", "LanaiISD", "::", "RET_FLAG", ":", "return", "\"LanaiISD::RET_FLAG\"", ";", "case", "LanaiISD", "::", "CALL", ":", "return", "\"LanaiISD::CALL\"", ";", "case", "LanaiISD", "::", "SELECT_CC", ":", "return", "\"LanaiISD::SELECT_CC\"", ";", "case", "LanaiISD", "::", "SETCC", ":", "return", "\"LanaiISD::SETCC\"", ";", "case", "LanaiISD", "::", "SUBBF", ":", "return", "\"LanaiISD::SUBBF\"", ";", "case", "LanaiISD", "::", "SET_FLAG", ":", "return", "\"LanaiISD::SET_FLAG\"", ";", "case", "LanaiISD", "::", "BR_CC", ":", "return", "\"LanaiISD::BR_CC\"", ";", "case", "LanaiISD", "::", "Wrapper", ":", "return", "\"LanaiISD::Wrapper\"", ";", "case", "LanaiISD", "::", "HI", ":", "return", "\"LanaiISD::HI\"", ";", "case", "LanaiISD", "::", "LO", ":", "return", "\"LanaiISD::LO\"", ";", "case", "LanaiISD", "::", "SMALL", ":", "return", "\"LanaiISD::SMALL\"", ";", "default", ":", "return", "NULL", ";", "}", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["Lanai", "Lanai", "LanaiISD::ADJDYNALLOC", "\"LanaiISD::ADJDYNALLOC\"", "LanaiISD::RET_FLAG", "\"LanaiISD::RET_FLAG\"", "LanaiISD::CALL", "\"LanaiISD::CALL\"", "LanaiISD::SELECT_CC", "\"LanaiISD::SELECT_CC\"", "LanaiISD::SETCC", "\"LanaiISD::SETCC\"", "LanaiISD::SUBBF", "\"LanaiISD::SUBBF\"", "LanaiISD::SET_FLAG", "\"LanaiISD::SET_FLAG\"", "LanaiISD::BR_CC", "\"LanaiISD::BR_CC\"", "LanaiISD::Wrapper", "\"LanaiISD::Wrapper\"", "LanaiISD::HI", "\"LanaiISD::HI\"", "LanaiISD::LO", "\"LanaiISD::LO\"", "LanaiISD::SMALL", "\"LanaiISD::SMALL\""], "File": "LanaiISelLowering1", "Func": "getTargetNodeName", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1270, "Length": 120, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetIRAnalysis", "PPCTargetMachine", "::", "getTargetIRAnalysis", "(", ")", "{", "return", "TargetIRAnalysis", "(", "[", "this", "]", "(", "const", "Function", "&", "F", ")", "{", "return", "TargetTransformInfo", "(", "PPCTTIImpl", "(", "this", ",", "F", ")", ")", ";", "}", ")", ";", "}", ""], "natrual_language": ["Get", "a", "TargetIRAnalysis", "appropriate", "for", "the", "target", "."], "TS_V_token": ["PowerPC", "PPC", "PPC"], "File": "PPCTargetMachine13", "Func": "getTargetIRAnalysis", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1271, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "WinEHStatePass", "::", "runOnFunction", "(", "Function", "&", "F", ")", "{", "if", "(", "!", "F", ".", "hasPersonalityFn", "(", ")", ")", "return", "false", ";", "PersonalityFn", "=", "dyn_cast", "<", "Function", ">", "(", "F", ".", "getPersonalityFn", "(", ")", "->", "stripPointerCasts", "(", ")", ")", ";", "if", "(", "!", "PersonalityFn", ")", "return", "false", ";", "Personality", "=", "classifyEHPersonality", "(", "PersonalityFn", ")", ";", "if", "(", "!", "isFuncletEHPersonality", "(", "Personality", ")", ")", "return", "false", ";", "bool", "HasPads", "=", "false", ";", "for", "(", "BasicBlock", "&", "BB", ":", "F", ")", "{", "if", "(", "BB", ".", "isEHPad", "(", ")", ")", "{", "HasPads", "=", "true", ";", "break", ";", "}", "}", "if", "(", "!", "HasPads", ")", "return", "false", ";", "Type", "*", "Int8PtrType", "=", "Type", "::", "getInt8PtrTy", "(", "TheModule", "->", "getContext", "(", ")", ")", ";", "SetJmp3", "=", "TheModule", "->", "getOrInsertFunction", "(", "\"_setjmp3\"", ",", "FunctionType", "::", "get", "(", "Type", "::", "getInt32Ty", "(", "TheModule", "->", "getContext", "(", ")", ")", ",", "{", "Int8PtrType", ",", "Type", "::", "getInt32Ty", "(", "TheModule", "->", "getContext", "(", ")", ")", "}", ",", "true", ")", ")", ";", "F", ".", "addFnAttr", "(", "\"no-frame-pointer-elim\"", ",", "\"true\"", ")", ";", "emitExceptionRegistrationRecord", "(", "&", "F", ")", ";", "WinEHFuncInfo", "FuncInfo", ";", "addStateStores", "(", "F", ",", "FuncInfo", ")", ";", "PersonalityFn", "=", "nullptr", ";", "Personality", "=", "EHPersonality", "::", "Unknown", ";", "UseStackGuard", "=", "false", ";", "RegNode", "=", "nullptr", ";", "EHGuardNode", "=", "nullptr", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnFunction", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "the", "per-function", "processing", "of", "the", "pass", "."], "TS_V_token": ["X86", "\"_setjmp3\"", "\"no-frame-pointer-elim\"", "\"true\""], "File": "X86WinEHState19", "Func": "runOnFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1272, "Length": 213, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsFrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "getLastNonDebugInstr", "(", ")", ";", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "MipsInstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "MipsInstrInfo", "*", ">", "(", "MF", ".", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "DebugLoc", "dl", "=", "MBBI", "->", "getDebugLoc", "(", ")", ";", "unsigned", "SP", "=", "STI", ".", "isABI_N64", "(", ")", "?", "Mips", "::", "SP_64", ":", "Mips", "::", "SP", ";", "unsigned", "FP", "=", "STI", ".", "isABI_N64", "(", ")", "?", "Mips", "::", "FP_64", ":", "Mips", "::", "FP", ";", "unsigned", "ZERO", "=", "STI", ".", "isABI_N64", "(", ")", "?", "Mips", "::", "ZERO_64", ":", "Mips", "::", "ZERO", ";", "unsigned", "ADDu", "=", "STI", ".", "isABI_N64", "(", ")", "?", "Mips", "::", "DADDu", ":", "Mips", "::", "ADDu", ";", "unsigned", "ADDiu", "=", "STI", ".", "isABI_N64", "(", ")", "?", "Mips", "::", "DADDiu", ":", "Mips", "::", "ADDiu", ";", "unsigned", "StackSize", "=", "MFI", "->", "getStackSize", "(", ")", ";", "unsigned", "NewReg", "=", "0", ";", "int", "NewImm", "=", "0", ";", "bool", "ATUsed", "=", "false", ";", "if", "(", "hasFP", "(", "MF", ")", ")", "{", "MachineBasicBlock", "::", "iterator", "I", "=", "MBBI", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "MFI", "->", "getCalleeSavedInfo", "(", ")", ".", "size", "(", ")", ";", "++", "i", ")", "--", "I", ";", "BuildMI", "(", "MBB", ",", "I", ",", "dl", ",", "TII", ".", "get", "(", "ADDu", ")", ",", "SP", ")", ".", "addReg", "(", "FP", ")", ".", "addReg", "(", "ZERO", ")", ";", "}", "if", "(", "StackSize", ")", "{", "ATUsed", "=", "expandRegLargeImmPair", "(", "SP", ",", "StackSize", ",", "NewReg", ",", "NewImm", ",", "MBB", ",", "MBBI", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "ADDiu", ")", ",", "SP", ")", ".", "addReg", "(", "NewReg", ")", ".", "addImm", "(", "NewImm", ")", ";", "if", "(", "ATUsed", ")", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "Mips", "::", "ATMACRO", ")", ")", ";", "}", "}", ""], "natrual_language": ["Insert", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "Mips::SP_64", "Mips::SP", "Mips::FP_64", "Mips::FP", "Mips::ZERO_64", "Mips::ZERO", "Mips::DADDu", "Mips::ADDu", "Mips::DADDiu", "Mips::ADDiu", "0", "0", "0", "Mips::ATMACRO"], "File": "MipsFrameLowering4", "Func": "emitEpilogue", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1273, "Length": 321, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ProtectSpillSupportPass", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "Func", ")", "{", "const", "X86InstrInfo", "*", "TII", "=", "static_cast", "<", "const", "X86InstrInfo", "*", ">", "(", "Func", ".", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "bool", "modified", "=", "false", ";", "SmallVector", "<", "CJEItem", ",", "8", ">", "worklist", ";", "for", "(", "auto", "MBBI", "=", "Func", ".", "begin", "(", ")", ",", "MBBE", "=", "Func", ".", "end", "(", ")", ";", "MBBI", "!=", "MBBE", ";", "++", "MBBI", ")", "{", "for", "(", "auto", "MI", "=", "MBBI", "->", "begin", "(", ")", ",", "ME", "=", "MBBI", "->", "end", "(", ")", ";", "MI", "!=", "ME", ";", "++", "MI", ")", "{", "CJEItem", "item", ";", "if", "(", "isCJEOpcode", "(", "MI", "->", "getOpcode", "(", ")", ",", "item", ".", "NativeOpcode", ",", "item", ".", "isFrameSetup", ")", ")", "{", "item", ".", "MI", "=", "MI", ";", "item", ".", "isEFLAGSlive", "=", "TII", "->", "isRegLiveAtMI", "(", "X86", "::", "EFLAGS", ",", "MI", ")", ";", "item", ".", "isRAXlive", "=", "isRAXLiveAtMI", "(", "MI", ")", ";", "worklist", ".", "push_back", "(", "item", ")", ";", "}", "}", "}", "modified", "=", "!", "worklist", ".", "empty", "(", ")", ";", "while", "(", "!", "worklist", ".", "empty", "(", ")", ")", "{", "CJEItem", "item", "=", "worklist", ".", "pop_back_val", "(", ")", ";", "transformCJE", "(", "item", ".", "MI", ",", "item", ".", "NativeOpcode", ",", "item", ".", "isFrameSetup", ",", "item", ".", "isEFLAGSlive", ",", "item", ".", "isRAXlive", ")", ";", "}", "return", "modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "8", "X86::EFLAGS"], "File": "X86ProtectSpillSupport", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1274, "Length": 219, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "LC3FrameLowering", "::", "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": ["LC3", "LC3"], "File": "LC3FrameLowering", "Func": "hasFP", "Target": "LC3", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1275, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "mips_can_use_return_insn", "(", ")", "{", "if", "(", "!", "reload_completed", ")", "return", "0", ";", "if", "(", "regs_ever_live", "[", "31", "]", "||", "current_function_profile", ")", "return", "0", ";", "if", "(", "TARGET_MIPS16", "&&", "mips16_hard_float", "&&", "!", "aggregate_value_p", "(", "DECL_RESULT", "(", "current_function_decl", ")", ")", "&&", "(", "GET_MODE_CLASS", "(", "DECL_MODE", "(", "DECL_RESULT", "(", "current_function_decl", ")", ")", ")", "==", "MODE_FLOAT", ")", "&&", "(", "!", "TARGET_SINGLE_FLOAT", "||", "(", "GET_MODE_SIZE", "(", "DECL_MODE", "(", "DECL_RESULT", "(", "current_function_decl", ")", ")", ")", "<=", "4", ")", ")", ")", "return", "0", ";", "if", "(", "current_frame_info", ".", "initialized", ")", "return", "current_frame_info", ".", "total_size", "==", "0", ";", "return", "compute_frame_size", "(", "get_frame_size", "(", ")", ")", "==", "0", ";", "}", ""], "natrual_language": ["Return", "nonzero", "if", "this", "function", "is", "known", "to", "have", "a", "null", "epilogue", ".", "This", "allows", "the", "optimizer", "to", "omit", "jumps", "to", "jumps", "if", "no", "stack", "was", "created", "."], "TS_V_token": ["mips", "0", "31", "0", "4", "0", "0", "0"], "File": "mips2", "Func": "mips_can_use_return_insn", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1276, "Length": 102, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCSubtarget", "::", "enableMachinePipeliner", "(", ")", "const", "{", "return", "getSchedModel", "(", ")", ".", "hasInstrSchedModel", "(", ")", "&&", "EnableMachinePipeliner", ";", "}", ""], "natrual_language": ["True", "if", "the", "subtarget", "should", "run", "MachinePipeliner", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCSubtarget13", "Func": "enableMachinePipeliner", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1277, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ix86_register_pragmas", "(", "void", ")", "{", "targetm", ".", "target_option", ".", "pragma_parse", "=", "ix86_pragma_target_parse", ";", "REGISTER_SUBTARGET_PRAGMAS", "(", ")", ";", "}", ""], "natrual_language": ["Register", "target", "pragmas", ".", "We", "need", "to", "add", "the", "hook", "for", "parsing", "#", "pragma", "GCC", "option", "here", "rather", "than", "in", "i386.cc", "since", "it", "will", "pull", "in", "various", "preprocessor", "functions", ",", "and", "those", "are", "not", "present", "in", "languages", "like", "fortran", "without", "a", "preprocessor", "."], "TS_V_token": ["i386"], "File": "i386-c2", "Func": "ix86_register_pragmas", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1278, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "AArch64Subtarget", "::", "AArch64Subtarget", "(", "StringRef", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "bool", "LittleEndian", ")", ":", "AArch64GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "ARMProcFamily", "(", "Others", ")", ",", "HasFPARMv8", "(", "false", ")", ",", "HasNEON", "(", "false", ")", ",", "HasCrypto", "(", "false", ")", ",", "TargetTriple", "(", "TT", ")", ",", "CPUString", "(", "CPU", ")", ",", "IsLittleEndian", "(", "LittleEndian", ")", "{", "initializeSubtargetFeatures", "(", "CPU", ",", "FS", ")", ";", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64Subtarget28", "Func": "AArch64Subtarget", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1279, "Length": 69, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMBankConflictHazardRecognizer", "::", "RecedeCycle", "(", ")", "{", "Accesses", ".", "clear", "(", ")", ";", "}", ""], "natrual_language": ["RecedeCycle", "-", "This", "callback", "is", "invoked", "whenever", "the", "next", "bottom-up", "instruction", "to", "be", "scheduled", "can", "not", "issue", "in", "the", "current", "cycle", ",", "either", "because", "of", "latency", "or", "resource", "conflicts", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMHazardRecognizer19", "Func": "RecedeCycle", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1280, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PadShortFunc", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "MF", ".", "getFunction", "(", ")", "->", "hasFnAttribute", "(", "Attribute", "::", "OptimizeForSize", ")", "||", "MF", ".", "getFunction", "(", ")", "->", "hasFnAttribute", "(", "Attribute", "::", "MinSize", ")", ")", "{", "return", "false", ";", "}", "STI", "=", "&", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "if", "(", "!", "STI", "->", "padShortFunctions", "(", ")", ")", "return", "false", ";", "TII", "=", "STI", "->", "getInstrInfo", "(", ")", ";", "ReturnBBs", ".", "clear", "(", ")", ";", "VisitedBBs", ".", "clear", "(", ")", ";", "findReturns", "(", "MF", ".", "begin", "(", ")", ")", ";", "bool", "MadeChange", "=", "false", ";", "MachineBasicBlock", "*", "MBB", ";", "unsigned", "int", "Cycles", "=", "0", ";", "for", "(", "DenseMap", "<", "MachineBasicBlock", "*", ",", "unsigned", "int", ">", "::", "iterator", "I", "=", "ReturnBBs", ".", "begin", "(", ")", ";", "I", "!=", "ReturnBBs", ".", "end", "(", ")", ";", "++", "I", ")", "{", "MBB", "=", "I", "->", "first", ";", "Cycles", "=", "I", "->", "second", ";", "if", "(", "Cycles", "<", "Threshold", ")", "{", "assert", "(", "MBB", "->", "size", "(", ")", ">", "0", "&&", "\"Basic block should contain at least a RET but is empty\"", ")", ";", "MachineBasicBlock", "::", "iterator", "ReturnLoc", "=", "--", "MBB", "->", "end", "(", ")", ";", "while", "(", "ReturnLoc", "->", "isDebugValue", "(", ")", ")", "--", "ReturnLoc", ";", "assert", "(", "ReturnLoc", "->", "isReturn", "(", ")", "&&", "!", "ReturnLoc", "->", "isCall", "(", ")", "&&", "\"Basic block does not end with RET\"", ")", ";", "addPadding", "(", "MBB", ",", "ReturnLoc", ",", "Threshold", "-", "Cycles", ")", ";", "NumBBsPadded", "++", ";", "MadeChange", "=", "true", ";", "}", "}", "return", "MadeChange", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "0", "0", "\"Basic block should contain at least a RET but is empty\"", "\"Basic block does not end with RET\""], "File": "X86PadShortFunction23", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1281, "Length": 240, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86CallLowering", "::", "lowerReturn", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "const", "Value", "*", "Val", ",", "unsigned", "VReg", ")", "const", "{", "assert", "(", "(", "(", "Val", "&&", "VReg", ")", "||", "(", "!", "Val", "&&", "!", "VReg", ")", ")", "&&", "\"Return value without a vreg\"", ")", ";", "auto", "MIB", "=", "MIRBuilder", ".", "buildInstrNoInsert", "(", "X86", "::", "RET", ")", ".", "addImm", "(", "0", ")", ";", "if", "(", "VReg", ")", "{", "MachineFunction", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "auto", "&", "DL", "=", "MF", ".", "getDataLayout", "(", ")", ";", "const", "Function", "&", "F", "=", "*", "MF", ".", "getFunction", "(", ")", ";", "ArgInfo", "OrigArg", "{", "VReg", ",", "Val", "->", "getType", "(", ")", "}", ";", "setArgFlags", "(", "OrigArg", ",", "AttributeList", "::", "ReturnIndex", ",", "DL", ",", "F", ")", ";", "SmallVector", "<", "ArgInfo", ",", "8", ">", "SplitArgs", ";", "if", "(", "!", "splitToValueTypes", "(", "OrigArg", ",", "SplitArgs", ",", "DL", ",", "MRI", ",", "[", "&", "]", "(", "ArrayRef", "<", "unsigned", ">", "Regs", ")", "{", "MIRBuilder", ".", "buildUnmerge", "(", "Regs", ",", "VReg", ")", ";", "}", ")", ")", "return", "false", ";", "OutgoingValueHandler", "Handler", "(", "MIRBuilder", ",", "MRI", ",", "MIB", ",", "RetCC_X86", ")", ";", "if", "(", "!", "handleAssignments", "(", "MIRBuilder", ",", "SplitArgs", ",", "Handler", ")", ")", "return", "false", ";", "}", "MIRBuilder", ".", "insertInstr", "(", "MIB", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "hook", "behaves", "as", "the", "extended", "lowerReturn", "function", ",", "but", "for", "targets", "that", "do", "not", "support", "swifterror", "value", "promotion", "."], "TS_V_token": ["X86", "X86", "\"Return value without a vreg\"", "X86::RET", "0", "8", "X86"], "File": "X86CallLowering20", "Func": "lowerReturn", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1282, "Length": 215, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "alignment_mask", "(", "rtx_insn", "*", "insn", ")", "{", "rtx", "body", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "body", ")", "!=", "SET", "||", "GET_CODE", "(", "SET_SRC", "(", "body", ")", ")", "!=", "AND", "||", "!", "REG_P", "(", "XEXP", "(", "SET_SRC", "(", "body", ")", ",", "0", ")", ")", ")", "return", "0", ";", "rtx", "mask", "=", "XEXP", "(", "SET_SRC", "(", "body", ")", ",", "1", ")", ";", "if", "(", "CONST_INT_P", "(", "mask", ")", ")", "{", "if", "(", "INTVAL", "(", "mask", ")", "==", "-", "16", ")", "return", "alignment_with_canonical_addr", "(", "SET_SRC", "(", "body", ")", ")", ";", "else", "return", "0", ";", "}", "if", "(", "!", "REG_P", "(", "mask", ")", ")", "return", "0", ";", "struct", "df_insn_info", "*", "insn_info", "=", "DF_INSN_INFO_GET", "(", "insn", ")", ";", "df_ref", "use", ";", "rtx", "real_mask", "=", "0", ";", "FOR_EACH_INSN_INFO_USE", "(", "use", ",", "insn_info", ")", "{", "if", "(", "!", "rtx_equal_p", "(", "DF_REF_REG", "(", "use", ")", ",", "mask", ")", ")", "continue", ";", "struct", "df_link", "*", "def_link", "=", "DF_REF_CHAIN", "(", "use", ")", ";", "if", "(", "!", "def_link", "||", "def_link", "->", "next", ")", "return", "0", ";", "rtx_insn", "*", "const_insn", "=", "DF_REF_INSN", "(", "def_link", "->", "ref", ")", ";", "rtx", "const_body", "=", "PATTERN", "(", "const_insn", ")", ";", "if", "(", "GET_CODE", "(", "const_body", ")", "!=", "SET", ")", "return", "0", ";", "real_mask", "=", "SET_SRC", "(", "const_body", ")", ";", "if", "(", "!", "CONST_INT_P", "(", "real_mask", ")", "||", "INTVAL", "(", "real_mask", ")", "!=", "-", "16", ")", "return", "0", ";", "}", "if", "(", "real_mask", "==", "0", ")", "return", "0", ";", "return", "alignment_with_canonical_addr", "(", "SET_SRC", "(", "body", ")", ")", ";", "}", ""], "natrual_language": ["Check", "whether", "an", "rtx", "is", "an", "alignment", "mask", ",", "and", "if", "so", ",", "return", "a", "fully-expanded", "rtx", "for", "the", "masking", "operation", "."], "TS_V_token": ["rs6000", "0", "0", "1", "16", "0", "0", "0", "0", "0", "16", "0", "0", "0"], "File": "rs6000-p8swap", "Func": "alignment_mask", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1283, "Length": 248, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "OR1KTargetLowering", "::", "LowerCall", "(", "TargetLowering", "::", "CallLoweringInfo", "&", "CLI", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "SelectionDAG", "&", "DAG", "=", "CLI", ".", "DAG", ";", "DebugLoc", "&", "dl", "=", "CLI", ".", "DL", ";", "SmallVector", "<", "ISD", "::", "OutputArg", ",", "32", ">", "&", "Outs", "=", "CLI", ".", "Outs", ";", "SmallVector", "<", "SDValue", ",", "32", ">", "&", "OutVals", "=", "CLI", ".", "OutVals", ";", "SmallVector", "<", "ISD", "::", "InputArg", ",", "32", ">", "&", "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": ["OR1K", "OR1K", "ISD::OutputArg", "32", "32", "ISD::InputArg", "32", "\"Unsupported calling convention\""], "File": "OR1KISelLowering", "Func": "LowerCall", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1284, "Length": 171, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "SparcRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "const", "SparcSubtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "SparcSubtarget", ">", "(", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "G1", ")", ";", "if", "(", "ReserveAppRegisters", ")", "{", "Reserved", ".", "set", "(", "SP", "::", "G2", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "G3", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "G4", ")", ";", "}", "if", "(", "!", "Subtarget", ".", "is64Bit", "(", ")", ")", "Reserved", ".", "set", "(", "SP", "::", "G5", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "O6", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "I6", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "I7", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "G0", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "G6", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "G7", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "G0_G1", ")", ";", "if", "(", "ReserveAppRegisters", ")", "Reserved", ".", "set", "(", "SP", "::", "G2_G3", ")", ";", "if", "(", "ReserveAppRegisters", "||", "!", "Subtarget", ".", "is64Bit", "(", ")", ")", "Reserved", ".", "set", "(", "SP", "::", "G4_G5", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "O6_O7", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "I6_I7", ")", ";", "Reserved", ".", "set", "(", "SP", "::", "G6_G7", ")", ";", "if", "(", "!", "Subtarget", ".", "isV9", "(", ")", ")", "{", "for", "(", "unsigned", "n", "=", "0", ";", "n", "!=", "16", ";", "++", "n", ")", "{", "for", "(", "MCRegAliasIterator", "AI", "(", "SP", "::", "D16", "+", "n", ",", "this", ",", "true", ")", ";", "AI", ".", "isValid", "(", ")", ";", "++", "AI", ")", "Reserved", ".", "set", "(", "*", "AI", ")", ";", "}", "}", "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": ["Sparc", "Sparc", "Sparc", "Sparc", "SP::G1", "SP::G2", "SP::G3", "SP::G4", "SP::G5", "SP::O6", "SP::I6", "SP::I7", "SP::G0", "SP::G6", "SP::G7", "SP::G0_G1", "SP::G2_G3", "SP::G4_G5", "SP::O6_O7", "SP::I6_I7", "SP::G6_G7", "0", "16", "SP::D16"], "File": "SparcRegisterInfo (2)", "Func": "getReservedRegs", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1285, "Length": 281, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCObjectWriter", "*", "createObjectWriter", "(", "raw_ostream", "&", "OS", ")", "const", "{", "bool", "is64", "=", "getPointerSize", "(", ")", "==", "8", ";", "return", "createPPCMachObjectWriter", "(", "OS", ",", "is64", ",", "(", "is64", "?", "MachO", "::", "CPU_TYPE_POWERPC64", ":", "MachO", "::", "CPU_TYPE_POWERPC", ")", ",", "MachO", "::", "CPU_SUBTYPE_POWERPC_ALL", ")", ";", "}", ""], "natrual_language": ["Create", "a", "new", "MCObjectWriter", "instance", "for", "use", "by", "the", "assembler", "backend", "to", "emit", "the", "final", "object", "file", "."], "TS_V_token": ["PowerPC", "8", "PPC"], "File": "PPCAsmBackend12", "Func": "createObjectWriter", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1286, "Length": 44, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_valid_attribute_p", "(", "tree", "fndecl", ",", "tree", "ARG_UNUSED", "(", "name", ")", ",", "tree", "args", ",", "int", "flags", ")", "{", "struct", "cl_target_option", "cur_target", ";", "bool", "ret", ";", "tree", "old_optimize", "=", "build_optimization_node", "(", "&", "global_options", ")", ";", "tree", "new_target", ",", "new_optimize", ";", "tree", "func_optimize", "=", "DECL_FUNCTION_SPECIFIC_OPTIMIZATION", "(", "fndecl", ")", ";", "gcc_assert", "(", "(", "fndecl", "!=", "NULL_TREE", ")", "&&", "(", "args", "!=", "NULL_TREE", ")", ")", ";", "if", "(", "TARGET_DEBUG_TARGET", ")", "{", "tree", "tname", "=", "DECL_NAME", "(", "fndecl", ")", ";", "fprintf", "(", "stderr", ",", "\"\\n==================== rs6000_valid_attribute_p:\\n\"", ")", ";", "if", "(", "tname", ")", "fprintf", "(", "stderr", ",", "\"function: %.*s\\n\"", ",", "(", "int", ")", "IDENTIFIER_LENGTH", "(", "tname", ")", ",", "IDENTIFIER_POINTER", "(", "tname", ")", ")", ";", "else", "fprintf", "(", "stderr", ",", "\"function: unknown\\n\"", ")", ";", "fprintf", "(", "stderr", ",", "\"args:\"", ")", ";", "rs6000_debug_target_options", "(", "args", ",", "\" \"", ")", ";", "fprintf", "(", "stderr", ",", "\"\\n\"", ")", ";", "if", "(", "flags", ")", "fprintf", "(", "stderr", ",", "\"flags: 0x%x\\n\"", ",", "flags", ")", ";", "fprintf", "(", "stderr", ",", "\"--------------------\\n\"", ")", ";", "}", "old_optimize", "=", "build_optimization_node", "(", "&", "global_options", ")", ";", "func_optimize", "=", "DECL_FUNCTION_SPECIFIC_OPTIMIZATION", "(", "fndecl", ")", ";", "if", "(", "func_optimize", "&&", "func_optimize", "!=", "old_optimize", ")", "cl_optimization_restore", "(", "&", "global_options", ",", "TREE_OPTIMIZATION", "(", "func_optimize", ")", ")", ";", "cl_target_option_save", "(", "&", "cur_target", ",", "&", "global_options", ")", ";", "rs6000_cpu_index", "=", "rs6000_tune_index", "=", "-", "1", ";", "ret", "=", "rs6000_inner_target_options", "(", "args", ",", "true", ")", ";", "if", "(", "ret", ")", "{", "ret", "=", "rs6000_option_override_internal", "(", "false", ")", ";", "new_target", "=", "build_target_option_node", "(", "&", "global_options", ")", ";", "}", "else", "new_target", "=", "NULL", ";", "new_optimize", "=", "build_optimization_node", "(", "&", "global_options", ")", ";", "if", "(", "!", "new_target", ")", "ret", "=", "false", ";", "else", "if", "(", "fndecl", ")", "{", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "fndecl", ")", "=", "new_target", ";", "if", "(", "old_optimize", "!=", "new_optimize", ")", "DECL_FUNCTION_SPECIFIC_OPTIMIZATION", "(", "fndecl", ")", "=", "new_optimize", ";", "}", "cl_target_option_restore", "(", "&", "global_options", ",", "&", "cur_target", ")", ";", "if", "(", "old_optimize", "!=", "new_optimize", ")", "cl_optimization_restore", "(", "&", "global_options", ",", "TREE_OPTIMIZATION", "(", "old_optimize", ")", ")", ";", "return", "ret", ";", "}", ""], "natrual_language": ["Hook", "to", "validate", "attribute", "(", "(", "target", "(", "``", "...", "''", ")", ")", ")", "."], "TS_V_token": ["powerpcspe", "\"\\n==================== rs6000_valid_attribute_p:\\n\"", "\"function: %.*s\\n\"", "\"function: unknown\\n\"", "\"args:\"", "\" \"", "\"\\n\"", "\"flags: 0x%x\\n\"", "\"--------------------\\n\"", "1"], "File": "powerpcspe", "Func": "rs6000_valid_attribute_p", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1287, "Length": 317, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDNode", "*", "MipsDAGToDAGISel", "::", "Select", "(", "SDNode", "*", "Node", ")", "{", "unsigned", "Opcode", "=", "Node", "->", "getOpcode", "(", ")", ";", "DEBUG", "(", "errs", "(", ")", "<<", "\"Selecting: \"", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "errs", "(", ")", "<<", "\"\\n\"", ")", ";", "if", "(", "Node", "->", "isMachineOpcode", "(", ")", ")", "{", "DEBUG", "(", "errs", "(", ")", "<<", "\"== \"", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "errs", "(", ")", "<<", "\"\\n\"", ")", ";", "Node", "->", "setNodeId", "(", "-", "1", ")", ";", "return", "nullptr", ";", "}", "std", "::", "pair", "<", "bool", ",", "SDNode", "*", ">", "Ret", "=", "selectNode", "(", "Node", ")", ";", "if", "(", "Ret", ".", "first", ")", "return", "Ret", ".", "second", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "GLOBAL_OFFSET_TABLE", ":", "return", "getGlobalBaseReg", "(", ")", ";", "case", "ISD", "::", "LOAD", ":", "case", "ISD", "::", "STORE", ":", "assert", "(", "(", "Subtarget", ".", "systemSupportsUnalignedAccess", "(", ")", "||", "cast", "<", "MemSDNode", ">", "(", "Node", ")", "->", "getMemoryVT", "(", ")", ".", "getSizeInBits", "(", ")", "/", "8", "<=", "cast", "<", "MemSDNode", ">", "(", "Node", ")", "->", "getAlignment", "(", ")", ")", "&&", "\"Unexpected unaligned loads/stores.\"", ")", ";", "break", ";", "}", "SDNode", "*", "ResNode", "=", "SelectCode", "(", "Node", ")", ";", "DEBUG", "(", "errs", "(", ")", "<<", "\"=> \"", ")", ";", "if", "(", "ResNode", "==", "nullptr", "||", "ResNode", "==", "Node", ")", "DEBUG", "(", "Node", "->", "dump", "(", "CurDAG", ")", ")", ";", "else", "DEBUG", "(", "ResNode", "->", "dump", "(", "CurDAG", ")", ")", ";", "DEBUG", "(", "errs", "(", ")", "<<", "\"\\n\"", ")", ";", "return", "ResNode", ";", "}", ""], "natrual_language": ["Main", "hook", "for", "targets", "to", "transform", "nodes", "into", "machine", "nodes", "."], "TS_V_token": ["Mips", "Mips", "\"Selecting: \"", "\"\\n\"", "\"== \"", "\"\\n\"", "1", "ISD::GLOBAL_OFFSET_TABLE", "ISD::LOAD", "ISD::STORE", "8", "\"Unexpected unaligned loads/stores.\"", "\"=> \"", "\"\\n\""], "File": "MipsISelDAGToDAG31", "Func": "Select", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1288, "Length": 249, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMTargetLowering", "::", "ReplaceNodeResults", "(", "SDNode", "*", "N", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "Results", ",", "SelectionDAG", "&", "DAG", ")", "{", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "assert", "(", "0", "&&", "\"Don't know how to custom expand this!\"", ")", ";", "return", ";", "case", "ISD", "::", "BIT_CONVERT", ":", "Results", ".", "push_back", "(", "ExpandBIT_CONVERT", "(", "N", ",", "DAG", ")", ")", ";", "return", ";", "case", "ISD", "::", "SRL", ":", "case", "ISD", "::", "SRA", ":", "{", "SDValue", "Res", "=", "ExpandSRx", "(", "N", ",", "DAG", ",", "Subtarget", ")", ";", "if", "(", "Res", ".", "getNode", "(", ")", ")", "Results", ".", "push_back", "(", "Res", ")", ";", "return", ";", "}", "}", "}", ""], "natrual_language": ["ReplaceNodeResults", "-", "Replace", "the", "results", "of", "node", "with", "an", "illegal", "result", "type", "with", "new", "values", "built", "out", "of", "custom", "code", "."], "TS_V_token": ["ARM", "ARM", "0", "\"Don't know how to custom expand this!\"", "ISD::BIT_CONVERT", "ISD::SRL", "ISD::SRA"], "File": "ARMISelLowering124", "Func": "ReplaceNodeResults", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1289, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Thumb1FrameLowering", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "CSI", ".", "empty", "(", ")", ")", "return", "false", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "ARMFunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "STI", ".", "getInstrInfo", "(", ")", ";", "bool", "isVarArg", "=", "AFI", "->", "getArgRegsSaveSize", "(", ")", ">", "0", ";", "DebugLoc", "DL", "=", "MI", "!=", "MBB", ".", "end", "(", ")", "?", "MI", "->", "getDebugLoc", "(", ")", ":", "DebugLoc", "(", ")", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "MF", ",", "DL", ",", "TII", ".", "get", "(", "ARM", "::", "tPOP", ")", ")", ";", "AddDefaultPred", "(", "MIB", ")", ";", "bool", "NumRegs", "=", "false", ";", "for", "(", "unsigned", "i", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "0", ";", "--", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "-", "1", "]", ".", "getReg", "(", ")", ";", "if", "(", "Reg", "==", "ARM", "::", "LR", "&&", "MBB", ".", "succ_empty", "(", ")", ")", "{", "if", "(", "isVarArg", ")", "continue", ";", "if", "(", "!", "STI", ".", "hasV5TOps", "(", ")", ")", "continue", ";", "Reg", "=", "ARM", "::", "PC", ";", "(", "*", "MIB", ")", ".", "setDesc", "(", "TII", ".", "get", "(", "ARM", "::", "tPOP_RET", ")", ")", ";", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", ")", "MIB", ".", "copyImplicitOps", "(", "&", "*", "MI", ")", ";", "MI", "=", "MBB", ".", "erase", "(", "MI", ")", ";", "}", "MIB", ".", "addReg", "(", "Reg", ",", "getDefRegState", "(", "true", ")", ")", ";", "NumRegs", "=", "true", ";", "}", "if", "(", "NumRegs", ")", "MBB", ".", "insert", "(", "MI", ",", "&", "*", "MIB", ")", ";", "else", "MF", ".", "DeleteMachineInstr", "(", "MIB", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["restoreCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "restore", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "load", "instructions", "via", "loadRegToStackSlot", "(", ")", "."], "TS_V_token": ["ARM", "ARM", "ARM", "0", "ARM::tPOP", "0", "1", "ARM::LR", "ARM::PC", "ARM::tPOP_RET"], "File": "Thumb1FrameLowering (2)", "Func": "restoreCalleeSavedRegisters", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1290, "Length": 300, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_darwin64_record_arg_recurse", "(", "CUMULATIVE_ARGS", "*", "cum", ",", "const_tree", "type", ",", "HOST_WIDE_INT", "startbitpos", ",", "rtx", "rvec", "[", "]", ",", "int", "*", "k", ")", "{", "tree", "f", ";", "for", "(", "f", "=", "TYPE_FIELDS", "(", "type", ")", ";", "f", ";", "f", "=", "DECL_CHAIN", "(", "f", ")", ")", "if", "(", "TREE_CODE", "(", "f", ")", "==", "FIELD_DECL", ")", "{", "HOST_WIDE_INT", "bitpos", "=", "startbitpos", ";", "tree", "ftype", "=", "TREE_TYPE", "(", "f", ")", ";", "machine_mode", "mode", ";", "if", "(", "ftype", "==", "error_mark_node", ")", "continue", ";", "mode", "=", "TYPE_MODE", "(", "ftype", ")", ";", "if", "(", "DECL_SIZE", "(", "f", ")", "!=", "0", "&&", "tree_fits_uhwi_p", "(", "bit_position", "(", "f", ")", ")", ")", "bitpos", "+=", "int_bit_position", "(", "f", ")", ";", "if", "(", "TREE_CODE", "(", "ftype", ")", "==", "RECORD_TYPE", ")", "rs6000_darwin64_record_arg_recurse", "(", "cum", ",", "ftype", ",", "bitpos", ",", "rvec", ",", "k", ")", ";", "else", "if", "(", "cum", "->", "named", "&&", "USE_FP_FOR_ARG_P", "(", "cum", ",", "mode", ")", ")", "{", "unsigned", "n_fpreg", "=", "(", "GET_MODE_SIZE", "(", "mode", ")", "+", "7", ")", ">>", "3", ";", "switch", "(", "mode", ")", "{", "case", "E_SCmode", ":", "mode", "=", "SFmode", ";", "break", ";", "case", "E_DCmode", ":", "mode", "=", "DFmode", ";", "break", ";", "case", "E_TCmode", ":", "mode", "=", "TFmode", ";", "break", ";", "default", ":", "break", ";", "}", "rs6000_darwin64_record_arg_flush", "(", "cum", ",", "bitpos", ",", "rvec", ",", "k", ")", ";", "if", "(", "cum", "->", "fregno", "+", "n_fpreg", ">", "FP_ARG_MAX_REG", "+", "1", ")", "{", "gcc_assert", "(", "cum", "->", "fregno", "==", "FP_ARG_MAX_REG", "&&", "(", "mode", "==", "TFmode", "||", "mode", "==", "TDmode", ")", ")", ";", "mode", "=", "DECIMAL_FLOAT_MODE_P", "(", "mode", ")", "?", "DDmode", ":", "DFmode", ";", "cum", "->", "use_stack", "=", "1", ";", "}", "rvec", "[", "(", "*", "k", ")", "++", "]", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "mode", ",", "cum", "->", "fregno", "++", ")", ",", "GEN_INT", "(", "bitpos", "/", "BITS_PER_UNIT", ")", ")", ";", "if", "(", "FLOAT128_2REG_P", "(", "mode", ")", ")", "cum", "->", "fregno", "++", ";", "}", "else", "if", "(", "cum", "->", "named", "&&", "USE_ALTIVEC_FOR_ARG_P", "(", "cum", ",", "mode", ",", "1", ")", ")", "{", "rs6000_darwin64_record_arg_flush", "(", "cum", ",", "bitpos", ",", "rvec", ",", "k", ")", ";", "rvec", "[", "(", "*", "k", ")", "++", "]", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "mode", ",", "cum", "->", "vregno", "++", ")", ",", "GEN_INT", "(", "bitpos", "/", "BITS_PER_UNIT", ")", ")", ";", "}", "else", "if", "(", "cum", "->", "intoffset", "==", "-", "1", ")", "cum", "->", "intoffset", "=", "bitpos", ";", "}", "}", ""], "natrual_language": ["Recursive", "workhorse", "for", "the", "following", "."], "TS_V_token": ["rs6000", "0", "7", "3", "1", "1", "1", "1"], "File": "rs6000-call", "Func": "rs6000_darwin64_record_arg_recurse", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1291, "Length": 381, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_print_operand_address", "(", "FILE", "*", "file", ",", "machine_mode", ",", "rtx", "x", ")", "{", "struct", "mips_address_info", "addr", ";", "if", "(", "mips_classify_address", "(", "&", "addr", ",", "x", ",", "word_mode", ",", "true", ")", ")", "switch", "(", "addr", ".", "type", ")", "{", "case", "ADDRESS_REG", ":", "mips_print_operand", "(", "file", ",", "addr", ".", "offset", ",", "0", ")", ";", "fprintf", "(", "file", ",", "\"(%s)\"", ",", "reg_names", "[", "REGNO", "(", "addr", ".", "reg", ")", "]", ")", ";", "return", ";", "case", "ADDRESS_LO_SUM", ":", "mips_print_operand_reloc", "(", "file", ",", "addr", ".", "offset", ",", "SYMBOL_CONTEXT_MEM", ",", "mips_lo_relocs", ")", ";", "fprintf", "(", "file", ",", "\"(%s)\"", ",", "reg_names", "[", "REGNO", "(", "addr", ".", "reg", ")", "]", ")", ";", "return", ";", "case", "ADDRESS_CONST_INT", ":", "output_addr_const", "(", "file", ",", "x", ")", ";", "fprintf", "(", "file", ",", "\"(%s)\"", ",", "reg_names", "[", "GP_REG_FIRST", "]", ")", ";", "return", ";", "case", "ADDRESS_SYMBOLIC", ":", "output_addr_const", "(", "file", ",", "mips_strip_unspec_address", "(", "x", ")", ")", ";", "return", ";", "}", "gcc_unreachable", "(", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_PRINT_OPERAND_ADDRESS", "."], "TS_V_token": ["mips", "0", "\"(%s)\"", "\"(%s)\"", "\"(%s)\""], "File": "mips", "Func": "mips_print_operand_address", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1292, "Length": 152, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "addRequired", "<", "LiveIntervals", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "LiveIntervals", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "SlotIndexes", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "SlotIndexes", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "MachineDominatorTree", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "MachineDominatorTree", ">", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["PowerPC"], "File": "PPCVSXFMAMutate (2)1", "Func": "getAnalysisUsage", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1293, "Length": 72, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCInstrInfo", "::", "isLoadFromStackSlot", "(", "const", "MachineInstr", "&", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "const", "unsigned", "*", "OpcodesForSpill", "=", "getLoadOpcodesForSpillArray", "(", ")", ";", "const", "unsigned", "*", "End", "=", "OpcodesForSpill", "+", "SOK_LastOpcodeSpill", ";", "if", "(", "End", "!=", "std", "::", "find", "(", "OpcodesForSpill", ",", "End", ",", "Opcode", ")", ")", "{", "if", "(", "MI", ".", "getOperand", "(", "1", ")", ".", "isImm", "(", ")", "&&", "!", "MI", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", "&&", "MI", ".", "getOperand", "(", "2", ")", ".", "isFI", "(", ")", ")", "{", "FrameIndex", "=", "MI", ".", "getOperand", "(", "2", ")", ".", "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": ["PowerPC", "PPC", "1", "1", "2", "2", "0", "0"], "File": "PPCInstrInfo (2)2", "Func": "isLoadFromStackSlot", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1294, "Length": 127, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "{", "return", "\"ARM MLA / MLS expansion pass\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["ARM", "\"ARM MLA / MLS expansion pass\""], "File": "MLxExpansionPass10", "Func": "getPassName", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1295, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "char", "*", "aarch64_output_sve_mov_immediate", "(", "rtx", "const_vector", ")", "{", "static", "char", "templ", "[", "40", "]", ";", "struct", "simd_immediate_info", "info", ";", "char", "element_char", ";", "bool", "is_valid", "=", "aarch64_simd_valid_immediate", "(", "const_vector", ",", "&", "info", ")", ";", "gcc_assert", "(", "is_valid", ")", ";", "element_char", "=", "sizetochar", "(", "GET_MODE_BITSIZE", "(", "info", ".", "elt_mode", ")", ")", ";", "machine_mode", "vec_mode", "=", "GET_MODE", "(", "const_vector", ")", ";", "if", "(", "aarch64_sve_pred_mode_p", "(", "vec_mode", ")", ")", "{", "static", "char", "buf", "[", "sizeof", "(", "\"ptrue\\t%0.N, vlNNNNN\"", ")", "]", ";", "if", "(", "info", ".", "insn", "==", "simd_immediate_info", "::", "MOV", ")", "{", "gcc_assert", "(", "info", ".", "u", ".", "mov", ".", "value", "==", "const0_rtx", ")", ";", "snprintf", "(", "buf", ",", "sizeof", "(", "buf", ")", ",", "\"pfalse\\t%%0.b\"", ")", ";", "}", "else", "{", "gcc_assert", "(", "info", ".", "insn", "==", "simd_immediate_info", "::", "PTRUE", ")", ";", "unsigned", "int", "total_bytes", ";", "if", "(", "info", ".", "u", ".", "pattern", "==", "AARCH64_SV_ALL", "&&", "BYTES_PER_SVE_VECTOR", ".", "is_constant", "(", "&", "total_bytes", ")", ")", "snprintf", "(", "buf", ",", "sizeof", "(", "buf", ")", ",", "\"ptrue\\t%%0.%c, vl%d\"", ",", "element_char", ",", "total_bytes", "/", "GET_MODE_SIZE", "(", "info", ".", "elt_mode", ")", ")", ";", "else", "snprintf", "(", "buf", ",", "sizeof", "(", "buf", ")", ",", "\"ptrue\\t%%0.%c, %s\"", ",", "element_char", ",", "svpattern_token", "(", "info", ".", "u", ".", "pattern", ")", ")", ";", "}", "return", "buf", ";", "}", "if", "(", "info", ".", "insn", "==", "simd_immediate_info", "::", "INDEX", ")", "{", "snprintf", "(", "templ", ",", "sizeof", "(", "templ", ")", ",", "\"index\\t%%0.%c, #\"", "HOST_WIDE_INT_PRINT_DEC", "\", #\"", "HOST_WIDE_INT_PRINT_DEC", ",", "element_char", ",", "INTVAL", "(", "info", ".", "u", ".", "index", ".", "base", ")", ",", "INTVAL", "(", "info", ".", "u", ".", "index", ".", "step", ")", ")", ";", "return", "templ", ";", "}", "if", "(", "GET_MODE_CLASS", "(", "info", ".", "elt_mode", ")", "==", "MODE_FLOAT", ")", "{", "if", "(", "aarch64_float_const_zero_rtx_p", "(", "info", ".", "u", ".", "mov", ".", "value", ")", ")", "info", ".", "u", ".", "mov", ".", "value", "=", "GEN_INT", "(", "0", ")", ";", "else", "{", "const", "int", "buf_size", "=", "20", ";", "char", "float_buf", "[", "buf_size", "]", "=", "{", "}", ";", "real_to_decimal_for_mode", "(", "float_buf", ",", "CONST_DOUBLE_REAL_VALUE", "(", "info", ".", "u", ".", "mov", ".", "value", ")", ",", "buf_size", ",", "buf_size", ",", "1", ",", "info", ".", "elt_mode", ")", ";", "snprintf", "(", "templ", ",", "sizeof", "(", "templ", ")", ",", "\"fmov\\t%%0.%c, #%s\"", ",", "element_char", ",", "float_buf", ")", ";", "return", "templ", ";", "}", "}", "snprintf", "(", "templ", ",", "sizeof", "(", "templ", ")", ",", "\"mov\\t%%0.%c, #\"", "HOST_WIDE_INT_PRINT_DEC", ",", "element_char", ",", "INTVAL", "(", "info", ".", "u", ".", "mov", ".", "value", ")", ")", ";", "return", "templ", ";", "}", ""], "natrual_language": ["Return", "the", "output", "string", "to", "use", "for", "moving", "immediate", "CONST_VECTOR", "into", "an", "SVE", "register", "."], "TS_V_token": ["aarch64", "40", "\"ptrue\\t%0.N, vlNNNNN\"", "\"pfalse\\t%%0.b\"", "\"ptrue\\t%%0.%c, vl%d\"", "\"ptrue\\t%%0.%c, %s\"", "\"index\\t%%0.%c, #\"", "\", #\"", "0", "20", "1", "\"fmov\\t%%0.%c, #%s\"", "\"mov\\t%%0.%c, #\""], "File": "aarch64", "Func": "aarch64_output_sve_mov_immediate", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1296, "Length": 386, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Value", "*", "AArch64TargetLowering", "::", "emitStoreConditional", "(", "IRBuilder", "<", ">", "&", "Builder", ",", "Value", "*", "Val", ",", "Value", "*", "Addr", ",", "AtomicOrdering", "Ord", ")", "const", "{", "Module", "*", "M", "=", "Builder", ".", "GetInsertBlock", "(", ")", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "bool", "IsRelease", "=", "isAtLeastRelease", "(", "Ord", ")", ";", "if", "(", "Val", "->", "getType", "(", ")", "->", "getPrimitiveSizeInBits", "(", ")", "==", "128", ")", "{", "Intrinsic", "::", "ID", "Int", "=", "IsRelease", "?", "Intrinsic", "::", "aarch64_stlxp", ":", "Intrinsic", "::", "aarch64_stxp", ";", "Function", "*", "Stxr", "=", "Intrinsic", "::", "getDeclaration", "(", "M", ",", "Int", ")", ";", "Type", "*", "Int64Ty", "=", "Type", "::", "getInt64Ty", "(", "M", "->", "getContext", "(", ")", ")", ";", "Value", "*", "Lo", "=", "Builder", ".", "CreateTrunc", "(", "Val", ",", "Int64Ty", ",", "\"lo\"", ")", ";", "Value", "*", "Hi", "=", "Builder", ".", "CreateTrunc", "(", "Builder", ".", "CreateLShr", "(", "Val", ",", "64", ")", ",", "Int64Ty", ",", "\"hi\"", ")", ";", "Addr", "=", "Builder", ".", "CreateBitCast", "(", "Addr", ",", "Type", "::", "getInt8PtrTy", "(", "M", "->", "getContext", "(", ")", ")", ")", ";", "return", "Builder", ".", "CreateCall3", "(", "Stxr", ",", "Lo", ",", "Hi", ",", "Addr", ")", ";", "}", "Intrinsic", "::", "ID", "Int", "=", "IsRelease", "?", "Intrinsic", "::", "aarch64_stlxr", ":", "Intrinsic", "::", "aarch64_stxr", ";", "Type", "*", "Tys", "[", "]", "=", "{", "Addr", "->", "getType", "(", ")", "}", ";", "Function", "*", "Stxr", "=", "Intrinsic", "::", "getDeclaration", "(", "M", ",", "Int", ",", "Tys", ")", ";", "return", "Builder", ".", "CreateCall2", "(", "Stxr", ",", "Builder", ".", "CreateZExtOrBitCast", "(", "Val", ",", "Stxr", "->", "getFunctionType", "(", ")", "->", "getParamType", "(", "0", ")", ")", ",", "Addr", ")", ";", "}", ""], "natrual_language": ["Perform", "a", "store-conditional", "operation", "to", "Addr", "."], "TS_V_token": ["AArch64", "AArch64", "128", "Intrinsic::ID", "Intrinsic::aarch64_stlxp", "Intrinsic::aarch64_stxp", "Intrinsic::getDeclaration", "\"lo\"", "64", "\"hi\"", "Intrinsic::ID", "Intrinsic::aarch64_stlxr", "Intrinsic::aarch64_stxr", "Intrinsic::getDeclaration", "0"], "File": "AArch64ISelLowering117", "Func": "emitStoreConditional", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1297, "Length": 254, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86IntelAsmPrinter", "::", "doInitialization", "(", "Module", "&", "M", ")", "{", "bool", "Result", "=", "AsmPrinter", "::", "doInitialization", "(", "M", ")", ";", "Mang", "->", "markCharUnacceptable", "(", "'.'", ")", ";", "O", "<<", "\"\\t.686\\n\\t.model flat\\n\\n\"", ";", "for", "(", "Module", "::", "iterator", "I", "=", "M", ".", "begin", "(", ")", ",", "E", "=", "M", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "if", "(", "I", "->", "isDeclaration", "(", ")", ")", "{", "std", "::", "string", "Name", "=", "Mang", "->", "getValueName", "(", "I", ")", ";", "decorateName", "(", "Name", ",", "I", ")", ";", "O", "<<", "\"\\textern \"", ";", "if", "(", "I", "->", "hasDLLImportLinkage", "(", ")", ")", "{", "O", "<<", "\"__imp_\"", ";", "}", "O", "<<", "Name", "<<", "\":near\\n\"", ";", "}", "for", "(", "Module", "::", "const_global_iterator", "I", "=", "M", ".", "global_begin", "(", ")", ",", "E", "=", "M", ".", "global_end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "if", "(", "I", "->", "isDeclaration", "(", ")", ")", "{", "std", "::", "string", "Name", "=", "Mang", "->", "getValueName", "(", "I", ")", ";", "O", "<<", "\"\\textern \"", ";", "if", "(", "I", "->", "hasDLLImportLinkage", "(", ")", ")", "{", "O", "<<", "\"__imp_\"", ";", "}", "O", "<<", "Name", "<<", "\":byte\\n\"", ";", "}", "}", "return", "Result", ";", "}", ""], "natrual_language": ["Set", "up", "the", "AsmPrinter", "when", "we", "are", "working", "on", "a", "new", "module", "."], "TS_V_token": ["X86", "X86", "\"\\t.686\\n\\t.model flat\\n\\n\"", "\"\\textern \"", "\"__imp_\"", "\":near\\n\"", "\"\\textern \"", "\"__imp_\"", "\":byte\\n\""], "File": "X86IntelAsmPrinter", "Func": "doInitialization", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1298, "Length": 192, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_set_handled_components", "(", "sbitmap", "components", ")", "{", "rs6000_stack_t", "*", "info", "=", "rs6000_stack_info", "(", ")", ";", "for", "(", "int", "i", "=", "info", "->", "first_gp_reg_save", ";", "i", "<", "32", ";", "i", "++", ")", "if", "(", "bitmap_bit_p", "(", "components", ",", "i", ")", ")", "cfun", "->", "machine", "->", "gpr_is_wrapped_separately", "[", "i", "]", "=", "true", ";", "if", "(", "bitmap_bit_p", "(", "components", ",", "0", ")", ")", "cfun", "->", "machine", "->", "lr_is_wrapped_separately", "=", "true", ";", "}", ""], "natrual_language": ["Implement", "TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS", "."], "TS_V_token": ["rs6000", "32", "0"], "File": "rs60006", "Func": "rs6000_set_handled_components", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1299, "Length": 70, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SMLoc", "getStartLoc", "(", ")", "const", "{", "return", "StartLoc", ";", "}", ""], "natrual_language": ["getStartLoc", "-", "Get", "the", "location", "of", "the", "first", "token", "of", "this", "operand", "."], "TS_V_token": ["X86"], "File": "X86AsmParser (2)2", "Func": "getStartLoc", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1300, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "char", "*", "rs6000_mangle_type", "(", "const_tree", "type", ")", "{", "type", "=", "TYPE_MAIN_VARIANT", "(", "type", ")", ";", "if", "(", "TREE_CODE", "(", "type", ")", "!=", "VOID_TYPE", "&&", "TREE_CODE", "(", "type", ")", "!=", "BOOLEAN_TYPE", "&&", "TREE_CODE", "(", "type", ")", "!=", "INTEGER_TYPE", "&&", "TREE_CODE", "(", "type", ")", "!=", "REAL_TYPE", ")", "return", "NULL", ";", "if", "(", "type", "==", "bool_char_type_node", ")", "return", "\"U6__boolc\"", ";", "if", "(", "type", "==", "bool_short_type_node", ")", "return", "\"U6__bools\"", ";", "if", "(", "type", "==", "pixel_type_node", ")", "return", "\"u7__pixel\"", ";", "if", "(", "type", "==", "bool_int_type_node", ")", "return", "\"U6__booli\"", ";", "if", "(", "type", "==", "bool_long_type_node", ")", "return", "\"U6__booll\"", ";", "if", "(", "TARGET_FLOAT128", ")", "{", "if", "(", "type", "==", "ieee128_float_type_node", ")", "return", "\"U10__float128\"", ";", "if", "(", "type", "==", "ibm128_float_type_node", ")", "return", "\"g\"", ";", "if", "(", "type", "==", "long_double_type_node", "&&", "TARGET_LONG_DOUBLE_128", ")", "return", "(", "TARGET_IEEEQUAD", ")", "?", "\"U10__float128\"", ":", "\"g\"", ";", "}", "if", "(", "TYPE_MAIN_VARIANT", "(", "type", ")", "==", "long_double_type_node", "&&", "TARGET_ELF", "&&", "TARGET_LONG_DOUBLE_128", "&&", "!", "TARGET_IEEEQUAD", ")", "return", "\"g\"", ";", "return", "NULL", ";", "}", ""], "natrual_language": ["AltiVec", "defines", "five", "built-in", "scalar", "types", "that", "serve", "as", "vector", "elements", ";", "we", "must", "teach", "the", "compiler", "how", "to", "mangle", "them", ".", "The", "128-bit", "floating", "point", "mangling", "is", "target-specific", "as", "well", ".", "MMA", "defines", "two", "built-in", "types", "to", "be", "used", "as", "opaque", "vector", "types", "."], "TS_V_token": ["rs6000", "\"U6__boolc\"", "\"U6__bools\"", "\"u7__pixel\"", "\"U6__booli\"", "\"U6__booll\"", "\"U10__float128\"", "\"g\"", "\"U10__float128\"", "\"g\"", "\"g\""], "File": "rs60005", "Func": "rs6000_mangle_type", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1301, "Length": 159, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "bool", "mode_supports_pre_modify_p", "(", "machine_mode", "mode", ")", "{", "return", "(", "(", "reg_addr", "[", "mode", "]", ".", "addr_mask", "[", "RELOAD_REG_ANY", "]", "&", "RELOAD_REG_PRE_MODIFY", ")", "!=", "0", ")", ";", "}", ""], "natrual_language": ["Helper", "function", "to", "say", "whether", "a", "mode", "supports", "PRE_MODIFY", "."], "TS_V_token": ["powerpcspe", "0"], "File": "powerpcspe", "Func": "mode_supports_pre_modify_p", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1302, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "aarch_crypto_can_dual_issue", "(", "rtx_insn", "*", "producer_insn", ",", "rtx_insn", "*", "consumer_insn", ")", "{", "rtx", "producer_set", ",", "consumer_set", ";", "rtx", "producer_src", ",", "consumer_src", ";", "producer_set", "=", "single_set", "(", "producer_insn", ")", ";", "consumer_set", "=", "single_set", "(", "consumer_insn", ")", ";", "producer_src", "=", "producer_set", "?", "SET_SRC", "(", "producer_set", ")", ":", "NULL", ";", "consumer_src", "=", "consumer_set", "?", "SET_SRC", "(", "consumer_set", ")", ":", "NULL", ";", "if", "(", "producer_src", "&&", "consumer_src", "&&", "GET_CODE", "(", "producer_src", ")", "==", "UNSPEC", "&&", "GET_CODE", "(", "consumer_src", ")", "==", "UNSPEC", "&&", "(", "(", "XINT", "(", "producer_src", ",", "1", ")", "==", "UNSPEC_AESE", "&&", "XINT", "(", "consumer_src", ",", "1", ")", "==", "UNSPEC_AESMC", ")", "||", "(", "XINT", "(", "producer_src", ",", "1", ")", "==", "UNSPEC_AESD", "&&", "XINT", "(", "consumer_src", ",", "1", ")", "==", "UNSPEC_AESIMC", ")", ")", ")", "{", "unsigned", "int", "regno", "=", "REGNO", "(", "SET_DEST", "(", "producer_set", ")", ")", ";", "return", "(", "REGNO", "(", "SET_DEST", "(", "consumer_set", ")", ")", "==", "regno", "||", "!", "reload_completed", ")", "&&", "REGNO", "(", "XVECEXP", "(", "consumer_src", ",", "0", ",", "0", ")", ")", "==", "regno", ";", "}", "return", "0", ";", "}", ""], "natrual_language": ["In", "ARMv8-A", "there", "'s", "a", "general", "expectation", "that", "AESE/AESMC", "and", "AESD/AESIMC", "sequences", "of", "the", "form", ":", "AESE", "Vn", ",", "_", "AESMC", "Vn", ",", "Vn", "will", "issue", "both", "instructions", "in", "a", "single", "cycle", "on", "super-scalar", "implementations", ".", "This", "function", "identifies", "such", "pairs", "."], "TS_V_token": ["arm", "1", "1", "1", "1", "0", "0", "0"], "File": "aarch-common3", "Func": "aarch_crypto_can_dual_issue", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1303, "Length": 168, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_rtx_costs", "(", "rtx", "x", ",", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "int", "outer_code", ",", "int", "opno", "ATTRIBUTE_UNUSED", ",", "int", "*", "total", ",", "bool", "speed", ")", "{", "bool", "result", ";", "int", "code", "=", "GET_CODE", "(", "x", ")", ";", "gcc_assert", "(", "current_tune", "->", "insn_extra_cost", ")", ";", "result", "=", "arm_rtx_costs_internal", "(", "x", ",", "(", "enum", "rtx_code", ")", "code", ",", "(", "enum", "rtx_code", ")", "outer_code", ",", "current_tune", "->", "insn_extra_cost", ",", "total", ",", "speed", ")", ";", "if", "(", "dump_file", "&&", "arm_verbose_cost", ")", "{", "print_rtl_single", "(", "dump_file", ",", "x", ")", ";", "fprintf", "(", "dump_file", ",", "\"\\n%s cost: %d (%s)\\n\"", ",", "speed", "?", "\"Hot\"", ":", "\"Cold\"", ",", "*", "total", ",", "result", "?", "\"final\"", ":", "\"partial\"", ")", ";", "}", "return", "result", ";", "}", ""], "natrual_language": ["RTX", "costs", "when", "optimizing", "for", "size", "."], "TS_V_token": ["arm", "\"\\n%s cost: %d (%s)\\n\"", "\"Hot\"", "\"Cold\"", "\"final\"", "\"partial\""], "File": "arm", "Func": "arm_rtx_costs", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1304, "Length": 112, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_short_vector_p", "(", "const_tree", "type", ",", "machine_mode", "mode", ")", "{", "HOST_WIDE_INT", "size", "=", "-", "1", ";", "if", "(", "type", "&&", "TREE_CODE", "(", "type", ")", "==", "VECTOR_TYPE", ")", "size", "=", "int_size_in_bytes", "(", "type", ")", ";", "else", "if", "(", "!", "aarch64_composite_type_p", "(", "type", ",", "mode", ")", "&&", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_VECTOR_INT", "||", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_VECTOR_FLOAT", ")", ")", "size", "=", "GET_MODE_SIZE", "(", "mode", ")", ";", "return", "(", "size", "==", "8", "||", "size", "==", "16", ")", "?", "true", ":", "false", ";", "}", ""], "natrual_language": ["Return", "TRUE", "if", "the", "type", ",", "as", "described", "by", "TYPE", "and", "MODE", ",", "is", "a", "short", "vector", "type", "as", "described", "in", "AAPCS64", "\\S", "4.1.2", ".", "See", "the", "comment", "above", "aarch64_composite_type_p", "for", "the", "notes", "on", "MODE", "."], "TS_V_token": ["aarch64", "1", "8", "16"], "File": "aarch642", "Func": "aarch64_short_vector_p", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1305, "Length": 85, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "mips_adjust_insn_length", "(", "rtx", "insn", ",", "int", "length", ")", "{", "if", "(", "CALL_P", "(", "insn", ")", "||", "(", "TARGET_MIPS16", "?", "simplejump_p", "(", "insn", ")", ":", "JUMP_P", "(", "insn", ")", ")", ")", "length", "+=", "4", ";", "if", "(", "!", "cfun", "->", "machine", "->", "ignore_hazard_length_p", "&&", "INSN_CODE", "(", "insn", ")", ">=", "0", ")", "switch", "(", "get_attr_hazard", "(", "insn", ")", ")", "{", "case", "HAZARD_NONE", ":", "break", ";", "case", "HAZARD_DELAY", ":", "length", "+=", "4", ";", "break", ";", "case", "HAZARD_HILO", ":", "length", "+=", "8", ";", "break", ";", "}", "if", "(", "TARGET_MIPS16", ")", "length", "/=", "2", ";", "return", "length", ";", "}", ""], "natrual_language": ["Return", "the", "length", "of", "INSN", ".", "LENGTH", "is", "the", "initial", "length", "computed", "by", "attributes", "in", "the", "machine-description", "file", "."], "TS_V_token": ["mips", "4", "0", "4", "8", "2"], "File": "mips3", "Func": "mips_adjust_insn_length", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1306, "Length": 95, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ix86_mode_after", "(", "int", "entity", ",", "int", "mode", ",", "rtx_insn", "*", "insn", ")", "{", "switch", "(", "entity", ")", "{", "case", "X86_DIRFLAG", ":", "return", "mode", ";", "case", "AVX_U128", ":", "return", "ix86_avx_u128_mode_after", "(", "mode", ",", "insn", ")", ";", "case", "I387_ROUNDEVEN", ":", "case", "I387_TRUNC", ":", "case", "I387_FLOOR", ":", "case", "I387_CEIL", ":", "return", "mode", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Return", "the", "mode", "that", "an", "insn", "results", "in", "."], "TS_V_token": ["i386"], "File": "i386", "Func": "ix86_mode_after", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1307, "Length": 60, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "restore_saved_cr", "(", "rtx", "reg", ",", "int", "using_mfcr_multiple", ",", "bool", "exit_func", ")", "{", "int", "count", "=", "0", ";", "int", "i", ";", "if", "(", "using_mfcr_multiple", ")", "{", "for", "(", "i", "=", "0", ";", "i", "<", "8", ";", "i", "++", ")", "if", "(", "save_reg_p", "(", "CR0_REGNO", "+", "i", ")", ")", "count", "++", ";", "gcc_assert", "(", "count", ")", ";", "}", "if", "(", "using_mfcr_multiple", "&&", "count", ">", "1", ")", "{", "rtx_insn", "*", "insn", ";", "rtvec", "p", ";", "int", "ndx", ";", "p", "=", "rtvec_alloc", "(", "count", ")", ";", "ndx", "=", "0", ";", "for", "(", "i", "=", "0", ";", "i", "<", "8", ";", "i", "++", ")", "if", "(", "save_reg_p", "(", "CR0_REGNO", "+", "i", ")", ")", "{", "rtvec", "r", "=", "rtvec_alloc", "(", "2", ")", ";", "RTVEC_ELT", "(", "r", ",", "0", ")", "=", "reg", ";", "RTVEC_ELT", "(", "r", ",", "1", ")", "=", "GEN_INT", "(", "1", "<<", "(", "7", "-", "i", ")", ")", ";", "RTVEC_ELT", "(", "p", ",", "ndx", ")", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "CCmode", ",", "CR0_REGNO", "+", "i", ")", ",", "gen_rtx_UNSPEC", "(", "CCmode", ",", "r", ",", "UNSPEC_MOVESI_TO_CR", ")", ")", ";", "ndx", "++", ";", "}", "insn", "=", "emit_insn", "(", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "p", ")", ")", ";", "gcc_assert", "(", "ndx", "==", "count", ")", ";", "if", "(", "!", "exit_func", "&&", "DEFAULT_ABI", "==", "ABI_ELFv2", "&&", "flag_shrink_wrap", ")", "{", "for", "(", "i", "=", "0", ";", "i", "<", "8", ";", "i", "++", ")", "if", "(", "save_reg_p", "(", "CR0_REGNO", "+", "i", ")", ")", "add_reg_note", "(", "insn", ",", "REG_CFA_RESTORE", ",", "gen_rtx_REG", "(", "SImode", ",", "CR0_REGNO", "+", "i", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "}", "else", "for", "(", "i", "=", "0", ";", "i", "<", "8", ";", "i", "++", ")", "if", "(", "save_reg_p", "(", "CR0_REGNO", "+", "i", ")", ")", "{", "rtx", "insn", "=", "emit_insn", "(", "gen_movsi_to_cr_one", "(", "gen_rtx_REG", "(", "CCmode", ",", "CR0_REGNO", "+", "i", ")", ",", "reg", ")", ")", ";", "if", "(", "!", "exit_func", "&&", "DEFAULT_ABI", "==", "ABI_ELFv2", "&&", "flag_shrink_wrap", ")", "{", "add_reg_note", "(", "insn", ",", "REG_CFA_RESTORE", ",", "gen_rtx_REG", "(", "SImode", ",", "CR0_REGNO", "+", "i", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "}", "if", "(", "!", "exit_func", "&&", "DEFAULT_ABI", "!=", "ABI_ELFv2", "&&", "(", "DEFAULT_ABI", "==", "ABI_V4", "||", "flag_shrink_wrap", ")", ")", "{", "rtx_insn", "*", "insn", "=", "get_last_insn", "(", ")", ";", "rtx", "cr", "=", "gen_rtx_REG", "(", "SImode", ",", "CR2_REGNO", ")", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_RESTORE", ",", "cr", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "}", ""], "natrual_language": ["Reload", "CR", "from", "REG", "."], "TS_V_token": ["rs6000", "0", "0", "8", "1", "0", "0", "8", "2", "0", "1", "1", "7", "0", "8", "1", "0", "8", "1", "1"], "File": "rs60004", "Func": "restore_saved_cr", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1308, "Length": 393, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Cpu0TargetLowering", "::", "getOpndList", "(", "SmallVectorImpl", "<", "SDValue", ">", "&", "Ops", ",", "std", "::", "deque", "<", "std", "::", "pair", "<", "unsigned", ",", "SDValue", ">", ">", "&", "RegsToPass", ",", "bool", "IsPICCall", ",", "bool", "GlobalOrExternal", ",", "bool", "InternalLinkage", ",", "CallLoweringInfo", "&", "CLI", ",", "SDValue", "Callee", ",", "SDValue", "Chain", ")", "const", "{", "if", "(", "IsPICCall", "||", "!", "GlobalOrExternal", ")", "{", "unsigned", "T9Reg", "=", "Cpu0", "::", "T9", ";", "RegsToPass", ".", "push_front", "(", "std", "::", "make_pair", "(", "T9Reg", ",", "Callee", ")", ")", ";", "}", "else", "Ops", ".", "push_back", "(", "Callee", ")", ";", "if", "(", "IsPICCall", "&&", "!", "InternalLinkage", ")", "{", "unsigned", "GPReg", "=", "Cpu0", "::", "GP", ";", "EVT", "Ty", "=", "MVT", "::", "i32", ";", "RegsToPass", ".", "push_back", "(", "std", "::", "make_pair", "(", "GPReg", ",", "getGlobalReg", "(", "CLI", ".", "DAG", ",", "Ty", ")", ")", ")", ";", "}", "SDValue", "InFlag", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RegsToPass", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "Chain", "=", "CLI", ".", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "CLI", ".", "DL", ",", "RegsToPass", "[", "i", "]", ".", "first", ",", "RegsToPass", "[", "i", "]", ".", "second", ",", "InFlag", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "}", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RegsToPass", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "Ops", ".", "push_back", "(", "CLI", ".", "DAG", ".", "getRegister", "(", "RegsToPass", "[", "i", "]", ".", "first", ",", "RegsToPass", "[", "i", "]", ".", "second", ".", "getValueType", "(", ")", ")", ")", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "Subtarget", ".", "getRegisterInfo", "(", ")", ";", "const", "uint32_t", "*", "Mask", "=", "TRI", "->", "getCallPreservedMask", "(", "CLI", ".", "DAG", ".", "getMachineFunction", "(", ")", ",", "CLI", ".", "CallConv", ")", ";", "assert", "(", "Mask", "&&", "\"Missing call preserved mask for calling convention\"", ")", ";", "Ops", ".", "push_back", "(", "CLI", ".", "DAG", ".", "getRegisterMask", "(", "Mask", ")", ")", ";", "if", "(", "InFlag", ".", "getNode", "(", ")", ")", "Ops", ".", "push_back", "(", "InFlag", ")", ";", "}", ""], "natrual_language": ["This", "function", "fills", "Ops", ",", "which", "is", "the", "list", "of", "operands", "that", "will", "later", "be", "used", "when", "a", "function", "call", "node", "is", "created", "."], "TS_V_token": ["Cpu0", "Cpu0", "Cpu0::T9", "Cpu0::GP", "MVT::i32", "0", "1", "0", "\"Missing call preserved mask for calling convention\""], "File": "Cpu0ISelLowering", "Func": "getOpndList", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1309, "Length": 320, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "EVT", "ARMTargetLowering", "::", "getOptimalMemOpType", "(", "uint64_t", "Size", ",", "unsigned", "DstAlign", ",", "unsigned", "SrcAlign", ",", "bool", "IsMemset", ",", "bool", "ZeroMemset", ",", "bool", "MemcpyStrSrc", ",", "MachineFunction", "&", "MF", ")", "const", "{", "const", "Function", "*", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "if", "(", "(", "!", "IsMemset", "||", "ZeroMemset", ")", "&&", "Subtarget", "->", "hasNEON", "(", ")", "&&", "!", "F", "->", "hasFnAttribute", "(", "Attribute", "::", "NoImplicitFloat", ")", ")", "{", "bool", "Fast", ";", "if", "(", "Size", ">=", "16", "&&", "(", "memOpAlign", "(", "SrcAlign", ",", "DstAlign", ",", "16", ")", "||", "(", "allowsMisalignedMemoryAccesses", "(", "MVT", "::", "v2f64", ",", "0", ",", "1", ",", "&", "Fast", ")", "&&", "Fast", ")", ")", ")", "{", "return", "MVT", "::", "v2f64", ";", "}", "else", "if", "(", "Size", ">=", "8", "&&", "(", "memOpAlign", "(", "SrcAlign", ",", "DstAlign", ",", "8", ")", "||", "(", "allowsMisalignedMemoryAccesses", "(", "MVT", "::", "f64", ",", "0", ",", "1", ",", "&", "Fast", ")", "&&", "Fast", ")", ")", ")", "{", "return", "MVT", "::", "f64", ";", "}", "}", "return", "MVT", "::", "Other", ";", "}", ""], "natrual_language": ["It", "returns", "EVT", ":", ":Other", "if", "the", "type", "should", "be", "determined", "using", "generic", "target-independent", "logic", "."], "TS_V_token": ["ARM", "ARM", "16", "16", "MVT::v2f64", "0", "1", "MVT::v2f64", "8", "8", "MVT::f64", "0", "1", "MVT::f64", "MVT::Other"], "File": "ARMISelLowering108", "Func": "getOptimalMemOpType", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1310, "Length": 161, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "AArch64TargetLowering", "::", "PerformDAGCombine", "(", "SDNode", "*", "N", ",", "DAGCombinerInfo", "&", "DCI", ")", "const", "{", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "AND", ":", "return", "PerformANDCombine", "(", "N", ",", "DCI", ")", ";", "case", "ISD", "::", "OR", ":", "return", "PerformORCombine", "(", "N", ",", "DCI", ",", "getSubtarget", "(", ")", ")", ";", "case", "ISD", "::", "SHL", ":", "case", "ISD", "::", "SRA", ":", "case", "ISD", "::", "SRL", ":", "return", "PerformShiftCombine", "(", "N", ",", "DCI", ",", "getSubtarget", "(", ")", ")", ";", "case", "ISD", "::", "INTRINSIC_WO_CHAIN", ":", "return", "PerformIntrinsicCombine", "(", "N", ",", "DCI", ".", "DAG", ")", ";", "case", "ISD", "::", "INTRINSIC_VOID", ":", "case", "ISD", "::", "INTRINSIC_W_CHAIN", ":", "switch", "(", "cast", "<", "ConstantSDNode", ">", "(", "N", "->", "getOperand", "(", "1", ")", ")", "->", "getZExtValue", "(", ")", ")", "{", "case", "Intrinsic", "::", "arm_neon_vld1", ":", "case", "Intrinsic", "::", "arm_neon_vld2", ":", "case", "Intrinsic", "::", "arm_neon_vld3", ":", "case", "Intrinsic", "::", "arm_neon_vld4", ":", "case", "Intrinsic", "::", "arm_neon_vst1", ":", "case", "Intrinsic", "::", "arm_neon_vst2", ":", "case", "Intrinsic", "::", "arm_neon_vst3", ":", "case", "Intrinsic", "::", "arm_neon_vst4", ":", "return", "CombineBaseUpdate", "(", "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": ["AArch64", "AArch64", "ISD::AND", "ISD::OR", "ISD::SHL", "ISD::SRA", "ISD::SRL", "ISD::INTRINSIC_WO_CHAIN", "ISD::INTRINSIC_VOID", "ISD::INTRINSIC_W_CHAIN", "1", "Intrinsic::arm_neon_vld1", "Intrinsic::arm_neon_vld2", "Intrinsic::arm_neon_vld3", "Intrinsic::arm_neon_vld4", "Intrinsic::arm_neon_vst1", "Intrinsic::arm_neon_vst2", "Intrinsic::arm_neon_vst3", "Intrinsic::arm_neon_vst4"], "File": "AArch64ISelLowering113", "Func": "PerformDAGCombine", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1311, "Length": 190, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMTargetLowering", "::", "AdjustInstrPostInstrSelection", "(", "MachineInstr", "*", "MI", ",", "SDNode", "*", "Node", ")", "const", "{", "if", "(", "!", "MI", "->", "hasPostISelHook", "(", ")", ")", "{", "assert", "(", "!", "convertAddSubFlagsOpcode", "(", "MI", "->", "getOpcode", "(", ")", ")", "&&", "\"Pseudo flag-setting opcodes must be marked with 'hasPostISelHook'\"", ")", ";", "return", ";", "}", "const", "MCInstrDesc", "*", "MCID", "=", "&", "MI", "->", "getDesc", "(", ")", ";", "unsigned", "NewOpc", "=", "convertAddSubFlagsOpcode", "(", "MI", "->", "getOpcode", "(", ")", ")", ";", "if", "(", "NewOpc", ")", "{", "const", "ARMBaseInstrInfo", "*", "TII", "=", "static_cast", "<", "const", "ARMBaseInstrInfo", "*", ">", "(", "getTargetMachine", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "MCID", "=", "&", "TII", "->", "get", "(", "NewOpc", ")", ";", "assert", "(", "MCID", "->", "getNumOperands", "(", ")", "==", "MI", "->", "getDesc", "(", ")", ".", "getNumOperands", "(", ")", "+", "1", "&&", "\"converted opcode should be the same except for cc_out\"", ")", ";", "MI", "->", "setDesc", "(", "*", "MCID", ")", ";", "MI", "->", "addOperand", "(", "MachineOperand", "::", "CreateReg", "(", "0", ",", "true", ")", ")", ";", "}", "unsigned", "ccOutIdx", "=", "MCID", "->", "getNumOperands", "(", ")", "-", "1", ";", "if", "(", "!", "MI", "->", "hasOptionalDef", "(", ")", "||", "!", "MCID", "->", "OpInfo", "[", "ccOutIdx", "]", ".", "isOptionalDef", "(", ")", ")", "{", "assert", "(", "!", "NewOpc", "&&", "\"Optional cc_out operand required\"", ")", ";", "return", ";", "}", "bool", "definesCPSR", "=", "false", ";", "bool", "deadCPSR", "=", "false", ";", "for", "(", "unsigned", "i", "=", "MCID", "->", "getNumOperands", "(", ")", ",", "e", "=", "MI", "->", "getNumOperands", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "i", ")", ";", "if", "(", "MO", ".", "isReg", "(", ")", "&&", "MO", ".", "isDef", "(", ")", "&&", "MO", ".", "getReg", "(", ")", "==", "ARM", "::", "CPSR", ")", "{", "definesCPSR", "=", "true", ";", "if", "(", "MO", ".", "isDead", "(", ")", ")", "deadCPSR", "=", "true", ";", "MI", "->", "RemoveOperand", "(", "i", ")", ";", "break", ";", "}", "}", "if", "(", "!", "definesCPSR", ")", "{", "assert", "(", "!", "NewOpc", "&&", "\"Optional cc_out operand required\"", ")", ";", "return", ";", "}", "assert", "(", "deadCPSR", "==", "!", "Node", "->", "hasAnyUseOfValue", "(", "1", ")", "&&", "\"inconsistent dead flag\"", ")", ";", "if", "(", "deadCPSR", ")", "{", "assert", "(", "!", "MI", "->", "getOperand", "(", "ccOutIdx", ")", ".", "getReg", "(", ")", "&&", "\"expect uninitialized optional cc_out operand\"", ")", ";", "return", ";", "}", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "ccOutIdx", ")", ";", "MO", ".", "setReg", "(", "ARM", "::", "CPSR", ")", ";", "MO", ".", "setIsDef", "(", "true", ")", ";", "}", ""], "natrual_language": ["This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'hasPostISelHook", "'", "flag", "."], "TS_V_token": ["ARM", "ARM", "\"Pseudo flag-setting opcodes must be marked with 'hasPostISelHook'\"", "ARM", "ARM", "1", "\"converted opcode should be the same except for cc_out\"", "0", "1", "\"Optional cc_out operand required\"", "ARM::CPSR", "\"Optional cc_out operand required\"", "1", "\"inconsistent dead flag\"", "\"expect uninitialized optional cc_out operand\"", "ARM::CPSR"], "File": "ARMISelLowering (2)", "Func": "AdjustInstrPostInstrSelection", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1312, "Length": 379, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SparcPassConfig", "::", "addPreEmitPass", "(", ")", "{", "addPass", "(", "createSparcDelaySlotFillerPass", "(", ")", ")", ";", "if", "(", "this", "->", "getSparcTargetMachine", "(", ")", ".", "getSubtargetImpl", "(", ")", "->", "insertNOPLoad", "(", ")", ")", "{", "addPass", "(", "new", "InsertNOPLoad", "(", ")", ")", ";", "}", "if", "(", "this", "->", "getSparcTargetMachine", "(", ")", ".", "getSubtargetImpl", "(", ")", "->", "detectRoundChange", "(", ")", ")", "{", "addPass", "(", "new", "DetectRoundChange", "(", ")", ")", ";", "}", "if", "(", "this", "->", "getSparcTargetMachine", "(", ")", ".", "getSubtargetImpl", "(", ")", "->", "fixAllFDIVSQRT", "(", ")", ")", "{", "addPass", "(", "new", "FixAllFDIVSQRT", "(", ")", ")", ";", "}", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["Sparc", "Sparc", "Sparc", "Sparc", "Sparc", "Sparc"], "File": "SparcTargetMachine (2)1", "Func": "addPreEmitPass", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1313, "Length": 93, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "processBlock", "(", "MachineBasicBlock", "&", "MBB", ")", "{", "bool", "Changed", "=", "false", ";", "MachineRegisterInfo", "&", "MRI", "=", "MBB", ".", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "{", "if", "(", "!", "MI", ".", "isFullCopy", "(", ")", ")", "continue", ";", "MachineOperand", "&", "DstMO", "=", "MI", ".", "getOperand", "(", "0", ")", ";", "MachineOperand", "&", "SrcMO", "=", "MI", ".", "getOperand", "(", "1", ")", ";", "if", "(", "IsVSReg", "(", "DstMO", ".", "getReg", "(", ")", ",", "MRI", ")", "&&", "!", "IsVSReg", "(", "SrcMO", ".", "getReg", "(", ")", ",", "MRI", ")", ")", "{", "Changed", "=", "true", ";", "const", "TargetRegisterClass", "*", "SrcRC", "=", "&", "PPC", "::", "VSLRCRegClass", ";", "assert", "(", "(", "IsF8Reg", "(", "SrcMO", ".", "getReg", "(", ")", ",", "MRI", ")", "||", "IsVSSReg", "(", "SrcMO", ".", "getReg", "(", ")", ",", "MRI", ")", "||", "IsVSFReg", "(", "SrcMO", ".", "getReg", "(", ")", ",", "MRI", ")", ")", "&&", "\"Unknown source for a VSX copy\"", ")", ";", "unsigned", "NewVReg", "=", "MRI", ".", "createVirtualRegister", "(", "SrcRC", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "TargetOpcode", "::", "SUBREG_TO_REG", ")", ",", "NewVReg", ")", ".", "addImm", "(", "1", ")", ".", "add", "(", "SrcMO", ")", ".", "addImm", "(", "PPC", "::", "sub_64", ")", ";", "SrcMO", ".", "setReg", "(", "NewVReg", ")", ";", "}", "else", "if", "(", "!", "IsVSReg", "(", "DstMO", ".", "getReg", "(", ")", ",", "MRI", ")", "&&", "IsVSReg", "(", "SrcMO", ".", "getReg", "(", ")", ",", "MRI", ")", ")", "{", "Changed", "=", "true", ";", "const", "TargetRegisterClass", "*", "DstRC", "=", "&", "PPC", "::", "VSLRCRegClass", ";", "assert", "(", "(", "IsF8Reg", "(", "DstMO", ".", "getReg", "(", ")", ",", "MRI", ")", "||", "IsVSFReg", "(", "DstMO", ".", "getReg", "(", ")", ",", "MRI", ")", "||", "IsVSSReg", "(", "DstMO", ".", "getReg", "(", ")", ",", "MRI", ")", ")", "&&", "\"Unknown destination for a VSX copy\"", ")", ";", "unsigned", "NewVReg", "=", "MRI", ".", "createVirtualRegister", "(", "DstRC", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "TargetOpcode", "::", "COPY", ")", ",", "NewVReg", ")", ".", "add", "(", "SrcMO", ")", ";", "SrcMO", ".", "setReg", "(", "NewVReg", ")", ";", "SrcMO", ".", "setSubReg", "(", "PPC", "::", "sub_64", ")", ";", "}", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["processBlock", "-", "If", "there", "are", "any", "predecessors", "whose", "control", "can", "be", "threaded", "through", "to", "a", "successor", ",", "transform", "them", "now", "."], "TS_V_token": ["PowerPC", "0", "1", "PPC::VSLRCRegClass", "\"Unknown source for a VSX copy\"", "1", "PPC::sub_64", "PPC::VSLRCRegClass", "\"Unknown destination for a VSX copy\"", "PPC::sub_64"], "File": "PPCVSXCopy", "Func": "processBlock", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1314, "Length": 350, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86PassConfig", "::", "addPreEmitPass", "(", ")", "{", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "getX86Subtarget", "(", ")", ".", "hasSSE2", "(", ")", ")", "addPass", "(", "createExecutionDependencyFixPass", "(", "&", "X86", "::", "VR128RegClass", ")", ")", ";", "if", "(", "UseVZeroUpper", ")", "addPass", "(", "createX86IssueVZeroUpperPass", "(", ")", ")", ";", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "addPass", "(", "createX86PadShortFunctions", "(", ")", ")", ";", "addPass", "(", "createX86FixupLEAs", "(", ")", ")", ";", "}", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["X86", "X86", "X86", "X86::VR128RegClass", "X86", "X86", "X86"], "File": "X86TargetMachine112", "Func": "addPreEmitPass", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1315, "Length": 74, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "TargetRegisterClass", "*", "VERegisterInfo", "::", "getPointerRegClass", "(", "const", "MachineFunction", "&", "MF", ",", "unsigned", "Kind", ")", "const", "{", "return", "&", "VE", "::", "I64RegClass", ";", "}", ""], "natrual_language": ["getPointerRegClass", "-", "Returns", "a", "TargetRegisterClass", "used", "for", "pointer", "values", "."], "TS_V_token": ["VE", "VE", "VE::I64RegClass"], "File": "VERegisterInfo", "Func": "getPointerRegClass", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1316, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMFastISel", "::", "fastEmitInst_rr", "(", "unsigned", "MachineInstOpcode", ",", "const", "TargetRegisterClass", "*", "RC", ",", "unsigned", "Op0", ",", "unsigned", "Op1", ")", "{", "Register", "ResultReg", "=", "createResultReg", "(", "RC", ")", ";", "const", "MCInstrDesc", "&", "II", "=", "TII", ".", "get", "(", "MachineInstOpcode", ")", ";", "Op0", "=", "constrainOperandRegClass", "(", "II", ",", "Op0", ",", "1", ")", ";", "Op1", "=", "constrainOperandRegClass", "(", "II", ",", "Op1", ",", "2", ")", ";", "if", "(", "II", ".", "getNumDefs", "(", ")", ">=", "1", ")", "{", "AddOptionalDefs", "(", "BuildMI", "(", "*", "FuncInfo", ".", "MBB", ",", "FuncInfo", ".", "InsertPt", ",", "DbgLoc", ",", "II", ",", "ResultReg", ")", ".", "addReg", "(", "Op0", ")", ".", "addReg", "(", "Op1", ")", ")", ";", "}", "else", "{", "AddOptionalDefs", "(", "BuildMI", "(", "*", "FuncInfo", ".", "MBB", ",", "FuncInfo", ".", "InsertPt", ",", "DbgLoc", ",", "II", ")", ".", "addReg", "(", "Op0", ")", ".", "addReg", "(", "Op1", ")", ")", ";", "AddOptionalDefs", "(", "BuildMI", "(", "*", "FuncInfo", ".", "MBB", ",", "FuncInfo", ".", "InsertPt", ",", "DbgLoc", ",", "TII", ".", "get", "(", "TargetOpcode", "::", "COPY", ")", ",", "ResultReg", ")", ".", "addReg", "(", "II", ".", "ImplicitDefs", "[", "0", "]", ")", ")", ";", "}", "return", "ResultReg", ";", "}", ""], "natrual_language": ["Emit", "a", "MachineInstr", "with", "two", "register", "operands", "and", "a", "result", "register", "in", "the", "given", "register", "class", "."], "TS_V_token": ["ARM", "ARM", "1", "2", "1", "0"], "File": "ARMFastISel36", "Func": "fastEmitInst_rr", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1317, "Length": 179, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ix86_mode_needed", "(", "int", "entity", ",", "rtx", "insn", ")", "{", "enum", "attr_i387_cw", "mode", ";", "if", "(", "CALL_P", "(", "insn", ")", "||", "(", "NONJUMP_INSN_P", "(", "insn", ")", "&&", "(", "asm_noperands", "(", "PATTERN", "(", "insn", ")", ")", ">=", "0", "||", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "==", "ASM_INPUT", ")", ")", ")", "return", "I387_CW_UNINITIALIZED", ";", "if", "(", "recog_memoized", "(", "insn", ")", "<", "0", ")", "return", "I387_CW_ANY", ";", "mode", "=", "get_attr_i387_cw", "(", "insn", ")", ";", "switch", "(", "entity", ")", "{", "case", "I387_TRUNC", ":", "if", "(", "mode", "==", "I387_CW_TRUNC", ")", "return", "mode", ";", "break", ";", "case", "I387_FLOOR", ":", "if", "(", "mode", "==", "I387_CW_FLOOR", ")", "return", "mode", ";", "break", ";", "case", "I387_CEIL", ":", "if", "(", "mode", "==", "I387_CW_CEIL", ")", "return", "mode", ";", "break", ";", "case", "I387_MASK_PM", ":", "if", "(", "mode", "==", "I387_CW_MASK_PM", ")", "return", "mode", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "return", "I387_CW_ANY", ";", "}", ""], "natrual_language": ["Return", "needed", "mode", "for", "entity", "in", "optimize_mode_switching", "pass", "."], "TS_V_token": ["i386", "0", "0"], "File": "i3863", "Func": "ix86_mode_needed", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1318, "Length": 144, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"Workaround A53 erratum 835769 pass\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["AArch64", "\"Workaround A53 erratum 835769 pass\""], "File": "AArch64A53Fix83576920", "Func": "getPassName", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1319, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseInstrInfo", "::", "isProfitableToIfCvt", "(", "MachineBasicBlock", "&", "MBB", ",", "unsigned", "NumCycles", ",", "unsigned", "ExtraPredCycles", ",", "const", "BranchProbability", "&", "Probability", ")", "const", "{", "if", "(", "!", "NumCycles", ")", "return", "false", ";", "const", "Function", "*", "F", "=", "MBB", ".", "getParent", "(", ")", "->", "getFunction", "(", ")", ";", "if", "(", "F", "->", "hasFnAttribute", "(", "Attribute", "::", "OptimizeForSize", ")", "||", "F", "->", "hasFnAttribute", "(", "Attribute", "::", "MinSize", ")", ")", "{", "MachineBasicBlock", "*", "Pred", "=", "*", "MBB", ".", "pred_begin", "(", ")", ";", "if", "(", "!", "Pred", "->", "empty", "(", ")", ")", "{", "MachineInstr", "*", "LastMI", "=", "&", "*", "Pred", "->", "rbegin", "(", ")", ";", "if", "(", "LastMI", "->", "getOpcode", "(", ")", "==", "ARM", "::", "t2Bcc", ")", "{", "MachineBasicBlock", "::", "iterator", "CmpMI", "=", "LastMI", ";", "if", "(", "CmpMI", "!=", "Pred", "->", "begin", "(", ")", ")", "{", "--", "CmpMI", ";", "if", "(", "CmpMI", "->", "getOpcode", "(", ")", "==", "ARM", "::", "tCMPi8", "||", "CmpMI", "->", "getOpcode", "(", ")", "==", "ARM", "::", "t2CMPri", ")", "{", "unsigned", "Reg", "=", "CmpMI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "unsigned", "PredReg", "=", "0", ";", "ARMCC", "::", "CondCodes", "P", "=", "getInstrPredicate", "(", "CmpMI", ",", "PredReg", ")", ";", "if", "(", "P", "==", "ARMCC", "::", "AL", "&&", "CmpMI", "->", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", "==", "0", "&&", "isARMLowRegister", "(", "Reg", ")", ")", "return", "false", ";", "}", "}", "}", "}", "}", "unsigned", "UnpredCost", "=", "Probability", ".", "getNumerator", "(", ")", "*", "NumCycles", ";", "UnpredCost", "/=", "Probability", ".", "getDenominator", "(", ")", ";", "UnpredCost", "+=", "1", ";", "UnpredCost", "+=", "Subtarget", ".", "getMispredictionPenalty", "(", ")", "/", "10", ";", "return", "(", "NumCycles", "+", "ExtraPredCycles", ")", "<=", "UnpredCost", ";", "}", ""], "natrual_language": ["Second", "variant", "of", "isProfitableToIfCvt", "."], "TS_V_token": ["ARM", "ARM", "ARM::t2Bcc", "ARM::tCMPi8", "ARM::t2CMPri", "0", "0", "ARMCC::CondCodes", "ARMCC::AL", "1", "0", "ARM", "1", "10"], "File": "ARMBaseInstrInfo85", "Func": "isProfitableToIfCvt", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1320, "Length": 264, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "loongarch_legitimate_address_p", "(", "machine_mode", "mode", ",", "rtx", "x", ",", "bool", "strict_p", ")", "{", "struct", "loongarch_address_info", "addr", ";", "return", "loongarch_classify_address", "(", "&", "addr", ",", "x", ",", "mode", ",", "strict_p", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_LEGITIMATE_ADDRESS_P", "."], "TS_V_token": ["loongarch"], "File": "loongarch", "Func": "loongarch_legitimate_address_p", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1321, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "outliner", "::", "TargetCostInfo", "AArch64InstrInfo", "::", "getOutliningCandidateInfo", "(", "std", "::", "vector", "<", "outliner", "::", "Candidate", ">", "&", "RepeatedSequenceLocs", ")", "const", "{", "unsigned", "SequenceSize", "=", "std", "::", "accumulate", "(", "RepeatedSequenceLocs", "[", "0", "]", ".", "front", "(", ")", ",", "std", "::", "next", "(", "RepeatedSequenceLocs", "[", "0", "]", ".", "back", "(", ")", ")", ",", "0", ",", "[", "this", "]", "(", "unsigned", "Sum", ",", "const", "MachineInstr", "&", "MI", ")", "{", "return", "Sum", "+", "getInstSizeInBytes", "(", "MI", ")", ";", "}", ")", ";", "unsigned", "CallID", "=", "MachineOutlinerDefault", ";", "unsigned", "FrameID", "=", "MachineOutlinerDefault", ";", "unsigned", "NumBytesForCall", "=", "12", ";", "unsigned", "NumBytesToCreateFrame", "=", "4", ";", "const", "TargetRegisterInfo", "&", "TRI", "=", "getRegisterInfo", "(", ")", ";", "std", "::", "for_each", "(", "RepeatedSequenceLocs", ".", "begin", "(", ")", ",", "RepeatedSequenceLocs", ".", "end", "(", ")", ",", "[", "&", "TRI", "]", "(", "outliner", "::", "Candidate", "&", "C", ")", "{", "C", ".", "initLRU", "(", "TRI", ")", ";", "}", ")", ";", "auto", "CantGuaranteeValueAcrossCall", "=", "[", "]", "(", "outliner", "::", "Candidate", "&", "C", ")", "{", "LiveRegUnits", "LRU", "=", "C", ".", "LRU", ";", "return", "(", "!", "LRU", ".", "available", "(", "AArch64", "::", "W16", ")", "||", "!", "LRU", ".", "available", "(", "AArch64", "::", "W17", ")", "||", "!", "LRU", ".", "available", "(", "AArch64", "::", "NZCV", ")", ")", ";", "}", ";", "RepeatedSequenceLocs", ".", "erase", "(", "std", "::", "remove_if", "(", "RepeatedSequenceLocs", ".", "begin", "(", ")", ",", "RepeatedSequenceLocs", ".", "end", "(", ")", ",", "CantGuaranteeValueAcrossCall", ")", ",", "RepeatedSequenceLocs", ".", "end", "(", ")", ")", ";", "unsigned", "LastInstrOpcode", "=", "RepeatedSequenceLocs", "[", "0", "]", ".", "back", "(", ")", "->", "getOpcode", "(", ")", ";", "if", "(", "RepeatedSequenceLocs", "[", "0", "]", ".", "back", "(", ")", "->", "isTerminator", "(", ")", ")", "{", "CallID", "=", "MachineOutlinerTailCall", ";", "FrameID", "=", "MachineOutlinerTailCall", ";", "NumBytesForCall", "=", "4", ";", "NumBytesToCreateFrame", "=", "0", ";", "}", "else", "if", "(", "LastInstrOpcode", "==", "AArch64", "::", "BL", "||", "LastInstrOpcode", "==", "AArch64", "::", "BLR", ")", "{", "CallID", "=", "MachineOutlinerThunk", ";", "FrameID", "=", "MachineOutlinerThunk", ";", "NumBytesForCall", "=", "4", ";", "NumBytesToCreateFrame", "=", "0", ";", "}", "else", "if", "(", "std", "::", "all_of", "(", "RepeatedSequenceLocs", ".", "begin", "(", ")", ",", "RepeatedSequenceLocs", ".", "end", "(", ")", ",", "[", "]", "(", "outliner", "::", "Candidate", "&", "C", ")", "{", "return", "C", ".", "LRU", ".", "available", "(", "AArch64", "::", "LR", ")", ";", "}", ")", ")", "{", "CallID", "=", "MachineOutlinerNoLRSave", ";", "FrameID", "=", "MachineOutlinerNoLRSave", ";", "NumBytesForCall", "=", "4", ";", "NumBytesToCreateFrame", "=", "4", ";", "}", "if", "(", "std", "::", "any_of", "(", "RepeatedSequenceLocs", "[", "0", "]", ".", "front", "(", ")", ",", "RepeatedSequenceLocs", "[", "0", "]", ".", "back", "(", ")", ",", "[", "]", "(", "const", "MachineInstr", "&", "MI", ")", "{", "return", "MI", ".", "isCall", "(", ")", ";", "}", ")", ")", "NumBytesToCreateFrame", "+=", "8", ";", "else", "if", "(", "FrameID", "!=", "MachineOutlinerThunk", "&&", "FrameID", "!=", "MachineOutlinerTailCall", "&&", "RepeatedSequenceLocs", "[", "0", "]", ".", "back", "(", ")", "->", "isCall", "(", ")", ")", "NumBytesToCreateFrame", "+=", "8", ";", "return", "outliner", "::", "TargetCostInfo", "(", "SequenceSize", ",", "NumBytesForCall", ",", "NumBytesToCreateFrame", ",", "CallID", ",", "FrameID", ")", ";", "}", ""], "natrual_language": ["Returns", "a", "outliner", ":", ":OutlinedFunction", "struct", "containing", "target-specific", "information", "for", "a", "set", "of", "outlining", "candidates", "."], "TS_V_token": ["AArch64", "AArch64", "0", "0", "0", "12", "4", "AArch64::W16", "AArch64::W17", "AArch64::NZCV", "0", "0", "4", "0", "AArch64::BL", "AArch64::BLR", "4", "0", "AArch64::LR", "4", "4", "0", "0", "8", "0", "8"], "File": "AArch64InstrInfo81", "Func": "getOutliningCandidateInfo", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1322, "Length": 464, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "get_element_number", "(", "tree", "vec_type", ",", "tree", "arg", ")", "{", "unsigned", "HOST_WIDE_INT", "elt", ",", "max", "=", "TYPE_VECTOR_SUBPARTS", "(", "vec_type", ")", "-", "1", ";", "if", "(", "!", "host_integerp", "(", "arg", ",", "1", ")", "||", "(", "elt", "=", "tree_low_cst", "(", "arg", ",", "1", ")", ",", "elt", ">", "max", ")", ")", "{", "error", "(", "\"selector must be an integer constant in the range 0..%wi\"", ",", "max", ")", ";", "return", "0", ";", "}", "return", "elt", ";", "}", ""], "natrual_language": ["Return", "the", "integer", "constant", "in", "ARG", ".", "Constrain", "it", "to", "be", "in", "the", "range", "of", "the", "subparts", "of", "VEC_TYPE", ";", "issue", "an", "error", "if", "not", "."], "TS_V_token": ["i386", "1", "1", "1", "\"selector must be an integer constant in the range 0..%wi\"", "0"], "File": "i3863", "Func": "get_element_number", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1323, "Length": 65, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "sh_add_function_attribute", "(", "const", "char", "*", "attr", ")", "{", "tree", "id", "=", "get_identifier", "(", "attr", ")", ";", "if", "(", "current_function_decl", ")", "decl_attributes", "(", "&", "current_function_decl", ",", "tree_cons", "(", "id", ",", "NULL_TREE", ",", "NULL_TREE", ")", ",", "0", ")", ";", "else", "{", "*", "sh_deferred_function_attributes_tail", "=", "tree_cons", "(", "id", ",", "NULL_TREE", ",", "*", "sh_deferred_function_attributes_tail", ")", ";", "sh_deferred_function_attributes_tail", "=", "&", "TREE_CHAIN", "(", "*", "sh_deferred_function_attributes_tail", ")", ";", "}", "}", ""], "natrual_language": ["Add", "ATTR", "to", "the", "attributes", "of", "the", "current", "function", ".", "If", "there", "is", "no", "such", "function", ",", "save", "it", "to", "be", "added", "to", "the", "attributes", "of", "the", "next", "function", "."], "TS_V_token": ["sh", "0"], "File": "sh-c", "Func": "sh_add_function_attribute", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1324, "Length": 65, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ARMConstantPoolMBB", "*", "ARMConstantPoolMBB", "::", "Create", "(", "LLVMContext", "&", "C", ",", "const", "MachineBasicBlock", "*", "mbb", ",", "unsigned", "ID", ",", "unsigned", "char", "PCAdj", ")", "{", "return", "new", "ARMConstantPoolMBB", "(", "C", ",", "mbb", ",", "ID", ",", "PCAdj", ",", "ARMCP", "::", "no_modifier", ",", "false", ")", ";", "}", ""], "natrual_language": ["Construct", "a", "unary", "instruction", ",", "given", "the", "opcode", "and", "an", "operand", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARMCP::no_modifier"], "File": "ARMConstantPoolValue (2)", "Func": "Create", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1325, "Length": 43, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isLegalMaskedLoad", "(", "Type", "*", "DataType", ",", "MaybeAlign", "Alignment", ")", "{", "return", "isVectorLaneType", "(", "*", "getLaneType", "(", "DataType", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "supports", "masked", "load", "."], "TS_V_token": ["VE"], "File": "VETargetTransformInfo", "Func": "isLegalMaskedLoad", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1326, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_set_current_function", "(", "tree", "fndecl", ")", "{", "if", "(", "!", "fndecl", "||", "fndecl", "==", "aarch64_previous_fndecl", ")", "return", ";", "tree", "old_tree", "=", "(", "aarch64_previous_fndecl", "?", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "aarch64_previous_fndecl", ")", ":", "NULL_TREE", ")", ";", "tree", "new_tree", "=", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "fndecl", ")", ";", "if", "(", "!", "new_tree", "&&", "old_tree", ")", "new_tree", "=", "target_option_default_node", ";", "if", "(", "old_tree", "==", "new_tree", ")", "return", ";", "aarch64_previous_fndecl", "=", "fndecl", ";", "cl_target_option_restore", "(", "&", "global_options", ",", "TREE_TARGET_OPTION", "(", "new_tree", ")", ")", ";", "aarch64_save_restore_target_globals", "(", "new_tree", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_SET_CURRENT_FUNCTION", ".", "Unpack", "the", "codegen", "decisions", "like", "tuning", "and", "ISA", "features", "from", "the", "DECL_FUNCTION_SPECIFIC_TARGET", "of", "the", "function", ",", "if", "such", "exists", ".", "This", "function", "may", "be", "called", "multiple", "times", "on", "a", "single", "function", "so", "use", "aarch64_previous_fndecl", "to", "avoid", "setting", "up", "identical", "state", "."], "TS_V_token": ["aarch64"], "File": "aarch64", "Func": "aarch64_set_current_function", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1327, "Length": 81, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "EVT", "X86TargetLowering", "::", "getOptimalMemOpType", "(", "uint64_t", "Size", ",", "unsigned", "DstAlign", ",", "unsigned", "SrcAlign", ",", "bool", "IsZeroVal", ",", "bool", "MemcpyStrSrc", ",", "MachineFunction", "&", "MF", ")", "const", "{", "const", "Function", "*", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "if", "(", "IsZeroVal", "&&", "!", "F", "->", "getFnAttributes", "(", ")", ".", "hasAttribute", "(", "Attributes", "::", "NoImplicitFloat", ")", ")", "{", "if", "(", "Size", ">=", "16", "&&", "(", "Subtarget", "->", "isUnalignedMemAccessFast", "(", ")", "||", "(", "(", "DstAlign", "==", "0", "||", "DstAlign", ">=", "16", ")", "&&", "(", "SrcAlign", "==", "0", "||", "SrcAlign", ">=", "16", ")", ")", ")", "&&", "Subtarget", "->", "getStackAlignment", "(", ")", ">=", "16", ")", "{", "if", "(", "Subtarget", "->", "getStackAlignment", "(", ")", ">=", "32", ")", "{", "if", "(", "Subtarget", "->", "hasAVX2", "(", ")", ")", "return", "MVT", "::", "v8i32", ";", "if", "(", "Subtarget", "->", "hasAVX", "(", ")", ")", "return", "MVT", "::", "v8f32", ";", "}", "if", "(", "Subtarget", "->", "hasSSE2", "(", ")", ")", "return", "MVT", "::", "v4i32", ";", "if", "(", "Subtarget", "->", "hasSSE1", "(", ")", ")", "return", "MVT", "::", "v4f32", ";", "}", "else", "if", "(", "!", "MemcpyStrSrc", "&&", "Size", ">=", "8", "&&", "!", "Subtarget", "->", "is64Bit", "(", ")", "&&", "Subtarget", "->", "getStackAlignment", "(", ")", ">=", "8", "&&", "Subtarget", "->", "hasSSE2", "(", ")", ")", "{", "return", "MVT", "::", "f64", ";", "}", "}", "if", "(", "Subtarget", "->", "is64Bit", "(", ")", "&&", "Size", ">=", "8", ")", "return", "MVT", "::", "i64", ";", "return", "MVT", "::", "i32", ";", "}", ""], "natrual_language": ["It", "returns", "EVT", ":", ":Other", "if", "the", "type", "should", "be", "determined", "using", "generic", "target-independent", "logic", "."], "TS_V_token": ["X86", "X86", "16", "0", "16", "0", "16", "16", "32", "MVT::v8i32", "MVT::v8f32", "MVT::v4i32", "MVT::v4f32", "8", "8", "MVT::f64", "8", "MVT::i64", "MVT::i32"], "File": "X86ISelLowering142", "Func": "getOptimalMemOpType", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1328, "Length": 228, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "MINA32RegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "markSuperRegs", "(", "Reserved", ",", "MINA32", "::", "SP", ")", ";", "markSuperRegs", "(", "Reserved", ",", "MINA32", "::", "PC", ")", ";", "markSuperRegs", "(", "Reserved", ",", "MINA32", "::", "R8_USER", ")", ";", "markSuperRegs", "(", "Reserved", ",", "MINA32", "::", "R9_USER", ")", ";", "markSuperRegs", "(", "Reserved", ",", "MINA32", "::", "R10_USER", ")", ";", "markSuperRegs", "(", "Reserved", ",", "MINA32", "::", "R11_USER", ")", ";", "markSuperRegs", "(", "Reserved", ",", "MINA32", "::", "R12_USER", ")", ";", "markSuperRegs", "(", "Reserved", ",", "MINA32", "::", "SP_USER", ")", ";", "markSuperRegs", "(", "Reserved", ",", "MINA32", "::", "LR_USER", ")", ";", "markSuperRegs", "(", "Reserved", ",", "MINA32", "::", "PC_USER", ")", ";", "markSuperRegs", "(", "Reserved", ",", "MINA32", "::", "MCR", ")", ";", "markSuperRegs", "(", "Reserved", ",", "MINA32", "::", "FRET", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "markSuperRegs", "(", "Reserved", ",", "MINA32", "::", "R11", ")", ";", "if", "(", "hasBasePointer", "(", "MF", ")", ")", "markSuperRegs", "(", "Reserved", ",", "BasePtr", ")", ";", "assert", "(", "checkAllSuperRegsMarked", "(", "Reserved", ")", ")", ";", "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": ["MINA32", "MINA32", "MINA32::SP", "MINA32::PC", "MINA32::R8_USER", "MINA32::R9_USER", "MINA32::R10_USER", "MINA32::R11_USER", "MINA32::R12_USER", "MINA32::SP_USER", "MINA32::LR_USER", "MINA32::PC_USER", "MINA32::MCR", "MINA32::FRET", "MINA32::R11"], "File": "MINA32RegisterInfo", "Func": "getReservedRegs", "Target": "MINA32", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1329, "Length": 187, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_validate_mtune", "(", "const", "char", "*", "str", ",", "const", "struct", "processor", "*", "*", "res", ")", "{", "enum", "aarch64_parse_opt_result", "parse_res", "=", "aarch64_parse_tune", "(", "str", ",", "res", ")", ";", "if", "(", "parse_res", "==", "AARCH64_PARSE_OK", ")", "return", "true", ";", "switch", "(", "parse_res", ")", "{", "case", "AARCH64_PARSE_MISSING_ARG", ":", "error", "(", "\"missing cpu name in %<-mtune=%s%>\"", ",", "str", ")", ";", "break", ";", "case", "AARCH64_PARSE_INVALID_ARG", ":", "error", "(", "\"unknown value %qs for -mtune\"", ",", "str", ")", ";", "aarch64_print_hint_for_core", "(", "str", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Validate", "a", "command-line", "-mtune", "option", ".", "Parse", "the", "cpu", "specified", "in", "STR", "and", "throw", "errors", "if", "appropriate", ".", "Put", "the", "result", ",", "if", "it", "is", "valid", ",", "in", "RES", ".", "Return", "whether", "the", "option", "is", "valid", "."], "TS_V_token": ["aarch64", "\"missing cpu name in %<-mtune=%s%>\"", "\"unknown value %qs for -mtune\""], "File": "aarch644", "Func": "aarch64_validate_mtune", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1330, "Length": 82, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "thumb_far_jump_used_p", "(", "int", "in_prologue", ")", "{", "rtx", "insn", ";", "if", "(", "cfun", "->", "machine", "->", "far_jump_used", ")", "return", "1", ";", "if", "(", "!", "in_prologue", ")", "{", "if", "(", "regs_ever_live", "[", "ARG_POINTER_REGNUM", "]", ")", "cfun", "->", "machine", "->", "arg_pointer_live", "=", "1", ";", "else", "if", "(", "!", "cfun", "->", "machine", "->", "arg_pointer_live", ")", "return", "0", ";", "}", "for", "(", "insn", "=", "get_insns", "(", ")", ";", "insn", ";", "insn", "=", "NEXT_INSN", "(", "insn", ")", ")", "{", "if", "(", "GET_CODE", "(", "insn", ")", "==", "JUMP_INSN", "&&", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "!=", "ADDR_VEC", "&&", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "!=", "ADDR_DIFF_VEC", "&&", "get_attr_far_jump", "(", "insn", ")", "==", "FAR_JUMP_YES", ")", "{", "cfun", "->", "machine", "->", "far_jump_used", "=", "1", ";", "return", "1", ";", "}", "}", "return", "0", ";", "}", ""], "natrual_language": ["Returns", "non-zero", "if", "the", "current", "function", "contains", ",", "or", "might", "contain", "a", "far", "jump", "."], "TS_V_token": ["arm", "1", "1", "0", "1", "1", "0"], "File": "arm2", "Func": "thumb_far_jump_used_p", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1331, "Length": 128, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "X86FrameLowering", "::", "mergeSPUpdates", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "MBBI", ",", "bool", "doMergeWithPrevious", ")", "const", "{", "if", "(", "(", "doMergeWithPrevious", "&&", "MBBI", "==", "MBB", ".", "begin", "(", ")", ")", "||", "(", "!", "doMergeWithPrevious", "&&", "MBBI", "==", "MBB", ".", "end", "(", ")", ")", ")", "return", "0", ";", "MachineBasicBlock", "::", "iterator", "PI", "=", "doMergeWithPrevious", "?", "std", "::", "prev", "(", "MBBI", ")", ":", "MBBI", ";", "MachineBasicBlock", "::", "iterator", "NI", "=", "doMergeWithPrevious", "?", "nullptr", ":", "std", "::", "next", "(", "MBBI", ")", ";", "unsigned", "Opc", "=", "PI", "->", "getOpcode", "(", ")", ";", "int", "Offset", "=", "0", ";", "if", "(", "!", "doMergeWithPrevious", "&&", "NI", "!=", "MBB", ".", "end", "(", ")", "&&", "NI", "->", "getOpcode", "(", ")", "==", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", "{", "return", "Offset", ";", "}", "if", "(", "(", "Opc", "==", "X86", "::", "ADD64ri32", "||", "Opc", "==", "X86", "::", "ADD64ri8", "||", "Opc", "==", "X86", "::", "ADD32ri", "||", "Opc", "==", "X86", "::", "ADD32ri8", ")", "&&", "PI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", "==", "StackPtr", ")", "{", "assert", "(", "PI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", "==", "StackPtr", ")", ";", "Offset", "+=", "PI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "MBB", ".", "erase", "(", "PI", ")", ";", "if", "(", "!", "doMergeWithPrevious", ")", "MBBI", "=", "NI", ";", "}", "else", "if", "(", "(", "Opc", "==", "X86", "::", "LEA32r", "||", "Opc", "==", "X86", "::", "LEA64_32r", ")", "&&", "PI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", "==", "StackPtr", "&&", "PI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", "==", "StackPtr", "&&", "PI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", "==", "1", "&&", "PI", "->", "getOperand", "(", "3", ")", ".", "getReg", "(", ")", "==", "X86", "::", "NoRegister", "&&", "PI", "->", "getOperand", "(", "5", ")", ".", "getReg", "(", ")", "==", "X86", "::", "NoRegister", ")", "{", "Offset", "+=", "PI", "->", "getOperand", "(", "4", ")", ".", "getImm", "(", ")", ";", "MBB", ".", "erase", "(", "PI", ")", ";", "if", "(", "!", "doMergeWithPrevious", ")", "MBBI", "=", "NI", ";", "}", "else", "if", "(", "(", "Opc", "==", "X86", "::", "SUB64ri32", "||", "Opc", "==", "X86", "::", "SUB64ri8", "||", "Opc", "==", "X86", "::", "SUB32ri", "||", "Opc", "==", "X86", "::", "SUB32ri8", ")", "&&", "PI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", "==", "StackPtr", ")", "{", "assert", "(", "PI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", "==", "StackPtr", ")", ";", "Offset", "-=", "PI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "MBB", ".", "erase", "(", "PI", ")", ";", "if", "(", "!", "doMergeWithPrevious", ")", "MBBI", "=", "NI", ";", "}", "return", "Offset", ";", "}", ""], "natrual_language": ["Check", "the", "instruction", "before/after", "the", "passed", "instruction", "."], "TS_V_token": ["X86", "X86", "0", "0", "X86::ADD64ri32", "X86::ADD64ri8", "X86::ADD32ri", "X86::ADD32ri8", "0", "1", "2", "X86::LEA32r", "X86::LEA64_32r", "0", "1", "2", "1", "3", "X86::NoRegister", "5", "X86::NoRegister", "4", "X86::SUB64ri32", "X86::SUB64ri8", "X86::SUB32ri", "X86::SUB32ri8", "0", "1", "2"], "File": "X86FrameLowering102", "Func": "mergeSPUpdates", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1332, "Length": 422, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "rs6000_cost_data", "::", "update_target_cost_per_stmt", "(", "vect_cost_for_stmt", "kind", ",", "stmt_vec_info", "stmt_info", ",", "vect_cost_model_location", "where", ",", "unsigned", "int", "orig_count", ")", "{", "if", "(", "kind", "==", "vec_to_scalar", "||", "kind", "==", "vec_perm", "||", "kind", "==", "vec_promote_demote", "||", "kind", "==", "vec_construct", "||", "kind", "==", "scalar_to_vec", "||", "(", "where", "==", "vect_body", "&&", "kind", "==", "vector_stmt", ")", ")", "m_vect_nonmem", "=", "true", ";", "if", "(", "!", "m_costing_for_scalar", "&&", "is_a", "<", "loop_vec_info", ">", "(", "m_vinfo", ")", "&&", "where", "==", "vect_body", ")", "{", "m_nstmts", "+=", "orig_count", ";", "if", "(", "kind", "==", "scalar_load", "||", "kind", "==", "vector_load", "||", "kind", "==", "unaligned_load", "||", "kind", "==", "vector_gather_load", ")", "m_nloads", "+=", "orig_count", ";", "if", "(", "kind", "==", "vec_construct", "&&", "stmt_info", "&&", "STMT_VINFO_TYPE", "(", "stmt_info", ")", "==", "load_vec_info_type", "&&", "(", "STMT_VINFO_MEMORY_ACCESS_TYPE", "(", "stmt_info", ")", "==", "VMAT_ELEMENTWISE", "||", "STMT_VINFO_MEMORY_ACCESS_TYPE", "(", "stmt_info", ")", "==", "VMAT_STRIDED_SLP", ")", ")", "{", "tree", "vectype", "=", "STMT_VINFO_VECTYPE", "(", "stmt_info", ")", ";", "unsigned", "int", "nunits", "=", "vect_nunits_for_cost", "(", "vectype", ")", ";", "if", "(", "nunits", "==", "1", ")", "return", ";", "unsigned", "int", "adjusted_cost", "=", "(", "nunits", "==", "2", ")", "?", "2", ":", "1", ";", "unsigned", "int", "extra_cost", "=", "nunits", "*", "adjusted_cost", ";", "m_extra_ctor_cost", "+=", "extra_cost", ";", "}", "}", "}", ""], "natrual_language": ["Helper", "function", "for", "add_stmt_cost", ".", "Check", "each", "statement", "cost", "entry", ",", "gather", "information", "and", "update", "the", "target_cost", "fields", "accordingly", "."], "TS_V_token": ["rs6000", "1", "2", "2", "1"], "File": "rs6000", "Func": "update_target_cost_per_stmt", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1333, "Length": 185, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "sparc_function_arg_advance", "(", "cumulative_args_t", "cum_v", ",", "machine_mode", "mode", ",", "const_tree", "type", ",", "bool", "named", ")", "{", "CUMULATIVE_ARGS", "*", "cum", "=", "get_cumulative_args", "(", "cum_v", ")", ";", "int", "regno", ",", "padding", ";", "function_arg_slotno", "(", "cum", ",", "mode", ",", "type", ",", "named", ",", "false", ",", "&", "regno", ",", "&", "padding", ")", ";", "cum", "->", "words", "+=", "padding", ";", "if", "(", "TARGET_ARCH32", ")", "{", "cum", "->", "words", "+=", "(", "mode", "!=", "BLKmode", "?", "ROUND_ADVANCE", "(", "GET_MODE_SIZE", "(", "mode", ")", ")", ":", "ROUND_ADVANCE", "(", "int_size_in_bytes", "(", "type", ")", ")", ")", ";", "}", "else", "{", "if", "(", "type", "&&", "AGGREGATE_TYPE_P", "(", "type", ")", ")", "{", "int", "size", "=", "int_size_in_bytes", "(", "type", ")", ";", "if", "(", "size", "<=", "8", ")", "++", "cum", "->", "words", ";", "else", "if", "(", "size", "<=", "16", ")", "cum", "->", "words", "+=", "2", ";", "else", "++", "cum", "->", "words", ";", "}", "else", "{", "cum", "->", "words", "+=", "(", "mode", "!=", "BLKmode", "?", "ROUND_ADVANCE", "(", "GET_MODE_SIZE", "(", "mode", ")", ")", ":", "ROUND_ADVANCE", "(", "int_size_in_bytes", "(", "type", ")", ")", ")", ";", "}", "}", "}", ""], "natrual_language": ["Handle", "the", "TARGET_FUNCTION_ARG_ADVANCE", "hook", ".", "Update", "the", "data", "in", "CUM", "to", "advance", "over", "an", "argument", "of", "mode", "MODE", "and", "data", "type", "TYPE", ".", "TYPE", "is", "null", "for", "libcalls", "where", "that", "information", "may", "not", "be", "available", "."], "TS_V_token": ["sparc", "8", "16", "2"], "File": "sparc4", "Func": "sparc_function_arg_advance", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1334, "Length": 170, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_cannot_force_const_mem", "(", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "rtx", "x", ")", "{", "if", "(", "GET_CODE", "(", "x", ")", "==", "HIGH", "&&", "GET_CODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", "==", "UNSPEC", ")", "return", "true", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "CONST", "&&", "GET_CODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", "==", "PLUS", "&&", "GET_CODE", "(", "XEXP", "(", "XEXP", "(", "x", ",", "0", ")", ",", "0", ")", ")", "==", "SYMBOL_REF", "&&", "SYMBOL_REF_TLS_MODEL", "(", "XEXP", "(", "XEXP", "(", "x", ",", "0", ")", ",", "0", ")", ")", "!=", "0", ")", "return", "true", ";", "return", "TARGET_ELF", "&&", "tls_referenced_p", "(", "x", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_CANNOT_FORCE_CONST_MEM", "."], "TS_V_token": ["rs6000", "0", "0", "0", "0", "0", "0", "0"], "File": "rs60004", "Func": "rs6000_cannot_force_const_mem", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1335, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Align", "ARMTargetLowering", "::", "getABIAlignmentForCallingConv", "(", "Type", "*", "ArgTy", ",", "const", "DataLayout", "&", "DL", ")", "const", "{", "const", "Align", "ABITypeAlign", "=", "DL", ".", "getABITypeAlign", "(", "ArgTy", ")", ";", "if", "(", "!", "ArgTy", "->", "isVectorTy", "(", ")", ")", "return", "ABITypeAlign", ";", "return", "std", "::", "min", "(", "ABITypeAlign", ",", "DL", ".", "getStackAlignment", "(", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "correct", "alignment", "for", "the", "current", "calling", "convention", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMISelLowering (2)5", "Func": "getABIAlignmentForCallingConv", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1336, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "hasAndNotCompare", "(", "SDValue", "Y", ")", "const", "{", "EVT", "VT", "=", "Y", ".", "getValueType", "(", ")", ";", "if", "(", "VT", ".", "isVector", "(", ")", ")", "return", "false", ";", "if", "(", "!", "Subtarget", ".", "hasBMI", "(", ")", ")", "return", "false", ";", "if", "(", "VT", "!=", "MVT", "::", "i32", "&&", "VT", "!=", "MVT", "::", "i64", ")", "return", "false", ";", "return", "!", "isa", "<", "ConstantSDNode", ">", "(", "Y", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "should", "transform", ":", "(", "X", "&", "Y", ")", "==", "Y", "\ufffd", "?", "(", "~X", "&", "Y", ")", "==", "0", "(", "X", "&", "Y", ")", "!", "=", "Y", "\ufffd", "?", "(", "~X", "&", "Y", ")", "!", "=", "0", "."], "TS_V_token": ["X86", "X86", "MVT::i32", "MVT::i64"], "File": "X86ISelLowering (2)5", "Func": "hasAndNotCompare", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1337, "Length": 70, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCFrameLowering", "::", "spillCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "!", "Subtarget", ".", "isSVR4ABI", "(", ")", ")", "return", "false", ";", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "PPCInstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "PPCInstrInfo", "*", ">", "(", "MF", "->", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "DebugLoc", "DL", ";", "bool", "CRSpilled", "=", "false", ";", "MachineInstrBuilder", "CRMIB", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "]", ".", "getReg", "(", ")", ";", "if", "(", "Reg", "==", "PPC", "::", "VRSAVE", "&&", "!", "Subtarget", ".", "isDarwinABI", "(", ")", ")", "continue", ";", "bool", "IsCRField", "=", "PPC", "::", "CR2", "<=", "Reg", "&&", "Reg", "<=", "PPC", "::", "CR4", ";", "MBB", ".", "addLiveIn", "(", "Reg", ")", ";", "if", "(", "CRSpilled", "&&", "IsCRField", ")", "{", "CRMIB", ".", "addReg", "(", "Reg", ",", "RegState", "::", "ImplicitKill", ")", ";", "continue", ";", "}", "if", "(", "IsCRField", ")", "{", "PPCFunctionInfo", "*", "FuncInfo", "=", "MF", "->", "getInfo", "<", "PPCFunctionInfo", ">", "(", ")", ";", "if", "(", "Subtarget", ".", "isPPC64", "(", ")", ")", "{", "FuncInfo", "->", "addMustSaveCR", "(", "Reg", ")", ";", "}", "else", "{", "CRSpilled", "=", "true", ";", "FuncInfo", "->", "setSpillsCR", "(", ")", ";", "CRMIB", "=", "BuildMI", "(", "*", "MF", ",", "DL", ",", "TII", ".", "get", "(", "PPC", "::", "MFCR", ")", ",", "PPC", "::", "R12", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "ImplicitKill", ")", ";", "MBB", ".", "insert", "(", "MI", ",", "CRMIB", ")", ";", "MBB", ".", "insert", "(", "MI", ",", "addFrameReference", "(", "BuildMI", "(", "*", "MF", ",", "DL", ",", "TII", ".", "get", "(", "PPC", "::", "STW", ")", ")", ".", "addReg", "(", "PPC", "::", "R12", ",", "getKillRegState", "(", "true", ")", ")", ",", "CSI", "[", "i", "]", ".", "getFrameIdx", "(", ")", ")", ")", ";", "}", "}", "else", "{", "const", "TargetRegisterClass", "*", "RC", "=", "TRI", "->", "getMinimalPhysRegClass", "(", "Reg", ")", ";", "TII", ".", "storeRegToStackSlot", "(", "MBB", ",", "MI", ",", "Reg", ",", "true", ",", "CSI", "[", "i", "]", ".", "getFrameIdx", "(", ")", ",", "RC", ",", "TRI", ")", ";", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["spillCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "spill", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "store", "instructions", "via", "storeRegToStackSlot", "(", ")", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "0", "PPC::VRSAVE", "PPC::CR2", "PPC::CR4", "PPC", "PPC", "PPC", "PPC::MFCR", "PPC::R12", "PPC::STW", "PPC::R12"], "File": "PPCFrameLowering79", "Func": "spillCalleeSavedRegisters", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1338, "Length": 367, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "AArch64MCExpr", "::", "getVariantKindName", "(", ")", "const", "{", "switch", "(", "static_cast", "<", "uint32_t", ">", "(", "getKind", "(", ")", ")", ")", "{", "case", "VK_CALL", ":", "return", "\"\"", ";", "case", "VK_LO12", ":", "return", "\":lo12:\"", ";", "case", "VK_ABS_G3", ":", "return", "\":abs_g3:\"", ";", "case", "VK_ABS_G2", ":", "return", "\":abs_g2:\"", ";", "case", "VK_ABS_G2_S", ":", "return", "\":abs_g2_s:\"", ";", "case", "VK_ABS_G2_NC", ":", "return", "\":abs_g2_nc:\"", ";", "case", "VK_ABS_G1", ":", "return", "\":abs_g1:\"", ";", "case", "VK_ABS_G1_S", ":", "return", "\":abs_g1_s:\"", ";", "case", "VK_ABS_G1_NC", ":", "return", "\":abs_g1_nc:\"", ";", "case", "VK_ABS_G0", ":", "return", "\":abs_g0:\"", ";", "case", "VK_ABS_G0_S", ":", "return", "\":abs_g0_s:\"", ";", "case", "VK_ABS_G0_NC", ":", "return", "\":abs_g0_nc:\"", ";", "case", "VK_DTPREL_G2", ":", "return", "\":dtprel_g2:\"", ";", "case", "VK_DTPREL_G1", ":", "return", "\":dtprel_g1:\"", ";", "case", "VK_DTPREL_G1_NC", ":", "return", "\":dtprel_g1_nc:\"", ";", "case", "VK_DTPREL_G0", ":", "return", "\":dtprel_g0:\"", ";", "case", "VK_DTPREL_G0_NC", ":", "return", "\":dtprel_g0_nc:\"", ";", "case", "VK_DTPREL_HI12", ":", "return", "\":dtprel_hi12:\"", ";", "case", "VK_DTPREL_LO12", ":", "return", "\":dtprel_lo12:\"", ";", "case", "VK_DTPREL_LO12_NC", ":", "return", "\":dtprel_lo12_nc:\"", ";", "case", "VK_TPREL_G2", ":", "return", "\":tprel_g2:\"", ";", "case", "VK_TPREL_G1", ":", "return", "\":tprel_g1:\"", ";", "case", "VK_TPREL_G1_NC", ":", "return", "\":tprel_g1_nc:\"", ";", "case", "VK_TPREL_G0", ":", "return", "\":tprel_g0:\"", ";", "case", "VK_TPREL_G0_NC", ":", "return", "\":tprel_g0_nc:\"", ";", "case", "VK_TPREL_HI12", ":", "return", "\":tprel_hi12:\"", ";", "case", "VK_TPREL_LO12", ":", "return", "\":tprel_lo12:\"", ";", "case", "VK_TPREL_LO12_NC", ":", "return", "\":tprel_lo12_nc:\"", ";", "case", "VK_TLSDESC_LO12", ":", "return", "\":tlsdesc_lo12:\"", ";", "case", "VK_ABS_PAGE", ":", "return", "\"\"", ";", "case", "VK_ABS_PAGE_NC", ":", "return", "\":pg_hi21_nc:\"", ";", "case", "VK_GOT_PAGE", ":", "return", "\":got:\"", ";", "case", "VK_GOT_LO12", ":", "return", "\":got_lo12:\"", ";", "case", "VK_GOTTPREL_PAGE", ":", "return", "\":gottprel:\"", ";", "case", "VK_GOTTPREL_LO12_NC", ":", "return", "\":gottprel_lo12:\"", ";", "case", "VK_GOTTPREL_G1", ":", "return", "\":gottprel_g1:\"", ";", "case", "VK_GOTTPREL_G0_NC", ":", "return", "\":gottprel_g0_nc:\"", ";", "case", "VK_TLSDESC", ":", "return", "\"\"", ";", "case", "VK_TLSDESC_PAGE", ":", "return", "\":tlsdesc:\"", ";", "default", ":", "llvm_unreachable", "(", "\"Invalid ELF symbol kind\"", ")", ";", "}", "}", ""], "natrual_language": ["Convert", "the", "variant", "kind", "into", "an", "ELF-appropriate", "modifier", "(", "e.g", "."], "TS_V_token": ["AArch64", "AArch64", "\"\"", "\":lo12:\"", "\":abs_g3:\"", "\":abs_g2:\"", "\":abs_g2_s:\"", "\":abs_g2_nc:\"", "\":abs_g1:\"", "\":abs_g1_s:\"", "\":abs_g1_nc:\"", "\":abs_g0:\"", "\":abs_g0_s:\"", "\":abs_g0_nc:\"", "\":dtprel_g2:\"", "\":dtprel_g1:\"", "\":dtprel_g1_nc:\"", "\":dtprel_g0:\"", "\":dtprel_g0_nc:\"", "\":dtprel_hi12:\"", "\":dtprel_lo12:\"", "\":dtprel_lo12_nc:\"", "\":tprel_g2:\"", "\":tprel_g1:\"", "\":tprel_g1_nc:\"", "\":tprel_g0:\"", "\":tprel_g0_nc:\"", "\":tprel_hi12:\"", "\":tprel_lo12:\"", "\":tprel_lo12_nc:\"", "\":tlsdesc_lo12:\"", "\"\"", "\":pg_hi21_nc:\"", "\":got:\"", "\":got_lo12:\"", "\":gottprel:\"", "\":gottprel_lo12:\"", "\":gottprel_g1:\"", "\":gottprel_g0_nc:\"", "\"\"", "\":tlsdesc:\"", "\"Invalid ELF symbol kind\""], "File": "AArch64MCExpr18", "Func": "getVariantKindName", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1339, "Length": 264, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMBaseInstrInfo", "::", "isLoadFromStackSlotPostFE", "(", "const", "MachineInstr", "&", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "SmallVector", "<", "const", "MachineMemOperand", "*", ",", "1", ">", "Accesses", ";", "if", "(", "MI", ".", "mayLoad", "(", ")", "&&", "hasLoadFromStackSlot", "(", "MI", ",", "Accesses", ")", ")", "{", "FrameIndex", "=", "cast", "<", "FixedStackPseudoSourceValue", ">", "(", "Accesses", ".", "front", "(", ")", "->", "getPseudoValue", "(", ")", ")", "->", "getFrameIndex", "(", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["isLoadFromStackSlotPostFE", "-", "Check", "for", "post-frame", "ptr", "elimination", "stack", "locations", "as", "well", "."], "TS_V_token": ["ARM", "ARM", "1"], "File": "ARMBaseInstrInfo1", "Func": "isLoadFromStackSlotPostFE", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1340, "Length": 72, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isImm", "(", ")", "const", "override", "{", "return", "Kind", "==", "Immediate", ";", "}", ""], "natrual_language": ["isImm", "-", "Is", "this", "an", "immediate", "operand", "?"], "TS_V_token": ["CSKY"], "File": "CSKYAsmParser", "Func": "isImm", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1341, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64PassConfig", "::", "addPreEmitPass", "(", ")", "{", "if", "(", "PACStack", "::", "doDummyPA", "(", ")", ")", "addPass", "(", "createAArch64DummyPA", "(", ")", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", ">=", "CodeGenOpt", "::", "Aggressive", "&&", "EnableLoadStoreOpt", ")", "addPass", "(", "createAArch64LoadStoreOptimizationPass", "(", ")", ")", ";", "if", "(", "EnableA53Fix835769", ")", "addPass", "(", "createAArch64A53Fix835769", "(", ")", ")", ";", "if", "(", "BranchRelaxation", ")", "addPass", "(", "&", "BranchRelaxationPassID", ")", ";", "if", "(", "EnableBranchTargets", ")", "addPass", "(", "createAArch64BranchTargetsPass", "(", ")", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "EnableCompressJumpTables", ")", "addPass", "(", "createAArch64CompressJumpTablesPass", "(", ")", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "EnableCollectLOH", "&&", "TM", "->", "getTargetTriple", "(", ")", ".", "isOSBinFormatMachO", "(", ")", ")", "addPass", "(", "createAArch64CollectLOHPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64TargetMachine81", "Func": "addPreEmitPass", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1342, "Length": 128, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SparcInstrInfo", "::", "expandPostRAPseudo", "(", "MachineBasicBlock", "::", "iterator", "MI", ")", "const", "{", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "case", "TargetOpcode", "::", "LOAD_STACK_GUARD", ":", "{", "assert", "(", "Subtarget", ".", "isTargetLinux", "(", ")", "&&", "\"Only Linux target is expected to contain LOAD_STACK_GUARD\"", ")", ";", "const", "int64_t", "Offset", "=", "Subtarget", ".", "is64Bit", "(", ")", "?", "0x28", ":", "0x14", ";", "MI", "->", "setDesc", "(", "get", "(", "Subtarget", ".", "is64Bit", "(", ")", "?", "SP", "::", "LDXri", ":", "SP", "::", "LDri", ")", ")", ";", "MachineInstrBuilder", "(", "*", "MI", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ",", "MI", ")", ".", "addReg", "(", "SP", "::", "G7", ")", ".", "addImm", "(", "Offset", ")", ";", "return", "true", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["This", "function", "is", "called", "for", "all", "pseudo", "instructions", "that", "remain", "after", "register", "allocation", "."], "TS_V_token": ["Sparc", "Sparc", "\"Only Linux target is expected to contain LOAD_STACK_GUARD\"", "0x28", "0x14", "SP::LDXri", "SP::LDri", "SP::G7"], "File": "SparcInstrInfo31", "Func": "expandPostRAPseudo", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1343, "Length": 111, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "nds32_asm_function_epilogue", "(", "FILE", "*", "file", ",", "HOST_WIDE_INT", "size", "ATTRIBUTE_UNUSED", ")", "{", "fprintf", "(", "file", ",", "\"\\t! END EPILOGUE\\n\"", ")", ";", "}", ""], "natrual_language": ["The", "content", "produced", "from", "this", "function", "will", "be", "placed", "after", "epilogue", "body", "."], "TS_V_token": ["nds32", "\"\\t! END EPILOGUE\\n\""], "File": "nds322", "Func": "nds32_asm_function_epilogue", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1344, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "int", "ix86_local_alignment", "(", "tree", "exp", ",", "machine_mode", "mode", ",", "unsigned", "int", "align", ")", "{", "tree", "type", ",", "decl", ";", "if", "(", "exp", "&&", "DECL_P", "(", "exp", ")", ")", "{", "type", "=", "TREE_TYPE", "(", "exp", ")", ";", "decl", "=", "exp", ";", "}", "else", "{", "type", "=", "exp", ";", "decl", "=", "NULL", ";", "}", "if", "(", "!", "TARGET_64BIT", "&&", "align", "==", "64", "&&", "ix86_preferred_stack_boundary", "<", "64", "&&", "(", "mode", "==", "DImode", "||", "(", "type", "&&", "TYPE_MODE", "(", "type", ")", "==", "DImode", ")", ")", "&&", "(", "!", "type", "||", "!", "TYPE_USER_ALIGN", "(", "type", ")", ")", "&&", "(", "!", "decl", "||", "!", "DECL_USER_ALIGN", "(", "decl", ")", ")", ")", "align", "=", "32", ";", "if", "(", "!", "type", ")", "{", "if", "(", "mode", "==", "XFmode", "&&", "align", "<", "GET_MODE_ALIGNMENT", "(", "DFmode", ")", ")", "align", "=", "GET_MODE_ALIGNMENT", "(", "DFmode", ")", ";", "return", "align", ";", "}", "if", "(", "TARGET_64BIT", "&&", "optimize_function_for_speed_p", "(", "cfun", ")", "&&", "TARGET_SSE", ")", "{", "if", "(", "AGGREGATE_TYPE_P", "(", "type", ")", "&&", "(", "va_list_type_node", "==", "NULL_TREE", "||", "(", "TYPE_MAIN_VARIANT", "(", "type", ")", "!=", "TYPE_MAIN_VARIANT", "(", "va_list_type_node", ")", ")", ")", "&&", "TYPE_SIZE", "(", "type", ")", "&&", "TREE_CODE", "(", "TYPE_SIZE", "(", "type", ")", ")", "==", "INTEGER_CST", "&&", "wi", "::", "geu_p", "(", "TYPE_SIZE", "(", "type", ")", ",", "16", ")", "&&", "align", "<", "128", ")", "return", "128", ";", "}", "if", "(", "TREE_CODE", "(", "type", ")", "==", "ARRAY_TYPE", ")", "{", "if", "(", "TYPE_MODE", "(", "TREE_TYPE", "(", "type", ")", ")", "==", "DFmode", "&&", "align", "<", "64", ")", "return", "64", ";", "if", "(", "ALIGN_MODE_128", "(", "TYPE_MODE", "(", "TREE_TYPE", "(", "type", ")", ")", ")", "&&", "align", "<", "128", ")", "return", "128", ";", "}", "else", "if", "(", "TREE_CODE", "(", "type", ")", "==", "COMPLEX_TYPE", ")", "{", "if", "(", "TYPE_MODE", "(", "type", ")", "==", "DCmode", "&&", "align", "<", "64", ")", "return", "64", ";", "if", "(", "(", "TYPE_MODE", "(", "type", ")", "==", "XCmode", "||", "TYPE_MODE", "(", "type", ")", "==", "TCmode", ")", "&&", "align", "<", "128", ")", "return", "128", ";", "}", "else", "if", "(", "(", "TREE_CODE", "(", "type", ")", "==", "RECORD_TYPE", "||", "TREE_CODE", "(", "type", ")", "==", "UNION_TYPE", "||", "TREE_CODE", "(", "type", ")", "==", "QUAL_UNION_TYPE", ")", "&&", "TYPE_FIELDS", "(", "type", ")", ")", "{", "if", "(", "DECL_MODE", "(", "TYPE_FIELDS", "(", "type", ")", ")", "==", "DFmode", "&&", "align", "<", "64", ")", "return", "64", ";", "if", "(", "ALIGN_MODE_128", "(", "DECL_MODE", "(", "TYPE_FIELDS", "(", "type", ")", ")", ")", "&&", "align", "<", "128", ")", "return", "128", ";", "}", "else", "if", "(", "TREE_CODE", "(", "type", ")", "==", "REAL_TYPE", "||", "TREE_CODE", "(", "type", ")", "==", "VECTOR_TYPE", "||", "TREE_CODE", "(", "type", ")", "==", "INTEGER_TYPE", ")", "{", "if", "(", "TYPE_MODE", "(", "type", ")", "==", "DFmode", "&&", "align", "<", "64", ")", "return", "64", ";", "if", "(", "ALIGN_MODE_128", "(", "TYPE_MODE", "(", "type", ")", ")", "&&", "align", "<", "128", ")", "return", "128", ";", "}", "return", "align", ";", "}", ""], "natrual_language": ["Compute", "the", "alignment", "for", "a", "local", "variable", ".", "TYPE", "is", "the", "data", "type", ",", "and", "ALIGN", "is", "the", "alignment", "that", "the", "object", "would", "ordinarily", "have", ".", "The", "value", "of", "this", "macro", "is", "used", "instead", "of", "that", "alignment", "to", "align", "the", "object", "."], "TS_V_token": ["i386", "64", "64", "32", "16", "128", "128", "64", "64", "128", "128", "64", "64", "128", "128", "64", "64", "128", "128", "64", "64", "128", "128"], "File": "i3864", "Func": "ix86_local_alignment", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1345, "Length": 449, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "use_return_insn", "(", "int", "iscond", ",", "rtx", "sibling", ")", "{", "int", "regno", ";", "unsigned", "int", "func_type", ";", "unsigned", "long", "saved_int_regs", ";", "unsigned", "HOST_WIDE_INT", "stack_adjust", ";", "arm_stack_offsets", "*", "offsets", ";", "if", "(", "!", "reload_completed", ")", "return", "0", ";", "func_type", "=", "arm_current_func_type", "(", ")", ";", "if", "(", "func_type", "&", "(", "ARM_FT_VOLATILE", "|", "ARM_FT_NAKED", "|", "ARM_FT_STACKALIGN", ")", ")", "return", "0", ";", "if", "(", "IS_INTERRUPT", "(", "func_type", ")", "&&", "(", "frame_pointer_needed", "||", "TARGET_THUMB", ")", ")", "return", "0", ";", "if", "(", "TARGET_LDRD", "&&", "current_tune", "->", "prefer_ldrd_strd", "&&", "!", "optimize_function_for_size_p", "(", "cfun", ")", ")", "return", "0", ";", "offsets", "=", "arm_get_frame_offsets", "(", ")", ";", "stack_adjust", "=", "offsets", "->", "outgoing_args", "-", "offsets", "->", "saved_regs", ";", "if", "(", "crtl", "->", "args", ".", "pretend_args_size", "||", "cfun", "->", "machine", "->", "uses_anonymous_args", "||", "crtl", "->", "calls_eh_return", "||", "cfun", "->", "calls_alloca", "||", "!", "(", "stack_adjust", "==", "0", "||", "(", "TARGET_APCS_FRAME", "&&", "frame_pointer_needed", "&&", "stack_adjust", "==", "4", ")", ")", ")", "return", "0", ";", "saved_int_regs", "=", "offsets", "->", "saved_regs_mask", ";", "if", "(", "stack_adjust", "==", "4", "&&", "!", "arm_arch5", "&&", "TARGET_ARM", ")", "{", "if", "(", "!", "call_used_regs", "[", "3", "]", ")", "return", "0", ";", "if", "(", "arm_size_return_regs", "(", ")", ">=", "(", "4", "*", "UNITS_PER_WORD", ")", ")", "return", "0", ";", "if", "(", "sibling", ")", "{", "gcc_assert", "(", "CALL_P", "(", "sibling", ")", ")", ";", "if", "(", "find_regno_fusage", "(", "sibling", ",", "USE", ",", "3", ")", ")", "return", "0", ";", "}", "if", "(", "saved_int_regs", "&", "0x7", ")", "return", "0", ";", "}", "if", "(", "TARGET_INTERWORK", "&&", "saved_int_regs", "!=", "0", "&&", "!", "IS_INTERRUPT", "(", "func_type", ")", ")", "return", "0", ";", "if", "(", "iscond", "&&", "arm_tune_strongarm", ")", "{", "if", "(", "saved_int_regs", "!=", "0", "&&", "saved_int_regs", "!=", "(", "1", "<<", "LR_REGNUM", ")", ")", "return", "0", ";", "if", "(", "flag_pic", "&&", "arm_pic_register", "!=", "INVALID_REGNUM", "&&", "df_regs_ever_live_p", "(", "PIC_OFFSET_TABLE_REGNUM", ")", ")", "return", "0", ";", "}", "if", "(", "saved_int_regs", "&&", "!", "(", "saved_int_regs", "&", "(", "1", "<<", "LR_REGNUM", ")", ")", ")", "return", "0", ";", "if", "(", "TARGET_HARD_FLOAT", "&&", "TARGET_VFP", ")", "for", "(", "regno", "=", "FIRST_VFP_REGNUM", ";", "regno", "<=", "LAST_VFP_REGNUM", ";", "regno", "++", ")", "if", "(", "df_regs_ever_live_p", "(", "regno", ")", "&&", "!", "call_used_regs", "[", "regno", "]", ")", "return", "0", ";", "if", "(", "TARGET_REALLY_IWMMXT", ")", "for", "(", "regno", "=", "FIRST_IWMMXT_REGNUM", ";", "regno", "<=", "LAST_IWMMXT_REGNUM", ";", "regno", "++", ")", "if", "(", "df_regs_ever_live_p", "(", "regno", ")", "&&", "!", "call_used_regs", "[", "regno", "]", ")", "return", "0", ";", "return", "1", ";", "}", ""], "natrual_language": ["Return", "true", "if", "this", "function", "'s", "epilogue", "can", "be", "output", "as", "RTL", "."], "TS_V_token": ["arm", "0", "0", "0", "0", "0", "4", "0", "4", "3", "0", "4", "0", "3", "0", "0x7", "0", "0", "0", "0", "1", "0", "0", "1", "0", "0", "0", "1"], "File": "arm4", "Func": "use_return_insn", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1346, "Length": 379, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64FrameLowering", "::", "emitZeroCallUsedRegs", "(", "BitVector", "RegsToZero", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "getFirstTerminator", "(", ")", ";", "DebugLoc", "DL", ";", "if", "(", "MBBI", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "MBBI", "->", "getDebugLoc", "(", ")", ";", "const", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "const", "AArch64Subtarget", "&", "STI", "=", "MF", ".", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ";", "const", "AArch64RegisterInfo", "&", "TRI", "=", "*", "STI", ".", "getRegisterInfo", "(", ")", ";", "BitVector", "GPRsToZero", "(", "TRI", ".", "getNumRegs", "(", ")", ")", ";", "BitVector", "FPRsToZero", "(", "TRI", ".", "getNumRegs", "(", ")", ")", ";", "bool", "HasSVE", "=", "STI", ".", "hasSVE", "(", ")", ";", "for", "(", "MCRegister", "Reg", ":", "RegsToZero", ".", "set_bits", "(", ")", ")", "{", "if", "(", "TRI", ".", "isGeneralPurposeRegister", "(", "MF", ",", "Reg", ")", ")", "{", "if", "(", "MCRegister", "XReg", "=", "getRegisterOrZero", "(", "Reg", ",", "HasSVE", ")", ")", "GPRsToZero", ".", "set", "(", "XReg", ")", ";", "}", "else", "if", "(", "AArch64", "::", "FPR128RegClass", ".", "contains", "(", "Reg", ")", "||", "AArch64", "::", "FPR64RegClass", ".", "contains", "(", "Reg", ")", "||", "AArch64", "::", "FPR32RegClass", ".", "contains", "(", "Reg", ")", "||", "AArch64", "::", "FPR16RegClass", ".", "contains", "(", "Reg", ")", "||", "AArch64", "::", "FPR8RegClass", ".", "contains", "(", "Reg", ")", ")", "{", "if", "(", "MCRegister", "XReg", "=", "getRegisterOrZero", "(", "Reg", ",", "HasSVE", ")", ")", "FPRsToZero", ".", "set", "(", "XReg", ")", ";", "}", "}", "const", "AArch64InstrInfo", "&", "TII", "=", "*", "STI", ".", "getInstrInfo", "(", ")", ";", "for", "(", "MCRegister", "Reg", ":", "GPRsToZero", ".", "set_bits", "(", ")", ")", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "AArch64", "::", "MOVi64imm", ")", ",", "Reg", ")", ".", "addImm", "(", "0", ")", ";", "for", "(", "MCRegister", "Reg", ":", "FPRsToZero", ".", "set_bits", "(", ")", ")", "if", "(", "HasSVE", ")", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "AArch64", "::", "DUP_ZI_D", ")", ",", "Reg", ")", ".", "addImm", "(", "0", ")", ".", "addImm", "(", "0", ")", ";", "else", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "AArch64", "::", "MOVIv2d_ns", ")", ",", "Reg", ")", ".", "addImm", "(", "0", ")", ";", "if", "(", "HasSVE", ")", "{", "for", "(", "MCRegister", "PReg", ":", "{", "AArch64", "::", "P0", ",", "AArch64", "::", "P1", ",", "AArch64", "::", "P2", ",", "AArch64", "::", "P3", ",", "AArch64", "::", "P4", ",", "AArch64", "::", "P5", ",", "AArch64", "::", "P6", ",", "AArch64", "::", "P7", ",", "AArch64", "::", "P8", ",", "AArch64", "::", "P9", ",", "AArch64", "::", "P10", ",", "AArch64", "::", "P11", ",", "AArch64", "::", "P12", ",", "AArch64", "::", "P13", ",", "AArch64", "::", "P14", ",", "AArch64", "::", "P15", "}", ")", "{", "if", "(", "RegsToZero", "[", "PReg", "]", ")", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "AArch64", "::", "PFALSE", ")", ",", "PReg", ")", ";", "}", "}", "}", ""], "natrual_language": ["emitZeroCallUsedRegs", "-", "Zeros", "out", "call", "used", "registers", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64::FPR128RegClass", "AArch64::FPR64RegClass", "AArch64::FPR32RegClass", "AArch64::FPR16RegClass", "AArch64::FPR8RegClass", "AArch64", "AArch64::MOVi64imm", "0", "AArch64::DUP_ZI_D", "0", "0", "AArch64::MOVIv2d_ns", "0", "AArch64::P0", "AArch64::P1", "AArch64::P2", "AArch64::P3", "AArch64::P4", "AArch64::P5", "AArch64::P6", "AArch64::P7", "AArch64::P8", "AArch64::P9", "AArch64::P10", "AArch64::P11", "AArch64::P12", "AArch64::P13", "AArch64::P14", "AArch64::P15", "AArch64::PFALSE"], "File": "AArch64FrameLowering47", "Func": "emitZeroCallUsedRegs", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1347, "Length": 453, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ix86_split_fp_branch", "(", "enum", "rtx_code", "code", ",", "rtx", "op1", ",", "rtx", "op2", ",", "rtx", "target1", ",", "rtx", "target2", ",", "rtx", "tmp", ")", "{", "rtx", "condition", ";", "rtx", "i", ";", "if", "(", "target2", "!=", "pc_rtx", ")", "{", "std", "::", "swap", "(", "target1", ",", "target2", ")", ";", "code", "=", "reverse_condition_maybe_unordered", "(", "code", ")", ";", "}", "condition", "=", "ix86_expand_fp_compare", "(", "code", ",", "op1", ",", "op2", ",", "tmp", ")", ";", "i", "=", "emit_jump_insn", "(", "gen_rtx_SET", "(", "pc_rtx", ",", "gen_rtx_IF_THEN_ELSE", "(", "VOIDmode", ",", "condition", ",", "target1", ",", "target2", ")", ")", ")", ";", "if", "(", "split_branch_probability", ">=", "0", ")", "add_int_reg_note", "(", "i", ",", "REG_BR_PROB", ",", "split_branch_probability", ")", ";", "}", ""], "natrual_language": ["Split", "branch", "based", "on", "floating", "point", "condition", "."], "TS_V_token": ["i386", "0"], "File": "i3865", "Func": "ix86_split_fp_branch", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1348, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "HOST_WIDE_INT", "mips_initial_elimination_offset", "(", "int", "from", ",", "int", "to", ")", "{", "HOST_WIDE_INT", "offset", ";", "mips_compute_frame_info", "(", ")", ";", "switch", "(", "from", ")", "{", "case", "FRAME_POINTER_REGNUM", ":", "if", "(", "FRAME_GROWS_DOWNWARD", ")", "offset", "=", "(", "cfun", "->", "machine", "->", "frame", ".", "args_size", "+", "cfun", "->", "machine", "->", "frame", ".", "cprestore_size", "+", "cfun", "->", "machine", "->", "frame", ".", "var_size", ")", ";", "else", "offset", "=", "0", ";", "break", ";", "case", "ARG_POINTER_REGNUM", ":", "offset", "=", "cfun", "->", "machine", "->", "frame", ".", "arg_pointer_offset", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "if", "(", "to", "==", "HARD_FRAME_POINTER_REGNUM", ")", "offset", "-=", "cfun", "->", "machine", "->", "frame", ".", "hard_frame_pointer_offset", ";", "return", "offset", ";", "}", ""], "natrual_language": ["Implement", "INITIAL_ELIMINATION_OFFSET", ".", "FROM", "is", "either", "the", "frame", "pointer", "or", "argument", "pointer", ".", "TO", "is", "either", "the", "stack", "pointer", "or", "hard", "frame", "pointer", "."], "TS_V_token": ["mips", "0"], "File": "mips", "Func": "mips_initial_elimination_offset", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1349, "Length": 106, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MBBI", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "override", "{", "storeRegToStack", "(", "MBB", ",", "MBBI", ",", "SrcReg", ",", "isKill", ",", "FrameIndex", ",", "RC", ",", "TRI", ",", "0", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["SIC", "0"], "File": "SICInstrInfo", "Func": "storeRegToStackSlot", "Target": "SIC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1350, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCObjectWriter", "*", "MipsAsmBackend", "::", "createObjectWriter", "(", "raw_ostream", "&", "OS", ")", "const", "{", "return", "createMipsELFObjectWriter", "(", "OS", ",", "MCELFObjectTargetWriter", "::", "getOSABI", "(", "OSType", ")", ",", "IsLittle", ",", "Is64Bit", ")", ";", "}", ""], "natrual_language": ["Create", "a", "new", "MCObjectWriter", "instance", "for", "use", "by", "the", "assembler", "backend", "to", "emit", "the", "final", "object", "file", "."], "TS_V_token": ["Mips", "Mips", "Mips"], "File": "MipsAsmBackend", "Func": "createObjectWriter", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1351, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "nonpic_symbol_mentioned_p", "(", "rtx", "x", ")", "{", "const", "char", "*", "fmt", ";", "int", "i", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "SYMBOL_REF", "||", "GET_CODE", "(", "x", ")", "==", "LABEL_REF", "||", "GET_CODE", "(", "x", ")", "==", "PC", ")", "return", "true", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "CONST_DOUBLE", ")", "return", "false", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "UNSPEC", "&&", "(", "XINT", "(", "x", ",", "1", ")", "==", "UNSPEC_PIC", "||", "XINT", "(", "x", ",", "1", ")", "==", "UNSPEC_GOT", "||", "XINT", "(", "x", ",", "1", ")", "==", "UNSPEC_GOTOFF", "||", "XINT", "(", "x", ",", "1", ")", "==", "UNSPEC_GOTPLT", "||", "XINT", "(", "x", ",", "1", ")", "==", "UNSPEC_GOTTPOFF", "||", "XINT", "(", "x", ",", "1", ")", "==", "UNSPEC_DTPOFF", "||", "XINT", "(", "x", ",", "1", ")", "==", "UNSPEC_TPOFF", "||", "XINT", "(", "x", ",", "1", ")", "==", "UNSPEC_PLT", "||", "XINT", "(", "x", ",", "1", ")", "==", "UNSPEC_SYMOFF", "||", "XINT", "(", "x", ",", "1", ")", "==", "UNSPEC_PCREL_SYMOFF", ")", ")", "return", "false", ";", "fmt", "=", "GET_RTX_FORMAT", "(", "GET_CODE", "(", "x", ")", ")", ";", "for", "(", "i", "=", "GET_RTX_LENGTH", "(", "GET_CODE", "(", "x", ")", ")", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "if", "(", "fmt", "[", "i", "]", "==", "'E'", ")", "{", "int", "j", ";", "for", "(", "j", "=", "XVECLEN", "(", "x", ",", "i", ")", "-", "1", ";", "j", ">=", "0", ";", "j", "--", ")", "if", "(", "nonpic_symbol_mentioned_p", "(", "XVECEXP", "(", "x", ",", "i", ",", "j", ")", ")", ")", "return", "true", ";", "}", "else", "if", "(", "fmt", "[", "i", "]", "==", "'e'", "&&", "nonpic_symbol_mentioned_p", "(", "XEXP", "(", "x", ",", "i", ")", ")", ")", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "TRUE", "if", "X", "references", "a", "SYMBOL_REF", "or", "LABEL_REF", "whose", "symbol", "is", "n't", "protected", "by", "a", "PIC", "unspec", "."], "TS_V_token": ["sh", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "0", "1", "0"], "File": "sh4", "Func": "nonpic_symbol_mentioned_p", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1352, "Length": 268, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "AArch64FI", "=", "MF", ".", "getInfo", "<", "AArch64FunctionInfo", ">", "(", ")", ";", "STI", "=", "static_cast", "<", "const", "AArch64Subtarget", "*", ">", "(", "&", "MF", ".", "getSubtarget", "(", ")", ")", ";", "SetupMachineFunction", "(", "MF", ")", ";", "if", "(", "STI", "->", "isTargetCOFF", "(", ")", ")", "{", "bool", "Internal", "=", "MF", ".", "getFunction", "(", ")", ".", "hasInternalLinkage", "(", ")", ";", "COFF", "::", "SymbolStorageClass", "Scl", "=", "Internal", "?", "COFF", "::", "IMAGE_SYM_CLASS_STATIC", ":", "COFF", "::", "IMAGE_SYM_CLASS_EXTERNAL", ";", "int", "Type", "=", "COFF", "::", "IMAGE_SYM_DTYPE_FUNCTION", "<<", "COFF", "::", "SCT_COMPLEX_TYPE_SHIFT", ";", "OutStreamer", "->", "BeginCOFFSymbolDef", "(", "CurrentFnSym", ")", ";", "OutStreamer", "->", "EmitCOFFSymbolStorageClass", "(", "Scl", ")", ";", "OutStreamer", "->", "EmitCOFFSymbolType", "(", "Type", ")", ";", "OutStreamer", "->", "EndCOFFSymbolDef", "(", ")", ";", "}", "EmitFunctionBody", "(", ")", ";", "emitXRayTable", "(", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64AsmPrinter", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1353, "Length": 130, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "aarch64_simd_shift_imm_p", "(", "rtx", "x", ",", "machine_mode", "mode", ",", "bool", "left", ")", "{", "x", "=", "unwrap_const_vec_duplicate", "(", "x", ")", ";", "if", "(", "!", "CONST_INT_P", "(", "x", ")", ")", "return", "false", ";", "int", "bit_width", "=", "GET_MODE_UNIT_SIZE", "(", "mode", ")", "*", "BITS_PER_UNIT", ";", "if", "(", "left", ")", "return", "IN_RANGE", "(", "INTVAL", "(", "x", ")", ",", "0", ",", "bit_width", "-", "1", ")", ";", "else", "return", "IN_RANGE", "(", "INTVAL", "(", "x", ")", ",", "1", ",", "bit_width", ")", ";", "}", ""], "natrual_language": ["Check", "of", "immediate", "shift", "constants", "are", "within", "range", "."], "TS_V_token": ["aarch64", "0", "1", "1"], "File": "aarch64", "Func": "aarch64_simd_shift_imm_p", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1354, "Length": 75, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "MandarinTargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", ",", "SDLoc", "DL", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "DAG", ".", "getTarget", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_Mandarin", ")", ";", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", "(", "1", ",", "Chain", ")", ";", "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", "(", "MDISD", "::", "RET_FLAG", ",", "DL", ",", "MVT", "::", "Other", ",", "&", "RetOps", "[", "0", "]", ",", "RetOps", ".", "size", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["Mandarin", "ISD::OutputArg", "16", "4", "1", "0", "\"Can only return in registers!\"", "1", "0", "MDISD::RET_FLAG", "MVT::Other", "0"], "File": "MandarinISelLowering", "Func": "LowerReturn", "Target": "Mandarin", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1355, "Length": 261, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "LLVM_OVERRIDE", "{", "return", "\"X86 Assembly / Object Emitter\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["X86", "\"X86 Assembly / Object Emitter\""], "File": "X86AsmPrinter25", "Func": "getPassName", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1356, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86InstrInfo", "::", "isTailCall", "(", "const", "MachineInstr", "&", "Inst", ")", "const", "{", "switch", "(", "Inst", ".", "getOpcode", "(", ")", ")", "{", "case", "X86", "::", "TCRETURNdi", ":", "case", "X86", "::", "TCRETURNmi", ":", "case", "X86", "::", "TCRETURNri", ":", "case", "X86", "::", "TCRETURNdi64", ":", "case", "X86", "::", "TCRETURNmi64", ":", "case", "X86", "::", "TCRETURNri64", ":", "case", "X86", "::", "TAILJMPd", ":", "case", "X86", "::", "TAILJMPm", ":", "case", "X86", "::", "TAILJMPr", ":", "case", "X86", "::", "TAILJMPd64", ":", "case", "X86", "::", "TAILJMPm64", ":", "case", "X86", "::", "TAILJMPr64", ":", "case", "X86", "::", "TAILJMPm64_REX", ":", "case", "X86", "::", "TAILJMPr64_REX", ":", "return", "true", ";", "default", ":", "return", "false", ";", "}", "}", ""], "natrual_language": ["Determines", "whether", "Inst", "is", "a", "tail", "call", "instruction", "."], "TS_V_token": ["X86", "X86", "X86::TCRETURNdi", "X86::TCRETURNmi", "X86::TCRETURNri", "X86::TCRETURNdi64", "X86::TCRETURNmi64", "X86::TCRETURNri64", "X86::TAILJMPd", "X86::TAILJMPm", "X86::TAILJMPr", "X86::TAILJMPd64", "X86::TAILJMPm64", "X86::TAILJMPr64", "X86::TAILJMPm64_REX", "X86::TAILJMPr64_REX"], "File": "X86InstrInfo112", "Func": "isTailCall", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1357, "Length": 101, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ArrayRef", "<", "std", "::", "pair", "<", "unsigned", ",", "const", "char", "*", ">>", "LanaiInstrInfo", "::", "getSerializableDirectMachineOperandTargetFlags", "(", ")", "const", "{", "using", "namespace", "LanaiII", ";", "static", "const", "std", "::", "pair", "<", "unsigned", ",", "const", "char", "*", ">", "TargetFlags", "[", "]", "=", "{", "{", "MO_ABS_HI", ",", "\"lanai-hi\"", "}", ",", "{", "MO_ABS_LO", ",", "\"lanai-lo\"", "}", ",", "{", "MO_NO_FLAG", ",", "\"lanai-nf\"", "}", "}", ";", "return", "makeArrayRef", "(", "TargetFlags", ")", ";", "}", ""], "natrual_language": ["Return", "an", "array", "that", "contains", "the", "direct", "target", "flag", "values", "and", "their", "names", "."], "TS_V_token": ["Lanai", "Lanai", "Lanai", "\"lanai-hi\"", "\"lanai-lo\"", "\"lanai-nf\""], "File": "LanaiInstrInfo (2)", "Func": "getSerializableDirectMachineOperandTargetFlags", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1358, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "SystemZRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "{", "Reserved", ".", "set", "(", "SystemZ", "::", "R11D", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "R11W", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "R10P", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "R10Q", ")", ";", "}", "Reserved", ".", "set", "(", "SystemZ", "::", "R14D", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "R15D", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "R14W", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "R15W", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "R14P", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "R14Q", ")", ";", "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": ["SystemZ", "SystemZ", "SystemZ::R11D", "SystemZ::R11W", "SystemZ::R10P", "SystemZ::R10Q", "SystemZ::R14D", "SystemZ::R15D", "SystemZ::R14W", "SystemZ::R15W", "SystemZ::R14P", "SystemZ::R14Q"], "File": "SystemZRegisterInfo47", "Func": "getReservedRegs", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1359, "Length": 140, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_secondary_memory_needed", "(", "machine_mode", "mode", ",", "reg_class_t", "class1", ",", "reg_class_t", "class2", ")", "{", "if", "(", "lra_in_progress", "&&", "(", "class1", "==", "NO_REGS", "||", "class2", "==", "NO_REGS", ")", ")", "return", "false", ";", "if", "(", "(", "(", "class1", "==", "FP_REGS", ")", "!=", "(", "class2", "==", "FP_REGS", ")", ")", "&&", "(", "(", "TARGET_FLOATXX", "&&", "!", "ISA_HAS_MXHC1", ")", "||", "TARGET_O32_FP64A_ABI", ")", "&&", "GET_MODE_SIZE", "(", "mode", ")", ">=", "8", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Implement", "SECONDARY_MEMORY_NEEDED", "."], "TS_V_token": ["mips", "8"], "File": "mips", "Func": "mips_secondary_memory_needed", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1360, "Length": 72, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64StorePairSuppress", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "mf", ")", "{", "MF", "=", "&", "mf", ";", "TII", "=", "static_cast", "<", "const", "AArch64InstrInfo", "*", ">", "(", "MF", "->", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "MF", "->", "getTarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "MRI", "=", "&", "MF", "->", "getRegInfo", "(", ")", ";", "const", "TargetSubtargetInfo", "&", "ST", "=", "MF", "->", "getTarget", "(", ")", ".", "getSubtarget", "<", "TargetSubtargetInfo", ">", "(", ")", ";", "SchedModel", ".", "init", "(", "*", "ST", ".", "getSchedModel", "(", ")", ",", "&", "ST", ",", "TII", ")", ";", "Traces", "=", "&", "getAnalysis", "<", "MachineTraceMetrics", ">", "(", ")", ";", "MinInstr", "=", "nullptr", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"*** \"", "<<", "getPassName", "(", ")", "<<", "\": \"", "<<", "MF", "->", "getName", "(", ")", "<<", "'\\n'", ")", ";", "if", "(", "!", "SchedModel", ".", "hasInstrSchedModel", "(", ")", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\" Skipping pass: no machine model present.\\n\"", ")", ";", "return", "false", ";", "}", "for", "(", "auto", "&", "MBB", ":", "*", "MF", ")", "{", "bool", "SuppressSTP", "=", "false", ";", "unsigned", "PrevBaseReg", "=", "0", ";", "for", "(", "auto", "&", "MI", ":", "MBB", ")", "{", "if", "(", "!", "isNarrowFPStore", "(", "MI", ")", ")", "continue", ";", "unsigned", "BaseReg", ";", "unsigned", "Offset", ";", "if", "(", "TII", "->", "getLdStBaseRegImmOfs", "(", "&", "MI", ",", "BaseReg", ",", "Offset", ",", "TRI", ")", ")", "{", "if", "(", "PrevBaseReg", "==", "BaseReg", ")", "{", "if", "(", "!", "SuppressSTP", "&&", "shouldAddSTPToBlock", "(", "MI", ".", "getParent", "(", ")", ")", ")", "break", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Unpairing store \"", "<<", "MI", "<<", "\"\\n\"", ")", ";", "SuppressSTP", "=", "true", ";", "TII", "->", "suppressLdStPair", "(", "&", "MI", ")", ";", "}", "PrevBaseReg", "=", "BaseReg", ";", "}", "else", "PrevBaseReg", "=", "0", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "\"*** \"", "\": \"", "\" Skipping pass: no machine model present.\\n\"", "0", "\"Unpairing store \"", "\"\\n\"", "0"], "File": "AArch64StorePairSuppress", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1361, "Length": 278, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86PassConfig", "::", "addPreRegAlloc", "(", ")", "{", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "addPass", "(", "createX86FixupSetCC", "(", ")", ")", ";", "addPass", "(", "createX86OptimizeLEAs", "(", ")", ")", ";", "addPass", "(", "createX86CallFrameOptimization", "(", ")", ")", ";", "}", "addPass", "(", "createX86WinAllocaExpander", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "register", "allocation", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86"], "File": "X86TargetMachine108", "Func": "addPreRegAlloc", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1362, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_block_set_unaligned_vect", "(", "rtx", "dstbase", ",", "unsigned", "HOST_WIDE_INT", "length", ",", "unsigned", "HOST_WIDE_INT", "value", ",", "unsigned", "HOST_WIDE_INT", "align", ")", "{", "unsigned", "int", "i", ",", "nelt_v16", ",", "nelt_v8", ",", "nelt_mode", ";", "rtx", "dst", ",", "mem", ";", "rtx", "val_vec", ",", "reg", ";", "rtx", "(", "*", "gen_func", ")", "(", "rtx", ",", "rtx", ")", ";", "machine_mode", "mode", ";", "unsigned", "HOST_WIDE_INT", "v", "=", "value", ";", "unsigned", "int", "offset", "=", "0", ";", "gcc_assert", "(", "(", "align", "&", "0x3", ")", "!=", "0", ")", ";", "nelt_v8", "=", "GET_MODE_NUNITS", "(", "V8QImode", ")", ";", "nelt_v16", "=", "GET_MODE_NUNITS", "(", "V16QImode", ")", ";", "if", "(", "length", ">=", "nelt_v16", ")", "{", "mode", "=", "V16QImode", ";", "gen_func", "=", "gen_movmisalignv16qi", ";", "}", "else", "{", "mode", "=", "V8QImode", ";", "gen_func", "=", "gen_movmisalignv8qi", ";", "}", "nelt_mode", "=", "GET_MODE_NUNITS", "(", "mode", ")", ";", "gcc_assert", "(", "length", ">=", "nelt_mode", ")", ";", "if", "(", "!", "arm_block_set_vect_profit_p", "(", "length", ",", "align", ",", "mode", ")", ")", "return", "false", ";", "dst", "=", "copy_addr_to_reg", "(", "XEXP", "(", "dstbase", ",", "0", ")", ")", ";", "mem", "=", "adjust_automodify_address", "(", "dstbase", ",", "mode", ",", "dst", ",", "offset", ")", ";", "v", "=", "sext_hwi", "(", "v", ",", "BITS_PER_WORD", ")", ";", "reg", "=", "gen_reg_rtx", "(", "mode", ")", ";", "val_vec", "=", "gen_const_vec_duplicate", "(", "mode", ",", "GEN_INT", "(", "v", ")", ")", ";", "emit_move_insn", "(", "reg", ",", "val_vec", ")", ";", "for", "(", "i", "=", "0", ";", "(", "i", "+", "nelt_mode", "<=", "length", ")", ";", "i", "+=", "nelt_mode", ")", "{", "emit_insn", "(", "(", "*", "gen_func", ")", "(", "mem", ",", "reg", ")", ")", ";", "if", "(", "i", "+", "2", "*", "nelt_mode", "<=", "length", ")", "{", "emit_insn", "(", "gen_add2_insn", "(", "dst", ",", "GEN_INT", "(", "nelt_mode", ")", ")", ")", ";", "offset", "+=", "nelt_mode", ";", "mem", "=", "adjust_automodify_address", "(", "dstbase", ",", "mode", ",", "dst", ",", "offset", ")", ";", "}", "}", "gcc_assert", "(", "(", "i", "+", "nelt_v8", ")", ">", "length", "||", "mode", "==", "V16QImode", ")", ";", "if", "(", "i", "+", "nelt_v8", "<", "length", ")", "{", "emit_insn", "(", "gen_add2_insn", "(", "dst", ",", "GEN_INT", "(", "length", "-", "i", ")", ")", ")", ";", "offset", "+=", "length", "-", "i", ";", "mem", "=", "adjust_automodify_address", "(", "dstbase", ",", "mode", ",", "dst", ",", "offset", ")", ";", "if", "(", "(", "length", "&", "1", ")", "!=", "0", "&&", "align", ">=", "2", ")", "set_mem_align", "(", "mem", ",", "BITS_PER_UNIT", ")", ";", "emit_insn", "(", "gen_movmisalignv16qi", "(", "mem", ",", "reg", ")", ")", ";", "}", "else", "if", "(", "i", "<", "length", "&&", "i", "+", "nelt_v8", ">=", "length", ")", "{", "if", "(", "mode", "==", "V16QImode", ")", "reg", "=", "gen_lowpart", "(", "V8QImode", ",", "reg", ")", ";", "emit_insn", "(", "gen_add2_insn", "(", "dst", ",", "GEN_INT", "(", "(", "length", "-", "i", ")", "+", "(", "nelt_mode", "-", "nelt_v8", ")", ")", ")", ")", ";", "offset", "+=", "(", "length", "-", "i", ")", "+", "(", "nelt_mode", "-", "nelt_v8", ")", ";", "mem", "=", "adjust_automodify_address", "(", "dstbase", ",", "V8QImode", ",", "dst", ",", "offset", ")", ";", "if", "(", "(", "length", "&", "1", ")", "!=", "0", "&&", "align", ">=", "2", ")", "set_mem_align", "(", "mem", ",", "BITS_PER_UNIT", ")", ";", "emit_insn", "(", "gen_movmisalignv8qi", "(", "mem", ",", "reg", ")", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Set", "a", "block", "of", "memory", "using", "vectorization", "instructions", "for", "the", "unaligned", "case", ".", "We", "fill", "the", "first", "LENGTH", "bytes", "of", "the", "memory", "area", "starting", "from", "DSTBASE", "with", "byte", "constant", "VALUE", ".", "ALIGN", "is", "the", "alignment", "requirement", "of", "memory", ".", "Return", "TRUE", "if", "succeeded", "."], "TS_V_token": ["arm", "0", "0x3", "0", "0", "0", "2", "1", "0", "2", "1", "0", "2"], "File": "arm", "Func": "arm_block_set_unaligned_vect", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1363, "Length": 487, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "CAHPDAGToDAGISel", "::", "SelectInlineAsmMemoryOperand", "(", "const", "SDValue", "&", "Op", ",", "unsigned", "ConstraintID", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "OutOps", ")", "{", "switch", "(", "ConstraintID", ")", "{", "case", "InlineAsm", "::", "Constraint_i", ":", "case", "InlineAsm", "::", "Constraint_m", ":", "OutOps", ".", "push_back", "(", "Op", ")", ";", "return", "false", ";", "default", ":", "break", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["SelectInlineAsmMemoryOperand", "-", "Select", "the", "specified", "address", "as", "a", "target", "addressing", "mode", ",", "according", "to", "the", "specified", "constraint", "."], "TS_V_token": ["CAHP", "CAHP"], "File": "CAHPISelDAGToDAG", "Func": "SelectInlineAsmMemoryOperand", "Target": "CAHP", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1364, "Length": 57, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCDAGToDAGISel", "::", "PostprocessISelDAG", "(", ")", "{", "if", "(", "TM", ".", "getOptLevel", "(", ")", "==", "CodeGenOpt", "::", "None", ")", "return", ";", "PeepholePPC64", "(", ")", ";", "PeepholdCROps", "(", ")", ";", "}", ""], "natrual_language": ["PostprocessISelDAG", "(", ")", "-", "This", "hook", "allows", "the", "target", "to", "hack", "on", "the", "graph", "right", "after", "selection", "."], "TS_V_token": ["PowerPC", "PPC", "PPC"], "File": "PPCISelDAGToDAG (2)", "Func": "PostprocessISelDAG", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1365, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Relocator", "::", "Size", "ARMRelocator", "::", "getSize", "(", "Relocation", "::", "Type", "pType", ")", "const", "{", "return", "32", ";", "}", ""], "natrual_language": ["Return", "the", "number", "of", "bytes", "in", "the", "encoding", "of", "this", "instruction", ",", "or", "zero", "if", "the", "encoding", "size", "can", "not", "be", "known", "from", "the", "opcode", "."], "TS_V_token": ["ARM", "ARM", "32"], "File": "ARMRelocator", "Func": "getSize", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1366, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "VZeroUpperInserter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "const", "X86Subtarget", "&", "ST", "=", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "if", "(", "!", "ST", ".", "hasAVX", "(", ")", "||", "ST", ".", "hasAVX512", "(", ")", "||", "ST", ".", "hasFastPartialYMMWrite", "(", ")", ")", "return", "false", ";", "TII", "=", "ST", ".", "getInstrInfo", "(", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "EverMadeChange", "=", "false", ";", "IsX86INTR", "=", "MF", ".", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "X86_INTR", ";", "bool", "FnHasLiveInYmm", "=", "checkFnHasLiveInYmm", "(", "MRI", ")", ";", "bool", "YMMUsed", "=", "FnHasLiveInYmm", ";", "if", "(", "!", "YMMUsed", ")", "{", "const", "TargetRegisterClass", "*", "RC", "=", "&", "X86", "::", "VR256RegClass", ";", "for", "(", "TargetRegisterClass", "::", "iterator", "i", "=", "RC", "->", "begin", "(", ")", ",", "e", "=", "RC", "->", "end", "(", ")", ";", "i", "!=", "e", ";", "i", "++", ")", "{", "if", "(", "!", "MRI", ".", "reg_nodbg_empty", "(", "*", "i", ")", ")", "{", "YMMUsed", "=", "true", ";", "break", ";", "}", "}", "}", "if", "(", "!", "YMMUsed", ")", "{", "return", "false", ";", "}", "assert", "(", "BlockStates", ".", "empty", "(", ")", "&&", "DirtySuccessors", ".", "empty", "(", ")", "&&", "\"X86VZeroUpper state should be clear\"", ")", ";", "BlockStates", ".", "resize", "(", "MF", ".", "getNumBlockIDs", "(", ")", ")", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "processBasicBlock", "(", "MBB", ")", ";", "if", "(", "FnHasLiveInYmm", ")", "addDirtySuccessor", "(", "MF", ".", "front", "(", ")", ")", ";", "while", "(", "!", "DirtySuccessors", ".", "empty", "(", ")", ")", "{", "MachineBasicBlock", "&", "MBB", "=", "*", "DirtySuccessors", ".", "back", "(", ")", ";", "DirtySuccessors", ".", "pop_back", "(", ")", ";", "BlockState", "&", "BBState", "=", "BlockStates", "[", "MBB", ".", "getNumber", "(", ")", "]", ";", "if", "(", "BBState", ".", "FirstUnguardedCall", "!=", "MBB", ".", "end", "(", ")", ")", "insertVZeroUpper", "(", "BBState", ".", "FirstUnguardedCall", ",", "MBB", ")", ";", "if", "(", "BBState", ".", "ExitState", "==", "PASS_THROUGH", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"MBB #\"", "<<", "MBB", ".", "getNumber", "(", ")", "<<", "\" was Pass-through, is now Dirty-out.\\n\"", ")", ";", "for", "(", "MachineBasicBlock", "::", "succ_iterator", "SI", "=", "MBB", ".", "succ_begin", "(", ")", ",", "SE", "=", "MBB", ".", "succ_end", "(", ")", ";", "SI", "!=", "SE", ";", "++", "SI", ")", "addDirtySuccessor", "(", "*", "*", "SI", ")", ";", "}", "}", "BlockStates", ".", "clear", "(", ")", ";", "return", "EverMadeChange", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86::VR256RegClass", "\"X86VZeroUpper state should be clear\"", "\"MBB #\"", "\" was Pass-through, is now Dirty-out.\\n\""], "File": "X86VZeroUpper4", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1367, "Length": 363, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCAsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "SmallString", "<", "128", ">", "Str", ";", "raw_svector_ostream", "O", "(", "Str", ")", ";", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "PPC", "::", "RLWINM", ")", "{", "unsigned", "char", "SH", "=", "MI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "unsigned", "char", "MB", "=", "MI", "->", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", ";", "unsigned", "char", "ME", "=", "MI", "->", "getOperand", "(", "4", ")", ".", "getImm", "(", ")", ";", "bool", "useSubstituteMnemonic", "=", "false", ";", "if", "(", "SH", "<=", "31", "&&", "MB", "==", "0", "&&", "ME", "==", "(", "31", "-", "SH", ")", ")", "{", "O", "<<", "\"\\tslwi \"", ";", "useSubstituteMnemonic", "=", "true", ";", "}", "if", "(", "SH", "<=", "31", "&&", "MB", "==", "(", "32", "-", "SH", ")", "&&", "ME", "==", "31", ")", "{", "O", "<<", "\"\\tsrwi \"", ";", "useSubstituteMnemonic", "=", "true", ";", "SH", "=", "32", "-", "SH", ";", "}", "if", "(", "useSubstituteMnemonic", ")", "{", "printOperand", "(", "MI", ",", "0", ",", "O", ")", ";", "O", "<<", "\", \"", ";", "printOperand", "(", "MI", ",", "1", ",", "O", ")", ";", "O", "<<", "\", \"", "<<", "(", "unsigned", "int", ")", "SH", ";", "OutStreamer", ".", "EmitRawText", "(", "O", ".", "str", "(", ")", ")", ";", "return", ";", "}", "}", "if", "(", "(", "MI", "->", "getOpcode", "(", ")", "==", "PPC", "::", "OR", "||", "MI", "->", "getOpcode", "(", ")", "==", "PPC", "::", "OR8", ")", "&&", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", "==", "MI", "->", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ")", "{", "O", "<<", "\"\\tmr \"", ";", "printOperand", "(", "MI", ",", "0", ",", "O", ")", ";", "O", "<<", "\", \"", ";", "printOperand", "(", "MI", ",", "1", ",", "O", ")", ";", "OutStreamer", ".", "EmitRawText", "(", "O", ".", "str", "(", ")", ")", ";", "return", ";", "}", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "PPC", "::", "RLDICR", ")", "{", "unsigned", "char", "SH", "=", "MI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "unsigned", "char", "ME", "=", "MI", "->", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", ";", "if", "(", "63", "-", "SH", "==", "ME", ")", "{", "O", "<<", "\"\\tsldi \"", ";", "printOperand", "(", "MI", ",", "0", ",", "O", ")", ";", "O", "<<", "\", \"", ";", "printOperand", "(", "MI", ",", "1", ",", "O", ")", ";", "O", "<<", "\", \"", "<<", "(", "unsigned", "int", ")", "SH", ";", "OutStreamer", ".", "EmitRawText", "(", "O", ".", "str", "(", ")", ")", ";", "return", ";", "}", "}", "printInstruction", "(", "MI", ",", "O", ")", ";", "OutStreamer", ".", "EmitRawText", "(", "O", ".", "str", "(", ")", ")", ";", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["PowerPC", "PPC", "128", "PPC::RLWINM", "2", "3", "4", "31", "0", "31", "\"\\tslwi \"", "31", "32", "31", "\"\\tsrwi \"", "32", "0", "\", \"", "1", "\", \"", "PPC::OR", "PPC::OR8", "1", "2", "\"\\tmr \"", "0", "\", \"", "1", "PPC::RLDICR", "2", "3", "63", "\"\\tsldi \"", "0", "\", \"", "1", "\", \""], "File": "PPCAsmPrinter11", "Func": "EmitInstruction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1368, "Length": 409, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "ARMTargetLowering", "::", "PerformCMOVCombine", "(", "SDNode", "*", "N", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SDValue", "Cmp", "=", "N", "->", "getOperand", "(", "4", ")", ";", "if", "(", "Cmp", ".", "getOpcode", "(", ")", "!=", "ARMISD", "::", "CMPZ", ")", "return", "SDValue", "(", ")", ";", "EVT", "VT", "=", "N", "->", "getValueType", "(", "0", ")", ";", "DebugLoc", "dl", "=", "N", "->", "getDebugLoc", "(", ")", ";", "SDValue", "LHS", "=", "Cmp", ".", "getOperand", "(", "0", ")", ";", "SDValue", "RHS", "=", "Cmp", ".", "getOperand", "(", "1", ")", ";", "SDValue", "FalseVal", "=", "N", "->", "getOperand", "(", "0", ")", ";", "SDValue", "TrueVal", "=", "N", "->", "getOperand", "(", "1", ")", ";", "SDValue", "ARMcc", "=", "N", "->", "getOperand", "(", "2", ")", ";", "ARMCC", "::", "CondCodes", "CC", "=", "(", "ARMCC", "::", "CondCodes", ")", "cast", "<", "ConstantSDNode", ">", "(", "ARMcc", ")", "->", "getZExtValue", "(", ")", ";", "SDValue", "Res", ";", "if", "(", "CC", "==", "ARMCC", "::", "NE", "&&", "FalseVal", "==", "RHS", "&&", "FalseVal", "!=", "LHS", ")", "{", "Res", "=", "DAG", ".", "getNode", "(", "ARMISD", "::", "CMOV", ",", "dl", ",", "VT", ",", "LHS", ",", "TrueVal", ",", "ARMcc", ",", "N", "->", "getOperand", "(", "3", ")", ",", "Cmp", ")", ";", "}", "else", "if", "(", "CC", "==", "ARMCC", "::", "EQ", "&&", "TrueVal", "==", "RHS", ")", "{", "SDValue", "ARMcc", ";", "SDValue", "NewCmp", "=", "getARMCmp", "(", "LHS", ",", "RHS", ",", "ISD", "::", "SETNE", ",", "ARMcc", ",", "DAG", ",", "dl", ")", ";", "Res", "=", "DAG", ".", "getNode", "(", "ARMISD", "::", "CMOV", ",", "dl", ",", "VT", ",", "LHS", ",", "FalseVal", ",", "ARMcc", ",", "N", "->", "getOperand", "(", "3", ")", ",", "NewCmp", ")", ";", "}", "if", "(", "Res", ".", "getNode", "(", ")", ")", "{", "APInt", "KnownZero", ",", "KnownOne", ";", "DAG", ".", "ComputeMaskedBits", "(", "SDValue", "(", "N", ",", "0", ")", ",", "KnownZero", ",", "KnownOne", ")", ";", "if", "(", "KnownZero", "==", "0xfffffffe", ")", "Res", "=", "DAG", ".", "getNode", "(", "ISD", "::", "AssertZext", ",", "dl", ",", "MVT", "::", "i32", ",", "Res", ",", "DAG", ".", "getValueType", "(", "MVT", "::", "i1", ")", ")", ";", "else", "if", "(", "KnownZero", "==", "0xffffff00", ")", "Res", "=", "DAG", ".", "getNode", "(", "ISD", "::", "AssertZext", ",", "dl", ",", "MVT", "::", "i32", ",", "Res", ",", "DAG", ".", "getValueType", "(", "MVT", "::", "i8", ")", ")", ";", "else", "if", "(", "KnownZero", "==", "0xffff0000", ")", "Res", "=", "DAG", ".", "getNode", "(", "ISD", "::", "AssertZext", ",", "dl", ",", "MVT", "::", "i32", ",", "Res", ",", "DAG", ".", "getValueType", "(", "MVT", "::", "i16", ")", ")", ";", "}", "return", "Res", ";", "}", ""], "natrual_language": ["PerformCMOVCombine", "-", "Target-specific", "DAG", "combining", "for", "ARMISD", ":", ":CMOV", "."], "TS_V_token": ["ARM", "ARM", "4", "ARMISD::CMPZ", "0", "0", "1", "0", "1", "ARM", "2", "ARMCC::CondCodes", "ARMCC::CondCodes", "ARM", "ARMCC::NE", "ARMISD::CMOV", "ARM", "3", "ARMCC::EQ", "ARM", "ARM", "ISD::SETNE", "ARM", "ARMISD::CMOV", "ARM", "3", "0", "0xfffffffe", "ISD::AssertZext", "MVT::i32", "MVT::i1", "0xffffff00", "ISD::AssertZext", "MVT::i32", "MVT::i8", "0xffff0000", "ISD::AssertZext", "MVT::i32", "MVT::i16"], "File": "ARMISelLowering107", "Func": "PerformCMOVCombine", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1369, "Length": 391, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "{", "return", "\"X86 Maximal Stack Alignment Check\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["X86", "\"X86 Maximal Stack Alignment Check\""], "File": "X86RegisterInfo101", "Func": "getPassName", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1370, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "machine_mode", "select_cc_mode", "(", "enum", "rtx_code", "op", ",", "rtx", "x", ",", "rtx", "y", ")", "{", "if", "(", "GET_MODE_CLASS", "(", "GET_MODE", "(", "x", ")", ")", "==", "MODE_FLOAT", ")", "{", "switch", "(", "op", ")", "{", "case", "EQ", ":", "case", "NE", ":", "case", "UNORDERED", ":", "case", "ORDERED", ":", "case", "UNLT", ":", "case", "UNLE", ":", "case", "UNGT", ":", "case", "UNGE", ":", "case", "UNEQ", ":", "case", "LTGT", ":", "return", "CCFPmode", ";", "case", "LT", ":", "case", "LE", ":", "case", "GT", ":", "case", "GE", ":", "return", "CCFPEmode", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "else", "if", "(", "(", "GET_CODE", "(", "x", ")", "==", "PLUS", "||", "GET_CODE", "(", "x", ")", "==", "MINUS", "||", "GET_CODE", "(", "x", ")", "==", "NEG", "||", "GET_CODE", "(", "x", ")", "==", "ASHIFT", ")", "&&", "y", "==", "const0_rtx", ")", "{", "if", "(", "TARGET_ARCH64", "&&", "GET_MODE", "(", "x", ")", "==", "DImode", ")", "return", "CCXNZmode", ";", "else", "return", "CCNZmode", ";", "}", "else", "{", "if", "(", "GET_CODE", "(", "x", ")", "==", "NOT", "&&", "y", "==", "constm1_rtx", ")", "{", "if", "(", "TARGET_ARCH64", "&&", "GET_MODE", "(", "x", ")", "==", "DImode", ")", "return", "CCXCmode", ";", "else", "return", "CCCmode", ";", "}", "if", "(", "!", "TARGET_ARCH64", "&&", "GET_MODE", "(", "x", ")", "==", "DImode", ")", "{", "if", "(", "GET_CODE", "(", "y", ")", "==", "UNSPEC", "&&", "(", "XINT", "(", "y", ",", "1", ")", "==", "UNSPEC_ADDV", "||", "XINT", "(", "y", ",", "1", ")", "==", "UNSPEC_SUBV", "||", "XINT", "(", "y", ",", "1", ")", "==", "UNSPEC_NEGV", ")", ")", "return", "CCVmode", ";", "else", "return", "CCCmode", ";", "}", "if", "(", "TARGET_ARCH64", "&&", "GET_MODE", "(", "x", ")", "==", "DImode", ")", "return", "CCXmode", ";", "else", "return", "CCmode", ";", "}", "}", ""], "natrual_language": ["Given", "a", "comparison", "code", "(", "EQ", ",", "NE", ",", "etc", ".", ")", "and", "the", "first", "operand", "of", "a", "COMPARE", ",", "return", "the", "mode", "to", "be", "used", "for", "the", "comparison", ".", "For", "floating-point", ",", "CCFP", "[", "E", "]", "mode", "is", "used", ".", "CC_NOOVmode", "should", "be", "used", "when", "the", "first", "operand", "is", "a", "PLUS", ",", "MINUS", ",", "NEG", ",", "or", "ASHIFT", ".", "CCmode", "should", "be", "used", "when", "no", "special", "processing", "is", "needed", "."], "TS_V_token": ["sparc", "1", "1", "1"], "File": "sparc6", "Func": "select_cc_mode", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1371, "Length": 259, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "legitimate_address_p", "(", "enum", "machine_mode", "mode", ",", "rtx", "x", ",", "int", "strict", ")", "{", "rtx", "xfoo0", ",", "xfoo1", ";", "if", "(", "nonindexed_address_p", "(", "x", ",", "strict", ")", ")", "return", "1", ";", "if", "(", "GET_CODE", "(", "x", ")", "!=", "PLUS", ")", "return", "0", ";", "xfoo0", "=", "XEXP", "(", "x", ",", "0", ")", ";", "xfoo1", "=", "XEXP", "(", "x", ",", "1", ")", ";", "if", "(", "index_term_p", "(", "xfoo0", ",", "mode", ",", "strict", ")", "&&", "nonindexed_address_p", "(", "xfoo1", ",", "strict", ")", ")", "return", "1", ";", "if", "(", "index_term_p", "(", "xfoo1", ",", "mode", ",", "strict", ")", "&&", "nonindexed_address_p", "(", "xfoo0", ",", "strict", ")", ")", "return", "1", ";", "if", "(", "indirectable_constant_address_p", "(", "xfoo0", ")", "&&", "(", "BASE_REGISTER_P", "(", "xfoo1", ",", "strict", ")", "||", "reg_plus_index_p", "(", "xfoo1", ",", "mode", ",", "strict", ")", ")", ")", "return", "1", ";", "if", "(", "indirectable_constant_address_p", "(", "xfoo1", ")", "&&", "(", "BASE_REGISTER_P", "(", "xfoo0", ",", "strict", ")", "||", "reg_plus_index_p", "(", "xfoo0", ",", "mode", ",", "strict", ")", ")", ")", "return", "1", ";", "return", "0", ";", "}", ""], "natrual_language": ["legitimate_address_p", "returns", "1", "if", "it", "recognizes", "an", "RTL", "expression", "``", "x", "''", "that", "is", "a", "valid", "memory", "address", "for", "an", "instruction", ".", "The", "MODE", "argument", "is", "the", "machine", "mode", "for", "the", "MEM", "expression", "that", "wants", "to", "use", "this", "address", "."], "TS_V_token": ["vax", "1", "0", "0", "1", "1", "1", "1", "1", "0"], "File": "vax3", "Func": "legitimate_address_p", "Target": "vax", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1372, "Length": 163, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64TargetLowering", "::", "isLegalAddImmediate", "(", "int64_t", "Immed", ")", "const", "{", "if", "(", "Immed", "==", "std", "::", "numeric_limits", "<", "int64_t", ">", "::", "min", "(", ")", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Illegal add imm \"", "<<", "Immed", "<<", "\": avoid UB for INT64_MIN\\n\"", ")", ";", "return", "false", ";", "}", "Immed", "=", "std", "::", "abs", "(", "Immed", ")", ";", "bool", "IsLegal", "=", "(", "(", "Immed", ">>", "12", ")", "==", "0", "||", "(", "(", "Immed", "&", "0xfff", ")", "==", "0", "&&", "Immed", ">>", "24", "==", "0", ")", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Is \"", "<<", "Immed", "<<", "\" legal add imm: \"", "<<", "(", "IsLegal", "?", "\"yes\"", ":", "\"no\"", ")", "<<", "\"\\n\"", ")", ";", "return", "IsLegal", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "specified", "immediate", "is", "legal", "add", "immediate", ",", "that", "is", "the", "target", "has", "add", "instructions", "which", "can", "add", "a", "register", "and", "the", "immediate", "without", "having", "to", "materialize", "the", "immediate", "into", "a", "register", "."], "TS_V_token": ["AArch64", "AArch64", "\"Illegal add imm \"", "\": avoid UB for INT64_MIN\\n\"", "12", "0", "0xfff", "0", "24", "0", "\"Is \"", "\" legal add imm: \"", "\"yes\"", "\"no\"", "\"\\n\""], "File": "AArch64ISelLowering106", "Func": "isLegalAddImmediate", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1373, "Length": 108, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "mips_output_ascii", "(", "FILE", "*", "stream", ",", "const", "char", "*", "string", ",", "size_t", "len", ")", "{", "size_t", "i", ";", "int", "cur_pos", ";", "cur_pos", "=", "17", ";", "fprintf", "(", "stream", ",", "\"\\t.ascii\\t\\\"\"", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "len", ";", "i", "++", ")", "{", "int", "c", ";", "c", "=", "(", "unsigned", "char", ")", "string", "[", "i", "]", ";", "if", "(", "ISPRINT", "(", "c", ")", ")", "{", "if", "(", "c", "==", "'\\\\'", "||", "c", "==", "'\\\"'", ")", "{", "putc", "(", "'\\\\'", ",", "stream", ")", ";", "cur_pos", "++", ";", "}", "putc", "(", "c", ",", "stream", ")", ";", "cur_pos", "++", ";", "}", "else", "{", "fprintf", "(", "stream", ",", "\"\\\\%03o\"", ",", "c", ")", ";", "cur_pos", "+=", "4", ";", "}", "if", "(", "cur_pos", ">", "72", "&&", "i", "+", "1", "<", "len", ")", "{", "cur_pos", "=", "17", ";", "fprintf", "(", "stream", ",", "\"\\\"\\n\\t.ascii\\t\\\"\"", ")", ";", "}", "}", "fprintf", "(", "stream", ",", "\"\\\"\\n\"", ")", ";", "}", ""], "natrual_language": ["Output", "an", "ASCII", "string", ",", "in", "a", "space-saving", "way", ".", "PREFIX", "is", "the", "string", "that", "should", "be", "written", "before", "the", "opening", "quote", ",", "such", "as", "``", "\\t.ascii\\t", "''", "for", "real", "string", "data", "or", "``", "\\t", "#", "``", "for", "a", "comment", "."], "TS_V_token": ["mips", "17", "\"\\t.ascii\\t\\\"\"", "0", "\"\\\\%03o\"", "4", "72", "1", "17", "\"\\\"\\n\\t.ascii\\t\\\"\"", "\"\\\"\\n\""], "File": "mips", "Func": "mips_output_ascii", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1374, "Length": 152, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Thumb1RegisterInfo", "::", "saveScavengerRegister", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "MachineBasicBlock", "::", "iterator", "&", "UseMI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "unsigned", "Reg", ")", "const", "{", "DebugLoc", "DL", "=", "DebugLoc", "::", "getUnknownLoc", "(", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "TII", ".", "get", "(", "ARM", "::", "tMOVtgpr2gpr", ")", ")", ".", "addReg", "(", "ARM", "::", "R12", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Kill", ")", ";", "bool", "done", "=", "false", ";", "for", "(", "MachineBasicBlock", "::", "iterator", "II", "=", "I", ";", "!", "done", "&&", "II", "!=", "UseMI", ";", "++", "II", ")", "{", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "II", "->", "getNumOperands", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "const", "MachineOperand", "&", "MO", "=", "II", "->", "getOperand", "(", "i", ")", ";", "if", "(", "!", "MO", ".", "isReg", "(", ")", "||", "MO", ".", "isUndef", "(", ")", "||", "!", "MO", ".", "getReg", "(", ")", "||", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "MO", ".", "getReg", "(", ")", ")", ")", "continue", ";", "if", "(", "MO", ".", "getReg", "(", ")", "==", "ARM", "::", "R12", ")", "{", "UseMI", "=", "II", ";", "done", "=", "true", ";", "break", ";", "}", "}", "}", "BuildMI", "(", "MBB", ",", "UseMI", ",", "DL", ",", "TII", ".", "get", "(", "ARM", "::", "tMOVgpr2tgpr", ")", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "ARM", "::", "R12", ",", "RegState", "::", "Kill", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Spill", "the", "register", "so", "it", "can", "be", "used", "by", "the", "register", "scavenger", "."], "TS_V_token": ["ARM", "ARM::tMOVtgpr2gpr", "ARM::R12", "0", "ARM::R12", "ARM::tMOVgpr2tgpr", "ARM::R12"], "File": "Thumb1RegisterInfo16", "Func": "saveScavengerRegister", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1375, "Length": 240, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZTargetLowering", "::", "mayBeEmittedAsTailCall", "(", "CallInst", "*", "CI", ")", "const", "{", "return", "CI", "->", "isTailCall", "(", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "may", "be", "able", "emit", "the", "call", "instruction", "as", "a", "tail", "call", "."], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZISelLowering (2)1", "Func": "mayBeEmittedAsTailCall", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1376, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsFastISel", "::", "fastEmitInst_rr", "(", "unsigned", "MachineInstOpcode", ",", "const", "TargetRegisterClass", "*", "RC", ",", "unsigned", "Op0", ",", "bool", "Op0IsKill", ",", "unsigned", "Op1", ",", "bool", "Op1IsKill", ")", "{", "if", "(", "MachineInstOpcode", "==", "Mips", "::", "MUL", ")", "{", "unsigned", "ResultReg", "=", "createResultReg", "(", "RC", ")", ";", "const", "MCInstrDesc", "&", "II", "=", "TII", ".", "get", "(", "MachineInstOpcode", ")", ";", "Op0", "=", "constrainOperandRegClass", "(", "II", ",", "Op0", ",", "II", ".", "getNumDefs", "(", ")", ")", ";", "Op1", "=", "constrainOperandRegClass", "(", "II", ",", "Op1", ",", "II", ".", "getNumDefs", "(", ")", "+", "1", ")", ";", "BuildMI", "(", "*", "FuncInfo", ".", "MBB", ",", "FuncInfo", ".", "InsertPt", ",", "DbgLoc", ",", "II", ",", "ResultReg", ")", ".", "addReg", "(", "Op0", ",", "getKillRegState", "(", "Op0IsKill", ")", ")", ".", "addReg", "(", "Op1", ",", "getKillRegState", "(", "Op1IsKill", ")", ")", ".", "addReg", "(", "Mips", "::", "HI0", ",", "RegState", "::", "ImplicitDefine", "|", "RegState", "::", "Dead", ")", ".", "addReg", "(", "Mips", "::", "LO0", ",", "RegState", "::", "ImplicitDefine", "|", "RegState", "::", "Dead", ")", ";", "return", "ResultReg", ";", "}", "return", "FastISel", "::", "fastEmitInst_rr", "(", "MachineInstOpcode", ",", "RC", ",", "Op0", ",", "Op0IsKill", ",", "Op1", ",", "Op1IsKill", ")", ";", "}", ""], "natrual_language": ["Emit", "a", "MachineInstr", "with", "two", "register", "operands", "and", "a", "result", "register", "in", "the", "given", "register", "class", "."], "TS_V_token": ["Mips", "Mips", "Mips::MUL", "1", "Mips::HI0", "Mips::LO0"], "File": "MipsFastISel", "Func": "fastEmitInst_rr", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1377, "Length": 178, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCRegisterInfo", "::", "requiresRegisterScavenging", "(", "const", "MachineFunction", "&", ")", "const", "{", "return", "(", "(", "!", "DisablePPC32RS", "&&", "!", "Subtarget", ".", "isPPC64", "(", ")", ")", "||", "(", "!", "DisablePPC64RS", "&&", "Subtarget", ".", "isPPC64", "(", ")", ")", ")", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "requires", "(", "and", "can", "make", "use", "of", ")", "the", "register", "scavenger", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "PPC", "PPC"], "File": "PPCRegisterInfo14", "Func": "requiresRegisterScavenging", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1378, "Length": 38, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "ix86_function_arg", "(", "cumulative_args_t", "cum_v", ",", "const", "function_arg_info", "&", "arg", ")", "{", "CUMULATIVE_ARGS", "*", "cum", "=", "get_cumulative_args", "(", "cum_v", ")", ";", "machine_mode", "mode", "=", "arg", ".", "mode", ";", "HOST_WIDE_INT", "bytes", ",", "words", ";", "rtx", "reg", ";", "if", "(", "!", "cum", "->", "caller", "&&", "cfun", "->", "machine", "->", "func_type", "!=", "TYPE_NORMAL", ")", "{", "gcc_assert", "(", "arg", ".", "type", "!=", "NULL_TREE", ")", ";", "if", "(", "POINTER_TYPE_P", "(", "arg", ".", "type", ")", ")", "{", "gcc_assert", "(", "TYPE_MODE", "(", "arg", ".", "type", ")", "==", "Pmode", ")", ";", "reg", "=", "plus_constant", "(", "Pmode", ",", "arg_pointer_rtx", ",", "-", "UNITS_PER_WORD", ")", ";", "}", "else", "{", "gcc_assert", "(", "cfun", "->", "machine", "->", "func_type", "==", "TYPE_EXCEPTION", "&&", "TREE_CODE", "(", "arg", ".", "type", ")", "==", "INTEGER_TYPE", "&&", "TYPE_MODE", "(", "arg", ".", "type", ")", "==", "word_mode", ")", ";", "reg", "=", "gen_rtx_MEM", "(", "word_mode", ",", "plus_constant", "(", "Pmode", ",", "arg_pointer_rtx", ",", "-", "2", "*", "UNITS_PER_WORD", ")", ")", ";", "}", "return", "reg", ";", "}", "bytes", "=", "arg", ".", "promoted_size_in_bytes", "(", ")", ";", "words", "=", "CEIL", "(", "bytes", ",", "UNITS_PER_WORD", ")", ";", "if", "(", "arg", ".", "type", "&&", "TREE_CODE", "(", "arg", ".", "type", ")", "==", "VECTOR_TYPE", ")", "mode", "=", "type_natural_mode", "(", "arg", ".", "type", ",", "cum", ",", "false", ")", ";", "if", "(", "TARGET_64BIT", ")", "{", "enum", "calling_abi", "call_abi", "=", "cum", "?", "cum", "->", "call_abi", ":", "ix86_abi", ";", "if", "(", "call_abi", "==", "MS_ABI", ")", "reg", "=", "function_arg_ms_64", "(", "cum", ",", "mode", ",", "arg", ".", "mode", ",", "arg", ".", "named", ",", "arg", ".", "type", ",", "bytes", ")", ";", "else", "reg", "=", "function_arg_64", "(", "cum", ",", "mode", ",", "arg", ".", "mode", ",", "arg", ".", "type", ",", "arg", ".", "named", ")", ";", "}", "else", "reg", "=", "function_arg_32", "(", "cum", ",", "mode", ",", "arg", ".", "mode", ",", "arg", ".", "type", ",", "bytes", ",", "words", ")", ";", "if", "(", "reg", "==", "NULL_RTX", "&&", "cum", "->", "caller", ")", "cfun", "->", "machine", "->", "outgoing_args_on_stack", "=", "true", ";", "return", "reg", ";", "}", ""], "natrual_language": ["Return", "where", "to", "put", "the", "arguments", "to", "a", "function", ".", "Return", "zero", "to", "push", "the", "argument", "on", "the", "stack", ",", "or", "a", "hard", "register", "in", "which", "to", "store", "the", "argument", ".", "MODE", "is", "the", "argument", "'s", "machine", "mode", ".", "TYPE", "is", "the", "data", "type", "of", "the", "argument", ".", "It", "is", "null", "for", "libcalls", "where", "that", "information", "may", "not", "be", "available", ".", "CUM", "gives", "information", "about", "the", "preceding", "args", "and", "about", "the", "function", "being", "called", ".", "NAMED", "is", "nonzero", "if", "this", "argument", "is", "a", "named", "parameter", "(", "otherwise", "it", "is", "an", "extra", "parameter", "matching", "an", "ellipsis", ")", "."], "TS_V_token": ["i386", "2"], "File": "i386", "Func": "ix86_function_arg", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1379, "Length": 310, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "enum", "rtx_code", "ix86_fp_compare_code_to_integer", "(", "enum", "rtx_code", "code", ")", "{", "switch", "(", "code", ")", "{", "case", "GT", ":", "return", "GTU", ";", "case", "GE", ":", "return", "GEU", ";", "case", "ORDERED", ":", "case", "UNORDERED", ":", "return", "code", ";", "case", "UNEQ", ":", "return", "EQ", ";", "case", "UNLT", ":", "return", "LTU", ";", "case", "UNLE", ":", "return", "LEU", ";", "case", "LTGT", ":", "return", "NE", ";", "default", ":", "return", "UNKNOWN", ";", "}", "}", ""], "natrual_language": ["Convert", "comparison", "codes", "we", "use", "to", "represent", "FP", "comparison", "to", "integer", "code", "that", "will", "result", "in", "proper", "branch", ".", "Return", "UNKNOWN", "if", "no", "such", "code", "is", "available", "."], "TS_V_token": ["i386"], "File": "i386", "Func": "ix86_fp_compare_code_to_integer", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1380, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "i386_pe_seh_end_prologue", "(", "FILE", "*", "f", ")", "{", "if", "(", "!", "TARGET_SEH", ")", "return", ";", "if", "(", "cfun", "->", "is_thunk", ")", "return", ";", "cfun", "->", "machine", "->", "seh", "->", "after_prologue", "=", "true", ";", "fputs", "(", "\"\\t.seh_endprologue\\n\"", ",", "f", ")", ";", "}", ""], "natrual_language": ["Emit", "an", "assembler", "directive", "for", "the", "end", "of", "the", "prologue", "."], "TS_V_token": ["i386", "\"\\t.seh_endprologue\\n\""], "File": "winnt", "Func": "i386_pe_seh_end_prologue", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1381, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "AArch64TargetLowering", "::", "BuildSDIVPow2", "(", "SDNode", "*", "N", ",", "const", "APInt", "&", "Divisor", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDNode", "*", ">", "&", "Created", ")", "const", "{", "AttributeList", "Attr", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getFunction", "(", ")", ".", "getAttributes", "(", ")", ";", "if", "(", "isIntDivCheap", "(", "N", "->", "getValueType", "(", "0", ")", ",", "Attr", ")", ")", "return", "SDValue", "(", "N", ",", "0", ")", ";", "EVT", "VT", "=", "N", "->", "getValueType", "(", "0", ")", ";", "if", "(", "(", "VT", "!=", "MVT", "::", "i32", "&&", "VT", "!=", "MVT", "::", "i64", ")", "||", "!", "(", "Divisor", ".", "isPowerOf2", "(", ")", "||", "Divisor", ".", "isNegatedPowerOf2", "(", ")", ")", ")", "return", "SDValue", "(", ")", ";", "SDLoc", "DL", "(", "N", ")", ";", "SDValue", "N0", "=", "N", "->", "getOperand", "(", "0", ")", ";", "unsigned", "Lg2", "=", "Divisor", ".", "countTrailingZeros", "(", ")", ";", "SDValue", "Zero", "=", "DAG", ".", "getConstant", "(", "0", ",", "DL", ",", "VT", ")", ";", "SDValue", "Pow2MinusOne", "=", "DAG", ".", "getConstant", "(", "(", "1ULL", "<<", "Lg2", ")", "-", "1", ",", "DL", ",", "VT", ")", ";", "SDValue", "CCVal", ";", "SDValue", "Cmp", "=", "getAArch64Cmp", "(", "N0", ",", "Zero", ",", "ISD", "::", "SETLT", ",", "CCVal", ",", "DAG", ",", "DL", ")", ";", "SDValue", "Add", "=", "DAG", ".", "getNode", "(", "ISD", "::", "ADD", ",", "DL", ",", "VT", ",", "N0", ",", "Pow2MinusOne", ")", ";", "SDValue", "CSel", "=", "DAG", ".", "getNode", "(", "AArch64ISD", "::", "CSEL", ",", "DL", ",", "VT", ",", "Add", ",", "N0", ",", "CCVal", ",", "Cmp", ")", ";", "Created", ".", "push_back", "(", "Cmp", ".", "getNode", "(", ")", ")", ";", "Created", ".", "push_back", "(", "Add", ".", "getNode", "(", ")", ")", ";", "Created", ".", "push_back", "(", "CSel", ".", "getNode", "(", ")", ")", ";", "SDValue", "SRA", "=", "DAG", ".", "getNode", "(", "ISD", "::", "SRA", ",", "DL", ",", "VT", ",", "CSel", ",", "DAG", ".", "getConstant", "(", "Lg2", ",", "DL", ",", "MVT", "::", "i64", ")", ")", ";", "if", "(", "Divisor", ".", "isNonNegative", "(", ")", ")", "return", "SRA", ";", "Created", ".", "push_back", "(", "SRA", ".", "getNode", "(", ")", ")", ";", "return", "DAG", ".", "getNode", "(", "ISD", "::", "SUB", ",", "DL", ",", "VT", ",", "DAG", ".", "getConstant", "(", "0", ",", "DL", ",", "VT", ")", ",", "SRA", ")", ";", "}", ""], "natrual_language": ["Targets", "may", "override", "this", "function", "to", "provide", "custom", "SDIV", "lowering", "for", "power-of-2", "denominators", "."], "TS_V_token": ["AArch64", "AArch64", "0", "0", "0", "MVT::i32", "MVT::i64", "0", "0", "1ULL", "1", "AArch64", "ISD::SETLT", "ISD::ADD", "AArch64ISD::CSEL", "ISD::SRA", "MVT::i64", "ISD::SUB", "0"], "File": "AArch64ISelLowering2", "Func": "BuildSDIVPow2", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1382, "Length": 353, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isFMAFasterThanFMulAndFAdd", "(", "EVT", "VT", ")", "const", "override", "{", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "an", "FMA", "operation", "is", "faster", "than", "a", "pair", "of", "fmul", "and", "fadd", "instructions", "."], "TS_V_token": ["ARM"], "File": "ARMISelLowering (2)1", "Func": "isFMAFasterThanFMulAndFAdd", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1383, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "std", "::", "unique_ptr", "<", "MipsOperand", ">", "CreateReg", "(", "unsigned", "Index", ",", "StringRef", "Str", ",", "RegKind", "RegKind", ",", "const", "MCRegisterInfo", "*", "RegInfo", ",", "SMLoc", "S", ",", "SMLoc", "E", ",", "MipsAsmParser", "&", "Parser", ")", "{", "auto", "Op", "=", "make_unique", "<", "MipsOperand", ">", "(", "k_RegisterIndex", ",", "Parser", ")", ";", "Op", "->", "RegIdx", ".", "Index", "=", "Index", ";", "Op", "->", "RegIdx", ".", "RegInfo", "=", "RegInfo", ";", "Op", "->", "RegIdx", ".", "Kind", "=", "RegKind", ";", "Op", "->", "RegIdx", ".", "Tok", ".", "Data", "=", "Str", ".", "data", "(", ")", ";", "Op", "->", "RegIdx", ".", "Tok", ".", "Length", "=", "Str", ".", "size", "(", ")", ";", "Op", "->", "StartLoc", "=", "S", ";", "Op", "->", "EndLoc", "=", "E", ";", "return", "Op", ";", "}", ""], "natrual_language": ["CreateReg", "-", "Allocate", "a", "single", "virtual", "register", "for", "the", "given", "type", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips"], "File": "MipsAsmParser37", "Func": "CreateReg", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1384, "Length": 115, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMTargetLowering", "::", "getPostIndexedAddressParts", "(", "SDNode", "*", "N", ",", "SDNode", "*", "Op", ",", "SDValue", "&", "Base", ",", "SDValue", "&", "Offset", ",", "ISD", "::", "MemIndexedMode", "&", "AM", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "EVT", "VT", ";", "SDValue", "Ptr", ";", "bool", "isSEXTLoad", "=", "false", ",", "isNonExt", ";", "if", "(", "LoadSDNode", "*", "LD", "=", "dyn_cast", "<", "LoadSDNode", ">", "(", "N", ")", ")", "{", "VT", "=", "LD", "->", "getMemoryVT", "(", ")", ";", "Ptr", "=", "LD", "->", "getBasePtr", "(", ")", ";", "isSEXTLoad", "=", "LD", "->", "getExtensionType", "(", ")", "==", "ISD", "::", "SEXTLOAD", ";", "isNonExt", "=", "LD", "->", "getExtensionType", "(", ")", "==", "ISD", "::", "NON_EXTLOAD", ";", "}", "else", "if", "(", "StoreSDNode", "*", "ST", "=", "dyn_cast", "<", "StoreSDNode", ">", "(", "N", ")", ")", "{", "VT", "=", "ST", "->", "getMemoryVT", "(", ")", ";", "Ptr", "=", "ST", "->", "getBasePtr", "(", ")", ";", "isNonExt", "=", "!", "ST", "->", "isTruncatingStore", "(", ")", ";", "}", "else", "return", "false", ";", "if", "(", "Subtarget", "->", "isThumb1Only", "(", ")", ")", "{", "assert", "(", "Op", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i32", "&&", "\"Non-i32 post-inc op?!\"", ")", ";", "if", "(", "Op", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "ADD", "||", "!", "isNonExt", ")", "return", "false", ";", "auto", "*", "RHS", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", "->", "getOperand", "(", "1", ")", ")", ";", "if", "(", "!", "RHS", "||", "RHS", "->", "getZExtValue", "(", ")", "!=", "4", ")", "return", "false", ";", "Offset", "=", "Op", "->", "getOperand", "(", "1", ")", ";", "Base", "=", "Op", "->", "getOperand", "(", "0", ")", ";", "AM", "=", "ISD", "::", "POST_INC", ";", "return", "true", ";", "}", "bool", "isInc", ";", "bool", "isLegal", "=", "false", ";", "if", "(", "Subtarget", "->", "isThumb2", "(", ")", ")", "isLegal", "=", "getT2IndexedAddressParts", "(", "Op", ",", "VT", ",", "isSEXTLoad", ",", "Base", ",", "Offset", ",", "isInc", ",", "DAG", ")", ";", "else", "isLegal", "=", "getARMIndexedAddressParts", "(", "Op", ",", "VT", ",", "isSEXTLoad", ",", "Base", ",", "Offset", ",", "isInc", ",", "DAG", ")", ";", "if", "(", "!", "isLegal", ")", "return", "false", ";", "if", "(", "Ptr", "!=", "Base", ")", "{", "if", "(", "Ptr", "==", "Offset", "&&", "Op", "->", "getOpcode", "(", ")", "==", "ISD", "::", "ADD", "&&", "!", "Subtarget", "->", "isThumb2", "(", ")", ")", "std", "::", "swap", "(", "Base", ",", "Offset", ")", ";", "if", "(", "Ptr", "!=", "Base", ")", "return", "false", ";", "}", "AM", "=", "isInc", "?", "ISD", "::", "POST_INC", ":", "ISD", "::", "POST_DEC", ";", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "by", "value", ",", "base", "pointer", "and", "offset", "pointer", "and", "addressing", "mode", "by", "reference", "if", "this", "node", "can", "be", "combined", "with", "a", "load", "/", "store", "to", "form", "a", "post-indexed", "load", "/", "store", "."], "TS_V_token": ["ARM", "ARM", "ISD::MemIndexedMode", "ISD::SEXTLOAD", "ISD::NON_EXTLOAD", "0", "MVT::i32", "\"Non-i32 post-inc op?!\"", "ISD::ADD", "1", "4", "1", "0", "ISD::POST_INC", "ARM", "ISD::ADD", "ISD::POST_INC", "ISD::POST_DEC"], "File": "ARMISelLowering (3)", "Func": "getPostIndexedAddressParts", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1385, "Length": 380, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCSubtarget", "::", "isGVIndirectSymbol", "(", "const", "GlobalValue", "*", "GV", ")", "const", "{", "if", "(", "TM", ".", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Large", ")", "return", "true", ";", "if", "(", "TM", ".", "shouldAssumeDSOLocal", "(", "*", "GV", "->", "getParent", "(", ")", ",", "GV", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["True", "if", "the", "GV", "will", "be", "accessed", "via", "an", "indirect", "symbol", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCSubtarget10", "Func": "isGVIndirectSymbol", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1386, "Length": 50, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64PreLegalizerCombiner", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "MF", ".", "getProperties", "(", ")", ".", "hasProperty", "(", "MachineFunctionProperties", "::", "Property", "::", "FailedISel", ")", ")", "return", "false", ";", "auto", "*", "TPC", "=", "&", "getAnalysis", "<", "TargetPassConfig", ">", "(", ")", ";", "const", "Function", "&", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "bool", "EnableOpt", "=", "MF", ".", "getTarget", "(", ")", ".", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "!", "skipFunction", "(", "F", ")", ";", "AArch64PreLegalizerCombinerInfo", "PCInfo", "(", "EnableOpt", ",", "F", ".", "hasOptSize", "(", ")", ",", "F", ".", "hasMinSize", "(", ")", ")", ";", "Combiner", "C", "(", "PCInfo", ",", "TPC", ")", ";", "return", "C", ".", "combineMachineInstrs", "(", "MF", ",", "nullptr", ")", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64"], "File": "AArch64PreLegalizerCombiner25", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1387, "Length": 113, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "sparc_expand_vector_init", "(", "rtx", "target", ",", "rtx", "vals", ")", "{", "const", "machine_mode", "mode", "=", "GET_MODE", "(", "target", ")", ";", "const", "machine_mode", "inner_mode", "=", "GET_MODE_INNER", "(", "mode", ")", ";", "const", "int", "n_elts", "=", "GET_MODE_NUNITS", "(", "mode", ")", ";", "int", "i", ",", "n_var", "=", "0", ";", "bool", "all_same", ";", "rtx", "mem", ";", "all_same", "=", "true", ";", "for", "(", "i", "=", "0", ";", "i", "<", "n_elts", ";", "i", "++", ")", "{", "rtx", "x", "=", "XVECEXP", "(", "vals", ",", "0", ",", "i", ")", ";", "if", "(", "!", "CONSTANT_P", "(", "x", ")", ")", "n_var", "++", ";", "if", "(", "i", ">", "0", "&&", "!", "rtx_equal_p", "(", "x", ",", "XVECEXP", "(", "vals", ",", "0", ",", "0", ")", ")", ")", "all_same", "=", "false", ";", "}", "if", "(", "n_var", "==", "0", ")", "{", "emit_move_insn", "(", "target", ",", "gen_rtx_CONST_VECTOR", "(", "mode", ",", "XVEC", "(", "vals", ",", "0", ")", ")", ")", ";", "return", ";", "}", "if", "(", "GET_MODE_SIZE", "(", "inner_mode", ")", "==", "GET_MODE_SIZE", "(", "mode", ")", ")", "{", "if", "(", "GET_MODE_SIZE", "(", "inner_mode", ")", "==", "4", ")", "{", "emit_move_insn", "(", "gen_lowpart", "(", "SImode", ",", "target", ")", ",", "gen_lowpart", "(", "SImode", ",", "XVECEXP", "(", "vals", ",", "0", ",", "0", ")", ")", ")", ";", "return", ";", "}", "else", "if", "(", "GET_MODE_SIZE", "(", "inner_mode", ")", "==", "8", ")", "{", "emit_move_insn", "(", "gen_lowpart", "(", "DImode", ",", "target", ")", ",", "gen_lowpart", "(", "DImode", ",", "XVECEXP", "(", "vals", ",", "0", ",", "0", ")", ")", ")", ";", "return", ";", "}", "}", "else", "if", "(", "GET_MODE_SIZE", "(", "inner_mode", ")", "==", "GET_MODE_SIZE", "(", "word_mode", ")", "&&", "GET_MODE_SIZE", "(", "mode", ")", "==", "2", "*", "GET_MODE_SIZE", "(", "word_mode", ")", ")", "{", "emit_move_insn", "(", "gen_highpart", "(", "word_mode", ",", "target", ")", ",", "gen_lowpart", "(", "word_mode", ",", "XVECEXP", "(", "vals", ",", "0", ",", "0", ")", ")", ")", ";", "emit_move_insn", "(", "gen_lowpart", "(", "word_mode", ",", "target", ")", ",", "gen_lowpart", "(", "word_mode", ",", "XVECEXP", "(", "vals", ",", "0", ",", "1", ")", ")", ")", ";", "return", ";", "}", "if", "(", "all_same", "&&", "GET_MODE_SIZE", "(", "mode", ")", "==", "8", ")", "{", "if", "(", "TARGET_VIS2", ")", "{", "vector_init_bshuffle", "(", "target", ",", "XVECEXP", "(", "vals", ",", "0", ",", "0", ")", ",", "mode", ",", "inner_mode", ")", ";", "return", ";", "}", "if", "(", "mode", "==", "V8QImode", ")", "{", "vector_init_fpmerge", "(", "target", ",", "XVECEXP", "(", "vals", ",", "0", ",", "0", ")", ")", ";", "return", ";", "}", "if", "(", "mode", "==", "V4HImode", ")", "{", "vector_init_faligndata", "(", "target", ",", "XVECEXP", "(", "vals", ",", "0", ",", "0", ")", ")", ";", "return", ";", "}", "}", "mem", "=", "assign_stack_temp", "(", "mode", ",", "GET_MODE_SIZE", "(", "mode", ")", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "n_elts", ";", "i", "++", ")", "emit_move_insn", "(", "adjust_address_nv", "(", "mem", ",", "inner_mode", ",", "i", "*", "GET_MODE_SIZE", "(", "inner_mode", ")", ")", ",", "XVECEXP", "(", "vals", ",", "0", ",", "i", ")", ")", ";", "emit_move_insn", "(", "target", ",", "mem", ")", ";", "}", ""], "natrual_language": ["Emit", "code", "to", "initialize", "TARGET", "to", "values", "for", "individual", "fields", "VALS", "."], "TS_V_token": ["sparc", "0", "0", "0", "0", "0", "0", "0", "0", "4", "0", "0", "8", "0", "0", "2", "0", "0", "0", "1", "8", "0", "0", "0", "0", "0", "0", "0", "0"], "File": "sparc4", "Func": "sparc_expand_vector_init", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1388, "Length": 456, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "EmitInstruction", "(", "MCStreamer", "&", "Out", ",", "const", "MCInst", "&", "Inst", ")", "{", "Out", ".", "EmitInstruction", "(", "Inst", ",", "STI", ")", ";", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["X86"], "File": "X86AsmInstrumentation10", "Func": "EmitInstruction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1389, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ARMCC", "::", "CondCodes", "getPredicate", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "int", "PIdx", "=", "MI", ".", "findFirstPredOperandIdx", "(", ")", ";", "return", "PIdx", "!=", "-", "1", "?", "(", "ARMCC", "::", "CondCodes", ")", "MI", ".", "getOperand", "(", "PIdx", ")", ".", "getImm", "(", ")", ":", "ARMCC", "::", "AL", ";", "}", ""], "natrual_language": ["Returns", "the", "comparison", "predicate", "underlying", "the", "intrinsic", "."], "TS_V_token": ["ARM", "ARMCC::CondCodes", "1", "ARMCC::CondCodes", "ARMCC::AL"], "File": "ARMBaseInstrInfo (2)2", "Func": "getPredicate", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1390, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsTargetLowering", "::", "HandleByVal", "(", "CCState", "*", "State", ",", "unsigned", "&", "Size", ",", "unsigned", "Align", ")", "const", "{", "const", "TargetFrameLowering", "*", "TFL", "=", "Subtarget", ".", "getFrameLowering", "(", ")", ";", "assert", "(", "Size", "&&", "\"Byval argument's size shouldn't be 0.\"", ")", ";", "Align", "=", "std", "::", "min", "(", "Align", ",", "TFL", "->", "getStackAlignment", "(", ")", ")", ";", "unsigned", "FirstReg", "=", "0", ";", "unsigned", "NumRegs", "=", "0", ";", "if", "(", "State", "->", "getCallingConv", "(", ")", "!=", "CallingConv", "::", "Fast", ")", "{", "unsigned", "RegSizeInBytes", "=", "Subtarget", ".", "getGPRSizeInBytes", "(", ")", ";", "ArrayRef", "<", "MCPhysReg", ">", "IntArgRegs", "=", "ABI", ".", "GetByValArgRegs", "(", ")", ";", "const", "MCPhysReg", "*", "ShadowRegs", "=", "ABI", ".", "IsO32", "(", ")", "?", "IntArgRegs", ".", "data", "(", ")", ":", "Mips64DPRegs", ";", "assert", "(", "!", "(", "Align", "%", "RegSizeInBytes", ")", "&&", "\"Byval argument's alignment should be a multiple of\"", "\"RegSizeInBytes.\"", ")", ";", "FirstReg", "=", "State", "->", "getFirstUnallocated", "(", "IntArgRegs", ")", ";", "if", "(", "(", "Align", ">", "RegSizeInBytes", ")", "&&", "(", "FirstReg", "%", "2", ")", ")", "{", "State", "->", "AllocateReg", "(", "IntArgRegs", "[", "FirstReg", "]", ",", "ShadowRegs", "[", "FirstReg", "]", ")", ";", "++", "FirstReg", ";", "}", "Size", "=", "alignTo", "(", "Size", ",", "RegSizeInBytes", ")", ";", "for", "(", "unsigned", "I", "=", "FirstReg", ";", "Size", ">", "0", "&&", "(", "I", "<", "IntArgRegs", ".", "size", "(", ")", ")", ";", "Size", "-=", "RegSizeInBytes", ",", "++", "I", ",", "++", "NumRegs", ")", "State", "->", "AllocateReg", "(", "IntArgRegs", "[", "I", "]", ",", "ShadowRegs", "[", "I", "]", ")", ";", "}", "State", "->", "addInRegsParamInfo", "(", "FirstReg", ",", "FirstReg", "+", "NumRegs", ")", ";", "}", ""], "natrual_language": ["Target-specific", "cleanup", "for", "formal", "ByVal", "parameters", "."], "TS_V_token": ["Mips", "Mips", "\"Byval argument's size shouldn't be 0.\"", "0", "0", "Mips", "\"Byval argument's alignment should be a multiple of\"", "\"RegSizeInBytes.\"", "2", "0"], "File": "MipsISelLowering (2)4", "Func": "HandleByVal", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1391, "Length": 238, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "register_svprfop", "(", ")", "{", "auto_vec", "<", "string_int_pair", ",", "16", ">", "values", ";", "values", ".", "quick_push", "(", "string_int_pair", "(", "\"SV_\"", "#", "UPPER", ",", "VALUE", ")", ")", ";", "AARCH64_FOR_SVPRFOP", "(", "PUSH", ")", "acle_svprfop", "=", "lang_hooks", ".", "types", ".", "simulate_enum_decl", "(", "input_location", ",", "\"svprfop\"", ",", "&", "values", ")", ";", "}", ""], "natrual_language": ["Register", "the", "svprfop", "enum", "."], "TS_V_token": ["aarch64", "16", "\"SV_\"", "\"svprfop\""], "File": "aarch64-sve-builtins2", "Func": "register_svprfop", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1392, "Length": 49, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "HOST_WIDE_INT", "nds32_constant_alignment", "(", "const_tree", "constant", ",", "HOST_WIDE_INT", "basic_align", ")", "{", "if", "(", "(", "(", "TREE_CODE", "(", "constant", ")", "==", "STRING_CST", "||", "TREE_CODE", "(", "constant", ")", "==", "CONSTRUCTOR", "||", "TREE_CODE", "(", "constant", ")", "==", "UNION_TYPE", "||", "TREE_CODE", "(", "constant", ")", "==", "RECORD_TYPE", "||", "TREE_CODE", "(", "constant", ")", "==", "ARRAY_TYPE", ")", "&&", "basic_align", "<", "BITS_PER_WORD", ")", ")", "return", "BITS_PER_WORD", ";", "else", "return", "basic_align", ";", "}", ""], "natrual_language": ["Return", "alignment", "for", "constant", "value", "."], "TS_V_token": ["nds32"], "File": "nds32", "Func": "nds32_constant_alignment", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1393, "Length": 64, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "aarch64_offset_temporaries", "(", "bool", "add_p", ",", "poly_int64", "offset", ")", "{", "if", "(", "add_p", "&&", "aarch64_sve_addvl_addpl_immediate_p", "(", "offset", ")", ")", "return", "0", ";", "unsigned", "int", "count", "=", "0", ";", "HOST_WIDE_INT", "factor", "=", "offset", ".", "coeffs", "[", "1", "]", ";", "HOST_WIDE_INT", "constant", "=", "offset", ".", "coeffs", "[", "0", "]", "-", "factor", ";", "poly_int64", "poly_offset", "(", "factor", ",", "factor", ")", ";", "if", "(", "add_p", "&&", "aarch64_sve_addvl_addpl_immediate_p", "(", "poly_offset", ")", ")", "count", "+=", "1", ";", "else", "if", "(", "factor", "!=", "0", ")", "{", "factor", "=", "abs", "(", "factor", ")", ";", "if", "(", "factor", ">", "16", "*", "(", "factor", "&", "-", "factor", ")", ")", "return", "2", ";", "count", "+=", "1", ";", "}", "return", "count", "+", "aarch64_add_offset_1_temporaries", "(", "constant", ")", ";", "}", ""], "natrual_language": ["Return", "the", "number", "of", "temporary", "registers", "that", "aarch64_add_offset", "would", "need", "to", "move", "OFFSET", "into", "a", "register", "or", "add", "OFFSET", "to", "a", "register", ";", "ADD_P", "is", "true", "if", "we", "want", "the", "latter", "rather", "than", "the", "former", "."], "TS_V_token": ["aarch64", "0", "0", "1", "0", "1", "0", "16", "2", "1"], "File": "aarch64", "Func": "aarch64_offset_temporaries", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1394, "Length": 118, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Value", "*", "X86TargetLowering", "::", "getIRStackGuard", "(", "IRBuilder", "<", ">", "&", "IRB", ")", "const", "{", "if", "(", "!", "Subtarget", ".", "isTargetGlibc", "(", ")", ")", "return", "TargetLowering", "::", "getIRStackGuard", "(", "IRB", ")", ";", "unsigned", "Offset", "=", "(", "Subtarget", ".", "is64Bit", "(", ")", ")", "?", "0x28", ":", "0x14", ";", "unsigned", "AddressSpace", "=", "getAddressSpace", "(", ")", ";", "return", "ConstantExpr", "::", "getIntToPtr", "(", "ConstantInt", "::", "get", "(", "Type", "::", "getInt32Ty", "(", "IRB", ".", "getContext", "(", ")", ")", ",", "Offset", ")", ",", "Type", "::", "getInt8PtrTy", "(", "IRB", ".", "getContext", "(", ")", ")", "->", "getPointerTo", "(", "AddressSpace", ")", ")", ";", "}", ""], "natrual_language": ["If", "the", "target", "has", "a", "standard", "location", "for", "the", "stack", "protector", "cookie", ",", "returns", "the", "address", "of", "that", "location", "."], "TS_V_token": ["X86", "X86", "0x28", "0x14"], "File": "X86ISelLowering (3)", "Func": "getIRStackGuard", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1395, "Length": 94, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ArrayRef", "<", "std", "::", "pair", "<", "unsigned", ",", "const", "char", "*", ">>", "MipsInstrInfo", "::", "getSerializableDirectMachineOperandTargetFlags", "(", ")", "const", "{", "using", "namespace", "MipsII", ";", "static", "const", "std", "::", "pair", "<", "unsigned", ",", "const", "char", "*", ">", "Flags", "[", "]", "=", "{", "{", "MO_GOT", ",", "\"mips-got\"", "}", ",", "{", "MO_GOT_CALL", ",", "\"mips-got-call\"", "}", ",", "{", "MO_GPREL", ",", "\"mips-gprel\"", "}", ",", "{", "MO_ABS_HI", ",", "\"mips-abs-hi\"", "}", ",", "{", "MO_ABS_LO", ",", "\"mips-abs-lo\"", "}", ",", "{", "MO_TLSGD", ",", "\"mips-tlsgd\"", "}", ",", "{", "MO_TLSLDM", ",", "\"mips-tlsldm\"", "}", ",", "{", "MO_DTPREL_HI", ",", "\"mips-dtprel-hi\"", "}", ",", "{", "MO_DTPREL_LO", ",", "\"mips-dtprel-lo\"", "}", ",", "{", "MO_GOTTPREL", ",", "\"mips-gottprel\"", "}", ",", "{", "MO_TPREL_HI", ",", "\"mips-tprel-hi\"", "}", ",", "{", "MO_TPREL_LO", ",", "\"mips-tprel-lo\"", "}", ",", "{", "MO_GPOFF_HI", ",", "\"mips-gpoff-hi\"", "}", ",", "{", "MO_GPOFF_LO", ",", "\"mips-gpoff-lo\"", "}", ",", "{", "MO_GOT_DISP", ",", "\"mips-got-disp\"", "}", ",", "{", "MO_GOT_PAGE", ",", "\"mips-got-page\"", "}", ",", "{", "MO_GOT_OFST", ",", "\"mips-got-ofst\"", "}", ",", "{", "MO_HIGHER", ",", "\"mips-higher\"", "}", ",", "{", "MO_HIGHEST", ",", "\"mips-highest\"", "}", ",", "{", "MO_GOT_HI16", ",", "\"mips-got-hi16\"", "}", ",", "{", "MO_GOT_LO16", ",", "\"mips-got-lo16\"", "}", ",", "{", "MO_CALL_HI16", ",", "\"mips-call-hi16\"", "}", ",", "{", "MO_CALL_LO16", ",", "\"mips-call-lo16\"", "}", ",", "{", "MO_JALR", ",", "\"mips-jalr\"", "}", ",", "{", "MO_PCREL_LO", ",", "\"mips-pcrel-lo16\"", "}", ",", "{", "MO_PCREL_HI", ",", "\"mips-pcrel-hi16\"", "}", ",", "{", "MO_CAPTAB11", ",", "\"mips-captable11\"", "}", ",", "{", "MO_CAPTAB_CALL11", ",", "\"mips-captable11-call\"", "}", ",", "{", "MO_CAPTAB20", ",", "\"mips-captable20\"", "}", ",", "{", "MO_CAPTAB_CALL20", ",", "\"mips-captable20-call\"", "}", ",", "{", "MO_CAPTAB_LO16", ",", "\"mips-captable-lo16\"", "}", ",", "{", "MO_CAPTAB_HI16", ",", "\"mips-captable-hi16\"", "}", ",", "{", "MO_CAPTAB_CALL_LO16", ",", "\"mips-captable-lo16-call\"", "}", ",", "{", "MO_CAPTAB_CALL_HI16", ",", "\"mips-captable-hi16-call\"", "}", ",", "{", "MO_CAPTABLE_OFF_HI", ",", "\"mips-captable-off-hi\"", "}", ",", "{", "MO_CAPTABLE_OFF_LO", ",", "\"mips-captable-off-lo\"", "}", ",", "{", "MO_CAPTAB_TLSGD_HI16", ",", "\"mips-captable-tlsgd-hi16\"", "}", ",", "{", "MO_CAPTAB_TLSGD_LO16", ",", "\"mips-captable-tlsgd-lo16\"", "}", ",", "{", "MO_CAPTAB_TLSLDM_HI16", ",", "\"mips-captable-tlsldm-hi16\"", "}", ",", "{", "MO_CAPTAB_TLSLDM_LO16", ",", "\"mips-captable-tlsldm-lo16\"", "}", ",", "{", "MO_CAPTAB_TPREL_HI16", ",", "\"mips-captable-gottprel-hi16\"", "}", ",", "{", "MO_CAPTAB_TPREL_LO16", ",", "\"mips-captable-gottprel-lo16\"", "}", ",", "}", ";", "return", "makeArrayRef", "(", "Flags", ")", ";", "}", ""], "natrual_language": ["Return", "an", "array", "that", "contains", "the", "direct", "target", "flag", "values", "and", "their", "names", "."], "TS_V_token": ["Mips", "Mips", "Mips", "\"mips-got\"", "\"mips-got-call\"", "\"mips-gprel\"", "\"mips-abs-hi\"", "\"mips-abs-lo\"", "\"mips-tlsgd\"", "\"mips-tlsldm\"", "\"mips-dtprel-hi\"", "\"mips-dtprel-lo\"", "\"mips-gottprel\"", "\"mips-tprel-hi\"", "\"mips-tprel-lo\"", "\"mips-gpoff-hi\"", "\"mips-gpoff-lo\"", "\"mips-got-disp\"", "\"mips-got-page\"", "\"mips-got-ofst\"", "\"mips-higher\"", "\"mips-highest\"", "\"mips-got-hi16\"", "\"mips-got-lo16\"", "\"mips-call-hi16\"", "\"mips-call-lo16\"", "\"mips-jalr\"", "\"mips-pcrel-lo16\"", "\"mips-pcrel-hi16\"", "\"mips-captable11\"", "\"mips-captable11-call\"", "\"mips-captable20\"", "\"mips-captable20-call\"", "\"mips-captable-lo16\"", "\"mips-captable-hi16\"", "\"mips-captable-lo16-call\"", "\"mips-captable-hi16-call\"", "\"mips-captable-off-hi\"", "\"mips-captable-off-lo\"", "\"mips-captable-tlsgd-hi16\"", "\"mips-captable-tlsgd-lo16\"", "\"mips-captable-tlsldm-hi16\"", "\"mips-captable-tlsldm-lo16\"", "\"mips-captable-gottprel-hi16\"", "\"mips-captable-gottprel-lo16\""], "File": "MipsInstrInfo36", "Func": "getSerializableDirectMachineOperandTargetFlags", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1396, "Length": 301, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_vectorize_vec_perm_const", "(", "machine_mode", "vmode", ",", "rtx", "target", ",", "rtx", "op0", ",", "rtx", "op1", ",", "const", "vec_perm_indices", "&", "sel", ")", "{", "bool", "testing_p", "=", "!", "target", ";", "if", "(", "TARGET_ALTIVEC", "&&", "testing_p", ")", "return", "true", ";", "if", "(", "(", "vmode", "==", "V2SFmode", "&&", "TARGET_PAIRED_FLOAT", ")", "||", "(", "vmode", "==", "V2SImode", "&&", "TARGET_SPE", ")", "||", "(", "(", "vmode", "==", "V2DFmode", "||", "vmode", "==", "V2DImode", ")", "&&", "VECTOR_MEM_VSX_P", "(", "vmode", ")", ")", ")", "{", "if", "(", "testing_p", ")", "{", "op0", "=", "gen_raw_REG", "(", "vmode", ",", "LAST_VIRTUAL_REGISTER", "+", "1", ")", ";", "op1", "=", "gen_raw_REG", "(", "vmode", ",", "LAST_VIRTUAL_REGISTER", "+", "2", ")", ";", "}", "if", "(", "rs6000_expand_vec_perm_const_1", "(", "target", ",", "op0", ",", "op1", ",", "sel", "[", "0", "]", ",", "sel", "[", "1", "]", ")", ")", "return", "true", ";", "}", "if", "(", "TARGET_ALTIVEC", ")", "{", "if", "(", "vmode", "!=", "V16QImode", ")", "return", "false", ";", "if", "(", "altivec_expand_vec_perm_const", "(", "target", ",", "op0", ",", "op1", ",", "sel", ")", ")", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Implement", "TARGET_VECTORIZE_VEC_PERM_CONST", "."], "TS_V_token": ["powerpcspe", "1", "2", "0", "1"], "File": "powerpcspe", "Func": "rs6000_vectorize_vec_perm_const", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1397, "Length": 161, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "is_cracked_insn", "(", "rtx_insn", "*", "insn", ")", "{", "if", "(", "!", "insn", "||", "!", "NONDEBUG_INSN_P", "(", "insn", ")", "||", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "==", "USE", "||", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "==", "CLOBBER", ")", "return", "false", ";", "if", "(", "rs6000_sched_groups", "&&", "(", "rs6000_tune", "==", "PROCESSOR_POWER4", "||", "rs6000_tune", "==", "PROCESSOR_POWER5", ")", ")", "{", "enum", "attr_type", "type", "=", "get_attr_type", "(", "insn", ")", ";", "if", "(", "(", "type", "==", "TYPE_LOAD", "&&", "get_attr_sign_extend", "(", "insn", ")", "==", "SIGN_EXTEND_YES", "&&", "get_attr_update", "(", "insn", ")", "==", "UPDATE_NO", ")", "||", "(", "type", "==", "TYPE_LOAD", "&&", "get_attr_sign_extend", "(", "insn", ")", "==", "SIGN_EXTEND_NO", "&&", "get_attr_update", "(", "insn", ")", "==", "UPDATE_YES", "&&", "get_attr_indexed", "(", "insn", ")", "==", "INDEXED_NO", ")", "||", "(", "type", "==", "TYPE_STORE", "&&", "get_attr_update", "(", "insn", ")", "==", "UPDATE_YES", "&&", "get_attr_indexed", "(", "insn", ")", "==", "INDEXED_NO", ")", "||", "(", "(", "type", "==", "TYPE_FPLOAD", "||", "type", "==", "TYPE_FPSTORE", ")", "&&", "get_attr_update", "(", "insn", ")", "==", "UPDATE_YES", ")", "||", "(", "type", "==", "TYPE_CR_LOGICAL", "&&", "get_attr_cr_logical_3op", "(", "insn", ")", "==", "CR_LOGICAL_3OP_YES", ")", "||", "(", "type", "==", "TYPE_EXTS", "&&", "get_attr_dot", "(", "insn", ")", "==", "DOT_YES", ")", "||", "(", "type", "==", "TYPE_SHIFT", "&&", "get_attr_dot", "(", "insn", ")", "==", "DOT_YES", "&&", "get_attr_var_shift", "(", "insn", ")", "==", "VAR_SHIFT_NO", ")", "||", "(", "type", "==", "TYPE_MUL", "&&", "get_attr_dot", "(", "insn", ")", "==", "DOT_YES", ")", "||", "type", "==", "TYPE_DIV", "||", "(", "type", "==", "TYPE_INSERT", "&&", "get_attr_size", "(", "insn", ")", "==", "SIZE_32", ")", ")", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["The", "function", "returns", "true", "if", "INSN", "is", "cracked", "into", "2", "instructions", "by", "the", "processor", "(", "and", "therefore", "occupies", "2", "issue", "slots", ")", "."], "TS_V_token": ["rs6000"], "File": "rs6000", "Func": "is_cracked_insn", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1398, "Length": 239, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "legitimate_pic_operand_p", "(", "rtx", "x", ")", "{", "if", "(", "pic_address_needs_scratch", "(", "x", ")", ")", "return", "false", ";", "if", "(", "SPARC_SYMBOL_REF_TLS_P", "(", "x", ")", "||", "(", "GET_CODE", "(", "x", ")", "==", "CONST", "&&", "GET_CODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", "==", "PLUS", "&&", "SPARC_SYMBOL_REF_TLS_P", "(", "XEXP", "(", "XEXP", "(", "x", ",", "0", ")", ",", "0", ")", ")", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "OP", "is", "a", "legitimate", "general", "operand", "when", "generating", "PIC", "code", ".", "It", "is", "given", "that", "flag_pic", "is", "on", "and", "that", "OP", "satisfies", "CONSTANT_P", "or", "is", "a", "CONST_DOUBLE", "."], "TS_V_token": ["sparc", "0", "0", "0"], "File": "sparc3", "Func": "legitimate_pic_operand_p", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1399, "Length": 67, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "bool", "isConditionalBranch", "(", "const", "MCInst", "&", "Inst", ")", "const", "{", "if", "(", "Inst", ".", "getOpcode", "(", ")", "==", "AArch64", "::", "Bcc", "&&", "Inst", ".", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", "==", "A64CC", "::", "AL", ")", "return", "false", ";", "return", "MCInstrAnalysis", "::", "isConditionalBranch", "(", "Inst", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "this", "is", "a", "branch", "which", "may", "fall", "through", "to", "the", "next", "instruction", "or", "may", "transfer", "control", "flow", "to", "some", "other", "block", "."], "TS_V_token": ["AArch64", "AArch64::Bcc", "0", "A64CC::AL"], "File": "AArch64MCTargetDesc1", "Func": "isConditionalBranch", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1400, "Length": 50, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "unsigned", "slice", "(", "uint32_t", "Bits", ",", "unsigned", "From", ",", "unsigned", "To", ")", "{", "assert", "(", "From", "<", "32", "&&", "To", "<", "32", "&&", "From", ">=", "To", ")", ";", "return", "(", "Bits", ">>", "To", ")", "&", "(", "(", "1", "<<", "(", "From", "-", "To", "+", "1", ")", ")", "-", "1", ")", ";", "}", ""], "natrual_language": ["Return", "a", "reference", "to", "the", "substring", "from", "[", "Start", ",", "End", ")", "."], "TS_V_token": ["ARM", "32", "32", "1", "1", "1"], "File": "ARMDisassemblerCore", "Func": "slice", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1401, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "X86TTIImpl", "::", "getScalarizationOverhead", "(", "Type", "*", "Ty", ",", "bool", "Insert", ",", "bool", "Extract", ")", "{", "assert", "(", "Ty", "->", "isVectorTy", "(", ")", "&&", "\"Can only scalarize vectors\"", ")", ";", "int", "Cost", "=", "0", ";", "for", "(", "int", "i", "=", "0", ",", "e", "=", "Ty", "->", "getVectorNumElements", "(", ")", ";", "i", "<", "e", ";", "++", "i", ")", "{", "if", "(", "Insert", ")", "Cost", "+=", "getVectorInstrCost", "(", "Instruction", "::", "InsertElement", ",", "Ty", ",", "i", ")", ";", "if", "(", "Extract", ")", "Cost", "+=", "getVectorInstrCost", "(", "Instruction", "::", "ExtractElement", ",", "Ty", ",", "i", ")", ";", "}", "return", "Cost", ";", "}", ""], "natrual_language": ["Estimate", "the", "overhead", "of", "scalarizing", "an", "instruction", "."], "TS_V_token": ["X86", "X86", "\"Can only scalarize vectors\"", "0", "0"], "File": "X86TargetTransformInfo (3)", "Func": "getScalarizationOverhead", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1402, "Length": 94, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "convert_registers", "(", ")", "{", "}", ""], "natrual_language": ["Generate", "copies", "from", "defs", "used", "by", "the", "chain", "but", "not", "defined", "therein", ".", "Also", "populates", "defs_map", "which", "is", "used", "later", "by", "convert_insn", "."], "TS_V_token": ["i386"], "File": "i386-features", "Func": "convert_registers", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1403, "Length": 6, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCIncomingValueHandler", "::", "assignValueToReg", "(", "Register", "ValVReg", ",", "Register", "PhysReg", ",", "CCValAssign", "&", "VA", ")", "{", "markPhysRegUsed", "(", "PhysReg", ")", ";", "IncomingValueHandler", "::", "assignValueToReg", "(", "ValVReg", ",", "PhysReg", ",", "VA", ")", ";", "}", ""], "natrual_language": ["The", "specified", "value", "has", "been", "assigned", "to", "a", "physical", "register", ",", "handle", "the", "appropriate", "COPY", "(", "either", "to", "or", "from", ")", "and", "mark", "any", "relevant", "uses/defines", "as", "needed", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCCallLowering3", "Func": "assignValueToReg", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1404, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "mips_can_use_return_insn", "(", "void", ")", "{", "tree", "return_type", ";", "if", "(", "!", "reload_completed", ")", "return", "0", ";", "if", "(", "regs_ever_live", "[", "31", "]", "||", "current_function_profile", ")", "return", "0", ";", "return_type", "=", "DECL_RESULT", "(", "current_function_decl", ")", ";", "if", "(", "TARGET_MIPS16", "&&", "mips16_hard_float", "&&", "!", "aggregate_value_p", "(", "return_type", ",", "current_function_decl", ")", "&&", "GET_MODE_CLASS", "(", "DECL_MODE", "(", "return_type", ")", ")", "==", "MODE_FLOAT", "&&", "GET_MODE_SIZE", "(", "DECL_MODE", "(", "return_type", ")", ")", "<=", "UNITS_PER_FPVALUE", ")", "return", "0", ";", "if", "(", "cfun", "->", "machine", "->", "frame", ".", "initialized", ")", "return", "cfun", "->", "machine", "->", "frame", ".", "total_size", "==", "0", ";", "return", "compute_frame_size", "(", "get_frame_size", "(", ")", ")", "==", "0", ";", "}", ""], "natrual_language": ["Return", "nonzero", "if", "this", "function", "is", "known", "to", "have", "a", "null", "epilogue", ".", "This", "allows", "the", "optimizer", "to", "omit", "jumps", "to", "jumps", "if", "no", "stack", "was", "created", "."], "TS_V_token": ["mips", "0", "31", "0", "0", "0", "0"], "File": "mips3", "Func": "mips_can_use_return_insn", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1405, "Length": 105, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "aarch64_init_pauth_hint_builtins", "(", "void", ")", "{", "tree", "ftype_pointer_auth", "=", "build_function_type_list", "(", "ptr_type_node", ",", "ptr_type_node", ",", "unsigned_intDI_type_node", ",", "NULL_TREE", ")", ";", "tree", "ftype_pointer_strip", "=", "build_function_type_list", "(", "ptr_type_node", ",", "ptr_type_node", ",", "NULL_TREE", ")", ";", "aarch64_builtin_decls", "[", "AARCH64_PAUTH_BUILTIN_AUTIA1716", "]", "=", "add_builtin_function", "(", "\"__builtin_aarch64_autia1716\"", ",", "ftype_pointer_auth", ",", "AARCH64_PAUTH_BUILTIN_AUTIA1716", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";", "aarch64_builtin_decls", "[", "AARCH64_PAUTH_BUILTIN_PACIA1716", "]", "=", "add_builtin_function", "(", "\"__builtin_aarch64_pacia1716\"", ",", "ftype_pointer_auth", ",", "AARCH64_PAUTH_BUILTIN_PACIA1716", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";", "aarch64_builtin_decls", "[", "AARCH64_PAUTH_BUILTIN_XPACLRI", "]", "=", "add_builtin_function", "(", "\"__builtin_aarch64_xpaclri\"", ",", "ftype_pointer_strip", ",", "AARCH64_PAUTH_BUILTIN_XPACLRI", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";", "}", ""], "natrual_language": ["Pointer", "authentication", "builtins", "that", "will", "become", "NOP", "on", "legacy", "platform", ".", "Currently", ",", "these", "builtins", "are", "for", "internal", "use", "only", "(", "libgcc", "EH", "unwinder", ")", "."], "TS_V_token": ["aarch64", "\"__builtin_aarch64_autia1716\"", "\"__builtin_aarch64_pacia1716\"", "\"__builtin_aarch64_xpaclri\""], "File": "aarch64-builtins4", "Func": "aarch64_init_pauth_hint_builtins", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1406, "Length": 93, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_test_fpu_data", "(", "void", ")", "{", "auto_sbitmap", "isa_all_fpubits_internal", "(", "isa_num_bits", ")", ";", "auto_sbitmap", "fpubits", "(", "isa_num_bits", ")", ";", "auto_sbitmap", "tmpset", "(", "isa_num_bits", ")", ";", "static", "const", "enum", "isa_feature", "fpu_bitlist_internal", "[", "]", "=", "{", "ISA_ALL_FPU_INTERNAL", ",", "isa_nobit", "}", ";", "arm_initialize_isa", "(", "isa_all_fpubits_internal", ",", "fpu_bitlist_internal", ")", ";", "for", "(", "unsigned", "int", "i", "=", "0", ";", "i", "<", "TARGET_FPU_auto", ";", "i", "++", ")", "{", "arm_initialize_isa", "(", "fpubits", ",", "all_fpus", "[", "i", "]", ".", "isa_bits", ")", ";", "bitmap_and_compl", "(", "tmpset", ",", "isa_all_fpubits_internal", ",", "fpubits", ")", ";", "bitmap_clear", "(", "isa_all_fpubits_internal", ")", ";", "bitmap_copy", "(", "isa_all_fpubits_internal", ",", "tmpset", ")", ";", "}", "if", "(", "!", "bitmap_empty_p", "(", "isa_all_fpubits_internal", ")", ")", "{", "fprintf", "(", "stderr", ",", "\"Error: found feature bits in the ALL_FPU_INTERAL\"", "\" group that are not defined by any FPU.\\n\"", "\" Check your arm-cpus.in.\\n\"", ")", ";", "ASSERT_TRUE", "(", "bitmap_empty_p", "(", "isa_all_fpubits_internal", ")", ")", ";", "}", "}", ""], "natrual_language": ["Scan", "the", "static", "data", "tables", "generated", "by", "parsecpu.awk", "looking", "for", "potential", "issues", "with", "the", "data", ".", "Here", "we", "check", "for", "consistency", "between", "the", "fpu", "bits", ",", "in", "particular", "we", "check", "that", "ISA_ALL_FPU_INTERNAL", "does", "not", "contain", "a", "feature", "bit", "that", "is", "not", "defined", "by", "any", "FPU", "flag", "."], "TS_V_token": ["arm", "0", "\"Error: found feature bits in the ALL_FPU_INTERAL\"", "\" group that are not defined by any FPU.\\n\"", "\" Check your arm-cpus.in.\\n\""], "File": "arm", "Func": "arm_test_fpu_data", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1407, "Length": 124, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "void", "initializePass", "(", ")", "{", "pushTTIStack", "(", "this", ")", ";", "}", ""], "natrual_language": ["initializePass", "-", "This", "method", "may", "be", "overriden", "by", "immutable", "passes", "to", "allow", "them", "to", "perform", "various", "initialization", "actions", "they", "require", "."], "TS_V_token": ["ARM"], "File": "ARMTargetTransformInfo", "Func": "initializePass", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1408, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCOperand", "SystemZMCInstLower", "::", "lowerOperand", "(", "const", "MachineOperand", "&", "MO", ")", "const", "{", "switch", "(", "MO", ".", "getType", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"unknown operand type\"", ")", ";", "case", "MachineOperand", "::", "MO_Register", ":", "return", "MCOperand", "::", "CreateReg", "(", "MO", ".", "getReg", "(", ")", ")", ";", "case", "MachineOperand", "::", "MO_Immediate", ":", "return", "MCOperand", "::", "CreateImm", "(", "MO", ".", "getImm", "(", ")", ")", ";", "case", "MachineOperand", "::", "MO_MachineBasicBlock", ":", "return", "lowerSymbolOperand", "(", "MO", ",", "MO", ".", "getMBB", "(", ")", "->", "getSymbol", "(", ")", ",", "0", ")", ";", "case", "MachineOperand", "::", "MO_GlobalAddress", ":", "return", "lowerSymbolOperand", "(", "MO", ",", "Mang", "->", "getSymbol", "(", "MO", ".", "getGlobal", "(", ")", ")", ",", "MO", ".", "getOffset", "(", ")", ")", ";", "case", "MachineOperand", "::", "MO_ExternalSymbol", ":", "{", "StringRef", "Name", "=", "MO", ".", "getSymbolName", "(", ")", ";", "return", "lowerSymbolOperand", "(", "MO", ",", "AsmPrinter", ".", "GetExternalSymbolSymbol", "(", "Name", ")", ",", "MO", ".", "getOffset", "(", ")", ")", ";", "}", "case", "MachineOperand", "::", "MO_JumpTableIndex", ":", "return", "lowerSymbolOperand", "(", "MO", ",", "AsmPrinter", ".", "GetJTISymbol", "(", "MO", ".", "getIndex", "(", ")", ")", ",", "0", ")", ";", "case", "MachineOperand", "::", "MO_ConstantPoolIndex", ":", "return", "lowerSymbolOperand", "(", "MO", ",", "AsmPrinter", ".", "GetCPISymbol", "(", "MO", ".", "getIndex", "(", ")", ")", ",", "MO", ".", "getOffset", "(", ")", ")", ";", "case", "MachineOperand", "::", "MO_BlockAddress", ":", "{", "const", "BlockAddress", "*", "BA", "=", "MO", ".", "getBlockAddress", "(", ")", ";", "return", "lowerSymbolOperand", "(", "MO", ",", "AsmPrinter", ".", "GetBlockAddressSymbol", "(", "BA", ")", ",", "MO", ".", "getOffset", "(", ")", ")", ";", "}", "}", "}", ""], "natrual_language": ["Wrapper", "for", "MCInstLowering.lowerOperand", "(", ")", "for", "the", "tblgen'erated", "pseudo", "lowering", "."], "TS_V_token": ["SystemZ", "SystemZ", "\"unknown operand type\"", "0", "0"], "File": "SystemZMCInstLower3", "Func": "lowerOperand", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1409, "Length": 239, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "F2003fInstrInfo", "::", "removeBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "int", "*", "BytesRemoved", ")", "const", "{", "assert", "(", "!", "BytesRemoved", "&&", "\"code size not handled\"", ")", ";", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "end", "(", ")", ";", "unsigned", "Count", "=", "0", ";", "while", "(", "I", "!=", "MBB", ".", "begin", "(", ")", ")", "{", "--", "I", ";", "if", "(", "I", "->", "isDebugValue", "(", ")", ")", "continue", ";", "if", "(", "!", "I", "->", "isBranch", "(", ")", ")", "break", ";", "I", "->", "eraseFromParent", "(", ")", ";", "I", "=", "MBB", ".", "end", "(", ")", ";", "++", "Count", ";", "}", "return", "Count", ";", "}", ""], "natrual_language": ["Remove", "the", "branching", "code", "at", "the", "end", "of", "the", "specific", "MBB", "."], "TS_V_token": ["F2003f", "F2003f", "\"code size not handled\"", "0"], "File": "F2003fInstrInfo", "Func": "removeBranch", "Target": "F2003f", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1410, "Length": 96, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "LanaiTargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "SDLoc", "DL", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "RetCC_Lanai32", ")", ";", "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", ")", ")", ";", "}", "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": ["Lanai", "Lanai", "ISD::InputArg", "16", "Lanai", "0", "1", "2", "0"], "File": "LanaiISelLowering21", "Func": "LowerCallResult", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1411, "Length": 166, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getStackAddress", "(", "uint64_t", "Size", ",", "int64_t", "Offset", ",", "MachinePointerInfo", "&", "MPO", ")", "override", "{", "assert", "(", "Size", "==", "4", "&&", "\"Unsupported size\"", ")", ";", "auto", "&", "MFI", "=", "MIRBuilder", ".", "getMF", "(", ")", ".", "getFrameInfo", "(", ")", ";", "int", "FI", "=", "MFI", ".", "CreateFixedObject", "(", "Size", ",", "Offset", ",", "true", ")", ";", "MPO", "=", "MachinePointerInfo", "::", "getFixedStack", "(", "MIRBuilder", ".", "getMF", "(", ")", ",", "FI", ")", ";", "unsigned", "AddrReg", "=", "MRI", ".", "createGenericVirtualRegister", "(", "LLT", "::", "pointer", "(", "MPO", ".", "getAddrSpace", "(", ")", ",", "32", ")", ")", ";", "MIRBuilder", ".", "buildFrameIndex", "(", "AddrReg", ",", "FI", ")", ";", "return", "AddrReg", ";", "}", ""], "natrual_language": ["Materialize", "a", "VReg", "containing", "the", "address", "of", "the", "specified", "stack-based", "object", "."], "TS_V_token": ["ARM", "4", "\"Unsupported size\"", "32"], "File": "ARMCallLowering12", "Func": "getStackAddress", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1412, "Length": 101, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_legitimate_address_p", "(", "machine_mode", "mode", ",", "rtx", "x", ",", "bool", "reg_ok_strict", ")", "{", "bool", "reg_offset_p", "=", "reg_offset_addressing_ok_p", "(", "mode", ")", ";", "bool", "quad_offset_p", "=", "mode_supports_dq_form", "(", "mode", ")", ";", "if", "(", "VECTOR_MEM_ALTIVEC_P", "(", "mode", ")", "&&", "GET_CODE", "(", "x", ")", "==", "AND", "&&", "CONST_INT_P", "(", "XEXP", "(", "x", ",", "1", ")", ")", "&&", "INTVAL", "(", "XEXP", "(", "x", ",", "1", ")", ")", "==", "-", "16", ")", "x", "=", "XEXP", "(", "x", ",", "0", ")", ";", "if", "(", "TARGET_ELF", "&&", "RS6000_SYMBOL_REF_TLS_P", "(", "x", ")", ")", "return", "0", ";", "if", "(", "legitimate_indirect_address_p", "(", "x", ",", "reg_ok_strict", ")", ")", "return", "1", ";", "if", "(", "TARGET_UPDATE", "&&", "(", "GET_CODE", "(", "x", ")", "==", "PRE_INC", "||", "GET_CODE", "(", "x", ")", "==", "PRE_DEC", ")", "&&", "mode_supports_pre_incdec_p", "(", "mode", ")", "&&", "legitimate_indirect_address_p", "(", "XEXP", "(", "x", ",", "0", ")", ",", "reg_ok_strict", ")", ")", "return", "1", ";", "if", "(", "quad_offset_p", ")", "{", "if", "(", "quad_address_p", "(", "x", ",", "mode", ",", "reg_ok_strict", ")", ")", "return", "1", ";", "}", "else", "if", "(", "virtual_stack_registers_memory_p", "(", "x", ")", ")", "return", "1", ";", "else", "if", "(", "reg_offset_p", ")", "{", "if", "(", "legitimate_small_data_p", "(", "mode", ",", "x", ")", ")", "return", "1", ";", "if", "(", "legitimate_constant_pool_address_p", "(", "x", ",", "mode", ",", "reg_ok_strict", "||", "lra_in_progress", ")", ")", "return", "1", ";", "}", "if", "(", "mode", "==", "TImode", "&&", "TARGET_VSX", ")", "return", "0", ";", "if", "(", "!", "reg_ok_strict", "&&", "reg_offset_p", "&&", "GET_CODE", "(", "x", ")", "==", "PLUS", "&&", "REG_P", "(", "XEXP", "(", "x", ",", "0", ")", ")", "&&", "(", "XEXP", "(", "x", ",", "0", ")", "==", "virtual_stack_vars_rtx", "||", "XEXP", "(", "x", ",", "0", ")", "==", "arg_pointer_rtx", ")", "&&", "CONST_INT_P", "(", "XEXP", "(", "x", ",", "1", ")", ")", ")", "return", "1", ";", "if", "(", "rs6000_legitimate_offset_address_p", "(", "mode", ",", "x", ",", "reg_ok_strict", ",", "false", ")", ")", "return", "1", ";", "if", "(", "!", "FLOAT128_2REG_P", "(", "mode", ")", "&&", "(", "TARGET_HARD_FLOAT", "||", "TARGET_POWERPC64", "||", "(", "mode", "!=", "DFmode", "&&", "mode", "!=", "DDmode", ")", ")", "&&", "(", "TARGET_POWERPC64", "||", "mode", "!=", "DImode", ")", "&&", "(", "mode", "!=", "TImode", "||", "VECTOR_MEM_VSX_P", "(", "TImode", ")", ")", "&&", "mode", "!=", "PTImode", "&&", "!", "avoiding_indexed_address_p", "(", "mode", ")", "&&", "legitimate_indexed_address_p", "(", "x", ",", "reg_ok_strict", ")", ")", "return", "1", ";", "if", "(", "TARGET_UPDATE", "&&", "GET_CODE", "(", "x", ")", "==", "PRE_MODIFY", "&&", "mode_supports_pre_modify_p", "(", "mode", ")", "&&", "legitimate_indirect_address_p", "(", "XEXP", "(", "x", ",", "0", ")", ",", "reg_ok_strict", ")", "&&", "(", "rs6000_legitimate_offset_address_p", "(", "mode", ",", "XEXP", "(", "x", ",", "1", ")", ",", "reg_ok_strict", ",", "false", ")", "||", "(", "!", "avoiding_indexed_address_p", "(", "mode", ")", "&&", "legitimate_indexed_address_p", "(", "XEXP", "(", "x", ",", "1", ")", ",", "reg_ok_strict", ")", ")", ")", "&&", "rtx_equal_p", "(", "XEXP", "(", "XEXP", "(", "x", ",", "1", ")", ",", "0", ")", ",", "XEXP", "(", "x", ",", "0", ")", ")", ")", "return", "1", ";", "if", "(", "reg_offset_p", "&&", "!", "quad_offset_p", "&&", "legitimate_lo_sum_address_p", "(", "mode", ",", "x", ",", "reg_ok_strict", ")", ")", "return", "1", ";", "return", "0", ";", "}", ""], "natrual_language": ["TARGET_LEGITIMATE_ADDRESS_P", "recognizes", "an", "RTL", "expression", "that", "is", "a", "valid", "memory", "address", "for", "an", "instruction", ".", "The", "MODE", "argument", "is", "the", "machine", "mode", "for", "the", "MEM", "expression", "that", "wants", "to", "use", "this", "address", ".", "On", "the", "RS/6000", ",", "there", "are", "four", "valid", "address", ":", "a", "SYMBOL_REF", "that", "refers", "to", "a", "constant", "pool", "entry", "of", "an", "address", "(", "or", "the", "sum", "of", "it", "plus", "a", "constant", ")", ",", "a", "short", "(", "16-bit", "signed", ")", "constant", "plus", "a", "register", ",", "the", "sum", "of", "two", "registers", ",", "or", "a", "register", "indirect", ",", "possibly", "with", "an", "auto-increment", ".", "For", "DFmode", ",", "DDmode", "and", "DImode", "with", "a", "constant", "plus", "register", ",", "we", "must", "ensure", "that", "both", "words", "are", "addressable", "or", "PowerPC64", "with", "offset", "word", "aligned", ".", "For", "modes", "spanning", "multiple", "registers", "(", "DFmode", "and", "DDmode", "in", "32-bit", "GPRs", ",", "32-bit", "DImode", ",", "TImode", ",", "TFmode", ",", "TDmode", ")", ",", "indexed", "addressing", "can", "not", "be", "used", "because", "adjacent", "memory", "cells", "are", "accessed", "by", "adding", "word-sized", "offsets", "during", "assembly", "output", "."], "TS_V_token": ["rs6000", "1", "1", "16", "0", "0", "1", "0", "1", "1", "1", "1", "1", "0", "0", "0", "0", "1", "1", "1", "1", "0", "1", "1", "1", "0", "0", "1", "1", "0"], "File": "rs60008", "Func": "rs6000_legitimate_address_p", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1413, "Length": 467, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTargetLowering", "::", "isFPExtFree", "(", "EVT", "VT", ")", "const", "{", "assert", "(", "VT", ".", "isFloatingPoint", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "an", "fpext", "operation", "is", "free", "(", "for", "instance", ",", "because", "single-precision", "floating-point", "numbers", "are", "implicitly", "extended", "to", "double-precision", ")", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCISelLowering (2)2", "Func": "isFPExtFree", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1414, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "DecodeStatus", "CSKYDisassembler", "::", "getInstruction", "(", "MCInst", "&", "MI", ",", "uint64_t", "&", "Size", ",", "ArrayRef", "<", "uint8_t", ">", "Bytes", ",", "uint64_t", "Address", ",", "raw_ostream", "&", "CS", ")", "const", "{", "uint32_t", "Insn", ";", "DecodeStatus", "Result", "=", "MCDisassembler", "::", "Fail", ";", "Insn", "=", "support", "::", "endian", "::", "read16le", "(", "Bytes", ".", "data", "(", ")", ")", ";", "if", "(", "(", "Insn", ">>", "14", ")", "==", "0x3", ")", "{", "if", "(", "Bytes", ".", "size", "(", ")", "<", "4", ")", "{", "Size", "=", "0", ";", "return", "MCDisassembler", "::", "Fail", ";", "}", "Insn", "=", "(", "Insn", "<<", "16", ")", "|", "support", "::", "endian", "::", "read16le", "(", "&", "Bytes", "[", "2", "]", ")", ";", "if", "(", "decodeFPUV3Instruction", "(", "MI", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ")", "Result", "=", "MCDisassembler", "::", "Success", ";", "else", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Trying CSKY 32-bit table :\\n\"", ")", ";", "Result", "=", "decodeInstruction", "(", "DecoderTable32", ",", "MI", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "}", "Size", "=", "4", ";", "}", "else", "{", "if", "(", "Bytes", ".", "size", "(", ")", "<", "2", ")", "{", "Size", "=", "0", ";", "return", "MCDisassembler", "::", "Fail", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Trying CSKY 16-bit table :\\n\"", ")", ";", "Result", "=", "decodeInstruction", "(", "DecoderTable16", ",", "MI", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "Size", "=", "2", ";", "}", "handleCROperand", "(", "MI", ")", ";", "return", "Result", ";", "}", ""], "natrual_language": ["Returns", "the", "disassembly", "of", "a", "single", "instruction", "."], "TS_V_token": ["CSKY", "CSKY", "support::endian", "14", "0x3", "4", "0", "16", "support::endian", "2", "\"Trying CSKY 32-bit table :\\n\"", "4", "2", "0", "\"Trying CSKY 16-bit table :\\n\"", "2"], "File": "CSKYDisassembler", "Func": "getInstruction", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1415, "Length": 224, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "WinEHStatePass", "::", "doFinalization", "(", "Module", "&", "M", ")", "{", "assert", "(", "TheModule", "==", "&", "M", ")", ";", "TheModule", "=", "nullptr", ";", "EHLinkRegistrationTy", "=", "nullptr", ";", "CXXEHRegistrationTy", "=", "nullptr", ";", "SEHRegistrationTy", "=", "nullptr", ";", "return", "false", ";", "}", ""], "natrual_language": ["doFinalization", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "any", "necessary", "clean", "up", "after", "all", "passes", "have", "run", "."], "TS_V_token": ["X86"], "File": "X86WinEHState22", "Func": "doFinalization", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1416, "Length": 38, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "csky_output_mi_thunk", "(", "FILE", "*", "file", ",", "tree", "thunk", "ATTRIBUTE_UNUSED", ",", "HOST_WIDE_INT", "delta", ",", "HOST_WIDE_INT", "vcall_offset", ",", "tree", "function", ")", "{", "const", "char", "*", "fnname", "=", "IDENTIFIER_POINTER", "(", "DECL_ASSEMBLER_NAME", "(", "thunk", ")", ")", ";", "const", "char", "*", "thiz", "=", "\"a0\"", ";", "const", "char", "*", "reg0", "=", "\"t0\"", ";", "const", "char", "*", "reg1", "=", "\"t1\"", ";", "int", "maxoff", "=", "4096", ";", "assemble_start_function", "(", "thunk", ",", "fnname", ")", ";", "final_start_function", "(", "emit_barrier", "(", ")", ",", "file", ",", "1", ")", ";", "rtx", "fnaddr", "=", "XEXP", "(", "DECL_RTL", "(", "function", ")", ",", "0", ")", ";", "if", "(", "CSKY_TARGET_ARCH", "(", "CK801", ")", ")", "{", "reg0", "=", "\"l0\"", ";", "reg1", "=", "\"l1\"", ";", "maxoff", "=", "256", ";", "if", "(", "vcall_offset", ">", "maxoff", "||", "vcall_offset", "<", "-", "maxoff", ")", "fprintf", "(", "file", ",", "\"\\tpush\\tl0, l1\\n\"", ")", ";", "else", "if", "(", "delta", ">", "maxoff", "||", "delta", "<", "-", "maxoff", ")", "fprintf", "(", "file", ",", "\"\\tpush\\tl0\\n\"", ")", ";", "}", "if", "(", "aggregate_value_p", "(", "TREE_TYPE", "(", "TREE_TYPE", "(", "function", ")", ")", ",", "function", ")", ")", "thiz", "=", "\"a1\"", ";", "if", "(", "delta", "!=", "0", ")", "{", "if", "(", "delta", ">", "maxoff", "||", "delta", "<", "-", "maxoff", ")", "{", "fprintf", "(", "file", ",", "\"\\tlrw\\t%s, %ld\\n\"", ",", "reg0", ",", "(", "long", ")", "delta", ")", ";", "fprintf", "(", "file", ",", "\"\\taddu\\t%s, %s, %s\\n\"", ",", "thiz", ",", "thiz", ",", "reg0", ")", ";", "}", "else", "fprintf", "(", "file", ",", "\"\\t%s\\t%s, %s, %ld\\n\"", ",", "(", "delta", ">", "0", "?", "\"addi\"", ":", "\"subi\"", ")", ",", "thiz", ",", "thiz", ",", "(", "long", ")", "(", "delta", ">", "0", "?", "delta", ":", "-", "delta", ")", ")", ";", "}", "if", "(", "vcall_offset", "!=", "0", ")", "{", "fprintf", "(", "file", ",", "\"\\tld.w\\t%s, (%s, 0)\\n\"", ",", "reg0", ",", "thiz", ")", ";", "if", "(", "vcall_offset", ">", "maxoff", "||", "vcall_offset", "<", "-", "maxoff", ")", "{", "fprintf", "(", "file", ",", "\"\\tlrw\\t%s, %ld\\n\"", ",", "reg1", ",", "(", "long", ")", "vcall_offset", ")", ";", "fprintf", "(", "file", ",", "\"\\taddu\\t%s, %s, %s\\n\"", ",", "reg0", ",", "reg0", ",", "reg1", ")", ";", "}", "else", "fprintf", "(", "file", ",", "\"\\t%s\\t%s, %s, %ld\\n\"", ",", "(", "vcall_offset", ">", "0", "?", "\"addi\"", ":", "\"subi\"", ")", ",", "reg0", ",", "reg0", ",", "(", "long", ")", "(", "vcall_offset", ">", "0", "?", "vcall_offset", ":", "-", "vcall_offset", ")", ")", ";", "fprintf", "(", "file", ",", "\"\\tld.w\\t%s, (%s, 0)\\n\"", ",", "reg0", ",", "reg0", ")", ";", "fprintf", "(", "file", ",", "\"\\taddu\\t%s, %s, %s\\n\"", ",", "thiz", ",", "thiz", ",", "reg0", ")", ";", "}", "if", "(", "CSKY_TARGET_ARCH", "(", "CK801", ")", ")", "{", "if", "(", "vcall_offset", ">", "maxoff", "||", "vcall_offset", "<", "-", "maxoff", ")", "{", "fprintf", "(", "file", ",", "\"\\tld.w\\tl0, (sp, 0)\\n\"", ")", ";", "fprintf", "(", "file", ",", "\"\\tld.w\\tl1, (sp, 4)\\n\"", ")", ";", "fprintf", "(", "file", ",", "\"\\taddi\\t sp, sp, 8\\n\"", ")", ";", "}", "else", "if", "(", "delta", ">", "maxoff", "||", "delta", "<", "-", "maxoff", ")", "{", "fprintf", "(", "file", ",", "\"\\tld.w\\tl0, (sp, 0)\\n\"", ")", ";", "fprintf", "(", "file", ",", "\"\\taddi\\tsp, sp, 4\\n\"", ")", ";", "}", "}", "fprintf", "(", "file", ",", "\"\\tjbr\\t\"", ")", ";", "output_addr_const", "(", "file", ",", "fnaddr", ")", ";", "fprintf", "(", "file", ",", "\"\\n\"", ")", ";", "final_end_function", "(", ")", ";", "assemble_end_function", "(", "thunk", ",", "fnname", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_ASM_OUTPUT_MI_THUNK", ".", "Output", "code", "to", "add", "DELTA", "to", "the", "first", "argument", ",", "and", "then", "jump", "to", "FUNCTION", ".", "Used", "for", "C++", "multiple", "inheritance", "."], "TS_V_token": ["csky", "\"a0\"", "\"t0\"", "\"t1\"", "4096", "1", "0", "\"l0\"", "\"l1\"", "256", "\"\\tpush\\tl0, l1\\n\"", "\"\\tpush\\tl0\\n\"", "\"a1\"", "0", "\"\\tlrw\\t%s, %ld\\n\"", "\"\\taddu\\t%s, %s, %s\\n\"", "\"\\t%s\\t%s, %s, %ld\\n\"", "0", "\"addi\"", "\"subi\"", "0", "0", "\"\\tld.w\\t%s, (%s, 0)\\n\"", "\"\\tlrw\\t%s, %ld\\n\"", "\"\\taddu\\t%s, %s, %s\\n\"", "\"\\t%s\\t%s, %s, %ld\\n\"", "0", "\"addi\"", "\"subi\"", "0", "\"\\tld.w\\t%s, (%s, 0)\\n\"", "\"\\taddu\\t%s, %s, %s\\n\"", "\"\\tld.w\\tl0, (sp, 0)\\n\"", "\"\\tld.w\\tl1, (sp, 4)\\n\"", "\"\\taddi\\t sp, sp, 8\\n\"", "\"\\tld.w\\tl0, (sp, 0)\\n\"", "\"\\taddi\\tsp, sp, 4\\n\"", "\"\\tjbr\\t\"", "\"\\n\""], "File": "csky", "Func": "csky_output_mi_thunk", "Target": "csky", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1417, "Length": 476, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsLongBranch", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "F", ")", "{", "const", "MipsInstrInfo", "*", "TII", "=", "static_cast", "<", "const", "MipsInstrInfo", "*", ">", "(", "TM", ".", "getInstrInfo", "(", ")", ")", ";", "if", "(", "TM", ".", "getSubtarget", "<", "MipsSubtarget", ">", "(", ")", ".", "inMips16Mode", "(", ")", ")", "return", "false", ";", "if", "(", "(", "TM", ".", "getRelocationModel", "(", ")", "==", "Reloc", "::", "PIC_", ")", "&&", "TM", ".", "getSubtarget", "<", "MipsSubtarget", ">", "(", ")", ".", "isABI_O32", "(", ")", "&&", "F", ".", "getInfo", "<", "MipsFunctionInfo", ">", "(", ")", "->", "globalBaseRegSet", "(", ")", ")", "emitGPDisp", "(", "F", ",", "TII", ")", ";", "if", "(", "SkipLongBranch", ")", "return", "true", ";", "MF", "=", "&", "F", ";", "initMBBInfo", "(", ")", ";", "SmallVector", "<", "MBBInfo", ",", "16", ">", "::", "iterator", "I", ",", "E", "=", "MBBInfos", ".", "end", "(", ")", ";", "bool", "EverMadeChange", "=", "false", ",", "MadeChange", "=", "true", ";", "while", "(", "MadeChange", ")", "{", "MadeChange", "=", "false", ";", "for", "(", "I", "=", "MBBInfos", ".", "begin", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "if", "(", "!", "I", "->", "Br", "||", "I", "->", "HasLongBranch", ")", "continue", ";", "if", "(", "!", "ForceLongBranch", "&&", "isInt", "<", "16", ">", "(", "computeOffset", "(", "I", "->", "Br", ")", "/", "4", ")", ")", "continue", ";", "I", "->", "HasLongBranch", "=", "true", ";", "I", "->", "Size", "+=", "LongBranchSeqSize", "*", "4", ";", "++", "LongBranches", ";", "EverMadeChange", "=", "MadeChange", "=", "true", ";", "}", "}", "if", "(", "!", "EverMadeChange", ")", "return", "true", ";", "if", "(", "TM", ".", "getRelocationModel", "(", ")", "==", "Reloc", "::", "PIC_", ")", "{", "uint64_t", "Address", "=", "0", ";", "for", "(", "I", "=", "MBBInfos", ".", "begin", "(", ")", ";", "I", "!=", "E", ";", "Address", "+=", "I", "->", "Size", ",", "++", "I", ")", "I", "->", "Address", "=", "Address", ";", "}", "for", "(", "I", "=", "MBBInfos", ".", "begin", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "if", "(", "I", "->", "HasLongBranch", ")", "expandToLongBranch", "(", "*", "I", ")", ";", "MF", "->", "RenumberBlocks", "(", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "16", "16", "4", "4", "0"], "File": "MipsLongBranch1", "Func": "runOnMachineFunction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1418, "Length": 319, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "VETargetLowering", "::", "PerformDAGCombine", "(", "SDNode", "*", "N", ",", "DAGCombinerInfo", "&", "DCI", ")", "const", "{", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "TRUNCATE", ":", "return", "combineTRUNCATE", "(", "N", ",", "DCI", ")", ";", "}", "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": ["VE", "VE", "ISD::TRUNCATE"], "File": "VEISelLowering1", "Func": "PerformDAGCombine", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1419, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "pa_return_in_memory", "(", "tree", "type", ",", "tree", "fntype", "ATTRIBUTE_UNUSED", ")", "{", "return", "(", "int_size_in_bytes", "(", "type", ")", ">", "(", "TARGET_64BIT", "?", "16", ":", "8", ")", "||", "int_size_in_bytes", "(", "type", ")", "<=", "0", ")", ";", "}", ""], "natrual_language": ["Worker", "function", "for", "TARGET_RETURN_IN_MEMORY", "."], "TS_V_token": ["pa", "16", "8", "0"], "File": "pa3", "Func": "pa_return_in_memory", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1420, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "Cpu0Subtarget", "*", "getSubtargetImpl", "(", ")", "const", "{", "return", "&", "DefaultSubtarget", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["Cpu0", "Cpu0"], "File": "Cpu0TargetMachine", "Func": "getSubtargetImpl", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1421, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "long", "arm_current_func_type", "(", ")", "{", "if", "(", "ARM_FUNC_TYPE", "(", "cfun", "->", "machine", "->", "func_type", ")", "==", "ARM_FT_UNKNOWN", ")", "cfun", "->", "machine", "->", "func_type", "=", "arm_compute_func_type", "(", ")", ";", "return", "cfun", "->", "machine", "->", "func_type", ";", "}", ""], "natrual_language": ["Returns", "the", "type", "of", "the", "current", "function", "."], "TS_V_token": ["arm"], "File": "arm2", "Func": "arm_current_func_type", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1422, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDNode", "*", "PPCDAGToDAGISel", "::", "getGlobalBaseReg", "(", ")", "{", "if", "(", "!", "GlobalBaseReg", ")", "{", "const", "TargetInstrInfo", "&", "TII", "=", "*", "TM", ".", "getInstrInfo", "(", ")", ";", "MachineBasicBlock", "&", "FirstMBB", "=", "MF", "->", "front", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "FirstMBB", ".", "begin", "(", ")", ";", "DebugLoc", "dl", "=", "DebugLoc", "::", "getUnknownLoc", "(", ")", ";", "if", "(", "PPCLowering", ".", "getPointerTy", "(", ")", "==", "MVT", "::", "i32", ")", "{", "GlobalBaseReg", "=", "RegInfo", "->", "createVirtualRegister", "(", "PPC", "::", "GPRCRegisterClass", ")", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "MovePCtoLR", ")", ",", "PPC", "::", "LR", ")", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "MFLR", ")", ",", "GlobalBaseReg", ")", ";", "}", "else", "{", "GlobalBaseReg", "=", "RegInfo", "->", "createVirtualRegister", "(", "PPC", "::", "G8RCRegisterClass", ")", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "MovePCtoLR8", ")", ",", "PPC", "::", "LR8", ")", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "MFLR8", ")", ",", "GlobalBaseReg", ")", ";", "}", "}", "return", "CurDAG", "->", "getRegister", "(", "GlobalBaseReg", ",", "PPCLowering", ".", "getPointerTy", "(", ")", ")", ".", "getNode", "(", ")", ";", "}", ""], "natrual_language": ["getGlobalBaseReg", "-", "Return", "a", "virtual", "register", "initialized", "with", "the", "the", "global", "base", "register", "value", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "MVT::i32", "PPC::GPRCRegisterClass", "PPC::MovePCtoLR", "PPC::LR", "PPC::MFLR", "PPC::G8RCRegisterClass", "PPC::MovePCtoLR8", "PPC::LR8", "PPC::MFLR8", "PPC"], "File": "PPCISelDAGToDAG41", "Func": "getGlobalBaseReg", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1423, "Length": 199, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_emit_unop", "(", "rtx", "dest", ",", "optab", "unoptab", ",", "rtx", "op", ")", "{", "rtx", "tmp", "=", "expand_unop", "(", "GET_MODE", "(", "dest", ")", ",", "unoptab", ",", "op", ",", "dest", ",", "0", ")", ";", "if", "(", "dest", "!=", "tmp", ")", "emit_move_insn", "(", "dest", ",", "tmp", ")", ";", "}", ""], "natrual_language": ["Apply", "UNOPTAB", "to", "OP", "and", "store", "the", "result", "in", "DEST", "."], "TS_V_token": ["aarch64", "0"], "File": "aarch64", "Func": "aarch64_emit_unop", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1424, "Length": 47, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "enum", "reg_class", "arm_mode_base_reg_class", "(", "machine_mode", "mode", ")", "{", "if", "(", "TARGET_HAVE_MVE", "&&", "(", "mode", "==", "E_V8QImode", "||", "mode", "==", "E_V4QImode", "||", "mode", "==", "E_V4HImode", ")", ")", "return", "LO_REGS", ";", "return", "MODE_BASE_REG_REG_CLASS", "(", "mode", ")", ";", "}", ""], "natrual_language": ["If", "given", "mode", "matches", ",", "load", "from", "memory", "to", "LO_REGS", ".", "(", "i.e", "[", "Rn", "]", ",", "Rn", "<", "=", "LO_REGS", ")", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "arm_mode_base_reg_class", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1425, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "nds32_long_call_p", "(", "rtx", "symbol", ")", "{", "return", "TARGET_CMODEL_LARGE", ";", "}", ""], "natrual_language": ["Return", "true", "X", "is", "need", "use", "long", "call", "."], "TS_V_token": ["nds32"], "File": "nds32-md-auxiliary5", "Func": "nds32_long_call_p", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1426, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Mips16InstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "const", "DebugLoc", "&", "DL", ",", "unsigned", "DestReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "unsigned", "Opc", "=", "0", ";", "if", "(", "Mips", "::", "CPU16RegsRegClass", ".", "contains", "(", "DestReg", ")", "&&", "Mips", "::", "GPR32RegClass", ".", "contains", "(", "SrcReg", ")", ")", "Opc", "=", "Mips", "::", "MoveR3216", ";", "else", "if", "(", "Mips", "::", "GPR32RegClass", ".", "contains", "(", "DestReg", ")", "&&", "Mips", "::", "CPU16RegsRegClass", ".", "contains", "(", "SrcReg", ")", ")", "Opc", "=", "Mips", "::", "Move32R16", ";", "else", "if", "(", "(", "SrcReg", "==", "Mips", "::", "HI0", ")", "&&", "(", "Mips", "::", "CPU16RegsRegClass", ".", "contains", "(", "DestReg", ")", ")", ")", "Opc", "=", "Mips", "::", "Mfhi16", ",", "SrcReg", "=", "0", ";", "else", "if", "(", "(", "SrcReg", "==", "Mips", "::", "LO0", ")", "&&", "(", "Mips", "::", "CPU16RegsRegClass", ".", "contains", "(", "DestReg", ")", ")", ")", "Opc", "=", "Mips", "::", "Mflo16", ",", "SrcReg", "=", "0", ";", "assert", "(", "Opc", "&&", "\"Cannot copy registers\"", ")", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "Opc", ")", ")", ";", "if", "(", "DestReg", ")", "MIB", ".", "addReg", "(", "DestReg", ",", "RegState", "::", "Define", ")", ";", "if", "(", "SrcReg", ")", "MIB", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "}", ""], "natrual_language": ["}", "Branch", "Analysis", "&", "Modification"], "TS_V_token": ["Mips", "Mips", "0", "Mips::CPU16RegsRegClass", "Mips::GPR32RegClass", "Mips::MoveR3216", "Mips::GPR32RegClass", "Mips::CPU16RegsRegClass", "Mips::Move32R16", "Mips::HI0", "Mips::CPU16RegsRegClass", "Mips::Mfhi16", "0", "Mips::LO0", "Mips::CPU16RegsRegClass", "Mips::Mflo16", "0", "\"Cannot copy registers\""], "File": "Mips16InstrInfo13", "Func": "copyPhysReg", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1427, "Length": 208, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "char", "AArch64Subtarget", "::", "ClassifyGlobalReference", "(", "const", "GlobalValue", "*", "GV", ",", "const", "TargetMachine", "&", "TM", ")", "const", "{", "if", "(", "TM", ".", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Large", "&&", "isTargetMachO", "(", ")", ")", "return", "AArch64II", "::", "MO_GOT", ";", "Reloc", "::", "Model", "RM", "=", "TM", ".", "getRelocationModel", "(", ")", ";", "if", "(", "!", "shouldAssumeDSOLocal", "(", "RM", ",", "TargetTriple", ",", "*", "GV", "->", "getParent", "(", ")", ",", "GV", ")", ")", "return", "AArch64II", "::", "MO_GOT", ";", "if", "(", "TM", ".", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Small", "&&", "GV", "->", "hasExternalWeakLinkage", "(", ")", ")", "return", "AArch64II", "::", "MO_GOT", ";", "return", "AArch64II", "::", "MO_NO_FLAG", ";", "}", ""], "natrual_language": ["ClassifyGlobalReference", "-", "Find", "the", "target", "operand", "flags", "that", "describe", "how", "a", "global", "value", "should", "be", "referenced", "for", "the", "current", "subtarget", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64II::MO_GOT", "AArch64II::MO_GOT", "AArch64II::MO_GOT", "AArch64II::MO_NO_FLAG"], "File": "AArch64Subtarget52", "Func": "ClassifyGlobalReference", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1428, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ")", "const", "override", "{", "return", "false", ";", "}", ""], "natrual_language": ["Check", "whether", "the", "given", "instruction", "may", "need", "relaxation", "."], "TS_V_token": ["CJG"], "File": "CJGAsmBackend", "Func": "mayNeedRelaxation", "Target": "CJG", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1429, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "LC3RegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "Reserved", ".", "set", "(", "LC3", "::", "SP", ")", ";", "Reserved", ".", "set", "(", "LC3", "::", "LR", ")", ";", "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": ["LC3", "LC3", "LC3::SP", "LC3::LR"], "File": "LC3RegisterInfo", "Func": "getReservedRegs", "Target": "LC3", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1430, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64BranchRelaxation", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "mf", ")", "{", "MF", "=", "&", "mf", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** AArch64BranchRelaxation *****\\n\"", ")", ";", "TII", "=", "MF", "->", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "MF", "->", "RenumberBlocks", "(", ")", ";", "scanFunction", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\" Basic blocks before relaxation\\n\"", ";", "dumpBBs", "(", ")", ";", ")", ";", "bool", "MadeChange", "=", "false", ";", "while", "(", "relaxBranchInstructions", "(", ")", ")", "MadeChange", "=", "true", ";", "verify", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\" Basic blocks after relaxation\\n\\n\"", ";", "dumpBBs", "(", ")", ")", ";", "BlockInfo", ".", "clear", "(", ")", ";", "return", "MadeChange", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "\"***** AArch64BranchRelaxation *****\\n\"", "AArch64", "\" Basic blocks before relaxation\\n\"", "\" Basic blocks after relaxation\\n\\n\""], "File": "AArch64BranchRelaxation2", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1431, "Length": 105, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "LC2200TargetLowering", "::", "LowerOperation", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "report_fatal_error", "(", "\"unimplemented operand\"", ")", ";", "case", "ISD", "::", "SHL", ":", "return", "lowerShiftLeft", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BR_CC", ":", "return", "lowerBrCc", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BR", ":", "return", "lowerBr", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SELECT_CC", ":", "return", "lowerSelectCc", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "AND", ":", "return", "lowerAnd", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "OR", ":", "return", "lowerOr", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "XOR", ":", "return", "lowerXor", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "GlobalAddress", ":", "return", "lowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SRL", ":", "return", "ExpandLibCall", "(", "\"__srlu\"", ",", "Op", ",", "false", ",", "DAG", ")", ";", "}", "}", ""], "natrual_language": ["LowerOperation", "-", "Provide", "custom", "lowering", "hooks", "for", "some", "operations", "."], "TS_V_token": ["LC2200", "LC2200", "\"unimplemented operand\"", "ISD::SHL", "ISD::BR_CC", "ISD::BR", "ISD::SELECT_CC", "ISD::AND", "ISD::OR", "ISD::XOR", "ISD::GlobalAddress", "ISD::SRL", "\"__srlu\""], "File": "LC2200ISelLowering", "Func": "LowerOperation", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1432, "Length": 153, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "uint16_t", ",", "uint16_t", ">", "ARMBaseInstrInfo", "::", "getExecutionDomain", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "if", "(", "Subtarget", ".", "hasNEON", "(", ")", ")", "{", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "ARM", "::", "VMOVD", "&&", "!", "isPredicated", "(", "MI", ")", ")", "return", "std", "::", "make_pair", "(", "ExeVFP", ",", "(", "1", "<<", "ExeVFP", ")", "|", "(", "1", "<<", "ExeNEON", ")", ")", ";", "if", "(", "Subtarget", ".", "useNEONForFPMovs", "(", ")", "&&", "!", "isPredicated", "(", "MI", ")", "&&", "(", "MI", ".", "getOpcode", "(", ")", "==", "ARM", "::", "VMOVRS", "||", "MI", ".", "getOpcode", "(", ")", "==", "ARM", "::", "VMOVSR", "||", "MI", ".", "getOpcode", "(", ")", "==", "ARM", "::", "VMOVS", ")", ")", "return", "std", "::", "make_pair", "(", "ExeVFP", ",", "(", "1", "<<", "ExeVFP", ")", "|", "(", "1", "<<", "ExeNEON", ")", ")", ";", "}", "unsigned", "Domain", "=", "MI", ".", "getDesc", "(", ")", ".", "TSFlags", "&", "ARMII", "::", "DomainMask", ";", "if", "(", "Domain", "&", "ARMII", "::", "DomainNEON", ")", "return", "std", "::", "make_pair", "(", "ExeNEON", ",", "0", ")", ";", "if", "(", "(", "Domain", "&", "ARMII", "::", "DomainNEONA8", ")", "&&", "Subtarget", ".", "isCortexA8", "(", ")", ")", "return", "std", "::", "make_pair", "(", "ExeNEON", ",", "0", ")", ";", "if", "(", "Domain", "&", "ARMII", "::", "DomainVFP", ")", "return", "std", "::", "make_pair", "(", "ExeVFP", ",", "0", ")", ";", "return", "std", "::", "make_pair", "(", "ExeGeneric", ",", "0", ")", ";", "}", ""], "natrual_language": ["Return", "the", "current", "execution", "domain", "and", "bit", "mask", "of", "possible", "domains", "for", "instruction", "."], "TS_V_token": ["ARM", "ARM", "ARM::VMOVD", "1", "1", "ARM::VMOVRS", "ARM::VMOVSR", "ARM::VMOVS", "1", "1", "ARMII::DomainMask", "ARMII::DomainNEON", "0", "ARMII::DomainNEONA8", "0", "ARMII::DomainVFP", "0", "0"], "File": "ARMBaseInstrInfo (2)2", "Func": "getExecutionDomain", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1433, "Length": 221, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "aarch64_parse_one_option_token", "(", "const", "char", "*", "token", ",", "size_t", "length", ",", "const", "struct", "aarch64_flag_desc", "*", "flag", ",", "const", "char", "*", "option_name", ")", "{", "for", "(", ";", "flag", "->", "name", "!=", "NULL", ";", "flag", "++", ")", "{", "if", "(", "length", "==", "strlen", "(", "flag", "->", "name", ")", "&&", "!", "strncmp", "(", "flag", "->", "name", ",", "token", ",", "length", ")", ")", "return", "flag", "->", "flag", ";", "}", "error", "(", "\"unknown flag passed in -moverride=%s (%s)\"", ",", "option_name", ",", "token", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["Parse", "TOKEN", ",", "which", "has", "length", "LENGTH", "to", "see", "if", "it", "is", "an", "option", "described", "in", "FLAG", ".", "If", "it", "is", ",", "return", "the", "index", "bit", "for", "that", "fusion", "type", ".", "If", "not", ",", "error", "(", "printing", "OPTION_NAME", ")", "and", "return", "zero", "."], "TS_V_token": ["aarch64", "\"unknown flag passed in -moverride=%s (%s)\"", "0"], "File": "aarch643", "Func": "aarch64_parse_one_option_token", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1434, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86RegisterInfo", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "MachineModuleInfo", "&", "MMI", "=", "MF", ".", "getMMI", "(", ")", ";", "return", "(", "DisableFramePointerElim", "(", "MF", ")", "||", "needsStackRealignment", "(", "MF", ")", "||", "MFI", "->", "hasVarSizedObjects", "(", ")", "||", "MFI", "->", "isFrameAddressTaken", "(", ")", "||", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", "->", "getForceFramePointer", "(", ")", "||", "MMI", ".", "callsUnwindInit", "(", ")", ")", ";", "}", ""], "natrual_language": ["hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86RegisterInfo31", "Func": "hasFP", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1435, "Length": 79, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "rs6000_darwin64_struct_check_p", "(", "machine_mode", "mode", ",", "const_tree", "type", ")", "{", "return", "rs6000_darwin64_abi", "&&", "(", "(", "mode", "==", "BLKmode", "&&", "TREE_CODE", "(", "type", ")", "==", "RECORD_TYPE", "&&", "int_size_in_bytes", "(", "type", ")", ">", "0", ")", "||", "(", "type", "&&", "TREE_CODE", "(", "type", ")", "==", "RECORD_TYPE", "&&", "int_size_in_bytes", "(", "type", ")", "==", "8", ")", ")", "?", "1", ":", "0", ";", "}", ""], "natrual_language": ["Check", "for", "an", "item", "that", "needs", "to", "be", "considered", "specially", "under", "the", "darwin", "64", "bit", "ABI", ".", "These", "are", "record", "types", "where", "the", "mode", "is", "BLK", "or", "the", "structure", "is", "8", "bytes", "in", "size", "."], "TS_V_token": ["powerpcspe", "0", "8", "1", "0"], "File": "powerpcspe", "Func": "rs6000_darwin64_struct_check_p", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1436, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCFrameLowering", "::", "determineCalleeSaves", "(", "MachineFunction", "&", "MF", ",", "BitVector", "&", "SavedRegs", ",", "RegScavenger", "*", "RS", ")", "const", "{", "TargetFrameLowering", "::", "determineCalleeSaves", "(", "MF", ",", "SavedRegs", ",", "RS", ")", ";", "const", "PPCRegisterInfo", "*", "RegInfo", "=", "static_cast", "<", "const", "PPCRegisterInfo", "*", ">", "(", "Subtarget", ".", "getRegisterInfo", "(", ")", ")", ";", "PPCFunctionInfo", "*", "FI", "=", "MF", ".", "getInfo", "<", "PPCFunctionInfo", ">", "(", ")", ";", "unsigned", "LR", "=", "RegInfo", "->", "getRARegister", "(", ")", ";", "FI", "->", "setMustSaveLR", "(", "MustSaveLR", "(", "MF", ",", "LR", ")", ")", ";", "SavedRegs", ".", "reset", "(", "LR", ")", ";", "int", "FPSI", "=", "FI", "->", "getFramePointerSaveIndex", "(", ")", ";", "bool", "isPPC64", "=", "Subtarget", ".", "isPPC64", "(", ")", ";", "bool", "isDarwinABI", "=", "Subtarget", ".", "isDarwinABI", "(", ")", ";", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "if", "(", "!", "FPSI", "&&", "needsFP", "(", "MF", ")", ")", "{", "int", "FPOffset", "=", "getFramePointerSaveOffset", "(", ")", ";", "FPSI", "=", "MFI", "->", "CreateFixedObject", "(", "isPPC64", "?", "8", ":", "4", ",", "FPOffset", ",", "true", ")", ";", "FI", "->", "setFramePointerSaveIndex", "(", "FPSI", ")", ";", "}", "int", "BPSI", "=", "FI", "->", "getBasePointerSaveIndex", "(", ")", ";", "if", "(", "!", "BPSI", "&&", "RegInfo", "->", "hasBasePointer", "(", "MF", ")", ")", "{", "int", "BPOffset", "=", "getBasePointerSaveOffset", "(", ")", ";", "BPSI", "=", "MFI", "->", "CreateFixedObject", "(", "isPPC64", "?", "8", ":", "4", ",", "BPOffset", ",", "true", ")", ";", "FI", "->", "setBasePointerSaveIndex", "(", "BPSI", ")", ";", "}", "if", "(", "FI", "->", "usesPICBase", "(", ")", ")", "{", "int", "PBPSI", "=", "MFI", "->", "CreateFixedObject", "(", "4", ",", "-", "8", ",", "true", ")", ";", "FI", "->", "setPICBasePointerSaveIndex", "(", "PBPSI", ")", ";", "}", "int", "TCSPDelta", "=", "0", ";", "if", "(", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "GuaranteedTailCallOpt", "&&", "(", "TCSPDelta", "=", "FI", "->", "getTailCallSPDelta", "(", ")", ")", "<", "0", ")", "{", "MFI", "->", "CreateFixedObject", "(", "-", "1", "*", "TCSPDelta", ",", "TCSPDelta", ",", "true", ")", ";", "}", "if", "(", "!", "isPPC64", "&&", "!", "isDarwinABI", "&&", "(", "SavedRegs", ".", "test", "(", "PPC", "::", "CR2", ")", "||", "SavedRegs", ".", "test", "(", "PPC", "::", "CR3", ")", "||", "SavedRegs", ".", "test", "(", "PPC", "::", "CR4", ")", ")", ")", "{", "int", "FrameIdx", "=", "MFI", "->", "CreateFixedObject", "(", "(", "uint64_t", ")", "4", ",", "(", "int64_t", ")", "-", "4", ",", "true", ")", ";", "FI", "->", "setCRSpillFrameIndex", "(", "FrameIdx", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "determines", "which", "of", "the", "registers", "reported", "by", "TargetRegisterInfo", ":", ":getCalleeSavedRegs", "(", ")", "should", "actually", "get", "saved", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "PPC", "PPC", "PPC", "PPC", "PPC", "8", "4", "PPC", "8", "4", "4", "8", "0", "0", "1", "PPC", "PPC::CR2", "PPC::CR3", "PPC::CR4", "4", "4"], "File": "PPCFrameLowering (2)", "Func": "determineCalleeSaves", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1437, "Length": 369, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86AsmPrinter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "SMShadowTracker", ".", "startFunction", "(", "MF", ")", ";", "CodeEmitter", ".", "reset", "(", "TM", ".", "getTarget", "(", ")", ".", "createMCCodeEmitter", "(", "*", "Subtarget", "->", "getInstrInfo", "(", ")", ",", "*", "Subtarget", "->", "getRegisterInfo", "(", ")", ",", "MF", ".", "getContext", "(", ")", ")", ")", ";", "EmitFPOData", "=", "Subtarget", "->", "isTargetWin32", "(", ")", "&&", "MF", ".", "getMMI", "(", ")", ".", "getModule", "(", ")", "->", "getCodeViewFlag", "(", ")", ";", "SetupMachineFunction", "(", "MF", ")", ";", "if", "(", "Subtarget", "->", "isTargetCOFF", "(", ")", ")", "{", "bool", "Local", "=", "MF", ".", "getFunction", "(", ")", ".", "hasLocalLinkage", "(", ")", ";", "OutStreamer", "->", "BeginCOFFSymbolDef", "(", "CurrentFnSym", ")", ";", "OutStreamer", "->", "EmitCOFFSymbolStorageClass", "(", "Local", "?", "COFF", "::", "IMAGE_SYM_CLASS_STATIC", ":", "COFF", "::", "IMAGE_SYM_CLASS_EXTERNAL", ")", ";", "OutStreamer", "->", "EmitCOFFSymbolType", "(", "COFF", "::", "IMAGE_SYM_DTYPE_FUNCTION", "<<", "COFF", "::", "SCT_COMPLEX_TYPE_SHIFT", ")", ";", "OutStreamer", "->", "EndCOFFSymbolDef", "(", ")", ";", "}", "EmitFunctionBody", "(", ")", ";", "emitXRayTable", "(", ")", ";", "EmitFPOData", "=", "false", ";", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86AsmPrinter (2)2", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1438, "Length": 170, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ix86_expand_fp_absneg_operator", "(", "enum", "rtx_code", "code", ",", "machine_mode", "mode", ",", "rtx", "operands", "[", "]", ")", "{", "rtx", "mask", ",", "set", ",", "dst", ",", "src", ";", "bool", "use_sse", "=", "false", ";", "bool", "vector_mode", "=", "VECTOR_MODE_P", "(", "mode", ")", ";", "machine_mode", "vmode", "=", "mode", ";", "if", "(", "vector_mode", ")", "use_sse", "=", "true", ";", "else", "if", "(", "mode", "==", "TFmode", ")", "use_sse", "=", "true", ";", "else", "if", "(", "TARGET_SSE_MATH", ")", "{", "use_sse", "=", "SSE_FLOAT_MODE_P", "(", "mode", ")", ";", "if", "(", "mode", "==", "SFmode", ")", "vmode", "=", "V4SFmode", ";", "else", "if", "(", "mode", "==", "DFmode", ")", "vmode", "=", "V2DFmode", ";", "}", "if", "(", "use_sse", ")", "mask", "=", "ix86_build_signbit_mask", "(", "vmode", ",", "vector_mode", ",", "code", "==", "ABS", ")", ";", "else", "mask", "=", "NULL_RTX", ";", "dst", "=", "operands", "[", "0", "]", ";", "src", "=", "operands", "[", "1", "]", ";", "set", "=", "gen_rtx_fmt_e", "(", "code", ",", "mode", ",", "src", ")", ";", "set", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "dst", ",", "set", ")", ";", "if", "(", "mask", ")", "{", "rtx", "use", ",", "clob", ";", "rtvec", "par", ";", "use", "=", "gen_rtx_USE", "(", "VOIDmode", ",", "mask", ")", ";", "if", "(", "vector_mode", ")", "par", "=", "gen_rtvec", "(", "2", ",", "set", ",", "use", ")", ";", "else", "{", "clob", "=", "gen_rtx_CLOBBER", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "CCmode", ",", "FLAGS_REG", ")", ")", ";", "par", "=", "gen_rtvec", "(", "3", ",", "set", ",", "use", ",", "clob", ")", ";", "}", "emit_insn", "(", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "par", ")", ")", ";", "}", "else", "emit_insn", "(", "set", ")", ";", "}", ""], "natrual_language": ["Generate", "code", "for", "floating", "point", "ABS", "or", "NEG", "."], "TS_V_token": ["i386", "0", "1", "2", "3"], "File": "i3864", "Func": "ix86_expand_fp_absneg_operator", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1439, "Length": 240, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetPassConfig", "*", "OR1KTargetMachine", "::", "createPassConfig", "(", "PassManagerBase", "&", "PM", ")", "{", "return", "new", "OR1KPassConfig", "(", "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": ["OR1K", "OR1K", "OR1K"], "File": "OR1KTargetMachine", "Func": "createPassConfig", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1440, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMTargetLowering", "::", "ReplaceNodeResults", "(", "SDNode", "*", "N", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "Results", ",", "SelectionDAG", "&", "DAG", ")", "{", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Don't know how to custom expand this!\"", ")", ";", "return", ";", "case", "ISD", "::", "BIT_CONVERT", ":", "Results", ".", "push_back", "(", "ExpandBIT_CONVERT", "(", "N", ",", "DAG", ")", ")", ";", "return", ";", "case", "ISD", "::", "SRL", ":", "case", "ISD", "::", "SRA", ":", "{", "SDValue", "Res", "=", "LowerShift", "(", "N", ",", "DAG", ",", "Subtarget", ")", ";", "if", "(", "Res", ".", "getNode", "(", ")", ")", "Results", ".", "push_back", "(", "Res", ")", ";", "return", ";", "}", "}", "}", ""], "natrual_language": ["ReplaceNodeResults", "-", "Replace", "the", "results", "of", "node", "with", "an", "illegal", "result", "type", "with", "new", "values", "built", "out", "of", "custom", "code", "."], "TS_V_token": ["ARM", "ARM", "\"Don't know how to custom expand this!\"", "ISD::BIT_CONVERT", "ISD::SRL", "ISD::SRA"], "File": "ARMISelLowering109", "Func": "ReplaceNodeResults", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1441, "Length": 101, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "aarch64_expand_sve_vec_cmp_float", "(", "rtx", "target", ",", "rtx_code", "code", ",", "rtx", "op0", ",", "rtx", "op1", ",", "bool", "can_invert_p", ")", "{", "machine_mode", "pred_mode", "=", "GET_MODE", "(", "target", ")", ";", "machine_mode", "data_mode", "=", "GET_MODE", "(", "op0", ")", ";", "rtx", "ptrue", "=", "force_reg", "(", "pred_mode", ",", "CONSTM1_RTX", "(", "pred_mode", ")", ")", ";", "switch", "(", "code", ")", "{", "case", "UNORDERED", ":", "op1", "=", "force_reg", "(", "data_mode", ",", "op1", ")", ";", "case", "LT", ":", "case", "LE", ":", "case", "GT", ":", "case", "GE", ":", "case", "EQ", ":", "case", "NE", ":", "{", "rtx", "cond", "=", "gen_rtx_fmt_ee", "(", "code", ",", "pred_mode", ",", "op0", ",", "op1", ")", ";", "aarch64_emit_sve_ptrue_op", "(", "target", ",", "ptrue", ",", "cond", ")", ";", "return", "false", ";", "}", "case", "LTGT", ":", "aarch64_emit_sve_or_conds", "(", "target", ",", "LT", ",", "GT", ",", "ptrue", ",", "op0", ",", "op1", ")", ";", "return", "false", ";", "case", "UNEQ", ":", "if", "(", "!", "flag_trapping_math", ")", "{", "op1", "=", "force_reg", "(", "data_mode", ",", "op1", ")", ";", "aarch64_emit_sve_or_conds", "(", "target", ",", "UNORDERED", ",", "EQ", ",", "ptrue", ",", "op0", ",", "op1", ")", ";", "return", "false", ";", "}", "case", "UNLT", ":", "case", "UNLE", ":", "case", "UNGT", ":", "case", "UNGE", ":", "if", "(", "flag_trapping_math", ")", "{", "rtx", "ordered", "=", "gen_reg_rtx", "(", "pred_mode", ")", ";", "op1", "=", "force_reg", "(", "data_mode", ",", "op1", ")", ";", "aarch64_emit_sve_inverted_cond", "(", "ordered", ",", "ptrue", ",", "UNORDERED", ",", "op0", ",", "op1", ")", ";", "if", "(", "code", "==", "UNEQ", ")", "code", "=", "NE", ";", "else", "code", "=", "reverse_condition_maybe_unordered", "(", "code", ")", ";", "if", "(", "can_invert_p", ")", "{", "aarch64_emit_sve_predicated_cond", "(", "target", ",", "code", ",", "ordered", ",", "op0", ",", "op1", ")", ";", "return", "true", ";", "}", "rtx", "tmp", "=", "gen_reg_rtx", "(", "pred_mode", ")", ";", "aarch64_emit_sve_predicated_cond", "(", "tmp", ",", "code", ",", "ordered", ",", "op0", ",", "op1", ")", ";", "aarch64_emit_unop", "(", "target", ",", "one_cmpl_optab", ",", "tmp", ")", ";", "return", "false", ";", "}", "break", ";", "case", "ORDERED", ":", "op1", "=", "force_reg", "(", "data_mode", ",", "op1", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "code", "=", "reverse_condition_maybe_unordered", "(", "code", ")", ";", "if", "(", "can_invert_p", ")", "{", "rtx", "cond", "=", "gen_rtx_fmt_ee", "(", "code", ",", "pred_mode", ",", "op0", ",", "op1", ")", ";", "aarch64_emit_sve_ptrue_op", "(", "target", ",", "ptrue", ",", "cond", ")", ";", "return", "true", ";", "}", "aarch64_emit_sve_inverted_cond", "(", "target", ",", "ptrue", ",", "code", ",", "op0", ",", "op1", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["Expand", "an", "SVE", "floating-point", "comparison", ":", "TARGET", "=", "CODE", "(", "OP0", ",", "OP1", ")", "If", "CAN_INVERT_P", "is", "true", ",", "the", "caller", "can", "also", "handle", "inverted", "results", ";", "return", "true", "if", "the", "result", "is", "in", "fact", "inverted", "."], "TS_V_token": ["aarch64"], "File": "aarch646", "Func": "aarch64_expand_sve_vec_cmp_float", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1442, "Length": 369, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "char", "X86Subtarget", "::", "classifyGlobalReference", "(", "const", "GlobalValue", "*", "GV", ",", "const", "Module", "&", "M", ")", "const", "{", "if", "(", "TM", ".", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Large", ")", "return", "X86II", "::", "MO_NO_FLAG", ";", "Reloc", "::", "Model", "RM", "=", "TM", ".", "getRelocationModel", "(", ")", ";", "if", "(", "shouldAssumeDSOLocal", "(", "RM", ",", "TargetTriple", ",", "M", ",", "GV", ")", ")", "return", "classifyLocalReference", "(", "GV", ")", ";", "if", "(", "isTargetCOFF", "(", ")", ")", "return", "X86II", "::", "MO_DLLIMPORT", ";", "if", "(", "is64Bit", "(", ")", ")", "return", "X86II", "::", "MO_GOTPCREL", ";", "if", "(", "isTargetDarwin", "(", ")", ")", "{", "if", "(", "!", "isPositionIndependent", "(", ")", ")", "return", "X86II", "::", "MO_DARWIN_NONLAZY", ";", "return", "X86II", "::", "MO_DARWIN_NONLAZY_PIC_BASE", ";", "}", "return", "X86II", "::", "MO_GOT", ";", "}", ""], "natrual_language": ["Classify", "a", "global", "variable", "reference", "for", "the", "current", "subtarget", "according", "to", "how", "we", "should", "reference", "it", "in", "a", "non-pcrel", "context", "."], "TS_V_token": ["X86", "X86", "X86II::MO_NO_FLAG", "X86II::MO_DLLIMPORT", "X86II::MO_GOTPCREL", "X86II::MO_DARWIN_NONLAZY", "X86II::MO_DARWIN_NONLAZY_PIC_BASE", "X86II::MO_GOT"], "File": "X86Subtarget99", "Func": "classifyGlobalReference", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1443, "Length": 118, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCFrameLowering", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "!", "Subtarget", ".", "isSVR4ABI", "(", ")", ")", "return", "false", ";", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "PPCInstrInfo", "&", "TII", "=", "*", "Subtarget", ".", "getInstrInfo", "(", ")", ";", "bool", "CR2Spilled", "=", "false", ";", "bool", "CR3Spilled", "=", "false", ";", "bool", "CR4Spilled", "=", "false", ";", "unsigned", "CSIIndex", "=", "0", ";", "MachineBasicBlock", "::", "iterator", "I", "=", "MI", ",", "BeforeI", "=", "I", ";", "bool", "AtStart", "=", "I", "==", "MBB", ".", "begin", "(", ")", ";", "if", "(", "!", "AtStart", ")", "--", "BeforeI", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "]", ".", "getReg", "(", ")", ";", "if", "(", "Reg", "==", "PPC", "::", "VRSAVE", "&&", "!", "Subtarget", ".", "isDarwinABI", "(", ")", ")", "continue", ";", "if", "(", "Reg", "==", "PPC", "::", "CR2", ")", "{", "CR2Spilled", "=", "true", ";", "CSIIndex", "=", "i", ";", "continue", ";", "}", "else", "if", "(", "Reg", "==", "PPC", "::", "CR3", ")", "{", "CR3Spilled", "=", "true", ";", "continue", ";", "}", "else", "if", "(", "Reg", "==", "PPC", "::", "CR4", ")", "{", "CR4Spilled", "=", "true", ";", "continue", ";", "}", "else", "{", "if", "(", "(", "CR2Spilled", "||", "CR3Spilled", "||", "CR4Spilled", ")", "&&", "!", "(", "PPC", "::", "CR2", "<=", "Reg", "&&", "Reg", "<=", "PPC", "::", "CR4", ")", ")", "{", "bool", "is31", "=", "needsFP", "(", "*", "MF", ")", ";", "restoreCRs", "(", "Subtarget", ".", "isPPC64", "(", ")", ",", "is31", ",", "CR2Spilled", ",", "CR3Spilled", ",", "CR4Spilled", ",", "MBB", ",", "I", ",", "CSI", ",", "CSIIndex", ")", ";", "CR2Spilled", "=", "CR3Spilled", "=", "CR4Spilled", "=", "false", ";", "}", "if", "(", "CSI", "[", "i", "]", ".", "isSpilledToReg", "(", ")", ")", "{", "DebugLoc", "DL", ";", "NumPEReloadVSR", "++", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "TII", ".", "get", "(", "PPC", "::", "MFVSRD", ")", ",", "Reg", ")", ".", "addReg", "(", "CSI", "[", "i", "]", ".", "getDstReg", "(", ")", ",", "getKillRegState", "(", "true", ")", ")", ";", "}", "else", "{", "const", "TargetRegisterClass", "*", "RC", "=", "TRI", "->", "getMinimalPhysRegClass", "(", "Reg", ")", ";", "TII", ".", "loadRegFromStackSlot", "(", "MBB", ",", "I", ",", "Reg", ",", "CSI", "[", "i", "]", ".", "getFrameIdx", "(", ")", ",", "RC", ",", "TRI", ")", ";", "assert", "(", "I", "!=", "MBB", ".", "begin", "(", ")", "&&", "\"loadRegFromStackSlot didn't insert any code!\"", ")", ";", "}", "}", "if", "(", "AtStart", ")", "I", "=", "MBB", ".", "begin", "(", ")", ";", "else", "{", "I", "=", "BeforeI", ";", "++", "I", ";", "}", "}", "if", "(", "CR2Spilled", "||", "CR3Spilled", "||", "CR4Spilled", ")", "{", "bool", "is31", "=", "needsFP", "(", "*", "MF", ")", ";", "restoreCRs", "(", "Subtarget", ".", "isPPC64", "(", ")", ",", "is31", ",", "CR2Spilled", ",", "CR3Spilled", ",", "CR4Spilled", ",", "MBB", ",", "I", ",", "CSI", ",", "CSIIndex", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["restoreCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "restore", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "load", "instructions", "via", "loadRegToStackSlot", "(", ")", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "0", "0", "PPC::VRSAVE", "PPC::CR2", "PPC::CR3", "PPC::CR4", "PPC::CR2", "PPC::CR4", "PPC", "PPC::MFVSRD", "\"loadRegFromStackSlot didn't insert any code!\"", "PPC"], "File": "PPCFrameLowering33", "Func": "restoreCalleeSavedRegisters", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1444, "Length": 471, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "TargetRegisterInfo", "&", "getRegisterInfo", "(", ")", "const", "{", "return", "RI", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["OpenRISC"], "File": "OpenRISCInstrInfo", "Func": "getRegisterInfo", "Target": "OpenRISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1445, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "MVT", "getShiftAmountTy", "(", "EVT", "LHSTy", ")", "const", "{", "return", "MVT", "::", "i8", ";", "}", ""], "natrual_language": ["Returns", "the", "type", "for", "the", "shift", "amount", "of", "a", "shift", "opcode", "."], "TS_V_token": ["X86", "MVT::i8"], "File": "X86ISelLowering102", "Func": "getShiftAmountTy", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1446, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "mips_expand_builtin_bposge", "(", "enum", "mips_builtin_type", "builtin_type", ",", "rtx", "target", ")", "{", "rtx", "label1", ",", "label2", ",", "if_then_else", ";", "rtx", "cmp_result", ";", "int", "cmp_value", ";", "if", "(", "target", "==", "0", "||", "GET_MODE", "(", "target", ")", "!=", "SImode", ")", "target", "=", "gen_reg_rtx", "(", "SImode", ")", ";", "cmp_result", "=", "gen_rtx_REG", "(", "CCDSPmode", ",", "CCDSP_PO_REGNUM", ")", ";", "if", "(", "builtin_type", "==", "MIPS_BUILTIN_BPOSGE32", ")", "cmp_value", "=", "32", ";", "else", "gcc_assert", "(", "0", ")", ";", "emit_move_insn", "(", "target", ",", "const0_rtx", ")", ";", "label1", "=", "gen_label_rtx", "(", ")", ";", "label2", "=", "gen_label_rtx", "(", ")", ";", "if_then_else", "=", "gen_rtx_IF_THEN_ELSE", "(", "VOIDmode", ",", "gen_rtx_fmt_ee", "(", "GE", ",", "CCDSPmode", ",", "cmp_result", ",", "GEN_INT", "(", "cmp_value", ")", ")", ",", "gen_rtx_LABEL_REF", "(", "VOIDmode", ",", "label1", ")", ",", "pc_rtx", ")", ";", "emit_jump_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "pc_rtx", ",", "if_then_else", ")", ")", ";", "emit_jump_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "pc_rtx", ",", "gen_rtx_LABEL_REF", "(", "VOIDmode", ",", "label2", ")", ")", ")", ";", "emit_barrier", "(", ")", ";", "emit_label", "(", "label1", ")", ";", "emit_move_insn", "(", "target", ",", "const1_rtx", ")", ";", "emit_label", "(", "label2", ")", ";", "return", "target", ";", "}", ""], "natrual_language": ["Expand", "a", "bposge", "builtin", "of", "type", "BUILTIN_TYPE", ".", "TARGET", ",", "if", "nonnull", ",", "suggests", "a", "good", "place", "to", "put", "the", "boolean", "result", ".", "The", "sequence", "we", "want", "is", "li", "target", ",", "0", "bposge", "*", "label1", "j", "label2", "label1", ":", "li", "target", ",", "1", "label2", ":"], "TS_V_token": ["mips", "0", "32", "0"], "File": "mips3", "Func": "mips_expand_builtin_bposge", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1447, "Length": 173, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "CSKYInstrInfo", "*", "getInstrInfo", "(", ")", "const", "override", "{", "return", "&", "InstrInfo", ";", "}", ""], "natrual_language": ["TargetInstrInfo", "getter", "."], "TS_V_token": ["CSKY", "CSKY"], "File": "CSKYSubtarget", "Func": "getInstrInfo", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1448, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86CondBrFolding", "::", "analyzeCompare", "(", "const", "MachineInstr", "&", "MI", ",", "unsigned", "&", "SrcReg", ",", "int", "&", "CmpValue", ")", "{", "unsigned", "SrcRegIndex", "=", "0", ";", "unsigned", "ValueIndex", "=", "0", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "false", ";", "case", "X86", "::", "CMP64ri32", ":", "case", "X86", "::", "CMP64ri8", ":", "case", "X86", "::", "CMP32ri", ":", "case", "X86", "::", "CMP32ri8", ":", "case", "X86", "::", "CMP16ri", ":", "case", "X86", "::", "CMP16ri8", ":", "case", "X86", "::", "CMP8ri", ":", "SrcRegIndex", "=", "0", ";", "ValueIndex", "=", "1", ";", "break", ";", "case", "X86", "::", "SUB64ri32", ":", "case", "X86", "::", "SUB64ri8", ":", "case", "X86", "::", "SUB32ri", ":", "case", "X86", "::", "SUB32ri8", ":", "case", "X86", "::", "SUB16ri", ":", "case", "X86", "::", "SUB16ri8", ":", "case", "X86", "::", "SUB8ri", ":", "SrcRegIndex", "=", "1", ";", "ValueIndex", "=", "2", ";", "break", ";", "}", "SrcReg", "=", "MI", ".", "getOperand", "(", "SrcRegIndex", ")", ".", "getReg", "(", ")", ";", "assert", "(", "MI", ".", "getOperand", "(", "ValueIndex", ")", ".", "isImm", "(", ")", "&&", "\"Expecting Imm operand\"", ")", ";", "CmpValue", "=", "MI", ".", "getOperand", "(", "ValueIndex", ")", ".", "getImm", "(", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["analyzeCompare", "-", "For", "a", "comparison", "instruction", ",", "return", "the", "source", "registers", "in", "SrcReg", "and", "SrcReg2", "if", "having", "two", "register", "operands", ",", "and", "the", "value", "it", "compares", "against", "in", "CmpValue", "."], "TS_V_token": ["X86", "X86", "0", "0", "X86::CMP64ri32", "X86::CMP64ri8", "X86::CMP32ri", "X86::CMP32ri8", "X86::CMP16ri", "X86::CMP16ri8", "X86::CMP8ri", "0", "1", "X86::SUB64ri32", "X86::SUB64ri8", "X86::SUB32ri", "X86::SUB32ri8", "X86::SUB16ri", "X86::SUB16ri8", "X86::SUB8ri", "1", "2", "\"Expecting Imm operand\""], "File": "X86CondBrFolding6", "Func": "analyzeCompare", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1449, "Length": 180, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "Cpu0TargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutsVals", ",", "const", "SDLoc", "&", "DL", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "MF", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "Cpu0CC", "Cpu0CCInfo", "(", "CallConv", ",", "ABI", ".", "IsO32", "(", ")", ",", "CCInfo", ")", ";", "Cpu0CCInfo", ".", "analyzeReturn", "(", "Outs", ",", "Subtarget", ".", "abiUsesSoftFloat", "(", ")", ",", "MF", ".", "getFunction", "(", ")", ".", "getReturnType", "(", ")", ")", ";", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", "(", "1", ",", "Chain", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "SDValue", "Val", "=", "OutsVals", "[", "i", "]", ";", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Can only return in registers!\"", ")", ";", "if", "(", "RVLocs", "[", "i", "]", ".", "getValVT", "(", ")", "!=", "RVLocs", "[", "i", "]", ".", "getLocVT", "(", ")", ")", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "BITCAST", ",", "DL", ",", "RVLocs", "[", "i", "]", ".", "getLocVT", "(", ")", ",", "Val", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "VA", ".", "getLocReg", "(", ")", ",", "Val", ",", "Flag", ")", ";", "Flag", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "if", "(", "MF", ".", "getFunction", "(", ")", ".", "hasStructRetAttr", "(", ")", ")", "{", "Cpu0MachineFunctionInfo", "*", "Cpu0FI", "=", "MF", ".", "getInfo", "<", "Cpu0MachineFunctionInfo", ">", "(", ")", ";", "unsigned", "Reg", "=", "Cpu0FI", "->", "getSRetReturnReg", "(", ")", ";", "if", "(", "!", "Reg", ")", "llvm_unreachable", "(", "\"sret virtual register not created in the entry block\"", ")", ";", "SDValue", "Val", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "Reg", ",", "getPointerTy", "(", "DAG", ".", "getDataLayout", "(", ")", ")", ")", ";", "unsigned", "V0", "=", "Cpu0", "::", "V0", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "V0", ",", "Val", ",", "Flag", ")", ";", "Flag", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "V0", ",", "getPointerTy", "(", "DAG", ".", "getDataLayout", "(", ")", ")", ")", ")", ";", "}", "RetOps", "[", "0", "]", "=", "Chain", ";", "if", "(", "Flag", ".", "getNode", "(", ")", ")", "RetOps", ".", "push_back", "(", "Flag", ")", ";", "return", "DAG", ".", "getNode", "(", "Cpu0ISD", "::", "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": ["Cpu0", "Cpu0", "ISD::OutputArg", "16", "Cpu0", "Cpu0", "Cpu0", "4", "1", "0", "\"Can only return in registers!\"", "ISD::BITCAST", "1", "Cpu0", "Cpu0", "Cpu0", "Cpu0", "\"sret virtual register not created in the entry block\"", "Cpu0::V0", "1", "0", "Cpu0ISD::Ret", "MVT::Other"], "File": "Cpu0ISelLowering4", "Func": "LowerReturn", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1450, "Length": 443, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "mips_expand_vector_init", "(", "rtx", "target", ",", "rtx", "vals", ")", "{", "machine_mode", "vmode", "=", "GET_MODE", "(", "target", ")", ";", "machine_mode", "imode", "=", "GET_MODE_INNER", "(", "vmode", ")", ";", "unsigned", "i", ",", "nelt", "=", "GET_MODE_NUNITS", "(", "vmode", ")", ";", "unsigned", "nvar", "=", "0", ",", "one_var", "=", "-", "1u", ";", "bool", "all_same", "=", "true", ";", "rtx", "x", ";", "for", "(", "i", "=", "0", ";", "i", "<", "nelt", ";", "++", "i", ")", "{", "x", "=", "XVECEXP", "(", "vals", ",", "0", ",", "i", ")", ";", "if", "(", "!", "mips_constant_elt_p", "(", "x", ")", ")", "nvar", "++", ",", "one_var", "=", "i", ";", "if", "(", "i", ">", "0", "&&", "!", "rtx_equal_p", "(", "x", ",", "XVECEXP", "(", "vals", ",", "0", ",", "0", ")", ")", ")", "all_same", "=", "false", ";", "}", "if", "(", "nvar", "==", "0", ")", "{", "emit_move_insn", "(", "target", ",", "gen_rtx_CONST_VECTOR", "(", "vmode", ",", "XVEC", "(", "vals", ",", "0", ")", ")", ")", ";", "return", ";", "}", "if", "(", "nelt", "==", "2", ")", "{", "rtx", "op0", "=", "force_reg", "(", "imode", ",", "XVECEXP", "(", "vals", ",", "0", ",", "0", ")", ")", ";", "rtx", "op1", "=", "force_reg", "(", "imode", ",", "XVECEXP", "(", "vals", ",", "0", ",", "1", ")", ")", ";", "x", "=", "gen_rtx_VEC_CONCAT", "(", "vmode", ",", "op0", ",", "op1", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "target", ",", "x", ")", ")", ";", "return", ";", "}", "gcc_assert", "(", "TARGET_HARD_FLOAT", "&&", "TARGET_LOONGSON_VECTORS", ")", ";", "if", "(", "all_same", ")", "{", "mips_expand_vi_broadcast", "(", "vmode", ",", "target", ",", "XVECEXP", "(", "vals", ",", "0", ",", "0", ")", ")", ";", "return", ";", "}", "if", "(", "nvar", "==", "1", "&&", "vmode", "==", "V4HImode", ")", "{", "mips_expand_vi_loongson_one_pinsrh", "(", "target", ",", "vals", ",", "one_var", ")", ";", "return", ";", "}", "mips_expand_vi_general", "(", "vmode", ",", "imode", ",", "nelt", ",", "nvar", ",", "target", ",", "vals", ")", ";", "}", ""], "natrual_language": ["Expand", "a", "vector", "initialization", "."], "TS_V_token": ["mips", "0", "1u", "0", "0", "0", "0", "0", "0", "0", "2", "0", "0", "0", "1", "0", "0", "1"], "File": "mips5", "Func": "mips_expand_vector_init", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1451, "Length": 282, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SparcRegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", "RS", ")", "const", "{", "assert", "(", "SPAdj", "==", "0", "&&", "\"Unexpected\"", ")", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "DebugLoc", "dl", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "getIndex", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "SparcSubtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "SparcSubtarget", ">", "(", ")", ";", "const", "SparcFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "unsigned", "FrameReg", ";", "int", "Offset", ";", "Offset", "=", "TFI", "->", "getFrameIndexReference", "(", "MF", ",", "FrameIndex", ",", "FrameReg", ")", ";", "Offset", "+=", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "getImm", "(", ")", ";", "if", "(", "!", "Subtarget", ".", "isV9", "(", ")", "||", "!", "Subtarget", ".", "hasHardQuad", "(", ")", ")", "{", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "SP", "::", "STQFri", ")", "{", "const", "TargetInstrInfo", "&", "TII", "=", "*", "Subtarget", ".", "getInstrInfo", "(", ")", ";", "unsigned", "SrcReg", "=", "MI", ".", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ";", "unsigned", "SrcEvenReg", "=", "getSubReg", "(", "SrcReg", ",", "SP", "::", "sub_even64", ")", ";", "unsigned", "SrcOddReg", "=", "getSubReg", "(", "SrcReg", ",", "SP", "::", "sub_odd64", ")", ";", "MachineInstr", "*", "StMI", "=", "BuildMI", "(", "*", "MI", ".", "getParent", "(", ")", ",", "II", ",", "dl", ",", "TII", ".", "get", "(", "SP", "::", "STDFri", ")", ")", ".", "addReg", "(", "FrameReg", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcEvenReg", ")", ";", "replaceFI", "(", "MF", ",", "*", "StMI", ",", "*", "StMI", ",", "dl", ",", "0", ",", "Offset", ",", "FrameReg", ")", ";", "MI", ".", "setDesc", "(", "TII", ".", "get", "(", "SP", "::", "STDFri", ")", ")", ";", "MI", ".", "getOperand", "(", "2", ")", ".", "setReg", "(", "SrcOddReg", ")", ";", "Offset", "+=", "8", ";", "}", "else", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "SP", "::", "LDQFri", ")", "{", "const", "TargetInstrInfo", "&", "TII", "=", "*", "Subtarget", ".", "getInstrInfo", "(", ")", ";", "unsigned", "DestReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "unsigned", "DestEvenReg", "=", "getSubReg", "(", "DestReg", ",", "SP", "::", "sub_even64", ")", ";", "unsigned", "DestOddReg", "=", "getSubReg", "(", "DestReg", ",", "SP", "::", "sub_odd64", ")", ";", "MachineInstr", "*", "LdMI", "=", "BuildMI", "(", "*", "MI", ".", "getParent", "(", ")", ",", "II", ",", "dl", ",", "TII", ".", "get", "(", "SP", "::", "LDDFri", ")", ",", "DestEvenReg", ")", ".", "addReg", "(", "FrameReg", ")", ".", "addImm", "(", "0", ")", ";", "replaceFI", "(", "MF", ",", "*", "LdMI", ",", "*", "LdMI", ",", "dl", ",", "1", ",", "Offset", ",", "FrameReg", ")", ";", "MI", ".", "setDesc", "(", "TII", ".", "get", "(", "SP", "::", "LDDFri", ")", ")", ";", "MI", ".", "getOperand", "(", "0", ")", ".", "setReg", "(", "DestOddReg", ")", ";", "Offset", "+=", "8", ";", "}", "}", "replaceFI", "(", "MF", ",", "II", ",", "MI", ",", "dl", ",", "FIOperandNum", ",", "Offset", ",", "FrameReg", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["Sparc", "Sparc", "SP", "SP", "0", "\"Unexpected\"", "Sparc", "Sparc", "Sparc", "1", "SP::STQFri", "2", "SP::sub_even64", "SP::sub_odd64", "SP::STDFri", "0", "0", "SP::STDFri", "2", "8", "SP::LDQFri", "0", "SP::sub_even64", "SP::sub_odd64", "SP::LDDFri", "0", "1", "SP::LDDFri", "0", "8"], "File": "SparcRegisterInfo34", "Func": "eliminateFrameIndex", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1452, "Length": 478, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "const_load_sequence_p", "(", "swap_web_entry", "*", "insn_entry", ",", "rtx", "insn", ")", "{", "unsigned", "uid", "=", "INSN_UID", "(", "insn", ")", ";", "if", "(", "!", "insn_entry", "[", "uid", "]", ".", "is_swap", "||", "insn_entry", "[", "uid", "]", ".", "is_load", ")", "return", "false", ";", "struct", "df_insn_info", "*", "insn_info", "=", "DF_INSN_INFO_GET", "(", "insn", ")", ";", "df_ref", "use", ";", "FOR_EACH_INSN_INFO_USE", "(", "use", ",", "insn_info", ")", "{", "struct", "df_link", "*", "def_link", "=", "DF_REF_CHAIN", "(", "use", ")", ";", "if", "(", "!", "def_link", "||", "def_link", "->", "next", ")", "return", "false", ";", "rtx", "def_insn", "=", "DF_REF_INSN", "(", "def_link", "->", "ref", ")", ";", "unsigned", "uid2", "=", "INSN_UID", "(", "def_insn", ")", ";", "if", "(", "!", "insn_entry", "[", "uid2", "]", ".", "is_load", "||", "!", "insn_entry", "[", "uid2", "]", ".", "is_swap", ")", "return", "false", ";", "rtx", "body", "=", "PATTERN", "(", "def_insn", ")", ";", "if", "(", "GET_CODE", "(", "body", ")", "!=", "SET", "||", "GET_CODE", "(", "SET_SRC", "(", "body", ")", ")", "!=", "VEC_SELECT", "||", "GET_CODE", "(", "XEXP", "(", "SET_SRC", "(", "body", ")", ",", "0", ")", ")", "!=", "MEM", ")", "return", "false", ";", "rtx", "mem", "=", "XEXP", "(", "SET_SRC", "(", "body", ")", ",", "0", ")", ";", "rtx", "base_reg", "=", "XEXP", "(", "mem", ",", "0", ")", ";", "df_ref", "base_use", ";", "insn_info", "=", "DF_INSN_INFO_GET", "(", "def_insn", ")", ";", "FOR_EACH_INSN_INFO_USE", "(", "base_use", ",", "insn_info", ")", "{", "if", "(", "!", "rtx_equal_p", "(", "DF_REF_REG", "(", "base_use", ")", ",", "base_reg", ")", ")", "continue", ";", "struct", "df_link", "*", "base_def_link", "=", "DF_REF_CHAIN", "(", "base_use", ")", ";", "if", "(", "!", "base_def_link", "||", "base_def_link", "->", "next", ")", "return", "false", ";", "rtx", "tocrel_insn", "=", "DF_REF_INSN", "(", "base_def_link", "->", "ref", ")", ";", "rtx", "tocrel_body", "=", "PATTERN", "(", "tocrel_insn", ")", ";", "rtx", "base", ",", "offset", ";", "if", "(", "GET_CODE", "(", "tocrel_body", ")", "!=", "SET", ")", "return", "false", ";", "rtx", "tocrel_expr", "=", "SET_SRC", "(", "tocrel_body", ")", ";", "if", "(", "GET_CODE", "(", "tocrel_expr", ")", "==", "MEM", ")", "tocrel_expr", "=", "XEXP", "(", "tocrel_expr", ",", "0", ")", ";", "if", "(", "!", "toc_relative_expr_p", "(", "tocrel_expr", ",", "false", ")", ")", "return", "false", ";", "split_const", "(", "XVECEXP", "(", "tocrel_base", ",", "0", ",", "0", ")", ",", "&", "base", ",", "&", "offset", ")", ";", "if", "(", "GET_CODE", "(", "base", ")", "!=", "SYMBOL_REF", "||", "!", "CONSTANT_POOL_ADDRESS_P", "(", "base", ")", ")", "return", "false", ";", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["Return", "TRUE", "if", "insn", "is", "a", "swap", "fed", "by", "a", "load", "from", "the", "constant", "pool", "."], "TS_V_token": ["powerpcspe", "0", "0", "0", "0", "0", "0"], "File": "powerpcspe", "Func": "const_load_sequence_p", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1453, "Length": 359, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMAsmBackend", "::", "fixupNeedsRelaxation", "(", "const", "MCFixup", "&", "Fixup", ",", "uint64_t", "Value", ",", "const", "MCRelaxableFragment", "*", "DF", ",", "const", "MCAsmLayout", "&", "Layout", ")", "const", "{", "switch", "(", "(", "unsigned", ")", "Fixup", ".", "getKind", "(", ")", ")", "{", "case", "ARM", "::", "fixup_arm_thumb_br", ":", "{", "int64_t", "Offset", "=", "int64_t", "(", "Value", ")", "-", "4", ";", "return", "Offset", ">", "2046", "||", "Offset", "<", "-", "2048", ";", "}", "case", "ARM", "::", "fixup_arm_thumb_bcc", ":", "{", "int64_t", "Offset", "=", "int64_t", "(", "Value", ")", "-", "4", ";", "return", "Offset", ">", "254", "||", "Offset", "<", "-", "256", ";", "}", "case", "ARM", "::", "fixup_thumb_adr_pcrel_10", ":", "case", "ARM", "::", "fixup_arm_thumb_cp", ":", "{", "int64_t", "Offset", "=", "int64_t", "(", "Value", ")", "-", "4", ";", "return", "Offset", ">", "1020", "||", "Offset", "<", "0", "||", "Offset", "&", "3", ";", "}", "}", "llvm_unreachable", "(", "\"Unexpected fixup kind in fixupNeedsRelaxation()!\"", ")", ";", "}", ""], "natrual_language": ["Simple", "predicate", "for", "targets", "where", "!", "Resolved", "implies", "requiring", "relaxation", "."], "TS_V_token": ["ARM", "ARM", "ARM::fixup_arm_thumb_br", "4", "2046", "2048", "ARM::fixup_arm_thumb_bcc", "4", "254", "256", "ARM::fixup_thumb_adr_pcrel_10", "ARM::fixup_arm_thumb_cp", "4", "1020", "0", "3", "\"Unexpected fixup kind in fixupNeedsRelaxation()!\""], "File": "ARMAsmBackend (2)", "Func": "fixupNeedsRelaxation", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1454, "Length": 133, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "__inline", "unsigned", "long", "long", "sh_media_LDHI_L", "(", "void", "*", "p", ",", "int", "s", ")", "{", "return", "__builtin_sh_media_LDHI_L", "(", "(", "char", "*", ")", "p", "+", "s", ")", ";", "}", ""], "natrual_language": ["Misaligned", "Access", "Support", "intrinsics"], "TS_V_token": ["sh"], "File": "ushmedia1", "Func": "sh_media_LDHI_L", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1455, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "DecodeStatus", "SparcDisassembler", "::", "getInstruction", "(", "MCInst", "&", "Instr", ",", "uint64_t", "&", "Size", ",", "ArrayRef", "<", "uint8_t", ">", "Bytes", ",", "uint64_t", "Address", ",", "raw_ostream", "&", "VStream", ",", "raw_ostream", "&", "CStream", ")", "const", "{", "uint32_t", "Insn", ";", "DecodeStatus", "Result", "=", "readInstruction32", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn", ")", ";", "if", "(", "Result", "==", "MCDisassembler", "::", "Fail", ")", "return", "MCDisassembler", "::", "Fail", ";", "Result", "=", "decodeInstruction", "(", "DecoderTableSparc32", ",", "Instr", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Result", "!=", "MCDisassembler", "::", "Fail", ")", "{", "Size", "=", "4", ";", "return", "Result", ";", "}", "return", "MCDisassembler", "::", "Fail", ";", "}", ""], "natrual_language": ["Returns", "the", "disassembly", "of", "a", "single", "instruction", "."], "TS_V_token": ["Sparc", "Sparc", "Sparc", "4"], "File": "SparcDisassembler6", "Func": "getInstruction", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1456, "Length": 102, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "dump", "(", ")", "{", "dbgs", "(", ")", "<<", "\"X86ISelAddressMode \"", "<<", "this", "<<", "'\\n'", ";", "dbgs", "(", ")", "<<", "\"Base_Reg \"", ";", "if", "(", "Base_Reg", ".", "getNode", "(", ")", ")", "Base_Reg", ".", "getNode", "(", ")", "->", "dump", "(", ")", ";", "else", "dbgs", "(", ")", "<<", "\"nul\\n\"", ";", "if", "(", "BaseType", "==", "FrameIndexBase", ")", "dbgs", "(", ")", "<<", "\" Base.FrameIndex \"", "<<", "Base_FrameIndex", "<<", "'\\n'", ";", "dbgs", "(", ")", "<<", "\" Scale \"", "<<", "Scale", "<<", "'\\n'", "<<", "\"IndexReg \"", ";", "if", "(", "IndexReg", ".", "getNode", "(", ")", ")", "IndexReg", ".", "getNode", "(", ")", "->", "dump", "(", ")", ";", "else", "dbgs", "(", ")", "<<", "\"nul\\n\"", ";", "dbgs", "(", ")", "<<", "\" Disp \"", "<<", "Disp", "<<", "'\\n'", "<<", "\"GV \"", ";", "if", "(", "GV", ")", "GV", "->", "dump", "(", ")", ";", "else", "dbgs", "(", ")", "<<", "\"nul\"", ";", "dbgs", "(", ")", "<<", "\" CP \"", ";", "if", "(", "CP", ")", "CP", "->", "dump", "(", ")", ";", "else", "dbgs", "(", ")", "<<", "\"nul\"", ";", "dbgs", "(", ")", "<<", "'\\n'", "<<", "\"ES \"", ";", "if", "(", "ES", ")", "dbgs", "(", ")", "<<", "ES", ";", "else", "dbgs", "(", ")", "<<", "\"nul\"", ";", "dbgs", "(", ")", "<<", "\" MCSym \"", ";", "if", "(", "MCSym", ")", "dbgs", "(", ")", "<<", "MCSym", ";", "else", "dbgs", "(", ")", "<<", "\"nul\"", ";", "dbgs", "(", ")", "<<", "\" JT\"", "<<", "JT", "<<", "\" Align\"", "<<", "Align", "<<", "'\\n'", ";", "}", ""], "natrual_language": ["Dump", "the", "plan", "to", "stderr", "(", "for", "debugging", ")", "."], "TS_V_token": ["X86", "\"X86ISelAddressMode \"", "\"Base_Reg \"", "\"nul\\n\"", "\" Base.FrameIndex \"", "\" Scale \"", "\"IndexReg \"", "\"nul\\n\"", "\" Disp \"", "\"GV \"", "\"nul\"", "\" CP \"", "\"nul\"", "\"ES \"", "\"nul\"", "\" MCSym \"", "\"nul\"", "\" JT\"", "\" Align\""], "File": "X86ISelDAGToDAG122", "Func": "dump", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1457, "Length": 214, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "arm_output_iwmmxt_shift_immediate", "(", "const", "char", "*", "insn_name", ",", "rtx", "*", "operands", ",", "bool", "wror_or_wsra", ")", "{", "int", "shift", "=", "INTVAL", "(", "operands", "[", "2", "]", ")", ";", "char", "templ", "[", "50", "]", ";", "machine_mode", "opmode", "=", "GET_MODE", "(", "operands", "[", "0", "]", ")", ";", "gcc_assert", "(", "shift", ">=", "0", ")", ";", "if", "(", "(", "(", "opmode", "==", "V4HImode", ")", "&&", "(", "shift", ">", "15", ")", ")", "||", "(", "(", "opmode", "==", "V2SImode", ")", "&&", "(", "shift", ">", "31", ")", ")", "||", "(", "(", "opmode", "==", "DImode", ")", "&&", "(", "shift", ">", "63", ")", ")", ")", "{", "if", "(", "wror_or_wsra", ")", "{", "sprintf", "(", "templ", ",", "\"%s\\t%%0, %%1, #%d\"", ",", "insn_name", ",", "32", ")", ";", "output_asm_insn", "(", "templ", ",", "operands", ")", ";", "if", "(", "opmode", "==", "DImode", ")", "{", "sprintf", "(", "templ", ",", "\"%s\\t%%0, %%0, #%d\"", ",", "insn_name", ",", "32", ")", ";", "output_asm_insn", "(", "templ", ",", "operands", ")", ";", "}", "}", "else", "{", "sprintf", "(", "templ", ",", "\"wzero\\t%%0\"", ")", ";", "output_asm_insn", "(", "templ", ",", "operands", ")", ";", "}", "return", "\"\"", ";", "}", "if", "(", "(", "opmode", "==", "DImode", ")", "&&", "(", "shift", ">", "32", ")", ")", "{", "sprintf", "(", "templ", ",", "\"%s\\t%%0, %%1, #%d\"", ",", "insn_name", ",", "32", ")", ";", "output_asm_insn", "(", "templ", ",", "operands", ")", ";", "sprintf", "(", "templ", ",", "\"%s\\t%%0, %%0, #%d\"", ",", "insn_name", ",", "shift", "-", "32", ")", ";", "output_asm_insn", "(", "templ", ",", "operands", ")", ";", "}", "else", "{", "sprintf", "(", "templ", ",", "\"%s\\t%%0, %%1, #%d\"", ",", "insn_name", ",", "shift", ")", ";", "output_asm_insn", "(", "templ", ",", "operands", ")", ";", "}", "return", "\"\"", ";", "}", ""], "natrual_language": ["Output", "assembly", "for", "a", "WMMX", "immediate", "shift", "instruction", "."], "TS_V_token": ["arm", "2", "50", "0", "0", "15", "31", "63", "\"%s\\t%%0, %%1, #%d\"", "32", "\"%s\\t%%0, %%0, #%d\"", "32", "\"wzero\\t%%0\"", "\"\"", "32", "\"%s\\t%%0, %%1, #%d\"", "32", "\"%s\\t%%0, %%0, #%d\"", "32", "\"%s\\t%%0, %%1, #%d\"", "\"\""], "File": "arm", "Func": "arm_output_iwmmxt_shift_immediate", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1458, "Length": 248, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsInstPrinter", "::", "printRegName", "(", "raw_ostream", "&", "OS", ",", "unsigned", "RegNo", ")", "const", "{", "OS", "<<", "'$'", "<<", "StringRef", "(", "getRegisterName", "(", "RegNo", ")", ")", ".", "lower", "(", ")", ";", "}", ""], "natrual_language": ["Print", "the", "assembler", "register", "name", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsInstPrinter (2)", "Func": "printRegName", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1459, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "{", "return", "\"Local Dynamic TLS Access Clean-up\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["ARM64", "\"Local Dynamic TLS Access Clean-up\""], "File": "ARM64CleanupLocalDynamicTLSPass", "Func": "getPassName", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1460, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_expand_vpc_loongson_bcast", "(", "struct", "expand_vec_perm_d", "*", "d", ")", "{", "unsigned", "i", ",", "elt", ";", "rtx", "t0", ",", "t1", ";", "if", "(", "!", "(", "TARGET_HARD_FLOAT", "&&", "TARGET_LOONGSON_MMI", ")", ")", "return", "false", ";", "if", "(", "d", "->", "vmode", "!=", "V8QImode", ")", "return", "false", ";", "if", "(", "!", "d", "->", "one_vector_p", ")", "return", "false", ";", "elt", "=", "d", "->", "perm", "[", "0", "]", ";", "for", "(", "i", "=", "1", ";", "i", "<", "8", ";", "++", "i", ")", "if", "(", "d", "->", "perm", "[", "i", "]", "!=", "elt", ")", "return", "false", ";", "if", "(", "d", "->", "testing_p", ")", "return", "true", ";", "t0", "=", "gen_reg_rtx", "(", "V8QImode", ")", ";", "if", "(", "elt", "<", "4", ")", "emit_insn", "(", "gen_loongson_punpcklbh", "(", "t0", ",", "d", "->", "op0", ",", "d", "->", "op0", ")", ")", ";", "else", "emit_insn", "(", "gen_loongson_punpckhbh", "(", "t0", ",", "d", "->", "op0", ",", "d", "->", "op0", ")", ")", ";", "elt", "&=", "3", ";", "elt", "*=", "0x55", ";", "t1", "=", "gen_reg_rtx", "(", "V4HImode", ")", ";", "emit_insn", "(", "gen_loongson_pshufh", "(", "t1", ",", "gen_lowpart", "(", "V4HImode", ",", "t0", ")", ",", "force_reg", "(", "SImode", ",", "GEN_INT", "(", "elt", ")", ")", ")", ")", ";", "emit_move_insn", "(", "d", "->", "target", ",", "gen_lowpart", "(", "V8QImode", ",", "t1", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Recognize", "broadcast", "patterns", "for", "the", "Loongson", "."], "TS_V_token": ["mips", "0", "1", "8", "4", "3", "0x55"], "File": "mips", "Func": "mips_expand_vpc_loongson_bcast", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1461, "Length": 202, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "addRequired", "<", "MachineDominatorTree", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "MachineDominatorTree", ">", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["PowerPC"], "File": "PPCMIPeephole1", "Func": "getAnalysisUsage", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1462, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "mips_declare_object_name", "(", "FILE", "*", "stream", ",", "const", "char", "*", "name", ",", "tree", "decl", "ATTRIBUTE_UNUSED", ")", "{", "ASM_OUTPUT_TYPE_DIRECTIVE", "(", "stream", ",", "name", ",", "\"object\"", ")", ";", "size_directive_output", "=", "0", ";", "if", "(", "!", "flag_inhibit_size_directive", "&&", "DECL_SIZE", "(", "decl", ")", ")", "{", "HOST_WIDE_INT", "size", ";", "size_directive_output", "=", "1", ";", "size", "=", "int_size_in_bytes", "(", "TREE_TYPE", "(", "decl", ")", ")", ";", "ASM_OUTPUT_SIZE_DIRECTIVE", "(", "stream", ",", "name", ",", "size", ")", ";", "}", "mips_declare_object", "(", "stream", ",", "name", ",", "\"\"", ",", "\":\\n\"", ")", ";", "}", ""], "natrual_language": ["Implement", "ASM_DECLARE_OBJECT_NAME", ".", "This", "is", "like", "most", "of", "the", "standard", "ELF", "definitions", "except", "that", "it", "uses", "mips_declare_object", "(", ")", "to", "emit", "the", "label", "."], "TS_V_token": ["mips", "\"object\"", "0", "1", "\"\"", "\":\\n\""], "File": "mips3", "Func": "mips_declare_object_name", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1463, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "AArch64TargetLowering", "::", "getRegisterByName", "(", "const", "char", "*", "RegName", ",", "EVT", "VT", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "unsigned", "Reg", "=", "StringSwitch", "<", "unsigned", ">", "(", "RegName", ")", ".", "Case", "(", "\"sp\"", ",", "AArch64", "::", "SP", ")", ".", "Case", "(", "\"x18\"", ",", "AArch64", "::", "X18", ")", ".", "Case", "(", "\"w18\"", ",", "AArch64", "::", "W18", ")", ".", "Case", "(", "\"x20\"", ",", "AArch64", "::", "X20", ")", ".", "Case", "(", "\"w20\"", ",", "AArch64", "::", "W20", ")", ".", "Default", "(", "0", ")", ";", "if", "(", "(", "(", "Reg", "==", "AArch64", "::", "X18", "||", "Reg", "==", "AArch64", "::", "W18", ")", "&&", "!", "Subtarget", "->", "isX18Reserved", "(", ")", ")", "||", "(", "(", "Reg", "==", "AArch64", "::", "X20", "||", "Reg", "==", "AArch64", "::", "W20", ")", "&&", "!", "Subtarget", "->", "isX20Reserved", "(", ")", ")", ")", "Reg", "=", "0", ";", "if", "(", "Reg", ")", "return", "Reg", ";", "report_fatal_error", "(", "Twine", "(", "\"Invalid register name \\\"\"", "+", "StringRef", "(", "RegName", ")", "+", "\"\\\".\"", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "register", "ID", "of", "the", "name", "passed", "in", "."], "TS_V_token": ["AArch64", "AArch64", "\"sp\"", "AArch64::SP", "\"x18\"", "AArch64::X18", "\"w18\"", "AArch64::W18", "\"x20\"", "AArch64::X20", "\"w20\"", "AArch64::W20", "0", "AArch64::X18", "AArch64::W18", "AArch64::X20", "AArch64::W20", "0", "\"Invalid register name \\\"\"", "\"\\\".\""], "File": "AArch64ISelLowering", "Func": "getRegisterByName", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1464, "Length": 155, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "enum", "mips_loadgp_style", "mips_current_loadgp_style", "(", "void", ")", "{", "if", "(", "!", "TARGET_USE_GOT", "||", "cfun", "->", "machine", "->", "global_pointer", "==", "INVALID_REGNUM", ")", "return", "LOADGP_NONE", ";", "if", "(", "TARGET_RTP_PIC", ")", "return", "LOADGP_RTP", ";", "if", "(", "TARGET_ABSOLUTE_ABICALLS", ")", "return", "LOADGP_ABSOLUTE", ";", "return", "TARGET_NEWABI", "?", "LOADGP_NEWABI", ":", "LOADGP_OLDABI", ";", "}", ""], "natrual_language": ["Return", "the", "style", "of", "GP", "load", "sequence", "that", "is", "being", "used", "for", "the", "current", "function", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_current_loadgp_style", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1465, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86TargetLowering", "::", "getByValTypeAlignment", "(", "Type", "*", "Ty", ",", "const", "DataLayout", "&", "DL", ")", "const", "{", "if", "(", "Subtarget", "->", "is64Bit", "(", ")", ")", "{", "unsigned", "TyAlign", "=", "DL", ".", "getABITypeAlignment", "(", "Ty", ")", ";", "if", "(", "TyAlign", ">", "8", ")", "return", "TyAlign", ";", "return", "8", ";", "}", "unsigned", "Align", "=", "4", ";", "if", "(", "Subtarget", "->", "hasSSE1", "(", ")", ")", "getMaxByValAlign", "(", "Ty", ",", "Align", ")", ";", "return", "Align", ";", "}", ""], "natrual_language": ["Return", "the", "desired", "alignment", "for", "ByVal", "aggregate", "function", "arguments", "in", "the", "caller", "parameter", "area", "."], "TS_V_token": ["X86", "X86", "8", "8", "4"], "File": "X86ISelLowering (2)3", "Func": "getByValTypeAlignment", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1466, "Length": 72, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_parse_sve_width_string", "(", "const", "char", "*", "tune_string", ",", "struct", "tune_params", "*", "tune", ")", "{", "int", "width", "=", "-", "1", ";", "int", "n", "=", "sscanf", "(", "tune_string", ",", "\"%d\"", ",", "&", "width", ")", ";", "if", "(", "n", "==", "EOF", ")", "{", "error", "(", "\"invalid format for sve_width\"", ")", ";", "return", ";", "}", "switch", "(", "width", ")", "{", "case", "SVE_128", ":", "case", "SVE_256", ":", "case", "SVE_512", ":", "case", "SVE_1024", ":", "case", "SVE_2048", ":", "break", ";", "default", ":", "error", "(", "\"invalid sve_width value: %d\"", ",", "width", ")", ";", "}", "tune", "->", "sve_width", "=", "(", "enum", "aarch64_sve_vector_bits_enum", ")", "width", ";", "}", ""], "natrual_language": ["Parse", "the", "sve_width", "tuning", "moverride", "string", "in", "TUNE_STRING", ".", "Accept", "the", "valid", "SVE", "vector", "widths", "allowed", "by", "aarch64_sve_vector_bits_enum", "and", "use", "it", "to", "override", "sve_width", "in", "TUNE", "."], "TS_V_token": ["aarch64", "1", "\"%d\"", "\"invalid format for sve_width\"", "\"invalid sve_width value: %d\""], "File": "aarch64", "Func": "aarch64_parse_sve_width_string", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1467, "Length": 92, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mips_expand_ins_as_unaligned_store", "(", "rtx", "dest", ",", "rtx", "src", ",", "HOST_WIDE_INT", "width", ",", "HOST_WIDE_INT", "bitpos", ")", "{", "rtx", "left", ",", "right", ";", "machine_mode", "mode", ";", "if", "(", "!", "mips_get_unaligned_mem", "(", "dest", ",", "width", ",", "bitpos", ",", "&", "left", ",", "&", "right", ")", ")", "return", "false", ";", "mode", "=", "mode_for_size", "(", "width", ",", "MODE_INT", ",", "0", ")", ";", "src", "=", "gen_lowpart", "(", "mode", ",", "src", ")", ";", "if", "(", "mode", "==", "DImode", ")", "{", "emit_insn", "(", "gen_mov_sdl", "(", "dest", ",", "src", ",", "left", ")", ")", ";", "emit_insn", "(", "gen_mov_sdr", "(", "copy_rtx", "(", "dest", ")", ",", "copy_rtx", "(", "src", ")", ",", "right", ")", ")", ";", "}", "else", "{", "emit_insn", "(", "gen_mov_swl", "(", "dest", ",", "src", ",", "left", ")", ")", ";", "emit_insn", "(", "gen_mov_swr", "(", "copy_rtx", "(", "dest", ")", ",", "copy_rtx", "(", "src", ")", ",", "right", ")", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Try", "to", "use", "left/right", "stores", "to", "expand", "an", "``", "ins", "''", "pattern", ".", "DEST", ",", "WIDTH", ",", "BITPOS", "and", "SRC", "are", "the", "operands", "passed", "to", "the", "expander", ";", "the", "operation", "is", "the", "equivalent", "of", ":", "(", "set", "(", "zero_extract", "DEST", "WIDTH", "BITPOS", ")", "SRC", ")", "Return", "true", "on", "success", "."], "TS_V_token": ["mips", "0"], "File": "mips4", "Func": "mips_expand_ins_as_unaligned_store", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1468, "Length": 140, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMTargetLowering", "::", "getExceptionPointerRegister", "(", "const", "Constant", "*", "PersonalityFn", ")", "const", "{", "return", "Subtarget", "->", "useSjLjEH", "(", ")", "?", "ARM", "::", "NoRegister", ":", "ARM", "::", "R0", ";", "}", ""], "natrual_language": ["If", "a", "physical", "register", ",", "this", "returns", "the", "register", "that", "receives", "the", "exception", "address", "on", "entry", "to", "an", "EH", "pad", "."], "TS_V_token": ["ARM", "ARM", "ARM::NoRegister", "ARM::R0"], "File": "ARMISelLowering (2)2", "Func": "getExceptionPointerRegister", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1469, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsSEFrameLowering", "::", "spillCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "MachineBasicBlock", "*", "EntryBlock", "=", "&", "MF", "->", "front", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "STI", ".", "getInstrInfo", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "]", ".", "getReg", "(", ")", ";", "bool", "IsRAAndRetAddrIsTaken", "=", "(", "Reg", "==", "Mips", "::", "RA", "||", "Reg", "==", "Mips", "::", "RA_64", ")", "&&", "MF", "->", "getFrameInfo", "(", ")", "->", "isReturnAddressTaken", "(", ")", ";", "if", "(", "!", "IsRAAndRetAddrIsTaken", ")", "EntryBlock", "->", "addLiveIn", "(", "Reg", ")", ";", "bool", "IsKill", "=", "!", "IsRAAndRetAddrIsTaken", ";", "const", "TargetRegisterClass", "*", "RC", "=", "TRI", "->", "getMinimalPhysRegClass", "(", "Reg", ")", ";", "TII", ".", "storeRegToStackSlot", "(", "*", "EntryBlock", ",", "MI", ",", "Reg", ",", "IsKill", ",", "CSI", "[", "i", "]", ".", "getFrameIdx", "(", ")", ",", "RC", ",", "TRI", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["spillCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "spill", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "store", "instructions", "via", "storeRegToStackSlot", "(", ")", "."], "TS_V_token": ["Mips", "Mips", "0", "Mips::RA", "Mips::RA_64"], "File": "MipsSEFrameLowering13", "Func": "spillCalleeSavedRegisters", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1470, "Length": 188, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "char", "*", "aarch64_output_sve_scalar_inc_dec", "(", "rtx", "offset", ")", "{", "poly_int64", "offset_value", "=", "rtx_to_poly_int64", "(", "offset", ")", ";", "gcc_assert", "(", "offset_value", ".", "coeffs", "[", "0", "]", "==", "offset_value", ".", "coeffs", "[", "1", "]", ")", ";", "if", "(", "offset_value", ".", "coeffs", "[", "1", "]", ">", "0", ")", "return", "aarch64_output_sve_cnt_immediate", "(", "\"inc\"", ",", "\"%x0\"", ",", "AARCH64_SV_ALL", ",", "offset_value", ".", "coeffs", "[", "1", "]", ",", "0", ")", ";", "else", "return", "aarch64_output_sve_cnt_immediate", "(", "\"dec\"", ",", "\"%x0\"", ",", "AARCH64_SV_ALL", ",", "-", "offset_value", ".", "coeffs", "[", "1", "]", ",", "0", ")", ";", "}", ""], "natrual_language": ["Return", "the", "asm", "string", "for", "adding", "SVE", "INC/DEC", "immediate", "OFFSET", "to", "operand", "0", "."], "TS_V_token": ["aarch64", "0", "1", "1", "0", "\"inc\"", "\"%x0\"", "1", "0", "\"dec\"", "\"%x0\"", "1", "0"], "File": "aarch64", "Func": "aarch64_output_sve_scalar_inc_dec", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1471, "Length": 85, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64TargetLowering", "::", "isDesirableToCommuteWithShift", "(", "const", "SDNode", "*", "N", ")", "const", "{", "EVT", "VT", "=", "N", "->", "getValueType", "(", "0", ")", ";", "if", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "AND", "&&", "(", "VT", "==", "MVT", "::", "i32", "||", "VT", "==", "MVT", "::", "i64", ")", "&&", "isa", "<", "ConstantSDNode", ">", "(", "N", "->", "getOperand", "(", "1", ")", ")", ")", "{", "uint64_t", "TruncMask", "=", "N", "->", "getConstantOperandVal", "(", "1", ")", ";", "if", "(", "isMask_64", "(", "TruncMask", ")", "&&", "N", "->", "getOperand", "(", "0", ")", ".", "getOpcode", "(", ")", "==", "ISD", "::", "SRL", "&&", "isa", "<", "ConstantSDNode", ">", "(", "N", "->", "getOperand", "(", "0", ")", "->", "getOperand", "(", "1", ")", ")", ")", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "it", "is", "profitable", "to", "move", "this", "shift", "by", "a", "constant", "amount", "through", "its", "operand", ",", "adjusting", "any", "immediate", "operands", "as", "necessary", "to", "preserve", "semantics", "."], "TS_V_token": ["AArch64", "AArch64", "0", "ISD::AND", "MVT::i32", "MVT::i64", "1", "1", "0", "ISD::SRL", "0", "1"], "File": "AArch64ISelLowering (2)", "Func": "isDesirableToCommuteWithShift", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1472, "Length": 120, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "emit_save_or_restore_regs", "(", "int", "action", ")", "{", "HOST_WIDE_INT", "offset", ";", "rtx", "base", ";", "offset", "=", "frame_base_offset", "-", "apparent_fsize", ";", "if", "(", "offset", "<", "-", "4096", "||", "offset", "+", "num_gfregs", "*", "4", ">", "4095", ")", "{", "base", "=", "gen_rtx_REG", "(", "Pmode", ",", "1", ")", ";", "emit_move_insn", "(", "base", ",", "GEN_INT", "(", "offset", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "base", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "frame_base_reg", ",", "base", ")", ")", ")", ";", "offset", "=", "0", ";", "}", "else", "base", "=", "frame_base_reg", ";", "offset", "=", "save_or_restore_regs", "(", "0", ",", "8", ",", "base", ",", "offset", ",", "action", ")", ";", "save_or_restore_regs", "(", "32", ",", "TARGET_V9", "?", "96", ":", "64", ",", "base", ",", "offset", ",", "action", ")", ";", "}", ""], "natrual_language": ["Emit", "code", "to", "save", "call-saved", "registers", "."], "TS_V_token": ["sparc", "4096", "4", "4095", "1", "0", "0", "8", "32", "96", "64"], "File": "sparc3", "Func": "emit_save_or_restore_regs", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1473, "Length": 117, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "isFPRCopy", "(", "const", "MachineInstr", "&", "MI", ")", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "TargetOpcode", "::", "COPY", ":", "{", "Register", "DstReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "return", "AArch64", "::", "FPR128RegClass", ".", "contains", "(", "DstReg", ")", ";", "}", "case", "AArch64", "::", "ORRv16i8", ":", "if", "(", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", "==", "MI", ".", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ")", "{", "assert", "(", "MI", ".", "getDesc", "(", ")", ".", "getNumOperands", "(", ")", "==", "3", "&&", "MI", ".", "getOperand", "(", "0", ")", ".", "isReg", "(", ")", "&&", "\"invalid ORRv16i8 operands\"", ")", ";", "return", "true", ";", "}", "break", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Does", "this", "instruction", "rename", "an", "FPR", "without", "modifying", "bits", "?"], "TS_V_token": ["AArch64", "AArch64", "0", "AArch64::FPR128RegClass", "AArch64::ORRv16i8", "1", "2", "3", "0", "\"invalid ORRv16i8 operands\""], "File": "AArch64InstrInfo105", "Func": "isFPRCopy", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1474, "Length": 124, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "pa_output_64bit_ior", "(", "rtx", "*", "operands", ")", "{", "unsigned", "HOST_WIDE_INT", "mask", "=", "INTVAL", "(", "operands", "[", "2", "]", ")", ";", "int", "bs0", ",", "bs1", ",", "p", ",", "len", ";", "if", "(", "INTVAL", "(", "operands", "[", "2", "]", ")", "==", "0", ")", "return", "\"copy %1,%0\"", ";", "for", "(", "bs0", "=", "0", ";", "bs0", "<", "HOST_BITS_PER_WIDE_INT", ";", "bs0", "++", ")", "if", "(", "(", "mask", "&", "(", "(", "unsigned", "HOST_WIDE_INT", ")", "1", "<<", "bs0", ")", ")", "!=", "0", ")", "break", ";", "for", "(", "bs1", "=", "bs0", ";", "bs1", "<", "HOST_BITS_PER_WIDE_INT", ";", "bs1", "++", ")", "if", "(", "(", "mask", "&", "(", "(", "unsigned", "HOST_WIDE_INT", ")", "1", "<<", "bs1", ")", ")", "==", "0", ")", "break", ";", "gcc_assert", "(", "bs1", "==", "HOST_BITS_PER_WIDE_INT", "||", "(", "(", "unsigned", "HOST_WIDE_INT", ")", "1", "<<", "bs1", ")", ">", "mask", ")", ";", "p", "=", "63", "-", "bs0", ";", "len", "=", "bs1", "-", "bs0", ";", "operands", "[", "2", "]", "=", "GEN_INT", "(", "p", ")", ";", "operands", "[", "3", "]", "=", "GEN_INT", "(", "len", ")", ";", "return", "\"depdi -1,%2,%3,%0\"", ";", "}", ""], "natrual_language": ["Return", "a", "string", "to", "perform", "a", "bitwise-and", "of", "operands", "[", "1", "]", "with", "operands", "[", "2", "]", "storing", "the", "result", "in", "operands", "[", "0", "]", "."], "TS_V_token": ["pa", "2", "2", "0", "\"copy %1,%0\"", "0", "1", "0", "1", "0", "1", "63", "2", "3", "\"depdi -1,%2,%3,%0\""], "File": "pa", "Func": "pa_output_64bit_ior", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1475, "Length": 167, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "struct", "machine_function", "*", "mips_init_machine_status", "(", "void", ")", "{", "return", "(", "(", "struct", "machine_function", "*", ")", "ggc_alloc_cleared", "(", "sizeof", "(", "struct", "machine_function", ")", ")", ")", ";", "}", ""], "natrual_language": ["Allocate", "a", "chunk", "of", "memory", "for", "per-function", "machine-dependent", "data", "."], "TS_V_token": ["mips"], "File": "mips3", "Func": "mips_init_machine_status", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1476, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsFastISel", "::", "fastEmitInst_rr", "(", "unsigned", "MachineInstOpcode", ",", "const", "TargetRegisterClass", "*", "RC", ",", "unsigned", "Op0", ",", "unsigned", "Op1", ")", "{", "if", "(", "MachineInstOpcode", "==", "Mips", "::", "MUL", ")", "{", "unsigned", "ResultReg", "=", "createResultReg", "(", "RC", ")", ";", "const", "MCInstrDesc", "&", "II", "=", "TII", ".", "get", "(", "MachineInstOpcode", ")", ";", "Op0", "=", "constrainOperandRegClass", "(", "II", ",", "Op0", ",", "II", ".", "getNumDefs", "(", ")", ")", ";", "Op1", "=", "constrainOperandRegClass", "(", "II", ",", "Op1", ",", "II", ".", "getNumDefs", "(", ")", "+", "1", ")", ";", "BuildMI", "(", "*", "FuncInfo", ".", "MBB", ",", "FuncInfo", ".", "InsertPt", ",", "DbgLoc", ",", "II", ",", "ResultReg", ")", ".", "addReg", "(", "Op0", ")", ".", "addReg", "(", "Op1", ")", ".", "addReg", "(", "Mips", "::", "HI0", ",", "RegState", "::", "ImplicitDefine", "|", "RegState", "::", "Dead", ")", ".", "addReg", "(", "Mips", "::", "LO0", ",", "RegState", "::", "ImplicitDefine", "|", "RegState", "::", "Dead", ")", ";", "return", "ResultReg", ";", "}", "return", "FastISel", "::", "fastEmitInst_rr", "(", "MachineInstOpcode", ",", "RC", ",", "Op0", ",", "Op1", ")", ";", "}", ""], "natrual_language": ["Emit", "a", "MachineInstr", "with", "two", "register", "operands", "and", "a", "result", "register", "in", "the", "given", "register", "class", "."], "TS_V_token": ["Mips", "Mips", "Mips::MUL", "1", "Mips::HI0", "Mips::LO0"], "File": "MipsFastISel26", "Func": "fastEmitInst_rr", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1477, "Length": 158, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "arm_split_compare_and_swap", "(", "rtx", "operands", "[", "]", ")", "{", "rtx", "rval", ",", "mem", ",", "oldval", ",", "newval", ",", "neg_bval", ",", "mod_s_rtx", ";", "machine_mode", "mode", ";", "enum", "memmodel", "mod_s", ",", "mod_f", ";", "bool", "is_weak", ";", "rtx_code_label", "*", "label1", ",", "*", "label2", ";", "rtx", "x", ",", "cond", ";", "rval", "=", "operands", "[", "1", "]", ";", "mem", "=", "operands", "[", "2", "]", ";", "oldval", "=", "operands", "[", "3", "]", ";", "newval", "=", "operands", "[", "4", "]", ";", "is_weak", "=", "(", "operands", "[", "5", "]", "!=", "const0_rtx", ")", ";", "mod_s_rtx", "=", "operands", "[", "6", "]", ";", "mod_s", "=", "memmodel_from_int", "(", "INTVAL", "(", "mod_s_rtx", ")", ")", ";", "mod_f", "=", "memmodel_from_int", "(", "INTVAL", "(", "operands", "[", "7", "]", ")", ")", ";", "neg_bval", "=", "TARGET_THUMB1", "?", "operands", "[", "0", "]", ":", "operands", "[", "8", "]", ";", "mode", "=", "GET_MODE", "(", "mem", ")", ";", "bool", "is_armv8_sync", "=", "arm_arch8", "&&", "is_mm_sync", "(", "mod_s", ")", ";", "bool", "use_acquire", "=", "TARGET_HAVE_LDACQ", "&&", "aarch_mm_needs_acquire", "(", "mod_s_rtx", ")", ";", "bool", "use_release", "=", "TARGET_HAVE_LDACQ", "&&", "aarch_mm_needs_release", "(", "mod_s_rtx", ")", ";", "if", "(", "is_armv8_sync", ")", "use_acquire", "=", "false", ";", "if", "(", "!", "(", "use_acquire", "||", "use_release", ")", ")", "arm_pre_atomic_barrier", "(", "mod_s", ")", ";", "label1", "=", "NULL", ";", "if", "(", "!", "is_weak", ")", "{", "label1", "=", "gen_label_rtx", "(", ")", ";", "emit_label", "(", "label1", ")", ";", "}", "label2", "=", "gen_label_rtx", "(", ")", ";", "arm_emit_load_exclusive", "(", "mode", ",", "rval", ",", "mem", ",", "use_acquire", ")", ";", "if", "(", "TARGET_32BIT", ")", "{", "cond", "=", "arm_gen_compare_reg", "(", "NE", ",", "rval", ",", "oldval", ",", "neg_bval", ")", ";", "x", "=", "gen_rtx_NE", "(", "VOIDmode", ",", "cond", ",", "const0_rtx", ")", ";", "x", "=", "gen_rtx_IF_THEN_ELSE", "(", "VOIDmode", ",", "x", ",", "gen_rtx_LABEL_REF", "(", "Pmode", ",", "label2", ")", ",", "pc_rtx", ")", ";", "emit_unlikely_jump", "(", "gen_rtx_SET", "(", "pc_rtx", ",", "x", ")", ")", ";", "}", "else", "{", "cond", "=", "gen_rtx_NE", "(", "VOIDmode", ",", "rval", ",", "oldval", ")", ";", "if", "(", "thumb1_cmpneg_operand", "(", "oldval", ",", "SImode", ")", ")", "{", "rtx", "src", "=", "rval", ";", "if", "(", "!", "satisfies_constraint_L", "(", "oldval", ")", ")", "{", "gcc_assert", "(", "satisfies_constraint_J", "(", "oldval", ")", ")", ";", "emit_move_insn", "(", "neg_bval", ",", "rval", ")", ";", "src", "=", "neg_bval", ";", "}", "emit_unlikely_jump", "(", "gen_cbranchsi4_neg_late", "(", "neg_bval", ",", "src", ",", "oldval", ",", "label2", ",", "cond", ")", ")", ";", "}", "else", "{", "emit_move_insn", "(", "neg_bval", ",", "const1_rtx", ")", ";", "emit_unlikely_jump", "(", "gen_cbranchsi4_insn", "(", "cond", ",", "rval", ",", "oldval", ",", "label2", ")", ")", ";", "}", "}", "arm_emit_store_exclusive", "(", "mode", ",", "neg_bval", ",", "mem", ",", "newval", ",", "use_release", ")", ";", "if", "(", "TARGET_32BIT", ")", "{", "cond", "=", "gen_rtx_REG", "(", "CCmode", ",", "CC_REGNUM", ")", ";", "x", "=", "gen_rtx_COMPARE", "(", "CCmode", ",", "neg_bval", ",", "const0_rtx", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "cond", ",", "x", ")", ")", ";", "}", "if", "(", "!", "is_weak", ")", "{", "x", "=", "gen_rtx_NE", "(", "VOIDmode", ",", "neg_bval", ",", "const0_rtx", ")", ";", "emit_unlikely_jump", "(", "gen_cbranchsi4", "(", "x", ",", "neg_bval", ",", "const0_rtx", ",", "label1", ")", ")", ";", "}", "if", "(", "!", "is_mm_relaxed", "(", "mod_f", ")", ")", "emit_label", "(", "label2", ")", ";", "if", "(", "is_armv8_sync", "||", "!", "(", "use_acquire", "||", "use_release", ")", ")", "arm_post_atomic_barrier", "(", "mod_s", ")", ";", "if", "(", "is_mm_relaxed", "(", "mod_f", ")", ")", "emit_label", "(", "label2", ")", ";", "}", ""], "natrual_language": ["Split", "a", "compare", "and", "swap", "pattern", ".", "It", "is", "IMPLEMENTATION", "DEFINED", "whether", "another", "memory", "store", "between", "the", "load-exclusive", "and", "store-exclusive", "can", "reset", "the", "monitor", "from", "Exclusive", "to", "Open", "state", ".", "This", "means", "we", "must", "wait", "until", "after", "reload", "to", "split", "the", "pattern", ",", "lest", "we", "get", "a", "register", "spill", "in", "the", "middle", "of", "the", "atomic", "sequence", "."], "TS_V_token": ["arm", "1", "2", "3", "4", "5", "6", "7", "0", "8"], "File": "arm", "Func": "arm_split_compare_and_swap", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1478, "Length": 507, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "iq2000_address_cost", "(", "rtx", "addr", ",", "machine_mode", "mode", ",", "addr_space_t", "as", ",", "bool", "speed", ")", "{", "switch", "(", "GET_CODE", "(", "addr", ")", ")", "{", "case", "LO_SUM", ":", "return", "1", ";", "case", "LABEL_REF", ":", "return", "2", ";", "case", "CONST", ":", "{", "rtx", "offset", "=", "const0_rtx", ";", "addr", "=", "eliminate_constant_term", "(", "XEXP", "(", "addr", ",", "0", ")", ",", "&", "offset", ")", ";", "if", "(", "GET_CODE", "(", "addr", ")", "==", "LABEL_REF", ")", "return", "2", ";", "if", "(", "GET_CODE", "(", "addr", ")", "!=", "SYMBOL_REF", ")", "return", "4", ";", "if", "(", "!", "SMALL_INT", "(", "offset", ")", ")", "return", "2", ";", "}", "case", "SYMBOL_REF", ":", "return", "SYMBOL_REF_FLAG", "(", "addr", ")", "?", "1", ":", "2", ";", "case", "PLUS", ":", "{", "rtx", "plus0", "=", "XEXP", "(", "addr", ",", "0", ")", ";", "rtx", "plus1", "=", "XEXP", "(", "addr", ",", "1", ")", ";", "if", "(", "GET_CODE", "(", "plus0", ")", "!=", "REG", "&&", "GET_CODE", "(", "plus1", ")", "==", "REG", ")", "plus0", "=", "XEXP", "(", "addr", ",", "1", ")", ",", "plus1", "=", "XEXP", "(", "addr", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "plus0", ")", "!=", "REG", ")", "break", ";", "switch", "(", "GET_CODE", "(", "plus1", ")", ")", "{", "case", "CONST_INT", ":", "return", "SMALL_INT", "(", "plus1", ")", "?", "1", ":", "2", ";", "case", "CONST", ":", "case", "SYMBOL_REF", ":", "case", "LABEL_REF", ":", "case", "HIGH", ":", "case", "LO_SUM", ":", "return", "iq2000_address_cost", "(", "plus1", ",", "mode", ",", "as", ",", "speed", ")", "+", "1", ";", "default", ":", "break", ";", "}", "}", "default", ":", "break", ";", "}", "return", "4", ";", "}", ""], "natrual_language": ["Provide", "the", "costs", "of", "an", "addressing", "mode", "that", "contains", "ADDR", "."], "TS_V_token": ["iq2000", "1", "2", "0", "2", "4", "2", "1", "2", "0", "1", "1", "0", "1", "2", "1", "4"], "File": "iq2000", "Func": "iq2000_address_cost", "Target": "iq2000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1479, "Length": 244, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MLxExpansion", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "Fn", ")", "{", "if", "(", "skipFunction", "(", "Fn", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "TII", "=", "static_cast", "<", "const", "ARMBaseInstrInfo", "*", ">", "(", "Fn", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "Fn", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "MRI", "=", "&", "Fn", ".", "getRegInfo", "(", ")", ";", "const", "ARMSubtarget", "*", "STI", "=", "&", "Fn", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "if", "(", "!", "STI", "->", "expandMLx", "(", ")", ")", "return", "false", ";", "isLikeA9", "=", "STI", "->", "isLikeA9", "(", ")", "||", "STI", "->", "isSwift", "(", ")", ";", "isSwift", "=", "STI", "->", "isSwift", "(", ")", ";", "bool", "Modified", "=", "false", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "Fn", ")", "Modified", "|=", "ExpandFPMLxInstructions", "(", "MBB", ")", ";", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM"], "File": "MLxExpansionPass11", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1480, "Length": 138, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StackOffset", "X86FrameLowering", "::", "getFrameIndexReference", "(", "const", "MachineFunction", "&", "MF", ",", "int", "FI", ",", "Register", "&", "FrameReg", ")", "const", "{", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "bool", "IsFixed", "=", "MFI", ".", "isFixedObjectIndex", "(", "FI", ")", ";", "if", "(", "TRI", "->", "hasBasePointer", "(", "MF", ")", ")", "FrameReg", "=", "IsFixed", "?", "TRI", "->", "getFramePtr", "(", ")", ":", "TRI", "->", "getBaseRegister", "(", ")", ";", "else", "if", "(", "TRI", "->", "hasStackRealignment", "(", "MF", ")", ")", "FrameReg", "=", "IsFixed", "?", "TRI", "->", "getFramePtr", "(", ")", ":", "TRI", "->", "getStackRegister", "(", ")", ";", "else", "FrameReg", "=", "TRI", "->", "getFrameRegister", "(", "MF", ")", ";", "int", "Offset", "=", "MFI", ".", "getObjectOffset", "(", "FI", ")", "-", "getOffsetOfLocalArea", "(", ")", ";", "const", "X86MachineFunctionInfo", "*", "X86FI", "=", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", ";", "unsigned", "CSSize", "=", "X86FI", "->", "getCalleeSavedFrameSize", "(", ")", ";", "uint64_t", "StackSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "bool", "IsWin64Prologue", "=", "MF", ".", "getTarget", "(", ")", ".", "getMCAsmInfo", "(", ")", "->", "usesWindowsCFI", "(", ")", ";", "int64_t", "FPDelta", "=", "0", ";", "if", "(", "MF", ".", "getFunction", "(", ")", ".", "getCallingConv", "(", ")", "==", "CallingConv", "::", "X86_INTR", "&&", "Offset", ">=", "0", ")", "{", "Offset", "+=", "getOffsetOfLocalArea", "(", ")", ";", "}", "if", "(", "IsWin64Prologue", ")", "{", "assert", "(", "!", "MFI", ".", "hasCalls", "(", ")", "||", "(", "StackSize", "%", "16", ")", "==", "8", ")", ";", "uint64_t", "FrameSize", "=", "StackSize", "-", "SlotSize", ";", "if", "(", "X86FI", "->", "getRestoreBasePointer", "(", ")", ")", "FrameSize", "+=", "SlotSize", ";", "uint64_t", "NumBytes", "=", "FrameSize", "-", "CSSize", ";", "uint64_t", "SEHFrameOffset", "=", "calculateSetFPREG", "(", "NumBytes", ")", ";", "if", "(", "FI", "&&", "FI", "==", "X86FI", "->", "getFAIndex", "(", ")", ")", "return", "StackOffset", "::", "getFixed", "(", "-", "SEHFrameOffset", ")", ";", "FPDelta", "=", "FrameSize", "-", "SEHFrameOffset", ";", "assert", "(", "(", "!", "MFI", ".", "hasCalls", "(", ")", "||", "(", "FPDelta", "%", "16", ")", "==", "0", ")", "&&", "\"FPDelta isn't aligned per the Win64 ABI!\"", ")", ";", "}", "if", "(", "FrameReg", "==", "TRI", "->", "getFramePtr", "(", ")", ")", "{", "Offset", "+=", "SlotSize", ";", "Offset", "+=", "FPDelta", ";", "int", "TailCallReturnAddrDelta", "=", "X86FI", "->", "getTCReturnAddrDelta", "(", ")", ";", "if", "(", "TailCallReturnAddrDelta", "<", "0", ")", "Offset", "-=", "TailCallReturnAddrDelta", ";", "return", "StackOffset", "::", "getFixed", "(", "Offset", ")", ";", "}", "if", "(", "TRI", "->", "hasStackRealignment", "(", "MF", ")", "||", "TRI", "->", "hasBasePointer", "(", "MF", ")", ")", "assert", "(", "isAligned", "(", "MFI", ".", "getObjectAlign", "(", "FI", ")", ",", "-", "(", "Offset", "+", "StackSize", ")", ")", ")", ";", "return", "StackOffset", "::", "getFixed", "(", "Offset", "+", "StackSize", ")", ";", "}", ""], "natrual_language": ["getFrameIndexReference", "-", "This", "method", "should", "return", "the", "base", "register", "and", "offset", "used", "to", "reference", "a", "frame", "index", "location", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86", "0", "X86", "0", "16", "8", "X86", "X86", "16", "0", "\"FPDelta isn't aligned per the Win64 ABI!\"", "X86", "0"], "File": "X86FrameLowering (2)3", "Func": "getFrameIndexReference", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1481, "Length": 398, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseInstrInfo", "::", "analyzeCompare", "(", "const", "MachineInstr", "&", "MI", ",", "unsigned", "&", "SrcReg", ",", "unsigned", "&", "SrcReg2", ",", "int", "&", "CmpMask", ",", "int", "&", "CmpValue", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "ARM", "::", "CMPri", ":", "case", "ARM", "::", "t2CMPri", ":", "SrcReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "0", ";", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ";", "return", "true", ";", "case", "ARM", "::", "CMPrr", ":", "case", "ARM", "::", "t2CMPrr", ":", "SrcReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "0", ";", "return", "true", ";", "case", "ARM", "::", "TSTri", ":", "case", "ARM", "::", "t2TSTri", ":", "SrcReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "0", ";", "CmpMask", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ";", "CmpValue", "=", "0", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["analyzeCompare", "-", "For", "a", "comparison", "instruction", ",", "return", "the", "source", "registers", "in", "SrcReg", "and", "SrcReg2", "if", "having", "two", "register", "operands", ",", "and", "the", "value", "it", "compares", "against", "in", "CmpValue", "."], "TS_V_token": ["ARM", "ARM", "ARM::CMPri", "ARM::t2CMPri", "0", "0", "0", "1", "ARM::CMPrr", "ARM::t2CMPrr", "0", "1", "0", "0", "ARM::TSTri", "ARM::t2TSTri", "0", "0", "1", "0"], "File": "ARMBaseInstrInfo (2)2", "Func": "analyzeCompare", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1482, "Length": 189, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Value", "*", "ARMTargetLowering", "::", "emitLoadLinked", "(", "IRBuilder", "<", ">", "&", "Builder", ",", "Value", "*", "Addr", ",", "AtomicOrdering", "Ord", ")", "const", "{", "Module", "*", "M", "=", "Builder", ".", "GetInsertBlock", "(", ")", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "Type", "*", "ValTy", "=", "cast", "<", "PointerType", ">", "(", "Addr", "->", "getType", "(", ")", ")", "->", "getElementType", "(", ")", ";", "bool", "IsAcquire", "=", "isAcquireOrStronger", "(", "Ord", ")", ";", "if", "(", "ValTy", "->", "getPrimitiveSizeInBits", "(", ")", "==", "64", ")", "{", "Intrinsic", "::", "ID", "Int", "=", "IsAcquire", "?", "Intrinsic", "::", "arm_ldaexd", ":", "Intrinsic", "::", "arm_ldrexd", ";", "Function", "*", "Ldrex", "=", "llvm", "::", "Intrinsic", "::", "getDeclaration", "(", "M", ",", "Int", ")", ";", "Addr", "=", "Builder", ".", "CreateBitCast", "(", "Addr", ",", "Type", "::", "getInt8PtrTy", "(", "M", "->", "getContext", "(", ")", ")", ")", ";", "Value", "*", "LoHi", "=", "Builder", ".", "CreateCall", "(", "Ldrex", ",", "Addr", ",", "\"lohi\"", ")", ";", "Value", "*", "Lo", "=", "Builder", ".", "CreateExtractValue", "(", "LoHi", ",", "0", ",", "\"lo\"", ")", ";", "Value", "*", "Hi", "=", "Builder", ".", "CreateExtractValue", "(", "LoHi", ",", "1", ",", "\"hi\"", ")", ";", "if", "(", "!", "Subtarget", "->", "isLittle", "(", ")", ")", "std", "::", "swap", "(", "Lo", ",", "Hi", ")", ";", "Lo", "=", "Builder", ".", "CreateZExt", "(", "Lo", ",", "ValTy", ",", "\"lo64\"", ")", ";", "Hi", "=", "Builder", ".", "CreateZExt", "(", "Hi", ",", "ValTy", ",", "\"hi64\"", ")", ";", "return", "Builder", ".", "CreateOr", "(", "Lo", ",", "Builder", ".", "CreateShl", "(", "Hi", ",", "ConstantInt", "::", "get", "(", "ValTy", ",", "32", ")", ")", ",", "\"val64\"", ")", ";", "}", "Type", "*", "Tys", "[", "]", "=", "{", "Addr", "->", "getType", "(", ")", "}", ";", "Intrinsic", "::", "ID", "Int", "=", "IsAcquire", "?", "Intrinsic", "::", "arm_ldaex", ":", "Intrinsic", "::", "arm_ldrex", ";", "Function", "*", "Ldrex", "=", "llvm", "::", "Intrinsic", "::", "getDeclaration", "(", "M", ",", "Int", ",", "Tys", ")", ";", "return", "Builder", ".", "CreateTruncOrBitCast", "(", "Builder", ".", "CreateCall", "(", "Ldrex", ",", "Addr", ")", ",", "cast", "<", "PointerType", ">", "(", "Addr", "->", "getType", "(", ")", ")", "->", "getElementType", "(", ")", ")", ";", "}", ""], "natrual_language": ["Perform", "a", "load-linked", "operation", "on", "Addr", ",", "returning", "a", "``", "Value", "*", "''", "with", "the", "corresponding", "pointee", "type", "."], "TS_V_token": ["ARM", "ARM", "64", "Intrinsic::ID", "Intrinsic::arm_ldaexd", "Intrinsic::arm_ldrexd", "Intrinsic::getDeclaration", "\"lohi\"", "0", "\"lo\"", "1", "\"hi\"", "\"lo64\"", "\"hi64\"", "32", "\"val64\"", "Intrinsic::ID", "Intrinsic::arm_ldaex", "Intrinsic::arm_ldrex", "Intrinsic::getDeclaration"], "File": "ARMISelLowering11", "Func": "emitLoadLinked", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1483, "Length": 322, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMGlobalMerge", "::", "runOnFunction", "(", "Function", "&", "F", ")", "{", "return", "false", ";", "}", ""], "natrual_language": ["runOnFunction", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "the", "per-function", "processing", "of", "the", "pass", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMGlobalMerge", "Func": "runOnFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1484, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_split_logical_inner", "(", "rtx", "dest", ",", "rtx", "op1", ",", "rtx", "op2", ",", "enum", "rtx_code", "code", ",", "machine_mode", "mode", ",", "bool", "complement_final_p", ",", "bool", "complement_op1_p", ",", "bool", "complement_op2_p", ")", "{", "rtx", "bool_rtx", ";", "if", "(", "op2", "&&", "CONST_INT_P", "(", "op2", ")", "&&", "(", "mode", "==", "SImode", "||", "(", "mode", "==", "DImode", "&&", "TARGET_POWERPC64", ")", ")", "&&", "!", "complement_final_p", "&&", "!", "complement_op1_p", "&&", "!", "complement_op2_p", ")", "{", "HOST_WIDE_INT", "mask", "=", "GET_MODE_MASK", "(", "mode", ")", ";", "HOST_WIDE_INT", "value", "=", "INTVAL", "(", "op2", ")", "&", "mask", ";", "if", "(", "code", "==", "AND", ")", "{", "if", "(", "value", "==", "0", ")", "{", "emit_insn", "(", "gen_rtx_SET", "(", "dest", ",", "const0_rtx", ")", ")", ";", "return", ";", "}", "else", "if", "(", "value", "==", "mask", ")", "{", "if", "(", "!", "rtx_equal_p", "(", "dest", ",", "op1", ")", ")", "emit_insn", "(", "gen_rtx_SET", "(", "dest", ",", "op1", ")", ")", ";", "return", ";", "}", "}", "else", "if", "(", "code", "==", "IOR", "||", "code", "==", "XOR", ")", "{", "if", "(", "value", "==", "0", ")", "{", "if", "(", "!", "rtx_equal_p", "(", "dest", ",", "op1", ")", ")", "emit_insn", "(", "gen_rtx_SET", "(", "dest", ",", "op1", ")", ")", ";", "return", ";", "}", "}", "}", "if", "(", "code", "==", "AND", "&&", "mode", "==", "SImode", "&&", "!", "complement_final_p", "&&", "!", "complement_op1_p", "&&", "!", "complement_op2_p", ")", "{", "emit_insn", "(", "gen_andsi3", "(", "dest", ",", "op1", ",", "op2", ")", ")", ";", "return", ";", "}", "if", "(", "complement_op1_p", ")", "op1", "=", "gen_rtx_NOT", "(", "mode", ",", "op1", ")", ";", "if", "(", "complement_op2_p", ")", "op2", "=", "gen_rtx_NOT", "(", "mode", ",", "op2", ")", ";", "if", "(", "!", "complement_op1_p", "&&", "complement_op2_p", ")", "std", "::", "swap", "(", "op1", ",", "op2", ")", ";", "bool_rtx", "=", "(", "(", "code", "==", "NOT", ")", "?", "gen_rtx_NOT", "(", "mode", ",", "op1", ")", ":", "gen_rtx_fmt_ee", "(", "code", ",", "mode", ",", "op1", ",", "op2", ")", ")", ";", "if", "(", "complement_final_p", ")", "bool_rtx", "=", "gen_rtx_NOT", "(", "mode", ",", "bool_rtx", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "dest", ",", "bool_rtx", ")", ")", ";", "}", ""], "natrual_language": ["Helper", "function", "for", "rs6000_split_logical", "to", "emit", "a", "logical", "instruction", "after", "spliting", "the", "operation", "to", "single", "GPR", "registers", ".", "DEST", "is", "the", "destination", "register", ".", "OP1", "and", "OP2", "are", "the", "input", "source", "registers", ".", "CODE", "is", "the", "base", "operation", "(", "AND", ",", "IOR", ",", "XOR", ",", "NOT", ")", ".", "MODE", "is", "the", "machine", "mode", ".", "If", "COMPLEMENT_FINAL_P", "is", "true", ",", "wrap", "the", "whole", "operation", "with", "NOT", ".", "If", "COMPLEMENT_OP1_P", "is", "true", ",", "wrap", "operand1", "with", "NOT", ".", "If", "COMPLEMENT_OP2_P", "is", "true", ",", "wrap", "operand2", "with", "NOT", "."], "TS_V_token": ["rs6000", "0", "0"], "File": "rs6000", "Func": "rs6000_split_logical_inner", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1485, "Length": 316, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getBranchTargetOpValue", "(", "const", "MachineInstr", "&", "MI", ",", "unsigned", "Op", ")", "const", "{", "return", "0", ";", "}", ""], "natrual_language": ["getBranchTargetOpValue", "-", "Return", "binary", "encoding", "of", "the", "branch", "target", "operand", "."], "TS_V_token": ["ARM", "0"], "File": "ARMCodeEmitter", "Func": "getBranchTargetOpValue", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1486, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "constant_address_p", "(", "rtx", "x", ")", "{", "return", "CONSTANT_P", "(", "x", ")", "&&", "ix86_legitimate_address_p", "(", "Pmode", ",", "x", ",", "1", ")", ";", "}", ""], "natrual_language": ["Determine", "if", "a", "given", "RTX", "is", "a", "valid", "constant", "address", "."], "TS_V_token": ["i386", "1"], "File": "i386", "Func": "constant_address_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1487, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "SystemZTargetLowering", "::", "getRegForInlineAsmConstraint", "(", "const", "std", "::", "string", "&", "Constraint", ",", "MVT", "VT", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "default", ":", "break", ";", "case", "'d'", ":", "case", "'r'", ":", "if", "(", "VT", "==", "MVT", "::", "i64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "GR64BitRegClass", ")", ";", "else", "if", "(", "VT", "==", "MVT", "::", "i128", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "GR128BitRegClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "GR32BitRegClass", ")", ";", "case", "'a'", ":", "if", "(", "VT", "==", "MVT", "::", "i64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "ADDR64BitRegClass", ")", ";", "else", "if", "(", "VT", "==", "MVT", "::", "i128", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "ADDR128BitRegClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "ADDR32BitRegClass", ")", ";", "case", "'h'", ":", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "GRH32BitRegClass", ")", ";", "case", "'f'", ":", "if", "(", "VT", "==", "MVT", "::", "f64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "FP64BitRegClass", ")", ";", "else", "if", "(", "VT", "==", "MVT", "::", "f128", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "FP128BitRegClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "FP32BitRegClass", ")", ";", "}", "}", "if", "(", "Constraint", "[", "0", "]", "==", "'{'", ")", "{", "if", "(", "Constraint", "[", "1", "]", "==", "'r'", ")", "{", "if", "(", "VT", "==", "MVT", "::", "i32", ")", "return", "parseRegisterNumber", "(", "Constraint", ",", "&", "SystemZ", "::", "GR32BitRegClass", ",", "SystemZMC", "::", "GR32Regs", ")", ";", "if", "(", "VT", "==", "MVT", "::", "i128", ")", "return", "parseRegisterNumber", "(", "Constraint", ",", "&", "SystemZ", "::", "GR128BitRegClass", ",", "SystemZMC", "::", "GR128Regs", ")", ";", "return", "parseRegisterNumber", "(", "Constraint", ",", "&", "SystemZ", "::", "GR64BitRegClass", ",", "SystemZMC", "::", "GR64Regs", ")", ";", "}", "if", "(", "Constraint", "[", "1", "]", "==", "'f'", ")", "{", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "return", "parseRegisterNumber", "(", "Constraint", ",", "&", "SystemZ", "::", "FP32BitRegClass", ",", "SystemZMC", "::", "FP32Regs", ")", ";", "if", "(", "VT", "==", "MVT", "::", "f128", ")", "return", "parseRegisterNumber", "(", "Constraint", ",", "&", "SystemZ", "::", "FP128BitRegClass", ",", "SystemZMC", "::", "FP128Regs", ")", ";", "return", "parseRegisterNumber", "(", "Constraint", ",", "&", "SystemZ", "::", "FP64BitRegClass", ",", "SystemZMC", "::", "FP64Regs", ")", ";", "}", "}", "return", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "Constraint", ",", "VT", ")", ";", "}", ""], "natrual_language": ["Given", "a", "physical", "register", "constraint", "(", "e.g", "."], "TS_V_token": ["SystemZ", "SystemZ", "1", "0", "MVT::i64", "0U", "SystemZ::GR64BitRegClass", "MVT::i128", "0U", "SystemZ::GR128BitRegClass", "0U", "SystemZ::GR32BitRegClass", "MVT::i64", "0U", "SystemZ::ADDR64BitRegClass", "MVT::i128", "0U", "SystemZ::ADDR128BitRegClass", "0U", "SystemZ::ADDR32BitRegClass", "0U", "SystemZ::GRH32BitRegClass", "MVT::f64", "0U", "SystemZ::FP64BitRegClass", "MVT::f128", "0U", "SystemZ::FP128BitRegClass", "0U", "SystemZ::FP32BitRegClass", "0", "1", "MVT::i32", "SystemZ::GR32BitRegClass", "SystemZMC::GR32Regs", "MVT::i128", "SystemZ::GR128BitRegClass", "SystemZMC::GR128Regs", "SystemZ::GR64BitRegClass", "SystemZMC::GR64Regs", "1", "MVT::f32", "SystemZ::FP32BitRegClass", "SystemZMC::FP32Regs", "MVT::f128", "SystemZ::FP128BitRegClass", "SystemZMC::FP128Regs", "SystemZ::FP64BitRegClass", "SystemZMC::FP64Regs"], "File": "SystemZISelLowering103", "Func": "getRegForInlineAsmConstraint", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1488, "Length": 413, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MMIXInstrInfo", "::", "expandPostRAPseudo", "(", "MachineInstr", "&", "MI", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "false", ";", "case", "MMIX", "::", "LDI", ":", "expandLDImm", "(", "MI", ")", ";", "return", "true", ";", "case", "MMIX", "::", "LDA", ":", "expandLDAddr", "(", "MI", ")", ";", "return", "true", ";", "}", "}", ""], "natrual_language": ["This", "function", "is", "called", "for", "all", "pseudo", "instructions", "that", "remain", "after", "register", "allocation", "."], "TS_V_token": ["MMIX", "MMIX", "MMIX::LDI", "MMIX::LDA"], "File": "MMIXInstrInfo", "Func": "expandPostRAPseudo", "Target": "MMIX", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1489, "Length": 53, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "ConstraintType", "XNCMTargetLowering", "::", "getConstraintType", "(", "const", "std", "::", "string", "&", "Constraint", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'r'", ":", "return", "C_RegisterClass", ";", "default", ":", "break", ";", "}", "}", "return", "TargetLowering", "::", "getConstraintType", "(", "Constraint", ")", ";", "}", ""], "natrual_language": ["Given", "a", "constraint", "letter", ",", "return", "the", "type", "of", "constraint", "for", "this", "target", "."], "TS_V_token": ["XNCM", "XNCM", "1", "0"], "File": "XNCMISelLowering", "Func": "getConstraintType", "Target": "XNCM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1490, "Length": 56, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMAsmBackend", "::", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "MCInst", "&", "Res", ")", "const", "{", "unsigned", "RelaxedOp", "=", "getRelaxedOpcode", "(", "Inst", ".", "getOpcode", "(", ")", ")", ";", "if", "(", "RelaxedOp", "==", "Inst", ".", "getOpcode", "(", ")", ")", "{", "SmallString", "<", "256", ">", "Tmp", ";", "raw_svector_ostream", "OS", "(", "Tmp", ")", ";", "Inst", ".", "dump_pretty", "(", "OS", ")", ";", "OS", "<<", "\"\\n\"", ";", "report_fatal_error", "(", "\"unexpected instruction to relax: \"", "+", "OS", ".", "str", "(", ")", ")", ";", "}", "if", "(", "(", "Inst", ".", "getOpcode", "(", ")", "==", "ARM", "::", "tCBZ", "||", "Inst", ".", "getOpcode", "(", ")", "==", "ARM", "::", "tCBNZ", ")", "&&", "RelaxedOp", "==", "ARM", "::", "tHINT", ")", "{", "Res", ".", "setOpcode", "(", "RelaxedOp", ")", ";", "Res", ".", "addOperand", "(", "MCOperand", "::", "CreateImm", "(", "0", ")", ")", ";", "Res", ".", "addOperand", "(", "MCOperand", "::", "CreateImm", "(", "14", ")", ")", ";", "Res", ".", "addOperand", "(", "MCOperand", "::", "CreateReg", "(", "0", ")", ")", ";", "return", ";", "}", "Res", "=", "Inst", ";", "Res", ".", "setOpcode", "(", "RelaxedOp", ")", ";", "}", ""], "natrual_language": ["Relax", "the", "instruction", "in", "the", "given", "fragment", "to", "the", "next", "wider", "instruction", "."], "TS_V_token": ["ARM", "ARM", "256", "\"\\n\"", "\"unexpected instruction to relax: \"", "ARM::tCBZ", "ARM::tCBNZ", "ARM::tHINT", "0", "14", "0"], "File": "ARMAsmBackend14", "Func": "relaxInstruction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1491, "Length": 163, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SHUXIFrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "true", ";", "}", ""], "natrual_language": ["hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "."], "TS_V_token": ["SHUXI", "SHUXI"], "File": "SHUXIFrameLowering", "Func": "hasFP", "Target": "SHUXI", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1492, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86FlagsCopyLoweringPass", "::", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "{", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["X86", "X86"], "File": "X86FlagsCopyLowering2", "Func": "getAnalysisUsage", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1493, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64FrameLowering", "::", "canUseRedZone", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "if", "(", "!", "EnableRedZone", ")", "return", "false", ";", "if", "(", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "Attribute", "::", "NoRedZone", ")", ")", "return", "false", ";", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "AArch64FunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "AArch64FunctionInfo", ">", "(", ")", ";", "uint64_t", "NumBytes", "=", "AFI", "->", "getLocalStackSize", "(", ")", ";", "return", "!", "(", "MFI", ".", "hasCalls", "(", ")", "||", "hasFP", "(", "MF", ")", "||", "NumBytes", ">", "128", "||", "getSVEStackSize", "(", "MF", ")", ")", ";", "}", ""], "natrual_language": ["Can", "this", "function", "use", "the", "red", "zone", "for", "local", "allocations", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "128"], "File": "AArch64FrameLowering100", "Func": "canUseRedZone", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1494, "Length": 97, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "arm_attr_length_move_neon", "(", "rtx_insn", "*", "insn", ")", "{", "rtx", "reg", ",", "mem", ",", "addr", ";", "int", "load", ";", "machine_mode", "mode", ";", "extract_insn_cached", "(", "insn", ")", ";", "if", "(", "REG_P", "(", "recog_data", ".", "operand", "[", "0", "]", ")", "&&", "REG_P", "(", "recog_data", ".", "operand", "[", "1", "]", ")", ")", "{", "mode", "=", "GET_MODE", "(", "recog_data", ".", "operand", "[", "0", "]", ")", ";", "switch", "(", "mode", ")", "{", "case", "EImode", ":", "case", "OImode", ":", "return", "8", ";", "case", "CImode", ":", "return", "12", ";", "case", "XImode", ":", "return", "16", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "load", "=", "REG_P", "(", "recog_data", ".", "operand", "[", "0", "]", ")", ";", "reg", "=", "recog_data", ".", "operand", "[", "!", "load", "]", ";", "mem", "=", "recog_data", ".", "operand", "[", "load", "]", ";", "gcc_assert", "(", "MEM_P", "(", "mem", ")", ")", ";", "mode", "=", "GET_MODE", "(", "reg", ")", ";", "addr", "=", "XEXP", "(", "mem", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "addr", ")", "==", "CONST", "&&", "GET_CODE", "(", "XEXP", "(", "addr", ",", "0", ")", ")", "==", "PLUS", ")", "addr", "=", "XEXP", "(", "addr", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "addr", ")", "==", "LABEL_REF", "||", "GET_CODE", "(", "addr", ")", "==", "PLUS", ")", "{", "int", "insns", "=", "HARD_REGNO_NREGS", "(", "REGNO", "(", "reg", ")", ",", "mode", ")", "/", "2", ";", "return", "insns", "*", "4", ";", "}", "else", "return", "4", ";", "}", ""], "natrual_language": ["Compute", "and", "return", "the", "length", "of", "neon_mov", "<", "mode", ">", ",", "where", "<", "mode", ">", "is", "one", "of", "VSTRUCT", "modes", ":", "EI", ",", "OI", ",", "CI", "or", "XI", "."], "TS_V_token": ["arm", "0", "1", "0", "8", "12", "16", "0", "0", "0", "0", "2", "4", "4"], "File": "arm4", "Func": "arm_attr_length_move_neon", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1495, "Length": 223, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "add_sp_insn_p", "(", "rtx_insn", "*", "insn", ")", "{", "rtx", "pat", ";", "if", "(", "!", "single_set", "(", "insn", ")", ")", "return", "0", ";", "pat", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "SET_DEST", "(", "pat", ")", ")", "!=", "REG", ")", "return", "0", ";", "if", "(", "REGNO", "(", "SET_DEST", "(", "pat", ")", ")", "!=", "SP_REGNO", ")", "return", "0", ";", "if", "(", "GET_CODE", "(", "SET_SRC", "(", "pat", ")", ")", "!=", "PLUS", ")", "return", "0", ";", "if", "(", "GET_CODE", "(", "XEXP", "(", "SET_SRC", "(", "pat", ")", ",", "0", ")", ")", "!=", "REG", ")", "return", "0", ";", "if", "(", "REGNO", "(", "XEXP", "(", "SET_SRC", "(", "pat", ")", ",", "0", ")", ")", "!=", "SP_REGNO", ")", "return", "0", ";", "if", "(", "GET_CODE", "(", "XEXP", "(", "SET_SRC", "(", "pat", ")", ",", "1", ")", ")", "!=", "CONST_INT", ")", "return", "0", ";", "return", "INTVAL", "(", "XEXP", "(", "SET_SRC", "(", "pat", ")", ",", "1", ")", ")", ";", "}", ""], "natrual_language": ["If", "this", "insn", "adjusts", "the", "stack", ",", "return", "the", "adjustment", ",", "else", "return", "zero", "."], "TS_V_token": ["mep", "0", "0", "0", "0", "0", "0", "0", "0", "1", "0", "1"], "File": "mep", "Func": "add_sp_insn_p", "Target": "mep", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1496, "Length": 150, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMELFMCAsmInfo", "::", "setUseIntegratedAssembler", "(", "bool", "Value", ")", "{", "UseIntegratedAssembler", "=", "Value", ";", "if", "(", "!", "UseIntegratedAssembler", ")", "{", "DwarfRegNumForCFI", "=", "true", ";", "}", "}", ""], "natrual_language": ["Set", "whether", "assembly", "(", "inline", "or", "otherwise", ")", "should", "be", "parsed", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMMCAsmInfo (2)", "Func": "setUseIntegratedAssembler", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1497, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_emit_restore_regs_using_mov", "(", "rtx", "pointer", ",", "HOST_WIDE_INT", "offset", ",", "int", "maybe_eh_return", ")", "{", "int", "regno", ";", "rtx", "base_address", "=", "gen_rtx_MEM", "(", "Pmode", ",", "pointer", ")", ";", "for", "(", "regno", "=", "0", ";", "regno", "<", "FIRST_PSEUDO_REGISTER", ";", "regno", "++", ")", "if", "(", "ix86_save_reg", "(", "regno", ",", "maybe_eh_return", ")", ")", "{", "if", "(", "TARGET_64BIT", "&&", "offset", "!=", "trunc_int_for_mode", "(", "offset", ",", "SImode", ")", ")", "{", "rtx", "r11", ";", "r11", "=", "gen_rtx_REG", "(", "DImode", ",", "FIRST_REX_INT_REG", "+", "3", ")", ";", "emit_move_insn", "(", "r11", ",", "GEN_INT", "(", "offset", ")", ")", ";", "emit_insn", "(", "gen_adddi3", "(", "r11", ",", "r11", ",", "pointer", ")", ")", ";", "base_address", "=", "gen_rtx_MEM", "(", "Pmode", ",", "r11", ")", ";", "offset", "=", "0", ";", "}", "emit_move_insn", "(", "gen_rtx_REG", "(", "Pmode", ",", "regno", ")", ",", "adjust_address", "(", "base_address", ",", "Pmode", ",", "offset", ")", ")", ";", "offset", "+=", "UNITS_PER_WORD", ";", "}", "}", ""], "natrual_language": ["Emit", "code", "to", "restore", "saved", "registers", "using", "MOV", "insns", ".", "First", "register", "is", "restored", "from", "POINTER", "+", "OFFSET", "."], "TS_V_token": ["i386", "0", "3", "0"], "File": "i3863", "Func": "ix86_emit_restore_regs_using_mov", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1498, "Length": 139, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "rs6000_function_value", "(", "const_tree", "valtype", ",", "const_tree", "fn_decl_or_type", "ATTRIBUTE_UNUSED", ",", "bool", "outgoing", "ATTRIBUTE_UNUSED", ")", "{", "machine_mode", "mode", ";", "unsigned", "int", "regno", ";", "machine_mode", "elt_mode", ";", "int", "n_elts", ";", "if", "(", "TARGET_MACHO", "&&", "rs6000_darwin64_struct_check_p", "(", "TYPE_MODE", "(", "valtype", ")", ",", "valtype", ")", ")", "{", "CUMULATIVE_ARGS", "valcum", ";", "rtx", "valret", ";", "valcum", ".", "words", "=", "0", ";", "valcum", ".", "fregno", "=", "FP_ARG_MIN_REG", ";", "valcum", ".", "vregno", "=", "ALTIVEC_ARG_MIN_REG", ";", "valret", "=", "rs6000_darwin64_record_arg", "(", "&", "valcum", ",", "valtype", ",", "true", ",", "true", ")", ";", "if", "(", "valret", ")", "return", "valret", ";", "}", "mode", "=", "TYPE_MODE", "(", "valtype", ")", ";", "if", "(", "rs6000_discover_homogeneous_aggregate", "(", "mode", ",", "valtype", ",", "&", "elt_mode", ",", "&", "n_elts", ")", ")", "{", "int", "first_reg", ",", "n_regs", ";", "if", "(", "SCALAR_FLOAT_MODE_NOT_VECTOR_P", "(", "elt_mode", ")", ")", "{", "first_reg", "=", "(", "elt_mode", "==", "TDmode", ")", "?", "FP_ARG_RETURN", "+", "1", ":", "FP_ARG_RETURN", ";", "n_regs", "=", "(", "GET_MODE_SIZE", "(", "elt_mode", ")", "+", "7", ")", ">>", "3", ";", "}", "else", "{", "first_reg", "=", "ALTIVEC_ARG_RETURN", ";", "n_regs", "=", "1", ";", "}", "return", "rs6000_parallel_return", "(", "mode", ",", "n_elts", ",", "elt_mode", ",", "first_reg", ",", "n_regs", ")", ";", "}", "if", "(", "TARGET_32BIT", "&&", "TARGET_POWERPC64", ")", "switch", "(", "mode", ")", "{", "default", ":", "break", ";", "case", "DImode", ":", "case", "SCmode", ":", "case", "DCmode", ":", "case", "TCmode", ":", "int", "count", "=", "GET_MODE_SIZE", "(", "mode", ")", "/", "4", ";", "return", "rs6000_parallel_return", "(", "mode", ",", "count", ",", "SImode", ",", "GP_ARG_RETURN", ",", "1", ")", ";", "}", "if", "(", "(", "INTEGRAL_TYPE_P", "(", "valtype", ")", "&&", "GET_MODE_BITSIZE", "(", "mode", ")", "<", "(", "TARGET_32BIT", "?", "32", ":", "64", ")", ")", "||", "POINTER_TYPE_P", "(", "valtype", ")", ")", "mode", "=", "TARGET_32BIT", "?", "SImode", ":", "DImode", ";", "if", "(", "DECIMAL_FLOAT_MODE_P", "(", "mode", ")", "&&", "TARGET_HARD_FLOAT", "&&", "TARGET_FPRS", ")", "regno", "=", "(", "mode", "==", "TDmode", ")", "?", "FP_ARG_RETURN", "+", "1", ":", "FP_ARG_RETURN", ";", "else", "if", "(", "SCALAR_FLOAT_TYPE_P", "(", "valtype", ")", "&&", "TARGET_HARD_FLOAT", "&&", "TARGET_FPRS", "&&", "!", "FLOAT128_VECTOR_P", "(", "mode", ")", "&&", "(", "(", "TARGET_SINGLE_FLOAT", "&&", "(", "mode", "==", "SFmode", ")", ")", "||", "TARGET_DOUBLE_FLOAT", ")", ")", "regno", "=", "FP_ARG_RETURN", ";", "else", "if", "(", "TREE_CODE", "(", "valtype", ")", "==", "COMPLEX_TYPE", "&&", "targetm", ".", "calls", ".", "split_complex_arg", ")", "return", "rs6000_complex_function_value", "(", "mode", ")", ";", "else", "if", "(", "(", "TREE_CODE", "(", "valtype", ")", "==", "VECTOR_TYPE", "||", "FLOAT128_VECTOR_P", "(", "mode", ")", ")", "&&", "TARGET_ALTIVEC", "&&", "TARGET_ALTIVEC_ABI", "&&", "ALTIVEC_OR_VSX_VECTOR_MODE", "(", "mode", ")", ")", "regno", "=", "ALTIVEC_ARG_RETURN", ";", "else", "if", "(", "TARGET_E500_DOUBLE", "&&", "TARGET_HARD_FLOAT", "&&", "(", "mode", "==", "DFmode", "||", "mode", "==", "DCmode", "||", "FLOAT128_IBM_P", "(", "mode", ")", "||", "mode", "==", "TCmode", ")", ")", "return", "spe_build_register_parallel", "(", "mode", ",", "GP_ARG_RETURN", ")", ";", "else", "regno", "=", "GP_ARG_RETURN", ";", "return", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "}", ""], "natrual_language": ["Define", "how", "to", "find", "the", "value", "returned", "by", "a", "function", ".", "VALTYPE", "is", "the", "data", "type", "of", "the", "value", "(", "as", "a", "tree", ")", ".", "If", "the", "precise", "function", "being", "called", "is", "known", ",", "FUNC", "is", "its", "FUNCTION_DECL", ";", "otherwise", ",", "FUNC", "is", "0", ".", "On", "the", "SPE", ",", "both", "FPs", "and", "vectors", "are", "returned", "in", "r3", ".", "On", "RS/6000", "an", "integer", "value", "is", "in", "r3", "and", "a", "floating-point", "value", "is", "in", "fp1", ",", "unless", "-msoft-float", "."], "TS_V_token": ["rs6000", "0", "1", "7", "3", "1", "4", "1", "32", "64", "1"], "File": "rs60006", "Func": "rs6000_function_value", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1499, "Length": 428, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "arm_emit_call_insn", "(", "rtx", "pat", ",", "rtx", "addr", ",", "bool", "sibcall", ")", "{", "rtx", "insn", ";", "insn", "=", "emit_call_insn", "(", "pat", ")", ";", "if", "(", "TARGET_VXWORKS_RTP", "&&", "flag_pic", "&&", "!", "sibcall", "&&", "GET_CODE", "(", "addr", ")", "==", "SYMBOL_REF", "&&", "(", "SYMBOL_REF_DECL", "(", "addr", ")", "?", "!", "targetm", ".", "binds_local_p", "(", "SYMBOL_REF_DECL", "(", "addr", ")", ")", ":", "!", "SYMBOL_REF_LOCAL_P", "(", "addr", ")", ")", ")", "{", "require_pic_register", "(", ")", ";", "use_reg", "(", "&", "CALL_INSN_FUNCTION_USAGE", "(", "insn", ")", ",", "cfun", "->", "machine", "->", "pic_reg", ")", ";", "}", "if", "(", "TARGET_AAPCS_BASED", ")", "{", "rtx", "*", "fusage", "=", "&", "CALL_INSN_FUNCTION_USAGE", "(", "insn", ")", ";", "clobber_reg", "(", "fusage", ",", "gen_rtx_REG", "(", "word_mode", ",", "IP_REGNUM", ")", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "a", "call", "instruction", "with", "pattern", "PAT", ".", "ADDR", "is", "the", "address", "of", "the", "call", "target", "."], "TS_V_token": ["arm"], "File": "arm4", "Func": "arm_emit_call_insn", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1500, "Length": 113, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "CCAssignFn", "*", "AArch64TargetLowering", "::", "CCAssignFnForCall", "(", "CallingConv", "::", "ID", "CC", ",", "bool", "IsVarArg", ")", "const", "{", "switch", "(", "CC", ")", "{", "default", ":", "report_fatal_error", "(", "\"Unsupported calling convention.\"", ")", ";", "case", "CallingConv", "::", "WebKit_JS", ":", "return", "CC_AArch64_WebKit_JS", ";", "case", "CallingConv", "::", "GHC", ":", "return", "CC_AArch64_GHC", ";", "case", "CallingConv", "::", "C", ":", "case", "CallingConv", "::", "Fast", ":", "case", "CallingConv", "::", "PreserveMost", ":", "case", "CallingConv", "::", "CXX_FAST_TLS", ":", "case", "CallingConv", "::", "Swift", ":", "if", "(", "Subtarget", "->", "isTargetWindows", "(", ")", "&&", "IsVarArg", ")", "return", "CC_AArch64_Win64_VarArg", ";", "if", "(", "!", "Subtarget", "->", "isTargetDarwin", "(", ")", ")", "return", "CC_AArch64_AAPCS", ";", "return", "IsVarArg", "?", "CC_AArch64_DarwinPCS_VarArg", ":", "CC_AArch64_DarwinPCS", ";", "case", "CallingConv", "::", "Win64", ":", "return", "IsVarArg", "?", "CC_AArch64_Win64_VarArg", ":", "CC_AArch64_AAPCS", ";", "case", "CallingConv", "::", "AArch64_VectorCall", ":", "return", "CC_AArch64_AAPCS", ";", "}", "}", ""], "natrual_language": ["Selects", "the", "correct", "CCAssignFn", "for", "a", "given", "CallingConvention", "value", "."], "TS_V_token": ["AArch64", "AArch64", "\"Unsupported calling convention.\"", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64ISelLowering104", "Func": "CCAssignFnForCall", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1501, "Length": 123, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZHazardRecognizer", "::", "Reset", "(", ")", "{", "CurrGroupSize", "=", "0", ";", "clearProcResCounters", "(", ")", ";", "GrpCount", "=", "0", ";", "LastFPdOpCycleIdx", "=", "UINT_MAX", ";", "LastEmittedMI", "=", "nullptr", ";", "DEBUG", "(", "CurGroupDbg", "=", "\"\"", ";", ")", ";", "}", ""], "natrual_language": ["Reset", "the", "unwind", "opcode", "assembler", "."], "TS_V_token": ["SystemZ", "SystemZ", "0", "0", "\"\""], "File": "SystemZHazardRecognizer1", "Func": "Reset", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1502, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMTTIImpl", "::", "getUnrollingPreferences", "(", "Loop", "*", "L", ",", "ScalarEvolution", "&", "SE", ",", "TTI", "::", "UnrollingPreferences", "&", "UP", ")", "{", "if", "(", "!", "ST", "->", "isMClass", "(", ")", ")", "return", "BasicTTIImplBase", "::", "getUnrollingPreferences", "(", "L", ",", "SE", ",", "UP", ")", ";", "UP", ".", "OptSizeThreshold", "=", "0", ";", "UP", ".", "PartialOptSizeThreshold", "=", "0", ";", "if", "(", "L", "->", "getHeader", "(", ")", "->", "getParent", "(", ")", "->", "hasOptSize", "(", ")", ")", "return", ";", "if", "(", "!", "ST", "->", "isThumb2", "(", ")", ")", "return", ";", "SmallVector", "<", "BasicBlock", "*", ",", "4", ">", "ExitingBlocks", ";", "L", "->", "getExitingBlocks", "(", "ExitingBlocks", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Loop has:\\n\"", "<<", "\"Blocks: \"", "<<", "L", "->", "getNumBlocks", "(", ")", "<<", "\"\\n\"", "<<", "\"Exit blocks: \"", "<<", "ExitingBlocks", ".", "size", "(", ")", "<<", "\"\\n\"", ")", ";", "if", "(", "ExitingBlocks", ".", "size", "(", ")", ">", "2", ")", "return", ";", "if", "(", "ST", "->", "hasBranchPredictor", "(", ")", "&&", "L", "->", "getNumBlocks", "(", ")", ">", "4", ")", "return", ";", "unsigned", "Cost", "=", "0", ";", "for", "(", "auto", "*", "BB", ":", "L", "->", "getBlocks", "(", ")", ")", "{", "for", "(", "auto", "&", "I", ":", "*", "BB", ")", "{", "if", "(", "isa", "<", "CallInst", ">", "(", "I", ")", "||", "isa", "<", "InvokeInst", ">", "(", "I", ")", ")", "{", "ImmutableCallSite", "CS", "(", "&", "I", ")", ";", "if", "(", "const", "Function", "*", "F", "=", "CS", ".", "getCalledFunction", "(", ")", ")", "{", "if", "(", "!", "isLoweredToCall", "(", "F", ")", ")", "continue", ";", "}", "return", ";", "}", "SmallVector", "<", "const", "Value", "*", ",", "4", ">", "Operands", "(", "I", ".", "value_op_begin", "(", ")", ",", "I", ".", "value_op_end", "(", ")", ")", ";", "Cost", "+=", "getUserCost", "(", "&", "I", ",", "Operands", ")", ";", "}", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Cost of loop: \"", "<<", "Cost", "<<", "\"\\n\"", ")", ";", "UP", ".", "Partial", "=", "true", ";", "UP", ".", "Runtime", "=", "true", ";", "UP", ".", "UpperBound", "=", "true", ";", "UP", ".", "UnrollRemainder", "=", "true", ";", "UP", ".", "DefaultUnrollRuntimeCount", "=", "4", ";", "UP", ".", "UnrollAndJam", "=", "true", ";", "UP", ".", "UnrollAndJamInnerLoopThreshold", "=", "60", ";", "if", "(", "Cost", "<", "12", ")", "UP", ".", "Force", "=", "true", ";", "}", ""], "natrual_language": ["Get", "target-customized", "preferences", "for", "the", "generic", "loop", "unrolling", "transformation", "."], "TS_V_token": ["ARM", "ARM", "0", "0", "4", "\"Loop has:\\n\"", "\"Blocks: \"", "\"\\n\"", "\"Exit blocks: \"", "\"\\n\"", "2", "4", "0", "4", "\"Cost of loop: \"", "\"\\n\"", "4", "60", "12"], "File": "ARMTargetTransformInfo2", "Func": "getUnrollingPreferences", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1503, "Length": 342, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isShuffleMaskLegal", "(", "const", "SmallVectorImpl", "<", "int", ">", "&", "M", ",", "EVT", "VT", ")", "const", "{", "if", "(", "!", "VT", ".", "isSimple", "(", ")", ")", "return", "false", ";", "MVT", "SVT", "=", "VT", ".", "getSimpleVT", "(", ")", ";", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "64", ")", "return", "false", ";", "if", "(", "(", "SVT", ".", "is128BitVector", "(", ")", "&&", "Subtarget", "->", "hasSSSE3", "(", ")", ")", "||", "(", "SVT", ".", "is256BitVector", "(", ")", "&&", "Subtarget", "->", "hasInt256", "(", ")", ")", ")", "{", "bool", "isLegal", "=", "true", ";", "for", "(", "unsigned", "I", "=", "0", ",", "E", "=", "M", ".", "size", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "if", "(", "M", "[", "I", "]", ">=", "(", "int", ")", "SVT", ".", "getVectorNumElements", "(", ")", "||", "ShuffleCrosses128bitLane", "(", "SVT", ",", "I", ",", "M", "[", "I", "]", ")", ")", "{", "isLegal", "=", "false", ";", "break", ";", "}", "}", "if", "(", "isLegal", ")", "return", "true", ";", "}", "return", "(", "SVT", ".", "getVectorNumElements", "(", ")", "==", "2", "||", "ShuffleVectorSDNode", "::", "isSplatMask", "(", "&", "M", "[", "0", "]", ",", "VT", ")", "||", "isMOVLMask", "(", "M", ",", "SVT", ")", "||", "isMOVHLPSMask", "(", "M", ",", "SVT", ")", "||", "isSHUFPMask", "(", "M", ",", "SVT", ")", "||", "isPSHUFDMask", "(", "M", ",", "SVT", ")", "||", "isPSHUFHWMask", "(", "M", ",", "SVT", ",", "Subtarget", "->", "hasInt256", "(", ")", ")", "||", "isPSHUFLWMask", "(", "M", ",", "SVT", ",", "Subtarget", "->", "hasInt256", "(", ")", ")", "||", "isPALIGNRMask", "(", "M", ",", "SVT", ",", "Subtarget", ")", "||", "isUNPCKLMask", "(", "M", ",", "SVT", ",", "Subtarget", "->", "hasInt256", "(", ")", ")", "||", "isUNPCKHMask", "(", "M", ",", "SVT", ",", "Subtarget", "->", "hasInt256", "(", ")", ")", "||", "isUNPCKL_v_undef_Mask", "(", "M", ",", "SVT", ",", "Subtarget", "->", "hasInt256", "(", ")", ")", "||", "isUNPCKH_v_undef_Mask", "(", "M", ",", "SVT", ",", "Subtarget", "->", "hasInt256", "(", ")", ")", "||", "isBlendMask", "(", "M", ",", "SVT", ",", "Subtarget", "->", "hasSSE41", "(", ")", ",", "Subtarget", "->", "hasInt256", "(", ")", ")", ")", ";", "}", ""], "natrual_language": ["Targets", "can", "use", "this", "to", "indicate", "that", "they", "only", "support", "some", "VECTOR_SHUFFLE", "operations", ",", "those", "with", "specific", "masks", "."], "TS_V_token": ["X86", "X86", "64", "0", "2", "0"], "File": "X86ISelLowering105", "Func": "isShuffleMaskLegal", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1504, "Length": 315, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86InstrInfo", "::", "expandPostRAPseudo", "(", "MachineBasicBlock", "::", "iterator", "MI", ")", "const", "{", "bool", "HasAVX", "=", "Subtarget", ".", "hasAVX", "(", ")", ";", "MachineInstrBuilder", "MIB", "(", "*", "MI", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ",", "MI", ")", ";", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "case", "X86", "::", "MOV32r0", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "XOR32rr", ")", ")", ";", "case", "X86", "::", "SETB_C8r", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "SBB8rr", ")", ")", ";", "case", "X86", "::", "SETB_C16r", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "SBB16rr", ")", ")", ";", "case", "X86", "::", "SETB_C32r", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "SBB32rr", ")", ")", ";", "case", "X86", "::", "SETB_C64r", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "SBB64rr", ")", ")", ";", "case", "X86", "::", "V_SET0", ":", "case", "X86", "::", "FsFLD0SS", ":", "case", "X86", "::", "FsFLD0SD", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "HasAVX", "?", "X86", "::", "VXORPSrr", ":", "X86", "::", "XORPSrr", ")", ")", ";", "case", "X86", "::", "AVX_SET0", ":", "assert", "(", "HasAVX", "&&", "\"AVX not supported\"", ")", ";", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "VXORPSYrr", ")", ")", ";", "case", "X86", "::", "AVX512_512_SET0", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "VPXORDZrr", ")", ")", ";", "case", "X86", "::", "V_SETALLONES", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "HasAVX", "?", "X86", "::", "VPCMPEQDrr", ":", "X86", "::", "PCMPEQDrr", ")", ")", ";", "case", "X86", "::", "AVX2_SETALLONES", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "VPCMPEQDYrr", ")", ")", ";", "case", "X86", "::", "TEST8ri_NOREX", ":", "MI", "->", "setDesc", "(", "get", "(", "X86", "::", "TEST8ri", ")", ")", ";", "return", "true", ";", "case", "X86", "::", "KSET0B", ":", "case", "X86", "::", "KSET0W", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "KXORWrr", ")", ")", ";", "case", "X86", "::", "KSET0D", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "KXORDrr", ")", ")", ";", "case", "X86", "::", "KSET0Q", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "KXORQrr", ")", ")", ";", "case", "X86", "::", "KSET1B", ":", "case", "X86", "::", "KSET1W", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "KXNORWrr", ")", ")", ";", "case", "X86", "::", "KSET1D", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "KXNORDrr", ")", ")", ";", "case", "X86", "::", "KSET1Q", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "KXNORQrr", ")", ")", ";", "case", "TargetOpcode", "::", "LOAD_STACK_GUARD", ":", "expandLoadStackGuard", "(", "MIB", ",", "*", "this", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["This", "function", "is", "called", "for", "all", "pseudo", "instructions", "that", "remain", "after", "register", "allocation", "."], "TS_V_token": ["X86", "X86", "X86::MOV32r0", "X86::XOR32rr", "X86::SETB_C8r", "X86::SBB8rr", "X86::SETB_C16r", "X86::SBB16rr", "X86::SETB_C32r", "X86::SBB32rr", "X86::SETB_C64r", "X86::SBB64rr", "X86::V_SET0", "X86::FsFLD0SS", "X86::FsFLD0SD", "X86::VXORPSrr", "X86::XORPSrr", "X86::AVX_SET0", "\"AVX not supported\"", "X86::VXORPSYrr", "X86::AVX512_512_SET0", "X86::VPXORDZrr", "X86::V_SETALLONES", "X86::VPCMPEQDrr", "X86::PCMPEQDrr", "X86::AVX2_SETALLONES", "X86::VPCMPEQDYrr", "X86::TEST8ri_NOREX", "X86::TEST8ri", "X86::KSET0B", "X86::KSET0W", "X86::KXORWrr", "X86::KSET0D", "X86::KXORDrr", "X86::KSET0Q", "X86::KXORQrr", "X86::KSET1B", "X86::KSET1W", "X86::KXNORWrr", "X86::KSET1D", "X86::KXNORDrr", "X86::KSET1Q", "X86::KXNORQrr"], "File": "X86InstrInfo29", "Func": "expandPostRAPseudo", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1505, "Length": 415, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "expand_vec_perm_even_odd", "(", "struct", "expand_vec_perm_d", "*", "d", ")", "{", "unsigned", "i", ",", "odd", ",", "nelt", "=", "d", "->", "nelt", ";", "odd", "=", "d", "->", "perm", "[", "0", "]", ";", "if", "(", "odd", "!=", "0", "&&", "odd", "!=", "1", ")", "return", "false", ";", "for", "(", "i", "=", "1", ";", "i", "<", "nelt", ";", "++", "i", ")", "if", "(", "d", "->", "perm", "[", "i", "]", "!=", "2", "*", "i", "+", "odd", ")", "return", "false", ";", "if", "(", "d", "->", "vmode", "==", "E_V32HImode", "&&", "d", "->", "testing_p", "&&", "!", "TARGET_AVX512BW", ")", "return", "false", ";", "return", "expand_vec_perm_even_odd_1", "(", "d", ",", "odd", ")", ";", "}", ""], "natrual_language": ["A", "subroutine", "of", "ix86_expand_vec_perm_builtin_1", ".", "Pattern", "match", "extract-even", "and", "extract-odd", "permutations", "."], "TS_V_token": ["i386", "0", "0", "1", "1", "2"], "File": "i386-expand", "Func": "expand_vec_perm_even_odd", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1506, "Length": 101, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "shouldTrackPressure", "(", ")", "const", "override", "{", "return", "false", ";", "}", ""], "natrual_language": ["PostRA", "scheduling", "does", "not", "track", "pressure", "."], "TS_V_token": ["SystemZ"], "File": "SystemZMachineScheduler", "Func": "shouldTrackPressure", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1507, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Cpu0RegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", "RS", ")", "const", "{", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "unsigned", "i", "=", "0", ";", "while", "(", "!", "MI", ".", "getOperand", "(", "i", ")", ".", "isFI", "(", ")", ")", "{", "++", "i", ";", "assert", "(", "i", "<", "MI", ".", "getNumOperands", "(", ")", "&&", "\"Instr doesn't have FrameIndex operand!\"", ")", ";", "}", "LLVM_DEBUG", "(", "errs", "(", ")", "<<", "\"\\nFunction : \"", "<<", "MF", ".", "getFunction", "(", ")", ".", "getName", "(", ")", "<<", "\"\\n\"", ";", "errs", "(", ")", "<<", "\"<---------->\\n\"", "<<", "MI", ")", ";", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "i", ")", ".", "getIndex", "(", ")", ";", "uint64_t", "stackSize", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getStackSize", "(", ")", ";", "int64_t", "spOffset", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectOffset", "(", "FrameIndex", ")", ";", "LLVM_DEBUG", "(", "errs", "(", ")", "<<", "\"FrameIndex : \"", "<<", "FrameIndex", "<<", "\"\\n\"", "<<", "\"spOffset : \"", "<<", "spOffset", "<<", "\"\\n\"", "<<", "\"stackSize : \"", "<<", "stackSize", "<<", "\"\\n\"", ")", ";", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", "=", "MFI", ".", "getCalleeSavedInfo", "(", ")", ";", "int", "MinCSFI", "=", "0", ";", "int", "MaxCSFI", "=", "-", "1", ";", "if", "(", "CSI", ".", "size", "(", ")", ")", "{", "MinCSFI", "=", "CSI", "[", "0", "]", ".", "getFrameIdx", "(", ")", ";", "MaxCSFI", "=", "CSI", "[", "CSI", ".", "size", "(", ")", "-", "1", "]", ".", "getFrameIdx", "(", ")", ";", "}", "unsigned", "FrameReg", ";", "FrameReg", "=", "Cpu0", "::", "SP", ";", "int64_t", "Offset", ";", "Offset", "=", "spOffset", "+", "(", "int64_t", ")", "stackSize", ";", "Offset", "+=", "MI", ".", "getOperand", "(", "i", "+", "1", ")", ".", "getImm", "(", ")", ";", "LLVM_DEBUG", "(", "errs", "(", ")", "<<", "\"Offset : \"", "<<", "Offset", "<<", "\"\\n\"", "<<", "\"<---------->\\n\"", ")", ";", "if", "(", "!", "MI", ".", "isDebugValue", "(", ")", "&&", "!", "isInt", "<", "16", ">", "(", "Offset", ")", ")", "{", "assert", "(", "false", "&&", "\"(!MI.isDebugValue() && !isInt<16>(Offset))\"", ")", ";", "}", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "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": ["Cpu0", "Cpu0", "0", "\"Instr doesn't have FrameIndex operand!\"", "\"\\nFunction : \"", "\"\\n\"", "\"<---------->\\n\"", "\"FrameIndex : \"", "\"\\n\"", "\"spOffset : \"", "\"\\n\"", "\"stackSize : \"", "\"\\n\"", "0", "1", "0", "1", "Cpu0::SP", "1", "\"Offset : \"", "\"\\n\"", "\"<---------->\\n\"", "16", "\"(!MI.isDebugValue() && !isInt<16>(Offset))\"", "1"], "File": "Cpu0RegisterInfo4", "Func": "eliminateFrameIndex", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1508, "Length": 358, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "allocateScavengingFrameIndexesNearIncomingSP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "override", "{", "return", "false", ";", "}", ""], "natrual_language": ["Control", "the", "placement", "of", "special", "register", "scavenging", "spill", "slots", "when", "allocating", "a", "stack", "frame", "."], "TS_V_token": ["SystemZ"], "File": "SystemZFrameLowering10", "Func": "allocateScavengingFrameIndexesNearIncomingSP", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1509, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "order_regs_for_local_alloc", "(", "void", ")", "{", "static", "int", "last_order_nonleaf", "=", "1", ";", "if", "(", "df_regs_ever_live_p", "(", "15", ")", "!=", "last_order_nonleaf", ")", "{", "last_order_nonleaf", "=", "!", "last_order_nonleaf", ";", "memcpy", "(", "(", "char", "*", ")", "reg_alloc_order", ",", "(", "const", "char", "*", ")", "reg_alloc_orders", "[", "last_order_nonleaf", "]", ",", "FIRST_PSEUDO_REGISTER", "*", "sizeof", "(", "int", ")", ")", ";", "}", "}", ""], "natrual_language": ["Choose", "the", "order", "in", "which", "to", "allocate", "hard", "registers", "for", "pseudo-registers", "local", "to", "a", "basic", "block", ".", "Store", "the", "desired", "register", "order", "in", "the", "array", "`", "reg_alloc_order", "'", ".", "Element", "0", "should", "be", "the", "register", "to", "allocate", "first", ";", "element", "1", ",", "the", "next", "register", ";", "and", "so", "on", "."], "TS_V_token": ["sparc", "1", "15"], "File": "sparc", "Func": "order_regs_for_local_alloc", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1510, "Length": 55, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCAIXAsmPrinter", "::", "doInitialization", "(", "Module", "&", "M", ")", "{", "if", "(", "M", ".", "alias_size", "(", ")", ">", "0u", ")", "report_fatal_error", "(", "\"module has aliases, which LLVM does not yet support for AIX\"", ")", ";", "const", "bool", "Result", "=", "PPCAsmPrinter", "::", "doInitialization", "(", "M", ")", ";", "auto", "setCsectAlignment", "=", "[", "this", "]", "(", "const", "GlobalObject", "*", "GO", ")", "{", "if", "(", "GO", "->", "isDeclaration", "(", ")", ")", "return", ";", "SectionKind", "GOKind", "=", "getObjFileLowering", "(", ")", ".", "getKindForGlobal", "(", "GO", ",", "TM", ")", ";", "MCSectionXCOFF", "*", "Csect", "=", "cast", "<", "MCSectionXCOFF", ">", "(", "getObjFileLowering", "(", ")", ".", "SectionForGlobal", "(", "GO", ",", "GOKind", ",", "TM", ")", ")", ";", "Align", "GOAlign", "=", "getGVAlignment", "(", "GO", ",", "GO", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ")", ";", "if", "(", "GOAlign", ">", "Csect", "->", "getAlignment", "(", ")", ")", "Csect", "->", "setAlignment", "(", "GOAlign", ")", ";", "}", ";", "for", "(", "const", "auto", "&", "G", ":", "M", ".", "globals", "(", ")", ")", "setCsectAlignment", "(", "&", "G", ")", ";", "for", "(", "const", "auto", "&", "F", ":", "M", ")", "setCsectAlignment", "(", "&", "F", ")", ";", "return", "Result", ";", "}", ""], "natrual_language": ["Set", "up", "the", "AsmPrinter", "when", "we", "are", "working", "on", "a", "new", "module", "."], "TS_V_token": ["PowerPC", "PPC", "0u", "\"module has aliases, which LLVM does not yet support for AIX\"", "PPC"], "File": "PPCAsmPrinter112", "Func": "doInitialization", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1511, "Length": 171, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "rs6000_issue_rate", "(", "void", ")", "{", "if", "(", "!", "reload_completed", "&&", "!", "flag_sched_pressure", ")", "return", "1", ";", "switch", "(", "rs6000_tune", ")", "{", "case", "PROCESSOR_RS64A", ":", "case", "PROCESSOR_PPC601", ":", "case", "PROCESSOR_PPC7450", ":", "return", "3", ";", "case", "PROCESSOR_PPC440", ":", "case", "PROCESSOR_PPC603", ":", "case", "PROCESSOR_PPC750", ":", "case", "PROCESSOR_PPC7400", ":", "case", "PROCESSOR_PPC8540", ":", "case", "PROCESSOR_PPC8548", ":", "case", "PROCESSOR_CELL", ":", "case", "PROCESSOR_PPCE300C2", ":", "case", "PROCESSOR_PPCE300C3", ":", "case", "PROCESSOR_PPCE500MC", ":", "case", "PROCESSOR_PPCE500MC64", ":", "case", "PROCESSOR_PPCE5500", ":", "case", "PROCESSOR_PPCE6500", ":", "case", "PROCESSOR_TITAN", ":", "return", "2", ";", "case", "PROCESSOR_PPC476", ":", "case", "PROCESSOR_PPC604", ":", "case", "PROCESSOR_PPC604e", ":", "case", "PROCESSOR_PPC620", ":", "case", "PROCESSOR_PPC630", ":", "return", "4", ";", "case", "PROCESSOR_POWER4", ":", "case", "PROCESSOR_POWER5", ":", "case", "PROCESSOR_POWER6", ":", "case", "PROCESSOR_POWER7", ":", "return", "5", ";", "case", "PROCESSOR_POWER8", ":", "return", "7", ";", "case", "PROCESSOR_POWER9", ":", "return", "6", ";", "default", ":", "return", "1", ";", "}", "}", ""], "natrual_language": ["Return", "how", "many", "instructions", "the", "machine", "can", "issue", "per", "cycle", "."], "TS_V_token": ["rs6000", "1", "3", "2", "4", "5", "7", "6", "1"], "File": "rs60007", "Func": "rs6000_issue_rate", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1512, "Length": 132, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "arm_function_arg", "(", "cumulative_args_t", "pcum_v", ",", "machine_mode", "mode", ",", "const_tree", "type", ",", "bool", "named", ")", "{", "CUMULATIVE_ARGS", "*", "pcum", "=", "get_cumulative_args", "(", "pcum_v", ")", ";", "int", "nregs", ";", "if", "(", "mode", "==", "VOIDmode", ")", "return", "const0_rtx", ";", "if", "(", "pcum", "->", "pcs_variant", "<=", "ARM_PCS_AAPCS_LOCAL", ")", "{", "aapcs_layout_arg", "(", "pcum", ",", "mode", ",", "type", ",", "named", ")", ";", "return", "pcum", "->", "aapcs_reg", ";", "}", "if", "(", "TARGET_IWMMXT_ABI", "&&", "arm_vector_mode_supported_p", "(", "mode", ")", "&&", "pcum", "->", "named_count", ">", "pcum", "->", "nargs", "+", "1", ")", "{", "if", "(", "pcum", "->", "iwmmxt_nregs", "<=", "9", ")", "return", "gen_rtx_REG", "(", "mode", ",", "pcum", "->", "iwmmxt_nregs", "+", "FIRST_IWMMXT_REGNUM", ")", ";", "else", "{", "pcum", "->", "can_split", "=", "false", ";", "return", "NULL_RTX", ";", "}", "}", "if", "(", "pcum", "->", "nregs", "&", "1", "&&", "ARM_DOUBLEWORD_ALIGN", "&&", "arm_needs_doubleword_align", "(", "mode", ",", "type", ")", ")", "pcum", "->", "nregs", "++", ";", "if", "(", "pcum", "->", "can_split", ")", "nregs", "=", "1", ";", "else", "nregs", "=", "ARM_NUM_REGS2", "(", "mode", ",", "type", ")", ";", "if", "(", "!", "named", "||", "pcum", "->", "nregs", "+", "nregs", ">", "NUM_ARG_REGS", ")", "return", "NULL_RTX", ";", "return", "gen_rtx_REG", "(", "mode", ",", "pcum", "->", "nregs", ")", ";", "}", ""], "natrual_language": ["Determine", "where", "to", "put", "an", "argument", "to", "a", "function", ".", "Value", "is", "zero", "to", "push", "the", "argument", "on", "the", "stack", ",", "or", "a", "hard", "register", "in", "which", "to", "store", "the", "argument", ".", "MODE", "is", "the", "argument", "'s", "machine", "mode", ".", "TYPE", "is", "the", "data", "type", "of", "the", "argument", "(", "as", "a", "tree", ")", ".", "This", "is", "null", "for", "libcalls", "where", "that", "information", "may", "not", "be", "available", ".", "CUM", "is", "a", "variable", "of", "type", "CUMULATIVE_ARGS", "which", "gives", "info", "about", "the", "preceding", "args", "and", "about", "the", "function", "being", "called", ".", "NAMED", "is", "nonzero", "if", "this", "argument", "is", "a", "named", "parameter", "(", "otherwise", "it", "is", "an", "extra", "parameter", "matching", "an", "ellipsis", ")", ".", "On", "the", "ARM", ",", "normally", "the", "first", "16", "bytes", "are", "passed", "in", "registers", "r0-r3", ";", "all", "other", "arguments", "are", "passed", "on", "the", "stack", ".", "If", "(", "NAMED", "==", "0", ")", "(", "which", "happens", "only", "in", "assign_parms", ",", "since", "TARGET_SETUP_INCOMING_VARARGS", "is", "defined", ")", ",", "say", "it", "is", "passed", "in", "the", "stack", "(", "function_prologue", "will", "indeed", "make", "it", "pass", "in", "the", "stack", "if", "necessary", ")", "."], "TS_V_token": ["arm", "1", "9", "1", "1"], "File": "arm4", "Func": "arm_function_arg", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1513, "Length": 186, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MipsTargetLowering", "::", "ConstraintType", "MipsTargetLowering", "::", "getConstraintType", "(", "const", "std", "::", "string", "&", "Constraint", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "default", ":", "break", ";", "case", "'d'", ":", "case", "'y'", ":", "case", "'f'", ":", "return", "C_RegisterClass", ";", "break", ";", "}", "}", "return", "TargetLowering", "::", "getConstraintType", "(", "Constraint", ")", ";", "}", ""], "natrual_language": ["Given", "a", "constraint", "letter", ",", "return", "the", "type", "of", "constraint", "for", "this", "target", "."], "TS_V_token": ["Mips", "Mips", "Mips", "1", "0"], "File": "MipsISelLowering109", "Func": "getConstraintType", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1514, "Length": 64, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCPhysReg", "*", "X86TargetLowering", "::", "getScratchRegisters", "(", "CallingConv", "::", "ID", ")", "const", "{", "static", "const", "MCPhysReg", "ScratchRegs", "[", "]", "=", "{", "X86", "::", "R11", ",", "0", "}", ";", "return", "ScratchRegs", ";", "}", ""], "natrual_language": ["Returns", "a", "0", "terminated", "array", "of", "registers", "that", "can", "be", "safely", "used", "as", "scratch", "registers", "."], "TS_V_token": ["X86", "X86", "X86::R11", "0"], "File": "X86ISelLowering (2)", "Func": "getScratchRegisters", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1515, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "Subtarget", "=", "&", "TM", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "SelectionDAGISel", "::", "runOnMachineFunction", "(", "MF", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMISelDAGToDAG57", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1516, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "registered_function", "&", "function_builder", "::", "add_function", "(", "const", "function_instance", "&", "instance", ",", "const", "char", "*", "name", ",", "tree", "fntype", ",", "tree", "attrs", ",", "uint64_t", "required_extensions", ",", "bool", "overloaded_p", ")", "{", "unsigned", "int", "code", "=", "vec_safe_length", "(", "registered_functions", ")", ";", "code", "=", "(", "code", "<<", "AARCH64_BUILTIN_SHIFT", ")", "|", "AARCH64_BUILTIN_SVE", ";", "tree", "decl", "=", "simulate_builtin_function_decl", "(", "input_location", ",", "name", ",", "fntype", ",", "code", ",", "NULL", ",", "attrs", ")", ";", "registered_function", "&", "rfn", "=", "*", "ggc_alloc", "<", "registered_function", ">", "(", ")", ";", "rfn", ".", "instance", "=", "instance", ";", "rfn", ".", "decl", "=", "decl", ";", "rfn", ".", "required_extensions", "=", "required_extensions", ";", "rfn", ".", "overloaded_p", "=", "overloaded_p", ";", "vec_safe_push", "(", "registered_functions", ",", "&", "rfn", ")", ";", "return", "rfn", ";", "}", ""], "natrual_language": ["Add", "a", "function", "called", "NAME", "with", "type", "FNTYPE", "and", "attributes", "ATTRS", ".", "INSTANCE", "describes", "what", "the", "function", "does", "."], "TS_V_token": ["aarch64"], "File": "aarch64-sve-builtins", "Func": "add_function", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1517, "Length": 114, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86IntelInstPrinter", "::", "printPCRelImm", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "if", "(", "Op", ".", "isImm", "(", ")", ")", "O", "<<", "formatImm", "(", "Op", ".", "getImm", "(", ")", ")", ";", "else", "{", "assert", "(", "Op", ".", "isExpr", "(", ")", "&&", "\"unknown pcrel immediate operand\"", ")", ";", "const", "MCConstantExpr", "*", "BranchTarget", "=", "dyn_cast", "<", "MCConstantExpr", ">", "(", "Op", ".", "getExpr", "(", ")", ")", ";", "int64_t", "Address", ";", "if", "(", "BranchTarget", "&&", "BranchTarget", "->", "evaluateAsAbsolute", "(", "Address", ")", ")", "{", "O", "<<", "formatHex", "(", "(", "uint64_t", ")", "Address", ")", ";", "}", "else", "{", "O", "<<", "*", "Op", ".", "getExpr", "(", ")", ";", "}", "}", "}", ""], "natrual_language": ["value", "(", "e.g", "."], "TS_V_token": ["X86", "X86", "\"unknown pcrel immediate operand\""], "File": "X86IntelInstPrinter32", "Func": "printPCRelImm", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1518, "Length": 119, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "HOST_WIDE_INT", "mmix_constant_alignment", "(", "const_tree", ",", "HOST_WIDE_INT", "basic_align", ")", "{", "if", "(", "basic_align", "<", "32", ")", "return", "32", ";", "return", "basic_align", ";", "}", ""], "natrual_language": ["CONSTANT_ALIGNMENT", "."], "TS_V_token": ["mmix", "32", "32"], "File": "mmix", "Func": "mmix_constant_alignment", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1519, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "int", "ix86_minimum_alignment", "(", "tree", "exp", ",", "machine_mode", "mode", ",", "unsigned", "int", "align", ")", "{", "tree", "type", ",", "decl", ";", "if", "(", "exp", "&&", "DECL_P", "(", "exp", ")", ")", "{", "type", "=", "TREE_TYPE", "(", "exp", ")", ";", "decl", "=", "exp", ";", "}", "else", "{", "type", "=", "exp", ";", "decl", "=", "NULL", ";", "}", "if", "(", "TARGET_64BIT", "||", "align", "!=", "64", "||", "ix86_preferred_stack_boundary", ">=", "64", ")", "return", "align", ";", "if", "(", "(", "mode", "==", "DImode", "||", "(", "type", "&&", "TYPE_MODE", "(", "type", ")", "==", "DImode", ")", ")", "&&", "(", "!", "type", "||", "(", "!", "TYPE_USER_ALIGN", "(", "type", ")", "&&", "!", "TYPE_ATOMIC", "(", "strip_array_types", "(", "type", ")", ")", ")", ")", "&&", "(", "!", "decl", "||", "!", "DECL_USER_ALIGN", "(", "decl", ")", ")", ")", "{", "gcc_checking_assert", "(", "!", "TARGET_STV", ")", ";", "return", "32", ";", "}", "return", "align", ";", "}", ""], "natrual_language": ["Compute", "the", "minimum", "required", "alignment", "for", "dynamic", "stack", "realignment", "purposes", "for", "a", "local", "variable", ",", "parameter", "or", "a", "stack", "slot", ".", "EXP", "is", "the", "data", "type", "or", "decl", "itself", ",", "MODE", "is", "its", "mode", "and", "ALIGN", "is", "the", "alignment", "that", "the", "object", "would", "ordinarily", "have", "."], "TS_V_token": ["i386", "64", "64", "32"], "File": "i386", "Func": "ix86_minimum_alignment", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1520, "Length": 135, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86FrameLowering", "::", "orderFrameObjects", "(", "const", "MachineFunction", "&", "MF", ",", "SmallVectorImpl", "<", "int", ">", "&", "ObjectsToAllocate", ")", "const", "{", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "if", "(", "ObjectsToAllocate", ".", "empty", "(", ")", ")", "return", ";", "std", "::", "vector", "<", "X86FrameSortingObject", ">", "SortingObjects", "(", "MFI", ".", "getObjectIndexEnd", "(", ")", ")", ";", "for", "(", "auto", "&", "Obj", ":", "ObjectsToAllocate", ")", "{", "SortingObjects", "[", "Obj", "]", ".", "IsValid", "=", "true", ";", "SortingObjects", "[", "Obj", "]", ".", "ObjectIndex", "=", "Obj", ";", "SortingObjects", "[", "Obj", "]", ".", "ObjectAlignment", "=", "MFI", ".", "getObjectAlign", "(", "Obj", ")", ";", "int", "ObjectSize", "=", "MFI", ".", "getObjectSize", "(", "Obj", ")", ";", "if", "(", "ObjectSize", "==", "0", ")", "SortingObjects", "[", "Obj", "]", ".", "ObjectSize", "=", "4", ";", "else", "SortingObjects", "[", "Obj", "]", ".", "ObjectSize", "=", "ObjectSize", ";", "}", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "{", "for", "(", "auto", "&", "MI", ":", "MBB", ")", "{", "if", "(", "MI", ".", "isDebugInstr", "(", ")", ")", "continue", ";", "for", "(", "const", "MachineOperand", "&", "MO", ":", "MI", ".", "operands", "(", ")", ")", "{", "if", "(", "!", "MO", ".", "isFI", "(", ")", ")", "continue", ";", "int", "Index", "=", "MO", ".", "getIndex", "(", ")", ";", "if", "(", "Index", ">=", "0", "&&", "Index", "<", "MFI", ".", "getObjectIndexEnd", "(", ")", "&&", "SortingObjects", "[", "Index", "]", ".", "IsValid", ")", "SortingObjects", "[", "Index", "]", ".", "ObjectNumUses", "++", ";", "}", "}", "}", "llvm", "::", "stable_sort", "(", "SortingObjects", ",", "X86FrameSortingComparator", "(", ")", ")", ";", "int", "i", "=", "0", ";", "for", "(", "auto", "&", "Obj", ":", "SortingObjects", ")", "{", "if", "(", "!", "Obj", ".", "IsValid", ")", "break", ";", "ObjectsToAllocate", "[", "i", "++", "]", "=", "Obj", ".", "ObjectIndex", ";", "}", "if", "(", "!", "TRI", "->", "needsStackRealignment", "(", "MF", ")", "&&", "hasFP", "(", "MF", ")", ")", "std", "::", "reverse", "(", "ObjectsToAllocate", ".", "begin", "(", ")", ",", "ObjectsToAllocate", ".", "end", "(", ")", ")", ";", "}", ""], "natrual_language": ["Order", "the", "symbols", "in", "the", "local", "stack", "."], "TS_V_token": ["X86", "X86", "X86", "0", "4", "0", "X86", "0"], "File": "X86FrameLowering101", "Func": "orderFrameObjects", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1521, "Length": 304, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ix86_emit_fp_unordered_jump", "(", "rtx", "label", ")", "{", "rtx", "reg", "=", "gen_reg_rtx", "(", "HImode", ")", ";", "rtx", "temp", ";", "emit_insn", "(", "gen_x86_fnstsw_1", "(", "reg", ")", ")", ";", "if", "(", "TARGET_SAHF", "&&", "(", "TARGET_USE_SAHF", "||", "optimize_insn_for_size_p", "(", ")", ")", ")", "{", "emit_insn", "(", "gen_x86_sahf_1", "(", "reg", ")", ")", ";", "temp", "=", "gen_rtx_REG", "(", "CCmode", ",", "FLAGS_REG", ")", ";", "temp", "=", "gen_rtx_UNORDERED", "(", "VOIDmode", ",", "temp", ",", "const0_rtx", ")", ";", "}", "else", "{", "emit_insn", "(", "gen_testqi_ext_ccno_0", "(", "reg", ",", "GEN_INT", "(", "0x04", ")", ")", ")", ";", "temp", "=", "gen_rtx_REG", "(", "CCNOmode", ",", "FLAGS_REG", ")", ";", "temp", "=", "gen_rtx_NE", "(", "VOIDmode", ",", "temp", ",", "const0_rtx", ")", ";", "}", "temp", "=", "gen_rtx_IF_THEN_ELSE", "(", "VOIDmode", ",", "temp", ",", "gen_rtx_LABEL_REF", "(", "VOIDmode", ",", "label", ")", ",", "pc_rtx", ")", ";", "temp", "=", "gen_rtx_SET", "(", "pc_rtx", ",", "temp", ")", ";", "emit_jump_insn", "(", "temp", ")", ";", "predict_jump", "(", "REG_BR_PROB_BASE", "*", "10", "/", "100", ")", ";", "}", ""], "natrual_language": ["Output", "code", "to", "perform", "a", "conditional", "jump", "to", "LABEL", ",", "if", "C2", "flag", "in", "FP", "status", "register", "is", "set", "."], "TS_V_token": ["i386", "0x04", "10", "100"], "File": "i3865", "Func": "ix86_emit_fp_unordered_jump", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1522, "Length": 146, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "X86Operand", "*", "CreateMem", "(", "unsigned", "SegReg", ",", "const", "MCExpr", "*", "Disp", ",", "unsigned", "BaseReg", ",", "unsigned", "IndexReg", ",", "unsigned", "Scale", ",", "SMLoc", "StartLoc", ",", "SMLoc", "EndLoc", ")", "{", "assert", "(", "(", "SegReg", "||", "BaseReg", "||", "IndexReg", ")", "&&", "\"Invalid memory operand!\"", ")", ";", "assert", "(", "(", "(", "Scale", "==", "1", "||", "Scale", "==", "2", "||", "Scale", "==", "4", "||", "Scale", "==", "8", ")", ")", "&&", "\"Invalid scale!\"", ")", ";", "X86Operand", "*", "Res", "=", "new", "X86Operand", "(", "Memory", ",", "StartLoc", ",", "EndLoc", ")", ";", "Res", "->", "Mem", ".", "SegReg", "=", "SegReg", ";", "Res", "->", "Mem", ".", "Disp", "=", "Disp", ";", "Res", "->", "Mem", ".", "BaseReg", "=", "BaseReg", ";", "Res", "->", "Mem", ".", "IndexReg", "=", "IndexReg", ";", "Res", "->", "Mem", ".", "Scale", "=", "Scale", ";", "return", "Res", ";", "}", ""], "natrual_language": ["Create", "a", "generalized", "memory", "operand", "."], "TS_V_token": ["X86", "X86", "\"Invalid memory operand!\"", "1", "2", "4", "8", "\"Invalid scale!\"", "X86", "X86"], "File": "X86AsmParser101", "Func": "CreateMem", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1523, "Length": 125, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "analyzeCompare", "(", "const", "MachineInstr", "&", "MI", ",", "Register", "&", "SrcReg", ",", "Register", "&", "SrcReg2", ",", "int", "&", "CmpMask", ",", "int", "&", "CmpValue", ")", "const", "{", "assert", "(", "MI", ".", "getNumOperands", "(", ")", ">=", "2", "&&", "\"All AArch64 cmps should have 2 operands\"", ")", ";", "if", "(", "!", "MI", ".", "getOperand", "(", "1", ")", ".", "isReg", "(", ")", ")", "return", "false", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "AArch64", "::", "SUBSWrr", ":", "case", "AArch64", "::", "SUBSWrs", ":", "case", "AArch64", "::", "SUBSWrx", ":", "case", "AArch64", "::", "SUBSXrr", ":", "case", "AArch64", "::", "SUBSXrs", ":", "case", "AArch64", "::", "SUBSXrx", ":", "case", "AArch64", "::", "ADDSWrr", ":", "case", "AArch64", "::", "ADDSWrs", ":", "case", "AArch64", "::", "ADDSWrx", ":", "case", "AArch64", "::", "ADDSXrr", ":", "case", "AArch64", "::", "ADDSXrs", ":", "case", "AArch64", "::", "ADDSXrx", ":", "SrcReg", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "MI", ".", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ";", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "0", ";", "return", "true", ";", "case", "AArch64", "::", "SUBSWri", ":", "case", "AArch64", "::", "ADDSWri", ":", "case", "AArch64", "::", "SUBSXri", ":", "case", "AArch64", "::", "ADDSXri", ":", "SrcReg", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "0", ";", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "MI", ".", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", "!=", "0", ";", "return", "true", ";", "case", "AArch64", "::", "ANDSWri", ":", "case", "AArch64", "::", "ANDSXri", ":", "SrcReg", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "0", ";", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "AArch64_AM", "::", "decodeLogicalImmediate", "(", "MI", ".", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ",", "MI", ".", "getOpcode", "(", ")", "==", "AArch64", "::", "ANDSWri", "?", "32", ":", "64", ")", "!=", "0", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["analyzeCompare", "-", "For", "a", "comparison", "instruction", ",", "return", "the", "source", "registers", "in", "SrcReg", "and", "SrcReg2", "if", "having", "two", "register", "operands", ",", "and", "the", "value", "it", "compares", "against", "in", "CmpValue", "."], "TS_V_token": ["AArch64", "AArch64", "2", "\"All AArch64 cmps should have 2 operands\"", "1", "AArch64::SUBSWrr", "AArch64::SUBSWrs", "AArch64::SUBSWrx", "AArch64::SUBSXrr", "AArch64::SUBSXrs", "AArch64::SUBSXrx", "AArch64::ADDSWrr", "AArch64::ADDSWrs", "AArch64::ADDSWrx", "AArch64::ADDSXrr", "AArch64::ADDSXrs", "AArch64::ADDSXrx", "1", "2", "0", "0", "AArch64::SUBSWri", "AArch64::ADDSWri", "AArch64::SUBSXri", "AArch64::ADDSXri", "1", "0", "0", "2", "0", "AArch64::ANDSWri", "AArch64::ANDSXri", "1", "0", "0", "AArch64_AM::decodeLogicalImmediate", "2", "AArch64::ANDSWri", "32", "64", "0"], "File": "AArch64InstrInfo121", "Func": "analyzeCompare", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1524, "Length": 303, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ix86_data_alignment", "(", "tree", "type", ",", "int", "align", ",", "bool", "opt", ")", "{", "int", "max_align_compat", "=", "MIN", "(", "256", ",", "MAX_OFILE_ALIGNMENT", ")", ";", "int", "max_align", "=", "MIN", "(", "(", "unsigned", ")", "ix86_tune_cost", "->", "prefetch_block", "*", "8", ",", "MAX_OFILE_ALIGNMENT", ")", ";", "if", "(", "max_align", "<", "BITS_PER_WORD", ")", "max_align", "=", "BITS_PER_WORD", ";", "switch", "(", "ix86_align_data_type", ")", "{", "case", "ix86_align_data_type_abi", ":", "opt", "=", "false", ";", "break", ";", "case", "ix86_align_data_type_compat", ":", "max_align", "=", "BITS_PER_WORD", ";", "break", ";", "case", "ix86_align_data_type_cacheline", ":", "break", ";", "}", "if", "(", "TARGET_IAMCU", ")", "align", "=", "iamcu_alignment", "(", "type", ",", "align", ")", ";", "if", "(", "opt", "&&", "AGGREGATE_TYPE_P", "(", "type", ")", "&&", "TYPE_SIZE", "(", "type", ")", "&&", "TREE_CODE", "(", "TYPE_SIZE", "(", "type", ")", ")", "==", "INTEGER_CST", ")", "{", "if", "(", "wi", "::", "geu_p", "(", "wi", "::", "to_wide", "(", "TYPE_SIZE", "(", "type", ")", ")", ",", "max_align_compat", ")", "&&", "align", "<", "max_align_compat", ")", "align", "=", "max_align_compat", ";", "if", "(", "wi", "::", "geu_p", "(", "wi", "::", "to_wide", "(", "TYPE_SIZE", "(", "type", ")", ")", ",", "max_align", ")", "&&", "align", "<", "max_align", ")", "align", "=", "max_align", ";", "}", "if", "(", "TARGET_64BIT", ")", "{", "if", "(", "(", "opt", "?", "AGGREGATE_TYPE_P", "(", "type", ")", ":", "TREE_CODE", "(", "type", ")", "==", "ARRAY_TYPE", ")", "&&", "TYPE_SIZE", "(", "type", ")", "&&", "TREE_CODE", "(", "TYPE_SIZE", "(", "type", ")", ")", "==", "INTEGER_CST", "&&", "wi", "::", "geu_p", "(", "wi", "::", "to_wide", "(", "TYPE_SIZE", "(", "type", ")", ")", ",", "128", ")", "&&", "align", "<", "128", ")", "return", "128", ";", "}", "if", "(", "!", "opt", ")", "return", "align", ";", "if", "(", "TREE_CODE", "(", "type", ")", "==", "ARRAY_TYPE", ")", "{", "if", "(", "TYPE_MODE", "(", "TREE_TYPE", "(", "type", ")", ")", "==", "DFmode", "&&", "align", "<", "64", ")", "return", "64", ";", "if", "(", "ALIGN_MODE_128", "(", "TYPE_MODE", "(", "TREE_TYPE", "(", "type", ")", ")", ")", "&&", "align", "<", "128", ")", "return", "128", ";", "}", "else", "if", "(", "TREE_CODE", "(", "type", ")", "==", "COMPLEX_TYPE", ")", "{", "if", "(", "TYPE_MODE", "(", "type", ")", "==", "DCmode", "&&", "align", "<", "64", ")", "return", "64", ";", "if", "(", "(", "TYPE_MODE", "(", "type", ")", "==", "XCmode", "||", "TYPE_MODE", "(", "type", ")", "==", "TCmode", ")", "&&", "align", "<", "128", ")", "return", "128", ";", "}", "else", "if", "(", "(", "TREE_CODE", "(", "type", ")", "==", "RECORD_TYPE", "||", "TREE_CODE", "(", "type", ")", "==", "UNION_TYPE", "||", "TREE_CODE", "(", "type", ")", "==", "QUAL_UNION_TYPE", ")", "&&", "TYPE_FIELDS", "(", "type", ")", ")", "{", "if", "(", "DECL_MODE", "(", "TYPE_FIELDS", "(", "type", ")", ")", "==", "DFmode", "&&", "align", "<", "64", ")", "return", "64", ";", "if", "(", "ALIGN_MODE_128", "(", "DECL_MODE", "(", "TYPE_FIELDS", "(", "type", ")", ")", ")", "&&", "align", "<", "128", ")", "return", "128", ";", "}", "else", "if", "(", "TREE_CODE", "(", "type", ")", "==", "REAL_TYPE", "||", "TREE_CODE", "(", "type", ")", "==", "VECTOR_TYPE", "||", "TREE_CODE", "(", "type", ")", "==", "INTEGER_TYPE", ")", "{", "if", "(", "TYPE_MODE", "(", "type", ")", "==", "DFmode", "&&", "align", "<", "64", ")", "return", "64", ";", "if", "(", "ALIGN_MODE_128", "(", "TYPE_MODE", "(", "type", ")", ")", "&&", "align", "<", "128", ")", "return", "128", ";", "}", "return", "align", ";", "}", ""], "natrual_language": ["Compute", "the", "alignment", "for", "a", "static", "variable", ".", "TYPE", "is", "the", "data", "type", ",", "and", "ALIGN", "is", "the", "alignment", "that", "the", "object", "would", "ordinarily", "have", ".", "The", "value", "of", "this", "function", "is", "used", "instead", "of", "that", "alignment", "to", "align", "the", "object", "."], "TS_V_token": ["i386", "256", "8", "128", "128", "128", "64", "64", "128", "128", "64", "64", "128", "128", "64", "64", "128", "128", "64", "64", "128", "128"], "File": "i3867", "Func": "ix86_data_alignment", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1525, "Length": 481, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMTargetLowering", "::", "lowerInterleavedStore", "(", "StoreInst", "*", "SI", ",", "ShuffleVectorInst", "*", "SVI", ",", "unsigned", "Factor", ")", "const", "{", "assert", "(", "Factor", ">=", "2", "&&", "Factor", "<=", "getMaxSupportedInterleaveFactor", "(", ")", "&&", "\"Invalid interleave factor\"", ")", ";", "VectorType", "*", "VecTy", "=", "SVI", "->", "getType", "(", ")", ";", "assert", "(", "VecTy", "->", "getVectorNumElements", "(", ")", "%", "Factor", "==", "0", "&&", "\"Invalid interleaved store\"", ")", ";", "unsigned", "NumSubElts", "=", "VecTy", "->", "getVectorNumElements", "(", ")", "/", "Factor", ";", "Type", "*", "EltTy", "=", "VecTy", "->", "getVectorElementType", "(", ")", ";", "VectorType", "*", "SubVecTy", "=", "VectorType", "::", "get", "(", "EltTy", ",", "NumSubElts", ")", ";", "const", "DataLayout", "&", "DL", "=", "SI", "->", "getModule", "(", ")", "->", "getDataLayout", "(", ")", ";", "unsigned", "SubVecSize", "=", "DL", ".", "getTypeAllocSizeInBits", "(", "SubVecTy", ")", ";", "bool", "EltIs64Bits", "=", "DL", ".", "getTypeAllocSizeInBits", "(", "EltTy", ")", "==", "64", ";", "if", "(", "!", "Subtarget", "->", "hasNEON", "(", ")", "||", "(", "SubVecSize", "!=", "64", "&&", "SubVecSize", "!=", "128", ")", "||", "EltIs64Bits", ")", "return", "false", ";", "Value", "*", "Op0", "=", "SVI", "->", "getOperand", "(", "0", ")", ";", "Value", "*", "Op1", "=", "SVI", "->", "getOperand", "(", "1", ")", ";", "IRBuilder", "<", ">", "Builder", "(", "SI", ")", ";", "if", "(", "EltTy", "->", "isPointerTy", "(", ")", ")", "{", "Type", "*", "IntTy", "=", "DL", ".", "getIntPtrType", "(", "EltTy", ")", ";", "Type", "*", "IntVecTy", "=", "VectorType", "::", "get", "(", "IntTy", ",", "Op0", "->", "getType", "(", ")", "->", "getVectorNumElements", "(", ")", ")", ";", "Op0", "=", "Builder", ".", "CreatePtrToInt", "(", "Op0", ",", "IntVecTy", ")", ";", "Op1", "=", "Builder", ".", "CreatePtrToInt", "(", "Op1", ",", "IntVecTy", ")", ";", "SubVecTy", "=", "VectorType", "::", "get", "(", "IntTy", ",", "NumSubElts", ")", ";", "}", "static", "const", "Intrinsic", "::", "ID", "StoreInts", "[", "3", "]", "=", "{", "Intrinsic", "::", "arm_neon_vst2", ",", "Intrinsic", "::", "arm_neon_vst3", ",", "Intrinsic", "::", "arm_neon_vst4", "}", ";", "SmallVector", "<", "Value", "*", ",", "6", ">", "Ops", ";", "Type", "*", "Int8Ptr", "=", "Builder", ".", "getInt8PtrTy", "(", "SI", "->", "getPointerAddressSpace", "(", ")", ")", ";", "Ops", ".", "push_back", "(", "Builder", ".", "CreateBitCast", "(", "SI", "->", "getPointerOperand", "(", ")", ",", "Int8Ptr", ")", ")", ";", "Type", "*", "Tys", "[", "]", "=", "{", "Int8Ptr", ",", "SubVecTy", "}", ";", "Function", "*", "VstNFunc", "=", "Intrinsic", "::", "getDeclaration", "(", "SI", "->", "getModule", "(", ")", ",", "StoreInts", "[", "Factor", "-", "2", "]", ",", "Tys", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "Factor", ";", "i", "++", ")", "Ops", ".", "push_back", "(", "Builder", ".", "CreateShuffleVector", "(", "Op0", ",", "Op1", ",", "getSequentialMask", "(", "Builder", ",", "NumSubElts", "*", "i", ",", "NumSubElts", ")", ")", ")", ";", "Ops", ".", "push_back", "(", "Builder", ".", "getInt32", "(", "SI", "->", "getAlignment", "(", ")", ")", ")", ";", "Builder", ".", "CreateCall", "(", "VstNFunc", ",", "Ops", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Lower", "interleaved", "store", "(", "s", ")", "into", "target", "specific", "instructions/intrinsics", "."], "TS_V_token": ["ARM", "ARM", "2", "\"Invalid interleave factor\"", "0", "\"Invalid interleaved store\"", "64", "64", "128", "0", "1", "Intrinsic::ID", "3", "Intrinsic::arm_neon_vst2", "Intrinsic::arm_neon_vst3", "Intrinsic::arm_neon_vst4", "6", "Intrinsic::getDeclaration", "2", "0"], "File": "ARMISelLowering119", "Func": "lowerInterleavedStore", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1526, "Length": 428, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetIRAnalysis", "SystemZTargetMachine", "::", "getTargetIRAnalysis", "(", ")", "{", "return", "TargetIRAnalysis", "(", "[", "this", "]", "(", "Function", "&", "F", ")", "{", "return", "TargetTransformInfo", "(", "SystemZTTIImpl", "(", "this", ",", "F", ")", ")", ";", "}", ")", ";", "}", ""], "natrual_language": ["Get", "a", "TargetIRAnalysis", "appropriate", "for", "the", "target", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ"], "File": "SystemZTargetMachine38", "Func": "getTargetIRAnalysis", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1527, "Length": 34, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "offsettable_ok_by_alignment", "(", "rtx", "op", ",", "HOST_WIDE_INT", "offset", ",", "machine_mode", "mode", ")", "{", "tree", "decl", ";", "unsigned", "HOST_WIDE_INT", "dsize", ",", "dalign", ",", "lsb", ",", "mask", ";", "if", "(", "GET_CODE", "(", "op", ")", "!=", "SYMBOL_REF", ")", "return", "false", ";", "dsize", "=", "GET_MODE_SIZE", "(", "mode", ")", ";", "decl", "=", "SYMBOL_REF_DECL", "(", "op", ")", ";", "if", "(", "!", "decl", ")", "{", "if", "(", "dsize", "==", "0", ")", "return", "false", ";", "dalign", "=", "BITS_PER_UNIT", ";", "if", "(", "SYMBOL_REF_HAS_BLOCK_INFO_P", "(", "op", ")", "&&", "SYMBOL_REF_ANCHOR_P", "(", "op", ")", "&&", "SYMBOL_REF_BLOCK", "(", "op", ")", "!=", "NULL", ")", "{", "struct", "object_block", "*", "block", "=", "SYMBOL_REF_BLOCK", "(", "op", ")", ";", "dalign", "=", "block", "->", "alignment", ";", "offset", "+=", "SYMBOL_REF_BLOCK_OFFSET", "(", "op", ")", ";", "}", "else", "if", "(", "CONSTANT_POOL_ADDRESS_P", "(", "op", ")", ")", "{", "machine_mode", "cmode", "=", "get_pool_mode", "(", "op", ")", ";", "dalign", "=", "GET_MODE_ALIGNMENT", "(", "cmode", ")", ";", "}", "}", "else", "if", "(", "DECL_P", "(", "decl", ")", ")", "{", "dalign", "=", "DECL_ALIGN", "(", "decl", ")", ";", "if", "(", "dsize", "==", "0", ")", "{", "if", "(", "!", "DECL_SIZE_UNIT", "(", "decl", ")", ")", "return", "false", ";", "if", "(", "!", "tree_fits_uhwi_p", "(", "DECL_SIZE_UNIT", "(", "decl", ")", ")", ")", "return", "false", ";", "dsize", "=", "tree_to_uhwi", "(", "DECL_SIZE_UNIT", "(", "decl", ")", ")", ";", "if", "(", "dsize", ">", "32768", ")", "return", "false", ";", "dalign", "/=", "BITS_PER_UNIT", ";", "if", "(", "dalign", ">", "POWERPC64_TOC_POINTER_ALIGNMENT", ")", "dalign", "=", "POWERPC64_TOC_POINTER_ALIGNMENT", ";", "return", "dalign", ">=", "dsize", ";", "}", "}", "else", "gcc_unreachable", "(", ")", ";", "dalign", "/=", "BITS_PER_UNIT", ";", "if", "(", "dalign", ">", "POWERPC64_TOC_POINTER_ALIGNMENT", ")", "dalign", "=", "POWERPC64_TOC_POINTER_ALIGNMENT", ";", "mask", "=", "dalign", "-", "1", ";", "lsb", "=", "offset", "&", "-", "offset", ";", "mask", "&=", "lsb", "-", "1", ";", "dalign", "=", "mask", "+", "1", ";", "return", "dalign", ">=", "dsize", ";", "}", ""], "natrual_language": ["Return", "true", "if", "a", "MODE", "sized", "memory", "accesses", "to", "OP", "plus", "OFFSET", "is", "known", "to", "not", "straddle", "a", "32k", "boundary", "."], "TS_V_token": ["rs6000", "0", "0", "32768", "1", "1", "1"], "File": "rs60005", "Func": "offsettable_ok_by_alignment", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1528, "Length": 280, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDNode", "*", "X86DAGToDAGISel", "::", "getGlobalBaseReg", "(", ")", "{", "MachineFunction", "*", "MF", "=", "CurBB", "->", "getParent", "(", ")", ";", "unsigned", "GlobalBaseReg", "=", "TM", ".", "getInstrInfo", "(", ")", "->", "getGlobalBaseReg", "(", "MF", ")", ";", "return", "CurDAG", "->", "getRegister", "(", "GlobalBaseReg", ",", "TLI", ".", "getPointerTy", "(", ")", ")", ".", "getNode", "(", ")", ";", "}", ""], "natrual_language": ["getGlobalBaseReg", "-", "Return", "a", "virtual", "register", "initialized", "with", "the", "the", "global", "base", "register", "value", "."], "TS_V_token": ["X86", "X86"], "File": "X86ISelDAGToDAG104", "Func": "getGlobalBaseReg", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1529, "Length": 51, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "shouldClusterMemOps", "(", "const", "MachineOperand", "&", "BaseOp1", ",", "const", "MachineOperand", "&", "BaseOp2", ",", "unsigned", "NumLoads", ")", "const", "{", "const", "MachineInstr", "&", "FirstLdSt", "=", "*", "BaseOp1", ".", "getParent", "(", ")", ";", "const", "MachineInstr", "&", "SecondLdSt", "=", "*", "BaseOp2", ".", "getParent", "(", ")", ";", "if", "(", "BaseOp1", ".", "getType", "(", ")", "!=", "BaseOp2", ".", "getType", "(", ")", ")", "return", "false", ";", "assert", "(", "(", "BaseOp1", ".", "isReg", "(", ")", "||", "BaseOp1", ".", "isFI", "(", ")", ")", "&&", "\"Only base registers and frame indices are supported.\"", ")", ";", "if", "(", "BaseOp1", ".", "isReg", "(", ")", "&&", "BaseOp1", ".", "getReg", "(", ")", "!=", "BaseOp2", ".", "getReg", "(", ")", ")", "return", "false", ";", "if", "(", "NumLoads", ">", "1", ")", "return", "false", ";", "if", "(", "!", "isPairableLdStInst", "(", "FirstLdSt", ")", "||", "!", "isPairableLdStInst", "(", "SecondLdSt", ")", ")", "return", "false", ";", "unsigned", "FirstOpc", "=", "FirstLdSt", ".", "getOpcode", "(", ")", ";", "unsigned", "SecondOpc", "=", "SecondLdSt", ".", "getOpcode", "(", ")", ";", "if", "(", "!", "canPairLdStOpc", "(", "FirstOpc", ",", "SecondOpc", ")", ")", "return", "false", ";", "if", "(", "!", "isCandidateToMergeOrPair", "(", "FirstLdSt", ")", "||", "!", "isCandidateToMergeOrPair", "(", "SecondLdSt", ")", ")", "return", "false", ";", "int64_t", "Offset1", "=", "FirstLdSt", ".", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "if", "(", "isUnscaledLdSt", "(", "FirstOpc", ")", "&&", "!", "scaleOffset", "(", "FirstOpc", ",", "Offset1", ")", ")", "return", "false", ";", "int64_t", "Offset2", "=", "SecondLdSt", ".", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "if", "(", "isUnscaledLdSt", "(", "SecondOpc", ")", "&&", "!", "scaleOffset", "(", "SecondOpc", ",", "Offset2", ")", ")", "return", "false", ";", "if", "(", "Offset1", ">", "63", "||", "Offset1", "<", "-", "64", ")", "return", "false", ";", "if", "(", "BaseOp1", ".", "isFI", "(", ")", ")", "{", "assert", "(", "(", "!", "BaseOp1", ".", "isIdenticalTo", "(", "BaseOp2", ")", "||", "Offset1", ">=", "Offset2", ")", "&&", "\"Caller should have ordered offsets.\"", ")", ";", "const", "MachineFrameInfo", "&", "MFI", "=", "FirstLdSt", ".", "getParent", "(", ")", "->", "getParent", "(", ")", "->", "getFrameInfo", "(", ")", ";", "return", "shouldClusterFI", "(", "MFI", ",", "BaseOp1", ".", "getIndex", "(", ")", ",", "Offset1", ",", "FirstOpc", ",", "BaseOp2", ".", "getIndex", "(", ")", ",", "Offset2", ",", "SecondOpc", ")", ";", "}", "assert", "(", "(", "!", "BaseOp1", ".", "isIdenticalTo", "(", "BaseOp2", ")", "||", "Offset1", "<=", "Offset2", ")", "&&", "\"Caller should have ordered offsets.\"", ")", ";", "return", "Offset1", "+", "1", "==", "Offset2", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "two", "given", "memory", "operations", "should", "be", "scheduled", "adjacent", "."], "TS_V_token": ["AArch64", "AArch64", "\"Only base registers and frame indices are supported.\"", "1", "2", "2", "63", "64", "\"Caller should have ordered offsets.\"", "\"Caller should have ordered offsets.\"", "1"], "File": "AArch64InstrInfo10", "Func": "shouldClusterMemOps", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1530, "Length": 356, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "LanaiTargetLowering", "::", "getRegisterByName", "(", "const", "char", "*", "RegName", ",", "EVT", "VT", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "unsigned", "Reg", "=", "StringSwitch", "<", "unsigned", ">", "(", "RegName", ")", ".", "Case", "(", "\"pc\"", ",", "Lanai", "::", "PC", ")", ".", "Case", "(", "\"sp\"", ",", "Lanai", "::", "SP", ")", ".", "Case", "(", "\"fp\"", ",", "Lanai", "::", "FP", ")", ".", "Case", "(", "\"rr1\"", ",", "Lanai", "::", "RR1", ")", ".", "Case", "(", "\"r10\"", ",", "Lanai", "::", "R10", ")", ".", "Case", "(", "\"rr2\"", ",", "Lanai", "::", "RR2", ")", ".", "Case", "(", "\"r11\"", ",", "Lanai", "::", "R11", ")", ".", "Case", "(", "\"rca\"", ",", "Lanai", "::", "RCA", ")", ".", "Default", "(", "0", ")", ";", "if", "(", "Reg", ")", "return", "Reg", ";", "report_fatal_error", "(", "\"Invalid register name global variable\"", ")", ";", "}", ""], "natrual_language": ["Return", "the", "register", "ID", "of", "the", "name", "passed", "in", "."], "TS_V_token": ["Lanai", "Lanai", "\"pc\"", "Lanai::PC", "\"sp\"", "Lanai::SP", "\"fp\"", "Lanai::FP", "\"rr1\"", "Lanai::RR1", "\"r10\"", "Lanai::R10", "\"rr2\"", "Lanai::RR2", "\"r11\"", "Lanai::R11", "\"rca\"", "Lanai::RCA", "0", "\"Invalid register name global variable\""], "File": "LanaiISelLowering21", "Func": "getRegisterByName", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1531, "Length": 120, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "rs6000_builtin_reciprocal", "(", "tree", "fndecl", ")", "{", "switch", "(", "DECL_MD_FUNCTION_CODE", "(", "fndecl", ")", ")", "{", "case", "VSX_BUILTIN_XVSQRTDP", ":", "if", "(", "!", "RS6000_RECIP_AUTO_RSQRTE_P", "(", "V2DFmode", ")", ")", "return", "NULL_TREE", ";", "return", "rs6000_builtin_decls", "[", "VSX_BUILTIN_RSQRT_2DF", "]", ";", "case", "VSX_BUILTIN_XVSQRTSP", ":", "if", "(", "!", "RS6000_RECIP_AUTO_RSQRTE_P", "(", "V4SFmode", ")", ")", "return", "NULL_TREE", ";", "return", "rs6000_builtin_decls", "[", "VSX_BUILTIN_RSQRT_4SF", "]", ";", "default", ":", "return", "NULL_TREE", ";", "}", "}", ""], "natrual_language": ["Returns", "a", "code", "for", "a", "target-specific", "builtin", "that", "implements", "reciprocal", "of", "the", "function", ",", "or", "NULL_TREE", "if", "not", "available", "."], "TS_V_token": ["rs6000"], "File": "rs6000", "Func": "rs6000_builtin_reciprocal", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1532, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "loongarch_mode_ok_for_mov_fmt_p", "(", "machine_mode", "mode", ")", "{", "switch", "(", "mode", ")", "{", "case", "E_FCCmode", ":", "case", "E_SFmode", ":", "return", "TARGET_HARD_FLOAT", ";", "case", "E_DFmode", ":", "return", "TARGET_HARD_FLOAT", "&&", "TARGET_DOUBLE_FLOAT", ";", "default", ":", "return", "0", ";", "}", "}", ""], "natrual_language": ["Return", "true", "if", "moves", "in", "mode", "MODE", "can", "use", "the", "FPU", "'s", "fmov.fmt", "instruction", ","], "TS_V_token": ["loongarch", "0"], "File": "loongarch", "Func": "loongarch_mode_ok_for_mov_fmt_p", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1533, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseInstrInfo", "::", "isPredicable", "(", "MachineInstr", "&", "MI", ")", "const", "{", "if", "(", "!", "MI", ".", "isPredicable", "(", ")", ")", "return", "false", ";", "if", "(", "MI", ".", "isBundle", "(", ")", ")", "return", "false", ";", "if", "(", "!", "isEligibleForITBlock", "(", "&", "MI", ")", ")", "return", "false", ";", "ARMFunctionInfo", "*", "AFI", "=", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", "->", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "if", "(", "AFI", "->", "isThumb2Function", "(", ")", ")", "{", "if", "(", "getSubtarget", "(", ")", ".", "restrictIT", "(", ")", ")", "return", "isV8EligibleForIT", "(", "&", "MI", ")", ";", "}", "else", "{", "if", "(", "(", "MI", ".", "getDesc", "(", ")", ".", "TSFlags", "&", "ARMII", "::", "DomainMask", ")", "==", "ARMII", "::", "DomainNEON", ")", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "specified", "instruction", "can", "be", "predicated", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARMII::DomainMask", "ARMII::DomainNEON"], "File": "ARMBaseInstrInfo63", "Func": "isPredicable", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1534, "Length": 124, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_pass_by_reference", "(", "cumulative_args_t", "cum", "ATTRIBUTE_UNUSED", ",", "machine_mode", "mode", ",", "const_tree", "type", ",", "bool", "named", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "mips_abi", "==", "ABI_EABI", ")", "{", "int", "size", ";", "if", "(", "mode", "==", "DImode", "||", "mode", "==", "DFmode", "||", "mode", "==", "DQmode", "||", "mode", "==", "UDQmode", "||", "mode", "==", "DAmode", "||", "mode", "==", "UDAmode", ")", "return", "0", ";", "size", "=", "type", "?", "int_size_in_bytes", "(", "type", ")", ":", "GET_MODE_SIZE", "(", "mode", ")", ";", "return", "size", "==", "-", "1", "||", "size", ">", "UNITS_PER_WORD", ";", "}", "else", "{", "return", "targetm", ".", "calls", ".", "must_pass_in_stack", "(", "mode", ",", "type", ")", ";", "}", "}", ""], "natrual_language": ["Return", "nonzero", "when", "an", "argument", "must", "be", "passed", "by", "reference", "."], "TS_V_token": ["mips", "0", "1"], "File": "mips4", "Func": "mips_pass_by_reference", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1535, "Length": 99, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getMaxNumElements", "(", "ElementCount", "VF", ",", "const", "Function", "*", "F", "=", "nullptr", ")", "const", "{", "if", "(", "!", "VF", ".", "isScalable", "(", ")", ")", "return", "VF", ".", "getFixedValue", "(", ")", ";", "unsigned", "MaxNumVScale", "=", "16", ";", "if", "(", "F", "&&", "F", "->", "hasFnAttribute", "(", "Attribute", "::", "VScaleRange", ")", ")", "{", "unsigned", "VScaleMax", "=", "F", "->", "getFnAttribute", "(", "Attribute", "::", "VScaleRange", ")", ".", "getVScaleRangeArgs", "(", ")", ".", "second", ";", "if", "(", "VScaleMax", ">", "0", ")", "MaxNumVScale", "=", "VScaleMax", ";", "}", "return", "MaxNumVScale", "*", "VF", ".", "getKnownMinValue", "(", ")", ";", "}", ""], "natrual_language": ["Try", "to", "return", "an", "estimate", "cost", "factor", "that", "can", "be", "used", "as", "a", "multiplier", "when", "scalarizing", "an", "operation", "for", "a", "vector", "with", "ElementCount", "VF", "."], "TS_V_token": ["AArch64", "16", "0"], "File": "AArch64TargetTransformInfo16", "Func": "getMaxNumElements", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1536, "Length": 89, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "aarch64_gen_storewb_pair", "(", "machine_mode", "mode", ",", "rtx", "base", ",", "rtx", "reg", ",", "rtx", "reg2", ",", "HOST_WIDE_INT", "adjustment", ")", "{", "switch", "(", "mode", ")", "{", "case", "E_DImode", ":", "return", "gen_storewb_pairdi_di", "(", "base", ",", "base", ",", "reg", ",", "reg2", ",", "GEN_INT", "(", "-", "adjustment", ")", ",", "GEN_INT", "(", "UNITS_PER_WORD", "-", "adjustment", ")", ")", ";", "case", "E_DFmode", ":", "return", "gen_storewb_pairdf_di", "(", "base", ",", "base", ",", "reg", ",", "reg2", ",", "GEN_INT", "(", "-", "adjustment", ")", ",", "GEN_INT", "(", "UNITS_PER_WORD", "-", "adjustment", ")", ")", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Generate", "and", "return", "an", "instruction", "to", "store", "the", "pair", "of", "registers", "REG", "and", "REG2", "of", "mode", "MODE", "to", "location", "BASE", "with", "write-back", "adjusting", "the", "stack", "location", "BASE", "by", "ADJUSTMENT", "."], "TS_V_token": ["aarch64"], "File": "aarch645", "Func": "aarch64_gen_storewb_pair", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1537, "Length": 89, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "struct", "mips_cpu_info", "*", "mips_cpu_info_from_isa", "(", "int", "isa", ")", "{", "const", "struct", "mips_cpu_info", "*", "p", ";", "for", "(", "p", "=", "mips_cpu_info_table", ";", "p", "->", "name", "!=", "0", ";", "p", "++", ")", "if", "(", "p", "->", "isa", "==", "isa", ")", "return", "p", ";", "return", "0", ";", "}", ""], "natrual_language": ["Return", "the", "processor", "associated", "with", "the", "given", "ISA", "level", ",", "or", "null", "if", "the", "ISA", "is", "n't", "valid", "."], "TS_V_token": ["mips", "0", "0"], "File": "mips3", "Func": "mips_cpu_info_from_isa", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1538, "Length": 47, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "LanaiSubtarget", "*", "getSubtargetImpl", "(", "const", "llvm", "::", "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": ["Lanai", "Lanai"], "File": "LanaiTargetMachine", "Func": "getSubtargetImpl", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1539, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "sparc_splitdi_legitimate", "(", "rtx", "reg", ",", "rtx", "mem", ")", "{", "gcc_assert", "(", "reload_completed", ")", ";", "if", "(", "!", "offsettable_memref_p", "(", "mem", ")", ")", "return", "0", ";", "if", "(", "(", "REGNO", "(", "reg", ")", "%", "2", ")", "==", "0", "&&", "mem_min_alignment", "(", "mem", ",", "8", ")", ")", "return", "0", ";", "return", "1", ";", "}", ""], "natrual_language": ["Return", "1", "if", "REG", "and", "MEM", "are", "legitimate", "enough", "to", "allow", "the", "various", "mem", "<", "--", ">", "reg", "splits", "to", "be", "run", "."], "TS_V_token": ["sparc", "0", "2", "0", "8", "0", "1"], "File": "sparc3", "Func": "sparc_splitdi_legitimate", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1540, "Length": 53, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "shmedia_target_regs_stack_space", "(", "HARD_REG_SET", "*", "live_regs_mask", ")", "{", "int", "reg", ";", "int", "stack_space", "=", "0", ";", "int", "interrupt_handler", "=", "sh_cfun_interrupt_handler_p", "(", ")", ";", "for", "(", "reg", "=", "LAST_TARGET_REG", ";", "reg", ">=", "FIRST_TARGET_REG", ";", "reg", "--", ")", "if", "(", "(", "!", "call_really_used_regs", "[", "reg", "]", "||", "interrupt_handler", ")", "&&", "!", "TEST_HARD_REG_BIT", "(", "*", "live_regs_mask", ",", "reg", ")", ")", "stack_space", "+=", "GET_MODE_SIZE", "(", "REGISTER_NATURAL_MODE", "(", "reg", ")", ")", ";", "return", "stack_space", ";", "}", ""], "natrual_language": ["Calculate", "how", "much", "extra", "space", "is", "needed", "to", "save", "all", "callee-saved", "target", "registers", ".", "LIVE_REGS_MASK", "is", "the", "register", "mask", "calculated", "by", "calc_live_regs", "."], "TS_V_token": ["sh", "0"], "File": "sh3", "Func": "shmedia_target_regs_stack_space", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1541, "Length": 72, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_init_bf16_types", "(", "void", ")", "{", "lang_hooks", ".", "types", ".", "register_builtin_type", "(", "bfloat16_type_node", ",", "\"__bf16\"", ")", ";", "aarch64_bf16_ptr_type_node", "=", "build_pointer_type", "(", "bfloat16_type_node", ")", ";", "}", ""], "natrual_language": ["Initialize", "the", "backend", "REAL_TYPE", "type", "supporting", "bfloat", "types", "."], "TS_V_token": ["aarch64", "\"__bf16\""], "File": "aarch64-builtins1", "Func": "aarch64_init_bf16_types", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1542, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "nds32_construct_isr_vectors_information", "(", "tree", "func_attrs", ",", "const", "char", "*", "func_name", ")", "{", "tree", "save_all", ",", "partial_save", ";", "tree", "nested", ",", "not_nested", ",", "nested_ready", ";", "tree", "intr", ",", "excp", ",", "reset", ";", "save_all", "=", "lookup_attribute", "(", "\"save_all\"", ",", "func_attrs", ")", ";", "partial_save", "=", "lookup_attribute", "(", "\"partial_save\"", ",", "func_attrs", ")", ";", "nested", "=", "lookup_attribute", "(", "\"nested\"", ",", "func_attrs", ")", ";", "not_nested", "=", "lookup_attribute", "(", "\"not_nested\"", ",", "func_attrs", ")", ";", "nested_ready", "=", "lookup_attribute", "(", "\"nested_ready\"", ",", "func_attrs", ")", ";", "intr", "=", "lookup_attribute", "(", "\"interrupt\"", ",", "func_attrs", ")", ";", "excp", "=", "lookup_attribute", "(", "\"exception\"", ",", "func_attrs", ")", ";", "reset", "=", "lookup_attribute", "(", "\"reset\"", ",", "func_attrs", ")", ";", "if", "(", "!", "intr", "&&", "!", "excp", "&&", "!", "reset", ")", "return", ";", "if", "(", "intr", "||", "excp", ")", "{", "tree", "id_list", ";", "id_list", "=", "(", "intr", ")", "?", "(", "TREE_VALUE", "(", "intr", ")", ")", ":", "(", "TREE_VALUE", "(", "excp", ")", ")", ";", "while", "(", "id_list", ")", "{", "tree", "id", ";", "int", "vector_id", ";", "unsigned", "int", "vector_number_offset", ";", "vector_number_offset", "=", "(", "intr", ")", "?", "(", "9", ")", ":", "(", "0", ")", ";", "id", "=", "TREE_VALUE", "(", "id_list", ")", ";", "vector_id", "=", "TREE_INT_CST_LOW", "(", "id", ")", "+", "vector_number_offset", ";", "nds32_isr_vectors", "[", "vector_id", "]", ".", "category", "=", "(", "intr", ")", "?", "(", "NDS32_ISR_INTERRUPT", ")", ":", "(", "NDS32_ISR_EXCEPTION", ")", ";", "strcpy", "(", "nds32_isr_vectors", "[", "vector_id", "]", ".", "func_name", ",", "func_name", ")", ";", "if", "(", "save_all", ")", "nds32_isr_vectors", "[", "vector_id", "]", ".", "save_reg", "=", "NDS32_SAVE_ALL", ";", "else", "if", "(", "partial_save", ")", "nds32_isr_vectors", "[", "vector_id", "]", ".", "save_reg", "=", "NDS32_PARTIAL_SAVE", ";", "if", "(", "nested", ")", "nds32_isr_vectors", "[", "vector_id", "]", ".", "nested_type", "=", "NDS32_NESTED", ";", "else", "if", "(", "not_nested", ")", "nds32_isr_vectors", "[", "vector_id", "]", ".", "nested_type", "=", "NDS32_NOT_NESTED", ";", "else", "if", "(", "nested_ready", ")", "nds32_isr_vectors", "[", "vector_id", "]", ".", "nested_type", "=", "NDS32_NESTED_READY", ";", "id_list", "=", "TREE_CHAIN", "(", "id_list", ")", ";", "}", "}", "else", "{", "tree", "id_list", ";", "tree", "id", ";", "tree", "nmi", ",", "warm", ";", "nds32_isr_vectors", "[", "0", "]", ".", "category", "=", "NDS32_ISR_RESET", ";", "id_list", "=", "TREE_VALUE", "(", "reset", ")", ";", "id", "=", "TREE_VALUE", "(", "id_list", ")", ";", "nds32_isr_vectors", "[", "0", "]", ".", "total_n_vectors", "=", "TREE_INT_CST_LOW", "(", "id", ")", "+", "8", "+", "1", ";", "strcpy", "(", "nds32_isr_vectors", "[", "0", "]", ".", "func_name", ",", "func_name", ")", ";", "nmi", "=", "lookup_attribute", "(", "\"nmi\"", ",", "func_attrs", ")", ";", "warm", "=", "lookup_attribute", "(", "\"warm\"", ",", "func_attrs", ")", ";", "if", "(", "nmi", "!=", "NULL_TREE", ")", "{", "tree", "nmi_func_list", ";", "tree", "nmi_func", ";", "nmi_func_list", "=", "TREE_VALUE", "(", "nmi", ")", ";", "nmi_func", "=", "TREE_VALUE", "(", "nmi_func_list", ")", ";", "strcpy", "(", "nds32_isr_vectors", "[", "0", "]", ".", "nmi_name", ",", "IDENTIFIER_POINTER", "(", "nmi_func", ")", ")", ";", "}", "if", "(", "warm", "!=", "NULL_TREE", ")", "{", "tree", "warm_func_list", ";", "tree", "warm_func", ";", "warm_func_list", "=", "TREE_VALUE", "(", "warm", ")", ";", "warm_func", "=", "TREE_VALUE", "(", "warm_func_list", ")", ";", "strcpy", "(", "nds32_isr_vectors", "[", "0", "]", ".", "warm_name", ",", "IDENTIFIER_POINTER", "(", "warm_func", ")", ")", ";", "}", "}", "}", ""], "natrual_language": ["Function", "to", "construct", "isr", "vectors", "information", "array", ".", "We", "DO", "NOT", "HAVE", "TO", "check", "if", "the", "attributes", "are", "valid", "because", "those", "works", "are", "supposed", "to", "be", "done", "on", "nds32_merge_decl_attributes", "(", ")", "and", "nds32_insert_attributes", "(", ")", "."], "TS_V_token": ["nds32", "\"save_all\"", "\"partial_save\"", "\"nested\"", "\"not_nested\"", "\"nested_ready\"", "\"interrupt\"", "\"exception\"", "\"reset\"", "9", "0", "0", "0", "8", "1", "0", "\"nmi\"", "\"warm\"", "0", "0"], "File": "nds32-isr2", "Func": "nds32_construct_isr_vectors_information", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1543, "Length": 469, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "CAHPInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "O", ",", "StringRef", "Annot", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "{", "printInstruction", "(", "MI", ",", "STI", ",", "O", ")", ";", "printAnnotation", "(", "O", ",", "Annot", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["CAHP", "CAHP"], "File": "CAHPInstPrinter", "Func": "printInst", "Target": "CAHP", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1544, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86DAGToDAGISel", "::", "PreprocessISelDAG", "(", ")", "{", "OptForSize", "=", "MF", "->", "getFunction", "(", ")", "->", "getAttributes", "(", ")", ".", "hasAttribute", "(", "AttributeSet", "::", "FunctionIndex", ",", "Attribute", "::", "OptimizeForSize", ")", ";", "for", "(", "SelectionDAG", "::", "allnodes_iterator", "I", "=", "CurDAG", "->", "allnodes_begin", "(", ")", ",", "E", "=", "CurDAG", "->", "allnodes_end", "(", ")", ";", "I", "!=", "E", ";", ")", "{", "SDNode", "*", "N", "=", "I", "++", ";", "if", "(", "OptLevel", "!=", "CodeGenOpt", "::", "None", "&&", "(", "(", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "CALL", "&&", "!", "Subtarget", "->", "callRegIndirect", "(", ")", ")", "||", "(", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "TC_RETURN", "&&", "(", "Subtarget", "->", "is64Bit", "(", ")", "||", "getTargetMachine", "(", ")", ".", "getRelocationModel", "(", ")", "!=", "Reloc", "::", "PIC_", ")", ")", ")", ")", "{", "bool", "HasCallSeq", "=", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "CALL", ";", "SDValue", "Chain", "=", "N", "->", "getOperand", "(", "0", ")", ";", "SDValue", "Load", "=", "N", "->", "getOperand", "(", "1", ")", ";", "if", "(", "!", "isCalleeLoad", "(", "Load", ",", "Chain", ",", "HasCallSeq", ")", ")", "continue", ";", "MoveBelowOrigChain", "(", "CurDAG", ",", "Load", ",", "SDValue", "(", "N", ",", "0", ")", ",", "Chain", ")", ";", "++", "NumLoadMoved", ";", "continue", ";", "}", "if", "(", "N", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "FP_ROUND", "&&", "N", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "FP_EXTEND", ")", "continue", ";", "EVT", "SrcVT", "=", "N", "->", "getOperand", "(", "0", ")", ".", "getValueType", "(", ")", ";", "EVT", "DstVT", "=", "N", "->", "getValueType", "(", "0", ")", ";", "if", "(", "SrcVT", ".", "isVector", "(", ")", "||", "DstVT", ".", "isVector", "(", ")", ")", "continue", ";", "X86TargetLowering", "*", "X86Lowering", "=", "(", "X86TargetLowering", "*", ")", "getTargetLowering", "(", ")", ";", "bool", "SrcIsSSE", "=", "X86Lowering", "->", "isScalarFPTypeInSSEReg", "(", "SrcVT", ")", ";", "bool", "DstIsSSE", "=", "X86Lowering", "->", "isScalarFPTypeInSSEReg", "(", "DstVT", ")", ";", "if", "(", "SrcIsSSE", "&&", "DstIsSSE", ")", "continue", ";", "if", "(", "!", "SrcIsSSE", "&&", "!", "DstIsSSE", ")", "{", "if", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "FP_EXTEND", ")", "continue", ";", "if", "(", "N", "->", "getConstantOperandVal", "(", "1", ")", ")", "continue", ";", "}", "EVT", "MemVT", ";", "if", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "FP_ROUND", ")", "MemVT", "=", "DstVT", ";", "else", "MemVT", "=", "SrcIsSSE", "?", "SrcVT", ":", "DstVT", ";", "SDValue", "MemTmp", "=", "CurDAG", "->", "CreateStackTemporary", "(", "MemVT", ")", ";", "SDLoc", "dl", "(", "N", ")", ";", "SDValue", "Store", "=", "CurDAG", "->", "getTruncStore", "(", "CurDAG", "->", "getEntryNode", "(", ")", ",", "dl", ",", "N", "->", "getOperand", "(", "0", ")", ",", "MemTmp", ",", "MachinePointerInfo", "(", ")", ",", "MemVT", ",", "false", ",", "false", ",", "0", ")", ";", "SDValue", "Result", "=", "CurDAG", "->", "getExtLoad", "(", "ISD", "::", "EXTLOAD", ",", "dl", ",", "DstVT", ",", "Store", ",", "MemTmp", ",", "MachinePointerInfo", "(", ")", ",", "MemVT", ",", "false", ",", "false", ",", "0", ")", ";", "--", "I", ";", "CurDAG", "->", "ReplaceAllUsesOfValueWith", "(", "SDValue", "(", "N", ",", "0", ")", ",", "Result", ")", ";", "++", "I", ";", "CurDAG", "->", "DeleteNode", "(", "N", ")", ";", "}", "}", ""], "natrual_language": ["PreprocessISelDAG", "-", "This", "hook", "allows", "targets", "to", "hack", "on", "the", "graph", "before", "instruction", "selection", "starts", "."], "TS_V_token": ["X86", "X86", "X86ISD::CALL", "X86ISD::TC_RETURN", "X86ISD::CALL", "0", "1", "0", "ISD::FP_ROUND", "ISD::FP_EXTEND", "0", "0", "X86", "X86", "X86", "X86", "X86", "ISD::FP_EXTEND", "1", "ISD::FP_ROUND", "0", "0", "ISD::EXTLOAD", "0", "0"], "File": "X86ISelDAGToDAG4", "Func": "PreprocessISelDAG", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1545, "Length": 476, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "OR1KTargetLowering", "::", "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_OR1K32", ")", ";", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", "(", "1", ",", "Chain", ")", ";", "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", "(", ")", ")", ")", ";", "}", "if", "(", "DAG", ".", "getMachineFunction", "(", ")", ".", "getFunction", "(", ")", "->", "hasStructRetAttr", "(", ")", ")", "{", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "OR1KMachineFunctionInfo", "*", "OR1KMFI", "=", "MF", ".", "getInfo", "<", "OR1KMachineFunctionInfo", ">", "(", ")", ";", "auto", "PtrVT", "=", "getPointerTy", "(", "DAG", ".", "getDataLayout", "(", ")", ")", ";", "unsigned", "Reg", "=", "OR1KMFI", "->", "getSRetReturnReg", "(", ")", ";", "assert", "(", "Reg", "&&", "\"SRetReturnReg should have been set in LowerFormalArguments().\"", ")", ";", "SDValue", "Val", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "dl", ",", "Reg", ",", "PtrVT", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "dl", ",", "OR1K", "::", "R11", ",", "Val", ",", "Flag", ")", ";", "Flag", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "OR1K", "::", "R11", ",", "PtrVT", ")", ")", ";", "}", "RetOps", "[", "0", "]", "=", "Chain", ";", "if", "(", "Flag", ".", "getNode", "(", ")", ")", "RetOps", ".", "push_back", "(", "Flag", ")", ";", "return", "DAG", ".", "getNode", "(", "OR1KISD", "::", "RET_FLAG", ",", "dl", ",", "MVT", "::", "Other", ",", "RetOps", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["OR1K", "OR1K", "ISD::OutputArg", "16", "OR1K", "4", "1", "0", "\"Can only return in registers!\"", "1", "OR1K", "OR1K", "OR1K", "OR1K", "\"SRetReturnReg should have been set in LowerFormalArguments().\"", "OR1K::R11", "1", "OR1K::R11", "0", "OR1KISD::RET_FLAG", "MVT::Other"], "File": "OR1KISelLowering1", "Func": "LowerReturn", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1546, "Length": 366, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "recombine_lvx_stvx_patterns", "(", "function", "*", "fun", ")", "{", "int", "i", ";", "basic_block", "bb", ";", "rtx_insn", "*", "insn", ";", "int", "num_insns", "=", "get_max_uid", "(", ")", ";", "del_info", "*", "to_delete", "=", "XCNEWVEC", "(", "del_info", ",", "num_insns", ")", ";", "FOR_ALL_BB_FN", "(", "bb", ",", "fun", ")", "FOR_BB_INSNS", "(", "bb", ",", "insn", ")", "{", "if", "(", "!", "NONDEBUG_INSN_P", "(", "insn", ")", ")", "continue", ";", "if", "(", "insn_is_load_p", "(", "insn", ")", "&&", "insn_is_swap_p", "(", "insn", ")", ")", "recombine_lvx_pattern", "(", "insn", ",", "to_delete", ")", ";", "else", "if", "(", "insn_is_store_p", "(", "insn", ")", "&&", "insn_is_swap_p", "(", "insn", ")", ")", "recombine_stvx_pattern", "(", "insn", ",", "to_delete", ")", ";", "}", "for", "(", "i", "=", "0", ";", "i", "<", "num_insns", ";", "i", "++", ")", "if", "(", "to_delete", "[", "i", "]", ".", "replace", ")", "{", "rtx", "swap_body", "=", "PATTERN", "(", "to_delete", "[", "i", "]", ".", "replace_insn", ")", ";", "rtx", "src_reg", "=", "XEXP", "(", "SET_SRC", "(", "swap_body", ")", ",", "0", ")", ";", "rtx", "copy", "=", "gen_rtx_SET", "(", "SET_DEST", "(", "swap_body", ")", ",", "src_reg", ")", ";", "rtx_insn", "*", "new_insn", "=", "emit_insn_before", "(", "copy", ",", "to_delete", "[", "i", "]", ".", "replace_insn", ")", ";", "set_block_for_insn", "(", "new_insn", ",", "BLOCK_FOR_INSN", "(", "to_delete", "[", "i", "]", ".", "replace_insn", ")", ")", ";", "df_insn_rescan", "(", "new_insn", ")", ";", "df_insn_delete", "(", "to_delete", "[", "i", "]", ".", "replace_insn", ")", ";", "remove_insn", "(", "to_delete", "[", "i", "]", ".", "replace_insn", ")", ";", "to_delete", "[", "i", "]", ".", "replace_insn", "->", "set_deleted", "(", ")", ";", "}", "free", "(", "to_delete", ")", ";", "}", ""], "natrual_language": ["Look", "for", "patterns", "created", "from", "builtin", "lvx", "and", "stvx", "calls", ",", "and", "canonicalize", "them", "to", "be", "properly", "recognized", "as", "such", "."], "TS_V_token": ["powerpcspe", "0", "0"], "File": "powerpcspe", "Func": "recombine_lvx_stvx_patterns", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1547, "Length": 236, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "loongarch_expand_builtin", "(", "tree", "exp", ",", "rtx", "target", ",", "rtx", "subtarget", "ATTRIBUTE_UNUSED", ",", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "int", "ignore", "ATTRIBUTE_UNUSED", ")", "{", "tree", "fndecl", ";", "unsigned", "int", "fcode", ",", "avail", ";", "const", "struct", "loongarch_builtin_description", "*", "d", ";", "fndecl", "=", "TREE_OPERAND", "(", "CALL_EXPR_FN", "(", "exp", ")", ",", "0", ")", ";", "fcode", "=", "DECL_MD_FUNCTION_CODE", "(", "fndecl", ")", ";", "gcc_assert", "(", "fcode", "<", "ARRAY_SIZE", "(", "loongarch_builtins", ")", ")", ";", "d", "=", "&", "loongarch_builtins", "[", "fcode", "]", ";", "avail", "=", "d", "->", "avail", "(", ")", ";", "gcc_assert", "(", "avail", "!=", "0", ")", ";", "switch", "(", "d", "->", "builtin_type", ")", "{", "case", "LARCH_BUILTIN_DIRECT", ":", "return", "loongarch_expand_builtin_direct", "(", "d", "->", "icode", ",", "target", ",", "exp", ",", "true", ")", ";", "case", "LARCH_BUILTIN_DIRECT_NO_TARGET", ":", "return", "loongarch_expand_builtin_direct", "(", "d", "->", "icode", ",", "target", ",", "exp", ",", "false", ")", ";", "}", "gcc_unreachable", "(", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_EXPAND_BUILTIN", "."], "TS_V_token": ["loongarch", "0", "0"], "File": "loongarch-builtins", "Func": "loongarch_expand_builtin", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1548, "Length": 136, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_valid_target_attribute_p", "(", "tree", "fndecl", ",", "tree", "ARG_UNUSED", "(", "name", ")", ",", "tree", "args", ",", "int", "ARG_UNUSED", "(", "flags", ")", ")", "{", "bool", "ret", "=", "true", ";", "struct", "gcc_options", "func_options", ";", "tree", "cur_tree", ",", "new_optimize", ";", "gcc_assert", "(", "(", "fndecl", "!=", "NULL_TREE", ")", "&&", "(", "args", "!=", "NULL_TREE", ")", ")", ";", "tree", "func_optimize", "=", "DECL_FUNCTION_SPECIFIC_OPTIMIZATION", "(", "fndecl", ")", ";", "if", "(", "!", "func_optimize", ")", "func_optimize", "=", "optimization_default_node", ";", "memset", "(", "&", "func_options", ",", "0", ",", "sizeof", "(", "func_options", ")", ")", ";", "init_options_struct", "(", "&", "func_options", ",", "NULL", ")", ";", "lang_hooks", ".", "init_options_struct", "(", "&", "func_options", ")", ";", "cl_optimization_restore", "(", "&", "func_options", ",", "TREE_OPTIMIZATION", "(", "func_optimize", ")", ")", ";", "cl_target_option_restore", "(", "&", "func_options", ",", "TREE_TARGET_OPTION", "(", "target_option_default_node", ")", ")", ";", "cur_tree", "=", "arm_valid_target_attribute_tree", "(", "args", ",", "&", "func_options", ",", "&", "global_options_set", ")", ";", "if", "(", "cur_tree", "==", "NULL_TREE", ")", "ret", "=", "false", ";", "new_optimize", "=", "build_optimization_node", "(", "&", "func_options", ")", ";", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "fndecl", ")", "=", "cur_tree", ";", "DECL_FUNCTION_SPECIFIC_OPTIMIZATION", "(", "fndecl", ")", "=", "new_optimize", ";", "finalize_options_struct", "(", "&", "func_options", ")", ";", "return", "ret", ";", "}", ""], "natrual_language": ["Hook", "to", "validate", "attribute", "(", "(", "target", "(", "``", "string", "''", ")", ")", ")", "."], "TS_V_token": ["arm", "0"], "File": "arm5", "Func": "arm_valid_target_attribute_p", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1549, "Length": 175, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "char", "ix86_memtag_tag_size", "(", ")", "{", "return", "IX86_HWASAN_TAG_SIZE", ";", "}", ""], "natrual_language": ["Implement", "TARGET_MEMTAG_TAG_SIZE", "."], "TS_V_token": ["i386"], "File": "i3861", "Func": "ix86_memtag_tag_size", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1550, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "Cpu0TargetLowering", "::", "LowerOperation", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "case", "ISD", "::", "BRCOND", ":", "return", "lowerBRCOND", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BlockAddress", ":", "return", "lowerBlockAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "JumpTable", ":", "return", "lowerJumpTable", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "GlobalAddress", ":", "return", "lowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SELECT", ":", "return", "lowerSELECT", "(", "Op", ",", "DAG", ")", ";", "}", "return", "SDValue", "(", ")", ";", "}", ""], "natrual_language": ["LowerOperation", "-", "Provide", "custom", "lowering", "hooks", "for", "some", "operations", "."], "TS_V_token": ["Cpu0", "Cpu0", "ISD::BRCOND", "ISD::BlockAddress", "ISD::JumpTable", "ISD::GlobalAddress", "ISD::SELECT"], "File": "Cpu0ISelLowering4", "Func": "LowerOperation", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1551, "Length": 95, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMBasicBlockUtils", "::", "getOffsetOf", "(", "MachineInstr", "*", "MI", ")", "const", "{", "const", "MachineBasicBlock", "*", "MBB", "=", "MI", "->", "getParent", "(", ")", ";", "unsigned", "Offset", "=", "BBInfo", "[", "MBB", "->", "getNumber", "(", ")", "]", ".", "Offset", ";", "for", "(", "MachineBasicBlock", "::", "const_iterator", "I", "=", "MBB", "->", "begin", "(", ")", ";", "&", "*", "I", "!=", "MI", ";", "++", "I", ")", "{", "assert", "(", "I", "!=", "MBB", "->", "end", "(", ")", "&&", "\"Didn't find MI in its own basic block?\"", ")", ";", "Offset", "+=", "TII", "->", "getInstSizeInBytes", "(", "*", "I", ")", ";", "}", "return", "Offset", ";", "}", ""], "natrual_language": ["getOffsetOf", "-", "Return", "the", "current", "offset", "of", "the", "specified", "machine", "instruction", "from", "the", "start", "of", "the", "function", "."], "TS_V_token": ["ARM", "ARM", "\"Didn't find MI in its own basic block?\""], "File": "ARMBasicBlockInfo", "Func": "getOffsetOf", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1552, "Length": 87, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "MCAsmInfo", "*", "createMCAsmInfo", "(", "const", "Target", "&", "T", ",", "StringRef", "TT", ")", "{", "Triple", "TheTriple", "(", "TT", ")", ";", "bool", "isPPC64", "=", "TheTriple", ".", "getArch", "(", ")", "==", "Triple", "::", "ppc64", ";", "if", "(", "TheTriple", ".", "getOS", "(", ")", "==", "Triple", "::", "Darwin", ")", "return", "new", "PPCMCAsmInfoDarwin", "(", "isPPC64", ")", ";", "return", "new", "PPCLinuxMCAsmInfo", "(", "isPPC64", ")", ";", "}", ""], "natrual_language": ["createMCAsmInfo", "-", "Create", "a", "MCAsmInfo", "implementation", "for", "the", "specified", "target", "triple", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "PPC", "PPC"], "File": "PPCTargetMachine26", "Func": "createMCAsmInfo", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1553, "Length": 60, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCInstrInfo", "::", "lookThruCopyLike", "(", "unsigned", "SrcReg", ",", "const", "MachineRegisterInfo", "*", "MRI", ")", "{", "while", "(", "true", ")", "{", "MachineInstr", "*", "MI", "=", "MRI", "->", "getVRegDef", "(", "SrcReg", ")", ";", "if", "(", "!", "MI", "->", "isCopyLike", "(", ")", ")", "return", "SrcReg", ";", "unsigned", "CopySrcReg", ";", "if", "(", "MI", "->", "isCopy", "(", ")", ")", "CopySrcReg", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "else", "{", "assert", "(", "MI", "->", "isSubregToReg", "(", ")", "&&", "\"Bad opcode for lookThruCopyLike\"", ")", ";", "CopySrcReg", "=", "MI", "->", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ";", "}", "if", "(", "!", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "CopySrcReg", ")", ")", "return", "CopySrcReg", ";", "SrcReg", "=", "CopySrcReg", ";", "}", "}", ""], "natrual_language": ["Returns", "the", "original", "SrcReg", "unless", "it", "is", "the", "target", "of", "a", "copy-like", "operation", ",", "in", "which", "case", "we", "chain", "backwards", "through", "all", "such", "operations", "to", "the", "ultimate", "source", "register", "."], "TS_V_token": ["PowerPC", "PPC", "1", "\"Bad opcode for lookThruCopyLike\"", "2"], "File": "PPCInstrInfo102", "Func": "lookThruCopyLike", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1554, "Length": 112, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "pa_output_lbranch", "(", "rtx", "dest", ",", "rtx_insn", "*", "insn", ",", "int", "xdelay", ")", "{", "rtx", "xoperands", "[", "2", "]", ";", "xoperands", "[", "0", "]", "=", "dest", ";", "if", "(", "xdelay", "&&", "dbr_sequence_length", "(", ")", "!=", "0", ")", "{", "gcc_assert", "(", "!", "JUMP_P", "(", "NEXT_INSN", "(", "insn", ")", ")", ")", ";", "final_scan_insn", "(", "NEXT_INSN", "(", "insn", ")", ",", "asm_out_file", ",", "optimize", ",", "0", ",", "NULL", ")", ";", "SET_INSN_DELETED", "(", "NEXT_INSN", "(", "insn", ")", ")", ";", "}", "if", "(", "TARGET_64BIT", ")", "{", "if", "(", "actual_fsize", "==", "0", "&&", "!", "df_regs_ever_live_p", "(", "2", ")", ")", "output_asm_insn", "(", "\"std %%r1,-16(%%r30)\"", ",", "xoperands", ")", ";", "else", "output_asm_insn", "(", "\"std %%r1,-40(%%r30)\"", ",", "xoperands", ")", ";", "}", "else", "{", "if", "(", "actual_fsize", "==", "0", "&&", "!", "df_regs_ever_live_p", "(", "2", ")", ")", "output_asm_insn", "(", "\"stw %%r1,-20(%%r30)\"", ",", "xoperands", ")", ";", "else", "output_asm_insn", "(", "\"stw %%r1,-12(%%r30)\"", ",", "xoperands", ")", ";", "}", "if", "(", "TARGET_PORTABLE_RUNTIME", ")", "{", "output_asm_insn", "(", "\"ldil L'%0,%%r1\"", ",", "xoperands", ")", ";", "output_asm_insn", "(", "\"ldo R'%0(%%r1),%%r1\"", ",", "xoperands", ")", ";", "output_asm_insn", "(", "\"bv %%r0(%%r1)\"", ",", "xoperands", ")", ";", "}", "else", "if", "(", "flag_pic", ")", "{", "output_asm_insn", "(", "\"{bl|b,l} .+8,%%r1\"", ",", "xoperands", ")", ";", "if", "(", "TARGET_SOM", "||", "!", "TARGET_GAS", ")", "{", "xoperands", "[", "1", "]", "=", "gen_label_rtx", "(", ")", ";", "output_asm_insn", "(", "\"addil L'%l0-%l1,%%r1\"", ",", "xoperands", ")", ";", "targetm", ".", "asm_out", ".", "internal_label", "(", "asm_out_file", ",", "\"L\"", ",", "CODE_LABEL_NUMBER", "(", "xoperands", "[", "1", "]", ")", ")", ";", "output_asm_insn", "(", "\"ldo R'%l0-%l1(%%r1),%%r1\"", ",", "xoperands", ")", ";", "}", "else", "{", "output_asm_insn", "(", "\"addil L'%l0-$PIC_pcrel$0+4,%%r1\"", ",", "xoperands", ")", ";", "output_asm_insn", "(", "\"ldo R'%l0-$PIC_pcrel$0+8(%%r1),%%r1\"", ",", "xoperands", ")", ";", "}", "output_asm_insn", "(", "\"bv %%r0(%%r1)\"", ",", "xoperands", ")", ";", "}", "else", "output_asm_insn", "(", "\"ldil L'%l0,%%r1\\n\\tbe R'%l0(%%sr4,%%r1)\"", ",", "xoperands", ")", ";", "if", "(", "TARGET_64BIT", ")", "{", "if", "(", "actual_fsize", "==", "0", "&&", "!", "df_regs_ever_live_p", "(", "2", ")", ")", "return", "\"ldd -16(%%r30),%%r1\"", ";", "else", "return", "\"ldd -40(%%r30),%%r1\"", ";", "}", "else", "{", "if", "(", "actual_fsize", "==", "0", "&&", "!", "df_regs_ever_live_p", "(", "2", ")", ")", "return", "\"ldw -20(%%r30),%%r1\"", ";", "else", "return", "\"ldw -12(%%r30),%%r1\"", ";", "}", "}", ""], "natrual_language": ["This", "routine", "handles", "output", "of", "long", "unconditional", "branches", "that", "exceed", "the", "maximum", "range", "of", "a", "simple", "branch", "instruction", ".", "Since", "we", "do", "n't", "have", "a", "register", "available", "for", "the", "branch", ",", "we", "save", "register", "%", "r1", "in", "the", "frame", "marker", ",", "load", "the", "branch", "destination", "DEST", "into", "%", "r1", ",", "execute", "the", "branch", ",", "and", "restore", "%", "r1", "in", "the", "delay", "slot", "of", "the", "branch", ".", "Since", "long", "branches", "may", "have", "an", "insn", "in", "the", "delay", "slot", "and", "the", "delay", "slot", "is", "used", "to", "restore", "%", "r1", ",", "we", "in", "general", "need", "to", "extract", "this", "insn", "and", "execute", "it", "before", "the", "branch", ".", "However", ",", "to", "facilitate", "use", "of", "this", "function", "by", "conditional", "branches", ",", "we", "also", "provide", "an", "option", "to", "not", "extract", "the", "delay", "insn", "so", "that", "it", "will", "be", "emitted", "after", "the", "long", "branch", ".", "So", ",", "if", "there", "is", "an", "insn", "in", "the", "delay", "slot", ",", "it", "is", "extracted", "if", "XDELAY", "is", "nonzero", ".", "The", "lengths", "of", "the", "various", "long-branch", "sequences", "are", "20", ",", "16", "and", "24", "bytes", "for", "the", "portable", "runtime", ",", "non-PIC", "and", "PIC", "cases", ",", "respectively", "."], "TS_V_token": ["pa", "2", "0", "0", "0", "0", "2", "\"std %%r1,-16(%%r30)\"", "\"std %%r1,-40(%%r30)\"", "0", "2", "\"stw %%r1,-20(%%r30)\"", "\"stw %%r1,-12(%%r30)\"", "\"ldil L'%0,%%r1\"", "\"ldo R'%0(%%r1),%%r1\"", "\"bv %%r0(%%r1)\"", "\"{bl|b,l} .+8,%%r1\"", "1", "\"addil L'%l0-%l1,%%r1\"", "\"L\"", "1", "\"ldo R'%l0-%l1(%%r1),%%r1\"", "\"addil L'%l0-$PIC_pcrel$0+4,%%r1\"", "\"ldo R'%l0-$PIC_pcrel$0+8(%%r1),%%r1\"", "\"bv %%r0(%%r1)\"", "\"ldil L'%l0,%%r1\\n\\tbe R'%l0(%%sr4,%%r1)\"", "0", "2", "\"ldd -16(%%r30),%%r1\"", "\"ldd -40(%%r30),%%r1\"", "0", "2", "\"ldw -20(%%r30),%%r1\"", "\"ldw -12(%%r30),%%r1\""], "File": "pa4", "Func": "pa_output_lbranch", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1555, "Length": 312, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "function_arg_record_value_2", "(", "const_tree", "type", ",", "HOST_WIDE_INT", "startbitpos", ",", "struct", "function_arg_record_value_parms", "*", "parms", ",", "bool", "packed_p", ")", "{", "tree", "field", ";", "if", "(", "!", "packed_p", ")", "for", "(", "field", "=", "TYPE_FIELDS", "(", "type", ")", ";", "field", ";", "field", "=", "DECL_CHAIN", "(", "field", ")", ")", "{", "if", "(", "TREE_CODE", "(", "field", ")", "==", "FIELD_DECL", "&&", "DECL_PACKED", "(", "field", ")", ")", "{", "packed_p", "=", "true", ";", "break", ";", "}", "}", "for", "(", "field", "=", "TYPE_FIELDS", "(", "type", ")", ";", "field", ";", "field", "=", "DECL_CHAIN", "(", "field", ")", ")", "{", "if", "(", "TREE_CODE", "(", "field", ")", "==", "FIELD_DECL", ")", "{", "HOST_WIDE_INT", "bitpos", "=", "startbitpos", ";", "if", "(", "DECL_SIZE", "(", "field", ")", "!=", "0", ")", "{", "if", "(", "integer_zerop", "(", "DECL_SIZE", "(", "field", ")", ")", ")", "continue", ";", "if", "(", "tree_fits_uhwi_p", "(", "bit_position", "(", "field", ")", ")", ")", "bitpos", "+=", "int_bit_position", "(", "field", ")", ";", "}", "if", "(", "TREE_CODE", "(", "TREE_TYPE", "(", "field", ")", ")", "==", "RECORD_TYPE", ")", "function_arg_record_value_2", "(", "TREE_TYPE", "(", "field", ")", ",", "bitpos", ",", "parms", ",", "packed_p", ")", ";", "else", "if", "(", "(", "FLOAT_TYPE_P", "(", "TREE_TYPE", "(", "field", ")", ")", "||", "TREE_CODE", "(", "TREE_TYPE", "(", "field", ")", ")", "==", "VECTOR_TYPE", ")", "&&", "TARGET_FPU", "&&", "parms", "->", "named", "&&", "!", "packed_p", ")", "{", "int", "this_slotno", "=", "parms", "->", "slotno", "+", "bitpos", "/", "BITS_PER_WORD", ";", "int", "regno", ",", "nregs", ",", "pos", ";", "machine_mode", "mode", "=", "DECL_MODE", "(", "field", ")", ";", "rtx", "reg", ";", "function_arg_record_value_3", "(", "bitpos", ",", "parms", ")", ";", "if", "(", "TREE_CODE", "(", "TREE_TYPE", "(", "field", ")", ")", "==", "VECTOR_TYPE", "&&", "mode", "==", "BLKmode", ")", "{", "mode", "=", "TYPE_MODE", "(", "TREE_TYPE", "(", "TREE_TYPE", "(", "field", ")", ")", ")", ";", "nregs", "=", "TYPE_VECTOR_SUBPARTS", "(", "TREE_TYPE", "(", "field", ")", ")", ";", "}", "else", "if", "(", "TREE_CODE", "(", "TREE_TYPE", "(", "field", ")", ")", "==", "COMPLEX_TYPE", ")", "{", "mode", "=", "TYPE_MODE", "(", "TREE_TYPE", "(", "TREE_TYPE", "(", "field", ")", ")", ")", ";", "nregs", "=", "2", ";", "}", "else", "nregs", "=", "1", ";", "regno", "=", "SPARC_FP_ARG_FIRST", "+", "this_slotno", "*", "2", ";", "if", "(", "GET_MODE_SIZE", "(", "mode", ")", "<=", "4", "&&", "(", "bitpos", "&", "32", ")", "!=", "0", ")", "regno", "++", ";", "reg", "=", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "pos", "=", "bitpos", "/", "BITS_PER_UNIT", ";", "XVECEXP", "(", "parms", "->", "ret", ",", "0", ",", "parms", "->", "stack", "+", "parms", "->", "nregs", ")", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "reg", ",", "GEN_INT", "(", "pos", ")", ")", ";", "parms", "->", "nregs", "+=", "1", ";", "while", "(", "--", "nregs", ">", "0", ")", "{", "regno", "+=", "GET_MODE_SIZE", "(", "mode", ")", "/", "4", ";", "reg", "=", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "pos", "+=", "GET_MODE_SIZE", "(", "mode", ")", ";", "XVECEXP", "(", "parms", "->", "ret", ",", "0", ",", "parms", "->", "stack", "+", "parms", "->", "nregs", ")", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "reg", ",", "GEN_INT", "(", "pos", ")", ")", ";", "parms", "->", "nregs", "+=", "1", ";", "}", "}", "else", "{", "if", "(", "parms", "->", "intoffset", "==", "-", "1", ")", "parms", "->", "intoffset", "=", "bitpos", ";", "}", "}", "}", "}", ""], "natrual_language": ["A", "subroutine", "of", "function_arg_record_value", ".", "Traverse", "the", "structure", "recursively", "and", "assign", "bits", "to", "floating", "point", "registers", ".", "Track", "which", "bits", "in", "between", "need", "integer", "registers", ";", "invoke", "function_arg_record_value_3", "to", "make", "that", "happen", "."], "TS_V_token": ["sparc", "0", "2", "1", "2", "4", "32", "0", "0", "1", "0", "4", "0", "1", "1"], "File": "sparc4", "Func": "function_arg_record_value_2", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1556, "Length": 485, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "X86Operand", "*", "CreateReg", "(", "unsigned", "RegNo", ",", "SMLoc", "StartLoc", ",", "SMLoc", "EndLoc", ",", "bool", "AddressOf", "=", "false", ",", "SMLoc", "OffsetOfLoc", "=", "SMLoc", "(", ")", ",", "StringRef", "SymName", "=", "StringRef", "(", ")", ",", "void", "*", "OpDecl", "=", "0", ")", "{", "X86Operand", "*", "Res", "=", "new", "X86Operand", "(", "Register", ",", "StartLoc", ",", "EndLoc", ")", ";", "Res", "->", "Reg", ".", "RegNo", "=", "RegNo", ";", "Res", "->", "AddressOf", "=", "AddressOf", ";", "Res", "->", "OffsetOfLoc", "=", "OffsetOfLoc", ";", "Res", "->", "SymName", "=", "SymName", ";", "Res", "->", "OpDecl", "=", "OpDecl", ";", "return", "Res", ";", "}", ""], "natrual_language": ["CreateReg", "-", "Allocate", "a", "single", "virtual", "register", "for", "the", "given", "type", "."], "TS_V_token": ["X86", "X86", "0", "X86", "X86"], "File": "X86AsmParser (2)2", "Func": "CreateReg", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1557, "Length": 90, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "VEInstPrinter", "::", "printRegName", "(", "raw_ostream", "&", "OS", ",", "unsigned", "RegNo", ")", "const", "{", "unsigned", "AltIdx", "=", "VE", "::", "AsmName", ";", "if", "(", "MRI", ".", "getRegClass", "(", "VE", "::", "MISCRegClassID", ")", ".", "contains", "(", "RegNo", ")", ")", "AltIdx", "=", "VE", "::", "NoRegAltName", ";", "OS", "<<", "'%'", "<<", "getRegisterName", "(", "RegNo", ",", "AltIdx", ")", ";", "}", ""], "natrual_language": ["Print", "the", "assembler", "register", "name", "."], "TS_V_token": ["VE", "VE", "VE::AsmName", "VE::MISCRegClassID", "VE::NoRegAltName"], "File": "VEInstPrinter", "Func": "printRegName", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1558, "Length": 55, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "emitBytes", "(", "StringRef", "Data", ")", "override", "{", "emitDataMappingSymbol", "(", ")", ";", "MCELFStreamer", "::", "emitBytes", "(", "Data", ")", ";", "}", ""], "natrual_language": ["Emit", "the", "bytes", "in", "Data", "into", "the", "output", "."], "TS_V_token": ["ARM"], "File": "ARMELFStreamer22", "Func": "emitBytes", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1559, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMTargetLowering", "::", "isShuffleMaskLegal", "(", "ArrayRef", "<", "int", ">", "M", ",", "EVT", "VT", ")", "const", "{", "if", "(", "VT", ".", "getVectorNumElements", "(", ")", "==", "4", "&&", "(", "VT", ".", "is128BitVector", "(", ")", "||", "VT", ".", "is64BitVector", "(", ")", ")", ")", "{", "unsigned", "PFIndexes", "[", "4", "]", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "4", ";", "++", "i", ")", "{", "if", "(", "M", "[", "i", "]", "<", "0", ")", "PFIndexes", "[", "i", "]", "=", "8", ";", "else", "PFIndexes", "[", "i", "]", "=", "M", "[", "i", "]", ";", "}", "unsigned", "PFTableIndex", "=", "PFIndexes", "[", "0", "]", "*", "9", "*", "9", "*", "9", "+", "PFIndexes", "[", "1", "]", "*", "9", "*", "9", "+", "PFIndexes", "[", "2", "]", "*", "9", "+", "PFIndexes", "[", "3", "]", ";", "unsigned", "PFEntry", "=", "PerfectShuffleTable", "[", "PFTableIndex", "]", ";", "unsigned", "Cost", "=", "(", "PFEntry", ">>", "30", ")", ";", "if", "(", "Cost", "<=", "4", "&&", "(", "Subtarget", "->", "hasNEON", "(", ")", "||", "isLegalMVEShuffleOp", "(", "PFEntry", ")", ")", ")", "return", "true", ";", "}", "bool", "ReverseVEXT", ",", "isV_UNDEF", ";", "unsigned", "Imm", ",", "WhichResult", ";", "unsigned", "EltSize", "=", "VT", ".", "getScalarSizeInBits", "(", ")", ";", "if", "(", "EltSize", ">=", "32", "||", "ShuffleVectorSDNode", "::", "isSplatMask", "(", "&", "M", "[", "0", "]", ",", "VT", ")", "||", "ShuffleVectorInst", "::", "isIdentityMask", "(", "M", ")", "||", "isVREVMask", "(", "M", ",", "VT", ",", "64", ")", "||", "isVREVMask", "(", "M", ",", "VT", ",", "32", ")", "||", "isVREVMask", "(", "M", ",", "VT", ",", "16", ")", ")", "return", "true", ";", "else", "if", "(", "Subtarget", "->", "hasNEON", "(", ")", "&&", "(", "isVEXTMask", "(", "M", ",", "VT", ",", "ReverseVEXT", ",", "Imm", ")", "||", "isVTBLMask", "(", "M", ",", "VT", ")", "||", "isNEONTwoResultShuffleMask", "(", "M", ",", "VT", ",", "WhichResult", ",", "isV_UNDEF", ")", ")", ")", "return", "true", ";", "else", "if", "(", "Subtarget", "->", "hasNEON", "(", ")", "&&", "(", "VT", "==", "MVT", "::", "v8i16", "||", "VT", "==", "MVT", "::", "v16i8", ")", "&&", "isReverseMask", "(", "M", ",", "VT", ")", ")", "return", "true", ";", "else", "return", "false", ";", "}", ""], "natrual_language": ["Targets", "can", "use", "this", "to", "indicate", "that", "they", "only", "support", "some", "VECTOR_SHUFFLE", "operations", ",", "those", "with", "specific", "masks", "."], "TS_V_token": ["ARM", "ARM", "4", "4", "0", "4", "0", "8", "0", "9", "9", "9", "1", "9", "9", "2", "9", "3", "30", "4", "32", "0", "64", "32", "16", "MVT::v8i16", "MVT::v16i8"], "File": "ARMISelLowering69", "Func": "isShuffleMaskLegal", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1560, "Length": 321, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "umips_build_save_restore", "(", "mips_save_restore_fn", "fn", ",", "unsigned", "*", "mask", ",", "HOST_WIDE_INT", "*", "offset", ")", "{", "int", "nregs", ";", "unsigned", "int", "i", ",", "j", ";", "rtx", "pattern", ",", "set", ",", "reg", ",", "mem", ";", "HOST_WIDE_INT", "this_offset", ";", "rtx", "this_base", ";", "for", "(", "i", "=", "0", ";", "i", "<", "ARRAY_SIZE", "(", "umips_swm_mask", ")", ";", "i", "++", ")", "if", "(", "(", "*", "mask", "&", "0xffff0000", ")", "==", "umips_swm_mask", "[", "i", "]", ")", "break", ";", "if", "(", "i", "==", "ARRAY_SIZE", "(", "umips_swm_mask", ")", ")", "return", "false", ";", "nregs", "=", "(", "umips_swm_encoding", "[", "i", "]", "&", "0xf", ")", "+", "(", "umips_swm_encoding", "[", "i", "]", ">>", "4", ")", ";", "this_offset", "=", "*", "offset", "-", "UNITS_PER_WORD", "*", "(", "nregs", "-", "1", ")", ";", "if", "(", "!", "UMIPS_12BIT_OFFSET_P", "(", "this_offset", ")", ")", "return", "false", ";", "pattern", "=", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "rtvec_alloc", "(", "nregs", ")", ")", ";", "this_base", "=", "stack_pointer_rtx", ";", "for", "(", "j", "=", "0", ";", "j", "<", "(", "umips_swm_encoding", "[", "i", "]", "&", "0xf", ")", ";", "j", "++", ")", "{", "HOST_WIDE_INT", "offset", "=", "this_offset", "+", "j", "*", "UNITS_PER_WORD", ";", "mem", "=", "gen_frame_mem", "(", "SImode", ",", "plus_constant", "(", "Pmode", ",", "this_base", ",", "offset", ")", ")", ";", "unsigned", "int", "regno", "=", "(", "j", "!=", "8", ")", "?", "16", "+", "j", ":", "30", ";", "*", "mask", "&=", "~", "(", "1", "<<", "regno", ")", ";", "reg", "=", "gen_rtx_REG", "(", "SImode", ",", "regno", ")", ";", "if", "(", "fn", "==", "mips_save_reg", ")", "set", "=", "mips_frame_set", "(", "mem", ",", "reg", ")", ";", "else", "{", "set", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "reg", ",", "mem", ")", ";", "mips_add_cfa_restore", "(", "reg", ")", ";", "}", "XVECEXP", "(", "pattern", ",", "0", ",", "j", ")", "=", "set", ";", "}", "if", "(", "umips_swm_encoding", "[", "i", "]", ">>", "4", ")", "{", "HOST_WIDE_INT", "offset", "=", "this_offset", "+", "j", "*", "UNITS_PER_WORD", ";", "*", "mask", "&=", "~", "(", "1", "<<", "31", ")", ";", "mem", "=", "gen_frame_mem", "(", "SImode", ",", "plus_constant", "(", "Pmode", ",", "this_base", ",", "offset", ")", ")", ";", "reg", "=", "gen_rtx_REG", "(", "SImode", ",", "31", ")", ";", "if", "(", "fn", "==", "mips_save_reg", ")", "set", "=", "mips_frame_set", "(", "mem", ",", "reg", ")", ";", "else", "{", "set", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "reg", ",", "mem", ")", ";", "mips_add_cfa_restore", "(", "reg", ")", ";", "}", "XVECEXP", "(", "pattern", ",", "0", ",", "j", ")", "=", "set", ";", "}", "pattern", "=", "emit_insn", "(", "pattern", ")", ";", "if", "(", "fn", "==", "mips_save_reg", ")", "RTX_FRAME_RELATED_P", "(", "pattern", ")", "=", "1", ";", "*", "offset", "-=", "UNITS_PER_WORD", "*", "nregs", ";", "return", "true", ";", "}", ""], "natrual_language": ["Try", "to", "use", "a", "microMIPS", "LWM", "or", "SWM", "instruction", "to", "save", "or", "restore", "as", "many", "GPRs", "in", "*", "MASK", "as", "possible", ".", "*", "OFFSET", "is", "the", "offset", "from", "the", "stack", "pointer", "of", "the", "topmost", "save", "slot", ".", "Remove", "from", "*", "MASK", "all", "registers", "that", "were", "handled", "using", "LWM", "and", "SWM", ".", "Update", "*", "OFFSET", "so", "that", "it", "points", "to", "the", "first", "unused", "save", "slot", "."], "TS_V_token": ["mips", "0", "0xffff0000", "0xf", "4", "1", "0", "0xf", "8", "16", "30", "1", "0", "4", "1", "31", "31", "0", "1"], "File": "mips4", "Func": "umips_build_save_restore", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1561, "Length": 402, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "*", "SparcTargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MachineInstr", "*", "MI", ",", "MachineBasicBlock", "*", "BB", ",", "DenseMap", "<", "MachineBasicBlock", "*", ",", "MachineBasicBlock", "*", ">", "*", "EM", ")", "const", "{", "const", "TargetInstrInfo", "&", "TII", "=", "*", "getTargetMachine", "(", ")", ".", "getInstrInfo", "(", ")", ";", "unsigned", "BROpcode", ";", "unsigned", "CC", ";", "DebugLoc", "dl", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown SELECT_CC!\"", ")", ";", "case", "SP", "::", "SELECT_CC_Int_ICC", ":", "case", "SP", "::", "SELECT_CC_FP_ICC", ":", "case", "SP", "::", "SELECT_CC_DFP_ICC", ":", "BROpcode", "=", "SP", "::", "BCOND", ";", "break", ";", "case", "SP", "::", "SELECT_CC_Int_FCC", ":", "case", "SP", "::", "SELECT_CC_FP_FCC", ":", "case", "SP", "::", "SELECT_CC_DFP_FCC", ":", "BROpcode", "=", "SP", "::", "FBCOND", ";", "break", ";", "}", "CC", "=", "(", "SPCC", "::", "CondCodes", ")", "MI", "->", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", ";", "const", "BasicBlock", "*", "LLVM_BB", "=", "BB", "->", "getBasicBlock", "(", ")", ";", "MachineFunction", "::", "iterator", "It", "=", "BB", ";", "++", "It", ";", "MachineBasicBlock", "*", "thisMBB", "=", "BB", ";", "MachineFunction", "*", "F", "=", "BB", "->", "getParent", "(", ")", ";", "MachineBasicBlock", "*", "copy0MBB", "=", "F", "->", "CreateMachineBasicBlock", "(", "LLVM_BB", ")", ";", "MachineBasicBlock", "*", "sinkMBB", "=", "F", "->", "CreateMachineBasicBlock", "(", "LLVM_BB", ")", ";", "BuildMI", "(", "BB", ",", "dl", ",", "TII", ".", "get", "(", "BROpcode", ")", ")", ".", "addMBB", "(", "sinkMBB", ")", ".", "addImm", "(", "CC", ")", ";", "F", "->", "insert", "(", "It", ",", "copy0MBB", ")", ";", "F", "->", "insert", "(", "It", ",", "sinkMBB", ")", ";", "for", "(", "MachineBasicBlock", "::", "succ_iterator", "I", "=", "BB", "->", "succ_begin", "(", ")", ",", "E", "=", "BB", "->", "succ_end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "EM", "->", "insert", "(", "std", "::", "make_pair", "(", "*", "I", ",", "sinkMBB", ")", ")", ";", "sinkMBB", "->", "addSuccessor", "(", "*", "I", ")", ";", "}", "while", "(", "!", "BB", "->", "succ_empty", "(", ")", ")", "BB", "->", "removeSuccessor", "(", "BB", "->", "succ_begin", "(", ")", ")", ";", "BB", "->", "addSuccessor", "(", "copy0MBB", ")", ";", "BB", "->", "addSuccessor", "(", "sinkMBB", ")", ";", "BB", "=", "copy0MBB", ";", "BB", "->", "addSuccessor", "(", "sinkMBB", ")", ";", "BB", "=", "sinkMBB", ";", "BuildMI", "(", "BB", ",", "dl", ",", "TII", ".", "get", "(", "SP", "::", "PHI", ")", ",", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ")", ".", "addReg", "(", "MI", "->", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "copy0MBB", ")", ".", "addReg", "(", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "thisMBB", ")", ";", "F", "->", "DeleteMachineInstr", "(", "MI", ")", ";", "return", "BB", ";", "}", ""], "natrual_language": ["This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'usesCustomInserter", "'", "flag", "."], "TS_V_token": ["Sparc", "Sparc", "\"Unknown SELECT_CC!\"", "SP::SELECT_CC_Int_ICC", "SP::SELECT_CC_FP_ICC", "SP::SELECT_CC_DFP_ICC", "SP::BCOND", "SP::SELECT_CC_Int_FCC", "SP::SELECT_CC_FP_FCC", "SP::SELECT_CC_DFP_FCC", "SP::FBCOND", "SPCC::CondCodes", "3", "SP::PHI", "0", "2", "1"], "File": "SparcISelLowering13", "Func": "EmitInstrWithCustomInserter", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1562, "Length": 416, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "OpenRISCRegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "return", "TFI", "->", "hasFP", "(", "MF", ")", "?", "OpenRISC", "::", "FP", ":", "OpenRISC", "::", "SP", ";", "}", ""], "natrual_language": ["Debug", "information", "queries", "."], "TS_V_token": ["OpenRISC", "OpenRISC", "OpenRISC::FP", "OpenRISC::SP"], "File": "OpenRISCRegisterInfo", "Func": "getFrameRegister", "Target": "OpenRISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1563, "Length": 44, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "MipsTargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "SDLoc", "DL", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ",", "TargetLowering", "::", "CallLoweringInfo", "&", "CLI", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "MipsCCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "RetCC_Mips", ",", "CLI", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Can only return in registers!\"", ")", ";", "SDValue", "Val", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "RVLocs", "[", "i", "]", ".", "getLocReg", "(", ")", ",", "RVLocs", "[", "i", "]", ".", "getLocVT", "(", ")", ",", "InFlag", ")", ";", "Chain", "=", "Val", ".", "getValue", "(", "1", ")", ";", "InFlag", "=", "Val", ".", "getValue", "(", "2", ")", ";", "if", "(", "VA", ".", "isUpperBitsInLoc", "(", ")", ")", "{", "unsigned", "ValSizeInBits", "=", "Ins", "[", "i", "]", ".", "ArgVT", ".", "getSizeInBits", "(", ")", ";", "unsigned", "LocSizeInBits", "=", "VA", ".", "getLocVT", "(", ")", ".", "getSizeInBits", "(", ")", ";", "unsigned", "Shift", "=", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "ZExtUpper", "?", "ISD", "::", "SRL", ":", "ISD", "::", "SRA", ";", "Val", "=", "DAG", ".", "getNode", "(", "Shift", ",", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Val", ",", "DAG", ".", "getConstant", "(", "LocSizeInBits", "-", "ValSizeInBits", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown loc info!\"", ")", ";", "case", "CCValAssign", "::", "Full", ":", "break", ";", "case", "CCValAssign", "::", "BCvt", ":", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "BITCAST", ",", "DL", ",", "VA", ".", "getValVT", "(", ")", ",", "Val", ")", ";", "break", ";", "case", "CCValAssign", "::", "AExt", ":", "case", "CCValAssign", "::", "AExtUpper", ":", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "TRUNCATE", ",", "DL", ",", "VA", ".", "getValVT", "(", ")", ",", "Val", ")", ";", "break", ";", "case", "CCValAssign", "::", "ZExt", ":", "case", "CCValAssign", "::", "ZExtUpper", ":", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "AssertZext", ",", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Val", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "TRUNCATE", ",", "DL", ",", "VA", ".", "getValVT", "(", ")", ",", "Val", ")", ";", "break", ";", "case", "CCValAssign", "::", "SExt", ":", "case", "CCValAssign", "::", "SExtUpper", ":", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "AssertSext", ",", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Val", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "TRUNCATE", ",", "DL", ",", "VA", ".", "getValVT", "(", ")", ",", "Val", ")", ";", "break", ";", "}", "InVals", ".", "push_back", "(", "Val", ")", ";", "}", "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": ["Mips", "Mips", "ISD::InputArg", "16", "Mips", "Mips", "0", "\"Can only return in registers!\"", "1", "2", "ISD::SRL", "ISD::SRA", "\"Unknown loc info!\"", "ISD::BITCAST", "ISD::TRUNCATE", "ISD::AssertZext", "ISD::TRUNCATE", "ISD::AssertSext", "ISD::TRUNCATE"], "File": "MipsISelLowering108", "Func": "LowerCallResult", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1564, "Length": 501, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "MipsRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "Reserved", ".", "set", "(", "Mips", "::", "ZERO", ")", ";", "Reserved", ".", "set", "(", "Mips", "::", "AT", ")", ";", "Reserved", ".", "set", "(", "Mips", "::", "K0", ")", ";", "Reserved", ".", "set", "(", "Mips", "::", "K1", ")", ";", "Reserved", ".", "set", "(", "Mips", "::", "GP", ")", ";", "Reserved", ".", "set", "(", "Mips", "::", "SP", ")", ";", "Reserved", ".", "set", "(", "Mips", "::", "FP", ")", ";", "Reserved", ".", "set", "(", "Mips", "::", "RA", ")", ";", "if", "(", "!", "Subtarget", ".", "isSingleFloat", "(", ")", ")", "for", "(", "unsigned", "FReg", "=", "(", "Mips", "::", "F0", ")", "+", "1", ";", "FReg", "<", "Mips", "::", "F30", ";", "FReg", "+=", "2", ")", "Reserved", ".", "set", "(", "FReg", ")", ";", "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": ["Mips", "Mips", "Mips::ZERO", "Mips::AT", "Mips::K0", "Mips::K1", "Mips::GP", "Mips::SP", "Mips::FP", "Mips::RA", "Mips::F0", "1", "Mips::F30", "2"], "File": "MipsRegisterInfo14", "Func": "getReservedRegs", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1565, "Length": 135, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "F", ")", "{", "if", "(", "SkipDelaySlotFiller", ")", "return", "false", ";", "bool", "Changed", "=", "false", ";", "for", "(", "MachineFunction", "::", "iterator", "FI", "=", "F", ".", "begin", "(", ")", ",", "FE", "=", "F", ".", "end", "(", ")", ";", "FI", "!=", "FE", ";", "++", "FI", ")", "Changed", "|=", "runOnMachineBasicBlock", "(", "*", "FI", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Mips"], "File": "MipsDelaySlotFiller10", "Func": "runOnMachineFunction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1566, "Length": 60, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetPassConfig", "*", "Comet2TargetMachine", "::", "createPassConfig", "(", "PassManagerBase", "&", "PM", ")", "{", "return", "new", "Comet2PassConfig", "(", "*", "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": ["Comet2", "Comet2", "Comet2"], "File": "Comet2TargetMachine", "Func": "createPassConfig", "Target": "Comet2", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1567, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Register", "CSKYTargetLowering", "::", "getExceptionSelectorRegister", "(", "const", "Constant", "*", "PersonalityFn", ")", "const", "{", "return", "CSKY", "::", "R1", ";", "}", ""], "natrual_language": ["If", "a", "physical", "register", ",", "this", "returns", "the", "register", "that", "receives", "the", "exception", "typeid", "on", "entry", "to", "a", "landing", "pad", "."], "TS_V_token": ["CSKY", "CSKY", "CSKY::R1"], "File": "CSKYISelLowering", "Func": "getExceptionSelectorRegister", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1568, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Thumb1FrameLowering", "::", "spillCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "CSI", ".", "empty", "(", ")", ")", "return", "false", ";", "DebugLoc", "DL", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "STI", ".", "getInstrInfo", "(", ")", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "TII", ".", "get", "(", "ARM", "::", "tPUSH", ")", ")", ";", "AddDefaultPred", "(", "MIB", ")", ";", "for", "(", "unsigned", "i", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "0", ";", "--", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "-", "1", "]", ".", "getReg", "(", ")", ";", "bool", "isKill", "=", "true", ";", "if", "(", "Reg", "==", "ARM", "::", "LR", ")", "{", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "if", "(", "MF", ".", "getFrameInfo", "(", ")", ".", "isReturnAddressTaken", "(", ")", "&&", "MF", ".", "getRegInfo", "(", ")", ".", "isLiveIn", "(", "Reg", ")", ")", "isKill", "=", "false", ";", "}", "if", "(", "isKill", ")", "MBB", ".", "addLiveIn", "(", "Reg", ")", ";", "MIB", ".", "addReg", "(", "Reg", ",", "getKillRegState", "(", "isKill", ")", ")", ";", "}", "MIB", ".", "setMIFlags", "(", "MachineInstr", "::", "FrameSetup", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["spillCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "spill", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "store", "instructions", "via", "storeRegToStackSlot", "(", ")", "."], "TS_V_token": ["ARM", "ARM::tPUSH", "0", "1", "ARM::LR"], "File": "Thumb1FrameLowering2", "Func": "spillCalleeSavedRegisters", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1569, "Length": 206, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "MCObjectFormat", "&", "getObjectFormat", "(", ")", "const", "{", "return", "Format", ";", "}", ""], "natrual_language": ["Get", "the", "object", "format", "for", "this", "triple", "."], "TS_V_token": ["X86"], "File": "X86AsmBackend37", "Func": "getObjectFormat", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1570, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "HOST_WIDE_INT", "compute_current_alignment", "(", "unsigned", "HOST_WIDE_INT", "base_align", ",", "unsigned", "HOST_WIDE_INT", "offset", ")", "{", "if", "(", "offset", "==", "0", ")", "return", "base_align", ";", "return", "min", "(", "base_align", ",", "offset", "&", "-", "offset", ")", ";", "}", ""], "natrual_language": ["Compute", "the", "alignment", "of", "pointer+OFFSET", "where", "the", "original", "alignment", "of", "pointer", "was", "BASE_ALIGN", "."], "TS_V_token": ["powerpcspe", "0"], "File": "powerpcspe", "Func": "compute_current_alignment", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1571, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Value", "*", "PPCTargetLowering", "::", "emitMaskedAtomicRMWIntrinsic", "(", "IRBuilderBase", "&", "Builder", ",", "AtomicRMWInst", "*", "AI", ",", "Value", "*", "AlignedAddr", ",", "Value", "*", "Incr", ",", "Value", "*", "Mask", ",", "Value", "*", "ShiftAmt", ",", "AtomicOrdering", "Ord", ")", "const", "{", "assert", "(", "EnableQuadwordAtomics", "&&", "Subtarget", ".", "hasQuadwordAtomics", "(", ")", "&&", "\"Only support quadword now\"", ")", ";", "Module", "*", "M", "=", "Builder", ".", "GetInsertBlock", "(", ")", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "Type", "*", "ValTy", "=", "Incr", "->", "getType", "(", ")", ";", "assert", "(", "ValTy", "->", "getPrimitiveSizeInBits", "(", ")", "==", "128", ")", ";", "Function", "*", "RMW", "=", "Intrinsic", "::", "getDeclaration", "(", "M", ",", "getIntrinsicForAtomicRMWBinOp128", "(", "AI", "->", "getOperation", "(", ")", ")", ")", ";", "Type", "*", "Int64Ty", "=", "Type", "::", "getInt64Ty", "(", "M", "->", "getContext", "(", ")", ")", ";", "Value", "*", "IncrLo", "=", "Builder", ".", "CreateTrunc", "(", "Incr", ",", "Int64Ty", ",", "\"incr_lo\"", ")", ";", "Value", "*", "IncrHi", "=", "Builder", ".", "CreateTrunc", "(", "Builder", ".", "CreateLShr", "(", "Incr", ",", "64", ")", ",", "Int64Ty", ",", "\"incr_hi\"", ")", ";", "Value", "*", "Addr", "=", "Builder", ".", "CreateBitCast", "(", "AlignedAddr", ",", "Type", "::", "getInt8PtrTy", "(", "M", "->", "getContext", "(", ")", ")", ")", ";", "Value", "*", "LoHi", "=", "Builder", ".", "CreateCall", "(", "RMW", ",", "{", "Addr", ",", "IncrLo", ",", "IncrHi", "}", ")", ";", "Value", "*", "Lo", "=", "Builder", ".", "CreateExtractValue", "(", "LoHi", ",", "0", ",", "\"lo\"", ")", ";", "Value", "*", "Hi", "=", "Builder", ".", "CreateExtractValue", "(", "LoHi", ",", "1", ",", "\"hi\"", ")", ";", "Lo", "=", "Builder", ".", "CreateZExt", "(", "Lo", ",", "ValTy", ",", "\"lo64\"", ")", ";", "Hi", "=", "Builder", ".", "CreateZExt", "(", "Hi", ",", "ValTy", ",", "\"hi64\"", ")", ";", "return", "Builder", ".", "CreateOr", "(", "Lo", ",", "Builder", ".", "CreateShl", "(", "Hi", ",", "ConstantInt", "::", "get", "(", "ValTy", ",", "64", ")", ")", ",", "\"val64\"", ")", ";", "}", ""], "natrual_language": ["Perform", "a", "masked", "atomicrmw", "using", "a", "target-specific", "intrinsic", "."], "TS_V_token": ["PowerPC", "PPC", "\"Only support quadword now\"", "128", "Intrinsic::getDeclaration", "\"incr_lo\"", "64", "\"incr_hi\"", "0", "\"lo\"", "1", "\"hi\"", "\"lo64\"", "\"hi64\"", "64", "\"val64\""], "File": "PPCISelLowering11", "Func": "emitMaskedAtomicRMWIntrinsic", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1572, "Length": 283, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "sh_extending_set_of_reg", "sh_find_extending_set_of_reg", "(", "rtx", "reg", ",", "rtx_insn", "*", "curr_insn", ")", "{", "if", "(", "reg", "==", "NULL", ")", "return", "sh_extending_set_of_reg", "(", "curr_insn", ")", ";", "if", "(", "SUBREG_P", "(", "reg", ")", ")", "reg", "=", "SUBREG_REG", "(", "reg", ")", ";", "if", "(", "!", "REG_P", "(", "reg", ")", ")", "return", "sh_extending_set_of_reg", "(", "curr_insn", ")", ";", "sh_extending_set_of_reg", "result", "=", "sh_find_set_of_reg", "(", "reg", ",", "curr_insn", ",", "prev_nonnote_insn_bb", ",", "true", ")", ";", "if", "(", "result", ".", "set_src", "!=", "NULL", ")", "{", "if", "(", "GET_CODE", "(", "result", ".", "set_src", ")", "==", "SIGN_EXTEND", "||", "GET_CODE", "(", "result", ".", "set_src", ")", "==", "ZERO_EXTEND", ")", "{", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"sh_find_extending_set_of_reg: reg %d is \"", "\"explicitly sign/zero extended in insn %d\\n\"", ",", "REGNO", "(", "reg", ")", ",", "INSN_UID", "(", "result", ".", "insn", ")", ")", ";", "result", ".", "from_mode", "=", "GET_MODE", "(", "XEXP", "(", "result", ".", "set_src", ",", "0", ")", ")", ";", "result", ".", "ext_code", "=", "GET_CODE", "(", "result", ".", "set_src", ")", ";", "}", "else", "if", "(", "MEM_P", "(", "result", ".", "set_src", ")", "&&", "(", "GET_MODE", "(", "result", ".", "set_src", ")", "==", "QImode", "||", "GET_MODE", "(", "result", ".", "set_src", ")", "==", "HImode", ")", "&&", "!", "sh_unspec_insn_p", "(", "result", ".", "insn", ")", ")", "{", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"sh_find_extending_set_of_reg: reg %d is \"", "\"implicitly sign extended in insn %d\\n\"", ",", "REGNO", "(", "reg", ")", ",", "INSN_UID", "(", "result", ".", "insn", ")", ")", ";", "result", ".", "from_mode", "=", "GET_MODE", "(", "result", ".", "set_src", ")", ";", "result", ".", "ext_code", "=", "SIGN_EXTEND", ";", "}", "}", "return", "result", ";", "}", ""], "natrual_language": ["Given", "a", "reg", "and", "the", "current", "insn", ",", "see", "if", "the", "value", "of", "the", "reg", "originated", "from", "a", "sign", "or", "zero", "extension", "and", "return", "the", "discovered", "information", "."], "TS_V_token": ["sh", "\"sh_find_extending_set_of_reg: reg %d is \"", "\"explicitly sign/zero extended in insn %d\\n\"", "0", "\"sh_find_extending_set_of_reg: reg %d is \"", "\"implicitly sign extended in insn %d\\n\""], "File": "sh4", "Func": "sh_find_extending_set_of_reg", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1573, "Length": 233, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ia64_expand_vecint_minmax", "(", "enum", "rtx_code", "code", ",", "machine_mode", "mode", ",", "rtx", "operands", "[", "]", ")", "{", "rtx", "xops", "[", "6", "]", ";", "if", "(", "mode", "==", "V8QImode", "&&", "(", "code", "==", "UMIN", "||", "code", "==", "UMAX", ")", ")", "return", "false", ";", "if", "(", "mode", "==", "V4HImode", "&&", "(", "code", "==", "SMIN", "||", "code", "==", "SMAX", ")", ")", "return", "false", ";", "if", "(", "mode", "==", "V4HImode", "&&", "code", "==", "UMAX", ")", "{", "rtx", "x", ",", "tmp", "=", "gen_reg_rtx", "(", "mode", ")", ";", "x", "=", "gen_rtx_US_MINUS", "(", "mode", ",", "operands", "[", "1", "]", ",", "operands", "[", "2", "]", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "tmp", ",", "x", ")", ")", ";", "emit_insn", "(", "gen_addv4hi3", "(", "operands", "[", "0", "]", ",", "tmp", ",", "operands", "[", "2", "]", ")", ")", ";", "return", "true", ";", "}", "xops", "[", "0", "]", "=", "operands", "[", "0", "]", ";", "xops", "[", "4", "]", "=", "xops", "[", "1", "]", "=", "operands", "[", "1", "]", ";", "xops", "[", "5", "]", "=", "xops", "[", "2", "]", "=", "operands", "[", "2", "]", ";", "switch", "(", "code", ")", "{", "case", "UMIN", ":", "code", "=", "LTU", ";", "break", ";", "case", "UMAX", ":", "code", "=", "GTU", ";", "break", ";", "case", "SMIN", ":", "code", "=", "LT", ";", "break", ";", "case", "SMAX", ":", "code", "=", "GT", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "xops", "[", "3", "]", "=", "gen_rtx_fmt_ee", "(", "code", ",", "VOIDmode", ",", "operands", "[", "1", "]", ",", "operands", "[", "2", "]", ")", ";", "ia64_expand_vecint_cmov", "(", "xops", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Emit", "an", "integral", "vector", "min", "or", "max", "operation", ".", "Return", "true", "if", "all", "done", "."], "TS_V_token": ["ia64", "6", "1", "2", "0", "2", "0", "0", "4", "1", "1", "5", "2", "2", "3", "1", "2"], "File": "ia644", "Func": "ia64_expand_vecint_minmax", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1574, "Length": 251, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "xs_hi_general_operand", "(", "rtx", "x", ",", "enum", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "(", "GET_CODE", "(", "x", ")", "==", "CONST_INT", ")", "&&", "(", "(", "INTVAL", "(", "x", ")", ">=", "32768", ")", "||", "(", "INTVAL", "(", "x", ")", "<", "-", "32768", ")", ")", ")", "error", "(", "\"constant halfword load operand out of range\"", ")", ";", "return", "general_operand", "(", "x", ",", "mode", ")", ";", "}", ""], "natrual_language": ["Detect", "and", "error", "out", "on", "out-of-range", "constants", "for", "movhi", "."], "TS_V_token": ["stormy16", "32768", "32768", "\"constant halfword load operand out of range\""], "File": "stormy163", "Func": "xs_hi_general_operand", "Target": "stormy16", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1575, "Length": 58, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Register", "getStackAddress", "(", "uint64_t", "Size", ",", "int64_t", "Offset", ",", "MachinePointerInfo", "&", "MPO", ")", "override", "{", "MachineFunction", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "LLT", "p0", "=", "LLT", "::", "pointer", "(", "0", ",", "64", ")", ";", "LLT", "s64", "=", "LLT", "::", "scalar", "(", "64", ")", ";", "if", "(", "IsTailCall", ")", "{", "Offset", "+=", "FPDiff", ";", "int", "FI", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "CreateFixedObject", "(", "Size", ",", "Offset", ",", "true", ")", ";", "Register", "FIReg", "=", "MRI", ".", "createGenericVirtualRegister", "(", "p0", ")", ";", "MIRBuilder", ".", "buildFrameIndex", "(", "FIReg", ",", "FI", ")", ";", "MPO", "=", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FI", ")", ";", "return", "FIReg", ";", "}", "Register", "SPReg", "=", "MRI", ".", "createGenericVirtualRegister", "(", "p0", ")", ";", "MIRBuilder", ".", "buildCopy", "(", "SPReg", ",", "Register", "(", "AArch64", "::", "SP", ")", ")", ";", "Register", "OffsetReg", "=", "MRI", ".", "createGenericVirtualRegister", "(", "s64", ")", ";", "MIRBuilder", ".", "buildConstant", "(", "OffsetReg", ",", "Offset", ")", ";", "Register", "AddrReg", "=", "MRI", ".", "createGenericVirtualRegister", "(", "p0", ")", ";", "MIRBuilder", ".", "buildPtrAdd", "(", "AddrReg", ",", "SPReg", ",", "OffsetReg", ")", ";", "MPO", "=", "MachinePointerInfo", "::", "getStack", "(", "MF", ",", "Offset", ")", ";", "return", "AddrReg", ";", "}", ""], "natrual_language": ["Materialize", "a", "VReg", "containing", "the", "address", "of", "the", "specified", "stack-based", "object", "."], "TS_V_token": ["AArch64", "0", "64", "64", "AArch64::SP"], "File": "AArch64CallLowering58", "Func": "getStackAddress", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1576, "Length": 187, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ix86_function_regparm", "(", "tree", "type", ",", "tree", "decl", ")", "{", "tree", "attr", ";", "int", "regparm", "=", "ix86_regparm", ";", "bool", "user_convention", "=", "false", ";", "if", "(", "!", "TARGET_64BIT", ")", "{", "attr", "=", "lookup_attribute", "(", "\"regparm\"", ",", "TYPE_ATTRIBUTES", "(", "type", ")", ")", ";", "if", "(", "attr", ")", "{", "regparm", "=", "TREE_INT_CST_LOW", "(", "TREE_VALUE", "(", "TREE_VALUE", "(", "attr", ")", ")", ")", ";", "user_convention", "=", "true", ";", "}", "if", "(", "lookup_attribute", "(", "\"fastcall\"", ",", "TYPE_ATTRIBUTES", "(", "type", ")", ")", ")", "{", "regparm", "=", "2", ";", "user_convention", "=", "true", ";", "}", "if", "(", "!", "TARGET_64BIT", "&&", "!", "user_convention", "&&", "decl", "&&", "flag_unit_at_a_time", "&&", "!", "profile_flag", ")", "{", "struct", "cgraph_local_info", "*", "i", "=", "cgraph_local_info", "(", "decl", ")", ";", "if", "(", "i", "&&", "i", "->", "local", ")", "{", "int", "local_regparm", ",", "globals", "=", "0", ",", "regno", ";", "for", "(", "local_regparm", "=", "0", ";", "local_regparm", "<", "3", ";", "local_regparm", "++", ")", "if", "(", "global_regs", "[", "local_regparm", "]", ")", "break", ";", "if", "(", "local_regparm", "==", "3", "&&", "decl_function_context", "(", "decl", ")", "&&", "!", "DECL_NO_STATIC_CHAIN", "(", "decl", ")", ")", "local_regparm", "=", "2", ";", "for", "(", "regno", "=", "0", ";", "regno", "<", "6", ";", "regno", "++", ")", "if", "(", "global_regs", "[", "regno", "]", ")", "globals", "++", ";", "local_regparm", "=", "globals", "<", "local_regparm", "?", "local_regparm", "-", "globals", ":", "0", ";", "if", "(", "local_regparm", ">", "regparm", ")", "regparm", "=", "local_regparm", ";", "}", "}", "}", "return", "regparm", ";", "}", ""], "natrual_language": ["Return", "the", "regparm", "value", "for", "a", "function", "with", "the", "indicated", "TYPE", "and", "DECL", ".", "DECL", "may", "be", "NULL", "when", "calling", "function", "indirectly", "or", "considering", "a", "libcall", "."], "TS_V_token": ["i386", "\"regparm\"", "\"fastcall\"", "2", "0", "0", "3", "3", "2", "0", "6", "0"], "File": "i3863", "Func": "ix86_function_regparm", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1577, "Length": 226, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_return_in_msb", "(", "tree", "valtype", ")", "{", "tree", "fields", "[", "2", "]", ";", "return", "(", "TARGET_NEWABI", "&&", "TARGET_BIG_ENDIAN", "&&", "AGGREGATE_TYPE_P", "(", "valtype", ")", "&&", "mips_fpr_return_fields", "(", "valtype", ",", "fields", ")", "==", "0", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_RETURN_IN_MSB", ".", "For", "n32", "&", "n64", ",", "we", "should", "return", "a", "value", "in", "the", "most", "significant", "part", "of", "$", "2/", "$", "3", "if", ":", "-", "the", "target", "is", "big-endian", ";", "-", "the", "value", "has", "a", "structure", "or", "union", "type", "(", "we", "generalize", "this", "to", "cover", "aggregates", "from", "other", "languages", "too", ")", ";", "and", "-", "the", "structure", "is", "not", "returned", "in", "floating-point", "registers", "."], "TS_V_token": ["mips", "2", "0"], "File": "mips3", "Func": "mips_return_in_msb", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1578, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getNumberOfRegisters", "(", "bool", "Vector", ")", "{", "if", "(", "Vector", ")", "{", "if", "(", "ST", "->", "hasNEON", "(", ")", ")", "return", "16", ";", "if", "(", "ST", "->", "hasMVEIntegerOps", "(", ")", ")", "return", "8", ";", "return", "0", ";", "}", "if", "(", "ST", "->", "isThumb1Only", "(", ")", ")", "return", "8", ";", "return", "13", ";", "}", ""], "natrual_language": ["\ufffd", "?", "Vector", "TTI", "begin", "\ufffd", "?"], "TS_V_token": ["ARM", "16", "8", "0", "8", "13"], "File": "ARMTargetTransformInfo22", "Func": "getNumberOfRegisters", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1579, "Length": 53, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "AArch64RegisterInfo", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", "MF", ",", "CallingConv", "::", "ID", "CC", ")", "const", "{", "bool", "SCS", "=", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "Attribute", "::", "ShadowCallStack", ")", ";", "if", "(", "CC", "==", "CallingConv", "::", "GHC", ")", "return", "SCS", "?", "CSR_AArch64_NoRegs_SCS_RegMask", ":", "CSR_AArch64_NoRegs_RegMask", ";", "if", "(", "CC", "==", "CallingConv", "::", "AnyReg", ")", "return", "SCS", "?", "CSR_AArch64_AllRegs_SCS_RegMask", ":", "CSR_AArch64_AllRegs_RegMask", ";", "if", "(", "CC", "==", "CallingConv", "::", "CXX_FAST_TLS", ")", "return", "SCS", "?", "CSR_AArch64_CXX_TLS_Darwin_SCS_RegMask", ":", "CSR_AArch64_CXX_TLS_Darwin_RegMask", ";", "if", "(", "CC", "==", "CallingConv", "::", "AArch64_VectorCall", ")", "return", "SCS", "?", "CSR_AArch64_AAVPCS_SCS_RegMask", ":", "CSR_AArch64_AAVPCS_RegMask", ";", "if", "(", "CC", "==", "CallingConv", "::", "AArch64_SVE_VectorCall", ")", "return", "SCS", "?", "CSR_AArch64_SVE_AAPCS_SCS_RegMask", ":", "CSR_AArch64_SVE_AAPCS_RegMask", ";", "if", "(", "CC", "==", "CallingConv", "::", "CFGuard_Check", ")", "return", "CSR_Win_AArch64_CFGuard_Check_RegMask", ";", "if", "(", "MF", ".", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ".", "getTargetLowering", "(", ")", "->", "supportSwiftError", "(", ")", "&&", "MF", ".", "getFunction", "(", ")", ".", "getAttributes", "(", ")", ".", "hasAttrSomewhere", "(", "Attribute", "::", "SwiftError", ")", ")", "return", "SCS", "?", "CSR_AArch64_AAPCS_SwiftError_SCS_RegMask", ":", "CSR_AArch64_AAPCS_SwiftError_RegMask", ";", "if", "(", "CC", "==", "CallingConv", "::", "PreserveMost", ")", "return", "SCS", "?", "CSR_AArch64_RT_MostRegs_SCS_RegMask", ":", "CSR_AArch64_RT_MostRegs_RegMask", ";", "else", "return", "SCS", "?", "CSR_AArch64_AAPCS_SCS_RegMask", ":", "CSR_AArch64_AAPCS_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64RegisterInfo12", "Func": "getCallPreservedMask", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1580, "Length": 188, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "expand_fusion_p9_store", "(", "rtx", "*", "operands", ")", "{", "rtx", "tmp_reg", "=", "operands", "[", "0", "]", ";", "rtx", "addis_value", "=", "operands", "[", "1", "]", ";", "rtx", "orig_mem", "=", "operands", "[", "2", "]", ";", "rtx", "src", "=", "operands", "[", "3", "]", ";", "rtx", "new_addr", ",", "new_mem", ",", "orig_addr", ",", "offset", ",", "set", ",", "clobber", ",", "insn", ",", "new_src", ";", "enum", "rtx_code", "plus_or_lo_sum", ";", "machine_mode", "target_mode", "=", "GET_MODE", "(", "orig_mem", ")", ";", "machine_mode", "ptr_mode", "=", "Pmode", ";", "gcc_assert", "(", "MEM_P", "(", "orig_mem", ")", ")", ";", "orig_addr", "=", "XEXP", "(", "orig_mem", ",", "0", ")", ";", "plus_or_lo_sum", "=", "GET_CODE", "(", "orig_addr", ")", ";", "gcc_assert", "(", "plus_or_lo_sum", "==", "PLUS", "||", "plus_or_lo_sum", "==", "LO_SUM", ")", ";", "offset", "=", "XEXP", "(", "orig_addr", ",", "1", ")", ";", "new_addr", "=", "gen_rtx_fmt_ee", "(", "plus_or_lo_sum", ",", "ptr_mode", ",", "addis_value", ",", "offset", ")", ";", "new_mem", "=", "replace_equiv_address_nv", "(", "orig_mem", ",", "new_addr", ",", "false", ")", ";", "new_src", "=", "gen_rtx_UNSPEC", "(", "target_mode", ",", "gen_rtvec", "(", "1", ",", "src", ")", ",", "UNSPEC_FUSION_P9", ")", ";", "set", "=", "gen_rtx_SET", "(", "new_mem", ",", "new_src", ")", ";", "clobber", "=", "gen_rtx_CLOBBER", "(", "VOIDmode", ",", "tmp_reg", ")", ";", "insn", "=", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "gen_rtvec", "(", "2", ",", "set", ",", "clobber", ")", ")", ";", "emit_insn", "(", "insn", ")", ";", "return", ";", "}", ""], "natrual_language": ["During", "the", "peephole2", "pass", ",", "adjust", "and", "expand", "the", "insns", "for", "an", "extended", "fusion", "store", "sequence", ".", "The", "operands", "are", ":", "operands", "[", "0", "]", "register", "set", "with", "addis", "operands", "[", "1", "]", "value", "set", "via", "addis", "operands", "[", "2", "]", "target", "D-form", "memory", "being", "stored", "to", "operands", "[", "3", "]", "register", "being", "stored", "This", "is", "similar", "to", "the", "fusion", "introduced", "with", "power8", ",", "except", "it", "scales", "to", "both", "loads/stores", "and", "does", "not", "require", "the", "result", "register", "to", "be", "the", "same", "as", "the", "base", "register", ".", "At", "the", "moment", ",", "we", "only", "do", "this", "if", "register", "set", "with", "addis", "is", "dead", "."], "TS_V_token": ["rs6000", "0", "1", "2", "3", "0", "1", "1", "2"], "File": "rs60005", "Func": "expand_fusion_p9_store", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1581, "Length": 200, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Cpu0ExprKind", "getKind", "(", ")", "const", "{", "return", "Kind", ";", "}", ""], "natrual_language": ["Returns", "the", "Kind", "of", "lane", "offset", "."], "TS_V_token": ["Cpu0", "Cpu0"], "File": "Cpu0MCExpr", "Func": "getKind", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1582, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "arm_coproc_mem_operand", "(", "rtx", "op", ",", "bool", "wb", ")", "{", "return", "arm_coproc_mem_operand_wb", "(", "op", ",", "wb", "?", "2", ":", "1", ")", ";", "}", ""], "natrual_language": ["Return", "TRUE", "if", "OP", "is", "a", "valid", "coprocessor", "memory", "address", "pattern", ".", "WB", "if", "true", "if", "writeback", "address", "modes", "are", "allowed", "."], "TS_V_token": ["arm", "2", "1"], "File": "arm", "Func": "arm_coproc_mem_operand", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1583, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_save_reg", "(", "rtx", "reg", ",", "rtx", "mem", ")", "{", "if", "(", "GET_MODE", "(", "reg", ")", "==", "DFmode", "&&", "(", "!", "TARGET_FLOAT64", "||", "mips_abi", "==", "ABI_32", ")", ")", "{", "rtx", "x1", ",", "x2", ";", "mips_emit_move_or_split", "(", "mem", ",", "reg", ",", "SPLIT_IF_NECESSARY", ")", ";", "x1", "=", "mips_frame_set", "(", "mips_subword", "(", "mem", ",", "false", ")", ",", "mips_subword", "(", "reg", ",", "false", ")", ")", ";", "x2", "=", "mips_frame_set", "(", "mips_subword", "(", "mem", ",", "true", ")", ",", "mips_subword", "(", "reg", ",", "true", ")", ")", ";", "mips_set_frame_expr", "(", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "gen_rtvec", "(", "2", ",", "x1", ",", "x2", ")", ")", ")", ";", "}", "else", "mips_emit_save_slot_move", "(", "mem", ",", "reg", ",", "MIPS_PROLOGUE_TEMP", "(", "GET_MODE", "(", "reg", ")", ")", ")", ";", "}", ""], "natrual_language": ["Save", "register", "REG", "to", "MEM", ".", "Make", "the", "instruction", "frame-related", "."], "TS_V_token": ["mips", "2"], "File": "mips", "Func": "mips_save_reg", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1584, "Length": 117, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "::", "iterator", "X86FrameLowering", "::", "restoreWin32EHStackPointers", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MBBI", ",", "const", "DebugLoc", "&", "DL", ",", "bool", "RestoreSP", ")", "const", "{", "assert", "(", "STI", ".", "isTargetWindowsMSVC", "(", ")", "&&", "\"funclets only supported in MSVC env\"", ")", ";", "assert", "(", "STI", ".", "isTargetWin32", "(", ")", "&&", "\"EBP/ESI restoration only required on win32\"", ")", ";", "assert", "(", "STI", ".", "is32Bit", "(", ")", "&&", "!", "Uses64BitFramePtr", "&&", "\"restoring EBP/ESI on non-32-bit target\"", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "unsigned", "FramePtr", "=", "TRI", "->", "getFrameRegister", "(", "MF", ")", ";", "unsigned", "BasePtr", "=", "TRI", "->", "getBaseRegister", "(", ")", ";", "WinEHFuncInfo", "&", "FuncInfo", "=", "*", "MF", ".", "getWinEHFuncInfo", "(", ")", ";", "X86MachineFunctionInfo", "*", "X86FI", "=", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", ";", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "int", "FI", "=", "FuncInfo", ".", "EHRegNodeFrameIndex", ";", "int", "EHRegSize", "=", "MFI", "->", "getObjectSize", "(", "FI", ")", ";", "if", "(", "RestoreSP", ")", "{", "addRegOffset", "(", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "X86", "::", "MOV32rm", ")", ",", "X86", "::", "ESP", ")", ",", "X86", "::", "EBP", ",", "true", ",", "-", "EHRegSize", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ";", "}", "unsigned", "UsedReg", ";", "int", "EHRegOffset", "=", "getFrameIndexReference", "(", "MF", ",", "FI", ",", "UsedReg", ")", ";", "int", "EndOffset", "=", "-", "EHRegOffset", "-", "EHRegSize", ";", "FuncInfo", ".", "EHRegNodeEndOffset", "=", "EndOffset", ";", "if", "(", "UsedReg", "==", "FramePtr", ")", "{", "unsigned", "ADDri", "=", "getADDriOpcode", "(", "false", ",", "EndOffset", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "ADDri", ")", ",", "FramePtr", ")", ".", "addReg", "(", "FramePtr", ")", ".", "addImm", "(", "EndOffset", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameSetup", ")", "->", "getOperand", "(", "3", ")", ".", "setIsDead", "(", ")", ";", "assert", "(", "EndOffset", ">=", "0", "&&", "\"end of registration object above normal EBP position!\"", ")", ";", "}", "else", "if", "(", "UsedReg", "==", "BasePtr", ")", "{", "addRegOffset", "(", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "X86", "::", "LEA32r", ")", ",", "BasePtr", ")", ",", "FramePtr", ",", "false", ",", "EndOffset", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ";", "assert", "(", "X86FI", "->", "getHasSEHFramePtrSave", "(", ")", ")", ";", "int", "Offset", "=", "getFrameIndexReference", "(", "MF", ",", "X86FI", "->", "getSEHFramePtrSaveIndex", "(", ")", ",", "UsedReg", ")", ";", "assert", "(", "UsedReg", "==", "BasePtr", ")", ";", "addRegOffset", "(", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "X86", "::", "MOV32rm", ")", ",", "FramePtr", ")", ",", "UsedReg", ",", "true", ",", "Offset", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ";", "}", "else", "{", "llvm_unreachable", "(", "\"32-bit frames with WinEH must use FramePtr or BasePtr\"", ")", ";", "}", "return", "MBBI", ";", "}", ""], "natrual_language": ["Sets", "up", "EBP", "and", "optionally", "ESI", "based", "on", "the", "incoming", "EBP", "value", "."], "TS_V_token": ["X86", "X86", "\"funclets only supported in MSVC env\"", "\"EBP/ESI restoration only required on win32\"", "\"restoring EBP/ESI on non-32-bit target\"", "X86", "X86", "X86", "X86::MOV32rm", "X86::ESP", "X86::EBP", "3", "0", "\"end of registration object above normal EBP position!\"", "X86::LEA32r", "X86", "X86", "X86::MOV32rm", "\"32-bit frames with WinEH must use FramePtr or BasePtr\""], "File": "X86FrameLowering112", "Func": "restoreWin32EHStackPointers", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1585, "Length": 415, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "{", "return", "\"ARM64 Collect Linker Optimization Hint (LOH)\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["ARM64", "\"ARM64 Collect Linker Optimization Hint (LOH)\""], "File": "ARM64CollectLOH", "Func": "getPassName", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1586, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "Comet2RegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "markSuperRegs", "(", "Reserved", ",", "Comet2", "::", "FR", ")", ";", "markSuperRegs", "(", "Reserved", ",", "Comet2", "::", "SP", ")", ";", "assert", "(", "checkAllSuperRegsMarked", "(", "Reserved", ")", ")", ";", "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": ["Comet2", "Comet2", "Comet2::FR", "Comet2::SP"], "File": "Comet2RegisterInfo", "Func": "getReservedRegs", "Target": "Comet2", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1587, "Length": 50, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "X86RegisterInfo", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", "MF", ",", "CallingConv", "::", "ID", "CC", ")", "const", "{", "const", "X86Subtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "bool", "HasSSE", "=", "Subtarget", ".", "hasSSE1", "(", ")", ";", "bool", "HasAVX", "=", "Subtarget", ".", "hasAVX", "(", ")", ";", "bool", "HasAVX512", "=", "Subtarget", ".", "hasAVX512", "(", ")", ";", "switch", "(", "CC", ")", "{", "case", "CallingConv", "::", "GHC", ":", "case", "CallingConv", "::", "HiPE", ":", "return", "CSR_NoRegs_RegMask", ";", "case", "CallingConv", "::", "AnyReg", ":", "if", "(", "HasAVX", ")", "return", "CSR_64_AllRegs_AVX_RegMask", ";", "return", "CSR_64_AllRegs_RegMask", ";", "case", "CallingConv", "::", "PreserveMost", ":", "return", "CSR_64_RT_MostRegs_RegMask", ";", "case", "CallingConv", "::", "PreserveAll", ":", "if", "(", "HasAVX", ")", "return", "CSR_64_RT_AllRegs_AVX_RegMask", ";", "return", "CSR_64_RT_AllRegs_RegMask", ";", "case", "CallingConv", "::", "CXX_FAST_TLS", ":", "if", "(", "Is64Bit", ")", "return", "CSR_64_TLS_Darwin_RegMask", ";", "break", ";", "case", "CallingConv", "::", "Intel_OCL_BI", ":", "{", "if", "(", "HasAVX512", "&&", "IsWin64", ")", "return", "CSR_Win64_Intel_OCL_BI_AVX512_RegMask", ";", "if", "(", "HasAVX512", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_AVX512_RegMask", ";", "if", "(", "HasAVX", "&&", "IsWin64", ")", "return", "CSR_Win64_Intel_OCL_BI_AVX_RegMask", ";", "if", "(", "HasAVX", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_AVX_RegMask", ";", "if", "(", "!", "HasAVX", "&&", "!", "IsWin64", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_RegMask", ";", "break", ";", "}", "case", "CallingConv", "::", "HHVM", ":", "return", "CSR_64_HHVM_RegMask", ";", "case", "CallingConv", "::", "X86_RegCall", ":", "if", "(", "Is64Bit", ")", "{", "if", "(", "IsWin64", ")", "{", "return", "(", "HasSSE", "?", "CSR_Win64_RegCall_RegMask", ":", "CSR_Win64_RegCall_NoSSE_RegMask", ")", ";", "}", "else", "{", "return", "(", "HasSSE", "?", "CSR_SysV64_RegCall_RegMask", ":", "CSR_SysV64_RegCall_NoSSE_RegMask", ")", ";", "}", "}", "else", "{", "return", "(", "HasSSE", "?", "CSR_32_RegCall_RegMask", ":", "CSR_32_RegCall_NoSSE_RegMask", ")", ";", "}", "case", "CallingConv", "::", "Cold", ":", "if", "(", "Is64Bit", ")", "return", "CSR_64_MostRegs_RegMask", ";", "break", ";", "case", "CallingConv", "::", "Win64", ":", "return", "CSR_Win64_RegMask", ";", "case", "CallingConv", "::", "X86_64_SysV", ":", "return", "CSR_64_RegMask", ";", "case", "CallingConv", "::", "X86_INTR", ":", "if", "(", "Is64Bit", ")", "{", "if", "(", "HasAVX512", ")", "return", "CSR_64_AllRegs_AVX512_RegMask", ";", "if", "(", "HasAVX", ")", "return", "CSR_64_AllRegs_AVX_RegMask", ";", "if", "(", "HasSSE", ")", "return", "CSR_64_AllRegs_RegMask", ";", "return", "CSR_64_AllRegs_NoSSE_RegMask", ";", "}", "else", "{", "if", "(", "HasAVX512", ")", "return", "CSR_32_AllRegs_AVX512_RegMask", ";", "if", "(", "HasAVX", ")", "return", "CSR_32_AllRegs_AVX_RegMask", ";", "if", "(", "HasSSE", ")", "return", "CSR_32_AllRegs_SSE_RegMask", ";", "return", "CSR_32_AllRegs_RegMask", ";", "}", "default", ":", "break", ";", "}", "if", "(", "Is64Bit", ")", "{", "const", "Function", "*", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "bool", "IsSwiftCC", "=", "Subtarget", ".", "getTargetLowering", "(", ")", "->", "supportSwiftError", "(", ")", "&&", "F", "->", "getAttributes", "(", ")", ".", "hasAttrSomewhere", "(", "Attribute", "::", "SwiftError", ")", ";", "if", "(", "IsSwiftCC", ")", "return", "IsWin64", "?", "CSR_Win64_SwiftError_RegMask", ":", "CSR_64_SwiftError_RegMask", ";", "return", "IsWin64", "?", "CSR_Win64_RegMask", ":", "CSR_64_RegMask", ";", "}", "return", "CSR_32_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86", "X86"], "File": "X86RegisterInfo29", "Func": "getCallPreservedMask", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1588, "Length": 408, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "dump", "(", "const", "llvm", "::", "SelectionDAG", "*", "DAG", ")", "{", "errs", "(", ")", "<<", "\"SystemZAddressingMode \"", "<<", "this", "<<", "'\\n'", ";", "errs", "(", ")", "<<", "\" Base \"", ";", "if", "(", "Base", ".", "getNode", "(", ")", ")", "Base", ".", "getNode", "(", ")", "->", "dump", "(", "DAG", ")", ";", "else", "errs", "(", ")", "<<", "\"null\\n\"", ";", "if", "(", "hasIndexField", "(", ")", ")", "{", "errs", "(", ")", "<<", "\" Index \"", ";", "if", "(", "Index", ".", "getNode", "(", ")", ")", "Index", ".", "getNode", "(", ")", "->", "dump", "(", "DAG", ")", ";", "else", "errs", "(", ")", "<<", "\"null\\n\"", ";", "}", "errs", "(", ")", "<<", "\" Disp \"", "<<", "Disp", ";", "if", "(", "IncludesDynAlloc", ")", "errs", "(", ")", "<<", "\" + ADJDYNALLOC\"", ";", "errs", "(", ")", "<<", "'\\n'", ";", "}", ""], "natrual_language": ["Dump", "the", "plan", "to", "stderr", "(", "for", "debugging", ")", "."], "TS_V_token": ["SystemZ", "\"SystemZAddressingMode \"", "\" Base \"", "\"null\\n\"", "\" Index \"", "\"null\\n\"", "\" Disp \"", "\" + ADJDYNALLOC\""], "File": "SystemZISelDAGToDAG (2)1", "Func": "dump", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1589, "Length": 118, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "MCSymbol", "*", "GetSymbolFromOperand", "(", "const", "MachineOperand", "&", "MO", ",", "AsmPrinter", "&", "AP", ")", "{", "const", "TargetMachine", "&", "TM", "=", "AP", ".", "TM", ";", "Mangler", "*", "Mang", "=", "AP", ".", "Mang", ";", "const", "DataLayout", "*", "DL", "=", "TM", ".", "getDataLayout", "(", ")", ";", "MCContext", "&", "Ctx", "=", "AP", ".", "OutContext", ";", "SmallString", "<", "128", ">", "Name", ";", "StringRef", "Suffix", ";", "if", "(", "MO", ".", "getTargetFlags", "(", ")", "==", "PPCII", "::", "MO_DARWIN_STUB", ")", "Suffix", "=", "\"$stub\"", ";", "else", "if", "(", "MO", ".", "getTargetFlags", "(", ")", "&", "PPCII", "::", "MO_NLP_FLAG", ")", "Suffix", "=", "\"$non_lazy_ptr\"", ";", "if", "(", "!", "Suffix", ".", "empty", "(", ")", ")", "Name", "+=", "DL", "->", "getPrivateGlobalPrefix", "(", ")", ";", "unsigned", "PrefixLen", "=", "Name", ".", "size", "(", ")", ";", "if", "(", "!", "MO", ".", "isGlobal", "(", ")", ")", "{", "assert", "(", "MO", ".", "isSymbol", "(", ")", "&&", "\"Isn't a symbol reference\"", ")", ";", "Mang", "->", "getNameWithPrefix", "(", "Name", ",", "MO", ".", "getSymbolName", "(", ")", ")", ";", "}", "else", "{", "const", "GlobalValue", "*", "GV", "=", "MO", ".", "getGlobal", "(", ")", ";", "TM", ".", "getNameWithPrefix", "(", "Name", ",", "GV", ",", "*", "Mang", ")", ";", "}", "unsigned", "OrigLen", "=", "Name", ".", "size", "(", ")", "-", "PrefixLen", ";", "Name", "+=", "Suffix", ";", "MCSymbol", "*", "Sym", "=", "Ctx", ".", "GetOrCreateSymbol", "(", "Name", ".", "str", "(", ")", ")", ";", "StringRef", "OrigName", "=", "StringRef", "(", "Name", ")", ".", "substr", "(", "PrefixLen", ",", "OrigLen", ")", ";", "if", "(", "MO", ".", "getTargetFlags", "(", ")", "==", "PPCII", "::", "MO_DARWIN_STUB", ")", "{", "MachineModuleInfoImpl", "::", "StubValueTy", "&", "StubSym", "=", "getMachOMMI", "(", "AP", ")", ".", "getFnStubEntry", "(", "Sym", ")", ";", "if", "(", "StubSym", ".", "getPointer", "(", ")", ")", "return", "Sym", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "StubSym", "=", "MachineModuleInfoImpl", "::", "StubValueTy", "(", "AP", ".", "getSymbol", "(", "MO", ".", "getGlobal", "(", ")", ")", ",", "!", "MO", ".", "getGlobal", "(", ")", "->", "hasInternalLinkage", "(", ")", ")", ";", "}", "else", "{", "StubSym", "=", "MachineModuleInfoImpl", "::", "StubValueTy", "(", "Ctx", ".", "GetOrCreateSymbol", "(", "OrigName", ")", ",", "false", ")", ";", "}", "return", "Sym", ";", "}", "if", "(", "MO", ".", "getTargetFlags", "(", ")", "&", "PPCII", "::", "MO_NLP_FLAG", ")", "{", "MachineModuleInfoMachO", "&", "MachO", "=", "getMachOMMI", "(", "AP", ")", ";", "MachineModuleInfoImpl", "::", "StubValueTy", "&", "StubSym", "=", "(", "MO", ".", "getTargetFlags", "(", ")", "&", "PPCII", "::", "MO_NLP_HIDDEN_FLAG", ")", "?", "MachO", ".", "getHiddenGVStubEntry", "(", "Sym", ")", ":", "MachO", ".", "getGVStubEntry", "(", "Sym", ")", ";", "if", "(", "!", "StubSym", ".", "getPointer", "(", ")", ")", "{", "assert", "(", "MO", ".", "isGlobal", "(", ")", "&&", "\"Extern symbol not handled yet\"", ")", ";", "StubSym", "=", "MachineModuleInfoImpl", "::", "StubValueTy", "(", "AP", ".", "getSymbol", "(", "MO", ".", "getGlobal", "(", ")", ")", ",", "!", "MO", ".", "getGlobal", "(", ")", "->", "hasInternalLinkage", "(", ")", ")", ";", "}", "return", "Sym", ";", "}", "return", "Sym", ";", "}", ""], "natrual_language": ["Lower", "an", "MO_GlobalAddress", "or", "MO_ExternalSymbol", "operand", "to", "an", "MCSymbol", "."], "TS_V_token": ["PowerPC", "128", "PPCII::MO_DARWIN_STUB", "\"$stub\"", "PPCII::MO_NLP_FLAG", "\"$non_lazy_ptr\"", "\"Isn't a symbol reference\"", "PPCII::MO_DARWIN_STUB", "PPCII::MO_NLP_FLAG", "PPCII::MO_NLP_HIDDEN_FLAG", "\"Extern symbol not handled yet\""], "File": "PPCMCInstLower1", "Func": "GetSymbolFromOperand", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1590, "Length": 440, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_evpc_ins", "(", "struct", "expand_vec_perm_d", "*", "d", ")", "{", "machine_mode", "mode", "=", "d", "->", "vmode", ";", "unsigned", "HOST_WIDE_INT", "nelt", ";", "if", "(", "d", "->", "vec_flags", "!=", "VEC_ADVSIMD", ")", "return", "false", ";", "nelt", "=", "d", "->", "perm", ".", "length", "(", ")", ".", "to_constant", "(", ")", ";", "rtx", "insv", "=", "d", "->", "op0", ";", "HOST_WIDE_INT", "idx", "=", "-", "1", ";", "for", "(", "unsigned", "HOST_WIDE_INT", "i", "=", "0", ";", "i", "<", "nelt", ";", "i", "++", ")", "{", "HOST_WIDE_INT", "elt", ";", "if", "(", "!", "d", "->", "perm", "[", "i", "]", ".", "is_constant", "(", "&", "elt", ")", ")", "return", "false", ";", "if", "(", "elt", "==", "(", "HOST_WIDE_INT", ")", "i", ")", "continue", ";", "if", "(", "idx", "!=", "-", "1", ")", "{", "idx", "=", "-", "1", ";", "break", ";", "}", "idx", "=", "i", ";", "}", "if", "(", "idx", "==", "-", "1", ")", "{", "insv", "=", "d", "->", "op1", ";", "for", "(", "unsigned", "HOST_WIDE_INT", "i", "=", "0", ";", "i", "<", "nelt", ";", "i", "++", ")", "{", "if", "(", "d", "->", "perm", "[", "i", "]", ".", "to_constant", "(", ")", "==", "(", "HOST_WIDE_INT", ")", "(", "i", "+", "nelt", ")", ")", "continue", ";", "if", "(", "idx", "!=", "-", "1", ")", "return", "false", ";", "idx", "=", "i", ";", "}", "if", "(", "idx", "==", "-", "1", ")", "return", "false", ";", "}", "if", "(", "d", "->", "testing_p", ")", "return", "true", ";", "gcc_assert", "(", "idx", "!=", "-", "1", ")", ";", "unsigned", "extractindex", "=", "d", "->", "perm", "[", "idx", "]", ".", "to_constant", "(", ")", ";", "rtx", "extractv", "=", "d", "->", "op0", ";", "if", "(", "extractindex", ">=", "nelt", ")", "{", "extractv", "=", "d", "->", "op1", ";", "extractindex", "-=", "nelt", ";", "}", "gcc_assert", "(", "extractindex", "<", "nelt", ")", ";", "emit_move_insn", "(", "d", "->", "target", ",", "insv", ")", ";", "insn_code", "icode", "=", "code_for_aarch64_simd_vec_copy_lane", "(", "mode", ")", ";", "expand_operand", "ops", "[", "5", "]", ";", "create_output_operand", "(", "&", "ops", "[", "0", "]", ",", "d", "->", "target", ",", "mode", ")", ";", "create_input_operand", "(", "&", "ops", "[", "1", "]", ",", "d", "->", "target", ",", "mode", ")", ";", "create_integer_operand", "(", "&", "ops", "[", "2", "]", ",", "1", "<<", "idx", ")", ";", "create_input_operand", "(", "&", "ops", "[", "3", "]", ",", "extractv", ",", "mode", ")", ";", "create_integer_operand", "(", "&", "ops", "[", "4", "]", ",", "extractindex", ")", ";", "expand_insn", "(", "icode", ",", "5", ",", "ops", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Recognize", "patterns", "suitable", "for", "the", "INS", "instructions", "."], "TS_V_token": ["aarch64", "1", "0", "1", "1", "1", "0", "1", "1", "1", "5", "0", "1", "2", "1", "3", "4", "5"], "File": "aarch641", "Func": "aarch64_evpc_ins", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1591, "Length": 375, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMLowOverheadLoops", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "mf", ")", "{", "const", "ARMSubtarget", "&", "ST", "=", "static_cast", "<", "const", "ARMSubtarget", "&", ">", "(", "mf", ".", "getSubtarget", "(", ")", ")", ";", "if", "(", "!", "ST", ".", "hasLOB", "(", ")", ")", "return", "false", ";", "MF", "=", "&", "mf", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"ARM Loops on \"", "<<", "MF", "->", "getName", "(", ")", "<<", "\" ------------- \\n\"", ")", ";", "MLI", "=", "&", "getAnalysis", "<", "MachineLoopInfo", ">", "(", ")", ";", "RDA", "=", "&", "getAnalysis", "<", "ReachingDefAnalysis", ">", "(", ")", ";", "MF", "->", "getProperties", "(", ")", ".", "set", "(", "MachineFunctionProperties", "::", "Property", "::", "TracksLiveness", ")", ";", "MRI", "=", "&", "MF", "->", "getRegInfo", "(", ")", ";", "TII", "=", "static_cast", "<", "const", "ARMBaseInstrInfo", "*", ">", "(", "ST", ".", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "ST", ".", "getRegisterInfo", "(", ")", ";", "BBUtils", "=", "std", "::", "unique_ptr", "<", "ARMBasicBlockUtils", ">", "(", "new", "ARMBasicBlockUtils", "(", "*", "MF", ")", ")", ";", "BBUtils", "->", "computeAllBlockSizes", "(", ")", ";", "BBUtils", "->", "adjustBBOffsetsAfter", "(", "&", "MF", "->", "front", "(", ")", ")", ";", "bool", "Changed", "=", "false", ";", "for", "(", "auto", "ML", ":", "*", "MLI", ")", "{", "if", "(", "ML", "->", "isOutermost", "(", ")", ")", "Changed", "|=", "ProcessLoop", "(", "ML", ")", ";", "}", "Changed", "|=", "RevertNonLoops", "(", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "\"ARM Loops on \"", "\" ------------- \\n\"", "ARM", "ARM", "ARM"], "File": "ARMLowOverheadLoops", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1592, "Length": 206, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "flushPendingInstructions", "(", "MCStreamer", "&", "Out", ")", "override", "{", "if", "(", "!", "inImplicitITBlock", "(", ")", ")", "{", "assert", "(", "PendingConditionalInsts", ".", "size", "(", ")", "==", "0", ")", ";", "return", ";", "}", "unsigned", "Mask", "=", "getITMaskEncoding", "(", ")", ";", "MCInst", "ITInst", ";", "ITInst", ".", "setOpcode", "(", "ARM", "::", "t2IT", ")", ";", "ITInst", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "ITState", ".", "Cond", ")", ")", ";", "ITInst", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "Mask", ")", ")", ";", "Out", ".", "EmitInstruction", "(", "ITInst", ",", "getSTI", "(", ")", ")", ";", "assert", "(", "PendingConditionalInsts", ".", "size", "(", ")", "<=", "4", ")", ";", "for", "(", "MCInst", "Inst", ":", "PendingConditionalInsts", ")", "{", "Out", ".", "EmitInstruction", "(", "Inst", ",", "getSTI", "(", ")", ")", ";", "}", "PendingConditionalInsts", ".", "clear", "(", ")", ";", "ITState", ".", "Mask", "=", "0", ";", "ITState", ".", "CurPosition", "=", "~", "0U", ";", "}", ""], "natrual_language": ["Ensure", "that", "all", "previously", "parsed", "instructions", "have", "been", "emitted", "to", "the", "output", "streamer", ",", "if", "the", "target", "does", "not", "emit", "them", "immediately", "."], "TS_V_token": ["ARM", "0", "ARM::t2IT", "4", "0", "0U"], "File": "ARMAsmParser5", "Func": "flushPendingInstructions", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1593, "Length": 138, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "clear", "(", ")", "{", "BBInfo", ".", "clear", "(", ")", ";", "}", ""], "natrual_language": ["Clear", "all", "timers", "in", "this", "group", "."], "TS_V_token": ["ARM"], "File": "ARMBasicBlockInfo10", "Func": "clear", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1594, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "RegisterBank", "&", "MipsRegisterBankInfo", "::", "getRegBankFromRegClass", "(", "const", "TargetRegisterClass", "&", "RC", ",", "LLT", ")", "const", "{", "using", "namespace", "Mips", ";", "switch", "(", "RC", ".", "getID", "(", ")", ")", "{", "case", "Mips", "::", "GPR32RegClassID", ":", "case", "Mips", "::", "CPU16Regs_and_GPRMM16ZeroRegClassID", ":", "case", "Mips", "::", "GPRMM16MovePPairFirstRegClassID", ":", "case", "Mips", "::", "CPU16Regs_and_GPRMM16MovePPairSecondRegClassID", ":", "case", "Mips", "::", "GPRMM16MoveP_and_CPU16Regs_and_GPRMM16ZeroRegClassID", ":", "case", "Mips", "::", "GPRMM16MovePPairFirst_and_GPRMM16MovePPairSecondRegClassID", ":", "case", "Mips", "::", "SP32RegClassID", ":", "case", "Mips", "::", "GP32RegClassID", ":", "return", "getRegBank", "(", "Mips", "::", "GPRBRegBankID", ")", ";", "case", "Mips", "::", "FGRCCRegClassID", ":", "case", "Mips", "::", "FGR32RegClassID", ":", "case", "Mips", "::", "FGR64RegClassID", ":", "case", "Mips", "::", "AFGR64RegClassID", ":", "case", "Mips", "::", "MSA128BRegClassID", ":", "case", "Mips", "::", "MSA128HRegClassID", ":", "case", "Mips", "::", "MSA128WRegClassID", ":", "case", "Mips", "::", "MSA128DRegClassID", ":", "return", "getRegBank", "(", "Mips", "::", "FPRBRegBankID", ")", ";", "default", ":", "llvm_unreachable", "(", "\"Register class not supported\"", ")", ";", "}", "}", ""], "natrual_language": ["Get", "a", "register", "bank", "that", "covers", "RC", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips::GPR32RegClassID", "Mips::CPU16Regs_and_GPRMM16ZeroRegClassID", "Mips::GPRMM16MovePPairFirstRegClassID", "Mips::CPU16Regs_and_GPRMM16MovePPairSecondRegClassID", "Mips::GPRMM16MoveP_and_CPU16Regs_and_GPRMM16ZeroRegClassID", "Mips::GPRMM16MovePPairFirst_and_GPRMM16MovePPairSecondRegClassID", "Mips::SP32RegClassID", "Mips::GP32RegClassID", "Mips::GPRBRegBankID", "Mips::FGRCCRegClassID", "Mips::FGR32RegClassID", "Mips::FGR64RegClassID", "Mips::AFGR64RegClassID", "Mips::MSA128BRegClassID", "Mips::MSA128HRegClassID", "Mips::MSA128WRegClassID", "Mips::MSA128DRegClassID", "Mips::FPRBRegBankID", "\"Register class not supported\""], "File": "MipsRegisterBankInfo10", "Func": "getRegBankFromRegClass", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1595, "Length": 134, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachinePointerInfo", "MipsFunctionInfo", "::", "callPtrInfo", "(", "const", "GlobalValue", "*", "Val", ")", "{", "std", "::", "unique_ptr", "<", "const", "MipsCallEntry", ">", "&", "E", "=", "GlobalCallEntries", "[", "Val", "]", ";", "if", "(", "!", "E", ")", "E", "=", "llvm", "::", "make_unique", "<", "MipsCallEntry", ">", "(", "Val", ")", ";", "return", "MachinePointerInfo", "(", "E", ".", "get", "(", ")", ")", ";", "}", ""], "natrual_language": ["Create", "a", "MachinePointerInfo", "that", "has", "a", "GlobalValuePseudoSourceValue", "object", "representing", "a", "GOT", "entry", "for", "a", "global", "function", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips"], "File": "MipsMachineFunction30", "Func": "callPtrInfo", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1596, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "isCandidateToMergeOrPair", "(", "MachineInstr", "&", "MI", ")", "const", "{", "if", "(", "MI", ".", "hasOrderedMemoryRef", "(", ")", ")", "return", "false", ";", "assert", "(", "MI", ".", "getOperand", "(", "1", ")", ".", "isReg", "(", ")", "&&", "\"Expected a reg operand.\"", ")", ";", "if", "(", "!", "MI", ".", "getOperand", "(", "2", ")", ".", "isImm", "(", ")", ")", "return", "false", ";", "unsigned", "BaseReg", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "&", "getRegisterInfo", "(", ")", ";", "if", "(", "MI", ".", "modifiesRegister", "(", "BaseReg", ",", "TRI", ")", ")", "return", "false", ";", "if", "(", "isLdStPairSuppressed", "(", "MI", ")", ")", "return", "false", ";", "if", "(", "Subtarget", ".", "isPaired128Slow", "(", ")", ")", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "AArch64", "::", "LDURQi", ":", "case", "AArch64", "::", "STURQi", ":", "case", "AArch64", "::", "LDRQui", ":", "case", "AArch64", "::", "STRQui", ":", "return", "false", ";", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "this", "is", "a", "load/store", "that", "can", "be", "potentially", "paired/merged", "."], "TS_V_token": ["AArch64", "AArch64", "1", "\"Expected a reg operand.\"", "2", "1", "AArch64::LDURQi", "AArch64::STURQi", "AArch64::LDRQui", "AArch64::STRQui"], "File": "AArch64InstrInfo (2)", "Func": "isCandidateToMergeOrPair", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1597, "Length": 154, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_override_options", "(", "void", ")", "{", "if", "(", "aarch64_cpu_string", ")", "{", "aarch64_parse_cpu", "(", ")", ";", "}", "if", "(", "aarch64_arch_string", ")", "{", "aarch64_parse_arch", "(", ")", ";", "}", "if", "(", "aarch64_tune_string", ")", "{", "aarch64_parse_tune", "(", ")", ";", "}", "if", "(", "TARGET_ILP32", ")", "error", "(", "\"Assembler does not support -mabi=ilp32\"", ")", ";", "initialize_aarch64_code_model", "(", ")", ";", "aarch64_build_bitmask_table", "(", ")", ";", "if", "(", "flag_strict_volatile_bitfields", "<", "0", "&&", "abi_version_at_least", "(", "2", ")", ")", "flag_strict_volatile_bitfields", "=", "1", ";", "if", "(", "!", "selected_cpu", ")", "{", "selected_cpu", "=", "&", "all_cores", "[", "TARGET_CPU_DEFAULT", "&", "0x3f", "]", ";", "aarch64_isa_flags", "=", "TARGET_CPU_DEFAULT", ">>", "6", ";", "}", "gcc_assert", "(", "selected_cpu", ")", ";", "if", "(", "!", "selected_tune", ")", "selected_tune", "=", "selected_cpu", ";", "aarch64_tune_flags", "=", "selected_tune", "->", "flags", ";", "aarch64_tune", "=", "selected_tune", "->", "core", ";", "aarch64_tune_params", "=", "selected_tune", "->", "tune", ";", "aarch64_architecture_version", "=", "selected_cpu", "->", "architecture_version", ";", "if", "(", "aarch64_fix_a53_err835769", "==", "2", ")", "{", "aarch64_fix_a53_err835769", "=", "1", ";", "aarch64_fix_a53_err835769", "=", "0", ";", "}", "if", "(", "!", "optimize_size", ")", "{", "if", "(", "align_loops", "<=", "0", ")", "align_loops", "=", "aarch64_tune_params", "->", "loop_align", ";", "if", "(", "align_jumps", "<=", "0", ")", "align_jumps", "=", "aarch64_tune_params", "->", "jump_align", ";", "if", "(", "align_functions", "<=", "0", ")", "align_functions", "=", "aarch64_tune_params", "->", "function_align", ";", "}", "aarch64_override_options_after_change", "(", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_OPTION_OVERRIDE", "."], "TS_V_token": ["aarch64", "\"Assembler does not support -mabi=ilp32\"", "0", "2", "1", "0x3f", "6", "2", "1", "0", "0", "0", "0"], "File": "aarch642", "Func": "aarch64_override_options", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1598, "Length": 194, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "machine_mode", "sparc_preferred_simd_mode", "(", "machine_mode", "mode", ")", "{", "if", "(", "TARGET_VIS", ")", "switch", "(", "mode", ")", "{", "case", "SImode", ":", "return", "V2SImode", ";", "case", "HImode", ":", "return", "V4HImode", ";", "case", "QImode", ":", "return", "V8QImode", ";", "default", ":", ";", "}", "return", "word_mode", ";", "}", ""], "natrual_language": ["Implement", "the", "TARGET_VECTORIZE_PREFERRED_SIMD_MODE", "target", "hook", "."], "TS_V_token": ["sparc"], "File": "sparc4", "Func": "sparc_preferred_simd_mode", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1599, "Length": 43, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "compute_int_layout", "(", "HOST_WIDE_INT", "bitpos", ",", "assign_data_t", "*", "data", ",", "int", "*", "pnregs", ")", "{", "if", "(", "data", "->", "intoffset", "<", "0", ")", "return", "false", ";", "const", "int", "intoffset", "=", "data", "->", "intoffset", ";", "data", "->", "intoffset", "=", "-", "1", ";", "const", "int", "this_slotno", "=", "data", "->", "slotno", "+", "intoffset", "/", "BITS_PER_WORD", ";", "const", "unsigned", "int", "startbit", "=", "ROUND_DOWN", "(", "intoffset", ",", "BITS_PER_WORD", ")", ";", "const", "unsigned", "int", "endbit", "=", "ROUND_UP", "(", "bitpos", ",", "BITS_PER_WORD", ")", ";", "int", "nregs", "=", "(", "endbit", "-", "startbit", ")", "/", "BITS_PER_WORD", ";", "if", "(", "nregs", ">", "0", "&&", "nregs", ">", "SPARC_INT_ARG_MAX", "-", "this_slotno", ")", "{", "nregs", "=", "SPARC_INT_ARG_MAX", "-", "this_slotno", ";", "data", "->", "stack", "=", "1", ";", "}", "if", "(", "nregs", "<=", "0", ")", "return", "false", ";", "*", "pnregs", "=", "nregs", ";", "return", "true", ";", "}", ""], "natrual_language": ["A", "subroutine", "of", "function_arg_record_value", ".", "Compute", "the", "number", "of", "integer", "registers", "to", "be", "assigned", "between", "PARMS-", ">", "intoffset", "and", "BITPOS", ".", "Return", "true", "if", "at", "least", "one", "integer", "register", "is", "assigned", "or", "false", "otherwise", "."], "TS_V_token": ["sparc", "0", "1", "0", "1", "0"], "File": "sparc5", "Func": "compute_int_layout", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1600, "Length": 133, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMTargetLowering", "::", "getRegisterByName", "(", "const", "char", "*", "RegName", ")", "const", "{", "unsigned", "Reg", "=", "StringSwitch", "<", "unsigned", ">", "(", "RegName", ")", ".", "Case", "(", "\"sp\"", ",", "ARM", "::", "SP", ")", ".", "Default", "(", "0", ")", ";", "if", "(", "Reg", ")", "return", "Reg", ";", "report_fatal_error", "(", "\"Invalid register name global variable\"", ")", ";", "}", ""], "natrual_language": ["Return", "the", "register", "ID", "of", "the", "name", "passed", "in", "."], "TS_V_token": ["ARM", "ARM", "\"sp\"", "ARM::SP", "0", "\"Invalid register name global variable\""], "File": "ARMISelLowering121", "Func": "getRegisterByName", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1601, "Length": 50, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_cannot_force_const_mem", "(", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "rtx", "x", ")", "{", "if", "(", "GET_CODE", "(", "x", ")", "==", "HIGH", "&&", "GET_CODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", "==", "UNSPEC", ")", "return", "true", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "CONST", "&&", "GET_CODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", "==", "PLUS", "&&", "GET_CODE", "(", "XEXP", "(", "XEXP", "(", "x", ",", "0", ")", ",", "0", ")", ")", "==", "SYMBOL_REF", "&&", "SYMBOL_REF_TLS_MODEL", "(", "XEXP", "(", "XEXP", "(", "x", ",", "0", ")", ",", "0", ")", ")", "!=", "0", ")", "return", "true", ";", "return", "TARGET_ELF", "&&", "tls_referenced_p", "(", "x", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_CANNOT_FORCE_CONST_MEM", "."], "TS_V_token": ["powerpcspe", "0", "0", "0", "0", "0", "0", "0"], "File": "powerpcspe", "Func": "rs6000_cannot_force_const_mem", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1602, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "function_builder", "::", "add_overloaded_function", "(", "const", "function_instance", "&", "instance", ",", "uint64_t", "required_extensions", ")", "{", "char", "*", "name", "=", "get_name", "(", "instance", ",", "true", ")", ";", "if", "(", "registered_function", "*", "*", "map_value", "=", "m_overload_names", ".", "get", "(", "name", ")", ")", "gcc_assert", "(", "(", "*", "map_value", ")", "->", "instance", "==", "instance", "&&", "(", "(", "*", "map_value", ")", "->", "required_extensions", "&", "~", "required_extensions", ")", "==", "0", ")", ";", "else", "{", "registered_function", "&", "rfn", "=", "add_function", "(", "instance", ",", "name", ",", "m_overload_type", ",", "NULL_TREE", ",", "required_extensions", ",", "true", ")", ";", "const", "char", "*", "permanent_name", "=", "IDENTIFIER_POINTER", "(", "DECL_NAME", "(", "rfn", ".", "decl", ")", ")", ";", "m_overload_names", ".", "put", "(", "permanent_name", ",", "&", "rfn", ")", ";", "}", "obstack_free", "(", "&", "m_string_obstack", ",", "name", ")", ";", "}", ""], "natrual_language": ["Add", "one", "function", "decl", "for", "INSTANCE", ",", "to", "be", "used", "with", "manual", "overload", "resolution", ".", "REQUIRED_EXTENSIONS", "are", "the", "set", "of", "architecture", "extensions", "that", "the", "function", "requires", ".", "For", "simplicity", ",", "deal", "with", "duplicate", "attempts", "to", "add", "the", "same", "function", ",", "including", "cases", "in", "which", "the", "new", "function", "requires", "more", "features", "than", "the", "original", "one", "did", ".", "In", "that", "case", "we", "'ll", "check", "whether", "the", "required", "features", "are", "available", "as", "part", "of", "resolving", "the", "function", "to", "the", "relevant", "unique", "function", "."], "TS_V_token": ["aarch64", "0"], "File": "aarch64-sve-builtins", "Func": "add_overloaded_function", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1603, "Length": 121, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "setPreservesAll", "(", ")", ";", "AU", ".", "addRequired", "<", "MachineLoopInfo", ">", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["X86"], "File": "X86PreTileConfig", "Func": "getAnalysisUsage", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1604, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "ix86_vectorize_builtin_scatter", "(", "const_tree", "vectype", ",", "const_tree", "index_type", ",", "int", "scale", ")", "{", "bool", "si", ";", "enum", "ix86_builtins", "code", ";", "if", "(", "!", "TARGET_AVX512F", ")", "return", "NULL_TREE", ";", "if", "(", "(", "TREE_CODE", "(", "index_type", ")", "!=", "INTEGER_TYPE", "&&", "!", "POINTER_TYPE_P", "(", "index_type", ")", ")", "||", "(", "TYPE_MODE", "(", "index_type", ")", "!=", "SImode", "&&", "TYPE_MODE", "(", "index_type", ")", "!=", "DImode", ")", ")", "return", "NULL_TREE", ";", "if", "(", "TYPE_PRECISION", "(", "index_type", ")", ">", "POINTER_SIZE", ")", "return", "NULL_TREE", ";", "if", "(", "TYPE_PRECISION", "(", "index_type", ")", "<", "POINTER_SIZE", "&&", "TYPE_UNSIGNED", "(", "index_type", ")", ")", "return", "NULL_TREE", ";", "if", "(", "scale", "<=", "0", "||", "scale", ">", "8", "||", "(", "scale", "&", "(", "scale", "-", "1", ")", ")", "!=", "0", ")", "return", "NULL_TREE", ";", "si", "=", "TYPE_MODE", "(", "index_type", ")", "==", "SImode", ";", "switch", "(", "TYPE_MODE", "(", "vectype", ")", ")", "{", "case", "E_V8DFmode", ":", "code", "=", "si", "?", "IX86_BUILTIN_SCATTERALTSIV8DF", ":", "IX86_BUILTIN_SCATTERDIV8DF", ";", "break", ";", "case", "E_V8DImode", ":", "code", "=", "si", "?", "IX86_BUILTIN_SCATTERALTSIV8DI", ":", "IX86_BUILTIN_SCATTERDIV8DI", ";", "break", ";", "case", "E_V16SFmode", ":", "code", "=", "si", "?", "IX86_BUILTIN_SCATTERSIV16SF", ":", "IX86_BUILTIN_SCATTERALTDIV16SF", ";", "break", ";", "case", "E_V16SImode", ":", "code", "=", "si", "?", "IX86_BUILTIN_SCATTERSIV16SI", ":", "IX86_BUILTIN_SCATTERALTDIV16SI", ";", "break", ";", "default", ":", "return", "NULL_TREE", ";", "}", "return", "ix86_builtins", "[", "code", "]", ";", "}", ""], "natrual_language": ["Returns", "a", "decl", "of", "a", "function", "that", "implements", "scatter", "store", "with", "register", "type", "VECTYPE", "and", "index", "type", "INDEX_TYPE", "and", "SCALE", ".", "Return", "NULL_TREE", "if", "it", "is", "not", "available", "."], "TS_V_token": ["i386", "0", "8", "1", "0"], "File": "i3867", "Func": "ix86_vectorize_builtin_scatter", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1605, "Length": 201, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "setPreservesCFG", "(", ")", ";", "AU", ".", "addRequired", "<", "MachineDominatorTree", ">", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["ARM64"], "File": "ARM64CleanupLocalDynamicTLSPass1", "Func": "getAnalysisUsage", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1606, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "enum", "tls_model", "tls_symbolic_operand_type", "(", "rtx", "addr", ")", "{", "enum", "tls_model", "tls_kind", "=", "TLS_MODEL_NONE", ";", "poly_int64", "offset", ";", "addr", "=", "strip_offset_and_salt", "(", "addr", ",", "&", "offset", ")", ";", "if", "(", "SYMBOL_REF_P", "(", "addr", ")", ")", "tls_kind", "=", "SYMBOL_REF_TLS_MODEL", "(", "addr", ")", ";", "return", "tls_kind", ";", "}", ""], "natrual_language": ["Return", "the", "TLS", "model", "to", "use", "for", "SYMBOL", "."], "TS_V_token": ["aarch64"], "File": "aarch641", "Func": "tls_symbolic_operand_type", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1607, "Length": 46, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86AsmPrinter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "SetupMachineFunction", "(", "MF", ")", ";", "if", "(", "Subtarget", "->", "isTargetCOFF", "(", ")", ")", "{", "const", "Function", "*", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "O", "<<", "\"\\t.def\\t \"", "<<", "*", "CurrentFnSym", "<<", "\";\\t.scl\\t\"", "<<", "(", "F", "->", "hasInternalLinkage", "(", ")", "?", "COFF", "::", "C_STAT", ":", "COFF", "::", "C_EXT", ")", "<<", "\";\\t.type\\t\"", "<<", "(", "COFF", "::", "DT_FCN", "<<", "COFF", "::", "N_BTSHFT", ")", "<<", "\";\\t.endef\\n\"", ";", "}", "EmitFunctionHeader", "(", ")", ";", "EmitFunctionBody", "(", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "\"\\t.def\\t \"", "\";\\t.scl\\t\"", "\";\\t.type\\t\"", "\";\\t.endef\\n\""], "File": "X86AsmPrinter58", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1608, "Length": 87, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "AArch64TTIImpl", "::", "getIntImmCost", "(", "Intrinsic", "::", "ID", "IID", ",", "unsigned", "Idx", ",", "const", "APInt", "&", "Imm", ",", "Type", "*", "Ty", ")", "{", "assert", "(", "Ty", "->", "isIntegerTy", "(", ")", ")", ";", "unsigned", "BitSize", "=", "Ty", "->", "getPrimitiveSizeInBits", "(", ")", ";", "if", "(", "BitSize", "==", "0", ")", "return", "TTI", "::", "TCC_Free", ";", "switch", "(", "IID", ")", "{", "default", ":", "return", "TTI", "::", "TCC_Free", ";", "case", "Intrinsic", "::", "sadd_with_overflow", ":", "case", "Intrinsic", "::", "uadd_with_overflow", ":", "case", "Intrinsic", "::", "ssub_with_overflow", ":", "case", "Intrinsic", "::", "usub_with_overflow", ":", "case", "Intrinsic", "::", "smul_with_overflow", ":", "case", "Intrinsic", "::", "umul_with_overflow", ":", "if", "(", "Idx", "==", "1", ")", "{", "unsigned", "NumConstants", "=", "(", "BitSize", "+", "63", ")", "/", "64", ";", "unsigned", "Cost", "=", "AArch64TTIImpl", "::", "getIntImmCost", "(", "Imm", ",", "Ty", ")", ";", "return", "(", "Cost", "<=", "NumConstants", "*", "TTI", "::", "TCC_Basic", ")", "?", "static_cast", "<", "unsigned", ">", "(", "TTI", "::", "TCC_Free", ")", ":", "Cost", ";", "}", "break", ";", "case", "Intrinsic", "::", "experimental_stackmap", ":", "if", "(", "(", "Idx", "<", "2", ")", "||", "(", "Imm", ".", "getBitWidth", "(", ")", "<=", "64", "&&", "isInt", "<", "64", ">", "(", "Imm", ".", "getSExtValue", "(", ")", ")", ")", ")", "return", "TTI", "::", "TCC_Free", ";", "break", ";", "case", "Intrinsic", "::", "experimental_patchpoint_void", ":", "case", "Intrinsic", "::", "experimental_patchpoint_i64", ":", "if", "(", "(", "Idx", "<", "4", ")", "||", "(", "Imm", ".", "getBitWidth", "(", ")", "<=", "64", "&&", "isInt", "<", "64", ">", "(", "Imm", ".", "getSExtValue", "(", ")", ")", ")", ")", "return", "TTI", "::", "TCC_Free", ";", "break", ";", "}", "return", "AArch64TTIImpl", "::", "getIntImmCost", "(", "Imm", ",", "Ty", ")", ";", "}", ""], "natrual_language": ["Calculate", "the", "cost", "of", "materializing", "a", "64-bit", "value", "."], "TS_V_token": ["AArch64", "AArch64", "Intrinsic::ID", "0", "Intrinsic::sadd_with_overflow", "Intrinsic::uadd_with_overflow", "Intrinsic::ssub_with_overflow", "Intrinsic::usub_with_overflow", "Intrinsic::smul_with_overflow", "Intrinsic::umul_with_overflow", "1", "63", "64", "AArch64", "Intrinsic::experimental_stackmap", "2", "64", "64", "Intrinsic::experimental_patchpoint_void", "Intrinsic::experimental_patchpoint_i64", "4", "64", "64", "AArch64"], "File": "AArch64TargetTransformInfo32", "Func": "getIntImmCost", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1609, "Length": 251, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86TargetLowering", "::", "getByValTypeAlignment", "(", "Type", "*", "Ty", ",", "const", "DataLayout", "&", "DL", ")", "const", "{", "if", "(", "Subtarget", ".", "is64Bit", "(", ")", ")", "{", "Align", "TyAlign", "=", "DL", ".", "getABITypeAlign", "(", "Ty", ")", ";", "if", "(", "TyAlign", ">", "8", ")", "return", "TyAlign", ".", "value", "(", ")", ";", "return", "8", ";", "}", "Align", "Alignment", "(", "4", ")", ";", "if", "(", "Subtarget", ".", "hasSSE1", "(", ")", ")", "getMaxByValAlign", "(", "Ty", ",", "Alignment", ")", ";", "return", "Alignment", ".", "value", "(", ")", ";", "}", ""], "natrual_language": ["Return", "the", "desired", "alignment", "for", "ByVal", "aggregate", "function", "arguments", "in", "the", "caller", "parameter", "area", "."], "TS_V_token": ["X86", "X86", "8", "8", "4"], "File": "X86ISelLowering101", "Func": "getByValTypeAlignment", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1610, "Length": 81, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"X86 Encode Literals\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["X86", "\"X86 Encode Literals\""], "File": "X86EncodeLiterals", "Func": "getPassName", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1611, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDNode", "*", "SparcDAGToDAGISel", "::", "getGlobalBaseReg", "(", ")", "{", "unsigned", "GlobalBaseReg", "=", "Subtarget", "->", "getInstrInfo", "(", ")", "->", "getGlobalBaseReg", "(", "MF", ")", ";", "return", "CurDAG", "->", "getRegister", "(", "GlobalBaseReg", ",", "TLI", "->", "getPointerTy", "(", ")", ")", ".", "getNode", "(", ")", ";", "}", ""], "natrual_language": ["getGlobalBaseReg", "-", "Return", "a", "virtual", "register", "initialized", "with", "the", "the", "global", "base", "register", "value", "."], "TS_V_token": ["Sparc", "Sparc"], "File": "SparcISelDAGToDAG10", "Func": "getGlobalBaseReg", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1612, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "build_mask64_2_operands", "(", "rtx", "in", ",", "rtx", "*", "out", ")", "{", "unsigned", "HOST_WIDE_INT", "c", ",", "lsb", ",", "m1", ",", "m2", ";", "int", "shift", ";", "gcc_assert", "(", "GET_CODE", "(", "in", ")", "==", "CONST_INT", ")", ";", "c", "=", "INTVAL", "(", "in", ")", ";", "if", "(", "c", "&", "1", ")", "{", "c", "=", "~", "c", ";", "lsb", "=", "c", "&", "-", "c", ";", "m1", "=", "-", "lsb", ";", "c", "=", "~", "c", ";", "c", "&=", "-", "lsb", ";", "lsb", "=", "c", "&", "-", "c", ";", "c", "=", "~", "c", ";", "c", "&=", "-", "lsb", ";", "shift", "=", "0", ";", "while", "(", "(", "lsb", ">>=", "1", ")", "!=", "0", ")", "shift", "++", ";", "m1", "<<=", "64", "-", "shift", ";", "m1", "=", "~", "m1", ";", "m2", "=", "~", "c", ";", "}", "else", "{", "lsb", "=", "c", "&", "-", "c", ";", "m2", "=", "-", "lsb", ";", "c", "=", "~", "c", ";", "c", "&=", "-", "lsb", ";", "lsb", "=", "c", "&", "-", "c", ";", "c", "=", "~", "c", ";", "c", "&=", "-", "lsb", ";", "shift", "=", "0", ";", "while", "(", "(", "lsb", ">>=", "1", ")", "!=", "0", ")", "shift", "++", ";", "m1", "=", "~", "c", ";", "m1", ">>=", "shift", ";", "m1", "=", "~", "m1", ";", "}", "out", "[", "0", "]", "=", "GEN_INT", "(", "64", "-", "shift", ")", ";", "out", "[", "1", "]", "=", "GEN_INT", "(", "m1", ")", ";", "out", "[", "2", "]", "=", "GEN_INT", "(", "shift", ")", ";", "out", "[", "3", "]", "=", "GEN_INT", "(", "m2", ")", ";", "(", "void", ")", "in", ";", "(", "void", ")", "out", ";", "gcc_unreachable", "(", ")", ";", "}", ""], "natrual_language": ["Generates", "shifts", "and", "masks", "for", "a", "pair", "of", "rldicl", "or", "rldicr", "insns", "to", "implement", "ANDing", "by", "the", "mask", "IN", "."], "TS_V_token": ["rs6000", "1", "0", "1", "0", "64", "0", "1", "0", "0", "64", "1", "2", "3"], "File": "rs60003", "Func": "build_mask64_2_operands", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1613, "Length": 256, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86RegisterInfo", "::", "hasReservedSpillSlot", "(", "const", "MachineFunction", "&", "MF", ",", "unsigned", "Reg", ",", "int", "&", "FrameIdx", ")", "const", "{", "if", "(", "Reg", "==", "FramePtr", "&&", "hasFP", "(", "MF", ")", ")", "{", "FrameIdx", "=", "MF", ".", "getFrameInfo", "(", ")", "->", "getObjectIndexBegin", "(", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "target", "has", "reserved", "a", "spill", "slot", "in", "the", "stack", "frame", "of", "the", "given", "function", "for", "the", "specified", "register", "."], "TS_V_token": ["X86", "X86"], "File": "X86RegisterInfo31", "Func": "hasReservedSpillSlot", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1614, "Length": 51, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TTIImpl", "::", "isLegalMaskedStore", "(", "Type", "*", "DataType", ",", "MaybeAlign", "Alignment", ")", "{", "return", "isLegalMaskedLoad", "(", "DataType", ",", "Alignment", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "supports", "masked", "store", "."], "TS_V_token": ["X86", "X86"], "File": "X86TargetTransformInfo100", "Func": "isLegalMaskedStore", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1615, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDNode", "*", "DCPU16DAGToDAGISel", "::", "Select", "(", "SDNode", "*", "Node", ")", "{", "DebugLoc", "dl", "=", "Node", "->", "getDebugLoc", "(", ")", ";", "DEBUG", "(", "errs", "(", ")", "<<", "\"Selecting: \"", ")", ";", "DEBUG", "(", "Node", "->", "dump", "(", "CurDAG", ")", ")", ";", "DEBUG", "(", "errs", "(", ")", "<<", "\"\\n\"", ")", ";", "if", "(", "Node", "->", "isMachineOpcode", "(", ")", ")", "{", "DEBUG", "(", "errs", "(", ")", "<<", "\"== \"", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "errs", "(", ")", "<<", "\"\\n\"", ")", ";", "return", "NULL", ";", "}", "switch", "(", "Node", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "FrameIndex", ":", "{", "assert", "(", "Node", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i16", ")", ";", "int", "FI", "=", "cast", "<", "FrameIndexSDNode", ">", "(", "Node", ")", "->", "getIndex", "(", ")", ";", "SDValue", "TFI", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FI", ",", "MVT", "::", "i16", ")", ";", "if", "(", "Node", "->", "hasOneUse", "(", ")", ")", "return", "CurDAG", "->", "SelectNodeTo", "(", "Node", ",", "DCPU16", "::", "ADD16ri", ",", "MVT", "::", "i16", ",", "TFI", ",", "CurDAG", "->", "getTargetConstant", "(", "0", ",", "MVT", "::", "i16", ")", ")", ";", "return", "CurDAG", "->", "getMachineNode", "(", "DCPU16", "::", "ADD16ri", ",", "dl", ",", "MVT", "::", "i16", ",", "TFI", ",", "CurDAG", "->", "getTargetConstant", "(", "0", ",", "MVT", "::", "i16", ")", ")", ";", "}", "}", "SDNode", "*", "ResNode", "=", "SelectCode", "(", "Node", ")", ";", "DEBUG", "(", "errs", "(", ")", "<<", "\"=> \"", ")", ";", "if", "(", "ResNode", "==", "NULL", "||", "ResNode", "==", "Node", ")", "DEBUG", "(", "Node", "->", "dump", "(", "CurDAG", ")", ")", ";", "else", "DEBUG", "(", "ResNode", "->", "dump", "(", "CurDAG", ")", ")", ";", "DEBUG", "(", "errs", "(", ")", "<<", "\"\\n\"", ")", ";", "return", "ResNode", ";", "}", ""], "natrual_language": ["Main", "hook", "for", "targets", "to", "transform", "nodes", "into", "machine", "nodes", "."], "TS_V_token": ["Dcpu16", "DCPU16", "\"Selecting: \"", "\"\\n\"", "\"== \"", "\"\\n\"", "ISD::FrameIndex", "0", "MVT::i16", "MVT::i16", "DCPU16::ADD16ri", "MVT::i16", "0", "MVT::i16", "DCPU16::ADD16ri", "MVT::i16", "0", "MVT::i16", "\"=> \"", "\"\\n\""], "File": "Dcpu16ISelDAGToDAG", "Func": "Select", "Target": "Dcpu16", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1616, "Length": 275, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "iq2000_annotate_frame_insn", "(", "rtx", "insn", ",", "rtx", "dwarf_pattern", ")", "{", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "REG_NOTES", "(", "insn", ")", "=", "alloc_EXPR_LIST", "(", "REG_FRAME_RELATED_EXPR", ",", "dwarf_pattern", ",", "REG_NOTES", "(", "insn", ")", ")", ";", "}", ""], "natrual_language": ["Make", "INSN", "frame", "related", "and", "note", "that", "it", "performs", "the", "frame-related", "operation", "DWARF_PATTERN", "."], "TS_V_token": ["iq2000", "1"], "File": "iq20002", "Func": "iq2000_annotate_frame_insn", "Target": "iq2000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1617, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCSymbol", "*", "LanaiMCInstLower", "::", "GetBlockAddressSymbol", "(", "const", "MachineOperand", "&", "MO", ")", "const", "{", "return", "Printer", ".", "GetBlockAddressSymbol", "(", "MO", ".", "getBlockAddress", "(", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "MCSymbol", "used", "to", "satisfy", "BlockAddress", "uses", "of", "the", "specified", "basic", "block", "."], "TS_V_token": ["Lanai", "Lanai"], "File": "LanaiMCInstLower", "Func": "GetBlockAddressSymbol", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1618, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86InstrInfo", "::", "getMachineCombinerPatterns", "(", "MachineInstr", "&", "Root", ",", "SmallVectorImpl", "<", "MachineCombinerPattern", "::", "MC_PATTERN", ">", "&", "Patterns", ")", "const", "{", "if", "(", "!", "Root", ".", "getParent", "(", ")", "->", "getParent", "(", ")", "->", "getTarget", "(", ")", ".", "Options", ".", "UnsafeFPMath", ")", "return", "false", ";", "bool", "Commute", ";", "if", "(", "isReassocCandidate", "(", "Root", ",", "Commute", ")", ")", "{", "if", "(", "Commute", ")", "{", "Patterns", ".", "push_back", "(", "MachineCombinerPattern", "::", "MC_REASSOC_AX_YB", ")", ";", "Patterns", ".", "push_back", "(", "MachineCombinerPattern", "::", "MC_REASSOC_XA_YB", ")", ";", "}", "else", "{", "Patterns", ".", "push_back", "(", "MachineCombinerPattern", "::", "MC_REASSOC_AX_BY", ")", ";", "Patterns", ".", "push_back", "(", "MachineCombinerPattern", "::", "MC_REASSOC_XA_BY", ")", ";", "}", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "when", "there", "is", "potentially", "a", "faster", "code", "sequence", "for", "an", "instruction", "chain", "ending", "in", "Root", "."], "TS_V_token": ["X86", "X86"], "File": "X86InstrInfo111", "Func": "getMachineCombinerPatterns", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1619, "Length": 110, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "LanaiRegisterInfo", "*", "getRegisterInfo", "(", ")", "const", "override", "{", "return", "&", "InstrInfo", ".", "getRegisterInfo", "(", ")", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["Lanai", "Lanai"], "File": "LanaiSubtarget", "Func": "getRegisterInfo", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1620, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "opt_scalar_float_mode", "rs6000_floatn_mode", "(", "int", "n", ",", "bool", "extended", ")", "{", "if", "(", "extended", ")", "{", "switch", "(", "n", ")", "{", "case", "32", ":", "return", "DFmode", ";", "case", "64", ":", "if", "(", "TARGET_FLOAT128_KEYWORD", ")", "return", "(", "FLOAT128_IEEE_P", "(", "TFmode", ")", ")", "?", "TFmode", ":", "KFmode", ";", "else", "return", "opt_scalar_float_mode", "(", ")", ";", "case", "128", ":", "return", "opt_scalar_float_mode", "(", ")", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "else", "{", "switch", "(", "n", ")", "{", "case", "32", ":", "return", "SFmode", ";", "case", "64", ":", "return", "DFmode", ";", "case", "128", ":", "if", "(", "TARGET_FLOAT128_KEYWORD", ")", "return", "(", "FLOAT128_IEEE_P", "(", "TFmode", ")", ")", "?", "TFmode", ":", "KFmode", ";", "else", "return", "opt_scalar_float_mode", "(", ")", ";", "default", ":", "return", "opt_scalar_float_mode", "(", ")", ";", "}", "}", "}", ""], "natrual_language": ["Target", "hook", "for", "floatn_mode", "."], "TS_V_token": ["powerpcspe", "32", "64", "128", "32", "64", "128"], "File": "powerpcspe", "Func": "rs6000_floatn_mode", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1621, "Length": 122, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "sh_loop_align", "(", "rtx_insn", "*", "label", ")", "{", "rtx_insn", "*", "next", "=", "label", ";", "if", "(", "!", "optimize", "||", "optimize_size", ")", "return", "0", ";", "do", "next", "=", "next_nonnote_insn", "(", "next", ")", ";", "while", "(", "next", "&&", "LABEL_P", "(", "next", ")", ")", ";", "if", "(", "!", "next", "||", "!", "INSN_P", "(", "next", ")", "||", "recog_memoized", "(", "next", ")", "==", "CODE_FOR_consttable_2", ")", "return", "0", ";", "return", "align_loops", ".", "levels", "[", "0", "]", ".", "log", ";", "}", ""], "natrual_language": ["If", "we", "are", "inside", "a", "phony", "loop", ",", "almost", "any", "kind", "of", "label", "can", "turn", "up", "as", "the", "first", "one", "in", "the", "loop", ".", "Aligning", "a", "braf", "label", "causes", "incorrect", "switch", "destination", "addresses", ";", "we", "can", "detect", "braf", "labels", "because", "they", "are", "followed", "by", "a", "BARRIER", ".", "Applying", "loop", "alignment", "to", "small", "constant", "or", "switch", "tables", "is", "a", "waste", "of", "space", ",", "so", "we", "suppress", "this", "too", "."], "TS_V_token": ["sh", "0", "0", "0"], "File": "sh", "Func": "sh_loop_align", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1622, "Length": 74, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "WidenVector", "(", "SelectionDAG", "&", "DAG", ")", ":", "DAG", "(", "DAG", ")", "{", "}", ""], "natrual_language": ["Widen", "the", "vector", "up", "to", "the", "next", "power", "of", "two", "using", "INSERT_SUBVECTOR", "."], "TS_V_token": ["ARM64"], "File": "ARM64ISelDAGToDAG", "Func": "WidenVector", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1623, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMBaseInstrInfo", "::", "mergeOutliningCandidateAttributes", "(", "Function", "&", "F", ",", "std", "::", "vector", "<", "outliner", "::", "Candidate", ">", "&", "Candidates", ")", "const", "{", "outliner", "::", "Candidate", "&", "C", "=", "Candidates", ".", "front", "(", ")", ";", "const", "Function", "&", "CFn", "=", "C", ".", "getMF", "(", ")", "->", "getFunction", "(", ")", ";", "if", "(", "CFn", ".", "hasFnAttribute", "(", "\"branch-target-enforcement\"", ")", ")", "F", ".", "addFnAttr", "(", "CFn", ".", "getFnAttribute", "(", "\"branch-target-enforcement\"", ")", ")", ";", "ARMGenInstrInfo", "::", "mergeOutliningCandidateAttributes", "(", "F", ",", "Candidates", ")", ";", "}", ""], "natrual_language": ["Optional", "target", "hook", "to", "create", "the", "LLVM", "IR", "attributes", "for", "the", "outlined", "function", "."], "TS_V_token": ["ARM", "ARM", "\"branch-target-enforcement\"", "\"branch-target-enforcement\"", "ARM"], "File": "ARMBaseInstrInfo128", "Func": "mergeOutliningCandidateAttributes", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1624, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARM64InstrInfo", "::", "isLoadFromStackSlot", "(", "const", "MachineInstr", "*", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "ARM64", "::", "LDRWui", ":", "case", "ARM64", "::", "LDRXui", ":", "case", "ARM64", "::", "LDRBui", ":", "case", "ARM64", "::", "LDRHui", ":", "case", "ARM64", "::", "LDRSui", ":", "case", "ARM64", "::", "LDRDui", ":", "case", "ARM64", "::", "LDRQui", ":", "if", "(", "MI", "->", "getOperand", "(", "0", ")", ".", "getSubReg", "(", ")", "==", "0", "&&", "MI", "->", "getOperand", "(", "1", ")", ".", "isFI", "(", ")", "&&", "MI", "->", "getOperand", "(", "2", ")", ".", "isImm", "(", ")", "&&", "MI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", "==", "0", ")", "{", "FrameIndex", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getIndex", "(", ")", ";", "return", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "}", "break", ";", "}", "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": ["ARM64", "ARM64", "ARM64::LDRWui", "ARM64::LDRXui", "ARM64::LDRBui", "ARM64::LDRHui", "ARM64::LDRSui", "ARM64::LDRDui", "ARM64::LDRQui", "0", "0", "1", "2", "2", "0", "1", "0", "0"], "File": "ARM64InstrInfo", "Func": "isLoadFromStackSlot", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1625, "Length": 148, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64StorePairSuppress", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "*", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "const", "TargetSubtargetInfo", "&", "ST", "=", "MF", ".", "getSubtarget", "(", ")", ";", "TII", "=", "static_cast", "<", "const", "AArch64InstrInfo", "*", ">", "(", "ST", ".", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "ST", ".", "getRegisterInfo", "(", ")", ";", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "SchedModel", ".", "init", "(", "ST", ".", "getSchedModel", "(", ")", ",", "&", "ST", ",", "TII", ")", ";", "Traces", "=", "&", "getAnalysis", "<", "MachineTraceMetrics", ">", "(", ")", ";", "MinInstr", "=", "nullptr", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"*** \"", "<<", "getPassName", "(", ")", "<<", "\": \"", "<<", "MF", ".", "getName", "(", ")", "<<", "'\\n'", ")", ";", "if", "(", "!", "SchedModel", ".", "hasInstrSchedModel", "(", ")", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\" Skipping pass: no machine model present.\\n\"", ")", ";", "return", "false", ";", "}", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "{", "bool", "SuppressSTP", "=", "false", ";", "unsigned", "PrevBaseReg", "=", "0", ";", "for", "(", "auto", "&", "MI", ":", "MBB", ")", "{", "if", "(", "!", "isNarrowFPStore", "(", "MI", ")", ")", "continue", ";", "unsigned", "BaseReg", ";", "int64_t", "Offset", ";", "if", "(", "TII", "->", "getMemOpBaseRegImmOfs", "(", "MI", ",", "BaseReg", ",", "Offset", ",", "TRI", ")", ")", "{", "if", "(", "PrevBaseReg", "==", "BaseReg", ")", "{", "if", "(", "!", "SuppressSTP", "&&", "shouldAddSTPToBlock", "(", "MI", ".", "getParent", "(", ")", ")", ")", "break", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Unpairing store \"", "<<", "MI", "<<", "\"\\n\"", ")", ";", "SuppressSTP", "=", "true", ";", "TII", "->", "suppressLdStPair", "(", "MI", ")", ";", "}", "PrevBaseReg", "=", "BaseReg", ";", "}", "else", "PrevBaseReg", "=", "0", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "\"*** \"", "\": \"", "\" Skipping pass: no machine model present.\\n\"", "0", "\"Unpairing store \"", "\"\\n\"", "0"], "File": "AArch64StorePairSuppress1", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1626, "Length": 269, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "unique_ptr", "<", "MCObjectWriter", ">", "createObjectWriter", "(", "raw_pwrite_stream", "&", "OS", ")", "const", "override", "{", "return", "createAArch64WinCOFFObjectWriter", "(", "OS", ")", ";", "}", ""], "natrual_language": ["Create", "a", "new", "MCObjectWriter", "instance", "for", "use", "by", "the", "assembler", "backend", "to", "emit", "the", "final", "object", "file", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64AsmBackend32", "Func": "createObjectWriter", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1627, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "tryAddingSymbolicOperand", "(", "int64_t", "Value", ",", "bool", "IsBranch", ",", "uint64_t", "Address", ",", "uint64_t", "Offset", ",", "uint64_t", "Width", ",", "MCInst", "&", "MI", ",", "const", "void", "*", "Decoder", ")", "{", "const", "MCDisassembler", "*", "Dis", "=", "static_cast", "<", "const", "MCDisassembler", "*", ">", "(", "Decoder", ")", ";", "return", "Dis", "->", "tryAddingSymbolicOperand", "(", "MI", ",", "Value", ",", "Address", ",", "IsBranch", ",", "Offset", ",", "Width", ")", ";", "}", ""], "natrual_language": ["Try", "to", "add", "a", "symbolic", "operand", "instead", "of", "Value", "to", "the", "MCInst", "."], "TS_V_token": ["DLX"], "File": "DLXDisassembler", "Func": "tryAddingSymbolicOperand", "Target": "DLX", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1628, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTargetLowering", "::", "getTgtMemIntrinsic", "(", "IntrinsicInfo", "&", "Info", ",", "const", "CallInst", "&", "I", ",", "unsigned", "Intrinsic", ")", "const", "{", "switch", "(", "Intrinsic", ")", "{", "case", "Intrinsic", "::", "ppc_altivec_lvx", ":", "case", "Intrinsic", "::", "ppc_altivec_lvxl", ":", "case", "Intrinsic", "::", "ppc_altivec_lvebx", ":", "case", "Intrinsic", "::", "ppc_altivec_lvehx", ":", "case", "Intrinsic", "::", "ppc_altivec_lvewx", ":", "{", "EVT", "VT", ";", "switch", "(", "Intrinsic", ")", "{", "case", "Intrinsic", "::", "ppc_altivec_lvebx", ":", "VT", "=", "MVT", "::", "i8", ";", "break", ";", "case", "Intrinsic", "::", "ppc_altivec_lvehx", ":", "VT", "=", "MVT", "::", "i16", ";", "break", ";", "case", "Intrinsic", "::", "ppc_altivec_lvewx", ":", "VT", "=", "MVT", "::", "i32", ";", "break", ";", "default", ":", "VT", "=", "MVT", "::", "v4i32", ";", "break", ";", "}", "Info", ".", "opc", "=", "ISD", "::", "INTRINSIC_W_CHAIN", ";", "Info", ".", "memVT", "=", "VT", ";", "Info", ".", "ptrVal", "=", "I", ".", "getArgOperand", "(", "0", ")", ";", "Info", ".", "offset", "=", "-", "VT", ".", "getStoreSize", "(", ")", "+", "1", ";", "Info", ".", "size", "=", "2", "*", "VT", ".", "getStoreSize", "(", ")", "-", "1", ";", "Info", ".", "align", "=", "1", ";", "Info", ".", "vol", "=", "false", ";", "Info", ".", "readMem", "=", "true", ";", "Info", ".", "writeMem", "=", "false", ";", "return", "true", ";", "}", "case", "Intrinsic", "::", "ppc_altivec_stvx", ":", "case", "Intrinsic", "::", "ppc_altivec_stvxl", ":", "case", "Intrinsic", "::", "ppc_altivec_stvebx", ":", "case", "Intrinsic", "::", "ppc_altivec_stvehx", ":", "case", "Intrinsic", "::", "ppc_altivec_stvewx", ":", "{", "EVT", "VT", ";", "switch", "(", "Intrinsic", ")", "{", "case", "Intrinsic", "::", "ppc_altivec_stvebx", ":", "VT", "=", "MVT", "::", "i8", ";", "break", ";", "case", "Intrinsic", "::", "ppc_altivec_stvehx", ":", "VT", "=", "MVT", "::", "i16", ";", "break", ";", "case", "Intrinsic", "::", "ppc_altivec_stvewx", ":", "VT", "=", "MVT", "::", "i32", ";", "break", ";", "default", ":", "VT", "=", "MVT", "::", "v4i32", ";", "break", ";", "}", "Info", ".", "opc", "=", "ISD", "::", "INTRINSIC_VOID", ";", "Info", ".", "memVT", "=", "VT", ";", "Info", ".", "ptrVal", "=", "I", ".", "getArgOperand", "(", "1", ")", ";", "Info", ".", "offset", "=", "-", "VT", ".", "getStoreSize", "(", ")", "+", "1", ";", "Info", ".", "size", "=", "2", "*", "VT", ".", "getStoreSize", "(", ")", "-", "1", ";", "Info", ".", "align", "=", "1", ";", "Info", ".", "vol", "=", "false", ";", "Info", ".", "readMem", "=", "false", ";", "Info", ".", "writeMem", "=", "true", ";", "return", "true", ";", "}", "default", ":", "break", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Given", "an", "intrinsic", ",", "checks", "if", "on", "the", "target", "the", "intrinsic", "will", "need", "to", "map", "to", "a", "MemIntrinsicNode", "(", "touches", "memory", ")", "."], "TS_V_token": ["PowerPC", "PPC", "Intrinsic::ppc_altivec_lvx", "Intrinsic::ppc_altivec_lvxl", "Intrinsic::ppc_altivec_lvebx", "Intrinsic::ppc_altivec_lvehx", "Intrinsic::ppc_altivec_lvewx", "Intrinsic::ppc_altivec_lvebx", "MVT::i8", "Intrinsic::ppc_altivec_lvehx", "MVT::i16", "Intrinsic::ppc_altivec_lvewx", "MVT::i32", "MVT::v4i32", "ISD::INTRINSIC_W_CHAIN", "0", "1", "2", "1", "1", "Intrinsic::ppc_altivec_stvx", "Intrinsic::ppc_altivec_stvxl", "Intrinsic::ppc_altivec_stvebx", "Intrinsic::ppc_altivec_stvehx", "Intrinsic::ppc_altivec_stvewx", "Intrinsic::ppc_altivec_stvebx", "MVT::i8", "Intrinsic::ppc_altivec_stvehx", "MVT::i16", "Intrinsic::ppc_altivec_stvewx", "MVT::i32", "MVT::v4i32", "ISD::INTRINSIC_VOID", "1", "1", "2", "1", "1"], "File": "PPCISelLowering148", "Func": "getTgtMemIntrinsic", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1629, "Length": 361, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMAsmPrinter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "MCP", "=", "MF", ".", "getConstantPool", "(", ")", ";", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "SetupMachineFunction", "(", "MF", ")", ";", "if", "(", "Subtarget", "->", "isTargetCOFF", "(", ")", ")", "{", "bool", "Internal", "=", "MF", ".", "getFunction", "(", ")", "->", "hasInternalLinkage", "(", ")", ";", "COFF", "::", "SymbolStorageClass", "Scl", "=", "Internal", "?", "COFF", "::", "IMAGE_SYM_CLASS_STATIC", ":", "COFF", "::", "IMAGE_SYM_CLASS_EXTERNAL", ";", "int", "Type", "=", "COFF", "::", "IMAGE_SYM_DTYPE_FUNCTION", "<<", "COFF", "::", "SCT_COMPLEX_TYPE_SHIFT", ";", "OutStreamer", ".", "BeginCOFFSymbolDef", "(", "CurrentFnSym", ")", ";", "OutStreamer", ".", "EmitCOFFSymbolStorageClass", "(", "Scl", ")", ";", "OutStreamer", ".", "EmitCOFFSymbolType", "(", "Type", ")", ";", "OutStreamer", ".", "EndCOFFSymbolDef", "(", ")", ";", "}", "EmitFunctionBody", "(", ")", ";", "if", "(", "!", "ThumbIndirectPads", ".", "empty", "(", ")", ")", "{", "OutStreamer", ".", "EmitAssemblerFlag", "(", "MCAF_Code16", ")", ";", "EmitAlignment", "(", "1", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "ThumbIndirectPads", ".", "size", "(", ")", ";", "i", "<", "e", ";", "i", "++", ")", "{", "OutStreamer", ".", "EmitLabel", "(", "ThumbIndirectPads", "[", "i", "]", ".", "second", ")", ";", "EmitToStreamer", "(", "OutStreamer", ",", "MCInstBuilder", "(", "ARM", "::", "tBX", ")", ".", "addReg", "(", "ThumbIndirectPads", "[", "i", "]", ".", "first", ")", ".", "addImm", "(", "ARMCC", "::", "AL", ")", ".", "addReg", "(", "0", ")", ")", ";", "}", "ThumbIndirectPads", ".", "clear", "(", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "1", "0", "ARM::tBX", "ARMCC::AL", "0"], "File": "ARMAsmPrinter61", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1630, "Length": 229, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Cpu0SEInstrInfo", "::", "adjustStackPtr", "(", "unsigned", "SP", ",", "int64_t", "Amount", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "DebugLoc", "DL", "=", "I", "!=", "MBB", ".", "end", "(", ")", "?", "I", "->", "getDebugLoc", "(", ")", ":", "DebugLoc", "(", ")", ";", "unsigned", "ADDu", "=", "Cpu0", "::", "ADDu", ";", "unsigned", "ADDiu", "=", "Cpu0", "::", "ADDiu", ";", "if", "(", "isInt", "<", "16", ">", "(", "Amount", ")", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ADDiu", ")", ",", "SP", ")", ".", "addReg", "(", "SP", ")", ".", "addImm", "(", "Amount", ")", ";", "}", "else", "{", "unsigned", "Reg", "=", "loadImmediate", "(", "Amount", ",", "MBB", ",", "I", ",", "DL", ",", "nullptr", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ADDu", ")", ",", "SP", ")", ".", "addReg", "(", "SP", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Kill", ")", ";", "}", "}", ""], "natrual_language": ["Adjust", "SP", "by", "Amount", "bytes", "."], "TS_V_token": ["Cpu0", "Cpu0", "Cpu0::ADDu", "Cpu0::ADDiu", "16"], "File": "Cpu0SEInstrInfo", "Func": "adjustStackPtr", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1631, "Length": 145, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "bounds_check", "(", "rtx", "operand", ",", "HOST_WIDE_INT", "low", ",", "HOST_WIDE_INT", "high", ",", "const", "char", "*", "err", ")", "{", "HOST_WIDE_INT", "lane", ";", "gcc_assert", "(", "CONST_INT_P", "(", "operand", ")", ")", ";", "lane", "=", "INTVAL", "(", "operand", ")", ";", "if", "(", "lane", "<", "low", "||", "lane", ">=", "high", ")", "error", "(", "err", ")", ";", "}", ""], "natrual_language": ["Ensure", "OPERAND", "lies", "between", "LOW", "(", "inclusive", ")", "and", "HIGH", "(", "exclusive", ")", ".", "Raise", "ERR", "if", "it", "does", "n't", ".", "FIXME", ":", "NEON", "bounds", "checks", "occur", "late", "in", "compilation", ",", "so", "reported", "source", "locations", "are", "bogus", "."], "TS_V_token": ["arm"], "File": "arm4", "Func": "bounds_check", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1632, "Length": 53, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ARMSubtarget", "::", "ARMSubtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "ARMBaseTargetMachine", "&", "TM", ",", "bool", "IsLittle", ",", "bool", "MinSize", ")", ":", "ARMGenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "UseMulOps", "(", "UseFusedMulOps", ")", ",", "CPUString", "(", "CPU", ")", ",", "OptMinSize", "(", "MinSize", ")", ",", "IsLittle", "(", "IsLittle", ")", ",", "TargetTriple", "(", "TT", ")", ",", "Options", "(", "TM", ".", "Options", ")", ",", "TM", "(", "TM", ")", ",", "FrameLowering", "(", "initializeFrameLowering", "(", "CPU", ",", "FS", ")", ")", ",", "InstrInfo", "(", "isThumb1Only", "(", ")", "?", "(", "ARMBaseInstrInfo", "*", ")", "new", "Thumb1InstrInfo", "(", "*", "this", ")", ":", "!", "isThumb", "(", ")", "?", "(", "ARMBaseInstrInfo", "*", ")", "new", "ARMInstrInfo", "(", "*", "this", ")", ":", "(", "ARMBaseInstrInfo", "*", ")", "new", "Thumb2InstrInfo", "(", "*", "this", ")", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{", "CallLoweringInfo", ".", "reset", "(", "new", "ARMCallLowering", "(", "*", "getTargetLowering", "(", ")", ")", ")", ";", "Legalizer", ".", "reset", "(", "new", "ARMLegalizerInfo", "(", "*", "this", ")", ")", ";", "auto", "*", "RBI", "=", "new", "ARMRegisterBankInfo", "(", "*", "getRegisterInfo", "(", ")", ")", ";", "InstSelector", ".", "reset", "(", "createARMInstructionSelector", "(", "*", "static_cast", "<", "const", "ARMBaseTargetMachine", "*", ">", "(", "&", "TM", ")", ",", "*", "this", ",", "*", "RBI", ")", ")", ";", "RegBankInfo", ".", "reset", "(", "RBI", ")", ";", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM"], "File": "ARMSubtarget14", "Func": "ARMSubtarget", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1633, "Length": 217, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCRegisterInfo", "::", "getRegPressureLimit", "(", "const", "TargetRegisterClass", "*", "RC", ",", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "const", "unsigned", "DefaultSafety", "=", "1", ";", "switch", "(", "RC", "->", "getID", "(", ")", ")", "{", "default", ":", "return", "0", ";", "case", "PPC", "::", "G8RC_NOX0RegClassID", ":", "case", "PPC", "::", "GPRC_NOR0RegClassID", ":", "case", "PPC", "::", "G8RCRegClassID", ":", "case", "PPC", "::", "GPRCRegClassID", ":", "{", "unsigned", "FP", "=", "TFI", "->", "hasFP", "(", "MF", ")", "?", "1", ":", "0", ";", "return", "32", "-", "FP", "-", "DefaultSafety", ";", "}", "case", "PPC", "::", "F8RCRegClassID", ":", "case", "PPC", "::", "F4RCRegClassID", ":", "case", "PPC", "::", "VRRCRegClassID", ":", "case", "PPC", "::", "VFRCRegClassID", ":", "case", "PPC", "::", "VSLRCRegClassID", ":", "case", "PPC", "::", "VSHRCRegClassID", ":", "return", "32", "-", "DefaultSafety", ";", "case", "PPC", "::", "VSRCRegClassID", ":", "case", "PPC", "::", "VSFRCRegClassID", ":", "return", "64", "-", "DefaultSafety", ";", "case", "PPC", "::", "CRRCRegClassID", ":", "return", "8", "-", "DefaultSafety", ";", "}", "}", ""], "natrual_language": ["Return", "the", "register", "pressure", "``", "high", "water", "mark", "''", "for", "the", "specific", "register", "class", "."], "TS_V_token": ["PowerPC", "PPC", "1", "0", "PPC::G8RC_NOX0RegClassID", "PPC::GPRC_NOR0RegClassID", "PPC::G8RCRegClassID", "PPC::GPRCRegClassID", "1", "0", "32", "PPC::F8RCRegClassID", "PPC::F4RCRegClassID", "PPC::VRRCRegClassID", "PPC::VFRCRegClassID", "PPC::VSLRCRegClassID", "PPC::VSHRCRegClassID", "32", "PPC::VSRCRegClassID", "PPC::VSFRCRegClassID", "64", "PPC::CRRCRegClassID", "8"], "File": "PPCRegisterInfo", "Func": "getRegPressureLimit", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1634, "Length": 156, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx_insn", "*", "arm_pic_static_addr", "(", "rtx", "orig", ",", "rtx", "reg", ")", "{", "rtx", "l1", ",", "labelno", ",", "offset_rtx", ";", "gcc_assert", "(", "flag_pic", ")", ";", "labelno", "=", "GEN_INT", "(", "pic_labelno", "++", ")", ";", "l1", "=", "gen_rtx_UNSPEC", "(", "Pmode", ",", "gen_rtvec", "(", "1", ",", "labelno", ")", ",", "UNSPEC_PIC_LABEL", ")", ";", "l1", "=", "gen_rtx_CONST", "(", "VOIDmode", ",", "l1", ")", ";", "offset_rtx", "=", "plus_constant", "(", "Pmode", ",", "l1", ",", "TARGET_ARM", "?", "8", ":", "4", ")", ";", "offset_rtx", "=", "gen_rtx_UNSPEC", "(", "Pmode", ",", "gen_rtvec", "(", "2", ",", "orig", ",", "offset_rtx", ")", ",", "UNSPEC_SYMBOL_OFFSET", ")", ";", "offset_rtx", "=", "gen_rtx_CONST", "(", "Pmode", ",", "offset_rtx", ")", ";", "return", "emit_insn", "(", "gen_pic_load_addr_unified", "(", "reg", ",", "offset_rtx", ",", "labelno", ")", ")", ";", "}", ""], "natrual_language": ["Generate", "code", "to", "load", "the", "address", "of", "a", "static", "var", "when", "flag_pic", "is", "set", "."], "TS_V_token": ["arm", "1", "8", "4", "2"], "File": "arm6", "Func": "arm_pic_static_addr", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1635, "Length": 113, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ix86_expand_copysign", "(", "rtx", "operands", "[", "]", ")", "{", "machine_mode", "mode", ",", "vmode", ";", "rtx", "dest", ",", "vdest", ",", "op0", ",", "op1", ",", "mask", ",", "op2", ",", "op3", ";", "mode", "=", "GET_MODE", "(", "operands", "[", "0", "]", ")", ";", "if", "(", "mode", "==", "HFmode", ")", "vmode", "=", "V8HFmode", ";", "else", "if", "(", "mode", "==", "SFmode", ")", "vmode", "=", "V4SFmode", ";", "else", "if", "(", "mode", "==", "DFmode", ")", "vmode", "=", "V2DFmode", ";", "else", "if", "(", "mode", "==", "TFmode", ")", "vmode", "=", "mode", ";", "else", "gcc_unreachable", "(", ")", ";", "if", "(", "rtx_equal_p", "(", "operands", "[", "1", "]", ",", "operands", "[", "2", "]", ")", ")", "{", "emit_move_insn", "(", "operands", "[", "0", "]", ",", "operands", "[", "1", "]", ")", ";", "return", ";", "}", "dest", "=", "operands", "[", "0", "]", ";", "vdest", "=", "lowpart_subreg", "(", "vmode", ",", "dest", ",", "mode", ")", ";", "if", "(", "vdest", "==", "NULL_RTX", ")", "vdest", "=", "gen_reg_rtx", "(", "vmode", ")", ";", "else", "dest", "=", "NULL_RTX", ";", "op1", "=", "lowpart_subreg", "(", "vmode", ",", "force_reg", "(", "mode", ",", "operands", "[", "2", "]", ")", ",", "mode", ")", ";", "mask", "=", "ix86_build_signbit_mask", "(", "vmode", ",", "0", ",", "0", ")", ";", "if", "(", "CONST_DOUBLE_P", "(", "operands", "[", "1", "]", ")", ")", "{", "op0", "=", "simplify_unary_operation", "(", "ABS", ",", "mode", ",", "operands", "[", "1", "]", ",", "mode", ")", ";", "if", "(", "op0", "==", "CONST0_RTX", "(", "mode", ")", ")", "{", "emit_move_insn", "(", "vdest", ",", "gen_rtx_AND", "(", "vmode", ",", "mask", ",", "op1", ")", ")", ";", "if", "(", "dest", ")", "emit_move_insn", "(", "dest", ",", "lowpart_subreg", "(", "mode", ",", "vdest", ",", "vmode", ")", ")", ";", "return", ";", "}", "if", "(", "GET_MODE_SIZE", "(", "mode", ")", "<", "16", ")", "op0", "=", "ix86_build_const_vector", "(", "vmode", ",", "false", ",", "op0", ")", ";", "op0", "=", "force_reg", "(", "vmode", ",", "op0", ")", ";", "}", "else", "op0", "=", "lowpart_subreg", "(", "vmode", ",", "force_reg", "(", "mode", ",", "operands", "[", "1", "]", ")", ",", "mode", ")", ";", "op2", "=", "gen_reg_rtx", "(", "vmode", ")", ";", "op3", "=", "gen_reg_rtx", "(", "vmode", ")", ";", "emit_move_insn", "(", "op2", ",", "gen_rtx_AND", "(", "vmode", ",", "gen_rtx_NOT", "(", "vmode", ",", "mask", ")", ",", "op0", ")", ")", ";", "emit_move_insn", "(", "op3", ",", "gen_rtx_AND", "(", "vmode", ",", "mask", ",", "op1", ")", ")", ";", "emit_move_insn", "(", "vdest", ",", "gen_rtx_IOR", "(", "vmode", ",", "op2", ",", "op3", ")", ")", ";", "if", "(", "dest", ")", "emit_move_insn", "(", "dest", ",", "lowpart_subreg", "(", "mode", ",", "vdest", ",", "vmode", ")", ")", ";", "}", ""], "natrual_language": ["Expand", "a", "copysign", "operation", ".", "Special", "case", "operand", "0", "being", "a", "constant", "."], "TS_V_token": ["i386", "0", "1", "2", "0", "1", "0", "2", "0", "0", "1", "1", "16", "1"], "File": "i386-expand", "Func": "ix86_expand_copysign", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1636, "Length": 387, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "machine_mode", "rs6000_promote_function_mode", "(", "const_tree", "type", "ATTRIBUTE_UNUSED", ",", "machine_mode", "mode", ",", "int", "*", "punsignedp", "ATTRIBUTE_UNUSED", ",", "const_tree", ",", "int", ")", "{", "PROMOTE_MODE", "(", "mode", ",", "*", "punsignedp", ",", "type", ")", ";", "return", "mode", ";", "}", ""], "natrual_language": ["On", "rs6000", ",", "function", "arguments", "are", "promoted", ",", "as", "are", "function", "return", "values", "."], "TS_V_token": ["powerpcspe"], "File": "powerpcspe", "Func": "rs6000_promote_function_mode", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1637, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getReg", "(", ")", "const", "override", "{", "assert", "(", "Kind", "==", "Register", "&&", "\"Invalid type access!\"", ")", ";", "return", "Reg", ".", "RegNum", ";", "}", ""], "natrual_language": ["Returns", "the", "register", "associated", "with", "this", "edge", "."], "TS_V_token": ["MMIX", "\"Invalid type access!\""], "File": "MMIXAsmParser", "Func": "getReg", "Target": "MMIX", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1638, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsRegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "FrameIndexValue", "*", "Value", ",", "RegScavenger", "*", "RS", ")", "const", "{", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "unsigned", "i", "=", "0", ";", "while", "(", "!", "MI", ".", "getOperand", "(", "i", ")", ".", "isFI", "(", ")", ")", "{", "++", "i", ";", "assert", "(", "i", "<", "MI", ".", "getNumOperands", "(", ")", "&&", "\"Instr doesn't have FrameIndex operand!\"", ")", ";", "}", "DEBUG", "(", "errs", "(", ")", "<<", "\"\\nFunction : \"", "<<", "MF", ".", "getFunction", "(", ")", "->", "getName", "(", ")", "<<", "\"\\n\"", ";", "errs", "(", ")", "<<", "\"<--------->\\n\"", "<<", "MI", ")", ";", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "i", ")", ".", "getIndex", "(", ")", ";", "int", "stackSize", "=", "MF", ".", "getFrameInfo", "(", ")", "->", "getStackSize", "(", ")", ";", "int", "spOffset", "=", "MF", ".", "getFrameInfo", "(", ")", "->", "getObjectOffset", "(", "FrameIndex", ")", ";", "DEBUG", "(", "errs", "(", ")", "<<", "\"FrameIndex : \"", "<<", "FrameIndex", "<<", "\"\\n\"", "<<", "\"spOffset : \"", "<<", "spOffset", "<<", "\"\\n\"", "<<", "\"stackSize : \"", "<<", "stackSize", "<<", "\"\\n\"", ")", ";", "int", "Offset", "=", "(", "(", "spOffset", "<", "0", ")", "?", "(", "stackSize", "+", "(", "-", "(", "spOffset", "+", "4", ")", ")", ")", ":", "(", "spOffset", ")", ")", ";", "Offset", "+=", "MI", ".", "getOperand", "(", "i", "-", "1", ")", ".", "getImm", "(", ")", ";", "DEBUG", "(", "errs", "(", ")", "<<", "\"Offset : \"", "<<", "Offset", "<<", "\"\\n\"", "<<", "\"<--------->\\n\"", ")", ";", "MI", ".", "getOperand", "(", "i", "-", "1", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "getFrameRegister", "(", "MF", ")", ",", "false", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["Mips", "Mips", "0", "\"Instr doesn't have FrameIndex operand!\"", "\"\\nFunction : \"", "\"\\n\"", "\"<--------->\\n\"", "\"FrameIndex : \"", "\"\\n\"", "\"spOffset : \"", "\"\\n\"", "\"stackSize : \"", "\"\\n\"", "0", "4", "1", "\"Offset : \"", "\"\\n\"", "\"<--------->\\n\"", "1", "0"], "File": "MipsRegisterInfo4", "Func": "eliminateFrameIndex", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1639, "Length": 270, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "enum", "aarch64_symbol_type", "aarch64_classify_symbol", "(", "rtx", "x", ",", "HOST_WIDE_INT", "offset", ")", "{", "if", "(", "GET_CODE", "(", "x", ")", "==", "LABEL_REF", ")", "{", "switch", "(", "aarch64_cmodel", ")", "{", "case", "AARCH64_CMODEL_LARGE", ":", "return", "SYMBOL_FORCE_TO_MEM", ";", "case", "AARCH64_CMODEL_TINY_PIC", ":", "case", "AARCH64_CMODEL_TINY", ":", "return", "SYMBOL_TINY_ABSOLUTE", ";", "case", "AARCH64_CMODEL_SMALL_SPIC", ":", "case", "AARCH64_CMODEL_SMALL_PIC", ":", "case", "AARCH64_CMODEL_SMALL", ":", "return", "SYMBOL_SMALL_ABSOLUTE", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "if", "(", "GET_CODE", "(", "x", ")", "==", "SYMBOL_REF", ")", "{", "if", "(", "aarch64_tls_symbol_p", "(", "x", ")", ")", "return", "aarch64_classify_tls_symbol", "(", "x", ")", ";", "switch", "(", "aarch64_cmodel", ")", "{", "case", "AARCH64_CMODEL_TINY", ":", "if", "(", "SYMBOL_REF_WEAK", "(", "x", ")", "&&", "!", "aarch64_symbol_binds_local_p", "(", "x", ")", ")", "return", "SYMBOL_FORCE_TO_MEM", ";", "if", "(", "!", "(", "IN_RANGE", "(", "offset", ",", "-", "0x10000", ",", "0x10000", ")", "||", "offset_within_block_p", "(", "x", ",", "offset", ")", ")", ")", "return", "SYMBOL_FORCE_TO_MEM", ";", "return", "SYMBOL_TINY_ABSOLUTE", ";", "case", "AARCH64_CMODEL_SMALL", ":", "if", "(", "SYMBOL_REF_WEAK", "(", "x", ")", "&&", "!", "aarch64_symbol_binds_local_p", "(", "x", ")", ")", "return", "SYMBOL_FORCE_TO_MEM", ";", "if", "(", "!", "(", "IN_RANGE", "(", "offset", ",", "-", "0x100000", ",", "0x100000", ")", "||", "offset_within_block_p", "(", "x", ",", "offset", ")", ")", ")", "return", "SYMBOL_FORCE_TO_MEM", ";", "return", "SYMBOL_SMALL_ABSOLUTE", ";", "case", "AARCH64_CMODEL_TINY_PIC", ":", "if", "(", "!", "aarch64_symbol_binds_local_p", "(", "x", ")", ")", "return", "SYMBOL_TINY_GOT", ";", "return", "SYMBOL_TINY_ABSOLUTE", ";", "case", "AARCH64_CMODEL_SMALL_SPIC", ":", "case", "AARCH64_CMODEL_SMALL_PIC", ":", "if", "(", "!", "aarch64_symbol_binds_local_p", "(", "x", ")", ")", "return", "(", "aarch64_cmodel", "==", "AARCH64_CMODEL_SMALL_SPIC", "?", "SYMBOL_SMALL_GOT_28K", ":", "SYMBOL_SMALL_GOT_4G", ")", ";", "return", "SYMBOL_SMALL_ABSOLUTE", ";", "case", "AARCH64_CMODEL_LARGE", ":", "if", "(", "!", "aarch64_pcrelative_literal_loads", "&&", "CONSTANT_POOL_ADDRESS_P", "(", "x", ")", ")", "return", "SYMBOL_SMALL_ABSOLUTE", ";", "else", "return", "SYMBOL_FORCE_TO_MEM", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "return", "SYMBOL_FORCE_TO_MEM", ";", "}", ""], "natrual_language": ["Return", "the", "method", "that", "should", "be", "used", "to", "access", "SYMBOL_REF", "or", "LABEL_REF", "X", "."], "TS_V_token": ["aarch64", "0x10000", "0x10000", "0x100000", "0x100000"], "File": "aarch64", "Func": "aarch64_classify_symbol", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1640, "Length": 260, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "*", "ix86_init_cost", "(", "class", "loop", "*", ")", "{", "unsigned", "*", "cost", "=", "XNEWVEC", "(", "unsigned", ",", "3", ")", ";", "cost", "[", "vect_prologue", "]", "=", "cost", "[", "vect_body", "]", "=", "cost", "[", "vect_epilogue", "]", "=", "0", ";", "return", "cost", ";", "}", ""], "natrual_language": ["Implement", "targetm.vectorize.init_cost", "."], "TS_V_token": ["i386", "3", "0"], "File": "i386", "Func": "ix86_init_cost", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1641, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "rs6000_d_handle_target_object_format", "(", "void", ")", "{", "const", "char", "*", "objfmt", "=", "NULL", ";", "if", "(", "TARGET_ELF", ")", "objfmt", "=", "\"elf\"", ";", "else", "if", "(", "TARGET_MACHO", ")", "objfmt", "=", "\"macho\"", ";", "else", "if", "(", "TARGET_XCOFF", ")", "objfmt", "=", "\"coff\"", ";", "if", "(", "objfmt", "==", "NULL", ")", "return", "NULL_TREE", ";", "return", "build_string_literal", "(", "strlen", "(", "objfmt", ")", "+", "1", ",", "objfmt", ")", ";", "}", ""], "natrual_language": ["Handle", "a", "call", "to", "`", "__traits", "(", "getTargetInfo", ",", "``", "objectFormat", "''", ")", "'", "."], "TS_V_token": ["rs6000", "\"elf\"", "\"macho\"", "\"coff\"", "1"], "File": "rs6000-d", "Func": "rs6000_d_handle_target_object_format", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1642, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mep_reuse_lo_p", "(", "rtx", "lo", ",", "rtx", "gpr", ",", "rtx_insn", "*", "insn", ",", "bool", "gpr_dead_p", ")", "{", "bool", "result", "=", "mep_reuse_lo_p_1", "(", "lo", ",", "gpr", ",", "insn", ",", "gpr_dead_p", ")", ";", "extract_insn", "(", "insn", ")", ";", "return", "result", ";", "}", ""], "natrual_language": ["A", "wrapper", "around", "mep_reuse_lo_p_1", "that", "preserves", "recog_data", "."], "TS_V_token": ["mep"], "File": "mep", "Func": "mep_reuse_lo_p", "Target": "mep", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1643, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SparcFrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "SparcMachineFunctionInfo", "*", "FuncInfo", "=", "MF", ".", "getInfo", "<", "SparcMachineFunctionInfo", ">", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "getLastNonDebugInstr", "(", ")", ";", "const", "SparcInstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "SparcInstrInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "DebugLoc", "dl", "=", "MBBI", "->", "getDebugLoc", "(", ")", ";", "assert", "(", "MBBI", "->", "getOpcode", "(", ")", "==", "SP", "::", "RETL", "&&", "\"Can only put epilog before 'retl' instruction!\"", ")", ";", "if", "(", "!", "FuncInfo", "->", "isLeafProc", "(", ")", ")", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "SP", "::", "RESTORErr", ")", ",", "SP", "::", "G0", ")", ".", "addReg", "(", "SP", "::", "G0", ")", ".", "addReg", "(", "SP", "::", "G0", ")", ";", "return", ";", "}", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "int", "NumBytes", "=", "(", "int", ")", "MFI", "->", "getStackSize", "(", ")", ";", "if", "(", "NumBytes", "==", "0", ")", "return", ";", "NumBytes", "=", "MF", ".", "getTarget", "(", ")", ".", "getSubtarget", "<", "SparcSubtarget", ">", "(", ")", ".", "getAdjustedFrameSize", "(", "NumBytes", ")", ";", "emitSPAdjustment", "(", "MF", ",", "MBB", ",", "MBBI", ",", "NumBytes", ",", "SP", "::", "ADDrr", ",", "SP", "::", "ADDri", ")", ";", "}", ""], "natrual_language": ["Insert", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["Sparc", "Sparc", "Sparc", "Sparc", "Sparc", "Sparc", "SP::RETL", "\"Can only put epilog before 'retl' instruction!\"", "SP::RESTORErr", "SP::G0", "SP::G0", "SP::G0", "0", "Sparc", "SP", "SP::ADDrr", "SP::ADDri"], "File": "SparcFrameLowering45", "Func": "emitEpilogue", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1644, "Length": 206, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_hard_regno_mode_ok", "(", "unsigned", "int", "regno", ",", "machine_mode", "mode", ")", "{", "if", "(", "CC_REGNO_P", "(", "regno", ")", ")", "return", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_CC", ";", "if", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_CC", "||", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_RANDOM", "||", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_PARTIAL_INT", ")", "return", "false", ";", "if", "(", "STACK_REGNO_P", "(", "regno", ")", ")", "return", "VALID_FP_MODE_P", "(", "mode", ")", ";", "if", "(", "MASK_REGNO_P", "(", "regno", ")", ")", "return", "(", "VALID_MASK_REG_MODE", "(", "mode", ")", "||", "(", "TARGET_AVX512BW", "&&", "VALID_MASK_AVX512BW_MODE", "(", "mode", ")", ")", ")", ";", "if", "(", "BND_REGNO_P", "(", "regno", ")", ")", "return", "VALID_BND_REG_MODE", "(", "mode", ")", ";", "if", "(", "SSE_REGNO_P", "(", "regno", ")", ")", "{", "if", "(", "TARGET_AVX512F", "&&", "(", "mode", "==", "XImode", "||", "VALID_AVX512F_REG_MODE", "(", "mode", ")", "||", "VALID_AVX512F_SCALAR_MODE", "(", "mode", ")", ")", ")", "return", "true", ";", "if", "(", "(", "TARGET_AVX5124FMAPS", "||", "TARGET_AVX5124VNNIW", ")", "&&", "MOD4_SSE_REGNO_P", "(", "regno", ")", "&&", "mode", "==", "V64SFmode", ")", "return", "true", ";", "if", "(", "(", "TARGET_AVX5124FMAPS", "||", "TARGET_AVX5124VNNIW", ")", "&&", "MOD4_SSE_REGNO_P", "(", "regno", ")", "&&", "mode", "==", "V64SImode", ")", "return", "true", ";", "if", "(", "TARGET_AVX512VL", "&&", "(", "mode", "==", "OImode", "||", "mode", "==", "TImode", "||", "VALID_AVX256_REG_MODE", "(", "mode", ")", "||", "VALID_AVX512VL_128_REG_MODE", "(", "mode", ")", ")", ")", "return", "true", ";", "if", "(", "EXT_REX_SSE_REGNO_P", "(", "regno", ")", ")", "return", "false", ";", "return", "(", "(", "TARGET_AVX", "&&", "VALID_AVX256_REG_OR_OI_MODE", "(", "mode", ")", ")", "||", "VALID_SSE_REG_MODE", "(", "mode", ")", "||", "VALID_SSE2_REG_MODE", "(", "mode", ")", "||", "VALID_MMX_REG_MODE", "(", "mode", ")", "||", "VALID_MMX_REG_MODE_3DNOW", "(", "mode", ")", ")", ";", "}", "if", "(", "MMX_REGNO_P", "(", "regno", ")", ")", "{", "return", "(", "VALID_MMX_REG_MODE", "(", "mode", ")", "||", "VALID_MMX_REG_MODE_3DNOW", "(", "mode", ")", ")", ";", "}", "if", "(", "mode", "==", "QImode", ")", "{", "if", "(", "ANY_QI_REGNO_P", "(", "regno", ")", ")", "return", "true", ";", "if", "(", "!", "TARGET_PARTIAL_REG_STALL", ")", "return", "true", ";", "if", "(", "lra_in_progress", ")", "return", "true", ";", "return", "!", "can_create_pseudo_p", "(", ")", ";", "}", "else", "if", "(", "VALID_INT_MODE_P", "(", "mode", ")", ")", "return", "true", ";", "else", "if", "(", "VALID_FP_MODE_P", "(", "mode", ")", ")", "return", "true", ";", "else", "if", "(", "VALID_DFP_MODE_P", "(", "mode", ")", ")", "return", "true", ";", "else", "if", "(", "VALID_MMX_REG_MODE_3DNOW", "(", "mode", ")", "||", "VALID_MMX_REG_MODE", "(", "mode", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "TRUE", "if", "hard", "register", "REGNO", "can", "hold", "a", "value", "of", "machine-mode", "MODE", "."], "TS_V_token": ["i386"], "File": "i3867", "Func": "ix86_hard_regno_mode_ok", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1645, "Length": 358, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "setReg", "(", "MCRegister", "PhysReg", ")", "{", "Reg", ".", "RegNum", "=", "PhysReg", ";", "}", ""], "natrual_language": ["Assigns", "the", "associated", "register", "for", "this", "edge", "."], "TS_V_token": ["LoongArch"], "File": "LoongArchAsmParser1", "Func": "setReg", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1646, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_handle_attr_cpu", "(", "const", "char", "*", "str", ")", "{", "const", "struct", "processor", "*", "tmp_cpu", "=", "NULL", ";", "std", "::", "string", "invalid_extension", ";", "enum", "aarch64_parse_opt_result", "parse_res", "=", "aarch64_parse_cpu", "(", "str", ",", "&", "tmp_cpu", ",", "&", "aarch64_isa_flags", ",", "&", "invalid_extension", ")", ";", "if", "(", "parse_res", "==", "AARCH64_PARSE_OK", ")", "{", "gcc_assert", "(", "tmp_cpu", ")", ";", "selected_tune", "=", "tmp_cpu", ";", "explicit_tune_core", "=", "selected_tune", "->", "ident", ";", "selected_arch", "=", "&", "all_architectures", "[", "tmp_cpu", "->", "arch", "]", ";", "explicit_arch", "=", "selected_arch", "->", "arch", ";", "return", "true", ";", "}", "switch", "(", "parse_res", ")", "{", "case", "AARCH64_PARSE_MISSING_ARG", ":", "error", "(", "\"missing name in % pragma or attribute\"", ")", ";", "break", ";", "case", "AARCH64_PARSE_INVALID_ARG", ":", "error", "(", "\"invalid name (\\\"%s\\\") in % pragma or attribute\"", ",", "str", ")", ";", "aarch64_print_hint_for_core", "(", "str", ")", ";", "break", ";", "case", "AARCH64_PARSE_INVALID_FEATURE", ":", "error", "(", "\"invalid feature modifier %s of value (\\\"%s\\\") in \"", "\"% pragma or attribute\"", ",", "invalid_extension", ".", "c_str", "(", ")", ",", "str", ")", ";", "aarch64_print_hint_for_extensions", "(", "invalid_extension", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Handle", "the", "argument", "CPU_STR", "to", "the", "cpu=", "target", "attribute", ".", "PRAGMA_OR_ATTR", "is", "used", "in", "potential", "error", "messages", "."], "TS_V_token": ["aarch64", "\"missing name in % pragma or attribute\"", "\"invalid name (\\\"%s\\\") in % pragma or attribute\"", "\"invalid feature modifier %s of value (\\\"%s\\\") in \"", "\"% pragma or attribute\""], "File": "aarch64", "Func": "aarch64_handle_attr_cpu", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1647, "Length": 150, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "Comet2InstrInfo", "*", "getInstrInfo", "(", ")", "const", "override", "{", "return", "&", "InstrInfo", ";", "}", ""], "natrual_language": ["TargetInstrInfo", "getter", "."], "TS_V_token": ["Comet2", "Comet2"], "File": "Comet2Subtarget", "Func": "getInstrInfo", "Target": "Comet2", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1648, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "gen_ldm_seq", "(", "rtx", "*", "operands", ",", "int", "nops", ",", "bool", "sort_regs", ")", "{", "int", "regs", "[", "MAX_LDM_STM_OPS", "]", ",", "mem_order", "[", "MAX_LDM_STM_OPS", "]", ";", "rtx", "mems", "[", "MAX_LDM_STM_OPS", "]", ";", "int", "i", ",", "j", ",", "base_reg", ";", "rtx", "base_reg_rtx", ";", "HOST_WIDE_INT", "offset", ";", "int", "write_back", "=", "FALSE", ";", "int", "ldm_case", ";", "rtx", "addr", ";", "ldm_case", "=", "load_multiple_sequence", "(", "operands", ",", "nops", ",", "regs", ",", "mem_order", ",", "&", "base_reg", ",", "&", "offset", ",", "!", "sort_regs", ")", ";", "if", "(", "ldm_case", "==", "0", ")", "return", "false", ";", "if", "(", "sort_regs", ")", "for", "(", "i", "=", "0", ";", "i", "<", "nops", "-", "1", ";", "i", "++", ")", "for", "(", "j", "=", "i", "+", "1", ";", "j", "<", "nops", ";", "j", "++", ")", "if", "(", "regs", "[", "i", "]", ">", "regs", "[", "j", "]", ")", "{", "int", "t", "=", "regs", "[", "i", "]", ";", "regs", "[", "i", "]", "=", "regs", "[", "j", "]", ";", "regs", "[", "j", "]", "=", "t", ";", "}", "base_reg_rtx", "=", "gen_rtx_REG", "(", "Pmode", ",", "base_reg", ")", ";", "if", "(", "TARGET_THUMB1", ")", "{", "gcc_assert", "(", "peep2_reg_dead_p", "(", "nops", ",", "base_reg_rtx", ")", ")", ";", "gcc_assert", "(", "ldm_case", "==", "1", "||", "ldm_case", "==", "5", ")", ";", "write_back", "=", "TRUE", ";", "}", "if", "(", "ldm_case", "==", "5", ")", "{", "rtx", "newbase", "=", "TARGET_THUMB1", "?", "base_reg_rtx", ":", "gen_rtx_REG", "(", "SImode", ",", "regs", "[", "0", "]", ")", ";", "emit_insn", "(", "gen_addsi3", "(", "newbase", ",", "base_reg_rtx", ",", "GEN_INT", "(", "offset", ")", ")", ")", ";", "offset", "=", "0", ";", "if", "(", "!", "TARGET_THUMB1", ")", "{", "base_reg", "=", "regs", "[", "0", "]", ";", "base_reg_rtx", "=", "newbase", ";", "}", "}", "for", "(", "i", "=", "0", ";", "i", "<", "nops", ";", "i", "++", ")", "{", "addr", "=", "plus_constant", "(", "Pmode", ",", "base_reg_rtx", ",", "offset", "+", "i", "*", "4", ")", ";", "mems", "[", "i", "]", "=", "adjust_automodify_address_nv", "(", "operands", "[", "nops", "+", "mem_order", "[", "i", "]", "]", ",", "SImode", ",", "addr", ",", "0", ")", ";", "}", "emit_insn", "(", "arm_gen_load_multiple_1", "(", "nops", ",", "regs", ",", "mems", ",", "base_reg_rtx", ",", "write_back", "?", "offset", "+", "i", "*", "4", ":", "0", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Called", "from", "a", "peephole2", "expander", "to", "turn", "a", "sequence", "of", "loads", "into", "an", "LDM", "instruction", ".", "OPERANDS", "are", "the", "operands", "found", "by", "the", "peephole", "matcher", ";", "NOPS", "indicates", "how", "many", "separate", "loads", "we", "are", "trying", "to", "combine", ".", "SORT_REGS", "is", "true", "if", "we", "can", "reorder", "the", "registers", "because", "they", "are", "used", "commutatively", "subsequently", ".", "Returns", "true", "iff", "we", "could", "generate", "a", "new", "instruction", "."], "TS_V_token": ["arm", "0", "0", "1", "1", "1", "5", "5", "0", "0", "0", "0", "4", "0", "4", "0"], "File": "arm4", "Func": "gen_ldm_seq", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1649, "Length": 343, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "rs6000_load_constant_and_splat", "(", "machine_mode", "mode", ",", "REAL_VALUE_TYPE", "dconst", ")", "{", "rtx", "reg", ";", "if", "(", "mode", "==", "SFmode", "||", "mode", "==", "DFmode", ")", "{", "rtx", "d", "=", "CONST_DOUBLE_FROM_REAL_VALUE", "(", "dconst", ",", "mode", ")", ";", "reg", "=", "force_reg", "(", "mode", ",", "d", ")", ";", "}", "else", "if", "(", "mode", "==", "V4SFmode", ")", "{", "rtx", "d", "=", "CONST_DOUBLE_FROM_REAL_VALUE", "(", "dconst", ",", "SFmode", ")", ";", "rtvec", "v", "=", "gen_rtvec", "(", "4", ",", "d", ",", "d", ",", "d", ",", "d", ")", ";", "reg", "=", "gen_reg_rtx", "(", "mode", ")", ";", "rs6000_expand_vector_init", "(", "reg", ",", "gen_rtx_PARALLEL", "(", "mode", ",", "v", ")", ")", ";", "}", "else", "if", "(", "mode", "==", "V2DFmode", ")", "{", "rtx", "d", "=", "CONST_DOUBLE_FROM_REAL_VALUE", "(", "dconst", ",", "DFmode", ")", ";", "rtvec", "v", "=", "gen_rtvec", "(", "2", ",", "d", ",", "d", ")", ";", "reg", "=", "gen_reg_rtx", "(", "mode", ")", ";", "rs6000_expand_vector_init", "(", "reg", ",", "gen_rtx_PARALLEL", "(", "mode", ",", "v", ")", ")", ";", "}", "else", "gcc_unreachable", "(", ")", ";", "return", "reg", ";", "}", ""], "natrual_language": ["Load", "up", "a", "constant", ".", "If", "the", "mode", "is", "a", "vector", "mode", ",", "splat", "the", "value", "across", "all", "of", "the", "vector", "elements", "."], "TS_V_token": ["rs6000", "4", "2"], "File": "rs60004", "Func": "rs6000_load_constant_and_splat", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1650, "Length": 158, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "hasLiveCondCodeDef", "(", "MachineInstr", "*", "MI", ")", "{", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "MI", "->", "getNumOperands", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "i", ")", ";", "if", "(", "MO", ".", "isReg", "(", ")", "&&", "MO", ".", "isDef", "(", ")", "&&", "MO", ".", "getReg", "(", ")", "==", "X86", "::", "EFLAGS", "&&", "!", "MO", ".", "isDead", "(", ")", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["True", "if", "MI", "has", "a", "condition", "code", "def", ",", "e.g", "."], "TS_V_token": ["X86", "0", "X86::EFLAGS"], "File": "X86InstrInfo (2)", "Func": "hasLiveCondCodeDef", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1651, "Length": 84, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "ARMSubtarget", "*", "ARMBaseTargetMachine", "::", "getSubtargetImpl", "(", "const", "Function", "&", "F", ")", "const", "{", "Attribute", "CPUAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-cpu\"", ")", ";", "Attribute", "FSAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-features\"", ")", ";", "std", "::", "string", "CPU", "=", "!", "CPUAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "CPUAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetCPU", ";", "std", "::", "string", "FS", "=", "!", "FSAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "FSAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetFS", ";", "Attribute", "SFAttr", "=", "F", ".", "getFnAttribute", "(", "\"use-soft-float\"", ")", ";", "bool", "SoftFloat", "=", "!", "SFAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "SFAttr", ".", "getValueAsString", "(", ")", "==", "\"true\"", ":", "Options", ".", "UseSoftFloat", ";", "auto", "&", "I", "=", "SubtargetMap", "[", "CPU", "+", "FS", "+", "(", "SoftFloat", "?", "\"use-soft-float=true\"", ":", "\"use-soft-float=false\"", ")", "]", ";", "if", "(", "!", "I", ")", "{", "resetTargetOptions", "(", "F", ")", ";", "I", "=", "llvm", "::", "make_unique", "<", "ARMSubtarget", ">", "(", "TargetTriple", ",", "CPU", ",", "FS", ",", "*", "this", ",", "isLittle", ")", ";", "}", "return", "I", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["ARM", "ARM", "ARM", "\"target-cpu\"", "\"target-features\"", "\"use-soft-float\"", "\"true\"", "\"use-soft-float=true\"", "\"use-soft-float=false\"", "ARM"], "File": "ARMTargetMachine29", "Func": "getSubtargetImpl", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1652, "Length": 183, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86RegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "RegScavenger", "*", "RS", ")", "const", "{", "assert", "(", "SPAdj", "==", "0", "&&", "\"Unexpected\"", ")", ";", "unsigned", "i", "=", "0", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "while", "(", "!", "MI", ".", "getOperand", "(", "i", ")", ".", "isFI", "(", ")", ")", "{", "++", "i", ";", "assert", "(", "i", "<", "MI", ".", "getNumOperands", "(", ")", "&&", "\"Instr doesn't have FrameIndex operand!\"", ")", ";", "}", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "i", ")", ".", "getIndex", "(", ")", ";", "unsigned", "BasePtr", ";", "unsigned", "Opc", "=", "MI", ".", "getOpcode", "(", ")", ";", "bool", "AfterFPPop", "=", "Opc", "==", "X86", "::", "TAILJMPm64", "||", "Opc", "==", "X86", "::", "TAILJMPm", ";", "if", "(", "hasBasePointer", "(", "MF", ")", ")", "BasePtr", "=", "(", "FrameIndex", "<", "0", "?", "FramePtr", ":", "getBaseRegister", "(", ")", ")", ";", "else", "if", "(", "needsStackRealignment", "(", "MF", ")", ")", "BasePtr", "=", "(", "FrameIndex", "<", "0", "?", "FramePtr", ":", "StackPtr", ")", ";", "else", "if", "(", "AfterFPPop", ")", "BasePtr", "=", "StackPtr", ";", "else", "BasePtr", "=", "(", "TFI", "->", "hasFP", "(", "MF", ")", "?", "FramePtr", ":", "StackPtr", ")", ";", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "BasePtr", ",", "false", ")", ";", "int", "FIOffset", ";", "if", "(", "AfterFPPop", ")", "{", "const", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "FIOffset", "=", "MFI", "->", "getObjectOffset", "(", "FrameIndex", ")", "-", "TFI", "->", "getOffsetOfLocalArea", "(", ")", ";", "}", "else", "FIOffset", "=", "TFI", "->", "getFrameIndexOffset", "(", "MF", ",", "FrameIndex", ")", ";", "if", "(", "MI", ".", "getOperand", "(", "i", "+", "3", ")", ".", "isImm", "(", ")", ")", "{", "int", "Imm", "=", "(", "int", ")", "(", "MI", ".", "getOperand", "(", "i", "+", "3", ")", ".", "getImm", "(", ")", ")", ";", "int", "Offset", "=", "FIOffset", "+", "Imm", ";", "assert", "(", "(", "!", "Is64Bit", "||", "isInt", "<", "32", ">", "(", "(", "long", "long", ")", "FIOffset", "+", "Imm", ")", ")", "&&", "\"Requesting 64-bit offset in 32-bit immediate!\"", ")", ";", "MI", ".", "getOperand", "(", "i", "+", "3", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";", "}", "else", "{", "uint64_t", "Offset", "=", "FIOffset", "+", "(", "uint64_t", ")", "MI", ".", "getOperand", "(", "i", "+", "3", ")", ".", "getOffset", "(", ")", ";", "MI", ".", "getOperand", "(", "i", "+", "3", ")", ".", "setOffset", "(", "Offset", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["X86", "X86", "0", "\"Unexpected\"", "0", "\"Instr doesn't have FrameIndex operand!\"", "X86::TAILJMPm64", "X86::TAILJMPm", "0", "0", "3", "3", "32", "\"Requesting 64-bit offset in 32-bit immediate!\"", "3", "3", "3"], "File": "X86RegisterInfo39", "Func": "eliminateFrameIndex", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1653, "Length": 392, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Register", "getStackAddress", "(", "uint64_t", "Size", ",", "int64_t", "Offset", ",", "MachinePointerInfo", "&", "MPO", ")", "override", "{", "MachineFunction", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "LLT", "p0", "=", "LLT", "::", "pointer", "(", "0", ",", "64", ")", ";", "LLT", "s64", "=", "LLT", "::", "scalar", "(", "64", ")", ";", "if", "(", "IsTailCall", ")", "{", "Offset", "+=", "FPDiff", ";", "int", "FI", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "CreateFixedObject", "(", "Size", ",", "Offset", ",", "true", ")", ";", "auto", "FIReg", "=", "MIRBuilder", ".", "buildFrameIndex", "(", "p0", ",", "FI", ")", ";", "MPO", "=", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FI", ")", ";", "return", "FIReg", ".", "getReg", "(", "0", ")", ";", "}", "if", "(", "!", "SPReg", ")", "SPReg", "=", "MIRBuilder", ".", "buildCopy", "(", "p0", ",", "Register", "(", "AArch64", "::", "SP", ")", ")", ".", "getReg", "(", "0", ")", ";", "auto", "OffsetReg", "=", "MIRBuilder", ".", "buildConstant", "(", "s64", ",", "Offset", ")", ";", "auto", "AddrReg", "=", "MIRBuilder", ".", "buildPtrAdd", "(", "p0", ",", "SPReg", ",", "OffsetReg", ")", ";", "MPO", "=", "MachinePointerInfo", "::", "getStack", "(", "MF", ",", "Offset", ")", ";", "return", "AddrReg", ".", "getReg", "(", "0", ")", ";", "}", ""], "natrual_language": ["Materialize", "a", "VReg", "containing", "the", "address", "of", "the", "specified", "stack-based", "object", "."], "TS_V_token": ["AArch64", "0", "64", "64", "0", "AArch64::SP", "0", "0"], "File": "AArch64CallLowering16", "Func": "getStackAddress", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1654, "Length": 178, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "thumb2_legitimate_index_p", "(", "machine_mode", "mode", ",", "rtx", "index", ",", "int", "strict_p", ")", "{", "enum", "rtx_code", "code", "=", "GET_CODE", "(", "index", ")", ";", "if", "(", "TARGET_HARD_FLOAT", "&&", "(", "mode", "==", "SFmode", "||", "mode", "==", "DFmode", ")", ")", "return", "(", "code", "==", "CONST_INT", "&&", "INTVAL", "(", "index", ")", "<", "1024", "&&", "INTVAL", "(", "index", ")", ">", "-", "256", "&&", "(", "INTVAL", "(", "index", ")", "&", "3", ")", "==", "0", ")", ";", "if", "(", "TARGET_REALLY_IWMMXT", "&&", "VALID_IWMMXT_REG_MODE", "(", "mode", ")", ")", "{", "if", "(", "!", "TARGET_LDRD", "||", "mode", "!=", "DImode", ")", "return", "(", "code", "==", "CONST_INT", "&&", "INTVAL", "(", "index", ")", "<", "1024", "&&", "INTVAL", "(", "index", ")", ">", "-", "1024", "&&", "(", "INTVAL", "(", "index", ")", "&", "3", ")", "==", "0", ")", ";", "}", "if", "(", "TARGET_NEON", "&&", "VALID_NEON_QREG_MODE", "(", "mode", ")", ")", "return", "(", "code", "==", "CONST_INT", "&&", "INTVAL", "(", "index", ")", "<", "1016", "&&", "INTVAL", "(", "index", ")", ">", "-", "1024", "&&", "(", "INTVAL", "(", "index", ")", "&", "3", ")", "==", "0", ")", ";", "if", "(", "TARGET_NEON", "&&", "VALID_NEON_DREG_MODE", "(", "mode", ")", ")", "return", "(", "code", "==", "CONST_INT", "&&", "INTVAL", "(", "index", ")", "<", "1024", "&&", "INTVAL", "(", "index", ")", ">", "-", "1024", "&&", "(", "INTVAL", "(", "index", ")", "&", "3", ")", "==", "0", ")", ";", "if", "(", "arm_address_register_rtx_p", "(", "index", ",", "strict_p", ")", "&&", "(", "GET_MODE_SIZE", "(", "mode", ")", "<=", "4", ")", ")", "return", "1", ";", "if", "(", "mode", "==", "DImode", "||", "mode", "==", "DFmode", ")", "{", "if", "(", "code", "==", "CONST_INT", ")", "{", "HOST_WIDE_INT", "val", "=", "INTVAL", "(", "index", ")", ";", "if", "(", "TARGET_LDRD", ")", "return", "IN_RANGE", "(", "val", ",", "-", "1020", ",", "1020", ")", "&&", "(", "val", "&", "3", ")", "==", "0", ";", "else", "return", "IN_RANGE", "(", "val", ",", "-", "255", ",", "4095", "-", "4", ")", ";", "}", "else", "return", "0", ";", "}", "if", "(", "code", "==", "MULT", ")", "{", "rtx", "xiop0", "=", "XEXP", "(", "index", ",", "0", ")", ";", "rtx", "xiop1", "=", "XEXP", "(", "index", ",", "1", ")", ";", "return", "(", "(", "arm_address_register_rtx_p", "(", "xiop0", ",", "strict_p", ")", "&&", "thumb2_index_mul_operand", "(", "xiop1", ")", ")", "||", "(", "arm_address_register_rtx_p", "(", "xiop1", ",", "strict_p", ")", "&&", "thumb2_index_mul_operand", "(", "xiop0", ")", ")", ")", ";", "}", "else", "if", "(", "code", "==", "ASHIFT", ")", "{", "rtx", "op", "=", "XEXP", "(", "index", ",", "1", ")", ";", "return", "(", "arm_address_register_rtx_p", "(", "XEXP", "(", "index", ",", "0", ")", ",", "strict_p", ")", "&&", "CONST_INT_P", "(", "op", ")", "&&", "INTVAL", "(", "op", ")", ">", "0", "&&", "INTVAL", "(", "op", ")", "<=", "3", ")", ";", "}", "return", "(", "code", "==", "CONST_INT", "&&", "INTVAL", "(", "index", ")", "<", "4096", "&&", "INTVAL", "(", "index", ")", ">", "-", "256", ")", ";", "}", ""], "natrual_language": ["Return", "nonzero", "if", "INDEX", "is", "a", "valid", "Thumb-2", "address", "index", "operand", "."], "TS_V_token": ["arm", "1024", "256", "3", "0", "1024", "1024", "3", "0", "1016", "1024", "3", "0", "1024", "1024", "3", "0", "4", "1", "1020", "1020", "3", "0", "255", "4095", "4", "0", "0", "1", "1", "0", "0", "3", "4096", "256"], "File": "arm7", "Func": "thumb2_legitimate_index_p", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1655, "Length": 432, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "MCSymbol", "*", "GetSymbolFromOperand", "(", "const", "MachineOperand", "&", "MO", ",", "AsmPrinter", "&", "AP", ")", "{", "MCContext", "&", "Ctx", "=", "AP", ".", "OutContext", ";", "SmallString", "<", "128", ">", "Name", ";", "if", "(", "!", "MO", ".", "isGlobal", "(", ")", ")", "{", "assert", "(", "MO", ".", "isSymbol", "(", ")", "&&", "\"Isn't a symbol reference\"", ")", ";", "Name", "+=", "AP", ".", "MAI", "->", "getGlobalPrefix", "(", ")", ";", "Name", "+=", "MO", ".", "getSymbolName", "(", ")", ";", "}", "else", "{", "const", "GlobalValue", "*", "GV", "=", "MO", ".", "getGlobal", "(", ")", ";", "bool", "isImplicitlyPrivate", "=", "false", ";", "if", "(", "MO", ".", "getTargetFlags", "(", ")", "==", "PPCII", "::", "MO_DARWIN_STUB", "||", "(", "MO", ".", "getTargetFlags", "(", ")", "&", "PPCII", "::", "MO_NLP_FLAG", ")", ")", "isImplicitlyPrivate", "=", "true", ";", "AP", ".", "Mang", "->", "getNameWithPrefix", "(", "Name", ",", "GV", ",", "isImplicitlyPrivate", ")", ";", "}", "if", "(", "MO", ".", "getTargetFlags", "(", ")", "==", "PPCII", "::", "MO_DARWIN_STUB", ")", "{", "Name", "+=", "\"$stub\"", ";", "MCSymbol", "*", "Sym", "=", "Ctx", ".", "GetOrCreateSymbol", "(", "Name", ".", "str", "(", ")", ")", ";", "MachineModuleInfoImpl", "::", "StubValueTy", "&", "StubSym", "=", "getMachOMMI", "(", "AP", ")", ".", "getFnStubEntry", "(", "Sym", ")", ";", "if", "(", "StubSym", ".", "getPointer", "(", ")", ")", "return", "Sym", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "StubSym", "=", "MachineModuleInfoImpl", "::", "StubValueTy", "(", "AP", ".", "Mang", "->", "getSymbol", "(", "MO", ".", "getGlobal", "(", ")", ")", ",", "!", "MO", ".", "getGlobal", "(", ")", "->", "hasInternalLinkage", "(", ")", ")", ";", "}", "else", "{", "Name", ".", "erase", "(", "Name", ".", "end", "(", ")", "-", "5", ",", "Name", ".", "end", "(", ")", ")", ";", "StubSym", "=", "MachineModuleInfoImpl", "::", "StubValueTy", "(", "Ctx", ".", "GetOrCreateSymbol", "(", "Name", ".", "str", "(", ")", ")", ",", "false", ")", ";", "}", "return", "Sym", ";", "}", "if", "(", "MO", ".", "getTargetFlags", "(", ")", "&", "PPCII", "::", "MO_NLP_FLAG", ")", "{", "Name", "+=", "\"$non_lazy_ptr\"", ";", "MCSymbol", "*", "Sym", "=", "Ctx", ".", "GetOrCreateSymbol", "(", "Name", ".", "str", "(", ")", ")", ";", "MachineModuleInfoMachO", "&", "MachO", "=", "getMachOMMI", "(", "AP", ")", ";", "MachineModuleInfoImpl", "::", "StubValueTy", "&", "StubSym", "=", "(", "MO", ".", "getTargetFlags", "(", ")", "&", "PPCII", "::", "MO_NLP_HIDDEN_FLAG", ")", "?", "MachO", ".", "getHiddenGVStubEntry", "(", "Sym", ")", ":", "MachO", ".", "getGVStubEntry", "(", "Sym", ")", ";", "if", "(", "StubSym", ".", "getPointer", "(", ")", "==", "0", ")", "{", "assert", "(", "MO", ".", "isGlobal", "(", ")", "&&", "\"Extern symbol not handled yet\"", ")", ";", "StubSym", "=", "MachineModuleInfoImpl", "::", "StubValueTy", "(", "AP", ".", "Mang", "->", "getSymbol", "(", "MO", ".", "getGlobal", "(", ")", ")", ",", "!", "MO", ".", "getGlobal", "(", ")", "->", "hasInternalLinkage", "(", ")", ")", ";", "}", "return", "Sym", ";", "}", "return", "Ctx", ".", "GetOrCreateSymbol", "(", "Name", ".", "str", "(", ")", ")", ";", "}", ""], "natrual_language": ["Lower", "an", "MO_GlobalAddress", "or", "MO_ExternalSymbol", "operand", "to", "an", "MCSymbol", "."], "TS_V_token": ["PowerPC", "128", "\"Isn't a symbol reference\"", "PPCII::MO_DARWIN_STUB", "PPCII::MO_NLP_FLAG", "PPCII::MO_DARWIN_STUB", "\"$stub\"", "5", "PPCII::MO_NLP_FLAG", "\"$non_lazy_ptr\"", "PPCII::MO_NLP_HIDDEN_FLAG", "0", "\"Extern symbol not handled yet\""], "File": "PPCMCInstLower12", "Func": "GetSymbolFromOperand", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1656, "Length": 419, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint16_t", "*", "X86RegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "switch", "(", "MF", "->", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", ")", "{", "case", "CallingConv", "::", "GHC", ":", "case", "CallingConv", "::", "HiPE", ":", "return", "CSR_NoRegs_SaveList", ";", "case", "CallingConv", "::", "Intel_OCL_BI", ":", "{", "bool", "HasAVX", "=", "TM", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "hasAVX", "(", ")", ";", "if", "(", "HasAVX", "&&", "IsWin64", ")", "return", "CSR_Win64_Intel_OCL_BI_AVX_SaveList", ";", "if", "(", "HasAVX", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_AVX_SaveList", ";", "if", "(", "!", "HasAVX", "&&", "!", "IsWin64", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_SaveList", ";", "break", ";", "}", "case", "CallingConv", "::", "Cold", ":", "if", "(", "Is64Bit", ")", "return", "CSR_MostRegs_64_SaveList", ";", "break", ";", "default", ":", "break", ";", "}", "bool", "CallsEHReturn", "=", "MF", "->", "getMMI", "(", ")", ".", "callsEHReturn", "(", ")", ";", "bool", "IsNaCl", "=", "TM", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "isTargetNaCl", "(", ")", ";", "if", "(", "Is64Bit", ")", "{", "if", "(", "IsWin64", ")", "return", "CSR_Win64_SaveList", ";", "if", "(", "IsNaCl", ")", "{", "if", "(", "CallsEHReturn", ")", "return", "CSR_NaCl64EHRet_SaveList", ";", "return", "CSR_NaCl64_SaveList", ";", "}", "if", "(", "CallsEHReturn", ")", "return", "CSR_64EHRet_SaveList", ";", "return", "CSR_64_SaveList", ";", "}", "if", "(", "CallsEHReturn", ")", "return", "CSR_32EHRet_SaveList", ";", "return", "CSR_32_SaveList", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["X86", "X86", "X86", "X86"], "File": "X86RegisterInfo54", "Func": "getCalleeSavedRegs", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1657, "Length": 194, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64SpeculationHardening", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "!", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "Attribute", "::", "SpeculativeLoadHardening", ")", ")", "return", "false", ";", "MisspeculatingTaintReg", "=", "AArch64", "::", "X16", ";", "MisspeculatingTaintReg32Bit", "=", "AArch64", "::", "W16", ";", "TII", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "TRI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "RegsNeedingCSDBBeforeUse", ".", "resize", "(", "TRI", "->", "getNumRegs", "(", ")", ")", ";", "RegsAlreadyMasked", ".", "resize", "(", "TRI", "->", "getNumRegs", "(", ")", ")", ";", "UseControlFlowSpeculationBarrier", "=", "functionUsesHardeningRegister", "(", "MF", ")", ";", "bool", "Modified", "=", "false", ";", "if", "(", "HardenLoads", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** AArch64SpeculationHardening - automatic insertion of \"", "\"SpeculationSafeValue intrinsics *****\\n\"", ")", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "Modified", "|=", "slhLoads", "(", "MBB", ")", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** AArch64SpeculationHardening - track control flow *****\\n\"", ")", ";", "SmallVector", "<", "MachineBasicBlock", "*", ",", "2", ">", "EntryBlocks", ";", "EntryBlocks", ".", "push_back", "(", "&", "MF", ".", "front", "(", ")", ")", ";", "for", "(", "const", "LandingPadInfo", "&", "LPI", ":", "MF", ".", "getLandingPads", "(", ")", ")", "EntryBlocks", ".", "push_back", "(", "LPI", ".", "LandingPadBlock", ")", ";", "for", "(", "auto", "Entry", ":", "EntryBlocks", ")", "insertSPToRegTaintPropagation", "(", "*", "Entry", ",", "Entry", "->", "SkipPHIsLabelsAndDebug", "(", "Entry", "->", "begin", "(", ")", ")", ")", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "{", "bool", "UsesFullSpeculationBarrier", "=", "false", ";", "Modified", "|=", "instrumentControlFlow", "(", "MBB", ",", "UsesFullSpeculationBarrier", ")", ";", "Modified", "|=", "lowerSpeculationSafeValuePseudos", "(", "MBB", ",", "UsesFullSpeculationBarrier", ")", ";", "}", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::X16", "AArch64::W16", "\"***** AArch64SpeculationHardening - automatic insertion of \"", "\"SpeculationSafeValue intrinsics *****\\n\"", "\"***** AArch64SpeculationHardening - track control flow *****\\n\"", "2"], "File": "AArch64SpeculationHardening2", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1658, "Length": 243, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "loongarch_add_offset", "(", "rtx", "temp", ",", "rtx", "reg", ",", "HOST_WIDE_INT", "offset", ")", "{", "if", "(", "!", "IMM12_OPERAND", "(", "offset", ")", ")", "{", "rtx", "high", ";", "high", "=", "gen_int_mode", "(", "CONST_HIGH_PART", "(", "offset", ")", ",", "Pmode", ")", ";", "offset", "=", "CONST_LOW_PART", "(", "offset", ")", ";", "high", "=", "loongarch_force_temporary", "(", "temp", ",", "high", ")", ";", "reg", "=", "loongarch_force_temporary", "(", "temp", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "high", ",", "reg", ")", ")", ";", "}", "return", "plus_constant", "(", "Pmode", ",", "reg", ",", "offset", ")", ";", "}", ""], "natrual_language": ["Return", "a", "legitimate", "address", "for", "REG", "+", "OFFSET", ".", "TEMP", "is", "as", "for", "loongarch_force_temporary", ";", "it", "is", "only", "needed", "when", "OFFSET", "is", "not", "a", "IMM12_OPERAND", "."], "TS_V_token": ["loongarch"], "File": "loongarch", "Func": "loongarch_add_offset", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1659, "Length": 82, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "output_ascii", "(", "FILE", "*", "file", ",", "const", "char", "*", "p", ",", "int", "n", ")", "{", "char", "c", ";", "int", "i", ",", "count_string", ";", "const", "char", "*", "for_string", "=", "\"\\t.byte \\\"\"", ";", "const", "char", "*", "for_decimal", "=", "\"\\t.byte \"", ";", "const", "char", "*", "to_close", "=", "NULL", ";", "count_string", "=", "0", ";", "for", "(", "i", "=", "0", ";", "i", "<", "n", ";", "i", "++", ")", "{", "c", "=", "*", "p", "++", ";", "if", "(", "c", ">=", "' '", "&&", "c", "<", "0177", ")", "{", "if", "(", "for_string", ")", "fputs", "(", "for_string", ",", "file", ")", ";", "putc", "(", "c", ",", "file", ")", ";", "if", "(", "c", "==", "'\"'", ")", "{", "putc", "(", "c", ",", "file", ")", ";", "++", "count_string", ";", "}", "for_string", "=", "NULL", ";", "for_decimal", "=", "\"\\\"\\n\\t.byte \"", ";", "to_close", "=", "\"\\\"\\n\"", ";", "++", "count_string", ";", "if", "(", "count_string", ">=", "512", ")", "{", "fputs", "(", "to_close", ",", "file", ")", ";", "for_string", "=", "\"\\t.byte \\\"\"", ";", "for_decimal", "=", "\"\\t.byte \"", ";", "to_close", "=", "NULL", ";", "count_string", "=", "0", ";", "}", "}", "else", "{", "if", "(", "for_decimal", ")", "fputs", "(", "for_decimal", ",", "file", ")", ";", "fprintf", "(", "file", ",", "\"%d\"", ",", "c", ")", ";", "for_string", "=", "\"\\n\\t.byte \\\"\"", ";", "for_decimal", "=", "\", \"", ";", "to_close", "=", "\"\\n\"", ";", "count_string", "=", "0", ";", "}", "}", "if", "(", "to_close", ")", "fputs", "(", "to_close", ",", "file", ")", ";", "}", ""], "natrual_language": ["Output", "an", "assembler", "pseudo-op", "to", "write", "an", "ASCII", "string", "of", "N", "characters", "starting", "at", "P", "to", "FILE", ".", "On", "the", "RS/6000", ",", "we", "have", "to", "do", "this", "using", "the", ".byte", "operation", "and", "write", "out", "special", "characters", "outside", "the", "quoted", "string", ".", "Also", ",", "the", "assembler", "is", "broken", ";", "very", "long", "strings", "are", "truncated", ",", "so", "we", "must", "artificially", "break", "them", "up", "early", "."], "TS_V_token": ["powerpcspe", "\"\\t.byte \\\"\"", "\"\\t.byte \"", "0", "0", "0177", "\"\\\"\\n\\t.byte \"", "\"\\\"\\n\"", "512", "\"\\t.byte \\\"\"", "\"\\t.byte \"", "0", "\"%d\"", "\"\\n\\t.byte \\\"\"", "\", \"", "\"\\n\"", "0"], "File": "powerpcspe", "Func": "output_ascii", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1660, "Length": 215, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsTargetLowering", "::", "IsGlobalInSmallSection", "(", "GlobalValue", "*", "GV", ")", "{", "const", "TargetData", "*", "TD", "=", "getTargetData", "(", ")", ";", "const", "GlobalVariable", "*", "GVA", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GV", ")", ";", "if", "(", "!", "GVA", ")", "return", "false", ";", "const", "Type", "*", "Ty", "=", "GV", "->", "getType", "(", ")", "->", "getElementType", "(", ")", ";", "unsigned", "Size", "=", "TD", "->", "getTypeAllocSize", "(", "Ty", ")", ";", "if", "(", "GVA", "->", "hasInitializer", "(", ")", "&&", "GV", "->", "hasLocalLinkage", "(", ")", ")", "{", "Constant", "*", "C", "=", "GVA", "->", "getInitializer", "(", ")", ";", "const", "ConstantArray", "*", "CVA", "=", "dyn_cast", "<", "ConstantArray", ">", "(", "C", ")", ";", "if", "(", "CVA", "&&", "CVA", "->", "isCString", "(", ")", ")", "return", "false", ";", "}", "return", "IsInSmallSection", "(", "Size", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "this", "global", "address", "should", "be", "placed", "into", "small", "data/bss", "section", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsISelLowering35", "Func": "IsGlobalInSmallSection", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1661, "Length": 124, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMCodeGenPrepare", "::", "runOnFunction", "(", "Function", "&", "F", ")", "{", "if", "(", "skipFunction", "(", "F", ")", "||", "DisableCGP", ")", "return", "false", ";", "auto", "*", "TPC", "=", "&", "getAnalysis", "<", "TargetPassConfig", ">", "(", ")", ";", "if", "(", "!", "TPC", ")", "return", "false", ";", "const", "TargetMachine", "&", "TM", "=", "TPC", "->", "getTM", "<", "TargetMachine", ">", "(", ")", ";", "ST", "=", "&", "TM", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", "F", ")", ";", "bool", "MadeChange", "=", "false", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"ARM CGP: Running on \"", "<<", "F", ".", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "for", "(", "BasicBlock", "&", "BB", ":", "F", ")", "{", "auto", "&", "Insts", "=", "BB", ".", "getInstList", "(", ")", ";", "for", "(", "auto", "&", "I", ":", "Insts", ")", "{", "if", "(", "AllVisited", ".", "count", "(", "&", "I", ")", ")", "continue", ";", "if", "(", "isa", "<", "ICmpInst", ">", "(", "I", ")", ")", "{", "auto", "&", "CI", "=", "cast", "<", "ICmpInst", ">", "(", "I", ")", ";", "if", "(", "CI", ".", "isSigned", "(", ")", "||", "!", "isa", "<", "IntegerType", ">", "(", "CI", ".", "getOperand", "(", "0", ")", "->", "getType", "(", ")", ")", ")", "continue", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"ARM CGP: Searching from: \"", "<<", "CI", "<<", "\"\\n\"", ")", ";", "for", "(", "auto", "&", "Op", ":", "CI", ".", "operands", "(", ")", ")", "{", "if", "(", "auto", "*", "I", "=", "dyn_cast", "<", "Instruction", ">", "(", "Op", ")", ")", "MadeChange", "|=", "TryToPromote", "(", "I", ")", ";", "}", "}", "}", "Promoter", "->", "Cleanup", "(", ")", ";", "LLVM_DEBUG", "(", "if", "(", "verifyFunction", "(", "F", ",", "&", "dbgs", "(", ")", ")", ")", "{", "dbgs", "(", ")", ";", "report_fatal_error", "(", "\"Broken function after type promotion\"", ")", ";", "}", ")", ";", "}", "if", "(", "MadeChange", ")", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"After ARMCodeGenPrepare: \"", "<<", "F", "<<", "\"\\n\"", ")", ";", "return", "MadeChange", ";", "}", ""], "natrual_language": ["runOnFunction", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "the", "per-function", "processing", "of", "the", "pass", "."], "TS_V_token": ["ARM", "ARM", "ARM", "\"ARM CGP: Running on \"", "\"\\n\"", "0", "\"ARM CGP: Searching from: \"", "\"\\n\"", "\"Broken function after type promotion\"", "\"After ARMCodeGenPrepare: \"", "\"\\n\""], "File": "ARMCodeGenPrepare", "Func": "runOnFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1662, "Length": 287, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCRegisterInfo", "::", "adjustStackMapLiveOutMask", "(", "uint32_t", "*", "Mask", ")", "const", "{", "for", "(", "unsigned", "PseudoReg", ":", "{", "PPC", "::", "ZERO", ",", "PPC", "::", "ZERO8", ",", "PPC", "::", "RM", "}", ")", "Mask", "[", "PseudoReg", "/", "32", "]", "&=", "~", "(", "1u", "<<", "(", "PseudoReg", "%", "32", ")", ")", ";", "}", ""], "natrual_language": ["Prior", "to", "adding", "the", "live-out", "mask", "to", "a", "stackmap", "or", "patchpoint", "instruction", ",", "provide", "the", "target", "the", "opportunity", "to", "adjust", "it", "(", "mainly", "to", "remove", "pseudo-registers", "that", "should", "be", "ignored", ")", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::ZERO", "PPC::ZERO8", "PPC::RM", "32", "1u", "32"], "File": "PPCRegisterInfo (2)1", "Func": "adjustStackMapLiveOutMask", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1663, "Length": 49, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_hard_regno_mode_ok_p", "(", "unsigned", "int", "regno", ",", "machine_mode", "mode", ")", "{", "unsigned", "int", "size", ";", "enum", "mode_class", "mclass", ";", "if", "(", "mode", "==", "CCV2mode", ")", "return", "(", "ISA_HAS_8CC", "&&", "ST_REG_P", "(", "regno", ")", "&&", "(", "regno", "-", "ST_REG_FIRST", ")", "%", "2", "==", "0", ")", ";", "if", "(", "mode", "==", "CCV4mode", ")", "return", "(", "ISA_HAS_8CC", "&&", "ST_REG_P", "(", "regno", ")", "&&", "(", "regno", "-", "ST_REG_FIRST", ")", "%", "4", "==", "0", ")", ";", "if", "(", "mode", "==", "CCmode", ")", "return", "ISA_HAS_8CC", "?", "ST_REG_P", "(", "regno", ")", ":", "regno", "==", "FPSW_REGNUM", ";", "size", "=", "GET_MODE_SIZE", "(", "mode", ")", ";", "mclass", "=", "GET_MODE_CLASS", "(", "mode", ")", ";", "if", "(", "GP_REG_P", "(", "regno", ")", "&&", "mode", "!=", "CCFmode", ")", "return", "(", "(", "regno", "-", "GP_REG_FIRST", ")", "&", "1", ")", "==", "0", "||", "size", "<=", "UNITS_PER_WORD", ";", "if", "(", "FP_REG_P", "(", "regno", ")", "&&", "(", "(", "(", "regno", "-", "FP_REG_FIRST", ")", "%", "MAX_FPRS_PER_FMT", ")", "==", "0", "||", "(", "MIN_FPRS_PER_FMT", "==", "1", "&&", "size", "<=", "UNITS_PER_FPREG", ")", ")", ")", "{", "if", "(", "TARGET_O32_FP64A_ABI", "&&", "size", "<=", "4", "&&", "(", "regno", "&", "1", ")", "!=", "0", ")", "return", "false", ";", "if", "(", "mode", "==", "CCFmode", ")", "return", "!", "(", "TARGET_FLOATXX", "&&", "(", "regno", "&", "1", ")", "!=", "0", ")", ";", "if", "(", "TARGET_LOONGSON_VECTORS", "&&", "(", "mode", "==", "V2SImode", "||", "mode", "==", "V4HImode", "||", "mode", "==", "V8QImode", "||", "mode", "==", "DImode", ")", ")", "return", "true", ";", "if", "(", "mclass", "==", "MODE_FLOAT", "||", "mclass", "==", "MODE_COMPLEX_FLOAT", "||", "mclass", "==", "MODE_VECTOR_FLOAT", ")", "return", "size", "<=", "UNITS_PER_FPVALUE", ";", "if", "(", "mclass", "==", "MODE_INT", ")", "return", "size", ">=", "MIN_UNITS_PER_WORD", "&&", "size", "<=", "UNITS_PER_FPREG", ";", "}", "if", "(", "ACC_REG_P", "(", "regno", ")", "&&", "!", "VECTOR_MODE_P", "(", "mode", ")", "&&", "(", "INTEGRAL_MODE_P", "(", "mode", ")", "||", "ALL_FIXED_POINT_MODE_P", "(", "mode", ")", ")", ")", "{", "if", "(", "MD_REG_P", "(", "regno", ")", ")", "{", "if", "(", "size", "<=", "UNITS_PER_WORD", "*", "2", ")", "return", "regno", "==", "(", "size", "<=", "UNITS_PER_WORD", "?", "LO_REGNUM", ":", "MD_REG_FIRST", ")", ";", "}", "else", "{", "if", "(", "size", "<=", "UNITS_PER_WORD", ")", "return", "true", ";", "if", "(", "size", "<=", "UNITS_PER_WORD", "*", "2", "&&", "(", "(", "regno", "-", "DSP_ACC_REG_FIRST", ")", "&", "1", ")", "==", "0", ")", "return", "true", ";", "}", "}", "if", "(", "ALL_COP_REG_P", "(", "regno", ")", ")", "return", "mclass", "==", "MODE_INT", "&&", "size", "<=", "UNITS_PER_WORD", ";", "if", "(", "regno", "==", "GOT_VERSION_REGNUM", ")", "return", "mode", "==", "SImode", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "register", "REGNO", "can", "store", "a", "value", "of", "mode", "MODE", ".", "The", "result", "of", "this", "function", "is", "cached", "in", "mips_hard_regno_mode_ok", "."], "TS_V_token": ["mips", "2", "0", "4", "0", "1", "0", "0", "1", "4", "1", "0", "1", "0", "2", "2", "1", "0"], "File": "mips4", "Func": "mips_hard_regno_mode_ok_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1664, "Length": 386, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "CSKYMCCodeEmitter", "::", "encodeInstruction", "(", "const", "MCInst", "&", "MI", ",", "raw_ostream", "&", "OS", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "const", "MCInstrDesc", "&", "Desc", "=", "MII", ".", "get", "(", "MI", ".", "getOpcode", "(", ")", ")", ";", "unsigned", "Size", "=", "Desc", ".", "getSize", "(", ")", ";", "uint32_t", "Bin", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "uint16_t", "LO16", "=", "static_cast", "<", "uint16_t", ">", "(", "Bin", ")", ";", "uint16_t", "HI16", "=", "static_cast", "<", "uint16_t", ">", "(", "Bin", ">>", "16", ")", ";", "if", "(", "Size", "==", "4", ")", "support", "::", "endian", "::", "write", "<", "uint16_t", ">", "(", "OS", ",", "HI16", ",", "support", "::", "little", ")", ";", "support", "::", "endian", "::", "write", "<", "uint16_t", ">", "(", "OS", ",", "LO16", ",", "support", "::", "little", ")", ";", "++", "MCNumEmitted", ";", "}", ""], "natrual_language": ["Encode", "the", "given", "Inst", "to", "bytes", "and", "append", "to", "CB", "."], "TS_V_token": ["CSKY", "CSKY", "16", "4", "support::endian", "support::little", "support::endian", "support::little"], "File": "CSKYMCCodeEmitter2", "Func": "encodeInstruction", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1665, "Length": 135, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMFrameLowering", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "const", "ARMBaseInstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "ARMBaseInstrInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "if", "(", "!", "hasReservedCallFrame", "(", "MF", ")", ")", "{", "MachineInstr", "*", "Old", "=", "I", ";", "DebugLoc", "dl", "=", "Old", "->", "getDebugLoc", "(", ")", ";", "unsigned", "Amount", "=", "Old", "->", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "if", "(", "Amount", "!=", "0", ")", "{", "unsigned", "Align", "=", "getStackAlignment", "(", ")", ";", "Amount", "=", "(", "Amount", "+", "Align", "-", "1", ")", "/", "Align", "*", "Align", ";", "ARMFunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "assert", "(", "!", "AFI", "->", "isThumb1OnlyFunction", "(", ")", "&&", "\"This eliminateCallFramePseudoInstr does not support Thumb1!\"", ")", ";", "bool", "isARM", "=", "!", "AFI", "->", "isThumbFunction", "(", ")", ";", "unsigned", "Opc", "=", "Old", "->", "getOpcode", "(", ")", ";", "int", "PIdx", "=", "Old", "->", "findFirstPredOperandIdx", "(", ")", ";", "ARMCC", "::", "CondCodes", "Pred", "=", "(", "PIdx", "==", "-", "1", ")", "?", "ARMCC", "::", "AL", ":", "(", "ARMCC", "::", "CondCodes", ")", "Old", "->", "getOperand", "(", "PIdx", ")", ".", "getImm", "(", ")", ";", "if", "(", "Opc", "==", "ARM", "::", "ADJCALLSTACKDOWN", "||", "Opc", "==", "ARM", "::", "tADJCALLSTACKDOWN", ")", "{", "unsigned", "PredReg", "=", "Old", "->", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ";", "emitSPUpdate", "(", "isARM", ",", "MBB", ",", "I", ",", "dl", ",", "TII", ",", "-", "Amount", ",", "MachineInstr", "::", "NoFlags", ",", "Pred", ",", "PredReg", ")", ";", "}", "else", "{", "unsigned", "PredReg", "=", "Old", "->", "getOperand", "(", "3", ")", ".", "getReg", "(", ")", ";", "assert", "(", "Opc", "==", "ARM", "::", "ADJCALLSTACKUP", "||", "Opc", "==", "ARM", "::", "tADJCALLSTACKUP", ")", ";", "emitSPUpdate", "(", "isARM", ",", "MBB", ",", "I", ",", "dl", ",", "TII", ",", "Amount", ",", "MachineInstr", "::", "NoFlags", ",", "Pred", ",", "PredReg", ")", ";", "}", "}", "}", "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": ["ARM", "ARM", "ARM", "ARM", "0", "0", "1", "ARM", "ARM", "\"This eliminateCallFramePseudoInstr does not support Thumb1!\"", "ARM", "ARMCC::CondCodes", "1", "ARMCC::AL", "ARMCC::CondCodes", "ARM::ADJCALLSTACKDOWN", "ARM::tADJCALLSTACKDOWN", "2", "ARM", "3", "ARM::ADJCALLSTACKUP", "ARM::tADJCALLSTACKUP", "ARM"], "File": "ARMFrameLowering26", "Func": "eliminateCallFramePseudoInstr", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1666, "Length": 314, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "addExpr", "(", "MCInst", "&", "Inst", ",", "const", "MCExpr", "*", "Expr", ")", "const", "{", "if", "(", "!", "Expr", ")", "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": ["Mips", "0"], "File": "MipsAsmParser1", "Func": "addExpr", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1667, "Length": 77, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isLegalAddressingMode", "(", "const", "DataLayout", "&", "DL", ",", "const", "AddrMode", "&", "AM", ",", "Type", "*", "Ty", ",", "unsigned", "AS", ")", "const", "{", "CodeModel", "::", "Model", "M", "=", "getTargetMachine", "(", ")", ".", "getCodeModel", "(", ")", ";", "Reloc", "::", "Model", "R", "=", "getTargetMachine", "(", ")", ".", "getRelocationModel", "(", ")", ";", "if", "(", "!", "X86", "::", "isOffsetSuitableForCodeModel", "(", "AM", ".", "BaseOffs", ",", "M", ",", "AM", ".", "BaseGV", "!=", "nullptr", ")", ")", "return", "false", ";", "if", "(", "AM", ".", "BaseGV", ")", "{", "unsigned", "GVFlags", "=", "Subtarget", "->", "ClassifyGlobalReference", "(", "AM", ".", "BaseGV", ",", "getTargetMachine", "(", ")", ")", ";", "if", "(", "isGlobalStubReference", "(", "GVFlags", ")", ")", "return", "false", ";", "if", "(", "AM", ".", "HasBaseReg", "&&", "isGlobalRelativeToPICBase", "(", "GVFlags", ")", ")", "return", "false", ";", "if", "(", "(", "M", "!=", "CodeModel", "::", "Small", "||", "R", "!=", "Reloc", "::", "Static", ")", "&&", "Subtarget", "->", "is64Bit", "(", ")", "&&", "(", "AM", ".", "BaseOffs", "||", "AM", ".", "Scale", ">", "1", ")", ")", "return", "false", ";", "}", "switch", "(", "AM", ".", "Scale", ")", "{", "case", "0", ":", "case", "1", ":", "case", "2", ":", "case", "4", ":", "case", "8", ":", "break", ";", "case", "3", ":", "case", "5", ":", "case", "9", ":", "if", "(", "AM", ".", "HasBaseReg", ")", "return", "false", ";", "break", ";", "default", ":", "return", "false", ";", "}", "return", "true", ";", "}", ""], "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": ["X86", "X86", "X86::isOffsetSuitableForCodeModel", "1", "0", "1", "2", "4", "8", "3", "5", "9"], "File": "X86ISelLowering (2)3", "Func": "isLegalAddressingMode", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1668, "Length": 212, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMAsmBackend", "::", "applyFixup", "(", "const", "MCFixup", "&", "Fixup", ",", "MutableArrayRef", "<", "char", ">", "Data", ",", "uint64_t", "Value", ",", "bool", "IsPCRel", ",", "MCContext", "&", "Ctx", ")", "const", "{", "unsigned", "NumBytes", "=", "getFixupKindNumBytes", "(", "Fixup", ".", "getKind", "(", ")", ")", ";", "Value", "=", "adjustFixupValue", "(", "Fixup", ",", "Value", ",", "IsPCRel", ",", "Ctx", ",", "IsLittleEndian", ",", "true", ")", ";", "if", "(", "!", "Value", ")", "return", ";", "unsigned", "Offset", "=", "Fixup", ".", "getOffset", "(", ")", ";", "assert", "(", "Offset", "+", "NumBytes", "<=", "Data", ".", "size", "(", ")", "&&", "\"Invalid fixup offset!\"", ")", ";", "unsigned", "FullSizeBytes", ";", "if", "(", "!", "IsLittleEndian", ")", "{", "FullSizeBytes", "=", "getFixupKindContainerSizeBytes", "(", "Fixup", ".", "getKind", "(", ")", ")", ";", "assert", "(", "(", "Offset", "+", "FullSizeBytes", ")", "<=", "Data", ".", "size", "(", ")", "&&", "\"Invalid fixup size!\"", ")", ";", "assert", "(", "NumBytes", "<=", "FullSizeBytes", "&&", "\"Invalid fixup size!\"", ")", ";", "}", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "NumBytes", ";", "++", "i", ")", "{", "unsigned", "Idx", "=", "IsLittleEndian", "?", "i", ":", "(", "FullSizeBytes", "-", "1", "-", "i", ")", ";", "Data", "[", "Offset", "+", "Idx", "]", "|=", "uint8_t", "(", "(", "Value", ">>", "(", "i", "*", "8", ")", ")", "&", "0xff", ")", ";", "}", "}", ""], "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": ["ARM", "ARM", "\"Invalid fixup offset!\"", "\"Invalid fixup size!\"", "\"Invalid fixup size!\"", "0", "1", "8", "0xff"], "File": "ARMAsmBackend4", "Func": "applyFixup", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1669, "Length": 189, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "alias_set_type", "ix86_GOT_alias_set", "(", "void", ")", "{", "static", "alias_set_type", "set", "=", "-", "1", ";", "if", "(", "set", "==", "-", "1", ")", "set", "=", "new_alias_set", "(", ")", ";", "return", "set", ";", "}", ""], "natrual_language": ["Return", "an", "unique", "alias", "set", "for", "the", "GOT", "."], "TS_V_token": ["i386", "1", "1"], "File": "i386", "Func": "ix86_GOT_alias_set", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1670, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsAsmParser", "::", "ParseInstruction", "(", "ParseInstructionInfo", "&", "Info", ",", "StringRef", "Name", ",", "SMLoc", "NameLoc", ",", "OperandVector", "&", "Operands", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"ParseInstruction\\n\"", ")", ";", "getTargetStreamer", "(", ")", ".", "setCanHaveModuleDir", "(", "false", ")", ";", "if", "(", "!", "mnemonicIsValid", "(", "Name", ",", "0", ")", ")", "{", "Parser", ".", "eatToEndOfStatement", "(", ")", ";", "return", "Error", "(", "NameLoc", ",", "\"Unknown instruction\"", ")", ";", "}", "Operands", ".", "push_back", "(", "MipsOperand", "::", "CreateToken", "(", "Name", ",", "NameLoc", ",", "*", "this", ")", ")", ";", "if", "(", "getLexer", "(", ")", ".", "isNot", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "{", "if", "(", "ParseOperand", "(", "Operands", ",", "Name", ")", ")", "{", "SMLoc", "Loc", "=", "getLexer", "(", ")", ".", "getLoc", "(", ")", ";", "Parser", ".", "eatToEndOfStatement", "(", ")", ";", "return", "Error", "(", "Loc", ",", "\"unexpected token in argument list\"", ")", ";", "}", "if", "(", "getLexer", "(", ")", ".", "is", "(", "AsmToken", "::", "LBrac", ")", "&&", "ParseBracketSuffix", "(", "Name", ",", "Operands", ")", ")", "return", "true", ";", "while", "(", "getLexer", "(", ")", ".", "is", "(", "AsmToken", "::", "Comma", ")", ")", "{", "Parser", ".", "Lex", "(", ")", ";", "if", "(", "ParseOperand", "(", "Operands", ",", "Name", ")", ")", "{", "SMLoc", "Loc", "=", "getLexer", "(", ")", ".", "getLoc", "(", ")", ";", "Parser", ".", "eatToEndOfStatement", "(", ")", ";", "return", "Error", "(", "Loc", ",", "\"unexpected token in argument list\"", ")", ";", "}", "if", "(", "getLexer", "(", ")", ".", "is", "(", "AsmToken", "::", "LBrac", ")", ")", "{", "if", "(", "ParseBracketSuffix", "(", "Name", ",", "Operands", ")", ")", "return", "true", ";", "}", "else", "if", "(", "getLexer", "(", ")", ".", "is", "(", "AsmToken", "::", "LParen", ")", "&&", "ParseParenSuffix", "(", "Name", ",", "Operands", ")", ")", "return", "true", ";", "}", "}", "if", "(", "getLexer", "(", ")", ".", "isNot", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "{", "SMLoc", "Loc", "=", "getLexer", "(", ")", ".", "getLoc", "(", ")", ";", "Parser", ".", "eatToEndOfStatement", "(", ")", ";", "return", "Error", "(", "Loc", ",", "\"unexpected token in argument list\"", ")", ";", "}", "Parser", ".", "Lex", "(", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["ParseInstruction", "-", "Parse", "one", "assembly", "instruction", "."], "TS_V_token": ["Mips", "Mips", "\"ParseInstruction\\n\"", "0", "\"Unknown instruction\"", "MipsOperand::CreateToken", "\"unexpected token in argument list\"", "\"unexpected token in argument list\"", "\"unexpected token in argument list\""], "File": "MipsAsmParser1", "Func": "ParseInstruction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1671, "Length": 313, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ShouldShrinkFPConstant", "(", "EVT", "VT", ")", "const", "{", "return", "VT", "!=", "MVT", "::", "f128", ";", "}", ""], "natrual_language": ["If", "true", ",", "then", "instruction", "selection", "should", "seek", "to", "shrink", "the", "FP", "constant", "of", "the", "specified", "type", "to", "a", "smaller", "type", "in", "order", "to", "save", "space", "and", "/", "or", "reduce", "runtime", "."], "TS_V_token": ["Sparc", "MVT::f128"], "File": "SparcISelLowering2", "Func": "ShouldShrinkFPConstant", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1672, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "ARMTargetLowering", "::", "PerformDAGCombine", "(", "SDNode", "*", "N", ",", "DAGCombinerInfo", "&", "DCI", ")", "const", "{", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "ADD", ":", "return", "PerformADDCombine", "(", "N", ",", "DCI", ")", ";", "case", "ISD", "::", "SUB", ":", "return", "PerformSUBCombine", "(", "N", ",", "DCI", ")", ";", "case", "ISD", "::", "MUL", ":", "return", "PerformMULCombine", "(", "N", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "OR", ":", "return", "PerformORCombine", "(", "N", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ARMISD", "::", "VMOVRRD", ":", "return", "PerformVMOVRRDCombine", "(", "N", ",", "DCI", ")", ";", "case", "ARMISD", "::", "VDUPLANE", ":", "return", "PerformVDUPLANECombine", "(", "N", ",", "DCI", ")", ";", "case", "ISD", "::", "INTRINSIC_WO_CHAIN", ":", "return", "PerformIntrinsicCombine", "(", "N", ",", "DCI", ".", "DAG", ")", ";", "case", "ISD", "::", "SHL", ":", "case", "ISD", "::", "SRA", ":", "case", "ISD", "::", "SRL", ":", "return", "PerformShiftCombine", "(", "N", ",", "DCI", ".", "DAG", ",", "Subtarget", ")", ";", "case", "ISD", "::", "SIGN_EXTEND", ":", "case", "ISD", "::", "ZERO_EXTEND", ":", "case", "ISD", "::", "ANY_EXTEND", ":", "return", "PerformExtendCombine", "(", "N", ",", "DCI", ".", "DAG", ",", "Subtarget", ")", ";", "case", "ISD", "::", "SELECT_CC", ":", "return", "PerformSELECT_CCCombine", "(", "N", ",", "DCI", ".", "DAG", ",", "Subtarget", ")", ";", "}", "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": ["ARM", "ARM", "ISD::ADD", "ISD::SUB", "ISD::MUL", "ISD::OR", "ARMISD::VMOVRRD", "ARMISD::VDUPLANE", "ISD::INTRINSIC_WO_CHAIN", "ISD::SHL", "ISD::SRA", "ISD::SRL", "ISD::SIGN_EXTEND", "ISD::ZERO_EXTEND", "ISD::ANY_EXTEND", "ISD::SELECT_CC"], "File": "ARMISelLowering54", "Func": "PerformDAGCombine", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1673, "Length": 203, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "inline", "hashval_t", "wrapped_symbol_hasher", "::", "hash", "(", "const", "value_type", "*", "v", ")", "{", "return", "htab_hash_string", "(", "v", ")", ";", "}", ""], "natrual_language": ["Hash", "function", "for", "builtin", "functions", "with", "up", "to", "3", "arguments", "and", "a", "return", "type", "."], "TS_V_token": ["i386"], "File": "winnt4", "Func": "hash", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1674, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_swap_registers", "(", "unsigned", "int", "i", ")", "{", "int", "tmpi", ";", "const", "char", "*", "tmps", ";", "SWAP_INT", "(", "fixed_regs", "[", "i", "]", ",", "fixed_regs", "[", "i", "+", "1", "]", ")", ";", "SWAP_INT", "(", "call_used_regs", "[", "i", "]", ",", "call_used_regs", "[", "i", "+", "1", "]", ")", ";", "SWAP_INT", "(", "call_really_used_regs", "[", "i", "]", ",", "call_really_used_regs", "[", "i", "+", "1", "]", ")", ";", "SWAP_STRING", "(", "reg_names", "[", "i", "]", ",", "reg_names", "[", "i", "+", "1", "]", ")", ";", "}", ""], "natrual_language": ["Swap", "the", "register", "information", "for", "registers", "I", "and", "I", "+", "1", ",", "which", "currently", "have", "the", "wrong", "endianness", ".", "Note", "that", "the", "registers", "'", "fixedness", "and", "call-clobberedness", "might", "have", "been", "set", "on", "the", "command", "line", "."], "TS_V_token": ["mips", "1", "1", "1", "1"], "File": "mips4", "Func": "mips_swap_registers", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1675, "Length": 78, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "AtomicExpansionKind", "AArch64TargetLowering", "::", "shouldExpandAtomicRMWInIR", "(", "AtomicRMWInst", "*", "AI", ")", "const", "{", "unsigned", "Size", "=", "AI", "->", "getType", "(", ")", "->", "getPrimitiveSizeInBits", "(", ")", ";", "return", "Size", "<=", "128", "?", "AtomicExpansionKind", "::", "LLSC", ":", "AtomicExpansionKind", "::", "None", ";", "}", ""], "natrual_language": ["Returns", "how", "the", "IR-level", "AtomicExpand", "pass", "should", "expand", "the", "given", "AtomicRMW", ",", "if", "at", "all", "."], "TS_V_token": ["AArch64", "AArch64", "128"], "File": "AArch64ISelLowering (2)", "Func": "shouldExpandAtomicRMWInIR", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1676, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "dump", "(", ")", "{", "dbgs", "(", ")", "<<", "\"X86ISelAddressMode \"", "<<", "this", "<<", "'\\n'", ";", "dbgs", "(", ")", "<<", "\"Base_Reg \"", ";", "if", "(", "Base_Reg", ".", "getNode", "(", ")", ")", "Base_Reg", ".", "getNode", "(", ")", "->", "dump", "(", ")", ";", "else", "dbgs", "(", ")", "<<", "\"nul\"", ";", "dbgs", "(", ")", "<<", "\" Base.FrameIndex \"", "<<", "Base_FrameIndex", "<<", "'\\n'", "<<", "\" Scale\"", "<<", "Scale", "<<", "'\\n'", "<<", "\"IndexReg \"", ";", "if", "(", "IndexReg", ".", "getNode", "(", ")", ")", "IndexReg", ".", "getNode", "(", ")", "->", "dump", "(", ")", ";", "else", "dbgs", "(", ")", "<<", "\"nul\"", ";", "dbgs", "(", ")", "<<", "\" Disp \"", "<<", "Disp", "<<", "'\\n'", "<<", "\"GV \"", ";", "if", "(", "GV", ")", "GV", "->", "dump", "(", ")", ";", "else", "dbgs", "(", ")", "<<", "\"nul\"", ";", "dbgs", "(", ")", "<<", "\" CP \"", ";", "if", "(", "CP", ")", "CP", "->", "dump", "(", ")", ";", "else", "dbgs", "(", ")", "<<", "\"nul\"", ";", "dbgs", "(", ")", "<<", "'\\n'", "<<", "\"ES \"", ";", "if", "(", "ES", ")", "dbgs", "(", ")", "<<", "ES", ";", "else", "dbgs", "(", ")", "<<", "\"nul\"", ";", "dbgs", "(", ")", "<<", "\" JT\"", "<<", "JT", "<<", "\" Align\"", "<<", "Align", "<<", "'\\n'", ";", "}", ""], "natrual_language": ["Dump", "the", "plan", "to", "stderr", "(", "for", "debugging", ")", "."], "TS_V_token": ["X86", "\"X86ISelAddressMode \"", "\"Base_Reg \"", "\"nul\"", "\" Base.FrameIndex \"", "\" Scale\"", "\"IndexReg \"", "\"nul\"", "\" Disp \"", "\"GV \"", "\"nul\"", "\" CP \"", "\"nul\"", "\"ES \"", "\"nul\"", "\" JT\"", "\" Align\""], "File": "X86ISelDAGToDAG100", "Func": "dump", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1677, "Length": 181, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", "\"Mips OptimizePICCall\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["Mips", "\"Mips OptimizePICCall\""], "File": "MipsOptimizePICCall12", "Func": "getPassName", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1678, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "ARMFunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "if", "(", "AFI", "->", "getGlobalBaseReg", "(", ")", "==", "0", ")", "return", "false", ";", "const", "ARMTargetMachine", "*", "TM", "=", "static_cast", "<", "const", "ARMTargetMachine", "*", ">", "(", "&", "MF", ".", "getTarget", "(", ")", ")", ";", "if", "(", "TM", "->", "getRelocationModel", "(", ")", "!=", "Reloc", "::", "PIC_", ")", "return", "false", ";", "LLVMContext", "*", "Context", "=", "&", "MF", ".", "getFunction", "(", ")", "->", "getContext", "(", ")", ";", "unsigned", "ARMPCLabelIndex", "=", "AFI", "->", "createPICLabelUId", "(", ")", ";", "unsigned", "PCAdj", "=", "TM", "->", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ".", "isThumb", "(", ")", "?", "4", ":", "8", ";", "ARMConstantPoolValue", "*", "CPV", "=", "ARMConstantPoolSymbol", "::", "Create", "(", "*", "Context", ",", "\"_GLOBAL_OFFSET_TABLE_\"", ",", "ARMPCLabelIndex", ",", "PCAdj", ")", ";", "unsigned", "Align", "=", "TM", "->", "getDataLayout", "(", ")", "->", "getPrefTypeAlignment", "(", "Type", "::", "getInt32PtrTy", "(", "*", "Context", ")", ")", ";", "unsigned", "Idx", "=", "MF", ".", "getConstantPool", "(", ")", "->", "getConstantPoolIndex", "(", "CPV", ",", "Align", ")", ";", "MachineBasicBlock", "&", "FirstMBB", "=", "MF", ".", "front", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "FirstMBB", ".", "begin", "(", ")", ";", "DebugLoc", "DL", "=", "FirstMBB", ".", "findDebugLoc", "(", "MBBI", ")", ";", "unsigned", "TempReg", "=", "MF", ".", "getRegInfo", "(", ")", ".", "createVirtualRegister", "(", "&", "ARM", "::", "rGPRRegClass", ")", ";", "unsigned", "Opc", "=", "TM", "->", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ".", "isThumb2", "(", ")", "?", "ARM", "::", "t2LDRpci", ":", "ARM", "::", "LDRcp", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "TM", "->", "getInstrInfo", "(", ")", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "Opc", ")", ",", "TempReg", ")", ".", "addConstantPoolIndex", "(", "Idx", ")", ";", "if", "(", "Opc", "==", "ARM", "::", "LDRcp", ")", "MIB", ".", "addImm", "(", "0", ")", ";", "AddDefaultPred", "(", "MIB", ")", ";", "unsigned", "GlobalBaseReg", "=", "AFI", "->", "getGlobalBaseReg", "(", ")", ";", "Opc", "=", "TM", "->", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ".", "isThumb2", "(", ")", "?", "ARM", "::", "tPICADD", ":", "ARM", "::", "PICADD", ";", "MIB", "=", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "Opc", ")", ",", "GlobalBaseReg", ")", ".", "addReg", "(", "TempReg", ")", ".", "addImm", "(", "ARMPCLabelIndex", ")", ";", "if", "(", "Opc", "==", "ARM", "::", "PICADD", ")", "AddDefaultPred", "(", "MIB", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "0", "ARM", "ARM", "ARM", "ARM", "4", "8", "ARM", "ARM", "\"_GLOBAL_OFFSET_TABLE_\"", "ARM", "ARM::rGPRRegClass", "ARM", "ARM::t2LDRpci", "ARM::LDRcp", "ARM::LDRcp", "0", "ARM", "ARM::tPICADD", "ARM::PICADD", "ARM", "ARM::PICADD"], "File": "ARMInstrInfo2", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1679, "Length": 377, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "rs6000_expand_vector_set", "(", "rtx", "target", ",", "rtx", "val", ",", "int", "elt", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "target", ")", ";", "machine_mode", "inner_mode", "=", "GET_MODE_INNER", "(", "mode", ")", ";", "rtx", "reg", "=", "gen_reg_rtx", "(", "mode", ")", ";", "rtx", "mask", ",", "mem", ",", "x", ";", "int", "width", "=", "GET_MODE_SIZE", "(", "inner_mode", ")", ";", "int", "i", ";", "if", "(", "VECTOR_MEM_VSX_P", "(", "mode", ")", "&&", "(", "mode", "==", "V2DFmode", "||", "mode", "==", "V2DImode", ")", ")", "{", "rtx", "(", "*", "set_func", ")", "(", "rtx", ",", "rtx", ",", "rtx", ",", "rtx", ")", "=", "(", "(", "mode", "==", "V2DFmode", ")", "?", "gen_vsx_set_v2df", ":", "gen_vsx_set_v2di", ")", ";", "emit_insn", "(", "set_func", "(", "target", ",", "target", ",", "val", ",", "GEN_INT", "(", "elt", ")", ")", ")", ";", "return", ";", "}", "if", "(", "GET_MODE_SIZE", "(", "mode", ")", "==", "GET_MODE_SIZE", "(", "inner_mode", ")", "&&", "elt", "==", "0", ")", "{", "emit_move_insn", "(", "target", ",", "gen_lowpart", "(", "mode", ",", "val", ")", ")", ";", "return", ";", "}", "mem", "=", "assign_stack_temp", "(", "mode", ",", "GET_MODE_SIZE", "(", "inner_mode", ")", ")", ";", "emit_move_insn", "(", "adjust_address_nv", "(", "mem", ",", "inner_mode", ",", "0", ")", ",", "val", ")", ";", "x", "=", "gen_rtx_UNSPEC", "(", "VOIDmode", ",", "gen_rtvec", "(", "1", ",", "const0_rtx", ")", ",", "UNSPEC_LVE", ")", ";", "emit_insn", "(", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "gen_rtvec", "(", "2", ",", "gen_rtx_SET", "(", "reg", ",", "mem", ")", ",", "x", ")", ")", ")", ";", "mask", "=", "gen_rtx_PARALLEL", "(", "V16QImode", ",", "rtvec_alloc", "(", "16", ")", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "16", ";", "++", "i", ")", "XVECEXP", "(", "mask", ",", "0", ",", "i", ")", "=", "GEN_INT", "(", "i", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "width", ";", "++", "i", ")", "XVECEXP", "(", "mask", ",", "0", ",", "elt", "*", "width", "+", "i", ")", "=", "GEN_INT", "(", "i", "+", "0x10", ")", ";", "x", "=", "gen_rtx_CONST_VECTOR", "(", "V16QImode", ",", "XVEC", "(", "mask", ",", "0", ")", ")", ";", "if", "(", "BYTES_BIG_ENDIAN", ")", "x", "=", "gen_rtx_UNSPEC", "(", "mode", ",", "gen_rtvec", "(", "3", ",", "target", ",", "reg", ",", "force_reg", "(", "V16QImode", ",", "x", ")", ")", ",", "UNSPEC_VPERM", ")", ";", "else", "{", "rtx", "notx", "=", "gen_rtx_NOT", "(", "V16QImode", ",", "force_reg", "(", "V16QImode", ",", "x", ")", ")", ";", "rtx", "iorx", "=", "(", "TARGET_P8_VECTOR", "?", "gen_rtx_IOR", "(", "V16QImode", ",", "notx", ",", "notx", ")", ":", "gen_rtx_AND", "(", "V16QImode", ",", "notx", ",", "notx", ")", ")", ";", "rtx", "tmp", "=", "gen_reg_rtx", "(", "V16QImode", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "tmp", ",", "iorx", ")", ")", ";", "x", "=", "gen_rtx_UNSPEC", "(", "mode", ",", "gen_rtvec", "(", "3", ",", "reg", ",", "target", ",", "tmp", ")", ",", "UNSPEC_VPERM", ")", ";", "}", "emit_insn", "(", "gen_rtx_SET", "(", "target", ",", "x", ")", ")", ";", "}", ""], "natrual_language": ["Set", "field", "ELT_RTX", "of", "TARGET", "to", "VAL", "."], "TS_V_token": ["rs6000", "0", "0", "1", "2", "16", "0", "16", "0", "0", "0", "0x10", "0", "3", "3"], "File": "rs60005", "Func": "rs6000_expand_vector_set", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1680, "Length": 423, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "char", "X86Subtarget", "::", "classifyGlobalFunctionReference", "(", "const", "GlobalValue", "*", "GV", ",", "const", "Module", "&", "M", ")", "const", "{", "if", "(", "shouldAssumeDSOLocal", "(", "TM", ".", "getRelocationModel", "(", ")", ",", "TargetTriple", ",", "M", ",", "GV", ")", ")", "return", "X86II", "::", "MO_NO_FLAG", ";", "assert", "(", "!", "isTargetCOFF", "(", ")", ")", ";", "if", "(", "isTargetELF", "(", ")", ")", "return", "X86II", "::", "MO_PLT", ";", "if", "(", "is64Bit", "(", ")", ")", "{", "auto", "*", "F", "=", "dyn_cast_or_null", "<", "Function", ">", "(", "GV", ")", ";", "if", "(", "F", "&&", "F", "->", "hasFnAttribute", "(", "Attribute", "::", "NonLazyBind", ")", ")", "return", "X86II", "::", "MO_GOTPCREL", ";", "return", "X86II", "::", "MO_NO_FLAG", ";", "}", "if", "(", "!", "getTargetTriple", "(", ")", ".", "isMacOSX", "(", ")", "||", "getTargetTriple", "(", ")", ".", "isMacOSXVersionLT", "(", "10", ",", "5", ")", ")", "return", "X86II", "::", "MO_DARWIN_STUB", ";", "return", "X86II", "::", "MO_NO_FLAG", ";", "}", ""], "natrual_language": ["Classify", "a", "global", "function", "reference", "for", "the", "current", "subtarget", "."], "TS_V_token": ["X86", "X86", "X86II::MO_NO_FLAG", "X86II::MO_PLT", "X86II::MO_GOTPCREL", "X86II::MO_NO_FLAG", "10", "5", "X86II::MO_DARWIN_STUB", "X86II::MO_NO_FLAG"], "File": "X86Subtarget64", "Func": "classifyGlobalFunctionReference", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1681, "Length": 135, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ARM64LoadStoreOpt", "::", "getMemSize", "(", "MachineInstr", "*", "MemMI", ")", "{", "switch", "(", "MemMI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Opcode has has unknown size!\"", ")", ";", "case", "ARM64", "::", "STRSui", ":", "case", "ARM64", "::", "STURSi", ":", "return", "4", ";", "case", "ARM64", "::", "STRDui", ":", "case", "ARM64", "::", "STURDi", ":", "return", "8", ";", "case", "ARM64", "::", "STRQui", ":", "case", "ARM64", "::", "STURQi", ":", "return", "16", ";", "case", "ARM64", "::", "STRWui", ":", "case", "ARM64", "::", "STURWi", ":", "return", "4", ";", "case", "ARM64", "::", "STRXui", ":", "case", "ARM64", "::", "STURXi", ":", "return", "8", ";", "case", "ARM64", "::", "LDRSui", ":", "case", "ARM64", "::", "LDURSi", ":", "return", "4", ";", "case", "ARM64", "::", "LDRDui", ":", "case", "ARM64", "::", "LDURDi", ":", "return", "8", ";", "case", "ARM64", "::", "LDRQui", ":", "case", "ARM64", "::", "LDURQi", ":", "return", "16", ";", "case", "ARM64", "::", "LDRWui", ":", "case", "ARM64", "::", "LDURWi", ":", "return", "4", ";", "case", "ARM64", "::", "LDRXui", ":", "case", "ARM64", "::", "LDURXi", ":", "return", "8", ";", "}", "}", ""], "natrual_language": ["Returns", "the", "size", "in", "bytes", "of", "the", "memory", "access", "."], "TS_V_token": ["ARM64", "ARM64", "\"Opcode has has unknown size!\"", "ARM64::STRSui", "ARM64::STURSi", "4", "ARM64::STRDui", "ARM64::STURDi", "8", "ARM64::STRQui", "ARM64::STURQi", "16", "ARM64::STRWui", "ARM64::STURWi", "4", "ARM64::STRXui", "ARM64::STURXi", "8", "ARM64::LDRSui", "ARM64::LDURSi", "4", "ARM64::LDRDui", "ARM64::LDURDi", "8", "ARM64::LDRQui", "ARM64::LDURQi", "16", "ARM64::LDRWui", "ARM64::LDURWi", "4", "ARM64::LDRXui", "ARM64::LDURXi", "8"], "File": "ARM64LoadStoreOptimizer", "Func": "getMemSize", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1682, "Length": 158, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsTargetMachine", "::", "addPostRegAlloc", "(", "PassManagerBase", "&", "PM", ")", "{", "PM", ".", "add", "(", "createMipsExpandPseudoPass", "(", "*", "this", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "after", "register", "allocation", "pass", "pipeline", "but", "before", "prolog-epilog", "insertion", "."], "TS_V_token": ["Mips", "Mips", "Mips"], "File": "MipsTargetMachine61", "Func": "addPostRegAlloc", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1683, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "X86TargetLowering", "::", "getSqrtEstimate", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ",", "int", "Enabled", ",", "int", "&", "RefinementSteps", ",", "bool", "&", "UseOneConstNR", ",", "bool", "Reciprocal", ")", "const", "{", "SDLoc", "DL", "(", "Op", ")", ";", "EVT", "VT", "=", "Op", ".", "getValueType", "(", ")", ";", "if", "(", "(", "VT", "==", "MVT", "::", "f32", "&&", "Subtarget", ".", "hasSSE1", "(", ")", ")", "||", "(", "VT", "==", "MVT", "::", "v4f32", "&&", "Subtarget", ".", "hasSSE1", "(", ")", "&&", "Reciprocal", ")", "||", "(", "VT", "==", "MVT", "::", "v4f32", "&&", "Subtarget", ".", "hasSSE2", "(", ")", "&&", "!", "Reciprocal", ")", "||", "(", "VT", "==", "MVT", "::", "v8f32", "&&", "Subtarget", ".", "hasAVX", "(", ")", ")", "||", "(", "VT", "==", "MVT", "::", "v16f32", "&&", "Subtarget", ".", "useAVX512Regs", "(", ")", ")", ")", "{", "if", "(", "RefinementSteps", "==", "ReciprocalEstimate", "::", "Unspecified", ")", "RefinementSteps", "=", "1", ";", "UseOneConstNR", "=", "false", ";", "unsigned", "Opcode", "=", "VT", "==", "MVT", "::", "v16f32", "?", "X86ISD", "::", "RSQRT14", ":", "X86ISD", "::", "FRSQRT", ";", "SDValue", "Estimate", "=", "DAG", ".", "getNode", "(", "Opcode", ",", "DL", ",", "VT", ",", "Op", ")", ";", "if", "(", "RefinementSteps", "==", "0", "&&", "!", "Reciprocal", ")", "Estimate", "=", "DAG", ".", "getNode", "(", "ISD", "::", "FMUL", ",", "DL", ",", "VT", ",", "Op", ",", "Estimate", ")", ";", "return", "Estimate", ";", "}", "if", "(", "VT", ".", "getScalarType", "(", ")", "==", "MVT", "::", "f16", "&&", "isTypeLegal", "(", "VT", ")", "&&", "Subtarget", ".", "hasFP16", "(", ")", ")", "{", "assert", "(", "Reciprocal", "&&", "\"Don't replace SQRT with RSQRT for half type\"", ")", ";", "if", "(", "RefinementSteps", "==", "ReciprocalEstimate", "::", "Unspecified", ")", "RefinementSteps", "=", "0", ";", "if", "(", "VT", "==", "MVT", "::", "f16", ")", "{", "SDValue", "Zero", "=", "DAG", ".", "getIntPtrConstant", "(", "0", ",", "DL", ")", ";", "SDValue", "Undef", "=", "DAG", ".", "getUNDEF", "(", "MVT", "::", "v8f16", ")", ";", "Op", "=", "DAG", ".", "getNode", "(", "ISD", "::", "SCALAR_TO_VECTOR", ",", "DL", ",", "MVT", "::", "v8f16", ",", "Op", ")", ";", "Op", "=", "DAG", ".", "getNode", "(", "X86ISD", "::", "RSQRT14S", ",", "DL", ",", "MVT", "::", "v8f16", ",", "Undef", ",", "Op", ")", ";", "return", "DAG", ".", "getNode", "(", "ISD", "::", "EXTRACT_VECTOR_ELT", ",", "DL", ",", "MVT", "::", "f16", ",", "Op", ",", "Zero", ")", ";", "}", "return", "DAG", ".", "getNode", "(", "X86ISD", "::", "RSQRT14", ",", "DL", ",", "VT", ",", "Op", ")", ";", "}", "return", "SDValue", "(", ")", ";", "}", ""], "natrual_language": ["Hooks", "for", "building", "estimates", "in", "place", "of", "slower", "divisions", "and", "square", "roots", "."], "TS_V_token": ["X86", "X86", "MVT::f32", "MVT::v4f32", "MVT::v4f32", "MVT::v8f32", "MVT::v16f32", "1", "MVT::v16f32", "X86ISD::RSQRT14", "X86ISD::FRSQRT", "0", "ISD::FMUL", "MVT::f16", "\"Don't replace SQRT with RSQRT for half type\"", "0", "MVT::f16", "0", "MVT::v8f16", "ISD::SCALAR_TO_VECTOR", "MVT::v8f16", "X86ISD::RSQRT14S", "MVT::v8f16", "ISD::EXTRACT_VECTOR_ELT", "MVT::f16", "X86ISD::RSQRT14"], "File": "X86ISelLowering100", "Func": "getSqrtEstimate", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1684, "Length": 362, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "nds32_emit_isr_reset_content", "(", "void", ")", "{", "unsigned", "int", "i", ";", "unsigned", "int", "total_n_vectors", ";", "char", "reset_handler_name", "[", "100", "]", ";", "char", "section_name", "[", "100", "]", ";", "char", "symbol_name", "[", "100", "]", ";", "total_n_vectors", "=", "nds32_isr_vectors", "[", "0", "]", ".", "total_n_vectors", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t! RESET HANDLER CONTENT - BEGIN !\\n\"", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t.section\\t.rodata\\n\"", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t.align\\t2\\n\"", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t ! references to jmptbl section entries\\n\"", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "total_n_vectors", ";", "i", "++", ")", "fprintf", "(", "asm_out_file", ",", "\"\\t.word\\t_nds32_jmptbl_%02d\\n\"", ",", "i", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t ! references to vector section entries\\n\"", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "total_n_vectors", ";", "i", "++", ")", "fprintf", "(", "asm_out_file", ",", "\"\\t.word\\t_nds32_vector_%02d\\n\"", ",", "i", ")", ";", "snprintf", "(", "section_name", ",", "sizeof", "(", "section_name", ")", ",", "\".nds32_jmptbl.00\"", ")", ";", "snprintf", "(", "symbol_name", ",", "sizeof", "(", "symbol_name", ")", ",", "\"_nds32_jmptbl_00\"", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t! ....................................\\n\"", ")", ";", "nds32_emit_section_head_template", "(", "section_name", ",", "symbol_name", ",", "2", ",", "true", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t.word\\t%s\\n\"", ",", "nds32_isr_vectors", "[", "0", "]", ".", "func_name", ")", ";", "nds32_emit_section_tail_template", "(", "symbol_name", ")", ";", "snprintf", "(", "section_name", ",", "sizeof", "(", "section_name", ")", ",", "\".nds32_vector.00\"", ")", ";", "snprintf", "(", "symbol_name", ",", "sizeof", "(", "symbol_name", ")", ",", "\"_nds32_vector_00\"", ")", ";", "snprintf", "(", "reset_handler_name", ",", "sizeof", "(", "reset_handler_name", ")", ",", "\"_nds32_reset\"", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t! ....................................\\n\"", ")", ";", "nds32_emit_section_head_template", "(", "section_name", ",", "symbol_name", ",", "floor_log2", "(", "nds32_isr_vector_size", ")", ",", "false", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\tj\\t%s ! jump to reset handler\\n\"", ",", "reset_handler_name", ")", ";", "nds32_emit_section_tail_template", "(", "symbol_name", ")", ";", "snprintf", "(", "section_name", ",", "sizeof", "(", "section_name", ")", ",", "\".nds32_nmih\"", ")", ";", "snprintf", "(", "symbol_name", ",", "sizeof", "(", "symbol_name", ")", ",", "\"_nds32_nmih\"", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t! ....................................\\n\"", ")", ";", "nds32_emit_section_head_template", "(", "section_name", ",", "symbol_name", ",", "2", ",", "true", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t.word\\t%s\\n\"", ",", "(", "strlen", "(", "nds32_isr_vectors", "[", "0", "]", ".", "nmi_name", ")", "==", "0", ")", "?", "\"0\"", ":", "nds32_isr_vectors", "[", "0", "]", ".", "nmi_name", ")", ";", "nds32_emit_section_tail_template", "(", "symbol_name", ")", ";", "snprintf", "(", "section_name", ",", "sizeof", "(", "section_name", ")", ",", "\".nds32_wrh\"", ")", ";", "snprintf", "(", "symbol_name", ",", "sizeof", "(", "symbol_name", ")", ",", "\"_nds32_wrh\"", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t! ....................................\\n\"", ")", ";", "nds32_emit_section_head_template", "(", "section_name", ",", "symbol_name", ",", "2", ",", "true", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t.word\\t%s\\n\"", ",", "(", "strlen", "(", "nds32_isr_vectors", "[", "0", "]", ".", "warm_name", ")", "==", "0", ")", "?", "\"0\"", ":", "nds32_isr_vectors", "[", "0", "]", ".", "warm_name", ")", ";", "nds32_emit_section_tail_template", "(", "symbol_name", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t! RESET HANDLER CONTENT - END !\\n\"", ")", ";", "}", ""], "natrual_language": ["Function", "to", "emit", "isr", "reset", "handler", "content", ".", "Including", "all", "jmptbl/vector", "references", ",", "jmptbl", "section", ",", "vector", "section", ",", "nmi", "handler", "section", ",", "and", "warm", "handler", "section", "."], "TS_V_token": ["nds32", "100", "100", "100", "0", "\"\\t! RESET HANDLER CONTENT - BEGIN !\\n\"", "\"\\t.section\\t.rodata\\n\"", "\"\\t.align\\t2\\n\"", "\"\\t ! references to jmptbl section entries\\n\"", "0", "\"\\t.word\\t_nds32_jmptbl_%02d\\n\"", "\"\\t ! references to vector section entries\\n\"", "0", "\"\\t.word\\t_nds32_vector_%02d\\n\"", "\".nds32_jmptbl.00\"", "\"_nds32_jmptbl_00\"", "\"\\t! ....................................\\n\"", "2", "\"\\t.word\\t%s\\n\"", "0", "\".nds32_vector.00\"", "\"_nds32_vector_00\"", "\"_nds32_reset\"", "\"\\t! ....................................\\n\"", "\"\\tj\\t%s ! jump to reset handler\\n\"", "\".nds32_nmih\"", "\"_nds32_nmih\"", "\"\\t! ....................................\\n\"", "2", "\"\\t.word\\t%s\\n\"", "0", "0", "\"0\"", "0", "\".nds32_wrh\"", "\"_nds32_wrh\"", "\"\\t! ....................................\\n\"", "2", "\"\\t.word\\t%s\\n\"", "0", "0", "\"0\"", "0", "\"\\t! RESET HANDLER CONTENT - END !\\n\""], "File": "nds32-isr", "Func": "nds32_emit_isr_reset_content", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1685, "Length": 415, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ix86_mode_entry", "(", "int", "entity", ")", "{", "switch", "(", "entity", ")", "{", "case", "X86_DIRFLAG", ":", "return", "ix86_dirflag_mode_entry", "(", ")", ";", "case", "AVX_U128", ":", "return", "ix86_avx_u128_mode_entry", "(", ")", ";", "case", "I387_TRUNC", ":", "case", "I387_FLOOR", ":", "case", "I387_CEIL", ":", "case", "I387_MASK_PM", ":", "return", "I387_CW_ANY", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Return", "a", "mode", "that", "ENTITY", "is", "assumed", "to", "be", "switched", "to", "at", "function", "entry", "."], "TS_V_token": ["i386"], "File": "i3866", "Func": "ix86_mode_entry", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1686, "Length": 52, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "OpenRISCFrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ")", "const", "{", "}", ""], "natrual_language": ["emitProlog/emitEpilog", "-", "These", "methods", "insert", "prolog", "and", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["OpenRISC", "OpenRISC"], "File": "OpenRISCFrameLowering", "Func": "emitPrologue", "Target": "OpenRISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1687, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCMCCodeEmitter", "::", "getMachineOpValue", "(", "const", "MCInst", "&", "MI", ",", "const", "MCOperand", "&", "MO", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ")", "const", "{", "if", "(", "MO", ".", "isReg", "(", ")", ")", "{", "assert", "(", "(", "MI", ".", "getOpcode", "(", ")", "!=", "PPC", "::", "MTOCRF", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "PPC", "::", "MTOCRF8", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "PPC", "::", "MFOCRF", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "PPC", "::", "MFOCRF8", ")", "||", "MO", ".", "getReg", "(", ")", "<", "PPC", "::", "CR0", "||", "MO", ".", "getReg", "(", ")", ">", "PPC", "::", "CR7", ")", ";", "return", "CTX", ".", "getRegisterInfo", "(", ")", "->", "getEncodingValue", "(", "MO", ".", "getReg", "(", ")", ")", ";", "}", "assert", "(", "MO", ".", "isImm", "(", ")", "&&", "\"Relocation required in an instruction that we cannot encode!\"", ")", ";", "return", "MO", ".", "getImm", "(", ")", ";", "}", ""], "natrual_language": ["getMachineOpValue", "-", "Return", "binary", "encoding", "of", "operand", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::MTOCRF", "PPC::MTOCRF8", "PPC::MFOCRF", "PPC::MFOCRF8", "PPC::CR0", "PPC::CR7", "\"Relocation required in an instruction that we cannot encode!\""], "File": "PPCMCCodeEmitter14", "Func": "getMachineOpValue", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1688, "Length": 134, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ia64_start_function", "(", "FILE", "*", "file", ",", "const", "char", "*", "fnname", ",", "tree", "decl", "ATTRIBUTE_UNUSED", ")", "{", "vms_start_function", "(", "fnname", ")", ";", "fputs", "(", "\"\\t.proc \"", ",", "file", ")", ";", "assemble_name", "(", "file", ",", "fnname", ")", ";", "fputc", "(", "'\\n'", ",", "file", ")", ";", "ASM_OUTPUT_LABEL", "(", "file", ",", "fnname", ")", ";", "}", ""], "natrual_language": ["Output", "the", "textual", "info", "surrounding", "the", "prologue", "."], "TS_V_token": ["ia64", "\"\\t.proc \""], "File": "ia64", "Func": "ia64_start_function", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1689, "Length": 51, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsTargetLowering", "::", "shouldSignExtendTypeInLibCall", "(", "EVT", "Type", ",", "bool", "IsSigned", ")", "const", "{", "if", "(", "(", "ABI", ".", "IsN32", "(", ")", "||", "ABI", ".", "IsN64", "(", ")", ")", "&&", "Type", "==", "MVT", "::", "i32", ")", "return", "true", ";", "return", "IsSigned", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "arguments", "should", "be", "sign-extended", "in", "lib", "calls", "."], "TS_V_token": ["Mips", "Mips", "MVT::i32"], "File": "MipsISelLowering (2)4", "Func": "shouldSignExtendTypeInLibCall", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1690, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "enableInterleavedAccessVectorization", "(", ")", "{", "return", "true", ";", "}", ""], "natrual_language": ["Enable", "matching", "of", "interleaved", "access", "groups", "."], "TS_V_token": ["AArch64"], "File": "AArch64TargetTransformInfo (2)", "Func": "enableInterleavedAccessVectorization", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1691, "Length": 9, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ia64_h_i_d_extended", "(", "void", ")", "{", "if", "(", "stops_p", "!=", "NULL", ")", "{", "int", "new_clocks_length", "=", "get_max_uid", "(", ")", "*", "3", "/", "2", ";", "stops_p", "=", "(", "char", "*", ")", "xrecalloc", "(", "stops_p", ",", "new_clocks_length", ",", "clocks_length", ",", "1", ")", ";", "clocks_length", "=", "new_clocks_length", ";", "}", "}", ""], "natrual_language": ["Implement", "targetm.sched.h_i_d_extended", "hook", ".", "Extend", "internal", "data", "structures", "."], "TS_V_token": ["ia64", "3", "2", "1"], "File": "ia64", "Func": "ia64_h_i_d_extended", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1692, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_prepare_builtin_arg", "(", "struct", "expand_operand", "*", "op", ",", "tree", "exp", ",", "unsigned", "int", "argno", ")", "{", "tree", "arg", ";", "rtx", "value", ";", "arg", "=", "CALL_EXPR_ARG", "(", "exp", ",", "argno", ")", ";", "value", "=", "expand_normal", "(", "arg", ")", ";", "create_input_operand", "(", "op", ",", "value", ",", "TYPE_MODE", "(", "TREE_TYPE", "(", "arg", ")", ")", ")", ";", "}", ""], "natrual_language": ["Take", "the", "head", "of", "argument", "list", "*", "ARGLIST", "and", "convert", "it", "into", "a", "form", "suitable", "for", "input", "operand", "OP", "of", "instruction", "ICODE", ".", "Return", "the", "value", "and", "point", "*", "ARGLIST", "at", "the", "next", "element", "of", "the", "list", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_prepare_builtin_arg", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1693, "Length": 55, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "mips_multipass_dfa_lookahead", "(", "void", ")", "{", "if", "(", "TUNE_SB1", ")", "return", "4", ";", "if", "(", "TUNE_LOONGSON_2EF", "||", "TUNE_LOONGSON_3A", ")", "return", "4", ";", "if", "(", "TUNE_OCTEON", ")", "return", "2", ";", "if", "(", "TUNE_P5600", "||", "TUNE_I6400", ")", "return", "4", ";", "return", "0", ";", "}", ""], "natrual_language": ["Implements", "TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD", ".", "This", "should", "be", "as", "wide", "as", "the", "scheduling", "freedom", "in", "the", "DFA", "."], "TS_V_token": ["mips", "4", "4", "2", "4", "0"], "File": "mips5", "Func": "mips_multipass_dfa_lookahead", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1694, "Length": 43, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDNode", "*", "SparcDAGToDAGISel", "::", "getGlobalBaseReg", "(", ")", "{", "unsigned", "GlobalBaseReg", "=", "TM", ".", "getInstrInfo", "(", ")", "->", "getGlobalBaseReg", "(", "MF", ")", ";", "return", "CurDAG", "->", "getRegister", "(", "GlobalBaseReg", ",", "TLI", ".", "getPointerTy", "(", ")", ")", ".", "getNode", "(", ")", ";", "}", ""], "natrual_language": ["getGlobalBaseReg", "-", "Return", "a", "virtual", "register", "initialized", "with", "the", "the", "global", "base", "register", "value", "."], "TS_V_token": ["Sparc", "Sparc"], "File": "SparcISelDAGToDAG15", "Func": "getGlobalBaseReg", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1695, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "restore_saved_cr", "(", "rtx", "reg", ",", "bool", "using_mfcr_multiple", ",", "bool", "exit_func", ")", "{", "int", "count", "=", "0", ";", "int", "i", ";", "if", "(", "using_mfcr_multiple", ")", "{", "for", "(", "i", "=", "0", ";", "i", "<", "8", ";", "i", "++", ")", "if", "(", "save_reg_p", "(", "CR0_REGNO", "+", "i", ")", ")", "count", "++", ";", "gcc_assert", "(", "count", ")", ";", "}", "if", "(", "using_mfcr_multiple", "&&", "count", ">", "1", ")", "{", "rtx_insn", "*", "insn", ";", "rtvec", "p", ";", "int", "ndx", ";", "p", "=", "rtvec_alloc", "(", "count", ")", ";", "ndx", "=", "0", ";", "for", "(", "i", "=", "0", ";", "i", "<", "8", ";", "i", "++", ")", "if", "(", "save_reg_p", "(", "CR0_REGNO", "+", "i", ")", ")", "{", "rtvec", "r", "=", "rtvec_alloc", "(", "2", ")", ";", "RTVEC_ELT", "(", "r", ",", "0", ")", "=", "reg", ";", "RTVEC_ELT", "(", "r", ",", "1", ")", "=", "GEN_INT", "(", "1", "<<", "(", "7", "-", "i", ")", ")", ";", "RTVEC_ELT", "(", "p", ",", "ndx", ")", "=", "gen_rtx_SET", "(", "gen_rtx_REG", "(", "CCmode", ",", "CR0_REGNO", "+", "i", ")", ",", "gen_rtx_UNSPEC", "(", "CCmode", ",", "r", ",", "UNSPEC_MOVESI_TO_CR", ")", ")", ";", "ndx", "++", ";", "}", "insn", "=", "emit_insn", "(", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "p", ")", ")", ";", "gcc_assert", "(", "ndx", "==", "count", ")", ";", "if", "(", "!", "exit_func", "&&", "DEFAULT_ABI", "==", "ABI_ELFv2", "&&", "flag_shrink_wrap", ")", "{", "for", "(", "i", "=", "0", ";", "i", "<", "8", ";", "i", "++", ")", "if", "(", "save_reg_p", "(", "CR0_REGNO", "+", "i", ")", ")", "add_reg_note", "(", "insn", ",", "REG_CFA_RESTORE", ",", "gen_rtx_REG", "(", "SImode", ",", "CR0_REGNO", "+", "i", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "}", "else", "for", "(", "i", "=", "0", ";", "i", "<", "8", ";", "i", "++", ")", "if", "(", "save_reg_p", "(", "CR0_REGNO", "+", "i", ")", ")", "{", "rtx", "insn", "=", "emit_insn", "(", "gen_movsi_to_cr_one", "(", "gen_rtx_REG", "(", "CCmode", ",", "CR0_REGNO", "+", "i", ")", ",", "reg", ")", ")", ";", "if", "(", "!", "exit_func", "&&", "DEFAULT_ABI", "==", "ABI_ELFv2", "&&", "flag_shrink_wrap", ")", "{", "add_reg_note", "(", "insn", ",", "REG_CFA_RESTORE", ",", "gen_rtx_REG", "(", "SImode", ",", "CR0_REGNO", "+", "i", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "}", "if", "(", "!", "exit_func", "&&", "DEFAULT_ABI", "!=", "ABI_ELFv2", "&&", "(", "DEFAULT_ABI", "==", "ABI_V4", "||", "flag_shrink_wrap", ")", ")", "{", "rtx_insn", "*", "insn", "=", "get_last_insn", "(", ")", ";", "rtx", "cr", "=", "gen_rtx_REG", "(", "SImode", ",", "CR2_REGNO", ")", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_RESTORE", ",", "cr", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "}", ""], "natrual_language": ["Reload", "CR", "from", "REG", "."], "TS_V_token": ["rs6000", "0", "0", "8", "1", "0", "0", "8", "2", "0", "1", "1", "7", "0", "8", "1", "0", "8", "1", "1"], "File": "rs6000-logue", "Func": "restore_saved_cr", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1696, "Length": 391, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mips_split_move_p", "(", "rtx", "dest", ",", "rtx", "src", ",", "enum", "mips_split_type", "split_type", ")", "{", "if", "(", "mips_mult_move_p", "(", "dest", ",", "src", ",", "split_type", ")", ")", "return", "false", ";", "unsigned", "int", "size", "=", "GET_MODE_SIZE", "(", "GET_MODE", "(", "dest", ")", ")", ";", "if", "(", "size", "==", "8", "&&", "FP_REG_RTX_P", "(", "src", ")", "&&", "FP_REG_RTX_P", "(", "dest", ")", ")", "return", "false", ";", "if", "(", "size", "==", "8", "&&", "ISA_HAS_LDC1_SDC1", ")", "{", "if", "(", "FP_REG_RTX_P", "(", "dest", ")", "&&", "MEM_P", "(", "src", ")", ")", "return", "false", ";", "if", "(", "FP_REG_RTX_P", "(", "src", ")", "&&", "MEM_P", "(", "dest", ")", ")", "return", "false", ";", "}", "return", "size", ">", "UNITS_PER_WORD", ";", "}", ""], "natrual_language": ["Return", "true", "if", "a", "move", "from", "SRC", "to", "DEST", "should", "be", "split", "into", "two", ".", "SPLIT_TYPE", "describes", "the", "split", "condition", "."], "TS_V_token": ["mips", "8", "8"], "File": "mips4", "Func": "mips_split_move_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1697, "Length": 105, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Optional", "<", "DestSourcePair", ">", "X86InstrInfo", "::", "isCopyInstrImpl", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "if", "(", "MI", ".", "isMoveReg", "(", ")", ")", "return", "DestSourcePair", "{", "MI", ".", "getOperand", "(", "0", ")", ",", "MI", ".", "getOperand", "(", "1", ")", "}", ";", "return", "None", ";", "}", ""], "natrual_language": ["If", "the", "specific", "machine", "instruction", "is", "a", "instruction", "that", "moves/copies", "value", "from", "one", "register", "to", "another", "register", "return", "destination", "and", "source", "registers", "as", "machine", "operands", "."], "TS_V_token": ["X86", "X86", "0", "1"], "File": "X86InstrInfo (2)3", "Func": "isCopyInstrImpl", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1698, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "setType", "(", "StringRef", "Type", ")", "{", "CurType", "=", "Type", ";", "}", ""], "natrual_language": ["Set", "the", "low-level", "type", "of", "VReg", "to", "Ty", "."], "TS_V_token": ["X86"], "File": "X86AsmParser58", "Func": "setType", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1699, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "nds32_expand_epilogue_v3pop", "(", "bool", "sibcall_p", ")", "{", "int", "sp_adjust", ";", "rtx", "Rb", ",", "Re", ";", "rtx", "sp_adjust_insn", ";", "nds32_compute_stack_frame", "(", ")", ";", "emit_insn", "(", "gen_blockage", "(", ")", ")", ";", "if", "(", "cfun", "->", "machine", "->", "naked_p", ")", "{", "if", "(", "!", "sibcall_p", ")", "emit_jump_insn", "(", "gen_return_internal", "(", ")", ")", ";", "return", ";", "}", "Rb", "=", "gen_rtx_REG", "(", "SImode", ",", "cfun", "->", "machine", "->", "callee_saved_first_gpr_regno", ")", ";", "Re", "=", "gen_rtx_REG", "(", "SImode", ",", "cfun", "->", "machine", "->", "callee_saved_last_gpr_regno", ")", ";", "sp_adjust", "=", "cfun", "->", "machine", "->", "local_size", "+", "cfun", "->", "machine", "->", "out_args_size", "+", "cfun", "->", "machine", "->", "callee_saved_area_gpr_padding_bytes", ";", "if", "(", "satisfies_constraint_Iu08", "(", "GEN_INT", "(", "sp_adjust", ")", ")", "&&", "NDS32_DOUBLE_WORD_ALIGN_P", "(", "sp_adjust", ")", "&&", "!", "cfun", "->", "calls_alloca", ")", "{", "nds32_emit_stack_v3pop", "(", "Rb", ",", "Re", ",", "GEN_INT", "(", "14", ")", ",", "GEN_INT", "(", "sp_adjust", ")", ")", ";", "}", "else", "{", "if", "(", "frame_pointer_needed", ")", "{", "sp_adjust", "=", "cfun", "->", "machine", "->", "fp_size", "+", "cfun", "->", "machine", "->", "gp_size", "+", "cfun", "->", "machine", "->", "lp_size", "+", "cfun", "->", "machine", "->", "callee_saved_gpr_regs_size", ";", "sp_adjust_insn", "=", "gen_addsi3", "(", "stack_pointer_rtx", ",", "hard_frame_pointer_rtx", ",", "GEN_INT", "(", "-", "1", "*", "sp_adjust", ")", ")", ";", "sp_adjust_insn", "=", "emit_insn", "(", "sp_adjust_insn", ")", ";", "}", "else", "{", "sp_adjust", "=", "cfun", "->", "machine", "->", "local_size", "+", "cfun", "->", "machine", "->", "out_args_size", "+", "cfun", "->", "machine", "->", "callee_saved_area_gpr_padding_bytes", ";", "sp_adjust", "=", "nds32_force_addi_stack_int", "(", "sp_adjust", ")", ";", "if", "(", "sp_adjust", ")", "{", "sp_adjust_insn", "=", "gen_addsi3", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "sp_adjust", ")", ")", ";", "sp_adjust_insn", "=", "emit_insn", "(", "sp_adjust_insn", ")", ";", "}", "}", "nds32_emit_stack_v3pop", "(", "Rb", ",", "Re", ",", "GEN_INT", "(", "14", ")", ",", "GEN_INT", "(", "0", ")", ")", ";", "}", "emit_jump_insn", "(", "gen_pop25return", "(", ")", ")", ";", "}", ""], "natrual_language": ["Function", "for", "v3pop", "epilogue", "."], "TS_V_token": ["nds32", "14", "1", "14", "0"], "File": "nds322", "Func": "nds32_expand_epilogue_v3pop", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1700, "Length": 279, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "dispatch_windows", "*", "allocate_next_window", "(", "int", "window_num", ")", "{", "if", "(", "window_num", "==", "0", ")", "{", "if", "(", "dispatch_window_list", "->", "next", ")", "init_window", "(", "1", ")", ";", "init_window", "(", "0", ")", ";", "return", "dispatch_window_list", ";", "}", "dispatch_window_list", "->", "next", "=", "dispatch_window_list1", ";", "dispatch_window_list1", "->", "prev", "=", "dispatch_window_list", ";", "return", "dispatch_window_list1", ";", "}", ""], "natrual_language": ["Allocates", "a", "new", "dispatch", "window", "and", "adds", "it", "to", "WINDOW_LIST", ".", "WINDOW_NUM", "is", "either", "0", "or", "1", ".", "A", "maximum", "of", "two", "windows", "are", "generated", "for", "48", "bytes", "of", "instructions", ".", "Note", "that", "these", "windows", "are", "not", "dispatch", "windows", "that", "their", "sizes", "are", "DISPATCH_WINDOW_SIZE", "."], "TS_V_token": ["i386", "0", "1", "0"], "File": "i3864", "Func": "allocate_next_window", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1701, "Length": 52, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "arm_pic_static_addr", "(", "rtx", "orig", ",", "rtx", "reg", ")", "{", "rtx", "l1", ",", "labelno", ",", "offset_rtx", ",", "insn", ";", "gcc_assert", "(", "flag_pic", ")", ";", "labelno", "=", "GEN_INT", "(", "pic_labelno", "++", ")", ";", "l1", "=", "gen_rtx_UNSPEC", "(", "Pmode", ",", "gen_rtvec", "(", "1", ",", "labelno", ")", ",", "UNSPEC_PIC_LABEL", ")", ";", "l1", "=", "gen_rtx_CONST", "(", "VOIDmode", ",", "l1", ")", ";", "offset_rtx", "=", "plus_constant", "(", "Pmode", ",", "l1", ",", "TARGET_ARM", "?", "8", ":", "4", ")", ";", "offset_rtx", "=", "gen_rtx_UNSPEC", "(", "Pmode", ",", "gen_rtvec", "(", "2", ",", "orig", ",", "offset_rtx", ")", ",", "UNSPEC_SYMBOL_OFFSET", ")", ";", "offset_rtx", "=", "gen_rtx_CONST", "(", "Pmode", ",", "offset_rtx", ")", ";", "insn", "=", "emit_insn", "(", "gen_pic_load_addr_unified", "(", "reg", ",", "offset_rtx", ",", "labelno", ")", ")", ";", "return", "insn", ";", "}", ""], "natrual_language": ["Generate", "code", "to", "load", "the", "address", "of", "a", "static", "var", "when", "flag_pic", "is", "set", "."], "TS_V_token": ["arm", "1", "8", "4", "2"], "File": "arm4", "Func": "arm_pic_static_addr", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1702, "Length": 118, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Cpu0SEFrameLowering", "::", "hasReservedCallFrame", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "return", "isInt", "<", "16", ">", "(", "MFI", ".", "getMaxCallFrameSize", "(", ")", "+", "getStackAlignment", "(", ")", ")", "&&", "!", "MFI", ".", "hasVarSizedObjects", "(", ")", ";", "}", ""], "natrual_language": ["hasReservedCallFrame", "-", "Under", "normal", "circumstances", ",", "when", "a", "frame", "pointer", "is", "not", "required", ",", "we", "reserve", "argument", "space", "for", "call", "sites", "in", "the", "function", "immediately", "on", "entry", "to", "the", "current", "function", "."], "TS_V_token": ["Cpu0", "Cpu0", "16"], "File": "Cpu0SEFrameLowering", "Func": "hasReservedCallFrame", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1703, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "PPCTargetLowering", "::", "getRegForInlineAsmConstraint", "(", "const", "std", "::", "string", "&", "Constraint", ",", "MVT", "VT", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'b'", ":", "case", "'r'", ":", "if", "(", "VT", "==", "MVT", "::", "i64", "&&", "PPCSubTarget", ".", "isPPC64", "(", ")", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "PPC", "::", "G8RCRegisterClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "PPC", "::", "GPRCRegisterClass", ")", ";", "case", "'f'", ":", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "PPC", "::", "F4RCRegisterClass", ")", ";", "else", "if", "(", "VT", "==", "MVT", "::", "f64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "PPC", "::", "F8RCRegisterClass", ")", ";", "break", ";", "case", "'v'", ":", "return", "std", "::", "make_pair", "(", "0U", ",", "PPC", "::", "VRRCRegisterClass", ")", ";", "case", "'y'", ":", "return", "std", "::", "make_pair", "(", "0U", ",", "PPC", "::", "CRRCRegisterClass", ")", ";", "}", "}", "return", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "Constraint", ",", "VT", ")", ";", "}", ""], "natrual_language": ["Given", "a", "physical", "register", "constraint", "(", "e.g", "."], "TS_V_token": ["PowerPC", "PPC", "1", "0", "MVT::i64", "PPC", "PPC", "0U", "PPC::G8RCRegisterClass", "0U", "PPC::GPRCRegisterClass", "MVT::f32", "0U", "PPC::F4RCRegisterClass", "MVT::f64", "0U", "PPC::F8RCRegisterClass", "0U", "PPC::VRRCRegisterClass", "0U", "PPC::CRRCRegisterClass"], "File": "PPCISelLowering123", "Func": "getRegForInlineAsmConstraint", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1704, "Length": 178, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "enum", "mips_symbol_type", "mips_classify_symbol", "(", "const_rtx", "x", ",", "enum", "mips_symbol_context", "context", ")", "{", "if", "(", "TARGET_RTP_PIC", ")", "return", "SYMBOL_GOT_DISP", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "LABEL_REF", ")", "{", "if", "(", "TARGET_MIPS16_SHORT_JUMP_TABLES", "&&", "!", "LABEL_REF_NONLOCAL_P", "(", "x", ")", ")", "return", "SYMBOL_PC_RELATIVE", ";", "if", "(", "TARGET_ABICALLS", "&&", "!", "TARGET_ABSOLUTE_ABICALLS", ")", "return", "SYMBOL_GOT_PAGE_OFST", ";", "return", "SYMBOL_ABSOLUTE", ";", "}", "gcc_assert", "(", "GET_CODE", "(", "x", ")", "==", "SYMBOL_REF", ")", ";", "if", "(", "SYMBOL_REF_TLS_MODEL", "(", "x", ")", ")", "return", "SYMBOL_TLS", ";", "if", "(", "CONSTANT_POOL_ADDRESS_P", "(", "x", ")", ")", "{", "if", "(", "TARGET_MIPS16_TEXT_LOADS", ")", "return", "SYMBOL_PC_RELATIVE", ";", "if", "(", "TARGET_MIPS16_PCREL_LOADS", "&&", "context", "==", "SYMBOL_CONTEXT_MEM", ")", "return", "SYMBOL_PC_RELATIVE", ";", "if", "(", "mips_rtx_constant_in_small_data_p", "(", "get_pool_mode", "(", "x", ")", ")", ")", "return", "SYMBOL_GP_RELATIVE", ";", "}", "if", "(", "TARGET_GPOPT", "&&", "SYMBOL_REF_SMALL_P", "(", "x", ")", "&&", "!", "SYMBOL_REF_WEAK", "(", "x", ")", ")", "return", "SYMBOL_GP_RELATIVE", ";", "if", "(", "TARGET_ABICALLS_PIC2", "&&", "!", "(", "TARGET_ABSOLUTE_ABICALLS", "&&", "mips_symbol_binds_local_p", "(", "x", ")", ")", ")", "{", "if", "(", "mips_global_symbol_p", "(", "x", ")", ")", "return", "SYMBOL_GOT_DISP", ";", "return", "SYMBOL_GOT_PAGE_OFST", ";", "}", "return", "SYMBOL_ABSOLUTE", ";", "}", ""], "natrual_language": ["Classify", "symbol", "X", ",", "which", "must", "be", "a", "SYMBOL_REF", "or", "a", "LABEL_REF", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_classify_symbol", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1705, "Length": 168, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "xstormy16_memory_move_cost", "(", "machine_mode", "mode", ",", "reg_class_t", "rclass", ",", "bool", "in", ")", "{", "return", "(", "5", "+", "memory_move_secondary_cost", "(", "mode", ",", "rclass", ",", "in", ")", ")", ";", "}", ""], "natrual_language": ["Worker", "function", "for", "TARGET_MEMORY_MOVE_COST", "."], "TS_V_token": ["stormy16", "5"], "File": "stormy16", "Func": "xstormy16_memory_move_cost", "Target": "stormy16", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1706, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "arm_vector_mode_supported_p", "(", "machine_mode", "mode", ")", "{", "if", "(", "TARGET_NEON", "&&", "(", "mode", "==", "V2SFmode", "||", "mode", "==", "V4SImode", "||", "mode", "==", "V8HImode", "||", "mode", "==", "V4HFmode", "||", "mode", "==", "V16QImode", "||", "mode", "==", "V4SFmode", "||", "mode", "==", "V2DImode", "||", "mode", "==", "V8HFmode", "||", "mode", "==", "V4BFmode", "||", "mode", "==", "V8BFmode", ")", ")", "return", "true", ";", "if", "(", "(", "TARGET_NEON", "||", "TARGET_IWMMXT", ")", "&&", "(", "(", "mode", "==", "V2SImode", ")", "||", "(", "mode", "==", "V4HImode", ")", "||", "(", "mode", "==", "V8QImode", ")", ")", ")", "return", "true", ";", "if", "(", "TARGET_INT_SIMD", "&&", "(", "mode", "==", "V4UQQmode", "||", "mode", "==", "V4QQmode", "||", "mode", "==", "V2UHQmode", "||", "mode", "==", "V2HQmode", "||", "mode", "==", "V2UHAmode", "||", "mode", "==", "V2HAmode", ")", ")", "return", "true", ";", "if", "(", "TARGET_HAVE_MVE", "&&", "(", "mode", "==", "V2DImode", "||", "mode", "==", "V4SImode", "||", "mode", "==", "V8HImode", "||", "mode", "==", "V16QImode", "||", "mode", "==", "V16BImode", "||", "mode", "==", "V8BImode", "||", "mode", "==", "V4BImode", ")", ")", "return", "true", ";", "if", "(", "TARGET_HAVE_MVE_FLOAT", "&&", "(", "mode", "==", "V2DFmode", "||", "mode", "==", "V4SFmode", "||", "mode", "==", "V8HFmode", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Implements", "target", "hook", "vector_mode_supported_p", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "arm_vector_mode_supported_p", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1707, "Length": 182, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "enum", "mips_split_type", "mips_insn_split_type", "(", "rtx", "insn", ")", "{", "basic_block", "bb", "=", "BLOCK_FOR_INSN", "(", "insn", ")", ";", "if", "(", "bb", ")", "{", "if", "(", "optimize_bb_for_speed_p", "(", "bb", ")", ")", "return", "SPLIT_FOR_SPEED", ";", "else", "return", "SPLIT_FOR_SIZE", ";", "}", "return", "SPLIT_IF_NECESSARY", ";", "}", ""], "natrual_language": ["Return", "the", "split", "type", "for", "instruction", "INSN", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_insn_split_type", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1708, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "TOYInstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "const", "DebugLoc", "&", "DL", ",", "unsigned", "DestReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "BuildMI", "(", "MBB", ",", "I", ",", "I", "->", "getDebugLoc", "(", ")", ",", "get", "(", "TOY", "::", "MOVrr", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "}", ""], "natrual_language": ["}", "Branch", "Analysis", "&", "Modification"], "TS_V_token": ["TOY", "TOY", "TOY::MOVrr"], "File": "TOYInstrInfo1", "Func": "copyPhysReg", "Target": "TOY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1709, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ia64_assemble_integer", "(", "rtx", "x", ",", "unsigned", "int", "size", ",", "int", "aligned_p", ")", "{", "if", "(", "size", "==", "POINTER_SIZE", "/", "BITS_PER_UNIT", "&&", "!", "(", "TARGET_NO_PIC", "||", "TARGET_AUTO_PIC", ")", "&&", "GET_CODE", "(", "x", ")", "==", "SYMBOL_REF", "&&", "SYMBOL_REF_FUNCTION_P", "(", "x", ")", ")", "{", "static", "const", "char", "*", "const", "directive", "[", "2", "]", "[", "2", "]", "=", "{", "{", "\"\\tdata8.ua\\t@fptr(\"", ",", "\"\\tdata4.ua\\t@fptr(\"", "}", ",", "{", "\"\\tdata8\\t@fptr(\"", ",", "\"\\tdata4\\t@fptr(\"", "}", "}", ";", "fputs", "(", "directive", "[", "(", "aligned_p", "!=", "0", ")", "]", "[", "POINTER_SIZE", "==", "32", "]", ",", "asm_out_file", ")", ";", "output_addr_const", "(", "asm_out_file", ",", "x", ")", ";", "fputs", "(", "\")\\n\"", ",", "asm_out_file", ")", ";", "return", "true", ";", "}", "return", "default_assemble_integer", "(", "x", ",", "size", ",", "aligned_p", ")", ";", "}", ""], "natrual_language": ["Target", "hook", "for", "assembling", "integer", "objects", ".", "Handle", "word-sized", "aligned", "objects", "and", "detect", "the", "cases", "when", "@", "fptr", "is", "needed", "."], "TS_V_token": ["ia64", "2", "2", "\"\\tdata8.ua\\t@fptr(\"", "\"\\tdata4.ua\\t@fptr(\"", "\"\\tdata8\\t@fptr(\"", "\"\\tdata4\\t@fptr(\"", "0", "32", "\")\\n\""], "File": "ia64", "Func": "ia64_assemble_integer", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1710, "Length": 118, "Cover_Rate": 1.0, "Template_token": []} {"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", "{", "Value", "=", "adjustFixupValue", "(", "Fixup", ".", "getKind", "(", ")", ",", "Value", ")", ";", "if", "(", "!", "Value", ")", "return", ";", "unsigned", "NumBytes", "=", "getFixupKindNumBytes", "(", "Fixup", ".", "getKind", "(", ")", ")", ";", "unsigned", "Offset", "=", "Fixup", ".", "getOffset", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "NumBytes", ";", "++", "i", ")", "{", "unsigned", "Idx", "=", "Endian", "==", "support", "::", "little", "?", "i", ":", "(", "NumBytes", "-", "1", ")", "-", "i", ";", "Data", "[", "Offset", "+", "Idx", "]", "|=", "uint8_t", "(", "(", "Value", ">>", "(", "i", "*", "8", ")", ")", "&", "0xff", ")", ";", "}", "}", ""], "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": ["Sparc", "0", "support::little", "1", "8", "0xff"], "File": "SparcAsmBackend19", "Func": "applyFixup", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1711, "Length": 137, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "AArch64RegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "return", "TFI", "->", "hasFP", "(", "MF", ")", "?", "AArch64", "::", "FP", ":", "AArch64", "::", "SP", ";", "}", ""], "natrual_language": ["Debug", "information", "queries", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::FP", "AArch64::SP"], "File": "AArch64RegisterInfo1", "Func": "getFrameRegister", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1712, "Length": 44, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getGlobalBaseReg", "(", ")", "const", "{", "return", "GlobalBaseReg", ";", "}", ""], "natrual_language": ["getGlobalBaseReg", "-", "Return", "a", "virtual", "register", "initialized", "with", "the", "the", "global", "base", "register", "value", "."], "TS_V_token": ["TeeRISC"], "File": "TeeRISCMachineFunctionInfo", "Func": "getGlobalBaseReg", "Target": "TeeRISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1713, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_init_dfa_post_cycle_insn", "(", "void", ")", "{", "if", "(", "TUNE_LOONGSON_2EF", ")", "mips_ls2_init_dfa_post_cycle_insn", "(", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN", "hook", ".", "Init", "data", "used", "in", "mips_dfa_post_advance_cycle", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_init_dfa_post_cycle_insn", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1714, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "equals", "(", "const", "CSKYConstantPoolJT", "*", "A", ")", "const", "{", "return", "JTI", "==", "A", "->", "JTI", "&&", "CSKYConstantPoolValue", "::", "equals", "(", "A", ")", ";", "}", ""], "natrual_language": ["equals", "-", "Check", "for", "string", "equality", ",", "this", "is", "more", "efficient", "than", "compare", "(", ")", "when", "the", "relative", "ordering", "of", "inequal", "strings", "is", "n't", "needed", "."], "TS_V_token": ["CSKY", "CSKY", "CSKY"], "File": "CSKYConstantPoolValue", "Func": "equals", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1715, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips16e_mask_registers", "(", "unsigned", "int", "*", "mask_ptr", ",", "const", "unsigned", "char", "*", "regs", ",", "unsigned", "int", "size", ",", "unsigned", "int", "*", "num_regs_ptr", ")", "{", "unsigned", "int", "i", ";", "i", "=", "mips16e_find_first_register", "(", "*", "mask_ptr", ",", "regs", ",", "size", ")", ";", "for", "(", "i", "++", ";", "i", "<", "size", ";", "i", "++", ")", "if", "(", "!", "BITSET_P", "(", "*", "mask_ptr", ",", "regs", "[", "i", "]", ")", ")", "{", "*", "num_regs_ptr", "+=", "1", ";", "*", "mask_ptr", "|=", "1", "<<", "regs", "[", "i", "]", ";", "}", "}", ""], "natrual_language": ["*", "MASK_PTR", "is", "a", "mask", "of", "general-purpose", "registers", "and", "*", "NUM_REGS_PTR", "is", "the", "number", "of", "set", "bits", ".", "If", "*", "MASK_PTR", "contains", "REGS", "[", "X", "]", "for", "some", "X", "in", "[", "0", ",", "SIZE", ")", ",", "adjust", "*", "MASK_PTR", "and", "*", "NUM_REGS_PTR", "so", "that", "the", "same", "is", "true", "for", "all", "indexes", "(", "X", ",", "SIZE", ")", "."], "TS_V_token": ["mips", "1", "1"], "File": "mips", "Func": "mips16e_mask_registers", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1716, "Length": 85, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "rx_function_value", "(", "const_tree", "ret_type", ",", "const_tree", "fn_decl_or_type", "ATTRIBUTE_UNUSED", ",", "bool", "outgoing", "ATTRIBUTE_UNUSED", ")", "{", "machine_mode", "mode", "=", "TYPE_MODE", "(", "ret_type", ")", ";", "if", "(", "GET_MODE_SIZE", "(", "mode", ")", ">", "0", "&&", "GET_MODE_SIZE", "(", "mode", ")", "<", "4", "&&", "!", "COMPLEX_MODE_P", "(", "mode", ")", "&&", "!", "VECTOR_TYPE_P", "(", "ret_type", ")", "&&", "!", "VECTOR_MODE_P", "(", "mode", ")", ")", "return", "gen_rtx_REG", "(", "SImode", ",", "FUNC_RETURN_REGNUM", ")", ";", "return", "gen_rtx_REG", "(", "mode", ",", "FUNC_RETURN_REGNUM", ")", ";", "}", ""], "natrual_language": ["Return", "an", "RTL", "describing", "where", "a", "function", "return", "value", "of", "type", "RET_TYPE", "is", "held", "."], "TS_V_token": ["rx", "0", "4"], "File": "rx", "Func": "rx_function_value", "Target": "rx", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1717, "Length": 75, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mmix_output_shifted_value", "(", "FILE", "*", "stream", ",", "int64_t", "value", ")", "{", "int", "i", ";", "if", "(", "!", "mmix_shiftable_wyde_value", "(", "value", ")", ")", "{", "char", "s", "[", "16", "+", "2", "+", "1", "]", ";", "sprintf", "(", "s", ",", "\"%#\"", "PRIx64", ",", "value", ")", ";", "internal_error", "(", "\"MMIX Internal: %s is not a shiftable integer\"", ",", "s", ")", ";", "}", "for", "(", "i", "=", "0", ";", "i", "<", "4", ";", "i", "++", ")", "{", "if", "(", "value", "&", "0xffff", ")", "{", "fprintf", "(", "stream", ",", "\"#%x\"", ",", "(", "int", ")", "(", "value", "&", "0xffff", ")", ")", ";", "return", ";", "}", "value", ">>=", "16", ";", "}", "fprintf", "(", "stream", ",", "\"0\"", ")", ";", "}", ""], "natrual_language": ["Print", "the", "presumed", "shiftable", "wyde", "argument", "shifted", "into", "place", "(", "to", "be", "output", "with", "an", "operand", ")", "."], "TS_V_token": ["mmix", "16", "2", "1", "\"%#\"", "\"MMIX Internal: %s is not a shiftable integer\"", "0", "4", "0xffff", "\"#%x\"", "0xffff", "16", "\"0\""], "File": "mmix", "Func": "mmix_output_shifted_value", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1718, "Length": 105, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMBaseInstrInfo", "::", "breakPartialRegDependency", "(", "MachineBasicBlock", "::", "iterator", "MI", ",", "unsigned", "OpNum", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "assert", "(", "MI", "&&", "OpNum", "<", "MI", "->", "getDesc", "(", ")", ".", "getNumDefs", "(", ")", "&&", "\"OpNum is not a def\"", ")", ";", "assert", "(", "TRI", "&&", "\"Need TRI instance\"", ")", ";", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "OpNum", ")", ";", "unsigned", "Reg", "=", "MO", ".", "getReg", "(", ")", ";", "assert", "(", "TargetRegisterInfo", "::", "isPhysicalRegister", "(", "Reg", ")", "&&", "\"Can't break virtual register dependencies.\"", ")", ";", "unsigned", "DReg", "=", "Reg", ";", "if", "(", "ARM", "::", "SPRRegClass", ".", "contains", "(", "Reg", ")", ")", "{", "DReg", "=", "ARM", "::", "D0", "+", "(", "Reg", "-", "ARM", "::", "S0", ")", "/", "2", ";", "assert", "(", "TRI", "->", "isSuperRegister", "(", "Reg", ",", "DReg", ")", "&&", "\"Register enums broken\"", ")", ";", "}", "assert", "(", "ARM", "::", "DPRRegClass", ".", "contains", "(", "DReg", ")", "&&", "\"Can only break D-reg deps\"", ")", ";", "assert", "(", "MI", "->", "definesRegister", "(", "DReg", ",", "TRI", ")", "&&", "\"MI doesn't clobber full D-reg\"", ")", ";", "AddDefaultPred", "(", "BuildMI", "(", "*", "MI", "->", "getParent", "(", ")", ",", "MI", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "get", "(", "ARM", "::", "FCONSTD", ")", ",", "DReg", ")", ".", "addImm", "(", "96", ")", ")", ";", "MI", "->", "addRegisterKilled", "(", "DReg", ",", "TRI", ",", "true", ")", ";", "}", ""], "natrual_language": ["Insert", "a", "dependency-breaking", "instruction", "before", "MI", "to", "eliminate", "an", "unwanted", "dependency", "on", "OpNum", "."], "TS_V_token": ["ARM", "ARM", "\"OpNum is not a def\"", "\"Need TRI instance\"", "\"Can't break virtual register dependencies.\"", "ARM::SPRRegClass", "ARM::D0", "ARM::S0", "2", "\"Register enums broken\"", "ARM::DPRRegClass", "\"Can only break D-reg deps\"", "\"MI doesn't clobber full D-reg\"", "ARM::FCONSTD", "96"], "File": "ARMBaseInstrInfo (2)", "Func": "breakPartialRegDependency", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1719, "Length": 202, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "ARMTargetLowering", "::", "getRegForInlineAsmConstraint", "(", "const", "std", "::", "string", "&", "Constraint", ",", "EVT", "VT", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'l'", ":", "if", "(", "Subtarget", "->", "isThumb1Only", "(", ")", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "ARM", "::", "tGPRRegisterClass", ")", ";", "else", "return", "std", "::", "make_pair", "(", "0U", ",", "ARM", "::", "GPRRegisterClass", ")", ";", "case", "'r'", ":", "return", "std", "::", "make_pair", "(", "0U", ",", "ARM", "::", "GPRRegisterClass", ")", ";", "case", "'w'", ":", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "ARM", "::", "SPRRegisterClass", ")", ";", "if", "(", "VT", "==", "MVT", "::", "f64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "ARM", "::", "DPRRegisterClass", ")", ";", "break", ";", "}", "}", "return", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "Constraint", ",", "VT", ")", ";", "}", ""], "natrual_language": ["Given", "a", "physical", "register", "constraint", "(", "e.g", "."], "TS_V_token": ["ARM", "ARM", "1", "0", "0U", "ARM::tGPRRegisterClass", "0U", "ARM::GPRRegisterClass", "0U", "ARM::GPRRegisterClass", "MVT::f32", "0U", "ARM::SPRRegisterClass", "MVT::f64", "0U", "ARM::DPRRegisterClass"], "File": "ARMISelLowering33", "Func": "getRegForInlineAsmConstraint", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1720, "Length": 154, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "TeeRISCTargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "0", ";", "case", "TeeRISC_ISD", "::", "RET", ":", "return", "\"TeeRISC_ISD::RET\"", ";", "}", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["TeeRISC", "TeeRISC", "0", "TeeRISC_ISD::RET", "\"TeeRISC_ISD::RET\""], "File": "TeeRISCISelLowering", "Func": "getTargetNodeName", "Target": "TeeRISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1721, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "dispatch_function_versions", "(", "tree", "dispatch_decl", ",", "void", "*", "fndecls_p", ",", "basic_block", "*", "empty_bb", ")", "{", "tree", "default_decl", ";", "gimple", "*", "ifunc_cpu_init_stmt", ";", "gimple_seq", "gseq", ";", "int", "ix", ";", "tree", "ele", ";", "vec", "<", "tree", ">", "*", "fndecls", ";", "unsigned", "int", "num_versions", "=", "0", ";", "unsigned", "int", "actual_versions", "=", "0", ";", "unsigned", "int", "i", ";", "struct", "_function_version_info", "{", "tree", "version_decl", ";", "tree", "predicate_chain", ";", "unsigned", "int", "dispatch_priority", ";", "}", "*", "function_version_info", ";", "gcc_assert", "(", "dispatch_decl", "!=", "NULL", "&&", "fndecls_p", "!=", "NULL", "&&", "empty_bb", "!=", "NULL", ")", ";", "fndecls", "=", "static_cast", "<", "vec", "<", "tree", ">", "*", ">", "(", "fndecls_p", ")", ";", "num_versions", "=", "fndecls", "->", "length", "(", ")", ";", "gcc_assert", "(", "num_versions", ">=", "2", ")", ";", "function_version_info", "=", "(", "struct", "_function_version_info", "*", ")", "XNEWVEC", "(", "struct", "_function_version_info", ",", "(", "num_versions", "-", "1", ")", ")", ";", "default_decl", "=", "(", "*", "fndecls", ")", "[", "0", "]", ";", "push_cfun", "(", "DECL_STRUCT_FUNCTION", "(", "dispatch_decl", ")", ")", ";", "gseq", "=", "bb_seq", "(", "*", "empty_bb", ")", ";", "ifunc_cpu_init_stmt", "=", "gimple_build_call_vec", "(", "ix86_builtins", "[", "(", "int", ")", "IX86_BUILTIN_CPU_INIT", "]", ",", "vNULL", ")", ";", "gimple_seq_add_stmt", "(", "&", "gseq", ",", "ifunc_cpu_init_stmt", ")", ";", "gimple_set_bb", "(", "ifunc_cpu_init_stmt", ",", "*", "empty_bb", ")", ";", "set_bb_seq", "(", "*", "empty_bb", ",", "gseq", ")", ";", "pop_cfun", "(", ")", ";", "for", "(", "ix", "=", "1", ";", "fndecls", "->", "iterate", "(", "ix", ",", "&", "ele", ")", ";", "++", "ix", ")", "{", "tree", "version_decl", "=", "ele", ";", "tree", "predicate_chain", "=", "NULL_TREE", ";", "unsigned", "int", "priority", ";", "priority", "=", "get_builtin_code_for_version", "(", "version_decl", ",", "&", "predicate_chain", ")", ";", "if", "(", "predicate_chain", "==", "NULL_TREE", ")", "continue", ";", "function_version_info", "[", "actual_versions", "]", ".", "version_decl", "=", "version_decl", ";", "function_version_info", "[", "actual_versions", "]", ".", "predicate_chain", "=", "predicate_chain", ";", "function_version_info", "[", "actual_versions", "]", ".", "dispatch_priority", "=", "priority", ";", "actual_versions", "++", ";", "}", "qsort", "(", "function_version_info", ",", "actual_versions", ",", "sizeof", "(", "struct", "_function_version_info", ")", ",", "feature_compare", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "actual_versions", ";", "++", "i", ")", "*", "empty_bb", "=", "add_condition_to_bb", "(", "dispatch_decl", ",", "function_version_info", "[", "i", "]", ".", "version_decl", ",", "function_version_info", "[", "i", "]", ".", "predicate_chain", ",", "*", "empty_bb", ")", ";", "*", "empty_bb", "=", "add_condition_to_bb", "(", "dispatch_decl", ",", "default_decl", ",", "NULL", ",", "*", "empty_bb", ")", ";", "free", "(", "function_version_info", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["This", "function", "generates", "the", "dispatch", "function", "for", "multi-versioned", "functions", ".", "DISPATCH_DECL", "is", "the", "function", "which", "will", "contain", "the", "dispatch", "logic", ".", "FNDECLS", "are", "the", "function", "choices", "for", "dispatch", ",", "and", "is", "a", "tree", "chain", ".", "EMPTY_BB", "is", "the", "basic", "block", "pointer", "in", "DISPATCH_DECL", "in", "which", "the", "dispatch", "code", "is", "generated", "."], "TS_V_token": ["i386", "0", "0", "2", "1", "0", "1", "0", "0"], "File": "i3865", "Func": "dispatch_function_versions", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1722, "Length": 364, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Mips16RegisterInfo", "::", "useFPForScavengingIndex", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "false", ";", "}", ""], "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": ["Mips", "Mips"], "File": "Mips16RegisterInfo", "Func": "useFPForScavengingIndex", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1723, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "nds32_emit_section_tail_template", "(", "char", "symbol_name", "[", "]", ")", "{", "fprintf", "(", "asm_out_file", ",", "\"\\t.size\\t%s, .-%s\\n\"", ",", "symbol_name", ",", "symbol_name", ")", ";", "}", ""], "natrual_language": ["A", "helper", "function", "to", "emit", "section", "tail", "template", "."], "TS_V_token": ["nds32", "\"\\t.size\\t%s, .-%s\\n\""], "File": "nds32-isr", "Func": "nds32_emit_section_tail_template", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1724, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "::", "iterator", "X86FrameLowering", "::", "restoreWin32EHStackPointers", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MBBI", ",", "DebugLoc", "DL", ",", "bool", "RestoreSP", ")", "const", "{", "assert", "(", "STI", ".", "isTargetWindowsMSVC", "(", ")", "&&", "\"funclets only supported in MSVC env\"", ")", ";", "assert", "(", "STI", ".", "isTargetWin32", "(", ")", "&&", "\"EBP/ESI restoration only required on win32\"", ")", ";", "assert", "(", "STI", ".", "is32Bit", "(", ")", "&&", "!", "Uses64BitFramePtr", "&&", "\"restoring EBP/ESI on non-32-bit target\"", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "unsigned", "FramePtr", "=", "TRI", "->", "getFrameRegister", "(", "MF", ")", ";", "unsigned", "BasePtr", "=", "TRI", "->", "getBaseRegister", "(", ")", ";", "WinEHFuncInfo", "&", "FuncInfo", "=", "*", "MF", ".", "getWinEHFuncInfo", "(", ")", ";", "X86MachineFunctionInfo", "*", "X86FI", "=", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", ";", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "int", "FI", "=", "FuncInfo", ".", "EHRegNodeFrameIndex", ";", "int", "EHRegSize", "=", "MFI", "->", "getObjectSize", "(", "FI", ")", ";", "if", "(", "RestoreSP", ")", "{", "addRegOffset", "(", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "X86", "::", "MOV32rm", ")", ",", "X86", "::", "ESP", ")", ",", "X86", "::", "EBP", ",", "true", ",", "-", "EHRegSize", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ";", "}", "unsigned", "UsedReg", ";", "int", "EHRegOffset", "=", "getFrameIndexReference", "(", "MF", ",", "FI", ",", "UsedReg", ")", ";", "int", "EndOffset", "=", "-", "EHRegOffset", "-", "EHRegSize", ";", "FuncInfo", ".", "EHRegNodeEndOffset", "=", "EndOffset", ";", "if", "(", "UsedReg", "==", "FramePtr", ")", "{", "unsigned", "ADDri", "=", "getADDriOpcode", "(", "false", ",", "EndOffset", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "ADDri", ")", ",", "FramePtr", ")", ".", "addReg", "(", "FramePtr", ")", ".", "addImm", "(", "EndOffset", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameSetup", ")", "->", "getOperand", "(", "3", ")", ".", "setIsDead", "(", ")", ";", "assert", "(", "EndOffset", ">=", "0", "&&", "\"end of registration object above normal EBP position!\"", ")", ";", "}", "else", "if", "(", "UsedReg", "==", "BasePtr", ")", "{", "addRegOffset", "(", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "X86", "::", "LEA32r", ")", ",", "BasePtr", ")", ",", "FramePtr", ",", "false", ",", "EndOffset", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ";", "assert", "(", "X86FI", "->", "getHasSEHFramePtrSave", "(", ")", ")", ";", "int", "Offset", "=", "getFrameIndexReference", "(", "MF", ",", "X86FI", "->", "getSEHFramePtrSaveIndex", "(", ")", ",", "UsedReg", ")", ";", "assert", "(", "UsedReg", "==", "BasePtr", ")", ";", "addRegOffset", "(", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "X86", "::", "MOV32rm", ")", ",", "FramePtr", ")", ",", "UsedReg", ",", "true", ",", "Offset", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ";", "}", "else", "{", "llvm_unreachable", "(", "\"32-bit frames with WinEH must use FramePtr or BasePtr\"", ")", ";", "}", "return", "MBBI", ";", "}", ""], "natrual_language": ["Sets", "up", "EBP", "and", "optionally", "ESI", "based", "on", "the", "incoming", "EBP", "value", "."], "TS_V_token": ["X86", "X86", "\"funclets only supported in MSVC env\"", "\"EBP/ESI restoration only required on win32\"", "\"restoring EBP/ESI on non-32-bit target\"", "X86", "X86", "X86", "X86::MOV32rm", "X86::ESP", "X86::EBP", "3", "0", "\"end of registration object above normal EBP position!\"", "X86::LEA32r", "X86", "X86", "X86::MOV32rm", "\"32-bit frames with WinEH must use FramePtr or BasePtr\""], "File": "X86FrameLowering (2)4", "Func": "restoreWin32EHStackPointers", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1725, "Length": 413, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "reset", "(", ")", "override", "{", "MappingSymbolCounter", "=", "0", ";", "MCELFStreamer", "::", "reset", "(", ")", ";", "LastMappingSymbols", ".", "clear", "(", ")", ";", "LastEMS", "=", "EMS_None", ";", "}", ""], "natrual_language": ["Reset", "an", "existing", "scalar", "value", "for", "Def", "and", "a", "given", "Instance", "."], "TS_V_token": ["AArch64", "0"], "File": "AArch64ELFStreamer", "Func": "reset", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1726, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64LegalizerInfo", "::", "legalizeCustom", "(", "LegalizerHelper", "&", "Helper", ",", "MachineInstr", "&", "MI", ")", "const", "{", "MachineIRBuilder", "&", "MIRBuilder", "=", "Helper", ".", "MIRBuilder", ";", "MachineRegisterInfo", "&", "MRI", "=", "*", "MIRBuilder", ".", "getMRI", "(", ")", ";", "GISelChangeObserver", "&", "Observer", "=", "Helper", ".", "Observer", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "false", ";", "case", "TargetOpcode", "::", "G_VAARG", ":", "return", "legalizeVaArg", "(", "MI", ",", "MRI", ",", "MIRBuilder", ")", ";", "case", "TargetOpcode", "::", "G_LOAD", ":", "case", "TargetOpcode", "::", "G_STORE", ":", "return", "legalizeLoadStore", "(", "MI", ",", "MRI", ",", "MIRBuilder", ",", "Observer", ")", ";", "case", "TargetOpcode", "::", "G_SHL", ":", "case", "TargetOpcode", "::", "G_ASHR", ":", "case", "TargetOpcode", "::", "G_LSHR", ":", "return", "legalizeShlAshrLshr", "(", "MI", ",", "MRI", ",", "MIRBuilder", ",", "Observer", ")", ";", "case", "TargetOpcode", "::", "G_GLOBAL_VALUE", ":", "return", "legalizeSmallCMGlobalValue", "(", "MI", ",", "MRI", ",", "MIRBuilder", ",", "Observer", ")", ";", "case", "TargetOpcode", "::", "G_TRUNC", ":", "return", "legalizeVectorTrunc", "(", "MI", ",", "Helper", ")", ";", "case", "TargetOpcode", "::", "G_SBFX", ":", "case", "TargetOpcode", "::", "G_UBFX", ":", "return", "legalizeBitfieldExtract", "(", "MI", ",", "MRI", ",", "Helper", ")", ";", "case", "TargetOpcode", "::", "G_ROTR", ":", "return", "legalizeRotate", "(", "MI", ",", "MRI", ",", "Helper", ")", ";", "case", "TargetOpcode", "::", "G_CTPOP", ":", "return", "legalizeCTPOP", "(", "MI", ",", "MRI", ",", "Helper", ")", ";", "case", "TargetOpcode", "::", "G_ATOMIC_CMPXCHG", ":", "return", "legalizeAtomicCmpxchg128", "(", "MI", ",", "MRI", ",", "Helper", ")", ";", "case", "TargetOpcode", "::", "G_CTTZ", ":", "return", "legalizeCTTZ", "(", "MI", ",", "Helper", ")", ";", "}", "llvm_unreachable", "(", "\"expected switch to return\"", ")", ";", "}", ""], "natrual_language": ["Called", "for", "instructions", "with", "the", "Custom", "LegalizationAction", "."], "TS_V_token": ["AArch64", "AArch64", "\"expected switch to return\""], "File": "AArch64LegalizerInfo12", "Func": "legalizeCustom", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1727, "Length": 235, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "sparc_modes_tieable_p", "(", "machine_mode", "mode1", ",", "machine_mode", "mode2", ")", "{", "enum", "mode_class", "mclass1", ",", "mclass2", ";", "unsigned", "short", "size1", ",", "size2", ";", "if", "(", "mode1", "==", "mode2", ")", "return", "true", ";", "mclass1", "=", "GET_MODE_CLASS", "(", "mode1", ")", ";", "mclass2", "=", "GET_MODE_CLASS", "(", "mode2", ")", ";", "if", "(", "mclass1", "!=", "mclass2", ")", "return", "false", ";", "if", "(", "!", "TARGET_V9", ")", "return", "true", ";", "if", "(", "mclass1", "!=", "MODE_FLOAT", "&&", "mclass1", "!=", "MODE_VECTOR_INT", ")", "return", "true", ";", "size1", "=", "GET_MODE_SIZE", "(", "mode1", ")", ";", "size2", "=", "GET_MODE_SIZE", "(", "mode2", ")", ";", "if", "(", "(", "size1", ">", "4", "&&", "size2", "==", "4", ")", "||", "(", "size2", ">", "4", "&&", "size1", "==", "4", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "TRUE", "if", "it", "is", "a", "good", "idea", "to", "tie", "two", "pseudo", "registers", "when", "one", "has", "mode", "MODE1", "and", "one", "has", "mode", "MODE2", ".", "If", "HARD_REGNO_MODE_OK", "could", "produce", "different", "values", "for", "MODE1", "and", "MODE2", ",", "for", "any", "hard", "reg", ",", "then", "this", "must", "be", "FALSE", "for", "correct", "output", ".", "For", "V9", "we", "have", "to", "deal", "with", "the", "fact", "that", "only", "the", "lower", "32", "floating", "point", "registers", "are", "32-bit", "addressable", "."], "TS_V_token": ["sparc", "4", "4", "4", "4"], "File": "sparc", "Func": "sparc_modes_tieable_p", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1728, "Length": 119, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTargetLowering", "::", "isLegalICmpImmediate", "(", "int64_t", "Imm", ")", "const", "{", "return", "isInt", "<", "16", ">", "(", "Imm", ")", "||", "isUInt", "<", "16", ">", "(", "Imm", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "specified", "immediate", "is", "legal", "icmp", "immediate", ",", "that", "is", "the", "target", "has", "icmp", "instructions", "which", "can", "compare", "a", "register", "against", "the", "immediate", "without", "having", "to", "materialize", "the", "immediate", "into", "a", "register", "."], "TS_V_token": ["PowerPC", "PPC", "16", "16"], "File": "PPCISelLowering (2)2", "Func": "isLegalICmpImmediate", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1729, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMOptimizeBarriersPass", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "std", "::", "vector", "<", "MachineInstr", "*", ">", "ToRemove", ";", "int64_t", "DMBType", "=", "-", "1", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "{", "bool", "IsRemovableNextDMB", "=", "false", ";", "for", "(", "auto", "&", "MI", ":", "MBB", ")", "{", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "ARM", "::", "DMB", ")", "{", "if", "(", "IsRemovableNextDMB", ")", "{", "if", "(", "MI", ".", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", "==", "DMBType", ")", "{", "ToRemove", ".", "push_back", "(", "&", "MI", ")", ";", "}", "else", "{", "DMBType", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "}", "}", "else", "{", "IsRemovableNextDMB", "=", "true", ";", "DMBType", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "}", "}", "else", "if", "(", "!", "CanMovePastDMB", "(", "&", "MI", ")", ")", "{", "IsRemovableNextDMB", "=", "false", ";", "}", "}", "}", "bool", "Changed", "=", "false", ";", "for", "(", "auto", "MI", ":", "ToRemove", ")", "{", "MI", "->", "eraseFromParent", "(", ")", ";", "++", "NumDMBsRemoved", ";", "Changed", "=", "true", ";", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "1", "ARM::DMB", "0", "0", "0"], "File": "ARMOptimizeBarriersPass15", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1730, "Length": 192, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineInstr", "*", "PPCInstrInfo", "::", "commuteInstruction", "(", "MachineInstr", "*", "MI", ",", "bool", "NewMI", ")", "const", "{", "MachineFunction", "&", "MF", "=", "*", "MI", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "if", "(", "MI", "->", "getOpcode", "(", ")", "!=", "PPC", "::", "RLWIMI", ")", "return", "TargetInstrInfo", "::", "commuteInstruction", "(", "MI", ",", "NewMI", ")", ";", "if", "(", "MI", "->", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", "!=", "0", ")", "return", "0", ";", "unsigned", "Reg0", "=", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "unsigned", "Reg1", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "unsigned", "Reg2", "=", "MI", "->", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ";", "bool", "Reg1IsKill", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "isKill", "(", ")", ";", "bool", "Reg2IsKill", "=", "MI", "->", "getOperand", "(", "2", ")", ".", "isKill", "(", ")", ";", "bool", "ChangeReg0", "=", "false", ";", "if", "(", "Reg0", "==", "Reg1", ")", "{", "assert", "(", "MI", "->", "getDesc", "(", ")", ".", "getOperandConstraint", "(", "0", ",", "MCOI", "::", "TIED_TO", ")", "&&", "\"Expecting a two-address instruction!\"", ")", ";", "Reg2IsKill", "=", "false", ";", "ChangeReg0", "=", "true", ";", "}", "unsigned", "MB", "=", "MI", "->", "getOperand", "(", "4", ")", ".", "getImm", "(", ")", ";", "unsigned", "ME", "=", "MI", "->", "getOperand", "(", "5", ")", ".", "getImm", "(", ")", ";", "if", "(", "NewMI", ")", "{", "unsigned", "Reg0", "=", "ChangeReg0", "?", "Reg2", ":", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "bool", "Reg0IsDead", "=", "MI", "->", "getOperand", "(", "0", ")", ".", "isDead", "(", ")", ";", "return", "BuildMI", "(", "MF", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "MI", "->", "getDesc", "(", ")", ")", ".", "addReg", "(", "Reg0", ",", "RegState", "::", "Define", "|", "getDeadRegState", "(", "Reg0IsDead", ")", ")", ".", "addReg", "(", "Reg2", ",", "getKillRegState", "(", "Reg2IsKill", ")", ")", ".", "addReg", "(", "Reg1", ",", "getKillRegState", "(", "Reg1IsKill", ")", ")", ".", "addImm", "(", "(", "ME", "+", "1", ")", "&", "31", ")", ".", "addImm", "(", "(", "MB", "-", "1", ")", "&", "31", ")", ";", "}", "if", "(", "ChangeReg0", ")", "MI", "->", "getOperand", "(", "0", ")", ".", "setReg", "(", "Reg2", ")", ";", "MI", "->", "getOperand", "(", "2", ")", ".", "setReg", "(", "Reg1", ")", ";", "MI", "->", "getOperand", "(", "1", ")", ".", "setReg", "(", "Reg2", ")", ";", "MI", "->", "getOperand", "(", "2", ")", ".", "setIsKill", "(", "Reg1IsKill", ")", ";", "MI", "->", "getOperand", "(", "1", ")", ".", "setIsKill", "(", "Reg2IsKill", ")", ";", "MI", "->", "getOperand", "(", "4", ")", ".", "setImm", "(", "(", "ME", "+", "1", ")", "&", "31", ")", ";", "MI", "->", "getOperand", "(", "5", ")", ".", "setImm", "(", "(", "MB", "-", "1", ")", "&", "31", ")", ";", "return", "MI", ";", "}", ""], "natrual_language": ["This", "method", "commutes", "the", "operands", "of", "the", "given", "machine", "instruction", "MI", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::RLWIMI", "3", "0", "0", "0", "1", "2", "1", "2", "0", "\"Expecting a two-address instruction!\"", "4", "5", "0", "0", "1", "31", "1", "31", "0", "2", "1", "2", "1", "4", "1", "31", "5", "1", "31"], "File": "PPCInstrInfo121", "Func": "commuteInstruction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1731, "Length": 425, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_return_in_memory_1", "(", "const_tree", "type", ")", "{", "HOST_WIDE_INT", "size", ";", "machine_mode", "ag_mode", ";", "int", "count", ";", "if", "(", "!", "AGGREGATE_TYPE_P", "(", "type", ")", "&&", "TREE_CODE", "(", "type", ")", "!=", "COMPLEX_TYPE", "&&", "TREE_CODE", "(", "type", ")", "!=", "VECTOR_TYPE", ")", "return", "false", ";", "if", "(", "aarch64_vfp_is_call_or_return_candidate", "(", "TYPE_MODE", "(", "type", ")", ",", "type", ",", "&", "ag_mode", ",", "&", "count", ",", "NULL", ",", "false", ")", ")", "return", "false", ";", "size", "=", "int_size_in_bytes", "(", "type", ")", ";", "return", "(", "size", "<", "0", "||", "size", ">", "2", "*", "UNITS_PER_WORD", ")", ";", "}", ""], "natrual_language": ["Subroutine", "for", "aarch64_return_in_memory", "for", "types", "that", "are", "not", "returned", "in", "SVE", "registers", "."], "TS_V_token": ["aarch64", "0", "2"], "File": "aarch64", "Func": "aarch64_return_in_memory_1", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1732, "Length": 88, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isToken", "(", ")", "const", "{", "return", "Kind", "==", "Token", ";", "}", ""], "natrual_language": ["isToken", "-", "Is", "this", "a", "token", "operand", "?"], "TS_V_token": ["ARM"], "File": "ARMAsmParser13", "Func": "isToken", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1733, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86FrameLowering", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "bool", "reserveCallFrame", "=", "hasReservedCallFrame", "(", "MF", ")", ";", "unsigned", "Opcode", "=", "I", "->", "getOpcode", "(", ")", ";", "bool", "isDestroy", "=", "Opcode", "==", "TII", ".", "getCallFrameDestroyOpcode", "(", ")", ";", "DebugLoc", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "uint64_t", "Amount", "=", "!", "reserveCallFrame", "?", "I", "->", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ":", "0", ";", "uint64_t", "InternalAmt", "=", "(", "isDestroy", "||", "Amount", ")", "?", "I", "->", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ":", "0", ";", "I", "=", "MBB", ".", "erase", "(", "I", ")", ";", "if", "(", "!", "reserveCallFrame", ")", "{", "unsigned", "StackAlign", "=", "getStackAlignment", "(", ")", ";", "Amount", "=", "RoundUpToAlignment", "(", "Amount", ",", "StackAlign", ")", ";", "MachineModuleInfo", "&", "MMI", "=", "MF", ".", "getMMI", "(", ")", ";", "const", "Function", "*", "Fn", "=", "MF", ".", "getFunction", "(", ")", ";", "bool", "WindowsCFI", "=", "MF", ".", "getTarget", "(", ")", ".", "getMCAsmInfo", "(", ")", "->", "usesWindowsCFI", "(", ")", ";", "bool", "DwarfCFI", "=", "!", "WindowsCFI", "&&", "(", "MMI", ".", "hasDebugInfo", "(", ")", "||", "Fn", "->", "needsUnwindTableEntry", "(", ")", ")", ";", "bool", "HasDwarfEHHandlers", "=", "!", "WindowsCFI", "&&", "!", "MF", ".", "getMMI", "(", ")", ".", "getLandingPads", "(", ")", ".", "empty", "(", ")", ";", "if", "(", "HasDwarfEHHandlers", "&&", "!", "isDestroy", "&&", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", "->", "getHasPushSequences", "(", ")", ")", "BuildCFI", "(", "MBB", ",", "I", ",", "DL", ",", "MCCFIInstruction", "::", "createGnuArgsSize", "(", "nullptr", ",", "Amount", ")", ")", ";", "if", "(", "Amount", "==", "0", ")", "return", ";", "Amount", "-=", "InternalAmt", ";", "if", "(", "isDestroy", "&&", "InternalAmt", "&&", "DwarfCFI", "&&", "!", "hasFP", "(", "MF", ")", ")", "BuildCFI", "(", "MBB", ",", "I", ",", "DL", ",", "MCCFIInstruction", "::", "createAdjustCfaOffset", "(", "nullptr", ",", "-", "InternalAmt", ")", ")", ";", "if", "(", "Amount", ")", "{", "int", "Offset", "=", "isDestroy", "?", "Amount", ":", "-", "Amount", ";", "if", "(", "!", "(", "Fn", "->", "optForMinSize", "(", ")", "&&", "adjustStackWithPops", "(", "MBB", ",", "I", ",", "DL", ",", "Offset", ")", ")", ")", "BuildStackAdjustment", "(", "MBB", ",", "I", ",", "DL", ",", "Offset", ",", "false", ")", ";", "}", "if", "(", "DwarfCFI", "&&", "!", "hasFP", "(", "MF", ")", ")", "{", "int", "CFAOffset", "=", "Amount", ";", "if", "(", "CFAOffset", ")", "{", "CFAOffset", "=", "isDestroy", "?", "-", "CFAOffset", ":", "CFAOffset", ";", "BuildCFI", "(", "MBB", ",", "I", ",", "DL", ",", "MCCFIInstruction", "::", "createAdjustCfaOffset", "(", "nullptr", ",", "CFAOffset", ")", ")", ";", "}", "}", "return", ";", "}", "if", "(", "isDestroy", "&&", "InternalAmt", ")", "{", "MachineBasicBlock", "::", "iterator", "B", "=", "MBB", ".", "begin", "(", ")", ";", "while", "(", "I", "!=", "B", "&&", "!", "std", "::", "prev", "(", "I", ")", "->", "isCall", "(", ")", ")", "--", "I", ";", "BuildStackAdjustment", "(", "MBB", ",", "I", ",", "DL", ",", "-", "InternalAmt", ",", "false", ")", ";", "}", "}", ""], "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": ["X86", "X86", "0", "0", "1", "0", "X86", "0"], "File": "X86FrameLowering (2)4", "Func": "eliminateCallFramePseudoInstr", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1734, "Length": 450, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "EVT", "AArch64TargetLowering", "::", "getOptimalMemOpType", "(", "uint64_t", "Size", ",", "unsigned", "DstAlign", ",", "unsigned", "SrcAlign", ",", "bool", "IsMemset", ",", "bool", "ZeroMemset", ",", "bool", "MemcpyStrSrc", ",", "MachineFunction", "&", "MF", ")", "const", "{", "bool", "Fast", ";", "const", "Function", "*", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "if", "(", "Subtarget", "->", "hasFPARMv8", "(", ")", "&&", "!", "IsMemset", "&&", "Size", ">=", "16", "&&", "!", "F", "->", "hasFnAttribute", "(", "Attribute", "::", "NoImplicitFloat", ")", "&&", "(", "memOpAlign", "(", "SrcAlign", ",", "DstAlign", ",", "16", ")", "||", "(", "allowsMisalignedMemoryAccesses", "(", "MVT", "::", "f128", ",", "0", ",", "1", ",", "&", "Fast", ")", "&&", "Fast", ")", ")", ")", "return", "MVT", "::", "f128", ";", "return", "Size", ">=", "8", "?", "MVT", "::", "i64", ":", "MVT", "::", "i32", ";", "}", ""], "natrual_language": ["It", "returns", "EVT", ":", ":Other", "if", "the", "type", "should", "be", "determined", "using", "generic", "target-independent", "logic", "."], "TS_V_token": ["AArch64", "AArch64", "16", "16", "MVT::f128", "0", "1", "MVT::f128", "8", "MVT::i64", "MVT::i32"], "File": "AArch64ISelLowering92", "Func": "getOptimalMemOpType", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1735, "Length": 116, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86InstrInfo", "::", "insertSelect", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "DebugLoc", "DL", ",", "unsigned", "DstReg", ",", "const", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Cond", ",", "unsigned", "TrueReg", ",", "unsigned", "FalseReg", ")", "const", "{", "MachineRegisterInfo", "&", "MRI", "=", "MBB", ".", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "assert", "(", "Cond", ".", "size", "(", ")", "==", "1", "&&", "\"Invalid Cond array\"", ")", ";", "unsigned", "Opc", "=", "getCMovFromCond", "(", "(", "X86", "::", "CondCode", ")", "Cond", "[", "0", "]", ".", "getImm", "(", ")", ",", "MRI", ".", "getRegClass", "(", "DstReg", ")", "->", "getSize", "(", ")", "/", "8", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "Opc", ")", ",", "DstReg", ")", ".", "addReg", "(", "FalseReg", ")", ".", "addReg", "(", "TrueReg", ")", ";", "}", ""], "natrual_language": ["Insert", "a", "select", "instruction", "into", "MBB", "before", "I", "that", "will", "copy", "TrueReg", "to", "DstReg", "when", "Cond", "is", "true", ",", "and", "FalseReg", "to", "DstReg", "when", "Cond", "is", "false", "."], "TS_V_token": ["X86", "X86", "1", "\"Invalid Cond array\"", "X86::CondCode", "0", "8"], "File": "X86InstrInfo47", "Func": "insertSelect", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1736, "Length": 123, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isCheapToSpeculateCtlz", "(", ")", "const", "override", "{", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "it", "is", "cheap", "to", "speculate", "a", "call", "to", "intrinsic", "ctlz", "."], "TS_V_token": ["PowerPC"], "File": "PPCISelLowering (2)1", "Func": "isCheapToSpeculateCtlz", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1737, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "AArch64FastISel", "::", "fastMaterializeFloatZero", "(", "const", "ConstantFP", "*", "CFP", ")", "{", "assert", "(", "CFP", "->", "isNullValue", "(", ")", "&&", "\"Floating-point constant is not a positive zero.\"", ")", ";", "MVT", "VT", ";", "if", "(", "!", "isTypeLegal", "(", "CFP", "->", "getType", "(", ")", ",", "VT", ")", ")", "return", "0", ";", "if", "(", "VT", "!=", "MVT", "::", "f32", "&&", "VT", "!=", "MVT", "::", "f64", ")", "return", "0", ";", "bool", "Is64Bit", "=", "(", "VT", "==", "MVT", "::", "f64", ")", ";", "unsigned", "ZReg", "=", "Is64Bit", "?", "AArch64", "::", "XZR", ":", "AArch64", "::", "WZR", ";", "unsigned", "Opc", "=", "Is64Bit", "?", "AArch64", "::", "FMOVXDr", ":", "AArch64", "::", "FMOVWSr", ";", "return", "fastEmitInst_r", "(", "Opc", ",", "TLI", ".", "getRegClassFor", "(", "VT", ")", ",", "ZReg", ",", "true", ")", ";", "}", ""], "natrual_language": ["Emit", "the", "floating-point", "constant", "+0.0", "in", "a", "register", "using", "target-", "specific", "logic", "."], "TS_V_token": ["AArch64", "AArch64", "\"Floating-point constant is not a positive zero.\"", "0", "MVT::f32", "MVT::f64", "0", "MVT::f64", "AArch64::XZR", "AArch64::WZR", "AArch64::FMOVXDr", "AArch64::FMOVWSr"], "File": "AArch64FastISel (2)", "Func": "fastMaterializeFloatZero", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1738, "Length": 114, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_file_start", "(", "void", ")", "{", "char", "buffer", "[", "80", "]", ";", "const", "char", "*", "start", "=", "buffer", ";", "FILE", "*", "file", "=", "asm_out_file", ";", "rs6000_default_cpu", "=", "TARGET_CPU_DEFAULT", ";", "default_file_start", "(", ")", ";", "if", "(", "flag_verbose_asm", ")", "{", "sprintf", "(", "buffer", ",", "\"\\n%s rs6000/powerpc options:\"", ",", "ASM_COMMENT_START", ")", ";", "if", "(", "rs6000_default_cpu", "!=", "0", "&&", "rs6000_default_cpu", "[", "0", "]", "!=", "'\\0'", ")", "{", "fprintf", "(", "file", ",", "\"%s --with-cpu=%s\"", ",", "start", ",", "rs6000_default_cpu", ")", ";", "start", "=", "\"\"", ";", "}", "if", "(", "global_options_set", ".", "x_rs6000_cpu_index", ")", "{", "fprintf", "(", "file", ",", "\"%s -mcpu=%s\"", ",", "start", ",", "processor_target_table", "[", "rs6000_cpu_index", "]", ".", "name", ")", ";", "start", "=", "\"\"", ";", "}", "if", "(", "global_options_set", ".", "x_rs6000_tune_index", ")", "{", "fprintf", "(", "file", ",", "\"%s -mtune=%s\"", ",", "start", ",", "processor_target_table", "[", "rs6000_tune_index", "]", ".", "name", ")", ";", "start", "=", "\"\"", ";", "}", "if", "(", "PPC405_ERRATUM77", ")", "{", "fprintf", "(", "file", ",", "\"%s PPC405CR_ERRATUM77\"", ",", "start", ")", ";", "start", "=", "\"\"", ";", "}", "switch", "(", "rs6000_sdata", ")", "{", "case", "SDATA_NONE", ":", "fprintf", "(", "file", ",", "\"%s -msdata=none\"", ",", "start", ")", ";", "start", "=", "\"\"", ";", "break", ";", "case", "SDATA_DATA", ":", "fprintf", "(", "file", ",", "\"%s -msdata=data\"", ",", "start", ")", ";", "start", "=", "\"\"", ";", "break", ";", "case", "SDATA_SYSV", ":", "fprintf", "(", "file", ",", "\"%s -msdata=sysv\"", ",", "start", ")", ";", "start", "=", "\"\"", ";", "break", ";", "case", "SDATA_EABI", ":", "fprintf", "(", "file", ",", "\"%s -msdata=eabi\"", ",", "start", ")", ";", "start", "=", "\"\"", ";", "break", ";", "}", "if", "(", "rs6000_sdata", "&&", "g_switch_value", ")", "{", "fprintf", "(", "file", ",", "\"%s -G %d\"", ",", "start", ",", "g_switch_value", ")", ";", "start", "=", "\"\"", ";", "}", "if", "(", "*", "start", "==", "'\\0'", ")", "putc", "(", "'\\n'", ",", "file", ")", ";", "}", "if", "(", "rs6000_default_cpu", "==", "0", "||", "rs6000_default_cpu", "[", "0", "]", "==", "'\\0'", "||", "!", "global_options_set", ".", "x_rs6000_cpu_index", ")", "{", "fputs", "(", "\"\\t.machine \"", ",", "asm_out_file", ")", ";", "if", "(", "(", "rs6000_isa_flags", "&", "OPTION_MASK_DIRECT_MOVE", ")", "!=", "0", ")", "fputs", "(", "\"power8\\n\"", ",", "asm_out_file", ")", ";", "else", "if", "(", "(", "rs6000_isa_flags", "&", "OPTION_MASK_POPCNTD", ")", "!=", "0", ")", "fputs", "(", "\"power7\\n\"", ",", "asm_out_file", ")", ";", "else", "if", "(", "(", "rs6000_isa_flags", "&", "OPTION_MASK_CMPB", ")", "!=", "0", ")", "fputs", "(", "\"power6\\n\"", ",", "asm_out_file", ")", ";", "else", "if", "(", "(", "rs6000_isa_flags", "&", "OPTION_MASK_POPCNTB", ")", "!=", "0", ")", "fputs", "(", "\"power5\\n\"", ",", "asm_out_file", ")", ";", "else", "if", "(", "(", "rs6000_isa_flags", "&", "OPTION_MASK_MFCRF", ")", "!=", "0", ")", "fputs", "(", "\"power4\\n\"", ",", "asm_out_file", ")", ";", "else", "if", "(", "(", "rs6000_isa_flags", "&", "OPTION_MASK_POWERPC64", ")", "!=", "0", ")", "fputs", "(", "\"ppc64\\n\"", ",", "asm_out_file", ")", ";", "else", "fputs", "(", "\"ppc\\n\"", ",", "asm_out_file", ")", ";", "}", "if", "(", "DEFAULT_ABI", "==", "ABI_ELFv2", ")", "fprintf", "(", "file", ",", "\"\\t.abiversion 2\\n\"", ")", ";", "if", "(", "DEFAULT_ABI", "==", "ABI_AIX", "||", "DEFAULT_ABI", "==", "ABI_ELFv2", "||", "(", "TARGET_ELF", "&&", "flag_pic", "==", "2", ")", ")", "{", "switch_to_section", "(", "toc_section", ")", ";", "switch_to_section", "(", "text_section", ")", ";", "}", "}", ""], "natrual_language": ["Do", "anything", "needed", "at", "the", "start", "of", "the", "asm", "file", "."], "TS_V_token": ["rs6000", "80", "\"\\n%s rs6000/powerpc options:\"", "0", "0", "\"%s --with-cpu=%s\"", "\"\"", "\"%s -mcpu=%s\"", "\"\"", "\"%s -mtune=%s\"", "\"\"", "\"%s PPC405CR_ERRATUM77\"", "\"\"", "\"%s -msdata=none\"", "\"\"", "\"%s -msdata=data\"", "\"\"", "\"%s -msdata=sysv\"", "\"\"", "\"%s -msdata=eabi\"", "\"\"", "\"%s -G %d\"", "\"\"", "0", "0", "\"\\t.machine \"", "0", "\"power8\\n\"", "0", "\"power7\\n\"", "0", "\"power6\\n\"", "0", "\"power5\\n\"", "0", "\"power4\\n\"", "0", "\"ppc64\\n\"", "\"ppc\\n\"", "\"\\t.abiversion 2\\n\"", "2"], "File": "rs60004", "Func": "rs6000_file_start", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1739, "Length": 455, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "PPCRegisterInfo", "::", "getCallPreservedMask", "(", "CallingConv", "::", "ID", "CC", ")", "const", "{", "if", "(", "Subtarget", ".", "isDarwinABI", "(", ")", ")", "return", "Subtarget", ".", "isPPC64", "(", ")", "?", "CSR_Darwin64_RegMask", ":", "CSR_Darwin32_RegMask", ";", "return", "Subtarget", ".", "isPPC64", "(", ")", "?", "CSR_SVR464_RegMask", ":", "CSR_SVR432_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC"], "File": "PPCRegisterInfo1", "Func": "getCallPreservedMask", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1740, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsGOT", "::", "reserve", "(", "size_t", "pNum", ")", "{", "for", "(", "size_t", "i", "=", "0", ";", "i", "<", "pNum", ";", "++", "i", ")", "createEntry", "(", "0", ",", "m_SectionData", ")", ";", "}", ""], "natrual_language": ["Grow", "the", "map", "so", "that", "it", "has", "at", "least", "Size", "buckets", ".", "Does", "not", "shrink", "."], "TS_V_token": ["Mips", "Mips", "0", "0"], "File": "MipsGOT", "Func": "reserve", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1741, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "char", "*", "aarch64_output_sve_ptrues", "(", "rtx", "const_unspec", ")", "{", "static", "char", "templ", "[", "40", "]", ";", "struct", "simd_immediate_info", "info", ";", "bool", "is_valid", "=", "aarch64_simd_valid_immediate", "(", "const_unspec", ",", "&", "info", ")", ";", "gcc_assert", "(", "is_valid", "&&", "info", ".", "insn", "==", "simd_immediate_info", "::", "PTRUE", ")", ";", "char", "element_char", "=", "sizetochar", "(", "GET_MODE_BITSIZE", "(", "info", ".", "elt_mode", ")", ")", ";", "snprintf", "(", "templ", ",", "sizeof", "(", "templ", ")", ",", "\"ptrues\\t%%0.%c, %s\"", ",", "element_char", ",", "svpattern_token", "(", "info", ".", "u", ".", "pattern", ")", ")", ";", "return", "templ", ";", "}", ""], "natrual_language": ["Return", "the", "asm", "template", "for", "a", "PTRUES", ".", "CONST_UNSPEC", "is", "the", "aarch64_sve_ptrue_svpattern_immediate", "that", "describes", "the", "predicate", "pattern", "."], "TS_V_token": ["aarch64", "40", "\"ptrues\\t%%0.%c, %s\""], "File": "aarch64", "Func": "aarch64_output_sve_ptrues", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1742, "Length": 83, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mep_init_intrinsics", "(", "void", ")", "{", "size_t", "i", ";", "mep_selected_isa", "=", "mep_configs", "[", "0", "]", ".", "isa", ";", "if", "(", "mep_config_string", "!=", "0", ")", "for", "(", "i", "=", "0", ";", "mep_configs", "[", "i", "]", ".", "config_name", ";", "i", "++", ")", "if", "(", "strcmp", "(", "mep_config_string", ",", "mep_configs", "[", "i", "]", ".", "config_name", ")", "==", "0", ")", "{", "mep_selected_isa", "=", "mep_configs", "[", "i", "]", ".", "isa", ";", "break", ";", "}", "for", "(", "i", "=", "0", ";", "i", "<", "ARRAY_SIZE", "(", "mep_intrinsic_insn", ")", ";", "i", "++", ")", "mep_intrinsic_insn", "[", "i", "]", "=", "-", "1", ";", "for", "(", "i", "=", "0", ";", "i", "<", "ARRAY_SIZE", "(", "cgen_insns", ")", ";", "i", "++", ")", "if", "(", "(", "cgen_insns", "[", "i", "]", ".", "isas", "&", "mep_selected_isa", ")", "!=", "0", ")", "{", "mep_intrinsic_chain", "[", "i", "]", "=", "mep_intrinsic_insn", "[", "cgen_insns", "[", "i", "]", ".", "intrinsic", "]", ";", "mep_intrinsic_insn", "[", "cgen_insns", "[", "i", "]", ".", "intrinsic", "]", "=", "i", ";", "}", "for", "(", "i", "=", "0", ";", "i", "<", "ARRAY_SIZE", "(", "mep_cmov_insns", ")", ";", "i", "++", ")", "if", "(", "MEP_INTRINSIC_AVAILABLE_P", "(", "mep_cmov_insns", "[", "i", "]", ")", ")", "mep_have_copro_copro_moves_p", "=", "true", ";", "mep_have_core_copro_moves_p", "=", "(", "MEP_INTRINSIC_AVAILABLE_P", "(", "mep_cmov1", ")", "&&", "MEP_INTRINSIC_AVAILABLE_P", "(", "mep_cmov2", ")", ")", ";", "mep_have_core_copro_moves_p", "=", "1", ";", "}", ""], "natrual_language": ["Initialize", "the", "global", "intrinsics", "variables", "above", "."], "TS_V_token": ["mep", "0", "0", "0", "0", "0", "1", "0", "0", "0", "1"], "File": "mep", "Func": "mep_init_intrinsics", "Target": "mep", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1743, "Length": 203, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCPostRASchedStrategy", "::", "tryCandidate", "(", "SchedCandidate", "&", "Cand", ",", "SchedCandidate", "&", "TryCand", ")", "{", "if", "(", "!", "Cand", ".", "isValid", "(", ")", ")", "{", "TryCand", ".", "Reason", "=", "NodeOrder", ";", "return", ";", "}", "if", "(", "tryLess", "(", "Top", ".", "getLatencyStallCycles", "(", "TryCand", ".", "SU", ")", ",", "Top", ".", "getLatencyStallCycles", "(", "Cand", ".", "SU", ")", ",", "TryCand", ",", "Cand", ",", "Stall", ")", ")", "return", ";", "if", "(", "tryGreater", "(", "TryCand", ".", "SU", "==", "DAG", "->", "getNextClusterSucc", "(", ")", ",", "Cand", ".", "SU", "==", "DAG", "->", "getNextClusterSucc", "(", ")", ",", "TryCand", ",", "Cand", ",", "Cluster", ")", ")", "return", ";", "if", "(", "tryLess", "(", "TryCand", ".", "ResDelta", ".", "CritResources", ",", "Cand", ".", "ResDelta", ".", "CritResources", ",", "TryCand", ",", "Cand", ",", "ResourceReduce", ")", ")", "return", ";", "if", "(", "tryGreater", "(", "TryCand", ".", "ResDelta", ".", "DemandedResources", ",", "Cand", ".", "ResDelta", ".", "DemandedResources", ",", "TryCand", ",", "Cand", ",", "ResourceDemand", ")", ")", "return", ";", "if", "(", "Cand", ".", "Policy", ".", "ReduceLatency", "&&", "tryLatency", "(", "TryCand", ",", "Cand", ",", "Top", ")", ")", "{", "return", ";", "}", "if", "(", "TryCand", ".", "SU", "->", "NodeNum", "<", "Cand", ".", "SU", "->", "NodeNum", ")", "TryCand", ".", "Reason", "=", "NodeOrder", ";", "if", "(", "TryCand", ".", "Reason", "!=", "NodeOrder", "&&", "TryCand", ".", "Reason", "!=", "NoCand", ")", "return", ";", "if", "(", "biasAddiCandidate", "(", "Cand", ",", "TryCand", ")", ")", "return", ";", "}", ""], "natrual_language": ["Apply", "a", "set", "of", "heuristics", "to", "a", "new", "candidate", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCMachineScheduler2", "Func": "tryCandidate", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1744, "Length": 216, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "char", "AArch64Subtarget", "::", "ClassifyGlobalReference", "(", "const", "GlobalValue", "*", "GV", ",", "const", "TargetMachine", "&", "TM", ")", "const", "{", "if", "(", "TM", ".", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Large", "&&", "isTargetMachO", "(", ")", ")", "return", "AArch64II", "::", "MO_GOT", ";", "unsigned", "Flags", "=", "GV", "->", "hasDLLImportStorageClass", "(", ")", "?", "AArch64II", "::", "MO_DLLIMPORT", ":", "AArch64II", "::", "MO_NO_FLAG", ";", "if", "(", "!", "TM", ".", "shouldAssumeDSOLocal", "(", "*", "GV", "->", "getParent", "(", ")", ",", "GV", ")", ")", "return", "AArch64II", "::", "MO_GOT", "|", "Flags", ";", "if", "(", "useSmallAddressing", "(", ")", "&&", "GV", "->", "hasExternalWeakLinkage", "(", ")", ")", "return", "AArch64II", "::", "MO_GOT", "|", "Flags", ";", "return", "Flags", ";", "}", ""], "natrual_language": ["ClassifyGlobalReference", "-", "Find", "the", "target", "operand", "flags", "that", "describe", "how", "a", "global", "value", "should", "be", "referenced", "for", "the", "current", "subtarget", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64II::MO_GOT", "AArch64II::MO_DLLIMPORT", "AArch64II::MO_NO_FLAG", "AArch64II::MO_GOT", "AArch64II::MO_GOT"], "File": "AArch64Subtarget14", "Func": "ClassifyGlobalReference", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1745, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineInstrBuilder", "MipsInstrInfo", "::", "genInstrWithNewOpc", "(", "unsigned", "NewOpc", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "MachineInstrBuilder", "MIB", ";", "int", "ZeroOperandPosition", "=", "-", "1", ";", "bool", "BranchWithZeroOperand", "=", "false", ";", "if", "(", "I", "->", "isBranch", "(", ")", "&&", "!", "I", "->", "isPseudo", "(", ")", ")", "{", "auto", "TRI", "=", "I", "->", "getParent", "(", ")", "->", "getParent", "(", ")", "->", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "ZeroOperandPosition", "=", "I", "->", "findRegisterUseOperandIdx", "(", "Mips", "::", "ZERO", ",", "false", ",", "TRI", ")", ";", "BranchWithZeroOperand", "=", "ZeroOperandPosition", "!=", "-", "1", ";", "}", "if", "(", "BranchWithZeroOperand", ")", "{", "switch", "(", "NewOpc", ")", "{", "case", "Mips", "::", "BEQC", ":", "NewOpc", "=", "Mips", "::", "BEQZC", ";", "break", ";", "case", "Mips", "::", "BNEC", ":", "NewOpc", "=", "Mips", "::", "BNEZC", ";", "break", ";", "case", "Mips", "::", "BGEC", ":", "NewOpc", "=", "Mips", "::", "BGEZC", ";", "break", ";", "case", "Mips", "::", "BLTC", ":", "NewOpc", "=", "Mips", "::", "BLTZC", ";", "break", ";", "case", "Mips", "::", "BEQC64", ":", "NewOpc", "=", "Mips", "::", "BEQZC64", ";", "break", ";", "case", "Mips", "::", "BNEC64", ":", "NewOpc", "=", "Mips", "::", "BNEZC64", ";", "break", ";", "}", "}", "MIB", "=", "BuildMI", "(", "*", "I", "->", "getParent", "(", ")", ",", "I", ",", "I", "->", "getDebugLoc", "(", ")", ",", "get", "(", "NewOpc", ")", ")", ";", "if", "(", "NewOpc", "==", "Mips", "::", "JIC", "||", "NewOpc", "==", "Mips", "::", "JIALC", "||", "NewOpc", "==", "Mips", "::", "JIC64", "||", "NewOpc", "==", "Mips", "::", "JIALC64", ")", "{", "if", "(", "NewOpc", "==", "Mips", "::", "JIALC", "||", "NewOpc", "==", "Mips", "::", "JIALC64", ")", "MIB", "->", "RemoveOperand", "(", "0", ")", ";", "for", "(", "unsigned", "J", "=", "0", ",", "E", "=", "I", "->", "getDesc", "(", ")", ".", "getNumOperands", "(", ")", ";", "J", "<", "E", ";", "++", "J", ")", "{", "MIB", ".", "addOperand", "(", "I", "->", "getOperand", "(", "J", ")", ")", ";", "}", "MIB", ".", "addImm", "(", "0", ")", ";", "}", "else", "{", "for", "(", "unsigned", "J", "=", "0", ",", "E", "=", "I", "->", "getDesc", "(", ")", ".", "getNumOperands", "(", ")", ";", "J", "<", "E", ";", "++", "J", ")", "{", "if", "(", "BranchWithZeroOperand", "&&", "(", "unsigned", ")", "ZeroOperandPosition", "==", "J", ")", "continue", ";", "MIB", ".", "addOperand", "(", "I", "->", "getOperand", "(", "J", ")", ")", ";", "}", "}", "MIB", ".", "copyImplicitOps", "(", "*", "I", ")", ";", "MIB", ".", "setMemRefs", "(", "I", "->", "memoperands_begin", "(", ")", ",", "I", "->", "memoperands_end", "(", ")", ")", ";", "return", "MIB", ";", "}", ""], "natrual_language": ["Create", "an", "instruction", "which", "has", "the", "same", "operands", "and", "memory", "operands", "as", "MI", "but", "has", "a", "new", "opcode", "."], "TS_V_token": ["Mips", "Mips", "1", "Mips::ZERO", "1", "Mips::BEQC", "Mips::BEQZC", "Mips::BNEC", "Mips::BNEZC", "Mips::BGEC", "Mips::BGEZC", "Mips::BLTC", "Mips::BLTZC", "Mips::BEQC64", "Mips::BEQZC64", "Mips::BNEC64", "Mips::BNEZC64", "Mips::JIC", "Mips::JIALC", "Mips::JIC64", "Mips::JIALC64", "Mips::JIALC", "Mips::JIALC64", "0", "0", "0", "0"], "File": "MipsInstrInfo50", "Func": "genInstrWithNewOpc", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1746, "Length": 385, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "SDNode", "*", "getInt64", "(", "SelectionDAG", "*", "CurDAG", ",", "SDLoc", "dl", ",", "int64_t", "Imm", ")", "{", "unsigned", "Count", "=", "getInt64CountDirect", "(", "Imm", ")", ";", "if", "(", "Count", "==", "1", ")", "return", "getInt64Direct", "(", "CurDAG", ",", "dl", ",", "Imm", ")", ";", "unsigned", "RMin", "=", "0", ";", "int64_t", "MatImm", ";", "unsigned", "MaskEnd", ";", "for", "(", "unsigned", "r", "=", "1", ";", "r", "<", "63", ";", "++", "r", ")", "{", "uint64_t", "RImm", "=", "Rot64", "(", "Imm", ",", "r", ")", ";", "unsigned", "RCount", "=", "getInt64CountDirect", "(", "RImm", ")", "+", "1", ";", "if", "(", "RCount", "<", "Count", ")", "{", "Count", "=", "RCount", ";", "RMin", "=", "r", ";", "MatImm", "=", "RImm", ";", "MaskEnd", "=", "63", ";", "}", "unsigned", "LS", "=", "findLastSet", "(", "RImm", ")", ";", "if", "(", "LS", "!=", "r", "-", "1", ")", "continue", ";", "uint64_t", "OnesMask", "=", "-", "(", "int64_t", ")", "(", "UINT64_C", "(", "1", ")", "<<", "(", "LS", "+", "1", ")", ")", ";", "uint64_t", "RImmWithOnes", "=", "RImm", "|", "OnesMask", ";", "RCount", "=", "getInt64CountDirect", "(", "RImmWithOnes", ")", "+", "1", ";", "if", "(", "RCount", "<", "Count", ")", "{", "Count", "=", "RCount", ";", "RMin", "=", "r", ";", "MatImm", "=", "RImmWithOnes", ";", "MaskEnd", "=", "LS", ";", "}", "}", "if", "(", "!", "RMin", ")", "return", "getInt64Direct", "(", "CurDAG", ",", "dl", ",", "Imm", ")", ";", "auto", "getI32Imm", "=", "[", "CurDAG", ",", "dl", "]", "(", "unsigned", "Imm", ")", "{", "return", "CurDAG", "->", "getTargetConstant", "(", "Imm", ",", "dl", ",", "MVT", "::", "i32", ")", ";", "}", ";", "SDValue", "Val", "=", "SDValue", "(", "getInt64Direct", "(", "CurDAG", ",", "dl", ",", "MatImm", ")", ",", "0", ")", ";", "return", "CurDAG", "->", "getMachineNode", "(", "PPC", "::", "RLDICR", ",", "dl", ",", "MVT", "::", "i64", ",", "Val", ",", "getI32Imm", "(", "64", "-", "RMin", ")", ",", "getI32Imm", "(", "MaskEnd", ")", ")", ";", "}", ""], "natrual_language": ["Get", "a", "constant", "64-bit", "value", "."], "TS_V_token": ["PowerPC", "1", "0", "1", "63", "1", "63", "1", "1", "1", "1", "MVT::i32", "0", "PPC::RLDICR", "MVT::i64", "64"], "File": "PPCISelDAGToDAG67", "Func": "getInt64", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1747, "Length": 281, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86DomainReassignment", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "if", "(", "DisableX86DomainReassignment", ")", "return", "false", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** Machine Function before Domain Reassignment *****\\n\"", ")", ";", "DEBUG", "(", "MF", ".", "print", "(", "dbgs", "(", ")", ")", ")", ";", "STI", "=", "&", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "if", "(", "!", "STI", "->", "hasAVX512", "(", ")", ")", "return", "false", ";", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "assert", "(", "MRI", "->", "isSSA", "(", ")", "&&", "\"Expected MIR to be in SSA form\"", ")", ";", "TII", "=", "STI", "->", "getInstrInfo", "(", ")", ";", "initConverters", "(", ")", ";", "bool", "Changed", "=", "false", ";", "EnclosedEdges", ".", "clear", "(", ")", ";", "EnclosedInstrs", ".", "clear", "(", ")", ";", "std", "::", "vector", "<", "Closure", ">", "Closures", ";", "unsigned", "ClosureID", "=", "0", ";", "for", "(", "unsigned", "Idx", "=", "0", ";", "Idx", "<", "MRI", "->", "getNumVirtRegs", "(", ")", ";", "++", "Idx", ")", "{", "unsigned", "Reg", "=", "TargetRegisterInfo", "::", "index2VirtReg", "(", "Idx", ")", ";", "if", "(", "!", "isGPR", "(", "MRI", "->", "getRegClass", "(", "Reg", ")", ")", ")", "continue", ";", "if", "(", "EnclosedEdges", ".", "count", "(", "Reg", ")", ")", "continue", ";", "Closure", "C", "(", "ClosureID", "++", ",", "{", "MaskDomain", "}", ")", ";", "buildClosure", "(", "C", ",", "Reg", ")", ";", "if", "(", "!", "C", ".", "empty", "(", ")", "&&", "C", ".", "isLegal", "(", "MaskDomain", ")", ")", "Closures", ".", "push_back", "(", "std", "::", "move", "(", "C", ")", ")", ";", "}", "for", "(", "Closure", "&", "C", ":", "Closures", ")", "{", "DEBUG", "(", "C", ".", "dump", "(", "MRI", ")", ")", ";", "if", "(", "isReassignmentProfitable", "(", "C", ",", "MaskDomain", ")", ")", "{", "reassign", "(", "C", ",", "MaskDomain", ")", ";", "++", "NumClosuresConverted", ";", "Changed", "=", "true", ";", "}", "}", "DeleteContainerSeconds", "(", "Converters", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** Machine Function after Domain Reassignment *****\\n\"", ")", ";", "DEBUG", "(", "MF", ".", "print", "(", "dbgs", "(", ")", ")", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "\"***** Machine Function before Domain Reassignment *****\\n\"", "X86", "\"Expected MIR to be in SSA form\"", "0", "0", "\"***** Machine Function after Domain Reassignment *****\\n\""], "File": "X86DomainReassignment19", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1748, "Length": 315, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "nds32_hard_regno_mode_ok", "(", "int", "regno", ",", "machine_mode", "mode", ")", "{", "if", "(", "HARD_REGNO_NREGS", "(", "regno", ",", "mode", ")", "==", "1", "||", "!", "(", "(", "regno", ")", "&", "1", ")", ")", "return", "1", ";", "return", "0", ";", "}", ""], "natrual_language": ["Implement", "TARGET_HARD_REGNO_MODE_OK", "."], "TS_V_token": ["nds32", "1", "1", "1", "0"], "File": "nds322", "Func": "nds32_hard_regno_mode_ok", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1749, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsAsmPrinter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "MipsSubtarget", ">", "(", ")", ";", "MipsFI", "=", "MF", ".", "getInfo", "<", "MipsFunctionInfo", ">", "(", ")", ";", "if", "(", "Subtarget", "->", "inMips16Mode", "(", ")", ")", "for", "(", "std", "::", "map", "<", "const", "char", "*", ",", "const", "llvm", "::", "Mips16HardFloatInfo", "::", "FuncSignature", "*", ">", "::", "const_iterator", "it", "=", "MipsFI", "->", "StubsNeeded", ".", "begin", "(", ")", ";", "it", "!=", "MipsFI", "->", "StubsNeeded", ".", "end", "(", ")", ";", "++", "it", ")", "{", "const", "char", "*", "Symbol", "=", "it", "->", "first", ";", "const", "llvm", "::", "Mips16HardFloatInfo", "::", "FuncSignature", "*", "Signature", "=", "it", "->", "second", ";", "if", "(", "StubsNeeded", ".", "find", "(", "Symbol", ")", "==", "StubsNeeded", ".", "end", "(", ")", ")", "StubsNeeded", "[", "Symbol", "]", "=", "Signature", ";", "}", "MCP", "=", "MF", ".", "getConstantPool", "(", ")", ";", "if", "(", "Subtarget", "->", "isTargetNaCl", "(", ")", ")", "NaClAlignIndirectJumpTargets", "(", "MF", ")", ";", "AsmPrinter", "::", "runOnMachineFunction", "(", "MF", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips16HardFloatInfo::FuncSignature", "Mips", "Mips", "Mips16HardFloatInfo::FuncSignature"], "File": "MipsAsmPrinter27", "Func": "runOnMachineFunction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1750, "Length": 162, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMBaseRegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "int", "*", "Value", ",", "RegScavenger", "*", "RS", ")", "const", "{", "unsigned", "i", "=", "0", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "ARMFunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "assert", "(", "!", "AFI", "->", "isThumb1OnlyFunction", "(", ")", "&&", "\"This eliminateFrameIndex does not support Thumb1!\"", ")", ";", "while", "(", "!", "MI", ".", "getOperand", "(", "i", ")", ".", "isFI", "(", ")", ")", "{", "++", "i", ";", "assert", "(", "i", "<", "MI", ".", "getNumOperands", "(", ")", "&&", "\"Instr doesn't have FrameIndex operand!\"", ")", ";", "}", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "i", ")", ".", "getIndex", "(", ")", ";", "unsigned", "FrameReg", ";", "int", "Offset", "=", "getFrameIndexReference", "(", "MF", ",", "FrameIndex", ",", "FrameReg", ")", ";", "if", "(", "FrameReg", "!=", "ARM", "::", "SP", ")", "SPAdj", "=", "0", ";", "Offset", "+=", "SPAdj", ";", "bool", "Done", "=", "false", ";", "if", "(", "!", "AFI", "->", "isThumbFunction", "(", ")", ")", "Done", "=", "rewriteARMFrameIndex", "(", "MI", ",", "i", ",", "FrameReg", ",", "Offset", ",", "TII", ")", ";", "else", "{", "assert", "(", "AFI", "->", "isThumb2Function", "(", ")", ")", ";", "Done", "=", "rewriteT2FrameIndex", "(", "MI", ",", "i", ",", "FrameReg", ",", "Offset", ",", "TII", ")", ";", "}", "if", "(", "Done", ")", "return", "0", ";", "assert", "(", "(", "Offset", "||", "(", "MI", ".", "getDesc", "(", ")", ".", "TSFlags", "&", "ARMII", "::", "AddrModeMask", ")", "==", "ARMII", "::", "AddrMode4", "||", "(", "MI", ".", "getDesc", "(", ")", ".", "TSFlags", "&", "ARMII", "::", "AddrModeMask", ")", "==", "ARMII", "::", "AddrMode6", ")", "&&", "\"This code isn't needed if offset already handled!\"", ")", ";", "unsigned", "ScratchReg", "=", "0", ";", "int", "PIdx", "=", "MI", ".", "findFirstPredOperandIdx", "(", ")", ";", "ARMCC", "::", "CondCodes", "Pred", "=", "(", "PIdx", "==", "-", "1", ")", "?", "ARMCC", "::", "AL", ":", "(", "ARMCC", "::", "CondCodes", ")", "MI", ".", "getOperand", "(", "PIdx", ")", ".", "getImm", "(", ")", ";", "unsigned", "PredReg", "=", "(", "PIdx", "==", "-", "1", ")", "?", "0", ":", "MI", ".", "getOperand", "(", "PIdx", "+", "1", ")", ".", "getReg", "(", ")", ";", "if", "(", "Offset", "==", "0", ")", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ",", "false", ",", "false", ")", ";", "else", "{", "ScratchReg", "=", "MF", ".", "getRegInfo", "(", ")", ".", "createVirtualRegister", "(", "ARM", "::", "GPRRegisterClass", ")", ";", "if", "(", "Value", ")", "*", "Value", "=", "Offset", ";", "if", "(", "!", "AFI", "->", "isThumbFunction", "(", ")", ")", "emitARMRegPlusImmediate", "(", "MBB", ",", "II", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "ScratchReg", ",", "FrameReg", ",", "Offset", ",", "Pred", ",", "PredReg", ",", "TII", ")", ";", "else", "{", "assert", "(", "AFI", "->", "isThumb2Function", "(", ")", ")", ";", "emitT2RegPlusImmediate", "(", "MBB", ",", "II", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "ScratchReg", ",", "FrameReg", ",", "Offset", ",", "Pred", ",", "PredReg", ",", "TII", ")", ";", "}", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "ScratchReg", ",", "false", ",", "false", ",", "true", ")", ";", "if", "(", "!", "ReuseFrameIndexVals", ")", "ScratchReg", "=", "0", ";", "}", "return", "ScratchReg", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["ARM", "ARM", "0", "ARM", "ARM", "\"This eliminateFrameIndex does not support Thumb1!\"", "\"Instr doesn't have FrameIndex operand!\"", "ARM::SP", "0", "ARM", "0", "ARMII::AddrModeMask", "ARMII::AddrMode4", "ARMII::AddrModeMask", "ARMII::AddrMode6", "\"This code isn't needed if offset already handled!\"", "0", "ARMCC::CondCodes", "1", "ARMCC::AL", "ARMCC::CondCodes", "1", "0", "1", "0", "ARM::GPRRegisterClass", "ARM", "0"], "File": "ARMBaseRegisterInfo51", "Func": "eliminateFrameIndex", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1751, "Length": 491, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isMem", "(", ")", "const", "{", "return", "Kind", "==", "k_Memory", ";", "}", ""], "natrual_language": ["isMem", "-", "Is", "this", "a", "memory", "operand", "?"], "TS_V_token": ["FISC"], "File": "FISCAsmParser", "Func": "isMem", "Target": "FISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1752, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCLinuxAsmPrinter", "::", "emitFunctionBodyStart", "(", ")", "{", "if", "(", "Subtarget", "->", "isELFv2ABI", "(", ")", "&&", "!", "MF", "->", "getRegInfo", "(", ")", ".", "use_empty", "(", "PPC", "::", "X2", ")", ")", "{", "const", "PPCFunctionInfo", "*", "PPCFI", "=", "MF", "->", "getInfo", "<", "PPCFunctionInfo", ">", "(", ")", ";", "MCSymbol", "*", "GlobalEntryLabel", "=", "PPCFI", "->", "getGlobalEPSymbol", "(", ")", ";", "OutStreamer", "->", "emitLabel", "(", "GlobalEntryLabel", ")", ";", "const", "MCSymbolRefExpr", "*", "GlobalEntryLabelExp", "=", "MCSymbolRefExpr", "::", "create", "(", "GlobalEntryLabel", ",", "OutContext", ")", ";", "if", "(", "TM", ".", "getCodeModel", "(", ")", "!=", "CodeModel", "::", "Large", ")", "{", "MCSymbol", "*", "TOCSymbol", "=", "OutContext", ".", "getOrCreateSymbol", "(", "StringRef", "(", "\".TOC.\"", ")", ")", ";", "const", "MCExpr", "*", "TOCDeltaExpr", "=", "MCBinaryExpr", "::", "createSub", "(", "MCSymbolRefExpr", "::", "create", "(", "TOCSymbol", ",", "OutContext", ")", ",", "GlobalEntryLabelExp", ",", "OutContext", ")", ";", "const", "MCExpr", "*", "TOCDeltaHi", "=", "PPCMCExpr", "::", "createHa", "(", "TOCDeltaExpr", ",", "OutContext", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "MCInstBuilder", "(", "PPC", "::", "ADDIS", ")", ".", "addReg", "(", "PPC", "::", "X2", ")", ".", "addReg", "(", "PPC", "::", "X12", ")", ".", "addExpr", "(", "TOCDeltaHi", ")", ")", ";", "const", "MCExpr", "*", "TOCDeltaLo", "=", "PPCMCExpr", "::", "createLo", "(", "TOCDeltaExpr", ",", "OutContext", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "MCInstBuilder", "(", "PPC", "::", "ADDI", ")", ".", "addReg", "(", "PPC", "::", "X2", ")", ".", "addReg", "(", "PPC", "::", "X2", ")", ".", "addExpr", "(", "TOCDeltaLo", ")", ")", ";", "}", "else", "{", "MCSymbol", "*", "TOCOffset", "=", "PPCFI", "->", "getTOCOffsetSymbol", "(", ")", ";", "const", "MCExpr", "*", "TOCOffsetDeltaExpr", "=", "MCBinaryExpr", "::", "createSub", "(", "MCSymbolRefExpr", "::", "create", "(", "TOCOffset", ",", "OutContext", ")", ",", "GlobalEntryLabelExp", ",", "OutContext", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "MCInstBuilder", "(", "PPC", "::", "LD", ")", ".", "addReg", "(", "PPC", "::", "X2", ")", ".", "addExpr", "(", "TOCOffsetDeltaExpr", ")", ".", "addReg", "(", "PPC", "::", "X12", ")", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "MCInstBuilder", "(", "PPC", "::", "ADD8", ")", ".", "addReg", "(", "PPC", "::", "X2", ")", ".", "addReg", "(", "PPC", "::", "X2", ")", ".", "addReg", "(", "PPC", "::", "X12", ")", ")", ";", "}", "MCSymbol", "*", "LocalEntryLabel", "=", "PPCFI", "->", "getLocalEPSymbol", "(", ")", ";", "OutStreamer", "->", "emitLabel", "(", "LocalEntryLabel", ")", ";", "const", "MCSymbolRefExpr", "*", "LocalEntryLabelExp", "=", "MCSymbolRefExpr", "::", "create", "(", "LocalEntryLabel", ",", "OutContext", ")", ";", "const", "MCExpr", "*", "LocalOffsetExp", "=", "MCBinaryExpr", "::", "createSub", "(", "LocalEntryLabelExp", ",", "GlobalEntryLabelExp", ",", "OutContext", ")", ";", "PPCTargetStreamer", "*", "TS", "=", "static_cast", "<", "PPCTargetStreamer", "*", ">", "(", "OutStreamer", "->", "getTargetStreamer", "(", ")", ")", ";", "if", "(", "TS", ")", "TS", "->", "emitLocalEntry", "(", "cast", "<", "MCSymbolELF", ">", "(", "CurrentFnSym", ")", ",", "LocalOffsetExp", ")", ";", "}", "}", ""], "natrual_language": ["Targets", "can", "override", "this", "to", "emit", "stuff", "before", "the", "first", "basic", "block", "in", "the", "function", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::X2", "PPC", "PPC", "PPC", "PPC", "\".TOC.\"", "PPC", "PPC::ADDIS", "PPC::X2", "PPC::X12", "PPC", "PPC::ADDI", "PPC::X2", "PPC::X2", "PPC", "PPC::LD", "PPC::X2", "PPC::X12", "PPC::ADD8", "PPC::X2", "PPC::X2", "PPC::X12", "PPC", "PPC", "PPC"], "File": "PPCAsmPrinter62", "Func": "emitFunctionBodyStart", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1753, "Length": 405, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86RegisterInfo", "::", "getRARegister", "(", ")", "const", "{", "if", "(", "Is64Bit", ")", "return", "X86", "::", "RIP", ";", "else", "return", "X86", "::", "EIP", ";", "}", ""], "natrual_language": ["This", "method", "should", "return", "the", "register", "where", "the", "return", "address", "can", "be", "found", "."], "TS_V_token": ["X86", "X86", "X86::RIP", "X86::EIP"], "File": "X86RegisterInfo33", "Func": "getRARegister", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1754, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", "\"SIC Assembly Printer\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["SIC", "\"SIC Assembly Printer\""], "File": "SICAsmPrinter", "Func": "getPassName", "Target": "SIC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1755, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCLoopDataPrefetch", "::", "runOnFunction", "(", "Function", "&", "F", ")", "{", "LI", "=", "&", "getAnalysis", "<", "LoopInfoWrapperPass", ">", "(", ")", ".", "getLoopInfo", "(", ")", ";", "SE", "=", "&", "getAnalysis", "<", "ScalarEvolutionWrapperPass", ">", "(", ")", ".", "getSE", "(", ")", ";", "DL", "=", "&", "F", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "AC", "=", "&", "getAnalysis", "<", "AssumptionCacheTracker", ">", "(", ")", ".", "getAssumptionCache", "(", "F", ")", ";", "TTI", "=", "&", "getAnalysis", "<", "TargetTransformInfoWrapperPass", ">", "(", ")", ".", "getTTI", "(", "F", ")", ";", "assert", "(", "TTI", "->", "getCacheLineSize", "(", ")", "&&", "\"Cache line size is not set for target\"", ")", ";", "assert", "(", "TTI", "->", "getPrefetchDistance", "(", ")", "&&", "\"Prefetch distance is not set for target\"", ")", ";", "bool", "MadeChange", "=", "false", ";", "for", "(", "auto", "I", "=", "LI", "->", "begin", "(", ")", ",", "IE", "=", "LI", "->", "end", "(", ")", ";", "I", "!=", "IE", ";", "++", "I", ")", "for", "(", "auto", "L", "=", "df_begin", "(", "*", "I", ")", ",", "LE", "=", "df_end", "(", "*", "I", ")", ";", "L", "!=", "LE", ";", "++", "L", ")", "MadeChange", "|=", "runOnLoop", "(", "*", "L", ")", ";", "return", "MadeChange", ";", "}", ""], "natrual_language": ["runOnFunction", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "the", "per-function", "processing", "of", "the", "pass", "."], "TS_V_token": ["PowerPC", "PPC", "\"Cache line size is not set for target\"", "\"Prefetch distance is not set for target\""], "File": "PPCLoopDataPrefetch2", "Func": "runOnFunction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1756, "Length": 172, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_slowmul_rtx_costs", "(", "rtx", "x", ",", "int", "code", ",", "int", "outer_code", ",", "int", "*", "total", ")", "{", "enum", "machine_mode", "mode", "=", "GET_MODE", "(", "x", ")", ";", "if", "(", "TARGET_THUMB", ")", "{", "*", "total", "=", "thumb_rtx_costs", "(", "x", ",", "code", ",", "outer_code", ")", ";", "return", "true", ";", "}", "switch", "(", "code", ")", "{", "case", "MULT", ":", "if", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_FLOAT", "||", "mode", "==", "DImode", ")", "{", "*", "total", "=", "30", ";", "return", "true", ";", "}", "if", "(", "GET_CODE", "(", "XEXP", "(", "x", ",", "1", ")", ")", "==", "CONST_INT", ")", "{", "unsigned", "HOST_WIDE_INT", "i", "=", "(", "INTVAL", "(", "XEXP", "(", "x", ",", "1", ")", ")", "&", "(", "unsigned", "HOST_WIDE_INT", ")", "0xffffffff", ")", ";", "int", "cost", ",", "const_ok", "=", "const_ok_for_arm", "(", "i", ")", ";", "int", "j", ",", "booth_unit_size", ";", "cost", "=", "const_ok", "?", "4", ":", "8", ";", "booth_unit_size", "=", "2", ";", "for", "(", "j", "=", "0", ";", "i", "&&", "j", "<", "32", ";", "j", "+=", "booth_unit_size", ")", "{", "i", ">>=", "booth_unit_size", ";", "cost", "+=", "2", ";", "}", "*", "total", "=", "cost", ";", "return", "true", ";", "}", "*", "total", "=", "30", "+", "(", "REG_OR_SUBREG_REG", "(", "XEXP", "(", "x", ",", "0", ")", ")", "?", "0", ":", "4", ")", "+", "(", "REG_OR_SUBREG_REG", "(", "XEXP", "(", "x", ",", "1", ")", ")", "?", "0", ":", "4", ")", ";", "return", "true", ";", "default", ":", "*", "total", "=", "arm_rtx_costs_1", "(", "x", ",", "code", ",", "outer_code", ")", ";", "return", "true", ";", "}", "}", ""], "natrual_language": ["RTX", "costs", "for", "cores", "with", "a", "slow", "MUL", "implementation", ".", "Thumb-2", "is", "not", "supported", "on", "any", "``", "slowmul", "''", "cores", ",", "so", "it", "can", "be", "ignored", "."], "TS_V_token": ["arm", "30", "1", "1", "0xffffffff", "4", "8", "2", "0", "32", "2", "30", "0", "0", "4", "1", "0", "4"], "File": "arm3", "Func": "arm_slowmul_rtx_costs", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1757, "Length": 237, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64InstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MBBI", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FrameIdx", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", "=", "MBB", ".", "findDebugLoc", "(", "MBBI", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "*", "MF", ".", "getFrameInfo", "(", ")", ";", "unsigned", "Align", "=", "MFI", ".", "getObjectAlignment", "(", "FrameIdx", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "FrameIdx", ")", ",", "MachineMemOperand", "::", "MOStore", ",", "MFI", ".", "getObjectSize", "(", "FrameIdx", ")", ",", "Align", ")", ";", "unsigned", "StoreOp", "=", "0", ";", "if", "(", "RC", "->", "hasType", "(", "MVT", "::", "i64", ")", "||", "RC", "->", "hasType", "(", "MVT", "::", "i32", ")", ")", "{", "switch", "(", "RC", "->", "getSize", "(", ")", ")", "{", "case", "4", ":", "StoreOp", "=", "AArch64", "::", "LS32_STR", ";", "break", ";", "case", "8", ":", "StoreOp", "=", "AArch64", "::", "LS64_STR", ";", "break", ";", "default", ":", "llvm_unreachable", "(", "\"Unknown size for regclass\"", ")", ";", "}", "}", "else", "if", "(", "AArch64", "::", "FPR8RegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "StoreOp", "=", "AArch64", "::", "LSFP8_STR", ";", "}", "else", "if", "(", "AArch64", "::", "FPR16RegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "StoreOp", "=", "AArch64", "::", "LSFP16_STR", ";", "}", "else", "if", "(", "RC", "->", "hasType", "(", "MVT", "::", "f32", ")", "||", "RC", "->", "hasType", "(", "MVT", "::", "f64", ")", "||", "RC", "->", "hasType", "(", "MVT", "::", "f128", ")", ")", "{", "switch", "(", "RC", "->", "getSize", "(", ")", ")", "{", "case", "4", ":", "StoreOp", "=", "AArch64", "::", "LSFP32_STR", ";", "break", ";", "case", "8", ":", "StoreOp", "=", "AArch64", "::", "LSFP64_STR", ";", "break", ";", "case", "16", ":", "StoreOp", "=", "AArch64", "::", "LSFP128_STR", ";", "break", ";", "default", ":", "llvm_unreachable", "(", "\"Unknown size for regclass\"", ")", ";", "}", "}", "else", "{", "if", "(", "AArch64", "::", "DPairRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "StoreOp", "=", "AArch64", "::", "ST1x2_8B", ";", "else", "if", "(", "AArch64", "::", "DTripleRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "StoreOp", "=", "AArch64", "::", "ST1x3_8B", ";", "else", "if", "(", "AArch64", "::", "DQuadRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "StoreOp", "=", "AArch64", "::", "ST1x4_8B", ";", "else", "if", "(", "AArch64", "::", "QPairRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "StoreOp", "=", "AArch64", "::", "ST1x2_16B", ";", "else", "if", "(", "AArch64", "::", "QTripleRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "StoreOp", "=", "AArch64", "::", "ST1x3_16B", ";", "else", "if", "(", "AArch64", "::", "QQuadRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "StoreOp", "=", "AArch64", "::", "ST1x4_16B", ";", "else", "llvm_unreachable", "(", "\"Unknown reg class\"", ")", ";", "MachineInstrBuilder", "NewMI", "=", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "get", "(", "StoreOp", ")", ")", ";", "NewMI", ".", "addFrameIndex", "(", "FrameIdx", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "return", ";", "}", "MachineInstrBuilder", "NewMI", "=", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "get", "(", "StoreOp", ")", ")", ";", "NewMI", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addFrameIndex", "(", "FrameIdx", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["AArch64", "AArch64", "0", "MVT::i64", "MVT::i32", "4", "AArch64::LS32_STR", "8", "AArch64::LS64_STR", "\"Unknown size for regclass\"", "AArch64::FPR8RegClass", "AArch64::LSFP8_STR", "AArch64::FPR16RegClass", "AArch64::LSFP16_STR", "MVT::f32", "MVT::f64", "MVT::f128", "4", "AArch64::LSFP32_STR", "8", "AArch64::LSFP64_STR", "16", "AArch64::LSFP128_STR", "\"Unknown size for regclass\"", "AArch64::DPairRegClass", "AArch64::ST1x2_8B", "AArch64::DTripleRegClass", "AArch64::ST1x3_8B", "AArch64::DQuadRegClass", "AArch64::ST1x4_8B", "AArch64::QPairRegClass", "AArch64::ST1x2_16B", "AArch64::QTripleRegClass", "AArch64::ST1x3_16B", "AArch64::QQuadRegClass", "AArch64::ST1x4_16B", "\"Unknown reg class\"", "0"], "File": "AArch64InstrInfo39", "Func": "storeRegToStackSlot", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1758, "Length": 496, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MVEVPTBlock", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "Fn", ")", "{", "if", "(", "skipFunction", "(", "Fn", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "const", "ARMSubtarget", "&", "STI", "=", "static_cast", "<", "const", "ARMSubtarget", "&", ">", "(", "Fn", ".", "getSubtarget", "(", ")", ")", ";", "if", "(", "!", "STI", ".", "isThumb2", "(", ")", "||", "!", "STI", ".", "hasMVEIntegerOps", "(", ")", ")", "return", "false", ";", "TII", "=", "static_cast", "<", "const", "Thumb2InstrInfo", "*", ">", "(", "STI", ".", "getInstrInfo", "(", ")", ")", ";", "RDA", "=", "&", "getAnalysis", "<", "ReachingDefAnalysis", ">", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"********** ARM MVE VPT BLOCKS **********\\n\"", "<<", "\"********** Function: \"", "<<", "Fn", ".", "getName", "(", ")", "<<", "'\\n'", ")", ";", "bool", "Modified", "=", "false", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "Fn", ")", "Modified", "|=", "InsertVPTBlocks", "(", "MBB", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"**************************************\\n\"", ")", ";", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "\"********** ARM MVE VPT BLOCKS **********\\n\"", "\"********** Function: \"", "\"**************************************\\n\""], "File": "MVEVPTBlockPass16", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1759, "Length": 140, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86AsmPrinter", "::", "PrintAsmOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNo", ",", "unsigned", "AsmVariant", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "O", ")", "{", "if", "(", "ExtraCode", "&&", "ExtraCode", "[", "0", "]", ")", "{", "if", "(", "ExtraCode", "[", "1", "]", "!=", "0", ")", "return", "true", ";", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "switch", "(", "ExtraCode", "[", "0", "]", ")", "{", "default", ":", "return", "AsmPrinter", "::", "PrintAsmOperand", "(", "MI", ",", "OpNo", ",", "AsmVariant", ",", "ExtraCode", ",", "O", ")", ";", "case", "'a'", ":", "switch", "(", "MO", ".", "getType", "(", ")", ")", "{", "default", ":", "return", "true", ";", "case", "MachineOperand", "::", "MO_Immediate", ":", "O", "<<", "MO", ".", "getImm", "(", ")", ";", "return", "false", ";", "case", "MachineOperand", "::", "MO_ConstantPoolIndex", ":", "case", "MachineOperand", "::", "MO_JumpTableIndex", ":", "case", "MachineOperand", "::", "MO_ExternalSymbol", ":", "llvm_unreachable", "(", "\"unexpected operand type!\"", ")", ";", "case", "MachineOperand", "::", "MO_GlobalAddress", ":", "printSymbolOperand", "(", "*", "this", ",", "MO", ",", "O", ")", ";", "if", "(", "Subtarget", "->", "isPICStyleRIPRel", "(", ")", ")", "O", "<<", "\"(%rip)\"", ";", "return", "false", ";", "case", "MachineOperand", "::", "MO_Register", ":", "O", "<<", "'('", ";", "printOperand", "(", "*", "this", ",", "MI", ",", "OpNo", ",", "O", ")", ";", "O", "<<", "')'", ";", "return", "false", ";", "}", "case", "'c'", ":", "switch", "(", "MO", ".", "getType", "(", ")", ")", "{", "default", ":", "printOperand", "(", "*", "this", ",", "MI", ",", "OpNo", ",", "O", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_Immediate", ":", "O", "<<", "MO", ".", "getImm", "(", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_ConstantPoolIndex", ":", "case", "MachineOperand", "::", "MO_JumpTableIndex", ":", "case", "MachineOperand", "::", "MO_ExternalSymbol", ":", "llvm_unreachable", "(", "\"unexpected operand type!\"", ")", ";", "case", "MachineOperand", "::", "MO_GlobalAddress", ":", "printSymbolOperand", "(", "*", "this", ",", "MO", ",", "O", ")", ";", "break", ";", "}", "return", "false", ";", "case", "'A'", ":", "if", "(", "MO", ".", "isReg", "(", ")", ")", "{", "O", "<<", "'*'", ";", "printOperand", "(", "*", "this", ",", "MI", ",", "OpNo", ",", "O", ")", ";", "return", "false", ";", "}", "return", "true", ";", "case", "'b'", ":", "case", "'h'", ":", "case", "'w'", ":", "case", "'k'", ":", "case", "'q'", ":", "if", "(", "MO", ".", "isReg", "(", ")", ")", "return", "printAsmMRegister", "(", "*", "this", ",", "MO", ",", "ExtraCode", "[", "0", "]", ",", "O", ")", ";", "printOperand", "(", "*", "this", ",", "MI", ",", "OpNo", ",", "O", ")", ";", "return", "false", ";", "case", "'P'", ":", "printPCRelImm", "(", "*", "this", ",", "MI", ",", "OpNo", ",", "O", ")", ";", "return", "false", ";", "case", "'n'", ":", "if", "(", "MO", ".", "isImm", "(", ")", ")", "{", "O", "<<", "-", "MO", ".", "getImm", "(", ")", ";", "return", "false", ";", "}", "O", "<<", "'-'", ";", "}", "}", "printOperand", "(", "*", "this", ",", "MI", ",", "OpNo", ",", "O", ",", "nullptr", ",", "AsmVariant", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["PrintAsmOperand", "-", "Print", "out", "an", "operand", "for", "an", "inline", "asm", "expression", "."], "TS_V_token": ["X86", "X86", "0", "1", "0", "0", "\"unexpected operand type!\"", "\"(%rip)\"", "\"unexpected operand type!\"", "0"], "File": "X86AsmPrinter102", "Func": "PrintAsmOperand", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1760, "Length": 440, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getReg", "(", ")", "const", "{", "assert", "(", "(", "Kind", "==", "Register", "||", "Kind", "==", "CCOut", ")", "&&", "\"Invalid access!\"", ")", ";", "return", "Reg", ".", "RegNum", ";", "}", ""], "natrual_language": ["Returns", "the", "register", "associated", "with", "this", "edge", "."], "TS_V_token": ["ARM", "\"Invalid access!\""], "File": "ARMAsmParser35", "Func": "getReg", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1761, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetPassConfig", "*", "X86TargetMachine", "::", "createPassConfig", "(", "PassManagerBase", "&", "PM", ")", "{", "return", "new", "X86PassConfig", "(", "*", "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": ["X86", "X86", "X86"], "File": "X86TargetMachine101", "Func": "createPassConfig", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1762, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_emit_save_regs", "(", "void", ")", "{", "unsigned", "int", "regno", ";", "rtx_insn", "*", "insn", ";", "for", "(", "regno", "=", "FIRST_PSEUDO_REGISTER", "-", "1", ";", "regno", "--", ">", "0", ";", ")", "if", "(", "GENERAL_REGNO_P", "(", "regno", ")", "&&", "ix86_save_reg", "(", "regno", ",", "true", ")", ")", "{", "insn", "=", "emit_insn", "(", "gen_push", "(", "gen_rtx_REG", "(", "word_mode", ",", "regno", ")", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "}", ""], "natrual_language": ["Emit", "code", "to", "save", "registers", "in", "the", "prologue", "."], "TS_V_token": ["i386", "1", "0", "1"], "File": "i3865", "Func": "ix86_emit_save_regs", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1763, "Length": 68, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "computeKnownBits", "(", "SelectionDAG", "&", "DAG", ",", "SDValue", "Op", ",", "APInt", "&", "KnownZero", ",", "APInt", "&", "KnownOne", ")", "{", "if", "(", "Op", ".", "getOpcode", "(", ")", "==", "ARMISD", "::", "BFI", ")", "{", "computeKnownBits", "(", "DAG", ",", "Op", ".", "getOperand", "(", "0", ")", ",", "KnownZero", ",", "KnownOne", ")", ";", "ConstantSDNode", "*", "CI", "=", "cast", "<", "ConstantSDNode", ">", "(", "Op", ".", "getOperand", "(", "2", ")", ")", ";", "APInt", "Mask", "=", "CI", "->", "getAPIntValue", "(", ")", ";", "KnownZero", "&=", "Mask", ";", "KnownOne", "&=", "Mask", ";", "return", ";", "}", "if", "(", "Op", ".", "getOpcode", "(", ")", "==", "ARMISD", "::", "CMOV", ")", "{", "APInt", "KZ2", "(", "KnownZero", ".", "getBitWidth", "(", ")", ",", "0", ")", ";", "APInt", "KO2", "(", "KnownOne", ".", "getBitWidth", "(", ")", ",", "0", ")", ";", "computeKnownBits", "(", "DAG", ",", "Op", ".", "getOperand", "(", "1", ")", ",", "KnownZero", ",", "KnownOne", ")", ";", "computeKnownBits", "(", "DAG", ",", "Op", ".", "getOperand", "(", "2", ")", ",", "KZ2", ",", "KO2", ")", ";", "KnownZero", "&=", "KZ2", ";", "KnownOne", "&=", "KO2", ";", "return", ";", "}", "return", "DAG", ".", "computeKnownBits", "(", "Op", ",", "KnownZero", ",", "KnownOne", ")", ";", "}", ""], "natrual_language": ["Determine", "which", "bits", "of", "Op", "are", "known", "to", "be", "either", "zero", "or", "one", "and", "return", "them", "in", "Known", "."], "TS_V_token": ["ARM", "ARMISD::BFI", "0", "2", "ARMISD::CMOV", "0", "0", "1", "2"], "File": "ARMISelLowering (2)2", "Func": "computeKnownBits", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1764, "Length": 179, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "aarch64_can_const_movi_rtx_p", "(", "rtx", "x", ",", "machine_mode", "mode", ")", "{", "if", "(", "!", "TARGET_SIMD", ")", "return", "false", ";", "machine_mode", "vmode", ";", "scalar_int_mode", "imode", ";", "unsigned", "HOST_WIDE_INT", "ival", ";", "if", "(", "CONST_DOUBLE_P", "(", "x", ")", "&&", "SCALAR_FLOAT_MODE_P", "(", "mode", ")", ")", "{", "if", "(", "!", "aarch64_reinterpret_float_as_int", "(", "x", ",", "&", "ival", ")", ")", "return", "false", ";", "if", "(", "aarch64_float_const_zero_rtx_p", "(", "x", ")", ")", "return", "true", ";", "imode", "=", "int_mode_for_mode", "(", "mode", ")", ".", "require", "(", ")", ";", "}", "else", "if", "(", "CONST_INT_P", "(", "x", ")", "&&", "is_a", "<", "scalar_int_mode", ">", "(", "mode", ",", "&", "imode", ")", ")", "ival", "=", "INTVAL", "(", "x", ")", ";", "else", "return", "false", ";", "int", "width", "=", "GET_MODE_BITSIZE", "(", "imode", ")", "==", "64", "?", "128", ":", "64", ";", "vmode", "=", "aarch64_simd_container_mode", "(", "imode", ",", "width", ")", ";", "rtx", "v_op", "=", "aarch64_simd_gen_const_vector_dup", "(", "vmode", ",", "ival", ")", ";", "return", "aarch64_simd_valid_immediate", "(", "v_op", ",", "NULL", ")", ";", "}", ""], "natrual_language": ["Return", "TRUE", "if", "rtx", "X", "is", "immediate", "constant", "that", "fits", "in", "a", "single", "MOVI", "immediate", "operation", "."], "TS_V_token": ["aarch64", "64", "128", "64"], "File": "aarch641", "Func": "aarch64_can_const_movi_rtx_p", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1765, "Length": 149, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "gen_compare_reg_1", "(", "enum", "rtx_code", "code", ",", "rtx", "x", ",", "rtx", "y", ")", "{", "machine_mode", "mode", ";", "rtx", "cc_reg", ";", "if", "(", "GET_MODE_CLASS", "(", "GET_MODE", "(", "x", ")", ")", "==", "MODE_CC", ")", "return", "x", ";", "mode", "=", "SELECT_CC_MODE", "(", "code", ",", "x", ",", "y", ")", ";", "if", "(", "TARGET_V9", "&&", "GET_MODE_CLASS", "(", "GET_MODE", "(", "x", ")", ")", "==", "MODE_FLOAT", ")", "{", "int", "reg", ";", "static", "int", "next_fcc_reg", "=", "0", ";", "static", "rtx", "prev_args", "[", "4", "]", "[", "2", "]", ";", "for", "(", "reg", "=", "0", ";", "reg", "<", "4", ";", "reg", "++", ")", "if", "(", "prev_args", "[", "reg", "]", "[", "0", "]", "==", "x", "&&", "prev_args", "[", "reg", "]", "[", "1", "]", "==", "y", ")", "break", ";", "if", "(", "reg", "==", "4", ")", "{", "reg", "=", "next_fcc_reg", ";", "prev_args", "[", "reg", "]", "[", "0", "]", "=", "x", ";", "prev_args", "[", "reg", "]", "[", "1", "]", "=", "y", ";", "next_fcc_reg", "=", "(", "next_fcc_reg", "+", "1", ")", "&", "3", ";", "}", "cc_reg", "=", "gen_rtx_REG", "(", "mode", ",", "reg", "+", "SPARC_FIRST_V9_FCC_REG", ")", ";", "}", "cc_reg", "=", "gen_reg_rtx", "(", "mode", ")", ";", "else", "if", "(", "GET_MODE_CLASS", "(", "GET_MODE", "(", "x", ")", ")", "==", "MODE_FLOAT", ")", "cc_reg", "=", "gen_rtx_REG", "(", "mode", ",", "SPARC_FCC_REG", ")", ";", "else", "cc_reg", "=", "gen_rtx_REG", "(", "mode", ",", "SPARC_ICC_REG", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "cc_reg", ",", "gen_rtx_COMPARE", "(", "mode", ",", "x", ",", "y", ")", ")", ")", ";", "return", "cc_reg", ";", "}", ""], "natrual_language": ["Emit", "the", "compare", "insn", "and", "return", "the", "CC", "reg", "for", "a", "CODE", "comparison", "with", "operands", "X", "and", "Y", "."], "TS_V_token": ["sparc", "0", "4", "2", "0", "4", "0", "1", "4", "0", "1", "1", "3"], "File": "sparc4", "Func": "gen_compare_reg_1", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1766, "Length": 234, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isToken", "(", ")", "const", "override", "{", "return", "Kind", "==", "TOKEN", ";", "}", ""], "natrual_language": ["isToken", "-", "Is", "this", "a", "token", "operand", "?"], "TS_V_token": ["DLX"], "File": "DLXAsmParser", "Func": "isToken", "Target": "DLX", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1767, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "CCAssignFn", "*", "MipsTargetLowering", "::", "CCAssignFnForCall", "(", ")", "const", "{", "return", "CC_Mips_FixedArg", ";", "}", ""], "natrual_language": ["Selects", "the", "correct", "CCAssignFn", "for", "a", "given", "CallingConvention", "value", "."], "TS_V_token": ["Mips", "Mips", "Mips"], "File": "MipsISelLowering (2)4", "Func": "CCAssignFnForCall", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1768, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCHazardRecognizer970", "::", "EmitInstruction", "(", "SUnit", "*", "SU", ")", "{", "const", "SDNode", "*", "Node", "=", "SU", "->", "getNode", "(", ")", "->", "getGluedMachineNode", "(", ")", ";", "bool", "isFirst", ",", "isSingle", ",", "isCracked", ",", "isLoad", ",", "isStore", ";", "PPCII", "::", "PPC970_Unit", "InstrType", "=", "GetInstrType", "(", "Node", "->", "getOpcode", "(", ")", ",", "isFirst", ",", "isSingle", ",", "isCracked", ",", "isLoad", ",", "isStore", ")", ";", "if", "(", "InstrType", "==", "PPCII", "::", "PPC970_Pseudo", ")", "return", ";", "unsigned", "Opcode", "=", "Node", "->", "getMachineOpcode", "(", ")", ";", "if", "(", "Opcode", "==", "PPC", "::", "MTCTR", "||", "Opcode", "==", "PPC", "::", "MTCTR8", ")", "HasCTRSet", "=", "true", ";", "if", "(", "isStore", ")", "{", "unsigned", "ThisStoreSize", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown store instruction!\"", ")", ";", "case", "PPC", "::", "STB", ":", "case", "PPC", "::", "STB8", ":", "case", "PPC", "::", "STBU", ":", "case", "PPC", "::", "STBU8", ":", "case", "PPC", "::", "STBX", ":", "case", "PPC", "::", "STBX8", ":", "case", "PPC", "::", "STVEBX", ":", "ThisStoreSize", "=", "1", ";", "break", ";", "case", "PPC", "::", "STH", ":", "case", "PPC", "::", "STH8", ":", "case", "PPC", "::", "STHU", ":", "case", "PPC", "::", "STHU8", ":", "case", "PPC", "::", "STHX", ":", "case", "PPC", "::", "STHX8", ":", "case", "PPC", "::", "STVEHX", ":", "case", "PPC", "::", "STHBRX", ":", "ThisStoreSize", "=", "2", ";", "break", ";", "case", "PPC", "::", "STFS", ":", "case", "PPC", "::", "STFSU", ":", "case", "PPC", "::", "STFSX", ":", "case", "PPC", "::", "STWX", ":", "case", "PPC", "::", "STWX8", ":", "case", "PPC", "::", "STWUX", ":", "case", "PPC", "::", "STW", ":", "case", "PPC", "::", "STW8", ":", "case", "PPC", "::", "STWU", ":", "case", "PPC", "::", "STVEWX", ":", "case", "PPC", "::", "STFIWX", ":", "case", "PPC", "::", "STWBRX", ":", "ThisStoreSize", "=", "4", ";", "break", ";", "case", "PPC", "::", "STD_32", ":", "case", "PPC", "::", "STDX_32", ":", "case", "PPC", "::", "STD", ":", "case", "PPC", "::", "STDU", ":", "case", "PPC", "::", "STFD", ":", "case", "PPC", "::", "STFDX", ":", "case", "PPC", "::", "STDX", ":", "case", "PPC", "::", "STDUX", ":", "ThisStoreSize", "=", "8", ";", "break", ";", "case", "PPC", "::", "STVX", ":", "case", "PPC", "::", "STVXL", ":", "ThisStoreSize", "=", "16", ";", "break", ";", "}", "StoreSize", "[", "NumStores", "]", "=", "ThisStoreSize", ";", "StorePtr1", "[", "NumStores", "]", "=", "Node", "->", "getOperand", "(", "1", ")", ";", "StorePtr2", "[", "NumStores", "]", "=", "Node", "->", "getOperand", "(", "2", ")", ";", "++", "NumStores", ";", "}", "if", "(", "InstrType", "==", "PPCII", "::", "PPC970_BRU", "||", "isSingle", ")", "NumIssued", "=", "4", ";", "++", "NumIssued", ";", "if", "(", "isCracked", ")", "++", "NumIssued", ";", "if", "(", "NumIssued", "==", "5", ")", "EndDispatchGroup", "(", ")", ";", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["PowerPC", "PPC", "PPCII::PPC970_Unit", "PPCII::PPC970_Pseudo", "PPC::MTCTR", "PPC::MTCTR8", "\"Unknown store instruction!\"", "PPC::STB", "PPC::STB8", "PPC::STBU", "PPC::STBU8", "PPC::STBX", "PPC::STBX8", "PPC::STVEBX", "1", "PPC::STH", "PPC::STH8", "PPC::STHU", "PPC::STHU8", "PPC::STHX", "PPC::STHX8", "PPC::STVEHX", "PPC::STHBRX", "2", "PPC::STFS", "PPC::STFSU", "PPC::STFSX", "PPC::STWX", "PPC::STWX8", "PPC::STWUX", "PPC::STW", "PPC::STW8", "PPC::STWU", "PPC::STVEWX", "PPC::STFIWX", "PPC::STWBRX", "4", "PPC::STD_32", "PPC::STDX_32", "PPC::STD", "PPC::STDU", "PPC::STFD", "PPC::STFDX", "PPC::STDX", "PPC::STDUX", "8", "PPC::STVX", "PPC::STVXL", "16", "1", "2", "PPCII::PPC970_BRU", "4", "5"], "File": "PPCHazardRecognizers30", "Func": "EmitInstruction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1769, "Length": 403, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "VESubtarget", "&", "VESubtarget", "::", "initializeSubtargetDependencies", "(", "StringRef", "CPU", ",", "StringRef", "FS", ")", "{", "EnableVPU", "=", "false", ";", "std", "::", "string", "CPUName", "=", "std", "::", "string", "(", "CPU", ")", ";", "if", "(", "CPUName", ".", "empty", "(", ")", ")", "CPUName", "=", "\"generic\"", ";", "ParseSubtargetFeatures", "(", "CPUName", ",", "CPU", ",", "FS", ")", ";", "return", "*", "this", ";", "}", ""], "natrual_language": ["initializeSubtargetDependencies", "-", "Initializes", "using", "a", "CPU", ",", "a", "TuneCPU", ",", "and", "feature", "string", "so", "that", "we", "can", "use", "initializer", "lists", "for", "subtarget", "initialization", "."], "TS_V_token": ["VE", "VE", "VE", "\"generic\""], "File": "VESubtarget2", "Func": "initializeSubtargetDependencies", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1770, "Length": 55, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "MipsRegisterInfo", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", "MF", ",", "CallingConv", "::", "ID", ")", "const", "{", "const", "MipsSubtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "MipsSubtarget", ">", "(", ")", ";", "if", "(", "Subtarget", ".", "isSingleFloat", "(", ")", ")", "return", "CSR_SingleFloatOnly_RegMask", ";", "if", "(", "Subtarget", ".", "isABI_CheriPureCap", "(", ")", ")", "return", "CSR_Cheri_Purecap_RegMask", ";", "if", "(", "Subtarget", ".", "isCheri", "(", ")", ")", "return", "CSR_N64_Cheri_RegMask", ";", "if", "(", "Subtarget", ".", "isABI_N64", "(", ")", ")", "return", "CSR_N64_RegMask", ";", "if", "(", "Subtarget", ".", "isABI_N32", "(", ")", ")", "return", "CSR_N32_RegMask", ";", "if", "(", "Subtarget", ".", "isFP64bit", "(", ")", ")", "return", "CSR_O32_FP64_RegMask", ";", "if", "(", "Subtarget", ".", "isFPXX", "(", ")", ")", "return", "CSR_O32_FPXX_RegMask", ";", "return", "CSR_O32_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips"], "File": "MipsRegisterInfo35", "Func": "getCallPreservedMask", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1771, "Length": 113, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "InstructionCost", "AArch64TTIImpl", "::", "getGatherScatterOpCost", "(", "unsigned", "Opcode", ",", "Type", "*", "DataTy", ",", "const", "Value", "*", "Ptr", ",", "bool", "VariableMask", ",", "Align", "Alignment", ",", "TTI", "::", "TargetCostKind", "CostKind", ",", "const", "Instruction", "*", "I", ")", "{", "if", "(", "!", "isa", "<", "ScalableVectorType", ">", "(", "DataTy", ")", ")", "return", "BaseT", "::", "getGatherScatterOpCost", "(", "Opcode", ",", "DataTy", ",", "Ptr", ",", "VariableMask", ",", "Alignment", ",", "CostKind", ",", "I", ")", ";", "auto", "*", "VT", "=", "cast", "<", "VectorType", ">", "(", "DataTy", ")", ";", "auto", "LT", "=", "TLI", "->", "getTypeLegalizationCost", "(", "DL", ",", "DataTy", ")", ";", "if", "(", "!", "LT", ".", "first", ".", "isValid", "(", ")", ")", "return", "InstructionCost", "::", "getInvalid", "(", ")", ";", "if", "(", "cast", "<", "VectorType", ">", "(", "DataTy", ")", "->", "getElementCount", "(", ")", "==", "ElementCount", "::", "getScalable", "(", "1", ")", ")", "return", "InstructionCost", "::", "getInvalid", "(", ")", ";", "ElementCount", "LegalVF", "=", "LT", ".", "second", ".", "getVectorElementCount", "(", ")", ";", "InstructionCost", "MemOpCost", "=", "getMemoryOpCost", "(", "Opcode", ",", "VT", "->", "getElementType", "(", ")", ",", "Alignment", ",", "0", ",", "CostKind", ",", "I", ")", ";", "return", "LT", ".", "first", "*", "MemOpCost", "*", "getMaxNumElements", "(", "LegalVF", ",", "I", "->", "getFunction", "(", ")", ")", ";", "}", ""], "natrual_language": ["Calculate", "the", "cost", "of", "Gather", "/", "Scatter", "operation", "."], "TS_V_token": ["AArch64", "AArch64", "1", "0"], "File": "AArch64TargetTransformInfo39", "Func": "getGatherScatterOpCost", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1772, "Length": 187, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCAsmParser", "::", "ParseDirective", "(", "AsmToken", "DirectiveID", ")", "{", "StringRef", "IDVal", "=", "DirectiveID", ".", "getIdentifier", "(", ")", ";", "if", "(", "!", "isDarwin", "(", ")", ")", "{", "if", "(", "IDVal", "==", "\".word\"", ")", "return", "ParseDirectiveWord", "(", "2", ",", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "if", "(", "IDVal", "==", "\".llong\"", ")", "return", "ParseDirectiveWord", "(", "8", ",", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "if", "(", "IDVal", "==", "\".tc\"", ")", "return", "ParseDirectiveTC", "(", "isPPC64", "(", ")", "?", "8", ":", "4", ",", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "if", "(", "IDVal", "==", "\".machine\"", ")", "return", "ParseDirectiveMachine", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "if", "(", "IDVal", "==", "\".abiversion\"", ")", "return", "ParseDirectiveAbiVersion", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "if", "(", "IDVal", "==", "\".localentry\"", ")", "return", "ParseDirectiveLocalEntry", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "}", "else", "{", "if", "(", "IDVal", "==", "\".machine\"", ")", "return", "ParseDarwinDirectiveMachine", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["ParseDirective", "-", "Parse", "a", "target", "specific", "assembler", "directive", "This", "method", "is", "deprecated", ",", "use", "'parseDirective", "'", "instead", "."], "TS_V_token": ["PowerPC", "PPC", "\".word\"", "2", "\".llong\"", "8", "\".tc\"", "PPC", "8", "4", "\".machine\"", "\".abiversion\"", "\".localentry\"", "\".machine\""], "File": "PPCAsmParser (2)1", "Func": "ParseDirective", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1773, "Length": 158, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "TargetRegisterClass", "*", "PPCRegisterInfo", "::", "getPointerRegClass", "(", "const", "MachineFunction", "&", "MF", ",", "unsigned", "Kind", ")", "const", "{", "if", "(", "Kind", "==", "1", ")", "{", "if", "(", "TM", ".", "isPPC64", "(", ")", ")", "return", "&", "PPC", "::", "G8RC_NOX0RegClass", ";", "return", "&", "PPC", "::", "GPRC_NOR0RegClass", ";", "}", "if", "(", "TM", ".", "isPPC64", "(", ")", ")", "return", "&", "PPC", "::", "G8RCRegClass", ";", "return", "&", "PPC", "::", "GPRCRegClass", ";", "}", ""], "natrual_language": ["getPointerRegClass", "-", "Returns", "a", "TargetRegisterClass", "used", "for", "pointer", "values", "."], "TS_V_token": ["PowerPC", "PPC", "1", "PPC", "PPC::G8RC_NOX0RegClass", "PPC::GPRC_NOR0RegClass", "PPC", "PPC::G8RCRegClass", "PPC::GPRCRegClass"], "File": "PPCRegisterInfo (2)1", "Func": "getPointerRegClass", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1774, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "CJGMCCodeEmitter", "::", "getMachineOpValue", "(", "const", "MCInst", "&", "MI", ",", "const", "MCOperand", "&", "MO", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "if", "(", "MO", ".", "isReg", "(", ")", ")", "{", "return", "CTX", ".", "getRegisterInfo", "(", ")", "->", "getEncodingValue", "(", "MO", ".", "getReg", "(", ")", ")", ";", "}", "if", "(", "MO", ".", "isImm", "(", ")", ")", "{", "return", "static_cast", "<", "unsigned", ">", "(", "MO", ".", "getImm", "(", ")", ")", ";", "}", "if", "(", "MO", ".", "isExpr", "(", ")", ")", "{", "const", "MCExpr", "*", "Expr", "=", "MO", ".", "getExpr", "(", ")", ";", "MCExpr", "::", "ExprKind", "Kind", "=", "Expr", "->", "getKind", "(", ")", ";", "if", "(", "Kind", "==", "MCExpr", "::", "Constant", ")", "{", "return", "cast", "<", "MCConstantExpr", ">", "(", "Expr", ")", "->", "getValue", "(", ")", ";", "}", "if", "(", "Kind", "==", "MCExpr", "::", "Binary", ")", "{", "Expr", "=", "static_cast", "<", "const", "MCBinaryExpr", "*", ">", "(", "Expr", ")", "->", "getLHS", "(", ")", ";", "Kind", "=", "Expr", "->", "getKind", "(", ")", ";", "}", "assert", "(", "Kind", "==", "MCExpr", "::", "SymbolRef", "&&", "\"unknown MCExpr kind\"", ")", ";", "CJG", "::", "Fixups", "FixupKind", "=", "CJG", "::", "Fixups", "(", "0", ")", ";", "switch", "(", "cast", "<", "MCSymbolRefExpr", ">", "(", "Expr", ")", "->", "getKind", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown fixup kind!\"", ")", ";", "case", "MCSymbolRefExpr", "::", "VK_None", ":", "FixupKind", "=", "CJG", "::", "fixup_CJG_32", ";", "break", ";", "}", "Fixups", ".", "push_back", "(", "MCFixup", "::", "create", "(", "0", ",", "Expr", ",", "MCFixupKind", "(", "FixupKind", ")", ")", ")", ";", "return", "0", ";", "}", "llvm_unreachable", "(", "\"Unhandled expression!\"", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["getMachineOpValue", "-", "Return", "binary", "encoding", "of", "operand", "."], "TS_V_token": ["CJG", "CJG", "\"unknown MCExpr kind\"", "CJG::Fixups", "CJG::Fixups", "0", "\"Unknown fixup kind!\"", "CJG::fixup_CJG_32", "0", "0", "\"Unhandled expression!\"", "0"], "File": "CJGMCCodeEmitter", "Func": "getMachineOpValue", "Target": "CJG", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1775, "Length": 257, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86PassConfig", "::", "addILPOpts", "(", ")", "{", "addPass", "(", "&", "EarlyIfConverterID", ")", ";", "if", "(", "EnableMachineCombinerPass", ")", "addPass", "(", "&", "MachineCombinerID", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Add", "passes", "that", "optimize", "instruction", "level", "parallelism", "for", "out-of-order", "targets", "."], "TS_V_token": ["X86", "X86"], "File": "X86TargetMachine10", "Func": "addILPOpts", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1776, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMAsmPrinter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "MCP", "=", "MF", ".", "getConstantPool", "(", ")", ";", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "SetupMachineFunction", "(", "MF", ")", ";", "const", "Function", "*", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "const", "TargetMachine", "&", "TM", "=", "MF", ".", "getTarget", "(", ")", ";", "for", "(", "auto", "*", "GV", ":", "AFI", "->", "getGlobalsPromotedToConstantPool", "(", ")", ")", "PromotedGlobals", ".", "insert", "(", "GV", ")", ";", "unsigned", "OptimizationGoal", ";", "if", "(", "F", "->", "hasFnAttribute", "(", "Attribute", "::", "OptimizeNone", ")", ")", "OptimizationGoal", "=", "6", ";", "else", "if", "(", "F", "->", "optForMinSize", "(", ")", ")", "OptimizationGoal", "=", "4", ";", "else", "if", "(", "F", "->", "optForSize", "(", ")", ")", "OptimizationGoal", "=", "3", ";", "else", "if", "(", "TM", ".", "getOptLevel", "(", ")", "==", "CodeGenOpt", "::", "Aggressive", ")", "OptimizationGoal", "=", "2", ";", "else", "if", "(", "TM", ".", "getOptLevel", "(", ")", ">", "CodeGenOpt", "::", "None", ")", "OptimizationGoal", "=", "1", ";", "else", "OptimizationGoal", "=", "5", ";", "if", "(", "OptimizationGoals", "==", "-", "1", ")", "OptimizationGoals", "=", "OptimizationGoal", ";", "else", "if", "(", "OptimizationGoals", "!=", "(", "int", ")", "OptimizationGoal", ")", "OptimizationGoals", "=", "0", ";", "if", "(", "Subtarget", "->", "isTargetCOFF", "(", ")", ")", "{", "bool", "Internal", "=", "F", "->", "hasInternalLinkage", "(", ")", ";", "COFF", "::", "SymbolStorageClass", "Scl", "=", "Internal", "?", "COFF", "::", "IMAGE_SYM_CLASS_STATIC", ":", "COFF", "::", "IMAGE_SYM_CLASS_EXTERNAL", ";", "int", "Type", "=", "COFF", "::", "IMAGE_SYM_DTYPE_FUNCTION", "<<", "COFF", "::", "SCT_COMPLEX_TYPE_SHIFT", ";", "OutStreamer", "->", "BeginCOFFSymbolDef", "(", "CurrentFnSym", ")", ";", "OutStreamer", "->", "EmitCOFFSymbolStorageClass", "(", "Scl", ")", ";", "OutStreamer", "->", "EmitCOFFSymbolType", "(", "Type", ")", ";", "OutStreamer", "->", "EndCOFFSymbolDef", "(", ")", ";", "}", "EmitFunctionBody", "(", ")", ";", "emitXRayTable", "(", ")", ";", "if", "(", "!", "ThumbIndirectPads", ".", "empty", "(", ")", ")", "{", "OutStreamer", "->", "EmitAssemblerFlag", "(", "MCAF_Code16", ")", ";", "EmitAlignment", "(", "1", ")", ";", "for", "(", "std", "::", "pair", "<", "unsigned", ",", "MCSymbol", "*", ">", "&", "TIP", ":", "ThumbIndirectPads", ")", "{", "OutStreamer", "->", "EmitLabel", "(", "TIP", ".", "second", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "MCInstBuilder", "(", "ARM", "::", "tBX", ")", ".", "addReg", "(", "TIP", ".", "first", ")", ".", "addImm", "(", "ARMCC", "::", "AL", ")", ".", "addReg", "(", "0", ")", ")", ";", "}", "ThumbIndirectPads", ".", "clear", "(", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "6", "4", "3", "2", "1", "5", "1", "0", "1", "ARM::tBX", "ARMCC::AL", "0"], "File": "ARMAsmPrinter27", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1777, "Length": 367, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "EVT", "getSetCCResultType", "(", "LLVMContext", "&", ",", "EVT", ")", "const", "LLVM_OVERRIDE", "{", "return", "MVT", "::", "i32", ";", "}", ""], "natrual_language": ["Return", "the", "value", "type", "to", "use", "for", "ISD", ":", ":SETCC", "."], "TS_V_token": ["SystemZ", "MVT::i32"], "File": "SystemZISelLowering11", "Func": "getSetCCResultType", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1778, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "sparc_expand_vcond", "(", "machine_mode", "mode", ",", "rtx", "*", "operands", ",", "int", "ccode", ",", "int", "fcode", ")", "{", "rtx", "mask", ",", "cop0", ",", "cop1", ",", "fcmp", ",", "cmask", ",", "bshuf", ",", "gsr", ";", "enum", "rtx_code", "code", "=", "GET_CODE", "(", "operands", "[", "3", "]", ")", ";", "mask", "=", "gen_reg_rtx", "(", "Pmode", ")", ";", "cop0", "=", "operands", "[", "4", "]", ";", "cop1", "=", "operands", "[", "5", "]", ";", "if", "(", "code", "==", "LT", "||", "code", "==", "GE", ")", "{", "rtx", "t", ";", "code", "=", "swap_condition", "(", "code", ")", ";", "t", "=", "cop0", ";", "cop0", "=", "cop1", ";", "cop1", "=", "t", ";", "}", "gsr", "=", "gen_rtx_REG", "(", "DImode", ",", "SPARC_GSR_REG", ")", ";", "fcmp", "=", "gen_rtx_UNSPEC", "(", "Pmode", ",", "gen_rtvec", "(", "1", ",", "gen_rtx_fmt_ee", "(", "code", ",", "mode", ",", "cop0", ",", "cop1", ")", ")", ",", "fcode", ")", ";", "cmask", "=", "gen_rtx_UNSPEC", "(", "DImode", ",", "gen_rtvec", "(", "2", ",", "mask", ",", "gsr", ")", ",", "ccode", ")", ";", "bshuf", "=", "gen_rtx_UNSPEC", "(", "mode", ",", "gen_rtvec", "(", "3", ",", "operands", "[", "1", "]", ",", "operands", "[", "2", "]", ",", "gsr", ")", ",", "UNSPEC_BSHUFFLE", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "mask", ",", "fcmp", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "gsr", ",", "cmask", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "operands", "[", "0", "]", ",", "bshuf", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "code", "to", "conditionally", "move", "a", "combination", "of", "OPERANDS", "[", "1", "]", "and", "OPERANDS", "[", "2", "]", "into", "OPERANDS", "[", "0", "]", "in", "MODE", ",", "depending", "on", "the", "outcome", "of", "the", "comparison", "of", "OPERANDS", "[", "4", "]", "and", "OPERANDS", "[", "5", "]", ".", "OPERANDS", "[", "3", "]", "is", "the", "operator", "of", "the", "condition", ".", "FCODE", "is", "the", "machine", "code", "to", "be", "used", "for", "OPERANDS", "[", "3", "]", "and", "CCODE", "the", "machine", "code", "to", "be", "used", "for", "the", "condition", "mask", "."], "TS_V_token": ["sparc", "3", "4", "5", "1", "2", "3", "1", "2", "0"], "File": "sparc4", "Func": "sparc_expand_vcond", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1779, "Length": 217, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "ia64_expand_compare", "(", "enum", "rtx_code", "code", ",", "enum", "machine_mode", "mode", ")", "{", "rtx", "op0", "=", "ia64_compare_op0", ",", "op1", "=", "ia64_compare_op1", ";", "rtx", "cmp", ";", "if", "(", "GET_MODE", "(", "op0", ")", "==", "BImode", ")", "{", "gcc_assert", "(", "(", "code", "==", "NE", "||", "code", "==", "EQ", ")", "&&", "op1", "==", "const0_rtx", ")", ";", "cmp", "=", "op0", ";", "}", "else", "if", "(", "GET_MODE", "(", "op0", ")", "==", "TFmode", ")", "{", "enum", "qfcmp_magic", "{", "QCMP_INV", "=", "1", ",", "QCMP_UNORD", "=", "2", ",", "QCMP_EQ", "=", "4", ",", "QCMP_LT", "=", "8", ",", "QCMP_GT", "=", "16", "}", "magic", ";", "enum", "rtx_code", "ncode", ";", "rtx", "ret", ",", "insns", ";", "gcc_assert", "(", "cmptf_libfunc", "&&", "GET_MODE", "(", "op1", ")", "==", "TFmode", ")", ";", "switch", "(", "code", ")", "{", "case", "EQ", ":", "magic", "=", "QCMP_EQ", ";", "ncode", "=", "NE", ";", "break", ";", "case", "NE", ":", "magic", "=", "QCMP_EQ", ";", "ncode", "=", "EQ", ";", "break", ";", "case", "UNORDERED", ":", "magic", "=", "QCMP_UNORD", ";", "ncode", "=", "NE", ";", "break", ";", "case", "ORDERED", ":", "magic", "=", "QCMP_UNORD", ";", "ncode", "=", "EQ", ";", "break", ";", "case", "LT", ":", "magic", "=", "QCMP_LT", "|", "QCMP_INV", ";", "ncode", "=", "NE", ";", "break", ";", "case", "LE", ":", "magic", "=", "QCMP_LT", "|", "QCMP_EQ", "|", "QCMP_INV", ";", "ncode", "=", "NE", ";", "break", ";", "case", "GT", ":", "magic", "=", "QCMP_GT", "|", "QCMP_INV", ";", "ncode", "=", "NE", ";", "break", ";", "case", "GE", ":", "magic", "=", "QCMP_GT", "|", "QCMP_EQ", "|", "QCMP_INV", ";", "ncode", "=", "NE", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "start_sequence", "(", ")", ";", "ret", "=", "emit_library_call_value", "(", "cmptf_libfunc", ",", "0", ",", "LCT_CONST", ",", "DImode", ",", "3", ",", "op0", ",", "TFmode", ",", "op1", ",", "TFmode", ",", "GEN_INT", "(", "magic", ")", ",", "DImode", ")", ";", "cmp", "=", "gen_reg_rtx", "(", "BImode", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "cmp", ",", "gen_rtx_fmt_ee", "(", "ncode", ",", "BImode", ",", "ret", ",", "const0_rtx", ")", ")", ")", ";", "insns", "=", "get_insns", "(", ")", ";", "end_sequence", "(", ")", ";", "emit_libcall_block", "(", "insns", ",", "cmp", ",", "cmp", ",", "gen_rtx_fmt_ee", "(", "code", ",", "BImode", ",", "op0", ",", "op1", ")", ")", ";", "code", "=", "NE", ";", "}", "else", "{", "cmp", "=", "gen_reg_rtx", "(", "BImode", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "cmp", ",", "gen_rtx_fmt_ee", "(", "code", ",", "BImode", ",", "op0", ",", "op1", ")", ")", ")", ";", "code", "=", "NE", ";", "}", "return", "gen_rtx_fmt_ee", "(", "code", ",", "mode", ",", "cmp", ",", "const0_rtx", ")", ";", "}", ""], "natrual_language": ["Emit", "comparison", "instruction", "if", "necessary", ",", "returning", "the", "expression", "that", "holds", "the", "compare", "result", "in", "the", "proper", "mode", "."], "TS_V_token": ["ia64", "1", "2", "4", "8", "16", "0", "3"], "File": "ia643", "Func": "ia64_expand_compare", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1780, "Length": 386, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "SHUXITargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", ",", "const", "SDLoc", "&", "DL", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "if", "(", "IsVarArg", ")", "{", "report_fatal_error", "(", "\"VarArg not supported\"", ")", ";", "}", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_SHUXI", ")", ";", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", "(", "1", ",", "Chain", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RVLocs", ".", "size", "(", ")", ";", "i", "<", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Can only return in 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", "(", "SHUXIISD", "::", "RET_FLAG", ",", "DL", ",", "MVT", "::", "Other", ",", "RetOps", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["SHUXI", "SHUXI", "ISD::OutputArg", "\"VarArg not supported\"", "16", "SHUXI", "4", "1", "0", "\"Can only return in registers!\"", "1", "0", "SHUXIISD::RET_FLAG", "MVT::Other"], "File": "SHUXIISelLowering", "Func": "LowerReturn", "Target": "SHUXI", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1781, "Length": 254, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "DLXRegisterInfo", "::", "requiresRegisterScavenging", "(", "const", "MachineFunction", "&", ")", "const", "{", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "requires", "(", "and", "can", "make", "use", "of", ")", "the", "register", "scavenger", "."], "TS_V_token": ["DLX", "DLX"], "File": "DLXRegisterInfo", "Func": "requiresRegisterScavenging", "Target": "DLX", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1782, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCFrameLowering", "::", "determineFrameLayout", "(", "MachineFunction", "&", "MF", ",", "bool", "UpdateMF", ",", "bool", "UseEstimate", ")", "const", "{", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "unsigned", "FrameSize", "=", "UseEstimate", "?", "MFI", ".", "estimateStackSize", "(", "MF", ")", ":", "MFI", ".", "getStackSize", "(", ")", ";", "unsigned", "TargetAlign", "=", "getStackAlignment", "(", ")", ";", "unsigned", "MaxAlign", "=", "MFI", ".", "getMaxAlignment", "(", ")", ";", "unsigned", "AlignMask", "=", "std", "::", "max", "(", "MaxAlign", ",", "TargetAlign", ")", "-", "1", ";", "const", "PPCRegisterInfo", "*", "RegInfo", "=", "Subtarget", ".", "getRegisterInfo", "(", ")", ";", "unsigned", "LR", "=", "RegInfo", "->", "getRARegister", "(", ")", ";", "bool", "DisableRedZone", "=", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "Attribute", "::", "NoRedZone", ")", ";", "bool", "CanUseRedZone", "=", "!", "MFI", ".", "hasVarSizedObjects", "(", ")", "&&", "!", "MFI", ".", "adjustsStack", "(", ")", "&&", "!", "MustSaveLR", "(", "MF", ",", "LR", ")", "&&", "!", "RegInfo", "->", "hasBasePointer", "(", "MF", ")", ";", "bool", "FitsInRedZone", "=", "FrameSize", "<=", "Subtarget", ".", "getRedZoneSize", "(", ")", ";", "if", "(", "!", "DisableRedZone", "&&", "CanUseRedZone", "&&", "FitsInRedZone", ")", "{", "if", "(", "UpdateMF", ")", "MFI", ".", "setStackSize", "(", "0", ")", ";", "return", "0", ";", "}", "unsigned", "maxCallFrameSize", "=", "MFI", ".", "getMaxCallFrameSize", "(", ")", ";", "unsigned", "minCallFrameSize", "=", "getLinkageSize", "(", ")", ";", "maxCallFrameSize", "=", "std", "::", "max", "(", "maxCallFrameSize", ",", "minCallFrameSize", ")", ";", "if", "(", "MFI", ".", "hasVarSizedObjects", "(", ")", ")", "maxCallFrameSize", "=", "(", "maxCallFrameSize", "+", "AlignMask", ")", "&", "~", "AlignMask", ";", "if", "(", "UpdateMF", ")", "MFI", ".", "setMaxCallFrameSize", "(", "maxCallFrameSize", ")", ";", "FrameSize", "+=", "maxCallFrameSize", ";", "FrameSize", "=", "(", "FrameSize", "+", "AlignMask", ")", "&", "~", "AlignMask", ";", "if", "(", "UpdateMF", ")", "MFI", ".", "setStackSize", "(", "FrameSize", ")", ";", "return", "FrameSize", ";", "}", ""], "natrual_language": ["Determine", "the", "frame", "layout", "but", "do", "not", "update", "the", "machine", "function", "."], "TS_V_token": ["PowerPC", "PPC", "1", "PPC", "0", "0"], "File": "PPCFrameLowering11", "Func": "determineFrameLayout", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1783, "Length": 267, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "LanaiInstrInfo", "::", "expandPostRAPseudo", "(", "MachineInstr", "&", ")", "const", "{", "return", "false", ";", "}", ""], "natrual_language": ["This", "function", "is", "called", "for", "all", "pseudo", "instructions", "that", "remain", "after", "register", "allocation", "."], "TS_V_token": ["Lanai", "Lanai"], "File": "LanaiInstrInfo (2)", "Func": "expandPostRAPseudo", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1784, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMTargetLowering", "::", "computeKnownBitsForTargetNode", "(", "const", "SDValue", "Op", ",", "APInt", "&", "KnownZero", ",", "APInt", "&", "KnownOne", ",", "const", "APInt", "&", "DemandedElts", ",", "const", "SelectionDAG", "&", "DAG", ",", "unsigned", "Depth", ")", "const", "{", "unsigned", "BitWidth", "=", "KnownOne", ".", "getBitWidth", "(", ")", ";", "KnownZero", "=", "KnownOne", "=", "APInt", "(", "BitWidth", ",", "0", ")", ";", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "ARMISD", "::", "ADDC", ":", "case", "ARMISD", "::", "ADDE", ":", "case", "ARMISD", "::", "SUBC", ":", "case", "ARMISD", "::", "SUBE", ":", "if", "(", "Op", ".", "getResNo", "(", ")", "==", "0", ")", "break", ";", "KnownZero", "|=", "APInt", "::", "getHighBitsSet", "(", "BitWidth", ",", "BitWidth", "-", "1", ")", ";", "break", ";", "case", "ARMISD", "::", "CMOV", ":", "{", "DAG", ".", "computeKnownBits", "(", "Op", ".", "getOperand", "(", "0", ")", ",", "KnownZero", ",", "KnownOne", ",", "Depth", "+", "1", ")", ";", "if", "(", "KnownZero", "==", "0", "&&", "KnownOne", "==", "0", ")", "return", ";", "APInt", "KnownZeroRHS", ",", "KnownOneRHS", ";", "DAG", ".", "computeKnownBits", "(", "Op", ".", "getOperand", "(", "1", ")", ",", "KnownZeroRHS", ",", "KnownOneRHS", ",", "Depth", "+", "1", ")", ";", "KnownZero", "&=", "KnownZeroRHS", ";", "KnownOne", "&=", "KnownOneRHS", ";", "return", ";", "}", "case", "ISD", "::", "INTRINSIC_W_CHAIN", ":", "{", "ConstantSDNode", "*", "CN", "=", "cast", "<", "ConstantSDNode", ">", "(", "Op", "->", "getOperand", "(", "1", ")", ")", ";", "Intrinsic", "::", "ID", "IntID", "=", "static_cast", "<", "Intrinsic", "::", "ID", ">", "(", "CN", "->", "getZExtValue", "(", ")", ")", ";", "switch", "(", "IntID", ")", "{", "default", ":", "return", ";", "case", "Intrinsic", "::", "arm_ldaex", ":", "case", "Intrinsic", "::", "arm_ldrex", ":", "{", "EVT", "VT", "=", "cast", "<", "MemIntrinsicSDNode", ">", "(", "Op", ")", "->", "getMemoryVT", "(", ")", ";", "unsigned", "MemBits", "=", "VT", ".", "getScalarSizeInBits", "(", ")", ";", "KnownZero", "|=", "APInt", "::", "getHighBitsSet", "(", "BitWidth", ",", "BitWidth", "-", "MemBits", ")", ";", "return", ";", "}", "}", "}", "}", "}", ""], "natrual_language": ["Determine", "which", "of", "the", "bits", "specified", "in", "Mask", "are", "known", "to", "be", "either", "zero", "or", "one", "and", "return", "them", "in", "the", "KnownZero/KnownOne", "bitsets", "."], "TS_V_token": ["ARM", "ARM", "0", "ARMISD::ADDC", "ARMISD::ADDE", "ARMISD::SUBC", "ARMISD::SUBE", "0", "1", "ARMISD::CMOV", "0", "1", "0", "0", "1", "1", "ISD::INTRINSIC_W_CHAIN", "1", "Intrinsic::ID", "Intrinsic::ID", "Intrinsic::arm_ldaex", "Intrinsic::arm_ldrex"], "File": "ARMISelLowering146", "Func": "computeKnownBitsForTargetNode", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1785, "Length": 292, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86InstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "unsigned", "DestReg", ",", "int", "FrameIdx", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "const", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "unsigned", "Alignment", "=", "std", "::", "max", "<", "uint32_t", ">", "(", "TRI", "->", "getSpillSize", "(", "*", "RC", ")", ",", "16", ")", ";", "bool", "isAligned", "=", "(", "Subtarget", ".", "getFrameLowering", "(", ")", "->", "getStackAlignment", "(", ")", ">=", "Alignment", ")", "||", "RI", ".", "canRealignStack", "(", "MF", ")", ";", "unsigned", "Opc", "=", "getLoadRegOpcode", "(", "DestReg", ",", "RC", ",", "isAligned", ",", "Subtarget", ")", ";", "DebugLoc", "DL", "=", "MBB", ".", "findDebugLoc", "(", "MI", ")", ";", "addFrameReference", "(", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "Opc", ")", ",", "DestReg", ")", ",", "FrameIdx", ")", ";", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["X86", "X86", "16"], "File": "X86InstrInfo", "Func": "loadRegFromStackSlot", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1786, "Length": 135, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZTargetLowering", "::", "isTruncateFree", "(", "EVT", "FromVT", ",", "EVT", "ToVT", ")", "const", "{", "if", "(", "!", "FromVT", ".", "isInteger", "(", ")", "||", "!", "ToVT", ".", "isInteger", "(", ")", ")", "return", "false", ";", "unsigned", "FromBits", "=", "FromVT", ".", "getFixedSizeInBits", "(", ")", ";", "unsigned", "ToBits", "=", "ToVT", ".", "getFixedSizeInBits", "(", ")", ";", "return", "FromBits", ">", "ToBits", ";", "}", ""], "natrual_language": ["Return", "true", "if", "it", "'s", "free", "to", "truncate", "a", "value", "of", "type", "Ty1", "to", "type", "Ty2", "."], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZISelLowering (2)2", "Func": "isTruncateFree", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1787, "Length": 56, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mips_pad_reg_upward", "(", "machine_mode", "mode", ",", "tree", "type", ")", "{", "if", "(", "type", "!=", "0", "?", "FLOAT_TYPE_P", "(", "type", ")", ":", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_FLOAT", ")", "return", "!", "BYTES_BIG_ENDIAN", ";", "return", "mips_pad_arg_upward", "(", "mode", ",", "type", ")", ";", "}", ""], "natrual_language": ["Likewise", "BLOCK_REG_PADDING", "(", "MODE", ",", "TYPE", ",", "...", ")", ".", "Return", "!", "BYTES_BIG_ENDIAN", "if", "the", "least", "significant", "byte", "of", "the", "register", "has", "useful", "data", ".", "Return", "the", "opposite", "if", "the", "most", "significant", "byte", "does", "."], "TS_V_token": ["mips", "0"], "File": "mips4", "Func": "mips_pad_reg_upward", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1788, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "exact_store_load_dependency", "(", "rtx_insn", "*", "store", ",", "rtx_insn", "*", "load", ")", "{", "rtx", "set1", ",", "set2", ";", "set1", "=", "single_set", "(", "store", ")", ";", "if", "(", "!", "set1", ")", "return", "false", ";", "if", "(", "!", "MEM_P", "(", "SET_DEST", "(", "set1", ")", ")", ")", "return", "false", ";", "set2", "=", "single_set", "(", "load", ")", ";", "if", "(", "!", "set2", ")", "return", "false", ";", "if", "(", "exact_dependency_1", "(", "SET_DEST", "(", "set1", ")", ",", "SET_SRC", "(", "set2", ")", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "there", "exists", "exact", "dependency", "for", "store", "&", "load", ",", "i.e", ".", "the", "same", "memory", "address", "is", "used", "in", "them", "."], "TS_V_token": ["i386"], "File": "i3864", "Func": "exact_store_load_dependency", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1789, "Length": 84, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64AsmPrinter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "return", "AsmPrinter", "::", "runOnMachineFunction", "(", "MF", ")", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64AsmPrinter11", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1790, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCSection", "*", "MipsTargetObjectFile", "::", "getSectionForConstant", "(", "SectionKind", "Kind", ",", "const", "Constant", "*", "C", ")", "const", "{", "if", "(", "IsConstantInSmallSection", "(", "C", ",", "*", "TM", ")", ")", "return", "SmallDataSection", ";", "return", "TargetLoweringObjectFileELF", "::", "getSectionForConstant", "(", "Kind", ",", "C", ")", ";", "}", ""], "natrual_language": ["Given", "a", "constant", "with", "the", "SectionKind", ",", "return", "a", "section", "that", "it", "should", "be", "placed", "in", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsTargetObjectFile16", "Func": "getSectionForConstant", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1791, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isTargetEHABICompatible", "(", ")", "const", "{", "return", "TargetTriple", ".", "isTargetEHABICompatible", "(", ")", ";", "}", ""], "natrual_language": ["Tests", "whether", "the", "target", "supports", "the", "EHABI", "exception", "handling", "standard", "."], "TS_V_token": ["ARM"], "File": "ARMSubtarget118", "Func": "isTargetEHABICompatible", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1792, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_finish_atomic_subword", "(", "rtx", "narrow", ",", "rtx", "wide", ",", "rtx", "shift", ")", "{", "wide", "=", "expand_simple_binop", "(", "SImode", ",", "LSHIFTRT", ",", "wide", ",", "shift", ",", "wide", ",", "1", ",", "OPTAB_LIB_WIDEN", ")", ";", "emit_move_insn", "(", "narrow", ",", "gen_lowpart", "(", "GET_MODE", "(", "narrow", ")", ",", "wide", ")", ")", ";", "}", ""], "natrual_language": ["A", "subroutine", "of", "the", "various", "atomic", "expanders", ".", "For", "sub-word", "operands", ",", "extract", "WIDE", "to", "NARROW", "via", "SHIFT", "."], "TS_V_token": ["rs6000", "1"], "File": "rs6000", "Func": "rs6000_finish_atomic_subword", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1793, "Length": 49, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "arm_vector_mode_supported_p", "(", "machine_mode", "mode", ")", "{", "if", "(", "TARGET_NEON", "&&", "(", "mode", "==", "V2SFmode", "||", "mode", "==", "V4SImode", "||", "mode", "==", "V8HImode", "||", "mode", "==", "V4HFmode", "||", "mode", "==", "V16QImode", "||", "mode", "==", "V4SFmode", "||", "mode", "==", "V2DImode", ")", ")", "return", "true", ";", "if", "(", "(", "TARGET_NEON", "||", "TARGET_IWMMXT", ")", "&&", "(", "(", "mode", "==", "V2SImode", ")", "||", "(", "mode", "==", "V4HImode", ")", "||", "(", "mode", "==", "V8QImode", ")", ")", ")", "return", "true", ";", "if", "(", "TARGET_INT_SIMD", "&&", "(", "mode", "==", "V4UQQmode", "||", "mode", "==", "V4QQmode", "||", "mode", "==", "V2UHQmode", "||", "mode", "==", "V2HQmode", "||", "mode", "==", "V2UHAmode", "||", "mode", "==", "V2HAmode", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Implements", "target", "hook", "vector_mode_supported_p", "."], "TS_V_token": ["arm"], "File": "arm4", "Func": "arm_vector_mode_supported_p", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1794, "Length": 112, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsAsmPrinter", "::", "emitFunctionEntryLabel", "(", ")", "{", "MipsTargetStreamer", "&", "TS", "=", "getTargetStreamer", "(", ")", ";", "if", "(", "Subtarget", "->", "isTargetNaCl", "(", ")", ")", "emitAlignment", "(", "std", "::", "max", "(", "MF", "->", "getAlignment", "(", ")", ",", "MIPS_NACL_BUNDLE_ALIGN", ")", ")", ";", "if", "(", "Subtarget", "->", "inMicroMipsMode", "(", ")", ")", "{", "TS", ".", "emitDirectiveSetMicroMips", "(", ")", ";", "TS", ".", "setUsesMicroMips", "(", ")", ";", "TS", ".", "updateABIInfo", "(", "*", "Subtarget", ")", ";", "}", "else", "TS", ".", "emitDirectiveSetNoMicroMips", "(", ")", ";", "if", "(", "Subtarget", "->", "inMips16Mode", "(", ")", ")", "TS", ".", "emitDirectiveSetMips16", "(", ")", ";", "else", "TS", ".", "emitDirectiveSetNoMips16", "(", ")", ";", "TS", ".", "emitDirectiveEnt", "(", "*", "CurrentFnSym", ")", ";", "OutStreamer", "->", "emitLabel", "(", "CurrentFnSym", ")", ";", "}", ""], "natrual_language": ["EmitFunctionEntryLabel", "-", "Emit", "the", "label", "that", "is", "the", "entrypoint", "for", "the", "function", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips"], "File": "MipsAsmPrinter", "Func": "emitFunctionEntryLabel", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1795, "Length": 113, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "LEGInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "BuildMI", "(", "MBB", ",", "I", ",", "I", "->", "getDebugLoc", "(", ")", ",", "get", "(", "LEG", "::", "STR", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addFrameIndex", "(", "FrameIndex", ")", ".", "addImm", "(", "0", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["LEG", "LEG", "LEG::STR", "0"], "File": "LEGInstrInfo", "Func": "storeRegToStackSlot", "Target": "LEG", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1796, "Length": 76, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetPassConfig", "*", "TOYTargetMachine", "::", "createPassConfig", "(", "PassManagerBase", "&", "PM", ")", "{", "return", "new", "TOYPassConfig", "(", "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": ["TOY", "TOY", "TOY"], "File": "TOYTargetMachine", "Func": "createPassConfig", "Target": "TOY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1797, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "long", "thumb1_compute_save_core_reg_mask", "(", "void", ")", "{", "unsigned", "long", "mask", ";", "unsigned", "reg", ";", "mask", "=", "0", ";", "for", "(", "reg", "=", "0", ";", "reg", "<", "12", ";", "reg", "++", ")", "if", "(", "df_regs_ever_live_p", "(", "reg", ")", "&&", "callee_saved_reg_p", "(", "reg", ")", ")", "mask", "|=", "1", "<<", "reg", ";", "if", "(", "frame_pointer_needed", ")", "mask", "|=", "1", "<<", "HARD_FRAME_POINTER_REGNUM", ";", "if", "(", "flag_pic", "&&", "!", "TARGET_SINGLE_PIC_BASE", "&&", "arm_pic_register", "!=", "INVALID_REGNUM", "&&", "crtl", "->", "uses_pic_offset_table", ")", "mask", "|=", "1", "<<", "PIC_OFFSET_TABLE_REGNUM", ";", "if", "(", "!", "frame_pointer_needed", "&&", "CALLER_INTERWORKING_SLOT_SIZE", ">", "0", ")", "mask", "|=", "1", "<<", "ARM_HARD_FRAME_POINTER_REGNUM", ";", "if", "(", "mask", "&", "0xff", "||", "thumb_force_lr_save", "(", ")", ")", "mask", "|=", "(", "1", "<<", "LR_REGNUM", ")", ";", "bool", "call_clobbered_scratch", "=", "(", "thumb1_prologue_unused_call_clobbered_lo_regs", "(", ")", "&&", "thumb1_epilogue_unused_call_clobbered_lo_regs", "(", ")", ")", ";", "if", "(", "(", "mask", "&", "0xff", ")", "==", "0", "&&", "!", "call_clobbered_scratch", "&&", "(", "(", "mask", "&", "0x0f00", ")", "||", "TARGET_BACKTRACE", ")", ")", "{", "reg", "=", "thumb_find_work_register", "(", "1", "<<", "LAST_LO_REGNUM", ")", ";", "if", "(", "reg", "*", "UNITS_PER_WORD", "<=", "(", "unsigned", ")", "arm_size_return_regs", "(", ")", ")", "reg", "=", "LAST_LO_REGNUM", ";", "if", "(", "callee_saved_reg_p", "(", "reg", ")", ")", "mask", "|=", "1", "<<", "reg", ";", "}", "if", "(", "(", "CALLER_INTERWORKING_SLOT_SIZE", "+", "ROUND_UP_WORD", "(", "get_frame_size", "(", ")", ")", "+", "crtl", "->", "outgoing_args_size", ")", ">=", "504", ")", "{", "for", "(", "reg", "=", "LAST_ARG_REGNUM", "+", "1", ";", "reg", "<=", "LAST_LO_REGNUM", ";", "reg", "++", ")", "if", "(", "mask", "&", "(", "1", "<<", "reg", ")", ")", "break", ";", "if", "(", "reg", ">", "LAST_LO_REGNUM", ")", "{", "mask", "|=", "1", "<<", "LAST_LO_REGNUM", ";", "}", "}", "return", "mask", ";", "}", ""], "natrual_language": ["Compute", "a", "bit", "mask", "of", "which", "core", "registers", "need", "to", "be", "saved", "on", "the", "stack", "for", "the", "current", "function", "."], "TS_V_token": ["arm", "0", "0", "12", "1", "1", "1", "0", "1", "0xff", "1", "0xff", "0", "0x0f00", "1", "1", "504", "1", "1", "1"], "File": "arm", "Func": "thumb1_compute_save_core_reg_mask", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1798, "Length": 257, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "sparc_frame_pointer_required", "(", "void", ")", "{", "if", "(", "cfun", "->", "calls_alloca", ")", "return", "true", ";", "if", "(", "cfun", "->", "has_nonlocal_label", ")", "return", "true", ";", "if", "(", "TARGET_FLAT", ")", "return", "false", ";", "return", "!", "(", "optimize", ">", "0", "&&", "crtl", "->", "is_leaf", "&&", "only_leaf_regs_used", "(", ")", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_FRAME_POINTER_REQUIRED", "."], "TS_V_token": ["sparc", "0"], "File": "sparc", "Func": "sparc_frame_pointer_required", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1799, "Length": 49, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetTransformInfo", "::", "PopcntSupportKind", "FPGATTIImpl", "::", "getPopcntSupport", "(", "unsigned", "IntTyWidthInBit", ")", "{", "return", "TTI", "::", "PSK_FastHardware", ";", "}", ""], "natrual_language": ["Return", "hardware", "support", "for", "population", "count", "."], "TS_V_token": ["FPGA", "FPGA"], "File": "FPGATargetTransformInfo", "Func": "getPopcntSupport", "Target": "FPGA", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1800, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZMCAsmBackend", "::", "applyFixup", "(", "const", "MCAssembler", "&", "Asm", ",", "const", "MCFixup", "&", "Fixup", ",", "const", "MCValue", "&", "Target", ",", "MutableArrayRef", "<", "char", ">", "Data", ",", "uint64_t", "Value", ",", "bool", "IsPCRel", ")", "const", "{", "MCFixupKind", "Kind", "=", "Fixup", ".", "getKind", "(", ")", ";", "unsigned", "Offset", "=", "Fixup", ".", "getOffset", "(", ")", ";", "unsigned", "BitSize", "=", "getFixupKindInfo", "(", "Kind", ")", ".", "TargetSize", ";", "unsigned", "Size", "=", "(", "BitSize", "+", "7", ")", "/", "8", ";", "assert", "(", "Offset", "+", "Size", "<=", "Data", ".", "size", "(", ")", "&&", "\"Invalid fixup offset!\"", ")", ";", "Value", "=", "extractBitsForFixup", "(", "Kind", ",", "Value", ")", ";", "if", "(", "BitSize", "<", "64", ")", "Value", "&=", "(", "(", "uint64_t", ")", "1", "<<", "BitSize", ")", "-", "1", ";", "unsigned", "ShiftValue", "=", "(", "Size", "*", "8", ")", "-", "8", ";", "for", "(", "unsigned", "I", "=", "0", ";", "I", "!=", "Size", ";", "++", "I", ")", "{", "Data", "[", "Offset", "+", "I", "]", "|=", "uint8_t", "(", "Value", ">>", "ShiftValue", ")", ";", "ShiftValue", "-=", "8", ";", "}", "}", ""], "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": ["SystemZ", "SystemZ", "7", "8", "\"Invalid fixup offset!\"", "64", "1", "1", "8", "8", "0", "8"], "File": "SystemZMCAsmBackend11", "Func": "applyFixup", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1801, "Length": 162, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "scalar_chain", "::", "convert_registers", "(", ")", "{", "bitmap_iterator", "bi", ";", "unsigned", "id", ";", "EXECUTE_IF_SET_IN_BITMAP", "(", "defs_conv", ",", "0", ",", "id", ",", "bi", ")", "{", "rtx", "chain_reg", "=", "gen_reg_rtx", "(", "smode", ")", ";", "defs_map", ".", "put", "(", "regno_reg_rtx", "[", "id", "]", ",", "chain_reg", ")", ";", "}", "EXECUTE_IF_SET_IN_BITMAP", "(", "insns_conv", ",", "0", ",", "id", ",", "bi", ")", "for", "(", "df_ref", "ref", "=", "DF_INSN_UID_DEFS", "(", "id", ")", ";", "ref", ";", "ref", "=", "DF_REF_NEXT_LOC", "(", "ref", ")", ")", "if", "(", "bitmap_bit_p", "(", "defs_conv", ",", "DF_REF_REGNO", "(", "ref", ")", ")", ")", "make_vector_copies", "(", "DF_REF_INSN", "(", "ref", ")", ",", "DF_REF_REAL_REG", "(", "ref", ")", ")", ";", "}", ""], "natrual_language": ["Generate", "copies", "from", "defs", "used", "by", "the", "chain", "but", "not", "defined", "therein", ".", "Also", "populates", "defs_map", "which", "is", "used", "later", "by", "convert_insn", "."], "TS_V_token": ["i386", "0", "0"], "File": "i386-features1", "Func": "convert_registers", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1802, "Length": 100, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "build_32_64", "(", "function_builder", "&", "b", ",", "const", "char", "*", "signature", ",", "const", "function_group_info", "&", "group", ",", "mode_suffix_index", "mode32", ",", "mode_suffix_index", "mode64", ",", "bool", "force_direct_overloads", "=", "false", ")", "{", "for", "(", "unsigned", "int", "pi", "=", "0", ";", "group", ".", "preds", "[", "pi", "]", "!=", "NUM_PREDS", ";", "++", "pi", ")", "if", "(", "group", ".", "types", "[", "0", "]", "[", "0", "]", "==", "NUM_TYPE_SUFFIXES", ")", "{", "gcc_assert", "(", "mode32", "!=", "MODE_none", "&&", "mode64", "!=", "MODE_none", ")", ";", "build_one", "(", "b", ",", "signature", ",", "group", ",", "mode32", ",", "0", ",", "pi", ",", "force_direct_overloads", ")", ";", "build_one", "(", "b", ",", "signature", ",", "group", ",", "mode64", ",", "0", ",", "pi", ",", "force_direct_overloads", ")", ";", "}", "else", "for", "(", "unsigned", "int", "ti", "=", "0", ";", "group", ".", "types", "[", "ti", "]", "[", "0", "]", "!=", "NUM_TYPE_SUFFIXES", ";", "++", "ti", ")", "{", "unsigned", "int", "bits", "=", "type_suffixes", "[", "group", ".", "types", "[", "ti", "]", "[", "0", "]", "]", ".", "element_bits", ";", "gcc_assert", "(", "bits", "==", "32", "||", "bits", "==", "64", ")", ";", "mode_suffix_index", "mode", "=", "bits", "==", "32", "?", "mode32", ":", "mode64", ";", "if", "(", "mode", "!=", "MODE_none", ")", "build_one", "(", "b", ",", "signature", ",", "group", ",", "mode", ",", "ti", ",", "pi", ",", "force_direct_overloads", ")", ";", "}", "}", ""], "natrual_language": ["GROUP", "describes", "some", "sort", "of", "gather", "or", "scatter", "operation", ".", "There", "are", "two", "cases", ":", "-", "If", "the", "function", "has", "any", "type", "suffixes", "(", "as", "for", "loads", "and", "stores", ")", ",", "the", "first", "function", "type", "suffix", "specifies", "either", "a", "32-bit", "or", "a", "64-bit", "type", ",", "which", "in", "turn", "selects", "either", "MODE32", "or", "MODE64", "as", "the", "addressing", "mode", ".", "Add", "a", "function", "instance", "for", "every", "type", "and", "predicate", "combination", "in", "GROUP", "for", "which", "the", "associated", "addressing", "mode", "is", "not", "MODE_none", ".", "-", "If", "the", "function", "has", "no", "type", "suffixes", "(", "as", "for", "prefetches", ")", ",", "add", "one", "MODE32", "form", "and", "one", "MODE64", "form", "for", "each", "predication", "type", ".", "The", "other", "arguments", "are", "as", "for", "build_all", "."], "TS_V_token": ["aarch64", "0", "0", "0", "0", "0", "0", "0", "0", "32", "64", "32"], "File": "aarch64-sve-builtins-shapes", "Func": "build_32_64", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1803, "Length": 202, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "::", "iterator", "Thumb1FrameLowering", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "const", "Thumb1InstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "Thumb1InstrInfo", "*", ">", "(", "STI", ".", "getInstrInfo", "(", ")", ")", ";", "const", "ThumbRegisterInfo", "*", "RegInfo", "=", "static_cast", "<", "const", "ThumbRegisterInfo", "*", ">", "(", "STI", ".", "getRegisterInfo", "(", ")", ")", ";", "if", "(", "!", "hasReservedCallFrame", "(", "MF", ")", ")", "{", "MachineInstr", "&", "Old", "=", "*", "I", ";", "DebugLoc", "dl", "=", "Old", ".", "getDebugLoc", "(", ")", ";", "unsigned", "Amount", "=", "Old", ".", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "if", "(", "Amount", "!=", "0", ")", "{", "unsigned", "Align", "=", "getStackAlignment", "(", ")", ";", "Amount", "=", "(", "Amount", "+", "Align", "-", "1", ")", "/", "Align", "*", "Align", ";", "unsigned", "Opc", "=", "Old", ".", "getOpcode", "(", ")", ";", "if", "(", "Opc", "==", "ARM", "::", "ADJCALLSTACKDOWN", "||", "Opc", "==", "ARM", "::", "tADJCALLSTACKDOWN", ")", "{", "emitSPUpdate", "(", "MBB", ",", "I", ",", "TII", ",", "dl", ",", "*", "RegInfo", ",", "-", "Amount", ")", ";", "}", "else", "{", "assert", "(", "Opc", "==", "ARM", "::", "ADJCALLSTACKUP", "||", "Opc", "==", "ARM", "::", "tADJCALLSTACKUP", ")", ";", "emitSPUpdate", "(", "MBB", ",", "I", ",", "TII", ",", "dl", ",", "*", "RegInfo", ",", "Amount", ")", ";", "}", "}", "}", "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": ["ARM", "0", "0", "1", "ARM::ADJCALLSTACKDOWN", "ARM::tADJCALLSTACKDOWN", "ARM::ADJCALLSTACKUP", "ARM::tADJCALLSTACKUP"], "File": "Thumb1FrameLowering15", "Func": "eliminateCallFramePseudoInstr", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1804, "Length": 215, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Cpu0InstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "DebugLoc", "DL", ",", "unsigned", "DestReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "unsigned", "Opc", "=", "0", ",", "ZeroReg", "=", "0", ";", "if", "(", "Cpu0", "::", "CPURegsRegClass", ".", "contains", "(", "DestReg", ")", ")", "{", "if", "(", "Cpu0", "::", "CPURegsRegClass", ".", "contains", "(", "SrcReg", ")", ")", "Opc", "=", "Cpu0", "::", "ADD", ",", "ZeroReg", "=", "Cpu0", "::", "ZERO", ";", "else", "if", "(", "SrcReg", "==", "Cpu0", "::", "HI", ")", "Opc", "=", "Cpu0", "::", "MFHI", ",", "SrcReg", "=", "0", ";", "else", "if", "(", "SrcReg", "==", "Cpu0", "::", "LO", ")", "Opc", "=", "Cpu0", "::", "MFLO", ",", "SrcReg", "=", "0", ";", "else", "if", "(", "SrcReg", "==", "Cpu0", "::", "SW", ")", "Opc", "=", "Cpu0", "::", "ADD", ",", "ZeroReg", "=", "Cpu0", "::", "ZERO", ";", "}", "else", "if", "(", "Cpu0", "::", "CPURegsRegClass", ".", "contains", "(", "SrcReg", ")", ")", "{", "if", "(", "DestReg", "==", "Cpu0", "::", "HI", ")", "Opc", "=", "Cpu0", "::", "MTHI", ",", "DestReg", "=", "0", ";", "else", "if", "(", "DestReg", "==", "Cpu0", "::", "LO", ")", "Opc", "=", "Cpu0", "::", "MTLO", ",", "DestReg", "=", "0", ";", "else", "if", "(", "DestReg", "==", "Cpu0", "::", "SW", ")", "Opc", "=", "Cpu0", "::", "CMP", ",", "ZeroReg", "=", "Cpu0", "::", "ZERO", ";", "}", "assert", "(", "Opc", "&&", "\"Cannot copy registers\"", ")", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "Opc", ")", ")", ";", "if", "(", "DestReg", ")", "MIB", ".", "addReg", "(", "DestReg", ",", "RegState", "::", "Define", ")", ";", "if", "(", "ZeroReg", ")", "MIB", ".", "addReg", "(", "ZeroReg", ")", ";", "if", "(", "SrcReg", ")", "MIB", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "}", ""], "natrual_language": ["}", "Branch", "Analysis", "&", "Modification"], "TS_V_token": ["Cpu0", "Cpu0", "0", "0", "Cpu0::CPURegsRegClass", "Cpu0::CPURegsRegClass", "Cpu0::ADD", "Cpu0::ZERO", "Cpu0::HI", "Cpu0::MFHI", "0", "Cpu0::LO", "Cpu0::MFLO", "0", "Cpu0::SW", "Cpu0::ADD", "Cpu0::ZERO", "Cpu0::CPURegsRegClass", "Cpu0::HI", "Cpu0::MTHI", "0", "Cpu0::LO", "Cpu0::MTLO", "0", "Cpu0::SW", "Cpu0::CMP", "Cpu0::ZERO", "\"Cannot copy registers\""], "File": "Cpu0InstrInfo2", "Func": "copyPhysReg", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1805, "Length": 271, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "recpe_type", "get_recpe_type", "(", "machine_mode", "mode", ")", "{", "switch", "(", "mode", ")", "{", "case", "SFmode", ":", "return", "(", "gen_aarch64_frecpesf", ")", ";", "case", "V2SFmode", ":", "return", "(", "gen_aarch64_frecpev2sf", ")", ";", "case", "V4SFmode", ":", "return", "(", "gen_aarch64_frecpev4sf", ")", ";", "case", "DFmode", ":", "return", "(", "gen_aarch64_frecpedf", ")", ";", "case", "V2DFmode", ":", "return", "(", "gen_aarch64_frecpev2df", ")", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Select", "reciprocal", "initial", "estimate", "insn", "depending", "on", "machine", "mode", "."], "TS_V_token": ["aarch64"], "File": "aarch644", "Func": "get_recpe_type", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1806, "Length": 61, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MipsTargetLowering", "*", "MipsTargetLowering", "::", "create", "(", "MipsTargetMachine", "&", "TM", ",", "const", "MipsSubtarget", "&", "STI", ")", "{", "if", "(", "STI", ".", "inMips16Mode", "(", ")", ")", "return", "llvm", "::", "createMips16TargetLowering", "(", "TM", ",", "STI", ")", ";", "return", "llvm", "::", "createMipsSETargetLowering", "(", "TM", ",", "STI", ")", ";", "}", ""], "natrual_language": ["This", "creates", "an", "identified", "struct", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips"], "File": "MipsISelLowering106", "Func": "create", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1807, "Length": 46, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ARMSubtarget", "::", "ARMSubtarget", "(", "const", "std", "::", "string", "&", "TT", ",", "const", "std", "::", "string", "&", "FS", ",", "bool", "isT", ")", ":", "ARMArchVersion", "(", "V4", ")", ",", "ARMFPUType", "(", "None", ")", ",", "UseNEONForSinglePrecisionFP", "(", "UseNEONFP", ")", ",", "IsThumb", "(", "isT", ")", ",", "ThumbMode", "(", "Thumb1", ")", ",", "PostRAScheduler", "(", "false", ")", ",", "IsR9Reserved", "(", "ReserveR9", ")", ",", "UseMovt", "(", "UseMOVT", ")", ",", "HasFP16", "(", "false", ")", ",", "stackAlignment", "(", "4", ")", ",", "CPUString", "(", "\"generic\"", ")", ",", "TargetType", "(", "isELF", ")", ",", "TargetABI", "(", "ARM_ABI_APCS", ")", "{", "if", "(", "FloatABIType", "==", "FloatABI", "::", "Default", ")", "FloatABIType", "=", "FloatABI", "::", "Soft", ";", "CPUString", "=", "ParseSubtargetFeatures", "(", "FS", ",", "CPUString", ")", ";", "if", "(", "CPUString", "==", "\"generic\"", "&&", "(", "FS", ".", "empty", "(", ")", "||", "FS", "==", "\"generic\"", ")", ")", "ARMArchVersion", "=", "V4T", ";", "unsigned", "Len", "=", "TT", ".", "length", "(", ")", ";", "unsigned", "Idx", "=", "0", ";", "if", "(", "Len", ">=", "5", "&&", "TT", ".", "substr", "(", "0", ",", "4", ")", "==", "\"armv\"", ")", "Idx", "=", "4", ";", "else", "if", "(", "Len", ">=", "6", "&&", "TT", ".", "substr", "(", "0", ",", "5", ")", "==", "\"thumb\"", ")", "{", "IsThumb", "=", "true", ";", "if", "(", "Len", ">=", "7", "&&", "TT", "[", "5", "]", "==", "'v'", ")", "Idx", "=", "6", ";", "}", "if", "(", "Idx", ")", "{", "unsigned", "SubVer", "=", "TT", "[", "Idx", "]", ";", "if", "(", "SubVer", ">=", "'7'", "&&", "SubVer", "<=", "'9'", ")", "{", "ARMArchVersion", "=", "V7A", ";", "}", "else", "if", "(", "SubVer", "==", "'6'", ")", "{", "ARMArchVersion", "=", "V6", ";", "if", "(", "Len", ">=", "Idx", "+", "3", "&&", "TT", "[", "Idx", "+", "1", "]", "==", "'t'", "&&", "TT", "[", "Idx", "+", "2", "]", "==", "'2'", ")", "ARMArchVersion", "=", "V6T2", ";", "}", "else", "if", "(", "SubVer", "==", "'5'", ")", "{", "ARMArchVersion", "=", "V5T", ";", "if", "(", "Len", ">=", "Idx", "+", "3", "&&", "TT", "[", "Idx", "+", "1", "]", "==", "'t'", "&&", "TT", "[", "Idx", "+", "2", "]", "==", "'e'", ")", "ARMArchVersion", "=", "V5TE", ";", "}", "else", "if", "(", "SubVer", "==", "'4'", ")", "{", "if", "(", "Len", ">=", "Idx", "+", "2", "&&", "TT", "[", "Idx", "+", "1", "]", "==", "'t'", ")", "ARMArchVersion", "=", "V4T", ";", "else", "ARMArchVersion", "=", "V4", ";", "}", "}", "if", "(", "ARMArchVersion", ">=", "V6T2", ")", "ThumbMode", "=", "Thumb2", ";", "else", "if", "(", "ThumbMode", ">=", "Thumb2", ")", "ARMArchVersion", "=", "V6T2", ";", "if", "(", "Len", ">=", "10", ")", "{", "if", "(", "TT", ".", "find", "(", "\"-darwin\"", ")", "!=", "std", "::", "string", "::", "npos", ")", "TargetType", "=", "isDarwin", ";", "}", "if", "(", "TT", ".", "find", "(", "\"eabi\"", ")", "!=", "std", "::", "string", "::", "npos", ")", "TargetABI", "=", "ARM_ABI_AAPCS", ";", "if", "(", "isAAPCS_ABI", "(", ")", ")", "stackAlignment", "=", "8", ";", "if", "(", "isTargetDarwin", "(", ")", ")", "IsR9Reserved", "=", "ReserveR9", "|", "(", "ARMArchVersion", "<", "V6", ")", ";", "if", "(", "!", "isThumb", "(", ")", "||", "hasThumb2", "(", ")", ")", "PostRAScheduler", "=", "true", ";", "if", "(", "CPUString", "==", "\"cortex-a8\"", ")", "{", "if", "(", "UseNEONFP", ".", "getPosition", "(", ")", "==", "0", ")", "UseNEONForSinglePrecisionFP", "=", "true", ";", "}", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "4", "\"generic\"", "ARM", "\"generic\"", "\"generic\"", "ARM", "0", "5", "0", "4", "\"armv\"", "4", "6", "0", "5", "\"thumb\"", "7", "5", "6", "ARM", "ARM", "3", "1", "2", "ARM", "ARM", "3", "1", "2", "ARM", "2", "1", "ARM", "ARM", "ARM", "ARM", "10", "\"-darwin\"", "\"eabi\"", "ARM", "8", "ARM", "\"cortex-a8\"", "0"], "File": "ARMSubtarget79", "Func": "ARMSubtarget", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1808, "Length": 490, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "internalKnownBits", "(", ")", "const", "{", "unsigned", "Bits", "=", "Unalign", "?", "Unalign", ":", "KnownBits", ";", "if", "(", "Size", "&", "(", "(", "1u", "<<", "Bits", ")", "-", "1", ")", ")", "Bits", "=", "countTrailingZeros", "(", "Size", ")", ";", "return", "Bits", ";", "}", ""], "natrual_language": ["Compute", "the", "number", "of", "known", "offset", "bits", "internally", "to", "this", "block", "."], "TS_V_token": ["ARM", "1u", "1"], "File": "ARMBasicBlockInfo", "Func": "internalKnownBits", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1809, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "insvdi_rshift_rlwimi_p", "(", "rtx", "sizeop", ",", "rtx", "startop", ",", "rtx", "shiftop", ")", "{", "if", "(", "INTVAL", "(", "startop", ")", ">", "32", "&&", "INTVAL", "(", "startop", ")", "<", "64", "&&", "INTVAL", "(", "sizeop", ")", ">", "1", "&&", "INTVAL", "(", "sizeop", ")", "+", "INTVAL", "(", "startop", ")", "<", "64", "&&", "INTVAL", "(", "shiftop", ")", ">", "0", "&&", "INTVAL", "(", "sizeop", ")", "+", "INTVAL", "(", "shiftop", ")", "<", "32", "&&", "(", "64", "-", "(", "INTVAL", "(", "shiftop", ")", "&", "63", ")", ")", ">=", "INTVAL", "(", "sizeop", ")", ")", "return", "1", ";", "return", "0", ";", "}", ""], "natrual_language": ["Return", "1", "if", "operands", "will", "generate", "a", "valid", "arguments", "to", "rlwimiinstruction", "for", "insert", "with", "right", "shift", "in", "64-bit", "mode", ".", "The", "mask", "maynot", "start", "on", "the", "first", "bit", "or", "stop", "on", "the", "last", "bit", "because", "wrap-aroundeffects", "of", "instruction", "do", "not", "correspond", "to", "semantics", "of", "RTL", "insn", "."], "TS_V_token": ["rs6000", "32", "64", "1", "64", "0", "32", "64", "63", "1", "0"], "File": "rs60004", "Func": "insvdi_rshift_rlwimi_p", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1810, "Length": 92, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ARMSubtarget", "::", "ARMSubtarget", "(", "const", "std", "::", "string", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ",", "bool", "IsLittle", ")", ":", "ARMGenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "ARMProcFamily", "(", "Others", ")", ",", "ARMProcClass", "(", "None", ")", ",", "stackAlignment", "(", "4", ")", ",", "CPUString", "(", "CPU", ")", ",", "IsLittle", "(", "IsLittle", ")", ",", "TargetTriple", "(", "TT", ")", ",", "Options", "(", "TM", ".", "Options", ")", ",", "TargetABI", "(", "ARM_ABI_UNKNOWN", ")", ",", "DL", "(", "computeDataLayout", "(", "initializeSubtargetDependencies", "(", "CPU", ",", "FS", ")", ")", ")", ",", "TSInfo", "(", "DL", ")", ",", "InstrInfo", "(", "isThumb1Only", "(", ")", "?", "(", "ARMBaseInstrInfo", "*", ")", "new", "Thumb1InstrInfo", "(", "*", "this", ")", ":", "!", "isThumb", "(", ")", "?", "(", "ARMBaseInstrInfo", "*", ")", "new", "ARMInstrInfo", "(", "*", "this", ")", ":", "(", "ARMBaseInstrInfo", "*", ")", "new", "Thumb2InstrInfo", "(", "*", "this", ")", ")", ",", "TLInfo", "(", "TM", ")", ",", "FrameLowering", "(", "!", "isThumb1Only", "(", ")", "?", "new", "ARMFrameLowering", "(", "*", "this", ")", ":", "(", "ARMFrameLowering", "*", ")", "new", "Thumb1FrameLowering", "(", "*", "this", ")", ")", "{", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "4", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM"], "File": "ARMSubtarget35", "Func": "ARMSubtarget", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1811, "Length": 180, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "iq2000_legitimate_address_p", "(", "machine_mode", "mode", ",", "rtx", "xinsn", ",", "bool", "strict", ")", "{", "if", "(", "TARGET_DEBUG_A_MODE", ")", "{", "GO_PRINTF2", "(", "\"\\n========== legitimate_address_p, %sstrict\\n\"", ",", "strict", "?", "\"\"", ":", "\"not \"", ")", ";", "GO_DEBUG_RTX", "(", "xinsn", ")", ";", "}", "if", "(", "CONSTANT_ADDRESS_P", "(", "xinsn", ")", "&&", "!", "(", "iq2000_check_split", "(", "xinsn", ",", "mode", ")", ")", "&&", "!", "(", "GET_CODE", "(", "xinsn", ")", "==", "CONST_INT", "&&", "!", "SMALL_INT", "(", "xinsn", ")", ")", ")", "return", "1", ";", "while", "(", "GET_CODE", "(", "xinsn", ")", "==", "SUBREG", ")", "xinsn", "=", "SUBREG_REG", "(", "xinsn", ")", ";", "if", "(", "GET_CODE", "(", "xinsn", ")", "==", "REG", "&&", "iq2000_reg_mode_ok_for_base_p", "(", "xinsn", ",", "mode", ",", "strict", ")", ")", "return", "1", ";", "if", "(", "GET_CODE", "(", "xinsn", ")", "==", "LO_SUM", ")", "{", "rtx", "xlow0", "=", "XEXP", "(", "xinsn", ",", "0", ")", ";", "rtx", "xlow1", "=", "XEXP", "(", "xinsn", ",", "1", ")", ";", "while", "(", "GET_CODE", "(", "xlow0", ")", "==", "SUBREG", ")", "xlow0", "=", "SUBREG_REG", "(", "xlow0", ")", ";", "if", "(", "GET_CODE", "(", "xlow0", ")", "==", "REG", "&&", "iq2000_reg_mode_ok_for_base_p", "(", "xlow0", ",", "mode", ",", "strict", ")", "&&", "iq2000_check_split", "(", "xlow1", ",", "mode", ")", ")", "return", "1", ";", "}", "if", "(", "GET_CODE", "(", "xinsn", ")", "==", "PLUS", ")", "{", "rtx", "xplus0", "=", "XEXP", "(", "xinsn", ",", "0", ")", ";", "rtx", "xplus1", "=", "XEXP", "(", "xinsn", ",", "1", ")", ";", "enum", "rtx_code", "code0", ";", "enum", "rtx_code", "code1", ";", "while", "(", "GET_CODE", "(", "xplus0", ")", "==", "SUBREG", ")", "xplus0", "=", "SUBREG_REG", "(", "xplus0", ")", ";", "code0", "=", "GET_CODE", "(", "xplus0", ")", ";", "while", "(", "GET_CODE", "(", "xplus1", ")", "==", "SUBREG", ")", "xplus1", "=", "SUBREG_REG", "(", "xplus1", ")", ";", "code1", "=", "GET_CODE", "(", "xplus1", ")", ";", "if", "(", "code0", "==", "REG", "&&", "iq2000_reg_mode_ok_for_base_p", "(", "xplus0", ",", "mode", ",", "strict", ")", ")", "{", "if", "(", "code1", "==", "CONST_INT", "&&", "SMALL_INT", "(", "xplus1", ")", "&&", "SMALL_INT_UNSIGNED", "(", "xplus1", ")", ")", "return", "1", ";", "}", "}", "if", "(", "TARGET_DEBUG_A_MODE", ")", "GO_PRINTF", "(", "\"Not a machine_mode mode, legitimate address\\n\"", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["Return", "a", "nonzero", "value", "if", "XINSN", "is", "a", "legitimate", "address", "for", "a", "memory", "operand", "of", "the", "indicated", "MODE", ".", "STRICT", "is", "nonzero", "if", "this", "function", "is", "called", "during", "reload", "."], "TS_V_token": ["iq2000", "\"\\n========== legitimate_address_p, %sstrict\\n\"", "\"\"", "\"not \"", "1", "1", "0", "1", "1", "0", "1", "1", "\"Not a machine_mode mode, legitimate address\\n\"", "0"], "File": "iq2000", "Func": "iq2000_legitimate_address_p", "Target": "iq2000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1812, "Length": 317, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64TargetLowering", "::", "isOffsetFoldingLegal", "(", "const", "GlobalAddressSDNode", "*", "GA", ")", "const", "{", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "folding", "a", "constant", "offset", "with", "the", "given", "GlobalAddress", "is", "legal", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64ISelLowering (2)", "Func": "isOffsetFoldingLegal", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1813, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mem_operand_gpr", "(", "rtx", "op", ",", "machine_mode", "mode", ")", "{", "unsigned", "HOST_WIDE_INT", "offset", ";", "int", "extra", ";", "rtx", "addr", "=", "XEXP", "(", "op", ",", "0", ")", ";", "if", "(", "!", "rs6000_offsettable_memref_p", "(", "op", ",", "mode", ",", "false", ")", ")", "return", "false", ";", "op", "=", "address_offset", "(", "addr", ")", ";", "if", "(", "op", "==", "NULL_RTX", ")", "return", "true", ";", "offset", "=", "INTVAL", "(", "op", ")", ";", "if", "(", "TARGET_POWERPC64", "&&", "(", "offset", "&", "3", ")", "!=", "0", ")", "return", "false", ";", "extra", "=", "GET_MODE_SIZE", "(", "mode", ")", "-", "UNITS_PER_WORD", ";", "if", "(", "extra", "<", "0", ")", "extra", "=", "0", ";", "if", "(", "GET_CODE", "(", "addr", ")", "==", "LO_SUM", ")", "offset", "=", "(", "(", "offset", "&", "0xffff", ")", "^", "0x8000", ")", "-", "0x8000", ";", "return", "offset", "+", "0x8000", "<", "0x10000u", "-", "extra", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "MEM", "operand", "is", "a", "memory", "operand", "suitable", "for", "use", "with", "a", "(", "full", "width", ",", "possibly", "multiple", ")", "gpr", "load/store", ".", "On", "powerpc64", "this", "means", "the", "offset", "must", "be", "divisible", "by", "4", ".", "Implements", "'", "Y", "'", "constraint", ".", "Accept", "direct", ",", "indexed", ",", "offset", ",", "lo_sum", "and", "tocref", ".", "Since", "this", "is", "a", "constraint", "function", "we", "know", "the", "operand", "has", "satisfied", "a", "suitable", "memory", "predicate", ".", "Offsetting", "a", "lo_sum", "should", "not", "be", "allowed", ",", "except", "where", "we", "know", "by", "alignment", "that", "a", "32k", "boundary", "is", "not", "crossed", ".", "Note", "that", "by", "``", "offsetting", "''", "here", "we", "mean", "a", "further", "offset", "to", "access", "parts", "of", "the", "MEM", ".", "It", "'s", "fine", "to", "have", "a", "lo_sum", "where", "the", "inner", "address", "is", "offset", "from", "a", "sym", ",", "since", "the", "same", "sym+offset", "will", "appear", "in", "the", "high", "part", "of", "the", "address", "calculation", "."], "TS_V_token": ["rs6000", "0", "3", "0", "0", "0", "0xffff", "0x8000", "0x8000", "0x8000", "0x10000u"], "File": "rs60007", "Func": "mem_operand_gpr", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1814, "Length": 132, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCInstrInfo", "::", "analyzeLoop", "(", "MachineLoop", "&", "L", ",", "MachineInstr", "*", "&", "IndVarInst", ",", "MachineInstr", "*", "&", "CmpInst", ")", "const", "{", "MachineBasicBlock", "*", "LoopEnd", "=", "L", ".", "getBottomBlock", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "I", "=", "LoopEnd", "->", "getFirstTerminator", "(", ")", ";", "if", "(", "I", "!=", "LoopEnd", "->", "end", "(", ")", "&&", "isBDNZ", "(", "I", "->", "getOpcode", "(", ")", ")", ")", "{", "IndVarInst", "=", "nullptr", ";", "CmpInst", "=", "&", "*", "I", ";", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Analyze", "the", "loop", "code", ",", "return", "true", "if", "it", "can", "not", "be", "understood", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCInstrInfo115", "Func": "analyzeLoop", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1815, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AnalyzeFormalArguments", "(", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "CCAssignFn", "Fn", ")", "{", "IsFixed", ".", "resize", "(", "Ins", ".", "size", "(", ")", ",", "true", ")", ";", "CCState", "::", "AnalyzeFormalArguments", "(", "Ins", ",", "Fn", ")", ";", "}", ""], "natrual_language": ["AnalyzeFormalArguments", "-", "Analyze", "an", "array", "of", "argument", "values", ",", "incorporating", "info", "about", "the", "formals", "into", "this", "state", "."], "TS_V_token": ["PowerPC", "ISD::InputArg"], "File": "PPCCCState5", "Func": "AnalyzeFormalArguments", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1816, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mep_use_post_modify_p_1", "(", "rtx_insn", "*", "set_insn", ",", "rtx", "reg", ",", "rtx", "offset", ")", "{", "rtx_insn", "*", "insn", ";", "insn", "=", "set_insn", ";", "do", "{", "insn", "=", "PREV_INSN", "(", "insn", ")", ";", "if", "(", "INSN_P", "(", "insn", ")", ")", "{", "if", "(", "mep_use_post_modify_for_set_p", "(", "PATTERN", "(", "insn", ")", ",", "reg", ",", "offset", ")", ")", "{", "mep_make_parallel", "(", "insn", ",", "set_insn", ")", ";", "return", "true", ";", "}", "if", "(", "reg_set_p", "(", "reg", ",", "insn", ")", "||", "reg_referenced_p", "(", "reg", ",", "PATTERN", "(", "insn", ")", ")", "||", "volatile_insn_p", "(", "PATTERN", "(", "insn", ")", ")", ")", "return", "false", ";", "}", "}", "while", "(", "!", "NOTE_INSN_BASIC_BLOCK_P", "(", "insn", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["SET_INSN", "is", "an", "instruction", "that", "adds", "OFFSET", "to", "REG", ".", "Go", "back", "through", "the", "basic", "block", "to", "see", "if", "any", "previous", "load", "or", "store", "instruction", "can", "be", "persuaded", "to", "do", "SET_INSN", "as", "a", "side-effect", ".", "Return", "true", "if", "so", "."], "TS_V_token": ["mep"], "File": "mep", "Func": "mep_use_post_modify_p_1", "Target": "mep", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1817, "Length": 111, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "nds32_relax_group", "(", "void", ")", "{", "rtx_insn", "*", "insn", ";", "compute_bb_for_insn", "(", ")", ";", "df_chain_add_problem", "(", "DF_DU_CHAIN", "|", "DF_UD_CHAIN", ")", ";", "df_insn_rescan_all", "(", ")", ";", "df_analyze", "(", ")", ";", "df_set_flags", "(", "DF_DEFER_INSN_RESCAN", ")", ";", "calculate_dominance_info", "(", "CDI_DOMINATORS", ")", ";", "insn", "=", "get_insns", "(", ")", ";", "gcc_assert", "(", "NOTE_P", "(", "insn", ")", ")", ";", "for", "(", "insn", "=", "next_active_insn", "(", "insn", ")", ";", "insn", ";", "insn", "=", "next_active_insn", "(", "insn", ")", ")", "{", "if", "(", "NONJUMP_INSN_P", "(", "insn", ")", ")", "{", "if", "(", "recog_memoized", "(", "insn", ")", "==", "CODE_FOR_sethi", "&&", "nds32_symbolic_operand", "(", "XEXP", "(", "SET_SRC", "(", "PATTERN", "(", "insn", ")", ")", ",", "0", ")", ",", "SImode", ")", ")", "nds32_group_insns", "(", "insn", ")", ";", "}", "}", "df_insn_rescan_all", "(", ")", ";", "df_finish_pass", "(", "false", ")", ";", "free_dominance_info", "(", "CDI_DOMINATORS", ")", ";", "}", ""], "natrual_language": ["Group", "the", "relax", "candidate", "instructions", "for", "linker", "."], "TS_V_token": ["nds32", "0"], "File": "nds32-relax-opt2", "Func": "nds32_relax_group", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1818, "Length": 130, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "tree", "function_resolver", "::", "finish_opt_n_resolution", "(", "unsigned", "int", "argno", ",", "unsigned", "int", "first_argno", ",", "type_suffix_index", "first_type", ",", "type_class_index", "expected_tclass", ",", "unsigned", "int", "expected_bits", ",", "type_suffix_index", "inferred_type", ")", "{", "if", "(", "inferred_type", "==", "NUM_TYPE_SUFFIXES", ")", "inferred_type", "=", "first_type", ";", "tree", "scalar_form", "=", "lookup_form", "(", "MODE_n", ",", "inferred_type", ")", ";", "if", "(", "scalar_argument_p", "(", "argno", ")", ")", "{", "if", "(", "scalar_form", ")", "return", "scalar_form", ";", "tree", "res", "=", "resolve_to", "(", "mode_suffix_id", ",", "inferred_type", ")", ";", "if", "(", "res", "!=", "error_mark_node", ")", "error_at", "(", "location", ",", "\"passing %qT to argument %d of %qE, but its\"", "\" %qT form does not accept scalars\"", ",", "get_argument_type", "(", "argno", ")", ",", "argno", "+", "1", ",", "fndecl", ",", "get_vector_type", "(", "first_type", ")", ")", ";", "return", "error_mark_node", ";", "}", "if", "(", "scalar_form", "&&", "!", "require_vector_or_scalar_type", "(", "argno", ")", ")", "return", "error_mark_node", ";", "if", "(", "!", "require_derived_vector_type", "(", "argno", ",", "first_argno", ",", "first_type", ",", "expected_tclass", ",", "expected_bits", ")", ")", "return", "error_mark_node", ";", "return", "resolve_to", "(", "mode_suffix_id", ",", "inferred_type", ")", ";", "}", ""], "natrual_language": ["Finish", "resolving", "a", "function", "whose", "final", "argument", "can", "be", "a", "vector", "or", "a", "scalar", ",", "with", "the", "function", "having", "an", "implicit", "``", "_n", "''", "suffix", "in", "the", "latter", "case", ".", "This", "``", "_n", "''", "form", "might", "only", "exist", "for", "certain", "type", "suffixes", ".", "ARGNO", "is", "the", "index", "of", "the", "final", "argument", ".", "The", "inferred", "type", "suffix", "was", "obtained", "from", "argument", "FIRST_ARGNO", ",", "which", "has", "type", "FIRST_TYPE", ".", "EXPECTED_TCLASS", "and", "EXPECTED_BITS", "describe", "the", "expected", "properties", "of", "the", "final", "vector", "or", "scalar", "argument", ",", "in", "the", "same", "way", "as", "for", "require_derived_vector_type", ".", "INFERRED_TYPE", "is", "the", "inferred", "type", "suffix", "itself", ",", "or", "NUM_TYPE_SUFFIXES", "if", "it", "'s", "the", "same", "as", "FIRST_TYPE", ".", "Return", "the", "function", "decl", "of", "the", "resolved", "function", "on", "success", ",", "otherwise", "report", "a", "suitable", "error", "and", "return", "error_mark_node", "."], "TS_V_token": ["aarch64", "\"passing %qT to argument %d of %qE, but its\"", "\" %qT form does not accept scalars\"", "1"], "File": "aarch64-sve-builtins", "Func": "finish_opt_n_resolution", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1819, "Length": 147, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips16_build_function_stub", "(", "void", ")", "{", "const", "char", "*", "fnname", ",", "*", "alias_name", ",", "*", "separator", ";", "char", "*", "secname", ",", "*", "stubname", ";", "tree", "stubdecl", ";", "unsigned", "int", "f", ";", "rtx", "symbol", ",", "alias", ";", "symbol", "=", "XEXP", "(", "DECL_RTL", "(", "current_function_decl", ")", ",", "0", ")", ";", "alias", "=", "mips16_local_alias", "(", "symbol", ")", ";", "fnname", "=", "targetm", ".", "strip_name_encoding", "(", "XSTR", "(", "symbol", ",", "0", ")", ")", ";", "alias_name", "=", "targetm", ".", "strip_name_encoding", "(", "XSTR", "(", "alias", ",", "0", ")", ")", ";", "secname", "=", "ACONCAT", "(", "(", "\".mips16.fn.\"", ",", "fnname", ",", "NULL", ")", ")", ";", "stubname", "=", "ACONCAT", "(", "(", "\"__fn_stub_\"", ",", "fnname", ",", "NULL", ")", ")", ";", "stubdecl", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "FUNCTION_DECL", ",", "get_identifier", "(", "stubname", ")", ",", "build_function_type_list", "(", "void_type_node", ",", "NULL_TREE", ")", ")", ";", "set_decl_section_name", "(", "stubdecl", ",", "secname", ")", ";", "DECL_RESULT", "(", "stubdecl", ")", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "RESULT_DECL", ",", "NULL_TREE", ",", "void_type_node", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t# Stub function for %s (\"", ",", "current_function_name", "(", ")", ")", ";", "separator", "=", "\"\"", ";", "for", "(", "f", "=", "(", "unsigned", "int", ")", "crtl", "->", "args", ".", "info", ".", "fp_code", ";", "f", "!=", "0", ";", "f", ">>=", "2", ")", "{", "fprintf", "(", "asm_out_file", ",", "\"%s%s\"", ",", "separator", ",", "(", "f", "&", "3", ")", "==", "1", "?", "\"float\"", ":", "\"double\"", ")", ";", "separator", "=", "\", \"", ";", "}", "fprintf", "(", "asm_out_file", ",", "\")\\n\"", ")", ";", "assemble_start_function", "(", "stubdecl", ",", "stubname", ")", ";", "mips_start_function_definition", "(", "stubname", ",", "false", ")", ";", "if", "(", "TARGET_ABICALLS_PIC2", ")", "{", "if", "(", "TARGET_ABSOLUTE_ABICALLS", ")", "fprintf", "(", "asm_out_file", ",", "\"\\t.option\\tpic0\\n\"", ")", ";", "else", "{", "output_asm_insn", "(", "\"%(.cpload\\t%^%)\"", ",", "NULL", ")", ";", "output_asm_insn", "(", "\".reloc\\t0,R_MIPS_NONE,%0\"", ",", "&", "symbol", ")", ";", "symbol", "=", "alias", ";", "}", "}", "output_asm_insn", "(", "\"la\\t%^,%0\"", ",", "&", "symbol", ")", ";", "mips_output_args_xfer", "(", "crtl", "->", "args", ".", "info", ".", "fp_code", ",", "'f'", ")", ";", "output_asm_insn", "(", "\"jr\\t%^\"", ",", "NULL", ")", ";", "if", "(", "TARGET_ABICALLS_PIC2", "&&", "TARGET_ABSOLUTE_ABICALLS", ")", "fprintf", "(", "asm_out_file", ",", "\"\\t.option\\tpic2\\n\"", ")", ";", "mips_end_function_definition", "(", "stubname", ")", ";", "ASM_OUTPUT_DEF", "(", "asm_out_file", ",", "alias_name", ",", "fnname", ")", ";", "switch_to_section", "(", "function_section", "(", "current_function_decl", ")", ")", ";", "}", ""], "natrual_language": ["Write", "a", "MIPS16", "stub", "for", "the", "current", "function", ".", "This", "stub", "is", "used", "for", "functions", "which", "take", "arguments", "in", "the", "floating-point", "registers", ".", "It", "is", "normal-mode", "code", "that", "moves", "the", "floating-point", "arguments", "into", "the", "general", "registers", "and", "then", "jumps", "to", "the", "MIPS16", "code", "."], "TS_V_token": ["mips", "0", "0", "0", "\".mips16.fn.\"", "\"__fn_stub_\"", "\"\\t# Stub function for %s (\"", "\"\"", "0", "2", "\"%s%s\"", "3", "1", "\"float\"", "\"double\"", "\", \"", "\")\\n\"", "\"\\t.option\\tpic0\\n\"", "\"%(.cpload\\t%^%)\"", "\".reloc\\t0,R_MIPS_NONE,%0\"", "\"la\\t%^,%0\"", "\"jr\\t%^\"", "\"\\t.option\\tpic2\\n\""], "File": "mips", "Func": "mips16_build_function_stub", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1820, "Length": 344, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "PPCTargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "nullptr", ";", "case", "PPCISD", "::", "FSEL", ":", "return", "\"PPCISD::FSEL\"", ";", "case", "PPCISD", "::", "FCFID", ":", "return", "\"PPCISD::FCFID\"", ";", "case", "PPCISD", "::", "FCTIDZ", ":", "return", "\"PPCISD::FCTIDZ\"", ";", "case", "PPCISD", "::", "FCTIWZ", ":", "return", "\"PPCISD::FCTIWZ\"", ";", "case", "PPCISD", "::", "FRE", ":", "return", "\"PPCISD::FRE\"", ";", "case", "PPCISD", "::", "FRSQRTE", ":", "return", "\"PPCISD::FRSQRTE\"", ";", "case", "PPCISD", "::", "STFIWX", ":", "return", "\"PPCISD::STFIWX\"", ";", "case", "PPCISD", "::", "VMADDFP", ":", "return", "\"PPCISD::VMADDFP\"", ";", "case", "PPCISD", "::", "VNMSUBFP", ":", "return", "\"PPCISD::VNMSUBFP\"", ";", "case", "PPCISD", "::", "VPERM", ":", "return", "\"PPCISD::VPERM\"", ";", "case", "PPCISD", "::", "Hi", ":", "return", "\"PPCISD::Hi\"", ";", "case", "PPCISD", "::", "Lo", ":", "return", "\"PPCISD::Lo\"", ";", "case", "PPCISD", "::", "TOC_ENTRY", ":", "return", "\"PPCISD::TOC_ENTRY\"", ";", "case", "PPCISD", "::", "TOC_RESTORE", ":", "return", "\"PPCISD::TOC_RESTORE\"", ";", "case", "PPCISD", "::", "LOAD", ":", "return", "\"PPCISD::LOAD\"", ";", "case", "PPCISD", "::", "LOAD_TOC", ":", "return", "\"PPCISD::LOAD_TOC\"", ";", "case", "PPCISD", "::", "DYNALLOC", ":", "return", "\"PPCISD::DYNALLOC\"", ";", "case", "PPCISD", "::", "GlobalBaseReg", ":", "return", "\"PPCISD::GlobalBaseReg\"", ";", "case", "PPCISD", "::", "SRL", ":", "return", "\"PPCISD::SRL\"", ";", "case", "PPCISD", "::", "SRA", ":", "return", "\"PPCISD::SRA\"", ";", "case", "PPCISD", "::", "SHL", ":", "return", "\"PPCISD::SHL\"", ";", "case", "PPCISD", "::", "CALL", ":", "return", "\"PPCISD::CALL\"", ";", "case", "PPCISD", "::", "CALL_NOP", ":", "return", "\"PPCISD::CALL_NOP\"", ";", "case", "PPCISD", "::", "MTCTR", ":", "return", "\"PPCISD::MTCTR\"", ";", "case", "PPCISD", "::", "BCTRL", ":", "return", "\"PPCISD::BCTRL\"", ";", "case", "PPCISD", "::", "RET_FLAG", ":", "return", "\"PPCISD::RET_FLAG\"", ";", "case", "PPCISD", "::", "EH_SJLJ_SETJMP", ":", "return", "\"PPCISD::EH_SJLJ_SETJMP\"", ";", "case", "PPCISD", "::", "EH_SJLJ_LONGJMP", ":", "return", "\"PPCISD::EH_SJLJ_LONGJMP\"", ";", "case", "PPCISD", "::", "MFOCRF", ":", "return", "\"PPCISD::MFOCRF\"", ";", "case", "PPCISD", "::", "VCMP", ":", "return", "\"PPCISD::VCMP\"", ";", "case", "PPCISD", "::", "VCMPo", ":", "return", "\"PPCISD::VCMPo\"", ";", "case", "PPCISD", "::", "LBRX", ":", "return", "\"PPCISD::LBRX\"", ";", "case", "PPCISD", "::", "STBRX", ":", "return", "\"PPCISD::STBRX\"", ";", "case", "PPCISD", "::", "LARX", ":", "return", "\"PPCISD::LARX\"", ";", "case", "PPCISD", "::", "STCX", ":", "return", "\"PPCISD::STCX\"", ";", "case", "PPCISD", "::", "COND_BRANCH", ":", "return", "\"PPCISD::COND_BRANCH\"", ";", "case", "PPCISD", "::", "BDNZ", ":", "return", "\"PPCISD::BDNZ\"", ";", "case", "PPCISD", "::", "BDZ", ":", "return", "\"PPCISD::BDZ\"", ";", "case", "PPCISD", "::", "MFFS", ":", "return", "\"PPCISD::MFFS\"", ";", "case", "PPCISD", "::", "FADDRTZ", ":", "return", "\"PPCISD::FADDRTZ\"", ";", "case", "PPCISD", "::", "TC_RETURN", ":", "return", "\"PPCISD::TC_RETURN\"", ";", "case", "PPCISD", "::", "CR6SET", ":", "return", "\"PPCISD::CR6SET\"", ";", "case", "PPCISD", "::", "CR6UNSET", ":", "return", "\"PPCISD::CR6UNSET\"", ";", "case", "PPCISD", "::", "ADDIS_TOC_HA", ":", "return", "\"PPCISD::ADDIS_TOC_HA\"", ";", "case", "PPCISD", "::", "LD_TOC_L", ":", "return", "\"PPCISD::LD_TOC_L\"", ";", "case", "PPCISD", "::", "ADDI_TOC_L", ":", "return", "\"PPCISD::ADDI_TOC_L\"", ";", "case", "PPCISD", "::", "PPC32_GOT", ":", "return", "\"PPCISD::PPC32_GOT\"", ";", "case", "PPCISD", "::", "ADDIS_GOT_TPREL_HA", ":", "return", "\"PPCISD::ADDIS_GOT_TPREL_HA\"", ";", "case", "PPCISD", "::", "LD_GOT_TPREL_L", ":", "return", "\"PPCISD::LD_GOT_TPREL_L\"", ";", "case", "PPCISD", "::", "ADD_TLS", ":", "return", "\"PPCISD::ADD_TLS\"", ";", "case", "PPCISD", "::", "ADDIS_TLSGD_HA", ":", "return", "\"PPCISD::ADDIS_TLSGD_HA\"", ";", "case", "PPCISD", "::", "ADDI_TLSGD_L", ":", "return", "\"PPCISD::ADDI_TLSGD_L\"", ";", "case", "PPCISD", "::", "GET_TLS_ADDR", ":", "return", "\"PPCISD::GET_TLS_ADDR\"", ";", "case", "PPCISD", "::", "ADDIS_TLSLD_HA", ":", "return", "\"PPCISD::ADDIS_TLSLD_HA\"", ";", "case", "PPCISD", "::", "ADDI_TLSLD_L", ":", "return", "\"PPCISD::ADDI_TLSLD_L\"", ";", "case", "PPCISD", "::", "GET_TLSLD_ADDR", ":", "return", "\"PPCISD::GET_TLSLD_ADDR\"", ";", "case", "PPCISD", "::", "ADDIS_DTPREL_HA", ":", "return", "\"PPCISD::ADDIS_DTPREL_HA\"", ";", "case", "PPCISD", "::", "ADDI_DTPREL_L", ":", "return", "\"PPCISD::ADDI_DTPREL_L\"", ";", "case", "PPCISD", "::", "VADD_SPLAT", ":", "return", "\"PPCISD::VADD_SPLAT\"", ";", "case", "PPCISD", "::", "SC", ":", "return", "\"PPCISD::SC\"", ";", "}", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["PowerPC", "PPC", "PPCISD::FSEL", "\"PPCISD::FSEL\"", "PPCISD::FCFID", "\"PPCISD::FCFID\"", "PPCISD::FCTIDZ", "\"PPCISD::FCTIDZ\"", "PPCISD::FCTIWZ", "\"PPCISD::FCTIWZ\"", "PPCISD::FRE", "\"PPCISD::FRE\"", "PPCISD::FRSQRTE", "\"PPCISD::FRSQRTE\"", "PPCISD::STFIWX", "\"PPCISD::STFIWX\"", "PPCISD::VMADDFP", "\"PPCISD::VMADDFP\"", "PPCISD::VNMSUBFP", "\"PPCISD::VNMSUBFP\"", "PPCISD::VPERM", "\"PPCISD::VPERM\"", "PPCISD::Hi", "\"PPCISD::Hi\"", "PPCISD::Lo", "\"PPCISD::Lo\"", "PPCISD::TOC_ENTRY", "\"PPCISD::TOC_ENTRY\"", "PPCISD::TOC_RESTORE", "\"PPCISD::TOC_RESTORE\"", "PPCISD::LOAD", "\"PPCISD::LOAD\"", "PPCISD::LOAD_TOC", "\"PPCISD::LOAD_TOC\"", "PPCISD::DYNALLOC", "\"PPCISD::DYNALLOC\"", "PPCISD::GlobalBaseReg", "\"PPCISD::GlobalBaseReg\"", "PPCISD::SRL", "\"PPCISD::SRL\"", "PPCISD::SRA", "\"PPCISD::SRA\"", "PPCISD::SHL", "\"PPCISD::SHL\"", "PPCISD::CALL", "\"PPCISD::CALL\"", "PPCISD::CALL_NOP", "\"PPCISD::CALL_NOP\"", "PPCISD::MTCTR", "\"PPCISD::MTCTR\"", "PPCISD::BCTRL", "\"PPCISD::BCTRL\"", "PPCISD::RET_FLAG", "\"PPCISD::RET_FLAG\"", "PPCISD::EH_SJLJ_SETJMP", "\"PPCISD::EH_SJLJ_SETJMP\"", "PPCISD::EH_SJLJ_LONGJMP", "\"PPCISD::EH_SJLJ_LONGJMP\"", "PPCISD::MFOCRF", "\"PPCISD::MFOCRF\"", "PPCISD::VCMP", "\"PPCISD::VCMP\"", "PPCISD::VCMPo", "\"PPCISD::VCMPo\"", "PPCISD::LBRX", "\"PPCISD::LBRX\"", "PPCISD::STBRX", "\"PPCISD::STBRX\"", "PPCISD::LARX", "\"PPCISD::LARX\"", "PPCISD::STCX", "\"PPCISD::STCX\"", "PPCISD::COND_BRANCH", "\"PPCISD::COND_BRANCH\"", "PPCISD::BDNZ", "\"PPCISD::BDNZ\"", "PPCISD::BDZ", "\"PPCISD::BDZ\"", "PPCISD::MFFS", "\"PPCISD::MFFS\"", "PPCISD::FADDRTZ", "\"PPCISD::FADDRTZ\"", "PPCISD::TC_RETURN", "\"PPCISD::TC_RETURN\"", "PPCISD::CR6SET", "\"PPCISD::CR6SET\"", "PPCISD::CR6UNSET", "\"PPCISD::CR6UNSET\"", "PPCISD::ADDIS_TOC_HA", "\"PPCISD::ADDIS_TOC_HA\"", "PPCISD::LD_TOC_L", "\"PPCISD::LD_TOC_L\"", "PPCISD::ADDI_TOC_L", "\"PPCISD::ADDI_TOC_L\"", "PPCISD::PPC32_GOT", "\"PPCISD::PPC32_GOT\"", "PPCISD::ADDIS_GOT_TPREL_HA", "\"PPCISD::ADDIS_GOT_TPREL_HA\"", "PPCISD::LD_GOT_TPREL_L", "\"PPCISD::LD_GOT_TPREL_L\"", "PPCISD::ADD_TLS", "\"PPCISD::ADD_TLS\"", "PPCISD::ADDIS_TLSGD_HA", "\"PPCISD::ADDIS_TLSGD_HA\"", "PPCISD::ADDI_TLSGD_L", "\"PPCISD::ADDI_TLSGD_L\"", "PPCISD::GET_TLS_ADDR", "\"PPCISD::GET_TLS_ADDR\"", "PPCISD::ADDIS_TLSLD_HA", "\"PPCISD::ADDIS_TLSLD_HA\"", "PPCISD::ADDI_TLSLD_L", "\"PPCISD::ADDI_TLSLD_L\"", "PPCISD::GET_TLSLD_ADDR", "\"PPCISD::GET_TLSLD_ADDR\"", "PPCISD::ADDIS_DTPREL_HA", "\"PPCISD::ADDIS_DTPREL_HA\"", "PPCISD::ADDI_DTPREL_L", "\"PPCISD::ADDI_DTPREL_L\"", "PPCISD::VADD_SPLAT", "\"PPCISD::VADD_SPLAT\"", "PPCISD::SC", "\"PPCISD::SC\""], "File": "PPCISelLowering120", "Func": "getTargetNodeName", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1821, "Length": 504, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "unique_ptr", "<", "CSEConfigBase", ">", "MipsPassConfig", "::", "getCSEConfig", "(", ")", "const", "{", "return", "getStandardCSEConfigForOpt", "(", "TM", "->", "getOptLevel", "(", ")", ")", ";", "}", ""], "natrual_language": ["Returns", "the", "CSEConfig", "object", "to", "use", "for", "the", "current", "optimization", "level", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsTargetMachine (2)1", "Func": "getCSEConfig", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1822, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ARMSubtarget", "::", "ARMSubtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "ARMBaseTargetMachine", "&", "TM", ",", "bool", "IsLittle", ",", "bool", "MinSize", ")", ":", "ARMGenSubtargetInfo", "(", "TT", ",", "CPU", ",", "CPU", ",", "FS", ")", ",", "UseMulOps", "(", "UseFusedMulOps", ")", ",", "CPUString", "(", "CPU", ")", ",", "OptMinSize", "(", "MinSize", ")", ",", "IsLittle", "(", "IsLittle", ")", ",", "TargetTriple", "(", "TT", ")", ",", "Options", "(", "TM", ".", "Options", ")", ",", "TM", "(", "TM", ")", ",", "FrameLowering", "(", "initializeFrameLowering", "(", "CPU", ",", "FS", ")", ")", ",", "InstrInfo", "(", "isThumb1Only", "(", ")", "?", "(", "ARMBaseInstrInfo", "*", ")", "new", "Thumb1InstrInfo", "(", "*", "this", ")", ":", "!", "isThumb", "(", ")", "?", "(", "ARMBaseInstrInfo", "*", ")", "new", "ARMInstrInfo", "(", "*", "this", ")", ":", "(", "ARMBaseInstrInfo", "*", ")", "new", "Thumb2InstrInfo", "(", "*", "this", ")", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{", "CallLoweringInfo", ".", "reset", "(", "new", "ARMCallLowering", "(", "*", "getTargetLowering", "(", ")", ")", ")", ";", "Legalizer", ".", "reset", "(", "new", "ARMLegalizerInfo", "(", "*", "this", ")", ")", ";", "auto", "*", "RBI", "=", "new", "ARMRegisterBankInfo", "(", "*", "getRegisterInfo", "(", ")", ")", ";", "InstSelector", ".", "reset", "(", "createARMInstructionSelector", "(", "*", "static_cast", "<", "const", "ARMBaseTargetMachine", "*", ">", "(", "&", "TM", ")", ",", "*", "this", ",", "*", "RBI", ")", ")", ";", "RegBankInfo", ".", "reset", "(", "RBI", ")", ";", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM"], "File": "ARMSubtarget37", "Func": "ARMSubtarget", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1823, "Length": 219, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "{", "return", "\"X86 vzeroupper inserter\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["X86", "\"X86 vzeroupper inserter\""], "File": "X86VZeroUpper", "Func": "getPassName", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1824, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "pad_direction", "pa_function_arg_padding", "(", "machine_mode", "mode", ",", "const_tree", "type", ")", "{", "if", "(", "mode", "==", "BLKmode", "||", "(", "TARGET_64BIT", "&&", "type", "&&", "(", "AGGREGATE_TYPE_P", "(", "type", ")", "||", "TREE_CODE", "(", "type", ")", "==", "COMPLEX_TYPE", "||", "TREE_CODE", "(", "type", ")", "==", "VECTOR_TYPE", ")", ")", ")", "{", "if", "(", "type", "&&", "TREE_CODE", "(", "TYPE_SIZE", "(", "type", ")", ")", "==", "INTEGER_CST", "&&", "(", "int_size_in_bytes", "(", "type", ")", "*", "BITS_PER_UNIT", ")", "%", "PARM_BOUNDARY", "==", "0", ")", "return", "PAD_NONE", ";", "if", "(", "TARGET_64BIT", ")", "return", "PAD_UPWARD", ";", "else", "return", "PAD_DOWNWARD", ";", "}", "if", "(", "GET_MODE_BITSIZE", "(", "mode", ")", "<", "PARM_BOUNDARY", ")", "return", "PAD_DOWNWARD", ";", "else", "return", "PAD_NONE", ";", "}", ""], "natrual_language": ["Implement", "TARGET_FUNCTION_ARG_PADDING", "."], "TS_V_token": ["pa", "0"], "File": "pa", "Func": "pa_function_arg_padding", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1825, "Length": 104, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ia64_expand_unpack", "(", "rtx", "operands", "[", "3", "]", ",", "bool", "unsignedp", ",", "bool", "highp", ")", "{", "rtx", "sign", "=", "ia64_unpack_sign", "(", "operands", "[", "1", "]", ",", "unsignedp", ")", ";", "ia64_unpack_assemble", "(", "operands", "[", "0", "]", ",", "operands", "[", "1", "]", ",", "sign", ",", "highp", ")", ";", "}", ""], "natrual_language": ["Emit", "an", "integral", "vector", "unpack", "operation", "."], "TS_V_token": ["ia64", "3", "1", "0", "1"], "File": "ia64", "Func": "ia64_expand_unpack", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1826, "Length": 47, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "eq_neq_comparison_operator", "(", "rtx", "op", ",", "enum", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ")", "{", "return", "(", "GET_CODE", "(", "op", ")", "==", "EQ", "||", "GET_CODE", "(", "op", ")", "==", "NE", ")", ";", "}", ""], "natrual_language": ["Return", "1", "if", "OP", "is", "an", "equality", "comparison", ",", "else", "return", "0", "."], "TS_V_token": ["pa"], "File": "pa3", "Func": "eq_neq_comparison_operator", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1827, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ia64_dfa_new_cycle", "(", "FILE", "*", "dump", ",", "int", "verbose", ",", "rtx_insn", "*", "insn", ",", "int", "last_clock", ",", "int", "clock", ",", "int", "*", "sort_p", ")", "{", "gcc_assert", "(", "insn", "&&", "INSN_P", "(", "insn", ")", ")", ";", "if", "(", "DEBUG_INSN_P", "(", "insn", ")", ")", "return", "0", ";", "gcc_assert", "(", "!", "(", "reload_completed", "&&", "safe_group_barrier_needed", "(", "insn", ")", ")", "||", "last_scheduled_insn", ")", ";", "if", "(", "(", "reload_completed", "&&", "(", "safe_group_barrier_needed", "(", "insn", ")", "||", "(", "mflag_sched_stop_bits_after_every_cycle", "&&", "last_clock", "!=", "clock", "&&", "last_scheduled_insn", "&&", "scheduled_good_insn", "(", "last_scheduled_insn", ")", ")", ")", ")", "||", "(", "last_scheduled_insn", "&&", "(", "CALL_P", "(", "last_scheduled_insn", ")", "||", "unknown_for_bundling_p", "(", "last_scheduled_insn", ")", ")", ")", ")", "{", "init_insn_group_barriers", "(", ")", ";", "if", "(", "verbose", "&&", "dump", ")", "fprintf", "(", "dump", ",", "\"// Stop should be before %d%s\\n\"", ",", "INSN_UID", "(", "insn", ")", ",", "last_clock", "==", "clock", "?", "\" + cycle advance\"", ":", "\"\"", ")", ";", "stop_before_p", "=", "1", ";", "current_cycle", "=", "clock", ";", "mem_ops_in_group", "[", "current_cycle", "%", "4", "]", "=", "0", ";", "if", "(", "last_clock", "==", "clock", ")", "{", "state_transition", "(", "curr_state", ",", "dfa_stop_insn", ")", ";", "if", "(", "TARGET_EARLY_STOP_BITS", ")", "*", "sort_p", "=", "(", "last_scheduled_insn", "==", "NULL_RTX", "||", "!", "CALL_P", "(", "last_scheduled_insn", ")", ")", ";", "else", "*", "sort_p", "=", "0", ";", "return", "1", ";", "}", "if", "(", "last_scheduled_insn", ")", "{", "if", "(", "unknown_for_bundling_p", "(", "last_scheduled_insn", ")", ")", "state_reset", "(", "curr_state", ")", ";", "else", "{", "memcpy", "(", "curr_state", ",", "prev_cycle_state", ",", "dfa_state_size", ")", ";", "state_transition", "(", "curr_state", ",", "dfa_stop_insn", ")", ";", "state_transition", "(", "curr_state", ",", "dfa_pre_cycle_insn", ")", ";", "state_transition", "(", "curr_state", ",", "NULL", ")", ";", "}", "}", "}", "return", "0", ";", "}", ""], "natrual_language": ["We", "are", "about", "to", "being", "issuing", "INSN", ".", "Return", "nonzero", "if", "we", "can", "not", "issue", "it", "on", "given", "cycle", "CLOCK", "and", "return", "zero", "if", "we", "should", "not", "sort", "the", "ready", "queue", "on", "the", "next", "clock", "start", "."], "TS_V_token": ["ia64", "0", "\"// Stop should be before %d%s\\n\"", "\" + cycle advance\"", "\"\"", "1", "4", "0", "0", "1", "0"], "File": "ia64", "Func": "ia64_dfa_new_cycle", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1828, "Length": 252, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCTargetLowering", "::", "combineRepeatedFPDivisors", "(", ")", "const", "{", "switch", "(", "Subtarget", ".", "getCPUDirective", "(", ")", ")", "{", "default", ":", "return", "3", ";", "case", "PPC", "::", "DIR_440", ":", "case", "PPC", "::", "DIR_A2", ":", "case", "PPC", "::", "DIR_E500", ":", "case", "PPC", "::", "DIR_E500mc", ":", "case", "PPC", "::", "DIR_E5500", ":", "return", "2", ";", "}", "}", ""], "natrual_language": ["Indicate", "whether", "this", "target", "prefers", "to", "combine", "FDIVs", "with", "the", "same", "divisor", "."], "TS_V_token": ["PowerPC", "PPC", "3", "PPC::DIR_440", "PPC::DIR_A2", "PPC::DIR_E500", "PPC::DIR_E500mc", "PPC::DIR_E5500", "2"], "File": "PPCISelLowering100", "Func": "combineRepeatedFPDivisors", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1829, "Length": 52, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "sh_override_options_after_change", "(", "void", ")", "{", "if", "(", "align_loops", "==", "0", ")", "align_loops", "=", "optimize_size", "?", "2", ":", "4", ";", "if", "(", "align_jumps", "==", "0", ")", "align_jumps", "=", "2", ";", "else", "if", "(", "align_jumps", "<", "2", ")", "align_jumps", "=", "2", ";", "if", "(", "align_functions", "==", "0", ")", "align_functions", "=", "optimize_size", "?", "2", ":", "4", ";", "if", "(", "TARGET_RELAX", ")", "{", "int", "min_align", "=", "align_loops", ">", "align_jumps", "?", "align_loops", ":", "align_jumps", ";", "if", "(", "min_align", "<", "4", ")", "min_align", "=", "4", ";", "if", "(", "align_functions", "<", "min_align", ")", "align_functions", "=", "min_align", ";", "}", "}", ""], "natrual_language": ["Implement", "targetm.override_options_after_change", "."], "TS_V_token": ["sh", "0", "2", "4", "0", "2", "2", "2", "0", "2", "4", "4", "4"], "File": "sh6", "Func": "sh_override_options_after_change", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1830, "Length": 94, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "function_resolver", "::", "check_gp_argument", "(", "unsigned", "int", "nops", ",", "unsigned", "int", "&", "i", ",", "unsigned", "int", "&", "nargs", ")", "{", "i", "=", "0", ";", "if", "(", "pred", "!=", "PRED_none", ")", "{", "gcc_assert", "(", "nops", "!=", "1", "||", "pred", "!=", "PRED_m", ")", ";", "nargs", "=", "nops", "+", "1", ";", "if", "(", "!", "check_num_arguments", "(", "nargs", ")", "||", "!", "require_vector_type", "(", "i", ",", "VECTOR_TYPE_svbool_t", ")", ")", "return", "false", ";", "i", "+=", "1", ";", "}", "else", "{", "nargs", "=", "nops", ";", "if", "(", "!", "check_num_arguments", "(", "nargs", ")", ")", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["If", "the", "function", "is", "predicated", ",", "check", "that", "the", "first", "argument", "is", "a", "suitable", "governing", "predicate", ".", "Also", "check", "that", "there", "are", "NOPS", "further", "arguments", "after", "any", "governing", "predicate", ",", "but", "do", "n't", "check", "what", "they", "are", ".", "Return", "true", "on", "success", ",", "otherwise", "report", "a", "suitable", "error", ".", "When", "returning", "true", ":", "-", "set", "I", "to", "the", "number", "of", "the", "first", "unchecked", "argument", ".", "-", "set", "NARGS", "to", "the", "total", "number", "of", "arguments", "."], "TS_V_token": ["aarch64", "0", "1", "1", "1"], "File": "aarch64-sve-builtins", "Func": "check_gp_argument", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1831, "Length": 94, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", "\"AArch64 Promote Constant\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["AArch64", "\"AArch64 Promote Constant\""], "File": "AArch64PromoteConstant (2)", "Func": "getPassName", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1832, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "enum", "reg_class", "mips_secondary_reload_class", "(", "enum", "reg_class", "rclass", ",", "machine_mode", "mode", ",", "rtx", "x", ",", "bool", ")", "{", "int", "regno", ";", "if", "(", "mips_dangerous_for_la25_p", "(", "x", ")", ")", "return", "reg_class_subset_p", "(", "rclass", ",", "LEA_REGS", ")", "?", "NO_REGS", ":", "LEA_REGS", ";", "regno", "=", "true_regnum", "(", "x", ")", ";", "if", "(", "TARGET_MIPS16", ")", "{", "if", "(", "!", "reg_class_subset_p", "(", "rclass", ",", "M16_REGS", ")", "&&", "!", "M16_REG_P", "(", "regno", ")", ")", "return", "M16_REGS", ";", "return", "NO_REGS", ";", "}", "if", "(", "reg_class_subset_p", "(", "rclass", ",", "ACC_REGS", ")", ")", "return", "GP_REG_P", "(", "regno", ")", "?", "NO_REGS", ":", "GR_REGS", ";", "if", "(", "ACC_REG_P", "(", "regno", ")", ")", "return", "reg_class_subset_p", "(", "rclass", ",", "GR_REGS", ")", "?", "NO_REGS", ":", "GR_REGS", ";", "if", "(", "reg_class_subset_p", "(", "rclass", ",", "FP_REGS", ")", ")", "{", "if", "(", "regno", "<", "0", "||", "(", "MEM_P", "(", "x", ")", "&&", "(", "GET_MODE_SIZE", "(", "mode", ")", "==", "4", "||", "GET_MODE_SIZE", "(", "mode", ")", "==", "8", ")", ")", ")", "return", "NO_REGS", ";", "if", "(", "GP_REG_P", "(", "regno", ")", "||", "x", "==", "CONST0_RTX", "(", "mode", ")", ")", "return", "NO_REGS", ";", "if", "(", "CONSTANT_P", "(", "x", ")", "&&", "!", "targetm", ".", "cannot_force_const_mem", "(", "mode", ",", "x", ")", ")", "return", "NO_REGS", ";", "if", "(", "FP_REG_P", "(", "regno", ")", "&&", "mips_mode_ok_for_mov_fmt_p", "(", "mode", ")", ")", "return", "NO_REGS", ";", "return", "GR_REGS", ";", "}", "if", "(", "FP_REG_P", "(", "regno", ")", ")", "return", "reg_class_subset_p", "(", "rclass", ",", "GR_REGS", ")", "?", "NO_REGS", ":", "GR_REGS", ";", "return", "NO_REGS", ";", "}", ""], "natrual_language": ["This", "function", "returns", "the", "register", "class", "required", "for", "a", "secondary", "register", "when", "copying", "between", "one", "of", "the", "registers", "in", "CLASS", ",", "and", "X", ",", "using", "MODE", ".", "If", "IN_P", "is", "nonzero", ",", "the", "copy", "is", "going", "from", "X", "to", "the", "register", ",", "otherwise", "the", "register", "is", "the", "source", ".", "A", "return", "value", "of", "NO_REGS", "means", "that", "no", "secondary", "register", "is", "required", "."], "TS_V_token": ["mips", "0", "4", "8"], "File": "mips4", "Func": "mips_secondary_reload_class", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1833, "Length": 233, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "F", ")", "override", "{", "AArch64FI", "=", "F", ".", "getInfo", "<", "AArch64FunctionInfo", ">", "(", ")", ";", "STI", "=", "static_cast", "<", "const", "AArch64Subtarget", "*", ">", "(", "&", "F", ".", "getSubtarget", "(", ")", ")", ";", "return", "AsmPrinter", "::", "runOnMachineFunction", "(", "F", ")", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64AsmPrinter73", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1834, "Length": 46, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCInstrInfo", "::", "isLoadFromStackSlot", "(", "const", "MachineInstr", "&", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "PPC", "::", "LD", ":", "case", "PPC", "::", "LWZ", ":", "case", "PPC", "::", "LFS", ":", "case", "PPC", "::", "LFD", ":", "case", "PPC", "::", "RESTORE_CR", ":", "case", "PPC", "::", "RESTORE_CRBIT", ":", "case", "PPC", "::", "LVX", ":", "case", "PPC", "::", "LXVD2X", ":", "case", "PPC", "::", "LXVX", ":", "case", "PPC", "::", "QVLFDX", ":", "case", "PPC", "::", "QVLFSXs", ":", "case", "PPC", "::", "QVLFDXb", ":", "case", "PPC", "::", "RESTORE_VRSAVE", ":", "case", "PPC", "::", "SPILLTOVSR_LD", ":", "if", "(", "MI", ".", "getOperand", "(", "1", ")", ".", "isImm", "(", ")", "&&", "!", "MI", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", "&&", "MI", ".", "getOperand", "(", "2", ")", ".", "isFI", "(", ")", ")", "{", "FrameIndex", "=", "MI", ".", "getOperand", "(", "2", ")", ".", "getIndex", "(", ")", ";", "return", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "}", "break", ";", "}", "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": ["PowerPC", "PPC", "PPC::LD", "PPC::LWZ", "PPC::LFS", "PPC::LFD", "PPC::RESTORE_CR", "PPC::RESTORE_CRBIT", "PPC::LVX", "PPC::LXVD2X", "PPC::LXVX", "PPC::QVLFDX", "PPC::QVLFSXs", "PPC::QVLFDXb", "PPC::RESTORE_VRSAVE", "PPC::SPILLTOVSR_LD", "1", "1", "2", "2", "0", "0"], "File": "PPCInstrInfo32", "Func": "isLoadFromStackSlot", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1835, "Length": 169, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "fixupNeedsRelaxation", "(", "const", "MCFixup", "&", "Fixup", ",", "uint64_t", "Value", ",", "const", "MCRelaxableFragment", "*", "DF", ",", "const", "MCAsmLayout", "&", "Layout", ")", "const", "override", "{", "return", "false", ";", "}", ""], "natrual_language": ["Simple", "predicate", "for", "targets", "where", "!", "Resolved", "implies", "requiring", "relaxation", "."], "TS_V_token": ["VE"], "File": "VEAsmBackend", "Func": "fixupNeedsRelaxation", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1836, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "CSKYConstantPool", "::", "empty", "(", ")", "{", "return", "Entries", ".", "empty", "(", ")", ";", "}", ""], "natrual_language": ["Determine", "whether", "this", "version", "information", "is", "empty", "(", "e.g.", ",", "all", "version", "components", "are", "zero", ")", "."], "TS_V_token": ["CSKY", "CSKY"], "File": "CSKYTargetStreamer", "Func": "empty", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1837, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "vector", "<", "std", "::", "pair", "<", "uint64_t", ",", "uint64_t", ">>", "findPltEntries", "(", "uint64_t", "PltSectionVA", ",", "ArrayRef", "<", "uint8_t", ">", "PltContents", ",", "uint64_t", "GotPltSectionVA", ",", "const", "Triple", "&", "TargetTriple", ")", "const", "override", "{", "std", "::", "vector", "<", "std", "::", "pair", "<", "uint64_t", ",", "uint64_t", ">>", "Result", ";", "for", "(", "uint64_t", "Byte", "=", "0", ",", "End", "=", "PltContents", ".", "size", "(", ")", ";", "Byte", "+", "7", "<", "End", ";", "Byte", "+=", "4", ")", "{", "uint32_t", "Insn", "=", "support", "::", "endian", "::", "read32le", "(", "PltContents", ".", "data", "(", ")", "+", "Byte", ")", ";", "if", "(", "(", "Insn", "&", "0x9f000000", ")", "!=", "0x90000000", ")", "continue", ";", "uint64_t", "Imm", "=", "(", "(", "(", "PltSectionVA", "+", "Byte", ")", ">>", "12", ")", "<<", "12", ")", "+", "(", "(", "(", "Insn", ">>", "29", ")", "&", "3", ")", "<<", "12", ")", "+", "(", "(", "(", "Insn", ">>", "5", ")", "&", "0x3ffff", ")", "<<", "14", ")", ";", "uint32_t", "Insn2", "=", "support", "::", "endian", "::", "read32le", "(", "PltContents", ".", "data", "(", ")", "+", "Byte", "+", "4", ")", ";", "if", "(", "Insn2", ">>", "22", "==", "0x3e5", ")", "{", "Imm", "+=", "(", "(", "Insn2", ">>", "10", ")", "&", "0xfff", ")", "<<", "3", ";", "Result", ".", "push_back", "(", "std", "::", "make_pair", "(", "PltSectionVA", "+", "Byte", ",", "Imm", ")", ")", ";", "Byte", "+=", "4", ";", "}", "}", "return", "Result", ";", "}", ""], "natrual_language": ["Returns", "(", "PLT", "virtual", "address", ",", "GOT", "virtual", "address", ")", "pairs", "for", "PLT", "entries", "."], "TS_V_token": ["AArch64", "0", "7", "4", "support::endian", "0x9f000000", "0x90000000", "12", "12", "29", "3", "12", "5", "0x3ffff", "14", "support::endian", "4", "22", "0x3e5", "10", "0xfff", "3", "4"], "File": "AArch64MCTargetDesc27", "Func": "findPltEntries", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1838, "Length": 218, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCSymbol", "*", "X86AsmPrinter", "::", "GetCPISymbol", "(", "unsigned", "CPID", ")", "const", "{", "if", "(", "Subtarget", "->", "isTargetKnownWindowsMSVC", "(", ")", ")", "{", "const", "MachineConstantPoolEntry", "&", "CPE", "=", "MF", "->", "getConstantPool", "(", ")", "->", "getConstants", "(", ")", "[", "CPID", "]", ";", "if", "(", "!", "CPE", ".", "isMachineConstantPoolEntry", "(", ")", ")", "{", "const", "DataLayout", "&", "DL", "=", "MF", "->", "getDataLayout", "(", ")", ";", "SectionKind", "Kind", "=", "CPE", ".", "getSectionKind", "(", "&", "DL", ")", ";", "const", "Constant", "*", "C", "=", "CPE", ".", "Val", ".", "ConstVal", ";", "unsigned", "Align", "=", "CPE", ".", "Alignment", ";", "if", "(", "const", "MCSectionCOFF", "*", "S", "=", "dyn_cast", "<", "MCSectionCOFF", ">", "(", "getObjFileLowering", "(", ")", ".", "getSectionForConstant", "(", "DL", ",", "Kind", ",", "C", ",", "Align", ")", ")", ")", "{", "if", "(", "MCSymbol", "*", "Sym", "=", "S", "->", "getCOMDATSymbol", "(", ")", ")", "{", "if", "(", "Sym", "->", "isUndefined", "(", ")", ")", "OutStreamer", "->", "EmitSymbolAttribute", "(", "Sym", ",", "MCSA_Global", ")", ";", "return", "Sym", ";", "}", "}", "}", "}", "return", "AsmPrinter", "::", "GetCPISymbol", "(", "CPID", ")", ";", "}", ""], "natrual_language": ["Return", "the", "symbol", "for", "the", "specified", "constant", "pool", "entry", "."], "TS_V_token": ["X86", "X86"], "File": "X86AsmPrinter108", "Func": "GetCPISymbol", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1839, "Length": 163, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Register", "getStackAddress", "(", "uint64_t", "Size", ",", "int64_t", "Offset", ",", "MachinePointerInfo", "&", "MPO", ")", "override", "{", "assert", "(", "(", "Size", "==", "1", "||", "Size", "==", "2", "||", "Size", "==", "4", "||", "Size", "==", "8", ")", "&&", "\"Unsupported size\"", ")", ";", "auto", "&", "MFI", "=", "MIRBuilder", ".", "getMF", "(", ")", ".", "getFrameInfo", "(", ")", ";", "int", "FI", "=", "MFI", ".", "CreateFixedObject", "(", "Size", ",", "Offset", ",", "true", ")", ";", "MPO", "=", "MachinePointerInfo", "::", "getFixedStack", "(", "MIRBuilder", ".", "getMF", "(", ")", ",", "FI", ")", ";", "return", "MIRBuilder", ".", "buildFrameIndex", "(", "LLT", "::", "pointer", "(", "MPO", ".", "getAddrSpace", "(", ")", ",", "32", ")", ",", "FI", ")", ".", "getReg", "(", "0", ")", ";", "}", ""], "natrual_language": ["Materialize", "a", "VReg", "containing", "the", "address", "of", "the", "specified", "stack-based", "object", "."], "TS_V_token": ["ARM", "1", "2", "4", "8", "\"Unsupported size\"", "32", "0"], "File": "ARMCallLowering", "Func": "getStackAddress", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1840, "Length": 108, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ix86_target_macros", "(", "void", ")", "{", "if", "(", "TARGET_64BIT", ")", "{", "cpp_assert", "(", "parse_in", ",", "\"cpu=x86_64\"", ")", ";", "cpp_assert", "(", "parse_in", ",", "\"machine=x86_64\"", ")", ";", "cpp_define", "(", "parse_in", ",", "\"__amd64\"", ")", ";", "cpp_define", "(", "parse_in", ",", "\"__amd64__\"", ")", ";", "cpp_define", "(", "parse_in", ",", "\"__x86_64\"", ")", ";", "cpp_define", "(", "parse_in", ",", "\"__x86_64__\"", ")", ";", "if", "(", "TARGET_X32", ")", "{", "cpp_define", "(", "parse_in", ",", "\"_ILP32\"", ")", ";", "cpp_define", "(", "parse_in", ",", "\"__ILP32__\"", ")", ";", "}", "}", "else", "{", "cpp_assert", "(", "parse_in", ",", "\"cpu=i386\"", ")", ";", "cpp_assert", "(", "parse_in", ",", "\"machine=i386\"", ")", ";", "builtin_define_std", "(", "\"i386\"", ")", ";", "}", "if", "(", "!", "TARGET_80387", ")", "cpp_define", "(", "parse_in", ",", "\"_SOFT_FLOAT\"", ")", ";", "if", "(", "TARGET_LONG_DOUBLE_64", ")", "cpp_define", "(", "parse_in", ",", "\"__LONG_DOUBLE_64__\"", ")", ";", "if", "(", "TARGET_LONG_DOUBLE_128", ")", "cpp_define", "(", "parse_in", ",", "\"__LONG_DOUBLE_128__\"", ")", ";", "if", "(", "TARGET_128BIT_LONG_DOUBLE", ")", "cpp_define", "(", "parse_in", ",", "\"__SIZEOF_FLOAT80__=16\"", ")", ";", "else", "cpp_define", "(", "parse_in", ",", "\"__SIZEOF_FLOAT80__=12\"", ")", ";", "cpp_define", "(", "parse_in", ",", "\"__SIZEOF_FLOAT128__=16\"", ")", ";", "cpp_define_formatted", "(", "parse_in", ",", "\"__ATOMIC_HLE_ACQUIRE=%d\"", ",", "IX86_HLE_ACQUIRE", ")", ";", "cpp_define_formatted", "(", "parse_in", ",", "\"__ATOMIC_HLE_RELEASE=%d\"", ",", "IX86_HLE_RELEASE", ")", ";", "cpp_define", "(", "parse_in", ",", "\"__GCC_ASM_FLAG_OUTPUTS__\"", ")", ";", "ix86_target_macros_internal", "(", "ix86_isa_flags", ",", "ix86_arch", ",", "ix86_tune", ",", "ix86_fpmath", ",", "cpp_define", ")", ";", "cpp_define", "(", "parse_in", ",", "\"__SEG_FS\"", ")", ";", "cpp_define", "(", "parse_in", ",", "\"__SEG_GS\"", ")", ";", "}", ""], "natrual_language": ["Function", "to", "tell", "the", "preprocessor", "about", "the", "defines", "for", "the", "current", "target", "."], "TS_V_token": ["i386", "\"cpu=x86_64\"", "\"machine=x86_64\"", "\"__amd64\"", "\"__amd64__\"", "\"__x86_64\"", "\"__x86_64__\"", "\"_ILP32\"", "\"__ILP32__\"", "\"cpu=i386\"", "\"machine=i386\"", "\"i386\"", "\"_SOFT_FLOAT\"", "\"__LONG_DOUBLE_64__\"", "\"__LONG_DOUBLE_128__\"", "\"__SIZEOF_FLOAT80__=16\"", "\"__SIZEOF_FLOAT80__=12\"", "\"__SIZEOF_FLOAT128__=16\"", "\"__ATOMIC_HLE_ACQUIRE=%d\"", "\"__ATOMIC_HLE_RELEASE=%d\"", "\"__GCC_ASM_FLAG_OUTPUTS__\"", "\"__SEG_FS\"", "\"__SEG_GS\""], "File": "i386-c3", "Func": "ix86_target_macros", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1841, "Length": 209, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "tree", "ix86_get_function_versions_dispatcher", "(", "void", "*", "decl", ")", "{", "tree", "fn", "=", "(", "tree", ")", "decl", ";", "struct", "cgraph_node", "*", "node", "=", "NULL", ";", "struct", "cgraph_node", "*", "default_node", "=", "NULL", ";", "struct", "cgraph_function_version_info", "*", "node_v", "=", "NULL", ";", "struct", "cgraph_function_version_info", "*", "first_v", "=", "NULL", ";", "tree", "dispatch_decl", "=", "NULL", ";", "struct", "cgraph_function_version_info", "*", "default_version_info", "=", "NULL", ";", "gcc_assert", "(", "fn", "!=", "NULL", "&&", "DECL_FUNCTION_VERSIONED", "(", "fn", ")", ")", ";", "node", "=", "cgraph_node", "::", "get", "(", "fn", ")", ";", "gcc_assert", "(", "node", "!=", "NULL", ")", ";", "node_v", "=", "node", "->", "function_version", "(", ")", ";", "gcc_assert", "(", "node_v", "!=", "NULL", ")", ";", "if", "(", "node_v", "->", "dispatcher_resolver", "!=", "NULL", ")", "return", "node_v", "->", "dispatcher_resolver", ";", "first_v", "=", "node_v", ";", "while", "(", "first_v", "->", "prev", "!=", "NULL", ")", "first_v", "=", "first_v", "->", "prev", ";", "default_version_info", "=", "first_v", ";", "while", "(", "default_version_info", "!=", "NULL", ")", "{", "if", "(", "is_function_default_version", "(", "default_version_info", "->", "this_node", "->", "decl", ")", ")", "break", ";", "default_version_info", "=", "default_version_info", "->", "next", ";", "}", "if", "(", "default_version_info", "==", "NULL", ")", "return", "NULL", ";", "if", "(", "first_v", "!=", "default_version_info", ")", "{", "default_version_info", "->", "prev", "->", "next", "=", "default_version_info", "->", "next", ";", "if", "(", "default_version_info", "->", "next", ")", "default_version_info", "->", "next", "->", "prev", "=", "default_version_info", "->", "prev", ";", "first_v", "->", "prev", "=", "default_version_info", ";", "default_version_info", "->", "next", "=", "first_v", ";", "default_version_info", "->", "prev", "=", "NULL", ";", "}", "default_node", "=", "default_version_info", "->", "this_node", ";", "if", "(", "targetm", ".", "has_ifunc_p", "(", ")", ")", "{", "struct", "cgraph_function_version_info", "*", "it_v", "=", "NULL", ";", "struct", "cgraph_node", "*", "dispatcher_node", "=", "NULL", ";", "struct", "cgraph_function_version_info", "*", "dispatcher_version_info", "=", "NULL", ";", "dispatch_decl", "=", "make_dispatcher_decl", "(", "default_node", "->", "decl", ")", ";", "dispatcher_node", "=", "cgraph_node", "::", "get_create", "(", "dispatch_decl", ")", ";", "gcc_assert", "(", "dispatcher_node", "!=", "NULL", ")", ";", "dispatcher_node", "->", "dispatcher_function", "=", "1", ";", "dispatcher_version_info", "=", "dispatcher_node", "->", "insert_new_function_version", "(", ")", ";", "dispatcher_version_info", "->", "next", "=", "default_version_info", ";", "dispatcher_node", "->", "definition", "=", "1", ";", "it_v", "=", "default_version_info", ";", "while", "(", "it_v", "!=", "NULL", ")", "{", "it_v", "->", "dispatcher_resolver", "=", "dispatch_decl", ";", "it_v", "=", "it_v", "->", "next", ";", "}", "}", "else", "{", "error_at", "(", "DECL_SOURCE_LOCATION", "(", "default_node", "->", "decl", ")", ",", "\"multiversioning needs % which is not supported \"", "\"on this target\"", ")", ";", "}", "return", "dispatch_decl", ";", "}", ""], "natrual_language": ["Make", "a", "dispatcher", "declaration", "for", "the", "multi-versioned", "function", "DECL", ".", "Calls", "to", "DECL", "function", "will", "be", "replaced", "with", "calls", "to", "the", "dispatcher", "by", "the", "front-end", ".", "Returns", "the", "decl", "of", "the", "dispatcher", "function", "."], "TS_V_token": ["i386", "1", "1", "\"multiversioning needs % which is not supported \"", "\"on this target\""], "File": "i386-features", "Func": "ix86_get_function_versions_dispatcher", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1842, "Length": 354, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86InstrInfo", "::", "isLoadFromStackSlotPostFE", "(", "const", "MachineInstr", "*", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "if", "(", "isFrameLoadOpcode", "(", "MI", "->", "getOpcode", "(", ")", ")", ")", "{", "unsigned", "Reg", ";", "if", "(", "(", "Reg", "=", "isLoadFromStackSlot", "(", "MI", ",", "FrameIndex", ")", ")", ")", "return", "Reg", ";", "const", "MachineMemOperand", "*", "Dummy", ";", "return", "hasLoadFromStackSlot", "(", "MI", ",", "Dummy", ",", "FrameIndex", ")", ";", "}", "return", "0", ";", "}", ""], "natrual_language": ["isLoadFromStackSlotPostFE", "-", "Check", "for", "post-frame", "ptr", "elimination", "stack", "locations", "as", "well", "."], "TS_V_token": ["X86", "X86", "0"], "File": "X86InstrInfo (2)", "Func": "isLoadFromStackSlotPostFE", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1843, "Length": 67, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Finish", "(", ")", "{", "const", "size_t", "VendorHeaderSize", "=", "4", "+", "CurrentVendor", ".", "size", "(", ")", "+", "1", ";", "const", "size_t", "TagHeaderSize", "=", "1", "+", "4", ";", "Streamer", ".", "EmitIntValue", "(", "VendorHeaderSize", "+", "TagHeaderSize", "+", "ContentsSize", ",", "4", ")", ";", "Streamer", ".", "EmitBytes", "(", "CurrentVendor", ",", "0", ")", ";", "Streamer", ".", "EmitIntValue", "(", "0", ",", "1", ")", ";", "Streamer", ".", "EmitIntValue", "(", "ARMBuildAttrs", "::", "File", ",", "1", ")", ";", "Streamer", ".", "EmitIntValue", "(", "TagHeaderSize", "+", "ContentsSize", ",", "4", ")", ";", "for", "(", "unsigned", "int", "i", "=", "0", ";", "i", "<", "Contents", ".", "size", "(", ")", ";", "++", "i", ")", "{", "AttributeItemType", "item", "=", "Contents", "[", "i", "]", ";", "Streamer", ".", "EmitULEB128IntValue", "(", "item", ".", "Tag", ",", "0", ")", ";", "switch", "(", "item", ".", "Type", ")", "{", "case", "AttributeItemType", "::", "NumericAttribute", ":", "Streamer", ".", "EmitULEB128IntValue", "(", "item", ".", "IntValue", ",", "0", ")", ";", "break", ";", "case", "AttributeItemType", "::", "TextAttribute", ":", "Streamer", ".", "EmitBytes", "(", "item", ".", "StringValue", ".", "upper", "(", ")", ",", "0", ")", ";", "Streamer", ".", "EmitIntValue", "(", "0", ",", "1", ")", ";", "break", ";", "default", ":", "assert", "(", "0", "&&", "\"Invalid attribute type\"", ")", ";", "}", "}", "Contents", ".", "clear", "(", ")", ";", "}", ""], "natrual_language": ["Finish", "-", "Do", "final", "processing", "and", "write", "the", "object", "to", "the", "output", "stream", "."], "TS_V_token": ["ARM", "4", "1", "1", "4", "4", "0", "0", "1", "ARMBuildAttrs::File", "1", "4", "0", "0", "0", "0", "0", "1", "0", "\"Invalid attribute type\""], "File": "ARMAsmPrinter14", "Func": "Finish", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1844, "Length": 193, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZExpandPseudo", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "TII", "=", "static_cast", "<", "const", "SystemZInstrInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "bool", "Modified", "=", "false", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "Modified", "|=", "expandMBB", "(", "MBB", ")", ";", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ"], "File": "SystemZExpandPseudo", "Func": "runOnMachineFunction", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1845, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "FPGATTIImpl", "::", "getUnrollingPreferences", "(", "Loop", "*", "L", ",", "ScalarEvolution", "&", "SE", ",", "TTI", "::", "UnrollingPreferences", "&", "UP", ")", "{", "UP", ".", "Threshold", "=", "0", ";", "UP", ".", "PartialThreshold", "=", "0", ";", "UP", ".", "Count", "=", "1", ";", "UP", ".", "MaxCount", "=", "1", ";", "UP", ".", "FullUnrollMaxCount", "=", "1", ";", "UP", ".", "Partial", "=", "false", ";", "UP", ".", "Runtime", "=", "false", ";", "UP", ".", "AllowRemainder", "=", "false", ";", "}", ""], "natrual_language": ["Get", "target-customized", "preferences", "for", "the", "generic", "loop", "unrolling", "transformation", "."], "TS_V_token": ["FPGA", "FPGA", "0", "0", "1", "1", "1"], "File": "FPGATargetTransformInfo", "Func": "getUnrollingPreferences", "Target": "FPGA", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1846, "Length": 69, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "DCPU16FrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "const", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "DCPU16MachineFunctionInfo", "*", "DCPU16FI", "=", "MF", ".", "getInfo", "<", "DCPU16MachineFunctionInfo", ">", "(", ")", ";", "const", "DCPU16InstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "DCPU16InstrInfo", "*", ">", "(", "MF", ".", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "getLastNonDebugInstr", "(", ")", ";", "unsigned", "RetOpcode", "=", "MBBI", "->", "getOpcode", "(", ")", ";", "DebugLoc", "DL", "=", "MBBI", "->", "getDebugLoc", "(", ")", ";", "switch", "(", "RetOpcode", ")", "{", "case", "DCPU16", "::", "RET", ":", "case", "DCPU16", "::", "RETI", ":", "break", ";", "default", ":", "llvm_unreachable", "(", "\"Can only insert epilog into returning blocks\"", ")", ";", "}", "uint64_t", "StackSize", "=", "MFI", "->", "getStackSize", "(", ")", ";", "unsigned", "CSSize", "=", "DCPU16FI", "->", "getCalleeSavedFrameSize", "(", ")", ";", "uint64_t", "NumBytes", "=", "StackSize", "-", "CSSize", ";", "if", "(", "hasFP", "(", "MF", ")", ")", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "DCPU16", "::", "POP16r", ")", ",", "DCPU16", "::", "J", ")", ";", "}", "while", "(", "MBBI", "!=", "MBB", ".", "begin", "(", ")", ")", "{", "MachineBasicBlock", "::", "iterator", "PI", "=", "prior", "(", "MBBI", ")", ";", "unsigned", "Opc", "=", "PI", "->", "getOpcode", "(", ")", ";", "if", "(", "Opc", "!=", "DCPU16", "::", "POP16r", "&&", "!", "PI", "->", "isTerminator", "(", ")", ")", "break", ";", "--", "MBBI", ";", "}", "DL", "=", "MBBI", "->", "getDebugLoc", "(", ")", ";", "if", "(", "MFI", "->", "hasVarSizedObjects", "(", ")", ")", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "DCPU16", "::", "MOV16rr", ")", ",", "DCPU16", "::", "SP", ")", ".", "addReg", "(", "DCPU16", "::", "J", ")", ";", "if", "(", "CSSize", ")", "{", "MachineInstr", "*", "MI", "=", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "DCPU16", "::", "SUB16ri", ")", ",", "DCPU16", "::", "SP", ")", ".", "addReg", "(", "DCPU16", "::", "SP", ")", ".", "addImm", "(", "CSSize", ")", ";", "MI", "->", "getOperand", "(", "3", ")", ".", "setIsDead", "(", ")", ";", "}", "}", "else", "{", "if", "(", "NumBytes", ")", "{", "MachineInstr", "*", "MI", "=", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "DCPU16", "::", "ADD16ri", ")", ",", "DCPU16", "::", "SP", ")", ".", "addReg", "(", "DCPU16", "::", "SP", ")", ".", "addImm", "(", "NumBytes", ")", ";", "MI", "->", "getOperand", "(", "3", ")", ".", "setIsDead", "(", ")", ";", "}", "}", "}", ""], "natrual_language": ["Insert", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["Dcpu16", "DCPU16", "DCPU16", "DCPU16", "DCPU16", "DCPU16", "DCPU16", "DCPU16::RET", "DCPU16::RETI", "\"Can only insert epilog into returning blocks\"", "DCPU16", "DCPU16::POP16r", "DCPU16::J", "DCPU16::POP16r", "DCPU16::MOV16rr", "DCPU16::SP", "DCPU16::J", "DCPU16::SUB16ri", "DCPU16::SP", "DCPU16::SP", "3", "DCPU16::ADD16ri", "DCPU16::SP", "DCPU16::SP", "3"], "File": "Dcpu16FrameLowering", "Func": "emitEpilogue", "Target": "Dcpu16", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1847, "Length": 385, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMInstrInfo", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ")", "const", "{", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "ARMFunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "if", "(", "!", "AFI", "->", "isThumbFunction", "(", ")", "||", "CSI", ".", "empty", "(", ")", ")", "return", "false", ";", "bool", "isVarArg", "=", "AFI", "->", "getVarArgsRegSaveSize", "(", ")", ">", "0", ";", "MachineInstr", "*", "PopMI", "=", "MF", ".", "CreateMachineInstr", "(", "get", "(", "ARM", "::", "tPOP", ")", ",", "MI", "->", "getDebugLoc", "(", ")", ")", ";", "MBB", ".", "insert", "(", "MI", ",", "PopMI", ")", ";", "for", "(", "unsigned", "i", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "0", ";", "--", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "-", "1", "]", ".", "getReg", "(", ")", ";", "if", "(", "Reg", "==", "ARM", "::", "LR", ")", "{", "if", "(", "isVarArg", ")", "continue", ";", "Reg", "=", "ARM", "::", "PC", ";", "PopMI", "->", "setDesc", "(", "get", "(", "ARM", "::", "tPOP_RET", ")", ")", ";", "MBB", ".", "erase", "(", "MI", ")", ";", "}", "PopMI", "->", "addOperand", "(", "MachineOperand", "::", "CreateReg", "(", "Reg", ",", "true", ")", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["restoreCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "restore", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "load", "instructions", "via", "loadRegToStackSlot", "(", ")", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "0", "ARM::tPOP", "0", "1", "ARM::LR", "ARM::PC", "ARM::tPOP_RET"], "File": "ARMInstrInfo31", "Func": "restoreCalleeSavedRegisters", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1848, "Length": 203, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Cpu0PassConfig", "::", "addInstSelector", "(", ")", "{", "addPass", "(", "createCpu0SEISelDag", "(", "getCpu0TargetMachine", "(", ")", ",", "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": ["Cpu0", "Cpu0", "Cpu0", "Cpu0"], "File": "Cpu0TargetMachine", "Func": "addInstSelector", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1849, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "ConstraintWeight", "MipsTargetLowering", "::", "getSingleConstraintMatchWeight", "(", "AsmOperandInfo", "&", "info", ",", "const", "char", "*", "constraint", ")", "const", "{", "ConstraintWeight", "weight", "=", "CW_Invalid", ";", "Value", "*", "CallOperandVal", "=", "info", ".", "CallOperandVal", ";", "if", "(", "CallOperandVal", "==", "NULL", ")", "return", "CW_Default", ";", "Type", "*", "type", "=", "CallOperandVal", "->", "getType", "(", ")", ";", "switch", "(", "*", "constraint", ")", "{", "default", ":", "weight", "=", "TargetLowering", "::", "getSingleConstraintMatchWeight", "(", "info", ",", "constraint", ")", ";", "break", ";", "case", "'d'", ":", "case", "'y'", ":", "if", "(", "type", "->", "isIntegerTy", "(", ")", ")", "weight", "=", "CW_Register", ";", "break", ";", "case", "'f'", ":", "if", "(", "type", "->", "isFloatTy", "(", ")", ")", "weight", "=", "CW_Register", ";", "break", ";", "case", "'c'", ":", "case", "'l'", ":", "case", "'x'", ":", "if", "(", "type", "->", "isIntegerTy", "(", ")", ")", "weight", "=", "CW_SpecificReg", ";", "break", ";", "case", "'I'", ":", "case", "'J'", ":", "case", "'K'", ":", "case", "'L'", ":", "case", "'N'", ":", "case", "'O'", ":", "case", "'P'", ":", "if", "(", "isa", "<", "ConstantInt", ">", "(", "CallOperandVal", ")", ")", "weight", "=", "CW_Constant", ";", "break", ";", "}", "return", "weight", ";", "}", ""], "natrual_language": ["Examine", "constraint", "string", "and", "operand", "type", "and", "determine", "a", "weight", "value", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsISelLowering101", "Func": "getSingleConstraintMatchWeight", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1850, "Length": 173, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "ARM64RegisterInfo", "*", "getRegisterInfo", "(", ")", "const", "override", "{", "return", "&", "InstrInfo", ".", "getRegisterInfo", "(", ")", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["ARM64", "ARM64"], "File": "ARM64TargetMachine", "Func": "getRegisterInfo", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1851, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "char", "*", "get_some_local_dynamic_name", "(", "void", ")", "{", "rtx", "insn", ";", "if", "(", "cfun", "->", "machine", "->", "some_ld_name", ")", "return", "cfun", "->", "machine", "->", "some_ld_name", ";", "for", "(", "insn", "=", "get_insns", "(", ")", ";", "insn", ";", "insn", "=", "NEXT_INSN", "(", "insn", ")", ")", "if", "(", "INSN_P", "(", "insn", ")", "&&", "for_each_rtx", "(", "&", "PATTERN", "(", "insn", ")", ",", "get_some_local_dynamic_name_1", ",", "0", ")", ")", "return", "cfun", "->", "machine", "->", "some_ld_name", ";", "gcc_unreachable", "(", ")", ";", "}", ""], "natrual_language": ["Locate", "some", "local-dynamic", "symbol", "still", "in", "use", "by", "this", "function", "so", "that", "we", "can", "print", "its", "name", "in", "local-dynamic", "base", "patterns", "."], "TS_V_token": ["i386", "0"], "File": "i3863", "Func": "get_some_local_dynamic_name", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1852, "Length": 76, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "output_movedouble", "(", "rtx", "insn", "ATTRIBUTE_UNUSED", ",", "rtx", "operands", "[", "]", ",", "machine_mode", "mode", ")", "{", "rtx", "dst", "=", "operands", "[", "0", "]", ";", "rtx", "src", "=", "operands", "[", "1", "]", ";", "if", "(", "MEM_P", "(", "dst", ")", "&&", "GET_CODE", "(", "XEXP", "(", "dst", ",", "0", ")", ")", "==", "PRE_DEC", ")", "return", "\"mov.l\t%T1,%0\"", "\"\\n\"", "\"\tmov.l\t%1,%0\"", ";", "if", "(", "register_operand", "(", "dst", ",", "mode", ")", "&&", "register_operand", "(", "src", ",", "mode", ")", ")", "{", "if", "(", "REGNO", "(", "src", ")", "==", "MACH_REG", ")", "return", "\"sts\tmach,%S0\"", "\"\\n\"", "\"\tsts\tmacl,%R0\"", ";", "if", "(", "REGNO", "(", "src", ")", "+", "1", "==", "REGNO", "(", "dst", ")", ")", "return", "\"mov\t%T1,%T0\"", "\"\\n\"", "\"\tmov\t%1,%0\"", ";", "else", "return", "\"mov\t%1,%0\"", "\"\\n\"", "\"\tmov\t%T1,%T0\"", ";", "}", "else", "if", "(", "CONST_INT_P", "(", "src", ")", ")", "{", "if", "(", "INTVAL", "(", "src", ")", "<", "0", ")", "output_asm_insn", "(", "\"mov\t#-1,%S0\"", ",", "operands", ")", ";", "else", "output_asm_insn", "(", "\"mov\t#0,%S0\"", ",", "operands", ")", ";", "return", "\"mov\t%1,%R0\"", ";", "}", "else", "if", "(", "MEM_P", "(", "src", ")", ")", "{", "int", "ptrreg", "=", "-", "1", ";", "int", "dreg", "=", "REGNO", "(", "dst", ")", ";", "rtx", "inside", "=", "XEXP", "(", "src", ",", "0", ")", ";", "switch", "(", "GET_CODE", "(", "inside", ")", ")", "{", "case", "REG", ":", "ptrreg", "=", "REGNO", "(", "inside", ")", ";", "break", ";", "case", "SUBREG", ":", "ptrreg", "=", "subreg_regno", "(", "inside", ")", ";", "break", ";", "case", "PLUS", ":", "ptrreg", "=", "REGNO", "(", "XEXP", "(", "inside", ",", "0", ")", ")", ";", "gcc_assert", "(", "!", "REG_P", "(", "XEXP", "(", "inside", ",", "1", ")", ")", ")", ";", "break", ";", "case", "LABEL_REF", ":", "return", "\"mov.l\t%1,%0\"", "\"\\n\"", "\"\tmov.l\t%1+4,%T0\"", ";", "case", "POST_INC", ":", "return", "\"mov.l\t%1,%0\"", "\"\\n\"", "\"\tmov.l\t%1,%T0\"", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "if", "(", "dreg", "==", "ptrreg", ")", "return", "\"mov.l\t%T1,%T0\"", "\"\\n\"", "\"\tmov.l\t%1,%0\"", ";", "}", "return", "\"mov.l\t%1,%0\"", "\"\\n\"", "\"\tmov.l\t%T1,%T0\"", ";", "}", ""], "natrual_language": ["Return", "a", "sequence", "of", "instructions", "to", "perform", "DI", "or", "DF", "move", ".", "Since", "the", "SH", "can", "not", "move", "a", "DI", "or", "DF", "in", "one", "instruction", ",", "we", "have", "to", "take", "care", "when", "we", "see", "overlapping", "source", "and", "dest", "registers", "."], "TS_V_token": ["sh", "0", "1", "0", "\"mov.l\t%T1,%0\"", "\"\\n\"", "\"\tmov.l\t%1,%0\"", "\"sts\tmach,%S0\"", "\"\\n\"", "\"\tsts\tmacl,%R0\"", "1", "\"mov\t%T1,%T0\"", "\"\\n\"", "\"\tmov\t%1,%0\"", "\"mov\t%1,%0\"", "\"\\n\"", "\"\tmov\t%T1,%T0\"", "0", "\"mov\t#-1,%S0\"", "\"mov\t#0,%S0\"", "\"mov\t%1,%R0\"", "1", "0", "0", "1", "\"mov.l\t%1,%0\"", "\"\\n\"", "\"\tmov.l\t%1+4,%T0\"", "\"mov.l\t%1,%0\"", "\"\\n\"", "\"\tmov.l\t%1,%T0\"", "\"mov.l\t%T1,%T0\"", "\"\\n\"", "\"\tmov.l\t%1,%0\"", "\"mov.l\t%1,%0\"", "\"\\n\"", "\"\tmov.l\t%T1,%T0\""], "File": "sh", "Func": "output_movedouble", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1853, "Length": 289, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "rs6000_loop_align", "(", "rtx", "label", ")", "{", "basic_block", "bb", ";", "int", "ninsns", ";", "if", "(", "!", "can_override_loop_align", ")", "return", "align_loops_log", ";", "bb", "=", "BLOCK_FOR_INSN", "(", "label", ")", ";", "ninsns", "=", "num_loop_insns", "(", "bb", "->", "loop_father", ")", ";", "if", "(", "ninsns", ">", "4", "&&", "ninsns", "<=", "8", "&&", "(", "rs6000_cpu", "==", "PROCESSOR_POWER4", "||", "rs6000_cpu", "==", "PROCESSOR_POWER5", "||", "rs6000_cpu", "==", "PROCESSOR_POWER6", "||", "rs6000_cpu", "==", "PROCESSOR_POWER7", "||", "rs6000_cpu", "==", "PROCESSOR_POWER8", "||", "rs6000_cpu", "==", "PROCESSOR_POWER9", ")", ")", "return", "5", ";", "else", "return", "align_loops_log", ";", "}", ""], "natrual_language": ["Implement", "LOOP_ALIGN", "."], "TS_V_token": ["powerpcspe", "4", "8", "5"], "File": "powerpcspe", "Func": "rs6000_loop_align", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1854, "Length": 81, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "hasUnscaledLdStOffset", "(", "unsigned", "Opc", ")", "{", "switch", "(", "Opc", ")", "{", "default", ":", "return", "false", ";", "case", "AArch64", "::", "STURSi", ":", "case", "AArch64", "::", "STRSpre", ":", "case", "AArch64", "::", "STURDi", ":", "case", "AArch64", "::", "STRDpre", ":", "case", "AArch64", "::", "STURQi", ":", "case", "AArch64", "::", "STRQpre", ":", "case", "AArch64", "::", "STURBBi", ":", "case", "AArch64", "::", "STURHHi", ":", "case", "AArch64", "::", "STURWi", ":", "case", "AArch64", "::", "STRWpre", ":", "case", "AArch64", "::", "STURXi", ":", "case", "AArch64", "::", "STRXpre", ":", "case", "AArch64", "::", "LDURSi", ":", "case", "AArch64", "::", "LDRSpre", ":", "case", "AArch64", "::", "LDURDi", ":", "case", "AArch64", "::", "LDRDpre", ":", "case", "AArch64", "::", "LDURQi", ":", "case", "AArch64", "::", "LDRQpre", ":", "case", "AArch64", "::", "LDURWi", ":", "case", "AArch64", "::", "LDRWpre", ":", "case", "AArch64", "::", "LDURXi", ":", "case", "AArch64", "::", "LDRXpre", ":", "case", "AArch64", "::", "LDURSWi", ":", "case", "AArch64", "::", "LDURHHi", ":", "case", "AArch64", "::", "LDURBBi", ":", "case", "AArch64", "::", "LDURSBWi", ":", "case", "AArch64", "::", "LDURSHWi", ":", "return", "true", ";", "}", "}", ""], "natrual_language": ["Return", "true", "if", "it", "has", "an", "unscaled", "load/store", "offset", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::STURSi", "AArch64::STRSpre", "AArch64::STURDi", "AArch64::STRDpre", "AArch64::STURQi", "AArch64::STRQpre", "AArch64::STURBBi", "AArch64::STURHHi", "AArch64::STURWi", "AArch64::STRWpre", "AArch64::STURXi", "AArch64::STRXpre", "AArch64::LDURSi", "AArch64::LDRSpre", "AArch64::LDURDi", "AArch64::LDRDpre", "AArch64::LDURQi", "AArch64::LDRQpre", "AArch64::LDURWi", "AArch64::LDRWpre", "AArch64::LDURXi", "AArch64::LDRXpre", "AArch64::LDURSWi", "AArch64::LDURHHi", "AArch64::LDURBBi", "AArch64::LDURSBWi", "AArch64::LDURSHWi"], "File": "AArch64InstrInfo105", "Func": "hasUnscaledLdStOffset", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1855, "Length": 159, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "AArch64Subtarget", "::", "AArch64Subtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ",", "bool", "LittleEndian", ")", ":", "AArch64GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "ReserveXRegister", "(", "AArch64", "::", "GPR64commonRegClass", ".", "getNumRegs", "(", ")", ")", ",", "IsLittle", "(", "LittleEndian", ")", ",", "TargetTriple", "(", "TT", ")", ",", "FrameLowering", "(", ")", ",", "InstrInfo", "(", "initializeSubtargetDependencies", "(", "FS", ",", "CPU", ")", ")", ",", "TSInfo", "(", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{", "if", "(", "AArch64", "::", "isX18ReservedByDefault", "(", "TT", ")", ")", "ReserveXRegister", ".", "set", "(", "18", ")", ";", "CallLoweringInfo", ".", "reset", "(", "new", "AArch64CallLowering", "(", "*", "getTargetLowering", "(", ")", ")", ")", ";", "Legalizer", ".", "reset", "(", "new", "AArch64LegalizerInfo", "(", "*", "this", ")", ")", ";", "auto", "*", "RBI", "=", "new", "AArch64RegisterBankInfo", "(", "*", "getRegisterInfo", "(", ")", ")", ";", "InstSelector", ".", "reset", "(", "createAArch64InstructionSelector", "(", "*", "static_cast", "<", "const", "AArch64TargetMachine", "*", ">", "(", "&", "TM", ")", ",", "*", "this", ",", "*", "RBI", ")", ")", ";", "RegBankInfo", ".", "reset", "(", "RBI", ")", ";", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "AArch64::GPR64commonRegClass", "AArch64::isX18ReservedByDefault", "18", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64Subtarget10", "Func": "AArch64Subtarget", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1856, "Length": 177, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "LanaiAsmParser", "::", "MatchAndEmitInstruction", "(", "SMLoc", "IdLoc", ",", "unsigned", "&", "Opcode", ",", "OperandVector", "&", "Operands", ",", "MCStreamer", "&", "Out", ",", "uint64_t", "&", "ErrorInfo", ",", "bool", "MatchingInlineAsm", ")", "{", "MCInst", "Inst", ";", "SMLoc", "ErrorLoc", ";", "switch", "(", "MatchInstructionImpl", "(", "Operands", ",", "Inst", ",", "ErrorInfo", ",", "MatchingInlineAsm", ")", ")", "{", "case", "Match_Success", ":", "Out", ".", "EmitInstruction", "(", "Inst", ",", "SubtargetInfo", ")", ";", "Opcode", "=", "Inst", ".", "getOpcode", "(", ")", ";", "return", "false", ";", "case", "Match_MissingFeature", ":", "return", "Error", "(", "IdLoc", ",", "\"Instruction use requires option to be enabled\"", ")", ";", "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", "=", "(", "(", "LanaiOperand", "&", ")", "*", "Operands", "[", "ErrorInfo", "]", ")", ".", "getStartLoc", "(", ")", ";", "if", "(", "ErrorLoc", "==", "SMLoc", "(", ")", ")", "ErrorLoc", "=", "IdLoc", ";", "}", "return", "Error", "(", "ErrorLoc", ",", "\"Invalid operand for instruction\"", ")", ";", "}", "default", ":", "break", ";", "}", "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": ["Lanai", "Lanai", "\"Instruction use requires option to be enabled\"", "\"Unrecognized instruction mnemonic\"", "0U", "\"Too few operands for instruction\"", "Lanai", "\"Invalid operand for instruction\"", "\"Unknown match type detected!\""], "File": "LanaiAsmParser (2)", "Func": "MatchAndEmitInstruction", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1857, "Length": 178, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "arm_frame_pointer_required", "(", "void", ")", "{", "return", "(", "cfun", "->", "has_nonlocal_label", "||", "SUBTARGET_FRAME_POINTER_REQUIRED", "||", "(", "TARGET_ARM", "&&", "TARGET_APCS_FRAME", "&&", "!", "leaf_function_p", "(", ")", ")", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_FRAME_POINTER_REQUIRED", "."], "TS_V_token": ["arm"], "File": "arm4", "Func": "arm_frame_pointer_required", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1858, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "arm_reset_previous_fndecl", "(", "void", ")", "{", "arm_previous_fndecl", "=", "NULL_TREE", ";", "}", ""], "natrual_language": ["Invalidate", "arm_previous_fndecl", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "arm_reset_previous_fndecl", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1859, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "reset", "(", ")", "override", "{", "MappingSymbolCounter", "=", "0", ";", "State", "=", "EMS_None", ";", "MCELFStreamer", "::", "reset", "(", ")", ";", "}", ""], "natrual_language": ["Reset", "an", "existing", "scalar", "value", "for", "Def", "and", "a", "given", "Instance", "."], "TS_V_token": ["CSKY", "0"], "File": "CSKYELFStreamer1", "Func": "reset", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1860, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "setPreservesCFG", "(", ")", ";", "AU", ".", "addRequired", "<", "ScalarEvolutionWrapperPass", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "LoopInfoWrapperPass", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "DominatorTreeWrapperPass", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "LoopInfoWrapperPass", ">", "(", ")", ";", "FunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["Mips"], "File": "CheriLoopPointerDecanonicalize", "Func": "getAnalysisUsage", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1861, "Length": 60, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsTargetLowering", "::", "IsGlobalInSmallSection", "(", "GlobalValue", "*", "GV", ")", "{", "const", "TargetData", "*", "TD", "=", "getTargetData", "(", ")", ";", "const", "GlobalVariable", "*", "GVA", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GV", ")", ";", "if", "(", "!", "GVA", ")", "return", "false", ";", "const", "Type", "*", "Ty", "=", "GV", "->", "getType", "(", ")", "->", "getElementType", "(", ")", ";", "unsigned", "Size", "=", "TD", "->", "getTypePaddedSize", "(", "Ty", ")", ";", "if", "(", "GVA", "->", "hasInitializer", "(", ")", "&&", "GV", "->", "hasLocalLinkage", "(", ")", ")", "{", "Constant", "*", "C", "=", "GVA", "->", "getInitializer", "(", ")", ";", "const", "ConstantArray", "*", "CVA", "=", "dyn_cast", "<", "ConstantArray", ">", "(", "C", ")", ";", "if", "(", "CVA", "&&", "CVA", "->", "isCString", "(", ")", ")", "return", "false", ";", "}", "return", "IsInSmallSection", "(", "Size", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "this", "global", "address", "should", "be", "placed", "into", "small", "data/bss", "section", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsISelLowering87", "Func": "IsGlobalInSmallSection", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1862, "Length": 124, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "void", "EmitInstruction", "(", "const", "MCInst", "&", "Inst", ")", "{", "if", "(", "IsThumb", ")", "EmitThumbMappingSymbol", "(", ")", ";", "else", "EmitARMMappingSymbol", "(", ")", ";", "MCELFStreamer", "::", "EmitInstruction", "(", "Inst", ")", ";", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMELFStreamer1", "Func": "EmitInstruction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1863, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "std", "::", "unique_ptr", "<", "Cpu0Operand", ">", "CreateReg", "(", "unsigned", "RegNum", ",", "SMLoc", "S", ",", "SMLoc", "E", ")", "{", "auto", "Op", "=", "make_unique", "<", "Cpu0Operand", ">", "(", "k_Register", ")", ";", "Op", "->", "Reg", ".", "RegNum", "=", "RegNum", ";", "Op", "->", "StartLoc", "=", "S", ";", "Op", "->", "EndLoc", "=", "E", ";", "return", "Op", ";", "}", ""], "natrual_language": ["CreateReg", "-", "Allocate", "a", "single", "virtual", "register", "for", "the", "given", "type", "."], "TS_V_token": ["Cpu0", "Cpu0", "Cpu0"], "File": "Cpu0AsmParser", "Func": "CreateReg", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1864, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "arm_extract_valist_ptr", "(", "tree", "valist", ")", "{", "if", "(", "TREE_TYPE", "(", "valist", ")", "==", "error_mark_node", ")", "return", "error_mark_node", ";", "if", "(", "TARGET_AAPCS_BASED", ")", "{", "tree", "ap_field", "=", "TYPE_FIELDS", "(", "TREE_TYPE", "(", "valist", ")", ")", ";", "valist", "=", "build3", "(", "COMPONENT_REF", ",", "TREE_TYPE", "(", "ap_field", ")", ",", "valist", ",", "ap_field", ",", "NULL_TREE", ")", ";", "}", "return", "valist", ";", "}", ""], "natrual_language": ["Return", "an", "expression", "of", "type", "``", "void", "*", "''", "pointing", "to", "the", "next", "available", "argument", "in", "a", "variable-argument", "list", ".", "VALIST", "is", "the", "user-level", "va_list", "object", ",", "of", "type", "__builtin_va_list", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "arm_extract_valist_ptr", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1865, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "expand_vec_perm_identity", "(", "struct", "expand_vec_perm_d", "*", "d", ")", "{", "unsigned", "i", ",", "nelt", "=", "d", "->", "nelt", ";", "for", "(", "i", "=", "0", ";", "i", "<", "nelt", ";", "++", "i", ")", "if", "(", "d", "->", "perm", "[", "i", "]", "!=", "i", ")", "return", "false", ";", "if", "(", "!", "d", "->", "testing_p", ")", "emit_move_insn", "(", "d", "->", "target", ",", "d", "->", "op0", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Try", "to", "expand", "a", "no-op", "permutation", "."], "TS_V_token": ["ia64", "0"], "File": "ia64", "Func": "expand_vec_perm_identity", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1866, "Length": 68, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "findDeadCallerSavedReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "MBBI", ",", "const", "X86RegisterInfo", "*", "TRI", ",", "bool", "Is64Bit", ")", "{", "const", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "if", "(", "MF", "->", "callsEHReturn", "(", ")", ")", "return", "0", ";", "const", "TargetRegisterClass", "&", "AvailableRegs", "=", "*", "TRI", "->", "getGPRsForTailCall", "(", "*", "MF", ")", ";", "if", "(", "MBBI", "==", "MBB", ".", "end", "(", ")", ")", "return", "0", ";", "switch", "(", "MBBI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "0", ";", "case", "TargetOpcode", "::", "PATCHABLE_RET", ":", "case", "X86", "::", "RET", ":", "case", "X86", "::", "RETL", ":", "case", "X86", "::", "RETQ", ":", "case", "X86", "::", "RETIL", ":", "case", "X86", "::", "RETIQ", ":", "case", "X86", "::", "TCRETURNdi", ":", "case", "X86", "::", "TCRETURNri", ":", "case", "X86", "::", "TCRETURNmi", ":", "case", "X86", "::", "TCRETURNdi64", ":", "case", "X86", "::", "TCRETURNri64", ":", "case", "X86", "::", "TCRETURNmi64", ":", "case", "X86", "::", "EH_RETURN", ":", "case", "X86", "::", "EH_RETURN64", ":", "{", "SmallSet", "<", "uint16_t", ",", "8", ">", "Uses", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "MBBI", "->", "getNumOperands", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "MachineOperand", "&", "MO", "=", "MBBI", "->", "getOperand", "(", "i", ")", ";", "if", "(", "!", "MO", ".", "isReg", "(", ")", "||", "MO", ".", "isDef", "(", ")", ")", "continue", ";", "Register", "Reg", "=", "MO", ".", "getReg", "(", ")", ";", "if", "(", "!", "Reg", ")", "continue", ";", "for", "(", "MCRegAliasIterator", "AI", "(", "Reg", ",", "TRI", ",", "true", ")", ";", "AI", ".", "isValid", "(", ")", ";", "++", "AI", ")", "Uses", ".", "insert", "(", "*", "AI", ")", ";", "}", "for", "(", "auto", "CS", ":", "AvailableRegs", ")", "if", "(", "!", "Uses", ".", "count", "(", "CS", ")", "&&", "CS", "!=", "X86", "::", "RIP", "&&", "CS", "!=", "X86", "::", "RSP", "&&", "CS", "!=", "X86", "::", "ESP", ")", "return", "CS", ";", "}", "}", "return", "0", ";", "}", ""], "natrual_language": ["findDeadCallerSavedReg", "-", "Return", "a", "caller-saved", "register", "that", "is", "n't", "live", "when", "it", "reaches", "the", "``", "return", "''", "instruction", "."], "TS_V_token": ["X86", "X86", "0", "0", "0", "X86::RET", "X86::RETL", "X86::RETQ", "X86::RETIL", "X86::RETIQ", "X86::TCRETURNdi", "X86::TCRETURNri", "X86::TCRETURNmi", "X86::TCRETURNdi64", "X86::TCRETURNri64", "X86::TCRETURNmi64", "X86::EH_RETURN", "X86::EH_RETURN64", "8", "0", "X86::RIP", "X86::RSP", "X86::ESP", "0"], "File": "X86FrameLowering101", "Func": "findDeadCallerSavedReg", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1867, "Length": 306, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64LoadStoreOpt", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "Fn", ")", "{", "TII", "=", "static_cast", "<", "const", "AArch64InstrInfo", "*", ">", "(", "Fn", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "Fn", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "bool", "Modified", "=", "false", ";", "for", "(", "auto", "&", "MBB", ":", "Fn", ")", "Modified", "|=", "optimizeBlock", "(", "MBB", ")", ";", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64"], "File": "AArch64LoadStoreOptimizer18", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1868, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isFsqrtCheap", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "EVT", "VT", "=", "Op", ".", "getValueType", "(", ")", ";", "if", "(", "VT", ".", "getScalarType", "(", ")", "==", "MVT", "::", "f16", ")", "return", "true", ";", "if", "(", "DAG", ".", "getNodeIfExists", "(", "X86ISD", "::", "FRSQRT", ",", "DAG", ".", "getVTList", "(", "VT", ")", ",", "Op", ")", ")", "return", "false", ";", "if", "(", "VT", ".", "isVector", "(", ")", ")", "return", "Subtarget", ".", "hasFastVectorFSQRT", "(", ")", ";", "return", "Subtarget", ".", "hasFastScalarFSQRT", "(", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "SQRT", "(", "X", ")", "should", "n't", "be", "replaced", "with", "X", "*", "RSQRT", "(", "X", ")", "."], "TS_V_token": ["X86", "X86", "MVT::f16", "X86ISD::FRSQRT"], "File": "X86ISelLowering100", "Func": "isFsqrtCheap", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1869, "Length": 84, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "ARMTargetLowering", "::", "LowerOperation", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Don't know how to custom lower this!\"", ")", ";", "case", "ISD", "::", "ConstantPool", ":", "return", "LowerConstantPool", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "GlobalAddress", ":", "return", "Subtarget", "->", "isTargetDarwin", "(", ")", "?", "LowerGlobalAddressDarwin", "(", "Op", ",", "DAG", ")", ":", "LowerGlobalAddressELF", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "GlobalTLSAddress", ":", "return", "LowerGlobalTLSAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SELECT_CC", ":", "return", "LowerSELECT_CC", "(", "Op", ",", "DAG", ",", "Subtarget", ")", ";", "case", "ISD", "::", "BR_CC", ":", "return", "LowerBR_CC", "(", "Op", ",", "DAG", ",", "Subtarget", ")", ";", "case", "ISD", "::", "BR_JT", ":", "return", "LowerBR_JT", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "DYNAMIC_STACKALLOC", ":", "return", "LowerDYNAMIC_STACKALLOC", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "VASTART", ":", "return", "LowerVASTART", "(", "Op", ",", "DAG", ",", "VarArgsFrameIndex", ")", ";", "case", "ISD", "::", "SINT_TO_FP", ":", "case", "ISD", "::", "UINT_TO_FP", ":", "return", "LowerINT_TO_FP", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "FP_TO_SINT", ":", "case", "ISD", "::", "FP_TO_UINT", ":", "return", "LowerFP_TO_INT", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "FCOPYSIGN", ":", "return", "LowerFCOPYSIGN", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "RETURNADDR", ":", "break", ";", "case", "ISD", "::", "FRAMEADDR", ":", "return", "LowerFRAMEADDR", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "GLOBAL_OFFSET_TABLE", ":", "return", "LowerGLOBAL_OFFSET_TABLE", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "INTRINSIC_VOID", ":", "case", "ISD", "::", "INTRINSIC_W_CHAIN", ":", "return", "LowerINTRINSIC_W_CHAIN", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "INTRINSIC_WO_CHAIN", ":", "return", "LowerINTRINSIC_WO_CHAIN", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BIT_CONVERT", ":", "return", "ExpandBIT_CONVERT", "(", "Op", ".", "getNode", "(", ")", ",", "DAG", ")", ";", "case", "ISD", "::", "SHL", ":", "case", "ISD", "::", "SRL", ":", "case", "ISD", "::", "SRA", ":", "return", "LowerShift", "(", "Op", ".", "getNode", "(", ")", ",", "DAG", ",", "Subtarget", ")", ";", "case", "ISD", "::", "VSETCC", ":", "return", "LowerVSETCC", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BUILD_VECTOR", ":", "return", "LowerBUILD_VECTOR", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "VECTOR_SHUFFLE", ":", "return", "LowerVECTOR_SHUFFLE", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SCALAR_TO_VECTOR", ":", "return", "LowerSCALAR_TO_VECTOR", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "EXTRACT_VECTOR_ELT", ":", "return", "LowerEXTRACT_VECTOR_ELT", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "CONCAT_VECTORS", ":", "return", "LowerCONCAT_VECTORS", "(", "Op", ",", "DAG", ")", ";", "}", "return", "SDValue", "(", ")", ";", "}", ""], "natrual_language": ["LowerOperation", "-", "Provide", "custom", "lowering", "hooks", "for", "some", "operations", "."], "TS_V_token": ["ARM", "ARM", "\"Don't know how to custom lower this!\"", "ISD::ConstantPool", "ISD::GlobalAddress", "ISD::GlobalTLSAddress", "ISD::SELECT_CC", "ISD::BR_CC", "ISD::BR_JT", "ISD::DYNAMIC_STACKALLOC", "ISD::VASTART", "ISD::SINT_TO_FP", "ISD::UINT_TO_FP", "ISD::FP_TO_SINT", "ISD::FP_TO_UINT", "ISD::FCOPYSIGN", "ISD::RETURNADDR", "ISD::FRAMEADDR", "ISD::GLOBAL_OFFSET_TABLE", "ISD::INTRINSIC_VOID", "ISD::INTRINSIC_W_CHAIN", "ISD::INTRINSIC_WO_CHAIN", "ISD::BIT_CONVERT", "ISD::SHL", "ISD::SRL", "ISD::SRA", "ISD::VSETCC", "ISD::BUILD_VECTOR", "ISD::VECTOR_SHUFFLE", "ISD::SCALAR_TO_VECTOR", "ISD::EXTRACT_VECTOR_ELT", "ISD::CONCAT_VECTORS"], "File": "ARMISelLowering33", "Func": "LowerOperation", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1870, "Length": 396, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetTransformInfo", "X86TargetMachine", "::", "getTargetTransformInfo", "(", "const", "Function", "&", "F", ")", "const", "{", "return", "TargetTransformInfo", "(", "X86TTIImpl", "(", "this", ",", "F", ")", ")", ";", "}", ""], "natrual_language": ["Get", "a", "TargetTransformInfo", "implementation", "for", "the", "target", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86TargetMachine58", "Func": "getTargetTransformInfo", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1871, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ConstantPool", "::", "empty", "(", ")", "{", "return", "Entries", ".", "empty", "(", ")", ";", "}", ""], "natrual_language": ["Determine", "whether", "this", "version", "information", "is", "empty", "(", "e.g.", ",", "all", "version", "components", "are", "zero", ")", "."], "TS_V_token": ["ARM"], "File": "ARMTargetStreamer10", "Func": "empty", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1872, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "GeneralShuffle", "::", "add", "(", "SDValue", "Op", ",", "unsigned", "Elem", ")", "{", "unsigned", "BytesPerElement", "=", "VT", ".", "getVectorElementType", "(", ")", ".", "getStoreSize", "(", ")", ";", "EVT", "FromVT", "=", "Op", ".", "getNode", "(", ")", "?", "Op", ".", "getValueType", "(", ")", ":", "VT", ";", "unsigned", "FromBytesPerElement", "=", "FromVT", ".", "getVectorElementType", "(", ")", ".", "getStoreSize", "(", ")", ";", "if", "(", "FromBytesPerElement", "<", "BytesPerElement", ")", "return", "false", ";", "unsigned", "Byte", "=", "(", "(", "Elem", "*", "FromBytesPerElement", ")", "%", "SystemZ", "::", "VectorBytes", "+", "(", "FromBytesPerElement", "-", "BytesPerElement", ")", ")", ";", "while", "(", "Op", ".", "getNode", "(", ")", ")", "{", "if", "(", "Op", ".", "getOpcode", "(", ")", "==", "ISD", "::", "BITCAST", ")", "Op", "=", "Op", ".", "getOperand", "(", "0", ")", ";", "else", "if", "(", "Op", ".", "getOpcode", "(", ")", "==", "ISD", "::", "VECTOR_SHUFFLE", "&&", "Op", ".", "hasOneUse", "(", ")", ")", "{", "SmallVector", "<", "int", ",", "SystemZ", "::", "VectorBytes", ">", "OpBytes", ";", "getVPermMask", "(", "cast", "<", "ShuffleVectorSDNode", ">", "(", "Op", ")", ",", "OpBytes", ")", ";", "int", "NewByte", ";", "if", "(", "!", "getShuffleInput", "(", "OpBytes", ",", "Byte", ",", "BytesPerElement", ",", "NewByte", ")", ")", "break", ";", "if", "(", "NewByte", "<", "0", ")", "{", "addUndef", "(", ")", ";", "return", "true", ";", "}", "Op", "=", "Op", ".", "getOperand", "(", "unsigned", "(", "NewByte", ")", "/", "SystemZ", "::", "VectorBytes", ")", ";", "Byte", "=", "unsigned", "(", "NewByte", ")", "%", "SystemZ", "::", "VectorBytes", ";", "}", "else", "if", "(", "Op", ".", "isUndef", "(", ")", ")", "{", "addUndef", "(", ")", ";", "return", "true", ";", "}", "else", "break", ";", "}", "unsigned", "OpNo", "=", "0", ";", "for", "(", ";", "OpNo", "<", "Ops", ".", "size", "(", ")", ";", "++", "OpNo", ")", "if", "(", "Ops", "[", "OpNo", "]", "==", "Op", ")", "break", ";", "if", "(", "OpNo", "==", "Ops", ".", "size", "(", ")", ")", "Ops", ".", "push_back", "(", "Op", ")", ";", "unsigned", "Base", "=", "OpNo", "*", "SystemZ", "::", "VectorBytes", "+", "Byte", ";", "for", "(", "unsigned", "I", "=", "0", ";", "I", "<", "BytesPerElement", ";", "++", "I", ")", "Bytes", ".", "push_back", "(", "Base", "+", "I", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Add", "a", "string", "to", "the", "builder", "."], "TS_V_token": ["SystemZ", "SystemZ::VectorBytes", "ISD::BITCAST", "0", "ISD::VECTOR_SHUFFLE", "SystemZ::VectorBytes", "0", "SystemZ::VectorBytes", "SystemZ::VectorBytes", "0", "SystemZ::VectorBytes", "0"], "File": "SystemZISelLowering104", "Func": "add", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1873, "Length": 327, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_emit_store_exclusive", "(", "machine_mode", "mode", ",", "rtx", "bval", ",", "rtx", "rval", ",", "rtx", "mem", ",", "rtx", "model_rtx", ")", "{", "rtx", "(", "*", "gen", ")", "(", "rtx", ",", "rtx", ",", "rtx", ",", "rtx", ")", ";", "switch", "(", "mode", ")", "{", "case", "QImode", ":", "gen", "=", "gen_aarch64_store_exclusiveqi", ";", "break", ";", "case", "HImode", ":", "gen", "=", "gen_aarch64_store_exclusivehi", ";", "break", ";", "case", "SImode", ":", "gen", "=", "gen_aarch64_store_exclusivesi", ";", "break", ";", "case", "DImode", ":", "gen", "=", "gen_aarch64_store_exclusivedi", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "emit_insn", "(", "gen", "(", "bval", ",", "rval", ",", "mem", ",", "model_rtx", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "store", "exclusive", "."], "TS_V_token": ["aarch64"], "File": "aarch642", "Func": "aarch64_emit_store_exclusive", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1874, "Length": 98, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86PassConfig", "::", "addILPOpts", "(", ")", "{", "addPass", "(", "&", "EarlyIfConverterID", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Add", "passes", "that", "optimize", "instruction", "level", "parallelism", "for", "out-of-order", "targets", "."], "TS_V_token": ["X86", "X86"], "File": "X86TargetMachine", "Func": "addILPOpts", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1875, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "void", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "printInstruction", "(", "MI", ")", ";", "OutStreamer", ".", "AddBlankLine", "(", ")", ";", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["Sparc"], "File": "SparcAsmPrinter28", "Func": "EmitInstruction", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1876, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsTargetLowering", "::", "isFPImmLegal", "(", "const", "APFloat", "&", "Imm", ",", "EVT", "VT", ",", "bool", "ForCodeSize", ")", "const", "{", "if", "(", "VT", "!=", "MVT", "::", "f32", "&&", "VT", "!=", "MVT", "::", "f64", ")", "return", "false", ";", "if", "(", "Imm", ".", "isNegZero", "(", ")", ")", "return", "false", ";", "return", "Imm", ".", "isZero", "(", ")", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "can", "instruction", "select", "the", "specified", "FP", "immediate", "natively", "."], "TS_V_token": ["Mips", "Mips", "MVT::f32", "MVT::f64"], "File": "MipsISelLowering (2)4", "Func": "isFPImmLegal", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1877, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCRegisterInfo", "::", "isFrameOffsetLegal", "(", "const", "MachineInstr", "*", "MI", ",", "int64_t", "Offset", ")", "const", "{", "unsigned", "FIOperandNum", "=", "0", ";", "while", "(", "!", "MI", "->", "getOperand", "(", "FIOperandNum", ")", ".", "isFI", "(", ")", ")", "{", "++", "FIOperandNum", ";", "assert", "(", "FIOperandNum", "<", "MI", "->", "getNumOperands", "(", ")", "&&", "\"Instr doesn't have FrameIndex operand!\"", ")", ";", "}", "unsigned", "OffsetOperandNo", "=", "getOffsetONFromFION", "(", "*", "MI", ",", "FIOperandNum", ")", ";", "Offset", "+=", "MI", "->", "getOperand", "(", "OffsetOperandNo", ")", ".", "getImm", "(", ")", ";", "return", "MI", "->", "getOpcode", "(", ")", "==", "PPC", "::", "DBG_VALUE", "||", "MI", "->", "getOpcode", "(", ")", "==", "TargetOpcode", "::", "STACKMAP", "||", "MI", "->", "getOpcode", "(", ")", "==", "TargetOpcode", "::", "PATCHPOINT", "||", "(", "isInt", "<", "16", ">", "(", "Offset", ")", "&&", "(", "!", "usesIXAddr", "(", "*", "MI", ")", "||", "(", "Offset", "&", "3", ")", "==", "0", ")", ")", ";", "}", ""], "natrual_language": ["Determine", "whether", "a", "given", "base", "register", "plus", "offset", "immediate", "is", "encodable", "to", "resolve", "a", "frame", "index", "."], "TS_V_token": ["PowerPC", "PPC", "0", "\"Instr doesn't have FrameIndex operand!\"", "PPC::DBG_VALUE", "16", "3", "0"], "File": "PPCRegisterInfo22", "Func": "isFrameOffsetLegal", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1878, "Length": 135, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMAsmParser", "::", "MatchAndEmitInstruction", "(", "SMLoc", "IDLoc", ",", "unsigned", "&", "Opcode", ",", "SmallVectorImpl", "<", "MCParsedAsmOperand", "*", ">", "&", "Operands", ",", "MCStreamer", "&", "Out", ",", "unsigned", "&", "ErrorInfo", ",", "bool", "MatchingInlineAsm", ")", "{", "MCInst", "Inst", ";", "unsigned", "MatchResult", ";", "MatchResult", "=", "MatchInstructionImpl", "(", "Operands", ",", "Inst", ",", "ErrorInfo", ",", "MatchingInlineAsm", ")", ";", "switch", "(", "MatchResult", ")", "{", "default", ":", "break", ";", "case", "Match_Success", ":", "if", "(", "validateInstruction", "(", "Inst", ",", "Operands", ")", ")", "{", "forwardITPosition", "(", ")", ";", "return", "true", ";", "}", "while", "(", "processInstruction", "(", "Inst", ",", "Operands", ")", ")", ";", "forwardITPosition", "(", ")", ";", "if", "(", "Inst", ".", "getOpcode", "(", ")", "==", "ARM", "::", "ITasm", ")", "return", "false", ";", "Inst", ".", "setLoc", "(", "IDLoc", ")", ";", "Out", ".", "EmitInstruction", "(", "Inst", ")", ";", "return", "false", ";", "case", "Match_MissingFeature", ":", "{", "assert", "(", "ErrorInfo", "&&", "\"Unknown missing feature!\"", ")", ";", "std", "::", "string", "Msg", "=", "\"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_InvalidOperand", ":", "{", "SMLoc", "ErrorLoc", "=", "IDLoc", ";", "if", "(", "ErrorInfo", "!=", "~", "0U", ")", "{", "if", "(", "ErrorInfo", ">=", "Operands", ".", "size", "(", ")", ")", "return", "Error", "(", "IDLoc", ",", "\"too few operands for instruction\"", ")", ";", "ErrorLoc", "=", "(", "(", "ARMOperand", "*", ")", "Operands", "[", "ErrorInfo", "]", ")", "->", "getStartLoc", "(", ")", ";", "if", "(", "ErrorLoc", "==", "SMLoc", "(", ")", ")", "ErrorLoc", "=", "IDLoc", ";", "}", "return", "Error", "(", "ErrorLoc", ",", "\"invalid operand for instruction\"", ")", ";", "}", "case", "Match_MnemonicFail", ":", "return", "Error", "(", "IDLoc", ",", "\"invalid instruction\"", ",", "(", "(", "ARMOperand", "*", ")", "Operands", "[", "0", "]", ")", "->", "getLocRange", "(", ")", ")", ";", "case", "Match_RequiresNotITBlock", ":", "return", "Error", "(", "IDLoc", ",", "\"flag setting instruction only valid outside IT block\"", ")", ";", "case", "Match_RequiresITBlock", ":", "return", "Error", "(", "IDLoc", ",", "\"instruction only valid inside IT block\"", ")", ";", "case", "Match_RequiresV6", ":", "return", "Error", "(", "IDLoc", ",", "\"instruction variant requires ARMv6 or later\"", ")", ";", "case", "Match_RequiresThumb2", ":", "return", "Error", "(", "IDLoc", ",", "\"instruction variant requires Thumb2\"", ")", ";", "case", "Match_ImmRange0_15", ":", "{", "SMLoc", "ErrorLoc", "=", "(", "(", "ARMOperand", "*", ")", "Operands", "[", "ErrorInfo", "]", ")", "->", "getStartLoc", "(", ")", ";", "if", "(", "ErrorLoc", "==", "SMLoc", "(", ")", ")", "ErrorLoc", "=", "IDLoc", ";", "return", "Error", "(", "ErrorLoc", ",", "\"immediate operand must be in the range [0,15]\"", ")", ";", "}", "}", "llvm_unreachable", "(", "\"Implement any new match types added!\"", ")", ";", "}", ""], "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": ["ARM", "ARM", "ARM::ITasm", "\"Unknown missing feature!\"", "\"instruction requires:\"", "1", "0", "8", "1", "\" \"", "1", "0U", "\"too few operands for instruction\"", "ARM", "\"invalid operand for instruction\"", "\"invalid instruction\"", "ARM", "0", "\"flag setting instruction only valid outside IT block\"", "\"instruction only valid inside IT block\"", "\"instruction variant requires ARMv6 or later\"", "\"instruction variant requires Thumb2\"", "ARM", "\"immediate operand must be in the range [0,15]\"", "\"Implement any new match types added!\""], "File": "ARMAsmParser", "Func": "MatchAndEmitInstruction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1879, "Length": 403, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "update_set_flags", "(", "rtx", "x", ",", "struct", "reg_flags", "*", "pflags", ")", "{", "rtx", "src", "=", "SET_SRC", "(", "x", ")", ";", "switch", "(", "GET_CODE", "(", "src", ")", ")", "{", "case", "CALL", ":", "return", ";", "case", "IF_THEN_ELSE", ":", "return", ";", "default", ":", "if", "(", "COMPARISON_P", "(", "src", ")", "&&", "SCALAR_FLOAT_MODE_P", "(", "GET_MODE", "(", "XEXP", "(", "src", ",", "0", ")", ")", ")", ")", "pflags", "->", "is_fp", "=", "1", ";", "else", "if", "(", "GET_CODE", "(", "src", ")", "==", "AND", ")", "pflags", "->", "is_and", "=", "1", ";", "else", "if", "(", "GET_CODE", "(", "src", ")", "==", "IOR", ")", "pflags", "->", "is_or", "=", "1", ";", "break", ";", "}", "}", ""], "natrual_language": ["Examine", "X", ",", "which", "is", "a", "SET", "rtx", ",", "and", "update", "the", "flags", ",", "the", "predicate", ",", "and", "the", "condition", ",", "stored", "in", "*", "PFLAGS", ",", "*", "PPRED", "and", "*", "PCOND", "."], "TS_V_token": ["ia64", "0", "1", "1", "1"], "File": "ia64", "Func": "update_set_flags", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1880, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "ix86_build_builtin_va_list", "(", "void", ")", "{", "if", "(", "TARGET_64BIT", ")", "{", "sysv_va_list_type_node", "=", "ix86_build_builtin_va_list_64", "(", ")", ";", "tree", "char_ptr_type", "=", "build_pointer_type", "(", "char_type_node", ")", ";", "tree", "attr", "=", "tree_cons", "(", "get_identifier", "(", "\"ms_abi va_list\"", ")", ",", "NULL_TREE", ",", "TYPE_ATTRIBUTES", "(", "char_ptr_type", ")", ")", ";", "ms_va_list_type_node", "=", "build_type_attribute_variant", "(", "char_ptr_type", ",", "attr", ")", ";", "return", "(", "(", "ix86_abi", "==", "MS_ABI", ")", "?", "ms_va_list_type_node", ":", "sysv_va_list_type_node", ")", ";", "}", "else", "{", "return", "build_pointer_type", "(", "char_type_node", ")", ";", "}", "}", ""], "natrual_language": ["Create", "the", "va_list", "data", "type", "."], "TS_V_token": ["i386", "\"ms_abi va_list\""], "File": "i386", "Func": "ix86_build_builtin_va_list", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1881, "Length": 77, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsCodeEmitter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "JTI", "=", "(", "(", "MipsTargetMachine", "&", ")", "MF", ".", "getTarget", "(", ")", ")", ".", "getJITInfo", "(", ")", ";", "II", "=", "(", "(", "const", "MipsTargetMachine", "&", ")", "MF", ".", "getTarget", "(", ")", ")", ".", "getInstrInfo", "(", ")", ";", "TD", "=", "(", "(", "const", "MipsTargetMachine", "&", ")", "MF", ".", "getTarget", "(", ")", ")", ".", "getTargetData", "(", ")", ";", "Subtarget", "=", "&", "TM", ".", "getSubtarget", "<", "MipsSubtarget", ">", "(", ")", ";", "MCPEs", "=", "&", "MF", ".", "getConstantPool", "(", ")", "->", "getConstants", "(", ")", ";", "MJTEs", "=", "0", ";", "if", "(", "MF", ".", "getJumpTableInfo", "(", ")", ")", "MJTEs", "=", "&", "MF", ".", "getJumpTableInfo", "(", ")", "->", "getJumpTables", "(", ")", ";", "JTI", "->", "Initialize", "(", "MF", ",", "IsPIC", ")", ";", "MCE", ".", "setModuleInfo", "(", "&", "getAnalysis", "<", "MachineModuleInfo", ">", "(", ")", ")", ";", "do", "{", "DEBUG", "(", "errs", "(", ")", "<<", "\"JITTing function '\"", "<<", "MF", ".", "getFunction", "(", ")", "->", "getName", "(", ")", "<<", "\"'\\n\"", ")", ";", "MCE", ".", "startFunction", "(", "MF", ")", ";", "for", "(", "MachineFunction", "::", "iterator", "MBB", "=", "MF", ".", "begin", "(", ")", ",", "E", "=", "MF", ".", "end", "(", ")", ";", "MBB", "!=", "E", ";", "++", "MBB", ")", "{", "MCE", ".", "StartMachineBasicBlock", "(", "MBB", ")", ";", "for", "(", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", "->", "begin", "(", ")", ",", "E", "=", "MBB", "->", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "emitInstruction", "(", "*", "I", ")", ";", "}", "}", "while", "(", "MCE", ".", "finishFunction", "(", "MF", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "0", "\"JITTing function '\"", "\"'\\n\""], "File": "MipsCodeEmitter14", "Func": "runOnMachineFunction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1882, "Length": 254, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "aarch_mm_needs_acquire", "(", "rtx", "const_int", ")", "{", "enum", "memmodel", "model", "=", "memmodel_from_int", "(", "INTVAL", "(", "const_int", ")", ")", ";", "return", "!", "(", "is_mm_relaxed", "(", "model", ")", "||", "is_mm_consume", "(", "model", ")", "||", "is_mm_release", "(", "model", ")", ")", ";", "}", ""], "natrual_language": ["Return", "non-zero", "if", "the", "RTX", "representing", "a", "memory", "model", "is", "a", "memory", "model", "that", "needs", "acquire", "semantics", "."], "TS_V_token": ["arm"], "File": "aarch-common", "Func": "aarch_mm_needs_acquire", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1883, "Length": 39, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64PagerandoOptimizer", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "auto", "&", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "if", "(", "!", "F", ".", "isPagerando", "(", ")", "||", "skipFunction", "(", "F", ")", ")", "{", "return", "false", ";", "}", "auto", "BinPrefix", "=", "F", ".", "getSectionPrefix", "(", ")", ".", "getValue", "(", ")", ";", "std", "::", "vector", "<", "MachineInstr", "*", ">", "Worklist", ";", "for", "(", "auto", "&", "BB", ":", "MF", ")", "{", "for", "(", "auto", "&", "MI", ":", "BB", ")", "{", "if", "(", "isIntraBin", "(", "MI", ",", "BinPrefix", ")", ")", "Worklist", ".", "push_back", "(", "&", "MI", ")", ";", "}", "}", "for", "(", "auto", "*", "MI", ":", "Worklist", ")", "optimizeCalls", "(", "MI", ")", ";", "return", "!", "Worklist", ".", "empty", "(", ")", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64PagerandoOptimizer", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1884, "Length": 120, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SICDAGToDAGISel", "::", "Select", "(", "SDNode", "*", "Node", ")", "{", "unsigned", "Opcode", "=", "Node", "->", "getOpcode", "(", ")", ";", "DEBUG", "(", "errs", "(", ")", "<<", "\"Selecting: \"", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "errs", "(", ")", "<<", "\"\\n\"", ")", ";", "if", "(", "Node", "->", "isMachineOpcode", "(", ")", ")", "{", "DEBUG", "(", "errs", "(", ")", "<<", "\"== \"", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "errs", "(", ")", "<<", "\"\\n\"", ")", ";", "Node", "->", "setNodeId", "(", "-", "1", ")", ";", "return", ";", "}", "if", "(", "trySelect", "(", "Node", ")", ")", "return", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "GLOBAL_OFFSET_TABLE", ":", "ReplaceNode", "(", "Node", ",", "getGlobalBaseReg", "(", ")", ")", ";", "return", ";", "}", "SelectCode", "(", "Node", ")", ";", "}", ""], "natrual_language": ["Main", "hook", "for", "targets", "to", "transform", "nodes", "into", "machine", "nodes", "."], "TS_V_token": ["SIC", "SIC", "\"Selecting: \"", "\"\\n\"", "\"== \"", "\"\\n\"", "1", "ISD::GLOBAL_OFFSET_TABLE"], "File": "SICISelDAGToDAG", "Func": "Select", "Target": "SIC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1885, "Length": 124, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMTargetLowering", "::", "ReplaceNodeResults", "(", "SDNode", "*", "N", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "Results", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SDValue", "Res", ";", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Don't know how to custom expand this!\"", ")", ";", "case", "ISD", "::", "BITCAST", ":", "Res", "=", "ExpandBITCAST", "(", "N", ",", "DAG", ")", ";", "break", ";", "case", "ISD", "::", "SIGN_EXTEND", ":", "case", "ISD", "::", "ZERO_EXTEND", ":", "Res", "=", "ExpandVectorExtension", "(", "N", ",", "DAG", ")", ";", "break", ";", "case", "ISD", "::", "SRL", ":", "case", "ISD", "::", "SRA", ":", "Res", "=", "Expand64BitShift", "(", "N", ",", "DAG", ",", "Subtarget", ")", ";", "break", ";", "case", "ISD", "::", "READCYCLECOUNTER", ":", "ReplaceREADCYCLECOUNTER", "(", "N", ",", "Results", ",", "DAG", ",", "Subtarget", ")", ";", "return", ";", "case", "ISD", "::", "ATOMIC_LOAD_ADD", ":", "ReplaceATOMIC_OP_64", "(", "N", ",", "Results", ",", "DAG", ",", "ARMISD", "::", "ATOMADD64_DAG", ")", ";", "return", ";", "case", "ISD", "::", "ATOMIC_LOAD_AND", ":", "ReplaceATOMIC_OP_64", "(", "N", ",", "Results", ",", "DAG", ",", "ARMISD", "::", "ATOMAND64_DAG", ")", ";", "return", ";", "case", "ISD", "::", "ATOMIC_LOAD_NAND", ":", "ReplaceATOMIC_OP_64", "(", "N", ",", "Results", ",", "DAG", ",", "ARMISD", "::", "ATOMNAND64_DAG", ")", ";", "return", ";", "case", "ISD", "::", "ATOMIC_LOAD_OR", ":", "ReplaceATOMIC_OP_64", "(", "N", ",", "Results", ",", "DAG", ",", "ARMISD", "::", "ATOMOR64_DAG", ")", ";", "return", ";", "case", "ISD", "::", "ATOMIC_LOAD_SUB", ":", "ReplaceATOMIC_OP_64", "(", "N", ",", "Results", ",", "DAG", ",", "ARMISD", "::", "ATOMSUB64_DAG", ")", ";", "return", ";", "case", "ISD", "::", "ATOMIC_LOAD_XOR", ":", "ReplaceATOMIC_OP_64", "(", "N", ",", "Results", ",", "DAG", ",", "ARMISD", "::", "ATOMXOR64_DAG", ")", ";", "return", ";", "case", "ISD", "::", "ATOMIC_SWAP", ":", "ReplaceATOMIC_OP_64", "(", "N", ",", "Results", ",", "DAG", ",", "ARMISD", "::", "ATOMSWAP64_DAG", ")", ";", "return", ";", "case", "ISD", "::", "ATOMIC_CMP_SWAP", ":", "ReplaceATOMIC_OP_64", "(", "N", ",", "Results", ",", "DAG", ",", "ARMISD", "::", "ATOMCMPXCHG64_DAG", ")", ";", "return", ";", "case", "ISD", "::", "ATOMIC_LOAD_MIN", ":", "ReplaceATOMIC_OP_64", "(", "N", ",", "Results", ",", "DAG", ",", "ARMISD", "::", "ATOMMIN64_DAG", ")", ";", "return", ";", "case", "ISD", "::", "ATOMIC_LOAD_UMIN", ":", "ReplaceATOMIC_OP_64", "(", "N", ",", "Results", ",", "DAG", ",", "ARMISD", "::", "ATOMUMIN64_DAG", ")", ";", "return", ";", "case", "ISD", "::", "ATOMIC_LOAD_MAX", ":", "ReplaceATOMIC_OP_64", "(", "N", ",", "Results", ",", "DAG", ",", "ARMISD", "::", "ATOMMAX64_DAG", ")", ";", "return", ";", "case", "ISD", "::", "ATOMIC_LOAD_UMAX", ":", "ReplaceATOMIC_OP_64", "(", "N", ",", "Results", ",", "DAG", ",", "ARMISD", "::", "ATOMUMAX64_DAG", ")", ";", "return", ";", "}", "if", "(", "Res", ".", "getNode", "(", ")", ")", "Results", ".", "push_back", "(", "Res", ")", ";", "}", ""], "natrual_language": ["ReplaceNodeResults", "-", "Replace", "the", "results", "of", "node", "with", "an", "illegal", "result", "type", "with", "new", "values", "built", "out", "of", "custom", "code", "."], "TS_V_token": ["ARM", "ARM", "\"Don't know how to custom expand this!\"", "ISD::BITCAST", "ISD::SIGN_EXTEND", "ISD::ZERO_EXTEND", "ISD::SRL", "ISD::SRA", "ISD::READCYCLECOUNTER", "ISD::ATOMIC_LOAD_ADD", "ARMISD::ATOMADD64_DAG", "ISD::ATOMIC_LOAD_AND", "ARMISD::ATOMAND64_DAG", "ISD::ATOMIC_LOAD_NAND", "ARMISD::ATOMNAND64_DAG", "ISD::ATOMIC_LOAD_OR", "ARMISD::ATOMOR64_DAG", "ISD::ATOMIC_LOAD_SUB", "ARMISD::ATOMSUB64_DAG", "ISD::ATOMIC_LOAD_XOR", "ARMISD::ATOMXOR64_DAG", "ISD::ATOMIC_SWAP", "ARMISD::ATOMSWAP64_DAG", "ISD::ATOMIC_CMP_SWAP", "ARMISD::ATOMCMPXCHG64_DAG", "ISD::ATOMIC_LOAD_MIN", "ARMISD::ATOMMIN64_DAG", "ISD::ATOMIC_LOAD_UMIN", "ARMISD::ATOMUMIN64_DAG", "ISD::ATOMIC_LOAD_MAX", "ARMISD::ATOMMAX64_DAG", "ISD::ATOMIC_LOAD_UMAX", "ARMISD::ATOMUMAX64_DAG"], "File": "ARMISelLowering (2)1", "Func": "ReplaceNodeResults", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1886, "Length": 376, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseInstrInfo", "::", "areLoadsFromSameBasePtr", "(", "SDNode", "*", "Load1", ",", "SDNode", "*", "Load2", ",", "int64_t", "&", "Offset1", ",", "int64_t", "&", "Offset2", ")", "const", "{", "if", "(", "Subtarget", ".", "isThumb1Only", "(", ")", ")", "return", "false", ";", "if", "(", "!", "Load1", "->", "isMachineOpcode", "(", ")", "||", "!", "Load2", "->", "isMachineOpcode", "(", ")", ")", "return", "false", ";", "switch", "(", "Load1", "->", "getMachineOpcode", "(", ")", ")", "{", "default", ":", "return", "false", ";", "case", "ARM", "::", "LDRi12", ":", "case", "ARM", "::", "LDRBi12", ":", "case", "ARM", "::", "LDRD", ":", "case", "ARM", "::", "LDRH", ":", "case", "ARM", "::", "LDRSB", ":", "case", "ARM", "::", "LDRSH", ":", "case", "ARM", "::", "VLDRD", ":", "case", "ARM", "::", "VLDRS", ":", "case", "ARM", "::", "t2LDRi8", ":", "case", "ARM", "::", "t2LDRDi8", ":", "case", "ARM", "::", "t2LDRSHi8", ":", "case", "ARM", "::", "t2LDRi12", ":", "case", "ARM", "::", "t2LDRSHi12", ":", "break", ";", "}", "switch", "(", "Load2", "->", "getMachineOpcode", "(", ")", ")", "{", "default", ":", "return", "false", ";", "case", "ARM", "::", "LDRi12", ":", "case", "ARM", "::", "LDRBi12", ":", "case", "ARM", "::", "LDRD", ":", "case", "ARM", "::", "LDRH", ":", "case", "ARM", "::", "LDRSB", ":", "case", "ARM", "::", "LDRSH", ":", "case", "ARM", "::", "VLDRD", ":", "case", "ARM", "::", "VLDRS", ":", "case", "ARM", "::", "t2LDRi8", ":", "case", "ARM", "::", "t2LDRDi8", ":", "case", "ARM", "::", "t2LDRSHi8", ":", "case", "ARM", "::", "t2LDRi12", ":", "case", "ARM", "::", "t2LDRSHi12", ":", "break", ";", "}", "if", "(", "Load1", "->", "getOperand", "(", "0", ")", "!=", "Load2", "->", "getOperand", "(", "0", ")", "||", "Load1", "->", "getOperand", "(", "4", ")", "!=", "Load2", "->", "getOperand", "(", "4", ")", ")", "return", "false", ";", "if", "(", "Load1", "->", "getOperand", "(", "3", ")", "!=", "Load2", "->", "getOperand", "(", "3", ")", ")", "return", "false", ";", "if", "(", "isa", "<", "ConstantSDNode", ">", "(", "Load1", "->", "getOperand", "(", "1", ")", ")", "&&", "isa", "<", "ConstantSDNode", ">", "(", "Load2", "->", "getOperand", "(", "1", ")", ")", ")", "{", "Offset1", "=", "cast", "<", "ConstantSDNode", ">", "(", "Load1", "->", "getOperand", "(", "1", ")", ")", "->", "getSExtValue", "(", ")", ";", "Offset2", "=", "cast", "<", "ConstantSDNode", ">", "(", "Load2", "->", "getOperand", "(", "1", ")", ")", "->", "getSExtValue", "(", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["areLoadsFromSameBasePtr", "-", "This", "is", "used", "by", "the", "pre-regalloc", "scheduler", "to", "determine", "if", "two", "loads", "are", "loading", "from", "the", "same", "base", "address", "."], "TS_V_token": ["ARM", "ARM", "ARM::LDRi12", "ARM::LDRBi12", "ARM::LDRD", "ARM::LDRH", "ARM::LDRSB", "ARM::LDRSH", "ARM::VLDRD", "ARM::VLDRS", "ARM::t2LDRi8", "ARM::t2LDRDi8", "ARM::t2LDRSHi8", "ARM::t2LDRi12", "ARM::t2LDRSHi12", "ARM::LDRi12", "ARM::LDRBi12", "ARM::LDRD", "ARM::LDRH", "ARM::LDRSB", "ARM::LDRSH", "ARM::VLDRD", "ARM::VLDRS", "ARM::t2LDRi8", "ARM::t2LDRDi8", "ARM::t2LDRSHi8", "ARM::t2LDRi12", "ARM::t2LDRSHi12", "0", "0", "4", "4", "3", "3", "1", "1", "1", "1"], "File": "ARMBaseInstrInfo (2)4", "Func": "areLoadsFromSameBasePtr", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1887, "Length": 344, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "X86InstrInfo", "*", "getInstrInfo", "(", ")", "const", "{", "return", "getTargetMachine", "(", ")", "->", "getInstrInfo", "(", ")", ";", "}", ""], "natrual_language": ["TargetInstrInfo", "getter", "."], "TS_V_token": ["X86", "X86"], "File": "X86FastISel (2)", "Func": "getInstrInfo", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1888, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "char", "*", "csky_output_call", "(", "rtx", "*", "operands", ",", "int", "index", ")", "{", "static", "char", "buffer", "[", "20", "]", ";", "rtx", "addr", "=", "operands", "[", "index", "]", ";", "if", "(", "REG_P", "(", "addr", ")", ")", "sprintf", "(", "buffer", ",", "\"jsr\\t%%%d\"", ",", "index", ")", ";", "else", "if", "(", "flag_pic", "&&", "(", "GET_CODE", "(", "addr", ")", "==", "UNSPEC", ")", ")", "sprintf", "(", "buffer", ",", "\"bsr\\t%%%d\"", ",", "index", ")", ";", "else", "sprintf", "(", "buffer", ",", "\"jbsr\\t%%%d\"", ",", "index", ")", ";", "return", "buffer", ";", "}", ""], "natrual_language": ["Functions", "to", "output", "assembly", "code", "for", "a", "function", "call", "."], "TS_V_token": ["csky", "20", "\"jsr\\t%%%d\"", "\"bsr\\t%%%d\"", "\"jbsr\\t%%%d\""], "File": "csky", "Func": "csky_output_call", "Target": "csky", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1889, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "fmpyaddoperands", "(", "rtx", "*", "operands", ")", "{", "enum", "machine_mode", "mode", "=", "GET_MODE", "(", "operands", "[", "0", "]", ")", ";", "if", "(", "mode", "!=", "SFmode", "&&", "mode", "!=", "DFmode", ")", "return", "0", ";", "if", "(", "!", "(", "mode", "==", "GET_MODE", "(", "operands", "[", "1", "]", ")", "&&", "mode", "==", "GET_MODE", "(", "operands", "[", "2", "]", ")", "&&", "mode", "==", "GET_MODE", "(", "operands", "[", "3", "]", ")", "&&", "mode", "==", "GET_MODE", "(", "operands", "[", "4", "]", ")", "&&", "mode", "==", "GET_MODE", "(", "operands", "[", "5", "]", ")", ")", ")", "return", "0", ";", "if", "(", "!", "(", "GET_CODE", "(", "operands", "[", "1", "]", ")", "==", "REG", "&&", "GET_CODE", "(", "operands", "[", "2", "]", ")", "==", "REG", "&&", "GET_CODE", "(", "operands", "[", "3", "]", ")", "==", "REG", "&&", "GET_CODE", "(", "operands", "[", "4", "]", ")", "==", "REG", "&&", "GET_CODE", "(", "operands", "[", "5", "]", ")", "==", "REG", ")", ")", "return", "0", ";", "if", "(", "!", "rtx_equal_p", "(", "operands", "[", "3", "]", ",", "operands", "[", "4", "]", ")", "&&", "!", "rtx_equal_p", "(", "operands", "[", "3", "]", ",", "operands", "[", "5", "]", ")", ")", "return", "0", ";", "if", "(", "rtx_equal_p", "(", "operands", "[", "3", "]", ",", "operands", "[", "0", "]", ")", "||", "rtx_equal_p", "(", "operands", "[", "3", "]", ",", "operands", "[", "1", "]", ")", "||", "rtx_equal_p", "(", "operands", "[", "3", "]", ",", "operands", "[", "2", "]", ")", ")", "return", "0", ";", "if", "(", "rtx_equal_p", "(", "operands", "[", "4", "]", ",", "operands", "[", "0", "]", ")", "||", "rtx_equal_p", "(", "operands", "[", "5", "]", ",", "operands", "[", "0", "]", ")", ")", "return", "0", ";", "if", "(", "mode", "==", "SFmode", "&&", "(", "REGNO_REG_CLASS", "(", "REGNO", "(", "operands", "[", "0", "]", ")", ")", "!=", "FPUPPER_REGS", "||", "REGNO_REG_CLASS", "(", "REGNO", "(", "operands", "[", "1", "]", ")", ")", "!=", "FPUPPER_REGS", "||", "REGNO_REG_CLASS", "(", "REGNO", "(", "operands", "[", "2", "]", ")", ")", "!=", "FPUPPER_REGS", "||", "REGNO_REG_CLASS", "(", "REGNO", "(", "operands", "[", "3", "]", ")", ")", "!=", "FPUPPER_REGS", "||", "REGNO_REG_CLASS", "(", "REGNO", "(", "operands", "[", "4", "]", ")", ")", "!=", "FPUPPER_REGS", "||", "REGNO_REG_CLASS", "(", "REGNO", "(", "operands", "[", "5", "]", ")", ")", "!=", "FPUPPER_REGS", ")", ")", "return", "0", ";", "return", "1", ";", "}", ""], "natrual_language": ["Returns", "1", "if", "the", "6", "operands", "specified", "in", "OPERANDS", "are", "suitable", "for", "use", "in", "fmpyadd", "instructions", "."], "TS_V_token": ["pa", "0", "0", "1", "2", "3", "4", "5", "0", "1", "2", "3", "4", "5", "0", "3", "4", "3", "5", "0", "3", "0", "3", "1", "3", "2", "0", "4", "0", "5", "0", "0", "0", "1", "2", "3", "4", "5", "0", "1"], "File": "pa3", "Func": "fmpyaddoperands", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1890, "Length": 350, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86AsmParser", "::", "processInstruction", "(", "MCInst", "&", "Inst", ",", "const", "OperandVector", "&", "Ops", ")", "{", "return", "false", ";", "}", ""], "natrual_language": ["Process", "a", "single", "instruction", "and", "collect", "debug", "info", "anchors", "."], "TS_V_token": ["X86", "X86"], "File": "X86AsmParser1", "Func": "processInstruction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1891, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "CSKYFrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "CSKYMachineFunctionInfo", "*", "CFI", "=", "MF", ".", "getInfo", "<", "CSKYMachineFunctionInfo", ">", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "Register", "FPReg", "=", "getFPReg", "(", "STI", ")", ";", "Register", "SPReg", "=", "CSKY", "::", "R14", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "end", "(", ")", ";", "DebugLoc", "DL", ";", "if", "(", "!", "MBB", ".", "empty", "(", ")", ")", "{", "MBBI", "=", "MBB", ".", "getFirstTerminator", "(", ")", ";", "if", "(", "MBBI", "==", "MBB", ".", "end", "(", ")", ")", "MBBI", "=", "MBB", ".", "getLastNonDebugInstr", "(", ")", ";", "DL", "=", "MBBI", "->", "getDebugLoc", "(", ")", ";", "if", "(", "!", "MBBI", "->", "isTerminator", "(", ")", ")", "MBBI", "=", "std", "::", "next", "(", "MBBI", ")", ";", "}", "const", "auto", "&", "CSI", "=", "MFI", ".", "getCalleeSavedInfo", "(", ")", ";", "uint64_t", "StackSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "uint64_t", "ActualSize", "=", "CFI", "->", "getCalleeSaveAreaSize", "(", ")", "+", "CFI", "->", "getVarArgsSaveSize", "(", ")", ";", "auto", "LastFrameDestroy", "=", "MBBI", ";", "if", "(", "!", "CSI", ".", "empty", "(", ")", ")", "LastFrameDestroy", "=", "std", "::", "prev", "(", "MBBI", ",", "CSI", ".", "size", "(", ")", ")", ";", "if", "(", "hasFP", "(", "MF", ")", ")", "{", "const", "CSKYInstrInfo", "*", "TII", "=", "STI", ".", "getInstrInfo", "(", ")", ";", "BuildMI", "(", "MBB", ",", "LastFrameDestroy", ",", "DL", ",", "TII", "->", "get", "(", "TargetOpcode", "::", "COPY", ")", ",", "SPReg", ")", ".", "addReg", "(", "FPReg", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "NoFlags", ")", ";", "}", "else", "{", "adjustReg", "(", "MBB", ",", "LastFrameDestroy", ",", "DL", ",", "SPReg", ",", "SPReg", ",", "(", "StackSize", "-", "ActualSize", ")", ",", "MachineInstr", "::", "FrameDestroy", ")", ";", "}", "adjustReg", "(", "MBB", ",", "MBBI", ",", "DL", ",", "SPReg", ",", "SPReg", ",", "ActualSize", ",", "MachineInstr", "::", "FrameDestroy", ")", ";", "}", ""], "natrual_language": ["Insert", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["CSKY", "CSKY", "CSKY", "CSKY", "CSKY::R14", "CSKY"], "File": "CSKYFrameLowering1", "Func": "emitEpilogue", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1892, "Length": 292, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mep_emit_intrinsic", "(", "int", "intrinsic", ",", "const", "rtx", "*", "operands", ")", "{", "const", "struct", "cgen_insn", "*", "cgen_insn", ";", "const", "struct", "insn_data_d", "*", "idata", ";", "rtx", "newop", "[", "10", "]", ";", "int", "i", ";", "if", "(", "!", "mep_get_intrinsic_insn", "(", "intrinsic", ",", "&", "cgen_insn", ")", ")", "return", "false", ";", "idata", "=", "&", "insn_data", "[", "cgen_insn", "->", "icode", "]", ";", "for", "(", "i", "=", "0", ";", "i", "<", "idata", "->", "n_operands", ";", "i", "++", ")", "{", "newop", "[", "i", "]", "=", "mep_convert_arg", "(", "idata", "->", "operand", "[", "i", "]", ".", "mode", ",", "operands", "[", "i", "]", ")", ";", "if", "(", "!", "idata", "->", "operand", "[", "i", "]", ".", "predicate", "(", "newop", "[", "i", "]", ",", "idata", "->", "operand", "[", "i", "]", ".", "mode", ")", ")", "return", "false", ";", "}", "emit_insn", "(", "idata", "->", "genfun", "(", "newop", "[", "0", "]", ",", "newop", "[", "1", "]", ",", "newop", "[", "2", "]", ",", "newop", "[", "3", "]", ",", "newop", "[", "4", "]", ",", "newop", "[", "5", "]", ",", "newop", "[", "6", "]", ",", "newop", "[", "7", "]", ",", "newop", "[", "8", "]", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Try", "to", "instantiate", "INTRINSIC", "with", "the", "operands", "given", "in", "OPERANDS", ".", "Return", "true", "on", "success", ".", "This", "function", "can", "fail", "if", "the", "intrinsic", "is", "unavailable", "or", "if", "the", "operands", "do", "n't", "satisfy", "their", "predicates", "."], "TS_V_token": ["mep", "10", "0", "0", "1", "2", "3", "4", "5", "6", "7", "8"], "File": "mep", "Func": "mep_emit_intrinsic", "Target": "mep", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1893, "Length": 183, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "addRequired", "<", "MachineDominatorTree", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "MachinePostDominatorTree", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "MachineBlockFrequencyInfo", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "MachineDominatorTree", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "MachinePostDominatorTree", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "MachineBlockFrequencyInfo", ">", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["PowerPC"], "File": "PPCMIPeephole", "Func": "getAnalysisUsage", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1894, "Length": 72, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "short", "find_set_regmode_weight", "(", "rtx", "x", ",", "enum", "machine_mode", "mode", ")", "{", "if", "(", "GET_CODE", "(", "x", ")", "==", "CLOBBER", "&&", "register_operand", "(", "SET_DEST", "(", "x", ")", ",", "mode", ")", ")", "return", "1", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "SET", "&&", "register_operand", "(", "SET_DEST", "(", "x", ")", ",", "mode", ")", ")", "{", "if", "(", "GET_CODE", "(", "SET_DEST", "(", "x", ")", ")", "==", "REG", ")", "{", "if", "(", "!", "reg_mentioned_p", "(", "SET_DEST", "(", "x", ")", ",", "SET_SRC", "(", "x", ")", ")", ")", "return", "1", ";", "else", "return", "0", ";", "}", "return", "1", ";", "}", "return", "0", ";", "}", ""], "natrual_language": ["Get", "weight", "for", "mode", "for", "a", "set", "x", "."], "TS_V_token": ["sh", "1", "1", "0", "1", "0"], "File": "sh3", "Func": "find_set_regmode_weight", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1895, "Length": 99, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "MVT", "getScalarShiftAmountTy", "(", "EVT", "LHSTy", ")", "const", "{", "return", "MVT", "::", "i32", ";", "}", ""], "natrual_language": ["Return", "the", "type", "to", "use", "for", "a", "scalar", "shift", "opcode", ",", "given", "the", "shifted", "amount", "type", "."], "TS_V_token": ["PowerPC", "MVT::i32"], "File": "PPCISelLowering (2)", "Func": "getScalarShiftAmountTy", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1896, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "distance_agu_use_in_bb", "(", "unsigned", "int", "regno", ",", "rtx_insn", "*", "insn", ",", "int", "distance", ",", "rtx_insn", "*", "start", ",", "bool", "*", "found", ",", "bool", "*", "redefined", ")", "{", "basic_block", "bb", "=", "NULL", ";", "rtx_insn", "*", "next", "=", "start", ";", "rtx_insn", "*", "prev", "=", "NULL", ";", "*", "found", "=", "false", ";", "*", "redefined", "=", "false", ";", "if", "(", "start", "!=", "NULL_RTX", ")", "{", "bb", "=", "BLOCK_FOR_INSN", "(", "start", ")", ";", "if", "(", "start", "!=", "BB_HEAD", "(", "bb", ")", ")", "prev", "=", "insn", ";", "}", "while", "(", "next", "&&", "next", "!=", "insn", "&&", "distance", "<", "LEA_SEARCH_THRESHOLD", ")", "{", "if", "(", "NONDEBUG_INSN_P", "(", "next", ")", "&&", "NONJUMP_INSN_P", "(", "next", ")", ")", "{", "distance", "=", "increase_distance", "(", "prev", ",", "next", ",", "distance", ")", ";", "if", "(", "insn_uses_reg_mem", "(", "regno", ",", "next", ")", ")", "{", "*", "found", "=", "true", ";", "return", "distance", ";", "}", "if", "(", "insn_defines_reg", "(", "regno", ",", "INVALID_REGNUM", ",", "next", ")", ")", "{", "*", "redefined", "=", "true", ";", "return", "-", "1", ";", "}", "prev", "=", "next", ";", "}", "if", "(", "next", "==", "BB_END", "(", "bb", ")", ")", "break", ";", "next", "=", "NEXT_INSN", "(", "next", ")", ";", "}", "return", "distance", ";", "}", ""], "natrual_language": ["Return", "the", "distance", "in", "half-cycles", "between", "INSN", "and", "the", "next", "insn", "that", "uses", "register", "number", "REGNO", "in", "memory", "address", "added", "to", "DISTANCE", ".", "Return", "-1", "if", "REGNO0", "is", "set", ".", "Put", "true", "value", "into", "*", "FOUND", "if", "register", "usage", "was", "found", "and", "false", "otherwise", ".", "Put", "true", "value", "into", "*", "REDEFINED", "if", "register", "redefinition", "was", "found", "and", "false", "otherwise", "."], "TS_V_token": ["i386", "1"], "File": "i386", "Func": "distance_agu_use_in_bb", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1897, "Length": 189, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "shouldConvertConstantLoadToIntImm", "(", "const", "APInt", "&", "Imm", ",", "Type", "*", "Ty", ")", "const", "override", "{", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "it", "is", "beneficial", "to", "convert", "a", "load", "of", "a", "constant", "to", "just", "the", "constant", "itself", "."], "TS_V_token": ["SHUXI"], "File": "SHUXIISelLowering", "Func": "shouldConvertConstantLoadToIntImm", "Target": "SHUXI", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1898, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "TargetRegisterClass", "*", "PPCRegisterInfo", "::", "getLargestLegalSuperClass", "(", "const", "TargetRegisterClass", "*", "RC", ",", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "PPCSubtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ";", "if", "(", "Subtarget", ".", "hasVSX", "(", ")", ")", "{", "if", "(", "RC", "==", "&", "PPC", "::", "F8RCRegClass", ")", "return", "&", "PPC", "::", "VSFRCRegClass", ";", "else", "if", "(", "RC", "==", "&", "PPC", "::", "VRRCRegClass", ")", "return", "&", "PPC", "::", "VSRCRegClass", ";", "else", "if", "(", "RC", "==", "&", "PPC", "::", "F4RCRegClass", "&&", "Subtarget", ".", "hasP8Vector", "(", ")", ")", "return", "&", "PPC", "::", "VSSRCRegClass", ";", "}", "return", "TargetRegisterInfo", "::", "getLargestLegalSuperClass", "(", "RC", ",", "MF", ")", ";", "}", ""], "natrual_language": ["Returns", "the", "largest", "super", "class", "of", "RC", "that", "is", "legal", "to", "use", "in", "the", "current", "sub-target", "and", "has", "the", "same", "spill", "size", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "PPC::F8RCRegClass", "PPC::VSFRCRegClass", "PPC::VRRCRegClass", "PPC::VSRCRegClass", "PPC::F4RCRegClass", "PPC::VSSRCRegClass"], "File": "PPCRegisterInfo (2)1", "Func": "getLargestLegalSuperClass", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1899, "Length": 107, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "outliner", "::", "InstrType", "X86InstrInfo", "::", "getOutliningType", "(", "MachineBasicBlock", "::", "iterator", "&", "MIT", ",", "unsigned", "Flags", ")", "const", "{", "MachineInstr", "&", "MI", "=", "*", "MIT", ";", "if", "(", "MI", ".", "isDebugInstr", "(", ")", "||", "MI", ".", "isIndirectDebugValue", "(", ")", ")", "return", "outliner", "::", "InstrType", "::", "Invisible", ";", "if", "(", "MI", ".", "isKill", "(", ")", ")", "return", "outliner", "::", "InstrType", "::", "Invisible", ";", "if", "(", "isTailCall", "(", "MI", ")", ")", "return", "outliner", "::", "InstrType", "::", "Legal", ";", "if", "(", "MI", ".", "isTerminator", "(", ")", "||", "MI", ".", "isReturn", "(", ")", ")", "{", "if", "(", "MI", ".", "getParent", "(", ")", "->", "succ_empty", "(", ")", ")", "return", "outliner", "::", "InstrType", "::", "Legal", ";", "return", "outliner", "::", "InstrType", "::", "Illegal", ";", "}", "if", "(", "MI", ".", "modifiesRegister", "(", "X86", "::", "RSP", ",", "&", "RI", ")", "||", "MI", ".", "readsRegister", "(", "X86", "::", "RSP", ",", "&", "RI", ")", "||", "MI", ".", "getDesc", "(", ")", ".", "hasImplicitUseOfPhysReg", "(", "X86", "::", "RSP", ")", "||", "MI", ".", "getDesc", "(", ")", ".", "hasImplicitDefOfPhysReg", "(", "X86", "::", "RSP", ")", ")", "return", "outliner", "::", "InstrType", "::", "Illegal", ";", "if", "(", "MI", ".", "readsRegister", "(", "X86", "::", "RIP", ",", "&", "RI", ")", "||", "MI", ".", "getDesc", "(", ")", ".", "hasImplicitUseOfPhysReg", "(", "X86", "::", "RIP", ")", "||", "MI", ".", "getDesc", "(", ")", ".", "hasImplicitDefOfPhysReg", "(", "X86", "::", "RIP", ")", ")", "return", "outliner", "::", "InstrType", "::", "Illegal", ";", "if", "(", "MI", ".", "isPosition", "(", ")", ")", "return", "outliner", "::", "InstrType", "::", "Illegal", ";", "for", "(", "const", "MachineOperand", "&", "MOP", ":", "MI", ".", "operands", "(", ")", ")", "if", "(", "MOP", ".", "isCPI", "(", ")", "||", "MOP", ".", "isJTI", "(", ")", "||", "MOP", ".", "isCFIIndex", "(", ")", "||", "MOP", ".", "isFI", "(", ")", "||", "MOP", ".", "isTargetIndex", "(", ")", ")", "return", "outliner", "::", "InstrType", "::", "Illegal", ";", "return", "outliner", "::", "InstrType", "::", "Legal", ";", "}", ""], "natrual_language": ["Returns", "how", "or", "if", "MIT", "should", "be", "outlined", "."], "TS_V_token": ["X86", "X86", "X86::RSP", "X86::RSP", "X86::RSP", "X86::RSP", "X86::RIP", "X86::RIP", "X86::RIP"], "File": "X86InstrInfo (2)3", "Func": "getOutliningType", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1900, "Length": 298, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "TargetRegisterClass", "*", "getPointerRegClass", "(", "const", "MachineFunction", "&", "MF", ",", "unsigned", "Kind", "=", "0", ")", "const", "override", "{", "return", "&", "SystemZ", "::", "ADDR64BitRegClass", ";", "}", ""], "natrual_language": ["getPointerRegClass", "-", "Returns", "a", "TargetRegisterClass", "used", "for", "pointer", "values", "."], "TS_V_token": ["SystemZ", "0", "SystemZ::ADDR64BitRegClass"], "File": "SystemZRegisterInfo (2)1", "Func": "getPointerRegClass", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1901, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "replace_swap_with_copy", "(", "swap_web_entry", "*", "insn_entry", ",", "unsigned", "i", ")", "{", "rtx_insn", "*", "insn", "=", "insn_entry", "[", "i", "]", ".", "insn", ";", "rtx", "body", "=", "PATTERN", "(", "insn", ")", ";", "rtx", "src_reg", "=", "XEXP", "(", "SET_SRC", "(", "body", ")", ",", "0", ")", ";", "rtx", "copy", "=", "gen_rtx_SET", "(", "SET_DEST", "(", "body", ")", ",", "src_reg", ")", ";", "rtx_insn", "*", "new_insn", "=", "emit_insn_before", "(", "copy", ",", "insn", ")", ";", "set_block_for_insn", "(", "new_insn", ",", "BLOCK_FOR_INSN", "(", "insn", ")", ")", ";", "df_insn_rescan", "(", "new_insn", ")", ";", "if", "(", "dump_file", ")", "{", "unsigned", "int", "new_uid", "=", "INSN_UID", "(", "new_insn", ")", ";", "fprintf", "(", "dump_file", ",", "\"Replacing swap %d with copy %d\\n\"", ",", "i", ",", "new_uid", ")", ";", "}", "df_insn_delete", "(", "insn", ")", ";", "remove_insn", "(", "insn", ")", ";", "insn", "->", "set_deleted", "(", ")", ";", "}", ""], "natrual_language": ["Find", "the", "insn", "from", "the", "Ith", "table", "entry", ",", "which", "is", "known", "to", "be", "a", "register", "swap", "Y", "=", "SWAP", "(", "X", ")", ".", "Replace", "it", "with", "a", "copy", "Y", "=", "X", "."], "TS_V_token": ["powerpcspe", "0", "\"Replacing swap %d with copy %d\\n\""], "File": "powerpcspe", "Func": "replace_swap_with_copy", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1902, "Length": 126, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "reg_offset_addressing_ok_p", "(", "machine_mode", "mode", ")", "{", "switch", "(", "mode", ")", "{", "case", "E_V16QImode", ":", "case", "E_V8HImode", ":", "case", "E_V4SFmode", ":", "case", "E_V4SImode", ":", "case", "E_V2DFmode", ":", "case", "E_V2DImode", ":", "case", "E_V1TImode", ":", "case", "E_TImode", ":", "case", "E_TFmode", ":", "case", "E_KFmode", ":", "if", "(", "VECTOR_MEM_ALTIVEC_OR_VSX_P", "(", "mode", ")", ")", "return", "mode_supports_dq_form", "(", "mode", ")", ";", "break", ";", "case", "E_OOmode", ":", "case", "E_XOmode", ":", "return", "TARGET_MMA", ";", "case", "E_SDmode", ":", "if", "(", "TARGET_NO_SDMODE_STACK", ")", "return", "false", ";", "break", ";", "default", ":", "break", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Subroutines", "of", "rs6000_legitimize_address", "and", "rs6000_legitimate_address_p", "."], "TS_V_token": ["rs6000"], "File": "rs6000", "Func": "reg_offset_addressing_ok_p", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1903, "Length": 88, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "sh_function_arg", "(", "cumulative_args_t", "ca_v", ",", "machine_mode", "mode", ",", "const_tree", "type", ",", "bool", "named", ")", "{", "CUMULATIVE_ARGS", "*", "ca", "=", "get_cumulative_args", "(", "ca_v", ")", ";", "if", "(", "mode", "==", "VOIDmode", ")", "return", "ca", "->", "renesas_abi", "?", "const1_rtx", ":", "const0_rtx", ";", "if", "(", "sh_pass_in_reg_p", "(", "*", "ca", ",", "mode", ",", "type", ")", "&&", "(", "named", "||", "!", "(", "TARGET_HITACHI", "||", "ca", "->", "renesas_abi", ")", ")", ")", "{", "int", "regno", ";", "if", "(", "mode", "==", "SCmode", "&&", "TARGET_SH4", "&&", "TARGET_LITTLE_ENDIAN", "&&", "(", "!", "FUNCTION_ARG_SCmode_WART", "||", "(", "sh_round_reg", "(", "*", "ca", ",", "mode", ")", "&", "1", ")", ")", ")", "{", "rtx", "r1", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "SFmode", ",", "BASE_ARG_REG", "(", "mode", ")", "+", "(", "sh_round_reg", "(", "*", "ca", ",", "mode", ")", "^", "1", ")", ")", ",", "const0_rtx", ")", ";", "rtx", "r2", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "SFmode", ",", "BASE_ARG_REG", "(", "mode", ")", "+", "(", "(", "sh_round_reg", "(", "*", "ca", ",", "mode", ")", "+", "1", ")", "^", "1", ")", ")", ",", "GEN_INT", "(", "4", ")", ")", ";", "return", "gen_rtx_PARALLEL", "(", "SCmode", ",", "gen_rtvec", "(", "2", ",", "r1", ",", "r2", ")", ")", ";", "}", "if", "(", "(", "TARGET_HITACHI", "||", "ca", "->", "renesas_abi", ")", "&&", "ca", "->", "free_single_fp_reg", "&&", "mode", "==", "SFmode", ")", "return", "gen_rtx_REG", "(", "mode", ",", "ca", "->", "free_single_fp_reg", ")", ";", "regno", "=", "(", "BASE_ARG_REG", "(", "mode", ")", "+", "sh_round_reg", "(", "*", "ca", ",", "mode", ")", ")", "^", "(", "mode", "==", "SFmode", "&&", "TARGET_SH4", "&&", "TARGET_LITTLE_ENDIAN", "&&", "!", "TARGET_HITACHI", "&&", "!", "ca", "->", "renesas_abi", ")", ";", "return", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "}", "return", "NULL_RTX", ";", "}", ""], "natrual_language": ["Define", "where", "to", "put", "the", "arguments", "to", "a", "function", ".", "Value", "is", "zero", "to", "push", "the", "argument", "on", "the", "stack", ",", "or", "a", "hard", "register", "in", "which", "to", "store", "the", "argument", ".", "MODE", "is", "the", "argument", "'s", "machine", "mode", ".", "TYPE", "is", "the", "data", "type", "of", "the", "argument", "(", "as", "a", "tree", ")", ".", "This", "is", "null", "for", "libcalls", "where", "that", "information", "may", "not", "be", "available", ".", "CUM", "is", "a", "variable", "of", "type", "CUMULATIVE_ARGS", "which", "gives", "info", "about", "the", "preceding", "args", "and", "about", "the", "function", "being", "called", ".", "NAMED", "is", "nonzero", "if", "this", "argument", "is", "a", "named", "parameter", "(", "otherwise", "it", "is", "an", "extra", "parameter", "matching", "an", "ellipsis", ")", ".", "On", "SH", "the", "first", "args", "are", "normally", "in", "registers", "and", "the", "rest", "are", "pushed", ".", "Any", "arg", "that", "starts", "within", "the", "first", "NPARM_REGS", "words", "is", "at", "least", "partially", "passed", "in", "a", "register", "unless", "its", "data", "type", "forbids", "."], "TS_V_token": ["sh", "1", "1", "1", "1", "4", "2"], "File": "sh6", "Func": "sh_function_arg", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1904, "Length": 261, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64LowerHomogeneousPE", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "TII", "=", "static_cast", "<", "const", "AArch64InstrInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "bool", "Modified", "=", "false", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "Modified", "|=", "runOnMBB", "(", "MBB", ")", ";", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64"], "File": "AArch64LowerHomogeneousPrologEpilog", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1905, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86FrameLowering", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "CSI", ".", "empty", "(", ")", ")", "return", "false", ";", "if", "(", "isFuncletReturnInstr", "(", "*", "MI", ")", "&&", "STI", ".", "isOSWindows", "(", ")", ")", "{", "if", "(", "STI", ".", "is32Bit", "(", ")", ")", "return", "true", ";", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "X86", "::", "CATCHRET", ")", "{", "const", "Function", "*", "Func", "=", "MBB", ".", "getParent", "(", ")", "->", "getFunction", "(", ")", ";", "bool", "IsSEH", "=", "isAsynchronousEHPersonality", "(", "classifyEHPersonality", "(", "Func", "->", "getPersonalityFn", "(", ")", ")", ")", ";", "if", "(", "IsSEH", ")", "return", "true", ";", "}", "}", "DebugLoc", "DL", "=", "MBB", ".", "findDebugLoc", "(", "MI", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "]", ".", "getReg", "(", ")", ";", "if", "(", "X86", "::", "GR64RegClass", ".", "contains", "(", "Reg", ")", "||", "X86", "::", "GR32RegClass", ".", "contains", "(", "Reg", ")", ")", "continue", ";", "const", "TargetRegisterClass", "*", "RC", "=", "TRI", "->", "getMinimalPhysRegClass", "(", "Reg", ")", ";", "TII", ".", "loadRegFromStackSlot", "(", "MBB", ",", "MI", ",", "Reg", ",", "CSI", "[", "i", "]", ".", "getFrameIdx", "(", ")", ",", "RC", ",", "TRI", ")", ";", "--", "MI", ";", "MI", "->", "setFlag", "(", "MachineInstr", "::", "FrameDestroy", ")", ";", "++", "MI", ";", "}", "unsigned", "Opc", "=", "STI", ".", "is64Bit", "(", ")", "?", "X86", "::", "POP64r", ":", "X86", "::", "POP32r", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "]", ".", "getReg", "(", ")", ";", "if", "(", "!", "X86", "::", "GR64RegClass", ".", "contains", "(", "Reg", ")", "&&", "!", "X86", "::", "GR32RegClass", ".", "contains", "(", "Reg", ")", ")", "continue", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "TII", ".", "get", "(", "Opc", ")", ",", "Reg", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameDestroy", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["restoreCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "restore", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "load", "instructions", "via", "loadRegToStackSlot", "(", ")", "."], "TS_V_token": ["X86", "X86", "X86::CATCHRET", "0", "X86::GR64RegClass", "X86::GR32RegClass", "X86::POP64r", "X86::POP32r", "0", "X86::GR64RegClass", "X86::GR32RegClass"], "File": "X86FrameLowering8", "Func": "restoreCalleeSavedRegisters", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1906, "Length": 345, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "print", "(", "raw_ostream", "&", "OS", ")", "const", "override", "{", "}", ""], "natrual_language": ["print", "-", "Print", "a", "debug", "representation", "of", "the", "operand", "to", "the", "given", "stream", "."], "TS_V_token": ["X86"], "File": "X86Operand (2)", "Func": "print", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1907, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsAsmPrinter", "::", "emitStartOfAsmFile", "(", "Module", "&", "M", ")", "{", "MipsTargetStreamer", "&", "TS", "=", "getTargetStreamer", "(", ")", ";", "TS", ".", "setPic", "(", "OutContext", ".", "getObjectFileInfo", "(", ")", "->", "isPositionIndependent", "(", ")", ")", ";", "const", "Triple", "&", "TT", "=", "TM", ".", "getTargetTriple", "(", ")", ";", "StringRef", "CPU", "=", "MIPS_MC", "::", "selectMipsCPU", "(", "TT", ",", "TM", ".", "getTargetCPU", "(", ")", ")", ";", "StringRef", "FS", "=", "TM", ".", "getTargetFeatureString", "(", ")", ";", "const", "MipsTargetMachine", "&", "MTM", "=", "static_cast", "<", "const", "MipsTargetMachine", "&", ">", "(", "TM", ")", ";", "const", "MipsSubtarget", "STI", "(", "TT", ",", "CPU", ",", "FS", ",", "MTM", ".", "isLittleEndian", "(", ")", ",", "MTM", ",", "None", ")", ";", "bool", "IsABICalls", "=", "STI", ".", "isABICalls", "(", ")", ";", "const", "MipsABIInfo", "&", "ABI", "=", "MTM", ".", "getABI", "(", ")", ";", "if", "(", "IsABICalls", ")", "{", "TS", ".", "emitDirectiveAbiCalls", "(", ")", ";", "if", "(", "!", "isPositionIndependent", "(", ")", "&&", "STI", ".", "hasSym32", "(", ")", ")", "TS", ".", "emitDirectiveOptionPic0", "(", ")", ";", "}", "std", "::", "string", "SectionName", "=", "std", "::", "string", "(", "\".mdebug.\"", ")", "+", "getCurrentABIString", "(", ")", ";", "OutStreamer", "->", "SwitchSection", "(", "OutContext", ".", "getELFSection", "(", "SectionName", ",", "ELF", "::", "SHT_PROGBITS", ",", "0", ")", ")", ";", "STI", ".", "isNaN2008", "(", ")", "?", "TS", ".", "emitDirectiveNaN2008", "(", ")", ":", "TS", ".", "emitDirectiveNaNLegacy", "(", ")", ";", "TS", ".", "updateABIInfo", "(", "STI", ")", ";", "if", "(", "(", "ABI", ".", "IsO32", "(", ")", "&&", "(", "STI", ".", "isABI_FPXX", "(", ")", "||", "STI", ".", "isFP64bit", "(", ")", ")", ")", "||", "STI", ".", "useSoftFloat", "(", ")", ")", "TS", ".", "emitDirectiveModuleFP", "(", ")", ";", "if", "(", "ABI", ".", "IsO32", "(", ")", "&&", "(", "!", "STI", ".", "useOddSPReg", "(", ")", "||", "STI", ".", "isABI_FPXX", "(", ")", ")", ")", "TS", ".", "emitDirectiveModuleOddSPReg", "(", ")", ";", "OutStreamer", "->", "SwitchSection", "(", "getObjFileLowering", "(", ")", ".", "getTextSection", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "virtual", "method", "can", "be", "overridden", "by", "targets", "that", "want", "to", "emit", "something", "at", "the", "start", "of", "their", "file", "."], "TS_V_token": ["Mips", "Mips", "Mips", "MIPS_MC::selectMipsCPU", "Mips", "Mips", "Mips", "Mips", "\".mdebug.\"", "0"], "File": "MipsAsmPrinter", "Func": "emitStartOfAsmFile", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1908, "Length": 294, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "::", "iterator", "X86InstrInfo", "::", "insertOutlinedCall", "(", "Module", "&", "M", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "It", ",", "MachineFunction", "&", "MF", ",", "const", "outliner", "::", "TargetCostInfo", "&", "TCI", ")", "const", "{", "if", "(", "TCI", ".", "CallConstructionID", "==", "MachineOutlinerTailCall", ")", "{", "It", "=", "MBB", ".", "insert", "(", "It", ",", "BuildMI", "(", "MF", ",", "DebugLoc", "(", ")", ",", "get", "(", "X86", "::", "JMP_1", ")", ")", ".", "addGlobalAddress", "(", "M", ".", "getNamedValue", "(", "MF", ".", "getName", "(", ")", ")", ")", ")", ";", "}", "else", "{", "It", "=", "MBB", ".", "insert", "(", "It", ",", "BuildMI", "(", "MF", ",", "DebugLoc", "(", ")", ",", "get", "(", "X86", "::", "CALL64pcrel32", ")", ")", ".", "addGlobalAddress", "(", "M", ".", "getNamedValue", "(", "MF", ".", "getName", "(", ")", ")", ")", ")", ";", "}", "return", "It", ";", "}", ""], "natrual_language": ["Insert", "a", "call", "to", "an", "outlined", "function", "into", "the", "program", "."], "TS_V_token": ["X86", "X86", "X86::JMP_1", "X86::CALL64pcrel32"], "File": "X86InstrInfo102", "Func": "insertOutlinedCall", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1909, "Length": 129, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "char", "*", "crx_prepare_push_pop_string", "(", "int", "push_or_pop", ")", "{", "static", "char", "mask_str", "[", "50", "]", ";", "int", "i", "=", "0", ";", "int", "ra_in_bitmask", "=", "0", ";", "char", "*", "return_str", ";", "char", "*", "temp_str", ";", "return_str", "=", "(", "char", "*", ")", "xmalloc", "(", "120", ")", ";", "temp_str", "=", "(", "char", "*", ")", "xmalloc", "(", "120", ")", ";", "memset", "(", "return_str", ",", "0", ",", "3", ")", ";", "while", "(", "i", "<=", "last_reg_to_save", ")", "{", "mask_str", "[", "0", "]", "=", "0", ";", "if", "(", "i", "<=", "SP_REGNUM", ")", "{", "int", "j", "=", "0", ";", "while", "(", "j", "<", "MAX_COUNT", "&&", "i", "<=", "SP_REGNUM", ")", "{", "if", "(", "save_regs", "[", "i", "]", ")", "{", "if", "(", "i", "==", "RETURN_ADDRESS_REGNUM", ")", "ra_in_bitmask", "=", "1", ";", "if", "(", "j", ">", "0", ")", "strcat", "(", "mask_str", ",", "\", \"", ")", ";", "strcat", "(", "mask_str", ",", "reg_names", "[", "i", "]", ")", ";", "++", "j", ";", "}", "++", "i", ";", "}", "}", "else", "{", "while", "(", "i", "<=", "last_reg_to_save", ")", "{", "if", "(", "save_regs", "[", "i", "]", ")", "{", "strcat", "(", "mask_str", ",", "\"lo, hi\"", ")", ";", "i", "=", "last_reg_to_save", "+", "1", ";", "break", ";", "}", "++", "i", ";", "}", "}", "if", "(", "strlen", "(", "mask_str", ")", "==", "0", ")", "continue", ";", "if", "(", "push_or_pop", "==", "1", ")", "{", "if", "(", "crx_interrupt_function_p", "(", ")", ")", "mpushpop_str", "(", "temp_str", ",", "\"popx\"", ",", "mask_str", ")", ";", "else", "{", "if", "(", "ra_in_bitmask", ")", "{", "mpushpop_str", "(", "temp_str", ",", "\"popret\"", ",", "mask_str", ")", ";", "ra_in_bitmask", "=", "0", ";", "}", "else", "mpushpop_str", "(", "temp_str", ",", "\"pop\"", ",", "mask_str", ")", ";", "}", "strcat", "(", "return_str", ",", "temp_str", ")", ";", "}", "else", "{", "if", "(", "crx_interrupt_function_p", "(", ")", ")", "mpushpop_str", "(", "temp_str", ",", "\"pushx\"", ",", "mask_str", ")", ";", "else", "mpushpop_str", "(", "temp_str", ",", "\"push\"", ",", "mask_str", ")", ";", "strcat", "(", "temp_str", ",", "return_str", ")", ";", "strcpy", "(", "strcat", "(", "return_str", ",", "\"\\t\"", ")", ",", "temp_str", ")", ";", "}", "}", "if", "(", "push_or_pop", "==", "1", ")", "{", "if", "(", "crx_interrupt_function_p", "(", ")", ")", "strcat", "(", "return_str", ",", "\"\\n\\tretx\\n\"", ")", ";", "else", "if", "(", "!", "FUNC_IS_NORETURN_P", "(", "current_function_decl", ")", "&&", "!", "save_regs", "[", "RETURN_ADDRESS_REGNUM", "]", ")", "strcat", "(", "return_str", ",", "\"\\n\\tjump\\tra\\n\"", ")", ";", "}", "return_str", "+=", "2", ";", "return", "return_str", ";", "}", ""], "natrual_language": ["Called", "from", "crx.md", ".", "The", "return", "value", "depends", "on", "the", "parameter", "push_or_pop", ":", "*", "When", "push_or_pop", "is", "zero", "-", ">", "string", "for", "push", "instructions", "of", "prologue", ".", "*", "When", "push_or_pop", "is", "nonzero", "-", ">", "string", "for", "pop/popret/retx", "in", "epilogue", ".", "*", "Relies", "on", "the", "assumptions", ":", "*", "1", ".", "RA", "is", "the", "last", "register", "to", "be", "saved", ".", "*", "2", ".", "The", "maximal", "value", "of", "the", "counter", "is", "MAX_COUNT", "."], "TS_V_token": ["crx", "50", "0", "0", "120", "120", "0", "3", "0", "0", "0", "1", "0", "\", \"", "\"lo, hi\"", "1", "0", "1", "\"popx\"", "\"popret\"", "0", "\"pop\"", "\"pushx\"", "\"push\"", "\"\\t\"", "1", "\"\\n\\tretx\\n\"", "\"\\n\\tjump\\tra\\n\"", "2"], "File": "crx", "Func": "crx_prepare_push_pop_string", "Target": "crx", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1910, "Length": 361, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86DiscriminateMemOps", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "!", "EnableDiscriminateMemops", ")", "return", "false", ";", "DISubprogram", "*", "FDI", "=", "MF", ".", "getFunction", "(", ")", ".", "getSubprogram", "(", ")", ";", "if", "(", "!", "FDI", "||", "!", "FDI", "->", "getUnit", "(", ")", "->", "getDebugInfoForProfiling", "(", ")", ")", "return", "false", ";", "const", "DILocation", "*", "ReferenceDI", "=", "DILocation", "::", "get", "(", "FDI", "->", "getContext", "(", ")", ",", "FDI", "->", "getLine", "(", ")", ",", "0", ",", "FDI", ")", ";", "assert", "(", "ReferenceDI", "&&", "\"ReferenceDI should not be nullptr\"", ")", ";", "DenseMap", "<", "Location", ",", "unsigned", ">", "MemOpDiscriminators", ";", "MemOpDiscriminators", "[", "diToLocation", "(", "ReferenceDI", ")", "]", "=", "0", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "{", "for", "(", "auto", "&", "MI", ":", "MBB", ")", "{", "const", "auto", "&", "DI", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "if", "(", "!", "DI", ")", "continue", ";", "Location", "Loc", "=", "diToLocation", "(", "DI", ")", ";", "MemOpDiscriminators", "[", "Loc", "]", "=", "std", "::", "max", "(", "MemOpDiscriminators", "[", "Loc", "]", ",", "DI", "->", "getBaseDiscriminator", "(", ")", ")", ";", "}", "}", "DenseMap", "<", "Location", ",", "DenseSet", "<", "unsigned", ">>", "Seen", ";", "bool", "Changed", "=", "false", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "{", "for", "(", "auto", "&", "MI", ":", "MBB", ")", "{", "if", "(", "X86II", "::", "getMemoryOperandNo", "(", "MI", ".", "getDesc", "(", ")", ".", "TSFlags", ")", "<", "0", ")", "continue", ";", "const", "DILocation", "*", "DI", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "if", "(", "!", "DI", ")", "{", "DI", "=", "ReferenceDI", ";", "}", "Location", "L", "=", "diToLocation", "(", "DI", ")", ";", "DenseSet", "<", "unsigned", ">", "&", "Set", "=", "Seen", "[", "L", "]", ";", "const", "std", "::", "pair", "<", "DenseSet", "<", "unsigned", ">", "::", "iterator", ",", "bool", ">", "TryInsert", "=", "Set", ".", "insert", "(", "DI", "->", "getBaseDiscriminator", "(", ")", ")", ";", "if", "(", "!", "TryInsert", ".", "second", ")", "{", "unsigned", "BF", ",", "DF", ",", "CI", "=", "0", ";", "DILocation", "::", "decodeDiscriminator", "(", "DI", "->", "getDiscriminator", "(", ")", ",", "BF", ",", "DF", ",", "CI", ")", ";", "Optional", "<", "unsigned", ">", "EncodedDiscriminator", "=", "DILocation", "::", "encodeDiscriminator", "(", "MemOpDiscriminators", "[", "L", "]", "+", "1", ",", "DF", ",", "CI", ")", ";", "if", "(", "!", "EncodedDiscriminator", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Unable to create a unique discriminator \"", "\"for instruction with memory operand in: \"", "<<", "DI", "->", "getFilename", "(", ")", "<<", "\" Line: \"", "<<", "DI", "->", "getLine", "(", ")", "<<", "\" Column: \"", "<<", "DI", "->", "getColumn", "(", ")", "<<", "\". This is likely due to a large macro expansion. \\n\"", ")", ";", "continue", ";", "}", "++", "MemOpDiscriminators", "[", "L", "]", ";", "DI", "=", "DI", "->", "cloneWithDiscriminator", "(", "EncodedDiscriminator", ".", "getValue", "(", ")", ")", ";", "assert", "(", "DI", "&&", "\"DI should not be nullptr\"", ")", ";", "updateDebugInfo", "(", "&", "MI", ",", "DI", ")", ";", "Changed", "=", "true", ";", "std", "::", "pair", "<", "DenseSet", "<", "unsigned", ">", "::", "iterator", ",", "bool", ">", "MustInsert", "=", "Set", ".", "insert", "(", "DI", "->", "getBaseDiscriminator", "(", ")", ")", ";", "(", "void", ")", "MustInsert", ";", "assert", "(", "MustInsert", ".", "second", "&&", "\"New discriminator shouldn't be present in set\"", ")", ";", "}", "ReferenceDI", "=", "DI", ";", "}", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "0", "\"ReferenceDI should not be nullptr\"", "0", "X86II::getMemoryOperandNo", "0", "0", "1", "\"Unable to create a unique discriminator \"", "\"for instruction with memory operand in: \"", "\" Line: \"", "\" Column: \"", "\". This is likely due to a large macro expansion. \\n\"", "\"DI should not be nullptr\"", "\"New discriminator shouldn't be present in set\""], "File": "X86DiscriminateMemOps9", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1911, "Length": 478, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "type_suffix_index", "function_resolver", "::", "infer_unsigned_vector_type", "(", "unsigned", "int", "argno", ")", "{", "type_suffix_index", "type", "=", "infer_vector_type", "(", "argno", ")", ";", "if", "(", "type", "==", "NUM_TYPE_SUFFIXES", ")", "return", "type", ";", "if", "(", "!", "type_suffixes", "[", "type", "]", ".", "unsigned_p", ")", "{", "error_at", "(", "location", ",", "\"passing %qT to argument %d of %qE, which\"", "\" expects a vector of unsigned integers\"", ",", "get_argument_type", "(", "argno", ")", ",", "argno", "+", "1", ",", "fndecl", ")", ";", "return", "NUM_TYPE_SUFFIXES", ";", "}", "return", "type", ";", "}", ""], "natrual_language": ["Like", "infer_vector_type", ",", "but", "also", "require", "the", "type", "to", "be", "an", "unsigned", "integer", "."], "TS_V_token": ["aarch64", "\"passing %qT to argument %d of %qE, which\"", "\" expects a vector of unsigned integers\"", "1"], "File": "aarch64-sve-builtins", "Func": "infer_unsigned_vector_type", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1912, "Length": 65, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "arm_const_double_rtx", "(", "rtx", "x", ")", "{", "REAL_VALUE_TYPE", "r", ";", "int", "i", ";", "if", "(", "!", "fp_consts_inited", ")", "init_fp_table", "(", ")", ";", "REAL_VALUE_FROM_CONST_DOUBLE", "(", "r", ",", "x", ")", ";", "if", "(", "REAL_VALUE_MINUS_ZERO", "(", "r", ")", ")", "return", "0", ";", "for", "(", "i", "=", "0", ";", "i", "<", "fp_consts_inited", ";", "i", "++", ")", "if", "(", "REAL_VALUES_EQUAL", "(", "r", ",", "values_fp", "[", "i", "]", ")", ")", "return", "1", ";", "return", "0", ";", "}", ""], "natrual_language": ["Return", "TRUE", "if", "rtx", "X", "is", "a", "valid", "immediate", "FP", "constant", "."], "TS_V_token": ["arm", "0", "0", "1", "0"], "File": "arm3", "Func": "arm_const_double_rtx", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1913, "Length": 71, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "multiple_operation_profitable_p", "(", "bool", "is_store", "ATTRIBUTE_UNUSED", ",", "int", "nops", ",", "HOST_WIDE_INT", "add_offset", ")", "{", "if", "(", "nops", "==", "2", "&&", "arm_ld_sched", "&&", "add_offset", "!=", "0", ")", "return", "false", ";", "if", "(", "nops", "<=", "2", "&&", "arm_tune_xscale", "&&", "!", "optimize_size", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "iff", "it", "would", "be", "profitable", "to", "turn", "a", "sequence", "of", "NOPS", "loads", "or", "stores", "(", "depending", "on", "IS_STORE", ")", "into", "a", "load-multiple", "or", "store-multiple", "instruction", ".", "ADD_OFFSET", "is", "nonzero", "if", "the", "base", "address", "register", "needs", "to", "be", "modified", "with", "an", "add", "instruction", "before", "we", "can", "use", "it", "."], "TS_V_token": ["arm", "2", "0", "2"], "File": "arm", "Func": "multiple_operation_profitable_p", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1914, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMBaseInstrInfo", "::", "breakPartialRegDependency", "(", "MachineInstr", "&", "MI", ",", "unsigned", "OpNum", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "assert", "(", "OpNum", "<", "MI", ".", "getDesc", "(", ")", ".", "getNumDefs", "(", ")", "&&", "\"OpNum is not a def\"", ")", ";", "assert", "(", "TRI", "&&", "\"Need TRI instance\"", ")", ";", "const", "MachineOperand", "&", "MO", "=", "MI", ".", "getOperand", "(", "OpNum", ")", ";", "Register", "Reg", "=", "MO", ".", "getReg", "(", ")", ";", "assert", "(", "Register", "::", "isPhysicalRegister", "(", "Reg", ")", "&&", "\"Can't break virtual register dependencies.\"", ")", ";", "unsigned", "DReg", "=", "Reg", ";", "if", "(", "ARM", "::", "SPRRegClass", ".", "contains", "(", "Reg", ")", ")", "{", "DReg", "=", "ARM", "::", "D0", "+", "(", "Reg", "-", "ARM", "::", "S0", ")", "/", "2", ";", "assert", "(", "TRI", "->", "isSuperRegister", "(", "Reg", ",", "DReg", ")", "&&", "\"Register enums broken\"", ")", ";", "}", "assert", "(", "ARM", "::", "DPRRegClass", ".", "contains", "(", "DReg", ")", "&&", "\"Can only break D-reg deps\"", ")", ";", "assert", "(", "MI", ".", "definesRegister", "(", "DReg", ",", "TRI", ")", "&&", "\"MI doesn't clobber full D-reg\"", ")", ";", "BuildMI", "(", "*", "MI", ".", "getParent", "(", ")", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "get", "(", "ARM", "::", "FCONSTD", ")", ",", "DReg", ")", ".", "addImm", "(", "96", ")", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "MI", ".", "addRegisterKilled", "(", "DReg", ",", "TRI", ",", "true", ")", ";", "}", ""], "natrual_language": ["Insert", "a", "dependency-breaking", "instruction", "before", "MI", "to", "eliminate", "an", "unwanted", "dependency", "on", "OpNum", "."], "TS_V_token": ["ARM", "ARM", "\"OpNum is not a def\"", "\"Need TRI instance\"", "\"Can't break virtual register dependencies.\"", "ARM::SPRRegClass", "ARM::D0", "ARM::S0", "2", "\"Register enums broken\"", "ARM::DPRRegClass", "\"Can only break D-reg deps\"", "\"MI doesn't clobber full D-reg\"", "ARM::FCONSTD", "96", "ARMCC::AL"], "File": "ARMBaseInstrInfo110", "Func": "breakPartialRegDependency", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1915, "Length": 206, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "supportSplitCSR", "(", "MachineFunction", "*", "MF", ")", "const", "override", "{", "return", "MF", "->", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "CXX_FAST_TLS", "&&", "MF", "->", "getFunction", "(", ")", "->", "hasFnAttribute", "(", "Attribute", "::", "NoUnwind", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "supports", "that", "a", "subset", "of", "CSRs", "for", "the", "given", "machine", "function", "is", "handled", "explicitly", "via", "copies", "."], "TS_V_token": ["PowerPC"], "File": "PPCISelLowering107", "Func": "supportSplitCSR", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1916, "Length": 39, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "fma_node", "::", "add_child", "(", "fma_node", "*", "child", ")", "{", "this", "->", "m_children", "->", "push_back", "(", "child", ")", ";", "}", ""], "natrual_language": ["Add", "a", "child", "to", "this", "node", "in", "the", "list", "of", "children", "."], "TS_V_token": ["aarch64"], "File": "cortex-a57-fma-steering", "Func": "add_child", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1917, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MBBI", ",", "Register", "DestReg", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "override", "{", "loadRegFromStack", "(", "MBB", ",", "MBBI", ",", "DestReg", ",", "FrameIndex", ",", "RC", ",", "TRI", ",", "0", ")", ";", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["Mips", "0"], "File": "MipsInstrInfo19", "Func": "loadRegFromStackSlot", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1918, "Length": 49, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "LEGFrameLowering", "::", "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": ["LEG", "LEG"], "File": "LEGFrameLowering", "Func": "hasFP", "Target": "LEG", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1919, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "TargetRegisterClass", "*", "X86RegisterInfo", "::", "getMatchingSuperRegClass", "(", "const", "TargetRegisterClass", "*", "A", ",", "const", "TargetRegisterClass", "*", "B", ",", "unsigned", "SubIdx", ")", "const", "{", "if", "(", "!", "Is64Bit", "&&", "SubIdx", "==", "X86", "::", "sub_8bit", ")", "{", "A", "=", "X86GenRegisterInfo", "::", "getSubClassWithSubReg", "(", "A", ",", "X86", "::", "sub_8bit_hi", ")", ";", "if", "(", "!", "A", ")", "return", "0", ";", "}", "return", "X86GenRegisterInfo", "::", "getMatchingSuperRegClass", "(", "A", ",", "B", ",", "SubIdx", ")", ";", "}", ""], "natrual_language": ["getMatchingSuperRegClass", "-", "Return", "a", "subclass", "of", "the", "specified", "register", "class", "A", "so", "that", "each", "register", "in", "it", "has", "a", "sub-register", "of", "the", "specified", "sub-register", "index", "which", "is", "in", "the", "specified", "register", "class", "B", "."], "TS_V_token": ["X86", "X86", "X86::sub_8bit", "X86", "X86::sub_8bit_hi", "0", "X86"], "File": "X86RegisterInfo101", "Func": "getMatchingSuperRegClass", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1920, "Length": 69, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "emitValueImpl", "(", "const", "MCExpr", "*", "Value", ",", "unsigned", "Size", ",", "SMLoc", "Loc", ")", "override", "{", "if", "(", "const", "MCSymbolRefExpr", "*", "SRE", "=", "dyn_cast_or_null", "<", "MCSymbolRefExpr", ">", "(", "Value", ")", ")", "{", "if", "(", "SRE", "->", "getKind", "(", ")", "==", "MCSymbolRefExpr", "::", "VK_ARM_SBREL", "&&", "!", "(", "Size", "==", "4", ")", ")", "{", "getContext", "(", ")", ".", "reportError", "(", "Loc", ",", "\"relocated expression must be 32-bit\"", ")", ";", "return", ";", "}", "getOrCreateDataFragment", "(", ")", ";", "}", "emitDataMappingSymbol", "(", ")", ";", "MCELFStreamer", "::", "emitValueImpl", "(", "Value", ",", "Size", ",", "Loc", ")", ";", "}", ""], "natrual_language": ["Overriding", "these", "functions", "allows", "us", "to", "dismiss", "all", "labels", "that", "are", "candidates", "for", "marking", "as", "microMIPS", "when", ".word/.long/.4byte", "etc", "directives", "are", "emitted", "."], "TS_V_token": ["ARM", "ARM", "4", "\"relocated expression must be 32-bit\""], "File": "ARMELFStreamer22", "Func": "emitValueImpl", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1921, "Length": 87, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getStackAddress", "(", "uint64_t", "Size", ",", "int64_t", "Offset", ",", "MachinePointerInfo", "&", "MPO", ")", "override", "{", "LLT", "p0", "=", "LLT", "::", "pointer", "(", "0", ",", "64", ")", ";", "LLT", "s64", "=", "LLT", "::", "scalar", "(", "64", ")", ";", "unsigned", "SPReg", "=", "MRI", ".", "createGenericVirtualRegister", "(", "p0", ")", ";", "MIRBuilder", ".", "buildCopy", "(", "SPReg", ",", "AArch64", "::", "SP", ")", ";", "unsigned", "OffsetReg", "=", "MRI", ".", "createGenericVirtualRegister", "(", "s64", ")", ";", "MIRBuilder", ".", "buildConstant", "(", "OffsetReg", ",", "Offset", ")", ";", "unsigned", "AddrReg", "=", "MRI", ".", "createGenericVirtualRegister", "(", "p0", ")", ";", "MIRBuilder", ".", "buildGEP", "(", "AddrReg", ",", "SPReg", ",", "OffsetReg", ")", ";", "MPO", "=", "MachinePointerInfo", "::", "getStack", "(", "MIRBuilder", ".", "getMF", "(", ")", ",", "Offset", ")", ";", "return", "AddrReg", ";", "}", ""], "natrual_language": ["Materialize", "a", "VReg", "containing", "the", "address", "of", "the", "specified", "stack-based", "object", "."], "TS_V_token": ["AArch64", "0", "64", "64", "AArch64::SP"], "File": "AArch64CallLowering (2)", "Func": "getStackAddress", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1922, "Length": 117, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "assignValueToAddress", "(", "Register", "ValVReg", ",", "Register", "Addr", ",", "uint64_t", "Size", ",", "MachinePointerInfo", "&", "MPO", ",", "CCValAssign", "&", "VA", ")", "override", "{", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "LocInfo", "::", "AExt", ")", "{", "Size", "=", "VA", ".", "getLocVT", "(", ")", ".", "getSizeInBits", "(", ")", "/", "8", ";", "ValVReg", "=", "MIRBuilder", ".", "buildAnyExt", "(", "LLT", "::", "scalar", "(", "Size", "*", "8", ")", ",", "ValVReg", ")", ".", "getReg", "(", "0", ")", ";", "}", "auto", "MMO", "=", "MIRBuilder", ".", "getMF", "(", ")", ".", "getMachineMemOperand", "(", "MPO", ",", "MachineMemOperand", "::", "MOStore", ",", "Size", ",", "1", ")", ";", "MIRBuilder", ".", "buildStore", "(", "ValVReg", ",", "Addr", ",", "*", "MMO", ")", ";", "}", ""], "natrual_language": ["An", "overload", "which", "takes", "an", "ArgInfo", "if", "additional", "information", "about", "the", "arg", "is", "needed", "."], "TS_V_token": ["AArch64", "8", "8", "0", "1"], "File": "AArch64CallLowering42", "Func": "assignValueToAddress", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1923, "Length": 110, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsTargetELFStreamer", "::", "finish", "(", ")", "{", "MCAssembler", "&", "MCA", "=", "getStreamer", "(", ")", ".", "getAssembler", "(", ")", ";", "const", "MCObjectFileInfo", "&", "OFI", "=", "*", "MCA", ".", "getContext", "(", ")", ".", "getObjectFileInfo", "(", ")", ";", "MCSection", "&", "TextSection", "=", "*", "OFI", ".", "getTextSection", "(", ")", ";", "MCA", ".", "registerSection", "(", "TextSection", ")", ";", "MCSection", "&", "DataSection", "=", "*", "OFI", ".", "getDataSection", "(", ")", ";", "MCA", ".", "registerSection", "(", "DataSection", ")", ";", "MCSection", "&", "BSSSection", "=", "*", "OFI", ".", "getBSSSection", "(", ")", ";", "MCA", ".", "registerSection", "(", "BSSSection", ")", ";", "TextSection", ".", "setAlignment", "(", "Align", "(", "std", "::", "max", "(", "16u", ",", "TextSection", ".", "getAlignment", "(", ")", ")", ")", ")", ";", "DataSection", ".", "setAlignment", "(", "Align", "(", "std", "::", "max", "(", "16u", ",", "DataSection", ".", "getAlignment", "(", ")", ")", ")", ")", ";", "BSSSection", ".", "setAlignment", "(", "Align", "(", "std", "::", "max", "(", "16u", ",", "BSSSection", ".", "getAlignment", "(", ")", ")", ")", ")", ";", "if", "(", "RoundSectionSizes", ")", "{", "MCStreamer", "&", "OS", "=", "getStreamer", "(", ")", ";", "for", "(", "MCSection", "&", "S", ":", "MCA", ")", "{", "MCSectionELF", "&", "Section", "=", "static_cast", "<", "MCSectionELF", "&", ">", "(", "S", ")", ";", "unsigned", "Alignment", "=", "Section", ".", "getAlignment", "(", ")", ";", "if", "(", "Alignment", ")", "{", "OS", ".", "SwitchSection", "(", "&", "Section", ")", ";", "if", "(", "Section", ".", "UseCodeAlign", "(", ")", ")", "OS", ".", "emitCodeAlignment", "(", "Alignment", ",", "Alignment", ")", ";", "else", "OS", ".", "emitValueToAlignment", "(", "Alignment", ",", "0", ",", "1", ",", "Alignment", ")", ";", "}", "}", "}", "const", "FeatureBitset", "&", "Features", "=", "STI", ".", "getFeatureBits", "(", ")", ";", "unsigned", "EFlags", "=", "MCA", ".", "getELFHeaderEFlags", "(", ")", ";", "if", "(", "getABI", "(", ")", ".", "IsO32", "(", ")", ")", "EFlags", "|=", "ELF", "::", "EF_MIPS_ABI_O32", ";", "else", "if", "(", "getABI", "(", ")", ".", "IsN32", "(", ")", ")", "EFlags", "|=", "ELF", "::", "EF_MIPS_ABI2", ";", "if", "(", "Features", "[", "Mips", "::", "FeatureGP64Bit", "]", ")", "{", "if", "(", "getABI", "(", ")", ".", "IsO32", "(", ")", ")", "EFlags", "|=", "ELF", "::", "EF_MIPS_32BITMODE", ";", "}", "else", "if", "(", "Features", "[", "Mips", "::", "FeatureMips64r2", "]", "||", "Features", "[", "Mips", "::", "FeatureMips64", "]", ")", "EFlags", "|=", "ELF", "::", "EF_MIPS_32BITMODE", ";", "if", "(", "!", "Features", "[", "Mips", "::", "FeatureNoABICalls", "]", ")", "EFlags", "|=", "ELF", "::", "EF_MIPS_CPIC", ";", "if", "(", "Pic", ")", "EFlags", "|=", "ELF", "::", "EF_MIPS_PIC", "|", "ELF", "::", "EF_MIPS_CPIC", ";", "if", "(", "getABI", "(", ")", ".", "IsCheriPureCap", "(", ")", ")", "EFlags", "|=", "ELF", "::", "EF_MIPS_ABI_CHERIABI", ";", "MCA", ".", "setELFHeaderEFlags", "(", "EFlags", ")", ";", "MipsELFStreamer", "&", "MEF", "=", "static_cast", "<", "MipsELFStreamer", "&", ">", "(", "Streamer", ")", ";", "MEF", ".", "EmitMipsOptionRecords", "(", ")", ";", "emitMipsAbiFlags", "(", ")", ";", "}", ""], "natrual_language": ["finish", "-", "after", "all", "the", "new", "live", "ranges", "have", "been", "created", ",", "compute", "the", "remaining", "live", "range", ",", "and", "rewrite", "instructions", "to", "use", "the", "new", "registers", "."], "TS_V_token": ["Mips", "Mips", "16u", "16u", "16u", "0", "1", "Mips::FeatureGP64Bit", "Mips::FeatureMips64r2", "Mips::FeatureMips64", "Mips::FeatureNoABICalls", "Mips", "Mips", "Mips", "Mips"], "File": "MipsTargetStreamer19", "Func": "finish", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1924, "Length": 423, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "rs6000_parm_offset", "(", "void", ")", "{", "return", "(", "DEFAULT_ABI", "==", "ABI_V4", "?", "2", ":", "DEFAULT_ABI", "==", "ABI_ELFv2", "?", "4", ":", "6", ")", ";", "}", ""], "natrual_language": ["The", "offset", "in", "words", "to", "the", "start", "of", "the", "parameter", "save", "area", "."], "TS_V_token": ["powerpcspe", "2", "4", "6"], "File": "powerpcspe", "Func": "rs6000_parm_offset", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1925, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isCheapToSpeculateCttz", "(", ")", "const", "{", "return", "Subtarget", ".", "hasBMI", "(", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "it", "is", "cheap", "to", "speculate", "a", "call", "to", "intrinsic", "cttz", "."], "TS_V_token": ["X86", "X86"], "File": "X86ISelLowering (2)5", "Func": "isCheapToSpeculateCttz", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1926, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SSACCmpConv", "::", "isDeadDef", "(", "unsigned", "DstReg", ")", "{", "if", "(", "DstReg", "==", "ARM64", "::", "WZR", "||", "DstReg", "==", "ARM64", "::", "XZR", ")", "return", "true", ";", "if", "(", "!", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "DstReg", ")", ")", "return", "false", ";", "return", "MRI", "->", "use_nodbg_empty", "(", "DstReg", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "this", "instruction", "has", "a", "dead", "def", "."], "TS_V_token": ["ARM64", "ARM64::WZR", "ARM64::XZR"], "File": "ARM64ConditionalCompares", "Func": "isDeadDef", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1927, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isMaskAndCmp0FoldingBeneficial", "(", "const", "Instruction", "&", "AndI", ")", "const", "{", "return", "true", ";", "}", ""], "natrual_language": ["Return", "if", "the", "target", "supports", "combining", "a", "chain", "like", ":"], "TS_V_token": ["X86", "X86"], "File": "X86ISelLowering (2)5", "Func": "isMaskAndCmp0FoldingBeneficial", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1928, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMTargetLowering", "::", "HandleByVal", "(", "CCState", "*", "State", ",", "unsigned", "&", "size", ",", "unsigned", "Align", ")", "const", "{", "unsigned", "reg", "=", "State", "->", "AllocateReg", "(", "GPRArgRegs", ",", "4", ")", ";", "assert", "(", "(", "State", "->", "getCallOrPrologue", "(", ")", "==", "Prologue", "||", "State", "->", "getCallOrPrologue", "(", ")", "==", "Call", ")", "&&", "\"unhandled ParmContext\"", ")", ";", "if", "(", "(", "ARM", "::", "R0", "<=", "reg", ")", "&&", "(", "reg", "<=", "ARM", "::", "R3", ")", ")", "{", "if", "(", "Subtarget", "->", "isAAPCS_ABI", "(", ")", "&&", "Align", ">", "4", ")", "{", "unsigned", "AlignInRegs", "=", "Align", "/", "4", ";", "unsigned", "Waste", "=", "(", "ARM", "::", "R4", "-", "reg", ")", "%", "AlignInRegs", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "Waste", ";", "++", "i", ")", "reg", "=", "State", "->", "AllocateReg", "(", "GPRArgRegs", ",", "4", ")", ";", "}", "if", "(", "reg", "!=", "0", ")", "{", "unsigned", "excess", "=", "4", "*", "(", "ARM", "::", "R4", "-", "reg", ")", ";", "const", "unsigned", "NSAAOffset", "=", "State", "->", "getNextStackOffset", "(", ")", ";", "if", "(", "Subtarget", "->", "isAAPCS_ABI", "(", ")", "&&", "NSAAOffset", "!=", "0", "&&", "size", ">", "excess", ")", "{", "while", "(", "State", "->", "AllocateReg", "(", "GPRArgRegs", ",", "4", ")", ")", ";", "return", ";", "}", "unsigned", "ByValRegBegin", "=", "reg", ";", "unsigned", "ByValRegEnd", "=", "(", "size", "<", "excess", ")", "?", "reg", "+", "size", "/", "4", ":", "(", "unsigned", ")", "ARM", "::", "R4", ";", "State", "->", "addInRegsParamInfo", "(", "ByValRegBegin", ",", "ByValRegEnd", ")", ";", "for", "(", "unsigned", "i", "=", "reg", "+", "1", ";", "i", "!=", "ByValRegEnd", ";", "++", "i", ")", "State", "->", "AllocateReg", "(", "GPRArgRegs", ",", "4", ")", ";", "if", "(", "size", "<", "excess", ")", "size", "=", "0", ";", "else", "size", "-=", "excess", ";", "}", "}", "}", ""], "natrual_language": ["Target-specific", "cleanup", "for", "formal", "ByVal", "parameters", "."], "TS_V_token": ["ARM", "ARM", "4", "\"unhandled ParmContext\"", "ARM::R0", "ARM::R3", "4", "4", "ARM::R4", "0", "4", "0", "4", "ARM::R4", "0", "4", "4", "ARM::R4", "1", "4", "0"], "File": "ARMISelLowering (2)", "Func": "HandleByVal", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1929, "Length": 272, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "CSKYELFTargetObjectFile", "::", "Initialize", "(", "MCContext", "&", "Ctx", ",", "const", "TargetMachine", "&", "TM", ")", "{", "TargetLoweringObjectFileELF", "::", "Initialize", "(", "Ctx", ",", "TM", ")", ";", "LSDAEncoding", "=", "dwarf", "::", "DW_EH_PE_pcrel", "|", "dwarf", "::", "DW_EH_PE_sdata4", ";", "PersonalityEncoding", "=", "dwarf", "::", "DW_EH_PE_indirect", "|", "dwarf", "::", "DW_EH_PE_pcrel", "|", "dwarf", "::", "DW_EH_PE_sdata4", ";", "TTypeEncoding", "=", "dwarf", "::", "DW_EH_PE_indirect", "|", "dwarf", "::", "DW_EH_PE_pcrel", "|", "dwarf", "::", "DW_EH_PE_sdata4", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "called", "before", "any", "actual", "lowering", "is", "done", "."], "TS_V_token": ["CSKY", "CSKY"], "File": "CSKYTargetObjectFile", "Func": "Initialize", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1930, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "mips_gen_const_int_vector", "(", "machine_mode", "mode", ",", "HOST_WIDE_INT", "val", ")", "{", "rtx", "c", "=", "gen_int_mode", "(", "val", ",", "GET_MODE_INNER", "(", "mode", ")", ")", ";", "return", "gen_const_vec_duplicate", "(", "mode", ",", "c", ")", ";", "}", ""], "natrual_language": ["Return", "a", "const_int", "vector", "of", "VAL", "with", "mode", "MODE", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_gen_const_int_vector", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1931, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "relaxInstruction", "(", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "override", "{", "llvm_unreachable", "(", "\"relaxInstruction() unimplemented\"", ")", ";", "}", ""], "natrual_language": ["Relax", "the", "instruction", "in", "the", "given", "fragment", "to", "the", "next", "wider", "instruction", "."], "TS_V_token": ["Sparc", "\"relaxInstruction() unimplemented\""], "File": "SparcAsmBackend14", "Func": "relaxInstruction", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1932, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsPassConfig", "::", "addPreEmitPass", "(", ")", "{", "MipsTargetMachine", "&", "TM", "=", "getMipsTargetMachine", "(", ")", ";", "addPass", "(", "createMipsDelaySlotFillerPass", "(", "TM", ")", ")", ";", "addPass", "(", "createMipsHazardSchedule", "(", ")", ")", ";", "addPass", "(", "createMipsLongBranchPass", "(", "TM", ")", ")", ";", "addPass", "(", "createMipsConstantIslandPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips"], "File": "MipsTargetMachine46", "Func": "addPreEmitPass", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1933, "Length": 46, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Mips16RegisterInfo", "::", "saveScavengerRegister", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "MachineBasicBlock", "::", "iterator", "&", "UseMI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "unsigned", "Reg", ")", "const", "{", "DebugLoc", "DL", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MBB", ".", "getParent", "(", ")", "->", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "TII", ".", "copyPhysReg", "(", "MBB", ",", "I", ",", "DL", ",", "Mips", "::", "T0", ",", "Reg", ",", "true", ")", ";", "TII", ".", "copyPhysReg", "(", "MBB", ",", "UseMI", ",", "DL", ",", "Reg", ",", "Mips", "::", "T0", ",", "true", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Spill", "the", "register", "so", "it", "can", "be", "used", "by", "the", "register", "scavenger", "."], "TS_V_token": ["Mips", "Mips", "Mips::T0", "Mips::T0"], "File": "Mips16RegisterInfo", "Func": "saveScavengerRegister", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1934, "Length": 95, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ia64_dfa_sched_reorder", "(", "FILE", "*", "dump", ",", "int", "sched_verbose", ",", "rtx_insn", "*", "*", "ready", ",", "int", "*", "pn_ready", ",", "int", "clock_var", ",", "int", "reorder_type", ")", "{", "int", "n_asms", ";", "int", "n_ready", "=", "*", "pn_ready", ";", "rtx_insn", "*", "*", "e_ready", "=", "ready", "+", "n_ready", ";", "rtx_insn", "*", "*", "insnp", ";", "if", "(", "sched_verbose", ")", "fprintf", "(", "dump", ",", "\"// ia64_dfa_sched_reorder (type %d):\\n\"", ",", "reorder_type", ")", ";", "if", "(", "reorder_type", "==", "0", ")", "{", "n_asms", "=", "0", ";", "for", "(", "insnp", "=", "ready", ";", "insnp", "<", "e_ready", ";", "insnp", "++", ")", "if", "(", "insnp", "<", "e_ready", ")", "{", "rtx_insn", "*", "insn", "=", "*", "insnp", ";", "enum", "attr_type", "t", "=", "ia64_safe_type", "(", "insn", ")", ";", "if", "(", "t", "==", "TYPE_UNKNOWN", ")", "{", "if", "(", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "==", "ASM_INPUT", "||", "asm_noperands", "(", "PATTERN", "(", "insn", ")", ")", ">=", "0", ")", "{", "rtx_insn", "*", "lowest", "=", "ready", "[", "n_asms", "]", ";", "ready", "[", "n_asms", "]", "=", "insn", ";", "*", "insnp", "=", "lowest", ";", "n_asms", "++", ";", "}", "else", "{", "rtx_insn", "*", "highest", "=", "ready", "[", "n_ready", "-", "1", "]", ";", "ready", "[", "n_ready", "-", "1", "]", "=", "insn", ";", "*", "insnp", "=", "highest", ";", "return", "1", ";", "}", "}", "}", "if", "(", "n_asms", "<", "n_ready", ")", "{", "ready", "+=", "n_asms", ";", "n_ready", "-=", "n_asms", ";", "}", "else", "if", "(", "n_ready", ">", "0", ")", "return", "1", ";", "}", "if", "(", "ia64_final_schedule", ")", "{", "int", "deleted", "=", "0", ";", "int", "nr_need_stop", "=", "0", ";", "for", "(", "insnp", "=", "ready", ";", "insnp", "<", "e_ready", ";", "insnp", "++", ")", "if", "(", "safe_group_barrier_needed", "(", "*", "insnp", ")", ")", "nr_need_stop", "++", ";", "if", "(", "reorder_type", "==", "1", "&&", "n_ready", "==", "nr_need_stop", ")", "return", "0", ";", "if", "(", "reorder_type", "==", "0", ")", "return", "1", ";", "insnp", "=", "e_ready", ";", "while", "(", "insnp", "--", ">", "ready", "+", "deleted", ")", "while", "(", "insnp", ">=", "ready", "+", "deleted", ")", "{", "rtx_insn", "*", "insn", "=", "*", "insnp", ";", "if", "(", "!", "safe_group_barrier_needed", "(", "insn", ")", ")", "break", ";", "memmove", "(", "ready", "+", "1", ",", "ready", ",", "(", "insnp", "-", "ready", ")", "*", "sizeof", "(", "rtx", ")", ")", ";", "*", "ready", "=", "insn", ";", "deleted", "++", ";", "}", "n_ready", "-=", "deleted", ";", "ready", "+=", "deleted", ";", "}", "current_cycle", "=", "clock_var", ";", "if", "(", "reload_completed", "&&", "mem_ops_in_group", "[", "clock_var", "%", "4", "]", ">=", "ia64_max_memory_insns", ")", "{", "int", "moved", "=", "0", ";", "insnp", "=", "e_ready", ";", "while", "(", "insnp", "--", ">", "ready", "+", "moved", ")", "while", "(", "insnp", ">=", "ready", "+", "moved", ")", "{", "rtx_insn", "*", "insn", "=", "*", "insnp", ";", "if", "(", "!", "is_load_p", "(", "insn", ")", ")", "break", ";", "memmove", "(", "ready", "+", "1", ",", "ready", ",", "(", "insnp", "-", "ready", ")", "*", "sizeof", "(", "rtx", ")", ")", ";", "*", "ready", "=", "insn", ";", "moved", "++", ";", "}", "n_ready", "-=", "moved", ";", "ready", "+=", "moved", ";", "}", "return", "1", ";", "}", ""], "natrual_language": ["We", "are", "about", "to", "being", "issuing", "insns", "for", "this", "clock", "cycle", ".", "Override", "the", "default", "sort", "algorithm", "to", "better", "slot", "instructions", "."], "TS_V_token": ["ia64", "\"// ia64_dfa_sched_reorder (type %d):\\n\"", "0", "0", "0", "1", "1", "1", "0", "1", "0", "0", "1", "0", "0", "1", "1", "4", "0", "1", "1"], "File": "ia64", "Func": "ia64_dfa_sched_reorder", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1935, "Length": 467, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCTargetLowering", "::", "getByValTypeAlignment", "(", "Type", "*", "Ty", ",", "const", "DataLayout", "&", "DL", ")", "const", "{", "unsigned", "Align", "=", "Subtarget", ".", "isPPC64", "(", ")", "?", "8", ":", "4", ";", "if", "(", "Subtarget", ".", "hasAltivec", "(", ")", "||", "Subtarget", ".", "hasQPX", "(", ")", ")", "getMaxByValAlign", "(", "Ty", ",", "Align", ",", "Subtarget", ".", "hasQPX", "(", ")", "?", "32", ":", "16", ")", ";", "return", "Align", ";", "}", ""], "natrual_language": ["Return", "the", "desired", "alignment", "for", "ByVal", "aggregate", "function", "arguments", "in", "the", "caller", "parameter", "area", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "8", "4", "32", "16"], "File": "PPCISelLowering101", "Func": "getByValTypeAlignment", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1936, "Length": 64, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARM64FrameLowering", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", ".", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "unsigned", "Count", "=", "CSI", ".", "size", "(", ")", ";", "DebugLoc", "DL", ";", "assert", "(", "(", "Count", "&", "1", ")", "==", "0", "&&", "\"Odd number of callee-saved regs to spill!\"", ")", ";", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "Count", ";", "i", "+=", "2", ")", "{", "unsigned", "Reg1", "=", "CSI", "[", "i", "]", ".", "getReg", "(", ")", ";", "unsigned", "Reg2", "=", "CSI", "[", "i", "+", "1", "]", ".", "getReg", "(", ")", ";", "assert", "(", "CSI", "[", "i", "]", ".", "getFrameIdx", "(", ")", "+", "1", "==", "CSI", "[", "i", "+", "1", "]", ".", "getFrameIdx", "(", ")", "&&", "\"Out of order callee saved regs!\"", ")", ";", "unsigned", "LdrOpc", ";", "assert", "(", "(", "Count", "&", "1", ")", "==", "0", "&&", "\"Odd number of callee-saved regs to spill!\"", ")", ";", "assert", "(", "(", "i", "&", "1", ")", "==", "0", "&&", "\"Odd index for callee-saved reg spill!\"", ")", ";", "if", "(", "ARM64", "::", "GPR64RegClass", ".", "contains", "(", "Reg1", ")", ")", "{", "assert", "(", "ARM64", "::", "GPR64RegClass", ".", "contains", "(", "Reg2", ")", "&&", "\"Expected GPR64 callee-saved register pair!\"", ")", ";", "if", "(", "i", "==", "Count", "-", "2", ")", "LdrOpc", "=", "ARM64", "::", "LDPXpost", ";", "else", "LdrOpc", "=", "ARM64", "::", "LDPXi", ";", "}", "else", "if", "(", "ARM64", "::", "FPR64RegClass", ".", "contains", "(", "Reg1", ")", ")", "{", "assert", "(", "ARM64", "::", "FPR64RegClass", ".", "contains", "(", "Reg2", ")", "&&", "\"Expected FPR64 callee-saved register pair!\"", ")", ";", "if", "(", "i", "==", "Count", "-", "2", ")", "LdrOpc", "=", "ARM64", "::", "LDPDpost", ";", "else", "LdrOpc", "=", "ARM64", "::", "LDPDi", ";", "}", "else", "llvm_unreachable", "(", "\"Unexpected callee saved register!\"", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"CSR restore: (\"", "<<", "TRI", "->", "getName", "(", "Reg1", ")", "<<", "\", \"", "<<", "TRI", "->", "getName", "(", "Reg2", ")", "<<", "\") -> fi#(\"", "<<", "CSI", "[", "i", "]", ".", "getFrameIdx", "(", ")", "<<", "\", \"", "<<", "CSI", "[", "i", "+", "1", "]", ".", "getFrameIdx", "(", ")", "<<", "\")\\n\"", ")", ";", "const", "int", "Offset", "=", "(", "i", "==", "Count", "-", "2", ")", "?", "Count", ":", "Count", "-", "i", "-", "2", ";", "assert", "(", "(", "Offset", ">=", "-", "64", "&&", "Offset", "<=", "63", ")", "&&", "\"Offset out of bounds for LDP immediate\"", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "TII", ".", "get", "(", "LdrOpc", ")", ")", ".", "addReg", "(", "Reg2", ",", "getDefRegState", "(", "true", ")", ")", ".", "addReg", "(", "Reg1", ",", "getDefRegState", "(", "true", ")", ")", ".", "addReg", "(", "ARM64", "::", "SP", ")", ".", "addImm", "(", "Offset", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["restoreCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "restore", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "load", "instructions", "via", "loadRegToStackSlot", "(", ")", "."], "TS_V_token": ["ARM64", "ARM64", "1", "0", "\"Odd number of callee-saved regs to spill!\"", "0", "2", "1", "1", "1", "\"Out of order callee saved regs!\"", "1", "0", "\"Odd number of callee-saved regs to spill!\"", "1", "0", "\"Odd index for callee-saved reg spill!\"", "ARM64::GPR64RegClass", "ARM64::GPR64RegClass", "\"Expected GPR64 callee-saved register pair!\"", "2", "ARM64::LDPXpost", "ARM64::LDPXi", "ARM64::FPR64RegClass", "ARM64::FPR64RegClass", "\"Expected FPR64 callee-saved register pair!\"", "2", "ARM64::LDPDpost", "ARM64::LDPDi", "\"Unexpected callee saved register!\"", "\"CSR restore: (\"", "\", \"", "\") -> fi#(\"", "\", \"", "1", "\")\\n\"", "2", "2", "64", "63", "\"Offset out of bounds for LDP immediate\"", "ARM64::SP"], "File": "ARM64FrameLowering", "Func": "restoreCalleeSavedRegisters", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1937, "Length": 442, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsOutgoingValueHandler", "::", "assignCustomValue", "(", "CallLowering", "::", "ArgInfo", "&", "Arg", ",", "ArrayRef", "<", "CCValAssign", ">", "VAs", ")", "{", "const", "CCValAssign", "&", "VALo", "=", "VAs", "[", "0", "]", ";", "const", "CCValAssign", "&", "VAHi", "=", "VAs", "[", "1", "]", ";", "assert", "(", "VALo", ".", "getLocVT", "(", ")", "==", "MVT", "::", "i32", "&&", "VAHi", ".", "getLocVT", "(", ")", "==", "MVT", "::", "i32", "&&", "VALo", ".", "getValVT", "(", ")", "==", "MVT", "::", "f64", "&&", "VAHi", ".", "getValVT", "(", ")", "==", "MVT", "::", "f64", "&&", "\"unexpected custom value\"", ")", ";", "auto", "Unmerge", "=", "MIRBuilder", ".", "buildUnmerge", "(", "{", "LLT", "::", "scalar", "(", "32", ")", ",", "LLT", "::", "scalar", "(", "32", ")", "}", ",", "Arg", ".", "Regs", "[", "0", "]", ")", ";", "Register", "Lo", "=", "Unmerge", ".", "getReg", "(", "0", ")", ";", "Register", "Hi", "=", "Unmerge", ".", "getReg", "(", "1", ")", ";", "Arg", ".", "OrigRegs", ".", "assign", "(", "Arg", ".", "Regs", ".", "begin", "(", ")", ",", "Arg", ".", "Regs", ".", "end", "(", ")", ")", ";", "Arg", ".", "Regs", "=", "{", "Lo", ",", "Hi", "}", ";", "if", "(", "!", "STI", ".", "isLittle", "(", ")", ")", "std", "::", "swap", "(", "Lo", ",", "Hi", ")", ";", "MIRBuilder", ".", "buildCopy", "(", "VALo", ".", "getLocReg", "(", ")", ",", "Lo", ")", ";", "MIRBuilder", ".", "buildCopy", "(", "VAHi", ".", "getLocReg", "(", ")", ",", "Hi", ")", ";", "return", "2", ";", "}", ""], "natrual_language": ["Handle", "custom", "values", ",", "which", "may", "be", "passed", "into", "one", "or", "more", "of", "VAs", "."], "TS_V_token": ["Mips", "Mips", "0", "1", "MVT::i32", "MVT::i32", "MVT::f64", "MVT::f64", "\"unexpected custom value\"", "32", "32", "0", "0", "1", "2"], "File": "MipsCallLowering9", "Func": "assignCustomValue", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1938, "Length": 215, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCDarwinAsmPrinter", "::", "doFinalization", "(", "Module", "&", "M", ")", "{", "bool", "isPPC64", "=", "TM", ".", "getDataLayout", "(", ")", "->", "getPointerSizeInBits", "(", ")", "==", "64", ";", "const", "TargetLoweringObjectFileMachO", "&", "TLOFMacho", "=", "static_cast", "<", "const", "TargetLoweringObjectFileMachO", "&", ">", "(", "getObjFileLowering", "(", ")", ")", ";", "MachineModuleInfoMachO", "&", "MMIMacho", "=", "MMI", "->", "getObjFileInfo", "<", "MachineModuleInfoMachO", ">", "(", ")", ";", "MachineModuleInfoMachO", "::", "SymbolListTy", "Stubs", "=", "MMIMacho", ".", "GetFnStubList", "(", ")", ";", "if", "(", "!", "Stubs", ".", "empty", "(", ")", ")", "EmitFunctionStubs", "(", "Stubs", ")", ";", "if", "(", "MAI", "->", "doesSupportExceptionHandling", "(", ")", "&&", "MMI", ")", "{", "const", "std", "::", "vector", "<", "const", "Function", "*", ">", "&", "Personalities", "=", "MMI", "->", "getPersonalities", "(", ")", ";", "for", "(", "std", "::", "vector", "<", "const", "Function", "*", ">", "::", "const_iterator", "I", "=", "Personalities", ".", "begin", "(", ")", ",", "E", "=", "Personalities", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "if", "(", "*", "I", ")", "{", "MCSymbol", "*", "NLPSym", "=", "GetSymbolWithGlobalValueBase", "(", "*", "I", ",", "\"$non_lazy_ptr\"", ")", ";", "MachineModuleInfoImpl", "::", "StubValueTy", "&", "StubSym", "=", "MMIMacho", ".", "getGVStubEntry", "(", "NLPSym", ")", ";", "StubSym", "=", "MachineModuleInfoImpl", "::", "StubValueTy", "(", "getSymbol", "(", "*", "I", ")", ",", "true", ")", ";", "}", "}", "}", "Stubs", "=", "MMIMacho", ".", "GetGVStubList", "(", ")", ";", "if", "(", "!", "Stubs", ".", "empty", "(", ")", ")", "{", "OutStreamer", ".", "SwitchSection", "(", "TLOFMacho", ".", "getNonLazySymbolPointerSection", "(", ")", ")", ";", "EmitAlignment", "(", "isPPC64", "?", "3", ":", "2", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "Stubs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "OutStreamer", ".", "EmitLabel", "(", "Stubs", "[", "i", "]", ".", "first", ")", ";", "MachineModuleInfoImpl", "::", "StubValueTy", "&", "MCSym", "=", "Stubs", "[", "i", "]", ".", "second", ";", "OutStreamer", ".", "EmitSymbolAttribute", "(", "MCSym", ".", "getPointer", "(", ")", ",", "MCSA_IndirectSymbol", ")", ";", "if", "(", "MCSym", ".", "getInt", "(", ")", ")", "OutStreamer", ".", "EmitIntValue", "(", "0", ",", "isPPC64", "?", "8", ":", "4", ")", ";", "else", "OutStreamer", ".", "EmitValue", "(", "MCSymbolRefExpr", "::", "Create", "(", "MCSym", ".", "getPointer", "(", ")", ",", "OutContext", ")", ",", "isPPC64", "?", "8", ":", "4", ")", ";", "}", "Stubs", ".", "clear", "(", ")", ";", "OutStreamer", ".", "AddBlankLine", "(", ")", ";", "}", "Stubs", "=", "MMIMacho", ".", "GetHiddenGVStubList", "(", ")", ";", "if", "(", "!", "Stubs", ".", "empty", "(", ")", ")", "{", "OutStreamer", ".", "SwitchSection", "(", "getObjFileLowering", "(", ")", ".", "getDataSection", "(", ")", ")", ";", "EmitAlignment", "(", "isPPC64", "?", "3", ":", "2", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "Stubs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "OutStreamer", ".", "EmitLabel", "(", "Stubs", "[", "i", "]", ".", "first", ")", ";", "OutStreamer", ".", "EmitValue", "(", "MCSymbolRefExpr", "::", "Create", "(", "Stubs", "[", "i", "]", ".", "second", ".", "getPointer", "(", ")", ",", "OutContext", ")", ",", "isPPC64", "?", "8", ":", "4", ")", ";", "}", "Stubs", ".", "clear", "(", ")", ";", "OutStreamer", ".", "AddBlankLine", "(", ")", ";", "}", "OutStreamer", ".", "EmitAssemblerFlag", "(", "MCAF_SubsectionsViaSymbols", ")", ";", "return", "AsmPrinter", "::", "doFinalization", "(", "M", ")", ";", "}", ""], "natrual_language": ["doFinalization", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "any", "necessary", "clean", "up", "after", "all", "passes", "have", "run", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "64", "\"$non_lazy_ptr\"", "PPC", "3", "2", "0", "0", "PPC", "8", "4", "PPC", "8", "4", "PPC", "3", "2", "0", "PPC", "8", "4"], "File": "PPCAsmPrinter24", "Func": "doFinalization", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1939, "Length": 487, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "pa_asm_output_aligned_bss", "(", "FILE", "*", "stream", ",", "const", "char", "*", "name", ",", "unsigned", "HOST_WIDE_INT", "size", ",", "unsigned", "int", "align", ")", "{", "switch_to_section", "(", "bss_section", ")", ";", "fprintf", "(", "stream", ",", "\"\\t.align %u\\n\"", ",", "align", "/", "BITS_PER_UNIT", ")", ";", "ASM_OUTPUT_TYPE_DIRECTIVE", "(", "stream", ",", "name", ",", "\"object\"", ")", ";", "ASM_OUTPUT_SIZE_DIRECTIVE", "(", "stream", ",", "name", ",", "size", ")", ";", "fprintf", "(", "stream", ",", "\"\\t.align %u\\n\"", ",", "align", "/", "BITS_PER_UNIT", ")", ";", "ASM_OUTPUT_LABEL", "(", "stream", ",", "name", ")", ";", "fprintf", "(", "stream", ",", "\"\\t.block \"", "HOST_WIDE_INT_PRINT_UNSIGNED", "\"\\n\"", ",", "size", ")", ";", "}", ""], "natrual_language": ["This", "function", "places", "uninitialized", "global", "data", "in", "the", "bss", "section", ".", "The", "ASM_OUTPUT_ALIGNED_BSS", "macro", "needs", "to", "be", "defined", "to", "call", "this", "function", "on", "the", "SOM", "port", "to", "prevent", "uninitialized", "global", "data", "from", "being", "placed", "in", "the", "data", "section", "."], "TS_V_token": ["pa", "\"\\t.align %u\\n\"", "\"object\"", "\"\\t.align %u\\n\"", "\"\\t.block \"", "\"\\n\""], "File": "pa4", "Func": "pa_asm_output_aligned_bss", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1940, "Length": 85, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "d30v_trampoline_size", "(", ")", "{", "return", "16", ";", "}", ""], "natrual_language": ["A", "C", "expression", "for", "the", "size", "in", "bytes", "of", "the", "trampoline", ",", "as", "an", "integer", "."], "TS_V_token": ["d30v", "16"], "File": "d30v", "Func": "d30v_trampoline_size", "Target": "d30v", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1941, "Length": 9, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCPhysReg", "*", "SystemZRegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "static", "const", "MCPhysReg", "CalleeSavedRegs", "[", "]", "=", "{", "SystemZ", "::", "R6D", ",", "SystemZ", "::", "R7D", ",", "SystemZ", "::", "R8D", ",", "SystemZ", "::", "R9D", ",", "SystemZ", "::", "R10D", ",", "SystemZ", "::", "R11D", ",", "SystemZ", "::", "R12D", ",", "SystemZ", "::", "R13D", ",", "SystemZ", "::", "R14D", ",", "SystemZ", "::", "R15D", ",", "SystemZ", "::", "F8D", ",", "SystemZ", "::", "F9D", ",", "SystemZ", "::", "F10D", ",", "SystemZ", "::", "F11D", ",", "SystemZ", "::", "F12D", ",", "SystemZ", "::", "F13D", ",", "SystemZ", "::", "F14D", ",", "SystemZ", "::", "F15D", ",", "0", "}", ";", "return", "CalleeSavedRegs", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ::R6D", "SystemZ::R7D", "SystemZ::R8D", "SystemZ::R9D", "SystemZ::R10D", "SystemZ::R11D", "SystemZ::R12D", "SystemZ::R13D", "SystemZ::R14D", "SystemZ::R15D", "SystemZ::F8D", "SystemZ::F9D", "SystemZ::F10D", "SystemZ::F11D", "SystemZ::F12D", "SystemZ::F13D", "SystemZ::F14D", "SystemZ::F15D", "0"], "File": "SystemZRegisterInfo25", "Func": "getCalleeSavedRegs", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1942, "Length": 101, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "pa_can_change_mode_class", "(", "machine_mode", "from", ",", "machine_mode", "to", ",", "reg_class_t", "rclass", ")", "{", "if", "(", "from", "==", "to", ")", "return", "true", ";", "if", "(", "GET_MODE_SIZE", "(", "from", ")", "==", "GET_MODE_SIZE", "(", "to", ")", ")", "return", "true", ";", "if", "(", "!", "GET_MODE_SIZE", "(", "from", ")", "||", "!", "GET_MODE_SIZE", "(", "to", ")", ")", "return", "false", ";", "if", "(", "COMPLEX_MODE_P", "(", "from", ")", "||", "VECTOR_MODE_P", "(", "from", ")", "||", "COMPLEX_MODE_P", "(", "to", ")", "||", "VECTOR_MODE_P", "(", "to", ")", ")", "return", "false", ";", "if", "(", "MAYBE_FP_REG_CLASS_P", "(", "rclass", ")", ")", "return", "false", ";", "if", "(", "GET_MODE_SIZE", "(", "to", ")", ">", "UNITS_PER_WORD", "&&", "GET_MODE_SIZE", "(", "to", ")", ">", "GET_MODE_SIZE", "(", "from", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Implement", "TARGET_CAN_CHANGE_MODE_CLASS", "."], "TS_V_token": ["pa"], "File": "pa7", "Func": "pa_can_change_mode_class", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1943, "Length": 116, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_evpc_rev_global", "(", "struct", "expand_vec_perm_d", "*", "d", ")", "{", "poly_uint64", "nelt", "=", "d", "->", "perm", ".", "length", "(", ")", ";", "if", "(", "!", "d", "->", "one_vector_p", "||", "d", "->", "vec_flags", "!=", "VEC_SVE_DATA", ")", "return", "false", ";", "if", "(", "!", "d", "->", "perm", ".", "series_p", "(", "0", ",", "1", ",", "nelt", "-", "1", ",", "-", "1", ")", ")", "return", "false", ";", "if", "(", "d", "->", "testing_p", ")", "return", "true", ";", "rtx", "src", "=", "gen_rtx_UNSPEC", "(", "d", "->", "vmode", ",", "gen_rtvec", "(", "1", ",", "d", "->", "op0", ")", ",", "UNSPEC_REV", ")", ";", "emit_set_insn", "(", "d", "->", "target", ",", "src", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Recognize", "patterns", "for", "the", "REV", "insn", ",", "which", "reverses", "elements", "within", "a", "full", "vector", "."], "TS_V_token": ["aarch64", "0", "1", "1", "1", "1"], "File": "aarch645", "Func": "aarch64_evpc_rev_global", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1944, "Length": 104, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_multi_add_label", "(", "const", "char", "*", "label", ")", "{", "struct", "mips_multi_member", "*", "member", ";", "member", "=", "mips_multi_add", "(", ")", ";", "member", "->", "is_label_p", "=", "true", ";", "member", "->", "format", "=", "label", ";", "}", ""], "natrual_language": ["Add", "the", "given", "label", "definition", "to", "the", "current", "multi-insn", "sequence", ".", "The", "definition", "should", "include", "the", "colon", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_multi_add_label", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1945, "Length": 34, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_option_override_internal", "(", "struct", "gcc_options", "*", "opts", ",", "struct", "gcc_options", "*", "opts_set", ")", "{", "arm_override_options_after_change_1", "(", "opts", ",", "opts_set", ")", ";", "if", "(", "TARGET_INTERWORK", "&&", "!", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_thumb", ")", ")", "{", "opts", "->", "x_target_flags", "&=", "~", "MASK_INTERWORK", ";", "}", "if", "(", "TARGET_THUMB_P", "(", "opts", "->", "x_target_flags", ")", "&&", "!", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_thumb", ")", ")", "{", "warning", "(", "0", ",", "\"target CPU does not support THUMB instructions\"", ")", ";", "opts", "->", "x_target_flags", "&=", "~", "MASK_THUMB", ";", "}", "if", "(", "TARGET_APCS_FRAME", "&&", "TARGET_THUMB_P", "(", "opts", "->", "x_target_flags", ")", ")", "{", "opts", "->", "x_target_flags", "&=", "~", "MASK_APCS_FRAME", ";", "}", "if", "(", "TARGET_THUMB_P", "(", "opts", "->", "x_target_flags", ")", "&&", "TARGET_CALLEE_INTERWORKING", ")", "opts", "->", "x_target_flags", "|=", "MASK_INTERWORK", ";", "cl_optimization", "*", "to", "=", "TREE_OPTIMIZATION", "(", "init_optimize", ")", ";", "if", "(", "!", "opts_set", "->", "x_arm_restrict_it", ")", "opts", "->", "x_arm_restrict_it", "=", "arm_arch8", ";", "if", "(", "!", "TARGET_THUMB2_P", "(", "opts", "->", "x_target_flags", ")", "||", "!", "arm_arch_notm", ")", "opts", "->", "x_arm_restrict_it", "=", "0", ";", "if", "(", "!", "opts_set", "->", "x_arm_restrict_it", "&&", "(", "opts_set", "->", "x_arm_cpu_string", "||", "opts_set", "->", "x_arm_tune_string", ")", ")", "opts", "->", "x_arm_restrict_it", "=", "0", ";", "if", "(", "!", "opts_set", "->", "x_unaligned_access", ")", "{", "opts", "->", "x_unaligned_access", "=", "(", "TARGET_32BIT_P", "(", "opts", "->", "x_target_flags", ")", "&&", "arm_arch6", "&&", "(", "arm_arch_notm", "||", "arm_arch7", ")", ")", ";", "}", "else", "if", "(", "opts", "->", "x_unaligned_access", "==", "1", "&&", "!", "(", "arm_arch6", "&&", "(", "arm_arch_notm", "||", "arm_arch7", ")", ")", ")", "{", "warning", "(", "0", ",", "\"target CPU does not support unaligned accesses\"", ")", ";", "opts", "->", "x_unaligned_access", "=", "0", ";", "}", "if", "(", "TARGET_THUMB1_P", "(", "opts", "->", "x_target_flags", ")", ")", "opts", "->", "x_flag_schedule_insns", "=", "0", ";", "else", "opts", "->", "x_flag_schedule_insns", "=", "to", "->", "x_flag_schedule_insns", ";", "if", "(", "optimize_function_for_size_p", "(", "cfun", ")", "&&", "TARGET_THUMB2_P", "(", "opts", "->", "x_target_flags", ")", ")", "opts", "->", "x_flag_shrink_wrap", "=", "false", ";", "else", "opts", "->", "x_flag_shrink_wrap", "=", "to", "->", "x_flag_shrink_wrap", ";", "if", "(", "TARGET_THUMB1_P", "(", "opts", "->", "x_target_flags", ")", ")", "opts", "->", "x_flag_ipa_ra", "=", "0", ";", "else", "opts", "->", "x_flag_ipa_ra", "=", "to", "->", "x_flag_ipa_ra", ";", "if", "(", "TARGET_THUMB2_P", "(", "opts", "->", "x_target_flags", ")", ")", "opts", "->", "x_inline_asm_unified", "=", "true", ";", "if", "(", "arm_stack_protector_guard", "==", "SSP_GLOBAL", "&&", "opts", "->", "x_arm_stack_protector_guard_offset_str", ")", "{", "error", "(", "\"incompatible options %<-mstack-protector-guard=global%> and \"", "\"%<-mstack-protector-guard-offset=%s%>\"", ",", "arm_stack_protector_guard_offset_str", ")", ";", "}", "if", "(", "opts", "->", "x_arm_stack_protector_guard_offset_str", ")", "{", "char", "*", "end", ";", "const", "char", "*", "str", "=", "arm_stack_protector_guard_offset_str", ";", "errno", "=", "0", ";", "long", "offs", "=", "strtol", "(", "arm_stack_protector_guard_offset_str", ",", "&", "end", ",", "0", ")", ";", "if", "(", "!", "*", "str", "||", "*", "end", "||", "errno", ")", "error", "(", "\"%qs is not a valid offset in %qs\"", ",", "str", ",", "\"-mstack-protector-guard-offset=\"", ")", ";", "arm_stack_protector_guard_offset", "=", "offs", ";", "}", "SUBTARGET_OVERRIDE_INTERNAL_OPTIONS", ";", "}", ""], "natrual_language": ["Reset", "options", "between", "modes", "that", "the", "user", "has", "specified", "."], "TS_V_token": ["arm", "0", "\"target CPU does not support THUMB instructions\"", "0", "0", "1", "0", "\"target CPU does not support unaligned accesses\"", "0", "0", "0", "\"incompatible options %<-mstack-protector-guard=global%> and \"", "\"%<-mstack-protector-guard-offset=%s%>\"", "0", "0", "\"%qs is not a valid offset in %qs\"", "\"-mstack-protector-guard-offset=\""], "File": "arm", "Func": "arm_option_override_internal", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1946, "Length": 421, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getReturnSaveOffset", "(", ")", "const", "{", "return", "ReturnSaveOffset", ";", "}", ""], "natrual_language": ["getReturnSaveOffset", "-", "Return", "the", "previous", "frame", "offset", "to", "save", "the", "return", "address", "."], "TS_V_token": ["PowerPC"], "File": "PPCFrameLowering (2)", "Func": "getReturnSaveOffset", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1947, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_recompute_optlev_based_flags", "(", "struct", "gcc_options", "*", "opts", ",", "struct", "gcc_options", "*", "opts_set", ")", "{", "if", "(", "TARGET_64BIT_P", "(", "opts", "->", "x_ix86_isa_flags", ")", ")", "{", "if", "(", "opts", "->", "x_optimize", ">=", "1", ")", "SET_OPTION_IF_UNSET", "(", "opts", ",", "opts_set", ",", "flag_omit_frame_pointer", ",", "!", "USE_IX86_FRAME_POINTER", ")", ";", "if", "(", "opts", "->", "x_flag_asynchronous_unwind_tables", "&&", "TARGET_64BIT_MS_ABI", ")", "SET_OPTION_IF_UNSET", "(", "opts", ",", "opts_set", ",", "flag_unwind_tables", ",", "1", ")", ";", "if", "(", "opts", "->", "x_flag_asynchronous_unwind_tables", "==", "2", ")", "opts", "->", "x_flag_unwind_tables", "=", "opts", "->", "x_flag_asynchronous_unwind_tables", "=", "1", ";", "if", "(", "opts", "->", "x_flag_pcc_struct_return", "==", "2", ")", "opts", "->", "x_flag_pcc_struct_return", "=", "0", ";", "}", "else", "{", "if", "(", "opts", "->", "x_optimize", ">=", "1", ")", "SET_OPTION_IF_UNSET", "(", "opts", ",", "opts_set", ",", "flag_omit_frame_pointer", ",", "!", "(", "USE_IX86_FRAME_POINTER", "||", "opts", "->", "x_optimize_size", ")", ")", ";", "if", "(", "opts", "->", "x_flag_asynchronous_unwind_tables", "==", "2", ")", "opts", "->", "x_flag_asynchronous_unwind_tables", "=", "!", "USE_IX86_FRAME_POINTER", ";", "if", "(", "opts", "->", "x_flag_pcc_struct_return", "==", "2", ")", "{", "if", "(", "TARGET_IAMCU_P", "(", "opts", "->", "x_target_flags", ")", ")", "opts", "->", "x_flag_pcc_struct_return", "=", "0", ";", "else", "opts", "->", "x_flag_pcc_struct_return", "=", "DEFAULT_PCC_STRUCT_RETURN", ";", "}", "}", "}", ""], "natrual_language": ["(", "Re", ")", "compute", "option", "overrides", "affected", "by", "optimization", "levels", "in", "target-specific", "ways", "."], "TS_V_token": ["i386", "1", "1", "2", "1", "2", "0", "1", "2", "2", "0"], "File": "i386-options", "Func": "ix86_recompute_optlev_based_flags", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1948, "Length": 174, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCSection", "*", "getNonexecutableStackSection", "(", "MCContext", "&", "Ctx", ")", "const", "override", "{", "return", "nullptr", ";", "}", ""], "natrual_language": ["Targets", "can", "implement", "this", "method", "to", "specify", "a", "section", "to", "switch", "to", "if", "the", "translation", "unit", "does", "n't", "have", "any", "trampolines", "that", "require", "an", "executable", "stack", "."], "TS_V_token": ["X86"], "File": "X86MCAsmInfo9", "Func": "getNonexecutableStackSection", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1949, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Thumb1InstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "DestReg", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "assert", "(", "(", "RC", "==", "ARM", "::", "tGPRRegisterClass", "||", "(", "TargetRegisterInfo", "::", "isPhysicalRegister", "(", "DestReg", ")", "&&", "isARMLowRegister", "(", "DestReg", ")", ")", ")", "&&", "\"Unknown regclass!\"", ")", ";", "if", "(", "RC", "==", "ARM", "::", "tGPRRegisterClass", "||", "(", "TargetRegisterInfo", "::", "isPhysicalRegister", "(", "DestReg", ")", "&&", "isARMLowRegister", "(", "DestReg", ")", ")", ")", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "*", "MF", ".", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "(", "PseudoSourceValue", "::", "getFixedStack", "(", "FI", ")", ")", ",", "MachineMemOperand", "::", "MOLoad", ",", "MFI", ".", "getObjectSize", "(", "FI", ")", ",", "MFI", ".", "getObjectAlignment", "(", "FI", ")", ")", ";", "AddDefaultPred", "(", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "tRestore", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ")", ";", "}", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARM", "ARM::tGPRRegisterClass", "ARM", "\"Unknown regclass!\"", "ARM::tGPRRegisterClass", "ARM", "ARM::tRestore", "0"], "File": "Thumb1InstrInfo27", "Func": "loadRegFromStackSlot", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1950, "Length": 200, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_option_check_internal", "(", "struct", "gcc_options", "*", "opts", ")", "{", "int", "flags", "=", "opts", "->", "x_target_flags", ";", "const", "struct", "arm_fpu_desc", "*", "fpu_desc", "=", "&", "all_fpus", "[", "opts", "->", "x_arm_fpu_index", "]", ";", "if", "(", "TARGET_IWMMXT", "&&", "TARGET_VFP", "&&", "ARM_FPU_FSET_HAS", "(", "fpu_desc", "->", "features", ",", "FPU_FL_NEON", ")", ")", "error", "(", "\"iWMMXt and NEON are incompatible\"", ")", ";", "if", "(", "TARGET_ARM_P", "(", "flags", ")", "&&", "!", "ARM_FSET_HAS_CPU1", "(", "insn_flags", ",", "FL_NOTM", ")", ")", "error", "(", "\"target CPU does not support ARM mode\"", ")", ";", "if", "(", "(", "TARGET_TPCS_FRAME", "||", "TARGET_TPCS_LEAF_FRAME", ")", "&&", "TARGET_ARM_P", "(", "flags", ")", ")", "warning", "(", "0", ",", "\"enabling backtrace support is only meaningful when compiling for the Thumb\"", ")", ";", "if", "(", "TARGET_ARM_P", "(", "flags", ")", "&&", "TARGET_CALLEE_INTERWORKING", ")", "warning", "(", "0", ",", "\"enabling callee interworking support is only meaningful when compiling for the Thumb\"", ")", ";", "if", "(", "TARGET_ARM_P", "(", "flags", ")", "&&", "write_symbols", "!=", "NO_DEBUG", "&&", "!", "TARGET_APCS_FRAME", "&&", "(", "TARGET_DEFAULT", "&", "MASK_APCS_FRAME", ")", ")", "warning", "(", "0", ",", "\"-g with -mno-apcs-frame may not give sensible debugging\"", ")", ";", "if", "(", "TARGET_THUMB_P", "(", "flags", ")", "&&", "TARGET_IWMMXT", ")", "error", "(", "\"iWMMXt unsupported under Thumb mode\"", ")", ";", "if", "(", "TARGET_HARD_TP", "&&", "TARGET_THUMB1_P", "(", "flags", ")", ")", "error", "(", "\"can not use -mtp=cp15 with 16-bit Thumb\"", ")", ";", "if", "(", "TARGET_THUMB_P", "(", "flags", ")", "&&", "TARGET_VXWORKS_RTP", "&&", "flag_pic", ")", "{", "error", "(", "\"RTP PIC is incompatible with Thumb\"", ")", ";", "flag_pic", "=", "0", ";", "}", "if", "(", "target_slow_flash_data", "&&", "(", "(", "!", "(", "arm_arch7", "&&", "!", "arm_arch_notm", ")", "&&", "!", "arm_arch7em", ")", "||", "(", "TARGET_THUMB1_P", "(", "flags", ")", "||", "flag_pic", "||", "TARGET_NEON", ")", ")", ")", "error", "(", "\"-mslow-flash-data only supports non-pic code on armv7-m targets\"", ")", ";", "}", ""], "natrual_language": ["Check", "any", "incompatible", "options", "that", "the", "user", "has", "specified", "."], "TS_V_token": ["arm", "\"iWMMXt and NEON are incompatible\"", "\"target CPU does not support ARM mode\"", "0", "\"enabling backtrace support is only meaningful when compiling for the Thumb\"", "0", "\"enabling callee interworking support is only meaningful when compiling for the Thumb\"", "0", "\"-g with -mno-apcs-frame may not give sensible debugging\"", "\"iWMMXt unsupported under Thumb mode\"", "\"can not use -mtp=cp15 with 16-bit Thumb\"", "\"RTP PIC is incompatible with Thumb\"", "0", "\"-mslow-flash-data only supports non-pic code on armv7-m targets\""], "File": "arm5", "Func": "arm_option_check_internal", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1951, "Length": 220, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "aarch64_sve_float_arith_immediate_p", "(", "rtx", "x", ",", "bool", "negate_p", ")", "{", "rtx", "elt", ";", "REAL_VALUE_TYPE", "r", ";", "if", "(", "!", "const_vec_duplicate_p", "(", "x", ",", "&", "elt", ")", "||", "GET_CODE", "(", "elt", ")", "!=", "CONST_DOUBLE", ")", "return", "false", ";", "r", "=", "*", "CONST_DOUBLE_REAL_VALUE", "(", "elt", ")", ";", "if", "(", "negate_p", ")", "r", "=", "real_value_negate", "(", "&", "r", ")", ";", "if", "(", "real_equal", "(", "&", "r", ",", "&", "dconst1", ")", ")", "return", "true", ";", "if", "(", "real_equal", "(", "&", "r", ",", "&", "dconsthalf", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "X", "is", "a", "valid", "immediate", "operand", "for", "an", "SVE", "FADD", "or", "FSUB", "instruction", ".", "Negate", "X", "first", "if", "NEGATE_P", "is", "true", "."], "TS_V_token": ["aarch64"], "File": "aarch64", "Func": "aarch64_sve_float_arith_immediate_p", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1952, "Length": 89, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "function_arg_advance", "(", "struct", "sparc_args", "*", "cum", ",", "enum", "machine_mode", "mode", ",", "tree", "type", ",", "int", "named", ")", "{", "int", "slotno", ",", "regno", ",", "padding", ";", "slotno", "=", "function_arg_slotno", "(", "cum", ",", "mode", ",", "type", ",", "named", ",", "0", ",", "&", "regno", ",", "&", "padding", ")", ";", "if", "(", "slotno", "!=", "-", "1", ")", "cum", "->", "words", "+=", "padding", ";", "if", "(", "TARGET_ARCH32", ")", "{", "cum", "->", "words", "+=", "(", "mode", "!=", "BLKmode", "?", "ROUND_ADVANCE", "(", "GET_MODE_SIZE", "(", "mode", ")", ")", ":", "ROUND_ADVANCE", "(", "int_size_in_bytes", "(", "type", ")", ")", ")", ";", "}", "else", "{", "if", "(", "type", "&&", "AGGREGATE_TYPE_P", "(", "type", ")", ")", "{", "int", "size", "=", "int_size_in_bytes", "(", "type", ")", ";", "if", "(", "size", "<=", "8", ")", "++", "cum", "->", "words", ";", "else", "if", "(", "size", "<=", "16", ")", "cum", "->", "words", "+=", "2", ";", "else", "++", "cum", "->", "words", ";", "}", "else", "{", "cum", "->", "words", "+=", "(", "mode", "!=", "BLKmode", "?", "ROUND_ADVANCE", "(", "GET_MODE_SIZE", "(", "mode", ")", ")", ":", "ROUND_ADVANCE", "(", "int_size_in_bytes", "(", "type", ")", ")", ")", ";", "}", "}", "}", ""], "natrual_language": ["Handle", "the", "FUNCTION_ARG_ADVANCE", "macro", ".", "Update", "the", "data", "in", "CUM", "to", "advance", "over", "an", "argument", "of", "mode", "MODE", "and", "data", "type", "TYPE", ".", "TYPE", "is", "null", "for", "libcalls", "where", "that", "information", "may", "not", "be", "available", "."], "TS_V_token": ["sparc", "0", "1", "8", "16", "2"], "File": "sparc3", "Func": "function_arg_advance", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1953, "Length": 174, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "SparcInstrInfo", "::", "isLoadFromStackSlot", "(", "const", "MachineInstr", "*", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "SP", "::", "LDri", "||", "MI", "->", "getOpcode", "(", ")", "==", "SP", "::", "LDXri", "||", "MI", "->", "getOpcode", "(", ")", "==", "SP", "::", "LDFri", "||", "MI", "->", "getOpcode", "(", ")", "==", "SP", "::", "LDDFri", ")", "{", "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": ["Sparc", "Sparc", "SP::LDri", "SP::LDXri", "SP::LDFri", "SP::LDDFri", "1", "2", "2", "0", "1", "0", "0"], "File": "SparcInstrInfo2", "Func": "isLoadFromStackSlot", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1954, "Length": 128, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "thumb_far_jump_used_p", "(", "void", ")", "{", "rtx_insn", "*", "insn", ";", "bool", "far_jump", "=", "false", ";", "unsigned", "int", "func_size", "=", "0", ";", "if", "(", "cfun", "->", "machine", "->", "far_jump_used", ")", "return", "1", ";", "if", "(", "!", "(", "ARM_DOUBLEWORD_ALIGN", "||", "reload_completed", ")", ")", "{", "if", "(", "df_regs_ever_live_p", "(", "ARG_POINTER_REGNUM", ")", ")", "cfun", "->", "machine", "->", "arg_pointer_live", "=", "1", ";", "else", "if", "(", "!", "cfun", "->", "machine", "->", "arg_pointer_live", ")", "return", "0", ";", "}", "if", "(", "reload_in_progress", "||", "reload_completed", ")", "return", "0", ";", "for", "(", "insn", "=", "get_insns", "(", ")", ";", "insn", ";", "insn", "=", "NEXT_INSN", "(", "insn", ")", ")", "{", "if", "(", "JUMP_P", "(", "insn", ")", "&&", "get_attr_far_jump", "(", "insn", ")", "==", "FAR_JUMP_YES", ")", "{", "far_jump", "=", "true", ";", "}", "func_size", "+=", "get_attr_length", "(", "insn", ")", ";", "}", "if", "(", "far_jump", ")", "{", "if", "(", "(", "func_size", "*", "3", ")", ">=", "2048", ")", "{", "cfun", "->", "machine", "->", "far_jump_used", "=", "1", ";", "return", "1", ";", "}", "}", "return", "0", ";", "}", ""], "natrual_language": ["Returns", "non-zero", "if", "the", "current", "function", "contains", ",", "or", "might", "contain", "a", "far", "jump", "."], "TS_V_token": ["arm", "0", "1", "1", "0", "0", "3", "2048", "1", "1", "0"], "File": "arm", "Func": "thumb_far_jump_used_p", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1955, "Length": 160, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "call_ABI_of_interest", "(", "tree", "fndecl", ")", "{", "if", "(", "symtab", "->", "state", "==", "EXPANSION", ")", "{", "struct", "cgraph_node", "*", "c_node", ";", "if", "(", "fndecl", "==", "NULL_TREE", ")", "return", "true", ";", "if", "(", "DECL_EXTERNAL", "(", "fndecl", ")", ")", "return", "true", ";", "c_node", "=", "cgraph_node", "::", "get", "(", "fndecl", ")", ";", "c_node", "=", "c_node", "->", "ultimate_alias_target", "(", ")", ";", "return", "!", "c_node", "->", "only_called_directly_p", "(", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "TRUE", "if", "a", "call", "to", "function", "FNDECL", "may", "be", "one", "that", "potentially", "affects", "the", "function", "calling", "ABI", "of", "the", "object", "file", "."], "TS_V_token": ["rs6000"], "File": "rs60004", "Func": "call_ABI_of_interest", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1956, "Length": 71, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "bool", "isShuffleMaskLegal", "(", "const", "SmallVectorImpl", "<", "int", ">", "&", "Mask", ",", "EVT", "VT", ")", "const", "{", "return", "false", ";", "}", ""], "natrual_language": ["Targets", "can", "use", "this", "to", "indicate", "that", "they", "only", "support", "some", "VECTOR_SHUFFLE", "operations", ",", "those", "with", "specific", "masks", "."], "TS_V_token": ["Mips"], "File": "MipsSEISelLowering20", "Func": "isShuffleMaskLegal", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1957, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_validate_mcpu", "(", "const", "char", "*", "str", ",", "const", "struct", "processor", "*", "*", "res", ",", "unsigned", "long", "*", "isa_flags", ")", "{", "std", "::", "string", "invalid_extension", ";", "enum", "aarch64_parse_opt_result", "parse_res", "=", "aarch64_parse_cpu", "(", "str", ",", "res", ",", "isa_flags", ",", "&", "invalid_extension", ")", ";", "if", "(", "parse_res", "==", "AARCH64_PARSE_OK", ")", "return", "true", ";", "switch", "(", "parse_res", ")", "{", "case", "AARCH64_PARSE_MISSING_ARG", ":", "error", "(", "\"missing cpu name in %<-mcpu=%s%>\"", ",", "str", ")", ";", "break", ";", "case", "AARCH64_PARSE_INVALID_ARG", ":", "error", "(", "\"unknown value %qs for %<-mcpu%>\"", ",", "str", ")", ";", "aarch64_print_hint_for_core", "(", "str", ")", ";", "break", ";", "case", "AARCH64_PARSE_INVALID_FEATURE", ":", "error", "(", "\"invalid feature modifier %qs in %<-mcpu=%s%>\"", ",", "invalid_extension", ".", "c_str", "(", ")", ",", "str", ")", ";", "aarch64_print_hint_for_extensions", "(", "invalid_extension", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Validate", "a", "command-line", "-mcpu", "option", ".", "Parse", "the", "cpu", "and", "extensions", "(", "if", "any", ")", "specified", "in", "STR", "and", "throw", "errors", "if", "appropriate", ".", "Put", "the", "results", "if", "they", "are", "valid", "in", "RES", "and", "ISA_FLAGS", ".", "Return", "whether", "the", "option", "is", "valid", "."], "TS_V_token": ["aarch64", "\"missing cpu name in %<-mcpu=%s%>\"", "\"unknown value %qs for %<-mcpu%>\"", "\"invalid feature modifier %qs in %<-mcpu=%s%>\""], "File": "aarch646", "Func": "aarch64_validate_mcpu", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1958, "Length": 120, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "PPCTargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "const", "SDLoc", "&", "dl", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCRetInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCRetInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "(", "Subtarget", ".", "isSVR4ABI", "(", ")", "&&", "CallConv", "==", "CallingConv", "::", "Cold", ")", "?", "RetCC_PPC_Cold", ":", "RetCC_PPC", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RVLocs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Can only return in registers!\"", ")", ";", "SDValue", "Val", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "dl", ",", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ",", "InFlag", ")", ";", "Chain", "=", "Val", ".", "getValue", "(", "1", ")", ";", "InFlag", "=", "Val", ".", "getValue", "(", "2", ")", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown loc info!\"", ")", ";", "case", "CCValAssign", "::", "Full", ":", "break", ";", "case", "CCValAssign", "::", "AExt", ":", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "TRUNCATE", ",", "dl", ",", "VA", ".", "getValVT", "(", ")", ",", "Val", ")", ";", "break", ";", "case", "CCValAssign", "::", "ZExt", ":", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "AssertZext", ",", "dl", ",", "VA", ".", "getLocVT", "(", ")", ",", "Val", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "TRUNCATE", ",", "dl", ",", "VA", ".", "getValVT", "(", ")", ",", "Val", ")", ";", "break", ";", "case", "CCValAssign", "::", "SExt", ":", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "AssertSext", ",", "dl", ",", "VA", ".", "getLocVT", "(", ")", ",", "Val", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "TRUNCATE", ",", "dl", ",", "VA", ".", "getValVT", "(", ")", ",", "Val", ")", ";", "break", ";", "}", "InVals", ".", "push_back", "(", "Val", ")", ";", "}", "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": ["PowerPC", "PPC", "ISD::InputArg", "16", "PPC", "PPC", "0", "\"Can only return in registers!\"", "1", "2", "\"Unknown loc info!\"", "ISD::TRUNCATE", "ISD::AssertZext", "ISD::TRUNCATE", "ISD::AssertSext", "ISD::TRUNCATE"], "File": "PPCISelLowering (2)7", "Func": "LowerCallResult", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1959, "Length": 374, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "FISCFrameLowering", "::", "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": ["FISC", "FISC"], "File": "FISCFrameLowering", "Func": "hasFP", "Target": "FISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1960, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "AArch64AsmParser", "::", "tryParseRegister", "(", ")", "{", "MCAsmParser", "&", "Parser", "=", "getParser", "(", ")", ";", "const", "AsmToken", "&", "Tok", "=", "Parser", ".", "getTok", "(", ")", ";", "assert", "(", "Tok", ".", "is", "(", "AsmToken", "::", "Identifier", ")", "&&", "\"Token is not an Identifier\"", ")", ";", "std", "::", "string", "lowerCase", "=", "Tok", ".", "getString", "(", ")", ".", "lower", "(", ")", ";", "if", "(", "isSVEVectorOrPredicateRegister", "(", "lowerCase", ")", ")", "return", "-", "1", ";", "unsigned", "RegNum", "=", "matchRegisterNameAlias", "(", "lowerCase", ",", "false", ")", ";", "if", "(", "RegNum", "==", "0", ")", "RegNum", "=", "StringSwitch", "<", "unsigned", ">", "(", "lowerCase", ")", ".", "Case", "(", "\"fp\"", ",", "AArch64", "::", "FP", ")", ".", "Case", "(", "\"lr\"", ",", "AArch64", "::", "LR", ")", ".", "Case", "(", "\"x31\"", ",", "AArch64", "::", "XZR", ")", ".", "Case", "(", "\"w31\"", ",", "AArch64", "::", "WZR", ")", ".", "Default", "(", "0", ")", ";", "if", "(", "RegNum", "==", "0", ")", "return", "-", "1", ";", "Parser", ".", "Lex", "(", ")", ";", "return", "RegNum", ";", "}", ""], "natrual_language": ["tryParseRegister", "-", "parse", "one", "register", "if", "possible"], "TS_V_token": ["AArch64", "AArch64", "\"Token is not an Identifier\"", "1", "0", "\"fp\"", "AArch64::FP", "\"lr\"", "AArch64::LR", "\"x31\"", "AArch64::XZR", "\"w31\"", "AArch64::WZR", "0", "0", "1"], "File": "AArch64AsmParser59", "Func": "tryParseRegister", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1961, "Length": 153, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MVT", "getScalarShiftAmountTy", "(", "const", "DataLayout", "&", ",", "EVT", ")", "const", "override", "{", "return", "MVT", "::", "i32", ";", "}", ""], "natrual_language": ["Return", "the", "type", "to", "use", "for", "a", "scalar", "shift", "opcode", ",", "given", "the", "shifted", "amount", "type", "."], "TS_V_token": ["VE", "MVT::i32"], "File": "VEISelLowering", "Func": "getScalarShiftAmountTy", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1962, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCRegisterInfo", "::", "lowerQuadwordRestore", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "unsigned", "FrameIndex", ")", "const", "{", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "const", "PPCSubtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "Subtarget", ".", "getInstrInfo", "(", ")", ";", "DebugLoc", "DL", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "Register", "DestReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "assert", "(", "MI", ".", "definesRegister", "(", "DestReg", ")", "&&", "\"RESTORE_QUADWORD does not define its destination\"", ")", ";", "Register", "Reg", "=", "PPC", "::", "X0", "+", "(", "DestReg", "-", "PPC", "::", "G8p0", ")", "*", "2", ";", "bool", "IsLittleEndian", "=", "Subtarget", ".", "isLittleEndian", "(", ")", ";", "addFrameReference", "(", "BuildMI", "(", "MBB", ",", "II", ",", "DL", ",", "TII", ".", "get", "(", "PPC", "::", "LD", ")", ",", "Reg", ")", ",", "FrameIndex", ",", "IsLittleEndian", "?", "8", ":", "0", ")", ";", "addFrameReference", "(", "BuildMI", "(", "MBB", ",", "II", ",", "DL", ",", "TII", ".", "get", "(", "PPC", "::", "LD", ")", ",", "Reg", "+", "1", ")", ",", "FrameIndex", ",", "IsLittleEndian", "?", "0", ":", "8", ")", ";", "MBB", ".", "erase", "(", "II", ")", ";", "}", ""], "natrual_language": ["lowerQuadwordRestore", "-", "Generate", "code", "to", "restore", "paired", "general", "register", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "0", "\"RESTORE_QUADWORD does not define its destination\"", "PPC::X0", "PPC::G8p0", "2", "PPC::LD", "8", "0", "PPC::LD", "1", "0", "8"], "File": "PPCRegisterInfo (2)3", "Func": "lowerQuadwordRestore", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1963, "Length": 203, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "uint16_t", ",", "uint16_t", ">", "X86InstrInfo", "::", "getExecutionDomain", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "uint16_t", "domain", "=", "(", "MI", ".", "getDesc", "(", ")", ".", "TSFlags", ">>", "X86II", "::", "SSEDomainShift", ")", "&", "3", ";", "unsigned", "opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "uint16_t", "validDomains", "=", "0", ";", "if", "(", "domain", ")", "{", "validDomains", "=", "getExecutionDomainCustom", "(", "MI", ")", ";", "if", "(", "validDomains", ")", "return", "std", "::", "make_pair", "(", "domain", ",", "validDomains", ")", ";", "if", "(", "lookup", "(", "opcode", ",", "domain", ",", "ReplaceableInstrs", ")", ")", "{", "validDomains", "=", "0xe", ";", "}", "else", "if", "(", "lookup", "(", "opcode", ",", "domain", ",", "ReplaceableInstrsAVX2", ")", ")", "{", "validDomains", "=", "Subtarget", ".", "hasAVX2", "(", ")", "?", "0xe", ":", "0x6", ";", "}", "else", "if", "(", "lookup", "(", "opcode", ",", "domain", ",", "ReplaceableInstrsAVX2InsertExtract", ")", ")", "{", "if", "(", "!", "Subtarget", ".", "hasAVX2", "(", ")", ")", "return", "std", "::", "make_pair", "(", "0", ",", "0", ")", ";", "validDomains", "=", "0xe", ";", "}", "else", "if", "(", "lookupAVX512", "(", "opcode", ",", "domain", ",", "ReplaceableInstrsAVX512", ")", ")", "{", "validDomains", "=", "0xe", ";", "}", "else", "if", "(", "Subtarget", ".", "hasDQI", "(", ")", "&&", "lookupAVX512", "(", "opcode", ",", "domain", ",", "ReplaceableInstrsAVX512DQ", ")", ")", "{", "validDomains", "=", "0xe", ";", "}", "else", "if", "(", "Subtarget", ".", "hasDQI", "(", ")", ")", "{", "if", "(", "const", "uint16_t", "*", "table", "=", "lookupAVX512", "(", "opcode", ",", "domain", ",", "ReplaceableInstrsAVX512DQMasked", ")", ")", "{", "if", "(", "domain", "==", "1", "||", "(", "domain", "==", "3", "&&", "table", "[", "3", "]", "==", "opcode", ")", ")", "validDomains", "=", "0xa", ";", "else", "validDomains", "=", "0xc", ";", "}", "}", "}", "return", "std", "::", "make_pair", "(", "domain", ",", "validDomains", ")", ";", "}", ""], "natrual_language": ["Return", "the", "current", "execution", "domain", "and", "bit", "mask", "of", "possible", "domains", "for", "instruction", "."], "TS_V_token": ["X86", "X86", "X86II::SSEDomainShift", "3", "0", "0xe", "0xe", "0x6", "0", "0", "0xe", "0xe", "0xe", "1", "3", "3", "0xa", "0xc"], "File": "X86InstrInfo", "Func": "getExecutionDomain", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1964, "Length": 269, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ix86_register_priority", "(", "int", "hard_regno", ")", "{", "if", "(", "hard_regno", "==", "R12_REG", "||", "hard_regno", "==", "R13_REG", ")", "return", "0", ";", "if", "(", "hard_regno", "==", "BP_REG", ")", "return", "1", ";", "if", "(", "FIRST_REX_INT_REG", "<=", "hard_regno", "&&", "hard_regno", "<=", "LAST_REX_INT_REG", ")", "return", "2", ";", "if", "(", "FIRST_REX_SSE_REG", "<=", "hard_regno", "&&", "hard_regno", "<=", "LAST_REX_SSE_REG", ")", "return", "2", ";", "if", "(", "hard_regno", "==", "AX_REG", ")", "return", "4", ";", "return", "3", ";", "}", ""], "natrual_language": ["Return", "a", "register", "priority", "for", "hard", "reg", "REGNO", "."], "TS_V_token": ["i386", "0", "1", "2", "2", "4", "3"], "File": "i3864", "Func": "ix86_register_priority", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1965, "Length": 69, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const_iterator", "begin", "(", ")", "const", "{", "return", "m_SectToExData", ".", "begin", "(", ")", ";", "}", ""], "natrual_language": ["Recipe", "iterator", "methods", "."], "TS_V_token": ["ARM"], "File": "ARMException", "Func": "begin", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1966, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCTargetLowering", "::", "insertSSPDeclarations", "(", "Module", "&", "M", ")", "const", "{", "if", "(", "!", "Subtarget", ".", "isTargetLinux", "(", ")", ")", "return", "TargetLowering", "::", "insertSSPDeclarations", "(", "M", ")", ";", "}", ""], "natrual_language": ["Inserts", "necessary", "declarations", "for", "SSP", "(", "stack", "protection", ")", "purpose", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCISelLowering (2)7", "Func": "insertSSPDeclarations", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1967, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "SystemZTargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", ",", "const", "SDLoc", "&", "DL", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "if", "(", "Subtarget", ".", "hasVector", "(", ")", ")", "VerifyVectorTypes", "(", "Outs", ")", ";", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RetLocs", ";", "CCState", "RetCCInfo", "(", "CallConv", ",", "IsVarArg", ",", "MF", ",", "RetLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "RetCCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_SystemZ", ")", ";", "if", "(", "RetLocs", ".", "empty", "(", ")", ")", "return", "DAG", ".", "getNode", "(", "SystemZISD", "::", "RET_FLAG", ",", "DL", ",", "MVT", "::", "Other", ",", "Chain", ")", ";", "SDValue", "Glue", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", ";", "RetOps", ".", "push_back", "(", "Chain", ")", ";", "for", "(", "unsigned", "I", "=", "0", ",", "E", "=", "RetLocs", ".", "size", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "CCValAssign", "&", "VA", "=", "RetLocs", "[", "I", "]", ";", "SDValue", "RetValue", "=", "OutVals", "[", "I", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Can only return in registers!\"", ")", ";", "RetValue", "=", "convertValVTToLocVT", "(", "DAG", ",", "DL", ",", "VA", ",", "RetValue", ")", ";", "Register", "Reg", "=", "VA", ".", "getLocReg", "(", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "Reg", ",", "RetValue", ",", "Glue", ")", ";", "Glue", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "Reg", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "RetOps", "[", "0", "]", "=", "Chain", ";", "if", "(", "Glue", ".", "getNode", "(", ")", ")", "RetOps", ".", "push_back", "(", "Glue", ")", ";", "return", "DAG", ".", "getNode", "(", "SystemZISD", "::", "RET_FLAG", ",", "DL", ",", "MVT", "::", "Other", ",", "RetOps", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["SystemZ", "SystemZ", "ISD::OutputArg", "16", "SystemZ", "SystemZISD::RET_FLAG", "MVT::Other", "4", "0", "\"Can only return in registers!\"", "1", "0", "SystemZISD::RET_FLAG", "MVT::Other"], "File": "SystemZISelLowering108", "Func": "LowerReturn", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1968, "Length": 307, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx_insn", "*", "mips_epilogue_emit_cfa_restores", "(", "void", ")", "{", "rtx_insn", "*", "insn", ";", "insn", "=", "get_last_insn", "(", ")", ";", "if", "(", "mips_epilogue", ".", "cfa_restores", ")", "{", "gcc_assert", "(", "insn", "&&", "!", "REG_NOTES", "(", "insn", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "REG_NOTES", "(", "insn", ")", "=", "mips_epilogue", ".", "cfa_restores", ";", "mips_epilogue", ".", "cfa_restores", "=", "0", ";", "}", "return", "insn", ";", "}", ""], "natrual_language": ["Attach", "all", "pending", "register", "saves", "to", "the", "previous", "instruction", ".", "Return", "that", "instruction", "."], "TS_V_token": ["mips", "1", "0"], "File": "mips", "Func": "mips_epilogue_emit_cfa_restores", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1969, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", "\"Darwin PPC Assembly Printer\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["PowerPC", "\"Darwin PPC Assembly Printer\""], "File": "PPCAsmPrinter (2)1", "Func": "getPassName", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1970, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMFastISel", "::", "fastEmitInst_r", "(", "unsigned", "MachineInstOpcode", ",", "const", "TargetRegisterClass", "*", "RC", ",", "unsigned", "Op0", ",", "bool", "Op0IsKill", ")", "{", "unsigned", "ResultReg", "=", "createResultReg", "(", "RC", ")", ";", "const", "MCInstrDesc", "&", "II", "=", "TII", ".", "get", "(", "MachineInstOpcode", ")", ";", "Op0", "=", "constrainOperandRegClass", "(", "II", ",", "Op0", ",", "1", ")", ";", "if", "(", "II", ".", "getNumDefs", "(", ")", ">=", "1", ")", "{", "AddOptionalDefs", "(", "BuildMI", "(", "*", "FuncInfo", ".", "MBB", ",", "FuncInfo", ".", "InsertPt", ",", "DbgLoc", ",", "II", ",", "ResultReg", ")", ".", "addReg", "(", "Op0", ",", "Op0IsKill", "*", "RegState", "::", "Kill", ")", ")", ";", "}", "else", "{", "AddOptionalDefs", "(", "BuildMI", "(", "*", "FuncInfo", ".", "MBB", ",", "FuncInfo", ".", "InsertPt", ",", "DbgLoc", ",", "II", ")", ".", "addReg", "(", "Op0", ",", "Op0IsKill", "*", "RegState", "::", "Kill", ")", ")", ";", "AddOptionalDefs", "(", "BuildMI", "(", "*", "FuncInfo", ".", "MBB", ",", "FuncInfo", ".", "InsertPt", ",", "DbgLoc", ",", "TII", ".", "get", "(", "TargetOpcode", "::", "COPY", ")", ",", "ResultReg", ")", ".", "addReg", "(", "II", ".", "ImplicitDefs", "[", "0", "]", ")", ")", ";", "}", "return", "ResultReg", ";", "}", ""], "natrual_language": ["Emit", "a", "MachineInstr", "with", "one", "register", "operand", "and", "a", "result", "register", "in", "the", "given", "register", "class", "."], "TS_V_token": ["ARM", "ARM", "1", "1", "0"], "File": "ARMFastISel (2)2", "Func": "fastEmitInst_r", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1971, "Length": 170, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_init_pic_reg", "(", "void", ")", "{", "edge", "entry_edge", ";", "rtx_insn", "*", "seq", ";", "if", "(", "!", "ix86_use_pseudo_pic_reg", "(", ")", ")", "return", ";", "start_sequence", "(", ")", ";", "if", "(", "TARGET_64BIT", ")", "{", "if", "(", "ix86_cmodel", "==", "CM_LARGE_PIC", ")", "ix86_init_large_pic_reg", "(", "R11_REG", ")", ";", "else", "emit_insn", "(", "gen_set_got_rex64", "(", "pic_offset_table_rtx", ")", ")", ";", "}", "else", "{", "rtx", "reg", "=", "crtl", "->", "profile", "?", "gen_rtx_REG", "(", "Pmode", ",", "REAL_PIC_OFFSET_TABLE_REGNUM", ")", ":", "pic_offset_table_rtx", ";", "rtx_insn", "*", "insn", "=", "emit_insn", "(", "gen_set_got", "(", "reg", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "if", "(", "crtl", "->", "profile", ")", "emit_move_insn", "(", "pic_offset_table_rtx", ",", "reg", ")", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_FLUSH_QUEUE", ",", "NULL_RTX", ")", ";", "}", "seq", "=", "get_insns", "(", ")", ";", "end_sequence", "(", ")", ";", "entry_edge", "=", "single_succ_edge", "(", "ENTRY_BLOCK_PTR_FOR_FN", "(", "cfun", ")", ")", ";", "insert_insn_on_edge", "(", "seq", ",", "entry_edge", ")", ";", "commit_one_edge_insertion", "(", "entry_edge", ")", ";", "}", ""], "natrual_language": ["Create", "and", "initialize", "PIC", "register", "if", "required", "."], "TS_V_token": ["i386", "1"], "File": "i386", "Func": "ix86_init_pic_reg", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1972, "Length": 146, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "indexable_address_p", "(", "rtx", "xfoo0", ",", "rtx", "xfoo1", ",", "machine_mode", "mode", ",", "bool", "strict", ")", "{", "if", "(", "!", "CONSTANT_ADDRESS_P", "(", "xfoo0", ")", ")", "return", "false", ";", "if", "(", "BASE_REGISTER_P", "(", "xfoo1", ",", "strict", ")", ")", "return", "!", "flag_pic", "||", "mode", "==", "QImode", ";", "if", "(", "flag_pic", "&&", "symbolic_operand", "(", "xfoo0", ",", "SImode", ")", ")", "return", "false", ";", "return", "reg_plus_index_p", "(", "xfoo1", ",", "mode", ",", "strict", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "xfoo0", "and", "xfoo1", "constitute", "a", "valid", "indexed", "address", "."], "TS_V_token": ["vax"], "File": "vax", "Func": "indexable_address_p", "Target": "vax", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1973, "Length": 70, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMAsmPrinter", "::", "emitInlineAsmEnd", "(", "const", "MCSubtargetInfo", "&", "StartInfo", ",", "const", "MCSubtargetInfo", "*", "EndInfo", ")", "const", "{", "const", "bool", "WasThumb", "=", "isThumb", "(", "StartInfo", ")", ";", "if", "(", "!", "EndInfo", "||", "WasThumb", "!=", "isThumb", "(", "*", "EndInfo", ")", ")", "{", "OutStreamer", ".", "EmitAssemblerFlag", "(", "WasThumb", "?", "MCAF_Code16", ":", "MCAF_Code32", ")", ";", "}", "}", ""], "natrual_language": ["Let", "the", "target", "do", "anything", "it", "needs", "to", "do", "after", "emitting", "inlineasm", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMAsmPrinter1", "Func": "emitInlineAsmEnd", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1974, "Length": 53, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "int", "LC2200AsmParser", "::", "validateTargetOperandClass", "(", "MCParsedAsmOperand", "&", "Op", ",", "unsigned", "Kind", ")", "{", "return", "MCTargetAsmParser", "::", "validateTargetOperandClass", "(", "Op", ",", "Kind", ")", ";", "}", ""], "natrual_language": ["Allow", "a", "target", "to", "add", "special", "case", "operand", "matching", "for", "things", "that", "tblgen", "doesn't/ca", "n't", "handle", "effectively", "."], "TS_V_token": ["LC2200", "LC2200"], "File": "LC2200AsmParser", "Func": "validateTargetOperandClass", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1975, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_truly_noop_truncation", "(", "poly_uint64", "outprec", ",", "poly_uint64", "inprec", ")", "{", "return", "!", "TARGET_64BIT", "||", "inprec", "<=", "32", "||", "outprec", ">", "32", ";", "}", ""], "natrual_language": ["Implement", "TARGET_TRULY_NOOP_TRUNCATION", "."], "TS_V_token": ["mips", "32", "32"], "File": "mips", "Func": "mips_truly_noop_truncation", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1976, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_lx_address_p", "(", "rtx", "addr", ",", "machine_mode", "mode", ")", "{", "if", "(", "GET_CODE", "(", "addr", ")", "!=", "PLUS", "||", "!", "REG_P", "(", "XEXP", "(", "addr", ",", "0", ")", ")", "||", "!", "REG_P", "(", "XEXP", "(", "addr", ",", "1", ")", ")", ")", "return", "false", ";", "if", "(", "ISA_HAS_LBX", "&&", "mode", "==", "QImode", ")", "return", "true", ";", "if", "(", "ISA_HAS_LHX", "&&", "mode", "==", "HImode", ")", "return", "true", ";", "if", "(", "ISA_HAS_LWX", "&&", "mode", "==", "SImode", ")", "return", "true", ";", "if", "(", "ISA_HAS_LDX", "&&", "mode", "==", "DImode", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "ADDR", "matches", "the", "pattern", "for", "the", "L", "{", "B", ",", "H", ",", "W", ",", "D", "}", "{", ",", "U", "}", "X", "load", "indexed", "address", "instruction", ".", "Note", "that", "such", "addresses", "are", "not", "considered", "legitimate", "in", "the", "TARGET_LEGITIMATE_ADDRESS_P", "sense", ",", "because", "their", "use", "is", "so", "restricted", "."], "TS_V_token": ["mips", "0", "1"], "File": "mips4", "Func": "mips_lx_address_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1977, "Length": 93, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "char", "*", "getOpcodeName", "(", "unsigned", "Opcode", ")", "{", "const", "char", "*", "Name", "=", "\"\"", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "break", ";", "case", "AArch64", "::", "B", ":", "Name", "=", "\"AArch64::B\"", ";", "break", ";", "case", "AArch64", "::", "Bcc", ":", "Name", "=", "\"AArch64::Bcc\"", ";", "break", ";", "case", "AArch64", "::", "BR", ":", "Name", "=", "\"AArch64::BR\"", ";", "break", ";", "case", "AArch64", "::", "BRAA", ":", "Name", "=", "\"AArch64::BRAA\"", ";", "break", ";", "case", "AArch64", "::", "BRAAZ", ":", "Name", "=", "\"AArch64::BRAAZ\"", ";", "break", ";", "case", "AArch64", "::", "BRAB", ":", "Name", "=", "\"AArch64::BRAB\"", ";", "break", ";", "case", "AArch64", "::", "BRABZ", ":", "Name", "=", "\"AArch64::BRABZ\"", ";", "break", ";", "case", "AArch64", "::", "BL", ":", "Name", "=", "\"AArch64::BL\"", ";", "break", ";", "case", "AArch64", "::", "BLR", ":", "Name", "=", "\"AArch64::BLR\"", ";", "break", ";", "case", "AArch64", "::", "BLRAA", ":", "Name", "=", "\"AArch64::BLRAA\"", ";", "break", ";", "case", "AArch64", "::", "BLRAAZ", ":", "Name", "=", "\"AArch64::BLRAAZ\"", ";", "break", ";", "case", "AArch64", "::", "BLRAB", ":", "Name", "=", "\"AArch64::BLRAB\"", ";", "break", ";", "case", "AArch64", "::", "BLRABZ", ":", "Name", "=", "\"AArch64::BLRABZ\"", ";", "break", ";", "case", "AArch64", "::", "CBZW", ":", "Name", "=", "\"AArch64::CBZW\"", ";", "break", ";", "case", "AArch64", "::", "CBZX", ":", "Name", "=", "\"AArch64::CBZX\"", ";", "break", ";", "case", "AArch64", "::", "CBNZW", ":", "Name", "=", "\"AArch64::CBNZW\"", ";", "break", ";", "case", "AArch64", "::", "CBNZX", ":", "Name", "=", "\"AArch64::CBNZX\"", ";", "break", ";", "case", "AArch64", "::", "CCMPWr", ":", "Name", "=", "\"AArch64::CCMPWr\"", ";", "break", ";", "case", "AArch64", "::", "CCMPXr", ":", "Name", "=", "\"AArch64::CCMPXr\"", ";", "break", ";", "case", "AArch64", "::", "G_FCMP", ":", "Name", "=", "\"AArch64::G_FCMP\"", ";", "break", ";", "case", "AArch64", "::", "G_ICMP", ":", "Name", "=", "\"AArch64::G_ICMP\"", ";", "break", ";", "case", "AArch64", "::", "TBZW", ":", "Name", "=", "\"AArch64::TBZW\"", ";", "break", ";", "case", "AArch64", "::", "TBZX", ":", "Name", "=", "\"AArch64::TBZX\"", ";", "break", ";", "case", "AArch64", "::", "TBNZW", ":", "Name", "=", "\"AArch64::TBNZW\"", ";", "break", ";", "case", "AArch64", "::", "TBNZX", ":", "Name", "=", "\"AArch64::TBNZX\"", ";", "break", ";", "case", "AArch64", "::", "RET", ":", "Name", "=", "\"AArch64::RET\"", ";", "break", ";", "case", "AArch64", "::", "RETAA", ":", "Name", "=", "\"AArch64::RETAA\"", ";", "break", ";", "case", "AArch64", "::", "RETAB", ":", "Name", "=", "\"AArch64::RETAB\"", ";", "break", ";", "case", "AArch64", "::", "SVC", ":", "Name", "=", "\"AArch64::SVC\"", ";", "break", ";", "}", "return", "Name", ";", "}", ""], "natrual_language": ["Return", "a", "string", "representation", "for", "an", "opcode", "."], "TS_V_token": ["AArch64", "\"\"", "AArch64::B", "\"AArch64::B\"", "AArch64::Bcc", "\"AArch64::Bcc\"", "AArch64::BR", "\"AArch64::BR\"", "AArch64::BRAA", "\"AArch64::BRAA\"", "AArch64::BRAAZ", "\"AArch64::BRAAZ\"", "AArch64::BRAB", "\"AArch64::BRAB\"", "AArch64::BRABZ", "\"AArch64::BRABZ\"", "AArch64::BL", "\"AArch64::BL\"", "AArch64::BLR", "\"AArch64::BLR\"", "AArch64::BLRAA", "\"AArch64::BLRAA\"", "AArch64::BLRAAZ", "\"AArch64::BLRAAZ\"", "AArch64::BLRAB", "\"AArch64::BLRAB\"", "AArch64::BLRABZ", "\"AArch64::BLRABZ\"", "AArch64::CBZW", "\"AArch64::CBZW\"", "AArch64::CBZX", "\"AArch64::CBZX\"", "AArch64::CBNZW", "\"AArch64::CBNZW\"", "AArch64::CBNZX", "\"AArch64::CBNZX\"", "AArch64::CCMPWr", "\"AArch64::CCMPWr\"", "AArch64::CCMPXr", "\"AArch64::CCMPXr\"", "AArch64::G_FCMP", "\"AArch64::G_FCMP\"", "AArch64::G_ICMP", "\"AArch64::G_ICMP\"", "AArch64::TBZW", "\"AArch64::TBZW\"", "AArch64::TBZX", "\"AArch64::TBZX\"", "AArch64::TBNZW", "\"AArch64::TBNZW\"", "AArch64::TBNZX", "\"AArch64::TBNZX\"", "AArch64::RET", "\"AArch64::RET\"", "AArch64::RETAA", "\"AArch64::RETAA\"", "AArch64::RETAB", "\"AArch64::RETAB\"", "AArch64::SVC", "\"AArch64::SVC\""], "File": "AArch64BranchTargetAligner", "Func": "getOpcodeName", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1978, "Length": 350, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_expand_sse_fp_minmax", "(", "rtx", "dest", ",", "enum", "rtx_code", "code", ",", "rtx", "cmp_op0", ",", "rtx", "cmp_op1", ",", "rtx", "if_true", ",", "rtx", "if_false", ")", "{", "enum", "machine_mode", "mode", ";", "bool", "is_min", ";", "rtx", "tmp", ";", "if", "(", "code", "==", "LT", ")", ";", "else", "if", "(", "code", "==", "UNGE", ")", "{", "tmp", "=", "if_true", ";", "if_true", "=", "if_false", ";", "if_false", "=", "tmp", ";", "}", "else", "return", "false", ";", "if", "(", "rtx_equal_p", "(", "cmp_op0", ",", "if_true", ")", "&&", "rtx_equal_p", "(", "cmp_op1", ",", "if_false", ")", ")", "is_min", "=", "true", ";", "else", "if", "(", "rtx_equal_p", "(", "cmp_op1", ",", "if_true", ")", "&&", "rtx_equal_p", "(", "cmp_op0", ",", "if_false", ")", ")", "is_min", "=", "false", ";", "else", "return", "false", ";", "mode", "=", "GET_MODE", "(", "dest", ")", ";", "if", "(", "!", "flag_finite_math_only", "||", "!", "flag_unsafe_math_optimizations", ")", "{", "int", "u", "=", "is_min", "?", "UNSPEC_IEEE_MIN", ":", "UNSPEC_IEEE_MAX", ";", "rtvec", "v", ";", "if_true", "=", "force_reg", "(", "mode", ",", "if_true", ")", ";", "v", "=", "gen_rtvec", "(", "2", ",", "if_true", ",", "if_false", ")", ";", "tmp", "=", "gen_rtx_UNSPEC", "(", "mode", ",", "v", ",", "u", ")", ";", "}", "else", "{", "code", "=", "is_min", "?", "SMIN", ":", "SMAX", ";", "tmp", "=", "gen_rtx_fmt_ee", "(", "code", ",", "mode", ",", "if_true", ",", "if_false", ")", ";", "}", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "dest", ",", "tmp", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Detect", "conditional", "moves", "that", "exactly", "match", "min/max", "operational", "semantics", ".", "Note", "that", "this", "is", "IEEE", "safe", ",", "as", "long", "as", "we", "do", "n't", "interchange", "the", "operands", ".", "Returns", "FALSE", "if", "this", "conditional", "move", "does", "n't", "match", "a", "MIN/MAX", ",", "and", "TRUE", "if", "the", "operation", "is", "successful", "and", "instructions", "are", "emitted", "."], "TS_V_token": ["i386", "2"], "File": "i3863", "Func": "ix86_expand_sse_fp_minmax", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1979, "Length": 211, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "PPCTargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", ",", "SDLoc", "dl", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_PPC", ")", ";", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", "(", "1", ",", "Chain", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Can only return in registers!\"", ")", ";", "SDValue", "Arg", "=", "OutVals", "[", "i", "]", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown loc info!\"", ")", ";", "case", "CCValAssign", "::", "Full", ":", "break", ";", "case", "CCValAssign", "::", "AExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "ISD", "::", "ANY_EXTEND", ",", "dl", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "case", "CCValAssign", "::", "ZExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "ISD", "::", "ZERO_EXTEND", ",", "dl", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "case", "CCValAssign", "::", "SExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "ISD", "::", "SIGN_EXTEND", ",", "dl", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "}", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "dl", ",", "VA", ".", "getLocReg", "(", ")", ",", "Arg", ",", "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", "(", "PPCISD", "::", "RET_FLAG", ",", "dl", ",", "MVT", "::", "Other", ",", "RetOps", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["PowerPC", "PPC", "ISD::OutputArg", "16", "PPC", "4", "1", "0", "\"Can only return in registers!\"", "\"Unknown loc info!\"", "ISD::ANY_EXTEND", "ISD::ZERO_EXTEND", "ISD::SIGN_EXTEND", "1", "0", "PPCISD::RET_FLAG", "MVT::Other"], "File": "PPCISelLowering (2)2", "Func": "LowerReturn", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1980, "Length": 348, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "ConstraintWeight", "PPCTargetLowering", "::", "getSingleConstraintMatchWeight", "(", "AsmOperandInfo", "&", "info", ",", "const", "char", "*", "constraint", ")", "const", "{", "ConstraintWeight", "weight", "=", "CW_Invalid", ";", "Value", "*", "CallOperandVal", "=", "info", ".", "CallOperandVal", ";", "if", "(", "!", "CallOperandVal", ")", "return", "CW_Default", ";", "Type", "*", "type", "=", "CallOperandVal", "->", "getType", "(", ")", ";", "if", "(", "StringRef", "(", "constraint", ")", "==", "\"wc\"", "&&", "type", "->", "isIntegerTy", "(", "1", ")", ")", "return", "CW_Register", ";", "else", "if", "(", "(", "StringRef", "(", "constraint", ")", "==", "\"wa\"", "||", "StringRef", "(", "constraint", ")", "==", "\"wd\"", "||", "StringRef", "(", "constraint", ")", "==", "\"wf\"", ")", "&&", "type", "->", "isVectorTy", "(", ")", ")", "return", "CW_Register", ";", "else", "if", "(", "StringRef", "(", "constraint", ")", "==", "\"wi\"", "&&", "type", "->", "isIntegerTy", "(", "64", ")", ")", "return", "CW_Register", ";", "else", "if", "(", "StringRef", "(", "constraint", ")", "==", "\"ws\"", "&&", "type", "->", "isDoubleTy", "(", ")", ")", "return", "CW_Register", ";", "else", "if", "(", "StringRef", "(", "constraint", ")", "==", "\"ww\"", "&&", "type", "->", "isFloatTy", "(", ")", ")", "return", "CW_Register", ";", "switch", "(", "*", "constraint", ")", "{", "default", ":", "weight", "=", "TargetLowering", "::", "getSingleConstraintMatchWeight", "(", "info", ",", "constraint", ")", ";", "break", ";", "case", "'b'", ":", "if", "(", "type", "->", "isIntegerTy", "(", ")", ")", "weight", "=", "CW_Register", ";", "break", ";", "case", "'f'", ":", "if", "(", "type", "->", "isFloatTy", "(", ")", ")", "weight", "=", "CW_Register", ";", "break", ";", "case", "'d'", ":", "if", "(", "type", "->", "isDoubleTy", "(", ")", ")", "weight", "=", "CW_Register", ";", "break", ";", "case", "'v'", ":", "if", "(", "type", "->", "isVectorTy", "(", ")", ")", "weight", "=", "CW_Register", ";", "break", ";", "case", "'y'", ":", "weight", "=", "CW_Register", ";", "break", ";", "case", "'Z'", ":", "weight", "=", "CW_Memory", ";", "break", ";", "}", "return", "weight", ";", "}", ""], "natrual_language": ["Examine", "constraint", "string", "and", "operand", "type", "and", "determine", "a", "weight", "value", "."], "TS_V_token": ["PowerPC", "PPC", "\"wc\"", "1", "\"wa\"", "\"wd\"", "\"wf\"", "\"wi\"", "64", "\"ws\"", "\"ww\""], "File": "PPCISelLowering100", "Func": "getSingleConstraintMatchWeight", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1981, "Length": 273, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMAsmPrinter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "MCP", "=", "MF", ".", "getConstantPool", "(", ")", ";", "if", "(", "FlagSfiBranch", ")", "{", "NaclAlignAllJumpTargetsAndConstantPools", "(", "MF", ")", ";", "}", "return", "AsmPrinter", "::", "runOnMachineFunction", "(", "MF", ")", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM"], "File": "ARMAsmPrinter55", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1982, "Length": 49, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64TargetLowering", "::", "isFPImmLegal", "(", "const", "APFloat", "&", "Imm", ",", "EVT", "VT", ")", "const", "{", "if", "(", "Imm", ".", "isPosZero", "(", ")", "&&", "(", "VT", "==", "MVT", "::", "f64", "||", "VT", "==", "MVT", "::", "f32", "||", "(", "VT", "==", "MVT", "::", "f16", "&&", "Subtarget", "->", "hasFullFP16", "(", ")", ")", ")", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Legal fp imm: materialize 0 using the zero register\\n\"", ")", ";", "return", "true", ";", "}", "StringRef", "FPType", ";", "bool", "IsLegal", "=", "false", ";", "SmallString", "<", "128", ">", "ImmStrVal", ";", "Imm", ".", "toString", "(", "ImmStrVal", ")", ";", "if", "(", "VT", "==", "MVT", "::", "f64", ")", "{", "FPType", "=", "\"f64\"", ";", "IsLegal", "=", "AArch64_AM", "::", "getFP64Imm", "(", "Imm", ")", "!=", "-", "1", ";", "}", "else", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "{", "FPType", "=", "\"f32\"", ";", "IsLegal", "=", "AArch64_AM", "::", "getFP32Imm", "(", "Imm", ")", "!=", "-", "1", ";", "}", "else", "if", "(", "VT", "==", "MVT", "::", "f16", "&&", "Subtarget", "->", "hasFullFP16", "(", ")", ")", "{", "FPType", "=", "\"f16\"", ";", "IsLegal", "=", "AArch64_AM", "::", "getFP16Imm", "(", "Imm", ")", "!=", "-", "1", ";", "}", "if", "(", "IsLegal", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Legal \"", "<<", "FPType", "<<", "\" imm value: \"", "<<", "ImmStrVal", "<<", "\"\\n\"", ")", ";", "return", "true", ";", "}", "if", "(", "!", "FPType", ".", "empty", "(", ")", ")", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Illegal \"", "<<", "FPType", "<<", "\" imm value: \"", "<<", "ImmStrVal", "<<", "\"\\n\"", ")", ";", "else", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Illegal fp imm \"", "<<", "ImmStrVal", "<<", "\": unsupported fp type\\n\"", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "can", "instruction", "select", "the", "specified", "FP", "immediate", "natively", "."], "TS_V_token": ["AArch64", "AArch64", "MVT::f64", "MVT::f32", "MVT::f16", "\"Legal fp imm: materialize 0 using the zero register\\n\"", "128", "MVT::f64", "\"f64\"", "AArch64_AM::getFP64Imm", "1", "MVT::f32", "\"f32\"", "AArch64_AM::getFP32Imm", "1", "MVT::f16", "\"f16\"", "AArch64_AM::getFP16Imm", "1", "\"Legal \"", "\" imm value: \"", "\"\\n\"", "\"Illegal \"", "\" imm value: \"", "\"\\n\"", "\"Illegal fp imm \"", "\": unsupported fp type\\n\""], "File": "AArch64ISelLowering106", "Func": "isFPImmLegal", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1983, "Length": 242, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "push_minipool_fix", "(", "rtx_insn", "*", "insn", ",", "HOST_WIDE_INT", "address", ",", "rtx", "*", "loc", ",", "machine_mode", "mode", ",", "rtx", "value", ")", "{", "Mfix", "*", "fix", "=", "(", "Mfix", "*", ")", "obstack_alloc", "(", "&", "minipool_obstack", ",", "sizeof", "(", "*", "fix", ")", ")", ";", "fix", "->", "insn", "=", "insn", ";", "fix", "->", "address", "=", "address", ";", "fix", "->", "loc", "=", "loc", ";", "fix", "->", "mode", "=", "mode", ";", "fix", "->", "fix_size", "=", "MINIPOOL_FIX_SIZE", "(", "mode", ")", ";", "fix", "->", "value", "=", "value", ";", "fix", "->", "forwards", "=", "get_attr_pool_range", "(", "insn", ")", ";", "fix", "->", "backwards", "=", "get_attr_neg_pool_range", "(", "insn", ")", ";", "fix", "->", "minipool", "=", "NULL", ";", "gcc_assert", "(", "fix", "->", "forwards", "||", "fix", "->", "backwards", ")", ";", "if", "(", "ARM_DOUBLEWORD_ALIGN", "&&", "fix", "->", "fix_size", ">=", "8", ")", "minipool_pad", "=", "4", ";", "if", "(", "dump_file", ")", "{", "fprintf", "(", "dump_file", ",", "\";; %smode fixup for i%d; addr %lu, range (%ld,%ld): \"", ",", "GET_MODE_NAME", "(", "mode", ")", ",", "INSN_UID", "(", "insn", ")", ",", "(", "unsigned", "long", ")", "address", ",", "-", "1", "*", "(", "long", ")", "fix", "->", "backwards", ",", "(", "long", ")", "fix", "->", "forwards", ")", ";", "arm_print_value", "(", "dump_file", ",", "fix", "->", "value", ")", ";", "fprintf", "(", "dump_file", ",", "\"\\n\"", ")", ";", "}", "fix", "->", "next", "=", "NULL", ";", "if", "(", "minipool_fix_head", "!=", "NULL", ")", "minipool_fix_tail", "->", "next", "=", "fix", ";", "else", "minipool_fix_head", "=", "fix", ";", "minipool_fix_tail", "=", "fix", ";", "}", ""], "natrual_language": ["Record", "INSN", ",", "which", "will", "need", "fixing", "up", "to", "load", "a", "value", "from", "the", "minipool", ".", "ADDRESS", "is", "the", "offset", "of", "the", "insn", "since", "the", "start", "of", "the", "function", ";", "LOC", "is", "a", "pointer", "to", "the", "part", "of", "the", "insn", "which", "requires", "fixing", ";", "VALUE", "is", "the", "constant", "that", "must", "be", "loaded", ",", "which", "is", "of", "type", "MODE", "."], "TS_V_token": ["arm", "8", "4", "\";; %smode fixup for i%d; addr %lu, range (%ld,%ld): \"", "1", "\"\\n\""], "File": "arm4", "Func": "push_minipool_fix", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1984, "Length": 220, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_print_options_internal", "(", "FILE", "*", "file", ",", "int", "indent", ",", "const", "char", "*", "string", ",", "HOST_WIDE_INT", "flags", ",", "const", "char", "*", "prefix", ",", "const", "struct", "rs6000_opt_mask", "*", "opts", ",", "size_t", "num_elements", ")", "{", "size_t", "i", ";", "size_t", "start_column", "=", "0", ";", "size_t", "cur_column", ";", "size_t", "max_column", "=", "120", ";", "size_t", "prefix_len", "=", "strlen", "(", "prefix", ")", ";", "size_t", "comma_len", "=", "0", ";", "const", "char", "*", "comma", "=", "\"\"", ";", "if", "(", "indent", ")", "start_column", "+=", "fprintf", "(", "file", ",", "\"%*s\"", ",", "indent", ",", "\"\"", ")", ";", "if", "(", "!", "flags", ")", "{", "fprintf", "(", "stderr", ",", "DEBUG_FMT_S", ",", "string", ",", "\"\"", ")", ";", "return", ";", "}", "start_column", "+=", "fprintf", "(", "stderr", ",", "DEBUG_FMT_WX", ",", "string", ",", "flags", ")", ";", "cur_column", "=", "start_column", ";", "for", "(", "i", "=", "0", ";", "i", "<", "num_elements", ";", "i", "++", ")", "{", "bool", "invert", "=", "opts", "[", "i", "]", ".", "invert", ";", "const", "char", "*", "name", "=", "opts", "[", "i", "]", ".", "name", ";", "const", "char", "*", "no_str", "=", "\"\"", ";", "HOST_WIDE_INT", "mask", "=", "opts", "[", "i", "]", ".", "mask", ";", "size_t", "len", "=", "comma_len", "+", "prefix_len", "+", "strlen", "(", "name", ")", ";", "if", "(", "!", "invert", ")", "{", "if", "(", "(", "flags", "&", "mask", ")", "==", "0", ")", "{", "no_str", "=", "\"no-\"", ";", "len", "+=", "sizeof", "(", "\"no-\"", ")", "-", "1", ";", "}", "flags", "&=", "~", "mask", ";", "}", "else", "{", "if", "(", "(", "flags", "&", "mask", ")", "!=", "0", ")", "{", "no_str", "=", "\"no-\"", ";", "len", "+=", "sizeof", "(", "\"no-\"", ")", "-", "1", ";", "}", "flags", "|=", "mask", ";", "}", "cur_column", "+=", "len", ";", "if", "(", "cur_column", ">", "max_column", ")", "{", "fprintf", "(", "stderr", ",", "\", \\\\\\n%*s\"", ",", "(", "int", ")", "start_column", ",", "\"\"", ")", ";", "cur_column", "=", "start_column", "+", "len", ";", "comma", "=", "\"\"", ";", "}", "fprintf", "(", "file", ",", "\"%s%s%s%s\"", ",", "comma", ",", "prefix", ",", "no_str", ",", "name", ")", ";", "comma", "=", "\", \"", ";", "comma_len", "=", "sizeof", "(", "\", \"", ")", "-", "1", ";", "}", "fputs", "(", "\"\\n\"", ",", "file", ")", ";", "}", ""], "natrual_language": ["Helper", "function", "to", "print", "the", "current", "isa", "or", "misc", "options", "on", "a", "line", "."], "TS_V_token": ["rs6000", "0", "120", "0", "\"\"", "\"%*s\"", "\"\"", "\"\"", "0", "\"\"", "0", "\"no-\"", "\"no-\"", "1", "0", "\"no-\"", "\"no-\"", "1", "\", \\\\\\n%*s\"", "\"\"", "\"\"", "\"%s%s%s%s\"", "\", \"", "\", \"", "1", "\"\\n\""], "File": "rs60006", "Func": "rs6000_print_options_internal", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1985, "Length": 331, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isFMAFasterThanFMulAndFAdd", "(", "const", "MachineFunction", "&", "MF", ",", "EVT", "VT", ")", "const", "{", "if", "(", "!", "Subtarget", ".", "hasAnyFMA", "(", ")", ")", "return", "false", ";", "VT", "=", "VT", ".", "getScalarType", "(", ")", ";", "if", "(", "!", "VT", ".", "isSimple", "(", ")", ")", "return", "false", ";", "switch", "(", "VT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ")", "{", "case", "MVT", "::", "f16", ":", "return", "Subtarget", ".", "hasFP16", "(", ")", ";", "case", "MVT", "::", "f32", ":", "case", "MVT", "::", "f64", ":", "return", "true", ";", "default", ":", "break", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "an", "FMA", "operation", "is", "faster", "than", "a", "pair", "of", "fmul", "and", "fadd", "instructions", "."], "TS_V_token": ["X86", "X86", "MVT::f16", "MVT::f32", "MVT::f64"], "File": "X86ISelLowering (2)5", "Func": "isFMAFasterThanFMulAndFAdd", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1986, "Length": 92, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "nds32_can_use_bitci_p", "(", "int", "ival", ")", "{", "return", "(", "TARGET_ISA_V3", "&&", "(", "ival", "<", "0", ")", "&&", "satisfies_constraint_Iu15", "(", "gen_int_mode", "(", "~", "ival", ",", "SImode", ")", ")", ")", ";", "}", ""], "natrual_language": ["Function", "to", "check", "if", "'bitci", "'", "instruction", "can", "be", "used", "with", "IVAL", "."], "TS_V_token": ["nds32", "0"], "File": "nds32-predicates2", "Func": "nds32_can_use_bitci_p", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1987, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "HOST_WIDE_INT", "mips_asan_shadow_offset", "(", "void", ")", "{", "if", "(", "mips_abi", "==", "ABI_N32", ")", "return", "(", "HOST_WIDE_INT_1", "<<", "29", ")", ";", "if", "(", "POINTER_SIZE", "==", "64", ")", "return", "(", "HOST_WIDE_INT_1", "<<", "37", ")", ";", "else", "return", "HOST_WIDE_INT_C", "(", "0x0aaa0000", ")", ";", "}", ""], "natrual_language": ["Implement", "the", "TARGET_ASAN_SHADOW_OFFSET", "hook", "."], "TS_V_token": ["mips", "29", "64", "37", "0x0aaa0000"], "File": "mips1", "Func": "mips_asan_shadow_offset", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1988, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCFrameLowering", "::", "canUseAsEpilogue", "(", "const", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "MachineBasicBlock", "*", "TmpMBB", "=", "const_cast", "<", "MachineBasicBlock", "*", ">", "(", "&", "MBB", ")", ";", "return", "findScratchRegister", "(", "TmpMBB", ",", "true", ")", ";", "}", ""], "natrual_language": ["Check", "whether", "or", "not", "the", "given", "MBB", "can", "be", "used", "as", "a", "epilogue", "for", "the", "target", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCFrameLowering (2)", "Func": "canUseAsEpilogue", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1989, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86InstrInfo", "::", "isStoreToStackSlot", "(", "const", "MachineInstr", "*", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "X86", "::", "MOV8mr", ":", "case", "X86", "::", "MOV16mr", ":", "case", "X86", "::", "MOV32mr", ":", "case", "X86", "::", "MOV64mr", ":", "case", "X86", "::", "ST_FpP64m", ":", "case", "X86", "::", "MOVSSmr", ":", "case", "X86", "::", "MOVSDmr", ":", "case", "X86", "::", "MOVAPSmr", ":", "case", "X86", "::", "MOVAPDmr", ":", "case", "X86", "::", "MOVDQAmr", ":", "case", "X86", "::", "MMX_MOVD64mr", ":", "case", "X86", "::", "MMX_MOVQ64mr", ":", "case", "X86", "::", "MMX_MOVNTQmr", ":", "if", "(", "MI", "->", "getOperand", "(", "0", ")", ".", "isFI", "(", ")", "&&", "MI", "->", "getOperand", "(", "1", ")", ".", "isImm", "(", ")", "&&", "MI", "->", "getOperand", "(", "2", ")", ".", "isReg", "(", ")", "&&", "MI", "->", "getOperand", "(", "3", ")", ".", "isImm", "(", ")", "&&", "MI", "->", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", "==", "1", "&&", "MI", "->", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", "==", "0", "&&", "MI", "->", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", "==", "0", ")", "{", "FrameIndex", "=", "MI", "->", "getOperand", "(", "0", ")", ".", "getIndex", "(", ")", ";", "return", "MI", "->", "getOperand", "(", "X86AddrNumOperands", ")", ".", "getReg", "(", ")", ";", "}", "break", ";", "}", "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": ["X86", "X86", "X86::MOV8mr", "X86::MOV16mr", "X86::MOV32mr", "X86::MOV64mr", "X86::ST_FpP64m", "X86::MOVSSmr", "X86::MOVSDmr", "X86::MOVAPSmr", "X86::MOVAPDmr", "X86::MOVDQAmr", "X86::MMX_MOVD64mr", "X86::MMX_MOVQ64mr", "X86::MMX_MOVNTQmr", "0", "1", "2", "3", "1", "1", "2", "0", "3", "0", "0", "X86", "0"], "File": "X86InstrInfo108", "Func": "isStoreToStackSlot", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1990, "Length": 213, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "FixupLEAPass", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "Func", ")", "{", "MF", "=", "&", "Func", ";", "TM", "=", "&", "MF", "->", "getTarget", "(", ")", ";", "TII", "=", "TM", "->", "getInstrInfo", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Start X86FixupLEAs\\n\"", ";", ")", ";", "for", "(", "MachineFunction", "::", "iterator", "I", "=", "Func", ".", "begin", "(", ")", ",", "E", "=", "Func", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "processBasicBlock", "(", "Func", ",", "I", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"End X86FixupLEAs\\n\"", ";", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "\"Start X86FixupLEAs\\n\"", "\"End X86FixupLEAs\\n\""], "File": "X86FixupLEAs12", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1991, "Length": 91, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "{", "return", "\"NEON register pre-allocation pass\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["ARM", "\"NEON register pre-allocation pass\""], "File": "NEONPreAllocPass", "Func": "getPassName", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1992, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_valid_target_attribute_rec", "(", "tree", "args", ",", "struct", "gcc_options", "*", "opts", ")", "{", "if", "(", "TREE_CODE", "(", "args", ")", "==", "TREE_LIST", ")", "{", "bool", "ret", "=", "true", ";", "for", "(", ";", "args", ";", "args", "=", "TREE_CHAIN", "(", "args", ")", ")", "if", "(", "TREE_VALUE", "(", "args", ")", "&&", "!", "arm_valid_target_attribute_rec", "(", "TREE_VALUE", "(", "args", ")", ",", "opts", ")", ")", "ret", "=", "false", ";", "return", "ret", ";", "}", "else", "if", "(", "TREE_CODE", "(", "args", ")", "!=", "STRING_CST", ")", "{", "error", "(", "\"attribute % argument not a string\"", ")", ";", "return", "false", ";", "}", "char", "*", "argstr", "=", "ASTRDUP", "(", "TREE_STRING_POINTER", "(", "args", ")", ")", ";", "char", "*", "q", ";", "while", "(", "(", "q", "=", "strtok", "(", "argstr", ",", "\",\"", ")", ")", "!=", "NULL", ")", "{", "while", "(", "ISSPACE", "(", "*", "q", ")", ")", "++", "q", ";", "argstr", "=", "NULL", ";", "if", "(", "!", "strncmp", "(", "q", ",", "\"thumb\"", ",", "5", ")", ")", "opts", "->", "x_target_flags", "|=", "MASK_THUMB", ";", "else", "if", "(", "!", "strncmp", "(", "q", ",", "\"arm\"", ",", "3", ")", ")", "opts", "->", "x_target_flags", "&=", "~", "MASK_THUMB", ";", "else", "if", "(", "!", "strncmp", "(", "q", ",", "\"fpu=\"", ",", "4", ")", ")", "{", "if", "(", "!", "opt_enum_arg_to_value", "(", "OPT_mfpu_", ",", "q", "+", "4", ",", "&", "opts", "->", "x_arm_fpu_index", ",", "CL_TARGET", ")", ")", "{", "error", "(", "\"invalid fpu for attribute(target(\\\"%s\\\"))\"", ",", "q", ")", ";", "return", "false", ";", "}", "}", "else", "{", "error", "(", "\"attribute(target(\\\"%s\\\")) is unknown\"", ",", "q", ")", ";", "return", "false", ";", "}", "arm_option_check_internal", "(", "opts", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Inner", "function", "to", "process", "the", "attribute", "(", "(", "target", "(", "...", ")", ")", ")", ",", "take", "an", "argument", "and", "set", "the", "current", "options", "from", "the", "argument", ".", "If", "we", "have", "a", "list", ",", "recursively", "go", "over", "the", "list", "."], "TS_V_token": ["arm", "\"attribute % argument not a string\"", "\",\"", "\"thumb\"", "5", "\"arm\"", "3", "\"fpu=\"", "4", "4", "\"invalid fpu for attribute(target(\\\"%s\\\"))\"", "\"attribute(target(\\\"%s\\\")) is unknown\""], "File": "arm5", "Func": "arm_valid_target_attribute_rec", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1993, "Length": 240, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Register", "OutgoingValueHandler", "::", "getStackAddress", "(", "const", "CCValAssign", "&", "VA", ",", "MachineMemOperand", "*", "&", "MMO", ")", "{", "MachineFunction", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "const", "TargetFrameLowering", "*", "TFL", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "LLT", "p0", "=", "LLT", "::", "pointer", "(", "0", ",", "32", ")", ";", "LLT", "s32", "=", "LLT", "::", "scalar", "(", "32", ")", ";", "Register", "SPReg", "=", "MRI", ".", "createGenericVirtualRegister", "(", "p0", ")", ";", "MIRBuilder", ".", "buildCopy", "(", "SPReg", ",", "Register", "(", "Mips", "::", "SP", ")", ")", ";", "Register", "OffsetReg", "=", "MRI", ".", "createGenericVirtualRegister", "(", "s32", ")", ";", "unsigned", "Offset", "=", "VA", ".", "getLocMemOffset", "(", ")", ";", "MIRBuilder", ".", "buildConstant", "(", "OffsetReg", ",", "Offset", ")", ";", "Register", "AddrReg", "=", "MRI", ".", "createGenericVirtualRegister", "(", "p0", ")", ";", "MIRBuilder", ".", "buildGEP", "(", "AddrReg", ",", "SPReg", ",", "OffsetReg", ")", ";", "MachinePointerInfo", "MPO", "=", "MachinePointerInfo", "::", "getStack", "(", "MIRBuilder", ".", "getMF", "(", ")", ",", "Offset", ")", ";", "unsigned", "Size", "=", "alignTo", "(", "VA", ".", "getValVT", "(", ")", ".", "getSizeInBits", "(", ")", ",", "8", ")", "/", "8", ";", "unsigned", "Align", "=", "MinAlign", "(", "TFL", "->", "getStackAlignment", "(", ")", ",", "Offset", ")", ";", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MPO", ",", "MachineMemOperand", "::", "MOStore", ",", "Size", ",", "Align", ")", ";", "return", "AddrReg", ";", "}", ""], "natrual_language": ["Materialize", "a", "VReg", "containing", "the", "address", "of", "the", "specified", "stack-based", "object", "."], "TS_V_token": ["Mips", "0", "32", "32", "Mips::SP", "8", "8"], "File": "MipsCallLowering10", "Func": "getStackAddress", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1994, "Length": 207, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "{", "TargetTransformInfo", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["X86"], "File": "X86TargetTransformInfo113", "Func": "getAnalysisUsage", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1995, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "OR1KTargetMachine", "&", "getTargetMachine", "(", ")", "{", "return", "static_cast", "<", "const", "OR1KTargetMachine", "&", ">", "(", "TM", ")", ";", "}", ""], "natrual_language": ["Return", "the", "target", "machine", "(", "if", "available", ")", "."], "TS_V_token": ["OR1K", "OR1K", "OR1K"], "File": "OR1KISelDAGToDAG", "Func": "getTargetMachine", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1996, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ARMSubtarget", "::", "ARMSubtarget", "(", "const", "std", "::", "string", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetOptions", "&", "Options", ")", ":", "ARMGenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "ARMProcFamily", "(", "Others", ")", ",", "ARMProcClass", "(", "None", ")", ",", "stackAlignment", "(", "4", ")", ",", "CPUString", "(", "CPU", ")", ",", "TargetTriple", "(", "TT", ")", ",", "Options", "(", "Options", ")", ",", "TargetABI", "(", "ARM_ABI_UNKNOWN", ")", "{", "initializeEnvironment", "(", ")", ";", "resetSubtargetFeatures", "(", "CPU", ",", "FS", ")", ";", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "4", "ARM"], "File": "ARMSubtarget28", "Func": "ARMSubtarget", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1997, "Length": 87, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "sh_function_ok_for_sibcall", "(", "tree", "decl", ",", "tree", "exp", "ATTRIBUTE_UNUSED", ")", "{", "return", "(", "1", "&&", "(", "!", "TARGET_SHCOMPACT", "||", "crtl", "->", "args", ".", "info", ".", "stack_regs", "==", "0", ")", "&&", "!", "sh_cfun_interrupt_handler_p", "(", ")", "&&", "(", "!", "flag_pic", "||", "TARGET_FDPIC", "||", "(", "decl", "&&", "!", "(", "TREE_PUBLIC", "(", "decl", ")", "||", "DECL_WEAK", "(", "decl", ")", ")", ")", "||", "(", "decl", "&&", "DECL_VISIBILITY", "(", "decl", ")", "!=", "VISIBILITY_DEFAULT", ")", ")", ")", ";", "}", ""], "natrual_language": ["If", "PIC", ",", "we", "can", "not", "make", "sibling", "calls", "to", "global", "functions", "because", "the", "PLT", "requires", "r12", "to", "be", "live", "."], "TS_V_token": ["sh", "1", "0"], "File": "sh5", "Func": "sh_function_ok_for_sibcall", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 1998, "Length": 73, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCFixupKindInfo", "&", "getFixupKindInfo", "(", "MCFixupKind", "Kind", ")", "const", "{", "const", "static", "MCFixupKindInfo", "InfosBE", "[", "PPC", "::", "NumTargetFixupKinds", "]", "=", "{", "{", "\"fixup_ppc_br24\"", ",", "6", ",", "24", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_ppc_brcond14\"", ",", "16", ",", "14", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_ppc_br24abs\"", ",", "6", ",", "24", ",", "0", "}", ",", "{", "\"fixup_ppc_brcond14abs\"", ",", "16", ",", "14", ",", "0", "}", ",", "{", "\"fixup_ppc_half16\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_ppc_half16ds\"", ",", "0", ",", "14", ",", "0", "}", ",", "{", "\"fixup_ppc_nofixup\"", ",", "0", ",", "0", ",", "0", "}", "}", ";", "const", "static", "MCFixupKindInfo", "InfosLE", "[", "PPC", "::", "NumTargetFixupKinds", "]", "=", "{", "{", "\"fixup_ppc_br24\"", ",", "2", ",", "24", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_ppc_brcond14\"", ",", "2", ",", "14", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_ppc_br24abs\"", ",", "2", ",", "24", ",", "0", "}", ",", "{", "\"fixup_ppc_brcond14abs\"", ",", "2", ",", "14", ",", "0", "}", ",", "{", "\"fixup_ppc_half16\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_ppc_half16ds\"", ",", "2", ",", "14", ",", "0", "}", ",", "{", "\"fixup_ppc_nofixup\"", ",", "0", ",", "0", ",", "0", "}", "}", ";", "if", "(", "Kind", "<", "FirstTargetFixupKind", ")", "return", "MCAsmBackend", "::", "getFixupKindInfo", "(", "Kind", ")", ";", "assert", "(", "unsigned", "(", "Kind", "-", "FirstTargetFixupKind", ")", "<", "getNumFixupKinds", "(", ")", "&&", "\"Invalid kind!\"", ")", ";", "return", "(", "IsLittleEndian", "?", "InfosLE", ":", "InfosBE", ")", "[", "Kind", "-", "FirstTargetFixupKind", "]", ";", "}", ""], "natrual_language": ["Get", "information", "on", "a", "fixup", "kind", "."], "TS_V_token": ["PowerPC", "PPC::NumTargetFixupKinds", "\"fixup_ppc_br24\"", "6", "24", "\"fixup_ppc_brcond14\"", "16", "14", "\"fixup_ppc_br24abs\"", "6", "24", "0", "\"fixup_ppc_brcond14abs\"", "16", "14", "0", "\"fixup_ppc_half16\"", "0", "16", "0", "\"fixup_ppc_half16ds\"", "0", "14", "0", "\"fixup_ppc_nofixup\"", "0", "0", "0", "PPC::NumTargetFixupKinds", "\"fixup_ppc_br24\"", "2", "24", "\"fixup_ppc_brcond14\"", "2", "14", "\"fixup_ppc_br24abs\"", "2", "24", "0", "\"fixup_ppc_brcond14abs\"", "2", "14", "0", "\"fixup_ppc_half16\"", "0", "16", "0", "\"fixup_ppc_half16ds\"", "2", "14", "0", "\"fixup_ppc_nofixup\"", "0", "0", "0", "\"Invalid kind!\""], "File": "PPCAsmBackend33", "Func": "getFixupKindInfo", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 1999, "Length": 227, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "TeeRISCFrameLowering", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "const", "TeeRISCInstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "TeeRISCInstrInfo", "*", ">", "(", "MF", ".", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "if", "(", "!", "hasReservedCallFrame", "(", "MF", ")", ")", "{", "MachineInstr", "*", "Old", "=", "I", ";", "int", "Amount", "=", "Old", "->", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", "+", "4", ";", "if", "(", "Amount", "!=", "0", ")", "{", "unsigned", "Align", "=", "getStackAlignment", "(", ")", ";", "Amount", "=", "(", "Amount", "+", "Align", "-", "1", ")", "/", "Align", "*", "Align", ";", "MachineInstr", "*", "New", ";", "if", "(", "Old", "->", "getOpcode", "(", ")", "==", "TeeRISC", "::", "ADJCALLSTACKDOWN", ")", "{", "New", "=", "BuildMI", "(", "MF", ",", "Old", "->", "getDebugLoc", "(", ")", ",", "TII", ".", "get", "(", "TeeRISC", "::", "ADD_IMM", ")", ",", "TeeRISC", "::", "SP", ")", ".", "addReg", "(", "TeeRISC", "::", "SP", ")", ".", "addImm", "(", "-", "Amount", ")", ";", "}", "else", "{", "assert", "(", "Old", "->", "getOpcode", "(", ")", "==", "TeeRISC", "::", "ADJCALLSTACKUP", ")", ";", "New", "=", "BuildMI", "(", "MF", ",", "Old", "->", "getDebugLoc", "(", ")", ",", "TII", ".", "get", "(", "TeeRISC", "::", "ADD_IMM", ")", ",", "TeeRISC", "::", "SP", ")", ".", "addReg", "(", "TeeRISC", "::", "SP", ")", ".", "addImm", "(", "Amount", ")", ";", "}", "MBB", ".", "insert", "(", "I", ",", "New", ")", ";", "}", "}", "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": ["TeeRISC", "TeeRISC", "TeeRISC", "TeeRISC", "0", "4", "0", "1", "TeeRISC::ADJCALLSTACKDOWN", "TeeRISC::ADD_IMM", "TeeRISC::SP", "TeeRISC::SP", "TeeRISC::ADJCALLSTACKUP", "TeeRISC::ADD_IMM", "TeeRISC::SP", "TeeRISC::SP"], "File": "TeeRISCFrameLowering", "Func": "eliminateCallFramePseudoInstr", "Target": "TeeRISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2000, "Length": 233, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCObjectWriter", "*", "createObjectWriter", "(", "raw_ostream", "&", "OS", ")", "const", "{", "return", "createMachObjectWriter", "(", "OS", ",", "true", ",", "object", "::", "mach", "::", "CTM_x86_64", ",", "object", "::", "mach", "::", "CSX86_ALL", ",", "true", ")", ";", "}", ""], "natrual_language": ["Create", "a", "new", "MCObjectWriter", "instance", "for", "use", "by", "the", "assembler", "backend", "to", "emit", "the", "final", "object", "file", "."], "TS_V_token": ["X86", "X86"], "File": "X86AsmBackend37", "Func": "createObjectWriter", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2001, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64TargetLowering", "::", "computeKnownBitsForTargetNode", "(", "const", "SDValue", "Op", ",", "KnownBits", "&", "Known", ",", "const", "APInt", "&", "DemandedElts", ",", "const", "SelectionDAG", "&", "DAG", ",", "unsigned", "Depth", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "AArch64ISD", "::", "CSEL", ":", "{", "KnownBits", "Known2", ";", "Known", "=", "DAG", ".", "computeKnownBits", "(", "Op", "->", "getOperand", "(", "0", ")", ",", "Depth", "+", "1", ")", ";", "Known2", "=", "DAG", ".", "computeKnownBits", "(", "Op", "->", "getOperand", "(", "1", ")", ",", "Depth", "+", "1", ")", ";", "Known", "=", "KnownBits", "::", "commonBits", "(", "Known", ",", "Known2", ")", ";", "break", ";", "}", "case", "AArch64ISD", "::", "LOADgot", ":", "case", "AArch64ISD", "::", "ADDlow", ":", "{", "if", "(", "!", "Subtarget", "->", "isTargetILP32", "(", ")", ")", "break", ";", "Known", ".", "Zero", "=", "APInt", "::", "getHighBitsSet", "(", "64", ",", "32", ")", ";", "break", ";", "}", "case", "AArch64ISD", "::", "ASSERT_ZEXT_BOOL", ":", "{", "Known", "=", "DAG", ".", "computeKnownBits", "(", "Op", "->", "getOperand", "(", "0", ")", ",", "Depth", "+", "1", ")", ";", "Known", ".", "Zero", "|=", "APInt", "(", "Known", ".", "getBitWidth", "(", ")", ",", "0xFE", ")", ";", "break", ";", "}", "case", "ISD", "::", "INTRINSIC_W_CHAIN", ":", "{", "ConstantSDNode", "*", "CN", "=", "cast", "<", "ConstantSDNode", ">", "(", "Op", "->", "getOperand", "(", "1", ")", ")", ";", "Intrinsic", "::", "ID", "IntID", "=", "static_cast", "<", "Intrinsic", "::", "ID", ">", "(", "CN", "->", "getZExtValue", "(", ")", ")", ";", "switch", "(", "IntID", ")", "{", "default", ":", "return", ";", "case", "Intrinsic", "::", "aarch64_ldaxr", ":", "case", "Intrinsic", "::", "aarch64_ldxr", ":", "{", "unsigned", "BitWidth", "=", "Known", ".", "getBitWidth", "(", ")", ";", "EVT", "VT", "=", "cast", "<", "MemIntrinsicSDNode", ">", "(", "Op", ")", "->", "getMemoryVT", "(", ")", ";", "unsigned", "MemBits", "=", "VT", ".", "getScalarSizeInBits", "(", ")", ";", "Known", ".", "Zero", "|=", "APInt", "::", "getHighBitsSet", "(", "BitWidth", ",", "BitWidth", "-", "MemBits", ")", ";", "return", ";", "}", "}", "break", ";", "}", "case", "ISD", "::", "INTRINSIC_WO_CHAIN", ":", "case", "ISD", "::", "INTRINSIC_VOID", ":", "{", "unsigned", "IntNo", "=", "cast", "<", "ConstantSDNode", ">", "(", "Op", ".", "getOperand", "(", "0", ")", ")", "->", "getZExtValue", "(", ")", ";", "switch", "(", "IntNo", ")", "{", "default", ":", "break", ";", "case", "Intrinsic", "::", "aarch64_neon_umaxv", ":", "case", "Intrinsic", "::", "aarch64_neon_uminv", ":", "{", "MVT", "VT", "=", "Op", ".", "getOperand", "(", "1", ")", ".", "getValueType", "(", ")", ".", "getSimpleVT", "(", ")", ";", "unsigned", "BitWidth", "=", "Known", ".", "getBitWidth", "(", ")", ";", "if", "(", "VT", "==", "MVT", "::", "v8i8", "||", "VT", "==", "MVT", "::", "v16i8", ")", "{", "assert", "(", "BitWidth", ">=", "8", "&&", "\"Unexpected width!\"", ")", ";", "APInt", "Mask", "=", "APInt", "::", "getHighBitsSet", "(", "BitWidth", ",", "BitWidth", "-", "8", ")", ";", "Known", ".", "Zero", "|=", "Mask", ";", "}", "else", "if", "(", "VT", "==", "MVT", "::", "v4i16", "||", "VT", "==", "MVT", "::", "v8i16", ")", "{", "assert", "(", "BitWidth", ">=", "16", "&&", "\"Unexpected width!\"", ")", ";", "APInt", "Mask", "=", "APInt", "::", "getHighBitsSet", "(", "BitWidth", ",", "BitWidth", "-", "16", ")", ";", "Known", ".", "Zero", "|=", "Mask", ";", "}", "break", ";", "}", "break", ";", "}", "}", "}", "}", ""], "natrual_language": ["Determine", "which", "of", "the", "bits", "specified", "in", "Mask", "are", "known", "to", "be", "either", "zero", "or", "one", "and", "return", "them", "in", "the", "KnownZero/KnownOne", "bitsets", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64ISD::CSEL", "0", "1", "1", "1", "AArch64ISD::LOADgot", "AArch64ISD::ADDlow", "64", "32", "AArch64ISD::ASSERT_ZEXT_BOOL", "0", "1", "0xFE", "ISD::INTRINSIC_W_CHAIN", "1", "Intrinsic::ID", "Intrinsic::ID", "Intrinsic::aarch64_ldaxr", "Intrinsic::aarch64_ldxr", "ISD::INTRINSIC_WO_CHAIN", "ISD::INTRINSIC_VOID", "0", "Intrinsic::aarch64_neon_umaxv", "Intrinsic::aarch64_neon_uminv", "1", "MVT::v8i8", "MVT::v16i8", "8", "\"Unexpected width!\"", "8", "MVT::v4i16", "MVT::v8i16", "16", "\"Unexpected width!\"", "16"], "File": "AArch64ISelLowering (2)2", "Func": "computeKnownBitsForTargetNode", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2002, "Length": 475, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getNumFixupKinds", "(", ")", "const", "override", "{", "return", "0", ";", "}", ""], "natrual_language": ["Get", "the", "number", "of", "target", "specific", "fixup", "kinds", "."], "TS_V_token": ["LoongArch", "0"], "File": "LoongArchAsmBackend", "Func": "getNumFixupKinds", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2003, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsPassConfig", "::", "addInstSelector", "(", ")", "{", "addPass", "(", "createMipsModuleISelDagPass", "(", "getMipsTargetMachine", "(", ")", ")", ")", ";", "addPass", "(", "createMips16ISelDag", "(", "getMipsTargetMachine", "(", ")", ",", "getOptLevel", "(", ")", ")", ")", ";", "addPass", "(", "createMipsSEISelDag", "(", "getMipsTargetMachine", "(", ")", ",", "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": ["Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips"], "File": "MipsTargetMachine46", "Func": "addInstSelector", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2004, "Length": 49, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "X86TargetLowering", "*", "getTLI", "(", ")", "const", "{", "return", "TLI", ";", "}", ""], "natrual_language": ["Getter", "for", "generic", "TargetLowering", "class", "."], "TS_V_token": ["X86", "X86"], "File": "X86TargetTransformInfo (2)", "Func": "getTLI", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2005, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SMLoc", "getStartLoc", "(", ")", "const", "{", "return", "StartLoc", ";", "}", ""], "natrual_language": ["getStartLoc", "-", "Get", "the", "location", "of", "the", "first", "token", "of", "this", "operand", "."], "TS_V_token": ["AArch64"], "File": "AArch64AsmParser13", "Func": "getStartLoc", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2006, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_xcoff_asm_init_sections", "(", "void", ")", "{", "read_only_data_section", "=", "get_unnamed_section", "(", "0", ",", "rs6000_xcoff_output_readonly_section_asm_op", ",", "&", "xcoff_read_only_section_name", ")", ";", "private_data_section", "=", "get_unnamed_section", "(", "SECTION_WRITE", ",", "rs6000_xcoff_output_readwrite_section_asm_op", ",", "&", "xcoff_private_data_section_name", ")", ";", "tls_data_section", "=", "get_unnamed_section", "(", "SECTION_TLS", ",", "rs6000_xcoff_output_tls_section_asm_op", ",", "&", "xcoff_tls_data_section_name", ")", ";", "tls_private_data_section", "=", "get_unnamed_section", "(", "SECTION_TLS", ",", "rs6000_xcoff_output_tls_section_asm_op", ",", "&", "xcoff_private_data_section_name", ")", ";", "read_only_private_data_section", "=", "get_unnamed_section", "(", "0", ",", "rs6000_xcoff_output_readonly_section_asm_op", ",", "&", "xcoff_private_data_section_name", ")", ";", "toc_section", "=", "get_unnamed_section", "(", "0", ",", "rs6000_xcoff_output_toc_section_asm_op", ",", "NULL", ")", ";", "readonly_data_section", "=", "read_only_data_section", ";", "}", ""], "natrual_language": ["Implement", "TARGET_ASM_INIT_SECTIONS", "."], "TS_V_token": ["powerpcspe", "0", "0", "0"], "File": "powerpcspe", "Func": "rs6000_xcoff_asm_init_sections", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2007, "Length": 83, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SparcInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "RC", "==", "&", "SP", "::", "I64RegsRegClass", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "SP", "::", "STXri", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ";", "else", "if", "(", "RC", "==", "&", "SP", "::", "IntRegsRegClass", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "SP", "::", "STri", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ";", "else", "if", "(", "RC", "==", "&", "SP", "::", "FPRegsRegClass", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "SP", "::", "STFri", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ";", "else", "if", "(", "RC", "==", "&", "SP", "::", "DFPRegsRegClass", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "SP", "::", "STDFri", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ";", "else", "llvm_unreachable", "(", "\"Can't store this register to stack slot\"", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["Sparc", "Sparc", "SP::I64RegsRegClass", "SP::STXri", "0", "SP::IntRegsRegClass", "SP::STri", "0", "SP::FPRegsRegClass", "SP::STFri", "0", "SP::DFPRegsRegClass", "SP::STDFri", "0", "\"Can't store this register to stack slot\""], "File": "SparcInstrInfo52", "Func": "storeRegToStackSlot", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2008, "Length": 246, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "LEGInstrInfo", "::", "removeBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "int", "*", "BytesRemoved", ")", "const", "{", "if", "(", "MBB", ".", "empty", "(", ")", ")", "return", "0", ";", "unsigned", "NumRemoved", "=", "0", ";", "auto", "I", "=", "MBB", ".", "end", "(", ")", ";", "do", "{", "--", "I", ";", "unsigned", "Opc", "=", "I", "->", "getOpcode", "(", ")", ";", "if", "(", "(", "Opc", "==", "LEG", "::", "B", ")", "||", "(", "Opc", "==", "LEG", "::", "Bcc", ")", ")", "{", "auto", "ToDelete", "=", "I", ";", "++", "I", ";", "MBB", ".", "erase", "(", "ToDelete", ")", ";", "NumRemoved", "++", ";", "}", "}", "while", "(", "I", "!=", "MBB", ".", "begin", "(", ")", ")", ";", "return", "NumRemoved", ";", "}", ""], "natrual_language": ["Remove", "the", "branching", "code", "at", "the", "end", "of", "the", "specific", "MBB", "."], "TS_V_token": ["LEG", "LEG", "0", "0", "LEG::B", "LEG::Bcc"], "File": "LEGInstrInfo", "Func": "removeBranch", "Target": "LEG", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2009, "Length": 108, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "nds32_asm_function_begin_epilogue", "(", "FILE", "*", "file", ")", "{", "if", "(", "!", "frame_pointer_needed", "&&", "!", "cfun", "->", "machine", "->", "naked_p", "&&", "cfun", "->", "machine", "->", "fp_as_gp_p", ")", "{", "fprintf", "(", "file", ",", "\"\\t! ----------------------------------------\\n\"", ")", ";", "fprintf", "(", "file", ",", "\"\\t! Claim the range of fp-as-gp \"", "\"link time optimization\\n\"", ")", ";", "fprintf", "(", "file", ",", "\"\\t.omit_fp_end\\n\"", ")", ";", "fprintf", "(", "file", ",", "\"\\t! ----------------------------------------\\n\"", ")", ";", "}", "fprintf", "(", "file", ",", "\"\\t! BEGIN EPILOGUE\\n\"", ")", ";", "}", ""], "natrual_language": ["Before", "rtl", "epilogue", "has", "been", "expanded", ",", "this", "function", "is", "used", "."], "TS_V_token": ["nds32", "\"\\t! ----------------------------------------\\n\"", "\"\\t! Claim the range of fp-as-gp \"", "\"link time optimization\\n\"", "\"\\t.omit_fp_end\\n\"", "\"\\t! ----------------------------------------\\n\"", "\"\\t! BEGIN EPILOGUE\\n\""], "File": "nds322", "Func": "nds32_asm_function_begin_epilogue", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2010, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "moxie_compute_frame", "(", "void", ")", "{", "int", "stack_alignment", "=", "STACK_BOUNDARY", "/", "BITS_PER_UNIT", ";", "int", "padding_locals", ";", "int", "regno", ";", "cfun", "->", "machine", "->", "local_vars_size", "=", "get_frame_size", "(", ")", ";", "padding_locals", "=", "cfun", "->", "machine", "->", "local_vars_size", "%", "stack_alignment", ";", "if", "(", "padding_locals", ")", "padding_locals", "=", "stack_alignment", "-", "padding_locals", ";", "cfun", "->", "machine", "->", "local_vars_size", "+=", "padding_locals", ";", "cfun", "->", "machine", "->", "callee_saved_reg_size", "=", "0", ";", "for", "(", "regno", "=", "0", ";", "regno", "<", "FIRST_PSEUDO_REGISTER", ";", "regno", "++", ")", "if", "(", "df_regs_ever_live_p", "(", "regno", ")", "&&", "(", "!", "call_used_regs", "[", "regno", "]", ")", ")", "cfun", "->", "machine", "->", "callee_saved_reg_size", "+=", "4", ";", "cfun", "->", "machine", "->", "size_for_adjusting_sp", "=", "crtl", "->", "args", ".", "pretend_args_size", "+", "cfun", "->", "machine", "->", "local_vars_size", "+", "(", "ACCUMULATE_OUTGOING_ARGS", "?", "(", "HOST_WIDE_INT", ")", "crtl", "->", "outgoing_args_size", ":", "0", ")", ";", "}", ""], "natrual_language": ["Compute", "the", "size", "of", "the", "local", "area", "and", "the", "size", "to", "be", "adjusted", "by", "the", "*", "prologue", "and", "epilogue", "."], "TS_V_token": ["moxie", "0", "0", "4", "0"], "File": "moxie5", "Func": "moxie_compute_frame", "Target": "moxie", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2011, "Length": 134, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "timode_scalar_chain", "::", "fix_debug_reg_uses", "(", "rtx", "reg", ")", "{", "if", "(", "!", "flag_var_tracking", ")", "return", ";", "df_ref", "ref", ",", "next", ";", "for", "(", "ref", "=", "DF_REG_USE_CHAIN", "(", "REGNO", "(", "reg", ")", ")", ";", "ref", ";", "ref", "=", "next", ")", "{", "rtx_insn", "*", "insn", "=", "DF_REF_INSN", "(", "ref", ")", ";", "next", "=", "DF_REF_NEXT_REG", "(", "ref", ")", ";", "while", "(", "next", "&&", "DF_REF_INSN", "(", "next", ")", "==", "insn", ")", "next", "=", "DF_REF_NEXT_REG", "(", "next", ")", ";", "if", "(", "DEBUG_INSN_P", "(", "insn", ")", ")", "{", "bool", "changed", "=", "false", ";", "for", "(", ";", "ref", "!=", "next", ";", "ref", "=", "DF_REF_NEXT_REG", "(", "ref", ")", ")", "{", "rtx", "*", "loc", "=", "DF_REF_LOC", "(", "ref", ")", ";", "if", "(", "REG_P", "(", "*", "loc", ")", "&&", "GET_MODE", "(", "*", "loc", ")", "==", "V1TImode", ")", "{", "*", "loc", "=", "gen_rtx_SUBREG", "(", "TImode", ",", "*", "loc", ",", "0", ")", ";", "changed", "=", "true", ";", "}", "}", "if", "(", "changed", ")", "df_insn_rescan", "(", "insn", ")", ";", "}", "}", "}", ""], "natrual_language": ["Fix", "uses", "of", "converted", "REG", "in", "debug", "insns", "."], "TS_V_token": ["i386", "0"], "File": "i386-features", "Func": "fix_debug_reg_uses", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2012, "Length": 159, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isCheapToSpeculateCttz", "(", ")", "const", "override", "{", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "it", "is", "cheap", "to", "speculate", "a", "call", "to", "intrinsic", "cttz", "."], "TS_V_token": ["AArch64"], "File": "AArch64ISelLowering (2)", "Func": "isCheapToSpeculateCttz", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2013, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ia64_libgcc_floating_mode_supported_p", "(", "machine_mode", "mode", ")", "{", "switch", "(", "mode", ")", "{", "case", "SFmode", ":", "case", "DFmode", ":", "return", "true", ";", "case", "XFmode", ":", "return", "false", ";", "return", "true", ";", "case", "TFmode", ":", "return", "false", ";", "return", "true", ";", "default", ":", "return", "false", ";", "}", "}", ""], "natrual_language": ["Implement", "TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P", "."], "TS_V_token": ["ia64"], "File": "ia644", "Func": "ia64_libgcc_floating_mode_supported_p", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2014, "Length": 47, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "WaitInsert", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "!", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "Attribute", "::", "StrictFP", ")", ")", "return", "false", ";", "const", "X86Subtarget", "&", "ST", "=", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "const", "X86InstrInfo", "*", "TII", "=", "ST", ".", "getInstrInfo", "(", ")", ";", "bool", "Changed", "=", "false", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "{", "for", "(", "MachineBasicBlock", "::", "iterator", "MI", "=", "MBB", ".", "begin", "(", ")", ";", "MI", "!=", "MBB", ".", "end", "(", ")", ";", "++", "MI", ")", "{", "if", "(", "!", "X86", "::", "isX87Instruction", "(", "*", "MI", ")", ")", "continue", ";", "if", "(", "!", "(", "MI", "->", "mayRaiseFPException", "(", ")", "||", "MI", "->", "mayLoadOrStore", "(", ")", ")", "||", "isX87ControlInstruction", "(", "*", "MI", ")", ")", "continue", ";", "MachineBasicBlock", "::", "iterator", "AfterMI", "=", "std", "::", "next", "(", "MI", ")", ";", "if", "(", "AfterMI", "!=", "MBB", ".", "end", "(", ")", "&&", "X86", "::", "isX87Instruction", "(", "*", "AfterMI", ")", "&&", "!", "isX87NonWaitingControlInstruction", "(", "*", "AfterMI", ")", ")", "continue", ";", "BuildMI", "(", "MBB", ",", "AfterMI", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "X86", "::", "WAIT", ")", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"\\nInsert wait after:\\t\"", "<<", "*", "MI", ")", ";", "++", "MI", ";", "Changed", "=", "true", ";", "}", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86::isX87Instruction", "X86::isX87Instruction", "X86::WAIT", "\"\\nInsert wait after:\\t\""], "File": "X86InsertWait", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2015, "Length": 217, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "splitFramePushPop", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "(", "getFramePointerReg", "(", ")", "==", "ARM", "::", "R7", "&&", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "DisableFramePointerElim", "(", "MF", ")", ")", "||", "isThumb1Only", "(", ")", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "frame", "setup", "is", "split", "into", "two", "separate", "pushes", "(", "first", "r0-r7", ",", "lr", "then", "r8-r11", ")", ",", "principally", "so", "that", "the", "frame", "pointer", "is", "adjacent", "to", "lr", "."], "TS_V_token": ["ARM", "ARM::R7"], "File": "ARMSubtarget100", "Func": "splitFramePushPop", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2016, "Length": 39, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMPassConfig", "::", "addIRPasses", "(", ")", "{", "if", "(", "TM", "->", "Options", ".", "ThreadModel", "==", "ThreadModel", "::", "Single", ")", "addPass", "(", "createLowerAtomicPass", "(", ")", ")", ";", "else", "addPass", "(", "createAtomicExpandPass", "(", "TM", ")", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "EnableAtomicTidy", ")", "addPass", "(", "createCFGSimplificationPass", "(", "-", "1", ",", "[", "this", "]", "(", "const", "Function", "&", "F", ")", "{", "const", "auto", "&", "ST", "=", "this", "->", "TM", "->", "getSubtarget", "<", "ARMSubtarget", ">", "(", "F", ")", ";", "return", "ST", ".", "hasAnyDataBarrier", "(", ")", "&&", "!", "ST", ".", "isThumb1Only", "(", ")", ";", "}", ")", ")", ";", "TargetPassConfig", "::", "addIRPasses", "(", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createInterleavedAccessPass", "(", "TM", ")", ")", ";", "}", ""], "natrual_language": ["Add", "common", "target", "configurable", "passes", "that", "perform", "LLVM", "IR", "to", "IR", "transforms", "following", "machine", "independent", "optimization", "."], "TS_V_token": ["ARM", "ARM", "1", "ARM"], "File": "ARMTargetMachine (2)1", "Func": "addIRPasses", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2017, "Length": 128, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ARMTTIImpl", "::", "getIntImmCost", "(", "unsigned", "Opcode", ",", "unsigned", "Idx", ",", "const", "APInt", "&", "Imm", ",", "Type", "*", "Ty", ")", "{", "if", "(", "(", "Opcode", "==", "Instruction", "::", "SDiv", "||", "Opcode", "==", "Instruction", "::", "UDiv", "||", "Opcode", "==", "Instruction", "::", "SRem", "||", "Opcode", "==", "Instruction", "::", "URem", ")", "&&", "Idx", "==", "1", ")", "return", "0", ";", "if", "(", "Opcode", "==", "Instruction", "::", "And", ")", "return", "std", "::", "min", "(", "getIntImmCost", "(", "Imm", ",", "Ty", ")", ",", "getIntImmCost", "(", "~", "Imm", ",", "Ty", ")", ")", ";", "if", "(", "Opcode", "==", "Instruction", "::", "Add", ")", "return", "std", "::", "min", "(", "getIntImmCost", "(", "Imm", ",", "Ty", ")", ",", "getIntImmCost", "(", "-", "Imm", ",", "Ty", ")", ")", ";", "if", "(", "Opcode", "==", "Instruction", "::", "ICmp", "&&", "Imm", ".", "isNegative", "(", ")", "&&", "Ty", "->", "getIntegerBitWidth", "(", ")", "==", "32", ")", "{", "int64_t", "NegImm", "=", "-", "Imm", ".", "getSExtValue", "(", ")", ";", "if", "(", "ST", "->", "isThumb2", "(", ")", "&&", "NegImm", "<", "1", "<<", "12", ")", "return", "0", ";", "if", "(", "ST", "->", "isThumb", "(", ")", "&&", "NegImm", "<", "1", "<<", "8", ")", "return", "0", ";", "}", "return", "getIntImmCost", "(", "Imm", ",", "Ty", ")", ";", "}", ""], "natrual_language": ["Calculate", "the", "cost", "of", "materializing", "a", "64-bit", "value", "."], "TS_V_token": ["ARM", "ARM", "1", "0", "32", "1", "12", "0", "1", "8", "0"], "File": "ARMTargetTransformInfo11", "Func": "getIntImmCost", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2018, "Length": 191, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "nds32_emit_section_head_template", "(", "char", "section_name", "[", "]", ",", "char", "symbol_name", "[", "]", ",", "int", "align_value", ",", "bool", "object_p", ")", "{", "const", "char", "*", "flags_str", ";", "const", "char", "*", "type_str", ";", "flags_str", "=", "(", "object_p", ")", "?", "\"\\\"a\\\"\"", ":", "\"\\\"ax\\\"\"", ";", "type_str", "=", "(", "object_p", ")", "?", "\"@object\"", ":", "\"@function\"", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t.section\\t%s, %s\\n\"", ",", "section_name", ",", "flags_str", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t.align\\t%d\\n\"", ",", "align_value", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t.global\\t%s\\n\"", ",", "symbol_name", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t.type\\t%s, %s\\n\"", ",", "symbol_name", ",", "type_str", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"%s:\\n\"", ",", "symbol_name", ")", ";", "}", ""], "natrual_language": ["A", "helper", "function", "to", "emit", "section", "head", "template", "."], "TS_V_token": ["nds32", "\"\\\"a\\\"\"", "\"\\\"ax\\\"\"", "\"@object\"", "\"@function\"", "\"\\t.section\\t%s, %s\\n\"", "\"\\t.align\\t%d\\n\"", "\"\\t.global\\t%s\\n\"", "\"\\t.type\\t%s, %s\\n\"", "\"%s:\\n\""], "File": "nds32-isr", "Func": "nds32_emit_section_head_template", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2019, "Length": 101, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "void", "emitSparcRegisterIgnore", "(", "unsigned", "reg", ")", "{", "}", ""], "natrual_language": ["Emit", "``", ".register", "<", "reg", ">", ",", "#", "ignore", "''", "."], "TS_V_token": ["Sparc", "Sparc"], "File": "SparcTargetStreamer2", "Func": "emitSparcRegisterIgnore", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2020, "Length": 9, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "pad_direction", "mips_function_arg_padding", "(", "machine_mode", "mode", ",", "const_tree", "type", ")", "{", "if", "(", "!", "BYTES_BIG_ENDIAN", ")", "return", "PAD_UPWARD", ";", "if", "(", "type", "!=", "0", "?", "(", "INTEGRAL_TYPE_P", "(", "type", ")", "||", "POINTER_TYPE_P", "(", "type", ")", "||", "FIXED_POINT_TYPE_P", "(", "type", ")", ")", ":", "(", "SCALAR_INT_MODE_P", "(", "mode", ")", "||", "ALL_SCALAR_FIXED_POINT_MODE_P", "(", "mode", ")", ")", ")", "return", "PAD_DOWNWARD", ";", "if", "(", "mips_abi", "==", "ABI_O64", ")", "if", "(", "type", "!=", "0", "?", "FLOAT_TYPE_P", "(", "type", ")", ":", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_FLOAT", ")", "return", "PAD_DOWNWARD", ";", "if", "(", "mips_abi", "!=", "ABI_EABI", ")", "return", "PAD_UPWARD", ";", "if", "(", "mode", "!=", "BLKmode", "?", "GET_MODE_BITSIZE", "(", "mode", ")", ">=", "PARM_BOUNDARY", ":", "int_size_in_bytes", "(", "type", ")", ">=", "(", "PARM_BOUNDARY", "/", "BITS_PER_UNIT", ")", ")", "return", "PAD_UPWARD", ";", "return", "PAD_DOWNWARD", ";", "}", ""], "natrual_language": ["Implement", "TARGET_FUNCTION_ARG_PADDING", ";", "return", "PAD_UPWARD", "if", "the", "first", "byte", "of", "the", "stack", "slot", "has", "useful", "data", ",", "PAD_DOWNWARD", "if", "the", "last", "byte", "does", "."], "TS_V_token": ["mips", "0", "0"], "File": "mips", "Func": "mips_function_arg_padding", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2021, "Length": 124, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Optional", "<", "ExtAddrMode", ">", "AArch64InstrInfo", "::", "getAddrModeFromMemoryOp", "(", "const", "MachineInstr", "&", "MemI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "const", "MachineOperand", "*", "Base", ";", "int64_t", "Offset", ";", "bool", "OffsetIsScalable", ";", "if", "(", "!", "getMemOperandWithOffset", "(", "MemI", ",", "Base", ",", "Offset", ",", "OffsetIsScalable", ",", "TRI", ")", ")", "return", "None", ";", "if", "(", "!", "Base", "->", "isReg", "(", ")", ")", "return", "None", ";", "ExtAddrMode", "AM", ";", "AM", ".", "BaseReg", "=", "Base", "->", "getReg", "(", ")", ";", "AM", ".", "Displacement", "=", "Offset", ";", "AM", ".", "ScaledReg", "=", "0", ";", "return", "AM", ";", "}", ""], "natrual_language": ["Target", "dependent", "implementation", "to", "get", "the", "values", "constituting", "the", "address", "MachineInstr", "that", "is", "accessing", "memory", "."], "TS_V_token": ["AArch64", "AArch64", "0"], "File": "AArch64InstrInfo105", "Func": "getAddrModeFromMemoryOp", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2022, "Length": 91, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_init_neon_builtins", "(", "void", ")", "{", "unsigned", "int", "i", ",", "fcode", "=", "ARM_BUILTIN_NEON_PATTERN_START", ";", "arm_init_simd_builtin_types", "(", ")", ";", "arm_init_simd_builtin_scalar_types", "(", ")", ";", "tree", "lane_check_fpr", "=", "build_function_type_list", "(", "void_type_node", ",", "intSI_type_node", ",", "intSI_type_node", ",", "NULL", ")", ";", "arm_builtin_decls", "[", "ARM_BUILTIN_NEON_LANE_CHECK", "]", "=", "add_builtin_function", "(", "\"__builtin_arm_lane_check\"", ",", "lane_check_fpr", ",", "ARM_BUILTIN_NEON_LANE_CHECK", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "ARRAY_SIZE", "(", "neon_builtin_data", ")", ";", "i", "++", ",", "fcode", "++", ")", "{", "arm_builtin_datum", "*", "d", "=", "&", "neon_builtin_data", "[", "i", "]", ";", "arm_init_builtin", "(", "fcode", ",", "d", ",", "\"__builtin_neon\"", ")", ";", "}", "}", ""], "natrual_language": ["Set", "up", "all", "the", "NEON", "builtins", ",", "even", "builtins", "for", "instructions", "that", "are", "not", "in", "the", "current", "target", "ISA", "to", "allow", "the", "user", "to", "compile", "particular", "modules", "with", "different", "target", "specific", "options", "that", "differ", "from", "the", "command", "line", "options", ".", "Such", "builtins", "will", "be", "rejected", "in", "arm_expand_builtin", "."], "TS_V_token": ["arm", "\"__builtin_arm_lane_check\"", "0", "\"__builtin_neon\""], "File": "arm-builtins4", "Func": "arm_init_neon_builtins", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2023, "Length": 98, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsInstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "DebugLoc", "DL", ",", "unsigned", "DestReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "unsigned", "Opc", "=", "0", ",", "ZeroReg", "=", "0", ";", "if", "(", "Mips", "::", "CPURegsRegClass", ".", "contains", "(", "DestReg", ")", ")", "{", "if", "(", "Mips", "::", "CPURegsRegClass", ".", "contains", "(", "SrcReg", ")", ")", "Opc", "=", "Mips", "::", "ADDu", ",", "ZeroReg", "=", "Mips", "::", "ZERO", ";", "else", "if", "(", "Mips", "::", "CCRRegClass", ".", "contains", "(", "SrcReg", ")", ")", "Opc", "=", "Mips", "::", "CFC1", ";", "else", "if", "(", "Mips", "::", "FGR32RegClass", ".", "contains", "(", "SrcReg", ")", ")", "Opc", "=", "Mips", "::", "MFC1", ";", "else", "if", "(", "SrcReg", "==", "Mips", "::", "HI", ")", "Opc", "=", "Mips", "::", "MFHI", ",", "SrcReg", "=", "0", ";", "else", "if", "(", "SrcReg", "==", "Mips", "::", "LO", ")", "Opc", "=", "Mips", "::", "MFLO", ",", "SrcReg", "=", "0", ";", "}", "else", "if", "(", "Mips", "::", "CPURegsRegClass", ".", "contains", "(", "SrcReg", ")", ")", "{", "if", "(", "Mips", "::", "CCRRegClass", ".", "contains", "(", "DestReg", ")", ")", "Opc", "=", "Mips", "::", "CTC1", ";", "else", "if", "(", "Mips", "::", "FGR32RegClass", ".", "contains", "(", "DestReg", ")", ")", "Opc", "=", "Mips", "::", "MTC1", ";", "else", "if", "(", "DestReg", "==", "Mips", "::", "HI", ")", "Opc", "=", "Mips", "::", "MTHI", ",", "DestReg", "=", "0", ";", "else", "if", "(", "DestReg", "==", "Mips", "::", "LO", ")", "Opc", "=", "Mips", "::", "MTLO", ",", "DestReg", "=", "0", ";", "}", "else", "if", "(", "Mips", "::", "FGR32RegClass", ".", "contains", "(", "DestReg", ",", "SrcReg", ")", ")", "Opc", "=", "Mips", "::", "FMOV_S", ";", "else", "if", "(", "Mips", "::", "AFGR64RegClass", ".", "contains", "(", "DestReg", ",", "SrcReg", ")", ")", "Opc", "=", "Mips", "::", "FMOV_D32", ";", "else", "if", "(", "Mips", "::", "CCRRegClass", ".", "contains", "(", "DestReg", ",", "SrcReg", ")", ")", "Opc", "=", "Mips", "::", "MOVCCRToCCR", ";", "else", "if", "(", "Mips", "::", "CPU64RegsRegClass", ".", "contains", "(", "DestReg", ")", ")", "{", "if", "(", "Mips", "::", "CPU64RegsRegClass", ".", "contains", "(", "SrcReg", ")", ")", "Opc", "=", "Mips", "::", "DADDu", ",", "ZeroReg", "=", "Mips", "::", "ZERO_64", ";", "else", "if", "(", "SrcReg", "==", "Mips", "::", "HI64", ")", "Opc", "=", "Mips", "::", "MFHI64", ",", "SrcReg", "=", "0", ";", "else", "if", "(", "SrcReg", "==", "Mips", "::", "LO64", ")", "Opc", "=", "Mips", "::", "MFLO64", ",", "SrcReg", "=", "0", ";", "}", "else", "if", "(", "Mips", "::", "CPU64RegsRegClass", ".", "contains", "(", "SrcReg", ")", ")", "{", "if", "(", "DestReg", "==", "Mips", "::", "HI64", ")", "Opc", "=", "Mips", "::", "MTHI64", ",", "DestReg", "=", "0", ";", "else", "if", "(", "DestReg", "==", "Mips", "::", "LO64", ")", "Opc", "=", "Mips", "::", "MTLO64", ",", "DestReg", "=", "0", ";", "}", "assert", "(", "Opc", "&&", "\"Cannot copy registers\"", ")", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "Opc", ")", ")", ";", "if", "(", "DestReg", ")", "MIB", ".", "addReg", "(", "DestReg", ",", "RegState", "::", "Define", ")", ";", "if", "(", "ZeroReg", ")", "MIB", ".", "addReg", "(", "ZeroReg", ")", ";", "if", "(", "SrcReg", ")", "MIB", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "}", ""], "natrual_language": ["}", "Branch", "Analysis", "&", "Modification"], "TS_V_token": ["Mips", "Mips", "0", "0", "Mips::CPURegsRegClass", "Mips::CPURegsRegClass", "Mips::ADDu", "Mips::ZERO", "Mips::CCRRegClass", "Mips::CFC1", "Mips::FGR32RegClass", "Mips::MFC1", "Mips::HI", "Mips::MFHI", "0", "Mips::LO", "Mips::MFLO", "0", "Mips::CPURegsRegClass", "Mips::CCRRegClass", "Mips::CTC1", "Mips::FGR32RegClass", "Mips::MTC1", "Mips::HI", "Mips::MTHI", "0", "Mips::LO", "Mips::MTLO", "0", "Mips::FGR32RegClass", "Mips::FMOV_S", "Mips::AFGR64RegClass", "Mips::FMOV_D32", "Mips::CCRRegClass", "Mips::MOVCCRToCCR", "Mips::CPU64RegsRegClass", "Mips::CPU64RegsRegClass", "Mips::DADDu", "Mips::ZERO_64", "Mips::HI64", "Mips::MFHI64", "0", "Mips::LO64", "Mips::MFLO64", "0", "Mips::CPU64RegsRegClass", "Mips::HI64", "Mips::MTHI64", "0", "Mips::LO64", "Mips::MTLO64", "0", "\"Cannot copy registers\""], "File": "MipsInstrInfo62", "Func": "copyPhysReg", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2024, "Length": 487, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "VETargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "case", "VEISD", "::", "NAME", ":", "\\", "return", "\"VEISD::\"", "#", "NAME", ";", "switch", "(", "(", "VEISD", "::", "NodeType", ")", "Opcode", ")", "{", "case", "VEISD", "::", "FIRST_NUMBER", ":", "break", ";", "TARGET_NODE_CASE", "(", "Lo", ")", "TARGET_NODE_CASE", "(", "Hi", ")", "TARGET_NODE_CASE", "(", "GETFUNPLT", ")", "TARGET_NODE_CASE", "(", "GETTLSADDR", ")", "TARGET_NODE_CASE", "(", "CALL", ")", "TARGET_NODE_CASE", "(", "RET_FLAG", ")", "TARGET_NODE_CASE", "(", "GLOBAL_BASE_REG", ")", "}", "return", "nullptr", ";", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["VE", "VE", "VEISD::NAME", "\"VEISD::\"", "VEISD::NodeType", "VEISD::FIRST_NUMBER"], "File": "VEISelLowering13", "Func": "getTargetNodeName", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2025, "Length": 73, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "SICMCCodeEmitter", "::", "getJumpTargetOpValue", "(", "const", "MCInst", "&", "MI", ",", "unsigned", "OpNo", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "const", "MCOperand", "&", "MO", "=", "MI", ".", "getOperand", "(", "OpNo", ")", ";", "if", "(", "MO", ".", "isImm", "(", ")", ")", "return", "MO", ".", "getImm", "(", ")", ";", "assert", "(", "MO", ".", "isExpr", "(", ")", "&&", "\"getJumpTargetOpValue expects only expressions\"", ")", ";", "const", "MCExpr", "*", "Expr", "=", "MO", ".", "getExpr", "(", ")", ";", "if", "(", "Opcode", "==", "SIC", "::", "JSUB", "||", "Opcode", "==", "SIC", "::", "JMP", ")", "Fixups", ".", "push_back", "(", "MCFixup", "::", "create", "(", "0", ",", "Expr", ",", "MCFixupKind", "(", "SIC", "::", "fixup_SIC_PC24", ")", ")", ")", ";", "else", "llvm_unreachable", "(", "\"unexpect opcode in getJumpAbsoluteTargetOpValue()\"", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["getJumpTargetOpValue", "-", "Return", "binary", "encoding", "of", "the", "jump", "target", "operand", "."], "TS_V_token": ["SIC", "SIC", "\"getJumpTargetOpValue expects only expressions\"", "SIC::JSUB", "SIC::JMP", "0", "SIC::fixup_SIC_PC24", "\"unexpect opcode in getJumpAbsoluteTargetOpValue()\"", "0"], "File": "SICMCCodeEmitter", "Func": "getJumpTargetOpValue", "Target": "SIC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2026, "Length": 130, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMCallLowering", "::", "lowerFormalArguments", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "const", "Function", "&", "F", ",", "ArrayRef", "<", "ArrayRef", "<", "Register", ">>", "VRegs", ")", "const", "{", "auto", "&", "TLI", "=", "*", "getTLI", "<", "ARMTargetLowering", ">", "(", ")", ";", "auto", "Subtarget", "=", "TLI", ".", "getSubtarget", "(", ")", ";", "if", "(", "Subtarget", "->", "isThumb1Only", "(", ")", ")", "return", "false", ";", "if", "(", "F", ".", "arg_empty", "(", ")", ")", "return", "true", ";", "if", "(", "F", ".", "isVarArg", "(", ")", ")", "return", "false", ";", "auto", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "auto", "&", "MBB", "=", "MIRBuilder", ".", "getMBB", "(", ")", ";", "auto", "DL", "=", "MF", ".", "getDataLayout", "(", ")", ";", "for", "(", "auto", "&", "Arg", ":", "F", ".", "args", "(", ")", ")", "{", "if", "(", "!", "isSupportedType", "(", "DL", ",", "TLI", ",", "Arg", ".", "getType", "(", ")", ")", ")", "return", "false", ";", "if", "(", "Arg", ".", "hasPassPointeeByValueCopyAttr", "(", ")", ")", "return", "false", ";", "}", "CCAssignFn", "*", "AssignFn", "=", "TLI", ".", "CCAssignFnForCall", "(", "F", ".", "getCallingConv", "(", ")", ",", "F", ".", "isVarArg", "(", ")", ")", ";", "FormalArgHandler", "ArgHandler", "(", "MIRBuilder", ",", "MIRBuilder", ".", "getMF", "(", ")", ".", "getRegInfo", "(", ")", ",", "AssignFn", ")", ";", "SmallVector", "<", "ArgInfo", ",", "8", ">", "SplitArgInfos", ";", "unsigned", "Idx", "=", "0", ";", "for", "(", "auto", "&", "Arg", ":", "F", ".", "args", "(", ")", ")", "{", "ArgInfo", "OrigArgInfo", "(", "VRegs", "[", "Idx", "]", ",", "Arg", ".", "getType", "(", ")", ")", ";", "setArgFlags", "(", "OrigArgInfo", ",", "Idx", "+", "AttributeList", "::", "FirstArgIndex", ",", "DL", ",", "F", ")", ";", "splitToValueTypes", "(", "OrigArgInfo", ",", "SplitArgInfos", ",", "MF", ")", ";", "Idx", "++", ";", "}", "if", "(", "!", "MBB", ".", "empty", "(", ")", ")", "MIRBuilder", ".", "setInstr", "(", "*", "MBB", ".", "begin", "(", ")", ")", ";", "if", "(", "!", "handleAssignments", "(", "MIRBuilder", ",", "SplitArgInfos", ",", "ArgHandler", ")", ")", "return", "false", ";", "MIRBuilder", ".", "setMBB", "(", "MBB", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "the", "incoming", "(", "formal", ")", "arguments", ",", "described", "by", "VRegs", ",", "for", "GlobalISel", "."], "TS_V_token": ["ARM", "ARM", "ARM", "8", "0"], "File": "ARMCallLowering19", "Func": "lowerFormalArguments", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2027, "Length": 306, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "SDValue", "WidenVector", "(", "SDValue", "V64Reg", ",", "SelectionDAG", "&", "DAG", ")", "{", "EVT", "VT", "=", "V64Reg", ".", "getValueType", "(", ")", ";", "unsigned", "NarrowSize", "=", "VT", ".", "getVectorNumElements", "(", ")", ";", "MVT", "EltTy", "=", "VT", ".", "getVectorElementType", "(", ")", ".", "getSimpleVT", "(", ")", ";", "MVT", "WideTy", "=", "MVT", "::", "getVectorVT", "(", "EltTy", ",", "2", "*", "NarrowSize", ")", ";", "SDLoc", "DL", "(", "V64Reg", ")", ";", "return", "DAG", ".", "getNode", "(", "ISD", "::", "INSERT_SUBVECTOR", ",", "DL", ",", "WideTy", ",", "DAG", ".", "getUNDEF", "(", "WideTy", ")", ",", "V64Reg", ",", "DAG", ".", "getConstant", "(", "0", ",", "DL", ",", "MVT", "::", "i64", ")", ")", ";", "}", ""], "natrual_language": ["Widen", "the", "vector", "up", "to", "the", "next", "power", "of", "two", "using", "INSERT_SUBVECTOR", "."], "TS_V_token": ["AArch64", "MVT::getVectorVT", "2", "ISD::INSERT_SUBVECTOR", "0", "MVT::i64"], "File": "AArch64ISelLowering (2)2", "Func": "WidenVector", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2028, "Length": 100, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCSubtarget", "::", "overrideSchedPolicy", "(", "MachineSchedPolicy", "&", "Policy", ",", "unsigned", "NumRegionInstrs", ")", "const", "{", "Policy", ".", "OnlyBottomUp", "=", "false", ";", "Policy", ".", "ShouldTrackPressure", "=", "true", ";", "}", ""], "natrual_language": ["Override", "generic", "scheduling", "policy", "within", "a", "region", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCSubtarget", "Func": "overrideSchedPolicy", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2029, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "type_suffix_index", "function_resolver", "::", "infer_vector_or_tuple_type", "(", "unsigned", "int", "argno", ",", "unsigned", "int", "num_vectors", ")", "{", "tree", "actual", "=", "get_argument_type", "(", "argno", ")", ";", "if", "(", "actual", "==", "error_mark_node", ")", "return", "NUM_TYPE_SUFFIXES", ";", "for", "(", "unsigned", "int", "size_i", "=", "0", ";", "size_i", "<", "MAX_TUPLE_SIZE", ";", "++", "size_i", ")", "for", "(", "unsigned", "int", "suffix_i", "=", "0", ";", "suffix_i", "<", "NUM_TYPE_SUFFIXES", ";", "++", "suffix_i", ")", "{", "vector_type_index", "type_i", "=", "type_suffixes", "[", "suffix_i", "]", ".", "vector_type", ";", "tree", "type", "=", "acle_vector_types", "[", "size_i", "]", "[", "type_i", "]", ";", "if", "(", "type", "&&", "matches_type_p", "(", "type", ",", "actual", ")", ")", "{", "if", "(", "size_i", "+", "1", "==", "num_vectors", ")", "return", "type_suffix_index", "(", "suffix_i", ")", ";", "if", "(", "num_vectors", "==", "1", ")", "error_at", "(", "location", ",", "\"passing %qT to argument %d of %qE, which\"", "\" expects a single SVE vector rather than a tuple\"", ",", "actual", ",", "argno", "+", "1", ",", "fndecl", ")", ";", "else", "if", "(", "size_i", "==", "0", "&&", "type_i", "!=", "VECTOR_TYPE_svbool_t", ")", "error_at", "(", "location", ",", "\"passing single vector %qT to argument %d\"", "\" of %qE, which expects a tuple of %d vectors\"", ",", "actual", ",", "argno", "+", "1", ",", "fndecl", ",", "num_vectors", ")", ";", "else", "error_at", "(", "location", ",", "\"passing %qT to argument %d of %qE, which\"", "\" expects a tuple of %d vectors\"", ",", "actual", ",", "argno", "+", "1", ",", "fndecl", ",", "num_vectors", ")", ";", "return", "NUM_TYPE_SUFFIXES", ";", "}", "}", "if", "(", "num_vectors", "==", "1", ")", "error_at", "(", "location", ",", "\"passing %qT to argument %d of %qE, which\"", "\" expects an SVE vector type\"", ",", "actual", ",", "argno", "+", "1", ",", "fndecl", ")", ";", "else", "error_at", "(", "location", ",", "\"passing %qT to argument %d of %qE, which\"", "\" expects an SVE tuple type\"", ",", "actual", ",", "argno", "+", "1", ",", "fndecl", ")", ";", "return", "NUM_TYPE_SUFFIXES", ";", "}", ""], "natrual_language": ["Require", "argument", "ARGNO", "to", "be", "a", "single", "vector", "or", "a", "tuple", "of", "NUM_VECTORS", "vectors", ";", "NUM_VECTORS", "is", "1", "for", "the", "former", ".", "Return", "the", "associated", "type", "suffix", "on", "success", ",", "using", "TYPE_SUFFIX_b", "for", "predicates", ".", "Report", "an", "error", "and", "return", "NUM_TYPE_SUFFIXES", "on", "failure", "."], "TS_V_token": ["aarch64", "0", "0", "1", "1", "\"passing %qT to argument %d of %qE, which\"", "\" expects a single SVE vector rather than a tuple\"", "1", "0", "\"passing single vector %qT to argument %d\"", "\" of %qE, which expects a tuple of %d vectors\"", "1", "\"passing %qT to argument %d of %qE, which\"", "\" expects a tuple of %d vectors\"", "1", "1", "\"passing %qT to argument %d of %qE, which\"", "\" expects an SVE vector type\"", "1", "\"passing %qT to argument %d of %qE, which\"", "\" expects an SVE tuple type\"", "1"], "File": "aarch64-sve-builtins", "Func": "infer_vector_or_tuple_type", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2030, "Length": 227, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZElimCompare", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "F", ")", "{", "TII", "=", "static_cast", "<", "const", "SystemZInstrInfo", "*", ">", "(", "F", ".", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "&", "TII", "->", "getRegisterInfo", "(", ")", ";", "bool", "Changed", "=", "false", ";", "for", "(", "auto", "&", "MBB", ":", "F", ")", "Changed", "|=", "processBlock", "(", "MBB", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ"], "File": "SystemZElimCompare1", "Func": "runOnMachineFunction", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2031, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMBaseInstrInfo", "::", "getInstSizeInBytes", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "const", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "const", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "MCAsmInfo", "*", "MAI", "=", "MF", "->", "getTarget", "(", ")", ".", "getMCAsmInfo", "(", ")", ";", "const", "MCInstrDesc", "&", "MCID", "=", "MI", ".", "getDesc", "(", ")", ";", "if", "(", "MCID", ".", "getSize", "(", ")", ")", "return", "MCID", ".", "getSize", "(", ")", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "0", ";", "case", "TargetOpcode", "::", "BUNDLE", ":", "return", "getInstBundleLength", "(", "MI", ")", ";", "case", "ARM", "::", "MOVi16_ga_pcrel", ":", "case", "ARM", "::", "MOVTi16_ga_pcrel", ":", "case", "ARM", "::", "t2MOVi16_ga_pcrel", ":", "case", "ARM", "::", "t2MOVTi16_ga_pcrel", ":", "return", "4", ";", "case", "ARM", "::", "MOVi32imm", ":", "case", "ARM", "::", "t2MOVi32imm", ":", "return", "8", ";", "case", "ARM", "::", "CONSTPOOL_ENTRY", ":", "case", "ARM", "::", "JUMPTABLE_INSTS", ":", "case", "ARM", "::", "JUMPTABLE_ADDRS", ":", "case", "ARM", "::", "JUMPTABLE_TBB", ":", "case", "ARM", "::", "JUMPTABLE_TBH", ":", "return", "MI", ".", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "case", "ARM", "::", "Int_eh_sjlj_longjmp", ":", "return", "16", ";", "case", "ARM", "::", "tInt_eh_sjlj_longjmp", ":", "return", "10", ";", "case", "ARM", "::", "tInt_WIN_eh_sjlj_longjmp", ":", "return", "12", ";", "case", "ARM", "::", "Int_eh_sjlj_setjmp", ":", "case", "ARM", "::", "Int_eh_sjlj_setjmp_nofp", ":", "return", "20", ";", "case", "ARM", "::", "tInt_eh_sjlj_setjmp", ":", "case", "ARM", "::", "t2Int_eh_sjlj_setjmp", ":", "case", "ARM", "::", "t2Int_eh_sjlj_setjmp_nofp", ":", "return", "12", ";", "case", "ARM", "::", "SPACE", ":", "return", "MI", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ";", "case", "ARM", "::", "INLINEASM", ":", "case", "ARM", "::", "INLINEASM_BR", ":", "{", "unsigned", "Size", "=", "getInlineAsmLength", "(", "MI", ".", "getOperand", "(", "0", ")", ".", "getSymbolName", "(", ")", ",", "*", "MAI", ")", ";", "if", "(", "!", "MF", "->", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", "->", "isThumbFunction", "(", ")", ")", "Size", "=", "alignTo", "(", "Size", ",", "4", ")", ";", "return", "Size", ";", "}", "case", "ARM", "::", "SpeculationBarrierISBDSBEndBB", ":", "case", "ARM", "::", "t2SpeculationBarrierISBDSBEndBB", ":", "return", "8", ";", "case", "ARM", "::", "SpeculationBarrierSBEndBB", ":", "case", "ARM", "::", "t2SpeculationBarrierSBEndBB", ":", "return", "4", ";", "}", "}", ""], "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": ["ARM", "ARM", "0", "ARM::MOVi16_ga_pcrel", "ARM::MOVTi16_ga_pcrel", "ARM::t2MOVi16_ga_pcrel", "ARM::t2MOVTi16_ga_pcrel", "4", "ARM::MOVi32imm", "ARM::t2MOVi32imm", "8", "ARM::CONSTPOOL_ENTRY", "ARM::JUMPTABLE_INSTS", "ARM::JUMPTABLE_ADDRS", "ARM::JUMPTABLE_TBB", "ARM::JUMPTABLE_TBH", "2", "ARM::Int_eh_sjlj_longjmp", "16", "ARM::tInt_eh_sjlj_longjmp", "10", "ARM::tInt_WIN_eh_sjlj_longjmp", "12", "ARM::Int_eh_sjlj_setjmp", "ARM::Int_eh_sjlj_setjmp_nofp", "20", "ARM::tInt_eh_sjlj_setjmp", "ARM::t2Int_eh_sjlj_setjmp", "ARM::t2Int_eh_sjlj_setjmp_nofp", "12", "ARM::SPACE", "1", "ARM::INLINEASM", "ARM::INLINEASM_BR", "0", "ARM", "4", "ARM::SpeculationBarrierISBDSBEndBB", "ARM::t2SpeculationBarrierISBDSBEndBB", "8", "ARM::SpeculationBarrierSBEndBB", "ARM::t2SpeculationBarrierSBEndBB", "4"], "File": "ARMBaseInstrInfo110", "Func": "getInstSizeInBytes", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2032, "Length": 334, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "SystemZTargetLowering", "::", "getRegForInlineAsmConstraint", "(", "const", "TargetRegisterInfo", "*", "TRI", ",", "StringRef", "Constraint", ",", "MVT", "VT", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "default", ":", "break", ";", "case", "'d'", ":", "case", "'r'", ":", "if", "(", "VT", "==", "MVT", "::", "i64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "GR64BitRegClass", ")", ";", "else", "if", "(", "VT", "==", "MVT", "::", "i128", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "GR128BitRegClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "GR32BitRegClass", ")", ";", "case", "'a'", ":", "if", "(", "VT", "==", "MVT", "::", "i64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "ADDR64BitRegClass", ")", ";", "else", "if", "(", "VT", "==", "MVT", "::", "i128", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "ADDR128BitRegClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "ADDR32BitRegClass", ")", ";", "case", "'h'", ":", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "GRH32BitRegClass", ")", ";", "case", "'f'", ":", "if", "(", "VT", "==", "MVT", "::", "f64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "FP64BitRegClass", ")", ";", "else", "if", "(", "VT", "==", "MVT", "::", "f128", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "FP128BitRegClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "FP32BitRegClass", ")", ";", "}", "}", "if", "(", "Constraint", ".", "size", "(", ")", ">", "0", "&&", "Constraint", "[", "0", "]", "==", "'{'", ")", "{", "if", "(", "Constraint", "[", "1", "]", "==", "'r'", ")", "{", "if", "(", "VT", "==", "MVT", "::", "i32", ")", "return", "parseRegisterNumber", "(", "Constraint", ",", "&", "SystemZ", "::", "GR32BitRegClass", ",", "SystemZMC", "::", "GR32Regs", ")", ";", "if", "(", "VT", "==", "MVT", "::", "i128", ")", "return", "parseRegisterNumber", "(", "Constraint", ",", "&", "SystemZ", "::", "GR128BitRegClass", ",", "SystemZMC", "::", "GR128Regs", ")", ";", "return", "parseRegisterNumber", "(", "Constraint", ",", "&", "SystemZ", "::", "GR64BitRegClass", ",", "SystemZMC", "::", "GR64Regs", ")", ";", "}", "if", "(", "Constraint", "[", "1", "]", "==", "'f'", ")", "{", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "return", "parseRegisterNumber", "(", "Constraint", ",", "&", "SystemZ", "::", "FP32BitRegClass", ",", "SystemZMC", "::", "FP32Regs", ")", ";", "if", "(", "VT", "==", "MVT", "::", "f128", ")", "return", "parseRegisterNumber", "(", "Constraint", ",", "&", "SystemZ", "::", "FP128BitRegClass", ",", "SystemZMC", "::", "FP128Regs", ")", ";", "return", "parseRegisterNumber", "(", "Constraint", ",", "&", "SystemZ", "::", "FP64BitRegClass", ",", "SystemZMC", "::", "FP64Regs", ")", ";", "}", "}", "return", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "TRI", ",", "Constraint", ",", "VT", ")", ";", "}", ""], "natrual_language": ["Given", "a", "physical", "register", "constraint", "(", "e.g", "."], "TS_V_token": ["SystemZ", "SystemZ", "1", "0", "MVT::i64", "0U", "SystemZ::GR64BitRegClass", "MVT::i128", "0U", "SystemZ::GR128BitRegClass", "0U", "SystemZ::GR32BitRegClass", "MVT::i64", "0U", "SystemZ::ADDR64BitRegClass", "MVT::i128", "0U", "SystemZ::ADDR128BitRegClass", "0U", "SystemZ::ADDR32BitRegClass", "0U", "SystemZ::GRH32BitRegClass", "MVT::f64", "0U", "SystemZ::FP64BitRegClass", "MVT::f128", "0U", "SystemZ::FP128BitRegClass", "0U", "SystemZ::FP32BitRegClass", "0", "0", "1", "MVT::i32", "SystemZ::GR32BitRegClass", "SystemZMC::GR32Regs", "MVT::i128", "SystemZ::GR128BitRegClass", "SystemZMC::GR128Regs", "SystemZ::GR64BitRegClass", "SystemZMC::GR64Regs", "1", "MVT::f32", "SystemZ::FP32BitRegClass", "SystemZMC::FP32Regs", "MVT::f128", "SystemZ::FP128BitRegClass", "SystemZMC::FP128Regs", "SystemZ::FP64BitRegClass", "SystemZMC::FP64Regs"], "File": "SystemZISelLowering (2)1", "Func": "getRegForInlineAsmConstraint", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2033, "Length": 424, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "SystemZFrameLowering", "::", "getFrameIndexReference", "(", "const", "MachineFunction", "&", "MF", ",", "int", "FI", ",", "unsigned", "&", "FrameReg", ")", "const", "{", "const", "MachineFrameInfo", "&", "MFFrame", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "TargetRegisterInfo", "*", "RI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "FrameReg", "=", "RI", "->", "getFrameRegister", "(", "MF", ")", ";", "int64_t", "Offset", "=", "(", "MFFrame", ".", "getObjectOffset", "(", "FI", ")", "+", "MFFrame", ".", "getOffsetAdjustment", "(", ")", ")", ";", "Offset", "-=", "getOffsetOfLocalArea", "(", ")", ";", "Offset", "+=", "getAllocatedStackSize", "(", "MF", ")", ";", "return", "Offset", ";", "}", ""], "natrual_language": ["getFrameIndexReference", "-", "This", "method", "should", "return", "the", "base", "register", "and", "offset", "used", "to", "reference", "a", "frame", "index", "location", "."], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZFrameLowering12", "Func": "getFrameIndexReference", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2034, "Length": 89, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "TargetRegisterClass", "*", "TeeRISCRegisterInfo", "::", "getPointerRegClass", "(", "const", "MachineFunction", "&", "MF", ",", "unsigned", "Kind", ")", "const", "{", "return", "&", "TeeRISC", "::", "IntRegsRegClass", ";", "}", ""], "natrual_language": ["getPointerRegClass", "-", "Returns", "a", "TargetRegisterClass", "used", "for", "pointer", "values", "."], "TS_V_token": ["TeeRISC", "TeeRISC", "TeeRISC::IntRegsRegClass"], "File": "TeeRISCRegisterInfo", "Func": "getPointerRegClass", "Target": "TeeRISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2035, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "build_v_base", "(", "function_builder", "&", "b", ",", "const", "char", "*", "signature", ",", "const", "function_group_info", "&", "group", ",", "bool", "force_direct_overloads", "=", "false", ")", "{", "build_32_64", "(", "b", ",", "signature", ",", "group", ",", "MODE_u32base", ",", "MODE_u64base", ",", "force_direct_overloads", ")", ";", "}", ""], "natrual_language": ["For", "every", "type", "and", "predicate", "combination", "in", "GROUP", ",", "add", "a", "function", "that", "takes", "a", "vector", "base", "address", "and", "no", "displacement", ".", "The", "vector", "base", "has", "the", "same", "element", "size", "as", "the", "first", "type", "suffix", ".", "The", "other", "arguments", "are", "as", "for", "build_all", "."], "TS_V_token": ["aarch64"], "File": "aarch64-sve-builtins-shapes", "Func": "build_v_base", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2036, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMTTIImpl", "::", "getUnrollingPreferences", "(", "Loop", "*", "L", ",", "ScalarEvolution", "&", "SE", ",", "TTI", "::", "UnrollingPreferences", "&", "UP", ",", "OptimizationRemarkEmitter", "*", "ORE", ")", "{", "UP", ".", "UpperBound", "=", "true", ";", "if", "(", "!", "ST", "->", "isMClass", "(", ")", ")", "return", "BasicTTIImplBase", "::", "getUnrollingPreferences", "(", "L", ",", "SE", ",", "UP", ",", "ORE", ")", ";", "UP", ".", "OptSizeThreshold", "=", "0", ";", "UP", ".", "PartialOptSizeThreshold", "=", "0", ";", "if", "(", "L", "->", "getHeader", "(", ")", "->", "getParent", "(", ")", "->", "hasOptSize", "(", ")", ")", "return", ";", "SmallVector", "<", "BasicBlock", "*", ",", "4", ">", "ExitingBlocks", ";", "L", "->", "getExitingBlocks", "(", "ExitingBlocks", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Loop has:\\n\"", "<<", "\"Blocks: \"", "<<", "L", "->", "getNumBlocks", "(", ")", "<<", "\"\\n\"", "<<", "\"Exit blocks: \"", "<<", "ExitingBlocks", ".", "size", "(", ")", "<<", "\"\\n\"", ")", ";", "if", "(", "ExitingBlocks", ".", "size", "(", ")", ">", "2", ")", "return", ";", "if", "(", "ST", "->", "hasBranchPredictor", "(", ")", "&&", "L", "->", "getNumBlocks", "(", ")", ">", "4", ")", "return", ";", "if", "(", "getBooleanLoopAttribute", "(", "L", ",", "\"llvm.loop.isvectorized\"", ")", ")", "return", ";", "InstructionCost", "Cost", "=", "0", ";", "for", "(", "auto", "*", "BB", ":", "L", "->", "getBlocks", "(", ")", ")", "{", "for", "(", "auto", "&", "I", ":", "*", "BB", ")", "{", "if", "(", "I", ".", "getType", "(", ")", "->", "isVectorTy", "(", ")", ")", "return", ";", "if", "(", "isa", "<", "CallInst", ">", "(", "I", ")", "||", "isa", "<", "InvokeInst", ">", "(", "I", ")", ")", "{", "if", "(", "const", "Function", "*", "F", "=", "cast", "<", "CallBase", ">", "(", "I", ")", ".", "getCalledFunction", "(", ")", ")", "{", "if", "(", "!", "isLoweredToCall", "(", "F", ")", ")", "continue", ";", "}", "return", ";", "}", "SmallVector", "<", "const", "Value", "*", ",", "4", ">", "Operands", "(", "I", ".", "operand_values", "(", ")", ")", ";", "Cost", "+=", "getUserCost", "(", "&", "I", ",", "Operands", ",", "TargetTransformInfo", "::", "TCK_SizeAndLatency", ")", ";", "}", "}", "unsigned", "UnrollCount", "=", "4", ";", "if", "(", "ST", "->", "isThumb1Only", "(", ")", ")", "{", "unsigned", "ExitingValues", "=", "0", ";", "SmallVector", "<", "BasicBlock", "*", ",", "4", ">", "ExitBlocks", ";", "L", "->", "getExitBlocks", "(", "ExitBlocks", ")", ";", "for", "(", "auto", "*", "Exit", ":", "ExitBlocks", ")", "{", "unsigned", "LiveOuts", "=", "count_if", "(", "Exit", "->", "phis", "(", ")", ",", "[", "]", "(", "auto", "&", "PH", ")", "{", "return", "PH", ".", "getNumOperands", "(", ")", "!=", "1", "||", "!", "isa", "<", "GetElementPtrInst", ">", "(", "PH", ".", "getOperand", "(", "0", ")", ")", ";", "}", ")", ";", "ExitingValues", "=", "ExitingValues", "<", "LiveOuts", "?", "LiveOuts", ":", "ExitingValues", ";", "}", "if", "(", "ExitingValues", ")", "UnrollCount", "/=", "ExitingValues", ";", "if", "(", "UnrollCount", "<=", "1", ")", "return", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Cost of loop: \"", "<<", "Cost", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Default Runtime Unroll Count: \"", "<<", "UnrollCount", "<<", "\"\\n\"", ")", ";", "UP", ".", "Partial", "=", "true", ";", "UP", ".", "Runtime", "=", "true", ";", "UP", ".", "UnrollRemainder", "=", "true", ";", "UP", ".", "DefaultUnrollRuntimeCount", "=", "UnrollCount", ";", "UP", ".", "UnrollAndJam", "=", "true", ";", "UP", ".", "UnrollAndJamInnerLoopThreshold", "=", "60", ";", "if", "(", "Cost", "<", "12", ")", "UP", ".", "Force", "=", "true", ";", "}", ""], "natrual_language": ["Get", "target-customized", "preferences", "for", "the", "generic", "loop", "unrolling", "transformation", "."], "TS_V_token": ["ARM", "ARM", "0", "0", "4", "\"Loop has:\\n\"", "\"Blocks: \"", "\"\\n\"", "\"Exit blocks: \"", "\"\\n\"", "2", "4", "\"llvm.loop.isvectorized\"", "0", "4", "4", "0", "4", "1", "0", "1", "\"Cost of loop: \"", "\"\\n\"", "\"Default Runtime Unroll Count: \"", "\"\\n\"", "60", "12"], "File": "ARMTargetTransformInfo14", "Func": "getUnrollingPreferences", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2037, "Length": 489, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "is_cracked_insn", "(", "rtx_insn", "*", "insn", ")", "{", "if", "(", "!", "insn", "||", "!", "NONDEBUG_INSN_P", "(", "insn", ")", "||", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "==", "USE", "||", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "==", "CLOBBER", ")", "return", "false", ";", "if", "(", "rs6000_sched_groups", "&&", "(", "rs6000_cpu", "==", "PROCESSOR_POWER4", "||", "rs6000_cpu", "==", "PROCESSOR_POWER5", ")", ")", "{", "enum", "attr_type", "type", "=", "get_attr_type", "(", "insn", ")", ";", "if", "(", "(", "type", "==", "TYPE_LOAD", "&&", "get_attr_sign_extend", "(", "insn", ")", "==", "SIGN_EXTEND_YES", "&&", "get_attr_update", "(", "insn", ")", "==", "UPDATE_NO", ")", "||", "(", "type", "==", "TYPE_LOAD", "&&", "get_attr_sign_extend", "(", "insn", ")", "==", "SIGN_EXTEND_NO", "&&", "get_attr_update", "(", "insn", ")", "==", "UPDATE_YES", "&&", "get_attr_indexed", "(", "insn", ")", "==", "INDEXED_NO", ")", "||", "(", "type", "==", "TYPE_STORE", "&&", "get_attr_update", "(", "insn", ")", "==", "UPDATE_YES", "&&", "get_attr_indexed", "(", "insn", ")", "==", "INDEXED_NO", ")", "||", "(", "(", "type", "==", "TYPE_FPLOAD", "||", "type", "==", "TYPE_FPSTORE", ")", "&&", "get_attr_update", "(", "insn", ")", "==", "UPDATE_YES", ")", "||", "type", "==", "TYPE_DELAYED_CR", "||", "(", "type", "==", "TYPE_EXTS", "&&", "get_attr_dot", "(", "insn", ")", "==", "DOT_YES", ")", "||", "(", "type", "==", "TYPE_SHIFT", "&&", "get_attr_dot", "(", "insn", ")", "==", "DOT_YES", "&&", "get_attr_var_shift", "(", "insn", ")", "==", "VAR_SHIFT_NO", ")", "||", "(", "type", "==", "TYPE_MUL", "&&", "get_attr_dot", "(", "insn", ")", "==", "DOT_YES", ")", "||", "type", "==", "TYPE_DIV", "||", "(", "type", "==", "TYPE_INSERT", "&&", "get_attr_size", "(", "insn", ")", "==", "SIZE_32", ")", ")", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["The", "function", "returns", "true", "if", "INSN", "is", "cracked", "into", "2", "instructions", "by", "the", "processor", "(", "and", "therefore", "occupies", "2", "issue", "slots", ")", "."], "TS_V_token": ["powerpcspe"], "File": "powerpcspe", "Func": "is_cracked_insn", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2038, "Length": 230, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "xstormy16_splittable_below100_operand", "(", "rtx", "x", ",", "enum", "machine_mode", "mode", ")", "{", "if", "(", "GET_CODE", "(", "x", ")", "==", "MEM", "&&", "MEM_VOLATILE_P", "(", "x", ")", ")", "return", "0", ";", "return", "xstormy16_below100_operand", "(", "x", ",", "mode", ")", ";", "}", ""], "natrual_language": ["Likewise", ",", "but", "only", "for", "non-volatile", "MEMs", ",", "for", "patterns", "where", "the", "MEM", "will", "get", "split", "into", "smaller", "sized", "accesses", "."], "TS_V_token": ["stormy16", "0"], "File": "stormy163", "Func": "xstormy16_splittable_below100_operand", "Target": "stormy16", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2039, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "mips_legitimize_tls_address", "(", "rtx", "loc", ")", "{", "rtx", "dest", ",", "v0", ",", "tp", ",", "tmp1", ",", "tmp2", ",", "eqv", ",", "offset", ";", "enum", "tls_model", "model", ";", "model", "=", "SYMBOL_REF_TLS_MODEL", "(", "loc", ")", ";", "if", "(", "!", "TARGET_ABICALLS", ")", "model", "=", "TLS_MODEL_LOCAL_EXEC", ";", "switch", "(", "model", ")", "{", "case", "TLS_MODEL_GLOBAL_DYNAMIC", ":", "{", "v0", "=", "gen_rtx_REG", "(", "Pmode", ",", "GP_RETURN", ")", ";", "rtx_insn", "*", "insn", "=", "mips_call_tls_get_addr", "(", "loc", ",", "SYMBOL_TLSGD", ",", "v0", ")", ";", "dest", "=", "gen_reg_rtx", "(", "Pmode", ")", ";", "emit_libcall_block", "(", "insn", ",", "dest", ",", "v0", ",", "loc", ")", ";", "break", ";", "}", "case", "TLS_MODEL_LOCAL_DYNAMIC", ":", "{", "v0", "=", "gen_rtx_REG", "(", "Pmode", ",", "GP_RETURN", ")", ";", "rtx_insn", "*", "insn", "=", "mips_call_tls_get_addr", "(", "loc", ",", "SYMBOL_TLSLDM", ",", "v0", ")", ";", "tmp1", "=", "gen_reg_rtx", "(", "Pmode", ")", ";", "eqv", "=", "gen_rtx_UNSPEC", "(", "Pmode", ",", "gen_rtvec", "(", "1", ",", "const0_rtx", ")", ",", "UNSPEC_TLS_LDM", ")", ";", "emit_libcall_block", "(", "insn", ",", "tmp1", ",", "v0", ",", "eqv", ")", ";", "offset", "=", "mips_unspec_address", "(", "loc", ",", "SYMBOL_DTPREL", ")", ";", "if", "(", "mips_split_p", "[", "SYMBOL_DTPREL", "]", ")", "{", "tmp2", "=", "mips_unspec_offset_high", "(", "NULL", ",", "tmp1", ",", "loc", ",", "SYMBOL_DTPREL", ")", ";", "dest", "=", "gen_rtx_LO_SUM", "(", "Pmode", ",", "tmp2", ",", "offset", ")", ";", "}", "else", "dest", "=", "expand_binop", "(", "Pmode", ",", "add_optab", ",", "tmp1", ",", "offset", ",", "0", ",", "0", ",", "OPTAB_DIRECT", ")", ";", "break", ";", "}", "case", "TLS_MODEL_INITIAL_EXEC", ":", "tp", "=", "mips_get_tp", "(", ")", ";", "tmp1", "=", "gen_reg_rtx", "(", "Pmode", ")", ";", "tmp2", "=", "mips_unspec_address", "(", "loc", ",", "SYMBOL_GOTTPREL", ")", ";", "if", "(", "Pmode", "==", "DImode", ")", "emit_insn", "(", "gen_load_gotdi", "(", "tmp1", ",", "pic_offset_table_rtx", ",", "tmp2", ")", ")", ";", "else", "emit_insn", "(", "gen_load_gotsi", "(", "tmp1", ",", "pic_offset_table_rtx", ",", "tmp2", ")", ")", ";", "dest", "=", "gen_reg_rtx", "(", "Pmode", ")", ";", "emit_insn", "(", "gen_add3_insn", "(", "dest", ",", "tmp1", ",", "tp", ")", ")", ";", "break", ";", "case", "TLS_MODEL_LOCAL_EXEC", ":", "tmp1", "=", "mips_get_tp", "(", ")", ";", "offset", "=", "mips_unspec_address", "(", "loc", ",", "SYMBOL_TPREL", ")", ";", "if", "(", "mips_split_p", "[", "SYMBOL_TPREL", "]", ")", "{", "tmp2", "=", "mips_unspec_offset_high", "(", "NULL", ",", "tmp1", ",", "loc", ",", "SYMBOL_TPREL", ")", ";", "dest", "=", "gen_rtx_LO_SUM", "(", "Pmode", ",", "tmp2", ",", "offset", ")", ";", "}", "else", "dest", "=", "expand_binop", "(", "Pmode", ",", "add_optab", ",", "tmp1", ",", "offset", ",", "0", ",", "0", ",", "OPTAB_DIRECT", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "return", "dest", ";", "}", ""], "natrual_language": ["Generate", "the", "code", "to", "access", "LOC", ",", "a", "thread", "local", "SYMBOL_REF", ".", "The", "return", "value", "will", "be", "a", "valid", "address", "and", "move_operand", "(", "either", "a", "REG", "or", "a", "LO_SUM", ")", "."], "TS_V_token": ["mips", "1", "0", "0", "0", "0"], "File": "mips", "Func": "mips_legitimize_tls_address", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2040, "Length": 381, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_option_override_internal", "(", "struct", "gcc_options", "*", "opts", ",", "struct", "gcc_options", "*", "opts_set", ")", "{", "arm_override_options_after_change_1", "(", "opts", ")", ";", "if", "(", "TARGET_INTERWORK", "&&", "!", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_thumb", ")", ")", "{", "opts", "->", "x_target_flags", "&=", "~", "MASK_INTERWORK", ";", "}", "if", "(", "TARGET_THUMB_P", "(", "opts", "->", "x_target_flags", ")", "&&", "!", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_thumb", ")", ")", "{", "warning", "(", "0", ",", "\"target CPU does not support THUMB instructions\"", ")", ";", "opts", "->", "x_target_flags", "&=", "~", "MASK_THUMB", ";", "}", "if", "(", "TARGET_APCS_FRAME", "&&", "TARGET_THUMB_P", "(", "opts", "->", "x_target_flags", ")", ")", "{", "opts", "->", "x_target_flags", "&=", "~", "MASK_APCS_FRAME", ";", "}", "if", "(", "TARGET_THUMB_P", "(", "opts", "->", "x_target_flags", ")", "&&", "TARGET_CALLEE_INTERWORKING", ")", "opts", "->", "x_target_flags", "|=", "MASK_INTERWORK", ";", "cl_optimization", "*", "to", "=", "TREE_OPTIMIZATION", "(", "init_optimize", ")", ";", "if", "(", "!", "opts_set", "->", "x_arm_restrict_it", ")", "opts", "->", "x_arm_restrict_it", "=", "arm_arch8", ";", "if", "(", "!", "TARGET_THUMB2_P", "(", "opts", "->", "x_target_flags", ")", "||", "!", "arm_arch_notm", ")", "opts", "->", "x_arm_restrict_it", "=", "0", ";", "if", "(", "!", "opts_set", "->", "x_unaligned_access", ")", "{", "opts", "->", "x_unaligned_access", "=", "(", "TARGET_32BIT_P", "(", "opts", "->", "x_target_flags", ")", "&&", "arm_arch6", "&&", "(", "arm_arch_notm", "||", "arm_arch7", ")", ")", ";", "}", "else", "if", "(", "opts", "->", "x_unaligned_access", "==", "1", "&&", "!", "(", "arm_arch6", "&&", "(", "arm_arch_notm", "||", "arm_arch7", ")", ")", ")", "{", "warning", "(", "0", ",", "\"target CPU does not support unaligned accesses\"", ")", ";", "opts", "->", "x_unaligned_access", "=", "0", ";", "}", "if", "(", "TARGET_THUMB1_P", "(", "opts", "->", "x_target_flags", ")", ")", "opts", "->", "x_flag_schedule_insns", "=", "0", ";", "else", "opts", "->", "x_flag_schedule_insns", "=", "to", "->", "x_flag_schedule_insns", ";", "if", "(", "optimize_function_for_size_p", "(", "cfun", ")", "&&", "TARGET_THUMB2_P", "(", "opts", "->", "x_target_flags", ")", ")", "opts", "->", "x_flag_shrink_wrap", "=", "false", ";", "else", "opts", "->", "x_flag_shrink_wrap", "=", "to", "->", "x_flag_shrink_wrap", ";", "if", "(", "TARGET_THUMB1_P", "(", "opts", "->", "x_target_flags", ")", ")", "opts", "->", "x_flag_ipa_ra", "=", "0", ";", "else", "opts", "->", "x_flag_ipa_ra", "=", "to", "->", "x_flag_ipa_ra", ";", "if", "(", "TARGET_THUMB2_P", "(", "opts", "->", "x_target_flags", ")", ")", "opts", "->", "x_inline_asm_unified", "=", "true", ";", "SUBTARGET_OVERRIDE_INTERNAL_OPTIONS", ";", "}", ""], "natrual_language": ["Reset", "options", "between", "modes", "that", "the", "user", "has", "specified", "."], "TS_V_token": ["arm", "0", "\"target CPU does not support THUMB instructions\"", "0", "1", "0", "\"target CPU does not support unaligned accesses\"", "0", "0", "0"], "File": "arm8", "Func": "arm_option_override_internal", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2041, "Length": 316, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "enum", "sched_fusion_type", "fusion_load_store", "(", "rtx_insn", "*", "insn", ",", "rtx", "*", "base", ",", "rtx", "*", "offset", ")", "{", "rtx", "x", ",", "dest", ",", "src", ";", "enum", "sched_fusion_type", "fusion", "=", "SCHED_FUSION_LD", ";", "gcc_assert", "(", "INSN_P", "(", "insn", ")", ")", ";", "x", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "!=", "SET", ")", "return", "SCHED_FUSION_NONE", ";", "src", "=", "SET_SRC", "(", "x", ")", ";", "dest", "=", "SET_DEST", "(", "x", ")", ";", "machine_mode", "dest_mode", "=", "GET_MODE", "(", "dest", ")", ";", "if", "(", "!", "aarch64_mode_valid_for_sched_fusion_p", "(", "dest_mode", ")", ")", "return", "SCHED_FUSION_NONE", ";", "if", "(", "GET_CODE", "(", "src", ")", "==", "SIGN_EXTEND", ")", "{", "fusion", "=", "SCHED_FUSION_LD_SIGN_EXTEND", ";", "src", "=", "XEXP", "(", "src", ",", "0", ")", ";", "if", "(", "!", "MEM_P", "(", "src", ")", "||", "GET_MODE", "(", "src", ")", "!=", "SImode", ")", "return", "SCHED_FUSION_NONE", ";", "}", "else", "if", "(", "GET_CODE", "(", "src", ")", "==", "ZERO_EXTEND", ")", "{", "fusion", "=", "SCHED_FUSION_LD_ZERO_EXTEND", ";", "src", "=", "XEXP", "(", "src", ",", "0", ")", ";", "if", "(", "!", "MEM_P", "(", "src", ")", "||", "GET_MODE", "(", "src", ")", "!=", "SImode", ")", "return", "SCHED_FUSION_NONE", ";", "}", "if", "(", "MEM_P", "(", "src", ")", "&&", "REG_P", "(", "dest", ")", ")", "extract_base_offset_in_addr", "(", "src", ",", "base", ",", "offset", ")", ";", "else", "if", "(", "MEM_P", "(", "dest", ")", "&&", "(", "REG_P", "(", "src", ")", "||", "src", "==", "const0_rtx", ")", ")", "{", "fusion", "=", "SCHED_FUSION_ST", ";", "extract_base_offset_in_addr", "(", "dest", ",", "base", ",", "offset", ")", ";", "}", "else", "return", "SCHED_FUSION_NONE", ";", "if", "(", "*", "base", "==", "NULL_RTX", "||", "*", "offset", "==", "NULL_RTX", ")", "fusion", "=", "SCHED_FUSION_NONE", ";", "return", "fusion", ";", "}", ""], "natrual_language": ["If", "INSN", "is", "a", "load", "or", "store", "of", "address", "in", "the", "form", "of", "[", "base+offset", "]", ",", "extract", "the", "two", "parts", "and", "set", "to", "BASE", "and", "OFFSET", ".", "IS_LOAD", "is", "set", "to", "TRUE", "if", "it", "'s", "a", "load", ".", "Return", "TRUE", "if", "INSN", "is", "such", "an", "instruction", ",", "otherwise", "return", "FALSE", "."], "TS_V_token": ["aarch64", "0", "0"], "File": "aarch641", "Func": "fusion_load_store", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2042, "Length": 255, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "uint32_t", "generateCompactUnwindEncoding", "(", "ArrayRef", "<", "MCCFIInstruction", ">", "Instrs", ")", "const", "override", "{", "if", "(", "Instrs", ".", "empty", "(", ")", ")", "return", "0", ";", "unsigned", "SavedRegIdx", "=", "0", ";", "memset", "(", "SavedRegs", ",", "0", ",", "sizeof", "(", "SavedRegs", ")", ")", ";", "bool", "HasFP", "=", "false", ";", "uint32_t", "CompactUnwindEncoding", "=", "0", ";", "unsigned", "SubtractInstrIdx", "=", "Is64Bit", "?", "3", ":", "2", ";", "unsigned", "InstrOffset", "=", "0", ";", "unsigned", "StackAdjust", "=", "0", ";", "unsigned", "StackSize", "=", "0", ";", "unsigned", "NumDefCFAOffsets", "=", "0", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "Instrs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "const", "MCCFIInstruction", "&", "Inst", "=", "Instrs", "[", "i", "]", ";", "switch", "(", "Inst", ".", "getOperation", "(", ")", ")", "{", "default", ":", "return", "0", ";", "case", "MCCFIInstruction", "::", "OpDefCfaRegister", ":", "{", "HasFP", "=", "true", ";", "if", "(", "*", "MRI", ".", "getLLVMRegNum", "(", "Inst", ".", "getRegister", "(", ")", ",", "true", ")", "!=", "(", "Is64Bit", "?", "X86", "::", "RBP", ":", "X86", "::", "EBP", ")", ")", "return", "0", ";", "memset", "(", "SavedRegs", ",", "0", ",", "sizeof", "(", "SavedRegs", ")", ")", ";", "StackAdjust", "=", "0", ";", "SavedRegIdx", "=", "0", ";", "InstrOffset", "+=", "MoveInstrSize", ";", "break", ";", "}", "case", "MCCFIInstruction", "::", "OpDefCfaOffset", ":", "{", "StackSize", "=", "std", "::", "abs", "(", "Inst", ".", "getOffset", "(", ")", ")", "/", "StackDivide", ";", "++", "NumDefCFAOffsets", ";", "break", ";", "}", "case", "MCCFIInstruction", "::", "OpOffset", ":", "{", "if", "(", "SavedRegIdx", "==", "CU_NUM_SAVED_REGS", ")", "return", "CU", "::", "UNWIND_MODE_DWARF", ";", "unsigned", "Reg", "=", "*", "MRI", ".", "getLLVMRegNum", "(", "Inst", ".", "getRegister", "(", ")", ",", "true", ")", ";", "SavedRegs", "[", "SavedRegIdx", "++", "]", "=", "Reg", ";", "StackAdjust", "+=", "OffsetSize", ";", "InstrOffset", "+=", "PushInstrSize", "(", "Reg", ")", ";", "break", ";", "}", "}", "}", "StackAdjust", "/=", "StackDivide", ";", "if", "(", "HasFP", ")", "{", "if", "(", "(", "StackAdjust", "&", "0xFF", ")", "!=", "StackAdjust", ")", "return", "CU", "::", "UNWIND_MODE_DWARF", ";", "uint32_t", "RegEnc", "=", "encodeCompactUnwindRegistersWithFrame", "(", ")", ";", "if", "(", "RegEnc", "==", "~", "0U", ")", "return", "CU", "::", "UNWIND_MODE_DWARF", ";", "CompactUnwindEncoding", "|=", "CU", "::", "UNWIND_MODE_BP_FRAME", ";", "CompactUnwindEncoding", "|=", "(", "StackAdjust", "&", "0xFF", ")", "<<", "16", ";", "CompactUnwindEncoding", "|=", "RegEnc", "&", "CU", "::", "UNWIND_BP_FRAME_REGISTERS", ";", "}", "else", "{", "SubtractInstrIdx", "+=", "InstrOffset", ";", "++", "StackAdjust", ";", "if", "(", "(", "StackSize", "&", "0xFF", ")", "==", "StackSize", ")", "{", "CompactUnwindEncoding", "|=", "CU", "::", "UNWIND_MODE_STACK_IMMD", ";", "CompactUnwindEncoding", "|=", "(", "StackSize", "&", "0xFF", ")", "<<", "16", ";", "}", "else", "{", "if", "(", "(", "StackAdjust", "&", "0x7", ")", "!=", "StackAdjust", ")", "return", "CU", "::", "UNWIND_MODE_DWARF", ";", "CompactUnwindEncoding", "|=", "CU", "::", "UNWIND_MODE_STACK_IND", ";", "CompactUnwindEncoding", "|=", "(", "SubtractInstrIdx", "&", "0xFF", ")", "<<", "16", ";", "CompactUnwindEncoding", "|=", "(", "StackAdjust", "&", "0x7", ")", "<<", "13", ";", "}", "std", "::", "reverse", "(", "&", "SavedRegs", "[", "0", "]", ",", "&", "SavedRegs", "[", "SavedRegIdx", "]", ")", ";", "CompactUnwindEncoding", "|=", "(", "SavedRegIdx", "&", "0x7", ")", "<<", "10", ";", "uint32_t", "RegEnc", "=", "encodeCompactUnwindRegistersWithoutFrame", "(", "SavedRegIdx", ")", ";", "if", "(", "RegEnc", "==", "~", "0U", ")", "return", "CU", "::", "UNWIND_MODE_DWARF", ";", "CompactUnwindEncoding", "|=", "RegEnc", "&", "CU", "::", "UNWIND_FRAMELESS_STACK_REG_PERMUTATION", ";", "}", "return", "CompactUnwindEncoding", ";", "}", ""], "natrual_language": ["Generate", "compact", "unwind", "encoding", "for", "the", "function", "based", "on", "the", "CFI", "instructions", "."], "TS_V_token": ["X86", "0", "0", "0", "0", "3", "2", "0", "0", "0", "0", "0", "0", "X86::RBP", "X86::EBP", "0", "0", "0", "0", "0xFF", "0U", "0xFF", "16", "0xFF", "0xFF", "16", "0x7", "0xFF", "16", "0x7", "13", "0", "0x7", "10", "0U"], "File": "X86AsmBackend16", "Func": "generateCompactUnwindEncoding", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2043, "Length": 488, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_xcoff_file_start", "(", "void", ")", "{", "rs6000_gen_section_name", "(", "&", "xcoff_bss_section_name", ",", "main_input_filename", ",", "\".bss_\"", ")", ";", "rs6000_gen_section_name", "(", "&", "xcoff_private_data_section_name", ",", "main_input_filename", ",", "\".rw_\"", ")", ";", "rs6000_gen_section_name", "(", "&", "xcoff_private_rodata_section_name", ",", "main_input_filename", ",", "\".rop_\"", ")", ";", "rs6000_gen_section_name", "(", "&", "xcoff_read_only_section_name", ",", "main_input_filename", ",", "\".ro_\"", ")", ";", "rs6000_gen_section_name", "(", "&", "xcoff_tls_data_section_name", ",", "main_input_filename", ",", "\".tls_\"", ")", ";", "fputs", "(", "\"\\t.file\\t\"", ",", "asm_out_file", ")", ";", "output_quoted_string", "(", "asm_out_file", ",", "main_input_filename", ")", ";", "fputc", "(", "'\\n'", ",", "asm_out_file", ")", ";", "if", "(", "write_symbols", "!=", "NO_DEBUG", ")", "switch_to_section", "(", "private_data_section", ")", ";", "switch_to_section", "(", "toc_section", ")", ";", "switch_to_section", "(", "text_section", ")", ";", "if", "(", "profile_flag", ")", "fprintf", "(", "asm_out_file", ",", "\"\\t.extern %s\\n\"", ",", "RS6000_MCOUNT", ")", ";", "rs6000_file_start", "(", ")", ";", "}", ""], "natrual_language": ["Output", "at", "beginning", "of", "assembler", "file", ".", "Initialize", "the", "section", "names", "for", "the", "RS/6000", "at", "this", "point", ".", "Specify", "filename", ",", "including", "full", "path", ",", "to", "assembler", ".", "We", "want", "to", "go", "into", "the", "TOC", "section", "so", "at", "least", "one", ".toc", "will", "be", "emitted", ".", "Also", ",", "in", "order", "to", "output", "proper", ".bs/.es", "pairs", ",", "we", "need", "at", "least", "one", "static", "[", "RW", "]", "section", "emitted", ".", "Finally", ",", "declare", "mcount", "when", "profiling", "to", "make", "the", "assembler", "happy", "."], "TS_V_token": ["rs6000", "\".bss_\"", "\".rw_\"", "\".rop_\"", "\".ro_\"", "\".tls_\"", "\"\\t.file\\t\"", "\"\\t.extern %s\\n\""], "File": "rs6000", "Func": "rs6000_xcoff_file_start", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2044, "Length": 117, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ix86_vec_cost", "(", "machine_mode", "mode", ",", "int", "cost", ",", "bool", "parallel", ")", "{", "if", "(", "!", "VECTOR_MODE_P", "(", "mode", ")", ")", "return", "cost", ";", "if", "(", "!", "parallel", ")", "return", "cost", "*", "GET_MODE_NUNITS", "(", "mode", ")", ";", "if", "(", "GET_MODE_BITSIZE", "(", "mode", ")", "==", "128", "&&", "TARGET_SSE_SPLIT_REGS", ")", "return", "cost", "*", "2", ";", "if", "(", "GET_MODE_BITSIZE", "(", "mode", ")", ">", "128", "&&", "TARGET_AVX128_OPTIMAL", ")", "return", "cost", "*", "GET_MODE_BITSIZE", "(", "mode", ")", "/", "128", ";", "return", "cost", ";", "}", ""], "natrual_language": ["Return", "cost", "of", "vector", "operation", "in", "MODE", "given", "that", "scalar", "version", "has", "COST", ".", "If", "PARALLEL", "is", "true", "assume", "that", "CPU", "has", "more", "than", "one", "unit", "performing", "the", "operation", "."], "TS_V_token": ["i386", "128", "2", "128", "128"], "File": "i3867", "Func": "ix86_vec_cost", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2045, "Length": 79, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "SMLoc", "getEndLoc", "(", ")", "const", "LLVM_OVERRIDE", "{", "return", "EndLoc", ";", "}", ""], "natrual_language": ["getEndLoc", "-", "Get", "the", "location", "of", "the", "last", "token", "of", "this", "operand", "."], "TS_V_token": ["SystemZ"], "File": "SystemZAsmParser10", "Func": "getEndLoc", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2046, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "arm_promoted_type", "(", "const_tree", "t", ")", "{", "if", "(", "SCALAR_FLOAT_TYPE_P", "(", "t", ")", "&&", "TYPE_PRECISION", "(", "t", ")", "==", "16", ")", "return", "float_type_node", ";", "return", "NULL_TREE", ";", "}", ""], "natrual_language": ["Implement", "TARGET_PROMOTED_TYPE", "."], "TS_V_token": ["arm", "16"], "File": "arm4", "Func": "arm_promoted_type", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2047, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MVT", "X86TargetLowering", "::", "getRegisterTypeForCallingConv", "(", "LLVMContext", "&", "Context", ",", "CallingConv", "::", "ID", "CC", ",", "EVT", "VT", ")", "const", "{", "if", "(", "VT", ".", "isVector", "(", ")", "&&", "VT", ".", "getVectorElementType", "(", ")", "==", "MVT", "::", "i1", "&&", "Subtarget", ".", "hasAVX512", "(", ")", ")", "{", "unsigned", "NumElts", "=", "VT", ".", "getVectorNumElements", "(", ")", ";", "MVT", "RegisterVT", ";", "unsigned", "NumRegisters", ";", "std", "::", "tie", "(", "RegisterVT", ",", "NumRegisters", ")", "=", "handleMaskRegisterForCallingConv", "(", "NumElts", ",", "CC", ",", "Subtarget", ")", ";", "if", "(", "RegisterVT", "!=", "MVT", "::", "INVALID_SIMPLE_VALUE_TYPE", ")", "return", "RegisterVT", ";", "}", "if", "(", "VT", "==", "MVT", "::", "v3f16", "&&", "Subtarget", ".", "hasFP16", "(", ")", ")", "return", "MVT", "::", "v8f16", ";", "if", "(", "(", "VT", "==", "MVT", "::", "f64", "||", "VT", "==", "MVT", "::", "f80", ")", "&&", "!", "Subtarget", ".", "is64Bit", "(", ")", "&&", "!", "Subtarget", ".", "hasX87", "(", ")", ")", "return", "MVT", "::", "i32", ";", "return", "TargetLowering", "::", "getRegisterTypeForCallingConv", "(", "Context", ",", "CC", ",", "VT", ")", ";", "}", ""], "natrual_language": ["Certain", "combinations", "of", "ABIs", ",", "Targets", "and", "features", "require", "that", "types", "are", "legal", "for", "some", "operations", "and", "not", "for", "other", "operations", "."], "TS_V_token": ["X86", "X86", "MVT::i1", "MVT::INVALID_SIMPLE_VALUE_TYPE", "MVT::v3f16", "MVT::v8f16", "MVT::f64", "MVT::f80", "MVT::i32"], "File": "X86ISelLowering100", "Func": "getRegisterTypeForCallingConv", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2048, "Length": 156, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMAsmParser", "::", "ParseDirective", "(", "AsmToken", "DirectiveID", ")", "{", "StringRef", "IDVal", "=", "DirectiveID", ".", "getIdentifier", "(", ")", ";", "if", "(", "IDVal", "==", "\".word\"", ")", "return", "parseDirectiveWord", "(", "4", ",", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".thumb\"", ")", "return", "parseDirectiveThumb", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".arm\"", ")", "return", "parseDirectiveARM", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".thumb_func\"", ")", "return", "parseDirectiveThumbFunc", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".code\"", ")", "return", "parseDirectiveCode", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".syntax\"", ")", "return", "parseDirectiveSyntax", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".unreq\"", ")", "return", "parseDirectiveUnreq", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".arch\"", ")", "return", "parseDirectiveArch", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".eabi_attribute\"", ")", "return", "parseDirectiveEabiAttr", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".cpu\"", ")", "return", "parseDirectiveCPU", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".fpu\"", ")", "return", "parseDirectiveFPU", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".fnstart\"", ")", "return", "parseDirectiveFnStart", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".fnend\"", ")", "return", "parseDirectiveFnEnd", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".cantunwind\"", ")", "return", "parseDirectiveCantUnwind", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".personality\"", ")", "return", "parseDirectivePersonality", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".handlerdata\"", ")", "return", "parseDirectiveHandlerData", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".setfp\"", ")", "return", "parseDirectiveSetFP", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".pad\"", ")", "return", "parseDirectivePad", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "else", "if", "(", "IDVal", "==", "\".save\"", ")", "return", "parseDirectiveRegSave", "(", "DirectiveID", ".", "getLoc", "(", ")", ",", "false", ")", ";", "else", "if", "(", "IDVal", "==", "\".vsave\"", ")", "return", "parseDirectiveRegSave", "(", "DirectiveID", ".", "getLoc", "(", ")", ",", "true", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["ParseDirective", "-", "Parse", "a", "target", "specific", "assembler", "directive", "This", "method", "is", "deprecated", ",", "use", "'parseDirective", "'", "instead", "."], "TS_V_token": ["ARM", "ARM", "\".word\"", "4", "\".thumb\"", "\".arm\"", "ARM", "\".thumb_func\"", "\".code\"", "\".syntax\"", "\".unreq\"", "\".arch\"", "\".eabi_attribute\"", "\".cpu\"", "\".fpu\"", "\".fnstart\"", "\".fnend\"", "\".cantunwind\"", "\".personality\"", "\".handlerdata\"", "\".setfp\"", "\".pad\"", "\".save\"", "\".vsave\""], "File": "ARMAsmParser102", "Func": "ParseDirective", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2049, "Length": 367, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCInstrInfo", "::", "getMemOperandWithOffsetWidth", "(", "const", "MachineInstr", "&", "LdSt", ",", "const", "MachineOperand", "*", "&", "BaseReg", ",", "int64_t", "&", "Offset", ",", "unsigned", "&", "Width", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "assert", "(", "LdSt", ".", "mayLoadOrStore", "(", ")", "&&", "\"Expected a memory operation.\"", ")", ";", "if", "(", "LdSt", ".", "getNumExplicitOperands", "(", ")", "!=", "3", ")", "return", "false", ";", "if", "(", "!", "LdSt", ".", "getOperand", "(", "1", ")", ".", "isImm", "(", ")", "||", "!", "LdSt", ".", "getOperand", "(", "2", ")", ".", "isReg", "(", ")", ")", "return", "false", ";", "if", "(", "!", "LdSt", ".", "hasOneMemOperand", "(", ")", ")", "return", "false", ";", "Width", "=", "(", "*", "LdSt", ".", "memoperands_begin", "(", ")", ")", "->", "getSize", "(", ")", ";", "Offset", "=", "LdSt", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ";", "BaseReg", "=", "&", "LdSt", ".", "getOperand", "(", "2", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "get", "the", "base", "operand", ",", "byte", "offset", "of", "an", "instruction", "and", "the", "memory", "width", "."], "TS_V_token": ["PowerPC", "PPC", "\"Expected a memory operation.\"", "3", "1", "2", "1", "2"], "File": "PPCInstrInfo115", "Func": "getMemOperandWithOffsetWidth", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2050, "Length": 138, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "paired_emit_vector_cond_expr", "(", "rtx", "dest", ",", "rtx", "op1", ",", "rtx", "op2", ",", "rtx", "cond", ",", "rtx", "cc_op0", ",", "rtx", "cc_op1", ")", "{", "enum", "rtx_code", "rcode", "=", "GET_CODE", "(", "cond", ")", ";", "if", "(", "!", "TARGET_PAIRED_FLOAT", ")", "return", "0", ";", "paired_emit_vector_compare", "(", "rcode", ",", "dest", ",", "op1", ",", "op2", ",", "cc_op0", ",", "cc_op1", ")", ";", "return", "1", ";", "}", ""], "natrual_language": ["Emit", "vector", "conditional", "expression", ".", "DEST", "is", "destination", ".", "OP1", "and", "OP2", "are", "two", "VEC_COND_EXPR", "operands", ".", "CC_OP0", "and", "CC_OP1", "are", "the", "two", "operands", "for", "the", "relation", "operation", "COND", "."], "TS_V_token": ["rs6000", "0", "1"], "File": "rs60004", "Func": "paired_emit_vector_cond_expr", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2051, "Length": 58, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseInstrInfo", "::", "getRegSequenceLikeInputs", "(", "const", "MachineInstr", "&", "MI", ",", "unsigned", "DefIdx", ",", "SmallVectorImpl", "<", "RegSubRegPairAndIdx", ">", "&", "InputRegs", ")", "const", "{", "assert", "(", "DefIdx", "<", "MI", ".", "getDesc", "(", ")", ".", "getNumDefs", "(", ")", "&&", "\"Invalid definition index\"", ")", ";", "assert", "(", "MI", ".", "isRegSequenceLike", "(", ")", "&&", "\"Invalid kind of instruction\"", ")", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "case", "ARM", "::", "VMOVDRR", ":", "const", "MachineOperand", "*", "MOReg", "=", "&", "MI", ".", "getOperand", "(", "1", ")", ";", "InputRegs", ".", "push_back", "(", "RegSubRegPairAndIdx", "(", "MOReg", "->", "getReg", "(", ")", ",", "MOReg", "->", "getSubReg", "(", ")", ",", "ARM", "::", "ssub_0", ")", ")", ";", "MOReg", "=", "&", "MI", ".", "getOperand", "(", "2", ")", ";", "InputRegs", ".", "push_back", "(", "RegSubRegPairAndIdx", "(", "MOReg", "->", "getReg", "(", ")", ",", "MOReg", "->", "getSubReg", "(", ")", ",", "ARM", "::", "ssub_1", ")", ")", ";", "return", "true", ";", "}", "llvm_unreachable", "(", "\"Target dependent opcode missing\"", ")", ";", "}", ""], "natrual_language": ["Target-dependent", "implementation", "of", "getRegSequenceInputs", "."], "TS_V_token": ["ARM", "ARM", "\"Invalid definition index\"", "\"Invalid kind of instruction\"", "ARM::VMOVDRR", "1", "ARM::ssub_0", "2", "ARM::ssub_1", "\"Target dependent opcode missing\""], "File": "ARMBaseInstrInfo (2)2", "Func": "getRegSequenceLikeInputs", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2052, "Length": 145, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "init_cumulative_args", "(", "CUMULATIVE_ARGS", "*", "cum", ",", "tree", "fntype", ",", "rtx", "libname", ",", "tree", "fndecl", ",", "int", "caller", ")", "{", "struct", "cgraph_local_info", "*", "i", "=", "NULL", ";", "struct", "cgraph_node", "*", "target", "=", "NULL", ";", "memset", "(", "cum", ",", "0", ",", "sizeof", "(", "*", "cum", ")", ")", ";", "if", "(", "fndecl", ")", "{", "target", "=", "cgraph_node", "::", "get", "(", "fndecl", ")", ";", "if", "(", "target", ")", "{", "target", "=", "target", "->", "function_symbol", "(", ")", ";", "i", "=", "cgraph_node", "::", "local_info", "(", "target", "->", "decl", ")", ";", "cum", "->", "call_abi", "=", "ix86_function_abi", "(", "target", "->", "decl", ")", ";", "}", "else", "cum", "->", "call_abi", "=", "ix86_function_abi", "(", "fndecl", ")", ";", "}", "else", "cum", "->", "call_abi", "=", "ix86_function_type_abi", "(", "fntype", ")", ";", "cum", "->", "caller", "=", "caller", ";", "cum", "->", "nregs", "=", "ix86_regparm", ";", "if", "(", "TARGET_64BIT", ")", "{", "cum", "->", "nregs", "=", "(", "cum", "->", "call_abi", "==", "SYSV_ABI", "?", "X86_64_REGPARM_MAX", ":", "X86_64_MS_REGPARM_MAX", ")", ";", "}", "if", "(", "TARGET_SSE", ")", "{", "cum", "->", "sse_nregs", "=", "SSE_REGPARM_MAX", ";", "if", "(", "TARGET_64BIT", ")", "{", "cum", "->", "sse_nregs", "=", "(", "cum", "->", "call_abi", "==", "SYSV_ABI", "?", "X86_64_SSE_REGPARM_MAX", ":", "X86_64_MS_SSE_REGPARM_MAX", ")", ";", "}", "}", "if", "(", "TARGET_MMX", ")", "cum", "->", "mmx_nregs", "=", "MMX_REGPARM_MAX", ";", "cum", "->", "warn_avx512f", "=", "true", ";", "cum", "->", "warn_avx", "=", "true", ";", "cum", "->", "warn_sse", "=", "true", ";", "cum", "->", "warn_mmx", "=", "true", ";", "if", "(", "i", "&&", "i", "->", "local", "&&", "i", "->", "can_change_signature", ")", "fntype", "=", "TREE_TYPE", "(", "target", "->", "decl", ")", ";", "cum", "->", "stdarg", "=", "stdarg_p", "(", "fntype", ")", ";", "cum", "->", "maybe_vaarg", "=", "(", "fntype", "?", "(", "!", "prototype_p", "(", "fntype", ")", "||", "stdarg_p", "(", "fntype", ")", ")", ":", "!", "libname", ")", ";", "cum", "->", "bnd_regno", "=", "FIRST_BND_REG", ";", "cum", "->", "bnds_in_bt", "=", "0", ";", "cum", "->", "force_bnd_pass", "=", "0", ";", "cum", "->", "decl", "=", "fndecl", ";", "if", "(", "!", "TARGET_64BIT", ")", "{", "if", "(", "stdarg_p", "(", "fntype", ")", ")", "{", "cum", "->", "nregs", "=", "0", ";", "cfun", "->", "machine", "->", "arg_reg_available", "=", "true", ";", "cum", "->", "sse_nregs", "=", "0", ";", "cum", "->", "mmx_nregs", "=", "0", ";", "cum", "->", "warn_avx512f", "=", "false", ";", "cum", "->", "warn_avx", "=", "false", ";", "cum", "->", "warn_sse", "=", "false", ";", "cum", "->", "warn_mmx", "=", "false", ";", "return", ";", "}", "if", "(", "fntype", ")", "{", "unsigned", "int", "ccvt", "=", "ix86_get_callcvt", "(", "fntype", ")", ";", "if", "(", "(", "ccvt", "&", "IX86_CALLCVT_THISCALL", ")", "!=", "0", ")", "{", "cum", "->", "nregs", "=", "1", ";", "cum", "->", "fastcall", "=", "1", ";", "}", "else", "if", "(", "(", "ccvt", "&", "IX86_CALLCVT_FASTCALL", ")", "!=", "0", ")", "{", "cum", "->", "nregs", "=", "2", ";", "cum", "->", "fastcall", "=", "1", ";", "}", "else", "cum", "->", "nregs", "=", "ix86_function_regparm", "(", "fntype", ",", "fndecl", ")", ";", "}", "cum", "->", "float_in_sse", "=", "ix86_function_sseregparm", "(", "fntype", ",", "fndecl", ",", "true", ")", ";", "}", "cfun", "->", "machine", "->", "arg_reg_available", "=", "(", "cum", "->", "nregs", ">", "0", ")", ";", "}", ""], "natrual_language": ["Handle", "the", "INIT_CUMULATIVE_ARGS", "macro", ".", "Initialize", "a", "variable", "CUM", "of", "type", "CUMULATIVE_ARGS", "for", "a", "call", "to", "a", "function", "whose", "data", "type", "is", "FNTYPE", ".", "For", "a", "library", "call", ",", "FNTYPE", "is", "0", "."], "TS_V_token": ["i386", "0", "0", "0", "0", "0", "0", "0", "1", "1", "0", "2", "1", "0"], "File": "i3865", "Func": "init_cumulative_args", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2053, "Length": 470, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ia64_split_tmode_move", "(", "rtx", "operands", "[", "]", ")", "{", "rtx", "in", "[", "2", "]", ",", "out", "[", "2", "]", ",", "insn", ";", "rtx", "fixup", "[", "2", "]", ";", "bool", "dead", "=", "false", ";", "bool", "reversed", "=", "false", ";", "if", "(", "GET_CODE", "(", "operands", "[", "1", "]", ")", "==", "MEM", "&&", "reg_overlap_mentioned_p", "(", "operands", "[", "0", "]", ",", "operands", "[", "1", "]", ")", ")", "{", "rtx", "base", "=", "XEXP", "(", "operands", "[", "1", "]", ",", "0", ")", ";", "while", "(", "GET_CODE", "(", "base", ")", "!=", "REG", ")", "base", "=", "XEXP", "(", "base", ",", "0", ")", ";", "if", "(", "REGNO", "(", "base", ")", "==", "REGNO", "(", "operands", "[", "0", "]", ")", ")", "reversed", "=", "true", ";", "if", "(", "refers_to_regno_p", "(", "REGNO", "(", "operands", "[", "0", "]", ")", ",", "REGNO", "(", "operands", "[", "0", "]", ")", "+", "2", ",", "base", ",", "0", ")", ")", "dead", "=", "true", ";", "}", "if", "(", "GET_CODE", "(", "operands", "[", "0", "]", ")", "==", "REG", "&&", "GET_CODE", "(", "operands", "[", "1", "]", ")", "==", "REG", "&&", "REGNO", "(", "operands", "[", "0", "]", ")", "==", "REGNO", "(", "operands", "[", "1", "]", ")", "+", "1", ")", "reversed", "=", "true", ";", "fixup", "[", "0", "]", "=", "ia64_split_tmode", "(", "in", ",", "operands", "[", "1", "]", ",", "reversed", ",", "dead", ")", ";", "fixup", "[", "1", "]", "=", "ia64_split_tmode", "(", "out", ",", "operands", "[", "0", "]", ",", "reversed", ",", "dead", ")", ";", "if", "(", "GET_CODE", "(", "EXP", ")", "==", "MEM", "\\", "&&", "(", "GET_CODE", "(", "XEXP", "(", "EXP", ",", "0", ")", ")", "==", "POST_MODIFY", "\\", "||", "GET_CODE", "(", "XEXP", "(", "EXP", ",", "0", ")", ")", "==", "POST_INC", "\\", "||", "GET_CODE", "(", "XEXP", "(", "EXP", ",", "0", ")", ")", "==", "POST_DEC", ")", ")", "\\", "add_reg_note", "(", "insn", ",", "REG_INC", ",", "XEXP", "(", "XEXP", "(", "EXP", ",", "0", ")", ",", "0", ")", ")", "insn", "=", "emit_insn", "(", "gen_rtx_SET", "(", "out", "[", "0", "]", ",", "in", "[", "0", "]", ")", ")", ";", "MAYBE_ADD_REG_INC_NOTE", "(", "insn", ",", "in", "[", "0", "]", ")", ";", "MAYBE_ADD_REG_INC_NOTE", "(", "insn", ",", "out", "[", "0", "]", ")", ";", "insn", "=", "emit_insn", "(", "gen_rtx_SET", "(", "out", "[", "1", "]", ",", "in", "[", "1", "]", ")", ")", ";", "MAYBE_ADD_REG_INC_NOTE", "(", "insn", ",", "in", "[", "1", "]", ")", ";", "MAYBE_ADD_REG_INC_NOTE", "(", "insn", ",", "out", "[", "1", "]", ")", ";", "if", "(", "fixup", "[", "0", "]", ")", "emit_insn", "(", "fixup", "[", "0", "]", ")", ";", "if", "(", "fixup", "[", "1", "]", ")", "emit_insn", "(", "fixup", "[", "1", "]", ")", ";", "}", ""], "natrual_language": ["Split", "a", "TImode", "or", "TFmode", "move", "instruction", "after", "reload", ".", "This", "is", "used", "by", "*", "movtf_internal", "and", "*", "movti_internal", "."], "TS_V_token": ["ia64", "2", "2", "2", "1", "0", "1", "1", "0", "0", "0", "0", "0", "2", "0", "0", "1", "0", "1", "1", "0", "1", "1", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "1", "1", "1", "1", "0", "0", "1", "1"], "File": "ia64", "Func": "ia64_split_tmode_move", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2054, "Length": 404, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_darwin_file_start", "(", "void", ")", "{", "static", "const", "struct", "{", "const", "char", "*", "arg", ";", "const", "char", "*", "name", ";", "HOST_WIDE_INT", "if_set", ";", "}", "mapping", "[", "]", "=", "{", "{", "\"ppc64\"", ",", "\"ppc64\"", ",", "MASK_64BIT", "}", ",", "{", "\"970\"", ",", "\"ppc970\"", ",", "MASK_PPC_GPOPT", "|", "MASK_MFCRF", "|", "MASK_POWERPC64", "}", ",", "{", "\"power4\"", ",", "\"ppc970\"", ",", "0", "}", ",", "{", "\"G5\"", ",", "\"ppc970\"", ",", "0", "}", ",", "{", "\"7450\"", ",", "\"ppc7450\"", ",", "0", "}", ",", "{", "\"7400\"", ",", "\"ppc7400\"", ",", "MASK_ALTIVEC", "}", ",", "{", "\"G4\"", ",", "\"ppc7400\"", ",", "0", "}", ",", "{", "\"750\"", ",", "\"ppc750\"", ",", "0", "}", ",", "{", "\"740\"", ",", "\"ppc750\"", ",", "0", "}", ",", "{", "\"G3\"", ",", "\"ppc750\"", ",", "0", "}", ",", "{", "\"604e\"", ",", "\"ppc604e\"", ",", "0", "}", ",", "{", "\"604\"", ",", "\"ppc604\"", ",", "0", "}", ",", "{", "\"603e\"", ",", "\"ppc603\"", ",", "0", "}", ",", "{", "\"603\"", ",", "\"ppc603\"", ",", "0", "}", ",", "{", "\"601\"", ",", "\"ppc601\"", ",", "0", "}", ",", "{", "NULL", ",", "\"ppc\"", ",", "0", "}", "}", ";", "const", "char", "*", "cpu_id", "=", "\"\"", ";", "size_t", "i", ";", "rs6000_file_start", "(", ")", ";", "darwin_file_start", "(", ")", ";", "if", "(", "rs6000_default_cpu", "!=", "0", "&&", "rs6000_default_cpu", "[", "0", "]", "!=", "'\\0'", ")", "cpu_id", "=", "rs6000_default_cpu", ";", "if", "(", "global_options_set", ".", "x_rs6000_cpu_index", ")", "cpu_id", "=", "processor_target_table", "[", "rs6000_cpu_index", "]", ".", "name", ";", "i", "=", "0", ";", "while", "(", "mapping", "[", "i", "]", ".", "arg", "!=", "NULL", "&&", "strcmp", "(", "mapping", "[", "i", "]", ".", "arg", ",", "cpu_id", ")", "!=", "0", "&&", "(", "mapping", "[", "i", "]", ".", "if_set", "&", "rs6000_isa_flags", ")", "==", "0", ")", "i", "++", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t.machine %s\\n\"", ",", "mapping", "[", "i", "]", ".", "name", ")", ";", "}", ""], "natrual_language": ["Output", "a", ".machine", "directive", "for", "the", "Darwin", "assembler", ",", "and", "call", "the", "generic", "start_file", "routine", "."], "TS_V_token": ["powerpcspe", "\"ppc64\"", "\"ppc64\"", "\"970\"", "\"ppc970\"", "\"power4\"", "\"ppc970\"", "0", "\"G5\"", "\"ppc970\"", "0", "\"7450\"", "\"ppc7450\"", "0", "\"7400\"", "\"ppc7400\"", "\"G4\"", "\"ppc7400\"", "0", "\"750\"", "\"ppc750\"", "0", "\"740\"", "\"ppc750\"", "0", "\"G3\"", "\"ppc750\"", "0", "\"604e\"", "\"ppc604e\"", "0", "\"604\"", "\"ppc604\"", "0", "\"603e\"", "\"ppc603\"", "0", "\"603\"", "\"ppc603\"", "0", "\"601\"", "\"ppc601\"", "0", "\"ppc\"", "0", "\"\"", "0", "0", "0", "0", "0", "\"\\t.machine %s\\n\""], "File": "powerpcspe", "Func": "rs6000_darwin_file_start", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2055, "Length": 273, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_pass_by_reference", "(", "cumulative_args_t", ",", "const", "function_arg_info", "&", "arg", ")", "{", "return", "arg", ".", "type", "&&", "TREE_CODE", "(", "TYPE_SIZE", "(", "arg", ".", "type", ")", ")", "!=", "INTEGER_CST", ";", "}", ""], "natrual_language": ["Variable", "sized", "types", "are", "passed", "by", "reference", ".", "This", "is", "a", "GCC", "extension", "to", "the", "ARM", "ABI", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "arm_pass_by_reference", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2056, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86AsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "X86MCInstLower", "MCInstLowering", "(", "Mang", ",", "*", "MF", ",", "*", "this", ")", ";", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "case", "TargetOpcode", "::", "DBG_VALUE", ":", "if", "(", "isVerbose", "(", ")", "&&", "OutStreamer", ".", "hasRawTextSupport", "(", ")", ")", "{", "std", "::", "string", "TmpStr", ";", "raw_string_ostream", "OS", "(", "TmpStr", ")", ";", "PrintDebugValueComment", "(", "MI", ",", "OS", ")", ";", "OutStreamer", ".", "EmitRawText", "(", "StringRef", "(", "OS", ".", "str", "(", ")", ")", ")", ";", "}", "return", ";", "case", "X86", "::", "Int_MemBarrier", ":", "if", "(", "OutStreamer", ".", "hasRawTextSupport", "(", ")", ")", "OutStreamer", ".", "EmitRawText", "(", "StringRef", "(", "\"\\t#MEMBARRIER\"", ")", ")", ";", "return", ";", "case", "X86", "::", "TAILJMPr", ":", "case", "X86", "::", "TAILJMPd", ":", "case", "X86", "::", "TAILJMPd64", ":", "OutStreamer", ".", "AddComment", "(", "\"TAILCALL\"", ")", ";", "break", ";", "case", "X86", "::", "MOVPC32r", ":", "{", "MCInst", "TmpInst", ";", "MCSymbol", "*", "PICBase", "=", "MCInstLowering", ".", "GetPICBaseSymbol", "(", ")", ";", "TmpInst", ".", "setOpcode", "(", "X86", "::", "CALLpcrel32", ")", ";", "TmpInst", ".", "addOperand", "(", "MCOperand", "::", "CreateExpr", "(", "MCSymbolRefExpr", "::", "Create", "(", "PICBase", ",", "OutContext", ")", ")", ")", ";", "OutStreamer", ".", "EmitInstruction", "(", "TmpInst", ")", ";", "OutStreamer", ".", "EmitLabel", "(", "PICBase", ")", ";", "TmpInst", ".", "setOpcode", "(", "X86", "::", "POP32r", ")", ";", "TmpInst", ".", "getOperand", "(", "0", ")", "=", "MCOperand", "::", "CreateReg", "(", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ")", ";", "OutStreamer", ".", "EmitInstruction", "(", "TmpInst", ")", ";", "return", ";", "}", "case", "X86", "::", "ADD32ri", ":", "{", "if", "(", "MI", "->", "getOperand", "(", "2", ")", ".", "getTargetFlags", "(", ")", "!=", "X86II", "::", "MO_GOT_ABSOLUTE_ADDRESS", ")", "break", ";", "MCSymbol", "*", "DotSym", "=", "OutContext", ".", "CreateTempSymbol", "(", ")", ";", "OutStreamer", ".", "EmitLabel", "(", "DotSym", ")", ";", "MCSymbol", "*", "OpSym", "=", "MCInstLowering", ".", "GetSymbolFromOperand", "(", "MI", "->", "getOperand", "(", "2", ")", ")", ";", "const", "MCExpr", "*", "DotExpr", "=", "MCSymbolRefExpr", "::", "Create", "(", "DotSym", ",", "OutContext", ")", ";", "const", "MCExpr", "*", "PICBase", "=", "MCSymbolRefExpr", "::", "Create", "(", "MCInstLowering", ".", "GetPICBaseSymbol", "(", ")", ",", "OutContext", ")", ";", "DotExpr", "=", "MCBinaryExpr", "::", "CreateSub", "(", "DotExpr", ",", "PICBase", ",", "OutContext", ")", ";", "DotExpr", "=", "MCBinaryExpr", "::", "CreateAdd", "(", "MCSymbolRefExpr", "::", "Create", "(", "OpSym", ",", "OutContext", ")", ",", "DotExpr", ",", "OutContext", ")", ";", "MCInst", "TmpInst", ";", "TmpInst", ".", "setOpcode", "(", "X86", "::", "ADD32ri", ")", ";", "TmpInst", ".", "addOperand", "(", "MCOperand", "::", "CreateReg", "(", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ")", ")", ";", "TmpInst", ".", "addOperand", "(", "MCOperand", "::", "CreateReg", "(", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ")", ")", ";", "TmpInst", ".", "addOperand", "(", "MCOperand", "::", "CreateExpr", "(", "DotExpr", ")", ")", ";", "OutStreamer", ".", "EmitInstruction", "(", "TmpInst", ")", ";", "return", ";", "}", "}", "MCInst", "TmpInst", ";", "MCInstLowering", ".", "Lower", "(", "MI", ",", "TmpInst", ")", ";", "OutStreamer", ".", "EmitInstruction", "(", "TmpInst", ")", ";", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["X86", "X86", "X86", "X86::Int_MemBarrier", "\"\\t#MEMBARRIER\"", "X86::TAILJMPr", "X86::TAILJMPd", "X86::TAILJMPd64", "\"TAILCALL\"", "X86::MOVPC32r", "X86::CALLpcrel32", "X86::POP32r", "0", "0", "X86::ADD32ri", "2", "X86II::MO_GOT_ABSOLUTE_ADDRESS", "2", "X86::ADD32ri", "0", "1"], "File": "X86MCInstLower38", "Func": "EmitInstruction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2057, "Length": 457, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "rs6000_builtin_vectorization_cost", "(", "enum", "vect_cost_for_stmt", "type_of_cost", ",", "tree", "vectype", ",", "int", "misalign", ")", "{", "unsigned", "elements", ";", "tree", "elem_type", ";", "switch", "(", "type_of_cost", ")", "{", "case", "scalar_stmt", ":", "case", "scalar_load", ":", "case", "scalar_store", ":", "case", "vector_stmt", ":", "case", "vector_load", ":", "case", "vector_store", ":", "case", "vec_to_scalar", ":", "case", "scalar_to_vec", ":", "case", "cond_branch_not_taken", ":", "return", "1", ";", "case", "vec_perm", ":", "if", "(", "TARGET_VSX", ")", "return", "3", ";", "else", "return", "1", ";", "case", "vec_promote_demote", ":", "if", "(", "TARGET_VSX", ")", "return", "4", ";", "else", "return", "1", ";", "case", "cond_branch_taken", ":", "return", "3", ";", "case", "unaligned_load", ":", "if", "(", "TARGET_VSX", "&&", "TARGET_ALLOW_MOVMISALIGN", ")", "{", "elements", "=", "TYPE_VECTOR_SUBPARTS", "(", "vectype", ")", ";", "if", "(", "elements", "==", "2", ")", "return", "2", ";", "if", "(", "elements", "==", "4", ")", "{", "switch", "(", "misalign", ")", "{", "case", "8", ":", "return", "2", ";", "case", "-", "1", ":", "case", "4", ":", "case", "12", ":", "return", "22", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "}", "if", "(", "TARGET_ALTIVEC", ")", "gcc_unreachable", "(", ")", ";", "return", "2", ";", "case", "unaligned_store", ":", "if", "(", "TARGET_VSX", "&&", "TARGET_ALLOW_MOVMISALIGN", ")", "{", "elements", "=", "TYPE_VECTOR_SUBPARTS", "(", "vectype", ")", ";", "if", "(", "elements", "==", "2", ")", "return", "2", ";", "if", "(", "elements", "==", "4", ")", "{", "switch", "(", "misalign", ")", "{", "case", "8", ":", "return", "2", ";", "case", "-", "1", ":", "case", "4", ":", "case", "12", ":", "return", "23", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "}", "if", "(", "TARGET_ALTIVEC", ")", "gcc_unreachable", "(", ")", ";", "return", "2", ";", "case", "vec_construct", ":", "elements", "=", "TYPE_VECTOR_SUBPARTS", "(", "vectype", ")", ";", "elem_type", "=", "TREE_TYPE", "(", "vectype", ")", ";", "if", "(", "SCALAR_FLOAT_TYPE_P", "(", "elem_type", ")", "&&", "TYPE_PRECISION", "(", "elem_type", ")", "==", "32", ")", "return", "elements", "+", "1", ";", "else", "return", "elements", "/", "2", "+", "1", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Implement", "targetm.vectorize.builtin_vectorization_cost", "."], "TS_V_token": ["rs6000", "1", "3", "1", "4", "1", "3", "2", "2", "4", "8", "2", "1", "4", "12", "22", "2", "2", "2", "4", "8", "2", "1", "4", "12", "23", "2", "32", "1", "2", "1"], "File": "rs60004", "Func": "rs6000_builtin_vectorization_cost", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2058, "Length": 296, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "ix86_expand_sse_comi", "(", "const", "struct", "builtin_description", "*", "d", ",", "tree", "exp", ",", "rtx", "target", ")", "{", "rtx", "pat", ";", "tree", "arg0", "=", "CALL_EXPR_ARG", "(", "exp", ",", "0", ")", ";", "tree", "arg1", "=", "CALL_EXPR_ARG", "(", "exp", ",", "1", ")", ";", "rtx", "op0", "=", "expand_normal", "(", "arg0", ")", ";", "rtx", "op1", "=", "expand_normal", "(", "arg1", ")", ";", "machine_mode", "mode0", "=", "insn_data", "[", "d", "->", "icode", "]", ".", "operand", "[", "0", "]", ".", "mode", ";", "machine_mode", "mode1", "=", "insn_data", "[", "d", "->", "icode", "]", ".", "operand", "[", "1", "]", ".", "mode", ";", "enum", "rtx_code", "comparison", "=", "d", "->", "comparison", ";", "if", "(", "VECTOR_MODE_P", "(", "mode0", ")", ")", "op0", "=", "safe_vector_operand", "(", "op0", ",", "mode0", ")", ";", "if", "(", "VECTOR_MODE_P", "(", "mode1", ")", ")", "op1", "=", "safe_vector_operand", "(", "op1", ",", "mode1", ")", ";", "if", "(", "d", "->", "flag", "&", "BUILTIN_DESC_SWAP_OPERANDS", ")", "std", "::", "swap", "(", "op0", ",", "op1", ")", ";", "target", "=", "gen_reg_rtx", "(", "SImode", ")", ";", "emit_move_insn", "(", "target", ",", "const0_rtx", ")", ";", "target", "=", "gen_rtx_SUBREG", "(", "QImode", ",", "target", ",", "0", ")", ";", "if", "(", "(", "optimize", "&&", "!", "register_operand", "(", "op0", ",", "mode0", ")", ")", "||", "!", "insn_data", "[", "d", "->", "icode", "]", ".", "operand", "[", "0", "]", ".", "predicate", "(", "op0", ",", "mode0", ")", ")", "op0", "=", "copy_to_mode_reg", "(", "mode0", ",", "op0", ")", ";", "if", "(", "(", "optimize", "&&", "!", "register_operand", "(", "op1", ",", "mode1", ")", ")", "||", "!", "insn_data", "[", "d", "->", "icode", "]", ".", "operand", "[", "1", "]", ".", "predicate", "(", "op1", ",", "mode1", ")", ")", "op1", "=", "copy_to_mode_reg", "(", "mode1", ",", "op1", ")", ";", "pat", "=", "GEN_FCN", "(", "d", "->", "icode", ")", "(", "op0", ",", "op1", ")", ";", "if", "(", "!", "pat", ")", "return", "0", ";", "emit_insn", "(", "pat", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "gen_rtx_STRICT_LOW_PART", "(", "VOIDmode", ",", "target", ")", ",", "gen_rtx_fmt_ee", "(", "comparison", ",", "QImode", ",", "SET_DEST", "(", "pat", ")", ",", "const0_rtx", ")", ")", ")", ";", "return", "SUBREG_REG", "(", "target", ")", ";", "}", ""], "natrual_language": ["Subroutine", "of", "ix86_expand_builtin", "to", "take", "care", "of", "comi", "insns", "."], "TS_V_token": ["i386", "0", "1", "0", "1", "0", "0", "1", "0"], "File": "i3864", "Func": "ix86_expand_sse_comi", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2059, "Length": 321, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_cxx_cdtor_returns_this", "(", "void", ")", "{", "return", "TARGET_AAPCS_BASED", ";", "}", ""], "natrual_language": ["The", "EABI", "says", "constructors", "and", "destructors", "should", "return", "a", "pointer", "to", "the", "object", "constructed/destroyed", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "arm_cxx_cdtor_returns_this", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2060, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "{", "return", "\"optimise barriers pass\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["ARM", "\"optimise barriers pass\""], "File": "ARMOptimizeBarriersPass7", "Func": "getPassName", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2061, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "SystemZRegisterInfo", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", "MF", ",", "CallingConv", "::", "ID", "CC", ")", "const", "{", "const", "SystemZSubtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "SystemZSubtarget", ">", "(", ")", ";", "if", "(", "CC", "==", "CallingConv", "::", "GHC", ")", "return", "CSR_SystemZ_NoRegs_RegMask", ";", "if", "(", "CC", "==", "CallingConv", "::", "AnyReg", ")", "return", "Subtarget", ".", "hasVector", "(", ")", "?", "CSR_SystemZ_AllRegs_Vector_RegMask", ":", "CSR_SystemZ_AllRegs_RegMask", ";", "if", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getTargetLowering", "(", ")", "->", "supportSwiftError", "(", ")", "&&", "MF", ".", "getFunction", "(", ")", ".", "getAttributes", "(", ")", ".", "hasAttrSomewhere", "(", "Attribute", "::", "SwiftError", ")", ")", "return", "CSR_SystemZ_SwiftError_RegMask", ";", "return", "CSR_SystemZ_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ"], "File": "SystemZRegisterInfo15", "Func": "getCallPreservedMask", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2062, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "isThroughputPattern", "(", "MachineCombinerPattern", "Pattern", ")", "const", "{", "switch", "(", "Pattern", ")", "{", "default", ":", "break", ";", "case", "MachineCombinerPattern", "::", "FMULADDH_OP1", ":", "case", "MachineCombinerPattern", "::", "FMULADDH_OP2", ":", "case", "MachineCombinerPattern", "::", "FMULSUBH_OP1", ":", "case", "MachineCombinerPattern", "::", "FMULSUBH_OP2", ":", "case", "MachineCombinerPattern", "::", "FMULADDS_OP1", ":", "case", "MachineCombinerPattern", "::", "FMULADDS_OP2", ":", "case", "MachineCombinerPattern", "::", "FMULSUBS_OP1", ":", "case", "MachineCombinerPattern", "::", "FMULSUBS_OP2", ":", "case", "MachineCombinerPattern", "::", "FMULADDD_OP1", ":", "case", "MachineCombinerPattern", "::", "FMULADDD_OP2", ":", "case", "MachineCombinerPattern", "::", "FMULSUBD_OP1", ":", "case", "MachineCombinerPattern", "::", "FMULSUBD_OP2", ":", "case", "MachineCombinerPattern", "::", "FNMULSUBH_OP1", ":", "case", "MachineCombinerPattern", "::", "FNMULSUBS_OP1", ":", "case", "MachineCombinerPattern", "::", "FNMULSUBD_OP1", ":", "case", "MachineCombinerPattern", "::", "FMLAv4i16_indexed_OP1", ":", "case", "MachineCombinerPattern", "::", "FMLAv4i16_indexed_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLAv8i16_indexed_OP1", ":", "case", "MachineCombinerPattern", "::", "FMLAv8i16_indexed_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLAv1i32_indexed_OP1", ":", "case", "MachineCombinerPattern", "::", "FMLAv1i32_indexed_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLAv1i64_indexed_OP1", ":", "case", "MachineCombinerPattern", "::", "FMLAv1i64_indexed_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLAv4f16_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLAv4f16_OP1", ":", "case", "MachineCombinerPattern", "::", "FMLAv8f16_OP1", ":", "case", "MachineCombinerPattern", "::", "FMLAv8f16_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLAv2f32_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLAv2f32_OP1", ":", "case", "MachineCombinerPattern", "::", "FMLAv2f64_OP1", ":", "case", "MachineCombinerPattern", "::", "FMLAv2f64_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLAv2i32_indexed_OP1", ":", "case", "MachineCombinerPattern", "::", "FMLAv2i32_indexed_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLAv2i64_indexed_OP1", ":", "case", "MachineCombinerPattern", "::", "FMLAv2i64_indexed_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLAv4f32_OP1", ":", "case", "MachineCombinerPattern", "::", "FMLAv4f32_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLAv4i32_indexed_OP1", ":", "case", "MachineCombinerPattern", "::", "FMLAv4i32_indexed_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLSv4i16_indexed_OP1", ":", "case", "MachineCombinerPattern", "::", "FMLSv4i16_indexed_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLSv8i16_indexed_OP1", ":", "case", "MachineCombinerPattern", "::", "FMLSv8i16_indexed_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLSv1i32_indexed_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLSv1i64_indexed_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLSv2i32_indexed_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLSv2i64_indexed_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLSv4f16_OP1", ":", "case", "MachineCombinerPattern", "::", "FMLSv4f16_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLSv8f16_OP1", ":", "case", "MachineCombinerPattern", "::", "FMLSv8f16_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLSv2f32_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLSv2f64_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLSv4i32_indexed_OP2", ":", "case", "MachineCombinerPattern", "::", "FMLSv4f32_OP2", ":", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "when", "a", "code", "sequence", "can", "improve", "throughput", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64InstrInfo124", "Func": "isThroughputPattern", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2063, "Length": 302, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "SDValue", ",", "SDValue", ">", "SystemZSelectionDAGInfo", "::", "EmitTargetCodeForMemcmp", "(", "SelectionDAG", "&", "DAG", ",", "const", "SDLoc", "&", "DL", ",", "SDValue", "Chain", ",", "SDValue", "Src1", ",", "SDValue", "Src2", ",", "SDValue", "Size", ",", "MachinePointerInfo", "Op1PtrInfo", ",", "MachinePointerInfo", "Op2PtrInfo", ")", "const", "{", "SDValue", "CCReg", ";", "if", "(", "auto", "*", "CSize", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Size", ")", ")", "{", "uint64_t", "Bytes", "=", "CSize", "->", "getZExtValue", "(", ")", ";", "assert", "(", "Bytes", ">", "0", "&&", "\"Caller should have handled 0-size case\"", ")", ";", "CCReg", "=", "emitMemMemImm", "(", "DAG", ",", "DL", ",", "SystemZISD", "::", "CLC", ",", "Chain", ",", "Src2", ",", "Src1", ",", "Bytes", ")", ";", "}", "else", "CCReg", "=", "emitMemMemReg", "(", "DAG", ",", "DL", ",", "SystemZISD", "::", "CLC", ",", "Chain", ",", "Src2", ",", "Src1", ",", "Size", ")", ";", "Chain", "=", "CCReg", ".", "getValue", "(", "1", ")", ";", "return", "std", "::", "make_pair", "(", "addIPMSequence", "(", "DL", ",", "CCReg", ",", "DAG", ")", ",", "Chain", ")", ";", "}", ""], "natrual_language": ["Emit", "target-specific", "code", "that", "performs", "a", "memcmp/bcmp", ",", "in", "cases", "where", "that", "is", "faster", "than", "a", "libcall", "."], "TS_V_token": ["SystemZ", "SystemZ", "0", "\"Caller should have handled 0-size case\"", "SystemZISD::CLC", "SystemZISD::CLC", "1"], "File": "SystemZSelectionDAGInfo12", "Func": "EmitTargetCodeForMemcmp", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2064, "Length": 148, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "inline", "static", "bool", "isMem", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "Op", ")", "{", "if", "(", "MI", "->", "getOperand", "(", "Op", ")", ".", "isFI", "(", ")", ")", "return", "true", ";", "return", "Op", "+", "X86", "::", "AddrNumOperands", "<=", "MI", "->", "getNumOperands", "(", ")", "&&", "MI", "->", "getOperand", "(", "Op", "+", "X86", "::", "AddrSegmentReg", ")", ".", "isReg", "(", ")", "&&", "isLeaMem", "(", "MI", ",", "Op", ")", ";", "}", ""], "natrual_language": ["isMem", "-", "Is", "this", "a", "memory", "operand", "?"], "TS_V_token": ["X86", "X86::AddrNumOperands", "X86::AddrSegmentReg"], "File": "X86InstrInfo (2)", "Func": "isMem", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2065, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "RegisterBankInfo", "::", "InstructionMapping", "&", "MipsRegisterBankInfo", "::", "getInstrMapping", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "unsigned", "Opc", "=", "MI", ".", "getOpcode", "(", ")", ";", "const", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "const", "RegisterBankInfo", "::", "InstructionMapping", "&", "Mapping", "=", "getInstrMappingImpl", "(", "MI", ")", ";", "if", "(", "Mapping", ".", "isValid", "(", ")", ")", "return", "Mapping", ";", "using", "namespace", "TargetOpcode", ";", "unsigned", "NumOperands", "=", "MI", ".", "getNumOperands", "(", ")", ";", "const", "ValueMapping", "*", "OperandsMapping", "=", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "GPRIdx", "]", ";", "switch", "(", "Opc", ")", "{", "case", "G_TRUNC", ":", "case", "G_ADD", ":", "case", "G_SUB", ":", "case", "G_MUL", ":", "case", "G_UMULH", ":", "case", "G_LOAD", ":", "case", "G_STORE", ":", "case", "G_ZEXTLOAD", ":", "case", "G_SEXTLOAD", ":", "case", "G_GEP", ":", "case", "G_AND", ":", "case", "G_OR", ":", "case", "G_XOR", ":", "case", "G_SHL", ":", "case", "G_ASHR", ":", "case", "G_LSHR", ":", "case", "G_SDIV", ":", "case", "G_UDIV", ":", "case", "G_SREM", ":", "case", "G_UREM", ":", "OperandsMapping", "=", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "GPRIdx", "]", ";", "break", ";", "case", "G_FCONSTANT", ":", "{", "LLT", "Ty", "=", "MRI", ".", "getType", "(", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ")", ";", "unsigned", "Size", "=", "Ty", ".", "getSizeInBits", "(", ")", ";", "const", "RegisterBankInfo", "::", "ValueMapping", "*", "FPRValueMapping", "=", "Size", "==", "32", "?", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "SPRIdx", "]", ":", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "DPRIdx", "]", ";", "OperandsMapping", "=", "getOperandsMapping", "(", "{", "FPRValueMapping", ",", "nullptr", "}", ")", ";", "break", ";", "}", "case", "G_CONSTANT", ":", "case", "G_FRAME_INDEX", ":", "case", "G_GLOBAL_VALUE", ":", "case", "G_BRCOND", ":", "OperandsMapping", "=", "getOperandsMapping", "(", "{", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "GPRIdx", "]", ",", "nullptr", "}", ")", ";", "break", ";", "case", "G_ICMP", ":", "OperandsMapping", "=", "getOperandsMapping", "(", "{", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "GPRIdx", "]", ",", "nullptr", ",", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "GPRIdx", "]", ",", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "GPRIdx", "]", "}", ")", ";", "break", ";", "case", "G_SELECT", ":", "OperandsMapping", "=", "getOperandsMapping", "(", "{", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "GPRIdx", "]", ",", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "GPRIdx", "]", ",", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "GPRIdx", "]", ",", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "GPRIdx", "]", "}", ")", ";", "break", ";", "default", ":", "return", "getInvalidInstructionMapping", "(", ")", ";", "}", "return", "getInstructionMapping", "(", "DefaultMappingID", ",", "1", ",", "OperandsMapping", ",", "NumOperands", ")", ";", "}", ""], "natrual_language": ["Get", "the", "mapping", "of", "the", "different", "operands", "of", "MI", "on", "the", "register", "bank", "."], "TS_V_token": ["Mips", "Mips", "Mips::ValueMappings", "Mips::GPRIdx", "Mips::ValueMappings", "Mips::GPRIdx", "0", "32", "Mips::ValueMappings", "Mips::SPRIdx", "Mips::ValueMappings", "Mips::DPRIdx", "Mips::ValueMappings", "Mips::GPRIdx", "Mips::ValueMappings", "Mips::GPRIdx", "Mips::ValueMappings", "Mips::GPRIdx", "Mips::ValueMappings", "Mips::GPRIdx", "Mips::ValueMappings", "Mips::GPRIdx", "Mips::ValueMappings", "Mips::GPRIdx", "Mips::ValueMappings", "Mips::GPRIdx", "Mips::ValueMappings", "Mips::GPRIdx", "1"], "File": "MipsRegisterBankInfo33", "Func": "getInstrMapping", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2066, "Length": 409, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "VZeroUpperInserter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "TII", "=", "MF", ".", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "bool", "EverMadeChange", "=", "false", ";", "bool", "YMMUsed", "=", "false", ";", "const", "TargetRegisterClass", "*", "RC", "=", "&", "X86", "::", "VR256RegClass", ";", "for", "(", "TargetRegisterClass", "::", "iterator", "i", "=", "RC", "->", "begin", "(", ")", ",", "e", "=", "RC", "->", "end", "(", ")", ";", "i", "!=", "e", ";", "i", "++", ")", "{", "if", "(", "!", "MRI", ".", "reg_nodbg_empty", "(", "*", "i", ")", ")", "{", "YMMUsed", "=", "true", ";", "break", ";", "}", "}", "if", "(", "!", "YMMUsed", ")", "return", "EverMadeChange", ";", "FnHasLiveInYmm", "=", "checkFnHasLiveInYmm", "(", "MRI", ")", ";", "assert", "(", "BBState", ".", "empty", "(", ")", ")", ";", "BBState", ".", "resize", "(", "MF", ".", "getNumBlockIDs", "(", ")", ",", "0", ")", ";", "BBSolved", ".", "resize", "(", "MF", ".", "getNumBlockIDs", "(", ")", ",", "0", ")", ";", "while", "(", "1", ")", "{", "bool", "MadeChange", "=", "false", ";", "for", "(", "MachineFunction", "::", "iterator", "I", "=", "MF", ".", "begin", "(", ")", ",", "E", "=", "MF", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "MadeChange", "|=", "processBasicBlock", "(", "MF", ",", "*", "I", ")", ";", "if", "(", "!", "MadeChange", ")", "break", ";", "EverMadeChange", "=", "true", ";", "}", "BBState", ".", "clear", "(", ")", ";", "BBSolved", ".", "clear", "(", ")", ";", "return", "EverMadeChange", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86::VR256RegClass", "0", "0", "1"], "File": "X86VZeroUpper11", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2067, "Length": 227, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCSymbol", "*", "TeeRISCMCInstLower", "::", "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": ["TeeRISC", "TeeRISC", "\"Unknown target flag on GV operand\"", "0"], "File": "TeeRISCMCInstLower", "Func": "GetBlockAddressSymbol", "Target": "TeeRISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2068, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsTargetLowering", "::", "HandleByVal", "(", "CCState", "*", "State", ",", "unsigned", "&", "Size", ",", "unsigned", "Align", ")", "const", "{", "MachineFunction", "&", "MF", "=", "State", "->", "getMachineFunction", "(", ")", ";", "const", "TargetFrameLowering", "*", "TFL", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "assert", "(", "Size", "&&", "\"Byval argument's size shouldn't be 0.\"", ")", ";", "Align", "=", "std", "::", "min", "(", "Align", ",", "TFL", "->", "getStackAlignment", "(", ")", ")", ";", "unsigned", "FirstReg", "=", "0", ";", "unsigned", "NumRegs", "=", "0", ";", "if", "(", "State", "->", "getCallingConv", "(", ")", "!=", "CallingConv", "::", "Fast", ")", "{", "unsigned", "RegSizeInBytes", "=", "Subtarget", ".", "getGPRSizeInBytes", "(", ")", ";", "const", "ArrayRef", "<", "MCPhysReg", ">", "IntArgRegs", "=", "Subtarget", ".", "getABI", "(", ")", ".", "GetByValArgRegs", "(", ")", ";", "const", "MCPhysReg", "*", "ShadowRegs", "=", "IntArgRegs", ".", "data", "(", ")", ";", "assert", "(", "!", "(", "Align", "%", "RegSizeInBytes", ")", "&&", "\"Byval argument's alignment should be a multiple of\"", "\"RegSizeInBytes.\"", ")", ";", "FirstReg", "=", "State", "->", "getFirstUnallocated", "(", "IntArgRegs", ".", "data", "(", ")", ",", "IntArgRegs", ".", "size", "(", ")", ")", ";", "if", "(", "(", "Align", ">", "RegSizeInBytes", ")", "&&", "(", "FirstReg", "%", "2", ")", ")", "{", "State", "->", "AllocateReg", "(", "IntArgRegs", "[", "FirstReg", "]", ",", "ShadowRegs", "[", "FirstReg", "]", ")", ";", "++", "FirstReg", ";", "}", "Size", "=", "RoundUpToAlignment", "(", "Size", ",", "RegSizeInBytes", ")", ";", "for", "(", "unsigned", "I", "=", "FirstReg", ";", "Size", ">", "0", "&&", "(", "I", "<", "IntArgRegs", ".", "size", "(", ")", ")", ";", "Size", "-=", "RegSizeInBytes", ",", "++", "I", ",", "++", "NumRegs", ")", "State", "->", "AllocateReg", "(", "IntArgRegs", "[", "I", "]", ",", "ShadowRegs", "[", "I", "]", ")", ";", "}", "State", "->", "addInRegsParamInfo", "(", "FirstReg", ",", "FirstReg", "+", "NumRegs", ")", ";", "}", ""], "natrual_language": ["Target-specific", "cleanup", "for", "formal", "ByVal", "parameters", "."], "TS_V_token": ["Mips", "Mips", "\"Byval argument's size shouldn't be 0.\"", "0", "0", "\"Byval argument's alignment should be a multiple of\"", "\"RegSizeInBytes.\"", "2", "0"], "File": "MipsISelLowering58", "Func": "HandleByVal", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2069, "Length": 259, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "Cpu0Subtarget", "*", "getSubtargetImpl", "(", ")", "const", "{", "return", "&", "Subtarget", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["Cpu0", "Cpu0"], "File": "Cpu0TargetMachine1", "Func": "getSubtargetImpl", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2070, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "altivec_expand_vec_init_builtin", "(", "tree", "type", ",", "tree", "exp", ",", "rtx", "target", ")", "{", "machine_mode", "tmode", "=", "TYPE_MODE", "(", "type", ")", ";", "machine_mode", "inner_mode", "=", "GET_MODE_INNER", "(", "tmode", ")", ";", "int", "i", ",", "n_elt", "=", "GET_MODE_NUNITS", "(", "tmode", ")", ";", "gcc_assert", "(", "VECTOR_MODE_P", "(", "tmode", ")", ")", ";", "gcc_assert", "(", "n_elt", "==", "call_expr_nargs", "(", "exp", ")", ")", ";", "if", "(", "!", "target", "||", "!", "register_operand", "(", "target", ",", "tmode", ")", ")", "target", "=", "gen_reg_rtx", "(", "tmode", ")", ";", "if", "(", "n_elt", "==", "1", "&&", "GET_MODE_SIZE", "(", "tmode", ")", "==", "GET_MODE_SIZE", "(", "inner_mode", ")", ")", "{", "rtx", "x", "=", "expand_normal", "(", "CALL_EXPR_ARG", "(", "exp", ",", "0", ")", ")", ";", "emit_move_insn", "(", "target", ",", "gen_lowpart", "(", "tmode", ",", "x", ")", ")", ";", "}", "else", "{", "rtvec", "v", "=", "rtvec_alloc", "(", "n_elt", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "n_elt", ";", "++", "i", ")", "{", "rtx", "x", "=", "expand_normal", "(", "CALL_EXPR_ARG", "(", "exp", ",", "i", ")", ")", ";", "RTVEC_ELT", "(", "v", ",", "i", ")", "=", "gen_lowpart", "(", "inner_mode", ",", "x", ")", ";", "}", "rs6000_expand_vector_init", "(", "target", ",", "gen_rtx_PARALLEL", "(", "tmode", ",", "v", ")", ")", ";", "}", "return", "target", ";", "}", ""], "natrual_language": ["Expand", "vec_init", "builtin", "."], "TS_V_token": ["rs6000", "1", "0", "0"], "File": "rs6000-builtin", "Func": "altivec_expand_vec_init_builtin", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2071, "Length": 190, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Mips16RegisterInfo", "::", "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": ["Mips", "Mips"], "File": "Mips16RegisterInfo", "Func": "requiresRegisterScavenging", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2072, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "mmix_debugger_regno", "(", "unsigned", "regno", ")", "{", "regno", "=", "MMIX_OUTPUT_REGNO", "(", "regno", ")", ";", "return", "regno", ">=", "224", "?", "(", "regno", "-", "224", ")", ":", "(", "regno", "+", "48", ")", ";", "}", ""], "natrual_language": ["DEBUGGER_REGNO", "."], "TS_V_token": ["mmix", "224", "224", "48"], "File": "mmix1", "Func": "mmix_debugger_regno", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2073, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "SystemZFrameLowering", "::", "getFrameIndexReference", "(", "const", "MachineFunction", "&", "MF", ",", "int", "FI", ",", "unsigned", "&", "FrameReg", ")", "const", "{", "const", "MachineFrameInfo", "*", "MFFrame", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "TargetRegisterInfo", "*", "RI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "FrameReg", "=", "RI", "->", "getFrameRegister", "(", "MF", ")", ";", "int64_t", "Offset", "=", "(", "MFFrame", "->", "getObjectOffset", "(", "FI", ")", "+", "MFFrame", "->", "getOffsetAdjustment", "(", ")", ")", ";", "Offset", "-=", "getOffsetOfLocalArea", "(", ")", ";", "Offset", "+=", "getAllocatedStackSize", "(", "MF", ")", ";", "return", "Offset", ";", "}", ""], "natrual_language": ["getFrameIndexReference", "-", "This", "method", "should", "return", "the", "base", "register", "and", "offset", "used", "to", "reference", "a", "frame", "index", "location", "."], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZFrameLowering (2)", "Func": "getFrameIndexReference", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2074, "Length": 89, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineInstr", "*", "LanaiInstrInfo", "::", "optimizeSelect", "(", "MachineInstr", "&", "MI", ",", "SmallPtrSetImpl", "<", "MachineInstr", "*", ">", "&", "SeenMIs", ",", "bool", ")", "const", "{", "assert", "(", "MI", ".", "getOpcode", "(", ")", "==", "Lanai", "::", "SELECT", "&&", "\"unknown select instruction\"", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "MachineInstr", "*", "DefMI", "=", "canFoldIntoSelect", "(", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ",", "MRI", ")", ";", "bool", "Invert", "=", "!", "DefMI", ";", "if", "(", "!", "DefMI", ")", "DefMI", "=", "canFoldIntoSelect", "(", "MI", ".", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ",", "MRI", ")", ";", "if", "(", "!", "DefMI", ")", "return", "nullptr", ";", "MachineOperand", "FalseReg", "=", "MI", ".", "getOperand", "(", "Invert", "?", "1", ":", "2", ")", ";", "unsigned", "DestReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "const", "TargetRegisterClass", "*", "PreviousClass", "=", "MRI", ".", "getRegClass", "(", "FalseReg", ".", "getReg", "(", ")", ")", ";", "if", "(", "!", "MRI", ".", "constrainRegClass", "(", "DestReg", ",", "PreviousClass", ")", ")", "return", "nullptr", ";", "MachineInstrBuilder", "NewMI", "=", "BuildMI", "(", "*", "MI", ".", "getParent", "(", ")", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "DefMI", "->", "getDesc", "(", ")", ",", "DestReg", ")", ";", "const", "MCInstrDesc", "&", "DefDesc", "=", "DefMI", "->", "getDesc", "(", ")", ";", "for", "(", "unsigned", "i", "=", "1", ",", "e", "=", "DefDesc", ".", "getNumOperands", "(", ")", ";", "i", "!=", "e", "&&", "!", "DefDesc", ".", "OpInfo", "[", "i", "]", ".", "isPredicate", "(", ")", ";", "++", "i", ")", "NewMI", ".", "add", "(", "DefMI", "->", "getOperand", "(", "i", ")", ")", ";", "unsigned", "CondCode", "=", "MI", ".", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", ";", "if", "(", "Invert", ")", "NewMI", ".", "addImm", "(", "getOppositeCondition", "(", "LPCC", "::", "CondCode", "(", "CondCode", ")", ")", ")", ";", "else", "NewMI", ".", "addImm", "(", "CondCode", ")", ";", "NewMI", ".", "copyImplicitOps", "(", "MI", ")", ";", "FalseReg", ".", "setImplicit", "(", ")", ";", "NewMI", ".", "add", "(", "FalseReg", ")", ";", "NewMI", "->", "tieOperands", "(", "0", ",", "NewMI", "->", "getNumOperands", "(", ")", "-", "1", ")", ";", "SeenMIs", ".", "insert", "(", "NewMI", ")", ";", "SeenMIs", ".", "erase", "(", "DefMI", ")", ";", "if", "(", "DefMI", "->", "getParent", "(", ")", "!=", "MI", ".", "getParent", "(", ")", ")", "NewMI", "->", "clearKillInfo", "(", ")", ";", "DefMI", "->", "eraseFromParent", "(", ")", ";", "return", "NewMI", ";", "}", ""], "natrual_language": ["Given", "a", "select", "instruction", "that", "was", "understood", "by", "analyzeSelect", "and", "returned", "Optimizable", "=", "true", ",", "attempt", "to", "optimize", "MI", "by", "merging", "it", "with", "one", "of", "its", "operands", "."], "TS_V_token": ["Lanai", "Lanai", "Lanai::SELECT", "\"unknown select instruction\"", "1", "2", "1", "2", "0", "1", "3", "0", "1"], "File": "LanaiInstrInfo (2)", "Func": "optimizeSelect", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2075, "Length": 377, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "X86MachineFunctionInfo", "*", "MFI", "=", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", ";", "if", "(", "MFI", "->", "getNumLocalDynamicTLSAccesses", "(", ")", "<", "2", ")", "{", "return", "false", ";", "}", "MachineDominatorTree", "*", "DT", "=", "&", "getAnalysis", "<", "MachineDominatorTree", ">", "(", ")", ";", "return", "VisitNode", "(", "DT", "->", "getRootNode", "(", ")", ",", "0", ")", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "2", "0"], "File": "X86InstrInfo103", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2076, "Length": 62, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "AtomicExpansionKind", "SparcTargetLowering", "::", "shouldExpandAtomicRMWInIR", "(", "AtomicRMWInst", "*", "AI", ")", "const", "{", "if", "(", "AI", "->", "getOperation", "(", ")", "==", "AtomicRMWInst", "::", "Xchg", "&&", "AI", "->", "getType", "(", ")", "->", "getPrimitiveSizeInBits", "(", ")", "==", "32", ")", "return", "AtomicExpansionKind", "::", "None", ";", "return", "AtomicExpansionKind", "::", "CmpXChg", ";", "}", ""], "natrual_language": ["Returns", "how", "the", "IR-level", "AtomicExpand", "pass", "should", "expand", "the", "given", "AtomicRMW", ",", "if", "at", "all", "."], "TS_V_token": ["Sparc", "Sparc", "32"], "File": "SparcISelLowering (2)2", "Func": "shouldExpandAtomicRMWInIR", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2077, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ArrayRef", "<", "std", "::", "pair", "<", "unsigned", ",", "const", "char", "*", ">>", "PPCInstrInfo", "::", "getSerializableDirectMachineOperandTargetFlags", "(", ")", "const", "{", "using", "namespace", "PPCII", ";", "static", "const", "std", "::", "pair", "<", "unsigned", ",", "const", "char", "*", ">", "TargetFlags", "[", "]", "=", "{", "{", "MO_LO", ",", "\"ppc-lo\"", "}", ",", "{", "MO_HA", ",", "\"ppc-ha\"", "}", ",", "{", "MO_TPREL_LO", ",", "\"ppc-tprel-lo\"", "}", ",", "{", "MO_TPREL_HA", ",", "\"ppc-tprel-ha\"", "}", ",", "{", "MO_DTPREL_LO", ",", "\"ppc-dtprel-lo\"", "}", ",", "{", "MO_TLSLD_LO", ",", "\"ppc-tlsld-lo\"", "}", ",", "{", "MO_TOC_LO", ",", "\"ppc-toc-lo\"", "}", ",", "{", "MO_TLS", ",", "\"ppc-tls\"", "}", "}", ";", "return", "makeArrayRef", "(", "TargetFlags", ")", ";", "}", ""], "natrual_language": ["Return", "an", "array", "that", "contains", "the", "direct", "target", "flag", "values", "and", "their", "names", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "\"ppc-lo\"", "\"ppc-ha\"", "\"ppc-tprel-lo\"", "\"ppc-tprel-ha\"", "\"ppc-dtprel-lo\"", "\"ppc-tlsld-lo\"", "\"ppc-toc-lo\"", "\"ppc-tls\""], "File": "PPCInstrInfo (2)2", "Func": "getSerializableDirectMachineOperandTargetFlags", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2078, "Length": 96, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Optional", "<", "MCFixupKind", ">", "ARMAsmBackendELF", "::", "getFixupKind", "(", "StringRef", "Name", ")", "const", "{", "unsigned", "Type", "=", "llvm", "::", "StringSwitch", "<", "unsigned", ">", "(", "Name", ")", ".", "Case", "(", "\"BFD_RELOC_NONE\"", ",", "ELF", "::", "R_ARM_NONE", ")", ".", "Case", "(", "\"BFD_RELOC_8\"", ",", "ELF", "::", "R_ARM_ABS8", ")", ".", "Case", "(", "\"BFD_RELOC_16\"", ",", "ELF", "::", "R_ARM_ABS16", ")", ".", "Case", "(", "\"BFD_RELOC_32\"", ",", "ELF", "::", "R_ARM_ABS32", ")", ".", "Default", "(", "-", "1u", ")", ";", "if", "(", "Type", "==", "-", "1u", ")", "return", "None", ";", "return", "static_cast", "<", "MCFixupKind", ">", "(", "FirstLiteralRelocationKind", "+", "Type", ")", ";", "}", ""], "natrual_language": ["getFixupKind", "-", "Get", "the", "fixup", "kind", "of", "this", "expression", "."], "TS_V_token": ["ARM", "ARM", "\"BFD_RELOC_NONE\"", "ARM", "\"BFD_RELOC_8\"", "ARM", "\"BFD_RELOC_16\"", "ARM", "\"BFD_RELOC_32\"", "ARM", "1u", "1u"], "File": "ARMAsmBackend33", "Func": "getFixupKind", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2079, "Length": 90, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMFrameLowering", "::", "enableShrinkWrapping", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "if", "(", "STI", ".", "hasV8_1MMainlineOps", "(", ")", "&&", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", "->", "isCmseNSEntryFunction", "(", ")", ")", "return", "false", ";", "if", "(", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", "->", "shouldSignReturnAddress", "(", "false", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "will", "correctly", "handle", "shrink", "wrapping", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM"], "File": "ARMFrameLowering100", "Func": "enableShrinkWrapping", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2080, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "getMemOperandWithOffsetWidth", "(", "const", "MachineInstr", "&", "LdSt", ",", "const", "MachineOperand", "*", "&", "BaseOp", ",", "int64_t", "&", "Offset", ",", "unsigned", "&", "Width", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "assert", "(", "LdSt", ".", "mayLoadOrStore", "(", ")", "&&", "\"Expected a memory operation.\"", ")", ";", "if", "(", "LdSt", ".", "getNumExplicitOperands", "(", ")", "==", "3", ")", "{", "if", "(", "(", "!", "LdSt", ".", "getOperand", "(", "1", ")", ".", "isReg", "(", ")", "&&", "!", "LdSt", ".", "getOperand", "(", "1", ")", ".", "isFI", "(", ")", ")", "||", "!", "LdSt", ".", "getOperand", "(", "2", ")", ".", "isImm", "(", ")", ")", "return", "false", ";", "}", "else", "if", "(", "LdSt", ".", "getNumExplicitOperands", "(", ")", "==", "4", ")", "{", "if", "(", "!", "LdSt", ".", "getOperand", "(", "1", ")", ".", "isReg", "(", ")", "||", "(", "!", "LdSt", ".", "getOperand", "(", "2", ")", ".", "isReg", "(", ")", "&&", "!", "LdSt", ".", "getOperand", "(", "2", ")", ".", "isFI", "(", ")", ")", "||", "!", "LdSt", ".", "getOperand", "(", "3", ")", ".", "isImm", "(", ")", ")", "return", "false", ";", "}", "else", "return", "false", ";", "unsigned", "Scale", "=", "0", ";", "int64_t", "Dummy1", ",", "Dummy2", ";", "if", "(", "!", "getMemOpInfo", "(", "LdSt", ".", "getOpcode", "(", ")", ",", "Scale", ",", "Width", ",", "Dummy1", ",", "Dummy2", ")", ")", "return", "false", ";", "if", "(", "LdSt", ".", "getNumExplicitOperands", "(", ")", "==", "3", ")", "{", "BaseOp", "=", "&", "LdSt", ".", "getOperand", "(", "1", ")", ";", "Offset", "=", "LdSt", ".", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", "*", "Scale", ";", "}", "else", "{", "assert", "(", "LdSt", ".", "getNumExplicitOperands", "(", ")", "==", "4", "&&", "\"invalid number of operands\"", ")", ";", "BaseOp", "=", "&", "LdSt", ".", "getOperand", "(", "2", ")", ";", "Offset", "=", "LdSt", ".", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", "*", "Scale", ";", "}", "assert", "(", "(", "BaseOp", "->", "isReg", "(", ")", "||", "BaseOp", "->", "isFI", "(", ")", ")", "&&", "\"getMemOperandWithOffset only supports base \"", "\"operands of type register or frame index.\"", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "get", "the", "base", "operand", ",", "byte", "offset", "of", "an", "instruction", "and", "the", "memory", "width", "."], "TS_V_token": ["AArch64", "AArch64", "\"Expected a memory operation.\"", "3", "1", "1", "2", "4", "1", "2", "2", "3", "0", "3", "1", "2", "4", "\"invalid number of operands\"", "2", "3", "\"getMemOperandWithOffset only supports base \"", "\"operands of type register or frame index.\""], "File": "AArch64InstrInfo10", "Func": "getMemOperandWithOffsetWidth", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2081, "Length": 304, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCTTI", "::", "getUnrollingPreferences", "(", "const", "Function", "*", "F", ",", "Loop", "*", "L", ",", "UnrollingPreferences", "&", "UP", ")", "const", "{", "if", "(", "TM", "->", "getSubtarget", "<", "PPCSubtarget", ">", "(", "F", ")", ".", "getDarwinDirective", "(", ")", "==", "PPC", "::", "DIR_A2", ")", "{", "UP", ".", "Partial", "=", "UP", ".", "Runtime", "=", "true", ";", "}", "}", ""], "natrual_language": ["Get", "target-customized", "preferences", "for", "the", "generic", "loop", "unrolling", "transformation", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC::DIR_A2"], "File": "PPCTargetTransformInfo27", "Func": "getUnrollingPreferences", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2082, "Length": 53, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"Local Dynamic TLS Access Clean-up\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["X86", "\"Local Dynamic TLS Access Clean-up\""], "File": "X86InstrInfo (2)3", "Func": "getPassName", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2083, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "ix86_expand_vec_set_builtin", "(", "tree", "arglist", ")", "{", "enum", "machine_mode", "tmode", ",", "mode1", ";", "tree", "arg0", ",", "arg1", ",", "arg2", ";", "int", "elt", ";", "rtx", "op0", ",", "op1", ";", "arg0", "=", "TREE_VALUE", "(", "arglist", ")", ";", "arg1", "=", "TREE_VALUE", "(", "TREE_CHAIN", "(", "arglist", ")", ")", ";", "arg2", "=", "TREE_VALUE", "(", "TREE_CHAIN", "(", "TREE_CHAIN", "(", "arglist", ")", ")", ")", ";", "tmode", "=", "TYPE_MODE", "(", "TREE_TYPE", "(", "arg0", ")", ")", ";", "mode1", "=", "TYPE_MODE", "(", "TREE_TYPE", "(", "TREE_TYPE", "(", "arg0", ")", ")", ")", ";", "gcc_assert", "(", "VECTOR_MODE_P", "(", "tmode", ")", ")", ";", "op0", "=", "expand_expr", "(", "arg0", ",", "NULL_RTX", ",", "tmode", ",", "0", ")", ";", "op1", "=", "expand_expr", "(", "arg1", ",", "NULL_RTX", ",", "mode1", ",", "0", ")", ";", "elt", "=", "get_element_number", "(", "TREE_TYPE", "(", "arg0", ")", ",", "arg2", ")", ";", "if", "(", "GET_MODE", "(", "op1", ")", "!=", "mode1", "&&", "GET_MODE", "(", "op1", ")", "!=", "VOIDmode", ")", "op1", "=", "convert_modes", "(", "mode1", ",", "GET_MODE", "(", "op1", ")", ",", "op1", ",", "true", ")", ";", "op0", "=", "force_reg", "(", "tmode", ",", "op0", ")", ";", "op1", "=", "force_reg", "(", "mode1", ",", "op1", ")", ";", "ix86_expand_vector_set", "(", "true", ",", "op0", ",", "op1", ",", "elt", ")", ";", "return", "op0", ";", "}", ""], "natrual_language": ["A", "subroutine", "of", "ix86_expand_builtin", ".", "These", "builtins", "are", "a", "wrapper", "around", "ix86_expand_vector_set", ".", "They", "would", "be", "redundant", "(", "for", "non-MMX", ")", "if", "we", "had", "a", "language-level", "syntax", "for", "referencing", "vector", "elements", "."], "TS_V_token": ["i386", "0", "0"], "File": "i3863", "Func": "ix86_expand_vec_set_builtin", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2084, "Length": 193, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "DataLayout", "*", "getDataLayout", "(", ")", "const", "{", "return", "&", "DL", ";", "}", ""], "natrual_language": ["Return", "the", "DataLayout", "associated", "with", "the", "module", "this", "SCEV", "instance", "is", "operating", "on", "."], "TS_V_token": ["LC3b"], "File": "LC3bTargetMachine", "Func": "getDataLayout", "Target": "LC3b", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2085, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "const", "TargetRegisterClass", "*", ",", "uint8_t", ">", "X86TargetLowering", "::", "findRepresentativeClass", "(", "MVT", "VT", ")", "const", "{", "const", "TargetRegisterClass", "*", "RRC", "=", "nullptr", ";", "uint8_t", "Cost", "=", "1", ";", "switch", "(", "VT", ".", "SimpleTy", ")", "{", "default", ":", "return", "TargetLowering", "::", "findRepresentativeClass", "(", "VT", ")", ";", "case", "MVT", "::", "i8", ":", "case", "MVT", "::", "i16", ":", "case", "MVT", "::", "i32", ":", "case", "MVT", "::", "i64", ":", "RRC", "=", "Subtarget", "->", "is64Bit", "(", ")", "?", "&", "X86", "::", "GR64RegClass", ":", "&", "X86", "::", "GR32RegClass", ";", "break", ";", "case", "MVT", "::", "x86mmx", ":", "RRC", "=", "&", "X86", "::", "VR64RegClass", ";", "break", ";", "case", "MVT", "::", "f32", ":", "case", "MVT", "::", "f64", ":", "case", "MVT", "::", "v16i8", ":", "case", "MVT", "::", "v8i16", ":", "case", "MVT", "::", "v4i32", ":", "case", "MVT", "::", "v2i64", ":", "case", "MVT", "::", "v4f32", ":", "case", "MVT", "::", "v2f64", ":", "case", "MVT", "::", "v32i8", ":", "case", "MVT", "::", "v8i32", ":", "case", "MVT", "::", "v4i64", ":", "case", "MVT", "::", "v8f32", ":", "case", "MVT", "::", "v4f64", ":", "RRC", "=", "&", "X86", "::", "VR128RegClass", ";", "break", ";", "}", "return", "std", "::", "make_pair", "(", "RRC", ",", "Cost", ")", ";", "}", ""], "natrual_language": ["Return", "the", "largest", "legal", "super-reg", "register", "class", "of", "the", "register", "class", "for", "the", "specified", "type", "and", "its", "associated", "``", "cost", "''", "."], "TS_V_token": ["X86", "X86", "1", "MVT::i8", "MVT::i16", "MVT::i32", "MVT::i64", "X86::GR64RegClass", "X86::GR32RegClass", "MVT::x86mmx", "X86::VR64RegClass", "MVT::f32", "MVT::f64", "MVT::v16i8", "MVT::v8i16", "MVT::v4i32", "MVT::v2i64", "MVT::v4f32", "MVT::v2f64", "MVT::v32i8", "MVT::v8i32", "MVT::v4i64", "MVT::v8f32", "MVT::v4f64", "X86::VR128RegClass"], "File": "X86ISelLowering (2)4", "Func": "findRepresentativeClass", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2086, "Length": 188, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86IntelInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "OS", ",", "StringRef", "Annot", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "{", "printInstFlags", "(", "MI", ",", "OS", ")", ";", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "X86", "::", "DATA16_PREFIX", "&&", "STI", ".", "getFeatureBits", "(", ")", "[", "X86", "::", "Mode16Bit", "]", ")", "{", "OS", "<<", "\"\\tdata32\"", ";", "}", "else", "if", "(", "!", "printAliasInstr", "(", "MI", ",", "OS", ")", "&&", "!", "printVecCompareInstr", "(", "MI", ",", "OS", ")", ")", "printInstruction", "(", "MI", ",", "OS", ")", ";", "printAnnotation", "(", "OS", ",", "Annot", ")", ";", "if", "(", "CommentStream", ")", "EmitAnyX86InstComments", "(", "MI", ",", "*", "CommentStream", ",", "MII", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["X86", "X86", "X86::DATA16_PREFIX", "X86::Mode16Bit", "\"\\tdata32\"", "X86"], "File": "X86IntelInstPrinter42", "Func": "printInst", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2087, "Length": 107, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCInstrInfo", "::", "analyzeCompare", "(", "const", "MachineInstr", "&", "MI", ",", "Register", "&", "SrcReg", ",", "Register", "&", "SrcReg2", ",", "int", "&", "Mask", ",", "int", "&", "Value", ")", "const", "{", "unsigned", "Opc", "=", "MI", ".", "getOpcode", "(", ")", ";", "switch", "(", "Opc", ")", "{", "default", ":", "return", "false", ";", "case", "PPC", "::", "CMPWI", ":", "case", "PPC", "::", "CMPLWI", ":", "case", "PPC", "::", "CMPDI", ":", "case", "PPC", "::", "CMPLDI", ":", "SrcReg", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "0", ";", "Value", "=", "MI", ".", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "Mask", "=", "0xFFFF", ";", "return", "true", ";", "case", "PPC", "::", "CMPW", ":", "case", "PPC", "::", "CMPLW", ":", "case", "PPC", "::", "CMPD", ":", "case", "PPC", "::", "CMPLD", ":", "case", "PPC", "::", "FCMPUS", ":", "case", "PPC", "::", "FCMPUD", ":", "SrcReg", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "MI", ".", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ";", "Value", "=", "0", ";", "Mask", "=", "0", ";", "return", "true", ";", "}", "}", ""], "natrual_language": ["analyzeCompare", "-", "For", "a", "comparison", "instruction", ",", "return", "the", "source", "registers", "in", "SrcReg", "and", "SrcReg2", "if", "having", "two", "register", "operands", ",", "and", "the", "value", "it", "compares", "against", "in", "CmpValue", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::CMPWI", "PPC::CMPLWI", "PPC::CMPDI", "PPC::CMPLDI", "1", "0", "2", "0xFFFF", "PPC::CMPW", "PPC::CMPLW", "PPC::CMPD", "PPC::CMPLD", "PPC::FCMPUS", "PPC::FCMPUD", "1", "2", "0", "0"], "File": "PPCInstrInfo128", "Func": "analyzeCompare", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2088, "Length": 173, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMPassConfig", "::", "addPreSched2", "(", ")", "{", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "if", "(", "EnableARMLoadStoreOpt", ")", "addPass", "(", "createARMLoadStoreOptimizationPass", "(", ")", ")", ";", "addPass", "(", "new", "ARMExecutionDomainFix", "(", ")", ")", ";", "addPass", "(", "createBreakFalseDeps", "(", ")", ")", ";", "}", "addPass", "(", "createARMExpandPseudoPass", "(", ")", ")", ";", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "addPass", "(", "createThumb2SizeReductionPass", "(", "[", "this", "]", "(", "const", "Function", "&", "F", ")", "{", "return", "this", "->", "TM", "->", "getSubtarget", "<", "ARMSubtarget", ">", "(", "F", ")", ".", "restrictIT", "(", ")", ";", "}", ")", ")", ";", "addPass", "(", "createIfConverter", "(", "[", "]", "(", "const", "MachineFunction", "&", "MF", ")", "{", "return", "!", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ".", "isThumb1Only", "(", ")", ";", "}", ")", ")", ";", "}", "addPass", "(", "createMVEVPTBlockPass", "(", ")", ")", ";", "addPass", "(", "createThumb2ITBlockPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "after", "prolog-epilog", "insertion", "and", "before", "the", "second", "instruction", "scheduling", "pass", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM"], "File": "ARMTargetMachine101", "Func": "addPreSched2", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2089, "Length": 146, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_parm_needs_stack", "(", "cumulative_args_t", "args_so_far", ",", "tree", "type", ")", "{", "int", "unsignedp", ";", "rtx", "entry_parm", ";", "if", "(", "type", "==", "NULL", "||", "type", "==", "error_mark_node", ")", "return", "true", ";", "if", "(", "TYPE_MODE", "(", "type", ")", "==", "VOIDmode", ")", "return", "false", ";", "if", "(", "TREE_CODE", "(", "type", ")", "==", "COMPLEX_TYPE", ")", "return", "(", "rs6000_parm_needs_stack", "(", "args_so_far", ",", "TREE_TYPE", "(", "type", ")", ")", "||", "rs6000_parm_needs_stack", "(", "args_so_far", ",", "TREE_TYPE", "(", "type", ")", ")", ")", ";", "if", "(", "(", "TREE_CODE", "(", "type", ")", "==", "UNION_TYPE", "||", "TREE_CODE", "(", "type", ")", "==", "RECORD_TYPE", ")", "&&", "TYPE_TRANSPARENT_AGGR", "(", "type", ")", ")", "type", "=", "TREE_TYPE", "(", "first_field", "(", "type", ")", ")", ";", "function_arg_info", "arg", "(", "type", ",", "true", ")", ";", "apply_pass_by_reference_rules", "(", "get_cumulative_args", "(", "args_so_far", ")", ",", "arg", ")", ";", "unsignedp", "=", "TYPE_UNSIGNED", "(", "type", ")", ";", "arg", ".", "mode", "=", "promote_mode", "(", "arg", ".", "type", ",", "arg", ".", "mode", ",", "&", "unsignedp", ")", ";", "if", "(", "rs6000_must_pass_in_stack", "(", "arg", ")", ")", "return", "true", ";", "entry_parm", "=", "rs6000_function_arg", "(", "args_so_far", ",", "arg", ")", ";", "if", "(", "entry_parm", "==", "NULL", ")", "return", "true", ";", "if", "(", "GET_CODE", "(", "entry_parm", ")", "==", "PARALLEL", "&&", "XEXP", "(", "XVECEXP", "(", "entry_parm", ",", "0", ",", "0", ")", ",", "0", ")", "==", "NULL_RTX", ")", "return", "true", ";", "if", "(", "rs6000_arg_partial_bytes", "(", "args_so_far", ",", "arg", ")", "!=", "0", ")", "return", "true", ";", "rs6000_function_arg_advance", "(", "args_so_far", ",", "arg", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["Process", "parameter", "of", "type", "TYPE", "after", "ARGS_SO_FAR", "parameters", "were", "already", "processes", ".", "Return", "true", "if", "the", "parameter", "must", "be", "passed", "(", "fully", "or", "partially", ")", "on", "the", "stack", "."], "TS_V_token": ["rs6000", "0", "0", "0", "0"], "File": "rs6000-call", "Func": "rs6000_parm_needs_stack", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2090, "Length": 231, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_bfi_1_p", "(", "rtx", "op0", ",", "rtx", "op1", ",", "rtx", "*", "sub0", ",", "rtx", "*", "sub1", ")", "{", "unsigned", "HOST_WIDE_INT", "const1", ";", "unsigned", "HOST_WIDE_INT", "const2", "=", "0", ";", "if", "(", "!", "CONST_INT_P", "(", "XEXP", "(", "op0", ",", "1", ")", ")", ")", "return", "false", ";", "const1", "=", "UINTVAL", "(", "XEXP", "(", "op0", ",", "1", ")", ")", ";", "if", "(", "!", "CONST_INT_P", "(", "XEXP", "(", "op1", ",", "1", ")", ")", "||", "~", "UINTVAL", "(", "XEXP", "(", "op1", ",", "1", ")", ")", "!=", "const1", ")", "return", "false", ";", "if", "(", "GET_CODE", "(", "XEXP", "(", "op0", ",", "0", ")", ")", "==", "ASHIFT", "&&", "CONST_INT_P", "(", "XEXP", "(", "XEXP", "(", "op0", ",", "0", ")", ",", "1", ")", ")", ")", "{", "const2", "=", "UINTVAL", "(", "XEXP", "(", "XEXP", "(", "op0", ",", "0", ")", ",", "1", ")", ")", ";", "*", "sub0", "=", "XEXP", "(", "XEXP", "(", "op0", ",", "0", ")", ",", "0", ")", ";", "}", "else", "*", "sub0", "=", "XEXP", "(", "op0", ",", "0", ")", ";", "if", "(", "const2", ">=", "GET_MODE_BITSIZE", "(", "GET_MODE", "(", "op0", ")", ")", ")", "return", "false", ";", "*", "sub1", "=", "XEXP", "(", "op1", ",", "0", ")", ";", "return", "exact_log2", "(", "const1", "+", "(", "HOST_WIDE_INT_1U", "<<", "const2", ")", ")", ">=", "0", ";", "}", ""], "natrual_language": ["Helper", "for", "arm_bfi_p", "."], "TS_V_token": ["arm", "0", "1", "1", "1", "1", "0", "0", "1", "0", "1", "0", "0", "0", "0", "0"], "File": "arm1", "Func": "arm_bfi_1_p", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2091, "Length": 200, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsTargetLowering", "::", "getOpndList", "(", "SmallVectorImpl", "<", "SDValue", ">", "&", "Ops", ",", "std", "::", "deque", "<", "std", "::", "pair", "<", "unsigned", ",", "SDValue", ">>", "&", "RegsToPass", ",", "bool", "IsPICCall", ",", "bool", "GlobalOrExternal", ",", "bool", "InternalLinkage", ",", "bool", "IsCallReloc", ",", "CallLoweringInfo", "&", "CLI", ",", "SDValue", "Callee", ",", "SDValue", "Chain", ")", "const", "{", "if", "(", "IsPICCall", "&&", "!", "InternalLinkage", "&&", "IsCallReloc", "&&", "!", "ABI", ".", "IsCheriPureCap", "(", ")", ")", "{", "unsigned", "GPReg", "=", "ABI", ".", "IsN64", "(", ")", "?", "Mips", "::", "GP_64", ":", "Mips", "::", "GP", ";", "EVT", "Ty", "=", "ABI", ".", "IsN64", "(", ")", "?", "MVT", "::", "i64", ":", "MVT", "::", "i32", ";", "RegsToPass", ".", "push_back", "(", "std", "::", "make_pair", "(", "GPReg", ",", "getGlobalReg", "(", "CLI", ".", "DAG", ",", "Ty", ",", "false", ")", ")", ")", ";", "}", "SDValue", "InFlag", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RegsToPass", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "Chain", "=", "CLI", ".", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "CLI", ".", "DL", ",", "RegsToPass", "[", "i", "]", ".", "first", ",", "RegsToPass", "[", "i", "]", ".", "second", ",", "InFlag", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "}", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RegsToPass", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "Ops", ".", "push_back", "(", "CLI", ".", "DAG", ".", "getRegister", "(", "RegsToPass", "[", "i", "]", ".", "first", ",", "RegsToPass", "[", "i", "]", ".", "second", ".", "getValueType", "(", ")", ")", ")", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "Subtarget", ".", "getRegisterInfo", "(", ")", ";", "const", "uint32_t", "*", "Mask", "=", "TRI", "->", "getCallPreservedMask", "(", "CLI", ".", "DAG", ".", "getMachineFunction", "(", ")", ",", "CLI", ".", "CallConv", ")", ";", "assert", "(", "Mask", "&&", "\"Missing call preserved mask for calling convention\"", ")", ";", "if", "(", "Subtarget", ".", "inMips16HardFloat", "(", ")", ")", "{", "if", "(", "GlobalAddressSDNode", "*", "G", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "CLI", ".", "Callee", ")", ")", "{", "StringRef", "Sym", "=", "G", "->", "getGlobal", "(", ")", "->", "getName", "(", ")", ";", "Function", "*", "F", "=", "G", "->", "getGlobal", "(", ")", "->", "getParent", "(", ")", "->", "getFunction", "(", "Sym", ")", ";", "if", "(", "F", "&&", "F", "->", "hasFnAttribute", "(", "\"__Mips16RetHelper\"", ")", ")", "{", "Mask", "=", "MipsRegisterInfo", "::", "getMips16RetHelperMask", "(", ")", ";", "}", "}", "}", "Ops", ".", "push_back", "(", "CLI", ".", "DAG", ".", "getRegisterMask", "(", "Mask", ")", ")", ";", "if", "(", "InFlag", ".", "getNode", "(", ")", ")", "Ops", ".", "push_back", "(", "InFlag", ")", ";", "}", ""], "natrual_language": ["This", "function", "fills", "Ops", ",", "which", "is", "the", "list", "of", "operands", "that", "will", "later", "be", "used", "when", "a", "function", "call", "node", "is", "created", "."], "TS_V_token": ["Mips", "Mips", "Mips::GP_64", "Mips::GP", "MVT::i64", "MVT::i32", "0", "1", "0", "\"Missing call preserved mask for calling convention\"", "Mips", "\"__Mips16RetHelper\"", "Mips", "Mips"], "File": "MipsISelLowering66", "Func": "getOpndList", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2092, "Length": 396, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "AArch64FastISel", "::", "fastMaterializeConstant", "(", "const", "Constant", "*", "C", ")", "{", "EVT", "CEVT", "=", "TLI", ".", "getValueType", "(", "C", "->", "getType", "(", ")", ",", "true", ")", ";", "if", "(", "!", "CEVT", ".", "isSimple", "(", ")", ")", "return", "0", ";", "MVT", "VT", "=", "CEVT", ".", "getSimpleVT", "(", ")", ";", "if", "(", "const", "auto", "*", "CI", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "C", ")", ")", "return", "materializeInt", "(", "CI", ",", "VT", ")", ";", "else", "if", "(", "const", "ConstantFP", "*", "CFP", "=", "dyn_cast", "<", "ConstantFP", ">", "(", "C", ")", ")", "return", "materializeFP", "(", "CFP", ",", "VT", ")", ";", "else", "if", "(", "const", "GlobalValue", "*", "GV", "=", "dyn_cast", "<", "GlobalValue", ">", "(", "C", ")", ")", "return", "materializeGV", "(", "GV", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["Emit", "a", "constant", "in", "a", "register", "using", "target-specific", "logic", ",", "such", "as", "constant", "pool", "loads", "."], "TS_V_token": ["AArch64", "AArch64", "0", "0"], "File": "AArch64FastISel22", "Func": "fastMaterializeConstant", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2093, "Length": 121, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mmix_encode_section_info", "(", "tree", "decl", ",", "rtx", "rtl", ",", "int", "first", ")", "{", "if", "(", "(", "TREE_CODE", "(", "decl", ")", "==", "VAR_DECL", "&&", "(", "DECL_EXTERNAL", "(", "decl", ")", "||", "TREE_PUBLIC", "(", "decl", ")", ")", ")", "||", "(", "TREE_CODE", "(", "decl", ")", "==", "FUNCTION_DECL", "&&", "TREE_PUBLIC", "(", "decl", ")", ")", ")", ";", "else", "if", "(", "first", "&&", "DECL_P", "(", "decl", ")", ")", "{", "const", "char", "*", "str", "=", "XSTR", "(", "XEXP", "(", "rtl", ",", "0", ")", ",", "0", ")", ";", "int", "len", "=", "strlen", "(", "str", ")", ";", "char", "*", "newstr", "=", "XALLOCAVEC", "(", "char", ",", "len", "+", "2", ")", ";", "newstr", "[", "0", "]", "=", "'@'", ";", "strcpy", "(", "newstr", "+", "1", ",", "str", ")", ";", "XSTR", "(", "XEXP", "(", "rtl", ",", "0", ")", ",", "0", ")", "=", "ggc_alloc_string", "(", "newstr", ",", "len", "+", "1", ")", ";", "}", "if", "(", "TREE_CODE", "(", "decl", ")", "==", "FUNCTION_DECL", "||", "TREE_CONSTANT", "(", "decl", ")", "||", "(", "TREE_CODE", "(", "decl", ")", "==", "VAR_DECL", "&&", "TREE_READONLY", "(", "decl", ")", "&&", "!", "TREE_SIDE_EFFECTS", "(", "decl", ")", "&&", "(", "!", "DECL_INITIAL", "(", "decl", ")", "||", "TREE_CONSTANT", "(", "DECL_INITIAL", "(", "decl", ")", ")", ")", ")", ")", "SYMBOL_REF_FLAG", "(", "XEXP", "(", "rtl", ",", "0", ")", ")", "=", "1", ";", "}", ""], "natrual_language": ["ENCODE_SECTION_INFO", "."], "TS_V_token": ["mmix", "0", "0", "2", "0", "1", "0", "0", "1", "0", "1"], "File": "mmix", "Func": "mmix_encode_section_info", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2094, "Length": 202, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "ArrayRef", "<", "MCPhysReg", ">", "SICABIInfo", "::", "GetByValArgRegs", "(", ")", "const", "{", "if", "(", "IsO32", "(", ")", ")", "return", "makeArrayRef", "(", "O32IntRegs", ")", ";", "if", "(", "IsS32", "(", ")", ")", "return", "makeArrayRef", "(", "S32IntRegs", ")", ";", "llvm_unreachable", "(", "\"Unhandled ABI\"", ")", ";", "}", ""], "natrual_language": ["The", "registers", "to", "use", "for", "byval", "arguments", "."], "TS_V_token": ["SIC", "SIC", "\"Unhandled ABI\""], "File": "SICABIInfo", "Func": "GetByValArgRegs", "Target": "SIC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2095, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "rs6000_loop_align", "(", "rtx", "label", ")", "{", "basic_block", "bb", ";", "int", "ninsns", ";", "if", "(", "!", "can_override_loop_align", ")", "return", "align_loops_log", ";", "bb", "=", "BLOCK_FOR_INSN", "(", "label", ")", ";", "ninsns", "=", "num_loop_insns", "(", "bb", "->", "loop_father", ")", ";", "if", "(", "ninsns", ">", "4", "&&", "ninsns", "<=", "8", "&&", "(", "rs6000_tune", "==", "PROCESSOR_POWER4", "||", "rs6000_tune", "==", "PROCESSOR_POWER5", "||", "rs6000_tune", "==", "PROCESSOR_POWER6", "||", "rs6000_tune", "==", "PROCESSOR_POWER7", "||", "rs6000_tune", "==", "PROCESSOR_POWER8", ")", ")", "return", "5", ";", "else", "return", "align_loops_log", ";", "}", ""], "natrual_language": ["Implement", "LOOP_ALIGN", "."], "TS_V_token": ["rs6000", "4", "8", "5"], "File": "rs60007", "Func": "rs6000_loop_align", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2096, "Length": 77, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsAsmPrinter", "::", "doInitialization", "(", "Module", "&", "M", ")", "{", "Mang", "=", "new", "Mangler", "(", "M", ",", "\"\"", ",", "TAI", "->", "getPrivateGlobalPrefix", "(", ")", ")", ";", "O", "<<", "\"\\t.section .mdebug.\"", "<<", "emitCurrentABIString", "(", ")", "<<", "'\\n'", ";", "if", "(", "Subtarget", "->", "isABI_EABI", "(", ")", ")", "O", "<<", "\"\\t.section .gcc_compiled_long\"", "<<", "(", "Subtarget", "->", "isGP32bit", "(", ")", "?", "\"32\"", ":", "\"64\"", ")", "<<", "'\\n'", ";", "O", "<<", "\"\\t.previous\"", "<<", "'\\n'", ";", "return", "false", ";", "}", ""], "natrual_language": ["Set", "up", "the", "AsmPrinter", "when", "we", "are", "working", "on", "a", "new", "module", "."], "TS_V_token": ["Mips", "Mips", "\"\"", "\"\\t.section .mdebug.\"", "\"\\t.section .gcc_compiled_long\"", "\"32\"", "\"64\"", "\"\\t.previous\""], "File": "MipsAsmPrinter21", "Func": "doInitialization", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2097, "Length": 72, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86IntelInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ")", "{", "printInstruction", "(", "MI", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["X86", "X86"], "File": "X86IntelInstPrinter26", "Func": "printInst", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2098, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "aarch64_dwarf_poly_indeterminate_value", "(", "unsigned", "int", "i", ",", "unsigned", "int", "*", "factor", ",", "int", "*", "offset", ")", "{", "gcc_assert", "(", "i", "==", "1", ")", ";", "*", "factor", "=", "2", ";", "*", "offset", "=", "1", ";", "return", "AARCH64_DWARF_VG", ";", "}", ""], "natrual_language": ["Implement", "the", "TARGET_DWARF_POLY_INDETERMINATE_VALUE", "hook", "."], "TS_V_token": ["aarch64", "1", "2", "1"], "File": "aarch64", "Func": "aarch64_dwarf_poly_indeterminate_value", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2099, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "emit_load_locked", "(", "machine_mode", "mode", ",", "rtx", "reg", ",", "rtx", "mem", ")", "{", "rtx", "(", "*", "fn", ")", "(", "rtx", ",", "rtx", ")", "=", "NULL", ";", "switch", "(", "mode", ")", "{", "case", "E_QImode", ":", "fn", "=", "gen_load_lockedqi", ";", "break", ";", "case", "E_HImode", ":", "fn", "=", "gen_load_lockedhi", ";", "break", ";", "case", "E_SImode", ":", "if", "(", "GET_MODE", "(", "mem", ")", "==", "QImode", ")", "fn", "=", "gen_load_lockedqi_si", ";", "else", "if", "(", "GET_MODE", "(", "mem", ")", "==", "HImode", ")", "fn", "=", "gen_load_lockedhi_si", ";", "else", "fn", "=", "gen_load_lockedsi", ";", "break", ";", "case", "E_DImode", ":", "fn", "=", "gen_load_lockeddi", ";", "break", ";", "case", "E_TImode", ":", "fn", "=", "gen_load_lockedti", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "emit_insn", "(", "fn", "(", "reg", ",", "mem", ")", ")", ";", "}", ""], "natrual_language": ["A", "subroutine", "of", "the", "atomic", "operation", "splitters", ".", "Emit", "a", "load-locked", "instruction", "in", "MODE", ".", "For", "QI/HImode", ",", "possibly", "use", "a", "pattern", "than", "includes", "the", "zero_extend", "operation", "."], "TS_V_token": ["rs6000"], "File": "rs6000", "Func": "emit_load_locked", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2100, "Length": 123, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Emitter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "MCE", ".", "setModuleInfo", "(", "&", "getAnalysis", "<", "MachineModuleInfo", ">", "(", ")", ")", ";", "II", "=", "TM", ".", "getInstrInfo", "(", ")", ";", "TD", "=", "TM", ".", "getTargetData", "(", ")", ";", "Is64BitMode", "=", "TM", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "is64Bit", "(", ")", ";", "IsPIC", "=", "TM", ".", "getRelocationModel", "(", ")", "==", "Reloc", "::", "PIC_", ";", "do", "{", "DOUT", "<<", "\"JITTing function '\"", "<<", "MF", ".", "getFunction", "(", ")", "->", "getName", "(", ")", "<<", "\"'\\n\"", ";", "MCE", ".", "startFunction", "(", "MF", ")", ";", "for", "(", "MachineFunction", "::", "iterator", "MBB", "=", "MF", ".", "begin", "(", ")", ",", "E", "=", "MF", ".", "end", "(", ")", ";", "MBB", "!=", "E", ";", "++", "MBB", ")", "{", "MCE", ".", "StartMachineBasicBlock", "(", "MBB", ")", ";", "for", "(", "MachineBasicBlock", "::", "const_iterator", "I", "=", "MBB", "->", "begin", "(", ")", ",", "E", "=", "MBB", "->", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "const", "TargetInstrDesc", "&", "Desc", "=", "I", "->", "getDesc", "(", ")", ";", "emitInstruction", "(", "*", "I", ",", "&", "Desc", ")", ";", "if", "(", "Desc", ".", "getOpcode", "(", ")", "==", "X86", "::", "MOVPC32r", ")", "emitInstruction", "(", "*", "I", ",", "&", "II", "->", "get", "(", "X86", "::", "POP32r", ")", ")", ";", "NumEmitted", "++", ";", "}", "}", "}", "while", "(", "MCE", ".", "finishFunction", "(", "MF", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "\"JITTing function '\"", "\"'\\n\"", "X86::MOVPC32r", "X86::POP32r"], "File": "X86CodeEmitter22", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2101, "Length": 224, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "getTgtMemIntrinsic", "(", "IntrinsicInfo", "&", "Info", ",", "const", "CallInst", "&", "I", ",", "MachineFunction", "&", "MF", ",", "unsigned", "Intrinsic", ")", "const", "{", "const", "IntrinsicData", "*", "IntrData", "=", "getIntrinsicWithChain", "(", "Intrinsic", ")", ";", "if", "(", "!", "IntrData", ")", "return", "false", ";", "Info", ".", "flags", "=", "MachineMemOperand", "::", "MONone", ";", "Info", ".", "offset", "=", "0", ";", "switch", "(", "IntrData", "->", "Type", ")", "{", "case", "TRUNCATE_TO_MEM_VI8", ":", "case", "TRUNCATE_TO_MEM_VI16", ":", "case", "TRUNCATE_TO_MEM_VI32", ":", "{", "Info", ".", "opc", "=", "ISD", "::", "INTRINSIC_VOID", ";", "Info", ".", "ptrVal", "=", "I", ".", "getArgOperand", "(", "0", ")", ";", "MVT", "VT", "=", "MVT", "::", "getVT", "(", "I", ".", "getArgOperand", "(", "1", ")", "->", "getType", "(", ")", ")", ";", "MVT", "ScalarVT", "=", "MVT", "::", "INVALID_SIMPLE_VALUE_TYPE", ";", "if", "(", "IntrData", "->", "Type", "==", "TRUNCATE_TO_MEM_VI8", ")", "ScalarVT", "=", "MVT", "::", "i8", ";", "else", "if", "(", "IntrData", "->", "Type", "==", "TRUNCATE_TO_MEM_VI16", ")", "ScalarVT", "=", "MVT", "::", "i16", ";", "else", "if", "(", "IntrData", "->", "Type", "==", "TRUNCATE_TO_MEM_VI32", ")", "ScalarVT", "=", "MVT", "::", "i32", ";", "Info", ".", "memVT", "=", "MVT", "::", "getVectorVT", "(", "ScalarVT", ",", "VT", ".", "getVectorNumElements", "(", ")", ")", ";", "Info", ".", "align", "=", "Align", "(", "1", ")", ";", "Info", ".", "flags", "|=", "MachineMemOperand", "::", "MOStore", ";", "break", ";", "}", "case", "GATHER", ":", "case", "GATHER_AVX2", ":", "{", "Info", ".", "opc", "=", "ISD", "::", "INTRINSIC_W_CHAIN", ";", "Info", ".", "ptrVal", "=", "nullptr", ";", "MVT", "DataVT", "=", "MVT", "::", "getVT", "(", "I", ".", "getType", "(", ")", ")", ";", "MVT", "IndexVT", "=", "MVT", "::", "getVT", "(", "I", ".", "getArgOperand", "(", "2", ")", "->", "getType", "(", ")", ")", ";", "unsigned", "NumElts", "=", "std", "::", "min", "(", "DataVT", ".", "getVectorNumElements", "(", ")", ",", "IndexVT", ".", "getVectorNumElements", "(", ")", ")", ";", "Info", ".", "memVT", "=", "MVT", "::", "getVectorVT", "(", "DataVT", ".", "getVectorElementType", "(", ")", ",", "NumElts", ")", ";", "Info", ".", "align", "=", "Align", "(", "1", ")", ";", "Info", ".", "flags", "|=", "MachineMemOperand", "::", "MOLoad", ";", "break", ";", "}", "case", "SCATTER", ":", "{", "Info", ".", "opc", "=", "ISD", "::", "INTRINSIC_VOID", ";", "Info", ".", "ptrVal", "=", "nullptr", ";", "MVT", "DataVT", "=", "MVT", "::", "getVT", "(", "I", ".", "getArgOperand", "(", "3", ")", "->", "getType", "(", ")", ")", ";", "MVT", "IndexVT", "=", "MVT", "::", "getVT", "(", "I", ".", "getArgOperand", "(", "2", ")", "->", "getType", "(", ")", ")", ";", "unsigned", "NumElts", "=", "std", "::", "min", "(", "DataVT", ".", "getVectorNumElements", "(", ")", ",", "IndexVT", ".", "getVectorNumElements", "(", ")", ")", ";", "Info", ".", "memVT", "=", "MVT", "::", "getVectorVT", "(", "DataVT", ".", "getVectorElementType", "(", ")", ",", "NumElts", ")", ";", "Info", ".", "align", "=", "Align", "(", "1", ")", ";", "Info", ".", "flags", "|=", "MachineMemOperand", "::", "MOStore", ";", "break", ";", "}", "default", ":", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Given", "an", "intrinsic", ",", "checks", "if", "on", "the", "target", "the", "intrinsic", "will", "need", "to", "map", "to", "a", "MemIntrinsicNode", "(", "touches", "memory", ")", "."], "TS_V_token": ["X86", "X86", "0", "ISD::INTRINSIC_VOID", "0", "MVT::getVT", "1", "MVT::INVALID_SIMPLE_VALUE_TYPE", "MVT::i8", "MVT::i16", "MVT::i32", "MVT::getVectorVT", "1", "ISD::INTRINSIC_W_CHAIN", "MVT::getVT", "MVT::getVT", "2", "MVT::getVectorVT", "1", "ISD::INTRINSIC_VOID", "MVT::getVT", "3", "MVT::getVT", "2", "MVT::getVectorVT", "1"], "File": "X86ISelLowering125", "Func": "getTgtMemIntrinsic", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2102, "Length": 432, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCHazardRecognizer970", "::", "EmitInstruction", "(", "SUnit", "*", "SU", ")", "{", "const", "SDNode", "*", "Node", "=", "SU", "->", "getNode", "(", ")", "->", "getFlaggedMachineNode", "(", ")", ";", "bool", "isFirst", ",", "isSingle", ",", "isCracked", ",", "isLoad", ",", "isStore", ";", "PPCII", "::", "PPC970_Unit", "InstrType", "=", "GetInstrType", "(", "Node", "->", "getOpcode", "(", ")", ",", "isFirst", ",", "isSingle", ",", "isCracked", ",", "isLoad", ",", "isStore", ")", ";", "if", "(", "InstrType", "==", "PPCII", "::", "PPC970_Pseudo", ")", "return", ";", "unsigned", "Opcode", "=", "Node", "->", "getMachineOpcode", "(", ")", ";", "if", "(", "Opcode", "==", "PPC", "::", "MTCTR", ")", "HasCTRSet", "=", "true", ";", "if", "(", "isStore", ")", "{", "unsigned", "ThisStoreSize", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown store instruction!\"", ")", ";", "case", "PPC", "::", "STB", ":", "case", "PPC", "::", "STB8", ":", "case", "PPC", "::", "STBU", ":", "case", "PPC", "::", "STBU8", ":", "case", "PPC", "::", "STBX", ":", "case", "PPC", "::", "STBX8", ":", "case", "PPC", "::", "STVEBX", ":", "ThisStoreSize", "=", "1", ";", "break", ";", "case", "PPC", "::", "STH", ":", "case", "PPC", "::", "STH8", ":", "case", "PPC", "::", "STHU", ":", "case", "PPC", "::", "STHU8", ":", "case", "PPC", "::", "STHX", ":", "case", "PPC", "::", "STHX8", ":", "case", "PPC", "::", "STVEHX", ":", "case", "PPC", "::", "STHBRX", ":", "ThisStoreSize", "=", "2", ";", "break", ";", "case", "PPC", "::", "STFS", ":", "case", "PPC", "::", "STFSU", ":", "case", "PPC", "::", "STFSX", ":", "case", "PPC", "::", "STWX", ":", "case", "PPC", "::", "STWX8", ":", "case", "PPC", "::", "STWUX", ":", "case", "PPC", "::", "STW", ":", "case", "PPC", "::", "STW8", ":", "case", "PPC", "::", "STWU", ":", "case", "PPC", "::", "STVEWX", ":", "case", "PPC", "::", "STFIWX", ":", "case", "PPC", "::", "STWBRX", ":", "ThisStoreSize", "=", "4", ";", "break", ";", "case", "PPC", "::", "STD_32", ":", "case", "PPC", "::", "STDX_32", ":", "case", "PPC", "::", "STD", ":", "case", "PPC", "::", "STDU", ":", "case", "PPC", "::", "STFD", ":", "case", "PPC", "::", "STFDX", ":", "case", "PPC", "::", "STDX", ":", "case", "PPC", "::", "STDUX", ":", "ThisStoreSize", "=", "8", ";", "break", ";", "case", "PPC", "::", "STVX", ":", "case", "PPC", "::", "STVXL", ":", "ThisStoreSize", "=", "16", ";", "break", ";", "}", "StoreSize", "[", "NumStores", "]", "=", "ThisStoreSize", ";", "StorePtr1", "[", "NumStores", "]", "=", "Node", "->", "getOperand", "(", "1", ")", ";", "StorePtr2", "[", "NumStores", "]", "=", "Node", "->", "getOperand", "(", "2", ")", ";", "++", "NumStores", ";", "}", "if", "(", "InstrType", "==", "PPCII", "::", "PPC970_BRU", "||", "isSingle", ")", "NumIssued", "=", "4", ";", "++", "NumIssued", ";", "if", "(", "isCracked", ")", "++", "NumIssued", ";", "if", "(", "NumIssued", "==", "5", ")", "EndDispatchGroup", "(", ")", ";", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["PowerPC", "PPC", "PPCII::PPC970_Unit", "PPCII::PPC970_Pseudo", "PPC::MTCTR", "\"Unknown store instruction!\"", "PPC::STB", "PPC::STB8", "PPC::STBU", "PPC::STBU8", "PPC::STBX", "PPC::STBX8", "PPC::STVEBX", "1", "PPC::STH", "PPC::STH8", "PPC::STHU", "PPC::STHU8", "PPC::STHX", "PPC::STHX8", "PPC::STVEHX", "PPC::STHBRX", "2", "PPC::STFS", "PPC::STFSU", "PPC::STFSX", "PPC::STWX", "PPC::STWX8", "PPC::STWUX", "PPC::STW", "PPC::STW8", "PPC::STWU", "PPC::STVEWX", "PPC::STFIWX", "PPC::STWBRX", "4", "PPC::STD_32", "PPC::STDX_32", "PPC::STD", "PPC::STDU", "PPC::STFD", "PPC::STFDX", "PPC::STDX", "PPC::STDUX", "8", "PPC::STVX", "PPC::STVXL", "16", "1", "2", "PPCII::PPC970_BRU", "4", "5"], "File": "PPCHazardRecognizers12", "Func": "EmitInstruction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2103, "Length": 397, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "thumb1_final_prescan_insn", "(", "rtx_insn", "*", "insn", ")", "{", "if", "(", "flag_print_asm_name", ")", "asm_fprintf", "(", "asm_out_file", ",", "\"%@ 0x%04x\\n\"", ",", "INSN_ADDRESSES", "(", "INSN_UID", "(", "insn", ")", ")", ")", ";", "if", "(", "INSN_CODE", "(", "insn", ")", "!=", "CODE_FOR_cbranchsi4_insn", ")", "{", "enum", "attr_conds", "conds", ";", "if", "(", "cfun", "->", "machine", "->", "thumb1_cc_insn", ")", "{", "if", "(", "modified_in_p", "(", "cfun", "->", "machine", "->", "thumb1_cc_op0", ",", "insn", ")", "||", "modified_in_p", "(", "cfun", "->", "machine", "->", "thumb1_cc_op1", ",", "insn", ")", ")", "CC_STATUS_INIT", ";", "}", "conds", "=", "get_attr_conds", "(", "insn", ")", ";", "if", "(", "conds", "==", "CONDS_SET", ")", "{", "rtx", "set", "=", "single_set", "(", "insn", ")", ";", "cfun", "->", "machine", "->", "thumb1_cc_insn", "=", "insn", ";", "cfun", "->", "machine", "->", "thumb1_cc_op0", "=", "SET_DEST", "(", "set", ")", ";", "cfun", "->", "machine", "->", "thumb1_cc_op1", "=", "const0_rtx", ";", "cfun", "->", "machine", "->", "thumb1_cc_mode", "=", "CC_NOOVmode", ";", "if", "(", "INSN_CODE", "(", "insn", ")", "==", "CODE_FOR_thumb1_subsi3_insn", ")", "{", "rtx", "src1", "=", "XEXP", "(", "SET_SRC", "(", "set", ")", ",", "1", ")", ";", "if", "(", "src1", "==", "const0_rtx", ")", "cfun", "->", "machine", "->", "thumb1_cc_mode", "=", "CCmode", ";", "}", "else", "if", "(", "REG_P", "(", "SET_DEST", "(", "set", ")", ")", "&&", "REG_P", "(", "SET_SRC", "(", "set", ")", ")", ")", "{", "cfun", "->", "machine", "->", "thumb1_cc_op0", "=", "SET_SRC", "(", "set", ")", ";", "}", "}", "else", "if", "(", "conds", "!=", "CONDS_NOCOND", ")", "cfun", "->", "machine", "->", "thumb1_cc_insn", "=", "NULL_RTX", ";", "}", "if", "(", "cfun", "->", "machine", "->", "lr_save_eliminated", "&&", "get_attr_far_jump", "(", "insn", ")", "==", "FAR_JUMP_YES", ")", "internal_error", "(", "\"Unexpected thumb1 far jump\"", ")", ";", "}", ""], "natrual_language": ["Scan", "INSN", "just", "before", "assembler", "is", "output", "for", "it", ".", "For", "Thumb-1", ",", "we", "track", "the", "status", "of", "the", "condition", "codes", ";", "this", "information", "is", "used", "in", "the", "cbranchsi4_insn", "pattern", "."], "TS_V_token": ["arm", "\"%@ 0x%04x\\n\"", "1", "\"Unexpected thumb1 far jump\""], "File": "arm4", "Func": "thumb1_final_prescan_insn", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2104, "Length": 242, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCRegisterInfo", "::", "hasReservedSpillSlot", "(", "const", "MachineFunction", "&", "MF", ",", "unsigned", "Reg", ",", "int", "&", "FrameIdx", ")", "const", "{", "if", "(", "Subtarget", ".", "isSVR4ABI", "(", ")", "&&", "PPC", "::", "CR2", "<=", "Reg", "&&", "Reg", "<=", "PPC", "::", "CR4", ")", "{", "if", "(", "Subtarget", ".", "isPPC64", "(", ")", ")", "{", "FrameIdx", "=", "0", ";", "}", "else", "if", "(", "CRSpillFrameIdx", ")", "{", "FrameIdx", "=", "CRSpillFrameIdx", ";", "}", "else", "{", "MachineFrameInfo", "*", "MFI", "=", "(", "(", "MachineFunction", "&", ")", "MF", ")", ".", "getFrameInfo", "(", ")", ";", "FrameIdx", "=", "MFI", "->", "CreateFixedObject", "(", "(", "uint64_t", ")", "4", ",", "(", "int64_t", ")", "-", "4", ",", "true", ")", ";", "CRSpillFrameIdx", "=", "FrameIdx", ";", "}", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "target", "has", "reserved", "a", "spill", "slot", "in", "the", "stack", "frame", "of", "the", "given", "function", "for", "the", "specified", "register", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::CR2", "PPC::CR4", "PPC", "0", "4", "4"], "File": "PPCRegisterInfo48", "Func": "hasReservedSpillSlot", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2105, "Length": 116, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86PassConfig", "::", "addPreEmitPass", "(", ")", "{", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "addPass", "(", "new", "X86ExecutionDomainFix", "(", ")", ")", ";", "addPass", "(", "createBreakFalseDeps", "(", ")", ")", ";", "}", "addPass", "(", "createX86IndirectBranchTrackingPass", "(", ")", ")", ";", "addPass", "(", "createX86IssueVZeroUpperPass", "(", ")", ")", ";", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "addPass", "(", "createX86FixupBWInsts", "(", ")", ")", ";", "addPass", "(", "createX86PadShortFunctions", "(", ")", ")", ";", "addPass", "(", "createX86FixupLEAs", "(", ")", ")", ";", "}", "addPass", "(", "createX86EvexToVexInsts", "(", ")", ")", ";", "addPass", "(", "createX86DiscriminateMemOpsPass", "(", ")", ")", ";", "addPass", "(", "createX86InsertPrefetchPass", "(", ")", ")", ";", "addPass", "(", "createX86InsertX87waitPass", "(", ")", ")", ";", "addPass", "(", "createX86EncodeLiterals", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86"], "File": "X86TargetMachine21", "Func": "addPreEmitPass", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2106, "Length": 117, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "sh_can_change_mode_class", "(", "machine_mode", "from", ",", "machine_mode", "to", ",", "reg_class_t", "rclass", ")", "{", "if", "(", "to", "==", "SFmode", "&&", "VECTOR_MODE_P", "(", "from", ")", "&&", "GET_MODE_INNER", "(", "from", ")", "==", "SFmode", ")", "return", "optimize", "?", "!", "reg_classes_intersect_p", "(", "GENERAL_REGS", ",", "rclass", ")", ":", "true", ";", "if", "(", "GET_MODE_SIZE", "(", "from", ")", "!=", "GET_MODE_SIZE", "(", "to", ")", ")", "{", "if", "(", "TARGET_LITTLE_ENDIAN", ")", "{", "if", "(", "GET_MODE_SIZE", "(", "to", ")", "<", "8", "||", "GET_MODE_SIZE", "(", "from", ")", "<", "8", ")", "return", "!", "reg_classes_intersect_p", "(", "DF_REGS", ",", "rclass", ")", ";", "}", "else", "{", "if", "(", "GET_MODE_SIZE", "(", "from", ")", "<", "8", ")", "return", "!", "reg_classes_intersect_p", "(", "DF_REGS", ",", "rclass", ")", ";", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["Implement", "TARGET_CAN_CHANGE_MODE_CLASS", "."], "TS_V_token": ["sh", "8", "8", "8"], "File": "sh", "Func": "sh_can_change_mode_class", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2107, "Length": 115, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint16_t", "*", "X86RegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "bool", "callsEHReturn", "=", "false", ";", "bool", "ghcCall", "=", "false", ";", "if", "(", "MF", ")", "{", "callsEHReturn", "=", "MF", "->", "getMMI", "(", ")", ".", "callsEHReturn", "(", ")", ";", "const", "Function", "*", "F", "=", "MF", "->", "getFunction", "(", ")", ";", "ghcCall", "=", "(", "F", "?", "F", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "GHC", ":", "false", ")", ";", "}", "if", "(", "ghcCall", ")", "return", "CSR_Ghc_SaveList", ";", "if", "(", "Is64Bit", ")", "{", "if", "(", "IsWin64", ")", "return", "CSR_Win64_SaveList", ";", "if", "(", "callsEHReturn", ")", "return", "CSR_64EHRet_SaveList", ";", "return", "CSR_64_SaveList", ";", "}", "if", "(", "callsEHReturn", ")", "return", "CSR_32EHRet_SaveList", ";", "return", "CSR_32_SaveList", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["X86", "X86"], "File": "X86RegisterInfo101", "Func": "getCalleeSavedRegs", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2108, "Length": 112, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86InstrInfo", "::", "setExecutionDomain", "(", "MachineInstr", "*", "MI", ",", "unsigned", "Domain", ")", "const", "{", "assert", "(", "Domain", ">", "0", "&&", "Domain", "<", "4", "&&", "\"Invalid execution domain\"", ")", ";", "uint16_t", "dom", "=", "(", "MI", "->", "getDesc", "(", ")", ".", "TSFlags", ">>", "X86II", "::", "SSEDomainShift", ")", "&", "3", ";", "assert", "(", "dom", "&&", "\"Not an SSE instruction\"", ")", ";", "const", "unsigned", "*", "table", "=", "lookup", "(", "MI", "->", "getOpcode", "(", ")", ",", "dom", ")", ";", "if", "(", "!", "table", ")", "{", "assert", "(", "(", "TM", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "hasAVX2", "(", ")", "||", "Domain", "<", "3", ")", "&&", "\"256-bit vector operations only available in AVX2\"", ")", ";", "table", "=", "lookupAVX2", "(", "MI", "->", "getOpcode", "(", ")", ",", "dom", ")", ";", "}", "assert", "(", "table", "&&", "\"Cannot change domain\"", ")", ";", "MI", "->", "setDesc", "(", "get", "(", "table", "[", "Domain", "-", "1", "]", ")", ")", ";", "}", ""], "natrual_language": ["Change", "the", "opcode", "of", "MI", "to", "execute", "in", "Domain", "."], "TS_V_token": ["X86", "X86", "0", "4", "\"Invalid execution domain\"", "X86II::SSEDomainShift", "3", "\"Not an SSE instruction\"", "X86", "3", "\"256-bit vector operations only available in AVX2\"", "\"Cannot change domain\"", "1"], "File": "X86InstrInfo132", "Func": "setExecutionDomain", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2109, "Length": 136, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "get_scratch_register_on_entry", "(", "struct", "scratch_reg", "*", "sr", ")", "{", "int", "regno", ";", "sr", "->", "saved", "=", "false", ";", "if", "(", "TARGET_64BIT", ")", "{", "regno", "=", "R11_REG", ";", "}", "else", "{", "tree", "decl", "=", "current_function_decl", ",", "fntype", "=", "TREE_TYPE", "(", "decl", ")", ";", "bool", "fastcall_p", "=", "lookup_attribute", "(", "\"fastcall\"", ",", "TYPE_ATTRIBUTES", "(", "fntype", ")", ")", "!=", "NULL_TREE", ";", "bool", "thiscall_p", "=", "lookup_attribute", "(", "\"thiscall\"", ",", "TYPE_ATTRIBUTES", "(", "fntype", ")", ")", "!=", "NULL_TREE", ";", "bool", "static_chain_p", "=", "DECL_STATIC_CHAIN", "(", "decl", ")", ";", "int", "regparm", "=", "ix86_function_regparm", "(", "fntype", ",", "decl", ")", ";", "int", "drap_regno", "=", "crtl", "->", "drap_reg", "?", "REGNO", "(", "crtl", "->", "drap_reg", ")", ":", "INVALID_REGNUM", ";", "if", "(", "(", "regparm", "<", "1", "||", "(", "fastcall_p", "&&", "!", "static_chain_p", ")", ")", "&&", "drap_regno", "!=", "AX_REG", ")", "regno", "=", "AX_REG", ";", "else", "if", "(", "thiscall_p", "&&", "!", "static_chain_p", "&&", "drap_regno", "!=", "AX_REG", ")", "regno", "=", "AX_REG", ";", "else", "if", "(", "regparm", "<", "2", "&&", "!", "thiscall_p", "&&", "drap_regno", "!=", "DX_REG", ")", "regno", "=", "DX_REG", ";", "else", "if", "(", "regparm", "<", "3", "&&", "!", "fastcall_p", "&&", "!", "thiscall_p", "&&", "!", "static_chain_p", "&&", "drap_regno", "!=", "CX_REG", ")", "regno", "=", "CX_REG", ";", "else", "if", "(", "ix86_save_reg", "(", "BX_REG", ",", "true", ",", "false", ")", ")", "regno", "=", "BX_REG", ";", "else", "if", "(", "!", "(", "regparm", "==", "3", "&&", "static_chain_p", ")", "&&", "ix86_save_reg", "(", "SI_REG", ",", "true", ",", "false", ")", ")", "regno", "=", "SI_REG", ";", "else", "if", "(", "ix86_save_reg", "(", "DI_REG", ",", "true", ",", "false", ")", ")", "regno", "=", "DI_REG", ";", "else", "{", "regno", "=", "(", "drap_regno", "==", "AX_REG", "?", "DX_REG", ":", "AX_REG", ")", ";", "sr", "->", "saved", "=", "true", ";", "}", "}", "sr", "->", "reg", "=", "gen_rtx_REG", "(", "Pmode", ",", "regno", ")", ";", "if", "(", "sr", "->", "saved", ")", "{", "rtx_insn", "*", "insn", "=", "emit_insn", "(", "gen_push", "(", "sr", "->", "reg", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "}", ""], "natrual_language": ["Return", "a", "short-lived", "scratch", "register", "for", "use", "on", "function", "entry", ".", "In", "32-bit", "mode", ",", "it", "is", "valid", "only", "after", "the", "registers", "are", "saved", "in", "the", "prologue", ".", "This", "register", "must", "be", "released", "by", "means", "of", "release_scratch_register_on_entry", "once", "it", "is", "dead", "."], "TS_V_token": ["i386", "\"fastcall\"", "\"thiscall\"", "1", "2", "3", "3", "1"], "File": "i386", "Func": "get_scratch_register_on_entry", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2110, "Length": 308, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMConstantPoolMBB", "::", "print", "(", "raw_ostream", "&", "O", ")", "const", "{", "O", "<<", "\"BB#\"", "<<", "MBB", "->", "getNumber", "(", ")", ";", "ARMConstantPoolValue", "::", "print", "(", "O", ")", ";", "}", ""], "natrual_language": ["print", "-", "Print", "a", "debug", "representation", "of", "the", "operand", "to", "the", "given", "stream", "."], "TS_V_token": ["ARM", "ARM", "\"BB#\"", "ARM"], "File": "ARMConstantPoolValue (2)", "Func": "print", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2111, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARM64LoadStoreOpt", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "Fn", ")", "{", "if", "(", "!", "DoLoadStoreOpt", ")", "return", "false", ";", "const", "TargetMachine", "&", "TM", "=", "Fn", ".", "getTarget", "(", ")", ";", "TII", "=", "static_cast", "<", "const", "ARM64InstrInfo", "*", ">", "(", "TM", ".", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "TM", ".", "getRegisterInfo", "(", ")", ";", "bool", "Modified", "=", "false", ";", "for", "(", "auto", "&", "MBB", ":", "Fn", ")", "Modified", "|=", "optimizeBlock", "(", "MBB", ")", ";", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM64", "ARM64", "ARM64"], "File": "ARM64LoadStoreOptimizer", "Func": "runOnMachineFunction", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2112, "Length": 77, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86InstructionSelector", "::", "select", "(", "MachineInstr", "&", "I", ")", "const", "{", "assert", "(", "I", ".", "getParent", "(", ")", "&&", "\"Instruction should be in a basic block!\"", ")", ";", "assert", "(", "I", ".", "getParent", "(", ")", "->", "getParent", "(", ")", "&&", "\"Instruction should be in a function!\"", ")", ";", "MachineBasicBlock", "&", "MBB", "=", "*", "I", ".", "getParent", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "unsigned", "Opcode", "=", "I", ".", "getOpcode", "(", ")", ";", "if", "(", "!", "isPreISelGenericOpcode", "(", "Opcode", ")", ")", "{", "if", "(", "Opcode", "==", "TargetOpcode", "::", "LOAD_STACK_GUARD", ")", "return", "false", ";", "if", "(", "I", ".", "isCopy", "(", ")", ")", "return", "selectCopy", "(", "I", ",", "MRI", ")", ";", "return", "true", ";", "}", "assert", "(", "I", ".", "getNumOperands", "(", ")", "==", "I", ".", "getNumExplicitOperands", "(", ")", "&&", "\"Generic instruction has unexpected implicit operands\\n\"", ")", ";", "if", "(", "selectImpl", "(", "I", ")", ")", "return", "true", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\" C++ instruction selection: \"", ";", "I", ".", "print", "(", "dbgs", "(", ")", ")", ")", ";", "switch", "(", "I", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "false", ";", "case", "TargetOpcode", "::", "G_STORE", ":", "case", "TargetOpcode", "::", "G_LOAD", ":", "return", "selectLoadStoreOp", "(", "I", ",", "MRI", ",", "MF", ")", ";", "case", "TargetOpcode", "::", "G_GEP", ":", "case", "TargetOpcode", "::", "G_FRAME_INDEX", ":", "return", "selectFrameIndexOrGep", "(", "I", ",", "MRI", ",", "MF", ")", ";", "case", "TargetOpcode", "::", "G_GLOBAL_VALUE", ":", "return", "selectGlobalValue", "(", "I", ",", "MRI", ",", "MF", ")", ";", "case", "TargetOpcode", "::", "G_CONSTANT", ":", "return", "selectConstant", "(", "I", ",", "MRI", ",", "MF", ")", ";", "case", "TargetOpcode", "::", "G_FCONSTANT", ":", "return", "materializeFP", "(", "I", ",", "MRI", ",", "MF", ")", ";", "case", "TargetOpcode", "::", "G_TRUNC", ":", "return", "selectTrunc", "(", "I", ",", "MRI", ",", "MF", ")", ";", "case", "TargetOpcode", "::", "G_ZEXT", ":", "return", "selectZext", "(", "I", ",", "MRI", ",", "MF", ")", ";", "case", "TargetOpcode", "::", "G_ANYEXT", ":", "return", "selectAnyext", "(", "I", ",", "MRI", ",", "MF", ")", ";", "case", "TargetOpcode", "::", "G_ICMP", ":", "return", "selectCmp", "(", "I", ",", "MRI", ",", "MF", ")", ";", "case", "TargetOpcode", "::", "G_UADDE", ":", "return", "selectUadde", "(", "I", ",", "MRI", ",", "MF", ")", ";", "case", "TargetOpcode", "::", "G_UNMERGE_VALUES", ":", "return", "selectUnmergeValues", "(", "I", ",", "MRI", ",", "MF", ")", ";", "case", "TargetOpcode", "::", "G_MERGE_VALUES", ":", "return", "selectMergeValues", "(", "I", ",", "MRI", ",", "MF", ")", ";", "case", "TargetOpcode", "::", "G_EXTRACT", ":", "return", "selectExtract", "(", "I", ",", "MRI", ",", "MF", ")", ";", "case", "TargetOpcode", "::", "G_INSERT", ":", "return", "selectInsert", "(", "I", ",", "MRI", ",", "MF", ")", ";", "case", "TargetOpcode", "::", "G_BRCOND", ":", "return", "selectCondBranch", "(", "I", ",", "MRI", ",", "MF", ")", ";", "case", "TargetOpcode", "::", "G_IMPLICIT_DEF", ":", "case", "TargetOpcode", "::", "G_PHI", ":", "return", "selectImplicitDefOrPHI", "(", "I", ",", "MRI", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Select", "the", "(", "possibly", "generic", ")", "instruction", "I", "to", "only", "use", "target-specific", "opcodes", "."], "TS_V_token": ["X86", "X86", "\"Instruction should be in a basic block!\"", "\"Instruction should be in a function!\"", "\"Generic instruction has unexpected implicit operands\\n\"", "\" C++ instruction selection: \""], "File": "X86InstructionSelector12", "Func": "select", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2113, "Length": 435, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "sbitmap", "aarch64_get_separate_components", "(", "void", ")", "{", "sbitmap", "components", "=", "sbitmap_alloc", "(", "LAST_SAVED_REGNUM", "+", "1", ")", ";", "bitmap_clear", "(", "components", ")", ";", "for", "(", "unsigned", "regno", "=", "0", ";", "regno", "<=", "LAST_SAVED_REGNUM", ";", "regno", "++", ")", "if", "(", "aarch64_register_saved_on_entry", "(", "regno", ")", ")", "{", "poly_int64", "offset", "=", "cfun", "->", "machine", "->", "frame", ".", "reg_offset", "[", "regno", "]", ";", "if", "(", "!", "frame_pointer_needed", ")", "offset", "+=", "cfun", "->", "machine", "->", "frame", ".", "frame_size", "-", "cfun", "->", "machine", "->", "frame", ".", "hard_fp_offset", ";", "if", "(", "offset_12bit_unsigned_scaled_p", "(", "DImode", ",", "offset", ")", ")", "bitmap_set_bit", "(", "components", ",", "regno", ")", ";", "}", "if", "(", "frame_pointer_needed", ")", "bitmap_clear_bit", "(", "components", ",", "HARD_FRAME_POINTER_REGNUM", ")", ";", "unsigned", "reg1", "=", "cfun", "->", "machine", "->", "frame", ".", "wb_candidate1", ";", "unsigned", "reg2", "=", "cfun", "->", "machine", "->", "frame", ".", "wb_candidate2", ";", "if", "(", "reg2", "!=", "INVALID_REGNUM", ")", "bitmap_clear_bit", "(", "components", ",", "reg2", ")", ";", "if", "(", "reg1", "!=", "INVALID_REGNUM", ")", "bitmap_clear_bit", "(", "components", ",", "reg1", ")", ";", "bitmap_clear_bit", "(", "components", ",", "LR_REGNUM", ")", ";", "bitmap_clear_bit", "(", "components", ",", "SP_REGNUM", ")", ";", "return", "components", ";", "}", ""], "natrual_language": ["Implement", "TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS", "."], "TS_V_token": ["aarch64", "1", "0"], "File": "aarch646", "Func": "aarch64_get_separate_components", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2114, "Length": 175, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ScheduleHazardRecognizer", "*", "PPCInstrInfo", "::", "CreateTargetHazardRecognizer", "(", "const", "TargetSubtargetInfo", "*", "STI", ",", "const", "ScheduleDAG", "*", "DAG", ")", "const", "{", "unsigned", "Directive", "=", "static_cast", "<", "const", "PPCSubtarget", "*", ">", "(", "STI", ")", "->", "getDarwinDirective", "(", ")", ";", "if", "(", "Directive", "==", "PPC", "::", "DIR_440", "||", "Directive", "==", "PPC", "::", "DIR_A2", "||", "Directive", "==", "PPC", "::", "DIR_E500mc", "||", "Directive", "==", "PPC", "::", "DIR_E5500", ")", "{", "const", "InstrItineraryData", "*", "II", "=", "static_cast", "<", "const", "PPCSubtarget", "*", ">", "(", "STI", ")", "->", "getInstrItineraryData", "(", ")", ";", "return", "new", "ScoreboardHazardRecognizer", "(", "II", ",", "DAG", ")", ";", "}", "return", "TargetInstrInfo", "::", "CreateTargetHazardRecognizer", "(", "STI", ",", "DAG", ")", ";", "}", ""], "natrual_language": ["Allocate", "and", "return", "a", "hazard", "recognizer", "to", "use", "for", "this", "target", "when", "scheduling", "the", "machine", "instructions", "before", "register", "allocation", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC::DIR_440", "PPC::DIR_A2", "PPC::DIR_E500mc", "PPC::DIR_E5500", "PPC"], "File": "PPCInstrInfo (2)2", "Func": "CreateTargetHazardRecognizer", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2115, "Length": 102, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetMachine", "::", "addPreRegAlloc", "(", "PassManagerBase", "&", "PM", ",", "CodeGenOpt", "::", "Level", "OptLevel", ")", "{", "return", "false", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "register", "allocation", "."], "TS_V_token": ["X86", "X86"], "File": "X86TargetMachine118", "Func": "addPreRegAlloc", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2116, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "rs6000_emit_le_vsx_permute", "(", "rtx", "dest", ",", "rtx", "source", ",", "machine_mode", "mode", ")", "{", "gcc_assert", "(", "!", "altivec_indexed_or_indirect_operand", "(", "dest", ",", "mode", ")", ")", ";", "gcc_assert", "(", "!", "altivec_indexed_or_indirect_operand", "(", "source", ",", "mode", ")", ")", ";", "if", "(", "FLOAT128_VECTOR_P", "(", "mode", ")", ")", "{", "dest", "=", "gen_lowpart", "(", "V1TImode", ",", "dest", ")", ";", "source", "=", "gen_lowpart", "(", "V1TImode", ",", "source", ")", ";", "mode", "=", "V1TImode", ";", "}", "if", "(", "mode", "==", "TImode", "||", "mode", "==", "V1TImode", ")", "emit_insn", "(", "gen_rtx_SET", "(", "dest", ",", "gen_rtx_ROTATE", "(", "mode", ",", "source", ",", "GEN_INT", "(", "64", ")", ")", ")", ")", ";", "else", "{", "rtx", "par", "=", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "rs6000_const_vec", "(", "mode", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "dest", ",", "gen_rtx_VEC_SELECT", "(", "mode", ",", "source", ",", "par", ")", ")", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "an", "lxvd2x", ",", "stxvd2x", ",", "or", "xxpermdi", "instruction", "for", "a", "VSX", "load", "or", "store", "operation", "."], "TS_V_token": ["rs6000", "64"], "File": "rs6000", "Func": "rs6000_emit_le_vsx_permute", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2117, "Length": 130, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "shouldScalarizeBinop", "(", "SDValue", "VecOp", ")", "const", "{", "unsigned", "Opc", "=", "VecOp", ".", "getOpcode", "(", ")", ";", "if", "(", "Opc", ">=", "ISD", "::", "BUILTIN_OP_END", ")", "return", "false", ";", "EVT", "VecVT", "=", "VecOp", ".", "getValueType", "(", ")", ";", "if", "(", "!", "isOperationLegalOrCustomOrPromote", "(", "Opc", ",", "VecVT", ")", ")", "return", "true", ";", "EVT", "ScalarVT", "=", "VecVT", ".", "getScalarType", "(", ")", ";", "return", "isOperationLegalOrCustomOrPromote", "(", "Opc", ",", "ScalarVT", ")", ";", "}", ""], "natrual_language": ["Scalar", "ops", "always", "have", "equal", "or", "better", "analysis/performance/power", "than", "the", "vector", "equivalent", ",", "so", "this", "always", "makes", "sense", "if", "the", "scalar", "op", "is", "supported", "."], "TS_V_token": ["X86", "X86", "ISD::BUILTIN_OP_END"], "File": "X86ISelLowering (2)5", "Func": "shouldScalarizeBinop", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2118, "Length": 70, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "InstrItineraryData", "*", "getInstrItineraryData", "(", ")", "const", "override", "{", "return", "&", "InstrItins", ";", "}", ""], "natrual_language": ["getInstrItineraryData", "-", "Returns", "instruction", "itinerary", "data", "for", "the", "target", "or", "specific", "subtarget", "."], "TS_V_token": ["FISC"], "File": "FISCSubtarget", "Func": "getInstrItineraryData", "Target": "FISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2119, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "X86RegisterInfo", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", "MF", ",", "CallingConv", "::", "ID", "CC", ")", "const", "{", "const", "X86Subtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "bool", "HasSSE", "=", "Subtarget", ".", "hasSSE1", "(", ")", ";", "bool", "HasAVX", "=", "Subtarget", ".", "hasAVX", "(", ")", ";", "bool", "HasAVX512", "=", "Subtarget", ".", "hasAVX512", "(", ")", ";", "switch", "(", "CC", ")", "{", "case", "CallingConv", "::", "GHC", ":", "case", "CallingConv", "::", "HiPE", ":", "return", "CSR_NoRegs_RegMask", ";", "case", "CallingConv", "::", "AnyReg", ":", "if", "(", "HasAVX", ")", "return", "CSR_64_AllRegs_AVX_RegMask", ";", "return", "CSR_64_AllRegs_RegMask", ";", "case", "CallingConv", "::", "PreserveMost", ":", "return", "CSR_64_RT_MostRegs_RegMask", ";", "case", "CallingConv", "::", "PreserveAll", ":", "if", "(", "HasAVX", ")", "return", "CSR_64_RT_AllRegs_AVX_RegMask", ";", "return", "CSR_64_RT_AllRegs_RegMask", ";", "case", "CallingConv", "::", "CXX_FAST_TLS", ":", "if", "(", "Is64Bit", ")", "return", "CSR_64_TLS_Darwin_RegMask", ";", "break", ";", "case", "CallingConv", "::", "Intel_OCL_BI", ":", "{", "if", "(", "HasAVX512", "&&", "IsWin64", ")", "return", "CSR_Win64_Intel_OCL_BI_AVX512_RegMask", ";", "if", "(", "HasAVX512", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_AVX512_RegMask", ";", "if", "(", "HasAVX", "&&", "IsWin64", ")", "return", "CSR_Win64_Intel_OCL_BI_AVX_RegMask", ";", "if", "(", "HasAVX", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_AVX_RegMask", ";", "if", "(", "!", "HasAVX", "&&", "!", "IsWin64", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_RegMask", ";", "break", ";", "}", "case", "CallingConv", "::", "HHVM", ":", "return", "CSR_64_HHVM_RegMask", ";", "case", "CallingConv", "::", "Cold", ":", "if", "(", "Is64Bit", ")", "return", "CSR_64_MostRegs_RegMask", ";", "break", ";", "case", "CallingConv", "::", "X86_64_Win64", ":", "return", "CSR_Win64_RegMask", ";", "case", "CallingConv", "::", "X86_64_SysV", ":", "return", "CSR_64_RegMask", ";", "case", "CallingConv", "::", "X86_INTR", ":", "if", "(", "Is64Bit", ")", "{", "if", "(", "HasAVX512", ")", "return", "CSR_64_AllRegs_AVX512_RegMask", ";", "if", "(", "HasAVX", ")", "return", "CSR_64_AllRegs_AVX_RegMask", ";", "return", "CSR_64_AllRegs_RegMask", ";", "}", "else", "{", "if", "(", "HasAVX512", ")", "return", "CSR_32_AllRegs_AVX512_RegMask", ";", "if", "(", "HasAVX", ")", "return", "CSR_32_AllRegs_AVX_RegMask", ";", "if", "(", "HasSSE", ")", "return", "CSR_32_AllRegs_SSE_RegMask", ";", "return", "CSR_32_AllRegs_RegMask", ";", "}", "default", ":", "break", ";", "}", "if", "(", "Is64Bit", ")", "{", "if", "(", "IsWin64", ")", "return", "CSR_Win64_RegMask", ";", "if", "(", "Subtarget", ".", "getTargetLowering", "(", ")", "->", "supportSwiftError", "(", ")", "&&", "MF", ".", "getFunction", "(", ")", "->", "getAttributes", "(", ")", ".", "hasAttrSomewhere", "(", "Attribute", "::", "SwiftError", ")", ")", "return", "CSR_64_SwiftError_RegMask", ";", "return", "CSR_64_RegMask", ";", "}", "return", "CSR_32_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86", "X86"], "File": "X86RegisterInfo5", "Func": "getCallPreservedMask", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2120, "Length": 338, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ISD", "::", "NodeType", "getExtendForAtomicOps", "(", ")", "const", "override", "{", "return", "ISD", "::", "ANY_EXTEND", ";", "}", ""], "natrual_language": ["Returns", "how", "the", "platform", "'s", "atomic", "operations", "are", "extended", "(", "ZERO_EXTEND", ",", "SIGN_EXTEND", ",", "or", "ANY_EXTEND", ")", "."], "TS_V_token": ["VE", "ISD::NodeType", "ISD::ANY_EXTEND"], "File": "VEISelLowering15", "Func": "getExtendForAtomicOps", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2121, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "OptimizeLEAPass", "::", "isReplaceable", "(", "const", "MachineInstr", "&", "First", ",", "const", "MachineInstr", "&", "Last", ",", "int64_t", "&", "AddrDispShift", ")", "const", "{", "assert", "(", "isLEA", "(", "First", ")", "&&", "isLEA", "(", "Last", ")", "&&", "\"The function works only with LEA instructions\"", ")", ";", "if", "(", "MRI", "->", "getRegClass", "(", "First", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ")", "!=", "MRI", "->", "getRegClass", "(", "Last", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ")", ")", "return", "false", ";", "AddrDispShift", "=", "getAddrDispShift", "(", "Last", ",", "1", ",", "First", ",", "1", ")", ";", "for", "(", "auto", "&", "MO", ":", "MRI", "->", "use_nodbg_operands", "(", "Last", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ")", ")", "{", "MachineInstr", "&", "MI", "=", "*", "MO", ".", "getParent", "(", ")", ";", "const", "MCInstrDesc", "&", "Desc", "=", "MI", ".", "getDesc", "(", ")", ";", "int", "MemOpNo", "=", "X86II", "::", "getMemoryOperandNo", "(", "Desc", ".", "TSFlags", ")", ";", "if", "(", "MemOpNo", "<", "0", ")", "return", "false", ";", "MemOpNo", "+=", "X86II", "::", "getOperandBias", "(", "Desc", ")", ";", "if", "(", "!", "isIdenticalOp", "(", "MI", ".", "getOperand", "(", "MemOpNo", "+", "X86", "::", "AddrBaseReg", ")", ",", "MO", ")", ")", "return", "false", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "MI", ".", "getNumOperands", "(", ")", ";", "i", "++", ")", "if", "(", "i", "!=", "(", "unsigned", ")", "(", "MemOpNo", "+", "X86", "::", "AddrBaseReg", ")", "&&", "isIdenticalOp", "(", "MI", ".", "getOperand", "(", "i", ")", ",", "MO", ")", ")", "return", "false", ";", "if", "(", "MI", ".", "getOperand", "(", "MemOpNo", "+", "X86", "::", "AddrDisp", ")", ".", "isImm", "(", ")", "&&", "!", "isInt", "<", "32", ">", "(", "MI", ".", "getOperand", "(", "MemOpNo", "+", "X86", "::", "AddrDisp", ")", ".", "getImm", "(", ")", "+", "AddrDispShift", ")", ")", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Check", "whether", "metadata", "is", "replaceable", "."], "TS_V_token": ["X86", "\"The function works only with LEA instructions\"", "0", "0", "1", "1", "0", "X86II::getMemoryOperandNo", "0", "X86II::getOperandBias", "X86::AddrBaseReg", "0", "X86::AddrBaseReg", "X86::AddrDisp", "32", "X86::AddrDisp"], "File": "X86OptimizeLEAs", "Func": "isReplaceable", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2122, "Length": 280, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getReg", "(", ")", "const", "override", "{", "assert", "(", "Kind", "==", "Register", "&&", "\"Invalid type access!\"", ")", ";", "return", "Reg", ".", "RegNum", ";", "}", ""], "natrual_language": ["Returns", "the", "register", "associated", "with", "this", "edge", "."], "TS_V_token": ["CAHP", "\"Invalid type access!\""], "File": "CAHPAsmParser", "Func": "getReg", "Target": "CAHP", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2123, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_legitimate_constant_p", "(", "machine_mode", "mode", ",", "rtx", "x", ")", "{", "if", "(", "TARGET_SIMD", "&&", "aarch64_vect_struct_mode_p", "(", "mode", ")", ")", "return", "false", ";", "if", "(", "(", "GET_CODE", "(", "x", ")", "==", "CONST_VECTOR", "&&", "aarch64_simd_valid_immediate", "(", "x", ",", "mode", ",", "false", ",", "NULL", ")", ")", "||", "CONST_INT_P", "(", "x", ")", "||", "aarch64_valid_floating_const", "(", "mode", ",", "x", ")", ")", "return", "!", "targetm", ".", "cannot_force_const_mem", "(", "mode", ",", "x", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "HIGH", "&&", "aarch64_valid_symref", "(", "XEXP", "(", "x", ",", "0", ")", ",", "GET_MODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", ")", ")", "return", "true", ";", "return", "aarch64_constant_address_p", "(", "x", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_LEGITIMATE_CONSTANT_P", "hook", ".", "Return", "true", "for", "constants", "that", "should", "be", "rematerialized", "rather", "than", "spilled", "."], "TS_V_token": ["aarch64", "0", "0"], "File": "aarch642", "Func": "aarch64_legitimate_constant_p", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2124, "Length": 107, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "VEInstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "Register", "DestReg", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", "->", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", "->", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "*", "MF", ",", "FI", ")", ",", "MachineMemOperand", "::", "MOLoad", ",", "MFI", ".", "getObjectSize", "(", "FI", ")", ",", "MFI", ".", "getObjectAlign", "(", "FI", ")", ")", ";", "if", "(", "RC", "==", "&", "VE", "::", "I64RegClass", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "VE", "::", "LDrii", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", "else", "if", "(", "RC", "==", "&", "VE", "::", "I32RegClass", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "VE", "::", "LDLSXrii", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", "else", "if", "(", "RC", "==", "&", "VE", "::", "F32RegClass", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "VE", "::", "LDUrii", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", "else", "if", "(", "VE", "::", "F128RegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "VE", "::", "LDQrii", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", "else", "report_fatal_error", "(", "\"Can't load this register from stack slot\"", ")", ";", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["VE", "VE", "VE::I64RegClass", "VE::LDrii", "0", "0", "VE::I32RegClass", "VE::LDLSXrii", "0", "0", "VE::F32RegClass", "VE::LDUrii", "0", "0", "VE::F128RegClass", "VE::LDQrii", "0", "0", "\"Can't load this register from stack slot\""], "File": "VEInstrInfo", "Func": "loadRegFromStackSlot", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2125, "Length": 319, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_darwin64_record_arg_flush", "(", "CUMULATIVE_ARGS", "*", "cum", ",", "HOST_WIDE_INT", "bitpos", ",", "rtx", "rvec", "[", "]", ",", "int", "*", "k", ")", "{", "machine_mode", "mode", ";", "unsigned", "int", "regno", ";", "unsigned", "int", "startbit", ",", "endbit", ";", "int", "this_regno", ",", "intregs", ",", "intoffset", ";", "rtx", "reg", ";", "if", "(", "cum", "->", "intoffset", "==", "-", "1", ")", "return", ";", "intoffset", "=", "cum", "->", "intoffset", ";", "cum", "->", "intoffset", "=", "-", "1", ";", "if", "(", "intoffset", "%", "BITS_PER_WORD", "!=", "0", ")", "{", "mode", "=", "mode_for_size", "(", "BITS_PER_WORD", "-", "intoffset", "%", "BITS_PER_WORD", ",", "MODE_INT", ",", "0", ")", ";", "if", "(", "mode", "==", "BLKmode", ")", "{", "intoffset", "=", "intoffset", "&", "-", "BITS_PER_WORD", ";", "mode", "=", "word_mode", ";", "}", "}", "else", "mode", "=", "word_mode", ";", "startbit", "=", "intoffset", "&", "-", "BITS_PER_WORD", ";", "endbit", "=", "(", "bitpos", "+", "BITS_PER_WORD", "-", "1", ")", "&", "-", "BITS_PER_WORD", ";", "intregs", "=", "(", "endbit", "-", "startbit", ")", "/", "BITS_PER_WORD", ";", "this_regno", "=", "cum", "->", "words", "+", "intoffset", "/", "BITS_PER_WORD", ";", "if", "(", "intregs", ">", "0", "&&", "intregs", ">", "GP_ARG_NUM_REG", "-", "this_regno", ")", "cum", "->", "use_stack", "=", "1", ";", "intregs", "=", "MIN", "(", "intregs", ",", "GP_ARG_NUM_REG", "-", "this_regno", ")", ";", "if", "(", "intregs", "<=", "0", ")", "return", ";", "intoffset", "/=", "BITS_PER_UNIT", ";", "do", "{", "regno", "=", "GP_ARG_MIN_REG", "+", "this_regno", ";", "reg", "=", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "rvec", "[", "(", "*", "k", ")", "++", "]", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "reg", ",", "GEN_INT", "(", "intoffset", ")", ")", ";", "this_regno", "+=", "1", ";", "intoffset", "=", "(", "intoffset", "|", "(", "UNITS_PER_WORD", "-", "1", ")", ")", "+", "1", ";", "mode", "=", "word_mode", ";", "intregs", "-=", "1", ";", "}", "while", "(", "intregs", ">", "0", ")", ";", "}", ""], "natrual_language": ["A", "subroutine", "of", "rs6000_darwin64_record_arg", ".", "Assign", "the", "bits", "of", "the", "structure", "between", "cum-", ">", "intoffset", "and", "bitpos", "to", "integer", "registers", "."], "TS_V_token": ["rs6000", "1", "1", "0", "0", "1", "0", "1", "0", "1", "1", "1", "1", "0"], "File": "rs60004", "Func": "rs6000_darwin64_record_arg_flush", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2126, "Length": 271, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "char", "*", "arm_invalid_unary_op", "(", "int", "op", ",", "const_tree", "type", ")", "{", "if", "(", "element_mode", "(", "type", ")", "==", "BFmode", "&&", "op", "!=", "ADDR_EXPR", ")", "return", "N_", "(", "\"operation not permitted on type %\"", ")", ";", "return", "NULL", ";", "}", ""], "natrual_language": ["Return", "the", "diagnostic", "message", "string", "if", "the", "unary", "operation", "OP", "is", "not", "permitted", "on", "TYPE", ",", "NULL", "otherwise", "."], "TS_V_token": ["arm", "\"operation not permitted on type %\""], "File": "arm", "Func": "arm_invalid_unary_op", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2127, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "originalEVTTypeIsVectorFloat", "(", "EVT", "Ty", ")", "{", "if", "(", "Ty", ".", "isVector", "(", ")", "&&", "Ty", ".", "getVectorElementType", "(", ")", ".", "isFloatingPoint", "(", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "original", "type", "was", "vXfXX", "."], "TS_V_token": ["Mips"], "File": "MipsCCState", "Func": "originalEVTTypeIsVectorFloat", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2128, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "X86TargetLowering", "::", "PerformDAGCombine", "(", "SDNode", "*", "N", ",", "DAGCombinerInfo", "&", "DCI", ")", "const", "{", "SelectionDAG", "&", "DAG", "=", "DCI", ".", "DAG", ";", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "VECTOR_SHUFFLE", ":", "return", "PerformShuffleCombine", "(", "N", ",", "DAG", ",", "*", "this", ")", ";", "case", "ISD", "::", "SELECT", ":", "return", "PerformSELECTCombine", "(", "N", ",", "DAG", ",", "Subtarget", ")", ";", "case", "X86ISD", "::", "CMOV", ":", "return", "PerformCMOVCombine", "(", "N", ",", "DAG", ",", "DCI", ")", ";", "case", "ISD", "::", "MUL", ":", "return", "PerformMulCombine", "(", "N", ",", "DAG", ",", "DCI", ")", ";", "case", "ISD", "::", "SHL", ":", "case", "ISD", "::", "SRA", ":", "case", "ISD", "::", "SRL", ":", "return", "PerformShiftCombine", "(", "N", ",", "DAG", ",", "Subtarget", ")", ";", "case", "ISD", "::", "STORE", ":", "return", "PerformSTORECombine", "(", "N", ",", "DAG", ",", "Subtarget", ")", ";", "case", "X86ISD", "::", "FXOR", ":", "case", "X86ISD", "::", "FOR", ":", "return", "PerformFORCombine", "(", "N", ",", "DAG", ")", ";", "case", "X86ISD", "::", "FAND", ":", "return", "PerformFANDCombine", "(", "N", ",", "DAG", ")", ";", "case", "X86ISD", "::", "BT", ":", "return", "PerformBTCombine", "(", "N", ",", "DAG", ",", "DCI", ")", ";", "case", "X86ISD", "::", "VZEXT_MOVL", ":", "return", "PerformVZEXT_MOVLCombine", "(", "N", ",", "DAG", ")", ";", "case", "ISD", "::", "MEMBARRIER", ":", "return", "PerformMEMBARRIERCombine", "(", "N", ",", "DAG", ")", ";", "}", "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": ["X86", "X86", "ISD::VECTOR_SHUFFLE", "ISD::SELECT", "X86ISD::CMOV", "ISD::MUL", "ISD::SHL", "ISD::SRA", "ISD::SRL", "ISD::STORE", "X86ISD::FXOR", "X86ISD::FOR", "X86ISD::FAND", "X86ISD::BT", "X86ISD::VZEXT_MOVL", "ISD::MEMBARRIER"], "File": "X86ISelLowering94", "Func": "PerformDAGCombine", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2129, "Length": 216, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_darwin_file_start", "(", "void", ")", "{", "static", "const", "struct", "{", "const", "char", "*", "arg", ";", "const", "char", "*", "name", ";", "HOST_WIDE_INT", "if_set", ";", "}", "mapping", "[", "]", "=", "{", "{", "\"ppc64\"", ",", "\"ppc64\"", ",", "MASK_64BIT", "}", ",", "{", "\"970\"", ",", "\"ppc970\"", ",", "OPTION_MASK_PPC_GPOPT", "|", "OPTION_MASK_MFCRF", "\\", "|", "MASK_POWERPC64", "}", ",", "{", "\"power4\"", ",", "\"ppc970\"", ",", "0", "}", ",", "{", "\"G5\"", ",", "\"ppc970\"", ",", "0", "}", ",", "{", "\"7450\"", ",", "\"ppc7450\"", ",", "0", "}", ",", "{", "\"7400\"", ",", "\"ppc7400\"", ",", "OPTION_MASK_ALTIVEC", "}", ",", "{", "\"G4\"", ",", "\"ppc7400\"", ",", "0", "}", ",", "{", "\"750\"", ",", "\"ppc750\"", ",", "0", "}", ",", "{", "\"740\"", ",", "\"ppc750\"", ",", "0", "}", ",", "{", "\"G3\"", ",", "\"ppc750\"", ",", "0", "}", ",", "{", "\"604e\"", ",", "\"ppc604e\"", ",", "0", "}", ",", "{", "\"604\"", ",", "\"ppc604\"", ",", "0", "}", ",", "{", "\"603e\"", ",", "\"ppc603\"", ",", "0", "}", ",", "{", "\"603\"", ",", "\"ppc603\"", ",", "0", "}", ",", "{", "\"601\"", ",", "\"ppc601\"", ",", "0", "}", ",", "{", "NULL", ",", "\"ppc\"", ",", "0", "}", "}", ";", "const", "char", "*", "cpu_id", "=", "\"\"", ";", "size_t", "i", ";", "rs6000_file_start", "(", ")", ";", "darwin_file_start", "(", ")", ";", "if", "(", "rs6000_default_cpu", "!=", "0", "&&", "rs6000_default_cpu", "[", "0", "]", "!=", "'\\0'", ")", "cpu_id", "=", "rs6000_default_cpu", ";", "if", "(", "OPTION_SET_P", "(", "rs6000_cpu_index", ")", ")", "cpu_id", "=", "processor_target_table", "[", "rs6000_cpu_index", "]", ".", "name", ";", "i", "=", "0", ";", "while", "(", "mapping", "[", "i", "]", ".", "arg", "!=", "NULL", "&&", "strcmp", "(", "mapping", "[", "i", "]", ".", "arg", ",", "cpu_id", ")", "!=", "0", "&&", "(", "mapping", "[", "i", "]", ".", "if_set", "&", "rs6000_isa_flags", ")", "==", "0", ")", "i", "++", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t.machine %s\\n\"", ",", "mapping", "[", "i", "]", ".", "name", ")", ";", "}", ""], "natrual_language": ["Output", "a", ".machine", "directive", "for", "the", "Darwin", "assembler", ",", "and", "call", "the", "generic", "start_file", "routine", "."], "TS_V_token": ["rs6000", "\"ppc64\"", "\"ppc64\"", "\"970\"", "\"ppc970\"", "\"power4\"", "\"ppc970\"", "0", "\"G5\"", "\"ppc970\"", "0", "\"7450\"", "\"ppc7450\"", "0", "\"7400\"", "\"ppc7400\"", "\"G4\"", "\"ppc7400\"", "0", "\"750\"", "\"ppc750\"", "0", "\"740\"", "\"ppc750\"", "0", "\"G3\"", "\"ppc750\"", "0", "\"604e\"", "\"ppc604e\"", "0", "\"604\"", "\"ppc604\"", "0", "\"603e\"", "\"ppc603\"", "0", "\"603\"", "\"ppc603\"", "0", "\"601\"", "\"ppc601\"", "0", "\"ppc\"", "0", "\"\"", "0", "0", "0", "0", "0", "\"\\t.machine %s\\n\""], "File": "rs60001", "Func": "rs6000_darwin_file_start", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2130, "Length": 275, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isMem", "(", ")", "const", "{", "return", "isMEMrr", "(", ")", "||", "isMEMri", "(", ")", ";", "}", ""], "natrual_language": ["isMem", "-", "Is", "this", "a", "memory", "operand", "?"], "TS_V_token": ["Sparc"], "File": "SparcAsmParser11", "Func": "isMem", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2131, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "MipsTargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "Opcode", ")", "{", "case", "MipsISD", "::", "JmpLink", ":", "return", "\"MipsISD::JmpLink\"", ";", "case", "MipsISD", "::", "Hi", ":", "return", "\"MipsISD::Hi\"", ";", "case", "MipsISD", "::", "Lo", ":", "return", "\"MipsISD::Lo\"", ";", "case", "MipsISD", "::", "GPRel", ":", "return", "\"MipsISD::GPRel\"", ";", "case", "MipsISD", "::", "TlsGd", ":", "return", "\"MipsISD::TlsGd\"", ";", "case", "MipsISD", "::", "TprelHi", ":", "return", "\"MipsISD::TprelHi\"", ";", "case", "MipsISD", "::", "TprelLo", ":", "return", "\"MipsISD::TprelLo\"", ";", "case", "MipsISD", "::", "ThreadPointer", ":", "return", "\"MipsISD::ThreadPointer\"", ";", "case", "MipsISD", "::", "Ret", ":", "return", "\"MipsISD::Ret\"", ";", "case", "MipsISD", "::", "FPBrcond", ":", "return", "\"MipsISD::FPBrcond\"", ";", "case", "MipsISD", "::", "FPCmp", ":", "return", "\"MipsISD::FPCmp\"", ";", "case", "MipsISD", "::", "CMovFP_T", ":", "return", "\"MipsISD::CMovFP_T\"", ";", "case", "MipsISD", "::", "CMovFP_F", ":", "return", "\"MipsISD::CMovFP_F\"", ";", "case", "MipsISD", "::", "FPRound", ":", "return", "\"MipsISD::FPRound\"", ";", "case", "MipsISD", "::", "MAdd", ":", "return", "\"MipsISD::MAdd\"", ";", "case", "MipsISD", "::", "MAddu", ":", "return", "\"MipsISD::MAddu\"", ";", "case", "MipsISD", "::", "MSub", ":", "return", "\"MipsISD::MSub\"", ";", "case", "MipsISD", "::", "MSubu", ":", "return", "\"MipsISD::MSubu\"", ";", "case", "MipsISD", "::", "DivRem", ":", "return", "\"MipsISD::DivRem\"", ";", "case", "MipsISD", "::", "DivRemU", ":", "return", "\"MipsISD::DivRemU\"", ";", "case", "MipsISD", "::", "BuildPairF64", ":", "return", "\"MipsISD::BuildPairF64\"", ";", "case", "MipsISD", "::", "ExtractElementF64", ":", "return", "\"MipsISD::ExtractElementF64\"", ";", "case", "MipsISD", "::", "WrapperPIC", ":", "return", "\"MipsISD::WrapperPIC\"", ";", "case", "MipsISD", "::", "DynAlloc", ":", "return", "\"MipsISD::DynAlloc\"", ";", "case", "MipsISD", "::", "Sync", ":", "return", "\"MipsISD::Sync\"", ";", "case", "MipsISD", "::", "Ext", ":", "return", "\"MipsISD::Ext\"", ";", "case", "MipsISD", "::", "Ins", ":", "return", "\"MipsISD::Ins\"", ";", "default", ":", "return", "NULL", ";", "}", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["Mips", "Mips", "MipsISD::JmpLink", "\"MipsISD::JmpLink\"", "MipsISD::Hi", "\"MipsISD::Hi\"", "MipsISD::Lo", "\"MipsISD::Lo\"", "MipsISD::GPRel", "\"MipsISD::GPRel\"", "MipsISD::TlsGd", "\"MipsISD::TlsGd\"", "MipsISD::TprelHi", "\"MipsISD::TprelHi\"", "MipsISD::TprelLo", "\"MipsISD::TprelLo\"", "MipsISD::ThreadPointer", "\"MipsISD::ThreadPointer\"", "MipsISD::Ret", "\"MipsISD::Ret\"", "MipsISD::FPBrcond", "\"MipsISD::FPBrcond\"", "MipsISD::FPCmp", "\"MipsISD::FPCmp\"", "MipsISD::CMovFP_T", "\"MipsISD::CMovFP_T\"", "MipsISD::CMovFP_F", "\"MipsISD::CMovFP_F\"", "MipsISD::FPRound", "\"MipsISD::FPRound\"", "MipsISD::MAdd", "\"MipsISD::MAdd\"", "MipsISD::MAddu", "\"MipsISD::MAddu\"", "MipsISD::MSub", "\"MipsISD::MSub\"", "MipsISD::MSubu", "\"MipsISD::MSubu\"", "MipsISD::DivRem", "\"MipsISD::DivRem\"", "MipsISD::DivRemU", "\"MipsISD::DivRemU\"", "MipsISD::BuildPairF64", "\"MipsISD::BuildPairF64\"", "MipsISD::ExtractElementF64", "\"MipsISD::ExtractElementF64\"", "MipsISD::WrapperPIC", "\"MipsISD::WrapperPIC\"", "MipsISD::DynAlloc", "\"MipsISD::DynAlloc\"", "MipsISD::Sync", "\"MipsISD::Sync\"", "MipsISD::Ext", "\"MipsISD::Ext\"", "MipsISD::Ins", "\"MipsISD::Ins\""], "File": "MipsISelLowering109", "Func": "getTargetNodeName", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2132, "Length": 240, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "emit_final_str_compare_gpr", "(", "rtx", "str1", ",", "rtx", "str2", ",", "rtx", "result", ")", "{", "machine_mode", "m", "=", "GET_MODE", "(", "str1", ")", ";", "rtx", "rot_amt", "=", "gen_reg_rtx", "(", "m", ")", ";", "rtx", "rot1_1", "=", "gen_reg_rtx", "(", "m", ")", ";", "rtx", "rot1_2", "=", "gen_reg_rtx", "(", "m", ")", ";", "rtx", "rot2_1", "=", "gen_reg_rtx", "(", "m", ")", ";", "rtx", "rot2_2", "=", "gen_reg_rtx", "(", "m", ")", ";", "if", "(", "m", "==", "SImode", ")", "{", "emit_insn", "(", "gen_clzsi2", "(", "rot_amt", ",", "result", ")", ")", ";", "emit_insn", "(", "gen_addsi3", "(", "rot_amt", ",", "rot_amt", ",", "GEN_INT", "(", "8", ")", ")", ")", ";", "emit_insn", "(", "gen_rotlsi3", "(", "rot1_1", ",", "str1", ",", "gen_lowpart", "(", "SImode", ",", "rot_amt", ")", ")", ")", ";", "emit_insn", "(", "gen_andsi3_mask", "(", "rot1_2", ",", "rot1_1", ",", "GEN_INT", "(", "0xff", ")", ")", ")", ";", "emit_insn", "(", "gen_rotlsi3", "(", "rot2_1", ",", "str2", ",", "gen_lowpart", "(", "SImode", ",", "rot_amt", ")", ")", ")", ";", "emit_insn", "(", "gen_andsi3_mask", "(", "rot2_2", ",", "rot2_1", ",", "GEN_INT", "(", "0xff", ")", ")", ")", ";", "emit_insn", "(", "gen_subsi3", "(", "result", ",", "rot1_2", ",", "rot2_2", ")", ")", ";", "}", "else", "if", "(", "m", "==", "DImode", ")", "{", "emit_insn", "(", "gen_clzdi2", "(", "rot_amt", ",", "result", ")", ")", ";", "emit_insn", "(", "gen_adddi3", "(", "rot_amt", ",", "rot_amt", ",", "GEN_INT", "(", "8", ")", ")", ")", ";", "emit_insn", "(", "gen_rotldi3", "(", "rot1_1", ",", "str1", ",", "gen_lowpart", "(", "SImode", ",", "rot_amt", ")", ")", ")", ";", "emit_insn", "(", "gen_anddi3_mask", "(", "rot1_2", ",", "rot1_1", ",", "GEN_INT", "(", "0xff", ")", ")", ")", ";", "emit_insn", "(", "gen_rotldi3", "(", "rot2_1", ",", "str2", ",", "gen_lowpart", "(", "SImode", ",", "rot_amt", ")", ")", ")", ";", "emit_insn", "(", "gen_anddi3_mask", "(", "rot2_2", ",", "rot2_1", ",", "GEN_INT", "(", "0xff", ")", ")", ")", ";", "emit_insn", "(", "gen_subdi3", "(", "result", ",", "rot1_2", ",", "rot2_2", ")", ")", ";", "}", "else", "gcc_unreachable", "(", ")", ";", "return", ";", "}", ""], "natrual_language": ["Generate", "the", "final", "sequence", "that", "identifies", "the", "differing", "byte", "and", "generates", "the", "final", "result", ",", "taking", "into", "account", "zero", "bytes", ":", "cntlzd", "get", "bit", "of", "first", "zero/diff", "byte", "addi", "convert", "for", "rldcl", "use", "rldcl", "rldcl", "extract", "diff/zero", "byte", "subf", "subtract", "for", "final", "result", "STR1", "is", "the", "reg", "rtx", "for", "data", "from", "string", "1", ".", "STR2", "is", "the", "reg", "rtx", "for", "data", "from", "string", "2", ".", "RESULT", "is", "the", "reg", "rtx", "for", "the", "comparison", "result", "."], "TS_V_token": ["rs6000", "8", "0xff", "0xff", "8", "0xff", "0xff"], "File": "rs6000-string", "Func": "emit_final_str_compare_gpr", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2133, "Length": 289, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64PassConfig", "::", "addPreISel", "(", ")", "{", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "EnablePromoteConstant", ")", "addPass", "(", "createAArch64PromoteConstantPass", "(", ")", ")", ";", "if", "(", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "EnableGlobalMerge", "==", "cl", "::", "BOU_UNSET", ")", "||", "EnableGlobalMerge", "==", "cl", "::", "BOU_TRUE", ")", "{", "bool", "OnlyOptimizeForSize", "=", "(", "TM", "->", "getOptLevel", "(", ")", "<", "CodeGenOpt", "::", "Aggressive", ")", "&&", "(", "EnableGlobalMerge", "==", "cl", "::", "BOU_UNSET", ")", ";", "addPass", "(", "createGlobalMergePass", "(", "TM", ",", "4095", ",", "OnlyOptimizeForSize", ")", ")", ";", "}", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createAArch64AddressTypePromotionPass", "(", ")", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "EnableSVEPostVec", ")", "{", "addPass", "(", "createSVEAddressingModesPass", "(", ")", ")", ";", "addPass", "(", "createDeadCodeEliminationPass", "(", ")", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["{", "{", "@", "For", "GlobalISel"], "TS_V_token": ["AArch64", "AArch64", "AArch64", "4095", "AArch64"], "File": "AArch64TargetMachine52", "Func": "addPreISel", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2134, "Length": 144, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCDarwinAsmPrinter", "::", "doFinalization", "(", "Module", "&", "M", ")", "{", "bool", "isPPC64", "=", "getDataLayout", "(", ")", ".", "getPointerSizeInBits", "(", ")", "==", "64", ";", "const", "TargetLoweringObjectFileMachO", "&", "TLOFMacho", "=", "static_cast", "<", "const", "TargetLoweringObjectFileMachO", "&", ">", "(", "getObjFileLowering", "(", ")", ")", ";", "MachineModuleInfoMachO", "&", "MMIMacho", "=", "MMI", "->", "getObjFileInfo", "<", "MachineModuleInfoMachO", ">", "(", ")", ";", "MachineModuleInfoMachO", "::", "SymbolListTy", "Stubs", "=", "MMIMacho", ".", "GetFnStubList", "(", ")", ";", "if", "(", "!", "Stubs", ".", "empty", "(", ")", ")", "EmitFunctionStubs", "(", "Stubs", ")", ";", "if", "(", "MAI", "->", "doesSupportExceptionHandling", "(", ")", "&&", "MMI", ")", "{", "for", "(", "const", "Function", "*", "Personality", ":", "MMI", "->", "getPersonalities", "(", ")", ")", "{", "if", "(", "Personality", ")", "{", "MCSymbol", "*", "NLPSym", "=", "getSymbolWithGlobalValueBase", "(", "Personality", ",", "\"$non_lazy_ptr\"", ")", ";", "MachineModuleInfoImpl", "::", "StubValueTy", "&", "StubSym", "=", "MMIMacho", ".", "getGVStubEntry", "(", "NLPSym", ")", ";", "StubSym", "=", "MachineModuleInfoImpl", "::", "StubValueTy", "(", "getSymbol", "(", "Personality", ")", ",", "true", ")", ";", "}", "}", "}", "Stubs", "=", "MMIMacho", ".", "GetGVStubList", "(", ")", ";", "if", "(", "!", "Stubs", ".", "empty", "(", ")", ")", "{", "OutStreamer", "->", "SwitchSection", "(", "TLOFMacho", ".", "getNonLazySymbolPointerSection", "(", ")", ")", ";", "EmitAlignment", "(", "isPPC64", "?", "3", ":", "2", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "Stubs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "OutStreamer", "->", "EmitLabel", "(", "Stubs", "[", "i", "]", ".", "first", ")", ";", "MachineModuleInfoImpl", "::", "StubValueTy", "&", "MCSym", "=", "Stubs", "[", "i", "]", ".", "second", ";", "OutStreamer", "->", "EmitSymbolAttribute", "(", "MCSym", ".", "getPointer", "(", ")", ",", "MCSA_IndirectSymbol", ")", ";", "if", "(", "MCSym", ".", "getInt", "(", ")", ")", "OutStreamer", "->", "EmitIntValue", "(", "0", ",", "isPPC64", "?", "8", ":", "4", ")", ";", "else", "OutStreamer", "->", "EmitValue", "(", "MCSymbolRefExpr", "::", "create", "(", "MCSym", ".", "getPointer", "(", ")", ",", "OutContext", ")", ",", "isPPC64", "?", "8", ":", "4", ")", ";", "}", "Stubs", ".", "clear", "(", ")", ";", "OutStreamer", "->", "AddBlankLine", "(", ")", ";", "}", "OutStreamer", "->", "EmitAssemblerFlag", "(", "MCAF_SubsectionsViaSymbols", ")", ";", "return", "AsmPrinter", "::", "doFinalization", "(", "M", ")", ";", "}", ""], "natrual_language": ["doFinalization", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "any", "necessary", "clean", "up", "after", "all", "passes", "have", "run", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "64", "\"$non_lazy_ptr\"", "PPC", "3", "2", "0", "0", "PPC", "8", "4", "PPC", "8", "4"], "File": "PPCAsmPrinter110", "Func": "doFinalization", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2135, "Length": 324, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "MipsTargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", ",", "DebugLoc", "dl", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "getTargetMachine", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_Mips", ")", ";", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", "(", "1", ",", "Chain", ")", ";", "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", "(", ")", ")", ")", ";", "}", "if", "(", "DAG", ".", "getMachineFunction", "(", ")", ".", "getFunction", "(", ")", "->", "hasStructRetAttr", "(", ")", ")", "{", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "MipsFunctionInfo", "*", "MipsFI", "=", "MF", ".", "getInfo", "<", "MipsFunctionInfo", ">", "(", ")", ";", "unsigned", "Reg", "=", "MipsFI", "->", "getSRetReturnReg", "(", ")", ";", "if", "(", "!", "Reg", ")", "llvm_unreachable", "(", "\"sret virtual register not created in the entry block\"", ")", ";", "SDValue", "Val", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "dl", ",", "Reg", ",", "getPointerTy", "(", ")", ")", ";", "unsigned", "V0", "=", "IsN64", "?", "Mips", "::", "V0_64", ":", "Mips", "::", "V0", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "dl", ",", "V0", ",", "Val", ",", "Flag", ")", ";", "Flag", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "V0", ",", "getPointerTy", "(", ")", ")", ")", ";", "}", "RetOps", "[", "0", "]", "=", "Chain", ";", "if", "(", "Flag", ".", "getNode", "(", ")", ")", "RetOps", ".", "push_back", "(", "Flag", ")", ";", "return", "DAG", ".", "getNode", "(", "MipsISD", "::", "Ret", ",", "dl", ",", "MVT", "::", "Other", ",", "&", "RetOps", "[", "0", "]", ",", "RetOps", ".", "size", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["Mips", "Mips", "ISD::OutputArg", "16", "Mips", "4", "1", "0", "\"Can only return in registers!\"", "1", "Mips", "Mips", "Mips", "Mips", "\"sret virtual register not created in the entry block\"", "Mips::V0_64", "Mips::V0", "1", "0", "MipsISD::Ret", "MVT::Other", "0"], "File": "MipsISelLowering24", "Func": "LowerReturn", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2136, "Length": 382, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "convert_scalars_to_vector", "(", ")", "{", "basic_block", "bb", ";", "bitmap", "candidates", ";", "int", "converted_insns", "=", "0", ";", "bitmap_obstack_initialize", "(", "NULL", ")", ";", "candidates", "=", "BITMAP_ALLOC", "(", "NULL", ")", ";", "calculate_dominance_info", "(", "CDI_DOMINATORS", ")", ";", "df_set_flags", "(", "DF_DEFER_INSN_RESCAN", ")", ";", "df_chain_add_problem", "(", "DF_DU_CHAIN", "|", "DF_UD_CHAIN", ")", ";", "df_md_add_problem", "(", ")", ";", "df_analyze", "(", ")", ";", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"Searching for mode conversion candidates...\\n\"", ")", ";", "FOR_EACH_BB_FN", "(", "bb", ",", "cfun", ")", "{", "rtx_insn", "*", "insn", ";", "FOR_BB_INSNS", "(", "bb", ",", "insn", ")", "if", "(", "scalar_to_vector_candidate_p", "(", "insn", ")", ")", "{", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\" insn %d is marked as a candidate\\n\"", ",", "INSN_UID", "(", "insn", ")", ")", ";", "bitmap_set_bit", "(", "candidates", ",", "INSN_UID", "(", "insn", ")", ")", ";", "}", "}", "remove_non_convertible_regs", "(", "candidates", ")", ";", "if", "(", "bitmap_empty_p", "(", "candidates", ")", ")", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"There are no candidates for optimization.\\n\"", ")", ";", "while", "(", "!", "bitmap_empty_p", "(", "candidates", ")", ")", "{", "unsigned", "uid", "=", "bitmap_first_set_bit", "(", "candidates", ")", ";", "scalar_chain", "chain", ";", "chain", ".", "build", "(", "candidates", ",", "uid", ")", ";", "if", "(", "chain", ".", "compute_convert_gain", "(", ")", ">", "0", ")", "converted_insns", "+=", "chain", ".", "convert", "(", ")", ";", "else", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"Chain #%d conversion is not profitable\\n\"", ",", "chain", ".", "chain_id", ")", ";", "}", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"Total insns converted: %d\\n\"", ",", "converted_insns", ")", ";", "BITMAP_FREE", "(", "candidates", ")", ";", "bitmap_obstack_release", "(", "NULL", ")", ";", "df_process_deferred_rescans", "(", ")", ";", "if", "(", "converted_insns", ")", "{", "if", "(", "crtl", "->", "stack_alignment_needed", "<", "128", ")", "crtl", "->", "stack_alignment_needed", "=", "128", ";", "if", "(", "crtl", "->", "stack_alignment_estimated", "<", "128", ")", "crtl", "->", "stack_alignment_estimated", "=", "128", ";", "}", "return", "0", ";", "}", ""], "natrual_language": ["Main", "STV", "pass", "function", ".", "Find", "and", "convert", "scalar", "instructions", "into", "vector", "mode", "when", "profitable", "."], "TS_V_token": ["i386", "0", "\"Searching for mode conversion candidates...\\n\"", "\" insn %d is marked as a candidate\\n\"", "\"There are no candidates for optimization.\\n\"", "0", "\"Chain #%d conversion is not profitable\\n\"", "\"Total insns converted: %d\\n\"", "128", "128", "128", "128", "0"], "File": "i3865", "Func": "convert_scalars_to_vector", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2137, "Length": 271, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_return_in_memory", "(", "const_tree", "type", ",", "const_tree", "fndecl", "ATTRIBUTE_UNUSED", ")", "{", "pure_scalable_type_info", "pst_info", ";", "switch", "(", "pst_info", ".", "analyze", "(", "type", ")", ")", "{", "case", "pure_scalable_type_info", "::", "IS_PST", ":", "return", "(", "pst_info", ".", "num_zr", "(", ")", ">", "NUM_FP_ARG_REGS", "||", "pst_info", ".", "num_pr", "(", ")", ">", "NUM_PR_ARG_REGS", ")", ";", "case", "pure_scalable_type_info", "::", "DOESNT_MATTER", ":", "gcc_assert", "(", "aarch64_return_in_memory_1", "(", "type", ")", ")", ";", "return", "true", ";", "case", "pure_scalable_type_info", "::", "NO_ABI_IDENTITY", ":", "case", "pure_scalable_type_info", "::", "ISNT_PST", ":", "return", "aarch64_return_in_memory_1", "(", "type", ")", ";", "}", "gcc_unreachable", "(", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_RETURN_IN_MEMORY", ".", "If", "the", "type", "T", "of", "the", "result", "of", "a", "function", "is", "such", "that", "void", "func", "(", "T", "arg", ")", "would", "require", "that", "arg", "be", "passed", "as", "a", "value", "in", "a", "register", "(", "or", "set", "of", "registers", ")", "according", "to", "the", "parameter", "passing", "rules", ",", "then", "the", "result", "is", "returned", "in", "the", "same", "registers", "as", "would", "be", "used", "for", "such", "an", "argument", "."], "TS_V_token": ["aarch64"], "File": "aarch64", "Func": "aarch64_return_in_memory", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2138, "Length": 87, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "aarch64_struct_value_rtx", "(", "tree", "fndecl", "ATTRIBUTE_UNUSED", ",", "int", "incoming", "ATTRIBUTE_UNUSED", ")", "{", "return", "gen_rtx_REG", "(", "Pmode", ",", "AARCH64_STRUCT_VALUE_REGNUM", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_STRUCT_VALUE_RTX", "."], "TS_V_token": ["aarch64"], "File": "aarch64", "Func": "aarch64_struct_value_rtx", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2139, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "AArch64InstrInfo", "::", "getInstSizeInBytes", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "const", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "const", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "MCAsmInfo", "*", "MAI", "=", "MF", "->", "getTarget", "(", ")", ".", "getMCAsmInfo", "(", ")", ";", "{", "auto", "Op", "=", "MI", ".", "getOpcode", "(", ")", ";", "if", "(", "Op", "==", "AArch64", "::", "INLINEASM", "||", "Op", "==", "AArch64", "::", "INLINEASM_BR", ")", "return", "getInlineAsmLength", "(", "MI", ".", "getOperand", "(", "0", ")", ".", "getSymbolName", "(", ")", ",", "*", "MAI", ")", ";", "}", "if", "(", "MI", ".", "isMetaInstruction", "(", ")", ")", "return", "0", ";", "unsigned", "NumBytes", "=", "0", ";", "const", "MCInstrDesc", "&", "Desc", "=", "MI", ".", "getDesc", "(", ")", ";", "switch", "(", "Desc", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "NumBytes", "=", "4", ";", "break", ";", "case", "TargetOpcode", "::", "STACKMAP", ":", "NumBytes", "=", "StackMapOpers", "(", "&", "MI", ")", ".", "getNumPatchBytes", "(", ")", ";", "assert", "(", "NumBytes", "%", "4", "==", "0", "&&", "\"Invalid number of NOP bytes requested!\"", ")", ";", "break", ";", "case", "TargetOpcode", "::", "PATCHPOINT", ":", "NumBytes", "=", "PatchPointOpers", "(", "&", "MI", ")", ".", "getNumPatchBytes", "(", ")", ";", "assert", "(", "NumBytes", "%", "4", "==", "0", "&&", "\"Invalid number of NOP bytes requested!\"", ")", ";", "break", ";", "case", "AArch64", "::", "TLSDESC_CALLSEQ", ":", "NumBytes", "=", "16", ";", "break", ";", "case", "AArch64", "::", "JumpTableDest32", ":", "case", "AArch64", "::", "JumpTableDest16", ":", "case", "AArch64", "::", "JumpTableDest8", ":", "NumBytes", "=", "12", ";", "break", ";", "case", "AArch64", "::", "SPACE", ":", "NumBytes", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ";", "break", ";", "}", "return", "NumBytes", ";", "}", ""], "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": ["AArch64", "AArch64", "AArch64::INLINEASM", "AArch64::INLINEASM_BR", "0", "0", "0", "4", "4", "0", "\"Invalid number of NOP bytes requested!\"", "4", "0", "\"Invalid number of NOP bytes requested!\"", "AArch64::TLSDESC_CALLSEQ", "16", "AArch64::JumpTableDest32", "AArch64::JumpTableDest16", "AArch64::JumpTableDest8", "12", "AArch64::SPACE", "1"], "File": "AArch64InstrInfo104", "Func": "getInstSizeInBytes", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2140, "Length": 254, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ARMBaseTargetMachine", "::", "ARMBaseTargetMachine", "(", "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", "isLittle", ")", ":", "LLVMTargetMachine", "(", "T", ",", "computeDataLayout", "(", "TT", ",", "CPU", ",", "Options", ",", "isLittle", ")", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "getEffectiveRelocModel", "(", "TT", ",", "RM", ")", ",", "getEffectiveCodeModel", "(", "CM", ")", ",", "OL", ")", ",", "TargetABI", "(", "computeTargetABI", "(", "TT", ",", "CPU", ",", "Options", ")", ")", ",", "TLOF", "(", "createTLOF", "(", "getTargetTriple", "(", ")", ")", ")", ",", "isLittle", "(", "isLittle", ")", "{", "if", "(", "Options", ".", "FloatABIType", "==", "FloatABI", "::", "Default", ")", "{", "if", "(", "TargetTriple", ".", "getEnvironment", "(", ")", "==", "Triple", "::", "GNUEABIHF", "||", "TargetTriple", ".", "getEnvironment", "(", ")", "==", "Triple", "::", "MuslEABIHF", "||", "TargetTriple", ".", "getEnvironment", "(", ")", "==", "Triple", "::", "EABIHF", "||", "TargetTriple", ".", "isOSWindows", "(", ")", "||", "TargetABI", "==", "ARMBaseTargetMachine", "::", "ARM_ABI_AAPCS16", ")", "this", "->", "Options", ".", "FloatABIType", "=", "FloatABI", "::", "Hard", ";", "else", "this", "->", "Options", ".", "FloatABIType", "=", "FloatABI", "::", "Soft", ";", "}", "if", "(", "Options", ".", "EABIVersion", "==", "EABI", "::", "Default", "||", "Options", ".", "EABIVersion", "==", "EABI", "::", "Unknown", ")", "{", "if", "(", "(", "TargetTriple", ".", "getEnvironment", "(", ")", "==", "Triple", "::", "GNUEABI", "||", "TargetTriple", ".", "getEnvironment", "(", ")", "==", "Triple", "::", "GNUEABIHF", "||", "TargetTriple", ".", "getEnvironment", "(", ")", "==", "Triple", "::", "MuslEABI", "||", "TargetTriple", ".", "getEnvironment", "(", ")", "==", "Triple", "::", "MuslEABIHF", ")", "&&", "!", "(", "TargetTriple", ".", "isOSWindows", "(", ")", "||", "TargetTriple", ".", "isOSDarwin", "(", ")", ")", ")", "this", "->", "Options", ".", "EABIVersion", "=", "EABI", "::", "GNU", ";", "else", "this", "->", "Options", ".", "EABIVersion", "=", "EABI", "::", "EABI5", ";", "}", "if", "(", "TT", ".", "isOSBinFormatMachO", "(", ")", ")", "{", "this", "->", "Options", ".", "TrapUnreachable", "=", "true", ";", "this", "->", "Options", ".", "NoTrapAfterNoreturn", "=", "true", ";", "}", "initAsmInfo", "(", ")", ";", "}", ""], "natrual_language": ["Create", "an", "ARM", "architecture", "model", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM"], "File": "ARMTargetMachine70", "Func": "ARMBaseTargetMachine", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2141, "Length": 323, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "mips_find_pic_call_symbol", "(", "rtx_insn", "*", "insn", ",", "rtx", "reg", ",", "bool", "recurse_p", ")", "{", "df_ref", "use", ";", "struct", "df_link", "*", "defs", ";", "rtx", "symbol", ";", "use", "=", "df_find_use", "(", "insn", ",", "regno_reg_rtx", "[", "REGNO", "(", "reg", ")", "]", ")", ";", "if", "(", "!", "use", ")", "return", "NULL_RTX", ";", "defs", "=", "DF_REF_CHAIN", "(", "use", ")", ";", "if", "(", "!", "defs", ")", "return", "NULL_RTX", ";", "symbol", "=", "mips_pic_call_symbol_from_set", "(", "defs", "->", "ref", ",", "reg", ",", "recurse_p", ")", ";", "if", "(", "!", "symbol", ")", "return", "NULL_RTX", ";", "for", "(", "defs", "=", "defs", "->", "next", ";", "defs", ";", "defs", "=", "defs", "->", "next", ")", "{", "rtx", "other", ";", "other", "=", "mips_pic_call_symbol_from_set", "(", "defs", "->", "ref", ",", "reg", ",", "recurse_p", ")", ";", "if", "(", "!", "rtx_equal_p", "(", "symbol", ",", "other", ")", ")", "return", "NULL_RTX", ";", "}", "return", "symbol", ";", "}", ""], "natrual_language": ["Find", "the", "definition", "of", "the", "use", "of", "REG", "in", "INSN", ".", "See", "if", "the", "definition", "is", "one", "of", "the", "ways", "we", "load", "a", "register", "with", "a", "symbol", "address", "for", "a", "mips_use_pic_fn_addr_reg_p", "call", ".", "If", "it", "is", "return", "the", "symbol", "reference", "of", "the", "function", ",", "otherwise", "return", "NULL_RTX", ".", "RECURSE_P", "is", "as", "for", "mips_pic_call_symbol_from_set", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_find_pic_call_symbol", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2142, "Length": 136, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "dispatch_function_versions", "(", "tree", "dispatch_decl", ",", "void", "*", "fndecls_p", ",", "basic_block", "*", "empty_bb", ")", "{", "tree", "default_decl", ";", "gimple", "*", "ifunc_cpu_init_stmt", ";", "gimple_seq", "gseq", ";", "int", "ix", ";", "tree", "ele", ";", "vec", "<", "tree", ">", "*", "fndecls", ";", "unsigned", "int", "num_versions", "=", "0", ";", "unsigned", "int", "actual_versions", "=", "0", ";", "unsigned", "int", "i", ";", "struct", "_function_version_info", "{", "tree", "version_decl", ";", "tree", "predicate_chain", ";", "unsigned", "int", "dispatch_priority", ";", "}", "*", "function_version_info", ";", "gcc_assert", "(", "dispatch_decl", "!=", "NULL", "&&", "fndecls_p", "!=", "NULL", "&&", "empty_bb", "!=", "NULL", ")", ";", "fndecls", "=", "static_cast", "<", "vec", "<", "tree", ">", "*", ">", "(", "fndecls_p", ")", ";", "num_versions", "=", "fndecls", "->", "length", "(", ")", ";", "gcc_assert", "(", "num_versions", ">=", "2", ")", ";", "function_version_info", "=", "(", "struct", "_function_version_info", "*", ")", "XNEWVEC", "(", "struct", "_function_version_info", ",", "(", "num_versions", "-", "1", ")", ")", ";", "default_decl", "=", "(", "*", "fndecls", ")", "[", "0", "]", ";", "push_cfun", "(", "DECL_STRUCT_FUNCTION", "(", "dispatch_decl", ")", ")", ";", "gseq", "=", "bb_seq", "(", "*", "empty_bb", ")", ";", "ifunc_cpu_init_stmt", "=", "gimple_build_call_vec", "(", "get_ix86_builtin", "(", "IX86_BUILTIN_CPU_INIT", ")", ",", "vNULL", ")", ";", "gimple_seq_add_stmt", "(", "&", "gseq", ",", "ifunc_cpu_init_stmt", ")", ";", "gimple_set_bb", "(", "ifunc_cpu_init_stmt", ",", "*", "empty_bb", ")", ";", "set_bb_seq", "(", "*", "empty_bb", ",", "gseq", ")", ";", "pop_cfun", "(", ")", ";", "for", "(", "ix", "=", "1", ";", "fndecls", "->", "iterate", "(", "ix", ",", "&", "ele", ")", ";", "++", "ix", ")", "{", "tree", "version_decl", "=", "ele", ";", "tree", "predicate_chain", "=", "NULL_TREE", ";", "unsigned", "int", "priority", ";", "priority", "=", "get_builtin_code_for_version", "(", "version_decl", ",", "&", "predicate_chain", ")", ";", "if", "(", "predicate_chain", "==", "NULL_TREE", ")", "continue", ";", "function_version_info", "[", "actual_versions", "]", ".", "version_decl", "=", "version_decl", ";", "function_version_info", "[", "actual_versions", "]", ".", "predicate_chain", "=", "predicate_chain", ";", "function_version_info", "[", "actual_versions", "]", ".", "dispatch_priority", "=", "priority", ";", "actual_versions", "++", ";", "}", "qsort", "(", "function_version_info", ",", "actual_versions", ",", "sizeof", "(", "struct", "_function_version_info", ")", ",", "feature_compare", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "actual_versions", ";", "++", "i", ")", "*", "empty_bb", "=", "add_condition_to_bb", "(", "dispatch_decl", ",", "function_version_info", "[", "i", "]", ".", "version_decl", ",", "function_version_info", "[", "i", "]", ".", "predicate_chain", ",", "*", "empty_bb", ")", ";", "*", "empty_bb", "=", "add_condition_to_bb", "(", "dispatch_decl", ",", "default_decl", ",", "NULL", ",", "*", "empty_bb", ")", ";", "free", "(", "function_version_info", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["This", "function", "generates", "the", "dispatch", "function", "for", "multi-versioned", "functions", ".", "DISPATCH_DECL", "is", "the", "function", "which", "will", "contain", "the", "dispatch", "logic", ".", "FNDECLS", "are", "the", "function", "choices", "for", "dispatch", ",", "and", "is", "a", "tree", "chain", ".", "EMPTY_BB", "is", "the", "basic", "block", "pointer", "in", "DISPATCH_DECL", "in", "which", "the", "dispatch", "code", "is", "generated", "."], "TS_V_token": ["i386", "0", "0", "2", "1", "0", "1", "0", "0"], "File": "i386-features", "Func": "dispatch_function_versions", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2143, "Length": 361, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getTOCSaveOffset", "(", ")", "const", "{", "return", "TOCSaveOffset", ";", "}", ""], "natrual_language": ["getTOCSaveOffset", "-", "Return", "the", "previous", "frame", "offset", "to", "save", "the", "TOC", "register", "\ufffd", "?", "64-bit", "SVR4", "ABI", "only", "."], "TS_V_token": ["PowerPC"], "File": "PPCFrameLowering (2)", "Func": "getTOCSaveOffset", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2144, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64CallLowering", "::", "lowerFormalArguments", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "const", "Function", "::", "ArgumentListType", "&", "Args", ",", "const", "SmallVectorImpl", "<", "unsigned", ">", "&", "VRegs", ")", "const", "{", "MachineFunction", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "const", "Function", "&", "F", "=", "*", "MF", ".", "getFunction", "(", ")", ";", "SmallVector", "<", "CCValAssign", ",", "16", ">", "ArgLocs", ";", "CCState", "CCInfo", "(", "F", ".", "getCallingConv", "(", ")", ",", "F", ".", "isVarArg", "(", ")", ",", "MF", ",", "ArgLocs", ",", "F", ".", "getContext", "(", ")", ")", ";", "unsigned", "NumArgs", "=", "Args", ".", "size", "(", ")", ";", "Function", "::", "const_arg_iterator", "CurOrigArg", "=", "Args", ".", "begin", "(", ")", ";", "const", "AArch64TargetLowering", "&", "TLI", "=", "*", "getTLI", "<", "AArch64TargetLowering", ">", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "NumArgs", ";", "++", "i", ",", "++", "CurOrigArg", ")", "{", "MVT", "ValVT", "=", "MVT", "::", "getVT", "(", "CurOrigArg", "->", "getType", "(", ")", ")", ";", "CCAssignFn", "*", "AssignFn", "=", "TLI", ".", "CCAssignFnForCall", "(", "F", ".", "getCallingConv", "(", ")", ",", "false", ")", ";", "bool", "Res", "=", "AssignFn", "(", "i", ",", "ValVT", ",", "ValVT", ",", "CCValAssign", "::", "Full", ",", "ISD", "::", "ArgFlagsTy", "(", ")", ",", "CCInfo", ")", ";", "assert", "(", "!", "Res", "&&", "\"Call operand has unhandled type\"", ")", ";", "(", "void", ")", "Res", ";", "}", "assert", "(", "ArgLocs", ".", "size", "(", ")", "==", "Args", ".", "size", "(", ")", "&&", "\"We have a different number of location and args?!\"", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "ArgLocs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "ArgLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Not yet implemented\"", ")", ";", "MIRBuilder", ".", "getMBB", "(", ")", ".", "addLiveIn", "(", "VA", ".", "getLocReg", "(", ")", ")", ";", "MIRBuilder", ".", "buildCopy", "(", "VRegs", "[", "i", "]", ",", "VA", ".", "getLocReg", "(", ")", ")", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown loc info!\"", ")", ";", "case", "CCValAssign", "::", "Full", ":", "break", ";", "case", "CCValAssign", "::", "BCvt", ":", "break", ";", "case", "CCValAssign", "::", "AExt", ":", "case", "CCValAssign", "::", "SExt", ":", "case", "CCValAssign", "::", "ZExt", ":", "assert", "(", "0", "&&", "\"Not yet implemented\"", ")", ";", "break", ";", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "the", "incoming", "(", "formal", ")", "arguments", ",", "described", "by", "VRegs", ",", "for", "GlobalISel", "."], "TS_V_token": ["AArch64", "AArch64", "16", "AArch64", "AArch64", "0", "MVT::getVT", "ISD::ArgFlagsTy", "\"Call operand has unhandled type\"", "\"We have a different number of location and args?!\"", "0", "\"Not yet implemented\"", "\"Unknown loc info!\"", "0", "\"Not yet implemented\""], "File": "AArch64CallLowering3", "Func": "lowerFormalArguments", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2145, "Length": 353, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsSETargetLowering", "::", "addMSAIntType", "(", "MVT", "::", "SimpleValueType", "Ty", ",", "const", "TargetRegisterClass", "*", "RC", ")", "{", "addRegisterClass", "(", "Ty", ",", "RC", ")", ";", "for", "(", "unsigned", "Opc", "=", "0", ";", "Opc", "<", "ISD", "::", "BUILTIN_OP_END", ";", "++", "Opc", ")", "setOperationAction", "(", "Opc", ",", "Ty", ",", "Expand", ")", ";", "setOperationAction", "(", "ISD", "::", "BITCAST", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "LOAD", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "STORE", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "EXTRACT_VECTOR_ELT", ",", "Ty", ",", "Custom", ")", ";", "setOperationAction", "(", "ISD", "::", "INSERT_VECTOR_ELT", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "BUILD_VECTOR", ",", "Ty", ",", "Custom", ")", ";", "setOperationAction", "(", "ISD", "::", "ADD", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "AND", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "CTLZ", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "CTPOP", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "MUL", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "OR", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "SDIV", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "SREM", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "SHL", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "SRA", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "SRL", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "SUB", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "UDIV", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "UREM", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "VECTOR_SHUFFLE", ",", "Ty", ",", "Custom", ")", ";", "setOperationAction", "(", "ISD", "::", "VSELECT", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "XOR", ",", "Ty", ",", "Legal", ")", ";", "if", "(", "Ty", "==", "MVT", "::", "v4i32", "||", "Ty", "==", "MVT", "::", "v2i64", ")", "{", "setOperationAction", "(", "ISD", "::", "FP_TO_SINT", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "FP_TO_UINT", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "SINT_TO_FP", ",", "Ty", ",", "Legal", ")", ";", "setOperationAction", "(", "ISD", "::", "UINT_TO_FP", ",", "Ty", ",", "Legal", ")", ";", "}", "setOperationAction", "(", "ISD", "::", "SETCC", ",", "Ty", ",", "Legal", ")", ";", "setCondCodeAction", "(", "ISD", "::", "SETNE", ",", "Ty", ",", "Expand", ")", ";", "setCondCodeAction", "(", "ISD", "::", "SETGE", ",", "Ty", ",", "Expand", ")", ";", "setCondCodeAction", "(", "ISD", "::", "SETGT", ",", "Ty", ",", "Expand", ")", ";", "setCondCodeAction", "(", "ISD", "::", "SETUGE", ",", "Ty", ",", "Expand", ")", ";", "setCondCodeAction", "(", "ISD", "::", "SETUGT", ",", "Ty", ",", "Expand", ")", ";", "}", ""], "natrual_language": ["Enable", "MSA", "support", "for", "the", "given", "integer", "type", "and", "Register", "class", "."], "TS_V_token": ["Mips", "Mips", "MVT::SimpleValueType", "0", "ISD::BUILTIN_OP_END", "ISD::BITCAST", "ISD::LOAD", "ISD::STORE", "ISD::EXTRACT_VECTOR_ELT", "ISD::INSERT_VECTOR_ELT", "ISD::BUILD_VECTOR", "ISD::ADD", "ISD::AND", "ISD::CTLZ", "ISD::CTPOP", "ISD::MUL", "ISD::OR", "ISD::SDIV", "ISD::SREM", "ISD::SHL", "ISD::SRA", "ISD::SRL", "ISD::SUB", "ISD::UDIV", "ISD::UREM", "ISD::VECTOR_SHUFFLE", "ISD::VSELECT", "ISD::XOR", "MVT::v4i32", "MVT::v2i64", "ISD::FP_TO_SINT", "ISD::FP_TO_UINT", "ISD::SINT_TO_FP", "ISD::UINT_TO_FP", "ISD::SETCC", "ISD::SETNE", "ISD::SETGE", "ISD::SETGT", "ISD::SETUGE", "ISD::SETUGT"], "File": "MipsSEISelLowering (2)", "Func": "addMSAIntType", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2146, "Length": 428, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "sh_hard_regno_mode_ok", "(", "unsigned", "int", "regno", ",", "machine_mode", "mode", ")", "{", "if", "(", "SPECIAL_REGISTER_P", "(", "regno", ")", ")", "return", "mode", "==", "SImode", ";", "if", "(", "regno", "==", "FPUL_REG", ")", "return", "(", "mode", "==", "SImode", "||", "mode", "==", "SFmode", ")", ";", "if", "(", "FP_REGISTER_P", "(", "regno", ")", "&&", "mode", "==", "SFmode", ")", "return", "true", ";", "if", "(", "mode", "==", "V2SFmode", ")", "{", "if", "(", "(", "(", "FP_REGISTER_P", "(", "regno", ")", "&&", "(", "regno", "-", "FIRST_FP_REG", ")", "%", "2", "==", "0", ")", "||", "GENERAL_REGISTER_P", "(", "regno", ")", ")", ")", "return", "true", ";", "else", "return", "false", ";", "}", "if", "(", "mode", "==", "V4SFmode", ")", "{", "if", "(", "(", "FP_REGISTER_P", "(", "regno", ")", "&&", "(", "regno", "-", "FIRST_FP_REG", ")", "%", "4", "==", "0", ")", "||", "GENERAL_REGISTER_P", "(", "regno", ")", ")", "return", "true", ";", "else", "return", "false", ";", "}", "if", "(", "mode", "==", "V16SFmode", ")", "return", "regno", "==", "FIRST_XD_REG", ";", "if", "(", "FP_REGISTER_P", "(", "regno", ")", ")", "{", "if", "(", "mode", "==", "SFmode", "||", "mode", "==", "SImode", "||", "(", "(", "TARGET_SH2E", ")", "&&", "mode", "==", "SCmode", ")", "||", "(", "(", "(", "TARGET_FPU_DOUBLE", "&&", "mode", "==", "DFmode", ")", "||", "mode", "==", "DCmode", ")", "&&", "(", "(", "regno", "-", "FIRST_FP_REG", ")", "&", "1", ")", "==", "0", ")", "||", "(", "TARGET_SH4", "&&", "mode", "==", "TImode", "&&", "(", "(", "regno", "-", "FIRST_FP_REG", ")", "&", "3", ")", "==", "0", ")", ")", "return", "true", ";", "else", "return", "false", ";", "}", "if", "(", "XD_REGISTER_P", "(", "regno", ")", ")", "return", "mode", "==", "DFmode", ";", "if", "(", "regno", "==", "PR_REG", ")", "return", "mode", "==", "SImode", ";", "if", "(", "regno", "==", "FPSCR_REG", ")", "return", "mode", "==", "SImode", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "hard", "register", "REGNO", "can", "hold", "a", "value", "of", "machine-mode", "MODE", ".", "We", "can", "allow", "any", "mode", "in", "any", "general", "register", ".", "The", "special", "registers", "only", "allow", "SImode", ".", "Do", "n't", "allow", "any", "mode", "in", "the", "PR", ".", "We", "can", "not", "hold", "DCmode", "values", "in", "the", "XD", "registers", "because", "alter_reg", "handles", "subregs", "of", "them", "incorrectly", ".", "We", "could", "work", "around", "this", "by", "spacing", "the", "XD", "registers", "like", "the", "DR", "registers", ",", "but", "this", "would", "require", "additional", "memory", "in", "every", "compilation", "to", "hold", "larger", "register", "vectors", ".", "We", "could", "hold", "SFmode", "/", "SCmode", "values", "in", "XD", "registers", ",", "but", "that", "would", "require", "a", "tertiary", "reload", "when", "reloading", "from", "/", "to", "memory", ",", "and", "a", "secondary", "reload", "to", "reload", "from", "/", "to", "general", "regs", ";", "that", "seems", "to", "be", "a", "losing", "proposition", ".", "We", "want", "to", "allow", "TImode", "FP", "regs", "so", "that", "when", "V4SFmode", "is", "loaded", "as", "TImode", ",", "it", "wo", "n't", "be", "ferried", "through", "GP", "registers", "first", "."], "TS_V_token": ["sh", "2", "0", "4", "0", "1", "0", "3", "0"], "File": "sh6", "Func": "sh_hard_regno_mode_ok", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2147, "Length": 267, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCDarwinAsmPrinter", "::", "doFinalization", "(", "Module", "&", "M", ")", "{", "bool", "isPPC64", "=", "getDataLayout", "(", ")", ".", "getPointerSizeInBits", "(", ")", "==", "64", ";", "const", "TargetLoweringObjectFileMachO", "&", "TLOFMacho", "=", "static_cast", "<", "const", "TargetLoweringObjectFileMachO", "&", ">", "(", "getObjFileLowering", "(", ")", ")", ";", "MachineModuleInfoMachO", "&", "MMIMacho", "=", "MMI", "->", "getObjFileInfo", "<", "MachineModuleInfoMachO", ">", "(", ")", ";", "MachineModuleInfoMachO", "::", "SymbolListTy", "Stubs", "=", "MMIMacho", ".", "GetFnStubList", "(", ")", ";", "if", "(", "!", "Stubs", ".", "empty", "(", ")", ")", "EmitFunctionStubs", "(", "Stubs", ")", ";", "if", "(", "MAI", "->", "doesSupportExceptionHandling", "(", ")", "&&", "MMI", ")", "{", "for", "(", "const", "Function", "*", "Personality", ":", "MMI", "->", "getPersonalities", "(", ")", ")", "{", "if", "(", "Personality", ")", "{", "MCSymbol", "*", "NLPSym", "=", "getSymbolWithGlobalValueBase", "(", "Personality", ",", "\"$non_lazy_ptr\"", ")", ";", "MachineModuleInfoImpl", "::", "StubValueTy", "&", "StubSym", "=", "MMIMacho", ".", "getGVStubEntry", "(", "NLPSym", ")", ";", "StubSym", "=", "MachineModuleInfoImpl", "::", "StubValueTy", "(", "getSymbol", "(", "Personality", ")", ",", "true", ")", ";", "}", "}", "}", "Stubs", "=", "MMIMacho", ".", "GetGVStubList", "(", ")", ";", "if", "(", "!", "Stubs", ".", "empty", "(", ")", ")", "{", "OutStreamer", "->", "SwitchSection", "(", "TLOFMacho", ".", "getNonLazySymbolPointerSection", "(", ")", ")", ";", "EmitAlignment", "(", "isPPC64", "?", "3", ":", "2", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "Stubs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "OutStreamer", "->", "EmitLabel", "(", "Stubs", "[", "i", "]", ".", "first", ")", ";", "MachineModuleInfoImpl", "::", "StubValueTy", "&", "MCSym", "=", "Stubs", "[", "i", "]", ".", "second", ";", "OutStreamer", "->", "EmitSymbolAttribute", "(", "MCSym", ".", "getPointer", "(", ")", ",", "MCSA_IndirectSymbol", ")", ";", "if", "(", "MCSym", ".", "getInt", "(", ")", ")", "OutStreamer", "->", "EmitIntValue", "(", "0", ",", "isPPC64", "?", "8", ":", "4", ")", ";", "else", "OutStreamer", "->", "EmitValue", "(", "MCSymbolRefExpr", "::", "create", "(", "MCSym", ".", "getPointer", "(", ")", ",", "OutContext", ")", ",", "isPPC64", "?", "8", ":", "4", ")", ";", "}", "Stubs", ".", "clear", "(", ")", ";", "OutStreamer", "->", "AddBlankLine", "(", ")", ";", "}", "Stubs", "=", "MMIMacho", ".", "GetHiddenGVStubList", "(", ")", ";", "if", "(", "!", "Stubs", ".", "empty", "(", ")", ")", "{", "OutStreamer", "->", "SwitchSection", "(", "getObjFileLowering", "(", ")", ".", "getDataSection", "(", ")", ")", ";", "EmitAlignment", "(", "isPPC64", "?", "3", ":", "2", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "Stubs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "OutStreamer", "->", "EmitLabel", "(", "Stubs", "[", "i", "]", ".", "first", ")", ";", "OutStreamer", "->", "EmitValue", "(", "MCSymbolRefExpr", "::", "create", "(", "Stubs", "[", "i", "]", ".", "second", ".", "getPointer", "(", ")", ",", "OutContext", ")", ",", "isPPC64", "?", "8", ":", "4", ")", ";", "}", "Stubs", ".", "clear", "(", ")", ";", "OutStreamer", "->", "AddBlankLine", "(", ")", ";", "}", "OutStreamer", "->", "EmitAssemblerFlag", "(", "MCAF_SubsectionsViaSymbols", ")", ";", "return", "AsmPrinter", "::", "doFinalization", "(", "M", ")", ";", "}", ""], "natrual_language": ["doFinalization", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "any", "necessary", "clean", "up", "after", "all", "passes", "have", "run", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "64", "\"$non_lazy_ptr\"", "PPC", "3", "2", "0", "0", "PPC", "8", "4", "PPC", "8", "4", "PPC", "3", "2", "0", "PPC", "8", "4"], "File": "PPCAsmPrinter (2)5", "Func": "doFinalization", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2148, "Length": 442, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "rest_of_insert_bti", "(", "void", ")", "{", "timevar_push", "(", "TV_MACH_DEP", ")", ";", "rtx", "bti_insn", ";", "rtx_insn", "*", "insn", ";", "basic_block", "bb", ";", "if", "(", "!", "cgraph_node", "::", "get", "(", "cfun", "->", "decl", ")", "->", "only_called_directly_p", "(", ")", ")", "{", "bb", "=", "ENTRY_BLOCK_PTR_FOR_FN", "(", "cfun", ")", "->", "next_bb", ";", "insn", "=", "BB_HEAD", "(", "bb", ")", ";", "if", "(", "!", "aarch64_pac_insn_p", "(", "get_first_nonnote_insn", "(", ")", ")", ")", "{", "bti_insn", "=", "gen_bti_c", "(", ")", ";", "emit_insn_before", "(", "bti_insn", ",", "insn", ")", ";", "}", "}", "bb", "=", "0", ";", "FOR_EACH_BB_FN", "(", "bb", ",", "cfun", ")", "{", "for", "(", "insn", "=", "BB_HEAD", "(", "bb", ")", ";", "insn", "!=", "NEXT_INSN", "(", "BB_END", "(", "bb", ")", ")", ";", "insn", "=", "NEXT_INSN", "(", "insn", ")", ")", "{", "if", "(", "(", "LABEL_P", "(", "insn", ")", "&&", "(", "LABEL_PRESERVE_P", "(", "insn", ")", "||", "bb", "->", "flags", "&", "BB_NON_LOCAL_GOTO_TARGET", ")", ")", "||", "(", "NOTE_P", "(", "insn", ")", "&&", "NOTE_KIND", "(", "insn", ")", "==", "NOTE_INSN_DELETED_LABEL", ")", ")", "{", "bti_insn", "=", "gen_bti_j", "(", ")", ";", "emit_insn_after", "(", "bti_insn", ",", "insn", ")", ";", "continue", ";", "}", "if", "(", "JUMP_P", "(", "insn", ")", ")", "{", "rtx_jump_table_data", "*", "table", ";", "if", "(", "tablejump_p", "(", "insn", ",", "NULL", ",", "&", "table", ")", ")", "{", "rtvec", "vec", "=", "table", "->", "get_labels", "(", ")", ";", "int", "j", ";", "rtx_insn", "*", "label", ";", "for", "(", "j", "=", "GET_NUM_ELEM", "(", "vec", ")", "-", "1", ";", "j", ">=", "0", ";", "--", "j", ")", "{", "label", "=", "as_a", "<", "rtx_insn", "*", ">", "(", "XEXP", "(", "RTVEC_ELT", "(", "vec", ",", "j", ")", ",", "0", ")", ")", ";", "bti_insn", "=", "gen_bti_j", "(", ")", ";", "emit_insn_after", "(", "bti_insn", ",", "label", ")", ";", "}", "}", "}", "if", "(", "CALL_P", "(", "insn", ")", "&&", "(", "find_reg_note", "(", "insn", ",", "REG_SETJMP", ",", "NULL", ")", ")", ")", "{", "bti_insn", "=", "gen_bti_j", "(", ")", ";", "emit_insn_after", "(", "bti_insn", ",", "insn", ")", ";", "continue", ";", "}", "}", "}", "timevar_pop", "(", "TV_MACH_DEP", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["This", "is", "implemented", "as", "a", "late", "RTL", "pass", "that", "runs", "before", "branch", "shortening", "and", "does", "the", "following", "."], "TS_V_token": ["aarch64", "0", "1", "0", "0", "0"], "File": "aarch64-bti-insert2", "Func": "rest_of_insert_bti", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2149, "Length": 316, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "ix86_generate_version_dispatcher_body", "(", "void", "*", "node_p", ")", "{", "tree", "resolver_decl", ";", "basic_block", "empty_bb", ";", "tree", "default_ver_decl", ";", "struct", "cgraph_node", "*", "versn", ";", "struct", "cgraph_node", "*", "node", ";", "struct", "cgraph_function_version_info", "*", "node_version_info", "=", "NULL", ";", "struct", "cgraph_function_version_info", "*", "versn_info", "=", "NULL", ";", "node", "=", "(", "cgraph_node", "*", ")", "node_p", ";", "node_version_info", "=", "node", "->", "function_version", "(", ")", ";", "gcc_assert", "(", "node", "->", "dispatcher_function", "&&", "node_version_info", "!=", "NULL", ")", ";", "if", "(", "node_version_info", "->", "dispatcher_resolver", ")", "return", "node_version_info", "->", "dispatcher_resolver", ";", "default_ver_decl", "=", "node_version_info", "->", "next", "->", "this_node", "->", "decl", ";", "node", "->", "definition", "=", "false", ";", "resolver_decl", "=", "make_resolver_func", "(", "default_ver_decl", ",", "node", "->", "decl", ",", "&", "empty_bb", ")", ";", "node_version_info", "->", "dispatcher_resolver", "=", "resolver_decl", ";", "push_cfun", "(", "DECL_STRUCT_FUNCTION", "(", "resolver_decl", ")", ")", ";", "auto_vec", "<", "tree", ",", "2", ">", "fn_ver_vec", ";", "for", "(", "versn_info", "=", "node_version_info", "->", "next", ";", "versn_info", ";", "versn_info", "=", "versn_info", "->", "next", ")", "{", "versn", "=", "versn_info", "->", "this_node", ";", "if", "(", "DECL_VINDEX", "(", "versn", "->", "decl", ")", ")", "sorry", "(", "\"virtual function multiversioning not supported\"", ")", ";", "fn_ver_vec", ".", "safe_push", "(", "versn", "->", "decl", ")", ";", "}", "dispatch_function_versions", "(", "resolver_decl", ",", "&", "fn_ver_vec", ",", "&", "empty_bb", ")", ";", "cgraph_edge", "::", "rebuild_edges", "(", ")", ";", "pop_cfun", "(", ")", ";", "return", "resolver_decl", ";", "}", ""], "natrual_language": ["Generate", "the", "dispatching", "code", "body", "to", "dispatch", "multi-versioned", "function", "DECL", ".", "The", "target", "hook", "is", "called", "to", "process", "the", "``", "target", "''", "attributes", "and", "provide", "the", "code", "to", "dispatch", "the", "right", "function", "at", "run-time", ".", "NODE", "points", "to", "the", "dispatcher", "decl", "whose", "body", "will", "be", "created", "."], "TS_V_token": ["i386", "2", "\"virtual function multiversioning not supported\""], "File": "i3868", "Func": "ix86_generate_version_dispatcher_body", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2150, "Length": 204, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "PPCSubtarget", "*", "PPCTargetMachine", "::", "getSubtargetImpl", "(", "const", "Function", "&", "F", ")", "const", "{", "Attribute", "CPUAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-cpu\"", ")", ";", "Attribute", "FSAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-features\"", ")", ";", "std", "::", "string", "CPU", "=", "!", "CPUAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "CPUAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetCPU", ";", "std", "::", "string", "FS", "=", "!", "FSAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "FSAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetFS", ";", "auto", "&", "I", "=", "SubtargetMap", "[", "CPU", "+", "FS", "]", ";", "if", "(", "!", "I", ")", "{", "resetTargetOptions", "(", "F", ")", ";", "I", "=", "llvm", "::", "make_unique", "<", "PPCSubtarget", ">", "(", "TargetTriple", ",", "CPU", ",", "computeFSAdditions", "(", "FS", ",", "getOptLevel", "(", ")", ",", "getTargetTriple", "(", ")", ")", ",", "*", "this", ")", ";", "}", "return", "I", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "\"target-cpu\"", "\"target-features\"", "PPC"], "File": "PPCTargetMachine32", "Func": "getSubtargetImpl", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2151, "Length": 149, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "ix86_get_drap_rtx", "(", "void", ")", "{", "if", "(", "ix86_force_drap", "||", "(", "(", "cfun", "->", "machine", "->", "outgoing_args_on_stack", "||", "crtl", "->", "sp_is_clobbered_by_asm", ")", "&&", "!", "ACCUMULATE_OUTGOING_ARGS", ")", ")", "crtl", "->", "need_drap", "=", "true", ";", "if", "(", "stack_realign_drap", ")", "{", "unsigned", "int", "regno", "=", "find_drap_reg", "(", ")", ";", "rtx", "drap_vreg", ";", "rtx", "arg_ptr", ";", "rtx_insn", "*", "seq", ",", "*", "insn", ";", "arg_ptr", "=", "gen_rtx_REG", "(", "Pmode", ",", "regno", ")", ";", "crtl", "->", "drap_reg", "=", "arg_ptr", ";", "start_sequence", "(", ")", ";", "drap_vreg", "=", "copy_to_reg", "(", "arg_ptr", ")", ";", "seq", "=", "get_insns", "(", ")", ";", "end_sequence", "(", ")", ";", "insn", "=", "emit_insn_before", "(", "seq", ",", "NEXT_INSN", "(", "entry_of_function", "(", ")", ")", ")", ";", "if", "(", "!", "optimize", ")", "{", "add_reg_note", "(", "insn", ",", "REG_CFA_SET_VDRAP", ",", "drap_vreg", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "return", "drap_vreg", ";", "}", "else", "return", "NULL", ";", "}", ""], "natrual_language": ["Handle", "the", "TARGET_GET_DRAP_RTX", "hook", ".", "Return", "NULL", "if", "no", "DRAP", "is", "needed", "or", "an", "rtx", "for", "DRAP", "otherwise", "."], "TS_V_token": ["i386", "1"], "File": "i386", "Func": "ix86_get_drap_rtx", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2152, "Length": 142, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "*", "cygwin_gt_pch_get_address", "(", "size_t", "sz", ",", "int", "fd", ")", "{", "void", "*", "base", ";", "off_t", "p", "=", "lseek", "(", "fd", ",", "0", ",", "SEEK_CUR", ")", ";", "if", "(", "p", "==", "(", "off_t", ")", "-", "1", ")", "fatal_error", "(", "input_location", ",", "\"cannot get position in PCH file: %m\"", ")", ";", "if", "(", "(", "size_t", ")", "p", "<", "sz", ")", "{", "if", "(", "ftruncate", "(", "fd", ",", "sz", ")", "==", "-", "1", ")", "fatal_error", "(", "input_location", ",", "\"cannot extend PCH file: %m\"", ")", ";", "}", "base", "=", "mmap", "(", "NULL", ",", "sz", ",", "PROT_READ", "|", "PROT_WRITE", ",", "MAP_PRIVATE", ",", "fd", ",", "0", ")", ";", "if", "(", "base", "==", "MAP_FAILED", ")", "base", "=", "NULL", ";", "else", "munmap", "(", "base", ",", "sz", ")", ";", "if", "(", "lseek", "(", "fd", ",", "p", ",", "SEEK_SET", ")", "==", "(", "off_t", ")", "-", "1", ")", "fatal_error", "(", "input_location", ",", "\"cannot set position in PCH file: %m\"", ")", ";", "return", "base", ";", "}", ""], "natrual_language": ["Identify", "an", "address", "that", "'s", "likely", "to", "be", "free", "in", "a", "subsequent", "invocation", "of", "the", "compiler", ".", "The", "area", "should", "be", "able", "to", "hold", "SIZE", "bytes", ".", "FD", "is", "an", "open", "file", "descriptor", "if", "the", "host", "would", "like", "to", "probe", "with", "mmap", "."], "TS_V_token": ["i386", "0", "1", "\"cannot get position in PCH file: %m\"", "1", "\"cannot extend PCH file: %m\"", "0", "1", "\"cannot set position in PCH file: %m\""], "File": "host-cygwin", "Func": "cygwin_gt_pch_get_address", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2153, "Length": 140, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "SystemZTargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "Opcode", ")", "{", "OPCODE", "(", "RET_FLAG", ")", ";", "OPCODE", "(", "CALL", ")", ";", "OPCODE", "(", "SIBCALL", ")", ";", "OPCODE", "(", "PCREL_WRAPPER", ")", ";", "OPCODE", "(", "PCREL_OFFSET", ")", ";", "OPCODE", "(", "ICMP", ")", ";", "OPCODE", "(", "FCMP", ")", ";", "OPCODE", "(", "TM", ")", ";", "OPCODE", "(", "BR_CCMASK", ")", ";", "OPCODE", "(", "SELECT_CCMASK", ")", ";", "OPCODE", "(", "ADJDYNALLOC", ")", ";", "OPCODE", "(", "EXTRACT_ACCESS", ")", ";", "OPCODE", "(", "UMUL_LOHI64", ")", ";", "OPCODE", "(", "SDIVREM64", ")", ";", "OPCODE", "(", "UDIVREM32", ")", ";", "OPCODE", "(", "UDIVREM64", ")", ";", "OPCODE", "(", "MVC", ")", ";", "OPCODE", "(", "MVC_LOOP", ")", ";", "OPCODE", "(", "NC", ")", ";", "OPCODE", "(", "NC_LOOP", ")", ";", "OPCODE", "(", "OC", ")", ";", "OPCODE", "(", "OC_LOOP", ")", ";", "OPCODE", "(", "XC", ")", ";", "OPCODE", "(", "XC_LOOP", ")", ";", "OPCODE", "(", "CLC", ")", ";", "OPCODE", "(", "CLC_LOOP", ")", ";", "OPCODE", "(", "STRCMP", ")", ";", "OPCODE", "(", "STPCPY", ")", ";", "OPCODE", "(", "SEARCH_STRING", ")", ";", "OPCODE", "(", "IPM", ")", ";", "OPCODE", "(", "ATOMIC_SWAPW", ")", ";", "OPCODE", "(", "ATOMIC_LOADW_ADD", ")", ";", "OPCODE", "(", "ATOMIC_LOADW_SUB", ")", ";", "OPCODE", "(", "ATOMIC_LOADW_AND", ")", ";", "OPCODE", "(", "ATOMIC_LOADW_OR", ")", ";", "OPCODE", "(", "ATOMIC_LOADW_XOR", ")", ";", "OPCODE", "(", "ATOMIC_LOADW_NAND", ")", ";", "OPCODE", "(", "ATOMIC_LOADW_MIN", ")", ";", "OPCODE", "(", "ATOMIC_LOADW_MAX", ")", ";", "OPCODE", "(", "ATOMIC_LOADW_UMIN", ")", ";", "OPCODE", "(", "ATOMIC_LOADW_UMAX", ")", ";", "OPCODE", "(", "ATOMIC_CMP_SWAPW", ")", ";", "OPCODE", "(", "PREFETCH", ")", ";", "}", "return", "NULL", ";", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZISelLowering103", "Func": "getTargetNodeName", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2154, "Length": 237, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ix86_mode_entry", "(", "int", "entity", ")", "{", "switch", "(", "entity", ")", "{", "case", "AVX_U128", ":", "return", "ix86_avx_u128_mode_entry", "(", ")", ";", "case", "I387_TRUNC", ":", "case", "I387_FLOOR", ":", "case", "I387_CEIL", ":", "case", "I387_MASK_PM", ":", "return", "I387_CW_ANY", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Return", "a", "mode", "that", "ENTITY", "is", "assumed", "to", "be", "switched", "to", "at", "function", "entry", "."], "TS_V_token": ["i386"], "File": "i3864", "Func": "ix86_mode_entry", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2155, "Length": 44, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCRegisterInfo", "::", "requiresRegisterScavenging", "(", "const", "MachineFunction", "&", ")", "const", "{", "return", "(", "(", "EnablePPC32RS", "&&", "!", "Subtarget", ".", "isPPC64", "(", ")", ")", "||", "(", "EnablePPC64RS", "&&", "Subtarget", ".", "isPPC64", "(", ")", ")", ")", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "requires", "(", "and", "can", "make", "use", "of", ")", "the", "register", "scavenger", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "PPC", "PPC"], "File": "PPCRegisterInfo31", "Func": "requiresRegisterScavenging", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2156, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "timode_mem_p", "(", "rtx", "x", ")", "{", "return", "MEM_P", "(", "x", ")", "&&", "(", "TARGET_SSE_UNALIGNED_LOAD_OPTIMAL", "||", "!", "misaligned_operand", "(", "x", ",", "TImode", ")", ")", ";", "}", ""], "natrual_language": ["Check", "for", "a", "suitable", "TImode", "memory", "operand", "."], "TS_V_token": ["i386"], "File": "i386-features1", "Func": "timode_mem_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2157, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86InstrInfo", "::", "insertSelect", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "DebugLoc", "DL", ",", "unsigned", "DstReg", ",", "const", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Cond", ",", "unsigned", "TrueReg", ",", "unsigned", "FalseReg", ")", "const", "{", "MachineRegisterInfo", "&", "MRI", "=", "MBB", ".", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "assert", "(", "Cond", ".", "size", "(", ")", "==", "1", "&&", "\"Invalid Cond array\"", ")", ";", "unsigned", "Opc", "=", "getCMovFromCond", "(", "(", "X86", "::", "CondCode", ")", "Cond", "[", "0", "]", ".", "getImm", "(", ")", ",", "MRI", ".", "getRegClass", "(", "DstReg", ")", "->", "getSize", "(", ")", ",", "false", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "Opc", ")", ",", "DstReg", ")", ".", "addReg", "(", "FalseReg", ")", ".", "addReg", "(", "TrueReg", ")", ";", "}", ""], "natrual_language": ["Insert", "a", "select", "instruction", "into", "MBB", "before", "I", "that", "will", "copy", "TrueReg", "to", "DstReg", "when", "Cond", "is", "true", ",", "and", "FalseReg", "to", "DstReg", "when", "Cond", "is", "false", "."], "TS_V_token": ["X86", "X86", "1", "\"Invalid Cond array\"", "X86::CondCode", "0"], "File": "X86InstrInfo (2)", "Func": "insertSelect", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2158, "Length": 123, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_function_ok_for_sibcall", "(", "tree", "decl", ",", "tree", "exp", ")", "{", "unsigned", "long", "func_type", ";", "if", "(", "cfun", "->", "machine", "->", "sibcall_blocked", ")", "return", "false", ";", "if", "(", "TARGET_THUMB1", ")", "return", "false", ";", "if", "(", "TARGET_VXWORKS_RTP", "&&", "flag_pic", "&&", "!", "targetm", ".", "binds_local_p", "(", "decl", ")", ")", "return", "false", ";", "if", "(", "TARGET_INTERWORK", "&&", "decl", "&&", "TREE_PUBLIC", "(", "decl", ")", "&&", "!", "TREE_ASM_WRITTEN", "(", "decl", ")", ")", "return", "false", ";", "func_type", "=", "arm_current_func_type", "(", ")", ";", "if", "(", "IS_INTERRUPT", "(", "func_type", ")", ")", "return", "false", ";", "if", "(", "!", "VOID_TYPE_P", "(", "TREE_TYPE", "(", "DECL_RESULT", "(", "cfun", "->", "decl", ")", ")", ")", ")", "{", "rtx", "a", ",", "b", ";", "a", "=", "arm_function_value", "(", "TREE_TYPE", "(", "exp", ")", ",", "decl", ",", "false", ")", ";", "b", "=", "arm_function_value", "(", "TREE_TYPE", "(", "DECL_RESULT", "(", "cfun", "->", "decl", ")", ")", ",", "cfun", "->", "decl", ",", "false", ")", ";", "if", "(", "!", "rtx_equal_p", "(", "a", ",", "b", ")", ")", "return", "false", ";", "}", "if", "(", "IS_STACKALIGN", "(", "func_type", ")", ")", "return", "false", ";", "if", "(", "TARGET_AAPCS_BASED", "&&", "arm_abi", "==", "ARM_ABI_AAPCS", "&&", "decl", "&&", "DECL_WEAK", "(", "decl", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "non-zero", "if", "it", "is", "ok", "to", "make", "a", "tail-call", "to", "DECL", "."], "TS_V_token": ["arm"], "File": "arm4", "Func": "arm_function_ok_for_sibcall", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2159, "Length": 189, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsTargetELFStreamer", "::", "emitLabel", "(", "MCSymbol", "*", "S", ")", "{", "auto", "*", "Symbol", "=", "cast", "<", "MCSymbolELF", ">", "(", "S", ")", ";", "getStreamer", "(", ")", ".", "getAssembler", "(", ")", ".", "registerSymbol", "(", "*", "Symbol", ")", ";", "uint8_t", "Type", "=", "Symbol", "->", "getType", "(", ")", ";", "if", "(", "Type", "!=", "ELF", "::", "STT_FUNC", ")", "return", ";", "if", "(", "isMicroMipsEnabled", "(", ")", ")", "Symbol", "->", "setOther", "(", "ELF", "::", "STO_MIPS_MICROMIPS", ")", ";", "}", ""], "natrual_language": ["Emit", "a", "label", "for", "Symbol", "into", "the", "current", "section", "."], "TS_V_token": ["Mips", "Mips", "Mips"], "File": "MipsTargetStreamer (2)1", "Func": "emitLabel", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2160, "Length": 71, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_expand_vec_one_operand_perm_avx512", "(", "struct", "expand_vec_perm_d", "*", "d", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "d", "->", "op0", ")", ";", "machine_mode", "maskmode", "=", "mode", ";", "unsigned", "inner_size", "=", "GET_MODE_SIZE", "(", "GET_MODE_INNER", "(", "mode", ")", ")", ";", "rtx", "(", "*", "gen", ")", "(", "rtx", ",", "rtx", ",", "rtx", ")", "=", "NULL", ";", "rtx", "target", ",", "op0", ",", "mask", ";", "rtx", "vec", "[", "64", "]", ";", "if", "(", "!", "rtx_equal_p", "(", "d", "->", "op0", ",", "d", "->", "op1", ")", ")", "return", "false", ";", "if", "(", "!", "TARGET_AVX512F", ")", "return", "false", ";", "if", "(", "!", "TARGET_AVX512VL", "&&", "GET_MODE_SIZE", "(", "mode", ")", "<", "64", ")", "return", "false", ";", "if", "(", "!", "TARGET_AVX512BW", "&&", "inner_size", "==", "2", ")", "return", "false", ";", "if", "(", "!", "TARGET_AVX512VBMI", "&&", "inner_size", "==", "1", ")", "return", "false", ";", "switch", "(", "mode", ")", "{", "case", "E_V16SImode", ":", "gen", "=", "gen_avx512f_permvarv16si", ";", "break", ";", "case", "E_V16SFmode", ":", "gen", "=", "gen_avx512f_permvarv16sf", ";", "maskmode", "=", "V16SImode", ";", "break", ";", "case", "E_V8DImode", ":", "gen", "=", "gen_avx512f_permvarv8di", ";", "break", ";", "case", "E_V8DFmode", ":", "gen", "=", "gen_avx512f_permvarv8df", ";", "maskmode", "=", "V8DImode", ";", "break", ";", "case", "E_V32HImode", ":", "gen", "=", "gen_avx512bw_permvarv32hi", ";", "break", ";", "case", "E_V16HImode", ":", "gen", "=", "gen_avx512vl_permvarv16hi", ";", "break", ";", "case", "E_V8HImode", ":", "gen", "=", "gen_avx512vl_permvarv8hi", ";", "break", ";", "case", "E_V64QImode", ":", "gen", "=", "gen_avx512bw_permvarv64qi", ";", "break", ";", "case", "E_V32QImode", ":", "gen", "=", "gen_avx512vl_permvarv32qi", ";", "break", ";", "case", "E_V16QImode", ":", "gen", "=", "gen_avx512vl_permvarv16qi", ";", "break", ";", "default", ":", "return", "false", ";", "}", "if", "(", "d", "->", "testing_p", ")", "return", "true", ";", "target", "=", "d", "->", "target", ";", "op0", "=", "d", "->", "op0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "d", "->", "nelt", ";", "++", "i", ")", "vec", "[", "i", "]", "=", "GEN_INT", "(", "d", "->", "perm", "[", "i", "]", ")", ";", "mask", "=", "gen_rtx_CONST_VECTOR", "(", "maskmode", ",", "gen_rtvec_v", "(", "d", "->", "nelt", ",", "vec", ")", ")", ";", "emit_insn", "(", "gen", "(", "target", ",", "op0", ",", "force_reg", "(", "maskmode", ",", "mask", ")", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Try", "to", "expand", "one-operand", "permutation", "with", "constant", "mask", "."], "TS_V_token": ["i386", "64", "64", "2", "1", "0"], "File": "i386-expand", "Func": "ix86_expand_vec_one_operand_perm_avx512", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2161, "Length": 326, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtl_opt_pass", "*", "make_pass_fma_steering", "(", "gcc", "::", "context", "*", "ctxt", ")", "{", "return", "new", "pass_fma_steering", "(", "ctxt", ")", ";", "}", ""], "natrual_language": ["Create", "a", "new", "fma", "steering", "pass", "instance", "."], "TS_V_token": ["aarch64"], "File": "cortex-a57-fma-steering2", "Func": "make_pass_fma_steering", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2162, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "pru_print_operand_address", "(", "FILE", "*", "file", ",", "machine_mode", "mode", ",", "rtx", "op", ")", "{", "if", "(", "CONSTANT_ADDRESS_P", "(", "op", ")", "&&", "text_segment_operand", "(", "op", ",", "VOIDmode", ")", ")", "{", "output_operand_lossage", "(", "\"unexpected text address:\"", ")", ";", "return", ";", "}", "switch", "(", "GET_CODE", "(", "op", ")", ")", "{", "case", "CONST", ":", "case", "LABEL_REF", ":", "case", "CONST_WIDE_INT", ":", "case", "SYMBOL_REF", ":", "break", ";", "case", "CONST_INT", ":", "{", "unsigned", "HOST_WIDE_INT", "caddr", "=", "INTVAL", "(", "op", ")", ";", "int", "base", "=", "pru_get_ctable_base_index", "(", "caddr", ")", ";", "int", "offs", "=", "pru_get_ctable_base_offset", "(", "caddr", ")", ";", "if", "(", "base", "<", "0", ")", "{", "output_operand_lossage", "(", "\"unsupported constant address:\"", ")", ";", "return", ";", "}", "fprintf", "(", "file", ",", "\"%d, %d\"", ",", "base", ",", "offs", ")", ";", "return", ";", "}", "break", ";", "case", "PLUS", ":", "{", "int", "base", ";", "rtx", "op0", "=", "XEXP", "(", "op", ",", "0", ")", ";", "rtx", "op1", "=", "XEXP", "(", "op", ",", "1", ")", ";", "if", "(", "REG_P", "(", "op0", ")", "&&", "CONST_INT_P", "(", "op1", ")", "&&", "pru_get_ctable_exact_base_index", "(", "INTVAL", "(", "op1", ")", ")", ">=", "0", ")", "{", "base", "=", "pru_get_ctable_exact_base_index", "(", "INTVAL", "(", "op1", ")", ")", ";", "fprintf", "(", "file", ",", "\"%d, %s\"", ",", "base", ",", "pru_asm_regname", "(", "op0", ")", ")", ";", "return", ";", "}", "else", "if", "(", "REG_P", "(", "op1", ")", "&&", "CONST_INT_P", "(", "op0", ")", "&&", "pru_get_ctable_exact_base_index", "(", "INTVAL", "(", "op0", ")", ")", ">=", "0", ")", "{", "gcc_unreachable", "(", ")", ";", "}", "else", "if", "(", "REG_P", "(", "op0", ")", "&&", "CONSTANT_P", "(", "op1", ")", ")", "{", "fprintf", "(", "file", ",", "\"%s, \"", ",", "pru_asm_regname", "(", "op0", ")", ")", ";", "output_addr_const", "(", "file", ",", "op1", ")", ";", "return", ";", "}", "else", "if", "(", "REG_P", "(", "op1", ")", "&&", "CONSTANT_P", "(", "op0", ")", ")", "{", "gcc_unreachable", "(", ")", ";", "}", "else", "if", "(", "REG_P", "(", "op1", ")", "&&", "REG_P", "(", "op0", ")", ")", "{", "fprintf", "(", "file", ",", "\"%s, %s\"", ",", "pru_asm_regname", "(", "op0", ")", ",", "pru_asm_regname", "(", "op1", ")", ")", ";", "return", ";", "}", "}", "break", ";", "case", "REG", ":", "fprintf", "(", "file", ",", "\"%s, 0\"", ",", "pru_asm_regname", "(", "op", ")", ")", ";", "return", ";", "case", "MEM", ":", "{", "rtx", "base", "=", "XEXP", "(", "op", ",", "0", ")", ";", "pru_print_operand_address", "(", "file", ",", "mode", ",", "base", ")", ";", "return", ";", "}", "default", ":", "break", ";", "}", "output_operand_lossage", "(", "\"unsupported memory expression:\"", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_PRINT_OPERAND_ADDRESS", "."], "TS_V_token": ["pru", "\"unexpected text address:\"", "0", "\"unsupported constant address:\"", "\"%d, %d\"", "0", "1", "0", "\"%d, %s\"", "0", "\"%s, \"", "\"%s, %s\"", "\"%s, 0\"", "0", "\"unsupported memory expression:\""], "File": "pru", "Func": "pru_print_operand_address", "Target": "pru", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2163, "Length": 372, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsAsmPrinter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "Subtarget", "=", "&", "TM", ".", "getSubtarget", "<", "MipsSubtarget", ">", "(", ")", ";", "const_cast", "<", "TargetLoweringObjectFile", "&", ">", "(", "getObjFileLowering", "(", ")", ")", ".", "Initialize", "(", "OutContext", ",", "TM", ")", ";", "MipsFI", "=", "MF", ".", "getInfo", "<", "MipsFunctionInfo", ">", "(", ")", ";", "MCP", "=", "MF", ".", "getConstantPool", "(", ")", ";", "if", "(", "Subtarget", "->", "isTargetNaCl", "(", ")", ")", "NaClAlignIndirectJumpTargets", "(", "MF", ")", ";", "AsmPrinter", "::", "runOnMachineFunction", "(", "MF", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "Mips"], "File": "MipsAsmPrinter43", "Func": "runOnMachineFunction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2164, "Length": 83, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "neon_lane_bounds", "(", "rtx", "operand", ",", "HOST_WIDE_INT", "low", ",", "HOST_WIDE_INT", "high", ")", "{", "bounds_check", "(", "operand", ",", "low", ",", "high", ",", "\"lane out of range\"", ")", ";", "}", ""], "natrual_language": ["Bounds-check", "lanes", "."], "TS_V_token": ["arm", "\"lane out of range\""], "File": "arm4", "Func": "neon_lane_bounds", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2165, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_valid_target_attribute_p", "(", "tree", "fndecl", ",", "tree", "ARG_UNUSED", "(", "name", ")", ",", "tree", "args", ",", "int", "ARG_UNUSED", "(", "flags", ")", ")", "{", "struct", "gcc_options", "func_options", ";", "tree", "new_target", ",", "new_optimize", ";", "bool", "ret", "=", "true", ";", "if", "(", "TREE_VALUE", "(", "args", ")", "&&", "TREE_CODE", "(", "TREE_VALUE", "(", "args", ")", ")", "==", "STRING_CST", "&&", "TREE_CHAIN", "(", "args", ")", "==", "NULL_TREE", "&&", "strcmp", "(", "TREE_STRING_POINTER", "(", "TREE_VALUE", "(", "args", ")", ")", ",", "\"default\"", ")", "==", "0", ")", "return", "true", ";", "tree", "old_optimize", "=", "build_optimization_node", "(", "&", "global_options", ")", ";", "tree", "func_optimize", "=", "DECL_FUNCTION_SPECIFIC_OPTIMIZATION", "(", "fndecl", ")", ";", "if", "(", "!", "func_optimize", ")", "func_optimize", "=", "old_optimize", ";", "memset", "(", "&", "func_options", ",", "0", ",", "sizeof", "(", "func_options", ")", ")", ";", "init_options_struct", "(", "&", "func_options", ",", "NULL", ")", ";", "lang_hooks", ".", "init_options_struct", "(", "&", "func_options", ")", ";", "cl_optimization_restore", "(", "&", "func_options", ",", "TREE_OPTIMIZATION", "(", "func_optimize", ")", ")", ";", "cl_target_option_restore", "(", "&", "func_options", ",", "TREE_TARGET_OPTION", "(", "target_option_default_node", ")", ")", ";", "new_target", "=", "ix86_valid_target_attribute_tree", "(", "args", ",", "&", "func_options", ",", "&", "global_options_set", ")", ";", "new_optimize", "=", "build_optimization_node", "(", "&", "func_options", ")", ";", "if", "(", "new_target", "==", "error_mark_node", ")", "ret", "=", "false", ";", "else", "if", "(", "fndecl", "&&", "new_target", ")", "{", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "fndecl", ")", "=", "new_target", ";", "if", "(", "old_optimize", "!=", "new_optimize", ")", "DECL_FUNCTION_SPECIFIC_OPTIMIZATION", "(", "fndecl", ")", "=", "new_optimize", ";", "}", "finalize_options_struct", "(", "&", "func_options", ")", ";", "return", "ret", ";", "}", ""], "natrual_language": ["Hook", "to", "validate", "attribute", "(", "(", "target", "(", "``", "string", "''", ")", ")", ")", "."], "TS_V_token": ["i386", "\"default\"", "0", "0"], "File": "i3865", "Func": "ix86_valid_target_attribute_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2166, "Length": 226, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "assignValueToReg", "(", "unsigned", "ValVReg", ",", "unsigned", "PhysReg", ",", "CCValAssign", "&", "VA", ")", "override", "{", "MIRBuilder", ".", "getMBB", "(", ")", ".", "addLiveIn", "(", "PhysReg", ")", ";", "MIRBuilder", ".", "buildCopy", "(", "ValVReg", ",", "PhysReg", ")", ";", "}", ""], "natrual_language": ["The", "specified", "value", "has", "been", "assigned", "to", "a", "physical", "register", ",", "handle", "the", "appropriate", "COPY", "(", "either", "to", "or", "from", ")", "and", "mark", "any", "relevant", "uses/defines", "as", "needed", "."], "TS_V_token": ["X86"], "File": "X86CallLowering16", "Func": "assignValueToReg", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2167, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsMCCodeEmitter", "::", "encodeInstruction", "(", "const", "MCInst", "&", "MI", ",", "raw_ostream", "&", "OS", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "MCInst", "TmpInst", "=", "MI", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "case", "Mips", "::", "DSLL", ":", "case", "Mips", "::", "DSRL", ":", "case", "Mips", "::", "DSRA", ":", "case", "Mips", "::", "DROTR", ":", "LowerLargeShift", "(", "TmpInst", ")", ";", "break", ";", "case", "Mips", "::", "DEXT", ":", "case", "Mips", "::", "DINS", ":", "LowerDextDins", "(", "TmpInst", ")", ";", "}", "unsigned", "long", "N", "=", "Fixups", ".", "size", "(", ")", ";", "uint32_t", "Binary", "=", "getBinaryCodeForInstr", "(", "TmpInst", ",", "Fixups", ",", "STI", ")", ";", "unsigned", "Opcode", "=", "TmpInst", ".", "getOpcode", "(", ")", ";", "if", "(", "(", "Opcode", "!=", "Mips", "::", "NOP", ")", "&&", "(", "Opcode", "!=", "Mips", "::", "SLL", ")", "&&", "(", "Opcode", "!=", "Mips", "::", "SLL_MM", ")", "&&", "!", "Binary", ")", "llvm_unreachable", "(", "\"unimplemented opcode in encodeInstruction()\"", ")", ";", "int", "NewOpcode", "=", "-", "1", ";", "if", "(", "isMicroMips", "(", "STI", ")", ")", "{", "if", "(", "isMips32r6", "(", "STI", ")", ")", "{", "NewOpcode", "=", "Mips", "::", "MipsR62MicroMipsR6", "(", "Opcode", ",", "Mips", "::", "Arch_micromipsr6", ")", ";", "if", "(", "NewOpcode", "==", "-", "1", ")", "NewOpcode", "=", "Mips", "::", "Std2MicroMipsR6", "(", "Opcode", ",", "Mips", "::", "Arch_micromipsr6", ")", ";", "}", "else", "NewOpcode", "=", "Mips", "::", "Std2MicroMips", "(", "Opcode", ",", "Mips", "::", "Arch_micromips", ")", ";", "if", "(", "NewOpcode", "!=", "-", "1", ")", "{", "if", "(", "Fixups", ".", "size", "(", ")", ">", "N", ")", "Fixups", ".", "pop_back", "(", ")", ";", "Opcode", "=", "NewOpcode", ";", "TmpInst", ".", "setOpcode", "(", "NewOpcode", ")", ";", "Binary", "=", "getBinaryCodeForInstr", "(", "TmpInst", ",", "Fixups", ",", "STI", ")", ";", "}", "}", "const", "MCInstrDesc", "&", "Desc", "=", "MCII", ".", "get", "(", "TmpInst", ".", "getOpcode", "(", ")", ")", ";", "unsigned", "Size", "=", "Desc", ".", "getSize", "(", ")", ";", "if", "(", "!", "Size", ")", "llvm_unreachable", "(", "\"Desc.getSize() returns 0\"", ")", ";", "EmitInstruction", "(", "Binary", ",", "Size", ",", "STI", ",", "OS", ")", ";", "}", ""], "natrual_language": ["Encode", "the", "given", "Inst", "to", "bytes", "and", "append", "to", "CB", "."], "TS_V_token": ["Mips", "Mips", "Mips::DSLL", "Mips::DSRL", "Mips::DSRA", "Mips::DROTR", "Mips::DEXT", "Mips::DINS", "Mips::NOP", "Mips::SLL", "Mips::SLL_MM", "\"unimplemented opcode in encodeInstruction()\"", "1", "Mips", "Mips", "Mips::MipsR62MicroMipsR6", "Mips::Arch_micromipsr6", "1", "Mips::Std2MicroMipsR6", "Mips::Arch_micromipsr6", "Mips::Std2MicroMips", "Mips::Arch_micromips", "1", "\"Desc.getSize() returns 0\""], "File": "MipsMCCodeEmitter", "Func": "encodeInstruction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2168, "Length": 315, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SparcTargetMachine", "::", "addInstSelector", "(", "PassManagerBase", "&", "PM", ",", "CodeGenOpt", "::", "Level", "OptLevel", ")", "{", "PM", ".", "add", "(", "createSparcISelDag", "(", "*", "this", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["addInstSelector", "-", "This", "method", "should", "install", "an", "instruction", "selector", "pass", ",", "which", "converts", "from", "LLVM", "code", "to", "machine", "instructions", "."], "TS_V_token": ["Sparc", "Sparc", "Sparc"], "File": "SparcTargetMachine", "Func": "addInstSelector", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2169, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTargetLowering", "::", "SelectAddressRegReg", "(", "SDValue", "N", ",", "SDValue", "&", "Base", ",", "SDValue", "&", "Index", ",", "SelectionDAG", "&", "DAG", ",", "MaybeAlign", "EncodingAlignment", ")", "const", "{", "if", "(", "SelectAddressPCRel", "(", "N", ",", "Base", ")", ")", "return", "false", ";", "int16_t", "Imm", "=", "0", ";", "if", "(", "N", ".", "getOpcode", "(", ")", "==", "ISD", "::", "ADD", ")", "{", "if", "(", "hasSPE", "(", ")", "&&", "SelectAddressEVXRegReg", "(", "N", ",", "Base", ",", "Index", ",", "DAG", ")", ")", "return", "true", ";", "if", "(", "isIntS16Immediate", "(", "N", ".", "getOperand", "(", "1", ")", ",", "Imm", ")", "&&", "(", "!", "EncodingAlignment", "||", "isAligned", "(", "*", "EncodingAlignment", ",", "Imm", ")", ")", ")", "return", "false", ";", "if", "(", "N", ".", "getOperand", "(", "1", ")", ".", "getOpcode", "(", ")", "==", "PPCISD", "::", "Lo", ")", "return", "false", ";", "Base", "=", "N", ".", "getOperand", "(", "0", ")", ";", "Index", "=", "N", ".", "getOperand", "(", "1", ")", ";", "return", "true", ";", "}", "else", "if", "(", "N", ".", "getOpcode", "(", ")", "==", "ISD", "::", "OR", ")", "{", "if", "(", "isIntS16Immediate", "(", "N", ".", "getOperand", "(", "1", ")", ",", "Imm", ")", "&&", "(", "!", "EncodingAlignment", "||", "isAligned", "(", "*", "EncodingAlignment", ",", "Imm", ")", ")", ")", "return", "false", ";", "KnownBits", "LHSKnown", "=", "DAG", ".", "computeKnownBits", "(", "N", ".", "getOperand", "(", "0", ")", ")", ";", "if", "(", "LHSKnown", ".", "Zero", ".", "getBoolValue", "(", ")", ")", "{", "KnownBits", "RHSKnown", "=", "DAG", ".", "computeKnownBits", "(", "N", ".", "getOperand", "(", "1", ")", ")", ";", "if", "(", "~", "(", "LHSKnown", ".", "Zero", "|", "RHSKnown", ".", "Zero", ")", "==", "0", ")", "{", "Base", "=", "N", ".", "getOperand", "(", "0", ")", ";", "Index", "=", "N", ".", "getOperand", "(", "1", ")", ";", "return", "true", ";", "}", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["SelectAddressRegReg", "-", "Given", "the", "specified", "addressed", ",", "check", "to", "see", "if", "it", "can", "be", "more", "efficiently", "represented", "as", "[", "r+imm", "]", "."], "TS_V_token": ["PowerPC", "PPC", "0", "ISD::ADD", "1", "1", "PPCISD::Lo", "0", "1", "ISD::OR", "1", "0", "1", "0", "0", "1"], "File": "PPCISelLowering100", "Func": "SelectAddressRegReg", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2170, "Length": 276, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "mips_binary_cost", "(", "rtx", "x", ",", "int", "single_cost", ",", "int", "double_cost", ",", "bool", "speed", ")", "{", "int", "cost", ";", "if", "(", "GET_MODE_SIZE", "(", "GET_MODE", "(", "x", ")", ")", "==", "UNITS_PER_WORD", "*", "2", ")", "cost", "=", "double_cost", ";", "else", "cost", "=", "single_cost", ";", "return", "(", "cost", "+", "set_src_cost", "(", "XEXP", "(", "x", ",", "0", ")", ",", "GET_MODE", "(", "x", ")", ",", "speed", ")", "+", "rtx_cost", "(", "XEXP", "(", "x", ",", "1", ")", ",", "GET_MODE", "(", "x", ")", ",", "GET_CODE", "(", "x", ")", ",", "1", ",", "speed", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "cost", "of", "binary", "operation", "X", ",", "given", "that", "the", "instruction", "sequence", "for", "a", "word-sized", "or", "smaller", "operation", "has", "cost", "SINGLE_COST", "and", "that", "the", "sequence", "of", "a", "double-word", "operation", "has", "cost", "DOUBLE_COST", ".", "If", "SPEED", "is", "true", ",", "optimize", "for", "speed", "otherwise", "optimize", "for", "size", "."], "TS_V_token": ["mips", "2", "0", "1", "1"], "File": "mips", "Func": "mips_binary_cost", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2171, "Length": 90, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDNode", "*", "PPCDAGToDAGISel", "::", "getGlobalBaseReg", "(", ")", "{", "if", "(", "!", "GlobalBaseReg", ")", "{", "const", "TargetInstrInfo", "&", "TII", "=", "*", "PPCSubTarget", "->", "getInstrInfo", "(", ")", ";", "MachineBasicBlock", "&", "FirstMBB", "=", "MF", "->", "front", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "FirstMBB", ".", "begin", "(", ")", ";", "const", "Module", "*", "M", "=", "MF", "->", "getFunction", "(", ")", ".", "getParent", "(", ")", ";", "DebugLoc", "dl", ";", "if", "(", "PPCLowering", "->", "getPointerTy", "(", "CurDAG", "->", "getDataLayout", "(", ")", ")", "==", "MVT", "::", "i32", ")", "{", "if", "(", "PPCSubTarget", "->", "isTargetELF", "(", ")", ")", "{", "GlobalBaseReg", "=", "PPC", "::", "R30", ";", "if", "(", "M", "->", "getPICLevel", "(", ")", "==", "PICLevel", "::", "SmallPIC", ")", "{", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "MoveGOTtoLR", ")", ")", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "MFLR", ")", ",", "GlobalBaseReg", ")", ";", "MF", "->", "getInfo", "<", "PPCFunctionInfo", ">", "(", ")", "->", "setUsesPICBase", "(", "true", ")", ";", "}", "else", "{", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "MovePCtoLR", ")", ")", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "MFLR", ")", ",", "GlobalBaseReg", ")", ";", "unsigned", "TempReg", "=", "RegInfo", "->", "createVirtualRegister", "(", "&", "PPC", "::", "GPRCRegClass", ")", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "UpdateGBR", ")", ",", "GlobalBaseReg", ")", ".", "addReg", "(", "TempReg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "GlobalBaseReg", ")", ";", "MF", "->", "getInfo", "<", "PPCFunctionInfo", ">", "(", ")", "->", "setUsesPICBase", "(", "true", ")", ";", "}", "}", "else", "{", "GlobalBaseReg", "=", "RegInfo", "->", "createVirtualRegister", "(", "&", "PPC", "::", "GPRC_and_GPRC_NOR0RegClass", ")", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "MovePCtoLR", ")", ")", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "MFLR", ")", ",", "GlobalBaseReg", ")", ";", "}", "}", "else", "{", "MF", "->", "getInfo", "<", "PPCFunctionInfo", ">", "(", ")", "->", "setShrinkWrapDisabled", "(", "true", ")", ";", "GlobalBaseReg", "=", "RegInfo", "->", "createVirtualRegister", "(", "&", "PPC", "::", "G8RC_and_G8RC_NOX0RegClass", ")", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "MovePCtoLR8", ")", ")", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "PPC", "::", "MFLR8", ")", ",", "GlobalBaseReg", ")", ";", "}", "}", "return", "CurDAG", "->", "getRegister", "(", "GlobalBaseReg", ",", "PPCLowering", "->", "getPointerTy", "(", "CurDAG", "->", "getDataLayout", "(", ")", ")", ")", ".", "getNode", "(", ")", ";", "}", ""], "natrual_language": ["getGlobalBaseReg", "-", "Return", "a", "virtual", "register", "initialized", "with", "the", "the", "global", "base", "register", "value", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "MVT::i32", "PPC", "PPC::R30", "PPC::MoveGOTtoLR", "PPC::MFLR", "PPC", "PPC::MovePCtoLR", "PPC::MFLR", "PPC::GPRCRegClass", "PPC::UpdateGBR", "PPC", "PPC::GPRC_and_GPRC_NOR0RegClass", "PPC::MovePCtoLR", "PPC::MFLR", "PPC", "PPC::G8RC_and_G8RC_NOX0RegClass", "PPC::MovePCtoLR8", "PPC::MFLR8", "PPC"], "File": "PPCISelDAGToDAG104", "Func": "getGlobalBaseReg", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2172, "Length": 413, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetPassConfig", "*", "PPCTargetMachine", "::", "createPassConfig", "(", "PassManagerBase", "&", "PM", ")", "{", "return", "new", "PPCPassConfig", "(", "*", "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": ["PowerPC", "PPC", "PPC"], "File": "PPCTargetMachine1", "Func": "createPassConfig", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2173, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "thumb1_reorg", "(", "void", ")", "{", "basic_block", "bb", ";", "FOR_EACH_BB_FN", "(", "bb", ",", "cfun", ")", "{", "rtx", "dest", ",", "src", ";", "rtx", "pat", ",", "op0", ",", "set", "=", "NULL", ";", "rtx_insn", "*", "prev", ",", "*", "insn", "=", "BB_END", "(", "bb", ")", ";", "bool", "insn_clobbered", "=", "false", ";", "while", "(", "insn", "!=", "BB_HEAD", "(", "bb", ")", "&&", "!", "NONDEBUG_INSN_P", "(", "insn", ")", ")", "insn", "=", "PREV_INSN", "(", "insn", ")", ";", "if", "(", "insn", "==", "BB_HEAD", "(", "bb", ")", "||", "INSN_CODE", "(", "insn", ")", "!=", "CODE_FOR_cbranchsi4_insn", ")", "continue", ";", "pat", "=", "PATTERN", "(", "insn", ")", ";", "op0", "=", "XEXP", "(", "XEXP", "(", "SET_SRC", "(", "pat", ")", ",", "0", ")", ",", "0", ")", ";", "gcc_assert", "(", "insn", "!=", "BB_HEAD", "(", "bb", ")", ")", ";", "for", "(", "prev", "=", "PREV_INSN", "(", "insn", ")", ";", "(", "!", "insn_clobbered", "&&", "prev", "!=", "BB_HEAD", "(", "bb", ")", "&&", "(", "NOTE_P", "(", "prev", ")", "||", "DEBUG_INSN_P", "(", "prev", ")", "||", "(", "(", "set", "=", "single_set", "(", "prev", ")", ")", "!=", "NULL", "&&", "get_attr_conds", "(", "prev", ")", "==", "CONDS_NOCOND", ")", ")", ")", ";", "prev", "=", "PREV_INSN", "(", "prev", ")", ")", "{", "if", "(", "reg_set_p", "(", "op0", ",", "prev", ")", ")", "insn_clobbered", "=", "true", ";", "}", "if", "(", "insn_clobbered", ")", "continue", ";", "if", "(", "!", "set", ")", "continue", ";", "dest", "=", "SET_DEST", "(", "set", ")", ";", "src", "=", "SET_SRC", "(", "set", ")", ";", "if", "(", "!", "low_register_operand", "(", "dest", ",", "SImode", ")", "||", "!", "low_register_operand", "(", "src", ",", "SImode", ")", ")", "continue", ";", "if", "(", "REGNO", "(", "op0", ")", "==", "REGNO", "(", "src", ")", "||", "REGNO", "(", "op0", ")", "==", "REGNO", "(", "dest", ")", ")", "{", "dest", "=", "copy_rtx", "(", "dest", ")", ";", "src", "=", "copy_rtx", "(", "src", ")", ";", "src", "=", "gen_rtx_MINUS", "(", "SImode", ",", "src", ",", "const0_rtx", ")", ";", "PATTERN", "(", "prev", ")", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "dest", ",", "src", ")", ";", "INSN_CODE", "(", "prev", ")", "=", "-", "1", ";", "XEXP", "(", "XEXP", "(", "SET_SRC", "(", "pat", ")", ",", "0", ")", ",", "0", ")", "=", "copy_rtx", "(", "dest", ")", ";", "INSN_CODE", "(", "insn", ")", "=", "-", "1", ";", "}", "}", "}", ""], "natrual_language": ["Rewrite", "move", "insn", "into", "subtract", "of", "0", "if", "the", "condition", "codes", "will", "be", "useful", "in", "next", "conditional", "jump", "insn", "."], "TS_V_token": ["arm", "0", "0", "1", "0", "0", "1"], "File": "arm4", "Func": "thumb1_reorg", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2174, "Length": 345, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ix86_compare_version_priority", "(", "tree", "decl1", ",", "tree", "decl2", ")", "{", "unsigned", "int", "priority1", "=", "get_builtin_code_for_version", "(", "decl1", ",", "NULL", ")", ";", "unsigned", "int", "priority2", "=", "get_builtin_code_for_version", "(", "decl2", ",", "NULL", ")", ";", "return", "(", "int", ")", "priority1", "-", "(", "int", ")", "priority2", ";", "}", ""], "natrual_language": ["This", "compares", "the", "priority", "of", "target", "features", "in", "function", "DECL1", "and", "DECL2", ".", "It", "returns", "positive", "value", "if", "DECL1", "is", "higher", "priority", ",", "negative", "value", "if", "DECL2", "is", "higher", "priority", "and", "0", "if", "they", "are", "the", "same", "."], "TS_V_token": ["i386"], "File": "i3864", "Func": "ix86_compare_version_priority", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2175, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsAsmParser", "::", "MatchAndEmitInstruction", "(", "SMLoc", "IDLoc", ",", "unsigned", "&", "Opcode", ",", "SmallVectorImpl", "<", "MCParsedAsmOperand", "*", ">", "&", "Operands", ",", "MCStreamer", "&", "Out", ",", "unsigned", "&", "ErrorInfo", ",", "bool", "MatchingInlineAsm", ")", "{", "MCInst", "Inst", ";", "unsigned", "MatchResult", "=", "MatchInstructionImpl", "(", "Operands", ",", "Inst", ",", "ErrorInfo", ",", "MatchingInlineAsm", ")", ";", "switch", "(", "MatchResult", ")", "{", "default", ":", "break", ";", "case", "Match_Success", ":", "{", "if", "(", "needsExpansion", "(", "Inst", ")", ")", "{", "SmallVector", "<", "MCInst", ",", "4", ">", "Instructions", ";", "expandInstruction", "(", "Inst", ",", "IDLoc", ",", "Instructions", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "Instructions", ".", "size", "(", ")", ";", "i", "++", ")", "{", "Out", ".", "EmitInstruction", "(", "Instructions", "[", "i", "]", ")", ";", "}", "}", "else", "{", "Inst", ".", "setLoc", "(", "IDLoc", ")", ";", "Out", ".", "EmitInstruction", "(", "Inst", ")", ";", "}", "return", "false", ";", "}", "case", "Match_MissingFeature", ":", "Error", "(", "IDLoc", ",", "\"instruction requires a CPU feature not currently enabled\"", ")", ";", "return", "true", ";", "case", "Match_InvalidOperand", ":", "{", "SMLoc", "ErrorLoc", "=", "IDLoc", ";", "if", "(", "ErrorInfo", "!=", "~", "0U", ")", "{", "if", "(", "ErrorInfo", ">=", "Operands", ".", "size", "(", ")", ")", "return", "Error", "(", "IDLoc", ",", "\"too few operands for instruction\"", ")", ";", "ErrorLoc", "=", "(", "(", "MipsOperand", "*", ")", "Operands", "[", "ErrorInfo", "]", ")", "->", "getStartLoc", "(", ")", ";", "if", "(", "ErrorLoc", "==", "SMLoc", "(", ")", ")", "ErrorLoc", "=", "IDLoc", ";", "}", "return", "Error", "(", "ErrorLoc", ",", "\"invalid operand for instruction\"", ")", ";", "}", "case", "Match_MnemonicFail", ":", "return", "Error", "(", "IDLoc", ",", "\"invalid instruction\"", ")", ";", "}", "return", "true", ";", "}", ""], "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": ["Mips", "Mips", "4", "0", "\"instruction requires a CPU feature not currently enabled\"", "0U", "\"too few operands for instruction\"", "Mips", "\"invalid operand for instruction\"", "\"invalid instruction\""], "File": "MipsAsmParser18", "Func": "MatchAndEmitInstruction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2176, "Length": 242, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "nds32_emit_stack_v3push", "(", "rtx", "Rb", ",", "rtx", "Re", ",", "rtx", "En4", "ATTRIBUTE_UNUSED", ",", "rtx", "imm8u", ")", "{", "int", "regno", ";", "int", "num_use_regs", ";", "int", "par_index", ";", "int", "offset", ";", "rtx", "reg", ";", "rtx", "mem", ";", "rtx", "push_rtx", ";", "rtx", "adjust_sp_rtx", ";", "rtx", "parallel_insn", ";", "num_use_regs", "=", "REGNO", "(", "Re", ")", "-", "REGNO", "(", "Rb", ")", "+", "1", "+", "3", ";", "parallel_insn", "=", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "rtvec_alloc", "(", "num_use_regs", "+", "1", ")", ")", ";", "par_index", "=", "0", ";", "offset", "=", "-", "(", "num_use_regs", "*", "4", ")", ";", "for", "(", "regno", "=", "REGNO", "(", "Rb", ")", ";", "regno", "<=", "(", "int", ")", "REGNO", "(", "Re", ")", ";", "regno", "++", ")", "{", "reg", "=", "gen_rtx_REG", "(", "SImode", ",", "regno", ")", ";", "mem", "=", "gen_frame_mem", "(", "SImode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ";", "push_rtx", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "mem", ",", "reg", ")", ";", "XVECEXP", "(", "parallel_insn", ",", "0", ",", "par_index", ")", "=", "push_rtx", ";", "RTX_FRAME_RELATED_P", "(", "push_rtx", ")", "=", "1", ";", "offset", "=", "offset", "+", "4", ";", "par_index", "++", ";", "}", "reg", "=", "gen_rtx_REG", "(", "SImode", ",", "FP_REGNUM", ")", ";", "mem", "=", "gen_frame_mem", "(", "SImode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ";", "push_rtx", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "mem", ",", "reg", ")", ";", "XVECEXP", "(", "parallel_insn", ",", "0", ",", "par_index", ")", "=", "push_rtx", ";", "RTX_FRAME_RELATED_P", "(", "push_rtx", ")", "=", "1", ";", "offset", "=", "offset", "+", "4", ";", "par_index", "++", ";", "reg", "=", "gen_rtx_REG", "(", "SImode", ",", "GP_REGNUM", ")", ";", "mem", "=", "gen_frame_mem", "(", "SImode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ";", "push_rtx", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "mem", ",", "reg", ")", ";", "XVECEXP", "(", "parallel_insn", ",", "0", ",", "par_index", ")", "=", "push_rtx", ";", "RTX_FRAME_RELATED_P", "(", "push_rtx", ")", "=", "1", ";", "offset", "=", "offset", "+", "4", ";", "par_index", "++", ";", "reg", "=", "gen_rtx_REG", "(", "SImode", ",", "LP_REGNUM", ")", ";", "mem", "=", "gen_frame_mem", "(", "SImode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ";", "push_rtx", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "mem", ",", "reg", ")", ";", "XVECEXP", "(", "parallel_insn", ",", "0", ",", "par_index", ")", "=", "push_rtx", ";", "RTX_FRAME_RELATED_P", "(", "push_rtx", ")", "=", "1", ";", "offset", "=", "offset", "+", "4", ";", "par_index", "++", ";", "offset", "=", "-", "(", "num_use_regs", "*", "4", ")", ";", "adjust_sp_rtx", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "stack_pointer_rtx", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", "-", "INTVAL", "(", "imm8u", ")", ")", ")", ";", "XVECEXP", "(", "parallel_insn", ",", "0", ",", "par_index", ")", "=", "adjust_sp_rtx", ";", "RTX_FRAME_RELATED_P", "(", "adjust_sp_rtx", ")", "=", "1", ";", "parallel_insn", "=", "emit_insn", "(", "parallel_insn", ")", ";", "RTX_FRAME_RELATED_P", "(", "parallel_insn", ")", "=", "1", ";", "}", ""], "natrual_language": ["Function", "to", "create", "a", "parallel", "rtx", "pattern", "which", "presents", "stack", "v3push", "behavior", ".", "The", "overall", "concept", "are", ":", "``", "push", "registers", "to", "memory", "''", ",", "``", "adjust", "stack", "pointer", "''", "."], "TS_V_token": ["nds32", "1", "3", "1", "0", "4", "0", "1", "4", "0", "1", "4", "0", "1", "4", "0", "1", "4", "4", "0", "1", "1"], "File": "nds322", "Func": "nds32_emit_stack_v3push", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2177, "Length": 429, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ATTRIBUTE_UNUSED", "static", "section", "*", "x86_64_elf_select_section", "(", "tree", "decl", ",", "int", "reloc", ",", "unsigned", "HOST_WIDE_INT", "align", ")", "{", "if", "(", "ix86_in_large_data_p", "(", "decl", ")", ")", "{", "const", "char", "*", "sname", "=", "NULL", ";", "unsigned", "int", "flags", "=", "SECTION_WRITE", "|", "SECTION_LARGE", ";", "switch", "(", "categorize_decl_for_section", "(", "decl", ",", "reloc", ")", ")", "{", "case", "SECCAT_DATA", ":", "sname", "=", "\".ldata\"", ";", "break", ";", "case", "SECCAT_DATA_REL", ":", "sname", "=", "\".ldata.rel\"", ";", "break", ";", "case", "SECCAT_DATA_REL_LOCAL", ":", "sname", "=", "\".ldata.rel.local\"", ";", "break", ";", "case", "SECCAT_DATA_REL_RO", ":", "sname", "=", "\".ldata.rel.ro\"", ";", "break", ";", "case", "SECCAT_DATA_REL_RO_LOCAL", ":", "sname", "=", "\".ldata.rel.ro.local\"", ";", "break", ";", "case", "SECCAT_BSS", ":", "sname", "=", "\".lbss\"", ";", "flags", "|=", "SECTION_BSS", ";", "break", ";", "case", "SECCAT_RODATA", ":", "case", "SECCAT_RODATA_MERGE_STR", ":", "case", "SECCAT_RODATA_MERGE_STR_INIT", ":", "case", "SECCAT_RODATA_MERGE_CONST", ":", "sname", "=", "\".lrodata\"", ";", "flags", "&=", "~", "SECTION_WRITE", ";", "break", ";", "case", "SECCAT_SRODATA", ":", "case", "SECCAT_SDATA", ":", "case", "SECCAT_SBSS", ":", "gcc_unreachable", "(", ")", ";", "case", "SECCAT_TEXT", ":", "case", "SECCAT_TDATA", ":", "case", "SECCAT_TBSS", ":", "break", ";", "}", "if", "(", "sname", ")", "{", "if", "(", "!", "DECL_P", "(", "decl", ")", ")", "return", "get_section", "(", "sname", ",", "flags", ",", "NULL", ")", ";", "return", "get_named_section", "(", "decl", ",", "sname", ",", "reloc", ")", ";", "}", "}", "return", "default_elf_select_section", "(", "decl", ",", "reloc", ",", "align", ")", ";", "}", ""], "natrual_language": ["switch", "to", "the", "appropriate", "section", "for", "output", "of", "DECL", ".", "DECL", "is", "either", "a", "`", "VAR_DECL", "'", "node", "or", "a", "constant", "of", "some", "sort", ".", "RELOC", "indicates", "whether", "forming", "the", "initial", "value", "of", "DECL", "requires", "link-time", "relocations", "."], "TS_V_token": ["i386", "\".ldata\"", "\".ldata.rel\"", "\".ldata.rel.local\"", "\".ldata.rel.ro\"", "\".ldata.rel.ro.local\"", "\".lbss\"", "\".lrodata\""], "File": "i386", "Func": "x86_64_elf_select_section", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2178, "Length": 202, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ARMBaseInstrInfo", "::", "getInstrLatency", "(", "const", "InstrItineraryData", "*", "ItinData", ",", "const", "MachineInstr", "*", "MI", ",", "unsigned", "*", "PredCost", ")", "const", "{", "if", "(", "MI", "->", "isCopyLike", "(", ")", "||", "MI", "->", "isInsertSubreg", "(", ")", "||", "MI", "->", "isRegSequence", "(", ")", "||", "MI", "->", "isImplicitDef", "(", ")", ")", "return", "1", ";", "if", "(", "!", "ItinData", "||", "ItinData", "->", "isEmpty", "(", ")", ")", "return", "1", ";", "if", "(", "MI", "->", "isBundle", "(", ")", ")", "{", "int", "Latency", "=", "0", ";", "MachineBasicBlock", "::", "const_instr_iterator", "I", "=", "MI", ";", "MachineBasicBlock", "::", "const_instr_iterator", "E", "=", "MI", "->", "getParent", "(", ")", "->", "instr_end", "(", ")", ";", "while", "(", "++", "I", "!=", "E", "&&", "I", "->", "isInsideBundle", "(", ")", ")", "{", "if", "(", "I", "->", "getOpcode", "(", ")", "!=", "ARM", "::", "t2IT", ")", "Latency", "+=", "getInstrLatency", "(", "ItinData", ",", "I", ",", "PredCost", ")", ";", "}", "return", "Latency", ";", "}", "const", "MCInstrDesc", "&", "MCID", "=", "MI", "->", "getDesc", "(", ")", ";", "unsigned", "Class", "=", "MCID", ".", "getSchedClass", "(", ")", ";", "unsigned", "UOps", "=", "ItinData", "->", "Itineraries", "[", "Class", "]", ".", "NumMicroOps", ";", "if", "(", "PredCost", "&&", "(", "MCID", ".", "isCall", "(", ")", "||", "MCID", ".", "hasImplicitDefOfPhysReg", "(", "ARM", "::", "CPSR", ")", ")", ")", "*", "PredCost", "=", "1", ";", "if", "(", "UOps", ")", "return", "ItinData", "->", "getStageLatency", "(", "Class", ")", ";", "return", "getNumMicroOps", "(", "ItinData", ",", "MI", ")", ";", "}", ""], "natrual_language": ["Compute", "the", "instruction", "latency", "of", "a", "given", "instruction", "."], "TS_V_token": ["ARM", "ARM", "1", "1", "0", "ARM::t2IT", "ARM::CPSR", "1"], "File": "ARMBaseInstrInfo (2)4", "Func": "getInstrLatency", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2179, "Length": 221, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "PPCInstrInfo", "::", "getOperandLatency", "(", "const", "InstrItineraryData", "*", "ItinData", ",", "const", "MachineInstr", "&", "DefMI", ",", "unsigned", "DefIdx", ",", "const", "MachineInstr", "&", "UseMI", ",", "unsigned", "UseIdx", ")", "const", "{", "int", "Latency", "=", "PPCGenInstrInfo", "::", "getOperandLatency", "(", "ItinData", ",", "DefMI", ",", "DefIdx", ",", "UseMI", ",", "UseIdx", ")", ";", "if", "(", "!", "DefMI", ".", "getParent", "(", ")", ")", "return", "Latency", ";", "const", "MachineOperand", "&", "DefMO", "=", "DefMI", ".", "getOperand", "(", "DefIdx", ")", ";", "unsigned", "Reg", "=", "DefMO", ".", "getReg", "(", ")", ";", "bool", "IsRegCR", ";", "if", "(", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "Reg", ")", ")", "{", "const", "MachineRegisterInfo", "*", "MRI", "=", "&", "DefMI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "IsRegCR", "=", "MRI", "->", "getRegClass", "(", "Reg", ")", "->", "hasSuperClassEq", "(", "&", "PPC", "::", "CRRCRegClass", ")", "||", "MRI", "->", "getRegClass", "(", "Reg", ")", "->", "hasSuperClassEq", "(", "&", "PPC", "::", "CRBITRCRegClass", ")", ";", "}", "else", "{", "IsRegCR", "=", "PPC", "::", "CRRCRegClass", ".", "contains", "(", "Reg", ")", "||", "PPC", "::", "CRBITRCRegClass", ".", "contains", "(", "Reg", ")", ";", "}", "if", "(", "UseMI", ".", "isBranch", "(", ")", "&&", "IsRegCR", ")", "{", "if", "(", "Latency", "<", "0", ")", "Latency", "=", "getInstrLatency", "(", "ItinData", ",", "DefMI", ")", ";", "unsigned", "Directive", "=", "Subtarget", ".", "getMcpu", "(", ")", ";", "switch", "(", "Directive", ")", "{", "default", ":", "break", ";", "case", "PPC", "::", "MCPU_7400", ":", "case", "PPC", "::", "MCPU_750", ":", "case", "PPC", "::", "MCPU_970", ":", "case", "PPC", "::", "MCPU_E5500", ":", "case", "PPC", "::", "MCPU_PWR4", ":", "case", "PPC", "::", "MCPU_PWR5", ":", "case", "PPC", "::", "MCPU_PWR5X", ":", "case", "PPC", "::", "MCPU_PWR6", ":", "case", "PPC", "::", "MCPU_PWR6X", ":", "case", "PPC", "::", "MCPU_PWR7", ":", "case", "PPC", "::", "MCPU_PWR8", ":", "Latency", "+=", "2", ";", "break", ";", "}", "}", "return", "Latency", ";", "}", ""], "natrual_language": ["Compute", "and", "return", "the", "use", "operand", "latency", "of", "a", "given", "pair", "of", "def", "and", "use", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC::CRRCRegClass", "PPC::CRBITRCRegClass", "PPC::CRRCRegClass", "PPC::CRBITRCRegClass", "0", "PPC::MCPU_7400", "PPC::MCPU_750", "PPC::MCPU_970", "PPC::MCPU_E5500", "PPC::MCPU_PWR4", "PPC::MCPU_PWR5", "PPC::MCPU_PWR5X", "PPC::MCPU_PWR6", "PPC::MCPU_PWR6X", "PPC::MCPU_PWR7", "PPC::MCPU_PWR8", "2"], "File": "PPCInstrInfo31", "Func": "getOperandLatency", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2180, "Length": 279, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "int", "and_xor_ior_costs", "(", "rtx", "x", ",", "int", "code", ")", "{", "const", "int", "cost_scale", "=", "!", "TARGET_SHMEDIA", "&&", "GET_MODE_SIZE", "(", "GET_MODE", "(", "x", ")", ")", ">", "UNITS_PER_WORD", "?", "2", ":", "1", ";", "if", "(", "!", "CONST_INT_P", "(", "XEXP", "(", "x", ",", "1", ")", ")", ")", "return", "1", "*", "cost_scale", ";", "int", "i", "=", "INTVAL", "(", "XEXP", "(", "x", ",", "1", ")", ")", ";", "if", "(", "TARGET_SHMEDIA", ")", "{", "if", "(", "satisfies_constraint_I10", "(", "XEXP", "(", "x", ",", "1", ")", ")", "||", "satisfies_constraint_J16", "(", "XEXP", "(", "x", ",", "1", ")", ")", ")", "return", "1", ";", "else", "return", "1", "+", "rtx_cost", "(", "XEXP", "(", "x", ",", "1", ")", ",", "AND", ",", "1", ",", "!", "optimize_size", ")", ";", "}", "if", "(", "(", "i", "==", "0xff", "||", "i", "==", "0xffff", ")", "&&", "code", "==", "AND", ")", "return", "1", "*", "cost_scale", ";", "if", "(", "CONST_OK_FOR_K08", "(", "i", ")", ")", "return", "2", "*", "cost_scale", ";", "if", "(", "CONST_OK_FOR_I08", "(", "i", ")", ")", "return", "2", "*", "cost_scale", ";", "return", "3", "*", "cost_scale", ";", "}", ""], "natrual_language": ["Return", "the", "cost", "of", "an", "AND/XOR/IOR", "operation", "."], "TS_V_token": ["sh", "2", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "0xff", "0xffff", "1", "2", "2", "3"], "File": "sh4", "Func": "and_xor_ior_costs", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2181, "Length": 167, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_elf_output_toc_section_asm_op", "(", "const", "void", "*", "data", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "(", "DEFAULT_ABI", "==", "ABI_AIX", "||", "DEFAULT_ABI", "==", "ABI_ELFv2", ")", "&&", "TARGET_MINIMAL_TOC", ")", "{", "if", "(", "!", "toc_initialized", ")", "{", "fprintf", "(", "asm_out_file", ",", "\"%s\\n\"", ",", "TOC_SECTION_ASM_OP", ")", ";", "ASM_OUTPUT_ALIGN", "(", "asm_out_file", ",", "TARGET_64BIT", "?", "3", ":", "2", ")", ";", "(", "*", "targetm", ".", "asm_out", ".", "internal_label", ")", "(", "asm_out_file", ",", "\"LCTOC\"", ",", "0", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t.tc \"", ")", ";", "ASM_OUTPUT_INTERNAL_LABEL_PREFIX", "(", "asm_out_file", ",", "\"LCTOC1[TC],\"", ")", ";", "ASM_OUTPUT_INTERNAL_LABEL_PREFIX", "(", "asm_out_file", ",", "\"LCTOC1\"", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\n\"", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"%s\\n\"", ",", "MINIMAL_TOC_SECTION_ASM_OP", ")", ";", "ASM_OUTPUT_ALIGN", "(", "asm_out_file", ",", "TARGET_64BIT", "?", "3", ":", "2", ")", ";", "ASM_OUTPUT_INTERNAL_LABEL_PREFIX", "(", "asm_out_file", ",", "\"LCTOC1\"", ")", ";", "fprintf", "(", "asm_out_file", ",", "\" = .+32768\\n\"", ")", ";", "toc_initialized", "=", "1", ";", "}", "else", "fprintf", "(", "asm_out_file", ",", "\"%s\\n\"", ",", "MINIMAL_TOC_SECTION_ASM_OP", ")", ";", "}", "else", "if", "(", "DEFAULT_ABI", "==", "ABI_AIX", "||", "DEFAULT_ABI", "==", "ABI_ELFv2", ")", "{", "fprintf", "(", "asm_out_file", ",", "\"%s\\n\"", ",", "TOC_SECTION_ASM_OP", ")", ";", "if", "(", "!", "toc_initialized", ")", "{", "ASM_OUTPUT_ALIGN", "(", "asm_out_file", ",", "TARGET_64BIT", "?", "3", ":", "2", ")", ";", "toc_initialized", "=", "1", ";", "}", "}", "else", "{", "fprintf", "(", "asm_out_file", ",", "\"%s\\n\"", ",", "MINIMAL_TOC_SECTION_ASM_OP", ")", ";", "if", "(", "!", "toc_initialized", ")", "{", "ASM_OUTPUT_ALIGN", "(", "asm_out_file", ",", "TARGET_64BIT", "?", "3", ":", "2", ")", ";", "ASM_OUTPUT_INTERNAL_LABEL_PREFIX", "(", "asm_out_file", ",", "\"LCTOC1\"", ")", ";", "fprintf", "(", "asm_out_file", ",", "\" = .+32768\\n\"", ")", ";", "toc_initialized", "=", "1", ";", "}", "}", "}", ""], "natrual_language": ["A", "get_unnamed_section", "callback", ",", "used", "for", "switching", "to", "toc_section", "."], "TS_V_token": ["powerpcspe", "\"%s\\n\"", "3", "2", "\"LCTOC\"", "0", "\"\\t.tc \"", "\"LCTOC1[TC],\"", "\"LCTOC1\"", "\"\\n\"", "\"%s\\n\"", "3", "2", "\"LCTOC1\"", "\" = .+32768\\n\"", "1", "\"%s\\n\"", "\"%s\\n\"", "3", "2", "1", "\"%s\\n\"", "3", "2", "\"LCTOC1\"", "\" = .+32768\\n\"", "1"], "File": "powerpcspe", "Func": "rs6000_elf_output_toc_section_asm_op", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2182, "Length": 239, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "mips_expand_vec_reduc", "(", "rtx", "target", ",", "rtx", "in", ",", "rtx", "(", "*", "gen", ")", "(", "rtx", ",", "rtx", ",", "rtx", ")", ")", "{", "machine_mode", "vmode", "=", "GET_MODE", "(", "in", ")", ";", "unsigned", "char", "perm2", "[", "2", "]", ";", "rtx", "last", ",", "next", ",", "fold", ",", "x", ";", "bool", "ok", ";", "last", "=", "in", ";", "fold", "=", "gen_reg_rtx", "(", "vmode", ")", ";", "switch", "(", "vmode", ")", "{", "case", "E_V2SFmode", ":", "perm2", "[", "0", "]", "=", "1", ";", "perm2", "[", "1", "]", "=", "2", ";", "ok", "=", "mips_expand_vselect_vconcat", "(", "fold", ",", "last", ",", "last", ",", "perm2", ",", "2", ")", ";", "gcc_assert", "(", "ok", ")", ";", "break", ";", "case", "E_V2SImode", ":", "emit_insn", "(", "gen_loongson_punpckhwd", "(", "fold", ",", "last", ",", "last", ")", ")", ";", "break", ";", "case", "E_V4HImode", ":", "emit_insn", "(", "gen_loongson_punpckhwd_hi", "(", "fold", ",", "last", ",", "last", ")", ")", ";", "next", "=", "gen_reg_rtx", "(", "vmode", ")", ";", "emit_insn", "(", "gen", "(", "next", ",", "last", ",", "fold", ")", ")", ";", "last", "=", "next", ";", "fold", "=", "gen_reg_rtx", "(", "vmode", ")", ";", "x", "=", "force_reg", "(", "SImode", ",", "GEN_INT", "(", "16", ")", ")", ";", "emit_insn", "(", "gen_vec_shr_v4hi", "(", "fold", ",", "last", ",", "x", ")", ")", ";", "break", ";", "case", "E_V8QImode", ":", "emit_insn", "(", "gen_loongson_punpckhwd_qi", "(", "fold", ",", "last", ",", "last", ")", ")", ";", "next", "=", "gen_reg_rtx", "(", "vmode", ")", ";", "emit_insn", "(", "gen", "(", "next", ",", "last", ",", "fold", ")", ")", ";", "last", "=", "next", ";", "fold", "=", "gen_reg_rtx", "(", "vmode", ")", ";", "x", "=", "force_reg", "(", "SImode", ",", "GEN_INT", "(", "16", ")", ")", ";", "emit_insn", "(", "gen_vec_shr_v8qi", "(", "fold", ",", "last", ",", "x", ")", ")", ";", "next", "=", "gen_reg_rtx", "(", "vmode", ")", ";", "emit_insn", "(", "gen", "(", "next", ",", "last", ",", "fold", ")", ")", ";", "last", "=", "next", ";", "fold", "=", "gen_reg_rtx", "(", "vmode", ")", ";", "x", "=", "force_reg", "(", "SImode", ",", "GEN_INT", "(", "8", ")", ")", ";", "emit_insn", "(", "gen_vec_shr_v8qi", "(", "fold", ",", "last", ",", "x", ")", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "emit_insn", "(", "gen", "(", "target", ",", "last", ",", "fold", ")", ")", ";", "}", ""], "natrual_language": ["Expand", "a", "vector", "reduction", "."], "TS_V_token": ["mips", "2", "0", "1", "1", "2", "2", "16", "16", "8"], "File": "mips", "Func": "mips_expand_vec_reduc", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2183, "Length": 338, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "mayBeEmittedAsTailCall", "(", "const", "CallInst", "*", "CI", ")", "const", "{", "auto", "Attr", "=", "CI", "->", "getParent", "(", ")", "->", "getParent", "(", ")", "->", "getFnAttribute", "(", "\"disable-tail-calls\"", ")", ";", "if", "(", "!", "CI", "->", "isTailCall", "(", ")", "||", "Attr", ".", "getValueAsString", "(", ")", "==", "\"true\"", ")", "return", "false", ";", "ImmutableCallSite", "CS", "(", "CI", ")", ";", "CallingConv", "::", "ID", "CalleeCC", "=", "CS", ".", "getCallingConv", "(", ")", ";", "if", "(", "!", "mayTailCallThisCC", "(", "CalleeCC", ",", "Subtarget", ".", "isTargetWin64", "(", ")", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "may", "be", "able", "emit", "the", "call", "instruction", "as", "a", "tail", "call", "."], "TS_V_token": ["X86", "X86", "\"disable-tail-calls\"", "\"true\""], "File": "X86ISelLowering46", "Func": "mayBeEmittedAsTailCall", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2184, "Length": 88, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86InstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FrameIdx", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "const", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "assert", "(", "MF", ".", "getFrameInfo", "(", ")", "->", "getObjectSize", "(", "FrameIdx", ")", ">=", "RC", "->", "getSize", "(", ")", "&&", "\"Stack slot too small for store\"", ")", ";", "unsigned", "Alignment", "=", "std", "::", "max", "<", "uint32_t", ">", "(", "RC", "->", "getSize", "(", ")", ",", "16", ")", ";", "bool", "isAligned", "=", "(", "TM", ".", "getFrameLowering", "(", ")", "->", "getStackAlignment", "(", ")", ">=", "Alignment", ")", "||", "RI", ".", "canRealignStack", "(", "MF", ")", ";", "unsigned", "Opc", "=", "getStoreRegOpcode", "(", "SrcReg", ",", "RC", ",", "isAligned", ",", "TM", ")", ";", "DebugLoc", "DL", "=", "MBB", ".", "findDebugLoc", "(", "MI", ")", ";", "addFrameReference", "(", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "Opc", ")", ")", ",", "FrameIdx", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["X86", "X86", "\"Stack slot too small for store\"", "16"], "File": "X86InstrInfo (2)", "Func": "storeRegToStackSlot", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2185, "Length": 166, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "nds32_emit_stack_v3pop", "(", "unsigned", "Rb", ",", "unsigned", "Re", ",", "unsigned", "imm8u", ")", "{", "unsigned", "regno", ";", "int", "num_use_regs", ";", "int", "par_index", ";", "int", "offset", ";", "rtx", "reg", ";", "rtx", "mem", ";", "rtx", "pop_rtx", ";", "rtx", "adjust_sp_rtx", ";", "rtx", "parallel_insn", ";", "rtx", "dwarf", "=", "NULL_RTX", ";", "num_use_regs", "=", "Re", "-", "Rb", "+", "1", "+", "3", ";", "parallel_insn", "=", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "rtvec_alloc", "(", "num_use_regs", "+", "1", ")", ")", ";", "par_index", "=", "0", ";", "offset", "=", "0", ";", "for", "(", "regno", "=", "Rb", ";", "regno", "<=", "Re", ";", "regno", "++", ")", "{", "reg", "=", "gen_rtx_REG", "(", "SImode", ",", "regno", ")", ";", "mem", "=", "gen_frame_mem", "(", "SImode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ";", "pop_rtx", "=", "gen_rtx_SET", "(", "reg", ",", "mem", ")", ";", "XVECEXP", "(", "parallel_insn", ",", "0", ",", "par_index", ")", "=", "pop_rtx", ";", "RTX_FRAME_RELATED_P", "(", "pop_rtx", ")", "=", "1", ";", "offset", "=", "offset", "+", "4", ";", "par_index", "++", ";", "dwarf", "=", "alloc_reg_note", "(", "REG_CFA_RESTORE", ",", "reg", ",", "dwarf", ")", ";", "}", "reg", "=", "gen_rtx_REG", "(", "SImode", ",", "FP_REGNUM", ")", ";", "mem", "=", "gen_frame_mem", "(", "SImode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ";", "pop_rtx", "=", "gen_rtx_SET", "(", "reg", ",", "mem", ")", ";", "XVECEXP", "(", "parallel_insn", ",", "0", ",", "par_index", ")", "=", "pop_rtx", ";", "RTX_FRAME_RELATED_P", "(", "pop_rtx", ")", "=", "1", ";", "offset", "=", "offset", "+", "4", ";", "par_index", "++", ";", "dwarf", "=", "alloc_reg_note", "(", "REG_CFA_RESTORE", ",", "reg", ",", "dwarf", ")", ";", "reg", "=", "gen_rtx_REG", "(", "SImode", ",", "GP_REGNUM", ")", ";", "mem", "=", "gen_frame_mem", "(", "SImode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ";", "pop_rtx", "=", "gen_rtx_SET", "(", "reg", ",", "mem", ")", ";", "XVECEXP", "(", "parallel_insn", ",", "0", ",", "par_index", ")", "=", "pop_rtx", ";", "RTX_FRAME_RELATED_P", "(", "pop_rtx", ")", "=", "1", ";", "offset", "=", "offset", "+", "4", ";", "par_index", "++", ";", "dwarf", "=", "alloc_reg_note", "(", "REG_CFA_RESTORE", ",", "reg", ",", "dwarf", ")", ";", "reg", "=", "gen_rtx_REG", "(", "SImode", ",", "LP_REGNUM", ")", ";", "mem", "=", "gen_frame_mem", "(", "SImode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ";", "pop_rtx", "=", "gen_rtx_SET", "(", "reg", ",", "mem", ")", ";", "XVECEXP", "(", "parallel_insn", ",", "0", ",", "par_index", ")", "=", "pop_rtx", ";", "RTX_FRAME_RELATED_P", "(", "pop_rtx", ")", "=", "1", ";", "offset", "=", "offset", "+", "4", ";", "par_index", "++", ";", "dwarf", "=", "alloc_reg_note", "(", "REG_CFA_RESTORE", ",", "reg", ",", "dwarf", ")", ";", "adjust_sp_rtx", "=", "gen_rtx_SET", "(", "stack_pointer_rtx", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", "+", "imm8u", ")", ")", ";", "XVECEXP", "(", "parallel_insn", ",", "0", ",", "par_index", ")", "=", "adjust_sp_rtx", ";", "if", "(", "frame_pointer_needed", ")", "{", "rtx", "cfa_adjust_rtx", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "const0_rtx", ")", ";", "dwarf", "=", "alloc_reg_note", "(", "REG_CFA_DEF_CFA", ",", "cfa_adjust_rtx", ",", "dwarf", ")", ";", "}", "else", "{", "dwarf", "=", "alloc_reg_note", "(", "REG_CFA_ADJUST_CFA", ",", "copy_rtx", "(", "adjust_sp_rtx", ")", ",", "dwarf", ")", ";", "}", "parallel_insn", "=", "emit_insn", "(", "parallel_insn", ")", ";", "RTX_FRAME_RELATED_P", "(", "parallel_insn", ")", "=", "1", ";", "REG_NOTES", "(", "parallel_insn", ")", "=", "dwarf", ";", "}", ""], "natrual_language": ["Function", "to", "create", "a", "parallel", "rtx", "pattern", "which", "presents", "stack", "v3pop", "behavior", ".", "The", "overall", "concept", "are", ":", "``", "pop", "registers", "from", "memory", "''", ",", "``", "adjust", "stack", "pointer", "''", "."], "TS_V_token": ["nds32", "1", "3", "1", "0", "0", "0", "1", "4", "0", "1", "4", "0", "1", "4", "0", "1", "4", "0", "1"], "File": "nds32", "Func": "nds32_emit_stack_v3pop", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2186, "Length": 478, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64TargetLowering", "::", "lowerInterleavedStore", "(", "StoreInst", "*", "SI", ",", "ShuffleVectorInst", "*", "SVI", ",", "unsigned", "Factor", ")", "const", "{", "assert", "(", "Factor", ">=", "2", "&&", "Factor", "<=", "getMaxSupportedInterleaveFactor", "(", ")", "&&", "\"Invalid interleave factor\"", ")", ";", "VectorType", "*", "VecTy", "=", "SVI", "->", "getType", "(", ")", ";", "assert", "(", "VecTy", "->", "getVectorNumElements", "(", ")", "%", "Factor", "==", "0", "&&", "\"Invalid interleaved store\"", ")", ";", "unsigned", "LaneLen", "=", "VecTy", "->", "getVectorNumElements", "(", ")", "/", "Factor", ";", "Type", "*", "EltTy", "=", "VecTy", "->", "getVectorElementType", "(", ")", ";", "VectorType", "*", "SubVecTy", "=", "VectorType", "::", "get", "(", "EltTy", ",", "LaneLen", ")", ";", "const", "DataLayout", "&", "DL", "=", "SI", "->", "getModule", "(", ")", "->", "getDataLayout", "(", ")", ";", "unsigned", "SubVecSize", "=", "DL", ".", "getTypeSizeInBits", "(", "SubVecTy", ")", ";", "if", "(", "!", "Subtarget", "->", "hasNEON", "(", ")", "||", "(", "SubVecSize", "!=", "64", "&&", "SubVecSize", "!=", "128", ")", ")", "return", "false", ";", "Value", "*", "Op0", "=", "SVI", "->", "getOperand", "(", "0", ")", ";", "Value", "*", "Op1", "=", "SVI", "->", "getOperand", "(", "1", ")", ";", "IRBuilder", "<", ">", "Builder", "(", "SI", ")", ";", "if", "(", "EltTy", "->", "isPointerTy", "(", ")", ")", "{", "Type", "*", "IntTy", "=", "DL", ".", "getIntPtrType", "(", "EltTy", ")", ";", "unsigned", "NumOpElts", "=", "dyn_cast", "<", "VectorType", ">", "(", "Op0", "->", "getType", "(", ")", ")", "->", "getVectorNumElements", "(", ")", ";", "Type", "*", "IntVecTy", "=", "VectorType", "::", "get", "(", "IntTy", ",", "NumOpElts", ")", ";", "Op0", "=", "Builder", ".", "CreatePtrToInt", "(", "Op0", ",", "IntVecTy", ")", ";", "Op1", "=", "Builder", ".", "CreatePtrToInt", "(", "Op1", ",", "IntVecTy", ")", ";", "SubVecTy", "=", "VectorType", "::", "get", "(", "IntTy", ",", "LaneLen", ")", ";", "}", "Type", "*", "PtrTy", "=", "SubVecTy", "->", "getPointerTo", "(", "SI", "->", "getPointerAddressSpace", "(", ")", ")", ";", "Type", "*", "Tys", "[", "2", "]", "=", "{", "SubVecTy", ",", "PtrTy", "}", ";", "static", "const", "Intrinsic", "::", "ID", "StoreInts", "[", "3", "]", "=", "{", "Intrinsic", "::", "aarch64_neon_st2", ",", "Intrinsic", "::", "aarch64_neon_st3", ",", "Intrinsic", "::", "aarch64_neon_st4", "}", ";", "Function", "*", "StNFunc", "=", "Intrinsic", "::", "getDeclaration", "(", "SI", "->", "getModule", "(", ")", ",", "StoreInts", "[", "Factor", "-", "2", "]", ",", "Tys", ")", ";", "SmallVector", "<", "Value", "*", ",", "5", ">", "Ops", ";", "auto", "Mask", "=", "SVI", "->", "getShuffleMask", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "Factor", ";", "i", "++", ")", "{", "if", "(", "Mask", "[", "i", "]", ">=", "0", ")", "{", "Ops", ".", "push_back", "(", "Builder", ".", "CreateShuffleVector", "(", "Op0", ",", "Op1", ",", "getSequentialMask", "(", "Builder", ",", "Mask", "[", "i", "]", ",", "LaneLen", ")", ")", ")", ";", "}", "else", "{", "unsigned", "StartMask", "=", "0", ";", "for", "(", "unsigned", "j", "=", "1", ";", "j", "<", "LaneLen", ";", "j", "++", ")", "{", "if", "(", "Mask", "[", "j", "*", "Factor", "+", "i", "]", ">=", "0", ")", "{", "StartMask", "=", "Mask", "[", "j", "*", "Factor", "+", "i", "]", "-", "j", ";", "break", ";", "}", "}", "Ops", ".", "push_back", "(", "Builder", ".", "CreateShuffleVector", "(", "Op0", ",", "Op1", ",", "getSequentialMask", "(", "Builder", ",", "StartMask", ",", "LaneLen", ")", ")", ")", ";", "}", "}", "Ops", ".", "push_back", "(", "Builder", ".", "CreateBitCast", "(", "SI", "->", "getPointerOperand", "(", ")", ",", "PtrTy", ")", ")", ";", "Builder", ".", "CreateCall", "(", "StNFunc", ",", "Ops", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Lower", "interleaved", "store", "(", "s", ")", "into", "target", "specific", "instructions/intrinsics", "."], "TS_V_token": ["AArch64", "AArch64", "2", "\"Invalid interleave factor\"", "0", "\"Invalid interleaved store\"", "64", "128", "0", "1", "2", "Intrinsic::ID", "3", "Intrinsic::aarch64_neon_st2", "Intrinsic::aarch64_neon_st3", "Intrinsic::aarch64_neon_st4", "Intrinsic::getDeclaration", "2", "5", "0", "0", "0", "1", "0"], "File": "AArch64ISelLowering119", "Func": "lowerInterleavedStore", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2187, "Length": 510, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "::", "iterator", "X86FrameLowering", "::", "restoreWin32EHStackPointers", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MBBI", ",", "DebugLoc", "DL", ",", "bool", "RestoreSP", ")", "const", "{", "assert", "(", "STI", ".", "isTargetWindowsMSVC", "(", ")", "&&", "\"funclets only supported in MSVC env\"", ")", ";", "assert", "(", "STI", ".", "isTargetWin32", "(", ")", "&&", "\"EBP/ESI restoration only required on win32\"", ")", ";", "assert", "(", "STI", ".", "is32Bit", "(", ")", "&&", "!", "Uses64BitFramePtr", "&&", "\"restoring EBP/ESI on non-32-bit target\"", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "unsigned", "FramePtr", "=", "TRI", "->", "getFrameRegister", "(", "MF", ")", ";", "unsigned", "BasePtr", "=", "TRI", "->", "getBaseRegister", "(", ")", ";", "MachineModuleInfo", "&", "MMI", "=", "MF", ".", "getMMI", "(", ")", ";", "const", "Function", "*", "Fn", "=", "MF", ".", "getFunction", "(", ")", ";", "WinEHFuncInfo", "&", "FuncInfo", "=", "MMI", ".", "getWinEHFuncInfo", "(", "Fn", ")", ";", "X86MachineFunctionInfo", "*", "X86FI", "=", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", ";", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "int", "FI", "=", "FuncInfo", ".", "EHRegNodeFrameIndex", ";", "int", "EHRegSize", "=", "MFI", "->", "getObjectSize", "(", "FI", ")", ";", "if", "(", "RestoreSP", ")", "{", "addRegOffset", "(", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "X86", "::", "MOV32rm", ")", ",", "X86", "::", "ESP", ")", ",", "X86", "::", "EBP", ",", "true", ",", "-", "EHRegSize", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ";", "}", "unsigned", "UsedReg", ";", "int", "EHRegOffset", "=", "getFrameIndexReference", "(", "MF", ",", "FI", ",", "UsedReg", ")", ";", "int", "EndOffset", "=", "-", "EHRegOffset", "-", "EHRegSize", ";", "FuncInfo", ".", "EHRegNodeEndOffset", "=", "EndOffset", ";", "if", "(", "UsedReg", "==", "FramePtr", ")", "{", "unsigned", "ADDri", "=", "getADDriOpcode", "(", "false", ",", "EndOffset", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "ADDri", ")", ",", "FramePtr", ")", ".", "addReg", "(", "FramePtr", ")", ".", "addImm", "(", "EndOffset", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameSetup", ")", "->", "getOperand", "(", "3", ")", ".", "setIsDead", "(", ")", ";", "assert", "(", "EndOffset", ">=", "0", "&&", "\"end of registration object above normal EBP position!\"", ")", ";", "}", "else", "if", "(", "UsedReg", "==", "BasePtr", ")", "{", "addRegOffset", "(", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "X86", "::", "LEA32r", ")", ",", "BasePtr", ")", ",", "FramePtr", ",", "false", ",", "EndOffset", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ";", "assert", "(", "X86FI", "->", "getHasSEHFramePtrSave", "(", ")", ")", ";", "int", "Offset", "=", "getFrameIndexReference", "(", "MF", ",", "X86FI", "->", "getSEHFramePtrSaveIndex", "(", ")", ",", "UsedReg", ")", ";", "assert", "(", "UsedReg", "==", "BasePtr", ")", ";", "addRegOffset", "(", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "X86", "::", "MOV32rm", ")", ",", "FramePtr", ")", ",", "UsedReg", ",", "true", ",", "Offset", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ";", "}", "else", "{", "llvm_unreachable", "(", "\"32-bit frames with WinEH must use FramePtr or BasePtr\"", ")", ";", "}", "return", "MBBI", ";", "}", ""], "natrual_language": ["Sets", "up", "EBP", "and", "optionally", "ESI", "based", "on", "the", "incoming", "EBP", "value", "."], "TS_V_token": ["X86", "X86", "\"funclets only supported in MSVC env\"", "\"EBP/ESI restoration only required on win32\"", "\"restoring EBP/ESI on non-32-bit target\"", "X86", "X86", "X86", "X86::MOV32rm", "X86::ESP", "X86::EBP", "3", "0", "\"end of registration object above normal EBP position!\"", "X86::LEA32r", "X86", "X86", "X86::MOV32rm", "\"32-bit frames with WinEH must use FramePtr or BasePtr\""], "File": "X86FrameLowering", "Func": "restoreWin32EHStackPointers", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2188, "Length": 434, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "AArch64TargetLowering", "::", "getTargetNode", "(", "GlobalAddressSDNode", "*", "N", ",", "EVT", "Ty", ",", "SelectionDAG", "&", "DAG", ",", "unsigned", "Flag", ")", "const", "{", "return", "DAG", ".", "getTargetGlobalAddress", "(", "N", "->", "getGlobal", "(", ")", ",", "SDLoc", "(", "N", ")", ",", "Ty", ",", "0", ",", "Flag", ")", ";", "}", ""], "natrual_language": ["Retrieve", "the", "target", "node", "this", "edge", "connects", "to", "."], "TS_V_token": ["AArch64", "AArch64", "0"], "File": "AArch64ISelLowering105", "Func": "getTargetNode", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2189, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "SystemZTargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", ",", "SDLoc", "DL", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RetLocs", ";", "CCState", "RetCCInfo", "(", "CallConv", ",", "IsVarArg", ",", "MF", ",", "RetLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "RetCCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_SystemZ", ")", ";", "if", "(", "RetLocs", ".", "empty", "(", ")", ")", "return", "DAG", ".", "getNode", "(", "SystemZISD", "::", "RET_FLAG", ",", "DL", ",", "MVT", "::", "Other", ",", "Chain", ")", ";", "SDValue", "Glue", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", ";", "RetOps", ".", "push_back", "(", "Chain", ")", ";", "for", "(", "unsigned", "I", "=", "0", ",", "E", "=", "RetLocs", ".", "size", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "CCValAssign", "&", "VA", "=", "RetLocs", "[", "I", "]", ";", "SDValue", "RetValue", "=", "OutVals", "[", "I", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Can only return in registers!\"", ")", ";", "RetValue", "=", "convertValVTToLocVT", "(", "DAG", ",", "DL", ",", "VA", ",", "RetValue", ")", ";", "unsigned", "Reg", "=", "VA", ".", "getLocReg", "(", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "Reg", ",", "RetValue", ",", "Glue", ")", ";", "Glue", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "Reg", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "RetOps", "[", "0", "]", "=", "Chain", ";", "if", "(", "Glue", ".", "getNode", "(", ")", ")", "RetOps", ".", "push_back", "(", "Glue", ")", ";", "return", "DAG", ".", "getNode", "(", "SystemZISD", "::", "RET_FLAG", ",", "DL", ",", "MVT", "::", "Other", ",", "RetOps", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["SystemZ", "SystemZ", "ISD::OutputArg", "16", "SystemZ", "SystemZISD::RET_FLAG", "MVT::Other", "4", "0", "\"Can only return in registers!\"", "1", "0", "SystemZISD::RET_FLAG", "MVT::Other"], "File": "SystemZISelLowering111", "Func": "LowerReturn", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2190, "Length": 292, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "AtomicExpansionKind", "AArch64TargetLowering", "::", "shouldExpandAtomicRMWInIR", "(", "AtomicRMWInst", "*", "AI", ")", "const", "{", "if", "(", "AI", "->", "isFloatingPointOperation", "(", ")", ")", "return", "AtomicExpansionKind", "::", "CmpXChg", ";", "unsigned", "Size", "=", "AI", "->", "getType", "(", ")", "->", "getPrimitiveSizeInBits", "(", ")", ";", "if", "(", "Size", ">", "128", ")", "return", "AtomicExpansionKind", "::", "None", ";", "if", "(", "AI", "->", "getOperation", "(", ")", "!=", "AtomicRMWInst", "::", "Nand", "&&", "Size", "<", "128", ")", "{", "if", "(", "Subtarget", "->", "hasLSE", "(", ")", ")", "return", "AtomicExpansionKind", "::", "None", ";", "if", "(", "Subtarget", "->", "outlineAtomics", "(", ")", ")", "{", "if", "(", "AI", "->", "getOperation", "(", ")", "!=", "AtomicRMWInst", "::", "Min", "&&", "AI", "->", "getOperation", "(", ")", "!=", "AtomicRMWInst", "::", "Max", "&&", "AI", "->", "getOperation", "(", ")", "!=", "AtomicRMWInst", "::", "UMin", "&&", "AI", "->", "getOperation", "(", ")", "!=", "AtomicRMWInst", "::", "UMax", ")", "{", "return", "AtomicExpansionKind", "::", "None", ";", "}", "}", "}", "if", "(", "getTargetMachine", "(", ")", ".", "getOptLevel", "(", ")", "==", "CodeGenOpt", "::", "None", ")", "return", "AtomicExpansionKind", "::", "CmpXChg", ";", "return", "AtomicExpansionKind", "::", "LLSC", ";", "}", ""], "natrual_language": ["Returns", "how", "the", "IR-level", "AtomicExpand", "pass", "should", "expand", "the", "given", "AtomicRMW", ",", "if", "at", "all", "."], "TS_V_token": ["AArch64", "AArch64", "128", "128"], "File": "AArch64ISelLowering (2)2", "Func": "shouldExpandAtomicRMWInIR", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2191, "Length": 165, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "int", "LC2200AsmBackend", "::", "getNumFixupKinds", "(", ")", "const", "{", "return", "LC2200", "::", "Fixups", "::", "NumTargetFixupKinds", ";", "}", ""], "natrual_language": ["Get", "the", "number", "of", "target", "specific", "fixup", "kinds", "."], "TS_V_token": ["LC2200", "LC2200", "LC2200::Fixups"], "File": "LC2200AsmBackend", "Func": "getNumFixupKinds", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2192, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "ix86_build_builtin_va_list_64", "(", "void", ")", "{", "tree", "f_gpr", ",", "f_fpr", ",", "f_ovf", ",", "f_sav", ",", "record", ",", "type_decl", ";", "record", "=", "lang_hooks", ".", "types", ".", "make_type", "(", "RECORD_TYPE", ")", ";", "type_decl", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "TYPE_DECL", ",", "get_identifier", "(", "\"__va_list_tag\"", ")", ",", "record", ")", ";", "f_gpr", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "FIELD_DECL", ",", "get_identifier", "(", "\"gp_offset\"", ")", ",", "unsigned_type_node", ")", ";", "f_fpr", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "FIELD_DECL", ",", "get_identifier", "(", "\"fp_offset\"", ")", ",", "unsigned_type_node", ")", ";", "f_ovf", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "FIELD_DECL", ",", "get_identifier", "(", "\"overflow_arg_area\"", ")", ",", "ptr_type_node", ")", ";", "f_sav", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "FIELD_DECL", ",", "get_identifier", "(", "\"reg_save_area\"", ")", ",", "ptr_type_node", ")", ";", "va_list_gpr_counter_field", "=", "f_gpr", ";", "va_list_fpr_counter_field", "=", "f_fpr", ";", "DECL_FIELD_CONTEXT", "(", "f_gpr", ")", "=", "record", ";", "DECL_FIELD_CONTEXT", "(", "f_fpr", ")", "=", "record", ";", "DECL_FIELD_CONTEXT", "(", "f_ovf", ")", "=", "record", ";", "DECL_FIELD_CONTEXT", "(", "f_sav", ")", "=", "record", ";", "TYPE_STUB_DECL", "(", "record", ")", "=", "type_decl", ";", "TYPE_NAME", "(", "record", ")", "=", "type_decl", ";", "TYPE_FIELDS", "(", "record", ")", "=", "f_gpr", ";", "DECL_CHAIN", "(", "f_gpr", ")", "=", "f_fpr", ";", "DECL_CHAIN", "(", "f_fpr", ")", "=", "f_ovf", ";", "DECL_CHAIN", "(", "f_ovf", ")", "=", "f_sav", ";", "layout_type", "(", "record", ")", ";", "return", "build_array_type", "(", "record", ",", "build_index_type", "(", "size_zero_node", ")", ")", ";", "}", ""], "natrual_language": ["Create", "the", "va_list", "data", "type", "."], "TS_V_token": ["i386", "\"__va_list_tag\"", "\"gp_offset\"", "\"fp_offset\"", "\"overflow_arg_area\"", "\"reg_save_area\""], "File": "i3865", "Func": "ix86_build_builtin_va_list_64", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2193, "Length": 206, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Cpu0AsmPrinter", "::", "lowerOperand", "(", "const", "MachineOperand", "&", "MO", ",", "MCOperand", "&", "MCOp", ")", "{", "MCOp", "=", "MCInstLowering", ".", "LowerOperand", "(", "MO", ")", ";", "return", "MCOp", ".", "isValid", "(", ")", ";", "}", ""], "natrual_language": ["Wrapper", "for", "MCInstLowering.lowerOperand", "(", ")", "for", "the", "tblgen'erated", "pseudo", "lowering", "."], "TS_V_token": ["Cpu0", "Cpu0"], "File": "Cpu0AsmPrinter", "Func": "lowerOperand", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2194, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SelectInlineAsmMemoryOperand", "(", "const", "SDValue", "&", "Op", ",", "char", "ConstraintCode", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "OutOps", ")", "override", "{", "const", "TargetRegisterInfo", "*", "TRI", "=", "PPCSubTarget", "->", "getRegisterInfo", "(", ")", ";", "const", "TargetRegisterClass", "*", "TRC", "=", "TRI", "->", "getPointerRegClass", "(", "*", "MF", ",", "1", ")", ";", "SDValue", "RC", "=", "CurDAG", "->", "getTargetConstant", "(", "TRC", "->", "getID", "(", ")", ",", "MVT", "::", "i32", ")", ";", "SDValue", "NewOp", "=", "SDValue", "(", "CurDAG", "->", "getMachineNode", "(", "TargetOpcode", "::", "COPY_TO_REGCLASS", ",", "SDLoc", "(", "Op", ")", ",", "Op", ".", "getValueType", "(", ")", ",", "Op", ",", "RC", ")", ",", "0", ")", ";", "OutOps", ".", "push_back", "(", "NewOp", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["SelectInlineAsmMemoryOperand", "-", "Select", "the", "specified", "address", "as", "a", "target", "addressing", "mode", ",", "according", "to", "the", "specified", "constraint", "."], "TS_V_token": ["PowerPC", "PPC", "1", "MVT::i32", "0"], "File": "PPCISelDAGToDAG32", "Func": "SelectInlineAsmMemoryOperand", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2195, "Length": 109, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86TargetLowering", "::", "getNumRegistersForCallingConv", "(", "LLVMContext", "&", "Context", ",", "CallingConv", "::", "ID", "CC", ",", "EVT", "VT", ")", "const", "{", "if", "(", "VT", "==", "MVT", "::", "v32i1", "&&", "Subtarget", ".", "hasAVX512", "(", ")", "&&", "!", "Subtarget", ".", "hasBWI", "(", ")", ")", "return", "1", ";", "if", "(", "(", "VT", "==", "MVT", "::", "v32i16", "||", "VT", "==", "MVT", "::", "v64i8", ")", "&&", "Subtarget", ".", "hasAVX512", "(", ")", "&&", "!", "Subtarget", ".", "hasBWI", "(", ")", "&&", "!", "EnableOldKNLABI", ")", "return", "1", ";", "return", "TargetLowering", "::", "getNumRegistersForCallingConv", "(", "Context", ",", "CC", ",", "VT", ")", ";", "}", ""], "natrual_language": ["Certain", "targets", "require", "unusual", "breakdowns", "of", "certain", "types", "."], "TS_V_token": ["X86", "X86", "MVT::v32i1", "1", "MVT::v32i16", "MVT::v64i8", "1"], "File": "X86ISelLowering151", "Func": "getNumRegistersForCallingConv", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2196, "Length": 91, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "is_store_insn1", "(", "rtx", "pat", ",", "rtx", "*", "str_mem", ")", "{", "if", "(", "!", "pat", "||", "pat", "==", "NULL_RTX", ")", "return", "false", ";", "if", "(", "GET_CODE", "(", "pat", ")", "==", "SET", ")", "{", "if", "(", "REG_P", "(", "SET_SRC", "(", "pat", ")", ")", "||", "SUBREG_P", "(", "SET_SRC", "(", "pat", ")", ")", ")", "return", "find_mem_ref", "(", "SET_DEST", "(", "pat", ")", ",", "str_mem", ")", ";", "else", "return", "false", ";", "}", "if", "(", "GET_CODE", "(", "pat", ")", "==", "PARALLEL", ")", "{", "int", "i", ";", "for", "(", "i", "=", "0", ";", "i", "<", "XVECLEN", "(", "pat", ",", "0", ")", ";", "i", "++", ")", "if", "(", "is_store_insn1", "(", "XVECEXP", "(", "pat", ",", "0", ",", "i", ")", ",", "str_mem", ")", ")", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Determine", "if", "PAT", "is", "a", "PATTERN", "of", "a", "store", "insn", "."], "TS_V_token": ["rs6000", "0", "0", "0"], "File": "rs6000", "Func": "is_store_insn1", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2197, "Length": 123, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86RegisterInfo", "::", "getRARegister", "(", ")", "const", "{", "return", "Is64Bit", "?", "X86", "::", "RIP", ":", "X86", "::", "EIP", ";", "}", ""], "natrual_language": ["This", "method", "should", "return", "the", "register", "where", "the", "return", "address", "can", "be", "found", "."], "TS_V_token": ["X86", "X86", "X86::RIP", "X86::EIP"], "File": "X86RegisterInfo11", "Func": "getRARegister", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2198, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_elf_asm_out_constructor", "(", "rtx", "symbol", ",", "int", "priority", ")", "{", "const", "char", "*", "section", "=", "\".ctors\"", ";", "char", "buf", "[", "16", "]", ";", "if", "(", "priority", "!=", "DEFAULT_INIT_PRIORITY", ")", "{", "sprintf", "(", "buf", ",", "\".ctors.%.5u\"", ",", "MAX_INIT_PRIORITY", "-", "priority", ")", ";", "section", "=", "buf", ";", "}", "switch_to_section", "(", "get_section", "(", "section", ",", "SECTION_WRITE", ",", "NULL", ")", ")", ";", "assemble_align", "(", "POINTER_SIZE", ")", ";", "if", "(", "TARGET_RELOCATABLE", ")", "{", "fputs", "(", "\"\\t.long (\"", ",", "asm_out_file", ")", ";", "output_addr_const", "(", "asm_out_file", ",", "symbol", ")", ";", "fputs", "(", "\")@fixup\\n\"", ",", "asm_out_file", ")", ";", "}", "else", "assemble_integer", "(", "symbol", ",", "POINTER_SIZE", "/", "BITS_PER_UNIT", ",", "POINTER_SIZE", ",", "1", ")", ";", "}", ""], "natrual_language": ["Record", "an", "element", "in", "the", "table", "of", "global", "constructors", ".", "SYMBOL", "is", "a", "SYMBOL_REF", "of", "the", "function", "to", "be", "called", ";", "PRIORITY", "is", "a", "number", "between", "0", "and", "MAX_INIT_PRIORITY", ".", "This", "differs", "from", "default_named_section_asm_out_constructor", "in", "that", "we", "have", "special", "handling", "for", "-mrelocatable", "."], "TS_V_token": ["rs6000", "\".ctors\"", "16", "\".ctors.%.5u\"", "\"\\t.long (\"", "\")@fixup\\n\"", "1"], "File": "rs60004", "Func": "rs6000_elf_asm_out_constructor", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2199, "Length": 106, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "find_gr_spill", "(", "int", "try_locals", ")", "{", "int", "regno", ";", "if", "(", "current_function_is_leaf", ")", "{", "for", "(", "regno", "=", "GR_REG", "(", "1", ")", ";", "regno", "<=", "GR_REG", "(", "31", ")", ";", "regno", "++", ")", "if", "(", "!", "regs_ever_live", "[", "regno", "]", "&&", "call_used_regs", "[", "regno", "]", "&&", "!", "fixed_regs", "[", "regno", "]", "&&", "!", "global_regs", "[", "regno", "]", "&&", "(", "(", "current_frame_info", ".", "gr_used_mask", ">>", "regno", ")", "&", "1", ")", "==", "0", ")", "{", "current_frame_info", ".", "gr_used_mask", "|=", "1", "<<", "regno", ";", "return", "regno", ";", "}", "}", "if", "(", "try_locals", ")", "{", "regno", "=", "current_frame_info", ".", "n_local_regs", ";", "if", "(", "regno", "<", "(", "80", "-", "frame_pointer_needed", ")", ")", "{", "current_frame_info", ".", "n_local_regs", "=", "regno", "+", "1", ";", "return", "LOC_REG", "(", "0", ")", "+", "regno", ";", "}", "}", "return", "0", ";", "}", ""], "natrual_language": ["Helper", "function", "for", "ia64_compute_frame_size", ":", "find", "an", "appropriate", "general", "register", "to", "spill", "some", "special", "register", "to", ".", "SPECIAL_SPILL_MASK", "contains", "bits", "in", "GR0", "to", "GR31", "that", "have", "already", "been", "allocated", "by", "this", "routine", ".", "TRY_LOCALS", "is", "true", "if", "we", "should", "attempt", "to", "locate", "a", "local", "regnum", "."], "TS_V_token": ["ia64", "1", "31", "1", "0", "1", "80", "1", "0", "0"], "File": "ia643", "Func": "find_gr_spill", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2200, "Length": 132, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "char", "X86Subtarget", "::", "classifyGlobalFunctionReference", "(", "const", "GlobalValue", "*", "GV", ",", "const", "Module", "&", "M", ")", "const", "{", "if", "(", "TM", ".", "shouldAssumeDSOLocal", "(", "M", ",", "GV", ")", ")", "return", "X86II", "::", "MO_NO_FLAG", ";", "if", "(", "isTargetCOFF", "(", ")", ")", "{", "if", "(", "GV", "->", "hasDLLImportStorageClass", "(", ")", ")", "return", "X86II", "::", "MO_DLLIMPORT", ";", "return", "X86II", "::", "MO_COFFSTUB", ";", "}", "const", "Function", "*", "F", "=", "dyn_cast_or_null", "<", "Function", ">", "(", "GV", ")", ";", "if", "(", "isTargetELF", "(", ")", ")", "{", "if", "(", "is64Bit", "(", ")", "&&", "F", "&&", "(", "CallingConv", "::", "X86_RegCall", "==", "F", "->", "getCallingConv", "(", ")", ")", ")", "return", "X86II", "::", "MO_GOTPCREL", ";", "if", "(", "(", "(", "F", "&&", "F", "->", "hasFnAttribute", "(", "Attribute", "::", "NonLazyBind", ")", ")", "||", "(", "!", "F", "&&", "M", ".", "getRtLibUseGOT", "(", ")", ")", ")", "&&", "is64Bit", "(", ")", ")", "return", "X86II", "::", "MO_GOTPCREL", ";", "if", "(", "!", "is64Bit", "(", ")", "&&", "!", "GV", "&&", "TM", ".", "getRelocationModel", "(", ")", "==", "Reloc", "::", "Static", ")", "return", "X86II", "::", "MO_NO_FLAG", ";", "return", "X86II", "::", "MO_PLT", ";", "}", "if", "(", "is64Bit", "(", ")", ")", "{", "if", "(", "F", "&&", "F", "->", "hasFnAttribute", "(", "Attribute", "::", "NonLazyBind", ")", ")", "return", "X86II", "::", "MO_GOTPCREL", ";", "return", "X86II", "::", "MO_NO_FLAG", ";", "}", "return", "X86II", "::", "MO_NO_FLAG", ";", "}", ""], "natrual_language": ["Classify", "a", "global", "function", "reference", "for", "the", "current", "subtarget", "."], "TS_V_token": ["X86", "X86", "X86II::MO_NO_FLAG", "X86II::MO_DLLIMPORT", "X86II::MO_COFFSTUB", "X86", "X86II::MO_GOTPCREL", "X86II::MO_GOTPCREL", "X86II::MO_NO_FLAG", "X86II::MO_PLT", "X86II::MO_GOTPCREL", "X86II::MO_NO_FLAG", "X86II::MO_NO_FLAG"], "File": "X86Subtarget72", "Func": "classifyGlobalFunctionReference", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2201, "Length": 210, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "fusion_split_address", "(", "rtx", "addr", ",", "rtx", "*", "p_hi", ",", "rtx", "*", "p_lo", ")", "{", "rtx", "hi", ",", "lo", ";", "if", "(", "GET_CODE", "(", "addr", ")", "==", "PLUS", "||", "GET_CODE", "(", "addr", ")", "==", "LO_SUM", ")", "{", "hi", "=", "XEXP", "(", "addr", ",", "0", ")", ";", "lo", "=", "XEXP", "(", "addr", ",", "1", ")", ";", "}", "else", "gcc_unreachable", "(", ")", ";", "*", "p_hi", "=", "hi", ";", "*", "p_lo", "=", "lo", ";", "}", ""], "natrual_language": ["Given", "an", "address", ",", "convert", "it", "into", "the", "addis", "and", "load", "offset", "parts", ".", "Addresses", "created", "during", "the", "peephole2", "process", "look", "like", ":", "(", "lo_sum", "(", "high", "(", "unspec", "[", "(", "sym", ")", "]", "UNSPEC_TOCREL", ")", ")", "(", "unspec", "[", "(", "...", ")", "]", "UNSPEC_TOCREL", ")", ")"], "TS_V_token": ["rs6000", "0", "1"], "File": "rs6000", "Func": "fusion_split_address", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2202, "Length": 73, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "X86DCBasicBlock", "&", "getParent", "(", ")", "{", "return", "static_cast", "<", "X86DCBasicBlock", "&", ">", "(", "DCInstruction", "::", "getParent", "(", ")", ")", ";", "}", ""], "natrual_language": ["getParent", "-", "Return", "the", "last", "analyzed", "interval", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86DCInstruction", "Func": "getParent", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2203, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "VEInstrInfo", "::", "analyzeBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "*", "&", "TBB", ",", "MachineBasicBlock", "*", "&", "FBB", ",", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Cond", ",", "bool", "AllowModify", ")", "const", "{", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "getLastNonDebugInstr", "(", ")", ";", "if", "(", "I", "==", "MBB", ".", "end", "(", ")", ")", "return", "false", ";", "if", "(", "!", "isUnpredicatedTerminator", "(", "*", "I", ")", ")", "return", "false", ";", "MachineInstr", "*", "LastInst", "=", "&", "*", "I", ";", "unsigned", "LastOpc", "=", "LastInst", "->", "getOpcode", "(", ")", ";", "if", "(", "I", "==", "MBB", ".", "begin", "(", ")", "||", "!", "isUnpredicatedTerminator", "(", "*", "--", "I", ")", ")", "{", "if", "(", "isUncondBranchOpcode", "(", "LastOpc", ")", ")", "{", "TBB", "=", "LastInst", "->", "getOperand", "(", "0", ")", ".", "getMBB", "(", ")", ";", "return", "false", ";", "}", "if", "(", "isCondBranchOpcode", "(", "LastOpc", ")", ")", "{", "parseCondBranch", "(", "LastInst", ",", "TBB", ",", "Cond", ")", ";", "return", "false", ";", "}", "return", "true", ";", "}", "MachineInstr", "*", "SecondLastInst", "=", "&", "*", "I", ";", "unsigned", "SecondLastOpc", "=", "SecondLastInst", "->", "getOpcode", "(", ")", ";", "if", "(", "AllowModify", "&&", "isUncondBranchOpcode", "(", "LastOpc", ")", ")", "{", "while", "(", "isUncondBranchOpcode", "(", "SecondLastOpc", ")", ")", "{", "LastInst", "->", "eraseFromParent", "(", ")", ";", "LastInst", "=", "SecondLastInst", ";", "LastOpc", "=", "LastInst", "->", "getOpcode", "(", ")", ";", "if", "(", "I", "==", "MBB", ".", "begin", "(", ")", "||", "!", "isUnpredicatedTerminator", "(", "*", "--", "I", ")", ")", "{", "TBB", "=", "LastInst", "->", "getOperand", "(", "0", ")", ".", "getMBB", "(", ")", ";", "return", "false", ";", "}", "SecondLastInst", "=", "&", "*", "I", ";", "SecondLastOpc", "=", "SecondLastInst", "->", "getOpcode", "(", ")", ";", "}", "}", "if", "(", "SecondLastInst", "&&", "I", "!=", "MBB", ".", "begin", "(", ")", "&&", "isUnpredicatedTerminator", "(", "*", "--", "I", ")", ")", "return", "true", ";", "if", "(", "isCondBranchOpcode", "(", "SecondLastOpc", ")", "&&", "isUncondBranchOpcode", "(", "LastOpc", ")", ")", "{", "parseCondBranch", "(", "SecondLastInst", ",", "TBB", ",", "Cond", ")", ";", "FBB", "=", "LastInst", "->", "getOperand", "(", "0", ")", ".", "getMBB", "(", ")", ";", "return", "false", ";", "}", "if", "(", "isUncondBranchOpcode", "(", "SecondLastOpc", ")", "&&", "isUncondBranchOpcode", "(", "LastOpc", ")", ")", "{", "TBB", "=", "SecondLastInst", "->", "getOperand", "(", "0", ")", ".", "getMBB", "(", ")", ";", "return", "false", ";", "}", "return", "true", ";", "}", ""], "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": ["VE", "VE", "0", "0", "0", "0"], "File": "VEInstrInfo1", "Func": "analyzeBranch", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2204, "Length": 353, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "char", "X86Subtarget", "::", "classifyGlobalReference", "(", "const", "GlobalValue", "*", "GV", ",", "const", "Module", "&", "M", ")", "const", "{", "if", "(", "TM", ".", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Large", ")", "return", "X86II", "::", "MO_NO_FLAG", ";", "if", "(", "GV", ")", "{", "if", "(", "Optional", "<", "ConstantRange", ">", "CR", "=", "GV", "->", "getAbsoluteSymbolRange", "(", ")", ")", "{", "if", "(", "CR", "->", "getUnsignedMax", "(", ")", ".", "ult", "(", "128", ")", ")", "return", "X86II", "::", "MO_ABS8", ";", "else", "return", "X86II", "::", "MO_NO_FLAG", ";", "}", "}", "if", "(", "TM", ".", "shouldAssumeDSOLocal", "(", "M", ",", "GV", ")", ")", "return", "classifyLocalReference", "(", "GV", ")", ";", "if", "(", "isTargetCOFF", "(", ")", ")", "return", "X86II", "::", "MO_DLLIMPORT", ";", "if", "(", "is64Bit", "(", ")", ")", "return", "X86II", "::", "MO_GOTPCREL", ";", "if", "(", "isTargetDarwin", "(", ")", ")", "{", "if", "(", "!", "isPositionIndependent", "(", ")", ")", "return", "X86II", "::", "MO_DARWIN_NONLAZY", ";", "return", "X86II", "::", "MO_DARWIN_NONLAZY_PIC_BASE", ";", "}", "return", "X86II", "::", "MO_GOT", ";", "}", ""], "natrual_language": ["Classify", "a", "global", "variable", "reference", "for", "the", "current", "subtarget", "according", "to", "how", "we", "should", "reference", "it", "in", "a", "non-pcrel", "context", "."], "TS_V_token": ["X86", "X86", "X86II::MO_NO_FLAG", "128", "X86II::MO_ABS8", "X86II::MO_NO_FLAG", "X86II::MO_DLLIMPORT", "X86II::MO_GOTPCREL", "X86II::MO_DARWIN_NONLAZY", "X86II::MO_DARWIN_NONLAZY_PIC_BASE", "X86II::MO_GOT"], "File": "X86Subtarget109", "Func": "classifyGlobalReference", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2205, "Length": 151, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "areMemAccessesTriviallyDisjoint", "(", "MachineInstr", "*", "MIa", ",", "MachineInstr", "*", "MIb", ",", "AliasAnalysis", "*", "AA", ")", "const", "{", "const", "TargetRegisterInfo", "*", "TRI", "=", "&", "getRegisterInfo", "(", ")", ";", "unsigned", "BaseRegA", "=", "0", ",", "BaseRegB", "=", "0", ";", "int", "OffsetA", "=", "0", ",", "OffsetB", "=", "0", ";", "int", "WidthA", "=", "0", ",", "WidthB", "=", "0", ";", "assert", "(", "MIa", "&&", "MIa", "->", "mayLoadOrStore", "(", ")", "&&", "\"MIa must be a load or store.\"", ")", ";", "assert", "(", "MIb", "&&", "MIb", "->", "mayLoadOrStore", "(", ")", "&&", "\"MIb must be a load or store.\"", ")", ";", "if", "(", "MIa", "->", "hasUnmodeledSideEffects", "(", ")", "||", "MIb", "->", "hasUnmodeledSideEffects", "(", ")", "||", "MIa", "->", "hasOrderedMemoryRef", "(", ")", "||", "MIb", "->", "hasOrderedMemoryRef", "(", ")", ")", "return", "false", ";", "if", "(", "getMemOpBaseRegImmOfsWidth", "(", "MIa", ",", "BaseRegA", ",", "OffsetA", ",", "WidthA", ",", "TRI", ")", "&&", "getMemOpBaseRegImmOfsWidth", "(", "MIb", ",", "BaseRegB", ",", "OffsetB", ",", "WidthB", ",", "TRI", ")", ")", "{", "if", "(", "BaseRegA", "==", "BaseRegB", ")", "{", "int", "LowOffset", "=", "OffsetA", "<", "OffsetB", "?", "OffsetA", ":", "OffsetB", ";", "int", "HighOffset", "=", "OffsetA", "<", "OffsetB", "?", "OffsetB", ":", "OffsetA", ";", "int", "LowWidth", "=", "(", "LowOffset", "==", "OffsetA", ")", "?", "WidthA", ":", "WidthB", ";", "if", "(", "LowOffset", "+", "LowWidth", "<=", "HighOffset", ")", "return", "true", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["Sometimes", ",", "it", "is", "possible", "for", "the", "target", "to", "tell", ",", "even", "without", "aliasing", "information", ",", "that", "two", "MIs", "access", "different", "memory", "addresses", "."], "TS_V_token": ["AArch64", "AArch64", "0", "0", "0", "0", "0", "0", "\"MIa must be a load or store.\"", "\"MIb must be a load or store.\""], "File": "AArch64InstrInfo1", "Func": "areMemAccessesTriviallyDisjoint", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2206, "Length": 199, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "MachineOperand", "&", "getLdStOffsetOp", "(", "const", "MachineInstr", "&", "MI", ")", "{", "unsigned", "Idx", "=", "isPairedLdSt", "(", "MI", ")", "?", "3", ":", "2", ";", "return", "MI", ".", "getOperand", "(", "Idx", ")", ";", "}", ""], "natrual_language": ["Returns", "the", "immediate", "offset", "operator", "of", "a", "load/store", "."], "TS_V_token": ["AArch64", "3", "2"], "File": "AArch64LoadStoreOptimizer", "Func": "getLdStOffsetOp", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2207, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "PPCRegisterInfo", "&", "getRegisterInfo", "(", ")", "const", "{", "return", "RI", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCInstrInfo15", "Func": "getRegisterInfo", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2208, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZXPLINKFrameLowering", "::", "assignCalleeSavedSpillSlots", "(", "MachineFunction", "&", "MF", ",", "const", "TargetRegisterInfo", "*", "TRI", ",", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ")", "const", "{", "MachineFrameInfo", "&", "MFFrame", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "SystemZMachineFunctionInfo", "*", "MFI", "=", "MF", ".", "getInfo", "<", "SystemZMachineFunctionInfo", ">", "(", ")", ";", "const", "SystemZSubtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "SystemZSubtarget", ">", "(", ")", ";", "auto", "&", "Regs", "=", "Subtarget", ".", "getSpecialRegisters", "<", "SystemZXPLINK64Registers", ">", "(", ")", ";", "unsigned", "LowGPR", "=", "0", ";", "int", "LowOffset", "=", "INT32_MAX", ";", "unsigned", "HighGPR", "=", "LowGPR", ";", "int", "HighOffset", "=", "-", "1", ";", "unsigned", "RegSP", "=", "Regs", ".", "getStackPointerRegister", "(", ")", ";", "auto", "&", "GRRegClass", "=", "SystemZ", "::", "GR64BitRegClass", ";", "const", "unsigned", "RegSize", "=", "8", ";", "auto", "ProcessCSI", "=", "[", "&", "]", "(", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSIList", ")", "{", "for", "(", "auto", "&", "CS", ":", "CSIList", ")", "{", "unsigned", "Reg", "=", "CS", ".", "getReg", "(", ")", ";", "int", "Offset", "=", "RegSpillOffsets", "[", "Reg", "]", ";", "if", "(", "Offset", ">=", "0", ")", "{", "if", "(", "GRRegClass", ".", "contains", "(", "Reg", ")", ")", "{", "if", "(", "LowOffset", ">", "Offset", ")", "{", "LowOffset", "=", "Offset", ";", "LowGPR", "=", "Reg", ";", "}", "if", "(", "Offset", ">", "HighOffset", ")", "{", "HighOffset", "=", "Offset", ";", "HighGPR", "=", "Reg", ";", "}", "}", "int", "FrameIdx", "=", "MFFrame", ".", "CreateFixedSpillStackObject", "(", "RegSize", ",", "Offset", ")", ";", "CS", ".", "setFrameIdx", "(", "FrameIdx", ")", ";", "}", "else", "CS", ".", "setFrameIdx", "(", "INT32_MAX", ")", ";", "}", "}", ";", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "Spills", ";", "Spills", ".", "push_back", "(", "CalleeSavedInfo", "(", "Regs", ".", "getAddressOfCalleeRegister", "(", ")", ")", ")", ";", "if", "(", "hasFP", "(", "MF", ")", "||", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "\"backchain\"", ")", ")", "Spills", ".", "push_back", "(", "CalleeSavedInfo", "(", "RegSP", ")", ")", ";", "ProcessCSI", "(", "CSI", ")", ";", "MFI", "->", "setRestoreGPRRegs", "(", "LowGPR", ",", "HighGPR", ",", "LowOffset", ")", ";", "ProcessCSI", "(", "Spills", ")", ";", "MFI", "->", "setSpillGPRRegs", "(", "LowGPR", ",", "HighGPR", ",", "LowOffset", ")", ";", "for", "(", "auto", "&", "CS", ":", "CSI", ")", "{", "if", "(", "CS", ".", "getFrameIdx", "(", ")", "!=", "INT32_MAX", ")", "continue", ";", "unsigned", "Reg", "=", "CS", ".", "getReg", "(", ")", ";", "const", "TargetRegisterClass", "*", "RC", "=", "TRI", "->", "getMinimalPhysRegClass", "(", "Reg", ")", ";", "Align", "Alignment", "=", "TRI", "->", "getSpillAlign", "(", "*", "RC", ")", ";", "unsigned", "Size", "=", "TRI", "->", "getSpillSize", "(", "*", "RC", ")", ";", "Alignment", "=", "std", "::", "min", "(", "Alignment", ",", "getStackAlign", "(", ")", ")", ";", "int", "FrameIdx", "=", "MFFrame", ".", "CreateStackObject", "(", "Size", ",", "Alignment", ",", "true", ")", ";", "CS", ".", "setFrameIdx", "(", "FrameIdx", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["This", "function", "will", "assign", "callee", "saved", "gprs", "to", "volatile", "vector", "registers", "for", "prologue", "spills", "when", "applicable", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ", "0", "1", "SystemZ::GR64BitRegClass", "8", "0", "\"backchain\""], "File": "SystemZFrameLowering10", "Func": "assignCalleeSavedSpillSlots", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2209, "Length": 428, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "uint64_t", "MipsGOTPLT", "::", "emit", "(", "MemoryRegion", "&", "pRegion", ")", "{", "uint32_t", "*", "buffer", "=", "reinterpret_cast", "<", "uint32_t", "*", ">", "(", "pRegion", ".", "begin", "(", ")", ")", ";", "uint64_t", "result", "=", "0", ";", "for", "(", "iterator", "it", "=", "begin", "(", ")", ",", "ie", "=", "end", "(", ")", ";", "it", "!=", "ie", ";", "++", "it", ",", "++", "buffer", ")", "{", "GOTPLTEntry", "*", "got", "=", "&", "(", "llvm", "::", "cast", "<", "GOTPLTEntry", ">", "(", "(", "*", "it", ")", ")", ")", ";", "*", "buffer", "=", "static_cast", "<", "uint32_t", ">", "(", "got", "->", "getValue", "(", ")", ")", ";", "result", "+=", "got", "->", "size", "(", ")", ";", "}", "return", "result", ";", "}", ""], "natrual_language": ["Output", "the", "remark", "via", "the", "diagnostic", "handler", "and", "to", "the", "optimization", "record", "file", "."], "TS_V_token": ["Mips", "Mips", "0"], "File": "MipsGOTPLT", "Func": "emit", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2210, "Length": 106, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "machine_mode", "rs6000_secondary_memory_needed_mode", "(", "machine_mode", "mode", ")", "{", "if", "(", "lra_in_progress", "&&", "mode", "==", "SDmode", ")", "return", "DDmode", ";", "return", "mode", ";", "}", ""], "natrual_language": ["Return", "the", "mode", "to", "be", "used", "for", "memory", "when", "a", "secondary", "memory", "location", "is", "needed", ".", "For", "SDmode", "values", "we", "need", "to", "use", "DDmode", ",", "in", "all", "other", "cases", "we", "can", "use", "the", "same", "mode", "."], "TS_V_token": ["rs6000"], "File": "rs6000", "Func": "rs6000_secondary_memory_needed_mode", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2211, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMAsmPrinter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "MCP", "=", "MF", ".", "getConstantPool", "(", ")", ";", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "SetupMachineFunction", "(", "MF", ")", ";", "if", "(", "Subtarget", "->", "isTargetCOFF", "(", ")", ")", "{", "bool", "Internal", "=", "MF", ".", "getFunction", "(", ")", "->", "hasInternalLinkage", "(", ")", ";", "COFF", "::", "SymbolStorageClass", "Scl", "=", "Internal", "?", "COFF", "::", "IMAGE_SYM_CLASS_STATIC", ":", "COFF", "::", "IMAGE_SYM_CLASS_EXTERNAL", ";", "int", "Type", "=", "COFF", "::", "IMAGE_SYM_DTYPE_FUNCTION", "<<", "COFF", "::", "SCT_COMPLEX_TYPE_SHIFT", ";", "OutStreamer", "->", "BeginCOFFSymbolDef", "(", "CurrentFnSym", ")", ";", "OutStreamer", "->", "EmitCOFFSymbolStorageClass", "(", "Scl", ")", ";", "OutStreamer", "->", "EmitCOFFSymbolType", "(", "Type", ")", ";", "OutStreamer", "->", "EndCOFFSymbolDef", "(", ")", ";", "}", "EmitFunctionBody", "(", ")", ";", "if", "(", "!", "ThumbIndirectPads", ".", "empty", "(", ")", ")", "{", "OutStreamer", "->", "EmitAssemblerFlag", "(", "MCAF_Code16", ")", ";", "EmitAlignment", "(", "1", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "ThumbIndirectPads", ".", "size", "(", ")", ";", "i", "<", "e", ";", "i", "++", ")", "{", "OutStreamer", "->", "EmitLabel", "(", "ThumbIndirectPads", "[", "i", "]", ".", "second", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "MCInstBuilder", "(", "ARM", "::", "tBX", ")", ".", "addReg", "(", "ThumbIndirectPads", "[", "i", "]", ".", "first", ")", ".", "addImm", "(", "ARMCC", "::", "AL", ")", ".", "addReg", "(", "0", ")", ")", ";", "}", "ThumbIndirectPads", ".", "clear", "(", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "1", "0", "ARM::tBX", "ARMCC::AL", "0"], "File": "ARMAsmPrinter18", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2212, "Length": 230, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "output_ascii", "(", "FILE", "*", "file", ",", "const", "char", "*", "p", ",", "int", "n", ")", "{", "char", "c", ";", "int", "i", ",", "count_string", ";", "const", "char", "*", "for_string", "=", "\"\\t.byte \\\"\"", ";", "const", "char", "*", "for_decimal", "=", "\"\\t.byte \"", ";", "const", "char", "*", "to_close", "=", "NULL", ";", "count_string", "=", "0", ";", "for", "(", "i", "=", "0", ";", "i", "<", "n", ";", "i", "++", ")", "{", "c", "=", "*", "p", "++", ";", "if", "(", "c", ">=", "' '", "&&", "c", "<", "0177", ")", "{", "if", "(", "for_string", ")", "fputs", "(", "for_string", ",", "file", ")", ";", "putc", "(", "c", ",", "file", ")", ";", "if", "(", "c", "==", "'\"'", ")", "{", "putc", "(", "c", ",", "file", ")", ";", "++", "count_string", ";", "}", "for_string", "=", "NULL", ";", "for_decimal", "=", "\"\\\"\\n\\t.byte \"", ";", "to_close", "=", "\"\\\"\\n\"", ";", "++", "count_string", ";", "if", "(", "count_string", ">=", "512", ")", "{", "fputs", "(", "to_close", ",", "file", ")", ";", "for_string", "=", "\"\\t.byte \\\"\"", ";", "for_decimal", "=", "\"\\t.byte \"", ";", "to_close", "=", "NULL", ";", "count_string", "=", "0", ";", "}", "}", "else", "{", "if", "(", "for_decimal", ")", "fputs", "(", "for_decimal", ",", "file", ")", ";", "fprintf", "(", "file", ",", "\"%d\"", ",", "c", ")", ";", "for_string", "=", "\"\\n\\t.byte \\\"\"", ";", "for_decimal", "=", "\", \"", ";", "to_close", "=", "\"\\n\"", ";", "count_string", "=", "0", ";", "}", "}", "if", "(", "to_close", ")", "fputs", "(", "to_close", ",", "file", ")", ";", "}", ""], "natrual_language": ["Output", "an", "assembler", "pseudo-op", "to", "write", "an", "ASCII", "string", "of", "N", "characters", "starting", "at", "P", "to", "FILE", ".", "On", "the", "RS/6000", ",", "we", "have", "to", "do", "this", "using", "the", ".byte", "operation", "and", "write", "out", "special", "characters", "outside", "the", "quoted", "string", ".", "Also", ",", "the", "assembler", "is", "broken", ";", "very", "long", "strings", "are", "truncated", ",", "so", "we", "must", "artificially", "break", "them", "up", "early", "."], "TS_V_token": ["rs6000", "\"\\t.byte \\\"\"", "\"\\t.byte \"", "0", "0", "0177", "\"\\\"\\n\\t.byte \"", "\"\\\"\\n\"", "512", "\"\\t.byte \\\"\"", "\"\\t.byte \"", "0", "\"%d\"", "\"\\n\\t.byte \\\"\"", "\", \"", "\"\\n\"", "0"], "File": "rs6000", "Func": "output_ascii", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2213, "Length": 215, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "ix86_expand_vec_init_builtin", "(", "tree", "type", ",", "tree", "exp", ",", "rtx", "target", ")", "{", "machine_mode", "tmode", "=", "TYPE_MODE", "(", "type", ")", ";", "machine_mode", "inner_mode", "=", "GET_MODE_INNER", "(", "tmode", ")", ";", "int", "i", ",", "n_elt", "=", "GET_MODE_NUNITS", "(", "tmode", ")", ";", "rtvec", "v", "=", "rtvec_alloc", "(", "n_elt", ")", ";", "gcc_assert", "(", "VECTOR_MODE_P", "(", "tmode", ")", ")", ";", "gcc_assert", "(", "call_expr_nargs", "(", "exp", ")", "==", "n_elt", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "n_elt", ";", "++", "i", ")", "{", "rtx", "x", "=", "expand_normal", "(", "CALL_EXPR_ARG", "(", "exp", ",", "i", ")", ")", ";", "RTVEC_ELT", "(", "v", ",", "i", ")", "=", "gen_lowpart", "(", "inner_mode", ",", "x", ")", ";", "}", "if", "(", "!", "target", "||", "!", "register_operand", "(", "target", ",", "tmode", ")", ")", "target", "=", "gen_reg_rtx", "(", "tmode", ")", ";", "ix86_expand_vector_init", "(", "true", ",", "target", ",", "gen_rtx_PARALLEL", "(", "tmode", ",", "v", ")", ")", ";", "return", "target", ";", "}", ""], "natrual_language": ["A", "subroutine", "of", "ix86_expand_builtin", ".", "These", "builtins", "are", "a", "wrapper", "around", "ix86_expand_vector_init", ".", "We", "DO", "have", "language-level", "syntax", "for", "this", ",", "in", "the", "form", "of", "(", "type", ")", "{", "init-list", "}", ".", "Except", "that", "since", "we", "ca", "n't", "place", "emms", "instructions", "from", "inside", "the", "compiler", ",", "we", "ca", "n't", "allow", "the", "use", "of", "MMX", "registers", "unless", "the", "user", "explicitly", "asks", "for", "it", ".", "So", "we", "do", "*", "not", "*", "define", "vec_set/vec_extract/vec_init", "patterns", "for", "MMX", "modes", "in", "mmx.md", ".", "Instead", "we", "have", "builtins", "invoked", "by", "mmintrin.h", "that", "gives", "us", "license", "to", "emit", "these", "sorts", "of", "instructions", "."], "TS_V_token": ["i386", "0"], "File": "i386-expand", "Func": "ix86_expand_vec_init_builtin", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2214, "Length": 146, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCPostRASchedStrategy", "::", "enterMBB", "(", "MachineBasicBlock", "*", "MBB", ")", "{", "PostGenericScheduler", "::", "enterMBB", "(", "MBB", ")", ";", "}", ""], "natrual_language": ["Tell", "the", "strategy", "that", "MBB", "is", "about", "to", "be", "processed", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCMachineScheduler", "Func": "enterMBB", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2215, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "char", "X86Subtarget", "::", "classifyGlobalReference", "(", "const", "GlobalValue", "*", "GV", ",", "const", "Module", "&", "M", ")", "const", "{", "if", "(", "TM", ".", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Large", ")", "return", "X86II", "::", "MO_NO_FLAG", ";", "if", "(", "GV", ")", "{", "if", "(", "Optional", "<", "ConstantRange", ">", "CR", "=", "GV", "->", "getAbsoluteSymbolRange", "(", ")", ")", "{", "if", "(", "CR", "->", "getUnsignedMax", "(", ")", ".", "ult", "(", "128", ")", ")", "return", "X86II", "::", "MO_ABS8", ";", "else", "return", "X86II", "::", "MO_NO_FLAG", ";", "}", "}", "if", "(", "shouldAssumeGlobalReferenceLocal", "(", "this", ",", "TM", ",", "M", ",", "GV", ")", ")", "return", "classifyLocalReference", "(", "GV", ")", ";", "if", "(", "isTargetCOFF", "(", ")", ")", "return", "X86II", "::", "MO_DLLIMPORT", ";", "if", "(", "is64Bit", "(", ")", ")", "return", "X86II", "::", "MO_GOTPCREL", ";", "if", "(", "isTargetDarwin", "(", ")", ")", "{", "if", "(", "!", "isPositionIndependent", "(", ")", ")", "return", "X86II", "::", "MO_DARWIN_NONLAZY", ";", "return", "X86II", "::", "MO_DARWIN_NONLAZY_PIC_BASE", ";", "}", "return", "X86II", "::", "MO_GOT", ";", "}", ""], "natrual_language": ["Classify", "a", "global", "variable", "reference", "for", "the", "current", "subtarget", "according", "to", "how", "we", "should", "reference", "it", "in", "a", "non-pcrel", "context", "."], "TS_V_token": ["X86", "X86", "X86II::MO_NO_FLAG", "128", "X86II::MO_ABS8", "X86II::MO_NO_FLAG", "X86II::MO_DLLIMPORT", "X86II::MO_GOTPCREL", "X86II::MO_DARWIN_NONLAZY", "X86II::MO_DARWIN_NONLAZY_PIC_BASE", "X86II::MO_GOT"], "File": "X86Subtarget25", "Func": "classifyGlobalReference", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2216, "Length": 153, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "LoongArchMCCodeEmitter", "::", "encodeInstruction", "(", "const", "MCInst", "&", "MI", ",", "raw_ostream", "&", "OS", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "const", "MCInstrDesc", "&", "Desc", "=", "MCII", ".", "get", "(", "MI", ".", "getOpcode", "(", ")", ")", ";", "unsigned", "Size", "=", "Desc", ".", "getSize", "(", ")", ";", "switch", "(", "Size", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unhandled encodeInstruction length!\"", ")", ";", "case", "4", ":", "{", "uint32_t", "Bits", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "support", "::", "endian", "::", "write", "(", "OS", ",", "Bits", ",", "support", "::", "little", ")", ";", "break", ";", "}", "}", "}", ""], "natrual_language": ["Encode", "the", "given", "Inst", "to", "bytes", "and", "append", "to", "CB", "."], "TS_V_token": ["LoongArch", "LoongArch", "\"Unhandled encodeInstruction length!\"", "4", "support::endian", "support::little"], "File": "LoongArchMCCodeEmitter", "Func": "encodeInstruction", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2217, "Length": 101, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsAsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "if", "(", "MI", "->", "isDebugValue", "(", ")", ")", "{", "SmallString", "<", "128", ">", "Str", ";", "raw_svector_ostream", "OS", "(", "Str", ")", ";", "PrintDebugValueComment", "(", "MI", ",", "OS", ")", ";", "return", ";", "}", "if", "(", "InConstantPool", "&&", "MI", "->", "getOpcode", "(", ")", "!=", "Mips", "::", "CONSTPOOL_ENTRY", ")", "{", "OutStreamer", ".", "EmitDataRegion", "(", "MCDR_DataRegionEnd", ")", ";", "InConstantPool", "=", "false", ";", "}", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "Mips", "::", "CONSTPOOL_ENTRY", ")", "{", "unsigned", "LabelId", "=", "(", "unsigned", ")", "MI", "->", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "unsigned", "CPIdx", "=", "(", "unsigned", ")", "MI", "->", "getOperand", "(", "1", ")", ".", "getIndex", "(", ")", ";", "if", "(", "!", "InConstantPool", ")", "{", "OutStreamer", ".", "EmitDataRegion", "(", "MCDR_DataRegion", ")", ";", "InConstantPool", "=", "true", ";", "}", "OutStreamer", ".", "EmitLabel", "(", "GetCPISymbol", "(", "LabelId", ")", ")", ";", "const", "MachineConstantPoolEntry", "&", "MCPE", "=", "MCP", "->", "getConstants", "(", ")", "[", "CPIdx", "]", ";", "if", "(", "MCPE", ".", "isMachineConstantPoolEntry", "(", ")", ")", "EmitMachineConstantPoolValue", "(", "MCPE", ".", "Val", ".", "MachineCPVal", ")", ";", "else", "EmitGlobalConstant", "(", "MCPE", ".", "Val", ".", "ConstVal", ")", ";", "return", ";", "}", "MachineBasicBlock", "::", "const_instr_iterator", "I", "=", "MI", ";", "MachineBasicBlock", "::", "const_instr_iterator", "E", "=", "MI", "->", "getParent", "(", ")", "->", "instr_end", "(", ")", ";", "do", "{", "if", "(", "emitPseudoExpansionLowering", "(", "OutStreamer", ",", "&", "*", "I", ")", ")", "continue", ";", "if", "(", "I", "->", "isPseudo", "(", ")", "&&", "!", "Subtarget", "->", "inMips16Mode", "(", ")", "&&", "!", "isLongBranchPseudo", "(", "I", "->", "getOpcode", "(", ")", ")", ")", "llvm_unreachable", "(", "\"Pseudo opcode found in EmitInstruction()\"", ")", ";", "MCInst", "TmpInst0", ";", "MCInstLowering", ".", "Lower", "(", "I", ",", "TmpInst0", ")", ";", "EmitToStreamer", "(", "OutStreamer", ",", "TmpInst0", ")", ";", "}", "while", "(", "(", "++", "I", "!=", "E", ")", "&&", "I", "->", "isInsideBundle", "(", ")", ")", ";", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["Mips", "Mips", "128", "Mips::CONSTPOOL_ENTRY", "Mips::CONSTPOOL_ENTRY", "0", "1", "Mips", "\"Pseudo opcode found in EmitInstruction()\""], "File": "MipsAsmPrinter46", "Func": "EmitInstruction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2218, "Length": 292, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64DAGToDAGISel", "::", "SelectInlineAsmMemoryOperand", "(", "const", "SDValue", "&", "Op", ",", "unsigned", "ConstraintID", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "OutOps", ")", "{", "switch", "(", "ConstraintID", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unexpected asm memory constraint\"", ")", ";", "case", "InlineAsm", "::", "Constraint_m", ":", "case", "InlineAsm", "::", "Constraint_Q", ":", "const", "TargetRegisterInfo", "*", "TRI", "=", "Subtarget", "->", "getRegisterInfo", "(", ")", ";", "const", "TargetRegisterClass", "*", "TRC", "=", "TRI", "->", "getPointerRegClass", "(", "*", "MF", ")", ";", "SDLoc", "dl", "(", "Op", ")", ";", "SDValue", "RC", "=", "CurDAG", "->", "getTargetConstant", "(", "TRC", "->", "getID", "(", ")", ",", "dl", ",", "MVT", "::", "i64", ")", ";", "SDValue", "NewOp", "=", "SDValue", "(", "CurDAG", "->", "getMachineNode", "(", "TargetOpcode", "::", "COPY_TO_REGCLASS", ",", "dl", ",", "Op", ".", "getValueType", "(", ")", ",", "Op", ",", "RC", ")", ",", "0", ")", ";", "OutOps", ".", "push_back", "(", "NewOp", ")", ";", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["SelectInlineAsmMemoryOperand", "-", "Select", "the", "specified", "address", "as", "a", "target", "addressing", "mode", ",", "according", "to", "the", "specified", "constraint", "."], "TS_V_token": ["AArch64", "AArch64", "\"Unexpected asm memory constraint\"", "MVT::i64", "0"], "File": "AArch64ISelDAGToDAG10", "Func": "SelectInlineAsmMemoryOperand", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2219, "Length": 139, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZFrameLowering", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MBBI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "CSI", ".", "empty", "(", ")", ")", "return", "false", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "const", "TargetInstrInfo", "*", "TII", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "SystemZMachineFunctionInfo", "*", "ZFI", "=", "MF", ".", "getInfo", "<", "SystemZMachineFunctionInfo", ">", "(", ")", ";", "bool", "HasFP", "=", "hasFP", "(", "MF", ")", ";", "DebugLoc", "DL", "=", "MBBI", "!=", "MBB", ".", "end", "(", ")", "?", "MBBI", "->", "getDebugLoc", "(", ")", ":", "DebugLoc", "(", ")", ";", "for", "(", "unsigned", "I", "=", "0", ",", "E", "=", "CSI", ".", "size", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "I", "]", ".", "getReg", "(", ")", ";", "if", "(", "SystemZ", "::", "FP64BitRegClass", ".", "contains", "(", "Reg", ")", ")", "TII", "->", "loadRegFromStackSlot", "(", "MBB", ",", "MBBI", ",", "Reg", ",", "CSI", "[", "I", "]", ".", "getFrameIdx", "(", ")", ",", "&", "SystemZ", "::", "FP64BitRegClass", ",", "TRI", ")", ";", "}", "unsigned", "LowGPR", "=", "ZFI", "->", "getLowSavedGPR", "(", ")", ";", "unsigned", "HighGPR", "=", "ZFI", "->", "getHighSavedGPR", "(", ")", ";", "unsigned", "StartOffset", "=", "RegSpillOffsets", "[", "LowGPR", "]", ";", "if", "(", "LowGPR", ")", "{", "assert", "(", "LowGPR", "!=", "HighGPR", "&&", "\"Should be loading %r15 and something else\"", ")", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "SystemZ", "::", "LMG", ")", ")", ";", "MIB", ".", "addReg", "(", "LowGPR", ",", "RegState", "::", "Define", ")", ";", "MIB", ".", "addReg", "(", "HighGPR", ",", "RegState", "::", "Define", ")", ";", "MIB", ".", "addReg", "(", "HasFP", "?", "SystemZ", "::", "R11D", ":", "SystemZ", "::", "R15D", ")", ";", "MIB", ".", "addImm", "(", "StartOffset", ")", ";", "for", "(", "unsigned", "I", "=", "0", ",", "E", "=", "CSI", ".", "size", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "I", "]", ".", "getReg", "(", ")", ";", "if", "(", "Reg", "!=", "LowGPR", "&&", "Reg", "!=", "HighGPR", "&&", "SystemZ", "::", "GR64BitRegClass", ".", "contains", "(", "Reg", ")", ")", "MIB", ".", "addReg", "(", "Reg", ",", "RegState", "::", "ImplicitDefine", ")", ";", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["restoreCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "restore", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "load", "instructions", "via", "loadRegToStackSlot", "(", ")", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ", "SystemZ", "0", "SystemZ::FP64BitRegClass", "SystemZ::FP64BitRegClass", "\"Should be loading %r15 and something else\"", "SystemZ::LMG", "SystemZ::R11D", "SystemZ::R15D", "0", "SystemZ::GR64BitRegClass"], "File": "SystemZFrameLowering12", "Func": "restoreCalleeSavedRegisters", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2220, "Length": 360, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "setPreservesCFG", "(", ")", ";", "AU", ".", "addRequired", "<", "MachineDominatorTree", ">", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["AArch64"], "File": "AArch64CleanupLocalDynamicTLSPass", "Func": "getAnalysisUsage", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2221, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "i386_pe_reloc_rw_mask", "(", "void", ")", "{", "return", "0", ";", "}", ""], "natrual_language": ["Local", "and", "global", "relocs", "can", "be", "placed", "always", "into", "readonly", "memory", "for", "memory", "for", "PE-COFF", "targets", "."], "TS_V_token": ["i386", "0"], "File": "winnt", "Func": "i386_pe_reloc_rw_mask", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2222, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsSEDAGToDAGISel", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "Subtarget", "=", "&", "TM", ".", "getSubtarget", "<", "MipsSubtarget", ">", "(", ")", ";", "if", "(", "Subtarget", "->", "inMips16Mode", "(", ")", ")", "return", "false", ";", "return", "MipsDAGToDAGISel", "::", "runOnMachineFunction", "(", "MF", ")", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "Mips"], "File": "MipsSEISelDAGToDAG2", "Func": "runOnMachineFunction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2223, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Optional", "<", "MCFixupKind", ">", "ELFPPCAsmBackend", "::", "getFixupKind", "(", "StringRef", "Name", ")", "const", "{", "if", "(", "TT", ".", "isPPC64", "(", ")", ")", "{", "if", "(", "Name", "==", "\"R_PPC64_NONE\"", ")", "return", "FK_NONE", ";", "}", "else", "{", "if", "(", "Name", "==", "\"R_PPC_NONE\"", ")", "return", "FK_NONE", ";", "}", "return", "MCAsmBackend", "::", "getFixupKind", "(", "Name", ")", ";", "}", ""], "natrual_language": ["getFixupKind", "-", "Get", "the", "fixup", "kind", "of", "this", "expression", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "\"R_PPC64_NONE\"", "\"R_PPC_NONE\""], "File": "PPCAsmBackend35", "Func": "getFixupKind", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2224, "Length": 53, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ScheduleDAGInstrs", "*", "createMachineScheduler", "(", "MachineSchedContext", "*", "C", ")", "const", "override", "{", "const", "AArch64Subtarget", "&", "ST", "=", "C", "->", "MF", "->", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ";", "ScheduleDAGMILive", "*", "DAG", "=", "createGenericSchedLive", "(", "C", ")", ";", "DAG", "->", "addMutation", "(", "createLoadClusterDAGMutation", "(", "DAG", "->", "TII", ",", "DAG", "->", "TRI", ")", ")", ";", "DAG", "->", "addMutation", "(", "createStoreClusterDAGMutation", "(", "DAG", "->", "TII", ",", "DAG", "->", "TRI", ")", ")", ";", "if", "(", "ST", ".", "hasFusion", "(", ")", ")", "DAG", "->", "addMutation", "(", "createAArch64MacroFusionDAGMutation", "(", ")", ")", ";", "return", "DAG", ";", "}", ""], "natrual_language": ["Create", "an", "instance", "of", "ScheduleDAGInstrs", "to", "be", "run", "within", "the", "standard", "MachineScheduler", "pass", "for", "this", "function", "and", "target", "at", "the", "current", "optimization", "level", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64TargetMachine (2)3", "Func": "createMachineScheduler", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2225, "Length": 89, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtvec", "rs6000_const_vec", "(", "machine_mode", "mode", ")", "{", "int", "i", ",", "subparts", ";", "rtvec", "v", ";", "switch", "(", "mode", ")", "{", "case", "E_V1TImode", ":", "subparts", "=", "1", ";", "break", ";", "case", "E_V2DFmode", ":", "case", "E_V2DImode", ":", "subparts", "=", "2", ";", "break", ";", "case", "E_V4SFmode", ":", "case", "E_V4SImode", ":", "subparts", "=", "4", ";", "break", ";", "case", "E_V8HImode", ":", "subparts", "=", "8", ";", "break", ";", "case", "E_V16QImode", ":", "subparts", "=", "16", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "v", "=", "rtvec_alloc", "(", "subparts", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "subparts", "/", "2", ";", "++", "i", ")", "RTVEC_ELT", "(", "v", ",", "i", ")", "=", "gen_rtx_CONST_INT", "(", "DImode", ",", "i", "+", "subparts", "/", "2", ")", ";", "for", "(", "i", "=", "subparts", "/", "2", ";", "i", "<", "subparts", ";", "++", "i", ")", "RTVEC_ELT", "(", "v", ",", "i", ")", "=", "gen_rtx_CONST_INT", "(", "DImode", ",", "i", "-", "subparts", "/", "2", ")", ";", "return", "v", ";", "}", ""], "natrual_language": ["Generate", "a", "vector", "of", "constants", "to", "permute", "MODE", "for", "a", "little-endian", "storage", "operation", "by", "swapping", "the", "two", "halves", "of", "a", "vector", "."], "TS_V_token": ["rs6000", "1", "2", "4", "8", "16", "0", "2", "2", "2", "2"], "File": "rs6000", "Func": "rs6000_const_vec", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2226, "Length": 156, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsSEDAGToDAGISel", "::", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "{", "AU", ".", "addRequired", "<", "DominatorTreeWrapperPass", ">", "(", ")", ";", "SelectionDAGISel", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsSEISelDAGToDAG10", "Func": "getAnalysisUsage", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2227, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "X86TargetLowering", "::", "getRecipEstimate", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ",", "int", "Enabled", ",", "int", "&", "RefinementSteps", ")", "const", "{", "SDLoc", "DL", "(", "Op", ")", ";", "EVT", "VT", "=", "Op", ".", "getValueType", "(", ")", ";", "if", "(", "(", "VT", "==", "MVT", "::", "f32", "&&", "Subtarget", ".", "hasSSE1", "(", ")", ")", "||", "(", "VT", "==", "MVT", "::", "v4f32", "&&", "Subtarget", ".", "hasSSE1", "(", ")", ")", "||", "(", "VT", "==", "MVT", "::", "v8f32", "&&", "Subtarget", ".", "hasAVX", "(", ")", ")", "||", "(", "VT", "==", "MVT", "::", "v16f32", "&&", "Subtarget", ".", "useAVX512Regs", "(", ")", ")", ")", "{", "if", "(", "VT", "==", "MVT", "::", "f32", "&&", "Enabled", "==", "ReciprocalEstimate", "::", "Unspecified", ")", "return", "SDValue", "(", ")", ";", "if", "(", "RefinementSteps", "==", "ReciprocalEstimate", "::", "Unspecified", ")", "RefinementSteps", "=", "1", ";", "unsigned", "Opcode", "=", "VT", "==", "MVT", "::", "v16f32", "?", "X86ISD", "::", "RCP14", ":", "X86ISD", "::", "FRCP", ";", "return", "DAG", ".", "getNode", "(", "Opcode", ",", "DL", ",", "VT", ",", "Op", ")", ";", "}", "if", "(", "VT", ".", "getScalarType", "(", ")", "==", "MVT", "::", "f16", "&&", "isTypeLegal", "(", "VT", ")", "&&", "Subtarget", ".", "hasFP16", "(", ")", ")", "{", "if", "(", "RefinementSteps", "==", "ReciprocalEstimate", "::", "Unspecified", ")", "RefinementSteps", "=", "0", ";", "if", "(", "VT", "==", "MVT", "::", "f16", ")", "{", "SDValue", "Zero", "=", "DAG", ".", "getIntPtrConstant", "(", "0", ",", "DL", ")", ";", "SDValue", "Undef", "=", "DAG", ".", "getUNDEF", "(", "MVT", "::", "v8f16", ")", ";", "Op", "=", "DAG", ".", "getNode", "(", "ISD", "::", "SCALAR_TO_VECTOR", ",", "DL", ",", "MVT", "::", "v8f16", ",", "Op", ")", ";", "Op", "=", "DAG", ".", "getNode", "(", "X86ISD", "::", "RCP14S", ",", "DL", ",", "MVT", "::", "v8f16", ",", "Undef", ",", "Op", ")", ";", "return", "DAG", ".", "getNode", "(", "ISD", "::", "EXTRACT_VECTOR_ELT", ",", "DL", ",", "MVT", "::", "f16", ",", "Op", ",", "Zero", ")", ";", "}", "return", "DAG", ".", "getNode", "(", "X86ISD", "::", "RCP14", ",", "DL", ",", "VT", ",", "Op", ")", ";", "}", "return", "SDValue", "(", ")", ";", "}", ""], "natrual_language": ["Return", "a", "reciprocal", "estimate", "value", "for", "the", "input", "operand", "."], "TS_V_token": ["X86", "X86", "MVT::f32", "MVT::v4f32", "MVT::v8f32", "MVT::v16f32", "MVT::f32", "1", "MVT::v16f32", "X86ISD::RCP14", "X86ISD::FRCP", "MVT::f16", "0", "MVT::f16", "0", "MVT::v8f16", "ISD::SCALAR_TO_VECTOR", "MVT::v8f16", "X86ISD::RCP14S", "MVT::v8f16", "ISD::EXTRACT_VECTOR_ELT", "MVT::f16", "X86ISD::RCP14"], "File": "X86ISelLowering (2)5", "Func": "getRecipEstimate", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2228, "Length": 311, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "gimple", "*", "fold", "(", "gimple_folder", "&", "f", ")", "const", "OVERRIDE", "{", "if", "(", "tree", "amount", "=", "uniform_integer_cst_p", "(", "gimple_call_arg", "(", "f", ".", "call", ",", "2", ")", ")", ")", "{", "if", "(", "wi", "::", "to_widest", "(", "amount", ")", ">=", "0", ")", "{", "function_instance", "instance", "(", "\"svlsl\"", ",", "functions", "::", "svlsl", ",", "shapes", "::", "binary_uint_opt_n", ",", "MODE_n", ",", "f", ".", "type_suffix_ids", ",", "f", ".", "pred", ")", ";", "gcall", "*", "call", "=", "as_a", "<", "gcall", "*", ">", "(", "f", ".", "redirect_call", "(", "instance", ")", ")", ";", "gimple_call_set_arg", "(", "call", ",", "2", ",", "amount", ")", ";", "return", "call", ";", "}", "int", "element_bits", "=", "f", ".", "type_suffix", "(", "0", ")", ".", "element_bits", ";", "if", "(", "wi", "::", "to_widest", "(", "amount", ")", ">=", "-", "element_bits", ")", "{", "amount", "=", "wide_int_to_tree", "(", "TREE_TYPE", "(", "amount", ")", ",", "-", "wi", "::", "to_wide", "(", "amount", ")", ")", ";", "function_instance", "instance", "(", "\"svrshr\"", ",", "functions", "::", "svrshr", ",", "shapes", "::", "shift_right_imm", ",", "MODE_n", ",", "f", ".", "type_suffix_ids", ",", "f", ".", "pred", ")", ";", "gcall", "*", "call", "=", "as_a", "<", "gcall", "*", ">", "(", "f", ".", "redirect_call", "(", "instance", ")", ")", ";", "gimple_call_set_arg", "(", "call", ",", "2", ",", "amount", ")", ";", "return", "call", ";", "}", "}", "return", "NULL", ";", "}", ""], "natrual_language": ["Try", "to", "fold", "the", "call", ".", "Return", "the", "new", "statement", "on", "success", "and", "null", "on", "failure", "."], "TS_V_token": ["aarch64", "2", "0", "\"svlsl\"", "2", "0", "\"svrshr\"", "2"], "File": "aarch64-sve-builtins-sve2", "Func": "fold", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2229, "Length": 199, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsConstantIslands", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "F", ")", "{", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsConstantIslandPass51", "Func": "runOnMachineFunction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2230, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "machine_mode", "aarch64_simd_container_mode", "(", "machine_mode", "mode", ",", "unsigned", "width", ")", "{", "gcc_assert", "(", "width", "==", "64", "||", "width", "==", "128", ")", ";", "if", "(", "TARGET_SIMD", ")", "{", "if", "(", "width", "==", "128", ")", "switch", "(", "mode", ")", "{", "case", "DFmode", ":", "return", "V2DFmode", ";", "case", "SFmode", ":", "return", "V4SFmode", ";", "case", "HFmode", ":", "return", "V8HFmode", ";", "case", "SImode", ":", "return", "V4SImode", ";", "case", "HImode", ":", "return", "V8HImode", ";", "case", "QImode", ":", "return", "V16QImode", ";", "case", "DImode", ":", "return", "V2DImode", ";", "default", ":", "break", ";", "}", "else", "switch", "(", "mode", ")", "{", "case", "SFmode", ":", "return", "V2SFmode", ";", "case", "HFmode", ":", "return", "V4HFmode", ";", "case", "SImode", ":", "return", "V2SImode", ";", "case", "HImode", ":", "return", "V4HImode", ";", "case", "QImode", ":", "return", "V8QImode", ";", "default", ":", "break", ";", "}", "}", "return", "word_mode", ";", "}", ""], "natrual_language": ["Return", "appropriate", "SIMD", "container", "for", "MODE", "within", "a", "vector", "of", "WIDTH", "bits", "."], "TS_V_token": ["aarch64", "64", "128", "128"], "File": "aarch644", "Func": "aarch64_simd_container_mode", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2231, "Length": 131, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_encode_section_info", "(", "tree", "decl", ",", "rtx", "rtl", ",", "int", "first", ")", "{", "if", "(", "optimize", ">", "0", "&&", "TREE_CONSTANT", "(", "decl", ")", ")", "SYMBOL_REF_FLAG", "(", "XEXP", "(", "rtl", ",", "0", ")", ")", "=", "1", ";", "if", "(", "first", "&&", "DECL_P", "(", "decl", ")", ")", "{", "if", "(", "TREE_CODE", "(", "decl", ")", "==", "FUNCTION_DECL", "&&", "DECL_WEAK", "(", "decl", ")", ")", "arm_encode_call_attribute", "(", "decl", ",", "LONG_CALL_FLAG_CHAR", ")", ";", "else", "if", "(", "!", "TREE_PUBLIC", "(", "decl", ")", ")", "arm_encode_call_attribute", "(", "decl", ",", "SHORT_CALL_FLAG_CHAR", ")", ";", "}", "default_encode_section_info", "(", "decl", ",", "rtl", ",", "first", ")", ";", "}", ""], "natrual_language": ["Symbols", "in", "the", "text", "segment", "can", "be", "accessed", "without", "indirecting", "via", "the", "constant", "pool", ";", "it", "may", "take", "an", "extra", "binary", "operation", ",", "but", "this", "is", "still", "faster", "than", "indirecting", "via", "memory", ".", "Do", "n't", "do", "this", "when", "not", "optimizing", ",", "since", "we", "wo", "n't", "be", "calculating", "al", "of", "the", "offsets", "necessary", "to", "do", "this", "simplification", "."], "TS_V_token": ["arm", "0", "0", "1"], "File": "arm3", "Func": "arm_encode_section_info", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2232, "Length": 95, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsSEInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "GetMemOperand", "(", "MBB", ",", "FI", ",", "MachineMemOperand", "::", "MOStore", ")", ";", "unsigned", "Opc", "=", "0", ";", "if", "(", "Mips", "::", "CPURegsRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "Opc", "=", "IsN64", "?", "Mips", "::", "SW_P8", ":", "Mips", "::", "SW", ";", "else", "if", "(", "Mips", "::", "CPU64RegsRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "Opc", "=", "IsN64", "?", "Mips", "::", "SD_P8", ":", "Mips", "::", "SD", ";", "else", "if", "(", "Mips", "::", "FGR32RegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "Opc", "=", "IsN64", "?", "Mips", "::", "SWC1_P8", ":", "Mips", "::", "SWC1", ";", "else", "if", "(", "Mips", "::", "AFGR64RegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "Opc", "=", "Mips", "::", "SDC1", ";", "else", "if", "(", "Mips", "::", "FGR64RegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "Opc", "=", "IsN64", "?", "Mips", "::", "SDC164_P8", ":", "Mips", "::", "SDC164", ";", "assert", "(", "Opc", "&&", "\"Register class not handled!\"", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "Opc", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["Mips", "Mips", "0", "Mips::CPURegsRegClass", "Mips::SW_P8", "Mips::SW", "Mips::CPU64RegsRegClass", "Mips::SD_P8", "Mips::SD", "Mips::FGR32RegClass", "Mips::SWC1_P8", "Mips::SWC1", "Mips::AFGR64RegClass", "Mips::SDC1", "Mips::FGR64RegClass", "Mips::SDC164_P8", "Mips::SDC164", "\"Register class not handled!\"", "0"], "File": "MipsSEInstrInfo1", "Func": "storeRegToStackSlot", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2233, "Length": 236, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "find_alignment_op", "(", "rtx_insn", "*", "insn", ",", "rtx", "base_reg", ")", "{", "df_ref", "base_use", ";", "struct", "df_insn_info", "*", "insn_info", "=", "DF_INSN_INFO_GET", "(", "insn", ")", ";", "rtx", "and_operation", "=", "0", ";", "FOR_EACH_INSN_INFO_USE", "(", "base_use", ",", "insn_info", ")", "{", "if", "(", "!", "rtx_equal_p", "(", "DF_REF_REG", "(", "base_use", ")", ",", "base_reg", ")", ")", "continue", ";", "struct", "df_link", "*", "base_def_link", "=", "DF_REF_CHAIN", "(", "base_use", ")", ";", "if", "(", "!", "base_def_link", "||", "base_def_link", "->", "next", ")", "break", ";", "if", "(", "DF_REF_IS_ARTIFICIAL", "(", "base_def_link", "->", "ref", ")", ")", "break", ";", "rtx_insn", "*", "and_insn", "=", "DF_REF_INSN", "(", "base_def_link", "->", "ref", ")", ";", "and_operation", "=", "alignment_mask", "(", "and_insn", ")", ";", "if", "(", "and_operation", "!=", "0", ")", "break", ";", "}", "return", "and_operation", ";", "}", ""], "natrual_language": ["Given", "INSN", "that", "'s", "a", "load", "or", "store", "based", "at", "BASE_REG", ",", "check", "if", "all", "of", "its", "feeding", "computations", "align", "its", "address", "on", "a", "16-byte", "boundary", ".", "If", "so", ",", "return", "true", "and", "add", "all", "definition", "insns", "into", "AND_INSNS", "and", "their", "corresponding", "fully-expanded", "rtxes", "for", "the", "masking", "operations", "into", "AND_OPS", "."], "TS_V_token": ["powerpcspe", "0", "0"], "File": "powerpcspe", "Func": "find_alignment_op", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2234, "Length": 115, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "aarch64_expand_sve_const_pred", "(", "rtx", "target", ",", "rtx_vector_builder", "&", "builder", ")", "{", "if", "(", "rtx", "res", "=", "aarch64_expand_sve_const_pred_1", "(", "target", ",", "builder", ",", "true", ")", ")", "return", "res", ";", "if", "(", "builder", ".", "full_nelts", "(", ")", ".", "is_constant", "(", ")", ")", "if", "(", "rtx", "mem", "=", "force_const_mem", "(", "VNx16BImode", ",", "builder", ".", "build", "(", ")", ")", ")", "{", "target", "=", "aarch64_target_reg", "(", "target", ",", "VNx16BImode", ")", ";", "emit_move_insn", "(", "target", ",", "mem", ")", ";", "return", "target", ";", "}", "rtx_vector_builder", "int_builder", "(", "VNx16QImode", ",", "builder", ".", "npatterns", "(", ")", ",", "builder", ".", "nelts_per_pattern", "(", ")", ")", ";", "for", "(", "unsigned", "int", "i", "=", "0", ";", "i", "<", "builder", ".", "encoded_nelts", "(", ")", ";", "++", "i", ")", "int_builder", ".", "quick_push", "(", "INTVAL", "(", "builder", ".", "elt", "(", "i", ")", ")", "?", "constm1_rtx", ":", "const0_rtx", ")", ";", "return", "aarch64_convert_sve_data_to_pred", "(", "target", ",", "VNx16BImode", ",", "int_builder", ".", "build", "(", ")", ")", ";", "}", ""], "natrual_language": ["Return", "an", "SVE", "predicate", "register", "that", "contains", "the", "VNx16BImode", "constant", "in", "BUILDER", ",", "without", "going", "through", "the", "move", "expanders", ".", "The", "returned", "register", "can", "have", "whatever", "mode", "seems", "most", "natural", "given", "the", "contents", "of", "BUILDER", ".", "Use", "TARGET", "for", "the", "result", "if", "convenient", "."], "TS_V_token": ["aarch64", "0"], "File": "aarch64", "Func": "aarch64_expand_sve_const_pred", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2235, "Length": 149, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCFixupKindInfo", "&", "getFixupKindInfo", "(", "MCFixupKind", "Kind", ")", "const", "override", "{", "const", "static", "MCFixupKindInfo", "Infos", "[", "VE", "::", "NumTargetFixupKinds", "]", "=", "{", "{", "\"fixup_ve_reflong\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"fixup_ve_hi32\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"fixup_ve_lo32\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"fixup_ve_pc_hi32\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_ve_pc_lo32\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_ve_got_hi32\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"fixup_ve_got_lo32\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"fixup_ve_gotoff_hi32\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"fixup_ve_gotoff_lo32\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"fixup_ve_plt_hi32\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"fixup_ve_plt_lo32\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"fixup_ve_tls_gd_hi32\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"fixup_ve_tls_gd_lo32\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"fixup_ve_tpoff_hi32\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"fixup_ve_tpoff_lo32\"", ",", "0", ",", "32", ",", "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": ["VE", "VE::NumTargetFixupKinds", "\"fixup_ve_reflong\"", "0", "32", "0", "\"fixup_ve_hi32\"", "0", "32", "0", "\"fixup_ve_lo32\"", "0", "32", "0", "\"fixup_ve_pc_hi32\"", "0", "32", "\"fixup_ve_pc_lo32\"", "0", "32", "\"fixup_ve_got_hi32\"", "0", "32", "0", "\"fixup_ve_got_lo32\"", "0", "32", "0", "\"fixup_ve_gotoff_hi32\"", "0", "32", "0", "\"fixup_ve_gotoff_lo32\"", "0", "32", "0", "\"fixup_ve_plt_hi32\"", "0", "32", "0", "\"fixup_ve_plt_lo32\"", "0", "32", "0", "\"fixup_ve_tls_gd_hi32\"", "0", "32", "0", "\"fixup_ve_tls_gd_lo32\"", "0", "32", "0", "\"fixup_ve_tpoff_hi32\"", "0", "32", "0", "\"fixup_ve_tpoff_lo32\"", "0", "32", "0", "\"Invalid kind!\""], "File": "VEAsmBackend", "Func": "getFixupKindInfo", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2236, "Length": 217, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "AArch64InstrInfo", "::", "isStoreToStackSlot", "(", "const", "MachineInstr", "*", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "AArch64", "::", "STRWui", ":", "case", "AArch64", "::", "STRXui", ":", "case", "AArch64", "::", "STRBui", ":", "case", "AArch64", "::", "STRHui", ":", "case", "AArch64", "::", "STRSui", ":", "case", "AArch64", "::", "STRDui", ":", "case", "AArch64", "::", "STRQui", ":", "case", "AArch64", "::", "STR_PXI", ":", "case", "AArch64", "::", "STR_ZXI", ":", "case", "AArch64", "::", "STR_ZZXI", ":", "case", "AArch64", "::", "STR_ZZZXI", ":", "case", "AArch64", "::", "STR_ZZZZXI", ":", "if", "(", "MI", "->", "getOperand", "(", "0", ")", ".", "getSubReg", "(", ")", "==", "0", "&&", "MI", "->", "getOperand", "(", "1", ")", ".", "isFI", "(", ")", "&&", "MI", "->", "getOperand", "(", "2", ")", ".", "isImm", "(", ")", "&&", "MI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", "==", "0", ")", "{", "FrameIndex", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getIndex", "(", ")", ";", "return", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "}", "break", ";", "}", "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": ["AArch64", "AArch64", "AArch64::STRWui", "AArch64::STRXui", "AArch64::STRBui", "AArch64::STRHui", "AArch64::STRSui", "AArch64::STRDui", "AArch64::STRQui", "AArch64::STR_PXI", "AArch64::STR_ZXI", "AArch64::STR_ZZXI", "AArch64::STR_ZZZXI", "AArch64::STR_ZZZZXI", "0", "0", "1", "2", "2", "0", "1", "0", "0"], "File": "AArch64InstrInfo73", "Func": "isStoreToStackSlot", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2237, "Length": 173, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "inline", "void", "assign_registers", "(", "const_tree", "field", ",", "HOST_WIDE_INT", "bitpos", ",", "bool", "fp", ",", "assign_data_t", "*", "data", ")", "{", "if", "(", "fp", ")", "{", "assign_int_registers", "(", "bitpos", ",", "data", ")", ";", "assign_fp_registers", "(", "field", ",", "bitpos", ",", "data", ")", ";", "}", "else", "{", "if", "(", "data", "->", "intoffset", "<", "0", ")", "data", "->", "intoffset", "=", "bitpos", ";", "}", "}", ""], "natrual_language": ["A", "subroutine", "of", "function_arg_record_value", ".", "Assign", "FIELD", "and", "the", "bits", "of", "the", "structure", "between", "PARMS-", ">", "intoffset", "and", "BITPOS", "to", "registers", "."], "TS_V_token": ["sparc", "0"], "File": "sparc5", "Func": "assign_registers", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2238, "Length": 58, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "thumb1_output_interwork", "(", "void", ")", "{", "const", "char", "*", "name", ";", "FILE", "*", "f", "=", "asm_out_file", ";", "gcc_assert", "(", "MEM_P", "(", "DECL_RTL", "(", "current_function_decl", ")", ")", ")", ";", "gcc_assert", "(", "GET_CODE", "(", "XEXP", "(", "DECL_RTL", "(", "current_function_decl", ")", ",", "0", ")", ")", "==", "SYMBOL_REF", ")", ";", "name", "=", "XSTR", "(", "XEXP", "(", "DECL_RTL", "(", "current_function_decl", ")", ",", "0", ")", ",", "0", ")", ";", "asm_fprintf", "(", "f", ",", "\"\\torr\\t%r, %r, #1\\n\"", ",", "IP_REGNUM", ",", "PC_REGNUM", ")", ";", "asm_fprintf", "(", "f", ",", "\"\\tbx\\t%r\\n\"", ",", "IP_REGNUM", ")", ";", "fprintf", "(", "f", ",", "\"\\t.code\\t16\\n\"", ")", ";", "if", "(", "arm_dllexport_name_p", "(", "name", ")", ")", "name", "=", "arm_strip_name_encoding", "(", "name", ")", ";", "asm_fprintf", "(", "f", ",", "\"\\t.globl %s%U%s\\n\"", ",", "STUB_NAME", ",", "name", ")", ";", "fprintf", "(", "f", ",", "\"\\t.thumb_func\\n\"", ")", ";", "asm_fprintf", "(", "f", ",", "\"%s%U%s:\\n\"", ",", "STUB_NAME", ",", "name", ")", ";", "return", "\"\"", ";", "}", ""], "natrual_language": ["Implementation", "of", "insn", "prologue_thumb1_interwork", ".", "This", "is", "the", "first", "``", "instruction", "''", "of", "a", "function", "called", "in", "ARM", "mode", ".", "Swap", "to", "thumb", "mode", "."], "TS_V_token": ["arm", "0", "0", "0", "\"\\torr\\t%r, %r, #1\\n\"", "\"\\tbx\\t%r\\n\"", "\"\\t.code\\t16\\n\"", "\"\\t.globl %s%U%s\\n\"", "\"\\t.thumb_func\\n\"", "\"%s%U%s:\\n\"", "\"\""], "File": "arm", "Func": "thumb1_output_interwork", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2239, "Length": 139, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ARMAsmParser", "::", "tryParseRegister", "(", ")", "{", "const", "AsmToken", "&", "Tok", "=", "Parser", ".", "getTok", "(", ")", ";", "if", "(", "Tok", ".", "isNot", "(", "AsmToken", "::", "Identifier", ")", ")", "return", "-", "1", ";", "std", "::", "string", "upperCase", "=", "Tok", ".", "getString", "(", ")", ".", "str", "(", ")", ";", "std", "::", "string", "lowerCase", "=", "LowercaseString", "(", "upperCase", ")", ";", "unsigned", "RegNum", "=", "MatchRegisterName", "(", "lowerCase", ")", ";", "if", "(", "!", "RegNum", ")", "{", "RegNum", "=", "StringSwitch", "<", "unsigned", ">", "(", "lowerCase", ")", ".", "Case", "(", "\"r13\"", ",", "ARM", "::", "SP", ")", ".", "Case", "(", "\"r14\"", ",", "ARM", "::", "LR", ")", ".", "Case", "(", "\"r15\"", ",", "ARM", "::", "PC", ")", ".", "Case", "(", "\"ip\"", ",", "ARM", "::", "R12", ")", ".", "Default", "(", "0", ")", ";", "}", "if", "(", "!", "RegNum", ")", "return", "-", "1", ";", "Parser", ".", "Lex", "(", ")", ";", "if", "(", "Parser", ".", "getTok", "(", ")", ".", "is", "(", "AsmToken", "::", "LBrac", ")", ")", "{", "SMLoc", "SIdx", "=", "Parser", ".", "getTok", "(", ")", ".", "getLoc", "(", ")", ";", "Parser", ".", "Lex", "(", ")", ";", "const", "MCExpr", "*", "ImmVal", ";", "if", "(", "getParser", "(", ")", ".", "ParseExpression", "(", "ImmVal", ")", ")", "return", "MatchOperand_ParseFail", ";", "const", "MCConstantExpr", "*", "MCE", "=", "dyn_cast", "<", "MCConstantExpr", ">", "(", "ImmVal", ")", ";", "if", "(", "!", "MCE", ")", "{", "TokError", "(", "\"immediate value expected for vector index\"", ")", ";", "return", "MatchOperand_ParseFail", ";", "}", "SMLoc", "E", "=", "Parser", ".", "getTok", "(", ")", ".", "getLoc", "(", ")", ";", "if", "(", "Parser", ".", "getTok", "(", ")", ".", "isNot", "(", "AsmToken", "::", "RBrac", ")", ")", "{", "Error", "(", "E", ",", "\"']' expected\"", ")", ";", "return", "MatchOperand_ParseFail", ";", "}", "Parser", ".", "Lex", "(", ")", ";", "Operands", ".", "push_back", "(", "ARMOperand", "::", "CreateVectorIndex", "(", "MCE", "->", "getValue", "(", ")", ",", "SIdx", ",", "E", ",", "getContext", "(", ")", ")", ")", ";", "}", "return", "RegNum", ";", "}", ""], "natrual_language": ["tryParseRegister", "-", "parse", "one", "register", "if", "possible"], "TS_V_token": ["ARM", "ARM", "1", "\"r13\"", "ARM::SP", "\"r14\"", "ARM::LR", "\"r15\"", "ARM::PC", "\"ip\"", "ARM::R12", "0", "1", "\"immediate value expected for vector index\"", "\"']' expected\"", "ARM"], "File": "ARMAsmParser119", "Func": "tryParseRegister", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2240, "Length": 296, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZAsmParser", "::", "ParseInstruction", "(", "ParseInstructionInfo", "&", "Info", ",", "StringRef", "Name", ",", "SMLoc", "NameLoc", ",", "SmallVectorImpl", "<", "MCParsedAsmOperand", "*", ">", "&", "Operands", ")", "{", "Operands", ".", "push_back", "(", "SystemZOperand", "::", "createToken", "(", "Name", ",", "NameLoc", ")", ")", ";", "if", "(", "getLexer", "(", ")", ".", "isNot", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "{", "if", "(", "parseOperand", "(", "Operands", ",", "Name", ")", ")", "{", "Parser", ".", "eatToEndOfStatement", "(", ")", ";", "return", "true", ";", "}", "while", "(", "getLexer", "(", ")", ".", "is", "(", "AsmToken", "::", "Comma", ")", ")", "{", "Parser", ".", "Lex", "(", ")", ";", "if", "(", "parseOperand", "(", "Operands", ",", "Name", ")", ")", "{", "Parser", ".", "eatToEndOfStatement", "(", ")", ";", "return", "true", ";", "}", "}", "if", "(", "getLexer", "(", ")", ".", "isNot", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "{", "SMLoc", "Loc", "=", "getLexer", "(", ")", ".", "getLoc", "(", ")", ";", "Parser", ".", "eatToEndOfStatement", "(", ")", ";", "return", "Error", "(", "Loc", ",", "\"unexpected token in argument list\"", ")", ";", "}", "}", "Parser", ".", "Lex", "(", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["ParseInstruction", "-", "Parse", "one", "assembly", "instruction", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ", "\"unexpected token in argument list\""], "File": "SystemZAsmParser10", "Func": "ParseInstruction", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2241, "Length": 164, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "setPersonality", "(", "const", "MCSymbol", "*", "Per", ")", "{", "HasPersonality", "=", "true", ";", "}", ""], "natrual_language": ["Set", "the", "personality", "."], "TS_V_token": ["ARM"], "File": "ARMUnwindOpAsm15", "Func": "setPersonality", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2242, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMCodeEmitter", "::", "emitInstruction", "(", "const", "MachineInstr", "&", "MI", ")", "{", "DEBUG", "(", "errs", "(", ")", "<<", "\"JIT: \"", "<<", "(", "void", "*", ")", "MCE", ".", "getCurrentPCValue", "(", ")", "<<", "\":\\t\"", "<<", "MI", ")", ";", "MCE", ".", "processDebugLoc", "(", "MI", ".", "getDebugLoc", "(", ")", ",", "true", ")", ";", "++", "NumEmitted", ";", "switch", "(", "MI", ".", "getDesc", "(", ")", ".", "TSFlags", "&", "ARMII", "::", "FormMask", ")", "{", "default", ":", "{", "llvm_unreachable", "(", "\"Unhandled instruction encoding format!\"", ")", ";", "break", ";", "}", "case", "ARMII", "::", "Pseudo", ":", "emitPseudoInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "DPFrm", ":", "case", "ARMII", "::", "DPSoRegFrm", ":", "emitDataProcessingInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "LdFrm", ":", "case", "ARMII", "::", "StFrm", ":", "emitLoadStoreInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "LdMiscFrm", ":", "case", "ARMII", "::", "StMiscFrm", ":", "emitMiscLoadStoreInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "LdStMulFrm", ":", "emitLoadStoreMultipleInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "MulFrm", ":", "emitMulFrmInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "ExtFrm", ":", "emitExtendInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "ArithMiscFrm", ":", "emitMiscArithInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "SatFrm", ":", "emitSaturateInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "BrFrm", ":", "emitBranchInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "BrMiscFrm", ":", "emitMiscBranchInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "VFPUnaryFrm", ":", "case", "ARMII", "::", "VFPBinaryFrm", ":", "emitVFPArithInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "VFPConv1Frm", ":", "case", "ARMII", "::", "VFPConv2Frm", ":", "case", "ARMII", "::", "VFPConv3Frm", ":", "case", "ARMII", "::", "VFPConv4Frm", ":", "case", "ARMII", "::", "VFPConv5Frm", ":", "emitVFPConversionInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "VFPLdStFrm", ":", "emitVFPLoadStoreInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "VFPLdStMulFrm", ":", "emitVFPLoadStoreMultipleInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "VFPMiscFrm", ":", "emitMiscInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "NGetLnFrm", ":", "case", "ARMII", "::", "NSetLnFrm", ":", "emitNEONLaneInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "NDupFrm", ":", "emitNEONDupInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "N1RegModImmFrm", ":", "emitNEON1RegModImmInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "N2RegFrm", ":", "emitNEON2RegInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "N3RegFrm", ":", "emitNEON3RegInstruction", "(", "MI", ")", ";", "break", ";", "}", "MCE", ".", "processDebugLoc", "(", "MI", ".", "getDebugLoc", "(", ")", ",", "false", ")", ";", "}", ""], "natrual_language": ["Targets", "should", "implement", "this", "to", "emit", "instructions", "."], "TS_V_token": ["ARM", "ARM", "\"JIT: \"", "\":\\t\"", "ARMII::FormMask", "\"Unhandled instruction encoding format!\"", "ARMII::Pseudo", "ARMII::DPFrm", "ARMII::DPSoRegFrm", "ARMII::LdFrm", "ARMII::StFrm", "ARMII::LdMiscFrm", "ARMII::StMiscFrm", "ARMII::LdStMulFrm", "ARMII::MulFrm", "ARMII::ExtFrm", "ARMII::ArithMiscFrm", "ARMII::SatFrm", "ARMII::BrFrm", "ARMII::BrMiscFrm", "ARMII::VFPUnaryFrm", "ARMII::VFPBinaryFrm", "ARMII::VFPConv1Frm", "ARMII::VFPConv2Frm", "ARMII::VFPConv3Frm", "ARMII::VFPConv4Frm", "ARMII::VFPConv5Frm", "ARMII::VFPLdStFrm", "ARMII::VFPLdStMulFrm", "ARMII::VFPMiscFrm", "ARMII::NGetLnFrm", "ARMII::NSetLnFrm", "ARMII::NDupFrm", "ARMII::N1RegModImmFrm", "ARMII::N2RegFrm", "ARMII::N3RegFrm"], "File": "ARMCodeEmitter6", "Func": "emitInstruction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2243, "Length": 388, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "const", "PPCSubtarget", "&", "STI", "=", "MF", ".", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ";", "if", "(", "!", "STI", ".", "hasVSX", "(", ")", ")", "return", "false", ";", "LIS", "=", "&", "getAnalysis", "<", "LiveIntervals", ">", "(", ")", ";", "TII", "=", "STI", ".", "getInstrInfo", "(", ")", ";", "bool", "Changed", "=", "false", ";", "if", "(", "DisableVSXFMAMutate", ")", "return", "Changed", ";", "for", "(", "MachineBasicBlock", "&", "B", ":", "llvm", "::", "make_early_inc_range", "(", "MF", ")", ")", "if", "(", "processBlock", "(", "B", ")", ")", "Changed", "=", "true", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["PowerPC", "PPC", "PPC"], "File": "PPCVSXFMAMutate10", "Func": "runOnMachineFunction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2244, "Length": 107, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Thumb1InstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "const", "DebugLoc", "&", "DL", ",", "unsigned", "DestReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "const", "ARMSubtarget", "&", "st", "=", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "assert", "(", "ARM", "::", "GPRRegClass", ".", "contains", "(", "DestReg", ",", "SrcReg", ")", "&&", "\"Thumb1 can only copy GPR registers\"", ")", ";", "if", "(", "st", ".", "hasV6Ops", "(", ")", "||", "ARM", "::", "hGPRRegClass", ".", "contains", "(", "SrcReg", ")", "||", "!", "ARM", "::", "tGPRRegClass", ".", "contains", "(", "DestReg", ")", ")", "AddDefaultPred", "(", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "tMOVr", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ")", ";", "else", "{", "AddDefaultPred", "(", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "tPUSH", ")", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "AddDefaultPred", "(", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "tPOP", ")", ")", ")", ".", "addReg", "(", "DestReg", ",", "getDefRegState", "(", "true", ")", ")", ";", "}", "}", ""], "natrual_language": ["}", "Branch", "Analysis", "&", "Modification"], "TS_V_token": ["ARM", "ARM", "ARM", "ARM::GPRRegClass", "\"Thumb1 can only copy GPR registers\"", "ARM::hGPRRegClass", "ARM::tGPRRegClass", "ARM::tMOVr", "ARM::tPUSH", "ARM::tPOP"], "File": "Thumb1InstrInfo21", "Func": "copyPhysReg", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2245, "Length": 191, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "Cpu0TargetLowering", "::", "LowerOperation", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "case", "ISD", "::", "BRCOND", ":", "return", "LowerBRCOND", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "GlobalAddress", ":", "return", "LowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "VASTART", ":", "return", "LowerVASTART", "(", "Op", ",", "DAG", ")", ";", "}", "return", "SDValue", "(", ")", ";", "}", ""], "natrual_language": ["LowerOperation", "-", "Provide", "custom", "lowering", "hooks", "for", "some", "operations", "."], "TS_V_token": ["Cpu0", "Cpu0", "ISD::BRCOND", "ISD::GlobalAddress", "ISD::VASTART"], "File": "Cpu0ISelLowering1", "Func": "LowerOperation", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2246, "Length": 69, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "FPGATTIImpl", "::", "shouldBuildLookupTables", "(", ")", "{", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "switches", "should", "be", "turned", "into", "lookup", "tables", "for", "the", "target", "."], "TS_V_token": ["FPGA", "FPGA"], "File": "FPGATargetTransformInfo", "Func": "shouldBuildLookupTables", "Target": "FPGA", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2247, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isNoopAddrSpaceCast", "(", "unsigned", "SrcAS", ",", "unsigned", "DestAS", ")", "const", "{", "assert", "(", "SrcAS", "!=", "DestAS", "&&", "\"Expected different address spaces!\"", ")", ";", "return", "SrcAS", "<", "256", "&&", "DestAS", "<", "256", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "a", "cast", "between", "SrcAS", "and", "DestAS", "is", "a", "noop", "."], "TS_V_token": ["X86", "X86", "\"Expected different address spaces!\"", "256", "256"], "File": "X86ISelLowering (2)", "Func": "isNoopAddrSpaceCast", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2248, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "SystemZSelectionDAGInfo", "::", "EmitTargetCodeForMemcpy", "(", "SelectionDAG", "&", "DAG", ",", "SDLoc", "DL", ",", "SDValue", "Chain", ",", "SDValue", "Dst", ",", "SDValue", "Src", ",", "SDValue", "Size", ",", "unsigned", "Align", ",", "bool", "IsVolatile", ",", "bool", "AlwaysInline", ",", "MachinePointerInfo", "DstPtrInfo", ",", "MachinePointerInfo", "SrcPtrInfo", ")", "const", "{", "if", "(", "IsVolatile", ")", "return", "SDValue", "(", ")", ";", "if", "(", "ConstantSDNode", "*", "CSize", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Size", ")", ")", "return", "emitMemMem", "(", "DAG", ",", "DL", ",", "SystemZISD", "::", "MVC", ",", "SystemZISD", "::", "MVC_LOOP", ",", "Chain", ",", "Dst", ",", "Src", ",", "CSize", "->", "getZExtValue", "(", ")", ")", ";", "return", "SDValue", "(", ")", ";", "}", ""], "natrual_language": ["Emit", "target-specific", "code", "that", "performs", "a", "memcpy", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZISD::MVC", "SystemZISD::MVC_LOOP"], "File": "SystemZSelectionDAGInfo29", "Func": "EmitTargetCodeForMemcpy", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2249, "Length": 98, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZInstrInfo", "::", "isProfitableToDupForIfCvt", "(", "MachineBasicBlock", "&", "MBB", ",", "unsigned", "NumCycles", ",", "BranchProbability", "Probability", ")", "const", "{", "return", "NumCycles", "==", "1", ";", "}", ""], "natrual_language": ["Return", "true", "if", "it", "'s", "profitable", "for", "if-converter", "to", "duplicate", "instructions", "of", "specified", "accumulated", "instruction", "latencies", "in", "the", "specified", "MBB", "to", "enable", "if-conversion", "."], "TS_V_token": ["SystemZ", "SystemZ", "1"], "File": "SystemZInstrInfo (2)2", "Func": "isProfitableToDupForIfCvt", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2250, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "expand_vselect_vconcat", "(", "rtx", "target", ",", "rtx", "op0", ",", "rtx", "op1", ",", "const", "unsigned", "char", "*", "perm", ",", "unsigned", "nelt", ",", "bool", "testing_p", ")", "{", "machine_mode", "v2mode", ";", "rtx", "x", ";", "bool", "ok", ";", "if", "(", "vselect_insn", "==", "NULL_RTX", ")", "init_vselect_insn", "(", ")", ";", "v2mode", "=", "GET_MODE_2XWIDER_MODE", "(", "GET_MODE", "(", "op0", ")", ")", ";", "x", "=", "XEXP", "(", "SET_SRC", "(", "PATTERN", "(", "vselect_insn", ")", ")", ",", "0", ")", ";", "PUT_MODE", "(", "x", ",", "v2mode", ")", ";", "XEXP", "(", "x", ",", "0", ")", "=", "op0", ";", "XEXP", "(", "x", ",", "1", ")", "=", "op1", ";", "ok", "=", "expand_vselect", "(", "target", ",", "x", ",", "perm", ",", "nelt", ",", "testing_p", ")", ";", "XEXP", "(", "x", ",", "0", ")", "=", "const0_rtx", ";", "XEXP", "(", "x", ",", "1", ")", "=", "const0_rtx", ";", "return", "ok", ";", "}", ""], "natrual_language": ["Similar", ",", "but", "generate", "a", "vec_concat", "from", "op0", "and", "op1", "as", "well", "."], "TS_V_token": ["i386", "0", "0", "1", "0", "1"], "File": "i3864", "Func": "expand_vselect_vconcat", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2251, "Length": 132, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "process_cfa_adjust_cfa", "(", "FILE", "*", "out_file", ",", "rtx", "pat", ",", "rtx", "insn", ",", "bool", "unwind", ",", "bool", "frame", ")", "{", "rtx", "dest", "=", "SET_DEST", "(", "pat", ")", ";", "rtx", "src", "=", "SET_SRC", "(", "pat", ")", ";", "if", "(", "dest", "==", "stack_pointer_rtx", ")", "{", "if", "(", "GET_CODE", "(", "src", ")", "==", "PLUS", ")", "{", "rtx", "op0", "=", "XEXP", "(", "src", ",", "0", ")", ";", "rtx", "op1", "=", "XEXP", "(", "src", ",", "1", ")", ";", "gcc_assert", "(", "op0", "==", "dest", "&&", "GET_CODE", "(", "op1", ")", "==", "CONST_INT", ")", ";", "if", "(", "INTVAL", "(", "op1", ")", "<", "0", ")", "{", "gcc_assert", "(", "!", "frame_pointer_needed", ")", ";", "if", "(", "unwind", ")", "fprintf", "(", "out_file", ",", "\"\\t.fframe \"", "HOST_WIDE_INT_PRINT_DEC", "\"\\n\"", ",", "-", "INTVAL", "(", "op1", ")", ")", ";", "}", "else", "process_epilogue", "(", "out_file", ",", "insn", ",", "unwind", ",", "frame", ")", ";", "}", "else", "{", "gcc_assert", "(", "src", "==", "hard_frame_pointer_rtx", ")", ";", "process_epilogue", "(", "out_file", ",", "insn", ",", "unwind", ",", "frame", ")", ";", "}", "}", "else", "if", "(", "dest", "==", "hard_frame_pointer_rtx", ")", "{", "gcc_assert", "(", "src", "==", "stack_pointer_rtx", ")", ";", "gcc_assert", "(", "frame_pointer_needed", ")", ";", "if", "(", "unwind", ")", "fprintf", "(", "out_file", ",", "\"\\t.vframe r%d\\n\"", ",", "ia64_dbx_register_number", "(", "REGNO", "(", "dest", ")", ")", ")", ";", "}", "else", "gcc_unreachable", "(", ")", ";", "}", ""], "natrual_language": ["This", "function", "processes", "a", "SET", "pattern", "for", "REG_CFA_ADJUST_CFA", "."], "TS_V_token": ["ia64", "0", "1", "0", "\"\\t.fframe \"", "\"\\n\"", "\"\\t.vframe r%d\\n\""], "File": "ia64", "Func": "process_cfa_adjust_cfa", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2252, "Length": 205, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "inline", "hashval_t", "mips_lo_sum_offset_hasher", "::", "hash", "(", "const", "value_type", "*", "entry", ")", "{", "return", "mips_hash_base", "(", "entry", "->", "base", ")", ";", "}", ""], "natrual_language": ["Hash", "function", "for", "builtin", "functions", "with", "up", "to", "3", "arguments", "and", "a", "return", "type", "."], "TS_V_token": ["mips"], "File": "mips4", "Func": "hash", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2253, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isTypeDesirableForOp", "(", "unsigned", "Opc", ",", "EVT", "VT", ")", "const", "{", "if", "(", "!", "isTypeLegal", "(", "VT", ")", ")", "return", "false", ";", "if", "(", "VT", "!=", "MVT", "::", "i16", ")", "return", "true", ";", "switch", "(", "Opc", ")", "{", "default", ":", "return", "true", ";", "case", "ISD", "::", "LOAD", ":", "case", "ISD", "::", "SIGN_EXTEND", ":", "case", "ISD", "::", "ZERO_EXTEND", ":", "case", "ISD", "::", "ANY_EXTEND", ":", "case", "ISD", "::", "SHL", ":", "case", "ISD", "::", "SRL", ":", "case", "ISD", "::", "SUB", ":", "case", "ISD", "::", "ADD", ":", "case", "ISD", "::", "MUL", ":", "case", "ISD", "::", "AND", ":", "case", "ISD", "::", "OR", ":", "case", "ISD", "::", "XOR", ":", "return", "false", ";", "}", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "has", "native", "support", "for", "the", "specified", "value", "type", "and", "it", "is", "'desirable", "'", "to", "use", "the", "type", "for", "the", "given", "node", "type", "."], "TS_V_token": ["X86", "X86", "MVT::i16", "ISD::LOAD", "ISD::SIGN_EXTEND", "ISD::ZERO_EXTEND", "ISD::ANY_EXTEND", "ISD::SHL", "ISD::SRL", "ISD::SUB", "ISD::ADD", "ISD::MUL", "ISD::AND", "ISD::OR", "ISD::XOR"], "File": "X86ISelLowering (2)", "Func": "isTypeDesirableForOp", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2254, "Length": 110, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "is_power9_pairable_vec_type", "(", "enum", "attr_type", "type", ")", "{", "switch", "(", "type", ")", "{", "case", "TYPE_VECSIMPLE", ":", "case", "TYPE_VECCOMPLEX", ":", "case", "TYPE_VECDIV", ":", "case", "TYPE_VECCMP", ":", "case", "TYPE_VECPERM", ":", "case", "TYPE_VECFLOAT", ":", "case", "TYPE_VECFDIV", ":", "case", "TYPE_VECDOUBLE", ":", "return", "true", ";", "default", ":", "break", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "whether", "TYPE", "is", "a", "Power9", "pairable", "vector", "instruction", "type", "."], "TS_V_token": ["rs6000"], "File": "rs6000", "Func": "is_power9_pairable_vec_type", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2255, "Length": 50, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "emit_v9_brxx_insn", "(", "enum", "rtx_code", "code", ",", "rtx", "op0", ",", "rtx", "label", ")", "{", "emit_jump_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "pc_rtx", ",", "gen_rtx_IF_THEN_ELSE", "(", "VOIDmode", ",", "gen_rtx_fmt_ee", "(", "code", ",", "GET_MODE", "(", "op0", ")", ",", "op0", ",", "const0_rtx", ")", ",", "gen_rtx_LABEL_REF", "(", "VOIDmode", ",", "label", ")", ",", "pc_rtx", ")", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "a", "conditional", "jump", "insn", "for", "the", "v9", "architecture", "using", "comparison", "code", "CODE", "and", "jump", "target", "LABEL", ".", "This", "function", "exists", "to", "take", "advantage", "of", "the", "v9", "brxx", "insns", "."], "TS_V_token": ["sparc"], "File": "sparc4", "Func": "emit_v9_brxx_insn", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2256, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "expand_set_or_movmem_constant_prologue", "(", "rtx", "dst", ",", "rtx", "*", "srcp", ",", "rtx", "destreg", ",", "rtx", "srcreg", ",", "rtx", "value", ",", "rtx", "vec_value", ",", "int", "desired_align", ",", "int", "align_bytes", ",", "bool", "issetmem", ")", "{", "rtx", "src", "=", "NULL", ";", "rtx", "orig_dst", "=", "dst", ";", "rtx", "orig_src", "=", "NULL", ";", "int", "piece_size", "=", "1", ";", "int", "copied_bytes", "=", "0", ";", "if", "(", "!", "issetmem", ")", "{", "gcc_assert", "(", "srcp", "!=", "NULL", ")", ";", "src", "=", "*", "srcp", ";", "orig_src", "=", "src", ";", "}", "for", "(", "piece_size", "=", "1", ";", "piece_size", "<=", "desired_align", "&&", "copied_bytes", "<", "align_bytes", ";", "piece_size", "<<=", "1", ")", "{", "if", "(", "align_bytes", "&", "piece_size", ")", "{", "if", "(", "issetmem", ")", "{", "if", "(", "vec_value", "&&", "piece_size", ">", "GET_MODE_SIZE", "(", "GET_MODE", "(", "value", ")", ")", ")", "dst", "=", "emit_memset", "(", "dst", ",", "destreg", ",", "vec_value", ",", "piece_size", ")", ";", "else", "dst", "=", "emit_memset", "(", "dst", ",", "destreg", ",", "value", ",", "piece_size", ")", ";", "}", "else", "dst", "=", "emit_memmov", "(", "dst", ",", "&", "src", ",", "destreg", ",", "srcreg", ",", "piece_size", ")", ";", "copied_bytes", "+=", "piece_size", ";", "}", "}", "if", "(", "MEM_ALIGN", "(", "dst", ")", "<", "(", "unsigned", "int", ")", "desired_align", "*", "BITS_PER_UNIT", ")", "set_mem_align", "(", "dst", ",", "desired_align", "*", "BITS_PER_UNIT", ")", ";", "if", "(", "MEM_SIZE_KNOWN_P", "(", "orig_dst", ")", ")", "set_mem_size", "(", "dst", ",", "MEM_SIZE", "(", "orig_dst", ")", "-", "align_bytes", ")", ";", "if", "(", "!", "issetmem", ")", "{", "int", "src_align_bytes", "=", "get_mem_align_offset", "(", "src", ",", "desired_align", "*", "BITS_PER_UNIT", ")", ";", "if", "(", "src_align_bytes", ">=", "0", ")", "src_align_bytes", "=", "desired_align", "-", "src_align_bytes", ";", "if", "(", "src_align_bytes", ">=", "0", ")", "{", "unsigned", "int", "src_align", ";", "for", "(", "src_align", "=", "desired_align", ";", "src_align", ">=", "2", ";", "src_align", ">>=", "1", ")", "{", "if", "(", "(", "src_align_bytes", "&", "(", "src_align", "-", "1", ")", ")", "==", "(", "align_bytes", "&", "(", "src_align", "-", "1", ")", ")", ")", "break", ";", "}", "if", "(", "src_align", ">", "(", "unsigned", "int", ")", "desired_align", ")", "src_align", "=", "desired_align", ";", "if", "(", "MEM_ALIGN", "(", "src", ")", "<", "src_align", "*", "BITS_PER_UNIT", ")", "set_mem_align", "(", "src", ",", "src_align", "*", "BITS_PER_UNIT", ")", ";", "}", "if", "(", "MEM_SIZE_KNOWN_P", "(", "orig_src", ")", ")", "set_mem_size", "(", "src", ",", "MEM_SIZE", "(", "orig_src", ")", "-", "align_bytes", ")", ";", "*", "srcp", "=", "src", ";", "}", "return", "dst", ";", "}", ""], "natrual_language": ["This", "function", "is", "like", "the", "previous", "one", ",", "except", "here", "we", "know", "how", "many", "bytes", "need", "to", "be", "copied", ".", "That", "allows", "us", "to", "update", "alignment", "not", "only", "of", "DST", ",", "which", "is", "returned", ",", "but", "also", "of", "SRC", ",", "which", "is", "passed", "as", "a", "pointer", "for", "that", "reason", "."], "TS_V_token": ["i386", "1", "0", "1", "1", "0", "0", "2", "1", "1", "1"], "File": "i3864", "Func": "expand_set_or_movmem_constant_prologue", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2257, "Length": 365, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMFrameLowering", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "CSI", ".", "empty", "(", ")", ")", "return", "false", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "ARMFunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "bool", "isVarArg", "=", "AFI", "->", "getVarArgsRegSaveSize", "(", ")", ">", "0", ";", "unsigned", "PopOpc", "=", "AFI", "->", "isThumbFunction", "(", ")", "?", "ARM", "::", "t2LDMIA_UPD", ":", "ARM", "::", "LDMIA_UPD", ";", "unsigned", "LdrOpc", "=", "AFI", "->", "isThumbFunction", "(", ")", "?", "ARM", "::", "t2LDR_POST", ":", "ARM", "::", "LDR_POST_IMM", ";", "unsigned", "FltOpc", "=", "ARM", "::", "VLDMDIA_UPD", ";", "emitPopInst", "(", "MBB", ",", "MI", ",", "CSI", ",", "FltOpc", ",", "0", ",", "isVarArg", ",", "true", ",", "&", "isARMArea3Register", ")", ";", "emitPopInst", "(", "MBB", ",", "MI", ",", "CSI", ",", "PopOpc", ",", "LdrOpc", ",", "isVarArg", ",", "false", ",", "&", "isARMArea2Register", ")", ";", "emitPopInst", "(", "MBB", ",", "MI", ",", "CSI", ",", "PopOpc", ",", "LdrOpc", ",", "isVarArg", ",", "false", ",", "&", "isARMArea1Register", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["restoreCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "restore", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "load", "instructions", "via", "loadRegToStackSlot", "(", ")", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "0", "ARM::t2LDMIA_UPD", "ARM::LDMIA_UPD", "ARM::t2LDR_POST", "ARM::LDR_POST_IMM", "ARM::VLDMDIA_UPD", "0", "ARM", "ARM", "ARM"], "File": "ARMFrameLowering84", "Func": "restoreCalleeSavedRegisters", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2258, "Length": 182, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMTargetLowering", "::", "mayBeEmittedAsTailCall", "(", "CallInst", "*", "CI", ")", "const", "{", "if", "(", "!", "EnableARMTailCalls", ")", "return", "false", ";", "if", "(", "!", "CI", "->", "isTailCall", "(", ")", ")", "return", "false", ";", "return", "!", "Subtarget", "->", "isThumb1Only", "(", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "may", "be", "able", "emit", "the", "call", "instruction", "as", "a", "tail", "call", "."], "TS_V_token": ["ARM", "ARM", "ARM"], "File": "ARMISelLowering114", "Func": "mayBeEmittedAsTailCall", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2259, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "char", "*", "elf_platform", "(", "void", ")", "{", "static", "const", "char", "*", "cpu", "=", "NULL", ";", "if", "(", "cpu", "!=", "NULL", ")", "return", "cpu", ";", "int", "fd", "=", "open", "(", "\"/proc/self/auxv\"", ",", "O_RDONLY", ")", ";", "if", "(", "fd", "!=", "-", "1", ")", "{", "char", "buf", "[", "1024", "]", ";", "ElfW", "(", "auxv_t", ")", "*", "av", ";", "ssize_t", "n", ";", "n", "=", "read", "(", "fd", ",", "buf", ",", "sizeof", "(", "buf", ")", ")", ";", "close", "(", "fd", ")", ";", "if", "(", "n", ">", "0", ")", "{", "for", "(", "av", "=", "(", "ElfW", "(", "auxv_t", ")", "*", ")", "buf", ";", "av", "->", "a_type", "!=", "AT_NULL", ";", "++", "av", ")", "if", "(", "av", "->", "a_type", "==", "AT_PLATFORM", ")", "{", "cpu", "=", "(", "const", "char", "*", ")", "av", "->", "a_un", ".", "a_val", ";", "break", ";", "}", "}", "if", "(", "cpu", "!=", "NULL", ")", "{", "size_t", "i", ",", "j", ";", "char", "*", "s", ";", "for", "(", "i", "=", "0", ";", "i", "<", "ARRAY_SIZE", "(", "rs6000_supported_cpu_names", ")", ";", "i", "++", ")", "if", "(", "!", "strcmp", "(", "cpu", ",", "rs6000_supported_cpu_names", "[", "i", "]", ")", ")", "return", "cpu", ";", "for", "(", "i", "=", "0", ";", "linux_cpu_translation_table", "[", "i", "]", "[", "0", "]", "!=", "NULL", ";", "i", "++", ")", "{", "const", "char", "*", "canonical", "=", "linux_cpu_translation_table", "[", "i", "]", "[", "0", "]", ";", "for", "(", "j", "=", "1", ";", "linux_cpu_translation_table", "[", "i", "]", "[", "j", "]", "!=", "NULL", ";", "j", "++", ")", "if", "(", "!", "strcmp", "(", "cpu", ",", "linux_cpu_translation_table", "[", "i", "]", "[", "j", "]", ")", ")", "{", "cpu", "=", "canonical", ";", "return", "cpu", ";", "}", "}", "auto_vec", "<", "const", "char", "*", ">", "candidates", ";", "for", "(", "i", "=", "0", ";", "i", "<", "ARRAY_SIZE", "(", "rs6000_supported_cpu_names", ")", ";", "i", "++", ")", "candidates", ".", "safe_push", "(", "rs6000_supported_cpu_names", "[", "i", "]", ")", ";", "candidates_list_and_hint", "(", "cpu", ",", "s", ",", "candidates", ")", ";", "fatal_error", "(", "input_location", ",", "\"Unsupported cpu name returned from kernel for \"", "\"%<-mcpu=native%>: %s\\n\"", "\"Please use an explicit cpu name. Valid cpu names are: %s\"", ",", "cpu", ",", "s", ")", ";", "}", "}", "return", "NULL", ";", "}", ""], "natrual_language": ["Returns", "the", "canonical", "AT_PLATFORM", "if", "present", ",", "otherwise", "NULL", "."], "TS_V_token": ["rs6000", "\"/proc/self/auxv\"", "1", "1024", "0", "0", "0", "0", "0", "1", "0", "\"Unsupported cpu name returned from kernel for \"", "\"%<-mcpu=native%>: %s\\n\"", "\"Please use an explicit cpu name. Valid cpu names are: %s\""], "File": "driver-rs60006", "Func": "elf_platform", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2260, "Length": 322, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_option_save", "(", "struct", "cl_target_option", "*", "ptr", ",", "struct", "gcc_options", "*", "opts", ")", "{", "ptr", "->", "x_arm_arch_string", "=", "opts", "->", "x_arm_arch_string", ";", "ptr", "->", "x_arm_cpu_string", "=", "opts", "->", "x_arm_cpu_string", ";", "ptr", "->", "x_arm_tune_string", "=", "opts", "->", "x_arm_tune_string", ";", "}", ""], "natrual_language": ["Implement", "TARGET_OPTION_SAVE", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "arm_option_save", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2261, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "LC3bSubtarget", "*", "getSubtargetImpl", "(", ")", "const", "{", "return", "&", "Subtarget", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["LC3b", "LC3b"], "File": "LC3bTargetMachine", "Func": "getSubtargetImpl", "Target": "LC3b", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2262, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "addExpr", "(", "MCInst", "&", "Inst", ",", "const", "MCExpr", "*", "Expr", ")", "const", "{", "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": ["X86"], "File": "X86AsmParser (2)2", "Func": "addExpr", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2263, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ix86_expand_vector_convert_uns_vsivsf", "(", "rtx", "target", ",", "rtx", "val", ")", "{", "rtx", "tmp", "[", "8", "]", ";", "REAL_VALUE_TYPE", "TWO16r", ";", "machine_mode", "intmode", "=", "GET_MODE", "(", "val", ")", ";", "machine_mode", "fltmode", "=", "GET_MODE", "(", "target", ")", ";", "rtx", "(", "*", "cvt", ")", "(", "rtx", ",", "rtx", ")", ";", "if", "(", "intmode", "==", "V4SImode", ")", "cvt", "=", "gen_floatv4siv4sf2", ";", "else", "cvt", "=", "gen_floatv8siv8sf2", ";", "tmp", "[", "0", "]", "=", "ix86_build_const_vector", "(", "intmode", ",", "1", ",", "GEN_INT", "(", "0xffff", ")", ")", ";", "tmp", "[", "0", "]", "=", "force_reg", "(", "intmode", ",", "tmp", "[", "0", "]", ")", ";", "tmp", "[", "1", "]", "=", "expand_simple_binop", "(", "intmode", ",", "AND", ",", "val", ",", "tmp", "[", "0", "]", ",", "NULL_RTX", ",", "1", ",", "OPTAB_DIRECT", ")", ";", "tmp", "[", "2", "]", "=", "expand_simple_binop", "(", "intmode", ",", "LSHIFTRT", ",", "val", ",", "GEN_INT", "(", "16", ")", ",", "NULL_RTX", ",", "1", ",", "OPTAB_DIRECT", ")", ";", "tmp", "[", "3", "]", "=", "gen_reg_rtx", "(", "fltmode", ")", ";", "emit_insn", "(", "cvt", "(", "tmp", "[", "3", "]", ",", "tmp", "[", "1", "]", ")", ")", ";", "tmp", "[", "4", "]", "=", "gen_reg_rtx", "(", "fltmode", ")", ";", "emit_insn", "(", "cvt", "(", "tmp", "[", "4", "]", ",", "tmp", "[", "2", "]", ")", ")", ";", "real_ldexp", "(", "&", "TWO16r", ",", "&", "dconst1", ",", "16", ")", ";", "tmp", "[", "5", "]", "=", "const_double_from_real_value", "(", "TWO16r", ",", "SFmode", ")", ";", "tmp", "[", "5", "]", "=", "force_reg", "(", "fltmode", ",", "ix86_build_const_vector", "(", "fltmode", ",", "1", ",", "tmp", "[", "5", "]", ")", ")", ";", "if", "(", "TARGET_FMA", ")", "{", "tmp", "[", "6", "]", "=", "gen_rtx_FMA", "(", "fltmode", ",", "tmp", "[", "4", "]", ",", "tmp", "[", "5", "]", ",", "tmp", "[", "3", "]", ")", ";", "emit_move_insn", "(", "target", ",", "tmp", "[", "6", "]", ")", ";", "}", "else", "{", "tmp", "[", "6", "]", "=", "expand_simple_binop", "(", "fltmode", ",", "MULT", ",", "tmp", "[", "4", "]", ",", "tmp", "[", "5", "]", ",", "NULL_RTX", ",", "1", ",", "OPTAB_DIRECT", ")", ";", "tmp", "[", "7", "]", "=", "expand_simple_binop", "(", "fltmode", ",", "PLUS", ",", "tmp", "[", "3", "]", ",", "tmp", "[", "6", "]", ",", "target", ",", "1", ",", "OPTAB_DIRECT", ")", ";", "if", "(", "tmp", "[", "7", "]", "!=", "target", ")", "emit_move_insn", "(", "target", ",", "tmp", "[", "7", "]", ")", ";", "}", "}", ""], "natrual_language": ["floatunsv", "{", "4,8", "}", "siv", "{", "4,8", "}", "sf2", "expander", ".", "Expand", "code", "to", "convert", "a", "vector", "of", "unsigned", "ints", "VAL", "to", "vector", "of", "floats", "TARGET", "."], "TS_V_token": ["i386", "8", "0", "1", "0xffff", "0", "0", "1", "0", "1", "2", "16", "1", "3", "3", "1", "4", "4", "2", "16", "5", "5", "1", "5", "6", "4", "5", "3", "6", "6", "4", "5", "1", "7", "3", "6", "1", "7", "7"], "File": "i386-expand", "Func": "ix86_expand_vector_convert_uns_vsivsf", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2264, "Length": 360, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getReg", "(", ")", "const", "{", "assert", "(", "isRegNumber", "(", ")", "&&", "\"Invalid access!\"", ")", ";", "return", "(", "unsigned", ")", "Imm", ".", "Val", ";", "}", ""], "natrual_language": ["Returns", "the", "register", "associated", "with", "this", "edge", "."], "TS_V_token": ["PowerPC", "\"Invalid access!\""], "File": "PPCAsmParser (2)", "Func": "getReg", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2265, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86TargetLowering", "::", "getJumpTableEncoding", "(", ")", "const", "{", "if", "(", "getTargetMachine", "(", ")", ".", "getRelocationModel", "(", ")", "==", "Reloc", "::", "PIC_", "&&", "Subtarget", "->", "isPICStyleGOT", "(", ")", ")", "return", "MachineJumpTableInfo", "::", "EK_Custom32", ";", "return", "TargetLowering", "::", "getJumpTableEncoding", "(", ")", ";", "}", ""], "natrual_language": ["Return", "the", "entry", "encoding", "for", "a", "jump", "table", "in", "the", "current", "function", "."], "TS_V_token": ["X86", "X86"], "File": "X86ISelLowering (2)", "Func": "getJumpTableEncoding", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2266, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_sched_fusion_priority", "(", "rtx_insn", "*", "insn", ",", "int", "max_pri", ",", "int", "*", "fusion_pri", ",", "int", "*", "pri", ")", "{", "int", "tmp", ",", "off_val", ";", "rtx", "base", ",", "offset", ";", "enum", "sched_fusion_type", "fusion", ";", "gcc_assert", "(", "INSN_P", "(", "insn", ")", ")", ";", "tmp", "=", "max_pri", "-", "1", ";", "fusion", "=", "fusion_load_store", "(", "insn", ",", "&", "base", ",", "&", "offset", ")", ";", "if", "(", "fusion", "==", "SCHED_FUSION_NONE", ")", "{", "*", "pri", "=", "tmp", ";", "*", "fusion_pri", "=", "tmp", ";", "return", ";", "}", "*", "fusion_pri", "=", "tmp", "-", "fusion", "*", "FIRST_PSEUDO_REGISTER", "-", "REGNO", "(", "base", ")", ";", "tmp", "/=", "2", ";", "off_val", "=", "(", "int", ")", "(", "INTVAL", "(", "offset", ")", ")", ";", "if", "(", "off_val", ">=", "0", ")", "tmp", "-=", "(", "off_val", "&", "0xfffff", ")", ";", "else", "tmp", "+=", "(", "(", "-", "off_val", ")", "&", "0xfffff", ")", ";", "*", "pri", "=", "tmp", ";", "return", ";", "}", ""], "natrual_language": ["Implement", "the", "TARGET_SCHED_FUSION_PRIORITY", "hook", ".", "Currently", "we", "only", "support", "to", "fuse", "ldr", "or", "str", "instructions", ",", "so", "FUSION_PRI", "and", "PRI", "are", "only", "calculated", "for", "these", "instructions", ".", "For", "other", "instruction", ",", "FUSION_PRI", "and", "PRI", "are", "simply", "set", "to", "MAX_PRI", "-", "1", ".", "In", "the", "future", ",", "other", "type", "instruction", "fusion", "can", "be", "added", "by", "returning", "different", "priorities", ".", "It", "'s", "important", "that", "irrelevant", "instructions", "get", "the", "largest", "FUSION_PRI", "."], "TS_V_token": ["aarch64", "1", "2", "0", "0xfffff", "0xfffff"], "File": "aarch64", "Func": "aarch64_sched_fusion_priority", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2267, "Length": 145, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86DomainReassignment", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "if", "(", "DisableX86DomainReassignment", ")", "return", "false", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** Machine Function before Domain Reassignment *****\\n\"", ")", ";", "DEBUG", "(", "MF", ".", "print", "(", "dbgs", "(", ")", ")", ")", ";", "STI", "=", "&", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "if", "(", "!", "STI", "->", "hasAVX512", "(", ")", ")", "return", "false", ";", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "assert", "(", "MRI", "->", "isSSA", "(", ")", "&&", "\"Expected MIR to be in SSA form\"", ")", ";", "TII", "=", "STI", "->", "getInstrInfo", "(", ")", ";", "initConverters", "(", ")", ";", "bool", "Changed", "=", "false", ";", "EnclosedEdges", ".", "clear", "(", ")", ";", "EnclosedInstrs", ".", "clear", "(", ")", ";", "std", "::", "vector", "<", "Closure", ">", "Closures", ";", "for", "(", "unsigned", "Idx", "=", "0", ";", "Idx", "<", "MRI", "->", "getNumVirtRegs", "(", ")", ";", "++", "Idx", ")", "{", "unsigned", "Reg", "=", "TargetRegisterInfo", "::", "index2VirtReg", "(", "Idx", ")", ";", "if", "(", "!", "isGPR", "(", "MRI", "->", "getRegClass", "(", "Reg", ")", ")", ")", "continue", ";", "if", "(", "EnclosedEdges", ".", "count", "(", "Reg", ")", ")", "continue", ";", "Closure", "C", "(", "{", "MaskDomain", "}", ")", ";", "buildClosure", "(", "C", ",", "Reg", ")", ";", "if", "(", "!", "C", ".", "empty", "(", ")", "&&", "C", ".", "isLegal", "(", "MaskDomain", ")", ")", "Closures", ".", "push_back", "(", "std", "::", "move", "(", "C", ")", ")", ";", "}", "for", "(", "Closure", "&", "C", ":", "Closures", ")", "if", "(", "isReassignmentProfitable", "(", "C", ",", "MaskDomain", ")", ")", "{", "reassign", "(", "C", ",", "MaskDomain", ")", ";", "++", "NumClosuresConverted", ";", "Changed", "=", "true", ";", "}", "for", "(", "auto", "I", ":", "Converters", ")", "delete", "I", ".", "second", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** Machine Function after Domain Reassignment *****\\n\"", ")", ";", "DEBUG", "(", "MF", ".", "print", "(", "dbgs", "(", ")", ")", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "\"***** Machine Function before Domain Reassignment *****\\n\"", "X86", "\"Expected MIR to be in SSA form\"", "0", "\"***** Machine Function after Domain Reassignment *****\\n\""], "File": "X86DomainReassignment15", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2268, "Length": 302, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "X86RegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "const", "X86FrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "for", "(", "MCSubRegIterator", "I", "(", "X86", "::", "RSP", ",", "this", ",", "true", ")", ";", "I", ".", "isValid", "(", ")", ";", "++", "I", ")", "Reserved", ".", "set", "(", "*", "I", ")", ";", "for", "(", "MCSubRegIterator", "I", "(", "X86", "::", "RIP", ",", "this", ",", "true", ")", ";", "I", ".", "isValid", "(", ")", ";", "++", "I", ")", "Reserved", ".", "set", "(", "*", "I", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "{", "for", "(", "MCSubRegIterator", "I", "(", "X86", "::", "RBP", ",", "this", ",", "true", ")", ";", "I", ".", "isValid", "(", ")", ";", "++", "I", ")", "Reserved", ".", "set", "(", "*", "I", ")", ";", "}", "if", "(", "hasBasePointer", "(", "MF", ")", ")", "{", "CallingConv", "::", "ID", "CC", "=", "MF", ".", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", ";", "const", "uint32_t", "*", "RegMask", "=", "getCallPreservedMask", "(", "MF", ",", "CC", ")", ";", "if", "(", "MachineOperand", "::", "clobbersPhysReg", "(", "RegMask", ",", "getBaseRegister", "(", ")", ")", ")", "report_fatal_error", "(", "\"Stack realignment in presence of dynamic allocas is not supported with\"", "\"this calling convention.\"", ")", ";", "unsigned", "BasePtr", "=", "getX86SubSuperRegister", "(", "getBaseRegister", "(", ")", ",", "64", ")", ";", "for", "(", "MCSubRegIterator", "I", "(", "BasePtr", ",", "this", ",", "true", ")", ";", "I", ".", "isValid", "(", ")", ";", "++", "I", ")", "Reserved", ".", "set", "(", "*", "I", ")", ";", "}", "Reserved", ".", "set", "(", "X86", "::", "CS", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "SS", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "DS", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "ES", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "FS", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "GS", ")", ";", "for", "(", "unsigned", "n", "=", "0", ";", "n", "!=", "8", ";", "++", "n", ")", "Reserved", ".", "set", "(", "X86", "::", "ST0", "+", "n", ")", ";", "if", "(", "!", "Is64Bit", ")", "{", "Reserved", ".", "set", "(", "X86", "::", "SIL", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "DIL", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "BPL", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "SPL", ")", ";", "for", "(", "unsigned", "n", "=", "0", ";", "n", "!=", "8", ";", "++", "n", ")", "{", "for", "(", "MCRegAliasIterator", "AI", "(", "X86", "::", "R8", "+", "n", ",", "this", ",", "true", ")", ";", "AI", ".", "isValid", "(", ")", ";", "++", "AI", ")", "Reserved", ".", "set", "(", "*", "AI", ")", ";", "for", "(", "MCRegAliasIterator", "AI", "(", "X86", "::", "XMM8", "+", "n", ",", "this", ",", "true", ")", ";", "AI", ".", "isValid", "(", ")", ";", "++", "AI", ")", "Reserved", ".", "set", "(", "*", "AI", ")", ";", "}", "}", "if", "(", "!", "Is64Bit", "||", "!", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "hasAVX512", "(", ")", ")", "{", "for", "(", "unsigned", "n", "=", "16", ";", "n", "!=", "32", ";", "++", "n", ")", "{", "for", "(", "MCRegAliasIterator", "AI", "(", "X86", "::", "XMM0", "+", "n", ",", "this", ",", "true", ")", ";", "AI", ".", "isValid", "(", ")", ";", "++", "AI", ")", "Reserved", ".", "set", "(", "*", "AI", ")", ";", "}", "}", "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": ["X86", "X86", "X86", "X86::RSP", "X86::RIP", "X86::RBP", "\"Stack realignment in presence of dynamic allocas is not supported with\"", "\"this calling convention.\"", "X86", "64", "X86::CS", "X86::SS", "X86::DS", "X86::ES", "X86::FS", "X86::GS", "0", "8", "X86::ST0", "X86::SIL", "X86::DIL", "X86::BPL", "X86::SPL", "0", "8", "X86::R8", "X86::XMM8", "X86", "16", "32", "X86::XMM0"], "File": "X86RegisterInfo (2)4", "Func": "getReservedRegs", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2269, "Length": 508, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCIncomingValueHandler", "::", "assignValueToReg", "(", "Register", "ValVReg", ",", "Register", "PhysReg", ",", "CCValAssign", "VA", ")", "{", "markPhysRegUsed", "(", "PhysReg", ")", ";", "IncomingValueHandler", "::", "assignValueToReg", "(", "ValVReg", ",", "PhysReg", ",", "VA", ")", ";", "}", ""], "natrual_language": ["The", "specified", "value", "has", "been", "assigned", "to", "a", "physical", "register", ",", "handle", "the", "appropriate", "COPY", "(", "either", "to", "or", "from", ")", "and", "mark", "any", "relevant", "uses/defines", "as", "needed", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCCallLowering", "Func": "assignValueToReg", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2270, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_use_debug_exception_return_p", "(", "tree", "type", ")", "{", "return", "lookup_attribute", "(", "\"use_debug_exception_return\"", ",", "TYPE_ATTRIBUTES", "(", "type", ")", ")", "!=", "NULL", ";", "}", ""], "natrual_language": ["Check", "if", "the", "attribute", "to", "use", "debug", "exception", "return", "is", "set", "for", "a", "function", "."], "TS_V_token": ["mips", "\"use_debug_exception_return\""], "File": "mips", "Func": "mips_use_debug_exception_return_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2271, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "ConstraintWeight", "MipsTargetLowering", "::", "getSingleConstraintMatchWeight", "(", "AsmOperandInfo", "&", "info", ",", "const", "char", "*", "constraint", ")", "const", "{", "ConstraintWeight", "weight", "=", "CW_Invalid", ";", "Value", "*", "CallOperandVal", "=", "info", ".", "CallOperandVal", ";", "if", "(", "!", "CallOperandVal", ")", "return", "CW_Default", ";", "Type", "*", "type", "=", "CallOperandVal", "->", "getType", "(", ")", ";", "switch", "(", "*", "constraint", ")", "{", "default", ":", "weight", "=", "TargetLowering", "::", "getSingleConstraintMatchWeight", "(", "info", ",", "constraint", ")", ";", "break", ";", "case", "'d'", ":", "case", "'y'", ":", "if", "(", "type", "->", "isIntegerTy", "(", ")", ")", "weight", "=", "CW_Register", ";", "break", ";", "case", "'f'", ":", "if", "(", "Subtarget", "->", "hasMSA", "(", ")", "&&", "type", "->", "isVectorTy", "(", ")", "&&", "cast", "<", "VectorType", ">", "(", "type", ")", "->", "getBitWidth", "(", ")", "==", "128", ")", "weight", "=", "CW_Register", ";", "else", "if", "(", "type", "->", "isFloatTy", "(", ")", ")", "weight", "=", "CW_Register", ";", "break", ";", "case", "'c'", ":", "case", "'l'", ":", "case", "'x'", ":", "if", "(", "type", "->", "isIntegerTy", "(", ")", ")", "weight", "=", "CW_SpecificReg", ";", "break", ";", "case", "'I'", ":", "case", "'J'", ":", "case", "'K'", ":", "case", "'L'", ":", "case", "'N'", ":", "case", "'O'", ":", "case", "'P'", ":", "if", "(", "isa", "<", "ConstantInt", ">", "(", "CallOperandVal", ")", ")", "weight", "=", "CW_Constant", ";", "break", ";", "case", "'R'", ":", "weight", "=", "CW_Memory", ";", "break", ";", "}", "return", "weight", ";", "}", ""], "natrual_language": ["Examine", "constraint", "string", "and", "operand", "type", "and", "determine", "a", "weight", "value", "."], "TS_V_token": ["Mips", "Mips", "128"], "File": "MipsISelLowering (2)1", "Func": "getSingleConstraintMatchWeight", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2272, "Length": 214, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsNaClRewritePass", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "TII", "=", "static_cast", "<", "const", "MipsInstrInfo", "*", ">", "(", "MF", ".", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "MF", ".", "getTarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "bool", "Modified", "=", "false", ";", "for", "(", "MachineFunction", "::", "iterator", "MFI", "=", "MF", ".", "begin", "(", ")", ",", "E", "=", "MF", ".", "end", "(", ")", ";", "MFI", "!=", "E", ";", "++", "MFI", ")", "{", "MachineBasicBlock", "&", "MBB", "=", "*", "MFI", ";", "if", "(", "FlagSfiLoad", ")", "Modified", "|=", "SandboxLoadsInBlock", "(", "MBB", ")", ";", "if", "(", "FlagSfiStore", ")", "Modified", "|=", "SandboxStoresInBlock", "(", "MBB", ")", ";", "if", "(", "FlagSfiBranch", ")", "Modified", "|=", "SandboxBranchesInBlock", "(", "MBB", ")", ";", "if", "(", "FlagSfiStack", ")", "Modified", "|=", "SandboxStackChangesInBlock", "(", "MBB", ")", ";", "}", "if", "(", "FlagSfiBranch", ")", "AlignAllJumpTargets", "(", "MF", ")", ";", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Mips", "Mips", "Mips"], "File": "MipsNaClRewritePass", "Func": "runOnMachineFunction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2273, "Length": 141, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_advsimd_valid_immediate", "(", "unsigned", "HOST_WIDE_INT", "val64", ",", "simd_immediate_info", "*", "info", ",", "enum", "simd_immediate_check", "which", ")", "{", "unsigned", "int", "val32", "=", "val64", "&", "0xffffffff", ";", "unsigned", "int", "val16", "=", "val64", "&", "0xffff", ";", "unsigned", "int", "val8", "=", "val64", "&", "0xff", ";", "if", "(", "val32", "==", "(", "val64", ">>", "32", ")", ")", "{", "if", "(", "(", "which", "&", "AARCH64_CHECK_ORR", ")", "!=", "0", "&&", "aarch64_advsimd_valid_immediate_hs", "(", "val32", ",", "info", ",", "which", ",", "simd_immediate_info", "::", "MOV", ")", ")", "return", "true", ";", "if", "(", "(", "which", "&", "AARCH64_CHECK_BIC", ")", "!=", "0", "&&", "aarch64_advsimd_valid_immediate_hs", "(", "~", "val32", ",", "info", ",", "which", ",", "simd_immediate_info", "::", "MVN", ")", ")", "return", "true", ";", "if", "(", "which", "==", "AARCH64_CHECK_MOV", "&&", "val16", "==", "(", "val32", ">>", "16", ")", "&&", "val8", "==", "(", "val16", ">>", "8", ")", ")", "{", "if", "(", "info", ")", "*", "info", "=", "simd_immediate_info", "(", "QImode", ",", "val8", ")", ";", "return", "true", ";", "}", "}", "if", "(", "which", "==", "AARCH64_CHECK_MOV", ")", "{", "unsigned", "int", "i", ";", "for", "(", "i", "=", "0", ";", "i", "<", "64", ";", "i", "+=", "8", ")", "{", "unsigned", "char", "byte", "=", "(", "val64", ">>", "i", ")", "&", "0xff", ";", "if", "(", "byte", "!=", "0", "&&", "byte", "!=", "0xff", ")", "break", ";", "}", "if", "(", "i", "==", "64", ")", "{", "if", "(", "info", ")", "*", "info", "=", "simd_immediate_info", "(", "DImode", ",", "val64", ")", ";", "return", "true", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "replicating", "VAL64", "is", "a", "valid", "immediate", "for", "the", "Advanced", "SIMD", "operation", "described", "by", "WHICH", ".", "If", "INFO", "is", "nonnull", ",", "use", "it", "to", "describe", "valid", "immediates", "."], "TS_V_token": ["aarch64", "0xffffffff", "0xffff", "0xff", "32", "0", "0", "16", "8", "0", "64", "8", "0xff", "0", "0xff", "64"], "File": "aarch64", "Func": "aarch64_advsimd_valid_immediate", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2274, "Length": 228, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "HOST_WIDE_INT", "rs6000_starting_frame_offset", "(", "void", ")", "{", "if", "(", "FRAME_GROWS_DOWNWARD", ")", "return", "0", ";", "return", "RS6000_STARTING_FRAME_OFFSET", ";", "}", ""], "natrual_language": ["Implement", "TARGET_STARTING_FRAME_OFFSET", "."], "TS_V_token": ["rs6000", "0"], "File": "rs6000", "Func": "rs6000_starting_frame_offset", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2275, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SMLoc", "getLoc", "(", ")", "const", "{", "return", "getParser", "(", ")", ".", "getTok", "(", ")", ".", "getLoc", "(", ")", ";", "}", ""], "natrual_language": ["Get", "the", "source", "location", "of", "the", "point", "where", "the", "field", "was", "defined", "."], "TS_V_token": ["AArch64"], "File": "AArch64AsmParser (2)1", "Func": "getLoc", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2276, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64PassConfig", "::", "addIRPasses", "(", ")", "{", "addPass", "(", "createAtomicExpandPass", "(", ")", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "EnableAtomicTidy", ")", "addPass", "(", "createCFGSimplificationPass", "(", "1", ",", "true", ",", "true", ",", "false", ",", "true", ")", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "if", "(", "EnableLoopDataPrefetch", ")", "addPass", "(", "createLoopDataPrefetchPass", "(", ")", ")", ";", "if", "(", "EnableFalkorHWPFFix", ")", "addPass", "(", "createFalkorMarkStridedAccessesPass", "(", ")", ")", ";", "}", "TargetPassConfig", "::", "addIRPasses", "(", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "addPass", "(", "createInterleavedLoadCombinePass", "(", ")", ")", ";", "addPass", "(", "createInterleavedAccessPass", "(", ")", ")", ";", "}", "if", "(", "TM", "->", "getOptLevel", "(", ")", "==", "CodeGenOpt", "::", "Aggressive", "&&", "EnableGEPOpt", ")", "{", "addPass", "(", "createSeparateConstOffsetFromGEPPass", "(", "true", ")", ")", ";", "addPass", "(", "createEarlyCSEPass", "(", ")", ")", ";", "addPass", "(", "createLICMPass", "(", ")", ")", ";", "}", "addPass", "(", "createAArch64StackTaggingPass", "(", ")", ")", ";", "if", "(", "PACStack", "::", "doAArch64IRPass", "(", ")", ")", "addPass", "(", "PACStack", "::", "createPACStackOptCallPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["Add", "common", "target", "configurable", "passes", "that", "perform", "LLVM", "IR", "to", "IR", "transforms", "following", "machine", "independent", "optimization", "."], "TS_V_token": ["AArch64", "AArch64", "1", "AArch64", "AArch64"], "File": "AArch64TargetMachine81", "Func": "addIRPasses", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2277, "Length": 177, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "TOYRegisterInfo", "*", "getRegisterInfo", "(", ")", "const", "override", "{", "return", "&", "InstrInfo", ".", "getRegisterInfo", "(", ")", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["TOY", "TOY"], "File": "TOYSubtarget1", "Func": "getRegisterInfo", "Target": "TOY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2278, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64CallLowering", "::", "lowerFormalArguments", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "const", "Function", "::", "ArgumentListType", "&", "Args", ",", "const", "SmallVectorImpl", "<", "unsigned", ">", "&", "VRegs", ")", "const", "{", "MachineFunction", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "const", "Function", "&", "F", "=", "*", "MF", ".", "getFunction", "(", ")", ";", "SmallVector", "<", "CCValAssign", ",", "16", ">", "ArgLocs", ";", "CCState", "CCInfo", "(", "F", ".", "getCallingConv", "(", ")", ",", "F", ".", "isVarArg", "(", ")", ",", "MF", ",", "ArgLocs", ",", "F", ".", "getContext", "(", ")", ")", ";", "unsigned", "NumArgs", "=", "Args", ".", "size", "(", ")", ";", "Function", "::", "const_arg_iterator", "CurOrigArg", "=", "Args", ".", "begin", "(", ")", ";", "const", "AArch64TargetLowering", "&", "TLI", "=", "*", "getTLI", "<", "AArch64TargetLowering", ">", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "NumArgs", ";", "++", "i", ",", "++", "CurOrigArg", ")", "{", "MVT", "ValVT", "=", "MVT", "::", "getVT", "(", "CurOrigArg", "->", "getType", "(", ")", ")", ";", "CCAssignFn", "*", "AssignFn", "=", "TLI", ".", "CCAssignFnForCall", "(", "F", ".", "getCallingConv", "(", ")", ",", "false", ")", ";", "bool", "Res", "=", "AssignFn", "(", "i", ",", "ValVT", ",", "ValVT", ",", "CCValAssign", "::", "Full", ",", "ISD", "::", "ArgFlagsTy", "(", ")", ",", "CCInfo", ")", ";", "assert", "(", "!", "Res", "&&", "\"Call operand has unhandled type\"", ")", ";", "(", "void", ")", "Res", ";", "}", "assert", "(", "ArgLocs", ".", "size", "(", ")", "==", "Args", ".", "size", "(", ")", "&&", "\"We have a different number of location and args?!\"", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "ArgLocs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "ArgLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Not yet implemented\"", ")", ";", "MIRBuilder", ".", "getMBB", "(", ")", ".", "addLiveIn", "(", "VA", ".", "getLocReg", "(", ")", ")", ";", "MIRBuilder", ".", "buildInstr", "(", "TargetOpcode", "::", "COPY", ",", "VRegs", "[", "i", "]", ",", "VA", ".", "getLocReg", "(", ")", ")", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown loc info!\"", ")", ";", "case", "CCValAssign", "::", "Full", ":", "break", ";", "case", "CCValAssign", "::", "BCvt", ":", "break", ";", "case", "CCValAssign", "::", "AExt", ":", "case", "CCValAssign", "::", "SExt", ":", "case", "CCValAssign", "::", "ZExt", ":", "assert", "(", "0", "&&", "\"Not yet implemented\"", ")", ";", "break", ";", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "the", "incoming", "(", "formal", ")", "arguments", ",", "described", "by", "VRegs", ",", "for", "GlobalISel", "."], "TS_V_token": ["AArch64", "AArch64", "16", "AArch64", "AArch64", "0", "MVT::getVT", "ISD::ArgFlagsTy", "\"Call operand has unhandled type\"", "\"We have a different number of location and args?!\"", "0", "\"Not yet implemented\"", "\"Unknown loc info!\"", "0", "\"Not yet implemented\""], "File": "AArch64CallLowering43", "Func": "lowerFormalArguments", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2279, "Length": 357, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isAndroid", "(", ")", "const", "{", "return", "IsAndroid", ";", "}", ""], "natrual_language": ["Tests", "whether", "the", "target", "is", "Android", "."], "TS_V_token": ["Mips"], "File": "MipsSubtarget11", "Func": "isAndroid", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2280, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "VEInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "Register", "SrcReg", ",", "bool", "isKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", "->", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", "->", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "*", "MF", ",", "FI", ")", ",", "MachineMemOperand", "::", "MOStore", ",", "MFI", ".", "getObjectSize", "(", "FI", ")", ",", "MFI", ".", "getObjectAlign", "(", "FI", ")", ")", ";", "if", "(", "RC", "==", "&", "VE", "::", "I64RegClass", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "VE", "::", "STrii", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", "else", "if", "(", "RC", "==", "&", "VE", "::", "I32RegClass", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "VE", "::", "STLrii", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", "else", "if", "(", "RC", "==", "&", "VE", "::", "F32RegClass", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "VE", "::", "STUrii", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", "else", "if", "(", "VE", "::", "F128RegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "VE", "::", "STQrii", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", "else", "report_fatal_error", "(", "\"Can't store this register to stack slot\"", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["VE", "VE", "VE::I64RegClass", "VE::STrii", "0", "0", "VE::I32RegClass", "VE::STLrii", "0", "0", "VE::F32RegClass", "VE::STUrii", "0", "0", "VE::F128RegClass", "VE::STQrii", "0", "0", "\"Can't store this register to stack slot\""], "File": "VEInstrInfo", "Func": "storeRegToStackSlot", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2281, "Length": 354, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "xscale_sched_adjust_cost", "(", "rtx_insn", "*", "insn", ",", "rtx", "link", ",", "rtx_insn", "*", "dep", ",", "int", "*", "cost", ")", "{", "if", "(", "REG_NOTE_KIND", "(", "link", ")", "==", "0", "&&", "recog_memoized", "(", "insn", ")", ">=", "0", "&&", "recog_memoized", "(", "dep", ")", ">=", "0", ")", "{", "int", "shift_opnum", "=", "get_attr_shift", "(", "insn", ")", ";", "enum", "attr_type", "attr_type", "=", "get_attr_type", "(", "dep", ")", ";", "if", "(", "shift_opnum", "!=", "0", "&&", "(", "attr_type", "==", "TYPE_ALU_SHIFT_IMM", "||", "attr_type", "==", "TYPE_ALUS_SHIFT_IMM", "||", "attr_type", "==", "TYPE_LOGIC_SHIFT_IMM", "||", "attr_type", "==", "TYPE_LOGICS_SHIFT_IMM", "||", "attr_type", "==", "TYPE_ALU_SHIFT_REG", "||", "attr_type", "==", "TYPE_ALUS_SHIFT_REG", "||", "attr_type", "==", "TYPE_LOGIC_SHIFT_REG", "||", "attr_type", "==", "TYPE_LOGICS_SHIFT_REG", "||", "attr_type", "==", "TYPE_MOV_SHIFT", "||", "attr_type", "==", "TYPE_MVN_SHIFT", "||", "attr_type", "==", "TYPE_MOV_SHIFT_REG", "||", "attr_type", "==", "TYPE_MVN_SHIFT_REG", ")", ")", "{", "rtx", "shifted_operand", ";", "int", "opno", ";", "extract_insn", "(", "insn", ")", ";", "shifted_operand", "=", "recog_data", ".", "operand", "[", "shift_opnum", "]", ";", "extract_insn", "(", "dep", ")", ";", "preprocess_constraints", "(", "dep", ")", ";", "for", "(", "opno", "=", "0", ";", "opno", "<", "recog_data", ".", "n_operands", ";", "opno", "++", ")", "{", "if", "(", "recog_data", ".", "operand_type", "[", "opno", "]", "==", "OP_IN", ")", "continue", ";", "if", "(", "reg_overlap_mentioned_p", "(", "recog_data", ".", "operand", "[", "opno", "]", ",", "shifted_operand", ")", ")", "{", "*", "cost", "=", "2", ";", "return", "false", ";", "}", "}", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["Adjust", "cost", "hook", "for", "XScale", "."], "TS_V_token": ["arm", "0", "0", "0", "0", "0", "2"], "File": "arm4", "Func": "xscale_sched_adjust_cost", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2282, "Length": 208, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "PPCMCExpr", "*", "PPCMCExpr", "::", "Create", "(", "VariantKind", "Kind", ",", "const", "MCExpr", "*", "Expr", ",", "MCContext", "&", "Ctx", ")", "{", "return", "new", "(", "Ctx", ")", "PPCMCExpr", "(", "Kind", ",", "Expr", ")", ";", "}", ""], "natrual_language": ["Construct", "a", "unary", "instruction", ",", "given", "the", "opcode", "and", "an", "operand", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC"], "File": "PPCMCExpr24", "Func": "Create", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2283, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "rs6000_builtin_vectorized_libmass", "(", "combined_fn", "fn", ",", "tree", "type_out", ",", "tree", "type_in", ")", "{", "char", "name", "[", "32", "]", ";", "const", "char", "*", "suffix", "=", "NULL", ";", "tree", "fntype", ",", "new_fndecl", ",", "bdecl", "=", "NULL_TREE", ";", "int", "n_args", "=", "1", ";", "const", "char", "*", "bname", ";", "machine_mode", "el_mode", ",", "in_mode", ";", "int", "n", ",", "in_n", ";", "if", "(", "!", "flag_unsafe_math_optimizations", "||", "!", "TARGET_VSX", ")", "return", "NULL_TREE", ";", "el_mode", "=", "TYPE_MODE", "(", "TREE_TYPE", "(", "type_out", ")", ")", ";", "n", "=", "TYPE_VECTOR_SUBPARTS", "(", "type_out", ")", ";", "in_mode", "=", "TYPE_MODE", "(", "TREE_TYPE", "(", "type_in", ")", ")", ";", "in_n", "=", "TYPE_VECTOR_SUBPARTS", "(", "type_in", ")", ";", "if", "(", "el_mode", "!=", "in_mode", "||", "n", "!=", "in_n", ")", "return", "NULL_TREE", ";", "switch", "(", "fn", ")", "{", "CASE_CFN_ATAN2", ":", "CASE_CFN_HYPOT", ":", "CASE_CFN_POW", ":", "n_args", "=", "2", ";", "CASE_CFN_ACOS", ":", "CASE_CFN_ACOSH", ":", "CASE_CFN_ASIN", ":", "CASE_CFN_ASINH", ":", "CASE_CFN_ATAN", ":", "CASE_CFN_ATANH", ":", "CASE_CFN_CBRT", ":", "CASE_CFN_COS", ":", "CASE_CFN_COSH", ":", "CASE_CFN_ERF", ":", "CASE_CFN_ERFC", ":", "CASE_CFN_EXP2", ":", "CASE_CFN_EXP", ":", "CASE_CFN_EXPM1", ":", "CASE_CFN_LGAMMA", ":", "CASE_CFN_LOG10", ":", "CASE_CFN_LOG1P", ":", "CASE_CFN_LOG2", ":", "CASE_CFN_LOG", ":", "CASE_CFN_SIN", ":", "CASE_CFN_SINH", ":", "CASE_CFN_SQRT", ":", "CASE_CFN_TAN", ":", "CASE_CFN_TANH", ":", "if", "(", "el_mode", "==", "DFmode", "&&", "n", "==", "2", ")", "{", "bdecl", "=", "mathfn_built_in", "(", "double_type_node", ",", "fn", ")", ";", "suffix", "=", "\"d2\"", ";", "}", "else", "if", "(", "el_mode", "==", "SFmode", "&&", "n", "==", "4", ")", "{", "bdecl", "=", "mathfn_built_in", "(", "float_type_node", ",", "fn", ")", ";", "suffix", "=", "\"4\"", ";", "}", "else", "return", "NULL_TREE", ";", "if", "(", "!", "bdecl", ")", "return", "NULL_TREE", ";", "break", ";", "default", ":", "return", "NULL_TREE", ";", "}", "gcc_assert", "(", "suffix", "!=", "NULL", ")", ";", "bname", "=", "IDENTIFIER_POINTER", "(", "DECL_NAME", "(", "bdecl", ")", ")", ";", "if", "(", "!", "bname", ")", "return", "NULL_TREE", ";", "strcpy", "(", "name", ",", "bname", "+", "sizeof", "(", "\"__builtin_\"", ")", "-", "1", ")", ";", "strcat", "(", "name", ",", "suffix", ")", ";", "if", "(", "n_args", "==", "1", ")", "fntype", "=", "build_function_type_list", "(", "type_out", ",", "type_in", ",", "NULL", ")", ";", "else", "if", "(", "n_args", "==", "2", ")", "fntype", "=", "build_function_type_list", "(", "type_out", ",", "type_in", ",", "type_in", ",", "NULL", ")", ";", "else", "gcc_unreachable", "(", ")", ";", "new_fndecl", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "FUNCTION_DECL", ",", "get_identifier", "(", "name", ")", ",", "fntype", ")", ";", "TREE_PUBLIC", "(", "new_fndecl", ")", "=", "1", ";", "DECL_EXTERNAL", "(", "new_fndecl", ")", "=", "1", ";", "DECL_IS_NOVOPS", "(", "new_fndecl", ")", "=", "1", ";", "TREE_READONLY", "(", "new_fndecl", ")", "=", "1", ";", "return", "new_fndecl", ";", "}", ""], "natrual_language": ["Handler", "for", "the", "Mathematical", "Acceleration", "Subsystem", "(", "mass", ")", "interface", "to", "a", "library", "with", "vectorized", "intrinsics", "."], "TS_V_token": ["rs6000", "32", "1", "2", "2", "\"d2\"", "4", "\"4\"", "\"__builtin_\"", "1", "1", "2", "1", "1", "1", "1"], "File": "rs60005", "Func": "rs6000_builtin_vectorized_libmass", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2284, "Length": 384, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86ATTInstPrinter", "::", "printPCRelImm", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "if", "(", "Op", ".", "isImm", "(", ")", ")", "O", "<<", "formatImm", "(", "Op", ".", "getImm", "(", ")", ")", ";", "else", "{", "assert", "(", "Op", ".", "isExpr", "(", ")", "&&", "\"unknown pcrel immediate operand\"", ")", ";", "const", "MCConstantExpr", "*", "BranchTarget", "=", "dyn_cast", "<", "MCConstantExpr", ">", "(", "Op", ".", "getExpr", "(", ")", ")", ";", "int64_t", "Address", ";", "if", "(", "BranchTarget", "&&", "BranchTarget", "->", "EvaluateAsAbsolute", "(", "Address", ")", ")", "{", "O", "<<", "formatHex", "(", "(", "uint64_t", ")", "Address", ")", ";", "}", "else", "{", "O", "<<", "*", "Op", ".", "getExpr", "(", ")", ";", "}", "}", "}", ""], "natrual_language": ["value", "(", "e.g", "."], "TS_V_token": ["X86", "X86", "\"unknown pcrel immediate operand\""], "File": "X86ATTInstPrinter (2)", "Func": "printPCRelImm", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2285, "Length": 119, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "fixupNeedsRelaxation", "(", "const", "MCFixup", "&", "Fixup", ",", "uint64_t", "Value", ",", "const", "MCRelaxableFragment", "*", "DF", ",", "const", "MCAsmLayout", "&", "Layout", ")", "const", "override", "{", "return", "false", ";", "}", ""], "natrual_language": ["Simple", "predicate", "for", "targets", "where", "!", "Resolved", "implies", "requiring", "relaxation", "."], "TS_V_token": ["LoongArch"], "File": "LoongArchAsmBackend", "Func": "fixupNeedsRelaxation", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2286, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "pa_maybe_emit_compare_and_swap_exchange_loop", "(", "rtx", "target", ",", "rtx", "mem", ",", "rtx", "val", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "mem", ")", ";", "if", "(", "can_compare_and_swap_p", "(", "mode", ",", "true", ")", ")", "{", "if", "(", "!", "target", "||", "!", "register_operand", "(", "target", ",", "mode", ")", ")", "target", "=", "gen_reg_rtx", "(", "mode", ")", ";", "if", "(", "pa_expand_compare_and_swap_loop", "(", "mem", ",", "target", ",", "val", ",", "NULL_RTX", ")", ")", "return", "target", ";", "}", "return", "NULL_RTX", ";", "}", ""], "natrual_language": ["This", "function", "tries", "to", "implement", "an", "atomic", "exchange", "operation", "using", "a", "compare_and_swap", "loop", ".", "VAL", "is", "written", "to", "*", "MEM", ".", "The", "previous", "contents", "of", "*", "MEM", "are", "returned", ",", "using", "TARGET", "if", "possible", ".", "No", "memory", "model", "is", "required", "since", "a", "compare_and_swap", "loop", "is", "seq-cst", "."], "TS_V_token": ["pa"], "File": "pa", "Func": "pa_maybe_emit_compare_and_swap_exchange_loop", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2287, "Length": 72, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "pru_function_arg_advance", "(", "cumulative_args_t", "cum_v", ",", "const", "function_arg_info", "&", "arg", ")", "{", "int", "regi", "=", "pru_function_arg_regi", "(", "cum_v", ",", "arg", ".", "mode", ",", "arg", ".", "type", ",", "arg", ".", "named", ")", ";", "if", "(", "regi", ">=", "0", ")", "pru_function_arg_regi_mark_slot", "(", "regi", ",", "cum_v", ",", "arg", ".", "mode", ",", "arg", ".", "type", ",", "arg", ".", "named", ")", ";", "}", ""], "natrual_language": ["Update", "the", "data", "in", "CUM", "to", "advance", "over", "argument", "ARG", "."], "TS_V_token": ["pru", "0"], "File": "pru", "Func": "pru_function_arg_advance", "Target": "pru", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2288, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "nds32_can_use_return_insn", "(", "void", ")", "{", "int", "sp_adjust", ";", "if", "(", "!", "reload_completed", ")", "return", "0", ";", "sp_adjust", "=", "cfun", "->", "machine", "->", "local_size", "+", "cfun", "->", "machine", "->", "out_args_size", "+", "cfun", "->", "machine", "->", "callee_saved_area_gpr_padding_bytes", "+", "cfun", "->", "machine", "->", "callee_saved_fpr_regs_size", ";", "if", "(", "!", "cfun", "->", "machine", "->", "fp_as_gp_p", "&&", "satisfies_constraint_Iu08", "(", "GEN_INT", "(", "sp_adjust", ")", ")", "&&", "NDS32_DOUBLE_WORD_ALIGN_P", "(", "sp_adjust", ")", "&&", "!", "cfun", "->", "calls_alloca", "&&", "NDS32_V3PUSH_AVAILABLE_P", "&&", "!", "(", "TARGET_HARD_FLOAT", "&&", "(", "cfun", "->", "machine", "->", "callee_saved_first_fpr_regno", "!=", "SP_REGNUM", ")", ")", ")", "return", "1", ";", "return", "(", "cfun", "->", "machine", "->", "naked_p", "&&", "(", "cfun", "->", "machine", "->", "va_args_size", "==", "0", ")", ")", ";", "}", ""], "natrual_language": ["Return", "nonzero", "if", "this", "function", "is", "known", "to", "have", "a", "null", "epilogue", ".", "This", "allows", "the", "optimizer", "to", "omit", "jumps", "to", "jumps", "if", "no", "stack", "was", "created", "."], "TS_V_token": ["nds32", "0", "1", "0"], "File": "nds325", "Func": "nds32_can_use_return_insn", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2289, "Length": 110, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "type_suffix_index", "function_resolver", "::", "infer_vector_type", "(", "unsigned", "int", "argno", ")", "{", "return", "infer_vector_or_tuple_type", "(", "argno", ",", "1", ")", ";", "}", ""], "natrual_language": ["Require", "argument", "ARGNO", "to", "have", "some", "form", "of", "vector", "type", ".", "Return", "the", "associated", "type", "suffix", "on", "success", ",", "using", "TYPE_SUFFIX_b", "for", "predicates", ".", "Report", "an", "error", "and", "return", "NUM_TYPE_SUFFIXES", "on", "failure", "."], "TS_V_token": ["aarch64", "1"], "File": "aarch64-sve-builtins", "Func": "infer_vector_type", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2290, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "csky_get_movedouble_length", "(", "rtx", "operands", "[", "]", ")", "{", "rtx", "dst", "=", "operands", "[", "0", "]", ";", "rtx", "src", "=", "operands", "[", "1", "]", ";", "if", "(", "REG_P", "(", "dst", ")", ")", "{", "if", "(", "REG_P", "(", "src", ")", ")", "{", "int", "dstreg", "=", "REGNO", "(", "dst", ")", ";", "int", "srcreg", "=", "REGNO", "(", "src", ")", ";", "if", "(", "CSKY_VREG_P", "(", "srcreg", ")", "&&", "CSKY_VREG_P", "(", "dstreg", ")", ")", "return", "4", ";", "else", "return", "8", ";", "}", "else", "if", "(", "GET_CODE", "(", "src", ")", "==", "MEM", ")", "{", "rtx", "memexp", "=", "XEXP", "(", "src", ",", "0", ")", ";", "int", "dstreg", "=", "REGNO", "(", "dst", ")", ";", "struct", "csky_address", "op0", ";", "decompose_csky_address", "(", "XEXP", "(", "src", ",", "0", ")", ",", "&", "op0", ")", ";", "if", "(", "GET_CODE", "(", "memexp", ")", "==", "LABEL_REF", ")", "return", "8", ";", "if", "(", "CSKY_VREG_P", "(", "dstreg", ")", ")", "return", "4", ";", "return", "8", ";", "}", "else", "if", "(", "GET_CODE", "(", "src", ")", "==", "CONST_INT", "||", "GET_CODE", "(", "src", ")", "==", "CONST_DOUBLE", ")", "{", "split_double", "(", "src", ",", "operands", "+", "2", ",", "operands", "+", "3", ")", ";", "if", "(", "CSKY_CONST_OK_FOR_N", "(", "INTVAL", "(", "operands", "[", "2", "]", ")", "+", "1", ")", "&&", "CSKY_CONST_OK_FOR_N", "(", "INTVAL", "(", "operands", "[", "3", "]", ")", "+", "1", ")", "&&", "REGNO", "(", "operands", "[", "0", "]", ")", "<", "6", ")", "return", "4", ";", "else", "return", "8", ";", "}", "}", "else", "if", "(", "GET_CODE", "(", "dst", ")", "==", "MEM", "&&", "GET_CODE", "(", "src", ")", "==", "REG", ")", "{", "rtx", "memexp", "=", "XEXP", "(", "dst", ",", "0", ")", ";", "int", "srcreg", "=", "REGNO", "(", "src", ")", ";", "int", "offset", "=", "-", "1", ";", "if", "(", "CSKY_VREG_P", "(", "srcreg", ")", ")", "return", "4", ";", "if", "(", "GET_CODE", "(", "memexp", ")", "==", "REG", ")", "offset", "=", "0", ";", "else", "if", "(", "GET_CODE", "(", "memexp", ")", "==", "PLUS", ")", "{", "if", "(", "GET_CODE", "(", "XEXP", "(", "memexp", ",", "0", ")", ")", "==", "REG", ")", "offset", "=", "INTVAL", "(", "XEXP", "(", "memexp", ",", "1", ")", ")", ";", "else", "if", "(", "GET_CODE", "(", "XEXP", "(", "memexp", ",", "1", ")", ")", "==", "REG", ")", "offset", "=", "INTVAL", "(", "XEXP", "(", "memexp", ",", "0", ")", ")", ";", "else", "gcc_unreachable", "(", ")", ";", "}", "else", "gcc_unreachable", "(", ")", ";", "if", "(", "srcreg", "<=", "6", "&&", "offset", "<=", "1020", ")", "return", "4", ";", "else", "if", "(", "(", "srcreg", "==", "7", "&&", "offset", "<=", "1024", ")", "||", "(", "srcreg", "<=", "7", "&&", "offset", "==", "1024", ")", ")", "return", "6", ";", "else", "return", "8", ";", "}", "else", "gcc_unreachable", "(", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["Calculate", "the", "instruction", "'s", "length", "for", "moving", "double-word", "data", "."], "TS_V_token": ["csky", "0", "1", "4", "8", "0", "0", "8", "4", "8", "2", "3", "2", "1", "3", "1", "0", "6", "4", "8", "0", "1", "4", "0", "0", "1", "1", "0", "6", "1020", "4", "7", "1024", "7", "1024", "6", "8", "0"], "File": "csky", "Func": "csky_get_movedouble_length", "Target": "csky", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2291, "Length": 420, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "int", "nds32_data_alignment", "(", "tree", "data", ",", "unsigned", "int", "basic_align", ")", "{", "if", "(", "(", "basic_align", "<", "BITS_PER_WORD", ")", "&&", "(", "TREE_CODE", "(", "data", ")", "==", "ARRAY_TYPE", "||", "TREE_CODE", "(", "data", ")", "==", "UNION_TYPE", "||", "TREE_CODE", "(", "data", ")", "==", "RECORD_TYPE", ")", ")", "return", "BITS_PER_WORD", ";", "else", "return", "basic_align", ";", "}", ""], "natrual_language": ["Return", "alignment", "for", "data", "."], "TS_V_token": ["nds32"], "File": "nds32", "Func": "nds32_data_alignment", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2292, "Length": 51, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "sparc_init_pic_reg", "(", "void", ")", "{", "edge", "entry_edge", ";", "rtx_insn", "*", "seq", ";", "if", "(", "!", "flag_pic", "||", "(", "!", "crtl", "->", "uses_pic_offset_table", "&&", "!", "optimize", ")", ")", "return", ";", "start_sequence", "(", ")", ";", "load_got_register", "(", ")", ";", "if", "(", "!", "TARGET_VXWORKS_RTP", ")", "emit_move_insn", "(", "pic_offset_table_rtx", ",", "got_register_rtx", ")", ";", "seq", "=", "get_insns", "(", ")", ";", "end_sequence", "(", ")", ";", "entry_edge", "=", "single_succ_edge", "(", "ENTRY_BLOCK_PTR_FOR_FN", "(", "cfun", ")", ")", ";", "insert_insn_on_edge", "(", "seq", ",", "entry_edge", ")", ";", "commit_one_edge_insertion", "(", "entry_edge", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_INIT_PIC_REG", "."], "TS_V_token": ["sparc"], "File": "sparc", "Func": "sparc_init_pic_reg", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2293, "Length": 84, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "RegisterBank", "&", "AArch64RegisterBankInfo", "::", "getRegBankFromRegClass", "(", "const", "TargetRegisterClass", "&", "RC", ",", "LLT", ")", "const", "{", "switch", "(", "RC", ".", "getID", "(", ")", ")", "{", "case", "AArch64", "::", "FPR8RegClassID", ":", "case", "AArch64", "::", "FPR16RegClassID", ":", "case", "AArch64", "::", "FPR16_loRegClassID", ":", "case", "AArch64", "::", "FPR32_with_hsub_in_FPR16_loRegClassID", ":", "case", "AArch64", "::", "FPR32RegClassID", ":", "case", "AArch64", "::", "FPR64RegClassID", ":", "case", "AArch64", "::", "FPR64_loRegClassID", ":", "case", "AArch64", "::", "FPR128RegClassID", ":", "case", "AArch64", "::", "FPR128_loRegClassID", ":", "case", "AArch64", "::", "DDRegClassID", ":", "case", "AArch64", "::", "DDDRegClassID", ":", "case", "AArch64", "::", "DDDDRegClassID", ":", "case", "AArch64", "::", "QQRegClassID", ":", "case", "AArch64", "::", "QQQRegClassID", ":", "case", "AArch64", "::", "QQQQRegClassID", ":", "return", "getRegBank", "(", "AArch64", "::", "FPRRegBankID", ")", ";", "case", "AArch64", "::", "GPR32commonRegClassID", ":", "case", "AArch64", "::", "GPR32RegClassID", ":", "case", "AArch64", "::", "GPR32spRegClassID", ":", "case", "AArch64", "::", "GPR32sponlyRegClassID", ":", "case", "AArch64", "::", "GPR32argRegClassID", ":", "case", "AArch64", "::", "GPR32allRegClassID", ":", "case", "AArch64", "::", "GPR64commonRegClassID", ":", "case", "AArch64", "::", "GPR64RegClassID", ":", "case", "AArch64", "::", "GPR64spRegClassID", ":", "case", "AArch64", "::", "GPR64sponlyRegClassID", ":", "case", "AArch64", "::", "GPR64argRegClassID", ":", "case", "AArch64", "::", "GPR64allRegClassID", ":", "case", "AArch64", "::", "GPR64noipRegClassID", ":", "case", "AArch64", "::", "GPR64common_and_GPR64noipRegClassID", ":", "case", "AArch64", "::", "GPR64noip_and_tcGPR64RegClassID", ":", "case", "AArch64", "::", "tcGPR64RegClassID", ":", "case", "AArch64", "::", "rtcGPR64RegClassID", ":", "case", "AArch64", "::", "WSeqPairsClassRegClassID", ":", "case", "AArch64", "::", "XSeqPairsClassRegClassID", ":", "return", "getRegBank", "(", "AArch64", "::", "GPRRegBankID", ")", ";", "case", "AArch64", "::", "CCRRegClassID", ":", "return", "getRegBank", "(", "AArch64", "::", "CCRegBankID", ")", ";", "default", ":", "llvm_unreachable", "(", "\"Register class not supported\"", ")", ";", "}", "}", ""], "natrual_language": ["Get", "a", "register", "bank", "that", "covers", "RC", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::FPR8RegClassID", "AArch64::FPR16RegClassID", "AArch64::FPR16_loRegClassID", "AArch64::FPR32_with_hsub_in_FPR16_loRegClassID", "AArch64::FPR32RegClassID", "AArch64::FPR64RegClassID", "AArch64::FPR64_loRegClassID", "AArch64::FPR128RegClassID", "AArch64::FPR128_loRegClassID", "AArch64::DDRegClassID", "AArch64::DDDRegClassID", "AArch64::DDDDRegClassID", "AArch64::QQRegClassID", "AArch64::QQQRegClassID", "AArch64::QQQQRegClassID", "AArch64::FPRRegBankID", "AArch64::GPR32commonRegClassID", "AArch64::GPR32RegClassID", "AArch64::GPR32spRegClassID", "AArch64::GPR32sponlyRegClassID", "AArch64::GPR32argRegClassID", "AArch64::GPR32allRegClassID", "AArch64::GPR64commonRegClassID", "AArch64::GPR64RegClassID", "AArch64::GPR64spRegClassID", "AArch64::GPR64sponlyRegClassID", "AArch64::GPR64argRegClassID", "AArch64::GPR64allRegClassID", "AArch64::GPR64noipRegClassID", "AArch64::GPR64common_and_GPR64noipRegClassID", "AArch64::GPR64noip_and_tcGPR64RegClassID", "AArch64::tcGPR64RegClassID", "AArch64::rtcGPR64RegClassID", "AArch64::WSeqPairsClassRegClassID", "AArch64::XSeqPairsClassRegClassID", "AArch64::GPRRegBankID", "AArch64::CCRRegClassID", "AArch64::CCRegBankID", "\"Register class not supported\""], "File": "AArch64RegisterBankInfo14", "Func": "getRegBankFromRegClass", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2294, "Length": 233, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "addRequired", "<", "MachineLoopInfo", ">", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["X86"], "File": "X86FixupBWInsts1", "Func": "getAnalysisUsage", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2295, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "{", "return", "\"AZPR Delay Slot Filler\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["AZPR", "\"AZPR Delay Slot Filler\""], "File": "DelaySlotFiller", "Func": "getPassName", "Target": "AZPR", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2296, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86RegisterInfo", "::", "adjustStackMapLiveOutMask", "(", "uint32_t", "*", "Mask", ")", "const", "{", "assert", "(", "!", "(", "Mask", "[", "X86", "::", "EFLAGS", "/", "32", "]", "&", "(", "1U", "<<", "(", "X86", "::", "EFLAGS", "%", "32", ")", ")", ")", "&&", "\"EFLAGS are not live-out from a patchpoint.\"", ")", ";", "for", "(", "auto", "Reg", ":", "{", "X86", "::", "EFLAGS", ",", "X86", "::", "RIP", ",", "X86", "::", "EIP", ",", "X86", "::", "IP", "}", ")", "Mask", "[", "Reg", "/", "32", "]", "&=", "~", "(", "1U", "<<", "(", "Reg", "%", "32", ")", ")", ";", "}", ""], "natrual_language": ["Prior", "to", "adding", "the", "live-out", "mask", "to", "a", "stackmap", "or", "patchpoint", "instruction", ",", "provide", "the", "target", "the", "opportunity", "to", "adjust", "it", "(", "mainly", "to", "remove", "pseudo-registers", "that", "should", "be", "ignored", ")", "."], "TS_V_token": ["X86", "X86", "X86::EFLAGS", "32", "1U", "X86::EFLAGS", "32", "\"EFLAGS are not live-out from a patchpoint.\"", "X86::EFLAGS", "X86::RIP", "X86::EIP", "X86::IP", "32", "1U", "32"], "File": "X86RegisterInfo (2)", "Func": "adjustStackMapLiveOutMask", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2297, "Length": 82, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "ConstraintWeight", "ARM64TargetLowering", "::", "getSingleConstraintMatchWeight", "(", "AsmOperandInfo", "&", "info", ",", "const", "char", "*", "constraint", ")", "const", "{", "ConstraintWeight", "weight", "=", "CW_Invalid", ";", "Value", "*", "CallOperandVal", "=", "info", ".", "CallOperandVal", ";", "if", "(", "!", "CallOperandVal", ")", "return", "CW_Default", ";", "Type", "*", "type", "=", "CallOperandVal", "->", "getType", "(", ")", ";", "switch", "(", "*", "constraint", ")", "{", "default", ":", "weight", "=", "TargetLowering", "::", "getSingleConstraintMatchWeight", "(", "info", ",", "constraint", ")", ";", "break", ";", "case", "'x'", ":", "case", "'w'", ":", "if", "(", "type", "->", "isFloatingPointTy", "(", ")", "||", "type", "->", "isVectorTy", "(", ")", ")", "weight", "=", "CW_Register", ";", "break", ";", "case", "'z'", ":", "weight", "=", "CW_Constant", ";", "break", ";", "}", "return", "weight", ";", "}", ""], "natrual_language": ["Examine", "constraint", "string", "and", "operand", "type", "and", "determine", "a", "weight", "value", "."], "TS_V_token": ["ARM64", "ARM64"], "File": "ARM64ISelLowering", "Func": "getSingleConstraintMatchWeight", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2298, "Length": 110, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "AArch64TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "const", "std", "::", "string", "&", "Constraint", ",", "MVT", "VT", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'r'", ":", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "AArch64", "::", "GPR64commonRegClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "AArch64", "::", "GPR32commonRegClass", ")", ";", "case", "'w'", ":", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "AArch64", "::", "FPR32RegClass", ")", ";", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "AArch64", "::", "FPR64RegClass", ")", ";", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "128", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "AArch64", "::", "FPR128RegClass", ")", ";", "break", ";", "case", "'x'", ":", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "128", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "AArch64", "::", "FPR128_loRegClass", ")", ";", "break", ";", "}", "}", "if", "(", "StringRef", "(", "\"{cc}\"", ")", ".", "equals_lower", "(", "Constraint", ")", ")", "return", "std", "::", "make_pair", "(", "unsigned", "(", "AArch64", "::", "NZCV", ")", ",", "&", "AArch64", "::", "CCRRegClass", ")", ";", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "Res", ";", "Res", "=", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "Constraint", ",", "VT", ")", ";", "if", "(", "!", "Res", ".", "second", ")", "{", "unsigned", "Size", "=", "Constraint", ".", "size", "(", ")", ";", "if", "(", "(", "Size", "==", "4", "||", "Size", "==", "5", ")", "&&", "Constraint", "[", "0", "]", "==", "'{'", "&&", "tolower", "(", "Constraint", "[", "1", "]", ")", "==", "'v'", "&&", "Constraint", "[", "Size", "-", "1", "]", "==", "'}'", ")", "{", "const", "std", "::", "string", "Reg", "=", "std", "::", "string", "(", "&", "Constraint", "[", "2", "]", ",", "&", "Constraint", "[", "Size", "-", "1", "]", ")", ";", "int", "RegNo", "=", "atoi", "(", "Reg", ".", "c_str", "(", ")", ")", ";", "if", "(", "RegNo", ">=", "0", "&&", "RegNo", "<=", "31", ")", "{", "Res", ".", "first", "=", "AArch64", "::", "FPR128RegClass", ".", "getRegister", "(", "RegNo", ")", ";", "Res", ".", "second", "=", "&", "AArch64", "::", "FPR128RegClass", ";", "}", "}", "}", "return", "Res", ";", "}", ""], "natrual_language": ["Given", "a", "physical", "register", "constraint", "(", "e.g", "."], "TS_V_token": ["AArch64", "AArch64", "1", "0", "64", "0U", "AArch64::GPR64commonRegClass", "0U", "AArch64::GPR32commonRegClass", "MVT::f32", "0U", "AArch64::FPR32RegClass", "64", "0U", "AArch64::FPR64RegClass", "128", "0U", "AArch64::FPR128RegClass", "128", "0U", "AArch64::FPR128_loRegClass", "\"{cc}\"", "AArch64::NZCV", "AArch64::CCRRegClass", "4", "5", "0", "1", "1", "2", "1", "0", "31", "AArch64::FPR128RegClass", "AArch64::FPR128RegClass"], "File": "AArch64ISelLowering117", "Func": "getRegForInlineAsmConstraint", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2299, "Length": 372, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCFastISel", "::", "tryToFoldLoadIntoMI", "(", "MachineInstr", "*", "MI", ",", "unsigned", "OpNo", ",", "const", "LoadInst", "*", "LI", ")", "{", "MVT", "VT", ";", "if", "(", "!", "isLoadTypeLegal", "(", "LI", "->", "getType", "(", ")", ",", "VT", ")", ")", "return", "false", ";", "bool", "IsZExt", "=", "false", ";", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "false", ";", "case", "PPC", "::", "RLDICL", ":", "case", "PPC", "::", "RLDICL_32_64", ":", "{", "IsZExt", "=", "true", ";", "unsigned", "MB", "=", "MI", "->", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", ";", "if", "(", "(", "VT", "==", "MVT", "::", "i8", "&&", "MB", "<=", "56", ")", "||", "(", "VT", "==", "MVT", "::", "i16", "&&", "MB", "<=", "48", ")", "||", "(", "VT", "==", "MVT", "::", "i32", "&&", "MB", "<=", "32", ")", ")", "break", ";", "return", "false", ";", "}", "case", "PPC", "::", "RLWINM", ":", "case", "PPC", "::", "RLWINM8", ":", "{", "IsZExt", "=", "true", ";", "unsigned", "MB", "=", "MI", "->", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", ";", "if", "(", "(", "VT", "==", "MVT", "::", "i8", "&&", "MB", "<=", "24", ")", "||", "(", "VT", "==", "MVT", "::", "i16", "&&", "MB", "<=", "16", ")", ")", "break", ";", "return", "false", ";", "}", "case", "PPC", "::", "EXTSB", ":", "case", "PPC", "::", "EXTSB8", ":", "case", "PPC", "::", "EXTSB8_32_64", ":", "return", "false", ";", "case", "PPC", "::", "EXTSH", ":", "case", "PPC", "::", "EXTSH8", ":", "case", "PPC", "::", "EXTSH8_32_64", ":", "{", "if", "(", "VT", "!=", "MVT", "::", "i16", "&&", "VT", "!=", "MVT", "::", "i8", ")", "return", "false", ";", "break", ";", "}", "case", "PPC", "::", "EXTSW", ":", "case", "PPC", "::", "EXTSW_32_64", ":", "{", "if", "(", "VT", "!=", "MVT", "::", "i32", "&&", "VT", "!=", "MVT", "::", "i16", "&&", "VT", "!=", "MVT", "::", "i8", ")", "return", "false", ";", "break", ";", "}", "}", "Address", "Addr", ";", "if", "(", "!", "PPCComputeAddress", "(", "LI", "->", "getOperand", "(", "0", ")", ",", "Addr", ")", ")", "return", "false", ";", "unsigned", "ResultReg", "=", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "if", "(", "!", "PPCEmitLoad", "(", "VT", ",", "ResultReg", ",", "Addr", ",", "0", ",", "IsZExt", ")", ")", "return", "false", ";", "MI", "->", "eraseFromParent", "(", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["The", "specified", "machine", "instr", "operand", "is", "a", "vreg", ",", "and", "that", "vreg", "is", "being", "provided", "by", "the", "specified", "load", "instruction", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::RLDICL", "PPC::RLDICL_32_64", "3", "MVT::i8", "56", "MVT::i16", "48", "MVT::i32", "32", "PPC::RLWINM", "PPC::RLWINM8", "3", "MVT::i8", "24", "MVT::i16", "16", "PPC::EXTSB", "PPC::EXTSB8", "PPC::EXTSB8_32_64", "PPC::EXTSH", "PPC::EXTSH8", "PPC::EXTSH8_32_64", "MVT::i16", "MVT::i8", "PPC::EXTSW", "PPC::EXTSW_32_64", "MVT::i32", "MVT::i16", "MVT::i8", "PPC", "0", "0", "PPC", "0"], "File": "PPCFastISel14", "Func": "tryToFoldLoadIntoMI", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2300, "Length": 347, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "PPCTargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "0", ";", "case", "PPCISD", "::", "FSEL", ":", "return", "\"PPCISD::FSEL\"", ";", "case", "PPCISD", "::", "FCFID", ":", "return", "\"PPCISD::FCFID\"", ";", "case", "PPCISD", "::", "FCTIDZ", ":", "return", "\"PPCISD::FCTIDZ\"", ";", "case", "PPCISD", "::", "FCTIWZ", ":", "return", "\"PPCISD::FCTIWZ\"", ";", "case", "PPCISD", "::", "STFIWX", ":", "return", "\"PPCISD::STFIWX\"", ";", "case", "PPCISD", "::", "VMADDFP", ":", "return", "\"PPCISD::VMADDFP\"", ";", "case", "PPCISD", "::", "VNMSUBFP", ":", "return", "\"PPCISD::VNMSUBFP\"", ";", "case", "PPCISD", "::", "VPERM", ":", "return", "\"PPCISD::VPERM\"", ";", "case", "PPCISD", "::", "Hi", ":", "return", "\"PPCISD::Hi\"", ";", "case", "PPCISD", "::", "Lo", ":", "return", "\"PPCISD::Lo\"", ";", "case", "PPCISD", "::", "TOC_ENTRY", ":", "return", "\"PPCISD::TOC_ENTRY\"", ";", "case", "PPCISD", "::", "TOC_RESTORE", ":", "return", "\"PPCISD::TOC_RESTORE\"", ";", "case", "PPCISD", "::", "LOAD", ":", "return", "\"PPCISD::LOAD\"", ";", "case", "PPCISD", "::", "LOAD_TOC", ":", "return", "\"PPCISD::LOAD_TOC\"", ";", "case", "PPCISD", "::", "DYNALLOC", ":", "return", "\"PPCISD::DYNALLOC\"", ";", "case", "PPCISD", "::", "GlobalBaseReg", ":", "return", "\"PPCISD::GlobalBaseReg\"", ";", "case", "PPCISD", "::", "SRL", ":", "return", "\"PPCISD::SRL\"", ";", "case", "PPCISD", "::", "SRA", ":", "return", "\"PPCISD::SRA\"", ";", "case", "PPCISD", "::", "SHL", ":", "return", "\"PPCISD::SHL\"", ";", "case", "PPCISD", "::", "EXTSW_32", ":", "return", "\"PPCISD::EXTSW_32\"", ";", "case", "PPCISD", "::", "STD_32", ":", "return", "\"PPCISD::STD_32\"", ";", "case", "PPCISD", "::", "CALL_SVR4", ":", "return", "\"PPCISD::CALL_SVR4\"", ";", "case", "PPCISD", "::", "CALL_NOP_SVR4", ":", "return", "\"PPCISD::CALL_NOP_SVR4\"", ";", "case", "PPCISD", "::", "CALL_Darwin", ":", "return", "\"PPCISD::CALL_Darwin\"", ";", "case", "PPCISD", "::", "NOP", ":", "return", "\"PPCISD::NOP\"", ";", "case", "PPCISD", "::", "MTCTR", ":", "return", "\"PPCISD::MTCTR\"", ";", "case", "PPCISD", "::", "BCTRL_Darwin", ":", "return", "\"PPCISD::BCTRL_Darwin\"", ";", "case", "PPCISD", "::", "BCTRL_SVR4", ":", "return", "\"PPCISD::BCTRL_SVR4\"", ";", "case", "PPCISD", "::", "RET_FLAG", ":", "return", "\"PPCISD::RET_FLAG\"", ";", "case", "PPCISD", "::", "MFCR", ":", "return", "\"PPCISD::MFCR\"", ";", "case", "PPCISD", "::", "VCMP", ":", "return", "\"PPCISD::VCMP\"", ";", "case", "PPCISD", "::", "VCMPo", ":", "return", "\"PPCISD::VCMPo\"", ";", "case", "PPCISD", "::", "LBRX", ":", "return", "\"PPCISD::LBRX\"", ";", "case", "PPCISD", "::", "STBRX", ":", "return", "\"PPCISD::STBRX\"", ";", "case", "PPCISD", "::", "LARX", ":", "return", "\"PPCISD::LARX\"", ";", "case", "PPCISD", "::", "STCX", ":", "return", "\"PPCISD::STCX\"", ";", "case", "PPCISD", "::", "COND_BRANCH", ":", "return", "\"PPCISD::COND_BRANCH\"", ";", "case", "PPCISD", "::", "MFFS", ":", "return", "\"PPCISD::MFFS\"", ";", "case", "PPCISD", "::", "MTFSB0", ":", "return", "\"PPCISD::MTFSB0\"", ";", "case", "PPCISD", "::", "MTFSB1", ":", "return", "\"PPCISD::MTFSB1\"", ";", "case", "PPCISD", "::", "FADDRTZ", ":", "return", "\"PPCISD::FADDRTZ\"", ";", "case", "PPCISD", "::", "MTFSF", ":", "return", "\"PPCISD::MTFSF\"", ";", "case", "PPCISD", "::", "TC_RETURN", ":", "return", "\"PPCISD::TC_RETURN\"", ";", "case", "PPCISD", "::", "CR6SET", ":", "return", "\"PPCISD::CR6SET\"", ";", "case", "PPCISD", "::", "CR6UNSET", ":", "return", "\"PPCISD::CR6UNSET\"", ";", "case", "PPCISD", "::", "ADDIS_TOC_HA", ":", "return", "\"PPCISD::ADDIS_TOC_HA\"", ";", "case", "PPCISD", "::", "LD_TOC_L", ":", "return", "\"PPCISD::LD_TOC_L\"", ";", "case", "PPCISD", "::", "ADDI_TOC_L", ":", "return", "\"PPCISD::ADDI_TOC_L\"", ";", "case", "PPCISD", "::", "ADDIS_GOT_TPREL_HA", ":", "return", "\"PPCISD::ADDIS_GOT_TPREL_HA\"", ";", "case", "PPCISD", "::", "LD_GOT_TPREL_L", ":", "return", "\"PPCISD::LD_GOT_TPREL_L\"", ";", "case", "PPCISD", "::", "ADD_TLS", ":", "return", "\"PPCISD::ADD_TLS\"", ";", "case", "PPCISD", "::", "ADDIS_TLSGD_HA", ":", "return", "\"PPCISD::ADDIS_TLSGD_HA\"", ";", "case", "PPCISD", "::", "ADDI_TLSGD_L", ":", "return", "\"PPCISD::ADDI_TLSGD_L\"", ";", "case", "PPCISD", "::", "GET_TLS_ADDR", ":", "return", "\"PPCISD::GET_TLS_ADDR\"", ";", "case", "PPCISD", "::", "ADDIS_TLSLD_HA", ":", "return", "\"PPCISD::ADDIS_TLSLD_HA\"", ";", "case", "PPCISD", "::", "ADDI_TLSLD_L", ":", "return", "\"PPCISD::ADDI_TLSLD_L\"", ";", "case", "PPCISD", "::", "GET_TLSLD_ADDR", ":", "return", "\"PPCISD::GET_TLSLD_ADDR\"", ";", "case", "PPCISD", "::", "ADDIS_DTPREL_HA", ":", "return", "\"PPCISD::ADDIS_DTPREL_HA\"", ";", "case", "PPCISD", "::", "ADDI_DTPREL_L", ":", "return", "\"PPCISD::ADDI_DTPREL_L\"", ";", "}", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["PowerPC", "PPC", "0", "PPCISD::FSEL", "\"PPCISD::FSEL\"", "PPCISD::FCFID", "\"PPCISD::FCFID\"", "PPCISD::FCTIDZ", "\"PPCISD::FCTIDZ\"", "PPCISD::FCTIWZ", "\"PPCISD::FCTIWZ\"", "PPCISD::STFIWX", "\"PPCISD::STFIWX\"", "PPCISD::VMADDFP", "\"PPCISD::VMADDFP\"", "PPCISD::VNMSUBFP", "\"PPCISD::VNMSUBFP\"", "PPCISD::VPERM", "\"PPCISD::VPERM\"", "PPCISD::Hi", "\"PPCISD::Hi\"", "PPCISD::Lo", "\"PPCISD::Lo\"", "PPCISD::TOC_ENTRY", "\"PPCISD::TOC_ENTRY\"", "PPCISD::TOC_RESTORE", "\"PPCISD::TOC_RESTORE\"", "PPCISD::LOAD", "\"PPCISD::LOAD\"", "PPCISD::LOAD_TOC", "\"PPCISD::LOAD_TOC\"", "PPCISD::DYNALLOC", "\"PPCISD::DYNALLOC\"", "PPCISD::GlobalBaseReg", "\"PPCISD::GlobalBaseReg\"", "PPCISD::SRL", "\"PPCISD::SRL\"", "PPCISD::SRA", "\"PPCISD::SRA\"", "PPCISD::SHL", "\"PPCISD::SHL\"", "PPCISD::EXTSW_32", "\"PPCISD::EXTSW_32\"", "PPCISD::STD_32", "\"PPCISD::STD_32\"", "PPCISD::CALL_SVR4", "\"PPCISD::CALL_SVR4\"", "PPCISD::CALL_NOP_SVR4", "\"PPCISD::CALL_NOP_SVR4\"", "PPCISD::CALL_Darwin", "\"PPCISD::CALL_Darwin\"", "PPCISD::NOP", "\"PPCISD::NOP\"", "PPCISD::MTCTR", "\"PPCISD::MTCTR\"", "PPCISD::BCTRL_Darwin", "\"PPCISD::BCTRL_Darwin\"", "PPCISD::BCTRL_SVR4", "\"PPCISD::BCTRL_SVR4\"", "PPCISD::RET_FLAG", "\"PPCISD::RET_FLAG\"", "PPCISD::MFCR", "\"PPCISD::MFCR\"", "PPCISD::VCMP", "\"PPCISD::VCMP\"", "PPCISD::VCMPo", "\"PPCISD::VCMPo\"", "PPCISD::LBRX", "\"PPCISD::LBRX\"", "PPCISD::STBRX", "\"PPCISD::STBRX\"", "PPCISD::LARX", "\"PPCISD::LARX\"", "PPCISD::STCX", "\"PPCISD::STCX\"", "PPCISD::COND_BRANCH", "\"PPCISD::COND_BRANCH\"", "PPCISD::MFFS", "\"PPCISD::MFFS\"", "PPCISD::MTFSB0", "\"PPCISD::MTFSB0\"", "PPCISD::MTFSB1", "\"PPCISD::MTFSB1\"", "PPCISD::FADDRTZ", "\"PPCISD::FADDRTZ\"", "PPCISD::MTFSF", "\"PPCISD::MTFSF\"", "PPCISD::TC_RETURN", "\"PPCISD::TC_RETURN\"", "PPCISD::CR6SET", "\"PPCISD::CR6SET\"", "PPCISD::CR6UNSET", "\"PPCISD::CR6UNSET\"", "PPCISD::ADDIS_TOC_HA", "\"PPCISD::ADDIS_TOC_HA\"", "PPCISD::LD_TOC_L", "\"PPCISD::LD_TOC_L\"", "PPCISD::ADDI_TOC_L", "\"PPCISD::ADDI_TOC_L\"", "PPCISD::ADDIS_GOT_TPREL_HA", "\"PPCISD::ADDIS_GOT_TPREL_HA\"", "PPCISD::LD_GOT_TPREL_L", "\"PPCISD::LD_GOT_TPREL_L\"", "PPCISD::ADD_TLS", "\"PPCISD::ADD_TLS\"", "PPCISD::ADDIS_TLSGD_HA", "\"PPCISD::ADDIS_TLSGD_HA\"", "PPCISD::ADDI_TLSGD_L", "\"PPCISD::ADDI_TLSGD_L\"", "PPCISD::GET_TLS_ADDR", "\"PPCISD::GET_TLS_ADDR\"", "PPCISD::ADDIS_TLSLD_HA", "\"PPCISD::ADDIS_TLSLD_HA\"", "PPCISD::ADDI_TLSLD_L", "\"PPCISD::ADDI_TLSLD_L\"", "PPCISD::GET_TLSLD_ADDR", "\"PPCISD::GET_TLSLD_ADDR\"", "PPCISD::ADDIS_DTPREL_HA", "\"PPCISD::ADDIS_DTPREL_HA\"", "PPCISD::ADDI_DTPREL_L", "\"PPCISD::ADDI_DTPREL_L\""], "File": "PPCISelLowering73", "Func": "getTargetNodeName", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2301, "Length": 496, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "LanaiTargetLowering", "::", "LowerFormalArguments", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "SDLoc", "DL", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "switch", "(", "CallConv", ")", "{", "case", "CallingConv", "::", "C", ":", "case", "CallingConv", "::", "Fast", ":", "return", "LowerCCCArguments", "(", "Chain", ",", "CallConv", ",", "IsVarArg", ",", "Ins", ",", "DL", ",", "DAG", ",", "InVals", ")", ";", "default", ":", "llvm_unreachable", "(", "\"Unsupported calling convention\"", ")", ";", "}", "}", ""], "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": ["Lanai", "Lanai", "ISD::InputArg", "\"Unsupported calling convention\""], "File": "LanaiISelLowering21", "Func": "LowerFormalArguments", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2302, "Length": 84, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "SparcRegisterInfo", "::", "getDwarfRegNum", "(", "unsigned", "RegNum", ",", "bool", "isEH", ")", "const", "{", "assert", "(", "0", "&&", "\"What is the dwarf register number\"", ")", ";", "return", "-", "1", ";", "}", ""], "natrual_language": ["Map", "a", "target", "register", "to", "an", "equivalent", "dwarf", "register", "number", "."], "TS_V_token": ["Sparc", "Sparc", "0", "\"What is the dwarf register number\"", "1"], "File": "SparcRegisterInfo28", "Func": "getDwarfRegNum", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2303, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCObjectWriter", "*", "createObjectWriter", "(", "raw_ostream", "&", "OS", ")", "const", "{", "bool", "is64", "=", "getPointerSize", "(", ")", "==", "8", ";", "return", "createELFObjectWriter", "(", "new", "PPCELFObjectWriter", "(", "is64", ",", "OSType", ",", "is64", "?", "ELF", "::", "EM_PPC64", ":", "ELF", "::", "EM_PPC", ",", "true", ",", "false", ")", ",", "OS", ",", "false", ")", ";", "}", ""], "natrual_language": ["Create", "a", "new", "MCObjectWriter", "instance", "for", "use", "by", "the", "assembler", "backend", "to", "emit", "the", "final", "object", "file", "."], "TS_V_token": ["PowerPC", "8", "PPC", "PPC", "PPC"], "File": "PPCAsmBackend56", "Func": "createObjectWriter", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2304, "Length": 50, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCExpr", "*", "getSubExpr", "(", ")", "const", "{", "return", "Expr", ";", "}", ""], "natrual_language": ["getSubExpr", "-", "Get", "the", "child", "of", "this", "expression", "."], "TS_V_token": ["Sparc"], "File": "SparcMCExpr", "Func": "getSubExpr", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2305, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "ARMBaseRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "ARMSubtarget", "&", "STI", "=", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "const", "ARMFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "SP", ")", ";", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "PC", ")", ";", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "FPSCR", ")", ";", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "APSR_NZCV", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "markSuperRegs", "(", "Reserved", ",", "STI", ".", "getFramePointerReg", "(", ")", ")", ";", "if", "(", "hasBasePointer", "(", "MF", ")", ")", "markSuperRegs", "(", "Reserved", ",", "BasePtr", ")", ";", "if", "(", "STI", ".", "isR9Reserved", "(", ")", ")", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "R9", ")", ";", "if", "(", "!", "STI", ".", "hasD32", "(", ")", ")", "{", "static_assert", "(", "ARM", "::", "D31", "==", "ARM", "::", "D16", "+", "15", ",", "\"Register list not consecutive!\"", ")", ";", "for", "(", "unsigned", "R", "=", "0", ";", "R", "<", "16", ";", "++", "R", ")", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "D16", "+", "R", ")", ";", "}", "const", "TargetRegisterClass", "&", "RC", "=", "ARM", "::", "GPRPairRegClass", ";", "for", "(", "unsigned", "Reg", ":", "RC", ")", "for", "(", "MCSubRegIterator", "SI", "(", "Reg", ",", "this", ")", ";", "SI", ".", "isValid", "(", ")", ";", "++", "SI", ")", "if", "(", "Reserved", ".", "test", "(", "*", "SI", ")", ")", "markSuperRegs", "(", "Reserved", ",", "Reg", ")", ";", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "ZR", ")", ";", "assert", "(", "checkAllSuperRegsMarked", "(", "Reserved", ")", ")", ";", "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": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM::SP", "ARM::PC", "ARM::FPSCR", "ARM::APSR_NZCV", "ARM::R9", "ARM::D31", "ARM::D16", "15", "\"Register list not consecutive!\"", "0", "16", "ARM::D16", "ARM::GPRPairRegClass", "ARM::ZR"], "File": "ARMBaseRegisterInfo", "Func": "getReservedRegs", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2306, "Length": 255, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "AArch64InstrInfo", "::", "getMemScale", "(", "unsigned", "Opc", ")", "{", "switch", "(", "Opc", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Opcode has unknown scale!\"", ")", ";", "case", "AArch64", "::", "LDRBBui", ":", "case", "AArch64", "::", "LDURBBi", ":", "case", "AArch64", "::", "LDRSBWui", ":", "case", "AArch64", "::", "LDURSBWi", ":", "case", "AArch64", "::", "STRBBui", ":", "case", "AArch64", "::", "STURBBi", ":", "return", "1", ";", "case", "AArch64", "::", "LDRHHui", ":", "case", "AArch64", "::", "LDURHHi", ":", "case", "AArch64", "::", "LDRSHWui", ":", "case", "AArch64", "::", "LDURSHWi", ":", "case", "AArch64", "::", "STRHHui", ":", "case", "AArch64", "::", "STURHHi", ":", "return", "2", ";", "case", "AArch64", "::", "LDRSui", ":", "case", "AArch64", "::", "LDURSi", ":", "case", "AArch64", "::", "LDRSWui", ":", "case", "AArch64", "::", "LDURSWi", ":", "case", "AArch64", "::", "LDRWui", ":", "case", "AArch64", "::", "LDURWi", ":", "case", "AArch64", "::", "STRSui", ":", "case", "AArch64", "::", "STURSi", ":", "case", "AArch64", "::", "STRWui", ":", "case", "AArch64", "::", "STURWi", ":", "case", "AArch64", "::", "LDPSi", ":", "case", "AArch64", "::", "LDPSWi", ":", "case", "AArch64", "::", "LDPWi", ":", "case", "AArch64", "::", "STPSi", ":", "case", "AArch64", "::", "STPWi", ":", "return", "4", ";", "case", "AArch64", "::", "LDRDui", ":", "case", "AArch64", "::", "LDURDi", ":", "case", "AArch64", "::", "LDRXui", ":", "case", "AArch64", "::", "LDURXi", ":", "case", "AArch64", "::", "STRDui", ":", "case", "AArch64", "::", "STURDi", ":", "case", "AArch64", "::", "STRXui", ":", "case", "AArch64", "::", "STURXi", ":", "case", "AArch64", "::", "LDPDi", ":", "case", "AArch64", "::", "LDPXi", ":", "case", "AArch64", "::", "STPDi", ":", "case", "AArch64", "::", "STPXi", ":", "return", "8", ";", "case", "AArch64", "::", "LDRQui", ":", "case", "AArch64", "::", "LDURQi", ":", "case", "AArch64", "::", "STRQui", ":", "case", "AArch64", "::", "STURQi", ":", "case", "AArch64", "::", "LDPQi", ":", "case", "AArch64", "::", "STPQi", ":", "case", "AArch64", "::", "STGOffset", ":", "case", "AArch64", "::", "STZGOffset", ":", "case", "AArch64", "::", "ST2GOffset", ":", "case", "AArch64", "::", "STZ2GOffset", ":", "case", "AArch64", "::", "STGPi", ":", "return", "16", ";", "}", "}", ""], "natrual_language": ["Scaling", "factor", "for", "(", "scaled", "or", "unscaled", ")", "load", "or", "store", "."], "TS_V_token": ["AArch64", "AArch64", "\"Opcode has unknown scale!\"", "AArch64::LDRBBui", "AArch64::LDURBBi", "AArch64::LDRSBWui", "AArch64::LDURSBWi", "AArch64::STRBBui", "AArch64::STURBBi", "1", "AArch64::LDRHHui", "AArch64::LDURHHi", "AArch64::LDRSHWui", "AArch64::LDURSHWi", "AArch64::STRHHui", "AArch64::STURHHi", "2", "AArch64::LDRSui", "AArch64::LDURSi", "AArch64::LDRSWui", "AArch64::LDURSWi", "AArch64::LDRWui", "AArch64::LDURWi", "AArch64::STRSui", "AArch64::STURSi", "AArch64::STRWui", "AArch64::STURWi", "AArch64::LDPSi", "AArch64::LDPSWi", "AArch64::LDPWi", "AArch64::STPSi", "AArch64::STPWi", "4", "AArch64::LDRDui", "AArch64::LDURDi", "AArch64::LDRXui", "AArch64::LDURXi", "AArch64::STRDui", "AArch64::STURDi", "AArch64::STRXui", "AArch64::STURXi", "AArch64::LDPDi", "AArch64::LDPXi", "AArch64::STPDi", "AArch64::STPXi", "8", "AArch64::LDRQui", "AArch64::LDURQi", "AArch64::STRQui", "AArch64::STURQi", "AArch64::LDPQi", "AArch64::STPQi", "AArch64::STGOffset", "AArch64::STZGOffset", "AArch64::ST2GOffset", "AArch64::STZ2GOffset", "AArch64::STGPi", "16"], "File": "AArch64InstrInfo107", "Func": "getMemScale", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2307, "Length": 288, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_option_print", "(", "FILE", "*", "file", ",", "int", "indent", ",", "struct", "cl_target_option", "*", "ptr", ")", "{", "int", "flags", "=", "ptr", "->", "x_target_flags", ";", "const", "char", "*", "fpu_name", ";", "fpu_name", "=", "(", "ptr", "->", "x_arm_fpu_index", "==", "TARGET_FPU_auto", "?", "\"auto\"", ":", "all_fpus", "[", "ptr", "->", "x_arm_fpu_index", "]", ".", "name", ")", ";", "fprintf", "(", "file", ",", "\"%*sselected arch %s\\n\"", ",", "indent", ",", "\"\"", ",", "TARGET_THUMB2_P", "(", "flags", ")", "?", "\"thumb2\"", ":", "TARGET_THUMB_P", "(", "flags", ")", "?", "\"thumb1\"", ":", "\"arm\"", ")", ";", "fprintf", "(", "file", ",", "\"%*sselected fpu %s\\n\"", ",", "indent", ",", "\"\"", ",", "fpu_name", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_OPTION_PRINT", "."], "TS_V_token": ["arm", "\"auto\"", "\"%*sselected arch %s\\n\"", "\"\"", "\"thumb2\"", "\"thumb1\"", "\"arm\"", "\"%*sselected fpu %s\\n\"", "\"\""], "File": "arm6", "Func": "arm_option_print", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2308, "Length": 91, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86RegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "FrameIndexValue", "*", "Value", ",", "RegScavenger", "*", "RS", ")", "const", "{", "assert", "(", "SPAdj", "==", "0", "&&", "\"Unexpected\"", ")", ";", "unsigned", "i", "=", "0", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "while", "(", "!", "MI", ".", "getOperand", "(", "i", ")", ".", "isFI", "(", ")", ")", "{", "++", "i", ";", "assert", "(", "i", "<", "MI", ".", "getNumOperands", "(", ")", "&&", "\"Instr doesn't have FrameIndex operand!\"", ")", ";", "}", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "i", ")", ".", "getIndex", "(", ")", ";", "unsigned", "BasePtr", ";", "if", "(", "needsStackRealignment", "(", "MF", ")", ")", "BasePtr", "=", "(", "FrameIndex", "<", "0", "?", "FramePtr", ":", "StackPtr", ")", ";", "else", "BasePtr", "=", "(", "hasFP", "(", "MF", ")", "?", "FramePtr", ":", "StackPtr", ")", ";", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "BasePtr", ",", "false", ")", ";", "if", "(", "MI", ".", "getOperand", "(", "i", "+", "3", ")", ".", "isImm", "(", ")", ")", "{", "int", "Offset", "=", "getFrameIndexOffset", "(", "MF", ",", "FrameIndex", ")", "+", "(", "int", ")", "(", "MI", ".", "getOperand", "(", "i", "+", "3", ")", ".", "getImm", "(", ")", ")", ";", "MI", ".", "getOperand", "(", "i", "+", "3", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";", "}", "else", "{", "uint64_t", "Offset", "=", "getFrameIndexOffset", "(", "MF", ",", "FrameIndex", ")", "+", "(", "uint64_t", ")", "MI", ".", "getOperand", "(", "i", "+", "3", ")", ".", "getOffset", "(", ")", ";", "MI", ".", "getOperand", "(", "i", "+", "3", ")", ".", "setOffset", "(", "Offset", ")", ";", "}", "return", "0", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["X86", "X86", "0", "\"Unexpected\"", "0", "\"Instr doesn't have FrameIndex operand!\"", "0", "3", "3", "3", "3", "3", "0"], "File": "X86RegisterInfo11", "Func": "eliminateFrameIndex", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2309, "Length": 261, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "DecodeStatus", "PPCDisassembler", "::", "getInstruction", "(", "MCInst", "&", "MI", ",", "uint64_t", "&", "Size", ",", "ArrayRef", "<", "uint8_t", ">", "Bytes", ",", "uint64_t", "Address", ",", "raw_ostream", "&", "OS", ",", "raw_ostream", "&", "CS", ")", "const", "{", "Size", "=", "4", ";", "if", "(", "Bytes", ".", "size", "(", ")", "<", "4", ")", "{", "Size", "=", "0", ";", "return", "MCDisassembler", "::", "Fail", ";", "}", "uint32_t", "Inst", "=", "(", "Bytes", "[", "0", "]", "<<", "24", ")", "|", "(", "Bytes", "[", "1", "]", "<<", "16", ")", "|", "(", "Bytes", "[", "2", "]", "<<", "8", ")", "|", "(", "Bytes", "[", "3", "]", "<<", "0", ")", ";", "if", "(", "(", "STI", ".", "getFeatureBits", "(", ")", "&", "PPC", "::", "FeatureQPX", ")", "!=", "0", ")", "{", "DecodeStatus", "result", "=", "decodeInstruction", "(", "DecoderTableQPX32", ",", "MI", ",", "Inst", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "result", "!=", "MCDisassembler", "::", "Fail", ")", "return", "result", ";", "MI", ".", "clear", "(", ")", ";", "}", "return", "decodeInstruction", "(", "DecoderTable32", ",", "MI", ",", "Inst", ",", "Address", ",", "this", ",", "STI", ")", ";", "}", ""], "natrual_language": ["Returns", "the", "disassembly", "of", "a", "single", "instruction", "."], "TS_V_token": ["PowerPC", "PPC", "4", "4", "0", "0", "24", "1", "16", "2", "8", "3", "0", "PPC::FeatureQPX", "0"], "File": "PPCDisassembler12", "Func": "getInstruction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2310, "Length": 166, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64AsmBackend", "::", "applyFixup", "(", "const", "MCAssembler", "&", "Asm", ",", "const", "MCFixup", "&", "Fixup", ",", "const", "MCValue", "&", "Target", ",", "MutableArrayRef", "<", "char", ">", "Data", ",", "uint64_t", "Value", ",", "bool", "IsResolved", ")", "const", "{", "unsigned", "NumBytes", "=", "getFixupKindNumBytes", "(", "Fixup", ".", "getKind", "(", ")", ")", ";", "if", "(", "!", "Value", ")", "return", ";", "MCFixupKindInfo", "Info", "=", "getFixupKindInfo", "(", "Fixup", ".", "getKind", "(", ")", ")", ";", "MCContext", "&", "Ctx", "=", "Asm", ".", "getContext", "(", ")", ";", "Value", "=", "adjustFixupValue", "(", "Fixup", ",", "Value", ",", "Ctx", ",", "TheTriple", ",", "IsResolved", ")", ";", "Value", "<<=", "Info", ".", "TargetOffset", ";", "unsigned", "Offset", "=", "Fixup", ".", "getOffset", "(", ")", ";", "assert", "(", "Offset", "+", "NumBytes", "<=", "Data", ".", "size", "(", ")", "&&", "\"Invalid fixup offset!\"", ")", ";", "unsigned", "FulleSizeInBytes", "=", "getFixupKindContainereSizeInBytes", "(", "Fixup", ".", "getKind", "(", ")", ")", ";", "if", "(", "FulleSizeInBytes", "==", "0", ")", "{", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "NumBytes", ";", "++", "i", ")", "{", "Data", "[", "Offset", "+", "i", "]", "|=", "uint8_t", "(", "(", "Value", ">>", "(", "i", "*", "8", ")", ")", "&", "0xff", ")", ";", "}", "}", "else", "{", "assert", "(", "(", "Offset", "+", "FulleSizeInBytes", ")", "<=", "Data", ".", "size", "(", ")", "&&", "\"Invalid fixup size!\"", ")", ";", "assert", "(", "NumBytes", "<=", "FulleSizeInBytes", "&&", "\"Invalid fixup size!\"", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "NumBytes", ";", "++", "i", ")", "{", "unsigned", "Idx", "=", "FulleSizeInBytes", "-", "1", "-", "i", ";", "Data", "[", "Offset", "+", "Idx", "]", "|=", "uint8_t", "(", "(", "Value", ">>", "(", "i", "*", "8", ")", ")", "&", "0xff", ")", ";", "}", "}", "}", ""], "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": ["AArch64", "AArch64", "\"Invalid fixup offset!\"", "0", "0", "8", "0xff", "\"Invalid fixup size!\"", "\"Invalid fixup size!\"", "0", "1", "8", "0xff"], "File": "AArch64AsmBackend12", "Func": "applyFixup", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2311, "Length": 255, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "char", "*", "output_e500_flip_gt_bit", "(", "rtx", "dst", ",", "rtx", "src", ")", "{", "static", "char", "string", "[", "64", "]", ";", "int", "a", ",", "b", ";", "gcc_assert", "(", "GET_CODE", "(", "dst", ")", "==", "REG", "&&", "CR_REGNO_P", "(", "REGNO", "(", "dst", ")", ")", "&&", "GET_CODE", "(", "src", ")", "==", "REG", "&&", "CR_REGNO_P", "(", "REGNO", "(", "src", ")", ")", ")", ";", "a", "=", "4", "*", "(", "REGNO", "(", "dst", ")", "-", "CR0_REGNO", ")", "+", "1", ";", "b", "=", "4", "*", "(", "REGNO", "(", "src", ")", "-", "CR0_REGNO", ")", "+", "1", ";", "sprintf", "(", "string", ",", "\"crnot %d,%d\"", ",", "a", ",", "b", ")", ";", "return", "string", ";", "}", ""], "natrual_language": ["Return", "the", "string", "to", "flip", "the", "GT", "bit", "on", "a", "CR", "."], "TS_V_token": ["rs6000", "64", "4", "1", "4", "1", "\"crnot %d,%d\""], "File": "rs60003", "Func": "output_e500_flip_gt_bit", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2312, "Length": 101, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "rs6000_arg_partial_bytes", "(", "cumulative_args_t", "cum_v", ",", "machine_mode", "mode", ",", "tree", "type", ",", "bool", "named", ")", "{", "CUMULATIVE_ARGS", "*", "cum", "=", "get_cumulative_args", "(", "cum_v", ")", ";", "bool", "passed_in_gprs", "=", "true", ";", "int", "ret", "=", "0", ";", "int", "align_words", ";", "machine_mode", "elt_mode", ";", "int", "n_elts", ";", "rs6000_discover_homogeneous_aggregate", "(", "mode", ",", "type", ",", "&", "elt_mode", ",", "&", "n_elts", ")", ";", "if", "(", "DEFAULT_ABI", "==", "ABI_V4", ")", "return", "0", ";", "if", "(", "USE_ALTIVEC_FOR_ARG_P", "(", "cum", ",", "elt_mode", ",", "named", ")", ")", "{", "if", "(", "TARGET_64BIT", "&&", "!", "cum", "->", "prototype", "&&", "(", "!", "cum", "->", "libcall", "||", "!", "FLOAT128_VECTOR_P", "(", "elt_mode", ")", ")", ")", "return", "0", ";", "passed_in_gprs", "=", "false", ";", "if", "(", "cum", "->", "vregno", "+", "n_elts", ">", "ALTIVEC_ARG_MAX_REG", "+", "1", ")", "ret", "=", "(", "ALTIVEC_ARG_MAX_REG", "+", "1", "-", "cum", "->", "vregno", ")", "*", "16", ";", "}", "if", "(", "TARGET_MACHO", "&&", "rs6000_darwin64_struct_check_p", "(", "mode", ",", "type", ")", ")", "return", "0", ";", "align_words", "=", "rs6000_parm_start", "(", "mode", ",", "type", ",", "cum", "->", "words", ")", ";", "if", "(", "USE_FP_FOR_ARG_P", "(", "cum", ",", "elt_mode", ")", "&&", "!", "(", "TARGET_AIX", "&&", "!", "TARGET_ELF", "&&", "type", "!=", "NULL", "&&", "AGGREGATE_TYPE_P", "(", "type", ")", ")", ")", "{", "unsigned", "long", "n_fpreg", "=", "(", "GET_MODE_SIZE", "(", "elt_mode", ")", "+", "7", ")", ">>", "3", ";", "if", "(", "type", "&&", "(", "cum", "->", "nargs_prototype", "<=", "0", "||", "(", "(", "DEFAULT_ABI", "==", "ABI_AIX", "||", "DEFAULT_ABI", "==", "ABI_ELFv2", ")", "&&", "TARGET_XL_COMPAT", "&&", "align_words", ">=", "GP_ARG_NUM_REG", ")", ")", ")", "return", "0", ";", "passed_in_gprs", "=", "false", ";", "if", "(", "cum", "->", "fregno", "+", "n_elts", "*", "n_fpreg", ">", "FP_ARG_MAX_REG", "+", "1", ")", "{", "int", "fpr", "=", "(", "(", "FP_ARG_MAX_REG", "+", "1", "-", "cum", "->", "fregno", ")", "*", "MIN", "(", "8", ",", "GET_MODE_SIZE", "(", "elt_mode", ")", ")", ")", ";", "int", "fpr_words", "=", "fpr", "/", "(", "TARGET_32BIT", "?", "4", ":", "8", ")", ";", "if", "(", "align_words", "+", "fpr_words", "<", "GP_ARG_NUM_REG", ")", "passed_in_gprs", "=", "true", ";", "else", "ret", "=", "fpr", ";", "}", "}", "if", "(", "passed_in_gprs", "&&", "align_words", "<", "GP_ARG_NUM_REG", "&&", "GP_ARG_NUM_REG", "<", "align_words", "+", "rs6000_arg_size", "(", "mode", ",", "type", ")", ")", "ret", "=", "(", "GP_ARG_NUM_REG", "-", "align_words", ")", "*", "(", "TARGET_32BIT", "?", "4", ":", "8", ")", ";", "if", "(", "ret", "!=", "0", "&&", "TARGET_DEBUG_ARG", ")", "fprintf", "(", "stderr", ",", "\"rs6000_arg_partial_bytes: %d\\n\"", ",", "ret", ")", ";", "return", "ret", ";", "}", ""], "natrual_language": ["For", "an", "arg", "passed", "partly", "in", "registers", "and", "partly", "in", "memory", ",", "this", "is", "the", "number", "of", "bytes", "passed", "in", "registers", ".", "For", "args", "passed", "entirely", "in", "registers", "or", "entirely", "in", "memory", ",", "zero", ".", "When", "an", "arg", "is", "described", "by", "a", "PARALLEL", ",", "perhaps", "using", "more", "than", "one", "register", "type", ",", "this", "function", "returns", "the", "number", "of", "bytes", "used", "by", "the", "first", "element", "of", "the", "PARALLEL", "."], "TS_V_token": ["rs6000", "0", "0", "0", "1", "1", "16", "0", "7", "3", "0", "0", "1", "1", "8", "4", "8", "4", "8", "0", "\"rs6000_arg_partial_bytes: %d\\n\""], "File": "rs60008", "Func": "rs6000_arg_partial_bytes", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2313, "Length": 369, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "ix86_load_returned_bounds", "(", "rtx", "slot", ")", "{", "rtx", "res", ";", "gcc_assert", "(", "REG_P", "(", "slot", ")", ")", ";", "res", "=", "gen_reg_rtx", "(", "BNDmode", ")", ";", "emit_move_insn", "(", "res", ",", "slot", ")", ";", "return", "res", ";", "}", ""], "natrual_language": ["Load", "and", "return", "bounds", "returned", "by", "function", "in", "SLOT", "."], "TS_V_token": ["i386"], "File": "i3864", "Func": "ix86_load_returned_bounds", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2314, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_refers_to_kernel_reg_p", "(", "const_rtx", "x", ")", "{", "subrtx_iterator", "::", "array_type", "array", ";", "FOR_EACH_SUBRTX", "(", "iter", ",", "array", ",", "x", ",", "NONCONST", ")", "if", "(", "REG_P", "(", "*", "iter", ")", "&&", "KERNEL_REG_P", "(", "REGNO", "(", "*", "iter", ")", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "X", "contains", "a", "kernel", "register", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_refers_to_kernel_reg_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2315, "Length": 47, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "hashval_t", "hash", "(", "tree_map", "*", "m", ")", "{", "return", "m", "->", "hash", ";", "}", ""], "natrual_language": ["Hash", "function", "for", "builtin", "functions", "with", "up", "to", "3", "arguments", "and", "a", "return", "type", "."], "TS_V_token": ["i386"], "File": "i386", "Func": "hash", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2316, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "rs6000_is_valid_mask", "(", "rtx", "mask", ",", "int", "*", "b", ",", "int", "*", "e", ",", "machine_mode", "mode", ")", "{", "unsigned", "HOST_WIDE_INT", "val", "=", "INTVAL", "(", "mask", ")", ";", "unsigned", "HOST_WIDE_INT", "bit", ";", "int", "nb", ",", "ne", ";", "int", "n", "=", "GET_MODE_PRECISION", "(", "mode", ")", ";", "if", "(", "mode", "!=", "DImode", "&&", "mode", "!=", "SImode", ")", "return", "false", ";", "if", "(", "INTVAL", "(", "mask", ")", ">=", "0", ")", "{", "bit", "=", "val", "&", "-", "val", ";", "ne", "=", "exact_log2", "(", "bit", ")", ";", "nb", "=", "exact_log2", "(", "val", "+", "bit", ")", ";", "}", "else", "if", "(", "val", "+", "1", "==", "0", ")", "{", "nb", "=", "n", ";", "ne", "=", "0", ";", "}", "else", "if", "(", "val", "&", "1", ")", "{", "val", "=", "~", "val", ";", "bit", "=", "val", "&", "-", "val", ";", "nb", "=", "exact_log2", "(", "bit", ")", ";", "ne", "=", "exact_log2", "(", "val", "+", "bit", ")", ";", "}", "else", "{", "bit", "=", "val", "&", "-", "val", ";", "ne", "=", "exact_log2", "(", "bit", ")", ";", "if", "(", "val", "+", "bit", "==", "0", ")", "nb", "=", "n", ";", "else", "nb", "=", "0", ";", "}", "nb", "--", ";", "if", "(", "nb", "<", "0", "||", "ne", "<", "0", "||", "nb", ">=", "n", "||", "ne", ">=", "n", ")", "return", "false", ";", "if", "(", "b", ")", "*", "b", "=", "nb", ";", "if", "(", "e", ")", "*", "e", "=", "ne", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "whether", "MASK", "(", "a", "CONST_INT", ")", "is", "a", "valid", "mask", "for", "any", "rlwinm", ",", "rldicl", ",", "rldicr", ",", "or", "rldic", "instruction", "in", "mode", "MODE", ".", "If", "so", ",", "if", "E", "is", "not", "zero", ",", "store", "there", "the", "bit", "offset", "(", "counted", "from", "the", "right", ")", "where", "the", "single", "stretch", "of", "1", "bits", "begins", ";", "and", "similarly", "for", "B", ",", "the", "bit", "offset", "where", "it", "ends", "."], "TS_V_token": ["powerpcspe", "0", "1", "0", "0", "1", "0", "0", "0", "0"], "File": "powerpcspe", "Func": "rs6000_is_valid_mask", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2317, "Length": 227, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86FrameLowering", "::", "spillCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "CSI", ".", "empty", "(", ")", ")", "return", "false", ";", "DebugLoc", "DL", "=", "MBB", ".", "findDebugLoc", "(", "MI", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "unsigned", "SlotSize", "=", "STI", ".", "is64Bit", "(", ")", "?", "8", ":", "4", ";", "unsigned", "FPReg", "=", "TRI", "->", "getFrameRegister", "(", "MF", ")", ";", "unsigned", "CalleeFrameSize", "=", "0", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", ".", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "X86MachineFunctionInfo", "*", "X86FI", "=", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", ";", "unsigned", "Opc", "=", "STI", ".", "is64Bit", "(", ")", "?", "X86", "::", "PUSH64r", ":", "X86", "::", "PUSH32r", ";", "for", "(", "unsigned", "i", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "0", ";", "--", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "-", "1", "]", ".", "getReg", "(", ")", ";", "if", "(", "!", "X86", "::", "GR64RegClass", ".", "contains", "(", "Reg", ")", "&&", "!", "X86", "::", "GR32RegClass", ".", "contains", "(", "Reg", ")", ")", "continue", ";", "MBB", ".", "addLiveIn", "(", "Reg", ")", ";", "if", "(", "Reg", "==", "FPReg", ")", "continue", ";", "CalleeFrameSize", "+=", "SlotSize", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "TII", ".", "get", "(", "Opc", ")", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Kill", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ";", "}", "X86FI", "->", "setCalleeSavedFrameSize", "(", "CalleeFrameSize", ")", ";", "for", "(", "unsigned", "i", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "0", ";", "--", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "-", "1", "]", ".", "getReg", "(", ")", ";", "if", "(", "X86", "::", "GR64RegClass", ".", "contains", "(", "Reg", ")", "||", "X86", "::", "GR32RegClass", ".", "contains", "(", "Reg", ")", ")", "continue", ";", "MBB", ".", "addLiveIn", "(", "Reg", ")", ";", "const", "TargetRegisterClass", "*", "RC", "=", "TRI", "->", "getMinimalPhysRegClass", "(", "Reg", ")", ";", "TII", ".", "storeRegToStackSlot", "(", "MBB", ",", "MI", ",", "Reg", ",", "true", ",", "CSI", "[", "i", "-", "1", "]", ".", "getFrameIdx", "(", ")", ",", "RC", ",", "TRI", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["spillCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "spill", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "store", "instructions", "via", "storeRegToStackSlot", "(", ")", "."], "TS_V_token": ["X86", "X86", "8", "4", "0", "X86", "X86", "X86", "X86::PUSH64r", "X86::PUSH32r", "0", "1", "X86::GR64RegClass", "X86::GR32RegClass", "X86", "0", "1", "X86::GR64RegClass", "X86::GR32RegClass", "1"], "File": "X86FrameLowering (2)", "Func": "spillCalleeSavedRegisters", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2318, "Length": 360, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "ARMBaseRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "ARMSubtarget", "&", "STI", "=", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "const", "ARMFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "SP", ")", ";", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "PC", ")", ";", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "FPSCR", ")", ";", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "APSR_NZCV", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "markSuperRegs", "(", "Reserved", ",", "getFramePointerReg", "(", "STI", ")", ")", ";", "if", "(", "hasBasePointer", "(", "MF", ")", ")", "markSuperRegs", "(", "Reserved", ",", "BasePtr", ")", ";", "if", "(", "STI", ".", "isR9Reserved", "(", ")", ")", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "R9", ")", ";", "if", "(", "!", "STI", ".", "hasVFP3", "(", ")", "||", "STI", ".", "hasD16", "(", ")", ")", "{", "static_assert", "(", "ARM", "::", "D31", "==", "ARM", "::", "D16", "+", "15", ",", "\"Register list not consecutive!\"", ")", ";", "for", "(", "unsigned", "R", "=", "0", ";", "R", "<", "16", ";", "++", "R", ")", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "D16", "+", "R", ")", ";", "}", "const", "TargetRegisterClass", "&", "RC", "=", "ARM", "::", "GPRPairRegClass", ";", "for", "(", "unsigned", "Reg", ":", "RC", ")", "for", "(", "MCSubRegIterator", "SI", "(", "Reg", ",", "this", ")", ";", "SI", ".", "isValid", "(", ")", ";", "++", "SI", ")", "if", "(", "Reserved", ".", "test", "(", "*", "SI", ")", ")", "markSuperRegs", "(", "Reserved", ",", "Reg", ")", ";", "assert", "(", "checkAllSuperRegsMarked", "(", "Reserved", ")", ")", ";", "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": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM::SP", "ARM::PC", "ARM::FPSCR", "ARM::APSR_NZCV", "ARM::R9", "ARM::D31", "ARM::D16", "15", "\"Register list not consecutive!\"", "0", "16", "ARM::D16", "ARM::GPRPairRegClass"], "File": "ARMBaseRegisterInfo27", "Func": "getReservedRegs", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2319, "Length": 251, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86FastISel", "::", "fastSelectInstruction", "(", "const", "Instruction", "*", "I", ")", "{", "switch", "(", "I", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "Instruction", "::", "Load", ":", "return", "X86SelectLoad", "(", "I", ")", ";", "case", "Instruction", "::", "Store", ":", "return", "X86SelectStore", "(", "I", ")", ";", "case", "Instruction", "::", "Ret", ":", "return", "X86SelectRet", "(", "I", ")", ";", "case", "Instruction", "::", "ICmp", ":", "case", "Instruction", "::", "FCmp", ":", "return", "X86SelectCmp", "(", "I", ")", ";", "case", "Instruction", "::", "ZExt", ":", "return", "X86SelectZExt", "(", "I", ")", ";", "case", "Instruction", "::", "Br", ":", "return", "X86SelectBranch", "(", "I", ")", ";", "case", "Instruction", "::", "LShr", ":", "case", "Instruction", "::", "AShr", ":", "case", "Instruction", "::", "Shl", ":", "return", "X86SelectShift", "(", "I", ")", ";", "case", "Instruction", "::", "SDiv", ":", "case", "Instruction", "::", "UDiv", ":", "case", "Instruction", "::", "SRem", ":", "case", "Instruction", "::", "URem", ":", "return", "X86SelectDivRem", "(", "I", ")", ";", "case", "Instruction", "::", "Select", ":", "return", "X86SelectSelect", "(", "I", ")", ";", "case", "Instruction", "::", "Trunc", ":", "return", "X86SelectTrunc", "(", "I", ")", ";", "case", "Instruction", "::", "FPExt", ":", "return", "X86SelectFPExt", "(", "I", ")", ";", "case", "Instruction", "::", "FPTrunc", ":", "return", "X86SelectFPTrunc", "(", "I", ")", ";", "case", "Instruction", "::", "SIToFP", ":", "return", "X86SelectSIToFP", "(", "I", ")", ";", "case", "Instruction", "::", "IntToPtr", ":", "case", "Instruction", "::", "PtrToInt", ":", "{", "EVT", "SrcVT", "=", "TLI", ".", "getValueType", "(", "DL", ",", "I", "->", "getOperand", "(", "0", ")", "->", "getType", "(", ")", ")", ";", "EVT", "DstVT", "=", "TLI", ".", "getValueType", "(", "DL", ",", "I", "->", "getType", "(", ")", ")", ";", "if", "(", "DstVT", ".", "bitsGT", "(", "SrcVT", ")", ")", "return", "X86SelectZExt", "(", "I", ")", ";", "if", "(", "DstVT", ".", "bitsLT", "(", "SrcVT", ")", ")", "return", "X86SelectTrunc", "(", "I", ")", ";", "unsigned", "Reg", "=", "getRegForValue", "(", "I", "->", "getOperand", "(", "0", ")", ")", ";", "if", "(", "Reg", "==", "0", ")", "return", "false", ";", "updateValueMap", "(", "I", ",", "Reg", ")", ";", "return", "true", ";", "}", "case", "Instruction", "::", "BitCast", ":", "{", "if", "(", "!", "Subtarget", "->", "hasSSE2", "(", ")", ")", "return", "false", ";", "EVT", "SrcVT", "=", "TLI", ".", "getValueType", "(", "DL", ",", "I", "->", "getOperand", "(", "0", ")", "->", "getType", "(", ")", ")", ";", "EVT", "DstVT", "=", "TLI", ".", "getValueType", "(", "DL", ",", "I", "->", "getType", "(", ")", ")", ";", "if", "(", "!", "SrcVT", ".", "isSimple", "(", ")", "||", "!", "DstVT", ".", "isSimple", "(", ")", ")", "return", "false", ";", "if", "(", "!", "SrcVT", ".", "is128BitVector", "(", ")", "&&", "!", "(", "Subtarget", "->", "hasAVX", "(", ")", "&&", "SrcVT", ".", "is256BitVector", "(", ")", ")", ")", "return", "false", ";", "unsigned", "Reg", "=", "getRegForValue", "(", "I", "->", "getOperand", "(", "0", ")", ")", ";", "if", "(", "Reg", "==", "0", ")", "return", "false", ";", "updateValueMap", "(", "I", ",", "Reg", ")", ";", "return", "true", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["This", "method", "is", "called", "by", "target-independent", "code", "when", "the", "normal", "FastISel", "process", "fails", "to", "select", "an", "instruction", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "0", "X86", "X86", "0", "0", "0", "0", "0"], "File": "X86FastISel (2)6", "Func": "fastSelectInstruction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2320, "Length": 447, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMTargetLowering", "::", "getRegisterByName", "(", "const", "char", "*", "RegName", ",", "EVT", "VT", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "unsigned", "Reg", "=", "StringSwitch", "<", "unsigned", ">", "(", "RegName", ")", ".", "Case", "(", "\"sp\"", ",", "ARM", "::", "SP", ")", ".", "Default", "(", "0", ")", ";", "if", "(", "Reg", ")", "return", "Reg", ";", "report_fatal_error", "(", "Twine", "(", "\"Invalid register name \\\"\"", "+", "StringRef", "(", "RegName", ")", "+", "\"\\\".\"", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "register", "ID", "of", "the", "name", "passed", "in", "."], "TS_V_token": ["ARM", "ARM", "\"sp\"", "ARM::SP", "0", "\"Invalid register name \\\"\"", "\"\\\".\""], "File": "ARMISelLowering (2)2", "Func": "getRegisterByName", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2321, "Length": 67, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "estimateStackSize", "(", "MachineFunction", "&", "MF", ")", "{", "const", "MachineFrameInfo", "*", "FFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "int", "Offset", "=", "0", ";", "for", "(", "int", "i", "=", "FFI", "->", "getObjectIndexBegin", "(", ")", ";", "i", "!=", "0", ";", "++", "i", ")", "{", "int", "FixedOff", "=", "-", "FFI", "->", "getObjectOffset", "(", "i", ")", ";", "if", "(", "FixedOff", ">", "Offset", ")", "Offset", "=", "FixedOff", ";", "}", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "FFI", "->", "getObjectIndexEnd", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "if", "(", "FFI", "->", "isDeadObjectIndex", "(", "i", ")", ")", "continue", ";", "Offset", "+=", "FFI", "->", "getObjectSize", "(", "i", ")", ";", "unsigned", "Align", "=", "FFI", "->", "getObjectAlignment", "(", "i", ")", ";", "Offset", "=", "(", "Offset", "+", "Align", "-", "1", ")", "/", "Align", "*", "Align", ";", "}", "return", "(", "unsigned", ")", "Offset", ";", "}", ""], "natrual_language": ["Estimate", "and", "return", "the", "size", "of", "the", "stack", "frame", "."], "TS_V_token": ["ARM", "0", "0", "0", "1"], "File": "ARMBaseRegisterInfo12", "Func": "estimateStackSize", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2322, "Length": 141, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ix86_fp_jump_nontrivial_p", "(", "enum", "rtx_code", "code", ")", "{", "enum", "rtx_code", "bypass_code", ",", "first_code", ",", "second_code", ";", "if", "(", "!", "TARGET_CMOVE", ")", "return", "true", ";", "ix86_fp_comparison_codes", "(", "code", ",", "&", "bypass_code", ",", "&", "first_code", ",", "&", "second_code", ")", ";", "return", "bypass_code", "!=", "UNKNOWN", "||", "second_code", "!=", "UNKNOWN", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "CODE", "will", "result", "in", "nontrivial", "jump", "sequence", "."], "TS_V_token": ["i386"], "File": "i3863", "Func": "ix86_fp_jump_nontrivial_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2323, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "function_resolver", "::", "require_vector_type", "(", "unsigned", "int", "argno", ",", "vector_type_index", "type", ")", "{", "tree", "expected", "=", "acle_vector_types", "[", "0", "]", "[", "type", "]", ";", "tree", "actual", "=", "get_argument_type", "(", "argno", ")", ";", "if", "(", "!", "matches_type_p", "(", "expected", ",", "actual", ")", ")", "{", "error_at", "(", "location", ",", "\"passing %qT to argument %d of %qE, which\"", "\" expects %qT\"", ",", "actual", ",", "argno", "+", "1", ",", "fndecl", ",", "expected", ")", ";", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Require", "argument", "ARGNO", "to", "have", "vector", "type", "TYPE", ",", "in", "cases", "where", "this", "requirement", "holds", "for", "all", "uses", "of", "the", "function", ".", "Return", "true", "if", "the", "argument", "has", "the", "right", "form", ",", "otherwise", "report", "an", "appropriate", "error", "."], "TS_V_token": ["aarch64", "0", "\"passing %qT to argument %d of %qE, which\"", "\" expects %qT\"", "1"], "File": "aarch64-sve-builtins", "Func": "require_vector_type", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2324, "Length": 69, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64LegalizerInfo", "::", "legalizeCustom", "(", "MachineInstr", "&", "MI", ",", "MachineRegisterInfo", "&", "MRI", ",", "MachineIRBuilder", "&", "MIRBuilder", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "false", ";", "case", "TargetOpcode", "::", "G_VAARG", ":", "return", "legalizeVaArg", "(", "MI", ",", "MRI", ",", "MIRBuilder", ")", ";", "}", "llvm_unreachable", "(", "\"expected switch to return\"", ")", ";", "}", ""], "natrual_language": ["Called", "for", "instructions", "with", "the", "Custom", "LegalizationAction", "."], "TS_V_token": ["AArch64", "AArch64", "\"expected switch to return\""], "File": "AArch64LegalizerInfo13", "Func": "legalizeCustom", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2325, "Length": 55, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MipsSubtarget", "::", "MipsSubtarget", "(", "const", "std", "::", "string", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "bool", "little", ",", "Reloc", "::", "Model", "_RM", ",", "MipsTargetMachine", "*", "_TM", ")", ":", "MipsGenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "MipsArchVersion", "(", "Mips32", ")", ",", "MipsABI", "(", "UnknownABI", ")", ",", "IsLittle", "(", "little", ")", ",", "IsSingleFloat", "(", "false", ")", ",", "IsFP64bit", "(", "false", ")", ",", "IsGP64bit", "(", "false", ")", ",", "HasVFPU", "(", "false", ")", ",", "IsLinux", "(", "true", ")", ",", "HasSEInReg", "(", "false", ")", ",", "HasCondMov", "(", "false", ")", ",", "HasSwap", "(", "false", ")", ",", "HasBitCount", "(", "false", ")", ",", "HasFPIdx", "(", "false", ")", ",", "InMips16Mode", "(", "false", ")", ",", "InMips16HardFloat", "(", "Mips16HardFloat", ")", ",", "InMicroMipsMode", "(", "false", ")", ",", "HasDSP", "(", "false", ")", ",", "HasDSPR2", "(", "false", ")", ",", "AllowMixed16_32", "(", "Mixed16_32", "|", "Mips_Os16", ")", ",", "Os16", "(", "Mips_Os16", ")", ",", "HasMSA", "(", "false", ")", ",", "RM", "(", "_RM", ")", ",", "OverrideMode", "(", "NoOverride", ")", ",", "TM", "(", "_TM", ")", "{", "std", "::", "string", "CPUName", "=", "CPU", ";", "if", "(", "CPUName", ".", "empty", "(", ")", ")", "CPUName", "=", "\"mips32\"", ";", "ParseSubtargetFeatures", "(", "CPUName", ",", "FS", ")", ";", "PreviousInMips16Mode", "=", "InMips16Mode", ";", "InstrItins", "=", "getInstrItineraryForCPU", "(", "CPUName", ")", ";", "if", "(", "MipsABI", "==", "UnknownABI", ")", "MipsABI", "=", "hasMips64", "(", ")", "?", "N64", ":", "O32", ";", "assert", "(", "(", "(", "!", "hasMips64", "(", ")", "&&", "(", "isABI_O32", "(", ")", "||", "isABI_EABI", "(", ")", ")", ")", "||", "(", "hasMips64", "(", ")", "&&", "(", "isABI_N32", "(", ")", "||", "isABI_N64", "(", ")", ")", ")", ")", "&&", "\"Invalid Arch & ABI pair.\"", ")", ";", "if", "(", "TT", ".", "find", "(", "\"linux\"", ")", "==", "std", "::", "string", "::", "npos", ")", "IsLinux", "=", "false", ";", "UseSmallSection", "=", "!", "IsLinux", "&&", "(", "RM", "==", "Reloc", "::", "Static", ")", ";", "if", "(", "inMips16Mode", "(", ")", ")", "HasBitCount", "=", "false", ";", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "\"mips32\"", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "\"Invalid Arch & ABI pair.\"", "\"linux\"", "Mips"], "File": "MipsSubtarget8", "Func": "MipsSubtarget", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2326, "Length": 305, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseInstrInfo", "::", "isSchedulingBoundary", "(", "const", "MachineInstr", "*", "MI", ",", "const", "MachineBasicBlock", "*", "MBB", ",", "const", "MachineFunction", "&", "MF", ")", "const", "{", "if", "(", "MI", "->", "isDebugValue", "(", ")", ")", "return", "false", ";", "if", "(", "MI", "->", "getDesc", "(", ")", ".", "isTerminator", "(", ")", "||", "MI", "->", "isLabel", "(", ")", ")", "return", "true", ";", "MachineBasicBlock", "::", "const_iterator", "I", "=", "MI", ";", "while", "(", "++", "I", "!=", "MBB", "->", "end", "(", ")", "&&", "I", "->", "isDebugValue", "(", ")", ")", ";", "if", "(", "I", "!=", "MBB", "->", "end", "(", ")", "&&", "I", "->", "getOpcode", "(", ")", "==", "ARM", "::", "t2IT", ")", "return", "true", ";", "if", "(", "MI", "->", "definesRegister", "(", "ARM", "::", "SP", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["isSchedulingBoundary", "-", "Overrides", "the", "isSchedulingBoundary", "from", "Codegen/TargetInstrInfo.cpp", "to", "make", "it", "capable", "of", "identifying", "ENDBR", "intructions", "and", "prevent", "it", "from", "being", "re-scheduled", "."], "TS_V_token": ["ARM", "ARM", "ARM::t2IT", "ARM::SP"], "File": "ARMBaseInstrInfo108", "Func": "isSchedulingBoundary", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2327, "Length": 120, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "DEBUG_FUNCTION", "void", "debug_ready_dispatch", "(", "void", ")", "{", "int", "i", ";", "int", "no_ready", "=", "number_in_ready", "(", ")", ";", "fprintf", "(", "stdout", ",", "\"Number of ready: %d\\n\"", ",", "no_ready", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "no_ready", ";", "i", "++", ")", "debug_insn_dispatch_info_file", "(", "stdout", ",", "get_ready_element", "(", "i", ")", ")", ";", "}", ""], "natrual_language": ["Print", "to", "STDERR", "the", "status", "of", "the", "ready", "list", "with", "respect", "to", "dispatch", "windows", "."], "TS_V_token": ["i386", "\"Number of ready: %d\\n\"", "0"], "File": "i3864", "Func": "debug_ready_dispatch", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2328, "Length": 50, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_add_offset_1", "(", "scalar_int_mode", "mode", ",", "rtx", "dest", ",", "rtx", "src", ",", "HOST_WIDE_INT", "offset", ",", "rtx", "temp1", ",", "bool", "frame_related_p", ",", "bool", "emit_move_imm", ")", "{", "gcc_assert", "(", "emit_move_imm", "||", "temp1", "!=", "NULL_RTX", ")", ";", "gcc_assert", "(", "temp1", "==", "NULL_RTX", "||", "!", "reg_overlap_mentioned_p", "(", "temp1", ",", "src", ")", ")", ";", "unsigned", "HOST_WIDE_INT", "moffset", "=", "absu_hwi", "(", "offset", ")", ";", "rtx_insn", "*", "insn", ";", "if", "(", "!", "moffset", ")", "{", "if", "(", "!", "rtx_equal_p", "(", "dest", ",", "src", ")", ")", "{", "insn", "=", "emit_insn", "(", "gen_rtx_SET", "(", "dest", ",", "src", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "frame_related_p", ";", "}", "return", ";", "}", "if", "(", "aarch64_uimm12_shift", "(", "moffset", ")", ")", "{", "insn", "=", "emit_insn", "(", "gen_add3_insn", "(", "dest", ",", "src", ",", "GEN_INT", "(", "offset", ")", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "frame_related_p", ";", "return", ";", "}", "if", "(", "moffset", "<", "0x1000000", "&&", "(", "(", "!", "temp1", "&&", "!", "can_create_pseudo_p", "(", ")", ")", "||", "!", "aarch64_move_imm", "(", "moffset", ",", "mode", ")", ")", ")", "{", "HOST_WIDE_INT", "low_off", "=", "moffset", "&", "0xfff", ";", "low_off", "=", "offset", "<", "0", "?", "-", "low_off", ":", "low_off", ";", "insn", "=", "emit_insn", "(", "gen_add3_insn", "(", "dest", ",", "src", ",", "GEN_INT", "(", "low_off", ")", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "frame_related_p", ";", "insn", "=", "emit_insn", "(", "gen_add2_insn", "(", "dest", ",", "GEN_INT", "(", "offset", "-", "low_off", ")", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "frame_related_p", ";", "return", ";", "}", "if", "(", "emit_move_imm", ")", "{", "gcc_assert", "(", "temp1", "!=", "NULL_RTX", "||", "can_create_pseudo_p", "(", ")", ")", ";", "temp1", "=", "aarch64_force_temporary", "(", "mode", ",", "temp1", ",", "gen_int_mode", "(", "moffset", ",", "mode", ")", ")", ";", "}", "insn", "=", "emit_insn", "(", "offset", "<", "0", "?", "gen_sub3_insn", "(", "dest", ",", "src", ",", "temp1", ")", ":", "gen_add3_insn", "(", "dest", ",", "src", ",", "temp1", ")", ")", ";", "if", "(", "frame_related_p", ")", "{", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "frame_related_p", ";", "rtx", "adj", "=", "plus_constant", "(", "mode", ",", "src", ",", "offset", ")", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_ADJUST_CFA", ",", "gen_rtx_SET", "(", "dest", ",", "adj", ")", ")", ";", "}", "}", ""], "natrual_language": ["A", "subroutine", "of", "aarch64_add_offset", ".", "Set", "DEST", "to", "SRC", "+", "OFFSET", "for", "a", "non-polynomial", "OFFSET", ".", "MODE", "is", "the", "mode", "of", "the", "addition", ".", "FRAME_RELATED_P", "is", "true", "if", "the", "RTX_FRAME_RELATED", "flag", "should", "be", "set", "and", "CFA", "adjustments", "added", "to", "the", "generated", "instructions", ".", "TEMP1", ",", "if", "nonnull", ",", "is", "a", "register", "of", "mode", "MODE", "that", "can", "be", "used", "as", "a", "temporary", "if", "register", "allocation", "is", "already", "complete", ".", "This", "temporary", "register", "may", "overlap", "DEST", "but", "must", "not", "overlap", "SRC", ".", "If", "TEMP1", "is", "known", "to", "hold", "abs", "(", "OFFSET", ")", ",", "EMIT_MOVE_IMM", "can", "be", "set", "to", "false", "to", "avoid", "emitting", "the", "immediate", "again", ".", "Since", "this", "function", "may", "be", "used", "to", "adjust", "the", "stack", "pointer", ",", "we", "must", "ensure", "that", "it", "can", "not", "cause", "transient", "stack", "deallocation", "(", "for", "example", "by", "first", "incrementing", "SP", "and", "then", "decrementing", "when", "adjusting", "by", "a", "large", "immediate", ")", "."], "TS_V_token": ["aarch64", "0x1000000", "0xfff", "0", "0"], "File": "aarch64", "Func": "aarch64_add_offset_1", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2329, "Length": 334, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ix86_frame_pointer_required", "(", "void", ")", "{", "if", "(", "cfun", "->", "machine", "->", "accesses_prev_frame", ")", "return", "1", ";", "if", "(", "SUBTARGET_FRAME_POINTER_REQUIRED", ")", "return", "1", ";", "if", "(", "TARGET_OMIT_LEAF_FRAME_POINTER", "&&", "(", "!", "current_function_is_leaf", ")", ")", "return", "1", ";", "if", "(", "current_function_profile", ")", "return", "1", ";", "return", "0", ";", "}", ""], "natrual_language": ["Value", "should", "be", "nonzero", "if", "functions", "must", "have", "frame", "pointers", ".", "Zero", "means", "the", "frame", "pointer", "need", "not", "be", "set", "up", "(", "and", "parms", "may", "be", "accessed", "via", "the", "stack", "pointer", ")", "in", "functions", "that", "seem", "suitable", "."], "TS_V_token": ["i386", "1", "1", "1", "1", "0"], "File": "i3863", "Func": "ix86_frame_pointer_required", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2330, "Length": 47, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "CSKYAsmPrinter", "::", "emitEndOfAsmFile", "(", "Module", "&", "M", ")", "{", "CSKYTargetStreamer", "&", "CTS", "=", "static_cast", "<", "CSKYTargetStreamer", "&", ">", "(", "*", "OutStreamer", "->", "getTargetStreamer", "(", ")", ")", ";", "if", "(", "TM", ".", "getTargetTriple", "(", ")", ".", "isOSBinFormatELF", "(", ")", ")", "CTS", ".", "finishAttributeSection", "(", ")", ";", "}", ""], "natrual_language": ["This", "virtual", "method", "can", "be", "overridden", "by", "targets", "that", "want", "to", "emit", "something", "at", "the", "end", "of", "their", "file", "."], "TS_V_token": ["CSKY", "CSKY", "CSKY", "CSKY"], "File": "CSKYAsmPrinter1", "Func": "emitEndOfAsmFile", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2331, "Length": 47, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ArrayRef", "<", "std", "::", "pair", "<", "unsigned", ",", "const", "char", "*", ">>", "ARMInstrInfo", "::", "getSerializableBitmaskMachineOperandTargetFlags", "(", ")", "const", "{", "using", "namespace", "ARMII", ";", "static", "const", "std", "::", "pair", "<", "unsigned", ",", "const", "char", "*", ">", "TargetFlags", "[", "]", "=", "{", "{", "MO_GOT", ",", "\"arm-got\"", "}", ",", "{", "MO_SBREL", ",", "\"arm-sbrel\"", "}", ",", "{", "MO_DLLIMPORT", ",", "\"arm-dllimport\"", "}", ",", "{", "MO_SECREL", ",", "\"arm-secrel\"", "}", ",", "{", "MO_NONLAZY", ",", "\"arm-nonlazy\"", "}", "}", ";", "return", "makeArrayRef", "(", "TargetFlags", ")", ";", "}", ""], "natrual_language": ["Return", "an", "array", "that", "contains", "the", "bitmask", "target", "flag", "values", "and", "their", "names", "."], "TS_V_token": ["ARM", "ARM", "ARM", "\"arm-got\"", "\"arm-sbrel\"", "\"arm-dllimport\"", "\"arm-secrel\"", "\"arm-nonlazy\""], "File": "ARMInstrInfo42", "Func": "getSerializableBitmaskMachineOperandTargetFlags", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2332, "Length": 78, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMAsmPrinter", "::", "lowerOperand", "(", "const", "MachineOperand", "&", "MO", ",", "MCOperand", "&", "MCOp", ")", "{", "switch", "(", "MO", ".", "getType", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"unknown operand type\"", ")", ";", "case", "MachineOperand", "::", "MO_Register", ":", "if", "(", "MO", ".", "isImplicit", "(", ")", "&&", "MO", ".", "getReg", "(", ")", "!=", "ARM", "::", "CPSR", ")", "return", "false", ";", "assert", "(", "!", "MO", ".", "getSubReg", "(", ")", "&&", "\"Subregs should be eliminated!\"", ")", ";", "MCOp", "=", "MCOperand", "::", "CreateReg", "(", "MO", ".", "getReg", "(", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_Immediate", ":", "MCOp", "=", "MCOperand", "::", "CreateImm", "(", "MO", ".", "getImm", "(", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_MachineBasicBlock", ":", "MCOp", "=", "MCOperand", "::", "CreateExpr", "(", "MCSymbolRefExpr", "::", "Create", "(", "MO", ".", "getMBB", "(", ")", "->", "getSymbol", "(", ")", ",", "OutContext", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_GlobalAddress", ":", "MCOp", "=", "GetSymbolRef", "(", "MO", ",", "Mang", "->", "getSymbol", "(", "MO", ".", "getGlobal", "(", ")", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_ExternalSymbol", ":", "MCOp", "=", "GetSymbolRef", "(", "MO", ",", "GetExternalSymbolSymbol", "(", "MO", ".", "getSymbolName", "(", ")", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_JumpTableIndex", ":", "MCOp", "=", "GetSymbolRef", "(", "MO", ",", "GetJTISymbol", "(", "MO", ".", "getIndex", "(", ")", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_ConstantPoolIndex", ":", "MCOp", "=", "GetSymbolRef", "(", "MO", ",", "GetCPISymbol", "(", "MO", ".", "getIndex", "(", ")", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_BlockAddress", ":", "MCOp", "=", "GetSymbolRef", "(", "MO", ",", "GetBlockAddressSymbol", "(", "MO", ".", "getBlockAddress", "(", ")", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_FPImmediate", ":", "{", "APFloat", "Val", "=", "MO", ".", "getFPImm", "(", ")", "->", "getValueAPF", "(", ")", ";", "bool", "ignored", ";", "Val", ".", "convert", "(", "APFloat", "::", "IEEEdouble", ",", "APFloat", "::", "rmTowardZero", ",", "&", "ignored", ")", ";", "MCOp", "=", "MCOperand", "::", "CreateFPImm", "(", "Val", ".", "convertToDouble", "(", ")", ")", ";", "break", ";", "}", "case", "MachineOperand", "::", "MO_RegisterMask", ":", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Wrapper", "for", "MCInstLowering.lowerOperand", "(", ")", "for", "the", "tblgen'erated", "pseudo", "lowering", "."], "TS_V_token": ["ARM", "ARM", "\"unknown operand type\"", "ARM::CPSR", "\"Subregs should be eliminated!\""], "File": "ARMMCInstLower23", "Func": "lowerOperand", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2333, "Length": 319, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ")", "const", "override", "{", "return", "false", ";", "}", ""], "natrual_language": ["Check", "whether", "the", "given", "instruction", "may", "need", "relaxation", "."], "TS_V_token": ["FISC"], "File": "FISCAsmBackend", "Func": "mayNeedRelaxation", "Target": "FISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2334, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "ix86_add_stmt_cost", "(", "void", "*", "data", ",", "int", "count", ",", "enum", "vect_cost_for_stmt", "kind", ",", "struct", "_stmt_vec_info", "*", "stmt_info", ",", "int", "misalign", ",", "enum", "vect_cost_model_location", "where", ")", "{", "unsigned", "*", "cost", "=", "(", "unsigned", "*", ")", "data", ";", "unsigned", "retval", "=", "0", ";", "tree", "vectype", "=", "stmt_info", "?", "stmt_vectype", "(", "stmt_info", ")", ":", "NULL_TREE", ";", "int", "stmt_cost", "=", "ix86_builtin_vectorization_cost", "(", "kind", ",", "vectype", ",", "misalign", ")", ";", "if", "(", "TARGET_BONNELL", "&&", "kind", "==", "vector_stmt", "&&", "vectype", "&&", "GET_MODE_INNER", "(", "TYPE_MODE", "(", "vectype", ")", ")", "==", "DFmode", ")", "stmt_cost", "*=", "5", ";", "if", "(", "where", "==", "vect_body", "&&", "stmt_info", "&&", "stmt_in_inner_loop_p", "(", "stmt_info", ")", ")", "count", "*=", "50", ";", "retval", "=", "(", "unsigned", ")", "(", "count", "*", "stmt_cost", ")", ";", "if", "(", "(", "TARGET_SILVERMONT", "||", "TARGET_INTEL", ")", "&&", "stmt_info", "&&", "stmt_info", "->", "stmt", ")", "{", "tree", "lhs_op", "=", "gimple_get_lhs", "(", "stmt_info", "->", "stmt", ")", ";", "if", "(", "lhs_op", "&&", "TREE_CODE", "(", "TREE_TYPE", "(", "lhs_op", ")", ")", "==", "INTEGER_TYPE", ")", "retval", "=", "(", "retval", "*", "17", ")", "/", "10", ";", "}", "cost", "[", "where", "]", "+=", "retval", ";", "return", "retval", ";", "}", ""], "natrual_language": ["Implement", "targetm.vectorize.add_stmt_cost", "."], "TS_V_token": ["i386", "0", "5", "50", "17", "10"], "File": "i3866", "Func": "ix86_add_stmt_cost", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2335, "Length": 180, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_emit_allocate_stack", "(", "HOST_WIDE_INT", "size", ",", "int", "copy_r12", ")", "{", "rtx", "insn", ";", "rtx", "stack_reg", "=", "gen_rtx_REG", "(", "Pmode", ",", "STACK_POINTER_REGNUM", ")", ";", "rtx", "tmp_reg", "=", "gen_rtx_REG", "(", "Pmode", ",", "0", ")", ";", "rtx", "todec", "=", "gen_int_mode", "(", "-", "size", ",", "Pmode", ")", ";", "if", "(", "INTVAL", "(", "todec", ")", "!=", "-", "size", ")", "{", "warning", "(", "0", ",", "\"stack frame too large\"", ")", ";", "emit_insn", "(", "gen_trap", "(", ")", ")", ";", "return", ";", "}", "if", "(", "current_function_limit_stack", ")", "{", "if", "(", "REG_P", "(", "stack_limit_rtx", ")", "&&", "REGNO", "(", "stack_limit_rtx", ")", ">", "1", "&&", "REGNO", "(", "stack_limit_rtx", ")", "<=", "31", ")", "{", "emit_insn", "(", "TARGET_32BIT", "?", "gen_addsi3", "(", "tmp_reg", ",", "stack_limit_rtx", ",", "GEN_INT", "(", "size", ")", ")", ":", "gen_adddi3", "(", "tmp_reg", ",", "stack_limit_rtx", ",", "GEN_INT", "(", "size", ")", ")", ")", ";", "emit_insn", "(", "gen_cond_trap", "(", "LTU", ",", "stack_reg", ",", "tmp_reg", ",", "const0_rtx", ")", ")", ";", "}", "else", "if", "(", "GET_CODE", "(", "stack_limit_rtx", ")", "==", "SYMBOL_REF", "&&", "TARGET_32BIT", "&&", "DEFAULT_ABI", "==", "ABI_V4", ")", "{", "rtx", "toload", "=", "gen_rtx_CONST", "(", "VOIDmode", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "stack_limit_rtx", ",", "GEN_INT", "(", "size", ")", ")", ")", ";", "emit_insn", "(", "gen_elf_high", "(", "tmp_reg", ",", "toload", ")", ")", ";", "emit_insn", "(", "gen_elf_low", "(", "tmp_reg", ",", "tmp_reg", ",", "toload", ")", ")", ";", "emit_insn", "(", "gen_cond_trap", "(", "LTU", ",", "stack_reg", ",", "tmp_reg", ",", "const0_rtx", ")", ")", ";", "}", "else", "warning", "(", "0", ",", "\"stack limit expression is not supported\"", ")", ";", "}", "if", "(", "copy_r12", "||", "!", "TARGET_UPDATE", ")", "emit_move_insn", "(", "gen_rtx_REG", "(", "Pmode", ",", "12", ")", ",", "stack_reg", ")", ";", "if", "(", "TARGET_UPDATE", ")", "{", "if", "(", "size", ">", "32767", ")", "{", "if", "(", "get_last_insn", "(", ")", "==", "NULL_RTX", ")", "emit_note", "(", "NOTE_INSN_DELETED", ")", ";", "insn", "=", "emit_move_insn", "(", "tmp_reg", ",", "todec", ")", ";", "try_split", "(", "PATTERN", "(", "insn", ")", ",", "insn", ",", "0", ")", ";", "todec", "=", "tmp_reg", ";", "}", "insn", "=", "emit_insn", "(", "TARGET_32BIT", "?", "gen_movsi_update", "(", "stack_reg", ",", "stack_reg", ",", "todec", ",", "stack_reg", ")", ":", "gen_movdi_di_update", "(", "stack_reg", ",", "stack_reg", ",", "todec", ",", "stack_reg", ")", ")", ";", "}", "else", "{", "insn", "=", "emit_insn", "(", "TARGET_32BIT", "?", "gen_addsi3", "(", "stack_reg", ",", "stack_reg", ",", "todec", ")", ":", "gen_adddi3", "(", "stack_reg", ",", "stack_reg", ",", "todec", ")", ")", ";", "emit_move_insn", "(", "gen_rtx_MEM", "(", "Pmode", ",", "stack_reg", ")", ",", "gen_rtx_REG", "(", "Pmode", ",", "12", ")", ")", ";", "}", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "REG_NOTES", "(", "insn", ")", "=", "gen_rtx_EXPR_LIST", "(", "REG_FRAME_RELATED_EXPR", ",", "gen_rtx_SET", "(", "VOIDmode", ",", "stack_reg", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "stack_reg", ",", "GEN_INT", "(", "-", "size", ")", ")", ")", ",", "REG_NOTES", "(", "insn", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "the", "correct", "code", "for", "allocating", "stack", "space", ",", "as", "insns", ".", "If", "COPY_R12", ",", "make", "sure", "a", "copy", "of", "the", "old", "frame", "is", "left", "in", "r12", ".", "The", "generated", "code", "may", "use", "hard", "register", "0", "as", "a", "temporary", "."], "TS_V_token": ["rs6000", "0", "0", "\"stack frame too large\"", "1", "31", "0", "\"stack limit expression is not supported\"", "12", "32767", "0", "12", "1"], "File": "rs60003", "Func": "rs6000_emit_allocate_stack", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2336, "Length": 415, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"DLX Assembly Printer\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["DLX", "\"DLX Assembly Printer\""], "File": "DLXAsmPrinter", "Func": "getPassName", "Target": "DLX", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2337, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "AtomicExpansionKind", "ARMTargetLowering", "::", "shouldExpandAtomicCmpXchgInIR", "(", "AtomicCmpXchgInst", "*", "AI", ")", "const", "{", "unsigned", "Size", "=", "AI", "->", "getOperand", "(", "1", ")", "->", "getType", "(", ")", "->", "getPrimitiveSizeInBits", "(", ")", ";", "bool", "HasAtomicCmpXchg", ";", "if", "(", "Subtarget", "->", "isMClass", "(", ")", ")", "HasAtomicCmpXchg", "=", "Subtarget", "->", "hasV8MBaselineOps", "(", ")", ";", "else", "if", "(", "Subtarget", "->", "isThumb", "(", ")", ")", "HasAtomicCmpXchg", "=", "Subtarget", "->", "hasV7Ops", "(", ")", ";", "else", "HasAtomicCmpXchg", "=", "Subtarget", "->", "hasV6Ops", "(", ")", ";", "if", "(", "getTargetMachine", "(", ")", ".", "getOptLevel", "(", ")", "!=", "0", "&&", "HasAtomicCmpXchg", "&&", "Size", "<=", "(", "Subtarget", "->", "isMClass", "(", ")", "?", "32U", ":", "64U", ")", ")", "return", "AtomicExpansionKind", "::", "LLSC", ";", "return", "AtomicExpansionKind", "::", "None", ";", "}", ""], "natrual_language": ["Returns", "how", "the", "given", "atomic", "cmpxchg", "should", "be", "expanded", "by", "the", "IR-level", "AtomicExpand", "pass", "."], "TS_V_token": ["ARM", "ARM", "1", "0", "32U", "64U"], "File": "ARMISelLowering12", "Func": "shouldExpandAtomicCmpXchgInIR", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2338, "Length": 115, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "emitInst", "(", "uint32_t", "Inst", ")", "{", "char", "Buffer", "[", "4", "]", ";", "for", "(", "unsigned", "I", "=", "0", ";", "I", "<", "4", ";", "++", "I", ")", "{", "Buffer", "[", "I", "]", "=", "uint8_t", "(", "Inst", ")", ";", "Inst", ">>=", "8", ";", "}", "EmitA64MappingSymbol", "(", ")", ";", "MCELFStreamer", "::", "emitBytes", "(", "StringRef", "(", "Buffer", ",", "4", ")", ")", ";", "}", ""], "natrual_language": ["Callback", "used", "to", "implement", "the", ".inst", "directive", "."], "TS_V_token": ["AArch64", "4", "0", "4", "8", "4"], "File": "AArch64ELFStreamer19", "Func": "emitInst", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2339, "Length": 60, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTargetLowering", "::", "isFMAFasterThanFMulAndFAdd", "(", "EVT", "VT", ")", "const", "{", "VT", "=", "VT", ".", "getScalarType", "(", ")", ";", "if", "(", "!", "VT", ".", "isSimple", "(", ")", ")", "return", "false", ";", "switch", "(", "VT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ")", "{", "case", "MVT", "::", "f32", ":", "case", "MVT", "::", "f64", ":", "return", "true", ";", "case", "MVT", "::", "f128", ":", "return", "(", "EnableQuadPrecision", "&&", "Subtarget", ".", "hasP9Vector", "(", ")", ")", ";", "default", ":", "break", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "an", "FMA", "operation", "is", "faster", "than", "a", "pair", "of", "fmul", "and", "fadd", "instructions", "."], "TS_V_token": ["PowerPC", "PPC", "MVT::f32", "MVT::f64", "MVT::f128"], "File": "PPCISelLowering (2)7", "Func": "isFMAFasterThanFMulAndFAdd", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2340, "Length": 79, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "ARMTargetLowering", "::", "LowerXConstraint", "(", "EVT", "ConstraintVT", ")", "const", "{", "if", "(", "!", "Subtarget", "->", "hasVFP2", "(", ")", ")", "return", "\"r\"", ";", "if", "(", "ConstraintVT", ".", "isFloatingPoint", "(", ")", ")", "return", "\"w\"", ";", "if", "(", "ConstraintVT", ".", "isVector", "(", ")", "&&", "Subtarget", "->", "hasNEON", "(", ")", "&&", "(", "ConstraintVT", ".", "getSizeInBits", "(", ")", "==", "64", "||", "ConstraintVT", ".", "getSizeInBits", "(", ")", "==", "128", ")", ")", "return", "\"w\"", ";", "return", "\"r\"", ";", "}", ""], "natrual_language": ["Try", "to", "replace", "an", "X", "constraint", ",", "which", "matches", "anything", ",", "with", "another", "that", "has", "more", "specific", "requirements", "based", "on", "the", "type", "of", "the", "corresponding", "operand", "."], "TS_V_token": ["ARM", "ARM", "\"r\"", "\"w\"", "64", "128", "\"w\"", "\"r\""], "File": "ARMISelLowering (3)", "Func": "LowerXConstraint", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2341, "Length": 74, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "X86RegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "for", "(", "MCSubRegIterator", "I", "(", "X86", "::", "RSP", ",", "this", ",", "true", ")", ";", "I", ".", "isValid", "(", ")", ";", "++", "I", ")", "Reserved", ".", "set", "(", "*", "I", ")", ";", "for", "(", "MCSubRegIterator", "I", "(", "X86", "::", "RIP", ",", "this", ",", "true", ")", ";", "I", ".", "isValid", "(", ")", ";", "++", "I", ")", "Reserved", ".", "set", "(", "*", "I", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "{", "for", "(", "MCSubRegIterator", "I", "(", "X86", "::", "RBP", ",", "this", ",", "true", ")", ";", "I", ".", "isValid", "(", ")", ";", "++", "I", ")", "Reserved", ".", "set", "(", "*", "I", ")", ";", "}", "if", "(", "hasBasePointer", "(", "MF", ")", ")", "{", "CallingConv", "::", "ID", "CC", "=", "MF", ".", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", ";", "const", "uint32_t", "*", "RegMask", "=", "getCallPreservedMask", "(", "CC", ")", ";", "if", "(", "MachineOperand", "::", "clobbersPhysReg", "(", "RegMask", ",", "getBaseRegister", "(", ")", ")", ")", "report_fatal_error", "(", "\"Stack realignment in presence of dynamic allocas is not supported with\"", "\"this calling convention.\"", ")", ";", "for", "(", "MCSubRegIterator", "I", "(", "getBaseRegister", "(", ")", ",", "this", ",", "true", ")", ";", "I", ".", "isValid", "(", ")", ";", "++", "I", ")", "Reserved", ".", "set", "(", "*", "I", ")", ";", "}", "Reserved", ".", "set", "(", "X86", "::", "CS", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "SS", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "DS", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "ES", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "FS", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "GS", ")", ";", "for", "(", "unsigned", "n", "=", "0", ";", "n", "!=", "8", ";", "++", "n", ")", "Reserved", ".", "set", "(", "X86", "::", "ST0", "+", "n", ")", ";", "if", "(", "!", "Is64Bit", ")", "{", "Reserved", ".", "set", "(", "X86", "::", "SIL", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "DIL", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "BPL", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "SPL", ")", ";", "for", "(", "unsigned", "n", "=", "0", ";", "n", "!=", "8", ";", "++", "n", ")", "{", "for", "(", "MCRegAliasIterator", "AI", "(", "X86", "::", "R8", "+", "n", ",", "this", ",", "true", ")", ";", "AI", ".", "isValid", "(", ")", ";", "++", "AI", ")", "Reserved", ".", "set", "(", "*", "AI", ")", ";", "for", "(", "MCRegAliasIterator", "AI", "(", "X86", "::", "XMM8", "+", "n", ",", "this", ",", "true", ")", ";", "AI", ".", "isValid", "(", ")", ";", "++", "AI", ")", "Reserved", ".", "set", "(", "*", "AI", ")", ";", "}", "}", "if", "(", "!", "Is64Bit", "||", "!", "Subtarget", ".", "hasAVX512", "(", ")", ")", "{", "for", "(", "unsigned", "n", "=", "16", ";", "n", "!=", "32", ";", "++", "n", ")", "{", "for", "(", "MCRegAliasIterator", "AI", "(", "X86", "::", "XMM0", "+", "n", ",", "this", ",", "true", ")", ";", "AI", ".", "isValid", "(", ")", ";", "++", "AI", ")", "Reserved", ".", "set", "(", "*", "AI", ")", ";", "}", "}", "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": ["X86", "X86", "X86::RSP", "X86::RIP", "X86::RBP", "\"Stack realignment in presence of dynamic allocas is not supported with\"", "\"this calling convention.\"", "X86::CS", "X86::SS", "X86::DS", "X86::ES", "X86::FS", "X86::GS", "0", "8", "X86::ST0", "X86::SIL", "X86::DIL", "X86::BPL", "X86::SPL", "0", "8", "X86::R8", "X86::XMM8", "16", "32", "X86::XMM0"], "File": "X86RegisterInfo52", "Func": "getReservedRegs", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2342, "Length": 494, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "rs6000_get_function_versions_dispatcher", "(", "void", "*", "decl", ")", "{", "tree", "fn", "=", "(", "tree", ")", "decl", ";", "struct", "cgraph_node", "*", "node", "=", "NULL", ";", "struct", "cgraph_node", "*", "default_node", "=", "NULL", ";", "struct", "cgraph_function_version_info", "*", "node_v", "=", "NULL", ";", "struct", "cgraph_function_version_info", "*", "first_v", "=", "NULL", ";", "tree", "dispatch_decl", "=", "NULL", ";", "struct", "cgraph_function_version_info", "*", "default_version_info", "=", "NULL", ";", "gcc_assert", "(", "fn", "!=", "NULL", "&&", "DECL_FUNCTION_VERSIONED", "(", "fn", ")", ")", ";", "if", "(", "TARGET_DEBUG_TARGET", ")", "fprintf", "(", "stderr", ",", "\"rs6000_get_function_versions_dispatcher (%s)\\n\"", ",", "get_decl_name", "(", "fn", ")", ")", ";", "node", "=", "cgraph_node", "::", "get", "(", "fn", ")", ";", "gcc_assert", "(", "node", "!=", "NULL", ")", ";", "node_v", "=", "node", "->", "function_version", "(", ")", ";", "gcc_assert", "(", "node_v", "!=", "NULL", ")", ";", "if", "(", "node_v", "->", "dispatcher_resolver", "!=", "NULL", ")", "return", "node_v", "->", "dispatcher_resolver", ";", "first_v", "=", "node_v", ";", "while", "(", "first_v", "->", "prev", "!=", "NULL", ")", "first_v", "=", "first_v", "->", "prev", ";", "default_version_info", "=", "first_v", ";", "while", "(", "default_version_info", "!=", "NULL", ")", "{", "const", "tree", "decl2", "=", "default_version_info", "->", "this_node", "->", "decl", ";", "if", "(", "is_function_default_version", "(", "decl2", ")", ")", "break", ";", "default_version_info", "=", "default_version_info", "->", "next", ";", "}", "if", "(", "default_version_info", "==", "NULL", ")", "return", "NULL", ";", "if", "(", "first_v", "!=", "default_version_info", ")", "{", "default_version_info", "->", "prev", "->", "next", "=", "default_version_info", "->", "next", ";", "if", "(", "default_version_info", "->", "next", ")", "default_version_info", "->", "next", "->", "prev", "=", "default_version_info", "->", "prev", ";", "first_v", "->", "prev", "=", "default_version_info", ";", "default_version_info", "->", "next", "=", "first_v", ";", "default_version_info", "->", "prev", "=", "NULL", ";", "}", "default_node", "=", "default_version_info", "->", "this_node", ";", "error_at", "(", "DECL_SOURCE_LOCATION", "(", "default_node", "->", "decl", ")", ",", "\"% attribute needs GLIBC (2.23 and newer) that \"", "\"exports hardware capability bits\"", ")", ";", "if", "(", "targetm", ".", "has_ifunc_p", "(", ")", ")", "{", "struct", "cgraph_function_version_info", "*", "it_v", "=", "NULL", ";", "struct", "cgraph_node", "*", "dispatcher_node", "=", "NULL", ";", "struct", "cgraph_function_version_info", "*", "dispatcher_version_info", "=", "NULL", ";", "dispatch_decl", "=", "make_dispatcher_decl", "(", "default_node", "->", "decl", ")", ";", "dispatcher_node", "=", "cgraph_node", "::", "get_create", "(", "dispatch_decl", ")", ";", "gcc_assert", "(", "dispatcher_node", "!=", "NULL", ")", ";", "dispatcher_node", "->", "dispatcher_function", "=", "1", ";", "dispatcher_version_info", "=", "dispatcher_node", "->", "insert_new_function_version", "(", ")", ";", "dispatcher_version_info", "->", "next", "=", "default_version_info", ";", "dispatcher_node", "->", "definition", "=", "1", ";", "it_v", "=", "default_version_info", ";", "while", "(", "it_v", "!=", "NULL", ")", "{", "it_v", "->", "dispatcher_resolver", "=", "dispatch_decl", ";", "it_v", "=", "it_v", "->", "next", ";", "}", "}", "else", "{", "error_at", "(", "DECL_SOURCE_LOCATION", "(", "default_node", "->", "decl", ")", ",", "\"multiversioning needs % which is not supported \"", "\"on this target\"", ")", ";", "}", "return", "dispatch_decl", ";", "}", ""], "natrual_language": ["Make", "a", "dispatcher", "declaration", "for", "the", "multi-versioned", "function", "DECL", ".", "Calls", "to", "DECL", "function", "will", "be", "replaced", "with", "calls", "to", "the", "dispatcher", "by", "the", "front-end", ".", "Returns", "the", "decl", "of", "the", "dispatcher", "function", "."], "TS_V_token": ["rs6000", "\"rs6000_get_function_versions_dispatcher (%s)\\n\"", "\"% attribute needs GLIBC (2.23 and newer) that \"", "\"exports hardware capability bits\"", "1", "1", "\"multiversioning needs % which is not supported \"", "\"on this target\""], "File": "rs6000", "Func": "rs6000_get_function_versions_dispatcher", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2343, "Length": 390, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "aarch64_sve_rev_unspec", "(", "machine_mode", "mode", ")", "{", "switch", "(", "GET_MODE_UNIT_SIZE", "(", "mode", ")", ")", "{", "case", "1", ":", "return", "UNSPEC_REVB", ";", "case", "2", ":", "return", "UNSPEC_REVH", ";", "case", "4", ":", "return", "UNSPEC_REVW", ";", "}", "gcc_unreachable", "(", ")", ";", "}", ""], "natrual_language": ["Return", "the", "SVE", "REV", "[", "BHW", "]", "unspec", "for", "reversing", "quantites", "of", "mode", "MODE", "stored", "in", "wider", "integer", "containers", "."], "TS_V_token": ["aarch64", "1", "2", "4"], "File": "aarch64", "Func": "aarch64_sve_rev_unspec", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2344, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "SlotWithTag", "getEmptyKey", "(", ")", "{", "return", "{", "-", "2", ",", "-", "2", ";", "}", ""], "natrual_language": ["Empty", "key", ":", "no", "key", "should", "be", "generated", "that", "has", "no", "DILocalVariable", "."], "TS_V_token": ["AArch64", "2", "2"], "File": "AArch64StackTaggingPreRA1", "Func": "getEmptyKey", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2345, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "MipsOperand", "*", "CreateMem", "(", "MipsOperand", "*", "Base", ",", "const", "MCExpr", "*", "Off", ",", "SMLoc", "S", ",", "SMLoc", "E", ",", "MipsAsmParser", "&", "Parser", ")", "{", "MipsOperand", "*", "Op", "=", "new", "MipsOperand", "(", "k_Memory", ",", "Parser", ")", ";", "Op", "->", "Mem", ".", "Base", "=", "Base", ";", "Op", "->", "Mem", ".", "Off", "=", "Off", ";", "Op", "->", "StartLoc", "=", "S", ";", "Op", "->", "EndLoc", "=", "E", ";", "return", "Op", ";", "}", ""], "natrual_language": ["Create", "a", "generalized", "memory", "operand", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "Mips", "Mips"], "File": "MipsAsmParser43", "Func": "CreateMem", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2346, "Length": 69, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SMLoc", "getStartLoc", "(", ")", "const", "{", "return", "StartLoc", ";", "}", ""], "natrual_language": ["getStartLoc", "-", "Get", "the", "location", "of", "the", "first", "token", "of", "this", "operand", "."], "TS_V_token": ["PowerPC"], "File": "PPCAsmParser (2)", "Func": "getStartLoc", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2347, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_handle_attr_isa_flags", "(", "char", "*", "str", ")", "{", "enum", "aarch64_parse_opt_result", "parse_res", ";", "unsigned", "long", "isa_flags", "=", "aarch64_isa_flags", ";", "if", "(", "strncmp", "(", "\"+nothing\"", ",", "str", ",", "8", ")", "==", "0", ")", "{", "isa_flags", "=", "0", ";", "str", "+=", "8", ";", "}", "parse_res", "=", "aarch64_parse_extension", "(", "str", ",", "&", "isa_flags", ")", ";", "if", "(", "parse_res", "==", "AARCH64_PARSE_OK", ")", "{", "aarch64_isa_flags", "=", "isa_flags", ";", "return", "true", ";", "}", "switch", "(", "parse_res", ")", "{", "case", "AARCH64_PARSE_MISSING_ARG", ":", "error", "(", "\"missing value in % pragma or attribute\"", ")", ";", "break", ";", "case", "AARCH64_PARSE_INVALID_FEATURE", ":", "error", "(", "\"invalid value (\\\"%s\\\") in % pragma or attribute\"", ",", "str", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Parse", "an", "architecture", "extensions", "target", "attribute", "string", "specified", "in", "STR", ".", "For", "example", "``", "+fp+nosimd", "''", ".", "Show", "any", "errors", "if", "needed", ".", "Return", "TRUE", "if", "successful", ".", "Update", "aarch64_isa_flags", "to", "reflect", "the", "ISA", "features", "modified", ".", "PRAGMA_OR_ATTR", "is", "used", "in", "potential", "error", "messages", "."], "TS_V_token": ["aarch64", "\"+nothing\"", "8", "0", "0", "8", "\"missing value in % pragma or attribute\"", "\"invalid value (\\\"%s\\\") in % pragma or attribute\""], "File": "aarch645", "Func": "aarch64_handle_attr_isa_flags", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2348, "Length": 105, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "SparcRegisterInfo", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", "MF", ",", "CallingConv", "::", "ID", "CC", ")", "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": ["Sparc", "Sparc"], "File": "SparcRegisterInfo (2)", "Func": "getCallPreservedMask", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2349, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "OR1KRegisterInfo", "*", "getRegisterInfo", "(", ")", "const", "{", "return", "&", "InstrInfo", ".", "getRegisterInfo", "(", ")", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["OR1K", "OR1K"], "File": "OR1KTargetMachine", "Func": "getRegisterInfo", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2350, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMTargetLowering", "::", "mayBeEmittedAsTailCall", "(", "CallInst", "*", "CI", ")", "const", "{", "if", "(", "!", "Subtarget", "->", "supportsTailCall", "(", ")", ")", "return", "false", ";", "auto", "Attr", "=", "CI", "->", "getParent", "(", ")", "->", "getParent", "(", ")", "->", "getFnAttribute", "(", "\"disable-tail-calls\"", ")", ";", "if", "(", "!", "CI", "->", "isTailCall", "(", ")", "||", "Attr", ".", "getValueAsString", "(", ")", "==", "\"true\"", ")", "return", "false", ";", "return", "!", "Subtarget", "->", "isThumb1Only", "(", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "may", "be", "able", "emit", "the", "call", "instruction", "as", "a", "tail", "call", "."], "TS_V_token": ["ARM", "ARM", "\"disable-tail-calls\"", "\"true\""], "File": "ARMISelLowering136", "Func": "mayBeEmittedAsTailCall", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2351, "Length": 70, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "const_ok_for_op", "(", "HOST_WIDE_INT", "i", ",", "enum", "rtx_code", "code", ")", "{", "if", "(", "const_ok_for_arm", "(", "i", ")", ")", "return", "1", ";", "switch", "(", "code", ")", "{", "case", "SET", ":", "if", "(", "TARGET_HAVE_MOVT", "&&", "(", "i", "&", "0xffff0000", ")", "==", "0", ")", "return", "1", ";", "else", "return", "const_ok_for_arm", "(", "ARM_SIGN_EXTEND", "(", "~", "i", ")", ")", ";", "case", "PLUS", ":", "if", "(", "TARGET_THUMB2", "&&", "(", "(", "i", "&", "0xfffff000", ")", "==", "0", "||", "(", "(", "-", "i", ")", "&", "0xfffff000", ")", "==", "0", ")", ")", "return", "1", ";", "case", "COMPARE", ":", "case", "EQ", ":", "case", "NE", ":", "case", "GT", ":", "case", "LE", ":", "case", "LT", ":", "case", "GE", ":", "case", "GEU", ":", "case", "LTU", ":", "case", "GTU", ":", "case", "LEU", ":", "case", "UNORDERED", ":", "case", "ORDERED", ":", "case", "UNEQ", ":", "case", "UNGE", ":", "case", "UNLT", ":", "case", "UNGT", ":", "case", "UNLE", ":", "return", "const_ok_for_arm", "(", "ARM_SIGN_EXTEND", "(", "-", "i", ")", ")", ";", "case", "MINUS", ":", "case", "XOR", ":", "return", "0", ";", "case", "IOR", ":", "if", "(", "TARGET_THUMB2", ")", "return", "const_ok_for_arm", "(", "ARM_SIGN_EXTEND", "(", "~", "i", ")", ")", ";", "return", "0", ";", "case", "AND", ":", "return", "const_ok_for_arm", "(", "ARM_SIGN_EXTEND", "(", "~", "i", ")", ")", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Return", "true", "if", "I", "is", "a", "valid", "constant", "for", "the", "operation", "CODE", "."], "TS_V_token": ["arm", "1", "0xffff0000", "0", "1", "0xfffff000", "0", "0xfffff000", "0", "1", "0", "0"], "File": "arm", "Func": "const_ok_for_op", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2352, "Length": 200, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SMLoc", "getStartLoc", "(", ")", "const", "{", "return", "StartLoc", ";", "}", ""], "natrual_language": ["getStartLoc", "-", "Get", "the", "location", "of", "the", "first", "token", "of", "this", "operand", "."], "TS_V_token": ["ARM"], "File": "ARMAsmParser (2)1", "Func": "getStartLoc", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2353, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "pseudo_reg_set", "(", "rtx_insn", "*", "insn", ")", "{", "rtx", "set", "=", "single_set", "(", "insn", ")", ";", "if", "(", "!", "set", ")", "return", "NULL", ";", "machine_mode", "mode", "=", "TARGET_64BIT", "?", "TImode", ":", "DImode", ";", "if", "(", "REG_P", "(", "SET_SRC", "(", "set", ")", ")", "&&", "!", "HARD_REGISTER_P", "(", "SET_SRC", "(", "set", ")", ")", "&&", "push_operand", "(", "SET_DEST", "(", "set", ")", ",", "mode", ")", ")", "return", "set", ";", "df_ref", "ref", ";", "FOR_EACH_INSN_DEF", "(", "ref", ",", "insn", ")", "if", "(", "HARD_REGISTER_P", "(", "DF_REF_REAL_REG", "(", "ref", ")", ")", "&&", "!", "DF_REF_FLAGS_IS_SET", "(", "ref", ",", "DF_REF_MUST_CLOBBER", ")", "&&", "DF_REF_REGNO", "(", "ref", ")", "!=", "FLAGS_REG", ")", "return", "NULL", ";", "FOR_EACH_INSN_USE", "(", "ref", ",", "insn", ")", "if", "(", "!", "DF_REF_REG_MEM_P", "(", "ref", ")", "&&", "HARD_REGISTER_P", "(", "DF_REF_REAL_REG", "(", "ref", ")", ")", ")", "return", "NULL", ";", "return", "set", ";", "}", ""], "natrual_language": ["Return", "the", "SET", "expression", "if", "INSN", "does", "n't", "reference", "hard", "register", ".", "Return", "NULL", "if", "INSN", "uses", "or", "defines", "a", "hard", "register", ",", "excluding", "pseudo", "register", "pushes", ",", "hard", "register", "uses", "in", "a", "memory", "address", ",", "clobbers", "and", "flags", "definitions", "."], "TS_V_token": ["i386"], "File": "i386-features", "Func": "pseudo_reg_set", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2354, "Length": 132, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "long", "get_csky_current_func_type", "(", "void", ")", "{", "if", "(", "CSKY_FUNCTION_TYPE", "(", "cfun", "->", "machine", "->", "func_type", ")", "==", "CSKY_FT_UNKNOWN", ")", "{", "unsigned", "long", "type", "=", "CSKY_FT_UNKNOWN", ";", "tree", "a", ";", "tree", "attr", ";", "gcc_assert", "(", "TREE_CODE", "(", "current_function_decl", ")", "==", "FUNCTION_DECL", ")", ";", "attr", "=", "DECL_ATTRIBUTES", "(", "current_function_decl", ")", ";", "a", "=", "lookup_attribute", "(", "\"naked\"", ",", "attr", ")", ";", "if", "(", "a", "!=", "NULL_TREE", ")", "type", "|=", "CSKY_FT_NAKED", ";", "a", "=", "lookup_attribute", "(", "\"isr\"", ",", "attr", ")", ";", "if", "(", "a", "==", "NULL_TREE", ")", "a", "=", "lookup_attribute", "(", "\"interrupt\"", ",", "attr", ")", ";", "if", "(", "a", "==", "NULL_TREE", ")", "type", "|=", "CSKY_FT_NORMAL", ";", "else", "type", "|=", "get_csky_isr_type", "(", "TREE_VALUE", "(", "a", ")", ")", ";", "cfun", "->", "machine", "->", "func_type", "=", "type", ";", "}", "return", "cfun", "->", "machine", "->", "func_type", ";", "}", ""], "natrual_language": ["Classify", "cfun", "as", "a", "normal", "function", "or", "some", "sort", "of", "interrupt", "handler", ",", "and", "set", "the", "corresponding", "bits", "in", "cfun-", ">", "machine-", ">", "func_type", "."], "TS_V_token": ["csky", "\"naked\"", "\"isr\"", "\"interrupt\""], "File": "csky", "Func": "get_csky_current_func_type", "Target": "csky", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2355, "Length": 132, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMDAGToDAGISel", "::", "SelectInlineAsmMemoryOperand", "(", "const", "SDValue", "&", "Op", ",", "char", "ConstraintCode", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "OutOps", ")", "{", "assert", "(", "ConstraintCode", "==", "'m'", "&&", "\"unexpected asm memory constraint\"", ")", ";", "OutOps", ".", "push_back", "(", "Op", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["SelectInlineAsmMemoryOperand", "-", "Select", "the", "specified", "address", "as", "a", "target", "addressing", "mode", ",", "according", "to", "the", "specified", "constraint", "."], "TS_V_token": ["ARM", "ARM", "\"unexpected asm memory constraint\""], "File": "ARMISelDAGToDAG (2)", "Func": "SelectInlineAsmMemoryOperand", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2356, "Length": 43, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "unsigned", "int", "execute", "(", "function", "*", ")", "{", "return", "aarch64_do_track_speculation", "(", ")", ";", "}", ""], "natrual_language": ["Main", "entry", "point", "for", "this", "pass", "."], "TS_V_token": ["aarch64"], "File": "aarch64-speculation", "Func": "execute", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2357, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "arm_expand_unop_builtin", "(", "enum", "insn_code", "icode", ",", "tree", "exp", ",", "rtx", "target", ",", "int", "do_load", ")", "{", "rtx", "pat", ";", "tree", "arg0", "=", "CALL_EXPR_ARG", "(", "exp", ",", "0", ")", ";", "rtx", "op0", "=", "expand_normal", "(", "arg0", ")", ";", "machine_mode", "tmode", "=", "insn_data", "[", "icode", "]", ".", "operand", "[", "0", "]", ".", "mode", ";", "machine_mode", "mode0", "=", "insn_data", "[", "icode", "]", ".", "operand", "[", "1", "]", ".", "mode", ";", "if", "(", "!", "target", "||", "GET_MODE", "(", "target", ")", "!=", "tmode", "||", "!", "(", "*", "insn_data", "[", "icode", "]", ".", "operand", "[", "0", "]", ".", "predicate", ")", "(", "target", ",", "tmode", ")", ")", "target", "=", "gen_reg_rtx", "(", "tmode", ")", ";", "if", "(", "do_load", ")", "op0", "=", "gen_rtx_MEM", "(", "mode0", ",", "copy_to_mode_reg", "(", "Pmode", ",", "op0", ")", ")", ";", "else", "{", "if", "(", "VECTOR_MODE_P", "(", "mode0", ")", ")", "op0", "=", "safe_vector_operand", "(", "op0", ",", "mode0", ")", ";", "if", "(", "!", "(", "*", "insn_data", "[", "icode", "]", ".", "operand", "[", "1", "]", ".", "predicate", ")", "(", "op0", ",", "mode0", ")", ")", "op0", "=", "copy_to_mode_reg", "(", "mode0", ",", "op0", ")", ";", "}", "pat", "=", "GEN_FCN", "(", "icode", ")", "(", "target", ",", "op0", ")", ";", "if", "(", "!", "pat", ")", "return", "0", ";", "emit_insn", "(", "pat", ")", ";", "return", "target", ";", "}", ""], "natrual_language": ["Subroutine", "of", "arm_expand_builtin", "to", "take", "care", "of", "unop", "insns", "."], "TS_V_token": ["arm", "0", "0", "1", "0", "1", "0"], "File": "arm-builtins", "Func": "arm_expand_unop_builtin", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2358, "Length": 207, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "abort_with_insn", "(", "rtx", "insn", ",", "const", "char", "*", "reason", ")", "{", "error", "(", "reason", ")", ";", "debug_rtx", "(", "insn", ")", ";", "fancy_abort", "(", "__FILE__", ",", "__LINE__", ",", "__FUNCTION__", ")", ";", "}", ""], "natrual_language": ["Abort", "after", "printing", "out", "a", "specific", "insn", "."], "TS_V_token": ["iq2000"], "File": "iq2000", "Func": "abort_with_insn", "Target": "iq2000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2359, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Note", "(", "SMLoc", "L", ",", "const", "Twine", "&", "Msg", ",", "SMRange", "Range", "=", "None", ")", "{", "return", "getParser", "(", ")", ".", "Note", "(", "L", ",", "Msg", ",", "Range", ")", ";", "}", ""], "natrual_language": ["Emit", "a", "note", "at", "the", "location", "L", ",", "with", "the", "message", "Msg", "."], "TS_V_token": ["ARM"], "File": "ARMAsmParser (2)2", "Func": "Note", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2360, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "char", "*", "construct_fntype_id", "(", "prototype", "*", "protoptr", ")", "{", "int", "len", "=", "protoptr", "->", "nargs", "?", "(", "protoptr", "->", "nargs", "+", "1", ")", "*", "9", "+", "6", ":", "17", ";", "char", "*", "buf", "=", "(", "char", "*", ")", "malloc", "(", "len", ")", ";", "int", "bufi", "=", "0", ";", "if", "(", "protoptr", "->", "rettype", ".", "ispointer", ")", "buf", "[", "bufi", "++", "]", "=", "'p'", ";", "if", "(", "protoptr", "->", "rettype", ".", "isvoid", ")", "buf", "[", "bufi", "++", "]", "=", "'v'", ";", "else", "{", "if", "(", "protoptr", "->", "rettype", ".", "isunsigned", ")", "buf", "[", "bufi", "++", "]", "=", "'u'", ";", "if", "(", "protoptr", "->", "rettype", ".", "isvector", ")", "complete_vector_type", "(", "&", "protoptr", "->", "rettype", ",", "buf", ",", "&", "bufi", ")", ";", "else", "complete_base_type", "(", "&", "protoptr", "->", "rettype", ",", "buf", ",", "&", "bufi", ")", ";", "}", "memcpy", "(", "&", "buf", "[", "bufi", "]", ",", "\"_ftype\"", ",", "6", ")", ";", "bufi", "+=", "6", ";", "if", "(", "!", "protoptr", "->", "nargs", ")", "{", "memcpy", "(", "&", "buf", "[", "bufi", "]", ",", "\"_v\"", ",", "2", ")", ";", "bufi", "+=", "2", ";", "}", "else", "{", "typelist", "*", "argptr", "=", "protoptr", "->", "args", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "protoptr", "->", "nargs", ";", "i", "++", ",", "argptr", "=", "argptr", "->", "next", ")", "{", "assert", "(", "argptr", ")", ";", "buf", "[", "bufi", "++", "]", "=", "'_'", ";", "if", "(", "argptr", "->", "info", ".", "isconst", "&&", "argptr", "->", "info", ".", "base", "==", "BT_INT", "&&", "!", "argptr", "->", "info", ".", "ispointer", ")", "{", "buf", "[", "bufi", "++", "]", "=", "'c'", ";", "buf", "[", "bufi", "++", "]", "=", "'i'", ";", "continue", ";", "}", "if", "(", "argptr", "->", "info", ".", "ispointer", ")", "{", "if", "(", "argptr", "->", "info", ".", "isvoid", ")", "{", "if", "(", "argptr", "->", "info", ".", "isconst", ")", "{", "memcpy", "(", "&", "buf", "[", "bufi", "]", ",", "\"pcvoid\"", ",", "6", ")", ";", "bufi", "+=", "6", ";", "continue", ";", "}", "else", "{", "buf", "[", "bufi", "++", "]", "=", "'p'", ";", "buf", "[", "bufi", "++", "]", "=", "'v'", ";", "continue", ";", "}", "}", "else", "buf", "[", "bufi", "++", "]", "=", "'p'", ";", "}", "if", "(", "argptr", "->", "info", ".", "isunsigned", ")", "buf", "[", "bufi", "++", "]", "=", "'u'", ";", "if", "(", "argptr", "->", "info", ".", "isvector", ")", "complete_vector_type", "(", "&", "argptr", "->", "info", ",", "buf", ",", "&", "bufi", ")", ";", "else", "complete_base_type", "(", "&", "argptr", "->", "info", ",", "buf", ",", "&", "bufi", ")", ";", "}", "assert", "(", "!", "argptr", ")", ";", "}", "buf", "[", "bufi", "]", "=", "'\\0'", ";", "rbt_insert", "(", "&", "fntype_rbt", ",", "buf", ")", ";", "return", "buf", ";", "}", ""], "natrual_language": ["Build", "a", "function", "type", "descriptor", "identifier", "from", "the", "return", "type", "and", "argument", "types", "described", "by", "PROTOPTR", ",", "and", "store", "it", "if", "it", "does", "not", "already", "exist", ".", "Return", "the", "identifier", "."], "TS_V_token": ["rs6000", "1", "9", "6", "17", "0", "\"_ftype\"", "6", "6", "\"_v\"", "2", "2", "0", "\"pcvoid\"", "6", "6"], "File": "rs6000-gen-builtins", "Func": "construct_fntype_id", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2361, "Length": 424, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "getReg", "(", "const", "void", "*", "D", ",", "unsigned", "RC", ",", "unsigned", "RegNo", ")", "{", "const", "AArch64Disassembler", "*", "Dis", "=", "static_cast", "<", "const", "AArch64Disassembler", "*", ">", "(", "D", ")", ";", "const", "MCRegisterInfo", "*", "RegInfo", "=", "Dis", "->", "getContext", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "return", "RegInfo", "->", "getRegClass", "(", "RC", ")", ".", "getRegister", "(", "RegNo", ")", ";", "}", ""], "natrual_language": ["Returns", "the", "register", "associated", "with", "this", "edge", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64"], "File": "AArch64Disassembler32", "Func": "getReg", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2362, "Length": 60, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ScheduleDAGInstrs", "*", "createMachineScheduler", "(", "MachineSchedContext", "*", "C", ")", "const", "override", "{", "const", "PPCSubtarget", "&", "ST", "=", "C", "->", "MF", "->", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ";", "if", "(", "ST", ".", "usePPCPreRASchedStrategy", "(", ")", ")", "return", "createPPCMachineScheduler", "(", "C", ")", ";", "return", "nullptr", ";", "}", ""], "natrual_language": ["Create", "an", "instance", "of", "ScheduleDAGInstrs", "to", "be", "run", "within", "the", "standard", "MachineScheduler", "pass", "for", "this", "function", "and", "target", "at", "the", "current", "optimization", "level", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "PPC"], "File": "PPCTargetMachine68", "Func": "createMachineScheduler", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2363, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ARMSubtarget", "::", "ARMSubtarget", "(", "const", "std", "::", "string", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ")", ":", "ARMGenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "ARMProcFamily", "(", "Others", ")", ",", "HasV4TOps", "(", "false", ")", ",", "HasV5TOps", "(", "false", ")", ",", "HasV5TEOps", "(", "false", ")", ",", "HasV6Ops", "(", "false", ")", ",", "HasV6T2Ops", "(", "false", ")", ",", "HasV7Ops", "(", "false", ")", ",", "HasVFPv2", "(", "false", ")", ",", "HasVFPv3", "(", "false", ")", ",", "HasVFPv4", "(", "false", ")", ",", "HasNEON", "(", "false", ")", ",", "HasNEONVFPv4", "(", "false", ")", ",", "UseNEONForSinglePrecisionFP", "(", "false", ")", ",", "SlowFPVMLx", "(", "false", ")", ",", "HasVMLxForwarding", "(", "false", ")", ",", "SlowFPBrcc", "(", "false", ")", ",", "InThumbMode", "(", "false", ")", ",", "HasThumb2", "(", "false", ")", ",", "IsMClass", "(", "false", ")", ",", "NoARM", "(", "false", ")", ",", "PostRAScheduler", "(", "false", ")", ",", "IsR9Reserved", "(", "ReserveR9", ")", ",", "UseMovt", "(", "false", ")", ",", "SupportsTailCall", "(", "false", ")", ",", "HasFP16", "(", "false", ")", ",", "HasD16", "(", "false", ")", ",", "HasHardwareDivide", "(", "false", ")", ",", "HasT2ExtractPack", "(", "false", ")", ",", "HasDataBarrier", "(", "false", ")", ",", "Pref32BitThumb", "(", "false", ")", ",", "AvoidCPSRPartialUpdate", "(", "false", ")", ",", "HasMPExtension", "(", "false", ")", ",", "FPOnlySP", "(", "false", ")", ",", "AllowsUnalignedMem", "(", "false", ")", ",", "Thumb2DSP", "(", "false", ")", ",", "stackAlignment", "(", "4", ")", ",", "CPUString", "(", "CPU", ")", ",", "TargetTriple", "(", "TT", ")", ",", "TargetABI", "(", "ARM_ABI_APCS", ")", "{", "if", "(", "CPUString", ".", "empty", "(", ")", ")", "CPUString", "=", "\"generic\"", ";", "std", "::", "string", "ArchFS", "=", "ARM_MC", "::", "ParseARMTriple", "(", "TT", ")", ";", "if", "(", "!", "FS", ".", "empty", "(", ")", ")", "{", "if", "(", "!", "ArchFS", ".", "empty", "(", ")", ")", "ArchFS", "=", "ArchFS", "+", "\",\"", "+", "FS", ";", "else", "ArchFS", "=", "FS", ";", "}", "ParseSubtargetFeatures", "(", "CPUString", ",", "ArchFS", ")", ";", "if", "(", "!", "HasV6T2Ops", "&&", "hasThumb2", "(", ")", ")", "HasV4TOps", "=", "HasV5TOps", "=", "HasV5TEOps", "=", "HasV6Ops", "=", "HasV6T2Ops", "=", "true", ";", "InstrItins", "=", "getInstrItineraryForCPU", "(", "CPUString", ")", ";", "computeIssueWidth", "(", ")", ";", "if", "(", "TT", ".", "find", "(", "\"eabi\"", ")", "!=", "std", "::", "string", "::", "npos", ")", "TargetABI", "=", "ARM_ABI_AAPCS", ";", "if", "(", "isAAPCS_ABI", "(", ")", ")", "stackAlignment", "=", "8", ";", "if", "(", "!", "isTargetIOS", "(", ")", ")", "UseMovt", "=", "hasV6T2Ops", "(", ")", ";", "else", "{", "IsR9Reserved", "=", "ReserveR9", "|", "!", "HasV6Ops", ";", "UseMovt", "=", "DarwinUseMOVT", "&&", "hasV6T2Ops", "(", ")", ";", "const", "Triple", "&", "T", "=", "getTargetTriple", "(", ")", ";", "SupportsTailCall", "=", "!", "T", ".", "isOSVersionLT", "(", "5", ",", "0", ")", ";", "}", "if", "(", "!", "isThumb", "(", ")", "||", "hasThumb2", "(", ")", ")", "PostRAScheduler", "=", "true", ";", "if", "(", "!", "StrictAlign", "&&", "hasV6Ops", "(", ")", "&&", "isTargetDarwin", "(", ")", ")", "AllowsUnalignedMem", "=", "true", ";", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "4", "ARM", "\"generic\"", "ARM", "ARM", "\",\"", "\"eabi\"", "ARM", "8", "5", "0"], "File": "ARMSubtarget54", "Func": "ARMSubtarget", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2364, "Length": 440, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "MCAsmInfo", "*", "createMCAsmInfo", "(", "const", "Target", "&", "T", ",", "StringRef", "TT", ")", "{", "Triple", "TheTriple", "(", "TT", ")", ";", "switch", "(", "TheTriple", ".", "getOS", "(", ")", ")", "{", "case", "Triple", "::", "Darwin", ":", "return", "new", "X86MCAsmInfoDarwin", "(", "TheTriple", ")", ";", "case", "Triple", "::", "MinGW32", ":", "case", "Triple", "::", "MinGW64", ":", "case", "Triple", "::", "Cygwin", ":", "case", "Triple", "::", "Win32", ":", "return", "new", "X86MCAsmInfoCOFF", "(", "TheTriple", ")", ";", "default", ":", "return", "new", "X86ELFMCAsmInfo", "(", "TheTriple", ")", ";", "}", "}", ""], "natrual_language": ["createMCAsmInfo", "-", "Create", "a", "MCAsmInfo", "implementation", "for", "the", "specified", "target", "triple", "."], "TS_V_token": ["X86", "X86", "X86", "X86"], "File": "X86TargetMachine118", "Func": "createMCAsmInfo", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2365, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDNode", "*", "SparcDAGToDAGISel", "::", "getGlobalBaseReg", "(", ")", "{", "MachineFunction", "*", "MF", "=", "BB", "->", "getParent", "(", ")", ";", "unsigned", "GlobalBaseReg", "=", "TM", ".", "getInstrInfo", "(", ")", "->", "getGlobalBaseReg", "(", "MF", ")", ";", "return", "CurDAG", "->", "getRegister", "(", "GlobalBaseReg", ",", "TLI", ".", "getPointerTy", "(", ")", ")", ".", "getNode", "(", ")", ";", "}", ""], "natrual_language": ["getGlobalBaseReg", "-", "Return", "a", "virtual", "register", "initialized", "with", "the", "the", "global", "base", "register", "value", "."], "TS_V_token": ["Sparc", "Sparc"], "File": "SparcISelDAGToDAG25", "Func": "getGlobalBaseReg", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2366, "Length": 51, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "split_stack_arg_pointer_used_p", "(", "void", ")", "{", "if", "(", "cfun", "->", "machine", "->", "split_stack_arg_pointer", "!=", "NULL_RTX", "&&", "(", "!", "REG_P", "(", "cfun", "->", "machine", "->", "split_stack_arg_pointer", ")", "||", "HARD_REGISTER_P", "(", "cfun", "->", "machine", "->", "split_stack_arg_pointer", ")", ")", ")", "return", "true", ";", "rtx_insn", "*", "insn", ";", "basic_block", "bb", "=", "ENTRY_BLOCK_PTR_FOR_FN", "(", "cfun", ")", "->", "next_bb", ";", "FOR_BB_INSNS", "(", "bb", ",", "insn", ")", "if", "(", "NONDEBUG_INSN_P", "(", "insn", ")", ")", "{", "if", "(", "CALL_P", "(", "insn", ")", ")", "return", "false", ";", "df_ref", "use", ";", "FOR_EACH_INSN_USE", "(", "use", ",", "insn", ")", "{", "rtx", "x", "=", "DF_REF_REG", "(", "use", ")", ";", "if", "(", "REG_P", "(", "x", ")", "&&", "REGNO", "(", "x", ")", "==", "12", ")", "return", "true", ";", "}", "df_ref", "def", ";", "FOR_EACH_INSN_DEF", "(", "def", ",", "insn", ")", "{", "rtx", "x", "=", "DF_REF_REG", "(", "def", ")", ";", "if", "(", "REG_P", "(", "x", ")", "&&", "REGNO", "(", "x", ")", "==", "12", ")", "return", "false", ";", "}", "}", "return", "bitmap_bit_p", "(", "DF_LR_OUT", "(", "bb", ")", ",", "12", ")", ";", "}", ""], "natrual_language": ["Return", "whether", "the", "split-stack", "arg", "pointer", "(", "r12", ")", "is", "used", "."], "TS_V_token": ["rs6000", "12", "12", "12"], "File": "rs6000-logue", "Func": "split_stack_arg_pointer_used_p", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2367, "Length": 164, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "nds32_output_casesi", "(", "rtx", "*", "operands", ")", "{", "output_asm_insn", "(", "\"la\\t$ta, %l1\"", ",", "operands", ")", ";", "output_asm_insn", "(", "\"lw\\t%2, [$ta + %0 << 2]\"", ",", "operands", ")", ";", "if", "(", "TARGET_16_BIT", ")", "return", "\"jr5\\t%2\"", ";", "else", "return", "\"jr\\t%2\"", ";", "}", ""], "natrual_language": ["Function", "to", "generate", "normal", "jump", "table", "."], "TS_V_token": ["nds32", "\"la\\t$ta, %l1\"", "\"lw\\t%2, [$ta + %0 << 2]\"", "\"jr5\\t%2\"", "\"jr\\t%2\""], "File": "nds32-md-auxiliary2", "Func": "nds32_output_casesi", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2368, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SparcTargetMachine", "::", "addInstSelector", "(", "PassManagerBase", "&", "PM", ")", "{", "PM", ".", "add", "(", "createSparcISelDag", "(", "*", "this", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["addInstSelector", "-", "This", "method", "should", "install", "an", "instruction", "selector", "pass", ",", "which", "converts", "from", "LLVM", "code", "to", "machine", "instructions", "."], "TS_V_token": ["Sparc", "Sparc", "Sparc"], "File": "SparcTargetMachine34", "Func": "addInstSelector", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2369, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86PassConfig", "::", "addPreEmitPass2", "(", ")", "{", "const", "Triple", "&", "TT", "=", "TM", "->", "getTargetTriple", "(", ")", ";", "const", "MCAsmInfo", "*", "MAI", "=", "TM", "->", "getMCAsmInfo", "(", ")", ";", "addPass", "(", "createX86SpeculativeExecutionSideEffectSuppression", "(", ")", ")", ";", "addPass", "(", "createX86IndirectThunksPass", "(", ")", ")", ";", "if", "(", "TT", ".", "isOSWindows", "(", ")", "&&", "TT", ".", "getArch", "(", ")", "==", "Triple", "::", "x86_64", ")", "addPass", "(", "createX86AvoidTrailingCallPass", "(", ")", ")", ";", "if", "(", "!", "TT", ".", "isOSDarwin", "(", ")", "&&", "(", "!", "TT", ".", "isOSWindows", "(", ")", "||", "MAI", "->", "getExceptionHandlingType", "(", ")", "==", "ExceptionHandling", "::", "DwarfCFI", ")", ")", "addPass", "(", "createCFIInstrInserter", "(", ")", ")", ";", "if", "(", "TT", ".", "isOSWindows", "(", ")", ")", "{", "addPass", "(", "createCFGuardLongjmpPass", "(", ")", ")", ";", "addPass", "(", "createEHContGuardCatchretPass", "(", ")", ")", ";", "}", "addPass", "(", "createX86LoadValueInjectionRetHardeningPass", "(", ")", ")", ";", "addPass", "(", "createPseudoProbeInserter", "(", ")", ")", ";", "if", "(", "TT", ".", "isOSDarwin", "(", ")", ")", "addPass", "(", "createUnpackMachineBundles", "(", "[", "]", "(", "const", "MachineFunction", "&", "MF", ")", "{", "const", "Function", "&", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "const", "Module", "*", "M", "=", "F", ".", "getParent", "(", ")", ";", "return", "M", "->", "getFunction", "(", "\"objc_retainAutoreleasedReturnValue\"", ")", "||", "M", "->", "getFunction", "(", "\"objc_unsafeClaimAutoreleasedReturnValue\"", ")", ";", "}", ")", ")", ";", "}", ""], "natrual_language": ["Targets", "may", "add", "passes", "immediately", "before", "machine", "code", "is", "emitted", "in", "this", "callback", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86", "\"objc_retainAutoreleasedReturnValue\"", "\"objc_unsafeClaimAutoreleasedReturnValue\""], "File": "X86TargetMachine131", "Func": "addPreEmitPass2", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2370, "Length": 204, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "VEInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "uint64_t", "Address", ",", "StringRef", "Annot", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "raw_ostream", "&", "OS", ")", "{", "if", "(", "!", "printAliasInstr", "(", "MI", ",", "Address", ",", "STI", ",", "OS", ")", ")", "printInstruction", "(", "MI", ",", "Address", ",", "STI", ",", "OS", ")", ";", "printAnnotation", "(", "OS", ",", "Annot", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["VE", "VE"], "File": "VEInstPrinter", "Func": "printInst", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2371, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "pru_expand_builtin", "(", "tree", "exp", ",", "rtx", "target", ",", "rtx", "subtarget", "ATTRIBUTE_UNUSED", ",", "machine_mode", "mode", ",", "int", "ignore", "ATTRIBUTE_UNUSED", ")", "{", "tree", "fndecl", "=", "TREE_OPERAND", "(", "CALL_EXPR_FN", "(", "exp", ")", ",", "0", ")", ";", "unsigned", "int", "fcode", "=", "DECL_MD_FUNCTION_CODE", "(", "fndecl", ")", ";", "switch", "(", "fcode", ")", "{", "case", "PRU_BUILTIN_DELAY_CYCLES", ":", "{", "rtx", "arg1", "=", "expand_normal", "(", "CALL_EXPR_ARG", "(", "exp", ",", "0", ")", ")", ";", "return", "pru_expand_delay_cycles", "(", "arg1", ")", ";", "}", "break", ";", "case", "PRU_BUILTIN_HALT", ":", "{", "emit_insn", "(", "gen_pru_halt", "(", ")", ")", ";", "return", "NULL_RTX", ";", "}", "break", ";", "case", "PRU_BUILTIN_LMBD", ":", "{", "rtx", "arg1", "=", "expand_normal", "(", "CALL_EXPR_ARG", "(", "exp", ",", "0", ")", ")", ";", "rtx", "arg2", "=", "expand_normal", "(", "CALL_EXPR_ARG", "(", "exp", ",", "1", ")", ")", ";", "if", "(", "target", "==", "NULL_RTX", "||", "GET_MODE", "(", "target", ")", "!=", "mode", ")", "{", "target", "=", "gen_reg_rtx", "(", "mode", ")", ";", "}", "emit_insn", "(", "gen_pru_lmbd", "(", "mode", ",", "target", ",", "arg1", ",", "arg2", ")", ")", ";", "return", "target", ";", "}", "break", ";", "default", ":", "internal_error", "(", "\"bad builtin code\"", ")", ";", "}", "return", "NULL_RTX", ";", "}", ""], "natrual_language": ["Implement", "TARGET_EXPAND_BUILTIN", ".", "Expand", "an", "expression", "EXP", "that", "calls", "a", "built-in", "function", ",", "with", "result", "going", "to", "TARGET", "if", "that", "'s", "convenient", "(", "and", "in", "mode", "MODE", "if", "that", "'s", "convenient", ")", ".", "SUBTARGET", "may", "be", "used", "as", "the", "target", "for", "computing", "one", "of", "EXP", "'s", "operands", ".", "IGNORE", "is", "nonzero", "if", "the", "value", "is", "to", "be", "ignored", "."], "TS_V_token": ["pru", "0", "0", "0", "1", "\"bad builtin code\""], "File": "pru", "Func": "pru_expand_builtin", "Target": "pru", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2372, "Length": 176, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "getPassName", "(", ")", "const", "{", "return", "\"DCPU16 optimize conditional branches\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["Dcpu16", "\"DCPU16 optimize conditional branches\""], "File": "DCPU16Peephole", "Func": "getPassName", "Target": "Dcpu16", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2373, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "MipsTargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "DebugLoc", "DL", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ",", "const", "SDNode", "*", "CallNode", ",", "const", "Type", "*", "RetTy", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "getTargetMachine", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "MipsCC", "MipsCCInfo", "(", "CallConv", ",", "IsO32", ",", "CCInfo", ")", ";", "MipsCCInfo", ".", "analyzeCallResult", "(", "Ins", ",", "getTargetMachine", "(", ")", ".", "Options", ".", "UseSoftFloat", ",", "CallNode", ",", "RetTy", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "SDValue", "Val", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "RVLocs", "[", "i", "]", ".", "getLocReg", "(", ")", ",", "RVLocs", "[", "i", "]", ".", "getLocVT", "(", ")", ",", "InFlag", ")", ";", "Chain", "=", "Val", ".", "getValue", "(", "1", ")", ";", "InFlag", "=", "Val", ".", "getValue", "(", "2", ")", ";", "if", "(", "RVLocs", "[", "i", "]", ".", "getValVT", "(", ")", "!=", "RVLocs", "[", "i", "]", ".", "getLocVT", "(", ")", ")", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "BITCAST", ",", "DL", ",", "RVLocs", "[", "i", "]", ".", "getValVT", "(", ")", ",", "Val", ")", ";", "InVals", ".", "push_back", "(", "Val", ")", ";", "}", "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": ["Mips", "Mips", "ISD::InputArg", "16", "Mips", "Mips", "Mips", "0", "1", "2", "ISD::BITCAST"], "File": "MipsISelLowering126", "Func": "LowerCallResult", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2374, "Length": 244, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "EVT", "AArch64TargetLowering", "::", "getSetCCResultType", "(", "LLVMContext", "&", ",", "EVT", "VT", ")", "const", "{", "if", "(", "!", "VT", ".", "isVector", "(", ")", ")", "return", "MVT", "::", "i32", ";", "return", "VT", ".", "changeVectorElementTypeToInteger", "(", ")", ";", "}", ""], "natrual_language": ["Return", "the", "value", "type", "to", "use", "for", "ISD", ":", ":SETCC", "."], "TS_V_token": ["AArch64", "AArch64", "MVT::i32"], "File": "AArch64ISelLowering109", "Func": "getSetCCResultType", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2375, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "VESubtarget", ">", "(", ")", ";", "return", "SelectionDAGISel", "::", "runOnMachineFunction", "(", "MF", ")", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["VE", "VE"], "File": "VEISelDAGToDAG", "Func": "runOnMachineFunction", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2376, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "createdInstr", "(", "MachineInstr", "&", "MI", ")", "override", "{", "InstList", ".", "insert", "(", "&", "MI", ")", ";", "}", ""], "natrual_language": ["An", "instruction", "has", "been", "created", "and", "inserted", "into", "the", "function", "."], "TS_V_token": ["Mips"], "File": "MipsRegisterBankInfo10", "Func": "createdInstr", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2377, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "sh_legitimize_reload_address", "(", "rtx", "*", "p", ",", "machine_mode", "mode", ",", "int", "opnum", ",", "int", "itype", ")", "{", "enum", "reload_type", "type", "=", "(", "enum", "reload_type", ")", "itype", ";", "const", "int", "mode_sz", "=", "GET_MODE_SIZE", "(", "mode", ")", ";", "if", "(", "sh_lra_p", "(", ")", ")", "return", "false", ";", "if", "(", "GET_CODE", "(", "*", "p", ")", "==", "PLUS", "&&", "CONST_INT_P", "(", "XEXP", "(", "*", "p", ",", "1", ")", ")", "&&", "MAYBE_BASE_REGISTER_RTX_P", "(", "XEXP", "(", "*", "p", ",", "0", ")", ",", "true", ")", ")", "{", "const", "HOST_WIDE_INT", "offset", "=", "INTVAL", "(", "XEXP", "(", "*", "p", ",", "1", ")", ")", ";", "struct", "disp_adjust", "adj", "=", "sh_find_mov_disp_adjust", "(", "mode", ",", "offset", ")", ";", "if", "(", "TARGET_SH2A", "&&", "mode", "==", "DFmode", "&&", "(", "offset", "&", "0x7", ")", ")", "{", "push_reload", "(", "*", "p", ",", "NULL_RTX", ",", "p", ",", "NULL", ",", "BASE_REG_CLASS", ",", "Pmode", ",", "VOIDmode", ",", "0", ",", "0", ",", "opnum", ",", "type", ")", ";", "return", "true", ";", "}", "if", "(", "TARGET_SH2E", "&&", "mode", "==", "SFmode", ")", "{", "*", "p", "=", "copy_rtx", "(", "*", "p", ")", ";", "push_reload", "(", "*", "p", ",", "NULL_RTX", ",", "p", ",", "NULL", ",", "BASE_REG_CLASS", ",", "Pmode", ",", "VOIDmode", ",", "0", ",", "0", ",", "opnum", ",", "type", ")", ";", "return", "true", ";", "}", "if", "(", "(", "mode_sz", "==", "4", "||", "mode_sz", "==", "8", ")", "&&", "!", "(", "TARGET_SH4", "&&", "mode", "==", "DFmode", ")", "&&", "adj", ".", "offset_adjust", "!=", "NULL_RTX", "&&", "adj", ".", "mov_disp", "!=", "NULL_RTX", ")", "{", "rtx", "sum", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "XEXP", "(", "*", "p", ",", "0", ")", ",", "adj", ".", "offset_adjust", ")", ";", "*", "p", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "sum", ",", "adj", ".", "mov_disp", ")", ";", "push_reload", "(", "sum", ",", "NULL_RTX", ",", "&", "XEXP", "(", "*", "p", ",", "0", ")", ",", "NULL", ",", "BASE_REG_CLASS", ",", "Pmode", ",", "VOIDmode", ",", "0", ",", "0", ",", "opnum", ",", "type", ")", ";", "return", "true", ";", "}", "}", "if", "(", "GET_CODE", "(", "*", "p", ")", "==", "PLUS", "&&", "(", "mode_sz", "==", "4", "||", "mode_sz", "==", "8", ")", "&&", "GET_CODE", "(", "XEXP", "(", "*", "p", ",", "0", ")", ")", "==", "PLUS", "&&", "CONST_INT_P", "(", "XEXP", "(", "XEXP", "(", "*", "p", ",", "0", ")", ",", "1", ")", ")", "&&", "MAYBE_BASE_REGISTER_RTX_P", "(", "XEXP", "(", "XEXP", "(", "*", "p", ",", "0", ")", ",", "0", ")", ",", "true", ")", "&&", "CONST_INT_P", "(", "XEXP", "(", "*", "p", ",", "1", ")", ")", "&&", "!", "(", "TARGET_SH2E", "&&", "mode", "==", "SFmode", ")", ")", "{", "push_reload", "(", "XEXP", "(", "*", "p", ",", "0", ")", ",", "NULL_RTX", ",", "&", "XEXP", "(", "*", "p", ",", "0", ")", ",", "NULL", ",", "BASE_REG_CLASS", ",", "Pmode", ",", "VOIDmode", ",", "0", ",", "0", ",", "opnum", ",", "type", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Attempt", "to", "replace", "*", "p", ",", "which", "is", "an", "address", "that", "needs", "reloading", ",", "with", "a", "valid", "memory", "address", "for", "an", "operand", "of", "mode", "MODE", ".", "Like", "for", "sh_legitimize_address", ",", "for", "the", "SH", "we", "try", "to", "get", "a", "normal", "form", "of", "the", "address", ".", "That", "will", "allow", "inheritance", "of", "the", "address", "reloads", "."], "TS_V_token": ["sh", "1", "0", "1", "0x7", "0", "0", "0", "0", "4", "8", "0", "0", "0", "0", "4", "8", "0", "0", "1", "0", "0", "1", "0", "0", "0", "0"], "File": "sh", "Func": "sh_legitimize_reload_address", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2378, "Length": 438, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "pa_libcall_value", "(", "machine_mode", "mode", ",", "const_rtx", "fun", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "!", "TARGET_SOFT_FLOAT", "&&", "(", "mode", "==", "SFmode", "||", "mode", "==", "DFmode", ")", ")", "return", "gen_rtx_REG", "(", "mode", ",", "32", ")", ";", "else", "return", "gen_rtx_REG", "(", "mode", ",", "28", ")", ";", "}", ""], "natrual_language": ["Implement", "the", "TARGET_LIBCALL_VALUE", "hook", "."], "TS_V_token": ["pa", "32", "28"], "File": "pa", "Func": "pa_libcall_value", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2379, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "CAHPInstrInfo", "::", "removeBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "int", "*", "BytesRemoved", ")", "const", "{", "if", "(", "BytesRemoved", ")", "*", "BytesRemoved", "=", "0", ";", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "getLastNonDebugInstr", "(", ")", ";", "if", "(", "I", "==", "MBB", ".", "end", "(", ")", ")", "return", "0", ";", "if", "(", "!", "I", "->", "getDesc", "(", ")", ".", "isUnconditionalBranch", "(", ")", "&&", "!", "I", "->", "getDesc", "(", ")", ".", "isConditionalBranch", "(", ")", ")", "return", "0", ";", "I", "->", "eraseFromParent", "(", ")", ";", "if", "(", "BytesRemoved", ")", "*", "BytesRemoved", "+=", "getInstSizeInBytes", "(", "*", "I", ")", ";", "I", "=", "MBB", ".", "end", "(", ")", ";", "if", "(", "I", "==", "MBB", ".", "begin", "(", ")", ")", "return", "1", ";", "--", "I", ";", "if", "(", "!", "I", "->", "getDesc", "(", ")", ".", "isConditionalBranch", "(", ")", ")", "return", "1", ";", "I", "->", "eraseFromParent", "(", ")", ";", "if", "(", "BytesRemoved", ")", "*", "BytesRemoved", "+=", "getInstSizeInBytes", "(", "*", "I", ")", ";", "return", "2", ";", "}", ""], "natrual_language": ["Remove", "the", "branching", "code", "at", "the", "end", "of", "the", "specific", "MBB", "."], "TS_V_token": ["CAHP", "CAHP", "0", "0", "0", "1", "1", "2"], "File": "CAHPInstrInfo", "Func": "removeBranch", "Target": "CAHP", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2380, "Length": 157, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "SHUXIInstrInfo", "::", "removeBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "int", "*", "BytesRemoved", ")", "const", "{", "assert", "(", "!", "BytesRemoved", "&&", "\"code size not handled\"", ")", ";", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "end", "(", ")", ";", "unsigned", "Count", "=", "0", ";", "while", "(", "I", "!=", "MBB", ".", "begin", "(", ")", ")", "{", "--", "I", ";", "if", "(", "I", "->", "isDebugValue", "(", ")", ")", "continue", ";", "if", "(", "I", "->", "getOpcode", "(", ")", "!=", "SHUXI", "::", "JMP", "&&", "I", "->", "getOpcode", "(", ")", "!=", "SHUXI", "::", "JCC", ")", "break", ";", "I", "->", "eraseFromParent", "(", ")", ";", "I", "=", "MBB", ".", "end", "(", ")", ";", "++", "Count", ";", "}", "return", "Count", ";", "}", ""], "natrual_language": ["Remove", "the", "branching", "code", "at", "the", "end", "of", "the", "specific", "MBB", "."], "TS_V_token": ["SHUXI", "SHUXI", "\"code size not handled\"", "0", "SHUXI::JMP", "SHUXI::JCC"], "File": "SHUXIInstrInfo", "Func": "removeBranch", "Target": "SHUXI", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2381, "Length": 109, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "LLVM_DUMP_METHOD", "void", "ARMConstantPoolValue", "::", "dump", "(", ")", "const", "{", "errs", "(", ")", "<<", "\" \"", "<<", "*", "this", ";", "}", ""], "natrual_language": ["Dump", "the", "plan", "to", "stderr", "(", "for", "debugging", ")", "."], "TS_V_token": ["ARM", "ARM", "\" \""], "File": "ARMConstantPoolValue1", "Func": "dump", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2382, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "vax_init_libfuncs", "(", "void", ")", "{", "set_optab_libfunc", "(", "udiv_optab", ",", "SImode", ",", "TARGET_ELF", "?", "\"*__udiv\"", ":", "\"*udiv\"", ")", ";", "set_optab_libfunc", "(", "umod_optab", ",", "SImode", ",", "TARGET_ELF", "?", "\"*__urem\"", ":", "\"*urem\"", ")", ";", "}", ""], "natrual_language": ["We", "can", "use", "the", "BSD", "C", "library", "routines", "for", "the", "libgcc", "calls", "that", "are", "still", "generated", ",", "since", "that", "'s", "what", "they", "boil", "down", "to", "anyways", ".", "When", "ELF", ",", "avoid", "the", "user", "'s", "namespace", "."], "TS_V_token": ["vax", "\"*__udiv\"", "\"*udiv\"", "\"*__urem\"", "\"*urem\""], "File": "vax3", "Func": "vax_init_libfuncs", "Target": "vax", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2383, "Length": 34, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "GlobalBaseReg", "=", "0", ";", "PPCSubTarget", "=", "&", "MF", ".", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ";", "PPCLowering", "=", "PPCSubTarget", "->", "getTargetLowering", "(", ")", ";", "SelectionDAGISel", "::", "runOnMachineFunction", "(", "MF", ")", ";", "if", "(", "!", "PPCSubTarget", "->", "isSVR4ABI", "(", ")", ")", "InsertVRSaveCode", "(", "MF", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["PowerPC", "0", "PPC", "PPC", "PPC", "PPC", "PPC"], "File": "PPCISelDAGToDAG (2)1", "Func": "runOnMachineFunction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2384, "Length": 58, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "nds32_can_use_return_insn", "(", "void", ")", "{", "int", "sp_adjust", ";", "if", "(", "!", "reload_completed", ")", "return", "0", ";", "if", "(", "cfun", "->", "machine", "->", "attr_naked_p", "&&", "!", "flag_ret_in_naked_func", ")", "return", "0", ";", "sp_adjust", "=", "cfun", "->", "machine", "->", "local_size", "+", "cfun", "->", "machine", "->", "out_args_size", "+", "cfun", "->", "machine", "->", "callee_saved_area_gpr_padding_bytes", "+", "cfun", "->", "machine", "->", "callee_saved_fpr_regs_size", ";", "if", "(", "!", "cfun", "->", "machine", "->", "fp_as_gp_p", "&&", "satisfies_constraint_Iu08", "(", "GEN_INT", "(", "sp_adjust", ")", ")", "&&", "NDS32_DOUBLE_WORD_ALIGN_P", "(", "sp_adjust", ")", "&&", "!", "cfun", "->", "calls_alloca", "&&", "NDS32_V3PUSH_AVAILABLE_P", "&&", "!", "(", "TARGET_HARD_FLOAT", "&&", "(", "cfun", "->", "machine", "->", "callee_saved_first_fpr_regno", "!=", "SP_REGNUM", ")", ")", ")", "return", "1", ";", "return", "(", "cfun", "->", "machine", "->", "naked_p", "&&", "(", "cfun", "->", "machine", "->", "va_args_size", "==", "0", ")", ")", ";", "}", ""], "natrual_language": ["Return", "nonzero", "if", "this", "function", "is", "known", "to", "have", "a", "null", "epilogue", ".", "This", "allows", "the", "optimizer", "to", "omit", "jumps", "to", "jumps", "if", "no", "stack", "was", "created", "."], "TS_V_token": ["nds32", "0", "0", "1", "0"], "File": "nds32", "Func": "nds32_can_use_return_insn", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2385, "Length": 124, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ix86_expand_pinsr", "(", "rtx", "*", "operands", ")", "{", "rtx", "dst", "=", "operands", "[", "0", "]", ";", "rtx", "src", "=", "operands", "[", "3", "]", ";", "unsigned", "int", "size", "=", "INTVAL", "(", "operands", "[", "1", "]", ")", ";", "unsigned", "int", "pos", "=", "INTVAL", "(", "operands", "[", "2", "]", ")", ";", "if", "(", "SUBREG_P", "(", "dst", ")", ")", "{", "pos", "+=", "SUBREG_BYTE", "(", "dst", ")", "*", "BITS_PER_UNIT", ";", "dst", "=", "SUBREG_REG", "(", "dst", ")", ";", "}", "switch", "(", "GET_MODE", "(", "dst", ")", ")", "{", "case", "V16QImode", ":", "case", "V8HImode", ":", "case", "V4SImode", ":", "case", "V2DImode", ":", "case", "V1TImode", ":", "case", "TImode", ":", "{", "machine_mode", "srcmode", ",", "dstmode", ";", "rtx", "(", "*", "pinsr", ")", "(", "rtx", ",", "rtx", ",", "rtx", ",", "rtx", ")", ";", "rtx", "d", ";", "srcmode", "=", "mode_for_size", "(", "size", ",", "MODE_INT", ",", "0", ")", ";", "switch", "(", "srcmode", ")", "{", "case", "QImode", ":", "if", "(", "!", "TARGET_SSE4_1", ")", "return", "false", ";", "dstmode", "=", "V16QImode", ";", "pinsr", "=", "gen_sse4_1_pinsrb", ";", "break", ";", "case", "HImode", ":", "if", "(", "!", "TARGET_SSE2", ")", "return", "false", ";", "dstmode", "=", "V8HImode", ";", "pinsr", "=", "gen_sse2_pinsrw", ";", "break", ";", "case", "SImode", ":", "if", "(", "!", "TARGET_SSE4_1", ")", "return", "false", ";", "dstmode", "=", "V4SImode", ";", "pinsr", "=", "gen_sse4_1_pinsrd", ";", "break", ";", "case", "DImode", ":", "gcc_assert", "(", "TARGET_64BIT", ")", ";", "if", "(", "!", "TARGET_SSE4_1", ")", "return", "false", ";", "dstmode", "=", "V2DImode", ";", "pinsr", "=", "gen_sse4_1_pinsrq", ";", "break", ";", "default", ":", "return", "false", ";", "}", "if", "(", "pos", "&", "(", "size", "-", "1", ")", ")", "return", "false", ";", "if", "(", "SUBREG_P", "(", "src", ")", ")", "{", "unsigned", "int", "srcpos", "=", "SUBREG_BYTE", "(", "src", ")", ";", "if", "(", "srcpos", ">", "0", ")", "{", "rtx", "extr_ops", "[", "4", "]", ";", "extr_ops", "[", "0", "]", "=", "gen_reg_rtx", "(", "srcmode", ")", ";", "extr_ops", "[", "1", "]", "=", "gen_lowpart", "(", "srcmode", ",", "SUBREG_REG", "(", "src", ")", ")", ";", "extr_ops", "[", "2", "]", "=", "GEN_INT", "(", "size", ")", ";", "extr_ops", "[", "3", "]", "=", "GEN_INT", "(", "srcpos", "*", "BITS_PER_UNIT", ")", ";", "if", "(", "!", "ix86_expand_pextr", "(", "extr_ops", ")", ")", "return", "false", ";", "src", "=", "extr_ops", "[", "0", "]", ";", "}", "else", "src", "=", "gen_lowpart", "(", "srcmode", ",", "SUBREG_REG", "(", "src", ")", ")", ";", "}", "if", "(", "GET_MODE", "(", "dst", ")", "==", "dstmode", ")", "d", "=", "dst", ";", "else", "d", "=", "gen_reg_rtx", "(", "dstmode", ")", ";", "emit_insn", "(", "pinsr", "(", "d", ",", "gen_lowpart", "(", "dstmode", ",", "dst", ")", ",", "gen_lowpart", "(", "srcmode", ",", "src", ")", ",", "GEN_INT", "(", "1", "<<", "(", "pos", "/", "size", ")", ")", ")", ")", ";", "if", "(", "d", "!=", "dst", ")", "emit_move_insn", "(", "dst", ",", "gen_lowpart", "(", "GET_MODE", "(", "dst", ")", ",", "d", ")", ")", ";", "return", "true", ";", "}", "default", ":", "return", "false", ";", "}", "}", ""], "natrual_language": ["Expand", "an", "insert", "into", "a", "vector", "register", "through", "pinsr", "insn", ".", "Return", "true", "if", "successful", "."], "TS_V_token": ["i386", "0", "3", "1", "2", "0", "1", "0", "4", "0", "1", "2", "3", "0", "1"], "File": "i3865", "Func": "ix86_expand_pinsr", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2386, "Length": 443, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Register", "Cpu0RegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "return", "TFI", "->", "hasFP", "(", "MF", ")", "?", "(", "Cpu0", "::", "FP", ")", ":", "(", "Cpu0", "::", "SP", ")", ";", "}", ""], "natrual_language": ["Debug", "information", "queries", "."], "TS_V_token": ["Cpu0", "Cpu0", "Cpu0::FP", "Cpu0::SP"], "File": "Cpu0RegisterInfo", "Func": "getFrameRegister", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2387, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Value", "*", "ARMTargetLowering", "::", "emitStoreConditional", "(", "IRBuilderBase", "&", "Builder", ",", "Value", "*", "Val", ",", "Value", "*", "Addr", ",", "AtomicOrdering", "Ord", ")", "const", "{", "Module", "*", "M", "=", "Builder", ".", "GetInsertBlock", "(", ")", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "bool", "IsRelease", "=", "isReleaseOrStronger", "(", "Ord", ")", ";", "if", "(", "Val", "->", "getType", "(", ")", "->", "getPrimitiveSizeInBits", "(", ")", "==", "64", ")", "{", "Intrinsic", "::", "ID", "Int", "=", "IsRelease", "?", "Intrinsic", "::", "arm_stlexd", ":", "Intrinsic", "::", "arm_strexd", ";", "Function", "*", "Strex", "=", "Intrinsic", "::", "getDeclaration", "(", "M", ",", "Int", ")", ";", "Type", "*", "Int32Ty", "=", "Type", "::", "getInt32Ty", "(", "M", "->", "getContext", "(", ")", ")", ";", "Value", "*", "Lo", "=", "Builder", ".", "CreateTrunc", "(", "Val", ",", "Int32Ty", ",", "\"lo\"", ")", ";", "Value", "*", "Hi", "=", "Builder", ".", "CreateTrunc", "(", "Builder", ".", "CreateLShr", "(", "Val", ",", "32", ")", ",", "Int32Ty", ",", "\"hi\"", ")", ";", "if", "(", "!", "Subtarget", "->", "isLittle", "(", ")", ")", "std", "::", "swap", "(", "Lo", ",", "Hi", ")", ";", "Addr", "=", "Builder", ".", "CreateBitCast", "(", "Addr", ",", "Type", "::", "getInt8PtrTy", "(", "M", "->", "getContext", "(", ")", ")", ")", ";", "return", "Builder", ".", "CreateCall", "(", "Strex", ",", "{", "Lo", ",", "Hi", ",", "Addr", "}", ")", ";", "}", "Intrinsic", "::", "ID", "Int", "=", "IsRelease", "?", "Intrinsic", "::", "arm_stlex", ":", "Intrinsic", "::", "arm_strex", ";", "Type", "*", "Tys", "[", "]", "=", "{", "Addr", "->", "getType", "(", ")", "}", ";", "Function", "*", "Strex", "=", "Intrinsic", "::", "getDeclaration", "(", "M", ",", "Int", ",", "Tys", ")", ";", "return", "Builder", ".", "CreateCall", "(", "Strex", ",", "{", "Builder", ".", "CreateZExtOrBitCast", "(", "Val", ",", "Strex", "->", "getFunctionType", "(", ")", "->", "getParamType", "(", "0", ")", ")", ",", "Addr", "}", ")", ";", "}", ""], "natrual_language": ["Perform", "a", "store-conditional", "operation", "to", "Addr", "."], "TS_V_token": ["ARM", "ARM", "64", "Intrinsic::ID", "Intrinsic::arm_stlexd", "Intrinsic::arm_strexd", "Intrinsic::getDeclaration", "\"lo\"", "32", "\"hi\"", "Intrinsic::ID", "Intrinsic::arm_stlex", "Intrinsic::arm_strex", "Intrinsic::getDeclaration", "0"], "File": "ARMISelLowering (2)5", "Func": "emitStoreConditional", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2388, "Length": 274, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "AArch64RegisterInfo", "::", "getRegPressureLimit", "(", "const", "TargetRegisterClass", "*", "RC", ",", "MachineFunction", "&", "MF", ")", "const", "{", "const", "AArch64FrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "switch", "(", "RC", "->", "getID", "(", ")", ")", "{", "default", ":", "return", "0", ";", "case", "AArch64", "::", "GPR32RegClassID", ":", "case", "AArch64", "::", "GPR32spRegClassID", ":", "case", "AArch64", "::", "GPR32allRegClassID", ":", "case", "AArch64", "::", "GPR64spRegClassID", ":", "case", "AArch64", "::", "GPR64allRegClassID", ":", "case", "AArch64", "::", "GPR64RegClassID", ":", "case", "AArch64", "::", "GPR32commonRegClassID", ":", "case", "AArch64", "::", "GPR64commonRegClassID", ":", "return", "32", "-", "1", "-", "(", "TFI", "->", "hasFP", "(", "MF", ")", "||", "TT", ".", "isOSDarwin", "(", ")", ")", "-", "MF", ".", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ".", "isX18Reserved", "(", ")", "-", "MF", ".", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ".", "isX20Reserved", "(", ")", "-", "hasBasePointer", "(", "MF", ")", ";", "case", "AArch64", "::", "FPR8RegClassID", ":", "case", "AArch64", "::", "FPR16RegClassID", ":", "case", "AArch64", "::", "FPR32RegClassID", ":", "case", "AArch64", "::", "FPR64RegClassID", ":", "case", "AArch64", "::", "FPR128RegClassID", ":", "return", "32", ";", "case", "AArch64", "::", "DDRegClassID", ":", "case", "AArch64", "::", "DDDRegClassID", ":", "case", "AArch64", "::", "DDDDRegClassID", ":", "case", "AArch64", "::", "QQRegClassID", ":", "case", "AArch64", "::", "QQQRegClassID", ":", "case", "AArch64", "::", "QQQQRegClassID", ":", "return", "32", ";", "case", "AArch64", "::", "FPR128_loRegClassID", ":", "return", "16", ";", "}", "}", ""], "natrual_language": ["Return", "the", "register", "pressure", "``", "high", "water", "mark", "''", "for", "the", "specific", "register", "class", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "0", "AArch64::GPR32RegClassID", "AArch64::GPR32spRegClassID", "AArch64::GPR32allRegClassID", "AArch64::GPR64spRegClassID", "AArch64::GPR64allRegClassID", "AArch64::GPR64RegClassID", "AArch64::GPR32commonRegClassID", "AArch64::GPR64commonRegClassID", "32", "1", "AArch64", "AArch64", "AArch64::FPR8RegClassID", "AArch64::FPR16RegClassID", "AArch64::FPR32RegClassID", "AArch64::FPR64RegClassID", "AArch64::FPR128RegClassID", "32", "AArch64::DDRegClassID", "AArch64::DDDRegClassID", "AArch64::DDDDRegClassID", "AArch64::QQRegClassID", "AArch64::QQQRegClassID", "AArch64::QQQQRegClassID", "32", "AArch64::FPR128_loRegClassID", "16"], "File": "AArch64RegisterInfo37", "Func": "getRegPressureLimit", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2389, "Length": 202, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMPassConfig", "::", "addPreEmitPass", "(", ")", "{", "if", "(", "getARMSubtarget", "(", ")", ".", "isThumb2", "(", ")", ")", "{", "if", "(", "!", "getARMSubtarget", "(", ")", ".", "prefers32BitThumb", "(", ")", ")", "addPass", "(", "createThumb2SizeReductionPass", "(", ")", ")", ";", "addPass", "(", "&", "UnpackMachineBundlesID", ")", ";", "}", "if", "(", "getARMSubtarget", "(", ")", ".", "useConstIslands", "(", ")", ")", "addPass", "(", "createARMConstantIslandPass", "(", ")", ")", ";", "if", "(", "getARMSubtarget", "(", ")", ".", "isTargetNaCl", "(", ")", ")", "{", "addPass", "(", "createARMNaClRewritePass", "(", ")", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM"], "File": "ARMTargetMachine88", "Func": "addPreEmitPass", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2390, "Length": 83, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "enum", "sched_fusion_type", "fusion_load_store", "(", "rtx_insn", "*", "insn", ",", "rtx", "*", "base", ",", "rtx", "*", "offset", ")", "{", "rtx", "x", ",", "dest", ",", "src", ";", "enum", "sched_fusion_type", "fusion", "=", "SCHED_FUSION_LD", ";", "gcc_assert", "(", "INSN_P", "(", "insn", ")", ")", ";", "x", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "!=", "SET", ")", "return", "SCHED_FUSION_NONE", ";", "src", "=", "SET_SRC", "(", "x", ")", ";", "dest", "=", "SET_DEST", "(", "x", ")", ";", "if", "(", "GET_MODE", "(", "dest", ")", "!=", "SImode", "&&", "GET_MODE", "(", "dest", ")", "!=", "DImode", "&&", "GET_MODE", "(", "dest", ")", "!=", "SFmode", "&&", "GET_MODE", "(", "dest", ")", "!=", "DFmode", ")", "return", "SCHED_FUSION_NONE", ";", "if", "(", "GET_CODE", "(", "src", ")", "==", "SIGN_EXTEND", ")", "{", "fusion", "=", "SCHED_FUSION_LD_SIGN_EXTEND", ";", "src", "=", "XEXP", "(", "src", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "src", ")", "!=", "MEM", "||", "GET_MODE", "(", "src", ")", "!=", "SImode", ")", "return", "SCHED_FUSION_NONE", ";", "}", "else", "if", "(", "GET_CODE", "(", "src", ")", "==", "ZERO_EXTEND", ")", "{", "fusion", "=", "SCHED_FUSION_LD_ZERO_EXTEND", ";", "src", "=", "XEXP", "(", "src", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "src", ")", "!=", "MEM", "||", "GET_MODE", "(", "src", ")", "!=", "SImode", ")", "return", "SCHED_FUSION_NONE", ";", "}", "if", "(", "GET_CODE", "(", "src", ")", "==", "MEM", "&&", "REG_P", "(", "dest", ")", ")", "extract_base_offset_in_addr", "(", "src", ",", "base", ",", "offset", ")", ";", "else", "if", "(", "GET_CODE", "(", "dest", ")", "==", "MEM", "&&", "(", "REG_P", "(", "src", ")", "||", "src", "==", "const0_rtx", ")", ")", "{", "fusion", "=", "SCHED_FUSION_ST", ";", "extract_base_offset_in_addr", "(", "dest", ",", "base", ",", "offset", ")", ";", "}", "else", "return", "SCHED_FUSION_NONE", ";", "if", "(", "*", "base", "==", "NULL_RTX", "||", "*", "offset", "==", "NULL_RTX", ")", "fusion", "=", "SCHED_FUSION_NONE", ";", "return", "fusion", ";", "}", ""], "natrual_language": ["If", "INSN", "is", "a", "load", "or", "store", "of", "address", "in", "the", "form", "of", "[", "base+offset", "]", ",", "extract", "the", "two", "parts", "and", "set", "to", "BASE", "and", "OFFSET", ".", "IS_LOAD", "is", "set", "to", "TRUE", "if", "it", "'s", "a", "load", ".", "Return", "TRUE", "if", "INSN", "is", "such", "an", "instruction", ",", "otherwise", "return", "FALSE", "."], "TS_V_token": ["aarch64", "0", "0"], "File": "aarch642", "Func": "fusion_load_store", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2391, "Length": 275, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "SICFrameLowering", "*", "SICFrameLowering", "::", "create", "(", "const", "SICSubtarget", "&", "ST", ")", "{", "return", "new", "SICFrameLowering", "(", "ST", ",", "ST", ".", "stackAlignment", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "creates", "an", "identified", "struct", "."], "TS_V_token": ["SIC", "SIC", "SIC", "SIC", "SIC"], "File": "SICFrameLowering", "Func": "create", "Target": "SIC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2392, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "addRequired", "<", "TargetPassConfig", ">", "(", ")", ";", "ModulePass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["Mips"], "File": "Mips16HardFloat1", "Func": "getAnalysisUsage", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2393, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_emit_load_exclusive", "(", "machine_mode", "mode", ",", "rtx", "rval", ",", "rtx", "mem", ",", "bool", "acq", ")", "{", "rtx", "(", "*", "gen", ")", "(", "rtx", ",", "rtx", ")", ";", "if", "(", "acq", ")", "{", "switch", "(", "mode", ")", "{", "case", "E_QImode", ":", "gen", "=", "gen_arm_load_acquire_exclusiveqi", ";", "break", ";", "case", "E_HImode", ":", "gen", "=", "gen_arm_load_acquire_exclusivehi", ";", "break", ";", "case", "E_SImode", ":", "gen", "=", "gen_arm_load_acquire_exclusivesi", ";", "break", ";", "case", "E_DImode", ":", "gen", "=", "gen_arm_load_acquire_exclusivedi", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "else", "{", "switch", "(", "mode", ")", "{", "case", "E_QImode", ":", "gen", "=", "gen_arm_load_exclusiveqi", ";", "break", ";", "case", "E_HImode", ":", "gen", "=", "gen_arm_load_exclusivehi", ";", "break", ";", "case", "E_SImode", ":", "gen", "=", "gen_arm_load_exclusivesi", ";", "break", ";", "case", "E_DImode", ":", "gen", "=", "gen_arm_load_exclusivedi", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "emit_insn", "(", "gen", "(", "rval", ",", "mem", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "the", "load-exclusive", "and", "store-exclusive", "instructions", ".", "Use", "acquire", "and", "release", "versions", "if", "necessary", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "arm_emit_load_exclusive", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2394, "Length": 144, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mep_asm_named_section", "(", "const", "char", "*", "name", ",", "unsigned", "int", "flags", ",", "tree", "decl", "ATTRIBUTE_UNUSED", ")", "{", "char", "flagchars", "[", "8", "]", ",", "*", "f", "=", "flagchars", ";", "const", "char", "*", "type", ";", "if", "(", "!", "(", "flags", "&", "SECTION_DEBUG", ")", ")", "*", "f", "++", "=", "'a'", ";", "if", "(", "flags", "&", "SECTION_WRITE", ")", "*", "f", "++", "=", "'w'", ";", "if", "(", "flags", "&", "SECTION_CODE", ")", "*", "f", "++", "=", "'x'", ";", "if", "(", "flags", "&", "SECTION_SMALL", ")", "*", "f", "++", "=", "'s'", ";", "if", "(", "flags", "&", "SECTION_MEP_VLIW", ")", "*", "f", "++", "=", "'v'", ";", "*", "f", "=", "'\\0'", ";", "if", "(", "flags", "&", "SECTION_BSS", ")", "type", "=", "\"nobits\"", ";", "else", "type", "=", "\"progbits\"", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t.section\\t%s,\\\"%s\\\",@%s\\n\"", ",", "name", ",", "flagchars", ",", "type", ")", ";", "if", "(", "flags", "&", "SECTION_CODE", ")", "fputs", "(", "(", "flags", "&", "SECTION_MEP_VLIW", "?", "\"\\t.vliw\\n\"", ":", "\"\\t.core\\n\"", ")", ",", "asm_out_file", ")", ";", "}", ""], "natrual_language": ["Switch", "to", "an", "arbitrary", "section", "NAME", "with", "attributes", "as", "specified", "by", "FLAGS", ".", "ALIGN", "specifies", "any", "known", "alignment", "requirements", "for", "the", "section", ";", "0", "if", "the", "default", "should", "be", "used", ".", "Differs", "from", "the", "standard", "ELF", "version", "only", "in", "support", "of", "VLIW", "mode", "."], "TS_V_token": ["mep", "8", "\"nobits\"", "\"progbits\"", "\"\\t.section\\t%s,\\\"%s\\\",@%s\\n\"", "\"\\t.vliw\\n\"", "\"\\t.core\\n\""], "File": "mep", "Func": "mep_asm_named_section", "Target": "mep", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2395, "Length": 152, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "evaluateBranch", "(", "const", "MCInst", "&", "Inst", ",", "uint64_t", "Addr", ",", "uint64_t", "Size", ",", "uint64_t", "&", "Target", ")", "const", "override", "{", "const", "MCInstrDesc", "&", "Desc", "=", "Info", "->", "get", "(", "Inst", ".", "getOpcode", "(", ")", ")", ";", "for", "(", "unsigned", "OpNum", "=", "0", ";", "OpNum", "<", "Desc", ".", "getNumOperands", "(", ")", ";", "++", "OpNum", ")", "{", "if", "(", "Inst", ".", "getOperand", "(", "OpNum", ")", ".", "isImm", "(", ")", "&&", "Desc", ".", "OpInfo", "[", "OpNum", "]", ".", "OperandType", "==", "MCOI", "::", "OPERAND_PCREL", ")", "{", "int64_t", "Imm", "=", "Inst", ".", "getOperand", "(", "OpNum", ")", ".", "getImm", "(", ")", ";", "Target", "=", "ARM_MC", "::", "evaluateBranchTarget", "(", "Desc", ",", "Addr", ",", "Imm", ")", ";", "return", "true", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["Given", "a", "branch", "instruction", "try", "to", "get", "the", "address", "the", "branch", "targets", "."], "TS_V_token": ["ARM", "0", "ARM"], "File": "ARMMCTargetDesc (2)1", "Func": "evaluateBranch", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2396, "Length": 119, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86TTI", "::", "getNumberOfRegisters", "(", "bool", "Vector", ")", "const", "{", "if", "(", "Vector", "&&", "!", "ST", "->", "hasSSE1", "(", ")", ")", "return", "0", ";", "if", "(", "ST", "->", "is64Bit", "(", ")", ")", "return", "16", ";", "return", "8", ";", "}", ""], "natrual_language": ["\ufffd", "?", "Vector", "TTI", "begin", "\ufffd", "?"], "TS_V_token": ["X86", "X86", "0", "16", "8"], "File": "X86TargetTransformInfo113", "Func": "getNumberOfRegisters", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2397, "Length": 39, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_push_argument", "(", "unsigned", "int", "npush", ")", "{", "return", "(", "(", "!", "TARGET_SSE2", "||", "npush", "<", "(", "TARGET_64BIT", "?", "16", ":", "8", ")", ")", "&&", "TARGET_PUSH_ARGS", "&&", "!", "ACCUMULATE_OUTGOING_ARGS", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_PUSH_ARGUMENT", "."], "TS_V_token": ["i386", "16", "8"], "File": "i386", "Func": "ix86_push_argument", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2398, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86LinuxTargetObjectFile", "::", "Initialize", "(", "MCContext", "&", "Ctx", ",", "const", "TargetMachine", "&", "TM", ")", "{", "TargetLoweringObjectFileELF", "::", "Initialize", "(", "Ctx", ",", "TM", ")", ";", "InitializeELF", "(", "TM", ".", "Options", ".", "UseInitArray", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "called", "before", "any", "actual", "lowering", "is", "done", "."], "TS_V_token": ["X86", "X86"], "File": "X86TargetObjectFile", "Func": "Initialize", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2399, "Length": 34, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "parse_mtune_ctrl_str", "(", "bool", "dump", ")", "{", "if", "(", "!", "ix86_tune_ctrl_string", ")", "return", ";", "char", "*", "next_feature_string", "=", "NULL", ";", "char", "*", "curr_feature_string", "=", "xstrdup", "(", "ix86_tune_ctrl_string", ")", ";", "char", "*", "orig", "=", "curr_feature_string", ";", "int", "i", ";", "do", "{", "bool", "clear", "=", "false", ";", "next_feature_string", "=", "strchr", "(", "curr_feature_string", ",", "','", ")", ";", "if", "(", "next_feature_string", ")", "*", "next_feature_string", "++", "=", "'\\0'", ";", "if", "(", "*", "curr_feature_string", "==", "'^'", ")", "{", "curr_feature_string", "++", ";", "clear", "=", "true", ";", "}", "for", "(", "i", "=", "0", ";", "i", "<", "X86_TUNE_LAST", ";", "i", "++", ")", "{", "if", "(", "!", "strcmp", "(", "curr_feature_string", ",", "ix86_tune_feature_names", "[", "i", "]", ")", ")", "{", "ix86_tune_features", "[", "i", "]", "=", "!", "clear", ";", "if", "(", "dump", ")", "fprintf", "(", "stderr", ",", "\"Explicitly %s feature %s\\n\"", ",", "clear", "?", "\"clear\"", ":", "\"set\"", ",", "ix86_tune_feature_names", "[", "i", "]", ")", ";", "break", ";", "}", "}", "if", "(", "i", "==", "X86_TUNE_LAST", ")", "error", "(", "\"unknown parameter to option -mtune-ctrl: %s\"", ",", "clear", "?", "curr_feature_string", "-", "1", ":", "curr_feature_string", ")", ";", "curr_feature_string", "=", "next_feature_string", ";", "}", "while", "(", "curr_feature_string", ")", ";", "free", "(", "orig", ")", ";", "}", ""], "natrual_language": ["parse", "-mtune-ctrl=", "option", ".", "When", "DUMP", "is", "true", ",", "print", "the", "features", "that", "are", "explicitly", "set", "."], "TS_V_token": ["i386", "0", "\"Explicitly %s feature %s\\n\"", "\"clear\"", "\"set\"", "\"unknown parameter to option -mtune-ctrl: %s\"", "1"], "File": "i3867", "Func": "parse_mtune_ctrl_str", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2400, "Length": 178, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "pru_expand_prologue", "(", "void", ")", "{", "int", "regno_start", ";", "int", "total_frame_size", ";", "int", "sp_offset", ";", "int", "save_regs_base", ";", "int", "save_offset", ";", "total_frame_size", "=", "cfun", "->", "machine", "->", "total_size", ";", "if", "(", "flag_stack_usage_info", ")", "current_function_static_stack_size", "=", "total_frame_size", ";", "if", "(", "!", "UBYTE_INT", "(", "total_frame_size", ")", ")", "{", "pru_add_to_sp", "(", "cfun", "->", "machine", "->", "save_regs_offset", "-", "total_frame_size", ",", "REG_NOTE_MAX", ")", ";", "save_regs_base", "=", "0", ";", "sp_offset", "=", "-", "cfun", "->", "machine", "->", "save_regs_offset", ";", "}", "else", "if", "(", "total_frame_size", ")", "{", "pru_add_to_sp", "(", "-", "total_frame_size", ",", "REG_NOTE_MAX", ")", ";", "save_regs_base", "=", "cfun", "->", "machine", "->", "save_regs_offset", ";", "sp_offset", "=", "0", ";", "}", "else", "save_regs_base", "=", "sp_offset", "=", "0", ";", "regno_start", "=", "0", ";", "save_offset", "=", "save_regs_base", ";", "do", "regno_start", "=", "xbbo_next_reg_cluster", "(", "regno_start", ",", "&", "save_offset", ",", "true", ")", ";", "while", "(", "regno_start", ">=", "0", ")", ";", "if", "(", "frame_pointer_needed", ")", "{", "int", "fp_offset", "=", "total_frame_size", "-", "crtl", "->", "args", ".", "pretend_args_size", "+", "sp_offset", ";", "pru_add3_frame_adjust", "(", "hard_frame_pointer_rtx", ",", "stack_pointer_rtx", ",", "fp_offset", ",", "REG_NOTE_MAX", ")", ";", "}", "if", "(", "sp_offset", ")", "pru_add_to_sp", "(", "sp_offset", ",", "REG_FRAME_RELATED_EXPR", ")", ";", "if", "(", "crtl", "->", "profile", ")", "emit_insn", "(", "gen_blockage", "(", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "function", "prologue", "."], "TS_V_token": ["pru", "0", "0", "0", "0", "0"], "File": "pru", "Func": "pru_expand_prologue", "Target": "pru", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2401, "Length": 190, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "sh_cfun_attr_renesas_p", "(", "void", ")", "{", "return", "sh_attr_renesas_p", "(", "current_function_decl", ")", ";", "}", ""], "natrual_language": ["True", "if", "__attribute__", "(", "(", "renesas", ")", ")", "or", "-mrenesas", ",", "for", "the", "current", "function", "."], "TS_V_token": ["sh"], "File": "sh", "Func": "sh_cfun_attr_renesas_p", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2402, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "rs6000_compute_pressure_classes", "(", "enum", "reg_class", "*", "pressure_classes", ")", "{", "int", "n", ";", "n", "=", "0", ";", "pressure_classes", "[", "n", "++", "]", "=", "GENERAL_REGS", ";", "if", "(", "TARGET_VSX", ")", "pressure_classes", "[", "n", "++", "]", "=", "VSX_REGS", ";", "else", "{", "if", "(", "TARGET_ALTIVEC", ")", "pressure_classes", "[", "n", "++", "]", "=", "ALTIVEC_REGS", ";", "if", "(", "TARGET_HARD_FLOAT", "&&", "TARGET_FPRS", ")", "pressure_classes", "[", "n", "++", "]", "=", "FLOAT_REGS", ";", "}", "pressure_classes", "[", "n", "++", "]", "=", "CR_REGS", ";", "pressure_classes", "[", "n", "++", "]", "=", "SPECIAL_REGS", ";", "return", "n", ";", "}", ""], "natrual_language": ["Compute", "register", "pressure", "classes", ".", "We", "implement", "the", "target", "hook", "to", "avoid", "IRA", "picking", "something", "like", "GEN_OR_FLOAT_REGS", "as", "a", "pressure", "class", ",", "which", "can", "lead", "to", "incorrect", "estimates", "of", "number", "of", "available", "registers", "and", "therefor", "increased", "register", "pressure/spill", "."], "TS_V_token": ["rs6000", "0"], "File": "rs60006", "Func": "rs6000_compute_pressure_classes", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2403, "Length": 86, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARM64PassConfig", "::", "addILPOpts", "(", ")", "{", "if", "(", "EnableCCMP", ")", "addPass", "(", "createARM64ConditionalCompares", "(", ")", ")", ";", "if", "(", "EnableEarlyIfConvert", ")", "addPass", "(", "&", "EarlyIfConverterID", ")", ";", "if", "(", "EnableStPairSuppress", ")", "addPass", "(", "createARM64StorePairSuppressPass", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Add", "passes", "that", "optimize", "instruction", "level", "parallelism", "for", "out-of-order", "targets", "."], "TS_V_token": ["ARM64", "ARM64", "ARM64", "ARM64"], "File": "ARM64TargetMachine1", "Func": "addILPOpts", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2404, "Length": 43, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "DCPU16FrameLowering", "::", "hasReservedCallFrame", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "!", "MF", ".", "getFrameInfo", "(", ")", "->", "hasVarSizedObjects", "(", ")", ";", "}", ""], "natrual_language": ["hasReservedCallFrame", "-", "Under", "normal", "circumstances", ",", "when", "a", "frame", "pointer", "is", "not", "required", ",", "we", "reserve", "argument", "space", "for", "call", "sites", "in", "the", "function", "immediately", "on", "entry", "to", "the", "current", "function", "."], "TS_V_token": ["Dcpu16", "DCPU16"], "File": "Dcpu16FrameLowering", "Func": "hasReservedCallFrame", "Target": "Dcpu16", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2405, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZFrameLowering", "::", "hasReservedCallFrame", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "true", ";", "}", ""], "natrual_language": ["hasReservedCallFrame", "-", "Under", "normal", "circumstances", ",", "when", "a", "frame", "pointer", "is", "not", "required", ",", "we", "reserve", "argument", "space", "for", "call", "sites", "in", "the", "function", "immediately", "on", "entry", "to", "the", "current", "function", "."], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZFrameLowering (2)", "Func": "hasReservedCallFrame", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2406, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCSymbol", "*", "DLXMCInstLower", "::", "GetExternalSymbolSymbol", "(", "const", "MachineOperand", "&", "MO", ")", "const", "{", "return", "Printer", ".", "GetExternalSymbolSymbol", "(", "MO", ".", "getSymbolName", "(", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "MCSymbol", "for", "the", "specified", "ExternalSymbol", "."], "TS_V_token": ["DLX", "DLX"], "File": "DLXMCInstLower", "Func": "GetExternalSymbolSymbol", "Target": "DLX", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2407, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86CallLowering", "::", "splitToValueTypes", "(", "const", "ArgInfo", "&", "OrigArg", ",", "SmallVectorImpl", "<", "ArgInfo", ">", "&", "SplitArgs", ",", "const", "DataLayout", "&", "DL", ",", "MachineRegisterInfo", "&", "MRI", ",", "SplitArgTy", "PerformArgSplit", ")", "const", "{", "const", "X86TargetLowering", "&", "TLI", "=", "*", "getTLI", "<", "X86TargetLowering", ">", "(", ")", ";", "LLVMContext", "&", "Context", "=", "OrigArg", ".", "Ty", "->", "getContext", "(", ")", ";", "EVT", "VT", "=", "TLI", ".", "getValueType", "(", "DL", ",", "OrigArg", ".", "Ty", ")", ";", "unsigned", "NumParts", "=", "TLI", ".", "getNumRegisters", "(", "Context", ",", "VT", ")", ";", "if", "(", "NumParts", "==", "1", ")", "{", "SplitArgs", ".", "emplace_back", "(", "OrigArg", ".", "Reg", ",", "VT", ".", "getTypeForEVT", "(", "Context", ")", ",", "OrigArg", ".", "Flags", ",", "OrigArg", ".", "IsFixed", ")", ";", "return", ";", "}", "SmallVector", "<", "uint64_t", ",", "4", ">", "BitOffsets", ";", "SmallVector", "<", "unsigned", ",", "8", ">", "SplitRegs", ";", "EVT", "PartVT", "=", "TLI", ".", "getRegisterType", "(", "Context", ",", "VT", ")", ";", "Type", "*", "PartTy", "=", "PartVT", ".", "getTypeForEVT", "(", "Context", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "NumParts", ";", "++", "i", ")", "{", "ArgInfo", "Info", "=", "ArgInfo", "{", "MRI", ".", "createGenericVirtualRegister", "(", "getLLTForType", "(", "*", "PartTy", ",", "DL", ")", ")", ",", "PartTy", ",", "OrigArg", ".", "Flags", "}", ";", "SplitArgs", ".", "push_back", "(", "Info", ")", ";", "PerformArgSplit", "(", "Info", ".", "Reg", ",", "PartVT", ".", "getSizeInBits", "(", ")", "*", "i", ")", ";", "}", "}", ""], "natrual_language": ["Break", "OrigArgInfo", "into", "one", "or", "more", "pieces", "the", "calling", "convention", "can", "process", ",", "returned", "in", "SplitArgs", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "1", "4", "8", "0"], "File": "X86CallLowering28", "Func": "splitToValueTypes", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2408, "Length": 219, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "SystemZSelectionDAGInfo", "::", "EmitTargetCodeForMemcpy", "(", "SelectionDAG", "&", "DAG", ",", "SDLoc", "DL", ",", "SDValue", "Chain", ",", "SDValue", "Dst", ",", "SDValue", "Src", ",", "SDValue", "Size", ",", "unsigned", "Align", ",", "bool", "IsVolatile", ",", "bool", "AlwaysInline", ",", "MachinePointerInfo", "DstPtrInfo", ",", "MachinePointerInfo", "SrcPtrInfo", ")", "const", "{", "if", "(", "IsVolatile", ")", "return", "SDValue", "(", ")", ";", "if", "(", "auto", "*", "CSize", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Size", ")", ")", "return", "emitMemMem", "(", "DAG", ",", "DL", ",", "SystemZISD", "::", "MVC", ",", "SystemZISD", "::", "MVC_LOOP", ",", "Chain", ",", "Dst", ",", "Src", ",", "CSize", "->", "getZExtValue", "(", ")", ")", ";", "return", "SDValue", "(", ")", ";", "}", ""], "natrual_language": ["Emit", "target-specific", "code", "that", "performs", "a", "memcpy", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZISD::MVC", "SystemZISD::MVC_LOOP"], "File": "SystemZSelectionDAGInfo (2)", "Func": "EmitTargetCodeForMemcpy", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2409, "Length": 98, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "ConstraintWeight", "ARMTargetLowering", "::", "getSingleConstraintMatchWeight", "(", "AsmOperandInfo", "&", "info", ",", "const", "char", "*", "constraint", ")", "const", "{", "ConstraintWeight", "weight", "=", "CW_Invalid", ";", "Value", "*", "CallOperandVal", "=", "info", ".", "CallOperandVal", ";", "if", "(", "CallOperandVal", "==", "NULL", ")", "return", "CW_Default", ";", "Type", "*", "type", "=", "CallOperandVal", "->", "getType", "(", ")", ";", "switch", "(", "*", "constraint", ")", "{", "default", ":", "weight", "=", "TargetLowering", "::", "getSingleConstraintMatchWeight", "(", "info", ",", "constraint", ")", ";", "break", ";", "case", "'l'", ":", "if", "(", "type", "->", "isIntegerTy", "(", ")", ")", "{", "if", "(", "Subtarget", "->", "isThumb", "(", ")", ")", "weight", "=", "CW_SpecificReg", ";", "else", "weight", "=", "CW_Register", ";", "}", "break", ";", "case", "'w'", ":", "if", "(", "type", "->", "isFloatingPointTy", "(", ")", ")", "weight", "=", "CW_Register", ";", "break", ";", "}", "return", "weight", ";", "}", ""], "natrual_language": ["Examine", "constraint", "string", "and", "operand", "type", "and", "determine", "a", "weight", "value", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMISelLowering (2)1", "Func": "getSingleConstraintMatchWeight", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2410, "Length": 125, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "immed_offset_p", "(", "rtx", "mem_rtx", ")", "{", "gcc_assert", "(", "MEM_P", "(", "mem_rtx", ")", ")", ";", "rtx", "addr_rtx", "=", "XEXP", "(", "mem_rtx", ",", "0", ")", ";", "if", "(", "REG_P", "(", "addr_rtx", ")", ")", "return", "true", ";", "if", "(", "GET_CODE", "(", "addr_rtx", ")", "==", "PLUS", "&&", "GET_CODE", "(", "XEXP", "(", "addr_rtx", ",", "1", ")", ")", "==", "CONST_INT", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Check", "if", "the", "address", "of", "MEM_RTX", "consists", "of", "a", "base", "register", "and", "an", "immediate", "offset", "."], "TS_V_token": ["nds32", "0", "1"], "File": "nds32-utils", "Func": "immed_offset_p", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2411, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "emitSPUpdate", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "MBBI", ",", "unsigned", "StackPtr", ",", "int64_t", "NumBytes", ",", "bool", "Is64Bit", ",", "const", "TargetInstrInfo", "&", "TII", ")", "{", "bool", "isSub", "=", "NumBytes", "<", "0", ";", "uint64_t", "Offset", "=", "isSub", "?", "-", "NumBytes", ":", "NumBytes", ";", "unsigned", "Opc", "=", "isSub", "?", "(", "(", "Offset", "<", "128", ")", "?", "(", "Is64Bit", "?", "X86", "::", "SUB64ri8", ":", "X86", "::", "SUB32ri8", ")", ":", "(", "Is64Bit", "?", "X86", "::", "SUB64ri32", ":", "X86", "::", "SUB32ri", ")", ")", ":", "(", "(", "Offset", "<", "128", ")", "?", "(", "Is64Bit", "?", "X86", "::", "ADD64ri8", ":", "X86", "::", "ADD32ri8", ")", ":", "(", "Is64Bit", "?", "X86", "::", "ADD64ri32", ":", "X86", "::", "ADD32ri", ")", ")", ";", "uint64_t", "Chunk", "=", "(", "1LL", "<<", "31", ")", "-", "1", ";", "DebugLoc", "DL", "=", "MBB", ".", "findDebugLoc", "(", "MBBI", ")", ";", "while", "(", "Offset", ")", "{", "uint64_t", "ThisVal", "=", "(", "Offset", ">", "Chunk", ")", "?", "Chunk", ":", "Offset", ";", "MachineInstr", "*", "MI", "=", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "Opc", ")", ",", "StackPtr", ")", ".", "addReg", "(", "StackPtr", ")", ".", "addImm", "(", "ThisVal", ")", ";", "MI", "->", "getOperand", "(", "3", ")", ".", "setIsDead", "(", ")", ";", "Offset", "-=", "ThisVal", ";", "}", "}", ""], "natrual_language": ["Emit", "a", "series", "of", "instructions", "to", "increment", "/", "decrement", "the", "stack", "pointer", "by", "a", "constant", "value", "."], "TS_V_token": ["X86", "0", "128", "X86::SUB64ri8", "X86::SUB32ri8", "X86::SUB64ri32", "X86::SUB32ri", "128", "X86::ADD64ri8", "X86::ADD32ri8", "X86::ADD64ri32", "X86::ADD32ri", "1LL", "31", "1", "3"], "File": "X86RegisterInfo11", "Func": "emitSPUpdate", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2412, "Length": 203, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "assignCalleeSavedSpillSlots", "(", "MachineFunction", "&", "MF", ",", "const", "TargetRegisterInfo", "*", "TRI", ",", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ")", "const", "override", "{", "std", "::", "reverse", "(", "CSI", ".", "begin", "(", ")", ",", "CSI", ".", "end", "(", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["This", "function", "will", "assign", "callee", "saved", "gprs", "to", "volatile", "vector", "registers", "for", "prologue", "spills", "when", "applicable", "."], "TS_V_token": ["CSKY"], "File": "CSKYFrameLowering1", "Func": "assignCalleeSavedSpillSlots", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2413, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "SDValue", ",", "SDValue", ">", "SystemZSelectionDAGInfo", "::", "EmitTargetCodeForStrcpy", "(", "SelectionDAG", "&", "DAG", ",", "SDLoc", "DL", ",", "SDValue", "Chain", ",", "SDValue", "Dest", ",", "SDValue", "Src", ",", "MachinePointerInfo", "DestPtrInfo", ",", "MachinePointerInfo", "SrcPtrInfo", ",", "bool", "isStpcpy", ")", "const", "{", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "Dest", ".", "getValueType", "(", ")", ",", "MVT", "::", "Other", ")", ";", "SDValue", "EndDest", "=", "DAG", ".", "getNode", "(", "SystemZISD", "::", "STPCPY", ",", "DL", ",", "VTs", ",", "Chain", ",", "Dest", ",", "Src", ",", "DAG", ".", "getConstant", "(", "0", ",", "MVT", "::", "i32", ")", ")", ";", "return", "std", "::", "make_pair", "(", "isStpcpy", "?", "EndDest", ":", "Dest", ",", "EndDest", ".", "getValue", "(", "1", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "target-specific", "code", "that", "performs", "a", "strcpy", "or", "stpcpy", ",", "in", "cases", "where", "that", "is", "faster", "than", "a", "libcall", "."], "TS_V_token": ["SystemZ", "SystemZ", "MVT::Other", "SystemZISD::STPCPY", "0", "MVT::i32", "1"], "File": "SystemZSelectionDAGInfo1", "Func": "EmitTargetCodeForStrcpy", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2414, "Length": 110, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "EmitInstruction", "(", "uint64_t", "Val", ",", "unsigned", "Size", ",", "raw_ostream", "&", "OS", ")", "const", "{", "if", "(", "IsLittleEndian", "&&", "Size", "==", "4", "&&", "IsMicroMips", ")", "{", "EmitInstruction", "(", "Val", ">>", "16", ",", "2", ",", "OS", ")", ";", "EmitInstruction", "(", "Val", ",", "2", ",", "OS", ")", ";", "}", "else", "{", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "Size", ";", "++", "i", ")", "{", "unsigned", "Shift", "=", "IsLittleEndian", "?", "i", "*", "8", ":", "(", "Size", "-", "1", "-", "i", ")", "*", "8", ";", "EmitByte", "(", "(", "Val", ">>", "Shift", ")", "&", "0xff", ",", "OS", ")", ";", "}", "}", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["Mips", "4", "Mips", "16", "2", "2", "0", "8", "1", "8", "0xff"], "File": "MipsMCCodeEmitter12", "Func": "EmitInstruction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2415, "Length": 99, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "AARCH64_EXPAND_PSEUDO_NAME", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["AArch64"], "File": "AArch64ExpandPseudoInsts (2)1", "Func": "getPassName", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2416, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getReg", "(", ")", "const", "override", "{", "assert", "(", "Kind", "==", "k_Register", "&&", "\"Invalid access!\"", ")", ";", "return", "Reg", ".", "Num", ";", "}", ""], "natrual_language": ["Returns", "the", "register", "associated", "with", "this", "edge", "."], "TS_V_token": ["LC2200", "\"Invalid access!\""], "File": "LC2200AsmParser", "Func": "getReg", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2417, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86AsmBackend", "::", "getMaximumNopSize", "(", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "if", "(", "STI", ".", "hasFeature", "(", "X86", "::", "Mode16Bit", ")", ")", "return", "4", ";", "if", "(", "!", "STI", ".", "hasFeature", "(", "X86", "::", "FeatureNOPL", ")", "&&", "!", "STI", ".", "hasFeature", "(", "X86", "::", "Mode64Bit", ")", ")", "return", "1", ";", "if", "(", "STI", ".", "getFeatureBits", "(", ")", "[", "X86", "::", "TuningFast7ByteNOP", "]", ")", "return", "7", ";", "if", "(", "STI", ".", "getFeatureBits", "(", ")", "[", "X86", "::", "TuningFast15ByteNOP", "]", ")", "return", "15", ";", "if", "(", "STI", ".", "getFeatureBits", "(", ")", "[", "X86", "::", "TuningFast11ByteNOP", "]", ")", "return", "11", ";", "return", "10", ";", "}", ""], "natrual_language": ["Returns", "the", "maximum", "size", "of", "a", "nop", "in", "bytes", "on", "this", "target", "."], "TS_V_token": ["X86", "X86", "X86::Mode16Bit", "4", "X86::FeatureNOPL", "X86::Mode64Bit", "1", "X86::TuningFast7ByteNOP", "7", "X86::TuningFast15ByteNOP", "15", "X86::TuningFast11ByteNOP", "11", "10"], "File": "X86AsmBackend", "Func": "getMaximumNopSize", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2418, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "*", "MipsSETargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MachineInstr", "&", "MI", ",", "MachineBasicBlock", "*", "BB", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "MipsTargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MI", ",", "BB", ")", ";", "case", "Mips", "::", "BPOSGE32_PSEUDO", ":", "return", "emitBPOSGE32", "(", "MI", ",", "BB", ")", ";", "case", "Mips", "::", "SNZ_B_PSEUDO", ":", "return", "emitMSACBranchPseudo", "(", "MI", ",", "BB", ",", "Mips", "::", "BNZ_B", ")", ";", "case", "Mips", "::", "SNZ_H_PSEUDO", ":", "return", "emitMSACBranchPseudo", "(", "MI", ",", "BB", ",", "Mips", "::", "BNZ_H", ")", ";", "case", "Mips", "::", "SNZ_W_PSEUDO", ":", "return", "emitMSACBranchPseudo", "(", "MI", ",", "BB", ",", "Mips", "::", "BNZ_W", ")", ";", "case", "Mips", "::", "SNZ_D_PSEUDO", ":", "return", "emitMSACBranchPseudo", "(", "MI", ",", "BB", ",", "Mips", "::", "BNZ_D", ")", ";", "case", "Mips", "::", "SNZ_V_PSEUDO", ":", "return", "emitMSACBranchPseudo", "(", "MI", ",", "BB", ",", "Mips", "::", "BNZ_V", ")", ";", "case", "Mips", "::", "SZ_B_PSEUDO", ":", "return", "emitMSACBranchPseudo", "(", "MI", ",", "BB", ",", "Mips", "::", "BZ_B", ")", ";", "case", "Mips", "::", "SZ_H_PSEUDO", ":", "return", "emitMSACBranchPseudo", "(", "MI", ",", "BB", ",", "Mips", "::", "BZ_H", ")", ";", "case", "Mips", "::", "SZ_W_PSEUDO", ":", "return", "emitMSACBranchPseudo", "(", "MI", ",", "BB", ",", "Mips", "::", "BZ_W", ")", ";", "case", "Mips", "::", "SZ_D_PSEUDO", ":", "return", "emitMSACBranchPseudo", "(", "MI", ",", "BB", ",", "Mips", "::", "BZ_D", ")", ";", "case", "Mips", "::", "SZ_V_PSEUDO", ":", "return", "emitMSACBranchPseudo", "(", "MI", ",", "BB", ",", "Mips", "::", "BZ_V", ")", ";", "case", "Mips", "::", "COPY_FW_PSEUDO", ":", "return", "emitCOPY_FW", "(", "MI", ",", "BB", ")", ";", "case", "Mips", "::", "COPY_FD_PSEUDO", ":", "return", "emitCOPY_FD", "(", "MI", ",", "BB", ")", ";", "case", "Mips", "::", "INSERT_FW_PSEUDO", ":", "return", "emitINSERT_FW", "(", "MI", ",", "BB", ")", ";", "case", "Mips", "::", "INSERT_FD_PSEUDO", ":", "return", "emitINSERT_FD", "(", "MI", ",", "BB", ")", ";", "case", "Mips", "::", "INSERT_B_VIDX_PSEUDO", ":", "case", "Mips", "::", "INSERT_B_VIDX64_PSEUDO", ":", "return", "emitINSERT_DF_VIDX", "(", "MI", ",", "BB", ",", "1", ",", "false", ")", ";", "case", "Mips", "::", "INSERT_H_VIDX_PSEUDO", ":", "case", "Mips", "::", "INSERT_H_VIDX64_PSEUDO", ":", "return", "emitINSERT_DF_VIDX", "(", "MI", ",", "BB", ",", "2", ",", "false", ")", ";", "case", "Mips", "::", "INSERT_W_VIDX_PSEUDO", ":", "case", "Mips", "::", "INSERT_W_VIDX64_PSEUDO", ":", "return", "emitINSERT_DF_VIDX", "(", "MI", ",", "BB", ",", "4", ",", "false", ")", ";", "case", "Mips", "::", "INSERT_D_VIDX_PSEUDO", ":", "case", "Mips", "::", "INSERT_D_VIDX64_PSEUDO", ":", "return", "emitINSERT_DF_VIDX", "(", "MI", ",", "BB", ",", "8", ",", "false", ")", ";", "case", "Mips", "::", "INSERT_FW_VIDX_PSEUDO", ":", "case", "Mips", "::", "INSERT_FW_VIDX64_PSEUDO", ":", "return", "emitINSERT_DF_VIDX", "(", "MI", ",", "BB", ",", "4", ",", "true", ")", ";", "case", "Mips", "::", "INSERT_FD_VIDX_PSEUDO", ":", "case", "Mips", "::", "INSERT_FD_VIDX64_PSEUDO", ":", "return", "emitINSERT_DF_VIDX", "(", "MI", ",", "BB", ",", "8", ",", "true", ")", ";", "case", "Mips", "::", "FILL_FW_PSEUDO", ":", "return", "emitFILL_FW", "(", "MI", ",", "BB", ")", ";", "case", "Mips", "::", "FILL_FD_PSEUDO", ":", "return", "emitFILL_FD", "(", "MI", ",", "BB", ")", ";", "case", "Mips", "::", "FEXP2_W_1_PSEUDO", ":", "return", "emitFEXP2_W_1", "(", "MI", ",", "BB", ")", ";", "case", "Mips", "::", "FEXP2_D_1_PSEUDO", ":", "return", "emitFEXP2_D_1", "(", "MI", ",", "BB", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'usesCustomInserter", "'", "flag", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips::BPOSGE32_PSEUDO", "Mips::SNZ_B_PSEUDO", "Mips::BNZ_B", "Mips::SNZ_H_PSEUDO", "Mips::BNZ_H", "Mips::SNZ_W_PSEUDO", "Mips::BNZ_W", "Mips::SNZ_D_PSEUDO", "Mips::BNZ_D", "Mips::SNZ_V_PSEUDO", "Mips::BNZ_V", "Mips::SZ_B_PSEUDO", "Mips::BZ_B", "Mips::SZ_H_PSEUDO", "Mips::BZ_H", "Mips::SZ_W_PSEUDO", "Mips::BZ_W", "Mips::SZ_D_PSEUDO", "Mips::BZ_D", "Mips::SZ_V_PSEUDO", "Mips::BZ_V", "Mips::COPY_FW_PSEUDO", "Mips::COPY_FD_PSEUDO", "Mips::INSERT_FW_PSEUDO", "Mips::INSERT_FD_PSEUDO", "Mips::INSERT_B_VIDX_PSEUDO", "Mips::INSERT_B_VIDX64_PSEUDO", "1", "Mips::INSERT_H_VIDX_PSEUDO", "Mips::INSERT_H_VIDX64_PSEUDO", "2", "Mips::INSERT_W_VIDX_PSEUDO", "Mips::INSERT_W_VIDX64_PSEUDO", "4", "Mips::INSERT_D_VIDX_PSEUDO", "Mips::INSERT_D_VIDX64_PSEUDO", "8", "Mips::INSERT_FW_VIDX_PSEUDO", "Mips::INSERT_FW_VIDX64_PSEUDO", "4", "Mips::INSERT_FD_VIDX_PSEUDO", "Mips::INSERT_FD_VIDX64_PSEUDO", "8", "Mips::FILL_FW_PSEUDO", "Mips::FILL_FD_PSEUDO", "Mips::FEXP2_W_1_PSEUDO", "Mips::FEXP2_D_1_PSEUDO"], "File": "MipsSEISelLowering3", "Func": "EmitInstrWithCustomInserter", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2419, "Length": 458, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "MCInst", "&", "Res", ")", "const", "override", "{", "}", ""], "natrual_language": ["Relax", "the", "instruction", "in", "the", "given", "fragment", "to", "the", "next", "wider", "instruction", "."], "TS_V_token": ["FISC"], "File": "FISCAsmBackend", "Func": "relaxInstruction", "Target": "FISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2420, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "xxspltib_constant_p", "(", "rtx", "op", ",", "machine_mode", "mode", ",", "int", "*", "num_insns_ptr", ",", "int", "*", "constant_ptr", ")", "{", "size_t", "nunits", "=", "GET_MODE_NUNITS", "(", "mode", ")", ";", "size_t", "i", ";", "HOST_WIDE_INT", "value", ";", "rtx", "element", ";", "*", "num_insns_ptr", "=", "-", "1", ";", "*", "constant_ptr", "=", "256", ";", "if", "(", "!", "TARGET_P9_VECTOR", ")", "return", "false", ";", "if", "(", "mode", "==", "VOIDmode", ")", "mode", "=", "GET_MODE", "(", "op", ")", ";", "else", "if", "(", "mode", "!=", "GET_MODE", "(", "op", ")", "&&", "GET_MODE", "(", "op", ")", "!=", "VOIDmode", ")", "return", "false", ";", "if", "(", "GET_CODE", "(", "op", ")", "==", "VEC_DUPLICATE", ")", "{", "if", "(", "mode", "!=", "V16QImode", "&&", "mode", "!=", "V8HImode", "&&", "mode", "!=", "V4SImode", "&&", "mode", "!=", "V2DImode", ")", "return", "false", ";", "element", "=", "XEXP", "(", "op", ",", "0", ")", ";", "if", "(", "!", "CONST_INT_P", "(", "element", ")", ")", "return", "false", ";", "value", "=", "INTVAL", "(", "element", ")", ";", "if", "(", "!", "IN_RANGE", "(", "value", ",", "-", "128", ",", "127", ")", ")", "return", "false", ";", "}", "else", "if", "(", "GET_CODE", "(", "op", ")", "==", "CONST_VECTOR", ")", "{", "if", "(", "mode", "!=", "V16QImode", "&&", "mode", "!=", "V8HImode", "&&", "mode", "!=", "V4SImode", "&&", "mode", "!=", "V2DImode", ")", "return", "false", ";", "element", "=", "CONST_VECTOR_ELT", "(", "op", ",", "0", ")", ";", "if", "(", "!", "CONST_INT_P", "(", "element", ")", ")", "return", "false", ";", "value", "=", "INTVAL", "(", "element", ")", ";", "if", "(", "!", "IN_RANGE", "(", "value", ",", "-", "128", ",", "127", ")", ")", "return", "false", ";", "for", "(", "i", "=", "1", ";", "i", "<", "nunits", ";", "i", "++", ")", "{", "element", "=", "CONST_VECTOR_ELT", "(", "op", ",", "i", ")", ";", "if", "(", "!", "CONST_INT_P", "(", "element", ")", ")", "return", "false", ";", "if", "(", "value", "!=", "INTVAL", "(", "element", ")", ")", "return", "false", ";", "}", "}", "else", "if", "(", "CONST_INT_P", "(", "op", ")", ")", "{", "if", "(", "!", "SCALAR_INT_MODE_P", "(", "mode", ")", ")", "return", "false", ";", "value", "=", "INTVAL", "(", "op", ")", ";", "if", "(", "!", "IN_RANGE", "(", "value", ",", "-", "128", ",", "127", ")", ")", "return", "false", ";", "if", "(", "!", "IN_RANGE", "(", "value", ",", "-", "1", ",", "0", ")", ")", "{", "if", "(", "!", "(", "reg_addr", "[", "mode", "]", ".", "addr_mask", "[", "RELOAD_REG_VMX", "]", "&", "RELOAD_REG_VALID", ")", ")", "return", "false", ";", "if", "(", "EASY_VECTOR_15", "(", "value", ")", ")", "return", "false", ";", "}", "}", "else", "return", "false", ";", "if", "(", "(", "mode", "==", "V4SImode", "||", "mode", "==", "V8HImode", ")", "&&", "!", "IN_RANGE", "(", "value", ",", "-", "1", ",", "0", ")", "&&", "EASY_VECTOR_15", "(", "value", ")", ")", "return", "false", ";", "if", "(", "mode", "==", "V16QImode", ")", "*", "num_insns_ptr", "=", "1", ";", "else", "if", "(", "IN_RANGE", "(", "value", ",", "-", "1", ",", "0", ")", ")", "*", "num_insns_ptr", "=", "1", ";", "else", "*", "num_insns_ptr", "=", "2", ";", "*", "constant_ptr", "=", "(", "int", ")", "value", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "OP", "is", "of", "the", "given", "MODE", "and", "can", "be", "synthesized", "with", "ISA", "3.0", "instructions", "(", "xxspltib", ",", "vupkhsb/vextsb2w/vextb2d", ")", ".", "Return", "the", "number", "of", "instructions", "needed", "(", "1", "or", "2", ")", "into", "the", "address", "pointed", "via", "NUM_INSNS_PTR", ".", "Return", "the", "constant", "that", "is", "being", "split", "via", "CONSTANT_PTR", "."], "TS_V_token": ["powerpcspe", "1", "256", "0", "128", "127", "0", "128", "127", "1", "128", "127", "1", "0", "1", "0", "1", "1", "0", "1", "2"], "File": "powerpcspe", "Func": "xxspltib_constant_p", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2421, "Length": 456, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SHUXIInstPrinter", "::", "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": ["SHUXI", "SHUXI"], "File": "SHUXIInstPrinter", "Func": "printInst", "Target": "SHUXI", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2422, "Length": 38, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMAsmParser", "::", "MatchAndEmitInstruction", "(", "SMLoc", "IDLoc", ",", "SmallVectorImpl", "<", "MCParsedAsmOperand", "*", ">", "&", "Operands", ",", "MCStreamer", "&", "Out", ")", "{", "MCInst", "Inst", ";", "unsigned", "ErrorInfo", ";", "unsigned", "MatchResult", ";", "MatchResult", "=", "MatchInstructionImpl", "(", "Operands", ",", "Inst", ",", "ErrorInfo", ")", ";", "switch", "(", "MatchResult", ")", "{", "default", ":", "break", ";", "case", "Match_Success", ":", "if", "(", "validateInstruction", "(", "Inst", ",", "Operands", ")", ")", "{", "forwardITPosition", "(", ")", ";", "return", "true", ";", "}", "while", "(", "processInstruction", "(", "Inst", ",", "Operands", ")", ")", ";", "forwardITPosition", "(", ")", ";", "if", "(", "Inst", ".", "getOpcode", "(", ")", "==", "ARM", "::", "ITasm", ")", "return", "false", ";", "Inst", ".", "setLoc", "(", "IDLoc", ")", ";", "Out", ".", "EmitInstruction", "(", "Inst", ")", ";", "return", "false", ";", "case", "Match_MissingFeature", ":", "Error", "(", "IDLoc", ",", "\"instruction requires a CPU feature not currently enabled\"", ")", ";", "return", "true", ";", "case", "Match_InvalidOperand", ":", "{", "SMLoc", "ErrorLoc", "=", "IDLoc", ";", "if", "(", "ErrorInfo", "!=", "~", "0U", ")", "{", "if", "(", "ErrorInfo", ">=", "Operands", ".", "size", "(", ")", ")", "return", "Error", "(", "IDLoc", ",", "\"too few operands for instruction\"", ")", ";", "ErrorLoc", "=", "(", "(", "ARMOperand", "*", ")", "Operands", "[", "ErrorInfo", "]", ")", "->", "getStartLoc", "(", ")", ";", "if", "(", "ErrorLoc", "==", "SMLoc", "(", ")", ")", "ErrorLoc", "=", "IDLoc", ";", "}", "return", "Error", "(", "ErrorLoc", ",", "\"invalid operand for instruction\"", ")", ";", "}", "case", "Match_MnemonicFail", ":", "return", "Error", "(", "IDLoc", ",", "\"invalid instruction\"", ",", "(", "(", "ARMOperand", "*", ")", "Operands", "[", "0", "]", ")", "->", "getLocRange", "(", ")", ")", ";", "case", "Match_ConversionFail", ":", "return", "true", ";", "case", "Match_RequiresNotITBlock", ":", "return", "Error", "(", "IDLoc", ",", "\"flag setting instruction only valid outside IT block\"", ")", ";", "case", "Match_RequiresITBlock", ":", "return", "Error", "(", "IDLoc", ",", "\"instruction only valid inside IT block\"", ")", ";", "case", "Match_RequiresV6", ":", "return", "Error", "(", "IDLoc", ",", "\"instruction variant requires ARMv6 or later\"", ")", ";", "case", "Match_RequiresThumb2", ":", "return", "Error", "(", "IDLoc", ",", "\"instruction variant requires Thumb2\"", ")", ";", "}", "llvm_unreachable", "(", "\"Implement any new match types added!\"", ")", ";", "}", ""], "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": ["ARM", "ARM", "ARM::ITasm", "\"instruction requires a CPU feature not currently enabled\"", "0U", "\"too few operands for instruction\"", "ARM", "\"invalid operand for instruction\"", "\"invalid instruction\"", "ARM", "0", "\"flag setting instruction only valid outside IT block\"", "\"instruction only valid inside IT block\"", "\"instruction variant requires ARMv6 or later\"", "\"instruction variant requires Thumb2\"", "\"Implement any new match types added!\""], "File": "ARMAsmParser86", "Func": "MatchAndEmitInstruction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2423, "Length": 287, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "struct", "machine_function", "*", "ix86_init_machine_status", "(", "void", ")", "{", "struct", "machine_function", "*", "f", ";", "f", "=", "ggc_alloc_cleared", "(", "sizeof", "(", "struct", "machine_function", ")", ")", ";", "f", "->", "use_fast_prologue_epilogue_nregs", "=", "-", "1", ";", "return", "f", ";", "}", ""], "natrual_language": ["Clear", "stack", "slot", "assignments", "remembered", "from", "previous", "functions", ".", "This", "is", "called", "from", "INIT_EXPANDERS", "once", "before", "RTL", "is", "emitted", "for", "each", "function", "."], "TS_V_token": ["i386", "1"], "File": "i3863", "Func": "ix86_init_machine_status", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2424, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_xscale_rtx_costs", "(", "rtx", "x", ",", "enum", "rtx_code", "code", ",", "enum", "rtx_code", "outer_code", ",", "int", "*", "total", ",", "bool", "speed", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "x", ")", ";", "if", "(", "TARGET_THUMB", ")", "{", "*", "total", "=", "thumb1_rtx_costs", "(", "x", ",", "code", ",", "outer_code", ")", ";", "return", "true", ";", "}", "switch", "(", "code", ")", "{", "case", "COMPARE", ":", "if", "(", "GET_CODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", "!=", "MULT", ")", "return", "arm_rtx_costs_1", "(", "x", ",", "outer_code", ",", "total", ",", "speed", ")", ";", "*", "total", "=", "COSTS_N_INSNS", "(", "3", ")", ";", "return", "false", ";", "case", "MULT", ":", "if", "(", "mode", "==", "DImode", "&&", "(", "GET_CODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", "==", "GET_CODE", "(", "XEXP", "(", "x", ",", "1", ")", ")", ")", "&&", "(", "GET_CODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", "==", "ZERO_EXTEND", "||", "GET_CODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", "==", "SIGN_EXTEND", ")", ")", "{", "*", "total", "=", "COSTS_N_INSNS", "(", "2", ")", ";", "return", "false", ";", "}", "if", "(", "mode", "==", "DImode", ")", "{", "*", "total", "=", "COSTS_N_INSNS", "(", "5", ")", ";", "return", "false", ";", "}", "if", "(", "CONST_INT_P", "(", "XEXP", "(", "x", ",", "1", ")", ")", ")", "{", "unsigned", "HOST_WIDE_INT", "i", "=", "INTVAL", "(", "XEXP", "(", "x", ",", "1", ")", ")", ";", "int", "cost", "=", "1", ";", "unsigned", "HOST_WIDE_INT", "masked_const", ";", "if", "(", "i", "&", "0x80000000", ")", "i", "=", "~", "i", ";", "i", "&=", "(", "unsigned", "HOST_WIDE_INT", ")", "0xffffffff", ";", "masked_const", "=", "i", "&", "0xffff8000", ";", "if", "(", "masked_const", "!=", "0", ")", "{", "cost", "++", ";", "masked_const", "=", "i", "&", "0xf8000000", ";", "if", "(", "masked_const", "!=", "0", ")", "cost", "++", ";", "}", "*", "total", "=", "COSTS_N_INSNS", "(", "cost", ")", ";", "return", "false", ";", "}", "if", "(", "mode", "==", "SImode", ")", "{", "*", "total", "=", "COSTS_N_INSNS", "(", "3", ")", ";", "return", "false", ";", "}", "*", "total", "=", "COSTS_N_INSNS", "(", "20", ")", ";", "return", "false", ";", "default", ":", "return", "arm_rtx_costs_1", "(", "x", ",", "outer_code", ",", "total", ",", "speed", ")", ";", "}", "}", ""], "natrual_language": ["RTX", "cost", "for", "XScale", "CPUs", ".", "Thumb-2", "is", "not", "supported", "on", "any", "xscale", "cores", ",", "so", "it", "can", "be", "ignored", "."], "TS_V_token": ["arm", "0", "3", "0", "1", "0", "0", "2", "5", "1", "1", "1", "0x80000000", "0xffffffff", "0xffff8000", "0", "0xf8000000", "0", "3", "20"], "File": "arm4", "Func": "arm_xscale_rtx_costs", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2425, "Length": 331, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StackOffset", "AArch64FrameLowering", "::", "getNonLocalFrameIndexReference", "(", "const", "MachineFunction", "&", "MF", ",", "int", "FI", ")", "const", "{", "return", "StackOffset", "::", "getFixed", "(", "getSEHFrameIndexOffset", "(", "MF", ",", "FI", ")", ")", ";", "}", ""], "natrual_language": ["getNonLocalFrameIndexReference", "-", "This", "method", "returns", "the", "offset", "used", "to", "reference", "a", "frame", "index", "location", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64FrameLowering (2)1", "Func": "getNonLocalFrameIndexReference", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2426, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "LanaiAsmParser", "::", "ParseInstruction", "(", "ParseInstructionInfo", "&", ",", "StringRef", "Name", ",", "SMLoc", "NameLoc", ",", "OperandVector", "&", "Operands", ")", "{", "StringRef", "Mnemonic", "=", "splitMnemonic", "(", "Name", ",", "NameLoc", ",", "&", "Operands", ")", ";", "if", "(", "Lexer", ".", "is", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "return", "false", ";", "if", "(", "parseOperand", "(", "&", "Operands", ",", "Mnemonic", ")", "!=", "MatchOperand_Success", ")", "return", "true", ";", "if", "(", "Lexer", ".", "is", "(", "AsmToken", "::", "EndOfStatement", ")", "&&", "Name", "==", "\"st\"", "&&", "Operands", ".", "size", "(", ")", "==", "2", ")", "{", "Operands", ".", "erase", "(", "Operands", ".", "begin", "(", ")", ",", "Operands", ".", "begin", "(", ")", "+", "1", ")", ";", "Operands", ".", "insert", "(", "Operands", ".", "begin", "(", ")", ",", "LanaiOperand", "::", "CreateToken", "(", "\"s\"", ",", "NameLoc", ")", ")", ";", "Operands", ".", "insert", "(", "Operands", ".", "begin", "(", ")", "+", "1", ",", "LanaiOperand", "::", "createImm", "(", "MCConstantExpr", "::", "create", "(", "LPCC", "::", "ICC_T", ",", "getContext", "(", ")", ")", ",", "NameLoc", ",", "NameLoc", ")", ")", ";", "}", "if", "(", "Lexer", ".", "is", "(", "AsmToken", "::", "EndOfStatement", ")", "&&", "Name", ".", "startswith", "(", "\"bt\"", ")", "&&", "Operands", ".", "size", "(", ")", "==", "3", ")", "{", "Operands", ".", "erase", "(", "Operands", ".", "begin", "(", ")", ",", "Operands", ".", "begin", "(", ")", "+", "2", ")", ";", "Operands", ".", "insert", "(", "Operands", ".", "begin", "(", ")", ",", "LanaiOperand", "::", "CreateToken", "(", "\"bt\"", ",", "NameLoc", ")", ")", ";", "}", "while", "(", "Lexer", ".", "isNot", "(", "AsmToken", "::", "EndOfStatement", ")", "&&", "Lexer", ".", "is", "(", "AsmToken", "::", "Comma", ")", ")", "{", "Lex", "(", ")", ";", "if", "(", "parseOperand", "(", "&", "Operands", ",", "Mnemonic", ")", "!=", "MatchOperand_Success", ")", "return", "true", ";", "}", "if", "(", "IsMemoryAssignmentError", "(", "Operands", ")", ")", "{", "Error", "(", "Parser", ".", "getTok", "(", ")", ".", "getLoc", "(", ")", ",", "\"the destination register can't equal the base register in an \"", "\"instruction that modifies the base register.\"", ")", ";", "return", "true", ";", "}", "if", "(", "MaybePredicatedInst", "(", "Operands", ")", ")", "{", "Operands", ".", "insert", "(", "Operands", ".", "begin", "(", ")", "+", "1", ",", "LanaiOperand", "::", "createImm", "(", "MCConstantExpr", "::", "create", "(", "LPCC", "::", "ICC_T", ",", "getContext", "(", ")", ")", ",", "NameLoc", ",", "NameLoc", ")", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["ParseInstruction", "-", "Parse", "one", "assembly", "instruction", "."], "TS_V_token": ["Lanai", "Lanai", "\"st\"", "2", "1", "LanaiOperand::CreateToken", "\"s\"", "1", "LanaiOperand::createImm", "\"bt\"", "3", "2", "LanaiOperand::CreateToken", "\"bt\"", "\"the destination register can't equal the base register in an \"", "\"instruction that modifies the base register.\"", "1", "LanaiOperand::createImm"], "File": "LanaiAsmParser (2)", "Func": "ParseInstruction", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2427, "Length": 344, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCTargetLowering", "::", "LowerAsmOperandForConstraint", "(", "SDValue", "Op", ",", "std", "::", "string", "&", "Constraint", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "Ops", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SDValue", "Result", ";", "if", "(", "Constraint", ".", "length", "(", ")", ">", "1", ")", "return", ";", "char", "Letter", "=", "Constraint", "[", "0", "]", ";", "switch", "(", "Letter", ")", "{", "default", ":", "break", ";", "case", "'I'", ":", "case", "'J'", ":", "case", "'K'", ":", "case", "'L'", ":", "case", "'M'", ":", "case", "'N'", ":", "case", "'O'", ":", "case", "'P'", ":", "{", "ConstantSDNode", "*", "CST", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ")", ";", "if", "(", "!", "CST", ")", "return", ";", "int64_t", "Value", "=", "CST", "->", "getSExtValue", "(", ")", ";", "EVT", "TCVT", "=", "MVT", "::", "i64", ";", "switch", "(", "Letter", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown constraint letter!\"", ")", ";", "case", "'I'", ":", "if", "(", "isInt", "<", "16", ">", "(", "Value", ")", ")", "Result", "=", "DAG", ".", "getTargetConstant", "(", "Value", ",", "TCVT", ")", ";", "break", ";", "case", "'J'", ":", "if", "(", "isShiftedUInt", "<", "16", ",", "16", ">", "(", "Value", ")", ")", "Result", "=", "DAG", ".", "getTargetConstant", "(", "Value", ",", "TCVT", ")", ";", "break", ";", "case", "'L'", ":", "if", "(", "isShiftedInt", "<", "16", ",", "16", ">", "(", "Value", ")", ")", "Result", "=", "DAG", ".", "getTargetConstant", "(", "Value", ",", "TCVT", ")", ";", "break", ";", "case", "'K'", ":", "if", "(", "isUInt", "<", "16", ">", "(", "Value", ")", ")", "Result", "=", "DAG", ".", "getTargetConstant", "(", "Value", ",", "TCVT", ")", ";", "break", ";", "case", "'M'", ":", "if", "(", "Value", ">", "31", ")", "Result", "=", "DAG", ".", "getTargetConstant", "(", "Value", ",", "TCVT", ")", ";", "break", ";", "case", "'N'", ":", "if", "(", "Value", ">", "0", "&&", "isPowerOf2_64", "(", "Value", ")", ")", "Result", "=", "DAG", ".", "getTargetConstant", "(", "Value", ",", "TCVT", ")", ";", "break", ";", "case", "'O'", ":", "if", "(", "Value", "==", "0", ")", "Result", "=", "DAG", ".", "getTargetConstant", "(", "Value", ",", "TCVT", ")", ";", "break", ";", "case", "'P'", ":", "if", "(", "isInt", "<", "16", ">", "(", "-", "Value", ")", ")", "Result", "=", "DAG", ".", "getTargetConstant", "(", "Value", ",", "TCVT", ")", ";", "break", ";", "}", "break", ";", "}", "}", "if", "(", "Result", ".", "getNode", "(", ")", ")", "{", "Ops", ".", "push_back", "(", "Result", ")", ";", "return", ";", "}", "TargetLowering", "::", "LowerAsmOperandForConstraint", "(", "Op", ",", "Constraint", ",", "Ops", ",", "DAG", ")", ";", "}", ""], "natrual_language": ["Lower", "the", "specified", "operand", "into", "the", "Ops", "vector", "."], "TS_V_token": ["PowerPC", "PPC", "1", "0", "MVT::i64", "\"Unknown constraint letter!\"", "16", "16", "16", "16", "16", "16", "31", "0", "0", "16"], "File": "PPCISelLowering8", "Func": "LowerAsmOperandForConstraint", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2428, "Length": 377, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "moxie_setup_incoming_varargs", "(", "cumulative_args_t", "cum_v", ",", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "tree", "type", "ATTRIBUTE_UNUSED", ",", "int", "*", "pretend_size", ",", "int", "no_rtl", ")", "{", "CUMULATIVE_ARGS", "*", "cum", "=", "get_cumulative_args", "(", "cum_v", ")", ";", "int", "regno", ";", "int", "regs", "=", "8", "-", "*", "cum", ";", "*", "pretend_size", "=", "regs", "<", "0", "?", "0", ":", "GET_MODE_SIZE", "(", "SImode", ")", "*", "regs", ";", "if", "(", "no_rtl", ")", "return", ";", "for", "(", "regno", "=", "*", "cum", ";", "regno", "<", "8", ";", "regno", "++", ")", "{", "rtx", "reg", "=", "gen_rtx_REG", "(", "SImode", ",", "regno", ")", ";", "rtx", "slot", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "gen_rtx_REG", "(", "SImode", ",", "ARG_POINTER_REGNUM", ")", ",", "GEN_INT", "(", "UNITS_PER_WORD", "*", "(", "3", "+", "(", "regno", "-", "2", ")", ")", ")", ")", ";", "emit_move_insn", "(", "gen_rtx_MEM", "(", "SImode", ",", "slot", ")", ",", "reg", ")", ";", "}", "}", ""], "natrual_language": ["Worker", "function", "for", "TARGET_SETUP_INCOMING_VARARGS", "."], "TS_V_token": ["moxie", "8", "0", "0", "8", "3", "2"], "File": "moxie2", "Func": "moxie_setup_incoming_varargs", "Target": "moxie", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2429, "Length": 134, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "output_v8plus_shift", "(", "rtx_insn", "*", "insn", ",", "rtx", "*", "operands", ",", "const", "char", "*", "opcode", ")", "{", "static", "char", "asm_code", "[", "60", "]", ";", "if", "(", "which_alternative", "!=", "2", ")", "operands", "[", "3", "]", "=", "operands", "[", "0", "]", ";", "if", "(", "GET_CODE", "(", "operands", "[", "2", "]", ")", "==", "CONST_INT", ")", "operands", "[", "2", "]", "=", "GEN_INT", "(", "INTVAL", "(", "operands", "[", "2", "]", ")", "&", "0x3f", ")", ";", "if", "(", "GET_CODE", "(", "operands", "[", "1", "]", ")", "==", "CONST_INT", ")", "{", "output_asm_insn", "(", "\"mov\\t%1, %3\"", ",", "operands", ")", ";", "}", "else", "{", "output_asm_insn", "(", "\"sllx\\t%H1, 32, %3\"", ",", "operands", ")", ";", "if", "(", "sparc_check_64", "(", "operands", "[", "1", "]", ",", "insn", ")", "<=", "0", ")", "output_asm_insn", "(", "\"srl\\t%L1, 0, %L1\"", ",", "operands", ")", ";", "output_asm_insn", "(", "\"or\\t%L1, %3, %3\"", ",", "operands", ")", ";", "}", "strcpy", "(", "asm_code", ",", "opcode", ")", ";", "if", "(", "which_alternative", "!=", "2", ")", "return", "strcat", "(", "asm_code", ",", "\"\\t%0, %2, %L0\\n\\tsrlx\\t%L0, 32, %H0\"", ")", ";", "else", "return", "strcat", "(", "asm_code", ",", "\"\\t%3, %2, %3\\n\\tsrlx\\t%3, 32, %H0\\n\\tmov\\t%3, %L0\"", ")", ";", "}", ""], "natrual_language": ["Returns", "assembly", "code", "to", "perform", "a", "DImode", "shift", "using", "a", "64-bit", "global", "or", "out", "register", "on", "SPARC-V8+", "."], "TS_V_token": ["sparc", "60", "2", "3", "0", "2", "2", "2", "0x3f", "1", "\"mov\\t%1, %3\"", "\"sllx\\t%H1, 32, %3\"", "1", "0", "\"srl\\t%L1, 0, %L1\"", "\"or\\t%L1, %3, %3\"", "2", "\"\\t%0, %2, %L0\\n\\tsrlx\\t%L0, 32, %H0\"", "\"\\t%3, %2, %3\\n\\tsrlx\\t%3, 32, %H0\\n\\tmov\\t%3, %L0\""], "File": "sparc", "Func": "output_v8plus_shift", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2430, "Length": 162, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getReg", "(", ")", "const", "{", "assert", "(", "(", "Kind", "==", "k_Register", "||", "Kind", "==", "k_CCOut", ")", "&&", "\"Invalid access!\"", ")", ";", "return", "Reg", ".", "RegNum", ";", "}", ""], "natrual_language": ["Returns", "the", "register", "associated", "with", "this", "edge", "."], "TS_V_token": ["ARM", "\"Invalid access!\""], "File": "ARMAsmParser (2)1", "Func": "getReg", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2431, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86ATTInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "OS", ",", "StringRef", "Annot", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "{", "const", "MCInstrDesc", "&", "Desc", "=", "MII", ".", "get", "(", "MI", "->", "getOpcode", "(", ")", ")", ";", "uint64_t", "TSFlags", "=", "Desc", ".", "TSFlags", ";", "if", "(", "CommentStream", ")", "HasCustomInstComment", "=", "EmitAnyX86InstComments", "(", "MI", ",", "*", "CommentStream", ",", "getRegisterName", ")", ";", "unsigned", "Flags", "=", "MI", "->", "getFlags", "(", ")", ";", "if", "(", "(", "TSFlags", "&", "X86II", "::", "LOCK", ")", "||", "(", "Flags", "&", "X86", "::", "IP_HAS_LOCK", ")", ")", "OS", "<<", "\"\\tlock\\t\"", ";", "if", "(", "Flags", "&", "X86", "::", "IP_HAS_REPEAT_NE", ")", "OS", "<<", "\"\\trepne\\t\"", ";", "else", "if", "(", "Flags", "&", "X86", "::", "IP_HAS_REPEAT", ")", "OS", "<<", "\"\\trep\\t\"", ";", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "X86", "::", "CALLpcrel32", "&&", "(", "STI", ".", "getFeatureBits", "(", ")", "[", "X86", "::", "Mode64Bit", "]", ")", ")", "{", "OS", "<<", "\"\\tcallq\\t\"", ";", "printPCRelImm", "(", "MI", ",", "0", ",", "OS", ")", ";", "}", "else", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "X86", "::", "DATA16_PREFIX", "&&", "(", "STI", ".", "getFeatureBits", "(", ")", "[", "X86", "::", "Mode16Bit", "]", ")", ")", "{", "MCInst", "Data32MI", "(", "*", "MI", ")", ";", "Data32MI", ".", "setOpcode", "(", "X86", "::", "DATA32_PREFIX", ")", ";", "printInstruction", "(", "&", "Data32MI", ",", "OS", ")", ";", "}", "else", "if", "(", "!", "printAliasInstr", "(", "MI", ",", "OS", ")", ")", "printInstruction", "(", "MI", ",", "OS", ")", ";", "printAnnotation", "(", "OS", ",", "Annot", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["X86", "X86", "X86", "X86II::LOCK", "X86::IP_HAS_LOCK", "\"\\tlock\\t\"", "X86::IP_HAS_REPEAT_NE", "\"\\trepne\\t\"", "X86::IP_HAS_REPEAT", "\"\\trep\\t\"", "X86::CALLpcrel32", "X86::Mode64Bit", "\"\\tcallq\\t\"", "0", "X86::DATA16_PREFIX", "X86::Mode16Bit", "X86::DATA32_PREFIX"], "File": "X86ATTInstPrinter55", "Func": "printInst", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2432, "Length": 236, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64RegisterInfo", "::", "requiresFrameIndexScavenging", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "requires", "post", "PEI", "scavenging", "of", "registers", "for", "materializing", "frame", "index", "constants", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64RegisterInfo (2)", "Func": "requiresFrameIndexScavenging", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2433, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "Cpu0AsmPrinter", "::", "getCurrentABIString", "(", ")", "const", "{", "switch", "(", "static_cast", "<", "Cpu0TargetMachine", "&", ">", "(", "TM", ")", ".", "getABI", "(", ")", ".", "GetEnumValue", "(", ")", ")", "{", "case", "Cpu0ABIInfo", "::", "ABI", "::", "O32", ":", "return", "\"abiO32\"", ";", "case", "Cpu0ABIInfo", "::", "ABI", "::", "S32", ":", "return", "\"abiS32\"", ";", "default", ":", "llvm_unreachable", "(", "\"Unknown Cpu0 ABI\"", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "Set", "directives", "."], "TS_V_token": ["Cpu0", "Cpu0", "Cpu0", "Cpu0", "ABI::O32", "\"abiO32\"", "Cpu0", "ABI::S32", "\"abiS32\"", "\"Unknown Cpu0 ABI\""], "File": "Cpu0AsmPrinter", "Func": "getCurrentABIString", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2434, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsMCCodeEmitter", "::", "getBranchTarget26OpValueMM", "(", "const", "MCInst", "&", "MI", ",", "unsigned", "OpNo", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "const", "MCOperand", "&", "MO", "=", "MI", ".", "getOperand", "(", "OpNo", ")", ";", "if", "(", "MO", ".", "isImm", "(", ")", ")", "return", "MO", ".", "getImm", "(", ")", ">>", "1", ";", "return", "0", ";", "}", ""], "natrual_language": ["getBranchTarget26OpValueMM", "-", "Return", "binary", "encoding", "of", "the", "branch", "target", "operand", "."], "TS_V_token": ["Mips", "Mips", "1", "0"], "File": "MipsMCCodeEmitter (2)1", "Func": "getBranchTarget26OpValueMM", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2435, "Length": 60, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_class_likely_spilled_p", "(", "reg_class_t", "rclass", ")", "{", "switch", "(", "rclass", ")", "{", "case", "AREG", ":", "case", "DREG", ":", "case", "CREG", ":", "case", "BREG", ":", "case", "AD_REGS", ":", "case", "SIREG", ":", "case", "DIREG", ":", "case", "SSE_FIRST_REG", ":", "case", "FP_TOP_REG", ":", "case", "FP_SECOND_REG", ":", "return", "true", ";", "default", ":", "break", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Implement", "TARGET_CLASS_LIKELY_SPILLED_P", "."], "TS_V_token": ["i386"], "File": "i386", "Func": "ix86_class_likely_spilled_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2436, "Length": 55, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "mips_global_pointer", "(", "void", ")", "{", "unsigned", "int", "regno", ";", "if", "(", "!", "TARGET_ABICALLS", ")", "return", "GLOBAL_POINTER_REGNUM", ";", "if", "(", "!", "TARGET_EXPLICIT_RELOCS", ")", "return", "GLOBAL_POINTER_REGNUM", ";", "if", "(", "current_function_profile", ")", "return", "GLOBAL_POINTER_REGNUM", ";", "if", "(", "current_function_has_nonlocal_goto", ")", "return", "GLOBAL_POINTER_REGNUM", ";", "if", "(", "!", "regs_ever_live", "[", "GLOBAL_POINTER_REGNUM", "]", "&&", "!", "current_function_uses_const_pool", "&&", "!", "mips_function_has_gp_insn", "(", ")", ")", "return", "0", ";", "if", "(", "TARGET_NEWABI", "&&", "current_function_is_leaf", ")", "for", "(", "regno", "=", "GP_REG_FIRST", ";", "regno", "<=", "GP_REG_LAST", ";", "regno", "++", ")", "if", "(", "!", "regs_ever_live", "[", "regno", "]", "&&", "call_used_regs", "[", "regno", "]", "&&", "!", "fixed_regs", "[", "regno", "]", "&&", "regno", "!=", "PIC_FUNCTION_ADDR_REGNUM", ")", "return", "regno", ";", "return", "GLOBAL_POINTER_REGNUM", ";", "}", ""], "natrual_language": ["Return", "the", "register", "that", "should", "be", "used", "as", "the", "global", "pointer", "within", "this", "function", ".", "Return", "0", "if", "the", "function", "does", "n't", "need", "a", "global", "pointer", "."], "TS_V_token": ["mips", "0"], "File": "mips3", "Func": "mips_global_pointer", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2437, "Length": 110, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "rs6000_internal_arg_pointer", "(", "void", ")", "{", "if", "(", "flag_split_stack", "&&", "(", "lookup_attribute", "(", "\"no_split_stack\"", ",", "DECL_ATTRIBUTES", "(", "cfun", "->", "decl", ")", ")", "==", "NULL", ")", ")", "{", "if", "(", "cfun", "->", "machine", "->", "split_stack_arg_pointer", "==", "NULL_RTX", ")", "{", "rtx", "pat", ";", "cfun", "->", "machine", "->", "split_stack_arg_pointer", "=", "gen_reg_rtx", "(", "Pmode", ")", ";", "REG_POINTER", "(", "cfun", "->", "machine", "->", "split_stack_arg_pointer", ")", "=", "1", ";", "pat", "=", "gen_rtx_SET", "(", "cfun", "->", "machine", "->", "split_stack_arg_pointer", ",", "gen_rtx_REG", "(", "Pmode", ",", "12", ")", ")", ";", "push_topmost_sequence", "(", ")", ";", "emit_insn_after", "(", "pat", ",", "get_insns", "(", ")", ")", ";", "pop_topmost_sequence", "(", ")", ";", "}", "rtx", "ret", "=", "plus_constant", "(", "Pmode", ",", "cfun", "->", "machine", "->", "split_stack_arg_pointer", ",", "FIRST_PARM_OFFSET", "(", "current_function_decl", ")", ")", ";", "return", "copy_to_reg", "(", "ret", ")", ";", "}", "return", "virtual_incoming_args_rtx", ";", "}", ""], "natrual_language": ["Return", "the", "internal", "arg", "pointer", "used", "for", "function", "incoming", "arguments", ".", "When", "-fsplit-stack", ",", "the", "arg", "pointer", "is", "r12", "so", "we", "need", "to", "copy", "it", "to", "a", "pseudo", "in", "order", "for", "it", "to", "be", "preserved", "over", "calls", "and", "suchlike", ".", "We", "'d", "really", "like", "to", "use", "a", "pseudo", "here", "for", "the", "internal", "arg", "pointer", "but", "data-flow", "analysis", "is", "not", "prepared", "to", "accept", "pseudos", "as", "live", "at", "the", "beginning", "of", "a", "function", "."], "TS_V_token": ["rs6000", "\"no_split_stack\"", "1", "12"], "File": "rs60007", "Func": "rs6000_internal_arg_pointer", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2438, "Length": 130, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64AsmParser", "::", "parsePrimaryExpr", "(", "const", "MCExpr", "*", "&", "Res", ",", "SMLoc", "&", "EndLoc", ")", "{", "if", "(", "!", "parseAuthExpr", "(", "Res", ",", "EndLoc", ")", ")", "return", "false", ";", "return", "getParser", "(", ")", ".", "parsePrimaryExpr", "(", "Res", ",", "EndLoc", ",", "nullptr", ")", ";", "}", ""], "natrual_language": ["Parse", "a", "primary", "expression", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64AsmParser105", "Func": "parsePrimaryExpr", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2439, "Length": 44, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "aarch64_gen_store_pair", "(", "machine_mode", "mode", ",", "rtx", "mem1", ",", "rtx", "reg1", ",", "rtx", "mem2", ",", "rtx", "reg2", ")", "{", "switch", "(", "mode", ")", "{", "case", "E_DImode", ":", "return", "gen_store_pair_dw_didi", "(", "mem1", ",", "reg1", ",", "mem2", ",", "reg2", ")", ";", "case", "E_DFmode", ":", "return", "gen_store_pair_dw_dfdf", "(", "mem1", ",", "reg1", ",", "mem2", ",", "reg2", ")", ";", "case", "E_TFmode", ":", "return", "gen_store_pair_dw_tftf", "(", "mem1", ",", "reg1", ",", "mem2", ",", "reg2", ")", ";", "case", "E_V4SImode", ":", "return", "gen_vec_store_pairv4siv4si", "(", "mem1", ",", "reg1", ",", "mem2", ",", "reg2", ")", ";", "case", "E_V16QImode", ":", "return", "gen_vec_store_pairv16qiv16qi", "(", "mem1", ",", "reg1", ",", "mem2", ",", "reg2", ")", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Generate", "and", "return", "a", "store", "pair", "instruction", "of", "mode", "MODE", "to", "store", "register", "REG1", "to", "MEM1", "and", "register", "REG2", "to", "MEM2", "."], "TS_V_token": ["aarch64"], "File": "aarch641", "Func": "aarch64_gen_store_pair", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2440, "Length": 108, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "replace_swapped_aligned_load", "(", "swap_web_entry", "*", "insn_entry", ",", "rtx", "swap_insn", ")", "{", "unsigned", "uid", "=", "INSN_UID", "(", "swap_insn", ")", ";", "gcc_assert", "(", "insn_entry", "[", "uid", "]", ".", "is_swap", "&&", "!", "insn_entry", "[", "uid", "]", ".", "is_load", ")", ";", "struct", "df_insn_info", "*", "insn_info", "=", "DF_INSN_INFO_GET", "(", "swap_insn", ")", ";", "df_ref", "use", "=", "DF_INSN_INFO_USES", "(", "insn_info", ")", ";", "struct", "df_link", "*", "def_link", "=", "DF_REF_CHAIN", "(", "use", ")", ";", "gcc_assert", "(", "def_link", "&&", "!", "def_link", "->", "next", ")", ";", "gcc_assert", "(", "def_link", "&&", "def_link", "->", "ref", "&&", "!", "DF_REF_IS_ARTIFICIAL", "(", "def_link", "->", "ref", ")", "&&", "!", "def_link", "->", "next", ")", ";", "rtx_insn", "*", "def_insn", "=", "DF_REF_INSN", "(", "def_link", "->", "ref", ")", ";", "unsigned", "uid2", "=", "INSN_UID", "(", "def_insn", ")", ";", "gcc_assert", "(", "insn_entry", "[", "uid2", "]", ".", "is_load", "&&", "insn_entry", "[", "uid2", "]", ".", "is_swap", ")", ";", "rtx", "body", "=", "PATTERN", "(", "def_insn", ")", ";", "gcc_assert", "(", "(", "GET_CODE", "(", "body", ")", "==", "SET", ")", "&&", "(", "GET_CODE", "(", "SET_SRC", "(", "body", ")", ")", "==", "VEC_SELECT", "||", "pattern_is_rotate64", "(", "body", ")", ")", "&&", "MEM_P", "(", "XEXP", "(", "SET_SRC", "(", "body", ")", ",", "0", ")", ")", ")", ";", "rtx", "src_exp", "=", "XEXP", "(", "SET_SRC", "(", "body", ")", ",", "0", ")", ";", "enum", "machine_mode", "mode", "=", "GET_MODE", "(", "src_exp", ")", ";", "rtx", "lvx", "=", "rs6000_gen_lvx", "(", "mode", ",", "SET_DEST", "(", "body", ")", ",", "src_exp", ")", ";", "rtx_insn", "*", "new_insn", "=", "emit_insn_before", "(", "lvx", ",", "def_insn", ")", ";", "rtx", "new_body", "=", "PATTERN", "(", "new_insn", ")", ";", "gcc_assert", "(", "(", "GET_CODE", "(", "new_body", ")", "==", "SET", ")", "&&", "MEM_P", "(", "SET_SRC", "(", "new_body", ")", ")", ")", ";", "basic_block", "bb", "=", "BLOCK_FOR_INSN", "(", "def_insn", ")", ";", "set_block_for_insn", "(", "new_insn", ",", "bb", ")", ";", "if", "(", "cfun", "->", "can_throw_non_call_exceptions", "&&", "BB_END", "(", "bb", ")", "==", "def_insn", ")", "{", "rtx", "note", "=", "find_reg_note", "(", "def_insn", ",", "REG_EH_REGION", ",", "NULL_RTX", ")", ";", "if", "(", "note", ")", "add_reg_note", "(", "new_insn", ",", "REG_EH_REGION", ",", "XEXP", "(", "note", ",", "0", ")", ")", ";", "}", "df_insn_rescan", "(", "new_insn", ")", ";", "df_insn_delete", "(", "def_insn", ")", ";", "remove_insn", "(", "def_insn", ")", ";", "def_insn", "->", "set_deleted", "(", ")", ";", "mark_swaps_for_removal", "(", "insn_entry", ",", "uid", ")", ";", "replace_swap_with_copy", "(", "insn_entry", ",", "uid", ")", ";", "}", ""], "natrual_language": ["Given", "that", "SWAP_INSN", "represents", "a", "swap", "of", "an", "aligned", "load-with-swap", ",", "replace", "the", "load", "with", "an", "aligned", "load", "(", "without", "swap", ")", "and", "replace", "the", "swap", "with", "a", "copy", "insn", "."], "TS_V_token": ["rs6000", "0", "0", "0"], "File": "rs6000-p8swap1", "Func": "replace_swapped_aligned_load", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2441, "Length": 356, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "rs6000_function_value", "(", "const_tree", "valtype", ",", "const_tree", "fn_decl_or_type", "ATTRIBUTE_UNUSED", ",", "bool", "outgoing", "ATTRIBUTE_UNUSED", ")", "{", "machine_mode", "mode", ";", "unsigned", "int", "regno", ";", "machine_mode", "elt_mode", ";", "int", "n_elts", ";", "if", "(", "TARGET_MACHO", "&&", "rs6000_darwin64_struct_check_p", "(", "TYPE_MODE", "(", "valtype", ")", ",", "valtype", ")", ")", "{", "CUMULATIVE_ARGS", "valcum", ";", "rtx", "valret", ";", "valcum", ".", "words", "=", "0", ";", "valcum", ".", "fregno", "=", "FP_ARG_MIN_REG", ";", "valcum", ".", "vregno", "=", "ALTIVEC_ARG_MIN_REG", ";", "valret", "=", "rs6000_darwin64_record_arg", "(", "&", "valcum", ",", "valtype", ",", "true", ",", "true", ")", ";", "if", "(", "valret", ")", "return", "valret", ";", "}", "mode", "=", "TYPE_MODE", "(", "valtype", ")", ";", "if", "(", "rs6000_discover_homogeneous_aggregate", "(", "mode", ",", "valtype", ",", "&", "elt_mode", ",", "&", "n_elts", ")", ")", "{", "int", "first_reg", ",", "n_regs", ";", "if", "(", "SCALAR_FLOAT_MODE_NOT_VECTOR_P", "(", "elt_mode", ")", ")", "{", "first_reg", "=", "(", "elt_mode", "==", "TDmode", ")", "?", "FP_ARG_RETURN", "+", "1", ":", "FP_ARG_RETURN", ";", "n_regs", "=", "(", "GET_MODE_SIZE", "(", "elt_mode", ")", "+", "7", ")", ">>", "3", ";", "}", "else", "{", "first_reg", "=", "ALTIVEC_ARG_RETURN", ";", "n_regs", "=", "1", ";", "}", "return", "rs6000_parallel_return", "(", "mode", ",", "n_elts", ",", "elt_mode", ",", "first_reg", ",", "n_regs", ")", ";", "}", "if", "(", "TARGET_32BIT", "&&", "TARGET_POWERPC64", ")", "switch", "(", "mode", ")", "{", "default", ":", "break", ";", "case", "E_DImode", ":", "case", "E_SCmode", ":", "case", "E_DCmode", ":", "case", "E_TCmode", ":", "int", "count", "=", "GET_MODE_SIZE", "(", "mode", ")", "/", "4", ";", "return", "rs6000_parallel_return", "(", "mode", ",", "count", ",", "SImode", ",", "GP_ARG_RETURN", ",", "1", ")", ";", "}", "if", "(", "(", "INTEGRAL_TYPE_P", "(", "valtype", ")", "&&", "GET_MODE_BITSIZE", "(", "mode", ")", "<", "(", "TARGET_32BIT", "?", "32", ":", "64", ")", ")", "||", "POINTER_TYPE_P", "(", "valtype", ")", ")", "mode", "=", "TARGET_32BIT", "?", "SImode", ":", "DImode", ";", "if", "(", "DECIMAL_FLOAT_MODE_P", "(", "mode", ")", "&&", "TARGET_HARD_FLOAT", ")", "regno", "=", "(", "mode", "==", "TDmode", ")", "?", "FP_ARG_RETURN", "+", "1", ":", "FP_ARG_RETURN", ";", "else", "if", "(", "SCALAR_FLOAT_TYPE_P", "(", "valtype", ")", "&&", "TARGET_HARD_FLOAT", "&&", "!", "FLOAT128_VECTOR_P", "(", "mode", ")", ")", "regno", "=", "FP_ARG_RETURN", ";", "else", "if", "(", "TREE_CODE", "(", "valtype", ")", "==", "COMPLEX_TYPE", "&&", "targetm", ".", "calls", ".", "split_complex_arg", ")", "return", "rs6000_complex_function_value", "(", "mode", ")", ";", "else", "if", "(", "(", "TREE_CODE", "(", "valtype", ")", "==", "VECTOR_TYPE", "||", "VECTOR_ALIGNMENT_P", "(", "mode", ")", ")", "&&", "TARGET_ALTIVEC", "&&", "TARGET_ALTIVEC_ABI", "&&", "ALTIVEC_OR_VSX_VECTOR_MODE", "(", "mode", ")", ")", "regno", "=", "ALTIVEC_ARG_RETURN", ";", "else", "regno", "=", "GP_ARG_RETURN", ";", "return", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "}", ""], "natrual_language": ["Define", "how", "to", "find", "the", "value", "returned", "by", "a", "function", ".", "VALTYPE", "is", "the", "data", "type", "of", "the", "value", "(", "as", "a", "tree", ")", ".", "If", "the", "precise", "function", "being", "called", "is", "known", ",", "FUNC", "is", "its", "FUNCTION_DECL", ";", "otherwise", ",", "FUNC", "is", "0", ".", "On", "the", "SPE", ",", "both", "FPs", "and", "vectors", "are", "returned", "in", "r3", ".", "On", "RS/6000", "an", "integer", "value", "is", "in", "r3", "and", "a", "floating-point", "value", "is", "in", "fp1", ",", "unless", "-msoft-float", "."], "TS_V_token": ["rs6000", "0", "1", "7", "3", "1", "4", "1", "32", "64", "1"], "File": "rs6000", "Func": "rs6000_function_value", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2442, "Length": 376, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "X86Subtarget", "::", "X86Subtarget", "(", "const", "std", "::", "string", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "unsigned", "StackAlignOverride", ")", ":", "X86GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "X86ProcFamily", "(", "Others", ")", ",", "PICStyle", "(", "PICStyles", "::", "None", ")", ",", "TargetTriple", "(", "TT", ")", ",", "StackAlignOverride", "(", "StackAlignOverride", ")", ",", "In64BitMode", "(", "TargetTriple", ".", "getArch", "(", ")", "==", "Triple", "::", "x86_64", ")", ",", "In32BitMode", "(", "TargetTriple", ".", "getArch", "(", ")", "==", "Triple", "::", "x86", "&&", "TargetTriple", ".", "getEnvironment", "(", ")", "!=", "Triple", "::", "CODE16", ")", ",", "In16BitMode", "(", "TargetTriple", ".", "getArch", "(", ")", "==", "Triple", "::", "x86", "&&", "TargetTriple", ".", "getEnvironment", "(", ")", "==", "Triple", "::", "CODE16", ")", "{", "initializeEnvironment", "(", ")", ";", "resetSubtargetFeatures", "(", "CPU", ",", "FS", ")", ";", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86"], "File": "X86Subtarget52", "Func": "X86Subtarget", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2443, "Length": 131, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "output_indirect_thunk_function", "(", "enum", "indirect_thunk_prefix", "need_prefix", ",", "unsigned", "int", "regno", ",", "bool", "ret_p", ")", "{", "char", "name", "[", "32", "]", ";", "tree", "decl", ";", "indirect_thunk_name", "(", "name", ",", "regno", ",", "need_prefix", ",", "ret_p", ")", ";", "decl", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "FUNCTION_DECL", ",", "get_identifier", "(", "name", ")", ",", "build_function_type_list", "(", "void_type_node", ",", "NULL_TREE", ")", ")", ";", "DECL_RESULT", "(", "decl", ")", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "RESULT_DECL", ",", "NULL_TREE", ",", "void_type_node", ")", ";", "TREE_PUBLIC", "(", "decl", ")", "=", "1", ";", "TREE_STATIC", "(", "decl", ")", "=", "1", ";", "DECL_IGNORED_P", "(", "decl", ")", "=", "1", ";", "if", "(", "TARGET_MACHO", ")", "{", "switch_to_section", "(", "darwin_sections", "[", "picbase_thunk_section", "]", ")", ";", "fputs", "(", "\"\\t.weak_definition\\t\"", ",", "asm_out_file", ")", ";", "assemble_name", "(", "asm_out_file", ",", "name", ")", ";", "fputs", "(", "\"\\n\\t.private_extern\\t\"", ",", "asm_out_file", ")", ";", "assemble_name", "(", "asm_out_file", ",", "name", ")", ";", "putc", "(", "'\\n'", ",", "asm_out_file", ")", ";", "ASM_OUTPUT_LABEL", "(", "asm_out_file", ",", "name", ")", ";", "DECL_WEAK", "(", "decl", ")", "=", "1", ";", "}", "else", "if", "(", "USE_HIDDEN_LINKONCE", ")", "{", "cgraph_node", "::", "create", "(", "decl", ")", "->", "set_comdat_group", "(", "DECL_ASSEMBLER_NAME", "(", "decl", ")", ")", ";", "targetm", ".", "asm_out", ".", "unique_section", "(", "decl", ",", "0", ")", ";", "switch_to_section", "(", "get_named_section", "(", "decl", ",", "NULL", ",", "0", ")", ")", ";", "targetm", ".", "asm_out", ".", "globalize_label", "(", "asm_out_file", ",", "name", ")", ";", "fputs", "(", "\"\\t.hidden\\t\"", ",", "asm_out_file", ")", ";", "assemble_name", "(", "asm_out_file", ",", "name", ")", ";", "putc", "(", "'\\n'", ",", "asm_out_file", ")", ";", "ASM_DECLARE_FUNCTION_NAME", "(", "asm_out_file", ",", "name", ",", "decl", ")", ";", "}", "else", "{", "switch_to_section", "(", "text_section", ")", ";", "ASM_OUTPUT_LABEL", "(", "asm_out_file", ",", "name", ")", ";", "}", "DECL_INITIAL", "(", "decl", ")", "=", "make_node", "(", "BLOCK", ")", ";", "current_function_decl", "=", "decl", ";", "allocate_struct_function", "(", "decl", ",", "false", ")", ";", "init_function_start", "(", "decl", ")", ";", "cfun", "->", "is_thunk", "=", "true", ";", "first_function_block_is_cold", "=", "false", ";", "final_start_function", "(", "emit_barrier", "(", ")", ",", "asm_out_file", ",", "1", ")", ";", "output_indirect_thunk", "(", "regno", ")", ";", "final_end_function", "(", ")", ";", "init_insn_lengths", "(", ")", ";", "free_after_compilation", "(", "cfun", ")", ";", "set_cfun", "(", "NULL", ")", ";", "current_function_decl", "=", "NULL", ";", "}", ""], "natrual_language": ["Output", "a", "funtion", "with", "a", "call", "and", "return", "thunk", "for", "indirect", "branch", ".", "If", "BND_P", "is", "true", ",", "the", "BND", "prefix", "is", "needed", ".", "If", "REGNO", "!", "=", "UNVALID_REGNUM", ",", "the", "function", "address", "is", "in", "REGNO", ".", "Otherwise", ",", "the", "function", "address", "is", "on", "the", "top", "of", "stack", ".", "Thunk", "is", "used", "for", "function", "return", "if", "RET_P", "is", "true", "."], "TS_V_token": ["i386", "32", "1", "1", "1", "\"\\t.weak_definition\\t\"", "\"\\n\\t.private_extern\\t\"", "1", "0", "0", "\"\\t.hidden\\t\"", "1"], "File": "i386", "Func": "output_indirect_thunk_function", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2444, "Length": 333, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "output_fp_compare", "(", "rtx_insn", "*", "insn", ",", "rtx", "*", "operands", ",", "bool", "eflags_p", ",", "bool", "unordered_p", ")", "{", "rtx", "*", "xops", "=", "eflags_p", "?", "&", "operands", "[", "0", "]", ":", "&", "operands", "[", "1", "]", ";", "bool", "stack_top_dies", ";", "static", "char", "buf", "[", "40", "]", ";", "const", "char", "*", "p", ";", "gcc_assert", "(", "STACK_TOP_P", "(", "xops", "[", "0", "]", ")", ")", ";", "stack_top_dies", "=", "find_regno_note", "(", "insn", ",", "REG_DEAD", ",", "FIRST_STACK_REG", ")", ";", "if", "(", "eflags_p", ")", "{", "p", "=", "unordered_p", "?", "\"fucomi\"", ":", "\"fcomi\"", ";", "strcpy", "(", "buf", ",", "p", ")", ";", "p", "=", "\"p\\t{%y1, %0|%0, %y1}\"", ";", "strcat", "(", "buf", ",", "p", "+", "!", "stack_top_dies", ")", ";", "return", "buf", ";", "}", "if", "(", "STACK_REG_P", "(", "xops", "[", "1", "]", ")", "&&", "stack_top_dies", "&&", "find_regno_note", "(", "insn", ",", "REG_DEAD", ",", "FIRST_STACK_REG", "+", "1", ")", ")", "{", "gcc_assert", "(", "REGNO", "(", "xops", "[", "1", "]", ")", "==", "FIRST_STACK_REG", "+", "1", ")", ";", "p", "=", "unordered_p", "?", "\"fucompp\"", ":", "\"fcompp\"", ";", "strcpy", "(", "buf", ",", "p", ")", ";", "}", "else", "if", "(", "const0_operand", "(", "xops", "[", "1", "]", ",", "VOIDmode", ")", ")", "{", "gcc_assert", "(", "!", "unordered_p", ")", ";", "strcpy", "(", "buf", ",", "\"ftst\"", ")", ";", "}", "else", "{", "if", "(", "GET_MODE_CLASS", "(", "GET_MODE", "(", "xops", "[", "1", "]", ")", ")", "==", "MODE_INT", ")", "{", "gcc_assert", "(", "!", "unordered_p", ")", ";", "p", "=", "\"ficom\"", ";", "}", "else", "p", "=", "unordered_p", "?", "\"fucom\"", ":", "\"fcom\"", ";", "strcpy", "(", "buf", ",", "p", ")", ";", "p", "=", "\"p%Z2\\t%y2\"", ";", "strcat", "(", "buf", ",", "p", "+", "!", "stack_top_dies", ")", ";", "}", "output_asm_insn", "(", "buf", ",", "operands", ")", ";", "return", "\"fnstsw\\t%0\"", ";", "}", ""], "natrual_language": ["Output", "code", "for", "INSN", "to", "compare", "OPERANDS", ".", "EFLAGS_P", "is", "1", "when", "fcomi", "should", "be", "used", "and", "2", "when", "fnstsw", "should", "be", "used", ".", "UNORDERED_P", "is", "true", "when", "fucom", "should", "be", "used", "."], "TS_V_token": ["i386", "0", "1", "40", "0", "\"fucomi\"", "\"fcomi\"", "\"p\\t{%y1, %0|%0, %y1}\"", "1", "1", "1", "1", "\"fucompp\"", "\"fcompp\"", "1", "\"ftst\"", "1", "\"ficom\"", "\"fucom\"", "\"fcom\"", "\"p%Z2\\t%y2\"", "\"fnstsw\\t%0\""], "File": "i386", "Func": "output_fp_compare", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2445, "Length": 267, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "aarch64_sls_emit_shared_blr_thunks", "(", "FILE", "*", "out_file", ")", "{", "if", "(", "!", "aarch64_sls_shared_thunks_needed", ")", "return", ";", "for", "(", "int", "regnum", "=", "0", ";", "regnum", "<", "30", ";", "++", "regnum", ")", "{", "tree", "decl", "=", "aarch64_sls_shared_thunks", "[", "regnum", "]", ";", "if", "(", "!", "decl", ")", "continue", ";", "const", "char", "*", "name", "=", "indirect_symbol_names", "[", "regnum", "]", ";", "switch_to_section", "(", "get_named_section", "(", "decl", ",", "NULL", ",", "0", ")", ")", ";", "ASM_OUTPUT_ALIGN", "(", "out_file", ",", "2", ")", ";", "targetm", ".", "asm_out", ".", "globalize_label", "(", "out_file", ",", "name", ")", ";", "targetm", ".", "asm_out", ".", "assemble_visibility", "(", "decl", ",", "VISIBILITY_HIDDEN", ")", ";", "ASM_OUTPUT_TYPE_DIRECTIVE", "(", "out_file", ",", "name", ",", "\"function\"", ")", ";", "ASM_OUTPUT_LABEL", "(", "out_file", ",", "name", ")", ";", "aarch64_sls_emit_function_stub", "(", "out_file", ",", "regnum", ")", ";", "asm_fprintf", "(", "out_file", ",", "\"\\tdsb\\tsy\\n\\tisb\\n\"", ")", ";", "ASM_DECLARE_FUNCTION_SIZE", "(", "out_file", ",", "name", ",", "decl", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "shared", "BLR", "stubs", "for", "the", "current", "compilation", "unit", ".", "Over", "the", "course", "of", "compiling", "this", "unit", "we", "may", "have", "converted", "some", "BLR", "instructions", "to", "a", "BL", "to", "a", "shared", "stub", "function", ".", "This", "is", "where", "we", "emit", "those", "stub", "functions", ".", "This", "function", "is", "for", "the", "stubs", "shared", "between", "different", "functions", "in", "this", "compilation", "unit", ".", "We", "share", "when", "optimizing", "for", "size", "instead", "of", "speed", ".", "This", "function", "is", "called", "through", "the", "TARGET_ASM_FILE_END", "hook", "."], "TS_V_token": ["aarch64", "0", "30", "0", "2", "\"function\"", "\"\\tdsb\\tsy\\n\\tisb\\n\""], "File": "aarch641", "Func": "aarch64_sls_emit_shared_blr_thunks", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2446, "Length": 137, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Warning", "(", "SMLoc", "L", ",", "const", "Twine", "&", "Msg", ")", "{", "Parser", ".", "Warning", "(", "L", ",", "Msg", ")", ";", "}", ""], "natrual_language": ["Emit", "a", "warning", "at", "the", "location", "L", ",", "with", "the", "message", "Msg", "."], "TS_V_token": ["PowerPC"], "File": "PPCAsmParser (2)", "Func": "Warning", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2447, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "classof", "(", "const", "ARM64MCExpr", "*", ")", "{", "return", "true", ";", "}", ""], "natrual_language": ["Methods", "for", "support", "type", "inquiry", "through", "isa", ",", "cast", ",", "and", "dyn_cast", ":"], "TS_V_token": ["ARM64", "ARM64"], "File": "ARM64MCExpr", "Func": "classof", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2448, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsCodeEmitter", "::", "getBranchTargetOpValue", "(", "const", "MachineInstr", "&", "MI", ",", "unsigned", "OpNo", ")", "const", "{", "return", "0", ";", "}", ""], "natrual_language": ["getBranchTargetOpValue", "-", "Return", "binary", "encoding", "of", "the", "branch", "target", "operand", "."], "TS_V_token": ["Mips", "Mips", "0"], "File": "MipsCodeEmitter21", "Func": "getBranchTargetOpValue", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2449, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "Subtarget", "=", "&", "TM", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "SelectionDAGISel", "::", "runOnMachineFunction", "(", "MF", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86"], "File": "X86ISelDAGToDAG124", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2450, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "AArch64TargetLowering", "::", "getRegisterByName", "(", "const", "char", "*", "RegName", ",", "EVT", "VT", ")", "const", "{", "unsigned", "Reg", "=", "StringSwitch", "<", "unsigned", ">", "(", "RegName", ")", ".", "Case", "(", "\"sp\"", ",", "AArch64", "::", "SP", ")", ".", "Default", "(", "0", ")", ";", "if", "(", "Reg", ")", "return", "Reg", ";", "report_fatal_error", "(", "\"Invalid register name global variable\"", ")", ";", "}", ""], "natrual_language": ["Return", "the", "register", "ID", "of", "the", "name", "passed", "in", "."], "TS_V_token": ["AArch64", "AArch64", "\"sp\"", "AArch64::SP", "0", "\"Invalid register name global variable\""], "File": "AArch64ISelLowering117", "Func": "getRegisterByName", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2451, "Length": 53, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "LanaiTargetLowering", "::", "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_Lanai32", ")", ";", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", "(", "1", ",", "Chain", ")", ";", "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", "(", ")", ")", ")", ";", "}", "if", "(", "DAG", ".", "getMachineFunction", "(", ")", ".", "getFunction", "(", ")", "->", "hasStructRetAttr", "(", ")", ")", "{", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "LanaiMachineFunctionInfo", "*", "LanaiMFI", "=", "MF", ".", "getInfo", "<", "LanaiMachineFunctionInfo", ">", "(", ")", ";", "unsigned", "Reg", "=", "LanaiMFI", "->", "getSRetReturnReg", "(", ")", ";", "assert", "(", "Reg", "&&", "\"SRetReturnReg should have been set in LowerFormalArguments().\"", ")", ";", "SDValue", "Val", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "Reg", ",", "getPointerTy", "(", "DAG", ".", "getDataLayout", "(", ")", ")", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "Lanai", "::", "RV", ",", "Val", ",", "Flag", ")", ";", "Flag", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "Lanai", "::", "RV", ",", "getPointerTy", "(", "DAG", ".", "getDataLayout", "(", ")", ")", ")", ")", ";", "}", "RetOps", "[", "0", "]", "=", "Chain", ";", "unsigned", "Opc", "=", "LanaiISD", "::", "RET_FLAG", ";", "if", "(", "Flag", ".", "getNode", "(", ")", ")", "RetOps", ".", "push_back", "(", "Flag", ")", ";", "return", "DAG", ".", "getNode", "(", "Opc", ",", "DL", ",", "MVT", "::", "Other", ",", "ArrayRef", "<", "SDValue", ">", "(", "&", "RetOps", "[", "0", "]", ",", "RetOps", ".", "size", "(", ")", ")", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["Lanai", "Lanai", "ISD::OutputArg", "16", "Lanai", "4", "1", "0", "\"Can only return in registers!\"", "1", "Lanai", "Lanai", "Lanai", "Lanai", "\"SRetReturnReg should have been set in LowerFormalArguments().\"", "Lanai::RV", "1", "Lanai::RV", "0", "LanaiISD::RET_FLAG", "MVT::Other", "0"], "File": "LanaiISelLowering1", "Func": "LowerReturn", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2452, "Length": 389, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "fixup_addr_diff_vecs", "(", "rtx_insn", "*", "first", ")", "{", "rtx_insn", "*", "insn", ";", "for", "(", "insn", "=", "first", ";", "insn", ";", "insn", "=", "NEXT_INSN", "(", "insn", ")", ")", "{", "rtx", "vec_lab", ",", "pat", ",", "prevpat", ",", "x", ",", "braf_label", ";", "rtx_insn", "*", "prev", ";", "if", "(", "!", "JUMP_TABLE_DATA_P", "(", "insn", ")", "||", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "!=", "ADDR_DIFF_VEC", ")", "continue", ";", "pat", "=", "PATTERN", "(", "insn", ")", ";", "vec_lab", "=", "XEXP", "(", "XEXP", "(", "pat", ",", "0", ")", ",", "0", ")", ";", "for", "(", "prev", "=", "as_a", "<", "rtx_insn", "*", ">", "(", "vec_lab", ")", ";", ";", "prev", "=", "PREV_INSN", "(", "prev", ")", ")", "{", "if", "(", "!", "JUMP_P", "(", "prev", ")", ")", "continue", ";", "prevpat", "=", "PATTERN", "(", "prev", ")", ";", "if", "(", "GET_CODE", "(", "prevpat", ")", "!=", "PARALLEL", "||", "XVECLEN", "(", "prevpat", ",", "0", ")", "!=", "2", ")", "continue", ";", "x", "=", "XVECEXP", "(", "prevpat", ",", "0", ",", "1", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "!=", "USE", ")", "continue", ";", "x", "=", "XEXP", "(", "x", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "LABEL_REF", "&&", "XEXP", "(", "x", ",", "0", ")", "==", "vec_lab", ")", "break", ";", "}", "if", "(", "!", "prev", ")", "continue", ";", "braf_label", "=", "XEXP", "(", "XEXP", "(", "SET_SRC", "(", "XVECEXP", "(", "prevpat", ",", "0", ",", "0", ")", ")", ",", "1", ")", ",", "0", ")", ";", "emit_label_after", "(", "braf_label", ",", "prev", ")", ";", "XEXP", "(", "XEXP", "(", "pat", ",", "0", ")", ",", "0", ")", "=", "braf_label", ";", "}", "}", ""], "natrual_language": ["Fix", "up", "ADDR_DIFF_VECs", "."], "TS_V_token": ["sh", "0", "0", "0", "2", "0", "1", "0", "0", "0", "0", "1", "0", "0", "0"], "File": "sh4", "Func": "fixup_addr_diff_vecs", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2453, "Length": 249, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCDisassembler", "::", "DecodeStatus", "X86GenericDisassembler", "::", "getInstruction", "(", "MCInst", "&", "Instr", ",", "uint64_t", "&", "Size", ",", "ArrayRef", "<", "uint8_t", ">", "Bytes", ",", "uint64_t", "Address", ",", "raw_ostream", "&", "VStream", ",", "raw_ostream", "&", "CStream", ")", "const", "{", "CommentStream", "=", "&", "CStream", ";", "InternalInstruction", "InternalInstr", ";", "dlog_t", "LoggerFn", "=", "logger", ";", "if", "(", "&", "VStream", "==", "&", "nulls", "(", ")", ")", "LoggerFn", "=", "nullptr", ";", "Region", "R", "(", "Bytes", ",", "Address", ")", ";", "int", "Ret", "=", "decodeInstruction", "(", "&", "InternalInstr", ",", "regionReader", ",", "(", "const", "void", "*", ")", "&", "R", ",", "LoggerFn", ",", "(", "void", "*", ")", "&", "VStream", ",", "(", "const", "void", "*", ")", "MII", ".", "get", "(", ")", ",", "Address", ",", "fMode", ")", ";", "if", "(", "Ret", ")", "{", "Size", "=", "InternalInstr", ".", "readerCursor", "-", "Address", ";", "return", "Fail", ";", "}", "else", "{", "Size", "=", "InternalInstr", ".", "length", ";", "bool", "Ret", "=", "translateInstruction", "(", "Instr", ",", "InternalInstr", ",", "this", ")", ";", "if", "(", "!", "Ret", ")", "{", "unsigned", "Flags", "=", "X86", "::", "IP_NO_PREFIX", ";", "if", "(", "InternalInstr", ".", "hasAdSize", ")", "Flags", "|=", "X86", "::", "IP_HAS_AD_SIZE", ";", "if", "(", "!", "InternalInstr", ".", "mandatoryPrefix", ")", "{", "if", "(", "InternalInstr", ".", "hasOpSize", ")", "Flags", "|=", "X86", "::", "IP_HAS_OP_SIZE", ";", "if", "(", "InternalInstr", ".", "repeatPrefix", "==", "0xf2", ")", "Flags", "|=", "X86", "::", "IP_HAS_REPEAT_NE", ";", "else", "if", "(", "InternalInstr", ".", "repeatPrefix", "==", "0xf3", "&&", "InternalInstr", ".", "opcode", "!=", "0x90", ")", "Flags", "|=", "X86", "::", "IP_HAS_REPEAT", ";", "if", "(", "InternalInstr", ".", "hasLockPrefix", ")", "Flags", "|=", "X86", "::", "IP_HAS_LOCK", ";", "}", "Instr", ".", "setFlags", "(", "Flags", ")", ";", "}", "return", "(", "!", "Ret", ")", "?", "Success", ":", "Fail", ";", "}", "}", ""], "natrual_language": ["Returns", "the", "disassembly", "of", "a", "single", "instruction", "."], "TS_V_token": ["X86", "X86", "X86::IP_NO_PREFIX", "X86::IP_HAS_AD_SIZE", "X86::IP_HAS_OP_SIZE", "0xf2", "X86::IP_HAS_REPEAT_NE", "0xf3", "0x90", "X86::IP_HAS_REPEAT", "X86::IP_HAS_LOCK"], "File": "X86Disassembler29", "Func": "getInstruction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2454, "Length": 262, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "winnt_d_handle_target_object_format", "(", "void", ")", "{", "const", "char", "*", "objfmt", "=", "\"coff\"", ";", "return", "build_string_literal", "(", "strlen", "(", "objfmt", ")", "+", "1", ",", "objfmt", ")", ";", "}", ""], "natrual_language": ["Handle", "a", "call", "to", "`", "__traits", "(", "getTargetInfo", ",", "``", "objectFormat", "''", ")", "'", "."], "TS_V_token": ["i386", "\"coff\"", "1"], "File": "winnt-d", "Func": "winnt_d_handle_target_object_format", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2455, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineInstr", "*", "ARMBaseInstrInfo", "::", "commuteInstructionImpl", "(", "MachineInstr", "*", "MI", ",", "bool", "NewMI", ",", "unsigned", "OpIdx1", ",", "unsigned", "OpIdx2", ")", "const", "{", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "case", "ARM", "::", "MOVCCr", ":", "case", "ARM", "::", "t2MOVCCr", ":", "{", "unsigned", "PredReg", "=", "0", ";", "ARMCC", "::", "CondCodes", "CC", "=", "getInstrPredicate", "(", "*", "MI", ",", "PredReg", ")", ";", "if", "(", "CC", "==", "ARMCC", "::", "AL", "||", "PredReg", "!=", "ARM", "::", "CPSR", ")", "return", "nullptr", ";", "MI", "=", "TargetInstrInfo", "::", "commuteInstructionImpl", "(", "MI", ",", "NewMI", ",", "OpIdx1", ",", "OpIdx2", ")", ";", "if", "(", "!", "MI", ")", "return", "nullptr", ";", "MI", "->", "getOperand", "(", "MI", "->", "findFirstPredOperandIdx", "(", ")", ")", ".", "setImm", "(", "ARMCC", "::", "getOppositeCondition", "(", "CC", ")", ")", ";", "return", "MI", ";", "}", "}", "return", "TargetInstrInfo", "::", "commuteInstructionImpl", "(", "MI", ",", "NewMI", ",", "OpIdx1", ",", "OpIdx2", ")", ";", "}", ""], "natrual_language": ["Commutes", "the", "operands", "in", "the", "given", "instruction", "by", "changing", "the", "operands", "order", "and/or", "changing", "the", "instruction", "'s", "opcode", "and/or", "the", "immediate", "value", "operand", "."], "TS_V_token": ["ARM", "ARM", "ARM::MOVCCr", "ARM::t2MOVCCr", "0", "ARMCC::CondCodes", "ARMCC::AL", "ARM::CPSR", "ARMCC::getOppositeCondition"], "File": "ARMBaseInstrInfo120", "Func": "commuteInstructionImpl", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2456, "Length": 140, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_start_file", "(", "void", ")", "{", "struct", "cl_target_option", "*", "default_options", "=", "TREE_TARGET_OPTION", "(", "target_option_default_node", ")", ";", "const", "struct", "processor", "*", "default_arch", "=", "aarch64_get_arch", "(", "default_options", "->", "x_explicit_arch", ")", ";", "uint64_t", "default_isa_flags", "=", "default_options", "->", "x_aarch64_isa_flags", ";", "std", "::", "string", "extension", "=", "aarch64_get_extension_string_for_isa_flags", "(", "default_isa_flags", ",", "default_arch", "->", "flags", ")", ";", "aarch64_last_printed_arch_string", "=", "default_arch", "->", "name", "+", "extension", ";", "aarch64_last_printed_tune_string", "=", "\"\"", ";", "asm_fprintf", "(", "asm_out_file", ",", "\"\\t.arch %s\\n\"", ",", "aarch64_last_printed_arch_string", ".", "c_str", "(", ")", ")", ";", "default_file_start", "(", ")", ";", "}", ""], "natrual_language": ["Implements", "TARGET_ASM_FILE_START", ".", "Output", "the", "assembly", "header", "."], "TS_V_token": ["aarch64", "\"\"", "\"\\t.arch %s\\n\""], "File": "aarch64", "Func": "aarch64_start_file", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2457, "Length": 81, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetTransformInfo", "MipsTargetMachine", "::", "getTargetTransformInfo", "(", "const", "Function", "&", "F", ")", "const", "{", "if", "(", "Subtarget", "->", "allowMixed16_32", "(", ")", ")", "{", "LLVM_DEBUG", "(", "errs", "(", ")", "<<", "\"No Target Transform Info Pass Added\\n\"", ")", ";", "return", "TargetTransformInfo", "(", "F", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ")", ";", "}", "LLVM_DEBUG", "(", "errs", "(", ")", "<<", "\"Target Transform Info Pass Added\\n\"", ")", ";", "return", "TargetTransformInfo", "(", "BasicTTIImpl", "(", "this", ",", "F", ")", ")", ";", "}", ""], "natrual_language": ["Get", "a", "TargetTransformInfo", "implementation", "for", "the", "target", "."], "TS_V_token": ["Mips", "Mips", "\"No Target Transform Info Pass Added\\n\"", "\"Target Transform Info Pass Added\\n\""], "File": "MipsTargetMachine43", "Func": "getTargetTransformInfo", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2458, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64AddressTypePromotion", "::", "runOnFunction", "(", "Function", "&", "F", ")", "{", "if", "(", "!", "EnableAddressTypePromotion", "||", "F", ".", "isDeclaration", "(", ")", ")", "return", "false", ";", "Func", "=", "&", "F", ";", "ConsideredSExtType", "=", "Type", "::", "getInt64Ty", "(", "Func", "->", "getContext", "(", ")", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"*** \"", "<<", "getPassName", "(", ")", "<<", "\": \"", "<<", "Func", "->", "getName", "(", ")", "<<", "'\\n'", ")", ";", "Instructions", "SExtInsts", ";", "analyzeSExtension", "(", "SExtInsts", ")", ";", "return", "propagateSignExtension", "(", "SExtInsts", ")", ";", "}", ""], "natrual_language": ["runOnFunction", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "the", "per-function", "processing", "of", "the", "pass", "."], "TS_V_token": ["AArch64", "AArch64", "\"*** \"", "\": \""], "File": "AArch64AddressTypePromotion", "Func": "runOnFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2459, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "pru_init_builtins", "(", "void", ")", "{", "tree", "void_ftype_longlong", "=", "build_function_type_list", "(", "void_type_node", ",", "long_long_integer_type_node", ",", "NULL", ")", ";", "tree", "uint_ftype_uint_uint", "=", "build_function_type_list", "(", "unsigned_type_node", ",", "unsigned_type_node", ",", "unsigned_type_node", ",", "NULL", ")", ";", "tree", "void_ftype_void", "=", "build_function_type_list", "(", "void_type_node", ",", "void_type_node", ",", "NULL", ")", ";", "pru_builtins", "[", "PRU_BUILTIN_DELAY_CYCLES", "]", "=", "add_builtin_function", "(", "\"__delay_cycles\"", ",", "void_ftype_longlong", ",", "PRU_BUILTIN_DELAY_CYCLES", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";", "pru_builtins", "[", "PRU_BUILTIN_HALT", "]", "=", "add_builtin_function", "(", "\"__halt\"", ",", "void_ftype_void", ",", "PRU_BUILTIN_HALT", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";", "pru_builtins", "[", "PRU_BUILTIN_LMBD", "]", "=", "add_builtin_function", "(", "\"__lmbd\"", ",", "uint_ftype_uint_uint", ",", "PRU_BUILTIN_LMBD", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_INIT_BUILTINS", "."], "TS_V_token": ["pru", "\"__delay_cycles\"", "\"__halt\"", "\"__lmbd\""], "File": "pru", "Func": "pru_init_builtins", "Target": "pru", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2460, "Length": 106, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "X86TargetLowering", "::", "ConstraintType", "X86TargetLowering", "::", "getConstraintType", "(", "StringRef", "Constraint", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'R'", ":", "case", "'q'", ":", "case", "'Q'", ":", "case", "'f'", ":", "case", "'t'", ":", "case", "'u'", ":", "case", "'y'", ":", "case", "'x'", ":", "case", "'Y'", ":", "case", "'l'", ":", "return", "C_RegisterClass", ";", "case", "'a'", ":", "case", "'b'", ":", "case", "'c'", ":", "case", "'d'", ":", "case", "'S'", ":", "case", "'D'", ":", "case", "'A'", ":", "return", "C_Register", ";", "case", "'I'", ":", "case", "'J'", ":", "case", "'K'", ":", "case", "'L'", ":", "case", "'M'", ":", "case", "'N'", ":", "case", "'G'", ":", "case", "'C'", ":", "case", "'e'", ":", "case", "'Z'", ":", "return", "C_Other", ";", "default", ":", "break", ";", "}", "}", "return", "TargetLowering", "::", "getConstraintType", "(", "Constraint", ")", ";", "}", ""], "natrual_language": ["Given", "a", "constraint", "letter", ",", "return", "the", "type", "of", "constraint", "for", "this", "target", "."], "TS_V_token": ["X86", "X86", "X86", "1", "0"], "File": "X86ISelLowering (2)3", "Func": "getConstraintType", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2461, "Length": 136, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "DataLayout", "*", "getDataLayout", "(", ")", "const", "{", "return", "&", "DL", ";", "}", ""], "natrual_language": ["Return", "the", "DataLayout", "associated", "with", "the", "module", "this", "SCEV", "instance", "is", "operating", "on", "."], "TS_V_token": ["TeeRISC"], "File": "TeeRISCTargetMachine", "Func": "getDataLayout", "Target": "TeeRISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2462, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ix86_expand_int_vcond", "(", "rtx", "operands", "[", "]", ")", "{", "enum", "machine_mode", "mode", "=", "GET_MODE", "(", "operands", "[", "0", "]", ")", ";", "enum", "rtx_code", "code", "=", "GET_CODE", "(", "operands", "[", "3", "]", ")", ";", "bool", "negate", "=", "false", ";", "rtx", "x", ",", "cop0", ",", "cop1", ";", "cop0", "=", "operands", "[", "4", "]", ";", "cop1", "=", "operands", "[", "5", "]", ";", "switch", "(", "code", ")", "{", "case", "EQ", ":", "case", "GT", ":", "case", "GTU", ":", "break", ";", "case", "NE", ":", "case", "LE", ":", "case", "LEU", ":", "code", "=", "reverse_condition", "(", "code", ")", ";", "negate", "=", "true", ";", "break", ";", "case", "GE", ":", "case", "GEU", ":", "code", "=", "reverse_condition", "(", "code", ")", ";", "negate", "=", "true", ";", "case", "LT", ":", "case", "LTU", ":", "code", "=", "swap_condition", "(", "code", ")", ";", "x", "=", "cop0", ",", "cop0", "=", "cop1", ",", "cop1", "=", "x", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "if", "(", "code", "==", "GTU", ")", "{", "switch", "(", "mode", ")", "{", "case", "V4SImode", ":", "{", "rtx", "t1", ",", "t2", ",", "mask", ";", "t1", "=", "gen_reg_rtx", "(", "mode", ")", ";", "emit_insn", "(", "gen_subv4si3", "(", "t1", ",", "cop0", ",", "cop1", ")", ")", ";", "mask", "=", "GEN_INT", "(", "-", "0x80000000", ")", ";", "mask", "=", "gen_rtx_CONST_VECTOR", "(", "mode", ",", "gen_rtvec", "(", "4", ",", "mask", ",", "mask", ",", "mask", ",", "mask", ")", ")", ";", "mask", "=", "force_reg", "(", "mode", ",", "mask", ")", ";", "t2", "=", "gen_reg_rtx", "(", "mode", ")", ";", "emit_insn", "(", "gen_andv4si3", "(", "t2", ",", "cop0", ",", "mask", ")", ")", ";", "x", "=", "gen_reg_rtx", "(", "mode", ")", ";", "emit_insn", "(", "gen_xorv4si3", "(", "x", ",", "t1", ",", "t2", ")", ")", ";", "code", "=", "GT", ";", "}", "break", ";", "case", "V16QImode", ":", "case", "V8HImode", ":", "x", "=", "gen_reg_rtx", "(", "mode", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "x", ",", "gen_rtx_US_MINUS", "(", "mode", ",", "cop0", ",", "cop1", ")", ")", ")", ";", "code", "=", "EQ", ";", "negate", "=", "!", "negate", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "cop0", "=", "x", ";", "cop1", "=", "CONST0_RTX", "(", "mode", ")", ";", "}", "x", "=", "ix86_expand_sse_cmp", "(", "operands", "[", "0", "]", ",", "code", ",", "cop0", ",", "cop1", ",", "operands", "[", "1", "+", "negate", "]", ",", "operands", "[", "2", "-", "negate", "]", ")", ";", "ix86_expand_sse_movcc", "(", "operands", "[", "0", "]", ",", "x", ",", "operands", "[", "1", "+", "negate", "]", ",", "operands", "[", "2", "-", "negate", "]", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Expand", "a", "signed", "integral", "vector", "conditional", "move", "."], "TS_V_token": ["i386", "0", "3", "4", "5", "0x80000000", "4", "0", "1", "2", "0", "1", "2"], "File": "i3863", "Func": "ix86_expand_int_vcond", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2463, "Length": 392, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "*", "mingw32_gt_pch_get_address", "(", "size_t", "size", ",", "int", ")", "{", "void", "*", "res", ";", "res", "=", "VirtualAlloc", "(", "NULL", ",", "size", ",", "MEM_RESERVE", "|", "MEM_TOP_DOWN", ",", "PAGE_NOACCESS", ")", ";", "if", "(", "!", "res", ")", "w32_error", "(", "__FUNCTION__", ",", "__FILE__", ",", "__LINE__", ",", "\"VirtualAlloc\"", ")", ";", "else", "VirtualFree", "(", "res", ",", "0", ",", "MEM_RELEASE", ")", ";", "return", "res", ";", "}", ""], "natrual_language": ["Identify", "an", "address", "that", "'s", "likely", "to", "be", "free", "in", "a", "subsequent", "invocation", "of", "the", "compiler", ".", "The", "area", "should", "be", "able", "to", "hold", "SIZE", "bytes", ".", "FD", "is", "an", "open", "file", "descriptor", "if", "the", "host", "would", "like", "to", "probe", "with", "mmap", "."], "TS_V_token": ["i386", "\"VirtualAlloc\"", "0"], "File": "host-mingw321", "Func": "mingw32_gt_pch_get_address", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2464, "Length": 60, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86RegisterInfo", "::", "getRegPressureLimit", "(", "const", "TargetRegisterClass", "*", "RC", ",", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "unsigned", "FPDiff", "=", "TFI", "->", "hasFP", "(", "MF", ")", "?", "1", ":", "0", ";", "switch", "(", "RC", "->", "getID", "(", ")", ")", "{", "default", ":", "return", "0", ";", "case", "X86", "::", "GR32RegClassID", ":", "return", "4", "-", "FPDiff", ";", "case", "X86", "::", "GR64RegClassID", ":", "return", "12", "-", "FPDiff", ";", "case", "X86", "::", "VR128RegClassID", ":", "return", "Subtarget", ".", "is64Bit", "(", ")", "?", "10", ":", "4", ";", "case", "X86", "::", "VR64RegClassID", ":", "return", "4", ";", "}", "}", ""], "natrual_language": ["Return", "the", "register", "pressure", "``", "high", "water", "mark", "''", "for", "the", "specific", "register", "class", "."], "TS_V_token": ["X86", "X86", "1", "0", "0", "X86::GR32RegClassID", "4", "X86::GR64RegClassID", "12", "X86::VR128RegClassID", "10", "4", "X86::VR64RegClassID", "4"], "File": "X86RegisterInfo52", "Func": "getRegPressureLimit", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2465, "Length": 105, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64TargetMachine", "::", "parseMachineFunctionInfo", "(", "const", "yaml", "::", "MachineFunctionInfo", "&", "MFI", ",", "PerFunctionMIParsingState", "&", "PFS", ",", "SMDiagnostic", "&", "Error", ",", "SMRange", "&", "SourceRange", ")", "const", "{", "const", "auto", "&", "YamlMFI", "=", "static_cast", "<", "const", "yaml", "::", "AArch64FunctionInfo", "&", ">", "(", "MFI", ")", ";", "MachineFunction", "&", "MF", "=", "PFS", ".", "MF", ";", "MF", ".", "getInfo", "<", "AArch64FunctionInfo", ">", "(", ")", "->", "initializeBaseYamlFields", "(", "YamlMFI", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["Parse", "out", "the", "target", "'s", "MachineFunctionInfo", "from", "the", "YAML", "reprsentation", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64TargetMachine35", "Func": "parseMachineFunctionInfo", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2466, "Length": 69, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsMCCodeEmitter", "::", "encodeInstruction", "(", "const", "MCInst", "&", "MI", ",", "raw_ostream", "&", "OS", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "MCInst", "TmpInst", "=", "MI", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "case", "Mips", "::", "DSLL", ":", "case", "Mips", "::", "DSRL", ":", "case", "Mips", "::", "DSRA", ":", "case", "Mips", "::", "DROTR", ":", "LowerLargeShift", "(", "TmpInst", ")", ";", "break", ";", "case", "Mips", "::", "DINS", ":", "LowerDins", "(", "TmpInst", ")", ";", "}", "unsigned", "long", "N", "=", "Fixups", ".", "size", "(", ")", ";", "uint32_t", "Binary", "=", "getBinaryCodeForInstr", "(", "TmpInst", ",", "Fixups", ",", "STI", ")", ";", "unsigned", "Opcode", "=", "TmpInst", ".", "getOpcode", "(", ")", ";", "if", "(", "(", "Opcode", "!=", "Mips", "::", "NOP", ")", "&&", "(", "Opcode", "!=", "Mips", "::", "SLL", ")", "&&", "(", "Opcode", "!=", "Mips", "::", "SLL_MM", ")", "&&", "!", "Binary", ")", "llvm_unreachable", "(", "\"unimplemented opcode in encodeInstruction()\"", ")", ";", "int", "NewOpcode", "=", "-", "1", ";", "if", "(", "isMicroMips", "(", "STI", ")", ")", "{", "if", "(", "isMips32r6", "(", "STI", ")", ")", "{", "NewOpcode", "=", "Mips", "::", "MipsR62MicroMipsR6", "(", "Opcode", ",", "Mips", "::", "Arch_micromipsr6", ")", ";", "if", "(", "NewOpcode", "==", "-", "1", ")", "NewOpcode", "=", "Mips", "::", "Std2MicroMipsR6", "(", "Opcode", ",", "Mips", "::", "Arch_micromipsr6", ")", ";", "}", "else", "NewOpcode", "=", "Mips", "::", "Std2MicroMips", "(", "Opcode", ",", "Mips", "::", "Arch_micromips", ")", ";", "if", "(", "NewOpcode", "==", "-", "1", ")", "NewOpcode", "=", "Mips", "::", "Dsp2MicroMips", "(", "Opcode", ",", "Mips", "::", "Arch_mmdsp", ")", ";", "if", "(", "NewOpcode", "!=", "-", "1", ")", "{", "if", "(", "Fixups", ".", "size", "(", ")", ">", "N", ")", "Fixups", ".", "pop_back", "(", ")", ";", "Opcode", "=", "NewOpcode", ";", "TmpInst", ".", "setOpcode", "(", "NewOpcode", ")", ";", "Binary", "=", "getBinaryCodeForInstr", "(", "TmpInst", ",", "Fixups", ",", "STI", ")", ";", "}", "}", "const", "MCInstrDesc", "&", "Desc", "=", "MCII", ".", "get", "(", "TmpInst", ".", "getOpcode", "(", ")", ")", ";", "unsigned", "Size", "=", "Desc", ".", "getSize", "(", ")", ";", "if", "(", "!", "Size", ")", "llvm_unreachable", "(", "\"Desc.getSize() returns 0\"", ")", ";", "EmitInstruction", "(", "Binary", ",", "Size", ",", "STI", ",", "OS", ")", ";", "}", ""], "natrual_language": ["Encode", "the", "given", "Inst", "to", "bytes", "and", "append", "to", "CB", "."], "TS_V_token": ["Mips", "Mips", "Mips::DSLL", "Mips::DSRL", "Mips::DSRA", "Mips::DROTR", "Mips::DINS", "Mips::NOP", "Mips::SLL", "Mips::SLL_MM", "\"unimplemented opcode in encodeInstruction()\"", "1", "Mips", "Mips", "Mips::MipsR62MicroMipsR6", "Mips::Arch_micromipsr6", "1", "Mips::Std2MicroMipsR6", "Mips::Arch_micromipsr6", "Mips::Std2MicroMips", "Mips::Arch_micromips", "1", "Mips::Dsp2MicroMips", "Mips::Arch_mmdsp", "1", "\"Desc.getSize() returns 0\""], "File": "MipsMCCodeEmitter8", "Func": "encodeInstruction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2467, "Length": 330, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "loongarch_zero_extend_cost", "(", "rtx", "op", ")", "{", "if", "(", "MEM_P", "(", "op", ")", ")", "return", "0", ";", "return", "COSTS_N_INSNS", "(", "1", ")", ";", "}", ""], "natrual_language": ["Return", "the", "cost", "of", "zero-extending", "OP", "to", "mode", "MODE", ",", "not", "including", "the", "cost", "of", "OP", "itself", "."], "TS_V_token": ["loongarch", "0", "1"], "File": "loongarch", "Func": "loongarch_zero_extend_cost", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2468, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86AvoidTrailingCallPass", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "const", "X86Subtarget", "&", "STI", "=", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "const", "X86InstrInfo", "&", "TII", "=", "*", "STI", ".", "getInstrInfo", "(", ")", ";", "assert", "(", "STI", ".", "isTargetWin64", "(", ")", "&&", "\"pass only runs on Win64\"", ")", ";", "if", "(", "!", "MF", ".", "hasWinCFI", "(", ")", ")", "return", "false", ";", "bool", "Changed", "=", "false", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "{", "MachineBasicBlock", "*", "NextMBB", "=", "MBB", ".", "getNextNode", "(", ")", ";", "if", "(", "NextMBB", "&&", "!", "NextMBB", "->", "isEHFuncletEntry", "(", ")", ")", "continue", ";", "auto", "LastRealInstr", "=", "llvm", "::", "find_if", "(", "reverse", "(", "MBB", ")", ",", "isRealInstruction", ")", ";", "bool", "IsEmpty", "=", "LastRealInstr", "==", "MBB", ".", "rend", "(", ")", ";", "bool", "IsCall", "=", "!", "IsEmpty", "&&", "isCallInstruction", "(", "*", "LastRealInstr", ")", ";", "if", "(", "IsEmpty", "||", "IsCall", ")", "{", "LLVM_DEBUG", "(", "{", "if", "(", "IsCall", ")", "{", "dbgs", "(", ")", "<<", "\"inserting int3 after trailing call instruction:\\n\"", ";", "LastRealInstr", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ";", "}", "else", "{", "dbgs", "(", ")", "<<", "\"inserting int3 in trailing empty MBB:\\n\"", ";", "MBB", ".", "dump", "(", ")", ";", "}", "}", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "end", "(", ")", ";", "DebugLoc", "DL", ";", "if", "(", "IsCall", ")", "{", "MBBI", "=", "std", "::", "next", "(", "LastRealInstr", ".", "getReverse", "(", ")", ")", ";", "DL", "=", "LastRealInstr", "->", "getDebugLoc", "(", ")", ";", "}", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "X86", "::", "INT3", ")", ")", ";", "Changed", "=", "true", ";", "}", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "\"pass only runs on Win64\"", "\"inserting int3 after trailing call instruction:\\n\"", "\"inserting int3 in trailing empty MBB:\\n\"", "X86::INT3"], "File": "X86AvoidTrailingCall4", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2469, "Length": 255, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86InstrInfo", "::", "isStoreToStackSlot", "(", "const", "MachineInstr", "*", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "if", "(", "isFrameStoreOpcode", "(", "MI", "->", "getOpcode", "(", ")", ")", ")", "if", "(", "MI", "->", "getOperand", "(", "X86", "::", "AddrNumOperands", ")", ".", "getSubReg", "(", ")", "==", "0", "&&", "isFrameOperand", "(", "MI", ",", "0", ",", "FrameIndex", ")", ")", "return", "MI", "->", "getOperand", "(", "X86", "::", "AddrNumOperands", ")", ".", "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": ["X86", "X86", "X86::AddrNumOperands", "0", "0", "X86::AddrNumOperands", "0"], "File": "X86InstrInfo (2)", "Func": "isStoreToStackSlot", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2470, "Length": 71, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "SystemZInstrInfo", "*", "getInstrInfo", "(", ")", "const", "{", "return", "&", "InstrInfo", ";", "}", ""], "natrual_language": ["TargetInstrInfo", "getter", "."], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZTargetMachine12", "Func": "getInstrInfo", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2471, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "handle_special_swappables", "(", "swap_web_entry", "*", "insn_entry", ",", "unsigned", "i", ")", "{", "rtx_insn", "*", "insn", "=", "insn_entry", "[", "i", "]", ".", "insn", ";", "rtx", "body", "=", "PATTERN", "(", "insn", ")", ";", "switch", "(", "insn_entry", "[", "i", "]", ".", "special_handling", ")", "{", "default", ":", "gcc_unreachable", "(", ")", ";", "case", "SH_CONST_VECTOR", ":", "{", "gcc_assert", "(", "GET_CODE", "(", "body", ")", "==", "SET", ")", ";", "rtx", "rhs", "=", "SET_SRC", "(", "body", ")", ";", "swap_const_vector_halves", "(", "rhs", ")", ";", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"Swapping constant halves in insn %d\\n\"", ",", "i", ")", ";", "break", ";", "}", "case", "SH_SUBREG", ":", "adjust_subreg_index", "(", "body", ")", ";", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"Adjusting subreg in insn %d\\n\"", ",", "i", ")", ";", "break", ";", "case", "SH_NOSWAP_LD", ":", "permute_load", "(", "insn", ")", ";", "break", ";", "case", "SH_NOSWAP_ST", ":", "permute_store", "(", "insn", ")", ";", "break", ";", "case", "SH_EXTRACT", ":", "adjust_extract", "(", "insn", ")", ";", "break", ";", "case", "SH_SPLAT", ":", "adjust_splat", "(", "insn", ")", ";", "break", ";", "case", "SH_XXPERMDI", ":", "adjust_xxpermdi", "(", "insn", ")", ";", "break", ";", "case", "SH_CONCAT", ":", "adjust_concat", "(", "insn", ")", ";", "break", ";", "case", "SH_VPERM", ":", "adjust_vperm", "(", "insn", ")", ";", "break", ";", "}", "}", ""], "natrual_language": ["The", "insn", "described", "by", "INSN_ENTRY", "[", "I", "]", "can", "be", "swapped", ",", "but", "only", "with", "special", "handling", ".", "Take", "care", "of", "that", "here", "."], "TS_V_token": ["rs6000", "\"Swapping constant halves in insn %d\\n\"", "\"Adjusting subreg in insn %d\\n\""], "File": "rs60005", "Func": "handle_special_swappables", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2472, "Length": 185, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "AArch64Subtarget", "::", "AArch64Subtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "TuneCPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ",", "bool", "LittleEndian", ",", "unsigned", "MinSVEVectorSizeInBitsOverride", ",", "unsigned", "MaxSVEVectorSizeInBitsOverride", ")", ":", "AArch64GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "TuneCPU", ",", "FS", ")", ",", "ReserveXRegister", "(", "AArch64", "::", "GPR64commonRegClass", ".", "getNumRegs", "(", ")", ")", ",", "CustomCallSavedXRegs", "(", "AArch64", "::", "GPR64commonRegClass", ".", "getNumRegs", "(", ")", ")", ",", "IsLittle", "(", "LittleEndian", ")", ",", "MinSVEVectorSizeInBits", "(", "MinSVEVectorSizeInBitsOverride", ")", ",", "MaxSVEVectorSizeInBits", "(", "MaxSVEVectorSizeInBitsOverride", ")", ",", "TargetTriple", "(", "TT", ")", ",", "InstrInfo", "(", "initializeSubtargetDependencies", "(", "FS", ",", "CPU", ",", "TuneCPU", ")", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{", "if", "(", "AArch64", "::", "isX18ReservedByDefault", "(", "TT", ")", ")", "ReserveXRegister", ".", "set", "(", "18", ")", ";", "CallLoweringInfo", ".", "reset", "(", "new", "AArch64CallLowering", "(", "*", "getTargetLowering", "(", ")", ")", ")", ";", "InlineAsmLoweringInfo", ".", "reset", "(", "new", "InlineAsmLowering", "(", "getTargetLowering", "(", ")", ")", ")", ";", "Legalizer", ".", "reset", "(", "new", "AArch64LegalizerInfo", "(", "*", "this", ")", ")", ";", "auto", "*", "RBI", "=", "new", "AArch64RegisterBankInfo", "(", "*", "getRegisterInfo", "(", ")", ")", ";", "InstSelector", ".", "reset", "(", "createAArch64InstructionSelector", "(", "*", "static_cast", "<", "const", "AArch64TargetMachine", "*", ">", "(", "&", "TM", ")", ",", "*", "this", ",", "*", "RBI", ")", ")", ";", "RegBankInfo", ".", "reset", "(", "RBI", ")", ";", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "AArch64::GPR64commonRegClass", "AArch64::GPR64commonRegClass", "AArch64::isX18ReservedByDefault", "18", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64Subtarget22", "Func": "AArch64Subtarget", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2473, "Length": 220, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "function_expander", "::", "add_fixed_operand", "(", "rtx", "x", ")", "{", "m_ops", ".", "safe_grow", "(", "m_ops", ".", "length", "(", ")", "+", "1", ")", ";", "create_fixed_operand", "(", "&", "m_ops", ".", "last", "(", ")", ",", "x", ")", ";", "}", ""], "natrual_language": ["Add", "an", "operand", "that", "must", "be", "X", ".", "The", "only", "way", "of", "legitimizing", "an", "invalid", "X", "is", "to", "reload", "the", "address", "of", "a", "MEM", "."], "TS_V_token": ["aarch64", "1"], "File": "aarch64-sve-builtins", "Func": "add_fixed_operand", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2474, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64AsmPrinter", "::", "PrintAsmOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNum", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "O", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "OpNum", ")", ";", "if", "(", "!", "AsmPrinter", "::", "PrintAsmOperand", "(", "MI", ",", "OpNum", ",", "ExtraCode", ",", "O", ")", ")", "return", "false", ";", "if", "(", "ExtraCode", "&&", "ExtraCode", "[", "0", "]", ")", "{", "if", "(", "ExtraCode", "[", "1", "]", "!=", "0", ")", "return", "true", ";", "switch", "(", "ExtraCode", "[", "0", "]", ")", "{", "default", ":", "return", "true", ";", "case", "'w'", ":", "case", "'x'", ":", "if", "(", "MO", ".", "isReg", "(", ")", ")", "return", "printAsmMRegister", "(", "MO", ",", "ExtraCode", "[", "0", "]", ",", "O", ")", ";", "if", "(", "MO", ".", "isImm", "(", ")", "&&", "MO", ".", "getImm", "(", ")", "==", "0", ")", "{", "unsigned", "Reg", "=", "ExtraCode", "[", "0", "]", "==", "'w'", "?", "AArch64", "::", "WZR", ":", "AArch64", "::", "XZR", ";", "O", "<<", "AArch64InstPrinter", "::", "getRegisterName", "(", "Reg", ")", ";", "return", "false", ";", "}", "printOperand", "(", "MI", ",", "OpNum", ",", "O", ")", ";", "return", "false", ";", "case", "'b'", ":", "case", "'h'", ":", "case", "'s'", ":", "case", "'d'", ":", "case", "'q'", ":", "case", "'z'", ":", "if", "(", "MO", ".", "isReg", "(", ")", ")", "{", "const", "TargetRegisterClass", "*", "RC", ";", "switch", "(", "ExtraCode", "[", "0", "]", ")", "{", "case", "'b'", ":", "RC", "=", "&", "AArch64", "::", "FPR8RegClass", ";", "break", ";", "case", "'h'", ":", "RC", "=", "&", "AArch64", "::", "FPR16RegClass", ";", "break", ";", "case", "'s'", ":", "RC", "=", "&", "AArch64", "::", "FPR32RegClass", ";", "break", ";", "case", "'d'", ":", "RC", "=", "&", "AArch64", "::", "FPR64RegClass", ";", "break", ";", "case", "'q'", ":", "RC", "=", "&", "AArch64", "::", "FPR128RegClass", ";", "break", ";", "case", "'z'", ":", "RC", "=", "&", "AArch64", "::", "ZPRRegClass", ";", "break", ";", "default", ":", "return", "true", ";", "}", "return", "printAsmRegInClass", "(", "MO", ",", "RC", ",", "AArch64", "::", "NoRegAltName", ",", "O", ")", ";", "}", "printOperand", "(", "MI", ",", "OpNum", ",", "O", ")", ";", "return", "false", ";", "}", "}", "if", "(", "MO", ".", "isReg", "(", ")", ")", "{", "Register", "Reg", "=", "MO", ".", "getReg", "(", ")", ";", "if", "(", "AArch64", "::", "GPR32allRegClass", ".", "contains", "(", "Reg", ")", "||", "AArch64", "::", "GPR64allRegClass", ".", "contains", "(", "Reg", ")", ")", "return", "printAsmMRegister", "(", "MO", ",", "'x'", ",", "O", ")", ";", "unsigned", "AltName", "=", "AArch64", "::", "NoRegAltName", ";", "const", "TargetRegisterClass", "*", "RegClass", ";", "if", "(", "AArch64", "::", "ZPRRegClass", ".", "contains", "(", "Reg", ")", ")", "{", "RegClass", "=", "&", "AArch64", "::", "ZPRRegClass", ";", "}", "else", "if", "(", "AArch64", "::", "PPRRegClass", ".", "contains", "(", "Reg", ")", ")", "{", "RegClass", "=", "&", "AArch64", "::", "PPRRegClass", ";", "}", "else", "{", "RegClass", "=", "&", "AArch64", "::", "FPR128RegClass", ";", "AltName", "=", "AArch64", "::", "vreg", ";", "}", "return", "printAsmRegInClass", "(", "MO", ",", "RegClass", ",", "AltName", ",", "O", ")", ";", "}", "printOperand", "(", "MI", ",", "OpNum", ",", "O", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["PrintAsmOperand", "-", "Print", "out", "an", "operand", "for", "an", "inline", "asm", "expression", "."], "TS_V_token": ["AArch64", "AArch64", "0", "1", "0", "0", "0", "0", "0", "AArch64::WZR", "AArch64::XZR", "AArch64", "0", "AArch64::FPR8RegClass", "AArch64::FPR16RegClass", "AArch64::FPR32RegClass", "AArch64::FPR64RegClass", "AArch64::FPR128RegClass", "AArch64::ZPRRegClass", "AArch64::NoRegAltName", "AArch64::GPR32allRegClass", "AArch64::GPR64allRegClass", "AArch64::NoRegAltName", "AArch64::ZPRRegClass", "AArch64::ZPRRegClass", "AArch64::PPRRegClass", "AArch64::PPRRegClass", "AArch64::FPR128RegClass", "AArch64::vreg"], "File": "AArch64AsmPrinter14", "Func": "PrintAsmOperand", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2475, "Length": 466, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Comet2RegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", "RS", ")", "const", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"### eliminateFrameIndex 0\\n\"", ")", ";", "assert", "(", "SPAdj", "==", "0", "&&", "\"Unexpected non-zero SPAdj value\"", ")", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "DebugLoc", "DL", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "getIndex", "(", ")", ";", "Register", "FrameReg", ";", "StackOffset", "Offset", "=", "getFrameLowering", "(", "MF", ")", "->", "getFrameIndexReference", "(", "MF", ",", "FrameIndex", ",", "FrameReg", ")", "+", "StackOffset", "::", "getFixed", "(", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "getImm", "(", ")", ")", ";", "if", "(", "!", "isInt", "<", "16", ">", "(", "Offset", ".", "getFixed", "(", ")", ")", ")", "{", "report_fatal_error", "(", "\"Frame offsets outside of the signed 16-bit range not supported\"", ")", ";", "}", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ")", ";", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "ChangeToImmediate", "(", "Offset", ".", "getFixed", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["Comet2", "Comet2", "\"### eliminateFrameIndex 0\\n\"", "0", "\"Unexpected non-zero SPAdj value\"", "1", "16", "\"Frame offsets outside of the signed 16-bit range not supported\"", "1"], "File": "Comet2RegisterInfo", "Func": "eliminateFrameIndex", "Target": "Comet2", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2476, "Length": 178, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "return", "SelectionDAGISel", "::", "runOnMachineFunction", "(", "MF", ")", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Lanai"], "File": "LanaiISelDAGToDAG", "Func": "runOnMachineFunction", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2477, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "rs6000_expand_extract_even", "(", "rtx", "target", ",", "rtx", "op0", ",", "rtx", "op1", ")", "{", "machine_mode", "vmode", "=", "GET_MODE", "(", "target", ")", ";", "unsigned", "i", ",", "nelt", "=", "GET_MODE_NUNITS", "(", "vmode", ")", ";", "rtx", "perm", "[", "16", "]", ";", "for", "(", "i", "=", "0", ";", "i", "<", "nelt", ";", "i", "++", ")", "perm", "[", "i", "]", "=", "GEN_INT", "(", "i", "*", "2", ")", ";", "rs6000_do_expand_vec_perm", "(", "target", ",", "op0", ",", "op1", ",", "vmode", ",", "nelt", ",", "perm", ")", ";", "}", ""], "natrual_language": ["Expand", "an", "extract", "even", "operation", "."], "TS_V_token": ["rs6000", "16", "0", "2"], "File": "rs60004", "Func": "rs6000_expand_extract_even", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2478, "Length": 78, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isMem", "(", "RegisterKind", "RegKind", ",", "bool", "HasIndex", ")", "const", "{", "return", "(", "Kind", "==", "KindMem", "&&", "Mem", ".", "RegKind", "==", "RegKind", "&&", "(", "HasIndex", "||", "!", "Mem", ".", "Index", ")", ")", ";", "}", ""], "natrual_language": ["isMem", "-", "Is", "this", "a", "memory", "operand", "?"], "TS_V_token": ["SystemZ"], "File": "SystemZAsmParser2", "Func": "isMem", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2479, "Length": 34, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "if", "(", "skipFunction", "(", "*", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "const", "PPCSubtarget", "&", "STI", "=", "MF", ".", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ";", "if", "(", "!", "STI", ".", "hasVSX", "(", ")", "||", "!", "STI", ".", "needsSwapsForVSXMemOps", "(", ")", ")", "return", "false", ";", "bool", "Changed", "=", "false", ";", "initialize", "(", "MF", ")", ";", "if", "(", "gatherVectorInstructions", "(", ")", ")", "{", "formWebs", "(", ")", ";", "recordUnoptimizableWebs", "(", ")", ";", "markSwapsForRemoval", "(", ")", ";", "Changed", "=", "removeSwaps", "(", ")", ";", "}", "delete", "EC", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["PowerPC", "PPC", "PPC"], "File": "PPCVSXSwapRemoval12", "Func": "runOnMachineFunction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2480, "Length": 100, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86InstrInfo", "::", "isHighLatencyDef", "(", "int", "opc", ")", "const", "{", "switch", "(", "opc", ")", "{", "default", ":", "return", "false", ";", "case", "X86", "::", "DIVSDrm", ":", "case", "X86", "::", "DIVSDrm_Int", ":", "case", "X86", "::", "DIVSDrr", ":", "case", "X86", "::", "DIVSDrr_Int", ":", "case", "X86", "::", "DIVSSrm", ":", "case", "X86", "::", "DIVSSrm_Int", ":", "case", "X86", "::", "DIVSSrr", ":", "case", "X86", "::", "DIVSSrr_Int", ":", "case", "X86", "::", "SQRTPDm", ":", "case", "X86", "::", "SQRTPDm_Int", ":", "case", "X86", "::", "SQRTPDr", ":", "case", "X86", "::", "SQRTPDr_Int", ":", "case", "X86", "::", "SQRTPSm", ":", "case", "X86", "::", "SQRTPSm_Int", ":", "case", "X86", "::", "SQRTPSr", ":", "case", "X86", "::", "SQRTPSr_Int", ":", "case", "X86", "::", "SQRTSDm", ":", "case", "X86", "::", "SQRTSDm_Int", ":", "case", "X86", "::", "SQRTSDr", ":", "case", "X86", "::", "SQRTSDr_Int", ":", "case", "X86", "::", "SQRTSSm", ":", "case", "X86", "::", "SQRTSSm_Int", ":", "case", "X86", "::", "SQRTSSr", ":", "case", "X86", "::", "SQRTSSr_Int", ":", "return", "true", ";", "}", "}", ""], "natrual_language": ["Return", "true", "if", "this", "opcode", "has", "high", "latency", "to", "its", "result", "."], "TS_V_token": ["X86", "X86", "X86::DIVSDrm", "X86::DIVSDrm_Int", "X86::DIVSDrr", "X86::DIVSDrr_Int", "X86::DIVSSrm", "X86::DIVSSrm_Int", "X86::DIVSSrr", "X86::DIVSSrr_Int", "X86::SQRTPDm", "X86::SQRTPDm_Int", "X86::SQRTPDr", "X86::SQRTPDr_Int", "X86::SQRTPSm", "X86::SQRTPSm_Int", "X86::SQRTPSr", "X86::SQRTPSr_Int", "X86::SQRTSDm", "X86::SQRTSDm_Int", "X86::SQRTSDr", "X86::SQRTSDr_Int", "X86::SQRTSSm", "X86::SQRTSSm_Int", "X86::SQRTSSr", "X86::SQRTSSr_Int"], "File": "X86InstrInfo12", "Func": "isHighLatencyDef", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2481, "Length": 145, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "pru_legitimate_address_p", "(", "machine_mode", "mode", ",", "rtx", "operand", ",", "bool", "strict_p", ")", "{", "switch", "(", "GET_CODE", "(", "operand", ")", ")", "{", "case", "SYMBOL_REF", ":", "case", "LABEL_REF", ":", "case", "CONST", ":", "case", "CONST_WIDE_INT", ":", "return", "false", ";", "case", "CONST_INT", ":", "return", "ctable_addr_operand", "(", "operand", ",", "VOIDmode", ")", ";", "case", "REG", ":", "return", "pru_regno_ok_for_base_p", "(", "REGNO", "(", "operand", ")", ",", "strict_p", ")", ";", "case", "PLUS", ":", "{", "rtx", "op0", "=", "XEXP", "(", "operand", ",", "0", ")", ";", "rtx", "op1", "=", "XEXP", "(", "operand", ",", "1", ")", ";", "return", "pru_valid_addr_expr_p", "(", "mode", ",", "op0", ",", "op1", ",", "strict_p", ")", ";", "}", "default", ":", "break", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Implement", "TARGET_LEGITIMATE_ADDRESS_P", "."], "TS_V_token": ["pru", "0", "1"], "File": "pru", "Func": "pru_legitimate_address_p", "Target": "pru", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2482, "Length": 108, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "getOppositeBranchOpc", "(", "unsigned", "Opcode", ")", "{", "switch", "(", "Opcode", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown conditional branch!\"", ")", ";", "case", "CSKY", "::", "BT32", ":", "return", "CSKY", "::", "BF32", ";", "case", "CSKY", "::", "BT16", ":", "return", "CSKY", "::", "BF16", ";", "case", "CSKY", "::", "BF32", ":", "return", "CSKY", "::", "BT32", ";", "case", "CSKY", "::", "BF16", ":", "return", "CSKY", "::", "BT16", ";", "case", "CSKY", "::", "BHZ32", ":", "return", "CSKY", "::", "BLSZ32", ";", "case", "CSKY", "::", "BHSZ32", ":", "return", "CSKY", "::", "BLZ32", ";", "case", "CSKY", "::", "BLZ32", ":", "return", "CSKY", "::", "BHSZ32", ";", "case", "CSKY", "::", "BLSZ32", ":", "return", "CSKY", "::", "BHZ32", ";", "case", "CSKY", "::", "BNEZ32", ":", "return", "CSKY", "::", "BEZ32", ";", "case", "CSKY", "::", "BEZ32", ":", "return", "CSKY", "::", "BNEZ32", ";", "}", "}", ""], "natrual_language": ["getOppositeBranchOpc", "-", "Return", "the", "inverse", "of", "the", "specified", "opcode", ",", "e.g", "."], "TS_V_token": ["CSKY", "\"Unknown conditional branch!\"", "CSKY::BT32", "CSKY::BF32", "CSKY::BT16", "CSKY::BF16", "CSKY::BF32", "CSKY::BT32", "CSKY::BF16", "CSKY::BT16", "CSKY::BHZ32", "CSKY::BLSZ32", "CSKY::BHSZ32", "CSKY::BLZ32", "CSKY::BLZ32", "CSKY::BHSZ32", "CSKY::BLSZ32", "CSKY::BHZ32", "CSKY::BNEZ32", "CSKY::BEZ32", "CSKY::BEZ32", "CSKY::BNEZ32"], "File": "CSKYInstrInfo1", "Func": "getOppositeBranchOpc", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2483, "Length": 122, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "loongarch_small_data_pattern_p", "(", "rtx", "op", ")", "{", "return", "loongarch_small_data_pattern_1", "(", "op", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "OP", "refers", "to", "small", "data", "symbols", "directly", "."], "TS_V_token": ["loongarch"], "File": "loongarch", "Func": "loongarch_small_data_pattern_p", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2484, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "mmix_gen_compare_reg", "(", "RTX_CODE", "code", ",", "rtx", "x", ",", "rtx", "y", ")", "{", "machine_mode", "ccmode", "=", "SELECT_CC_MODE", "(", "code", ",", "x", ",", "y", ")", ";", "return", "gen_reg_rtx", "(", "ccmode", ")", ";", "}", ""], "natrual_language": ["X", "and", "Y", "are", "two", "things", "to", "compare", "using", "CODE", ".", "Emit", "a", "compare", "insn", "if", "possible", "and", "return", "the", "rtx", "for", "the", "cc-reg", "in", "the", "proper", "mode", ",", "or", "NULL_RTX", "if", "this", "is", "not", "a", "valid", "comparison", "."], "TS_V_token": ["mmix"], "File": "mmix", "Func": "mmix_gen_compare_reg", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2485, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "DCPU16Subtarget", "*", "getSubtargetImpl", "(", ")", "const", "{", "return", "&", "Subtarget", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["Dcpu16", "DCPU16"], "File": "Dcpu16TargetMachine", "Func": "getSubtargetImpl", "Target": "Dcpu16", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2486, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "::", "iterator", "ARMBaseInstrInfo", "::", "insertOutlinedCall", "(", "Module", "&", "M", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "It", ",", "MachineFunction", "&", "MF", ",", "const", "outliner", "::", "Candidate", "&", "C", ")", "const", "{", "MachineInstrBuilder", "MIB", ";", "MachineBasicBlock", "::", "iterator", "CallPt", ";", "unsigned", "Opc", ";", "bool", "isThumb", "=", "Subtarget", ".", "isThumb", "(", ")", ";", "if", "(", "C", ".", "CallConstructionID", "==", "MachineOutlinerTailCall", ")", "{", "Opc", "=", "isThumb", "?", "Subtarget", ".", "isTargetMachO", "(", ")", "?", "ARM", "::", "tTAILJMPd", ":", "ARM", "::", "tTAILJMPdND", ":", "ARM", "::", "TAILJMPd", ";", "MIB", "=", "BuildMI", "(", "MF", ",", "DebugLoc", "(", ")", ",", "get", "(", "Opc", ")", ")", ".", "addGlobalAddress", "(", "M", ".", "getNamedValue", "(", "MF", ".", "getName", "(", ")", ")", ")", ";", "if", "(", "isThumb", ")", "MIB", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "It", "=", "MBB", ".", "insert", "(", "It", ",", "MIB", ")", ";", "return", "It", ";", "}", "Opc", "=", "isThumb", "?", "ARM", "::", "tBL", ":", "ARM", "::", "BL", ";", "MachineInstrBuilder", "CallMIB", "=", "BuildMI", "(", "MF", ",", "DebugLoc", "(", ")", ",", "get", "(", "Opc", ")", ")", ";", "if", "(", "isThumb", ")", "CallMIB", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "CallMIB", ".", "addGlobalAddress", "(", "M", ".", "getNamedValue", "(", "MF", ".", "getName", "(", ")", ")", ")", ";", "if", "(", "C", ".", "CallConstructionID", "==", "MachineOutlinerRegSave", ")", "{", "unsigned", "Reg", "=", "findRegisterToSaveLRTo", "(", "C", ")", ";", "assert", "(", "Reg", "!=", "0", "&&", "\"No callee-saved register available?\"", ")", ";", "if", "(", "!", "MBB", ".", "isLiveIn", "(", "ARM", "::", "LR", ")", ")", "MBB", ".", "addLiveIn", "(", "ARM", "::", "LR", ")", ";", "copyPhysReg", "(", "MBB", ",", "It", ",", "DebugLoc", "(", ")", ",", "Reg", ",", "ARM", "::", "LR", ",", "true", ")", ";", "CallPt", "=", "MBB", ".", "insert", "(", "It", ",", "CallMIB", ")", ";", "copyPhysReg", "(", "MBB", ",", "It", ",", "DebugLoc", "(", ")", ",", "ARM", "::", "LR", ",", "Reg", ",", "true", ")", ";", "It", "--", ";", "return", "CallPt", ";", "}", "It", "=", "MBB", ".", "insert", "(", "It", ",", "CallMIB", ")", ";", "return", "It", ";", "}", ""], "natrual_language": ["Insert", "a", "call", "to", "an", "outlined", "function", "into", "the", "program", "."], "TS_V_token": ["ARM", "ARM", "ARM::tTAILJMPd", "ARM::tTAILJMPdND", "ARM::TAILJMPd", "ARMCC::AL", "ARM::tBL", "ARM::BL", "ARMCC::AL", "0", "\"No callee-saved register available?\"", "ARM::LR", "ARM::LR", "ARM::LR", "ARM::LR"], "File": "ARMBaseInstrInfo127", "Func": "insertOutlinedCall", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2487, "Length": 325, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "ConstraintType", "SystemZTargetLowering", "::", "getConstraintType", "(", "const", "std", "::", "string", "&", "Constraint", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'a'", ":", "case", "'d'", ":", "case", "'f'", ":", "case", "'h'", ":", "case", "'r'", ":", "return", "C_RegisterClass", ";", "case", "'Q'", ":", "case", "'R'", ":", "case", "'S'", ":", "case", "'T'", ":", "case", "'m'", ":", "return", "C_Memory", ";", "case", "'I'", ":", "case", "'J'", ":", "case", "'K'", ":", "case", "'L'", ":", "case", "'M'", ":", "return", "C_Other", ";", "default", ":", "break", ";", "}", "}", "return", "TargetLowering", "::", "getConstraintType", "(", "Constraint", ")", ";", "}", ""], "natrual_language": ["Given", "a", "constraint", "letter", ",", "return", "the", "type", "of", "constraint", "for", "this", "target", "."], "TS_V_token": ["SystemZ", "SystemZ", "1", "0"], "File": "SystemZISelLowering103", "Func": "getConstraintType", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2488, "Length": 104, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86ATTAsmPrinter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "const", "Function", "*", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "this", "->", "MF", "=", "&", "MF", ";", "unsigned", "CC", "=", "F", "->", "getCallingConv", "(", ")", ";", "SetupMachineFunction", "(", "MF", ")", ";", "O", "<<", "\"\\n\\n\"", ";", "if", "(", "CC", "==", "CallingConv", "::", "X86_StdCall", "||", "CC", "==", "CallingConv", "::", "X86_FastCall", ")", "FunctionInfoMap", "[", "F", "]", "=", "*", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", ";", "EmitConstantPool", "(", "MF", ".", "getConstantPool", "(", ")", ")", ";", "if", "(", "F", "->", "hasDLLExportLinkage", "(", ")", ")", "DLLExportedFns", ".", "insert", "(", "Mang", "->", "makeNameProper", "(", "F", "->", "getName", "(", ")", ",", "\"\"", ")", ")", ";", "emitFunctionHeader", "(", "MF", ")", ";", "if", "(", "TAI", "->", "doesSupportDebugInformation", "(", ")", "||", "TAI", "->", "doesSupportExceptionHandling", "(", ")", ")", "DW", "->", "BeginFunction", "(", "&", "MF", ")", ";", "bool", "hasAnyRealCode", "=", "false", ";", "for", "(", "MachineFunction", "::", "const_iterator", "I", "=", "MF", ".", "begin", "(", ")", ",", "E", "=", "MF", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "if", "(", "!", "I", "->", "pred_empty", "(", ")", ")", "{", "printBasicBlockLabel", "(", "I", ",", "true", ",", "true", ",", "VerboseAsm", ")", ";", "O", "<<", "'\\n'", ";", "}", "for", "(", "MachineBasicBlock", "::", "const_iterator", "II", "=", "I", "->", "begin", "(", ")", ",", "IE", "=", "I", "->", "end", "(", ")", ";", "II", "!=", "IE", ";", "++", "II", ")", "{", "if", "(", "!", "II", "->", "isLabel", "(", ")", ")", "hasAnyRealCode", "=", "true", ";", "printMachineInstruction", "(", "II", ")", ";", "}", "}", "if", "(", "Subtarget", "->", "isTargetDarwin", "(", ")", "&&", "!", "hasAnyRealCode", ")", "{", "O", "<<", "\"\\tnop\\n\"", ";", "}", "if", "(", "TAI", "->", "hasDotTypeDotSizeDirective", "(", ")", ")", "O", "<<", "\"\\t.size\\t\"", "<<", "CurrentFnName", "<<", "\", .-\"", "<<", "CurrentFnName", "<<", "'\\n'", ";", "if", "(", "TAI", "->", "doesSupportDebugInformation", "(", ")", ")", "DW", "->", "EndFunction", "(", "&", "MF", ")", ";", "EmitJumpTableInfo", "(", "MF", ".", "getJumpTableInfo", "(", ")", ",", "MF", ")", ";", "O", ".", "flush", "(", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "\"\\n\\n\"", "X86", "X86", "X86", "\"\"", "\"\\tnop\\n\"", "\"\\t.size\\t\"", "\", .-\""], "File": "X86ATTAsmPrinter1", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2489, "Length": 320, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "PPCRegisterInfo", "*", "getRegisterInfo", "(", ")", "const", "{", "return", "&", "InstrInfo", ".", "getRegisterInfo", "(", ")", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCTargetMachine11", "Func": "getRegisterInfo", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2490, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "is_indirect_tailcall_p", "(", "rtx", "call", ")", "{", "rtx", "pat", "=", "PATTERN", "(", "call", ")", ";", "pat", "=", "XVECEXP", "(", "pat", ",", "0", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "pat", ")", "==", "SET", ")", "pat", "=", "SET_SRC", "(", "pat", ")", ";", "pat", "=", "XEXP", "(", "XEXP", "(", "pat", ",", "0", ")", ",", "0", ")", ";", "return", "REG_P", "(", "pat", ")", ";", "}", ""], "natrual_language": ["We", "do", "not", "know", "if", "r3", "will", "be", "available", "because", "we", "do", "have", "an", "indirect", "tailcall", "happening", "in", "this", "particular", "case", "."], "TS_V_token": ["arm", "0", "0", "0", "0"], "File": "arm", "Func": "is_indirect_tailcall_p", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2491, "Length": 64, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Mips16RegisterInfo", "::", "saveScavengerRegister", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "MachineBasicBlock", "::", "iterator", "&", "UseMI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "unsigned", "Reg", ")", "const", "{", "DebugLoc", "DL", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "Subtarget", ".", "getInstrInfo", "(", ")", ";", "TII", ".", "copyPhysReg", "(", "MBB", ",", "I", ",", "DL", ",", "Mips", "::", "T0", ",", "Reg", ",", "true", ")", ";", "TII", ".", "copyPhysReg", "(", "MBB", ",", "UseMI", ",", "DL", ",", "Reg", ",", "Mips", "::", "T0", ",", "true", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Spill", "the", "register", "so", "it", "can", "be", "used", "by", "the", "register", "scavenger", "."], "TS_V_token": ["Mips", "Mips", "Mips::T0", "Mips::T0"], "File": "Mips16RegisterInfo4", "Func": "saveScavengerRegister", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2492, "Length": 87, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "PPCTargetLowering", "::", "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", ";", "bool", "isPatchPoint", "=", "CLI", ".", "IsPatchPoint", ";", "ImmutableCallSite", "*", "CS", "=", "CLI", ".", "CS", ";", "if", "(", "isTailCall", ")", "{", "if", "(", "Subtarget", ".", "useLongCalls", "(", ")", "&&", "!", "(", "CS", "&&", "CS", "->", "isMustTailCall", "(", ")", ")", ")", "isTailCall", "=", "false", ";", "else", "if", "(", "Subtarget", ".", "isSVR4ABI", "(", ")", "&&", "Subtarget", ".", "isPPC64", "(", ")", ")", "isTailCall", "=", "IsEligibleForTailCallOptimization_64SVR4", "(", "Callee", ",", "CallConv", ",", "CS", ",", "isVarArg", ",", "Outs", ",", "Ins", ",", "DAG", ")", ";", "else", "isTailCall", "=", "IsEligibleForTailCallOptimization", "(", "Callee", ",", "CallConv", ",", "isVarArg", ",", "Ins", ",", "DAG", ")", ";", "if", "(", "isTailCall", ")", "{", "++", "NumTailCalls", ";", "if", "(", "!", "getTargetMachine", "(", ")", ".", "Options", ".", "GuaranteedTailCallOpt", ")", "++", "NumSiblingCalls", ";", "assert", "(", "isa", "<", "GlobalAddressSDNode", ">", "(", "Callee", ")", "&&", "\"Callee should be an llvm::Function object.\"", ")", ";", "DEBUG", "(", "const", "GlobalValue", "*", "GV", "=", "cast", "<", "GlobalAddressSDNode", ">", "(", "Callee", ")", "->", "getGlobal", "(", ")", ";", "const", "unsigned", "Width", "=", "80", "-", "strlen", "(", "\"TCO caller: \"", ")", "-", "strlen", "(", "\", callee linkage: 0, 0\"", ")", ";", "dbgs", "(", ")", "<<", "\"TCO caller: \"", "<<", "left_justify", "(", "DAG", ".", "getMachineFunction", "(", ")", ".", "getName", "(", ")", ",", "Width", ")", "<<", "\", callee linkage: \"", "<<", "GV", "->", "getVisibility", "(", ")", "<<", "\", \"", "<<", "GV", "->", "getLinkage", "(", ")", "<<", "\"\\n\"", ")", ";", "}", "}", "if", "(", "!", "isTailCall", "&&", "CS", "&&", "CS", "->", "isMustTailCall", "(", ")", ")", "report_fatal_error", "(", "\"failed to perform tail call elimination on a call \"", "\"site marked musttail\"", ")", ";", "if", "(", "Subtarget", ".", "useLongCalls", "(", ")", "&&", "isa", "<", "GlobalAddressSDNode", ">", "(", "Callee", ")", "&&", "!", "isTailCall", ")", "Callee", "=", "LowerGlobalAddress", "(", "Callee", ",", "DAG", ")", ";", "if", "(", "Subtarget", ".", "isSVR4ABI", "(", ")", ")", "{", "if", "(", "Subtarget", ".", "isPPC64", "(", ")", ")", "return", "LowerCall_64SVR4", "(", "Chain", ",", "Callee", ",", "CallConv", ",", "isVarArg", ",", "isTailCall", ",", "isPatchPoint", ",", "Outs", ",", "OutVals", ",", "Ins", ",", "dl", ",", "DAG", ",", "InVals", ",", "CS", ")", ";", "else", "return", "LowerCall_32SVR4", "(", "Chain", ",", "Callee", ",", "CallConv", ",", "isVarArg", ",", "isTailCall", ",", "isPatchPoint", ",", "Outs", ",", "OutVals", ",", "Ins", ",", "dl", ",", "DAG", ",", "InVals", ",", "CS", ")", ";", "}", "return", "LowerCall_Darwin", "(", "Chain", ",", "Callee", ",", "CallConv", ",", "isVarArg", ",", "isTailCall", ",", "isPatchPoint", ",", "Outs", ",", "OutVals", ",", "Ins", ",", "dl", ",", "DAG", ",", "InVals", ",", "CS", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "calls", "into", "the", "specified", "DAG", "."], "TS_V_token": ["PowerPC", "PPC", "ISD::OutputArg", "ISD::InputArg", "PPC", "\"Callee should be an llvm::Function object.\"", "80", "\"TCO caller: \"", "\", callee linkage: 0, 0\"", "\"TCO caller: \"", "\", callee linkage: \"", "\", \"", "\"\\n\"", "\"failed to perform tail call elimination on a call \"", "\"site marked musttail\"", "PPC"], "File": "PPCISelLowering135", "Func": "LowerCall", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2493, "Length": 473, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCLoopDataPrefetch", "::", "runOnFunction", "(", "Function", "&", "F", ")", "{", "LI", "=", "&", "getAnalysis", "<", "LoopInfoWrapperPass", ">", "(", ")", ".", "getLoopInfo", "(", ")", ";", "SE", "=", "&", "getAnalysis", "<", "ScalarEvolution", ">", "(", ")", ";", "DL", "=", "&", "F", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "AC", "=", "&", "getAnalysis", "<", "AssumptionCacheTracker", ">", "(", ")", ".", "getAssumptionCache", "(", "F", ")", ";", "TTI", "=", "&", "getAnalysis", "<", "TargetTransformInfoWrapperPass", ">", "(", ")", ".", "getTTI", "(", "F", ")", ";", "bool", "MadeChange", "=", "false", ";", "for", "(", "LoopInfo", "::", "iterator", "I", "=", "LI", "->", "begin", "(", ")", ",", "E", "=", "LI", "->", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "Loop", "*", "L", "=", "*", "I", ";", "MadeChange", "|=", "runOnLoop", "(", "L", ")", ";", "}", "return", "MadeChange", ";", "}", ""], "natrual_language": ["runOnFunction", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "the", "per-function", "processing", "of", "the", "pass", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCLoopDataPrefetch1", "Func": "runOnFunction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2494, "Length": 130, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "AArch64MCExpr", "::", "getVariantKindName", "(", ")", "const", "{", "switch", "(", "static_cast", "<", "uint32_t", ">", "(", "getKind", "(", ")", ")", ")", "{", "case", "VK_CALL", ":", "return", "\"\"", ";", "case", "VK_LO12", ":", "return", "\":lo12:\"", ";", "case", "VK_ABS_G3", ":", "return", "\":abs_g3:\"", ";", "case", "VK_ABS_G2", ":", "return", "\":abs_g2:\"", ";", "case", "VK_ABS_G2_S", ":", "return", "\":abs_g2_s:\"", ";", "case", "VK_ABS_G2_NC", ":", "return", "\":abs_g2_nc:\"", ";", "case", "VK_ABS_G1", ":", "return", "\":abs_g1:\"", ";", "case", "VK_ABS_G1_S", ":", "return", "\":abs_g1_s:\"", ";", "case", "VK_ABS_G1_NC", ":", "return", "\":abs_g1_nc:\"", ";", "case", "VK_ABS_G0", ":", "return", "\":abs_g0:\"", ";", "case", "VK_ABS_G0_S", ":", "return", "\":abs_g0_s:\"", ";", "case", "VK_ABS_G0_NC", ":", "return", "\":abs_g0_nc:\"", ";", "case", "VK_DTPREL_G2", ":", "return", "\":dtprel_g2:\"", ";", "case", "VK_DTPREL_G1", ":", "return", "\":dtprel_g1:\"", ";", "case", "VK_DTPREL_G1_NC", ":", "return", "\":dtprel_g1_nc:\"", ";", "case", "VK_DTPREL_G0", ":", "return", "\":dtprel_g0:\"", ";", "case", "VK_DTPREL_G0_NC", ":", "return", "\":dtprel_g0_nc:\"", ";", "case", "VK_DTPREL_HI12", ":", "return", "\":dtprel_hi12:\"", ";", "case", "VK_DTPREL_LO12", ":", "return", "\":dtprel_lo12:\"", ";", "case", "VK_DTPREL_LO12_NC", ":", "return", "\":dtprel_lo12_nc:\"", ";", "case", "VK_TPREL_G2", ":", "return", "\":tprel_g2:\"", ";", "case", "VK_TPREL_G1", ":", "return", "\":tprel_g1:\"", ";", "case", "VK_TPREL_G1_NC", ":", "return", "\":tprel_g1_nc:\"", ";", "case", "VK_TPREL_G0", ":", "return", "\":tprel_g0:\"", ";", "case", "VK_TPREL_G0_NC", ":", "return", "\":tprel_g0_nc:\"", ";", "case", "VK_TPREL_HI12", ":", "return", "\":tprel_hi12:\"", ";", "case", "VK_TPREL_LO12", ":", "return", "\":tprel_lo12:\"", ";", "case", "VK_TPREL_LO12_NC", ":", "return", "\":tprel_lo12_nc:\"", ";", "case", "VK_TLSDESC_LO12", ":", "return", "\":tlsdesc_lo12:\"", ";", "case", "VK_ABS_PAGE", ":", "return", "\"\"", ";", "case", "VK_ABS_PAGE_NC", ":", "return", "\":pg_hi21_nc:\"", ";", "case", "VK_GOT_PAGE", ":", "return", "\":got:\"", ";", "case", "VK_GOT_LO12", ":", "return", "\":got_lo12:\"", ";", "case", "VK_GOTTPREL_PAGE", ":", "return", "\":gottprel:\"", ";", "case", "VK_GOTTPREL_LO12_NC", ":", "return", "\":gottprel_lo12:\"", ";", "case", "VK_GOTTPREL_G1", ":", "return", "\":gottprel_g1:\"", ";", "case", "VK_GOTTPREL_G0_NC", ":", "return", "\":gottprel_g0_nc:\"", ";", "case", "VK_TLSDESC", ":", "return", "\"\"", ";", "case", "VK_TLSDESC_PAGE", ":", "return", "\":tlsdesc:\"", ";", "case", "VK_SECREL_LO12", ":", "return", "\":secrel_lo12:\"", ";", "case", "VK_SECREL_HI12", ":", "return", "\":secrel_hi12:\"", ";", "default", ":", "llvm_unreachable", "(", "\"Invalid ELF symbol kind\"", ")", ";", "}", "}", ""], "natrual_language": ["Convert", "the", "variant", "kind", "into", "an", "ELF-appropriate", "modifier", "(", "e.g", "."], "TS_V_token": ["AArch64", "AArch64", "\"\"", "\":lo12:\"", "\":abs_g3:\"", "\":abs_g2:\"", "\":abs_g2_s:\"", "\":abs_g2_nc:\"", "\":abs_g1:\"", "\":abs_g1_s:\"", "\":abs_g1_nc:\"", "\":abs_g0:\"", "\":abs_g0_s:\"", "\":abs_g0_nc:\"", "\":dtprel_g2:\"", "\":dtprel_g1:\"", "\":dtprel_g1_nc:\"", "\":dtprel_g0:\"", "\":dtprel_g0_nc:\"", "\":dtprel_hi12:\"", "\":dtprel_lo12:\"", "\":dtprel_lo12_nc:\"", "\":tprel_g2:\"", "\":tprel_g1:\"", "\":tprel_g1_nc:\"", "\":tprel_g0:\"", "\":tprel_g0_nc:\"", "\":tprel_hi12:\"", "\":tprel_lo12:\"", "\":tprel_lo12_nc:\"", "\":tlsdesc_lo12:\"", "\"\"", "\":pg_hi21_nc:\"", "\":got:\"", "\":got_lo12:\"", "\":gottprel:\"", "\":gottprel_lo12:\"", "\":gottprel_g1:\"", "\":gottprel_g0_nc:\"", "\"\"", "\":tlsdesc:\"", "\":secrel_lo12:\"", "\":secrel_hi12:\"", "\"Invalid ELF symbol kind\""], "File": "AArch64MCExpr12", "Func": "getVariantKindName", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2495, "Length": 276, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "init_window", "(", "int", "window_num", ")", "{", "int", "i", ";", "dispatch_windows", "*", "new_list", ";", "if", "(", "window_num", "==", "0", ")", "new_list", "=", "dispatch_window_list", ";", "else", "new_list", "=", "dispatch_window_list1", ";", "new_list", "->", "num_insn", "=", "0", ";", "new_list", "->", "num_uops", "=", "0", ";", "new_list", "->", "window_size", "=", "0", ";", "new_list", "->", "next", "=", "NULL", ";", "new_list", "->", "prev", "=", "NULL", ";", "new_list", "->", "window_num", "=", "window_num", ";", "new_list", "->", "num_imm", "=", "0", ";", "new_list", "->", "num_imm_32", "=", "0", ";", "new_list", "->", "num_imm_64", "=", "0", ";", "new_list", "->", "imm_size", "=", "0", ";", "new_list", "->", "num_loads", "=", "0", ";", "new_list", "->", "num_stores", "=", "0", ";", "new_list", "->", "violation", "=", "false", ";", "for", "(", "i", "=", "0", ";", "i", "<", "MAX_INSN", ";", "i", "++", ")", "{", "new_list", "->", "window", "[", "i", "]", ".", "insn", "=", "NULL", ";", "new_list", "->", "window", "[", "i", "]", ".", "group", "=", "disp_no_group", ";", "new_list", "->", "window", "[", "i", "]", ".", "path", "=", "no_path", ";", "new_list", "->", "window", "[", "i", "]", ".", "byte_len", "=", "0", ";", "new_list", "->", "window", "[", "i", "]", ".", "imm_bytes", "=", "0", ";", "}", "return", ";", "}", ""], "natrual_language": ["This", "function", "initializes", "a", "dispatch", "window", "and", "the", "list", "container", "holding", "a", "pointer", "to", "the", "window", "."], "TS_V_token": ["i386", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "File": "i3864", "Func": "init_window", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2496, "Length": 181, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "output_indirect_thunk_function", "(", "enum", "indirect_thunk_prefix", "need_prefix", ",", "unsigned", "int", "regno", ",", "bool", "ret_p", ")", "{", "char", "name", "[", "32", "]", ";", "tree", "decl", ";", "indirect_thunk_name", "(", "name", ",", "regno", ",", "need_prefix", ",", "ret_p", ")", ";", "decl", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "FUNCTION_DECL", ",", "get_identifier", "(", "name", ")", ",", "build_function_type_list", "(", "void_type_node", ",", "NULL_TREE", ")", ")", ";", "DECL_RESULT", "(", "decl", ")", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "RESULT_DECL", ",", "NULL_TREE", ",", "void_type_node", ")", ";", "TREE_PUBLIC", "(", "decl", ")", "=", "1", ";", "TREE_STATIC", "(", "decl", ")", "=", "1", ";", "DECL_IGNORED_P", "(", "decl", ")", "=", "1", ";", "if", "(", "TARGET_MACHO", ")", "{", "switch_to_section", "(", "darwin_sections", "[", "picbase_thunk_section", "]", ")", ";", "fputs", "(", "\"\\t.weak_definition\\t\"", ",", "asm_out_file", ")", ";", "assemble_name", "(", "asm_out_file", ",", "name", ")", ";", "fputs", "(", "\"\\n\\t.private_extern\\t\"", ",", "asm_out_file", ")", ";", "assemble_name", "(", "asm_out_file", ",", "name", ")", ";", "putc", "(", "'\\n'", ",", "asm_out_file", ")", ";", "ASM_OUTPUT_LABEL", "(", "asm_out_file", ",", "name", ")", ";", "DECL_WEAK", "(", "decl", ")", "=", "1", ";", "}", "else", "if", "(", "USE_HIDDEN_LINKONCE", ")", "{", "cgraph_node", "::", "create", "(", "decl", ")", "->", "set_comdat_group", "(", "DECL_ASSEMBLER_NAME", "(", "decl", ")", ")", ";", "targetm", ".", "asm_out", ".", "unique_section", "(", "decl", ",", "0", ")", ";", "switch_to_section", "(", "get_named_section", "(", "decl", ",", "NULL", ",", "0", ")", ")", ";", "targetm", ".", "asm_out", ".", "globalize_label", "(", "asm_out_file", ",", "name", ")", ";", "fputs", "(", "\"\\t.hidden\\t\"", ",", "asm_out_file", ")", ";", "assemble_name", "(", "asm_out_file", ",", "name", ")", ";", "putc", "(", "'\\n'", ",", "asm_out_file", ")", ";", "ASM_DECLARE_FUNCTION_NAME", "(", "asm_out_file", ",", "name", ",", "decl", ")", ";", "}", "else", "{", "switch_to_section", "(", "text_section", ")", ";", "ASM_OUTPUT_LABEL", "(", "asm_out_file", ",", "name", ")", ";", "}", "DECL_INITIAL", "(", "decl", ")", "=", "make_node", "(", "BLOCK", ")", ";", "current_function_decl", "=", "decl", ";", "allocate_struct_function", "(", "decl", ",", "false", ")", ";", "init_function_start", "(", "decl", ")", ";", "cfun", "->", "is_thunk", "=", "true", ";", "first_function_block_is_cold", "=", "false", ";", "final_start_function", "(", "emit_barrier", "(", ")", ",", "asm_out_file", ",", "1", ")", ";", "output_indirect_thunk", "(", "need_prefix", ",", "regno", ")", ";", "final_end_function", "(", ")", ";", "init_insn_lengths", "(", ")", ";", "free_after_compilation", "(", "cfun", ")", ";", "set_cfun", "(", "NULL", ")", ";", "current_function_decl", "=", "NULL", ";", "}", ""], "natrual_language": ["Output", "a", "funtion", "with", "a", "call", "and", "return", "thunk", "for", "indirect", "branch", ".", "If", "BND_P", "is", "true", ",", "the", "BND", "prefix", "is", "needed", ".", "If", "REGNO", "!", "=", "UNVALID_REGNUM", ",", "the", "function", "address", "is", "in", "REGNO", ".", "Otherwise", ",", "the", "function", "address", "is", "on", "the", "top", "of", "stack", ".", "Thunk", "is", "used", "for", "function", "return", "if", "RET_P", "is", "true", "."], "TS_V_token": ["i386", "32", "1", "1", "1", "\"\\t.weak_definition\\t\"", "\"\\n\\t.private_extern\\t\"", "1", "0", "0", "\"\\t.hidden\\t\"", "1"], "File": "i3867", "Func": "output_indirect_thunk_function", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2497, "Length": 335, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "AArch64TargetLowering", "::", "BuildSDIVPow2", "(", "SDNode", "*", "N", ",", "const", "APInt", "&", "Divisor", ",", "SelectionDAG", "&", "DAG", ",", "std", "::", "vector", "<", "SDNode", "*", ">", "*", "Created", ")", "const", "{", "AttributeList", "Attr", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getFunction", "(", ")", "->", "getAttributes", "(", ")", ";", "if", "(", "isIntDivCheap", "(", "N", "->", "getValueType", "(", "0", ")", ",", "Attr", ")", ")", "return", "SDValue", "(", "N", ",", "0", ")", ";", "EVT", "VT", "=", "N", "->", "getValueType", "(", "0", ")", ";", "if", "(", "(", "VT", "!=", "MVT", "::", "i32", "&&", "VT", "!=", "MVT", "::", "i64", ")", "||", "!", "(", "Divisor", ".", "isPowerOf2", "(", ")", "||", "(", "-", "Divisor", ")", ".", "isPowerOf2", "(", ")", ")", ")", "return", "SDValue", "(", ")", ";", "SDLoc", "DL", "(", "N", ")", ";", "SDValue", "N0", "=", "N", "->", "getOperand", "(", "0", ")", ";", "unsigned", "Lg2", "=", "Divisor", ".", "countTrailingZeros", "(", ")", ";", "SDValue", "Zero", "=", "DAG", ".", "getConstant", "(", "0", ",", "DL", ",", "VT", ")", ";", "SDValue", "Pow2MinusOne", "=", "DAG", ".", "getConstant", "(", "(", "1ULL", "<<", "Lg2", ")", "-", "1", ",", "DL", ",", "VT", ")", ";", "SDValue", "CCVal", ";", "SDValue", "Cmp", "=", "getAArch64Cmp", "(", "N0", ",", "Zero", ",", "ISD", "::", "SETLT", ",", "CCVal", ",", "DAG", ",", "DL", ")", ";", "SDValue", "Add", "=", "DAG", ".", "getNode", "(", "ISD", "::", "ADD", ",", "DL", ",", "VT", ",", "N0", ",", "Pow2MinusOne", ")", ";", "SDValue", "CSel", "=", "DAG", ".", "getNode", "(", "AArch64ISD", "::", "CSEL", ",", "DL", ",", "VT", ",", "Add", ",", "N0", ",", "CCVal", ",", "Cmp", ")", ";", "if", "(", "Created", ")", "{", "Created", "->", "push_back", "(", "Cmp", ".", "getNode", "(", ")", ")", ";", "Created", "->", "push_back", "(", "Add", ".", "getNode", "(", ")", ")", ";", "Created", "->", "push_back", "(", "CSel", ".", "getNode", "(", ")", ")", ";", "}", "SDValue", "SRA", "=", "DAG", ".", "getNode", "(", "ISD", "::", "SRA", ",", "DL", ",", "VT", ",", "CSel", ",", "DAG", ".", "getConstant", "(", "Lg2", ",", "DL", ",", "MVT", "::", "i64", ")", ")", ";", "if", "(", "Divisor", ".", "isNonNegative", "(", ")", ")", "return", "SRA", ";", "if", "(", "Created", ")", "Created", "->", "push_back", "(", "SRA", ".", "getNode", "(", ")", ")", ";", "return", "DAG", ".", "getNode", "(", "ISD", "::", "SUB", ",", "DL", ",", "VT", ",", "DAG", ".", "getConstant", "(", "0", ",", "DL", ",", "VT", ")", ",", "SRA", ")", ";", "}", ""], "natrual_language": ["Targets", "may", "override", "this", "function", "to", "provide", "custom", "SDIV", "lowering", "for", "power-of-2", "denominators", "."], "TS_V_token": ["AArch64", "AArch64", "0", "0", "0", "MVT::i32", "MVT::i64", "0", "0", "1ULL", "1", "AArch64", "ISD::SETLT", "ISD::ADD", "AArch64ISD::CSEL", "ISD::SRA", "MVT::i64", "ISD::SUB", "0"], "File": "AArch64ISelLowering105", "Func": "BuildSDIVPow2", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2498, "Length": 368, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64TargetLowering", "::", "finalizeLowering", "(", "MachineFunction", "&", "MF", ")", "const", "{", "MF", ".", "getFrameInfo", "(", ")", ".", "computeMaxCallFrameSize", "(", "MF", ")", ";", "TargetLoweringBase", "::", "finalizeLowering", "(", "MF", ")", ";", "}", ""], "natrual_language": ["Execute", "target", "specific", "actions", "to", "finalize", "target", "lowering", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64ISelLowering (2)2", "Func": "finalizeLowering", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2499, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "fp_zero_operand", "(", "rtx", "op", ")", "{", "REAL_VALUE_TYPE", "r", ";", "if", "(", "GET_MODE", "(", "op", ")", "!=", "SFmode", ")", "return", "false", ";", "REAL_VALUE_FROM_CONST_DOUBLE", "(", "r", ",", "op", ")", ";", "return", "REAL_VALUES_EQUAL", "(", "r", ",", "dconst0", ")", "&&", "!", "REAL_VALUE_MINUS_ZERO", "(", "r", ")", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "OP", "is", "a", "floating", "point", "value", "with", "value", "0.0", "."], "TS_V_token": ["sh"], "File": "sh4", "Func": "fp_zero_operand", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2500, "Length": 44, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_expand_vselect", "(", "rtx", "target", ",", "rtx", "op0", ",", "const", "unsigned", "char", "*", "perm", ",", "unsigned", "nelt", ")", "{", "rtx", "rperm", "[", "MAX_VECT_LEN", "]", ",", "x", ";", "rtx_insn", "*", "insn", ";", "unsigned", "i", ";", "for", "(", "i", "=", "0", ";", "i", "<", "nelt", ";", "++", "i", ")", "rperm", "[", "i", "]", "=", "GEN_INT", "(", "perm", "[", "i", "]", ")", ";", "x", "=", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "gen_rtvec_v", "(", "nelt", ",", "rperm", ")", ")", ";", "x", "=", "gen_rtx_VEC_SELECT", "(", "GET_MODE", "(", "target", ")", ",", "op0", ",", "x", ")", ";", "x", "=", "gen_rtx_SET", "(", "target", ",", "x", ")", ";", "insn", "=", "emit_insn", "(", "x", ")", ";", "if", "(", "recog_memoized", "(", "insn", ")", "<", "0", ")", "{", "remove_insn", "(", "insn", ")", ";", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Construct", "(", "set", "target", "(", "vec_select", "op0", "(", "parallel", "perm", ")", ")", ")", "and", "return", "true", "if", "that", "'s", "a", "valid", "instruction", "in", "the", "active", "ISA", "."], "TS_V_token": ["mips", "0", "0"], "File": "mips", "Func": "mips_expand_vselect", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2501, "Length": 128, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "::", "iterator", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ")", "const", "override", "{", "return", "MBB", ".", "erase", "(", "MI", ")", ";", "}", ""], "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": ["CAHP"], "File": "CAHPFrameLowering", "Func": "eliminateCallFramePseudoInstr", "Target": "CAHP", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2502, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isEqualityCmpFoldedWithSignedCmp", "(", ")", "const", "override", "{", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "instruction", "generated", "for", "equality", "comparison", "is", "folded", "with", "instruction", "generated", "for", "signed", "comparison", "."], "TS_V_token": ["PowerPC"], "File": "PPCISelLowering106", "Func": "isEqualityCmpFoldedWithSignedCmp", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2503, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "vax_notice_update_cc", "(", "rtx", "exp", ",", "rtx", "insn", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "GET_CODE", "(", "exp", ")", "==", "SET", ")", "{", "if", "(", "GET_CODE", "(", "SET_SRC", "(", "exp", ")", ")", "==", "CALL", ")", "CC_STATUS_INIT", ";", "else", "if", "(", "GET_CODE", "(", "SET_DEST", "(", "exp", ")", ")", "!=", "ZERO_EXTRACT", "&&", "GET_CODE", "(", "SET_DEST", "(", "exp", ")", ")", "!=", "PC", ")", "{", "cc_status", ".", "flags", "=", "0", ";", "switch", "(", "GET_CODE", "(", "SET_SRC", "(", "exp", ")", ")", ")", "{", "case", "NEG", ":", "if", "(", "GET_MODE_CLASS", "(", "GET_MODE", "(", "exp", ")", ")", "==", "MODE_FLOAT", ")", "break", ";", "case", "AND", ":", "case", "IOR", ":", "case", "XOR", ":", "case", "NOT", ":", "case", "MEM", ":", "case", "REG", ":", "cc_status", ".", "flags", "=", "CC_NO_OVERFLOW", ";", "break", ";", "default", ":", "break", ";", "}", "cc_status", ".", "value1", "=", "SET_DEST", "(", "exp", ")", ";", "cc_status", ".", "value2", "=", "SET_SRC", "(", "exp", ")", ";", "}", "}", "else", "if", "(", "GET_CODE", "(", "exp", ")", "==", "PARALLEL", "&&", "GET_CODE", "(", "XVECEXP", "(", "exp", ",", "0", ",", "0", ")", ")", "==", "SET", ")", "{", "if", "(", "GET_CODE", "(", "SET_SRC", "(", "XVECEXP", "(", "exp", ",", "0", ",", "0", ")", ")", ")", "==", "CALL", ")", "CC_STATUS_INIT", ";", "else", "if", "(", "GET_CODE", "(", "SET_DEST", "(", "XVECEXP", "(", "exp", ",", "0", ",", "0", ")", ")", ")", "!=", "PC", ")", "{", "cc_status", ".", "flags", "=", "0", ";", "cc_status", ".", "value1", "=", "SET_DEST", "(", "XVECEXP", "(", "exp", ",", "0", ",", "0", ")", ")", ";", "cc_status", ".", "value2", "=", "SET_SRC", "(", "XVECEXP", "(", "exp", ",", "0", ",", "0", ")", ")", ";", "}", "else", "CC_STATUS_INIT", ";", "}", "else", "CC_STATUS_INIT", ";", "if", "(", "cc_status", ".", "value1", "&&", "GET_CODE", "(", "cc_status", ".", "value1", ")", "==", "REG", "&&", "cc_status", ".", "value2", "&&", "reg_overlap_mentioned_p", "(", "cc_status", ".", "value1", ",", "cc_status", ".", "value2", ")", ")", "cc_status", ".", "value2", "=", "0", ";", "if", "(", "cc_status", ".", "value1", "&&", "GET_CODE", "(", "cc_status", ".", "value1", ")", "==", "MEM", "&&", "cc_status", ".", "value2", "&&", "GET_CODE", "(", "cc_status", ".", "value2", ")", "==", "MEM", ")", "cc_status", ".", "value2", "=", "0", ";", "}", ""], "natrual_language": ["Worker", "function", "for", "NOTICE_UPDATE_CC", "."], "TS_V_token": ["vax", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "File": "vax3", "Func": "vax_notice_update_cc", "Target": "vax", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2504, "Length": 328, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SparcTargetMachine", "::", "SparcTargetMachine", "(", "const", "Target", "&", "T", ",", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Reloc", "::", "Model", "RM", ",", "CodeModel", "::", "Model", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ",", "bool", "is64bit", ")", ":", "LLVMTargetMachine", "(", "T", ",", "computeDataLayout", "(", "TT", ",", "is64bit", ")", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "RM", ",", "CM", ",", "OL", ")", ",", "TLOF", "(", "make_unique", "<", "SparcELFTargetObjectFile", ">", "(", ")", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ",", "*", "this", ",", "is64bit", ")", "{", "initAsmInfo", "(", ")", ";", "}", ""], "natrual_language": ["Create", "an", "ILP32", "architecture", "model", "."], "TS_V_token": ["Sparc", "Sparc", "Sparc", "Sparc"], "File": "SparcTargetMachine1", "Func": "SparcTargetMachine", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2505, "Length": 99, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "pru_output_sign_extend", "(", "rtx", "*", "operands", ")", "{", "static", "char", "buf", "[", "512", "]", ";", "int", "bufi", ";", "const", "int", "dst_sz", "=", "GET_MODE_SIZE", "(", "GET_MODE", "(", "operands", "[", "0", "]", ")", ")", ";", "const", "int", "src_sz", "=", "GET_MODE_SIZE", "(", "GET_MODE", "(", "operands", "[", "1", "]", ")", ")", ";", "char", "ext_start", ";", "switch", "(", "src_sz", ")", "{", "case", "1", ":", "ext_start", "=", "'y'", ";", "break", ";", "case", "2", ":", "ext_start", "=", "'z'", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "gcc_assert", "(", "dst_sz", ">", "src_sz", ")", ";", "bufi", "=", "snprintf", "(", "buf", ",", "sizeof", "(", "buf", ")", ",", "\"mov\\t%%0, %%1\\n\\t\"", "\"qbbc\\t.+8, %%0, %d\\n\\t\"", "\"fill\\t%%%c0, %d\"", ",", "sign_bit_position", "(", "operands", "[", "1", "]", ")", ",", "ext_start", ",", "dst_sz", "-", "src_sz", ")", ";", "gcc_assert", "(", "bufi", ">", "0", ")", ";", "gcc_assert", "(", "(", "unsigned", "int", ")", "bufi", "<", "sizeof", "(", "buf", ")", ")", ";", "return", "buf", ";", "}", ""], "natrual_language": ["Output", "asm", "code", "for", "sign_extend", "operation", "."], "TS_V_token": ["pru", "512", "0", "1", "1", "2", "\"mov\\t%%0, %%1\\n\\t\"", "\"qbbc\\t.+8, %%0, %d\\n\\t\"", "\"fill\\t%%%c0, %d\"", "1", "0"], "File": "pru", "Func": "pru_output_sign_extend", "Target": "pru", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2506, "Length": 145, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isMachineVerifierClean", "(", ")", "const", "override", "{", "return", "false", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "is", "expected", "to", "pass", "all", "machine", "verifier", "checks", "."], "TS_V_token": ["Sparc"], "File": "SparcTargetMachine22", "Func": "isMachineVerifierClean", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2507, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "enum", "flt_eval_method", "ix86_get_excess_precision", "(", "enum", "excess_precision_type", "type", ")", "{", "switch", "(", "type", ")", "{", "case", "EXCESS_PRECISION_TYPE_FAST", ":", "return", "FLT_EVAL_METHOD_PROMOTE_TO_FLOAT", ";", "case", "EXCESS_PRECISION_TYPE_STANDARD", ":", "case", "EXCESS_PRECISION_TYPE_IMPLICIT", ":", "if", "(", "!", "TARGET_80387", ")", "return", "FLT_EVAL_METHOD_PROMOTE_TO_FLOAT", ";", "else", "if", "(", "!", "TARGET_MIX_SSE_I387", ")", "{", "if", "(", "!", "(", "TARGET_SSE", "&&", "TARGET_SSE_MATH", ")", ")", "return", "FLT_EVAL_METHOD_PROMOTE_TO_LONG_DOUBLE", ";", "else", "if", "(", "TARGET_SSE2", ")", "return", "FLT_EVAL_METHOD_PROMOTE_TO_FLOAT", ";", "}", "return", "(", "type", "==", "EXCESS_PRECISION_TYPE_STANDARD", "?", "FLT_EVAL_METHOD_PROMOTE_TO_FLOAT", ":", "FLT_EVAL_METHOD_UNPREDICTABLE", ")", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "return", "FLT_EVAL_METHOD_UNPREDICTABLE", ";", "}", ""], "natrual_language": ["Set", "the", "value", "of", "FLT_EVAL_METHOD", "in", "float.h", ".", "When", "using", "only", "the", "FPU", ",", "assume", "that", "the", "fpcw", "is", "set", "to", "extended", "precision", ";", "when", "using", "only", "SSE", ",", "rounding", "is", "correct", ";", "when", "using", "both", "SSE", "and", "the", "FPU", ",", "the", "rounding", "precision", "is", "indeterminate", ",", "since", "either", "may", "be", "chosen", "apparently", "at", "random", "."], "TS_V_token": ["i386"], "File": "i3861", "Func": "ix86_get_excess_precision", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2508, "Length": 85, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_expand_vec_perm_const_1", "(", "struct", "expand_vec_perm_d", "*", "d", ")", "{", "if", "(", "expand_vec_perm_1", "(", "d", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_pshuflw_pshufhw", "(", "d", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_palignr", "(", "d", ",", "false", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_interleave2", "(", "d", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_broadcast", "(", "d", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_vpermq_perm_1", "(", "d", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_vperm2f128", "(", "d", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_pblendv", "(", "d", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_2perm_interleave", "(", "d", ",", "true", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_2perm_pblendv", "(", "d", ",", "true", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_shufps_shufps", "(", "d", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_even_odd_pack", "(", "d", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_2vperm2f128_vshuf", "(", "d", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_pshufb2", "(", "d", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_pslldq_psrldq_por", "(", "d", ",", "false", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_interleave3", "(", "d", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_vperm2f128_vblend", "(", "d", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_2perm_interleave", "(", "d", ",", "false", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_2perm_pblendv", "(", "d", ",", "false", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_even_odd_trunc", "(", "d", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_vpshufb2_vpermq", "(", "d", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_vpshufb2_vpermq_even_odd", "(", "d", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_vpermt2_vpshub2", "(", "d", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_even_odd", "(", "d", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_pslldq_psrldq_por", "(", "d", ",", "true", ")", ")", "return", "true", ";", "if", "(", "expand_vec_perm_vpshufb4_vpermq2", "(", "d", ")", ")", "return", "true", ";", "struct", "expand_vec_perm_d", "nd", ";", "if", "(", "canonicalize_vector_int_perm", "(", "d", ",", "&", "nd", ")", "&&", "expand_vec_perm_1", "(", "&", "nd", ")", ")", "{", "if", "(", "!", "d", "->", "testing_p", ")", "emit_move_insn", "(", "d", "->", "target", ",", "gen_lowpart", "(", "d", "->", "vmode", ",", "nd", ".", "target", ")", ")", ";", "return", "true", ";", "}", "if", "(", "expand_vec_perm2_vperm2f128_vblend", "(", "d", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["The", "guts", "of", "ix86_expand_vec_perm_const", ",", "also", "used", "by", "the", "ok", "hook", ".", "With", "all", "of", "the", "interface", "bits", "taken", "care", "of", ",", "perform", "the", "expansion", "in", "D", "and", "return", "true", "on", "success", "."], "TS_V_token": ["i386"], "File": "i386-expand1", "Func": "ix86_expand_vec_perm_const_1", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2509, "Length": 348, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", "\"SystemZ Assembly Printer\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["SystemZ", "\"SystemZ Assembly Printer\""], "File": "SystemZAsmPrinter (2)", "Func": "getPassName", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2510, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx_insn", "*", "aarch64_speculation_clobber_sp", "(", ")", "{", "rtx", "sp", "=", "gen_rtx_REG", "(", "DImode", ",", "SP_REGNUM", ")", ";", "rtx", "tracker", "=", "gen_rtx_REG", "(", "DImode", ",", "SPECULATION_TRACKER_REGNUM", ")", ";", "rtx", "scratch", "=", "gen_rtx_REG", "(", "DImode", ",", "SPECULATION_SCRATCH_REGNUM", ")", ";", "start_sequence", "(", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "scratch", ",", "sp", ")", ")", ";", "emit_insn", "(", "gen_anddi3", "(", "scratch", ",", "scratch", ",", "tracker", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "sp", ",", "scratch", ")", ")", ";", "rtx_insn", "*", "seq", "=", "get_insns", "(", ")", ";", "end_sequence", "(", ")", ";", "return", "seq", ";", "}", ""], "natrual_language": ["Generate", "a", "code", "sequence", "to", "clobber", "SP", "if", "speculating", "incorreclty", "."], "TS_V_token": ["aarch64"], "File": "aarch64-speculation", "Func": "aarch64_speculation_clobber_sp", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2511, "Length": 89, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "nds32_ls_333_p", "(", "rtx", "rt", ",", "rtx", "ra", ",", "rtx", "imm", ",", "machine_mode", "mode", ")", "{", "if", "(", "REGNO_REG_CLASS", "(", "REGNO", "(", "rt", ")", ")", "==", "LOW_REGS", "&&", "REGNO_REG_CLASS", "(", "REGNO", "(", "ra", ")", ")", "==", "LOW_REGS", ")", "{", "if", "(", "GET_MODE_SIZE", "(", "mode", ")", "==", "4", ")", "return", "satisfies_constraint_Iu05", "(", "imm", ")", ";", "if", "(", "GET_MODE_SIZE", "(", "mode", ")", "==", "2", ")", "return", "satisfies_constraint_Iu04", "(", "imm", ")", ";", "if", "(", "GET_MODE_SIZE", "(", "mode", ")", "==", "1", ")", "return", "satisfies_constraint_Iu03", "(", "imm", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Function", "to", "test", "333-form", "for", "load/store", "instructions", ".", "This", "is", "auxiliary", "extern", "function", "for", "auxiliary", "macro", "in", "nds32.h", ".", "Because", "it", "is", "a", "little", "complicated", ",", "we", "use", "function", "instead", "of", "macro", "."], "TS_V_token": ["nds32", "4", "2", "1"], "File": "nds322", "Func": "nds32_ls_333_p", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2512, "Length": 89, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDNode", "*", "LC3bDagToDagISel", "::", "Select", "(", "SDNode", "*", "n", ")", "{", "return", "NULL", ";", "}", ""], "natrual_language": ["Main", "hook", "for", "targets", "to", "transform", "nodes", "into", "machine", "nodes", "."], "TS_V_token": ["LC3b", "LC3b"], "File": "LC3bDagToDagISel", "Func": "Select", "Target": "LC3b", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2513, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "MCInst", "&", "Res", ")", "const", "override", "{", "}", ""], "natrual_language": ["Relax", "the", "instruction", "in", "the", "given", "fragment", "to", "the", "next", "wider", "instruction", "."], "TS_V_token": ["OR1K"], "File": "OR1KAsmBackend1", "Func": "relaxInstruction", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2514, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZInstrInfo", "::", "isPredicable", "(", "MachineInstr", "*", "MI", ")", "const", "{", "unsigned", "Opcode", "=", "MI", "->", "getOpcode", "(", ")", ";", "if", "(", "TM", ".", "getSubtargetImpl", "(", ")", "->", "hasLoadStoreOnCond", "(", ")", "&&", "getConditionalMove", "(", "Opcode", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "specified", "instruction", "can", "be", "predicated", "."], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZInstrInfo (2)", "Func": "isPredicable", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2515, "Length": 44, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "Cpu0MCCodeEmitter", "::", "getJumpTargetOpValue", "(", "const", "MCInst", "&", "MI", ",", "unsigned", "OpNo", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ")", "const", "{", "const", "MCOperand", "&", "MO", "=", "MI", ".", "getOperand", "(", "OpNo", ")", ";", "if", "(", "MO", ".", "isImm", "(", ")", ")", "return", "MO", ".", "getImm", "(", ")", ";", "assert", "(", "MO", ".", "isExpr", "(", ")", "&&", "\"getJumpTargetOpValue expects only expressions\"", ")", ";", "const", "MCExpr", "*", "Expr", "=", "MO", ".", "getExpr", "(", ")", ";", "Fixups", ".", "push_back", "(", "MCFixup", "::", "Create", "(", "0", ",", "Expr", ",", "MCFixupKind", "(", "Cpu0", "::", "fixup_Cpu0_24", ")", ")", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["getJumpTargetOpValue", "-", "Return", "binary", "encoding", "of", "the", "jump", "target", "operand", "."], "TS_V_token": ["Cpu0", "Cpu0", "\"getJumpTargetOpValue expects only expressions\"", "0", "Cpu0::fixup_Cpu0_24", "0"], "File": "Cpu0MCCodeEmitter1", "Func": "getJumpTargetOpValue", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2516, "Length": 96, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "rs6000_emit_le_vsx_move", "(", "rtx", "dest", ",", "rtx", "source", ",", "machine_mode", "mode", ")", "{", "gcc_assert", "(", "!", "BYTES_BIG_ENDIAN", "&&", "VECTOR_MEM_VSX_P", "(", "mode", ")", "&&", "!", "TARGET_P9_VECTOR", "&&", "!", "gpr_or_gpr_p", "(", "dest", ",", "source", ")", "&&", "(", "MEM_P", "(", "source", ")", "^", "MEM_P", "(", "dest", ")", ")", ")", ";", "if", "(", "MEM_P", "(", "source", ")", ")", "{", "gcc_assert", "(", "REG_P", "(", "dest", ")", "||", "GET_CODE", "(", "dest", ")", "==", "SUBREG", ")", ";", "rs6000_emit_le_vsx_load", "(", "dest", ",", "source", ",", "mode", ")", ";", "}", "else", "{", "if", "(", "!", "REG_P", "(", "source", ")", ")", "source", "=", "force_reg", "(", "mode", ",", "source", ")", ";", "rs6000_emit_le_vsx_store", "(", "dest", ",", "source", ",", "mode", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "a", "sequence", "representing", "a", "little-endian", "VSX", "load", "or", "store", ",", "moving", "data", "from", "SOURCE", "to", "DEST", "in", "mode", "MODE", ".", "This", "is", "done", "separately", "from", "rs6000_emit_move", "to", "ensure", "it", "is", "called", "only", "during", "expand", ".", "LE", "VSX", "loads", "and", "stores", "introduced", "later", "are", "handled", "with", "a", "split", ".", "The", "expand-time", "RTL", "generation", "allows", "us", "to", "optimize", "away", "redundant", "pairs", "of", "register-permutes", "."], "TS_V_token": ["rs6000"], "File": "rs60005", "Func": "rs6000_emit_le_vsx_move", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2517, "Length": 110, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Register", "(", ")", "{", "PPCTargetMachine", "::", "registerAsmPrinter", "(", "createPPCAsmPrinterPass", ")", ";", "}", ""], "natrual_language": ["Base", "register", "."], "TS_V_token": ["PowerPC", "PPC", "PPC"], "File": "PPCAsmPrinter30", "Func": "Register", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2518, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "OR1KTargetLowering", "::", "LowerAsmOperandForConstraint", "(", "SDValue", "Op", ",", "std", "::", "string", "&", "Constraint", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "Ops", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SDLoc", "dl", "(", "Op", ")", ";", "SDValue", "Result", "(", "0", ",", "0", ")", ";", "if", "(", "Constraint", ".", "length", "(", ")", ">", "1", ")", "return", ";", "char", "ConstraintLetter", "=", "Constraint", "[", "0", "]", ";", "switch", "(", "ConstraintLetter", ")", "{", "default", ":", "break", ";", "case", "'I'", ":", "if", "(", "ConstantSDNode", "*", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ")", ")", "{", "if", "(", "isInt", "<", "16", ">", "(", "C", "->", "getSExtValue", "(", ")", ")", ")", "{", "Result", "=", "DAG", ".", "getTargetConstant", "(", "C", "->", "getSExtValue", "(", ")", ",", "dl", ",", "Op", ".", "getValueType", "(", ")", ")", ";", "break", ";", "}", "}", "return", ";", "case", "'J'", ":", "case", "'O'", ":", "if", "(", "ConstantSDNode", "*", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ")", ")", "{", "if", "(", "C", "->", "getZExtValue", "(", ")", "==", "0", ")", "{", "Result", "=", "DAG", ".", "getTargetConstant", "(", "0", ",", "dl", ",", "Op", ".", "getValueType", "(", ")", ")", ";", "break", ";", "}", "}", "return", ";", "case", "'K'", ":", "if", "(", "ConstantSDNode", "*", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ")", ")", "{", "if", "(", "isUInt", "<", "16", ">", "(", "C", "->", "getZExtValue", "(", ")", ")", ")", "{", "Result", "=", "DAG", ".", "getTargetConstant", "(", "C", "->", "getSExtValue", "(", ")", ",", "dl", ",", "Op", ".", "getValueType", "(", ")", ")", ";", "break", ";", "}", "}", "return", ";", "case", "'L'", ":", "if", "(", "ConstantSDNode", "*", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ")", ")", "{", "if", "(", "C", "->", "getZExtValue", "(", ")", "<=", "31", ")", "{", "Result", "=", "DAG", ".", "getTargetConstant", "(", "C", "->", "getZExtValue", "(", ")", ",", "dl", ",", "Op", ".", "getValueType", "(", ")", ")", ";", "break", ";", "}", "}", "return", ";", "case", "'M'", ":", "if", "(", "ConstantSDNode", "*", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ")", ")", "{", "int64_t", "Val", "=", "C", "->", "getSExtValue", "(", ")", ";", "if", "(", "(", "isInt", "<", "32", ">", "(", "Val", ")", ")", "&&", "(", "(", "Val", "&", "0xffff", ")", "==", "0", ")", ")", "{", "Result", "=", "DAG", ".", "getTargetConstant", "(", "Val", ",", "dl", ",", "Op", ".", "getValueType", "(", ")", ")", ";", "break", ";", "}", "}", "return", ";", "case", "'N'", ":", "if", "(", "ConstantSDNode", "*", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ")", ")", "{", "int64_t", "Val", "=", "C", "->", "getSExtValue", "(", ")", ";", "if", "(", "(", "Val", ">=", "-", "33554432", ")", "&&", "(", "Val", "<=", "33554431", ")", ")", "{", "Result", "=", "DAG", ".", "getTargetConstant", "(", "Val", ",", "dl", ",", "Op", ".", "getValueType", "(", ")", ")", ";", "break", ";", "}", "}", "return", ";", "}", "if", "(", "Result", ".", "getNode", "(", ")", ")", "{", "Ops", ".", "push_back", "(", "Result", ")", ";", "return", ";", "}", "TargetLowering", "::", "LowerAsmOperandForConstraint", "(", "Op", ",", "Constraint", ",", "Ops", ",", "DAG", ")", ";", "}", ""], "natrual_language": ["Lower", "the", "specified", "operand", "into", "the", "Ops", "vector", "."], "TS_V_token": ["OR1K", "OR1K", "0", "0", "1", "0", "16", "0", "0", "16", "31", "32", "0xffff", "0", "33554432", "33554431"], "File": "OR1KISelLowering1", "Func": "LowerAsmOperandForConstraint", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2519, "Length": 476, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "if", "(", "skipFunction", "(", "*", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "initialize", "(", "MF", ")", ";", "return", "simplifyCode", "(", ")", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["PowerPC"], "File": "PPCMIPeephole26", "Func": "runOnMachineFunction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2520, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"X86 Speculative Execution Side Effect Suppression\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["X86", "\"X86 Speculative Execution Side Effect Suppression\""], "File": "X86SpeculativeExecutionSideEffectSuppression", "Func": "getPassName", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2521, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseInstrInfo", "::", "areLoadsFromSameBasePtr", "(", "SDNode", "*", "Load1", ",", "SDNode", "*", "Load2", ",", "int64_t", "&", "Offset1", ",", "int64_t", "&", "Offset2", ")", "const", "{", "if", "(", "Subtarget", ".", "isThumb1Only", "(", ")", ")", "return", "false", ";", "if", "(", "!", "Load1", "->", "isMachineOpcode", "(", ")", "||", "!", "Load2", "->", "isMachineOpcode", "(", ")", ")", "return", "false", ";", "switch", "(", "Load1", "->", "getMachineOpcode", "(", ")", ")", "{", "default", ":", "return", "false", ";", "case", "ARM", "::", "LDRi12", ":", "case", "ARM", "::", "LDRBi12", ":", "case", "ARM", "::", "LDRD", ":", "case", "ARM", "::", "LDRH", ":", "case", "ARM", "::", "LDRSB", ":", "case", "ARM", "::", "LDRSH", ":", "case", "ARM", "::", "VLDRD", ":", "case", "ARM", "::", "VLDRS", ":", "case", "ARM", "::", "t2LDRi8", ":", "case", "ARM", "::", "t2LDRDi8", ":", "case", "ARM", "::", "t2LDRSHi8", ":", "case", "ARM", "::", "t2LDRi12", ":", "case", "ARM", "::", "t2LDRSHi12", ":", "break", ";", "}", "switch", "(", "Load2", "->", "getMachineOpcode", "(", ")", ")", "{", "default", ":", "return", "false", ";", "case", "ARM", "::", "LDRi12", ":", "case", "ARM", "::", "LDRBi12", ":", "case", "ARM", "::", "LDRD", ":", "case", "ARM", "::", "LDRH", ":", "case", "ARM", "::", "LDRSB", ":", "case", "ARM", "::", "LDRSH", ":", "case", "ARM", "::", "VLDRD", ":", "case", "ARM", "::", "VLDRS", ":", "case", "ARM", "::", "t2LDRi8", ":", "case", "ARM", "::", "t2LDRSHi8", ":", "case", "ARM", "::", "t2LDRi12", ":", "case", "ARM", "::", "t2LDRSHi12", ":", "break", ";", "}", "if", "(", "Load1", "->", "getOperand", "(", "0", ")", "!=", "Load2", "->", "getOperand", "(", "0", ")", "||", "Load1", "->", "getOperand", "(", "4", ")", "!=", "Load2", "->", "getOperand", "(", "4", ")", ")", "return", "false", ";", "if", "(", "Load1", "->", "getOperand", "(", "3", ")", "!=", "Load2", "->", "getOperand", "(", "3", ")", ")", "return", "false", ";", "if", "(", "isa", "<", "ConstantSDNode", ">", "(", "Load1", "->", "getOperand", "(", "1", ")", ")", "&&", "isa", "<", "ConstantSDNode", ">", "(", "Load2", "->", "getOperand", "(", "1", ")", ")", ")", "{", "Offset1", "=", "cast", "<", "ConstantSDNode", ">", "(", "Load1", "->", "getOperand", "(", "1", ")", ")", "->", "getSExtValue", "(", ")", ";", "Offset2", "=", "cast", "<", "ConstantSDNode", ">", "(", "Load2", "->", "getOperand", "(", "1", ")", ")", "->", "getSExtValue", "(", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["areLoadsFromSameBasePtr", "-", "This", "is", "used", "by", "the", "pre-regalloc", "scheduler", "to", "determine", "if", "two", "loads", "are", "loading", "from", "the", "same", "base", "address", "."], "TS_V_token": ["ARM", "ARM", "ARM::LDRi12", "ARM::LDRBi12", "ARM::LDRD", "ARM::LDRH", "ARM::LDRSB", "ARM::LDRSH", "ARM::VLDRD", "ARM::VLDRS", "ARM::t2LDRi8", "ARM::t2LDRDi8", "ARM::t2LDRSHi8", "ARM::t2LDRi12", "ARM::t2LDRSHi12", "ARM::LDRi12", "ARM::LDRBi12", "ARM::LDRD", "ARM::LDRH", "ARM::LDRSB", "ARM::LDRSH", "ARM::VLDRD", "ARM::VLDRS", "ARM::t2LDRi8", "ARM::t2LDRSHi8", "ARM::t2LDRi12", "ARM::t2LDRSHi12", "0", "0", "4", "4", "3", "3", "1", "1", "1", "1"], "File": "ARMBaseInstrInfo (2)1", "Func": "areLoadsFromSameBasePtr", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2522, "Length": 339, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsCallLowering", "::", "lowerReturn", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "const", "Value", "*", "Val", ",", "unsigned", "VReg", ")", "const", "{", "MachineInstrBuilder", "Ret", "=", "MIRBuilder", ".", "buildInstrNoInsert", "(", "Mips", "::", "RetRA", ")", ";", "if", "(", "Val", "!=", "nullptr", ")", "{", "return", "false", ";", "}", "MIRBuilder", ".", "insertInstr", "(", "Ret", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "hook", "behaves", "as", "the", "extended", "lowerReturn", "function", ",", "but", "for", "targets", "that", "do", "not", "support", "swifterror", "value", "promotion", "."], "TS_V_token": ["Mips", "Mips", "Mips::RetRA"], "File": "MipsCallLowering32", "Func": "lowerReturn", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2523, "Length": 53, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "tree", "def_builtin", "(", "HOST_WIDE_INT", "mask", ",", "const", "char", "*", "name", ",", "enum", "ix86_builtin_func_type", "tcode", ",", "enum", "ix86_builtins", "code", ")", "{", "tree", "decl", "=", "NULL_TREE", ";", "if", "(", "!", "(", "mask", "&", "OPTION_MASK_ISA_64BIT", ")", "||", "TARGET_64BIT", ")", "{", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "isa", "=", "mask", ";", "mask", "&=", "~", "OPTION_MASK_ISA_64BIT", ";", "if", "(", "(", "mask", "&", "ix86_isa_flags", "&", "OPTION_MASK_ISA_AVX512VL", ")", "&&", "mask", "!=", "OPTION_MASK_ISA_AVX512VL", ")", "mask", "&=", "~", "OPTION_MASK_ISA_AVX512VL", ";", "if", "(", "(", "mask", "&", "ix86_isa_flags", "&", "OPTION_MASK_ISA_AVX512BW", ")", "&&", "mask", "!=", "OPTION_MASK_ISA_AVX512BW", ")", "mask", "&=", "~", "OPTION_MASK_ISA_AVX512BW", ";", "if", "(", "mask", "==", "0", "||", "(", "mask", "&", "ix86_isa_flags", ")", "!=", "0", "||", "(", "lang_hooks", ".", "builtin_function", "==", "lang_hooks", ".", "builtin_function_ext_scope", ")", ")", "{", "tree", "type", "=", "ix86_get_builtin_func_type", "(", "tcode", ")", ";", "decl", "=", "add_builtin_function", "(", "name", ",", "type", ",", "code", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";", "ix86_builtins", "[", "(", "int", ")", "code", "]", "=", "decl", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "set_and_not_built_p", "=", "false", ";", "}", "else", "{", "deferred_isa_values", "|=", "mask", ";", "ix86_builtins", "[", "(", "int", ")", "code", "]", "=", "NULL_TREE", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "tcode", "=", "tcode", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "name", "=", "name", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "leaf_p", "=", "false", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "nothrow_p", "=", "false", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "const_p", "=", "false", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "pure_p", "=", "false", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "set_and_not_built_p", "=", "true", ";", "}", "}", "return", "decl", ";", "}", ""], "natrual_language": ["Add", "a", "SPARC", "builtin", "function", "with", "NAME", ",", "ICODE", ",", "CODE", "and", "TYPE", ".", "Return", "the", "function", "decl", "or", "NULL_TREE", "if", "the", "builtin", "was", "not", "added", "."], "TS_V_token": ["i386", "0", "0"], "File": "i3867", "Func": "def_builtin", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2524, "Length": 273, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "uint8_t", "name", "(", "struct", "InternalInstruction", "*", "insn", ",", "\\", "OperandType", "type", ",", "\\", "uint8_t", "index", ",", "\\", "uint8_t", "*", "valid", ")", "{", "\\", "*", "valid", "=", "1", ";", "\\", "switch", "(", "type", ")", "{", "\\", "default", ":", "\\", "debug", "(", "\"Unhandled register type\"", ")", ";", "\\", "*", "valid", "=", "0", ";", "\\", "return", "0", ";", "\\", "case", "TYPE_Rv", ":", "\\", "return", "base", "+", "index", ";", "\\", "case", "TYPE_R8", ":", "\\", "if", "(", "insn", "->", "rexPrefix", "&&", "\\", "index", ">=", "4", "&&", "index", "<=", "7", ")", "{", "\\", "return", "prefix", "##", "_SPL", "+", "(", "index", "-", "4", ")", ";", "\\", "}", "else", "{", "\\", "return", "prefix", "##", "_AL", "+", "index", ";", "\\", "}", "\\", "case", "TYPE_R16", ":", "\\", "return", "prefix", "##", "_AX", "+", "index", ";", "\\", "case", "TYPE_R32", ":", "\\", "return", "prefix", "##", "_EAX", "+", "index", ";", "\\", "case", "TYPE_R64", ":", "\\", "return", "prefix", "##", "_RAX", "+", "index", ";", "\\", "case", "TYPE_XMM512", ":", "\\", "return", "prefix", "##", "_ZMM0", "+", "index", ";", "\\", "case", "TYPE_XMM256", ":", "\\", "return", "prefix", "##", "_YMM0", "+", "index", ";", "\\", "case", "TYPE_XMM128", ":", "\\", "case", "TYPE_XMM64", ":", "\\", "case", "TYPE_XMM32", ":", "\\", "case", "TYPE_XMM", ":", "\\", "return", "prefix", "##", "_XMM0", "+", "index", ";", "\\", "case", "TYPE_VK1", ":", "\\", "case", "TYPE_VK8", ":", "\\", "case", "TYPE_VK16", ":", "\\", "return", "prefix", "##", "_K0", "+", "index", ";", "\\", "case", "TYPE_MM64", ":", "\\", "case", "TYPE_MM32", ":", "\\", "case", "TYPE_MM", ":", "\\", "if", "(", "index", ">", "7", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_MM0", "+", "index", ";", "\\", "case", "TYPE_SEGMENTREG", ":", "\\", "if", "(", "index", ">", "5", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_ES", "+", "index", ";", "\\", "case", "TYPE_DEBUGREG", ":", "\\", "if", "(", "index", ">", "7", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_DR0", "+", "index", ";", "\\", "case", "TYPE_CONTROLREG", ":", "\\", "if", "(", "index", ">", "8", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_CR0", "+", "index", ";", "\\", "}", "\\", "}", ""], "natrual_language": ["Gets", "the", "name", "of", "the", "pass", "we", "are", "mixed", "into", "."], "TS_V_token": ["X86", "1", "\"Unhandled register type\"", "0", "0", "4", "7", "4", "7", "0", "5", "0", "7", "0", "8", "0"], "File": "X86DisassemblerDecoder1", "Func": "name", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2525, "Length": 327, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCFrameLowering", "::", "determineCalleeSaves", "(", "MachineFunction", "&", "MF", ",", "BitVector", "&", "SavedRegs", ",", "RegScavenger", "*", "RS", ")", "const", "{", "TargetFrameLowering", "::", "determineCalleeSaves", "(", "MF", ",", "SavedRegs", ",", "RS", ")", ";", "const", "PPCRegisterInfo", "*", "RegInfo", "=", "Subtarget", ".", "getRegisterInfo", "(", ")", ";", "PPCFunctionInfo", "*", "FI", "=", "MF", ".", "getInfo", "<", "PPCFunctionInfo", ">", "(", ")", ";", "unsigned", "LR", "=", "RegInfo", "->", "getRARegister", "(", ")", ";", "FI", "->", "setMustSaveLR", "(", "MustSaveLR", "(", "MF", ",", "LR", ")", ")", ";", "SavedRegs", ".", "reset", "(", "LR", ")", ";", "int", "FPSI", "=", "FI", "->", "getFramePointerSaveIndex", "(", ")", ";", "const", "bool", "isPPC64", "=", "Subtarget", ".", "isPPC64", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "if", "(", "!", "FPSI", "&&", "needsFP", "(", "MF", ")", ")", "{", "int", "FPOffset", "=", "getFramePointerSaveOffset", "(", ")", ";", "FPSI", "=", "MFI", ".", "CreateFixedObject", "(", "isPPC64", "?", "8", ":", "4", ",", "FPOffset", ",", "true", ")", ";", "FI", "->", "setFramePointerSaveIndex", "(", "FPSI", ")", ";", "}", "int", "BPSI", "=", "FI", "->", "getBasePointerSaveIndex", "(", ")", ";", "if", "(", "!", "BPSI", "&&", "RegInfo", "->", "hasBasePointer", "(", "MF", ")", ")", "{", "int", "BPOffset", "=", "getBasePointerSaveOffset", "(", ")", ";", "BPSI", "=", "MFI", ".", "CreateFixedObject", "(", "isPPC64", "?", "8", ":", "4", ",", "BPOffset", ",", "true", ")", ";", "FI", "->", "setBasePointerSaveIndex", "(", "BPSI", ")", ";", "}", "if", "(", "FI", "->", "usesPICBase", "(", ")", ")", "{", "int", "PBPSI", "=", "MFI", ".", "CreateFixedObject", "(", "4", ",", "-", "8", ",", "true", ")", ";", "FI", "->", "setPICBasePointerSaveIndex", "(", "PBPSI", ")", ";", "}", "if", "(", "needsFP", "(", "MF", ")", ")", "SavedRegs", ".", "reset", "(", "isPPC64", "?", "PPC", "::", "X31", ":", "PPC", "::", "R31", ")", ";", "if", "(", "RegInfo", "->", "hasBasePointer", "(", "MF", ")", ")", "SavedRegs", ".", "reset", "(", "RegInfo", "->", "getBaseRegister", "(", "MF", ")", ")", ";", "if", "(", "FI", "->", "usesPICBase", "(", ")", ")", "SavedRegs", ".", "reset", "(", "PPC", "::", "R30", ")", ";", "int", "TCSPDelta", "=", "0", ";", "if", "(", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "GuaranteedTailCallOpt", "&&", "(", "TCSPDelta", "=", "FI", "->", "getTailCallSPDelta", "(", ")", ")", "<", "0", ")", "{", "MFI", ".", "CreateFixedObject", "(", "-", "1", "*", "TCSPDelta", ",", "TCSPDelta", ",", "true", ")", ";", "}", "if", "(", "Subtarget", ".", "is32BitELFABI", "(", ")", "&&", "(", "SavedRegs", ".", "test", "(", "PPC", "::", "CR2", ")", "||", "SavedRegs", ".", "test", "(", "PPC", "::", "CR3", ")", "||", "SavedRegs", ".", "test", "(", "PPC", "::", "CR4", ")", ")", ")", "{", "int", "FrameIdx", "=", "MFI", ".", "CreateFixedObject", "(", "(", "uint64_t", ")", "4", ",", "(", "int64_t", ")", "-", "4", ",", "true", ")", ";", "FI", "->", "setCRSpillFrameIndex", "(", "FrameIdx", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "determines", "which", "of", "the", "registers", "reported", "by", "TargetRegisterInfo", ":", ":getCalleeSavedRegs", "(", ")", "should", "actually", "get", "saved", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "PPC", "PPC", "PPC", "PPC", "8", "4", "PPC", "8", "4", "4", "8", "PPC", "PPC::X31", "PPC::R31", "PPC::R30", "0", "0", "1", "PPC::CR2", "PPC::CR3", "PPC::CR4", "4", "4"], "File": "PPCFrameLowering93", "Func": "determineCalleeSaves", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2526, "Length": 413, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_maybe_emit_fp_cmove", "(", "rtx", "dest", ",", "rtx", "op", ",", "rtx", "true_cond", ",", "rtx", "false_cond", ")", "{", "enum", "rtx_code", "code", "=", "GET_CODE", "(", "op", ")", ";", "rtx", "op0", "=", "XEXP", "(", "op", ",", "0", ")", ";", "rtx", "op1", "=", "XEXP", "(", "op", ",", "1", ")", ";", "machine_mode", "result_mode", "=", "GET_MODE", "(", "dest", ")", ";", "rtx", "compare_rtx", ";", "rtx", "cmove_rtx", ";", "rtx", "clobber_rtx", ";", "if", "(", "!", "can_create_pseudo_p", "(", ")", ")", "return", "0", ";", "switch", "(", "code", ")", "{", "case", "EQ", ":", "case", "GE", ":", "case", "GT", ":", "break", ";", "case", "NE", ":", "case", "LT", ":", "case", "LE", ":", "code", "=", "swap_condition", "(", "code", ")", ";", "std", "::", "swap", "(", "op0", ",", "op1", ")", ";", "break", ";", "default", ":", "return", "false", ";", "}", "compare_rtx", "=", "gen_rtx_fmt_ee", "(", "code", ",", "CCFPmode", ",", "op0", ",", "op1", ")", ";", "cmove_rtx", "=", "gen_rtx_SET", "(", "dest", ",", "gen_rtx_IF_THEN_ELSE", "(", "result_mode", ",", "compare_rtx", ",", "true_cond", ",", "false_cond", ")", ")", ";", "clobber_rtx", "=", "gen_rtx_CLOBBER", "(", "VOIDmode", ",", "gen_rtx_SCRATCH", "(", "V2DImode", ")", ")", ";", "emit_insn", "(", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "gen_rtvec", "(", "2", ",", "cmove_rtx", ",", "clobber_rtx", ")", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Possibly", "emit", "a", "floating", "point", "conditional", "move", "by", "generating", "a", "compare", "that", "sets", "a", "mask", "instruction", "and", "a", "XXSEL", "select", "instruction", ".", "Move", "TRUE_COND", "to", "DEST", "if", "OP", "of", "the", "operands", "of", "the", "last", "comparison", "is", "nonzero/true", ",", "FALSE_COND", "if", "it", "is", "zero/false", ".", "Return", "false", "if", "the", "operation", "can", "not", "be", "generated", ",", "and", "true", "if", "we", "could", "generate", "the", "instruction", "."], "TS_V_token": ["rs6000", "0", "1", "0", "2"], "File": "rs60001", "Func": "rs6000_maybe_emit_fp_cmove", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2527, "Length": 186, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_split_v4si_init_di_reg", "(", "rtx", "dest", ",", "rtx", "si1", ",", "rtx", "si2", ",", "rtx", "tmp", ")", "{", "const", "unsigned", "HOST_WIDE_INT", "mask_32bit", "=", "HOST_WIDE_INT_C", "(", "0xffffffff", ")", ";", "if", "(", "CONST_INT_P", "(", "si1", ")", "&&", "CONST_INT_P", "(", "si2", ")", ")", "{", "unsigned", "HOST_WIDE_INT", "const1", "=", "(", "UINTVAL", "(", "si1", ")", "&", "mask_32bit", ")", "<<", "32", ";", "unsigned", "HOST_WIDE_INT", "const2", "=", "UINTVAL", "(", "si2", ")", "&", "mask_32bit", ";", "emit_move_insn", "(", "dest", ",", "GEN_INT", "(", "const1", "|", "const2", ")", ")", ";", "return", ";", "}", "if", "(", "CONST_INT_P", "(", "si1", ")", ")", "emit_move_insn", "(", "dest", ",", "GEN_INT", "(", "(", "UINTVAL", "(", "si1", ")", "&", "mask_32bit", ")", "<<", "32", ")", ")", ";", "else", "{", "rtx", "si1_di", "=", "gen_rtx_REG", "(", "DImode", ",", "regno_or_subregno", "(", "si1", ")", ")", ";", "rtx", "shift_rtx", "=", "gen_rtx_ASHIFT", "(", "DImode", ",", "si1_di", ",", "GEN_INT", "(", "32", ")", ")", ";", "rtx", "mask_rtx", "=", "GEN_INT", "(", "mask_32bit", "<<", "32", ")", ";", "rtx", "and_rtx", "=", "gen_rtx_AND", "(", "DImode", ",", "shift_rtx", ",", "mask_rtx", ")", ";", "gcc_assert", "(", "!", "reg_overlap_mentioned_p", "(", "dest", ",", "si1", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "dest", ",", "and_rtx", ")", ")", ";", "}", "gcc_assert", "(", "!", "reg_overlap_mentioned_p", "(", "dest", ",", "tmp", ")", ")", ";", "if", "(", "CONST_INT_P", "(", "si2", ")", ")", "emit_move_insn", "(", "tmp", ",", "GEN_INT", "(", "UINTVAL", "(", "si2", ")", "&", "mask_32bit", ")", ")", ";", "else", "emit_insn", "(", "gen_zero_extendsidi2", "(", "tmp", ",", "si2", ")", ")", ";", "emit_insn", "(", "gen_iordi3", "(", "dest", ",", "dest", ",", "tmp", ")", ")", ";", "return", ";", "}", ""], "natrual_language": ["Helper", "function", "for", "rs6000_split_v4si_init", "to", "build", "up", "a", "DImode", "value", "from", "two", "SImode", "values", "."], "TS_V_token": ["rs6000", "0xffffffff", "32", "32", "32", "32"], "File": "rs60006", "Func": "rs6000_split_v4si_init_di_reg", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2528, "Length": 240, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Align", "getStackAlignment", "(", ")", "const", "{", "return", "stackAlignment", ";", "}", ""], "natrual_language": ["Returns", "the", "minimum", "alignment", "known", "to", "hold", "of", "the", "stack", "frame", "on", "entry", "to", "the", "function", "and", "which", "must", "be", "maintained", "by", "every", "function", "for", "this", "subtarget", "."], "TS_V_token": ["ARM"], "File": "ARMSubtarget (2)3", "Func": "getStackAlignment", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2529, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCInstrInfo", "::", "isUnpredicatedTerminator", "(", "const", "MachineInstr", "*", "MI", ")", "const", "{", "if", "(", "!", "MI", "->", "isTerminator", "(", ")", ")", "return", "false", ";", "if", "(", "MI", "->", "isBranch", "(", ")", "&&", "!", "MI", "->", "isBarrier", "(", ")", ")", "return", "true", ";", "return", "!", "isPredicated", "(", "MI", ")", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "instruction", "is", "a", "terminator", "instruction", "that", "has", "not", "been", "predicated", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCInstrInfo (2)", "Func": "isUnpredicatedTerminator", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2530, "Length": 50, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "addInstSelector", "(", ")", "{", "addPass", "(", "createLC3bISelDag", "(", "getLC3bTargetMachine", "(", ")", ",", "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": ["LC3b", "LC3b", "LC3b"], "File": "LC3bTargetMachine", "Func": "addInstSelector", "Target": "LC3b", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2531, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "HOST_WIDE_INT", "htm_spr_regno", "(", "enum", "rs6000_builtins", "code", ")", "{", "if", "(", "code", "==", "HTM_BUILTIN_GET_TFHAR", "||", "code", "==", "HTM_BUILTIN_SET_TFHAR", ")", "return", "TFHAR_REGNO", ";", "else", "if", "(", "code", "==", "HTM_BUILTIN_GET_TFIAR", "||", "code", "==", "HTM_BUILTIN_SET_TFIAR", ")", "return", "TFIAR_REGNO", ";", "gcc_assert", "(", "code", "==", "HTM_BUILTIN_GET_TEXASR", "||", "code", "==", "HTM_BUILTIN_SET_TEXASR", "||", "code", "==", "HTM_BUILTIN_GET_TEXASRU", "||", "code", "==", "HTM_BUILTIN_SET_TEXASRU", ")", ";", "return", "TEXASR_REGNO", ";", "}", ""], "natrual_language": ["Return", "the", "appropriate", "SPR", "regno", "associated", "with", "the", "given", "builtin", "."], "TS_V_token": ["rs6000"], "File": "rs60004", "Func": "htm_spr_regno", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2532, "Length": 60, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZRegisterInfo", "::", "shouldCoalesce", "(", "MachineInstr", "*", "MI", ",", "const", "TargetRegisterClass", "*", "SrcRC", ",", "unsigned", "SubReg", ",", "const", "TargetRegisterClass", "*", "DstRC", ",", "unsigned", "DstSubReg", ",", "const", "TargetRegisterClass", "*", "NewRC", ",", "LiveIntervals", "&", "LIS", ")", "const", "{", "assert", "(", "MI", "->", "isCopy", "(", ")", "&&", "\"Only expecting COPY instructions\"", ")", ";", "if", "(", "!", "(", "NewRC", "->", "hasSuperClassEq", "(", "&", "SystemZ", "::", "GR128BitRegClass", ")", "&&", "(", "getRegSizeInBits", "(", "*", "SrcRC", ")", "<=", "64", "||", "getRegSizeInBits", "(", "*", "DstRC", ")", "<=", "64", ")", ")", ")", "return", "true", ";", "unsigned", "WideOpNo", "=", "(", "getRegSizeInBits", "(", "*", "SrcRC", ")", "==", "128", "?", "1", ":", "0", ")", ";", "Register", "GR128Reg", "=", "MI", "->", "getOperand", "(", "WideOpNo", ")", ".", "getReg", "(", ")", ";", "Register", "GRNarReg", "=", "MI", "->", "getOperand", "(", "(", "WideOpNo", "==", "1", ")", "?", "0", ":", "1", ")", ".", "getReg", "(", ")", ";", "LiveInterval", "&", "IntGR128", "=", "LIS", ".", "getInterval", "(", "GR128Reg", ")", ";", "LiveInterval", "&", "IntGRNar", "=", "LIS", ".", "getInterval", "(", "GRNarReg", ")", ";", "MachineBasicBlock", "*", "MBB", "=", "MI", "->", "getParent", "(", ")", ";", "MachineInstr", "*", "FirstMI_GR128", "=", "LIS", ".", "getInstructionFromIndex", "(", "IntGR128", ".", "beginIndex", "(", ")", ")", ";", "MachineInstr", "*", "FirstMI_GRNar", "=", "LIS", ".", "getInstructionFromIndex", "(", "IntGRNar", ".", "beginIndex", "(", ")", ")", ";", "MachineInstr", "*", "LastMI_GR128", "=", "LIS", ".", "getInstructionFromIndex", "(", "IntGR128", ".", "endIndex", "(", ")", ")", ";", "MachineInstr", "*", "LastMI_GRNar", "=", "LIS", ".", "getInstructionFromIndex", "(", "IntGRNar", ".", "endIndex", "(", ")", ")", ";", "if", "(", "(", "!", "FirstMI_GR128", "||", "FirstMI_GR128", "->", "getParent", "(", ")", "!=", "MBB", ")", "||", "(", "!", "FirstMI_GRNar", "||", "FirstMI_GRNar", "->", "getParent", "(", ")", "!=", "MBB", ")", "||", "(", "!", "LastMI_GR128", "||", "LastMI_GR128", "->", "getParent", "(", ")", "!=", "MBB", ")", "||", "(", "!", "LastMI_GRNar", "||", "LastMI_GRNar", "->", "getParent", "(", ")", "!=", "MBB", ")", ")", "return", "false", ";", "MachineBasicBlock", "::", "iterator", "MII", "=", "nullptr", ",", "MEE", "=", "nullptr", ";", "if", "(", "WideOpNo", "==", "1", ")", "{", "MII", "=", "FirstMI_GR128", ";", "MEE", "=", "LastMI_GRNar", ";", "}", "else", "{", "MII", "=", "FirstMI_GRNar", ";", "MEE", "=", "LastMI_GR128", ";", "}", "BitVector", "PhysClobbered", "(", "getNumRegs", "(", ")", ")", ";", "MEE", "++", ";", "for", "(", ";", "MII", "!=", "MEE", ";", "++", "MII", ")", "{", "for", "(", "const", "MachineOperand", "&", "MO", ":", "MII", "->", "operands", "(", ")", ")", "if", "(", "MO", ".", "isReg", "(", ")", "&&", "Register", "::", "isPhysicalRegister", "(", "MO", ".", "getReg", "(", ")", ")", ")", "{", "for", "(", "MCSuperRegIterator", "SI", "(", "MO", ".", "getReg", "(", ")", ",", "this", ",", "true", ")", ";", "SI", ".", "isValid", "(", ")", ";", "++", "SI", ")", "if", "(", "NewRC", "->", "contains", "(", "*", "SI", ")", ")", "{", "PhysClobbered", ".", "set", "(", "*", "SI", ")", ";", "break", ";", "}", "}", "}", "unsigned", "const", "DemandedFreeGR128", "=", "3", ";", "if", "(", "PhysClobbered", ".", "count", "(", ")", ">", "(", "NewRC", "->", "getNumRegs", "(", ")", "-", "DemandedFreeGR128", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Subtarget", "Hooks", "."], "TS_V_token": ["SystemZ", "SystemZ", "\"Only expecting COPY instructions\"", "SystemZ::GR128BitRegClass", "64", "64", "128", "1", "0", "1", "0", "1", "1", "3"], "File": "SystemZRegisterInfo10", "Func": "shouldCoalesce", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2533, "Length": 458, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_use_blocks_for_constant_p", "(", "machine_mode", "mode", ",", "const_rtx", "x", ")", "{", "return", "!", "ASM_OUTPUT_SPECIAL_POOL_ENTRY_P", "(", "x", ",", "mode", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_USE_BLOCKS_FOR_CONSTANT_P", "."], "TS_V_token": ["rs6000"], "File": "rs6000", "Func": "rs6000_use_blocks_for_constant_p", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2534, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "or1k_initial_frame_addr", "(", ")", "{", "crtl", "->", "accesses_prior_frames", "=", "1", ";", "return", "arg_pointer_rtx", ";", "}", ""], "natrual_language": ["Worker", "for", "INITIAL_FRAME_ADDRESS_RTX", ".", "Returns", "the", "RTX", "representing", "the", "address", "of", "the", "initial", "stack", "frame", "."], "TS_V_token": ["or1k", "1"], "File": "or1k", "Func": "or1k_initial_frame_addr", "Target": "or1k", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2535, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "ATTRIBUTE_UNUSED", "rs6000_stack_protect_fail", "(", "void", ")", "{", "return", "(", "DEFAULT_ABI", "==", "ABI_V4", "&&", "TARGET_SECURE_PLT", "&&", "flag_pic", ")", "?", "default_hidden_stack_protect_fail", "(", ")", ":", "default_external_stack_protect_fail", "(", ")", ";", "}", ""], "natrual_language": ["For", "TARGET_SECURE_PLT", "32-bit", "PIC", "code", "we", "can", "save", "PIC", "register", "setup", "by", "using", "__stack_chk_fail_local", "hidden", "function", "instead", "of", "calling", "__stack_chk_fail", "directly", ".", "Otherwise", "it", "is", "better", "to", "call", "__stack_chk_fail", "directly", "."], "TS_V_token": ["powerpcspe"], "File": "powerpcspe", "Func": "rs6000_stack_protect_fail", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2536, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ia64_set_sched_context", "(", "void", "*", "_sc", ")", "{", "ia64_sched_context_t", "sc", "=", "(", "ia64_sched_context_t", ")", "_sc", ";", "gcc_assert", "(", "sc", "!=", "NULL", ")", ";", "memcpy", "(", "prev_cycle_state", ",", "sc", "->", "prev_cycle_state", ",", "dfa_state_size", ")", ";", "last_scheduled_insn", "=", "sc", "->", "last_scheduled_insn", ";", "memcpy", "(", "rws_sum", ",", "sc", "->", "rws_sum", ",", "sizeof", "(", "rws_sum", ")", ")", ";", "memcpy", "(", "rws_insn", ",", "sc", "->", "rws_insn", ",", "sizeof", "(", "rws_insn", ")", ")", ";", "first_instruction", "=", "sc", "->", "first_instruction", ";", "pending_data_specs", "=", "sc", "->", "pending_data_specs", ";", "current_cycle", "=", "sc", "->", "current_cycle", ";", "memcpy", "(", "mem_ops_in_group", ",", "sc", "->", "mem_ops_in_group", ",", "sizeof", "(", "mem_ops_in_group", ")", ")", ";", "}", ""], "natrual_language": ["Sets", "the", "global", "scheduling", "context", "to", "the", "one", "pointed", "to", "by", "_SC", "."], "TS_V_token": ["ia64"], "File": "ia64", "Func": "ia64_set_sched_context", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2537, "Length": 102, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "tryAddingSymbolicOperand", "(", "int64_t", "Value", ",", "bool", "IsBranch", ",", "uint64_t", "Address", ",", "uint64_t", "Offset", ",", "uint64_t", "Width", ",", "MCInst", "&", "MI", ",", "const", "void", "*", "Decoder", ")", "{", "const", "MCDisassembler", "*", "Dis", "=", "static_cast", "<", "const", "MCDisassembler", "*", ">", "(", "Decoder", ")", ";", "return", "Dis", "->", "tryAddingSymbolicOperand", "(", "MI", ",", "Value", ",", "Address", ",", "IsBranch", ",", "Offset", ",", "Width", ")", ";", "}", ""], "natrual_language": ["Try", "to", "add", "a", "symbolic", "operand", "instead", "of", "Value", "to", "the", "MCInst", "."], "TS_V_token": ["Lanai"], "File": "LanaiDisassembler11", "Func": "tryAddingSymbolicOperand", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2538, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "const", "X86TargetMachine", "*", "TM", "=", "static_cast", "<", "const", "X86TargetMachine", "*", ">", "(", "&", "MF", ".", "getTarget", "(", ")", ")", ";", "const", "X86Subtarget", "&", "STI", "=", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "if", "(", "STI", ".", "is64Bit", "(", ")", ")", "return", "false", ";", "if", "(", "TM", "->", "getRelocationModel", "(", ")", "!=", "Reloc", "::", "PIC_", ")", "return", "false", ";", "X86MachineFunctionInfo", "*", "X86FI", "=", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", ";", "unsigned", "GlobalBaseReg", "=", "X86FI", "->", "getGlobalBaseReg", "(", ")", ";", "if", "(", "GlobalBaseReg", "==", "0", ")", "return", "false", ";", "MachineBasicBlock", "&", "FirstMBB", "=", "MF", ".", "front", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "FirstMBB", ".", "begin", "(", ")", ";", "DebugLoc", "DL", "=", "FirstMBB", ".", "findDebugLoc", "(", "MBBI", ")", ";", "MachineRegisterInfo", "&", "RegInfo", "=", "MF", ".", "getRegInfo", "(", ")", ";", "const", "X86InstrInfo", "*", "TII", "=", "STI", ".", "getInstrInfo", "(", ")", ";", "unsigned", "PC", ";", "if", "(", "STI", ".", "isPICStyleGOT", "(", ")", ")", "PC", "=", "RegInfo", ".", "createVirtualRegister", "(", "&", "X86", "::", "GR32RegClass", ")", ";", "else", "PC", "=", "GlobalBaseReg", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "X86", "::", "MOVPC32r", ")", ",", "PC", ")", ".", "addImm", "(", "0", ")", ";", "if", "(", "STI", ".", "isPICStyleGOT", "(", ")", ")", "{", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "X86", "::", "ADD32ri", ")", ",", "GlobalBaseReg", ")", ".", "addReg", "(", "PC", ")", ".", "addExternalSymbol", "(", "\"_GLOBAL_OFFSET_TABLE_\"", ",", "X86II", "::", "MO_GOT_ABSOLUTE_ADDRESS", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "0", "X86", "X86::GR32RegClass", "X86::MOVPC32r", "0", "X86::ADD32ri", "\"_GLOBAL_OFFSET_TABLE_\"", "X86II::MO_GOT_ABSOLUTE_ADDRESS"], "File": "X86InstrInfo (2)2", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2539, "Length": 253, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "rs6000_gen_le_vsx_permute", "(", "rtx", "source", ",", "machine_mode", "mode", ")", "{", "if", "(", "FLOAT128_VECTOR_P", "(", "mode", ")", "||", "mode", "==", "TImode", ")", "return", "gen_rtx_ROTATE", "(", "mode", ",", "source", ",", "GEN_INT", "(", "64", ")", ")", ";", "else", "{", "rtx", "par", "=", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "rs6000_const_vec", "(", "mode", ")", ")", ";", "return", "gen_rtx_VEC_SELECT", "(", "mode", ",", "source", ",", "par", ")", ";", "}", "}", ""], "natrual_language": ["Generate", "a", "permute", "rtx", "that", "represents", "an", "lxvd2x", ",", "stxvd2x", ",", "or", "xxpermdi", "for", "a", "VSX", "load", "or", "store", "operation", "."], "TS_V_token": ["rs6000", "64"], "File": "rs60005", "Func": "rs6000_gen_le_vsx_permute", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2540, "Length": 61, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "if", "(", "skipFunction", "(", "*", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "const", "PPCSubtarget", "&", "STI", "=", "MF", ".", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ";", "if", "(", "!", "STI", ".", "hasVSX", "(", ")", ")", "return", "false", ";", "bool", "Changed", "=", "false", ";", "initialize", "(", "MF", ")", ";", "if", "(", "gatherVectorInstructions", "(", ")", ")", "{", "formWebs", "(", ")", ";", "recordUnoptimizableWebs", "(", ")", ";", "markSwapsForRemoval", "(", ")", ";", "Changed", "=", "removeSwaps", "(", ")", ";", "}", "delete", "EC", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["PowerPC", "PPC", "PPC"], "File": "PPCVSXSwapRemoval1", "Func": "runOnMachineFunction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2541, "Length": 93, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "process_cfa_adjust_cfa", "(", "FILE", "*", "asm_out_file", ",", "rtx", "pat", ",", "rtx", "insn", ",", "bool", "unwind", ",", "bool", "frame", ")", "{", "rtx", "dest", "=", "SET_DEST", "(", "pat", ")", ";", "rtx", "src", "=", "SET_SRC", "(", "pat", ")", ";", "if", "(", "dest", "==", "stack_pointer_rtx", ")", "{", "if", "(", "GET_CODE", "(", "src", ")", "==", "PLUS", ")", "{", "rtx", "op0", "=", "XEXP", "(", "src", ",", "0", ")", ";", "rtx", "op1", "=", "XEXP", "(", "src", ",", "1", ")", ";", "gcc_assert", "(", "op0", "==", "dest", "&&", "GET_CODE", "(", "op1", ")", "==", "CONST_INT", ")", ";", "if", "(", "INTVAL", "(", "op1", ")", "<", "0", ")", "{", "gcc_assert", "(", "!", "frame_pointer_needed", ")", ";", "if", "(", "unwind", ")", "fprintf", "(", "asm_out_file", ",", "\"\\t.fframe \"", "HOST_WIDE_INT_PRINT_DEC", "\"\\n\"", ",", "-", "INTVAL", "(", "op1", ")", ")", ";", "}", "else", "process_epilogue", "(", "asm_out_file", ",", "insn", ",", "unwind", ",", "frame", ")", ";", "}", "else", "{", "gcc_assert", "(", "src", "==", "hard_frame_pointer_rtx", ")", ";", "process_epilogue", "(", "asm_out_file", ",", "insn", ",", "unwind", ",", "frame", ")", ";", "}", "}", "else", "if", "(", "dest", "==", "hard_frame_pointer_rtx", ")", "{", "gcc_assert", "(", "src", "==", "stack_pointer_rtx", ")", ";", "gcc_assert", "(", "frame_pointer_needed", ")", ";", "if", "(", "unwind", ")", "fprintf", "(", "asm_out_file", ",", "\"\\t.vframe r%d\\n\"", ",", "ia64_dbx_register_number", "(", "REGNO", "(", "dest", ")", ")", ")", ";", "}", "else", "gcc_unreachable", "(", ")", ";", "}", ""], "natrual_language": ["This", "function", "processes", "a", "SET", "pattern", "for", "REG_CFA_ADJUST_CFA", "."], "TS_V_token": ["ia64", "0", "1", "0", "\"\\t.fframe \"", "\"\\n\"", "\"\\t.vframe r%d\\n\""], "File": "ia644", "Func": "process_cfa_adjust_cfa", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2542, "Length": 205, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_return_in_memory", "(", "const_tree", "type", ",", "const_tree", "fndecl", "ATTRIBUTE_UNUSED", ")", "{", "return", "(", "TARGET_OLDABI", "?", "TYPE_MODE", "(", "type", ")", "==", "BLKmode", ":", "!", "IN_RANGE", "(", "int_size_in_bytes", "(", "type", ")", ",", "0", ",", "2", "*", "UNITS_PER_WORD", ")", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_RETURN_IN_MEMORY", ".", "Under", "the", "old", "(", "i.e.", ",", "32", "and", "O64", "ABIs", ")", "all", "BLKmode", "objects", "are", "returned", "in", "memory", ".", "Under", "the", "new", "(", "N32", "and", "64-bit", "MIPS", "ABIs", ")", "small", "structures", "are", "returned", "in", "a", "register", ".", "Objects", "with", "varying", "size", "must", "still", "be", "returned", "in", "memory", ",", "of", "course", "."], "TS_V_token": ["mips", "0", "2"], "File": "mips4", "Func": "mips_return_in_memory", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2543, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "*", "MipsSETargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MachineInstr", "*", "MI", ",", "MachineBasicBlock", "*", "BB", ")", "const", "{", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "MipsTargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MI", ",", "BB", ")", ";", "case", "Mips", "::", "BPOSGE32_PSEUDO", ":", "return", "emitBPOSGE32", "(", "MI", ",", "BB", ")", ";", "case", "Mips", "::", "SNZ_B_PSEUDO", ":", "return", "emitMSACBranchPseudo", "(", "MI", ",", "BB", ",", "Mips", "::", "BNZ_B", ")", ";", "case", "Mips", "::", "SNZ_H_PSEUDO", ":", "return", "emitMSACBranchPseudo", "(", "MI", ",", "BB", ",", "Mips", "::", "BNZ_H", ")", ";", "case", "Mips", "::", "SNZ_W_PSEUDO", ":", "return", "emitMSACBranchPseudo", "(", "MI", ",", "BB", ",", "Mips", "::", "BNZ_W", ")", ";", "case", "Mips", "::", "SNZ_D_PSEUDO", ":", "return", "emitMSACBranchPseudo", "(", "MI", ",", "BB", ",", "Mips", "::", "BNZ_D", ")", ";", "case", "Mips", "::", "SNZ_V_PSEUDO", ":", "return", "emitMSACBranchPseudo", "(", "MI", ",", "BB", ",", "Mips", "::", "BNZ_V", ")", ";", "case", "Mips", "::", "SZ_B_PSEUDO", ":", "return", "emitMSACBranchPseudo", "(", "MI", ",", "BB", ",", "Mips", "::", "BZ_B", ")", ";", "case", "Mips", "::", "SZ_H_PSEUDO", ":", "return", "emitMSACBranchPseudo", "(", "MI", ",", "BB", ",", "Mips", "::", "BZ_H", ")", ";", "case", "Mips", "::", "SZ_W_PSEUDO", ":", "return", "emitMSACBranchPseudo", "(", "MI", ",", "BB", ",", "Mips", "::", "BZ_W", ")", ";", "case", "Mips", "::", "SZ_D_PSEUDO", ":", "return", "emitMSACBranchPseudo", "(", "MI", ",", "BB", ",", "Mips", "::", "BZ_D", ")", ";", "case", "Mips", "::", "SZ_V_PSEUDO", ":", "return", "emitMSACBranchPseudo", "(", "MI", ",", "BB", ",", "Mips", "::", "BZ_V", ")", ";", "case", "Mips", "::", "COPY_FW_PSEUDO", ":", "return", "emitCOPY_FW", "(", "MI", ",", "BB", ")", ";", "case", "Mips", "::", "COPY_FD_PSEUDO", ":", "return", "emitCOPY_FD", "(", "MI", ",", "BB", ")", ";", "case", "Mips", "::", "INSERT_FW_PSEUDO", ":", "return", "emitINSERT_FW", "(", "MI", ",", "BB", ")", ";", "case", "Mips", "::", "INSERT_FD_PSEUDO", ":", "return", "emitINSERT_FD", "(", "MI", ",", "BB", ")", ";", "case", "Mips", "::", "INSERT_B_VIDX_PSEUDO", ":", "return", "emitINSERT_DF_VIDX", "(", "MI", ",", "BB", ",", "1", ",", "false", ")", ";", "case", "Mips", "::", "INSERT_H_VIDX_PSEUDO", ":", "return", "emitINSERT_DF_VIDX", "(", "MI", ",", "BB", ",", "2", ",", "false", ")", ";", "case", "Mips", "::", "INSERT_W_VIDX_PSEUDO", ":", "return", "emitINSERT_DF_VIDX", "(", "MI", ",", "BB", ",", "4", ",", "false", ")", ";", "case", "Mips", "::", "INSERT_D_VIDX_PSEUDO", ":", "return", "emitINSERT_DF_VIDX", "(", "MI", ",", "BB", ",", "8", ",", "false", ")", ";", "case", "Mips", "::", "INSERT_FW_VIDX_PSEUDO", ":", "return", "emitINSERT_DF_VIDX", "(", "MI", ",", "BB", ",", "4", ",", "true", ")", ";", "case", "Mips", "::", "INSERT_FD_VIDX_PSEUDO", ":", "return", "emitINSERT_DF_VIDX", "(", "MI", ",", "BB", ",", "8", ",", "true", ")", ";", "case", "Mips", "::", "FILL_FW_PSEUDO", ":", "return", "emitFILL_FW", "(", "MI", ",", "BB", ")", ";", "case", "Mips", "::", "FILL_FD_PSEUDO", ":", "return", "emitFILL_FD", "(", "MI", ",", "BB", ")", ";", "case", "Mips", "::", "FEXP2_W_1_PSEUDO", ":", "return", "emitFEXP2_W_1", "(", "MI", ",", "BB", ")", ";", "case", "Mips", "::", "FEXP2_D_1_PSEUDO", ":", "return", "emitFEXP2_D_1", "(", "MI", ",", "BB", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'usesCustomInserter", "'", "flag", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips::BPOSGE32_PSEUDO", "Mips::SNZ_B_PSEUDO", "Mips::BNZ_B", "Mips::SNZ_H_PSEUDO", "Mips::BNZ_H", "Mips::SNZ_W_PSEUDO", "Mips::BNZ_W", "Mips::SNZ_D_PSEUDO", "Mips::BNZ_D", "Mips::SNZ_V_PSEUDO", "Mips::BNZ_V", "Mips::SZ_B_PSEUDO", "Mips::BZ_B", "Mips::SZ_H_PSEUDO", "Mips::BZ_H", "Mips::SZ_W_PSEUDO", "Mips::BZ_W", "Mips::SZ_D_PSEUDO", "Mips::BZ_D", "Mips::SZ_V_PSEUDO", "Mips::BZ_V", "Mips::COPY_FW_PSEUDO", "Mips::COPY_FD_PSEUDO", "Mips::INSERT_FW_PSEUDO", "Mips::INSERT_FD_PSEUDO", "Mips::INSERT_B_VIDX_PSEUDO", "1", "Mips::INSERT_H_VIDX_PSEUDO", "2", "Mips::INSERT_W_VIDX_PSEUDO", "4", "Mips::INSERT_D_VIDX_PSEUDO", "8", "Mips::INSERT_FW_VIDX_PSEUDO", "4", "Mips::INSERT_FD_VIDX_PSEUDO", "8", "Mips::FILL_FW_PSEUDO", "Mips::FILL_FD_PSEUDO", "Mips::FEXP2_W_1_PSEUDO", "Mips::FEXP2_D_1_PSEUDO"], "File": "MipsSEISelLowering10", "Func": "EmitInstrWithCustomInserter", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2544, "Length": 428, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "i386_pe_dllimport_name_p", "(", "const", "char", "*", "symbol", ")", "{", "return", "(", "strncmp", "(", "DLL_IMPORT_PREFIX", ",", "symbol", ",", "strlen", "(", "DLL_IMPORT_PREFIX", ")", ")", "==", "0", ")", ";", "}", ""], "natrual_language": ["Return", "nonzero", "if", "SYMBOL", "is", "marked", "as", "being", "dllimport", "'d", "."], "TS_V_token": ["i386", "0"], "File": "winnt3", "Func": "i386_pe_dllimport_name_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2545, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getMaxPrefetchIterationsAhead", "(", ")", "const", "override", "{", "return", "MaxPrefetchIterationsAhead", ";", "}", ""], "natrual_language": ["Return", "the", "maximum", "prefetch", "distance", "in", "terms", "of", "loop", "iterations", "."], "TS_V_token": ["AArch64"], "File": "AArch64Subtarget (2)1", "Func": "getMaxPrefetchIterationsAhead", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2546, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "swap_const_vector_halves", "(", "rtx", "*", "op_ptr", ")", "{", "int", "i", ";", "rtx", "op", "=", "*", "op_ptr", ";", "enum", "rtx_code", "code", "=", "GET_CODE", "(", "op", ")", ";", "if", "(", "GET_CODE", "(", "op", ")", "==", "CONST_VECTOR", ")", "{", "int", "units", "=", "GET_MODE_NUNITS", "(", "GET_MODE", "(", "op", ")", ")", ";", "rtx_vector_builder", "builder", "(", "GET_MODE", "(", "op", ")", ",", "units", ",", "1", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "units", "/", "2", ";", "++", "i", ")", "builder", ".", "quick_push", "(", "CONST_VECTOR_ELT", "(", "op", ",", "i", "+", "units", "/", "2", ")", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "units", "/", "2", ";", "++", "i", ")", "builder", ".", "quick_push", "(", "CONST_VECTOR_ELT", "(", "op", ",", "i", ")", ")", ";", "*", "op_ptr", "=", "builder", ".", "build", "(", ")", ";", "}", "else", "{", "int", "j", ";", "const", "char", "*", "fmt", "=", "GET_RTX_FORMAT", "(", "code", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "GET_RTX_LENGTH", "(", "code", ")", ";", "++", "i", ")", "if", "(", "fmt", "[", "i", "]", "==", "'e'", "||", "fmt", "[", "i", "]", "==", "'u'", ")", "swap_const_vector_halves", "(", "&", "XEXP", "(", "op", ",", "i", ")", ")", ";", "else", "if", "(", "fmt", "[", "i", "]", "==", "'E'", ")", "for", "(", "j", "=", "0", ";", "j", "<", "XVECLEN", "(", "op", ",", "i", ")", ";", "++", "j", ")", "swap_const_vector_halves", "(", "&", "XVECEXP", "(", "op", ",", "i", ",", "j", ")", ")", ";", "}", "}", ""], "natrual_language": ["OP", "is", "either", "a", "CONST_VECTOR", "or", "an", "expression", "containing", "one", ".", "Swap", "the", "first", "half", "of", "the", "vector", "with", "the", "second", "in", "the", "first", "case", ".", "Recurse", "to", "find", "it", "in", "the", "second", "."], "TS_V_token": ["powerpcspe", "1", "0", "2", "2", "0", "2", "0", "0"], "File": "powerpcspe", "Func": "swap_const_vector_halves", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2547, "Length": 230, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMElfTargetObjectFile", "::", "Initialize", "(", "MCContext", "&", "Ctx", ",", "const", "TargetMachine", "&", "TM", ")", "{", "TargetLoweringObjectFileELF", "::", "Initialize", "(", "Ctx", ",", "TM", ")", ";", "if", "(", "TM", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ".", "isAAPCS_ABI", "(", ")", ")", "{", "StaticCtorSection", "=", "getContext", "(", ")", ".", "getELFSection", "(", "\".init_array\"", ",", "MCSectionELF", "::", "SHT_INIT_ARRAY", ",", "MCSectionELF", "::", "SHF_WRITE", "|", "MCSectionELF", "::", "SHF_ALLOC", ",", "SectionKind", "::", "getDataRel", "(", ")", ")", ";", "StaticDtorSection", "=", "getContext", "(", ")", ".", "getELFSection", "(", "\".fini_array\"", ",", "MCSectionELF", "::", "SHT_FINI_ARRAY", ",", "MCSectionELF", "::", "SHF_WRITE", "|", "MCSectionELF", "::", "SHF_ALLOC", ",", "SectionKind", "::", "getDataRel", "(", ")", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "must", "be", "called", "before", "any", "actual", "lowering", "is", "done", "."], "TS_V_token": ["ARM", "ARM", "ARM", "\".init_array\"", "\".fini_array\""], "File": "ARMTargetObjectFile2", "Func": "Initialize", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2548, "Length": 100, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCPhysReg", "*", "X86RegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "assert", "(", "MF", "&&", "\"MachineFunction required\"", ")", ";", "const", "X86Subtarget", "&", "Subtarget", "=", "MF", "->", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "bool", "HasSSE", "=", "Subtarget", ".", "hasSSE1", "(", ")", ";", "bool", "HasAVX", "=", "Subtarget", ".", "hasAVX", "(", ")", ";", "bool", "HasAVX512", "=", "Subtarget", ".", "hasAVX512", "(", ")", ";", "bool", "CallsEHReturn", "=", "MF", "->", "callsEHReturn", "(", ")", ";", "switch", "(", "MF", "->", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", ")", "{", "case", "CallingConv", "::", "GHC", ":", "case", "CallingConv", "::", "HiPE", ":", "return", "CSR_NoRegs_SaveList", ";", "case", "CallingConv", "::", "AnyReg", ":", "if", "(", "HasAVX", ")", "return", "CSR_64_AllRegs_AVX_SaveList", ";", "return", "CSR_64_AllRegs_SaveList", ";", "case", "CallingConv", "::", "PreserveMost", ":", "return", "CSR_64_RT_MostRegs_SaveList", ";", "case", "CallingConv", "::", "PreserveAll", ":", "if", "(", "HasAVX", ")", "return", "CSR_64_RT_AllRegs_AVX_SaveList", ";", "return", "CSR_64_RT_AllRegs_SaveList", ";", "case", "CallingConv", "::", "CXX_FAST_TLS", ":", "if", "(", "Is64Bit", ")", "return", "MF", "->", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", "->", "isSplitCSR", "(", ")", "?", "CSR_64_CXX_TLS_Darwin_PE_SaveList", ":", "CSR_64_TLS_Darwin_SaveList", ";", "break", ";", "case", "CallingConv", "::", "Intel_OCL_BI", ":", "{", "if", "(", "HasAVX512", "&&", "IsWin64", ")", "return", "CSR_Win64_Intel_OCL_BI_AVX512_SaveList", ";", "if", "(", "HasAVX512", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_AVX512_SaveList", ";", "if", "(", "HasAVX", "&&", "IsWin64", ")", "return", "CSR_Win64_Intel_OCL_BI_AVX_SaveList", ";", "if", "(", "HasAVX", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_AVX_SaveList", ";", "if", "(", "!", "HasAVX", "&&", "!", "IsWin64", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_SaveList", ";", "break", ";", "}", "case", "CallingConv", "::", "HHVM", ":", "return", "CSR_64_HHVM_SaveList", ";", "case", "CallingConv", "::", "X86_RegCall", ":", "if", "(", "Is64Bit", ")", "{", "if", "(", "IsWin64", ")", "{", "return", "(", "HasSSE", "?", "CSR_Win64_RegCall_SaveList", ":", "CSR_Win64_RegCall_NoSSE_SaveList", ")", ";", "}", "else", "{", "return", "(", "HasSSE", "?", "CSR_SysV64_RegCall_SaveList", ":", "CSR_SysV64_RegCall_NoSSE_SaveList", ")", ";", "}", "}", "else", "{", "return", "(", "HasSSE", "?", "CSR_32_RegCall_SaveList", ":", "CSR_32_RegCall_NoSSE_SaveList", ")", ";", "}", "case", "CallingConv", "::", "Cold", ":", "if", "(", "Is64Bit", ")", "return", "CSR_64_MostRegs_SaveList", ";", "break", ";", "case", "CallingConv", "::", "X86_64_Win64", ":", "if", "(", "!", "HasSSE", ")", "return", "CSR_Win64_NoSSE_SaveList", ";", "return", "CSR_Win64_SaveList", ";", "case", "CallingConv", "::", "X86_64_SysV", ":", "if", "(", "CallsEHReturn", ")", "return", "CSR_64EHRet_SaveList", ";", "return", "CSR_64_SaveList", ";", "case", "CallingConv", "::", "X86_INTR", ":", "if", "(", "Is64Bit", ")", "{", "if", "(", "HasAVX512", ")", "return", "CSR_64_AllRegs_AVX512_SaveList", ";", "if", "(", "HasAVX", ")", "return", "CSR_64_AllRegs_AVX_SaveList", ";", "if", "(", "HasSSE", ")", "return", "CSR_64_AllRegs_SaveList", ";", "return", "CSR_64_AllRegs_NoSSE_SaveList", ";", "}", "else", "{", "if", "(", "HasAVX512", ")", "return", "CSR_32_AllRegs_AVX512_SaveList", ";", "if", "(", "HasAVX", ")", "return", "CSR_32_AllRegs_AVX_SaveList", ";", "if", "(", "HasSSE", ")", "return", "CSR_32_AllRegs_SSE_SaveList", ";", "return", "CSR_32_AllRegs_SaveList", ";", "}", "default", ":", "break", ";", "}", "if", "(", "Is64Bit", ")", "{", "if", "(", "IsWin64", ")", "{", "if", "(", "!", "HasSSE", ")", "return", "CSR_Win64_NoSSE_SaveList", ";", "return", "CSR_Win64_SaveList", ";", "}", "if", "(", "CallsEHReturn", ")", "return", "CSR_64EHRet_SaveList", ";", "if", "(", "Subtarget", ".", "getTargetLowering", "(", ")", "->", "supportSwiftError", "(", ")", "&&", "MF", "->", "getFunction", "(", ")", "->", "getAttributes", "(", ")", ".", "hasAttrSomewhere", "(", "Attribute", "::", "SwiftError", ")", ")", "return", "CSR_64_SwiftError_SaveList", ";", "return", "CSR_64_SaveList", ";", "}", "if", "(", "CallsEHReturn", ")", "return", "CSR_32EHRet_SaveList", ";", "return", "CSR_32_SaveList", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["X86", "X86", "\"MachineFunction required\"", "X86", "X86", "X86", "X86", "X86", "X86", "X86"], "File": "X86RegisterInfo100", "Func": "getCalleeSavedRegs", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2549, "Length": 468, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "mergeSPUpdates", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "MBBI", ",", "unsigned", "StackPtr", ",", "bool", "doMergeWithPrevious", ")", "{", "if", "(", "(", "doMergeWithPrevious", "&&", "MBBI", "==", "MBB", ".", "begin", "(", ")", ")", "||", "(", "!", "doMergeWithPrevious", "&&", "MBBI", "==", "MBB", ".", "end", "(", ")", ")", ")", "return", "0", ";", "MachineBasicBlock", "::", "iterator", "PI", "=", "doMergeWithPrevious", "?", "std", "::", "prev", "(", "MBBI", ")", ":", "MBBI", ";", "MachineBasicBlock", "::", "iterator", "NI", "=", "doMergeWithPrevious", "?", "nullptr", ":", "std", "::", "next", "(", "MBBI", ")", ";", "unsigned", "Opc", "=", "PI", "->", "getOpcode", "(", ")", ";", "int", "Offset", "=", "0", ";", "if", "(", "(", "Opc", "==", "X86", "::", "ADD64ri32", "||", "Opc", "==", "X86", "::", "ADD64ri8", "||", "Opc", "==", "X86", "::", "ADD32ri", "||", "Opc", "==", "X86", "::", "ADD32ri8", "||", "Opc", "==", "X86", "::", "LEA32r", "||", "Opc", "==", "X86", "::", "LEA64_32r", ")", "&&", "PI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", "==", "StackPtr", ")", "{", "Offset", "+=", "PI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "MBB", ".", "erase", "(", "PI", ")", ";", "if", "(", "!", "doMergeWithPrevious", ")", "MBBI", "=", "NI", ";", "}", "else", "if", "(", "(", "Opc", "==", "X86", "::", "SUB64ri32", "||", "Opc", "==", "X86", "::", "SUB64ri8", "||", "Opc", "==", "X86", "::", "SUB32ri", "||", "Opc", "==", "X86", "::", "SUB32ri8", ")", "&&", "PI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", "==", "StackPtr", ")", "{", "Offset", "-=", "PI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "MBB", ".", "erase", "(", "PI", ")", ";", "if", "(", "!", "doMergeWithPrevious", ")", "MBBI", "=", "NI", ";", "}", "return", "Offset", ";", "}", ""], "natrual_language": ["Check", "the", "instruction", "before/after", "the", "passed", "instruction", "."], "TS_V_token": ["X86", "0", "0", "X86::ADD64ri32", "X86::ADD64ri8", "X86::ADD32ri", "X86::ADD32ri8", "X86::LEA32r", "X86::LEA64_32r", "0", "2", "X86::SUB64ri32", "X86::SUB64ri8", "X86::SUB32ri", "X86::SUB32ri8", "0", "2"], "File": "X86FrameLowering106", "Func": "mergeSPUpdates", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2550, "Length": 258, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "emitInst", "(", "uint32_t", "Inst", ")", "{", "char", "Buffer", "[", "4", "]", ";", "const", "bool", "LittleEndian", "=", "getContext", "(", ")", ".", "getAsmInfo", "(", ")", "->", "isLittleEndian", "(", ")", ";", "EmitA64MappingSymbol", "(", ")", ";", "for", "(", "unsigned", "II", "=", "0", ";", "II", "!=", "4", ";", "++", "II", ")", "{", "const", "unsigned", "I", "=", "LittleEndian", "?", "(", "4", "-", "II", "-", "1", ")", ":", "II", ";", "Buffer", "[", "4", "-", "II", "-", "1", "]", "=", "uint8_t", "(", "Inst", ">>", "I", "*", "CHAR_BIT", ")", ";", "}", "MCELFStreamer", "::", "EmitBytes", "(", "StringRef", "(", "Buffer", ",", "4", ")", ")", ";", "}", ""], "natrual_language": ["Callback", "used", "to", "implement", "the", ".inst", "directive", "."], "TS_V_token": ["AArch64", "4", "0", "4", "4", "1", "4", "1", "4"], "File": "AArch64ELFStreamer25", "Func": "emitInst", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2551, "Length": 96, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "unsigned", "long", "*", "ia64_rse_skip_regs", "(", "unsigned", "long", "*", "addr", ",", "long", "num_regs", ")", "{", "long", "delta", "=", "ia64_rse_slot_num", "(", "addr", ")", "+", "num_regs", ";", "if", "(", "num_regs", "<", "0", ")", "delta", "-=", "0x3e", ";", "return", "addr", "+", "num_regs", "+", "delta", "/", "0x3f", ";", "}", ""], "natrual_language": ["The", "inverse", "of", "the", "above", ":", "given", "bspstore", "and", "the", "number", "of", "registers", ",", "calculate", "ar.bsp", "."], "TS_V_token": ["ia64", "0", "0x3e", "0x3f"], "File": "unwind-ia64", "Func": "ia64_rse_skip_regs", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2552, "Length": 46, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_alloc_sdmode_stack_slot", "(", "void", ")", "{", "tree", "t", ";", "basic_block", "bb", ";", "gimple_stmt_iterator", "gsi", ";", "gcc_assert", "(", "cfun", "->", "machine", "->", "sdmode_stack_slot", "==", "NULL_RTX", ")", ";", "if", "(", "ira_use_lra_p", ")", "return", ";", "if", "(", "TARGET_NO_SDMODE_STACK", ")", "return", ";", "FOR_EACH_BB_FN", "(", "bb", ",", "cfun", ")", "for", "(", "gsi", "=", "gsi_start_bb", "(", "bb", ")", ";", "!", "gsi_end_p", "(", "gsi", ")", ";", "gsi_next", "(", "&", "gsi", ")", ")", "{", "tree", "ret", "=", "walk_gimple_op", "(", "gsi_stmt", "(", "gsi", ")", ",", "rs6000_check_sdmode", ",", "NULL", ")", ";", "if", "(", "ret", ")", "{", "rtx", "stack", "=", "assign_stack_local", "(", "DDmode", ",", "GET_MODE_SIZE", "(", "DDmode", ")", ",", "0", ")", ";", "cfun", "->", "machine", "->", "sdmode_stack_slot", "=", "adjust_address_nv", "(", "stack", ",", "SDmode", ",", "0", ")", ";", "return", ";", "}", "}", "for", "(", "t", "=", "DECL_ARGUMENTS", "(", "cfun", "->", "decl", ")", ";", "t", ";", "t", "=", "DECL_CHAIN", "(", "t", ")", ")", "{", "if", "(", "TREE_TYPE", "(", "t", ")", "==", "error_mark_node", ")", "continue", ";", "if", "(", "TYPE_MODE", "(", "TREE_TYPE", "(", "t", ")", ")", "==", "SDmode", "||", "TYPE_MODE", "(", "DECL_ARG_TYPE", "(", "t", ")", ")", "==", "SDmode", ")", "{", "rtx", "stack", "=", "assign_stack_local", "(", "DDmode", ",", "GET_MODE_SIZE", "(", "DDmode", ")", ",", "0", ")", ";", "cfun", "->", "machine", "->", "sdmode_stack_slot", "=", "adjust_address_nv", "(", "stack", ",", "SDmode", ",", "0", ")", ";", "return", ";", "}", "}", "}", ""], "natrual_language": ["Allocate", "a", "64-bit", "stack", "slot", "to", "be", "used", "for", "copying", "SDmode", "values", "through", "if", "this", "function", "has", "any", "SDmode", "references", ".", "If", "we", "are", "on", "a", "power7", "or", "later", ",", "we", "do", "n't", "need", "the", "64-bit", "stack", "slot", "since", "the", "LFIWZX", "and", "STIFWX", "instructions", "can", "load/store", "the", "value", "."], "TS_V_token": ["powerpcspe", "0", "0", "0", "0"], "File": "powerpcspe", "Func": "rs6000_alloc_sdmode_stack_slot", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2553, "Length": 211, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMInstrInfo", "::", "spillCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ")", "const", "{", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "ARMFunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "if", "(", "!", "AFI", "->", "isThumbFunction", "(", ")", "||", "CSI", ".", "empty", "(", ")", ")", "return", "false", ";", "DebugLoc", "DL", "=", "DebugLoc", "::", "getUnknownLoc", "(", ")", ";", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "ARM", "::", "tPUSH", ")", ")", ";", "for", "(", "unsigned", "i", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "0", ";", "--", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "-", "1", "]", ".", "getReg", "(", ")", ";", "MBB", ".", "addLiveIn", "(", "Reg", ")", ";", "MIB", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Kill", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["spillCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "spill", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "store", "instructions", "via", "storeRegToStackSlot", "(", ")", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM::tPUSH", "0", "1"], "File": "ARMInstrInfo14", "Func": "spillCalleeSavedRegisters", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2554, "Length": 170, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "unspec_sqrdcmlah", "(", "int", "rot", ")", "{", "switch", "(", "rot", ")", "{", "case", "0", ":", "return", "UNSPEC_SQRDCMLAH", ";", "case", "90", ":", "return", "UNSPEC_SQRDCMLAH90", ";", "case", "180", ":", "return", "UNSPEC_SQRDCMLAH180", ";", "case", "270", ":", "return", "UNSPEC_SQRDCMLAH270", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Return", "the", "UNSPEC_SQRDCMLAH", "*", "unspec", "for", "rotation", "amount", "ROT", "."], "TS_V_token": ["aarch64", "0", "90", "180", "270"], "File": "aarch64-sve-builtins-sve2", "Func": "unspec_sqrdcmlah", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2555, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "is_called_in_ARM_mode", "(", "tree", "func", ")", "{", "gcc_assert", "(", "TREE_CODE", "(", "func", ")", "==", "FUNCTION_DECL", ")", ";", "if", "(", "TARGET_CALLEE_INTERWORKING", "&&", "TREE_PUBLIC", "(", "func", ")", ")", "return", "true", ";", "return", "lookup_attribute", "(", "\"interfacearm\"", ",", "DECL_ATTRIBUTES", "(", "func", ")", ")", "!=", "NULL_TREE", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "non-zero", "if", "FUNC", "must", "be", "entered", "in", "ARM", "mode", "."], "TS_V_token": ["arm", "\"interfacearm\""], "File": "arm", "Func": "is_called_in_ARM_mode", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2556, "Length": 47, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZInstrInfo", "::", "PredicateInstruction", "(", "MachineInstr", "&", "MI", ",", "ArrayRef", "<", "MachineOperand", ">", "Pred", ")", "const", "{", "assert", "(", "Pred", ".", "size", "(", ")", "==", "2", "&&", "\"Invalid condition\"", ")", ";", "unsigned", "CCValid", "=", "Pred", "[", "0", "]", ".", "getImm", "(", ")", ";", "unsigned", "CCMask", "=", "Pred", "[", "1", "]", ".", "getImm", "(", ")", ";", "assert", "(", "CCMask", ">", "0", "&&", "CCMask", "<", "15", "&&", "\"Invalid predicate\"", ")", ";", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "if", "(", "Opcode", "==", "SystemZ", "::", "Trap", ")", "{", "MI", ".", "setDesc", "(", "get", "(", "SystemZ", "::", "CondTrap", ")", ")", ";", "MachineInstrBuilder", "(", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ",", "MI", ")", ".", "addImm", "(", "CCValid", ")", ".", "addImm", "(", "CCMask", ")", ".", "addReg", "(", "SystemZ", "::", "CC", ",", "RegState", "::", "Implicit", ")", ";", "return", "true", ";", "}", "if", "(", "Opcode", "==", "SystemZ", "::", "Return", "||", "Opcode", "==", "SystemZ", "::", "Return_XPLINK", ")", "{", "MI", ".", "setDesc", "(", "get", "(", "Opcode", "==", "SystemZ", "::", "Return", "?", "SystemZ", "::", "CondReturn", ":", "SystemZ", "::", "CondReturn_XPLINK", ")", ")", ";", "MachineInstrBuilder", "(", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ",", "MI", ")", ".", "addImm", "(", "CCValid", ")", ".", "addImm", "(", "CCMask", ")", ".", "addReg", "(", "SystemZ", "::", "CC", ",", "RegState", "::", "Implicit", ")", ";", "return", "true", ";", "}", "if", "(", "Opcode", "==", "SystemZ", "::", "CallJG", ")", "{", "MachineOperand", "FirstOp", "=", "MI", ".", "getOperand", "(", "0", ")", ";", "const", "uint32_t", "*", "RegMask", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getRegMask", "(", ")", ";", "MI", ".", "removeOperand", "(", "1", ")", ";", "MI", ".", "removeOperand", "(", "0", ")", ";", "MI", ".", "setDesc", "(", "get", "(", "SystemZ", "::", "CallBRCL", ")", ")", ";", "MachineInstrBuilder", "(", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ",", "MI", ")", ".", "addImm", "(", "CCValid", ")", ".", "addImm", "(", "CCMask", ")", ".", "add", "(", "FirstOp", ")", ".", "addRegMask", "(", "RegMask", ")", ".", "addReg", "(", "SystemZ", "::", "CC", ",", "RegState", "::", "Implicit", ")", ";", "return", "true", ";", "}", "if", "(", "Opcode", "==", "SystemZ", "::", "CallBR", ")", "{", "MachineOperand", "Target", "=", "MI", ".", "getOperand", "(", "0", ")", ";", "const", "uint32_t", "*", "RegMask", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getRegMask", "(", ")", ";", "MI", ".", "removeOperand", "(", "1", ")", ";", "MI", ".", "removeOperand", "(", "0", ")", ";", "MI", ".", "setDesc", "(", "get", "(", "SystemZ", "::", "CallBCR", ")", ")", ";", "MachineInstrBuilder", "(", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ",", "MI", ")", ".", "addImm", "(", "CCValid", ")", ".", "addImm", "(", "CCMask", ")", ".", "add", "(", "Target", ")", ".", "addRegMask", "(", "RegMask", ")", ".", "addReg", "(", "SystemZ", "::", "CC", ",", "RegState", "::", "Implicit", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Convert", "the", "instruction", "into", "a", "predicated", "instruction", "."], "TS_V_token": ["SystemZ", "SystemZ", "2", "\"Invalid condition\"", "0", "1", "0", "15", "\"Invalid predicate\"", "SystemZ::Trap", "SystemZ::CondTrap", "SystemZ::CC", "SystemZ::Return", "SystemZ::Return_XPLINK", "SystemZ::Return", "SystemZ::CondReturn", "SystemZ::CondReturn_XPLINK", "SystemZ::CC", "SystemZ::CallJG", "0", "1", "1", "0", "SystemZ::CallBRCL", "SystemZ::CC", "SystemZ::CallBR", "0", "1", "1", "0", "SystemZ::CallBCR", "SystemZ::CC"], "File": "SystemZInstrInfo32", "Func": "PredicateInstruction", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2557, "Length": 444, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "alignment_with_canonical_addr", "(", "rtx", "align", ")", "{", "rtx", "canon", ";", "rtx", "addr", "=", "XEXP", "(", "align", ",", "0", ")", ";", "if", "(", "REG_P", "(", "addr", ")", ")", "canon", "=", "addr", ";", "else", "if", "(", "GET_CODE", "(", "addr", ")", "==", "PLUS", ")", "{", "rtx", "addrop0", "=", "XEXP", "(", "addr", ",", "0", ")", ";", "rtx", "addrop1", "=", "XEXP", "(", "addr", ",", "1", ")", ";", "if", "(", "!", "REG_P", "(", "addrop0", ")", ")", "addrop0", "=", "force_reg", "(", "GET_MODE", "(", "addrop0", ")", ",", "addrop0", ")", ";", "if", "(", "!", "REG_P", "(", "addrop1", ")", ")", "addrop1", "=", "force_reg", "(", "GET_MODE", "(", "addrop1", ")", ",", "addrop1", ")", ";", "canon", "=", "gen_rtx_PLUS", "(", "GET_MODE", "(", "addr", ")", ",", "addrop0", ",", "addrop1", ")", ";", "}", "else", "canon", "=", "force_reg", "(", "GET_MODE", "(", "addr", ")", ",", "addr", ")", ";", "return", "gen_rtx_AND", "(", "GET_MODE", "(", "align", ")", ",", "canon", ",", "GEN_INT", "(", "-", "16", ")", ")", ";", "}", ""], "natrual_language": ["Return", "RTX", "with", "its", "address", "canonicalized", "to", "(", "reg", ")", "or", "(", "+", "reg", "reg", ")", ".", "Here", "RTX", "is", "an", "(", "&", "addr", "(", "const_int", "-16", ")", ")", ".", "Always", "return", "a", "new", "copy", "to", "avoid", "problems", "with", "combine", "."], "TS_V_token": ["powerpcspe", "0", "0", "1", "16"], "File": "powerpcspe", "Func": "alignment_with_canonical_addr", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2558, "Length": 149, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64RegisterInfo", "::", "isArgumentRegister", "(", "const", "MachineFunction", "&", "MF", ",", "MCRegister", "Reg", ")", "const", "{", "CallingConv", "::", "ID", "CC", "=", "MF", ".", "getFunction", "(", ")", ".", "getCallingConv", "(", ")", ";", "const", "AArch64Subtarget", "&", "STI", "=", "MF", ".", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ";", "bool", "IsVarArg", "=", "STI", ".", "isCallingConvWin64", "(", "MF", ".", "getFunction", "(", ")", ".", "getCallingConv", "(", ")", ")", ";", "auto", "HasReg", "=", "[", "]", "(", "ArrayRef", "<", "MCRegister", ">", "RegList", ",", "MCRegister", "Reg", ")", "{", "return", "llvm", "::", "any_of", "(", "RegList", ",", "[", "Reg", "]", "(", "const", "MCRegister", "R", ")", "{", "return", "R", "==", "Reg", ";", "}", ")", ";", "}", ";", "switch", "(", "CC", ")", "{", "default", ":", "report_fatal_error", "(", "\"Unsupported calling convention.\"", ")", ";", "case", "CallingConv", "::", "WebKit_JS", ":", "return", "HasReg", "(", "CC_AArch64_WebKit_JS_ArgRegs", ",", "Reg", ")", ";", "case", "CallingConv", "::", "GHC", ":", "return", "HasReg", "(", "CC_AArch64_GHC_ArgRegs", ",", "Reg", ")", ";", "case", "CallingConv", "::", "C", ":", "case", "CallingConv", "::", "Fast", ":", "case", "CallingConv", "::", "PreserveMost", ":", "case", "CallingConv", "::", "CXX_FAST_TLS", ":", "case", "CallingConv", "::", "Swift", ":", "case", "CallingConv", "::", "SwiftTail", ":", "case", "CallingConv", "::", "Tail", ":", "if", "(", "STI", ".", "isTargetWindows", "(", ")", "&&", "IsVarArg", ")", "return", "HasReg", "(", "CC_AArch64_Win64_VarArg_ArgRegs", ",", "Reg", ")", ";", "if", "(", "!", "STI", ".", "isTargetDarwin", "(", ")", ")", "{", "switch", "(", "CC", ")", "{", "default", ":", "return", "HasReg", "(", "CC_AArch64_AAPCS_ArgRegs", ",", "Reg", ")", ";", "case", "CallingConv", "::", "Swift", ":", "case", "CallingConv", "::", "SwiftTail", ":", "return", "HasReg", "(", "CC_AArch64_AAPCS_ArgRegs", ",", "Reg", ")", "||", "HasReg", "(", "CC_AArch64_AAPCS_Swift_ArgRegs", ",", "Reg", ")", ";", "}", "}", "if", "(", "!", "IsVarArg", ")", "{", "switch", "(", "CC", ")", "{", "default", ":", "return", "HasReg", "(", "CC_AArch64_DarwinPCS_ArgRegs", ",", "Reg", ")", ";", "case", "CallingConv", "::", "Swift", ":", "case", "CallingConv", "::", "SwiftTail", ":", "return", "HasReg", "(", "CC_AArch64_DarwinPCS_ArgRegs", ",", "Reg", ")", "||", "HasReg", "(", "CC_AArch64_DarwinPCS_Swift_ArgRegs", ",", "Reg", ")", ";", "}", "}", "if", "(", "STI", ".", "isTargetILP32", "(", ")", ")", "return", "HasReg", "(", "CC_AArch64_DarwinPCS_ILP32_VarArg_ArgRegs", ",", "Reg", ")", ";", "return", "HasReg", "(", "CC_AArch64_DarwinPCS_VarArg_ArgRegs", ",", "Reg", ")", ";", "case", "CallingConv", "::", "Win64", ":", "if", "(", "IsVarArg", ")", "HasReg", "(", "CC_AArch64_Win64_VarArg_ArgRegs", ",", "Reg", ")", ";", "return", "HasReg", "(", "CC_AArch64_AAPCS_ArgRegs", ",", "Reg", ")", ";", "case", "CallingConv", "::", "CFGuard_Check", ":", "return", "HasReg", "(", "CC_AArch64_Win64_CFGuard_Check_ArgRegs", ",", "Reg", ")", ";", "case", "CallingConv", "::", "AArch64_VectorCall", ":", "case", "CallingConv", "::", "AArch64_SVE_VectorCall", ":", "return", "HasReg", "(", "CC_AArch64_AAPCS_ArgRegs", ",", "Reg", ")", ";", "}", "}", ""], "natrual_language": ["isArgumentReg", "-", "Returns", "true", "if", "Reg", "can", "be", "used", "as", "an", "argument", "to", "a", "function", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "\"Unsupported calling convention.\"", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64RegisterInfo30", "Func": "isArgumentRegister", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2559, "Length": 376, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86LowerTileCopy", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "const", "X86Subtarget", "&", "ST", "=", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "const", "X86InstrInfo", "*", "TII", "=", "ST", ".", "getInstrInfo", "(", ")", ";", "bool", "Changed", "=", "false", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "{", "for", "(", "MachineBasicBlock", "::", "iterator", "MII", "=", "MBB", ".", "begin", "(", ")", ",", "MIE", "=", "MBB", ".", "end", "(", ")", ";", "MII", "!=", "MIE", ";", ")", "{", "MachineInstr", "&", "MI", "=", "*", "MII", "++", ";", "if", "(", "!", "MI", ".", "isCopy", "(", ")", ")", "continue", ";", "MachineOperand", "&", "DstMO", "=", "MI", ".", "getOperand", "(", "0", ")", ";", "MachineOperand", "&", "SrcMO", "=", "MI", ".", "getOperand", "(", "1", ")", ";", "Register", "SrcReg", "=", "SrcMO", ".", "getReg", "(", ")", ";", "Register", "DstReg", "=", "DstMO", ".", "getReg", "(", ")", ";", "if", "(", "!", "X86", "::", "TILERegClass", ".", "contains", "(", "DstReg", ",", "SrcReg", ")", ")", "continue", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "ST", ".", "getRegisterInfo", "(", ")", ";", "unsigned", "Size", "=", "TRI", "->", "getSpillSize", "(", "X86", "::", "TILERegClass", ")", ";", "Align", "Alignment", "=", "TRI", "->", "getSpillAlign", "(", "X86", "::", "TILERegClass", ")", ";", "int", "TileSS", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "CreateSpillStackObject", "(", "Size", ",", "Alignment", ")", ";", "Size", "=", "TRI", "->", "getSpillSize", "(", "X86", "::", "GR64RegClass", ")", ";", "Alignment", "=", "TRI", "->", "getSpillAlign", "(", "X86", "::", "GR64RegClass", ")", ";", "int", "StrideSS", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "CreateSpillStackObject", "(", "Size", ",", "Alignment", ")", ";", "Register", "GR64Cand", "=", "X86", "::", "RAX", ";", "const", "DebugLoc", "&", "DL", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "TII", "->", "get", "(", "X86", "::", "IMPLICIT_DEF", ")", ",", "GR64Cand", ")", ";", "addFrameReference", "(", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "TII", "->", "get", "(", "X86", "::", "MOV64mr", ")", ")", ",", "StrideSS", ")", ".", "addReg", "(", "GR64Cand", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "TII", "->", "get", "(", "X86", "::", "MOV64ri", ")", ",", "GR64Cand", ")", ".", "addImm", "(", "64", ")", ";", "unsigned", "Opc", "=", "X86", "::", "TILESTORED", ";", "MachineInstr", "*", "NewMI", "=", "addFrameReference", "(", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "TII", "->", "get", "(", "Opc", ")", ")", ",", "TileSS", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "SrcMO", ".", "isKill", "(", ")", ")", ")", ";", "MachineOperand", "&", "MO", "=", "NewMI", "->", "getOperand", "(", "2", ")", ";", "MO", ".", "setReg", "(", "GR64Cand", ")", ";", "MO", ".", "setIsKill", "(", "true", ")", ";", "Opc", "=", "X86", "::", "TILELOADD", ";", "NewMI", "=", "addFrameReference", "(", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "TII", "->", "get", "(", "Opc", ")", ",", "DstReg", ")", ",", "TileSS", ")", ";", "addFrameReference", "(", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "TII", "->", "get", "(", "X86", "::", "MOV64rm", ")", ",", "GR64Cand", ")", ",", "StrideSS", ")", ";", "MI", ".", "eraseFromParent", "(", ")", ";", "Changed", "=", "true", ";", "}", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "0", "1", "X86::TILERegClass", "X86::TILERegClass", "X86::TILERegClass", "X86::GR64RegClass", "X86::GR64RegClass", "X86::RAX", "X86::IMPLICIT_DEF", "X86::MOV64mr", "X86::MOV64ri", "64", "X86::TILESTORED", "2", "X86::TILELOADD", "X86::MOV64rm"], "File": "X86LowerTileCopy", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2560, "Length": 474, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getMaxNumElements", "(", "ElementCount", "VF", ")", "const", "{", "if", "(", "!", "VF", ".", "isScalable", "(", ")", ")", "return", "VF", ".", "getFixedValue", "(", ")", ";", "return", "VF", ".", "getKnownMinValue", "(", ")", "*", "ST", "->", "getVScaleForTuning", "(", ")", ";", "}", ""], "natrual_language": ["Try", "to", "return", "an", "estimate", "cost", "factor", "that", "can", "be", "used", "as", "a", "multiplier", "when", "scalarizing", "an", "operation", "for", "a", "vector", "with", "ElementCount", "VF", "."], "TS_V_token": ["AArch64"], "File": "AArch64TargetTransformInfo", "Func": "getMaxNumElements", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2561, "Length": 38, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "symbian_possibly_export_base_class", "(", "tree", "base_class", ")", "{", "VEC", "(", "tree", ",", "gc", ")", "*", "method_vec", ";", "int", "len", ";", "if", "(", "!", "(", "TYPE_CONTAINS_VPTR_P", "(", "base_class", ")", ")", ")", "return", ";", "method_vec", "=", "CLASSTYPE_METHOD_VEC", "(", "base_class", ")", ";", "len", "=", "method_vec", "?", "VEC_length", "(", "tree", ",", "method_vec", ")", ":", "0", ";", "for", "(", ";", "len", "--", ";", ")", "{", "tree", "member", "=", "VEC_index", "(", "tree", ",", "method_vec", ",", "len", ")", ";", "if", "(", "!", "member", ")", "continue", ";", "for", "(", "member", "=", "OVL_CURRENT", "(", "member", ")", ";", "member", ";", "member", "=", "OVL_NEXT", "(", "member", ")", ")", "{", "if", "(", "TREE_CODE", "(", "member", ")", "!=", "FUNCTION_DECL", ")", "continue", ";", "if", "(", "DECL_CONSTRUCTOR_P", "(", "member", ")", "||", "DECL_DESTRUCTOR_P", "(", "member", ")", ")", "continue", ";", "if", "(", "!", "DECL_VIRTUAL_P", "(", "member", ")", ")", "continue", ";", "if", "(", "DECL_PURE_VIRTUAL_P", "(", "member", ")", ")", "continue", ";", "if", "(", "DECL_INLINE", "(", "member", ")", ")", "continue", ";", "break", ";", "}", "if", "(", "member", ")", "break", ";", "}", "if", "(", "len", "<", "0", ")", "return", ";", "print_node_brief", "(", "stderr", ",", "\"\"", ",", "base_class", ",", "0", ")", ";", "fprintf", "(", "stderr", ",", "\" EXPORTed [base class of exported class]\\n\"", ")", ";", "}", ""], "natrual_language": ["Decide", "if", "a", "base", "class", "of", "a", "class", "should", "also", "have", "its", "vtable", "and", "rtti", "exported", "."], "TS_V_token": ["sh", "0", "0", "\"\"", "0", "\" EXPORTed [base class of exported class]\\n\""], "File": "symbian", "Func": "symbian_possibly_export_base_class", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2562, "Length": 188, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SMLoc", "getStartLoc", "(", ")", "const", "override", "{", "return", "StartLoc", ";", "}", ""], "natrual_language": ["getStartLoc", "-", "Get", "the", "location", "of", "the", "first", "token", "of", "this", "operand", "."], "TS_V_token": ["X86"], "File": "X86Operand (2)", "Func": "getStartLoc", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2563, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MVT", "AArch64TargetLowering", "::", "getScalarShiftAmountTy", "(", "const", "DataLayout", "&", "DL", ",", "EVT", ")", "const", "{", "return", "MVT", "::", "i64", ";", "}", ""], "natrual_language": ["Return", "the", "type", "to", "use", "for", "a", "scalar", "shift", "opcode", ",", "given", "the", "shifted", "amount", "type", "."], "TS_V_token": ["AArch64", "AArch64", "MVT::i64"], "File": "AArch64ISelLowering (2)", "Func": "getScalarShiftAmountTy", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2564, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64A57FPLoadBalancing", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "F", ")", "{", "if", "(", "skipFunction", "(", "*", "F", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "if", "(", "!", "F", ".", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ".", "balanceFPOps", "(", ")", ")", "return", "false", ";", "bool", "Changed", "=", "false", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** AArch64A57FPLoadBalancing *****\\n\"", ")", ";", "MRI", "=", "&", "F", ".", "getRegInfo", "(", ")", ";", "TRI", "=", "F", ".", "getRegInfo", "(", ")", ".", "getTargetRegisterInfo", "(", ")", ";", "RCI", ".", "runOnMachineFunction", "(", "F", ")", ";", "for", "(", "auto", "&", "MBB", ":", "F", ")", "{", "Changed", "|=", "runOnBasicBlock", "(", "MBB", ")", ";", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "\"***** AArch64A57FPLoadBalancing *****\\n\""], "File": "AArch64A57FPLoadBalancing11", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2565, "Length": 107, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "loongarch_force_address", "(", "rtx", "x", ",", "machine_mode", "mode", ")", "{", "if", "(", "!", "loongarch_legitimate_address_p", "(", "mode", ",", "x", ",", "false", ")", ")", "x", "=", "force_reg", "(", "Pmode", ",", "x", ")", ";", "return", "x", ";", "}", ""], "natrual_language": ["If", "X", "is", "not", "a", "valid", "address", "for", "mode", "MODE", ",", "force", "it", "into", "a", "register", "."], "TS_V_token": ["loongarch"], "File": "loongarch", "Func": "loongarch_force_address", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2566, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "rs6000_init_stack_protect_guard", "(", "void", ")", "{", "if", "(", "rs6000_stack_protector_guard", "==", "SSP_GLOBAL", ")", "return", "default_stack_protect_guard", "(", ")", ";", "return", "NULL_TREE", ";", "}", ""], "natrual_language": ["Only", "create", "the", "global", "variable", "for", "the", "stack", "protect", "guard", "if", "we", "are", "using", "the", "global", "flavor", "of", "that", "guard", "."], "TS_V_token": ["powerpcspe"], "File": "powerpcspe", "Func": "rs6000_init_stack_protect_guard", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2567, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "X86TargetLowering", "::", "getRecipEstimate", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ",", "int", "Enabled", ",", "int", "&", "RefinementSteps", ")", "const", "{", "EVT", "VT", "=", "Op", ".", "getValueType", "(", ")", ";", "if", "(", "(", "VT", "==", "MVT", "::", "f32", "&&", "Subtarget", ".", "hasSSE1", "(", ")", ")", "||", "(", "VT", "==", "MVT", "::", "v4f32", "&&", "Subtarget", ".", "hasSSE1", "(", ")", ")", "||", "(", "VT", "==", "MVT", "::", "v8f32", "&&", "Subtarget", ".", "hasAVX", "(", ")", ")", "||", "(", "VT", "==", "MVT", "::", "v16f32", "&&", "Subtarget", ".", "useAVX512Regs", "(", ")", ")", ")", "{", "if", "(", "VT", "==", "MVT", "::", "f32", "&&", "Enabled", "==", "ReciprocalEstimate", "::", "Unspecified", ")", "return", "SDValue", "(", ")", ";", "if", "(", "RefinementSteps", "==", "ReciprocalEstimate", "::", "Unspecified", ")", "RefinementSteps", "=", "1", ";", "unsigned", "Opcode", "=", "VT", "==", "MVT", "::", "v16f32", "?", "X86ISD", "::", "RCP14", ":", "X86ISD", "::", "FRCP", ";", "return", "DAG", ".", "getNode", "(", "Opcode", ",", "SDLoc", "(", "Op", ")", ",", "VT", ",", "Op", ")", ";", "}", "return", "SDValue", "(", ")", ";", "}", ""], "natrual_language": ["Return", "a", "reciprocal", "estimate", "value", "for", "the", "input", "operand", "."], "TS_V_token": ["X86", "X86", "MVT::f32", "MVT::v4f32", "MVT::v8f32", "MVT::v16f32", "MVT::f32", "1", "MVT::v16f32", "X86ISD::RCP14", "X86ISD::FRCP"], "File": "X86ISelLowering (2)6", "Func": "getRecipEstimate", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2568, "Length": 161, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "IsDesirableToPromoteOp", "(", "SDValue", "Op", ",", "EVT", "&", "PVT", ")", "const", "{", "EVT", "VT", "=", "Op", ".", "getValueType", "(", ")", ";", "if", "(", "VT", "!=", "MVT", "::", "i16", ")", "return", "false", ";", "auto", "IsFoldableRMW", "=", "[", "]", "(", "SDValue", "Load", ",", "SDValue", "Op", ")", "{", "if", "(", "!", "Op", ".", "hasOneUse", "(", ")", ")", "return", "false", ";", "SDNode", "*", "User", "=", "*", "Op", "->", "use_begin", "(", ")", ";", "if", "(", "!", "ISD", "::", "isNormalStore", "(", "User", ")", ")", "return", "false", ";", "auto", "*", "Ld", "=", "cast", "<", "LoadSDNode", ">", "(", "Load", ")", ";", "auto", "*", "St", "=", "cast", "<", "StoreSDNode", ">", "(", "User", ")", ";", "return", "Ld", "->", "getBasePtr", "(", ")", "==", "St", "->", "getBasePtr", "(", ")", ";", "}", ";", "bool", "Commute", "=", "false", ";", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "false", ";", "case", "ISD", "::", "SIGN_EXTEND", ":", "case", "ISD", "::", "ZERO_EXTEND", ":", "case", "ISD", "::", "ANY_EXTEND", ":", "break", ";", "case", "ISD", "::", "SHL", ":", "case", "ISD", "::", "SRL", ":", "{", "SDValue", "N0", "=", "Op", ".", "getOperand", "(", "0", ")", ";", "if", "(", "MayFoldLoad", "(", "N0", ")", "&&", "IsFoldableRMW", "(", "N0", ",", "Op", ")", ")", "return", "false", ";", "break", ";", "}", "case", "ISD", "::", "ADD", ":", "case", "ISD", "::", "MUL", ":", "case", "ISD", "::", "AND", ":", "case", "ISD", "::", "OR", ":", "case", "ISD", "::", "XOR", ":", "Commute", "=", "true", ";", "LLVM_FALLTHROUGH", ";", "case", "ISD", "::", "SUB", ":", "{", "SDValue", "N0", "=", "Op", ".", "getOperand", "(", "0", ")", ";", "SDValue", "N1", "=", "Op", ".", "getOperand", "(", "1", ")", ";", "if", "(", "MayFoldLoad", "(", "N1", ")", "&&", "(", "!", "Commute", "||", "!", "isa", "<", "ConstantSDNode", ">", "(", "N0", ")", "||", "(", "Op", ".", "getOpcode", "(", ")", "!=", "ISD", "::", "MUL", "&&", "IsFoldableRMW", "(", "N1", ",", "Op", ")", ")", ")", ")", "return", "false", ";", "if", "(", "MayFoldLoad", "(", "N0", ")", "&&", "(", "(", "Commute", "&&", "!", "isa", "<", "ConstantSDNode", ">", "(", "N1", ")", ")", "||", "(", "Op", ".", "getOpcode", "(", ")", "!=", "ISD", "::", "MUL", "&&", "IsFoldableRMW", "(", "N0", ",", "Op", ")", ")", ")", ")", "return", "false", ";", "}", "}", "PVT", "=", "MVT", "::", "i32", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "has", "native", "support", "for", "the", "specified", "value", "type", "and", "it", "is", "'desirable", "'", "to", "use", "the", "type", "."], "TS_V_token": ["X86", "X86", "MVT::i16", "ISD::isNormalStore", "ISD::SIGN_EXTEND", "ISD::ZERO_EXTEND", "ISD::ANY_EXTEND", "ISD::SHL", "ISD::SRL", "0", "ISD::ADD", "ISD::MUL", "ISD::AND", "ISD::OR", "ISD::XOR", "ISD::SUB", "0", "1", "ISD::MUL", "ISD::MUL", "MVT::i32"], "File": "X86ISelLowering111", "Func": "IsDesirableToPromoteOp", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2569, "Length": 355, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "pad_direction", "rs6000_function_arg_padding", "(", "machine_mode", "mode", ",", "const_tree", "type", ")", "{", "if", "(", "!", "AGGREGATE_PADDING_FIXED", ")", "{", "if", "(", "BYTES_BIG_ENDIAN", ")", "{", "HOST_WIDE_INT", "size", "=", "0", ";", "if", "(", "mode", "==", "BLKmode", ")", "{", "if", "(", "type", "&&", "TREE_CODE", "(", "TYPE_SIZE", "(", "type", ")", ")", "==", "INTEGER_CST", ")", "size", "=", "int_size_in_bytes", "(", "type", ")", ";", "}", "else", "size", "=", "GET_MODE_SIZE", "(", "mode", ")", ";", "if", "(", "size", "==", "1", "||", "size", "==", "2", "||", "size", "==", "4", ")", "return", "PAD_DOWNWARD", ";", "}", "return", "PAD_UPWARD", ";", "}", "if", "(", "AGGREGATES_PAD_UPWARD_ALWAYS", ")", "{", "if", "(", "type", "!=", "0", "&&", "AGGREGATE_TYPE_P", "(", "type", ")", ")", "return", "PAD_UPWARD", ";", "}", "return", "default_function_arg_padding", "(", "mode", ",", "type", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_FUNCTION_ARG_PADDING", ".", "For", "the", "AIX", "ABI", "structs", "are", "always", "stored", "left", "shifted", "in", "their", "argument", "slot", "."], "TS_V_token": ["rs6000", "0", "1", "2", "4", "0"], "File": "rs60007", "Func": "rs6000_function_arg_padding", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2570, "Length": 115, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "machine_mode", "memory_vector_mode", "(", "const", "function_instance", "&", "fi", ")", "const", "OVERRIDE", "{", "poly_uint64", "nunits", "=", "GET_MODE_NUNITS", "(", "fi", ".", "vector_mode", "(", "0", ")", ")", ";", "return", "aarch64_sve_data_mode", "(", "m_to_mode", ",", "nunits", ")", ".", "require", "(", ")", ";", "}", ""], "natrual_language": ["If", "the", "function", "addresses", "memory", ",", "return", "a", "vector", "mode", "whose", "GET_MODE_NUNITS", "is", "the", "number", "of", "elements", "addressed", "and", "whose", "GET_MODE_INNER", "is", "the", "mode", "of", "a", "single", "scalar", "memory", "element", "."], "TS_V_token": ["aarch64", "0"], "File": "aarch64-sve-builtins-functions", "Func": "memory_vector_mode", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2571, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "loongarch_expand_builtin_direct", "(", "enum", "insn_code", "icode", ",", "rtx", "target", ",", "tree", "exp", ",", "bool", "has_target_p", ")", "{", "struct", "expand_operand", "ops", "[", "MAX_RECOG_OPERANDS", "]", ";", "int", "opno", ",", "argno", ";", "opno", "=", "0", ";", "if", "(", "has_target_p", ")", "create_output_operand", "(", "&", "ops", "[", "opno", "++", "]", ",", "target", ",", "TYPE_MODE", "(", "TREE_TYPE", "(", "exp", ")", ")", ")", ";", "gcc_assert", "(", "opno", "+", "call_expr_nargs", "(", "exp", ")", "==", "insn_data", "[", "icode", "]", ".", "n_generator_args", ")", ";", "for", "(", "argno", "=", "0", ";", "argno", "<", "call_expr_nargs", "(", "exp", ")", ";", "argno", "++", ")", "loongarch_prepare_builtin_arg", "(", "&", "ops", "[", "opno", "++", "]", ",", "exp", ",", "argno", ")", ";", "return", "loongarch_expand_builtin_insn", "(", "icode", ",", "opno", ",", "ops", ",", "has_target_p", ")", ";", "}", ""], "natrual_language": ["Expand", "a", "LARCH_BUILTIN_DIRECT", "or", "LARCH_BUILTIN_DIRECT_NO_TARGET", "function", ";", "HAS_TARGET_P", "says", "which", ".", "EXP", "is", "the", "CALL_EXPR", "that", "calls", "the", "function", "and", "ICODE", "is", "the", "code", "of", "the", "associated", ".md", "pattern", ".", "TARGET", ",", "if", "nonnull", ",", "suggests", "a", "good", "place", "to", "put", "the", "result", "."], "TS_V_token": ["loongarch", "0", "0"], "File": "loongarch-builtins", "Func": "loongarch_expand_builtin_direct", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2572, "Length": 118, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "LoongArchInstrInfo", "*", "getInstrInfo", "(", ")", "const", "override", "{", "return", "&", "InstrInfo", ";", "}", ""], "natrual_language": ["TargetInstrInfo", "getter", "."], "TS_V_token": ["LoongArch", "LoongArch"], "File": "LoongArchSubtarget", "Func": "getInstrInfo", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2573, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "InstructionCost", "ARMTTIImpl", "::", "getArithmeticReductionCost", "(", "unsigned", "Opcode", ",", "VectorType", "*", "ValTy", ",", "Optional", "<", "FastMathFlags", ">", "FMF", ",", "TTI", "::", "TargetCostKind", "CostKind", ")", "{", "if", "(", "TTI", "::", "requiresOrderedReduction", "(", "FMF", ")", ")", "return", "BaseT", "::", "getArithmeticReductionCost", "(", "Opcode", ",", "ValTy", ",", "FMF", ",", "CostKind", ")", ";", "EVT", "ValVT", "=", "TLI", "->", "getValueType", "(", "DL", ",", "ValTy", ")", ";", "int", "ISD", "=", "TLI", "->", "InstructionOpcodeToISD", "(", "Opcode", ")", ";", "if", "(", "!", "ST", "->", "hasMVEIntegerOps", "(", ")", "||", "!", "ValVT", ".", "isSimple", "(", ")", "||", "ISD", "!=", "ISD", "::", "ADD", ")", "return", "BaseT", "::", "getArithmeticReductionCost", "(", "Opcode", ",", "ValTy", ",", "FMF", ",", "CostKind", ")", ";", "std", "::", "pair", "<", "InstructionCost", ",", "MVT", ">", "LT", "=", "TLI", "->", "getTypeLegalizationCost", "(", "DL", ",", "ValTy", ")", ";", "static", "const", "CostTblEntry", "CostTblAdd", "[", "]", "{", "{", "ISD", "::", "ADD", ",", "MVT", "::", "v16i8", ",", "1", "}", ",", "{", "ISD", "::", "ADD", ",", "MVT", "::", "v8i16", ",", "1", "}", ",", "{", "ISD", "::", "ADD", ",", "MVT", "::", "v4i32", ",", "1", "}", ",", "}", ";", "if", "(", "const", "auto", "*", "Entry", "=", "CostTableLookup", "(", "CostTblAdd", ",", "ISD", ",", "LT", ".", "second", ")", ")", "return", "Entry", "->", "Cost", "*", "ST", "->", "getMVEVectorCostFactor", "(", "CostKind", ")", "*", "LT", ".", "first", ";", "return", "BaseT", "::", "getArithmeticReductionCost", "(", "Opcode", ",", "ValTy", ",", "FMF", ",", "CostKind", ")", ";", "}", ""], "natrual_language": ["Calculate", "the", "cost", "of", "vector", "reduction", "intrinsics", "."], "TS_V_token": ["ARM", "ARM", "ISD::ADD", "ISD::ADD", "MVT::v16i8", "1", "ISD::ADD", "MVT::v8i16", "1", "ISD::ADD", "MVT::v4i32", "1"], "File": "ARMTargetTransformInfo14", "Func": "getArithmeticReductionCost", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2574, "Length": 218, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "CSKYMCExpr", "::", "getVariantKindName", "(", "VariantKind", "Kind", ")", "{", "switch", "(", "Kind", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Invalid ELF symbol kind\"", ")", ";", "case", "VK_CSKY_ADDR", ":", "return", "\"\"", ";", "case", "VK_CSKY_PCREL", ":", "return", "\"\"", ";", "case", "VK_CSKY_GOT", ":", "return", "\"@GOT\"", ";", "case", "VK_CSKY_GOTPC", ":", "return", "\"@GOTPC\"", ";", "case", "VK_CSKY_GOTOFF", ":", "return", "\"@GOTOFF\"", ";", "case", "VK_CSKY_PLT", ":", "return", "\"@PLT\"", ";", "case", "VK_CSKY_TPOFF", ":", "return", "\"@TPOFF\"", ";", "case", "VK_CSKY_TLSGD", ":", "return", "\"@TLSGD\"", ";", "}", "}", ""], "natrual_language": ["Convert", "the", "variant", "kind", "into", "an", "ELF-appropriate", "modifier", "(", "e.g", "."], "TS_V_token": ["CSKY", "CSKY", "\"Invalid ELF symbol kind\"", "CSKY", "\"\"", "CSKY", "\"\"", "CSKY", "\"@GOT\"", "CSKY", "\"@GOTPC\"", "CSKY", "\"@GOTOFF\"", "CSKY", "\"@PLT\"", "CSKY", "\"@TPOFF\"", "CSKY", "\"@TLSGD\""], "File": "CSKYMCExpr2", "Func": "getVariantKindName", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2575, "Length": 71, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "AArch64Subtarget", "*", "AArch64TargetMachine", "::", "getSubtargetImpl", "(", "const", "Function", "&", "F", ")", "const", "{", "AttributeSet", "FnAttrs", "=", "F", ".", "getAttributes", "(", ")", ";", "Attribute", "CPUAttr", "=", "FnAttrs", ".", "getAttribute", "(", "AttributeSet", "::", "FunctionIndex", ",", "\"target-cpu\"", ")", ";", "Attribute", "FSAttr", "=", "FnAttrs", ".", "getAttribute", "(", "AttributeSet", "::", "FunctionIndex", ",", "\"target-features\"", ")", ";", "std", "::", "string", "CPU", "=", "!", "CPUAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "CPUAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetCPU", ";", "std", "::", "string", "FS", "=", "!", "FSAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "FSAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetFS", ";", "auto", "&", "I", "=", "SubtargetMap", "[", "CPU", "+", "FS", "]", ";", "if", "(", "!", "I", ")", "{", "resetTargetOptions", "(", "F", ")", ";", "I", "=", "llvm", "::", "make_unique", "<", "AArch64Subtarget", ">", "(", "TargetTriple", ",", "CPU", ",", "FS", ",", "*", "this", ",", "isLittle", ")", ";", "}", "return", "I", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "\"target-cpu\"", "\"target-features\"", "AArch64"], "File": "AArch64TargetMachine29", "Func": "getSubtargetImpl", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2576, "Length": 157, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCCodeEmitter", "::", "getMachineOpValue", "(", "const", "MachineInstr", "&", "MI", ",", "const", "MachineOperand", "&", "MO", ")", "const", "{", "if", "(", "MO", ".", "isReg", "(", ")", ")", "{", "assert", "(", "(", "MI", ".", "getOpcode", "(", ")", "!=", "PPC", "::", "MTCRF", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "PPC", "::", "MTCRF8", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "PPC", "::", "MFOCRF", ")", "||", "MO", ".", "getReg", "(", ")", "<", "PPC", "::", "CR0", "||", "MO", ".", "getReg", "(", ")", ">", "PPC", "::", "CR7", ")", ";", "return", "getPPCRegisterNumbering", "(", "MO", ".", "getReg", "(", ")", ")", ";", "}", "assert", "(", "MO", ".", "isImm", "(", ")", "&&", "\"Relocation required in an instruction that we cannot encode!\"", ")", ";", "return", "MO", ".", "getImm", "(", ")", ";", "}", ""], "natrual_language": ["getMachineOpValue", "-", "Return", "binary", "encoding", "of", "operand", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::MTCRF", "PPC::MTCRF8", "PPC::MFOCRF", "PPC::CR0", "PPC::CR7", "PPC", "\"Relocation required in an instruction that we cannot encode!\""], "File": "PPCCodeEmitter11", "Func": "getMachineOpValue", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2577, "Length": 111, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MVT", "X86TargetLowering", "::", "getRegisterTypeForCallingConv", "(", "LLVMContext", "&", "Context", ",", "CallingConv", "::", "ID", "CC", ",", "EVT", "VT", ")", "const", "{", "if", "(", "VT", "==", "MVT", "::", "v32i1", "&&", "Subtarget", ".", "hasAVX512", "(", ")", "&&", "!", "Subtarget", ".", "hasBWI", "(", ")", ")", "return", "MVT", "::", "v32i8", ";", "if", "(", "VT", ".", "isVector", "(", ")", "&&", "VT", ".", "getVectorElementType", "(", ")", "==", "MVT", "::", "i1", "&&", "Subtarget", ".", "hasAVX512", "(", ")", "&&", "(", "!", "isPowerOf2_32", "(", "VT", ".", "getVectorNumElements", "(", ")", ")", "||", "(", "VT", ".", "getVectorNumElements", "(", ")", ">", "16", "&&", "!", "Subtarget", ".", "hasBWI", "(", ")", ")", "||", "(", "VT", ".", "getVectorNumElements", "(", ")", ">", "64", "&&", "Subtarget", ".", "hasBWI", "(", ")", ")", ")", ")", "return", "MVT", "::", "i8", ";", "if", "(", "(", "VT", "==", "MVT", "::", "v32i16", "||", "VT", "==", "MVT", "::", "v64i8", ")", "&&", "Subtarget", ".", "hasAVX512", "(", ")", "&&", "!", "Subtarget", ".", "hasBWI", "(", ")", "&&", "!", "EnableOldKNLABI", ")", "return", "MVT", "::", "v16i32", ";", "return", "TargetLowering", "::", "getRegisterTypeForCallingConv", "(", "Context", ",", "CC", ",", "VT", ")", ";", "}", ""], "natrual_language": ["Certain", "combinations", "of", "ABIs", ",", "Targets", "and", "features", "require", "that", "types", "are", "legal", "for", "some", "operations", "and", "not", "for", "other", "operations", "."], "TS_V_token": ["X86", "X86", "MVT::v32i1", "MVT::v32i8", "MVT::i1", "16", "64", "MVT::i8", "MVT::v32i16", "MVT::v64i8", "MVT::v16i32"], "File": "X86ISelLowering (2)7", "Func": "getRegisterTypeForCallingConv", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2578, "Length": 169, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64StackTaggingPreRA", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "Func", ")", "{", "MF", "=", "&", "Func", ";", "MRI", "=", "&", "MF", "->", "getRegInfo", "(", ")", ";", "AFI", "=", "MF", "->", "getInfo", "<", "AArch64FunctionInfo", ">", "(", ")", ";", "TII", "=", "static_cast", "<", "const", "AArch64InstrInfo", "*", ">", "(", "MF", "->", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "static_cast", "<", "const", "AArch64RegisterInfo", "*", ">", "(", "MF", "->", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ")", ";", "MFI", "=", "&", "MF", "->", "getFrameInfo", "(", ")", ";", "ReTags", ".", "clear", "(", ")", ";", "assert", "(", "MRI", "->", "isSSA", "(", ")", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"********** AArch64 Stack Tagging PreRA **********\\n\"", "<<", "\"********** Function: \"", "<<", "MF", "->", "getName", "(", ")", "<<", "'\\n'", ")", ";", "SmallSetVector", "<", "int", ",", "8", ">", "TaggedSlots", ";", "for", "(", "auto", "&", "BB", ":", "*", "MF", ")", "{", "for", "(", "auto", "&", "I", ":", "BB", ")", "{", "if", "(", "I", ".", "getOpcode", "(", ")", "==", "AArch64", "::", "TAGPstack", ")", "{", "ReTags", ".", "push_back", "(", "&", "I", ")", ";", "int", "FI", "=", "I", ".", "getOperand", "(", "1", ")", ".", "getIndex", "(", ")", ";", "TaggedSlots", ".", "insert", "(", "FI", ")", ";", "assert", "(", "I", ".", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", "==", "0", ")", ";", "}", "}", "}", "if", "(", "ReTags", ".", "empty", "(", ")", ")", "return", "false", ";", "if", "(", "mayUseUncheckedLoadStore", "(", ")", ")", "uncheckLoadsAndStores", "(", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "\"********** AArch64 Stack Tagging PreRA **********\\n\"", "\"********** Function: \"", "8", "AArch64::TAGPstack", "1", "2", "0"], "File": "AArch64StackTaggingPreRA", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2579, "Length": 231, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "TargetRegisterClass", "*", "X86RegisterInfo", "::", "getGPRsForTailCall", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "Function", "*", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "if", "(", "F", "&&", "F", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "GHC", ")", "{", "if", "(", "Is64Bit", ")", "return", "&", "X86", "::", "GR64RegClass", ";", "else", "return", "&", "X86", "::", "GR32RegClass", ";", "}", "if", "(", "IsWin64", "||", "(", "F", "&&", "F", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "X86_64_Win64", ")", ")", "return", "&", "X86", "::", "GR64_TCW64RegClass", ";", "else", "if", "(", "Is64Bit", ")", "return", "&", "X86", "::", "GR64_TCRegClass", ";", "bool", "hasHipeCC", "=", "(", "F", "?", "F", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "HiPE", ":", "false", ")", ";", "if", "(", "hasHipeCC", ")", "return", "&", "X86", "::", "GR32RegClass", ";", "return", "&", "X86", "::", "GR32_TCRegClass", ";", "}", ""], "natrual_language": ["getGPRsForTailCall", "-", "Returns", "a", "register", "class", "with", "registers", "that", "can", "be", "used", "in", "forming", "tail", "calls", "."], "TS_V_token": ["X86", "X86", "X86::GR64RegClass", "X86::GR32RegClass", "X86", "X86::GR64_TCW64RegClass", "X86::GR64_TCRegClass", "X86::GR32RegClass", "X86::GR32_TCRegClass"], "File": "X86RegisterInfo20", "Func": "getGPRsForTailCall", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2580, "Length": 129, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SHUXIFrameLowering", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "CSI", ".", "empty", "(", ")", ")", "return", "false", ";", "DebugLoc", "DL", ";", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "TII", ".", "get", "(", "SHUXI", "::", "POP", ")", ",", "CSI", "[", "i", "]", ".", "getReg", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["restoreCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "restore", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "load", "instructions", "via", "loadRegToStackSlot", "(", ")", "."], "TS_V_token": ["SHUXI", "SHUXI", "0", "SHUXI::POP"], "File": "SHUXIFrameLowering", "Func": "restoreCalleeSavedRegisters", "Target": "SHUXI", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2581, "Length": 142, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "unsigned", "getNumFixupKinds", "(", ")", "const", "LLVM_OVERRIDE", "{", "return", "SystemZ", "::", "NumTargetFixupKinds", ";", "}", ""], "natrual_language": ["Get", "the", "number", "of", "target", "specific", "fixup", "kinds", "."], "TS_V_token": ["SystemZ", "SystemZ::NumTargetFixupKinds"], "File": "SystemZMCAsmBackend29", "Func": "getNumFixupKinds", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2582, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FrameIdx", ",", "const", "TargetRegisterClass", "*", "RC", ")", "const", "{", "DebugLoc", "DL", "=", "DebugLoc", "::", "getUnknownLoc", "(", ")", ";", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "unsigned", "Opc", "=", "0", ";", "if", "(", "RC", "==", "&", "SystemZ", "::", "GR32RegClass", "||", "RC", "==", "&", "SystemZ", "::", "ADDR32RegClass", ")", "Opc", "=", "SystemZ", "::", "MOV32mr", ";", "else", "if", "(", "RC", "==", "&", "SystemZ", "::", "GR64RegClass", "||", "RC", "==", "&", "SystemZ", "::", "ADDR64RegClass", ")", "{", "Opc", "=", "SystemZ", "::", "MOV64mr", ";", "}", "else", "if", "(", "RC", "==", "&", "SystemZ", "::", "FP32RegClass", ")", "{", "Opc", "=", "SystemZ", "::", "FMOV32mr", ";", "}", "else", "if", "(", "RC", "==", "&", "SystemZ", "::", "FP64RegClass", ")", "{", "Opc", "=", "SystemZ", "::", "FMOV64mr", ";", "}", "else", "if", "(", "RC", "==", "&", "SystemZ", "::", "GR64PRegClass", ")", "{", "Opc", "=", "SystemZ", "::", "MOV64Pmr", ";", "}", "else", "if", "(", "RC", "==", "&", "SystemZ", "::", "GR128RegClass", ")", "{", "Opc", "=", "SystemZ", "::", "MOV128mr", ";", "}", "else", "llvm_unreachable", "(", "\"Unsupported regclass to store\"", ")", ";", "addFrameReference", "(", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "Opc", ")", ")", ",", "FrameIdx", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["SystemZ", "SystemZ", "0", "SystemZ::GR32RegClass", "SystemZ::ADDR32RegClass", "SystemZ::MOV32mr", "SystemZ::GR64RegClass", "SystemZ::ADDR64RegClass", "SystemZ::MOV64mr", "SystemZ::FP32RegClass", "SystemZ::FMOV32mr", "SystemZ::FP64RegClass", "SystemZ::FMOV64mr", "SystemZ::GR64PRegClass", "SystemZ::MOV64Pmr", "SystemZ::GR128RegClass", "SystemZ::MOV128mr", "\"Unsupported regclass to store\""], "File": "SystemZInstrInfo31", "Func": "storeRegToStackSlot", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2583, "Length": 217, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ix86_force_load_from_GOT_p", "(", "rtx", "x", ")", "{", "return", "(", "(", "TARGET_64BIT", "||", "HAVE_AS_IX86_GOT32X", ")", "&&", "!", "TARGET_PECOFF", "&&", "!", "TARGET_MACHO", "&&", "!", "flag_plt", "&&", "!", "flag_pic", "&&", "ix86_cmodel", "!=", "CM_LARGE", "&&", "GET_CODE", "(", "x", ")", "==", "SYMBOL_REF", "&&", "SYMBOL_REF_FUNCTION_P", "(", "x", ")", "&&", "!", "SYMBOL_REF_LOCAL_P", "(", "x", ")", ")", ";", "}", ""], "natrual_language": ["True", "if", "the", "function", "symbol", "operand", "X", "should", "be", "loaded", "from", "GOT", ".", "NB", ":", "In", "32-bit", "mode", ",", "only", "non-PIC", "is", "allowed", "in", "inline", "assembly", "statements", ",", "since", "a", "PIC", "register", "could", "not", "be", "available", "at", "the", "call", "site", "."], "TS_V_token": ["i386"], "File": "i3866", "Func": "ix86_force_load_from_GOT_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2584, "Length": 51, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "DecodeStatus", "ARMDisassembler", "::", "getInstruction", "(", "MCInst", "&", "MI", ",", "uint64_t", "&", "Size", ",", "ArrayRef", "<", "uint8_t", ">", "Bytes", ",", "uint64_t", "Address", ",", "raw_ostream", "&", "OS", ",", "raw_ostream", "&", "CS", ")", "const", "{", "CommentStream", "=", "&", "CS", ";", "assert", "(", "!", "STI", ".", "getFeatureBits", "(", ")", "[", "ARM", "::", "ModeThumb", "]", "&&", "\"Asked to disassemble an ARM instruction but Subtarget is in Thumb \"", "\"mode!\"", ")", ";", "if", "(", "Bytes", ".", "size", "(", ")", "<", "4", ")", "{", "Size", "=", "0", ";", "return", "MCDisassembler", "::", "Fail", ";", "}", "uint32_t", "Insn", "=", "(", "Bytes", "[", "3", "]", "<<", "24", ")", "|", "(", "Bytes", "[", "2", "]", "<<", "16", ")", "|", "(", "Bytes", "[", "1", "]", "<<", "8", ")", "|", "(", "Bytes", "[", "0", "]", "<<", "0", ")", ";", "DecodeStatus", "Result", "=", "decodeInstruction", "(", "DecoderTableARM32", ",", "MI", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Result", "!=", "MCDisassembler", "::", "Fail", ")", "{", "Size", "=", "4", ";", "return", "checkDecodedInstruction", "(", "MI", ",", "Size", ",", "Address", ",", "OS", ",", "CS", ",", "Insn", ",", "Result", ")", ";", "}", "struct", "DecodeTable", "{", "const", "uint8_t", "*", "P", ";", "bool", "DecodePred", ";", "}", ";", "const", "DecodeTable", "Tables", "[", "]", "=", "{", "{", "DecoderTableVFP32", ",", "false", "}", ",", "{", "DecoderTableVFPV832", ",", "false", "}", ",", "{", "DecoderTableNEONData32", ",", "true", "}", ",", "{", "DecoderTableNEONLoadStore32", ",", "true", "}", ",", "{", "DecoderTableNEONDup32", ",", "true", "}", ",", "{", "DecoderTablev8NEON32", ",", "false", "}", ",", "{", "DecoderTablev8Crypto32", ",", "false", "}", ",", "}", ";", "for", "(", "auto", "Table", ":", "Tables", ")", "{", "Result", "=", "decodeInstruction", "(", "Table", ".", "P", ",", "MI", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Result", "!=", "MCDisassembler", "::", "Fail", ")", "{", "Size", "=", "4", ";", "if", "(", "Table", ".", "DecodePred", "&&", "!", "DecodePredicateOperand", "(", "MI", ",", "0xE", ",", "Address", ",", "this", ")", ")", "return", "MCDisassembler", "::", "Fail", ";", "return", "Result", ";", "}", "}", "Size", "=", "0", ";", "return", "MCDisassembler", "::", "Fail", ";", "}", ""], "natrual_language": ["Returns", "the", "disassembly", "of", "a", "single", "instruction", "."], "TS_V_token": ["ARM", "ARM", "ARM::ModeThumb", "\"Asked to disassemble an ARM instruction but Subtarget is in Thumb \"", "\"mode!\"", "4", "0", "3", "24", "2", "16", "1", "8", "0", "0", "ARM", "4", "4", "0xE", "0"], "File": "ARMDisassembler58", "Func": "getInstruction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2585, "Length": 307, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64BranchRelaxation", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "mf", ")", "{", "MF", "=", "&", "mf", ";", "if", "(", "!", "BranchRelaxation", ")", "return", "false", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** AArch64BranchRelaxation *****\\n\"", ")", ";", "TII", "=", "(", "const", "AArch64InstrInfo", "*", ")", "MF", "->", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "MF", "->", "RenumberBlocks", "(", ")", ";", "scanFunction", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\" Basic blocks before relaxation\\n\"", ")", ";", "DEBUG", "(", "dumpBBs", "(", ")", ")", ";", "bool", "MadeChange", "=", "false", ";", "while", "(", "relaxBranchInstructions", "(", ")", ")", "MadeChange", "=", "true", ";", "verify", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\" Basic blocks after relaxation\\n\"", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "'\\n'", ";", "dumpBBs", "(", ")", ")", ";", "BlockInfo", ".", "clear", "(", ")", ";", "return", "MadeChange", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "\"***** AArch64BranchRelaxation *****\\n\"", "AArch64", "\" Basic blocks before relaxation\\n\"", "\" Basic blocks after relaxation\\n\""], "File": "AArch64BranchRelaxation", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2586, "Length": 126, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx_insn", "*", "emit_window_save", "(", "rtx", "increment", ")", "{", "rtx_insn", "*", "insn", "=", "emit_insn", "(", "gen_window_save", "(", "increment", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_REGISTER", ",", "gen_rtx_SET", "(", "gen_rtx_REG", "(", "Pmode", ",", "RETURN_ADDR_REGNUM", ")", ",", "gen_rtx_REG", "(", "Pmode", ",", "INCOMING_RETURN_ADDR_REGNUM", ")", ")", ")", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_WINDOW_SAVE", ",", "const0_rtx", ")", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_DEF_CFA", ",", "plus_constant", "(", "Pmode", ",", "hard_frame_pointer_rtx", ",", "INCOMING_FRAME_SP_OFFSET", ")", ")", ";", "return", "insn", ";", "}", ""], "natrual_language": ["Emit", "a", "window_save", "insn", "."], "TS_V_token": ["sparc", "1"], "File": "sparc", "Func": "emit_window_save", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2587, "Length": 81, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsPassConfig", "::", "addPreSched2", "(", ")", "{", "addPass", "(", "createMipsExpandPseudoPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "after", "prolog-epilog", "insertion", "and", "before", "the", "second", "instruction", "scheduling", "pass", "."], "TS_V_token": ["Mips", "Mips", "Mips"], "File": "MipsTargetMachine46", "Func": "addPreSched2", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2588, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCFixupKindInfo", "&", "getFixupKindInfo", "(", "MCFixupKind", "Kind", ")", "const", "{", "const", "static", "MCFixupKindInfo", "Infos", "[", "ARM64", "::", "NumTargetFixupKinds", "]", "=", "{", "{", "\"fixup_arm64_pcrel_adr_imm21\"", ",", "0", ",", "32", ",", "PCRelFlagVal", "}", ",", "{", "\"fixup_arm64_pcrel_adrp_imm21\"", ",", "0", ",", "32", ",", "PCRelFlagVal", "}", ",", "{", "\"fixup_arm64_add_imm12\"", ",", "10", ",", "12", ",", "0", "}", ",", "{", "\"fixup_arm64_ldst_imm12_scale1\"", ",", "10", ",", "12", ",", "0", "}", ",", "{", "\"fixup_arm64_ldst_imm12_scale2\"", ",", "10", ",", "12", ",", "0", "}", ",", "{", "\"fixup_arm64_ldst_imm12_scale4\"", ",", "10", ",", "12", ",", "0", "}", ",", "{", "\"fixup_arm64_ldst_imm12_scale8\"", ",", "10", ",", "12", ",", "0", "}", ",", "{", "\"fixup_arm64_ldst_imm12_scale16\"", ",", "10", ",", "12", ",", "0", "}", ",", "{", "\"fixup_arm64_ldr_pcrel_imm19\"", ",", "5", ",", "19", ",", "PCRelFlagVal", "}", ",", "{", "\"fixup_arm64_movw\"", ",", "5", ",", "16", ",", "0", "}", ",", "{", "\"fixup_arm64_pcrel_branch14\"", ",", "5", ",", "14", ",", "PCRelFlagVal", "}", ",", "{", "\"fixup_arm64_pcrel_branch19\"", ",", "5", ",", "19", ",", "PCRelFlagVal", "}", ",", "{", "\"fixup_arm64_pcrel_branch26\"", ",", "0", ",", "26", ",", "PCRelFlagVal", "}", ",", "{", "\"fixup_arm64_pcrel_call26\"", ",", "0", ",", "26", ",", "PCRelFlagVal", "}", ",", "{", "\"fixup_arm64_tlsdesc_call\"", ",", "0", ",", "0", ",", "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": ["ARM64", "ARM64::NumTargetFixupKinds", "\"fixup_arm64_pcrel_adr_imm21\"", "0", "32", "\"fixup_arm64_pcrel_adrp_imm21\"", "0", "32", "\"fixup_arm64_add_imm12\"", "10", "12", "0", "\"fixup_arm64_ldst_imm12_scale1\"", "10", "12", "0", "\"fixup_arm64_ldst_imm12_scale2\"", "10", "12", "0", "\"fixup_arm64_ldst_imm12_scale4\"", "10", "12", "0", "\"fixup_arm64_ldst_imm12_scale8\"", "10", "12", "0", "\"fixup_arm64_ldst_imm12_scale16\"", "10", "12", "0", "\"fixup_arm64_ldr_pcrel_imm19\"", "5", "19", "\"fixup_arm64_movw\"", "5", "16", "0", "\"fixup_arm64_pcrel_branch14\"", "5", "14", "\"fixup_arm64_pcrel_branch19\"", "5", "19", "\"fixup_arm64_pcrel_branch26\"", "0", "26", "\"fixup_arm64_pcrel_call26\"", "0", "26", "\"fixup_arm64_tlsdesc_call\"", "0", "0", "0", "\"Invalid kind!\""], "File": "ARM64AsmBackend", "Func": "getFixupKindInfo", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2589, "Length": 211, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "arm_tls_referenced_p", "(", "rtx", "x", ")", "{", "if", "(", "!", "TARGET_HAVE_TLS", ")", "return", "false", ";", "subrtx_iterator", "::", "array_type", "array", ";", "FOR_EACH_SUBRTX", "(", "iter", ",", "array", ",", "x", ",", "ALL", ")", "{", "const_rtx", "x", "=", "*", "iter", ";", "if", "(", "SYMBOL_REF_P", "(", "x", ")", "&&", "SYMBOL_REF_TLS_MODEL", "(", "x", ")", "!=", "0", ")", "{", "if", "(", "arm_disable_literal_pool", ")", "sorry", "(", "\"accessing thread-local storage is not currently supported \"", "\"with %<-mpure-code%> or %<-mslow-flash-data%>\"", ")", ";", "return", "true", ";", "}", "if", "(", "GET_CODE", "(", "x", ")", "==", "UNSPEC", "&&", "XINT", "(", "x", ",", "1", ")", "==", "UNSPEC_TLS", ")", "iter", ".", "skip_subrtxes", "(", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "TRUE", "if", "X", "contains", "any", "TLS", "symbol", "references", "."], "TS_V_token": ["arm", "0", "\"accessing thread-local storage is not currently supported \"", "\"with %<-mpure-code%> or %<-mslow-flash-data%>\"", "1"], "File": "arm", "Func": "arm_tls_referenced_p", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2590, "Length": 95, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "AArch64FrameLowering", "::", "getFrameIndexReferencePreferSP", "(", "const", "MachineFunction", "&", "MF", ",", "int", "FI", ",", "Register", "&", "FrameReg", ",", "bool", "IgnoreSPUpdates", ")", "const", "{", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "if", "(", "IgnoreSPUpdates", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Offset from the SP for \"", "<<", "FI", "<<", "\" is \"", "<<", "MFI", ".", "getObjectOffset", "(", "FI", ")", "<<", "\"\\n\"", ")", ";", "FrameReg", "=", "AArch64", "::", "SP", ";", "return", "MFI", ".", "getObjectOffset", "(", "FI", ")", ";", "}", "return", "getFrameIndexReference", "(", "MF", ",", "FI", ",", "FrameReg", ")", ";", "}", ""], "natrual_language": ["Same", "as", "getFrameIndexReference", ",", "except", "that", "the", "stack", "pointer", "(", "as", "opposed", "to", "the", "frame", "pointer", ")", "will", "be", "the", "preferred", "value", "for", "FrameReg", "."], "TS_V_token": ["AArch64", "AArch64", "\"Offset from the SP for \"", "\" is \"", "\"\\n\"", "AArch64::SP"], "File": "AArch64FrameLowering100", "Func": "getFrameIndexReferencePreferSP", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2591, "Length": 86, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "WinEHStatePass", "::", "runOnFunction", "(", "Function", "&", "F", ")", "{", "if", "(", "F", ".", "hasAvailableExternallyLinkage", "(", ")", ")", "return", "false", ";", "if", "(", "!", "F", ".", "hasPersonalityFn", "(", ")", ")", "return", "false", ";", "PersonalityFn", "=", "dyn_cast", "<", "Function", ">", "(", "F", ".", "getPersonalityFn", "(", ")", "->", "stripPointerCasts", "(", ")", ")", ";", "if", "(", "!", "PersonalityFn", ")", "return", "false", ";", "Personality", "=", "classifyEHPersonality", "(", "PersonalityFn", ")", ";", "if", "(", "!", "isFuncletEHPersonality", "(", "Personality", ")", ")", "return", "false", ";", "bool", "HasPads", "=", "false", ";", "for", "(", "BasicBlock", "&", "BB", ":", "F", ")", "{", "if", "(", "BB", ".", "isEHPad", "(", ")", ")", "{", "HasPads", "=", "true", ";", "break", ";", "}", "}", "if", "(", "!", "HasPads", ")", "return", "false", ";", "Type", "*", "Int8PtrType", "=", "Type", "::", "getInt8PtrTy", "(", "TheModule", "->", "getContext", "(", ")", ")", ";", "SetJmp3", "=", "TheModule", "->", "getOrInsertFunction", "(", "\"_setjmp3\"", ",", "FunctionType", "::", "get", "(", "Type", "::", "getInt32Ty", "(", "TheModule", "->", "getContext", "(", ")", ")", ",", "{", "Int8PtrType", ",", "Type", "::", "getInt32Ty", "(", "TheModule", "->", "getContext", "(", ")", ")", "}", ",", "true", ")", ")", ";", "F", ".", "addFnAttr", "(", "\"no-frame-pointer-elim\"", ",", "\"true\"", ")", ";", "emitExceptionRegistrationRecord", "(", "&", "F", ")", ";", "WinEHFuncInfo", "FuncInfo", ";", "addStateStores", "(", "F", ",", "FuncInfo", ")", ";", "PersonalityFn", "=", "nullptr", ";", "Personality", "=", "EHPersonality", "::", "Unknown", ";", "UseStackGuard", "=", "false", ";", "RegNode", "=", "nullptr", ";", "EHGuardNode", "=", "nullptr", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnFunction", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "the", "per-function", "processing", "of", "the", "pass", "."], "TS_V_token": ["X86", "\"_setjmp3\"", "\"no-frame-pointer-elim\"", "\"true\""], "File": "X86WinEHState10", "Func": "runOnFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2592, "Length": 224, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isReg", "(", ")", "const", "{", "return", "Kind", "==", "Register", ";", "}", ""], "natrual_language": ["isReg", "-", "Is", "this", "a", "register", "operand", "?"], "TS_V_token": ["ARM"], "File": "ARMAsmParser13", "Func": "isReg", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2593, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "const", "X86TargetMachine", "*", "TM", "=", "static_cast", "<", "const", "X86TargetMachine", "*", ">", "(", "&", "MF", ".", "getTarget", "(", ")", ")", ";", "assert", "(", "!", "TM", "->", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "is64Bit", "(", ")", "&&", "\"X86-64 PIC uses RIP relative addressing\"", ")", ";", "if", "(", "TM", "->", "getRelocationModel", "(", ")", "!=", "Reloc", "::", "PIC_", ")", "return", "false", ";", "X86MachineFunctionInfo", "*", "X86FI", "=", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", ";", "unsigned", "GlobalBaseReg", "=", "X86FI", "->", "getGlobalBaseReg", "(", ")", ";", "if", "(", "GlobalBaseReg", "==", "0", ")", "return", "false", ";", "MachineBasicBlock", "&", "FirstMBB", "=", "MF", ".", "front", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "FirstMBB", ".", "begin", "(", ")", ";", "DebugLoc", "DL", "=", "FirstMBB", ".", "findDebugLoc", "(", "MBBI", ")", ";", "MachineRegisterInfo", "&", "RegInfo", "=", "MF", ".", "getRegInfo", "(", ")", ";", "const", "X86InstrInfo", "*", "TII", "=", "TM", "->", "getInstrInfo", "(", ")", ";", "unsigned", "PC", ";", "if", "(", "TM", "->", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "isPICStyleGOT", "(", ")", ")", "PC", "=", "RegInfo", ".", "createVirtualRegister", "(", "X86", "::", "GR32RegisterClass", ")", ";", "else", "PC", "=", "GlobalBaseReg", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "X86", "::", "MOVPC32r", ")", ",", "PC", ")", ".", "addImm", "(", "0", ")", ";", "if", "(", "TM", "->", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "isPICStyleGOT", "(", ")", ")", "{", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "X86", "::", "ADD32ri", ")", ",", "GlobalBaseReg", ")", ".", "addReg", "(", "PC", ")", ".", "addExternalSymbol", "(", "\"_GLOBAL_OFFSET_TABLE_\"", ",", "X86II", "::", "MO_GOT_ABSOLUTE_ADDRESS", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "\"X86-64 PIC uses RIP relative addressing\"", "X86", "X86", "X86", "X86", "0", "X86", "X86", "X86::GR32RegisterClass", "X86::MOVPC32r", "0", "X86", "X86::ADD32ri", "\"_GLOBAL_OFFSET_TABLE_\"", "X86II::MO_GOT_ABSOLUTE_ADDRESS"], "File": "X86InstrInfo12", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2594, "Length": 260, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "AArch64InstrInfo", "::", "getInstSizeInBytes", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "const", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "const", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "MCAsmInfo", "*", "MAI", "=", "MF", "->", "getTarget", "(", ")", ".", "getMCAsmInfo", "(", ")", ";", "{", "auto", "Op", "=", "MI", ".", "getOpcode", "(", ")", ";", "if", "(", "Op", "==", "AArch64", "::", "INLINEASM", "||", "Op", "==", "AArch64", "::", "INLINEASM_BR", ")", "return", "getInlineAsmLength", "(", "MI", ".", "getOperand", "(", "0", ")", ".", "getSymbolName", "(", ")", ",", "*", "MAI", ")", ";", "}", "if", "(", "MI", ".", "isMetaInstruction", "(", ")", ")", "return", "0", ";", "unsigned", "NumBytes", "=", "0", ";", "const", "MCInstrDesc", "&", "Desc", "=", "MI", ".", "getDesc", "(", ")", ";", "switch", "(", "Desc", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "NumBytes", "=", "4", ";", "break", ";", "case", "TargetOpcode", "::", "STACKMAP", ":", "NumBytes", "=", "StackMapOpers", "(", "&", "MI", ")", ".", "getNumPatchBytes", "(", ")", ";", "assert", "(", "NumBytes", "%", "4", "==", "0", "&&", "\"Invalid number of NOP bytes requested!\"", ")", ";", "break", ";", "case", "TargetOpcode", "::", "PATCHPOINT", ":", "NumBytes", "=", "PatchPointOpers", "(", "&", "MI", ")", ".", "getNumPatchBytes", "(", ")", ";", "assert", "(", "NumBytes", "%", "4", "==", "0", "&&", "\"Invalid number of NOP bytes requested!\"", ")", ";", "break", ";", "case", "AArch64", "::", "TLSDESC_CALLSEQ", ":", "NumBytes", "=", "16", ";", "break", ";", "case", "AArch64", "::", "AUT", ":", "NumBytes", "=", "24", ";", "break", ";", "case", "AArch64", "::", "AUTPAC", ":", "NumBytes", "=", "28", ";", "break", ";", "case", "AArch64", "::", "MOVaddrPAC", ":", "NumBytes", "=", "28", ";", "break", ";", "case", "AArch64", "::", "BR_JumpTable", ":", "NumBytes", "=", "44", ";", "break", ";", "case", "AArch64", "::", "JumpTableDest32", ":", "case", "AArch64", "::", "JumpTableDest16", ":", "case", "AArch64", "::", "JumpTableDest8", ":", "NumBytes", "=", "12", ";", "break", ";", "case", "AArch64", "::", "SPACE", ":", "NumBytes", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ";", "break", ";", "}", "return", "NumBytes", ";", "}", ""], "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": ["AArch64", "AArch64", "AArch64::INLINEASM", "AArch64::INLINEASM_BR", "0", "0", "0", "4", "4", "0", "\"Invalid number of NOP bytes requested!\"", "4", "0", "\"Invalid number of NOP bytes requested!\"", "AArch64::TLSDESC_CALLSEQ", "16", "AArch64::AUT", "24", "AArch64::AUTPAC", "28", "AArch64::MOVaddrPAC", "28", "AArch64::BR_JumpTable", "44", "AArch64::JumpTableDest32", "AArch64::JumpTableDest16", "AArch64::JumpTableDest8", "12", "AArch64::SPACE", "1"], "File": "AArch64InstrInfo120", "Func": "getInstSizeInBytes", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2595, "Length": 298, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "valid_src_p", "(", "rtx", "src", ",", "rtx_insn", "*", "insn", ",", "struct", "loop", "*", "loop", ",", "bool", "*", "pre_post", ",", "rtx", "*", "base", ",", "rtx", "*", "offset", ",", "bool", "load_pair", ")", "{", "subrtx_var_iterator", "::", "array_type", "array", ";", "rtx", "x", "=", "NULL_RTX", ";", "FOR_EACH_SUBRTX_VAR", "(", "iter", ",", "array", ",", "src", ",", "NONCONST", ")", "if", "(", "MEM_P", "(", "*", "iter", ")", ")", "{", "x", "=", "*", "iter", ";", "break", ";", "}", "if", "(", "!", "x", ")", "return", "false", ";", "struct", "aarch64_address_info", "addr", ";", "machine_mode", "mode", "=", "GET_MODE", "(", "x", ")", ";", "if", "(", "!", "aarch64_classify_address", "(", "&", "addr", ",", "XEXP", "(", "x", ",", "0", ")", ",", "mode", ",", "true", ")", ")", "return", "false", ";", "unsigned", "regno", "=", "REGNO", "(", "addr", ".", "base", ")", ";", "if", "(", "global_regs", "[", "regno", "]", "||", "fixed_regs", "[", "regno", "]", ")", "return", "false", ";", "if", "(", "addr", ".", "type", "==", "ADDRESS_REG_WB", ")", "{", "unsigned", "code", "=", "GET_CODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", ";", "*", "pre_post", "=", "true", ";", "*", "base", "=", "addr", ".", "base", ";", "if", "(", "code", "==", "PRE_MODIFY", "||", "code", "==", "POST_MODIFY", ")", "*", "offset", "=", "addr", ".", "offset", ";", "else", "{", "unsigned", "int_offset", "=", "GET_MODE_SIZE", "(", "mode", ")", ".", "to_constant", "(", ")", ";", "if", "(", "load_pair", "&&", "(", "code", "==", "POST_INC", "||", "code", "==", "POST_DEC", ")", ")", "int_offset", "*=", "2", ";", "*", "offset", "=", "GEN_INT", "(", "int_offset", ")", ";", "}", "return", "true", ";", "}", "else", "if", "(", "addr", ".", "type", "==", "ADDRESS_REG_IMM", "||", "addr", ".", "type", "==", "ADDRESS_REG_REG", ")", "{", "if", "(", "!", "iv_p", "(", "insn", ",", "addr", ".", "base", ",", "loop", ")", ")", "return", "false", ";", "*", "base", "=", "addr", ".", "base", ";", "*", "offset", "=", "addr", ".", "offset", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "SRC", "is", "a", "strided", "load", "in", "the", "LOOP", ",", "false", "otherwise", ".", "If", "it", "is", "a", "strided", "load", ",", "set", "the", "BASE", "and", "OFFSET", ".", "Also", ",", "if", "this", "is", "a", "pre/post", "increment", "load", ",", "set", "PRE_POST", "to", "true", "."], "TS_V_token": ["aarch64", "0", "0", "2"], "File": "falkor-tag-collision-avoidance2", "Func": "valid_src_p", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2596, "Length": 288, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCAIXAsmPrinter", "::", "emitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "PPC", "::", "GETtlsADDR64AIX", ":", "case", "PPC", "::", "GETtlsADDR32AIX", ":", "{", "MCSymbol", "*", "TlsGetAddr", "=", "createMCSymbolForTlsGetAddr", "(", "OutContext", ")", ";", "ExtSymSDNodeSymbols", ".", "insert", "(", "TlsGetAddr", ")", ";", "break", ";", "}", "case", "PPC", "::", "BL8", ":", "case", "PPC", "::", "BL", ":", "case", "PPC", "::", "BL8_NOP", ":", "case", "PPC", "::", "BL_NOP", ":", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "0", ")", ";", "if", "(", "MO", ".", "isSymbol", "(", ")", ")", "{", "MCSymbolXCOFF", "*", "S", "=", "cast", "<", "MCSymbolXCOFF", ">", "(", "OutContext", ".", "getOrCreateSymbol", "(", "MO", ".", "getSymbolName", "(", ")", ")", ")", ";", "ExtSymSDNodeSymbols", ".", "insert", "(", "S", ")", ";", "}", "}", "break", ";", "case", "PPC", "::", "BL_TLS", ":", "case", "PPC", "::", "BL8_TLS", ":", "case", "PPC", "::", "BL8_TLS_", ":", "case", "PPC", "::", "BL8_NOP_TLS", ":", "report_fatal_error", "(", "\"TLS call not yet implemented\"", ")", ";", "case", "PPC", "::", "TAILB", ":", "case", "PPC", "::", "TAILB8", ":", "case", "PPC", "::", "TAILBA", ":", "case", "PPC", "::", "TAILBA8", ":", "case", "PPC", "::", "TAILBCTR", ":", "case", "PPC", "::", "TAILBCTR8", ":", "if", "(", "MI", "->", "getOperand", "(", "0", ")", ".", "isSymbol", "(", ")", ")", "report_fatal_error", "(", "\"Tail call for extern symbol not yet supported.\"", ")", ";", "break", ";", "case", "PPC", "::", "DST", ":", "case", "PPC", "::", "DST64", ":", "case", "PPC", "::", "DSTT", ":", "case", "PPC", "::", "DSTT64", ":", "case", "PPC", "::", "DSTST", ":", "case", "PPC", "::", "DSTST64", ":", "case", "PPC", "::", "DSTSTT", ":", "case", "PPC", "::", "DSTSTT64", ":", "EmitToStreamer", "(", "*", "OutStreamer", ",", "MCInstBuilder", "(", "PPC", "::", "ORI", ")", ".", "addReg", "(", "PPC", "::", "R0", ")", ".", "addReg", "(", "PPC", "::", "R0", ")", ".", "addImm", "(", "0", ")", ")", ";", "return", ";", "}", "return", "PPCAsmPrinter", "::", "emitInstruction", "(", "MI", ")", ";", "}", ""], "natrual_language": ["Targets", "should", "implement", "this", "to", "emit", "instructions", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::GETtlsADDR64AIX", "PPC::GETtlsADDR32AIX", "PPC::BL8", "PPC::BL", "PPC::BL8_NOP", "PPC::BL_NOP", "0", "PPC::BL_TLS", "PPC::BL8_TLS", "PPC::BL8_TLS_", "PPC::BL8_NOP_TLS", "\"TLS call not yet implemented\"", "PPC::TAILB", "PPC::TAILB8", "PPC::TAILBA", "PPC::TAILBA8", "PPC::TAILBCTR", "PPC::TAILBCTR8", "0", "\"Tail call for extern symbol not yet supported.\"", "PPC::DST", "PPC::DST64", "PPC::DSTT", "PPC::DSTT64", "PPC::DSTST", "PPC::DSTST64", "PPC::DSTSTT", "PPC::DSTSTT64", "PPC::ORI", "PPC::R0", "PPC::R0", "0", "PPC"], "File": "PPCAsmPrinter (2)3", "Func": "emitInstruction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2597, "Length": 287, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "ARMTargetLowering", "::", "getRegForInlineAsmConstraint", "(", "const", "std", "::", "string", "&", "Constraint", ",", "EVT", "VT", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'l'", ":", "if", "(", "Subtarget", "->", "isThumb", "(", ")", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "ARM", "::", "tGPRRegisterClass", ")", ";", "else", "return", "std", "::", "make_pair", "(", "0U", ",", "ARM", "::", "GPRRegisterClass", ")", ";", "case", "'r'", ":", "return", "std", "::", "make_pair", "(", "0U", ",", "ARM", "::", "GPRRegisterClass", ")", ";", "case", "'w'", ":", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "ARM", "::", "SPRRegisterClass", ")", ";", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "ARM", "::", "DPRRegisterClass", ")", ";", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "128", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "ARM", "::", "QPRRegisterClass", ")", ";", "break", ";", "}", "}", "if", "(", "StringRef", "(", "\"{cc}\"", ")", ".", "equals_lower", "(", "Constraint", ")", ")", "return", "std", "::", "make_pair", "(", "unsigned", "(", "ARM", "::", "CPSR", ")", ",", "ARM", "::", "CCRRegisterClass", ")", ";", "return", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "Constraint", ",", "VT", ")", ";", "}", ""], "natrual_language": ["Given", "a", "physical", "register", "constraint", "(", "e.g", "."], "TS_V_token": ["ARM", "ARM", "1", "0", "0U", "ARM::tGPRRegisterClass", "0U", "ARM::GPRRegisterClass", "0U", "ARM::GPRRegisterClass", "MVT::f32", "0U", "ARM::SPRRegisterClass", "64", "0U", "ARM::DPRRegisterClass", "128", "0U", "ARM::QPRRegisterClass", "\"{cc}\"", "ARM::CPSR", "ARM::CCRRegisterClass"], "File": "ARMISelLowering131", "Func": "getRegForInlineAsmConstraint", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2598, "Length": 207, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "unique_ptr", "<", "ARMInputExMap", ">", "ARMInputExMap", "::", "create", "(", "Input", "&", "pInput", ")", "{", "std", "::", "unique_ptr", "<", "ARMInputExMap", ">", "exMap", "(", "new", "ARMInputExMap", "(", ")", ")", ";", "LDContext", "*", "ctx", "=", "pInput", ".", "context", "(", ")", ";", "for", "(", "LDContext", "::", "sect_iterator", "it", "=", "ctx", "->", "sectBegin", "(", ")", ",", "end", "=", "ctx", "->", "sectEnd", "(", ")", ";", "it", "!=", "end", ";", "++", "it", ")", "{", "LDSection", "*", "sect", "=", "*", "it", ";", "if", "(", "sect", "->", "type", "(", ")", "==", "llvm", "::", "ELF", "::", "SHT_ARM_EXIDX", ")", "{", "ARMExSectionTuple", "*", "exTuple", "=", "exMap", "->", "getOrCreateByExSection", "(", "*", "sect", ")", ";", "exTuple", "->", "setExIdxSection", "(", "sect", ")", ";", "exTuple", "->", "setTextSection", "(", "sect", "->", "getLink", "(", ")", ")", ";", "if", "(", "sect", "->", "getLink", "(", ")", "==", "NULL", ")", "{", "fatal", "(", "diag", "::", "eh_missing_text_section", ")", "<<", "sect", "->", "name", "(", ")", "<<", "pInput", ".", "name", "(", ")", ";", "}", "}", "}", "ARMInputExMap", "::", "iterator", "it", "=", "exMap", "->", "begin", "(", ")", ";", "ARMInputExMap", "::", "iterator", "end", "=", "exMap", "->", "end", "(", ")", ";", "while", "(", "it", "!=", "end", ")", "{", "ARMExSectionTuple", "*", "exTuple", "=", "it", "->", "second", ".", "get", "(", ")", ";", "LDSection", "*", "const", "text", "=", "exTuple", "->", "getTextSection", "(", ")", ";", "LDSection", "*", "const", "exIdx", "=", "exTuple", "->", "getExIdxSection", "(", ")", ";", "if", "(", "(", "text", "->", "kind", "(", ")", "==", "LDFileFormat", "::", "Ignore", ")", "||", "(", "text", "->", "kind", "(", ")", "==", "LDFileFormat", "::", "Folded", ")", ")", "{", "exIdx", "->", "setKind", "(", "LDFileFormat", "::", "Ignore", ")", ";", "ARMInputExMap", "::", "iterator", "deadIt", "=", "it", "++", ";", "exMap", "->", "erase", "(", "deadIt", ")", ";", "continue", ";", "}", "RegionFragment", "*", "textFrag", "=", "findRegionFragment", "(", "*", "text", ")", ";", "RegionFragment", "*", "exIdxFrag", "=", "findRegionFragment", "(", "*", "exIdx", ")", ";", "exTuple", "->", "setTextFragment", "(", "textFrag", ")", ";", "exTuple", "->", "setExIdxFragment", "(", "exIdxFrag", ")", ";", "if", "(", "exIdxFrag", "==", "NULL", ")", "{", "ARMInputExMap", "::", "iterator", "deadIt", "=", "it", "++", ";", "exMap", "->", "erase", "(", "deadIt", ")", ";", "continue", ";", "}", "++", "it", ";", "}", "return", "exMap", ";", "}", ""], "natrual_language": ["This", "creates", "an", "identified", "struct", "."], "TS_V_token": ["ARM", "ARM", "ARMInputExMap::create", "ARM", "ARM", "ARM", "ARM", "ARMInputExMap::iterator", "ARMInputExMap::iterator", "ARM", "ARMInputExMap::iterator", "ARMInputExMap::iterator"], "File": "ARMException", "Func": "create", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2599, "Length": 337, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "easy_altivec_constant", "(", "rtx", "op", ",", "machine_mode", "mode", ")", "{", "unsigned", "step", ",", "copies", ";", "if", "(", "mode", "==", "VOIDmode", ")", "mode", "=", "GET_MODE", "(", "op", ")", ";", "else", "if", "(", "mode", "!=", "GET_MODE", "(", "op", ")", ")", "return", "false", ";", "if", "(", "mode", "==", "V2DFmode", ")", "return", "zero_constant", "(", "op", ",", "mode", ")", ";", "else", "if", "(", "mode", "==", "V2DImode", ")", "{", "if", "(", "GET_CODE", "(", "CONST_VECTOR_ELT", "(", "op", ",", "0", ")", ")", "!=", "CONST_INT", "||", "GET_CODE", "(", "CONST_VECTOR_ELT", "(", "op", ",", "1", ")", ")", "!=", "CONST_INT", ")", "return", "false", ";", "if", "(", "zero_constant", "(", "op", ",", "mode", ")", ")", "return", "true", ";", "if", "(", "INTVAL", "(", "CONST_VECTOR_ELT", "(", "op", ",", "0", ")", ")", "==", "-", "1", "&&", "INTVAL", "(", "CONST_VECTOR_ELT", "(", "op", ",", "1", ")", ")", "==", "-", "1", ")", "return", "true", ";", "return", "false", ";", "}", "else", "if", "(", "mode", "==", "V1TImode", ")", "return", "false", ";", "step", "=", "GET_MODE_NUNITS", "(", "mode", ")", "/", "4", ";", "copies", "=", "1", ";", "if", "(", "vspltis_constant", "(", "op", ",", "step", ",", "copies", ")", ")", "return", "true", ";", "if", "(", "step", "==", "1", ")", "copies", "<<=", "1", ";", "else", "step", ">>=", "1", ";", "if", "(", "vspltis_constant", "(", "op", ",", "step", ",", "copies", ")", ")", "return", "true", ";", "if", "(", "step", "==", "1", ")", "copies", "<<=", "1", ";", "else", "step", ">>=", "1", ";", "if", "(", "vspltis_constant", "(", "op", ",", "step", ",", "copies", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "OP", "is", "of", "the", "given", "MODE", "and", "can", "be", "synthesized", "with", "a", "vspltisb", ",", "vspltish", "or", "vspltisw", "."], "TS_V_token": ["rs6000", "0", "1", "0", "1", "1", "1", "4", "1", "1", "1", "1", "1", "1", "1"], "File": "rs60004", "Func": "easy_altivec_constant", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2600, "Length": 238, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "enum", "tls_model", "tls_symbolic_operand", "(", "rtx", "op", ",", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "GET_CODE", "(", "op", ")", "!=", "SYMBOL_REF", ")", "return", "TLS_MODEL_NONE", ";", "return", "SYMBOL_REF_TLS_MODEL", "(", "op", ")", ";", "}", ""], "natrual_language": ["Return", "the", "TLS", "type", "for", "TLS", "symbols", ",", "0", "for", "otherwise", "."], "TS_V_token": ["sh"], "File": "sh", "Func": "tls_symbolic_operand", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2601, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "X86TTIImpl", "::", "getIntrinsicInstrCost", "(", "Intrinsic", "::", "ID", "IID", ",", "Type", "*", "RetTy", ",", "ArrayRef", "<", "Type", "*", ">", "Tys", ",", "FastMathFlags", "FMF", ")", "{", "static", "const", "CostTblEntry", "XOPCostTbl", "[", "]", "=", "{", "{", "ISD", "::", "BITREVERSE", ",", "MVT", "::", "v4i64", ",", "4", "}", ",", "{", "ISD", "::", "BITREVERSE", ",", "MVT", "::", "v8i32", ",", "4", "}", ",", "{", "ISD", "::", "BITREVERSE", ",", "MVT", "::", "v16i16", ",", "4", "}", ",", "{", "ISD", "::", "BITREVERSE", ",", "MVT", "::", "v32i8", ",", "4", "}", ",", "{", "ISD", "::", "BITREVERSE", ",", "MVT", "::", "v2i64", ",", "1", "}", ",", "{", "ISD", "::", "BITREVERSE", ",", "MVT", "::", "v4i32", ",", "1", "}", ",", "{", "ISD", "::", "BITREVERSE", ",", "MVT", "::", "v8i16", ",", "1", "}", ",", "{", "ISD", "::", "BITREVERSE", ",", "MVT", "::", "v16i8", ",", "1", "}", ",", "{", "ISD", "::", "BITREVERSE", ",", "MVT", "::", "i64", ",", "3", "}", ",", "{", "ISD", "::", "BITREVERSE", ",", "MVT", "::", "i32", ",", "3", "}", ",", "{", "ISD", "::", "BITREVERSE", ",", "MVT", "::", "i16", ",", "3", "}", ",", "{", "ISD", "::", "BITREVERSE", ",", "MVT", "::", "i8", ",", "3", "}", "}", ";", "unsigned", "ISD", "=", "ISD", "::", "DELETED_NODE", ";", "switch", "(", "IID", ")", "{", "default", ":", "break", ";", "case", "Intrinsic", "::", "bitreverse", ":", "ISD", "=", "ISD", "::", "BITREVERSE", ";", "break", ";", "}", "std", "::", "pair", "<", "int", ",", "MVT", ">", "LT", "=", "TLI", "->", "getTypeLegalizationCost", "(", "DL", ",", "RetTy", ")", ";", "MVT", "MTy", "=", "LT", ".", "second", ";", "if", "(", "ST", "->", "hasXOP", "(", ")", ")", "if", "(", "const", "auto", "*", "Entry", "=", "CostTableLookup", "(", "XOPCostTbl", ",", "ISD", ",", "MTy", ")", ")", "return", "LT", ".", "first", "*", "Entry", "->", "Cost", ";", "return", "BaseT", "::", "getIntrinsicInstrCost", "(", "IID", ",", "RetTy", ",", "Tys", ",", "FMF", ")", ";", "}", ""], "natrual_language": ["Get", "intrinsic", "cost", "based", "on", "arguments", "."], "TS_V_token": ["X86", "X86", "Intrinsic::ID", "ISD::BITREVERSE", "MVT::v4i64", "4", "ISD::BITREVERSE", "MVT::v8i32", "4", "ISD::BITREVERSE", "MVT::v16i16", "4", "ISD::BITREVERSE", "MVT::v32i8", "4", "ISD::BITREVERSE", "MVT::v2i64", "1", "ISD::BITREVERSE", "MVT::v4i32", "1", "ISD::BITREVERSE", "MVT::v8i16", "1", "ISD::BITREVERSE", "MVT::v16i8", "1", "ISD::BITREVERSE", "MVT::i64", "3", "ISD::BITREVERSE", "MVT::i32", "3", "ISD::BITREVERSE", "MVT::i16", "3", "ISD::BITREVERSE", "MVT::i8", "3", "ISD::DELETED_NODE", "Intrinsic::bitreverse", "ISD::BITREVERSE"], "File": "X86TargetTransformInfo70", "Func": "getIntrinsicInstrCost", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2602, "Length": 282, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMBaseInstrInfo", "::", "getInstSizeInBytes", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "const", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "const", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "MCAsmInfo", "*", "MAI", "=", "MF", "->", "getTarget", "(", ")", ".", "getMCAsmInfo", "(", ")", ";", "const", "MCInstrDesc", "&", "MCID", "=", "MI", ".", "getDesc", "(", ")", ";", "if", "(", "MCID", ".", "getSize", "(", ")", ")", "return", "MCID", ".", "getSize", "(", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "ARM", "::", "INLINEASM", ")", "return", "getInlineAsmLength", "(", "MI", ".", "getOperand", "(", "0", ")", ".", "getSymbolName", "(", ")", ",", "*", "MAI", ")", ";", "unsigned", "Opc", "=", "MI", ".", "getOpcode", "(", ")", ";", "switch", "(", "Opc", ")", "{", "default", ":", "return", "0", ";", "case", "TargetOpcode", "::", "BUNDLE", ":", "return", "getInstBundleLength", "(", "MI", ")", ";", "case", "ARM", "::", "MOVi16_ga_pcrel", ":", "case", "ARM", "::", "MOVTi16_ga_pcrel", ":", "case", "ARM", "::", "t2MOVi16_ga_pcrel", ":", "case", "ARM", "::", "t2MOVTi16_ga_pcrel", ":", "return", "4", ";", "case", "ARM", "::", "MOVi32imm", ":", "case", "ARM", "::", "t2MOVi32imm", ":", "return", "8", ";", "case", "ARM", "::", "CONSTPOOL_ENTRY", ":", "case", "ARM", "::", "JUMPTABLE_INSTS", ":", "case", "ARM", "::", "JUMPTABLE_ADDRS", ":", "case", "ARM", "::", "JUMPTABLE_TBB", ":", "case", "ARM", "::", "JUMPTABLE_TBH", ":", "return", "MI", ".", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "case", "ARM", "::", "Int_eh_sjlj_longjmp", ":", "return", "16", ";", "case", "ARM", "::", "tInt_eh_sjlj_longjmp", ":", "return", "10", ";", "case", "ARM", "::", "tInt_WIN_eh_sjlj_longjmp", ":", "return", "12", ";", "case", "ARM", "::", "Int_eh_sjlj_setjmp", ":", "case", "ARM", "::", "Int_eh_sjlj_setjmp_nofp", ":", "return", "20", ";", "case", "ARM", "::", "tInt_eh_sjlj_setjmp", ":", "case", "ARM", "::", "t2Int_eh_sjlj_setjmp", ":", "case", "ARM", "::", "t2Int_eh_sjlj_setjmp_nofp", ":", "return", "12", ";", "case", "ARM", "::", "SPACE", ":", "return", "MI", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ";", "}", "}", ""], "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": ["ARM", "ARM", "ARM::INLINEASM", "0", "0", "ARM::MOVi16_ga_pcrel", "ARM::MOVTi16_ga_pcrel", "ARM::t2MOVi16_ga_pcrel", "ARM::t2MOVTi16_ga_pcrel", "4", "ARM::MOVi32imm", "ARM::t2MOVi32imm", "8", "ARM::CONSTPOOL_ENTRY", "ARM::JUMPTABLE_INSTS", "ARM::JUMPTABLE_ADDRS", "ARM::JUMPTABLE_TBB", "ARM::JUMPTABLE_TBH", "2", "ARM::Int_eh_sjlj_longjmp", "16", "ARM::tInt_eh_sjlj_longjmp", "10", "ARM::tInt_WIN_eh_sjlj_longjmp", "12", "ARM::Int_eh_sjlj_setjmp", "ARM::Int_eh_sjlj_setjmp_nofp", "20", "ARM::tInt_eh_sjlj_setjmp", "ARM::t2Int_eh_sjlj_setjmp", "ARM::t2Int_eh_sjlj_setjmp_nofp", "12", "ARM::SPACE", "1"], "File": "ARMBaseInstrInfo102", "Func": "getInstSizeInBytes", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2603, "Length": 283, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "VEAsmParser", "::", "MatchAndEmitInstruction", "(", "SMLoc", "IDLoc", ",", "unsigned", "&", "Opcode", ",", "OperandVector", "&", "Operands", ",", "MCStreamer", "&", "Out", ",", "uint64_t", "&", "ErrorInfo", ",", "bool", "MatchingInlineAsm", ")", "{", "MCInst", "Inst", ";", "unsigned", "MatchResult", "=", "MatchInstructionImpl", "(", "Operands", ",", "Inst", ",", "ErrorInfo", ",", "MatchingInlineAsm", ")", ";", "switch", "(", "MatchResult", ")", "{", "case", "Match_Success", ":", "Inst", ".", "setLoc", "(", "IDLoc", ")", ";", "Out", ".", "emitInstruction", "(", "Inst", ",", "getSTI", "(", ")", ")", ";", "return", "false", ";", "case", "Match_MissingFeature", ":", "return", "Error", "(", "IDLoc", ",", "\"instruction requires a CPU feature not currently enabled\"", ")", ";", "case", "Match_InvalidOperand", ":", "{", "SMLoc", "ErrorLoc", "=", "IDLoc", ";", "if", "(", "ErrorInfo", "!=", "~", "0ULL", ")", "{", "if", "(", "ErrorInfo", ">=", "Operands", ".", "size", "(", ")", ")", "return", "Error", "(", "IDLoc", ",", "\"too few operands for instruction\"", ")", ";", "ErrorLoc", "=", "(", "(", "VEOperand", "&", ")", "*", "Operands", "[", "ErrorInfo", "]", ")", ".", "getStartLoc", "(", ")", ";", "if", "(", "ErrorLoc", "==", "SMLoc", "(", ")", ")", "ErrorLoc", "=", "IDLoc", ";", "}", "return", "Error", "(", "ErrorLoc", ",", "\"invalid operand for instruction\"", ")", ";", "}", "case", "Match_MnemonicFail", ":", "return", "Error", "(", "IDLoc", ",", "\"invalid instruction mnemonic\"", ")", ";", "}", "llvm_unreachable", "(", "\"Implement any new match types added!\"", ")", ";", "}", ""], "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": ["VE", "VE", "\"instruction requires a CPU feature not currently enabled\"", "0ULL", "\"too few operands for instruction\"", "VE", "\"invalid operand for instruction\"", "\"invalid instruction mnemonic\"", "\"Implement any new match types added!\""], "File": "VEAsmParser (2)", "Func": "MatchAndEmitInstruction", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2604, "Length": 178, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "register_builtin_types", "(", ")", "{", "scalar_types", "[", "VECTOR_TYPE_", "##", "ACLE_NAME", "]", "=", "SCALAR_TYPE", ";", "for", "(", "unsigned", "int", "i", "=", "0", ";", "i", "<", "NUM_VECTOR_TYPES", ";", "++", "i", ")", "{", "tree", "eltype", "=", "scalar_types", "[", "i", "]", ";", "tree", "vectype", ";", "unsigned", "int", "num_zr", "=", "0", ",", "num_pr", "=", "0", ";", "if", "(", "eltype", "==", "boolean_type_node", ")", "{", "vectype", "=", "build_truth_vector_type_for_mode", "(", "BYTES_PER_SVE_VECTOR", ",", "VNx16BImode", ")", ";", "gcc_assert", "(", "TYPE_MODE", "(", "vectype", ")", "==", "VNx16BImode", "&&", "TYPE_MODE", "(", "vectype", ")", "==", "TYPE_MODE_RAW", "(", "vectype", ")", "&&", "TYPE_ALIGN", "(", "vectype", ")", "==", "16", "&&", "known_eq", "(", "wi", "::", "to_poly_offset", "(", "TYPE_SIZE", "(", "vectype", ")", ")", ",", "BYTES_PER_SVE_VECTOR", ")", ")", ";", "num_pr", "=", "1", ";", "}", "else", "{", "scalar_mode", "elmode", "=", "SCALAR_TYPE_MODE", "(", "eltype", ")", ";", "unsigned", "int", "elbytes", "=", "GET_MODE_SIZE", "(", "elmode", ")", ";", "poly_uint64", "nunits", "=", "exact_div", "(", "BYTES_PER_SVE_VECTOR", ",", "elbytes", ")", ";", "machine_mode", "mode", "=", "aarch64_sve_data_mode", "(", "elmode", ",", "nunits", ")", ".", "require", "(", ")", ";", "vectype", "=", "build_vector_type_for_mode", "(", "eltype", ",", "mode", ")", ";", "gcc_assert", "(", "VECTOR_MODE_P", "(", "TYPE_MODE", "(", "vectype", ")", ")", "&&", "TYPE_MODE", "(", "vectype", ")", "==", "mode", "&&", "TYPE_MODE_RAW", "(", "vectype", ")", "==", "mode", "&&", "TYPE_ALIGN", "(", "vectype", ")", "==", "128", "&&", "known_eq", "(", "wi", "::", "to_poly_offset", "(", "TYPE_SIZE", "(", "vectype", ")", ")", ",", "BITS_PER_SVE_VECTOR", ")", ")", ";", "num_zr", "=", "1", ";", "}", "vectype", "=", "build_distinct_type_copy", "(", "vectype", ")", ";", "gcc_assert", "(", "vectype", "==", "TYPE_MAIN_VARIANT", "(", "vectype", ")", ")", ";", "SET_TYPE_STRUCTURAL_EQUALITY", "(", "vectype", ")", ";", "TYPE_ARTIFICIAL", "(", "vectype", ")", "=", "1", ";", "TYPE_INDIVISIBLE_P", "(", "vectype", ")", "=", "1", ";", "add_sve_type_attribute", "(", "vectype", ",", "num_zr", ",", "num_pr", ",", "vector_types", "[", "i", "]", ".", "mangled_name", ")", ";", "make_type_sizeless", "(", "vectype", ")", ";", "abi_vector_types", "[", "i", "]", "=", "vectype", ";", "lang_hooks", ".", "types", ".", "register_builtin_type", "(", "vectype", ",", "vector_types", "[", "i", "]", ".", "abi_name", ")", ";", "}", "}", ""], "natrual_language": ["Register", "the", "built-in", "RVV", "ABI", "types", ",", "such", "as", "__rvv_int32m1_t", "."], "TS_V_token": ["aarch64", "0", "0", "0", "16", "1", "128", "1", "1", "1"], "File": "aarch64-sve-builtins", "Func": "register_builtin_types", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2605, "Length": 301, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMAsmParser", "::", "MatchAndEmitInstruction", "(", "SMLoc", "IDLoc", ",", "unsigned", "&", "Opcode", ",", "OperandVector", "&", "Operands", ",", "MCStreamer", "&", "Out", ",", "uint64_t", "&", "ErrorInfo", ",", "bool", "MatchingInlineAsm", ")", "{", "MCInst", "Inst", ";", "unsigned", "MatchResult", ";", "bool", "PendConditionalInstruction", "=", "false", ";", "SmallVector", "<", "NearMissInfo", ",", "4", ">", "NearMisses", ";", "MatchResult", "=", "MatchInstruction", "(", "Operands", ",", "Inst", ",", "NearMisses", ",", "MatchingInlineAsm", ",", "PendConditionalInstruction", ",", "Out", ")", ";", "switch", "(", "MatchResult", ")", "{", "case", "Match_Success", ":", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Parsed as: \"", ";", "Inst", ".", "dump_pretty", "(", "dbgs", "(", ")", ",", "MII", ".", "getName", "(", "Inst", ".", "getOpcode", "(", ")", ")", ")", ";", "dbgs", "(", ")", "<<", "\"\\n\"", ")", ";", "if", "(", "validateInstruction", "(", "Inst", ",", "Operands", ")", ")", "{", "forwardITPosition", "(", ")", ";", "forwardVPTPosition", "(", ")", ";", "return", "true", ";", "}", "{", "bool", "wasInITBlock", "=", "inITBlock", "(", ")", ";", "while", "(", "processInstruction", "(", "Inst", ",", "Operands", ",", "Out", ")", ")", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Changed to: \"", ";", "Inst", ".", "dump_pretty", "(", "dbgs", "(", ")", ",", "MII", ".", "getName", "(", "Inst", ".", "getOpcode", "(", ")", ")", ")", ";", "dbgs", "(", ")", "<<", "\"\\n\"", ")", ";", "if", "(", "wasInITBlock", "&&", "hasV8Ops", "(", ")", "&&", "isThumb", "(", ")", "&&", "!", "isV8EligibleForIT", "(", "&", "Inst", ")", ")", "{", "Warning", "(", "IDLoc", ",", "\"deprecated instruction in IT block\"", ")", ";", "}", "}", "forwardITPosition", "(", ")", ";", "forwardVPTPosition", "(", ")", ";", "if", "(", "Inst", ".", "getOpcode", "(", ")", "==", "ARM", "::", "ITasm", ")", "return", "false", ";", "Inst", ".", "setLoc", "(", "IDLoc", ")", ";", "if", "(", "PendConditionalInstruction", ")", "{", "PendingConditionalInsts", ".", "push_back", "(", "Inst", ")", ";", "if", "(", "isITBlockFull", "(", ")", "||", "isITBlockTerminator", "(", "Inst", ")", ")", "flushPendingInstructions", "(", "Out", ")", ";", "}", "else", "{", "Out", ".", "EmitInstruction", "(", "Inst", ",", "getSTI", "(", ")", ")", ";", "}", "return", "false", ";", "case", "Match_NearMisses", ":", "ReportNearMisses", "(", "NearMisses", ",", "IDLoc", ",", "Operands", ")", ";", "return", "true", ";", "case", "Match_MnemonicFail", ":", "{", "FeatureBitset", "FBS", "=", "ComputeAvailableFeatures", "(", "getSTI", "(", ")", ".", "getFeatureBits", "(", ")", ")", ";", "std", "::", "string", "Suggestion", "=", "ARMMnemonicSpellCheck", "(", "(", "(", "ARMOperand", "&", ")", "*", "Operands", "[", "0", "]", ")", ".", "getToken", "(", ")", ",", "FBS", ")", ";", "return", "Error", "(", "IDLoc", ",", "\"invalid instruction\"", "+", "Suggestion", ",", "(", "(", "ARMOperand", "&", ")", "*", "Operands", "[", "0", "]", ")", ".", "getLocRange", "(", ")", ")", ";", "}", "}", "llvm_unreachable", "(", "\"Implement any new match types added!\"", ")", ";", "}", ""], "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": ["ARM", "ARM", "4", "\"Parsed as: \"", "\"\\n\"", "\"Changed to: \"", "\"\\n\"", "\"deprecated instruction in IT block\"", "ARM::ITasm", "ARM", "ARM", "0", "\"invalid instruction\"", "ARM", "0", "\"Implement any new match types added!\""], "File": "ARMAsmParser (2)4", "Func": "MatchAndEmitInstruction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2606, "Length": 381, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "thumb2_output_casesi", "(", "rtx", "*", "operands", ")", "{", "rtx", "diff_vec", "=", "PATTERN", "(", "NEXT_INSN", "(", "as_a", "<", "rtx_insn", "*", ">", "(", "operands", "[", "2", "]", ")", ")", ")", ";", "gcc_assert", "(", "GET_CODE", "(", "diff_vec", ")", "==", "ADDR_DIFF_VEC", ")", ";", "output_asm_insn", "(", "\"cmp\\t%0, %1\"", ",", "operands", ")", ";", "output_asm_insn", "(", "\"bhi\\t%l3\"", ",", "operands", ")", ";", "switch", "(", "GET_MODE", "(", "diff_vec", ")", ")", "{", "case", "E_QImode", ":", "return", "\"tbb\\t[%|pc, %0]\"", ";", "case", "E_HImode", ":", "return", "\"tbh\\t[%|pc, %0, lsl #1]\"", ";", "case", "E_SImode", ":", "if", "(", "flag_pic", ")", "{", "output_asm_insn", "(", "\"adr\\t%4, %l2\"", ",", "operands", ")", ";", "output_asm_insn", "(", "\"ldr\\t%5, [%4, %0, lsl #2]\"", ",", "operands", ")", ";", "output_asm_insn", "(", "\"add\\t%4, %4, %5\"", ",", "operands", ")", ";", "return", "\"bx\\t%4\"", ";", "}", "else", "{", "output_asm_insn", "(", "\"adr\\t%4, %l2\"", ",", "operands", ")", ";", "return", "\"ldr\\t%|pc, [%4, %0, lsl #2]\"", ";", "}", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Output", "a", "Thumb-2", "casesi", "instruction", "."], "TS_V_token": ["arm", "2", "\"cmp\\t%0, %1\"", "\"bhi\\t%l3\"", "\"tbb\\t[%|pc, %0]\"", "\"tbh\\t[%|pc, %0, lsl #1]\"", "\"adr\\t%4, %l2\"", "\"ldr\\t%5, [%4, %0, lsl #2]\"", "\"add\\t%4, %4, %5\"", "\"bx\\t%4\"", "\"adr\\t%4, %l2\"", "\"ldr\\t%|pc, [%4, %0, lsl #2]\""], "File": "arm", "Func": "thumb2_output_casesi", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2607, "Length": 129, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_option_check_internal", "(", "struct", "gcc_options", "*", "opts", ")", "{", "int", "flags", "=", "opts", "->", "x_target_flags", ";", "if", "(", "TARGET_IWMMXT", "&&", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_neon", ")", ")", "error", "(", "\"iWMMXt and NEON are incompatible\"", ")", ";", "if", "(", "TARGET_ARM_P", "(", "flags", ")", "&&", "!", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_notm", ")", ")", "error", "(", "\"target CPU does not support ARM mode\"", ")", ";", "if", "(", "(", "TARGET_TPCS_FRAME", "||", "TARGET_TPCS_LEAF_FRAME", ")", "&&", "TARGET_ARM_P", "(", "flags", ")", ")", "warning", "(", "0", ",", "\"enabling backtrace support is only meaningful when compiling for the Thumb\"", ")", ";", "if", "(", "TARGET_ARM_P", "(", "flags", ")", "&&", "TARGET_CALLEE_INTERWORKING", ")", "warning", "(", "0", ",", "\"enabling callee interworking support is only meaningful when compiling for the Thumb\"", ")", ";", "if", "(", "TARGET_ARM_P", "(", "flags", ")", "&&", "write_symbols", "!=", "NO_DEBUG", "&&", "!", "TARGET_APCS_FRAME", "&&", "(", "TARGET_DEFAULT", "&", "MASK_APCS_FRAME", ")", ")", "warning", "(", "0", ",", "\"-g with -mno-apcs-frame may not give sensible debugging\"", ")", ";", "if", "(", "TARGET_THUMB_P", "(", "flags", ")", "&&", "TARGET_IWMMXT", ")", "error", "(", "\"iWMMXt unsupported under Thumb mode\"", ")", ";", "if", "(", "TARGET_HARD_TP", "&&", "TARGET_THUMB1_P", "(", "flags", ")", ")", "error", "(", "\"can not use -mtp=cp15 with 16-bit Thumb\"", ")", ";", "if", "(", "TARGET_THUMB_P", "(", "flags", ")", "&&", "TARGET_VXWORKS_RTP", "&&", "flag_pic", ")", "{", "error", "(", "\"RTP PIC is incompatible with Thumb\"", ")", ";", "flag_pic", "=", "0", ";", "}", "if", "(", "target_slow_flash_data", "&&", "(", "(", "!", "(", "arm_arch7", "&&", "!", "arm_arch_notm", ")", "&&", "!", "arm_arch7em", ")", "||", "(", "TARGET_THUMB1_P", "(", "flags", ")", "||", "flag_pic", "||", "TARGET_NEON", ")", ")", ")", "error", "(", "\"-mslow-flash-data only supports non-pic code on armv7-m targets\"", ")", ";", "if", "(", "target_pure_code", "&&", "(", "!", "arm_arch_thumb2", "||", "arm_arch_notm", "||", "flag_pic", "||", "TARGET_NEON", ")", ")", "error", "(", "\"-mpure-code only supports non-pic code on armv7-m targets\"", ")", ";", "}", ""], "natrual_language": ["Check", "any", "incompatible", "options", "that", "the", "user", "has", "specified", "."], "TS_V_token": ["arm", "\"iWMMXt and NEON are incompatible\"", "\"target CPU does not support ARM mode\"", "0", "\"enabling backtrace support is only meaningful when compiling for the Thumb\"", "0", "\"enabling callee interworking support is only meaningful when compiling for the Thumb\"", "0", "\"-g with -mno-apcs-frame may not give sensible debugging\"", "\"iWMMXt unsupported under Thumb mode\"", "\"can not use -mtp=cp15 with 16-bit Thumb\"", "\"RTP PIC is incompatible with Thumb\"", "0", "\"-mslow-flash-data only supports non-pic code on armv7-m targets\"", "\"-mpure-code only supports non-pic code on armv7-m targets\""], "File": "arm6", "Func": "arm_option_check_internal", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2608, "Length": 226, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "pa_d_target_versions", "(", "void", ")", "{", "if", "(", "TARGET_64BIT", ")", "d_add_builtin_version", "(", "\"HPPA64\"", ")", ";", "else", "d_add_builtin_version", "(", "\"HPPA\"", ")", ";", "if", "(", "TARGET_SOFT_FLOAT", ")", "d_add_builtin_version", "(", "\"D_SoftFloat\"", ")", ";", "else", "d_add_builtin_version", "(", "\"D_HardFloat\"", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_D_CPU_VERSIONS", "for", "HPPA", "targets", "."], "TS_V_token": ["pa", "\"HPPA64\"", "\"HPPA\"", "\"D_SoftFloat\"", "\"D_HardFloat\""], "File": "pa-d", "Func": "pa_d_target_versions", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2609, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "ARMSelectionDAGInfo", "::", "EmitTargetCodeForMemset", "(", "SelectionDAG", "&", "DAG", ",", "DebugLoc", "dl", ",", "SDValue", "Chain", ",", "SDValue", "Dst", ",", "SDValue", "Src", ",", "SDValue", "Size", ",", "unsigned", "Align", ",", "bool", "isVolatile", ",", "MachinePointerInfo", "DstPtrInfo", ")", "const", "{", "if", "(", "!", "Subtarget", "->", "isAAPCS_ABI", "(", ")", "||", "Subtarget", "->", "isTargetDarwin", "(", ")", ")", "return", "SDValue", "(", ")", ";", "const", "ARMTargetLowering", "&", "TLI", "=", "*", "static_cast", "<", "const", "ARMTargetLowering", "*", ">", "(", "DAG", ".", "getTarget", "(", ")", ".", "getTargetLowering", "(", ")", ")", ";", "TargetLowering", "::", "ArgListTy", "Args", ";", "TargetLowering", "::", "ArgListEntry", "Entry", ";", "Type", "*", "IntPtrTy", "=", "TLI", ".", "getDataLayout", "(", ")", "->", "getIntPtrType", "(", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "Entry", ".", "Node", "=", "Dst", ";", "Entry", ".", "Ty", "=", "IntPtrTy", ";", "Args", ".", "push_back", "(", "Entry", ")", ";", "Entry", ".", "Node", "=", "Size", ";", "Entry", ".", "Ty", "=", "IntPtrTy", ";", "Entry", ".", "isSExt", "=", "false", ";", "Args", ".", "push_back", "(", "Entry", ")", ";", "if", "(", "Src", ".", "getValueType", "(", ")", ".", "bitsGT", "(", "MVT", "::", "i32", ")", ")", "Src", "=", "DAG", ".", "getNode", "(", "ISD", "::", "TRUNCATE", ",", "dl", ",", "MVT", "::", "i32", ",", "Src", ")", ";", "else", "Src", "=", "DAG", ".", "getNode", "(", "ISD", "::", "ZERO_EXTEND", ",", "dl", ",", "MVT", "::", "i32", ",", "Src", ")", ";", "Entry", ".", "Node", "=", "Src", ";", "Entry", ".", "Ty", "=", "Type", "::", "getInt32Ty", "(", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "Entry", ".", "isSExt", "=", "true", ";", "Args", ".", "push_back", "(", "Entry", ")", ";", "TargetLowering", "::", "CallLoweringInfo", "CLI", "(", "Chain", ",", "Type", "::", "getVoidTy", "(", "*", "DAG", ".", "getContext", "(", ")", ")", ",", "false", ",", "false", ",", "false", ",", "false", ",", "0", ",", "TLI", ".", "getLibcallCallingConv", "(", "RTLIB", "::", "MEMSET", ")", ",", "false", ",", "false", ",", "false", ",", "DAG", ".", "getExternalSymbol", "(", "TLI", ".", "getLibcallName", "(", "RTLIB", "::", "MEMSET", ")", ",", "TLI", ".", "getPointerTy", "(", ")", ")", ",", "Args", ",", "DAG", ",", "dl", ")", ";", "std", "::", "pair", "<", "SDValue", ",", "SDValue", ">", "CallResult", "=", "TLI", ".", "LowerCallTo", "(", "CLI", ")", ";", "return", "CallResult", ".", "second", ";", "}", ""], "natrual_language": ["Emit", "target-specific", "code", "that", "performs", "a", "memset", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "MVT::i32", "ISD::TRUNCATE", "MVT::i32", "ISD::ZERO_EXTEND", "MVT::i32", "0"], "File": "ARMSelectionDAGInfo24", "Func": "EmitTargetCodeForMemset", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2610, "Length": 336, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "SystemZXPLINK64Registers", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", "MF", ",", "CallingConv", "::", "ID", "CC", ")", "const", "{", "return", "CSR_SystemZ_XPLINK64_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["SystemZ", "SystemZXPLINK64Registers::getCallPreservedMask", "SystemZ"], "File": "SystemZRegisterInfo21", "Func": "getCallPreservedMask", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2611, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_sse_copysign_to_positive", "(", "rtx", "result", ",", "rtx", "abs_value", ",", "rtx", "sign", ",", "rtx", "mask", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "sign", ")", ";", "rtx", "sgn", "=", "gen_reg_rtx", "(", "mode", ")", ";", "if", "(", "mask", "==", "NULL_RTX", ")", "{", "machine_mode", "vmode", ";", "if", "(", "mode", "==", "SFmode", ")", "vmode", "=", "V4SFmode", ";", "else", "if", "(", "mode", "==", "DFmode", ")", "vmode", "=", "V2DFmode", ";", "else", "vmode", "=", "mode", ";", "mask", "=", "ix86_build_signbit_mask", "(", "vmode", ",", "VECTOR_MODE_P", "(", "mode", ")", ",", "false", ")", ";", "if", "(", "!", "VECTOR_MODE_P", "(", "mode", ")", ")", "{", "rtx", "tmp", "=", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "gen_rtvec", "(", "1", ",", "const0_rtx", ")", ")", ";", "tmp", "=", "gen_rtx_VEC_SELECT", "(", "mode", ",", "mask", ",", "tmp", ")", ";", "mask", "=", "gen_reg_rtx", "(", "mode", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "mask", ",", "tmp", ")", ")", ";", "}", "}", "else", "mask", "=", "gen_rtx_NOT", "(", "mode", ",", "mask", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "sgn", ",", "gen_rtx_AND", "(", "mode", ",", "mask", ",", "sign", ")", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "result", ",", "gen_rtx_IOR", "(", "mode", ",", "abs_value", ",", "sgn", ")", ")", ")", ";", "}", ""], "natrual_language": ["Expand", "copysign", "from", "SIGN", "to", "the", "positive", "value", "ABS_VALUE", "storing", "in", "RESULT", ".", "If", "MASK", "is", "non-null", ",", "it", "shall", "be", "a", "mask", "to", "mask", "out", "the", "sign-bit", "."], "TS_V_token": ["i386", "1"], "File": "i3864", "Func": "ix86_sse_copysign_to_positive", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2612, "Length": 188, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMPassConfig", "::", "addPreSched2", "(", ")", "{", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "if", "(", "EnableARMLoadStoreOpt", ")", "addPass", "(", "createARMLoadStoreOptimizationPass", "(", ")", ")", ";", "addPass", "(", "createExecutionDependencyFixPass", "(", "&", "ARM", "::", "DPRRegClass", ")", ")", ";", "}", "addPass", "(", "createARMExpandPseudoPass", "(", ")", ")", ";", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "addPass", "(", "createThumb2SizeReductionPass", "(", "[", "this", "]", "(", "const", "Function", "&", "F", ")", "{", "return", "this", "->", "TM", "->", "getSubtarget", "<", "ARMSubtarget", ">", "(", "F", ")", ".", "restrictIT", "(", ")", ";", "}", ")", ")", ";", "addPass", "(", "createIfConverter", "(", "[", "]", "(", "const", "MachineFunction", "&", "MF", ")", "{", "return", "!", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ".", "isThumb1Only", "(", ")", ";", "}", ")", ")", ";", "}", "addPass", "(", "createThumb2ITBlockPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "after", "prolog-epilog", "insertion", "and", "before", "the", "second", "instruction", "scheduling", "pass", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM::DPRRegClass", "ARM", "ARM", "ARM"], "File": "ARMTargetMachine108", "Func": "addPreSched2", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2613, "Length": 135, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "aarch64_sve_cnt_immediate_p", "(", "rtx", "x", ")", "{", "poly_int64", "value", ";", "return", "poly_int_rtx_p", "(", "x", ",", "&", "value", ")", "&&", "aarch64_sve_cnt_immediate_p", "(", "value", ")", ";", "}", ""], "natrual_language": ["Likewise", "for", "rtx", "X", "."], "TS_V_token": ["aarch64"], "File": "aarch64", "Func": "aarch64_sve_cnt_immediate_p", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2614, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "nds32_rtx_costs_impl", "(", "rtx", "x", ",", "int", "code", ",", "int", "outer_code", ",", "int", "opno", "ATTRIBUTE_UNUSED", ",", "int", "*", "total", ",", "bool", "speed", ")", "{", "if", "(", "speed", ")", "goto", "performance_cost", ";", "else", "goto", "size_cost", ";", "performance_cost", ":", "switch", "(", "code", ")", "{", "case", "SET", ":", "return", "false", ";", "case", "USE", ":", "*", "total", "=", "0", ";", "break", ";", "case", "MULT", ":", "*", "total", "=", "COSTS_N_INSNS", "(", "1", ")", ";", "break", ";", "case", "DIV", ":", "case", "UDIV", ":", "case", "MOD", ":", "case", "UMOD", ":", "*", "total", "=", "COSTS_N_INSNS", "(", "7", ")", ";", "break", ";", "default", ":", "*", "total", "=", "COSTS_N_INSNS", "(", "1", ")", ";", "break", ";", "}", "return", "true", ";", "size_cost", ":", "switch", "(", "code", ")", "{", "case", "SET", ":", "return", "false", ";", "case", "USE", ":", "*", "total", "=", "0", ";", "break", ";", "case", "CONST_INT", ":", "if", "(", "outer_code", "==", "SET", ")", "{", "if", "(", "satisfies_constraint_Is05", "(", "x", ")", ")", "*", "total", "=", "COSTS_N_INSNS", "(", "1", ")", "-", "2", ";", "else", "if", "(", "satisfies_constraint_Is20", "(", "x", ")", ")", "*", "total", "=", "COSTS_N_INSNS", "(", "1", ")", ";", "else", "*", "total", "=", "COSTS_N_INSNS", "(", "2", ")", ";", "}", "else", "if", "(", "outer_code", "==", "PLUS", "||", "outer_code", "==", "MINUS", ")", "{", "if", "(", "satisfies_constraint_Iu05", "(", "x", ")", ")", "*", "total", "=", "COSTS_N_INSNS", "(", "1", ")", "-", "2", ";", "else", "*", "total", "=", "COSTS_N_INSNS", "(", "1", ")", ";", "}", "else", "if", "(", "outer_code", "==", "ASHIFT", ")", "{", "if", "(", "satisfies_constraint_Iu03", "(", "x", ")", ")", "*", "total", "=", "COSTS_N_INSNS", "(", "1", ")", "-", "2", ";", "else", "*", "total", "=", "COSTS_N_INSNS", "(", "1", ")", ";", "}", "else", "if", "(", "outer_code", "==", "ASHIFTRT", "||", "outer_code", "==", "LSHIFTRT", ")", "{", "if", "(", "satisfies_constraint_Iu05", "(", "x", ")", ")", "*", "total", "=", "COSTS_N_INSNS", "(", "1", ")", "-", "2", ";", "else", "*", "total", "=", "COSTS_N_INSNS", "(", "1", ")", ";", "}", "else", "{", "*", "total", "=", "COSTS_N_INSNS", "(", "1", ")", ";", "}", "break", ";", "case", "CONST_DOUBLE", ":", "*", "total", "=", "COSTS_N_INSNS", "(", "2", ")", ";", "break", ";", "default", ":", "*", "total", "=", "COSTS_N_INSNS", "(", "1", ")", ";", "break", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["This", "target", "hook", "describes", "the", "relative", "costs", "of", "RTL", "expressions", ".", "Return", "'true", "'", "when", "all", "subexpressions", "of", "x", "have", "been", "processed", ".", "Return", "'false", "'", "to", "sum", "the", "costs", "of", "sub-rtx", ",", "plus", "cost", "of", "this", "operation", ".", "Refer", "to", "gcc/rtlanal.cc", "for", "more", "information", "."], "TS_V_token": ["nds32", "0", "1", "7", "1", "0", "1", "2", "1", "2", "1", "2", "1", "1", "2", "1", "1", "2", "1", "1", "2", "1"], "File": "nds32-cost2", "Func": "nds32_rtx_costs_impl", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2615, "Length": 341, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "TargetRegisterClass", "*", "ARM64RegisterInfo", "::", "getCrossCopyRegClass", "(", "const", "TargetRegisterClass", "*", "RC", ")", "const", "{", "if", "(", "RC", "==", "&", "ARM64", "::", "CCRRegClass", ")", "return", "nullptr", ";", "return", "RC", ";", "}", ""], "natrual_language": ["getCrossCopyRegClass", "-", "Returns", "a", "legal", "register", "class", "to", "copy", "a", "register", "in", "the", "specified", "class", "to", "or", "from", "."], "TS_V_token": ["ARM64", "ARM64", "ARM64::CCRRegClass"], "File": "ARM64RegisterInfo", "Func": "getCrossCopyRegClass", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2616, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "HOST_WIDE_INT", "compute_not_to_clear_mask", "(", "tree", "arg_type", ",", "rtx", "arg_rtx", ",", "int", "regno", ",", "uint32_t", "*", "padding_bits_to_clear", ")", "{", "int", "last_used_bit", "=", "0", ";", "unsigned", "HOST_WIDE_INT", "not_to_clear_mask", ";", "if", "(", "RECORD_OR_UNION_TYPE_P", "(", "arg_type", ")", ")", "{", "not_to_clear_mask", "=", "comp_not_to_clear_mask_str_un", "(", "arg_type", ",", "&", "regno", ",", "padding_bits_to_clear", ",", "0", ",", "&", "last_used_bit", ")", ";", "if", "(", "last_used_bit", "!=", "0", ")", "padding_bits_to_clear", "[", "regno", "]", "|=", "(", "(", "uint32_t", ")", "-", "1", ")", "-", "(", "(", "uint32_t", ")", "1", "<<", "last_used_bit", ")", "+", "1", ";", "else", "not_to_clear_mask", "&=", "~", "(", "HOST_WIDE_INT_1U", "<<", "regno", ")", ";", "}", "else", "{", "not_to_clear_mask", "=", "0", ";", "if", "(", "GET_MODE", "(", "arg_rtx", ")", "==", "BLKmode", ")", "{", "int", "i", ",", "arg_regs", ";", "rtx", "reg", ";", "gcc_assert", "(", "TARGET_HARD_FLOAT_ABI", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "XVECLEN", "(", "arg_rtx", ",", "0", ")", ";", "i", "++", ")", "{", "reg", "=", "XEXP", "(", "XVECEXP", "(", "arg_rtx", ",", "0", ",", "i", ")", ",", "0", ")", ";", "gcc_assert", "(", "REG_P", "(", "reg", ")", ")", ";", "not_to_clear_mask", "|=", "HOST_WIDE_INT_1U", "<<", "REGNO", "(", "reg", ")", ";", "arg_regs", "=", "ARM_NUM_REGS", "(", "GET_MODE", "(", "reg", ")", ")", ";", "if", "(", "arg_regs", ">", "1", ")", "{", "unsigned", "HOST_WIDE_INT", "mask", ";", "mask", "=", "HOST_WIDE_INT_1U", "<<", "(", "REGNO", "(", "reg", ")", "+", "arg_regs", ")", ";", "mask", "-=", "HOST_WIDE_INT_1U", "<<", "REGNO", "(", "reg", ")", ";", "not_to_clear_mask", "|=", "mask", ";", "}", "}", "}", "else", "{", "int", "arg_regs", "=", "ARM_NUM_REGS", "(", "GET_MODE", "(", "arg_rtx", ")", ")", ";", "not_to_clear_mask", "|=", "HOST_WIDE_INT_1U", "<<", "REGNO", "(", "arg_rtx", ")", ";", "if", "(", "arg_regs", ">", "1", ")", "{", "unsigned", "HOST_WIDE_INT", "mask", "=", "HOST_WIDE_INT_1U", "<<", "(", "REGNO", "(", "arg_rtx", ")", "+", "arg_regs", ")", ";", "mask", "-=", "HOST_WIDE_INT_1U", "<<", "REGNO", "(", "arg_rtx", ")", ";", "not_to_clear_mask", "|=", "mask", ";", "}", "}", "}", "return", "not_to_clear_mask", ";", "}", ""], "natrual_language": ["In", "the", "context", "of", "ARMv8-M", "Security", "Extensions", ",", "this", "function", "is", "used", "for", "both", "'cmse_nonsecure_call", "'", "and", "'cmse_nonsecure_entry", "'", "functions", "to", "compute", "what", "registers", "are", "used", "when", "returning", "or", "passing", "arguments", ",", "which", "is", "then", "returned", "as", "a", "mask", ".", "It", "will", "also", "compute", "a", "mask", "to", "indicate", "padding/unused", "bits", "for", "each", "of", "these", "registers", ",", "and", "passes", "this", "through", "the", "PADDING_BITS_TO_CLEAR", "pointer", ".", "The", "tree", "of", "the", "argument", "type", "is", "passed", "in", "ARG_TYPE", ",", "the", "rtl", "representation", "of", "the", "argument", "is", "passed", "in", "ARG_RTX", "and", "the", "starting", "register", "used", "to", "pass", "this", "argument", "or", "return", "value", "is", "passed", "in", "REGNO", ".", "It", "makes", "use", "of", "'comp_not_to_clear_mask_str_un", "'", "to", "compute", "these", "for", "struct", "and", "union", "types", "."], "TS_V_token": ["arm", "0", "0", "0", "1", "1", "1", "0", "0", "0", "0", "0", "1", "1"], "File": "arm", "Func": "compute_not_to_clear_mask", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2617, "Length": 289, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsSEFrameLowering", "::", "spillCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "MachineBasicBlock", "*", "EntryBlock", "=", "&", "MF", "->", "front", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "STI", ".", "getInstrInfo", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "]", ".", "getReg", "(", ")", ";", "bool", "IsRAAndRetAddrIsTaken", "=", "(", "Reg", "==", "Mips", "::", "RA", "||", "Reg", "==", "Mips", "::", "RA_64", ")", "&&", "MF", "->", "getFrameInfo", "(", ")", ".", "isReturnAddressTaken", "(", ")", ";", "if", "(", "!", "IsRAAndRetAddrIsTaken", ")", "EntryBlock", "->", "addLiveIn", "(", "Reg", ")", ";", "bool", "IsLOHI", "=", "(", "Reg", "==", "Mips", "::", "LO0", "||", "Reg", "==", "Mips", "::", "LO0_64", "||", "Reg", "==", "Mips", "::", "HI0", "||", "Reg", "==", "Mips", "::", "HI0_64", ")", ";", "const", "Function", "*", "Func", "=", "MBB", ".", "getParent", "(", ")", "->", "getFunction", "(", ")", ";", "if", "(", "IsLOHI", "&&", "Func", "->", "hasFnAttribute", "(", "\"interrupt\"", ")", ")", "{", "DebugLoc", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "unsigned", "Op", "=", "0", ";", "if", "(", "!", "STI", ".", "getABI", "(", ")", ".", "ArePtrs64bit", "(", ")", ")", "{", "Op", "=", "(", "Reg", "==", "Mips", "::", "HI0", ")", "?", "Mips", "::", "MFHI", ":", "Mips", "::", "MFLO", ";", "Reg", "=", "Mips", "::", "K0", ";", "}", "else", "{", "Op", "=", "(", "Reg", "==", "Mips", "::", "HI0", ")", "?", "Mips", "::", "MFHI64", ":", "Mips", "::", "MFLO64", ";", "Reg", "=", "Mips", "::", "K0_64", ";", "}", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "TII", ".", "get", "(", "Op", ")", ",", "Mips", "::", "K0", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ";", "}", "bool", "IsKill", "=", "!", "IsRAAndRetAddrIsTaken", ";", "const", "TargetRegisterClass", "*", "RC", "=", "TRI", "->", "getMinimalPhysRegClass", "(", "Reg", ")", ";", "TII", ".", "storeRegToStackSlot", "(", "*", "EntryBlock", ",", "MI", ",", "Reg", ",", "IsKill", ",", "CSI", "[", "i", "]", ".", "getFrameIdx", "(", ")", ",", "RC", ",", "TRI", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["spillCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "spill", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "store", "instructions", "via", "storeRegToStackSlot", "(", ")", "."], "TS_V_token": ["Mips", "Mips", "0", "Mips::RA", "Mips::RA_64", "Mips::LO0", "Mips::LO0_64", "Mips::HI0", "Mips::HI0_64", "\"interrupt\"", "0", "Mips::HI0", "Mips::MFHI", "Mips::MFLO", "Mips::K0", "Mips::HI0", "Mips::MFHI64", "Mips::MFLO64", "Mips::K0_64", "Mips::K0"], "File": "MipsSEFrameLowering19", "Func": "spillCalleeSavedRegisters", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2618, "Length": 352, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "CJGInstrInfo", "::", "isUnpredicatedTerminator", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "if", "(", "!", "MI", ".", "isTerminator", "(", ")", ")", "return", "false", ";", "if", "(", "MI", ".", "isBranch", "(", ")", "&&", "!", "MI", ".", "isBarrier", "(", ")", ")", "return", "true", ";", "if", "(", "!", "MI", ".", "isPredicable", "(", ")", ")", "return", "true", ";", "return", "!", "isPredicated", "(", "MI", ")", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "instruction", "is", "a", "terminator", "instruction", "that", "has", "not", "been", "predicated", "."], "TS_V_token": ["CJG", "CJG"], "File": "CJGInstrInfo", "Func": "isUnpredicatedTerminator", "Target": "CJG", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2619, "Length": 62, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCRegisterInfo", "::", "requiresFrameIndexScavenging", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "PPCSubtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ";", "const", "PPCInstrInfo", "*", "InstrInfo", "=", "Subtarget", ".", "getInstrInfo", "(", ")", ";", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "Info", "=", "MFI", ".", "getCalleeSavedInfo", "(", ")", ";", "if", "(", "!", "MFI", ".", "isCalleeSavedInfoValid", "(", ")", ")", "return", "true", ";", "unsigned", "FrameSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "if", "(", "FrameSize", "&", "~", "0x7FFF", ")", "return", "true", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "Info", ".", "size", "(", ")", ";", "i", "++", ")", "{", "int", "FrIdx", "=", "Info", "[", "i", "]", ".", "getFrameIdx", "(", ")", ";", "unsigned", "Reg", "=", "Info", "[", "i", "]", ".", "getReg", "(", ")", ";", "const", "TargetRegisterClass", "*", "RC", "=", "getMinimalPhysRegClass", "(", "Reg", ")", ";", "unsigned", "Opcode", "=", "InstrInfo", "->", "getStoreOpcodeForSpill", "(", "RC", ")", ";", "if", "(", "!", "MFI", ".", "isFixedObjectIndex", "(", "FrIdx", ")", ")", "{", "if", "(", "offsetMinAlignForOpcode", "(", "Opcode", ")", ">", "1", ")", "return", "true", ";", "}", "if", "(", "InstrInfo", "->", "isXFormMemOp", "(", "Opcode", ")", ")", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "requires", "post", "PEI", "scavenging", "of", "registers", "for", "materializing", "frame", "index", "constants", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "PPC", "0x7FFF", "0", "1"], "File": "PPCRegisterInfo3", "Func": "requiresFrameIndexScavenging", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2620, "Length": 199, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "output_sibcall", "(", "rtx", "insn", ",", "rtx", "call_operand", ")", "{", "rtx", "operands", "[", "1", "]", ";", "gcc_assert", "(", "flag_delayed_branch", ")", ";", "operands", "[", "0", "]", "=", "call_operand", ";", "if", "(", "sparc_leaf_function_p", ")", "{", "gcc_assert", "(", "!", "(", "LEAF_SIBCALL_SLOT_RESERVED_P", "&&", "final_sequence", ")", ")", ";", "if", "(", "final_sequence", ")", "output_asm_insn", "(", "\"sethi\\t%%hi(%a0), %%g1\\n\\tjmp\\t%%g1 + %%lo(%a0)%#\"", ",", "operands", ")", ";", "else", "output_asm_insn", "(", "\"or\\t%%o7, %%g0, %%g1\\n\\tcall\\t%a0, 0\\n\\t or\\t%%g1, %%g0, %%o7\"", ",", "operands", ")", ";", "}", "else", "{", "output_asm_insn", "(", "\"call\\t%a0, 0\"", ",", "operands", ")", ";", "if", "(", "final_sequence", ")", "{", "rtx", "delay", "=", "NEXT_INSN", "(", "insn", ")", ";", "gcc_assert", "(", "delay", ")", ";", "output_restore", "(", "PATTERN", "(", "delay", ")", ")", ";", "PATTERN", "(", "delay", ")", "=", "gen_blockage", "(", ")", ";", "INSN_CODE", "(", "delay", ")", "=", "-", "1", ";", "}", "else", "output_restore", "(", "NULL_RTX", ")", ";", "}", "return", "\"\"", ";", "}", ""], "natrual_language": ["Output", "a", "sibling", "call", "."], "TS_V_token": ["sparc", "1", "0", "\"sethi\\t%%hi(%a0), %%g1\\n\\tjmp\\t%%g1 + %%lo(%a0)%#\"", "\"or\\t%%o7, %%g0, %%g1\\n\\tcall\\t%a0, 0\\n\\t or\\t%%g1, %%g0, %%o7\"", "\"call\\t%a0, 0\"", "1", "\"\""], "File": "sparc3", "Func": "output_sibcall", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2621, "Length": 129, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "FastISel", "*", "PPC", "::", "createFastISel", "(", "FunctionLoweringInfo", "&", "FuncInfo", ",", "const", "TargetLibraryInfo", "*", "LibInfo", ")", "{", "const", "PPCSubtarget", "&", "Subtarget", "=", "FuncInfo", ".", "MF", "->", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ";", "if", "(", "Subtarget", ".", "isPPC64", "(", ")", ")", "return", "new", "PPCFastISel", "(", "FuncInfo", ",", "LibInfo", ")", ";", "return", "nullptr", ";", "}", ""], "natrual_language": ["This", "method", "returns", "a", "target", "specific", "FastISel", "object", ",", "or", "null", "if", "the", "target", "does", "not", "support", "``", "fast", "''", "ISel", "."], "TS_V_token": ["PowerPC", "PPC::createFastISel", "PPC", "PPC", "PPC", "PPC"], "File": "PPCFastISel12", "Func": "createFastISel", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2622, "Length": 53, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "emitSPUpdate", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "MBBI", ",", "unsigned", "StackPtr", ",", "int64_t", "NumBytes", ",", "bool", "Is64Bit", ",", "const", "TargetInstrInfo", "&", "TII", ",", "const", "TargetRegisterInfo", "&", "TRI", ")", "{", "bool", "isSub", "=", "NumBytes", "<", "0", ";", "uint64_t", "Offset", "=", "isSub", "?", "-", "NumBytes", ":", "NumBytes", ";", "unsigned", "Opc", "=", "isSub", "?", "getSUBriOpcode", "(", "Is64Bit", ",", "Offset", ")", ":", "getADDriOpcode", "(", "Is64Bit", ",", "Offset", ")", ";", "uint64_t", "Chunk", "=", "(", "1LL", "<<", "31", ")", "-", "1", ";", "DebugLoc", "DL", "=", "MBB", ".", "findDebugLoc", "(", "MBBI", ")", ";", "while", "(", "Offset", ")", "{", "uint64_t", "ThisVal", "=", "(", "Offset", ">", "Chunk", ")", "?", "Chunk", ":", "Offset", ";", "if", "(", "ThisVal", "==", "(", "Is64Bit", "?", "8", ":", "4", ")", ")", "{", "unsigned", "Reg", "=", "isSub", "?", "(", "unsigned", ")", "(", "Is64Bit", "?", "X86", "::", "RAX", ":", "X86", "::", "EAX", ")", ":", "findDeadCallerSavedReg", "(", "MBB", ",", "MBBI", ",", "TRI", ",", "Is64Bit", ")", ";", "if", "(", "Reg", ")", "{", "Opc", "=", "isSub", "?", "(", "Is64Bit", "?", "X86", "::", "PUSH64r", ":", "X86", "::", "PUSH32r", ")", ":", "(", "Is64Bit", "?", "X86", "::", "POP64r", ":", "X86", "::", "POP32r", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "Opc", ")", ")", ".", "addReg", "(", "Reg", ",", "getDefRegState", "(", "!", "isSub", ")", "|", "getUndefRegState", "(", "isSub", ")", ")", ";", "Offset", "-=", "ThisVal", ";", "continue", ";", "}", "}", "MachineInstr", "*", "MI", "=", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "Opc", ")", ",", "StackPtr", ")", ".", "addReg", "(", "StackPtr", ")", ".", "addImm", "(", "ThisVal", ")", ";", "MI", "->", "getOperand", "(", "3", ")", ".", "setIsDead", "(", ")", ";", "Offset", "-=", "ThisVal", ";", "}", "}", ""], "natrual_language": ["Emit", "a", "series", "of", "instructions", "to", "increment", "/", "decrement", "the", "stack", "pointer", "by", "a", "constant", "value", "."], "TS_V_token": ["X86", "0", "1LL", "31", "1", "8", "4", "X86::RAX", "X86::EAX", "X86::PUSH64r", "X86::PUSH32r", "X86::POP64r", "X86::POP32r", "3"], "File": "X86FrameLowering45", "Func": "emitSPUpdate", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2623, "Length": 275, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseInstrInfo", "::", "expandPostRAPseudo", "(", "MachineBasicBlock", "::", "iterator", "MI", ")", "const", "{", "if", "(", "!", "WidenVMOVS", "||", "!", "MI", "->", "isCopy", "(", ")", ")", "return", "false", ";", "unsigned", "DstRegS", "=", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "unsigned", "SrcRegS", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "if", "(", "!", "ARM", "::", "SPRRegClass", ".", "contains", "(", "DstRegS", ",", "SrcRegS", ")", ")", "return", "false", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "&", "getRegisterInfo", "(", ")", ";", "unsigned", "DstRegD", "=", "TRI", "->", "getMatchingSuperReg", "(", "DstRegS", ",", "ARM", "::", "ssub_0", ",", "&", "ARM", "::", "DPRRegClass", ")", ";", "unsigned", "SrcRegD", "=", "TRI", "->", "getMatchingSuperReg", "(", "SrcRegS", ",", "ARM", "::", "ssub_0", ",", "&", "ARM", "::", "DPRRegClass", ")", ";", "if", "(", "!", "DstRegD", "||", "!", "SrcRegD", ")", "return", "false", ";", "if", "(", "!", "MI", "->", "definesRegister", "(", "DstRegD", ",", "TRI", ")", "||", "MI", "->", "readsRegister", "(", "DstRegD", ",", "TRI", ")", ")", "return", "false", ";", "if", "(", "MI", "->", "getOperand", "(", "0", ")", ".", "isDead", "(", ")", ")", "return", "false", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"widening: \"", "<<", "*", "MI", ")", ";", "int", "ImpDefIdx", "=", "MI", "->", "findRegisterDefOperandIdx", "(", "DstRegD", ")", ";", "if", "(", "ImpDefIdx", "!=", "-", "1", ")", "MI", "->", "RemoveOperand", "(", "ImpDefIdx", ")", ";", "MI", "->", "setDesc", "(", "get", "(", "ARM", "::", "VMOVD", ")", ")", ";", "MI", "->", "getOperand", "(", "0", ")", ".", "setReg", "(", "DstRegD", ")", ";", "MI", "->", "getOperand", "(", "1", ")", ".", "setReg", "(", "SrcRegD", ")", ";", "AddDefaultPred", "(", "MachineInstrBuilder", "(", "MI", ")", ")", ";", "MI", "->", "getOperand", "(", "1", ")", ".", "setIsUndef", "(", ")", ";", "MachineInstrBuilder", "(", "MI", ")", ".", "addReg", "(", "SrcRegS", ",", "RegState", "::", "Implicit", ")", ";", "if", "(", "MI", "->", "getOperand", "(", "1", ")", ".", "isKill", "(", ")", ")", "{", "MI", "->", "getOperand", "(", "1", ")", ".", "setIsKill", "(", "false", ")", ";", "MI", "->", "addRegisterKilled", "(", "SrcRegS", ",", "TRI", ",", "true", ")", ";", "}", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"replaced by: \"", "<<", "*", "MI", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "function", "is", "called", "for", "all", "pseudo", "instructions", "that", "remain", "after", "register", "allocation", "."], "TS_V_token": ["ARM", "ARM", "0", "1", "ARM::SPRRegClass", "ARM::ssub_0", "ARM::DPRRegClass", "ARM::ssub_0", "ARM::DPRRegClass", "0", "\"widening: \"", "1", "ARM::VMOVD", "0", "1", "1", "1", "1", "\"replaced by: \""], "File": "ARMBaseInstrInfo (2)4", "Func": "expandPostRAPseudo", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2624, "Length": 330, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsTargetELFStreamer", "::", "emitDirectiveCpRestore", "(", "int", "Offset", ",", "function_ref", "<", "unsigned", "(", ")", ">", "GetATReg", ",", "SMLoc", "IDLoc", ",", "const", "MCSubtargetInfo", "*", "STI", ")", "{", "MipsTargetStreamer", "::", "emitDirectiveCpRestore", "(", "Offset", ",", "GetATReg", ",", "IDLoc", ",", "STI", ")", ";", "if", "(", "!", "Pic", "||", "(", "getABI", "(", ")", ".", "IsN32", "(", ")", "||", "getABI", "(", ")", ".", "IsN64", "(", ")", ")", ")", "return", "true", ";", "emitStoreWithImmOffset", "(", "Mips", "::", "SW", ",", "GPReg", ",", "Mips", "::", "SP", ",", "Offset", ",", "GetATReg", ",", "IDLoc", ",", "STI", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Emit", "a", ".cprestore", "directive", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips::SW", "Mips::SP"], "File": "MipsTargetStreamer (2)1", "Func": "emitDirectiveCpRestore", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2625, "Length": 89, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86InstrInfo", "::", "canInsertSelect", "(", "const", "MachineBasicBlock", "&", "MBB", ",", "ArrayRef", "<", "MachineOperand", ">", "Cond", ",", "Register", "DstReg", ",", "Register", "TrueReg", ",", "Register", "FalseReg", ",", "int", "&", "CondCycles", ",", "int", "&", "TrueCycles", ",", "int", "&", "FalseCycles", ")", "const", "{", "if", "(", "!", "Subtarget", ".", "canUseCMOV", "(", ")", ")", "return", "false", ";", "if", "(", "Cond", ".", "size", "(", ")", "!=", "1", ")", "return", "false", ";", "if", "(", "(", "X86", "::", "CondCode", ")", "Cond", "[", "0", "]", ".", "getImm", "(", ")", ">", "X86", "::", "LAST_VALID_COND", ")", "return", "false", ";", "const", "MachineRegisterInfo", "&", "MRI", "=", "MBB", ".", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "const", "TargetRegisterClass", "*", "RC", "=", "RI", ".", "getCommonSubClass", "(", "MRI", ".", "getRegClass", "(", "TrueReg", ")", ",", "MRI", ".", "getRegClass", "(", "FalseReg", ")", ")", ";", "if", "(", "!", "RC", ")", "return", "false", ";", "if", "(", "X86", "::", "GR16RegClass", ".", "hasSubClassEq", "(", "RC", ")", "||", "X86", "::", "GR32RegClass", ".", "hasSubClassEq", "(", "RC", ")", "||", "X86", "::", "GR64RegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "CondCycles", "=", "2", ";", "TrueCycles", "=", "2", ";", "FalseCycles", "=", "2", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "it", "is", "possible", "to", "insert", "a", "select", "instruction", "that", "chooses", "between", "TrueReg", "and", "FalseReg", "based", "on", "the", "condition", "code", "in", "Cond", "."], "TS_V_token": ["X86", "X86", "1", "X86::CondCode", "0", "X86::LAST_VALID_COND", "X86::GR16RegClass", "X86::GR32RegClass", "X86::GR64RegClass", "2", "2", "2"], "File": "X86InstrInfo64", "Func": "canInsertSelect", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2626, "Length": 184, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsCallEntry", "::", "isAliased", "(", "const", "MachineFrameInfo", "*", ")", "const", "{", "return", "false", ";", "}", ""], "natrual_language": ["Test", "whether", "the", "memory", "pointed", "to", "by", "this", "PseudoSourceValue", "may", "also", "be", "pointed", "to", "by", "an", "LLVM", "IR", "Value", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsMachineFunction", "Func": "isAliased", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2627, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCAIXAsmPrinter", "::", "emitGlobalVariable", "(", "const", "GlobalVariable", "*", "GV", ")", "{", "if", "(", "isSpecialLLVMGlobalArrayToSkip", "(", "GV", ")", "||", "isSpecialLLVMGlobalArrayForStaticInit", "(", "GV", ")", ")", "return", ";", "if", "(", "GV", "->", "hasAttribute", "(", "\"toc-data\"", ")", ")", "{", "TOCDataGlobalVars", ".", "push_back", "(", "GV", ")", ";", "return", ";", "}", "emitGlobalVariableHelper", "(", "GV", ")", ";", "}", ""], "natrual_language": ["Emit", "the", "specified", "global", "variable", "to", "the", ".s", "file", "."], "TS_V_token": ["PowerPC", "PPC", "\"toc-data\""], "File": "PPCAsmPrinter (2)3", "Func": "emitGlobalVariable", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2628, "Length": 51, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_restore_reg", "(", "rtx", "reg", ",", "rtx", "mem", ")", "{", "if", "(", "TARGET_MIPS16", "&&", "REGNO", "(", "reg", ")", "==", "RETURN_ADDR_REGNUM", ")", "reg", "=", "gen_rtx_REG", "(", "GET_MODE", "(", "reg", ")", ",", "GP_REG_FIRST", "+", "7", ")", ";", "else", "if", "(", "GET_MODE", "(", "reg", ")", "==", "DFmode", "&&", "(", "!", "TARGET_FLOAT64", "||", "mips_abi", "==", "ABI_32", ")", ")", "{", "mips_add_cfa_restore", "(", "mips_subword", "(", "reg", ",", "true", ")", ")", ";", "mips_add_cfa_restore", "(", "mips_subword", "(", "reg", ",", "false", ")", ")", ";", "}", "else", "mips_add_cfa_restore", "(", "reg", ")", ";", "mips_emit_save_slot_move", "(", "reg", ",", "mem", ",", "MIPS_EPILOGUE_TEMP", "(", "GET_MODE", "(", "reg", ")", ")", ")", ";", "if", "(", "REGNO", "(", "reg", ")", "==", "REGNO", "(", "mips_epilogue", ".", "cfa_reg", ")", ")", "mips_epilogue_set_cfa", "(", "stack_pointer_rtx", ",", "mips_epilogue", ".", "cfa_restore_sp_offset", ")", ";", "}", ""], "natrual_language": ["Emit", "instructions", "to", "restore", "register", "REG", "from", "slot", "MEM", "."], "TS_V_token": ["mips", "7"], "File": "mips", "Func": "mips_restore_reg", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2629, "Length": 122, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "FixupLEAPass", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "const", "X86Subtarget", "&", "ST", "=", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "bool", "IsSlowLEA", "=", "ST", ".", "slowLEA", "(", ")", ";", "bool", "IsSlow3OpsLEA", "=", "ST", ".", "slow3OpsLEA", "(", ")", ";", "bool", "LEAUsesAG", "=", "ST", ".", "leaUsesAG", "(", ")", ";", "bool", "OptIncDec", "=", "!", "ST", ".", "slowIncDec", "(", ")", "||", "MF", ".", "getFunction", "(", ")", ".", "hasOptSize", "(", ")", ";", "bool", "UseLEAForSP", "=", "ST", ".", "useLeaForSP", "(", ")", ";", "TSM", ".", "init", "(", "&", "ST", ")", ";", "TII", "=", "ST", ".", "getInstrInfo", "(", ")", ";", "TRI", "=", "ST", ".", "getRegisterInfo", "(", ")", ";", "auto", "*", "PSI", "=", "&", "getAnalysis", "<", "ProfileSummaryInfoWrapperPass", ">", "(", ")", ".", "getPSI", "(", ")", ";", "auto", "*", "MBFI", "=", "(", "PSI", "&&", "PSI", "->", "hasProfileSummary", "(", ")", ")", "?", "&", "getAnalysis", "<", "LazyMachineBlockFrequencyInfoPass", ">", "(", ")", ".", "getBFI", "(", ")", ":", "nullptr", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Start X86FixupLEAs\\n\"", ";", ")", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "{", "bool", "OptIncDecPerBB", "=", "OptIncDec", "||", "llvm", "::", "shouldOptimizeForSize", "(", "&", "MBB", ",", "PSI", ",", "MBFI", ")", ";", "for", "(", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "begin", "(", ")", ";", "I", "!=", "MBB", ".", "end", "(", ")", ";", "++", "I", ")", "{", "if", "(", "!", "isLEA", "(", "I", "->", "getOpcode", "(", ")", ")", ")", "continue", ";", "if", "(", "optTwoAddrLEA", "(", "I", ",", "MBB", ",", "OptIncDecPerBB", ",", "UseLEAForSP", ")", ")", "continue", ";", "if", "(", "IsSlowLEA", ")", "processInstructionForSlowLEA", "(", "I", ",", "MBB", ")", ";", "else", "if", "(", "IsSlow3OpsLEA", ")", "processInstrForSlow3OpLEA", "(", "I", ",", "MBB", ",", "OptIncDecPerBB", ")", ";", "}", "if", "(", "LEAUsesAG", ")", "{", "for", "(", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "begin", "(", ")", ";", "I", "!=", "MBB", ".", "end", "(", ")", ";", "++", "I", ")", "processInstruction", "(", "I", ",", "MBB", ")", ";", "}", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"End X86FixupLEAs\\n\"", ";", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "\"Start X86FixupLEAs\\n\"", "\"End X86FixupLEAs\\n\""], "File": "X86FixupLEAs1", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2630, "Length": 330, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMELFStreamer", "::", "reset", "(", ")", "{", "MCTargetStreamer", "&", "TS", "=", "*", "getTargetStreamer", "(", ")", ";", "ARMTargetStreamer", "&", "ATS", "=", "static_cast", "<", "ARMTargetStreamer", "&", ">", "(", "TS", ")", ";", "ATS", ".", "reset", "(", ")", ";", "MappingSymbolCounter", "=", "0", ";", "MCELFStreamer", "::", "reset", "(", ")", ";", "LastMappingSymbols", ".", "clear", "(", ")", ";", "LastEMSInfo", ".", "reset", "(", ")", ";", "getAssembler", "(", ")", ".", "setELFHeaderEFlags", "(", "ELF", "::", "EF_ARM_EABI_VER5", ")", ";", "}", ""], "natrual_language": ["Reset", "an", "existing", "scalar", "value", "for", "Def", "and", "a", "given", "Instance", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "0", "ARM"], "File": "ARMELFStreamer14", "Func": "reset", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2631, "Length": 69, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_evpc_neon_vtbl", "(", "struct", "expand_vec_perm_d", "*", "d", ")", "{", "rtx", "rperm", "[", "MAX_VECT_LEN", "]", ",", "sel", ";", "machine_mode", "vmode", "=", "d", "->", "vmode", ";", "unsigned", "int", "i", ",", "nelt", "=", "d", "->", "nelt", ";", "if", "(", "BYTES_BIG_ENDIAN", ")", "return", "false", ";", "if", "(", "d", "->", "testing_p", ")", "return", "true", ";", "if", "(", "vmode", "!=", "V8QImode", "&&", "vmode", "!=", "V16QImode", ")", "return", "false", ";", "for", "(", "i", "=", "0", ";", "i", "<", "nelt", ";", "++", "i", ")", "rperm", "[", "i", "]", "=", "GEN_INT", "(", "d", "->", "perm", "[", "i", "]", ")", ";", "sel", "=", "gen_rtx_CONST_VECTOR", "(", "vmode", ",", "gen_rtvec_v", "(", "nelt", ",", "rperm", ")", ")", ";", "sel", "=", "force_reg", "(", "vmode", ",", "sel", ")", ";", "arm_expand_vec_perm_1", "(", "d", "->", "target", ",", "d", "->", "op0", ",", "d", "->", "op1", ",", "sel", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["The", "NEON", "VTBL", "instruction", "is", "a", "fully", "variable", "permuation", "that", "'s", "even", "stronger", "than", "what", "we", "expose", "via", "VEC_PERM_EXPR", ".", "What", "it", "does", "n't", "do", "is", "mask", "the", "index", "operand", "as", "VEC_PERM_EXPR", "requires", ".", "Therefore", "we", "can", "do", "slightly", "better", "by", "expanding", "this", "as", "a", "constant", "where", "we", "do", "n't", "have", "to", "apply", "a", "mask", "."], "TS_V_token": ["arm", "0"], "File": "arm4", "Func": "arm_evpc_neon_vtbl", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2632, "Length": 136, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "arm_is_longcall_p", "(", "rtx", "sym_ref", ",", "int", "call_cookie", ",", "int", "call_symbol", ")", "{", "if", "(", "!", "call_symbol", ")", "{", "if", "(", "GET_CODE", "(", "sym_ref", ")", "!=", "MEM", ")", "return", "0", ";", "sym_ref", "=", "XEXP", "(", "sym_ref", ",", "0", ")", ";", "}", "if", "(", "GET_CODE", "(", "sym_ref", ")", "!=", "SYMBOL_REF", ")", "return", "0", ";", "if", "(", "call_cookie", "&", "CALL_SHORT", ")", "return", "0", ";", "if", "(", "TARGET_LONG_CALLS", ")", "{", "if", "(", "flag_function_sections", "||", "DECL_SECTION_NAME", "(", "current_function_decl", ")", ")", "return", "1", ";", "}", "if", "(", "current_file_function_operand", "(", "sym_ref", ")", ")", "return", "0", ";", "return", "(", "call_cookie", "&", "CALL_LONG", ")", "||", "ENCODED_LONG_CALL_ATTR_P", "(", "XSTR", "(", "sym_ref", ",", "0", ")", ")", "||", "TARGET_LONG_CALLS", ";", "}", ""], "natrual_language": ["Return", "nonzero", "if", "a", "32", "bit", "``", "long_call", "''", "should", "be", "generated", "for", "this", "call", ".", "We", "generate", "a", "long_call", "if", "the", "function", ":", "a.", "has", "an", "__attribute__", "(", "(", "long", "call", ")", ")", "or", "b.", "is", "within", "the", "scope", "of", "a", "#", "pragma", "long_calls", "or", "c.", "the", "-mlong-calls", "command", "line", "switch", "has", "been", "specified", ".", "and", "either", ":", "1", ".", "-ffunction-sections", "is", "in", "effect", "or", "2.", "the", "current", "function", "has", "__attribute__", "(", "(", "section", ")", ")", "or", "3.", "the", "target", "function", "has", "__attribute__", "(", "(", "section", ")", ")", "However", "we", "do", "not", "generate", "a", "long", "call", "if", "the", "function", ":", "d.", "has", "an", "__attribute__", "(", "(", "short_call", ")", ")", "or", "e.", "is", "inside", "the", "scope", "of", "a", "#", "pragma", "no_long_calls", "or", "f.", "is", "defined", "within", "the", "current", "compilation", "unit", ".", "This", "function", "will", "be", "called", "by", "C", "fragments", "contained", "in", "the", "machine", "description", "file", ".", "SYM_REF", "and", "CALL_COOKIE", "correspond", "to", "the", "matched", "rtl", "operands", ".", "CALL_SYMBOL", "is", "used", "to", "distinguish", "between", "two", "different", "callers", "of", "the", "function", ".", "It", "is", "set", "to", "1", "in", "the", "``", "call_symbol", "''", "and", "``", "call_symbol_value", "''", "patterns", "and", "to", "0", "in", "the", "``", "call", "''", "and", "``", "call_value", "''", "patterns", ".", "This", "is", "because", "of", "the", "difference", "in", "the", "SYM_REFs", "passed", "by", "these", "patterns", "."], "TS_V_token": ["arm", "0", "0", "0", "0", "1", "0", "0"], "File": "arm3", "Func": "arm_is_longcall_p", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2633, "Length": 110, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "OR1KFrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "MF", ".", "getTarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "return", "(", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "DisableFramePointerElim", "(", "MF", ")", "||", "MF", ".", "getFrameInfo", "(", ")", "->", "hasVarSizedObjects", "(", ")", "||", "MFI", "->", "isFrameAddressTaken", "(", ")", "||", "TRI", "->", "needsStackRealignment", "(", "MF", ")", ")", ";", "}", ""], "natrual_language": ["hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "."], "TS_V_token": ["OR1K", "OR1K"], "File": "OR1KFrameLowering", "Func": "hasFP", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2634, "Length": 78, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64LoadStoreOpt", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "Fn", ")", "{", "if", "(", "skipFunction", "(", "*", "Fn", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "Subtarget", "=", "&", "static_cast", "<", "const", "AArch64Subtarget", "&", ">", "(", "Fn", ".", "getSubtarget", "(", ")", ")", ";", "TII", "=", "static_cast", "<", "const", "AArch64InstrInfo", "*", ">", "(", "Subtarget", "->", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "Subtarget", "->", "getRegisterInfo", "(", ")", ";", "ModifiedRegs", ".", "resize", "(", "TRI", "->", "getNumRegs", "(", ")", ")", ";", "UsedRegs", ".", "resize", "(", "TRI", "->", "getNumRegs", "(", ")", ")", ";", "bool", "Modified", "=", "false", ";", "bool", "enableNarrowLdOpt", "=", "Subtarget", "->", "mergeNarrowLoads", "(", ")", "&&", "!", "Subtarget", "->", "requiresStrictAlign", "(", ")", ";", "for", "(", "auto", "&", "MBB", ":", "Fn", ")", "Modified", "|=", "optimizeBlock", "(", "MBB", ",", "enableNarrowLdOpt", ")", ";", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64LoadStoreOptimizer", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2635, "Length": 130, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", "\"InsertNOPsLoadStore: Erratum Fix LBR37: insert NOPs between \"", "\"single-precision loads and the store, so the number of \"", "\"instructions between is 4\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["Sparc", "\"InsertNOPsLoadStore: Erratum Fix LBR37: insert NOPs between \"", "\"single-precision loads and the store, so the number of \"", "\"instructions between is 4\""], "File": "LeonPasses8", "Func": "getPassName", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2636, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "ARM_BRANCH_TARGETS_NAME", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMBranchTargets", "Func": "getPassName", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2637, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "d30v_expand_builtin_saveregs", "(", ")", "{", "int", "offset", "=", "UNITS_PER_WORD", "*", "(", "GPR_ARG_LAST", "+", "1", "-", "GPR_ARG_FIRST", ")", ";", "if", "(", "TARGET_DEBUG_ARG", ")", "fprintf", "(", "stderr", ",", "\"expand_builtin_saveregs: offset from ap = %d\\n\"", ",", "offset", ")", ";", "return", "gen_rtx", "(", "PLUS", ",", "Pmode", ",", "virtual_incoming_args_rtx", ",", "GEN_INT", "(", "-", "offset", ")", ")", ";", "}", ""], "natrual_language": ["If", "defined", ",", "is", "a", "C", "expression", "that", "produces", "the", "machine-specific", "code", "for", "a", "call", "to", "`", "__builtin_saveregs", "'", ".", "This", "code", "will", "be", "moved", "to", "the", "very", "beginning", "of", "the", "function", ",", "before", "any", "parameter", "access", "are", "made", ".", "The", "return", "value", "of", "this", "function", "should", "be", "an", "RTX", "that", "contains", "the", "value", "to", "use", "as", "the", "return", "of", "`", "__builtin_saveregs", "'", ".", "If", "this", "macro", "is", "not", "defined", ",", "the", "compiler", "will", "output", "an", "ordinary", "call", "to", "the", "library", "function", "`", "__builtin_saveregs", "'", "."], "TS_V_token": ["d30v", "1", "\"expand_builtin_saveregs: offset from ap = %d\\n\""], "File": "d30v", "Func": "d30v_expand_builtin_saveregs", "Target": "d30v", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2638, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_canonicalize_comparison", "(", "int", "*", "code", ",", "rtx", "*", "op0", ",", "rtx", "*", "op1", ",", "bool", "op0_preserve_value", ")", "{", "if", "(", "!", "op0_preserve_value", "&&", "GET_CODE", "(", "*", "op0", ")", "==", "FLOAT", "&&", "MEM_P", "(", "XEXP", "(", "*", "op0", ",", "0", ")", ")", "&&", "REG_P", "(", "*", "op1", ")", ")", "{", "enum", "rtx_code", "scode", "=", "swap_condition", "(", "(", "enum", "rtx_code", ")", "*", "code", ")", ";", "if", "(", "ix86_fp_compare_code_to_integer", "(", "scode", ")", "!=", "UNKNOWN", ")", "{", "std", "::", "swap", "(", "*", "op0", ",", "*", "op1", ")", ";", "*", "code", "=", "(", "int", ")", "scode", ";", "}", "}", "}", ""], "natrual_language": ["Canonicalize", "a", "comparison", "from", "one", "we", "do", "n't", "have", "to", "one", "we", "do", "have", "."], "TS_V_token": ["i386", "0"], "File": "i386", "Func": "ix86_canonicalize_comparison", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2639, "Length": 97, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "insn_dependent_p_1", "(", "rtx", "x", ",", "rtx", "pat", "ATTRIBUTE_UNUSED", ",", "void", "*", "data", ")", "{", "rtx", "*", "pinsn", "=", "(", "rtx", "*", ")", "data", ";", "if", "(", "*", "pinsn", "&&", "reg_mentioned_p", "(", "x", ",", "*", "pinsn", ")", ")", "*", "pinsn", "=", "NULL_RTX", ";", "}", ""], "natrual_language": ["A", "helper", "routine", "for", "insn_dependent_p", "called", "through", "note_stores", "."], "TS_V_token": ["mt"], "File": "mt", "Func": "insn_dependent_p_1", "Target": "mt", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2640, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "push", "(", "int", "rn", ")", "{", "rtx", "x", ";", "if", "(", "rn", "==", "FPUL_REG", ")", "x", "=", "gen_push_fpul", "(", ")", ";", "else", "if", "(", "rn", "==", "FPSCR_REG", ")", "x", "=", "gen_push_fpscr", "(", ")", ";", "else", "if", "(", "TARGET_FPU_DOUBLE", "&&", "TARGET_FMOVD", "&&", "!", "TARGET_FPU_SINGLE", "&&", "FP_OR_XD_REGISTER_P", "(", "rn", ")", ")", "{", "if", "(", "FP_REGISTER_P", "(", "rn", ")", "&&", "(", "rn", "-", "FIRST_FP_REG", ")", "&", "1", ")", "return", "NULL_RTX", ";", "x", "=", "gen_push_4", "(", "gen_rtx_REG", "(", "DFmode", ",", "rn", ")", ")", ";", "}", "else", "if", "(", "TARGET_SH2E", "&&", "FP_REGISTER_P", "(", "rn", ")", ")", "x", "=", "gen_push_e", "(", "gen_rtx_REG", "(", "SFmode", ",", "rn", ")", ")", ";", "else", "x", "=", "gen_push", "(", "gen_rtx_REG", "(", "SImode", ",", "rn", ")", ")", ";", "x", "=", "emit_frame_insn", "(", "x", ")", ";", "add_reg_note", "(", "x", ",", "REG_INC", ",", "gen_rtx_REG", "(", "SImode", ",", "STACK_POINTER_REGNUM", ")", ")", ";", "return", "x", ";", "}", ""], "natrual_language": ["Output", "RTL", "to", "push", "register", "RN", "onto", "the", "stack", "."], "TS_V_token": ["sh", "1"], "File": "sh", "Func": "push", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2641, "Length": 143, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "loongarch_use_ins_ext_p", "(", "rtx", "op", ",", "HOST_WIDE_INT", "width", ",", "HOST_WIDE_INT", "bitpos", ")", "{", "if", "(", "!", "register_operand", "(", "op", ",", "VOIDmode", ")", "||", "GET_MODE_BITSIZE", "(", "GET_MODE", "(", "op", ")", ")", ">", "BITS_PER_WORD", ")", "return", "false", ";", "if", "(", "!", "IN_RANGE", "(", "width", ",", "1", ",", "GET_MODE_BITSIZE", "(", "GET_MODE", "(", "op", ")", ")", "-", "1", ")", ")", "return", "false", ";", "if", "(", "bitpos", "<", "0", "||", "bitpos", "+", "width", ">", "GET_MODE_BITSIZE", "(", "GET_MODE", "(", "op", ")", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "(", "zero_extract", "OP", "WIDTH", "BITPOS", ")", "can", "be", "used", "as", "the", "source", "of", "an", "``", "ext", "''", "instruction", "or", "the", "destination", "of", "an", "``", "ins", "''", "instruction", ".", "OP", "must", "be", "a", "register", "operand", "and", "the", "following", "conditions", "must", "hold", ":", "0", "<", "=", "BITPOS", "<", "GET_MODE_BITSIZE", "(", "GET_MODE", "(", "op", ")", ")", "0", "<", "WIDTH", "<", "=", "GET_MODE_BITSIZE", "(", "GET_MODE", "(", "op", ")", ")", "0", "<", "BITPOS", "+", "WIDTH", "<", "=", "GET_MODE_BITSIZE", "(", "GET_MODE", "(", "op", ")", ")", "Also", "reject", "lengths", "equal", "to", "a", "word", "as", "they", "are", "better", "handled", "by", "the", "move", "patterns", "."], "TS_V_token": ["loongarch", "1", "1", "0"], "File": "loongarch", "Func": "loongarch_use_ins_ext_p", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2642, "Length": 84, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTTIImpl", "::", "enableAggressiveInterleaving", "(", "bool", "LoopHasReductions", ")", "{", "if", "(", "ST", "->", "getDarwinDirective", "(", ")", "==", "PPC", "::", "DIR_A2", ")", "return", "true", ";", "return", "LoopHasReductions", ";", "}", ""], "natrual_language": ["Do", "n't", "restrict", "interleaved", "unrolling", "to", "small", "loops", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::DIR_A2"], "File": "PPCTargetTransformInfo", "Func": "enableAggressiveInterleaving", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2643, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsPassConfig", "::", "addLegalizeMachineIR", "(", ")", "{", "addPass", "(", "new", "Legalizer", "(", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["This", "method", "should", "install", "a", "legalize", "pass", ",", "which", "converts", "the", "instruction", "sequence", "into", "one", "that", "can", "be", "selected", "by", "the", "target", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsTargetMachine (2)1", "Func": "addLegalizeMachineIR", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2644, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "i386_pe_unique_section", "(", "tree", "decl", ",", "int", "reloc", ")", "{", "int", "len", ";", "const", "char", "*", "name", ",", "*", "prefix", ";", "char", "*", "string", ";", "name", "=", "IDENTIFIER_POINTER", "(", "DECL_ASSEMBLER_NAME", "(", "decl", ")", ")", ";", "name", "=", "i386_pe_strip_name_encoding_full", "(", "name", ")", ";", "if", "(", "TREE_CODE", "(", "decl", ")", "==", "FUNCTION_DECL", ")", "prefix", "=", "\".text$\"", ";", "else", "if", "(", "decl_readonly_section", "(", "decl", ",", "reloc", ")", ")", "prefix", "=", "\".rdata$\"", ";", "else", "prefix", "=", "\".data$\"", ";", "len", "=", "strlen", "(", "name", ")", "+", "strlen", "(", "prefix", ")", ";", "string", "=", "alloca", "(", "len", "+", "1", ")", ";", "sprintf", "(", "string", ",", "\"%s%s\"", ",", "prefix", ",", "name", ")", ";", "DECL_SECTION_NAME", "(", "decl", ")", "=", "build_string", "(", "len", ",", "string", ")", ";", "}", ""], "natrual_language": ["Cover", "function", "for", "UNIQUE_SECTION", "."], "TS_V_token": ["i386", "\".text$\"", "\".rdata$\"", "\".data$\"", "1", "\"%s%s\""], "File": "winnt3", "Func": "i386_pe_unique_section", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2645, "Length": 119, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "mips_expand_builtin", "(", "tree", "exp", ",", "rtx", "target", ",", "rtx", "subtarget", "ATTRIBUTE_UNUSED", ",", "machine_mode", "mode", ",", "int", "ignore", ")", "{", "tree", "fndecl", ";", "unsigned", "int", "fcode", ",", "avail", ";", "const", "struct", "mips_builtin_description", "*", "d", ";", "fndecl", "=", "TREE_OPERAND", "(", "CALL_EXPR_FN", "(", "exp", ")", ",", "0", ")", ";", "fcode", "=", "DECL_FUNCTION_CODE", "(", "fndecl", ")", ";", "gcc_assert", "(", "fcode", "<", "ARRAY_SIZE", "(", "mips_builtins", ")", ")", ";", "d", "=", "&", "mips_builtins", "[", "fcode", "]", ";", "avail", "=", "d", "->", "avail", "(", ")", ";", "gcc_assert", "(", "avail", "!=", "0", ")", ";", "if", "(", "TARGET_MIPS16", "&&", "!", "(", "avail", "&", "BUILTIN_AVAIL_MIPS16", ")", ")", "{", "error", "(", "\"built-in function %qE not supported for MIPS16\"", ",", "DECL_NAME", "(", "fndecl", ")", ")", ";", "return", "ignore", "?", "const0_rtx", ":", "CONST0_RTX", "(", "mode", ")", ";", "}", "switch", "(", "d", "->", "builtin_type", ")", "{", "case", "MIPS_BUILTIN_DIRECT", ":", "return", "mips_expand_builtin_direct", "(", "d", "->", "icode", ",", "target", ",", "exp", ",", "true", ")", ";", "case", "MIPS_BUILTIN_DIRECT_NO_TARGET", ":", "return", "mips_expand_builtin_direct", "(", "d", "->", "icode", ",", "target", ",", "exp", ",", "false", ")", ";", "case", "MIPS_BUILTIN_MOVT", ":", "case", "MIPS_BUILTIN_MOVF", ":", "return", "mips_expand_builtin_movtf", "(", "d", "->", "builtin_type", ",", "d", "->", "icode", ",", "d", "->", "cond", ",", "target", ",", "exp", ")", ";", "case", "MIPS_BUILTIN_CMP_ANY", ":", "case", "MIPS_BUILTIN_CMP_ALL", ":", "case", "MIPS_BUILTIN_CMP_UPPER", ":", "case", "MIPS_BUILTIN_CMP_LOWER", ":", "case", "MIPS_BUILTIN_CMP_SINGLE", ":", "return", "mips_expand_builtin_compare", "(", "d", "->", "builtin_type", ",", "d", "->", "icode", ",", "d", "->", "cond", ",", "target", ",", "exp", ")", ";", "case", "MIPS_BUILTIN_MSA_TEST_BRANCH", ":", "return", "mips_expand_builtin_msa_test_branch", "(", "d", "->", "icode", ",", "exp", ")", ";", "case", "MIPS_BUILTIN_BPOSGE32", ":", "return", "mips_expand_builtin_bposge", "(", "d", "->", "builtin_type", ",", "target", ")", ";", "}", "gcc_unreachable", "(", ")", ";", "}", ""], "natrual_language": ["Expand", "builtin", "functions", ".", "This", "is", "called", "from", "TARGET_EXPAND_BUILTIN", "."], "TS_V_token": ["mips", "0", "0", "\"built-in function %qE not supported for MIPS16\""], "File": "mips6", "Func": "mips_expand_builtin", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2646, "Length": 255, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCRegisterInfo", "::", "lowerCRSpilling", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "unsigned", "FrameIndex", ",", "int", "SPAdj", ",", "RegScavenger", "*", "RS", ")", "const", "{", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "DebugLoc", "dl", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "(", "void", ")", "SPAdj", ";", "(", "void", ")", "RS", ";", "bool", "LP64", "=", "Subtarget", ".", "isPPC64", "(", ")", ";", "unsigned", "Reg", "=", "LP64", "?", "PPC", "::", "X0", ":", "PPC", "::", "R0", ";", "unsigned", "SrcReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "BuildMI", "(", "MBB", ",", "II", ",", "dl", ",", "TII", ".", "get", "(", "LP64", "?", "PPC", "::", "MFCR8pseud", ":", "PPC", "::", "MFCRpseud", ")", ",", "Reg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "MI", ".", "getOperand", "(", "0", ")", ".", "isKill", "(", ")", ")", ")", ";", "if", "(", "SrcReg", "!=", "PPC", "::", "CR0", ")", "BuildMI", "(", "MBB", ",", "II", ",", "dl", ",", "TII", ".", "get", "(", "LP64", "?", "PPC", "::", "RLWINM8", ":", "PPC", "::", "RLWINM", ")", ",", "Reg", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Kill", ")", ".", "addImm", "(", "getPPCRegisterNumbering", "(", "SrcReg", ")", "*", "4", ")", ".", "addImm", "(", "0", ")", ".", "addImm", "(", "31", ")", ";", "addFrameReference", "(", "BuildMI", "(", "MBB", ",", "II", ",", "dl", ",", "TII", ".", "get", "(", "LP64", "?", "PPC", "::", "STW8", ":", "PPC", "::", "STW", ")", ")", ".", "addReg", "(", "Reg", ",", "getKillRegState", "(", "MI", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ")", ")", ",", "FrameIndex", ")", ";", "MBB", ".", "erase", "(", "II", ")", ";", "}", ""], "natrual_language": ["lowerCRSpilling", "-", "Generate", "the", "code", "for", "spilling", "a", "CR", "register", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC::X0", "PPC::R0", "0", "PPC::MFCR8pseud", "PPC::MFCRpseud", "0", "PPC::CR0", "PPC::RLWINM8", "PPC::RLWINM", "PPC", "4", "0", "31", "PPC::STW8", "PPC::STW", "1"], "File": "PPCRegisterInfo92", "Func": "lowerCRSpilling", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2647, "Length": 259, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "char", "*", "rs6000_mangle_type", "(", "const_tree", "type", ")", "{", "type", "=", "TYPE_MAIN_VARIANT", "(", "type", ")", ";", "if", "(", "TREE_CODE", "(", "type", ")", "!=", "VOID_TYPE", "&&", "TREE_CODE", "(", "type", ")", "!=", "BOOLEAN_TYPE", "&&", "TREE_CODE", "(", "type", ")", "!=", "INTEGER_TYPE", "&&", "TREE_CODE", "(", "type", ")", "!=", "REAL_TYPE", ")", "return", "NULL", ";", "if", "(", "type", "==", "bool_char_type_node", ")", "return", "\"U6__boolc\"", ";", "if", "(", "type", "==", "bool_short_type_node", ")", "return", "\"U6__bools\"", ";", "if", "(", "type", "==", "pixel_type_node", ")", "return", "\"u7__pixel\"", ";", "if", "(", "type", "==", "bool_int_type_node", ")", "return", "\"U6__booli\"", ";", "if", "(", "type", "==", "bool_long_type_node", ")", "return", "\"U6__booll\"", ";", "if", "(", "TYPE_MAIN_VARIANT", "(", "type", ")", "==", "long_double_type_node", "&&", "TARGET_ELF", "&&", "TARGET_LONG_DOUBLE_128", "&&", "!", "TARGET_IEEEQUAD", ")", "return", "\"g\"", ";", "return", "NULL", ";", "}", ""], "natrual_language": ["AltiVec", "defines", "five", "built-in", "scalar", "types", "that", "serve", "as", "vector", "elements", ";", "we", "must", "teach", "the", "compiler", "how", "to", "mangle", "them", ".", "The", "128-bit", "floating", "point", "mangling", "is", "target-specific", "as", "well", ".", "MMA", "defines", "two", "built-in", "types", "to", "be", "used", "as", "opaque", "vector", "types", "."], "TS_V_token": ["rs6000", "\"U6__boolc\"", "\"U6__bools\"", "\"u7__pixel\"", "\"U6__booli\"", "\"U6__booll\"", "\"g\""], "File": "rs60004", "Func": "rs6000_mangle_type", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2648, "Length": 118, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aapcs_vfp_allocate", "(", "CUMULATIVE_ARGS", "*", "pcum", ",", "machine_mode", "mode", ",", "const_tree", "type", "ATTRIBUTE_UNUSED", ")", "{", "int", "rmode_size", "=", "MAX", "(", "GET_MODE_SIZE", "(", "pcum", "->", "aapcs_vfp_rmode", ")", ",", "GET_MODE_SIZE", "(", "SFmode", ")", ")", ";", "int", "shift", "=", "rmode_size", "/", "GET_MODE_SIZE", "(", "SFmode", ")", ";", "unsigned", "mask", "=", "(", "1", "<<", "(", "shift", "*", "pcum", "->", "aapcs_vfp_rcount", ")", ")", "-", "1", ";", "int", "regno", ";", "for", "(", "regno", "=", "0", ";", "regno", "<", "NUM_VFP_ARG_REGS", ";", "regno", "+=", "shift", ")", "if", "(", "(", "(", "pcum", "->", "aapcs_vfp_regs_free", ">>", "regno", ")", "&", "mask", ")", "==", "mask", ")", "{", "pcum", "->", "aapcs_vfp_reg_alloc", "=", "mask", "<<", "regno", ";", "if", "(", "mode", "==", "BLKmode", "||", "(", "mode", "==", "TImode", "&&", "!", "TARGET_NEON", ")", "||", "!", "arm_hard_regno_mode_ok", "(", "FIRST_VFP_REGNUM", "+", "regno", ",", "mode", ")", ")", "{", "int", "i", ";", "int", "rcount", "=", "pcum", "->", "aapcs_vfp_rcount", ";", "int", "rshift", "=", "shift", ";", "machine_mode", "rmode", "=", "pcum", "->", "aapcs_vfp_rmode", ";", "rtx", "par", ";", "if", "(", "!", "TARGET_NEON", ")", "{", "if", "(", "rmode", "==", "V2SImode", ")", "rmode", "=", "DImode", ";", "else", "if", "(", "rmode", "==", "V4SImode", ")", "{", "rmode", "=", "DImode", ";", "rcount", "*=", "2", ";", "rshift", "/=", "2", ";", "}", "}", "par", "=", "gen_rtx_PARALLEL", "(", "mode", ",", "rtvec_alloc", "(", "rcount", ")", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "rcount", ";", "i", "++", ")", "{", "rtx", "tmp", "=", "gen_rtx_REG", "(", "rmode", ",", "FIRST_VFP_REGNUM", "+", "regno", "+", "i", "*", "rshift", ")", ";", "tmp", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "tmp", ",", "GEN_INT", "(", "i", "*", "GET_MODE_SIZE", "(", "rmode", ")", ")", ")", ";", "XVECEXP", "(", "par", ",", "0", ",", "i", ")", "=", "tmp", ";", "}", "pcum", "->", "aapcs_reg", "=", "par", ";", "}", "else", "pcum", "->", "aapcs_reg", "=", "gen_rtx_REG", "(", "mode", ",", "FIRST_VFP_REGNUM", "+", "regno", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Implement", "the", "allocate", "field", "in", "aapcs_cp_arg_layout", ".", "See", "the", "comment", "there", "for", "the", "behaviour", "of", "this", "function", "."], "TS_V_token": ["arm", "1", "1", "0", "2", "2", "0", "0"], "File": "arm6", "Func": "aapcs_vfp_allocate", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2649, "Length": 294, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "Cpu0TargetLowering", "::", "LowerFormalArguments", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "DebugLoc", "dl", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "Cpu0FunctionInfo", "*", "Cpu0FI", "=", "MF", ".", "getInfo", "<", "Cpu0FunctionInfo", ">", "(", ")", ";", "Cpu0FI", "->", "setVarArgsFrameIndex", "(", "0", ")", ";", "std", "::", "vector", "<", "SDValue", ">", "OutChains", ";", "SmallVector", "<", "CCValAssign", ",", "16", ">", "ArgLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "getTargetMachine", "(", ")", ",", "ArgLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeFormalArguments", "(", "Ins", ",", "CC_Cpu0", ")", ";", "Function", "::", "const_arg_iterator", "FuncArg", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getFunction", "(", ")", "->", "arg_begin", "(", ")", ";", "int", "LastFI", "=", "0", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "ArgLocs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ",", "++", "FuncArg", ")", "{", "CCValAssign", "&", "VA", "=", "ArgLocs", "[", "i", "]", ";", "EVT", "ValVT", "=", "VA", ".", "getValVT", "(", ")", ";", "ISD", "::", "ArgFlagsTy", "Flags", "=", "Ins", "[", "i", "]", ".", "Flags", ";", "bool", "IsRegLoc", "=", "VA", ".", "isRegLoc", "(", ")", ";", "if", "(", "Flags", ".", "isByVal", "(", ")", ")", "{", "assert", "(", "Flags", ".", "getByValSize", "(", ")", "&&", "\"ByVal args of size 0 should have been ignored by front-end.\"", ")", ";", "continue", ";", "}", "assert", "(", "VA", ".", "isMemLoc", "(", ")", ")", ";", "LastFI", "=", "MFI", "->", "CreateFixedObject", "(", "ValVT", ".", "getSizeInBits", "(", ")", "/", "8", ",", "VA", ".", "getLocMemOffset", "(", ")", ",", "true", ")", ";", "SDValue", "FIN", "=", "DAG", ".", "getFrameIndex", "(", "LastFI", ",", "getPointerTy", "(", ")", ")", ";", "InVals", ".", "push_back", "(", "DAG", ".", "getLoad", "(", "ValVT", ",", "dl", ",", "Chain", ",", "FIN", ",", "MachinePointerInfo", "::", "getFixedStack", "(", "LastFI", ")", ",", "false", ",", "false", ",", "false", ",", "0", ")", ")", ";", "}", "Cpu0FI", "->", "setLastInArgFI", "(", "LastFI", ")", ";", "if", "(", "!", "OutChains", ".", "empty", "(", ")", ")", "{", "OutChains", ".", "push_back", "(", "Chain", ")", ";", "Chain", "=", "DAG", ".", "getNode", "(", "ISD", "::", "TokenFactor", ",", "dl", ",", "MVT", "::", "Other", ",", "&", "OutChains", "[", "0", "]", ",", "OutChains", ".", "size", "(", ")", ")", ";", "}", "return", "Chain", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "the", "incoming", "(", "formal", ")", "arguments", ",", "described", "by", "the", "Ins", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["Cpu0", "Cpu0", "ISD::InputArg", "Cpu0", "Cpu0", "Cpu0", "Cpu0", "0", "16", "Cpu0", "0", "0", "ISD::ArgFlagsTy", "\"ByVal args of size 0 should have been ignored by front-end.\"", "8", "0", "Cpu0", "ISD::TokenFactor", "MVT::Other", "0"], "File": "Cpu0ISelLowering2", "Func": "LowerFormalArguments", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2650, "Length": 384, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCExpr", "*", "PPCAIXAsmPrinter", "::", "lowerConstant", "(", "const", "Constant", "*", "CV", ")", "{", "if", "(", "const", "Function", "*", "F", "=", "dyn_cast", "<", "Function", ">", "(", "CV", ")", ")", "{", "MCSectionXCOFF", "*", "Csect", "=", "cast", "<", "MCSectionXCOFF", ">", "(", "F", "->", "isDeclaration", "(", ")", "?", "getObjFileLowering", "(", ")", ".", "getSectionForExternalReference", "(", "F", ",", "TM", ")", ":", "getObjFileLowering", "(", ")", ".", "getSectionForFunctionDescriptor", "(", "F", ",", "TM", ")", ")", ";", "return", "MCSymbolRefExpr", "::", "create", "(", "Csect", "->", "getQualNameSymbol", "(", ")", ",", "OutContext", ")", ";", "}", "return", "PPCAsmPrinter", "::", "lowerConstant", "(", "CV", ")", ";", "}", ""], "natrual_language": ["Lower", "the", "specified", "LLVM", "Constant", "to", "an", "MCExpr", "."], "TS_V_token": ["PowerPC", "PPC", "PPC"], "File": "PPCAsmPrinter14", "Func": "lowerConstant", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2651, "Length": 91, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "sh_loop_align", "(", "rtx", "label", ")", "{", "rtx", "next", "=", "label", ";", "do", "next", "=", "next_nonnote_insn", "(", "next", ")", ";", "while", "(", "next", "&&", "GET_CODE", "(", "next", ")", "==", "CODE_LABEL", ")", ";", "if", "(", "!", "next", "||", "!", "INSN_P", "(", "next", ")", "||", "GET_CODE", "(", "PATTERN", "(", "next", ")", ")", "==", "ADDR_DIFF_VEC", "||", "recog_memoized", "(", "next", ")", "==", "CODE_FOR_consttable_2", ")", "return", "0", ";", "return", "align_loops_log", ";", "}", ""], "natrual_language": ["If", "we", "are", "inside", "a", "phony", "loop", ",", "almost", "any", "kind", "of", "label", "can", "turn", "up", "as", "the", "first", "one", "in", "the", "loop", ".", "Aligning", "a", "braf", "label", "causes", "incorrect", "switch", "destination", "addresses", ";", "we", "can", "detect", "braf", "labels", "because", "they", "are", "followed", "by", "a", "BARRIER", ".", "Applying", "loop", "alignment", "to", "small", "constant", "or", "switch", "tables", "is", "a", "waste", "of", "space", ",", "so", "we", "suppress", "this", "too", "."], "TS_V_token": ["sh", "0"], "File": "sh3", "Func": "sh_loop_align", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2652, "Length": 67, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isFPImm", "(", ")", "const", "{", "return", "Kind", "==", "k_FPImmediate", ";", "}", ""], "natrual_language": ["isFPImm", "-", "Tests", "if", "this", "is", "a", "MO_FPImmediate", "operand", "."], "TS_V_token": ["ARM"], "File": "ARMAsmParser111", "Func": "isFPImm", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2653, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "mips_expand_scc", "(", "rtx", "operands", "[", "]", ")", "{", "rtx", "target", "=", "operands", "[", "0", "]", ";", "enum", "rtx_code", "code", "=", "GET_CODE", "(", "operands", "[", "1", "]", ")", ";", "rtx", "op0", "=", "operands", "[", "2", "]", ";", "rtx", "op1", "=", "operands", "[", "3", "]", ";", "gcc_assert", "(", "GET_MODE_CLASS", "(", "GET_MODE", "(", "op0", ")", ")", "==", "MODE_INT", ")", ";", "if", "(", "code", "==", "EQ", "||", "code", "==", "NE", ")", "{", "if", "(", "ISA_HAS_SEQ_SNE", "&&", "reg_imm10_operand", "(", "op1", ",", "GET_MODE", "(", "op1", ")", ")", ")", "mips_emit_binary", "(", "code", ",", "target", ",", "op0", ",", "op1", ")", ";", "else", "{", "rtx", "zie", "=", "mips_zero_if_equal", "(", "op0", ",", "op1", ")", ";", "mips_emit_binary", "(", "code", ",", "target", ",", "zie", ",", "const0_rtx", ")", ";", "}", "}", "else", "mips_emit_int_order_test", "(", "code", ",", "0", ",", "target", ",", "op0", ",", "op1", ")", ";", "}", ""], "natrual_language": ["Try", "performing", "the", "comparison", "in", "OPERANDS", "[", "1", "]", ",", "whose", "arms", "are", "OPERANDS", "[", "2", "]", "and", "OPERAND", "[", "3", "]", ".", "Store", "the", "result", "in", "OPERANDS", "[", "0", "]", ".", "On", "64-bit", "targets", ",", "the", "mode", "of", "the", "comparison", "and", "target", "will", "always", "be", "SImode", ",", "thus", "possibly", "narrower", "than", "that", "of", "the", "comparison", "'s", "operands", "."], "TS_V_token": ["mips", "0", "1", "2", "3", "0"], "File": "mips", "Func": "mips_expand_scc", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2654, "Length": 134, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "struct", "loongarch_abi", "isa_default_abi", "(", "const", "struct", "loongarch_isa", "*", "isa", ")", "{", "struct", "loongarch_abi", "abi", ";", "switch", "(", "isa", "->", "fpu", ")", "{", "case", "ISA_EXT_FPU64", ":", "if", "(", "isa", "->", "base", "==", "ISA_BASE_LA64V100", ")", "abi", ".", "base", "=", "ABI_BASE_LP64D", ";", "break", ";", "case", "ISA_EXT_FPU32", ":", "if", "(", "isa", "->", "base", "==", "ISA_BASE_LA64V100", ")", "abi", ".", "base", "=", "ABI_BASE_LP64F", ";", "break", ";", "case", "ISA_EXT_NOFPU", ":", "if", "(", "isa", "->", "base", "==", "ISA_BASE_LA64V100", ")", "abi", ".", "base", "=", "ABI_BASE_LP64S", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "abi", ".", "ext", "=", "ABI_EXT_BASE", ";", "return", "abi", ";", "}", ""], "natrual_language": ["Returns", "the", "default", "ABI", "for", "the", "given", "instruction", "set", "."], "TS_V_token": ["loongarch"], "File": "loongarch-opts", "Func": "isa_default_abi", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2655, "Length": 98, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "LanaiInstrInfo", "::", "areMemAccessesTriviallyDisjoint", "(", "MachineInstr", "&", "MIa", ",", "MachineInstr", "&", "MIb", ",", "AliasAnalysis", "*", "AA", ")", "const", "{", "assert", "(", "MIa", ".", "mayLoadOrStore", "(", ")", "&&", "\"MIa must be a load or store.\"", ")", ";", "assert", "(", "MIb", ".", "mayLoadOrStore", "(", ")", "&&", "\"MIb must be a load or store.\"", ")", ";", "if", "(", "MIa", ".", "hasUnmodeledSideEffects", "(", ")", "||", "MIb", ".", "hasUnmodeledSideEffects", "(", ")", "||", "MIa", ".", "hasOrderedMemoryRef", "(", ")", "||", "MIb", ".", "hasOrderedMemoryRef", "(", ")", ")", "return", "false", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "&", "getRegisterInfo", "(", ")", ";", "unsigned", "BaseRegA", "=", "0", ",", "BaseRegB", "=", "0", ";", "int64_t", "OffsetA", "=", "0", ",", "OffsetB", "=", "0", ";", "unsigned", "int", "WidthA", "=", "0", ",", "WidthB", "=", "0", ";", "if", "(", "getMemOpBaseRegImmOfsWidth", "(", "MIa", ",", "BaseRegA", ",", "OffsetA", ",", "WidthA", ",", "TRI", ")", "&&", "getMemOpBaseRegImmOfsWidth", "(", "MIb", ",", "BaseRegB", ",", "OffsetB", ",", "WidthB", ",", "TRI", ")", ")", "{", "if", "(", "BaseRegA", "==", "BaseRegB", ")", "{", "int", "LowOffset", "=", "std", "::", "min", "(", "OffsetA", ",", "OffsetB", ")", ";", "int", "HighOffset", "=", "std", "::", "max", "(", "OffsetA", ",", "OffsetB", ")", ";", "int", "LowWidth", "=", "(", "LowOffset", "==", "OffsetA", ")", "?", "WidthA", ":", "WidthB", ";", "if", "(", "LowOffset", "+", "LowWidth", "<=", "HighOffset", ")", "return", "true", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["Sometimes", ",", "it", "is", "possible", "for", "the", "target", "to", "tell", ",", "even", "without", "aliasing", "information", ",", "that", "two", "MIs", "access", "different", "memory", "addresses", "."], "TS_V_token": ["Lanai", "Lanai", "\"MIa must be a load or store.\"", "\"MIb must be a load or store.\"", "0", "0", "0", "0", "0", "0"], "File": "LanaiInstrInfo", "Func": "areMemAccessesTriviallyDisjoint", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2656, "Length": 198, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMAsmPrinter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "MCP", "=", "MF", ".", "getConstantPool", "(", ")", ";", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "SetupMachineFunction", "(", "MF", ")", ";", "const", "Function", "&", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "const", "TargetMachine", "&", "TM", "=", "MF", ".", "getTarget", "(", ")", ";", "for", "(", "auto", "*", "GV", ":", "AFI", "->", "getGlobalsPromotedToConstantPool", "(", ")", ")", "PromotedGlobals", ".", "insert", "(", "GV", ")", ";", "unsigned", "OptimizationGoal", ";", "if", "(", "F", ".", "hasFnAttribute", "(", "Attribute", "::", "OptimizeNone", ")", ")", "OptimizationGoal", "=", "6", ";", "else", "if", "(", "F", ".", "optForMinSize", "(", ")", ")", "OptimizationGoal", "=", "4", ";", "else", "if", "(", "F", ".", "optForSize", "(", ")", ")", "OptimizationGoal", "=", "3", ";", "else", "if", "(", "TM", ".", "getOptLevel", "(", ")", "==", "CodeGenOpt", "::", "Aggressive", ")", "OptimizationGoal", "=", "2", ";", "else", "if", "(", "TM", ".", "getOptLevel", "(", ")", ">", "CodeGenOpt", "::", "None", ")", "OptimizationGoal", "=", "1", ";", "else", "OptimizationGoal", "=", "5", ";", "if", "(", "OptimizationGoals", "==", "-", "1", ")", "OptimizationGoals", "=", "OptimizationGoal", ";", "else", "if", "(", "OptimizationGoals", "!=", "(", "int", ")", "OptimizationGoal", ")", "OptimizationGoals", "=", "0", ";", "if", "(", "Subtarget", "->", "isTargetCOFF", "(", ")", ")", "{", "bool", "Internal", "=", "F", ".", "hasInternalLinkage", "(", ")", ";", "COFF", "::", "SymbolStorageClass", "Scl", "=", "Internal", "?", "COFF", "::", "IMAGE_SYM_CLASS_STATIC", ":", "COFF", "::", "IMAGE_SYM_CLASS_EXTERNAL", ";", "int", "Type", "=", "COFF", "::", "IMAGE_SYM_DTYPE_FUNCTION", "<<", "COFF", "::", "SCT_COMPLEX_TYPE_SHIFT", ";", "OutStreamer", "->", "BeginCOFFSymbolDef", "(", "CurrentFnSym", ")", ";", "OutStreamer", "->", "EmitCOFFSymbolStorageClass", "(", "Scl", ")", ";", "OutStreamer", "->", "EmitCOFFSymbolType", "(", "Type", ")", ";", "OutStreamer", "->", "EndCOFFSymbolDef", "(", ")", ";", "}", "EmitFunctionBody", "(", ")", ";", "emitXRayTable", "(", ")", ";", "if", "(", "!", "ThumbIndirectPads", ".", "empty", "(", ")", ")", "{", "OutStreamer", "->", "EmitAssemblerFlag", "(", "MCAF_Code16", ")", ";", "EmitAlignment", "(", "1", ")", ";", "for", "(", "std", "::", "pair", "<", "unsigned", ",", "MCSymbol", "*", ">", "&", "TIP", ":", "ThumbIndirectPads", ")", "{", "OutStreamer", "->", "EmitLabel", "(", "TIP", ".", "second", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "MCInstBuilder", "(", "ARM", "::", "tBX", ")", ".", "addReg", "(", "TIP", ".", "first", ")", ".", "addImm", "(", "ARMCC", "::", "AL", ")", ".", "addReg", "(", "0", ")", ")", ";", "}", "ThumbIndirectPads", ".", "clear", "(", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "6", "4", "3", "2", "1", "5", "1", "0", "1", "ARM::tBX", "ARMCC::AL", "0"], "File": "ARMAsmPrinter103", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2657, "Length": 367, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "getLinkageSize", "(", "bool", "isPPC64", ",", "bool", "isDarwinABI", ",", "bool", "isELFv2ABI", ")", "{", "if", "(", "isDarwinABI", "||", "isPPC64", ")", "return", "(", "isELFv2ABI", "?", "4", ":", "6", ")", "*", "(", "isPPC64", "?", "8", ":", "4", ")", ";", "return", "8", ";", "}", ""], "natrual_language": ["getLinkageSize", "-", "Return", "the", "size", "of", "the", "PowerPC", "ABI", "linkage", "area", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "4", "6", "PPC", "8", "4", "8"], "File": "PPCFrameLowering21", "Func": "getLinkageSize", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2658, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "AArch64NamedImmMapper", "::", "toString", "(", "uint32_t", "Value", ",", "bool", "&", "Valid", ")", "const", "{", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "NumPairs", ";", "++", "i", ")", "{", "if", "(", "Pairs", "[", "i", "]", ".", "Value", "==", "Value", ")", "{", "Valid", "=", "true", ";", "return", "Pairs", "[", "i", "]", ".", "Name", ";", "}", "}", "Valid", "=", "false", ";", "return", "StringRef", "(", ")", ";", "}", ""], "natrual_language": ["Convert", "to", "a", "decimal", "representation", "in", "a", "string", "."], "TS_V_token": ["AArch64", "AArch64", "0"], "File": "AArch64BaseInfo", "Func": "toString", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2659, "Length": 65, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "FastISel", "*", "X86TargetLowering", "::", "createFastISel", "(", "FunctionLoweringInfo", "&", "funcInfo", ")", "const", "{", "return", "X86", "::", "createFastISel", "(", "funcInfo", ")", ";", "}", ""], "natrual_language": ["This", "method", "returns", "a", "target", "specific", "FastISel", "object", ",", "or", "null", "if", "the", "target", "does", "not", "support", "``", "fast", "''", "ISel", "."], "TS_V_token": ["X86", "X86", "X86::createFastISel"], "File": "X86ISelLowering114", "Func": "createFastISel", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2660, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDNode", "*", "X86DAGToDAGISel", "::", "getGlobalBaseReg", "(", ")", "{", "unsigned", "GlobalBaseReg", "=", "getInstrInfo", "(", ")", "->", "getGlobalBaseReg", "(", "MF", ")", ";", "auto", "&", "DL", "=", "MF", "->", "getDataLayout", "(", ")", ";", "return", "CurDAG", "->", "getRegister", "(", "GlobalBaseReg", ",", "TLI", "->", "getPointerTy", "(", "DL", ")", ")", ".", "getNode", "(", ")", ";", "}", ""], "natrual_language": ["getGlobalBaseReg", "-", "Return", "a", "virtual", "register", "initialized", "with", "the", "the", "global", "base", "register", "value", "."], "TS_V_token": ["X86", "X86"], "File": "X86ISelDAGToDAG (2)", "Func": "getGlobalBaseReg", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2661, "Length": 50, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TTIImpl", "::", "isLegalMaskedLoad", "(", "Type", "*", "DataTy", ")", "{", "if", "(", "isa", "<", "VectorType", ">", "(", "DataTy", ")", "&&", "DataTy", "->", "getVectorNumElements", "(", ")", "==", "1", ")", "return", "false", ";", "Type", "*", "ScalarTy", "=", "DataTy", "->", "getScalarType", "(", ")", ";", "int", "DataWidth", "=", "isa", "<", "PointerType", ">", "(", "ScalarTy", ")", "?", "DL", ".", "getPointerSizeInBits", "(", ")", ":", "ScalarTy", "->", "getPrimitiveSizeInBits", "(", ")", ";", "return", "(", "(", "DataWidth", "==", "32", "||", "DataWidth", "==", "64", ")", "&&", "ST", "->", "hasAVX", "(", ")", ")", "||", "(", "(", "DataWidth", "==", "8", "||", "DataWidth", "==", "16", ")", "&&", "ST", "->", "hasBWI", "(", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "supports", "masked", "load", "."], "TS_V_token": ["X86", "X86", "1", "32", "64", "8", "16"], "File": "X86TargetTransformInfo (2)", "Func": "isLegalMaskedLoad", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2662, "Length": 102, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "std", "::", "unique_ptr", "<", "X86Operand", ">", "CreateMem", "(", "unsigned", "ModeSize", ",", "unsigned", "SegReg", ",", "const", "MCExpr", "*", "Disp", ",", "unsigned", "BaseReg", ",", "unsigned", "IndexReg", ",", "unsigned", "Scale", ",", "SMLoc", "StartLoc", ",", "SMLoc", "EndLoc", ",", "unsigned", "Size", "=", "0", ",", "unsigned", "DefaultBaseReg", "=", "X86", "::", "NoRegister", ",", "StringRef", "SymName", "=", "StringRef", "(", ")", ",", "void", "*", "OpDecl", "=", "nullptr", ",", "unsigned", "FrontendSize", "=", "0", ",", "bool", "UseUpRegs", "=", "false", ",", "bool", "MaybeDirectBranchDest", "=", "true", ")", "{", "assert", "(", "(", "SegReg", "||", "BaseReg", "||", "IndexReg", "||", "DefaultBaseReg", ")", "&&", "\"Invalid memory operand!\"", ")", ";", "assert", "(", "(", "(", "Scale", "==", "1", "||", "Scale", "==", "2", "||", "Scale", "==", "4", "||", "Scale", "==", "8", ")", ")", "&&", "\"Invalid scale!\"", ")", ";", "auto", "Res", "=", "std", "::", "make_unique", "<", "X86Operand", ">", "(", "Memory", ",", "StartLoc", ",", "EndLoc", ")", ";", "Res", "->", "Mem", ".", "SegReg", "=", "SegReg", ";", "Res", "->", "Mem", ".", "Disp", "=", "Disp", ";", "Res", "->", "Mem", ".", "BaseReg", "=", "BaseReg", ";", "Res", "->", "Mem", ".", "DefaultBaseReg", "=", "DefaultBaseReg", ";", "Res", "->", "Mem", ".", "IndexReg", "=", "IndexReg", ";", "Res", "->", "Mem", ".", "Scale", "=", "Scale", ";", "Res", "->", "Mem", ".", "Size", "=", "Size", ";", "Res", "->", "Mem", ".", "ModeSize", "=", "ModeSize", ";", "Res", "->", "Mem", ".", "FrontendSize", "=", "FrontendSize", ";", "Res", "->", "Mem", ".", "MaybeDirectBranchDest", "=", "MaybeDirectBranchDest", ";", "Res", "->", "UseUpRegs", "=", "UseUpRegs", ";", "Res", "->", "SymName", "=", "SymName", ";", "Res", "->", "OpDecl", "=", "OpDecl", ";", "Res", "->", "AddressOf", "=", "false", ";", "return", "Res", ";", "}", ""], "natrual_language": ["Create", "a", "generalized", "memory", "operand", "."], "TS_V_token": ["X86", "X86", "0", "X86::NoRegister", "0", "\"Invalid memory operand!\"", "1", "2", "4", "8", "\"Invalid scale!\"", "X86"], "File": "X86Operand21", "Func": "CreateMem", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2663, "Length": 241, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "rid_int128", "(", "void", ")", "{", "int", "i", ";", "for", "(", "i", "=", "0", ";", "i", "<", "NUM_INT_N_ENTS", ";", "i", "++", ")", "if", "(", "int_n_enabled_p", "[", "i", "]", "&&", "int_n_data", "[", "i", "]", ".", "bitsize", "==", "128", ")", "return", "RID_INT_N_0", "+", "i", ";", "return", "RID_MAX", "+", "1", ";", "}", ""], "natrual_language": ["Helper", "function", "to", "find", "out", "which", "RID_INT_N_", "*", "code", "is", "the", "one", "for", "__int128", ",", "if", "any", ".", "Returns", "RID_MAX+1", "if", "none", "apply", ",", "which", "is", "safe", "(", "for", "our", "purposes", ",", "since", "we", "always", "expect", "to", "have", "__int128", ")", "to", "compare", "against", "."], "TS_V_token": ["rs6000", "0", "128", "1"], "File": "rs6000-c", "Func": "rid_int128", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2664, "Length": 50, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "return_addr_rtx", "(", "int", "count", ",", "rtx", "frameaddr", ")", "{", "rtx", "label", ";", "rtx", "rp", ";", "rtx", "saved_rp", ";", "rtx", "ins", ";", "if", "(", "count", "!=", "0", ")", "return", "NULL_RTX", ";", "rp", "=", "get_hard_reg_initial_val", "(", "Pmode", ",", "2", ")", ";", "if", "(", "TARGET_64BIT", "||", "TARGET_NO_SPACE_REGS", ")", "return", "rp", ";", "saved_rp", "=", "gen_reg_rtx", "(", "Pmode", ")", ";", "emit_move_insn", "(", "saved_rp", ",", "rp", ")", ";", "ins", "=", "copy_to_reg", "(", "gen_rtx_AND", "(", "Pmode", ",", "rp", ",", "MASK_RETURN_ADDR", ")", ")", ";", "label", "=", "gen_label_rtx", "(", ")", ";", "emit_cmp_insn", "(", "gen_rtx_MEM", "(", "SImode", ",", "ins", ")", ",", "GEN_INT", "(", "0x4bc23fd1", ")", ",", "NE", ",", "NULL_RTX", ",", "SImode", ",", "1", ")", ";", "emit_jump_insn", "(", "gen_bne", "(", "label", ")", ")", ";", "emit_cmp_insn", "(", "gen_rtx_MEM", "(", "SImode", ",", "plus_constant", "(", "ins", ",", "4", ")", ")", ",", "GEN_INT", "(", "0x004010a1", ")", ",", "NE", ",", "NULL_RTX", ",", "SImode", ",", "1", ")", ";", "emit_jump_insn", "(", "gen_bne", "(", "label", ")", ")", ";", "emit_cmp_insn", "(", "gen_rtx_MEM", "(", "SImode", ",", "plus_constant", "(", "ins", ",", "8", ")", ")", ",", "GEN_INT", "(", "0x00011820", ")", ",", "NE", ",", "NULL_RTX", ",", "SImode", ",", "1", ")", ";", "emit_jump_insn", "(", "gen_bne", "(", "label", ")", ")", ";", "emit_cmp_insn", "(", "gen_rtx_MEM", "(", "SImode", ",", "plus_constant", "(", "ins", ",", "12", ")", ")", ",", "GEN_INT", "(", "0xe0400002", ")", ",", "NE", ",", "NULL_RTX", ",", "SImode", ",", "1", ")", ";", "emit_jump_insn", "(", "gen_bne", "(", "label", ")", ")", ";", "emit_move_insn", "(", "saved_rp", ",", "gen_rtx_MEM", "(", "Pmode", ",", "memory_address", "(", "Pmode", ",", "plus_constant", "(", "frameaddr", ",", "-", "24", ")", ")", ")", ")", ";", "emit_label", "(", "label", ")", ";", "return", "saved_rp", ";", "}", ""], "natrual_language": ["Fetch", "the", "return", "address", "for", "the", "frame", "COUNT", "steps", "up", "from", "the", "current", "frame", ",", "after", "the", "prologue", ".", "FRAMEADDR", "is", "the", "frame", "pointer", "of", "the", "COUNT", "frame", ".", "We", "want", "to", "ignore", "any", "export", "stub", "remnants", "here", ".", "To", "handle", "this", ",", "we", "examine", "the", "code", "at", "the", "return", "address", ",", "and", "if", "it", "is", "an", "export", "stub", ",", "we", "return", "a", "memory", "rtx", "for", "the", "stub", "return", "address", "stored", "at", "frame-24", ".", "The", "value", "returned", "is", "used", "in", "two", "different", "ways", ":", "1", ".", "To", "find", "a", "function", "'s", "caller", ".", "2", ".", "To", "change", "the", "return", "address", "for", "a", "function", ".", "This", "function", "handles", "most", "instances", "of", "case", "1", ";", "however", ",", "it", "will", "fail", "if", "there", "are", "two", "levels", "of", "stubs", "to", "execute", "on", "the", "return", "path", ".", "The", "only", "way", "I", "believe", "that", "can", "happen", "is", "if", "the", "return", "value", "needs", "a", "parameter", "relocation", ",", "which", "never", "happens", "for", "C", "code", ".", "This", "function", "handles", "most", "instances", "of", "case", "2", ";", "however", ",", "it", "will", "fail", "if", "we", "did", "not", "originally", "have", "stub", "code", "on", "the", "return", "path", "but", "will", "need", "stub", "code", "on", "the", "new", "return", "path", ".", "This", "can", "happen", "if", "the", "caller", "&", "callee", "are", "both", "in", "the", "main", "program", ",", "but", "the", "new", "return", "location", "is", "in", "a", "shared", "library", "."], "TS_V_token": ["pa", "0", "2", "0x4bc23fd1", "1", "4", "0x004010a1", "1", "8", "0x00011820", "1", "12", "0xe0400002", "1", "24"], "File": "pa3", "Func": "return_addr_rtx", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2665, "Length": 254, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "{", "AU", ".", "setPreservesCFG", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["OR1K"], "File": "OR1KInstrInfo", "Func": "getAnalysisUsage", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2666, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_add_new_builtins", "(", "HOST_WIDE_INT", "isa", ")", "{", "if", "(", "(", "isa", "&", "deferred_isa_values", ")", "==", "0", ")", "return", ";", "deferred_isa_values", "&=", "~", "isa", ";", "int", "i", ";", "tree", "saved_current_target_pragma", "=", "current_target_pragma", ";", "current_target_pragma", "=", "NULL_TREE", ";", "for", "(", "i", "=", "0", ";", "i", "<", "(", "int", ")", "IX86_BUILTIN_MAX", ";", "i", "++", ")", "{", "if", "(", "(", "ix86_builtins_isa", "[", "i", "]", ".", "isa", "&", "isa", ")", "!=", "0", "&&", "ix86_builtins_isa", "[", "i", "]", ".", "set_and_not_built_p", ")", "{", "tree", "decl", ",", "type", ";", "ix86_builtins_isa", "[", "i", "]", ".", "set_and_not_built_p", "=", "false", ";", "type", "=", "ix86_get_builtin_func_type", "(", "ix86_builtins_isa", "[", "i", "]", ".", "tcode", ")", ";", "decl", "=", "add_builtin_function_ext_scope", "(", "ix86_builtins_isa", "[", "i", "]", ".", "name", ",", "type", ",", "i", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";", "ix86_builtins", "[", "i", "]", "=", "decl", ";", "if", "(", "ix86_builtins_isa", "[", "i", "]", ".", "const_p", ")", "TREE_READONLY", "(", "decl", ")", "=", "1", ";", "if", "(", "ix86_builtins_isa", "[", "i", "]", ".", "leaf_p", ")", "DECL_ATTRIBUTES", "(", "decl", ")", "=", "build_tree_list", "(", "get_identifier", "(", "\"leaf\"", ")", ",", "NULL_TREE", ")", ";", "if", "(", "ix86_builtins_isa", "[", "i", "]", ".", "nothrow_p", ")", "TREE_NOTHROW", "(", "decl", ")", "=", "1", ";", "}", "}", "current_target_pragma", "=", "saved_current_target_pragma", ";", "}", ""], "natrual_language": ["Add", "any", "new", "builtin", "functions", "for", "a", "given", "ISA", "that", "may", "not", "have", "been", "declared", ".", "This", "saves", "a", "bit", "of", "space", "compared", "to", "adding", "all", "of", "the", "declarations", "to", "the", "tree", ",", "even", "if", "we", "did", "n't", "use", "them", "."], "TS_V_token": ["i386", "0", "0", "0", "1", "\"leaf\"", "1"], "File": "i3864", "Func": "ix86_add_new_builtins", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2667, "Length": 195, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mep_rewrite_mult", "(", "rtx_insn", "*", "insn", ",", "rtx", "pattern", ")", "{", "rtx", "hi_clobber", ";", "hi_clobber", "=", "XVECEXP", "(", "pattern", ",", "0", ",", "XVECLEN", "(", "pattern", ",", "0", ")", "-", "1", ")", ";", "XEXP", "(", "hi_clobber", ",", "0", ")", "=", "gen_rtx_REG", "(", "SImode", ",", "HI_REGNO", ")", ";", "PATTERN", "(", "insn", ")", "=", "pattern", ";", "INSN_CODE", "(", "insn", ")", "=", "-", "1", ";", "}", ""], "natrual_language": ["Replace", "INSN", "'s", "pattern", "with", "PATTERN", ",", "a", "multiplication", "PARALLEL", ".", "Change", "the", "last", "element", "of", "PATTERN", "from", "(", "clobber", "(", "scratch", ":", "SI", ")", ")", "to", "(", "clobber", "(", "reg", ":", "SI", "HI_REGNO", ")", ")", "."], "TS_V_token": ["mep", "0", "0", "1", "0", "1"], "File": "mep", "Func": "mep_rewrite_mult", "Target": "mep", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2668, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCELFStreamer", "&", "SparcTargetELFStreamer", "::", "getStreamer", "(", ")", "{", "return", "static_cast", "<", "MCELFStreamer", "&", ">", "(", "Streamer", ")", ";", "}", ""], "natrual_language": ["Return", "the", "output", "streamer", "for", "the", "assembler", "."], "TS_V_token": ["Sparc", "Sparc"], "File": "SparcTargetStreamer", "Func": "getStreamer", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2669, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86RegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", "RS", ")", "const", "{", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "X86FrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "getIndex", "(", ")", ";", "unsigned", "BasePtr", ";", "unsigned", "Opc", "=", "MI", ".", "getOpcode", "(", ")", ";", "bool", "AfterFPPop", "=", "Opc", "==", "X86", "::", "TAILJMPm64", "||", "Opc", "==", "X86", "::", "TAILJMPm", "||", "Opc", "==", "X86", "::", "TCRETURNmi", "||", "Opc", "==", "X86", "::", "TCRETURNmi64", ";", "if", "(", "hasBasePointer", "(", "MF", ")", ")", "BasePtr", "=", "(", "FrameIndex", "<", "0", "?", "FramePtr", ":", "getBaseRegister", "(", ")", ")", ";", "else", "if", "(", "needsStackRealignment", "(", "MF", ")", ")", "BasePtr", "=", "(", "FrameIndex", "<", "0", "?", "FramePtr", ":", "StackPtr", ")", ";", "else", "if", "(", "AfterFPPop", ")", "BasePtr", "=", "StackPtr", ";", "else", "BasePtr", "=", "(", "TFI", "->", "hasFP", "(", "MF", ")", "?", "FramePtr", ":", "StackPtr", ")", ";", "unsigned", "IgnoredFrameReg", ";", "if", "(", "Opc", "==", "TargetOpcode", "::", "LOCAL_ESCAPE", ")", "{", "MachineOperand", "&", "FI", "=", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ";", "int", "Offset", ";", "Offset", "=", "TFI", "->", "getFrameIndexReference", "(", "MF", ",", "FrameIndex", ",", "IgnoredFrameReg", ")", ";", "FI", ".", "ChangeToImmediate", "(", "Offset", ")", ";", "return", ";", "}", "if", "(", "Opc", "==", "X86", "::", "LEA64_32r", "&&", "X86", "::", "GR32RegClass", ".", "contains", "(", "BasePtr", ")", ")", "BasePtr", "=", "getX86SubSuperRegister", "(", "BasePtr", ",", "64", ")", ";", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "ChangeToRegister", "(", "BasePtr", ",", "false", ")", ";", "int", "FIOffset", ";", "if", "(", "AfterFPPop", ")", "{", "const", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "FIOffset", "=", "MFI", "->", "getObjectOffset", "(", "FrameIndex", ")", "-", "TFI", "->", "getOffsetOfLocalArea", "(", ")", ";", "}", "else", "FIOffset", "=", "TFI", "->", "getFrameIndexReference", "(", "MF", ",", "FrameIndex", ",", "IgnoredFrameReg", ")", ";", "if", "(", "BasePtr", "==", "StackPtr", ")", "FIOffset", "+=", "SPAdj", ";", "if", "(", "Opc", "==", "TargetOpcode", "::", "STACKMAP", "||", "Opc", "==", "TargetOpcode", "::", "PATCHPOINT", ")", "{", "assert", "(", "BasePtr", "==", "FramePtr", "&&", "\"Expected the FP as base register\"", ")", ";", "int64_t", "Offset", "=", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "getImm", "(", ")", "+", "FIOffset", ";", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";", "return", ";", "}", "if", "(", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "3", ")", ".", "isImm", "(", ")", ")", "{", "int", "Imm", "=", "(", "int", ")", "(", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "3", ")", ".", "getImm", "(", ")", ")", ";", "int", "Offset", "=", "FIOffset", "+", "Imm", ";", "assert", "(", "(", "!", "Is64Bit", "||", "isInt", "<", "32", ">", "(", "(", "long", "long", ")", "FIOffset", "+", "Imm", ")", ")", "&&", "\"Requesting 64-bit offset in 32-bit immediate!\"", ")", ";", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "3", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";", "}", "else", "{", "uint64_t", "Offset", "=", "FIOffset", "+", "(", "uint64_t", ")", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "3", ")", ".", "getOffset", "(", ")", ";", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "3", ")", ".", "setOffset", "(", "Offset", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "."], "TS_V_token": ["X86", "X86", "X86", "X86::TAILJMPm64", "X86::TAILJMPm", "X86::TCRETURNmi", "X86::TCRETURNmi64", "0", "0", "X86::LEA64_32r", "X86::GR32RegClass", "X86", "64", "\"Expected the FP as base register\"", "1", "1", "3", "3", "32", "\"Requesting 64-bit offset in 32-bit immediate!\"", "3", "3", "3"], "File": "X86RegisterInfo (2)4", "Func": "eliminateFrameIndex", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2670, "Length": 502, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_emit_load_exclusive", "(", "machine_mode", "mode", ",", "rtx", "rval", ",", "rtx", "mem", ",", "rtx", "model_rtx", ")", "{", "rtx", "(", "*", "gen", ")", "(", "rtx", ",", "rtx", ",", "rtx", ")", ";", "switch", "(", "mode", ")", "{", "case", "QImode", ":", "gen", "=", "gen_aarch64_load_exclusiveqi", ";", "break", ";", "case", "HImode", ":", "gen", "=", "gen_aarch64_load_exclusivehi", ";", "break", ";", "case", "SImode", ":", "gen", "=", "gen_aarch64_load_exclusivesi", ";", "break", ";", "case", "DImode", ":", "gen", "=", "gen_aarch64_load_exclusivedi", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "emit_insn", "(", "gen", "(", "rval", ",", "mem", ",", "model_rtx", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "load", "exclusive", "."], "TS_V_token": ["aarch64"], "File": "aarch642", "Func": "aarch64_emit_load_exclusive", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2671, "Length": 91, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "SystemZTargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "Opcode", ")", "{", "case", "SystemZISD", "::", "RET_FLAG", ":", "return", "\"SystemZISD::RET_FLAG\"", ";", "case", "SystemZISD", "::", "CALL", ":", "return", "\"SystemZISD::CALL\"", ";", "case", "SystemZISD", "::", "BRCOND", ":", "return", "\"SystemZISD::BRCOND\"", ";", "case", "SystemZISD", "::", "CMP", ":", "return", "\"SystemZISD::CMP\"", ";", "case", "SystemZISD", "::", "UCMP", ":", "return", "\"SystemZISD::UCMP\"", ";", "case", "SystemZISD", "::", "SELECT", ":", "return", "\"SystemZISD::SELECT\"", ";", "case", "SystemZISD", "::", "PCRelativeWrapper", ":", "return", "\"SystemZISD::PCRelativeWrapper\"", ";", "default", ":", "return", "NULL", ";", "}", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["SystemZ", "SystemZ", "SystemZISD::RET_FLAG", "\"SystemZISD::RET_FLAG\"", "SystemZISD::CALL", "\"SystemZISD::CALL\"", "SystemZISD::BRCOND", "\"SystemZISD::BRCOND\"", "SystemZISD::CMP", "\"SystemZISD::CMP\"", "SystemZISD::UCMP", "\"SystemZISD::UCMP\"", "SystemZISD::SELECT", "\"SystemZISD::SELECT\"", "SystemZISD::PCRelativeWrapper", "\"SystemZISD::PCRelativeWrapper\""], "File": "SystemZISelLowering101", "Func": "getTargetNodeName", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2672, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "note_invalid_constants", "(", "rtx", "insn", ",", "HOST_WIDE_INT", "address", ",", "int", "do_pushes", ")", "{", "bool", "result", "=", "false", ";", "int", "opno", ";", "extract_insn", "(", "insn", ")", ";", "if", "(", "!", "constrain_operands", "(", "1", ")", ")", "fatal_insn_not_found", "(", "insn", ")", ";", "if", "(", "recog_data", ".", "n_alternatives", "==", "0", ")", "return", "false", ";", "preprocess_constraints", "(", ")", ";", "for", "(", "opno", "=", "0", ";", "opno", "<", "recog_data", ".", "n_operands", ";", "opno", "++", ")", "{", "if", "(", "recog_data", ".", "operand_type", "[", "opno", "]", "!=", "OP_IN", ")", "continue", ";", "if", "(", "recog_op_alt", "[", "opno", "]", "[", "which_alternative", "]", ".", "memory_ok", ")", "{", "rtx", "op", "=", "recog_data", ".", "operand", "[", "opno", "]", ";", "if", "(", "CONSTANT_P", "(", "op", ")", ")", "{", "if", "(", "do_pushes", ")", "push_minipool_fix", "(", "insn", ",", "address", ",", "recog_data", ".", "operand_loc", "[", "opno", "]", ",", "recog_data", ".", "operand_mode", "[", "opno", "]", ",", "op", ")", ";", "result", "=", "true", ";", "}", "else", "if", "(", "GET_CODE", "(", "op", ")", "==", "MEM", "&&", "GET_CODE", "(", "XEXP", "(", "op", ",", "0", ")", ")", "==", "SYMBOL_REF", "&&", "CONSTANT_POOL_ADDRESS_P", "(", "XEXP", "(", "op", ",", "0", ")", ")", ")", "{", "if", "(", "do_pushes", ")", "{", "rtx", "cop", "=", "avoid_constant_pool_reference", "(", "op", ")", ";", "if", "(", "op", "==", "cop", ")", "cop", "=", "get_pool_constant", "(", "XEXP", "(", "op", ",", "0", ")", ")", ";", "push_minipool_fix", "(", "insn", ",", "address", ",", "recog_data", ".", "operand_loc", "[", "opno", "]", ",", "recog_data", ".", "operand_mode", "[", "opno", "]", ",", "cop", ")", ";", "}", "result", "=", "true", ";", "}", "}", "}", "return", "result", ";", "}", ""], "natrual_language": ["Scan", "INSN", "and", "note", "any", "of", "its", "operands", "that", "need", "fixing", ".", "If", "DO_PUSHES", "is", "false", "we", "do", "not", "actually", "push", "any", "of", "the", "fixups", "needed", ".", "The", "function", "returns", "TRUE", "if", "any", "fixups", "were", "needed/pushed", ".", "This", "is", "used", "by", "arm_memory_load_p", "(", ")", "which", "needs", "to", "know", "about", "loads", "of", "constants", "that", "will", "be", "converted", "into", "minipool", "loads", "."], "TS_V_token": ["arm", "1", "0", "0", "0", "0", "0"], "File": "arm3", "Func": "note_invalid_constants", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2673, "Length": 246, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "hasInlineStackProbe", "(", "MachineFunction", "&", "MF", ")", "const", "{", "if", "(", "Subtarget", ".", "isOSWindows", "(", ")", "||", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "\"no-stack-arg-probe\"", ")", ")", "return", "false", ";", "if", "(", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "\"probe-stack\"", ")", ")", "return", "MF", ".", "getFunction", "(", ")", ".", "getFnAttribute", "(", "\"probe-stack\"", ")", ".", "getValueAsString", "(", ")", "==", "\"inline-asm\"", ";", "return", "false", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "stack", "probing", "through", "inline", "assembly", "is", "requested", "."], "TS_V_token": ["X86", "X86", "\"no-stack-arg-probe\"", "\"probe-stack\"", "\"probe-stack\"", "\"inline-asm\""], "File": "X86ISelLowering (2)5", "Func": "hasInlineStackProbe", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2674, "Length": 68, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64Operand", "::", "print", "(", "raw_ostream", "&", "OS", ")", "const", "{", "switch", "(", "Kind", ")", "{", "case", "k_FPImm", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "k_Barrier", ":", "{", "StringRef", "Name", "=", "getBarrierName", "(", ")", ";", "if", "(", "!", "Name", ".", "empty", "(", ")", ")", "OS", "<<", "\"\"", ";", "else", "OS", "<<", "\"\"", ";", "break", ";", "}", "case", "k_Immediate", ":", "OS", "<<", "*", "getImm", "(", ")", ";", "break", ";", "case", "k_ShiftedImm", ":", "{", "unsigned", "Shift", "=", "getShiftedImmShift", "(", ")", ";", "OS", "<<", "\"\"", ";", "break", ";", "}", "case", "k_CondCode", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "k_VectorList", ":", "{", "OS", "<<", "\"\"", ";", "break", ";", "}", "case", "k_VectorIndex", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "k_SysReg", ":", "OS", "<<", "\"'", ";", "break", ";", "case", "k_Token", ":", "OS", "<<", "\"'\"", "<<", "getToken", "(", ")", "<<", "\"'\"", ";", "break", ";", "case", "k_SysCR", ":", "OS", "<<", "\"c\"", "<<", "getSysCR", "(", ")", ";", "break", ";", "case", "k_Prefetch", ":", "{", "StringRef", "Name", "=", "getPrefetchName", "(", ")", ";", "if", "(", "!", "Name", ".", "empty", "(", ")", ")", "OS", "<<", "\"\"", ";", "else", "OS", "<<", "\"\"", ";", "break", ";", "}", "case", "k_PSBHint", ":", "OS", "<<", "getPSBHintName", "(", ")", ";", "break", ";", "case", "k_BTIHint", ":", "OS", "<<", "getBTIHintName", "(", ")", ";", "break", ";", "case", "k_MatrixRegister", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "k_MatrixTileList", ":", "{", "OS", "<<", "\"", "0", ";", "--", "I", ")", "OS", "<<", "(", "(", "RegMask", "&", "(", "1", "<<", "(", "I", "-", "1", ")", ")", ")", ">>", "(", "I", "-", "1", ")", ")", ";", "OS", "<<", "'>'", ";", "break", ";", "}", "case", "k_SVCR", ":", "{", "OS", "<<", "getSVCR", "(", ")", ";", "break", ";", "}", "case", "k_Register", ":", "OS", "<<", "\"\"", ";", "if", "(", "!", "getShiftExtendAmount", "(", ")", "&&", "!", "hasShiftExtendAmount", "(", ")", ")", "break", ";", "LLVM_FALLTHROUGH", ";", "case", "k_ShiftExtend", ":", "OS", "<<", "\"<\"", "<<", "AArch64_AM", "::", "getShiftExtendName", "(", "getShiftExtendType", "(", ")", ")", "<<", "\" #\"", "<<", "getShiftExtendAmount", "(", ")", ";", "if", "(", "!", "hasShiftExtendAmount", "(", ")", ")", "OS", "<<", "\"\"", ";", "OS", "<<", "'>'", ";", "break", ";", "}", "}", ""], "natrual_language": ["print", "-", "Print", "a", "debug", "representation", "of", "the", "operand", "to", "the", "given", "stream", "."], "TS_V_token": ["AArch64", "AArch64", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"<\"", "AArch64_AM::getShiftExtendName", "\" #\"", "\"\""], "File": "AArch64AsmParser1", "Func": "print", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2675, "Length": 494, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "arm_convert_to_type", "(", "tree", "type", ",", "tree", "expr", ")", "{", "tree", "fromtype", "=", "TREE_TYPE", "(", "expr", ")", ";", "if", "(", "!", "SCALAR_FLOAT_TYPE_P", "(", "fromtype", ")", "||", "!", "SCALAR_FLOAT_TYPE_P", "(", "type", ")", ")", "return", "NULL_TREE", ";", "if", "(", "(", "TYPE_PRECISION", "(", "fromtype", ")", "==", "16", "&&", "TYPE_PRECISION", "(", "type", ")", ">", "32", ")", "||", "(", "TYPE_PRECISION", "(", "type", ")", "==", "16", "&&", "TYPE_PRECISION", "(", "fromtype", ")", ">", "32", ")", ")", "return", "convert", "(", "type", ",", "convert", "(", "float_type_node", ",", "expr", ")", ")", ";", "return", "NULL_TREE", ";", "}", ""], "natrual_language": ["Implement", "TARGET_CONVERT_TO_TYPE", ".", "Specifically", ",", "this", "hook", "implements", "the", "peculiarity", "of", "the", "ARM", "half-precision", "floating-point", "C", "semantics", "that", "requires", "conversions", "between", "__fp16", "to", "or", "from", "double", "to", "do", "an", "intermediate", "conversion", "to", "float", "."], "TS_V_token": ["arm", "16", "32", "16", "32"], "File": "arm4", "Func": "arm_convert_to_type", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2676, "Length": 87, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Reset", "(", ")", "{", "Ops", ".", "clear", "(", ")", ";", "OpBegins", ".", "clear", "(", ")", ";", "OpBegins", ".", "push_back", "(", "0", ")", ";", "HasPersonality", "=", "0", ";", "}", ""], "natrual_language": ["Reset", "the", "unwind", "opcode", "assembler", "."], "TS_V_token": ["ARM", "0", "0"], "File": "ARMUnwindOpAsm", "Func": "Reset", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2677, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_init_sched_context", "(", "void", "*", "_sc", ",", "bool", "clean_p", ")", "{", "rs6000_sched_context_t", "sc", "=", "(", "rs6000_sched_context_t", ")", "_sc", ";", "if", "(", "clean_p", ")", "{", "sc", "->", "cached_can_issue_more", "=", "0", ";", "sc", "->", "last_scheduled_insn", "=", "NULL", ";", "sc", "->", "load_store_pendulum", "=", "0", ";", "sc", "->", "divide_cnt", "=", "0", ";", "sc", "->", "vec_pairing", "=", "0", ";", "}", "else", "{", "sc", "->", "cached_can_issue_more", "=", "cached_can_issue_more", ";", "sc", "->", "last_scheduled_insn", "=", "last_scheduled_insn", ";", "sc", "->", "load_store_pendulum", "=", "load_store_pendulum", ";", "sc", "->", "divide_cnt", "=", "divide_cnt", ";", "sc", "->", "vec_pairing", "=", "vec_pairing", ";", "}", "}", ""], "natrual_language": ["If", "CLEAN_P", "is", "true", "then", "initializes", "_SC", "with", "clean", "data", ",", "and", "from", "the", "global", "context", "otherwise", "."], "TS_V_token": ["powerpcspe", "0", "0", "0", "0"], "File": "powerpcspe", "Func": "rs6000_init_sched_context", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2678, "Length": 90, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZMCAsmBackend", "::", "applyFixup", "(", "const", "MCFixup", "&", "Fixup", ",", "char", "*", "Data", ",", "unsigned", "DataSize", ",", "uint64_t", "Value", ",", "bool", "IsPCRel", ",", "MCContext", "&", "Ctx", ")", "const", "{", "MCFixupKind", "Kind", "=", "Fixup", ".", "getKind", "(", ")", ";", "unsigned", "Offset", "=", "Fixup", ".", "getOffset", "(", ")", ";", "unsigned", "BitSize", "=", "getFixupKindInfo", "(", "Kind", ")", ".", "TargetSize", ";", "unsigned", "Size", "=", "(", "BitSize", "+", "7", ")", "/", "8", ";", "assert", "(", "Offset", "+", "Size", "<=", "DataSize", "&&", "\"Invalid fixup offset!\"", ")", ";", "Value", "=", "extractBitsForFixup", "(", "Kind", ",", "Value", ")", ";", "if", "(", "BitSize", "<", "64", ")", "Value", "&=", "(", "(", "uint64_t", ")", "1", "<<", "BitSize", ")", "-", "1", ";", "unsigned", "ShiftValue", "=", "(", "Size", "*", "8", ")", "-", "8", ";", "for", "(", "unsigned", "I", "=", "0", ";", "I", "!=", "Size", ";", "++", "I", ")", "{", "Data", "[", "Offset", "+", "I", "]", "|=", "uint8_t", "(", "Value", ">>", "ShiftValue", ")", ";", "ShiftValue", "-=", "8", ";", "}", "}", ""], "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": ["SystemZ", "SystemZ", "7", "8", "\"Invalid fixup offset!\"", "64", "1", "1", "8", "8", "0", "8"], "File": "SystemZMCAsmBackend27", "Func": "applyFixup", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2679, "Length": 153, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "rs6000_is_valid_2insn_and", "(", "rtx", "c", ",", "machine_mode", "mode", ")", "{", "if", "(", "rs6000_is_valid_mask", "(", "c", ",", "NULL", ",", "NULL", ",", "mode", ")", ")", "return", "true", ";", "unsigned", "HOST_WIDE_INT", "val", "=", "INTVAL", "(", "c", ")", ";", "unsigned", "HOST_WIDE_INT", "bit1", "=", "val", "&", "-", "val", ";", "unsigned", "HOST_WIDE_INT", "bit2", "=", "(", "val", "+", "bit1", ")", "&", "~", "val", ";", "unsigned", "HOST_WIDE_INT", "val1", "=", "(", "val", "+", "bit1", ")", "&", "val", ";", "unsigned", "HOST_WIDE_INT", "bit3", "=", "val1", "&", "-", "val1", ";", "return", "rs6000_is_valid_and_mask", "(", "GEN_INT", "(", "val", "+", "bit3", "-", "bit2", ")", ",", "mode", ")", ";", "}", ""], "natrual_language": ["Return", "whether", "an", "AND", "with", "C", "(", "a", "CONST_INT", ")", "in", "mode", "MODE", "can", "be", "done", "using", "two", "machine", "instructions", "."], "TS_V_token": ["rs6000"], "File": "rs6000", "Func": "rs6000_is_valid_2insn_and", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2680, "Length": 94, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "ARMTargetLowering", "::", "PerformCMOVCombine", "(", "SDNode", "*", "N", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SDValue", "Cmp", "=", "N", "->", "getOperand", "(", "4", ")", ";", "if", "(", "Cmp", ".", "getOpcode", "(", ")", "!=", "ARMISD", "::", "CMPZ", ")", "return", "SDValue", "(", ")", ";", "EVT", "VT", "=", "N", "->", "getValueType", "(", "0", ")", ";", "SDLoc", "dl", "(", "N", ")", ";", "SDValue", "LHS", "=", "Cmp", ".", "getOperand", "(", "0", ")", ";", "SDValue", "RHS", "=", "Cmp", ".", "getOperand", "(", "1", ")", ";", "SDValue", "FalseVal", "=", "N", "->", "getOperand", "(", "0", ")", ";", "SDValue", "TrueVal", "=", "N", "->", "getOperand", "(", "1", ")", ";", "SDValue", "ARMcc", "=", "N", "->", "getOperand", "(", "2", ")", ";", "ARMCC", "::", "CondCodes", "CC", "=", "(", "ARMCC", "::", "CondCodes", ")", "cast", "<", "ConstantSDNode", ">", "(", "ARMcc", ")", "->", "getZExtValue", "(", ")", ";", "SDValue", "Res", ";", "if", "(", "CC", "==", "ARMCC", "::", "NE", "&&", "FalseVal", "==", "RHS", "&&", "FalseVal", "!=", "LHS", ")", "{", "Res", "=", "DAG", ".", "getNode", "(", "ARMISD", "::", "CMOV", ",", "dl", ",", "VT", ",", "LHS", ",", "TrueVal", ",", "ARMcc", ",", "N", "->", "getOperand", "(", "3", ")", ",", "Cmp", ")", ";", "}", "else", "if", "(", "CC", "==", "ARMCC", "::", "EQ", "&&", "TrueVal", "==", "RHS", ")", "{", "SDValue", "ARMcc", ";", "SDValue", "NewCmp", "=", "getARMCmp", "(", "LHS", ",", "RHS", ",", "ISD", "::", "SETNE", ",", "ARMcc", ",", "DAG", ",", "dl", ")", ";", "Res", "=", "DAG", ".", "getNode", "(", "ARMISD", "::", "CMOV", ",", "dl", ",", "VT", ",", "LHS", ",", "FalseVal", ",", "ARMcc", ",", "N", "->", "getOperand", "(", "3", ")", ",", "NewCmp", ")", ";", "}", "if", "(", "Res", ".", "getNode", "(", ")", ")", "{", "APInt", "KnownZero", ",", "KnownOne", ";", "DAG", ".", "computeKnownBits", "(", "SDValue", "(", "N", ",", "0", ")", ",", "KnownZero", ",", "KnownOne", ")", ";", "if", "(", "KnownZero", "==", "0xfffffffe", ")", "Res", "=", "DAG", ".", "getNode", "(", "ISD", "::", "AssertZext", ",", "dl", ",", "MVT", "::", "i32", ",", "Res", ",", "DAG", ".", "getValueType", "(", "MVT", "::", "i1", ")", ")", ";", "else", "if", "(", "KnownZero", "==", "0xffffff00", ")", "Res", "=", "DAG", ".", "getNode", "(", "ISD", "::", "AssertZext", ",", "dl", ",", "MVT", "::", "i32", ",", "Res", ",", "DAG", ".", "getValueType", "(", "MVT", "::", "i8", ")", ")", ";", "else", "if", "(", "KnownZero", "==", "0xffff0000", ")", "Res", "=", "DAG", ".", "getNode", "(", "ISD", "::", "AssertZext", ",", "dl", ",", "MVT", "::", "i32", ",", "Res", ",", "DAG", ".", "getValueType", "(", "MVT", "::", "i16", ")", ")", ";", "}", "return", "Res", ";", "}", ""], "natrual_language": ["PerformCMOVCombine", "-", "Target-specific", "DAG", "combining", "for", "ARMISD", ":", ":CMOV", "."], "TS_V_token": ["ARM", "ARM", "4", "ARMISD::CMPZ", "0", "0", "1", "0", "1", "ARM", "2", "ARMCC::CondCodes", "ARMCC::CondCodes", "ARM", "ARMCC::NE", "ARMISD::CMOV", "ARM", "3", "ARMCC::EQ", "ARM", "ARM", "ISD::SETNE", "ARM", "ARMISD::CMOV", "ARM", "3", "0", "0xfffffffe", "ISD::AssertZext", "MVT::i32", "MVT::i1", "0xffffff00", "ISD::AssertZext", "MVT::i32", "MVT::i8", "0xffff0000", "ISD::AssertZext", "MVT::i32", "MVT::i16"], "File": "ARMISelLowering (2)", "Func": "PerformCMOVCombine", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2681, "Length": 388, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsTargetLowering", "::", "getJumpTableEncoding", "(", ")", "const", "{", "if", "(", "ABI", ".", "IsN64", "(", ")", ")", "return", "MachineJumpTableInfo", "::", "EK_GPRel64BlockAddress", ";", "return", "TargetLowering", "::", "getJumpTableEncoding", "(", ")", ";", "}", ""], "natrual_language": ["Return", "the", "entry", "encoding", "for", "a", "jump", "table", "in", "the", "current", "function", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsISelLowering (2)5", "Func": "getJumpTableEncoding", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2682, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "findDeadCallerSavedReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "MBBI", ",", "const", "X86RegisterInfo", "*", "TRI", ",", "bool", "Is64Bit", ")", "{", "const", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "Function", "*", "F", "=", "MF", "->", "getFunction", "(", ")", ";", "if", "(", "!", "F", "||", "MF", "->", "getMMI", "(", ")", ".", "callsEHReturn", "(", ")", ")", "return", "0", ";", "const", "TargetRegisterClass", "&", "AvailableRegs", "=", "*", "TRI", "->", "getGPRsForTailCall", "(", "*", "MF", ")", ";", "unsigned", "Opc", "=", "MBBI", "->", "getOpcode", "(", ")", ";", "switch", "(", "Opc", ")", "{", "default", ":", "return", "0", ";", "case", "X86", "::", "RET", ":", "case", "X86", "::", "RETL", ":", "case", "X86", "::", "RETQ", ":", "case", "X86", "::", "RETIL", ":", "case", "X86", "::", "RETIQ", ":", "case", "X86", "::", "TCRETURNdi", ":", "case", "X86", "::", "TCRETURNri", ":", "case", "X86", "::", "TCRETURNmi", ":", "case", "X86", "::", "TCRETURNdi64", ":", "case", "X86", "::", "TCRETURNri64", ":", "case", "X86", "::", "TCRETURNmi64", ":", "case", "X86", "::", "EH_RETURN", ":", "case", "X86", "::", "EH_RETURN64", ":", "{", "SmallSet", "<", "uint16_t", ",", "8", ">", "Uses", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "MBBI", "->", "getNumOperands", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "MachineOperand", "&", "MO", "=", "MBBI", "->", "getOperand", "(", "i", ")", ";", "if", "(", "!", "MO", ".", "isReg", "(", ")", "||", "MO", ".", "isDef", "(", ")", ")", "continue", ";", "unsigned", "Reg", "=", "MO", ".", "getReg", "(", ")", ";", "if", "(", "!", "Reg", ")", "continue", ";", "for", "(", "MCRegAliasIterator", "AI", "(", "Reg", ",", "TRI", ",", "true", ")", ";", "AI", ".", "isValid", "(", ")", ";", "++", "AI", ")", "Uses", ".", "insert", "(", "*", "AI", ")", ";", "}", "for", "(", "auto", "CS", ":", "AvailableRegs", ")", "if", "(", "!", "Uses", ".", "count", "(", "CS", ")", "&&", "CS", "!=", "X86", "::", "RIP", ")", "return", "CS", ";", "}", "}", "return", "0", ";", "}", ""], "natrual_language": ["findDeadCallerSavedReg", "-", "Return", "a", "caller-saved", "register", "that", "is", "n't", "live", "when", "it", "reaches", "the", "``", "return", "''", "instruction", "."], "TS_V_token": ["X86", "X86", "0", "0", "X86::RET", "X86::RETL", "X86::RETQ", "X86::RETIL", "X86::RETIQ", "X86::TCRETURNdi", "X86::TCRETURNri", "X86::TCRETURNmi", "X86::TCRETURNdi64", "X86::TCRETURNri64", "X86::TCRETURNmi64", "X86::EH_RETURN", "X86::EH_RETURN64", "8", "0", "X86::RIP", "0"], "File": "X86FrameLowering112", "Func": "findDeadCallerSavedReg", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2683, "Length": 299, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "AArch64FI", "=", "MF", ".", "getInfo", "<", "AArch64FunctionInfo", ">", "(", ")", ";", "STI", "=", "&", "MF", ".", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ";", "SetupMachineFunction", "(", "MF", ")", ";", "if", "(", "STI", "->", "isTargetCOFF", "(", ")", ")", "{", "bool", "Internal", "=", "MF", ".", "getFunction", "(", ")", ".", "hasInternalLinkage", "(", ")", ";", "COFF", "::", "SymbolStorageClass", "Scl", "=", "Internal", "?", "COFF", "::", "IMAGE_SYM_CLASS_STATIC", ":", "COFF", "::", "IMAGE_SYM_CLASS_EXTERNAL", ";", "int", "Type", "=", "COFF", "::", "IMAGE_SYM_DTYPE_FUNCTION", "<<", "COFF", "::", "SCT_COMPLEX_TYPE_SHIFT", ";", "OutStreamer", "->", "BeginCOFFSymbolDef", "(", "CurrentFnSym", ")", ";", "OutStreamer", "->", "emitCOFFSymbolStorageClass", "(", "Scl", ")", ";", "OutStreamer", "->", "emitCOFFSymbolType", "(", "Type", ")", ";", "OutStreamer", "->", "EndCOFFSymbolDef", "(", ")", ";", "}", "emitFunctionBody", "(", ")", ";", "emitXRayTable", "(", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64AsmPrinter34", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2684, "Length": 125, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "darwin_rs6000_override_options", "(", "void", ")", "{", "rs6000_altivec_abi", "=", "1", ";", "TARGET_ALTIVEC_VRSAVE", "=", "1", ";", "rs6000_current_abi", "=", "ABI_DARWIN", ";", "if", "(", "DEFAULT_ABI", "==", "ABI_DARWIN", "&&", "TARGET_64BIT", ")", "darwin_one_byte_bool", "=", "1", ";", "if", "(", "TARGET_64BIT", "&&", "!", "TARGET_POWERPC64", ")", "{", "rs6000_isa_flags", "|=", "OPTION_MASK_POWERPC64", ";", "warning", "(", "0", ",", "\"-m64 requires PowerPC64 architecture, enabling\"", ")", ";", "}", "if", "(", "flag_mkernel", ")", "{", "rs6000_default_long_calls", "=", "1", ";", "rs6000_isa_flags", "|=", "OPTION_MASK_SOFT_FLOAT", ";", "}", "if", "(", "!", "flag_mkernel", "&&", "!", "flag_apple_kext", "&&", "TARGET_64BIT", "&&", "!", "(", "rs6000_isa_flags_explicit", "&", "OPTION_MASK_ALTIVEC", ")", ")", "rs6000_isa_flags", "|=", "OPTION_MASK_ALTIVEC", ";", "if", "(", "!", "flag_mkernel", "&&", "!", "flag_apple_kext", "&&", "strverscmp", "(", "darwin_macosx_version_min", ",", "\"10.5\"", ")", ">=", "0", "&&", "!", "(", "rs6000_isa_flags_explicit", "&", "OPTION_MASK_ALTIVEC", ")", "&&", "!", "global_options_set", ".", "x_rs6000_cpu_index", ")", "{", "rs6000_isa_flags", "|=", "OPTION_MASK_ALTIVEC", ";", "}", "}", ""], "natrual_language": ["The", "Darwin", "version", "of", "SUBTARGET_OVERRIDE_OPTIONS", "."], "TS_V_token": ["powerpcspe", "1", "1", "1", "0", "\"-m64 requires PowerPC64 architecture, enabling\"", "1", "\"10.5\"", "0"], "File": "powerpcspe", "Func": "darwin_rs6000_override_options", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2685, "Length": 122, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "vfp_emit_fstmd", "(", "int", "base_reg", ",", "int", "count", ")", "{", "rtx", "par", ";", "rtx", "dwarf", ";", "rtx", "tmp", ",", "reg", ";", "int", "i", ";", "if", "(", "count", "==", "2", "&&", "!", "arm_arch6", ")", "{", "if", "(", "base_reg", "==", "LAST_VFP_REGNUM", "-", "3", ")", "base_reg", "-=", "2", ";", "count", "++", ";", "}", "if", "(", "count", ">", "16", ")", "{", "int", "saved", ";", "saved", "=", "vfp_emit_fstmd", "(", "base_reg", "+", "32", ",", "count", "-", "16", ")", ";", "saved", "+=", "vfp_emit_fstmd", "(", "base_reg", ",", "16", ")", ";", "return", "saved", ";", "}", "par", "=", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "rtvec_alloc", "(", "count", ")", ")", ";", "dwarf", "=", "gen_rtx_SEQUENCE", "(", "VOIDmode", ",", "rtvec_alloc", "(", "count", "+", "1", ")", ")", ";", "reg", "=", "gen_rtx_REG", "(", "DFmode", ",", "base_reg", ")", ";", "base_reg", "+=", "2", ";", "XVECEXP", "(", "par", ",", "0", ",", "0", ")", "=", "gen_rtx_SET", "(", "gen_frame_mem", "(", "BLKmode", ",", "gen_rtx_PRE_MODIFY", "(", "Pmode", ",", "stack_pointer_rtx", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "-", "(", "count", "*", "8", ")", ")", ")", ")", ",", "gen_rtx_UNSPEC", "(", "BLKmode", ",", "gen_rtvec", "(", "1", ",", "reg", ")", ",", "UNSPEC_PUSH_MULT", ")", ")", ";", "tmp", "=", "gen_rtx_SET", "(", "stack_pointer_rtx", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "-", "(", "count", "*", "8", ")", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "tmp", ")", "=", "1", ";", "XVECEXP", "(", "dwarf", ",", "0", ",", "0", ")", "=", "tmp", ";", "tmp", "=", "gen_rtx_SET", "(", "gen_frame_mem", "(", "DFmode", ",", "stack_pointer_rtx", ")", ",", "reg", ")", ";", "RTX_FRAME_RELATED_P", "(", "tmp", ")", "=", "1", ";", "XVECEXP", "(", "dwarf", ",", "0", ",", "1", ")", "=", "tmp", ";", "for", "(", "i", "=", "1", ";", "i", "<", "count", ";", "i", "++", ")", "{", "reg", "=", "gen_rtx_REG", "(", "DFmode", ",", "base_reg", ")", ";", "base_reg", "+=", "2", ";", "XVECEXP", "(", "par", ",", "0", ",", "i", ")", "=", "gen_rtx_USE", "(", "VOIDmode", ",", "reg", ")", ";", "tmp", "=", "gen_rtx_SET", "(", "gen_frame_mem", "(", "DFmode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "i", "*", "8", ")", ")", ",", "reg", ")", ";", "RTX_FRAME_RELATED_P", "(", "tmp", ")", "=", "1", ";", "XVECEXP", "(", "dwarf", ",", "0", ",", "i", "+", "1", ")", "=", "tmp", ";", "}", "par", "=", "emit_insn", "(", "par", ")", ";", "add_reg_note", "(", "par", ",", "REG_FRAME_RELATED_EXPR", ",", "dwarf", ")", ";", "RTX_FRAME_RELATED_P", "(", "par", ")", "=", "1", ";", "return", "count", "*", "8", ";", "}", ""], "natrual_language": ["Emit", "RTL", "to", "save", "block", "of", "VFP", "register", "pairs", "to", "the", "stack", ".", "Returns", "the", "number", "of", "bytes", "pushed", "."], "TS_V_token": ["arm", "2", "3", "2", "16", "32", "16", "16", "1", "2", "0", "0", "8", "1", "8", "1", "0", "0", "1", "0", "1", "1", "2", "0", "8", "1", "0", "1", "1", "8"], "File": "arm", "Func": "vfp_emit_fstmd", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2686, "Length": 365, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZTargetLowering", "::", "LowerAsmOperandForConstraint", "(", "SDValue", "Op", ",", "std", "::", "string", "&", "Constraint", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "Ops", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "if", "(", "Constraint", ".", "length", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'I'", ":", "if", "(", "auto", "*", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ")", ")", "if", "(", "isUInt", "<", "8", ">", "(", "C", "->", "getZExtValue", "(", ")", ")", ")", "Ops", ".", "push_back", "(", "DAG", ".", "getTargetConstant", "(", "C", "->", "getZExtValue", "(", ")", ",", "Op", ".", "getValueType", "(", ")", ")", ")", ";", "return", ";", "case", "'J'", ":", "if", "(", "auto", "*", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ")", ")", "if", "(", "isUInt", "<", "12", ">", "(", "C", "->", "getZExtValue", "(", ")", ")", ")", "Ops", ".", "push_back", "(", "DAG", ".", "getTargetConstant", "(", "C", "->", "getZExtValue", "(", ")", ",", "Op", ".", "getValueType", "(", ")", ")", ")", ";", "return", ";", "case", "'K'", ":", "if", "(", "auto", "*", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ")", ")", "if", "(", "isInt", "<", "16", ">", "(", "C", "->", "getSExtValue", "(", ")", ")", ")", "Ops", ".", "push_back", "(", "DAG", ".", "getTargetConstant", "(", "C", "->", "getSExtValue", "(", ")", ",", "Op", ".", "getValueType", "(", ")", ")", ")", ";", "return", ";", "case", "'L'", ":", "if", "(", "auto", "*", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ")", ")", "if", "(", "isInt", "<", "20", ">", "(", "C", "->", "getSExtValue", "(", ")", ")", ")", "Ops", ".", "push_back", "(", "DAG", ".", "getTargetConstant", "(", "C", "->", "getSExtValue", "(", ")", ",", "Op", ".", "getValueType", "(", ")", ")", ")", ";", "return", ";", "case", "'M'", ":", "if", "(", "auto", "*", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ")", ")", "if", "(", "C", "->", "getZExtValue", "(", ")", "==", "0x7fffffff", ")", "Ops", ".", "push_back", "(", "DAG", ".", "getTargetConstant", "(", "C", "->", "getZExtValue", "(", ")", ",", "Op", ".", "getValueType", "(", ")", ")", ")", ";", "return", ";", "}", "}", "TargetLowering", "::", "LowerAsmOperandForConstraint", "(", "Op", ",", "Constraint", ",", "Ops", ",", "DAG", ")", ";", "}", ""], "natrual_language": ["Lower", "the", "specified", "operand", "into", "the", "Ops", "vector", "."], "TS_V_token": ["SystemZ", "SystemZ", "1", "0", "8", "12", "16", "20", "0x7fffffff"], "File": "SystemZISelLowering106", "Func": "LowerAsmOperandForConstraint", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2687, "Length": 335, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseRegisterInfo", "::", "canRealignStack", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "MachineRegisterInfo", "*", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "const", "ARMFunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "if", "(", "!", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "RealignStack", ")", "return", "false", ";", "if", "(", "AFI", "->", "isThumb1OnlyFunction", "(", ")", ")", "return", "false", ";", "if", "(", "!", "MRI", "->", "canReserveReg", "(", "FramePtr", ")", ")", "return", "false", ";", "if", "(", "MF", ".", "getTarget", "(", ")", ".", "getFrameLowering", "(", ")", "->", "hasReservedCallFrame", "(", "MF", ")", ")", "return", "true", ";", "return", "MRI", "->", "canReserveReg", "(", "BasePtr", ")", ";", "}", ""], "natrual_language": ["True", "if", "the", "stack", "can", "be", "realigned", "for", "the", "target", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM"], "File": "ARMBaseRegisterInfo26", "Func": "canRealignStack", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2688, "Length": 107, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "EVT", "PPCTargetLowering", "::", "getOptimalMemOpType", "(", "uint64_t", "Size", ",", "unsigned", "DstAlign", ",", "unsigned", "SrcAlign", ",", "bool", "IsMemset", ",", "bool", "ZeroMemset", ",", "bool", "MemcpyStrSrc", ",", "MachineFunction", "&", "MF", ")", "const", "{", "if", "(", "getTargetMachine", "(", ")", ".", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "const", "Function", "&", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "if", "(", "Subtarget", ".", "hasQPX", "(", ")", "&&", "Size", ">=", "32", "&&", "(", "!", "IsMemset", "||", "Size", ">=", "64", ")", "&&", "(", "!", "SrcAlign", "||", "SrcAlign", ">=", "32", ")", "&&", "(", "!", "DstAlign", "||", "DstAlign", ">=", "32", ")", "&&", "!", "F", ".", "hasFnAttribute", "(", "Attribute", "::", "NoImplicitFloat", ")", ")", "{", "return", "MVT", "::", "v4f64", ";", "}", "if", "(", "Subtarget", ".", "hasAltivec", "(", ")", "&&", "Size", ">=", "16", "&&", "(", "(", "(", "!", "SrcAlign", "||", "SrcAlign", ">=", "16", ")", "&&", "(", "!", "DstAlign", "||", "DstAlign", ">=", "16", ")", ")", "||", "(", "(", "IsMemset", "&&", "Subtarget", ".", "hasVSX", "(", ")", ")", "||", "Subtarget", ".", "hasP8Vector", "(", ")", ")", ")", ")", "return", "MVT", "::", "v4i32", ";", "}", "if", "(", "Subtarget", ".", "isPPC64", "(", ")", ")", "{", "return", "MVT", "::", "i64", ";", "}", "return", "MVT", "::", "i32", ";", "}", ""], "natrual_language": ["It", "returns", "EVT", ":", ":Other", "if", "the", "type", "should", "be", "determined", "using", "generic", "target-independent", "logic", "."], "TS_V_token": ["PowerPC", "PPC", "32", "64", "32", "32", "MVT::v4f64", "16", "16", "16", "MVT::v4i32", "PPC", "MVT::i64", "MVT::i32"], "File": "PPCISelLowering (2)7", "Func": "getOptimalMemOpType", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2689, "Length": 190, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "advance", "(", ")", "{", "assert", "(", "Current", "!=", "-", "1", ")", ";", "Current", "=", "Set", ".", "V", ".", "find_next", "(", "Current", ")", ";", "}", ""], "natrual_language": ["Advance", "across", "the", "current", "instruction", "."], "TS_V_token": ["X86", "1"], "File": "ImmutableGraph", "Func": "advance", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2690, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "fixupNeedsRelaxation", "(", "const", "MCFixup", "&", "Fixup", ",", "uint64_t", "Value", ",", "const", "MCRelaxableFragment", "*", "DF", ",", "const", "MCAsmLayout", "&", "Layout", ")", "const", "override", "{", "llvm_unreachable", "(", "\"relaxInstruction() unimplemented\"", ")", ";", "}", ""], "natrual_language": ["Simple", "predicate", "for", "targets", "where", "!", "Resolved", "implies", "requiring", "relaxation", "."], "TS_V_token": ["PowerPC", "\"relaxInstruction() unimplemented\""], "File": "PPCAsmBackend (2)1", "Func": "fixupNeedsRelaxation", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2691, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "enum", "reg_class", "mmix_preferred_output_reload_class", "(", "rtx", "x", "ATTRIBUTE_UNUSED", ",", "enum", "reg_class", "class", ")", "{", "return", "GET_CODE", "(", "x", ")", "==", "MOD", "&&", "GET_MODE", "(", "x", ")", "==", "DImode", "?", "REMAINDER_REG", ":", "class", ";", "}", ""], "natrual_language": ["PREFERRED_OUTPUT_RELOAD_CLASS", ".", "We", "need", "to", "extend", "the", "reload", "class", "of", "REMAINDER_REG", "and", "HIMULT_REG", "."], "TS_V_token": ["mmix"], "File": "mmix3", "Func": "mmix_preferred_output_reload_class", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2692, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "FixupLEAPass", "::", "processInstruction", "(", "MachineBasicBlock", "::", "iterator", "&", "I", ",", "MachineFunction", "::", "iterator", "MFI", ")", "{", "MachineInstr", "&", "MI", "=", "*", "I", ";", "const", "MCInstrDesc", "&", "Desc", "=", "MI", ".", "getDesc", "(", ")", ";", "int", "AddrOffset", "=", "X86II", "::", "getMemoryOperandNo", "(", "Desc", ".", "TSFlags", ")", ";", "if", "(", "AddrOffset", ">=", "0", ")", "{", "AddrOffset", "+=", "X86II", "::", "getOperandBias", "(", "Desc", ")", ";", "MachineOperand", "&", "p", "=", "MI", ".", "getOperand", "(", "AddrOffset", "+", "X86", "::", "AddrBaseReg", ")", ";", "if", "(", "p", ".", "isReg", "(", ")", "&&", "p", ".", "getReg", "(", ")", "!=", "X86", "::", "ESP", ")", "{", "seekLEAFixup", "(", "p", ",", "I", ",", "MFI", ")", ";", "}", "MachineOperand", "&", "q", "=", "MI", ".", "getOperand", "(", "AddrOffset", "+", "X86", "::", "AddrIndexReg", ")", ";", "if", "(", "q", ".", "isReg", "(", ")", "&&", "q", ".", "getReg", "(", ")", "!=", "X86", "::", "ESP", ")", "{", "seekLEAFixup", "(", "q", ",", "I", ",", "MFI", ")", ";", "}", "}", "}", ""], "natrual_language": ["Process", "a", "single", "instruction", "and", "collect", "debug", "info", "anchors", "."], "TS_V_token": ["X86", "X86II::getMemoryOperandNo", "0", "X86II::getOperandBias", "X86::AddrBaseReg", "X86::ESP", "X86::AddrIndexReg", "X86::ESP"], "File": "X86FixupLEAs (2)2", "Func": "processInstruction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2693, "Length": 153, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MipsInstrInfo", "*", "MipsInstrInfo", "::", "create", "(", "MipsSubtarget", "&", "STI", ")", "{", "if", "(", "STI", ".", "inMips16Mode", "(", ")", ")", "return", "llvm", "::", "createMips16InstrInfo", "(", "STI", ")", ";", "return", "llvm", "::", "createMipsSEInstrInfo", "(", "STI", ")", ";", "}", ""], "natrual_language": ["This", "creates", "an", "identified", "struct", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips"], "File": "MipsInstrInfo (2)", "Func": "create", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2694, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "ia64_struct_value_rtx", "(", "tree", "fntype", ",", "int", "incoming", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "TARGET_ABI_OPEN_VMS", "||", "(", "fntype", "&&", "ia64_struct_retval_addr_is_first_parm_p", "(", "fntype", ")", ")", ")", "return", "NULL_RTX", ";", "return", "gen_rtx_REG", "(", "Pmode", ",", "GR_REG", "(", "8", ")", ")", ";", "}", ""], "natrual_language": ["Worker", "function", "for", "TARGET_STRUCT_VALUE_RTX", "."], "TS_V_token": ["ia64", "8"], "File": "ia64", "Func": "ia64_struct_value_rtx", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2695, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "sh2a_function_vector_p", "(", "tree", "func", ")", "{", "if", "(", "TREE_CODE", "(", "func", ")", "!=", "FUNCTION_DECL", ")", "return", "false", ";", "for", "(", "tree", "list", "=", "SH_ATTRIBUTES", "(", "func", ")", ";", "list", ";", "list", "=", "TREE_CHAIN", "(", "list", ")", ")", "if", "(", "is_attribute_p", "(", "\"function_vector\"", ",", "get_attribute_name", "(", "list", ")", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "FUNC", "has", "been", "assigned", "the", "attribute", "``", "function_vector", "''", "."], "TS_V_token": ["sh", "\"function_vector\""], "File": "sh", "Func": "sh2a_function_vector_p", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2696, "Length": 57, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "nds32_n7_load_to_ii_p", "(", "rtx_insn", "*", "producer", ",", "rtx_insn", "*", "consumer", ")", "{", "if", "(", "post_update_insn_p", "(", "producer", ")", ")", "return", "false", ";", "rtx", "def_reg", "=", "SET_DEST", "(", "PATTERN", "(", "producer", ")", ")", ";", "return", "n7_consumed_by_ii_dep_p", "(", "consumer", ",", "def_reg", ")", ";", "}", ""], "natrual_language": ["Guard", "functions", "for", "N7", "core", "."], "TS_V_token": ["nds32"], "File": "nds32-pipelines-auxiliary", "Func": "nds32_n7_load_to_ii_p", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2697, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "func_fma_steering", "::", "analyze", "(", ")", "{", "int", "i", ",", "n_blocks", ",", "*", "bb_dfs_preorder", ";", "basic_block", "bb", ";", "rtx_insn", "*", "insn", ";", "bb_dfs_preorder", "=", "XNEWVEC", "(", "int", ",", "last_basic_block_for_fn", "(", "cfun", ")", ")", ";", "n_blocks", "=", "pre_and_rev_post_order_compute", "(", "bb_dfs_preorder", ",", "NULL", ",", "false", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "n_blocks", ";", "i", "++", ")", "{", "bb", "=", "BASIC_BLOCK_FOR_FN", "(", "cfun", ",", "bb_dfs_preorder", "[", "i", "]", ")", ";", "FOR_BB_INSNS", "(", "bb", ",", "insn", ")", "{", "operand_rr_info", "*", "dest_op_info", ";", "struct", "du_chain", "*", "chain", ";", "unsigned", "dest_regno", ";", "fma_forest", "*", "forest", ";", "du_head_p", "head", ";", "int", "i", ";", "if", "(", "!", "is_fmul_fmac_insn", "(", "insn", ",", "true", ")", ")", "continue", ";", "dest_op_info", "=", "insn_rr", "[", "INSN_UID", "(", "insn", ")", "]", ".", "op_info", ";", "dest_regno", "=", "REGNO", "(", "SET_DEST", "(", "PATTERN", "(", "insn", ")", ")", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "dest_op_info", "->", "n_chains", ";", "i", "++", ")", "{", "if", "(", "dest_op_info", "->", "heads", "[", "i", "]", "->", "regno", "!=", "dest_regno", ")", "continue", ";", "head", "=", "dest_op_info", "->", "heads", "[", "i", "]", ";", "if", "(", "!", "head", "->", "first", ")", "head", "=", "regrename_chain_from_id", "(", "head", "->", "id", ")", ";", "forest", "=", "NULL", ";", "for", "(", "chain", "=", "head", "->", "first", ";", "chain", ";", "chain", "=", "chain", "->", "next_use", ")", "{", "fma_node", "*", "*", "fma_slot", ";", "if", "(", "!", "is_fmul_fmac_insn", "(", "chain", "->", "insn", ",", "true", ")", ")", "continue", ";", "if", "(", "chain", "->", "loc", "!=", "&", "SET_DEST", "(", "PATTERN", "(", "chain", "->", "insn", ")", ")", ")", "continue", ";", "if", "(", "chain", "->", "insn", "==", "insn", ")", "break", ";", "fma_slot", "=", "this", "->", "m_insn_fma_head_map", "->", "get", "(", "chain", "->", "insn", ")", ";", "if", "(", "fma_slot", "&&", "(", "*", "fma_slot", ")", "->", "get_children", "(", ")", ")", "forest", "=", "(", "*", "fma_slot", ")", "->", "get_forest", "(", ")", ";", "}", "if", "(", "chain", ")", "break", ";", "}", "gcc_assert", "(", "i", "<", "dest_op_info", "->", "n_chains", ")", ";", "this", "->", "analyze_fma_fmul_insn", "(", "forest", ",", "chain", ",", "head", ")", ";", "}", "}", "free", "(", "bb_dfs_preorder", ")", ";", "if", "(", "dump_file", ")", "this", "->", "dfs", "(", "dump_forest_info", ",", "dump_tree_root_info", ",", "dump_tree_node_info", ",", "false", ")", ";", "}", ""], "natrual_language": ["Count", "how", "many", "times", "each", "regno", "is", "referenced", "as", "base", "address", "for", "a", "memory", "access", "."], "TS_V_token": ["aarch64", "0", "0"], "File": "cortex-a57-fma-steering2", "Func": "analyze", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2698, "Length": 352, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "VETargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "case", "VEISD", "::", "NAME", ":", "\\", "return", "\"VEISD::\"", "#", "NAME", ";", "switch", "(", "(", "VEISD", "::", "NodeType", ")", "Opcode", ")", "{", "case", "VEISD", "::", "FIRST_NUMBER", ":", "break", ";", "TARGET_NODE_CASE", "(", "Lo", ")", "TARGET_NODE_CASE", "(", "Hi", ")", "TARGET_NODE_CASE", "(", "GETFUNPLT", ")", "TARGET_NODE_CASE", "(", "GETSTACKTOP", ")", "TARGET_NODE_CASE", "(", "GETTLSADDR", ")", "TARGET_NODE_CASE", "(", "CALL", ")", "TARGET_NODE_CASE", "(", "RET_FLAG", ")", "TARGET_NODE_CASE", "(", "GLOBAL_BASE_REG", ")", "}", "return", "nullptr", ";", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["VE", "VE", "VEISD::NAME", "\"VEISD::\"", "VEISD::NodeType", "VEISD::FIRST_NUMBER"], "File": "VEISelLowering", "Func": "getTargetNodeName", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2699, "Length": 77, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "EmitInstruction", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "bool", ")", "override", "{", "EmitA64MappingSymbol", "(", ")", ";", "MCELFStreamer", "::", "EmitInstruction", "(", "Inst", ",", "STI", ")", ";", "AArch64BranchTargetAligner", "BTA", ";", "unsigned", "Opcode", "=", "Inst", ".", "getOpcode", "(", ")", ";", "if", "(", "BTA", ".", "needsSpecialAlignment", "(", "STI", ".", "getCPU", "(", ")", ",", "Opcode", ")", ")", "{", "unsigned", "BA", "=", "BTA", ".", "getBranchTargetAlignment", "(", "Inst", ")", ";", "if", "(", "BA", ")", "{", "EmitA64MappingSymbol", "(", ")", ";", "MCELFStreamer", "::", "EmitCodeAlignment", "(", "BA", ")", ";", "}", "}", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64ELFStreamer5", "Func": "EmitInstruction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2700, "Length": 87, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86TargetLowering", "::", "getExceptionPointerRegister", "(", "const", "Constant", "*", "PersonalityFn", ")", "const", "{", "if", "(", "classifyEHPersonality", "(", "PersonalityFn", ")", "==", "EHPersonality", "::", "CoreCLR", ")", "return", "Subtarget", "->", "isTarget64BitLP64", "(", ")", "?", "X86", "::", "RDX", ":", "X86", "::", "EDX", ";", "return", "Subtarget", "->", "isTarget64BitLP64", "(", ")", "?", "X86", "::", "RAX", ":", "X86", "::", "EAX", ";", "}", ""], "natrual_language": ["If", "a", "physical", "register", ",", "this", "returns", "the", "register", "that", "receives", "the", "exception", "address", "on", "entry", "to", "an", "EH", "pad", "."], "TS_V_token": ["X86", "X86", "X86::RDX", "X86::EDX", "X86::RAX", "X86::EAX"], "File": "X86ISelLowering (2)3", "Func": "getExceptionPointerRegister", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2701, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "write_init_file", "(", "void", ")", "{", "write_autogenerated_header", "(", "init_file", ")", ";", "fprintf", "(", "init_file", ",", "\"#include \\\"config.h\\\"\\n\"", ")", ";", "fprintf", "(", "init_file", ",", "\"#include \\\"system.h\\\"\\n\"", ")", ";", "fprintf", "(", "init_file", ",", "\"#include \\\"coretypes.h\\\"\\n\"", ")", ";", "fprintf", "(", "init_file", ",", "\"#include \\\"backend.h\\\"\\n\"", ")", ";", "fprintf", "(", "init_file", ",", "\"#include \\\"rtl.h\\\"\\n\"", ")", ";", "fprintf", "(", "init_file", ",", "\"#include \\\"tree.h\\\"\\n\"", ")", ";", "fprintf", "(", "init_file", ",", "\"#include \\\"langhooks.h\\\"\\n\"", ")", ";", "fprintf", "(", "init_file", ",", "\"#include \\\"insn-codes.h\\\"\\n\"", ")", ";", "fprintf", "(", "init_file", ",", "\"#include \\\"rs6000-builtins.h\\\"\\n\"", ")", ";", "fprintf", "(", "init_file", ",", "\"\\n\"", ")", ";", "fprintf", "(", "init_file", ",", "\"tree rs6000_builtin_decls[RS6000_OVLD_MAX];\\n\\n\"", ")", ";", "write_bif_static_init", "(", ")", ";", "write_ovld_static_init", "(", ")", ";", "fprintf", "(", "init_file", ",", "\"void\\n\"", ")", ";", "fprintf", "(", "init_file", ",", "\"rs6000_init_generated_builtins ()\\n\"", ")", ";", "fprintf", "(", "init_file", ",", "\"{\\n\"", ")", ";", "fprintf", "(", "init_file", ",", "\" tree t;\\n\"", ")", ";", "rbt_inorder_callback", "(", "&", "fntype_rbt", ",", "fntype_rbt", ".", "rbt_root", ",", "write_fntype_init", ")", ";", "fprintf", "(", "init_file", ",", "\"\\n\"", ")", ";", "fprintf", "(", "init_file", ",", "\" rs6000_builtin_decls[RS6000_BIF_NONE] = NULL_TREE;\\n\"", ")", ";", "fprintf", "(", "init_file", ",", "\" rs6000_builtin_decls[RS6000_BIF_MAX] = NULL_TREE;\\n\"", ")", ";", "fprintf", "(", "init_file", ",", "\" rs6000_builtin_decls[RS6000_OVLD_NONE] = NULL_TREE;\\n\\n\"", ")", ";", "write_init_bif_table", "(", ")", ";", "write_init_ovld_table", "(", ")", ";", "fprintf", "(", "init_file", ",", "\"}\\n\\n\"", ")", ";", "return", "1", ";", "}", ""], "natrual_language": ["Write", "everything", "to", "the", "initialization", "file", "(", "rs6000-builtins.cc", ")", ".", "Return", "1", "if", "successful", ",", "0", "otherwise", "."], "TS_V_token": ["rs6000", "\"#include \\\"config.h\\\"\\n\"", "\"#include \\\"system.h\\\"\\n\"", "\"#include \\\"coretypes.h\\\"\\n\"", "\"#include \\\"backend.h\\\"\\n\"", "\"#include \\\"rtl.h\\\"\\n\"", "\"#include \\\"tree.h\\\"\\n\"", "\"#include \\\"langhooks.h\\\"\\n\"", "\"#include \\\"insn-codes.h\\\"\\n\"", "\"#include \\\"rs6000-builtins.h\\\"\\n\"", "\"\\n\"", "\"tree rs6000_builtin_decls[RS6000_OVLD_MAX];\\n\\n\"", "\"void\\n\"", "\"rs6000_init_generated_builtins ()\\n\"", "\"{\\n\"", "\" tree t;\\n\"", "\"\\n\"", "\" rs6000_builtin_decls[RS6000_BIF_NONE] = NULL_TREE;\\n\"", "\" rs6000_builtin_decls[RS6000_BIF_MAX] = NULL_TREE;\\n\"", "\" rs6000_builtin_decls[RS6000_OVLD_NONE] = NULL_TREE;\\n\\n\"", "\"}\\n\\n\"", "1"], "File": "rs6000-gen-builtins", "Func": "write_init_file", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2702, "Length": 184, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "dimode_scalar_to_vector_candidate_p", "(", "rtx_insn", "*", "insn", ")", "{", "rtx", "def_set", "=", "single_set", "(", "insn", ")", ";", "if", "(", "!", "def_set", ")", "return", "false", ";", "if", "(", "has_non_address_hard_reg", "(", "insn", ")", ")", "return", "false", ";", "rtx", "src", "=", "SET_SRC", "(", "def_set", ")", ";", "rtx", "dst", "=", "SET_DEST", "(", "def_set", ")", ";", "if", "(", "GET_CODE", "(", "src", ")", "==", "COMPARE", ")", "return", "convertible_comparison_p", "(", "insn", ")", ";", "if", "(", "(", "GET_MODE", "(", "src", ")", "!=", "DImode", "&&", "!", "CONST_INT_P", "(", "src", ")", ")", "||", "GET_MODE", "(", "dst", ")", "!=", "DImode", ")", "return", "false", ";", "if", "(", "!", "REG_P", "(", "dst", ")", "&&", "!", "MEM_P", "(", "dst", ")", ")", "return", "false", ";", "switch", "(", "GET_CODE", "(", "src", ")", ")", "{", "case", "ASHIFTRT", ":", "if", "(", "!", "TARGET_AVX512VL", ")", "return", "false", ";", "case", "ASHIFT", ":", "case", "LSHIFTRT", ":", "if", "(", "!", "REG_P", "(", "XEXP", "(", "src", ",", "1", ")", ")", "&&", "(", "!", "SUBREG_P", "(", "XEXP", "(", "src", ",", "1", ")", ")", "||", "SUBREG_BYTE", "(", "XEXP", "(", "src", ",", "1", ")", ")", "!=", "0", "||", "!", "REG_P", "(", "SUBREG_REG", "(", "XEXP", "(", "src", ",", "1", ")", ")", ")", ")", "&&", "(", "!", "CONST_INT_P", "(", "XEXP", "(", "src", ",", "1", ")", ")", "||", "!", "IN_RANGE", "(", "INTVAL", "(", "XEXP", "(", "src", ",", "1", ")", ")", ",", "0", ",", "63", ")", ")", ")", "return", "false", ";", "if", "(", "GET_MODE", "(", "XEXP", "(", "src", ",", "1", ")", ")", "!=", "QImode", "&&", "!", "CONST_INT_P", "(", "XEXP", "(", "src", ",", "1", ")", ")", ")", "return", "false", ";", "break", ";", "case", "PLUS", ":", "case", "MINUS", ":", "case", "IOR", ":", "case", "XOR", ":", "case", "AND", ":", "if", "(", "!", "REG_P", "(", "XEXP", "(", "src", ",", "1", ")", ")", "&&", "!", "MEM_P", "(", "XEXP", "(", "src", ",", "1", ")", ")", "&&", "!", "CONST_INT_P", "(", "XEXP", "(", "src", ",", "1", ")", ")", ")", "return", "false", ";", "if", "(", "GET_MODE", "(", "XEXP", "(", "src", ",", "1", ")", ")", "!=", "DImode", "&&", "!", "CONST_INT_P", "(", "XEXP", "(", "src", ",", "1", ")", ")", ")", "return", "false", ";", "break", ";", "case", "NEG", ":", "case", "NOT", ":", "break", ";", "case", "REG", ":", "return", "true", ";", "case", "MEM", ":", "case", "CONST_INT", ":", "return", "REG_P", "(", "dst", ")", ";", "default", ":", "return", "false", ";", "}", "if", "(", "!", "REG_P", "(", "XEXP", "(", "src", ",", "0", ")", ")", "&&", "!", "MEM_P", "(", "XEXP", "(", "src", ",", "0", ")", ")", "&&", "!", "CONST_INT_P", "(", "XEXP", "(", "src", ",", "0", ")", ")", "&&", "(", "GET_CODE", "(", "src", ")", "!=", "AND", "||", "GET_CODE", "(", "XEXP", "(", "src", ",", "0", ")", ")", "!=", "NOT", "||", "!", "REG_P", "(", "XEXP", "(", "XEXP", "(", "src", ",", "0", ")", ",", "0", ")", ")", ")", ")", "return", "false", ";", "if", "(", "GET_MODE", "(", "XEXP", "(", "src", ",", "0", ")", ")", "!=", "DImode", "&&", "!", "CONST_INT_P", "(", "XEXP", "(", "src", ",", "0", ")", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["The", "DImode", "version", "of", "scalar_to_vector_candidate_p", "."], "TS_V_token": ["i386", "1", "1", "1", "0", "1", "1", "1", "0", "63", "1", "1", "1", "1", "1", "1", "1", "0", "0", "0", "0", "0", "0", "0", "0"], "File": "i3867", "Func": "dimode_scalar_to_vector_candidate_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2703, "Length": 473, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "nds32_legitimate_index_p", "(", "machine_mode", "outer_mode", ",", "rtx", "index", ",", "bool", "strict", ")", "{", "int", "regno", ";", "rtx", "op0", ";", "rtx", "op1", ";", "switch", "(", "GET_CODE", "(", "index", ")", ")", "{", "case", "REG", ":", "regno", "=", "REGNO", "(", "index", ")", ";", "if", "(", "strict", ")", "return", "REGNO_OK_FOR_INDEX_P", "(", "regno", ")", ";", "else", "return", "true", ";", "case", "CONST_INT", ":", "if", "(", "GET_MODE_SIZE", "(", "outer_mode", ")", "==", "1", ")", "{", "if", "(", "!", "satisfies_constraint_Is15", "(", "index", ")", ")", "return", "false", ";", "return", "true", ";", "}", "if", "(", "GET_MODE_SIZE", "(", "outer_mode", ")", "==", "2", "&&", "NDS32_HALF_WORD_ALIGN_P", "(", "INTVAL", "(", "index", ")", ")", ")", "{", "if", "(", "!", "satisfies_constraint_Is16", "(", "index", ")", ")", "return", "false", ";", "return", "true", ";", "}", "if", "(", "GET_MODE_SIZE", "(", "outer_mode", ")", "==", "4", "&&", "NDS32_SINGLE_WORD_ALIGN_P", "(", "INTVAL", "(", "index", ")", ")", ")", "{", "if", "(", "!", "satisfies_constraint_Is17", "(", "index", ")", ")", "return", "false", ";", "return", "true", ";", "}", "if", "(", "GET_MODE_SIZE", "(", "outer_mode", ")", "==", "8", "&&", "NDS32_SINGLE_WORD_ALIGN_P", "(", "INTVAL", "(", "index", ")", ")", ")", "{", "if", "(", "!", "satisfies_constraint_Is17", "(", "gen_int_mode", "(", "INTVAL", "(", "index", ")", "+", "4", ",", "SImode", ")", ")", ")", "return", "false", ";", "return", "true", ";", "}", "return", "false", ";", "case", "MULT", ":", "op0", "=", "XEXP", "(", "index", ",", "0", ")", ";", "op1", "=", "XEXP", "(", "index", ",", "1", ")", ";", "if", "(", "REG_P", "(", "op0", ")", "&&", "CONST_INT_P", "(", "op1", ")", ")", "{", "int", "multiplier", ";", "multiplier", "=", "INTVAL", "(", "op1", ")", ";", "if", "(", "multiplier", "!=", "1", "&&", "multiplier", "!=", "2", "&&", "multiplier", "!=", "4", ")", "return", "false", ";", "regno", "=", "REGNO", "(", "op0", ")", ";", "if", "(", "strict", ")", "return", "REGNO_OK_FOR_INDEX_P", "(", "regno", ")", ";", "else", "return", "true", ";", "}", "return", "false", ";", "case", "ASHIFT", ":", "op0", "=", "XEXP", "(", "index", ",", "0", ")", ";", "op1", "=", "XEXP", "(", "index", ",", "1", ")", ";", "if", "(", "REG_P", "(", "op0", ")", "&&", "CONST_INT_P", "(", "op1", ")", ")", "{", "int", "sv", ";", "sv", "=", "INTVAL", "(", "op1", ")", ";", "if", "(", "sv", "!=", "0", "&&", "sv", "!=", "1", "&&", "sv", "!=", "2", ")", "return", "false", ";", "regno", "=", "REGNO", "(", "op0", ")", ";", "if", "(", "strict", ")", "return", "REGNO_OK_FOR_INDEX_P", "(", "regno", ")", ";", "else", "return", "true", ";", "}", "return", "false", ";", "default", ":", "return", "false", ";", "}", "}", ""], "natrual_language": ["Function", "that", "check", "if", "'INDEX", "'", "is", "valid", "to", "be", "a", "index", "rtx", "for", "address", ".", "OUTER_MODE", ":", "Machine", "mode", "of", "outer", "address", "rtx", ".", "INDEX", ":", "Check", "if", "this", "rtx", "is", "valid", "to", "be", "a", "index", "for", "address", ".", "STRICT", ":", "If", "it", "is", "true", ",", "we", "are", "in", "reload", "pass", "or", "after", "reload", "pass", "."], "TS_V_token": ["nds32", "1", "2", "4", "8", "4", "0", "1", "1", "2", "4", "0", "1", "0", "1", "2"], "File": "nds322", "Func": "nds32_legitimate_index_p", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2704, "Length": 374, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "struct", "mips_cpu_info", "*", "mips_default_arch", "(", "void", ")", "{", "unsigned", "int", "i", ";", "for", "(", "i", "=", "0", ";", "i", "<", "ARRAY_SIZE", "(", "mips_cpu_info_table", ")", ";", "i", "++", ")", "if", "(", "strcmp", "(", "mips_cpu_info_table", "[", "i", "]", ".", "name", ",", "MIPS_CPU_STRING_DEFAULT", ")", "==", "0", ")", "return", "mips_cpu_info_table", "+", "i", ";", "gcc_unreachable", "(", ")", ";", "return", "mips_cpu_info_from_isa", "(", "MIPS_ISA_DEFAULT", ")", ";", "return", "mips_cpu_info_from_opt", "(", "MIPS_ARCH_OPTION_FROM_ABI", ")", ";", "}", ""], "natrual_language": ["Return", "a", "default", "mips_cpu_info", "entry", ",", "given", "that", "no", "-march=", "option", "was", "explicitly", "specified", "."], "TS_V_token": ["mips", "0", "0"], "File": "mips", "Func": "mips_default_arch", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2705, "Length": 68, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "generate_set_vrsave", "(", "rtx", "reg", ",", "rs6000_stack_t", "*", "info", ",", "int", "epiloguep", ")", "{", "int", "nclobs", ",", "i", ";", "rtx", "insn", ",", "clobs", "[", "TOTAL_ALTIVEC_REGS", "+", "1", "]", ";", "rtx", "vrsave", "=", "gen_rtx_REG", "(", "SImode", ",", "VRSAVE_REGNO", ")", ";", "clobs", "[", "0", "]", "=", "gen_rtx_SET", "(", "vrsave", ",", "gen_rtx_UNSPEC_VOLATILE", "(", "SImode", ",", "gen_rtvec", "(", "2", ",", "reg", ",", "vrsave", ")", ",", "UNSPECV_SET_VRSAVE", ")", ")", ";", "nclobs", "=", "1", ";", "for", "(", "i", "=", "FIRST_ALTIVEC_REGNO", ";", "i", "<=", "LAST_ALTIVEC_REGNO", ";", "++", "i", ")", "if", "(", "info", "->", "vrsave_mask", "&", "ALTIVEC_REG_BIT", "(", "i", ")", ")", "{", "if", "(", "!", "epiloguep", "||", "call_used_regs", "[", "i", "]", ")", "clobs", "[", "nclobs", "++", "]", "=", "gen_rtx_CLOBBER", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "V4SImode", ",", "i", ")", ")", ";", "else", "{", "rtx", "reg", "=", "gen_rtx_REG", "(", "V4SImode", ",", "i", ")", ";", "clobs", "[", "nclobs", "++", "]", "=", "gen_rtx_SET", "(", "reg", ",", "gen_rtx_UNSPEC", "(", "V4SImode", ",", "gen_rtvec", "(", "1", ",", "reg", ")", ",", "27", ")", ")", ";", "}", "}", "insn", "=", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "rtvec_alloc", "(", "nclobs", ")", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "nclobs", ";", "++", "i", ")", "XVECEXP", "(", "insn", ",", "0", ",", "i", ")", "=", "clobs", "[", "i", "]", ";", "return", "insn", ";", "}", ""], "natrual_language": ["Returns", "an", "insn", "that", "has", "a", "vrsave", "set", "operation", "with", "the", "appropriate", "CLOBBERs", "."], "TS_V_token": ["powerpcspe", "1", "0", "2", "1", "1", "27", "0", "0"], "File": "powerpcspe", "Func": "generate_set_vrsave", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2706, "Length": 205, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "char", "*", "xstormy16_output_cbranch_si", "(", "rtx", "op", ",", "const", "char", "*", "label", ",", "int", "reversed", ",", "rtx", "insn", ")", "{", "static", "char", "string", "[", "64", "]", ";", "int", "need_longbranch", "=", "get_attr_length", "(", "insn", ")", ">=", "8", ";", "int", "really_reversed", "=", "reversed", "^", "need_longbranch", ";", "const", "char", "*", "ccode", ";", "const", "char", "*", "template", ";", "char", "prevop", "[", "16", "]", ";", "enum", "rtx_code", "code", ";", "code", "=", "GET_CODE", "(", "op", ")", ";", "if", "(", "really_reversed", ")", "code", "=", "reverse_condition", "(", "code", ")", ";", "switch", "(", "code", ")", "{", "case", "EQ", ":", "ccode", "=", "\"z\"", ";", "break", ";", "case", "NE", ":", "ccode", "=", "\"nz\"", ";", "break", ";", "case", "GE", ":", "ccode", "=", "\"ge\"", ";", "break", ";", "case", "LT", ":", "ccode", "=", "\"lt\"", ";", "break", ";", "case", "GEU", ":", "ccode", "=", "\"nc\"", ";", "break", ";", "case", "LTU", ":", "ccode", "=", "\"c\"", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "switch", "(", "code", ")", "{", "case", "EQ", ":", "case", "NE", ":", "{", "int", "regnum", ";", "gcc_assert", "(", "GET_CODE", "(", "XEXP", "(", "op", ",", "0", ")", ")", "==", "REG", ")", ";", "regnum", "=", "REGNO", "(", "XEXP", "(", "op", ",", "0", ")", ")", ";", "sprintf", "(", "prevop", ",", "\"or %s,%s\"", ",", "reg_names", "[", "regnum", "]", ",", "reg_names", "[", "regnum", "+", "1", "]", ")", ";", "}", "break", ";", "case", "GE", ":", "case", "LT", ":", "case", "GEU", ":", "case", "LTU", ":", "strcpy", "(", "prevop", ",", "\"sbc %2,%3\"", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "if", "(", "need_longbranch", ")", "template", "=", "\"%s | b%s .+6 | jmpf %s\"", ";", "else", "template", "=", "\"%s | b%s %s\"", ";", "sprintf", "(", "string", ",", "template", ",", "prevop", ",", "ccode", ",", "label", ")", ";", "return", "string", ";", "}", ""], "natrual_language": ["Return", "the", "string", "to", "output", "a", "conditional", "branch", "to", "LABEL", ",", "which", "is", "the", "operand", "number", "of", "the", "label", ",", "but", "suitable", "for", "the", "tail", "of", "a", "SImode", "branch", ".", "OP", "is", "the", "conditional", "expression", "(", "OP", "is", "never", "NULL_RTX", ")", ".", "REVERSED", "is", "non-zero", "if", "we", "should", "reverse", "the", "sense", "of", "the", "comparison", ".", "INSN", "is", "the", "insn", "."], "TS_V_token": ["stormy16", "64", "8", "16", "\"z\"", "\"nz\"", "\"ge\"", "\"lt\"", "\"nc\"", "\"c\"", "0", "0", "\"or %s,%s\"", "1", "\"sbc %2,%3\"", "\"%s | b%s .+6 | jmpf %s\"", "\"%s | b%s %s\""], "File": "stormy163", "Func": "xstormy16_output_cbranch_si", "Target": "stormy16", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2707, "Length": 269, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCFragment", "*", "findAssociatedFragment", "(", ")", "const", "override", "{", "return", "getSubExpr", "(", ")", "->", "findAssociatedFragment", "(", ")", ";", "}", ""], "natrual_language": ["Find", "the", "``", "associated", "section", "''", "for", "this", "expression", ",", "which", "is", "currently", "defined", "as", "the", "absolute", "section", "for", "constants", ",", "or", "otherwise", "the", "section", "associated", "with", "the", "first", "defined", "symbol", "in", "the", "expression", "."], "TS_V_token": ["SIC"], "File": "SICMCExpr", "Func": "findAssociatedFragment", "Target": "SIC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2708, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "LLVM_DUMP_METHOD", "void", "dump", "(", "const", "MachineRegisterInfo", "*", "MRI", ")", "const", "{", "dbgs", "(", ")", "<<", "\"Registers: \"", ";", "bool", "First", "=", "true", ";", "for", "(", "unsigned", "Reg", ":", "Edges", ")", "{", "if", "(", "!", "First", ")", "dbgs", "(", ")", "<<", "\", \"", ";", "First", "=", "false", ";", "dbgs", "(", ")", "<<", "printReg", "(", "Reg", ",", "MRI", "->", "getTargetRegisterInfo", "(", ")", ")", ";", "}", "dbgs", "(", ")", "<<", "\"\\n\"", "<<", "\"Instructions:\"", ";", "for", "(", "MachineInstr", "*", "MI", ":", "Instrs", ")", "{", "dbgs", "(", ")", "<<", "\"\\n \"", ";", "MI", "->", "print", "(", "dbgs", "(", ")", ")", ";", "}", "dbgs", "(", ")", "<<", "\"\\n\"", ";", "}", ""], "natrual_language": ["Dump", "the", "plan", "to", "stderr", "(", "for", "debugging", ")", "."], "TS_V_token": ["X86", "\"Registers: \"", "\", \"", "\"\\n\"", "\"Instructions:\"", "\"\\n \"", "\"\\n\""], "File": "X86DomainReassignment19", "Func": "dump", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2709, "Length": 101, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "mayBeEmittedAsTailCall", "(", "CallInst", "*", "CI", ")", "const", "{", "if", "(", "!", "CI", "->", "isTailCall", "(", ")", "||", "getTargetMachine", "(", ")", ".", "Options", ".", "DisableTailCalls", ")", "return", "false", ";", "CallSite", "CS", "(", "CI", ")", ";", "CallingConv", "::", "ID", "CalleeCC", "=", "CS", ".", "getCallingConv", "(", ")", ";", "if", "(", "!", "IsTailCallConvention", "(", "CalleeCC", ")", "&&", "!", "IsCCallConvention", "(", "CalleeCC", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "may", "be", "able", "emit", "the", "call", "instruction", "as", "a", "tail", "call", "."], "TS_V_token": ["X86", "X86"], "File": "X86ISelLowering (2)", "Func": "mayBeEmittedAsTailCall", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2710, "Length": 69, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "isCandidateToMergeOrPair", "(", "MachineInstr", "*", "MI", ")", "const", "{", "if", "(", "MI", "->", "hasOrderedMemoryRef", "(", ")", ")", "return", "false", ";", "assert", "(", "MI", "->", "getOperand", "(", "1", ")", ".", "isReg", "(", ")", "&&", "\"Expected a reg operand.\"", ")", ";", "if", "(", "!", "MI", "->", "getOperand", "(", "2", ")", ".", "isImm", "(", ")", ")", "return", "false", ";", "unsigned", "BaseReg", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "&", "getRegisterInfo", "(", ")", ";", "if", "(", "MI", "->", "modifiesRegister", "(", "BaseReg", ",", "TRI", ")", ")", "return", "false", ";", "if", "(", "isLdStPairSuppressed", "(", "MI", ")", ")", "return", "false", ";", "if", "(", "Subtarget", ".", "avoidQuadLdStPairs", "(", ")", ")", "{", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "AArch64", "::", "LDURQi", ":", "case", "AArch64", "::", "STURQi", ":", "case", "AArch64", "::", "LDRQui", ":", "case", "AArch64", "::", "STRQui", ":", "return", "false", ";", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "this", "is", "a", "load/store", "that", "can", "be", "potentially", "paired/merged", "."], "TS_V_token": ["AArch64", "AArch64", "1", "\"Expected a reg operand.\"", "2", "1", "AArch64::LDURQi", "AArch64::STURQi", "AArch64::LDRQui", "AArch64::STRQui"], "File": "AArch64InstrInfo110", "Func": "isCandidateToMergeOrPair", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2711, "Length": 154, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "ix86_stack_protect_guard", "(", "void", ")", "{", "if", "(", "TARGET_SSP_TLS_GUARD", ")", "return", "NULL_TREE", ";", "return", "default_stack_protect_guard", "(", ")", ";", "}", ""], "natrual_language": ["If", "using", "TLS", "guards", ",", "do", "n't", "waste", "time", "creating", "and", "expanding", "__stack_chk_guard", "decl", "and", "MEM", "as", "we", "are", "going", "to", "ignore", "it", "."], "TS_V_token": ["i386"], "File": "i3866", "Func": "ix86_stack_protect_guard", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2712, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_debug_mode_dependent_address", "(", "const_rtx", "addr", ")", "{", "bool", "ret", "=", "rs6000_mode_dependent_address", "(", "addr", ")", ";", "fprintf", "(", "stderr", ",", "\"\\nrs6000_mode_dependent_address: ret = %s\\n\"", ",", "ret", "?", "\"true\"", ":", "\"false\"", ")", ";", "debug_rtx", "(", "addr", ")", ";", "return", "ret", ";", "}", ""], "natrual_language": ["Debug", "version", "of", "rs6000_mode_dependent_address", "."], "TS_V_token": ["powerpcspe", "\"\\nrs6000_mode_dependent_address: ret = %s\\n\"", "\"true\"", "\"false\""], "File": "powerpcspe", "Func": "rs6000_debug_mode_dependent_address", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2713, "Length": 38, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "SystemZTargetLowering", "::", "getRegForInlineAsmConstraint", "(", "const", "std", "::", "string", "&", "Constraint", ",", "EVT", "VT", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "default", ":", "break", ";", "case", "'d'", ":", "case", "'r'", ":", "if", "(", "VT", "==", "MVT", "::", "i64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "GR64BitRegClass", ")", ";", "else", "if", "(", "VT", "==", "MVT", "::", "i128", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "GR128BitRegClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "GR32BitRegClass", ")", ";", "case", "'a'", ":", "if", "(", "VT", "==", "MVT", "::", "i64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "ADDR64BitRegClass", ")", ";", "else", "if", "(", "VT", "==", "MVT", "::", "i128", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "ADDR128BitRegClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "ADDR32BitRegClass", ")", ";", "case", "'f'", ":", "if", "(", "VT", "==", "MVT", "::", "f64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "FP64BitRegClass", ")", ";", "else", "if", "(", "VT", "==", "MVT", "::", "f128", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "FP128BitRegClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "SystemZ", "::", "FP32BitRegClass", ")", ";", "}", "}", "return", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "Constraint", ",", "VT", ")", ";", "}", ""], "natrual_language": ["Given", "a", "physical", "register", "constraint", "(", "e.g", "."], "TS_V_token": ["SystemZ", "SystemZ", "1", "0", "MVT::i64", "0U", "SystemZ::GR64BitRegClass", "MVT::i128", "0U", "SystemZ::GR128BitRegClass", "0U", "SystemZ::GR32BitRegClass", "MVT::i64", "0U", "SystemZ::ADDR64BitRegClass", "MVT::i128", "0U", "SystemZ::ADDR128BitRegClass", "0U", "SystemZ::ADDR32BitRegClass", "MVT::f64", "0U", "SystemZ::FP64BitRegClass", "MVT::f128", "0U", "SystemZ::FP128BitRegClass", "0U", "SystemZ::FP32BitRegClass"], "File": "SystemZISelLowering118", "Func": "getRegForInlineAsmConstraint", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2714, "Length": 242, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86InstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "Register", "SrcReg", ",", "bool", "isKill", ",", "int", "FrameIdx", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "const", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "assert", "(", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectSize", "(", "FrameIdx", ")", ">=", "TRI", "->", "getSpillSize", "(", "*", "RC", ")", "&&", "\"Stack slot too small for store\"", ")", ";", "if", "(", "RC", "->", "getID", "(", ")", "==", "X86", "::", "TILERegClassID", ")", "{", "unsigned", "Opc", "=", "X86", "::", "TILESTORED", ";", "MachineRegisterInfo", "&", "RegInfo", "=", "MBB", ".", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "Register", "VirtReg", "=", "RegInfo", ".", "createVirtualRegister", "(", "&", "X86", "::", "GR64_NOSPRegClass", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DebugLoc", "(", ")", ",", "get", "(", "X86", "::", "MOV64ri", ")", ",", "VirtReg", ")", ".", "addImm", "(", "64", ")", ";", "MachineInstr", "*", "NewMI", "=", "addFrameReference", "(", "BuildMI", "(", "MBB", ",", "MI", ",", "DebugLoc", "(", ")", ",", "get", "(", "Opc", ")", ")", ",", "FrameIdx", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ";", "MachineOperand", "&", "MO", "=", "NewMI", "->", "getOperand", "(", "2", ")", ";", "MO", ".", "setReg", "(", "VirtReg", ")", ";", "MO", ".", "setIsKill", "(", "true", ")", ";", "}", "else", "if", "(", "RC", "->", "getID", "(", ")", "==", "X86", "::", "TILECFGRegClassID", ")", "{", "unsigned", "Opc", "=", "X86", "::", "PSTTILECFG", ";", "addFrameReference", "(", "BuildMI", "(", "MBB", ",", "MI", ",", "DebugLoc", "(", ")", ",", "get", "(", "Opc", ")", ")", ",", "FrameIdx", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ";", "}", "else", "{", "unsigned", "Alignment", "=", "std", "::", "max", "<", "uint32_t", ">", "(", "TRI", "->", "getSpillSize", "(", "*", "RC", ")", ",", "16", ")", ";", "bool", "isAligned", "=", "(", "Subtarget", ".", "getFrameLowering", "(", ")", "->", "getStackAlign", "(", ")", ">=", "Alignment", ")", "||", "RI", ".", "canRealignStack", "(", "MF", ")", ";", "unsigned", "Opc", "=", "getStoreRegOpcode", "(", "SrcReg", ",", "RC", ",", "isAligned", ",", "Subtarget", ")", ";", "addFrameReference", "(", "BuildMI", "(", "MBB", ",", "MI", ",", "DebugLoc", "(", ")", ",", "get", "(", "Opc", ")", ")", ",", "FrameIdx", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ";", "}", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["X86", "X86", "\"Stack slot too small for store\"", "X86::TILERegClassID", "X86::TILESTORED", "X86::GR64_NOSPRegClass", "X86::MOV64ri", "64", "2", "X86::TILECFGRegClassID", "X86::PSTTILECFG", "16"], "File": "X86InstrInfo140", "Func": "storeRegToStackSlot", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2715, "Length": 351, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "union_uses", "(", "swap_web_entry", "*", "insn_entry", ",", "rtx", "insn", ",", "df_ref", "def", ")", "{", "struct", "df_link", "*", "link", "=", "DF_REF_CHAIN", "(", "def", ")", ";", "if", "(", "!", "link", ")", "insn_entry", "[", "INSN_UID", "(", "insn", ")", "]", ".", "is_live_out", "=", "1", ";", "while", "(", "link", ")", "{", "if", "(", "DF_REF_IS_ARTIFICIAL", "(", "link", "->", "ref", ")", ")", "insn_entry", "[", "INSN_UID", "(", "insn", ")", "]", ".", "is_live_out", "=", "1", ";", "if", "(", "DF_REF_INSN_INFO", "(", "link", "->", "ref", ")", ")", "{", "rtx", "use_insn", "=", "DF_REF_INSN", "(", "link", "->", "ref", ")", ";", "if", "(", "NONDEBUG_INSN_P", "(", "use_insn", ")", ")", "unionfind_union", "(", "insn_entry", "+", "INSN_UID", "(", "insn", ")", ",", "insn_entry", "+", "INSN_UID", "(", "use_insn", ")", ")", ";", "}", "link", "=", "link", "->", "next", ";", "}", "}", ""], "natrual_language": ["Union", "INSN", "with", "all", "insns", "containing", "uses", "reached", "from", "DEF", ".", "Detect", "whether", "DEF", "is", "live-out", "from", "the", "current", "function", "."], "TS_V_token": ["rs6000", "1", "1"], "File": "rs6000-p8swap1", "Func": "union_uses", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2716, "Length": 121, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "classof", "(", "const", "MCExpr", "*", "E", ")", "{", "return", "E", "->", "getKind", "(", ")", "==", "MCExpr", "::", "Target", ";", "}", ""], "natrual_language": ["Methods", "for", "support", "type", "inquiry", "through", "isa", ",", "cast", ",", "and", "dyn_cast", ":"], "TS_V_token": ["Lanai"], "File": "LanaiMCExpr", "Func": "classof", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2717, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86InstrInfo", "::", "expandPostRAPseudo", "(", "MachineBasicBlock", "::", "iterator", "MI", ")", "const", "{", "bool", "HasAVX", "=", "TM", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "hasAVX", "(", ")", ";", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "case", "X86", "::", "V_SET0", ":", "return", "Expand2AddrUndef", "(", "MI", ",", "get", "(", "HasAVX", "?", "X86", "::", "VPXORrr", ":", "X86", "::", "PXORrr", ")", ")", ";", "case", "X86", "::", "TEST8ri_NOREX", ":", "MI", "->", "setDesc", "(", "get", "(", "X86", "::", "TEST8ri", ")", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["This", "function", "is", "called", "for", "all", "pseudo", "instructions", "that", "remain", "after", "register", "allocation", "."], "TS_V_token": ["X86", "X86", "X86", "X86::V_SET0", "X86::VPXORrr", "X86::PXORrr", "X86::TEST8ri_NOREX", "X86::TEST8ri"], "File": "X86InstrInfo139", "Func": "expandPostRAPseudo", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2718, "Length": 86, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "{", "return", "\"Kudeyar Assembly Printer\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["Kudeyar", "\"Kudeyar Assembly Printer\""], "File": "KudeyarAsmPrinter", "Func": "getPassName", "Target": "Kudeyar", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2719, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCLOHType", "getKind", "(", ")", "const", "{", "return", "Kind", ";", "}", ""], "natrual_language": ["Returns", "the", "Kind", "of", "lane", "offset", "."], "TS_V_token": ["AArch64"], "File": "AArch64MachineFunctionInfo", "Func": "getKind", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2720, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ScheduleDAGInstrs", "*", "createPostMachineScheduler", "(", "MachineSchedContext", "*", "C", ")", "const", "override", "{", "const", "AArch64Subtarget", "&", "ST", "=", "C", "->", "MF", "->", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ";", "if", "(", "ST", ".", "hasFuseAES", "(", ")", "||", "ST", ".", "hasFuseLiterals", "(", ")", ")", "{", "ScheduleDAGMI", "*", "DAG", "=", "createGenericSchedPostRA", "(", "C", ")", ";", "DAG", "->", "addMutation", "(", "createAArch64MacroFusionDAGMutation", "(", ")", ")", ";", "return", "DAG", ";", "}", "return", "nullptr", ";", "}", ""], "natrual_language": ["Similar", "to", "createMachineScheduler", "but", "used", "when", "postRA", "machine", "scheduling", "is", "enabled", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64TargetMachine20", "Func": "createPostMachineScheduler", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2721, "Length": 68, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "CCAssignFn", "*", "AArch64TargetLowering", "::", "CCAssignFnForCall", "(", "CallingConv", "::", "ID", "CC", ",", "bool", "IsVarArg", ")", "const", "{", "switch", "(", "CC", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unsupported calling convention.\"", ")", ";", "case", "CallingConv", "::", "WebKit_JS", ":", "return", "CC_AArch64_WebKit_JS", ";", "case", "CallingConv", "::", "GHC", ":", "return", "CC_AArch64_GHC", ";", "case", "CallingConv", "::", "C", ":", "case", "CallingConv", "::", "Fast", ":", "case", "CallingConv", "::", "PreserveMost", ":", "case", "CallingConv", "::", "CXX_FAST_TLS", ":", "case", "CallingConv", "::", "Swift", ":", "if", "(", "!", "Subtarget", "->", "isTargetDarwin", "(", ")", ")", "return", "CC_AArch64_AAPCS", ";", "return", "IsVarArg", "?", "CC_AArch64_DarwinPCS_VarArg", ":", "CC_AArch64_DarwinPCS", ";", "}", "}", ""], "natrual_language": ["Selects", "the", "correct", "CCAssignFn", "for", "a", "given", "CallingConvention", "value", "."], "TS_V_token": ["AArch64", "AArch64", "\"Unsupported calling convention.\"", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64ISelLowering119", "Func": "CCAssignFnForCall", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2722, "Length": 90, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "emit_cbcond_insn", "(", "enum", "rtx_code", "code", ",", "rtx", "op0", ",", "rtx", "op1", ",", "rtx", "label", ")", "{", "rtx", "if_then_else", ";", "if_then_else", "=", "gen_rtx_IF_THEN_ELSE", "(", "VOIDmode", ",", "gen_rtx_fmt_ee", "(", "code", ",", "GET_MODE", "(", "op0", ")", ",", "op0", ",", "op1", ")", ",", "gen_rtx_LABEL_REF", "(", "VOIDmode", ",", "label", ")", ",", "pc_rtx", ")", ";", "emit_jump_insn", "(", "gen_rtx_SET", "(", "pc_rtx", ",", "if_then_else", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "a", "conditional", "jump", "insn", "for", "the", "UA2011", "architecture", "using", "comparison", "code", "CODE", "and", "jump", "target", "LABEL", ".", "This", "function", "exists", "to", "take", "advantage", "of", "the", "UA2011", "Compare", "and", "Branch", "insns", "."], "TS_V_token": ["sparc"], "File": "sparc", "Func": "emit_cbcond_insn", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2723, "Length": 62, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "FPS", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "bool", "FPIsUsed", "=", "false", ";", "static_assert", "(", "X86", "::", "FP6", "==", "X86", "::", "FP0", "+", "6", ",", "\"Register enums aren't sorted right!\"", ")", ";", "const", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<=", "6", ";", "++", "i", ")", "if", "(", "!", "MRI", ".", "reg_nodbg_empty", "(", "X86", "::", "FP0", "+", "i", ")", ")", "{", "FPIsUsed", "=", "true", ";", "break", ";", "}", "if", "(", "!", "FPIsUsed", ")", "return", "false", ";", "Bundles", "=", "&", "getAnalysis", "<", "EdgeBundles", ">", "(", ")", ";", "TII", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "bundleCFG", "(", "MF", ")", ";", "StackTop", "=", "0", ";", "df_iterator_default_set", "<", "MachineBasicBlock", "*", ">", "Processed", ";", "MachineBasicBlock", "*", "Entry", "=", "&", "MF", ".", "front", "(", ")", ";", "LiveBundle", "&", "Bundle", "=", "LiveBundles", "[", "Bundles", "->", "getBundle", "(", "Entry", "->", "getNumber", "(", ")", ",", "false", ")", "]", ";", "if", "(", "(", "Entry", "->", "getParent", "(", ")", "->", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "X86_RegCall", ")", "&&", "(", "Bundle", ".", "Mask", "&&", "!", "Bundle", ".", "FixCount", ")", ")", "{", "assert", "(", "(", "Bundle", ".", "Mask", "&", "0xFE", ")", "==", "0", "&&", "\"Only FP0 could be passed as an argument\"", ")", ";", "Bundle", ".", "FixCount", "=", "1", ";", "Bundle", ".", "FixStack", "[", "0", "]", "=", "0", ";", "}", "bool", "Changed", "=", "false", ";", "for", "(", "MachineBasicBlock", "*", "BB", ":", "depth_first_ext", "(", "Entry", ",", "Processed", ")", ")", "Changed", "|=", "processBasicBlock", "(", "MF", ",", "*", "BB", ")", ";", "if", "(", "MF", ".", "size", "(", ")", "!=", "Processed", ".", "size", "(", ")", ")", "for", "(", "MachineBasicBlock", "&", "BB", ":", "MF", ")", "if", "(", "Processed", ".", "insert", "(", "&", "BB", ")", ".", "second", ")", "Changed", "|=", "processBasicBlock", "(", "MF", ",", "BB", ")", ";", "LiveBundles", ".", "clear", "(", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86::FP6", "X86::FP0", "6", "\"Register enums aren't sorted right!\"", "0", "6", "X86::FP0", "0", "X86", "0xFE", "0", "\"Only FP0 could be passed as an argument\"", "1", "0", "0"], "File": "X86FloatingPoint49", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2724, "Length": 300, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineInstr", "*", "PPCInstrInfo", "::", "findLoopInstr", "(", "MachineBasicBlock", "&", "PreHeader", ")", "const", "{", "unsigned", "LOOPi", "=", "(", "Subtarget", ".", "isPPC64", "(", ")", "?", "PPC", "::", "MTCTR8loop", ":", "PPC", "::", "MTCTRloop", ")", ";", "for", "(", "auto", "&", "I", ":", "PreHeader", ".", "instrs", "(", ")", ")", "if", "(", "I", ".", "getOpcode", "(", ")", "==", "LOOPi", ")", "return", "&", "I", ";", "return", "nullptr", ";", "}", ""], "natrual_language": ["Find", "the", "hardware", "loop", "instruction", "used", "to", "set-up", "the", "specified", "loop", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC::MTCTR8loop", "PPC::MTCTRloop"], "File": "PPCInstrInfo115", "Func": "findLoopInstr", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2725, "Length": 61, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ia64_asm_unwind_emit", "(", "FILE", "*", "out_file", ",", "rtx_insn", "*", "insn", ")", "{", "bool", "unwind", "=", "ia64_except_unwind_info", "(", "&", "global_options", ")", "==", "UI_TARGET", ";", "bool", "frame", "=", "dwarf2out_do_frame", "(", ")", ";", "rtx", "note", ",", "pat", ";", "bool", "handled_one", ";", "if", "(", "!", "unwind", "&&", "!", "frame", ")", "return", ";", "if", "(", "NOTE_INSN_BASIC_BLOCK_P", "(", "insn", ")", ")", "{", "last_block", "=", "NOTE_BASIC_BLOCK", "(", "insn", ")", "->", "next_bb", "==", "EXIT_BLOCK_PTR_FOR_FN", "(", "cfun", ")", ";", "if", "(", "need_copy_state", ")", "{", "if", "(", "unwind", ")", "{", "fprintf", "(", "out_file", ",", "\"\\t.body\\n\"", ")", ";", "fprintf", "(", "out_file", ",", "\"\\t.copy_state %d\\n\"", ",", "cfun", "->", "machine", "->", "state_num", ")", ";", "}", "need_copy_state", "=", "false", ";", "}", "}", "if", "(", "NOTE_P", "(", "insn", ")", "||", "!", "RTX_FRAME_RELATED_P", "(", "insn", ")", ")", "return", ";", "if", "(", "INSN_CODE", "(", "insn", ")", "==", "CODE_FOR_alloc", ")", "{", "rtx", "dest", "=", "SET_DEST", "(", "XVECEXP", "(", "PATTERN", "(", "insn", ")", ",", "0", ",", "0", ")", ")", ";", "int", "dest_regno", "=", "REGNO", "(", "dest", ")", ";", "if", "(", "dest_regno", "==", "current_frame_info", ".", "r", "[", "reg_save_ar_pfs", "]", ")", "{", "if", "(", "unwind", ")", "fprintf", "(", "out_file", ",", "\"\\t.save ar.pfs, r%d\\n\"", ",", "ia64_dbx_register_number", "(", "dest_regno", ")", ")", ";", "}", "else", "{", "if", "(", "current_frame_info", ".", "total_size", "==", "0", "&&", "!", "frame_pointer_needed", ")", "process_epilogue", "(", "out_file", ",", "insn", ",", "unwind", ",", "frame", ")", ";", "if", "(", "unwind", ")", "fprintf", "(", "out_file", ",", "\"\\t.prologue\\n\"", ")", ";", "}", "return", ";", "}", "handled_one", "=", "false", ";", "for", "(", "note", "=", "REG_NOTES", "(", "insn", ")", ";", "note", ";", "note", "=", "XEXP", "(", "note", ",", "1", ")", ")", "switch", "(", "REG_NOTE_KIND", "(", "note", ")", ")", "{", "case", "REG_CFA_ADJUST_CFA", ":", "pat", "=", "XEXP", "(", "note", ",", "0", ")", ";", "if", "(", "pat", "==", "NULL", ")", "pat", "=", "PATTERN", "(", "insn", ")", ";", "process_cfa_adjust_cfa", "(", "out_file", ",", "pat", ",", "insn", ",", "unwind", ",", "frame", ")", ";", "handled_one", "=", "true", ";", "break", ";", "case", "REG_CFA_OFFSET", ":", "pat", "=", "XEXP", "(", "note", ",", "0", ")", ";", "if", "(", "pat", "==", "NULL", ")", "pat", "=", "PATTERN", "(", "insn", ")", ";", "process_cfa_offset", "(", "out_file", ",", "pat", ",", "unwind", ")", ";", "handled_one", "=", "true", ";", "break", ";", "case", "REG_CFA_REGISTER", ":", "pat", "=", "XEXP", "(", "note", ",", "0", ")", ";", "if", "(", "pat", "==", "NULL", ")", "pat", "=", "PATTERN", "(", "insn", ")", ";", "process_cfa_register", "(", "out_file", ",", "pat", ",", "unwind", ")", ";", "handled_one", "=", "true", ";", "break", ";", "case", "REG_FRAME_RELATED_EXPR", ":", "case", "REG_CFA_DEF_CFA", ":", "case", "REG_CFA_EXPRESSION", ":", "case", "REG_CFA_RESTORE", ":", "case", "REG_CFA_SET_VDRAP", ":", "gcc_unreachable", "(", ")", ";", "default", ":", "break", ";", "}", "gcc_assert", "(", "handled_one", ")", ";", "}", ""], "natrual_language": ["This", "function", "looks", "at", "a", "single", "insn", "and", "emits", "any", "directives", "required", "to", "unwind", "this", "insn", "."], "TS_V_token": ["ia64", "\"\\t.body\\n\"", "\"\\t.copy_state %d\\n\"", "0", "0", "\"\\t.save ar.pfs, r%d\\n\"", "0", "\"\\t.prologue\\n\"", "1", "0", "0", "0"], "File": "ia64", "Func": "ia64_asm_unwind_emit", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2726, "Length": 413, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_emit_ldrd_pop", "(", "unsigned", "long", "saved_regs_mask", ")", "{", "int", "j", "=", "0", ";", "int", "offset", "=", "0", ";", "rtx", "par", "=", "NULL_RTX", ";", "rtx", "dwarf", "=", "NULL_RTX", ";", "rtx", "tmp", ",", "mem", ";", "gcc_assert", "(", "!", "(", "(", "saved_regs_mask", "&", "(", "1", "<<", "SP_REGNUM", ")", ")", ")", ")", ";", "j", "=", "0", ";", "while", "(", "j", "<=", "LAST_ARM_REGNUM", ")", "if", "(", "saved_regs_mask", "&", "(", "1", "<<", "j", ")", ")", "{", "if", "(", "(", "j", "%", "2", ")", "==", "0", "&&", "(", "saved_regs_mask", "&", "(", "1", "<<", "(", "j", "+", "1", ")", ")", ")", "&&", "(", "j", "+", "1", ")", "!=", "PC_REGNUM", ")", "{", "if", "(", "offset", ">", "0", ")", "mem", "=", "gen_frame_mem", "(", "DImode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ";", "else", "mem", "=", "gen_frame_mem", "(", "DImode", ",", "stack_pointer_rtx", ")", ";", "tmp", "=", "gen_rtx_SET", "(", "DImode", ",", "gen_rtx_REG", "(", "DImode", ",", "j", ")", ",", "mem", ")", ";", "tmp", "=", "emit_insn", "(", "tmp", ")", ";", "RTX_FRAME_RELATED_P", "(", "tmp", ")", "=", "1", ";", "dwarf", "=", "alloc_reg_note", "(", "REG_CFA_RESTORE", ",", "gen_rtx_REG", "(", "SImode", ",", "j", ")", ",", "NULL_RTX", ")", ";", "dwarf", "=", "alloc_reg_note", "(", "REG_CFA_RESTORE", ",", "gen_rtx_REG", "(", "SImode", ",", "j", "+", "1", ")", ",", "dwarf", ")", ";", "REG_NOTES", "(", "tmp", ")", "=", "dwarf", ";", "offset", "+=", "8", ";", "j", "+=", "2", ";", "}", "else", "if", "(", "j", "!=", "PC_REGNUM", ")", "{", "if", "(", "offset", ">", "0", ")", "mem", "=", "gen_frame_mem", "(", "SImode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ";", "else", "mem", "=", "gen_frame_mem", "(", "SImode", ",", "stack_pointer_rtx", ")", ";", "tmp", "=", "gen_rtx_SET", "(", "SImode", ",", "gen_rtx_REG", "(", "SImode", ",", "j", ")", ",", "mem", ")", ";", "tmp", "=", "emit_insn", "(", "tmp", ")", ";", "RTX_FRAME_RELATED_P", "(", "tmp", ")", "=", "1", ";", "REG_NOTES", "(", "tmp", ")", "=", "alloc_reg_note", "(", "REG_CFA_RESTORE", ",", "gen_rtx_REG", "(", "SImode", ",", "j", ")", ",", "NULL_RTX", ")", ";", "offset", "+=", "4", ";", "j", "+=", "1", ";", "}", "else", "j", "++", ";", "}", "else", "j", "++", ";", "if", "(", "offset", ">", "0", ")", "{", "tmp", "=", "gen_rtx_SET", "(", "Pmode", ",", "stack_pointer_rtx", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ";", "tmp", "=", "emit_insn", "(", "tmp", ")", ";", "arm_add_cfa_adjust_cfa_note", "(", "tmp", ",", "offset", ",", "stack_pointer_rtx", ",", "stack_pointer_rtx", ")", ";", "offset", "=", "0", ";", "}", "if", "(", "saved_regs_mask", "&", "(", "1", "<<", "PC_REGNUM", ")", ")", "{", "par", "=", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "rtvec_alloc", "(", "2", ")", ")", ";", "XVECEXP", "(", "par", ",", "0", ",", "0", ")", "=", "ret_rtx", ";", "tmp", "=", "gen_rtx_SET", "(", "SImode", ",", "gen_rtx_REG", "(", "SImode", ",", "PC_REGNUM", ")", ",", "gen_frame_mem", "(", "SImode", ",", "gen_rtx_POST_INC", "(", "SImode", ",", "stack_pointer_rtx", ")", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "tmp", ")", "=", "1", ";", "XVECEXP", "(", "par", ",", "0", ",", "1", ")", "=", "tmp", ";", "par", "=", "emit_jump_insn", "(", "par", ")", ";", "dwarf", "=", "alloc_reg_note", "(", "REG_CFA_RESTORE", ",", "gen_rtx_REG", "(", "SImode", ",", "PC_REGNUM", ")", ",", "NULL_RTX", ")", ";", "REG_NOTES", "(", "par", ")", "=", "dwarf", ";", "arm_add_cfa_adjust_cfa_note", "(", "par", ",", "UNITS_PER_WORD", ",", "stack_pointer_rtx", ",", "stack_pointer_rtx", ")", ";", "}", "}", ""], "natrual_language": ["LDRD", "in", "ARM", "mode", "needs", "consecutive", "registers", "as", "operands", ".", "This", "function", "emits", "LDRD", "whenever", "possible", ",", "otherwise", "it", "emits", "single-word", "loads", ".", "It", "uses", "offset", "addressing", "and", "then", "generates", "one", "separate", "stack", "udpate", ".", "This", "provides", "more", "scheduling", "freedom", ",", "compared", "to", "writeback", "on", "every", "load", ".", "However", ",", "if", "the", "function", "returns", "using", "load", "into", "PC", "directly", "(", "i.e.", ",", "if", "PC", "is", "in", "SAVED_REGS_MASK", ")", ",", "the", "stack", "needs", "to", "be", "updated", "before", "the", "last", "load", ".", "TODO", ":", "Add", "a", "peephole", "optimization", "to", "recognize", "the", "new", "epilogue", "sequence", "as", "an", "LDM", "instruction", "whenever", "possible", ".", "TODO", ":", "Add", "peephole", "optimization", "to", "merge", "the", "load", "at", "stack-offset", "zero", "with", "the", "stack", "update", "instruction", "using", "load", "with", "writeback", "in", "post-index", "addressing", "mode", "."], "TS_V_token": ["arm", "0", "0", "1", "0", "1", "2", "0", "1", "1", "1", "0", "1", "1", "8", "2", "0", "1", "4", "1", "0", "0", "1", "2", "0", "0", "1", "0", "1"], "File": "arm4", "Func": "arm_emit_ldrd_pop", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2727, "Length": 492, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "DEBUG_FUNCTION", "char", "*", "rs6000_debug_addr_mask", "(", "addr_mask_type", "mask", ",", "bool", "keep_spaces", ")", "{", "static", "char", "ret", "[", "8", "]", ";", "char", "*", "p", "=", "ret", ";", "if", "(", "(", "mask", "&", "RELOAD_REG_VALID", ")", "!=", "0", ")", "*", "p", "++", "=", "'v'", ";", "else", "if", "(", "keep_spaces", ")", "*", "p", "++", "=", "' '", ";", "if", "(", "(", "mask", "&", "RELOAD_REG_MULTIPLE", ")", "!=", "0", ")", "*", "p", "++", "=", "'m'", ";", "else", "if", "(", "keep_spaces", ")", "*", "p", "++", "=", "' '", ";", "if", "(", "(", "mask", "&", "RELOAD_REG_INDEXED", ")", "!=", "0", ")", "*", "p", "++", "=", "'i'", ";", "else", "if", "(", "keep_spaces", ")", "*", "p", "++", "=", "' '", ";", "if", "(", "(", "mask", "&", "RELOAD_REG_QUAD_OFFSET", ")", "!=", "0", ")", "*", "p", "++", "=", "'O'", ";", "else", "if", "(", "(", "mask", "&", "RELOAD_REG_OFFSET", ")", "!=", "0", ")", "*", "p", "++", "=", "'o'", ";", "else", "if", "(", "keep_spaces", ")", "*", "p", "++", "=", "' '", ";", "if", "(", "(", "mask", "&", "RELOAD_REG_PRE_INCDEC", ")", "!=", "0", ")", "*", "p", "++", "=", "'+'", ";", "else", "if", "(", "keep_spaces", ")", "*", "p", "++", "=", "' '", ";", "if", "(", "(", "mask", "&", "RELOAD_REG_PRE_MODIFY", ")", "!=", "0", ")", "*", "p", "++", "=", "'+'", ";", "else", "if", "(", "keep_spaces", ")", "*", "p", "++", "=", "' '", ";", "if", "(", "(", "mask", "&", "RELOAD_REG_AND_M16", ")", "!=", "0", ")", "*", "p", "++", "=", "'&'", ";", "else", "if", "(", "keep_spaces", ")", "*", "p", "++", "=", "' '", ";", "*", "p", "=", "'\\0'", ";", "return", "ret", ";", "}", ""], "natrual_language": ["Inner", "function", "printing", "just", "the", "address", "mask", "for", "a", "particular", "reload", "register", "class", "."], "TS_V_token": ["powerpcspe", "8", "0", "0", "0", "0", "0", "0", "0", "0"], "File": "powerpcspe", "Func": "rs6000_debug_addr_mask", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2728, "Length": 240, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsCodeEmitter", "::", "getMachineOpValue", "(", "const", "MachineInstr", "&", "MI", ",", "const", "MachineOperand", "&", "MO", ")", "const", "{", "if", "(", "MO", ".", "isReg", "(", ")", ")", "return", "getMipsRegisterNumbering", "(", "MO", ".", "getReg", "(", ")", ")", ";", "else", "if", "(", "MO", ".", "isImm", "(", ")", ")", "return", "static_cast", "<", "unsigned", ">", "(", "MO", ".", "getImm", "(", ")", ")", ";", "else", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "emitGlobalAddress", "(", "MO", ".", "getGlobal", "(", ")", ",", "getRelocation", "(", "MI", ",", "MO", ")", ",", "true", ")", ";", "else", "if", "(", "MO", ".", "isSymbol", "(", ")", ")", "emitExternalSymbolAddress", "(", "MO", ".", "getSymbolName", "(", ")", ",", "getRelocation", "(", "MI", ",", "MO", ")", ")", ";", "else", "if", "(", "MO", ".", "isCPI", "(", ")", ")", "emitConstPoolAddress", "(", "MO", ".", "getIndex", "(", ")", ",", "getRelocation", "(", "MI", ",", "MO", ")", ")", ";", "else", "if", "(", "MO", ".", "isJTI", "(", ")", ")", "emitJumpTableAddress", "(", "MO", ".", "getIndex", "(", ")", ",", "getRelocation", "(", "MI", ",", "MO", ")", ")", ";", "else", "if", "(", "MO", ".", "isMBB", "(", ")", ")", "emitMachineBasicBlock", "(", "MO", ".", "getMBB", "(", ")", ",", "getRelocation", "(", "MI", ",", "MO", ")", ")", ";", "else", "llvm_unreachable", "(", "\"Unable to encode MachineOperand!\"", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["getMachineOpValue", "-", "Return", "binary", "encoding", "of", "operand", "."], "TS_V_token": ["Mips", "Mips", "Mips", "\"Unable to encode MachineOperand!\"", "0"], "File": "MipsCodeEmitter1", "Func": "getMachineOpValue", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2729, "Length": 194, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "char", "X86Subtarget", "::", "classifyGlobalReference", "(", "const", "GlobalValue", "*", "GV", ",", "const", "Module", "&", "M", ")", "const", "{", "if", "(", "TM", ".", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Large", ")", "return", "X86II", "::", "MO_NO_FLAG", ";", "Reloc", "::", "Model", "RM", "=", "TM", ".", "getRelocationModel", "(", ")", ";", "if", "(", "shouldAssumeDSOLocal", "(", "RM", ",", "TargetTriple", ",", "M", ",", "GV", ")", ")", "return", "classifyLocalReference", "(", "GV", ")", ";", "if", "(", "isTargetCOFF", "(", ")", ")", "return", "X86II", "::", "MO_DLLIMPORT", ";", "if", "(", "is64Bit", "(", ")", ")", "return", "X86II", "::", "MO_GOTPCREL", ";", "if", "(", "isTargetDarwin", "(", ")", ")", "{", "if", "(", "RM", "!=", "Reloc", "::", "PIC_", ")", "return", "X86II", "::", "MO_DARWIN_NONLAZY", ";", "return", "X86II", "::", "MO_DARWIN_NONLAZY_PIC_BASE", ";", "}", "return", "X86II", "::", "MO_GOT", ";", "}", ""], "natrual_language": ["Classify", "a", "global", "variable", "reference", "for", "the", "current", "subtarget", "according", "to", "how", "we", "should", "reference", "it", "in", "a", "non-pcrel", "context", "."], "TS_V_token": ["X86", "X86", "X86II::MO_NO_FLAG", "X86II::MO_DLLIMPORT", "X86II::MO_GOTPCREL", "X86II::MO_DARWIN_NONLAZY", "X86II::MO_DARWIN_NONLAZY_PIC_BASE", "X86II::MO_GOT"], "File": "X86Subtarget64", "Func": "classifyGlobalReference", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2730, "Length": 119, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZOperand", "::", "print", "(", "raw_ostream", "&", "OS", ")", "const", "{", "switch", "(", "Kind", ")", "{", "break", ";", "case", "KindToken", ":", "OS", "<<", "\"Token:\"", "<<", "getToken", "(", ")", ";", "break", ";", "case", "KindReg", ":", "OS", "<<", "\"Reg:\"", "<<", "SystemZInstPrinter", "::", "getRegisterName", "(", "getReg", "(", ")", ")", ";", "break", ";", "case", "KindImm", ":", "OS", "<<", "\"Imm:\"", ";", "printMCExpr", "(", "getImm", "(", ")", ",", "OS", ")", ";", "break", ";", "case", "KindImmTLS", ":", "OS", "<<", "\"ImmTLS:\"", ";", "printMCExpr", "(", "getImmTLS", "(", ")", ".", "Imm", ",", "OS", ")", ";", "if", "(", "getImmTLS", "(", ")", ".", "Sym", ")", "{", "OS", "<<", "\", \"", ";", "printMCExpr", "(", "getImmTLS", "(", ")", ".", "Sym", ",", "OS", ")", ";", "}", "break", ";", "case", "KindMem", ":", "{", "const", "MemOp", "&", "Op", "=", "getMem", "(", ")", ";", "OS", "<<", "\"Mem:\"", "<<", "*", "cast", "<", "MCConstantExpr", ">", "(", "Op", ".", "Disp", ")", ";", "if", "(", "Op", ".", "Base", ")", "{", "OS", "<<", "\"(\"", ";", "if", "(", "Op", ".", "MemKind", "==", "BDLMem", ")", "OS", "<<", "*", "cast", "<", "MCConstantExpr", ">", "(", "Op", ".", "Length", ".", "Imm", ")", "<<", "\",\"", ";", "else", "if", "(", "Op", ".", "MemKind", "==", "BDRMem", ")", "OS", "<<", "SystemZInstPrinter", "::", "getRegisterName", "(", "Op", ".", "Length", ".", "Reg", ")", "<<", "\",\"", ";", "if", "(", "Op", ".", "Index", ")", "OS", "<<", "SystemZInstPrinter", "::", "getRegisterName", "(", "Op", ".", "Index", ")", "<<", "\",\"", ";", "OS", "<<", "SystemZInstPrinter", "::", "getRegisterName", "(", "Op", ".", "Base", ")", ";", "OS", "<<", "\")\"", ";", "}", "break", ";", "}", "case", "KindInvalid", ":", "break", ";", "}", "}", ""], "natrual_language": ["print", "-", "Print", "a", "debug", "representation", "of", "the", "operand", "to", "the", "given", "stream", "."], "TS_V_token": ["SystemZ", "SystemZ", "\"Token:\"", "\"Reg:\"", "SystemZ", "\"Imm:\"", "\"ImmTLS:\"", "\", \"", "\"Mem:\"", "\"(\"", "\",\"", "SystemZ", "\",\"", "SystemZ", "\",\"", "SystemZ", "\")\""], "File": "SystemZAsmParser12", "Func": "print", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2731, "Length": 245, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "OR1KRegisterInfo", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "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": ["OR1K", "OR1K"], "File": "OR1KRegisterInfo", "Func": "eliminateCallFramePseudoInstr", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2732, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZInstrInfo", "::", "reverseBranchCondition", "(", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Cond", ")", "const", "{", "assert", "(", "Cond", ".", "size", "(", ")", "==", "2", "&&", "\"Invalid condition\"", ")", ";", "Cond", "[", "1", "]", ".", "setImm", "(", "Cond", "[", "1", "]", ".", "getImm", "(", ")", "^", "Cond", "[", "0", "]", ".", "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": ["SystemZ", "SystemZ", "2", "\"Invalid condition\"", "1", "1", "0"], "File": "SystemZInstrInfo (2)2", "Func": "reverseBranchCondition", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2733, "Length": 57, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "addrSinkUsingGEPs", "(", ")", "const", "override", "{", "return", "useAA", "(", ")", "||", "isTargetILP32", "(", ")", ";", "}", ""], "natrual_language": ["Sink", "addresses", "into", "blocks", "using", "GEP", "instructions", "rather", "than", "pointer", "casts", "and", "arithmetic", "."], "TS_V_token": ["AArch64"], "File": "AArch64Subtarget (2)1", "Func": "addrSinkUsingGEPs", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2734, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_darwin64_record_arg_flush", "(", "CUMULATIVE_ARGS", "*", "cum", ",", "HOST_WIDE_INT", "bitpos", ",", "rtx", "rvec", "[", "]", ",", "int", "*", "k", ")", "{", "machine_mode", "mode", ";", "unsigned", "int", "regno", ";", "unsigned", "int", "startbit", ",", "endbit", ";", "int", "this_regno", ",", "intregs", ",", "intoffset", ";", "rtx", "reg", ";", "if", "(", "cum", "->", "intoffset", "==", "-", "1", ")", "return", ";", "intoffset", "=", "cum", "->", "intoffset", ";", "cum", "->", "intoffset", "=", "-", "1", ";", "if", "(", "intoffset", "%", "BITS_PER_WORD", "!=", "0", ")", "{", "unsigned", "int", "bits", "=", "BITS_PER_WORD", "-", "intoffset", "%", "BITS_PER_WORD", ";", "if", "(", "!", "int_mode_for_size", "(", "bits", ",", "0", ")", ".", "exists", "(", "&", "mode", ")", ")", "{", "intoffset", "=", "ROUND_DOWN", "(", "intoffset", ",", "BITS_PER_WORD", ")", ";", "mode", "=", "word_mode", ";", "}", "}", "else", "mode", "=", "word_mode", ";", "startbit", "=", "ROUND_DOWN", "(", "intoffset", ",", "BITS_PER_WORD", ")", ";", "endbit", "=", "ROUND_UP", "(", "bitpos", ",", "BITS_PER_WORD", ")", ";", "intregs", "=", "(", "endbit", "-", "startbit", ")", "/", "BITS_PER_WORD", ";", "this_regno", "=", "cum", "->", "words", "+", "intoffset", "/", "BITS_PER_WORD", ";", "if", "(", "intregs", ">", "0", "&&", "intregs", ">", "GP_ARG_NUM_REG", "-", "this_regno", ")", "cum", "->", "use_stack", "=", "1", ";", "intregs", "=", "MIN", "(", "intregs", ",", "GP_ARG_NUM_REG", "-", "this_regno", ")", ";", "if", "(", "intregs", "<=", "0", ")", "return", ";", "intoffset", "/=", "BITS_PER_UNIT", ";", "do", "{", "regno", "=", "GP_ARG_MIN_REG", "+", "this_regno", ";", "reg", "=", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "rvec", "[", "(", "*", "k", ")", "++", "]", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "reg", ",", "GEN_INT", "(", "intoffset", ")", ")", ";", "this_regno", "+=", "1", ";", "intoffset", "=", "(", "intoffset", "|", "(", "UNITS_PER_WORD", "-", "1", ")", ")", "+", "1", ";", "mode", "=", "word_mode", ";", "intregs", "-=", "1", ";", "}", "while", "(", "intregs", ">", "0", ")", ";", "}", ""], "natrual_language": ["A", "subroutine", "of", "rs6000_darwin64_record_arg", ".", "Assign", "the", "bits", "of", "the", "structure", "between", "cum-", ">", "intoffset", "and", "bitpos", "to", "integer", "registers", "."], "TS_V_token": ["powerpcspe", "1", "1", "0", "0", "0", "1", "0", "1", "1", "1", "1", "0"], "File": "powerpcspe", "Func": "rs6000_darwin64_record_arg_flush", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2735, "Length": 276, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MVEVPTOptimisations", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "Fn", ")", "{", "const", "ARMSubtarget", "&", "STI", "=", "static_cast", "<", "const", "ARMSubtarget", "&", ">", "(", "Fn", ".", "getSubtarget", "(", ")", ")", ";", "if", "(", "!", "STI", ".", "isThumb2", "(", ")", "||", "!", "STI", ".", "hasMVEIntegerOps", "(", ")", ")", "return", "false", ";", "TII", "=", "static_cast", "<", "const", "Thumb2InstrInfo", "*", ">", "(", "STI", ".", "getInstrInfo", "(", ")", ")", ";", "MRI", "=", "&", "Fn", ".", "getRegInfo", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"********** ARM MVE VPT Optimisations **********\\n\"", "<<", "\"********** Function: \"", "<<", "Fn", ".", "getName", "(", ")", "<<", "'\\n'", ")", ";", "bool", "Modified", "=", "false", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "Fn", ")", "Modified", "|=", "ReplaceVCMPsByVPNOTs", "(", "MBB", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"**************************************\\n\"", ")", ";", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "\"********** ARM MVE VPT Optimisations **********\\n\"", "\"********** Function: \"", "\"**************************************\\n\""], "File": "MVEVPTOptimisationsPass3", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2736, "Length": 125, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "ARMBaseRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "ARMSubtarget", "&", "STI", "=", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "const", "ARMFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "SP", ")", ";", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "PC", ")", ";", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "FPSCR", ")", ";", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "APSR_NZCV", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "markSuperRegs", "(", "Reserved", ",", "getFramePointerReg", "(", "STI", ")", ")", ";", "if", "(", "hasBasePointer", "(", "MF", ")", ")", "markSuperRegs", "(", "Reserved", ",", "BasePtr", ")", ";", "if", "(", "STI", ".", "isR9Reserved", "(", ")", ")", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "R9", ")", ";", "const", "Function", "&", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "if", "(", "F", ".", "getCallingConv", "(", ")", "==", "CallingConv", "::", "Mono", ")", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "R8", ")", ";", "if", "(", "!", "STI", ".", "hasVFP3", "(", ")", "||", "STI", ".", "hasD16", "(", ")", ")", "{", "static_assert", "(", "ARM", "::", "D31", "==", "ARM", "::", "D16", "+", "15", ",", "\"Register list not consecutive!\"", ")", ";", "for", "(", "unsigned", "R", "=", "0", ";", "R", "<", "16", ";", "++", "R", ")", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "D16", "+", "R", ")", ";", "}", "const", "TargetRegisterClass", "&", "RC", "=", "ARM", "::", "GPRPairRegClass", ";", "for", "(", "unsigned", "Reg", ":", "RC", ")", "for", "(", "MCSubRegIterator", "SI", "(", "Reg", ",", "this", ")", ";", "SI", ".", "isValid", "(", ")", ";", "++", "SI", ")", "if", "(", "Reserved", ".", "test", "(", "*", "SI", ")", ")", "markSuperRegs", "(", "Reserved", ",", "Reg", ")", ";", "assert", "(", "checkAllSuperRegsMarked", "(", "Reserved", ")", ")", ";", "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": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM::SP", "ARM::PC", "ARM::FPSCR", "ARM::APSR_NZCV", "ARM::R9", "ARM::R8", "ARM::D31", "ARM::D16", "15", "\"Register list not consecutive!\"", "0", "16", "ARM::D16", "ARM::GPRPairRegClass"], "File": "ARMBaseRegisterInfo23", "Func": "getReservedRegs", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2737, "Length": 283, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Thumb1FrameLowering", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "CSI", ".", "empty", "(", ")", ")", "return", "false", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "ARMFunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "STI", ".", "getInstrInfo", "(", ")", ";", "bool", "isVarArg", "=", "AFI", "->", "getArgRegsSaveSize", "(", ")", ">", "0", ";", "DebugLoc", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "MF", ",", "DL", ",", "TII", ".", "get", "(", "ARM", "::", "tPOP", ")", ")", ";", "AddDefaultPred", "(", "MIB", ")", ";", "bool", "NumRegs", "=", "false", ";", "for", "(", "unsigned", "i", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "0", ";", "--", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "-", "1", "]", ".", "getReg", "(", ")", ";", "if", "(", "Reg", "==", "ARM", "::", "LR", ")", "{", "if", "(", "isVarArg", ")", "continue", ";", "if", "(", "STI", ".", "hasV4TOps", "(", ")", "&&", "!", "STI", ".", "hasV5TOps", "(", ")", ")", "continue", ";", "Reg", "=", "ARM", "::", "PC", ";", "(", "*", "MIB", ")", ".", "setDesc", "(", "TII", ".", "get", "(", "ARM", "::", "tPOP_RET", ")", ")", ";", "MIB", ".", "copyImplicitOps", "(", "&", "*", "MI", ")", ";", "MI", "=", "MBB", ".", "erase", "(", "MI", ")", ";", "}", "MIB", ".", "addReg", "(", "Reg", ",", "getDefRegState", "(", "true", ")", ")", ";", "NumRegs", "=", "true", ";", "}", "if", "(", "NumRegs", ")", "MBB", ".", "insert", "(", "MI", ",", "&", "*", "MIB", ")", ";", "else", "MF", ".", "DeleteMachineInstr", "(", "MIB", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["restoreCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "restore", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "load", "instructions", "via", "loadRegToStackSlot", "(", ")", "."], "TS_V_token": ["ARM", "ARM", "ARM", "0", "ARM::tPOP", "0", "1", "ARM::LR", "ARM::PC", "ARM::tPOP_RET"], "File": "Thumb1FrameLowering1", "Func": "restoreCalleeSavedRegisters", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2738, "Length": 278, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "validate_condition_mode", "(", "enum", "rtx_code", "code", ",", "enum", "machine_mode", "mode", ")", "{", "gcc_assert", "(", "(", "GET_RTX_CLASS", "(", "code", ")", "==", "RTX_COMPARE", "||", "GET_RTX_CLASS", "(", "code", ")", "==", "RTX_COMM_COMPARE", ")", "&&", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_CC", ")", ";", "gcc_assert", "(", "(", "code", "!=", "GT", "&&", "code", "!=", "LT", "&&", "code", "!=", "GE", "&&", "code", "!=", "LE", ")", "||", "mode", "!=", "CCUNSmode", ")", ";", "gcc_assert", "(", "(", "code", "!=", "GTU", "&&", "code", "!=", "LTU", "&&", "code", "!=", "GEU", "&&", "code", "!=", "LEU", ")", "||", "mode", "==", "CCUNSmode", ")", ";", "gcc_assert", "(", "mode", "==", "CCFPmode", "||", "(", "code", "!=", "ORDERED", "&&", "code", "!=", "UNORDERED", "&&", "code", "!=", "UNEQ", "&&", "code", "!=", "LTGT", "&&", "code", "!=", "UNGT", "&&", "code", "!=", "UNLT", "&&", "code", "!=", "UNGE", "&&", "code", "!=", "UNLE", ")", ")", ";", "gcc_assert", "(", "mode", "!=", "CCFPmode", "||", "flag_finite_math_only", "||", "(", "code", "!=", "LE", "&&", "code", "!=", "GE", "&&", "code", "!=", "UNEQ", "&&", "code", "!=", "LTGT", "&&", "code", "!=", "UNGT", "&&", "code", "!=", "UNLT", ")", ")", ";", "gcc_assert", "(", "mode", "!=", "CCEQmode", "||", "code", "==", "EQ", "||", "code", "==", "NE", ")", ";", "}", ""], "natrual_language": ["A", "validation", "routine", ":", "say", "whether", "CODE", ",", "a", "condition", "code", ",", "and", "MODE", "match", ".", "The", "other", "alternatives", "either", "do", "n't", "make", "sense", "or", "should", "never", "be", "generated", "."], "TS_V_token": ["rs6000"], "File": "rs60003", "Func": "validate_condition_mode", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2739, "Length": 180, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "arm_emit_call_insn", "(", "rtx", "pat", ",", "rtx", "addr", ",", "bool", "sibcall", ")", "{", "rtx", "insn", ";", "insn", "=", "emit_call_insn", "(", "pat", ")", ";", "if", "(", "TARGET_VXWORKS_RTP", "&&", "flag_pic", "&&", "!", "sibcall", "&&", "GET_CODE", "(", "addr", ")", "==", "SYMBOL_REF", "&&", "(", "SYMBOL_REF_DECL", "(", "addr", ")", "?", "!", "targetm", ".", "binds_local_p", "(", "SYMBOL_REF_DECL", "(", "addr", ")", ")", ":", "!", "SYMBOL_REF_LOCAL_P", "(", "addr", ")", ")", ")", "{", "require_pic_register", "(", "NULL_RTX", ",", "false", ")", ";", "use_reg", "(", "&", "CALL_INSN_FUNCTION_USAGE", "(", "insn", ")", ",", "cfun", "->", "machine", "->", "pic_reg", ")", ";", "}", "if", "(", "TARGET_AAPCS_BASED", ")", "{", "rtx", "*", "fusage", "=", "&", "CALL_INSN_FUNCTION_USAGE", "(", "insn", ")", ";", "clobber_reg", "(", "fusage", ",", "gen_rtx_REG", "(", "word_mode", ",", "IP_REGNUM", ")", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "a", "call", "instruction", "with", "pattern", "PAT", ".", "ADDR", "is", "the", "address", "of", "the", "call", "target", "."], "TS_V_token": ["arm"], "File": "arm8", "Func": "arm_emit_call_insn", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2740, "Length": 116, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "MipsOperand", "*", "CreateReg", "(", "unsigned", "Index", ",", "RegKind", "RegKind", ",", "const", "MCRegisterInfo", "*", "RegInfo", ",", "SMLoc", "S", ",", "SMLoc", "E", ",", "MipsAsmParser", "&", "Parser", ")", "{", "MipsOperand", "*", "Op", "=", "new", "MipsOperand", "(", "k_RegisterIndex", ",", "Parser", ")", ";", "Op", "->", "RegIdx", ".", "Index", "=", "Index", ";", "Op", "->", "RegIdx", ".", "RegInfo", "=", "RegInfo", ";", "Op", "->", "RegIdx", ".", "Kind", "=", "RegKind", ";", "Op", "->", "StartLoc", "=", "S", ";", "Op", "->", "EndLoc", "=", "E", ";", "return", "Op", ";", "}", ""], "natrual_language": ["CreateReg", "-", "Allocate", "a", "single", "virtual", "register", "for", "the", "given", "type", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "Mips"], "File": "MipsAsmParser43", "Func": "CreateReg", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2741, "Length": 79, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "scalar_chain", "::", "mark_dual_mode_def", "(", "df_ref", "def", ")", "{", "gcc_assert", "(", "DF_REF_REG_DEF_P", "(", "def", ")", ")", ";", "bool", "reg_new", "=", "bitmap_set_bit", "(", "defs_conv", ",", "DF_REF_REGNO", "(", "def", ")", ")", ";", "if", "(", "!", "bitmap_bit_p", "(", "insns", ",", "DF_REF_INSN_UID", "(", "def", ")", ")", ")", "{", "if", "(", "!", "bitmap_set_bit", "(", "insns_conv", ",", "DF_REF_INSN_UID", "(", "def", ")", ")", "&&", "!", "reg_new", ")", "return", ";", "n_integer_to_sse", "++", ";", "}", "else", "{", "if", "(", "!", "reg_new", ")", "return", ";", "n_sse_to_integer", "++", ";", "}", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\" Mark r%d def in insn %d as requiring both modes in chain #%d\\n\"", ",", "DF_REF_REGNO", "(", "def", ")", ",", "DF_REF_INSN_UID", "(", "def", ")", ",", "chain_id", ")", ";", "}", ""], "natrual_language": ["For", "DImode", "conversion", ",", "mark", "register", "defined", "by", "DEF", "as", "requiring", "conversion", "."], "TS_V_token": ["i386", "\" Mark r%d def in insn %d as requiring both modes in chain #%d\\n\""], "File": "i386-features1", "Func": "mark_dual_mode_def", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2742, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMAsmBackend", "::", "writeNopData", "(", "raw_ostream", "&", "OS", ",", "uint64_t", "Count", ",", "const", "MCSubtargetInfo", "*", "STI", ")", "const", "{", "const", "uint16_t", "Thumb1_16bitNopEncoding", "=", "0x46c0", ";", "const", "uint16_t", "Thumb2_16bitNopEncoding", "=", "0xbf00", ";", "const", "uint32_t", "ARMv4_NopEncoding", "=", "0xe1a00000", ";", "const", "uint32_t", "ARMv6T2_NopEncoding", "=", "0xe320f000", ";", "if", "(", "isThumb", "(", ")", ")", "{", "const", "uint16_t", "nopEncoding", "=", "hasNOP", "(", "STI", ")", "?", "Thumb2_16bitNopEncoding", ":", "Thumb1_16bitNopEncoding", ";", "uint64_t", "NumNops", "=", "Count", "/", "2", ";", "for", "(", "uint64_t", "i", "=", "0", ";", "i", "!=", "NumNops", ";", "++", "i", ")", "support", "::", "endian", "::", "write", "(", "OS", ",", "nopEncoding", ",", "Endian", ")", ";", "if", "(", "Count", "&", "1", ")", "OS", "<<", "'\\0'", ";", "return", "true", ";", "}", "const", "uint32_t", "nopEncoding", "=", "hasNOP", "(", "STI", ")", "?", "ARMv6T2_NopEncoding", ":", "ARMv4_NopEncoding", ";", "uint64_t", "NumNops", "=", "Count", "/", "4", ";", "for", "(", "uint64_t", "i", "=", "0", ";", "i", "!=", "NumNops", ";", "++", "i", ")", "support", "::", "endian", "::", "write", "(", "OS", ",", "nopEncoding", ",", "Endian", ")", ";", "switch", "(", "Count", "%", "4", ")", "{", "default", ":", "break", ";", "case", "1", ":", "OS", "<<", "'\\0'", ";", "break", ";", "case", "2", ":", "OS", ".", "write", "(", "\"\\0\\0\"", ",", "2", ")", ";", "break", ";", "case", "3", ":", "OS", ".", "write", "(", "\"\\0\\0\\xa0\"", ",", "3", ")", ";", "break", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Write", "an", "(", "optimal", ")", "nop", "sequence", "of", "Count", "bytes", "to", "the", "given", "output", "."], "TS_V_token": ["ARM", "ARM", "0x46c0", "0xbf00", "ARM", "0xe1a00000", "ARM", "0xe320f000", "2", "0", "support::endian", "1", "ARM", "ARM", "4", "0", "support::endian", "4", "1", "2", "\"\\0\\0\"", "2", "3", "\"\\0\\0\\xa0\"", "3"], "File": "ARMAsmBackend33", "Func": "writeNopData", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2743, "Length": 211, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "ix86_find_base_term", "(", "rtx", "x", ")", "{", "rtx", "term", ";", "if", "(", "TARGET_64BIT", ")", "{", "if", "(", "GET_CODE", "(", "x", ")", "!=", "CONST", ")", "return", "x", ";", "term", "=", "XEXP", "(", "x", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "term", ")", "==", "PLUS", "&&", "CONST_INT_P", "(", "XEXP", "(", "term", ",", "1", ")", ")", ")", "term", "=", "XEXP", "(", "term", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "term", ")", "!=", "UNSPEC", "||", "(", "XINT", "(", "term", ",", "1", ")", "!=", "UNSPEC_GOTPCREL", "&&", "XINT", "(", "term", ",", "1", ")", "!=", "UNSPEC_PCREL", ")", ")", "return", "x", ";", "return", "XVECEXP", "(", "term", ",", "0", ",", "0", ")", ";", "}", "return", "ix86_delegitimize_address", "(", "x", ")", ";", "}", ""], "natrual_language": ["If", "X", "is", "a", "machine", "specific", "address", "(", "i.e", ".", "a", "symbol", "or", "label", "being", "referenced", "as", "a", "displacement", "from", "the", "GOT", "implemented", "using", "an", "UNSPEC", ")", ",", "then", "return", "the", "base", "term", ".", "Otherwise", "return", "X", "."], "TS_V_token": ["i386", "0", "1", "0", "1", "1", "0", "0"], "File": "i3865", "Func": "ix86_find_base_term", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2744, "Length": 114, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMCodeEmitter", "::", "getMachineOpValue", "(", "const", "MachineInstr", "&", "MI", ",", "const", "MachineOperand", "&", "MO", ")", "const", "{", "if", "(", "MO", ".", "isReg", "(", ")", ")", "return", "II", "->", "getRegisterInfo", "(", ")", ".", "getEncodingValue", "(", "MO", ".", "getReg", "(", ")", ")", ";", "else", "if", "(", "MO", ".", "isImm", "(", ")", ")", "return", "static_cast", "<", "unsigned", ">", "(", "MO", ".", "getImm", "(", ")", ")", ";", "else", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "emitGlobalAddress", "(", "MO", ".", "getGlobal", "(", ")", ",", "ARM", "::", "reloc_arm_branch", ",", "true", ",", "false", ")", ";", "else", "if", "(", "MO", ".", "isSymbol", "(", ")", ")", "emitExternalSymbolAddress", "(", "MO", ".", "getSymbolName", "(", ")", ",", "ARM", "::", "reloc_arm_branch", ")", ";", "else", "if", "(", "MO", ".", "isCPI", "(", ")", ")", "{", "const", "MCInstrDesc", "&", "MCID", "=", "MI", ".", "getDesc", "(", ")", ";", "unsigned", "Reloc", "=", "(", "(", "MCID", ".", "TSFlags", "&", "ARMII", "::", "FormMask", ")", "==", "ARMII", "::", "VFPLdStFrm", ")", "?", "ARM", "::", "reloc_arm_vfp_cp_entry", ":", "ARM", "::", "reloc_arm_cp_entry", ";", "emitConstPoolAddress", "(", "MO", ".", "getIndex", "(", ")", ",", "Reloc", ")", ";", "}", "else", "if", "(", "MO", ".", "isJTI", "(", ")", ")", "emitJumpTableAddress", "(", "MO", ".", "getIndex", "(", ")", ",", "ARM", "::", "reloc_arm_relative", ")", ";", "else", "if", "(", "MO", ".", "isMBB", "(", ")", ")", "emitMachineBasicBlock", "(", "MO", ".", "getMBB", "(", ")", ",", "ARM", "::", "reloc_arm_branch", ")", ";", "else", "llvm_unreachable", "(", "\"Unable to encode MachineOperand!\"", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["getMachineOpValue", "-", "Return", "binary", "encoding", "of", "operand", "."], "TS_V_token": ["ARM", "ARM", "ARM::reloc_arm_branch", "ARM::reloc_arm_branch", "ARMII::FormMask", "ARMII::VFPLdStFrm", "ARM::reloc_arm_vfp_cp_entry", "ARM::reloc_arm_cp_entry", "ARM::reloc_arm_relative", "ARM::reloc_arm_branch", "\"Unable to encode MachineOperand!\"", "0"], "File": "ARMCodeEmitter13", "Func": "getMachineOpValue", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2745, "Length": 225, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsTargetLowering", "::", "HandleByVal", "(", "CCState", "*", "State", ",", "unsigned", "&", "Size", ",", "unsigned", "Align", ")", "const", "{", "MachineFunction", "&", "MF", "=", "State", "->", "getMachineFunction", "(", ")", ";", "const", "TargetFrameLowering", "*", "TFL", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "assert", "(", "Size", "&&", "\"Byval argument's size shouldn't be 0.\"", ")", ";", "Align", "=", "std", "::", "min", "(", "Align", ",", "TFL", "->", "getStackAlignment", "(", ")", ")", ";", "unsigned", "FirstReg", "=", "0", ";", "unsigned", "NumRegs", "=", "0", ";", "if", "(", "State", "->", "getCallingConv", "(", ")", "!=", "CallingConv", "::", "Fast", ")", "{", "unsigned", "RegSizeInBytes", "=", "Subtarget", ".", "getGPRSizeInBytes", "(", ")", ";", "const", "ArrayRef", "<", "MCPhysReg", ">", "IntArgRegs", "=", "Subtarget", ".", "getABI", "(", ")", ".", "GetByValArgRegs", "(", ")", ";", "const", "MCPhysReg", "*", "ShadowRegs", "=", "Subtarget", ".", "isABI_O32", "(", ")", "?", "IntArgRegs", ".", "data", "(", ")", ":", "Mips64DPRegs", ";", "assert", "(", "!", "(", "Align", "%", "RegSizeInBytes", ")", "&&", "\"Byval argument's alignment should be a multiple of\"", "\"RegSizeInBytes.\"", ")", ";", "FirstReg", "=", "State", "->", "getFirstUnallocated", "(", "IntArgRegs", ".", "data", "(", ")", ",", "IntArgRegs", ".", "size", "(", ")", ")", ";", "if", "(", "(", "Align", ">", "RegSizeInBytes", ")", "&&", "(", "FirstReg", "%", "2", ")", ")", "{", "State", "->", "AllocateReg", "(", "IntArgRegs", "[", "FirstReg", "]", ",", "ShadowRegs", "[", "FirstReg", "]", ")", ";", "++", "FirstReg", ";", "}", "Size", "=", "RoundUpToAlignment", "(", "Size", ",", "RegSizeInBytes", ")", ";", "for", "(", "unsigned", "I", "=", "FirstReg", ";", "Size", ">", "0", "&&", "(", "I", "<", "IntArgRegs", ".", "size", "(", ")", ")", ";", "Size", "-=", "RegSizeInBytes", ",", "++", "I", ",", "++", "NumRegs", ")", "State", "->", "AllocateReg", "(", "IntArgRegs", "[", "I", "]", ",", "ShadowRegs", "[", "I", "]", ")", ";", "}", "State", "->", "addInRegsParamInfo", "(", "FirstReg", ",", "FirstReg", "+", "NumRegs", ")", ";", "}", ""], "natrual_language": ["Target-specific", "cleanup", "for", "formal", "ByVal", "parameters", "."], "TS_V_token": ["Mips", "Mips", "\"Byval argument's size shouldn't be 0.\"", "0", "0", "Mips", "\"Byval argument's alignment should be a multiple of\"", "\"RegSizeInBytes.\"", "2", "0"], "File": "MipsISelLowering108", "Func": "HandleByVal", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2746, "Length": 267, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCInstrInfo", "::", "getMachineCombinerPatterns", "(", "MachineInstr", "&", "Root", ",", "SmallVectorImpl", "<", "MachineCombinerPattern", ">", "&", "Patterns", ",", "bool", "DoRegPressureReduce", ")", "const", "{", "if", "(", "Subtarget", ".", "getTargetMachine", "(", ")", ".", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "Aggressive", ")", "return", "false", ";", "if", "(", "getFMAPatterns", "(", "Root", ",", "Patterns", ",", "DoRegPressureReduce", ")", ")", "return", "true", ";", "return", "TargetInstrInfo", "::", "getMachineCombinerPatterns", "(", "Root", ",", "Patterns", ",", "DoRegPressureReduce", ")", ";", "}", ""], "natrual_language": ["Return", "true", "when", "there", "is", "potentially", "a", "faster", "code", "sequence", "for", "an", "instruction", "chain", "ending", "in", "Root", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCInstrInfo", "Func": "getMachineCombinerPatterns", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2747, "Length": 67, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "TeeRISCInstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "DebugLoc", "DL", ",", "unsigned", "DestReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "if", "(", "TeeRISC", "::", "IntRegsRegClass", ".", "contains", "(", "DestReg", ",", "SrcReg", ")", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "TeeRISC", "::", "OR", ")", ",", "DestReg", ")", ".", "addReg", "(", "TeeRISC", "::", "ZERO", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "else", "llvm_unreachable", "(", "\"Impossible reg-to-reg copy\"", ")", ";", "}", ""], "natrual_language": ["}", "Branch", "Analysis", "&", "Modification"], "TS_V_token": ["TeeRISC", "TeeRISC", "TeeRISC::IntRegsRegClass", "TeeRISC::OR", "TeeRISC::ZERO", "\"Impossible reg-to-reg copy\""], "File": "TeeRISCInstrInfo", "Func": "copyPhysReg", "Target": "TeeRISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2748, "Length": 83, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SMLoc", "getStartLoc", "(", ")", "const", "override", "{", "return", "StartLoc", ";", "}", ""], "natrual_language": ["getStartLoc", "-", "Get", "the", "location", "of", "the", "first", "token", "of", "this", "operand", "."], "TS_V_token": ["Cpu0"], "File": "Cpu0AsmParser", "Func": "getStartLoc", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2749, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_emit_cfi_for_reg_p", "(", "unsigned", "int", "regno", ")", "{", "return", "(", "GP_REGNUM_P", "(", "regno", ")", "||", "!", "default_function_abi", ".", "clobbers_full_reg_p", "(", "regno", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "we", "should", "emit", "CFI", "for", "register", "REGNO", "."], "TS_V_token": ["aarch64"], "File": "aarch64", "Func": "aarch64_emit_cfi_for_reg_p", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2750, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "altivec_expand_stvex_be", "(", "rtx", "op0", ",", "rtx", "op1", ",", "machine_mode", "mode", ",", "unsigned", "unspec", ")", "{", "machine_mode", "inner_mode", "=", "GET_MODE_INNER", "(", "mode", ")", ";", "rtx", "tmp", "=", "gen_reg_rtx", "(", "mode", ")", ";", "rtx", "stvx", "=", "gen_rtx_UNSPEC", "(", "inner_mode", ",", "gen_rtvec", "(", "1", ",", "tmp", ")", ",", "unspec", ")", ";", "rtx", "sel", "=", "swap_selector_for_mode", "(", "mode", ")", ";", "rtx", "vperm", ";", "gcc_assert", "(", "REG_P", "(", "op1", ")", ")", ";", "vperm", "=", "gen_rtx_UNSPEC", "(", "mode", ",", "gen_rtvec", "(", "3", ",", "op1", ",", "op1", ",", "sel", ")", ",", "UNSPEC_VPERM", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "tmp", ",", "vperm", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "op0", ",", "stvx", ")", ")", ";", "}", ""], "natrual_language": ["Generate", "code", "for", "a", "``", "stve", "*", "x", "''", "built-in", "for", "a", "little", "endian", "target", "with", "-maltivec=be", "specified", ".", "Issue", "the", "store", "preceded", "by", "an", "element-reversing", "permute", "."], "TS_V_token": ["rs6000", "1", "3"], "File": "rs60004", "Func": "altivec_expand_stvex_be", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2751, "Length": 113, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_set_handled_components", "(", "sbitmap", "components", ")", "{", "rs6000_stack_t", "*", "info", "=", "rs6000_stack_info", "(", ")", ";", "for", "(", "int", "i", "=", "info", "->", "first_gp_reg_save", ";", "i", "<", "32", ";", "i", "++", ")", "if", "(", "bitmap_bit_p", "(", "components", ",", "i", ")", ")", "cfun", "->", "machine", "->", "gpr_is_wrapped_separately", "[", "i", "]", "=", "true", ";", "for", "(", "int", "i", "=", "info", "->", "first_fp_reg_save", ";", "i", "<", "64", ";", "i", "++", ")", "if", "(", "bitmap_bit_p", "(", "components", ",", "i", ")", ")", "cfun", "->", "machine", "->", "fpr_is_wrapped_separately", "[", "i", "-", "32", "]", "=", "true", ";", "if", "(", "bitmap_bit_p", "(", "components", ",", "0", ")", ")", "cfun", "->", "machine", "->", "lr_is_wrapped_separately", "=", "true", ";", "if", "(", "bitmap_bit_p", "(", "components", ",", "2", ")", ")", "cfun", "->", "machine", "->", "toc_is_wrapped_separately", "=", "true", ";", "}", ""], "natrual_language": ["Implement", "TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS", "."], "TS_V_token": ["rs6000", "32", "64", "32", "0", "2"], "File": "rs60007", "Func": "rs6000_set_handled_components", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2752, "Length": 125, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_insert_insn_pseudos", "(", "void", ")", "{", "bool", "insn_pseudo_needed", "=", "TRUE", ";", "rtx_insn", "*", "insn", ";", "for", "(", "insn", "=", "get_last_insn", "(", ")", ";", "insn", "!=", "NULL_RTX", ";", "insn", "=", "PREV_INSN", "(", "insn", ")", ")", "switch", "(", "GET_CODE", "(", "insn", ")", ")", "{", "case", "INSN", ":", "if", "(", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "==", "UNSPEC_VOLATILE", "&&", "XINT", "(", "PATTERN", "(", "insn", ")", ",", "1", ")", "==", "UNSPEC_CONSTTABLE", ")", "{", "insn_pseudo_needed", "=", "TRUE", ";", "break", ";", "}", "case", "JUMP_INSN", ":", "case", "CALL_INSN", ":", "case", "JUMP_TABLE_DATA", ":", "insn_pseudo_needed", "=", "FALSE", ";", "break", ";", "case", "CODE_LABEL", ":", "if", "(", "insn_pseudo_needed", ")", "{", "emit_insn_after", "(", "gen_insn_pseudo", "(", ")", ",", "insn", ")", ";", "insn_pseudo_needed", "=", "FALSE", ";", "}", "break", ";", "default", ":", "break", ";", "}", "}", ""], "natrual_language": ["Insert", "a", "`", ".insn", "'", "assembly", "pseudo-op", "after", "any", "labels", "followed", "by", "a", "MIPS16", "constant", "pool", "or", "no", "insn", "at", "all", ".", "This", "is", "needed", "so", "that", "targets", "that", "have", "been", "optimized", "away", "are", "still", "marked", "as", "code", "and", "therefore", "branches", "that", "remained", "and", "point", "to", "them", "are", "known", "to", "retain", "the", "ISA", "mode", "and", "as", "such", "can", "be", "successfully", "assembled", "."], "TS_V_token": ["mips", "1"], "File": "mips", "Func": "mips_insert_insn_pseudos", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2753, "Length": 123, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsCodeEmitter", "::", "emitInstruction", "(", "const", "MachineInstr", "&", "MI", ")", "{", "DEBUG", "(", "errs", "(", ")", "<<", "\"JIT: \"", "<<", "(", "void", "*", ")", "MCE", ".", "getCurrentPCValue", "(", ")", "<<", "\":\\t\"", "<<", "MI", ")", ";", "MCE", ".", "processDebugLoc", "(", "MI", ".", "getDebugLoc", "(", ")", ",", "true", ")", ";", "if", "(", "(", "MI", ".", "getDesc", "(", ")", ".", "TSFlags", "&", "MipsII", "::", "FormMask", ")", "==", "MipsII", "::", "Pseudo", ")", "return", ";", "emitWordLE", "(", "getBinaryCodeForInstr", "(", "MI", ")", ")", ";", "++", "NumEmitted", ";", "MCE", ".", "processDebugLoc", "(", "MI", ".", "getDebugLoc", "(", ")", ",", "false", ")", ";", "}", ""], "natrual_language": ["Targets", "should", "implement", "this", "to", "emit", "instructions", "."], "TS_V_token": ["Mips", "Mips", "\"JIT: \"", "\":\\t\"", "MipsII::FormMask", "MipsII::Pseudo"], "File": "MipsCodeEmitter1", "Func": "emitInstruction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2754, "Length": 94, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "SystemZRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "{", "Reserved", ".", "set", "(", "SystemZ", "::", "R11D", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "R11W", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "R10Q", ")", ";", "}", "Reserved", ".", "set", "(", "SystemZ", "::", "R15D", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "R15W", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "R14Q", ")", ";", "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": ["SystemZ", "SystemZ", "SystemZ::R11D", "SystemZ::R11W", "SystemZ::R10Q", "SystemZ::R15D", "SystemZ::R15W", "SystemZ::R14Q"], "File": "SystemZRegisterInfo24", "Func": "getReservedRegs", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2755, "Length": 104, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "unsigned", "int", "execute", "(", "function", "*", ")", "{", "return", "rest_of_insert_bti", "(", ")", ";", "}", ""], "natrual_language": ["Main", "entry", "point", "for", "this", "pass", "."], "TS_V_token": ["arm"], "File": "aarch-bti-insert", "Func": "execute", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2756, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"Thumb2 instruction size reduction pass\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["ARM", "\"Thumb2 instruction size reduction pass\""], "File": "Thumb2SizeReduction19", "Func": "getPassName", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2757, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "nds32_n13_load_to_e1_p", "(", "rtx_insn", "*", "producer", ",", "rtx_insn", "*", "consumer", ")", "{", "rtx", "def_reg", "=", "SET_DEST", "(", "PATTERN", "(", "producer", ")", ")", ";", "gcc_assert", "(", "get_attr_type", "(", "producer", ")", "==", "TYPE_LOAD", ")", ";", "gcc_assert", "(", "REG_P", "(", "def_reg", ")", "||", "GET_CODE", "(", "def_reg", ")", "==", "SUBREG", ")", ";", "return", "n13_consumed_by_e1_dep_p", "(", "consumer", ",", "def_reg", ")", ";", "}", ""], "natrual_language": ["Check", "dependencies", "from", "Load-Store", "Unit", "(", "E3", ")", "to", "E1", "."], "TS_V_token": ["nds32"], "File": "nds32-pipelines-auxiliary", "Func": "nds32_n13_load_to_e1_p", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2758, "Length": 57, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "pa_issue_rate", "(", "void", ")", "{", "switch", "(", "pa_cpu", ")", "{", "case", "PROCESSOR_700", ":", "return", "1", ";", "case", "PROCESSOR_7100", ":", "return", "2", ";", "case", "PROCESSOR_7100LC", ":", "return", "2", ";", "case", "PROCESSOR_7200", ":", "return", "2", ";", "case", "PROCESSOR_7300", ":", "return", "2", ";", "case", "PROCESSOR_8000", ":", "return", "4", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["The", "700", "can", "only", "issue", "a", "single", "insn", "at", "a", "time", ".", "The", "7XXX", "processors", "can", "issue", "two", "insns", "at", "a", "time", ".", "The", "8000", "can", "issue", "4", "insns", "at", "a", "time", "."], "TS_V_token": ["pa", "1", "2", "2", "2", "2", "4"], "File": "pa", "Func": "pa_issue_rate", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2759, "Length": 56, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "void", "initializePass", "(", ")", "{", "pushTTIStack", "(", "this", ")", ";", "}", ""], "natrual_language": ["initializePass", "-", "This", "method", "may", "be", "overriden", "by", "immutable", "passes", "to", "allow", "them", "to", "perform", "various", "initialization", "actions", "they", "require", "."], "TS_V_token": ["X86"], "File": "X86TargetTransformInfo113", "Func": "initializePass", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2760, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_nopic_noplt_attribute_p", "(", "rtx", "call_op", ")", "{", "if", "(", "flag_pic", "||", "ix86_cmodel", "==", "CM_LARGE", "||", "!", "(", "TARGET_64BIT", "||", "HAVE_AS_IX86_GOT32X", ")", "||", "TARGET_MACHO", "||", "TARGET_SEH", "||", "TARGET_PECOFF", "||", "SYMBOL_REF_LOCAL_P", "(", "call_op", ")", ")", "return", "false", ";", "tree", "symbol_decl", "=", "SYMBOL_REF_DECL", "(", "call_op", ")", ";", "if", "(", "!", "flag_plt", "||", "(", "symbol_decl", "!=", "NULL_TREE", "&&", "lookup_attribute", "(", "\"noplt\"", ",", "DECL_ATTRIBUTES", "(", "symbol_decl", ")", ")", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "function", "being", "called", "was", "marked", "with", "attribute", "``", "noplt", "''", "or", "using", "-fno-plt", "and", "we", "are", "compiling", "for", "non-PIC", "and", "x86_64", ".", "We", "need", "to", "handle", "the", "non-PIC", "case", "in", "the", "backend", "because", "there", "is", "no", "easy", "interface", "for", "the", "front-end", "to", "force", "non-PLT", "calls", "to", "use", "the", "GOT", ".", "This", "is", "currently", "used", "only", "with", "64-bit", "ELF", "targets", "to", "call", "the", "function", "marked", "``", "noplt", "''", "indirectly", "."], "TS_V_token": ["i386", "\"noplt\""], "File": "i386", "Func": "ix86_nopic_noplt_attribute_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2761, "Length": 73, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ARMTTIImpl", "::", "getIntImmCostInst", "(", "unsigned", "Opcode", ",", "unsigned", "Idx", ",", "const", "APInt", "&", "Imm", ",", "Type", "*", "Ty", ",", "TTI", "::", "TargetCostKind", "CostKind", ")", "{", "if", "(", "(", "Opcode", "==", "Instruction", "::", "SDiv", "||", "Opcode", "==", "Instruction", "::", "UDiv", "||", "Opcode", "==", "Instruction", "::", "SRem", "||", "Opcode", "==", "Instruction", "::", "URem", ")", "&&", "Idx", "==", "1", ")", "return", "0", ";", "if", "(", "Opcode", "==", "Instruction", "::", "And", ")", "{", "if", "(", "Imm", "==", "255", "||", "Imm", "==", "65535", ")", "return", "0", ";", "return", "std", "::", "min", "(", "getIntImmCost", "(", "Imm", ",", "Ty", ",", "CostKind", ")", ",", "getIntImmCost", "(", "~", "Imm", ",", "Ty", ",", "CostKind", ")", ")", ";", "}", "if", "(", "Opcode", "==", "Instruction", "::", "Add", ")", "return", "std", "::", "min", "(", "getIntImmCost", "(", "Imm", ",", "Ty", ",", "CostKind", ")", ",", "getIntImmCost", "(", "-", "Imm", ",", "Ty", ",", "CostKind", ")", ")", ";", "if", "(", "Opcode", "==", "Instruction", "::", "ICmp", "&&", "Imm", ".", "isNegative", "(", ")", "&&", "Ty", "->", "getIntegerBitWidth", "(", ")", "==", "32", ")", "{", "int64_t", "NegImm", "=", "-", "Imm", ".", "getSExtValue", "(", ")", ";", "if", "(", "ST", "->", "isThumb2", "(", ")", "&&", "NegImm", "<", "1", "<<", "12", ")", "return", "0", ";", "if", "(", "ST", "->", "isThumb", "(", ")", "&&", "NegImm", "<", "1", "<<", "8", ")", "return", "0", ";", "}", "if", "(", "Opcode", "==", "Instruction", "::", "Xor", "&&", "Imm", ".", "isAllOnesValue", "(", ")", ")", "return", "0", ";", "return", "getIntImmCost", "(", "Imm", ",", "Ty", ",", "CostKind", ")", ";", "}", ""], "natrual_language": ["Return", "the", "expected", "cost", "of", "materialization", "for", "the", "given", "integer", "immediate", "of", "the", "specified", "type", "for", "a", "given", "instruction", "."], "TS_V_token": ["ARM", "ARM", "1", "0", "255", "65535", "0", "32", "1", "12", "0", "1", "8", "0", "0"], "File": "ARMTargetTransformInfo1", "Func": "getIntImmCostInst", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2762, "Length": 238, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "ix86_stack_protect_fail", "(", "void", ")", "{", "return", "TARGET_64BIT", "?", "default_external_stack_protect_fail", "(", ")", ":", "default_hidden_stack_protect_fail", "(", ")", ";", "}", ""], "natrual_language": ["For", "32-bit", "code", "we", "can", "save", "PIC", "register", "setup", "by", "using", "__stack_chk_fail_local", "hidden", "function", "instead", "of", "calling", "__stack_chk_fail", "directly", ".", "64-bit", "code", "does", "n't", "need", "to", "setup", "any", "PIC", "register", ",", "so", "it", "is", "better", "to", "call", "__stack_chk_fail", "directly", "."], "TS_V_token": ["i386"], "File": "i3863", "Func": "ix86_stack_protect_fail", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2763, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsTargetObjectFile", "::", "Initialize", "(", "MCContext", "&", "Ctx", ",", "const", "TargetMachine", "&", "TM", ")", "{", "TargetLoweringObjectFileELF", "::", "Initialize", "(", "Ctx", ",", "TM", ")", ";", "InitializeELF", "(", "TM", ".", "Options", ".", "UseInitArray", ")", ";", "SmallDataSection", "=", "getContext", "(", ")", ".", "getELFSection", "(", "\".sdata\"", ",", "ELF", "::", "SHT_PROGBITS", ",", "ELF", "::", "SHF_WRITE", "|", "ELF", "::", "SHF_ALLOC", ")", ";", "SmallBSSSection", "=", "getContext", "(", ")", ".", "getELFSection", "(", "\".sbss\"", ",", "ELF", "::", "SHT_NOBITS", ",", "ELF", "::", "SHF_WRITE", "|", "ELF", "::", "SHF_ALLOC", ")", ";", "this", "->", "TM", "=", "&", "static_cast", "<", "const", "MipsTargetMachine", "&", ">", "(", "TM", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "called", "before", "any", "actual", "lowering", "is", "done", "."], "TS_V_token": ["Mips", "Mips", "\".sdata\"", "\".sbss\"", "Mips"], "File": "MipsTargetObjectFile", "Func": "Initialize", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2764, "Length": 95, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "sh_emit_storesi", "(", "rtx", "addr", ",", "HOST_WIDE_INT", "offset", ",", "rtx", "value", ")", "{", "gcc_assert", "(", "(", "offset", "&", "3", ")", "==", "0", ")", ";", "emit_move_insn", "(", "offset", "==", "0", "?", "change_address", "(", "addr", ",", "SImode", ",", "NULL_RTX", ")", ":", "adjust_address", "(", "addr", ",", "SImode", ",", "offset", ")", ",", "value", ")", ";", "}", ""], "natrual_language": ["Emit", "insns", "to", "store", "a", "value", "at", "memory", "address", "+", "offset", "."], "TS_V_token": ["sh", "3", "0", "0"], "File": "sh", "Func": "sh_emit_storesi", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2765, "Length": 53, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getType", "(", ")", "{", "return", "CurType", ".", "Name", ";", "}", ""], "natrual_language": ["Overload", "to", "return", "most", "specific", "vector", "type", "."], "TS_V_token": ["X86"], "File": "X86AsmParser16", "Func": "getType", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2766, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch_macro_fusion_pair_p", "(", "rtx_insn", "*", "prev", ",", "rtx_insn", "*", "curr", ")", "{", "rtx", "prev_set", "=", "single_set", "(", "prev", ")", ";", "rtx", "curr_set", "=", "single_set", "(", "curr", ")", ";", "if", "(", "!", "prev_set", "||", "!", "curr_set", ")", "return", "false", ";", "if", "(", "any_condjump_p", "(", "curr", ")", ")", "return", "false", ";", "if", "(", "!", "arm_macro_fusion_p", "(", ")", ")", "return", "false", ";", "if", "(", "current_tune", "->", "fusible_ops", "&", "tune_params", "::", "FUSE_AES_AESMC", "&&", "aarch_crypto_can_dual_issue", "(", "prev", ",", "curr", ")", ")", "return", "true", ";", "if", "(", "current_tune", "->", "fusible_ops", "&", "tune_params", "::", "FUSE_MOVW_MOVT", "&&", "arm_sets_movw_movt_fusible_p", "(", "prev_set", ",", "curr_set", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Implement", "TARGET_SCHED_MACRO_FUSION_PAIR_P", ".", "Return", "true", "if", "PREV", "and", "CURR", "should", "be", "kept", "together", "during", "scheduling", "."], "TS_V_token": ["arm"], "File": "arm6", "Func": "aarch_macro_fusion_pair_p", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2767, "Length": 104, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "enum", "loongarch_symbol_type", "loongarch_classify_symbol", "(", "const_rtx", "x", ")", "{", "enum", "loongarch_symbol_type", "pcrel", "=", "TARGET_CMODEL_EXTREME", "?", "SYMBOL_PCREL64", ":", "SYMBOL_PCREL", ";", "if", "(", "!", "SYMBOL_REF_P", "(", "x", ")", ")", "return", "pcrel", ";", "if", "(", "SYMBOL_REF_TLS_MODEL", "(", "x", ")", ")", "return", "SYMBOL_TLS", ";", "if", "(", "!", "loongarch_symbol_binds_local_p", "(", "x", ")", ")", "return", "SYMBOL_GOT_DISP", ";", "tree", "t", "=", "SYMBOL_REF_DECL", "(", "x", ")", ";", "if", "(", "!", "t", ")", "return", "pcrel", ";", "t", "=", "lookup_attribute", "(", "\"model\"", ",", "DECL_ATTRIBUTES", "(", "t", ")", ")", ";", "if", "(", "!", "t", ")", "return", "pcrel", ";", "t", "=", "TREE_VALUE", "(", "TREE_VALUE", "(", "t", ")", ")", ";", "gcc_assert", "(", "TREE_CODE", "(", "t", ")", "==", "STRING_CST", ")", ";", "const", "char", "*", "model", "=", "TREE_STRING_POINTER", "(", "t", ")", ";", "if", "(", "strcmp", "(", "model", ",", "\"normal\"", ")", "==", "0", ")", "return", "SYMBOL_PCREL", ";", "if", "(", "strcmp", "(", "model", ",", "\"extreme\"", ")", "==", "0", ")", "return", "SYMBOL_PCREL64", ";", "gcc_unreachable", "(", ")", ";", "}", ""], "natrual_language": ["Return", "the", "method", "that", "should", "be", "used", "to", "access", "SYMBOL_REF", "or", "LABEL_REF", "X", "."], "TS_V_token": ["loongarch", "\"model\"", "\"normal\"", "0", "\"extreme\"", "0"], "File": "loongarch1", "Func": "loongarch_classify_symbol", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2768, "Length": 150, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "addRequired", "<", "TargetPassConfig", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "StackProtector", ">", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["Mips"], "File": "MipsModuleISelDAGToDAG10", "Func": "getAnalysisUsage", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2769, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "sh_handle_interrupt_handler_attribute", "(", "tree", "*", "node", ",", "tree", "name", ",", "tree", "args", "ATTRIBUTE_UNUSED", ",", "int", "flags", "ATTRIBUTE_UNUSED", ",", "bool", "*", "no_add_attrs", ")", "{", "if", "(", "TREE_CODE", "(", "*", "node", ")", "!=", "FUNCTION_DECL", ")", "{", "warning", "(", "OPT_Wattributes", ",", "\"%qs attribute only applies to functions\"", ",", "IDENTIFIER_POINTER", "(", "name", ")", ")", ";", "*", "no_add_attrs", "=", "true", ";", "}", "else", "if", "(", "TARGET_SHCOMPACT", ")", "{", "error", "(", "\"attribute interrupt_handler is not compatible with -m5-compact\"", ")", ";", "*", "no_add_attrs", "=", "true", ";", "}", "return", "NULL_TREE", ";", "}", ""], "natrual_language": ["Handle", "an", "``", "interrupt_handler", "''", "attribute", ";", "arguments", "as", "in", "struct", "attribute_spec.handler", "."], "TS_V_token": ["sh", "\"%qs attribute only applies to functions\"", "\"attribute interrupt_handler is not compatible with -m5-compact\""], "File": "sh3", "Func": "sh_handle_interrupt_handler_attribute", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2770, "Length": 74, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCFrameLowering", "::", "determineFrameLayout", "(", "MachineFunction", "&", "MF", ",", "bool", "UpdateMF", ",", "bool", "UseEstimate", ")", "const", "{", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "unsigned", "FrameSize", "=", "UseEstimate", "?", "MFI", "->", "estimateStackSize", "(", "MF", ")", ":", "MFI", "->", "getStackSize", "(", ")", ";", "unsigned", "TargetAlign", "=", "getStackAlignment", "(", ")", ";", "unsigned", "MaxAlign", "=", "MFI", "->", "getMaxAlignment", "(", ")", ";", "unsigned", "AlignMask", "=", "std", "::", "max", "(", "MaxAlign", ",", "TargetAlign", ")", "-", "1", ";", "const", "PPCRegisterInfo", "*", "RegInfo", "=", "static_cast", "<", "const", "PPCRegisterInfo", "*", ">", "(", "Subtarget", ".", "getRegisterInfo", "(", ")", ")", ";", "bool", "DisableRedZone", "=", "MF", ".", "getFunction", "(", ")", "->", "getAttributes", "(", ")", ".", "hasAttribute", "(", "AttributeSet", "::", "FunctionIndex", ",", "Attribute", "::", "NoRedZone", ")", ";", "if", "(", "!", "DisableRedZone", "&&", "(", "Subtarget", ".", "isPPC64", "(", ")", "||", "!", "Subtarget", ".", "isSVR4ABI", "(", ")", "||", "FrameSize", "==", "0", ")", "&&", "FrameSize", "<=", "224", "&&", "!", "MFI", "->", "hasVarSizedObjects", "(", ")", "&&", "!", "MFI", "->", "adjustsStack", "(", ")", "&&", "!", "RegInfo", "->", "hasBasePointer", "(", "MF", ")", ")", "{", "if", "(", "UpdateMF", ")", "MFI", "->", "setStackSize", "(", "0", ")", ";", "return", "0", ";", "}", "unsigned", "maxCallFrameSize", "=", "MFI", "->", "getMaxCallFrameSize", "(", ")", ";", "unsigned", "minCallFrameSize", "=", "getLinkageSize", "(", "Subtarget", ".", "isPPC64", "(", ")", ",", "Subtarget", ".", "isDarwinABI", "(", ")", ",", "Subtarget", ".", "isELFv2ABI", "(", ")", ")", ";", "maxCallFrameSize", "=", "std", "::", "max", "(", "maxCallFrameSize", ",", "minCallFrameSize", ")", ";", "if", "(", "MFI", "->", "hasVarSizedObjects", "(", ")", ")", "maxCallFrameSize", "=", "(", "maxCallFrameSize", "+", "AlignMask", ")", "&", "~", "AlignMask", ";", "if", "(", "UpdateMF", ")", "MFI", "->", "setMaxCallFrameSize", "(", "maxCallFrameSize", ")", ";", "FrameSize", "+=", "maxCallFrameSize", ";", "FrameSize", "=", "(", "FrameSize", "+", "AlignMask", ")", "&", "~", "AlignMask", ";", "if", "(", "UpdateMF", ")", "MFI", "->", "setStackSize", "(", "FrameSize", ")", ";", "return", "FrameSize", ";", "}", ""], "natrual_language": ["Determine", "the", "frame", "layout", "but", "do", "not", "update", "the", "machine", "function", "."], "TS_V_token": ["PowerPC", "PPC", "1", "PPC", "PPC", "PPC", "0", "224", "0", "0", "PPC"], "File": "PPCFrameLowering22", "Func": "determineFrameLayout", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2771, "Length": 288, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "OR1KSubtarget", "&", "OR1KSubtarget", "::", "initializeSubtargetDependencies", "(", "StringRef", "CPU", ",", "StringRef", "FS", ")", "{", "std", "::", "string", "CPUName", "=", "CPU", ";", "if", "(", "CPUName", ".", "empty", "(", ")", ")", "CPUName", "=", "\"generic\"", ";", "ParseSubtargetFeatures", "(", "CPUName", ",", "FS", ")", ";", "return", "*", "this", ";", "}", ""], "natrual_language": ["initializeSubtargetDependencies", "-", "Initializes", "using", "a", "CPU", ",", "a", "TuneCPU", ",", "and", "feature", "string", "so", "that", "we", "can", "use", "initializer", "lists", "for", "subtarget", "initialization", "."], "TS_V_token": ["OR1K", "OR1K", "OR1K", "\"generic\""], "File": "OR1KSubtarget1", "Func": "initializeSubtargetDependencies", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2772, "Length": 44, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "SHUXITargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "(", "SHUXIISD", "::", "NodeType", ")", "Opcode", ")", "{", "case", "SHUXIISD", "::", "FIRST_NUMBER", ":", "break", ";", "case", "SHUXIISD", "::", "CMP", ":", "return", "\"SHUXIISD::CMP\"", ";", "case", "SHUXIISD", "::", "RET_FLAG", ":", "return", "\"SHUXIISD::RET_FLAG\"", ";", "case", "SHUXIISD", "::", "BR_CC", ":", "return", "\"SHUXIISD::BR_CC\"", ";", "case", "SHUXIISD", "::", "SELECT_CC", ":", "return", "\"SHUXIISD::SELECT_CC\"", ";", "case", "SHUXIISD", "::", "Wrapper", ":", "return", "\"SHUXIISD::Wrapper\"", ";", "case", "SHUXIISD", "::", "CALL", ":", "return", "\"SHUXIISD::CALL\"", ";", "}", "return", "nullptr", ";", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["SHUXI", "SHUXI", "SHUXIISD::NodeType", "SHUXIISD::FIRST_NUMBER", "SHUXIISD::CMP", "\"SHUXIISD::CMP\"", "SHUXIISD::RET_FLAG", "\"SHUXIISD::RET_FLAG\"", "SHUXIISD::BR_CC", "\"SHUXIISD::BR_CC\"", "SHUXIISD::SELECT_CC", "\"SHUXIISD::SELECT_CC\"", "SHUXIISD::Wrapper", "\"SHUXIISD::Wrapper\"", "SHUXIISD::CALL", "\"SHUXIISD::CALL\""], "File": "SHUXIISelLowering", "Func": "getTargetNodeName", "Target": "SHUXI", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2773, "Length": 82, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "rs6000_sibcall_aix", "(", "rtx", "value", ",", "rtx", "func_desc", ",", "rtx", "tlsarg", ",", "rtx", "cookie", ")", "{", "rtx", "call", "[", "2", "]", ";", "rtx", "insn", ";", "rtx", "r12", "=", "NULL_RTX", ";", "rtx", "func_addr", "=", "func_desc", ";", "if", "(", "global_tlsarg", ")", "tlsarg", "=", "global_tlsarg", ";", "if", "(", "INTVAL", "(", "cookie", ")", "&", "CALL_LONG", "&&", "SYMBOL_REF_P", "(", "func_desc", ")", ")", "{", "gcc_assert", "(", "rs6000_pcrel_p", "(", ")", ")", ";", "func_desc", "=", "rs6000_longcall_ref", "(", "func_desc", ",", "tlsarg", ")", ";", "}", "else", "gcc_assert", "(", "INTVAL", "(", "cookie", ")", "==", "0", ")", ";", "if", "(", "GET_CODE", "(", "func_desc", ")", "!=", "SYMBOL_REF", "&&", "DEFAULT_ABI", "==", "ABI_ELFv2", ")", "{", "r12", "=", "gen_rtx_REG", "(", "Pmode", ",", "12", ")", ";", "emit_move_insn", "(", "r12", ",", "func_desc", ")", ";", "func_addr", "=", "gen_rtx_REG", "(", "Pmode", ",", "CTR_REGNO", ")", ";", "emit_move_insn", "(", "func_addr", ",", "r12", ")", ";", "}", "call", "[", "0", "]", "=", "gen_rtx_CALL", "(", "VOIDmode", ",", "gen_rtx_MEM", "(", "SImode", ",", "func_addr", ")", ",", "tlsarg", ")", ";", "if", "(", "value", "!=", "NULL_RTX", ")", "call", "[", "0", "]", "=", "gen_rtx_SET", "(", "value", ",", "call", "[", "0", "]", ")", ";", "call", "[", "1", "]", "=", "simple_return_rtx", ";", "insn", "=", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "gen_rtvec_v", "(", "2", ",", "call", ")", ")", ";", "insn", "=", "emit_call_insn", "(", "insn", ")", ";", "if", "(", "!", "rs6000_pcrel_p", "(", ")", ")", "use_reg", "(", "&", "CALL_INSN_FUNCTION_USAGE", "(", "insn", ")", ",", "gen_rtx_REG", "(", "Pmode", ",", "TOC_REGNUM", ")", ")", ";", "if", "(", "r12", ")", "use_reg", "(", "&", "CALL_INSN_FUNCTION_USAGE", "(", "insn", ")", ",", "r12", ")", ";", "}", ""], "natrual_language": ["Expand", "code", "to", "perform", "a", "sibling", "call", "under", "the", "AIX", "or", "ELFv2", "ABI", "."], "TS_V_token": ["rs6000", "2", "0", "12", "0", "0", "0", "1", "2"], "File": "rs6000", "Func": "rs6000_sibcall_aix", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2774, "Length": 240, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SparcFrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "SparcMachineFunctionInfo", "*", "FuncInfo", "=", "MF", ".", "getInfo", "<", "SparcMachineFunctionInfo", ">", "(", ")", ";", "assert", "(", "&", "MF", ".", "front", "(", ")", "==", "&", "MBB", "&&", "\"Shrink-wrapping not yet supported\"", ")", ";", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "SparcInstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "SparcInstrInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "begin", "(", ")", ";", "DebugLoc", "dl", "=", "MBBI", "!=", "MBB", ".", "end", "(", ")", "?", "MBBI", "->", "getDebugLoc", "(", ")", ":", "DebugLoc", "(", ")", ";", "int", "NumBytes", "=", "(", "int", ")", "MFI", "->", "getStackSize", "(", ")", ";", "unsigned", "SAVEri", "=", "SP", "::", "SAVEri", ";", "unsigned", "SAVErr", "=", "SP", "::", "SAVErr", ";", "if", "(", "FuncInfo", "->", "isLeafProc", "(", ")", ")", "{", "if", "(", "NumBytes", "==", "0", ")", "return", ";", "SAVEri", "=", "SP", "::", "ADDri", ";", "SAVErr", "=", "SP", "::", "ADDrr", ";", "}", "NumBytes", "=", "-", "MF", ".", "getSubtarget", "<", "SparcSubtarget", ">", "(", ")", ".", "getAdjustedFrameSize", "(", "NumBytes", ")", ";", "emitSPAdjustment", "(", "MF", ",", "MBB", ",", "MBBI", ",", "NumBytes", ",", "SAVErr", ",", "SAVEri", ")", ";", "MachineModuleInfo", "&", "MMI", "=", "MF", ".", "getMMI", "(", ")", ";", "const", "MCRegisterInfo", "*", "MRI", "=", "MMI", ".", "getContext", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "unsigned", "regFP", "=", "MRI", "->", "getDwarfRegNum", "(", "SP", "::", "I6", ",", "true", ")", ";", "unsigned", "CFIIndex", "=", "MMI", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createDefCfaRegister", "(", "nullptr", ",", "regFP", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";", "CFIIndex", "=", "MMI", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createWindowSave", "(", "nullptr", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";", "unsigned", "regInRA", "=", "MRI", "->", "getDwarfRegNum", "(", "SP", "::", "I7", ",", "true", ")", ";", "unsigned", "regOutRA", "=", "MRI", "->", "getDwarfRegNum", "(", "SP", "::", "O7", ",", "true", ")", ";", "CFIIndex", "=", "MMI", ".", "addFrameInst", "(", "MCCFIInstruction", "::", "createRegister", "(", "nullptr", ",", "regOutRA", ",", "regInRA", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "TargetOpcode", "::", "CFI_INSTRUCTION", ")", ")", ".", "addCFIIndex", "(", "CFIIndex", ")", ";", "}", ""], "natrual_language": ["emitProlog/emitEpilog", "-", "These", "methods", "insert", "prolog", "and", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["Sparc", "Sparc", "Sparc", "Sparc", "\"Shrink-wrapping not yet supported\"", "Sparc", "Sparc", "SP::SAVEri", "SP::SAVErr", "0", "SP::ADDri", "SP::ADDrr", "Sparc", "SP", "SP::I6", "SP::I7", "SP::O7"], "File": "SparcFrameLowering2", "Func": "emitPrologue", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2775, "Length": 383, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "MVT", "getShiftAmountTy", "(", "EVT", "LHSTy", ")", "const", "{", "return", "MVT", "::", "i16", ";", "}", ""], "natrual_language": ["Returns", "the", "type", "for", "the", "shift", "amount", "of", "a", "shift", "opcode", "."], "TS_V_token": ["Dcpu16", "MVT::i16"], "File": "Dcpu16ISelLowering", "Func": "getShiftAmountTy", "Target": "Dcpu16", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2776, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "gen_stdcall_or_fastcall_suffix", "(", "tree", "decl", ",", "tree", "id", ",", "bool", "fastcall", ")", "{", "HOST_WIDE_INT", "total", "=", "0", ";", "const", "char", "*", "old_str", "=", "IDENTIFIER_POINTER", "(", "id", "!=", "NULL_TREE", "?", "id", ":", "DECL_NAME", "(", "decl", ")", ")", ";", "char", "*", "new_str", ",", "*", "p", ";", "tree", "type", "=", "TREE_TYPE", "(", "DECL_ORIGIN", "(", "decl", ")", ")", ";", "tree", "arg", ";", "function_args_iterator", "args_iter", ";", "gcc_assert", "(", "TREE_CODE", "(", "decl", ")", "==", "FUNCTION_DECL", ")", ";", "if", "(", "prototype_p", "(", "type", ")", ")", "{", "if", "(", "stdarg_p", "(", "type", ")", ")", "return", "NULL_TREE", ";", "FOREACH_FUNCTION_ARGS", "(", "type", ",", "arg", ",", "args_iter", ")", "{", "HOST_WIDE_INT", "parm_size", ";", "HOST_WIDE_INT", "parm_boundary_bytes", "=", "PARM_BOUNDARY", "/", "BITS_PER_UNIT", ";", "if", "(", "!", "COMPLETE_TYPE_P", "(", "arg", ")", ")", "break", ";", "parm_size", "=", "int_size_in_bytes", "(", "arg", ")", ";", "if", "(", "parm_size", "<", "0", ")", "break", ";", "parm_size", "=", "(", "(", "parm_size", "+", "parm_boundary_bytes", "-", "1", ")", "/", "parm_boundary_bytes", "*", "parm_boundary_bytes", ")", ";", "total", "+=", "parm_size", ";", "}", "}", "p", "=", "new_str", "=", "XALLOCAVEC", "(", "char", ",", "1", "+", "strlen", "(", "old_str", ")", "+", "1", "+", "8", "+", "1", ")", ";", "if", "(", "fastcall", ")", "*", "p", "++", "=", "FASTCALL_PREFIX", ";", "sprintf", "(", "p", ",", "\"%s@\"", "HOST_WIDE_INT_PRINT_DEC", ",", "old_str", ",", "total", ")", ";", "return", "get_identifier", "(", "new_str", ")", ";", "}", ""], "natrual_language": ["Return", "string", "which", "is", "the", "former", "assembler", "name", "modified", "with", "a", "suffix", "consisting", "of", "an", "atsign", "(", "@", ")", "followed", "by", "the", "number", "of", "bytes", "of", "arguments", ".", "If", "FASTCALL", "is", "true", ",", "also", "add", "the", "FASTCALL_PREFIX", "."], "TS_V_token": ["i386", "0", "0", "1", "1", "1", "8", "1", "\"%s@\""], "File": "winnt", "Func": "gen_stdcall_or_fastcall_suffix", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2777, "Length": 207, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "isAssociativeAndCommutative", "(", "unsigned", "Opcode", ")", "{", "switch", "(", "Opcode", ")", "{", "case", "X86", "::", "ADDSDrr", ":", "case", "X86", "::", "ADDSSrr", ":", "case", "X86", "::", "VADDSDrr", ":", "case", "X86", "::", "VADDSSrr", ":", "case", "X86", "::", "MULSDrr", ":", "case", "X86", "::", "MULSSrr", ":", "case", "X86", "::", "VMULSDrr", ":", "case", "X86", "::", "VMULSSrr", ":", "return", "true", ";", "default", ":", "return", "false", ";", "}", "}", ""], "natrual_language": ["Return", "true", "when", "\\P", "Inst", "is", "both", "associative", "and", "commutative", "."], "TS_V_token": ["X86", "X86::ADDSDrr", "X86::ADDSSrr", "X86::VADDSDrr", "X86::VADDSSrr", "X86::MULSDrr", "X86::MULSSrr", "X86::VMULSDrr", "X86::VMULSSrr"], "File": "X86InstrInfo111", "Func": "isAssociativeAndCommutative", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2778, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Cpu0SEInstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "const", "DebugLoc", "&", "DL", ",", "unsigned", "DestReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "unsigned", "Opc", "=", "0", ",", "ZeroReg", "=", "0", ";", "if", "(", "Cpu0", "::", "CPURegsRegClass", ".", "contains", "(", "DestReg", ")", ")", "{", "if", "(", "Cpu0", "::", "CPURegsRegClass", ".", "contains", "(", "SrcReg", ")", ")", "Opc", "=", "Cpu0", "::", "ADDu", ",", "ZeroReg", "=", "Cpu0", "::", "ZERO", ";", "else", "if", "(", "SrcReg", "==", "Cpu0", "::", "HI", ")", "Opc", "=", "Cpu0", "::", "MFHI", ",", "SrcReg", "=", "0", ";", "else", "if", "(", "SrcReg", "==", "Cpu0", "::", "LO", ")", "Opc", "=", "Cpu0", "::", "MFLO", ",", "SrcReg", "=", "0", ";", "}", "else", "if", "(", "Cpu0", "::", "CPURegsRegClass", ".", "contains", "(", "SrcReg", ")", ")", "{", "if", "(", "DestReg", "==", "Cpu0", "::", "HI", ")", "Opc", "=", "Cpu0", "::", "MTHI", ",", "DestReg", "=", "0", ";", "else", "if", "(", "DestReg", "==", "Cpu0", "::", "LO", ")", "Opc", "=", "Cpu0", "::", "MTLO", ",", "DestReg", "=", "0", ";", "}", "assert", "(", "Opc", "&&", "\"Cannot copy registers\"", ")", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "Opc", ")", ")", ";", "if", "(", "DestReg", ")", "MIB", ".", "addReg", "(", "DestReg", ",", "RegState", "::", "Define", ")", ";", "if", "(", "ZeroReg", ")", "MIB", ".", "addReg", "(", "ZeroReg", ")", ";", "if", "(", "SrcReg", ")", "MIB", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "}", ""], "natrual_language": ["}", "Branch", "Analysis", "&", "Modification"], "TS_V_token": ["Cpu0", "Cpu0", "0", "0", "Cpu0::CPURegsRegClass", "Cpu0::CPURegsRegClass", "Cpu0::ADDu", "Cpu0::ZERO", "Cpu0::HI", "Cpu0::MFHI", "0", "Cpu0::LO", "Cpu0::MFLO", "0", "Cpu0::CPURegsRegClass", "Cpu0::HI", "Cpu0::MTHI", "0", "Cpu0::LO", "Cpu0::MTLO", "0", "\"Cannot copy registers\""], "File": "Cpu0SEInstrInfo", "Func": "copyPhysReg", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2779, "Length": 231, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "GlobalBaseReg", "=", "0", ";", "SelectionDAGISel", "::", "runOnMachineFunction", "(", "MF", ")", ";", "if", "(", "!", "PPCSubTarget", ".", "isSVR4ABI", "(", ")", ")", "InsertVRSaveCode", "(", "MF", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["PowerPC", "0", "PPC"], "File": "PPCISelDAGToDAG (2)", "Func": "runOnMachineFunction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2780, "Length": 38, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsAsmPrinter", "::", "isBlockOnlyReachableByFallthrough", "(", "const", "MachineBasicBlock", "*", "MBB", ")", "const", "{", "const", "MachineBasicBlock", "*", "Pred", "=", "*", "MBB", "->", "pred_begin", "(", ")", ";", "if", "(", "const", "BasicBlock", "*", "bb", "=", "Pred", "->", "getBasicBlock", "(", ")", ")", "if", "(", "isa", "<", "SwitchInst", ">", "(", "bb", "->", "getTerminator", "(", ")", ")", ")", "return", "false", ";", "if", "(", "MBB", "->", "isLandingPad", "(", ")", "||", "MBB", "->", "pred_empty", "(", ")", ")", "return", "false", ";", "MachineBasicBlock", "::", "const_pred_iterator", "PI", "=", "MBB", "->", "pred_begin", "(", ")", ",", "PI2", "=", "PI", ";", "++", "PI2", ";", "if", "(", "PI2", "!=", "MBB", "->", "pred_end", "(", ")", ")", "return", "false", ";", "if", "(", "!", "Pred", "->", "isLayoutSuccessor", "(", "MBB", ")", ")", "return", "false", ";", "if", "(", "Pred", "->", "empty", "(", ")", ")", "return", "true", ";", "MachineBasicBlock", "::", "const_iterator", "I", "=", "Pred", "->", "end", "(", ")", ";", "while", "(", "I", "!=", "Pred", "->", "begin", "(", ")", "&&", "!", "(", "--", "I", ")", "->", "getDesc", "(", ")", ".", "isTerminator", "(", ")", ")", ";", "return", "!", "I", "->", "getDesc", "(", ")", ".", "isBarrier", "(", ")", ";", "}", ""], "natrual_language": ["isBlockOnlyReachableByFallthough", "-", "Return", "true", "if", "the", "basic", "block", "has", "exactly", "one", "predecessor", "and", "the", "control", "transfer", "mechanism", "between", "the", "predecessor", "and", "this", "block", "is", "a", "fall-through", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsAsmPrinter8", "Func": "isBlockOnlyReachableByFallthrough", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2781, "Length": 175, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "ix86_output_indirect_jmp", "(", "rtx", "call_op", ")", "{", "if", "(", "cfun", "->", "machine", "->", "indirect_branch_type", "!=", "indirect_branch_keep", ")", "{", "if", "(", "ix86_red_zone_used", ")", "gcc_unreachable", "(", ")", ";", "ix86_output_indirect_branch", "(", "call_op", ",", "\"%0\"", ",", "true", ")", ";", "}", "else", "output_asm_insn", "(", "\"%!jmp\\t%A0\"", ",", "&", "call_op", ")", ";", "return", "(", "ix86_harden_sls", "&", "harden_sls_indirect_jmp", ")", "?", "\"int3\"", ":", "\"\"", ";", "}", ""], "natrual_language": ["Output", "indirect", "jump", ".", "CALL_OP", "is", "the", "jump", "target", "."], "TS_V_token": ["i386", "\"%0\"", "\"%!jmp\\t%A0\"", "\"int3\"", "\"\""], "File": "i386", "Func": "ix86_output_indirect_jmp", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2782, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "HOST_WIDE_INT", "aarch64_and_split_imm2", "(", "HOST_WIDE_INT", "val_in", ")", "{", "return", "val_in", "|", "~", "aarch64_and_split_imm1", "(", "val_in", ")", ";", "}", ""], "natrual_language": ["Create", "constant", "where", "bits", "outside", "of", "lowest", "bit", "set", "to", "highest", "bit", "set", "are", "set", "to", "1", "."], "TS_V_token": ["aarch64"], "File": "aarch64", "Func": "aarch64_and_split_imm2", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2783, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86FrameLowering", "::", "assignCalleeSavedSpillSlots", "(", "MachineFunction", "&", "MF", ",", "const", "TargetRegisterInfo", "*", "TRI", ",", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ")", "const", "{", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "X86MachineFunctionInfo", "*", "X86FI", "=", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", ";", "unsigned", "CalleeSavedFrameSize", "=", "0", ";", "int", "SpillSlotOffset", "=", "getOffsetOfLocalArea", "(", ")", "+", "X86FI", "->", "getTCReturnAddrDelta", "(", ")", ";", "int64_t", "TailCallReturnAddrDelta", "=", "X86FI", "->", "getTCReturnAddrDelta", "(", ")", ";", "if", "(", "TailCallReturnAddrDelta", "<", "0", ")", "{", "MFI", ".", "CreateFixedObject", "(", "-", "TailCallReturnAddrDelta", ",", "TailCallReturnAddrDelta", "-", "SlotSize", ",", "true", ")", ";", "}", "if", "(", "this", "->", "TRI", "->", "hasBasePointer", "(", "MF", ")", ")", "{", "if", "(", "MF", ".", "hasEHFunclets", "(", ")", ")", "{", "int", "FI", "=", "MFI", ".", "CreateSpillStackObject", "(", "SlotSize", ",", "SlotSize", ")", ";", "X86FI", "->", "setHasSEHFramePtrSave", "(", "true", ")", ";", "X86FI", "->", "setSEHFramePtrSaveIndex", "(", "FI", ")", ";", "}", "}", "if", "(", "hasFP", "(", "MF", ")", ")", "{", "SpillSlotOffset", "-=", "SlotSize", ";", "MFI", ".", "CreateFixedSpillStackObject", "(", "SlotSize", ",", "SpillSlotOffset", ")", ";", "unsigned", "FPReg", "=", "TRI", "->", "getFrameRegister", "(", "MF", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "CSI", ".", "size", "(", ")", ";", "++", "i", ")", "{", "if", "(", "TRI", "->", "regsOverlap", "(", "CSI", "[", "i", "]", ".", "getReg", "(", ")", ",", "FPReg", ")", ")", "{", "CSI", ".", "erase", "(", "CSI", ".", "begin", "(", ")", "+", "i", ")", ";", "break", ";", "}", "}", "}", "for", "(", "unsigned", "i", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "0", ";", "--", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "-", "1", "]", ".", "getReg", "(", ")", ";", "if", "(", "!", "X86", "::", "GR64RegClass", ".", "contains", "(", "Reg", ")", "&&", "!", "X86", "::", "GR32RegClass", ".", "contains", "(", "Reg", ")", ")", "continue", ";", "SpillSlotOffset", "-=", "SlotSize", ";", "CalleeSavedFrameSize", "+=", "SlotSize", ";", "int", "SlotIndex", "=", "MFI", ".", "CreateFixedSpillStackObject", "(", "SlotSize", ",", "SpillSlotOffset", ")", ";", "CSI", "[", "i", "-", "1", "]", ".", "setFrameIdx", "(", "SlotIndex", ")", ";", "}", "X86FI", "->", "setCalleeSavedFrameSize", "(", "CalleeSavedFrameSize", ")", ";", "for", "(", "unsigned", "i", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "0", ";", "--", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "-", "1", "]", ".", "getReg", "(", ")", ";", "if", "(", "X86", "::", "GR64RegClass", ".", "contains", "(", "Reg", ")", "||", "X86", "::", "GR32RegClass", ".", "contains", "(", "Reg", ")", ")", "continue", ";", "MVT", "VT", "=", "MVT", "::", "Other", ";", "if", "(", "X86", "::", "VK16RegClass", ".", "contains", "(", "Reg", ")", ")", "VT", "=", "STI", ".", "hasBWI", "(", ")", "?", "MVT", "::", "v64i1", ":", "MVT", "::", "v16i1", ";", "const", "TargetRegisterClass", "*", "RC", "=", "TRI", "->", "getMinimalPhysRegClass", "(", "Reg", ",", "VT", ")", ";", "unsigned", "Size", "=", "TRI", "->", "getSpillSize", "(", "*", "RC", ")", ";", "unsigned", "Align", "=", "TRI", "->", "getSpillAlignment", "(", "*", "RC", ")", ";", "SpillSlotOffset", "-=", "std", "::", "abs", "(", "SpillSlotOffset", ")", "%", "Align", ";", "SpillSlotOffset", "-=", "Size", ";", "int", "SlotIndex", "=", "MFI", ".", "CreateFixedSpillStackObject", "(", "Size", ",", "SpillSlotOffset", ")", ";", "CSI", "[", "i", "-", "1", "]", ".", "setFrameIdx", "(", "SlotIndex", ")", ";", "MFI", ".", "ensureMaxAlignment", "(", "Align", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["This", "function", "will", "assign", "callee", "saved", "gprs", "to", "volatile", "vector", "registers", "for", "prologue", "spills", "when", "applicable", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "0", "X86", "X86", "0", "X86", "X86", "0", "0", "1", "X86::GR64RegClass", "X86::GR32RegClass", "1", "X86", "0", "1", "X86::GR64RegClass", "X86::GR32RegClass", "MVT::Other", "X86::VK16RegClass", "MVT::v64i1", "MVT::v16i1", "1"], "File": "X86FrameLowering13", "Func": "assignCalleeSavedSpillSlots", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2784, "Length": 506, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SICSubtarget", "&", "SICSubtarget", "::", "initializeSubtargetDependencies", "(", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetMachine", "&", "TM", ")", "{", "if", "(", "TargetTriple", ".", "getArch", "(", ")", "==", "Triple", "::", "sic", ")", "{", "if", "(", "CPU", ".", "empty", "(", ")", "||", "CPU", "==", "\"generic\"", ")", "{", "CPU", "=", "\"sicxe\"", ";", "}", "else", "if", "(", "CPU", "==", "\"help\"", ")", "{", "CPU", "=", "\"\"", ";", "return", "*", "this", ";", "}", "else", "if", "(", "CPU", "!=", "\"sicse\"", "&&", "CPU", "!=", "\"sicxe\"", ")", "{", "CPU", "=", "\"sicxe\"", ";", "}", "}", "else", "{", "errs", "(", ")", "<<", "\"!!!Error, TargetTriple.getArch() = \"", "<<", "TargetTriple", ".", "getArch", "(", ")", "<<", "\"CPU = \"", "<<", "CPU", "<<", "\"\\n\"", ";", "exit", "(", "0", ")", ";", "}", "if", "(", "CPU", "==", "\"sicse\"", ")", "SICArchVersion", "=", "SICSE", ";", "else", "if", "(", "CPU", "==", "\"sicxe\"", ")", "SICArchVersion", "=", "SICXE", ";", "ParseSubtargetFeatures", "(", "CPU", ",", "FS", ")", ";", "InstrItins", "=", "getInstrItineraryForCPU", "(", "CPU", ")", ";", "return", "*", "this", ";", "}", ""], "natrual_language": ["initializeSubtargetDependencies", "-", "Initializes", "using", "a", "CPU", ",", "a", "TuneCPU", ",", "and", "feature", "string", "so", "that", "we", "can", "use", "initializer", "lists", "for", "subtarget", "initialization", "."], "TS_V_token": ["SIC", "SIC", "SIC", "\"generic\"", "\"sicxe\"", "\"help\"", "\"\"", "\"sicse\"", "\"sicxe\"", "\"sicxe\"", "\"!!!Error, TargetTriple.getArch() = \"", "\"CPU = \"", "\"\\n\"", "0", "\"sicse\"", "SIC", "SIC", "\"sicxe\"", "SIC", "SIC"], "File": "SICSubtarget", "Func": "initializeSubtargetDependencies", "Target": "SIC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2785, "Length": 150, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "align_flags", "rs6000_loop_align", "(", "rtx", "label", ")", "{", "basic_block", "bb", ";", "int", "ninsns", ";", "if", "(", "!", "can_override_loop_align", ")", "return", "align_loops", ";", "bb", "=", "BLOCK_FOR_INSN", "(", "label", ")", ";", "ninsns", "=", "num_loop_insns", "(", "bb", "->", "loop_father", ")", ";", "if", "(", "ninsns", ">", "4", "&&", "ninsns", "<=", "8", "&&", "(", "rs6000_tune", "==", "PROCESSOR_POWER4", "||", "rs6000_tune", "==", "PROCESSOR_POWER5", "||", "rs6000_tune", "==", "PROCESSOR_POWER6", "||", "rs6000_tune", "==", "PROCESSOR_POWER7", "||", "rs6000_tune", "==", "PROCESSOR_POWER8", ")", ")", "return", "align_flags", "(", "5", ")", ";", "else", "return", "align_loops", ";", "}", ""], "natrual_language": ["Implement", "LOOP_ALIGN", "."], "TS_V_token": ["rs6000", "4", "8", "5"], "File": "rs6000", "Func": "rs6000_loop_align", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2786, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "xstormy16_print_operand_address", "(", "FILE", "*", "file", ",", "rtx", "address", ")", "{", "HOST_WIDE_INT", "offset", ";", "int", "pre_dec", ",", "post_inc", ";", "if", "(", "CONST_INT_P", "(", "address", ")", ")", "{", "fprintf", "(", "file", ",", "HOST_WIDE_INT_PRINT_DEC", ",", "INTVAL", "(", "address", ")", "&", "0xFFFF", ")", ";", "return", ";", "}", "if", "(", "CONSTANT_P", "(", "address", ")", "||", "LABEL_P", "(", "address", ")", ")", "{", "output_addr_const", "(", "file", ",", "address", ")", ";", "return", ";", "}", "if", "(", "GET_CODE", "(", "address", ")", "==", "PLUS", ")", "{", "gcc_assert", "(", "CONST_INT_P", "(", "XEXP", "(", "address", ",", "1", ")", ")", ")", ";", "offset", "=", "INTVAL", "(", "XEXP", "(", "address", ",", "1", ")", ")", ";", "address", "=", "XEXP", "(", "address", ",", "0", ")", ";", "}", "else", "offset", "=", "0", ";", "pre_dec", "=", "(", "GET_CODE", "(", "address", ")", "==", "PRE_DEC", ")", ";", "post_inc", "=", "(", "GET_CODE", "(", "address", ")", "==", "POST_INC", ")", ";", "if", "(", "pre_dec", "||", "post_inc", ")", "address", "=", "XEXP", "(", "address", ",", "0", ")", ";", "gcc_assert", "(", "REG_P", "(", "address", ")", ")", ";", "fputc", "(", "'('", ",", "file", ")", ";", "if", "(", "pre_dec", ")", "fputs", "(", "\"--\"", ",", "file", ")", ";", "fputs", "(", "reg_names", "[", "REGNO", "(", "address", ")", "]", ",", "file", ")", ";", "if", "(", "post_inc", ")", "fputs", "(", "\"++\"", ",", "file", ")", ";", "if", "(", "offset", "!=", "0", ")", "fprintf", "(", "file", ",", "\",\"", "HOST_WIDE_INT_PRINT_DEC", ",", "offset", ")", ";", "fputc", "(", "')'", ",", "file", ")", ";", "}", ""], "natrual_language": ["Print", "a", "memory", "address", "as", "an", "operand", "to", "reference", "that", "memory", "location", "."], "TS_V_token": ["stormy16", "0xFFFF", "1", "1", "0", "0", "0", "\"--\"", "\"++\"", "0", "\",\""], "File": "stormy164", "Func": "xstormy16_print_operand_address", "Target": "stormy16", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2787, "Length": 229, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "*", "rs6000_init_cost", "(", "struct", "loop", "*", "loop_info", ")", "{", "rs6000_cost_data", "*", "data", "=", "XNEW", "(", "struct", "_rs6000_cost_data", ")", ";", "data", "->", "loop_info", "=", "loop_info", ";", "data", "->", "cost", "[", "vect_prologue", "]", "=", "0", ";", "data", "->", "cost", "[", "vect_body", "]", "=", "0", ";", "data", "->", "cost", "[", "vect_epilogue", "]", "=", "0", ";", "rs6000_vect_nonmem", "=", "false", ";", "return", "data", ";", "}", ""], "natrual_language": ["Implement", "targetm.vectorize.init_cost", "."], "TS_V_token": ["powerpcspe", "0", "0", "0"], "File": "powerpcspe", "Func": "rs6000_init_cost", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2788, "Length": 62, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ARMBaseTargetMachine", "::", "ARMBaseTargetMachine", "(", "const", "Target", "&", "T", ",", "StringRef", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Reloc", "::", "Model", "RM", ",", "CodeModel", "::", "Model", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ")", ":", "LLVMTargetMachine", "(", "T", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "RM", ",", "CM", ",", "OL", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ",", "Options", ")", ",", "JITInfo", "(", ")", ",", "InstrItins", "(", "Subtarget", ".", "getInstrItineraryData", "(", ")", ")", "{", "if", "(", "Options", ".", "FloatABIType", "==", "FloatABI", "::", "Default", ")", "this", "->", "Options", ".", "FloatABIType", "=", "FloatABI", "::", "Soft", ";", "}", ""], "natrual_language": ["Create", "an", "ARM", "architecture", "model", "."], "TS_V_token": ["ARM", "ARM", "ARM"], "File": "ARMTargetMachine106", "Func": "ARMBaseTargetMachine", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2789, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "AArch64TTIImpl", "::", "getArithmeticInstrCost", "(", "unsigned", "Opcode", ",", "Type", "*", "Ty", ",", "TTI", "::", "OperandValueKind", "Opd1Info", ",", "TTI", "::", "OperandValueKind", "Opd2Info", ",", "TTI", "::", "OperandValueProperties", "Opd1PropInfo", ",", "TTI", "::", "OperandValueProperties", "Opd2PropInfo", ",", "ArrayRef", "<", "const", "Value", "*", ">", "Args", ")", "{", "std", "::", "pair", "<", "int", ",", "MVT", ">", "LT", "=", "TLI", "->", "getTypeLegalizationCost", "(", "DL", ",", "Ty", ")", ";", "int", "ISD", "=", "TLI", "->", "InstructionOpcodeToISD", "(", "Opcode", ")", ";", "if", "(", "ISD", "==", "ISD", "::", "SDIV", "&&", "Opd2Info", "==", "TargetTransformInfo", "::", "OK_UniformConstantValue", "&&", "Opd2PropInfo", "==", "TargetTransformInfo", "::", "OP_PowerOf2", ")", "{", "int", "Cost", "=", "getArithmeticInstrCost", "(", "Instruction", "::", "Add", ",", "Ty", ",", "Opd1Info", ",", "Opd2Info", ",", "TargetTransformInfo", "::", "OP_None", ",", "TargetTransformInfo", "::", "OP_None", ")", ";", "Cost", "+=", "getArithmeticInstrCost", "(", "Instruction", "::", "Sub", ",", "Ty", ",", "Opd1Info", ",", "Opd2Info", ",", "TargetTransformInfo", "::", "OP_None", ",", "TargetTransformInfo", "::", "OP_None", ")", ";", "Cost", "+=", "getArithmeticInstrCost", "(", "Instruction", "::", "Select", ",", "Ty", ",", "Opd1Info", ",", "Opd2Info", ",", "TargetTransformInfo", "::", "OP_None", ",", "TargetTransformInfo", "::", "OP_None", ")", ";", "Cost", "+=", "getArithmeticInstrCost", "(", "Instruction", "::", "AShr", ",", "Ty", ",", "Opd1Info", ",", "Opd2Info", ",", "TargetTransformInfo", "::", "OP_None", ",", "TargetTransformInfo", "::", "OP_None", ")", ";", "return", "Cost", ";", "}", "switch", "(", "ISD", ")", "{", "default", ":", "return", "BaseT", "::", "getArithmeticInstrCost", "(", "Opcode", ",", "Ty", ",", "Opd1Info", ",", "Opd2Info", ",", "Opd1PropInfo", ",", "Opd2PropInfo", ")", ";", "case", "ISD", "::", "ADD", ":", "case", "ISD", "::", "MUL", ":", "case", "ISD", "::", "XOR", ":", "case", "ISD", "::", "OR", ":", "case", "ISD", "::", "AND", ":", "return", "1", "*", "LT", ".", "first", ";", "}", "}", ""], "natrual_language": ["This", "is", "an", "approximation", "of", "reciprocal", "throughput", "of", "a", "math/logic", "op", "."], "TS_V_token": ["AArch64", "AArch64", "ISD::SDIV", "ISD::ADD", "ISD::MUL", "ISD::XOR", "ISD::OR", "ISD::AND", "1"], "File": "AArch64TargetTransformInfo17", "Func": "getArithmeticInstrCost", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2790, "Length": 247, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86AsmBackend", "::", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ")", "const", "{", "if", "(", "getRelaxedOpcodeBranch", "(", "Inst", ".", "getOpcode", "(", ")", ")", "!=", "Inst", ".", "getOpcode", "(", ")", ")", "return", "true", ";", "if", "(", "getRelaxedOpcodeArith", "(", "Inst", ".", "getOpcode", "(", ")", ")", "==", "Inst", ".", "getOpcode", "(", ")", ")", "return", "false", ";", "unsigned", "RelaxableOp", "=", "Inst", ".", "getNumOperands", "(", ")", "-", "1", ";", "if", "(", "Inst", ".", "getOperand", "(", "RelaxableOp", ")", ".", "isExpr", "(", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Check", "whether", "the", "given", "instruction", "may", "need", "relaxation", "."], "TS_V_token": ["X86", "X86", "1"], "File": "X86AsmBackend (2)3", "Func": "mayNeedRelaxation", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2791, "Length": 83, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64TargetStreamer", "::", "finish", "(", ")", "{", "if", "(", "MarkBTIProperty", ")", "emitNoteSection", "(", "ELF", "::", "GNU_PROPERTY_AARCH64_FEATURE_1_BTI", ")", ";", "}", ""], "natrual_language": ["finish", "-", "after", "all", "the", "new", "live", "ranges", "have", "been", "created", ",", "compute", "the", "remaining", "live", "range", ",", "and", "rewrite", "instructions", "to", "use", "the", "new", "registers", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64TargetStreamer3", "Func": "finish", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2792, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "CSKYAsmPrinter", "::", "emitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "if", "(", "emitPseudoExpansionLowering", "(", "*", "OutStreamer", ",", "MI", ")", ")", "return", ";", "if", "(", "InConstantPool", "&&", "MI", "->", "getOpcode", "(", ")", "!=", "CSKY", "::", "CONSTPOOL_ENTRY", ")", "{", "InConstantPool", "=", "false", ";", "}", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "CSKY", "::", "PseudoTLSLA32", ")", "return", "expandTLSLA", "(", "MI", ")", ";", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "CSKY", "::", "CONSTPOOL_ENTRY", ")", "return", "emitCustomConstantPool", "(", "MI", ")", ";", "MCInst", "TmpInst", ";", "MCInstLowering", ".", "Lower", "(", "MI", ",", "TmpInst", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "TmpInst", ")", ";", "}", ""], "natrual_language": ["Targets", "should", "implement", "this", "to", "emit", "instructions", "."], "TS_V_token": ["CSKY", "CSKY", "CSKY::CONSTPOOL_ENTRY", "CSKY::PseudoTLSLA32", "CSKY::CONSTPOOL_ENTRY"], "File": "CSKYAsmPrinter1", "Func": "emitInstruction", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2793, "Length": 100, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "addExpr", "(", "MCInst", "&", "Inst", ",", "const", "MCExpr", "*", "Expr", ")", "const", "{", "if", "(", "!", "Expr", ")", "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": ["ARM", "0"], "File": "ARMAsmParser101", "Func": "addExpr", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2794, "Length": 77, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "loongarch_block_move_straight", "(", "rtx", "dest", ",", "rtx", "src", ",", "HOST_WIDE_INT", "length", ")", "{", "HOST_WIDE_INT", "offset", ",", "delta", ";", "unsigned", "HOST_WIDE_INT", "bits", ";", "int", "i", ";", "machine_mode", "mode", ";", "rtx", "*", "regs", ";", "bits", "=", "MIN", "(", "BITS_PER_WORD", ",", "MIN", "(", "MEM_ALIGN", "(", "src", ")", ",", "MEM_ALIGN", "(", "dest", ")", ")", ")", ";", "mode", "=", "int_mode_for_size", "(", "bits", ",", "0", ")", ".", "require", "(", ")", ";", "delta", "=", "bits", "/", "BITS_PER_UNIT", ";", "regs", "=", "XALLOCAVEC", "(", "rtx", ",", "length", "/", "delta", ")", ";", "for", "(", "offset", "=", "0", ",", "i", "=", "0", ";", "offset", "+", "delta", "<=", "length", ";", "offset", "+=", "delta", ",", "i", "++", ")", "{", "regs", "[", "i", "]", "=", "gen_reg_rtx", "(", "mode", ")", ";", "loongarch_emit_move", "(", "regs", "[", "i", "]", ",", "adjust_address", "(", "src", ",", "mode", ",", "offset", ")", ")", ";", "}", "for", "(", "offset", "=", "0", ",", "i", "=", "0", ";", "offset", "+", "delta", "<=", "length", ";", "offset", "+=", "delta", ",", "i", "++", ")", "loongarch_emit_move", "(", "adjust_address", "(", "dest", ",", "mode", ",", "offset", ")", ",", "regs", "[", "i", "]", ")", ";", "if", "(", "offset", "<", "length", ")", "{", "src", "=", "adjust_address", "(", "src", ",", "BLKmode", ",", "offset", ")", ";", "dest", "=", "adjust_address", "(", "dest", ",", "BLKmode", ",", "offset", ")", ";", "move_by_pieces", "(", "dest", ",", "src", ",", "length", "-", "offset", ",", "MIN", "(", "MEM_ALIGN", "(", "src", ")", ",", "MEM_ALIGN", "(", "dest", ")", ")", ",", "(", "enum", "memop_ret", ")", "0", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "straight-line", "code", "to", "move", "LENGTH", "bytes", "from", "SRC", "to", "DEST", ".", "Assume", "that", "the", "areas", "do", "not", "overlap", "."], "TS_V_token": ["loongarch", "0", "0", "0", "0", "0", "0"], "File": "loongarch", "Func": "loongarch_block_move_straight", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2795, "Length": 236, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "pru_function_profiler", "(", "FILE", "*", "file", ",", "int", "labelno", "ATTRIBUTE_UNUSED", ")", "{", "fprintf", "(", "file", ",", "\"\\tmov\\tr1, ra\\n\"", ")", ";", "fprintf", "(", "file", ",", "\"\\tcall\\t_mcount\\n\"", ")", ";", "fprintf", "(", "file", ",", "\"\\tmov\\tra, r1\\n\"", ")", ";", "}", ""], "natrual_language": ["Implement", "FUNCTION_PROFILER", "macro", "."], "TS_V_token": ["pru", "\"\\tmov\\tr1, ra\\n\"", "\"\\tcall\\t_mcount\\n\"", "\"\\tmov\\tra, r1\\n\""], "File": "pru", "Func": "pru_function_profiler", "Target": "pru", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2796, "Length": 34, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "arm_option_reconfigure_globals", "(", "void", ")", "{", "sprintf", "(", "arm_arch_name", ",", "\"__ARM_ARCH_%s__\"", ",", "arm_active_target", ".", "arch_pp_name", ")", ";", "arm_base_arch", "=", "arm_active_target", ".", "base_arch", ";", "arm_arch3m", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_armv3m", ")", ";", "arm_arch4", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_armv4", ")", ";", "arm_arch4t", "=", "arm_arch4", "&&", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_thumb", ")", ";", "arm_arch5", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_armv5", ")", ";", "arm_arch5e", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_armv5e", ")", ";", "arm_arch5te", "=", "arm_arch5e", "&&", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_thumb", ")", ";", "arm_arch6", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_armv6", ")", ";", "arm_arch6k", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_armv6k", ")", ";", "arm_arch_notm", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_notm", ")", ";", "arm_arch6m", "=", "arm_arch6", "&&", "!", "arm_arch_notm", ";", "arm_arch7", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_armv7", ")", ";", "arm_arch7em", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_armv7em", ")", ";", "arm_arch8", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_armv8", ")", ";", "arm_arch8_1", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_armv8_1", ")", ";", "arm_arch8_2", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_armv8_2", ")", ";", "arm_arch_thumb1", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_thumb", ")", ";", "arm_arch_thumb2", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_thumb2", ")", ";", "arm_arch_xscale", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_xscale", ")", ";", "arm_arch_iwmmxt", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_iwmmxt", ")", ";", "arm_arch_iwmmxt2", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_iwmmxt2", ")", ";", "arm_arch_thumb_hwdiv", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_tdiv", ")", ";", "arm_arch_arm_hwdiv", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_adiv", ")", ";", "arm_arch_crc", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_crc32", ")", ";", "arm_arch_cmse", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_cmse", ")", ";", "arm_fp16_inst", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_fp16", ")", ";", "arm_arch_lpae", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_lpae", ")", ";", "if", "(", "arm_fp16_inst", ")", "{", "if", "(", "arm_fp16_format", "==", "ARM_FP16_FORMAT_ALTERNATIVE", ")", "error", "(", "\"selected fp16 options are incompatible\"", ")", ";", "arm_fp16_format", "=", "ARM_FP16_FORMAT_IEEE", ";", "}", "arm_arch_no_volatile_ce", "=", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_quirk_no_volatile_ce", ")", ";", "arm_arch6kz", "=", "arm_arch6k", "&&", "bitmap_bit_p", "(", "arm_active_target", ".", "isa", ",", "isa_bit_quirk_armv6kz", ")", ";", "if", "(", "target_thread_pointer", "==", "TP_AUTO", ")", "{", "if", "(", "arm_arch6k", "&&", "!", "TARGET_THUMB1", ")", "target_thread_pointer", "=", "TP_CP15", ";", "else", "target_thread_pointer", "=", "TP_SOFT", ";", "}", "}", ""], "natrual_language": ["Reconfigure", "global", "status", "flags", "from", "the", "active_target.isa", "."], "TS_V_token": ["arm", "\"__ARM_ARCH_%s__\"", "\"selected fp16 options are incompatible\""], "File": "arm7", "Func": "arm_option_reconfigure_globals", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2797, "Length": 379, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "rs6000_expand_interleave", "(", "rtx", "target", ",", "rtx", "op0", ",", "rtx", "op1", ",", "bool", "highp", ")", "{", "machine_mode", "vmode", "=", "GET_MODE", "(", "target", ")", ";", "unsigned", "i", ",", "high", ",", "nelt", "=", "GET_MODE_NUNITS", "(", "vmode", ")", ";", "vec_perm_builder", "perm", "(", "nelt", ",", "nelt", ",", "1", ")", ";", "high", "=", "(", "highp", "?", "0", ":", "nelt", "/", "2", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "nelt", "/", "2", ";", "i", "++", ")", "{", "perm", ".", "quick_push", "(", "i", "+", "high", ")", ";", "perm", ".", "quick_push", "(", "i", "+", "nelt", "+", "high", ")", ";", "}", "rs6000_do_expand_vec_perm", "(", "target", ",", "op0", ",", "op1", ",", "vmode", ",", "perm", ")", ";", "}", ""], "natrual_language": ["Expand", "a", "vector", "interleave", "operation", "."], "TS_V_token": ["powerpcspe", "1", "0", "2", "0", "2"], "File": "powerpcspe", "Func": "rs6000_expand_interleave", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2798, "Length": 109, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "TargetRegisterClass", "*", "MipsSERegisterInfo", "::", "intRegClass", "(", "unsigned", "Size", ")", "const", "{", "if", "(", "Size", "==", "4", ")", "return", "&", "Mips", "::", "GPR32RegClass", ";", "assert", "(", "Size", "==", "8", ")", ";", "return", "&", "Mips", "::", "GPR64RegClass", ";", "}", ""], "natrual_language": ["Return", "GPR", "register", "class", "."], "TS_V_token": ["Mips", "Mips", "4", "Mips::GPR32RegClass", "8", "Mips::GPR64RegClass"], "File": "MipsSERegisterInfo (2)", "Func": "intRegClass", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2799, "Length": 38, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCPassConfig", "::", "addPreEmitPass", "(", ")", "{", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createPPCEarlyReturnPass", "(", ")", ",", "false", ")", ";", "addPass", "(", "createPPCBranchSelectionPass", "(", ")", ",", "false", ")", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC"], "File": "PPCTargetMachine13", "Func": "addPreEmitPass", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2800, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_emit_probe_stack_range", "(", "HOST_WIDE_INT", "first", ",", "HOST_WIDE_INT", "size", ")", "{", "if", "(", "size", "<=", "7", "*", "PROBE_INTERVAL", ")", "{", "HOST_WIDE_INT", "i", ";", "for", "(", "i", "=", "PROBE_INTERVAL", ";", "i", "<", "size", ";", "i", "+=", "PROBE_INTERVAL", ")", "emit_stack_probe", "(", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "-", "(", "first", "+", "i", ")", ")", ")", ";", "emit_stack_probe", "(", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "-", "(", "first", "+", "size", ")", ")", ")", ";", "}", "else", "{", "HOST_WIDE_INT", "rounded_size", ",", "last", ";", "struct", "scratch_reg", "sr", ";", "get_scratch_register_on_entry", "(", "&", "sr", ")", ";", "rounded_size", "=", "size", "&", "-", "PROBE_INTERVAL", ";", "emit_move_insn", "(", "sr", ".", "reg", ",", "GEN_INT", "(", "-", "first", ")", ")", ";", "last", "=", "first", "+", "rounded_size", ";", "emit_insn", "(", "ix86_gen_probe_stack_range", "(", "sr", ".", "reg", ",", "sr", ".", "reg", ",", "GEN_INT", "(", "-", "last", ")", ")", ")", ";", "if", "(", "size", "!=", "rounded_size", ")", "emit_stack_probe", "(", "plus_constant", "(", "Pmode", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "sr", ".", "reg", ")", ",", "rounded_size", "-", "size", ")", ")", ";", "release_scratch_register_on_entry", "(", "&", "sr", ")", ";", "}", "emit_insn", "(", "gen_blockage", "(", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "code", "to", "probe", "a", "range", "of", "stack", "addresses", "from", "FIRST", "to", "FIRST+SIZE", ",", "inclusive", ".", "These", "are", "offsets", "from", "the", "current", "stack", "pointer", "."], "TS_V_token": ["i386", "7"], "File": "i3864", "Func": "ix86_emit_probe_stack_range", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2801, "Length": 179, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "compute_movmem_length", "(", "rtx_insn", "*", "insn", ")", "{", "rtx", "pat", "=", "PATTERN", "(", "insn", ")", ";", "unsigned", "int", "align", "=", "INTVAL", "(", "XEXP", "(", "XVECEXP", "(", "pat", ",", "0", ",", "7", ")", ",", "0", ")", ")", ";", "unsigned", "long", "n_bytes", "=", "INTVAL", "(", "XEXP", "(", "XVECEXP", "(", "pat", ",", "0", ",", "6", ")", ",", "0", ")", ")", ";", "unsigned", "int", "n_insns", "=", "0", ";", "if", "(", "align", ">", "(", "TARGET_64BIT", "?", "8", ":", "4", ")", ")", "align", "=", "(", "TARGET_64BIT", "?", "8", ":", "4", ")", ";", "n_insns", "=", "6", ";", "if", "(", "n_bytes", "%", "(", "2", "*", "align", ")", "!=", "0", ")", "{", "if", "(", "(", "n_bytes", "%", "(", "2", "*", "align", ")", ")", ">=", "align", ")", "n_insns", "+=", "2", ";", "if", "(", "(", "n_bytes", "%", "align", ")", "!=", "0", ")", "n_insns", "+=", "2", ";", "}", "return", "n_insns", "*", "4", ";", "}", ""], "natrual_language": ["Count", "the", "number", "of", "insns", "necessary", "to", "handle", "this", "block", "move", ".", "Basic", "structure", "is", "the", "same", "as", "emit_block_move", ",", "except", "that", "we", "count", "insns", "rather", "than", "emit", "them", "."], "TS_V_token": ["pa", "0", "7", "0", "0", "6", "0", "0", "8", "4", "8", "4", "6", "2", "0", "2", "2", "0", "2", "4"], "File": "pa4", "Func": "compute_movmem_length", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2802, "Length": 143, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCTargetLowering", "::", "LowerAsmOperandForConstraint", "(", "SDValue", "Op", ",", "std", "::", "string", "&", "Constraint", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "Ops", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SDValue", "Result", ";", "if", "(", "Constraint", ".", "length", "(", ")", ">", "1", ")", "return", ";", "char", "Letter", "=", "Constraint", "[", "0", "]", ";", "switch", "(", "Letter", ")", "{", "default", ":", "break", ";", "case", "'I'", ":", "case", "'J'", ":", "case", "'K'", ":", "case", "'L'", ":", "case", "'M'", ":", "case", "'N'", ":", "case", "'O'", ":", "case", "'P'", ":", "{", "ConstantSDNode", "*", "CST", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ")", ";", "if", "(", "!", "CST", ")", "return", ";", "SDLoc", "dl", "(", "Op", ")", ";", "int64_t", "Value", "=", "CST", "->", "getSExtValue", "(", ")", ";", "EVT", "TCVT", "=", "MVT", "::", "i64", ";", "switch", "(", "Letter", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown constraint letter!\"", ")", ";", "case", "'I'", ":", "if", "(", "isInt", "<", "16", ">", "(", "Value", ")", ")", "Result", "=", "DAG", ".", "getTargetConstant", "(", "Value", ",", "dl", ",", "TCVT", ")", ";", "break", ";", "case", "'J'", ":", "if", "(", "isShiftedUInt", "<", "16", ",", "16", ">", "(", "Value", ")", ")", "Result", "=", "DAG", ".", "getTargetConstant", "(", "Value", ",", "dl", ",", "TCVT", ")", ";", "break", ";", "case", "'L'", ":", "if", "(", "isShiftedInt", "<", "16", ",", "16", ">", "(", "Value", ")", ")", "Result", "=", "DAG", ".", "getTargetConstant", "(", "Value", ",", "dl", ",", "TCVT", ")", ";", "break", ";", "case", "'K'", ":", "if", "(", "isUInt", "<", "16", ">", "(", "Value", ")", ")", "Result", "=", "DAG", ".", "getTargetConstant", "(", "Value", ",", "dl", ",", "TCVT", ")", ";", "break", ";", "case", "'M'", ":", "if", "(", "Value", ">", "31", ")", "Result", "=", "DAG", ".", "getTargetConstant", "(", "Value", ",", "dl", ",", "TCVT", ")", ";", "break", ";", "case", "'N'", ":", "if", "(", "Value", ">", "0", "&&", "isPowerOf2_64", "(", "Value", ")", ")", "Result", "=", "DAG", ".", "getTargetConstant", "(", "Value", ",", "dl", ",", "TCVT", ")", ";", "break", ";", "case", "'O'", ":", "if", "(", "Value", "==", "0", ")", "Result", "=", "DAG", ".", "getTargetConstant", "(", "Value", ",", "dl", ",", "TCVT", ")", ";", "break", ";", "case", "'P'", ":", "if", "(", "isInt", "<", "16", ">", "(", "-", "Value", ")", ")", "Result", "=", "DAG", ".", "getTargetConstant", "(", "Value", ",", "dl", ",", "TCVT", ")", ";", "break", ";", "}", "break", ";", "}", "}", "if", "(", "Result", ".", "getNode", "(", ")", ")", "{", "Ops", ".", "push_back", "(", "Result", ")", ";", "return", ";", "}", "TargetLowering", "::", "LowerAsmOperandForConstraint", "(", "Op", ",", "Constraint", ",", "Ops", ",", "DAG", ")", ";", "}", ""], "natrual_language": ["Lower", "the", "specified", "operand", "into", "the", "Ops", "vector", "."], "TS_V_token": ["PowerPC", "PPC", "1", "0", "MVT::i64", "\"Unknown constraint letter!\"", "16", "16", "16", "16", "16", "16", "31", "0", "0", "16"], "File": "PPCISelLowering (2)2", "Func": "LowerAsmOperandForConstraint", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2803, "Length": 399, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "bool", "ShouldShrinkFPConstant", "(", "EVT", "VT", ")", "const", "{", "return", "!", "X86ScalarSSEf64", "||", "VT", "==", "MVT", "::", "f80", ";", "}", ""], "natrual_language": ["If", "true", ",", "then", "instruction", "selection", "should", "seek", "to", "shrink", "the", "FP", "constant", "of", "the", "specified", "type", "to", "a", "smaller", "type", "in", "order", "to", "save", "space", "and", "/", "or", "reduce", "runtime", "."], "TS_V_token": ["X86", "X86", "MVT::f80"], "File": "X86ISelLowering (2)", "Func": "ShouldShrinkFPConstant", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2804, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsTargetLowering", "::", "getOpndList", "(", "SmallVectorImpl", "<", "SDValue", ">", "&", "Ops", ",", "std", "::", "deque", "<", "std", "::", "pair", "<", "unsigned", ",", "SDValue", ">", ">", "&", "RegsToPass", ",", "bool", "IsPICCall", ",", "bool", "GlobalOrExternal", ",", "bool", "InternalLinkage", ",", "bool", "IsCallReloc", ",", "CallLoweringInfo", "&", "CLI", ",", "SDValue", "Callee", ",", "SDValue", "Chain", ")", "const", "{", "if", "(", "IsPICCall", "&&", "!", "InternalLinkage", "&&", "IsCallReloc", ")", "{", "unsigned", "GPReg", "=", "ABI", ".", "IsN64", "(", ")", "?", "Mips", "::", "GP_64", ":", "Mips", "::", "GP", ";", "EVT", "Ty", "=", "ABI", ".", "IsN64", "(", ")", "?", "MVT", "::", "i64", ":", "MVT", "::", "i32", ";", "RegsToPass", ".", "push_back", "(", "std", "::", "make_pair", "(", "GPReg", ",", "getGlobalReg", "(", "CLI", ".", "DAG", ",", "Ty", ")", ")", ")", ";", "}", "SDValue", "InFlag", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RegsToPass", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "Chain", "=", "CLI", ".", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "CLI", ".", "DL", ",", "RegsToPass", "[", "i", "]", ".", "first", ",", "RegsToPass", "[", "i", "]", ".", "second", ",", "InFlag", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "}", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RegsToPass", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "Ops", ".", "push_back", "(", "CLI", ".", "DAG", ".", "getRegister", "(", "RegsToPass", "[", "i", "]", ".", "first", ",", "RegsToPass", "[", "i", "]", ".", "second", ".", "getValueType", "(", ")", ")", ")", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "Subtarget", ".", "getRegisterInfo", "(", ")", ";", "const", "uint32_t", "*", "Mask", "=", "TRI", "->", "getCallPreservedMask", "(", "CLI", ".", "DAG", ".", "getMachineFunction", "(", ")", ",", "CLI", ".", "CallConv", ")", ";", "assert", "(", "Mask", "&&", "\"Missing call preserved mask for calling convention\"", ")", ";", "if", "(", "Subtarget", ".", "inMips16HardFloat", "(", ")", ")", "{", "if", "(", "GlobalAddressSDNode", "*", "G", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "CLI", ".", "Callee", ")", ")", "{", "llvm", "::", "StringRef", "Sym", "=", "G", "->", "getGlobal", "(", ")", "->", "getName", "(", ")", ";", "Function", "*", "F", "=", "G", "->", "getGlobal", "(", ")", "->", "getParent", "(", ")", "->", "getFunction", "(", "Sym", ")", ";", "if", "(", "F", "&&", "F", "->", "hasFnAttribute", "(", "\"__Mips16RetHelper\"", ")", ")", "{", "Mask", "=", "MipsRegisterInfo", "::", "getMips16RetHelperMask", "(", ")", ";", "}", "}", "}", "Ops", ".", "push_back", "(", "CLI", ".", "DAG", ".", "getRegisterMask", "(", "Mask", ")", ")", ";", "if", "(", "InFlag", ".", "getNode", "(", ")", ")", "Ops", ".", "push_back", "(", "InFlag", ")", ";", "}", ""], "natrual_language": ["This", "function", "fills", "Ops", ",", "which", "is", "the", "list", "of", "operands", "that", "will", "later", "be", "used", "when", "a", "function", "call", "node", "is", "created", "."], "TS_V_token": ["Mips", "Mips", "Mips::GP_64", "Mips::GP", "MVT::i64", "MVT::i32", "0", "1", "0", "\"Missing call preserved mask for calling convention\"", "Mips", "\"__Mips16RetHelper\"", "Mips", "Mips"], "File": "MipsISelLowering (2)5", "Func": "getOpndList", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2805, "Length": 390, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "pru_nongeneric_pointer_addrspace", "(", "tree", "typ", ")", "{", "while", "(", "ARRAY_TYPE", "==", "TREE_CODE", "(", "typ", ")", ")", "typ", "=", "TREE_TYPE", "(", "typ", ")", ";", "if", "(", "POINTER_TYPE_P", "(", "typ", ")", ")", "{", "addr_space_t", "as", ";", "tree", "target", "=", "TREE_TYPE", "(", "typ", ")", ";", "if", "(", "FUNCTION_TYPE", "==", "TREE_CODE", "(", "target", ")", ")", "return", "pru_nongeneric_pointer_addrspace", "(", "TREE_TYPE", "(", "target", ")", ")", ";", "while", "(", "TREE_CODE", "(", "target", ")", "==", "ARRAY_TYPE", ")", "target", "=", "TREE_TYPE", "(", "target", ")", ";", "as", "=", "TYPE_ADDR_SPACE", "(", "target", ")", ";", "if", "(", "!", "ADDR_SPACE_GENERIC_P", "(", "as", ")", ")", "return", "true", ";", "return", "pru_nongeneric_pointer_addrspace", "(", "target", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Scan", "type", "TYP", "for", "pointer", "references", "to", "address", "space", "other", "than", "ADDR_SPACE_GENERIC", ".", "Return", "true", "if", "such", "reference", "is", "found", ".", "Much", "of", "this", "code", "was", "taken", "from", "the", "avr", "port", "."], "TS_V_token": ["pru"], "File": "pru", "Func": "pru_nongeneric_pointer_addrspace", "Target": "pru", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2806, "Length": 106, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getNumFixupKinds", "(", ")", "const", "override", "{", "return", "ARM", "::", "NumTargetFixupKinds", ";", "}", ""], "natrual_language": ["Get", "the", "number", "of", "target", "specific", "fixup", "kinds", "."], "TS_V_token": ["ARM", "ARM::NumTargetFixupKinds"], "File": "ARMAsmBackend", "Func": "getNumFixupKinds", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2807, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86DAGToDAGISel", "::", "SelectInlineAsmMemoryOperand", "(", "const", "SDValue", "&", "Op", ",", "char", "ConstraintCode", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "OutOps", ")", "{", "SDValue", "Op0", ",", "Op1", ",", "Op2", ",", "Op3", ",", "Op4", ";", "switch", "(", "ConstraintCode", ")", "{", "case", "'o'", ":", "case", "'v'", ":", "default", ":", "return", "true", ";", "case", "'m'", ":", "if", "(", "!", "SelectAddr", "(", "nullptr", ",", "Op", ",", "Op0", ",", "Op1", ",", "Op2", ",", "Op3", ",", "Op4", ")", ")", "return", "true", ";", "break", ";", "}", "OutOps", ".", "push_back", "(", "Op0", ")", ";", "OutOps", ".", "push_back", "(", "Op1", ")", ";", "OutOps", ".", "push_back", "(", "Op2", ")", ";", "OutOps", ".", "push_back", "(", "Op3", ")", ";", "OutOps", ".", "push_back", "(", "Op4", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["SelectInlineAsmMemoryOperand", "-", "Select", "the", "specified", "address", "as", "a", "target", "addressing", "mode", ",", "according", "to", "the", "specified", "constraint", "."], "TS_V_token": ["X86", "X86"], "File": "X86ISelDAGToDAG100", "Func": "SelectInlineAsmMemoryOperand", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2808, "Length": 118, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "void", "initializePass", "(", ")", "override", "{", "pushTTIStack", "(", "this", ")", ";", "}", ""], "natrual_language": ["initializePass", "-", "This", "method", "may", "be", "overriden", "by", "immutable", "passes", "to", "allow", "them", "to", "perform", "various", "initialization", "actions", "they", "require", "."], "TS_V_token": ["AArch64"], "File": "AArch64TargetTransformInfo19", "Func": "initializePass", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2809, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "X86TargetLowering", "::", "getPICJumpTableRelocBase", "(", "SDValue", "Table", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "if", "(", "!", "Subtarget", "->", "is64Bit", "(", ")", ")", "return", "DAG", ".", "getNode", "(", "X86ISD", "::", "GlobalBaseReg", ",", "SDLoc", "(", ")", ",", "getPointerTy", "(", ")", ")", ";", "return", "Table", ";", "}", ""], "natrual_language": ["Returns", "relocation", "base", "for", "the", "given", "PIC", "jumptable", "."], "TS_V_token": ["X86", "X86", "X86ISD::GlobalBaseReg"], "File": "X86ISelLowering (2)", "Func": "getPICJumpTableRelocBase", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2810, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_multi_set_operand", "(", "unsigned", "int", "i", ",", "unsigned", "int", "op", ",", "rtx", "x", ")", "{", "mips_multi_members", "[", "i", "]", ".", "operands", "[", "op", "]", "=", "x", ";", "}", ""], "natrual_language": ["Change", "the", "operand", "of", "an", "existing", "instruction", "in", "the", "current", "multi-insn", "sequence", ".", "I", "is", "the", "index", "of", "the", "instruction", ",", "OP", "is", "the", "index", "of", "the", "operand", ",", "and", "X", "is", "the", "new", "value", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_multi_set_operand", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2811, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "HOST_WIDE_INT", "rs6000_builtin_mask_calculate", "(", "void", ")", "{", "return", "(", "(", "(", "TARGET_ALTIVEC", ")", "?", "RS6000_BTM_ALTIVEC", ":", "0", ")", "|", "(", "(", "TARGET_CMPB", ")", "?", "RS6000_BTM_CMPB", ":", "0", ")", "|", "(", "(", "TARGET_VSX", ")", "?", "RS6000_BTM_VSX", ":", "0", ")", "|", "(", "(", "TARGET_FRE", ")", "?", "RS6000_BTM_FRE", ":", "0", ")", "|", "(", "(", "TARGET_FRES", ")", "?", "RS6000_BTM_FRES", ":", "0", ")", "|", "(", "(", "TARGET_FRSQRTE", ")", "?", "RS6000_BTM_FRSQRTE", ":", "0", ")", "|", "(", "(", "TARGET_FRSQRTES", ")", "?", "RS6000_BTM_FRSQRTES", ":", "0", ")", "|", "(", "(", "TARGET_POPCNTD", ")", "?", "RS6000_BTM_POPCNTD", ":", "0", ")", "|", "(", "(", "rs6000_cpu", "==", "PROCESSOR_CELL", ")", "?", "RS6000_BTM_CELL", ":", "0", ")", "|", "(", "(", "TARGET_P8_VECTOR", ")", "?", "RS6000_BTM_P8_VECTOR", ":", "0", ")", "|", "(", "(", "TARGET_P9_VECTOR", ")", "?", "RS6000_BTM_P9_VECTOR", ":", "0", ")", "|", "(", "(", "TARGET_P9_MISC", ")", "?", "RS6000_BTM_P9_MISC", ":", "0", ")", "|", "(", "(", "TARGET_MODULO", ")", "?", "RS6000_BTM_MODULO", ":", "0", ")", "|", "(", "(", "TARGET_64BIT", ")", "?", "RS6000_BTM_64BIT", ":", "0", ")", "|", "(", "(", "TARGET_POWERPC64", ")", "?", "RS6000_BTM_POWERPC64", ":", "0", ")", "|", "(", "(", "TARGET_CRYPTO", ")", "?", "RS6000_BTM_CRYPTO", ":", "0", ")", "|", "(", "(", "TARGET_HTM", ")", "?", "RS6000_BTM_HTM", ":", "0", ")", "|", "(", "(", "TARGET_DFP", ")", "?", "RS6000_BTM_DFP", ":", "0", ")", "|", "(", "(", "TARGET_HARD_FLOAT", ")", "?", "RS6000_BTM_HARD_FLOAT", ":", "0", ")", "|", "(", "(", "TARGET_LONG_DOUBLE_128", "&&", "TARGET_HARD_FLOAT", "&&", "!", "TARGET_IEEEQUAD", ")", "?", "RS6000_BTM_LDBL128", ":", "0", ")", "|", "(", "(", "TARGET_FLOAT128_TYPE", ")", "?", "RS6000_BTM_FLOAT128", ":", "0", ")", "|", "(", "(", "TARGET_FLOAT128_HW", ")", "?", "RS6000_BTM_FLOAT128_HW", ":", "0", ")", "|", "(", "(", "TARGET_MMA", ")", "?", "RS6000_BTM_MMA", ":", "0", ")", "|", "(", "(", "TARGET_POWER10", ")", "?", "RS6000_BTM_P10", ":", "0", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "builtin", "mask", "of", "the", "various", "options", "used", "that", "could", "affect", "which", "builtins", "were", "used", ".", "In", "the", "past", "we", "used", "target_flags", ",", "but", "we", "'ve", "run", "out", "of", "bits", ",", "and", "some", "options", "like", "PAIRED", "are", "no", "longer", "in", "target_flags", "."], "TS_V_token": ["rs6000", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "File": "rs6000", "Func": "rs6000_builtin_mask_calculate", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2812, "Length": 257, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MMIXMCCodeEmitter", "::", "encodeInstruction", "(", "const", "MCInst", "&", "MI", ",", "raw_ostream", "&", "OS", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "uint32_t", "Bits", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "support", "::", "endian", "::", "write", "(", "OS", ",", "Bits", ",", "support", "::", "big", ")", ";", "++", "MCNumEmitted", ";", "}", ""], "natrual_language": ["Encode", "the", "given", "Inst", "to", "bytes", "and", "append", "to", "CB", "."], "TS_V_token": ["MMIX", "MMIX", "support::endian", "support::big"], "File": "MMIXMCCodeEmitter", "Func": "encodeInstruction", "Target": "MMIX", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2813, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetIRAnalysis", "MipsTargetMachine", "::", "getTargetIRAnalysis", "(", ")", "{", "return", "TargetIRAnalysis", "(", "[", "this", "]", "(", "Function", "&", "F", ")", "{", "if", "(", "Subtarget", "->", "allowMixed16_32", "(", ")", ")", "{", "DEBUG", "(", "errs", "(", ")", "<<", "\"No Target Transform Info Pass Added\\n\"", ")", ";", "return", "TargetTransformInfo", "(", "F", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ")", ";", "}", "DEBUG", "(", "errs", "(", ")", "<<", "\"Target Transform Info Pass Added\\n\"", ")", ";", "return", "TargetTransformInfo", "(", "BasicTTIImpl", "(", "this", ",", "F", ")", ")", ";", "}", ")", ";", "}", ""], "natrual_language": ["Get", "a", "TargetIRAnalysis", "appropriate", "for", "the", "target", "."], "TS_V_token": ["Mips", "Mips", "\"No Target Transform Info Pass Added\\n\"", "\"Target Transform Info Pass Added\\n\""], "File": "MipsTargetMachine2", "Func": "getTargetIRAnalysis", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2814, "Length": 76, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86InstrInfo", "::", "replaceBranchWithTailCall", "(", "MachineBasicBlock", "&", "MBB", ",", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "BranchCond", ",", "const", "MachineInstr", "&", "TailCall", ")", "const", "{", "assert", "(", "canMakeTailCallConditional", "(", "BranchCond", ",", "TailCall", ")", ")", ";", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "end", "(", ")", ";", "while", "(", "I", "!=", "MBB", ".", "begin", "(", ")", ")", "{", "--", "I", ";", "if", "(", "I", "->", "isDebugValue", "(", ")", ")", "continue", ";", "if", "(", "!", "I", "->", "isBranch", "(", ")", ")", "assert", "(", "0", "&&", "\"Can't find the branch to replace!\"", ")", ";", "X86", "::", "CondCode", "CC", "=", "getCondFromBranchOpc", "(", "I", "->", "getOpcode", "(", ")", ")", ";", "assert", "(", "BranchCond", ".", "size", "(", ")", "==", "1", ")", ";", "if", "(", "CC", "!=", "BranchCond", "[", "0", "]", ".", "getImm", "(", ")", ")", "continue", ";", "break", ";", "}", "unsigned", "Opc", "=", "TailCall", ".", "getOpcode", "(", ")", "==", "X86", "::", "TCRETURNdi", "?", "X86", "::", "TCRETURNdicc", ":", "X86", "::", "TCRETURNdi64cc", ";", "auto", "MIB", "=", "BuildMI", "(", "MBB", ",", "I", ",", "MBB", ".", "findDebugLoc", "(", "I", ")", ",", "get", "(", "Opc", ")", ")", ";", "MIB", "->", "addOperand", "(", "TailCall", ".", "getOperand", "(", "0", ")", ")", ";", "MIB", ".", "addImm", "(", "0", ")", ";", "MIB", "->", "addOperand", "(", "BranchCond", "[", "0", "]", ")", ";", "MIB", ".", "copyImplicitOps", "(", "TailCall", ")", ";", "I", "->", "eraseFromParent", "(", ")", ";", "}", ""], "natrual_language": ["Replace", "the", "conditional", "branch", "in", "MBB", "with", "a", "conditional", "tail", "call", "."], "TS_V_token": ["X86", "X86", "0", "\"Can't find the branch to replace!\"", "X86::CondCode", "1", "0", "X86::TCRETURNdi", "X86::TCRETURNdicc", "X86::TCRETURNdi64cc", "0", "0", "0"], "File": "X86InstrInfo50", "Func": "replaceBranchWithTailCall", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2815, "Length": 213, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "tree", "handle_arm_sve_vector_bits_attribute", "(", "tree", "*", "node", ",", "tree", ",", "tree", "args", ",", "int", ",", "bool", "*", "no_add_attrs", ")", "{", "*", "no_add_attrs", "=", "true", ";", "tree", "type", "=", "*", "node", ";", "if", "(", "!", "VECTOR_TYPE_P", "(", "type", ")", "||", "!", "builtin_type_p", "(", "type", ")", ")", "{", "error", "(", "\"%qs applied to non-SVE type %qT\"", ",", "\"arm_sve_vector_bits\"", ",", "type", ")", ";", "return", "NULL_TREE", ";", "}", "tree", "size", "=", "TREE_VALUE", "(", "args", ")", ";", "if", "(", "TREE_CODE", "(", "size", ")", "!=", "INTEGER_CST", ")", "{", "error", "(", "\"%qs requires an integer constant expression\"", ",", "\"arm_sve_vector_bits\"", ")", ";", "return", "NULL_TREE", ";", "}", "unsigned", "HOST_WIDE_INT", "value", "=", "tree_to_uhwi", "(", "size", ")", ";", "if", "(", "maybe_ne", "(", "value", ",", "BITS_PER_SVE_VECTOR", ")", ")", "{", "warning", "(", "OPT_Wattributes", ",", "\"unsupported SVE vector size\"", ")", ";", "return", "NULL_TREE", ";", "}", "if", "(", "lang_GNU_C", "(", ")", "&&", "VECTOR_BOOLEAN_TYPE_P", "(", "type", ")", ")", "type", "=", "build_variant_type_copy", "(", "type", ")", ";", "else", "type", "=", "build_distinct_type_copy", "(", "type", ")", ";", "TYPE_ATTRIBUTES", "(", "type", ")", "=", "remove_attribute", "(", "\"SVE sizeless type\"", ",", "copy_list", "(", "TYPE_ATTRIBUTES", "(", "type", ")", ")", ")", ";", "if", "(", "!", "VECTOR_BOOLEAN_TYPE_P", "(", "type", ")", ")", "TYPE_INDIVISIBLE_P", "(", "type", ")", "=", "0", ";", "*", "node", "=", "type", ";", "return", "NULL_TREE", ";", "}", ""], "natrual_language": ["An", "attribute", "callback", "for", "the", "``", "arm_sve_vector_bits", "''", "attribute", "."], "TS_V_token": ["aarch64", "\"%qs applied to non-SVE type %qT\"", "\"arm_sve_vector_bits\"", "\"%qs requires an integer constant expression\"", "\"arm_sve_vector_bits\"", "\"unsupported SVE vector size\"", "\"SVE sizeless type\"", "0"], "File": "aarch64-sve-builtins", "Func": "handle_arm_sve_vector_bits_attribute", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2816, "Length": 185, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64PassConfig", "::", "addPreEmitPass", "(", ")", "{", "if", "(", "TM", "->", "getOptLevel", "(", ")", ">=", "CodeGenOpt", "::", "Aggressive", "&&", "EnableLoadStoreOpt", ")", "addPass", "(", "createAArch64LoadStoreOptimizationPass", "(", ")", ")", ";", "if", "(", "EnableA53Fix835769", ")", "addPass", "(", "createAArch64A53Fix835769", "(", ")", ")", ";", "if", "(", "EnableBranchTargets", ")", "addPass", "(", "createAArch64BranchTargetsPass", "(", ")", ")", ";", "if", "(", "BranchRelaxation", ")", "addPass", "(", "&", "BranchRelaxationPassID", ")", ";", "if", "(", "TM", "->", "getTargetTriple", "(", ")", ".", "isOSWindows", "(", ")", ")", "addPass", "(", "createCFGuardLongjmpPass", "(", ")", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "EnableCompressJumpTables", ")", "addPass", "(", "createAArch64CompressJumpTablesPass", "(", ")", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "EnableCollectLOH", "&&", "TM", "->", "getTargetTriple", "(", ")", ".", "isOSBinFormatMachO", "(", ")", ")", "addPass", "(", "createAArch64CollectLOHPass", "(", ")", ")", ";", "addPass", "(", "createUnpackMachineBundles", "(", "nullptr", ")", ")", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64TargetMachine14", "Func": "addPreEmitPass", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2817, "Length": 140, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "output_mod_insn", "(", "int", "unsignedp", ",", "rtx", "insn", ")", "{", "if", "(", "unsignedp", ")", "{", "import_milli", "(", "remU", ")", ";", "return", "output_millicode_call", "(", "insn", ",", "gen_rtx_SYMBOL_REF", "(", "SImode", ",", "\"$$remU\"", ")", ")", ";", "}", "else", "{", "import_milli", "(", "remI", ")", ";", "return", "output_millicode_call", "(", "insn", ",", "gen_rtx_SYMBOL_REF", "(", "SImode", ",", "\"$$remI\"", ")", ")", ";", "}", "}", ""], "natrual_language": ["Output", "a", "$", "$", "rem", "millicode", "to", "do", "mod", "."], "TS_V_token": ["pa", "\"$$remU\"", "\"$$remI\""], "File": "pa3", "Func": "output_mod_insn", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2818, "Length": 58, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCInstrInfo", "::", "findCommutedOpIndices", "(", "MachineInstr", "*", "MI", ",", "unsigned", "&", "SrcOpIdx1", ",", "unsigned", "&", "SrcOpIdx2", ")", "const", "{", "int", "AltOpc", "=", "PPC", "::", "getAltVSXFMAOpcode", "(", "MI", "->", "getOpcode", "(", ")", ")", ";", "if", "(", "AltOpc", "==", "-", "1", ")", "return", "TargetInstrInfo", "::", "findCommutedOpIndices", "(", "MI", ",", "SrcOpIdx1", ",", "SrcOpIdx2", ")", ";", "SrcOpIdx1", "=", "2", ";", "SrcOpIdx2", "=", "3", ";", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "iff", "the", "routine", "could", "find", "two", "commutable", "operands", "in", "the", "given", "machine", "instruction", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::getAltVSXFMAOpcode", "1", "2", "3"], "File": "PPCInstrInfo1", "Func": "findCommutedOpIndices", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2819, "Length": 64, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64FrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "getLastNonDebugInstr", "(", ")", ";", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "AArch64Subtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ";", "const", "AArch64RegisterInfo", "*", "RegInfo", "=", "Subtarget", ".", "getRegisterInfo", "(", ")", ";", "const", "TargetInstrInfo", "*", "TII", "=", "Subtarget", ".", "getInstrInfo", "(", ")", ";", "DebugLoc", "DL", ";", "bool", "IsTailCallReturn", "=", "false", ";", "if", "(", "MBB", ".", "end", "(", ")", "!=", "MBBI", ")", "{", "DL", "=", "MBBI", "->", "getDebugLoc", "(", ")", ";", "unsigned", "RetOpcode", "=", "MBBI", "->", "getOpcode", "(", ")", ";", "IsTailCallReturn", "=", "RetOpcode", "==", "AArch64", "::", "TCRETURNdi", "||", "RetOpcode", "==", "AArch64", "::", "TCRETURNri", ";", "}", "int", "NumBytes", "=", "MFI", "->", "getStackSize", "(", ")", ";", "const", "AArch64FunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "AArch64FunctionInfo", ">", "(", ")", ";", "if", "(", "MF", ".", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "GHC", ")", "return", ";", "uint64_t", "ArgumentPopSize", "=", "0", ";", "if", "(", "IsTailCallReturn", ")", "{", "MachineOperand", "&", "StackAdjust", "=", "MBBI", "->", "getOperand", "(", "1", ")", ";", "ArgumentPopSize", "=", "StackAdjust", ".", "getImm", "(", ")", ";", "}", "else", "{", "ArgumentPopSize", "=", "AFI", "->", "getArgumentStackToRestore", "(", ")", ";", "}", "NumBytes", "+=", "ArgumentPopSize", ";", "unsigned", "NumRestores", "=", "0", ";", "MachineBasicBlock", "::", "iterator", "LastPopI", "=", "MBB", ".", "getFirstTerminator", "(", ")", ";", "const", "MCPhysReg", "*", "CSRegs", "=", "RegInfo", "->", "getCalleeSavedRegs", "(", "&", "MF", ")", ";", "MachineBasicBlock", "::", "iterator", "Begin", "=", "MBB", ".", "begin", "(", ")", ";", "while", "(", "LastPopI", "!=", "Begin", ")", "{", "--", "LastPopI", ";", "unsigned", "Restores", "=", "getNumCSRestores", "(", "*", "LastPopI", ",", "CSRegs", ")", ";", "NumRestores", "+=", "Restores", ";", "if", "(", "Restores", "==", "0", ")", "{", "++", "LastPopI", ";", "break", ";", "}", "}", "NumBytes", "-=", "NumRestores", "*", "8", ";", "assert", "(", "NumBytes", ">=", "0", "&&", "\"Negative stack allocation size!?\"", ")", ";", "if", "(", "!", "hasFP", "(", "MF", ")", ")", "{", "if", "(", "!", "canUseRedZone", "(", "MF", ")", ")", "emitFrameOffset", "(", "MBB", ",", "LastPopI", ",", "DL", ",", "AArch64", "::", "SP", ",", "AArch64", "::", "SP", ",", "NumBytes", ",", "TII", ")", ";", "return", ";", "}", "if", "(", "NumBytes", "||", "MFI", "->", "hasVarSizedObjects", "(", ")", ")", "emitFrameOffset", "(", "MBB", ",", "LastPopI", ",", "DL", ",", "AArch64", "::", "SP", ",", "AArch64", "::", "FP", ",", "-", "(", "NumRestores", "-", "2", ")", "*", "8", ",", "TII", ",", "MachineInstr", "::", "NoFlags", ")", ";", "}", ""], "natrual_language": ["Insert", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64::TCRETURNdi", "AArch64::TCRETURNri", "AArch64", "AArch64", "0", "1", "0", "0", "8", "0", "\"Negative stack allocation size!?\"", "AArch64::SP", "AArch64::SP", "AArch64::SP", "AArch64::FP", "2", "8"], "File": "AArch64FrameLowering (2)", "Func": "emitEpilogue", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2820, "Length": 387, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "TII", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "bool", "Changed", "=", "false", ";", "if", "(", "MF", ".", "size", "(", ")", "<", "2", ")", "return", "Changed", ";", "for", "(", "MachineFunction", "::", "iterator", "I", "=", "MF", ".", "begin", "(", ")", ",", "E", "=", "MF", ".", "end", "(", ")", ";", "I", "!=", "E", ";", ")", "{", "MachineBasicBlock", "&", "B", "=", "*", "I", "++", ";", "Changed", "|=", "processBlock", "(", "B", ")", ";", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["PowerPC", "2"], "File": "PPCEarlyReturn", "Func": "runOnMachineFunction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2821, "Length": 100, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ix86_set_current_function", "(", "tree", "fndecl", ")", "{", "if", "(", "fndecl", "==", "ix86_previous_fndecl", ")", "{", "if", "(", "fndecl", "!=", "NULL_TREE", ")", "{", "ix86_set_func_type", "(", "fndecl", ")", ";", "ix86_set_indirect_branch_type", "(", "fndecl", ")", ";", "}", "return", ";", "}", "tree", "old_tree", ";", "if", "(", "ix86_previous_fndecl", "==", "NULL_TREE", ")", "old_tree", "=", "target_option_current_node", ";", "else", "if", "(", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "ix86_previous_fndecl", ")", ")", "old_tree", "=", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "ix86_previous_fndecl", ")", ";", "else", "old_tree", "=", "target_option_default_node", ";", "if", "(", "fndecl", "==", "NULL_TREE", ")", "{", "if", "(", "old_tree", "!=", "target_option_current_node", ")", "ix86_reset_previous_fndecl", "(", ")", ";", "return", ";", "}", "ix86_set_func_type", "(", "fndecl", ")", ";", "ix86_set_indirect_branch_type", "(", "fndecl", ")", ";", "tree", "new_tree", "=", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "fndecl", ")", ";", "if", "(", "new_tree", "==", "NULL_TREE", ")", "new_tree", "=", "target_option_default_node", ";", "bool", "fp_flag_change", "=", "(", "flag_unsafe_math_optimizations", "!=", "TREE_TARGET_OPTION", "(", "new_tree", ")", "->", "x_ix86_unsafe_math_optimizations", "||", "(", "flag_excess_precision", "!=", "TREE_TARGET_OPTION", "(", "new_tree", ")", "->", "x_ix86_excess_precision", ")", ")", ";", "if", "(", "old_tree", "!=", "new_tree", "||", "fp_flag_change", ")", "{", "cl_target_option_restore", "(", "&", "global_options", ",", "&", "global_options_set", ",", "TREE_TARGET_OPTION", "(", "new_tree", ")", ")", ";", "if", "(", "fp_flag_change", ")", "{", "ix86_excess_precision", "=", "flag_excess_precision", ";", "ix86_unsafe_math_optimizations", "=", "flag_unsafe_math_optimizations", ";", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "fndecl", ")", "=", "new_tree", "=", "build_target_option_node", "(", "&", "global_options", ",", "&", "global_options_set", ")", ";", "}", "if", "(", "TREE_TARGET_GLOBALS", "(", "new_tree", ")", ")", "restore_target_globals", "(", "TREE_TARGET_GLOBALS", "(", "new_tree", ")", ")", ";", "else", "if", "(", "new_tree", "==", "target_option_default_node", ")", "restore_target_globals", "(", "&", "default_target_globals", ")", ";", "else", "TREE_TARGET_GLOBALS", "(", "new_tree", ")", "=", "save_target_globals_default_opts", "(", ")", ";", "}", "ix86_previous_fndecl", "=", "fndecl", ";", "static", "bool", "prev_no_caller_saved_registers", ";", "if", "(", "TARGET_64BIT", "&&", "(", "call_used_or_fixed_reg_p", "(", "SI_REG", ")", "==", "(", "cfun", "->", "machine", "->", "call_abi", "==", "MS_ABI", ")", ")", ")", "reinit_regs", "(", ")", ";", "else", "if", "(", "prev_no_caller_saved_registers", "!=", "cfun", "->", "machine", "->", "no_caller_saved_registers", ")", "reinit_regs", "(", ")", ";", "if", "(", "cfun", "->", "machine", "->", "func_type", "!=", "TYPE_NORMAL", "||", "cfun", "->", "machine", "->", "no_caller_saved_registers", ")", "{", "const", "char", "*", "isa", ";", "if", "(", "TARGET_SSE", ")", "isa", "=", "\"SSE\"", ";", "else", "if", "(", "TARGET_MMX", ")", "isa", "=", "\"MMX/3Dnow\"", ";", "else", "if", "(", "TARGET_80387", ")", "isa", "=", "\"80387\"", ";", "else", "isa", "=", "NULL", ";", "if", "(", "isa", "!=", "NULL", ")", "{", "if", "(", "cfun", "->", "machine", "->", "func_type", "!=", "TYPE_NORMAL", ")", "sorry", "(", "cfun", "->", "machine", "->", "func_type", "==", "TYPE_EXCEPTION", "?", "G_", "(", "\"%s instructions aren%'t allowed in an\"", "\" exception service routine\"", ")", ":", "G_", "(", "\"%s instructions aren%'t allowed in an\"", "\" interrupt service routine\"", ")", ",", "isa", ")", ";", "else", "sorry", "(", "\"%s instructions aren%'t allowed in a function with \"", "\"the % attribute\"", ",", "isa", ")", ";", "cfun", "->", "machine", "->", "func_type", "=", "TYPE_NORMAL", ";", "cfun", "->", "machine", "->", "no_caller_saved_registers", "=", "false", ";", "}", "}", "prev_no_caller_saved_registers", "=", "cfun", "->", "machine", "->", "no_caller_saved_registers", ";", "}", ""], "natrual_language": ["Establish", "appropriate", "back-end", "context", "for", "processing", "the", "function", "FNDECL", ".", "The", "argument", "might", "be", "NULL", "to", "indicate", "processing", "at", "top", "level", ",", "outside", "of", "any", "function", "scope", "."], "TS_V_token": ["i386", "\"SSE\"", "\"MMX/3Dnow\"", "\"80387\"", "\"%s instructions aren%'t allowed in an\"", "\" exception service routine\"", "\"%s instructions aren%'t allowed in an\"", "\" interrupt service routine\"", "\"%s instructions aren%'t allowed in a function with \"", "\"the % attribute\""], "File": "i386-options1", "Func": "ix86_set_current_function", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2822, "Length": 412, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86AsmParser", "::", "parsePrimaryExpr", "(", "const", "MCExpr", "*", "&", "Res", ",", "SMLoc", "&", "EndLoc", ")", "{", "MCAsmParser", "&", "Parser", "=", "getParser", "(", ")", ";", "if", "(", "Parser", ".", "parsePrimaryExpr", "(", "Res", ",", "EndLoc", ")", ")", "{", "SMLoc", "StartLoc", "=", "Parser", ".", "getTok", "(", ")", ".", "getLoc", "(", ")", ";", "unsigned", "RegNo", ";", "bool", "TryRegParse", "=", "getTok", "(", ")", ".", "is", "(", "AsmToken", "::", "Percent", ")", "||", "(", "isParsingIntelSyntax", "(", ")", "&&", "getTok", "(", ")", ".", "is", "(", "AsmToken", "::", "Identifier", ")", ")", ";", "if", "(", "!", "TryRegParse", "||", "ParseRegister", "(", "RegNo", ",", "StartLoc", ",", "EndLoc", ")", ")", "return", "true", ";", "Parser", ".", "clearPendingErrors", "(", ")", ";", "Res", "=", "X86MCExpr", "::", "create", "(", "RegNo", ",", "Parser", ".", "getContext", "(", ")", ")", ";", "return", "false", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Parse", "a", "primary", "expression", "."], "TS_V_token": ["X86", "X86", "X86MCExpr::create"], "File": "X86AsmParser107", "Func": "parsePrimaryExpr", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2823, "Length": 129, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86LinuxNaClTargetObjectFile", "::", "Initialize", "(", "MCContext", "&", "Ctx", ",", "const", "TargetMachine", "&", "TM", ")", "{", "TargetLoweringObjectFileELF", "::", "Initialize", "(", "Ctx", ",", "TM", ")", ";", "InitializeELF", "(", "TM", ".", "Options", ".", "UseInitArray", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "called", "before", "any", "actual", "lowering", "is", "done", "."], "TS_V_token": ["X86", "X86"], "File": "X86TargetObjectFile10", "Func": "Initialize", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2824, "Length": 34, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "rs6000_xcoff_section_type_flags", "(", "tree", "decl", ",", "const", "char", "*", "name", ",", "int", "reloc", ")", "{", "unsigned", "int", "align", ";", "unsigned", "int", "flags", "=", "default_section_type_flags", "(", "decl", ",", "name", ",", "reloc", ")", ";", "if", "(", "decl", "&&", "DECL_P", "(", "decl", ")", "&&", "VAR_P", "(", "decl", ")", "&&", "bss_initializer_p", "(", "decl", ")", ")", "flags", "|=", "SECTION_BSS", ";", "if", "(", "!", "decl", "||", "!", "DECL_P", "(", "decl", ")", ")", "align", "=", "MIN_UNITS_PER_WORD", ";", "else", "if", "(", "(", "flags", "&", "SECTION_CODE", ")", "!=", "0", ")", "align", "=", "MAX", "(", "(", "DECL_ALIGN", "(", "decl", ")", "/", "BITS_PER_UNIT", ")", ",", "32", ")", ";", "else", "align", "=", "MAX", "(", "(", "DECL_ALIGN", "(", "decl", ")", "/", "BITS_PER_UNIT", ")", ",", "int_size_in_bytes", "(", "TREE_TYPE", "(", "decl", ")", ")", ">", "MIN_UNITS_PER_WORD", "?", "UNITS_PER_FP_WORD", ":", "MIN_UNITS_PER_WORD", ")", ";", "return", "flags", "|", "(", "exact_log2", "(", "align", ")", "&", "SECTION_ENTSIZE", ")", ";", "}", ""], "natrual_language": ["Section", "attributes", ".", "AIX", "is", "always", "PIC", "."], "TS_V_token": ["rs6000", "0", "32"], "File": "rs6000", "Func": "rs6000_xcoff_section_type_flags", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2825, "Length": 141, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "arm_compute_static_chain_stack_bytes", "(", "void", ")", "{", "if", "(", "cfun", "->", "machine", "->", "static_chain_stack_bytes", "!=", "-", "1", ")", "return", "cfun", "->", "machine", "->", "static_chain_stack_bytes", ";", "if", "(", "IS_NESTED", "(", "arm_current_func_type", "(", ")", ")", "&&", "(", "(", "TARGET_APCS_FRAME", "&&", "frame_pointer_needed", "&&", "TARGET_ARM", ")", "||", "(", "(", "flag_stack_check", "==", "STATIC_BUILTIN_STACK_CHECK", "||", "flag_stack_clash_protection", ")", "&&", "!", "df_regs_ever_live_p", "(", "LR_REGNUM", ")", ")", ")", "&&", "arm_r3_live_at_start_p", "(", ")", "&&", "crtl", "->", "args", ".", "pretend_args_size", "==", "0", ")", "return", "4", ";", "return", "0", ";", "}", ""], "natrual_language": ["Compute", "the", "number", "of", "bytes", "used", "to", "store", "the", "static", "chain", "register", "on", "the", "stack", ",", "above", "the", "stack", "frame", ".", "We", "need", "to", "know", "this", "accurately", "to", "get", "the", "alignment", "of", "the", "rest", "of", "the", "stack", "frame", "correct", "."], "TS_V_token": ["arm", "1", "0", "4", "0"], "File": "arm", "Func": "arm_compute_static_chain_stack_bytes", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2826, "Length": 79, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "enum", "reg_class", "aarch64_regno_regclass", "(", "unsigned", "regno", ")", "{", "if", "(", "STUB_REGNUM_P", "(", "regno", ")", ")", "return", "STUB_REGS", ";", "if", "(", "GP_REGNUM_P", "(", "regno", ")", ")", "return", "GENERAL_REGS", ";", "if", "(", "regno", "==", "SP_REGNUM", ")", "return", "STACK_REG", ";", "if", "(", "regno", "==", "FRAME_POINTER_REGNUM", "||", "regno", "==", "ARG_POINTER_REGNUM", ")", "return", "POINTER_REGS", ";", "if", "(", "FP_REGNUM_P", "(", "regno", ")", ")", "return", "(", "FP_LO8_REGNUM_P", "(", "regno", ")", "?", "FP_LO8_REGS", ":", "FP_LO_REGNUM_P", "(", "regno", ")", "?", "FP_LO_REGS", ":", "FP_REGS", ")", ";", "if", "(", "PR_REGNUM_P", "(", "regno", ")", ")", "return", "PR_LO_REGNUM_P", "(", "regno", ")", "?", "PR_LO_REGS", ":", "PR_HI_REGS", ";", "if", "(", "regno", "==", "FFR_REGNUM", "||", "regno", "==", "FFRT_REGNUM", ")", "return", "FFR_REGS", ";", "return", "NO_REGS", ";", "}", ""], "natrual_language": ["Implement", "REGNO_REG_CLASS", "."], "TS_V_token": ["aarch64"], "File": "aarch641", "Func": "aarch64_regno_regclass", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2827, "Length": 110, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "print_csky_value", "(", "FILE", "*", "f", ",", "rtx", "x", ")", "{", "switch", "(", "GET_CODE", "(", "x", ")", ")", "{", "case", "CONST_INT", ":", "fprintf", "(", "f", ",", "HOST_WIDE_INT_PRINT_HEX", ",", "INTVAL", "(", "x", ")", ")", ";", "return", ";", "case", "CONST_DOUBLE", ":", "fprintf", "(", "f", ",", "\"<0x%lx,0x%lx>\"", ",", "(", "long", ")", "XWINT", "(", "x", ",", "2", ")", ",", "(", "long", ")", "XWINT", "(", "x", ",", "3", ")", ")", ";", "return", ";", "case", "CONST_VECTOR", ":", "{", "int", "i", ";", "fprintf", "(", "f", ",", "\"<\"", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "CONST_VECTOR_NUNITS", "(", "x", ")", ";", "i", "++", ")", "{", "fprintf", "(", "f", ",", "HOST_WIDE_INT_PRINT_HEX", ",", "INTVAL", "(", "CONST_VECTOR_ELT", "(", "x", ",", "i", ")", ")", ")", ";", "if", "(", "i", "<", "(", "CONST_VECTOR_NUNITS", "(", "x", ")", "-", "1", ")", ")", "fputc", "(", "','", ",", "f", ")", ";", "}", "fprintf", "(", "f", ",", "\">\"", ")", ";", "}", "return", ";", "case", "CONST_STRING", ":", "fprintf", "(", "f", ",", "\"\\\"%s\\\"\"", ",", "XSTR", "(", "x", ",", "0", ")", ")", ";", "return", ";", "case", "SYMBOL_REF", ":", "fprintf", "(", "f", ",", "\"`%s'\"", ",", "XSTR", "(", "x", ",", "0", ")", ")", ";", "return", ";", "case", "LABEL_REF", ":", "fprintf", "(", "f", ",", "\"L%d\"", ",", "INSN_UID", "(", "XEXP", "(", "x", ",", "0", ")", ")", ")", ";", "return", ";", "case", "CONST", ":", "print_csky_value", "(", "f", ",", "XEXP", "(", "x", ",", "0", ")", ")", ";", "return", ";", "case", "PLUS", ":", "print_csky_value", "(", "f", ",", "XEXP", "(", "x", ",", "0", ")", ")", ";", "fprintf", "(", "f", ",", "\"+\"", ")", ";", "print_csky_value", "(", "f", ",", "XEXP", "(", "x", ",", "1", ")", ")", ";", "return", ";", "case", "PC", ":", "fprintf", "(", "f", ",", "\"pc\"", ")", ";", "return", ";", "default", ":", "fprintf", "(", "f", ",", "\"????\"", ")", ";", "return", ";", "}", "}", ""], "natrual_language": ["Print", "a", "symbolic", "form", "of", "the", "constant", "X", "to", "the", "dump", "file", "F.", "This", "is", "used", "for", "dump", "output", "for", "-mconstpool", "in", "the", "target-dependent", "reorg", "pass", "."], "TS_V_token": ["csky", "\"<0x%lx,0x%lx>\"", "2", "3", "\"<\"", "0", "1", "\">\"", "\"\\\"%s\\\"\"", "0", "\"`%s'\"", "0", "\"L%d\"", "0", "0", "0", "\"+\"", "1", "\"pc\"", "\"????\""], "File": "csky", "Func": "print_csky_value", "Target": "csky", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2828, "Length": 286, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMTargetLowering", "::", "getPreIndexedAddressParts", "(", "SDNode", "*", "N", ",", "SDValue", "&", "Base", ",", "SDValue", "&", "Offset", ",", "ISD", "::", "MemIndexedMode", "&", "AM", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "if", "(", "Subtarget", "->", "isThumb1Only", "(", ")", ")", "return", "false", ";", "EVT", "VT", ";", "SDValue", "Ptr", ";", "bool", "isSEXTLoad", "=", "false", ";", "if", "(", "LoadSDNode", "*", "LD", "=", "dyn_cast", "<", "LoadSDNode", ">", "(", "N", ")", ")", "{", "Ptr", "=", "LD", "->", "getBasePtr", "(", ")", ";", "VT", "=", "LD", "->", "getMemoryVT", "(", ")", ";", "isSEXTLoad", "=", "LD", "->", "getExtensionType", "(", ")", "==", "ISD", "::", "SEXTLOAD", ";", "}", "else", "if", "(", "StoreSDNode", "*", "ST", "=", "dyn_cast", "<", "StoreSDNode", ">", "(", "N", ")", ")", "{", "Ptr", "=", "ST", "->", "getBasePtr", "(", ")", ";", "VT", "=", "ST", "->", "getMemoryVT", "(", ")", ";", "}", "else", "return", "false", ";", "bool", "isInc", ";", "bool", "isLegal", "=", "false", ";", "if", "(", "Subtarget", "->", "isThumb2", "(", ")", ")", "isLegal", "=", "getT2IndexedAddressParts", "(", "Ptr", ".", "getNode", "(", ")", ",", "VT", ",", "isSEXTLoad", ",", "Base", ",", "Offset", ",", "isInc", ",", "DAG", ")", ";", "else", "isLegal", "=", "getARMIndexedAddressParts", "(", "Ptr", ".", "getNode", "(", ")", ",", "VT", ",", "isSEXTLoad", ",", "Base", ",", "Offset", ",", "isInc", ",", "DAG", ")", ";", "if", "(", "!", "isLegal", ")", "return", "false", ";", "AM", "=", "isInc", "?", "ISD", "::", "PRE_INC", ":", "ISD", "::", "PRE_DEC", ";", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "by", "value", ",", "base", "pointer", "and", "offset", "pointer", "and", "addressing", "mode", "by", "reference", "if", "the", "node", "'s", "address", "can", "be", "legally", "represented", "as", "pre-indexed", "load", "/", "store", "address", "."], "TS_V_token": ["ARM", "ARM", "ISD::MemIndexedMode", "ISD::SEXTLOAD", "ARM", "ISD::PRE_INC", "ISD::PRE_DEC"], "File": "ARMISelLowering (2)", "Func": "getPreIndexedAddressParts", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2829, "Length": 219, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "MCInst", "&", "Res", ")", "const", "override", "{", "}", ""], "natrual_language": ["Relax", "the", "instruction", "in", "the", "given", "fragment", "to", "the", "next", "wider", "instruction", "."], "TS_V_token": ["Lanai"], "File": "LanaiAsmBackend21", "Func": "relaxInstruction", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2830, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "extract_branch_condition_rtx", "(", "rtx_insn", "*", "insn", ")", "{", "gcc_assert", "(", "CALL_P", "(", "insn", ")", "||", "JUMP_P", "(", "insn", ")", ")", ";", "rtx", "body", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "body", ")", "==", "SET", ")", "{", "rtx", "if_then_else_rtx", "=", "SET_SRC", "(", "body", ")", ";", "if", "(", "GET_CODE", "(", "if_then_else_rtx", ")", "==", "IF_THEN_ELSE", ")", "return", "XEXP", "(", "if_then_else_rtx", ",", "0", ")", ";", "return", "NULL_RTX", ";", "}", "if", "(", "GET_CODE", "(", "body", ")", "==", "COND_EXEC", ")", "return", "XEXP", "(", "body", ",", "0", ")", ";", "return", "NULL_RTX", ";", "}", ""], "natrual_language": ["Extract", "the", "rtx", "representing", "the", "branch", "condition", "to", "help", "recognize", "data", "hazards", "."], "TS_V_token": ["nds32", "0", "0"], "File": "nds32-utils", "Func": "extract_branch_condition_rtx", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2831, "Length": 89, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "X86RegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "for", "(", "MCSubRegIterator", "I", "(", "X86", "::", "RSP", ",", "this", ",", "true", ")", ";", "I", ".", "isValid", "(", ")", ";", "++", "I", ")", "Reserved", ".", "set", "(", "*", "I", ")", ";", "for", "(", "MCSubRegIterator", "I", "(", "X86", "::", "RIP", ",", "this", ",", "true", ")", ";", "I", ".", "isValid", "(", ")", ";", "++", "I", ")", "Reserved", ".", "set", "(", "*", "I", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "{", "for", "(", "MCSubRegIterator", "I", "(", "X86", "::", "RBP", ",", "this", ",", "true", ")", ";", "I", ".", "isValid", "(", ")", ";", "++", "I", ")", "Reserved", ".", "set", "(", "*", "I", ")", ";", "}", "if", "(", "hasBasePointer", "(", "MF", ")", ")", "{", "CallingConv", "::", "ID", "CC", "=", "MF", ".", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", ";", "const", "uint32_t", "*", "RegMask", "=", "getCallPreservedMask", "(", "CC", ")", ";", "if", "(", "MachineOperand", "::", "clobbersPhysReg", "(", "RegMask", ",", "getBaseRegister", "(", ")", ")", ")", "report_fatal_error", "(", "\"Stack realignment in presence of dynamic allocas is not supported with\"", "\"this calling convention.\"", ")", ";", "for", "(", "MCSubRegIterator", "I", "(", "getBaseRegister", "(", ")", ",", "this", ",", "true", ")", ";", "I", ".", "isValid", "(", ")", ";", "++", "I", ")", "Reserved", ".", "set", "(", "*", "I", ")", ";", "}", "Reserved", ".", "set", "(", "X86", "::", "CS", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "SS", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "DS", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "ES", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "FS", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "GS", ")", ";", "for", "(", "unsigned", "n", "=", "0", ";", "n", "!=", "8", ";", "++", "n", ")", "Reserved", ".", "set", "(", "X86", "::", "ST0", "+", "n", ")", ";", "if", "(", "!", "Is64Bit", ")", "{", "Reserved", ".", "set", "(", "X86", "::", "SIL", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "DIL", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "BPL", ")", ";", "Reserved", ".", "set", "(", "X86", "::", "SPL", ")", ";", "for", "(", "unsigned", "n", "=", "0", ";", "n", "!=", "8", ";", "++", "n", ")", "{", "for", "(", "MCRegAliasIterator", "AI", "(", "X86", "::", "R8", "+", "n", ",", "this", ",", "true", ")", ";", "AI", ".", "isValid", "(", ")", ";", "++", "AI", ")", "Reserved", ".", "set", "(", "*", "AI", ")", ";", "for", "(", "MCRegAliasIterator", "AI", "(", "X86", "::", "XMM8", "+", "n", ",", "this", ",", "true", ")", ";", "AI", ".", "isValid", "(", ")", ";", "++", "AI", ")", "Reserved", ".", "set", "(", "*", "AI", ")", ";", "}", "}", "if", "(", "!", "Is64Bit", "||", "!", "Subtarget", ".", "hasAVX512", "(", ")", ")", "{", "for", "(", "unsigned", "n", "=", "16", ";", "n", "!=", "32", ";", "++", "n", ")", "{", "for", "(", "MCRegAliasIterator", "AI", "(", "X86", "::", "XMM0", "+", "n", ",", "this", ",", "true", ")", ";", "AI", ".", "isValid", "(", ")", ";", "++", "AI", ")", "Reserved", ".", "set", "(", "*", "AI", ")", ";", "}", "}", "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": ["X86", "X86", "X86::RSP", "X86::RIP", "X86::RBP", "\"Stack realignment in presence of dynamic allocas is not supported with\"", "\"this calling convention.\"", "X86::CS", "X86::SS", "X86::DS", "X86::ES", "X86::FS", "X86::GS", "0", "8", "X86::ST0", "X86::SIL", "X86::DIL", "X86::BPL", "X86::SPL", "0", "8", "X86::R8", "X86::XMM8", "16", "32", "X86::XMM0"], "File": "X86RegisterInfo2", "Func": "getReservedRegs", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2832, "Length": 494, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ia64_init_sched_context", "(", "void", "*", "_sc", ",", "bool", "clean_p", ")", "{", "ia64_sched_context_t", "sc", "=", "(", "ia64_sched_context_t", ")", "_sc", ";", "sc", "->", "prev_cycle_state", "=", "xmalloc", "(", "dfa_state_size", ")", ";", "if", "(", "clean_p", ")", "{", "state_reset", "(", "sc", "->", "prev_cycle_state", ")", ";", "sc", "->", "last_scheduled_insn", "=", "NULL", ";", "memset", "(", "sc", "->", "rws_sum", ",", "0", ",", "sizeof", "(", "rws_sum", ")", ")", ";", "memset", "(", "sc", "->", "rws_insn", ",", "0", ",", "sizeof", "(", "rws_insn", ")", ")", ";", "sc", "->", "first_instruction", "=", "1", ";", "sc", "->", "pending_data_specs", "=", "0", ";", "sc", "->", "current_cycle", "=", "0", ";", "memset", "(", "sc", "->", "mem_ops_in_group", ",", "0", ",", "sizeof", "(", "mem_ops_in_group", ")", ")", ";", "}", "else", "{", "memcpy", "(", "sc", "->", "prev_cycle_state", ",", "prev_cycle_state", ",", "dfa_state_size", ")", ";", "sc", "->", "last_scheduled_insn", "=", "last_scheduled_insn", ";", "memcpy", "(", "sc", "->", "rws_sum", ",", "rws_sum", ",", "sizeof", "(", "rws_sum", ")", ")", ";", "memcpy", "(", "sc", "->", "rws_insn", ",", "rws_insn", ",", "sizeof", "(", "rws_insn", ")", ")", ";", "sc", "->", "first_instruction", "=", "first_instruction", ";", "sc", "->", "pending_data_specs", "=", "pending_data_specs", ";", "sc", "->", "current_cycle", "=", "current_cycle", ";", "memcpy", "(", "sc", "->", "mem_ops_in_group", ",", "mem_ops_in_group", ",", "sizeof", "(", "mem_ops_in_group", ")", ")", ";", "}", "}", ""], "natrual_language": ["Initializes", "the", "_SC", "context", "with", "clean", "data", ",", "if", "CLEAN_P", ",", "and", "from", "the", "global", "context", "otherwise", "."], "TS_V_token": ["ia64", "0", "0", "1", "0", "0", "0"], "File": "ia64", "Func": "ia64_init_sched_context", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2833, "Length": 189, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "inline", "hashval_t", "registered_function_hasher", "::", "hash", "(", "value_type", "value", ")", "{", "return", "value", "->", "instance", ".", "hash", "(", ")", ";", "}", ""], "natrual_language": ["Hash", "function", "for", "builtin", "functions", "with", "up", "to", "3", "arguments", "and", "a", "return", "type", "."], "TS_V_token": ["aarch64"], "File": "aarch64-sve-builtins", "Func": "hash", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2834, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "CCAssignFn", "*", "ARMTargetLowering", "::", "CCAssignFnForCall", "(", "CallingConv", "::", "ID", "CC", ",", "bool", "isVarArg", ")", "const", "{", "return", "CCAssignFnForNode", "(", "CC", ",", "false", ",", "isVarArg", ")", ";", "}", ""], "natrual_language": ["Selects", "the", "correct", "CCAssignFn", "for", "a", "given", "CallingConvention", "value", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMISelLowering (2)5", "Func": "CCAssignFnForCall", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2835, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "canMergeStoresTo", "(", "unsigned", "AddressSpace", ",", "EVT", "MemVT", ",", "const", "MachineFunction", "&", "MF", ")", "const", "override", "{", "return", "(", "MemVT", ".", "getSizeInBits", "(", ")", "<=", "32", ")", ";", "}", ""], "natrual_language": ["Returns", "if", "it", "'s", "reasonable", "to", "merge", "stores", "to", "MemVT", "size", "."], "TS_V_token": ["ARM", "32"], "File": "ARMISelLowering", "Func": "canMergeStoresTo", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2836, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", "STPSUPPRESS_PASS_NAME", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["AArch64"], "File": "AArch64StorePairSuppress1", "Func": "getPassName", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2837, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "char", "*", "getName", "(", ")", "{", "return", "DEBUG_TYPE", ";", "}", ""], "natrual_language": ["Return", "a", "string", "with", "the", "name", "of", "the", "plan", "and", "the", "applicable", "VFs", "and", "UFs", "."], "TS_V_token": ["X86"], "File": "X86InstructionSelector", "Func": "getName", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2838, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "unsigned", ",", "unsigned", ">", "MipsInstrInfo", "::", "decomposeMachineOperandsTargetFlags", "(", "unsigned", "TF", ")", "const", "{", "return", "std", "::", "make_pair", "(", "TF", ",", "0u", ")", ";", "}", ""], "natrual_language": ["Decompose", "the", "machine", "operand", "'s", "target", "flags", "into", "two", "values", "-", "the", "direct", "target", "flag", "value", "and", "any", "of", "bit", "flags", "that", "are", "applied", "."], "TS_V_token": ["Mips", "Mips", "0u"], "File": "MipsInstrInfo (2)3", "Func": "decomposeMachineOperandsTargetFlags", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2839, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getExceptionSelectorRegister", "(", "const", "Constant", "*", "PersonalityFn", ")", "const", "override", "{", "return", "SystemZ", "::", "R7D", ";", "}", ""], "natrual_language": ["If", "a", "physical", "register", ",", "this", "returns", "the", "register", "that", "receives", "the", "exception", "typeid", "on", "entry", "to", "a", "landing", "pad", "."], "TS_V_token": ["SystemZ", "SystemZ::R7D"], "File": "SystemZISelLowering (2)", "Func": "getExceptionSelectorRegister", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2840, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", "\"Local Dynamic TLS Access Clean-up\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["X86", "\"Local Dynamic TLS Access Clean-up\""], "File": "X86InstrInfo (2)", "Func": "getPassName", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2841, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_pop_asm_switch_1", "(", "struct", "mips_asm_switch", "*", "asm_switch", ",", "const", "char", "*", "prefix", ",", "const", "char", "*", "suffix", ")", "{", "gcc_assert", "(", "asm_switch", "->", "nesting_level", ")", ";", "asm_switch", "->", "nesting_level", "--", ";", "if", "(", "asm_switch", "->", "nesting_level", "==", "0", ")", "fprintf", "(", "asm_out_file", ",", "\"%s.set\\t%s%s\"", ",", "prefix", ",", "asm_switch", "->", "name", ",", "suffix", ")", ";", "}", ""], "natrual_language": ["Likewise", ",", "but", "end", "a", "block", "."], "TS_V_token": ["mips", "0", "\"%s.set\\t%s%s\""], "File": "mips", "Func": "mips_pop_asm_switch_1", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2842, "Length": 56, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMAsmBackend", "::", "writeNopData", "(", "uint64_t", "Count", ",", "MCObjectWriter", "*", "OW", ")", "const", "{", "const", "uint16_t", "Thumb1_16bitNopEncoding", "=", "0x46c0", ";", "const", "uint16_t", "Thumb2_16bitNopEncoding", "=", "0xbf00", ";", "const", "uint32_t", "ARMv4_NopEncoding", "=", "0xe1a00000", ";", "const", "uint32_t", "ARMv6T2_NopEncoding", "=", "0xe320f000", ";", "if", "(", "isThumb", "(", ")", ")", "{", "const", "uint16_t", "nopEncoding", "=", "hasNOP", "(", ")", "?", "Thumb2_16bitNopEncoding", ":", "Thumb1_16bitNopEncoding", ";", "uint64_t", "NumNops", "=", "Count", "/", "2", ";", "for", "(", "uint64_t", "i", "=", "0", ";", "i", "!=", "NumNops", ";", "++", "i", ")", "OW", "->", "Write16", "(", "nopEncoding", ")", ";", "if", "(", "Count", "&", "1", ")", "OW", "->", "Write8", "(", "0", ")", ";", "return", "true", ";", "}", "const", "uint32_t", "nopEncoding", "=", "hasNOP", "(", ")", "?", "ARMv6T2_NopEncoding", ":", "ARMv4_NopEncoding", ";", "uint64_t", "NumNops", "=", "Count", "/", "4", ";", "for", "(", "uint64_t", "i", "=", "0", ";", "i", "!=", "NumNops", ";", "++", "i", ")", "OW", "->", "Write32", "(", "nopEncoding", ")", ";", "switch", "(", "Count", "%", "4", ")", "{", "default", ":", "break", ";", "case", "1", ":", "OW", "->", "Write8", "(", "0", ")", ";", "break", ";", "case", "2", ":", "OW", "->", "Write16", "(", "0", ")", ";", "break", ";", "case", "3", ":", "OW", "->", "Write16", "(", "0", ")", ";", "OW", "->", "Write8", "(", "0xa0", ")", ";", "break", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Write", "an", "(", "optimal", ")", "nop", "sequence", "of", "Count", "bytes", "to", "the", "given", "output", "."], "TS_V_token": ["ARM", "ARM", "0x46c0", "0xbf00", "ARM", "0xe1a00000", "ARM", "0xe320f000", "2", "0", "1", "0", "ARM", "ARM", "4", "0", "4", "1", "0", "2", "0", "3", "0", "0xa0"], "File": "ARMAsmBackend14", "Func": "writeNopData", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2843, "Length": 201, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "TOYPreRegAlloc", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"********* TOY PreRegAlloc *********\\n\"", ")", ";", "bool", "Changed", "=", "false", ";", "Changed", "|=", "peepholeOpt", "(", "MF", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["TOY", "TOY", "\"********* TOY PreRegAlloc *********\\n\""], "File": "TOYPreRegAlloc", "Func": "runOnMachineFunction", "Target": "TOY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2844, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "nds32_asm_function_epilogue", "(", "FILE", "*", "file", ")", "{", "fprintf", "(", "file", ",", "\"\\t! END EPILOGUE\\n\"", ")", ";", "}", ""], "natrual_language": ["The", "content", "produced", "from", "this", "function", "will", "be", "placed", "after", "epilogue", "body", "."], "TS_V_token": ["nds32", "\"\\t! END EPILOGUE\\n\""], "File": "nds32", "Func": "nds32_asm_function_epilogue", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2845, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mayNeedRelaxation", "(", "const", "MCInst", "&", ")", "const", "{", "return", "false", ";", "}", ""], "natrual_language": ["Check", "whether", "the", "given", "instruction", "may", "need", "relaxation", "."], "TS_V_token": ["AArch64"], "File": "AArch64AsmBackend16", "Func": "mayNeedRelaxation", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2846, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "attr_strcmp", "(", "const", "void", "*", "v1", ",", "const", "void", "*", "v2", ")", "{", "const", "char", "*", "c1", "=", "*", "(", "char", "*", "const", "*", ")", "v1", ";", "const", "char", "*", "c2", "=", "*", "(", "char", "*", "const", "*", ")", "v2", ";", "return", "strcmp", "(", "c1", ",", "c2", ")", ";", "}", ""], "natrual_language": ["Comparator", "function", "to", "be", "used", "in", "qsort", "routine", "to", "sort", "attribute", "specification", "strings", "to", "``", "target", "''", "."], "TS_V_token": ["i386"], "File": "i3864", "Func": "attr_strcmp", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2847, "Length": 52, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "rx_is_restricted_memory_address", "(", "rtx", "mem", ",", "machine_mode", "mode", ")", "{", "if", "(", "!", "rx_is_legitimate_address", "(", "mode", ",", "mem", ",", "reload_in_progress", "||", "reload_completed", ")", ")", "return", "false", ";", "switch", "(", "GET_CODE", "(", "mem", ")", ")", "{", "case", "REG", ":", "return", "true", ";", "case", "PRE_DEC", ":", "case", "POST_INC", ":", "return", "false", ";", "case", "PLUS", ":", "{", "rtx", "base", ",", "index", ";", "base", "=", "XEXP", "(", "mem", ",", "0", ")", ";", "index", "=", "XEXP", "(", "mem", ",", "1", ")", ";", "if", "(", "!", "RX_REG_P", "(", "base", ")", "||", "!", "CONST_INT_P", "(", "index", ")", ")", "return", "false", ";", "return", "IN_RANGE", "(", "INTVAL", "(", "index", ")", ",", "0", ",", "(", "0x10000", "*", "GET_MODE_SIZE", "(", "mode", ")", ")", "-", "1", ")", ";", "}", "case", "SYMBOL_REF", ":", "return", "true", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Returns", "TRUE", "for", "simple", "memory", "addreses", ",", "ie", "ones", "that", "do", "not", "involve", "register", "indirect", "addressing", "or", "pre/post", "increment/decrement", "."], "TS_V_token": ["rx", "0", "1", "0", "0x10000", "1"], "File": "rx2", "Func": "rx_is_restricted_memory_address", "Target": "rx", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2848, "Length": 131, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ix86_return_in_memory", "(", "tree", "type", ")", "{", "int", "needed_intregs", ",", "needed_sseregs", ",", "size", ";", "enum", "machine_mode", "mode", "=", "type_natural_mode", "(", "type", ")", ";", "if", "(", "TARGET_64BIT", ")", "return", "!", "examine_argument", "(", "mode", ",", "type", ",", "1", ",", "&", "needed_intregs", ",", "&", "needed_sseregs", ")", ";", "if", "(", "mode", "==", "BLKmode", ")", "return", "1", ";", "size", "=", "int_size_in_bytes", "(", "type", ")", ";", "if", "(", "MS_AGGREGATE_RETURN", "&&", "AGGREGATE_TYPE_P", "(", "type", ")", "&&", "size", "<=", "8", ")", "return", "0", ";", "if", "(", "VECTOR_MODE_P", "(", "mode", ")", "||", "mode", "==", "TImode", ")", "{", "if", "(", "size", "<", "8", ")", "return", "0", ";", "if", "(", "size", "==", "8", ")", "return", "(", "TARGET_MMX", "?", "0", ":", "1", ")", ";", "if", "(", "size", "==", "16", ")", "return", "(", "TARGET_SSE", "?", "0", ":", "1", ")", ";", "}", "if", "(", "mode", "==", "XFmode", ")", "return", "0", ";", "if", "(", "size", ">", "12", ")", "return", "1", ";", "return", "0", ";", "}", ""], "natrual_language": ["Return", "false", "iff", "type", "is", "returned", "in", "memory", "."], "TS_V_token": ["i386", "1", "1", "8", "0", "8", "0", "8", "0", "1", "16", "0", "1", "0", "12", "1", "0"], "File": "i3863", "Func": "ix86_return_in_memory", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2849, "Length": 150, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "AArch64ELFStreamer", "&", "AArch64TargetELFStreamer", "::", "getStreamer", "(", ")", "{", "return", "static_cast", "<", "AArch64ELFStreamer", "&", ">", "(", "Streamer", ")", ";", "}", ""], "natrual_language": ["Return", "the", "output", "streamer", "for", "the", "assembler", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64ELFStreamer (2)", "Func": "getStreamer", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2850, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "X86TargetMachine", "::", "X86TargetMachine", "(", "const", "Target", "&", "T", ",", "StringRef", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Reloc", "::", "Model", "RM", ",", "CodeModel", "::", "Model", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ",", "bool", "is64Bit", ")", ":", "LLVMTargetMachine", "(", "T", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "RM", ",", "CM", ",", "OL", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ",", "Options", ".", "StackAlignmentOverride", ",", "is64Bit", ")", ",", "FrameLowering", "(", "*", "this", ",", "Subtarget", ")", ",", "ELFWriterInfo", "(", "is64Bit", ",", "true", ")", "{", "if", "(", "getRelocationModel", "(", ")", "==", "Reloc", "::", "Static", ")", "{", "Subtarget", ".", "setPICStyle", "(", "PICStyles", "::", "None", ")", ";", "}", "else", "if", "(", "Subtarget", ".", "is64Bit", "(", ")", ")", "{", "Subtarget", ".", "setPICStyle", "(", "PICStyles", "::", "RIPRel", ")", ";", "}", "else", "if", "(", "Subtarget", ".", "isTargetCygMing", "(", ")", ")", "{", "Subtarget", ".", "setPICStyle", "(", "PICStyles", "::", "None", ")", ";", "}", "else", "if", "(", "Subtarget", ".", "isTargetDarwin", "(", ")", ")", "{", "if", "(", "getRelocationModel", "(", ")", "==", "Reloc", "::", "PIC_", ")", "Subtarget", ".", "setPICStyle", "(", "PICStyles", "::", "StubPIC", ")", ";", "else", "{", "assert", "(", "getRelocationModel", "(", ")", "==", "Reloc", "::", "DynamicNoPIC", ")", ";", "Subtarget", ".", "setPICStyle", "(", "PICStyles", "::", "StubDynamicNoPIC", ")", ";", "}", "}", "else", "if", "(", "Subtarget", ".", "isTargetELF", "(", ")", ")", "{", "Subtarget", ".", "setPICStyle", "(", "PICStyles", "::", "GOT", ")", ";", "}", "if", "(", "Options", ".", "FloatABIType", "==", "FloatABI", "::", "Default", ")", "this", "->", "Options", ".", "FloatABIType", "=", "FloatABI", "::", "Hard", ";", "}", ""], "natrual_language": ["Create", "an", "X86", "target", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86TargetMachine85", "Func": "X86TargetMachine", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2851, "Length": 246, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "setPreservesCFG", "(", ")", ";", "AU", ".", "addRequired", "<", "DominatorTreeWrapperPass", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "DominatorTreeWrapperPass", ">", "(", ")", ";", "FunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["ARM64"], "File": "ARM64AddressTypePromotion1", "Func": "getAnalysisUsage", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2852, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86CallLowering", "::", "lowerFormalArguments", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "const", "Function", "&", "F", ",", "ArrayRef", "<", "ArrayRef", "<", "Register", ">>", "VRegs", ",", "FunctionLoweringInfo", "&", "FLI", ")", "const", "{", "if", "(", "F", ".", "arg_empty", "(", ")", ")", "return", "true", ";", "if", "(", "F", ".", "isVarArg", "(", ")", ")", "return", "false", ";", "MachineFunction", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "auto", "DL", "=", "MF", ".", "getDataLayout", "(", ")", ";", "SmallVector", "<", "ArgInfo", ",", "8", ">", "SplitArgs", ";", "unsigned", "Idx", "=", "0", ";", "for", "(", "const", "auto", "&", "Arg", ":", "F", ".", "args", "(", ")", ")", "{", "if", "(", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "ByVal", ")", "||", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "InReg", ")", "||", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "StructRet", ")", "||", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "SwiftSelf", ")", "||", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "SwiftError", ")", "||", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "Nest", ")", "||", "VRegs", "[", "Idx", "]", ".", "size", "(", ")", ">", "1", ")", "return", "false", ";", "ArgInfo", "OrigArg", "(", "VRegs", "[", "Idx", "]", ",", "Arg", ".", "getType", "(", ")", ")", ";", "setArgFlags", "(", "OrigArg", ",", "Idx", "+", "AttributeList", "::", "FirstArgIndex", ",", "DL", ",", "F", ")", ";", "splitToValueTypes", "(", "OrigArg", ",", "SplitArgs", ",", "DL", ",", "F", ".", "getCallingConv", "(", ")", ")", ";", "Idx", "++", ";", "}", "MachineBasicBlock", "&", "MBB", "=", "MIRBuilder", ".", "getMBB", "(", ")", ";", "if", "(", "!", "MBB", ".", "empty", "(", ")", ")", "MIRBuilder", ".", "setInstr", "(", "*", "MBB", ".", "begin", "(", ")", ")", ";", "X86OutgoingValueAssigner", "Assigner", "(", "CC_X86", ")", ";", "FormalArgHandler", "Handler", "(", "MIRBuilder", ",", "MRI", ")", ";", "if", "(", "!", "determineAndHandleAssignments", "(", "Handler", ",", "Assigner", ",", "SplitArgs", ",", "MIRBuilder", ",", "F", ".", "getCallingConv", "(", ")", ",", "F", ".", "isVarArg", "(", ")", ")", ")", "return", "false", ";", "MIRBuilder", ".", "setMBB", "(", "MBB", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "the", "incoming", "(", "formal", ")", "arguments", ",", "described", "by", "VRegs", ",", "for", "GlobalISel", "."], "TS_V_token": ["X86", "X86", "8", "0", "1", "X86", "X86"], "File": "X86CallLowering13", "Func": "lowerFormalArguments", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2853, "Length": 310, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ia64_const_double_ok_for_letter_p", "(", "rtx", "value", ",", "char", "c", ")", "{", "switch", "(", "c", ")", "{", "case", "'G'", ":", "return", "CONST_DOUBLE_OK_FOR_G", "(", "value", ")", ";", "default", ":", "return", "false", ";", "}", "}", ""], "natrual_language": ["Implement", "CONST_DOUBLE_OK_FOR_LETTER_P", "."], "TS_V_token": ["ia64"], "File": "ia643", "Func": "ia64_const_double_ok_for_letter_p", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2854, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "TargetRegisterClass", "*", "X86RegisterInfo", "::", "getCrossCopyRegClass", "(", "const", "TargetRegisterClass", "*", "RC", ")", "const", "{", "if", "(", "RC", "==", "&", "X86", "::", "CCRRegClass", ")", "{", "if", "(", "Is64Bit", ")", "return", "&", "X86", "::", "GR64RegClass", ";", "else", "return", "&", "X86", "::", "GR32RegClass", ";", "}", "return", "NULL", ";", "}", ""], "natrual_language": ["getCrossCopyRegClass", "-", "Returns", "a", "legal", "register", "class", "to", "copy", "a", "register", "in", "the", "specified", "class", "to", "or", "from", "."], "TS_V_token": ["X86", "X86", "X86::CCRRegClass", "X86::GR64RegClass", "X86::GR32RegClass"], "File": "X86RegisterInfo11", "Func": "getCrossCopyRegClass", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2855, "Length": 46, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMPassConfig", "::", "addPreSched2", "(", ")", "{", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "if", "(", "EnableARMLoadStoreOpt", ")", "addPass", "(", "createARMLoadStoreOptimizationPass", "(", ")", ")", ";", "addPass", "(", "new", "ARMExecutionDepsFix", "(", ")", ")", ";", "}", "addPass", "(", "createARMExpandPseudoPass", "(", ")", ")", ";", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "addPass", "(", "createThumb2SizeReductionPass", "(", "[", "this", "]", "(", "const", "Function", "&", "F", ")", "{", "return", "this", "->", "TM", "->", "getSubtarget", "<", "ARMSubtarget", ">", "(", "F", ")", ".", "restrictIT", "(", ")", ";", "}", ")", ")", ";", "addPass", "(", "createIfConverter", "(", "[", "]", "(", "const", "MachineFunction", "&", "MF", ")", "{", "return", "!", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ".", "isThumb1Only", "(", ")", ";", "}", ")", ")", ";", "}", "addPass", "(", "createThumb2ITBlockPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "after", "prolog-epilog", "insertion", "and", "before", "the", "second", "instruction", "scheduling", "pass", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM"], "File": "ARMTargetMachine14", "Func": "addPreSched2", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2856, "Length": 132, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86TargetLowering", "::", "insertSSPDeclarations", "(", "Module", "&", "M", ")", "const", "{", "if", "(", "Subtarget", ".", "getTargetTriple", "(", ")", ".", "isOSMSVCRT", "(", ")", ")", "{", "M", ".", "getOrInsertGlobal", "(", "\"__security_cookie\"", ",", "Type", "::", "getInt8PtrTy", "(", "M", ".", "getContext", "(", ")", ")", ")", ";", "auto", "*", "SecurityCheckCookie", "=", "cast", "<", "Function", ">", "(", "M", ".", "getOrInsertFunction", "(", "\"__security_check_cookie\"", ",", "Type", "::", "getVoidTy", "(", "M", ".", "getContext", "(", ")", ")", ",", "Type", "::", "getInt8PtrTy", "(", "M", ".", "getContext", "(", ")", ")", ",", "nullptr", ")", ")", ";", "SecurityCheckCookie", "->", "setCallingConv", "(", "CallingConv", "::", "X86_FastCall", ")", ";", "SecurityCheckCookie", "->", "addAttribute", "(", "1", ",", "Attribute", "::", "AttrKind", "::", "InReg", ")", ";", "return", ";", "}", "if", "(", "hasStackGuardSlotTLS", "(", "Subtarget", ".", "getTargetTriple", "(", ")", ")", ")", "return", ";", "TargetLowering", "::", "insertSSPDeclarations", "(", "M", ")", ";", "}", ""], "natrual_language": ["Inserts", "necessary", "declarations", "for", "SSP", "(", "stack", "protection", ")", "purpose", "."], "TS_V_token": ["X86", "X86", "\"__security_cookie\"", "\"__security_check_cookie\"", "X86", "1"], "File": "X86ISelLowering115", "Func": "insertSSPDeclarations", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2857, "Length": 129, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ia64_output_function_end_prologue", "(", "FILE", "*", "file", ")", "{", "if", "(", "!", "flag_unwind_tables", "&&", "(", "!", "flag_exceptions", "||", "USING_SJLJ_EXCEPTIONS", ")", ")", "return", ";", "fputs", "(", "\"\\t.body\\n\"", ",", "file", ")", ";", "}", ""], "natrual_language": ["Emit", "the", ".body", "directive", "at", "the", "scheduled", "end", "of", "the", "prologue", "."], "TS_V_token": ["ia64", "\"\\t.body\\n\""], "File": "ia643", "Func": "ia64_output_function_end_prologue", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2858, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "aarch64_register_pragmas", "(", "void", ")", "{", "targetm", ".", "target_option", ".", "pragma_parse", "=", "aarch64_pragma_target_parse", ";", "}", ""], "natrual_language": ["Implement", "REGISTER_TARGET_PRAGMAS", "."], "TS_V_token": ["aarch64"], "File": "aarch64-c2", "Func": "aarch64_register_pragmas", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2859, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "loongarch_setup_incoming_varargs", "(", "cumulative_args_t", "cum", ",", "const", "function_arg_info", "&", "arg", ",", "int", "*", "pretend_size", "ATTRIBUTE_UNUSED", ",", "int", "no_rtl", ")", "{", "CUMULATIVE_ARGS", "local_cum", ";", "int", "gp_saved", ";", "local_cum", "=", "*", "get_cumulative_args", "(", "cum", ")", ";", "loongarch_function_arg_advance", "(", "pack_cumulative_args", "(", "&", "local_cum", ")", ",", "arg", ")", ";", "gp_saved", "=", "MAX_ARGS_IN_REGISTERS", "-", "local_cum", ".", "num_gprs", ";", "if", "(", "!", "no_rtl", "&&", "gp_saved", ">", "0", ")", "{", "rtx", "ptr", "=", "plus_constant", "(", "Pmode", ",", "virtual_incoming_args_rtx", ",", "REG_PARM_STACK_SPACE", "(", "cfun", "->", "decl", ")", "-", "gp_saved", "*", "UNITS_PER_WORD", ")", ";", "rtx", "mem", "=", "gen_frame_mem", "(", "BLKmode", ",", "ptr", ")", ";", "set_mem_alias_set", "(", "mem", ",", "get_varargs_alias_set", "(", ")", ")", ";", "move_block_from_reg", "(", "local_cum", ".", "num_gprs", "+", "GP_ARG_FIRST", ",", "mem", ",", "gp_saved", ")", ";", "}", "if", "(", "REG_PARM_STACK_SPACE", "(", "cfun", "->", "decl", ")", "==", "0", ")", "cfun", "->", "machine", "->", "varargs_size", "=", "gp_saved", "*", "UNITS_PER_WORD", ";", "}", ""], "natrual_language": ["Implement", "TARGET_SETUP_INCOMING_VARARGS", "."], "TS_V_token": ["loongarch", "0", "0"], "File": "loongarch", "Func": "loongarch_setup_incoming_varargs", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2860, "Length": 140, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "neon_immediate_valid_for_logic", "(", "rtx", "op", ",", "machine_mode", "mode", ",", "int", "inverse", ",", "rtx", "*", "modconst", ",", "int", "*", "elementwidth", ")", "{", "rtx", "tmpconst", ";", "int", "tmpwidth", ";", "int", "retval", "=", "simd_valid_immediate", "(", "op", ",", "mode", ",", "inverse", ",", "&", "tmpconst", ",", "&", "tmpwidth", ")", ";", "if", "(", "retval", "<", "0", "||", "retval", ">", "5", ")", "return", "0", ";", "if", "(", "modconst", ")", "*", "modconst", "=", "tmpconst", ";", "if", "(", "elementwidth", ")", "*", "elementwidth", "=", "tmpwidth", ";", "return", "1", ";", "}", ""], "natrual_language": ["Return", "TRUE", "if", "rtx", "X", "is", "legal", "for", "use", "in", "a", "VORR", "or", "VBIC", "instruction", ".", "If", "the", "immediate", "is", "valid", ",", "write", "a", "constant", "suitable", "for", "using", "as", "an", "operand", "to", "VORR/VBIC/VAND/VORN", "to", "*", "MODCONST", "and", "the", "corresponding", "element", "width", "to", "*", "ELEMENTWIDTH", ".", "See", "neon_valid_immediate", "for", "description", "of", "INVERSE", "."], "TS_V_token": ["arm", "0", "5", "0", "1"], "File": "arm", "Func": "neon_immediate_valid_for_logic", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2861, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "AArch64Subtarget", "::", "ClassifyGlobalReference", "(", "const", "GlobalValue", "*", "GV", ",", "const", "TargetMachine", "&", "TM", ")", "const", "{", "if", "(", "TM", ".", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Large", "&&", "isTargetMachO", "(", ")", ")", "return", "AArch64II", "::", "MO_GOT", ";", "if", "(", "!", "TM", ".", "shouldAssumeDSOLocal", "(", "*", "GV", "->", "getParent", "(", ")", ",", "GV", ")", ")", "{", "if", "(", "GV", "->", "hasDLLImportStorageClass", "(", ")", ")", "return", "AArch64II", "::", "MO_GOT", "|", "AArch64II", "::", "MO_DLLIMPORT", ";", "if", "(", "getTargetTriple", "(", ")", ".", "isOSWindows", "(", ")", ")", "return", "AArch64II", "::", "MO_GOT", "|", "AArch64II", "::", "MO_COFFSTUB", ";", "return", "AArch64II", "::", "MO_GOT", ";", "}", "if", "(", "(", "useSmallAddressing", "(", ")", "||", "TM", ".", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Tiny", ")", "&&", "GV", "->", "hasExternalWeakLinkage", "(", ")", ")", "return", "AArch64II", "::", "MO_GOT", ";", "if", "(", "AllowTaggedGlobals", "&&", "!", "isa", "<", "FunctionType", ">", "(", "GV", "->", "getValueType", "(", ")", ")", ")", "return", "AArch64II", "::", "MO_NC", "|", "AArch64II", "::", "MO_TAGGED", ";", "return", "AArch64II", "::", "MO_NO_FLAG", ";", "}", ""], "natrual_language": ["ClassifyGlobalReference", "-", "Find", "the", "target", "operand", "flags", "that", "describe", "how", "a", "global", "value", "should", "be", "referenced", "for", "the", "current", "subtarget", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64II::MO_GOT", "AArch64II::MO_GOT", "AArch64II::MO_DLLIMPORT", "AArch64II::MO_GOT", "AArch64II::MO_COFFSTUB", "AArch64II::MO_GOT", "AArch64II::MO_GOT", "AArch64II::MO_NC", "AArch64II::MO_TAGGED", "AArch64II::MO_NO_FLAG"], "File": "AArch64Subtarget (2)1", "Func": "ClassifyGlobalReference", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2862, "Length": 159, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "tree", "gimple_folder", "::", "load_store_cookie", "(", "tree", "type", ")", "{", "return", "build_int_cst", "(", "build_pointer_type", "(", "type", ")", ",", "TYPE_ALIGN", "(", "type", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "alignment", "and", "TBAA", "argument", "to", "an", "internal", "load", "or", "store", "function", "like", "IFN_MASK_LOAD", "or", "IFN_MASK_STORE", ",", "given", "that", "it", "accesses", "memory", "elements", "of", "type", "TYPE", "."], "TS_V_token": ["aarch64"], "File": "aarch64-sve-builtins1", "Func": "load_store_cookie", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2863, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "get_dest_uid", "(", "rtx_insn", "*", "label", ",", "int", "max_uid", ")", "{", "rtx_insn", "*", "dest", "=", "next_real_insn", "(", "label", ")", ";", "if", "(", "!", "dest", ")", "return", "0", ";", "int", "dest_uid", "=", "INSN_UID", "(", "dest", ")", ";", "while", "(", "dest_uid", ">=", "max_uid", ")", "{", "dest", "=", "NEXT_INSN", "(", "dest", ")", ";", "dest_uid", "=", "INSN_UID", "(", "dest", ")", ";", "}", "if", "(", "JUMP_P", "(", "dest", ")", "&&", "GET_CODE", "(", "PATTERN", "(", "dest", ")", ")", "==", "RETURN", ")", "return", "0", ";", "return", "dest_uid", ";", "}", ""], "natrual_language": ["Return", "the", "UID", "of", "the", "insn", "that", "follows", "the", "specified", "label", "."], "TS_V_token": ["sh", "0", "0"], "File": "sh", "Func": "get_dest_uid", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2864, "Length": 82, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isShuffleMaskLegal", "(", "const", "SmallVectorImpl", "<", "int", ">", "&", "M", ",", "EVT", "VT", ")", "const", "{", "if", "(", "!", "VT", ".", "isSimple", "(", ")", ")", "return", "false", ";", "MVT", "SVT", "=", "VT", ".", "getSimpleVT", "(", ")", ";", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "64", ")", "return", "false", ";", "if", "(", "(", "SVT", ".", "is128BitVector", "(", ")", "&&", "Subtarget", "->", "hasSSSE3", "(", ")", ")", "||", "(", "SVT", ".", "is256BitVector", "(", ")", "&&", "Subtarget", "->", "hasInt256", "(", ")", ")", ")", "{", "bool", "isLegal", "=", "true", ";", "for", "(", "unsigned", "I", "=", "0", ",", "E", "=", "M", ".", "size", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "if", "(", "M", "[", "I", "]", ">=", "(", "int", ")", "SVT", ".", "getVectorNumElements", "(", ")", "||", "ShuffleCrosses128bitLane", "(", "SVT", ",", "I", ",", "M", "[", "I", "]", ")", ")", "{", "isLegal", "=", "false", ";", "break", ";", "}", "}", "if", "(", "isLegal", ")", "return", "true", ";", "}", "return", "(", "SVT", ".", "getVectorNumElements", "(", ")", "==", "2", "||", "ShuffleVectorSDNode", "::", "isSplatMask", "(", "&", "M", "[", "0", "]", ",", "VT", ")", "||", "isMOVLMask", "(", "M", ",", "SVT", ")", "||", "isSHUFPMask", "(", "M", ",", "SVT", ")", "||", "isPSHUFDMask", "(", "M", ",", "SVT", ")", "||", "isPSHUFHWMask", "(", "M", ",", "SVT", ",", "Subtarget", "->", "hasInt256", "(", ")", ")", "||", "isPSHUFLWMask", "(", "M", ",", "SVT", ",", "Subtarget", "->", "hasInt256", "(", ")", ")", "||", "isPALIGNRMask", "(", "M", ",", "SVT", ",", "Subtarget", ")", "||", "isUNPCKLMask", "(", "M", ",", "SVT", ",", "Subtarget", "->", "hasInt256", "(", ")", ")", "||", "isUNPCKHMask", "(", "M", ",", "SVT", ",", "Subtarget", "->", "hasInt256", "(", ")", ")", "||", "isUNPCKL_v_undef_Mask", "(", "M", ",", "SVT", ",", "Subtarget", "->", "hasInt256", "(", ")", ")", "||", "isUNPCKH_v_undef_Mask", "(", "M", ",", "SVT", ",", "Subtarget", "->", "hasInt256", "(", ")", ")", "||", "isBlendMask", "(", "M", ",", "SVT", ",", "Subtarget", "->", "hasSSE41", "(", ")", ",", "Subtarget", "->", "hasInt256", "(", ")", ")", ")", ";", "}", ""], "natrual_language": ["Targets", "can", "use", "this", "to", "indicate", "that", "they", "only", "support", "some", "VECTOR_SHUFFLE", "operations", ",", "those", "with", "specific", "masks", "."], "TS_V_token": ["X86", "X86", "64", "0", "2", "0"], "File": "X86ISelLowering (2)", "Func": "isShuffleMaskLegal", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2865, "Length": 308, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCExpr", "*", "VEAsmParser", "::", "parseIdentifier", "(", "StringRef", "Identifier", ")", "{", "StringRef", "Modifier", ";", "size_t", "at", "=", "Identifier", ".", "rfind", "(", "'@'", ")", ";", "if", "(", "at", "!=", "0", "||", "at", "!=", "StringRef", "::", "npos", ")", "{", "std", "::", "pair", "<", "StringRef", ",", "StringRef", ">", "Pair", "=", "Identifier", ".", "rsplit", "(", "\"@\"", ")", ";", "if", "(", "!", "Pair", ".", "first", ".", "empty", "(", ")", "&&", "!", "Pair", ".", "second", ".", "empty", "(", ")", ")", "{", "Identifier", "=", "Pair", ".", "first", ";", "Modifier", "=", "Pair", ".", "second", ";", "}", "}", "MCSymbol", "*", "Sym", "=", "getContext", "(", ")", ".", "getOrCreateSymbol", "(", "Identifier", ")", ";", "const", "MCExpr", "*", "Res", "=", "MCSymbolRefExpr", "::", "create", "(", "Sym", ",", "MCSymbolRefExpr", "::", "VK_None", ",", "getContext", "(", ")", ")", ";", "VEMCExpr", "::", "VariantKind", "VK", "=", "VEMCExpr", "::", "parseVariantKind", "(", "Modifier", ")", ";", "if", "(", "VK", "==", "VEMCExpr", "::", "VK_VE_None", ")", "{", "VEMCExpr", "::", "VariantKind", "Kind", "=", "VEMCExpr", "::", "VK_VE_REFLONG", ";", "return", "VEMCExpr", "::", "create", "(", "Kind", ",", "Res", ",", "getContext", "(", ")", ")", ";", "}", "return", "VEMCExpr", "::", "create", "(", "VK", ",", "Res", ",", "getContext", "(", ")", ")", ";", "}", ""], "natrual_language": ["Parse", "an", "identifier", "or", "string", "(", "as", "a", "quoted", "identifier", ")", "and", "set", "Res", "to", "the", "identifier", "contents", "."], "TS_V_token": ["VE", "VE", "0", "\"@\"", "VE", "VE", "VE", "VE", "VE", "VE", "VE", "VE", "VE"], "File": "VEAsmParser1", "Func": "parseIdentifier", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2866, "Length": 182, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "setPreservesCFG", "(", ")", ";", "AU", ".", "addRequired", "<", "MachineTraceMetrics", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "MachineTraceMetrics", ">", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["ARM64"], "File": "ARM64StorePairSuppress", "Func": "getAnalysisUsage", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2867, "Length": 43, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMPassConfig", "::", "addPreRegAlloc", "(", ")", "{", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "!", "getARMSubtarget", "(", ")", ".", "isThumb1Only", "(", ")", ")", "addPass", "(", "createARMLoadStoreOptimizationPass", "(", "true", ")", ")", ";", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "getARMSubtarget", "(", ")", ".", "isLikeA9", "(", ")", ")", "addPass", "(", "createMLxExpansionPass", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "register", "allocation", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM"], "File": "ARMTargetMachine17", "Func": "addPreRegAlloc", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2868, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_builtin_type_compatible", "(", "tree", "parmtype", ",", "tree", "argtype", ")", "{", "if", "(", "parmtype", "==", "error_mark_node", ")", "return", "false", ";", "if", "(", "INTEGRAL_TYPE_P", "(", "parmtype", ")", "&&", "INTEGRAL_TYPE_P", "(", "argtype", ")", ")", "return", "true", ";", "if", "(", "TARGET_IEEEQUAD", "&&", "TARGET_LONG_DOUBLE_128", "&&", "is_float128_p", "(", "parmtype", ")", "&&", "is_float128_p", "(", "argtype", ")", ")", "return", "true", ";", "if", "(", "POINTER_TYPE_P", "(", "parmtype", ")", "&&", "POINTER_TYPE_P", "(", "argtype", ")", ")", "{", "parmtype", "=", "TREE_TYPE", "(", "parmtype", ")", ";", "argtype", "=", "TREE_TYPE", "(", "argtype", ")", ";", "if", "(", "TYPE_READONLY", "(", "argtype", ")", ")", "parmtype", "=", "build_qualified_type", "(", "parmtype", ",", "TYPE_QUAL_CONST", ")", ";", "}", "return", "lang_hooks", ".", "types_compatible_p", "(", "parmtype", ",", "argtype", ")", ";", "}", ""], "natrual_language": ["Return", "true", "iff", "ARGTYPE", "can", "be", "compatibly", "passed", "as", "PARMTYPE", "."], "TS_V_token": ["rs6000"], "File": "rs6000-c", "Func": "rs6000_builtin_type_compatible", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2869, "Length": 109, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "get_mem_base_reg", "(", "rtx", "mem", ")", "{", "const", "char", "*", "fmt", ";", "while", "(", "!", "MEM_P", "(", "mem", ")", ")", "{", "if", "(", "GET_RTX_CLASS", "(", "GET_CODE", "(", "mem", ")", ")", "!=", "RTX_UNARY", "||", "GET_CODE", "(", "mem", ")", "==", "BSWAP", ")", "return", "NULL_RTX", ";", "fmt", "=", "GET_RTX_FORMAT", "(", "GET_CODE", "(", "mem", ")", ")", ";", "if", "(", "fmt", "[", "0", "]", "!=", "'e'", ")", "return", "NULL_RTX", ";", "mem", "=", "XEXP", "(", "mem", ",", "0", ")", ";", "if", "(", "mem", "==", "NULL_RTX", ")", "return", "NULL_RTX", ";", "}", "if", "(", "!", "MEM_SIZE_KNOWN_P", "(", "mem", ")", ")", "return", "NULL_RTX", ";", "rtx", "addr_rtx", "=", "(", "XEXP", "(", "mem", ",", "0", ")", ")", ";", "if", "(", "GET_CODE", "(", "addr_rtx", ")", "==", "PRE_MODIFY", ")", "addr_rtx", "=", "XEXP", "(", "addr_rtx", ",", "1", ")", ";", "while", "(", "GET_CODE", "(", "addr_rtx", ")", "==", "PLUS", "&&", "CONST_INT_P", "(", "XEXP", "(", "addr_rtx", ",", "1", ")", ")", ")", "addr_rtx", "=", "XEXP", "(", "addr_rtx", ",", "0", ")", ";", "if", "(", "!", "REG_P", "(", "addr_rtx", ")", ")", "return", "NULL_RTX", ";", "return", "addr_rtx", ";", "}", ""], "natrual_language": ["Return", "the", "register", "used", "as", "the", "base", "register", "of", "MEM", ",", "if", "the", "instruction", "has", "a", "pc-relative", "form", ".", "We", "look", "for", "BSWAP", "to", "rule", "out", "LFIWAX/LFIWZX/STFIWX", ",", "and", "ROTATE/VEC_SELECT", "are", "RTX_EXTRA", "not", "RTX_UNARY", "which", "rules", "out", "lxvd2x", ".", "This", "excludes", "instructions", "that", "do", "not", "have", "a", "pc-relative", "form", "."], "TS_V_token": ["rs6000", "0", "0", "0", "1", "1", "0"], "File": "rs6000-pcrel-opt", "Func": "get_mem_base_reg", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2870, "Length": 169, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsConstantIslands", "::", "isBBInRange", "(", "MachineInstr", "*", "MI", ",", "MachineBasicBlock", "*", "DestBB", ",", "unsigned", "MaxDisp", ")", "{", "unsigned", "PCAdj", "=", "4", ";", "unsigned", "BrOffset", "=", "getOffsetOf", "(", "MI", ")", "+", "PCAdj", ";", "unsigned", "DestOffset", "=", "BBInfo", "[", "DestBB", "->", "getNumber", "(", ")", "]", ".", "Offset", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Branch of destination BB#\"", "<<", "DestBB", "->", "getNumber", "(", ")", "<<", "\" from BB#\"", "<<", "MI", "->", "getParent", "(", ")", "->", "getNumber", "(", ")", "<<", "\" max delta=\"", "<<", "MaxDisp", "<<", "\" from \"", "<<", "getOffsetOf", "(", "MI", ")", "<<", "\" to \"", "<<", "DestOffset", "<<", "\" offset \"", "<<", "int", "(", "DestOffset", "-", "BrOffset", ")", "<<", "\"\\t\"", "<<", "*", "MI", ")", ";", "if", "(", "BrOffset", "<=", "DestOffset", ")", "{", "if", "(", "DestOffset", "-", "BrOffset", "<=", "MaxDisp", ")", "return", "true", ";", "}", "else", "{", "if", "(", "BrOffset", "-", "DestOffset", "<=", "MaxDisp", ")", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["isBBInRange", "-", "Returns", "true", "if", "the", "distance", "between", "specific", "MI", "and", "specific", "BB", "can", "fit", "in", "MI", "'s", "displacement", "field", "."], "TS_V_token": ["Mips", "Mips", "4", "\"Branch of destination BB#\"", "\" from BB#\"", "\" max delta=\"", "\" from \"", "\" to \"", "\" offset \"", "\"\\t\""], "File": "MipsConstantIslandPass", "Func": "isBBInRange", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2871, "Length": 139, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "gen_frame_mem_offset", "(", "machine_mode", "mode", ",", "rtx", "reg", ",", "int", "offset", ")", "{", "rtx", "int_rtx", ",", "offset_rtx", ";", "int_rtx", "=", "GEN_INT", "(", "offset", ")", ";", "if", "(", "(", "TARGET_SPE_ABI", "&&", "SPE_VECTOR_MODE", "(", "mode", ")", "&&", "!", "SPE_CONST_OFFSET_OK", "(", "offset", ")", ")", "||", "(", "TARGET_E500_DOUBLE", "&&", "mode", "==", "DFmode", ")", ")", "{", "offset_rtx", "=", "gen_rtx_REG", "(", "Pmode", ",", "FIXED_SCRATCH", ")", ";", "emit_move_insn", "(", "offset_rtx", ",", "int_rtx", ")", ";", "}", "else", "offset_rtx", "=", "int_rtx", ";", "return", "gen_frame_mem", "(", "mode", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "reg", ",", "offset_rtx", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "an", "offset", "memory", "reference", "suitable", "for", "a", "frame", "store", ",", "while", "converting", "to", "a", "valid", "addressing", "mode", "."], "TS_V_token": ["powerpcspe"], "File": "powerpcspe", "Func": "gen_frame_mem_offset", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2872, "Length": 90, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "rs6000_emit_sISEL", "(", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "rtx", "operands", "[", "]", ")", "{", "rs6000_emit_int_cmove", "(", "operands", "[", "0", "]", ",", "operands", "[", "1", "]", ",", "const1_rtx", ",", "const0_rtx", ")", ";", "}", ""], "natrual_language": ["Emit", "the", "RTL", "for", "an", "sISEL", "pattern", "."], "TS_V_token": ["rs6000", "0", "1"], "File": "rs60004", "Func": "rs6000_emit_sISEL", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2873, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "mmix_eh_return_stackadj_rtx", "(", "void", ")", "{", "return", "gen_rtx_REG", "(", "Pmode", ",", "MMIX_EH_RETURN_STACKADJ_REGNUM", ")", ";", "}", ""], "natrual_language": ["EH_RETURN_STACKADJ_RTX", "."], "TS_V_token": ["mmix"], "File": "mmix", "Func": "mmix_eh_return_stackadj_rtx", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2874, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "CheckReturn", "(", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "ArgsFlags", ",", "CCAssignFn", "Fn", ")", "{", "PreAnalyzeReturnForF128", "(", "ArgsFlags", ")", ";", "bool", "Return", "=", "CCState", "::", "CheckReturn", "(", "ArgsFlags", ",", "Fn", ")", ";", "OriginalArgWasF128", ".", "clear", "(", ")", ";", "return", "Return", ";", "}", ""], "natrual_language": ["CheckReturn", "-", "Analyze", "the", "return", "values", "of", "a", "function", ",", "returning", "true", "if", "the", "return", "can", "be", "performed", "without", "sret-demotion", ",", "and", "false", "otherwise", "."], "TS_V_token": ["Mips", "ISD::OutputArg"], "File": "MipsISelLowering127", "Func": "CheckReturn", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2875, "Length": 44, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_init_fpsr_fpcr_builtins", "(", "void", ")", "{", "tree", "ftype_set", "=", "build_function_type_list", "(", "void_type_node", ",", "unsigned_type_node", ",", "NULL", ")", ";", "tree", "ftype_get", "=", "build_function_type_list", "(", "unsigned_type_node", ",", "NULL", ")", ";", "aarch64_builtin_decls", "[", "AARCH64_BUILTIN_GET_FPCR", "]", "=", "aarch64_general_add_builtin", "(", "\"__builtin_aarch64_get_fpcr\"", ",", "ftype_get", ",", "AARCH64_BUILTIN_GET_FPCR", ")", ";", "aarch64_builtin_decls", "[", "AARCH64_BUILTIN_SET_FPCR", "]", "=", "aarch64_general_add_builtin", "(", "\"__builtin_aarch64_set_fpcr\"", ",", "ftype_set", ",", "AARCH64_BUILTIN_SET_FPCR", ")", ";", "aarch64_builtin_decls", "[", "AARCH64_BUILTIN_GET_FPSR", "]", "=", "aarch64_general_add_builtin", "(", "\"__builtin_aarch64_get_fpsr\"", ",", "ftype_get", ",", "AARCH64_BUILTIN_GET_FPSR", ")", ";", "aarch64_builtin_decls", "[", "AARCH64_BUILTIN_SET_FPSR", "]", "=", "aarch64_general_add_builtin", "(", "\"__builtin_aarch64_set_fpsr\"", ",", "ftype_set", ",", "AARCH64_BUILTIN_SET_FPSR", ")", ";", "ftype_set", "=", "build_function_type_list", "(", "void_type_node", ",", "long_long_unsigned_type_node", ",", "NULL", ")", ";", "ftype_get", "=", "build_function_type_list", "(", "long_long_unsigned_type_node", ",", "NULL", ")", ";", "aarch64_builtin_decls", "[", "AARCH64_BUILTIN_GET_FPCR64", "]", "=", "aarch64_general_add_builtin", "(", "\"__builtin_aarch64_get_fpcr64\"", ",", "ftype_get", ",", "AARCH64_BUILTIN_GET_FPCR64", ")", ";", "aarch64_builtin_decls", "[", "AARCH64_BUILTIN_SET_FPCR64", "]", "=", "aarch64_general_add_builtin", "(", "\"__builtin_aarch64_set_fpcr64\"", ",", "ftype_set", ",", "AARCH64_BUILTIN_SET_FPCR64", ")", ";", "aarch64_builtin_decls", "[", "AARCH64_BUILTIN_GET_FPSR64", "]", "=", "aarch64_general_add_builtin", "(", "\"__builtin_aarch64_get_fpsr64\"", ",", "ftype_get", ",", "AARCH64_BUILTIN_GET_FPSR64", ")", ";", "aarch64_builtin_decls", "[", "AARCH64_BUILTIN_SET_FPSR64", "]", "=", "aarch64_general_add_builtin", "(", "\"__builtin_aarch64_set_fpsr64\"", ",", "ftype_set", ",", "AARCH64_BUILTIN_SET_FPSR64", ")", ";", "}", ""], "natrual_language": ["Initialize", "fpsr", "fpcr", "getters", "and", "setters", "."], "TS_V_token": ["aarch64", "\"__builtin_aarch64_get_fpcr\"", "\"__builtin_aarch64_set_fpcr\"", "\"__builtin_aarch64_get_fpsr\"", "\"__builtin_aarch64_set_fpsr\"", "\"__builtin_aarch64_get_fpcr64\"", "\"__builtin_aarch64_set_fpcr64\"", "\"__builtin_aarch64_get_fpsr64\"", "\"__builtin_aarch64_set_fpsr64\""], "File": "aarch64-builtins", "Func": "aarch64_init_fpsr_fpcr_builtins", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2876, "Length": 162, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "aarch64_feature_flags", "get_flags_off", "(", "aarch64_feature_flags", "mask", ")", "{", "return", "(", "0", "|", "(", "feature_deps", "::", "IDENT", "(", ")", ".", "enable", "&", "mask", "?", "AARCH64_FL_", "##", "IDENT", ":", "0", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "set", "of", "all", "features", "that", "would", "need", "to", "be", "disabled", "if", "the", "features", "in", "MASK", "are", "disabled", ".", "Note", "that", "the", "size", "of", "the", "expression", "varies", "linearly", "with", "the", "number", "of", "features", ",", "which", "means", "that", "invoking", "this", "function", "once", "per", "feature", "is", "quadratic", "in", "the", "number", "of", "features", ".", "However", ",", "collecting", "the", "same", "information", "at", "compiler", "start-up", "is", "likely", "to", "be", "quadratic", "too", ",", "so", "we", "'re", "better", "off", "paying", "the", "cost", "once", "per", "compiler", "build", "rather", "than", "once", "per", "compiler", "run", "."], "TS_V_token": ["aarch64", "0", "0"], "File": "aarch64-feature-deps", "Func": "get_flags_off", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2877, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_option_save", "(", "struct", "cl_target_option", "*", "ptr", ",", "struct", "gcc_options", "*", "opts", ")", "{", "ptr", "->", "x_aarch64_override_tune_string", "=", "opts", "->", "x_aarch64_override_tune_string", ";", "ptr", "->", "x_aarch64_branch_protection_string", "=", "opts", "->", "x_aarch64_branch_protection_string", ";", "}", ""], "natrual_language": ["Implement", "TARGET_OPTION_SAVE", "."], "TS_V_token": ["aarch64"], "File": "aarch64", "Func": "aarch64_option_save", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2878, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "symbol_mentioned_p", "(", "rtx", "x", ")", "{", "const", "char", "*", "fmt", ";", "int", "i", ";", "if", "(", "SYMBOL_REF_P", "(", "x", ")", ")", "return", "1", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "UNSPEC", "&&", "XINT", "(", "x", ",", "1", ")", "==", "UNSPEC_TLS", ")", "return", "0", ";", "fmt", "=", "GET_RTX_FORMAT", "(", "GET_CODE", "(", "x", ")", ")", ";", "for", "(", "i", "=", "GET_RTX_LENGTH", "(", "GET_CODE", "(", "x", ")", ")", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "if", "(", "fmt", "[", "i", "]", "==", "'E'", ")", "{", "int", "j", ";", "for", "(", "j", "=", "XVECLEN", "(", "x", ",", "i", ")", "-", "1", ";", "j", ">=", "0", ";", "j", "--", ")", "if", "(", "symbol_mentioned_p", "(", "XVECEXP", "(", "x", ",", "i", ",", "j", ")", ")", ")", "return", "1", ";", "}", "else", "if", "(", "fmt", "[", "i", "]", "==", "'e'", "&&", "symbol_mentioned_p", "(", "XEXP", "(", "x", ",", "i", ")", ")", ")", "return", "1", ";", "}", "return", "0", ";", "}", ""], "natrual_language": ["Return", "TRUE", "if", "X", "references", "a", "SYMBOL_REF", "."], "TS_V_token": ["arm", "1", "1", "0", "1", "0", "1", "0", "1", "1", "0"], "File": "arm", "Func": "symbol_mentioned_p", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2879, "Length": 157, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "VETargetLowering", "::", "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", ",", "getReturnCC", "(", "CallConv", ")", ")", ";", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", "(", "1", ",", "Chain", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Can only return in registers!\"", ")", ";", "assert", "(", "!", "VA", ".", "needsCustom", "(", ")", "&&", "\"Unexpected custom lowering\"", ")", ";", "SDValue", "OutVal", "=", "OutVals", "[", "i", "]", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "case", "CCValAssign", "::", "Full", ":", "break", ";", "case", "CCValAssign", "::", "SExt", ":", "OutVal", "=", "DAG", ".", "getNode", "(", "ISD", "::", "SIGN_EXTEND", ",", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "OutVal", ")", ";", "break", ";", "case", "CCValAssign", "::", "ZExt", ":", "OutVal", "=", "DAG", ".", "getNode", "(", "ISD", "::", "ZERO_EXTEND", ",", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "OutVal", ")", ";", "break", ";", "case", "CCValAssign", "::", "AExt", ":", "OutVal", "=", "DAG", ".", "getNode", "(", "ISD", "::", "ANY_EXTEND", ",", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "OutVal", ")", ";", "break", ";", "case", "CCValAssign", "::", "BCvt", ":", "{", "assert", "(", "VA", ".", "getLocVT", "(", ")", "==", "MVT", "::", "i64", ")", ";", "assert", "(", "VA", ".", "getValVT", "(", ")", "==", "MVT", "::", "f32", ")", ";", "SDValue", "Undef", "=", "SDValue", "(", "DAG", ".", "getMachineNode", "(", "TargetOpcode", "::", "IMPLICIT_DEF", ",", "DL", ",", "MVT", "::", "i64", ")", ",", "0", ")", ";", "SDValue", "Sub_f32", "=", "DAG", ".", "getTargetConstant", "(", "VE", "::", "sub_f32", ",", "DL", ",", "MVT", "::", "i32", ")", ";", "OutVal", "=", "SDValue", "(", "DAG", ".", "getMachineNode", "(", "TargetOpcode", "::", "INSERT_SUBREG", ",", "DL", ",", "MVT", "::", "i64", ",", "Undef", ",", "OutVal", ",", "Sub_f32", ")", ",", "0", ")", ";", "break", ";", "}", "default", ":", "llvm_unreachable", "(", "\"Unknown loc info!\"", ")", ";", "}", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "VA", ".", "getLocReg", "(", ")", ",", "OutVal", ",", "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", "(", "VEISD", "::", "RET_FLAG", ",", "DL", ",", "MVT", "::", "Other", ",", "RetOps", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["VE", "VE", "ISD::OutputArg", "16", "4", "1", "0", "\"Can only return in registers!\"", "\"Unexpected custom lowering\"", "ISD::SIGN_EXTEND", "ISD::ZERO_EXTEND", "ISD::ANY_EXTEND", "MVT::i64", "MVT::f32", "MVT::i64", "0", "VE::sub_f32", "MVT::i32", "MVT::i64", "0", "\"Unknown loc info!\"", "1", "0", "VEISD::RET_FLAG", "MVT::Other"], "File": "VEISelLowering11", "Func": "LowerReturn", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2880, "Length": 469, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SparcDAGToDAGISel", "::", "SelectInlineAsmMemoryOperand", "(", "const", "SDValue", "&", "Op", ",", "char", "ConstraintCode", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "OutOps", ")", "{", "SDValue", "Op0", ",", "Op1", ";", "switch", "(", "ConstraintCode", ")", "{", "default", ":", "return", "true", ";", "case", "'m'", ":", "if", "(", "!", "SelectADDRrr", "(", "Op", ",", "Op0", ",", "Op1", ")", ")", "SelectADDRri", "(", "Op", ",", "Op0", ",", "Op1", ")", ";", "break", ";", "}", "OutOps", ".", "push_back", "(", "Op0", ")", ";", "OutOps", ".", "push_back", "(", "Op1", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["SelectInlineAsmMemoryOperand", "-", "Select", "the", "specified", "address", "as", "a", "target", "addressing", "mode", ",", "according", "to", "the", "specified", "constraint", "."], "TS_V_token": ["Sparc", "Sparc"], "File": "SparcISelDAGToDAG", "Func": "SelectInlineAsmMemoryOperand", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2881, "Length": 83, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "addExpr", "(", "MCInst", "&", "Inst", ",", "const", "MCExpr", "*", "Expr", ")", "const", "{", "if", "(", "Expr", "==", "0", ")", "Inst", ".", "addOperand", "(", "MCOperand", "::", "CreateImm", "(", "0", ")", ")", ";", "else", "if", "(", "auto", "*", "CE", "=", "dyn_cast", "<", "MCConstantExpr", ">", "(", "Expr", ")", ")", "Inst", ".", "addOperand", "(", "MCOperand", "::", "CreateImm", "(", "CE", "->", "getValue", "(", ")", ")", ")", ";", "else", "Inst", ".", "addOperand", "(", "MCOperand", "::", "CreateExpr", "(", "Expr", ")", ")", ";", "}", ""], "natrual_language": ["Add", "a", "new", "MCExpr", "operand", "."], "TS_V_token": ["SystemZ", "0", "0"], "File": "SystemZAsmParser11", "Func": "addExpr", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2882, "Length": 77, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86AsmBackend", "::", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "MCInst", "&", "Res", ")", "const", "{", "bool", "Is16BitMode", "=", "STI", ".", "getFeatureBits", "(", ")", "[", "X86", "::", "Mode16Bit", "]", ";", "unsigned", "RelaxedOp", "=", "getRelaxedOpcode", "(", "Inst", ",", "Is16BitMode", ")", ";", "if", "(", "RelaxedOp", "==", "Inst", ".", "getOpcode", "(", ")", ")", "{", "SmallString", "<", "256", ">", "Tmp", ";", "raw_svector_ostream", "OS", "(", "Tmp", ")", ";", "Inst", ".", "dump_pretty", "(", "OS", ")", ";", "OS", "<<", "\"\\n\"", ";", "report_fatal_error", "(", "\"unexpected instruction to relax: \"", "+", "OS", ".", "str", "(", ")", ")", ";", "}", "Res", "=", "Inst", ";", "Res", ".", "setOpcode", "(", "RelaxedOp", ")", ";", "}", ""], "natrual_language": ["Relax", "the", "instruction", "in", "the", "given", "fragment", "to", "the", "next", "wider", "instruction", "."], "TS_V_token": ["X86", "X86", "X86::Mode16Bit", "256", "\"\\n\"", "\"unexpected instruction to relax: \""], "File": "X86AsmBackend16", "Func": "relaxInstruction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2883, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_rtx_arith_op_extract_p", "(", "rtx", "x", ",", "scalar_int_mode", "mode", ")", "{", "if", "(", "GET_CODE", "(", "x", ")", "==", "SIGN_EXTRACT", "||", "GET_CODE", "(", "x", ")", "==", "ZERO_EXTRACT", ")", "{", "rtx", "op0", "=", "XEXP", "(", "x", ",", "0", ")", ";", "rtx", "op1", "=", "XEXP", "(", "x", ",", "1", ")", ";", "rtx", "op2", "=", "XEXP", "(", "x", ",", "2", ")", ";", "if", "(", "GET_CODE", "(", "op0", ")", "==", "MULT", "&&", "CONST_INT_P", "(", "op1", ")", "&&", "op2", "==", "const0_rtx", "&&", "CONST_INT_P", "(", "XEXP", "(", "op0", ",", "1", ")", ")", "&&", "aarch64_is_extend_from_extract", "(", "mode", ",", "XEXP", "(", "op0", ",", "1", ")", ",", "op1", ")", ")", "{", "return", "true", ";", "}", "}", "else", "if", "(", "GET_CODE", "(", "x", ")", "==", "SIGN_EXTEND", "||", "GET_CODE", "(", "x", ")", "==", "ZERO_EXTEND", ")", "return", "REG_P", "(", "XEXP", "(", "x", ",", "0", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "X", "is", "a", "zero", "or", "sign", "extract", "usable", "in", "an", "ADD", "or", "SUB", "(", "extended", "register", ")", "instruction", "."], "TS_V_token": ["aarch64", "0", "1", "2", "1", "1", "0"], "File": "aarch64", "Func": "aarch64_rtx_arith_op_extract_p", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2884, "Length": 138, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "machine_mode", "mips_preferred_simd_mode", "(", "machine_mode", "mode", ")", "{", "if", "(", "TARGET_PAIRED_SINGLE_FLOAT", "&&", "mode", "==", "SFmode", ")", "return", "V2SFmode", ";", "if", "(", "!", "ISA_HAS_MSA", ")", "return", "word_mode", ";", "switch", "(", "mode", ")", "{", "case", "QImode", ":", "return", "V16QImode", ";", "case", "HImode", ":", "return", "V8HImode", ";", "case", "SImode", ":", "return", "V4SImode", ";", "case", "DImode", ":", "return", "V2DImode", ";", "case", "SFmode", ":", "return", "V4SFmode", ";", "case", "DFmode", ":", "return", "V2DFmode", ";", "default", ":", "break", ";", "}", "return", "word_mode", ";", "}", ""], "natrual_language": ["Implement", "TARGET_VECTORIZE_PREFERRED_SIMD_MODE", "."], "TS_V_token": ["mips"], "File": "mips6", "Func": "mips_preferred_simd_mode", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2885, "Length": 77, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ix86_nsaved_regs", "(", "void", ")", "{", "int", "nregs", "=", "0", ";", "int", "regno", ";", "for", "(", "regno", "=", "0", ";", "regno", "<", "FIRST_PSEUDO_REGISTER", ";", "regno", "++", ")", "if", "(", "GENERAL_REGNO_P", "(", "regno", ")", "&&", "ix86_save_reg", "(", "regno", ",", "true", ",", "true", ")", ")", "nregs", "++", ";", "return", "nregs", ";", "}", ""], "natrual_language": ["Return", "number", "of", "registers", "to", "be", "saved", "on", "the", "stack", "."], "TS_V_token": ["i386", "0", "0"], "File": "i386", "Func": "ix86_nsaved_regs", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2886, "Length": 51, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Value", "*", "PPCTargetLowering", "::", "emitMaskedAtomicCmpXchgIntrinsic", "(", "IRBuilderBase", "&", "Builder", ",", "AtomicCmpXchgInst", "*", "CI", ",", "Value", "*", "AlignedAddr", ",", "Value", "*", "CmpVal", ",", "Value", "*", "NewVal", ",", "Value", "*", "Mask", ",", "AtomicOrdering", "Ord", ")", "const", "{", "assert", "(", "EnableQuadwordAtomics", "&&", "Subtarget", ".", "hasQuadwordAtomics", "(", ")", "&&", "\"Only support quadword now\"", ")", ";", "Module", "*", "M", "=", "Builder", ".", "GetInsertBlock", "(", ")", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "Type", "*", "ValTy", "=", "CmpVal", "->", "getType", "(", ")", ";", "assert", "(", "ValTy", "->", "getPrimitiveSizeInBits", "(", ")", "==", "128", ")", ";", "Function", "*", "IntCmpXchg", "=", "Intrinsic", "::", "getDeclaration", "(", "M", ",", "Intrinsic", "::", "ppc_cmpxchg_i128", ")", ";", "Type", "*", "Int64Ty", "=", "Type", "::", "getInt64Ty", "(", "M", "->", "getContext", "(", ")", ")", ";", "Value", "*", "CmpLo", "=", "Builder", ".", "CreateTrunc", "(", "CmpVal", ",", "Int64Ty", ",", "\"cmp_lo\"", ")", ";", "Value", "*", "CmpHi", "=", "Builder", ".", "CreateTrunc", "(", "Builder", ".", "CreateLShr", "(", "CmpVal", ",", "64", ")", ",", "Int64Ty", ",", "\"cmp_hi\"", ")", ";", "Value", "*", "NewLo", "=", "Builder", ".", "CreateTrunc", "(", "NewVal", ",", "Int64Ty", ",", "\"new_lo\"", ")", ";", "Value", "*", "NewHi", "=", "Builder", ".", "CreateTrunc", "(", "Builder", ".", "CreateLShr", "(", "NewVal", ",", "64", ")", ",", "Int64Ty", ",", "\"new_hi\"", ")", ";", "Value", "*", "Addr", "=", "Builder", ".", "CreateBitCast", "(", "AlignedAddr", ",", "Type", "::", "getInt8PtrTy", "(", "M", "->", "getContext", "(", ")", ")", ")", ";", "emitLeadingFence", "(", "Builder", ",", "CI", ",", "Ord", ")", ";", "Value", "*", "LoHi", "=", "Builder", ".", "CreateCall", "(", "IntCmpXchg", ",", "{", "Addr", ",", "CmpLo", ",", "CmpHi", ",", "NewLo", ",", "NewHi", "}", ")", ";", "emitTrailingFence", "(", "Builder", ",", "CI", ",", "Ord", ")", ";", "Value", "*", "Lo", "=", "Builder", ".", "CreateExtractValue", "(", "LoHi", ",", "0", ",", "\"lo\"", ")", ";", "Value", "*", "Hi", "=", "Builder", ".", "CreateExtractValue", "(", "LoHi", ",", "1", ",", "\"hi\"", ")", ";", "Lo", "=", "Builder", ".", "CreateZExt", "(", "Lo", ",", "ValTy", ",", "\"lo64\"", ")", ";", "Hi", "=", "Builder", ".", "CreateZExt", "(", "Hi", ",", "ValTy", ",", "\"hi64\"", ")", ";", "return", "Builder", ".", "CreateOr", "(", "Lo", ",", "Builder", ".", "CreateShl", "(", "Hi", ",", "ConstantInt", "::", "get", "(", "ValTy", ",", "64", ")", ")", ",", "\"val64\"", ")", ";", "}", ""], "natrual_language": ["Perform", "a", "masked", "cmpxchg", "using", "a", "target-specific", "intrinsic", "."], "TS_V_token": ["PowerPC", "PPC", "\"Only support quadword now\"", "128", "Intrinsic::getDeclaration", "Intrinsic::ppc_cmpxchg_i128", "\"cmp_lo\"", "64", "\"cmp_hi\"", "\"new_lo\"", "64", "\"new_hi\"", "0", "\"lo\"", "1", "\"hi\"", "\"lo64\"", "\"hi64\"", "64", "\"val64\""], "File": "PPCISelLowering11", "Func": "emitMaskedAtomicCmpXchgIntrinsic", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2887, "Length": 337, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsTargetLowering", "::", "getVectorTypeBreakdownForCallingConv", "(", "LLVMContext", "&", "Context", ",", "CallingConv", "::", "ID", "CC", ",", "EVT", "VT", ",", "EVT", "&", "IntermediateVT", ",", "unsigned", "&", "NumIntermediates", ",", "MVT", "&", "RegisterVT", ")", "const", "{", "RegisterVT", "=", "getRegisterTypeForCallingConv", "(", "Context", ",", "CC", ",", "VT", ")", ";", "IntermediateVT", "=", "RegisterVT", ";", "NumIntermediates", "=", "VT", ".", "getFixedSizeInBits", "(", ")", "<", "RegisterVT", ".", "getFixedSizeInBits", "(", ")", "?", "VT", ".", "getVectorNumElements", "(", ")", ":", "divideCeil", "(", "VT", ".", "getSizeInBits", "(", ")", ",", "RegisterVT", ".", "getSizeInBits", "(", ")", ")", ";", "return", "NumIntermediates", ";", "}", ""], "natrual_language": ["Certain", "targets", "such", "as", "MIPS", "require", "that", "some", "types", "such", "as", "vectors", "are", "always", "broken", "down", "into", "scalars", "in", "some", "contexts", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsISelLowering111", "Func": "getVectorTypeBreakdownForCallingConv", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2888, "Length": 85, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isThumb", "(", ")", "const", "{", "return", "isThumbMode", ";", "}", ""], "natrual_language": ["Tests", "whether", "the", "target", "is", "Thumb", "(", "little", "and", "big", "endian", ")", "."], "TS_V_token": ["ARM"], "File": "ARMAsmBackend (2)", "Func": "isThumb", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2889, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SparcFrameLowering", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "if", "(", "!", "hasReservedCallFrame", "(", "MF", ")", ")", "{", "MachineInstr", "&", "MI", "=", "*", "I", ";", "int", "Size", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "SP", "::", "ADJCALLSTACKDOWN", ")", "Size", "=", "-", "Size", ";", "if", "(", "Size", ")", "emitSPAdjustment", "(", "MF", ",", "MBB", ",", "I", ",", "Size", ",", "SP", "::", "ADDrr", ",", "SP", "::", "ADDri", ")", ";", "}", "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": ["Sparc", "Sparc", "0", "SP::ADJCALLSTACKDOWN", "SP", "SP::ADDrr", "SP::ADDri"], "File": "SparcFrameLowering (2)", "Func": "eliminateCallFramePseudoInstr", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2890, "Length": 99, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64SIMDInstrOpt", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "TII", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "const", "TargetSubtargetInfo", "&", "ST", "=", "MF", ".", "getSubtarget", "(", ")", ";", "const", "AArch64InstrInfo", "*", "AAII", "=", "static_cast", "<", "const", "AArch64InstrInfo", "*", ">", "(", "ST", ".", "getInstrInfo", "(", ")", ")", ";", "if", "(", "!", "AAII", ")", "return", "false", ";", "SchedModel", ".", "init", "(", "ST", ".", "getSchedModel", "(", ")", ",", "&", "ST", ",", "AAII", ")", ";", "if", "(", "!", "SchedModel", ".", "hasInstrSchedModel", "(", ")", ")", "return", "false", ";", "bool", "Changed", "=", "false", ";", "for", "(", "auto", "OptimizationKind", ":", "{", "VectorElem", ",", "Interleave", "}", ")", "{", "if", "(", "!", "shouldExitEarly", "(", "&", "MF", ",", "OptimizationKind", ")", ")", "{", "SmallVector", "<", "MachineInstr", "*", ",", "8", ">", "RemoveMIs", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "{", "for", "(", "MachineBasicBlock", "::", "iterator", "MII", "=", "MBB", ".", "begin", "(", ")", ",", "MIE", "=", "MBB", ".", "end", "(", ")", ";", "MII", "!=", "MIE", ";", ")", "{", "MachineInstr", "&", "MI", "=", "*", "MII", ";", "bool", "InstRewrite", ";", "if", "(", "OptimizationKind", "==", "VectorElem", ")", "InstRewrite", "=", "optimizeVectElement", "(", "MI", ")", ";", "else", "InstRewrite", "=", "optimizeLdStInterleave", "(", "MI", ")", ";", "if", "(", "InstRewrite", ")", "{", "RemoveMIs", ".", "push_back", "(", "&", "MI", ")", ";", "Changed", "=", "true", ";", "}", "++", "MII", ";", "}", "}", "for", "(", "MachineInstr", "*", "MI", ":", "RemoveMIs", ")", "MI", "->", "eraseFromParent", "(", ")", ";", "}", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "8"], "File": "AArch64SIMDInstrOpt2", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2891, "Length": 259, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCInstrInfo", "::", "findCommutedOpIndices", "(", "const", "MachineInstr", "&", "MI", ",", "unsigned", "&", "SrcOpIdx1", ",", "unsigned", "&", "SrcOpIdx2", ")", "const", "{", "int", "AltOpc", "=", "PPC", "::", "getAltVSXFMAOpcode", "(", "MI", ".", "getOpcode", "(", ")", ")", ";", "if", "(", "AltOpc", "==", "-", "1", ")", "return", "TargetInstrInfo", "::", "findCommutedOpIndices", "(", "MI", ",", "SrcOpIdx1", ",", "SrcOpIdx2", ")", ";", "return", "fixCommutedOpIndices", "(", "SrcOpIdx1", ",", "SrcOpIdx2", ",", "2", ",", "3", ")", ";", "}", ""], "natrual_language": ["Returns", "true", "iff", "the", "routine", "could", "find", "two", "commutable", "operands", "in", "the", "given", "machine", "instruction", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::getAltVSXFMAOpcode", "1", "2", "3"], "File": "PPCInstrInfo", "Func": "findCommutedOpIndices", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2892, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMBaseInstrInfo", "::", "isStoreToStackSlotPostFE", "(", "const", "MachineInstr", "*", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "const", "MachineMemOperand", "*", "Dummy", ";", "return", "MI", "->", "getDesc", "(", ")", ".", "mayStore", "(", ")", "&&", "hasStoreToStackSlot", "(", "MI", ",", "Dummy", ",", "FrameIndex", ")", ";", "}", ""], "natrual_language": ["isStoreToStackSlotPostFE", "-", "Check", "for", "post-frame", "ptr", "elimination", "stack", "locations", "as", "well", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMBaseInstrInfo108", "Func": "isStoreToStackSlotPostFE", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2893, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "expand_set_or_cpymem_via_rep", "(", "rtx", "destmem", ",", "rtx", "srcmem", ",", "rtx", "destptr", ",", "rtx", "srcptr", ",", "rtx", "value", ",", "rtx", "orig_value", ",", "rtx", "count", ",", "machine_mode", "mode", ",", "bool", "issetmem", ")", "{", "rtx", "destexp", ";", "rtx", "srcexp", ";", "rtx", "countreg", ";", "HOST_WIDE_INT", "rounded_count", ";", "if", "(", "mode", "==", "QImode", "&&", "CONST_INT_P", "(", "count", ")", "&&", "!", "(", "INTVAL", "(", "count", ")", "&", "3", ")", "&&", "!", "TARGET_PREFER_KNOWN_REP_MOVSB_STOSB", "&&", "(", "!", "issetmem", "||", "orig_value", "==", "const0_rtx", ")", ")", "mode", "=", "SImode", ";", "if", "(", "destptr", "!=", "XEXP", "(", "destmem", ",", "0", ")", "||", "GET_MODE", "(", "destmem", ")", "!=", "BLKmode", ")", "destmem", "=", "adjust_automodify_address_nv", "(", "destmem", ",", "BLKmode", ",", "destptr", ",", "0", ")", ";", "countreg", "=", "ix86_zero_extend_to_Pmode", "(", "scale_counter", "(", "count", ",", "GET_MODE_SIZE", "(", "mode", ")", ")", ")", ";", "if", "(", "mode", "!=", "QImode", ")", "{", "destexp", "=", "gen_rtx_ASHIFT", "(", "Pmode", ",", "countreg", ",", "GEN_INT", "(", "exact_log2", "(", "GET_MODE_SIZE", "(", "mode", ")", ")", ")", ")", ";", "destexp", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "destexp", ",", "destptr", ")", ";", "}", "else", "destexp", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "destptr", ",", "countreg", ")", ";", "if", "(", "(", "!", "issetmem", "||", "orig_value", "==", "const0_rtx", ")", "&&", "CONST_INT_P", "(", "count", ")", ")", "{", "rounded_count", "=", "ROUND_DOWN", "(", "INTVAL", "(", "count", ")", ",", "(", "HOST_WIDE_INT", ")", "GET_MODE_SIZE", "(", "mode", ")", ")", ";", "destmem", "=", "shallow_copy_rtx", "(", "destmem", ")", ";", "set_mem_size", "(", "destmem", ",", "rounded_count", ")", ";", "}", "else", "if", "(", "MEM_SIZE_KNOWN_P", "(", "destmem", ")", ")", "clear_mem_size", "(", "destmem", ")", ";", "if", "(", "issetmem", ")", "{", "value", "=", "force_reg", "(", "mode", ",", "gen_lowpart", "(", "mode", ",", "value", ")", ")", ";", "emit_insn", "(", "gen_rep_stos", "(", "destptr", ",", "countreg", ",", "destmem", ",", "value", ",", "destexp", ")", ")", ";", "}", "else", "{", "if", "(", "srcptr", "!=", "XEXP", "(", "srcmem", ",", "0", ")", "||", "GET_MODE", "(", "srcmem", ")", "!=", "BLKmode", ")", "srcmem", "=", "adjust_automodify_address_nv", "(", "srcmem", ",", "BLKmode", ",", "srcptr", ",", "0", ")", ";", "if", "(", "mode", "!=", "QImode", ")", "{", "srcexp", "=", "gen_rtx_ASHIFT", "(", "Pmode", ",", "countreg", ",", "GEN_INT", "(", "exact_log2", "(", "GET_MODE_SIZE", "(", "mode", ")", ")", ")", ")", ";", "srcexp", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "srcexp", ",", "srcptr", ")", ";", "}", "else", "srcexp", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "srcptr", ",", "countreg", ")", ";", "if", "(", "CONST_INT_P", "(", "count", ")", ")", "{", "rounded_count", "=", "ROUND_DOWN", "(", "INTVAL", "(", "count", ")", ",", "(", "HOST_WIDE_INT", ")", "GET_MODE_SIZE", "(", "mode", ")", ")", ";", "srcmem", "=", "shallow_copy_rtx", "(", "srcmem", ")", ";", "set_mem_size", "(", "srcmem", ",", "rounded_count", ")", ";", "}", "else", "{", "if", "(", "MEM_SIZE_KNOWN_P", "(", "srcmem", ")", ")", "clear_mem_size", "(", "srcmem", ")", ";", "}", "emit_insn", "(", "gen_rep_mov", "(", "destptr", ",", "destmem", ",", "srcptr", ",", "srcmem", ",", "countreg", ",", "destexp", ",", "srcexp", ")", ")", ";", "}", "}", ""], "natrual_language": ["Output", "``", "rep", ";", "mov", "''", "or", "``", "rep", ";", "stos", "''", "instruction", "depending", "on", "ISSETMEM", "argument", ".", "When", "ISSETMEM", "is", "true", ",", "arguments", "SRCMEM", "and", "SRCPTR", "are", "ignored", ".", "When", "ISSETMEM", "is", "false", ",", "arguments", "VALUE", "and", "ORIG_VALUE", "are", "ignored", ".", "For", "setmem", "case", ",", "VALUE", "is", "a", "promoted", "to", "a", "wider", "size", "ORIG_VALUE", ".", "ORIG_VALUE", "is", "the", "original", "value", "passed", "to", "memset", "to", "fill", "the", "memory", "with", ".", "Other", "arguments", "have", "same", "meaning", "as", "for", "previous", "function", "."], "TS_V_token": ["i386", "3", "0", "0", "0", "0"], "File": "i386-expand", "Func": "expand_set_or_cpymem_via_rep", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2894, "Length": 439, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mips_linked_madd_p", "(", "rtx", "prev", ",", "rtx", "insn", ")", "{", "rtx", "x", ";", "x", "=", "single_set", "(", "insn", ")", ";", "if", "(", "x", "==", "0", ")", "return", "false", ";", "x", "=", "SET_SRC", "(", "x", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "PLUS", "&&", "GET_CODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", "==", "MULT", "&&", "reg_set_p", "(", "XEXP", "(", "x", ",", "1", ")", ",", "prev", ")", ")", "return", "true", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "MINUS", "&&", "GET_CODE", "(", "XEXP", "(", "x", ",", "1", ")", ")", "==", "MULT", "&&", "reg_set_p", "(", "XEXP", "(", "x", ",", "0", ")", ",", "prev", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "INSN", "is", "a", "multiply-add", "or", "multiply-subtract", "instruction", "and", "PREV", "assigns", "to", "the", "accumulator", "operand", "."], "TS_V_token": ["mips", "0", "0", "1", "1", "0"], "File": "mips3", "Func": "mips_linked_madd_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2895, "Length": 112, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86FrameLowering", "::", "canUseAsPrologue", "(", "const", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "assert", "(", "MBB", ".", "getParent", "(", ")", "&&", "\"Block is not attached to a function!\"", ")", ";", "const", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "if", "(", "!", "MBB", ".", "isLiveIn", "(", "X86", "::", "EFLAGS", ")", ")", "return", "true", ";", "const", "X86MachineFunctionInfo", "*", "X86FI", "=", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", ";", "return", "!", "TRI", "->", "needsStackRealignment", "(", "MF", ")", "&&", "!", "X86FI", "->", "hasSwiftAsyncContext", "(", ")", ";", "}", ""], "natrual_language": ["Check", "whether", "or", "not", "the", "given", "MBB", "can", "be", "used", "as", "a", "prologue", "for", "the", "target", "."], "TS_V_token": ["X86", "X86", "\"Block is not attached to a function!\"", "X86::EFLAGS", "X86", "X86", "X86", "X86"], "File": "X86FrameLowering12", "Func": "canUseAsPrologue", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2896, "Length": 81, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "void", "*", "getAdjustedAnalysisPointer", "(", "const", "void", "*", "ID", ")", "override", "{", "if", "(", "ID", "==", "&", "TargetTransformInfo", "::", "ID", ")", "return", "(", "TargetTransformInfo", "*", ")", "this", ";", "return", "this", ";", "}", ""], "natrual_language": ["getAdjustedAnalysisPointer", "-", "This", "method", "is", "used", "when", "a", "pass", "implements", "an", "analysis", "interface", "through", "multiple", "inheritance", "."], "TS_V_token": ["AArch64"], "File": "AArch64TargetTransformInfo19", "Func": "getAdjustedAnalysisPointer", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2897, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMBaseInstrInfo", "::", "reMaterialize", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "DestReg", ",", "unsigned", "SubIdx", ",", "const", "MachineInstr", "&", "Orig", ",", "const", "TargetRegisterInfo", "&", "TRI", ")", "const", "{", "unsigned", "Opcode", "=", "Orig", ".", "getOpcode", "(", ")", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "{", "MachineInstr", "*", "MI", "=", "MBB", ".", "getParent", "(", ")", "->", "CloneMachineInstr", "(", "&", "Orig", ")", ";", "MI", "->", "substituteRegister", "(", "Orig", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ",", "DestReg", ",", "SubIdx", ",", "TRI", ")", ";", "MBB", ".", "insert", "(", "I", ",", "MI", ")", ";", "break", ";", "}", "case", "ARM", "::", "tLDRpci_pic", ":", "case", "ARM", "::", "t2LDRpci_pic", ":", "{", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "unsigned", "CPI", "=", "Orig", ".", "getOperand", "(", "1", ")", ".", "getIndex", "(", ")", ";", "unsigned", "PCLabelId", "=", "duplicateCPV", "(", "MF", ",", "CPI", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "Orig", ".", "getDebugLoc", "(", ")", ",", "get", "(", "Opcode", ")", ",", "DestReg", ")", ".", "addConstantPoolIndex", "(", "CPI", ")", ".", "addImm", "(", "PCLabelId", ")", ".", "cloneMemRefs", "(", "Orig", ")", ";", "break", ";", "}", "}", "}", ""], "natrual_language": ["Re-issue", "the", "specified", "'original", "'", "instruction", "at", "the", "specific", "location", "targeting", "a", "new", "destination", "register", "."], "TS_V_token": ["ARM", "ARM", "0", "ARM::tLDRpci_pic", "ARM::t2LDRpci_pic", "1"], "File": "ARMBaseInstrInfo1", "Func": "reMaterialize", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2898, "Length": 185, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "function_value", "(", "tree", "valtype", ",", "tree", "func", "ATTRIBUTE_UNUSED", ")", "{", "enum", "machine_mode", "valmode", ";", "if", "(", "AGGREGATE_TYPE_P", "(", "valtype", ")", "||", "TREE_CODE", "(", "valtype", ")", "==", "COMPLEX_TYPE", "||", "TREE_CODE", "(", "valtype", ")", "==", "VECTOR_TYPE", ")", "{", "if", "(", "TARGET_64BIT", ")", "{", "rtx", "loc", "[", "2", "]", ";", "int", "i", ",", "offset", "=", "0", ";", "int", "ub", "=", "int_size_in_bytes", "(", "valtype", ")", "<=", "UNITS_PER_WORD", "?", "1", ":", "2", ";", "for", "(", "i", "=", "0", ";", "i", "<", "ub", ";", "i", "++", ")", "{", "loc", "[", "i", "]", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "DImode", ",", "28", "+", "i", ")", ",", "GEN_INT", "(", "offset", ")", ")", ";", "offset", "+=", "8", ";", "}", "return", "gen_rtx_PARALLEL", "(", "BLKmode", ",", "gen_rtvec_v", "(", "ub", ",", "loc", ")", ")", ";", "}", "else", "if", "(", "int_size_in_bytes", "(", "valtype", ")", ">", "UNITS_PER_WORD", ")", "{", "rtx", "loc", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "DImode", ",", "28", ")", ",", "const0_rtx", ")", ";", "return", "gen_rtx_PARALLEL", "(", "BLKmode", ",", "gen_rtvec", "(", "1", ",", "loc", ")", ")", ";", "}", "}", "if", "(", "(", "INTEGRAL_TYPE_P", "(", "valtype", ")", "&&", "TYPE_PRECISION", "(", "valtype", ")", "<", "BITS_PER_WORD", ")", "||", "POINTER_TYPE_P", "(", "valtype", ")", ")", "valmode", "=", "word_mode", ";", "else", "valmode", "=", "TYPE_MODE", "(", "valtype", ")", ";", "if", "(", "TREE_CODE", "(", "valtype", ")", "==", "REAL_TYPE", "&&", "!", "AGGREGATE_TYPE_P", "(", "valtype", ")", "&&", "TYPE_MODE", "(", "valtype", ")", "!=", "TFmode", "&&", "!", "TARGET_SOFT_FLOAT", ")", "return", "gen_rtx_REG", "(", "valmode", ",", "32", ")", ";", "return", "gen_rtx_REG", "(", "valmode", ",", "28", ")", ";", "}", ""], "natrual_language": ["Handle", "FUNCTION_VALUE", ",", "FUNCTION_OUTGOING_VALUE", ",", "and", "LIBCALL_VALUE", "macros", ".", "For", "v9", ",", "function", "return", "values", "are", "subject", "to", "the", "same", "rules", "as", "arguments", ",", "except", "that", "up", "to", "32", "bytes", "may", "be", "returned", "in", "registers", "."], "TS_V_token": ["pa", "2", "0", "1", "2", "0", "28", "8", "28", "1", "32", "28"], "File": "pa3", "Func": "function_value", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2899, "Length": 244, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCFragment", "*", "findAssociatedFragment", "(", ")", "const", "override", "{", "return", "getSubExpr", "(", ")", "->", "findAssociatedFragment", "(", ")", ";", "}", ""], "natrual_language": ["Find", "the", "``", "associated", "section", "''", "for", "this", "expression", ",", "which", "is", "currently", "defined", "as", "the", "absolute", "section", "for", "constants", ",", "or", "otherwise", "the", "section", "associated", "with", "the", "first", "defined", "symbol", "in", "the", "expression", "."], "TS_V_token": ["CAHP"], "File": "CAHPMCExpr", "Func": "findAssociatedFragment", "Target": "CAHP", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2900, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_output_mi_thunk", "(", "FILE", "*", "file", ",", "tree", "thunk", "ATTRIBUTE_UNUSED", ",", "HOST_WIDE_INT", "delta", ",", "HOST_WIDE_INT", "vcall_offset", ",", "tree", "function", ")", "{", "int", "this_regno", "=", "R0_REGNUM", ";", "rtx", "this_rtx", ",", "temp0", ",", "temp1", ",", "addr", ",", "funexp", ";", "rtx_insn", "*", "insn", ";", "reload_completed", "=", "1", ";", "emit_note", "(", "NOTE_INSN_PROLOGUE_END", ")", ";", "if", "(", "vcall_offset", "==", "0", ")", "aarch64_add_constant", "(", "Pmode", ",", "this_regno", ",", "IP1_REGNUM", ",", "delta", ")", ";", "else", "{", "gcc_assert", "(", "(", "vcall_offset", "&", "(", "POINTER_BYTES", "-", "1", ")", ")", "==", "0", ")", ";", "this_rtx", "=", "gen_rtx_REG", "(", "Pmode", ",", "this_regno", ")", ";", "temp0", "=", "gen_rtx_REG", "(", "Pmode", ",", "IP0_REGNUM", ")", ";", "temp1", "=", "gen_rtx_REG", "(", "Pmode", ",", "IP1_REGNUM", ")", ";", "addr", "=", "this_rtx", ";", "if", "(", "delta", "!=", "0", ")", "{", "if", "(", "delta", ">=", "-", "256", "&&", "delta", "<", "256", ")", "addr", "=", "gen_rtx_PRE_MODIFY", "(", "Pmode", ",", "this_rtx", ",", "plus_constant", "(", "Pmode", ",", "this_rtx", ",", "delta", ")", ")", ";", "else", "aarch64_add_constant", "(", "Pmode", ",", "this_regno", ",", "IP1_REGNUM", ",", "delta", ")", ";", "}", "if", "(", "Pmode", "==", "ptr_mode", ")", "aarch64_emit_move", "(", "temp0", ",", "gen_rtx_MEM", "(", "ptr_mode", ",", "addr", ")", ")", ";", "else", "aarch64_emit_move", "(", "temp0", ",", "gen_rtx_ZERO_EXTEND", "(", "Pmode", ",", "gen_rtx_MEM", "(", "ptr_mode", ",", "addr", ")", ")", ")", ";", "if", "(", "vcall_offset", ">=", "-", "256", "&&", "vcall_offset", "<", "4096", "*", "POINTER_BYTES", ")", "addr", "=", "plus_constant", "(", "Pmode", ",", "temp0", ",", "vcall_offset", ")", ";", "else", "{", "aarch64_internal_mov_immediate", "(", "temp1", ",", "GEN_INT", "(", "vcall_offset", ")", ",", "true", ",", "Pmode", ")", ";", "addr", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "temp0", ",", "temp1", ")", ";", "}", "if", "(", "Pmode", "==", "ptr_mode", ")", "aarch64_emit_move", "(", "temp1", ",", "gen_rtx_MEM", "(", "ptr_mode", ",", "addr", ")", ")", ";", "else", "aarch64_emit_move", "(", "temp1", ",", "gen_rtx_SIGN_EXTEND", "(", "Pmode", ",", "gen_rtx_MEM", "(", "ptr_mode", ",", "addr", ")", ")", ")", ";", "emit_insn", "(", "gen_add2_insn", "(", "this_rtx", ",", "temp1", ")", ")", ";", "}", "if", "(", "!", "TREE_USED", "(", "function", ")", ")", "{", "assemble_external", "(", "function", ")", ";", "TREE_USED", "(", "function", ")", "=", "1", ";", "}", "funexp", "=", "XEXP", "(", "DECL_RTL", "(", "function", ")", ",", "0", ")", ";", "funexp", "=", "gen_rtx_MEM", "(", "FUNCTION_MODE", ",", "funexp", ")", ";", "insn", "=", "emit_call_insn", "(", "gen_sibcall", "(", "funexp", ",", "const0_rtx", ",", "NULL_RTX", ")", ")", ";", "SIBLING_CALL_P", "(", "insn", ")", "=", "1", ";", "insn", "=", "get_insns", "(", ")", ";", "shorten_branches", "(", "insn", ")", ";", "final_start_function", "(", "insn", ",", "file", ",", "1", ")", ";", "final", "(", "insn", ",", "file", ",", "1", ")", ";", "final_end_function", "(", ")", ";", "reload_completed", "=", "0", ";", "}", ""], "natrual_language": ["Output", "code", "to", "add", "DELTA", "to", "the", "first", "argument", ",", "and", "then", "jump", "to", "FUNCTION", ".", "Used", "for", "C++", "multiple", "inheritance", "."], "TS_V_token": ["aarch64", "1", "0", "1", "0", "0", "256", "256", "256", "4096", "1", "0", "1", "1", "1", "0"], "File": "aarch644", "Func": "aarch64_output_mi_thunk", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2901, "Length": 402, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86FastISel", "::", "fastSelectInstruction", "(", "const", "Instruction", "*", "I", ")", "{", "switch", "(", "I", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "Instruction", "::", "Load", ":", "return", "X86SelectLoad", "(", "I", ")", ";", "case", "Instruction", "::", "Store", ":", "return", "X86SelectStore", "(", "I", ")", ";", "case", "Instruction", "::", "Ret", ":", "return", "X86SelectRet", "(", "I", ")", ";", "case", "Instruction", "::", "ICmp", ":", "case", "Instruction", "::", "FCmp", ":", "return", "X86SelectCmp", "(", "I", ")", ";", "case", "Instruction", "::", "ZExt", ":", "return", "X86SelectZExt", "(", "I", ")", ";", "case", "Instruction", "::", "Br", ":", "return", "X86SelectBranch", "(", "I", ")", ";", "case", "Instruction", "::", "LShr", ":", "case", "Instruction", "::", "AShr", ":", "case", "Instruction", "::", "Shl", ":", "return", "X86SelectShift", "(", "I", ")", ";", "case", "Instruction", "::", "SDiv", ":", "case", "Instruction", "::", "UDiv", ":", "case", "Instruction", "::", "SRem", ":", "case", "Instruction", "::", "URem", ":", "return", "X86SelectDivRem", "(", "I", ")", ";", "case", "Instruction", "::", "Select", ":", "return", "X86SelectSelect", "(", "I", ")", ";", "case", "Instruction", "::", "Trunc", ":", "return", "X86SelectTrunc", "(", "I", ")", ";", "case", "Instruction", "::", "FPExt", ":", "return", "X86SelectFPExt", "(", "I", ")", ";", "case", "Instruction", "::", "FPTrunc", ":", "return", "X86SelectFPTrunc", "(", "I", ")", ";", "case", "Instruction", "::", "IntToPtr", ":", "case", "Instruction", "::", "PtrToInt", ":", "{", "EVT", "SrcVT", "=", "TLI", ".", "getValueType", "(", "I", "->", "getOperand", "(", "0", ")", "->", "getType", "(", ")", ")", ";", "EVT", "DstVT", "=", "TLI", ".", "getValueType", "(", "I", "->", "getType", "(", ")", ")", ";", "if", "(", "DstVT", ".", "bitsGT", "(", "SrcVT", ")", ")", "return", "X86SelectZExt", "(", "I", ")", ";", "if", "(", "DstVT", ".", "bitsLT", "(", "SrcVT", ")", ")", "return", "X86SelectTrunc", "(", "I", ")", ";", "unsigned", "Reg", "=", "getRegForValue", "(", "I", "->", "getOperand", "(", "0", ")", ")", ";", "if", "(", "Reg", "==", "0", ")", "return", "false", ";", "updateValueMap", "(", "I", ",", "Reg", ")", ";", "return", "true", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["This", "method", "is", "called", "by", "target-independent", "code", "when", "the", "normal", "FastISel", "process", "fails", "to", "select", "an", "instruction", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "0", "X86", "X86", "0", "0"], "File": "X86FastISel110", "Func": "fastSelectInstruction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2902, "Length": 298, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64StorePairSuppress", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "const", "TargetSubtargetInfo", "&", "ST", "=", "MF", ".", "getSubtarget", "(", ")", ";", "TII", "=", "static_cast", "<", "const", "AArch64InstrInfo", "*", ">", "(", "ST", ".", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "ST", ".", "getRegisterInfo", "(", ")", ";", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "SchedModel", ".", "init", "(", "&", "ST", ")", ";", "Traces", "=", "&", "getAnalysis", "<", "MachineTraceMetrics", ">", "(", ")", ";", "MinInstr", "=", "nullptr", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"*** \"", "<<", "getPassName", "(", ")", "<<", "\": \"", "<<", "MF", ".", "getName", "(", ")", "<<", "'\\n'", ")", ";", "if", "(", "!", "SchedModel", ".", "hasInstrSchedModel", "(", ")", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\" Skipping pass: no machine model present.\\n\"", ")", ";", "return", "false", ";", "}", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "{", "bool", "SuppressSTP", "=", "false", ";", "unsigned", "PrevBaseReg", "=", "0", ";", "for", "(", "auto", "&", "MI", ":", "MBB", ")", "{", "if", "(", "!", "isNarrowFPStore", "(", "MI", ")", ")", "continue", ";", "const", "MachineOperand", "*", "BaseOp", ";", "int64_t", "Offset", ";", "if", "(", "TII", "->", "getMemOperandWithOffset", "(", "MI", ",", "BaseOp", ",", "Offset", ",", "TRI", ")", "&&", "BaseOp", "->", "isReg", "(", ")", ")", "{", "Register", "BaseReg", "=", "BaseOp", "->", "getReg", "(", ")", ";", "if", "(", "PrevBaseReg", "==", "BaseReg", ")", "{", "if", "(", "!", "SuppressSTP", "&&", "shouldAddSTPToBlock", "(", "MI", ".", "getParent", "(", ")", ")", ")", "break", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Unpairing store \"", "<<", "MI", "<<", "\"\\n\"", ")", ";", "SuppressSTP", "=", "true", ";", "TII", "->", "suppressLdStPair", "(", "MI", ")", ";", "}", "PrevBaseReg", "=", "BaseReg", ";", "}", "else", "PrevBaseReg", "=", "0", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "\"*** \"", "\": \"", "\" Skipping pass: no machine model present.\\n\"", "0", "\"Unpairing store \"", "\"\\n\"", "0"], "File": "AArch64StorePairSuppress24", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2903, "Length": 277, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "direct_return", "(", ")", "{", "return", "(", "reload_completed", "&&", "xstormy16_compute_stack_layout", "(", ")", ".", "frame_size", "==", "0", ")", ";", "}", ""], "natrual_language": ["Return", "non-zero", "if", "this", "function", "is", "known", "to", "have", "a", "null", "epilogue", "."], "TS_V_token": ["stormy16", "0"], "File": "stormy162", "Func": "direct_return", "Target": "stormy16", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2904, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int64_t", "mmix_intval", "(", "const_rtx", "x", ")", "{", "if", "(", "GET_CODE", "(", "x", ")", "==", "CONST_INT", ")", "return", "INTVAL", "(", "x", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "CONST_DOUBLE", "&&", "GET_MODE", "(", "x", ")", "==", "VOIDmode", ")", "return", "CONST_DOUBLE_HIGH", "(", "x", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "CONST_DOUBLE", ")", "{", "REAL_VALUE_TYPE", "value", ";", "REAL_VALUE_FROM_CONST_DOUBLE", "(", "value", ",", "x", ")", ";", "if", "(", "GET_MODE", "(", "x", ")", "==", "DFmode", ")", "{", "long", "bits", "[", "2", "]", ";", "REAL_VALUE_TO_TARGET_DOUBLE", "(", "value", ",", "bits", ")", ";", "return", "(", "(", "uint64_t", ")", "(", "unsigned", "long", ")", "bits", "[", "0", "]", "<<", "(", "uint64_t", ")", "32U", ")", "|", "(", "uint64_t", ")", "(", "unsigned", "long", ")", "bits", "[", "1", "]", ";", "}", "else", "if", "(", "GET_MODE", "(", "x", ")", "==", "SFmode", ")", "{", "long", "bits", ";", "REAL_VALUE_TO_TARGET_SINGLE", "(", "value", ",", "bits", ")", ";", "return", "(", "unsigned", "long", ")", "bits", ";", "}", "}", "fatal_insn", "(", "\"MMIX Internal: This is not a constant:\"", ",", "x", ")", ";", "}", ""], "natrual_language": ["Return", "the", "bit-value", "for", "a", "const_int", "or", "const_double", "."], "TS_V_token": ["mmix", "2", "0", "32U", "1", "\"MMIX Internal: This is not a constant:\""], "File": "mmix4", "Func": "mmix_intval", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2905, "Length": 158, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMCodeEmitter", "::", "emitInstruction", "(", "const", "MachineInstr", "&", "MI", ")", "{", "DOUT", "<<", "\"JIT: \"", "<<", "(", "void", "*", ")", "MCE", ".", "getCurrentPCValue", "(", ")", "<<", "\":\\t\"", "<<", "MI", ";", "NumEmitted", "++", ";", "switch", "(", "MI", ".", "getDesc", "(", ")", ".", "TSFlags", "&", "ARMII", "::", "FormMask", ")", "{", "default", ":", "{", "assert", "(", "0", "&&", "\"Unhandled instruction encoding format!\"", ")", ";", "break", ";", "}", "case", "ARMII", "::", "Pseudo", ":", "emitPseudoInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "DPFrm", ":", "case", "ARMII", "::", "DPSoRegFrm", ":", "emitDataProcessingInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "LdFrm", ":", "case", "ARMII", "::", "StFrm", ":", "emitLoadStoreInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "LdMiscFrm", ":", "case", "ARMII", "::", "StMiscFrm", ":", "emitMiscLoadStoreInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "LdStMulFrm", ":", "emitLoadStoreMultipleInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "MulFrm", ":", "emitMulFrmInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "ExtFrm", ":", "emitExtendInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "ArithMiscFrm", ":", "emitMiscArithInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "BrFrm", ":", "emitBranchInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "BrMiscFrm", ":", "emitMiscBranchInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "VFPUnaryFrm", ":", "case", "ARMII", "::", "VFPBinaryFrm", ":", "emitVFPArithInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "VFPConv1Frm", ":", "case", "ARMII", "::", "VFPConv2Frm", ":", "case", "ARMII", "::", "VFPConv3Frm", ":", "case", "ARMII", "::", "VFPConv4Frm", ":", "case", "ARMII", "::", "VFPConv5Frm", ":", "emitVFPConversionInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "VFPLdStFrm", ":", "emitVFPLoadStoreInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "VFPLdStMulFrm", ":", "emitVFPLoadStoreMultipleInstruction", "(", "MI", ")", ";", "break", ";", "case", "ARMII", "::", "VFPMiscFrm", ":", "emitMiscInstruction", "(", "MI", ")", ";", "break", ";", "}", "}", ""], "natrual_language": ["Targets", "should", "implement", "this", "to", "emit", "instructions", "."], "TS_V_token": ["ARM", "ARM", "\"JIT: \"", "\":\\t\"", "ARMII::FormMask", "0", "\"Unhandled instruction encoding format!\"", "ARMII::Pseudo", "ARMII::DPFrm", "ARMII::DPSoRegFrm", "ARMII::LdFrm", "ARMII::StFrm", "ARMII::LdMiscFrm", "ARMII::StMiscFrm", "ARMII::LdStMulFrm", "ARMII::MulFrm", "ARMII::ExtFrm", "ARMII::ArithMiscFrm", "ARMII::BrFrm", "ARMII::BrMiscFrm", "ARMII::VFPUnaryFrm", "ARMII::VFPBinaryFrm", "ARMII::VFPConv1Frm", "ARMII::VFPConv2Frm", "ARMII::VFPConv3Frm", "ARMII::VFPConv4Frm", "ARMII::VFPConv5Frm", "ARMII::VFPLdStFrm", "ARMII::VFPLdStMulFrm", "ARMII::VFPMiscFrm"], "File": "ARMCodeEmitter19", "Func": "emitInstruction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2906, "Length": 282, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "MipsTargetLowering", "::", "getRegForInlineAsmConstraint", "(", "const", "std", "::", "string", "&", "Constraint", ",", "EVT", "VT", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'d'", ":", "case", "'y'", ":", "case", "'r'", ":", "if", "(", "VT", "==", "MVT", "::", "i32", "||", "VT", "==", "MVT", "::", "i16", "||", "VT", "==", "MVT", "::", "i8", ")", "{", "if", "(", "Subtarget", "->", "inMips16Mode", "(", ")", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "Mips", "::", "CPU16RegsRegClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "Mips", "::", "CPURegsRegClass", ")", ";", "}", "if", "(", "VT", "==", "MVT", "::", "i64", "&&", "!", "HasMips64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "Mips", "::", "CPURegsRegClass", ")", ";", "if", "(", "VT", "==", "MVT", "::", "i64", "&&", "HasMips64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "Mips", "::", "CPU64RegsRegClass", ")", ";", "return", "std", "::", "make_pair", "(", "0u", ",", "static_cast", "<", "const", "TargetRegisterClass", "*", ">", "(", "0", ")", ")", ";", "case", "'f'", ":", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "Mips", "::", "FGR32RegClass", ")", ";", "if", "(", "(", "VT", "==", "MVT", "::", "f64", ")", "&&", "(", "!", "Subtarget", "->", "isSingleFloat", "(", ")", ")", ")", "{", "if", "(", "Subtarget", "->", "isFP64bit", "(", ")", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "Mips", "::", "FGR64RegClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "Mips", "::", "AFGR64RegClass", ")", ";", "}", "break", ";", "case", "'c'", ":", "if", "(", "VT", "==", "MVT", "::", "i32", ")", "return", "std", "::", "make_pair", "(", "(", "unsigned", ")", "Mips", "::", "T9", ",", "&", "Mips", "::", "CPURegsRegClass", ")", ";", "assert", "(", "VT", "==", "MVT", "::", "i64", "&&", "\"Unexpected type.\"", ")", ";", "return", "std", "::", "make_pair", "(", "(", "unsigned", ")", "Mips", "::", "T9_64", ",", "&", "Mips", "::", "CPU64RegsRegClass", ")", ";", "case", "'l'", ":", "if", "(", "VT", "==", "MVT", "::", "i32", ")", "return", "std", "::", "make_pair", "(", "(", "unsigned", ")", "Mips", "::", "LO", ",", "&", "Mips", "::", "HILORegClass", ")", ";", "return", "std", "::", "make_pair", "(", "(", "unsigned", ")", "Mips", "::", "LO64", ",", "&", "Mips", "::", "HILO64RegClass", ")", ";", "case", "'x'", ":", "return", "std", "::", "make_pair", "(", "0u", ",", "static_cast", "<", "const", "TargetRegisterClass", "*", ">", "(", "0", ")", ")", ";", "}", "}", "return", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "Constraint", ",", "VT", ")", ";", "}", ""], "natrual_language": ["Given", "a", "physical", "register", "constraint", "(", "e.g", "."], "TS_V_token": ["Mips", "Mips", "1", "0", "MVT::i32", "MVT::i16", "MVT::i8", "Mips", "0U", "Mips::CPU16RegsRegClass", "0U", "Mips::CPURegsRegClass", "MVT::i64", "Mips", "0U", "Mips::CPURegsRegClass", "MVT::i64", "Mips", "0U", "Mips::CPU64RegsRegClass", "0u", "0", "MVT::f32", "0U", "Mips::FGR32RegClass", "MVT::f64", "0U", "Mips::FGR64RegClass", "0U", "Mips::AFGR64RegClass", "MVT::i32", "Mips::T9", "Mips::CPURegsRegClass", "MVT::i64", "\"Unexpected type.\"", "Mips::T9_64", "Mips::CPU64RegsRegClass", "MVT::i32", "Mips::LO", "Mips::HILORegClass", "Mips::LO64", "Mips::HILO64RegClass", "0u", "0"], "File": "MipsISelLowering101", "Func": "getRegForInlineAsmConstraint", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2907, "Length": 395, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "char", "*", "elf_platform", "(", "void", ")", "{", "int", "fd", ";", "fd", "=", "open", "(", "\"/proc/self/auxv\"", ",", "O_RDONLY", ")", ";", "if", "(", "fd", "!=", "-", "1", ")", "{", "char", "buf", "[", "1024", "]", ";", "ElfW", "(", "auxv_t", ")", "*", "av", ";", "ssize_t", "n", ";", "n", "=", "read", "(", "fd", ",", "buf", ",", "sizeof", "(", "buf", ")", ")", ";", "close", "(", "fd", ")", ";", "if", "(", "n", ">", "0", ")", "{", "for", "(", "av", "=", "(", "ElfW", "(", "auxv_t", ")", "*", ")", "buf", ";", "av", "->", "a_type", "!=", "AT_NULL", ";", "++", "av", ")", "switch", "(", "av", "->", "a_type", ")", "{", "case", "AT_PLATFORM", ":", "return", "(", "const", "char", "*", ")", "av", "->", "a_un", ".", "a_val", ";", "default", ":", "break", ";", "}", "}", "}", ""], "natrual_language": ["Returns", "the", "canonical", "AT_PLATFORM", "if", "present", ",", "otherwise", "NULL", "."], "TS_V_token": ["rs6000", "\"/proc/self/auxv\"", "1", "1024", "0"], "File": "driver-rs60002", "Func": "elf_platform", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2908, "Length": 122, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "LEGInstPrinter", "::", "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": ["LEG", "LEG"], "File": "LEGInstPrinter", "Func": "printInst", "Target": "LEG", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2909, "Length": 38, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Cpu0SEFrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "getLastNonDebugInstr", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "Cpu0MachineFunctionInfo", "*", "Cpu0FI", "=", "MF", ".", "getInfo", "<", "Cpu0MachineFunctionInfo", ">", "(", ")", ";", "const", "Cpu0SEInstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "Cpu0SEInstrInfo", "*", ">", "(", "STI", ".", "getInstrInfo", "(", ")", ")", ";", "const", "Cpu0RegisterInfo", "&", "RegInfo", "=", "*", "static_cast", "<", "const", "Cpu0SERegisterInfo", "*", ">", "(", "STI", ".", "getRegisterInfo", "(", ")", ")", ";", "DebugLoc", "dl", "=", "MBBI", "->", "getDebugLoc", "(", ")", ";", "Cpu0ABIInfo", "ABI", "=", "STI", ".", "getABI", "(", ")", ";", "unsigned", "SP", "=", "Cpu0", "::", "SP", ";", "uint64_t", "StackSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "if", "(", "!", "StackSize", ")", "return", ";", "TII", ".", "adjustStackPtr", "(", "SP", ",", "StackSize", ",", "MBB", ",", "MBBI", ")", ";", "}", ""], "natrual_language": ["Insert", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["Cpu0", "Cpu0", "Cpu0", "Cpu0", "Cpu0", "Cpu0", "Cpu0", "Cpu0", "Cpu0", "Cpu0", "Cpu0::SP"], "File": "Cpu0SEFrameLowering1", "Func": "emitEpilogue", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2910, "Length": 144, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86IndirectBranchTrackingPass", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "const", "X86Subtarget", "&", "SubTarget", "=", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "auto", "&", "MMI", "=", "MF", ".", "getMMI", "(", ")", ";", "Metadata", "*", "isCFProtectionSupported", "=", "MMI", ".", "getModule", "(", ")", "->", "getModuleFlag", "(", "\"cf-protection-branch\"", ")", ";", "Metadata", "*", "FineIBT", "=", "MMI", ".", "getModule", "(", ")", "->", "getModuleFlag", "(", "\"cf-protection-fine\"", ")", ";", "const", "X86TargetMachine", "*", "TM", "=", "static_cast", "<", "const", "X86TargetMachine", "*", ">", "(", "&", "MF", ".", "getTarget", "(", ")", ")", ";", "bool", "isJITwithCET", "=", "TM", "->", "isJIT", "(", ")", ";", "bool", "isJITwithCET", "=", "false", ";", "if", "(", "!", "isCFProtectionSupported", "&&", "!", "IndirectBranchTracking", "&&", "!", "isJITwithCET", ")", "return", "false", ";", "bool", "Changed", "=", "false", ";", "TII", "=", "SubTarget", ".", "getInstrInfo", "(", ")", ";", "EndbrOpcode", "=", "SubTarget", ".", "is64Bit", "(", ")", "?", "X86", "::", "ENDBR64", ":", "X86", "::", "ENDBR32", ";", "if", "(", "FineIBT", ")", "{", "Changed", "|=", "applyFineIBT", "(", "MF", ")", ";", "FixICalls", "(", "MF", ")", ";", "FixDCalls", "(", "MF", ")", ";", "}", "else", "{", "Changed", "|=", "applyCoarseIBT", "(", "MF", ")", ";", "}", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "{", "if", "(", "MBB", ".", "hasAddressTaken", "(", ")", ")", "Changed", "|=", "addENDBR", "(", "MBB", ",", "MBB", ".", "begin", "(", ")", ")", ";", "for", "(", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "begin", "(", ")", ";", "I", "!=", "MBB", ".", "end", "(", ")", ";", "++", "I", ")", "{", "if", "(", "I", "->", "isCall", "(", ")", "&&", "IsCallReturnTwice", "(", "I", "->", "getOperand", "(", "0", ")", ")", ")", "Changed", "|=", "addENDBR", "(", "MBB", ",", "std", "::", "next", "(", "I", ")", ")", ";", "}", "if", "(", "TM", "->", "Options", ".", "ExceptionModel", "==", "ExceptionHandling", "::", "SjLj", ")", "{", "for", "(", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "begin", "(", ")", ";", "I", "!=", "MBB", ".", "end", "(", ")", ";", "++", "I", ")", "{", "if", "(", "MBB", ".", "isEHPad", "(", ")", ")", "{", "if", "(", "I", "->", "isDebugInstr", "(", ")", ")", "continue", ";", "Changed", "|=", "addENDBR", "(", "MBB", ",", "I", ")", ";", "break", ";", "}", "else", "if", "(", "I", "->", "isEHLabel", "(", ")", ")", "{", "MCSymbol", "*", "Sym", "=", "I", "->", "getOperand", "(", "0", ")", ".", "getMCSymbol", "(", ")", ";", "if", "(", "!", "MF", ".", "hasCallSiteLandingPad", "(", "Sym", ")", ")", "continue", ";", "Changed", "|=", "addENDBR", "(", "MBB", ",", "std", "::", "next", "(", "I", ")", ")", ";", "break", ";", "}", "}", "}", "else", "if", "(", "MBB", ".", "isEHPad", "(", ")", ")", "{", "for", "(", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "begin", "(", ")", ";", "I", "!=", "MBB", ".", "end", "(", ")", ";", "++", "I", ")", "{", "if", "(", "!", "I", "->", "isEHLabel", "(", ")", ")", "continue", ";", "Changed", "|=", "addENDBR", "(", "MBB", ",", "std", "::", "next", "(", "I", ")", ")", ";", "break", ";", "}", "}", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "\"cf-protection-branch\"", "\"cf-protection-fine\"", "X86", "X86", "X86::ENDBR64", "X86::ENDBR32", "0", "0"], "File": "X86IndirectBranchTracking2", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2911, "Length": 456, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "RegisterBank", "&", "AArch64RegisterBankInfo", "::", "getRegBankFromRegClass", "(", "const", "TargetRegisterClass", "&", "RC", ")", "const", "{", "switch", "(", "RC", ".", "getID", "(", ")", ")", "{", "case", "AArch64", "::", "FPR8RegClassID", ":", "case", "AArch64", "::", "FPR16RegClassID", ":", "case", "AArch64", "::", "FPR32RegClassID", ":", "case", "AArch64", "::", "FPR64RegClassID", ":", "case", "AArch64", "::", "FPR128RegClassID", ":", "case", "AArch64", "::", "FPR128_loRegClassID", ":", "case", "AArch64", "::", "DDRegClassID", ":", "case", "AArch64", "::", "DDDRegClassID", ":", "case", "AArch64", "::", "DDDDRegClassID", ":", "case", "AArch64", "::", "QQRegClassID", ":", "case", "AArch64", "::", "QQQRegClassID", ":", "case", "AArch64", "::", "QQQQRegClassID", ":", "return", "getRegBank", "(", "AArch64", "::", "FPRRegBankID", ")", ";", "case", "AArch64", "::", "GPR32commonRegClassID", ":", "case", "AArch64", "::", "GPR32RegClassID", ":", "case", "AArch64", "::", "GPR32spRegClassID", ":", "case", "AArch64", "::", "GPR32sponlyRegClassID", ":", "case", "AArch64", "::", "GPR32allRegClassID", ":", "case", "AArch64", "::", "GPR64commonRegClassID", ":", "case", "AArch64", "::", "GPR64RegClassID", ":", "case", "AArch64", "::", "GPR64spRegClassID", ":", "case", "AArch64", "::", "GPR64sponlyRegClassID", ":", "case", "AArch64", "::", "GPR64allRegClassID", ":", "case", "AArch64", "::", "GPR64noipRegClassID", ":", "case", "AArch64", "::", "GPR64common_and_GPR64noipRegClassID", ":", "case", "AArch64", "::", "GPR64noip_and_tcGPR64RegClassID", ":", "case", "AArch64", "::", "tcGPR64RegClassID", ":", "case", "AArch64", "::", "WSeqPairsClassRegClassID", ":", "case", "AArch64", "::", "XSeqPairsClassRegClassID", ":", "return", "getRegBank", "(", "AArch64", "::", "GPRRegBankID", ")", ";", "case", "AArch64", "::", "CCRRegClassID", ":", "return", "getRegBank", "(", "AArch64", "::", "CCRegBankID", ")", ";", "default", ":", "llvm_unreachable", "(", "\"Register class not supported\"", ")", ";", "}", "}", ""], "natrual_language": ["Get", "a", "register", "bank", "that", "covers", "RC", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::FPR8RegClassID", "AArch64::FPR16RegClassID", "AArch64::FPR32RegClassID", "AArch64::FPR64RegClassID", "AArch64::FPR128RegClassID", "AArch64::FPR128_loRegClassID", "AArch64::DDRegClassID", "AArch64::DDDRegClassID", "AArch64::DDDDRegClassID", "AArch64::QQRegClassID", "AArch64::QQQRegClassID", "AArch64::QQQQRegClassID", "AArch64::FPRRegBankID", "AArch64::GPR32commonRegClassID", "AArch64::GPR32RegClassID", "AArch64::GPR32spRegClassID", "AArch64::GPR32sponlyRegClassID", "AArch64::GPR32allRegClassID", "AArch64::GPR64commonRegClassID", "AArch64::GPR64RegClassID", "AArch64::GPR64spRegClassID", "AArch64::GPR64sponlyRegClassID", "AArch64::GPR64allRegClassID", "AArch64::GPR64noipRegClassID", "AArch64::GPR64common_and_GPR64noipRegClassID", "AArch64::GPR64noip_and_tcGPR64RegClassID", "AArch64::tcGPR64RegClassID", "AArch64::WSeqPairsClassRegClassID", "AArch64::XSeqPairsClassRegClassID", "AArch64::GPRRegBankID", "AArch64::CCRRegClassID", "AArch64::CCRegBankID", "\"Register class not supported\""], "File": "AArch64RegisterBankInfo", "Func": "getRegBankFromRegClass", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2912, "Length": 201, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "MipsTargetLowering", "::", "PerformDAGCombine", "(", "SDNode", "*", "N", ",", "DAGCombinerInfo", "&", "DCI", ")", "const", "{", "SelectionDAG", "&", "DAG", "=", "DCI", ".", "DAG", ";", "unsigned", "Opc", "=", "N", "->", "getOpcode", "(", ")", ";", "switch", "(", "Opc", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "SDIVREM", ":", "case", "ISD", "::", "UDIVREM", ":", "return", "performDivRemCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "SELECT", ":", "return", "performSELECTCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "MipsISD", "::", "CMovFP_F", ":", "case", "MipsISD", "::", "CMovFP_T", ":", "return", "performCMovFPCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "AND", ":", "return", "performANDCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "OR", ":", "return", "performORCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "ADD", ":", "return", "performADDCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "AssertZext", ":", "return", "performAssertZextCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "}", "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": ["Mips", "Mips", "ISD::SDIVREM", "ISD::UDIVREM", "ISD::SELECT", "MipsISD::CMovFP_F", "MipsISD::CMovFP_T", "ISD::AND", "ISD::OR", "ISD::ADD", "ISD::AssertZext"], "File": "MipsISelLowering102", "Func": "PerformDAGCombine", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2913, "Length": 177, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ix86_expand_int_vcond", "(", "rtx", "operands", "[", "]", ")", "{", "machine_mode", "data_mode", "=", "GET_MODE", "(", "operands", "[", "0", "]", ")", ";", "machine_mode", "mode", "=", "GET_MODE", "(", "operands", "[", "4", "]", ")", ";", "enum", "rtx_code", "code", "=", "GET_CODE", "(", "operands", "[", "3", "]", ")", ";", "bool", "negate", "=", "false", ";", "rtx", "x", ",", "cop0", ",", "cop1", ";", "cop0", "=", "operands", "[", "4", "]", ";", "cop1", "=", "operands", "[", "5", "]", ";", "if", "(", "(", "code", "==", "LT", "||", "code", "==", "GE", ")", "&&", "data_mode", "==", "mode", "&&", "cop1", "==", "CONST0_RTX", "(", "mode", ")", "&&", "operands", "[", "1", "+", "(", "code", "==", "LT", ")", "]", "==", "CONST0_RTX", "(", "data_mode", ")", "&&", "GET_MODE_UNIT_SIZE", "(", "data_mode", ")", ">", "1", "&&", "GET_MODE_UNIT_SIZE", "(", "data_mode", ")", "<=", "8", "&&", "(", "GET_MODE_SIZE", "(", "data_mode", ")", "==", "16", "||", "(", "TARGET_AVX2", "&&", "GET_MODE_SIZE", "(", "data_mode", ")", "==", "32", ")", ")", ")", "{", "rtx", "negop", "=", "operands", "[", "2", "-", "(", "code", "==", "LT", ")", "]", ";", "int", "shift", "=", "GET_MODE_UNIT_BITSIZE", "(", "data_mode", ")", "-", "1", ";", "if", "(", "negop", "==", "CONST1_RTX", "(", "data_mode", ")", ")", "{", "rtx", "res", "=", "expand_simple_binop", "(", "mode", ",", "LSHIFTRT", ",", "cop0", ",", "GEN_INT", "(", "shift", ")", ",", "operands", "[", "0", "]", ",", "1", ",", "OPTAB_DIRECT", ")", ";", "if", "(", "res", "!=", "operands", "[", "0", "]", ")", "emit_move_insn", "(", "operands", "[", "0", "]", ",", "res", ")", ";", "return", "true", ";", "}", "else", "if", "(", "GET_MODE_INNER", "(", "data_mode", ")", "!=", "DImode", "&&", "vector_all_ones_operand", "(", "negop", ",", "data_mode", ")", ")", "{", "rtx", "res", "=", "expand_simple_binop", "(", "mode", ",", "ASHIFTRT", ",", "cop0", ",", "GEN_INT", "(", "shift", ")", ",", "operands", "[", "0", "]", ",", "0", ",", "OPTAB_DIRECT", ")", ";", "if", "(", "res", "!=", "operands", "[", "0", "]", ")", "emit_move_insn", "(", "operands", "[", "0", "]", ",", "res", ")", ";", "return", "true", ";", "}", "}", "if", "(", "!", "nonimmediate_operand", "(", "cop1", ",", "mode", ")", ")", "cop1", "=", "force_reg", "(", "mode", ",", "cop1", ")", ";", "if", "(", "!", "general_operand", "(", "operands", "[", "1", "]", ",", "data_mode", ")", ")", "operands", "[", "1", "]", "=", "force_reg", "(", "data_mode", ",", "operands", "[", "1", "]", ")", ";", "if", "(", "!", "general_operand", "(", "operands", "[", "2", "]", ",", "data_mode", ")", ")", "operands", "[", "2", "]", "=", "force_reg", "(", "data_mode", ",", "operands", "[", "2", "]", ")", ";", "x", "=", "ix86_expand_int_sse_cmp", "(", "operands", "[", "0", "]", ",", "code", ",", "cop0", ",", "cop1", ",", "operands", "[", "1", "]", ",", "operands", "[", "2", "]", ",", "&", "negate", ")", ";", "if", "(", "!", "x", ")", "return", "false", ";", "ix86_expand_sse_movcc", "(", "operands", "[", "0", "]", ",", "x", ",", "operands", "[", "1", "+", "negate", "]", ",", "operands", "[", "2", "-", "negate", "]", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Expand", "a", "signed", "integral", "vector", "conditional", "move", "."], "TS_V_token": ["i386", "0", "4", "3", "4", "5", "1", "1", "8", "16", "32", "2", "1", "0", "1", "0", "0", "0", "0", "0", "0", "1", "1", "1", "2", "2", "2", "0", "1", "2", "0", "1", "2"], "File": "i386-expand", "Func": "ix86_expand_int_vcond", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2914, "Length": 434, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "getFramePointerSaveOffset", "(", "bool", "LP64", ",", "bool", "isMacho", ")", "{", "if", "(", "isMacho", ")", "return", "LP64", "?", "40", ":", "20", ";", "return", "-", "4U", ";", "}", ""], "natrual_language": ["getFramePointerSaveOffset", "-", "Return", "the", "previous", "frame", "offset", "to", "save", "the", "frame", "pointer", "."], "TS_V_token": ["PowerPC", "40", "20", "4U"], "File": "PPCFrameInfo", "Func": "getFramePointerSaveOffset", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2915, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "wext_odd_dep_p", "(", "rtx", "insn", ",", "rtx", "def_reg", ")", "{", "rtx", "shift_rtx", "=", "XEXP", "(", "SET_SRC", "(", "PATTERN", "(", "insn", ")", ")", ",", "0", ")", ";", "rtx", "use_reg", "=", "XEXP", "(", "shift_rtx", ",", "0", ")", ";", "rtx", "pos_rtx", "=", "XEXP", "(", "shift_rtx", ",", "1", ")", ";", "if", "(", "REG_P", "(", "pos_rtx", ")", "&&", "reg_overlap_p", "(", "def_reg", ",", "pos_rtx", ")", ")", "return", "true", ";", "if", "(", "GET_MODE", "(", "def_reg", ")", "==", "DImode", ")", "return", "reg_overlap_p", "(", "def_reg", ",", "use_reg", ")", ";", "gcc_assert", "(", "REG_P", "(", "def_reg", ")", "||", "GET_CODE", "(", "def_reg", ")", "==", "SUBREG", ")", ";", "gcc_assert", "(", "REG_P", "(", "use_reg", ")", "||", "GET_CODE", "(", "use_reg", ")", "==", "SUBREG", ")", ";", "if", "(", "REG_P", "(", "def_reg", ")", ")", "{", "if", "REG_P", "(", "use_reg", ")", "{", "if", "(", "!", "TARGET_BIG_ENDIAN", ")", "return", "REGNO", "(", "def_reg", ")", "==", "REGNO", "(", "use_reg", ")", "+", "1", ";", "else", "return", "REGNO", "(", "def_reg", ")", "==", "REGNO", "(", "use_reg", ")", ";", "}", "else", "return", "true", ";", "}", "if", "(", "GET_CODE", "(", "def_reg", ")", "==", "SUBREG", ")", "{", "if", "(", "!", "reg_overlap_p", "(", "def_reg", ",", "use_reg", ")", ")", "return", "false", ";", "if", "(", "GET_CODE", "(", "use_reg", ")", "==", "SUBREG", ")", "return", "true", ";", "if", "(", "!", "TARGET_BIG_ENDIAN", ")", "return", "SUBREG_BYTE", "(", "def_reg", ")", "==", "4", ";", "else", "return", "SUBREG_BYTE", "(", "def_reg", ")", "==", "0", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Check", "if", "INSN", "is", "a", "wext", "insn", "consuming", "DEF_REG", "."], "TS_V_token": ["nds32", "0", "0", "1", "1", "4", "0"], "File": "nds32-pipelines-auxiliary", "Func": "wext_odd_dep_p", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2916, "Length": 222, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "RegisterBankInfo", "::", "InstructionMappings", "X86RegisterBankInfo", "::", "getInstrAlternativeMappings", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "const", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "TargetSubtargetInfo", "&", "STI", "=", "MF", ".", "getSubtarget", "(", ")", ";", "const", "TargetRegisterInfo", "&", "TRI", "=", "*", "STI", ".", "getRegisterInfo", "(", ")", ";", "const", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "case", "TargetOpcode", "::", "G_LOAD", ":", "case", "TargetOpcode", "::", "G_STORE", ":", "case", "TargetOpcode", "::", "G_IMPLICIT_DEF", ":", "{", "unsigned", "Size", "=", "getSizeInBits", "(", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ",", "MRI", ",", "TRI", ")", ";", "if", "(", "Size", "!=", "32", "&&", "Size", "!=", "64", ")", "break", ";", "unsigned", "NumOperands", "=", "MI", ".", "getNumOperands", "(", ")", ";", "SmallVector", "<", "PartialMappingIdx", ",", "4", ">", "OpRegBankIdx", "(", "NumOperands", ")", ";", "getInstrPartialMappingIdxs", "(", "MI", ",", "MRI", ",", "true", ",", "OpRegBankIdx", ")", ";", "SmallVector", "<", "const", "ValueMapping", "*", ",", "8", ">", "OpdsMapping", "(", "NumOperands", ")", ";", "if", "(", "!", "getInstrValueMapping", "(", "MI", ",", "OpRegBankIdx", ",", "OpdsMapping", ")", ")", "break", ";", "const", "RegisterBankInfo", "::", "InstructionMapping", "&", "Mapping", "=", "getInstructionMapping", "(", "1", ",", "1", ",", "getOperandsMapping", "(", "OpdsMapping", ")", ",", "NumOperands", ")", ";", "InstructionMappings", "AltMappings", ";", "AltMappings", ".", "push_back", "(", "&", "Mapping", ")", ";", "return", "AltMappings", ";", "}", "default", ":", "break", ";", "}", "return", "RegisterBankInfo", "::", "getInstrAlternativeMappings", "(", "MI", ")", ";", "}", ""], "natrual_language": ["Get", "the", "alternative", "mappings", "for", "MI", "."], "TS_V_token": ["X86", "X86", "0", "32", "64", "4", "8", "1", "1"], "File": "X86RegisterBankInfo", "Func": "getInstrAlternativeMappings", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2917, "Length": 230, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "FISCTargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "NULL", ";", "case", "FISCISD", "::", "RET_FLAG", ":", "return", "\"RetFlag\"", ";", "case", "FISCISD", "::", "LOAD_SYM", ":", "return", "\"LOAD_SYM\"", ";", "case", "FISCISD", "::", "MOVEi64", ":", "return", "\"MOVEi64\"", ";", "case", "FISCISD", "::", "CALL", ":", "return", "\"CALL\"", ";", "case", "FISCISD", "::", "SELECT_CC", ":", "return", "\"SELECT_CC\"", ";", "case", "FISCISD", "::", "CMP", ":", "return", "\"CMP\"", ";", "}", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["FISC", "FISC", "FISCISD::RET_FLAG", "\"RetFlag\"", "FISCISD::LOAD_SYM", "\"LOAD_SYM\"", "FISCISD::MOVEi64", "\"MOVEi64\"", "FISCISD::CALL", "\"CALL\"", "FISCISD::SELECT_CC", "\"SELECT_CC\"", "FISCISD::CMP", "\"CMP\""], "File": "FISCISelLowering", "Func": "getTargetNodeName", "Target": "FISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2918, "Length": 72, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "Mips16InstrInfo", "::", "isLoadFromStackSlot", "(", "const", "MachineInstr", "*", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "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": ["Mips", "Mips", "0"], "File": "Mips16InstrInfo", "Func": "isLoadFromStackSlot", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2919, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsAsmParser", "::", "ParseDirective", "(", "AsmToken", "DirectiveID", ")", "{", "StringRef", "IDVal", "=", "DirectiveID", ".", "getString", "(", ")", ";", "if", "(", "IDVal", "==", "\".cpload\"", ")", "return", "parseDirectiveCPLoad", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "if", "(", "IDVal", "==", "\".dword\"", ")", "{", "parseDataDirective", "(", "8", ",", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "return", "false", ";", "}", "if", "(", "IDVal", "==", "\".ent\"", ")", "{", "Parser", ".", "Lex", "(", ")", ";", "return", "false", ";", "}", "if", "(", "IDVal", "==", "\".end\"", ")", "{", "Parser", ".", "Lex", "(", ")", ";", "return", "false", ";", "}", "if", "(", "IDVal", "==", "\".frame\"", ")", "{", "Parser", ".", "eatToEndOfStatement", "(", ")", ";", "return", "false", ";", "}", "if", "(", "IDVal", "==", "\".set\"", ")", "{", "return", "parseDirectiveSet", "(", ")", ";", "}", "if", "(", "IDVal", "==", "\".fmask\"", ")", "{", "Parser", ".", "eatToEndOfStatement", "(", ")", ";", "return", "false", ";", "}", "if", "(", "IDVal", "==", "\".mask\"", ")", "{", "Parser", ".", "eatToEndOfStatement", "(", ")", ";", "return", "false", ";", "}", "if", "(", "IDVal", "==", "\".nan\"", ")", "return", "parseDirectiveNaN", "(", ")", ";", "if", "(", "IDVal", "==", "\".gpword\"", ")", "{", "parseDirectiveGpWord", "(", ")", ";", "return", "false", ";", "}", "if", "(", "IDVal", "==", "\".gpdword\"", ")", "{", "parseDirectiveGpDWord", "(", ")", ";", "return", "false", ";", "}", "if", "(", "IDVal", "==", "\".word\"", ")", "{", "parseDataDirective", "(", "4", ",", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "return", "false", ";", "}", "if", "(", "IDVal", "==", "\".option\"", ")", "return", "parseDirectiveOption", "(", ")", ";", "if", "(", "IDVal", "==", "\".abicalls\"", ")", "{", "getTargetStreamer", "(", ")", ".", "emitDirectiveAbiCalls", "(", ")", ";", "if", "(", "Parser", ".", "getTok", "(", ")", ".", "isNot", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "{", "Error", "(", "Parser", ".", "getTok", "(", ")", ".", "getLoc", "(", ")", ",", "\"unexpected token in directive\"", ")", ";", "Parser", ".", "eatToEndOfStatement", "(", ")", ";", "}", "return", "false", ";", "}", "if", "(", "IDVal", "==", "\".cpsetup\"", ")", "return", "parseDirectiveCPSetup", "(", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["ParseDirective", "-", "Parse", "a", "target", "specific", "assembler", "directive", "This", "method", "is", "deprecated", ",", "use", "'parseDirective", "'", "instead", "."], "TS_V_token": ["Mips", "Mips", "\".cpload\"", "\".dword\"", "8", "\".ent\"", "\".end\"", "\".frame\"", "\".set\"", "\".fmask\"", "\".mask\"", "\".nan\"", "\".gpword\"", "\".gpdword\"", "\".word\"", "4", "\".option\"", "\".abicalls\"", "\"unexpected token in directive\"", "\".cpsetup\""], "File": "MipsAsmParser43", "Func": "ParseDirective", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2920, "Length": 300, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx_insn", "*", "mips_break_sequence", "(", "rtx_insn", "*", "insn", ")", "{", "rtx_insn", "*", "before", "=", "PREV_INSN", "(", "insn", ")", ";", "rtx_insn", "*", "branch", "=", "SEQ_BEGIN", "(", "insn", ")", ";", "rtx_insn", "*", "ds", "=", "SEQ_END", "(", "insn", ")", ";", "remove_insn", "(", "insn", ")", ";", "add_insn_after", "(", "ds", ",", "before", ",", "NULL", ")", ";", "add_insn_after", "(", "branch", ",", "ds", ",", "NULL", ")", ";", "return", "ds", ";", "}", ""], "natrual_language": ["Remove", "a", "SEQUENCE", "and", "replace", "it", "with", "the", "delay", "slot", "instruction", "followed", "by", "the", "branch", "and", "return", "the", "instruction", "in", "the", "delay", "slot", ".", "Return", "the", "first", "of", "the", "two", "new", "instructions", ".", "Subroutine", "of", "mips_reorg_process_insns", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_break_sequence", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2921, "Length": 64, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isLegalMaskedGather", "(", "Type", "*", "Ty", ",", "MaybeAlign", "Alignment", ")", "{", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "supports", "masked", "gather", "."], "TS_V_token": ["ARM"], "File": "ARMTargetTransformInfo35", "Func": "isLegalMaskedGather", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2922, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsAsmPrinter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "MipsFI", "=", "MF", ".", "getInfo", "<", "MipsFunctionInfo", ">", "(", ")", ";", "AsmPrinter", "::", "runOnMachineFunction", "(", "MF", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips"], "File": "MipsAsmPrinter12", "Func": "runOnMachineFunction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2923, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PadShortFunc", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "if", "(", "MF", ".", "getFunction", "(", ")", ".", "hasOptSize", "(", ")", ")", "return", "false", ";", "if", "(", "!", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "padShortFunctions", "(", ")", ")", "return", "false", ";", "TSM", ".", "init", "(", "&", "MF", ".", "getSubtarget", "(", ")", ")", ";", "auto", "*", "PSI", "=", "&", "getAnalysis", "<", "ProfileSummaryInfoWrapperPass", ">", "(", ")", ".", "getPSI", "(", ")", ";", "auto", "*", "MBFI", "=", "(", "PSI", "&&", "PSI", "->", "hasProfileSummary", "(", ")", ")", "?", "&", "getAnalysis", "<", "LazyMachineBlockFrequencyInfoPass", ">", "(", ")", ".", "getBFI", "(", ")", ":", "nullptr", ";", "ReturnBBs", ".", "clear", "(", ")", ";", "VisitedBBs", ".", "clear", "(", ")", ";", "findReturns", "(", "&", "MF", ".", "front", "(", ")", ")", ";", "bool", "MadeChange", "=", "false", ";", "for", "(", "DenseMap", "<", "MachineBasicBlock", "*", ",", "unsigned", "int", ">", "::", "iterator", "I", "=", "ReturnBBs", ".", "begin", "(", ")", ";", "I", "!=", "ReturnBBs", ".", "end", "(", ")", ";", "++", "I", ")", "{", "MachineBasicBlock", "*", "MBB", "=", "I", "->", "first", ";", "unsigned", "Cycles", "=", "I", "->", "second", ";", "bool", "OptForSize", "=", "llvm", "::", "shouldOptimizeForSize", "(", "MBB", ",", "PSI", ",", "MBFI", ")", ";", "if", "(", "OptForSize", ")", "continue", ";", "if", "(", "Cycles", "<", "Threshold", ")", "{", "assert", "(", "MBB", "->", "size", "(", ")", ">", "0", "&&", "\"Basic block should contain at least a RET but is empty\"", ")", ";", "MachineBasicBlock", "::", "iterator", "ReturnLoc", "=", "--", "MBB", "->", "end", "(", ")", ";", "while", "(", "ReturnLoc", "->", "isDebugInstr", "(", ")", ")", "--", "ReturnLoc", ";", "assert", "(", "ReturnLoc", "->", "isReturn", "(", ")", "&&", "!", "ReturnLoc", "->", "isCall", "(", ")", "&&", "\"Basic block does not end with RET\"", ")", ";", "addPadding", "(", "MBB", ",", "ReturnLoc", ",", "Threshold", "-", "Cycles", ")", ";", "NumBBsPadded", "++", ";", "MadeChange", "=", "true", ";", "}", "}", "return", "MadeChange", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "0", "\"Basic block should contain at least a RET but is empty\"", "\"Basic block does not end with RET\""], "File": "X86PadShortFunction15", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2924, "Length": 293, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "nds32_expand_triopimm_builtin", "(", "enum", "insn_code", "icode", ",", "tree", "exp", ",", "rtx", "target", ",", "bool", "return_p", ",", "const", "char", "*", "name", ")", "{", "rtx", "pat", ";", "rtx", "op0", "=", "nds32_read_argument", "(", "exp", ",", "0", ")", ";", "rtx", "op1", "=", "nds32_read_argument", "(", "exp", ",", "1", ")", ";", "rtx", "op2", "=", "nds32_read_argument", "(", "exp", ",", "2", ")", ";", "int", "op0_num", "=", "return_p", "?", "1", ":", "0", ";", "int", "op1_num", "=", "return_p", "?", "2", ":", "1", ";", "int", "op2_num", "=", "return_p", "?", "3", ":", "2", ";", "if", "(", "return_p", ")", "target", "=", "nds32_legitimize_target", "(", "icode", ",", "target", ")", ";", "if", "(", "!", "nds32_check_constant_argument", "(", "icode", ",", "op2_num", ",", "op2", ",", "name", ")", ")", "return", "NULL_RTX", ";", "op0", "=", "nds32_legitimize_argument", "(", "icode", ",", "op0_num", ",", "op0", ")", ";", "op1", "=", "nds32_legitimize_argument", "(", "icode", ",", "op1_num", ",", "op1", ")", ";", "op2", "=", "nds32_legitimize_argument", "(", "icode", ",", "op2_num", ",", "op2", ")", ";", "if", "(", "return_p", ")", "pat", "=", "GEN_FCN", "(", "icode", ")", "(", "target", ",", "op0", ",", "op1", ",", "op2", ")", ";", "else", "pat", "=", "GEN_FCN", "(", "icode", ")", "(", "op0", ",", "op1", ",", "op2", ")", ";", "if", "(", "!", "pat", ")", "return", "NULL_RTX", ";", "emit_insn", "(", "pat", ")", ";", "return", "target", ";", "}", ""], "natrual_language": ["Expand", "builtins", "that", "take", "three", "operands", "and", "the", "third", "is", "immediate", "."], "TS_V_token": ["nds32", "0", "1", "2", "1", "0", "2", "1", "3", "2"], "File": "nds32-intrinsic", "Func": "nds32_expand_triopimm_builtin", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2925, "Length": 198, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_evpc_zip", "(", "struct", "expand_vec_perm_d", "*", "d", ")", "{", "unsigned", "int", "high", ";", "poly_uint64", "nelt", "=", "d", "->", "perm", ".", "length", "(", ")", ";", "rtx", "out", ",", "in0", ",", "in1", ",", "x", ";", "machine_mode", "vmode", "=", "d", "->", "vmode", ";", "if", "(", "GET_MODE_UNIT_SIZE", "(", "vmode", ")", ">", "8", ")", "return", "false", ";", "poly_uint64", "first", "=", "d", "->", "perm", "[", "0", "]", ";", "if", "(", "(", "maybe_ne", "(", "first", ",", "0U", ")", "&&", "maybe_ne", "(", "first", "*", "2", ",", "nelt", ")", ")", "||", "!", "d", "->", "perm", ".", "series_p", "(", "0", ",", "2", ",", "first", ",", "1", ")", "||", "!", "d", "->", "perm", ".", "series_p", "(", "1", ",", "2", ",", "first", "+", "nelt", ",", "1", ")", ")", "return", "false", ";", "high", "=", "maybe_ne", "(", "first", ",", "0U", ")", ";", "if", "(", "d", "->", "testing_p", ")", "return", "true", ";", "in0", "=", "d", "->", "op0", ";", "in1", "=", "d", "->", "op1", ";", "if", "(", "BYTES_BIG_ENDIAN", "&&", "d", "->", "vec_flags", "==", "VEC_ADVSIMD", ")", "{", "x", "=", "in0", ",", "in0", "=", "in1", ",", "in1", "=", "x", ";", "high", "=", "!", "high", ";", "}", "out", "=", "d", "->", "target", ";", "emit_set_insn", "(", "out", ",", "gen_rtx_UNSPEC", "(", "vmode", ",", "gen_rtvec", "(", "2", ",", "in0", ",", "in1", ")", ",", "high", "?", "UNSPEC_ZIP2", ":", "UNSPEC_ZIP1", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Recognize", "patterns", "suitable", "for", "the", "ZIP", "instructions", "."], "TS_V_token": ["aarch64", "8", "0", "0U", "2", "0", "2", "1", "1", "2", "1", "0U", "2"], "File": "aarch64", "Func": "aarch64_evpc_zip", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2926, "Length": 214, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "EmitInstruction", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "override", "{", "if", "(", "isIndirectJump", "(", "Inst", ")", ")", "{", "if", "(", "PendingCall", ")", "report_fatal_error", "(", "\"Dangerous instruction in branch delay slot!\"", ")", ";", "sandboxIndirectJump", "(", "Inst", ",", "STI", ")", ";", "return", ";", "}", "unsigned", "AddrIdx", "=", "0", ";", "bool", "IsStore", "=", "false", ";", "bool", "IsMemAccess", "=", "isBasePlusOffsetMemoryAccess", "(", "Inst", ".", "getOpcode", "(", ")", ",", "&", "AddrIdx", ",", "&", "IsStore", ")", ";", "bool", "IsSPFirstOperand", "=", "isStackPointerFirstOperand", "(", "Inst", ")", ";", "if", "(", "IsMemAccess", "||", "IsSPFirstOperand", ")", "{", "bool", "MaskBefore", "=", "(", "IsMemAccess", "&&", "baseRegNeedsLoadStoreMask", "(", "Inst", ".", "getOperand", "(", "AddrIdx", ")", ".", "getReg", "(", ")", ")", ")", ";", "bool", "MaskAfter", "=", "IsSPFirstOperand", "&&", "!", "IsStore", ";", "if", "(", "MaskBefore", "||", "MaskAfter", ")", "{", "if", "(", "PendingCall", ")", "report_fatal_error", "(", "\"Dangerous instruction in branch delay slot!\"", ")", ";", "sandboxLoadStoreStackChange", "(", "Inst", ",", "AddrIdx", ",", "STI", ",", "MaskBefore", ",", "MaskAfter", ")", ";", "return", ";", "}", "}", "bool", "IsIndirectCall", ";", "if", "(", "isCall", "(", "Inst", ",", "&", "IsIndirectCall", ")", ")", "{", "if", "(", "PendingCall", ")", "report_fatal_error", "(", "\"Dangerous instruction in branch delay slot!\"", ")", ";", "EmitBundleLock", "(", "true", ")", ";", "if", "(", "IsIndirectCall", ")", "{", "unsigned", "TargetReg", "=", "Inst", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "emitMask", "(", "TargetReg", ",", "IndirectBranchMaskReg", ",", "STI", ")", ";", "}", "MipsELFStreamer", "::", "EmitInstruction", "(", "Inst", ",", "STI", ")", ";", "PendingCall", "=", "true", ";", "return", ";", "}", "if", "(", "PendingCall", ")", "{", "MipsELFStreamer", "::", "EmitInstruction", "(", "Inst", ",", "STI", ")", ";", "EmitBundleUnlock", "(", ")", ";", "PendingCall", "=", "false", ";", "return", ";", "}", "MipsELFStreamer", "::", "EmitInstruction", "(", "Inst", ",", "STI", ")", ";", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["Mips", "\"Dangerous instruction in branch delay slot!\"", "0", "\"Dangerous instruction in branch delay slot!\"", "\"Dangerous instruction in branch delay slot!\"", "1", "Mips", "Mips", "Mips"], "File": "MipsNaClELFStreamer18", "Func": "EmitInstruction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2927, "Length": 255, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "arm_strip_name_encoding", "(", "const", "char", "*", "name", ")", "{", "int", "skip", ";", "while", "(", "(", "skip", "=", "arm_get_strip_length", "(", "*", "name", ")", ")", ")", "name", "+=", "skip", ";", "return", "name", ";", "}", ""], "natrual_language": ["Return", "a", "pointer", "to", "a", "function", "'s", "name", "with", "any", "and", "all", "prefix", "encodings", "stripped", "from", "it", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "arm_strip_name_encoding", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2928, "Length": 34, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86FrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "MachineModuleInfo", "&", "MMI", "=", "MF", ".", "getMMI", "(", ")", ";", "const", "TargetRegisterInfo", "*", "RegInfo", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "return", "(", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "DisableFramePointerElim", "(", "MF", ")", "||", "RegInfo", "->", "needsStackRealignment", "(", "MF", ")", "||", "MFI", "->", "hasVarSizedObjects", "(", ")", "||", "MFI", "->", "isFrameAddressTaken", "(", ")", "||", "MFI", "->", "hasInlineAsmWithSPAdjust", "(", ")", "||", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", "->", "getForceFramePointer", "(", ")", "||", "MMI", ".", "callsUnwindInit", "(", ")", "||", "MMI", ".", "callsEHReturn", "(", ")", "||", "MFI", "->", "hasStackMap", "(", ")", "||", "MFI", "->", "hasPatchPoint", "(", ")", ")", ";", "}", ""], "natrual_language": ["hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86FrameLowering106", "Func": "hasFP", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2929, "Length": 128, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TTIImpl", "::", "supportsEfficientVectorElementLoadStore", "(", ")", "const", "{", "return", "false", ";", "}", ""], "natrual_language": ["If", "target", "has", "efficient", "vector", "element", "load/store", "instructions", ",", "it", "can", "return", "true", "here", "so", "that", "insertion/extraction", "costs", "are", "not", "added", "to", "the", "scalarization", "cost", "of", "a", "load/store", "."], "TS_V_token": ["X86", "X86"], "File": "X86TargetTransformInfo (2)1", "Func": "supportsEfficientVectorElementLoadStore", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2930, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "recps_type", "get_recps_type", "(", "machine_mode", "mode", ")", "{", "switch", "(", "mode", ")", "{", "case", "SFmode", ":", "return", "(", "gen_aarch64_frecpssf", ")", ";", "case", "V2SFmode", ":", "return", "(", "gen_aarch64_frecpsv2sf", ")", ";", "case", "V4SFmode", ":", "return", "(", "gen_aarch64_frecpsv4sf", ")", ";", "case", "DFmode", ":", "return", "(", "gen_aarch64_frecpsdf", ")", ";", "case", "V2DFmode", ":", "return", "(", "gen_aarch64_frecpsv2df", ")", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Select", "reciprocal", "series", "step", "insn", "depending", "on", "machine", "mode", "."], "TS_V_token": ["aarch64"], "File": "aarch644", "Func": "get_recps_type", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2931, "Length": 61, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "Cpu0TargetMachine", "&", "getTargetMachine", "(", ")", "{", "return", "static_cast", "<", "const", "Cpu0TargetMachine", "&", ">", "(", "TM", ")", ";", "}", ""], "natrual_language": ["Return", "the", "target", "machine", "(", "if", "available", ")", "."], "TS_V_token": ["Cpu0", "Cpu0", "Cpu0"], "File": "Cpu0ISelDAGToDAG", "Func": "getTargetMachine", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2932, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "pa_hpux_file_end", "(", "void", ")", "{", "unsigned", "int", "i", ";", "extern_symbol", "*", "p", ";", "if", "(", "!", "NO_DEFERRED_PROFILE_COUNTERS", ")", "output_deferred_profile_counters", "(", ")", ";", "output_deferred_plabels", "(", ")", ";", "for", "(", "i", "=", "0", ";", "vec_safe_iterate", "(", "extern_symbols", ",", "i", ",", "&", "p", ")", ";", "i", "++", ")", "{", "tree", "decl", "=", "p", "->", "decl", ";", "if", "(", "!", "TREE_ASM_WRITTEN", "(", "decl", ")", "&&", "SYMBOL_REF_REFERENCED_P", "(", "XEXP", "(", "DECL_RTL", "(", "decl", ")", ",", "0", ")", ")", ")", "ASM_OUTPUT_EXTERNAL_REAL", "(", "asm_out_file", ",", "decl", ",", "p", "->", "name", ")", ";", "}", "vec_free", "(", "extern_symbols", ")", ";", "}", ""], "natrual_language": ["Output", "text", "required", "at", "the", "end", "of", "an", "assembler", "file", ".", "This", "includes", "deferred", "plabels", "and", ".import", "directives", "for", "all", "external", "symbols", "that", "were", "actually", "referenced", "."], "TS_V_token": ["pa", "0", "0"], "File": "pa4", "Func": "pa_hpux_file_end", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2933, "Length": 94, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "output_move_quad", "(", "rtx", "*", "operands", ")", "{", "if", "(", "REG_P", "(", "operands", "[", "0", "]", ")", ")", "{", "if", "(", "MEM_P", "(", "operands", "[", "1", "]", ")", ")", "{", "switch", "(", "GET_CODE", "(", "XEXP", "(", "operands", "[", "1", "]", ",", "0", ")", ")", ")", "{", "case", "REG", ":", "output_asm_insn", "(", "\"ldmia%?\\t%m1, %M0\"", ",", "operands", ")", ";", "break", ";", "case", "LABEL_REF", ":", "case", "CONST", ":", "output_asm_insn", "(", "\"adr%?\\t%0, %1\"", ",", "operands", ")", ";", "output_asm_insn", "(", "\"ldmia%?\\t%0, %M0\"", ",", "operands", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "else", "{", "rtx", "ops", "[", "2", "]", ";", "int", "dest", ",", "src", ",", "i", ";", "gcc_assert", "(", "REG_P", "(", "operands", "[", "1", "]", ")", ")", ";", "dest", "=", "REGNO", "(", "operands", "[", "0", "]", ")", ";", "src", "=", "REGNO", "(", "operands", "[", "1", "]", ")", ";", "if", "(", "dest", "<", "src", ")", "for", "(", "i", "=", "0", ";", "i", "<", "4", ";", "i", "++", ")", "{", "ops", "[", "0", "]", "=", "gen_rtx_REG", "(", "SImode", ",", "dest", "+", "i", ")", ";", "ops", "[", "1", "]", "=", "gen_rtx_REG", "(", "SImode", ",", "src", "+", "i", ")", ";", "output_asm_insn", "(", "\"mov%?\\t%0, %1\"", ",", "ops", ")", ";", "}", "else", "for", "(", "i", "=", "3", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "ops", "[", "0", "]", "=", "gen_rtx_REG", "(", "SImode", ",", "dest", "+", "i", ")", ";", "ops", "[", "1", "]", "=", "gen_rtx_REG", "(", "SImode", ",", "src", "+", "i", ")", ";", "output_asm_insn", "(", "\"mov%?\\t%0, %1\"", ",", "ops", ")", ";", "}", "}", "}", "else", "{", "gcc_assert", "(", "MEM_P", "(", "operands", "[", "0", "]", ")", ")", ";", "gcc_assert", "(", "REG_P", "(", "operands", "[", "1", "]", ")", ")", ";", "gcc_assert", "(", "!", "reg_overlap_mentioned_p", "(", "operands", "[", "1", "]", ",", "operands", "[", "0", "]", ")", ")", ";", "switch", "(", "GET_CODE", "(", "XEXP", "(", "operands", "[", "0", "]", ",", "0", ")", ")", ")", "{", "case", "REG", ":", "output_asm_insn", "(", "\"stm%?\\t%m0, %M1\"", ",", "operands", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "return", "\"\"", ";", "}", ""], "natrual_language": ["Output", "assembler", "code", "to", "perform", "a", "quadword", "move", "insn", "with", "operands", "OPERANDS", "."], "TS_V_token": ["arm", "0", "1", "1", "0", "\"ldmia%?\\t%m1, %M0\"", "\"adr%?\\t%0, %1\"", "\"ldmia%?\\t%0, %M0\"", "2", "1", "0", "1", "0", "4", "0", "1", "\"mov%?\\t%0, %1\"", "3", "0", "0", "1", "\"mov%?\\t%0, %1\"", "0", "1", "1", "0", "0", "0", "\"stm%?\\t%m0, %M1\"", "\"\""], "File": "arm", "Func": "output_move_quad", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2934, "Length": 326, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "LoongArchDAGToDAGISel", "::", "Select", "(", "SDNode", "*", "Node", ")", "{", "if", "(", "Node", "->", "isMachineOpcode", "(", ")", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"== \"", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "dbgs", "(", ")", "<<", "\"\\n\"", ")", ";", "Node", "->", "setNodeId", "(", "-", "1", ")", ";", "return", ";", "}", "unsigned", "Opcode", "=", "Node", "->", "getOpcode", "(", ")", ";", "MVT", "GRLenVT", "=", "Subtarget", "->", "getGRLenVT", "(", ")", ";", "SDLoc", "DL", "(", "Node", ")", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "Constant", ":", "{", "int64_t", "Imm", "=", "cast", "<", "ConstantSDNode", ">", "(", "Node", ")", "->", "getSExtValue", "(", ")", ";", "SDNode", "*", "Result", "=", "nullptr", ";", "SDValue", "SrcReg", "=", "CurDAG", "->", "getRegister", "(", "LoongArch", "::", "R0", ",", "GRLenVT", ")", ";", "for", "(", "LoongArchMatInt", "::", "Inst", "&", "Inst", ":", "LoongArchMatInt", "::", "generateInstSeq", "(", "Imm", ")", ")", "{", "SDValue", "SDImm", "=", "CurDAG", "->", "getTargetConstant", "(", "Inst", ".", "Imm", ",", "DL", ",", "GRLenVT", ")", ";", "if", "(", "Inst", ".", "Opc", "==", "LoongArch", "::", "LU12I_W", ")", "Result", "=", "CurDAG", "->", "getMachineNode", "(", "LoongArch", "::", "LU12I_W", ",", "DL", ",", "GRLenVT", ",", "SDImm", ")", ";", "else", "Result", "=", "CurDAG", "->", "getMachineNode", "(", "Inst", ".", "Opc", ",", "DL", ",", "GRLenVT", ",", "SrcReg", ",", "SDImm", ")", ";", "SrcReg", "=", "SDValue", "(", "Result", ",", "0", ")", ";", "}", "ReplaceNode", "(", "Node", ",", "Result", ")", ";", "return", ";", "}", "}", "SelectCode", "(", "Node", ")", ";", "}", ""], "natrual_language": ["Main", "hook", "for", "targets", "to", "transform", "nodes", "into", "machine", "nodes", "."], "TS_V_token": ["LoongArch", "LoongArch", "\"== \"", "\"\\n\"", "1", "ISD::Constant", "LoongArch::R0", "LoongArchMatInt::Inst", "LoongArchMatInt::generateInstSeq", "LoongArch::LU12I_W", "LoongArch::LU12I_W", "0"], "File": "LoongArchISelDAGToDAG1", "Func": "Select", "Target": "LoongArch", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2935, "Length": 232, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86CallFrameOptimization", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "TII", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "TFL", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "if", "(", "!", "isLegal", "(", "MF", ")", ")", "return", "false", ";", "int", "FrameSetupOpcode", "=", "TII", "->", "getCallFrameSetupOpcode", "(", ")", ";", "bool", "Changed", "=", "false", ";", "ContextMap", "CallSeqMap", ";", "for", "(", "MachineFunction", "::", "iterator", "BB", "=", "MF", ".", "begin", "(", ")", ",", "E", "=", "MF", ".", "end", "(", ")", ";", "BB", "!=", "E", ";", "++", "BB", ")", "for", "(", "MachineBasicBlock", "::", "iterator", "I", "=", "BB", "->", "begin", "(", ")", ";", "I", "!=", "BB", "->", "end", "(", ")", ";", "++", "I", ")", "if", "(", "I", "->", "getOpcode", "(", ")", "==", "FrameSetupOpcode", ")", "{", "CallContext", "&", "Context", "=", "CallSeqMap", "[", "I", "]", ";", "collectCallInfo", "(", "MF", ",", "*", "BB", ",", "I", ",", "Context", ")", ";", "}", "if", "(", "!", "isProfitable", "(", "MF", ",", "CallSeqMap", ")", ")", "return", "false", ";", "for", "(", "auto", "CC", ":", "CallSeqMap", ")", "if", "(", "CC", ".", "second", ".", "UsePush", ")", "Changed", "|=", "adjustCallSequence", "(", "MF", ",", "CC", ".", "first", ",", "CC", ".", "second", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86"], "File": "X86CallFrameOptimization39", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2936, "Length": 203, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsSEFrameLowering", "::", "determineCalleeSaves", "(", "MachineFunction", "&", "MF", ",", "BitVector", "&", "SavedRegs", ",", "RegScavenger", "*", "RS", ")", "const", "{", "TargetFrameLowering", "::", "determineCalleeSaves", "(", "MF", ",", "SavedRegs", ",", "RS", ")", ";", "MipsFunctionInfo", "*", "MipsFI", "=", "MF", ".", "getInfo", "<", "MipsFunctionInfo", ">", "(", ")", ";", "MipsABIInfo", "ABI", "=", "STI", ".", "getABI", "(", ")", ";", "unsigned", "FP", "=", "ABI", ".", "GetFramePtr", "(", ")", ";", "unsigned", "BP", "=", "ABI", ".", "IsN64", "(", ")", "?", "Mips", "::", "S7_64", ":", "Mips", "::", "S7", ";", "if", "(", "hasFP", "(", "MF", ")", ")", "setAliasRegs", "(", "MF", ",", "SavedRegs", ",", "FP", ")", ";", "if", "(", "hasBP", "(", "MF", ")", ")", "setAliasRegs", "(", "MF", ",", "SavedRegs", ",", "BP", ")", ";", "if", "(", "MipsFI", "->", "callsEhReturn", "(", ")", ")", "MipsFI", "->", "createEhDataRegsFI", "(", ")", ";", "if", "(", "MipsFI", "->", "isISR", "(", ")", ")", "MipsFI", "->", "createISRRegFI", "(", ")", ";", "if", "(", "ExpandPseudo", "(", "MF", ")", ".", "expand", "(", ")", ")", "{", "const", "TargetRegisterClass", "*", "RC", "=", "STI", ".", "hasMips64", "(", ")", "?", "&", "Mips", "::", "GPR64RegClass", ":", "&", "Mips", "::", "GPR32RegClass", ";", "int", "FI", "=", "MF", ".", "getFrameInfo", "(", ")", "->", "CreateStackObject", "(", "RC", "->", "getSize", "(", ")", ",", "RC", "->", "getAlignment", "(", ")", ",", "false", ")", ";", "RS", "->", "addScavengingFrameIndex", "(", "FI", ")", ";", "}", "uint64_t", "MaxSPOffset", "=", "MF", ".", "getInfo", "<", "MipsFunctionInfo", ">", "(", ")", "->", "getIncomingArgSize", "(", ")", "+", "estimateStackSize", "(", "MF", ")", ";", "if", "(", "isInt", "<", "16", ">", "(", "MaxSPOffset", ")", ")", "return", ";", "const", "TargetRegisterClass", "*", "RC", "=", "ABI", ".", "ArePtrs64bit", "(", ")", "?", "&", "Mips", "::", "GPR64RegClass", ":", "&", "Mips", "::", "GPR32RegClass", ";", "int", "FI", "=", "MF", ".", "getFrameInfo", "(", ")", "->", "CreateStackObject", "(", "RC", "->", "getSize", "(", ")", ",", "RC", "->", "getAlignment", "(", ")", ",", "false", ")", ";", "RS", "->", "addScavengingFrameIndex", "(", "FI", ")", ";", "}", ""], "natrual_language": ["This", "method", "determines", "which", "of", "the", "registers", "reported", "by", "TargetRegisterInfo", ":", ":getCalleeSavedRegs", "(", ")", "should", "actually", "get", "saved", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips::S7_64", "Mips::S7", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips::GPR64RegClass", "Mips::GPR32RegClass", "Mips", "16", "Mips::GPR64RegClass", "Mips::GPR32RegClass"], "File": "MipsSEFrameLowering1", "Func": "determineCalleeSaves", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2937, "Length": 293, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "supersparc_adjust_cost", "(", "rtx_insn", "*", "insn", ",", "int", "dep_type", ",", "rtx_insn", "*", "dep_insn", ",", "int", "cost", ")", "{", "enum", "attr_type", "insn_type", ";", "if", "(", "recog_memoized", "(", "insn", ")", "<", "0", ")", "return", "cost", ";", "insn_type", "=", "get_attr_type", "(", "insn", ")", ";", "if", "(", "dep_type", "==", "0", ")", "{", "if", "(", "insn_type", "==", "TYPE_LOAD", "||", "insn_type", "==", "TYPE_FPLOAD", ")", "return", "cost", "+", "3", ";", "if", "(", "insn_type", "==", "TYPE_STORE", "||", "insn_type", "==", "TYPE_FPSTORE", ")", "{", "rtx", "pat", "=", "PATTERN", "(", "insn", ")", ";", "rtx", "dep_pat", "=", "PATTERN", "(", "dep_insn", ")", ";", "if", "(", "GET_CODE", "(", "pat", ")", "!=", "SET", "||", "GET_CODE", "(", "dep_pat", ")", "!=", "SET", ")", "return", "cost", ";", "if", "(", "rtx_equal_p", "(", "SET_DEST", "(", "dep_pat", ")", ",", "SET_SRC", "(", "pat", ")", ")", ")", "return", "cost", ";", "return", "cost", "+", "3", ";", "}", "if", "(", "insn_type", "==", "TYPE_SHIFT", ")", "return", "cost", "+", "3", ";", "}", "else", "{", "if", "(", "insn_type", "==", "TYPE_IALU", "||", "insn_type", "==", "TYPE_SHIFT", ")", "return", "0", ";", "}", "return", "cost", ";", "}", ""], "natrual_language": ["Adjust", "the", "cost", "of", "a", "scheduling", "dependency", ".", "Return", "the", "new", "cost", "of", "a", "dependency", "LINK", "or", "INSN", "on", "DEP_INSN", ".", "COST", "is", "the", "current", "cost", "."], "TS_V_token": ["sparc", "0", "0", "3", "3", "3", "0"], "File": "sparc", "Func": "supersparc_adjust_cost", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2938, "Length": 166, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTargetLowering", "::", "getPreIndexedAddressParts", "(", "SDNode", "*", "N", ",", "SDValue", "&", "Base", ",", "SDValue", "&", "Offset", ",", "ISD", "::", "MemIndexedMode", "&", "AM", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "if", "(", "DisablePPCPreinc", ")", "return", "false", ";", "SDValue", "Ptr", ";", "EVT", "VT", ";", "unsigned", "Alignment", ";", "if", "(", "LoadSDNode", "*", "LD", "=", "dyn_cast", "<", "LoadSDNode", ">", "(", "N", ")", ")", "{", "Ptr", "=", "LD", "->", "getBasePtr", "(", ")", ";", "VT", "=", "LD", "->", "getMemoryVT", "(", ")", ";", "Alignment", "=", "LD", "->", "getAlignment", "(", ")", ";", "}", "else", "if", "(", "StoreSDNode", "*", "ST", "=", "dyn_cast", "<", "StoreSDNode", ">", "(", "N", ")", ")", "{", "Ptr", "=", "ST", "->", "getBasePtr", "(", ")", ";", "VT", "=", "ST", "->", "getMemoryVT", "(", ")", ";", "Alignment", "=", "ST", "->", "getAlignment", "(", ")", ";", "}", "else", "return", "false", ";", "if", "(", "VT", ".", "isVector", "(", ")", ")", "return", "false", ";", "if", "(", "SelectAddressRegReg", "(", "Ptr", ",", "Offset", ",", "Base", ",", "DAG", ")", ")", "{", "AM", "=", "ISD", "::", "PRE_INC", ";", "return", "true", ";", "}", "if", "(", "VT", "!=", "MVT", "::", "i64", ")", "{", "if", "(", "!", "SelectAddressRegImm", "(", "Ptr", ",", "Offset", ",", "Base", ",", "DAG", ")", ")", "return", "false", ";", "}", "else", "{", "if", "(", "Alignment", "<", "4", ")", "return", "false", ";", "if", "(", "!", "SelectAddressRegImmShift", "(", "Ptr", ",", "Offset", ",", "Base", ",", "DAG", ")", ")", "return", "false", ";", "}", "if", "(", "LoadSDNode", "*", "LD", "=", "dyn_cast", "<", "LoadSDNode", ">", "(", "N", ")", ")", "{", "if", "(", "LD", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i64", "&&", "LD", "->", "getMemoryVT", "(", ")", "==", "MVT", "::", "i32", "&&", "LD", "->", "getExtensionType", "(", ")", "==", "ISD", "::", "SEXTLOAD", "&&", "isa", "<", "ConstantSDNode", ">", "(", "Offset", ")", ")", "return", "false", ";", "}", "AM", "=", "ISD", "::", "PRE_INC", ";", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "by", "value", ",", "base", "pointer", "and", "offset", "pointer", "and", "addressing", "mode", "by", "reference", "if", "the", "node", "'s", "address", "can", "be", "legally", "represented", "as", "pre-indexed", "load", "/", "store", "address", "."], "TS_V_token": ["PowerPC", "PPC", "ISD::MemIndexedMode", "PPC", "ISD::PRE_INC", "MVT::i64", "4", "0", "MVT::i64", "MVT::i32", "ISD::SEXTLOAD", "ISD::PRE_INC"], "File": "PPCISelLowering5", "Func": "getPreIndexedAddressParts", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2939, "Length": 291, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "assignValueToReg", "(", "unsigned", "ValVReg", ",", "unsigned", "PhysReg", ",", "CCValAssign", "&", "VA", ")", "override", "{", "markPhysRegUsed", "(", "PhysReg", ")", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "default", ":", "MIRBuilder", ".", "buildCopy", "(", "ValVReg", ",", "PhysReg", ")", ";", "break", ";", "case", "CCValAssign", "::", "LocInfo", "::", "SExt", ":", "case", "CCValAssign", "::", "LocInfo", "::", "ZExt", ":", "case", "CCValAssign", "::", "LocInfo", "::", "AExt", ":", "{", "auto", "Copy", "=", "MIRBuilder", ".", "buildCopy", "(", "LLT", "{", "VA", ".", "getLocVT", "(", ")", "}", ",", "PhysReg", ")", ";", "MIRBuilder", ".", "buildTrunc", "(", "ValVReg", ",", "Copy", ")", ";", "break", ";", "}", "}", "}", ""], "natrual_language": ["The", "specified", "value", "has", "been", "assigned", "to", "a", "physical", "register", ",", "handle", "the", "appropriate", "COPY", "(", "either", "to", "or", "from", ")", "and", "mark", "any", "relevant", "uses/defines", "as", "needed", "."], "TS_V_token": ["X86"], "File": "X86CallLowering20", "Func": "assignValueToReg", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2940, "Length": 97, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "Mnode", "*", "add_minipool_forward_ref", "(", "Mfix", "*", "fix", ")", "{", "Mnode", "*", "max_mp", "=", "NULL", ";", "HOST_WIDE_INT", "max_address", "=", "fix", "->", "address", "+", "fix", "->", "forwards", "-", "minipool_pad", ";", "Mnode", "*", "mp", ";", "if", "(", "minipool_vector_head", "&&", "(", "fix", "->", "address", "+", "get_attr_length", "(", "fix", "->", "insn", ")", ">=", "minipool_vector_head", "->", "max_address", "-", "fix", "->", "fix_size", ")", ")", "return", "NULL", ";", "for", "(", "mp", "=", "minipool_vector_head", ";", "mp", "!=", "NULL", ";", "mp", "=", "mp", "->", "next", ")", "{", "if", "(", "GET_CODE", "(", "fix", "->", "value", ")", "==", "GET_CODE", "(", "mp", "->", "value", ")", "&&", "fix", "->", "mode", "==", "mp", "->", "mode", "&&", "(", "!", "LABEL_P", "(", "fix", "->", "value", ")", "||", "(", "CODE_LABEL_NUMBER", "(", "fix", "->", "value", ")", "==", "CODE_LABEL_NUMBER", "(", "mp", "->", "value", ")", ")", ")", "&&", "rtx_equal_p", "(", "fix", "->", "value", ",", "mp", "->", "value", ")", ")", "{", "mp", "->", "refcount", "++", ";", "return", "move_minipool_fix_forward_ref", "(", "mp", ",", "max_mp", ",", "max_address", ")", ";", "}", "if", "(", "max_mp", "==", "NULL", "&&", "mp", "->", "max_address", ">", "max_address", ")", "max_mp", "=", "mp", ";", "if", "(", "ARM_DOUBLEWORD_ALIGN", "&&", "max_mp", "==", "NULL", "&&", "fix", "->", "fix_size", ">=", "8", "&&", "mp", "->", "fix_size", "<", "8", ")", "{", "max_mp", "=", "mp", ";", "max_address", "=", "mp", "->", "max_address", ";", "}", "}", "mp", "=", "XNEW", "(", "Mnode", ")", ";", "mp", "->", "fix_size", "=", "fix", "->", "fix_size", ";", "mp", "->", "mode", "=", "fix", "->", "mode", ";", "mp", "->", "value", "=", "fix", "->", "value", ";", "mp", "->", "refcount", "=", "1", ";", "mp", "->", "min_address", "=", "-", "65536", ";", "if", "(", "max_mp", "==", "NULL", ")", "{", "mp", "->", "max_address", "=", "max_address", ";", "mp", "->", "next", "=", "NULL", ";", "mp", "->", "prev", "=", "minipool_vector_tail", ";", "if", "(", "mp", "->", "prev", "==", "NULL", ")", "{", "minipool_vector_head", "=", "mp", ";", "minipool_vector_label", "=", "gen_label_rtx", "(", ")", ";", "}", "else", "mp", "->", "prev", "->", "next", "=", "mp", ";", "minipool_vector_tail", "=", "mp", ";", "}", "else", "{", "if", "(", "max_address", ">", "max_mp", "->", "max_address", "-", "mp", "->", "fix_size", ")", "mp", "->", "max_address", "=", "max_mp", "->", "max_address", "-", "mp", "->", "fix_size", ";", "else", "mp", "->", "max_address", "=", "max_address", ";", "mp", "->", "next", "=", "max_mp", ";", "mp", "->", "prev", "=", "max_mp", "->", "prev", ";", "max_mp", "->", "prev", "=", "mp", ";", "if", "(", "mp", "->", "prev", "!=", "NULL", ")", "mp", "->", "prev", "->", "next", "=", "mp", ";", "else", "minipool_vector_head", "=", "mp", ";", "}", "max_mp", "=", "mp", ";", "while", "(", "mp", "->", "prev", "!=", "NULL", "&&", "mp", "->", "prev", "->", "max_address", ">", "mp", "->", "max_address", "-", "mp", "->", "prev", "->", "fix_size", ")", "{", "mp", "->", "prev", "->", "max_address", "=", "mp", "->", "max_address", "-", "mp", "->", "prev", "->", "fix_size", ";", "mp", "=", "mp", "->", "prev", ";", "}", "return", "max_mp", ";", "}", ""], "natrual_language": ["Add", "a", "constant", "to", "the", "minipool", "for", "a", "forward", "reference", ".", "Returns", "the", "node", "added", "or", "NULL", "if", "the", "constant", "will", "not", "fit", "in", "this", "pool", "."], "TS_V_token": ["arm", "8", "8", "1", "65536"], "File": "arm", "Func": "add_minipool_forward_ref", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2941, "Length": 439, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "RegisterBankInfo", "::", "InstructionMapping", "X86RegisterBankInfo", "::", "getInstrMapping", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "const", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "auto", "Opc", "=", "MI", ".", "getOpcode", "(", ")", ";", "if", "(", "!", "isPreISelGenericOpcode", "(", "Opc", ")", ")", "{", "InstructionMapping", "Mapping", "=", "getInstrMappingImpl", "(", "MI", ")", ";", "if", "(", "Mapping", ".", "isValid", "(", ")", ")", "return", "Mapping", ";", "}", "switch", "(", "Opc", ")", "{", "case", "TargetOpcode", "::", "G_ADD", ":", "case", "TargetOpcode", "::", "G_SUB", ":", "return", "getSameOperandsMapping", "(", "MI", ",", "false", ")", ";", "break", ";", "case", "TargetOpcode", "::", "G_FADD", ":", "case", "TargetOpcode", "::", "G_FSUB", ":", "case", "TargetOpcode", "::", "G_FMUL", ":", "case", "TargetOpcode", "::", "G_FDIV", ":", "return", "getSameOperandsMapping", "(", "MI", ",", "true", ")", ";", "break", ";", "default", ":", "break", ";", "}", "unsigned", "NumOperands", "=", "MI", ".", "getNumOperands", "(", ")", ";", "SmallVector", "<", "PartialMappingIdx", ",", "4", ">", "OpRegBankIdx", "(", "NumOperands", ")", ";", "getInstrPartialMappingIdxs", "(", "MI", ",", "MRI", ",", "false", ",", "OpRegBankIdx", ")", ";", "SmallVector", "<", "const", "ValueMapping", "*", ",", "8", ">", "OpdsMapping", "(", "NumOperands", ")", ";", "if", "(", "!", "getInstrValueMapping", "(", "MI", ",", "OpRegBankIdx", ",", "OpdsMapping", ")", ")", "return", "InstructionMapping", "(", ")", ";", "return", "InstructionMapping", "{", "DefaultMappingID", ",", "1", ",", "getOperandsMapping", "(", "OpdsMapping", ")", ",", "NumOperands", "}", ";", "}", ""], "natrual_language": ["Get", "the", "mapping", "of", "the", "different", "operands", "of", "MI", "on", "the", "register", "bank", "."], "TS_V_token": ["X86", "X86", "4", "8", "1"], "File": "X86RegisterBankInfo13", "Func": "getInstrMapping", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2942, "Length": 216, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_array_mode_supported_p", "(", "machine_mode", "mode", ",", "unsigned", "HOST_WIDE_INT", "nelems", ")", "{", "if", "(", "TARGET_NEON", "&&", "(", "VALID_NEON_DREG_MODE", "(", "mode", ")", "||", "VALID_NEON_QREG_MODE", "(", "mode", ")", ")", "&&", "(", "nelems", ">=", "2", "&&", "nelems", "<=", "4", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Implements", "target", "hook", "array_mode_supported_p", "."], "TS_V_token": ["arm", "2", "4"], "File": "arm4", "Func": "arm_array_mode_supported_p", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2943, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "void", "initializePass", "(", ")", "override", "{", "pushTTIStack", "(", "this", ")", ";", "}", ""], "natrual_language": ["initializePass", "-", "This", "method", "may", "be", "overriden", "by", "immutable", "passes", "to", "allow", "them", "to", "perform", "various", "initialization", "actions", "they", "require", "."], "TS_V_token": ["PowerPC"], "File": "PPCTargetTransformInfo (2)", "Func": "initializePass", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2944, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "bool", "requiresFrameIndexScavenging", "(", "const", "MachineFunction", "&", "MF", ")", "const", "LLVM_OVERRIDE", "{", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "requires", "post", "PEI", "scavenging", "of", "registers", "for", "materializing", "frame", "index", "constants", "."], "TS_V_token": ["SystemZ"], "File": "SystemZRegisterInfo3", "Func": "requiresFrameIndexScavenging", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2945, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "indirect_thunk_name", "(", "char", "name", "[", "32", "]", ",", "unsigned", "int", "regno", ",", "enum", "indirect_thunk_prefix", "need_prefix", ",", "bool", "ret_p", ")", "{", "if", "(", "regno", "!=", "INVALID_REGNUM", "&&", "regno", "!=", "CX_REG", "&&", "ret_p", ")", "gcc_unreachable", "(", ")", ";", "if", "(", "USE_HIDDEN_LINKONCE", ")", "{", "const", "char", "*", "prefix", ";", "if", "(", "need_prefix", "==", "indirect_thunk_prefix_nt", "&&", "regno", "!=", "INVALID_REGNUM", ")", "{", "prefix", "=", "\"_nt\"", ";", "}", "else", "prefix", "=", "\"\"", ";", "const", "char", "*", "ret", "=", "ret_p", "?", "\"return\"", ":", "\"indirect\"", ";", "if", "(", "regno", "!=", "INVALID_REGNUM", ")", "{", "const", "char", "*", "reg_prefix", ";", "if", "(", "LEGACY_INT_REGNO_P", "(", "regno", ")", ")", "reg_prefix", "=", "TARGET_64BIT", "?", "\"r\"", ":", "\"e\"", ";", "else", "reg_prefix", "=", "\"\"", ";", "sprintf", "(", "name", ",", "\"__x86_%s_thunk%s_%s%s\"", ",", "ret", ",", "prefix", ",", "reg_prefix", ",", "reg_names", "[", "regno", "]", ")", ";", "}", "else", "sprintf", "(", "name", ",", "\"__x86_%s_thunk%s\"", ",", "ret", ",", "prefix", ")", ";", "}", "else", "{", "if", "(", "regno", "!=", "INVALID_REGNUM", ")", "ASM_GENERATE_INTERNAL_LABEL", "(", "name", ",", "\"LITR\"", ",", "regno", ")", ";", "else", "{", "if", "(", "ret_p", ")", "ASM_GENERATE_INTERNAL_LABEL", "(", "name", ",", "\"LRT\"", ",", "0", ")", ";", "else", "ASM_GENERATE_INTERNAL_LABEL", "(", "name", ",", "\"LIT\"", ",", "0", ")", ";", "}", "}", "}", ""], "natrual_language": ["Fills", "in", "the", "label", "name", "that", "should", "be", "used", "for", "the", "indirect", "thunk", "."], "TS_V_token": ["i386", "32", "\"_nt\"", "\"\"", "\"return\"", "\"indirect\"", "\"r\"", "\"e\"", "\"\"", "\"__x86_%s_thunk%s_%s%s\"", "\"__x86_%s_thunk%s\"", "\"LITR\"", "\"LRT\"", "0", "\"LIT\"", "0"], "File": "i386", "Func": "indirect_thunk_name", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2946, "Length": 189, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "rest_of_insert_bti", "(", "void", ")", "{", "timevar_push", "(", "TV_MACH_DEP", ")", ";", "rtx", "bti_insn", ";", "rtx_insn", "*", "insn", ";", "basic_block", "bb", ";", "bb", "=", "0", ";", "FOR_EACH_BB_FN", "(", "bb", ",", "cfun", ")", "{", "for", "(", "insn", "=", "BB_HEAD", "(", "bb", ")", ";", "insn", "!=", "NEXT_INSN", "(", "BB_END", "(", "bb", ")", ")", ";", "insn", "=", "NEXT_INSN", "(", "insn", ")", ")", "{", "if", "(", "LABEL_P", "(", "insn", ")", "&&", "(", "LABEL_PRESERVE_P", "(", "insn", ")", "||", "bb", "->", "flags", "&", "BB_NON_LOCAL_GOTO_TARGET", ")", ")", "{", "bti_insn", "=", "gen_bti_j", "(", ")", ";", "emit_insn_after", "(", "bti_insn", ",", "insn", ")", ";", "continue", ";", "}", "if", "(", "JUMP_P", "(", "insn", ")", ")", "{", "rtx_jump_table_data", "*", "table", ";", "if", "(", "tablejump_p", "(", "insn", ",", "NULL", ",", "&", "table", ")", ")", "{", "rtvec", "vec", "=", "table", "->", "get_labels", "(", ")", ";", "int", "j", ";", "rtx_insn", "*", "label", ";", "for", "(", "j", "=", "GET_NUM_ELEM", "(", "vec", ")", "-", "1", ";", "j", ">=", "0", ";", "--", "j", ")", "{", "label", "=", "as_a", "<", "rtx_insn", "*", ">", "(", "XEXP", "(", "RTVEC_ELT", "(", "vec", ",", "j", ")", ",", "0", ")", ")", ";", "rtx_insn", "*", "next", "=", "next_nonnote_nondebug_insn", "(", "label", ")", ";", "if", "(", "aarch64_bti_j_insn_p", "(", "next", ")", ")", "continue", ";", "bti_insn", "=", "gen_bti_j", "(", ")", ";", "emit_insn_after", "(", "bti_insn", ",", "label", ")", ";", "}", "}", "}", "if", "(", "CALL_P", "(", "insn", ")", "&&", "(", "find_reg_note", "(", "insn", ",", "REG_SETJMP", ",", "NULL", ")", ")", ")", "{", "bti_insn", "=", "gen_bti_j", "(", ")", ";", "emit_insn_after", "(", "bti_insn", ",", "insn", ")", ";", "continue", ";", "}", "}", "}", "if", "(", "!", "cgraph_node", "::", "get", "(", "cfun", "->", "decl", ")", "->", "only_called_directly_p", "(", ")", ")", "{", "bb", "=", "ENTRY_BLOCK_PTR_FOR_FN", "(", "cfun", ")", "->", "next_bb", ";", "insn", "=", "BB_HEAD", "(", "bb", ")", ";", "if", "(", "!", "aarch64_pac_insn_p", "(", "get_first_nonnote_insn", "(", ")", ")", ")", "{", "bti_insn", "=", "gen_bti_c", "(", ")", ";", "emit_insn_before", "(", "bti_insn", ",", "insn", ")", ";", "}", "}", "timevar_pop", "(", "TV_MACH_DEP", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["This", "is", "implemented", "as", "a", "late", "RTL", "pass", "that", "runs", "before", "branch", "shortening", "and", "does", "the", "following", "."], "TS_V_token": ["aarch64", "0", "1", "0", "0", "0"], "File": "aarch64-bti-insert", "Func": "rest_of_insert_bti", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2947, "Length": 318, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "FPMover", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "F", ")", "{", "if", "(", "TM", ".", "getSubtarget", "<", "SparcSubtarget", ">", "(", ")", ".", "isV9", "(", ")", ")", "return", "false", ";", "bool", "Changed", "=", "false", ";", "for", "(", "MachineFunction", "::", "iterator", "FI", "=", "F", ".", "begin", "(", ")", ",", "FE", "=", "F", ".", "end", "(", ")", ";", "FI", "!=", "FE", ";", "++", "FI", ")", "Changed", "|=", "runOnMachineBasicBlock", "(", "*", "FI", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Sparc", "Sparc"], "File": "FPMover", "Func": "runOnMachineFunction", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2948, "Length": 73, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "SystemZInstrInfo", "::", "isStoreToStackSlot", "(", "const", "MachineInstr", "&", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "return", "isSimpleMove", "(", "MI", ",", "FrameIndex", ",", "SystemZII", "::", "SimpleBDXStore", ")", ";", "}", ""], "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": ["SystemZ", "SystemZ", "SystemZII::SimpleBDXStore"], "File": "SystemZInstrInfo (2)2", "Func": "isStoreToStackSlot", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2949, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "DEBUG_FUNCTION", "void", "rs6000_debug_print_mode", "(", "ssize_t", "m", ")", "{", "ssize_t", "rc", ";", "int", "spaces", "=", "0", ";", "fprintf", "(", "stderr", ",", "\"Mode: %-5s\"", ",", "GET_MODE_NAME", "(", "m", ")", ")", ";", "for", "(", "rc", "=", "0", ";", "rc", "<", "N_RELOAD_REG", ";", "rc", "++", ")", "fprintf", "(", "stderr", ",", "\" %s: %s\"", ",", "reload_reg_map", "[", "rc", "]", ".", "name", ",", "rs6000_debug_addr_mask", "(", "reg_addr", "[", "m", "]", ".", "addr_mask", "[", "rc", "]", ",", "true", ")", ")", ";", "if", "(", "(", "reg_addr", "[", "m", "]", ".", "reload_store", "!=", "CODE_FOR_nothing", ")", "||", "(", "reg_addr", "[", "m", "]", ".", "reload_load", "!=", "CODE_FOR_nothing", ")", ")", "{", "fprintf", "(", "stderr", ",", "\"%*s Reload=%c%c\"", ",", "spaces", ",", "\"\"", ",", "(", "reg_addr", "[", "m", "]", ".", "reload_store", "!=", "CODE_FOR_nothing", ")", "?", "'s'", ":", "'*'", ",", "(", "reg_addr", "[", "m", "]", ".", "reload_load", "!=", "CODE_FOR_nothing", ")", "?", "'l'", ":", "'*'", ")", ";", "spaces", "=", "0", ";", "}", "else", "spaces", "+=", "sizeof", "(", "\" Reload=sl\"", ")", "-", "1", ";", "if", "(", "reg_addr", "[", "m", "]", ".", "scalar_in_vmx_p", ")", "{", "fprintf", "(", "stderr", ",", "\"%*s Upper=y\"", ",", "spaces", ",", "\"\"", ")", ";", "spaces", "=", "0", ";", "}", "else", "spaces", "+=", "sizeof", "(", "\" Upper=y\"", ")", "-", "1", ";", "if", "(", "rs6000_vector_unit", "[", "m", "]", "!=", "VECTOR_NONE", "||", "rs6000_vector_mem", "[", "m", "]", "!=", "VECTOR_NONE", ")", "{", "fprintf", "(", "stderr", ",", "\"%*s vector: arith=%-10s mem=%s\"", ",", "spaces", ",", "\"\"", ",", "rs6000_debug_vector_unit", "(", "rs6000_vector_unit", "[", "m", "]", ")", ",", "rs6000_debug_vector_unit", "(", "rs6000_vector_mem", "[", "m", "]", ")", ")", ";", "}", "fputs", "(", "\"\\n\"", ",", "stderr", ")", ";", "}", ""], "natrual_language": ["Print", "the", "address", "masks", "in", "a", "human", "readble", "fashion", "."], "TS_V_token": ["rs6000", "0", "\"Mode: %-5s\"", "0", "\" %s: %s\"", "\"%*s Reload=%c%c\"", "\"\"", "0", "\" Reload=sl\"", "1", "\"%*s Upper=y\"", "\"\"", "0", "\" Upper=y\"", "1", "\"%*s vector: arith=%-10s mem=%s\"", "\"\"", "\"\\n\""], "File": "rs60008", "Func": "rs6000_debug_print_mode", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2950, "Length": 240, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ScheduleHazardRecognizer", "*", "ARMBaseInstrInfo", "::", "CreateTargetPostRAHazardRecognizer", "(", "const", "InstrItineraryData", "*", "II", ",", "const", "ScheduleDAG", "*", "DAG", ")", "const", "{", "if", "(", "Subtarget", ".", "isThumb2", "(", ")", "||", "Subtarget", ".", "hasVFP2Base", "(", ")", ")", "return", "new", "ARMHazardRecognizer", "(", "II", ",", "DAG", ")", ";", "return", "TargetInstrInfo", "::", "CreateTargetPostRAHazardRecognizer", "(", "II", ",", "DAG", ")", ";", "}", ""], "natrual_language": ["Allocate", "and", "return", "a", "hazard", "recognizer", "to", "use", "for", "by", "non-scheduling", "passes", "."], "TS_V_token": ["ARM", "ARM", "ARM"], "File": "ARMBaseInstrInfo116", "Func": "CreateTargetPostRAHazardRecognizer", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2951, "Length": 52, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86AsmParser", "::", "checkTargetMatchPredicate", "(", "MCInst", "&", "Inst", ")", "{", "unsigned", "Opc", "=", "Inst", ".", "getOpcode", "(", ")", ";", "const", "MCInstrDesc", "&", "MCID", "=", "MII", ".", "get", "(", "Opc", ")", ";", "if", "(", "ForcedVEXEncoding", "==", "VEXEncoding_EVEX", "&&", "(", "MCID", ".", "TSFlags", "&", "X86II", "::", "EncodingMask", ")", "!=", "X86II", "::", "EVEX", ")", "return", "Match_Unsupported", ";", "if", "(", "(", "ForcedVEXEncoding", "==", "VEXEncoding_VEX", "||", "ForcedVEXEncoding", "==", "VEXEncoding_VEX3", ")", "&&", "(", "MCID", ".", "TSFlags", "&", "X86II", "::", "EncodingMask", ")", "!=", "X86II", "::", "VEX", ")", "return", "Match_Unsupported", ";", "switch", "(", "Opc", ")", "{", "case", "X86", "::", "VCVTSD2SIZrm_Int", ":", "case", "X86", "::", "VCVTSD2SI64Zrm_Int", ":", "case", "X86", "::", "VCVTSS2SIZrm_Int", ":", "case", "X86", "::", "VCVTSS2SI64Zrm_Int", ":", "case", "X86", "::", "VCVTTSD2SIZrm", ":", "case", "X86", "::", "VCVTTSD2SIZrm_Int", ":", "case", "X86", "::", "VCVTTSD2SI64Zrm", ":", "case", "X86", "::", "VCVTTSD2SI64Zrm_Int", ":", "case", "X86", "::", "VCVTTSS2SIZrm", ":", "case", "X86", "::", "VCVTTSS2SIZrm_Int", ":", "case", "X86", "::", "VCVTTSS2SI64Zrm", ":", "case", "X86", "::", "VCVTTSS2SI64Zrm_Int", ":", "if", "(", "ForcedVEXEncoding", "!=", "VEXEncoding_EVEX", ")", "return", "Match_Unsupported", ";", "break", ";", "}", "return", "Match_Success", ";", "}", ""], "natrual_language": ["checkTargetMatchPredicate", "-", "Validate", "the", "instruction", "match", "against", "any", "complex", "target", "predicates", "not", "expressible", "via", "match", "classes", "."], "TS_V_token": ["X86", "X86", "X86II::EncodingMask", "X86II::EVEX", "X86II::EncodingMask", "X86II::VEX", "X86::VCVTSD2SIZrm_Int", "X86::VCVTSD2SI64Zrm_Int", "X86::VCVTSS2SIZrm_Int", "X86::VCVTSS2SI64Zrm_Int", "X86::VCVTTSD2SIZrm", "X86::VCVTTSD2SIZrm_Int", "X86::VCVTTSD2SI64Zrm", "X86::VCVTTSD2SI64Zrm_Int", "X86::VCVTTSS2SIZrm", "X86::VCVTTSS2SIZrm_Int", "X86::VCVTTSS2SI64Zrm", "X86::VCVTTSS2SI64Zrm_Int"], "File": "X86AsmParser110", "Func": "checkTargetMatchPredicate", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2952, "Length": 164, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "addLOHDirective", "(", "MCLOHType", "Kind", ",", "MILOHArgs", "Args", ")", "{", "LOHContainerSet", ".", "push_back", "(", "MILOHDirective", "(", "Kind", ",", "Args", ")", ")", ";", "LOHRelated", ".", "insert", "(", "Args", ".", "begin", "(", ")", ",", "Args", ".", "end", "(", ")", ")", ";", "}", ""], "natrual_language": ["Add", "a", "LOH", "directive", "of", "this", "Kind", "and", "this", "Args", "."], "TS_V_token": ["AArch64"], "File": "AArch64MachineFunctionInfo1", "Func": "addLOHDirective", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2953, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_sched_finish", "(", "FILE", "*", "dump", ",", "int", "sched_verbose", ")", "{", "int", "n_groups", ";", "if", "(", "sched_verbose", ")", "fprintf", "(", "dump", ",", "\"=== Finishing schedule.\\n\"", ")", ";", "if", "(", "reload_completed", "&&", "rs6000_sched_groups", ")", "{", "if", "(", "rs6000_sched_insert_nops", "==", "sched_finish_none", ")", "return", ";", "if", "(", "rs6000_sched_insert_nops", "==", "sched_finish_pad_groups", ")", "n_groups", "=", "pad_groups", "(", "dump", ",", "sched_verbose", ",", "current_sched_info", "->", "prev_head", ",", "current_sched_info", "->", "next_tail", ")", ";", "else", "n_groups", "=", "redefine_groups", "(", "dump", ",", "sched_verbose", ",", "current_sched_info", "->", "prev_head", ",", "current_sched_info", "->", "next_tail", ")", ";", "if", "(", "sched_verbose", ">=", "6", ")", "{", "fprintf", "(", "dump", ",", "\"ngroups = %d\\n\"", ",", "n_groups", ")", ";", "print_rtl", "(", "dump", ",", "current_sched_info", "->", "prev_head", ")", ";", "fprintf", "(", "dump", ",", "\"Done finish_sched\\n\"", ")", ";", "}", "}", "}", ""], "natrual_language": ["The", "following", "function", "is", "called", "at", "the", "end", "of", "scheduling", "BB", ".", "After", "reload", ",", "it", "inserts", "nops", "at", "insn", "group", "bundling", "."], "TS_V_token": ["rs6000", "\"=== Finishing schedule.\\n\"", "6", "\"ngroups = %d\\n\"", "\"Done finish_sched\\n\""], "File": "rs60003", "Func": "rs6000_sched_finish", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2954, "Length": 117, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "TargetRegisterClass", "*", "PPCRegisterInfo", "::", "getLargestLegalSuperClass", "(", "const", "TargetRegisterClass", "*", "RC", ")", "const", "{", "if", "(", "Subtarget", ".", "hasVSX", "(", ")", ")", "{", "if", "(", "RC", "==", "&", "PPC", "::", "F8RCRegClass", ")", "return", "&", "PPC", "::", "VSFRCRegClass", ";", "else", "if", "(", "RC", "==", "&", "PPC", "::", "VRRCRegClass", ")", "return", "&", "PPC", "::", "VSRCRegClass", ";", "}", "return", "TargetRegisterInfo", "::", "getLargestLegalSuperClass", "(", "RC", ")", ";", "}", ""], "natrual_language": ["Returns", "the", "largest", "super", "class", "of", "RC", "that", "is", "legal", "to", "use", "in", "the", "current", "sub-target", "and", "has", "the", "same", "spill", "size", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::F8RCRegClass", "PPC::VSFRCRegClass", "PPC::VRRCRegClass", "PPC::VSRCRegClass"], "File": "PPCRegisterInfo", "Func": "getLargestLegalSuperClass", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2955, "Length": 64, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCFrameLowering", "::", "determineCalleeSaves", "(", "MachineFunction", "&", "MF", ",", "BitVector", "&", "SavedRegs", ",", "RegScavenger", "*", "RS", ")", "const", "{", "TargetFrameLowering", "::", "determineCalleeSaves", "(", "MF", ",", "SavedRegs", ",", "RS", ")", ";", "const", "PPCRegisterInfo", "*", "RegInfo", "=", "static_cast", "<", "const", "PPCRegisterInfo", "*", ">", "(", "Subtarget", ".", "getRegisterInfo", "(", ")", ")", ";", "PPCFunctionInfo", "*", "FI", "=", "MF", ".", "getInfo", "<", "PPCFunctionInfo", ">", "(", ")", ";", "unsigned", "LR", "=", "RegInfo", "->", "getRARegister", "(", ")", ";", "FI", "->", "setMustSaveLR", "(", "MustSaveLR", "(", "MF", ",", "LR", ")", ")", ";", "SavedRegs", ".", "reset", "(", "LR", ")", ";", "int", "FPSI", "=", "FI", "->", "getFramePointerSaveIndex", "(", ")", ";", "bool", "isPPC64", "=", "Subtarget", ".", "isPPC64", "(", ")", ";", "bool", "isDarwinABI", "=", "Subtarget", ".", "isDarwinABI", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "if", "(", "!", "FPSI", "&&", "needsFP", "(", "MF", ")", ")", "{", "int", "FPOffset", "=", "getFramePointerSaveOffset", "(", ")", ";", "FPSI", "=", "MFI", ".", "CreateFixedObject", "(", "isPPC64", "?", "8", ":", "4", ",", "FPOffset", ",", "true", ")", ";", "FI", "->", "setFramePointerSaveIndex", "(", "FPSI", ")", ";", "}", "int", "BPSI", "=", "FI", "->", "getBasePointerSaveIndex", "(", ")", ";", "if", "(", "!", "BPSI", "&&", "RegInfo", "->", "hasBasePointer", "(", "MF", ")", ")", "{", "int", "BPOffset", "=", "getBasePointerSaveOffset", "(", ")", ";", "BPSI", "=", "MFI", ".", "CreateFixedObject", "(", "isPPC64", "?", "8", ":", "4", ",", "BPOffset", ",", "true", ")", ";", "FI", "->", "setBasePointerSaveIndex", "(", "BPSI", ")", ";", "}", "if", "(", "FI", "->", "usesPICBase", "(", ")", ")", "{", "int", "PBPSI", "=", "MFI", ".", "CreateFixedObject", "(", "4", ",", "-", "8", ",", "true", ")", ";", "FI", "->", "setPICBasePointerSaveIndex", "(", "PBPSI", ")", ";", "}", "if", "(", "needsFP", "(", "MF", ")", ")", "SavedRegs", ".", "reset", "(", "isPPC64", "?", "PPC", "::", "X31", ":", "PPC", "::", "R31", ")", ";", "if", "(", "RegInfo", "->", "hasBasePointer", "(", "MF", ")", ")", "SavedRegs", ".", "reset", "(", "RegInfo", "->", "getBaseRegister", "(", "MF", ")", ")", ";", "if", "(", "FI", "->", "usesPICBase", "(", ")", ")", "SavedRegs", ".", "reset", "(", "PPC", "::", "R30", ")", ";", "int", "TCSPDelta", "=", "0", ";", "if", "(", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "GuaranteedTailCallOpt", "&&", "(", "TCSPDelta", "=", "FI", "->", "getTailCallSPDelta", "(", ")", ")", "<", "0", ")", "{", "MFI", ".", "CreateFixedObject", "(", "-", "1", "*", "TCSPDelta", ",", "TCSPDelta", ",", "true", ")", ";", "}", "if", "(", "!", "isPPC64", "&&", "!", "isDarwinABI", "&&", "(", "SavedRegs", ".", "test", "(", "PPC", "::", "CR2", ")", "||", "SavedRegs", ".", "test", "(", "PPC", "::", "CR3", ")", "||", "SavedRegs", ".", "test", "(", "PPC", "::", "CR4", ")", ")", ")", "{", "int", "FrameIdx", "=", "MFI", ".", "CreateFixedObject", "(", "(", "uint64_t", ")", "4", ",", "(", "int64_t", ")", "-", "4", ",", "true", ")", ";", "FI", "->", "setCRSpillFrameIndex", "(", "FrameIdx", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "determines", "which", "of", "the", "registers", "reported", "by", "TargetRegisterInfo", ":", ":getCalleeSavedRegs", "(", ")", "should", "actually", "get", "saved", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "PPC", "PPC", "PPC", "PPC", "PPC", "8", "4", "PPC", "8", "4", "4", "8", "PPC", "PPC::X31", "PPC::R31", "PPC::R30", "0", "0", "1", "PPC", "PPC::CR2", "PPC::CR3", "PPC::CR4", "4", "4"], "File": "PPCFrameLowering23", "Func": "determineCalleeSaves", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2956, "Length": 429, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mem_operand_gpr", "(", "rtx", "op", ",", "machine_mode", "mode", ")", "{", "unsigned", "HOST_WIDE_INT", "offset", ";", "int", "extra", ";", "rtx", "addr", "=", "XEXP", "(", "op", ",", "0", ")", ";", "if", "(", "TARGET_UPDATE", "&&", "(", "GET_CODE", "(", "addr", ")", "==", "PRE_INC", "||", "GET_CODE", "(", "addr", ")", "==", "PRE_DEC", ")", "&&", "mode_supports_pre_incdec_p", "(", "mode", ")", "&&", "legitimate_indirect_address_p", "(", "XEXP", "(", "addr", ",", "0", ")", ",", "false", ")", ")", "return", "true", ";", "if", "(", "address_is_prefixed", "(", "addr", ",", "mode", ",", "NON_PREFIXED_DS", ")", ")", "return", "true", ";", "if", "(", "TARGET_MACHO", "&&", "GET_CODE", "(", "addr", ")", "==", "LO_SUM", ")", "return", "darwin_rs6000_legitimate_lo_sum_const_p", "(", "XEXP", "(", "addr", ",", "1", ")", ",", "mode", ")", ";", "if", "(", "!", "rs6000_offsettable_memref_p", "(", "op", ",", "mode", ",", "false", ")", ")", "return", "false", ";", "op", "=", "address_offset", "(", "addr", ")", ";", "if", "(", "op", "==", "NULL_RTX", ")", "return", "true", ";", "offset", "=", "INTVAL", "(", "op", ")", ";", "if", "(", "TARGET_POWERPC64", "&&", "(", "offset", "&", "3", ")", "!=", "0", ")", "return", "false", ";", "extra", "=", "GET_MODE_SIZE", "(", "mode", ")", "-", "UNITS_PER_WORD", ";", "if", "(", "extra", "<", "0", ")", "extra", "=", "0", ";", "if", "(", "GET_CODE", "(", "addr", ")", "==", "LO_SUM", ")", "offset", "=", "sext_hwi", "(", "offset", ",", "16", ")", ";", "return", "SIGNED_16BIT_OFFSET_EXTRA_P", "(", "offset", ",", "extra", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "MEM", "operand", "is", "a", "memory", "operand", "suitable", "for", "use", "with", "a", "(", "full", "width", ",", "possibly", "multiple", ")", "gpr", "load/store", ".", "On", "powerpc64", "this", "means", "the", "offset", "must", "be", "divisible", "by", "4", ".", "Implements", "'", "Y", "'", "constraint", ".", "Accept", "direct", ",", "indexed", ",", "offset", ",", "lo_sum", "and", "tocref", ".", "Since", "this", "is", "a", "constraint", "function", "we", "know", "the", "operand", "has", "satisfied", "a", "suitable", "memory", "predicate", ".", "Offsetting", "a", "lo_sum", "should", "not", "be", "allowed", ",", "except", "where", "we", "know", "by", "alignment", "that", "a", "32k", "boundary", "is", "not", "crossed", ".", "Note", "that", "by", "``", "offsetting", "''", "here", "we", "mean", "a", "further", "offset", "to", "access", "parts", "of", "the", "MEM", ".", "It", "'s", "fine", "to", "have", "a", "lo_sum", "where", "the", "inner", "address", "is", "offset", "from", "a", "sym", ",", "since", "the", "same", "sym+offset", "will", "appear", "in", "the", "high", "part", "of", "the", "address", "calculation", "."], "TS_V_token": ["rs6000", "0", "0", "1", "3", "0", "0", "0", "16"], "File": "rs60001", "Func": "mem_operand_gpr", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2957, "Length": 204, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getNumFixupKinds", "(", ")", "const", "override", "{", "return", "Mips", "::", "NumTargetFixupKinds", ";", "}", ""], "natrual_language": ["Get", "the", "number", "of", "target", "specific", "fixup", "kinds", "."], "TS_V_token": ["Mips", "Mips::NumTargetFixupKinds"], "File": "MipsAsmBackend (2)1", "Func": "getNumFixupKinds", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2958, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCFixupKindInfo", "&", "getFixupKindInfo", "(", "MCFixupKind", "Kind", ")", "const", "{", "const", "static", "MCFixupKindInfo", "Infos", "[", "]", "=", "{", "{", "\"fixup_arm_ldst_pcrel_12\"", ",", "1", ",", "24", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_t2_ldst_pcrel_12\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "|", "MCFixupKindInfo", "::", "FKF_IsAligned", "}", ",", "{", "\"fixup_arm_pcrel_10\"", ",", "1", ",", "24", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_t2_pcrel_10\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_arm_adr_pcrel_12\"", ",", "1", ",", "24", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_arm_branch\"", ",", "1", ",", "24", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_t2_branch\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "|", "MCFixupKindInfo", "::", "FKF_IsAligned", "}", ",", "{", "\"fixup_arm_thumb_bl\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_arm_thumb_blx\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_arm_thumb_cb\"", ",", "0", ",", "16", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_arm_thumb_cp\"", ",", "1", ",", "8", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_arm_movt_hi16\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_arm_movw_lo16\"", ",", "0", ",", "16", ",", "0", "}", ",", "}", ";", "if", "(", "Kind", "<", "FirstTargetFixupKind", ")", "return", "MCCodeEmitter", "::", "getFixupKindInfo", "(", "Kind", ")", ";", "assert", "(", "unsigned", "(", "Kind", "-", "FirstTargetFixupKind", ")", "<", "getNumFixupKinds", "(", ")", "&&", "\"Invalid kind!\"", ")", ";", "return", "Infos", "[", "Kind", "-", "FirstTargetFixupKind", "]", ";", "}", ""], "natrual_language": ["Get", "information", "on", "a", "fixup", "kind", "."], "TS_V_token": ["ARM", "\"fixup_arm_ldst_pcrel_12\"", "1", "24", "\"fixup_t2_ldst_pcrel_12\"", "0", "32", "\"fixup_arm_pcrel_10\"", "1", "24", "\"fixup_t2_pcrel_10\"", "0", "32", "\"fixup_arm_adr_pcrel_12\"", "1", "24", "\"fixup_arm_branch\"", "1", "24", "\"fixup_t2_branch\"", "0", "32", "\"fixup_arm_thumb_bl\"", "0", "32", "\"fixup_arm_thumb_blx\"", "0", "32", "\"fixup_arm_thumb_cb\"", "0", "16", "\"fixup_arm_thumb_cp\"", "1", "8", "\"fixup_arm_movt_hi16\"", "0", "16", "0", "\"fixup_arm_movw_lo16\"", "0", "16", "0", "\"Invalid kind!\""], "File": "ARMMCCodeEmitter13", "Func": "getFixupKindInfo", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2959, "Length": 219, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_copy_one_block_and_progress_pointers", "(", "rtx", "*", "src", ",", "rtx", "*", "dst", ",", "machine_mode", "mode", ")", "{", "if", "(", "known_eq", "(", "GET_MODE_BITSIZE", "(", "mode", ")", ",", "256", ")", ")", "{", "mode", "=", "V4SImode", ";", "rtx", "reg1", "=", "gen_reg_rtx", "(", "mode", ")", ";", "rtx", "reg2", "=", "gen_reg_rtx", "(", "mode", ")", ";", "*", "src", "=", "adjust_address", "(", "*", "src", ",", "mode", ",", "0", ")", ";", "*", "dst", "=", "adjust_address", "(", "*", "dst", ",", "mode", ",", "0", ")", ";", "emit_insn", "(", "aarch64_gen_load_pair", "(", "mode", ",", "reg1", ",", "*", "src", ",", "reg2", ",", "aarch64_progress_pointer", "(", "*", "src", ")", ")", ")", ";", "emit_insn", "(", "aarch64_gen_store_pair", "(", "mode", ",", "*", "dst", ",", "reg1", ",", "aarch64_progress_pointer", "(", "*", "dst", ")", ",", "reg2", ")", ")", ";", "*", "src", "=", "aarch64_move_pointer", "(", "*", "src", ",", "32", ")", ";", "*", "dst", "=", "aarch64_move_pointer", "(", "*", "dst", ",", "32", ")", ";", "return", ";", "}", "rtx", "reg", "=", "gen_reg_rtx", "(", "mode", ")", ";", "*", "src", "=", "adjust_address", "(", "*", "src", ",", "mode", ",", "0", ")", ";", "*", "dst", "=", "adjust_address", "(", "*", "dst", ",", "mode", ",", "0", ")", ";", "emit_move_insn", "(", "reg", ",", "*", "src", ")", ";", "emit_move_insn", "(", "*", "dst", ",", "reg", ")", ";", "*", "src", "=", "aarch64_progress_pointer", "(", "*", "src", ")", ";", "*", "dst", "=", "aarch64_progress_pointer", "(", "*", "dst", ")", ";", "}", ""], "natrual_language": ["Copy", "one", "MODE", "sized", "block", "from", "SRC", "to", "DST", ",", "then", "progress", "SRC", "and", "DST", "by", "MODE", "bytes", "."], "TS_V_token": ["aarch64", "256", "0", "0", "32", "32", "0", "0"], "File": "aarch641", "Func": "aarch64_copy_one_block_and_progress_pointers", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2960, "Length": 211, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMTargetLowering", "::", "isShuffleMaskLegal", "(", "const", "SmallVectorImpl", "<", "int", ">", "&", "M", ",", "EVT", "VT", ")", "const", "{", "if", "(", "VT", ".", "getVectorNumElements", "(", ")", "==", "4", "&&", "(", "VT", ".", "is128BitVector", "(", ")", "||", "VT", ".", "is64BitVector", "(", ")", ")", ")", "{", "unsigned", "PFIndexes", "[", "4", "]", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "4", ";", "++", "i", ")", "{", "if", "(", "M", "[", "i", "]", "<", "0", ")", "PFIndexes", "[", "i", "]", "=", "8", ";", "else", "PFIndexes", "[", "i", "]", "=", "M", "[", "i", "]", ";", "}", "unsigned", "PFTableIndex", "=", "PFIndexes", "[", "0", "]", "*", "9", "*", "9", "*", "9", "+", "PFIndexes", "[", "1", "]", "*", "9", "*", "9", "+", "PFIndexes", "[", "2", "]", "*", "9", "+", "PFIndexes", "[", "3", "]", ";", "unsigned", "PFEntry", "=", "PerfectShuffleTable", "[", "PFTableIndex", "]", ";", "unsigned", "Cost", "=", "(", "PFEntry", ">>", "30", ")", ";", "if", "(", "Cost", "<=", "4", ")", "return", "true", ";", "}", "bool", "ReverseVEXT", ",", "isV_UNDEF", ";", "unsigned", "Imm", ",", "WhichResult", ";", "unsigned", "EltSize", "=", "VT", ".", "getScalarSizeInBits", "(", ")", ";", "return", "(", "EltSize", ">=", "32", "||", "ShuffleVectorSDNode", "::", "isSplatMask", "(", "&", "M", "[", "0", "]", ",", "VT", ")", "||", "isVREVMask", "(", "M", ",", "VT", ",", "64", ")", "||", "isVREVMask", "(", "M", ",", "VT", ",", "32", ")", "||", "isVREVMask", "(", "M", ",", "VT", ",", "16", ")", "||", "isVEXTMask", "(", "M", ",", "VT", ",", "ReverseVEXT", ",", "Imm", ")", "||", "isVTBLMask", "(", "M", ",", "VT", ")", "||", "isNEONTwoResultShuffleMask", "(", "M", ",", "VT", ",", "WhichResult", ",", "isV_UNDEF", ")", "||", "(", "(", "VT", "==", "MVT", "::", "v8i16", "||", "VT", "==", "MVT", "::", "v16i8", ")", "&&", "isReverseMask", "(", "M", ",", "VT", ")", ")", ")", ";", "}", ""], "natrual_language": ["Targets", "can", "use", "this", "to", "indicate", "that", "they", "only", "support", "some", "VECTOR_SHUFFLE", "operations", ",", "those", "with", "specific", "masks", "."], "TS_V_token": ["ARM", "ARM", "4", "4", "0", "4", "0", "8", "0", "9", "9", "9", "1", "9", "9", "2", "9", "3", "30", "4", "32", "0", "64", "32", "16", "MVT::v8i16", "MVT::v16i8"], "File": "ARMISelLowering117", "Func": "isShuffleMaskLegal", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2961, "Length": 273, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "AtomicExpansionKind", "AArch64TargetLowering", "::", "shouldExpandAtomicCmpXchgInIR", "(", "AtomicCmpXchgInst", "*", "AI", ")", "const", "{", "if", "(", "Subtarget", "->", "hasLSE", "(", ")", ")", "return", "AtomicExpansionKind", "::", "None", ";", "if", "(", "getTargetMachine", "(", ")", ".", "getOptLevel", "(", ")", "==", "0", ")", "return", "AtomicExpansionKind", "::", "None", ";", "return", "AtomicExpansionKind", "::", "LLSC", ";", "}", ""], "natrual_language": ["Returns", "how", "the", "given", "atomic", "cmpxchg", "should", "be", "expanded", "by", "the", "IR-level", "AtomicExpand", "pass", "."], "TS_V_token": ["AArch64", "AArch64", "0"], "File": "AArch64ISelLowering (2)3", "Func": "shouldExpandAtomicCmpXchgInIR", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2962, "Length": 49, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCPassConfig", "::", "addPreISel", "(", ")", "{", "if", "(", "!", "DisableCTRLoops", "&&", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createPPCCTRLoops", "(", "getPPCTargetMachine", "(", ")", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["{", "{", "@", "For", "GlobalISel"], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC"], "File": "PPCTargetMachine (2)", "Func": "addPreISel", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2963, "Length": 34, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "mmix_initial_elimination_offset", "(", "int", "fromreg", ",", "int", "toreg", ")", "{", "int", "regno", ";", "int", "fp_sp_offset", "=", "(", "get_frame_size", "(", ")", "+", "crtl", "->", "outgoing_args_size", "+", "7", ")", "&", "~", "7", ";", "if", "(", "fromreg", "==", "MMIX_ARG_POINTER_REGNUM", "&&", "toreg", "==", "MMIX_FRAME_POINTER_REGNUM", ")", "return", "0", ";", "for", "(", "regno", "=", "MMIX_FIRST_GLOBAL_REGNUM", ";", "regno", "<=", "255", ";", "regno", "++", ")", "if", "(", "(", "df_regs_ever_live_p", "(", "regno", ")", "&&", "!", "call_used_or_fixed_reg_p", "(", "regno", ")", ")", "||", "IS_MMIX_EH_RETURN_DATA_REG", "(", "regno", ")", ")", "fp_sp_offset", "+=", "8", ";", "return", "fp_sp_offset", "+", "(", "MMIX_CFUN_HAS_LANDING_PAD", "?", "16", ":", "(", "MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS", "?", "8", ":", "0", ")", ")", "+", "(", "fromreg", "==", "MMIX_ARG_POINTER_REGNUM", "?", "0", ":", "8", ")", ";", "}", ""], "natrual_language": ["The", "difference", "between", "the", "(", "imaginary", ")", "frame", "pointer", "and", "the", "stack", "pointer", ".", "Used", "to", "eliminate", "the", "frame", "pointer", "."], "TS_V_token": ["mmix", "7", "7", "0", "255", "8", "16", "8", "0", "0", "8"], "File": "mmix", "Func": "mmix_initial_elimination_offset", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2964, "Length": 109, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "enum", "arm_pcs", "arm_get_pcs_model", "(", "const_tree", "type", ",", "const_tree", "decl", ")", "{", "bool", "user_convention", "=", "false", ";", "enum", "arm_pcs", "user_pcs", "=", "arm_pcs_default", ";", "tree", "attr", ";", "gcc_assert", "(", "type", ")", ";", "attr", "=", "lookup_attribute", "(", "\"pcs\"", ",", "TYPE_ATTRIBUTES", "(", "type", ")", ")", ";", "if", "(", "attr", ")", "{", "user_pcs", "=", "arm_pcs_from_attribute", "(", "TREE_VALUE", "(", "attr", ")", ")", ";", "user_convention", "=", "true", ";", "}", "if", "(", "TARGET_AAPCS_BASED", ")", "{", "bool", "base_rules", "=", "stdarg_p", "(", "type", ")", ";", "if", "(", "user_convention", ")", "{", "if", "(", "user_pcs", ">", "ARM_PCS_AAPCS_LOCAL", ")", "sorry", "(", "\"non-AAPCS derived PCS variant\"", ")", ";", "else", "if", "(", "base_rules", "&&", "user_pcs", "!=", "ARM_PCS_AAPCS", ")", "error", "(", "\"variadic functions must use the base AAPCS variant\"", ")", ";", "}", "if", "(", "base_rules", ")", "return", "ARM_PCS_AAPCS", ";", "else", "if", "(", "user_convention", ")", "return", "user_pcs", ";", "else", "if", "(", "decl", "&&", "flag_unit_at_a_time", ")", "{", "cgraph_local_info", "*", "i", "=", "cgraph_node", "::", "local_info", "(", "CONST_CAST_TREE", "(", "decl", ")", ")", ";", "if", "(", "i", "&&", "i", "->", "local", ")", "return", "ARM_PCS_AAPCS_LOCAL", ";", "}", "}", "else", "if", "(", "user_convention", "&&", "user_pcs", "!=", "arm_pcs_default", ")", "sorry", "(", "\"PCS variant\"", ")", ";", "return", "arm_pcs_default", ";", "}", ""], "natrual_language": ["Get", "the", "PCS", "variant", "to", "use", "for", "this", "call", ".", "TYPE", "is", "the", "function", "'s", "type", "specification", ",", "DECL", "is", "the", "specific", "declartion", ".", "DECL", "may", "be", "null", "if", "the", "call", "could", "be", "indirect", "or", "if", "this", "is", "a", "library", "call", "."], "TS_V_token": ["arm", "\"pcs\"", "\"non-AAPCS derived PCS variant\"", "\"variadic functions must use the base AAPCS variant\"", "\"PCS variant\""], "File": "arm4", "Func": "arm_get_pcs_model", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2965, "Length": 175, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZPostRASchedStrategy", "::", "advanceTo", "(", "MachineBasicBlock", "::", "iterator", "NextBegin", ")", "{", "MachineBasicBlock", "::", "iterator", "LastEmittedMI", "=", "HazardRec", "->", "getLastEmittedMI", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "I", "=", "(", "(", "LastEmittedMI", "!=", "nullptr", "&&", "LastEmittedMI", "->", "getParent", "(", ")", "==", "MBB", ")", "?", "std", "::", "next", "(", "LastEmittedMI", ")", ":", "MBB", "->", "begin", "(", ")", ")", ";", "for", "(", ";", "I", "!=", "NextBegin", ";", "++", "I", ")", "{", "if", "(", "I", "->", "isPosition", "(", ")", "||", "I", "->", "isDebugValue", "(", ")", ")", "continue", ";", "HazardRec", "->", "emitInstruction", "(", "&", "*", "I", ")", ";", "}", "}", ""], "natrual_language": ["advanceTo", "-", "Advance", "the", "specified", "iterator", "to", "point", "to", "the", "Segment", "containing", "the", "specified", "position", ",", "or", "end", "(", ")", "if", "the", "position", "is", "past", "the", "end", "of", "the", "range", "."], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZMachineScheduler12", "Func": "advanceTo", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2966, "Length": 94, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_legitimate_address_p", "(", "machine_mode", "mode", ",", "rtx", "x", ",", "bool", "strict_p", ")", "{", "struct", "mips_address_info", "addr", ";", "return", "mips_classify_address", "(", "&", "addr", ",", "x", ",", "mode", ",", "strict_p", ")", ";", "}", ""], "natrual_language": ["This", "function", "is", "used", "to", "implement", "GO_IF_LEGITIMATE_ADDRESS", ".", "It", "returns", "a", "nonzero", "value", "if", "X", "is", "a", "legitimate", "address", "for", "a", "memory", "operand", "of", "the", "indicated", "MODE", ".", "STRICT", "is", "nonzero", "if", "this", "function", "is", "called", "during", "reload", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_legitimate_address_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2967, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "mmix_extra_constraint", "(", "rtx", "x", ",", "int", "c", ",", "int", "strict", ")", "{", "HOST_WIDEST_INT", "value", ";", "if", "(", "c", "==", "'U'", ")", "return", "strict", "?", "strict_memory_address_p", "(", "Pmode", ",", "x", ")", ":", "memory_address_p", "(", "Pmode", ",", "x", ")", ";", "if", "(", "c", "==", "'R'", ")", "return", "GET_CODE", "(", "x", ")", "!=", "CONST_INT", "&&", "GET_CODE", "(", "x", ")", "!=", "CONST_DOUBLE", "&&", "mmix_constant_address_p", "(", "x", ")", "&&", "(", "!", "TARGET_BASE_ADDRESSES", "||", "(", "GET_CODE", "(", "x", ")", "==", "LABEL_REF", "||", "(", "GET_CODE", "(", "x", ")", "==", "SYMBOL_REF", "&&", "SYMBOL_REF_FLAG", "(", "x", ")", ")", ")", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "!=", "CONST_DOUBLE", "||", "GET_MODE", "(", "x", ")", "!=", "VOIDmode", ")", "return", "0", ";", "value", "=", "mmix_intval", "(", "x", ")", ";", "if", "(", "c", "==", "'S'", ")", "return", "mmix_shiftable_wyde_value", "(", "value", ")", ";", "else", "if", "(", "c", "==", "'T'", ")", "return", "mmix_shiftable_wyde_value", "(", "~", "value", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["EXTRA_CONSTRAINT", ".", "We", "need", "this", "since", "our", "constants", "are", "not", "always", "expressible", "as", "CONST_INT", ":", "s", ",", "but", "rather", "often", "as", "CONST_DOUBLE", ":", "s", "."], "TS_V_token": ["mmix", "0", "0"], "File": "mmix3", "Func": "mmix_extra_constraint", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2968, "Length": 149, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "struct", "machine_function", "*", "ix86_init_machine_status", "(", "void", ")", "{", "struct", "machine_function", "*", "f", ";", "f", "=", "ggc_cleared_alloc", "<", "machine_function", ">", "(", ")", ";", "f", "->", "call_abi", "=", "ix86_abi", ";", "f", "->", "stack_frame_required", "=", "true", ";", "f", "->", "silent_p", "=", "true", ";", "return", "f", ";", "}", ""], "natrual_language": ["Clear", "stack", "slot", "assignments", "remembered", "from", "previous", "functions", ".", "This", "is", "called", "from", "INIT_EXPANDERS", "once", "before", "RTL", "is", "emitted", "for", "each", "function", "."], "TS_V_token": ["i386"], "File": "i386-options", "Func": "ix86_init_machine_status", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2969, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "rs6000_builtin_reciprocal", "(", "unsigned", "int", "fn", ",", "bool", "md_fn", ",", "bool", "sqrt", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "optimize_insn_for_size_p", "(", ")", ")", "return", "NULL_TREE", ";", "if", "(", "md_fn", ")", "switch", "(", "fn", ")", "{", "case", "VSX_BUILTIN_XVSQRTDP", ":", "if", "(", "!", "RS6000_RECIP_AUTO_RSQRTE_P", "(", "V2DFmode", ")", ")", "return", "NULL_TREE", ";", "return", "rs6000_builtin_decls", "[", "VSX_BUILTIN_RSQRT_2DF", "]", ";", "case", "VSX_BUILTIN_XVSQRTSP", ":", "if", "(", "!", "RS6000_RECIP_AUTO_RSQRTE_P", "(", "V4SFmode", ")", ")", "return", "NULL_TREE", ";", "return", "rs6000_builtin_decls", "[", "VSX_BUILTIN_RSQRT_4SF", "]", ";", "default", ":", "return", "NULL_TREE", ";", "}", "else", "switch", "(", "fn", ")", "{", "case", "BUILT_IN_SQRT", ":", "if", "(", "!", "RS6000_RECIP_AUTO_RSQRTE_P", "(", "DFmode", ")", ")", "return", "NULL_TREE", ";", "return", "rs6000_builtin_decls", "[", "RS6000_BUILTIN_RSQRT", "]", ";", "case", "BUILT_IN_SQRTF", ":", "if", "(", "!", "RS6000_RECIP_AUTO_RSQRTE_P", "(", "SFmode", ")", ")", "return", "NULL_TREE", ";", "return", "rs6000_builtin_decls", "[", "RS6000_BUILTIN_RSQRTF", "]", ";", "default", ":", "return", "NULL_TREE", ";", "}", "}", ""], "natrual_language": ["Returns", "a", "code", "for", "a", "target-specific", "builtin", "that", "implements", "reciprocal", "of", "the", "function", ",", "or", "NULL_TREE", "if", "not", "available", "."], "TS_V_token": ["rs6000"], "File": "rs60004", "Func": "rs6000_builtin_reciprocal", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2970, "Length": 133, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "SystemZTargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "Opcode", ")", "{", "OPCODE", "(", "RET_FLAG", ")", ";", "OPCODE", "(", "CALL", ")", ";", "OPCODE", "(", "PCREL_WRAPPER", ")", ";", "OPCODE", "(", "CMP", ")", ";", "OPCODE", "(", "UCMP", ")", ";", "OPCODE", "(", "BR_CCMASK", ")", ";", "OPCODE", "(", "SELECT_CCMASK", ")", ";", "OPCODE", "(", "ADJDYNALLOC", ")", ";", "OPCODE", "(", "EXTRACT_ACCESS", ")", ";", "OPCODE", "(", "UMUL_LOHI64", ")", ";", "OPCODE", "(", "SDIVREM64", ")", ";", "OPCODE", "(", "UDIVREM32", ")", ";", "OPCODE", "(", "UDIVREM64", ")", ";", "OPCODE", "(", "MVC", ")", ";", "OPCODE", "(", "ATOMIC_SWAPW", ")", ";", "OPCODE", "(", "ATOMIC_LOADW_ADD", ")", ";", "OPCODE", "(", "ATOMIC_LOADW_SUB", ")", ";", "OPCODE", "(", "ATOMIC_LOADW_AND", ")", ";", "OPCODE", "(", "ATOMIC_LOADW_OR", ")", ";", "OPCODE", "(", "ATOMIC_LOADW_XOR", ")", ";", "OPCODE", "(", "ATOMIC_LOADW_NAND", ")", ";", "OPCODE", "(", "ATOMIC_LOADW_MIN", ")", ";", "OPCODE", "(", "ATOMIC_LOADW_MAX", ")", ";", "OPCODE", "(", "ATOMIC_LOADW_UMIN", ")", ";", "OPCODE", "(", "ATOMIC_LOADW_UMAX", ")", ";", "OPCODE", "(", "ATOMIC_CMP_SWAPW", ")", ";", "}", "return", "NULL", ";", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZISelLowering (2)", "Func": "getTargetNodeName", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2971, "Length": 152, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mmix_target_asm_function_prologue", "(", "FILE", "*", ")", "{", "cfun", "->", "machine", "->", "in_prologue", "=", "1", ";", "}", ""], "natrual_language": ["Emit", "the", "function", "prologue", ".", "For", "simplicity", "while", "the", "port", "is", "still", "in", "a", "flux", ",", "we", "do", "it", "as", "text", "rather", "than", "the", "now", "preferred", "RTL", "way", ",", "as", "(", "define_insn", "``", "function_prologue", "''", ")", ".", "FIXME", ":", "Translate", "to", "RTL", "and/or", "optimize", "some", "of", "the", "DWARF", "2", "stuff", "."], "TS_V_token": ["mmix", "1"], "File": "mmix", "Func": "mmix_target_asm_function_prologue", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2972, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64AsmPrinter", "::", "PrintAsmOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNum", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "O", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "OpNum", ")", ";", "if", "(", "!", "AsmPrinter", "::", "PrintAsmOperand", "(", "MI", ",", "OpNum", ",", "ExtraCode", ",", "O", ")", ")", "return", "false", ";", "if", "(", "ExtraCode", "&&", "ExtraCode", "[", "0", "]", ")", "{", "if", "(", "ExtraCode", "[", "1", "]", "!=", "0", ")", "return", "true", ";", "switch", "(", "ExtraCode", "[", "0", "]", ")", "{", "default", ":", "return", "true", ";", "case", "'w'", ":", "case", "'x'", ":", "if", "(", "MO", ".", "isReg", "(", ")", ")", "return", "printAsmMRegister", "(", "MO", ",", "ExtraCode", "[", "0", "]", ",", "O", ")", ";", "if", "(", "MO", ".", "isImm", "(", ")", "&&", "MO", ".", "getImm", "(", ")", "==", "0", ")", "{", "unsigned", "Reg", "=", "ExtraCode", "[", "0", "]", "==", "'w'", "?", "AArch64", "::", "WZR", ":", "AArch64", "::", "XZR", ";", "O", "<<", "AArch64InstPrinter", "::", "getRegisterName", "(", "Reg", ")", ";", "return", "false", ";", "}", "printOperand", "(", "MI", ",", "OpNum", ",", "O", ")", ";", "return", "false", ";", "case", "'b'", ":", "case", "'h'", ":", "case", "'s'", ":", "case", "'d'", ":", "case", "'q'", ":", "case", "'z'", ":", "if", "(", "MO", ".", "isReg", "(", ")", ")", "{", "const", "TargetRegisterClass", "*", "RC", ";", "switch", "(", "ExtraCode", "[", "0", "]", ")", "{", "case", "'b'", ":", "RC", "=", "&", "AArch64", "::", "FPR8RegClass", ";", "break", ";", "case", "'h'", ":", "RC", "=", "&", "AArch64", "::", "FPR16RegClass", ";", "break", ";", "case", "'s'", ":", "RC", "=", "&", "AArch64", "::", "FPR32RegClass", ";", "break", ";", "case", "'d'", ":", "RC", "=", "&", "AArch64", "::", "FPR64RegClass", ";", "break", ";", "case", "'q'", ":", "RC", "=", "&", "AArch64", "::", "FPR128RegClass", ";", "break", ";", "case", "'z'", ":", "RC", "=", "&", "AArch64", "::", "ZPRRegClass", ";", "break", ";", "default", ":", "return", "true", ";", "}", "return", "printAsmRegInClass", "(", "MO", ",", "RC", ",", "AArch64", "::", "NoRegAltName", ",", "O", ")", ";", "}", "printOperand", "(", "MI", ",", "OpNum", ",", "O", ")", ";", "return", "false", ";", "}", "}", "if", "(", "MO", ".", "isReg", "(", ")", ")", "{", "Register", "Reg", "=", "MO", ".", "getReg", "(", ")", ";", "if", "(", "AArch64", "::", "GPR32allRegClass", ".", "contains", "(", "Reg", ")", "||", "AArch64", "::", "GPR64allRegClass", ".", "contains", "(", "Reg", ")", ")", "return", "printAsmMRegister", "(", "MO", ",", "'x'", ",", "O", ")", ";", "if", "(", "AArch64", "::", "GPR64x8ClassRegClass", ".", "contains", "(", "Reg", ")", ")", "return", "printAsmMRegister", "(", "MO", ",", "'t'", ",", "O", ")", ";", "unsigned", "AltName", "=", "AArch64", "::", "NoRegAltName", ";", "const", "TargetRegisterClass", "*", "RegClass", ";", "if", "(", "AArch64", "::", "ZPRRegClass", ".", "contains", "(", "Reg", ")", ")", "{", "RegClass", "=", "&", "AArch64", "::", "ZPRRegClass", ";", "}", "else", "if", "(", "AArch64", "::", "PPRRegClass", ".", "contains", "(", "Reg", ")", ")", "{", "RegClass", "=", "&", "AArch64", "::", "PPRRegClass", ";", "}", "else", "{", "RegClass", "=", "&", "AArch64", "::", "FPR128RegClass", ";", "AltName", "=", "AArch64", "::", "vreg", ";", "}", "return", "printAsmRegInClass", "(", "MO", ",", "RegClass", ",", "AltName", ",", "O", ")", ";", "}", "printOperand", "(", "MI", ",", "OpNum", ",", "O", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["PrintAsmOperand", "-", "Print", "out", "an", "operand", "for", "an", "inline", "asm", "expression", "."], "TS_V_token": ["AArch64", "AArch64", "0", "1", "0", "0", "0", "0", "0", "AArch64::WZR", "AArch64::XZR", "AArch64", "0", "AArch64::FPR8RegClass", "AArch64::FPR16RegClass", "AArch64::FPR32RegClass", "AArch64::FPR64RegClass", "AArch64::FPR128RegClass", "AArch64::ZPRRegClass", "AArch64::NoRegAltName", "AArch64::GPR32allRegClass", "AArch64::GPR64allRegClass", "AArch64::GPR64x8ClassRegClass", "AArch64::NoRegAltName", "AArch64::ZPRRegClass", "AArch64::ZPRRegClass", "AArch64::PPRRegClass", "AArch64::PPRRegClass", "AArch64::FPR128RegClass", "AArch64::vreg"], "File": "AArch64AsmPrinter1", "Func": "PrintAsmOperand", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2973, "Length": 487, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", "\"SystemZ Comparison Elimination\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["SystemZ", "\"SystemZ Comparison Elimination\""], "File": "SystemZElimCompare (2)", "Func": "getPassName", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2974, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCPhysReg", "*", "SparcRegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "return", "CSR_SaveList", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["Sparc", "Sparc"], "File": "SparcRegisterInfo (2)", "Func": "getCalleeSavedRegs", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2975, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_init_builtin", "(", "unsigned", "int", "fcode", ",", "arm_builtin_datum", "*", "d", ",", "const", "char", "*", "prefix", ")", "{", "bool", "print_type_signature_p", "=", "false", ";", "char", "type_signature", "[", "SIMD_MAX_BUILTIN_ARGS", "]", "=", "{", "0", "}", ";", "char", "namebuf", "[", "60", "]", ";", "tree", "ftype", "=", "NULL", ";", "tree", "fndecl", "=", "NULL", ";", "d", "->", "fcode", "=", "fcode", ";", "int", "op_num", "=", "insn_data", "[", "d", "->", "code", "]", ".", "n_operands", "-", "1", ";", "int", "arg_num", "=", "d", "->", "qualifiers", "[", "0", "]", "&", "qualifier_void", "?", "op_num", "+", "1", ":", "op_num", ";", "tree", "return_type", "=", "void_type_node", ",", "args", "=", "void_list_node", ";", "tree", "eltype", ";", "for", "(", ";", "op_num", ">=", "0", ";", "arg_num", "--", ",", "op_num", "--", ")", "{", "machine_mode", "op_mode", "=", "insn_data", "[", "d", "->", "code", "]", ".", "operand", "[", "op_num", "]", ".", "mode", ";", "enum", "arm_type_qualifiers", "qualifiers", "=", "d", "->", "qualifiers", "[", "arg_num", "]", ";", "if", "(", "qualifiers", "&", "qualifier_unsigned", ")", "{", "type_signature", "[", "arg_num", "]", "=", "'u'", ";", "print_type_signature_p", "=", "true", ";", "}", "else", "if", "(", "qualifiers", "&", "qualifier_poly", ")", "{", "type_signature", "[", "arg_num", "]", "=", "'p'", ";", "print_type_signature_p", "=", "true", ";", "}", "else", "type_signature", "[", "arg_num", "]", "=", "'s'", ";", "if", "(", "qualifiers", "&", "qualifier_internal", ")", "continue", ";", "if", "(", "qualifiers", "&", "qualifier_map_mode", ")", "op_mode", "=", "d", "->", "mode", ";", "if", "(", "qualifiers", "&", "qualifier_predicate", ")", "op_mode", "=", "HImode", ";", "if", "(", "qualifiers", "&", "qualifier_pointer", "&&", "VECTOR_MODE_P", "(", "op_mode", ")", ")", "op_mode", "=", "GET_MODE_INNER", "(", "op_mode", ")", ";", "if", "(", "qualifiers", "&", "qualifier_void_pointer", ")", "eltype", "=", "qualifiers", "&", "qualifier_const", "?", "const_ptr_type_node", ":", "ptr_type_node", ";", "else", "{", "eltype", "=", "arm_simd_builtin_type", "(", "op_mode", ",", "qualifiers", ")", ";", "gcc_assert", "(", "eltype", "!=", "NULL", ")", ";", "if", "(", "qualifiers", "&", "qualifier_const", ")", "eltype", "=", "build_qualified_type", "(", "eltype", ",", "TYPE_QUAL_CONST", ")", ";", "if", "(", "qualifiers", "&", "qualifier_pointer", ")", "eltype", "=", "build_pointer_type", "(", "eltype", ")", ";", "}", "if", "(", "arg_num", "==", "0", ")", "return_type", "=", "eltype", ";", "else", "args", "=", "tree_cons", "(", "NULL_TREE", ",", "eltype", ",", "args", ")", ";", "}", "ftype", "=", "build_function_type", "(", "return_type", ",", "args", ")", ";", "gcc_assert", "(", "ftype", "!=", "NULL", ")", ";", "if", "(", "print_type_signature_p", "&&", "IN_RANGE", "(", "fcode", ",", "ARM_BUILTIN_VFP_BASE", ",", "ARM_BUILTIN_ACLE_BASE", "-", "1", ")", ")", "snprintf", "(", "namebuf", ",", "sizeof", "(", "namebuf", ")", ",", "\"%s_%s_%s\"", ",", "prefix", ",", "d", "->", "name", ",", "type_signature", ")", ";", "else", "snprintf", "(", "namebuf", ",", "sizeof", "(", "namebuf", ")", ",", "\"%s_%s\"", ",", "prefix", ",", "d", "->", "name", ")", ";", "fndecl", "=", "add_builtin_function", "(", "namebuf", ",", "ftype", ",", "fcode", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";", "arm_builtin_decls", "[", "fcode", "]", "=", "fndecl", ";", "}", ""], "natrual_language": ["Set", "up", "a", "builtin", ".", "It", "will", "use", "information", "stored", "in", "the", "argument", "struct", "D", "to", "derive", "the", "builtin", "'s", "type", "signature", "and", "name", ".", "It", "will", "append", "the", "name", "in", "D", "to", "the", "PREFIX", "passed", "and", "use", "these", "to", "create", "a", "builtin", "declaration", "that", "is", "then", "stored", "in", "'arm_builtin_decls", "'", "under", "index", "FCODE", ".", "This", "FCODE", "is", "also", "written", "back", "to", "D", "for", "future", "use", "."], "TS_V_token": ["arm", "0", "60", "1", "0", "1", "0", "0", "1", "\"%s_%s_%s\"", "\"%s_%s\""], "File": "arm-builtins1", "Func": "arm_init_builtin", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2976, "Length": 417, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "char", "*", "detect_caches_freebsd", "(", "void", ")", "{", "unsigned", "l1_sizekb", ",", "l1_line", ",", "l1_assoc", ",", "l2_sizekb", ";", "size_t", "len", "=", "4", ";", "sysctlbyname", "(", "\"machdep.cacheline_size\"", ",", "&", "l1_line", ",", "&", "len", ",", "NULL", ",", "0", ")", ";", "l1_sizekb", "=", "32", ";", "l1_assoc", "=", "0", ";", "l2_sizekb", "=", "512", ";", "return", "describe_cache", "(", "l1_sizekb", ",", "l1_line", ",", "l1_assoc", ",", "l2_sizekb", ")", ";", "}", ""], "natrual_language": ["Returns", "the", "description", "of", "caches", "on", "FreeBSD", "PPC", "."], "TS_V_token": ["rs6000", "4", "\"machdep.cacheline_size\"", "0", "32", "0", "512"], "File": "driver-rs6000", "Func": "detect_caches_freebsd", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2977, "Length": 62, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "recombine_stvx_pattern", "(", "rtx_insn", "*", "insn", ",", "del_info", "*", "to_delete", ")", "{", "rtx", "body", "=", "PATTERN", "(", "insn", ")", ";", "gcc_assert", "(", "GET_CODE", "(", "body", ")", "==", "SET", "&&", "MEM_P", "(", "SET_DEST", "(", "body", ")", ")", "&&", "GET_CODE", "(", "SET_SRC", "(", "body", ")", ")", "==", "VEC_SELECT", ")", ";", "rtx", "mem", "=", "SET_DEST", "(", "body", ")", ";", "rtx", "base_reg", "=", "XEXP", "(", "mem", ",", "0", ")", ";", "auto_vec", "<", "rtx_insn", "*", ">", "and_insns", ";", "auto_vec", "<", "rtx", ">", "and_ops", ";", "bool", "is_any_def_and", "=", "find_alignment_op", "(", "insn", ",", "base_reg", ",", "&", "and_insns", ",", "&", "and_ops", ")", ";", "if", "(", "is_any_def_and", ")", "{", "gcc_assert", "(", "and_insns", ".", "length", "(", ")", "==", "and_ops", ".", "length", "(", ")", ")", ";", "rtx", "src_reg", "=", "XEXP", "(", "SET_SRC", "(", "body", ")", ",", "0", ")", ";", "df_ref", "src_use", ";", "struct", "df_insn_info", "*", "insn_info", "=", "DF_INSN_INFO_GET", "(", "insn", ")", ";", "FOR_EACH_INSN_INFO_USE", "(", "src_use", ",", "insn_info", ")", "{", "if", "(", "!", "rtx_equal_p", "(", "DF_REF_REG", "(", "src_use", ")", ",", "src_reg", ")", ")", "continue", ";", "struct", "df_link", "*", "link", "=", "DF_REF_CHAIN", "(", "src_use", ")", ";", "if", "(", "!", "link", "||", "link", "->", "next", ")", "break", ";", "rtx_insn", "*", "swap_insn", "=", "DF_REF_INSN", "(", "link", "->", "ref", ")", ";", "if", "(", "!", "insn_is_swap_p", "(", "swap_insn", ")", "||", "insn_is_load_p", "(", "swap_insn", ")", "||", "insn_is_store_p", "(", "swap_insn", ")", ")", "break", ";", "to_delete", "[", "INSN_UID", "(", "swap_insn", ")", "]", ".", "replace", "=", "true", ";", "to_delete", "[", "INSN_UID", "(", "swap_insn", ")", "]", ".", "replace_insn", "=", "swap_insn", ";", "rtx", "new_reg", "=", "0", ";", "rtx", "and_mask", "=", "0", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "and_insns", ".", "length", "(", ")", ";", "i", "++", ")", "{", "rtx_insn", "*", "and_insn", "=", "and_insns", "[", "i", "]", ";", "rtx", "and_op", "=", "and_ops", "[", "i", "]", ";", "rtx", "and_base", "=", "XEXP", "(", "and_op", ",", "0", ")", ";", "if", "(", "!", "new_reg", ")", "{", "new_reg", "=", "gen_reg_rtx", "(", "GET_MODE", "(", "and_base", ")", ")", ";", "and_mask", "=", "XEXP", "(", "and_op", ",", "1", ")", ";", "}", "rtx", "copy", "=", "gen_rtx_SET", "(", "new_reg", ",", "and_base", ")", ";", "rtx_insn", "*", "new_insn", "=", "emit_insn_after", "(", "copy", ",", "and_insn", ")", ";", "set_block_for_insn", "(", "new_insn", ",", "BLOCK_FOR_INSN", "(", "and_insn", ")", ")", ";", "df_insn_rescan", "(", "new_insn", ")", ";", "}", "XEXP", "(", "mem", ",", "0", ")", "=", "gen_rtx_AND", "(", "GET_MODE", "(", "new_reg", ")", ",", "new_reg", ",", "and_mask", ")", ";", "SET_SRC", "(", "body", ")", "=", "src_reg", ";", "INSN_CODE", "(", "insn", ")", "=", "-", "1", ";", "df_insn_rescan", "(", "insn", ")", ";", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"stvx opportunity found at %d\\n\"", ",", "INSN_UID", "(", "insn", ")", ")", ";", "}", "}", "}", ""], "natrual_language": ["If", "INSN", "is", "the", "store", "for", "an", "stvx", "pattern", ",", "put", "it", "in", "canonical", "form", "."], "TS_V_token": ["rs6000", "0", "0", "0", "0", "0", "0", "1", "0", "1", "\"stvx opportunity found at %d\\n\""], "File": "rs6000-p8swap1", "Func": "recombine_stvx_pattern", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2978, "Length": 417, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "rs6000_output_function_entry", "(", "FILE", "*", "file", ",", "const", "char", "*", "fname", ")", "{", "if", "(", "fname", "[", "0", "]", "!=", "'.'", ")", "{", "switch", "(", "DEFAULT_ABI", ")", "{", "default", ":", "gcc_unreachable", "(", ")", ";", "case", "ABI_AIX", ":", "if", "(", "DOT_SYMBOLS", ")", "putc", "(", "'.'", ",", "file", ")", ";", "else", "ASM_OUTPUT_INTERNAL_LABEL_PREFIX", "(", "file", ",", "\"L.\"", ")", ";", "break", ";", "case", "ABI_V4", ":", "case", "ABI_DARWIN", ":", "break", ";", "}", "}", "if", "(", "TARGET_AIX", ")", "RS6000_OUTPUT_BASENAME", "(", "file", ",", "fname", ")", ";", "else", "assemble_name", "(", "file", ",", "fname", ")", ";", "}", ""], "natrual_language": ["Write", "out", "a", "function", "code", "label", "."], "TS_V_token": ["rs6000", "0", "\"L.\""], "File": "rs60003", "Func": "rs6000_output_function_entry", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2979, "Length": 88, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMSubtarget", "::", "enableAtomicExpand", "(", ")", "const", "{", "return", "hasAnyDataBarrier", "(", ")", "&&", "!", "isThumb1Only", "(", ")", ";", "}", ""], "natrual_language": ["True", "if", "the", "subtarget", "should", "run", "the", "atomic", "expansion", "pass", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMSubtarget13", "Func": "enableAtomicExpand", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2980, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isToken", "(", ")", "const", "{", "return", "Kind", "==", "k_Token", ";", "}", ""], "natrual_language": ["isToken", "-", "Is", "this", "a", "token", "operand", "?"], "TS_V_token": ["ARM64"], "File": "ARM64AsmParser", "Func": "isToken", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2981, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "PPCTargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "SDLoc", "dl", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCRetInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCRetInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "RetCC_PPC", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RVLocs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Can only return in registers!\"", ")", ";", "SDValue", "Val", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "dl", ",", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ",", "InFlag", ")", ";", "Chain", "=", "Val", ".", "getValue", "(", "1", ")", ";", "InFlag", "=", "Val", ".", "getValue", "(", "2", ")", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown loc info!\"", ")", ";", "case", "CCValAssign", "::", "Full", ":", "break", ";", "case", "CCValAssign", "::", "AExt", ":", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "TRUNCATE", ",", "dl", ",", "VA", ".", "getValVT", "(", ")", ",", "Val", ")", ";", "break", ";", "case", "CCValAssign", "::", "ZExt", ":", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "AssertZext", ",", "dl", ",", "VA", ".", "getLocVT", "(", ")", ",", "Val", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "TRUNCATE", ",", "dl", ",", "VA", ".", "getValVT", "(", ")", ",", "Val", ")", ";", "break", ";", "case", "CCValAssign", "::", "SExt", ":", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "AssertSext", ",", "dl", ",", "VA", ".", "getLocVT", "(", ")", ",", "Val", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "TRUNCATE", ",", "dl", ",", "VA", ".", "getValVT", "(", ")", ",", "Val", ")", ";", "break", ";", "}", "InVals", ".", "push_back", "(", "Val", ")", ";", "}", "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": ["PowerPC", "PPC", "ISD::InputArg", "16", "PPC", "0", "\"Can only return in registers!\"", "1", "2", "\"Unknown loc info!\"", "ISD::TRUNCATE", "ISD::AssertZext", "ISD::TRUNCATE", "ISD::AssertSext", "ISD::TRUNCATE"], "File": "PPCISelLowering (2)2", "Func": "LowerCallResult", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2982, "Length": 356, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "X86FrameLowering", "::", "getFrameIndexReference", "(", "const", "MachineFunction", "&", "MF", ",", "int", "FI", ",", "unsigned", "&", "FrameReg", ")", "const", "{", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "bool", "IsFixed", "=", "MFI", ".", "isFixedObjectIndex", "(", "FI", ")", ";", "if", "(", "TRI", "->", "hasBasePointer", "(", "MF", ")", ")", "FrameReg", "=", "IsFixed", "?", "TRI", "->", "getFramePtr", "(", ")", ":", "TRI", "->", "getBaseRegister", "(", ")", ";", "else", "if", "(", "TRI", "->", "needsStackRealignment", "(", "MF", ")", ")", "FrameReg", "=", "IsFixed", "?", "TRI", "->", "getFramePtr", "(", ")", ":", "TRI", "->", "getStackRegister", "(", ")", ";", "else", "FrameReg", "=", "TRI", "->", "getFrameRegister", "(", "MF", ")", ";", "int", "Offset", "=", "MFI", ".", "getObjectOffset", "(", "FI", ")", "-", "getOffsetOfLocalArea", "(", ")", ";", "const", "X86MachineFunctionInfo", "*", "X86FI", "=", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", ";", "unsigned", "CSSize", "=", "X86FI", "->", "getCalleeSavedFrameSize", "(", ")", ";", "uint64_t", "StackSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "bool", "HasFP", "=", "hasFP", "(", "MF", ")", ";", "bool", "IsWin64Prologue", "=", "MF", ".", "getTarget", "(", ")", ".", "getMCAsmInfo", "(", ")", "->", "usesWindowsCFI", "(", ")", ";", "int64_t", "FPDelta", "=", "0", ";", "if", "(", "MF", ".", "getFunction", "(", ")", ".", "getCallingConv", "(", ")", "==", "CallingConv", "::", "X86_INTR", "&&", "Offset", ">=", "0", ")", "{", "Offset", "+=", "getOffsetOfLocalArea", "(", ")", ";", "}", "if", "(", "IsWin64Prologue", ")", "{", "assert", "(", "!", "MFI", ".", "hasCalls", "(", ")", "||", "(", "StackSize", "%", "16", ")", "==", "8", ")", ";", "uint64_t", "FrameSize", "=", "StackSize", "-", "SlotSize", ";", "if", "(", "X86FI", "->", "getRestoreBasePointer", "(", ")", ")", "FrameSize", "+=", "SlotSize", ";", "uint64_t", "NumBytes", "=", "FrameSize", "-", "CSSize", ";", "uint64_t", "SEHFrameOffset", "=", "calculateSetFPREG", "(", "NumBytes", ")", ";", "if", "(", "FI", "&&", "FI", "==", "X86FI", "->", "getFAIndex", "(", ")", ")", "return", "-", "SEHFrameOffset", ";", "FPDelta", "=", "FrameSize", "-", "SEHFrameOffset", ";", "assert", "(", "(", "!", "MFI", ".", "hasCalls", "(", ")", "||", "(", "FPDelta", "%", "16", ")", "==", "0", ")", "&&", "\"FPDelta isn't aligned per the Win64 ABI!\"", ")", ";", "}", "if", "(", "TRI", "->", "hasBasePointer", "(", "MF", ")", ")", "{", "assert", "(", "HasFP", "&&", "\"VLAs and dynamic stack realign, but no FP?!\"", ")", ";", "if", "(", "FI", "<", "0", ")", "{", "return", "Offset", "+", "SlotSize", "+", "FPDelta", ";", "}", "else", "{", "assert", "(", "(", "-", "(", "Offset", "+", "StackSize", ")", ")", "%", "MFI", ".", "getObjectAlignment", "(", "FI", ")", "==", "0", ")", ";", "return", "Offset", "+", "StackSize", ";", "}", "}", "else", "if", "(", "TRI", "->", "needsStackRealignment", "(", "MF", ")", ")", "{", "if", "(", "FI", "<", "0", ")", "{", "return", "Offset", "+", "SlotSize", "+", "FPDelta", ";", "}", "else", "{", "assert", "(", "(", "-", "(", "Offset", "+", "StackSize", ")", ")", "%", "MFI", ".", "getObjectAlignment", "(", "FI", ")", "==", "0", ")", ";", "return", "Offset", "+", "StackSize", ";", "}", "}", "else", "{", "if", "(", "!", "HasFP", ")", "return", "Offset", "+", "StackSize", ";", "Offset", "+=", "SlotSize", ";", "int", "TailCallReturnAddrDelta", "=", "X86FI", "->", "getTCReturnAddrDelta", "(", ")", ";", "if", "(", "TailCallReturnAddrDelta", "<", "0", ")", "Offset", "-=", "TailCallReturnAddrDelta", ";", "}", "return", "Offset", "+", "FPDelta", ";", "}", ""], "natrual_language": ["getFrameIndexReference", "-", "This", "method", "should", "return", "the", "base", "register", "and", "offset", "used", "to", "reference", "a", "frame", "index", "location", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86", "0", "X86", "0", "16", "8", "X86", "X86", "16", "0", "\"FPDelta isn't aligned per the Win64 ABI!\"", "\"VLAs and dynamic stack realign, but no FP?!\"", "0", "0", "0", "0", "X86", "0"], "File": "X86FrameLowering10", "Func": "getFrameIndexReference", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2983, "Length": 467, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ")", "const", "{", "return", "false", ";", "}", ""], "natrual_language": ["Check", "whether", "the", "given", "instruction", "may", "need", "relaxation", "."], "TS_V_token": ["Sparc"], "File": "SparcAsmBackend12", "Func": "mayNeedRelaxation", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2984, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "TeeRISCRegisterInfo", "*", "getRegisterInfo", "(", ")", "const", "{", "return", "&", "InstrInfo", ".", "getRegisterInfo", "(", ")", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["TeeRISC", "TeeRISC"], "File": "TeeRISCTargetMachine", "Func": "getRegisterInfo", "Target": "TeeRISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2985, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "XNCMTargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", ",", "DebugLoc", "dl", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "getTargetMachine", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_XNCM", ")", ";", "if", "(", "DAG", ".", "getMachineFunction", "(", ")", ".", "getRegInfo", "(", ")", ".", "liveout_empty", "(", ")", ")", "{", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "if", "(", "RVLocs", "[", "i", "]", ".", "isRegLoc", "(", ")", ")", "DAG", ".", "getMachineFunction", "(", ")", ".", "getRegInfo", "(", ")", ".", "addLiveOut", "(", "RVLocs", "[", "i", "]", ".", "getLocReg", "(", ")", ")", ";", "}", "SDValue", "Flag", ";", "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", ")", ";", "}", "unsigned", "Opc", "=", "XNCMISD", "::", "RET_FLAG", ";", "if", "(", "Flag", ".", "getNode", "(", ")", ")", "return", "DAG", ".", "getNode", "(", "Opc", ",", "dl", ",", "MVT", "::", "Other", ",", "Chain", ",", "Flag", ")", ";", "return", "DAG", ".", "getNode", "(", "Opc", ",", "dl", ",", "MVT", "::", "Other", ",", "Chain", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["XNCM", "XNCM", "ISD::OutputArg", "16", "XNCM", "0", "0", "\"Can only return in registers!\"", "1", "XNCMISD::RET_FLAG", "MVT::Other", "MVT::Other"], "File": "XNCMISelLowering", "Func": "LowerReturn", "Target": "XNCM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2986, "Length": 282, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_add_reg_usage_to_vzerouppers", "(", "void", ")", "{", "basic_block", "bb", ";", "rtx_insn", "*", "insn", ";", "auto_bitmap", "live_regs", ";", "df_analyze", "(", ")", ";", "FOR_EACH_BB_FN", "(", "bb", ",", "cfun", ")", "{", "bitmap_copy", "(", "live_regs", ",", "df_get_live_out", "(", "bb", ")", ")", ";", "df_simulate_initialize_backwards", "(", "bb", ",", "live_regs", ")", ";", "FOR_BB_INSNS_REVERSE", "(", "bb", ",", "insn", ")", "{", "if", "(", "!", "NONDEBUG_INSN_P", "(", "insn", ")", ")", "continue", ";", "if", "(", "vzeroupper_pattern", "(", "PATTERN", "(", "insn", ")", ",", "VOIDmode", ")", ")", "ix86_add_reg_usage_to_vzeroupper", "(", "insn", ",", "live_regs", ")", ";", "df_simulate_one_insn_backwards", "(", "bb", ",", "insn", ",", "live_regs", ")", ";", "}", "}", "}", ""], "natrual_language": ["Walk", "the", "vzeroupper", "instructions", "in", "the", "function", "and", "annotate", "them", "with", "the", "effect", "that", "they", "have", "on", "the", "SSE", "registers", "."], "TS_V_token": ["i386"], "File": "i386-features", "Func": "ix86_add_reg_usage_to_vzerouppers", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2987, "Length": 93, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MVEVPTBlock", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "Fn", ")", "{", "const", "ARMSubtarget", "&", "STI", "=", "Fn", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "if", "(", "!", "STI", ".", "isThumb2", "(", ")", "||", "!", "STI", ".", "hasMVEIntegerOps", "(", ")", ")", "return", "false", ";", "TII", "=", "static_cast", "<", "const", "Thumb2InstrInfo", "*", ">", "(", "STI", ".", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "STI", ".", "getRegisterInfo", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"********** ARM MVE VPT BLOCKS **********\\n\"", "<<", "\"********** Function: \"", "<<", "Fn", ".", "getName", "(", ")", "<<", "'\\n'", ")", ";", "bool", "Modified", "=", "false", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "Fn", ")", "Modified", "|=", "InsertVPTBlocks", "(", "MBB", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"**************************************\\n\"", ")", ";", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "\"********** ARM MVE VPT BLOCKS **********\\n\"", "\"********** Function: \"", "\"**************************************\\n\""], "File": "MVEVPTBlockPass (2)", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2988, "Length": 119, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMAsmBackend", "::", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "if", "(", "getRelaxedOpcode", "(", "Inst", ".", "getOpcode", "(", ")", ",", "STI", ")", "!=", "Inst", ".", "getOpcode", "(", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Check", "whether", "the", "given", "instruction", "may", "need", "relaxation", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMAsmBackend (2)2", "Func": "mayNeedRelaxation", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2989, "Length": 43, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "LanaiTargetObjectFile", "::", "Initialize", "(", "MCContext", "&", "Ctx", ",", "const", "TargetMachine", "&", "TM", ")", "{", "TargetLoweringObjectFileELF", "::", "Initialize", "(", "Ctx", ",", "TM", ")", ";", "SmallDataSection", "=", "getContext", "(", ")", ".", "getELFSection", "(", "\".sdata\"", ",", "ELF", "::", "SHT_PROGBITS", ",", "ELF", "::", "SHF_WRITE", "|", "ELF", "::", "SHF_ALLOC", ")", ";", "SmallBSSSection", "=", "getContext", "(", ")", ".", "getELFSection", "(", "\".sbss\"", ",", "ELF", "::", "SHT_NOBITS", ",", "ELF", "::", "SHF_WRITE", "|", "ELF", "::", "SHF_ALLOC", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "called", "before", "any", "actual", "lowering", "is", "done", "."], "TS_V_token": ["Lanai", "Lanai", "\".sdata\"", "\".sbss\""], "File": "LanaiTargetObjectFile1", "Func": "Initialize", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2990, "Length": 71, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "char", "*", "ix86_mangle_type", "(", "const_tree", "type", ")", "{", "type", "=", "TYPE_MAIN_VARIANT", "(", "type", ")", ";", "if", "(", "TREE_CODE", "(", "type", ")", "!=", "VOID_TYPE", "&&", "TREE_CODE", "(", "type", ")", "!=", "BOOLEAN_TYPE", "&&", "TREE_CODE", "(", "type", ")", "!=", "INTEGER_TYPE", "&&", "TREE_CODE", "(", "type", ")", "!=", "REAL_TYPE", ")", "return", "NULL", ";", "switch", "(", "TYPE_MODE", "(", "type", ")", ")", "{", "case", "TFmode", ":", "return", "\"g\"", ";", "case", "XFmode", ":", "return", "\"e\"", ";", "default", ":", "return", "NULL", ";", "}", "}", ""], "natrual_language": ["Return", "the", "mangling", "of", "TYPE", "if", "it", "is", "an", "extended", "fundamental", "type", "."], "TS_V_token": ["i386", "\"g\"", "\"e\""], "File": "i3864", "Func": "ix86_mangle_type", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2991, "Length": 77, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "mips_output_jump", "(", "rtx", "*", "operands", ",", "int", "target_opno", ",", "int", "size_opno", ",", "bool", "link_p", ")", "{", "static", "char", "buffer", "[", "300", "]", ";", "char", "*", "s", "=", "buffer", ";", "bool", "reg_p", "=", "REG_P", "(", "operands", "[", "target_opno", "]", ")", ";", "const", "char", "*", "and_link", "=", "link_p", "?", "\"al\"", ":", "\"\"", ";", "const", "char", "*", "reg", "=", "reg_p", "?", "\"r\"", ":", "\"\"", ";", "const", "char", "*", "compact", "=", "\"\"", ";", "const", "char", "*", "nop", "=", "\"%/\"", ";", "const", "char", "*", "short_delay", "=", "link_p", "?", "\"%!\"", ":", "\"\"", ";", "const", "char", "*", "insn_name", "=", "TARGET_CB_NEVER", "||", "reg_p", "?", "\"j\"", ":", "\"b\"", ";", "if", "(", "!", "final_sequence", "&&", "(", "TARGET_CB_MAYBE", "||", "(", "ISA_HAS_JRC", "&&", "!", "link_p", "&&", "reg_p", ")", ")", ")", "{", "compact", "=", "\"c\"", ";", "nop", "=", "\"\"", ";", "}", "if", "(", "TARGET_USE_GOT", "&&", "!", "TARGET_EXPLICIT_RELOCS", ")", "sprintf", "(", "s", ",", "\"%%*%s%s\\t%%%d%%/\"", ",", "insn_name", ",", "and_link", ",", "target_opno", ")", ";", "else", "{", "if", "(", "!", "reg_p", "&&", "TARGET_ABICALLS_PIC2", ")", "s", "+=", "sprintf", "(", "s", ",", "\".option\\tpic0\\n\\t\"", ")", ";", "if", "(", "reg_p", "&&", "mips_get_pic_call_symbol", "(", "operands", ",", "size_opno", ")", ")", "{", "s", "+=", "sprintf", "(", "s", ",", "\"%%*.reloc\\t1f,R_MIPS_JALR,%%%d\\n1:\\t\"", ",", "size_opno", ")", ";", "short_delay", "=", "\"\"", ";", "}", "else", "s", "+=", "sprintf", "(", "s", ",", "\"%%*\"", ")", ";", "s", "+=", "sprintf", "(", "s", ",", "\"%s%s%s%s%s\\t%%%d%s\"", ",", "insn_name", ",", "and_link", ",", "reg", ",", "compact", ",", "short_delay", ",", "target_opno", ",", "nop", ")", ";", "if", "(", "!", "reg_p", "&&", "TARGET_ABICALLS_PIC2", ")", "s", "+=", "sprintf", "(", "s", ",", "\"\\n\\t.option\\tpic2\"", ")", ";", "}", "return", "buffer", ";", "}", ""], "natrual_language": ["Return", "the", "asm", "template", "for", "a", "call", ".", "OPERANDS", "are", "the", "operands", ",", "TARGET_OPNO", "is", "the", "operand", "number", "of", "the", "target", ".", "SIZE_OPNO", "is", "the", "operand", "number", "of", "the", "argument", "size", "operand", "that", "can", "optionally", "hold", "the", "call", "attributes", ".", "If", "SIZE_OPNO", "is", "not", "-1", "and", "the", "call", "is", "indirect", ",", "use", "the", "function", "symbol", "from", "the", "call", "attributes", "to", "attach", "a", "R_MIPS_JALR", "relocation", "to", "the", "call", ".", "LINK_P", "indicates", "whether", "the", "jump", "is", "a", "call", "and", "needs", "to", "set", "the", "link", "register", ".", "When", "generating", "GOT", "code", "without", "explicit", "relocation", "operators", ",", "all", "calls", "should", "use", "assembly", "macros", ".", "Otherwise", ",", "all", "indirect", "calls", "should", "use", "``", "jr", "''", "or", "``", "jalr", "''", ";", "we", "will", "arrange", "to", "restore", "$", "gp", "afterwards", "if", "necessary", ".", "Finally", ",", "we", "can", "only", "generate", "direct", "calls", "for", "-mabicalls", "by", "temporarily", "switching", "to", "non-PIC", "mode", ".", "For", "microMIPS", "jal", "(", "r", ")", ",", "we", "try", "to", "generate", "jal", "(", "r", ")", "s", "when", "a", "16-bit", "instruction", "is", "in", "the", "delay", "slot", "of", "jal", "(", "r", ")", ".", "Where", "compact", "branches", "are", "available", ",", "we", "try", "to", "use", "them", "if", "the", "delay", "slot", "has", "a", "NOP", "(", "or", "equivalently", "delay", "slots", "were", "not", "enabled", "for", "the", "instruction", "anyway", ")", "."], "TS_V_token": ["mips", "300", "\"al\"", "\"\"", "\"r\"", "\"\"", "\"\"", "\"%/\"", "\"%!\"", "\"\"", "\"j\"", "\"b\"", "\"c\"", "\"\"", "\"%%*%s%s\\t%%%d%%/\"", "\".option\\tpic0\\n\\t\"", "\"%%*.reloc\\t1f,R_MIPS_JALR,%%%d\\n1:\\t\"", "\"\"", "\"%%*\"", "\"%s%s%s%s%s\\t%%%d%s\"", "\"\\n\\t.option\\tpic2\""], "File": "mips5", "Func": "mips_output_jump", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2992, "Length": 251, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "aarch64_expand_subvti", "(", "rtx", "op0", ",", "rtx", "low_dest", ",", "rtx", "low_in1", ",", "rtx", "low_in2", ",", "rtx", "high_dest", ",", "rtx", "high_in1", ",", "rtx", "high_in2", ",", "bool", "unsigned_p", ")", "{", "if", "(", "low_in2", "==", "const0_rtx", ")", "{", "low_dest", "=", "low_in1", ";", "high_in2", "=", "force_reg", "(", "DImode", ",", "high_in2", ")", ";", "if", "(", "unsigned_p", ")", "emit_insn", "(", "gen_subdi3_compare1", "(", "high_dest", ",", "high_in1", ",", "high_in2", ")", ")", ";", "else", "emit_insn", "(", "gen_subvdi_insn", "(", "high_dest", ",", "high_in1", ",", "high_in2", ")", ")", ";", "}", "else", "{", "if", "(", "CONST_INT_P", "(", "low_in2", ")", ")", "{", "high_in2", "=", "force_reg", "(", "DImode", ",", "high_in2", ")", ";", "emit_insn", "(", "gen_subdi3_compare1_imm", "(", "low_dest", ",", "low_in1", ",", "low_in2", ",", "GEN_INT", "(", "-", "INTVAL", "(", "low_in2", ")", ")", ")", ")", ";", "}", "else", "emit_insn", "(", "gen_subdi3_compare1", "(", "low_dest", ",", "low_in1", ",", "low_in2", ")", ")", ";", "if", "(", "unsigned_p", ")", "emit_insn", "(", "gen_usubdi3_carryinC", "(", "high_dest", ",", "high_in1", ",", "high_in2", ")", ")", ";", "else", "emit_insn", "(", "gen_subdi3_carryinV", "(", "high_dest", ",", "high_in1", ",", "high_in2", ")", ")", ";", "}", "emit_move_insn", "(", "gen_lowpart", "(", "DImode", ",", "op0", ")", ",", "low_dest", ")", ";", "emit_move_insn", "(", "gen_highpart", "(", "DImode", ",", "op0", ")", ",", "high_dest", ")", ";", "}", ""], "natrual_language": ["Generate", "RTL", "for", "128-bit", "(", "TImode", ")", "subtraction", "with", "overflow", ".", "OP0", "represents", "the", "TImode", "destination", "operand", "0", "LOW_DEST", "represents", "the", "low", "half", "(", "DImode", ")", "of", "TImode", "operand", "0", "LOW_IN1", "represents", "the", "low", "half", "(", "DImode", ")", "of", "TImode", "operand", "1", "LOW_IN2", "represents", "the", "low", "half", "(", "DImode", ")", "of", "TImode", "operand", "2", "HIGH_DEST", "represents", "the", "high", "half", "(", "DImode", ")", "of", "TImode", "operand", "0", "HIGH_IN1", "represents", "the", "high", "half", "(", "DImode", ")", "of", "TImode", "operand", "1", "HIGH_IN2", "represents", "the", "high", "half", "(", "DImode", ")", "of", "TImode", "operand", "2", "UNSIGNED_P", "is", "true", "if", "the", "operation", "is", "being", "performed", "on", "unsigned", "values", "."], "TS_V_token": ["aarch64"], "File": "aarch646", "Func": "aarch64_expand_subvti", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2993, "Length": 187, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MipsExprKind", "getKind", "(", ")", "const", "{", "return", "Kind", ";", "}", ""], "natrual_language": ["Returns", "the", "Kind", "of", "lane", "offset", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsMCExpr13", "Func": "getKind", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2994, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "crx_expand_epilogue", "(", "void", ")", "{", "rtx", "return_reg", ";", "int", "only_popret_RA", "=", "(", "save_regs", "[", "RETURN_ADDRESS_REGNUM", "]", "&&", "(", "sum_regs", "==", "UNITS_PER_WORD", ")", ")", ";", "return_reg", "=", "gen_rtx_REG", "(", "Pmode", ",", "RETURN_ADDRESS_REGNUM", ")", ";", "if", "(", "frame_pointer_needed", ")", "emit_move_insn", "(", "stack_pointer_rtx", ",", "frame_pointer_rtx", ")", ";", "if", "(", "size_for_adjusting_sp", ">", "0", ")", "emit_insn", "(", "gen_addsi3", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "size_for_adjusting_sp", ")", ")", ")", ";", "if", "(", "crx_interrupt_function_p", "(", ")", ")", "emit_jump_insn", "(", "gen_interrupt_return", "(", ")", ")", ";", "else", "if", "(", "last_reg_to_save", "==", "-", "1", ")", "emit_jump_insn", "(", "gen_indirect_jump_return", "(", ")", ")", ";", "else", "if", "(", "only_popret_RA", ")", "emit_jump_insn", "(", "gen_popret_RA_return", "(", ")", ")", ";", "else", "emit_jump_insn", "(", "gen_pop_and_popret_return", "(", "GEN_INT", "(", "sum_regs", ")", ")", ")", ";", "}", ""], "natrual_language": ["Generate", "insn", "that", "updates", "the", "stack", "for", "local", "variables", "and", "padding", "for", "*", "registers", "we", "save", ".", "-", "Generate", "the", "appropriate", "return", "insn", "."], "TS_V_token": ["crx", "0", "1"], "File": "crx", "Func": "crx_expand_epilogue", "Target": "crx", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2995, "Length": 119, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx_code_label", "*", "ix86_expand_sse_compare_and_jump", "(", "enum", "rtx_code", "code", ",", "rtx", "op0", ",", "rtx", "op1", ",", "bool", "swap_operands", ")", "{", "machine_mode", "fpcmp_mode", "=", "ix86_fp_compare_mode", "(", "code", ")", ";", "rtx_code_label", "*", "label", ";", "rtx", "tmp", ";", "if", "(", "swap_operands", ")", "std", "::", "swap", "(", "op0", ",", "op1", ")", ";", "label", "=", "gen_label_rtx", "(", ")", ";", "tmp", "=", "gen_rtx_REG", "(", "fpcmp_mode", ",", "FLAGS_REG", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "tmp", ",", "gen_rtx_COMPARE", "(", "fpcmp_mode", ",", "op0", ",", "op1", ")", ")", ")", ";", "tmp", "=", "gen_rtx_fmt_ee", "(", "code", ",", "VOIDmode", ",", "tmp", ",", "const0_rtx", ")", ";", "tmp", "=", "gen_rtx_IF_THEN_ELSE", "(", "VOIDmode", ",", "tmp", ",", "gen_rtx_LABEL_REF", "(", "VOIDmode", ",", "label", ")", ",", "pc_rtx", ")", ";", "tmp", "=", "emit_jump_insn", "(", "gen_rtx_SET", "(", "pc_rtx", ",", "tmp", ")", ")", ";", "JUMP_LABEL", "(", "tmp", ")", "=", "label", ";", "return", "label", ";", "}", ""], "natrual_language": ["Expands", "a", "comparison", "of", "OP0", "with", "OP1", "using", "comparison", "code", "CODE", ",", "swapping", "the", "operands", "if", "SWAP_OPERANDS", "is", "true", ".", "The", "expanded", "code", "is", "a", "forward", "jump", "to", "a", "newly", "created", "label", "in", "case", "the", "comparison", "is", "true", ".", "The", "generated", "label", "rtx", "is", "returned", "."], "TS_V_token": ["i386"], "File": "i3865", "Func": "ix86_expand_sse_compare_and_jump", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2996, "Length": 133, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "setupMF", "(", "MachineFunction", "&", "MF", ",", "GISelKnownBits", "&", "KB", ",", "CodeGenCoverage", "&", "CoverageInfo", ")", "override", "{", "InstructionSelector", "::", "setupMF", "(", "MF", ",", "KB", ",", "CoverageInfo", ")", ";", "ProduceNonFlagSettingCondBr", "=", "!", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "Attribute", "::", "SpeculativeLoadHardening", ")", ";", "MFReturnAddr", "=", "Register", "(", ")", ";", "}", ""], "natrual_language": ["Setup", "per-MF", "executor", "state", "."], "TS_V_token": ["AArch64"], "File": "AArch64InstructionSelector12", "Func": "setupMF", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2997, "Length": 51, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "general_scalar_to_vector_candidate_p", "(", "rtx_insn", "*", "insn", ",", "enum", "machine_mode", "mode", ")", "{", "rtx", "def_set", "=", "pseudo_reg_set", "(", "insn", ")", ";", "if", "(", "!", "def_set", ")", "return", "false", ";", "rtx", "src", "=", "SET_SRC", "(", "def_set", ")", ";", "rtx", "dst", "=", "SET_DEST", "(", "def_set", ")", ";", "if", "(", "GET_CODE", "(", "src", ")", "==", "COMPARE", ")", "return", "convertible_comparison_p", "(", "insn", ",", "mode", ")", ";", "if", "(", "(", "GET_MODE", "(", "src", ")", "!=", "mode", "&&", "!", "CONST_INT_P", "(", "src", ")", ")", "||", "GET_MODE", "(", "dst", ")", "!=", "mode", ")", "return", "false", ";", "if", "(", "!", "REG_P", "(", "dst", ")", "&&", "!", "MEM_P", "(", "dst", ")", ")", "return", "false", ";", "switch", "(", "GET_CODE", "(", "src", ")", ")", "{", "case", "ASHIFTRT", ":", "if", "(", "!", "TARGET_AVX512VL", ")", "return", "false", ";", "case", "ASHIFT", ":", "case", "LSHIFTRT", ":", "if", "(", "!", "CONST_INT_P", "(", "XEXP", "(", "src", ",", "1", ")", ")", "||", "!", "IN_RANGE", "(", "INTVAL", "(", "XEXP", "(", "src", ",", "1", ")", ")", ",", "0", ",", "GET_MODE_BITSIZE", "(", "mode", ")", "-", "1", ")", ")", "return", "false", ";", "break", ";", "case", "SMAX", ":", "case", "SMIN", ":", "case", "UMAX", ":", "case", "UMIN", ":", "if", "(", "(", "mode", "==", "DImode", "&&", "!", "TARGET_AVX512VL", ")", "||", "(", "mode", "==", "SImode", "&&", "!", "TARGET_SSE4_1", ")", ")", "return", "false", ";", "case", "AND", ":", "case", "IOR", ":", "case", "XOR", ":", "case", "PLUS", ":", "case", "MINUS", ":", "if", "(", "!", "REG_P", "(", "XEXP", "(", "src", ",", "1", ")", ")", "&&", "!", "MEM_P", "(", "XEXP", "(", "src", ",", "1", ")", ")", "&&", "!", "CONST_INT_P", "(", "XEXP", "(", "src", ",", "1", ")", ")", ")", "return", "false", ";", "if", "(", "GET_MODE", "(", "XEXP", "(", "src", ",", "1", ")", ")", "!=", "mode", "&&", "!", "CONST_INT_P", "(", "XEXP", "(", "src", ",", "1", ")", ")", ")", "return", "false", ";", "if", "(", "GET_CODE", "(", "src", ")", "!=", "AND", "||", "GET_CODE", "(", "XEXP", "(", "src", ",", "0", ")", ")", "!=", "NOT", ")", "break", ";", "src", "=", "XEXP", "(", "src", ",", "0", ")", ";", "case", "NOT", ":", "break", ";", "case", "NEG", ":", "if", "(", "GET_CODE", "(", "XEXP", "(", "src", ",", "0", ")", ")", "!=", "ABS", ")", "break", ";", "src", "=", "XEXP", "(", "src", ",", "0", ")", ";", "case", "ABS", ":", "if", "(", "(", "mode", "==", "DImode", "&&", "!", "TARGET_AVX512VL", ")", "||", "(", "mode", "==", "SImode", "&&", "!", "TARGET_SSSE3", ")", ")", "return", "false", ";", "break", ";", "case", "REG", ":", "return", "true", ";", "case", "MEM", ":", "case", "CONST_INT", ":", "return", "REG_P", "(", "dst", ")", ";", "default", ":", "return", "false", ";", "}", "if", "(", "!", "REG_P", "(", "XEXP", "(", "src", ",", "0", ")", ")", "&&", "!", "MEM_P", "(", "XEXP", "(", "src", ",", "0", ")", ")", "&&", "!", "CONST_INT_P", "(", "XEXP", "(", "src", ",", "0", ")", ")", ")", "return", "false", ";", "if", "(", "GET_MODE", "(", "XEXP", "(", "src", ",", "0", ")", ")", "!=", "mode", "&&", "!", "CONST_INT_P", "(", "XEXP", "(", "src", ",", "0", ")", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["The", "general", "version", "of", "scalar_to_vector_candidate_p", "."], "TS_V_token": ["i386", "1", "1", "0", "1", "1", "1", "1", "1", "1", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "File": "i386-features", "Func": "general_scalar_to_vector_candidate_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 2998, "Length": 475, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86InstrInfo", "::", "analyzeCompare", "(", "const", "MachineInstr", "&", "MI", ",", "unsigned", "&", "SrcReg", ",", "unsigned", "&", "SrcReg2", ",", "int", "&", "CmpMask", ",", "int", "&", "CmpValue", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "X86", "::", "CMP64ri32", ":", "case", "X86", "::", "CMP64ri8", ":", "case", "X86", "::", "CMP32ri", ":", "case", "X86", "::", "CMP32ri8", ":", "case", "X86", "::", "CMP16ri", ":", "case", "X86", "::", "CMP16ri8", ":", "case", "X86", "::", "CMP8ri", ":", "SrcReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "0", ";", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ";", "return", "true", ";", "case", "X86", "::", "SUB64rm", ":", "case", "X86", "::", "SUB32rm", ":", "case", "X86", "::", "SUB16rm", ":", "case", "X86", "::", "SUB8rm", ":", "SrcReg", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "0", ";", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "0", ";", "return", "true", ";", "case", "X86", "::", "SUB64rr", ":", "case", "X86", "::", "SUB32rr", ":", "case", "X86", "::", "SUB16rr", ":", "case", "X86", "::", "SUB8rr", ":", "SrcReg", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "MI", ".", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ";", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "0", ";", "return", "true", ";", "case", "X86", "::", "SUB64ri32", ":", "case", "X86", "::", "SUB64ri8", ":", "case", "X86", "::", "SUB32ri", ":", "case", "X86", "::", "SUB32ri8", ":", "case", "X86", "::", "SUB16ri", ":", "case", "X86", "::", "SUB16ri8", ":", "case", "X86", "::", "SUB8ri", ":", "SrcReg", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "0", ";", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "MI", ".", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "return", "true", ";", "case", "X86", "::", "CMP64rr", ":", "case", "X86", "::", "CMP32rr", ":", "case", "X86", "::", "CMP16rr", ":", "case", "X86", "::", "CMP8rr", ":", "SrcReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "0", ";", "return", "true", ";", "case", "X86", "::", "TEST8rr", ":", "case", "X86", "::", "TEST16rr", ":", "case", "X86", "::", "TEST32rr", ":", "case", "X86", "::", "TEST64rr", ":", "SrcReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "if", "(", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", "!=", "SrcReg", ")", "return", "false", ";", "SrcReg2", "=", "0", ";", "CmpMask", "=", "~", "0", ";", "CmpValue", "=", "0", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["analyzeCompare", "-", "For", "a", "comparison", "instruction", ",", "return", "the", "source", "registers", "in", "SrcReg", "and", "SrcReg2", "if", "having", "two", "register", "operands", ",", "and", "the", "value", "it", "compares", "against", "in", "CmpValue", "."], "TS_V_token": ["X86", "X86", "X86::CMP64ri32", "X86::CMP64ri8", "X86::CMP32ri", "X86::CMP32ri8", "X86::CMP16ri", "X86::CMP16ri8", "X86::CMP8ri", "0", "0", "0", "1", "X86::SUB64rm", "X86::SUB32rm", "X86::SUB16rm", "X86::SUB8rm", "1", "0", "0", "0", "X86::SUB64rr", "X86::SUB32rr", "X86::SUB16rr", "X86::SUB8rr", "1", "2", "0", "0", "X86::SUB64ri32", "X86::SUB64ri8", "X86::SUB32ri", "X86::SUB32ri8", "X86::SUB16ri", "X86::SUB16ri8", "X86::SUB8ri", "1", "0", "0", "2", "X86::CMP64rr", "X86::CMP32rr", "X86::CMP16rr", "X86::CMP8rr", "0", "1", "0", "0", "X86::TEST8rr", "X86::TEST16rr", "X86::TEST32rr", "X86::TEST64rr", "0", "1", "0", "0", "0"], "File": "X86InstrInfo (2)1", "Func": "analyzeCompare", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 2999, "Length": 424, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mmix_output_octa", "(", "FILE", "*", "stream", ",", "HOST_WIDEST_INT", "value", ",", "int", "do_begin_end", ")", "{", "char", "hex_format", "[", "sizeof", "(", "HOST_WIDEST_INT_PRINT_HEX", ")", "]", ";", "if", "(", "do_begin_end", ")", "fprintf", "(", "stream", ",", "\"\\tOCTA \"", ")", ";", "strcpy", "(", "hex_format", ",", "HOST_WIDEST_INT_PRINT_HEX", ")", ";", "hex_format", "[", "0", "]", "=", "'#'", ";", "hex_format", "[", "1", "]", "=", "'0'", ";", "if", "(", "(", "value", "<", "(", "HOST_WIDEST_INT", ")", "0", "&&", "value", ">", "(", "HOST_WIDEST_INT", ")", "-", "10000", ")", "||", "(", "value", ">=", "(", "HOST_WIDEST_INT", ")", "0", "&&", "value", "<=", "(", "HOST_WIDEST_INT", ")", "16384", ")", ")", "fprintf", "(", "stream", ",", "\"%d\"", ",", "(", "int", ")", "value", ")", ";", "else", "if", "(", "value", ">", "(", "HOST_WIDEST_INT", ")", "0", "&&", "value", "<", "(", "(", "HOST_WIDEST_INT", ")", "1", "<<", "31", ")", "*", "2", ")", "fprintf", "(", "stream", ",", "\"#%x\"", ",", "(", "unsigned", "int", ")", "value", ")", ";", "else", "fprintf", "(", "stream", ",", "hex_format", ",", "value", ")", ";", "if", "(", "do_begin_end", ")", "fprintf", "(", "stream", ",", "\"\\n\"", ")", ";", "}", ""], "natrual_language": ["Print", "a", "64-bit", "value", ",", "optionally", "prefixed", "by", "assembly", "pseudo", "."], "TS_V_token": ["mmix", "\"\\tOCTA \"", "0", "1", "0", "10000", "0", "16384", "\"%d\"", "0", "1", "31", "2", "\"#%x\"", "\"\\n\""], "File": "mmix3", "Func": "mmix_output_octa", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3000, "Length": 161, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64FrameLowering", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MBBI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "CSI", ".", "empty", "(", ")", ")", "return", "false", ";", "static", "const", "LoadStoreMethod", "PossibleClasses", "[", "]", "=", "{", "{", "&", "AArch64", "::", "GPR64RegClass", ",", "AArch64", "::", "LSPair64_LDR", ",", "AArch64", "::", "LS64_LDR", "}", ",", "{", "&", "AArch64", "::", "FPR64RegClass", ",", "AArch64", "::", "LSFPPair64_LDR", ",", "AArch64", "::", "LSFP64_LDR", "}", ",", "}", ";", "const", "unsigned", "NumClasses", "=", "llvm", "::", "array_lengthof", "(", "PossibleClasses", ")", ";", "emitFrameMemOps", "(", "false", ",", "MBB", ",", "MBBI", ",", "CSI", ",", "TRI", ",", "PossibleClasses", ",", "NumClasses", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["restoreCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "restore", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "load", "instructions", "via", "loadRegToStackSlot", "(", ")", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::GPR64RegClass", "AArch64::LSPair64_LDR", "AArch64::LS64_LDR", "AArch64::FPR64RegClass", "AArch64::LSFPPair64_LDR", "AArch64::LSFP64_LDR"], "File": "AArch64FrameLowering24", "Func": "restoreCalleeSavedRegisters", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3001, "Length": 114, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "moxie_compute_frame", "(", "void", ")", "{", "int", "stack_alignment", "=", "STACK_BOUNDARY", "/", "BITS_PER_UNIT", ";", "int", "padding_locals", ";", "int", "regno", ";", "cfun", "->", "machine", "->", "local_vars_size", "=", "get_frame_size", "(", ")", ";", "padding_locals", "=", "cfun", "->", "machine", "->", "local_vars_size", "%", "stack_alignment", ";", "if", "(", "padding_locals", ")", "padding_locals", "=", "stack_alignment", "-", "padding_locals", ";", "cfun", "->", "machine", "->", "local_vars_size", "+=", "padding_locals", ";", "cfun", "->", "machine", "->", "callee_saved_reg_size", "=", "0", ";", "for", "(", "regno", "=", "0", ";", "regno", "<", "FIRST_PSEUDO_REGISTER", ";", "regno", "++", ")", "if", "(", "df_regs_ever_live_p", "(", "regno", ")", "&&", "(", "!", "call_used_or_fixed_reg_p", "(", "regno", ")", ")", ")", "cfun", "->", "machine", "->", "callee_saved_reg_size", "+=", "4", ";", "cfun", "->", "machine", "->", "size_for_adjusting_sp", "=", "crtl", "->", "args", ".", "pretend_args_size", "+", "cfun", "->", "machine", "->", "local_vars_size", "+", "(", "ACCUMULATE_OUTGOING_ARGS", "?", "(", "HOST_WIDE_INT", ")", "crtl", "->", "outgoing_args_size", ":", "0", ")", ";", "}", ""], "natrual_language": ["Compute", "the", "size", "of", "the", "local", "area", "and", "the", "size", "to", "be", "adjusted", "by", "the", "*", "prologue", "and", "epilogue", "."], "TS_V_token": ["moxie", "0", "0", "4", "0"], "File": "moxie", "Func": "moxie_compute_frame", "Target": "moxie", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3002, "Length": 134, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "FixupBWInstPass", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "!", "FixupBWInsts", "||", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "this", "->", "MF", "=", "&", "MF", ";", "TII", "=", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "TRI", "=", "MF", ".", "getRegInfo", "(", ")", ".", "getTargetRegisterInfo", "(", ")", ";", "MLI", "=", "&", "getAnalysis", "<", "MachineLoopInfo", ">", "(", ")", ";", "PSI", "=", "&", "getAnalysis", "<", "ProfileSummaryInfoWrapperPass", ">", "(", ")", ".", "getPSI", "(", ")", ";", "MBFI", "=", "(", "PSI", "&&", "PSI", "->", "hasProfileSummary", "(", ")", ")", "?", "&", "getAnalysis", "<", "LazyMachineBlockFrequencyInfoPass", ">", "(", ")", ".", "getBFI", "(", ")", ":", "nullptr", ";", "LiveRegs", ".", "init", "(", "TII", "->", "getRegisterInfo", "(", ")", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Start X86FixupBWInsts\\n\"", ";", ")", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "processBasicBlock", "(", "MF", ",", "MBB", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"End X86FixupBWInsts\\n\"", ";", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "\"Start X86FixupBWInsts\\n\"", "\"End X86FixupBWInsts\\n\""], "File": "X86FixupBWInsts", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3003, "Length": 161, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "::", "iterator", "X86InstrInfo", "::", "insertOutlinedCall", "(", "Module", "&", "M", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "It", ",", "MachineFunction", "&", "MF", ",", "const", "MachineOutlinerInfo", "&", "MInfo", ")", "const", "{", "if", "(", "MInfo", ".", "CallConstructionID", "==", "MachineOutlinerTailCall", ")", "{", "It", "=", "MBB", ".", "insert", "(", "It", ",", "BuildMI", "(", "MF", ",", "DebugLoc", "(", ")", ",", "get", "(", "X86", "::", "JMP_1", ")", ")", ".", "addGlobalAddress", "(", "M", ".", "getNamedValue", "(", "MF", ".", "getName", "(", ")", ")", ")", ")", ";", "}", "else", "{", "It", "=", "MBB", ".", "insert", "(", "It", ",", "BuildMI", "(", "MF", ",", "DebugLoc", "(", ")", ",", "get", "(", "X86", "::", "CALL64pcrel32", ")", ")", ".", "addGlobalAddress", "(", "M", ".", "getNamedValue", "(", "MF", ".", "getName", "(", ")", ")", ")", ")", ";", "}", "return", "It", ";", "}", ""], "natrual_language": ["Insert", "a", "call", "to", "an", "outlined", "function", "into", "the", "program", "."], "TS_V_token": ["X86", "X86", "X86::JMP_1", "X86::CALL64pcrel32"], "File": "X86InstrInfo113", "Func": "insertOutlinedCall", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3004, "Length": 127, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTargetLowering", "::", "IsEligibleForTailCallOptimization", "(", "SDValue", "Callee", ",", "unsigned", "CalleeCC", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "if", "(", "isVarArg", ")", "return", "false", ";", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "unsigned", "CallerCC", "=", "MF", ".", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", ";", "if", "(", "CalleeCC", "==", "CallingConv", "::", "Fast", "&&", "CallerCC", "==", "CalleeCC", ")", "{", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "Ins", ".", "size", "(", ")", ";", "i", "++", ")", "{", "ISD", "::", "ArgFlagsTy", "Flags", "=", "Ins", "[", "i", "]", ".", "Flags", ";", "if", "(", "Flags", ".", "isByVal", "(", ")", ")", "return", "false", ";", "}", "if", "(", "getTargetMachine", "(", ")", ".", "getRelocationModel", "(", ")", "!=", "Reloc", "::", "PIC_", ")", "return", "true", ";", "if", "(", "GlobalAddressSDNode", "*", "G", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "Callee", ")", ")", "return", "G", "->", "getGlobal", "(", ")", "->", "hasHiddenVisibility", "(", ")", "||", "G", "->", "getGlobal", "(", ")", "->", "hasProtectedVisibility", "(", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["IsEligibleForTailCallOptimization", "-", "Check", "whether", "the", "call", "is", "eligible", "for", "tail", "call", "optimization", "."], "TS_V_token": ["PowerPC", "PPC", "ISD::InputArg", "0", "ISD::ArgFlagsTy"], "File": "PPCISelLowering70", "Func": "IsEligibleForTailCallOptimization", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3005, "Length": 173, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCSymbol", "*", "X86MCInstLower", "::", "GetSymbolFromOperand", "(", "const", "MachineOperand", "&", "MO", ")", "const", "{", "const", "Triple", "&", "TT", "=", "TM", ".", "getTargetTriple", "(", ")", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", "&&", "TT", ".", "isOSBinFormatELF", "(", ")", ")", "return", "AsmPrinter", ".", "getSymbolPreferLocal", "(", "*", "MO", ".", "getGlobal", "(", ")", ")", ";", "const", "DataLayout", "&", "DL", "=", "MF", ".", "getDataLayout", "(", ")", ";", "assert", "(", "(", "MO", ".", "isGlobal", "(", ")", "||", "MO", ".", "isSymbol", "(", ")", "||", "MO", ".", "isMBB", "(", ")", ")", "&&", "\"Isn't a symbol reference\"", ")", ";", "MCSymbol", "*", "Sym", "=", "nullptr", ";", "SmallString", "<", "128", ">", "Name", ";", "StringRef", "Suffix", ";", "switch", "(", "MO", ".", "getTargetFlags", "(", ")", ")", "{", "case", "X86II", "::", "MO_DLLIMPORT", ":", "Name", "+=", "\"__imp_\"", ";", "break", ";", "case", "X86II", "::", "MO_COFFSTUB", ":", "Name", "+=", "\".refptr.\"", ";", "break", ";", "case", "X86II", "::", "MO_DARWIN_NONLAZY", ":", "case", "X86II", "::", "MO_DARWIN_NONLAZY_PIC_BASE", ":", "Suffix", "=", "\"$non_lazy_ptr\"", ";", "break", ";", "}", "if", "(", "!", "Suffix", ".", "empty", "(", ")", ")", "Name", "+=", "DL", ".", "getPrivateGlobalPrefix", "(", ")", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "const", "GlobalValue", "*", "GV", "=", "MO", ".", "getGlobal", "(", ")", ";", "AsmPrinter", ".", "getNameWithPrefix", "(", "Name", ",", "GV", ")", ";", "}", "else", "if", "(", "MO", ".", "isSymbol", "(", ")", ")", "{", "Mangler", "::", "getNameWithPrefix", "(", "Name", ",", "MO", ".", "getSymbolName", "(", ")", ",", "DL", ")", ";", "}", "else", "if", "(", "MO", ".", "isMBB", "(", ")", ")", "{", "assert", "(", "Suffix", ".", "empty", "(", ")", ")", ";", "Sym", "=", "MO", ".", "getMBB", "(", ")", "->", "getSymbol", "(", ")", ";", "}", "Name", "+=", "Suffix", ";", "if", "(", "!", "Sym", ")", "Sym", "=", "Ctx", ".", "getOrCreateSymbol", "(", "Name", ")", ";", "switch", "(", "MO", ".", "getTargetFlags", "(", ")", ")", "{", "default", ":", "break", ";", "case", "X86II", "::", "MO_COFFSTUB", ":", "{", "MachineModuleInfoCOFF", "&", "MMICOFF", "=", "MF", ".", "getMMI", "(", ")", ".", "getObjFileInfo", "<", "MachineModuleInfoCOFF", ">", "(", ")", ";", "MachineModuleInfoImpl", "::", "StubValueTy", "&", "StubSym", "=", "MMICOFF", ".", "getGVStubEntry", "(", "Sym", ")", ";", "if", "(", "!", "StubSym", ".", "getPointer", "(", ")", ")", "{", "assert", "(", "MO", ".", "isGlobal", "(", ")", "&&", "\"Extern symbol not handled yet\"", ")", ";", "StubSym", "=", "MachineModuleInfoImpl", "::", "StubValueTy", "(", "AsmPrinter", ".", "getSymbol", "(", "MO", ".", "getGlobal", "(", ")", ")", ",", "true", ")", ";", "}", "break", ";", "}", "case", "X86II", "::", "MO_DARWIN_NONLAZY", ":", "case", "X86II", "::", "MO_DARWIN_NONLAZY_PIC_BASE", ":", "{", "MachineModuleInfoImpl", "::", "StubValueTy", "&", "StubSym", "=", "getMachOMMI", "(", ")", ".", "getGVStubEntry", "(", "Sym", ")", ";", "if", "(", "!", "StubSym", ".", "getPointer", "(", ")", ")", "{", "assert", "(", "MO", ".", "isGlobal", "(", ")", "&&", "\"Extern symbol not handled yet\"", ")", ";", "StubSym", "=", "MachineModuleInfoImpl", "::", "StubValueTy", "(", "AsmPrinter", ".", "getSymbol", "(", "MO", ".", "getGlobal", "(", ")", ")", ",", "!", "MO", ".", "getGlobal", "(", ")", "->", "hasInternalLinkage", "(", ")", ")", ";", "}", "break", ";", "}", "}", "return", "Sym", ";", "}", ""], "natrual_language": ["Lower", "an", "MO_GlobalAddress", "or", "MO_ExternalSymbol", "operand", "to", "an", "MCSymbol", "."], "TS_V_token": ["X86", "X86", "\"Isn't a symbol reference\"", "128", "X86II::MO_DLLIMPORT", "\"__imp_\"", "X86II::MO_COFFSTUB", "\".refptr.\"", "X86II::MO_DARWIN_NONLAZY", "X86II::MO_DARWIN_NONLAZY_PIC_BASE", "\"$non_lazy_ptr\"", "X86II::MO_COFFSTUB", "\"Extern symbol not handled yet\"", "X86II::MO_DARWIN_NONLAZY", "X86II::MO_DARWIN_NONLAZY_PIC_BASE", "\"Extern symbol not handled yet\""], "File": "X86MCInstLower10", "Func": "GetSymbolFromOperand", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3006, "Length": 452, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Thumb2InstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "RC", "==", "ARM", "::", "GPRRegisterClass", "||", "RC", "==", "ARM", "::", "tGPRRegisterClass", "||", "RC", "==", "ARM", "::", "tcGPRRegisterClass", "||", "RC", "==", "ARM", "::", "rGPRRegisterClass", "||", "RC", "==", "ARM", "::", "GPRnopcRegisterClass", ")", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "*", "MF", ".", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "(", "PseudoSourceValue", "::", "getFixedStack", "(", "FI", ")", ")", ",", "MachineMemOperand", "::", "MOStore", ",", "MFI", ".", "getObjectSize", "(", "FI", ")", ",", "MFI", ".", "getObjectAlignment", "(", "FI", ")", ")", ";", "AddDefaultPred", "(", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "t2STRi12", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ")", ";", "return", ";", "}", "ARMBaseInstrInfo", "::", "storeRegToStackSlot", "(", "MBB", ",", "I", ",", "SrcReg", ",", "isKill", ",", "FI", ",", "RC", ",", "TRI", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARM", "ARM::GPRRegisterClass", "ARM::tGPRRegisterClass", "ARM::tcGPRRegisterClass", "ARM::rGPRRegisterClass", "ARM::GPRnopcRegisterClass", "ARM::t2STRi12", "0", "ARM"], "File": "Thumb2InstrInfo63", "Func": "storeRegToStackSlot", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3007, "Length": 215, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_legitimate_constant_p", "(", "machine_mode", "mode", ",", "rtx", "x", ")", "{", "switch", "(", "GET_CODE", "(", "x", ")", ")", "{", "case", "CONST", ":", "x", "=", "XEXP", "(", "x", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "PLUS", ")", "{", "if", "(", "!", "CONST_INT_P", "(", "XEXP", "(", "x", ",", "1", ")", ")", ")", "return", "false", ";", "x", "=", "XEXP", "(", "x", ",", "0", ")", ";", "}", "if", "(", "TARGET_MACHO", "&&", "darwin_local_data_pic", "(", "x", ")", ")", "return", "true", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "UNSPEC", ")", "switch", "(", "XINT", "(", "x", ",", "1", ")", ")", "{", "case", "UNSPEC_GOT", ":", "case", "UNSPEC_GOTOFF", ":", "case", "UNSPEC_PLTOFF", ":", "return", "TARGET_64BIT", ";", "case", "UNSPEC_TPOFF", ":", "case", "UNSPEC_NTPOFF", ":", "x", "=", "XVECEXP", "(", "x", ",", "0", ",", "0", ")", ";", "return", "(", "GET_CODE", "(", "x", ")", "==", "SYMBOL_REF", "&&", "SYMBOL_REF_TLS_MODEL", "(", "x", ")", "==", "TLS_MODEL_LOCAL_EXEC", ")", ";", "case", "UNSPEC_DTPOFF", ":", "x", "=", "XVECEXP", "(", "x", ",", "0", ",", "0", ")", ";", "return", "(", "GET_CODE", "(", "x", ")", "==", "SYMBOL_REF", "&&", "SYMBOL_REF_TLS_MODEL", "(", "x", ")", "==", "TLS_MODEL_LOCAL_DYNAMIC", ")", ";", "default", ":", "return", "false", ";", "}", "if", "(", "GET_CODE", "(", "x", ")", "==", "LABEL_REF", ")", "return", "true", ";", "if", "(", "GET_CODE", "(", "x", ")", "!=", "SYMBOL_REF", ")", "return", "false", ";", "case", "SYMBOL_REF", ":", "if", "(", "SYMBOL_REF_TLS_MODEL", "(", "x", ")", ")", "return", "false", ";", "if", "(", "TARGET_DLLIMPORT_DECL_ATTRIBUTES", "&&", "SYMBOL_REF_DLLIMPORT_P", "(", "x", ")", ")", "return", "false", ";", "if", "(", "MACHO_DYNAMIC_NO_PIC_P", ")", "return", "machopic_symbol_defined_p", "(", "x", ")", ";", "if", "(", "ix86_force_load_from_GOT_p", "(", "x", ")", ")", "return", "false", ";", "break", ";", "CASE_CONST_SCALAR_INT", ":", "if", "(", "ix86_endbr_immediate_operand", "(", "x", ",", "VOIDmode", ")", ")", "return", "false", ";", "switch", "(", "mode", ")", "{", "case", "E_TImode", ":", "if", "(", "TARGET_64BIT", ")", "return", "true", ";", "case", "E_OImode", ":", "case", "E_XImode", ":", "if", "(", "!", "standard_sse_constant_p", "(", "x", ",", "mode", ")", "&&", "GET_MODE_SIZE", "(", "TARGET_AVX512F", "?", "XImode", ":", "(", "TARGET_AVX", "?", "OImode", ":", "(", "TARGET_SSE2", "?", "TImode", ":", "DImode", ")", ")", ")", "<", "GET_MODE_SIZE", "(", "mode", ")", ")", "return", "false", ";", "default", ":", "break", ";", "}", "break", ";", "case", "CONST_VECTOR", ":", "if", "(", "!", "standard_sse_constant_p", "(", "x", ",", "mode", ")", ")", "return", "false", ";", "default", ":", "break", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Determine", "if", "a", "given", "RTX", "is", "a", "valid", "constant", ".", "We", "already", "know", "this", "satisfies", "CONSTANT_P", "."], "TS_V_token": ["i386", "0", "1", "0", "1", "0", "0", "0", "0"], "File": "i386", "Func": "ix86_legitimate_constant_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3008, "Length": 358, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCPassConfig", "::", "addPreSched2", "(", ")", "{", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "&", "IfConverterID", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "after", "prolog-epilog", "insertion", "and", "before", "the", "second", "instruction", "scheduling", "pass", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCTargetMachine (2)", "Func": "addPreSched2", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3009, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"PPC Generate Scalar MASS Entries\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["PowerPC", "\"PPC Generate Scalar MASS Entries\""], "File": "PPCGenScalarMASSEntries", "Func": "getPassName", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3010, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MVETPAndVPTOptimisations", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "Fn", ")", "{", "const", "ARMSubtarget", "&", "STI", "=", "static_cast", "<", "const", "ARMSubtarget", "&", ">", "(", "Fn", ".", "getSubtarget", "(", ")", ")", ";", "if", "(", "!", "STI", ".", "isThumb2", "(", ")", "||", "!", "STI", ".", "hasLOB", "(", ")", ")", "return", "false", ";", "TII", "=", "static_cast", "<", "const", "Thumb2InstrInfo", "*", ">", "(", "STI", ".", "getInstrInfo", "(", ")", ")", ";", "MRI", "=", "&", "Fn", ".", "getRegInfo", "(", ")", ";", "MachineLoopInfo", "*", "MLI", "=", "&", "getAnalysis", "<", "MachineLoopInfo", ">", "(", ")", ";", "MachineDominatorTree", "*", "DT", "=", "&", "getAnalysis", "<", "MachineDominatorTree", ">", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"********** ARM MVE VPT Optimisations **********\\n\"", "<<", "\"********** Function: \"", "<<", "Fn", ".", "getName", "(", ")", "<<", "'\\n'", ")", ";", "bool", "Modified", "=", "false", ";", "for", "(", "MachineLoop", "*", "ML", ":", "MLI", "->", "getBase", "(", ")", ".", "getLoopsInPreorder", "(", ")", ")", "{", "Modified", "|=", "LowerWhileLoopStart", "(", "ML", ")", ";", "Modified", "|=", "MergeLoopEnd", "(", "ML", ")", ";", "Modified", "|=", "ConvertTailPredLoop", "(", "ML", ",", "DT", ")", ";", "}", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "Fn", ")", "{", "Modified", "|=", "HintDoLoopStartReg", "(", "MBB", ")", ";", "Modified", "|=", "ReplaceConstByVPNOTs", "(", "MBB", ",", "DT", ")", ";", "Modified", "|=", "ReplaceVCMPsByVPNOTs", "(", "MBB", ")", ";", "Modified", "|=", "ReduceOldVCCRValueUses", "(", "MBB", ")", ";", "Modified", "|=", "ConvertVPSEL", "(", "MBB", ")", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"**************************************\\n\"", ")", ";", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "\"********** ARM MVE VPT Optimisations **********\\n\"", "\"********** Function: \"", "\"**************************************\\n\""], "File": "MVETPAndVPTOptimisationsPass", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3011, "Length": 222, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "function_arg_boundary", "(", "enum", "machine_mode", "mode", ",", "tree", "type", ")", "{", "if", "(", "DEFAULT_ABI", "==", "ABI_V4", "&&", "GET_MODE_SIZE", "(", "mode", ")", "==", "8", ")", "return", "64", ";", "else", "if", "(", "SPE_VECTOR_MODE", "(", "mode", ")", "||", "(", "type", "&&", "TREE_CODE", "(", "type", ")", "==", "VECTOR_TYPE", "&&", "int_size_in_bytes", "(", "type", ")", ">=", "8", "&&", "int_size_in_bytes", "(", "type", ")", "<", "16", ")", ")", "return", "64", ";", "else", "if", "(", "ALTIVEC_VECTOR_MODE", "(", "mode", ")", "||", "(", "type", "&&", "TREE_CODE", "(", "type", ")", "==", "VECTOR_TYPE", "&&", "int_size_in_bytes", "(", "type", ")", ">=", "16", ")", ")", "return", "128", ";", "else", "if", "(", "rs6000_darwin64_abi", "&&", "mode", "==", "BLKmode", "&&", "type", "&&", "TYPE_ALIGN", "(", "type", ")", ">", "64", ")", "return", "128", ";", "else", "return", "PARM_BOUNDARY", ";", "}", ""], "natrual_language": ["If", "defined", ",", "a", "C", "expression", "that", "gives", "the", "alignment", "boundary", ",", "in", "bits", ",", "of", "an", "argument", "with", "the", "specified", "mode", "and", "type", ".", "If", "it", "is", "not", "defined", ",", "PARM_BOUNDARY", "is", "used", "for", "all", "arguments", ".", "V.4", "wants", "long", "longs", "to", "be", "double", "word", "aligned", ".", "Doubleword", "align", "SPE", "vectors", ".", "Quadword", "align", "Altivec", "vectors", ".", "Quadword", "align", "large", "synthetic", "vector", "types", "."], "TS_V_token": ["rs6000", "8", "64", "8", "16", "64", "16", "128", "64", "128"], "File": "rs60003", "Func": "function_arg_boundary", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3012, "Length": 118, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isVectorClearMaskLegal", "(", "const", "SmallVectorImpl", "<", "int", ">", "&", "Mask", ",", "EVT", "VT", ")", "const", "{", "unsigned", "NumElts", "=", "VT", ".", "getVectorNumElements", "(", ")", ";", "if", "(", "NumElts", "==", "2", ")", "return", "true", ";", "if", "(", "NumElts", "==", "4", "&&", "VT", ".", "is128BitVector", "(", ")", ")", "{", "return", "(", "isMOVLMask", "(", "Mask", ",", "VT", ")", "||", "isCommutedMOVLMask", "(", "Mask", ",", "VT", ",", "true", ")", "||", "isSHUFPMask", "(", "Mask", ",", "VT", ",", "Subtarget", "->", "hasFp256", "(", ")", ")", "||", "isSHUFPMask", "(", "Mask", ",", "VT", ",", "Subtarget", "->", "hasFp256", "(", ")", ",", "true", ")", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Similar", "to", "isShuffleMaskLegal", "."], "TS_V_token": ["X86", "X86", "2", "4"], "File": "X86ISelLowering (2)2", "Func": "isVectorClearMaskLegal", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3013, "Length": 101, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "SystemZSubtarget", ">", "(", ")", ";", "return", "SelectionDAGISel", "::", "runOnMachineFunction", "(", "MF", ")", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZISelDAGToDAG (2)", "Func": "runOnMachineFunction", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3014, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCAsmParser", "::", "ParseDirective", "(", "AsmToken", "DirectiveID", ")", "{", "StringRef", "IDVal", "=", "DirectiveID", ".", "getIdentifier", "(", ")", ";", "if", "(", "!", "isDarwin", "(", ")", ")", "{", "if", "(", "IDVal", "==", "\".word\"", ")", "return", "ParseDirectiveWord", "(", "2", ",", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "if", "(", "IDVal", "==", "\".llong\"", ")", "return", "ParseDirectiveWord", "(", "8", ",", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "if", "(", "IDVal", "==", "\".tc\"", ")", "return", "ParseDirectiveTC", "(", "isPPC64", "(", ")", "?", "8", ":", "4", ",", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "if", "(", "IDVal", "==", "\".machine\"", ")", "return", "ParseDirectiveMachine", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "}", "else", "{", "if", "(", "IDVal", "==", "\".machine\"", ")", "return", "ParseDarwinDirectiveMachine", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["ParseDirective", "-", "Parse", "a", "target", "specific", "assembler", "directive", "This", "method", "is", "deprecated", ",", "use", "'parseDirective", "'", "instead", "."], "TS_V_token": ["PowerPC", "PPC", "\".word\"", "2", "\".llong\"", "8", "\".tc\"", "PPC", "8", "4", "\".machine\"", "\".machine\""], "File": "PPCAsmParser (2)", "Func": "ParseDirective", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3015, "Length": 126, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86PassConfig", "::", "addPreEmitPass", "(", ")", "{", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "addPass", "(", "new", "X86ExecutionDomainFix", "(", ")", ")", ";", "addPass", "(", "createBreakFalseDeps", "(", ")", ")", ";", "}", "addPass", "(", "createX86IndirectBranchTrackingPass", "(", ")", ")", ";", "addPass", "(", "createX86IssueVZeroUpperPass", "(", ")", ")", ";", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "addPass", "(", "createX86FixupBWInsts", "(", ")", ")", ";", "addPass", "(", "createX86PadShortFunctions", "(", ")", ")", ";", "addPass", "(", "createX86FixupLEAs", "(", ")", ")", ";", "}", "addPass", "(", "createX86EvexToVexInsts", "(", ")", ")", ";", "addPass", "(", "createX86DiscriminateMemOpsPass", "(", ")", ")", ";", "addPass", "(", "createX86InsertPrefetchPass", "(", ")", ")", ";", "addPass", "(", "createX86InsertX87waitPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86"], "File": "X86TargetMachine114", "Func": "addPreEmitPass", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3016, "Length": 110, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "ARMTargetLowering", "::", "BuildSDIVPow2", "(", "SDNode", "*", "N", ",", "const", "APInt", "&", "Divisor", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDNode", "*", ">", "&", "Created", ")", "const", "{", "if", "(", "N", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "SDIV", ")", "return", "SDValue", "(", ")", ";", "const", "auto", "&", "ST", "=", "static_cast", "<", "const", "ARMSubtarget", "&", ">", "(", "DAG", ".", "getSubtarget", "(", ")", ")", ";", "const", "bool", "MinSize", "=", "ST", ".", "hasMinSize", "(", ")", ";", "const", "bool", "HasDivide", "=", "ST", ".", "isThumb", "(", ")", "?", "ST", ".", "hasDivideInThumbMode", "(", ")", ":", "ST", ".", "hasDivideInARMMode", "(", ")", ";", "if", "(", "N", "->", "getOperand", "(", "0", ")", ".", "getValueType", "(", ")", ".", "isVector", "(", ")", ")", "return", "SDValue", "(", ")", ";", "if", "(", "!", "(", "MinSize", "&&", "HasDivide", ")", ")", "return", "SDValue", "(", ")", ";", "if", "(", "!", "ST", ".", "isThumb", "(", ")", ")", "return", "SDValue", "(", "N", ",", "0", ")", ";", "if", "(", "Divisor", ".", "sgt", "(", "128", ")", ")", "return", "SDValue", "(", ")", ";", "return", "SDValue", "(", "N", ",", "0", ")", ";", "}", ""], "natrual_language": ["Targets", "may", "override", "this", "function", "to", "provide", "custom", "SDIV", "lowering", "for", "power-of-2", "denominators", "."], "TS_V_token": ["ARM", "ARM", "ISD::SDIV", "ARM", "ARM", "0", "0", "128", "0"], "File": "ARMISelLowering (2)5", "Func": "BuildSDIVPow2", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3017, "Length": 172, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARM64MCCodeEmitter", "::", "getMachineOpValue", "(", "const", "MCInst", "&", "MI", ",", "const", "MCOperand", "&", "MO", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "if", "(", "MO", ".", "isReg", "(", ")", ")", "return", "Ctx", ".", "getRegisterInfo", "(", ")", "->", "getEncodingValue", "(", "MO", ".", "getReg", "(", ")", ")", ";", "else", "{", "assert", "(", "MO", ".", "isImm", "(", ")", "&&", "\"did not expect relocated expression\"", ")", ";", "return", "static_cast", "<", "unsigned", ">", "(", "MO", ".", "getImm", "(", ")", ")", ";", "}", "assert", "(", "0", "&&", "\"Unable to encode MCOperand!\"", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["getMachineOpValue", "-", "Return", "binary", "encoding", "of", "operand", "."], "TS_V_token": ["ARM64", "ARM64", "\"did not expect relocated expression\"", "0", "\"Unable to encode MCOperand!\"", "0"], "File": "ARM64MCCodeEmitter", "Func": "getMachineOpValue", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3018, "Length": 91, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86PassConfig", "::", "addPreEmitPass2", "(", ")", "{", "const", "Triple", "&", "TT", "=", "TM", "->", "getTargetTriple", "(", ")", ";", "const", "MCAsmInfo", "*", "MAI", "=", "TM", "->", "getMCAsmInfo", "(", ")", ";", "addPass", "(", "createX86SpeculativeExecutionSideEffectSuppression", "(", ")", ")", ";", "addPass", "(", "createX86IndirectThunksPass", "(", ")", ")", ";", "if", "(", "TT", ".", "isOSWindows", "(", ")", "&&", "TT", ".", "getArch", "(", ")", "==", "Triple", "::", "x86_64", ")", "addPass", "(", "createX86AvoidTrailingCallPass", "(", ")", ")", ";", "if", "(", "!", "TT", ".", "isOSDarwin", "(", ")", "&&", "(", "!", "TT", ".", "isOSWindows", "(", ")", "||", "MAI", "->", "getExceptionHandlingType", "(", ")", "==", "ExceptionHandling", "::", "DwarfCFI", ")", ")", "addPass", "(", "createCFIInstrInserter", "(", ")", ")", ";", "if", "(", "TT", ".", "isOSWindows", "(", ")", ")", "addPass", "(", "createCFGuardLongjmpPass", "(", ")", ")", ";", "addPass", "(", "createX86LoadValueInjectionRetHardeningPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["Targets", "may", "add", "passes", "immediately", "before", "machine", "code", "is", "emitted", "in", "this", "callback", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86"], "File": "X86TargetMachine14", "Func": "addPreEmitPass2", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3019, "Length": 126, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "HOST_WIDE_INT", "rs6000_builtin_mask_calculate", "(", "void", ")", "{", "return", "(", "(", "(", "TARGET_ALTIVEC", ")", "?", "RS6000_BTM_ALTIVEC", ":", "0", ")", "|", "(", "(", "TARGET_CMPB", ")", "?", "RS6000_BTM_CMPB", ":", "0", ")", "|", "(", "(", "TARGET_VSX", ")", "?", "RS6000_BTM_VSX", ":", "0", ")", "|", "(", "(", "TARGET_SPE", ")", "?", "RS6000_BTM_SPE", ":", "0", ")", "|", "(", "(", "TARGET_PAIRED_FLOAT", ")", "?", "RS6000_BTM_PAIRED", ":", "0", ")", "|", "(", "(", "TARGET_FRE", ")", "?", "RS6000_BTM_FRE", ":", "0", ")", "|", "(", "(", "TARGET_FRES", ")", "?", "RS6000_BTM_FRES", ":", "0", ")", "|", "(", "(", "TARGET_FRSQRTE", ")", "?", "RS6000_BTM_FRSQRTE", ":", "0", ")", "|", "(", "(", "TARGET_FRSQRTES", ")", "?", "RS6000_BTM_FRSQRTES", ":", "0", ")", "|", "(", "(", "TARGET_POPCNTD", ")", "?", "RS6000_BTM_POPCNTD", ":", "0", ")", "|", "(", "(", "rs6000_cpu", "==", "PROCESSOR_CELL", ")", "?", "RS6000_BTM_CELL", ":", "0", ")", "|", "(", "(", "TARGET_P8_VECTOR", ")", "?", "RS6000_BTM_P8_VECTOR", ":", "0", ")", "|", "(", "(", "TARGET_P9_VECTOR", ")", "?", "RS6000_BTM_P9_VECTOR", ":", "0", ")", "|", "(", "(", "TARGET_P9_MISC", ")", "?", "RS6000_BTM_P9_MISC", ":", "0", ")", "|", "(", "(", "TARGET_MODULO", ")", "?", "RS6000_BTM_MODULO", ":", "0", ")", "|", "(", "(", "TARGET_64BIT", ")", "?", "RS6000_BTM_64BIT", ":", "0", ")", "|", "(", "(", "TARGET_CRYPTO", ")", "?", "RS6000_BTM_CRYPTO", ":", "0", ")", "|", "(", "(", "TARGET_HTM", ")", "?", "RS6000_BTM_HTM", ":", "0", ")", "|", "(", "(", "TARGET_DFP", ")", "?", "RS6000_BTM_DFP", ":", "0", ")", "|", "(", "(", "TARGET_HARD_FLOAT", ")", "?", "RS6000_BTM_HARD_FLOAT", ":", "0", ")", "|", "(", "(", "TARGET_LONG_DOUBLE_128", ")", "?", "RS6000_BTM_LDBL128", ":", "0", ")", "|", "(", "(", "TARGET_FLOAT128_TYPE", ")", "?", "RS6000_BTM_FLOAT128", ":", "0", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "builtin", "mask", "of", "the", "various", "options", "used", "that", "could", "affect", "which", "builtins", "were", "used", ".", "In", "the", "past", "we", "used", "target_flags", ",", "but", "we", "'ve", "run", "out", "of", "bits", ",", "and", "some", "options", "like", "PAIRED", "are", "no", "longer", "in", "target_flags", "."], "TS_V_token": ["powerpcspe", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "File": "powerpcspe", "Func": "rs6000_builtin_mask_calculate", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3020, "Length": 232, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_init_mve_builtins", "(", "void", ")", "{", "volatile", "unsigned", "int", "i", ",", "fcode", "=", "ARM_BUILTIN_MVE_PATTERN_START", ";", "arm_init_simd_builtin_scalar_types", "(", ")", ";", "arm_init_simd_builtin_types", "(", ")", ";", "tree", "get_fpscr_nzcvqc", "=", "build_function_type_list", "(", "intSI_type_node", ",", "NULL", ")", ";", "tree", "set_fpscr_nzcvqc", "=", "build_function_type_list", "(", "void_type_node", ",", "intSI_type_node", ",", "NULL", ")", ";", "arm_builtin_decls", "[", "ARM_BUILTIN_GET_FPSCR_NZCVQC", "]", "=", "add_builtin_function", "(", "\"__builtin_arm_get_fpscr_nzcvqc\"", ",", "get_fpscr_nzcvqc", ",", "ARM_BUILTIN_GET_FPSCR_NZCVQC", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";", "arm_builtin_decls", "[", "ARM_BUILTIN_SET_FPSCR_NZCVQC", "]", "=", "add_builtin_function", "(", "\"__builtin_arm_set_fpscr_nzcvqc\"", ",", "set_fpscr_nzcvqc", ",", "ARM_BUILTIN_SET_FPSCR_NZCVQC", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "ARRAY_SIZE", "(", "mve_builtin_data", ")", ";", "i", "++", ",", "fcode", "++", ")", "{", "arm_builtin_datum", "*", "d", "=", "&", "mve_builtin_data", "[", "i", "]", ";", "arm_init_builtin", "(", "fcode", ",", "d", ",", "\"__builtin_mve\"", ")", ";", "}", "}", ""], "natrual_language": ["Set", "up", "all", "the", "MVE", "builtins", "mentioned", "in", "arm_mve_builtins.def", "file", "."], "TS_V_token": ["arm", "\"__builtin_arm_get_fpscr_nzcvqc\"", "\"__builtin_arm_set_fpscr_nzcvqc\"", "0", "\"__builtin_mve\""], "File": "arm-builtins", "Func": "arm_init_mve_builtins", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3021, "Length": 127, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Align", "ARMTargetLowering", "::", "getABIAlignmentForCallingConv", "(", "Type", "*", "ArgTy", ",", "DataLayout", "DL", ")", "const", "{", "const", "Align", "ABITypeAlign", "=", "DL", ".", "getABITypeAlign", "(", "ArgTy", ")", ";", "if", "(", "!", "ArgTy", "->", "isVectorTy", "(", ")", ")", "return", "ABITypeAlign", ";", "return", "std", "::", "min", "(", "ABITypeAlign", ",", "DL", ".", "getStackAlignment", "(", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "correct", "alignment", "for", "the", "current", "calling", "convention", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMISelLowering103", "Func": "getABIAlignmentForCallingConv", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3022, "Length": 52, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_density_test", "(", "rs6000_cost_data", "*", "data", ")", "{", "const", "int", "DENSITY_PCT_THRESHOLD", "=", "85", ";", "const", "int", "DENSITY_SIZE_THRESHOLD", "=", "70", ";", "const", "int", "DENSITY_PENALTY", "=", "10", ";", "struct", "loop", "*", "loop", "=", "data", "->", "loop_info", ";", "basic_block", "*", "bbs", "=", "get_loop_body", "(", "loop", ")", ";", "int", "nbbs", "=", "loop", "->", "num_nodes", ";", "int", "vec_cost", "=", "data", "->", "cost", "[", "vect_body", "]", ",", "not_vec_cost", "=", "0", ";", "int", "i", ",", "density_pct", ";", "for", "(", "i", "=", "0", ";", "i", "<", "nbbs", ";", "i", "++", ")", "{", "basic_block", "bb", "=", "bbs", "[", "i", "]", ";", "gimple_stmt_iterator", "gsi", ";", "for", "(", "gsi", "=", "gsi_start_bb", "(", "bb", ")", ";", "!", "gsi_end_p", "(", "gsi", ")", ";", "gsi_next", "(", "&", "gsi", ")", ")", "{", "gimple", "*", "stmt", "=", "gsi_stmt", "(", "gsi", ")", ";", "stmt_vec_info", "stmt_info", "=", "vinfo_for_stmt", "(", "stmt", ")", ";", "if", "(", "!", "STMT_VINFO_RELEVANT_P", "(", "stmt_info", ")", "&&", "!", "STMT_VINFO_IN_PATTERN_P", "(", "stmt_info", ")", ")", "not_vec_cost", "++", ";", "}", "}", "free", "(", "bbs", ")", ";", "density_pct", "=", "(", "vec_cost", "*", "100", ")", "/", "(", "vec_cost", "+", "not_vec_cost", ")", ";", "if", "(", "density_pct", ">", "DENSITY_PCT_THRESHOLD", "&&", "vec_cost", "+", "not_vec_cost", ">", "DENSITY_SIZE_THRESHOLD", ")", "{", "data", "->", "cost", "[", "vect_body", "]", "=", "vec_cost", "*", "(", "100", "+", "DENSITY_PENALTY", ")", "/", "100", ";", "if", "(", "dump_enabled_p", "(", ")", ")", "dump_printf_loc", "(", "MSG_NOTE", ",", "vect_location", ",", "\"density %d%%, cost %d exceeds threshold, penalizing \"", "\"loop body cost by %d%%\"", ",", "density_pct", ",", "vec_cost", "+", "not_vec_cost", ",", "DENSITY_PENALTY", ")", ";", "}", "}", ""], "natrual_language": ["Test", "for", "likely", "overcommitment", "of", "vector", "hardware", "resources", ".", "If", "a", "loop", "iteration", "is", "relatively", "large", ",", "and", "too", "large", "a", "percentage", "of", "instructions", "in", "the", "loop", "are", "vectorized", ",", "the", "cost", "model", "may", "not", "adequately", "reflect", "delays", "from", "unavailable", "vector", "resources", ".", "Penalize", "the", "loop", "body", "cost", "for", "this", "case", "."], "TS_V_token": ["powerpcspe", "85", "70", "10", "0", "0", "100", "100", "100", "\"density %d%%, cost %d exceeds threshold, penalizing \"", "\"loop body cost by %d%%\""], "File": "powerpcspe", "Func": "rs6000_density_test", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3023, "Length": 229, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCFixupKindInfo", "&", "getFixupKindInfo", "(", "MCFixupKind", "Kind", ")", "const", "{", "const", "static", "MCFixupKindInfo", "Infos", "[", "ARM", "::", "NumTargetFixupKinds", "]", "=", "{", "{", "\"fixup_arm_ldst_pcrel_12\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_t2_ldst_pcrel_12\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "|", "MCFixupKindInfo", "::", "FKF_IsAlignedDownTo32Bits", "}", ",", "{", "\"fixup_arm_pcrel_10_unscaled\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_arm_pcrel_10\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_t2_pcrel_10\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "|", "MCFixupKindInfo", "::", "FKF_IsAlignedDownTo32Bits", "}", ",", "{", "\"fixup_thumb_adr_pcrel_10\"", ",", "0", ",", "8", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "|", "MCFixupKindInfo", "::", "FKF_IsAlignedDownTo32Bits", "}", ",", "{", "\"fixup_arm_adr_pcrel_12\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_t2_adr_pcrel_12\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "|", "MCFixupKindInfo", "::", "FKF_IsAlignedDownTo32Bits", "}", ",", "{", "\"fixup_arm_condbranch\"", ",", "0", ",", "24", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_arm_uncondbranch\"", ",", "0", ",", "24", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_t2_condbranch\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_t2_uncondbranch\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_arm_thumb_br\"", ",", "0", ",", "16", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_arm_bl\"", ",", "0", ",", "24", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_arm_blx\"", ",", "0", ",", "24", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_arm_thumb_bl\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_arm_thumb_blx\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_arm_thumb_cb\"", ",", "0", ",", "16", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_arm_thumb_cp\"", ",", "0", ",", "8", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_arm_thumb_bcc\"", ",", "0", ",", "8", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_arm_movt_hi16\"", ",", "0", ",", "20", ",", "0", "}", ",", "{", "\"fixup_arm_movw_lo16\"", ",", "0", ",", "20", ",", "0", "}", ",", "{", "\"fixup_t2_movt_hi16\"", ",", "0", ",", "20", ",", "0", "}", ",", "{", "\"fixup_t2_movw_lo16\"", ",", "0", ",", "20", ",", "0", "}", ",", "{", "\"fixup_arm_movt_hi16_pcrel\"", ",", "0", ",", "20", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_arm_movw_lo16_pcrel\"", ",", "0", ",", "20", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_t2_movt_hi16_pcrel\"", ",", "0", ",", "20", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_t2_movw_lo16_pcrel\"", ",", "0", ",", "20", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "}", ";", "if", "(", "Kind", "<", "FirstTargetFixupKind", ")", "return", "MCAsmBackend", "::", "getFixupKindInfo", "(", "Kind", ")", ";", "assert", "(", "unsigned", "(", "Kind", "-", "FirstTargetFixupKind", ")", "<", "getNumFixupKinds", "(", ")", "&&", "\"Invalid kind!\"", ")", ";", "return", "Infos", "[", "Kind", "-", "FirstTargetFixupKind", "]", ";", "}", ""], "natrual_language": ["Get", "information", "on", "a", "fixup", "kind", "."], "TS_V_token": ["ARM", "ARM::NumTargetFixupKinds", "\"fixup_arm_ldst_pcrel_12\"", "0", "32", "\"fixup_t2_ldst_pcrel_12\"", "0", "32", "\"fixup_arm_pcrel_10_unscaled\"", "0", "32", "\"fixup_arm_pcrel_10\"", "0", "32", "\"fixup_t2_pcrel_10\"", "0", "32", "\"fixup_thumb_adr_pcrel_10\"", "0", "8", "\"fixup_arm_adr_pcrel_12\"", "0", "32", "\"fixup_t2_adr_pcrel_12\"", "0", "32", "\"fixup_arm_condbranch\"", "0", "24", "\"fixup_arm_uncondbranch\"", "0", "24", "\"fixup_t2_condbranch\"", "0", "32", "\"fixup_t2_uncondbranch\"", "0", "32", "\"fixup_arm_thumb_br\"", "0", "16", "\"fixup_arm_bl\"", "0", "24", "\"fixup_arm_blx\"", "0", "24", "\"fixup_arm_thumb_bl\"", "0", "32", "\"fixup_arm_thumb_blx\"", "0", "32", "\"fixup_arm_thumb_cb\"", "0", "16", "\"fixup_arm_thumb_cp\"", "0", "8", "\"fixup_arm_thumb_bcc\"", "0", "8", "\"fixup_arm_movt_hi16\"", "0", "20", "0", "\"fixup_arm_movw_lo16\"", "0", "20", "0", "\"fixup_t2_movt_hi16\"", "0", "20", "0", "\"fixup_t2_movw_lo16\"", "0", "20", "0", "\"fixup_arm_movt_hi16_pcrel\"", "0", "20", "\"fixup_arm_movw_lo16_pcrel\"", "0", "20", "\"fixup_t2_movt_hi16_pcrel\"", "0", "20", "\"fixup_t2_movw_lo16_pcrel\"", "0", "20", "\"Invalid kind!\""], "File": "ARMAsmBackend81", "Func": "getFixupKindInfo", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3024, "Length": 406, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "enableShrinkWrapping", "(", "const", "MachineFunction", "&", "MF", ")", "const", "override", "{", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "will", "correctly", "handle", "shrink", "wrapping", "."], "TS_V_token": ["AArch64"], "File": "AArch64FrameLowering (2)1", "Func": "enableShrinkWrapping", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3025, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "sh_split_movrt_negc_to_movt_xor", "(", "rtx_insn", "*", "curr_insn", ",", "rtx", "operands", "[", "]", ")", "{", "if", "(", "!", "can_create_pseudo_p", "(", ")", ")", "return", "false", ";", "set_of_reg", "t_before_negc", "=", "sh_find_set_of_reg", "(", "get_t_reg_rtx", "(", ")", ",", "curr_insn", ",", "prev_nonnote_insn_bb", ")", ";", "set_of_reg", "t_after_negc", "=", "sh_find_set_of_reg", "(", "get_t_reg_rtx", "(", ")", ",", "curr_insn", ",", "next_nonnote_insn_bb", ")", ";", "if", "(", "t_before_negc", ".", "set_rtx", "!=", "NULL_RTX", "&&", "t_after_negc", ".", "set_rtx", "!=", "NULL_RTX", "&&", "rtx_equal_p", "(", "t_before_negc", ".", "set_rtx", ",", "t_after_negc", ".", "set_rtx", ")", "&&", "!", "reg_used_between_p", "(", "get_t_reg_rtx", "(", ")", ",", "curr_insn", ",", "t_after_negc", ".", "insn", ")", "&&", "!", "sh_insn_operands_modified_between_p", "(", "t_before_negc", ".", "insn", ",", "t_before_negc", ".", "insn", ",", "t_after_negc", ".", "insn", ")", "&&", "!", "modified_between_p", "(", "get_t_reg_rtx", "(", ")", ",", "curr_insn", ",", "t_after_negc", ".", "insn", ")", "&&", "!", "sh_unspec_insn_p", "(", "t_after_negc", ".", "insn", ")", "&&", "!", "volatile_insn_p", "(", "PATTERN", "(", "t_after_negc", ".", "insn", ")", ")", "&&", "!", "side_effects_p", "(", "PATTERN", "(", "t_after_negc", ".", "insn", ")", ")", "&&", "!", "may_trap_or_fault_p", "(", "PATTERN", "(", "t_after_negc", ".", "insn", ")", ")", ")", "{", "emit_insn", "(", "gen_movrt_xor", "(", "operands", "[", "0", "]", ",", "get_t_reg_rtx", "(", ")", ")", ")", ";", "set_insn_deleted", "(", "t_after_negc", ".", "insn", ")", ";", "return", "true", ";", "}", "else", "return", "false", ";", "}", ""], "natrual_language": ["Given", "the", "current", "insn", ",", "which", "is", "assumed", "to", "be", "a", "movrt_negc", "insn", ",", "try", "to", "figure", "out", "whether", "it", "should", "be", "converted", "into", "a", "movt-xor", "sequence", "in", "the", "movrt_negc", "splitter", ".", "Returns", "true", "if", "insns", "have", "been", "modified", "and", "the", "splitter", "has", "succeeded", "."], "TS_V_token": ["sh", "0"], "File": "sh5", "Func": "sh_split_movrt_negc_to_movt_xor", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3026, "Length": 193, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "rs6000_address_for_altivec", "(", "rtx", "x", ")", "{", "gcc_assert", "(", "MEM_P", "(", "x", ")", ")", ";", "if", "(", "!", "altivec_indexed_or_indirect_operand", "(", "x", ",", "GET_MODE", "(", "x", ")", ")", ")", "{", "rtx", "addr", "=", "XEXP", "(", "x", ",", "0", ")", ";", "int", "strict_p", "=", "(", "reload_in_progress", "||", "reload_completed", ")", ";", "if", "(", "!", "legitimate_indexed_address_p", "(", "addr", ",", "strict_p", ")", "&&", "!", "legitimate_indirect_address_p", "(", "addr", ",", "strict_p", ")", ")", "addr", "=", "copy_to_mode_reg", "(", "Pmode", ",", "addr", ")", ";", "addr", "=", "gen_rtx_AND", "(", "Pmode", ",", "addr", ",", "GEN_INT", "(", "-", "16", ")", ")", ";", "x", "=", "change_address", "(", "x", ",", "GET_MODE", "(", "x", ")", ",", "addr", ")", ";", "}", "return", "x", ";", "}", ""], "natrual_language": ["Given", "a", "memory", "reference", ",", "if", "it", "is", "not", "in", "the", "form", "for", "altivec", "memory", "reference", "instructions", "(", "i.e", ".", "reg", "or", "reg+reg", "addressing", "with", "AND", "of", "-16", ")", ",", "convert", "to", "the", "altivec", "format", "."], "TS_V_token": ["rs6000", "0", "16"], "File": "rs60004", "Func": "rs6000_address_for_altivec", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3027, "Length": 109, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "iq2000_expand_epilogue", "(", "void", ")", "{", "HOST_WIDE_INT", "tsize", "=", "cfun", "->", "machine", "->", "total_size", ";", "rtx", "tsize_rtx", "=", "GEN_INT", "(", "tsize", ")", ";", "rtx", "tmp_rtx", "=", "(", "rtx", ")", "0", ";", "if", "(", "iq2000_can_use_return_insn", "(", ")", ")", "{", "emit_jump_insn", "(", "gen_return", "(", ")", ")", ";", "return", ";", "}", "if", "(", "tsize", ">", "32767", ")", "{", "tmp_rtx", "=", "gen_rtx_REG", "(", "Pmode", ",", "IQ2000_TEMP1_REGNUM", ")", ";", "emit_move_insn", "(", "tmp_rtx", ",", "tsize_rtx", ")", ";", "tsize_rtx", "=", "tmp_rtx", ";", "}", "if", "(", "tsize", ">", "0", ")", "{", "if", "(", "frame_pointer_needed", ")", "{", "emit_insn", "(", "gen_blockage", "(", ")", ")", ";", "emit_insn", "(", "gen_movsi", "(", "stack_pointer_rtx", ",", "hard_frame_pointer_rtx", ")", ")", ";", "}", "save_restore_insns", "(", "0", ")", ";", "if", "(", "crtl", "->", "calls_eh_return", ")", "{", "rtx", "eh_ofs", "=", "EH_RETURN_STACKADJ_RTX", ";", "emit_insn", "(", "gen_addsi3", "(", "eh_ofs", ",", "eh_ofs", ",", "tsize_rtx", ")", ")", ";", "tsize_rtx", "=", "eh_ofs", ";", "}", "emit_insn", "(", "gen_blockage", "(", ")", ")", ";", "if", "(", "tsize", "!=", "0", "||", "crtl", "->", "calls_eh_return", ")", "{", "emit_insn", "(", "gen_addsi3", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "tsize_rtx", ")", ")", ";", "}", "}", "if", "(", "crtl", "->", "calls_eh_return", ")", "{", "emit_move_insn", "(", "gen_rtx_REG", "(", "Pmode", ",", "HARD_FRAME_POINTER_REGNUM", ")", ",", "stack_pointer_rtx", ")", ";", "emit_use", "(", "gen_rtx_REG", "(", "Pmode", ",", "HARD_FRAME_POINTER_REGNUM", ")", ")", ";", "emit_jump_insn", "(", "gen_eh_return_internal", "(", ")", ")", ";", "}", "else", "emit_jump_insn", "(", "gen_return_internal", "(", "gen_rtx_REG", "(", "Pmode", ",", "GP_REG_FIRST", "+", "31", ")", ")", ")", ";", "}", ""], "natrual_language": ["Expand", "the", "epilogue", "into", "a", "bunch", "of", "separate", "insns", "."], "TS_V_token": ["iq2000", "0", "32767", "0", "0", "0", "31"], "File": "iq2000", "Func": "iq2000_expand_epilogue", "Target": "iq2000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3028, "Length": 226, "Cover_Rate": 1.0, "Template_token": []} {"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": ["Mips", "0", "0"], "File": "MipsAsmParser29", "Func": "addExpr", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3029, "Length": 78, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ia64_output_function_profiler", "(", "FILE", "*", "file", ",", "int", "labelno", ")", "{", "bool", "indirect_call", ";", "if", "(", "cfun", "->", "static_chain_decl", "&&", "!", "TARGET_NO_PIC", "&&", "!", "TARGET_AUTO_PIC", ")", "{", "gcc_assert", "(", "STATIC_CHAIN_REGNUM", "==", "15", ")", ";", "indirect_call", "=", "true", ";", "}", "else", "indirect_call", "=", "false", ";", "if", "(", "TARGET_GNU_AS", ")", "fputs", "(", "\"\\t.prologue 4, r40\\n\"", ",", "file", ")", ";", "else", "fputs", "(", "\"\\t.prologue\\n\\t.save ar.pfs, r40\\n\"", ",", "file", ")", ";", "fputs", "(", "\"\\talloc out0 = ar.pfs, 8, 0, 4, 0\\n\"", ",", "file", ")", ";", "if", "(", "NO_PROFILE_COUNTERS", ")", "fputs", "(", "\"\\tmov out3 = r0\\n\"", ",", "file", ")", ";", "else", "{", "char", "buf", "[", "20", "]", ";", "ASM_GENERATE_INTERNAL_LABEL", "(", "buf", ",", "\"LP\"", ",", "labelno", ")", ";", "if", "(", "TARGET_AUTO_PIC", ")", "fputs", "(", "\"\\tmovl out3 = @gprel(\"", ",", "file", ")", ";", "else", "fputs", "(", "\"\\taddl out3 = @ltoff(\"", ",", "file", ")", ";", "assemble_name", "(", "file", ",", "buf", ")", ";", "if", "(", "TARGET_AUTO_PIC", ")", "fputs", "(", "\")\\n\"", ",", "file", ")", ";", "else", "fputs", "(", "\"), r1\\n\"", ",", "file", ")", ";", "}", "if", "(", "indirect_call", ")", "fputs", "(", "\"\\taddl r14 = @ltoff(@fptr(_mcount)), r1\\n\"", ",", "file", ")", ";", "fputs", "(", "\"\\t;;\\n\"", ",", "file", ")", ";", "fputs", "(", "\"\\t.save rp, r42\\n\"", ",", "file", ")", ";", "fputs", "(", "\"\\tmov out2 = b0\\n\"", ",", "file", ")", ";", "if", "(", "indirect_call", ")", "fputs", "(", "\"\\tld8 r14 = [r14]\\n\\t;;\\n\"", ",", "file", ")", ";", "fputs", "(", "\"\\t.body\\n\"", ",", "file", ")", ";", "fputs", "(", "\"\\tmov out1 = r1\\n\"", ",", "file", ")", ";", "if", "(", "indirect_call", ")", "{", "fputs", "(", "\"\\tld8 r16 = [r14], 8\\n\\t;;\\n\"", ",", "file", ")", ";", "fputs", "(", "\"\\tmov b6 = r16\\n\"", ",", "file", ")", ";", "fputs", "(", "\"\\tld8 r1 = [r14]\\n\"", ",", "file", ")", ";", "fputs", "(", "\"\\tbr.call.sptk.many b0 = b6\\n\\t;;\\n\"", ",", "file", ")", ";", "}", "else", "fputs", "(", "\"\\tbr.call.sptk.many b0 = _mcount\\n\\t;;\\n\"", ",", "file", ")", ";", "}", ""], "natrual_language": ["Implement", "the", "FUNCTION_PROFILER", "macro", "."], "TS_V_token": ["ia64", "15", "\"\\t.prologue 4, r40\\n\"", "\"\\t.prologue\\n\\t.save ar.pfs, r40\\n\"", "\"\\talloc out0 = ar.pfs, 8, 0, 4, 0\\n\"", "\"\\tmov out3 = r0\\n\"", "20", "\"LP\"", "\"\\tmovl out3 = @gprel(\"", "\"\\taddl out3 = @ltoff(\"", "\")\\n\"", "\"), r1\\n\"", "\"\\taddl r14 = @ltoff(@fptr(_mcount)), r1\\n\"", "\"\\t;;\\n\"", "\"\\t.save rp, r42\\n\"", "\"\\tmov out2 = b0\\n\"", "\"\\tld8 r14 = [r14]\\n\\t;;\\n\"", "\"\\t.body\\n\"", "\"\\tmov out1 = r1\\n\"", "\"\\tld8 r16 = [r14], 8\\n\\t;;\\n\"", "\"\\tmov b6 = r16\\n\"", "\"\\tld8 r1 = [r14]\\n\"", "\"\\tbr.call.sptk.many b0 = b6\\n\\t;;\\n\"", "\"\\tbr.call.sptk.many b0 = _mcount\\n\\t;;\\n\""], "File": "ia64", "Func": "ia64_output_function_profiler", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3030, "Length": 244, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SparcFrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "SparcMachineFunctionInfo", "*", "FuncInfo", "=", "MF", ".", "getInfo", "<", "SparcMachineFunctionInfo", ">", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "getLastNonDebugInstr", "(", ")", ";", "const", "SparcInstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "SparcInstrInfo", "*", ">", "(", "MF", ".", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "DebugLoc", "dl", "=", "MBBI", "->", "getDebugLoc", "(", ")", ";", "assert", "(", "MBBI", "->", "getOpcode", "(", ")", "==", "SP", "::", "RETL", "&&", "\"Can only put epilog before 'retl' instruction!\"", ")", ";", "if", "(", "!", "FuncInfo", "->", "isLeafProc", "(", ")", ")", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "SP", "::", "RESTORErr", ")", ",", "SP", "::", "G0", ")", ".", "addReg", "(", "SP", "::", "G0", ")", ".", "addReg", "(", "SP", "::", "G0", ")", ";", "return", ";", "}", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "int", "NumBytes", "=", "(", "int", ")", "MFI", "->", "getStackSize", "(", ")", ";", "if", "(", "NumBytes", "==", "0", ")", "return", ";", "NumBytes", "=", "SubTarget", ".", "getAdjustedFrameSize", "(", "NumBytes", ")", ";", "emitSPAdjustment", "(", "MF", ",", "MBB", ",", "MBBI", ",", "NumBytes", ",", "SP", "::", "ADDrr", ",", "SP", "::", "ADDri", ")", ";", "}", ""], "natrual_language": ["Insert", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["Sparc", "Sparc", "Sparc", "Sparc", "Sparc", "Sparc", "SP::RETL", "\"Can only put epilog before 'retl' instruction!\"", "SP::RESTORErr", "SP::G0", "SP::G0", "SP::G0", "0", "SP", "SP::ADDrr", "SP::ADDri"], "File": "SparcFrameLowering26", "Func": "emitEpilogue", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3031, "Length": 195, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86PassConfig", "::", "addPostFastRegAllocRewrite", "(", ")", "{", "addPass", "(", "createX86FastTileConfigPass", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["addPostFastRegAllocRewrite", "-", "Add", "passes", "to", "the", "optimized", "register", "allocation", "pipeline", "after", "fast", "register", "allocation", "is", "complete", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86TargetMachine114", "Func": "addPostFastRegAllocRewrite", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3032, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "Cpu0RegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "return", "TFI", "->", "hasFP", "(", "MF", ")", "?", "(", "Cpu0", "::", "FP", ")", ":", "(", "Cpu0", "::", "SP", ")", ";", "}", ""], "natrual_language": ["Debug", "information", "queries", "."], "TS_V_token": ["Cpu0", "Cpu0", "Cpu0::FP", "Cpu0::SP"], "File": "Cpu0RegisterInfo4", "Func": "getFrameRegister", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3033, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86RegisterInfo", "::", "hasReservedCallFrame", "(", "MachineFunction", "&", "MF", ")", "const", "{", "return", "!", "MF", ".", "getFrameInfo", "(", ")", "->", "hasVarSizedObjects", "(", ")", ";", "}", ""], "natrual_language": ["hasReservedCallFrame", "-", "Under", "normal", "circumstances", ",", "when", "a", "frame", "pointer", "is", "not", "required", ",", "we", "reserve", "argument", "space", "for", "call", "sites", "in", "the", "function", "immediately", "on", "entry", "to", "the", "current", "function", "."], "TS_V_token": ["X86", "X86"], "File": "X86RegisterInfo11", "Func": "hasReservedCallFrame", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3034, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "const", "TargetRegisterClass", "*", ",", "uint8_t", ">", "X86TargetLowering", "::", "findRepresentativeClass", "(", "MVT", "VT", ")", "const", "{", "const", "TargetRegisterClass", "*", "RRC", "=", "nullptr", ";", "uint8_t", "Cost", "=", "1", ";", "switch", "(", "VT", ".", "SimpleTy", ")", "{", "default", ":", "return", "TargetLowering", "::", "findRepresentativeClass", "(", "VT", ")", ";", "case", "MVT", "::", "i8", ":", "case", "MVT", "::", "i16", ":", "case", "MVT", "::", "i32", ":", "case", "MVT", "::", "i64", ":", "RRC", "=", "Subtarget", "->", "is64Bit", "(", ")", "?", "(", "const", "TargetRegisterClass", "*", ")", "&", "X86", "::", "GR64RegClass", ":", "(", "const", "TargetRegisterClass", "*", ")", "&", "X86", "::", "GR32RegClass", ";", "break", ";", "case", "MVT", "::", "x86mmx", ":", "RRC", "=", "&", "X86", "::", "VR64RegClass", ";", "break", ";", "case", "MVT", "::", "f32", ":", "case", "MVT", "::", "f64", ":", "case", "MVT", "::", "v16i8", ":", "case", "MVT", "::", "v8i16", ":", "case", "MVT", "::", "v4i32", ":", "case", "MVT", "::", "v2i64", ":", "case", "MVT", "::", "v4f32", ":", "case", "MVT", "::", "v2f64", ":", "case", "MVT", "::", "v32i8", ":", "case", "MVT", "::", "v8i32", ":", "case", "MVT", "::", "v4i64", ":", "case", "MVT", "::", "v8f32", ":", "case", "MVT", "::", "v4f64", ":", "RRC", "=", "&", "X86", "::", "VR128RegClass", ";", "break", ";", "}", "return", "std", "::", "make_pair", "(", "RRC", ",", "Cost", ")", ";", "}", ""], "natrual_language": ["Return", "the", "largest", "legal", "super-reg", "register", "class", "of", "the", "register", "class", "for", "the", "specified", "type", "and", "its", "associated", "``", "cost", "''", "."], "TS_V_token": ["X86", "X86", "1", "MVT::i8", "MVT::i16", "MVT::i32", "MVT::i64", "X86::GR64RegClass", "X86::GR32RegClass", "MVT::x86mmx", "X86::VR64RegClass", "MVT::f32", "MVT::f64", "MVT::v16i8", "MVT::v8i16", "MVT::v4i32", "MVT::v2i64", "MVT::v4f32", "MVT::v2f64", "MVT::v32i8", "MVT::v8i32", "MVT::v4i64", "MVT::v8f32", "MVT::v4f64", "X86::VR128RegClass"], "File": "X86ISelLowering (2)", "Func": "findRepresentativeClass", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3035, "Length": 198, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_init_builtins", "(", "void", ")", "{", "const", "struct", "mips_builtin_description", "*", "d", ";", "unsigned", "int", "i", ";", "for", "(", "i", "=", "0", ";", "i", "<", "ARRAY_SIZE", "(", "mips_builtins", ")", ";", "i", "++", ")", "{", "d", "=", "&", "mips_builtins", "[", "i", "]", ";", "if", "(", "d", "->", "avail", "(", ")", ")", "{", "mips_builtin_decls", "[", "i", "]", "=", "add_builtin_function", "(", "d", "->", "name", ",", "mips_build_function_type", "(", "d", "->", "function_type", ")", ",", "i", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL", ")", ";", "if", "(", "mips_builtin_decls", "[", "i", "]", "&&", "d", "->", "is_pure", ")", "DECL_PURE_P", "(", "mips_builtin_decls", "[", "i", "]", ")", "=", "1", ";", "mips_get_builtin_decl_index", "[", "d", "->", "icode", "]", "=", "i", ";", "}", "}", "}", ""], "natrual_language": ["Init", "builtin", "functions", ".", "This", "is", "called", "from", "TARGET_INIT_BUILTIN", "."], "TS_V_token": ["mips", "0", "1"], "File": "mips", "Func": "mips_init_builtins", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3036, "Length": 111, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getRsaSize", "(", ")", "const", "{", "return", "176", ";", "}", ""], "natrual_language": ["Get", "the", "size", "of", "RSA", ",", "return", "address", ",", "and", "frame", "pointer", "as", "described", "in", "VEFrameLowering.cpp", "."], "TS_V_token": ["VE", "176"], "File": "VESubtarget2", "Func": "getRsaSize", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3037, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "pa_encode_label", "(", "rtx", "sym", ")", "{", "const", "char", "*", "str", "=", "XSTR", "(", "sym", ",", "0", ")", ";", "int", "len", "=", "strlen", "(", "str", ")", "+", "1", ";", "char", "*", "newstr", ",", "*", "p", ";", "p", "=", "newstr", "=", "XALLOCAVEC", "(", "char", ",", "len", "+", "1", ")", ";", "*", "p", "++", "=", "'@'", ";", "strcpy", "(", "p", ",", "str", ")", ";", "XSTR", "(", "sym", ",", "0", ")", "=", "ggc_alloc_string", "(", "newstr", ",", "len", ")", ";", "}", ""], "natrual_language": ["In", "HPUX", "8.0", "'s", "shared", "library", "scheme", ",", "special", "relocations", "are", "needed", "for", "function", "labels", "if", "they", "might", "be", "passed", "to", "a", "function", "in", "a", "shared", "library", "(", "because", "shared", "libraries", "do", "n't", "live", "in", "code", "space", ")", ",", "and", "special", "magic", "is", "needed", "to", "construct", "their", "address", "."], "TS_V_token": ["pa", "0", "1", "1", "0"], "File": "pa", "Func": "pa_encode_label", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3038, "Length": 77, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ix86_call_abi_override", "(", "const_tree", "fndecl", ")", "{", "if", "(", "fndecl", "==", "NULL_TREE", ")", "cfun", "->", "machine", "->", "call_abi", "=", "ix86_abi", ";", "else", "cfun", "->", "machine", "->", "call_abi", "=", "ix86_function_type_abi", "(", "TREE_TYPE", "(", "fndecl", ")", ")", ";", "}", ""], "natrual_language": ["Implementation", "of", "call", "abi", "switching", "target", "hook", ".", "Specific", "to", "FNDECL", "the", "specific", "call", "register", "sets", "are", "set", ".", "See", "also", "ix86_conditional_register_usage", "for", "more", "details", "."], "TS_V_token": ["i386"], "File": "i3864", "Func": "ix86_call_abi_override", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3039, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsRegisterInfo", "::", "isConstantPhysReg", "(", "MCRegister", "PhysReg", ")", "const", "{", "return", "PhysReg", "==", "Mips", "::", "ZERO", "||", "PhysReg", "==", "Mips", "::", "ZERO_64", "||", "PhysReg", "==", "Mips", "::", "CNULL", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "PhysReg", "is", "unallocatable", "and", "constant", "throughout", "the", "function", "."], "TS_V_token": ["Mips", "Mips", "Mips::ZERO", "Mips::ZERO_64", "Mips::CNULL"], "File": "MipsRegisterInfo35", "Func": "isConstantPhysReg", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3040, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ")", "const", "{", "DebugLoc", "DL", "=", "DebugLoc", "::", "getUnknownLoc", "(", ")", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "RC", "==", "ARM", "::", "GPRRegisterClass", ")", "{", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "ARMFunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "if", "(", "AFI", "->", "isThumbFunction", "(", ")", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "tSpill", ")", ")", ".", "addReg", "(", "SrcReg", ",", "false", ",", "false", ",", "isKill", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ";", "else", "AddDefaultPred", "(", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "STR", ")", ")", ".", "addReg", "(", "SrcReg", ",", "false", ",", "false", ",", "isKill", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addReg", "(", "0", ")", ".", "addImm", "(", "0", ")", ")", ";", "}", "else", "if", "(", "RC", "==", "ARM", "::", "DPRRegisterClass", ")", "{", "AddDefaultPred", "(", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "FSTD", ")", ")", ".", "addReg", "(", "SrcReg", ",", "false", ",", "false", ",", "isKill", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ")", ";", "}", "else", "{", "assert", "(", "RC", "==", "ARM", "::", "SPRRegisterClass", "&&", "\"Unknown regclass!\"", ")", ";", "AddDefaultPred", "(", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "FSTS", ")", ")", ".", "addReg", "(", "SrcReg", ",", "false", ",", "false", ",", "isKill", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ")", ";", "}", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARM", "ARM", "ARM::GPRRegisterClass", "ARM", "ARM", "ARM::tSpill", "0", "ARM::STR", "0", "0", "ARM::DPRRegisterClass", "ARM::FSTD", "0", "ARM::SPRRegisterClass", "\"Unknown regclass!\"", "ARM::FSTS", "0"], "File": "ARMInstrInfo31", "Func": "storeRegToStackSlot", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3041, "Length": 288, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "nds32_adjust_insn_length", "(", "rtx_insn", "*", "insn", ",", "int", "length", ")", "{", "int", "adjust_value", "=", "0", ";", "switch", "(", "recog_memoized", "(", "insn", ")", ")", "{", "case", "CODE_FOR_call_internal", ":", "case", "CODE_FOR_call_value_internal", ":", "{", "if", "(", "NDS32_ALIGN_P", "(", ")", ")", "{", "rtx_insn", "*", "next_insn", "=", "next_active_insn", "(", "insn", ")", ";", "if", "(", "next_insn", "&&", "get_attr_length", "(", "next_insn", ")", "!=", "2", ")", "adjust_value", "+=", "2", ";", "}", "if", "(", "find_reg_note", "(", "insn", ",", "REG_NORETURN", ",", "NULL_RTX", ")", ")", "{", "if", "(", "TARGET_16_BIT", ")", "adjust_value", "+=", "2", ";", "else", "adjust_value", "+=", "4", ";", "}", "}", "return", "length", "+", "adjust_value", ";", "default", ":", "return", "length", ";", "}", "}", ""], "natrual_language": ["Computing", "the", "Length", "of", "an", "Insn", ".", "Modifies", "the", "length", "assigned", "to", "instruction", "INSN", ".", "LEN", "is", "the", "initially", "computed", "length", "of", "the", "insn", "."], "TS_V_token": ["nds32", "0", "2", "2", "2", "4"], "File": "nds32", "Func": "nds32_adjust_insn_length", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3042, "Length": 102, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86FrameLowering", "::", "processFunctionBeforeFrameFinalized", "(", "MachineFunction", "&", "MF", ",", "RegScavenger", "*", "RS", ")", "const", "{", "const", "Function", "*", "Fn", "=", "MF", ".", "getFunction", "(", ")", ";", "if", "(", "!", "STI", ".", "is64Bit", "(", ")", "||", "!", "MF", ".", "getMMI", "(", ")", ".", "hasEHFunclets", "(", ")", "||", "classifyEHPersonality", "(", "Fn", "->", "getPersonalityFn", "(", ")", ")", "!=", "EHPersonality", "::", "MSVC_CXX", ")", "return", ";", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "int64_t", "MinFixedObjOffset", "=", "-", "SlotSize", ";", "for", "(", "int", "I", "=", "MFI", "->", "getObjectIndexBegin", "(", ")", ";", "I", "<", "0", ";", "++", "I", ")", "MinFixedObjOffset", "=", "std", "::", "min", "(", "MinFixedObjOffset", ",", "MFI", "->", "getObjectOffset", "(", "I", ")", ")", ";", "int64_t", "UnwindHelpOffset", "=", "MinFixedObjOffset", "-", "SlotSize", ";", "int", "UnwindHelpFI", "=", "MFI", "->", "CreateFixedObject", "(", "SlotSize", ",", "UnwindHelpOffset", ",", "false", ")", ";", "MF", ".", "getWinEHFuncInfo", "(", ")", "->", "UnwindHelpFrameIdx", "=", "UnwindHelpFI", ";", "MachineBasicBlock", "&", "MBB", "=", "MF", ".", "front", "(", ")", ";", "auto", "MBBI", "=", "MBB", ".", "begin", "(", ")", ";", "while", "(", "MBBI", "!=", "MBB", ".", "end", "(", ")", "&&", "MBBI", "->", "getFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ")", "++", "MBBI", ";", "DebugLoc", "DL", "=", "MBB", ".", "findDebugLoc", "(", "MBBI", ")", ";", "addFrameReference", "(", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "X86", "::", "MOV64mi32", ")", ")", ",", "UnwindHelpFI", ")", ".", "addImm", "(", "-", "2", ")", ";", "}", ""], "natrual_language": ["processFunctionBeforeFrameFinalized", "-", "This", "method", "is", "called", "immediately", "before", "the", "specified", "function", "'s", "frame", "layout", "(", "MF.getFrameInfo", "(", ")", ")", "is", "finalized", "."], "TS_V_token": ["X86", "X86", "0", "X86::MOV64mi32", "2"], "File": "X86FrameLowering (2)4", "Func": "processFunctionBeforeFrameFinalized", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3043, "Length": 223, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "nds32_encode_section_info", "(", "tree", "decl", ",", "rtx", "rtl", ",", "int", "new_decl_p", ")", "{", "default_encode_section_info", "(", "decl", ",", "rtl", ",", "new_decl_p", ")", ";", "if", "(", "MEM_P", "(", "rtl", ")", "&&", "MEM_READONLY_P", "(", "rtl", ")", ")", "{", "rtx", "addr", "=", "XEXP", "(", "rtl", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "addr", ")", "==", "SYMBOL_REF", ")", "{", "SYMBOL_REF_FLAGS", "(", "addr", ")", "|=", "NDS32_SYMBOL_FLAG_RODATA", ";", "}", "else", "if", "(", "GET_CODE", "(", "addr", ")", "==", "CONST", "&&", "GET_CODE", "(", "XEXP", "(", "addr", ",", "0", ")", ")", "==", "PLUS", ")", "{", "rtx", "plus_op", "=", "XEXP", "(", "addr", ",", "0", ")", ";", "rtx", "op0", "=", "XEXP", "(", "plus_op", ",", "0", ")", ";", "rtx", "op1", "=", "XEXP", "(", "plus_op", ",", "1", ")", ";", "if", "(", "GET_CODE", "(", "op0", ")", "==", "SYMBOL_REF", "&&", "CONST_INT_P", "(", "op1", ")", ")", "SYMBOL_REF_FLAGS", "(", "op0", ")", "|=", "NDS32_SYMBOL_FLAG_RODATA", ";", "}", "}", "}", ""], "natrual_language": ["If", "references", "to", "a", "symbol", "or", "a", "constant", "must", "be", "treated", "differently", "depending", "on", "something", "about", "the", "variable", "or", "function", "named", "by", "the", "symbol", "(", "such", "as", "what", "section", "it", "is", "in", ")", ",", "we", "use", "this", "hook", "to", "store", "flags", "in", "symbol_ref", "rtx", "."], "TS_V_token": ["nds32", "0", "0", "0", "0", "1"], "File": "nds32", "Func": "nds32_encode_section_info", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3044, "Length": 141, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTargetLowering", "::", "getPreIndexedAddressParts", "(", "SDNode", "*", "N", ",", "SDValue", "&", "Base", ",", "SDValue", "&", "Offset", ",", "ISD", "::", "MemIndexedMode", "&", "AM", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "if", "(", "!", "EnablePPCPreinc", ")", "return", "false", ";", "SDValue", "Ptr", ";", "MVT", "VT", ";", "if", "(", "LoadSDNode", "*", "LD", "=", "dyn_cast", "<", "LoadSDNode", ">", "(", "N", ")", ")", "{", "Ptr", "=", "LD", "->", "getBasePtr", "(", ")", ";", "VT", "=", "LD", "->", "getMemoryVT", "(", ")", ";", "}", "else", "if", "(", "StoreSDNode", "*", "ST", "=", "dyn_cast", "<", "StoreSDNode", ">", "(", "N", ")", ")", "{", "ST", "=", "ST", ";", "Ptr", "=", "ST", "->", "getBasePtr", "(", ")", ";", "VT", "=", "ST", "->", "getMemoryVT", "(", ")", ";", "}", "else", "return", "false", ";", "if", "(", "VT", ".", "isVector", "(", ")", ")", "return", "false", ";", "if", "(", "VT", "!=", "MVT", "::", "i64", ")", "{", "if", "(", "!", "SelectAddressRegImm", "(", "Ptr", ",", "Offset", ",", "Base", ",", "DAG", ")", ")", "return", "false", ";", "}", "else", "{", "if", "(", "!", "SelectAddressRegImmShift", "(", "Ptr", ",", "Offset", ",", "Base", ",", "DAG", ")", ")", "return", "false", ";", "}", "if", "(", "LoadSDNode", "*", "LD", "=", "dyn_cast", "<", "LoadSDNode", ">", "(", "N", ")", ")", "{", "if", "(", "LD", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i64", "&&", "LD", "->", "getMemoryVT", "(", ")", "==", "MVT", "::", "i32", "&&", "LD", "->", "getExtensionType", "(", ")", "==", "ISD", "::", "SEXTLOAD", "&&", "isa", "<", "ConstantSDNode", ">", "(", "Offset", ")", ")", "return", "false", ";", "}", "AM", "=", "ISD", "::", "PRE_INC", ";", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "by", "value", ",", "base", "pointer", "and", "offset", "pointer", "and", "addressing", "mode", "by", "reference", "if", "the", "node", "'s", "address", "can", "be", "legally", "represented", "as", "pre-indexed", "load", "/", "store", "address", "."], "TS_V_token": ["PowerPC", "PPC", "ISD::MemIndexedMode", "PPC", "MVT::i64", "0", "MVT::i64", "MVT::i32", "ISD::SEXTLOAD", "ISD::PRE_INC"], "File": "PPCISelLowering123", "Func": "getPreIndexedAddressParts", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3045, "Length": 244, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "unsigned", "*", "lookup", "(", "unsigned", "opcode", ",", "unsigned", "domain", ")", "{", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "array_lengthof", "(", "ReplaceableInstrs", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "if", "(", "ReplaceableInstrs", "[", "i", "]", "[", "domain", "-", "1", "]", "==", "opcode", ")", "return", "ReplaceableInstrs", "[", "i", "]", ";", "return", "0", ";", "}", ""], "natrual_language": ["This", "method", "finds", "the", "value", "with", "the", "given", "Name", "in", "the", "the", "symbol", "table", "."], "TS_V_token": ["X86", "0", "1", "0"], "File": "X86InstrInfo12", "Func": "lookup", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3046, "Length": 58, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMFastISel", "::", "isTypeLegal", "(", "const", "Type", "*", "Ty", ",", "MVT", "&", "VT", ")", "{", "EVT", "evt", "=", "TLI", ".", "getValueType", "(", "Ty", ",", "true", ")", ";", "if", "(", "evt", "==", "MVT", "::", "Other", "||", "!", "evt", ".", "isSimple", "(", ")", ")", "return", "false", ";", "VT", "=", "evt", ".", "getSimpleVT", "(", ")", ";", "return", "TLI", ".", "isTypeLegal", "(", "VT", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "this", "type", "is", "legal", "."], "TS_V_token": ["ARM", "ARM", "MVT::Other"], "File": "ARMFastISel26", "Func": "isTypeLegal", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3047, "Length": 62, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "AtomicExpansionKind", "AArch64TargetLowering", "::", "shouldExpandAtomicRMWInIR", "(", "AtomicRMWInst", "*", "AI", ")", "const", "{", "unsigned", "Size", "=", "AI", "->", "getType", "(", ")", "->", "getPrimitiveSizeInBits", "(", ")", ";", "if", "(", "Size", ">", "128", ")", "return", "AtomicExpansionKind", "::", "None", ";", "if", "(", "AI", "->", "getOperation", "(", ")", "==", "AtomicRMWInst", "::", "Nand", ")", "return", "AtomicExpansionKind", "::", "LLSC", ";", "return", "(", "Subtarget", "->", "hasLSE", "(", ")", "&&", "Size", "<", "128", ")", "?", "AtomicExpansionKind", "::", "None", ":", "AtomicExpansionKind", "::", "LLSC", ";", "}", ""], "natrual_language": ["Returns", "how", "the", "IR-level", "AtomicExpand", "pass", "should", "expand", "the", "given", "AtomicRMW", ",", "if", "at", "all", "."], "TS_V_token": ["AArch64", "AArch64", "128", "128"], "File": "AArch64ISelLowering", "Func": "shouldExpandAtomicRMWInIR", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3048, "Length": 76, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "HOST_WIDE_INT", "sparc_compute_frame_size", "(", "HOST_WIDE_INT", "size", ",", "int", "leaf_function", ")", "{", "HOST_WIDE_INT", "frame_size", ",", "apparent_frame_size", ";", "int", "args_size", ",", "n_global_fp_regs", "=", "0", ";", "bool", "save_local_in_regs_p", "=", "false", ";", "unsigned", "int", "i", ";", "if", "(", "leaf_function", "&&", "!", "cfun", "->", "calls_alloca", ")", "args_size", "=", "0", ";", "else", "args_size", "=", "crtl", "->", "outgoing_args_size", "+", "REG_PARM_STACK_SPACE", "(", "cfun", "->", "decl", ")", ";", "if", "(", "TARGET_ARCH64", ")", "{", "for", "(", "i", "=", "0", ";", "i", "<", "8", ";", "i", "++", ")", "if", "(", "save_global_or_fp_reg_p", "(", "i", ",", "0", ")", ")", "n_global_fp_regs", "+=", "2", ";", "}", "else", "{", "for", "(", "i", "=", "0", ";", "i", "<", "8", ";", "i", "+=", "2", ")", "if", "(", "save_global_or_fp_reg_p", "(", "i", ",", "0", ")", "||", "save_global_or_fp_reg_p", "(", "i", "+", "1", ",", "0", ")", ")", "n_global_fp_regs", "+=", "2", ";", "}", "if", "(", "TARGET_FLAT", ")", "for", "(", "i", "=", "16", ";", "i", "<", "32", ";", "i", "++", ")", "if", "(", "save_local_or_in_reg_p", "(", "i", ",", "leaf_function", ")", ")", "{", "save_local_in_regs_p", "=", "true", ";", "break", ";", "}", "for", "(", "i", "=", "32", ";", "i", "<", "(", "TARGET_V9", "?", "96", ":", "64", ")", ";", "i", "+=", "2", ")", "if", "(", "save_global_or_fp_reg_p", "(", "i", ",", "0", ")", "||", "save_global_or_fp_reg_p", "(", "i", "+", "1", ",", "0", ")", ")", "n_global_fp_regs", "+=", "2", ";", "if", "(", "size", "==", "0", "&&", "n_global_fp_regs", "==", "0", "&&", "args_size", "==", "0", "&&", "!", "save_local_in_regs_p", ")", "frame_size", "=", "apparent_frame_size", "=", "0", ";", "else", "{", "apparent_frame_size", "=", "ROUND_UP", "(", "size", ",", "8", ")", "+", "n_global_fp_regs", "*", "4", ";", "frame_size", "=", "apparent_frame_size", "+", "ROUND_UP", "(", "args_size", ",", "8", ")", ";", "frame_size", "+=", "FIRST_PARM_OFFSET", "(", "cfun", "->", "decl", ")", ";", "frame_size", "=", "SPARC_STACK_ALIGN", "(", "frame_size", ")", ";", "}", "sparc_frame_size", "=", "frame_size", ";", "sparc_apparent_frame_size", "=", "apparent_frame_size", ";", "sparc_n_global_fp_regs", "=", "n_global_fp_regs", ";", "sparc_save_local_in_regs_p", "=", "save_local_in_regs_p", ";", "return", "frame_size", ";", "}", ""], "natrual_language": ["Compute", "the", "frame", "size", "required", "by", "the", "function", ".", "This", "function", "is", "called", "during", "the", "reload", "pass", "and", "also", "by", "sparc_expand_prologue", "."], "TS_V_token": ["sparc", "0", "0", "0", "8", "0", "2", "0", "8", "2", "0", "1", "0", "2", "16", "32", "32", "96", "64", "2", "0", "1", "0", "2", "0", "0", "0", "0", "8", "4", "8"], "File": "sparc", "Func": "sparc_compute_frame_size", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3049, "Length": 292, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getReg", "(", ")", "const", "{", "assert", "(", "isReg", "(", ")", "&&", "\"Wrong CountValue accessor\"", ")", ";", "return", "Contents", ".", "RegNum", ";", "}", ""], "natrual_language": ["Returns", "the", "register", "associated", "with", "this", "edge", "."], "TS_V_token": ["PowerPC", "\"Wrong CountValue accessor\""], "File": "PPCCTRLoops2", "Func": "getReg", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3050, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64WinCOFFStreamer", "::", "finishImpl", "(", ")", "{", "emitFrames", "(", "nullptr", ")", ";", "emitWindowsUnwindTables", "(", ")", ";", "MCWinCOFFStreamer", "::", "finishImpl", "(", ")", ";", "}", ""], "natrual_language": ["Streamer", "specific", "finalization", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64WinCOFFStreamer5", "Func": "finishImpl", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3051, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_darwin64_record_arg_recurse", "(", "CUMULATIVE_ARGS", "*", "cum", ",", "const_tree", "type", ",", "HOST_WIDE_INT", "startbitpos", ",", "rtx", "rvec", "[", "]", ",", "int", "*", "k", ")", "{", "tree", "f", ";", "for", "(", "f", "=", "TYPE_FIELDS", "(", "type", ")", ";", "f", ";", "f", "=", "DECL_CHAIN", "(", "f", ")", ")", "if", "(", "TREE_CODE", "(", "f", ")", "==", "FIELD_DECL", ")", "{", "HOST_WIDE_INT", "bitpos", "=", "startbitpos", ";", "tree", "ftype", "=", "TREE_TYPE", "(", "f", ")", ";", "machine_mode", "mode", ";", "if", "(", "ftype", "==", "error_mark_node", ")", "continue", ";", "mode", "=", "TYPE_MODE", "(", "ftype", ")", ";", "if", "(", "DECL_SIZE", "(", "f", ")", "!=", "0", "&&", "tree_fits_uhwi_p", "(", "bit_position", "(", "f", ")", ")", ")", "bitpos", "+=", "int_bit_position", "(", "f", ")", ";", "if", "(", "TREE_CODE", "(", "ftype", ")", "==", "RECORD_TYPE", ")", "rs6000_darwin64_record_arg_recurse", "(", "cum", ",", "ftype", ",", "bitpos", ",", "rvec", ",", "k", ")", ";", "else", "if", "(", "cum", "->", "named", "&&", "USE_FP_FOR_ARG_P", "(", "cum", ",", "mode", ")", ")", "{", "unsigned", "n_fpreg", "=", "(", "GET_MODE_SIZE", "(", "mode", ")", "+", "7", ")", ">>", "3", ";", "switch", "(", "mode", ")", "{", "case", "E_SCmode", ":", "mode", "=", "SFmode", ";", "break", ";", "case", "E_DCmode", ":", "mode", "=", "DFmode", ";", "break", ";", "case", "E_TCmode", ":", "mode", "=", "TFmode", ";", "break", ";", "default", ":", "break", ";", "}", "rs6000_darwin64_record_arg_flush", "(", "cum", ",", "bitpos", ",", "rvec", ",", "k", ")", ";", "if", "(", "cum", "->", "fregno", "+", "n_fpreg", ">", "FP_ARG_MAX_REG", "+", "1", ")", "{", "gcc_assert", "(", "cum", "->", "fregno", "==", "FP_ARG_MAX_REG", "&&", "(", "mode", "==", "TFmode", "||", "mode", "==", "TDmode", ")", ")", ";", "mode", "=", "DECIMAL_FLOAT_MODE_P", "(", "mode", ")", "?", "DDmode", ":", "DFmode", ";", "cum", "->", "use_stack", "=", "1", ";", "}", "rvec", "[", "(", "*", "k", ")", "++", "]", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "mode", ",", "cum", "->", "fregno", "++", ")", ",", "GEN_INT", "(", "bitpos", "/", "BITS_PER_UNIT", ")", ")", ";", "if", "(", "FLOAT128_2REG_P", "(", "mode", ")", ")", "cum", "->", "fregno", "++", ";", "}", "else", "if", "(", "cum", "->", "named", "&&", "USE_ALTIVEC_FOR_ARG_P", "(", "cum", ",", "mode", ",", "1", ")", ")", "{", "rs6000_darwin64_record_arg_flush", "(", "cum", ",", "bitpos", ",", "rvec", ",", "k", ")", ";", "rvec", "[", "(", "*", "k", ")", "++", "]", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "mode", ",", "cum", "->", "vregno", "++", ")", ",", "GEN_INT", "(", "bitpos", "/", "BITS_PER_UNIT", ")", ")", ";", "}", "else", "if", "(", "cum", "->", "intoffset", "==", "-", "1", ")", "cum", "->", "intoffset", "=", "bitpos", ";", "}", "}", ""], "natrual_language": ["Recursive", "workhorse", "for", "the", "following", "."], "TS_V_token": ["powerpcspe", "0", "7", "3", "1", "1", "1", "1"], "File": "powerpcspe", "Func": "rs6000_darwin64_record_arg_recurse", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3052, "Length": 381, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86CallLowering", "::", "lowerFormalArguments", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "const", "Function", "&", "F", ",", "ArrayRef", "<", "unsigned", ">", "VRegs", ")", "const", "{", "if", "(", "F", ".", "arg_empty", "(", ")", ")", "return", "true", ";", "if", "(", "F", ".", "isVarArg", "(", ")", ")", "return", "false", ";", "MachineFunction", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "auto", "DL", "=", "MF", ".", "getDataLayout", "(", ")", ";", "SmallVector", "<", "ArgInfo", ",", "8", ">", "SplitArgs", ";", "unsigned", "Idx", "=", "0", ";", "for", "(", "auto", "&", "Arg", ":", "F", ".", "args", "(", ")", ")", "{", "if", "(", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "ByVal", ")", "||", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "InReg", ")", "||", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "StructRet", ")", "||", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "SwiftSelf", ")", "||", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "SwiftError", ")", "||", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "Nest", ")", ")", "return", "false", ";", "ArgInfo", "OrigArg", "(", "VRegs", "[", "Idx", "]", ",", "Arg", ".", "getType", "(", ")", ")", ";", "setArgFlags", "(", "OrigArg", ",", "Idx", "+", "AttributeList", "::", "FirstArgIndex", ",", "DL", ",", "F", ")", ";", "if", "(", "!", "splitToValueTypes", "(", "OrigArg", ",", "SplitArgs", ",", "DL", ",", "MRI", ",", "[", "&", "]", "(", "ArrayRef", "<", "unsigned", ">", "Regs", ")", "{", "MIRBuilder", ".", "buildMerge", "(", "VRegs", "[", "Idx", "]", ",", "Regs", ")", ";", "}", ")", ")", "return", "false", ";", "Idx", "++", ";", "}", "MachineBasicBlock", "&", "MBB", "=", "MIRBuilder", ".", "getMBB", "(", ")", ";", "if", "(", "!", "MBB", ".", "empty", "(", ")", ")", "MIRBuilder", ".", "setInstr", "(", "*", "MBB", ".", "begin", "(", ")", ")", ";", "FormalArgHandler", "Handler", "(", "MIRBuilder", ",", "MRI", ",", "CC_X86", ")", ";", "if", "(", "!", "handleAssignments", "(", "MIRBuilder", ",", "SplitArgs", ",", "Handler", ")", ")", "return", "false", ";", "MIRBuilder", ".", "setMBB", "(", "MBB", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "the", "incoming", "(", "formal", ")", "arguments", ",", "described", "by", "VRegs", ",", "for", "GlobalISel", "."], "TS_V_token": ["X86", "X86", "8", "0", "X86"], "File": "X86CallLowering", "Func": "lowerFormalArguments", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3053, "Length": 301, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86TileConfig", "::", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "{", "AU", ".", "addRequired", "<", "MachineDominatorTree", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "LiveIntervals", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "SlotIndexes", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "VirtRegMap", ">", "(", ")", ";", "AU", ".", "setPreservesAll", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["X86", "X86"], "File": "X86TileConfig1", "Func": "getAnalysisUsage", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3054, "Length": 61, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64TargetLowering", "::", "isVectorLoadExtDesirable", "(", "SDValue", "ExtVal", ")", "const", "{", "if", "(", "ExtVal", ".", "getValueType", "(", ")", ".", "isScalableVector", "(", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "folding", "a", "vector", "load", "into", "ExtVal", "(", "a", "sign", ",", "zero", ",", "or", "any", "extend", "node", ")", "is", "profitable", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64ISelLowering102", "Func": "isVectorLoadExtDesirable", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3055, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "rs6000_aix_asm_output_dwarf_table_ref", "(", "char", "*", "frame_table_label", ")", "{", "fprintf", "(", "asm_out_file", ",", "\"\\t.ref %s\\n\"", ",", "(", "*", "targetm", ".", "strip_name_encoding", ")", "(", "frame_table_label", ")", ")", ";", "}", ""], "natrual_language": ["Issue", "assembly", "directives", "that", "create", "a", "reference", "to", "the", "given", "DWARF", "FRAME_TABLE_LABEL", "from", "the", "current", "function", "section", "."], "TS_V_token": ["rs6000", "\"\\t.ref %s\\n\""], "File": "rs6000-logue", "Func": "rs6000_aix_asm_output_dwarf_table_ref", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3056, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZELFFrameLowering", "::", "orderFrameObjects", "(", "const", "MachineFunction", "&", "MF", ",", "SmallVectorImpl", "<", "int", ">", "&", "ObjectsToAllocate", ")", "const", "{", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "SystemZInstrInfo", "*", "TII", "=", "static_cast", "<", "const", "SystemZInstrInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "if", "(", "ObjectsToAllocate", ".", "size", "(", ")", "<=", "1", ")", "return", ";", "SZFrameObjVec", "SortingObjects", "(", "MFI", ".", "getObjectIndexEnd", "(", ")", ")", ";", "for", "(", "auto", "&", "Obj", ":", "ObjectsToAllocate", ")", "{", "SortingObjects", "[", "Obj", "]", ".", "IsValid", "=", "true", ";", "SortingObjects", "[", "Obj", "]", ".", "ObjectIndex", "=", "Obj", ";", "SortingObjects", "[", "Obj", "]", ".", "ObjectSize", "=", "MFI", ".", "getObjectSize", "(", "Obj", ")", ";", "}", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "for", "(", "auto", "&", "MI", ":", "MBB", ")", "{", "if", "(", "MI", ".", "isDebugInstr", "(", ")", ")", "continue", ";", "for", "(", "unsigned", "I", "=", "0", ",", "E", "=", "MI", ".", "getNumOperands", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", ".", "getOperand", "(", "I", ")", ";", "if", "(", "!", "MO", ".", "isFI", "(", ")", ")", "continue", ";", "int", "Index", "=", "MO", ".", "getIndex", "(", ")", ";", "if", "(", "Index", ">=", "0", "&&", "Index", "<", "MFI", ".", "getObjectIndexEnd", "(", ")", "&&", "SortingObjects", "[", "Index", "]", ".", "IsValid", ")", "{", "if", "(", "TII", "->", "hasDisplacementPairInsn", "(", "MI", ".", "getOpcode", "(", ")", ")", ")", "SortingObjects", "[", "Index", "]", ".", "DPairCount", "++", ";", "else", "if", "(", "!", "(", "MI", ".", "getDesc", "(", ")", ".", "TSFlags", "&", "SystemZII", "::", "Has20BitOffset", ")", ")", "SortingObjects", "[", "Index", "]", ".", "D12Count", "++", ";", "}", "}", "}", "auto", "CmpD12", "=", "[", "]", "(", "const", "SZFrameSortingObj", "&", "A", ",", "const", "SZFrameSortingObj", "&", "B", ")", "{", "if", "(", "!", "A", ".", "IsValid", "||", "!", "B", ".", "IsValid", ")", "return", "A", ".", "IsValid", ";", "if", "(", "!", "A", ".", "ObjectSize", "||", "!", "B", ".", "ObjectSize", ")", "return", "A", ".", "ObjectSize", ">", "0", ";", "uint64_t", "ADensityCmp", "=", "A", ".", "D12Count", "*", "B", ".", "ObjectSize", ";", "uint64_t", "BDensityCmp", "=", "B", ".", "D12Count", "*", "A", ".", "ObjectSize", ";", "if", "(", "ADensityCmp", "!=", "BDensityCmp", ")", "return", "ADensityCmp", "<", "BDensityCmp", ";", "return", "A", ".", "DPairCount", "*", "B", ".", "ObjectSize", "<", "B", ".", "DPairCount", "*", "A", ".", "ObjectSize", ";", "}", ";", "std", "::", "stable_sort", "(", "SortingObjects", ".", "begin", "(", ")", ",", "SortingObjects", ".", "end", "(", ")", ",", "CmpD12", ")", ";", "unsigned", "Idx", "=", "0", ";", "for", "(", "auto", "&", "Obj", ":", "SortingObjects", ")", "{", "if", "(", "!", "Obj", ".", "IsValid", ")", "break", ";", "ObjectsToAllocate", "[", "Idx", "++", "]", "=", "Obj", ".", "ObjectIndex", ";", "}", "}", ""], "natrual_language": ["Order", "the", "symbols", "in", "the", "local", "stack", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ", "SystemZ", "1", "0", "0", "SystemZII::Has20BitOffset", "0", "0"], "File": "SystemZFrameLowering20", "Func": "orderFrameObjects", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3057, "Length": 430, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "reg_class_t", "mmix_preferred_reload_class", "(", "rtx", "x", ",", "reg_class_t", "rclass", ")", "{", "return", "GET_CODE", "(", "x", ")", "==", "MOD", "&&", "GET_MODE", "(", "x", ")", "==", "DImode", "?", "REMAINDER_REG", ":", "rclass", ";", "}", ""], "natrual_language": ["PREFERRED_RELOAD_CLASS", ".", "We", "need", "to", "extend", "the", "reload", "class", "of", "REMAINDER_REG", "and", "HIMULT_REG", "."], "TS_V_token": ["mmix"], "File": "mmix", "Func": "mmix_preferred_reload_class", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3058, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "const_ok_for_arm", "(", "HOST_WIDE_INT", "i", ")", "{", "int", "lowbit", ";", "if", "(", "(", "i", "&", "~", "(", "unsigned", "HOST_WIDE_INT", ")", "0xffffffff", ")", "!=", "0", "&&", "(", "(", "i", "&", "~", "(", "unsigned", "HOST_WIDE_INT", ")", "0xffffffff", ")", "!=", "(", "(", "~", "(", "unsigned", "HOST_WIDE_INT", ")", "0", ")", "&", "~", "(", "unsigned", "HOST_WIDE_INT", ")", "0xffffffff", ")", ")", ")", "return", "FALSE", ";", "i", "&=", "(", "unsigned", "HOST_WIDE_INT", ")", "0xffffffff", ";", "if", "(", "(", "i", "&", "~", "(", "unsigned", "HOST_WIDE_INT", ")", "0xff", ")", "==", "0", ")", "return", "TRUE", ";", "lowbit", "=", "(", "ffs", "(", "(", "int", ")", "i", ")", "-", "1", ")", "&", "~", "1", ";", "if", "(", "(", "i", "&", "~", "(", "(", "(", "unsigned", "HOST_WIDE_INT", ")", "0xff", ")", "<<", "lowbit", ")", ")", "==", "0", ")", "return", "TRUE", ";", "else", "if", "(", "lowbit", "<=", "4", "&&", "(", "(", "i", "&", "~", "0xc000003f", ")", "==", "0", "||", "(", "i", "&", "~", "0xf000000f", ")", "==", "0", "||", "(", "i", "&", "~", "0xfc000003", ")", "==", "0", ")", ")", "return", "TRUE", ";", "return", "FALSE", ";", "}", ""], "natrual_language": ["Return", "TRUE", "if", "int", "I", "is", "a", "valid", "immediate", "ARM", "constant", "."], "TS_V_token": ["arm", "0xffffffff", "0", "0xffffffff", "0", "0xffffffff", "0xffffffff", "0xff", "0", "1", "1", "0xff", "0", "4", "0xc000003f", "0", "0xf000000f", "0", "0xfc000003", "0"], "File": "arm3", "Func": "const_ok_for_arm", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3059, "Length": 169, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMTargetLowering", "::", "allowsMisalignedMemoryAccesses", "(", "EVT", "VT", ",", "unsigned", ",", "unsigned", ",", "MachineMemOperand", "::", "Flags", ",", "bool", "*", "Fast", ")", "const", "{", "if", "(", "!", "VT", ".", "isSimple", "(", ")", ")", "return", "false", ";", "bool", "AllowsUnaligned", "=", "Subtarget", "->", "allowsUnalignedMem", "(", ")", ";", "switch", "(", "VT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ")", "{", "default", ":", "return", "false", ";", "case", "MVT", "::", "i8", ":", "case", "MVT", "::", "i16", ":", "case", "MVT", "::", "i32", ":", "{", "if", "(", "AllowsUnaligned", ")", "{", "if", "(", "Fast", ")", "*", "Fast", "=", "Subtarget", "->", "hasV7Ops", "(", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", "case", "MVT", "::", "f64", ":", "case", "MVT", "::", "v2f64", ":", "{", "if", "(", "Subtarget", "->", "hasNEON", "(", ")", "&&", "(", "AllowsUnaligned", "||", "Subtarget", "->", "isLittle", "(", ")", ")", ")", "{", "if", "(", "Fast", ")", "*", "Fast", "=", "true", ";", "return", "true", ";", "}", "return", "false", ";", "}", "}", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "allows", "unaligned", "memory", "accesses", "of", "the", "specified", "type", "."], "TS_V_token": ["ARM", "ARM", "MVT::i8", "MVT::i16", "MVT::i32", "MVT::f64", "MVT::v2f64"], "File": "ARMISelLowering140", "Func": "allowsMisalignedMemoryAccesses", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3060, "Length": 150, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "CSKYTargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "Opcode", ")", "{", "default", ":", "llvm_unreachable", "(", "\"unknown CSKYISD node\"", ")", ";", "case", "CSKYISD", "::", "NIE", ":", "return", "\"CSKYISD::NIE\"", ";", "case", "CSKYISD", "::", "NIR", ":", "return", "\"CSKYISD::NIR\"", ";", "case", "CSKYISD", "::", "RET", ":", "return", "\"CSKYISD::RET\"", ";", "case", "CSKYISD", "::", "CALL", ":", "return", "\"CSKYISD::CALL\"", ";", "case", "CSKYISD", "::", "CALLReg", ":", "return", "\"CSKYISD::CALLReg\"", ";", "case", "CSKYISD", "::", "TAIL", ":", "return", "\"CSKYISD::TAIL\"", ";", "case", "CSKYISD", "::", "TAILReg", ":", "return", "\"CSKYISD::TAILReg\"", ";", "case", "CSKYISD", "::", "LOAD_ADDR", ":", "return", "\"CSKYISD::LOAD_ADDR\"", ";", "case", "CSKYISD", "::", "BITCAST_TO_LOHI", ":", "return", "\"CSKYISD::BITCAST_TO_LOHI\"", ";", "case", "CSKYISD", "::", "BITCAST_FROM_LOHI", ":", "return", "\"CSKYISD::BITCAST_FROM_LOHI\"", ";", "}", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["CSKY", "CSKY", "\"unknown CSKYISD node\"", "CSKYISD::NIE", "\"CSKYISD::NIE\"", "CSKYISD::NIR", "\"CSKYISD::NIR\"", "CSKYISD::RET", "\"CSKYISD::RET\"", "CSKYISD::CALL", "\"CSKYISD::CALL\"", "CSKYISD::CALLReg", "\"CSKYISD::CALLReg\"", "CSKYISD::TAIL", "\"CSKYISD::TAIL\"", "CSKYISD::TAILReg", "\"CSKYISD::TAILReg\"", "CSKYISD::LOAD_ADDR", "\"CSKYISD::LOAD_ADDR\"", "CSKYISD::BITCAST_TO_LOHI", "\"CSKYISD::BITCAST_TO_LOHI\"", "CSKYISD::BITCAST_FROM_LOHI", "\"CSKYISD::BITCAST_FROM_LOHI\""], "File": "CSKYISelLowering", "Func": "getTargetNodeName", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3061, "Length": 106, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZFrameLowering", "::", "processFunctionBeforeFrameFinalized", "(", "MachineFunction", "&", "MF", ",", "RegScavenger", "*", "RS", ")", "const", "{", "MachineFrameInfo", "&", "MFFrame", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "SystemZMachineFunctionInfo", "*", "ZFI", "=", "MF", ".", "getInfo", "<", "SystemZMachineFunctionInfo", ">", "(", ")", ";", "MachineRegisterInfo", "*", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "bool", "BackChain", "=", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "\"backchain\"", ")", ";", "if", "(", "!", "usePackedStack", "(", "MF", ")", "||", "BackChain", ")", "getOrCreateFramePointerSaveIndex", "(", "MF", ")", ";", "uint64_t", "StackSize", "=", "(", "MFFrame", ".", "estimateStackSize", "(", "MF", ")", "+", "SystemZMC", "::", "CallFrameSize", ")", ";", "int64_t", "MaxArgOffset", "=", "0", ";", "for", "(", "int", "I", "=", "MFFrame", ".", "getObjectIndexBegin", "(", ")", ";", "I", "!=", "0", ";", "++", "I", ")", "if", "(", "MFFrame", ".", "getObjectOffset", "(", "I", ")", ">=", "0", ")", "{", "int64_t", "ArgOffset", "=", "MFFrame", ".", "getObjectOffset", "(", "I", ")", "+", "MFFrame", ".", "getObjectSize", "(", "I", ")", ";", "MaxArgOffset", "=", "std", "::", "max", "(", "MaxArgOffset", ",", "ArgOffset", ")", ";", "}", "uint64_t", "MaxReach", "=", "StackSize", "+", "MaxArgOffset", ";", "if", "(", "!", "isUInt", "<", "12", ">", "(", "MaxReach", ")", ")", "{", "RS", "->", "addScavengingFrameIndex", "(", "MFFrame", ".", "CreateStackObject", "(", "8", ",", "Align", "(", "8", ")", ",", "false", ")", ")", ";", "RS", "->", "addScavengingFrameIndex", "(", "MFFrame", ".", "CreateStackObject", "(", "8", ",", "Align", "(", "8", ")", ",", "false", ")", ")", ";", "}", "if", "(", "MF", ".", "front", "(", ")", ".", "isLiveIn", "(", "SystemZ", "::", "R6D", ")", "&&", "ZFI", "->", "getRestoreGPRRegs", "(", ")", ".", "LowGPR", "!=", "SystemZ", "::", "R6D", ")", "for", "(", "auto", "&", "MO", ":", "MRI", "->", "use_nodbg_operands", "(", "SystemZ", "::", "R6D", ")", ")", "MO", ".", "setIsKill", "(", "false", ")", ";", "}", ""], "natrual_language": ["processFunctionBeforeFrameFinalized", "-", "This", "method", "is", "called", "immediately", "before", "the", "specified", "function", "'s", "frame", "layout", "(", "MF.getFrameInfo", "(", ")", ")", "is", "finalized", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ", "SystemZ", "\"backchain\"", "SystemZMC::CallFrameSize", "0", "0", "0", "12", "8", "8", "8", "8", "SystemZ::R6D", "SystemZ::R6D", "SystemZ::R6D"], "File": "SystemZFrameLowering3", "Func": "processFunctionBeforeFrameFinalized", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3062, "Length": 266, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64PassConfig", "::", "addPreRegBankSelect", "(", ")", "{", "bool", "IsOptNone", "=", "getOptLevel", "(", ")", "==", "CodeGenOpt", "::", "None", ";", "if", "(", "!", "IsOptNone", ")", "addPass", "(", "createAArch64PostLegalizerCombiner", "(", "IsOptNone", ")", ")", ";", "addPass", "(", "createAArch64PostLegalizerLowering", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "the", "register", "bank", "selection", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64TargetMachine1", "Func": "addPreRegBankSelect", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3063, "Length": 39, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "function_symbol_result", "function_symbol", "(", "rtx", "target", ",", "const", "char", "*", "name", ",", "sh_function_kind", "kind", ")", "{", "if", "(", "kind", "!=", "FUNCTION_ORDINARY", ")", "name", "=", "IDENTIFIER_POINTER", "(", "get_identifier", "(", "name", ")", ")", ";", "rtx", "sym", "=", "gen_rtx_SYMBOL_REF", "(", "Pmode", ",", "name", ")", ";", "rtx", "lab", "=", "const0_rtx", ";", "SYMBOL_REF_FLAGS", "(", "sym", ")", "=", "SYMBOL_FLAG_FUNCTION", ";", "if", "(", "flag_pic", ")", "switch", "(", "kind", ")", "{", "case", "FUNCTION_ORDINARY", ":", "break", ";", "case", "SFUNC_GOT", ":", "{", "rtx", "reg", "=", "target", "?", "target", ":", "gen_reg_rtx", "(", "Pmode", ")", ";", "emit_insn", "(", "gen_symGOT2reg", "(", "reg", ",", "sym", ")", ")", ";", "sym", "=", "reg", ";", "break", ";", "}", "case", "SFUNC_STATIC", ":", "{", "rtx", "reg", "=", "target", "?", "target", ":", "gen_reg_rtx", "(", "Pmode", ")", ";", "if", "(", "TARGET_FDPIC", ")", "{", "lab", "=", "PATTERN", "(", "gen_call_site", "(", ")", ")", ";", "emit_insn", "(", "gen_sym_label2reg", "(", "reg", ",", "sym", ",", "lab", ")", ")", ";", "}", "else", "{", "emit_insn", "(", "gen_symGOTOFF2reg", "(", "reg", ",", "sym", ")", ")", ";", "}", "sym", "=", "reg", ";", "break", ";", "}", "}", "if", "(", "target", "&&", "sym", "!=", "target", ")", "{", "emit_move_insn", "(", "target", ",", "sym", ")", ";", "return", "function_symbol_result", "(", "target", ",", "lab", ")", ";", "}", "return", "function_symbol_result", "(", "sym", ",", "lab", ")", ";", "}", ""], "natrual_language": ["Return", "an", "RTX", "pair", "for", "the", "address", "and", "call", "site", "label", "of", "a", "function", "NAME", "of", "kind", "KIND", ",", "placing", "the", "result", "in", "TARGET", "if", "not", "NULL", ".", "For", "SFUNC_STATIC", ",", "if", "FDPIC", ",", "the", "LAB", "member", "of", "result", "will", "be", "set", "to", "(", "const_int", "0", ")", "if", "jsr", "should", "be", "used", ",", "or", "a", "label_ref", "if", "bsrf", "should", "be", "used", ".", "For", "FDPIC", ",", "both", "SFUNC_GOT", "and", "SFUNC_STATIC", "will", "return", "the", "address", "of", "the", "function", "itself", ",", "not", "a", "function", "descriptor", ",", "so", "they", "can", "only", "be", "used", "with", "functions", "not", "using", "the", "FDPIC", "register", "that", "are", "known", "to", "be", "called", "directory", "without", "a", "PLT", "entry", "."], "TS_V_token": ["sh"], "File": "sh", "Func": "function_symbol", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3064, "Length": 198, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "TargetTransformInfo", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["PowerPC"], "File": "PPCTargetTransformInfo (2)", "Func": "getAnalysisUsage", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3065, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isTarget64BitLP64", "(", ")", "const", "{", "return", "In64BitMode", "&&", "(", "TargetTriple", ".", "getEnvironment", "(", ")", "!=", "Triple", "::", "GNUX32", "&&", "!", "TargetTriple", ".", "isOSNaCl", "(", ")", ")", ";", "}", ""], "natrual_language": ["Is", "this", "x86_64", "with", "the", "LP64", "programming", "model", "(", "standard", "AMD64", ",", "no", "x32", ")", "?"], "TS_V_token": ["X86"], "File": "X86Subtarget (2)", "Func": "isTarget64BitLP64", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3066, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "mips_function_value", "(", "tree", "valtype", ",", "tree", "func", "ATTRIBUTE_UNUSED", ",", "enum", "machine_mode", "mode", ")", "{", "if", "(", "valtype", ")", "{", "tree", "fields", "[", "2", "]", ";", "int", "unsignedp", ";", "mode", "=", "TYPE_MODE", "(", "valtype", ")", ";", "unsignedp", "=", "TYPE_UNSIGNED", "(", "valtype", ")", ";", "mode", "=", "promote_mode", "(", "valtype", ",", "mode", ",", "&", "unsignedp", ",", "1", ")", ";", "switch", "(", "mips_fpr_return_fields", "(", "valtype", ",", "fields", ")", ")", "{", "case", "1", ":", "return", "gen_rtx_REG", "(", "mode", ",", "FP_RETURN", ")", ";", "case", "2", ":", "return", "mips_return_fpr_pair", "(", "mode", ",", "TYPE_MODE", "(", "TREE_TYPE", "(", "fields", "[", "0", "]", ")", ")", ",", "int_byte_position", "(", "fields", "[", "0", "]", ")", ",", "TYPE_MODE", "(", "TREE_TYPE", "(", "fields", "[", "1", "]", ")", ")", ",", "int_byte_position", "(", "fields", "[", "1", "]", ")", ")", ";", "}", "if", "(", "mips_return_in_msb", "(", "valtype", ")", ")", "{", "HOST_WIDE_INT", "size", "=", "int_size_in_bytes", "(", "valtype", ")", ";", "if", "(", "size", "%", "UNITS_PER_WORD", "!=", "0", ")", "{", "size", "+=", "UNITS_PER_WORD", "-", "size", "%", "UNITS_PER_WORD", ";", "mode", "=", "mode_for_size", "(", "size", "*", "BITS_PER_UNIT", ",", "MODE_INT", ",", "0", ")", ";", "}", "}", "if", "(", "mips_abi", "!=", "ABI_EABI", "&&", "!", "FLOAT_TYPE_P", "(", "valtype", ")", ")", "return", "gen_rtx_REG", "(", "mode", ",", "GP_RETURN", ")", ";", "}", "if", "(", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_FLOAT", "||", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_VECTOR_FLOAT", ")", "&&", "GET_MODE_SIZE", "(", "mode", ")", "<=", "UNITS_PER_HWFPVALUE", ")", "return", "gen_rtx_REG", "(", "mode", ",", "FP_RETURN", ")", ";", "if", "(", "mode", "==", "TFmode", ")", "return", "mips_return_fpr_pair", "(", "mode", ",", "DImode", ",", "0", ",", "DImode", ",", "GET_MODE_SIZE", "(", "mode", ")", "/", "2", ")", ";", "if", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_COMPLEX_FLOAT", "&&", "GET_MODE_SIZE", "(", "mode", ")", "<=", "UNITS_PER_HWFPVALUE", "*", "2", ")", "return", "mips_return_fpr_pair", "(", "mode", ",", "GET_MODE_INNER", "(", "mode", ")", ",", "0", ",", "GET_MODE_INNER", "(", "mode", ")", ",", "GET_MODE_SIZE", "(", "mode", ")", "/", "2", ")", ";", "return", "gen_rtx_REG", "(", "mode", ",", "GP_RETURN", ")", ";", "}", ""], "natrual_language": ["Implement", "FUNCTION_VALUE", "and", "LIBCALL_VALUE", ".", "For", "normal", "calls", ",", "VALTYPE", "is", "the", "return", "type", "and", "MODE", "is", "VOIDmode", ".", "For", "libcalls", ",", "VALTYPE", "is", "null", "and", "MODE", "is", "the", "mode", "of", "the", "return", "value", "."], "TS_V_token": ["mips", "2", "1", "1", "2", "0", "0", "1", "1", "0", "0", "0", "2", "2", "0", "2"], "File": "mips3", "Func": "mips_function_value", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3067, "Length": 305, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86InstrInfo", "::", "reMaterialize", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "Register", "DestReg", ",", "unsigned", "SubIdx", ",", "const", "MachineInstr", "&", "Orig", ",", "const", "TargetRegisterInfo", "&", "TRI", ")", "const", "{", "bool", "ClobbersEFLAGS", "=", "Orig", ".", "modifiesRegister", "(", "X86", "::", "EFLAGS", ",", "&", "TRI", ")", ";", "if", "(", "ClobbersEFLAGS", "&&", "!", "isSafeToClobberEFLAGS", "(", "MBB", ",", "I", ")", ")", "{", "int", "Value", ";", "switch", "(", "Orig", ".", "getOpcode", "(", ")", ")", "{", "case", "X86", "::", "MOV32r0", ":", "Value", "=", "0", ";", "break", ";", "case", "X86", "::", "MOV32r1", ":", "Value", "=", "1", ";", "break", ";", "case", "X86", "::", "MOV32r_1", ":", "Value", "=", "-", "1", ";", "break", ";", "default", ":", "llvm_unreachable", "(", "\"Unexpected instruction!\"", ")", ";", "}", "const", "DebugLoc", "&", "DL", "=", "Orig", ".", "getDebugLoc", "(", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "X86", "::", "MOV32ri", ")", ")", ".", "add", "(", "Orig", ".", "getOperand", "(", "0", ")", ")", ".", "addImm", "(", "Value", ")", ";", "}", "else", "{", "MachineInstr", "*", "MI", "=", "MBB", ".", "getParent", "(", ")", "->", "CloneMachineInstr", "(", "&", "Orig", ")", ";", "MBB", ".", "insert", "(", "I", ",", "MI", ")", ";", "}", "MachineInstr", "&", "NewMI", "=", "*", "std", "::", "prev", "(", "I", ")", ";", "NewMI", ".", "substituteRegister", "(", "Orig", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ",", "DestReg", ",", "SubIdx", ",", "TRI", ")", ";", "}", ""], "natrual_language": ["Re-issue", "the", "specified", "'original", "'", "instruction", "at", "the", "specific", "location", "targeting", "a", "new", "destination", "register", "."], "TS_V_token": ["X86", "X86", "X86::EFLAGS", "X86::MOV32r0", "0", "X86::MOV32r1", "1", "X86::MOV32r_1", "1", "\"Unexpected instruction!\"", "X86::MOV32ri", "0", "0"], "File": "X86InstrInfo143", "Func": "reMaterialize", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3068, "Length": 220, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTargetLowering", "::", "getPreIndexedAddressParts", "(", "SDNode", "*", "N", ",", "SDValue", "&", "Base", ",", "SDValue", "&", "Offset", ",", "ISD", "::", "MemIndexedMode", "&", "AM", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "if", "(", "DisablePPCPreinc", ")", "return", "false", ";", "bool", "isLoad", "=", "true", ";", "SDValue", "Ptr", ";", "EVT", "VT", ";", "unsigned", "Alignment", ";", "if", "(", "LoadSDNode", "*", "LD", "=", "dyn_cast", "<", "LoadSDNode", ">", "(", "N", ")", ")", "{", "Ptr", "=", "LD", "->", "getBasePtr", "(", ")", ";", "VT", "=", "LD", "->", "getMemoryVT", "(", ")", ";", "Alignment", "=", "LD", "->", "getAlignment", "(", ")", ";", "}", "else", "if", "(", "StoreSDNode", "*", "ST", "=", "dyn_cast", "<", "StoreSDNode", ">", "(", "N", ")", ")", "{", "Ptr", "=", "ST", "->", "getBasePtr", "(", ")", ";", "VT", "=", "ST", "->", "getMemoryVT", "(", ")", ";", "Alignment", "=", "ST", "->", "getAlignment", "(", ")", ";", "isLoad", "=", "false", ";", "}", "else", "return", "false", ";", "if", "(", "VT", ".", "isVector", "(", ")", ")", "return", "false", ";", "if", "(", "SelectAddressRegReg", "(", "Ptr", ",", "Base", ",", "Offset", ",", "DAG", ")", ")", "{", "bool", "Swap", "=", "false", ";", "if", "(", "isa", "<", "FrameIndexSDNode", ">", "(", "Base", ")", "||", "isa", "<", "RegisterSDNode", ">", "(", "Base", ")", ")", "Swap", "=", "true", ";", "else", "if", "(", "!", "isLoad", ")", "{", "SDValue", "Val", "=", "cast", "<", "StoreSDNode", ">", "(", "N", ")", "->", "getValue", "(", ")", ";", "if", "(", "Val", "==", "Base", "||", "Base", ".", "getNode", "(", ")", "->", "isPredecessorOf", "(", "Val", ".", "getNode", "(", ")", ")", ")", "Swap", "=", "true", ";", "}", "if", "(", "Swap", ")", "std", "::", "swap", "(", "Base", ",", "Offset", ")", ";", "AM", "=", "ISD", "::", "PRE_INC", ";", "return", "true", ";", "}", "if", "(", "VT", "!=", "MVT", "::", "i64", ")", "{", "if", "(", "!", "SelectAddressRegImm", "(", "Ptr", ",", "Offset", ",", "Base", ",", "DAG", ",", "false", ")", ")", "return", "false", ";", "}", "else", "{", "if", "(", "Alignment", "<", "4", ")", "return", "false", ";", "if", "(", "!", "SelectAddressRegImm", "(", "Ptr", ",", "Offset", ",", "Base", ",", "DAG", ",", "true", ")", ")", "return", "false", ";", "}", "if", "(", "LoadSDNode", "*", "LD", "=", "dyn_cast", "<", "LoadSDNode", ">", "(", "N", ")", ")", "{", "if", "(", "LD", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i64", "&&", "LD", "->", "getMemoryVT", "(", ")", "==", "MVT", "::", "i32", "&&", "LD", "->", "getExtensionType", "(", ")", "==", "ISD", "::", "SEXTLOAD", "&&", "isa", "<", "ConstantSDNode", ">", "(", "Offset", ")", ")", "return", "false", ";", "}", "AM", "=", "ISD", "::", "PRE_INC", ";", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "by", "value", ",", "base", "pointer", "and", "offset", "pointer", "and", "addressing", "mode", "by", "reference", "if", "the", "node", "'s", "address", "can", "be", "legally", "represented", "as", "pre-indexed", "load", "/", "store", "address", "."], "TS_V_token": ["PowerPC", "PPC", "ISD::MemIndexedMode", "PPC", "ISD::PRE_INC", "MVT::i64", "4", "0", "MVT::i64", "MVT::i32", "ISD::SEXTLOAD", "ISD::PRE_INC"], "File": "PPCISelLowering (2)", "Func": "getPreIndexedAddressParts", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3069, "Length": 392, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsSETargetLowering", "::", "isEligibleForTailCallOptimization", "(", "const", "CCState", "&", "CCInfo", ",", "unsigned", "NextStackOffset", ",", "const", "MipsFunctionInfo", "&", "FI", ")", "const", "{", "if", "(", "!", "UseMipsTailCalls", ")", "return", "false", ";", "if", "(", "FI", ".", "isISR", "(", ")", ")", "return", "false", ";", "if", "(", "CCInfo", ".", "getInRegsParamsCount", "(", ")", ">", "0", "||", "FI", ".", "hasByvalArg", "(", ")", ")", "return", "false", ";", "return", "NextStackOffset", "<=", "FI", ".", "getIncomingArgSize", "(", ")", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "call", "can", "be", "lowered", "as", "a", "tail", "call", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "0"], "File": "MipsSEISelLowering11", "Func": "isEligibleForTailCallOptimization", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3070, "Length": 68, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isToken", "(", ")", "const", "{", "return", "Kind", "==", "Token", ";", "}", ""], "natrual_language": ["isToken", "-", "Is", "this", "a", "token", "operand", "?"], "TS_V_token": ["PowerPC"], "File": "PPCAsmParser (2)", "Func": "isToken", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3071, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64TargetLowering", "::", "insertSSPDeclarations", "(", "Module", "&", "M", ")", "const", "{", "if", "(", "Subtarget", "->", "getTargetTriple", "(", ")", ".", "isWindowsMSVCEnvironment", "(", ")", ")", "{", "M", ".", "getOrInsertGlobal", "(", "\"__security_cookie\"", ",", "Type", "::", "getInt8PtrTy", "(", "M", ".", "getContext", "(", ")", ")", ")", ";", "FunctionCallee", "SecurityCheckCookie", "=", "M", ".", "getOrInsertFunction", "(", "\"__security_check_cookie\"", ",", "Type", "::", "getVoidTy", "(", "M", ".", "getContext", "(", ")", ")", ",", "Type", "::", "getInt8PtrTy", "(", "M", ".", "getContext", "(", ")", ")", ")", ";", "if", "(", "Function", "*", "F", "=", "dyn_cast", "<", "Function", ">", "(", "SecurityCheckCookie", ".", "getCallee", "(", ")", ")", ")", "{", "F", "->", "setCallingConv", "(", "CallingConv", "::", "Win64", ")", ";", "F", "->", "addParamAttr", "(", "0", ",", "Attribute", "::", "AttrKind", "::", "InReg", ")", ";", "}", "return", ";", "}", "TargetLowering", "::", "insertSSPDeclarations", "(", "M", ")", ";", "}", ""], "natrual_language": ["Inserts", "necessary", "declarations", "for", "SSP", "(", "stack", "protection", ")", "purpose", "."], "TS_V_token": ["AArch64", "AArch64", "\"__security_cookie\"", "\"__security_check_cookie\"", "0"], "File": "AArch64ISelLowering (2)2", "Func": "insertSSPDeclarations", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3072, "Length": 127, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "ARMSelectionDAGInfo", "::", "EmitTargetCodeForMemset", "(", "SelectionDAG", "&", "DAG", ",", "const", "SDLoc", "&", "dl", ",", "SDValue", "Chain", ",", "SDValue", "Dst", ",", "SDValue", "Src", ",", "SDValue", "Size", ",", "unsigned", "Align", ",", "bool", "isVolatile", ",", "MachinePointerInfo", "DstPtrInfo", ")", "const", "{", "return", "EmitSpecializedLibcall", "(", "DAG", ",", "dl", ",", "Chain", ",", "Dst", ",", "Src", ",", "Size", ",", "Align", ",", "RTLIB", "::", "MEMSET", ")", ";", "}", ""], "natrual_language": ["Emit", "target-specific", "code", "that", "performs", "a", "memset", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMSelectionDAGInfo", "Func": "EmitTargetCodeForMemset", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3073, "Length": 60, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_override_options_after_change", "(", "void", ")", "{", "if", "(", "flag_omit_frame_pointer", ")", "flag_omit_leaf_frame_pointer", "=", "false", ";", "else", "if", "(", "flag_omit_leaf_frame_pointer", ")", "flag_omit_frame_pointer", "=", "true", ";", "}", ""], "natrual_language": ["Implement", "targetm.override_options_after_change", "."], "TS_V_token": ["aarch64"], "File": "aarch642", "Func": "aarch64_override_options_after_change", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3074, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMPassConfig", "::", "addPreEmitPass", "(", ")", "{", "if", "(", "getARMSubtarget", "(", ")", ".", "isThumb2", "(", ")", ")", "{", "if", "(", "!", "getARMSubtarget", "(", ")", ".", "prefers32BitThumb", "(", ")", ")", "addPass", "(", "createThumb2SizeReductionPass", "(", ")", ")", ";", "addPass", "(", "&", "UnpackMachineBundlesID", ")", ";", "}", "if", "(", "FlagSfiDisableCP", ")", "{", "assert", "(", "getARMSubtarget", "(", ")", ".", "useMovt", "(", ")", ")", ";", "}", "addPass", "(", "createARMConstantIslandPass", "(", ")", ")", ";", "if", "(", "getARMSubtarget", "(", ")", ".", "isTargetNaCl", "(", ")", ")", "{", "addPass", "(", "createARMNaClRewritePass", "(", ")", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM"], "File": "ARMTargetMachine46", "Func": "addPreEmitPass", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3075, "Length": 90, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "AArch64TargetLowering", "::", "ConstraintType", "AArch64TargetLowering", "::", "getConstraintType", "(", "const", "std", "::", "string", "&", "Constraint", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "default", ":", "break", ";", "case", "'z'", ":", "return", "C_Other", ";", "case", "'x'", ":", "case", "'w'", ":", "return", "C_RegisterClass", ";", "case", "'Q'", ":", "return", "C_Memory", ";", "}", "}", "return", "TargetLowering", "::", "getConstraintType", "(", "Constraint", ")", ";", "}", ""], "natrual_language": ["Given", "a", "constraint", "letter", ",", "return", "the", "type", "of", "constraint", "for", "this", "target", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "1", "0"], "File": "AArch64ISelLowering116", "Func": "getConstraintType", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3076, "Length": 71, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "Cpu0AsmParser", "::", "tryParseRegister", "(", "StringRef", "Mnemonic", ")", "{", "const", "AsmToken", "&", "Tok", "=", "Parser", ".", "getTok", "(", ")", ";", "int", "RegNum", "=", "-", "1", ";", "if", "(", "Tok", ".", "is", "(", "AsmToken", "::", "Identifier", ")", ")", "{", "std", "::", "string", "lowerCase", "=", "Tok", ".", "getString", "(", ")", ".", "lower", "(", ")", ";", "RegNum", "=", "matchRegisterName", "(", "lowerCase", ")", ";", "}", "else", "if", "(", "Tok", ".", "is", "(", "AsmToken", "::", "Integer", ")", ")", "{", "RegNum", "=", "matchRegisterByNumber", "(", "static_cast", "<", "unsigned", ">", "(", "Tok", ".", "getIntVal", "(", ")", ")", ",", "Mnemonic", ".", "lower", "(", ")", ")", ";", "}", "else", "{", "return", "RegNum", ";", "}", "return", "RegNum", ";", "}", ""], "natrual_language": ["tryParseRegister", "-", "parse", "one", "register", "if", "possible"], "TS_V_token": ["Cpu0", "Cpu0", "1"], "File": "Cpu0AsmParser", "Func": "tryParseRegister", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3077, "Length": 108, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "crx_struct_value_rtx", "(", "tree", "fntype", "ATTRIBUTE_UNUSED", ",", "int", "incoming", "ATTRIBUTE_UNUSED", ")", "{", "return", "gen_rtx_REG", "(", "Pmode", ",", "CRX_STRUCT_VALUE_REGNUM", ")", ";", "}", ""], "natrual_language": ["Implements", "hook", "TARGET_STRUCT_VALUE_RTX", "."], "TS_V_token": ["crx"], "File": "crx", "Func": "crx_struct_value_rtx", "Target": "crx", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3078, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86DomainReassignment", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "if", "(", "DisableX86DomainReassignment", ")", "return", "false", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** Machine Function before Domain Reassignment *****\\n\"", ")", ";", "LLVM_DEBUG", "(", "MF", ".", "print", "(", "dbgs", "(", ")", ")", ")", ";", "STI", "=", "&", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "if", "(", "!", "STI", "->", "hasAVX512", "(", ")", "||", "!", "STI", "->", "hasBWI", "(", ")", ")", "return", "false", ";", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "assert", "(", "MRI", "->", "isSSA", "(", ")", "&&", "\"Expected MIR to be in SSA form\"", ")", ";", "TII", "=", "STI", "->", "getInstrInfo", "(", ")", ";", "initConverters", "(", ")", ";", "bool", "Changed", "=", "false", ";", "EnclosedEdges", ".", "clear", "(", ")", ";", "EnclosedInstrs", ".", "clear", "(", ")", ";", "std", "::", "vector", "<", "Closure", ">", "Closures", ";", "unsigned", "ClosureID", "=", "0", ";", "for", "(", "unsigned", "Idx", "=", "0", ";", "Idx", "<", "MRI", "->", "getNumVirtRegs", "(", ")", ";", "++", "Idx", ")", "{", "unsigned", "Reg", "=", "TargetRegisterInfo", "::", "index2VirtReg", "(", "Idx", ")", ";", "if", "(", "!", "isGPR", "(", "MRI", "->", "getRegClass", "(", "Reg", ")", ")", ")", "continue", ";", "if", "(", "EnclosedEdges", ".", "count", "(", "Reg", ")", ")", "continue", ";", "Closure", "C", "(", "ClosureID", "++", ",", "{", "MaskDomain", "}", ")", ";", "buildClosure", "(", "C", ",", "Reg", ")", ";", "if", "(", "!", "C", ".", "empty", "(", ")", "&&", "C", ".", "isLegal", "(", "MaskDomain", ")", ")", "Closures", ".", "push_back", "(", "std", "::", "move", "(", "C", ")", ")", ";", "}", "for", "(", "Closure", "&", "C", ":", "Closures", ")", "{", "LLVM_DEBUG", "(", "C", ".", "dump", "(", "MRI", ")", ")", ";", "if", "(", "isReassignmentProfitable", "(", "C", ",", "MaskDomain", ")", ")", "{", "reassign", "(", "C", ",", "MaskDomain", ")", ";", "++", "NumClosuresConverted", ";", "Changed", "=", "true", ";", "}", "}", "DeleteContainerSeconds", "(", "Converters", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** Machine Function after Domain Reassignment *****\\n\"", ")", ";", "LLVM_DEBUG", "(", "MF", ".", "print", "(", "dbgs", "(", ")", ")", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "\"***** Machine Function before Domain Reassignment *****\\n\"", "X86", "\"Expected MIR to be in SSA form\"", "0", "0", "\"***** Machine Function after Domain Reassignment *****\\n\""], "File": "X86DomainReassignment16", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3079, "Length": 322, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "Thumb2RegisterInfo", "&", "getRegisterInfo", "(", ")", "const", "{", "return", "RI", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["ARM"], "File": "Thumb2InstrInfo13", "Func": "getRegisterInfo", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3080, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86InsertPrefetch", "::", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "{", "AU", ".", "setPreservesAll", "(", ")", ";", "AU", ".", "addRequired", "<", "MachineModuleInfo", ">", "(", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["X86", "X86"], "File": "X86InsertPrefetch (2)", "Func": "getAnalysisUsage", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3081, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_can_eliminate", "(", "const", "int", "from", "ATTRIBUTE_UNUSED", ",", "const", "int", "to", ")", "{", "return", "(", "to", "==", "HARD_FRAME_POINTER_REGNUM", "||", "to", "==", "STACK_POINTER_REGNUM", ")", ";", "}", ""], "natrual_language": ["Make", "sure", "that", "we", "'re", "not", "trying", "to", "eliminate", "to", "the", "wrong", "hard", "frame", "pointer", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_can_eliminate", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3082, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "char", "*", "fp_const_from_val", "(", "REAL_VALUE_TYPE", "*", "r", ")", "{", "if", "(", "!", "fp_consts_inited", ")", "init_fp_table", "(", ")", ";", "gcc_assert", "(", "real_equal", "(", "r", ",", "&", "value_fp0", ")", ")", ";", "return", "\"0\"", ";", "}", ""], "natrual_language": ["As", "for", "fp_immediate_constant", ",", "but", "value", "is", "passed", "directly", ",", "not", "in", "rtx", "."], "TS_V_token": ["arm", "\"0\""], "File": "arm", "Func": "fp_const_from_val", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3083, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "set", "(", "size_type", "Idx", ")", "{", "V", ".", "set", "(", "Idx", ")", ";", "}", ""], "natrual_language": ["Set", "the", "generated", "scalar", "V", "for", "Def", "and", "the", "given", "Instance", "."], "TS_V_token": ["X86"], "File": "ImmutableGraph", "Func": "set", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3084, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "F", ")", "{", "bool", "Changed", "=", "false", ";", "F", ".", "getRegInfo", "(", ")", ".", "invalidateLiveness", "(", ")", ";", "for", "(", "MachineFunction", "::", "iterator", "FI", "=", "F", ".", "begin", "(", ")", ",", "FE", "=", "F", ".", "end", "(", ")", ";", "FI", "!=", "FE", ";", "++", "FI", ")", "Changed", "|=", "runOnMachineBasicBlock", "(", "*", "FI", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Sparc"], "File": "DelaySlotFiller2", "Func": "runOnMachineFunction", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3085, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86PassConfig", "::", "addPreEmitPass2", "(", ")", "{", "const", "Triple", "&", "TT", "=", "TM", "->", "getTargetTriple", "(", ")", ";", "const", "MCAsmInfo", "*", "MAI", "=", "TM", "->", "getMCAsmInfo", "(", ")", ";", "addPass", "(", "createX86SpeculativeExecutionSideEffectSuppression", "(", ")", ")", ";", "addPass", "(", "createX86IndirectThunksPass", "(", ")", ")", ";", "if", "(", "TT", ".", "isOSWindows", "(", ")", "&&", "TT", ".", "getArch", "(", ")", "==", "Triple", "::", "x86_64", ")", "addPass", "(", "createX86AvoidTrailingCallPass", "(", ")", ")", ";", "if", "(", "!", "TT", ".", "isOSDarwin", "(", ")", "&&", "(", "!", "TT", ".", "isOSWindows", "(", ")", "||", "MAI", "->", "getExceptionHandlingType", "(", ")", "==", "ExceptionHandling", "::", "DwarfCFI", ")", ")", "addPass", "(", "createCFIInstrInserter", "(", ")", ")", ";", "if", "(", "TT", ".", "isOSWindows", "(", ")", ")", "{", "addPass", "(", "createCFGuardLongjmpPass", "(", ")", ")", ";", "addPass", "(", "createEHContGuardCatchretPass", "(", ")", ")", ";", "}", "addPass", "(", "createX86LoadValueInjectionRetHardeningPass", "(", ")", ")", ";", "addPass", "(", "createPseudoProbeInserter", "(", ")", ")", ";", "}", ""], "natrual_language": ["Targets", "may", "add", "passes", "immediately", "before", "machine", "code", "is", "emitted", "in", "this", "callback", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86"], "File": "X86TargetMachine114", "Func": "addPreEmitPass2", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3086, "Length": 142, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "VETargetLowering", "::", "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_VE", ")", ";", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", "(", "1", ",", "Chain", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Can only return in registers!\"", ")", ";", "SDValue", "OutVal", "=", "OutVals", "[", "i", "]", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "case", "CCValAssign", "::", "Full", ":", "break", ";", "case", "CCValAssign", "::", "SExt", ":", "OutVal", "=", "DAG", ".", "getNode", "(", "ISD", "::", "SIGN_EXTEND", ",", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "OutVal", ")", ";", "break", ";", "case", "CCValAssign", "::", "ZExt", ":", "OutVal", "=", "DAG", ".", "getNode", "(", "ISD", "::", "ZERO_EXTEND", ",", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "OutVal", ")", ";", "break", ";", "case", "CCValAssign", "::", "AExt", ":", "OutVal", "=", "DAG", ".", "getNode", "(", "ISD", "::", "ANY_EXTEND", ",", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "OutVal", ")", ";", "break", ";", "case", "CCValAssign", "::", "BCvt", ":", "{", "assert", "(", "VA", ".", "getLocVT", "(", ")", "==", "MVT", "::", "i64", ")", ";", "assert", "(", "VA", ".", "getValVT", "(", ")", "==", "MVT", "::", "f32", ")", ";", "SDValue", "Undef", "=", "SDValue", "(", "DAG", ".", "getMachineNode", "(", "TargetOpcode", "::", "IMPLICIT_DEF", ",", "DL", ",", "MVT", "::", "i64", ")", ",", "0", ")", ";", "SDValue", "Sub_f32", "=", "DAG", ".", "getTargetConstant", "(", "VE", "::", "sub_f32", ",", "DL", ",", "MVT", "::", "i32", ")", ";", "OutVal", "=", "SDValue", "(", "DAG", ".", "getMachineNode", "(", "TargetOpcode", "::", "INSERT_SUBREG", ",", "DL", ",", "MVT", "::", "i64", ",", "Undef", ",", "OutVal", ",", "Sub_f32", ")", ",", "0", ")", ";", "break", ";", "}", "default", ":", "llvm_unreachable", "(", "\"Unknown loc info!\"", ")", ";", "}", "assert", "(", "!", "VA", ".", "needsCustom", "(", ")", "&&", "\"Unexpected custom lowering\"", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "VA", ".", "getLocReg", "(", ")", ",", "OutVal", ",", "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", "(", "VEISD", "::", "RET_FLAG", ",", "DL", ",", "MVT", "::", "Other", ",", "RetOps", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["VE", "VE", "ISD::OutputArg", "16", "VE", "4", "1", "0", "\"Can only return in registers!\"", "ISD::SIGN_EXTEND", "ISD::ZERO_EXTEND", "ISD::ANY_EXTEND", "MVT::i64", "MVT::f32", "MVT::i64", "0", "VE::sub_f32", "MVT::i32", "MVT::i64", "0", "\"Unknown loc info!\"", "\"Unexpected custom lowering\"", "1", "0", "VEISD::RET_FLAG", "MVT::Other"], "File": "VEISelLowering14", "Func": "LowerReturn", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3087, "Length": 466, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCFrameLowering", "::", "enableShrinkWrapping", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "(", "MF", ".", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ".", "isSVR4ABI", "(", ")", "&&", "MF", ".", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ".", "isPPC64", "(", ")", ")", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "will", "correctly", "handle", "shrink", "wrapping", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "PPC"], "File": "PPCFrameLowering (2)", "Func": "enableShrinkWrapping", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3088, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "ConstraintType", "SystemZTargetLowering", "::", "getConstraintType", "(", "StringRef", "Constraint", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'a'", ":", "case", "'d'", ":", "case", "'f'", ":", "case", "'h'", ":", "case", "'r'", ":", "case", "'v'", ":", "return", "C_RegisterClass", ";", "case", "'Q'", ":", "case", "'R'", ":", "case", "'S'", ":", "case", "'T'", ":", "case", "'m'", ":", "return", "C_Memory", ";", "case", "'I'", ":", "case", "'J'", ":", "case", "'K'", ":", "case", "'L'", ":", "case", "'M'", ":", "return", "C_Other", ";", "default", ":", "break", ";", "}", "}", "return", "TargetLowering", "::", "getConstraintType", "(", "Constraint", ")", ";", "}", ""], "natrual_language": ["Given", "a", "constraint", "letter", ",", "return", "the", "type", "of", "constraint", "for", "this", "target", "."], "TS_V_token": ["SystemZ", "SystemZ", "1", "0"], "File": "SystemZISelLowering", "Func": "getConstraintType", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3089, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsTargetLowering", "::", "getVectorTypeBreakdownForCallingConv", "(", "LLVMContext", "&", "Context", ",", "CallingConv", "::", "ID", "CC", ",", "EVT", "VT", ",", "EVT", "&", "IntermediateVT", ",", "unsigned", "&", "NumIntermediates", ",", "MVT", "&", "RegisterVT", ")", "const", "{", "RegisterVT", "=", "getRegisterTypeForCallingConv", "(", "Context", ",", "CC", ",", "VT", ")", ";", "IntermediateVT", "=", "RegisterVT", ";", "NumIntermediates", "=", "VT", ".", "getSizeInBits", "(", ")", "<", "RegisterVT", ".", "getSizeInBits", "(", ")", "?", "VT", ".", "getVectorNumElements", "(", ")", ":", "VT", ".", "getSizeInBits", "(", ")", "/", "RegisterVT", ".", "getSizeInBits", "(", ")", ";", "return", "NumIntermediates", ";", "}", ""], "natrual_language": ["Certain", "targets", "such", "as", "MIPS", "require", "that", "some", "types", "such", "as", "vectors", "are", "always", "broken", "down", "into", "scalars", "in", "some", "contexts", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsISelLowering (2)4", "Func": "getVectorTypeBreakdownForCallingConv", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3090, "Length": 82, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "ARMBaseRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "ARMSubtarget", "&", "STI", "=", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "const", "ARMFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "SP", ")", ";", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "PC", ")", ";", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "FPSCR", ")", ";", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "APSR_NZCV", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "markSuperRegs", "(", "Reserved", ",", "getFramePointerReg", "(", "STI", ")", ")", ";", "if", "(", "hasBasePointer", "(", "MF", ")", ")", "markSuperRegs", "(", "Reserved", ",", "BasePtr", ")", ";", "if", "(", "STI", ".", "isR9Reserved", "(", ")", ")", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "R9", ")", ";", "if", "(", "!", "STI", ".", "hasD32", "(", ")", ")", "{", "static_assert", "(", "ARM", "::", "D31", "==", "ARM", "::", "D16", "+", "15", ",", "\"Register list not consecutive!\"", ")", ";", "for", "(", "unsigned", "R", "=", "0", ";", "R", "<", "16", ";", "++", "R", ")", "markSuperRegs", "(", "Reserved", ",", "ARM", "::", "D16", "+", "R", ")", ";", "}", "const", "TargetRegisterClass", "&", "RC", "=", "ARM", "::", "GPRPairRegClass", ";", "for", "(", "unsigned", "Reg", ":", "RC", ")", "for", "(", "MCSubRegIterator", "SI", "(", "Reg", ",", "this", ")", ";", "SI", ".", "isValid", "(", ")", ";", "++", "SI", ")", "if", "(", "Reserved", ".", "test", "(", "*", "SI", ")", ")", "markSuperRegs", "(", "Reserved", ",", "Reg", ")", ";", "assert", "(", "checkAllSuperRegsMarked", "(", "Reserved", ")", ")", ";", "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": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM::SP", "ARM::PC", "ARM::FPSCR", "ARM::APSR_NZCV", "ARM::R9", "ARM::D31", "ARM::D16", "15", "\"Register list not consecutive!\"", "0", "16", "ARM::D16", "ARM::GPRPairRegClass"], "File": "ARMBaseRegisterInfo59", "Func": "getReservedRegs", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3091, "Length": 245, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCSymbol", "*", "LanaiMCInstLower", "::", "GetExternalSymbolSymbol", "(", "const", "MachineOperand", "&", "MO", ")", "const", "{", "return", "Printer", ".", "GetExternalSymbolSymbol", "(", "MO", ".", "getSymbolName", "(", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "MCSymbol", "for", "the", "specified", "ExternalSymbol", "."], "TS_V_token": ["Lanai", "Lanai"], "File": "LanaiMCInstLower", "Func": "GetExternalSymbolSymbol", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3092, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Value", "*", "X86TargetLowering", "::", "getSafeStackPointerLocation", "(", "IRBuilder", "<", ">", "&", "IRB", ")", "const", "{", "if", "(", "Subtarget", ".", "getTargetTriple", "(", ")", ".", "isOSContiki", "(", ")", ")", "return", "getDefaultSafeStackPointerLocation", "(", "IRB", ",", "false", ")", ";", "if", "(", "Subtarget", ".", "isTargetAndroid", "(", ")", ")", "{", "unsigned", "Offset", "=", "(", "Subtarget", ".", "is64Bit", "(", ")", ")", "?", "0x48", ":", "0x24", ";", "return", "SegmentOffset", "(", "IRB", ",", "Offset", ",", "getAddressSpace", "(", ")", ")", ";", "}", "if", "(", "Subtarget", ".", "isTargetFuchsia", "(", ")", ")", "{", "return", "SegmentOffset", "(", "IRB", ",", "0x18", ",", "257", ")", ";", "}", "return", "TargetLowering", "::", "getSafeStackPointerLocation", "(", "IRB", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "stores", "SafeStack", "pointer", "at", "a", "fixed", "offset", "in", "some", "non-standard", "address", "space", ",", "and", "populates", "the", "address", "space", "and", "offset", "as", "appropriate", "."], "TS_V_token": ["X86", "X86", "0x48", "0x24", "0x18", "257"], "File": "X86ISelLowering115", "Func": "getSafeStackPointerLocation", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3093, "Length": 100, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "SDValue", "WidenVector", "(", "SDValue", "V64Reg", ",", "SelectionDAG", "&", "DAG", ")", "{", "EVT", "VT", "=", "V64Reg", ".", "getValueType", "(", ")", ";", "unsigned", "NarrowSize", "=", "VT", ".", "getVectorNumElements", "(", ")", ";", "MVT", "EltTy", "=", "VT", ".", "getVectorElementType", "(", ")", ".", "getSimpleVT", "(", ")", ";", "MVT", "WideTy", "=", "MVT", "::", "getVectorVT", "(", "EltTy", ",", "2", "*", "NarrowSize", ")", ";", "SDLoc", "DL", "(", "V64Reg", ")", ";", "return", "DAG", ".", "getNode", "(", "ISD", "::", "INSERT_SUBVECTOR", ",", "DL", ",", "WideTy", ",", "DAG", ".", "getUNDEF", "(", "WideTy", ")", ",", "V64Reg", ",", "DAG", ".", "getConstant", "(", "0", ",", "DL", ",", "MVT", "::", "i32", ")", ")", ";", "}", ""], "natrual_language": ["Widen", "the", "vector", "up", "to", "the", "next", "power", "of", "two", "using", "INSERT_SUBVECTOR", "."], "TS_V_token": ["AArch64", "MVT::getVectorVT", "2", "ISD::INSERT_SUBVECTOR", "0", "MVT::i32"], "File": "AArch64ISelLowering (2)", "Func": "WidenVector", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3094, "Length": 100, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isShuffleMaskLegal", "(", "const", "SmallVectorImpl", "<", "int", ">", "&", "M", ",", "EVT", "VT", ")", "const", "{", "if", "(", "!", "VT", ".", "isSimple", "(", ")", ")", "return", "false", ";", "MVT", "SVT", "=", "VT", ".", "getSimpleVT", "(", ")", ";", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "64", ")", "return", "false", ";", "return", "(", "SVT", ".", "getVectorNumElements", "(", ")", "==", "2", "||", "ShuffleVectorSDNode", "::", "isSplatMask", "(", "&", "M", "[", "0", "]", ",", "VT", ")", "||", "isMOVLMask", "(", "M", ",", "SVT", ")", "||", "isSHUFPMask", "(", "M", ",", "SVT", ")", "||", "isPSHUFDMask", "(", "M", ",", "SVT", ")", "||", "isPSHUFHWMask", "(", "M", ",", "SVT", ",", "Subtarget", "->", "hasInt256", "(", ")", ")", "||", "isPSHUFLWMask", "(", "M", ",", "SVT", ",", "Subtarget", "->", "hasInt256", "(", ")", ")", "||", "isPALIGNRMask", "(", "M", ",", "SVT", ",", "Subtarget", ")", "||", "isUNPCKLMask", "(", "M", ",", "SVT", ",", "Subtarget", "->", "hasInt256", "(", ")", ")", "||", "isUNPCKHMask", "(", "M", ",", "SVT", ",", "Subtarget", "->", "hasInt256", "(", ")", ")", "||", "isUNPCKL_v_undef_Mask", "(", "M", ",", "SVT", ",", "Subtarget", "->", "hasInt256", "(", ")", ")", "||", "isUNPCKH_v_undef_Mask", "(", "M", ",", "SVT", ",", "Subtarget", "->", "hasInt256", "(", ")", ")", ")", ";", "}", ""], "natrual_language": ["Targets", "can", "use", "this", "to", "indicate", "that", "they", "only", "support", "some", "VECTOR_SHUFFLE", "operations", ",", "those", "with", "specific", "masks", "."], "TS_V_token": ["X86", "X86", "64", "2", "0"], "File": "X86ISelLowering (2)1", "Func": "isShuffleMaskLegal", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3095, "Length": 185, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "pa_mem_shadd_constant_p", "(", "int", "val", ")", "{", "if", "(", "val", "==", "2", "||", "val", "==", "4", "||", "val", "==", "8", ")", "return", "1", ";", "else", "return", "0", ";", "}", ""], "natrual_language": ["Return", "1", "if", "the", "given", "constant", "is", "2", ",", "4", ",", "or", "8", ".", "These", "are", "the", "valid", "constants", "for", "a", "MULT", "embedded", "inside", "a", "memory", "address", "."], "TS_V_token": ["pa", "2", "4", "8", "1", "0"], "File": "pa", "Func": "pa_mem_shadd_constant_p", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3096, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64CollectLOH", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "const", "TargetMachine", "&", "TM", "=", "MF", ".", "getTarget", "(", ")", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "TM", ".", "getSubtargetImpl", "(", ")", "->", "getRegisterInfo", "(", ")", ";", "const", "MachineDominatorTree", "*", "MDT", "=", "&", "getAnalysis", "<", "MachineDominatorTree", ">", "(", ")", ";", "MapRegToId", "RegToId", ";", "MapIdToReg", "IdToReg", ";", "AArch64FunctionInfo", "*", "AArch64FI", "=", "MF", ".", "getInfo", "<", "AArch64FunctionInfo", ">", "(", ")", ";", "assert", "(", "AArch64FI", "&&", "\"No MachineFunctionInfo for this function!\"", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Looking for LOH in \"", "<<", "MF", ".", "getName", "(", ")", "<<", "'\\n'", ")", ";", "collectInvolvedReg", "(", "MF", ",", "RegToId", ",", "IdToReg", ",", "TRI", ")", ";", "if", "(", "RegToId", ".", "empty", "(", ")", ")", "return", "false", ";", "MachineInstr", "*", "DummyOp", "=", "nullptr", ";", "if", "(", "BasicBlockScopeOnly", ")", "{", "const", "AArch64InstrInfo", "*", "TII", "=", "static_cast", "<", "const", "AArch64InstrInfo", "*", ">", "(", "TM", ".", "getSubtargetImpl", "(", ")", "->", "getInstrInfo", "(", ")", ")", ";", "DummyOp", "=", "MF", ".", "CreateMachineInstr", "(", "TII", "->", "get", "(", "AArch64", "::", "COPY", ")", ",", "DebugLoc", "(", ")", ")", ";", "}", "unsigned", "NbReg", "=", "RegToId", ".", "size", "(", ")", ";", "bool", "Modified", "=", "false", ";", "InstrToInstrs", "*", "ColorOpToReachedUses", "=", "new", "InstrToInstrs", "[", "NbReg", "]", ";", "reachingDef", "(", "MF", ",", "ColorOpToReachedUses", ",", "RegToId", ",", "true", ",", "DummyOp", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"ADRP reaching defs\\n\"", ")", ";", "DEBUG", "(", "printReachingDef", "(", "ColorOpToReachedUses", ",", "NbReg", ",", "TRI", ",", "IdToReg", ")", ")", ";", "InstrToInstrs", "ADRPToReachingDefs", ";", "reachedUsesToDefs", "(", "ADRPToReachingDefs", ",", "ColorOpToReachedUses", ",", "RegToId", ",", "true", ")", ";", "computeADRP", "(", "ADRPToReachingDefs", ",", "*", "AArch64FI", ",", "MDT", ")", ";", "delete", "[", "]", "ColorOpToReachedUses", ";", "ColorOpToReachedUses", "=", "new", "InstrToInstrs", "[", "NbReg", "]", ";", "reachingDef", "(", "MF", ",", "ColorOpToReachedUses", ",", "RegToId", ",", "false", ",", "DummyOp", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"All reaching defs\\n\"", ")", ";", "DEBUG", "(", "printReachingDef", "(", "ColorOpToReachedUses", ",", "NbReg", ",", "TRI", ",", "IdToReg", ")", ")", ";", "InstrToInstrs", "UsesToReachingDefs", ";", "reachedUsesToDefs", "(", "UsesToReachingDefs", ",", "ColorOpToReachedUses", ",", "RegToId", ",", "false", ")", ";", "computeOthers", "(", "UsesToReachingDefs", ",", "ColorOpToReachedUses", ",", "*", "AArch64FI", ",", "RegToId", ",", "MDT", ")", ";", "delete", "[", "]", "ColorOpToReachedUses", ";", "if", "(", "BasicBlockScopeOnly", ")", "MF", ".", "DeleteMachineInstr", "(", "DummyOp", ")", ";", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "\"No MachineFunctionInfo for this function!\"", "\"Looking for LOH in \"", "AArch64", "AArch64", "AArch64::COPY", "\"ADRP reaching defs\\n\"", "AArch64", "\"All reaching defs\\n\"", "AArch64"], "File": "AArch64CollectLOH22", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3097, "Length": 350, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTargetMachine", "::", "addPreEmitPass", "(", "PassManagerBase", "&", "PM", ",", "bool", "Fast", ")", "{", "PM", ".", "add", "(", "createPPCBranchSelectionPass", "(", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["PowerPC", "PPC", "PPC"], "File": "PPCTargetMachine70", "Func": "addPreEmitPass", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3098, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_secondary_reload_move", "(", "enum", "rs6000_reg_type", "to_type", ",", "enum", "rs6000_reg_type", "from_type", ",", "machine_mode", "mode", ",", "secondary_reload_info", "*", "sri", ",", "bool", "altivec_p", ")", "{", "if", "(", "to_type", "==", "NO_REG_TYPE", "||", "from_type", "==", "NO_REG_TYPE", ")", "return", "false", ";", "if", "(", "(", "to_type", "==", "PSEUDO_REG_TYPE", "&&", "from_type", "==", "PSEUDO_REG_TYPE", ")", "||", "(", "to_type", "==", "PSEUDO_REG_TYPE", "&&", "IS_STD_REG_TYPE", "(", "from_type", ")", ")", "||", "(", "from_type", "==", "PSEUDO_REG_TYPE", "&&", "IS_STD_REG_TYPE", "(", "to_type", ")", ")", ")", "return", "true", ";", "if", "(", "to_type", "==", "from_type", "&&", "IS_STD_REG_TYPE", "(", "to_type", ")", ")", "return", "true", ";", "if", "(", "rs6000_secondary_reload_simple_move", "(", "to_type", ",", "from_type", ",", "mode", ")", ")", "{", "if", "(", "sri", ")", "{", "sri", "->", "icode", "=", "CODE_FOR_nothing", ";", "sri", "->", "extra_cost", "=", "0", ";", "}", "return", "true", ";", "}", "return", "rs6000_secondary_reload_direct_move", "(", "to_type", ",", "from_type", ",", "mode", ",", "sri", ",", "altivec_p", ")", ";", "}", ""], "natrual_language": ["Return", "whether", "a", "move", "between", "two", "register", "classes", "can", "be", "done", "either", "directly", "(", "simple", "move", ")", "or", "via", "a", "pattern", "that", "uses", "a", "single", "extra", "temporary", "(", "using", "power8", "'s", "direct", "move", "in", "this", "case", "."], "TS_V_token": ["powerpcspe", "0"], "File": "powerpcspe", "Func": "rs6000_secondary_reload_move", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3099, "Length": 136, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86PassConfig", "::", "addIRPasses", "(", ")", "{", "addPass", "(", "createAtomicExpandPass", "(", "&", "getX86TargetMachine", "(", ")", ")", ")", ";", "TargetPassConfig", "::", "addIRPasses", "(", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createInterleavedAccessPass", "(", "TM", ")", ")", ";", "}", ""], "natrual_language": ["Add", "common", "target", "configurable", "passes", "that", "perform", "LLVM", "IR", "to", "IR", "transforms", "following", "machine", "independent", "optimization", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86TargetMachine108", "Func": "addIRPasses", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3100, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isLabel", "(", ")", "const", "{", "if", "(", "!", "isImm", "(", ")", ")", "return", "false", ";", "if", "(", "dyn_cast", "<", "MCSymbolRefExpr", ">", "(", "Imm", ".", "Val", ")", ")", "{", "return", "true", ";", "}", "else", "if", "(", "const", "MCConstantExpr", "*", "CE", "=", "dyn_cast", "<", "MCConstantExpr", ">", "(", "Imm", ".", "Val", ")", ")", "{", "int64_t", "Val", "=", "CE", "->", "getValue", "(", ")", ";", "int64_t", "Min", "=", "-", "(", "scale", "*", "(", "1LL", "<<", "(", "field_width", "-", "1", ")", ")", ")", ";", "int64_t", "Max", "=", "scale", "*", "(", "(", "1LL", "<<", "(", "field_width", "-", "1", ")", ")", "-", "1", ")", ";", "return", "(", "Val", "%", "scale", ")", "==", "0", "&&", "Val", ">=", "Min", "&&", "Val", "<=", "Max", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "MachineInstr", "represents", "a", "label", "."], "TS_V_token": ["AArch64", "1LL", "1", "1LL", "1", "1", "0"], "File": "AArch64AsmParser13", "Func": "isLabel", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3101, "Length": 120, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "pa_assemble_integer", "(", "rtx", "x", ",", "unsigned", "int", "size", ",", "int", "aligned_p", ")", "{", "if", "(", "size", "==", "UNITS_PER_WORD", "&&", "aligned_p", "&&", "function_label_operand", "(", "x", ",", "VOIDmode", ")", ")", "{", "fputs", "(", "size", "==", "8", "?", "\"\\t.dword\\tP%\"", ":", "\"\\t.word\\tP%\"", ",", "asm_out_file", ")", ";", "output_addr_const", "(", "asm_out_file", ",", "x", ")", ";", "fputc", "(", "'\\n'", ",", "asm_out_file", ")", ";", "return", "true", ";", "}", "return", "default_assemble_integer", "(", "x", ",", "size", ",", "aligned_p", ")", ";", "}", ""], "natrual_language": ["Target", "hook", "for", "assembling", "integer", "objects", ".", "This", "code", "handles", "aligned", "SI", "and", "DI", "integers", "specially", ",", "since", "function", "references", "must", "be", "preceded", "by", "P", "%", "."], "TS_V_token": ["pa", "8", "\"\\t.dword\\tP%\"", "\"\\t.word\\tP%\""], "File": "pa3", "Func": "pa_assemble_integer", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3102, "Length": 73, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "SparcSubtarget", "::", "getAdjustedFrameSize", "(", "int", "frameSize", ")", "const", "{", "if", "(", "is64Bit", "(", ")", ")", "{", "frameSize", "+=", "128", ";", "frameSize", "=", "RoundUpToAlignment", "(", "frameSize", ",", "16", ")", ";", "}", "else", "{", "frameSize", "+=", "92", ";", "frameSize", "=", "RoundUpToAlignment", "(", "frameSize", ",", "8", ")", ";", "}", "return", "frameSize", ";", "}", ""], "natrual_language": ["Given", "a", "actual", "stack", "size", "as", "determined", "by", "FrameInfo", ",", "this", "function", "returns", "adjusted", "framesize", "which", "includes", "space", "for", "RSA", ",", "return", "address", ",", "and", "frame", "poitner", "."], "TS_V_token": ["Sparc", "Sparc", "128", "16", "92", "8"], "File": "SparcSubtarget26", "Func": "getAdjustedFrameSize", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3103, "Length": 51, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "i386_pe_assemble_visibility", "(", "tree", "decl", ",", "int", ")", "{", "if", "(", "!", "decl", "||", "!", "lookup_attribute", "(", "\"visibility\"", ",", "DECL_ATTRIBUTES", "(", "decl", ")", ")", ")", "return", ";", "if", "(", "!", "DECL_ARTIFICIAL", "(", "decl", ")", ")", "warning", "(", "OPT_Wattributes", ",", "\"visibility attribute not supported \"", "\"in this configuration; ignored\"", ")", ";", "}", ""], "natrual_language": ["Emit", "an", "assembler", "directive", "to", "set", "symbol", "for", "DECL", "visibility", "to", "the", "visibility", "type", "VIS", ",", "which", "must", "not", "be", "VISIBILITY_DEFAULT", ".", "As", "for", "PE", "there", "is", "no", "hidden", "support", "in", "gas", ",", "we", "just", "warn", "for", "user-specified", "visibility", "attributes", "."], "TS_V_token": ["i386", "\"visibility\"", "\"visibility attribute not supported \"", "\"in this configuration; ignored\""], "File": "winnt", "Func": "i386_pe_assemble_visibility", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3104, "Length": 44, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "applyFixup", "(", "const", "MCFixup", "&", "Fixup", ",", "char", "*", "Data", ",", "unsigned", "DataSize", ",", "uint64_t", "Value", ")", "const", "{", "MCFixupKind", "Kind", "=", "Fixup", ".", "getKind", "(", ")", ";", "Value", "=", "adjustFixupValue", "(", "(", "unsigned", ")", "Kind", ",", "Value", ")", ";", "int64_t", "SymOffset", "=", "MipsGetSymAndOffset", "(", "Fixup", ")", ".", "second", ";", "if", "(", "!", "Value", "&&", "!", "SymOffset", ")", "return", ";", "unsigned", "Offset", "=", "Fixup", ".", "getOffset", "(", ")", ";", "unsigned", "NumBytes", "=", "(", "getFixupKindInfo", "(", "Kind", ")", ".", "TargetSize", "+", "7", ")", "/", "8", ";", "unsigned", "FullSize", ";", "switch", "(", "(", "unsigned", ")", "Kind", ")", "{", "case", "Mips", "::", "fixup_Mips_16", ":", "FullSize", "=", "2", ";", "break", ";", "case", "Mips", "::", "fixup_Mips_64", ":", "FullSize", "=", "8", ";", "break", ";", "default", ":", "FullSize", "=", "4", ";", "break", ";", "}", "uint64_t", "CurVal", "=", "0", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "NumBytes", ";", "++", "i", ")", "{", "unsigned", "Idx", "=", "IsLittle", "?", "i", ":", "(", "FullSize", "-", "1", "-", "i", ")", ";", "CurVal", "|=", "(", "uint64_t", ")", "(", "(", "uint8_t", ")", "Data", "[", "Offset", "+", "Idx", "]", ")", "<<", "(", "i", "*", "8", ")", ";", "}", "uint64_t", "Mask", "=", "(", "(", "uint64_t", ")", "(", "-", "1", ")", ">>", "(", "64", "-", "getFixupKindInfo", "(", "Kind", ")", ".", "TargetSize", ")", ")", ";", "CurVal", "|=", "(", "Value", "+", "SymOffset", ")", "&", "Mask", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "NumBytes", ";", "++", "i", ")", "{", "unsigned", "Idx", "=", "IsLittle", "?", "i", ":", "(", "FullSize", "-", "1", "-", "i", ")", ";", "Data", "[", "Offset", "+", "Idx", "]", "=", "(", "uint8_t", ")", "(", "(", "CurVal", ">>", "(", "i", "*", "8", ")", ")", "&", "0xff", ")", ";", "}", "}", ""], "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": ["Mips", "Mips", "7", "8", "Mips::fixup_Mips_16", "2", "Mips::fixup_Mips_64", "8", "4", "0", "0", "1", "8", "1", "64", "0", "1", "8", "0xff"], "File": "MipsAsmBackend31", "Func": "applyFixup", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3105, "Length": 277, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Dcpu16PassConfig", "::", "addPreEmitPass", "(", ")", "{", "return", "false", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["Dcpu16"], "File": "Dcpu16TargetMachine (2)", "Func": "addPreEmitPass", "Target": "Dcpu16", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3106, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "avx_vpermilp_parallel", "(", "rtx", "par", ",", "machine_mode", "mode", ")", "{", "unsigned", "i", ",", "nelt", "=", "GET_MODE_NUNITS", "(", "mode", ")", ";", "unsigned", "mask", "=", "0", ";", "unsigned", "char", "ipar", "[", "16", "]", "=", "{", "}", ";", "if", "(", "XVECLEN", "(", "par", ",", "0", ")", "!=", "(", "int", ")", "nelt", ")", "return", "0", ";", "for", "(", "i", "=", "0", ";", "i", "<", "nelt", ";", "++", "i", ")", "{", "rtx", "er", "=", "XVECEXP", "(", "par", ",", "0", ",", "i", ")", ";", "unsigned", "HOST_WIDE_INT", "ei", ";", "if", "(", "!", "CONST_INT_P", "(", "er", ")", ")", "return", "0", ";", "ei", "=", "INTVAL", "(", "er", ")", ";", "if", "(", "ei", ">=", "nelt", ")", "return", "0", ";", "ipar", "[", "i", "]", "=", "ei", ";", "}", "switch", "(", "mode", ")", "{", "case", "E_V8DFmode", ":", "for", "(", "i", "=", "4", ";", "i", "<", "6", ";", "++", "i", ")", "{", "if", "(", "ipar", "[", "i", "]", "<", "4", "||", "ipar", "[", "i", "]", ">=", "6", ")", "return", "0", ";", "mask", "|=", "(", "ipar", "[", "i", "]", "-", "4", ")", "<<", "i", ";", "}", "for", "(", "i", "=", "6", ";", "i", "<", "8", ";", "++", "i", ")", "{", "if", "(", "ipar", "[", "i", "]", "<", "6", ")", "return", "0", ";", "mask", "|=", "(", "ipar", "[", "i", "]", "-", "6", ")", "<<", "i", ";", "}", "case", "E_V4DFmode", ":", "for", "(", "i", "=", "0", ";", "i", "<", "2", ";", "++", "i", ")", "{", "if", "(", "ipar", "[", "i", "]", ">=", "2", ")", "return", "0", ";", "mask", "|=", "ipar", "[", "i", "]", "<<", "i", ";", "}", "for", "(", "i", "=", "2", ";", "i", "<", "4", ";", "++", "i", ")", "{", "if", "(", "ipar", "[", "i", "]", "<", "2", ")", "return", "0", ";", "mask", "|=", "(", "ipar", "[", "i", "]", "-", "2", ")", "<<", "i", ";", "}", "break", ";", "case", "E_V16SFmode", ":", "for", "(", "i", "=", "0", ";", "i", "<", "8", ";", "++", "i", ")", "if", "(", "ipar", "[", "i", "]", "+", "8", "!=", "ipar", "[", "i", "+", "8", "]", ")", "return", "0", ";", "case", "E_V8SFmode", ":", "for", "(", "i", "=", "0", ";", "i", "<", "4", ";", "++", "i", ")", "if", "(", "ipar", "[", "i", "]", "+", "4", "!=", "ipar", "[", "i", "+", "4", "]", ")", "return", "0", ";", "nelt", "=", "4", ";", "case", "E_V2DFmode", ":", "case", "E_V4SFmode", ":", "for", "(", "i", "=", "0", ";", "i", "<", "nelt", ";", "++", "i", ")", "mask", "|=", "ipar", "[", "i", "]", "<<", "(", "i", "*", "(", "nelt", "/", "2", ")", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "return", "mask", "+", "1", ";", "}", ""], "natrual_language": ["Helper", "for", "avx_vpermilps256_operand", "et", "al", ".", "This", "is", "also", "used", "by", "the", "expansion", "functions", "to", "turn", "the", "parallel", "back", "into", "a", "mask", ".", "The", "return", "value", "is", "0", "for", "no", "match", "and", "the", "imm8+1", "for", "a", "match", "."], "TS_V_token": ["i386", "0", "16", "0", "0", "0", "0", "0", "0", "4", "6", "4", "6", "0", "4", "6", "8", "6", "0", "6", "0", "2", "2", "0", "2", "4", "2", "0", "2", "0", "8", "8", "8", "0", "0", "4", "4", "4", "0", "4", "0", "2", "1"], "File": "i386", "Func": "avx_vpermilp_parallel", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3107, "Length": 418, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "FunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "AU", ".", "addRequired", "<", "AssumptionCacheTracker", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "ScalarEvolutionWrapperPass", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "AAResultsWrapperPass", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "TargetLibraryInfoWrapperPass", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "DominatorTreeWrapperPass", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "TargetPassConfig", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "ScalarEvolutionWrapperPass", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "GlobalsAAWrapperPass", ">", "(", ")", ";", "AU", ".", "setPreservesCFG", "(", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["ARM"], "File": "ARMParallelDSP1", "Func": "getAnalysisUsage", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3108, "Length": 96, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TTIImpl", "::", "isLegalNTStore", "(", "Type", "*", "DataType", ",", "Align", "Alignment", ")", "{", "unsigned", "DataSize", "=", "DL", ".", "getTypeStoreSize", "(", "DataType", ")", ";", "if", "(", "ST", "->", "hasSSE4A", "(", ")", "&&", "(", "DataType", "->", "isFloatTy", "(", ")", "||", "DataType", "->", "isDoubleTy", "(", ")", ")", ")", "return", "true", ";", "if", "(", "Alignment", "<", "DataSize", "||", "DataSize", "<", "4", "||", "DataSize", ">", "32", "||", "!", "isPowerOf2_32", "(", "DataSize", ")", ")", "return", "false", ";", "if", "(", "DataSize", "==", "32", ")", "return", "ST", "->", "hasAVX", "(", ")", ";", "if", "(", "DataSize", "==", "16", ")", "return", "ST", "->", "hasSSE1", "(", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "supports", "nontemporal", "store", "."], "TS_V_token": ["X86", "X86", "4", "32", "32", "16"], "File": "X86TargetTransformInfo (2)1", "Func": "isLegalNTStore", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3109, "Length": 101, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64PassConfig", "::", "addRegBankSelect", "(", ")", "{", "addPass", "(", "new", "RegBankSelect", "(", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["This", "method", "should", "install", "a", "register", "bank", "selector", "pass", ",", "which", "assigns", "register", "banks", "to", "virtual", "registers", "without", "a", "register", "class", "or", "register", "banks", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64TargetMachine (2)3", "Func": "addRegBankSelect", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3110, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Align", "PPCTargetLowering", "::", "getPrefLoopAlignment", "(", "MachineLoop", "*", "ML", ")", "const", "{", "switch", "(", "Subtarget", ".", "getCPUDirective", "(", ")", ")", "{", "default", ":", "break", ";", "case", "PPC", "::", "DIR_970", ":", "case", "PPC", "::", "DIR_PWR4", ":", "case", "PPC", "::", "DIR_PWR5", ":", "case", "PPC", "::", "DIR_PWR5X", ":", "case", "PPC", "::", "DIR_PWR6", ":", "case", "PPC", "::", "DIR_PWR6X", ":", "case", "PPC", "::", "DIR_PWR7", ":", "case", "PPC", "::", "DIR_PWR8", ":", "case", "PPC", "::", "DIR_PWR9", ":", "case", "PPC", "::", "DIR_PWR10", ":", "case", "PPC", "::", "DIR_PWR_FUTURE", ":", "{", "if", "(", "!", "ML", ")", "break", ";", "if", "(", "!", "DisableInnermostLoopAlign32", ")", "{", "if", "(", "ML", "->", "getLoopDepth", "(", ")", ">", "1", "&&", "ML", "->", "getSubLoops", "(", ")", ".", "empty", "(", ")", ")", "return", "Align", "(", "32", ")", ";", "}", "const", "PPCInstrInfo", "*", "TII", "=", "Subtarget", ".", "getInstrInfo", "(", ")", ";", "uint64_t", "LoopSize", "=", "0", ";", "for", "(", "auto", "I", "=", "ML", "->", "block_begin", "(", ")", ",", "IE", "=", "ML", "->", "block_end", "(", ")", ";", "I", "!=", "IE", ";", "++", "I", ")", "for", "(", "auto", "J", "=", "(", "*", "I", ")", "->", "begin", "(", ")", ",", "JE", "=", "(", "*", "I", ")", "->", "end", "(", ")", ";", "J", "!=", "JE", ";", "++", "J", ")", "{", "LoopSize", "+=", "TII", "->", "getInstSizeInBytes", "(", "*", "J", ")", ";", "if", "(", "LoopSize", ">", "32", ")", "break", ";", "}", "if", "(", "LoopSize", ">", "16", "&&", "LoopSize", "<=", "32", ")", "return", "Align", "(", "32", ")", ";", "break", ";", "}", "}", "return", "TargetLowering", "::", "getPrefLoopAlignment", "(", "ML", ")", ";", "}", ""], "natrual_language": ["Return", "the", "preferred", "loop", "alignment", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::DIR_970", "PPC::DIR_PWR4", "PPC::DIR_PWR5", "PPC::DIR_PWR5X", "PPC::DIR_PWR6", "PPC::DIR_PWR6X", "PPC::DIR_PWR7", "PPC::DIR_PWR8", "PPC::DIR_PWR9", "PPC::DIR_PWR10", "PPC::DIR_PWR_FUTURE", "1", "32", "PPC", "0", "32", "16", "32", "32"], "File": "PPCISelLowering100", "Func": "getPrefLoopAlignment", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3111, "Length": 243, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64AsmParser", "::", "ParseDirective", "(", "AsmToken", "DirectiveID", ")", "{", "const", "MCObjectFileInfo", "::", "Environment", "Format", "=", "getContext", "(", ")", ".", "getObjectFileInfo", "(", ")", "->", "getObjectFileType", "(", ")", ";", "bool", "IsMachO", "=", "Format", "==", "MCObjectFileInfo", "::", "IsMachO", ";", "bool", "IsCOFF", "=", "Format", "==", "MCObjectFileInfo", "::", "IsCOFF", ";", "StringRef", "IDVal", "=", "DirectiveID", ".", "getIdentifier", "(", ")", ";", "SMLoc", "Loc", "=", "DirectiveID", ".", "getLoc", "(", ")", ";", "if", "(", "IDVal", "==", "\".hword\"", ")", "return", "parseDirectiveWord", "(", "2", ",", "Loc", ")", ";", "if", "(", "IDVal", "==", "\".word\"", ")", "return", "parseDirectiveWord", "(", "4", ",", "Loc", ")", ";", "if", "(", "IDVal", "==", "\".xword\"", ")", "return", "parseDirectiveWord", "(", "8", ",", "Loc", ")", ";", "if", "(", "IDVal", "==", "\".tlsdesccall\"", ")", "return", "parseDirectiveTLSDescCall", "(", "Loc", ")", ";", "if", "(", "IDVal", "==", "\".ltorg\"", "||", "IDVal", "==", "\".pool\"", ")", "return", "parseDirectiveLtorg", "(", "Loc", ")", ";", "if", "(", "IDVal", "==", "\".unreq\"", ")", "return", "parseDirectiveUnreq", "(", "Loc", ")", ";", "if", "(", "!", "IsMachO", "&&", "!", "IsCOFF", ")", "{", "if", "(", "IDVal", "==", "\".inst\"", ")", "return", "parseDirectiveInst", "(", "Loc", ")", ";", "}", "return", "parseDirectiveLOH", "(", "IDVal", ",", "Loc", ")", ";", "}", ""], "natrual_language": ["ParseDirective", "-", "Parse", "a", "target", "specific", "assembler", "directive", "This", "method", "is", "deprecated", ",", "use", "'parseDirective", "'", "instead", "."], "TS_V_token": ["AArch64", "AArch64", "\".hword\"", "2", "\".word\"", "4", "\".xword\"", "8", "\".tlsdesccall\"", "\".ltorg\"", "\".pool\"", "\".unreq\"", "\".inst\""], "File": "AArch64AsmParser", "Func": "ParseDirective", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3112, "Length": 176, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCExpr", "*", "PPC64LinuxTargetObjectFile", "::", "getDebugThreadLocalSymbol", "(", "const", "MCSymbol", "*", "Sym", ")", "const", "{", "const", "MCExpr", "*", "Expr", "=", "MCSymbolRefExpr", "::", "create", "(", "Sym", ",", "MCSymbolRefExpr", "::", "VK_PPC_DTPREL", ",", "getContext", "(", ")", ")", ";", "return", "MCBinaryExpr", "::", "createAdd", "(", "Expr", ",", "MCConstantExpr", "::", "create", "(", "0x8000", ",", "getContext", "(", ")", ")", ",", "getContext", "(", ")", ")", ";", "}", ""], "natrual_language": ["Describe", "a", "TLS", "variable", "address", "within", "debug", "info", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "0x8000"], "File": "PPCTargetObjectFile", "Func": "getDebugThreadLocalSymbol", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3113, "Length": 58, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "loongarch_move_integer", "(", "rtx", "temp", ",", "rtx", "dest", ",", "unsigned", "HOST_WIDE_INT", "value", ")", "{", "struct", "loongarch_integer_op", "codes", "[", "LARCH_MAX_INTEGER_OPS", "]", ";", "machine_mode", "mode", ";", "unsigned", "int", "i", ",", "num_ops", ";", "rtx", "x", ";", "mode", "=", "GET_MODE", "(", "dest", ")", ";", "num_ops", "=", "loongarch_build_integer", "(", "codes", ",", "value", ")", ";", "x", "=", "GEN_INT", "(", "codes", "[", "0", "]", ".", "value", ")", ";", "for", "(", "i", "=", "1", ";", "i", "<", "num_ops", ";", "i", "++", ")", "{", "if", "(", "!", "can_create_pseudo_p", "(", ")", ")", "{", "emit_insn", "(", "gen_rtx_SET", "(", "temp", ",", "x", ")", ")", ";", "x", "=", "temp", ";", "}", "else", "x", "=", "force_reg", "(", "mode", ",", "x", ")", ";", "switch", "(", "codes", "[", "i", "]", ".", "method", ")", "{", "case", "METHOD_NORMAL", ":", "x", "=", "gen_rtx_fmt_ee", "(", "codes", "[", "i", "]", ".", "code", ",", "mode", ",", "x", ",", "GEN_INT", "(", "codes", "[", "i", "]", ".", "value", ")", ")", ";", "break", ";", "case", "METHOD_LU32I", ":", "emit_insn", "(", "gen_rtx_SET", "(", "x", ",", "gen_rtx_IOR", "(", "DImode", ",", "gen_rtx_ZERO_EXTEND", "(", "DImode", ",", "gen_rtx_SUBREG", "(", "SImode", ",", "x", ",", "0", ")", ")", ",", "GEN_INT", "(", "codes", "[", "i", "]", ".", "value", ")", ")", ")", ")", ";", "break", ";", "case", "METHOD_LU52I", ":", "emit_insn", "(", "gen_lu52i_d", "(", "x", ",", "x", ",", "GEN_INT", "(", "0xfffffffffffff", ")", ",", "GEN_INT", "(", "codes", "[", "i", "]", ".", "value", ")", ")", ")", ";", "break", ";", "case", "METHOD_INSV", ":", "emit_insn", "(", "gen_rtx_SET", "(", "gen_rtx_ZERO_EXTRACT", "(", "DImode", ",", "x", ",", "GEN_INT", "(", "20", ")", ",", "GEN_INT", "(", "32", ")", ")", ",", "gen_rtx_REG", "(", "DImode", ",", "0", ")", ")", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "emit_insn", "(", "gen_rtx_SET", "(", "dest", ",", "x", ")", ")", ";", "}", ""], "natrual_language": ["Load", "VALUE", "into", "DEST", ".", "TEMP", "is", "as", "for", "loongarch_force_temporary", "."], "TS_V_token": ["loongarch", "0", "1", "0", "0xfffffffffffff", "20", "32", "0"], "File": "loongarch", "Func": "loongarch_move_integer", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3114, "Length": 275, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "LC2200Subtarget", ">", "(", ")", ";", "return", "SelectionDAGISel", "::", "runOnMachineFunction", "(", "MF", ")", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["LC2200", "LC2200"], "File": "LC2200ISelDAGToDAG", "Func": "runOnMachineFunction", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3115, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMTargetMachine", "::", "addInstSelector", "(", "PassManagerBase", "&", "PM", ",", "bool", "Fast", ")", "{", "PM", ".", "add", "(", "createARMISelDag", "(", "*", "this", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["addInstSelector", "-", "This", "method", "should", "install", "an", "instruction", "selector", "pass", ",", "which", "converts", "from", "LLVM", "code", "to", "machine", "instructions", "."], "TS_V_token": ["ARM", "ARM", "ARM"], "File": "ARMTargetMachine68", "Func": "addInstSelector", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3116, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_emit_prologue_components", "(", "sbitmap", "components", ")", "{", "rs6000_stack_t", "*", "info", "=", "rs6000_stack_info", "(", ")", ";", "rtx", "ptr_reg", "=", "gen_rtx_REG", "(", "Pmode", ",", "frame_pointer_needed", "?", "HARD_FRAME_POINTER_REGNUM", ":", "STACK_POINTER_REGNUM", ")", ";", "machine_mode", "reg_mode", "=", "Pmode", ";", "int", "reg_size", "=", "TARGET_32BIT", "?", "4", ":", "8", ";", "machine_mode", "fp_reg_mode", "=", "TARGET_HARD_FLOAT", "?", "DFmode", ":", "SFmode", ";", "int", "fp_reg_size", "=", "8", ";", "if", "(", "bitmap_bit_p", "(", "components", ",", "0", ")", ")", "{", "rtx", "lr", "=", "gen_rtx_REG", "(", "reg_mode", ",", "LR_REGNO", ")", ";", "rtx", "reg", "=", "gen_rtx_REG", "(", "reg_mode", ",", "0", ")", ";", "rtx_insn", "*", "insn", "=", "emit_move_insn", "(", "reg", ",", "lr", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_REGISTER", ",", "gen_rtx_SET", "(", "reg", ",", "lr", ")", ")", ";", "int", "offset", "=", "info", "->", "lr_save_offset", ";", "if", "(", "info", "->", "push_p", ")", "offset", "+=", "info", "->", "total_size", ";", "insn", "=", "emit_insn", "(", "gen_frame_store", "(", "reg", ",", "ptr_reg", ",", "offset", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "rtx", "mem", "=", "copy_rtx", "(", "SET_DEST", "(", "single_set", "(", "insn", ")", ")", ")", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_OFFSET", ",", "gen_rtx_SET", "(", "mem", ",", "lr", ")", ")", ";", "}", "if", "(", "bitmap_bit_p", "(", "components", ",", "2", ")", ")", "{", "rtx", "reg", "=", "gen_rtx_REG", "(", "reg_mode", ",", "TOC_REGNUM", ")", ";", "rtx", "sp_reg", "=", "gen_rtx_REG", "(", "Pmode", ",", "STACK_POINTER_REGNUM", ")", ";", "emit_insn", "(", "gen_frame_store", "(", "reg", ",", "sp_reg", ",", "RS6000_TOC_SAVE_SLOT", ")", ")", ";", "}", "int", "offset", "=", "info", "->", "gp_save_offset", ";", "if", "(", "info", "->", "push_p", ")", "offset", "+=", "info", "->", "total_size", ";", "for", "(", "int", "i", "=", "info", "->", "first_gp_reg_save", ";", "i", "<", "32", ";", "i", "++", ")", "{", "if", "(", "bitmap_bit_p", "(", "components", ",", "i", ")", ")", "{", "rtx", "reg", "=", "gen_rtx_REG", "(", "reg_mode", ",", "i", ")", ";", "rtx_insn", "*", "insn", "=", "emit_insn", "(", "gen_frame_store", "(", "reg", ",", "ptr_reg", ",", "offset", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "rtx", "set", "=", "copy_rtx", "(", "single_set", "(", "insn", ")", ")", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_OFFSET", ",", "set", ")", ";", "}", "offset", "+=", "reg_size", ";", "}", "offset", "=", "info", "->", "fp_save_offset", ";", "if", "(", "info", "->", "push_p", ")", "offset", "+=", "info", "->", "total_size", ";", "for", "(", "int", "i", "=", "info", "->", "first_fp_reg_save", ";", "i", "<", "64", ";", "i", "++", ")", "{", "if", "(", "bitmap_bit_p", "(", "components", ",", "i", ")", ")", "{", "rtx", "reg", "=", "gen_rtx_REG", "(", "fp_reg_mode", ",", "i", ")", ";", "rtx_insn", "*", "insn", "=", "emit_insn", "(", "gen_frame_store", "(", "reg", ",", "ptr_reg", ",", "offset", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "rtx", "set", "=", "copy_rtx", "(", "single_set", "(", "insn", ")", ")", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_OFFSET", ",", "set", ")", ";", "}", "offset", "+=", "fp_reg_size", ";", "}", "}", ""], "natrual_language": ["Implement", "TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS", "."], "TS_V_token": ["rs6000", "4", "8", "8", "0", "0", "1", "1", "2", "32", "1", "64", "1"], "File": "rs60008", "Func": "rs6000_emit_prologue_components", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3117, "Length": 442, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isFPVectorizationPotentiallyUnsafe", "(", ")", "{", "return", "!", "ST", "->", "isTargetDarwin", "(", ")", ";", "}", ""], "natrual_language": ["Indicate", "that", "it", "is", "potentially", "unsafe", "to", "automatically", "vectorize", "floating-point", "operations", "because", "the", "semantics", "of", "vector", "and", "scalar", "floating-point", "semantics", "may", "differ", "."], "TS_V_token": ["ARM"], "File": "ARMTargetTransformInfo", "Func": "isFPVectorizationPotentiallyUnsafe", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3118, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "enum", "reg_class", "mips_secondary_reload_class", "(", "enum", "reg_class", "class", ",", "enum", "machine_mode", "mode", ",", "rtx", "x", ",", "int", "in_p", ")", "{", "enum", "reg_class", "gr_regs", "=", "TARGET_MIPS16", "?", "M16_REGS", ":", "GR_REGS", ";", "int", "regno", "=", "-", "1", ";", "int", "gp_reg_p", ";", "if", "(", "REG_P", "(", "x", ")", "||", "GET_CODE", "(", "x", ")", "==", "SUBREG", ")", "regno", "=", "true_regnum", "(", "x", ")", ";", "gp_reg_p", "=", "TARGET_MIPS16", "?", "M16_REG_P", "(", "regno", ")", ":", "GP_REG_P", "(", "regno", ")", ";", "if", "(", "mips_dangerous_for_la25_p", "(", "x", ")", ")", "{", "gr_regs", "=", "LEA_REGS", ";", "if", "(", "TEST_HARD_REG_BIT", "(", "reg_class_contents", "[", "(", "int", ")", "class", "]", ",", "25", ")", ")", "return", "gr_regs", ";", "}", "if", "(", "reg_class_subset_p", "(", "class", ",", "ACC_REGS", ")", ")", "{", "if", "(", "TARGET_MIPS16", "&&", "in_p", ")", "{", "return", "M16_REGS", ";", "}", "return", "gp_reg_p", "?", "NO_REGS", ":", "gr_regs", ";", "}", "if", "(", "ACC_REG_P", "(", "regno", ")", ")", "{", "if", "(", "TARGET_MIPS16", "&&", "!", "in_p", ")", "{", "return", "M16_REGS", ";", "}", "return", "class", "==", "gr_regs", "?", "NO_REGS", ":", "gr_regs", ";", "}", "if", "(", "class", "==", "ST_REGS", ")", "{", "if", "(", "in_p", ")", "return", "FP_REGS", ";", "return", "gp_reg_p", "?", "NO_REGS", ":", "gr_regs", ";", "}", "if", "(", "ST_REG_P", "(", "regno", ")", ")", "{", "if", "(", "!", "in_p", ")", "return", "FP_REGS", ";", "return", "class", "==", "gr_regs", "?", "NO_REGS", ":", "gr_regs", ";", "}", "if", "(", "class", "==", "FP_REGS", ")", "{", "if", "(", "MEM_P", "(", "x", ")", ")", "{", "return", "NO_REGS", ";", "}", "else", "if", "(", "CONSTANT_P", "(", "x", ")", "&&", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_FLOAT", ")", "{", "return", "NO_REGS", ";", "}", "else", "if", "(", "gp_reg_p", "||", "x", "==", "CONST0_RTX", "(", "mode", ")", ")", "{", "return", "NO_REGS", ";", "}", "else", "if", "(", "FP_REG_P", "(", "regno", ")", ")", "{", "return", "NO_REGS", ";", "}", "else", "{", "return", "gr_regs", ";", "}", "}", ""], "natrual_language": ["This", "function", "returns", "the", "register", "class", "required", "for", "a", "secondary", "register", "when", "copying", "between", "one", "of", "the", "registers", "in", "CLASS", ",", "and", "X", ",", "using", "MODE", ".", "If", "IN_P", "is", "nonzero", ",", "the", "copy", "is", "going", "from", "X", "to", "the", "register", ",", "otherwise", "the", "register", "is", "the", "source", ".", "A", "return", "value", "of", "NO_REGS", "means", "that", "no", "secondary", "register", "is", "required", "."], "TS_V_token": ["mips", "1", "25"], "File": "mips3", "Func": "mips_secondary_reload_class", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3119, "Length": 287, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "rs6000_spe_function_arg", "(", "CUMULATIVE_ARGS", "*", "cum", ",", "enum", "machine_mode", "mode", ",", "tree", "type", ")", "{", "int", "gregno", "=", "cum", "->", "sysv_gregno", ";", "if", "(", "TARGET_E500_DOUBLE", "&&", "(", "mode", "==", "DFmode", "||", "mode", "==", "DCmode", ")", ")", "{", "int", "n_words", "=", "rs6000_arg_size", "(", "mode", ",", "type", ")", ";", "if", "(", "mode", "==", "DFmode", ")", "gregno", "+=", "(", "1", "-", "gregno", ")", "&", "1", ";", "if", "(", "gregno", "+", "n_words", "-", "1", ">", "GP_ARG_MAX_REG", ")", "return", "NULL_RTX", ";", "return", "spe_build_register_parallel", "(", "mode", ",", "gregno", ")", ";", "}", "if", "(", "cum", "->", "stdarg", ")", "{", "int", "n_words", "=", "rs6000_arg_size", "(", "mode", ",", "type", ")", ";", "if", "(", "n_words", "==", "2", "&&", "(", "gregno", "&", "1", ")", "==", "0", ")", "gregno", "+=", "1", ";", "if", "(", "gregno", "+", "n_words", "-", "1", "<=", "GP_ARG_MAX_REG", ")", "{", "rtx", "r1", ",", "r2", ";", "enum", "machine_mode", "m", "=", "SImode", ";", "r1", "=", "gen_rtx_REG", "(", "m", ",", "gregno", ")", ";", "r1", "=", "gen_rtx_EXPR_LIST", "(", "m", ",", "r1", ",", "const0_rtx", ")", ";", "r2", "=", "gen_rtx_REG", "(", "m", ",", "gregno", "+", "1", ")", ";", "r2", "=", "gen_rtx_EXPR_LIST", "(", "m", ",", "r2", ",", "GEN_INT", "(", "4", ")", ")", ";", "return", "gen_rtx_PARALLEL", "(", "mode", ",", "gen_rtvec", "(", "2", ",", "r1", ",", "r2", ")", ")", ";", "}", "else", "return", "NULL_RTX", ";", "}", "else", "{", "if", "(", "gregno", "<=", "GP_ARG_MAX_REG", ")", "return", "gen_rtx_REG", "(", "mode", ",", "gregno", ")", ";", "else", "return", "NULL_RTX", ";", "}", "}", ""], "natrual_language": ["Determine", "where", "to", "put", "a", "SIMD", "argument", "on", "the", "SPE", "."], "TS_V_token": ["rs6000", "1", "1", "1", "2", "1", "0", "1", "1", "1", "4", "2"], "File": "rs60003", "Func": "rs6000_spe_function_arg", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3120, "Length": 231, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZTTIImpl", "::", "isLSRCostLess", "(", "const", "TargetTransformInfo", "::", "LSRCost", "&", "C1", ",", "const", "TargetTransformInfo", "::", "LSRCost", "&", "C2", ")", "{", "return", "std", "::", "tie", "(", "C1", ".", "Insns", ",", "C1", ".", "NumRegs", ",", "C1", ".", "AddRecCost", ",", "C1", ".", "NumIVMuls", ",", "C1", ".", "NumBaseAdds", ",", "C1", ".", "ScaleCost", ",", "C1", ".", "SetupCost", ")", "<", "std", "::", "tie", "(", "C2", ".", "Insns", ",", "C2", ".", "NumRegs", ",", "C2", ".", "AddRecCost", ",", "C2", ".", "NumIVMuls", ",", "C2", ".", "NumBaseAdds", ",", "C2", ".", "ScaleCost", ",", "C2", ".", "SetupCost", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "LSR", "cost", "of", "C1", "is", "lower", "than", "C2", "."], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZTargetTransformInfo23", "Func": "isLSRCostLess", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3121, "Length": 88, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_emit_save_sse_regs_using_mov", "(", "HOST_WIDE_INT", "cfa_offset", ")", "{", "unsigned", "int", "regno", ";", "for", "(", "regno", "=", "0", ";", "regno", "<", "FIRST_PSEUDO_REGISTER", ";", "regno", "++", ")", "if", "(", "SSE_REGNO_P", "(", "regno", ")", "&&", "ix86_save_reg", "(", "regno", ",", "true", ",", "true", ")", ")", "{", "ix86_emit_save_reg_using_mov", "(", "V4SFmode", ",", "regno", ",", "cfa_offset", ")", ";", "cfa_offset", "-=", "GET_MODE_SIZE", "(", "V4SFmode", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "code", "to", "save", "SSE", "registers", "using", "MOV", "insns", ".", "First", "register", "is", "stored", "at", "CFA", "-", "CFA_OFFSET", "."], "TS_V_token": ["i386", "0"], "File": "i386", "Func": "ix86_emit_save_sse_regs_using_mov", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3122, "Length": 60, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCAIXAsmPrinter", "::", "emitFunctionBodyEnd", "(", ")", "{", "if", "(", "!", "TM", ".", "getXCOFFTracebackTable", "(", ")", ")", "return", ";", "emitTracebackTable", "(", ")", ";", "}", ""], "natrual_language": ["Targets", "can", "override", "this", "to", "emit", "stuff", "after", "the", "last", "basic", "block", "in", "the", "function", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCAsmPrinter10", "Func": "emitFunctionBodyEnd", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3123, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "AArch64TargetLowering", "::", "PerformDAGCombine", "(", "SDNode", "*", "N", ",", "DAGCombinerInfo", "&", "DCI", ")", "const", "{", "SelectionDAG", "&", "DAG", "=", "DCI", ".", "DAG", ";", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "ADD", ":", "case", "ISD", "::", "SUB", ":", "return", "performAddSubLongCombine", "(", "N", ",", "DCI", ",", "DAG", ")", ";", "case", "ISD", "::", "XOR", ":", "return", "performXorCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "MUL", ":", "return", "performMulCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "SINT_TO_FP", ":", "case", "ISD", "::", "UINT_TO_FP", ":", "return", "performIntToFpCombine", "(", "N", ",", "DAG", ",", "Subtarget", ")", ";", "case", "ISD", "::", "OR", ":", "return", "performORCombine", "(", "N", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "INTRINSIC_WO_CHAIN", ":", "return", "performIntrinsicCombine", "(", "N", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "ANY_EXTEND", ":", "case", "ISD", "::", "ZERO_EXTEND", ":", "case", "ISD", "::", "SIGN_EXTEND", ":", "return", "performExtendCombine", "(", "N", ",", "DCI", ",", "DAG", ")", ";", "case", "ISD", "::", "BITCAST", ":", "return", "performBitcastCombine", "(", "N", ",", "DCI", ",", "DAG", ")", ";", "case", "ISD", "::", "CONCAT_VECTORS", ":", "return", "performConcatVectorsCombine", "(", "N", ",", "DCI", ",", "DAG", ")", ";", "case", "ISD", "::", "SELECT", ":", "return", "performSelectCombine", "(", "N", ",", "DCI", ")", ";", "case", "ISD", "::", "VSELECT", ":", "return", "performVSelectCombine", "(", "N", ",", "DCI", ".", "DAG", ")", ";", "case", "ISD", "::", "SELECT_CC", ":", "return", "performSelectCCCombine", "(", "N", ",", "DCI", ".", "DAG", ")", ";", "case", "ISD", "::", "STORE", ":", "return", "performSTORECombine", "(", "N", ",", "DCI", ",", "DAG", ",", "Subtarget", ")", ";", "case", "AArch64ISD", "::", "BRCOND", ":", "return", "performBRCONDCombine", "(", "N", ",", "DCI", ",", "DAG", ")", ";", "case", "AArch64ISD", "::", "CSEL", ":", "return", "performCONDCombine", "(", "N", ",", "DCI", ",", "DAG", ",", "2", ",", "3", ")", ";", "case", "AArch64ISD", "::", "DUP", ":", "return", "performPostLD1Combine", "(", "N", ",", "DCI", ",", "false", ")", ";", "case", "ISD", "::", "INSERT_VECTOR_ELT", ":", "return", "performPostLD1Combine", "(", "N", ",", "DCI", ",", "true", ")", ";", "case", "ISD", "::", "INTRINSIC_VOID", ":", "case", "ISD", "::", "INTRINSIC_W_CHAIN", ":", "switch", "(", "cast", "<", "ConstantSDNode", ">", "(", "N", "->", "getOperand", "(", "1", ")", ")", "->", "getZExtValue", "(", ")", ")", "{", "case", "Intrinsic", "::", "aarch64_neon_ld2", ":", "case", "Intrinsic", "::", "aarch64_neon_ld3", ":", "case", "Intrinsic", "::", "aarch64_neon_ld4", ":", "case", "Intrinsic", "::", "aarch64_neon_ld1x2", ":", "case", "Intrinsic", "::", "aarch64_neon_ld1x3", ":", "case", "Intrinsic", "::", "aarch64_neon_ld1x4", ":", "case", "Intrinsic", "::", "aarch64_neon_ld2lane", ":", "case", "Intrinsic", "::", "aarch64_neon_ld3lane", ":", "case", "Intrinsic", "::", "aarch64_neon_ld4lane", ":", "case", "Intrinsic", "::", "aarch64_neon_ld2r", ":", "case", "Intrinsic", "::", "aarch64_neon_ld3r", ":", "case", "Intrinsic", "::", "aarch64_neon_ld4r", ":", "case", "Intrinsic", "::", "aarch64_neon_st2", ":", "case", "Intrinsic", "::", "aarch64_neon_st3", ":", "case", "Intrinsic", "::", "aarch64_neon_st4", ":", "case", "Intrinsic", "::", "aarch64_neon_st1x2", ":", "case", "Intrinsic", "::", "aarch64_neon_st1x3", ":", "case", "Intrinsic", "::", "aarch64_neon_st1x4", ":", "case", "Intrinsic", "::", "aarch64_neon_st2lane", ":", "case", "Intrinsic", "::", "aarch64_neon_st3lane", ":", "case", "Intrinsic", "::", "aarch64_neon_st4lane", ":", "return", "performNEONPostLDSTCombine", "(", "N", ",", "DCI", ",", "DAG", ")", ";", "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": ["AArch64", "AArch64", "ISD::ADD", "ISD::SUB", "ISD::XOR", "ISD::MUL", "ISD::SINT_TO_FP", "ISD::UINT_TO_FP", "ISD::OR", "ISD::INTRINSIC_WO_CHAIN", "ISD::ANY_EXTEND", "ISD::ZERO_EXTEND", "ISD::SIGN_EXTEND", "ISD::BITCAST", "ISD::CONCAT_VECTORS", "ISD::SELECT", "ISD::VSELECT", "ISD::SELECT_CC", "ISD::STORE", "AArch64ISD::BRCOND", "AArch64ISD::CSEL", "2", "3", "AArch64ISD::DUP", "ISD::INSERT_VECTOR_ELT", "ISD::INTRINSIC_VOID", "ISD::INTRINSIC_W_CHAIN", "1", "Intrinsic::aarch64_neon_ld2", "Intrinsic::aarch64_neon_ld3", "Intrinsic::aarch64_neon_ld4", "Intrinsic::aarch64_neon_ld1x2", "Intrinsic::aarch64_neon_ld1x3", "Intrinsic::aarch64_neon_ld1x4", "Intrinsic::aarch64_neon_ld2lane", "Intrinsic::aarch64_neon_ld3lane", "Intrinsic::aarch64_neon_ld4lane", "Intrinsic::aarch64_neon_ld2r", "Intrinsic::aarch64_neon_ld3r", "Intrinsic::aarch64_neon_ld4r", "Intrinsic::aarch64_neon_st2", "Intrinsic::aarch64_neon_st3", "Intrinsic::aarch64_neon_st4", "Intrinsic::aarch64_neon_st1x2", "Intrinsic::aarch64_neon_st1x3", "Intrinsic::aarch64_neon_st1x4", "Intrinsic::aarch64_neon_st2lane", "Intrinsic::aarch64_neon_st3lane", "Intrinsic::aarch64_neon_st4lane"], "File": "AArch64ISelLowering116", "Func": "PerformDAGCombine", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3124, "Length": 476, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "addExpr", "(", "MCInst", "&", "Inst", ",", "const", "MCExpr", "*", "Expr", ")", "const", "{", "if", "(", "!", "Expr", ")", "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": ["AArch64", "0"], "File": "AArch64AsmParser (2)2", "Func": "addExpr", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3125, "Length": 77, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_save_reg", "(", "unsigned", "int", "regno", ",", "bool", "maybe_eh_return", ")", "{", "if", "(", "cfun", "->", "machine", "->", "no_caller_saved_registers", ")", "{", "rtx", "reg", "=", "crtl", "->", "return_rtx", ";", "if", "(", "reg", ")", "{", "unsigned", "int", "i", "=", "REGNO", "(", "reg", ")", ";", "unsigned", "int", "nregs", "=", "hard_regno_nregs", "[", "i", "]", "[", "GET_MODE", "(", "reg", ")", "]", ";", "while", "(", "nregs", "--", ">", "0", ")", "if", "(", "(", "i", "+", "nregs", ")", "==", "regno", ")", "return", "false", ";", "reg", "=", "crtl", "->", "return_bnd", ";", "if", "(", "reg", ")", "{", "i", "=", "REGNO", "(", "reg", ")", ";", "nregs", "=", "hard_regno_nregs", "[", "i", "]", "[", "GET_MODE", "(", "reg", ")", "]", ";", "while", "(", "nregs", "--", ">", "0", ")", "if", "(", "(", "i", "+", "nregs", ")", "==", "regno", ")", "return", "false", ";", "}", "}", "return", "(", "df_regs_ever_live_p", "(", "regno", ")", "&&", "!", "fixed_regs", "[", "regno", "]", "&&", "!", "STACK_REGNO_P", "(", "regno", ")", "&&", "!", "MMX_REGNO_P", "(", "regno", ")", "&&", "(", "regno", "!=", "HARD_FRAME_POINTER_REGNUM", "||", "!", "frame_pointer_needed", ")", ")", ";", "}", "if", "(", "regno", "==", "REAL_PIC_OFFSET_TABLE_REGNUM", "&&", "pic_offset_table_rtx", ")", "{", "if", "(", "ix86_use_pseudo_pic_reg", "(", ")", ")", "{", "if", "(", "!", "TARGET_64BIT", "&&", "flag_pic", "&&", "crtl", "->", "profile", ")", "return", "true", ";", "}", "else", "if", "(", "df_regs_ever_live_p", "(", "REAL_PIC_OFFSET_TABLE_REGNUM", ")", "||", "crtl", "->", "profile", "||", "crtl", "->", "calls_eh_return", "||", "crtl", "->", "uses_const_pool", "||", "cfun", "->", "has_nonlocal_label", ")", "return", "ix86_select_alt_pic_regnum", "(", ")", "==", "INVALID_REGNUM", ";", "}", "if", "(", "crtl", "->", "calls_eh_return", "&&", "maybe_eh_return", ")", "{", "unsigned", "i", ";", "for", "(", "i", "=", "0", ";", ";", "i", "++", ")", "{", "unsigned", "test", "=", "EH_RETURN_DATA_REGNO", "(", "i", ")", ";", "if", "(", "test", "==", "INVALID_REGNUM", ")", "break", ";", "if", "(", "test", "==", "regno", ")", "return", "true", ";", "}", "}", "if", "(", "crtl", "->", "drap_reg", "&&", "regno", "==", "REGNO", "(", "crtl", "->", "drap_reg", ")", "&&", "!", "cfun", "->", "machine", "->", "no_drap_save_restore", ")", "return", "true", ";", "return", "(", "df_regs_ever_live_p", "(", "regno", ")", "&&", "!", "call_used_regs", "[", "regno", "]", "&&", "!", "fixed_regs", "[", "regno", "]", "&&", "(", "regno", "!=", "HARD_FRAME_POINTER_REGNUM", "||", "!", "frame_pointer_needed", ")", ")", ";", "}", ""], "natrual_language": ["Return", "1", "if", "we", "need", "to", "save", "REGNO", "."], "TS_V_token": ["i386", "0", "0", "0"], "File": "i3866", "Func": "ix86_save_reg", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3126, "Length": 334, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "arith_operand", "(", "rtx", "op", ",", "enum", "machine_mode", "mode", ")", "{", "if", "(", "GET_CODE", "(", "op", ")", "==", "CONST_INT", "&&", "SMALL_INT", "(", "op", ")", ")", "return", "1", ";", "return", "register_operand", "(", "op", ",", "mode", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "OP", "is", "a", "register", ",", "or", "is", "a", "CONST_INT", "that", "can", "fit", "in", "a", "signed", "13", "bit", "immediate", "field", ".", "This", "is", "an", "acceptable", "SImode", "operand", "for", "most", "3", "address", "instructions", "."], "TS_V_token": ["mt", "1"], "File": "mt", "Func": "arith_operand", "Target": "mt", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3127, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ScheduleHazardRecognizer", "*", "PPCInstrInfo", "::", "CreateTargetHazardRecognizer", "(", "const", "TargetMachine", "*", "TM", ",", "const", "ScheduleDAG", "*", "DAG", ")", "const", "{", "unsigned", "Directive", "=", "TM", "->", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ".", "getDarwinDirective", "(", ")", ";", "if", "(", "Directive", "==", "PPC", "::", "DIR_440", "||", "Directive", "==", "PPC", "::", "DIR_A2", "||", "Directive", "==", "PPC", "::", "DIR_E500mc", "||", "Directive", "==", "PPC", "::", "DIR_E5500", ")", "{", "const", "InstrItineraryData", "*", "II", "=", "TM", "->", "getInstrItineraryData", "(", ")", ";", "return", "new", "PPCScoreboardHazardRecognizer", "(", "II", ",", "DAG", ")", ";", "}", "return", "TargetInstrInfo", "::", "CreateTargetHazardRecognizer", "(", "TM", ",", "DAG", ")", ";", "}", ""], "natrual_language": ["Allocate", "and", "return", "a", "hazard", "recognizer", "to", "use", "for", "this", "target", "when", "scheduling", "the", "machine", "instructions", "before", "register", "allocation", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC::DIR_440", "PPC::DIR_A2", "PPC::DIR_E500mc", "PPC::DIR_E5500", "PPC"], "File": "PPCInstrInfo108", "Func": "CreateTargetHazardRecognizer", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3128, "Length": 93, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "xstormy16_expand_iorqi3", "(", "rtx", "*", "operands", ")", "{", "rtx", "in", ",", "out", ",", "outsub", ",", "val", ";", "out", "=", "operands", "[", "0", "]", ";", "in", "=", "operands", "[", "1", "]", ";", "val", "=", "operands", "[", "2", "]", ";", "if", "(", "xstormy16_onebit_set_operand", "(", "val", ",", "QImode", ")", ")", "{", "if", "(", "!", "xstormy16_below100_or_register", "(", "in", ",", "QImode", ")", ")", "in", "=", "copy_to_mode_reg", "(", "QImode", ",", "in", ")", ";", "if", "(", "!", "xstormy16_below100_or_register", "(", "out", ",", "QImode", ")", ")", "out", "=", "gen_reg_rtx", "(", "QImode", ")", ";", "emit_insn", "(", "gen_iorqi3_internal", "(", "out", ",", "in", ",", "val", ")", ")", ";", "if", "(", "out", "!=", "operands", "[", "0", "]", ")", "emit_move_insn", "(", "operands", "[", "0", "]", ",", "out", ")", ";", "return", ";", "}", "if", "(", "!", "REG_P", "(", "in", ")", ")", "in", "=", "copy_to_mode_reg", "(", "QImode", ",", "in", ")", ";", "if", "(", "!", "REG_P", "(", "val", ")", "&&", "!", "CONST_INT_P", "(", "val", ")", ")", "val", "=", "copy_to_mode_reg", "(", "QImode", ",", "val", ")", ";", "if", "(", "!", "REG_P", "(", "out", ")", ")", "out", "=", "gen_reg_rtx", "(", "QImode", ")", ";", "in", "=", "simplify_gen_subreg", "(", "HImode", ",", "in", ",", "QImode", ",", "0", ")", ";", "outsub", "=", "simplify_gen_subreg", "(", "HImode", ",", "out", ",", "QImode", ",", "0", ")", ";", "if", "(", "!", "CONST_INT_P", "(", "val", ")", ")", "val", "=", "simplify_gen_subreg", "(", "HImode", ",", "val", ",", "QImode", ",", "0", ")", ";", "emit_insn", "(", "gen_iorhi3", "(", "outsub", ",", "in", ",", "val", ")", ")", ";", "if", "(", "out", "!=", "operands", "[", "0", "]", ")", "emit_move_insn", "(", "operands", "[", "0", "]", ",", "out", ")", ";", "}", ""], "natrual_language": ["Expand", "an", "8-bit", "IOR", ".", "This", "either", "detects", "the", "one", "case", "we", "can", "actually", "do", ",", "or", "uses", "a", "16-bit", "IOR", "."], "TS_V_token": ["stormy16", "0", "1", "2", "0", "0", "0", "0", "0", "0", "0"], "File": "stormy16", "Func": "xstormy16_expand_iorqi3", "Target": "stormy16", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3129, "Length": 252, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "MachineOperand", "&", "getLdStOffsetOp", "(", "const", "MachineInstr", "*", "MI", ")", "{", "unsigned", "Idx", "=", "isPairedLdSt", "(", "MI", ")", "?", "3", ":", "2", ";", "return", "MI", "->", "getOperand", "(", "Idx", ")", ";", "}", ""], "natrual_language": ["Returns", "the", "immediate", "offset", "operator", "of", "a", "load/store", "."], "TS_V_token": ["AArch64", "3", "2"], "File": "AArch64LoadStoreOptimizer (2)", "Func": "getLdStOffsetOp", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3130, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "sparc_emit_fixunsdi", "(", "rtx", "*", "operands", ",", "enum", "machine_mode", "mode", ")", "{", "rtx", "neglab", ",", "donelab", ",", "i0", ",", "i1", ",", "f0", ",", "in", ",", "out", ",", "limit", ";", "out", "=", "operands", "[", "0", "]", ";", "in", "=", "force_reg", "(", "mode", ",", "operands", "[", "1", "]", ")", ";", "neglab", "=", "gen_label_rtx", "(", ")", ";", "donelab", "=", "gen_label_rtx", "(", ")", ";", "i0", "=", "gen_reg_rtx", "(", "DImode", ")", ";", "i1", "=", "gen_reg_rtx", "(", "DImode", ")", ";", "limit", "=", "gen_reg_rtx", "(", "mode", ")", ";", "f0", "=", "gen_reg_rtx", "(", "mode", ")", ";", "emit_move_insn", "(", "limit", ",", "CONST_DOUBLE_FROM_REAL_VALUE", "(", "REAL_VALUE_ATOF", "(", "\"9223372036854775808.0\"", ",", "mode", ")", ",", "mode", ")", ")", ";", "emit_cmp_and_jump_insns", "(", "in", ",", "limit", ",", "GE", ",", "NULL_RTX", ",", "mode", ",", "0", ",", "neglab", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "out", ",", "gen_rtx_FIX", "(", "DImode", ",", "gen_rtx_FIX", "(", "mode", ",", "in", ")", ")", ")", ")", ";", "emit_jump_insn", "(", "gen_jump", "(", "donelab", ")", ")", ";", "emit_barrier", "(", ")", ";", "emit_label", "(", "neglab", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "f0", ",", "gen_rtx_MINUS", "(", "mode", ",", "in", ",", "limit", ")", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "i0", ",", "gen_rtx_FIX", "(", "DImode", ",", "gen_rtx_FIX", "(", "mode", ",", "f0", ")", ")", ")", ")", ";", "emit_insn", "(", "gen_movdi", "(", "i1", ",", "const1_rtx", ")", ")", ";", "emit_insn", "(", "gen_ashldi3", "(", "i1", ",", "i1", ",", "GEN_INT", "(", "63", ")", ")", ")", ";", "emit_insn", "(", "gen_xordi3", "(", "out", ",", "i0", ",", "i1", ")", ")", ";", "emit_label", "(", "donelab", ")", ";", "}", ""], "natrual_language": ["Generate", "an", "FP", "to", "unsigned", "DImode", "conversion", ".", "This", "is", "the", "same", "code", "optabs", "would", "emit", "if", "we", "did", "n't", "have", "TFmode", "patterns", "."], "TS_V_token": ["sparc", "0", "1", "\"9223372036854775808.0\"", "0", "63"], "File": "sparc3", "Func": "sparc_emit_fixunsdi", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3131, "Length": 245, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "machine_mode", "mmix_select_cc_mode", "(", "RTX_CODE", "op", ",", "rtx", "x", ",", "rtx", "y", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "GET_MODE_CLASS", "(", "GET_MODE", "(", "x", ")", ")", "==", "MODE_FLOAT", ")", "{", "if", "(", "op", "==", "ORDERED", "||", "op", "==", "UNORDERED", "||", "op", "==", "UNGE", "||", "op", "==", "UNGT", "||", "op", "==", "UNLE", "||", "op", "==", "UNLT", ")", "return", "CC_FUNmode", ";", "if", "(", "op", "==", "EQ", "||", "op", "==", "NE", ")", "return", "CC_FPEQmode", ";", "return", "CC_FPmode", ";", "}", "if", "(", "op", "==", "GTU", "||", "op", "==", "LTU", "||", "op", "==", "GEU", "||", "op", "==", "LEU", ")", "return", "CC_UNSmode", ";", "return", "CCmode", ";", "}", ""], "natrual_language": ["SELECT_CC_MODE", "."], "TS_V_token": ["mmix"], "File": "mmix", "Func": "mmix_select_cc_mode", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3132, "Length": 98, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "nds32_needs_double_word_align", "(", "machine_mode", "mode", ",", "const_tree", "type", ")", "{", "unsigned", "int", "align", ";", "align", "=", "NDS32_MODE_TYPE_ALIGN", "(", "mode", ",", "type", ")", ";", "return", "(", "align", ">", "PARM_BOUNDARY", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "MODE/TYPE", "need", "double", "word", "alignment", "."], "TS_V_token": ["nds32"], "File": "nds32", "Func": "nds32_needs_double_word_align", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3133, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "MachineInstr", "*", "foldMemoryOperandImpl", "(", "MachineFunction", "&", "MF", ",", "MachineInstr", "*", "MI", ",", "const", "SmallVectorImpl", "<", "unsigned", ">", "&", "Ops", ",", "MachineInstr", "*", "LoadMI", ")", "const", "{", "return", "0", ";", "}", ""], "natrual_language": ["foldMemoryOperand", "-", "Same", "as", "the", "previous", "version", "except", "it", "allows", "folding", "of", "any", "load", "and", "store", "from", "/", "to", "any", "address", ",", "not", "just", "from", "a", "specific", "stack", "slot", "."], "TS_V_token": ["PowerPC", "0"], "File": "PPCInstrInfo16", "Func": "foldMemoryOperandImpl", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3134, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "legitimate_pic_operand_p", "(", "rtx", "x", ")", "{", "if", "(", "CONSTANT_P", "(", "x", ")", "&&", "flag_pic", "&&", "(", "GET_CODE", "(", "x", ")", "==", "SYMBOL_REF", "||", "(", "GET_CODE", "(", "x", ")", "==", "CONST", "&&", "GET_CODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", "==", "PLUS", "&&", "GET_CODE", "(", "XEXP", "(", "XEXP", "(", "x", ",", "0", ")", ",", "0", ")", ")", "==", "SYMBOL_REF", ")", ")", ")", "return", "0", ";", "return", "1", ";", "}", ""], "natrual_language": ["Return", "true", "if", "OP", "is", "a", "legitimate", "general", "operand", "when", "generating", "PIC", "code", ".", "It", "is", "given", "that", "flag_pic", "is", "on", "and", "that", "OP", "satisfies", "CONSTANT_P", "or", "is", "a", "CONST_DOUBLE", "."], "TS_V_token": ["arm", "0", "0", "0", "0", "1"], "File": "arm3", "Func": "legitimate_pic_operand_p", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3135, "Length": 70, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "arm_valid_symbolic_address_p", "(", "rtx", "addr", ")", "{", "rtx", "xop0", ",", "xop1", "=", "NULL_RTX", ";", "rtx", "tmp", "=", "addr", ";", "if", "(", "GET_CODE", "(", "tmp", ")", "==", "SYMBOL_REF", "||", "GET_CODE", "(", "tmp", ")", "==", "LABEL_REF", ")", "return", "true", ";", "if", "(", "GET_CODE", "(", "addr", ")", "==", "CONST", ")", "tmp", "=", "XEXP", "(", "addr", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "tmp", ")", "==", "PLUS", ")", "{", "xop0", "=", "XEXP", "(", "tmp", ",", "0", ")", ";", "xop1", "=", "XEXP", "(", "tmp", ",", "1", ")", ";", "if", "(", "GET_CODE", "(", "xop0", ")", "==", "SYMBOL_REF", "&&", "CONST_INT_P", "(", "xop1", ")", ")", "return", "IN_RANGE", "(", "INTVAL", "(", "xop1", ")", ",", "-", "0x8000", ",", "0x7fff", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "pattern", "is", "a", "valid", "symbolic", "address", ",", "which", "is", "either", "a", "symbol_ref", "or", "(", "symbol_ref", "+", "addend", ")", ".", "According", "to", "the", "ARM", "ELF", "ABI", ",", "the", "initial", "addend", "of", "REL-type", "relocations", "processing", "MOVW", "and", "MOVT", "instructions", "is", "formed", "by", "interpreting", "the", "16-bit", "literal", "field", "of", "the", "instruction", "as", "a", "16-bit", "signed", "value", "in", "the", "range", "-32768", "<", "=", "A", "<", "32768", ".", "In", "Thumb-1", "mode", ",", "we", "use", "upper/lower", "relocations", "which", "have", "an", "8-bit", "unsigned", "range", "of", "0", "<", "=", "A", "<", "256", "as", "described", "in", "the", "AAELF32", "relocation", "handling", "documentation", ":", "REL-type", "relocations", "are", "encoded", "as", "unsigned", "in", "this", "case", "."], "TS_V_token": ["arm", "0", "0", "1", "0x8000", "0x7fff"], "File": "arm5", "Func": "arm_valid_symbolic_address_p", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3136, "Length": 117, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "LanaiMCCodeEmitter", "::", "getMachineOpValue", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCOperand", "&", "MCOp", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "SubtargetInfo", ")", "const", "{", "if", "(", "MCOp", ".", "isReg", "(", ")", ")", "return", "getLanaiRegisterNumbering", "(", "MCOp", ".", "getReg", "(", ")", ")", ";", "if", "(", "MCOp", ".", "isImm", "(", ")", ")", "return", "static_cast", "<", "unsigned", ">", "(", "MCOp", ".", "getImm", "(", ")", ")", ";", "assert", "(", "MCOp", ".", "isExpr", "(", ")", ")", ";", "const", "MCExpr", "*", "Expr", "=", "MCOp", ".", "getExpr", "(", ")", ";", "if", "(", "Expr", "->", "getKind", "(", ")", "==", "MCExpr", "::", "Binary", ")", "{", "const", "MCBinaryExpr", "*", "BinaryExpr", "=", "static_cast", "<", "const", "MCBinaryExpr", "*", ">", "(", "Expr", ")", ";", "Expr", "=", "BinaryExpr", "->", "getLHS", "(", ")", ";", "}", "assert", "(", "isa", "<", "LanaiMCExpr", ">", "(", "Expr", ")", "||", "Expr", "->", "getKind", "(", ")", "==", "MCExpr", "::", "SymbolRef", ")", ";", "Fixups", ".", "push_back", "(", "MCFixup", "::", "create", "(", "0", ",", "MCOp", ".", "getExpr", "(", ")", ",", "MCFixupKind", "(", "FixupKind", "(", "Expr", ")", ")", ")", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["getMachineOpValue", "-", "Return", "binary", "encoding", "of", "operand", "."], "TS_V_token": ["Lanai", "Lanai", "Lanai", "Lanai", "0", "0"], "File": "LanaiMCCodeEmitter (2)", "Func": "getMachineOpValue", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3137, "Length": 176, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64CompressJumpTables", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MFIn", ")", "{", "bool", "Changed", "=", "false", ";", "MF", "=", "&", "MFIn", ";", "const", "auto", "&", "ST", "=", "MF", "->", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ";", "TII", "=", "ST", ".", "getInstrInfo", "(", ")", ";", "if", "(", "ST", ".", "force32BitJumpTables", "(", ")", "&&", "!", "MF", "->", "getFunction", "(", ")", ".", "optForMinSize", "(", ")", ")", "return", "false", ";", "scanFunction", "(", ")", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "*", "MF", ")", "{", "int", "Offset", "=", "BlockInfo", "[", "MBB", ".", "getNumber", "(", ")", "]", ";", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "{", "Changed", "|=", "compressJumpTable", "(", "MI", ",", "Offset", ")", ";", "Offset", "+=", "TII", "->", "getInstSizeInBytes", "(", "MI", ")", ";", "}", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64"], "File": "AArch64CompressJumpTables", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3138, "Length": 123, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "AArch64TargetLowering", "::", "getRecipEstimate", "(", "SDValue", "Operand", ",", "DAGCombinerInfo", "&", "DCI", ",", "unsigned", "&", "ExtraSteps", ")", "const", "{", "return", "getEstimate", "(", "*", "Subtarget", ",", "DCI", ",", "AArch64ISD", "::", "FRECPE", ",", "Operand", ",", "ExtraSteps", ")", ";", "}", ""], "natrual_language": ["Return", "a", "reciprocal", "estimate", "value", "for", "the", "input", "operand", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64ISD::FRECPE"], "File": "AArch64ISelLowering (2)", "Func": "getRecipEstimate", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3139, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "machine_mode", "select_block_compare_mode", "(", "unsigned", "HOST_WIDE_INT", "offset", ",", "unsigned", "HOST_WIDE_INT", "bytes", ",", "unsigned", "HOST_WIDE_INT", "align", ")", "{", "unsigned", "HOST_WIDE_INT", "maxread", "=", "ROUND_UP", "(", "bytes", ",", "align", ")", ";", "int", "word_mode_ok", "=", "!", "(", "!", "BYTES_BIG_ENDIAN", "&&", "!", "TARGET_LDBRX", "&&", "word_mode", "==", "DImode", ")", ";", "if", "(", "word_mode_ok", "&&", "bytes", ">=", "UNITS_PER_WORD", ")", "return", "word_mode", ";", "else", "if", "(", "bytes", "==", "GET_MODE_SIZE", "(", "SImode", ")", ")", "return", "SImode", ";", "else", "if", "(", "bytes", "==", "GET_MODE_SIZE", "(", "HImode", ")", ")", "return", "HImode", ";", "else", "if", "(", "bytes", "==", "GET_MODE_SIZE", "(", "QImode", ")", ")", "return", "QImode", ";", "else", "if", "(", "bytes", "<", "GET_MODE_SIZE", "(", "SImode", ")", "&&", "TARGET_EFFICIENT_OVERLAPPING_UNALIGNED", "&&", "offset", ">=", "GET_MODE_SIZE", "(", "SImode", ")", "-", "bytes", ")", "return", "SImode", ";", "else", "if", "(", "word_mode_ok", "&&", "bytes", "<", "UNITS_PER_WORD", "&&", "TARGET_EFFICIENT_OVERLAPPING_UNALIGNED", "&&", "offset", ">=", "UNITS_PER_WORD", "-", "bytes", ")", "return", "word_mode", ";", "else", "if", "(", "word_mode_ok", "&&", "maxread", ">=", "UNITS_PER_WORD", ")", "return", "word_mode", ";", "else", "if", "(", "maxread", ">=", "GET_MODE_SIZE", "(", "SImode", ")", ")", "return", "SImode", ";", "else", "if", "(", "bytes", ">", "GET_MODE_SIZE", "(", "SImode", ")", ")", "return", "SImode", ";", "else", "if", "(", "bytes", ">", "GET_MODE_SIZE", "(", "HImode", ")", ")", "return", "HImode", ";", "return", "QImode", ";", "}", ""], "natrual_language": ["Select", "the", "mode", "to", "be", "used", "for", "reading", "the", "next", "chunk", "of", "bytes", "in", "the", "compare", ".", "OFFSET", "is", "the", "current", "read", "offset", "from", "the", "beginning", "of", "the", "block", ".", "BYTES", "is", "the", "number", "of", "bytes", "remaining", "to", "be", "read", ".", "ALIGN", "is", "the", "minimum", "alignment", "of", "the", "memory", "blocks", "being", "compared", "in", "bytes", "."], "TS_V_token": ["rs6000"], "File": "rs6000-string", "Func": "select_block_compare_mode", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3140, "Length": 193, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "SystemZRegisterInfo", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", "MF", ",", "CallingConv", "::", "ID", "CC", ")", "const", "{", "const", "SystemZSubtarget", "*", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "SystemZSubtarget", ">", "(", ")", ";", "SystemZCallingConventionRegisters", "*", "Regs", "=", "Subtarget", "->", "getSpecialRegisters", "(", ")", ";", "return", "Regs", "->", "getCallPreservedMask", "(", "MF", ",", "CC", ")", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ"], "File": "SystemZRegisterInfo10", "Func": "getCallPreservedMask", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3141, "Length": 55, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "xstormy16_function_arg_advance", "(", "cumulative_args_t", "cum_v", ",", "const", "function_arg_info", "&", "arg", ")", "{", "CUMULATIVE_ARGS", "*", "cum", "=", "get_cumulative_args", "(", "cum_v", ")", ";", "if", "(", "*", "cum", "<", "NUM_ARGUMENT_REGISTERS", "&&", "(", "*", "cum", "+", "XSTORMY16_WORD_SIZE", "(", "arg", ".", "type", ",", "arg", ".", "mode", ")", ">", "NUM_ARGUMENT_REGISTERS", ")", ")", "*", "cum", "=", "NUM_ARGUMENT_REGISTERS", ";", "*", "cum", "+=", "XSTORMY16_WORD_SIZE", "(", "arg", ".", "type", ",", "arg", ".", "mode", ")", ";", "}", ""], "natrual_language": ["Update", "CUM", "to", "advance", "past", "an", "argument", "in", "the", "argument", "list", ".", "The", "values", "MODE", ",", "TYPE", "and", "NAMED", "describe", "that", "argument", ".", "Once", "this", "is", "done", ",", "the", "variable", "CUM", "is", "suitable", "for", "analyzing", "the", "*", "following", "*", "argument", "with", "`", "TARGET_FUNCTION_ARG", "'", ",", "etc", ".", "This", "function", "need", "not", "do", "anything", "if", "the", "argument", "in", "question", "was", "passed", "on", "the", "stack", ".", "The", "compiler", "knows", "how", "to", "track", "the", "amount", "of", "stack", "space", "used", "for", "arguments", "without", "any", "special", "help", ".", "However", ",", "it", "makes", "life", "easier", "for", "xstormy16_build_va_list", "if", "it", "does", "update", "the", "word", "count", "."], "TS_V_token": ["stormy16"], "File": "stormy16", "Func": "xstormy16_function_arg_advance", "Target": "stormy16", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3142, "Length": 67, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "LanaiInstrInfo", "::", "getMemOperandsWithOffsetWidth", "(", "const", "MachineInstr", "&", "LdSt", ",", "SmallVectorImpl", "<", "const", "MachineOperand", "*", ">", "&", "BaseOps", ",", "int64_t", "&", "Offset", ",", "bool", "&", "OffsetIsScalable", ",", "unsigned", "&", "Width", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "switch", "(", "LdSt", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "false", ";", "case", "Lanai", "::", "LDW_RI", ":", "case", "Lanai", "::", "LDW_RR", ":", "case", "Lanai", "::", "SW_RR", ":", "case", "Lanai", "::", "SW_RI", ":", "case", "Lanai", "::", "LDHs_RI", ":", "case", "Lanai", "::", "LDHz_RI", ":", "case", "Lanai", "::", "STH_RI", ":", "case", "Lanai", "::", "LDBs_RI", ":", "case", "Lanai", "::", "LDBz_RI", ":", "const", "MachineOperand", "*", "BaseOp", ";", "OffsetIsScalable", "=", "false", ";", "if", "(", "!", "getMemOperandWithOffsetWidth", "(", "LdSt", ",", "BaseOp", ",", "Offset", ",", "Width", ",", "TRI", ")", ")", "return", "false", ";", "BaseOps", ".", "push_back", "(", "BaseOp", ")", ";", "return", "true", ";", "}", "}", ""], "natrual_language": ["Get", "zero", "or", "more", "base", "operands", "and", "the", "byte", "offset", "of", "an", "instruction", "that", "reads/writes", "memory", "."], "TS_V_token": ["Lanai", "Lanai", "Lanai::LDW_RI", "Lanai::LDW_RR", "Lanai::SW_RR", "Lanai::SW_RI", "Lanai::LDHs_RI", "Lanai::LDHz_RI", "Lanai::STH_RI", "Lanai::LDBs_RI", "Lanai::LDBz_RI"], "File": "LanaiInstrInfo13", "Func": "getMemOperandsWithOffsetWidth", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3143, "Length": 137, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARM64PassConfig", "::", "addPreSched2", "(", ")", "{", "addPass", "(", "createARM64ExpandPseudoPass", "(", ")", ")", ";", "addPass", "(", "createARM64LoadStoreOptimizationPass", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "after", "prolog-epilog", "insertion", "and", "before", "the", "second", "instruction", "scheduling", "pass", "."], "TS_V_token": ["ARM64", "ARM64", "ARM64", "ARM64"], "File": "ARM64TargetMachine", "Func": "addPreSched2", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3144, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "emit_safe_across_calls", "(", "void", ")", "{", "unsigned", "int", "rs", ",", "re", ";", "int", "out_state", ";", "rs", "=", "1", ";", "out_state", "=", "0", ";", "while", "(", "1", ")", "{", "while", "(", "rs", "<", "64", "&&", "call_used_or_fixed_reg_p", "(", "PR_REG", "(", "rs", ")", ")", ")", "rs", "++", ";", "if", "(", "rs", ">=", "64", ")", "break", ";", "for", "(", "re", "=", "rs", "+", "1", ";", "re", "<", "64", "&&", "!", "call_used_or_fixed_reg_p", "(", "PR_REG", "(", "re", ")", ")", ";", "re", "++", ")", "continue", ";", "if", "(", "out_state", "==", "0", ")", "{", "fputs", "(", "\"\\t.pred.safe_across_calls \"", ",", "asm_out_file", ")", ";", "out_state", "=", "1", ";", "}", "else", "fputc", "(", "','", ",", "asm_out_file", ")", ";", "if", "(", "re", "==", "rs", "+", "1", ")", "fprintf", "(", "asm_out_file", ",", "\"p%u\"", ",", "rs", ")", ";", "else", "fprintf", "(", "asm_out_file", ",", "\"p%u-p%u\"", ",", "rs", ",", "re", "-", "1", ")", ";", "rs", "=", "re", "+", "1", ";", "}", "if", "(", "out_state", ")", "fputc", "(", "'\\n'", ",", "asm_out_file", ")", ";", "}", ""], "natrual_language": ["Begin", "the", "assembly", "file", "."], "TS_V_token": ["ia64", "1", "0", "1", "64", "64", "1", "64", "0", "\"\\t.pred.safe_across_calls \"", "1", "1", "\"p%u\"", "\"p%u-p%u\"", "1", "1"], "File": "ia64", "Func": "emit_safe_across_calls", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3145, "Length": 156, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "AArch64SelectionDAGInfo", "::", "EmitTargetCodeForMemset", "(", "SelectionDAG", "&", "DAG", ",", "const", "SDLoc", "&", "dl", ",", "SDValue", "Chain", ",", "SDValue", "Dst", ",", "SDValue", "Src", ",", "SDValue", "Size", ",", "unsigned", "Align", ",", "bool", "isVolatile", ",", "MachinePointerInfo", "DstPtrInfo", ")", "const", "{", "ConstantSDNode", "*", "V", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Src", ")", ";", "ConstantSDNode", "*", "SizeValue", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Size", ")", ";", "const", "AArch64Subtarget", "&", "STI", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ";", "const", "char", "*", "bzeroEntry", "=", "(", "V", "&&", "V", "->", "isNullValue", "(", ")", ")", "?", "STI", ".", "getBZeroEntry", "(", ")", ":", "nullptr", ";", "if", "(", "bzeroEntry", "&&", "(", "!", "SizeValue", "||", "SizeValue", "->", "getZExtValue", "(", ")", ">", "256", ")", ")", "{", "const", "AArch64TargetLowering", "&", "TLI", "=", "*", "STI", ".", "getTargetLowering", "(", ")", ";", "EVT", "IntPtr", "=", "TLI", ".", "getPointerTy", "(", "DAG", ".", "getDataLayout", "(", ")", ")", ";", "Type", "*", "IntPtrTy", "=", "DAG", ".", "getDataLayout", "(", ")", ".", "getIntPtrType", "(", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "TargetLowering", "::", "ArgListTy", "Args", ";", "TargetLowering", "::", "ArgListEntry", "Entry", ";", "Entry", ".", "Node", "=", "Dst", ";", "Entry", ".", "Ty", "=", "IntPtrTy", ";", "Args", ".", "push_back", "(", "Entry", ")", ";", "Entry", ".", "Node", "=", "Size", ";", "Args", ".", "push_back", "(", "Entry", ")", ";", "TargetLowering", "::", "CallLoweringInfo", "CLI", "(", "DAG", ")", ";", "CLI", ".", "setDebugLoc", "(", "dl", ")", ".", "setChain", "(", "Chain", ")", ".", "setCallee", "(", "CallingConv", "::", "C", ",", "Type", "::", "getVoidTy", "(", "*", "DAG", ".", "getContext", "(", ")", ")", ",", "DAG", ".", "getExternalSymbol", "(", "bzeroEntry", ",", "IntPtr", ")", ",", "std", "::", "move", "(", "Args", ")", ",", "0", ")", ".", "setDiscardResult", "(", ")", ";", "std", "::", "pair", "<", "SDValue", ",", "SDValue", ">", "CallResult", "=", "TLI", ".", "LowerCallTo", "(", "CLI", ")", ";", "return", "CallResult", ".", "second", ";", "}", "return", "SDValue", "(", ")", ";", "}", ""], "natrual_language": ["Emit", "target-specific", "code", "that", "performs", "a", "memset", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "256", "AArch64", "0"], "File": "AArch64SelectionDAGInfo29", "Func": "EmitTargetCodeForMemset", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3146, "Length": 298, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ARMAsmParser", "::", "tryParseRegister", "(", ")", "{", "const", "AsmToken", "&", "Tok", "=", "Parser", ".", "getTok", "(", ")", ";", "if", "(", "Tok", ".", "isNot", "(", "AsmToken", "::", "Identifier", ")", ")", "return", "-", "1", ";", "std", "::", "string", "upperCase", "=", "Tok", ".", "getString", "(", ")", ".", "str", "(", ")", ";", "std", "::", "string", "lowerCase", "=", "LowercaseString", "(", "upperCase", ")", ";", "unsigned", "RegNum", "=", "MatchRegisterName", "(", "lowerCase", ")", ";", "if", "(", "!", "RegNum", ")", "{", "RegNum", "=", "StringSwitch", "<", "unsigned", ">", "(", "lowerCase", ")", ".", "Case", "(", "\"r13\"", ",", "ARM", "::", "SP", ")", ".", "Case", "(", "\"r14\"", ",", "ARM", "::", "LR", ")", ".", "Case", "(", "\"r15\"", ",", "ARM", "::", "PC", ")", ".", "Case", "(", "\"ip\"", ",", "ARM", "::", "R12", ")", ".", "Default", "(", "0", ")", ";", "}", "if", "(", "!", "RegNum", ")", "return", "-", "1", ";", "Parser", ".", "Lex", "(", ")", ";", "if", "(", "Parser", ".", "getTok", "(", ")", ".", "is", "(", "AsmToken", "::", "LBrac", ")", ")", "{", "SMLoc", "SIdx", "=", "Parser", ".", "getTok", "(", ")", ".", "getLoc", "(", ")", ";", "Parser", ".", "Lex", "(", ")", ";", "const", "MCExpr", "*", "ImmVal", ";", "SMLoc", "ExprLoc", "=", "Parser", ".", "getTok", "(", ")", ".", "getLoc", "(", ")", ";", "if", "(", "getParser", "(", ")", ".", "ParseExpression", "(", "ImmVal", ")", ")", "return", "MatchOperand_ParseFail", ";", "const", "MCConstantExpr", "*", "MCE", "=", "dyn_cast", "<", "MCConstantExpr", ">", "(", "ImmVal", ")", ";", "if", "(", "!", "MCE", ")", "{", "TokError", "(", "\"immediate value expected for vector index\"", ")", ";", "return", "MatchOperand_ParseFail", ";", "}", "SMLoc", "E", "=", "Parser", ".", "getTok", "(", ")", ".", "getLoc", "(", ")", ";", "if", "(", "Parser", ".", "getTok", "(", ")", ".", "isNot", "(", "AsmToken", "::", "RBrac", ")", ")", "{", "Error", "(", "E", ",", "\"']' expected\"", ")", ";", "return", "MatchOperand_ParseFail", ";", "}", "Parser", ".", "Lex", "(", ")", ";", "Operands", ".", "push_back", "(", "ARMOperand", "::", "CreateVectorIndex", "(", "MCE", "->", "getValue", "(", ")", ",", "SIdx", ",", "E", ",", "getContext", "(", ")", ")", ")", ";", "}", "return", "RegNum", ";", "}", ""], "natrual_language": ["tryParseRegister", "-", "parse", "one", "register", "if", "possible"], "TS_V_token": ["ARM", "ARM", "1", "\"r13\"", "ARM::SP", "\"r14\"", "ARM::LR", "\"r15\"", "ARM::PC", "\"ip\"", "ARM::R12", "0", "1", "\"immediate value expected for vector index\"", "\"']' expected\"", "ARM"], "File": "ARMAsmParser111", "Func": "tryParseRegister", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3147, "Length": 309, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "CCAssignFn", "*", "X86FastISel", "::", "CCAssignFnForCall", "(", "unsigned", "CC", ",", "bool", "isTaillCall", ")", "{", "if", "(", "Subtarget", "->", "is64Bit", "(", ")", ")", "{", "if", "(", "Subtarget", "->", "isTargetWin64", "(", ")", ")", "return", "CC_X86_Win64_C", ";", "else", "if", "(", "CC", "==", "CallingConv", "::", "Fast", "&&", "isTaillCall", ")", "return", "CC_X86_64_TailCall", ";", "else", "return", "CC_X86_64_C", ";", "}", "if", "(", "CC", "==", "CallingConv", "::", "X86_FastCall", ")", "return", "CC_X86_32_FastCall", ";", "else", "if", "(", "CC", "==", "CallingConv", "::", "Fast", ")", "return", "CC_X86_32_FastCC", ";", "else", "return", "CC_X86_32_C", ";", "}", ""], "natrual_language": ["Selects", "the", "correct", "CCAssignFn", "for", "a", "given", "CallingConvention", "value", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86", "X86"], "File": "X86FastISel41", "Func": "CCAssignFnForCall", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3148, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "sh_assemble_integer", "(", "rtx", "value", ",", "unsigned", "int", "size", ",", "int", "aligned_p", ")", "{", "if", "(", "TARGET_FDPIC", "&&", "size", "==", "UNITS_PER_WORD", "&&", "GET_CODE", "(", "value", ")", "==", "SYMBOL_REF", "&&", "SYMBOL_REF_FUNCTION_P", "(", "value", ")", ")", "{", "fputs", "(", "\"\\t.long\\t\"", ",", "asm_out_file", ")", ";", "output_addr_const", "(", "asm_out_file", ",", "value", ")", ";", "fputs", "(", "\"@FUNCDESC\\n\"", ",", "asm_out_file", ")", ";", "return", "true", ";", "}", "return", "default_assemble_integer", "(", "value", ",", "size", ",", "aligned_p", ")", ";", "}", ""], "natrual_language": ["Implementation", "of", "TARGET_ASM_INTEGER", "for", "SH", ".", "Pointers", "to", "functions", "need", "to", "be", "output", "as", "pointers", "to", "function", "descriptors", "for", "FDPIC", "."], "TS_V_token": ["sh", "\"\\t.long\\t\"", "\"@FUNCDESC\\n\""], "File": "sh", "Func": "sh_assemble_integer", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3149, "Length": 72, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MipsInstrInfo", "*", "MipsInstrInfo", "::", "create", "(", "MipsTargetMachine", "&", "TM", ")", "{", "if", "(", "TM", ".", "getSubtargetImpl", "(", ")", "->", "inMips16Mode", "(", ")", ")", "return", "llvm", "::", "createMips16InstrInfo", "(", "TM", ")", ";", "return", "llvm", "::", "createMipsSEInstrInfo", "(", "TM", ")", ";", "}", ""], "natrual_language": ["This", "creates", "an", "identified", "struct", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips"], "File": "MipsInstrInfo1", "Func": "create", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3150, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Instruction", "*", "ARMTargetLowering", "::", "emitLeadingFence", "(", "IRBuilder", "<", ">", "&", "Builder", ",", "AtomicOrdering", "Ord", ",", "bool", "IsStore", ",", "bool", "IsLoad", ")", "const", "{", "switch", "(", "Ord", ")", "{", "case", "AtomicOrdering", "::", "NotAtomic", ":", "case", "AtomicOrdering", "::", "Unordered", ":", "llvm_unreachable", "(", "\"Invalid fence: unordered/non-atomic\"", ")", ";", "case", "AtomicOrdering", "::", "Monotonic", ":", "case", "AtomicOrdering", "::", "Acquire", ":", "return", "nullptr", ";", "case", "AtomicOrdering", "::", "SequentiallyConsistent", ":", "if", "(", "!", "IsStore", ")", "return", "nullptr", ";", "case", "AtomicOrdering", "::", "Release", ":", "case", "AtomicOrdering", "::", "AcquireRelease", ":", "if", "(", "Subtarget", "->", "isSwift", "(", ")", ")", "return", "makeDMB", "(", "Builder", ",", "ARM_MB", "::", "ISHST", ")", ";", "else", "return", "makeDMB", "(", "Builder", ",", "ARM_MB", "::", "ISH", ")", ";", "}", "llvm_unreachable", "(", "\"Unknown fence ordering in emitLeadingFence\"", ")", ";", "}", ""], "natrual_language": ["Custom", "Lower", "{", "."], "TS_V_token": ["ARM", "ARM", "\"Invalid fence: unordered/non-atomic\"", "ARM_MB::ISHST", "ARM_MB::ISH", "\"Unknown fence ordering in emitLeadingFence\""], "File": "ARMISelLowering112", "Func": "emitLeadingFence", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3151, "Length": 115, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "PPCTargetLowering", "::", "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", ";", "bool", "IsPatchPoint", "=", "CLI", ".", "IsPatchPoint", ";", "ImmutableCallSite", "*", "CS", "=", "CLI", ".", "CS", ";", "if", "(", "isTailCall", ")", "isTailCall", "=", "IsEligibleForTailCallOptimization", "(", "Callee", ",", "CallConv", ",", "isVarArg", ",", "Ins", ",", "DAG", ")", ";", "if", "(", "!", "isTailCall", "&&", "CS", "&&", "CS", "->", "isMustTailCall", "(", ")", ")", "report_fatal_error", "(", "\"failed to perform tail call elimination on a call \"", "\"site marked musttail\"", ")", ";", "if", "(", "Subtarget", ".", "isSVR4ABI", "(", ")", ")", "{", "if", "(", "Subtarget", ".", "isPPC64", "(", ")", ")", "return", "LowerCall_64SVR4", "(", "Chain", ",", "Callee", ",", "CallConv", ",", "isVarArg", ",", "isTailCall", ",", "IsPatchPoint", ",", "Outs", ",", "OutVals", ",", "Ins", ",", "dl", ",", "DAG", ",", "InVals", ",", "CS", ")", ";", "else", "return", "LowerCall_32SVR4", "(", "Chain", ",", "Callee", ",", "CallConv", ",", "isVarArg", ",", "isTailCall", ",", "IsPatchPoint", ",", "Outs", ",", "OutVals", ",", "Ins", ",", "dl", ",", "DAG", ",", "InVals", ",", "CS", ")", ";", "}", "return", "LowerCall_Darwin", "(", "Chain", ",", "Callee", ",", "CallConv", ",", "isVarArg", ",", "isTailCall", ",", "IsPatchPoint", ",", "Outs", ",", "OutVals", ",", "Ins", ",", "dl", ",", "DAG", ",", "InVals", ",", "CS", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "calls", "into", "the", "specified", "DAG", "."], "TS_V_token": ["PowerPC", "PPC", "ISD::OutputArg", "ISD::InputArg", "\"failed to perform tail call elimination on a call \"", "\"site marked musttail\"", "PPC"], "File": "PPCISelLowering (2)2", "Func": "LowerCall", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3152, "Length": 274, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "SparcCodeEmitter", "::", "getBranchTargetOpValue", "(", "const", "MachineInstr", "&", "MI", ",", "unsigned", "opIdx", ")", "const", "{", "const", "MachineOperand", "MO", "=", "MI", ".", "getOperand", "(", "opIdx", ")", ";", "return", "getMachineOpValue", "(", "MI", ",", "MO", ")", ";", "}", ""], "natrual_language": ["getBranchTargetOpValue", "-", "Return", "binary", "encoding", "of", "the", "branch", "target", "operand", "."], "TS_V_token": ["Sparc", "Sparc"], "File": "SparcCodeEmitter", "Func": "getBranchTargetOpValue", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3153, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "contains", "(", "MachineInstr", "*", "MI", ")", "{", "return", "liveInstrs", ".", "count", "(", "MI", ")", ";", "}", ""], "natrual_language": ["contains", "-", "Returns", "true", "if", "this", "trace", "contains", "the", "given", "basic", "block", "."], "TS_V_token": ["X86"], "File": "regAlloc", "Func": "contains", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3154, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "arm_expand_compare_and_swap", "(", "rtx", "operands", "[", "]", ")", "{", "rtx", "bval", ",", "bdst", ",", "rval", ",", "mem", ",", "oldval", ",", "newval", ",", "is_weak", ",", "mod_s", ",", "mod_f", ",", "x", ";", "machine_mode", "mode", ";", "rtx", "(", "*", "gen", ")", "(", "rtx", ",", "rtx", ",", "rtx", ",", "rtx", ",", "rtx", ",", "rtx", ",", "rtx", ",", "rtx", ")", ";", "bval", "=", "operands", "[", "0", "]", ";", "rval", "=", "operands", "[", "1", "]", ";", "mem", "=", "operands", "[", "2", "]", ";", "oldval", "=", "operands", "[", "3", "]", ";", "newval", "=", "operands", "[", "4", "]", ";", "is_weak", "=", "operands", "[", "5", "]", ";", "mod_s", "=", "operands", "[", "6", "]", ";", "mod_f", "=", "operands", "[", "7", "]", ";", "mode", "=", "GET_MODE", "(", "mem", ")", ";", "if", "(", "TARGET_HAVE_LDACQ", "&&", "is_mm_acquire", "(", "memmodel_from_int", "(", "INTVAL", "(", "mod_f", ")", ")", ")", "&&", "is_mm_release", "(", "memmodel_from_int", "(", "INTVAL", "(", "mod_s", ")", ")", ")", ")", "mod_s", "=", "GEN_INT", "(", "MEMMODEL_ACQ_REL", ")", ";", "switch", "(", "mode", ")", "{", "case", "QImode", ":", "case", "HImode", ":", "rval", "=", "gen_reg_rtx", "(", "SImode", ")", ";", "oldval", "=", "convert_modes", "(", "SImode", ",", "mode", ",", "oldval", ",", "true", ")", ";", "case", "SImode", ":", "if", "(", "!", "arm_add_operand", "(", "oldval", ",", "SImode", ")", ")", "oldval", "=", "force_reg", "(", "SImode", ",", "oldval", ")", ";", "break", ";", "case", "DImode", ":", "if", "(", "!", "cmpdi_operand", "(", "oldval", ",", "mode", ")", ")", "oldval", "=", "force_reg", "(", "mode", ",", "oldval", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "switch", "(", "mode", ")", "{", "case", "QImode", ":", "gen", "=", "gen_atomic_compare_and_swapqi_1", ";", "break", ";", "case", "HImode", ":", "gen", "=", "gen_atomic_compare_and_swaphi_1", ";", "break", ";", "case", "SImode", ":", "gen", "=", "gen_atomic_compare_and_swapsi_1", ";", "break", ";", "case", "DImode", ":", "gen", "=", "gen_atomic_compare_and_swapdi_1", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "bdst", "=", "TARGET_THUMB1", "?", "bval", ":", "gen_rtx_REG", "(", "CCmode", ",", "CC_REGNUM", ")", ";", "emit_insn", "(", "gen", "(", "bdst", ",", "rval", ",", "mem", ",", "oldval", ",", "newval", ",", "is_weak", ",", "mod_s", ",", "mod_f", ")", ")", ";", "if", "(", "mode", "==", "QImode", "||", "mode", "==", "HImode", ")", "emit_move_insn", "(", "operands", "[", "1", "]", ",", "gen_lowpart", "(", "mode", ",", "rval", ")", ")", ";", "if", "(", "TARGET_THUMB1", ")", "emit_insn", "(", "gen_cstoresi_eq0_thumb1", "(", "bval", ",", "bdst", ")", ")", ";", "else", "{", "x", "=", "gen_rtx_EQ", "(", "SImode", ",", "bdst", ",", "const0_rtx", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "bval", ",", "x", ")", ")", ";", "}", "}", ""], "natrual_language": ["Expand", "a", "compare", "and", "swap", "pattern", "."], "TS_V_token": ["arm", "0", "1", "2", "3", "4", "5", "6", "7", "1"], "File": "arm6", "Func": "arm_expand_compare_and_swap", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3155, "Length": 385, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "PPCInstrInfo", "*", "getInstrInfo", "(", ")", "const", "override", "{", "return", "&", "InstrInfo", ";", "}", ""], "natrual_language": ["TargetInstrInfo", "getter", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCSubtarget (2)1", "Func": "getInstrInfo", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3156, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "AArch64BranchFixup", "::", "getOffsetOf", "(", "MachineInstr", "*", "MI", ")", "const", "{", "MachineBasicBlock", "*", "MBB", "=", "MI", "->", "getParent", "(", ")", ";", "unsigned", "Offset", "=", "BBInfo", "[", "MBB", "->", "getNumber", "(", ")", "]", ".", "Offset", ";", "for", "(", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", "->", "begin", "(", ")", ";", "&", "*", "I", "!=", "MI", ";", "++", "I", ")", "{", "assert", "(", "I", "!=", "MBB", "->", "end", "(", ")", "&&", "\"Didn't find MI in its own basic block?\"", ")", ";", "Offset", "+=", "TII", "->", "getInstSizeInBytes", "(", "*", "I", ")", ";", "}", "return", "Offset", ";", "}", ""], "natrual_language": ["getOffsetOf", "-", "Return", "the", "current", "offset", "of", "the", "specified", "machine", "instruction", "from", "the", "start", "of", "the", "function", "."], "TS_V_token": ["AArch64", "AArch64", "\"Didn't find MI in its own basic block?\""], "File": "AArch64BranchFixupPass1", "Func": "getOffsetOf", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3157, "Length": 86, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "sparc_flat_expand_prologue", "(", "void", ")", "{", "HOST_WIDE_INT", "size", ";", "rtx_insn", "*", "insn", ";", "sparc_leaf_function_p", "=", "optimize", ">", "0", "&&", "crtl", "->", "is_leaf", ";", "size", "=", "sparc_compute_frame_size", "(", "get_frame_size", "(", ")", ",", "sparc_leaf_function_p", ")", ";", "if", "(", "flag_stack_usage_info", ")", "current_function_static_stack_size", "=", "size", ";", "if", "(", "flag_stack_check", "==", "STATIC_BUILTIN_STACK_CHECK", "||", "flag_stack_clash_protection", ")", "{", "if", "(", "crtl", "->", "is_leaf", "&&", "!", "cfun", "->", "calls_alloca", ")", "{", "if", "(", "size", ">", "PROBE_INTERVAL", "&&", "size", ">", "get_stack_check_protect", "(", ")", ")", "sparc_emit_probe_stack_range", "(", "get_stack_check_protect", "(", ")", ",", "size", "-", "get_stack_check_protect", "(", ")", ")", ";", "}", "else", "if", "(", "size", ">", "0", ")", "sparc_emit_probe_stack_range", "(", "get_stack_check_protect", "(", ")", ",", "size", ")", ";", "}", "if", "(", "sparc_save_local_in_regs_p", ")", "emit_save_or_restore_local_in_regs", "(", "stack_pointer_rtx", ",", "SPARC_STACK_BIAS", ",", "SORR_SAVE", ")", ";", "if", "(", "size", "==", "0", ")", ";", "else", "{", "rtx", "size_int_rtx", ",", "size_rtx", ";", "size_rtx", "=", "size_int_rtx", "=", "GEN_INT", "(", "-", "size", ")", ";", "if", "(", "size", "<=", "4096", ")", "insn", "=", "emit_insn", "(", "gen_stack_pointer_inc", "(", "size_int_rtx", ")", ")", ";", "else", "if", "(", "size", "<=", "8192", "&&", "!", "frame_pointer_needed", ")", "{", "insn", "=", "emit_insn", "(", "gen_stack_pointer_inc", "(", "GEN_INT", "(", "-", "4096", ")", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "insn", "=", "emit_insn", "(", "gen_stack_pointer_inc", "(", "GEN_INT", "(", "4096", "-", "size", ")", ")", ")", ";", "}", "else", "{", "size_rtx", "=", "gen_rtx_REG", "(", "Pmode", ",", "1", ")", ";", "emit_move_insn", "(", "size_rtx", ",", "size_int_rtx", ")", ";", "insn", "=", "emit_insn", "(", "gen_stack_pointer_inc", "(", "size_rtx", ")", ")", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_ADJUST_CFA", ",", "gen_stack_pointer_inc", "(", "size_int_rtx", ")", ")", ";", "}", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "emit_insn", "(", "gen_blockage", "(", ")", ")", ";", "if", "(", "frame_pointer_needed", ")", "{", "insn", "=", "emit_insn", "(", "gen_rtx_SET", "(", "hard_frame_pointer_rtx", ",", "gen_rtx_MINUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "size_rtx", ")", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_ADJUST_CFA", ",", "gen_rtx_SET", "(", "hard_frame_pointer_rtx", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "size", ")", ")", ")", ";", "}", "if", "(", "return_addr_reg_needed_p", "(", "sparc_leaf_function_p", ")", ")", "{", "rtx", "o7", "=", "gen_rtx_REG", "(", "Pmode", ",", "INCOMING_RETURN_ADDR_REGNUM", ")", ";", "rtx", "i7", "=", "gen_rtx_REG", "(", "Pmode", ",", "RETURN_ADDR_REGNUM", ")", ";", "insn", "=", "emit_move_insn", "(", "i7", ",", "o7", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_REGISTER", ",", "gen_rtx_SET", "(", "i7", ",", "o7", ")", ")", ";", "emit_use", "(", "i7", ")", ";", "}", "}", "if", "(", "frame_pointer_needed", ")", "{", "sparc_frame_base_reg", "=", "hard_frame_pointer_rtx", ";", "sparc_frame_base_offset", "=", "SPARC_STACK_BIAS", ";", "}", "else", "{", "sparc_frame_base_reg", "=", "stack_pointer_rtx", ";", "sparc_frame_base_offset", "=", "size", "+", "SPARC_STACK_BIAS", ";", "}", "if", "(", "sparc_n_global_fp_regs", ">", "0", ")", "emit_save_or_restore_global_fp_regs", "(", "sparc_frame_base_reg", ",", "sparc_frame_base_offset", "-", "sparc_apparent_frame_size", ",", "SORR_SAVE", ")", ";", "sparc_prologue_data_valid_p", "=", "true", ";", "}", ""], "natrual_language": ["Expand", "the", "function", "prologue", ".", "The", "prologue", "is", "responsible", "for", "reserving", "storage", "for", "the", "frame", ",", "saving", "the", "call-saved", "registers", "and", "loading", "the", "GOT", "register", "if", "needed", "."], "TS_V_token": ["sparc", "0", "0", "0", "4096", "8192", "4096", "1", "4096", "1", "1", "1", "1", "0"], "File": "sparc", "Func": "sparc_flat_expand_prologue", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3158, "Length": 429, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "X86RegisterInfo", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", "MF", ",", "CallingConv", "::", "ID", "CC", ")", "const", "{", "const", "X86Subtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "bool", "HasSSE", "=", "Subtarget", ".", "hasSSE1", "(", ")", ";", "bool", "HasAVX", "=", "Subtarget", ".", "hasAVX", "(", ")", ";", "bool", "HasAVX512", "=", "Subtarget", ".", "hasAVX512", "(", ")", ";", "switch", "(", "CC", ")", "{", "case", "CallingConv", "::", "GHC", ":", "case", "CallingConv", "::", "HiPE", ":", "return", "CSR_NoRegs_RegMask", ";", "case", "CallingConv", "::", "AnyReg", ":", "if", "(", "HasAVX", ")", "return", "CSR_64_AllRegs_AVX_RegMask", ";", "return", "CSR_64_AllRegs_RegMask", ";", "case", "CallingConv", "::", "PreserveMost", ":", "return", "CSR_64_RT_MostRegs_RegMask", ";", "case", "CallingConv", "::", "PreserveAll", ":", "if", "(", "HasAVX", ")", "return", "CSR_64_RT_AllRegs_AVX_RegMask", ";", "return", "CSR_64_RT_AllRegs_RegMask", ";", "case", "CallingConv", "::", "CXX_FAST_TLS", ":", "if", "(", "Is64Bit", ")", "return", "CSR_64_TLS_Darwin_RegMask", ";", "break", ";", "case", "CallingConv", "::", "Intel_OCL_BI", ":", "{", "if", "(", "HasAVX512", "&&", "IsWin64", ")", "return", "CSR_Win64_Intel_OCL_BI_AVX512_RegMask", ";", "if", "(", "HasAVX512", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_AVX512_RegMask", ";", "if", "(", "HasAVX", "&&", "IsWin64", ")", "return", "CSR_Win64_Intel_OCL_BI_AVX_RegMask", ";", "if", "(", "HasAVX", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_AVX_RegMask", ";", "if", "(", "!", "HasAVX", "&&", "!", "IsWin64", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_RegMask", ";", "break", ";", "}", "case", "CallingConv", "::", "HHVM", ":", "return", "CSR_64_HHVM_RegMask", ";", "case", "CallingConv", "::", "X86_RegCall", ":", "if", "(", "Is64Bit", ")", "{", "if", "(", "IsWin64", ")", "{", "return", "(", "HasSSE", "?", "CSR_Win64_RegCall_RegMask", ":", "CSR_Win64_RegCall_NoSSE_RegMask", ")", ";", "}", "else", "{", "return", "(", "HasSSE", "?", "CSR_SysV64_RegCall_RegMask", ":", "CSR_SysV64_RegCall_NoSSE_RegMask", ")", ";", "}", "}", "else", "{", "return", "(", "HasSSE", "?", "CSR_32_RegCall_RegMask", ":", "CSR_32_RegCall_NoSSE_RegMask", ")", ";", "}", "case", "CallingConv", "::", "CFGuard_Check", ":", "assert", "(", "!", "Is64Bit", "&&", "\"CFGuard check mechanism only used on 32-bit X86\"", ")", ";", "return", "(", "HasSSE", "?", "CSR_Win32_CFGuard_Check_RegMask", ":", "CSR_Win32_CFGuard_Check_NoSSE_RegMask", ")", ";", "case", "CallingConv", "::", "Cold", ":", "if", "(", "Is64Bit", ")", "return", "CSR_64_MostRegs_RegMask", ";", "break", ";", "case", "CallingConv", "::", "Win64", ":", "return", "CSR_Win64_RegMask", ";", "case", "CallingConv", "::", "X86_64_SysV", ":", "return", "CSR_64_RegMask", ";", "case", "CallingConv", "::", "X86_INTR", ":", "if", "(", "Is64Bit", ")", "{", "if", "(", "HasAVX512", ")", "return", "CSR_64_AllRegs_AVX512_RegMask", ";", "if", "(", "HasAVX", ")", "return", "CSR_64_AllRegs_AVX_RegMask", ";", "if", "(", "HasSSE", ")", "return", "CSR_64_AllRegs_RegMask", ";", "return", "CSR_64_AllRegs_NoSSE_RegMask", ";", "}", "else", "{", "if", "(", "HasAVX512", ")", "return", "CSR_32_AllRegs_AVX512_RegMask", ";", "if", "(", "HasAVX", ")", "return", "CSR_32_AllRegs_AVX_RegMask", ";", "if", "(", "HasSSE", ")", "return", "CSR_32_AllRegs_SSE_RegMask", ";", "return", "CSR_32_AllRegs_RegMask", ";", "}", "default", ":", "break", ";", "}", "if", "(", "Is64Bit", ")", "{", "const", "Function", "&", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "bool", "IsSwiftCC", "=", "Subtarget", ".", "getTargetLowering", "(", ")", "->", "supportSwiftError", "(", ")", "&&", "F", ".", "getAttributes", "(", ")", ".", "hasAttrSomewhere", "(", "Attribute", "::", "SwiftError", ")", ";", "if", "(", "IsSwiftCC", ")", "return", "IsWin64", "?", "CSR_Win64_SwiftError_RegMask", ":", "CSR_64_SwiftError_RegMask", ";", "return", "IsWin64", "?", "CSR_Win64_RegMask", ":", "CSR_64_RegMask", ";", "}", "return", "CSR_32_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "\"CFGuard check mechanism only used on 32-bit X86\"", "X86", "X86"], "File": "X86RegisterInfo15", "Func": "getCallPreservedMask", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3159, "Length": 430, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "\\", "toc_section", "(", ")", "\\", "{", "\\", "if", "(", "TARGET_MINIMAL_TOC", ")", "\\", "{", "\\", "\\", "if", "(", "!", "toc_initialized", ")", "\\", "{", "\\", "fputs", "(", "\"\\t.toc\\nLCTOC..1:\\n\"", ",", "asm_out_file", ")", ";", "\\", "fputs", "(", "\"\\t.tc toc_table[TC],toc_table[RW]\\n\"", ",", "asm_out_file", ")", ";", "\\", "toc_initialized", "=", "1", ";", "\\", "}", "\\", "\\", "if", "(", "in_section", "!=", "toc", ")", "\\", "fprintf", "(", "asm_out_file", ",", "\"\\t.csect toc_table[RW]%s\\n\"", ",", "\\", "(", "TARGET_32BIT", "?", "\"\"", ":", "\",3\"", ")", ")", ";", "\\", "}", "\\", "else", "\\", "{", "\\", "if", "(", "in_section", "!=", "toc", ")", "\\", "fputs", "(", "\"\\t.toc\\n\"", ",", "asm_out_file", ")", ";", "\\", "}", "\\", "in_section", "=", "toc", ";", "\\", "}", ""], "natrual_language": ["This", "is", "just", "a", "placeholder", "to", "make", "linking", "work", "without", "having", "to", "add", "this", "to", "the", "generic", "Darwin", "EXTRA_SECTIONS", ".", "If", "-mcall-aix", "is", "ever", "needed", "for", "Darwin", "(", "not", "too", "likely", "!", ")", "this", "would", "have", "to", "get", "a", "real", "definition", "."], "TS_V_token": ["rs6000", "\"\\t.toc\\nLCTOC..1:\\n\"", "\"\\t.tc toc_table[TC],toc_table[RW]\\n\"", "1", "\"\\t.csect toc_table[RW]%s\\n\"", "\"\"", "\",3\"", "\"\\t.toc\\n\""], "File": "xcoff4", "Func": "toc_section", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3160, "Length": 101, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "MCObjectWriter", "*", "createObjectWriter", "(", "raw_ostream", "&", "OS", ")", "const", "LLVM_OVERRIDE", "{", "return", "createSystemZObjectWriter", "(", "OS", ",", "OSABI", ")", ";", "}", ""], "natrual_language": ["Create", "a", "new", "MCObjectWriter", "instance", "for", "use", "by", "the", "assembler", "backend", "to", "emit", "the", "final", "object", "file", "."], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZMCAsmBackend29", "Func": "createObjectWriter", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3161, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "yaml", "::", "MachineFunctionInfo", "*", "AArch64TargetMachine", "::", "createDefaultFuncInfoYAML", "(", ")", "const", "{", "return", "new", "yaml", "::", "AArch64FunctionInfo", "(", ")", ";", "}", ""], "natrual_language": ["Allocate", "and", "return", "a", "default", "initialized", "instance", "of", "the", "YAML", "representation", "for", "the", "MachineFunctionInfo", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64"], "File": "AArch64TargetMachine1", "Func": "createDefaultFuncInfoYAML", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3162, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_option_restore", "(", "struct", "gcc_options", "*", ",", "struct", "gcc_options", "*", "opts_set", ",", "struct", "cl_target_option", "*", "ptr", ")", "{", "arm_configure_build_target", "(", "&", "arm_active_target", ",", "ptr", ",", "opts_set", ",", "false", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_OPTION_RESTORE", "."], "TS_V_token": ["arm"], "File": "arm1", "Func": "arm_option_restore", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3163, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Cpu0TargetLowering", "::", "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_Cpu0", ")", ";", "}", ""], "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": ["Cpu0", "Cpu0", "ISD::OutputArg", "16", "Cpu0"], "File": "Cpu0ISelLowering", "Func": "CanLowerReturn", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3164, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "create_TOC_reference", "(", "rtx", "symbol", ",", "rtx", "largetoc_reg", ")", "{", "rtx", "tocrel", ",", "tocreg", ",", "hi", ";", "if", "(", "TARGET_DEBUG_ADDR", ")", "{", "if", "(", "GET_CODE", "(", "symbol", ")", "==", "SYMBOL_REF", ")", "fprintf", "(", "stderr", ",", "\"\\ncreate_TOC_reference, (symbol_ref %s)\\n\"", ",", "XSTR", "(", "symbol", ",", "0", ")", ")", ";", "else", "{", "fprintf", "(", "stderr", ",", "\"\\ncreate_TOC_reference, code %s:\\n\"", ",", "GET_RTX_NAME", "(", "GET_CODE", "(", "symbol", ")", ")", ")", ";", "debug_rtx", "(", "symbol", ")", ";", "}", "}", "if", "(", "!", "can_create_pseudo_p", "(", ")", ")", "df_set_regs_ever_live", "(", "TOC_REGISTER", ",", "true", ")", ";", "tocreg", "=", "gen_rtx_REG", "(", "Pmode", ",", "TOC_REGISTER", ")", ";", "tocrel", "=", "gen_rtx_UNSPEC", "(", "Pmode", ",", "gen_rtvec", "(", "2", ",", "symbol", ",", "tocreg", ")", ",", "UNSPEC_TOCREL", ")", ";", "if", "(", "TARGET_CMODEL", "==", "CMODEL_SMALL", "||", "can_create_pseudo_p", "(", ")", ")", "return", "tocrel", ";", "hi", "=", "gen_rtx_HIGH", "(", "Pmode", ",", "copy_rtx", "(", "tocrel", ")", ")", ";", "if", "(", "largetoc_reg", "!=", "NULL", ")", "{", "emit_move_insn", "(", "largetoc_reg", ",", "hi", ")", ";", "hi", "=", "largetoc_reg", ";", "}", "return", "gen_rtx_LO_SUM", "(", "Pmode", ",", "hi", ",", "tocrel", ")", ";", "}", ""], "natrual_language": ["Create", "a", "TOC", "reference", "for", "symbol_ref", "SYMBOL", ".", "If", "LARGETOC_REG", "is", "non-null", ",", "use", "that", "as", "the", "register", "to", "put", "the", "HIGH", "value", "into", "if", "register", "allocation", "is", "already", "done", "."], "TS_V_token": ["rs6000", "\"\\ncreate_TOC_reference, (symbol_ref %s)\\n\"", "0", "\"\\ncreate_TOC_reference, code %s:\\n\"", "2"], "File": "rs60004", "Func": "create_TOC_reference", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3165, "Length": 165, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "global_reg_mentioned_p", "(", "rtx", "x", ")", "{", "if", "(", "INSN_P", "(", "x", ")", ")", "{", "if", "(", "CALL_P", "(", "x", ")", ")", "{", "if", "(", "!", "RTL_CONST_OR_PURE_CALL_P", "(", "x", ")", ")", "return", "true", ";", "x", "=", "CALL_INSN_FUNCTION_USAGE", "(", "x", ")", ";", "if", "(", "x", "==", "0", ")", "return", "false", ";", "}", "else", "x", "=", "PATTERN", "(", "x", ")", ";", "}", "subrtx_iterator", "::", "array_type", "array", ";", "FOR_EACH_SUBRTX", "(", "iter", ",", "array", ",", "x", ",", "NONCONST", ")", "if", "(", "global_reg_mentioned_p_1", "(", "*", "iter", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Returns", "nonzero", "if", "X", "mentions", "a", "global", "register", "."], "TS_V_token": ["mep", "0"], "File": "mep", "Func": "global_reg_mentioned_p", "Target": "mep", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3166, "Length": 91, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "aarch64_strip_extend", "(", "rtx", "x", ",", "bool", "strip_shift", ")", "{", "scalar_int_mode", "mode", ";", "rtx", "op", "=", "x", ";", "if", "(", "!", "is_a", "<", "scalar_int_mode", ">", "(", "GET_MODE", "(", "op", ")", ",", "&", "mode", ")", ")", "return", "op", ";", "if", "(", "(", "GET_CODE", "(", "op", ")", "==", "ZERO_EXTRACT", "||", "GET_CODE", "(", "op", ")", "==", "SIGN_EXTRACT", ")", "&&", "XEXP", "(", "op", ",", "2", ")", "==", "const0_rtx", "&&", "GET_CODE", "(", "XEXP", "(", "op", ",", "0", ")", ")", "==", "MULT", "&&", "aarch64_is_extend_from_extract", "(", "mode", ",", "XEXP", "(", "XEXP", "(", "op", ",", "0", ")", ",", "1", ")", ",", "XEXP", "(", "op", ",", "1", ")", ")", ")", "return", "XEXP", "(", "XEXP", "(", "op", ",", "0", ")", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "op", ")", "==", "AND", "&&", "GET_CODE", "(", "XEXP", "(", "op", ",", "0", ")", ")", "==", "MULT", "&&", "CONST_INT_P", "(", "XEXP", "(", "XEXP", "(", "op", ",", "0", ")", ",", "1", ")", ")", "&&", "CONST_INT_P", "(", "XEXP", "(", "op", ",", "1", ")", ")", "&&", "aarch64_uxt_size", "(", "exact_log2", "(", "INTVAL", "(", "XEXP", "(", "XEXP", "(", "op", ",", "0", ")", ",", "1", ")", ")", ")", ",", "INTVAL", "(", "XEXP", "(", "op", ",", "1", ")", ")", ")", "!=", "0", ")", "return", "XEXP", "(", "XEXP", "(", "op", ",", "0", ")", ",", "0", ")", ";", "if", "(", "strip_shift", "&&", "GET_CODE", "(", "op", ")", "==", "ASHIFT", "&&", "CONST_INT_P", "(", "XEXP", "(", "op", ",", "1", ")", ")", "&&", "(", "(", "unsigned", "HOST_WIDE_INT", ")", "INTVAL", "(", "XEXP", "(", "op", ",", "1", ")", ")", ")", "<=", "4", ")", "op", "=", "XEXP", "(", "op", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "op", ")", "==", "ZERO_EXTEND", "||", "GET_CODE", "(", "op", ")", "==", "SIGN_EXTEND", ")", "op", "=", "XEXP", "(", "op", ",", "0", ")", ";", "if", "(", "op", "!=", "x", ")", "return", "op", ";", "return", "x", ";", "}", ""], "natrual_language": ["Helper", "function", "for", "rtx", "cost", "calculation", ".", "Strip", "an", "extend", "expression", "from", "X", ".", "Returns", "the", "inner", "operand", "if", "successful", ",", "or", "the", "original", "expression", "on", "failure", ".", "We", "deal", "with", "a", "number", "of", "possible", "canonicalization", "variations", "here", "."], "TS_V_token": ["aarch64", "2", "0", "0", "1", "1", "0", "0", "0", "0", "1", "1", "0", "1", "1", "0", "0", "0", "1", "1", "4", "0", "0"], "File": "aarch64", "Func": "aarch64_strip_extend", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3167, "Length": 293, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "SparcRegisterInfo", "::", "getRARegister", "(", ")", "const", "{", "return", "SP", "::", "I7", ";", "}", ""], "natrual_language": ["This", "method", "should", "return", "the", "register", "where", "the", "return", "address", "can", "be", "found", "."], "TS_V_token": ["Sparc", "Sparc", "SP::I7"], "File": "SparcRegisterInfo12", "Func": "getRARegister", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3168, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "tree", "def_builtin", "(", "HOST_WIDE_INT", "mask", ",", "HOST_WIDE_INT", "mask2", ",", "const", "char", "*", "name", ",", "enum", "ix86_builtin_func_type", "tcode", ",", "enum", "ix86_builtins", "code", ")", "{", "tree", "decl", "=", "NULL_TREE", ";", "if", "(", "!", "(", "mask", "&", "OPTION_MASK_ISA_64BIT", ")", "||", "TARGET_64BIT", ")", "{", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "isa", "=", "mask", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "isa2", "=", "mask2", ";", "mask", "&=", "~", "OPTION_MASK_ISA_64BIT", ";", "if", "(", "(", "mask", "&", "ix86_isa_flags", "&", "OPTION_MASK_ISA_AVX512VL", ")", "&&", "mask", "!=", "OPTION_MASK_ISA_AVX512VL", ")", "mask", "&=", "~", "OPTION_MASK_ISA_AVX512VL", ";", "if", "(", "(", "mask", "&", "ix86_isa_flags", "&", "OPTION_MASK_ISA_AVX512BW", ")", "&&", "mask", "!=", "OPTION_MASK_ISA_AVX512BW", ")", "mask", "&=", "~", "OPTION_MASK_ISA_AVX512BW", ";", "if", "(", "(", "(", "mask2", "==", "0", "||", "(", "mask2", "&", "ix86_isa_flags2", ")", "!=", "0", ")", "&&", "(", "mask", "==", "0", "||", "(", "mask", "&", "ix86_isa_flags", ")", "!=", "0", ")", ")", "||", "(", "(", "mask", "&", "OPTION_MASK_ISA_MMX", ")", "!=", "0", "&&", "TARGET_MMX_WITH_SSE", ")", "||", "(", "mask2", "==", "OPTION_MASK_ISA2_AVXVNNI", ")", "||", "(", "mask2", "==", "OPTION_MASK_ISA2_AVXIFMA", ")", "||", "(", "mask2", "==", "(", "OPTION_MASK_ISA2_AVXNECONVERT", "|", "OPTION_MASK_ISA2_AVX512BF16", ")", ")", "||", "(", "lang_hooks", ".", "builtin_function", "==", "lang_hooks", ".", "builtin_function_ext_scope", ")", ")", "{", "tree", "type", "=", "ix86_get_builtin_func_type", "(", "tcode", ")", ";", "decl", "=", "add_builtin_function", "(", "name", ",", "type", ",", "code", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";", "ix86_builtins", "[", "(", "int", ")", "code", "]", "=", "decl", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "set_and_not_built_p", "=", "false", ";", "}", "else", "{", "deferred_isa_values", "|=", "mask", ";", "deferred_isa_values2", "|=", "mask2", ";", "ix86_builtins", "[", "(", "int", ")", "code", "]", "=", "NULL_TREE", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "tcode", "=", "tcode", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "name", "=", "name", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "const_p", "=", "false", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "pure_p", "=", "false", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "set_and_not_built_p", "=", "true", ";", "}", "}", "return", "decl", ";", "}", ""], "natrual_language": ["Add", "a", "SPARC", "builtin", "function", "with", "NAME", ",", "ICODE", ",", "CODE", "and", "TYPE", ".", "Return", "the", "function", "decl", "or", "NULL_TREE", "if", "the", "builtin", "was", "not", "added", "."], "TS_V_token": ["i386", "0", "0", "0", "0", "0"], "File": "i386-builtins1", "Func": "def_builtin", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3169, "Length": 320, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCRegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetFrameInfo", "*", "TFI", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameInfo", "(", ")", ";", "if", "(", "!", "Subtarget", ".", "isPPC64", "(", ")", ")", "return", "TFI", "->", "hasFP", "(", "MF", ")", "?", "PPC", "::", "R31", ":", "PPC", "::", "R1", ";", "else", "return", "TFI", "->", "hasFP", "(", "MF", ")", "?", "PPC", "::", "X31", ":", "PPC", "::", "X1", ";", "}", ""], "natrual_language": ["Debug", "information", "queries", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC::R31", "PPC::R1", "PPC::X31", "PPC::X1"], "File": "PPCRegisterInfo31", "Func": "getFrameRegister", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3170, "Length": 70, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "rs6000_builtin_md_vectorized_function", "(", "tree", "fndecl", ",", "tree", "type_out", ",", "tree", "type_in", ")", "{", "machine_mode", "in_mode", ",", "out_mode", ";", "int", "in_n", ",", "out_n", ";", "if", "(", "TARGET_DEBUG_BUILTIN", ")", "fprintf", "(", "stderr", ",", "\"rs6000_builtin_md_vectorized_function (%s, %s, %s)\\n\"", ",", "IDENTIFIER_POINTER", "(", "DECL_NAME", "(", "fndecl", ")", ")", ",", "GET_MODE_NAME", "(", "TYPE_MODE", "(", "type_out", ")", ")", ",", "GET_MODE_NAME", "(", "TYPE_MODE", "(", "type_in", ")", ")", ")", ";", "if", "(", "TREE_CODE", "(", "type_out", ")", "!=", "VECTOR_TYPE", "||", "TREE_CODE", "(", "type_in", ")", "!=", "VECTOR_TYPE", ")", "return", "NULL_TREE", ";", "out_mode", "=", "TYPE_MODE", "(", "TREE_TYPE", "(", "type_out", ")", ")", ";", "out_n", "=", "TYPE_VECTOR_SUBPARTS", "(", "type_out", ")", ";", "in_mode", "=", "TYPE_MODE", "(", "TREE_TYPE", "(", "type_in", ")", ")", ";", "in_n", "=", "TYPE_VECTOR_SUBPARTS", "(", "type_in", ")", ";", "enum", "rs6000_builtins", "fn", "=", "(", "enum", "rs6000_builtins", ")", "DECL_FUNCTION_CODE", "(", "fndecl", ")", ";", "switch", "(", "fn", ")", "{", "case", "RS6000_BUILTIN_RSQRTF", ":", "if", "(", "VECTOR_UNIT_ALTIVEC_OR_VSX_P", "(", "V4SFmode", ")", "&&", "out_mode", "==", "SFmode", "&&", "out_n", "==", "4", "&&", "in_mode", "==", "SFmode", "&&", "in_n", "==", "4", ")", "return", "rs6000_builtin_decls", "[", "ALTIVEC_BUILTIN_VRSQRTFP", "]", ";", "break", ";", "case", "RS6000_BUILTIN_RSQRT", ":", "if", "(", "VECTOR_UNIT_VSX_P", "(", "V2DFmode", ")", "&&", "out_mode", "==", "DFmode", "&&", "out_n", "==", "2", "&&", "in_mode", "==", "DFmode", "&&", "in_n", "==", "2", ")", "return", "rs6000_builtin_decls", "[", "VSX_BUILTIN_RSQRT_2DF", "]", ";", "break", ";", "case", "RS6000_BUILTIN_RECIPF", ":", "if", "(", "VECTOR_UNIT_ALTIVEC_OR_VSX_P", "(", "V4SFmode", ")", "&&", "out_mode", "==", "SFmode", "&&", "out_n", "==", "4", "&&", "in_mode", "==", "SFmode", "&&", "in_n", "==", "4", ")", "return", "rs6000_builtin_decls", "[", "ALTIVEC_BUILTIN_VRECIPFP", "]", ";", "break", ";", "case", "RS6000_BUILTIN_RECIP", ":", "if", "(", "VECTOR_UNIT_VSX_P", "(", "V2DFmode", ")", "&&", "out_mode", "==", "DFmode", "&&", "out_n", "==", "2", "&&", "in_mode", "==", "DFmode", "&&", "in_n", "==", "2", ")", "return", "rs6000_builtin_decls", "[", "VSX_BUILTIN_RECIP_V2DF", "]", ";", "break", ";", "default", ":", "break", ";", "}", "return", "NULL_TREE", ";", "}", ""], "natrual_language": ["Implement", "targetm.vectorize.builtin_md_vectorized_function", "."], "TS_V_token": ["rs6000", "\"rs6000_builtin_md_vectorized_function (%s, %s, %s)\\n\"", "4", "4", "2", "2", "4", "4", "2", "2"], "File": "rs60007", "Func": "rs6000_builtin_md_vectorized_function", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3171, "Length": 275, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "rs6000_gen_lvx", "(", "enum", "machine_mode", "mode", ",", "rtx", "dest_exp", ",", "rtx", "src_exp", ")", "{", "rtx", "lvx", ";", "if", "(", "mode", "==", "V16QImode", ")", "lvx", "=", "gen_altivec_lvx_v16qi", "(", "dest_exp", ",", "src_exp", ")", ";", "else", "if", "(", "mode", "==", "V8HImode", ")", "lvx", "=", "gen_altivec_lvx_v8hi", "(", "dest_exp", ",", "src_exp", ")", ";", "else", "if", "(", "mode", "==", "V8HFmode", ")", "lvx", "=", "gen_altivec_lvx_v8hf", "(", "dest_exp", ",", "src_exp", ")", ";", "else", "if", "(", "mode", "==", "V4SImode", ")", "lvx", "=", "gen_altivec_lvx_v4si", "(", "dest_exp", ",", "src_exp", ")", ";", "else", "if", "(", "mode", "==", "V4SFmode", ")", "lvx", "=", "gen_altivec_lvx_v4sf", "(", "dest_exp", ",", "src_exp", ")", ";", "else", "if", "(", "mode", "==", "V2DImode", ")", "lvx", "=", "gen_altivec_lvx_v2di", "(", "dest_exp", ",", "src_exp", ")", ";", "else", "if", "(", "mode", "==", "V2DFmode", ")", "lvx", "=", "gen_altivec_lvx_v2df", "(", "dest_exp", ",", "src_exp", ")", ";", "else", "if", "(", "mode", "==", "V1TImode", ")", "lvx", "=", "gen_altivec_lvx_v1ti", "(", "dest_exp", ",", "src_exp", ")", ";", "else", "gcc_unreachable", "(", ")", ";", "rtx", "new_mem_exp", "=", "SET_SRC", "(", "PATTERN", "(", "lvx", ")", ")", ";", "mimic_memory_attributes_and_flags", "(", "new_mem_exp", ",", "src_exp", ")", ";", "return", "lvx", ";", "}", ""], "natrual_language": ["Generate", "an", "rtx", "expression", "to", "represent", "use", "of", "the", "lvx", "insn", "to", "load", "from", "memory", "SRC_EXP", "into", "register", "DEST_EXP", "with", "vector", "mode", "MODE", "."], "TS_V_token": ["rs6000"], "File": "rs6000-p8swap", "Func": "rs6000_gen_lvx", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3172, "Length": 171, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MVEGatherScatterLowering", "::", "runOnFunction", "(", "Function", "&", "F", ")", "{", "if", "(", "!", "EnableMaskedGatherScatters", ")", "return", "false", ";", "auto", "&", "TPC", "=", "getAnalysis", "<", "TargetPassConfig", ">", "(", ")", ";", "auto", "&", "TM", "=", "TPC", ".", "getTM", "<", "TargetMachine", ">", "(", ")", ";", "auto", "*", "ST", "=", "&", "TM", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", "F", ")", ";", "if", "(", "!", "ST", "->", "hasMVEIntegerOps", "(", ")", ")", "return", "false", ";", "LI", "=", "&", "getAnalysis", "<", "LoopInfoWrapperPass", ">", "(", ")", ".", "getLoopInfo", "(", ")", ";", "DL", "=", "&", "F", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "SmallVector", "<", "IntrinsicInst", "*", ",", "4", ">", "Gathers", ";", "SmallVector", "<", "IntrinsicInst", "*", ",", "4", ">", "Scatters", ";", "bool", "Changed", "=", "false", ";", "for", "(", "BasicBlock", "&", "BB", ":", "F", ")", "{", "Changed", "|=", "SimplifyInstructionsInBlock", "(", "&", "BB", ")", ";", "for", "(", "Instruction", "&", "I", ":", "BB", ")", "{", "IntrinsicInst", "*", "II", "=", "dyn_cast", "<", "IntrinsicInst", ">", "(", "&", "I", ")", ";", "if", "(", "II", "&&", "II", "->", "getIntrinsicID", "(", ")", "==", "Intrinsic", "::", "masked_gather", "&&", "isa", "<", "FixedVectorType", ">", "(", "II", "->", "getType", "(", ")", ")", ")", "{", "Gathers", ".", "push_back", "(", "II", ")", ";", "Changed", "|=", "optimiseAddress", "(", "II", "->", "getArgOperand", "(", "0", ")", ",", "II", "->", "getParent", "(", ")", ",", "LI", ")", ";", "}", "else", "if", "(", "II", "&&", "II", "->", "getIntrinsicID", "(", ")", "==", "Intrinsic", "::", "masked_scatter", "&&", "isa", "<", "FixedVectorType", ">", "(", "II", "->", "getArgOperand", "(", "0", ")", "->", "getType", "(", ")", ")", ")", "{", "Scatters", ".", "push_back", "(", "II", ")", ";", "Changed", "|=", "optimiseAddress", "(", "II", "->", "getArgOperand", "(", "1", ")", ",", "II", "->", "getParent", "(", ")", ",", "LI", ")", ";", "}", "}", "}", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "Gathers", ".", "size", "(", ")", ";", "i", "++", ")", "{", "IntrinsicInst", "*", "I", "=", "Gathers", "[", "i", "]", ";", "Instruction", "*", "L", "=", "lowerGather", "(", "I", ")", ";", "if", "(", "L", "==", "nullptr", ")", "continue", ";", "SimplifyInstructionsInBlock", "(", "L", "->", "getParent", "(", ")", ")", ";", "Changed", "=", "true", ";", "}", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "Scatters", ".", "size", "(", ")", ";", "i", "++", ")", "{", "IntrinsicInst", "*", "I", "=", "Scatters", "[", "i", "]", ";", "Instruction", "*", "S", "=", "lowerScatter", "(", "I", ")", ";", "if", "(", "S", "==", "nullptr", ")", "continue", ";", "SimplifyInstructionsInBlock", "(", "S", "->", "getParent", "(", ")", ")", ";", "Changed", "=", "true", ";", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnFunction", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "the", "per-function", "processing", "of", "the", "pass", "."], "TS_V_token": ["ARM", "ARM", "4", "4", "Intrinsic::masked_gather", "0", "Intrinsic::masked_scatter", "0", "1", "0", "0"], "File": "MVEGatherScatterLowering (2)", "Func": "runOnFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3173, "Length": 398, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_validate_march", "(", "const", "char", "*", "str", ",", "const", "struct", "processor", "*", "*", "res", ",", "unsigned", "long", "*", "isa_flags", ")", "{", "std", "::", "string", "invalid_extension", ";", "enum", "aarch64_parse_opt_result", "parse_res", "=", "aarch64_parse_arch", "(", "str", ",", "res", ",", "isa_flags", ",", "&", "invalid_extension", ")", ";", "if", "(", "parse_res", "==", "AARCH64_PARSE_OK", ")", "return", "true", ";", "switch", "(", "parse_res", ")", "{", "case", "AARCH64_PARSE_MISSING_ARG", ":", "error", "(", "\"missing arch name in %<-march=%s%>\"", ",", "str", ")", ";", "break", ";", "case", "AARCH64_PARSE_INVALID_ARG", ":", "error", "(", "\"unknown value %qs for %<-march%>\"", ",", "str", ")", ";", "aarch64_print_hint_for_arch", "(", "str", ")", ";", "break", ";", "case", "AARCH64_PARSE_INVALID_FEATURE", ":", "error", "(", "\"invalid feature modifier %qs in %<-march=%s%>\"", ",", "invalid_extension", ".", "c_str", "(", ")", ",", "str", ")", ";", "aarch64_print_hint_for_extensions", "(", "invalid_extension", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Validate", "a", "command-line", "-march", "option", ".", "Parse", "the", "arch", "and", "extensions", "(", "if", "any", ")", "specified", "in", "STR", "and", "throw", "errors", "if", "appropriate", ".", "Put", "the", "results", ",", "if", "they", "are", "valid", ",", "in", "RES", "and", "ISA_FLAGS", ".", "Return", "whether", "the", "option", "is", "valid", "."], "TS_V_token": ["aarch64", "\"missing arch name in %<-march=%s%>\"", "\"unknown value %qs for %<-march%>\"", "\"invalid feature modifier %qs in %<-march=%s%>\""], "File": "aarch646", "Func": "aarch64_validate_march", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3174, "Length": 120, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "vax_output_int_move", "(", "rtx", "insn", "ATTRIBUTE_UNUSED", ",", "rtx", "*", "operands", ",", "enum", "machine_mode", "mode", ")", "{", "switch", "(", "mode", ")", "{", "case", "SImode", ":", "if", "(", "GET_CODE", "(", "operands", "[", "1", "]", ")", "==", "SYMBOL_REF", "||", "GET_CODE", "(", "operands", "[", "1", "]", ")", "==", "CONST", ")", "{", "if", "(", "push_operand", "(", "operands", "[", "0", "]", ",", "SImode", ")", ")", "return", "\"pushab %a1\"", ";", "return", "\"movab %a1,%0\"", ";", "}", "if", "(", "operands", "[", "1", "]", "==", "const0_rtx", ")", "return", "\"clrl %0\"", ";", "if", "(", "GET_CODE", "(", "operands", "[", "1", "]", ")", "==", "CONST_INT", "&&", "(", "unsigned", ")", "INTVAL", "(", "operands", "[", "1", "]", ")", ">=", "64", ")", "{", "int", "i", "=", "INTVAL", "(", "operands", "[", "1", "]", ")", ";", "if", "(", "(", "unsigned", ")", "(", "~", "i", ")", "<", "64", ")", "return", "\"mcoml %N1,%0\"", ";", "if", "(", "(", "unsigned", ")", "i", "<", "0x100", ")", "return", "\"movzbl %1,%0\"", ";", "if", "(", "i", ">=", "-", "0x80", "&&", "i", "<", "0", ")", "return", "\"cvtbl %1,%0\"", ";", "if", "(", "(", "unsigned", ")", "i", "<", "0x10000", ")", "return", "\"movzwl %1,%0\"", ";", "if", "(", "i", ">=", "-", "0x8000", "&&", "i", "<", "0", ")", "return", "\"cvtwl %1,%0\"", ";", "}", "if", "(", "push_operand", "(", "operands", "[", "0", "]", ",", "SImode", ")", ")", "return", "\"pushl %1\"", ";", "return", "\"movl %1,%0\"", ";", "case", "HImode", ":", "if", "(", "GET_CODE", "(", "operands", "[", "1", "]", ")", "==", "CONST_INT", ")", "{", "int", "i", "=", "INTVAL", "(", "operands", "[", "1", "]", ")", ";", "if", "(", "i", "==", "0", ")", "return", "\"clrw %0\"", ";", "else", "if", "(", "(", "unsigned", "int", ")", "i", "<", "64", ")", "return", "\"movw %1,%0\"", ";", "else", "if", "(", "(", "unsigned", "int", ")", "~", "i", "<", "64", ")", "return", "\"mcomw %H1,%0\"", ";", "else", "if", "(", "(", "unsigned", "int", ")", "i", "<", "256", ")", "return", "\"movzbw %1,%0\"", ";", "}", "return", "\"movw %1,%0\"", ";", "case", "QImode", ":", "if", "(", "GET_CODE", "(", "operands", "[", "1", "]", ")", "==", "CONST_INT", ")", "{", "int", "i", "=", "INTVAL", "(", "operands", "[", "1", "]", ")", ";", "if", "(", "i", "==", "0", ")", "return", "\"clrb %0\"", ";", "else", "if", "(", "(", "unsigned", "int", ")", "~", "i", "<", "64", ")", "return", "\"mcomb %B1,%0\"", ";", "}", "return", "\"movb %1,%0\"", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Output", "integer", "move", "instructions", "."], "TS_V_token": ["vax", "1", "1", "0", "\"pushab %a1\"", "\"movab %a1,%0\"", "1", "\"clrl %0\"", "1", "1", "64", "1", "64", "\"mcoml %N1,%0\"", "0x100", "\"movzbl %1,%0\"", "0x80", "0", "\"cvtbl %1,%0\"", "0x10000", "\"movzwl %1,%0\"", "0x8000", "0", "\"cvtwl %1,%0\"", "0", "\"pushl %1\"", "\"movl %1,%0\"", "1", "1", "0", "\"clrw %0\"", "64", "\"movw %1,%0\"", "64", "\"mcomw %H1,%0\"", "256", "\"movzbw %1,%0\"", "\"movw %1,%0\"", "1", "1", "0", "\"clrb %0\"", "64", "\"mcomb %B1,%0\"", "\"movb %1,%0\""], "File": "vax3", "Func": "vax_output_int_move", "Target": "vax", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3175, "Length": 349, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isReg", "(", ")", "const", "override", "{", "return", "isGPRAsmReg", "(", ")", "&&", "RegIdx", ".", "Index", "==", "0", ";", "}", ""], "natrual_language": ["isReg", "-", "Is", "this", "a", "register", "operand", "?"], "TS_V_token": ["Mips", "0"], "File": "MipsAsmParser (2)4", "Func": "isReg", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3176, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "pa_som_asm_init_sections", "(", "void", ")", "{", "text_section", "=", "get_unnamed_section", "(", "0", ",", "som_output_text_section_asm_op", ",", "NULL", ")", ";", "som_readonly_data_section", "=", "get_unnamed_section", "(", "0", ",", "output_section_asm_op", ",", "\"\\t.SPACE $TEXT$\\n\\t.SUBSPA $LIT$\"", ")", ";", "som_one_only_readonly_data_section", "=", "get_unnamed_section", "(", "0", ",", "som_output_comdat_data_section_asm_op", ",", "\"\\t.SPACE $TEXT$\\n\"", "\"\\t.NSUBSPA $LIT$,QUAD=0,ALIGN=8,\"", "\"ACCESS=0x2c,SORT=16,COMDAT\"", ")", ";", "som_one_only_data_section", "=", "get_unnamed_section", "(", "SECTION_WRITE", ",", "som_output_comdat_data_section_asm_op", ",", "\"\\t.SPACE $PRIVATE$\\n\"", "\"\\t.NSUBSPA $DATA$,QUAD=1,ALIGN=8,\"", "\"ACCESS=31,SORT=24,COMDAT\"", ")", ";", "if", "(", "flag_tm", ")", "som_tm_clone_table_section", "=", "get_unnamed_section", "(", "0", ",", "output_section_asm_op", ",", "\"\\t.SPACE $PRIVATE$\\n\\t.SUBSPA $TM_CLONE_TABLE$\"", ")", ";", "readonly_data_section", "=", "flag_pic", "?", "data_section", ":", "som_readonly_data_section", ";", "exception_section", "=", "data_section", ";", "}", ""], "natrual_language": ["Implement", "TARGET_ASM_INITIALIZE_SECTIONS"], "TS_V_token": ["pa", "0", "0", "\"\\t.SPACE $TEXT$\\n\\t.SUBSPA $LIT$\"", "0", "\"\\t.SPACE $TEXT$\\n\"", "\"\\t.NSUBSPA $LIT$,QUAD=0,ALIGN=8,\"", "\"ACCESS=0x2c,SORT=16,COMDAT\"", "\"\\t.SPACE $PRIVATE$\\n\"", "\"\\t.NSUBSPA $DATA$,QUAD=1,ALIGN=8,\"", "\"ACCESS=31,SORT=24,COMDAT\"", "0", "\"\\t.SPACE $PRIVATE$\\n\\t.SUBSPA $TM_CLONE_TABLE$\""], "File": "pa4", "Func": "pa_som_asm_init_sections", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3177, "Length": 83, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_can_inline_p", "(", "tree", "caller", ",", "tree", "callee", ")", "{", "bool", "ret", "=", "false", ";", "tree", "caller_tree", "=", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "caller", ")", ";", "tree", "callee_tree", "=", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "callee", ")", ";", "if", "(", "!", "callee_tree", ")", "ret", "=", "true", ";", "else", "{", "HOST_WIDE_INT", "caller_isa", ";", "struct", "cl_target_option", "*", "callee_opts", "=", "TREE_TARGET_OPTION", "(", "callee_tree", ")", ";", "HOST_WIDE_INT", "callee_isa", "=", "callee_opts", "->", "x_rs6000_isa_flags", ";", "HOST_WIDE_INT", "explicit_isa", "=", "callee_opts", "->", "x_rs6000_isa_flags_explicit", ";", "if", "(", "caller_tree", ")", "caller_isa", "=", "TREE_TARGET_OPTION", "(", "caller_tree", ")", "->", "x_rs6000_isa_flags", ";", "else", "caller_isa", "=", "rs6000_isa_flags", ";", "cgraph_node", "*", "callee_node", "=", "cgraph_node", "::", "get", "(", "callee", ")", ";", "if", "(", "ipa_fn_summaries", "&&", "ipa_fn_summaries", "->", "get", "(", "callee_node", ")", "!=", "NULL", ")", "{", "unsigned", "int", "info", "=", "ipa_fn_summaries", "->", "get", "(", "callee_node", ")", "->", "target_info", ";", "if", "(", "(", "info", "&", "RS6000_FN_TARGET_INFO_HTM", ")", "==", "0", ")", "{", "callee_isa", "&=", "~", "OPTION_MASK_HTM", ";", "explicit_isa", "&=", "~", "OPTION_MASK_HTM", ";", "}", "}", "if", "(", "(", "(", "caller_isa", "&", "callee_isa", ")", "==", "callee_isa", ")", "&&", "(", "caller_isa", "&", "explicit_isa", ")", "==", "(", "callee_isa", "&", "explicit_isa", ")", ")", "ret", "=", "true", ";", "}", "if", "(", "TARGET_DEBUG_TARGET", ")", "fprintf", "(", "stderr", ",", "\"rs6000_can_inline_p:, caller %s, callee %s, %s inline\\n\"", ",", "get_decl_name", "(", "caller", ")", ",", "get_decl_name", "(", "callee", ")", ",", "(", "ret", "?", "\"can\"", ":", "\"cannot\"", ")", ")", ";", "return", "ret", ";", "}", ""], "natrual_language": ["Hook", "to", "determine", "if", "one", "function", "can", "safely", "inline", "another", "."], "TS_V_token": ["rs6000", "0", "\"rs6000_can_inline_p:, caller %s, callee %s, %s inline\\n\"", "\"can\"", "\"cannot\""], "File": "rs6000", "Func": "rs6000_can_inline_p", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3178, "Length": 211, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ix86_dep_by_shift_count", "(", "const_rtx", "set_insn", ",", "const_rtx", "use_insn", ")", "{", "return", "ix86_dep_by_shift_count_body", "(", "PATTERN", "(", "set_insn", ")", ",", "PATTERN", "(", "use_insn", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "destination", "reg", "of", "SET_INSN", "is", "shift", "count", "of", "USE_INSN", "."], "TS_V_token": ["i386"], "File": "i386", "Func": "ix86_dep_by_shift_count", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3179, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "MipsTargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "DebugLoc", "dl", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "getTargetMachine", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "RetCC_Mips", ")", ";", "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", ")", ")", ";", "}", "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": ["Mips", "Mips", "ISD::InputArg", "16", "Mips", "0", "1", "2", "0"], "File": "MipsISelLowering (2)3", "Func": "LowerCallResult", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3180, "Length": 170, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZInstrInfo", "::", "isProfitableToIfCvt", "(", "MachineBasicBlock", "&", "TMBB", ",", "unsigned", "NumCyclesT", ",", "unsigned", "ExtraPredCyclesT", ",", "MachineBasicBlock", "&", "FMBB", ",", "unsigned", "NumCyclesF", ",", "unsigned", "ExtraPredCyclesF", ",", "BranchProbability", "Probability", ")", "const", "{", "return", "false", ";", "}", ""], "natrual_language": ["Second", "variant", "of", "isProfitableToIfCvt", "."], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZInstrInfo (2)2", "Func": "isProfitableToIfCvt", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3181, "Length": 34, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "split_quadword_operands", "(", "rtx", "*", "operands", ",", "rtx", "*", "low", ",", "int", "n", "ATTRIBUTE_UNUSED", ")", "{", "int", "i", ";", "low", "[", "0", "]", "=", "low", "[", "1", "]", "=", "low", "[", "2", "]", "=", "0", ";", "for", "(", "i", "=", "0", ";", "i", "<", "3", ";", "i", "++", ")", "{", "if", "(", "low", "[", "i", "]", ")", ";", "else", "if", "(", "GET_CODE", "(", "operands", "[", "i", "]", ")", "==", "MEM", "&&", "(", "GET_CODE", "(", "XEXP", "(", "operands", "[", "i", "]", ",", "0", ")", ")", "==", "POST_INC", ")", ")", "{", "rtx", "addr", "=", "XEXP", "(", "operands", "[", "i", "]", ",", "0", ")", ";", "operands", "[", "i", "]", "=", "low", "[", "i", "]", "=", "gen_rtx_MEM", "(", "SImode", ",", "addr", ")", ";", "if", "(", "which_alternative", "==", "0", "&&", "i", "==", "0", ")", "{", "addr", "=", "XEXP", "(", "operands", "[", "i", "]", ",", "0", ")", ";", "operands", "[", "i", "+", "1", "]", "=", "low", "[", "i", "+", "1", "]", "=", "gen_rtx_MEM", "(", "SImode", ",", "addr", ")", ";", "}", "}", "else", "{", "low", "[", "i", "]", "=", "operand_subword", "(", "operands", "[", "i", "]", ",", "0", ",", "0", ",", "DImode", ")", ";", "operands", "[", "i", "]", "=", "operand_subword", "(", "operands", "[", "i", "]", ",", "1", ",", "0", ",", "DImode", ")", ";", "}", "}", "}", ""], "natrual_language": ["This", "is", "like", "nonimmediate_operand", "with", "a", "restriction", "on", "the", "type", "of", "MEM", "."], "TS_V_token": ["vax", "0", "1", "2", "0", "0", "3", "0", "0", "0", "0", "0", "1", "1", "0", "0", "1", "0"], "File": "vax3", "Func": "split_quadword_operands", "Target": "vax", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3182, "Length": 208, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "uint16_t", "name", "(", "struct", "InternalInstruction", "*", "insn", ",", "\\", "OperandType", "type", ",", "\\", "uint8_t", "index", ",", "\\", "uint8_t", "*", "valid", ")", "{", "\\", "*", "valid", "=", "1", ";", "\\", "switch", "(", "type", ")", "{", "\\", "default", ":", "\\", "debug", "(", "\"Unhandled register type\"", ")", ";", "\\", "*", "valid", "=", "0", ";", "\\", "return", "0", ";", "\\", "case", "TYPE_Rv", ":", "\\", "return", "base", "+", "index", ";", "\\", "case", "TYPE_R8", ":", "\\", "if", "(", "insn", "->", "rexPrefix", "&&", "\\", "index", ">=", "4", "&&", "index", "<=", "7", ")", "{", "\\", "return", "prefix", "##", "_SPL", "+", "(", "index", "-", "4", ")", ";", "\\", "}", "else", "{", "\\", "return", "prefix", "##", "_AL", "+", "index", ";", "\\", "}", "\\", "case", "TYPE_R16", ":", "\\", "return", "prefix", "##", "_AX", "+", "index", ";", "\\", "case", "TYPE_R32", ":", "\\", "return", "prefix", "##", "_EAX", "+", "index", ";", "\\", "case", "TYPE_R64", ":", "\\", "return", "prefix", "##", "_RAX", "+", "index", ";", "\\", "case", "TYPE_ZMM", ":", "\\", "return", "prefix", "##", "_ZMM0", "+", "index", ";", "\\", "case", "TYPE_YMM", ":", "\\", "return", "prefix", "##", "_YMM0", "+", "index", ";", "\\", "case", "TYPE_XMM", ":", "\\", "return", "prefix", "##", "_XMM0", "+", "index", ";", "\\", "case", "TYPE_VK", ":", "\\", "if", "(", "index", ">", "7", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_K0", "+", "index", ";", "\\", "case", "TYPE_MM64", ":", "\\", "return", "prefix", "##", "_MM0", "+", "(", "index", "&", "0x7", ")", ";", "\\", "case", "TYPE_SEGMENTREG", ":", "\\", "if", "(", "(", "index", "&", "7", ")", ">", "5", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_ES", "+", "(", "index", "&", "7", ")", ";", "\\", "case", "TYPE_DEBUGREG", ":", "\\", "return", "prefix", "##", "_DR0", "+", "index", ";", "\\", "case", "TYPE_CONTROLREG", ":", "\\", "return", "prefix", "##", "_CR0", "+", "index", ";", "\\", "case", "TYPE_BNDR", ":", "\\", "if", "(", "index", ">", "3", ")", "\\", "*", "valid", "=", "0", ";", "\\", "return", "prefix", "##", "_BND0", "+", "index", ";", "\\", "case", "TYPE_MVSIBX", ":", "\\", "return", "prefix", "##", "_XMM0", "+", "index", ";", "\\", "case", "TYPE_MVSIBY", ":", "\\", "return", "prefix", "##", "_YMM0", "+", "index", ";", "\\", "case", "TYPE_MVSIBZ", ":", "\\", "return", "prefix", "##", "_ZMM0", "+", "index", ";", "\\", "}", "\\", "}", ""], "natrual_language": ["Gets", "the", "name", "of", "the", "pass", "we", "are", "mixed", "into", "."], "TS_V_token": ["X86", "1", "\"Unhandled register type\"", "0", "0", "4", "7", "4", "7", "0", "0x7", "7", "5", "0", "7", "3", "0"], "File": "X86DisassemblerDecoder11", "Func": "name", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3183, "Length": 346, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_small_register_classes_for_mode_p", "(", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ")", "{", "return", "TARGET_MIPS16", ";", "}", ""], "natrual_language": ["Implement", "target", "hook", "small_register_classes_for_mode_p", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_small_register_classes_for_mode_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3184, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "enableShrinkWrapping", "(", "const", "MachineFunction", "&", "MF", ")", "const", "override", "{", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "will", "correctly", "handle", "shrink", "wrapping", "."], "TS_V_token": ["LC2200"], "File": "LC2200FrameLowering", "Func": "enableShrinkWrapping", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3185, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", "\"AArch64 Address Type Promotion\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["AArch64", "\"AArch64 Address Type Promotion\""], "File": "AArch64AddressTypePromotion4", "Func": "getPassName", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3186, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_xcoff_output_readwrite_section_asm_op", "(", "const", "void", "*", "directive", ")", "{", "fprintf", "(", "asm_out_file", ",", "\"\\t.csect %s[RW],%s\\n\"", ",", "*", "(", "const", "char", "*", "const", "*", ")", "directive", ",", "XCOFF_CSECT_DEFAULT_ALIGNMENT_STR", ")", ";", "}", ""], "natrual_language": ["Likewise", "for", "read-write", "sections", "."], "TS_V_token": ["powerpcspe", "\"\\t.csect %s[RW],%s\\n\""], "File": "powerpcspe", "Func": "rs6000_xcoff_output_readwrite_section_asm_op", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3187, "Length": 30, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "const", "X86TargetMachine", "*", "TM", "=", "static_cast", "<", "const", "X86TargetMachine", "*", ">", "(", "&", "MF", ".", "getTarget", "(", ")", ")", ";", "assert", "(", "!", "TM", "->", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "is64Bit", "(", ")", "&&", "\"X86-64 PIC uses RIP relative addressing\"", ")", ";", "if", "(", "TM", "->", "getRelocationModel", "(", ")", "!=", "Reloc", "::", "PIC_", ")", "return", "false", ";", "MachineBasicBlock", "&", "FirstMBB", "=", "MF", ".", "front", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "FirstMBB", ".", "begin", "(", ")", ";", "DebugLoc", "DL", "=", "FirstMBB", ".", "findDebugLoc", "(", "MBBI", ")", ";", "MachineRegisterInfo", "&", "RegInfo", "=", "MF", ".", "getRegInfo", "(", ")", ";", "const", "X86InstrInfo", "*", "TII", "=", "TM", "->", "getInstrInfo", "(", ")", ";", "unsigned", "PC", ";", "if", "(", "TM", "->", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "isPICStyleGOT", "(", ")", ")", "PC", "=", "RegInfo", ".", "createVirtualRegister", "(", "X86", "::", "GR32RegisterClass", ")", ";", "else", "PC", "=", "TII", "->", "getGlobalBaseReg", "(", "&", "MF", ")", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "X86", "::", "MOVPC32r", ")", ",", "PC", ")", ".", "addImm", "(", "0", ")", ";", "if", "(", "TM", "->", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "isPICStyleGOT", "(", ")", ")", "{", "unsigned", "GlobalBaseReg", "=", "TII", "->", "getGlobalBaseReg", "(", "&", "MF", ")", ";", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "DL", ",", "TII", "->", "get", "(", "X86", "::", "ADD32ri", ")", ",", "GlobalBaseReg", ")", ".", "addReg", "(", "PC", ")", ".", "addExternalSymbol", "(", "\"_GLOBAL_OFFSET_TABLE_\"", ",", "X86II", "::", "MO_GOT_ABSOLUTE_ADDRESS", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "\"X86-64 PIC uses RIP relative addressing\"", "X86", "X86", "X86::GR32RegisterClass", "X86::MOVPC32r", "0", "X86", "X86::ADD32ri", "\"_GLOBAL_OFFSET_TABLE_\"", "X86II::MO_GOT_ABSOLUTE_ADDRESS"], "File": "X86InstrInfo41", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3188, "Length": 246, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64FastISel", "::", "isTypeLegal", "(", "Type", "*", "Ty", ",", "MVT", "&", "VT", ")", "{", "EVT", "evt", "=", "TLI", ".", "getValueType", "(", "Ty", ",", "true", ")", ";", "if", "(", "evt", "==", "MVT", "::", "Other", "||", "!", "evt", ".", "isSimple", "(", ")", ")", "return", "false", ";", "VT", "=", "evt", ".", "getSimpleVT", "(", ")", ";", "if", "(", "VT", "==", "MVT", "::", "f128", ")", "return", "false", ";", "return", "TLI", ".", "isTypeLegal", "(", "VT", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "this", "type", "is", "legal", "."], "TS_V_token": ["AArch64", "AArch64", "MVT::Other", "MVT::f128"], "File": "AArch64FastISel1", "Func": "isTypeLegal", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3189, "Length": 72, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "nds32_fp_as_gp_check_available", "(", "void", ")", "{", "return", "0", ";", "}", ""], "natrual_language": ["Function", "to", "determine", "whether", "it", "is", "worth", "to", "do", "fp_as_gp", "optimization", ".", "Return", "0", ":", "It", "is", "NOT", "worth", "to", "do", "fp_as_gp", "optimization", ".", "Return", "1", ":", "It", "is", "APPROXIMATELY", "worth", "to", "do", "fp_as_gp", "optimization", ".", "Note", "that", "if", "it", "is", "worth", "to", "do", "fp_as_gp", "optimization", ",", "we", "MUST", "set", "FP_REGNUM", "ever", "live", "in", "this", "function", "."], "TS_V_token": ["nds32", "0"], "File": "nds32-fp-as-gp2", "Func": "nds32_fp_as_gp_check_available", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3190, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "supportSwiftError", "(", ")", "const", "override", "{", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "supports", "swifterror", "attribute", "."], "TS_V_token": ["SystemZ"], "File": "SystemZISelLowering", "Func": "supportSwiftError", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3191, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "CAHPInstPrinter", "::", "printRegName", "(", "raw_ostream", "&", "O", ",", "unsigned", "RegNo", ")", "const", "{", "O", "<<", "getRegisterName", "(", "RegNo", ")", ";", "}", ""], "natrual_language": ["Print", "the", "assembler", "register", "name", "."], "TS_V_token": ["CAHP", "CAHP"], "File": "CAHPInstPrinter", "Func": "printRegName", "Target": "CAHP", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3192, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "rs6000_build_builtin_va_list", "(", "void", ")", "{", "tree", "f_gpr", ",", "f_fpr", ",", "f_res", ",", "f_ovf", ",", "f_sav", ",", "record", ",", "type_decl", ";", "if", "(", "DEFAULT_ABI", "!=", "ABI_V4", ")", "return", "build_pointer_type", "(", "char_type_node", ")", ";", "record", "=", "(", "*", "lang_hooks", ".", "types", ".", "make_type", ")", "(", "RECORD_TYPE", ")", ";", "type_decl", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "TYPE_DECL", ",", "get_identifier", "(", "\"__va_list_tag\"", ")", ",", "record", ")", ";", "f_gpr", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "FIELD_DECL", ",", "get_identifier", "(", "\"gpr\"", ")", ",", "unsigned_char_type_node", ")", ";", "f_fpr", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "FIELD_DECL", ",", "get_identifier", "(", "\"fpr\"", ")", ",", "unsigned_char_type_node", ")", ";", "f_res", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "FIELD_DECL", ",", "get_identifier", "(", "\"reserved\"", ")", ",", "short_unsigned_type_node", ")", ";", "f_ovf", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "FIELD_DECL", ",", "get_identifier", "(", "\"overflow_arg_area\"", ")", ",", "ptr_type_node", ")", ";", "f_sav", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "FIELD_DECL", ",", "get_identifier", "(", "\"reg_save_area\"", ")", ",", "ptr_type_node", ")", ";", "va_list_gpr_counter_field", "=", "f_gpr", ";", "va_list_fpr_counter_field", "=", "f_fpr", ";", "DECL_FIELD_CONTEXT", "(", "f_gpr", ")", "=", "record", ";", "DECL_FIELD_CONTEXT", "(", "f_fpr", ")", "=", "record", ";", "DECL_FIELD_CONTEXT", "(", "f_res", ")", "=", "record", ";", "DECL_FIELD_CONTEXT", "(", "f_ovf", ")", "=", "record", ";", "DECL_FIELD_CONTEXT", "(", "f_sav", ")", "=", "record", ";", "TYPE_STUB_DECL", "(", "record", ")", "=", "type_decl", ";", "TYPE_NAME", "(", "record", ")", "=", "type_decl", ";", "TYPE_FIELDS", "(", "record", ")", "=", "f_gpr", ";", "DECL_CHAIN", "(", "f_gpr", ")", "=", "f_fpr", ";", "DECL_CHAIN", "(", "f_fpr", ")", "=", "f_res", ";", "DECL_CHAIN", "(", "f_res", ")", "=", "f_ovf", ";", "DECL_CHAIN", "(", "f_ovf", ")", "=", "f_sav", ";", "layout_type", "(", "record", ")", ";", "return", "build_array_type", "(", "record", ",", "build_index_type", "(", "size_zero_node", ")", ")", ";", "}", ""], "natrual_language": ["Create", "the", "va_list", "data", "type", "."], "TS_V_token": ["powerpcspe", "\"__va_list_tag\"", "\"gpr\"", "\"fpr\"", "\"reserved\"", "\"overflow_arg_area\"", "\"reg_save_area\""], "File": "powerpcspe", "Func": "rs6000_build_builtin_va_list", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3193, "Length": 253, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "addDomain", "(", "unsigned", "domain", ")", "{", "AvailableDomains", "|=", "1u", "<<", "domain", ";", "}", ""], "natrual_language": ["Mark", "domain", "as", "available", "."], "TS_V_token": ["X86", "1u"], "File": "SSEDomainFix", "Func": "addDomain", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3194, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "mips_expand_builtin_insn", "(", "enum", "insn_code", "icode", ",", "unsigned", "int", "nops", ",", "struct", "expand_operand", "*", "ops", ",", "bool", "has_target_p", ")", "{", "if", "(", "!", "maybe_expand_insn", "(", "icode", ",", "nops", ",", "ops", ")", ")", "{", "error", "(", "\"invalid argument to built-in function\"", ")", ";", "return", "has_target_p", "?", "gen_reg_rtx", "(", "ops", "[", "0", "]", ".", "mode", ")", ":", "const0_rtx", ";", "}", "return", "has_target_p", "?", "ops", "[", "0", "]", ".", "value", ":", "const0_rtx", ";", "}", ""], "natrual_language": ["Expand", "instruction", "ICODE", "as", "part", "of", "a", "built-in", "function", "sequence", ".", "Use", "the", "first", "NOPS", "elements", "of", "OPS", "as", "the", "instruction", "'s", "operands", ".", "HAS_TARGET_P", "is", "true", "if", "operand", "0", "is", "a", "target", ";", "it", "is", "false", "if", "the", "instruction", "has", "no", "target", ".", "Return", "the", "target", "rtx", "if", "HAS_TARGET_P", ",", "otherwise", "return", "const0_rtx", "."], "TS_V_token": ["mips", "\"invalid argument to built-in function\"", "0", "0"], "File": "mips4", "Func": "mips_expand_builtin_insn", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3195, "Length": 68, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64SpeculationHardening", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "!", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "Attribute", "::", "SpeculativeLoadHardening", ")", ")", "return", "false", ";", "MisspeculatingTaintReg", "=", "AArch64", "::", "X16", ";", "MisspeculatingTaintReg32Bit", "=", "AArch64", "::", "W16", ";", "TII", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "TRI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "RegsNeedingCSDBBeforeUse", ".", "resize", "(", "TRI", "->", "getNumRegs", "(", ")", ")", ";", "RegsAlreadyMasked", ".", "resize", "(", "TRI", "->", "getNumRegs", "(", ")", ")", ";", "UseControlFlowSpeculationBarrier", "=", "functionUsesHardeningRegister", "(", "MF", ")", ";", "bool", "Modified", "=", "false", ";", "if", "(", "HardenLoads", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** AArch64SpeculationHardening - automatic insertion of \"", "\"SpeculationSafeValue intrinsics *****\\n\"", ")", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "Modified", "|=", "slhLoads", "(", "MBB", ")", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** AArch64SpeculationHardening - track control flow *****\\n\"", ")", ";", "SmallVector", "<", "MachineBasicBlock", "*", ",", "2", ">", "EntryBlocks", ";", "EntryBlocks", ".", "push_back", "(", "&", "MF", ".", "front", "(", ")", ")", ";", "for", "(", "const", "LandingPadInfo", "&", "LPI", ":", "MF", ".", "getLandingPads", "(", ")", ")", "EntryBlocks", ".", "push_back", "(", "LPI", ".", "LandingPadBlock", ")", ";", "for", "(", "auto", "Entry", ":", "EntryBlocks", ")", "insertSPToRegTaintPropagation", "(", "Entry", ",", "Entry", "->", "SkipPHIsLabelsAndDebug", "(", "Entry", "->", "begin", "(", ")", ")", ")", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "Modified", "|=", "instrumentControlFlow", "(", "MBB", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** AArch64SpeculationHardening - Lowering \"", "\"SpeculationSafeValue Pseudos *****\\n\"", ")", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "Modified", "|=", "lowerSpeculationSafeValuePseudos", "(", "MBB", ")", ";", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::X16", "AArch64::W16", "\"***** AArch64SpeculationHardening - automatic insertion of \"", "\"SpeculationSafeValue intrinsics *****\\n\"", "\"***** AArch64SpeculationHardening - track control flow *****\\n\"", "2", "\"***** AArch64SpeculationHardening - Lowering \"", "\"SpeculationSafeValue Pseudos *****\\n\""], "File": "AArch64SpeculationHardening", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3196, "Length": 249, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMAsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "if", "(", "EnableMCInst", ")", "{", "printInstructionThroughMCStreamer", "(", "MI", ")", ";", "return", ";", "}", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "ARM", "::", "CONSTPOOL_ENTRY", ")", "EmitAlignment", "(", "2", ")", ";", "SmallString", "<", "128", ">", "Str", ";", "raw_svector_ostream", "OS", "(", "Str", ")", ";", "printInstruction", "(", "MI", ",", "OS", ")", ";", "OutStreamer", ".", "EmitRawText", "(", "OS", ".", "str", "(", ")", ")", ";", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "ARM", "::", "t2TBB", ")", "EmitAlignment", "(", "1", ")", ";", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["ARM", "ARM", "ARM::CONSTPOOL_ENTRY", "2", "128", "ARM::t2TBB", "1"], "File": "ARMAsmPrinter11", "Func": "EmitInstruction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3197, "Length": 89, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "setFrameAdjustment", "(", "MachineInstr", "&", "I", ",", "int64_t", "V", ")", "const", "{", "assert", "(", "isFrameInstr", "(", "I", ")", ")", ";", "I", ".", "getOperand", "(", "1", ")", ".", "setImm", "(", "V", ")", ";", "}", ""], "natrual_language": ["Sets", "the", "stack", "pointer", "adjustment", "made", "inside", "the", "frame", "made", "up", "by", "this", "instruction", "."], "TS_V_token": ["X86", "1"], "File": "X86InstrInfo73", "Func": "setFrameAdjustment", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3198, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_vector_mode_supported_p", "(", "machine_mode", "mode", ")", "{", "switch", "(", "mode", ")", "{", "case", "E_V2SFmode", ":", "return", "TARGET_PAIRED_SINGLE_FLOAT", ";", "case", "E_V2HImode", ":", "case", "E_V4QImode", ":", "case", "E_V2HQmode", ":", "case", "E_V2UHQmode", ":", "case", "E_V2HAmode", ":", "case", "E_V2UHAmode", ":", "case", "E_V4QQmode", ":", "case", "E_V4UQQmode", ":", "return", "TARGET_DSP", ";", "case", "E_V2SImode", ":", "case", "E_V4HImode", ":", "case", "E_V8QImode", ":", "return", "TARGET_LOONGSON_VECTORS", ";", "default", ":", "return", "MSA_SUPPORTED_MODE_P", "(", "mode", ")", ";", "}", "}", ""], "natrual_language": ["Target", "hook", "for", "vector_mode_supported_p", "."], "TS_V_token": ["mips"], "File": "mips7", "Func": "mips_vector_mode_supported_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3199, "Length": 68, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "emit_soft_tfmode_libcall", "(", "const", "char", "*", "func_name", ",", "int", "nargs", ",", "rtx", "*", "operands", ")", "{", "rtx", "ret_slot", "=", "NULL", ",", "arg", "[", "3", "]", ",", "func_sym", ";", "int", "i", ";", "gcc_assert", "(", "nargs", "==", "2", "||", "nargs", "==", "3", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "nargs", ";", "++", "i", ")", "{", "rtx", "this_arg", "=", "operands", "[", "i", "]", ";", "rtx", "this_slot", ";", "if", "(", "GET_MODE", "(", "this_arg", ")", "==", "TFmode", ")", "{", "int", "force_stack_temp", ";", "force_stack_temp", "=", "0", ";", "if", "(", "TARGET_BUGGY_QP_LIB", "&&", "i", "==", "0", ")", "force_stack_temp", "=", "1", ";", "if", "(", "GET_CODE", "(", "this_arg", ")", "==", "MEM", "&&", "!", "force_stack_temp", ")", "{", "tree", "expr", "=", "MEM_EXPR", "(", "this_arg", ")", ";", "if", "(", "expr", ")", "mark_addressable", "(", "expr", ")", ";", "this_arg", "=", "XEXP", "(", "this_arg", ",", "0", ")", ";", "}", "else", "if", "(", "CONSTANT_P", "(", "this_arg", ")", "&&", "!", "force_stack_temp", ")", "{", "this_slot", "=", "force_const_mem", "(", "TFmode", ",", "this_arg", ")", ";", "this_arg", "=", "XEXP", "(", "this_slot", ",", "0", ")", ";", "}", "else", "{", "this_slot", "=", "assign_stack_temp", "(", "TFmode", ",", "GET_MODE_SIZE", "(", "TFmode", ")", ")", ";", "if", "(", "i", ">", "0", ")", "emit_move_insn", "(", "this_slot", ",", "this_arg", ")", ";", "else", "ret_slot", "=", "this_slot", ";", "this_arg", "=", "XEXP", "(", "this_slot", ",", "0", ")", ";", "}", "}", "arg", "[", "i", "]", "=", "this_arg", ";", "}", "func_sym", "=", "gen_rtx_SYMBOL_REF", "(", "Pmode", ",", "func_name", ")", ";", "if", "(", "GET_MODE", "(", "operands", "[", "0", "]", ")", "==", "TFmode", ")", "{", "if", "(", "nargs", "==", "2", ")", "emit_library_call", "(", "func_sym", ",", "LCT_NORMAL", ",", "VOIDmode", ",", "arg", "[", "0", "]", ",", "GET_MODE", "(", "arg", "[", "0", "]", ")", ",", "arg", "[", "1", "]", ",", "GET_MODE", "(", "arg", "[", "1", "]", ")", ")", ";", "else", "emit_library_call", "(", "func_sym", ",", "LCT_NORMAL", ",", "VOIDmode", ",", "arg", "[", "0", "]", ",", "GET_MODE", "(", "arg", "[", "0", "]", ")", ",", "arg", "[", "1", "]", ",", "GET_MODE", "(", "arg", "[", "1", "]", ")", ",", "arg", "[", "2", "]", ",", "GET_MODE", "(", "arg", "[", "2", "]", ")", ")", ";", "if", "(", "ret_slot", ")", "emit_move_insn", "(", "operands", "[", "0", "]", ",", "ret_slot", ")", ";", "}", "else", "{", "rtx", "ret", ";", "gcc_assert", "(", "nargs", "==", "2", ")", ";", "ret", "=", "emit_library_call_value", "(", "func_sym", ",", "operands", "[", "0", "]", ",", "LCT_NORMAL", ",", "GET_MODE", "(", "operands", "[", "0", "]", ")", ",", "arg", "[", "1", "]", ",", "GET_MODE", "(", "arg", "[", "1", "]", ")", ")", ";", "if", "(", "ret", "!=", "operands", "[", "0", "]", ")", "emit_move_insn", "(", "operands", "[", "0", "]", ",", "ret", ")", ";", "}", "}", ""], "natrual_language": ["Generate", "a", "call", "to", "FUNC", "with", "OPERANDS", ".", "Operand", "0", "is", "the", "return", "value", ".", "Unlike", "normal", "calls", ",", "TFmode", "operands", "are", "passed", "by", "reference", ".", "It", "is", "assumed", "that", "no", "more", "than", "3", "operands", "are", "required", "."], "TS_V_token": ["sparc", "3", "2", "3", "0", "0", "0", "1", "0", "0", "0", "0", "0", "2", "0", "0", "1", "1", "0", "0", "1", "1", "2", "2", "0", "2", "0", "0", "1", "1", "0", "0"], "File": "sparc", "Func": "emit_soft_tfmode_libcall", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3200, "Length": 414, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "PPCTargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "0", ";", "case", "PPCISD", "::", "FSEL", ":", "return", "\"PPCISD::FSEL\"", ";", "case", "PPCISD", "::", "FCFID", ":", "return", "\"PPCISD::FCFID\"", ";", "case", "PPCISD", "::", "FCTIDZ", ":", "return", "\"PPCISD::FCTIDZ\"", ";", "case", "PPCISD", "::", "FCTIWZ", ":", "return", "\"PPCISD::FCTIWZ\"", ";", "case", "PPCISD", "::", "FRE", ":", "return", "\"PPCISD::FRE\"", ";", "case", "PPCISD", "::", "FRSQRTE", ":", "return", "\"PPCISD::FRSQRTE\"", ";", "case", "PPCISD", "::", "STFIWX", ":", "return", "\"PPCISD::STFIWX\"", ";", "case", "PPCISD", "::", "VMADDFP", ":", "return", "\"PPCISD::VMADDFP\"", ";", "case", "PPCISD", "::", "VNMSUBFP", ":", "return", "\"PPCISD::VNMSUBFP\"", ";", "case", "PPCISD", "::", "VPERM", ":", "return", "\"PPCISD::VPERM\"", ";", "case", "PPCISD", "::", "Hi", ":", "return", "\"PPCISD::Hi\"", ";", "case", "PPCISD", "::", "Lo", ":", "return", "\"PPCISD::Lo\"", ";", "case", "PPCISD", "::", "TOC_ENTRY", ":", "return", "\"PPCISD::TOC_ENTRY\"", ";", "case", "PPCISD", "::", "TOC_RESTORE", ":", "return", "\"PPCISD::TOC_RESTORE\"", ";", "case", "PPCISD", "::", "LOAD", ":", "return", "\"PPCISD::LOAD\"", ";", "case", "PPCISD", "::", "LOAD_TOC", ":", "return", "\"PPCISD::LOAD_TOC\"", ";", "case", "PPCISD", "::", "DYNALLOC", ":", "return", "\"PPCISD::DYNALLOC\"", ";", "case", "PPCISD", "::", "GlobalBaseReg", ":", "return", "\"PPCISD::GlobalBaseReg\"", ";", "case", "PPCISD", "::", "SRL", ":", "return", "\"PPCISD::SRL\"", ";", "case", "PPCISD", "::", "SRA", ":", "return", "\"PPCISD::SRA\"", ";", "case", "PPCISD", "::", "SHL", ":", "return", "\"PPCISD::SHL\"", ";", "case", "PPCISD", "::", "CALL", ":", "return", "\"PPCISD::CALL\"", ";", "case", "PPCISD", "::", "CALL_NOP", ":", "return", "\"PPCISD::CALL_NOP\"", ";", "case", "PPCISD", "::", "MTCTR", ":", "return", "\"PPCISD::MTCTR\"", ";", "case", "PPCISD", "::", "BCTRL", ":", "return", "\"PPCISD::BCTRL\"", ";", "case", "PPCISD", "::", "RET_FLAG", ":", "return", "\"PPCISD::RET_FLAG\"", ";", "case", "PPCISD", "::", "EH_SJLJ_SETJMP", ":", "return", "\"PPCISD::EH_SJLJ_SETJMP\"", ";", "case", "PPCISD", "::", "EH_SJLJ_LONGJMP", ":", "return", "\"PPCISD::EH_SJLJ_LONGJMP\"", ";", "case", "PPCISD", "::", "MFOCRF", ":", "return", "\"PPCISD::MFOCRF\"", ";", "case", "PPCISD", "::", "VCMP", ":", "return", "\"PPCISD::VCMP\"", ";", "case", "PPCISD", "::", "VCMPo", ":", "return", "\"PPCISD::VCMPo\"", ";", "case", "PPCISD", "::", "LBRX", ":", "return", "\"PPCISD::LBRX\"", ";", "case", "PPCISD", "::", "STBRX", ":", "return", "\"PPCISD::STBRX\"", ";", "case", "PPCISD", "::", "LARX", ":", "return", "\"PPCISD::LARX\"", ";", "case", "PPCISD", "::", "STCX", ":", "return", "\"PPCISD::STCX\"", ";", "case", "PPCISD", "::", "COND_BRANCH", ":", "return", "\"PPCISD::COND_BRANCH\"", ";", "case", "PPCISD", "::", "BDNZ", ":", "return", "\"PPCISD::BDNZ\"", ";", "case", "PPCISD", "::", "BDZ", ":", "return", "\"PPCISD::BDZ\"", ";", "case", "PPCISD", "::", "MFFS", ":", "return", "\"PPCISD::MFFS\"", ";", "case", "PPCISD", "::", "FADDRTZ", ":", "return", "\"PPCISD::FADDRTZ\"", ";", "case", "PPCISD", "::", "TC_RETURN", ":", "return", "\"PPCISD::TC_RETURN\"", ";", "case", "PPCISD", "::", "CR6SET", ":", "return", "\"PPCISD::CR6SET\"", ";", "case", "PPCISD", "::", "CR6UNSET", ":", "return", "\"PPCISD::CR6UNSET\"", ";", "case", "PPCISD", "::", "ADDIS_TOC_HA", ":", "return", "\"PPCISD::ADDIS_TOC_HA\"", ";", "case", "PPCISD", "::", "LD_TOC_L", ":", "return", "\"PPCISD::LD_TOC_L\"", ";", "case", "PPCISD", "::", "ADDI_TOC_L", ":", "return", "\"PPCISD::ADDI_TOC_L\"", ";", "case", "PPCISD", "::", "ADDIS_GOT_TPREL_HA", ":", "return", "\"PPCISD::ADDIS_GOT_TPREL_HA\"", ";", "case", "PPCISD", "::", "LD_GOT_TPREL_L", ":", "return", "\"PPCISD::LD_GOT_TPREL_L\"", ";", "case", "PPCISD", "::", "ADD_TLS", ":", "return", "\"PPCISD::ADD_TLS\"", ";", "case", "PPCISD", "::", "ADDIS_TLSGD_HA", ":", "return", "\"PPCISD::ADDIS_TLSGD_HA\"", ";", "case", "PPCISD", "::", "ADDI_TLSGD_L", ":", "return", "\"PPCISD::ADDI_TLSGD_L\"", ";", "case", "PPCISD", "::", "GET_TLS_ADDR", ":", "return", "\"PPCISD::GET_TLS_ADDR\"", ";", "case", "PPCISD", "::", "ADDIS_TLSLD_HA", ":", "return", "\"PPCISD::ADDIS_TLSLD_HA\"", ";", "case", "PPCISD", "::", "ADDI_TLSLD_L", ":", "return", "\"PPCISD::ADDI_TLSLD_L\"", ";", "case", "PPCISD", "::", "GET_TLSLD_ADDR", ":", "return", "\"PPCISD::GET_TLSLD_ADDR\"", ";", "case", "PPCISD", "::", "ADDIS_DTPREL_HA", ":", "return", "\"PPCISD::ADDIS_DTPREL_HA\"", ";", "case", "PPCISD", "::", "ADDI_DTPREL_L", ":", "return", "\"PPCISD::ADDI_DTPREL_L\"", ";", "case", "PPCISD", "::", "VADD_SPLAT", ":", "return", "\"PPCISD::VADD_SPLAT\"", ";", "case", "PPCISD", "::", "SC", ":", "return", "\"PPCISD::SC\"", ";", "}", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["PowerPC", "PPC", "0", "PPCISD::FSEL", "\"PPCISD::FSEL\"", "PPCISD::FCFID", "\"PPCISD::FCFID\"", "PPCISD::FCTIDZ", "\"PPCISD::FCTIDZ\"", "PPCISD::FCTIWZ", "\"PPCISD::FCTIWZ\"", "PPCISD::FRE", "\"PPCISD::FRE\"", "PPCISD::FRSQRTE", "\"PPCISD::FRSQRTE\"", "PPCISD::STFIWX", "\"PPCISD::STFIWX\"", "PPCISD::VMADDFP", "\"PPCISD::VMADDFP\"", "PPCISD::VNMSUBFP", "\"PPCISD::VNMSUBFP\"", "PPCISD::VPERM", "\"PPCISD::VPERM\"", "PPCISD::Hi", "\"PPCISD::Hi\"", "PPCISD::Lo", "\"PPCISD::Lo\"", "PPCISD::TOC_ENTRY", "\"PPCISD::TOC_ENTRY\"", "PPCISD::TOC_RESTORE", "\"PPCISD::TOC_RESTORE\"", "PPCISD::LOAD", "\"PPCISD::LOAD\"", "PPCISD::LOAD_TOC", "\"PPCISD::LOAD_TOC\"", "PPCISD::DYNALLOC", "\"PPCISD::DYNALLOC\"", "PPCISD::GlobalBaseReg", "\"PPCISD::GlobalBaseReg\"", "PPCISD::SRL", "\"PPCISD::SRL\"", "PPCISD::SRA", "\"PPCISD::SRA\"", "PPCISD::SHL", "\"PPCISD::SHL\"", "PPCISD::CALL", "\"PPCISD::CALL\"", "PPCISD::CALL_NOP", "\"PPCISD::CALL_NOP\"", "PPCISD::MTCTR", "\"PPCISD::MTCTR\"", "PPCISD::BCTRL", "\"PPCISD::BCTRL\"", "PPCISD::RET_FLAG", "\"PPCISD::RET_FLAG\"", "PPCISD::EH_SJLJ_SETJMP", "\"PPCISD::EH_SJLJ_SETJMP\"", "PPCISD::EH_SJLJ_LONGJMP", "\"PPCISD::EH_SJLJ_LONGJMP\"", "PPCISD::MFOCRF", "\"PPCISD::MFOCRF\"", "PPCISD::VCMP", "\"PPCISD::VCMP\"", "PPCISD::VCMPo", "\"PPCISD::VCMPo\"", "PPCISD::LBRX", "\"PPCISD::LBRX\"", "PPCISD::STBRX", "\"PPCISD::STBRX\"", "PPCISD::LARX", "\"PPCISD::LARX\"", "PPCISD::STCX", "\"PPCISD::STCX\"", "PPCISD::COND_BRANCH", "\"PPCISD::COND_BRANCH\"", "PPCISD::BDNZ", "\"PPCISD::BDNZ\"", "PPCISD::BDZ", "\"PPCISD::BDZ\"", "PPCISD::MFFS", "\"PPCISD::MFFS\"", "PPCISD::FADDRTZ", "\"PPCISD::FADDRTZ\"", "PPCISD::TC_RETURN", "\"PPCISD::TC_RETURN\"", "PPCISD::CR6SET", "\"PPCISD::CR6SET\"", "PPCISD::CR6UNSET", "\"PPCISD::CR6UNSET\"", "PPCISD::ADDIS_TOC_HA", "\"PPCISD::ADDIS_TOC_HA\"", "PPCISD::LD_TOC_L", "\"PPCISD::LD_TOC_L\"", "PPCISD::ADDI_TOC_L", "\"PPCISD::ADDI_TOC_L\"", "PPCISD::ADDIS_GOT_TPREL_HA", "\"PPCISD::ADDIS_GOT_TPREL_HA\"", "PPCISD::LD_GOT_TPREL_L", "\"PPCISD::LD_GOT_TPREL_L\"", "PPCISD::ADD_TLS", "\"PPCISD::ADD_TLS\"", "PPCISD::ADDIS_TLSGD_HA", "\"PPCISD::ADDIS_TLSGD_HA\"", "PPCISD::ADDI_TLSGD_L", "\"PPCISD::ADDI_TLSGD_L\"", "PPCISD::GET_TLS_ADDR", "\"PPCISD::GET_TLS_ADDR\"", "PPCISD::ADDIS_TLSLD_HA", "\"PPCISD::ADDIS_TLSLD_HA\"", "PPCISD::ADDI_TLSLD_L", "\"PPCISD::ADDI_TLSLD_L\"", "PPCISD::GET_TLSLD_ADDR", "\"PPCISD::GET_TLSLD_ADDR\"", "PPCISD::ADDIS_DTPREL_HA", "\"PPCISD::ADDIS_DTPREL_HA\"", "PPCISD::ADDI_DTPREL_L", "\"PPCISD::ADDI_DTPREL_L\"", "PPCISD::VADD_SPLAT", "\"PPCISD::VADD_SPLAT\"", "PPCISD::SC", "\"PPCISD::SC\""], "File": "PPCISelLowering (2)1", "Func": "getTargetNodeName", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3201, "Length": 496, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCRegisterInfo", "::", "hasReservedSpillSlot", "(", "const", "MachineFunction", "&", "MF", ",", "unsigned", "Reg", ",", "int", "&", "FrameIdx", ")", "const", "{", "if", "(", "PPC", "::", "CR2", "<=", "Reg", "&&", "Reg", "<=", "PPC", "::", "CR4", ")", "{", "FrameIdx", "=", "MF", ".", "getInfo", "<", "PPCFunctionInfo", ">", "(", ")", "->", "getCRSpillFrameIndex", "(", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "target", "has", "reserved", "a", "spill", "slot", "in", "the", "stack", "frame", "of", "the", "given", "function", "for", "the", "specified", "register", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::CR2", "PPC::CR4", "PPC"], "File": "PPCRegisterInfo44", "Func": "hasReservedSpillSlot", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3202, "Length": 57, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getNumFixupKinds", "(", ")", "const", "{", "return", "7", ";", "}", ""], "natrual_language": ["Get", "the", "number", "of", "target", "specific", "fixup", "kinds", "."], "TS_V_token": ["X86", "7"], "File": "X86MCCodeEmitter25", "Func": "getNumFixupKinds", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3203, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "inline", "bool", "isKMergeMasked", "(", "uint64_t", "TSFlags", ")", "{", "return", "isKMasked", "(", "TSFlags", ")", "&&", "(", "TSFlags", "&", "X86II", "::", "EVEX_Z", ")", "==", "0", ";", "}", ""], "natrual_language": ["Returns", "true", "iff", "the", "group", "of", "FMA", "opcodes", "holds", "k-merge-masked", "opcodes", "."], "TS_V_token": ["X86", "X86II::EVEX_Z", "0"], "File": "X86BaseInfo11", "Func": "isKMergeMasked", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3204, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tls_model", "or1k_tls_symbolic_operand", "(", "rtx", "op", ")", "{", "rtx", "sym", ",", "addend", ";", "split_const", "(", "op", ",", "&", "sym", ",", "&", "addend", ")", ";", "if", "(", "SYMBOL_REF_P", "(", "sym", ")", ")", "return", "SYMBOL_REF_TLS_MODEL", "(", "sym", ")", ";", "return", "TLS_MODEL_NONE", ";", "}", ""], "natrual_language": ["Return", "the", "TLS", "type", "for", "TLS", "symbols", ",", "0", "otherwise", "."], "TS_V_token": ["or1k"], "File": "or1k", "Func": "or1k_tls_symbolic_operand", "Target": "or1k", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3205, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "EVT", "MipsTargetLowering", "::", "getOptimalMemOpType", "(", "uint64_t", "Size", ",", "unsigned", "DstAlign", ",", "unsigned", "SrcAlign", ",", "bool", "IsMemset", ",", "bool", "ZeroMemset", ",", "bool", "MemcpyStrSrc", ",", "MachineFunction", "&", "MF", ")", "const", "{", "if", "(", "Subtarget", ".", "hasMips64", "(", ")", ")", "return", "MVT", "::", "i64", ";", "return", "MVT", "::", "i32", ";", "}", ""], "natrual_language": ["It", "returns", "EVT", ":", ":Other", "if", "the", "type", "should", "be", "determined", "using", "generic", "target-independent", "logic", "."], "TS_V_token": ["Mips", "Mips", "Mips", "MVT::i64", "MVT::i32"], "File": "MipsISelLowering (2)5", "Func": "getOptimalMemOpType", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3206, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86TargetLowering", "::", "insertCopiesSplitCSR", "(", "MachineBasicBlock", "*", "Entry", ",", "const", "SmallVectorImpl", "<", "MachineBasicBlock", "*", ">", "&", "Exits", ")", "const", "{", "const", "X86RegisterInfo", "*", "TRI", "=", "Subtarget", "->", "getRegisterInfo", "(", ")", ";", "const", "MCPhysReg", "*", "IStart", "=", "TRI", "->", "getCalleeSavedRegsViaCopy", "(", "Entry", "->", "getParent", "(", ")", ")", ";", "if", "(", "!", "IStart", ")", "return", ";", "const", "TargetInstrInfo", "*", "TII", "=", "Subtarget", "->", "getInstrInfo", "(", ")", ";", "MachineRegisterInfo", "*", "MRI", "=", "&", "Entry", "->", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "Entry", "->", "begin", "(", ")", ";", "for", "(", "const", "MCPhysReg", "*", "I", "=", "IStart", ";", "*", "I", ";", "++", "I", ")", "{", "const", "TargetRegisterClass", "*", "RC", "=", "nullptr", ";", "if", "(", "X86", "::", "GR64RegClass", ".", "contains", "(", "*", "I", ")", ")", "RC", "=", "&", "X86", "::", "GR64RegClass", ";", "else", "llvm_unreachable", "(", "\"Unexpected register class in CSRsViaCopy!\"", ")", ";", "unsigned", "NewVR", "=", "MRI", "->", "createVirtualRegister", "(", "RC", ")", ";", "assert", "(", "Entry", "->", "getParent", "(", ")", "->", "getFunction", "(", ")", "->", "hasFnAttribute", "(", "Attribute", "::", "NoUnwind", ")", "&&", "\"Function should be nounwind in insertCopiesSplitCSR!\"", ")", ";", "Entry", "->", "addLiveIn", "(", "*", "I", ")", ";", "BuildMI", "(", "*", "Entry", ",", "MBBI", ",", "DebugLoc", "(", ")", ",", "TII", "->", "get", "(", "TargetOpcode", "::", "COPY", ")", ",", "NewVR", ")", ".", "addReg", "(", "*", "I", ")", ";", "for", "(", "auto", "*", "Exit", ":", "Exits", ")", "BuildMI", "(", "*", "Exit", ",", "Exit", "->", "getFirstTerminator", "(", ")", ",", "DebugLoc", "(", ")", ",", "TII", "->", "get", "(", "TargetOpcode", "::", "COPY", ")", ",", "*", "I", ")", ".", "addReg", "(", "NewVR", ")", ";", "}", "}", ""], "natrual_language": ["Insert", "explicit", "copies", "in", "entry", "and", "exit", "blocks", "."], "TS_V_token": ["X86", "X86", "X86", "X86::GR64RegClass", "X86::GR64RegClass", "\"Unexpected register class in CSRsViaCopy!\"", "\"Function should be nounwind in insertCopiesSplitCSR!\""], "File": "X86ISelLowering197", "Func": "insertCopiesSplitCSR", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3207, "Length": 251, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ia64_legitimate_constant_p", "(", "machine_mode", "mode", ",", "rtx", "x", ")", "{", "switch", "(", "GET_CODE", "(", "x", ")", ")", "{", "case", "CONST_INT", ":", "case", "LABEL_REF", ":", "return", "true", ";", "case", "CONST_DOUBLE", ":", "if", "(", "GET_MODE", "(", "x", ")", "==", "VOIDmode", "||", "mode", "==", "SFmode", "||", "mode", "==", "DFmode", ")", "return", "true", ";", "return", "satisfies_constraint_G", "(", "x", ")", ";", "case", "CONST", ":", "case", "SYMBOL_REF", ":", "if", "(", "tls_symbolic_operand_type", "(", "x", ")", "==", "0", ")", "{", "HOST_WIDE_INT", "addend", "=", "0", ";", "rtx", "op", "=", "x", ";", "if", "(", "GET_CODE", "(", "op", ")", "==", "CONST", "&&", "GET_CODE", "(", "XEXP", "(", "op", ",", "0", ")", ")", "==", "PLUS", "&&", "GET_CODE", "(", "XEXP", "(", "XEXP", "(", "op", ",", "0", ")", ",", "1", ")", ")", "==", "CONST_INT", ")", "{", "addend", "=", "INTVAL", "(", "XEXP", "(", "XEXP", "(", "op", ",", "0", ")", ",", "1", ")", ")", ";", "op", "=", "XEXP", "(", "XEXP", "(", "op", ",", "0", ")", ",", "0", ")", ";", "}", "if", "(", "any_offset_symbol_operand", "(", "op", ",", "mode", ")", "||", "function_operand", "(", "op", ",", "mode", ")", ")", "return", "true", ";", "if", "(", "aligned_offset_symbol_operand", "(", "op", ",", "mode", ")", ")", "return", "(", "addend", "&", "0x3fff", ")", "==", "0", ";", "return", "false", ";", "}", "return", "false", ";", "case", "CONST_VECTOR", ":", "if", "(", "mode", "==", "V2SFmode", ")", "return", "satisfies_constraint_Y", "(", "x", ")", ";", "return", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_VECTOR_INT", "&&", "GET_MODE_SIZE", "(", "mode", ")", "<=", "8", ")", ";", "default", ":", "return", "false", ";", "}", "}", ""], "natrual_language": ["Return", "true", "if", "X", "is", "a", "constant", "that", "is", "valid", "for", "some", "immediate", "field", "in", "an", "instruction", "."], "TS_V_token": ["ia64", "0", "0", "0", "0", "1", "0", "1", "0", "0", "0x3fff", "0", "8"], "File": "ia64", "Func": "ia64_legitimate_constant_p", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3208, "Length": 237, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "set_ix86_tune_features", "(", "struct", "gcc_options", "*", "opts", ",", "enum", "processor_type", "ix86_tune", ",", "bool", "dump", ")", "{", "unsigned", "HOST_WIDE_INT", "ix86_tune_mask", "=", "HOST_WIDE_INT_1U", "<<", "ix86_tune", ";", "int", "i", ";", "for", "(", "i", "=", "0", ";", "i", "<", "X86_TUNE_LAST", ";", "++", "i", ")", "{", "if", "(", "ix86_tune_no_default", ")", "ix86_tune_features", "[", "i", "]", "=", "0", ";", "else", "ix86_tune_features", "[", "i", "]", "=", "!", "!", "(", "initial_ix86_tune_features", "[", "i", "]", "&", "ix86_tune_mask", ")", ";", "}", "if", "(", "dump", ")", "{", "fprintf", "(", "stderr", ",", "\"List of x86 specific tuning parameter names:\\n\"", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "X86_TUNE_LAST", ";", "i", "++", ")", "fprintf", "(", "stderr", ",", "\"%s : %s\\n\"", ",", "ix86_tune_feature_names", "[", "i", "]", ",", "ix86_tune_features", "[", "i", "]", "?", "\"on\"", ":", "\"off\"", ")", ";", "}", "parse_mtune_ctrl_str", "(", "opts", ",", "dump", ")", ";", "}", ""], "natrual_language": ["Helper", "function", "to", "set", "ix86_tune_features", ".", "IX86_TUNE", "is", "the", "processor", "type", "."], "TS_V_token": ["i386", "0", "0", "\"List of x86 specific tuning parameter names:\\n\"", "0", "\"%s : %s\\n\"", "\"on\"", "\"off\""], "File": "i386-options", "Func": "set_ix86_tune_features", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3209, "Length": 126, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isFMAFasterThanFMulAndFAdd", "(", "const", "MachineFunction", "&", "MF", ",", "EVT", "VT", ")", "const", "{", "if", "(", "!", "Subtarget", ".", "hasAnyFMA", "(", ")", ")", "return", "false", ";", "VT", "=", "VT", ".", "getScalarType", "(", ")", ";", "if", "(", "!", "VT", ".", "isSimple", "(", ")", ")", "return", "false", ";", "switch", "(", "VT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ")", "{", "case", "MVT", "::", "f32", ":", "case", "MVT", "::", "f64", ":", "return", "true", ";", "default", ":", "break", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "an", "FMA", "operation", "is", "faster", "than", "a", "pair", "of", "fmul", "and", "fadd", "instructions", "."], "TS_V_token": ["X86", "X86", "MVT::f32", "MVT::f64"], "File": "X86ISelLowering (2)6", "Func": "isFMAFasterThanFMulAndFAdd", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3210, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "altivec_expand_stvx_be", "(", "rtx", "op0", ",", "rtx", "op1", ",", "machine_mode", "mode", ",", "unsigned", "unspec", ")", "{", "rtx", "tmp", "=", "gen_reg_rtx", "(", "mode", ")", ";", "rtx", "store", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "op0", ",", "tmp", ")", ";", "rtx", "stvx", "=", "gen_rtx_UNSPEC", "(", "mode", ",", "gen_rtvec", "(", "1", ",", "const0_rtx", ")", ",", "unspec", ")", ";", "rtx", "par", "=", "gen_rtx_PARALLEL", "(", "mode", ",", "gen_rtvec", "(", "2", ",", "store", ",", "stvx", ")", ")", ";", "rtx", "sel", "=", "swap_selector_for_mode", "(", "mode", ")", ";", "rtx", "vperm", ";", "gcc_assert", "(", "REG_P", "(", "op1", ")", ")", ";", "vperm", "=", "gen_rtx_UNSPEC", "(", "mode", ",", "gen_rtvec", "(", "3", ",", "op1", ",", "op1", ",", "sel", ")", ",", "UNSPEC_VPERM", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "tmp", ",", "vperm", ")", ")", ";", "emit_insn", "(", "par", ")", ";", "}", ""], "natrual_language": ["Generate", "code", "for", "a", "``", "stvx", "''", "or", "``", "stvxl", "''", "built-in", "for", "a", "little", "endian", "target", "with", "-maltivec=be", "specified", ".", "Issue", "the", "store", "preceded", "by", "an", "element-reversing", "permute", "."], "TS_V_token": ["rs6000", "1", "2", "3"], "File": "rs60004", "Func": "altivec_expand_stvx_be", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3211, "Length": 127, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMTargetLowering", "::", "allowsMisalignedMemoryAccesses", "(", "EVT", "VT", ",", "unsigned", ",", "unsigned", ",", "bool", "*", "Fast", ")", "const", "{", "bool", "AllowsUnaligned", "=", "Subtarget", "->", "allowsUnalignedMem", "(", ")", ";", "switch", "(", "VT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ")", "{", "default", ":", "return", "false", ";", "case", "MVT", "::", "i8", ":", "case", "MVT", "::", "i16", ":", "case", "MVT", "::", "i32", ":", "{", "if", "(", "AllowsUnaligned", ")", "{", "if", "(", "Fast", ")", "*", "Fast", "=", "Subtarget", "->", "hasV7Ops", "(", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", "case", "MVT", "::", "f64", ":", "case", "MVT", "::", "v2f64", ":", "{", "if", "(", "Subtarget", "->", "hasNEON", "(", ")", "&&", "(", "AllowsUnaligned", "||", "isLittleEndian", "(", ")", ")", ")", "{", "if", "(", "Fast", ")", "*", "Fast", "=", "true", ";", "return", "true", ";", "}", "return", "false", ";", "}", "}", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "allows", "unaligned", "memory", "accesses", "of", "the", "specified", "type", "."], "TS_V_token": ["ARM", "ARM", "MVT::i8", "MVT::i16", "MVT::i32", "MVT::f64", "MVT::v2f64"], "File": "ARMISelLowering (2)3", "Func": "allowsMisalignedMemoryAccesses", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3212, "Length": 132, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "AArch64TargetLowering", "::", "ConstraintType", "AArch64TargetLowering", "::", "getConstraintType", "(", "StringRef", "Constraint", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "default", ":", "break", ";", "case", "'x'", ":", "case", "'w'", ":", "return", "C_RegisterClass", ";", "case", "'Q'", ":", "return", "C_Memory", ";", "case", "'I'", ":", "case", "'J'", ":", "case", "'K'", ":", "case", "'L'", ":", "case", "'M'", ":", "case", "'N'", ":", "case", "'Y'", ":", "case", "'Z'", ":", "return", "C_Immediate", ";", "case", "'z'", ":", "case", "'S'", ":", "return", "C_Other", ";", "}", "}", "return", "TargetLowering", "::", "getConstraintType", "(", "Constraint", ")", ";", "}", ""], "natrual_language": ["Given", "a", "constraint", "letter", ",", "return", "the", "type", "of", "constraint", "for", "this", "target", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "1", "0"], "File": "AArch64ISelLowering155", "Func": "getConstraintType", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3213, "Length": 97, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMOperand", "::", "dump", "(", "raw_ostream", "&", "OS", ")", "const", "{", "switch", "(", "Kind", ")", "{", "case", "CondCode", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "CCOut", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "CoprocNum", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "CoprocReg", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "MSRMask", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "Immediate", ":", "getImm", "(", ")", "->", "print", "(", "OS", ")", ";", "break", ";", "case", "MemBarrierOpt", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "Memory", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "ProcIFlags", ":", "{", "OS", "<<", "\"=", "0", ";", "--", "i", ")", "if", "(", "IFlags", "&", "(", "1", "<<", "i", ")", ")", "OS", "<<", "ARM_PROC", "::", "IFlagsToString", "(", "1", "<<", "i", ")", ";", "OS", "<<", "\">\"", ";", "break", ";", "}", "case", "Register", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "Shifter", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "RegisterList", ":", "case", "DPRRegisterList", ":", "case", "SPRRegisterList", ":", "{", "OS", "<<", "\"", "&", "RegList", "=", "getRegList", "(", ")", ";", "for", "(", "SmallVectorImpl", "<", "unsigned", ">", "::", "const_iterator", "I", "=", "RegList", ".", "begin", "(", ")", ",", "E", "=", "RegList", ".", "end", "(", ")", ";", "I", "!=", "E", ";", ")", "{", "OS", "<<", "*", "I", ";", "if", "(", "++", "I", "<", "E", ")", "OS", "<<", "\", \"", ";", "}", "OS", "<<", "\">\"", ";", "break", ";", "}", "case", "Token", ":", "OS", "<<", "\"'\"", "<<", "getToken", "(", ")", "<<", "\"'\"", ";", "break", ";", "}", "}", ""], "natrual_language": ["Dump", "the", "plan", "to", "stderr", "(", "for", "debugging", ")", "."], "TS_V_token": ["ARM", "ARM", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"'\"", "\"'\""], "File": "ARMAsmParser35", "Func": "dump", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3214, "Length": 435, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsRegisterBankInfo", "::", "setRegBank", "(", "MachineInstr", "&", "MI", ",", "MachineRegisterInfo", "&", "MRI", ")", "const", "{", "Register", "Dest", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "case", "TargetOpcode", "::", "G_STORE", ":", "break", ";", "case", "TargetOpcode", "::", "G_CONSTANT", ":", "case", "TargetOpcode", "::", "G_LOAD", ":", "case", "TargetOpcode", "::", "G_SELECT", ":", "case", "TargetOpcode", "::", "G_PHI", ":", "case", "TargetOpcode", "::", "G_IMPLICIT_DEF", ":", "{", "assert", "(", "MRI", ".", "getType", "(", "Dest", ")", "==", "LLT", "::", "scalar", "(", "32", ")", "&&", "\"Unexpected operand type.\"", ")", ";", "MRI", ".", "setRegBank", "(", "Dest", ",", "getRegBank", "(", "Mips", "::", "GPRBRegBankID", ")", ")", ";", "break", ";", "}", "case", "TargetOpcode", "::", "G_PTR_ADD", ":", "{", "assert", "(", "MRI", ".", "getType", "(", "Dest", ")", ".", "isPointer", "(", ")", "&&", "\"Unexpected operand type.\"", ")", ";", "MRI", ".", "setRegBank", "(", "Dest", ",", "getRegBank", "(", "Mips", "::", "GPRBRegBankID", ")", ")", ";", "break", ";", "}", "default", ":", "llvm_unreachable", "(", "\"Unexpected opcode.\"", ")", ";", "}", "}", ""], "natrual_language": ["RegBankSelect", "determined", "that", "s64", "operand", "is", "better", "to", "be", "split", "into", "two", "s32", "operands", "in", "gprb", "."], "TS_V_token": ["Mips", "Mips", "0", "32", "\"Unexpected operand type.\"", "Mips::GPRBRegBankID", "\"Unexpected operand type.\"", "Mips::GPRBRegBankID", "\"Unexpected opcode.\""], "File": "MipsRegisterBankInfo10", "Func": "setRegBank", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3215, "Length": 155, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64PassConfig", "::", "addPostRegAlloc", "(", ")", "{", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "EnableDeadRegisterElimination", ")", "addPass", "(", "createAArch64DeadRegisterDefinitions", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "after", "register", "allocation", "pass", "pipeline", "but", "before", "prolog-epilog", "insertion", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64"], "File": "AArch64TargetMachine3", "Func": "addPostRegAlloc", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3216, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_trampoline_init", "(", "rtx", "m_tramp", ",", "tree", "fndecl", ",", "rtx", "chain_value", ")", "{", "rtx", "mem", ",", "fnaddr", ";", "int", "opcode", ";", "int", "offset", "=", "0", ";", "fnaddr", "=", "XEXP", "(", "DECL_RTL", "(", "fndecl", ")", ",", "0", ")", ";", "if", "(", "TARGET_64BIT", ")", "{", "int", "size", ";", "if", "(", "ptr_mode", "==", "SImode", "||", "x86_64_zext_immediate_operand", "(", "fnaddr", ",", "VOIDmode", ")", ")", "{", "fnaddr", "=", "copy_addr_to_reg", "(", "fnaddr", ")", ";", "mem", "=", "adjust_address", "(", "m_tramp", ",", "HImode", ",", "offset", ")", ";", "emit_move_insn", "(", "mem", ",", "gen_int_mode", "(", "0xbb41", ",", "HImode", ")", ")", ";", "mem", "=", "adjust_address", "(", "m_tramp", ",", "SImode", ",", "offset", "+", "2", ")", ";", "emit_move_insn", "(", "mem", ",", "gen_lowpart", "(", "SImode", ",", "fnaddr", ")", ")", ";", "offset", "+=", "6", ";", "}", "else", "{", "mem", "=", "adjust_address", "(", "m_tramp", ",", "HImode", ",", "offset", ")", ";", "emit_move_insn", "(", "mem", ",", "gen_int_mode", "(", "0xbb49", ",", "HImode", ")", ")", ";", "mem", "=", "adjust_address", "(", "m_tramp", ",", "DImode", ",", "offset", "+", "2", ")", ";", "emit_move_insn", "(", "mem", ",", "fnaddr", ")", ";", "offset", "+=", "10", ";", "}", "if", "(", "ptr_mode", "==", "SImode", ")", "{", "opcode", "=", "0xba41", ";", "size", "=", "6", ";", "}", "else", "{", "opcode", "=", "0xba49", ";", "size", "=", "10", ";", "}", "mem", "=", "adjust_address", "(", "m_tramp", ",", "HImode", ",", "offset", ")", ";", "emit_move_insn", "(", "mem", ",", "gen_int_mode", "(", "opcode", ",", "HImode", ")", ")", ";", "mem", "=", "adjust_address", "(", "m_tramp", ",", "ptr_mode", ",", "offset", "+", "2", ")", ";", "emit_move_insn", "(", "mem", ",", "chain_value", ")", ";", "offset", "+=", "size", ";", "mem", "=", "adjust_address", "(", "m_tramp", ",", "SImode", ",", "offset", ")", ";", "emit_move_insn", "(", "mem", ",", "gen_int_mode", "(", "0x90e3ff49", ",", "SImode", ")", ")", ";", "offset", "+=", "4", ";", "}", "else", "{", "rtx", "disp", ",", "chain", ";", "chain", "=", "ix86_static_chain", "(", "fndecl", ",", "true", ")", ";", "if", "(", "REG_P", "(", "chain", ")", ")", "{", "switch", "(", "REGNO", "(", "chain", ")", ")", "{", "case", "AX_REG", ":", "opcode", "=", "0xb8", ";", "break", ";", "case", "CX_REG", ":", "opcode", "=", "0xb9", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "else", "opcode", "=", "0x68", ";", "mem", "=", "adjust_address", "(", "m_tramp", ",", "QImode", ",", "offset", ")", ";", "emit_move_insn", "(", "mem", ",", "gen_int_mode", "(", "opcode", ",", "QImode", ")", ")", ";", "mem", "=", "adjust_address", "(", "m_tramp", ",", "SImode", ",", "offset", "+", "1", ")", ";", "emit_move_insn", "(", "mem", ",", "chain_value", ")", ";", "offset", "+=", "5", ";", "mem", "=", "adjust_address", "(", "m_tramp", ",", "QImode", ",", "offset", ")", ";", "emit_move_insn", "(", "mem", ",", "gen_int_mode", "(", "0xe9", ",", "QImode", ")", ")", ";", "mem", "=", "adjust_address", "(", "m_tramp", ",", "SImode", ",", "offset", "+", "1", ")", ";", "offset", "+=", "5", ";", "disp", "=", "expand_binop", "(", "SImode", ",", "sub_optab", ",", "fnaddr", ",", "plus_constant", "(", "Pmode", ",", "XEXP", "(", "m_tramp", ",", "0", ")", ",", "offset", "-", "(", "MEM_P", "(", "chain", ")", "?", "1", ":", "0", ")", ")", ",", "NULL_RTX", ",", "1", ",", "OPTAB_DIRECT", ")", ";", "emit_move_insn", "(", "mem", ",", "disp", ")", ";", "}", "gcc_assert", "(", "offset", "<=", "TRAMPOLINE_SIZE", ")", ";", "if", "(", "CHECK_EXECUTE_STACK_ENABLED", ")", "emit_library_call", "(", "gen_rtx_SYMBOL_REF", "(", "Pmode", ",", "\"__enable_execute_stack\"", ")", ",", "LCT_NORMAL", ",", "VOIDmode", ",", "1", ",", "XEXP", "(", "m_tramp", ",", "0", ")", ",", "Pmode", ")", ";", "}", ""], "natrual_language": ["Emit", "RTL", "insns", "to", "initialize", "the", "variable", "parts", "of", "a", "trampoline", ".", "FNDECL", "is", "the", "decl", "of", "the", "target", "address", ";", "M_TRAMP", "is", "a", "MEM", "for", "the", "trampoline", ",", "and", "CHAIN_VALUE", "is", "an", "RTX", "for", "the", "static", "chain", "to", "be", "passed", "to", "the", "target", "function", "."], "TS_V_token": ["i386", "0", "0", "0xbb41", "2", "6", "0xbb49", "2", "10", "0xba41", "6", "0xba49", "10", "2", "0x90e3ff49", "4", "0xb8", "0xb9", "0x68", "1", "5", "0xe9", "1", "5", "0", "1", "0", "1", "\"__enable_execute_stack\"", "1", "0"], "File": "i3864", "Func": "ix86_trampoline_init", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3217, "Length": 510, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCPassConfig", "::", "addInstSelector", "(", ")", "{", "addPass", "(", "createPPCISelDag", "(", "getPPCTargetMachine", "(", ")", ")", ")", ";", "if", "(", "!", "DisableCTRLoops", "&&", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createPPCCTRLoopsVerify", "(", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["addInstSelector", "-", "This", "method", "should", "install", "an", "instruction", "selector", "pass", ",", "which", "converts", "from", "LLVM", "code", "to", "machine", "instructions", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "PPC"], "File": "PPCTargetMachine (2)", "Func": "addInstSelector", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3218, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "uint64_t", "SystemZInstrInfo", "::", "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": ["SystemZ", "SystemZ", "0"], "File": "SystemZInstrInfo (2)", "Func": "getInstSizeInBytes", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3219, "Length": 86, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCSection", "*", "LanaiTargetObjectFile", "::", "getSectionForConstant", "(", "const", "DataLayout", "&", "DL", ",", "SectionKind", "Kind", ",", "const", "Constant", "*", "C", ",", "unsigned", "&", "Align", ",", "const", "GlobalObject", "*", "GO", ")", "const", "{", "if", "(", "isConstantInSmallSection", "(", "DL", ",", "C", ")", ")", "return", "SmallDataSection", ";", "return", "TargetLoweringObjectFileELF", "::", "getSectionForConstant", "(", "DL", ",", "Kind", ",", "C", ",", "Align", ",", "GO", ")", ";", "}", ""], "natrual_language": ["Given", "a", "constant", "with", "the", "SectionKind", ",", "return", "a", "section", "that", "it", "should", "be", "placed", "in", "."], "TS_V_token": ["Lanai", "Lanai"], "File": "LanaiTargetObjectFile6", "Func": "getSectionForConstant", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3220, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "DataLayout", "*", "getDataLayout", "(", ")", "const", "{", "return", "&", "DL", ";", "}", ""], "natrual_language": ["Return", "the", "DataLayout", "associated", "with", "the", "module", "this", "SCEV", "instance", "is", "operating", "on", "."], "TS_V_token": ["Sparc"], "File": "SparcSubtarget11", "Func": "getDataLayout", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3221, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "SystemZRegisterInfo", "::", "getDwarfRegNum", "(", "unsigned", "RegNum", ",", "bool", "isEH", ")", "const", "{", "assert", "(", "0", "&&", "\"What is the dwarf register number\"", ")", ";", "return", "-", "1", ";", "}", ""], "natrual_language": ["Map", "a", "target", "register", "to", "an", "equivalent", "dwarf", "register", "number", "."], "TS_V_token": ["SystemZ", "SystemZ", "0", "\"What is the dwarf register number\"", "1"], "File": "SystemZRegisterInfo13", "Func": "getDwarfRegNum", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3222, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "aarch64_expand_epilogue", "(", "bool", "for_sibcall", ")", "{", "aarch64_layout_frame", "(", ")", ";", "HOST_WIDE_INT", "initial_adjust", "=", "cfun", "->", "machine", "->", "frame", ".", "initial_adjust", ";", "HOST_WIDE_INT", "callee_adjust", "=", "cfun", "->", "machine", "->", "frame", ".", "callee_adjust", ";", "HOST_WIDE_INT", "final_adjust", "=", "cfun", "->", "machine", "->", "frame", ".", "final_adjust", ";", "HOST_WIDE_INT", "callee_offset", "=", "cfun", "->", "machine", "->", "frame", ".", "callee_offset", ";", "unsigned", "reg1", "=", "cfun", "->", "machine", "->", "frame", ".", "wb_candidate1", ";", "unsigned", "reg2", "=", "cfun", "->", "machine", "->", "frame", ".", "wb_candidate2", ";", "rtx", "cfi_ops", "=", "NULL", ";", "rtx_insn", "*", "insn", ";", "bool", "need_barrier_p", "=", "(", "get_frame_size", "(", ")", "+", "cfun", "->", "machine", "->", "frame", ".", "saved_varargs_size", ")", "!=", "0", ";", "if", "(", "final_adjust", ">", "crtl", "->", "outgoing_args_size", "||", "cfun", "->", "calls_alloca", "||", "crtl", "->", "calls_eh_return", ")", "{", "emit_insn", "(", "gen_stack_tie", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ")", ")", ";", "need_barrier_p", "=", "false", ";", "}", "if", "(", "frame_pointer_needed", "&&", "(", "final_adjust", "||", "cfun", "->", "calls_alloca", ")", ")", "{", "insn", "=", "emit_insn", "(", "gen_add3_insn", "(", "stack_pointer_rtx", ",", "hard_frame_pointer_rtx", ",", "GEN_INT", "(", "-", "callee_offset", ")", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "callee_adjust", "==", "0", ";", "}", "else", "aarch64_add_sp", "(", "IP1_REGNUM", ",", "final_adjust", ",", "df_regs_ever_live_p", "(", "IP1_REGNUM", ")", ")", ";", "aarch64_restore_callee_saves", "(", "DImode", ",", "callee_offset", ",", "R0_REGNUM", ",", "R30_REGNUM", ",", "callee_adjust", "!=", "0", ",", "&", "cfi_ops", ")", ";", "aarch64_restore_callee_saves", "(", "DFmode", ",", "callee_offset", ",", "V0_REGNUM", ",", "V31_REGNUM", ",", "callee_adjust", "!=", "0", ",", "&", "cfi_ops", ")", ";", "if", "(", "need_barrier_p", ")", "emit_insn", "(", "gen_stack_tie", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ")", ")", ";", "if", "(", "callee_adjust", "!=", "0", ")", "aarch64_pop_regs", "(", "reg1", ",", "reg2", ",", "callee_adjust", ",", "&", "cfi_ops", ")", ";", "if", "(", "callee_adjust", "!=", "0", "||", "initial_adjust", ">", "65536", ")", "{", "insn", "=", "get_last_insn", "(", ")", ";", "rtx", "new_cfa", "=", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "initial_adjust", ")", ";", "REG_NOTES", "(", "insn", ")", "=", "alloc_reg_note", "(", "REG_CFA_DEF_CFA", ",", "new_cfa", ",", "cfi_ops", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "cfi_ops", "=", "NULL", ";", "}", "aarch64_add_sp", "(", "IP0_REGNUM", ",", "initial_adjust", ",", "df_regs_ever_live_p", "(", "IP0_REGNUM", ")", ")", ";", "if", "(", "cfi_ops", ")", "{", "insn", "=", "get_last_insn", "(", ")", ";", "cfi_ops", "=", "alloc_reg_note", "(", "REG_CFA_DEF_CFA", ",", "stack_pointer_rtx", ",", "cfi_ops", ")", ";", "REG_NOTES", "(", "insn", ")", "=", "cfi_ops", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "if", "(", "aarch64_return_address_signing_enabled", "(", ")", "&&", "(", "for_sibcall", "||", "!", "TARGET_ARMV8_3", "||", "crtl", "->", "calls_eh_return", ")", ")", "{", "insn", "=", "emit_insn", "(", "gen_autisp", "(", ")", ")", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_TOGGLE_RA_MANGLE", ",", "const0_rtx", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "if", "(", "crtl", "->", "calls_eh_return", ")", "{", "emit_insn", "(", "gen_add2_insn", "(", "stack_pointer_rtx", ",", "EH_RETURN_STACKADJ_RTX", ")", ")", ";", "}", "emit_use", "(", "gen_rtx_REG", "(", "DImode", ",", "LR_REGNUM", ")", ")", ";", "if", "(", "!", "for_sibcall", ")", "emit_jump_insn", "(", "ret_rtx", ")", ";", "}", ""], "natrual_language": ["Generate", "the", "epilogue", "instructions", "for", "returning", "from", "a", "function", "."], "TS_V_token": ["aarch64", "0", "0", "0", "0", "0", "0", "65536", "1", "1", "1"], "File": "aarch644", "Func": "aarch64_expand_epilogue", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3223, "Length": 446, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "i386_pe_seh_cold_init", "(", "FILE", "*", "f", ",", "const", "char", "*", "name", ")", "{", "struct", "seh_frame_state", "*", "seh", ";", "HOST_WIDE_INT", "alloc_offset", ",", "offset", ";", "if", "(", "!", "TARGET_SEH", ")", "return", ";", "if", "(", "cfun", "->", "is_thunk", ")", "return", ";", "seh", "=", "cfun", "->", "machine", "->", "seh", ";", "fputs", "(", "\"\\t.seh_proc\\t\"", ",", "f", ")", ";", "assemble_name", "(", "f", ",", "name", ")", ";", "fputc", "(", "'\\n'", ",", "f", ")", ";", "offset", "=", "seh", "->", "sp_offset", "-", "INCOMING_FRAME_SP_OFFSET", ";", "if", "(", "offset", "<", "SEH_MAX_FRAME_SIZE", "&&", "!", "crtl", "->", "accesses_prior_frames", ")", "alloc_offset", "=", "seh", "->", "sp_offset", ";", "else", "alloc_offset", "=", "MIN", "(", "seh", "->", "cfa_offset", "+", "240", ",", "seh", "->", "sp_offset", ")", ";", "offset", "=", "alloc_offset", "-", "INCOMING_FRAME_SP_OFFSET", ";", "if", "(", "offset", ">", "0", ")", "fprintf", "(", "f", ",", "\"\\t.seh_stackalloc\\t\"", "HOST_WIDE_INT_PRINT_DEC", "\"\\n\"", ",", "offset", ")", ";", "for", "(", "int", "regno", "=", "0", ";", "regno", "<", "FIRST_PSEUDO_REGISTER", ";", "regno", "++", ")", "if", "(", "seh", "->", "reg_offset", "[", "regno", "]", ">", "0", "&&", "seh", "->", "reg_offset", "[", "regno", "]", "<=", "alloc_offset", ")", "{", "if", "(", "SSE_REGNO_P", "(", "regno", ")", ")", "fputs", "(", "\"\\t.seh_savexmm\\t\"", ",", "f", ")", ";", "else", "if", "(", "GENERAL_REGNO_P", "(", "regno", ")", ")", "fputs", "(", "\"\\t.seh_savereg\\t\"", ",", "f", ")", ";", "else", "gcc_unreachable", "(", ")", ";", "print_reg", "(", "gen_rtx_REG", "(", "DImode", ",", "regno", ")", ",", "0", ",", "f", ")", ";", "fprintf", "(", "f", ",", "\", \"", "HOST_WIDE_INT_PRINT_DEC", "\"\\n\"", ",", "alloc_offset", "-", "seh", "->", "reg_offset", "[", "regno", "]", ")", ";", "}", "if", "(", "seh", "->", "cfa_reg", "!=", "stack_pointer_rtx", ")", "{", "offset", "=", "alloc_offset", "-", "seh", "->", "cfa_offset", ";", "gcc_assert", "(", "(", "offset", "&", "15", ")", "==", "0", ")", ";", "gcc_assert", "(", "IN_RANGE", "(", "offset", ",", "0", ",", "240", ")", ")", ";", "fputs", "(", "\"\\t.seh_setframe\\t\"", ",", "f", ")", ";", "print_reg", "(", "seh", "->", "cfa_reg", ",", "0", ",", "f", ")", ";", "fprintf", "(", "f", ",", "\", \"", "HOST_WIDE_INT_PRINT_DEC", "\"\\n\"", ",", "offset", ")", ";", "}", "if", "(", "alloc_offset", "!=", "seh", "->", "sp_offset", ")", "{", "offset", "=", "seh", "->", "sp_offset", "-", "alloc_offset", ";", "if", "(", "offset", ">", "0", "&&", "offset", "<", "SEH_MAX_FRAME_SIZE", ")", "fprintf", "(", "f", ",", "\"\\t.seh_stackalloc\\t\"", "HOST_WIDE_INT_PRINT_DEC", "\"\\n\"", ",", "offset", ")", ";", "for", "(", "int", "regno", "=", "0", ";", "regno", "<", "FIRST_PSEUDO_REGISTER", ";", "regno", "++", ")", "if", "(", "seh", "->", "reg_offset", "[", "regno", "]", ">", "alloc_offset", ")", "{", "if", "(", "SSE_REGNO_P", "(", "regno", ")", ")", "fputs", "(", "\"\\t.seh_savexmm\\t\"", ",", "f", ")", ";", "else", "if", "(", "GENERAL_REGNO_P", "(", "regno", ")", ")", "fputs", "(", "\"\\t.seh_savereg\\t\"", ",", "f", ")", ";", "else", "gcc_unreachable", "(", ")", ";", "print_reg", "(", "gen_rtx_REG", "(", "DImode", ",", "regno", ")", ",", "0", ",", "f", ")", ";", "fprintf", "(", "f", ",", "\", \"", "HOST_WIDE_INT_PRINT_DEC", "\"\\n\"", ",", "seh", "->", "sp_offset", "-", "seh", "->", "reg_offset", "[", "regno", "]", ")", ";", "}", "}", "fputs", "(", "\"\\t.seh_endprologue\\n\"", ",", "f", ")", ";", "}", ""], "natrual_language": ["Emit", "assembler", "directives", "to", "reconstruct", "the", "SEH", "state", "."], "TS_V_token": ["i386", "\"\\t.seh_proc\\t\"", "240", "0", "\"\\t.seh_stackalloc\\t\"", "\"\\n\"", "0", "0", "\"\\t.seh_savexmm\\t\"", "\"\\t.seh_savereg\\t\"", "0", "\", \"", "\"\\n\"", "15", "0", "0", "240", "\"\\t.seh_setframe\\t\"", "0", "\", \"", "\"\\n\"", "0", "\"\\t.seh_stackalloc\\t\"", "\"\\n\"", "0", "\"\\t.seh_savexmm\\t\"", "\"\\t.seh_savereg\\t\"", "0", "\", \"", "\"\\n\"", "\"\\t.seh_endprologue\\n\""], "File": "winnt", "Func": "i386_pe_seh_cold_init", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3224, "Length": 445, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "int", "shiftcosts", "(", "rtx", "x", ")", "{", "int", "value", ";", "if", "(", "TARGET_SHMEDIA", ")", "return", "1", ";", "if", "(", "GET_MODE_SIZE", "(", "GET_MODE", "(", "x", ")", ")", ">", "UNITS_PER_WORD", ")", "{", "if", "(", "GET_MODE", "(", "x", ")", "==", "DImode", "&&", "GET_CODE", "(", "XEXP", "(", "x", ",", "1", ")", ")", "==", "CONST_INT", "&&", "INTVAL", "(", "XEXP", "(", "x", ",", "1", ")", ")", "==", "1", ")", "return", "2", ";", "return", "10000", ";", "}", "if", "(", "GET_CODE", "(", "XEXP", "(", "x", ",", "1", ")", ")", "!=", "CONST_INT", ")", "return", "SH_DYNAMIC_SHIFT_COST", ";", "value", "=", "INTVAL", "(", "XEXP", "(", "x", ",", "1", ")", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "ASHIFTRT", ")", "{", "int", "cost", "=", "ashiftrt_insns", "[", "value", "]", ";", "if", "(", "cost", ">", "1", "+", "SH_DYNAMIC_SHIFT_COST", ")", "cost", "=", "1", "+", "SH_DYNAMIC_SHIFT_COST", ";", "return", "cost", ";", "}", "else", "return", "shift_insns", "[", "value", "]", ";", "}", ""], "natrual_language": ["Return", "the", "cost", "of", "a", "shift", "."], "TS_V_token": ["sh", "1", "1", "1", "1", "2", "10000", "1", "1", "1", "1"], "File": "sh3", "Func": "shiftcosts", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3225, "Length": 145, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "nds32_output_16bit_store", "(", "rtx", "*", "operands", ",", "int", "byte", ")", "{", "char", "pattern", "[", "100", "]", ";", "char", "size", ";", "rtx", "code", "=", "XEXP", "(", "operands", "[", "0", "]", ",", "0", ")", ";", "size", "=", "nds32_byte_to_size", "(", "byte", ")", ";", "switch", "(", "nds32_mem_format", "(", "operands", "[", "0", "]", ")", ")", "{", "case", "ADDRESS_REG", ":", "operands", "[", "0", "]", "=", "code", ";", "output_asm_insn", "(", "\"swi450\\t%1, [%0]\"", ",", "operands", ")", ";", "break", ";", "case", "ADDRESS_LO_REG_IMM3U", ":", "snprintf", "(", "pattern", ",", "sizeof", "(", "pattern", ")", ",", "\"s%ci333\\t%%1, %%0\"", ",", "size", ")", ";", "output_asm_insn", "(", "pattern", ",", "operands", ")", ";", "break", ";", "case", "ADDRESS_POST_INC_LO_REG_IMM3U", ":", "snprintf", "(", "pattern", ",", "sizeof", "(", "pattern", ")", ",", "\"s%ci333.bi\\t%%1, %%0\"", ",", "size", ")", ";", "output_asm_insn", "(", "pattern", ",", "operands", ")", ";", "break", ";", "case", "ADDRESS_FP_IMM7U", ":", "output_asm_insn", "(", "\"swi37\\t%1, %0\"", ",", "operands", ")", ";", "break", ";", "case", "ADDRESS_SP_IMM7U", ":", "operands", "[", "0", "]", "=", "XEXP", "(", "code", ",", "1", ")", ";", "output_asm_insn", "(", "\"swi37.sp\\t%1, [ + (%0)]\"", ",", "operands", ")", ";", "break", ";", "default", ":", "break", ";", "}", "return", "\"\"", ";", "}", ""], "natrual_language": ["Output", "16-bit", "store", "."], "TS_V_token": ["nds32", "100", "0", "0", "0", "0", "\"swi450\\t%1, [%0]\"", "\"s%ci333\\t%%1, %%0\"", "\"s%ci333.bi\\t%%1, %%0\"", "\"swi37\\t%1, %0\"", "0", "1", "\"swi37.sp\\t%1, [ + (%0)]\"", "\"\""], "File": "nds32-md-auxiliary2", "Func": "nds32_output_16bit_store", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3226, "Length": 169, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCRegisterInfo", "::", "canRealignStack", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "if", "(", "MF", ".", "getFunction", "(", ")", "->", "hasFnAttribute", "(", "\"no-realign-stack\"", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["True", "if", "the", "stack", "can", "be", "realigned", "for", "the", "target", "."], "TS_V_token": ["PowerPC", "PPC", "\"no-realign-stack\""], "File": "PPCRegisterInfo (2)", "Func": "canRealignStack", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3227, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SparcTargetLowering", "::", "ReplaceNodeResults", "(", "SDNode", "*", "N", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "Results", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SDLoc", "dl", "(", "N", ")", ";", "RTLIB", "::", "Libcall", "libCall", "=", "RTLIB", "::", "UNKNOWN_LIBCALL", ";", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Do not know how to custom type legalize this operation!\"", ")", ";", "case", "ISD", "::", "FP_TO_SINT", ":", "case", "ISD", "::", "FP_TO_UINT", ":", "if", "(", "N", "->", "getOperand", "(", "0", ")", ".", "getValueType", "(", ")", "!=", "MVT", "::", "f128", "||", "N", "->", "getValueType", "(", "0", ")", "!=", "MVT", "::", "i64", ")", "return", ";", "libCall", "=", "(", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "FP_TO_SINT", ")", "?", "RTLIB", "::", "FPTOSINT_F128_I64", ":", "RTLIB", "::", "FPTOUINT_F128_I64", ")", ";", "Results", ".", "push_back", "(", "LowerF128Op", "(", "SDValue", "(", "N", ",", "0", ")", ",", "DAG", ",", "getLibcallName", "(", "libCall", ")", ",", "1", ")", ")", ";", "return", ";", "case", "ISD", "::", "SINT_TO_FP", ":", "case", "ISD", "::", "UINT_TO_FP", ":", "if", "(", "N", "->", "getValueType", "(", "0", ")", "!=", "MVT", "::", "f128", "||", "N", "->", "getOperand", "(", "0", ")", ".", "getValueType", "(", ")", "!=", "MVT", "::", "i64", ")", "return", ";", "libCall", "=", "(", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "SINT_TO_FP", ")", "?", "RTLIB", "::", "SINTTOFP_I64_F128", ":", "RTLIB", "::", "UINTTOFP_I64_F128", ")", ";", "Results", ".", "push_back", "(", "LowerF128Op", "(", "SDValue", "(", "N", ",", "0", ")", ",", "DAG", ",", "getLibcallName", "(", "libCall", ")", ",", "1", ")", ")", ";", "return", ";", "case", "ISD", "::", "LOAD", ":", "{", "LoadSDNode", "*", "Ld", "=", "cast", "<", "LoadSDNode", ">", "(", "N", ")", ";", "if", "(", "Ld", "->", "getValueType", "(", "0", ")", "!=", "MVT", "::", "i64", "||", "Ld", "->", "getMemoryVT", "(", ")", "!=", "MVT", "::", "i64", ")", "return", ";", "SDLoc", "dl", "(", "N", ")", ";", "SDValue", "LoadRes", "=", "DAG", ".", "getExtLoad", "(", "Ld", "->", "getExtensionType", "(", ")", ",", "dl", ",", "MVT", "::", "v2i32", ",", "Ld", "->", "getChain", "(", ")", ",", "Ld", "->", "getBasePtr", "(", ")", ",", "Ld", "->", "getPointerInfo", "(", ")", ",", "MVT", "::", "v2i32", ",", "Ld", "->", "getAlignment", "(", ")", ",", "Ld", "->", "getMemOperand", "(", ")", "->", "getFlags", "(", ")", ",", "Ld", "->", "getAAInfo", "(", ")", ")", ";", "SDValue", "Res", "=", "DAG", ".", "getNode", "(", "ISD", "::", "BITCAST", ",", "dl", ",", "MVT", "::", "i64", ",", "LoadRes", ")", ";", "Results", ".", "push_back", "(", "Res", ")", ";", "Results", ".", "push_back", "(", "LoadRes", ".", "getValue", "(", "1", ")", ")", ";", "return", ";", "}", "}", "}", ""], "natrual_language": ["ReplaceNodeResults", "-", "Replace", "the", "results", "of", "node", "with", "an", "illegal", "result", "type", "with", "new", "values", "built", "out", "of", "custom", "code", "."], "TS_V_token": ["Sparc", "Sparc", "\"Do not know how to custom type legalize this operation!\"", "ISD::FP_TO_SINT", "ISD::FP_TO_UINT", "0", "MVT::f128", "0", "MVT::i64", "ISD::FP_TO_SINT", "0", "1", "ISD::SINT_TO_FP", "ISD::UINT_TO_FP", "0", "MVT::f128", "0", "MVT::i64", "ISD::SINT_TO_FP", "0", "1", "ISD::LOAD", "0", "MVT::i64", "MVT::i64", "MVT::v2i32", "MVT::v2i32", "ISD::BITCAST", "MVT::i64", "1"], "File": "SparcISelLowering14", "Func": "ReplaceNodeResults", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3228, "Length": 390, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_vectorize_vec_perm_const_ok", "(", "machine_mode", "vmode", ",", "const", "unsigned", "char", "*", "sel", ")", "{", "struct", "expand_vec_perm_d", "d", ";", "unsigned", "int", "i", ",", "nelt", ",", "which", ";", "bool", "ret", ";", "d", ".", "vmode", "=", "vmode", ";", "d", ".", "nelt", "=", "nelt", "=", "GET_MODE_NUNITS", "(", "d", ".", "vmode", ")", ";", "d", ".", "testing_p", "=", "true", ";", "memcpy", "(", "d", ".", "perm", ",", "sel", ",", "nelt", ")", ";", "for", "(", "i", "=", "which", "=", "0", ";", "i", "<", "nelt", ";", "++", "i", ")", "{", "unsigned", "char", "e", "=", "d", ".", "perm", "[", "i", "]", ";", "gcc_assert", "(", "e", "<", "2", "*", "nelt", ")", ";", "which", "|=", "(", "e", "<", "nelt", "?", "1", ":", "2", ")", ";", "}", "if", "(", "which", "==", "2", ")", "for", "(", "i", "=", "0", ";", "i", "<", "nelt", ";", "++", "i", ")", "d", ".", "perm", "[", "i", "]", "-=", "nelt", ";", "d", ".", "one_vector_p", "=", "(", "which", "!=", "3", ")", ";", "d", ".", "target", "=", "gen_raw_REG", "(", "d", ".", "vmode", ",", "LAST_VIRTUAL_REGISTER", "+", "1", ")", ";", "d", ".", "op1", "=", "d", ".", "op0", "=", "gen_raw_REG", "(", "d", ".", "vmode", ",", "LAST_VIRTUAL_REGISTER", "+", "2", ")", ";", "if", "(", "!", "d", ".", "one_vector_p", ")", "d", ".", "op1", "=", "gen_raw_REG", "(", "d", ".", "vmode", ",", "LAST_VIRTUAL_REGISTER", "+", "3", ")", ";", "start_sequence", "(", ")", ";", "ret", "=", "arm_expand_vec_perm_const_1", "(", "&", "d", ")", ";", "end_sequence", "(", ")", ";", "return", "ret", ";", "}", ""], "natrual_language": ["Implement", "TARGET_VECTORIZE_VEC_PERM_CONST_OK", "."], "TS_V_token": ["arm", "0", "2", "1", "2", "2", "0", "3", "1", "2", "3"], "File": "arm4", "Func": "arm_vectorize_vec_perm_const_ok", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3229, "Length": 228, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "X86TargetLowering", "::", "getPICJumpTableRelocBase", "(", "SDValue", "Table", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "if", "(", "!", "Subtarget", "->", "is64Bit", "(", ")", ")", "return", "DAG", ".", "getNode", "(", "X86ISD", "::", "GlobalBaseReg", ",", "DebugLoc", "(", ")", ",", "getPointerTy", "(", ")", ")", ";", "return", "Table", ";", "}", ""], "natrual_language": ["Returns", "relocation", "base", "for", "the", "given", "PIC", "jumptable", "."], "TS_V_token": ["X86", "X86", "X86ISD::GlobalBaseReg"], "File": "X86ISelLowering114", "Func": "getPICJumpTableRelocBase", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3230, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PadShortFunc", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "const", "AttributeSet", "&", "FnAttrs", "=", "MF", ".", "getFunction", "(", ")", "->", "getAttributes", "(", ")", ";", "if", "(", "FnAttrs", ".", "hasAttribute", "(", "AttributeSet", "::", "FunctionIndex", ",", "Attribute", "::", "OptimizeForSize", ")", "||", "FnAttrs", ".", "hasAttribute", "(", "AttributeSet", "::", "FunctionIndex", ",", "Attribute", "::", "MinSize", ")", ")", "{", "return", "false", ";", "}", "TM", "=", "&", "MF", ".", "getTarget", "(", ")", ";", "TII", "=", "TM", "->", "getInstrInfo", "(", ")", ";", "ReturnBBs", ".", "clear", "(", ")", ";", "VisitedBBs", ".", "clear", "(", ")", ";", "findReturns", "(", "MF", ".", "begin", "(", ")", ")", ";", "bool", "MadeChange", "=", "false", ";", "MachineBasicBlock", "*", "MBB", ";", "unsigned", "int", "Cycles", "=", "0", ";", "for", "(", "DenseMap", "<", "MachineBasicBlock", "*", ",", "unsigned", "int", ">", "::", "iterator", "I", "=", "ReturnBBs", ".", "begin", "(", ")", ";", "I", "!=", "ReturnBBs", ".", "end", "(", ")", ";", "++", "I", ")", "{", "MBB", "=", "I", "->", "first", ";", "Cycles", "=", "I", "->", "second", ";", "if", "(", "Cycles", "<", "Threshold", ")", "{", "assert", "(", "MBB", "->", "size", "(", ")", ">", "0", "&&", "\"Basic block should contain at least a RET but is empty\"", ")", ";", "MachineBasicBlock", "::", "iterator", "ReturnLoc", "=", "--", "MBB", "->", "end", "(", ")", ";", "while", "(", "ReturnLoc", "->", "isDebugValue", "(", ")", ")", "--", "ReturnLoc", ";", "assert", "(", "ReturnLoc", "->", "isReturn", "(", ")", "&&", "!", "ReturnLoc", "->", "isCall", "(", ")", "&&", "\"Basic block does not end with RET\"", ")", ";", "addPadding", "(", "MBB", ",", "ReturnLoc", ",", "Threshold", "-", "Cycles", ")", ";", "NumBBsPadded", "++", ";", "MadeChange", "=", "true", ";", "}", "}", "return", "MadeChange", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "0", "0", "\"Basic block should contain at least a RET but is empty\"", "\"Basic block does not end with RET\""], "File": "X86PadShortFunction19", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3231, "Length": 240, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBlockPlacement", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "const", "ARMSubtarget", "&", "ST", "=", "static_cast", "<", "const", "ARMSubtarget", "&", ">", "(", "MF", ".", "getSubtarget", "(", ")", ")", ";", "if", "(", "!", "ST", ".", "hasLOB", "(", ")", ")", "return", "false", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "DEBUG_PREFIX", "<<", "\"Running on \"", "<<", "MF", ".", "getName", "(", ")", "<<", "\"\\n\"", ")", ";", "MLI", "=", "&", "getAnalysis", "<", "MachineLoopInfo", ">", "(", ")", ";", "TII", "=", "static_cast", "<", "const", "ARMBaseInstrInfo", "*", ">", "(", "ST", ".", "getInstrInfo", "(", ")", ")", ";", "BBUtils", "=", "std", "::", "unique_ptr", "<", "ARMBasicBlockUtils", ">", "(", "new", "ARMBasicBlockUtils", "(", "MF", ")", ")", ";", "MF", ".", "RenumberBlocks", "(", ")", ";", "BBUtils", "->", "computeAllBlockSizes", "(", ")", ";", "BBUtils", "->", "adjustBBOffsetsAfter", "(", "&", "MF", ".", "front", "(", ")", ")", ";", "bool", "Changed", "=", "false", ";", "RevertedWhileLoops", ".", "clear", "(", ")", ";", "for", "(", "auto", "*", "ML", ":", "*", "MLI", ")", "Changed", "|=", "processPostOrderLoops", "(", "ML", ")", ";", "for", "(", "auto", "*", "WlsInstr", ":", "RevertedWhileLoops", ")", "Changed", "|=", "revertWhileToDoLoop", "(", "WlsInstr", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "\"Running on \"", "\"\\n\"", "ARM", "ARM", "ARM"], "File": "ARMBlockPlacement1", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3232, "Length": 186, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "RegisterBank", "&", "X86RegisterBankInfo", "::", "getRegBankFromRegClass", "(", "const", "TargetRegisterClass", "&", "RC", ",", "LLT", ")", "const", "{", "if", "(", "X86", "::", "GR8RegClass", ".", "hasSubClassEq", "(", "&", "RC", ")", "||", "X86", "::", "GR16RegClass", ".", "hasSubClassEq", "(", "&", "RC", ")", "||", "X86", "::", "GR32RegClass", ".", "hasSubClassEq", "(", "&", "RC", ")", "||", "X86", "::", "GR64RegClass", ".", "hasSubClassEq", "(", "&", "RC", ")", "||", "X86", "::", "LOW32_ADDR_ACCESSRegClass", ".", "hasSubClassEq", "(", "&", "RC", ")", "||", "X86", "::", "LOW32_ADDR_ACCESS_RBPRegClass", ".", "hasSubClassEq", "(", "&", "RC", ")", ")", "return", "getRegBank", "(", "X86", "::", "GPRRegBankID", ")", ";", "if", "(", "X86", "::", "FR32XRegClass", ".", "hasSubClassEq", "(", "&", "RC", ")", "||", "X86", "::", "FR64XRegClass", ".", "hasSubClassEq", "(", "&", "RC", ")", "||", "X86", "::", "VR128XRegClass", ".", "hasSubClassEq", "(", "&", "RC", ")", "||", "X86", "::", "VR256XRegClass", ".", "hasSubClassEq", "(", "&", "RC", ")", "||", "X86", "::", "VR512RegClass", ".", "hasSubClassEq", "(", "&", "RC", ")", ")", "return", "getRegBank", "(", "X86", "::", "VECRRegBankID", ")", ";", "llvm_unreachable", "(", "\"Unsupported register kind yet.\"", ")", ";", "}", ""], "natrual_language": ["Get", "a", "register", "bank", "that", "covers", "RC", "."], "TS_V_token": ["X86", "X86", "X86::GR8RegClass", "X86::GR16RegClass", "X86::GR32RegClass", "X86::GR64RegClass", "X86::LOW32_ADDR_ACCESSRegClass", "X86::LOW32_ADDR_ACCESS_RBPRegClass", "X86::GPRRegBankID", "X86::FR32XRegClass", "X86::FR64XRegClass", "X86::VR128XRegClass", "X86::VR256XRegClass", "X86::VR512RegClass", "X86::VECRRegBankID", "\"Unsupported register kind yet.\""], "File": "X86RegisterBankInfo", "Func": "getRegBankFromRegClass", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3233, "Length": 152, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "mips_global_pointer", "(", "void", ")", "{", "unsigned", "int", "regno", ";", "if", "(", "!", "TARGET_USE_GOT", ")", "return", "GLOBAL_POINTER_REGNUM", ";", "if", "(", "mips_cfun_has_inflexible_gp_ref_p", "(", ")", ")", "return", "GLOBAL_POINTER_REGNUM", ";", "if", "(", "TARGET_ABSOLUTE_JUMPS", "&&", "!", "mips_cfun_has_flexible_gp_ref_p", "(", ")", ")", "return", "INVALID_REGNUM", ";", "if", "(", "TARGET_CALL_SAVED_GP", "&&", "crtl", "->", "is_leaf", ")", "for", "(", "regno", "=", "GP_REG_FIRST", ";", "regno", "<=", "GP_REG_LAST", ";", "regno", "++", ")", "if", "(", "!", "df_regs_ever_live_p", "(", "regno", ")", "&&", "call_used_regs", "[", "regno", "]", "&&", "!", "fixed_regs", "[", "regno", "]", "&&", "regno", "!=", "PIC_FUNCTION_ADDR_REGNUM", ")", "return", "regno", ";", "return", "GLOBAL_POINTER_REGNUM", ";", "}", ""], "natrual_language": ["Return", "the", "register", "that", "should", "be", "used", "as", "the", "global", "pointer", "within", "this", "function", ".", "Return", "0", "if", "the", "function", "does", "n't", "need", "a", "global", "pointer", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_global_pointer", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3234, "Length": 92, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "PPCRegisterInfo", "::", "getCallPreservedMask", "(", "CallingConv", "::", "ID", "CC", ")", "const", "{", "if", "(", "CC", "==", "CallingConv", "::", "AnyReg", ")", "{", "if", "(", "Subtarget", ".", "hasVSX", "(", ")", ")", "return", "CSR_64_AllRegs_VSX_RegMask", ";", "if", "(", "Subtarget", ".", "hasAltivec", "(", ")", ")", "return", "CSR_64_AllRegs_Altivec_RegMask", ";", "return", "CSR_64_AllRegs_RegMask", ";", "}", "if", "(", "Subtarget", ".", "isDarwinABI", "(", ")", ")", "return", "Subtarget", ".", "isPPC64", "(", ")", "?", "(", "Subtarget", ".", "hasAltivec", "(", ")", "?", "CSR_Darwin64_Altivec_RegMask", ":", "CSR_Darwin64_RegMask", ")", ":", "(", "Subtarget", ".", "hasAltivec", "(", ")", "?", "CSR_Darwin32_Altivec_RegMask", ":", "CSR_Darwin32_RegMask", ")", ";", "return", "Subtarget", ".", "isPPC64", "(", ")", "?", "(", "Subtarget", ".", "hasAltivec", "(", ")", "?", "CSR_SVR464_Altivec_RegMask", ":", "CSR_SVR464_RegMask", ")", ":", "(", "Subtarget", ".", "hasAltivec", "(", ")", "?", "CSR_SVR432_Altivec_RegMask", ":", "CSR_SVR432_RegMask", ")", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC"], "File": "PPCRegisterInfo22", "Func": "getCallPreservedMask", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3235, "Length": 120, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "allowTruncateForTailCall", "(", "Type", "*", "Ty1", ",", "Type", "*", "Ty2", ")", "const", "{", "if", "(", "!", "Ty1", "->", "isIntegerTy", "(", ")", "||", "!", "Ty2", "->", "isIntegerTy", "(", ")", ")", "return", "false", ";", "if", "(", "!", "isTypeLegal", "(", "EVT", "::", "getEVT", "(", "Ty1", ")", ")", ")", "return", "false", ";", "assert", "(", "Ty1", "->", "getPrimitiveSizeInBits", "(", ")", "<=", "64", "&&", "\"i128 is probably not a noop\"", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "a", "truncation", "from", "FromTy", "to", "ToTy", "is", "permitted", "when", "deciding", "whether", "a", "call", "is", "in", "tail", "position", "."], "TS_V_token": ["X86", "X86", "64", "\"i128 is probably not a noop\""], "File": "X86ISelLowering (2)", "Func": "allowTruncateForTailCall", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3236, "Length": 67, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "sh_symbian_strip_name_encoding", "(", "const", "char", "*", "name", ")", "{", "int", "skip", ";", "while", "(", "(", "skip", "=", "sh_symbian_get_strip_length", "(", "*", "name", ")", ")", ")", "name", "+=", "skip", ";", "return", "name", ";", "}", ""], "natrual_language": ["Return", "a", "pointer", "to", "a", "function", "'s", "name", "with", "any", "and", "all", "prefix", "encodings", "stripped", "from", "it", "."], "TS_V_token": ["sh"], "File": "symbian", "Func": "sh_symbian_strip_name_encoding", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3237, "Length": 34, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZInstrInfo", "::", "areMemAccessesTriviallyDisjoint", "(", "const", "MachineInstr", "&", "MIa", ",", "const", "MachineInstr", "&", "MIb", ",", "AliasAnalysis", "*", "AA", ")", "const", "{", "if", "(", "!", "MIa", ".", "hasOneMemOperand", "(", ")", "||", "!", "MIb", ".", "hasOneMemOperand", "(", ")", ")", "return", "false", ";", "MachineMemOperand", "*", "MMOa", "=", "*", "MIa", ".", "memoperands_begin", "(", ")", ";", "MachineMemOperand", "*", "MMOb", "=", "*", "MIb", ".", "memoperands_begin", "(", ")", ";", "const", "Value", "*", "VALa", "=", "MMOa", "->", "getValue", "(", ")", ";", "const", "Value", "*", "VALb", "=", "MMOb", "->", "getValue", "(", ")", ";", "bool", "SameVal", "=", "(", "VALa", "&&", "VALb", "&&", "(", "VALa", "==", "VALb", ")", ")", ";", "if", "(", "!", "SameVal", ")", "{", "const", "PseudoSourceValue", "*", "PSVa", "=", "MMOa", "->", "getPseudoValue", "(", ")", ";", "const", "PseudoSourceValue", "*", "PSVb", "=", "MMOb", "->", "getPseudoValue", "(", ")", ";", "if", "(", "PSVa", "&&", "PSVb", "&&", "(", "PSVa", "==", "PSVb", ")", ")", "SameVal", "=", "true", ";", "}", "if", "(", "SameVal", ")", "{", "int", "OffsetA", "=", "MMOa", "->", "getOffset", "(", ")", ",", "OffsetB", "=", "MMOb", "->", "getOffset", "(", ")", ";", "int", "WidthA", "=", "MMOa", "->", "getSize", "(", ")", ",", "WidthB", "=", "MMOb", "->", "getSize", "(", ")", ";", "int", "LowOffset", "=", "OffsetA", "<", "OffsetB", "?", "OffsetA", ":", "OffsetB", ";", "int", "HighOffset", "=", "OffsetA", "<", "OffsetB", "?", "OffsetB", ":", "OffsetA", ";", "int", "LowWidth", "=", "(", "LowOffset", "==", "OffsetA", ")", "?", "WidthA", ":", "WidthB", ";", "if", "(", "LowOffset", "+", "LowWidth", "<=", "HighOffset", ")", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Sometimes", ",", "it", "is", "possible", "for", "the", "target", "to", "tell", ",", "even", "without", "aliasing", "information", ",", "that", "two", "MIs", "access", "different", "memory", "addresses", "."], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZInstrInfo10", "Func": "areMemAccessesTriviallyDisjoint", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3238, "Length": 234, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Comet2ELFTargetObjectFile", "::", "Initialize", "(", "MCContext", "&", "Ctx", ",", "const", "TargetMachine", "&", "TM", ")", "{", "TargetLoweringObjectFileELF", "::", "Initialize", "(", "Ctx", ",", "TM", ")", ";", "InitializeELF", "(", "TM", ".", "Options", ".", "UseInitArray", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "called", "before", "any", "actual", "lowering", "is", "done", "."], "TS_V_token": ["Comet2", "Comet2"], "File": "Comet2TargetObjectFile", "Func": "Initialize", "Target": "Comet2", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3239, "Length": 34, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "LC2200InstPrinter", "::", "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": ["LC2200", "LC2200"], "File": "LC2200InstPrinter", "Func": "printInst", "Target": "LC2200", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3240, "Length": 38, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "RegisterBankInfo", "*", "X86Subtarget", "::", "getRegBankInfo", "(", ")", "const", "{", "assert", "(", "GISel", "&&", "\"Access to GlobalISel APIs not set\"", ")", ";", "return", "GISel", "->", "getRegBankInfo", "(", ")", ";", "}", ""], "natrual_language": ["If", "the", "information", "for", "the", "register", "banks", "is", "available", ",", "return", "it", "."], "TS_V_token": ["X86", "X86", "\"Access to GlobalISel APIs not set\""], "File": "X86Subtarget109", "Func": "getRegBankInfo", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3241, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "DLXTargetObjectFile", "::", "isGlobalInSmallSection", "(", "const", "GlobalObject", "*", "GO", ",", "const", "TargetMachine", "&", "TM", ",", "SectionKind", "Kind", ")", "const", "{", "return", "isGlobalInSmallSectionImpl", "(", "GO", ",", "TM", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "this", "global", "address", "should", "be", "placed", "into", "small", "data/bss", "section", "."], "TS_V_token": ["DLX", "DLX"], "File": "DLXTargetObjectFile", "Func": "isGlobalInSmallSection", "Target": "DLX", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3242, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "SparcSubtarget", "*", "SparcTargetMachine", "::", "getSubtargetImpl", "(", "const", "Function", "&", "F", ")", "const", "{", "Attribute", "CPUAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-cpu\"", ")", ";", "Attribute", "FSAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-features\"", ")", ";", "std", "::", "string", "CPU", "=", "!", "CPUAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "CPUAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetCPU", ";", "std", "::", "string", "FS", "=", "!", "FSAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "FSAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetFS", ";", "bool", "softFloat", "=", "F", ".", "hasFnAttribute", "(", "\"use-soft-float\"", ")", "&&", "F", ".", "getFnAttribute", "(", "\"use-soft-float\"", ")", ".", "getValueAsString", "(", ")", "==", "\"true\"", ";", "if", "(", "softFloat", ")", "FS", "+=", "FS", ".", "empty", "(", ")", "?", "\"+soft-float\"", ":", "\",+soft-float\"", ";", "auto", "&", "I", "=", "SubtargetMap", "[", "CPU", "+", "FS", "]", ";", "if", "(", "!", "I", ")", "{", "resetTargetOptions", "(", "F", ")", ";", "I", "=", "std", "::", "make_unique", "<", "SparcSubtarget", ">", "(", "TargetTriple", ",", "CPU", ",", "FS", ",", "*", "this", ",", "this", "->", "is64Bit", ")", ";", "}", "return", "I", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["Sparc", "Sparc", "Sparc", "\"target-cpu\"", "\"target-features\"", "\"use-soft-float\"", "\"use-soft-float\"", "\"true\"", "\"+soft-float\"", "\",+soft-float\"", "Sparc"], "File": "SparcTargetMachine31", "Func": "getSubtargetImpl", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3243, "Length": 181, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "xstormy16_return_in_memory", "(", "tree", "type", ",", "tree", "fntype", "ATTRIBUTE_UNUSED", ")", "{", "HOST_WIDE_INT", "size", "=", "int_size_in_bytes", "(", "type", ")", ";", "return", "(", "size", "==", "-", "1", "||", "size", ">", "UNITS_PER_WORD", "*", "NUM_ARGUMENT_REGISTERS", ")", ";", "}", ""], "natrual_language": ["Worker", "function", "for", "TARGET_RETURN_IN_MEMORY", "."], "TS_V_token": ["stormy16", "1"], "File": "stormy163", "Func": "xstormy16_return_in_memory", "Target": "stormy16", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3244, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "mt_handle_interrupt_attribute", "(", "tree", "*", "node", ",", "tree", "name", ",", "tree", "args", "ATTRIBUTE_UNUSED", ",", "int", "flags", "ATTRIBUTE_UNUSED", ",", "bool", "*", "no_add_attrs", ")", "{", "if", "(", "TREE_CODE", "(", "*", "node", ")", "!=", "FUNCTION_DECL", ")", "{", "warning", "(", "OPT_Wattributes", ",", "\"%qs attribute only applies to functions\"", ",", "IDENTIFIER_POINTER", "(", "name", ")", ")", ";", "*", "no_add_attrs", "=", "true", ";", "}", "return", "NULL_TREE", ";", "}", ""], "natrual_language": ["Handle", "an", "``", "interrupt", "''", "attribute", "."], "TS_V_token": ["mt", "\"%qs attribute only applies to functions\""], "File": "mt", "Func": "mt_handle_interrupt_attribute", "Target": "mt", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3245, "Length": 57, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "nds32_emit_isr_jmptbl_section", "(", "int", "vector_id", ")", "{", "char", "section_name", "[", "100", "]", ";", "char", "symbol_name", "[", "100", "]", ";", "if", "(", "nds32_isr_vectors", "[", "vector_id", "]", ".", "nested_type", "==", "NDS32_CRITICAL", ")", "{", "fprintf", "(", "asm_out_file", ",", "\"\\t! The vector %02d is a critical isr !\\n\"", ",", "vector_id", ")", ";", "return", ";", "}", "snprintf", "(", "section_name", ",", "sizeof", "(", "section_name", ")", ",", "\".nds32_jmptbl.%02d\"", ",", "vector_id", ")", ";", "snprintf", "(", "symbol_name", ",", "sizeof", "(", "symbol_name", ")", ",", "\"_nds32_jmptbl_%02d\"", ",", "vector_id", ")", ";", "nds32_emit_section_head_template", "(", "section_name", ",", "symbol_name", ",", "2", ",", "true", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t.word\\t%s\\n\"", ",", "nds32_isr_vectors", "[", "vector_id", "]", ".", "func_name", ")", ";", "nds32_emit_section_tail_template", "(", "symbol_name", ")", ";", "}", ""], "natrual_language": ["Function", "to", "emit", "isr", "jump", "table", "section", "."], "TS_V_token": ["nds32", "100", "100", "\"\\t! The vector %02d is a critical isr !\\n\"", "\".nds32_jmptbl.%02d\"", "\"_nds32_jmptbl_%02d\"", "2", "\"\\t.word\\t%s\\n\""], "File": "nds32-isr", "Func": "nds32_emit_isr_jmptbl_section", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3246, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCSymbol", "*", "AArch64AsmPrinter", "::", "GetCPISymbol", "(", "unsigned", "CPID", ")", "const", "{", "if", "(", "!", "getDataLayout", "(", ")", ".", "getLinkerPrivateGlobalPrefix", "(", ")", ".", "empty", "(", ")", ")", "return", "OutContext", ".", "getOrCreateSymbol", "(", "Twine", "(", "getDataLayout", "(", ")", ".", "getLinkerPrivateGlobalPrefix", "(", ")", ")", "+", "\"CPI\"", "+", "Twine", "(", "getFunctionNumber", "(", ")", ")", "+", "\"_\"", "+", "Twine", "(", "CPID", ")", ")", ";", "return", "AsmPrinter", "::", "GetCPISymbol", "(", "CPID", ")", ";", "}", ""], "natrual_language": ["Return", "the", "symbol", "for", "the", "specified", "constant", "pool", "entry", "."], "TS_V_token": ["AArch64", "AArch64", "\"CPI\"", "\"_\""], "File": "AArch64AsmPrinter", "Func": "GetCPISymbol", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3247, "Length": 68, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "*", "OR1KTargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MachineInstr", "&", "MI", ",", "MachineBasicBlock", "*", "BB", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unexpected instr type to insert\"", ")", ";", "case", "OR1K", "::", "Select", ":", "case", "OR1K", "::", "Selectf32", ":", "return", "emitSelect", "(", "MI", ",", "BB", ")", ";", "case", "OR1K", "::", "ATOMIC_LOAD_ADD_I32", ":", "return", "emitAtomicBinary", "(", "MI", ",", "BB", ",", "OR1K", "::", "ADD", ")", ";", "case", "OR1K", "::", "ATOMIC_LOAD_AND_I32", ":", "return", "emitAtomicBinary", "(", "MI", ",", "BB", ",", "OR1K", "::", "AND", ")", ";", "case", "OR1K", "::", "ATOMIC_LOAD_OR_I32", ":", "return", "emitAtomicBinary", "(", "MI", ",", "BB", ",", "OR1K", "::", "OR", ")", ";", "case", "OR1K", "::", "ATOMIC_LOAD_XOR_I32", ":", "return", "emitAtomicBinary", "(", "MI", ",", "BB", ",", "OR1K", "::", "XOR", ")", ";", "case", "OR1K", "::", "ATOMIC_LOAD_NAND_I32", ":", "return", "emitAtomicBinary", "(", "MI", ",", "BB", ",", "0", ",", "true", ")", ";", "case", "OR1K", "::", "ATOMIC_LOAD_SUB_I32", ":", "return", "emitAtomicBinary", "(", "MI", ",", "BB", ",", "OR1K", "::", "SUB", ")", ";", "case", "OR1K", "::", "ATOMIC_SWAP_I32", ":", "return", "emitAtomicBinary", "(", "MI", ",", "BB", ",", "0", ")", ";", "case", "OR1K", "::", "ATOMIC_CMP_SWAP_I32", ":", "return", "emitAtomicCmpSwap", "(", "MI", ",", "BB", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'usesCustomInserter", "'", "flag", "."], "TS_V_token": ["OR1K", "OR1K", "\"Unexpected instr type to insert\"", "OR1K::Select", "OR1K::Selectf32", "OR1K::ATOMIC_LOAD_ADD_I32", "OR1K::ADD", "OR1K::ATOMIC_LOAD_AND_I32", "OR1K::AND", "OR1K::ATOMIC_LOAD_OR_I32", "OR1K::OR", "OR1K::ATOMIC_LOAD_XOR_I32", "OR1K::XOR", "OR1K::ATOMIC_LOAD_NAND_I32", "0", "OR1K::ATOMIC_LOAD_SUB_I32", "OR1K::SUB", "OR1K::ATOMIC_SWAP_I32", "0", "OR1K::ATOMIC_CMP_SWAP_I32"], "File": "OR1KISelLowering1", "Func": "EmitInstrWithCustomInserter", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3248, "Length": 182, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86ATTInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ")", "{", "printInstruction", "(", "MI", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["X86", "X86"], "File": "X86ATTInstPrinter47", "Func": "printInst", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3249, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SparcTargetLowering", "::", "ConstraintType", "SparcTargetLowering", "::", "getConstraintType", "(", "StringRef", "Constraint", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "default", ":", "break", ";", "case", "'f'", ":", "case", "'r'", ":", "return", "C_RegisterClass", ";", "case", "'I'", ":", "return", "C_Other", ";", "}", "}", "return", "TargetLowering", "::", "getConstraintType", "(", "Constraint", ")", ";", "}", ""], "natrual_language": ["Given", "a", "constraint", "letter", ",", "return", "the", "type", "of", "constraint", "for", "this", "target", "."], "TS_V_token": ["Sparc", "Sparc", "Sparc", "1", "0"], "File": "SparcISelLowering7", "Func": "getConstraintType", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3250, "Length": 61, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ScheduleHazardRecognizer", "*", "PPCInstrInfo", "::", "CreateTargetHazardRecognizer", "(", "const", "TargetSubtargetInfo", "*", "STI", ",", "const", "ScheduleDAG", "*", "DAG", ")", "const", "{", "unsigned", "Directive", "=", "static_cast", "<", "const", "PPCSubtarget", "*", ">", "(", "STI", ")", "->", "getMcpu", "(", ")", ";", "if", "(", "Directive", "==", "PPC", "::", "MCPU_440", "||", "Directive", "==", "PPC", "::", "MCPU_A2", "||", "Directive", "==", "PPC", "::", "MCPU_E500mc", "||", "Directive", "==", "PPC", "::", "MCPU_E5500", ")", "{", "const", "InstrItineraryData", "*", "II", "=", "static_cast", "<", "const", "PPCSubtarget", "*", ">", "(", "STI", ")", "->", "getInstrItineraryData", "(", ")", ";", "return", "new", "ScoreboardHazardRecognizer", "(", "II", ",", "DAG", ")", ";", "}", "return", "TargetInstrInfo", "::", "CreateTargetHazardRecognizer", "(", "STI", ",", "DAG", ")", ";", "}", ""], "natrual_language": ["Allocate", "and", "return", "a", "hazard", "recognizer", "to", "use", "for", "this", "target", "when", "scheduling", "the", "machine", "instructions", "before", "register", "allocation", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC::MCPU_440", "PPC::MCPU_A2", "PPC::MCPU_E500mc", "PPC::MCPU_E5500", "PPC"], "File": "PPCInstrInfo31", "Func": "CreateTargetHazardRecognizer", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3251, "Length": 102, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isScalarFPTypeInSSEReg", "(", "EVT", "VT", ")", "const", "{", "return", "(", "VT", "==", "MVT", "::", "f64", "&&", "X86ScalarSSEf64", ")", "||", "(", "VT", "==", "MVT", "::", "f32", "&&", "X86ScalarSSEf32", ")", "||", "(", "VT", "==", "MVT", "::", "f16", "&&", "X86ScalarSSEf16", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "specified", "scalar", "FP", "type", "is", "computed", "in", "an", "SSE", "register", ",", "not", "on", "the", "X87", "floating", "point", "stack", "."], "TS_V_token": ["X86", "MVT::f64", "X86", "MVT::f32", "X86", "MVT::f16", "X86"], "File": "X86FastISel114", "Func": "isScalarFPTypeInSSEReg", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3252, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_secondary_reload_trace", "(", "int", "line", ",", "rtx", "reg", ",", "rtx", "mem", ",", "rtx", "scratch", ",", "bool", "store_p", ")", "{", "rtx", "set", ",", "clobber", ";", "gcc_assert", "(", "reg", "!=", "NULL_RTX", "&&", "mem", "!=", "NULL_RTX", "&&", "scratch", "!=", "NULL_RTX", ")", ";", "fprintf", "(", "stderr", ",", "\"rs6000_secondary_reload_inner:%d, type = %s\\n\"", ",", "line", ",", "store_p", "?", "\"store\"", ":", "\"load\"", ")", ";", "if", "(", "store_p", ")", "set", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "mem", ",", "reg", ")", ";", "else", "set", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "reg", ",", "mem", ")", ";", "clobber", "=", "gen_rtx_CLOBBER", "(", "VOIDmode", ",", "scratch", ")", ";", "debug_rtx", "(", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "gen_rtvec", "(", "2", ",", "set", ",", "clobber", ")", ")", ")", ";", "}", ""], "natrual_language": ["Better", "tracing", "for", "rs6000_secondary_reload_inner", "."], "TS_V_token": ["rs6000", "\"rs6000_secondary_reload_inner:%d, type = %s\\n\"", "\"store\"", "\"load\"", "2"], "File": "rs60004", "Func": "rs6000_secondary_reload_trace", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3253, "Length": 109, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ix86_flags_dependant", "(", "rtx", "insn", ",", "rtx", "dep_insn", ",", "enum", "attr_type", "insn_type", ")", "{", "rtx", "set", ",", "set2", ";", "if", "(", "insn_type", "!=", "TYPE_SETCC", "&&", "insn_type", "!=", "TYPE_ICMOV", "&&", "insn_type", "!=", "TYPE_FCMOV", "&&", "insn_type", "!=", "TYPE_IBR", ")", "return", "0", ";", "if", "(", "(", "set", "=", "single_set", "(", "dep_insn", ")", ")", "!=", "0", ")", "{", "set", "=", "SET_DEST", "(", "set", ")", ";", "set2", "=", "NULL_RTX", ";", "}", "else", "if", "(", "GET_CODE", "(", "PATTERN", "(", "dep_insn", ")", ")", "==", "PARALLEL", "&&", "XVECLEN", "(", "PATTERN", "(", "dep_insn", ")", ",", "0", ")", "==", "2", "&&", "GET_CODE", "(", "XVECEXP", "(", "PATTERN", "(", "dep_insn", ")", ",", "0", ",", "0", ")", ")", "==", "SET", "&&", "GET_CODE", "(", "XVECEXP", "(", "PATTERN", "(", "dep_insn", ")", ",", "0", ",", "1", ")", ")", "==", "SET", ")", "{", "set", "=", "SET_DEST", "(", "XVECEXP", "(", "PATTERN", "(", "dep_insn", ")", ",", "0", ",", "0", ")", ")", ";", "set2", "=", "SET_DEST", "(", "XVECEXP", "(", "PATTERN", "(", "dep_insn", ")", ",", "0", ",", "0", ")", ")", ";", "}", "else", "return", "0", ";", "if", "(", "GET_CODE", "(", "set", ")", "!=", "REG", "||", "REGNO", "(", "set", ")", "!=", "FLAGS_REG", ")", "return", "0", ";", "if", "(", "!", "reg_overlap_mentioned_p", "(", "set", ",", "PATTERN", "(", "insn", ")", ")", ")", "return", "0", ";", "if", "(", "set2", "&&", "reg_overlap_mentioned_p", "(", "set2", ",", "PATTERN", "(", "insn", ")", ")", ")", "return", "0", ";", "return", "1", ";", "}", ""], "natrual_language": ["A", "subroutine", "of", "ix86_adjust_cost", "--", "return", "true", "iff", "INSN", "reads", "flags", "set", "by", "DEP_INSN", "and", "nothing", "set", "by", "DEP_INSN", "."], "TS_V_token": ["i386", "0", "0", "0", "2", "0", "0", "0", "1", "0", "0", "0", "0", "0", "0", "0", "0", "1"], "File": "i3863", "Func": "ix86_flags_dependant", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3254, "Length": 222, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMBaseRegisterInfo", "::", "getRegPressureLimit", "(", "const", "TargetRegisterClass", "*", "RC", ",", "MachineFunction", "&", "MF", ")", "const", "{", "const", "ARMSubtarget", "&", "STI", "=", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "const", "ARMFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "switch", "(", "RC", "->", "getID", "(", ")", ")", "{", "default", ":", "return", "0", ";", "case", "ARM", "::", "tGPRRegClassID", ":", "return", "TFI", "->", "hasFP", "(", "MF", ")", "?", "4", ":", "5", ";", "case", "ARM", "::", "GPRRegClassID", ":", "{", "unsigned", "FP", "=", "TFI", "->", "hasFP", "(", "MF", ")", "?", "1", ":", "0", ";", "return", "10", "-", "FP", "-", "(", "STI", ".", "isR9Reserved", "(", ")", "?", "1", ":", "0", ")", ";", "}", "case", "ARM", "::", "SPRRegClassID", ":", "case", "ARM", "::", "DPRRegClassID", ":", "return", "32", "-", "10", ";", "}", "}", ""], "natrual_language": ["Return", "the", "register", "pressure", "``", "high", "water", "mark", "''", "for", "the", "specific", "register", "class", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "0", "ARM::tGPRRegClassID", "4", "5", "ARM::GPRRegClassID", "1", "0", "10", "1", "0", "ARM::SPRRegClassID", "ARM::DPRRegClassID", "32", "10"], "File": "ARMBaseRegisterInfo13", "Func": "getRegPressureLimit", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3255, "Length": 126, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86IntelInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "uint64_t", "Address", ",", "StringRef", "Annot", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "raw_ostream", "&", "OS", ")", "{", "printInstFlags", "(", "MI", ",", "OS", ")", ";", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "X86", "::", "DATA16_PREFIX", "&&", "STI", ".", "getFeatureBits", "(", ")", "[", "X86", "::", "Mode16Bit", "]", ")", "{", "OS", "<<", "\"\\tdata32\"", ";", "}", "else", "if", "(", "!", "printAliasInstr", "(", "MI", ",", "OS", ")", "&&", "!", "printVecCompareInstr", "(", "MI", ",", "OS", ")", ")", "printInstruction", "(", "MI", ",", "Address", ",", "OS", ")", ";", "printAnnotation", "(", "OS", ",", "Annot", ")", ";", "if", "(", "CommentStream", ")", "EmitAnyX86InstComments", "(", "MI", ",", "*", "CommentStream", ",", "MII", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["X86", "X86", "X86::DATA16_PREFIX", "X86::Mode16Bit", "\"\\tdata32\"", "X86"], "File": "X86IntelInstPrinter30", "Func": "printInst", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3256, "Length": 112, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "num_insns_constant_wide", "(", "HOST_WIDE_INT", "value", ")", "{", "if", "(", "CONST_OK_FOR_LETTER_P", "(", "value", ",", "'I'", ")", ")", "return", "1", ";", "else", "if", "(", "CONST_OK_FOR_LETTER_P", "(", "value", ",", "'L'", ")", ")", "return", "1", ";", "else", "if", "(", "TARGET_POWERPC64", ")", "{", "HOST_WIDE_INT", "low", "=", "(", "(", "value", "&", "0xffffffff", ")", "^", "0x80000000", ")", "-", "0x80000000", ";", "HOST_WIDE_INT", "high", "=", "value", ">>", "31", ";", "if", "(", "high", "==", "0", "||", "high", "==", "-", "1", ")", "return", "2", ";", "high", ">>=", "1", ";", "if", "(", "low", "==", "0", ")", "return", "num_insns_constant_wide", "(", "high", ")", "+", "1", ";", "else", "return", "(", "num_insns_constant_wide", "(", "high", ")", "+", "num_insns_constant_wide", "(", "low", ")", "+", "1", ")", ";", "}", "else", "return", "2", ";", "}", ""], "natrual_language": ["Return", "the", "number", "of", "instructions", "it", "takes", "to", "form", "a", "constant", "in", "an", "integer", "register", "."], "TS_V_token": ["rs6000", "1", "1", "0xffffffff", "0x80000000", "0x80000000", "31", "0", "1", "2", "1", "0", "1", "1", "2"], "File": "rs60003", "Func": "num_insns_constant_wide", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3257, "Length": 114, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "int", "mips_sync_loop_insns", "(", "rtx_insn", "*", "insn", ",", "rtx", "*", "operands", ")", "{", "mips_branch_likely", "=", "TARGET_FIX_R10000", ";", "mips_process_sync_loop", "(", "insn", ",", "operands", ")", ";", "return", "mips_multi_num_insns", ";", "}", ""], "natrual_language": ["Return", "the", "number", "of", "individual", "instructions", "in", "sync", "loop", "INSN", ",", "which", "has", "the", "operands", "given", "by", "OPERANDS", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_sync_loop_insns", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3258, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MandarinFrameLowering", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "const", "MandarinInstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "MandarinInstrInfo", "*", ">", "(", "MF", ".", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "if", "(", "!", "hasReservedCallFrame", "(", "MF", ")", ")", "{", "MachineInstr", "&", "MI", "=", "*", "I", ";", "int", "Size", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "if", "(", "Size", ")", "{", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "MD", "::", "ADJCALLSTACKDOWN", ")", "{", "BuildMI", "(", "MF", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", ".", "get", "(", "MD", "::", "SUBri", ")", ",", "MD", "::", "R30", ")", ".", "addReg", "(", "MD", "::", "R30", ")", ".", "addImm", "(", "Size", ")", ";", "}", "else", "{", "BuildMI", "(", "MF", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", ".", "get", "(", "MD", "::", "ADDri", ")", ",", "MD", "::", "R30", ")", ".", "addReg", "(", "MD", "::", "R30", ")", ".", "addImm", "(", "Size", ")", ";", "}", "}", "}", "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": ["Mandarin", "0", "MD::ADJCALLSTACKDOWN", "MD::SUBri", "MD::R30", "MD::R30", "MD::ADDri", "MD::R30", "MD::R30"], "File": "MandarinFrameLowering", "Func": "eliminateCallFramePseudoInstr", "Target": "Mandarin", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3259, "Length": 178, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "LanaiInstrInfo", "::", "analyzeBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "*", "&", "TrueBlock", ",", "MachineBasicBlock", "*", "&", "FalseBlock", ",", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Condition", ",", "bool", "AllowModify", ")", "const", "{", "MachineBasicBlock", "::", "iterator", "Instruction", "=", "MBB", ".", "end", "(", ")", ";", "while", "(", "Instruction", "!=", "MBB", ".", "begin", "(", ")", ")", "{", "--", "Instruction", ";", "if", "(", "Instruction", "->", "isDebugInstr", "(", ")", ")", "continue", ";", "if", "(", "!", "isUnpredicatedTerminator", "(", "*", "Instruction", ")", ")", "break", ";", "if", "(", "!", "Instruction", "->", "isBranch", "(", ")", ")", "return", "true", ";", "if", "(", "Instruction", "->", "getOpcode", "(", ")", "==", "Lanai", "::", "BT", ")", "{", "if", "(", "!", "AllowModify", ")", "{", "TrueBlock", "=", "Instruction", "->", "getOperand", "(", "0", ")", ".", "getMBB", "(", ")", ";", "continue", ";", "}", "while", "(", "std", "::", "next", "(", "Instruction", ")", "!=", "MBB", ".", "end", "(", ")", ")", "{", "std", "::", "next", "(", "Instruction", ")", "->", "eraseFromParent", "(", ")", ";", "}", "Condition", ".", "clear", "(", ")", ";", "FalseBlock", "=", "nullptr", ";", "if", "(", "MBB", ".", "isLayoutSuccessor", "(", "Instruction", "->", "getOperand", "(", "0", ")", ".", "getMBB", "(", ")", ")", ")", "{", "TrueBlock", "=", "nullptr", ";", "Instruction", "->", "eraseFromParent", "(", ")", ";", "Instruction", "=", "MBB", ".", "end", "(", ")", ";", "continue", ";", "}", "TrueBlock", "=", "Instruction", "->", "getOperand", "(", "0", ")", ".", "getMBB", "(", ")", ";", "continue", ";", "}", "unsigned", "Opcode", "=", "Instruction", "->", "getOpcode", "(", ")", ";", "if", "(", "Opcode", "!=", "Lanai", "::", "BRCC", ")", "return", "true", ";", "if", "(", "Condition", ".", "empty", "(", ")", ")", "{", "LPCC", "::", "CondCode", "BranchCond", "=", "static_cast", "<", "LPCC", "::", "CondCode", ">", "(", "Instruction", "->", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ")", ";", "FalseBlock", "=", "TrueBlock", ";", "TrueBlock", "=", "Instruction", "->", "getOperand", "(", "0", ")", ".", "getMBB", "(", ")", ";", "Condition", ".", "push_back", "(", "MachineOperand", "::", "CreateImm", "(", "BranchCond", ")", ")", ";", "continue", ";", "}", "return", "true", ";", "}", "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": ["Lanai", "Lanai", "Lanai::BT", "0", "0", "0", "Lanai::BRCC", "1", "0"], "File": "LanaiInstrInfo (2)", "Func": "analyzeBranch", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3260, "Length": 311, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMTargetLowering", "::", "functionArgumentNeedsConsecutiveRegisters", "(", "Type", "*", "Ty", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ")", "const", "{", "if", "(", "getEffectiveCallingConv", "(", "CallConv", ",", "isVarArg", ")", "!=", "CallingConv", "::", "ARM_AAPCS_VFP", ")", "return", "false", ";", "HABaseType", "Base", "=", "HA_UNKNOWN", ";", "uint64_t", "Members", "=", "0", ";", "bool", "result", "=", "isHomogeneousAggregate", "(", "Ty", ",", "Base", ",", "Members", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"isHA: \"", "<<", "result", "<<", "\" \"", ";", "Ty", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "\"\\n\"", ")", ";", "return", "result", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "an", "argument", "of", "type", "Ty", "needs", "to", "be", "passed", "in", "a", "contiguous", "block", "of", "registers", "in", "calling", "convention", "CallConv", "."], "TS_V_token": ["ARM", "ARM", "ARM", "0", "\"isHA: \"", "\" \"", "\"\\n\""], "File": "ARMISelLowering (2)", "Func": "functionArgumentNeedsConsecutiveRegisters", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3261, "Length": 86, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Warning", "(", "SMLoc", "L", ",", "const", "Twine", "&", "Msg", ")", "{", "Parser", ".", "Warning", "(", "L", ",", "Msg", ")", ";", "}", ""], "natrual_language": ["Emit", "a", "warning", "at", "the", "location", "L", ",", "with", "the", "message", "Msg", "."], "TS_V_token": ["ARM64"], "File": "ARM64AsmParser", "Func": "Warning", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3262, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "SystemZTargetLowering", "::", "PerformDAGCombine", "(", "SDNode", "*", "N", ",", "DAGCombinerInfo", "&", "DCI", ")", "const", "{", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "ZERO_EXTEND", ":", "return", "combineZERO_EXTEND", "(", "N", ",", "DCI", ")", ";", "case", "ISD", "::", "SIGN_EXTEND", ":", "return", "combineSIGN_EXTEND", "(", "N", ",", "DCI", ")", ";", "case", "ISD", "::", "SIGN_EXTEND_INREG", ":", "return", "combineSIGN_EXTEND_INREG", "(", "N", ",", "DCI", ")", ";", "case", "SystemZISD", "::", "MERGE_HIGH", ":", "case", "SystemZISD", "::", "MERGE_LOW", ":", "return", "combineMERGE", "(", "N", ",", "DCI", ")", ";", "case", "ISD", "::", "STORE", ":", "return", "combineSTORE", "(", "N", ",", "DCI", ")", ";", "case", "ISD", "::", "EXTRACT_VECTOR_ELT", ":", "return", "combineEXTRACT_VECTOR_ELT", "(", "N", ",", "DCI", ")", ";", "case", "SystemZISD", "::", "JOIN_DWORDS", ":", "return", "combineJOIN_DWORDS", "(", "N", ",", "DCI", ")", ";", "case", "ISD", "::", "FP_ROUND", ":", "return", "combineFP_ROUND", "(", "N", ",", "DCI", ")", ";", "case", "ISD", "::", "BSWAP", ":", "return", "combineBSWAP", "(", "N", ",", "DCI", ")", ";", "case", "ISD", "::", "SHL", ":", "case", "ISD", "::", "SRA", ":", "case", "ISD", "::", "SRL", ":", "case", "ISD", "::", "ROTL", ":", "return", "combineSHIFTROT", "(", "N", ",", "DCI", ")", ";", "case", "SystemZISD", "::", "BR_CCMASK", ":", "return", "combineBR_CCMASK", "(", "N", ",", "DCI", ")", ";", "case", "SystemZISD", "::", "SELECT_CCMASK", ":", "return", "combineSELECT_CCMASK", "(", "N", ",", "DCI", ")", ";", "case", "SystemZISD", "::", "GET_CCMASK", ":", "return", "combineGET_CCMASK", "(", "N", ",", "DCI", ")", ";", "}", "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": ["SystemZ", "SystemZ", "ISD::ZERO_EXTEND", "ISD::SIGN_EXTEND", "ISD::SIGN_EXTEND_INREG", "SystemZISD::MERGE_HIGH", "SystemZISD::MERGE_LOW", "ISD::STORE", "ISD::EXTRACT_VECTOR_ELT", "SystemZISD::JOIN_DWORDS", "ISD::FP_ROUND", "ISD::BSWAP", "ISD::SHL", "ISD::SRA", "ISD::SRL", "ISD::ROTL", "SystemZISD::BR_CCMASK", "SystemZISD::SELECT_CCMASK", "SystemZISD::GET_CCMASK"], "File": "SystemZISelLowering33", "Func": "PerformDAGCombine", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3263, "Length": 224, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "AU", ".", "setPreservesAll", "(", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["AArch64"], "File": "AArch64CollectLOH11", "Func": "getAnalysisUsage", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3264, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "assignValueToReg", "(", "Register", "ValVReg", ",", "Register", "PhysReg", ",", "CCValAssign", "&", "VA", ")", "override", "{", "MIB", ".", "addUse", "(", "PhysReg", ",", "RegState", "::", "Implicit", ")", ";", "Register", "ExtReg", ";", "unsigned", "PhysRegSize", "=", "MRI", ".", "getTargetRegisterInfo", "(", ")", "->", "getRegSizeInBits", "(", "PhysReg", ",", "MRI", ")", ";", "unsigned", "ValSize", "=", "VA", ".", "getValVT", "(", ")", ".", "getSizeInBits", "(", ")", ";", "unsigned", "LocSize", "=", "VA", ".", "getLocVT", "(", ")", ".", "getSizeInBits", "(", ")", ";", "if", "(", "PhysRegSize", ">", "ValSize", "&&", "LocSize", "==", "ValSize", ")", "{", "assert", "(", "(", "PhysRegSize", "==", "128", "||", "PhysRegSize", "==", "80", ")", "&&", "\"We expect that to be 128 bit\"", ")", ";", "ExtReg", "=", "MIRBuilder", ".", "buildAnyExt", "(", "LLT", "::", "scalar", "(", "PhysRegSize", ")", ",", "ValVReg", ")", ".", "getReg", "(", "0", ")", ";", "}", "else", "ExtReg", "=", "extendRegister", "(", "ValVReg", ",", "VA", ")", ";", "MIRBuilder", ".", "buildCopy", "(", "PhysReg", ",", "ExtReg", ")", ";", "}", ""], "natrual_language": ["The", "specified", "value", "has", "been", "assigned", "to", "a", "physical", "register", ",", "handle", "the", "appropriate", "COPY", "(", "either", "to", "or", "from", ")", "and", "mark", "any", "relevant", "uses/defines", "as", "needed", "."], "TS_V_token": ["X86", "128", "80", "\"We expect that to be 128 bit\"", "0"], "File": "X86CallLowering17", "Func": "assignValueToReg", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3265, "Length": 139, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "is_microcoded_insn", "(", "rtx", "insn", ")", "{", "if", "(", "!", "insn", "||", "!", "INSN_P", "(", "insn", ")", "||", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "==", "USE", "||", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "==", "CLOBBER", ")", "return", "false", ";", "if", "(", "rs6000_sched_groups", ")", "{", "enum", "attr_type", "type", "=", "get_attr_type", "(", "insn", ")", ";", "if", "(", "type", "==", "TYPE_LOAD_EXT_U", "||", "type", "==", "TYPE_LOAD_EXT_UX", "||", "type", "==", "TYPE_LOAD_UX", "||", "type", "==", "TYPE_STORE_UX", "||", "type", "==", "TYPE_MFCR", ")", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["The", "function", "returns", "a", "true", "if", "INSN", "is", "microcoded", ".", "Return", "false", "otherwise", "."], "TS_V_token": ["rs6000"], "File": "rs60003", "Func": "is_microcoded_insn", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3266, "Length": 86, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64RegisterInfo", "::", "isFrameOffsetLegal", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "BaseReg", ",", "int64_t", "Offset", ")", "const", "{", "assert", "(", "Offset", "<=", "INT_MAX", "&&", "\"Offset too big to fit in int.\"", ")", ";", "assert", "(", "MI", "&&", "\"Unable to get the legal offset for nil instruction.\"", ")", ";", "StackOffset", "SaveOffset", "(", "Offset", ",", "MVT", "::", "i8", ")", ";", "return", "isAArch64FrameOffsetLegal", "(", "*", "MI", ",", "SaveOffset", ")", "&", "AArch64FrameOffsetIsLegal", ";", "}", ""], "natrual_language": ["Determine", "whether", "a", "given", "base", "register", "plus", "offset", "immediate", "is", "encodable", "to", "resolve", "a", "frame", "index", "."], "TS_V_token": ["AArch64", "AArch64", "\"Offset too big to fit in int.\"", "\"Unable to get the legal offset for nil instruction.\"", "MVT::i8", "AArch64", "AArch64"], "File": "AArch64RegisterInfo13", "Func": "isFrameOffsetLegal", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3267, "Length": 56, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCLoopDataPrefetch", "::", "runOnFunction", "(", "Function", "&", "F", ")", "{", "LI", "=", "&", "getAnalysis", "<", "LoopInfoWrapperPass", ">", "(", ")", ".", "getLoopInfo", "(", ")", ";", "SE", "=", "&", "getAnalysis", "<", "ScalarEvolution", ">", "(", ")", ";", "DL", "=", "&", "F", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "AC", "=", "&", "getAnalysis", "<", "AssumptionCacheTracker", ">", "(", ")", ".", "getAssumptionCache", "(", "F", ")", ";", "TTI", "=", "&", "getAnalysis", "<", "TargetTransformInfoWrapperPass", ">", "(", ")", ".", "getTTI", "(", "F", ")", ";", "bool", "MadeChange", "=", "false", ";", "for", "(", "auto", "I", "=", "LI", "->", "begin", "(", ")", ",", "IE", "=", "LI", "->", "end", "(", ")", ";", "I", "!=", "IE", ";", "++", "I", ")", "for", "(", "auto", "L", "=", "df_begin", "(", "*", "I", ")", ",", "LE", "=", "df_end", "(", "*", "I", ")", ";", "L", "!=", "LE", ";", "++", "L", ")", "MadeChange", "|=", "runOnLoop", "(", "*", "L", ")", ";", "return", "MadeChange", ";", "}", ""], "natrual_language": ["runOnFunction", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "the", "per-function", "processing", "of", "the", "pass", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCLoopDataPrefetch", "Func": "runOnFunction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3268, "Length": 146, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "loongarch_extend_comparands", "(", "rtx_code", "code", ",", "rtx", "*", "op0", ",", "rtx", "*", "op1", ")", "{", "if", "(", "GET_MODE_SIZE", "(", "word_mode", ")", ">", "GET_MODE_SIZE", "(", "GET_MODE", "(", "*", "op0", ")", ")", ")", "{", "if", "(", "unsigned_condition", "(", "code", ")", "==", "code", "&&", "GET_MODE", "(", "*", "op0", ")", "==", "QImode", ")", "{", "*", "op0", "=", "gen_rtx_ZERO_EXTEND", "(", "word_mode", ",", "*", "op0", ")", ";", "if", "(", "CONST_INT_P", "(", "*", "op1", ")", ")", "*", "op1", "=", "GEN_INT", "(", "(", "uint8_t", ")", "INTVAL", "(", "*", "op1", ")", ")", ";", "else", "*", "op1", "=", "gen_rtx_ZERO_EXTEND", "(", "word_mode", ",", "*", "op1", ")", ";", "}", "else", "{", "*", "op0", "=", "gen_rtx_SIGN_EXTEND", "(", "word_mode", ",", "*", "op0", ")", ";", "if", "(", "*", "op1", "!=", "const0_rtx", ")", "*", "op1", "=", "gen_rtx_SIGN_EXTEND", "(", "word_mode", ",", "*", "op1", ")", ";", "}", "}", "}", ""], "natrual_language": ["Sign-", "or", "zero-extend", "OP0", "and", "OP1", "for", "integer", "comparisons", "."], "TS_V_token": ["loongarch"], "File": "loongarch", "Func": "loongarch_extend_comparands", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3269, "Length": 132, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "altivec_expand_lxvr_builtin", "(", "enum", "insn_code", "icode", ",", "tree", "exp", ",", "rtx", "target", ",", "bool", "blk", ",", "bool", "sign_extend", ")", "{", "rtx", "pat", ",", "addr", ";", "tree", "arg0", "=", "CALL_EXPR_ARG", "(", "exp", ",", "0", ")", ";", "tree", "arg1", "=", "CALL_EXPR_ARG", "(", "exp", ",", "1", ")", ";", "machine_mode", "tmode", "=", "insn_data", "[", "icode", "]", ".", "operand", "[", "0", "]", ".", "mode", ";", "machine_mode", "smode", "=", "insn_data", "[", "icode", "]", ".", "operand", "[", "1", "]", ".", "mode", ";", "machine_mode", "mode0", "=", "Pmode", ";", "machine_mode", "mode1", "=", "Pmode", ";", "rtx", "op0", "=", "expand_normal", "(", "arg0", ")", ";", "rtx", "op1", "=", "expand_normal", "(", "arg1", ")", ";", "if", "(", "icode", "==", "CODE_FOR_nothing", ")", "return", "0", ";", "if", "(", "arg0", "==", "error_mark_node", "||", "arg1", "==", "error_mark_node", ")", "return", "const0_rtx", ";", "if", "(", "target", "==", "0", "||", "GET_MODE", "(", "target", ")", "!=", "tmode", "||", "!", "(", "*", "insn_data", "[", "icode", "]", ".", "operand", "[", "0", "]", ".", "predicate", ")", "(", "target", ",", "tmode", ")", ")", "target", "=", "gen_reg_rtx", "(", "tmode", ")", ";", "op1", "=", "copy_to_mode_reg", "(", "mode1", ",", "op1", ")", ";", "if", "(", "op0", "==", "const0_rtx", ")", "addr", "=", "gen_rtx_MEM", "(", "blk", "?", "BLKmode", ":", "tmode", ",", "op1", ")", ";", "else", "{", "op0", "=", "copy_to_mode_reg", "(", "mode0", ",", "op0", ")", ";", "addr", "=", "gen_rtx_MEM", "(", "blk", "?", "BLKmode", ":", "smode", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "op1", ",", "op0", ")", ")", ";", "}", "if", "(", "sign_extend", ")", "{", "rtx", "discratch", "=", "gen_reg_rtx", "(", "DImode", ")", ";", "rtx", "tiscratch", "=", "gen_reg_rtx", "(", "TImode", ")", ";", "pat", "=", "GEN_FCN", "(", "icode", ")", "(", "tiscratch", ",", "addr", ")", ";", "if", "(", "!", "pat", ")", "return", "0", ";", "emit_insn", "(", "pat", ")", ";", "rtx", "scratch", "=", "gen_lowpart", "(", "smode", ",", "tiscratch", ")", ";", "if", "(", "icode", "==", "CODE_FOR_vsx_lxvrbx", ")", "emit_insn", "(", "gen_extendqidi2", "(", "discratch", ",", "scratch", ")", ")", ";", "else", "if", "(", "icode", "==", "CODE_FOR_vsx_lxvrhx", ")", "emit_insn", "(", "gen_extendhidi2", "(", "discratch", ",", "scratch", ")", ")", ";", "else", "if", "(", "icode", "==", "CODE_FOR_vsx_lxvrwx", ")", "emit_insn", "(", "gen_extendsidi2", "(", "discratch", ",", "scratch", ")", ")", ";", "if", "(", "icode", "==", "CODE_FOR_vsx_lxvrdx", ")", "discratch", "=", "scratch", ";", "emit_insn", "(", "gen_extendditi2", "(", "target", ",", "discratch", ")", ")", ";", "return", "target", ";", "}", "else", "{", "pat", "=", "GEN_FCN", "(", "icode", ")", "(", "target", ",", "addr", ")", ";", "if", "(", "!", "pat", ")", "return", "0", ";", "emit_insn", "(", "pat", ")", ";", "return", "target", ";", "}", "return", "0", ";", "}", ""], "natrual_language": ["For", "the", "load", "and", "sign", "extend", "rightmost", "elements", ";", "load", "and", "zero", "extend", "rightmost", "element", "builtins", "."], "TS_V_token": ["rs6000", "0", "1", "0", "1", "0", "0", "0", "0", "0", "0"], "File": "rs6000-call1", "Func": "altivec_expand_lxvr_builtin", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3270, "Length": 390, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_tieable_integer_mode_p", "(", "machine_mode", "mode", ")", "{", "switch", "(", "mode", ")", "{", "case", "E_HImode", ":", "case", "E_SImode", ":", "return", "true", ";", "case", "E_QImode", ":", "return", "TARGET_64BIT", "||", "!", "TARGET_PARTIAL_REG_STALL", ";", "case", "E_DImode", ":", "return", "TARGET_64BIT", ";", "default", ":", "return", "false", ";", "}", "}", ""], "natrual_language": ["A", "subroutine", "of", "ix86_modes_tieable_p", ".", "Return", "true", "if", "MODE", "is", "a", "tieable", "integer", "mode", "."], "TS_V_token": ["i386"], "File": "i386", "Func": "ix86_tieable_integer_mode_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3271, "Length": 44, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "VEAsmParser", "::", "validateTargetOperandClass", "(", "MCParsedAsmOperand", "&", "GOp", ",", "unsigned", "Kind", ")", "{", "VEOperand", "&", "Op", "=", "(", "VEOperand", "&", ")", "GOp", ";", "switch", "(", "Kind", ")", "{", "default", ":", "break", ";", "case", "MCK_F32", ":", "if", "(", "Op", ".", "isReg", "(", ")", "&&", "VEOperand", "::", "MorphToF32Reg", "(", "Op", ")", ")", "return", "MCTargetAsmParser", "::", "Match_Success", ";", "break", ";", "case", "MCK_I32", ":", "if", "(", "Op", ".", "isReg", "(", ")", "&&", "VEOperand", "::", "MorphToI32Reg", "(", "Op", ")", ")", "return", "MCTargetAsmParser", "::", "Match_Success", ";", "break", ";", "case", "MCK_F128", ":", "if", "(", "Op", ".", "isReg", "(", ")", "&&", "VEOperand", "::", "MorphToF128Reg", "(", "Op", ")", ")", "return", "MCTargetAsmParser", "::", "Match_Success", ";", "break", ";", "case", "MCK_MISC", ":", "if", "(", "Op", ".", "isImm", "(", ")", "&&", "VEOperand", "::", "MorphToMISCReg", "(", "Op", ")", ")", "return", "MCTargetAsmParser", "::", "Match_Success", ";", "break", ";", "}", "return", "Match_InvalidOperand", ";", "}", ""], "natrual_language": ["Allow", "a", "target", "to", "add", "special", "case", "operand", "matching", "for", "things", "that", "tblgen", "doesn't/ca", "n't", "handle", "effectively", "."], "TS_V_token": ["VE", "VE", "VE", "VE", "VEOperand::MorphToF32Reg", "VEOperand::MorphToI32Reg", "VEOperand::MorphToF128Reg", "VEOperand::MorphToMISCReg"], "File": "VEAsmParser1", "Func": "validateTargetOperandClass", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3272, "Length": 137, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMPassConfig", "::", "addPreISel", "(", ")", "{", "if", "(", "!", "getARMSubtarget", "(", ")", ".", "isTargetNaCl", "(", ")", "&&", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createGlobalMergePass", "(", "TM", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["{", "{", "@", "For", "GlobalISel"], "TS_V_token": ["ARM", "ARM", "ARM"], "File": "ARMTargetMachine97", "Func": "addPreISel", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3273, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_expand_vi_broadcast", "(", "machine_mode", "vmode", ",", "rtx", "target", ",", "rtx", "elt", ")", "{", "struct", "expand_vec_perm_d", "d", ";", "rtx", "t1", ";", "bool", "ok", ";", "if", "(", "elt", "!=", "const0_rtx", ")", "elt", "=", "force_reg", "(", "GET_MODE_INNER", "(", "vmode", ")", ",", "elt", ")", ";", "if", "(", "REG_P", "(", "elt", ")", ")", "elt", "=", "gen_lowpart", "(", "DImode", ",", "elt", ")", ";", "t1", "=", "gen_reg_rtx", "(", "vmode", ")", ";", "switch", "(", "vmode", ")", "{", "case", "E_V8QImode", ":", "emit_insn", "(", "gen_loongson_vec_init1_v8qi", "(", "t1", ",", "elt", ")", ")", ";", "break", ";", "case", "E_V4HImode", ":", "emit_insn", "(", "gen_loongson_vec_init1_v4hi", "(", "t1", ",", "elt", ")", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "memset", "(", "&", "d", ",", "0", ",", "sizeof", "(", "d", ")", ")", ";", "d", ".", "target", "=", "target", ";", "d", ".", "op0", "=", "t1", ";", "d", ".", "op1", "=", "t1", ";", "d", ".", "vmode", "=", "vmode", ";", "d", ".", "nelt", "=", "GET_MODE_NUNITS", "(", "vmode", ")", ";", "d", ".", "one_vector_p", "=", "true", ";", "ok", "=", "mips_expand_vec_perm_const_1", "(", "&", "d", ")", ";", "gcc_assert", "(", "ok", ")", ";", "}", ""], "natrual_language": ["A", "subroutine", "of", "mips_expand_vec_init", ",", "expand", "via", "broadcast", "."], "TS_V_token": ["mips", "0"], "File": "mips", "Func": "mips_expand_vi_broadcast", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3274, "Length": 173, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsAsmPrinter", "::", "emitFrameDirective", "(", ")", "{", "const", "TargetRegisterInfo", "&", "RI", "=", "*", "TM", ".", "getRegisterInfo", "(", ")", ";", "unsigned", "stackReg", "=", "RI", ".", "getFrameRegister", "(", "*", "MF", ")", ";", "unsigned", "returnReg", "=", "RI", ".", "getRARegister", "(", ")", ";", "unsigned", "stackSize", "=", "MF", "->", "getFrameInfo", "(", ")", "->", "getStackSize", "(", ")", ";", "O", "<<", "\"\\t.frame\\t\"", "<<", "'$'", "<<", "LowercaseString", "(", "getRegisterName", "(", "stackReg", ")", ")", "<<", "','", "<<", "stackSize", "<<", "','", "<<", "'$'", "<<", "LowercaseString", "(", "getRegisterName", "(", "returnReg", ")", ")", "<<", "'\\n'", ";", "}", ""], "natrual_language": ["Frame", "Directive", "."], "TS_V_token": ["Mips", "Mips", "\"\\t.frame\\t\""], "File": "MipsAsmPrinter54", "Func": "emitFrameDirective", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3275, "Length": 85, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "getIntrinsicID", "(", "const", "SDNode", "*", "N", ")", "{", "unsigned", "Opcode", "=", "N", "->", "getOpcode", "(", ")", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "Intrinsic", "::", "not_intrinsic", ";", "case", "ISD", "::", "INTRINSIC_WO_CHAIN", ":", "{", "unsigned", "IID", "=", "cast", "<", "ConstantSDNode", ">", "(", "N", "->", "getOperand", "(", "0", ")", ")", "->", "getZExtValue", "(", ")", ";", "if", "(", "IID", "<", "Intrinsic", "::", "num_intrinsics", ")", "return", "IID", ";", "return", "Intrinsic", "::", "not_intrinsic", ";", "}", "}", "}", ""], "natrual_language": ["Return", "the", "target", "intrinsic", "ID", "of", "a", "function", ",", "or", "0", "."], "TS_V_token": ["AArch64", "Intrinsic::not_intrinsic", "ISD::INTRINSIC_WO_CHAIN", "0", "Intrinsic::num_intrinsics", "Intrinsic::not_intrinsic"], "File": "AArch64ISelLowering (2)", "Func": "getIntrinsicID", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3276, "Length": 76, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64DeadRegisterDefinitions", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "TRI", "=", "MF", ".", "getTarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "bool", "Changed", "=", "false", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** AArch64DeadRegisterDefinitions *****\\n\"", ")", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "if", "(", "processMachineBasicBlock", "(", "MBB", ")", ")", "Changed", "=", "true", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "\"***** AArch64DeadRegisterDefinitions *****\\n\""], "File": "AArch64DeadRegisterDefinitionsPass10", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3277, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMHazardRecognizer", "::", "AdvanceCycle", "(", ")", "{", "if", "(", "FpMLxStalls", "&&", "--", "FpMLxStalls", "==", "0", ")", "LastMI", "=", "nullptr", ";", "ScoreboardHazardRecognizer", "::", "AdvanceCycle", "(", ")", ";", "}", ""], "natrual_language": ["AdvanceCycle", "-", "This", "callback", "is", "invoked", "whenever", "the", "next", "top-down", "instruction", "to", "be", "scheduled", "can", "not", "issue", "in", "the", "current", "cycle", ",", "either", "because", "of", "latency", "or", "resource", "conflicts", "."], "TS_V_token": ["ARM", "ARM", "0"], "File": "ARMHazardRecognizer (2)", "Func": "AdvanceCycle", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3278, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZRegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "RegScavenger", "*", "RS", ")", "const", "{", "assert", "(", "SPAdj", "==", "0", "&&", "\"Unxpected\"", ")", ";", "unsigned", "i", "=", "0", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "while", "(", "!", "MI", ".", "getOperand", "(", "i", ")", ".", "isFI", "(", ")", ")", "{", "++", "i", ";", "assert", "(", "i", "<", "MI", ".", "getNumOperands", "(", ")", "&&", "\"Instr doesn't have FrameIndex operand!\"", ")", ";", "}", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "i", ")", ".", "getIndex", "(", ")", ";", "unsigned", "BasePtr", "=", "(", "hasFP", "(", "MF", ")", "?", "SystemZ", "::", "R11D", ":", "SystemZ", "::", "R15D", ")", ";", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "BasePtr", ",", "false", ")", ";", "int", "Offset", "=", "getFrameIndexOffset", "(", "MF", ",", "FrameIndex", ")", "+", "MI", ".", "getOperand", "(", "i", "+", "1", ")", ".", "getImm", "(", ")", ";", "MI", ".", "setDesc", "(", "TII", ".", "getMemoryInstr", "(", "MI", ".", "getOpcode", "(", ")", ",", "Offset", ")", ")", ";", "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": ["SystemZ", "SystemZ", "0", "\"Unxpected\"", "0", "\"Instr doesn't have FrameIndex operand!\"", "SystemZ::R11D", "SystemZ::R15D", "1", "1"], "File": "SystemZRegisterInfo13", "Func": "eliminateFrameIndex", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3279, "Length": 189, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86FastISel", "::", "tryToFoldLoadIntoMI", "(", "MachineInstr", "*", "MI", ",", "unsigned", "OpNo", ",", "const", "LoadInst", "*", "LI", ")", "{", "const", "Value", "*", "Ptr", "=", "LI", "->", "getPointerOperand", "(", ")", ";", "X86AddressMode", "AM", ";", "if", "(", "!", "X86SelectAddress", "(", "Ptr", ",", "AM", ")", ")", "return", "false", ";", "const", "X86InstrInfo", "&", "XII", "=", "(", "const", "X86InstrInfo", "&", ")", "TII", ";", "unsigned", "Size", "=", "DL", ".", "getTypeAllocSize", "(", "LI", "->", "getType", "(", ")", ")", ";", "SmallVector", "<", "MachineOperand", ",", "8", ">", "AddrOps", ";", "AM", ".", "getFullAddress", "(", "AddrOps", ")", ";", "MachineInstr", "*", "Result", "=", "XII", ".", "foldMemoryOperandImpl", "(", "*", "FuncInfo", ".", "MF", ",", "*", "MI", ",", "OpNo", ",", "AddrOps", ",", "FuncInfo", ".", "InsertPt", ",", "Size", ",", "LI", "->", "getAlign", "(", ")", ",", "true", ")", ";", "if", "(", "!", "Result", ")", "return", "false", ";", "unsigned", "OperandNo", "=", "0", ";", "for", "(", "MachineInstr", "::", "mop_iterator", "I", "=", "Result", "->", "operands_begin", "(", ")", ",", "E", "=", "Result", "->", "operands_end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ",", "++", "OperandNo", ")", "{", "MachineOperand", "&", "MO", "=", "*", "I", ";", "if", "(", "!", "MO", ".", "isReg", "(", ")", "||", "MO", ".", "isDef", "(", ")", "||", "MO", ".", "getReg", "(", ")", "!=", "AM", ".", "IndexReg", ")", "continue", ";", "unsigned", "IndexReg", "=", "constrainOperandRegClass", "(", "Result", "->", "getDesc", "(", ")", ",", "MO", ".", "getReg", "(", ")", ",", "OperandNo", ")", ";", "if", "(", "IndexReg", "==", "MO", ".", "getReg", "(", ")", ")", "continue", ";", "MO", ".", "setReg", "(", "IndexReg", ")", ";", "}", "Result", "->", "addMemOperand", "(", "*", "FuncInfo", ".", "MF", ",", "createMachineMemOperandFor", "(", "LI", ")", ")", ";", "Result", "->", "cloneInstrSymbols", "(", "*", "FuncInfo", ".", "MF", ",", "*", "MI", ")", ";", "MachineBasicBlock", "::", "iterator", "I", "(", "MI", ")", ";", "removeDeadCode", "(", "I", ",", "std", "::", "next", "(", "I", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["The", "specified", "machine", "instr", "operand", "is", "a", "vreg", ",", "and", "that", "vreg", "is", "being", "provided", "by", "the", "specified", "load", "instruction", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86", "8", "0"], "File": "X86FastISel121", "Func": "tryToFoldLoadIntoMI", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3280, "Length": 292, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MVT", "X86TargetLowering", "::", "getPreferredSwitchConditionType", "(", "LLVMContext", "&", "Context", ",", "EVT", "ConditionVT", ")", "const", "{", "if", "(", "ConditionVT", ".", "getSizeInBits", "(", ")", "<", "32", ")", "return", "MVT", "::", "i32", ";", "return", "TargetLoweringBase", "::", "getPreferredSwitchConditionType", "(", "Context", ",", "ConditionVT", ")", ";", "}", ""], "natrual_language": ["Returns", "preferred", "type", "for", "switch", "condition", "."], "TS_V_token": ["X86", "X86", "32", "MVT::i32"], "File": "X86ISelLowering104", "Func": "getPreferredSwitchConditionType", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3281, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCTargetLowering", "::", "getByValTypeAlignment", "(", "Type", "*", "Ty", ")", "const", "{", "const", "TargetMachine", "&", "TM", "=", "getTargetMachine", "(", ")", ";", "if", "(", "TM", ".", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ".", "isDarwin", "(", ")", ")", "return", "4", ";", "return", "4", ";", "}", ""], "natrual_language": ["Return", "the", "desired", "alignment", "for", "ByVal", "aggregate", "function", "arguments", "in", "the", "caller", "parameter", "area", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "4", "4"], "File": "PPCISelLowering113", "Func": "getByValTypeAlignment", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3282, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "PPCTargetLowering", "::", "LowerFormalArguments", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "const", "SDLoc", "&", "dl", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "if", "(", "Subtarget", ".", "isAIXABI", "(", ")", ")", "return", "LowerFormalArguments_AIX", "(", "Chain", ",", "CallConv", ",", "isVarArg", ",", "Ins", ",", "dl", ",", "DAG", ",", "InVals", ")", ";", "if", "(", "Subtarget", ".", "is64BitELFABI", "(", ")", ")", "return", "LowerFormalArguments_64SVR4", "(", "Chain", ",", "CallConv", ",", "isVarArg", ",", "Ins", ",", "dl", ",", "DAG", ",", "InVals", ")", ";", "assert", "(", "Subtarget", ".", "is32BitELFABI", "(", ")", ")", ";", "return", "LowerFormalArguments_32SVR4", "(", "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": ["PowerPC", "PPC", "ISD::InputArg"], "File": "PPCISelLowering109", "Func": "LowerFormalArguments", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3283, "Length": 124, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ")", "const", "{", "return", "false", ";", "}", ""], "natrual_language": ["Check", "whether", "the", "given", "instruction", "may", "need", "relaxation", "."], "TS_V_token": ["TeeRISC"], "File": "TeeRISCAsmBackend", "Func": "mayNeedRelaxation", "Target": "TeeRISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3284, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"AArch64 Stack Tagging\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["AArch64", "\"AArch64 Stack Tagging\""], "File": "AArch64StackTagging (2)", "Func": "getPassName", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3285, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "mips_function_value_1", "(", "const_tree", "valtype", ",", "const_tree", "fn_decl_or_type", ",", "machine_mode", "mode", ")", "{", "if", "(", "valtype", ")", "{", "tree", "fields", "[", "2", "]", ";", "int", "unsigned_p", ";", "const_tree", "func", ";", "if", "(", "fn_decl_or_type", "&&", "DECL_P", "(", "fn_decl_or_type", ")", ")", "func", "=", "fn_decl_or_type", ";", "else", "func", "=", "NULL", ";", "mode", "=", "TYPE_MODE", "(", "valtype", ")", ";", "unsigned_p", "=", "TYPE_UNSIGNED", "(", "valtype", ")", ";", "mode", "=", "promote_function_mode", "(", "valtype", ",", "mode", ",", "&", "unsigned_p", ",", "func", ",", "1", ")", ";", "switch", "(", "mips_fpr_return_fields", "(", "valtype", ",", "fields", ")", ")", "{", "case", "1", ":", "return", "mips_return_fpr_single", "(", "mode", ",", "TYPE_MODE", "(", "TREE_TYPE", "(", "fields", "[", "0", "]", ")", ")", ")", ";", "case", "2", ":", "return", "mips_return_fpr_pair", "(", "mode", ",", "TYPE_MODE", "(", "TREE_TYPE", "(", "fields", "[", "0", "]", ")", ")", ",", "int_byte_position", "(", "fields", "[", "0", "]", ")", ",", "TYPE_MODE", "(", "TREE_TYPE", "(", "fields", "[", "1", "]", ")", ")", ",", "int_byte_position", "(", "fields", "[", "1", "]", ")", ")", ";", "}", "if", "(", "mips_return_in_msb", "(", "valtype", ")", ")", "{", "HOST_WIDE_INT", "size", "=", "int_size_in_bytes", "(", "valtype", ")", ";", "if", "(", "size", "%", "UNITS_PER_WORD", "!=", "0", ")", "{", "size", "+=", "UNITS_PER_WORD", "-", "size", "%", "UNITS_PER_WORD", ";", "mode", "=", "mode_for_size", "(", "size", "*", "BITS_PER_UNIT", ",", "MODE_INT", ",", "0", ")", ";", "}", "}", "if", "(", "mips_abi", "!=", "ABI_EABI", "&&", "!", "FLOAT_TYPE_P", "(", "valtype", ")", ")", "return", "gen_rtx_REG", "(", "mode", ",", "GP_RETURN", ")", ";", "}", "if", "(", "!", "TARGET_MIPS16", ")", "{", "if", "(", "mode", "==", "TFmode", ")", "return", "mips_return_fpr_pair", "(", "mode", ",", "DImode", ",", "0", ",", "DImode", ",", "GET_MODE_SIZE", "(", "mode", ")", "/", "2", ")", ";", "if", "(", "mips_return_mode_in_fpr_p", "(", "mode", ")", ")", "{", "if", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_COMPLEX_FLOAT", ")", "return", "mips_return_fpr_pair", "(", "mode", ",", "GET_MODE_INNER", "(", "mode", ")", ",", "0", ",", "GET_MODE_INNER", "(", "mode", ")", ",", "GET_MODE_SIZE", "(", "mode", ")", "/", "2", ")", ";", "else", "return", "gen_rtx_REG", "(", "mode", ",", "FP_RETURN", ")", ";", "}", "}", "return", "gen_rtx_REG", "(", "mode", ",", "GP_RETURN", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_FUNCTION_VALUE", "and", "TARGET_LIBCALL_VALUE", ".", "For", "normal", "calls", ",", "VALTYPE", "is", "the", "return", "type", "and", "MODE", "is", "VOIDmode", ".", "For", "libcalls", ",", "VALTYPE", "is", "null", "and", "MODE", "is", "the", "mode", "of", "the", "return", "value", "."], "TS_V_token": ["mips", "2", "1", "1", "0", "2", "0", "0", "1", "1", "0", "0", "0", "2", "0", "2"], "File": "mips4", "Func": "mips_function_value_1", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3286, "Length": 319, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PadShortFunc", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "if", "(", "MF", ".", "getFunction", "(", ")", ".", "hasOptSize", "(", ")", ")", "return", "false", ";", "if", "(", "!", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "padShortFunctions", "(", ")", ")", "return", "false", ";", "TSM", ".", "init", "(", "&", "MF", ".", "getSubtarget", "(", ")", ")", ";", "ReturnBBs", ".", "clear", "(", ")", ";", "VisitedBBs", ".", "clear", "(", ")", ";", "findReturns", "(", "&", "MF", ".", "front", "(", ")", ")", ";", "bool", "MadeChange", "=", "false", ";", "for", "(", "DenseMap", "<", "MachineBasicBlock", "*", ",", "unsigned", "int", ">", "::", "iterator", "I", "=", "ReturnBBs", ".", "begin", "(", ")", ";", "I", "!=", "ReturnBBs", ".", "end", "(", ")", ";", "++", "I", ")", "{", "MachineBasicBlock", "*", "MBB", "=", "I", "->", "first", ";", "unsigned", "Cycles", "=", "I", "->", "second", ";", "if", "(", "Cycles", "<", "Threshold", ")", "{", "assert", "(", "MBB", "->", "size", "(", ")", ">", "0", "&&", "\"Basic block should contain at least a RET but is empty\"", ")", ";", "MachineBasicBlock", "::", "iterator", "ReturnLoc", "=", "--", "MBB", "->", "end", "(", ")", ";", "while", "(", "ReturnLoc", "->", "isDebugInstr", "(", ")", ")", "--", "ReturnLoc", ";", "assert", "(", "ReturnLoc", "->", "isReturn", "(", ")", "&&", "!", "ReturnLoc", "->", "isCall", "(", ")", "&&", "\"Basic block does not end with RET\"", ")", ";", "addPadding", "(", "MBB", ",", "ReturnLoc", ",", "Threshold", "-", "Cycles", ")", ";", "NumBBsPadded", "++", ";", "MadeChange", "=", "true", ";", "}", "}", "return", "MadeChange", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "0", "\"Basic block should contain at least a RET but is empty\"", "\"Basic block does not end with RET\""], "File": "X86PadShortFunction31", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3287, "Length": 229, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "DLXFrameLowering", "::", "determineFrameLayout", "(", "MachineFunction", "&", "MF", ")", "const", "{", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "DLXRegisterInfo", "*", "LRI", "=", "STI", ".", "getRegisterInfo", "(", ")", ";", "unsigned", "FrameSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "unsigned", "StackAlign", "=", "LRI", "->", "needsStackRealignment", "(", "MF", ")", "?", "MFI", ".", "getMaxAlignment", "(", ")", ":", "getStackAlignment", "(", ")", ";", "unsigned", "MaxCallFrameSize", "=", "MFI", ".", "getMaxCallFrameSize", "(", ")", ";", "if", "(", "MFI", ".", "hasVarSizedObjects", "(", ")", ")", "MaxCallFrameSize", "=", "alignTo", "(", "MaxCallFrameSize", ",", "StackAlign", ")", ";", "MFI", ".", "setMaxCallFrameSize", "(", "MaxCallFrameSize", ")", ";", "if", "(", "!", "(", "hasReservedCallFrame", "(", "MF", ")", "&&", "MFI", ".", "adjustsStack", "(", ")", ")", ")", "FrameSize", "+=", "MaxCallFrameSize", ";", "FrameSize", "=", "alignTo", "(", "FrameSize", ",", "StackAlign", ")", ";", "MFI", ".", "setStackSize", "(", "FrameSize", ")", ";", "}", ""], "natrual_language": ["Determine", "the", "frame", "layout", "but", "do", "not", "update", "the", "machine", "function", "."], "TS_V_token": ["DLX", "DLX", "DLX"], "File": "DLXFrameLowering", "Func": "determineFrameLayout", "Target": "DLX", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3288, "Length": 131, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "sparc_split_reg_reg_legitimate", "(", "rtx", "reg1", ",", "rtx", "reg2", ")", "{", "gcc_assert", "(", "reload_completed", ")", ";", "if", "(", "GET_CODE", "(", "reg1", ")", "==", "SUBREG", ")", "reg1", "=", "SUBREG_REG", "(", "reg1", ")", ";", "if", "(", "GET_CODE", "(", "reg1", ")", "!=", "REG", ")", "return", "0", ";", "const", "int", "regno1", "=", "REGNO", "(", "reg1", ")", ";", "if", "(", "GET_CODE", "(", "reg2", ")", "==", "SUBREG", ")", "reg2", "=", "SUBREG_REG", "(", "reg2", ")", ";", "if", "(", "GET_CODE", "(", "reg2", ")", "!=", "REG", ")", "return", "0", ";", "const", "int", "regno2", "=", "REGNO", "(", "reg2", ")", ";", "if", "(", "SPARC_INT_REG_P", "(", "regno1", ")", "&&", "SPARC_INT_REG_P", "(", "regno2", ")", ")", "return", "1", ";", "if", "(", "TARGET_VIS3", ")", "{", "if", "(", "(", "SPARC_INT_REG_P", "(", "regno1", ")", "&&", "SPARC_FP_REG_P", "(", "regno2", ")", ")", "||", "(", "SPARC_FP_REG_P", "(", "regno1", ")", "&&", "SPARC_INT_REG_P", "(", "regno2", ")", ")", ")", "return", "1", ";", "}", "return", "0", ";", "}", ""], "natrual_language": ["Like", "sparc_split_reg_mem_legitimate", "but", "for", "REG", "<", "--", ">", "REG", "moves", "."], "TS_V_token": ["sparc", "0", "0", "1", "1", "0"], "File": "sparc", "Func": "sparc_split_reg_reg_legitimate", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3289, "Length": 143, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Function", "*", "X86TargetLowering", "::", "getSSPStackGuardCheck", "(", "const", "Module", "&", "M", ")", "const", "{", "if", "(", "Subtarget", ".", "getTargetTriple", "(", ")", ".", "isWindowsMSVCEnvironment", "(", ")", "||", "Subtarget", ".", "getTargetTriple", "(", ")", ".", "isWindowsItaniumEnvironment", "(", ")", ")", "{", "return", "M", ".", "getFunction", "(", "\"__security_check_cookie\"", ")", ";", "}", "return", "TargetLowering", "::", "getSSPStackGuardCheck", "(", "M", ")", ";", "}", ""], "natrual_language": ["If", "the", "target", "has", "a", "standard", "stack", "protection", "check", "function", "that", "performs", "validation", "and", "error", "handling", ",", "returns", "the", "function", "."], "TS_V_token": ["X86", "X86", "\"__security_check_cookie\""], "File": "X86ISelLowering (2)5", "Func": "getSSPStackGuardCheck", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3290, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "X86InstrInfo", "*", "getInstrInfo", "(", ")", "{", "return", "getTargetMachine", "(", ")", ".", "getInstrInfo", "(", ")", ";", "}", ""], "natrual_language": ["TargetInstrInfo", "getter", "."], "TS_V_token": ["X86", "X86"], "File": "X86ISelDAGToDAG103", "Func": "getInstrInfo", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3291, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "DataLayout", "*", "getDataLayout", "(", ")", "const", "override", "{", "return", "getSubtargetImpl", "(", ")", "->", "getDataLayout", "(", ")", ";", "}", ""], "natrual_language": ["Return", "the", "DataLayout", "associated", "with", "the", "module", "this", "SCEV", "instance", "is", "operating", "on", "."], "TS_V_token": ["SystemZ"], "File": "SystemZTargetMachine", "Func": "getDataLayout", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3292, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMFastISel", "::", "fastEmitInst_rri", "(", "unsigned", "MachineInstOpcode", ",", "const", "TargetRegisterClass", "*", "RC", ",", "unsigned", "Op0", ",", "bool", "Op0IsKill", ",", "unsigned", "Op1", ",", "bool", "Op1IsKill", ",", "uint64_t", "Imm", ")", "{", "unsigned", "ResultReg", "=", "createResultReg", "(", "RC", ")", ";", "const", "MCInstrDesc", "&", "II", "=", "TII", ".", "get", "(", "MachineInstOpcode", ")", ";", "Op0", "=", "constrainOperandRegClass", "(", "II", ",", "Op0", ",", "1", ")", ";", "Op1", "=", "constrainOperandRegClass", "(", "II", ",", "Op1", ",", "2", ")", ";", "if", "(", "II", ".", "getNumDefs", "(", ")", ">=", "1", ")", "{", "AddOptionalDefs", "(", "BuildMI", "(", "*", "FuncInfo", ".", "MBB", ",", "FuncInfo", ".", "InsertPt", ",", "DbgLoc", ",", "II", ",", "ResultReg", ")", ".", "addReg", "(", "Op0", ",", "Op0IsKill", "*", "RegState", "::", "Kill", ")", ".", "addReg", "(", "Op1", ",", "Op1IsKill", "*", "RegState", "::", "Kill", ")", ".", "addImm", "(", "Imm", ")", ")", ";", "}", "else", "{", "AddOptionalDefs", "(", "BuildMI", "(", "*", "FuncInfo", ".", "MBB", ",", "FuncInfo", ".", "InsertPt", ",", "DbgLoc", ",", "II", ")", ".", "addReg", "(", "Op0", ",", "Op0IsKill", "*", "RegState", "::", "Kill", ")", ".", "addReg", "(", "Op1", ",", "Op1IsKill", "*", "RegState", "::", "Kill", ")", ".", "addImm", "(", "Imm", ")", ")", ";", "AddOptionalDefs", "(", "BuildMI", "(", "*", "FuncInfo", ".", "MBB", ",", "FuncInfo", ".", "InsertPt", ",", "DbgLoc", ",", "TII", ".", "get", "(", "TargetOpcode", "::", "COPY", ")", ",", "ResultReg", ")", ".", "addReg", "(", "II", ".", "ImplicitDefs", "[", "0", "]", ")", ")", ";", "}", "return", "ResultReg", ";", "}", ""], "natrual_language": ["Emit", "a", "MachineInstr", "with", "two", "register", "operands", ",", "an", "immediate", ",", "and", "a", "result", "register", "in", "the", "given", "register", "class", "."], "TS_V_token": ["ARM", "ARM", "1", "2", "1", "0"], "File": "ARMFastISel (3)", "Func": "fastEmitInst_rri", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3293, "Length": 222, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "ix86_zero_extend_to_Pmode", "(", "rtx", "exp", ")", "{", "return", "force_reg", "(", "Pmode", ",", "convert_to_mode", "(", "Pmode", ",", "exp", ",", "1", ")", ")", ";", "}", ""], "natrual_language": ["Zero", "extend", "possibly", "SImode", "EXP", "to", "Pmode", "register", "."], "TS_V_token": ["i386", "1"], "File": "i386", "Func": "ix86_zero_extend_to_Pmode", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3294, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCFragment", "*", "findAssociatedFragment", "(", ")", "const", "override", "{", "return", "getSubExpr", "(", ")", "->", "findAssociatedFragment", "(", ")", ";", "}", ""], "natrual_language": ["Find", "the", "``", "associated", "section", "''", "for", "this", "expression", ",", "which", "is", "currently", "defined", "as", "the", "absolute", "section", "for", "constants", ",", "or", "otherwise", "the", "section", "associated", "with", "the", "first", "defined", "symbol", "in", "the", "expression", "."], "TS_V_token": ["CSKY"], "File": "CSKYMCExpr", "Func": "findAssociatedFragment", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3295, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMBaseInstrInfo", "::", "reMaterialize", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "DestReg", ",", "unsigned", "SubIdx", ",", "const", "MachineInstr", "*", "Orig", ",", "const", "TargetRegisterInfo", "&", "TRI", ")", "const", "{", "unsigned", "Opcode", "=", "Orig", "->", "getOpcode", "(", ")", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "{", "MachineInstr", "*", "MI", "=", "MBB", ".", "getParent", "(", ")", "->", "CloneMachineInstr", "(", "Orig", ")", ";", "MI", "->", "substituteRegister", "(", "Orig", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ",", "DestReg", ",", "SubIdx", ",", "TRI", ")", ";", "MBB", ".", "insert", "(", "I", ",", "MI", ")", ";", "break", ";", "}", "case", "ARM", "::", "tLDRpci_pic", ":", "case", "ARM", "::", "t2LDRpci_pic", ":", "{", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "unsigned", "CPI", "=", "Orig", "->", "getOperand", "(", "1", ")", ".", "getIndex", "(", ")", ";", "unsigned", "PCLabelId", "=", "duplicateCPV", "(", "MF", ",", "CPI", ")", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "MBB", ",", "I", ",", "Orig", "->", "getDebugLoc", "(", ")", ",", "get", "(", "Opcode", ")", ",", "DestReg", ")", ".", "addConstantPoolIndex", "(", "CPI", ")", ".", "addImm", "(", "PCLabelId", ")", ";", "MIB", "->", "setMemRefs", "(", "Orig", "->", "memoperands_begin", "(", ")", ",", "Orig", "->", "memoperands_end", "(", ")", ")", ";", "break", ";", "}", "}", "}", ""], "natrual_language": ["Re-issue", "the", "specified", "'original", "'", "instruction", "at", "the", "specific", "location", "targeting", "a", "new", "destination", "register", "."], "TS_V_token": ["ARM", "ARM", "0", "ARM::tLDRpci_pic", "ARM::t2LDRpci_pic", "1"], "File": "ARMBaseInstrInfo (2)", "Func": "reMaterialize", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3296, "Length": 199, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "rs6000_pass_by_reference", "(", "cumulative_args_t", ",", "const", "function_arg_info", "&", "arg", ")", "{", "if", "(", "!", "arg", ".", "type", ")", "return", "0", ";", "if", "(", "DEFAULT_ABI", "==", "ABI_V4", "&&", "TARGET_IEEEQUAD", "&&", "FLOAT128_IEEE_P", "(", "TYPE_MODE", "(", "arg", ".", "type", ")", ")", ")", "{", "if", "(", "TARGET_DEBUG_ARG", ")", "fprintf", "(", "stderr", ",", "\"function_arg_pass_by_reference: V4 IEEE 128-bit\\n\"", ")", ";", "return", "1", ";", "}", "if", "(", "DEFAULT_ABI", "==", "ABI_V4", "&&", "AGGREGATE_TYPE_P", "(", "arg", ".", "type", ")", ")", "{", "if", "(", "TARGET_DEBUG_ARG", ")", "fprintf", "(", "stderr", ",", "\"function_arg_pass_by_reference: V4 aggregate\\n\"", ")", ";", "return", "1", ";", "}", "if", "(", "int_size_in_bytes", "(", "arg", ".", "type", ")", "<", "0", ")", "{", "if", "(", "TARGET_DEBUG_ARG", ")", "fprintf", "(", "stderr", ",", "\"function_arg_pass_by_reference: variable size\\n\"", ")", ";", "return", "1", ";", "}", "if", "(", "TARGET_32BIT", "&&", "!", "TARGET_ALTIVEC_ABI", "&&", "ALTIVEC_VECTOR_MODE", "(", "arg", ".", "mode", ")", ")", "{", "if", "(", "TARGET_DEBUG_ARG", ")", "fprintf", "(", "stderr", ",", "\"function_arg_pass_by_reference: AltiVec\\n\"", ")", ";", "return", "1", ";", "}", "if", "(", "TREE_CODE", "(", "arg", ".", "type", ")", "==", "VECTOR_TYPE", "&&", "int_size_in_bytes", "(", "arg", ".", "type", ")", ">", "(", "TARGET_ALTIVEC_ABI", "?", "16", ":", "8", ")", ")", "{", "static", "bool", "warned_for_pass_big_vectors", "=", "false", ";", "if", "(", "TARGET_DEBUG_ARG", ")", "fprintf", "(", "stderr", ",", "\"function_arg_pass_by_reference: synthetic vector\\n\"", ")", ";", "if", "(", "!", "warned_for_pass_big_vectors", ")", "{", "warning", "(", "OPT_Wpsabi", ",", "\"GCC vector passed by reference: \"", "\"non-standard ABI extension with no compatibility \"", "\"guarantee\"", ")", ";", "warned_for_pass_big_vectors", "=", "true", ";", "}", "return", "1", ";", "}", "return", "0", ";", "}", ""], "natrual_language": ["A", "C", "expression", "that", "indicates", "when", "an", "argument", "must", "be", "passed", "by", "reference", ".", "If", "nonzero", "for", "an", "argument", ",", "a", "copy", "of", "that", "argument", "is", "made", "in", "memory", "and", "a", "pointer", "to", "the", "argument", "is", "passed", "instead", "of", "the", "argument", "itself", ".", "The", "pointer", "is", "passed", "in", "whatever", "way", "is", "appropriate", "for", "passing", "a", "pointer", "to", "that", "type", ".", "Under", "V.4", ",", "aggregates", "and", "long", "double", "are", "passed", "by", "reference", ".", "As", "an", "extension", "to", "all", "32-bit", "ABIs", ",", "AltiVec", "vectors", "are", "passed", "by", "reference", "unless", "the", "AltiVec", "vector", "extension", "ABI", "is", "in", "force", ".", "As", "an", "extension", "to", "all", "ABIs", ",", "variable", "sized", "types", "are", "passed", "by", "reference", "."], "TS_V_token": ["rs6000", "0", "\"function_arg_pass_by_reference: V4 IEEE 128-bit\\n\"", "1", "\"function_arg_pass_by_reference: V4 aggregate\\n\"", "1", "0", "\"function_arg_pass_by_reference: variable size\\n\"", "1", "\"function_arg_pass_by_reference: AltiVec\\n\"", "1", "16", "8", "\"function_arg_pass_by_reference: synthetic vector\\n\"", "\"GCC vector passed by reference: \"", "\"non-standard ABI extension with no compatibility \"", "\"guarantee\"", "1", "0"], "File": "rs6000-call", "Func": "rs6000_pass_by_reference", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3297, "Length": 213, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "pa_d_handle_target_float_abi", "(", "void", ")", "{", "const", "char", "*", "abi", ";", "if", "(", "TARGET_DISABLE_FPREGS", "||", "TARGET_SOFT_FLOAT", ")", "abi", "=", "\"soft\"", ";", "else", "abi", "=", "\"hard\"", ";", "return", "build_string_literal", "(", "strlen", "(", "abi", ")", "+", "1", ",", "abi", ")", ";", "}", ""], "natrual_language": ["Handle", "a", "call", "to", "`", "__traits", "(", "getTargetInfo", ",", "``", "floatAbi", "''", ")", "'", "."], "TS_V_token": ["pa", "\"soft\"", "\"hard\"", "1"], "File": "pa-d1", "Func": "pa_d_handle_target_float_abi", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3298, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "sparc_vectorize_vec_perm_const", "(", "machine_mode", "vmode", ",", "rtx", "target", ",", "rtx", "op0", ",", "rtx", "op1", ",", "const", "vec_perm_indices", "&", "sel", ")", "{", "if", "(", "!", "TARGET_VIS2", ")", "return", "false", ";", "if", "(", "!", "target", ")", "return", "true", ";", "if", "(", "vmode", "!=", "V8QImode", ")", "return", "false", ";", "rtx", "nop0", "=", "force_reg", "(", "vmode", ",", "op0", ")", ";", "if", "(", "op0", "==", "op1", ")", "op1", "=", "nop0", ";", "op0", "=", "nop0", ";", "op1", "=", "force_reg", "(", "vmode", ",", "op1", ")", ";", "unsigned", "int", "i", ",", "mask", ";", "for", "(", "i", "=", "mask", "=", "0", ";", "i", "<", "8", ";", "++", "i", ")", "mask", "|=", "(", "sel", "[", "i", "]", "&", "0xf", ")", "<<", "(", "28", "-", "i", "*", "4", ")", ";", "rtx", "mask_rtx", "=", "force_reg", "(", "SImode", ",", "gen_int_mode", "(", "mask", ",", "SImode", ")", ")", ";", "emit_insn", "(", "gen_bmasksi_vis", "(", "gen_reg_rtx", "(", "SImode", ")", ",", "mask_rtx", ",", "const0_rtx", ")", ")", ";", "emit_insn", "(", "gen_bshufflev8qi_vis", "(", "target", ",", "op0", ",", "op1", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Implement", "TARGET_VEC_PERM_CONST", "."], "TS_V_token": ["sparc", "0", "8", "0xf", "28", "4"], "File": "sparc", "Func": "sparc_vectorize_vec_perm_const", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3299, "Length": 166, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCSection", "*", "X86WindowsTargetObjectFile", "::", "getSectionForConstant", "(", "SectionKind", "Kind", ",", "const", "Constant", "*", "C", ")", "const", "{", "if", "(", "Kind", ".", "isMergeableConst", "(", ")", "&&", "C", ")", "{", "const", "unsigned", "Characteristics", "=", "COFF", "::", "IMAGE_SCN_CNT_INITIALIZED_DATA", "|", "COFF", "::", "IMAGE_SCN_MEM_READ", "|", "COFF", "::", "IMAGE_SCN_LNK_COMDAT", ";", "std", "::", "string", "COMDATSymName", ";", "if", "(", "Kind", ".", "isMergeableConst4", "(", ")", "||", "Kind", ".", "isMergeableConst8", "(", ")", ")", "COMDATSymName", "=", "\"__real@\"", "+", "scalarConstantToHexString", "(", "C", ")", ";", "else", "if", "(", "Kind", ".", "isMergeableConst16", "(", ")", ")", "COMDATSymName", "=", "\"__xmm@\"", "+", "scalarConstantToHexString", "(", "C", ")", ";", "if", "(", "!", "COMDATSymName", ".", "empty", "(", ")", ")", "return", "getContext", "(", ")", ".", "getCOFFSection", "(", "\".rdata\"", ",", "Characteristics", ",", "Kind", ",", "COMDATSymName", ",", "COFF", "::", "IMAGE_COMDAT_SELECT_ANY", ")", ";", "}", "return", "TargetLoweringObjectFile", "::", "getSectionForConstant", "(", "Kind", ",", "C", ")", ";", "}", ""], "natrual_language": ["Given", "a", "constant", "with", "the", "SectionKind", ",", "return", "a", "section", "that", "it", "should", "be", "placed", "in", "."], "TS_V_token": ["X86", "X86", "\"__real@\"", "\"__xmm@\"", "\".rdata\""], "File": "X86TargetObjectFile32", "Func": "getSectionForConstant", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3300, "Length": 130, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "push", "(", "int", "rn", ")", "{", "rtx", "x", ";", "if", "(", "rn", "==", "FPUL_REG", ")", "x", "=", "gen_push_fpul", "(", ")", ";", "else", "if", "(", "rn", "==", "FPSCR_REG", ")", "x", "=", "gen_push_fpscr", "(", ")", ";", "else", "if", "(", "(", "TARGET_SH4", "||", "TARGET_SH2A_DOUBLE", ")", "&&", "TARGET_FMOVD", "&&", "!", "TARGET_FPU_SINGLE", "&&", "FP_OR_XD_REGISTER_P", "(", "rn", ")", ")", "{", "if", "(", "FP_REGISTER_P", "(", "rn", ")", "&&", "(", "rn", "-", "FIRST_FP_REG", ")", "&", "1", ")", "return", "NULL_RTX", ";", "x", "=", "gen_push_4", "(", "gen_rtx_REG", "(", "DFmode", ",", "rn", ")", ")", ";", "}", "else", "if", "(", "TARGET_SH2E", "&&", "FP_REGISTER_P", "(", "rn", ")", ")", "x", "=", "gen_push_e", "(", "gen_rtx_REG", "(", "SFmode", ",", "rn", ")", ")", ";", "else", "x", "=", "gen_push", "(", "gen_rtx_REG", "(", "SImode", ",", "rn", ")", ")", ";", "x", "=", "frame_insn", "(", "x", ")", ";", "add_reg_note", "(", "x", ",", "REG_INC", ",", "gen_rtx_REG", "(", "SImode", ",", "STACK_POINTER_REGNUM", ")", ")", ";", "return", "x", ";", "}", ""], "natrual_language": ["Output", "RTL", "to", "push", "register", "RN", "onto", "the", "stack", "."], "TS_V_token": ["sh", "1"], "File": "sh4", "Func": "push", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3301, "Length": 147, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "VETargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "case", "VEISD", "::", "NAME", ":", "\\", "return", "\"VEISD::\"", "#", "NAME", ";", "switch", "(", "(", "VEISD", "::", "NodeType", ")", "Opcode", ")", "{", "case", "VEISD", "::", "FIRST_NUMBER", ":", "break", ";", "TARGET_NODE_CASE", "(", "CALL", ")", "TARGET_NODE_CASE", "(", "EH_SJLJ_LONGJMP", ")", "TARGET_NODE_CASE", "(", "EH_SJLJ_SETJMP", ")", "TARGET_NODE_CASE", "(", "EH_SJLJ_SETUP_DISPATCH", ")", "TARGET_NODE_CASE", "(", "GETFUNPLT", ")", "TARGET_NODE_CASE", "(", "GETSTACKTOP", ")", "TARGET_NODE_CASE", "(", "GETTLSADDR", ")", "TARGET_NODE_CASE", "(", "GLOBAL_BASE_REG", ")", "TARGET_NODE_CASE", "(", "Hi", ")", "TARGET_NODE_CASE", "(", "Lo", ")", "TARGET_NODE_CASE", "(", "MEMBARRIER", ")", "TARGET_NODE_CASE", "(", "RET_FLAG", ")", "TARGET_NODE_CASE", "(", "TS1AM", ")", "TARGET_NODE_CASE", "(", "VEC_UNPACK_LO", ")", "TARGET_NODE_CASE", "(", "VEC_UNPACK_HI", ")", "TARGET_NODE_CASE", "(", "VEC_PACK", ")", "TARGET_NODE_CASE", "(", "VEC_BROADCAST", ")", "TARGET_NODE_CASE", "(", "REPL_I32", ")", "TARGET_NODE_CASE", "(", "REPL_F32", ")", "TARGET_NODE_CASE", "(", "LEGALAVL", ")", "}", "return", "nullptr", ";", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["VE", "VE", "VEISD::NAME", "\"VEISD::\"", "VEISD::NodeType", "VEISD::FIRST_NUMBER", "VE", "VE", "VE", "VE"], "File": "VEISelLowering8", "Func": "getTargetNodeName", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3302, "Length": 125, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86RegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "return", "TFI", "->", "hasFP", "(", "MF", ")", "?", "FramePtr", ":", "StackPtr", ";", "}", ""], "natrual_language": ["Debug", "information", "queries", "."], "TS_V_token": ["X86", "X86"], "File": "X86RegisterInfo2", "Func": "getFrameRegister", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3303, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "symbian_add_attribute", "(", "tree", "node", ",", "const", "char", "*", "attr_name", ")", "{", "tree", "attrs", ";", "tree", "attr", ";", "attrs", "=", "DECL_P", "(", "node", ")", "?", "DECL_ATTRIBUTES", "(", "node", ")", ":", "TYPE_ATTRIBUTES", "(", "node", ")", ";", "if", "(", "lookup_attribute", "(", "attr_name", ",", "attrs", ")", "!=", "NULL_TREE", ")", "return", ";", "attr", "=", "get_identifier", "(", "attr_name", ")", ";", "if", "(", "DECL_P", "(", "node", ")", ")", "DECL_ATTRIBUTES", "(", "node", ")", "=", "tree_cons", "(", "attr", ",", "NULL_TREE", ",", "attrs", ")", ";", "else", "TYPE_ATTRIBUTES", "(", "node", ")", "=", "tree_cons", "(", "attr", ",", "NULL_TREE", ",", "attrs", ")", ";", "fprintf", "(", "stderr", ",", "\"propogate %s attribute\"", ",", "attr_name", ")", ";", "print_node_brief", "(", "stderr", ",", "\" to\"", ",", "node", ",", "0", ")", ";", "fprintf", "(", "stderr", ",", "\"\\n\"", ")", ";", "}", ""], "natrual_language": ["Add", "the", "named", "attribute", "to", "the", "given", "node", ".", "Copes", "with", "both", "DECLs", "and", "TYPEs", ".", "Will", "only", "add", "the", "attribute", "if", "it", "is", "not", "already", "present", "."], "TS_V_token": ["sh", "\"propogate %s attribute\"", "\" to\"", "0", "\"\\n\""], "File": "symbian", "Func": "symbian_add_attribute", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3304, "Length": 120, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZTargetLowering", "::", "isFPImmLegal", "(", "const", "APFloat", "&", "Imm", ",", "EVT", "VT", ",", "bool", "ForCodeSize", ")", "const", "{", "if", "(", "Imm", ".", "isZero", "(", ")", "||", "Imm", ".", "isNegZero", "(", ")", ")", "return", "true", ";", "return", "SystemZVectorConstantInfo", "(", "Imm", ")", ".", "isVectorConstantLegal", "(", "Subtarget", ")", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "can", "instruction", "select", "the", "specified", "FP", "immediate", "natively", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ"], "File": "SystemZISelLowering (2)2", "Func": "isFPImmLegal", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3305, "Length": 47, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_rtx_costs", "(", "rtx", "x", ",", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "int", "outer_code", ",", "int", "opno", "ATTRIBUTE_UNUSED", ",", "int", "*", "total", ",", "bool", "speed", ")", "{", "bool", "result", ";", "int", "code", "=", "GET_CODE", "(", "x", ")", ";", "gcc_assert", "(", "current_tune", "->", "insn_extra_cost", ")", ";", "result", "=", "arm_rtx_costs_internal", "(", "x", ",", "(", "enum", "rtx_code", ")", "code", ",", "(", "enum", "rtx_code", ")", "outer_code", ",", "current_tune", "->", "insn_extra_cost", ",", "total", ",", "speed", ")", ";", "if", "(", "dump_file", "&&", "(", "dump_flags", "&", "TDF_DETAILS", ")", ")", "{", "print_rtl_single", "(", "dump_file", ",", "x", ")", ";", "fprintf", "(", "dump_file", ",", "\"\\n%s cost: %d (%s)\\n\"", ",", "speed", "?", "\"Hot\"", ":", "\"Cold\"", ",", "*", "total", ",", "result", "?", "\"final\"", ":", "\"partial\"", ")", ";", "}", "return", "result", ";", "}", ""], "natrual_language": ["RTX", "costs", "when", "optimizing", "for", "size", "."], "TS_V_token": ["arm", "\"\\n%s cost: %d (%s)\\n\"", "\"Hot\"", "\"Cold\"", "\"final\"", "\"partial\""], "File": "arm6", "Func": "arm_rtx_costs", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3306, "Length": 116, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCCTRLoops", "::", "runOnFunction", "(", "Function", "&", "F", ")", "{", "if", "(", "skipFunction", "(", "F", ")", ")", "return", "false", ";", "auto", "*", "TPC", "=", "getAnalysisIfAvailable", "<", "TargetPassConfig", ">", "(", ")", ";", "if", "(", "!", "TPC", ")", "return", "false", ";", "TM", "=", "&", "TPC", "->", "getTM", "<", "PPCTargetMachine", ">", "(", ")", ";", "STI", "=", "TM", "->", "getSubtargetImpl", "(", "F", ")", ";", "TLI", "=", "STI", "->", "getTargetLowering", "(", ")", ";", "LI", "=", "&", "getAnalysis", "<", "LoopInfoWrapperPass", ">", "(", ")", ".", "getLoopInfo", "(", ")", ";", "SE", "=", "&", "getAnalysis", "<", "ScalarEvolutionWrapperPass", ">", "(", ")", ".", "getSE", "(", ")", ";", "DT", "=", "&", "getAnalysis", "<", "DominatorTreeWrapperPass", ">", "(", ")", ".", "getDomTree", "(", ")", ";", "TTI", "=", "&", "getAnalysis", "<", "TargetTransformInfoWrapperPass", ">", "(", ")", ".", "getTTI", "(", "F", ")", ";", "DL", "=", "&", "F", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "auto", "*", "TLIP", "=", "getAnalysisIfAvailable", "<", "TargetLibraryInfoWrapperPass", ">", "(", ")", ";", "LibInfo", "=", "TLIP", "?", "&", "TLIP", "->", "getTLI", "(", ")", ":", "nullptr", ";", "PreserveLCSSA", "=", "mustPreserveAnalysisID", "(", "LCSSAID", ")", ";", "SchedModel", ".", "init", "(", "STI", ")", ";", "bool", "MadeChange", "=", "false", ";", "for", "(", "LoopInfo", "::", "iterator", "I", "=", "LI", "->", "begin", "(", ")", ",", "E", "=", "LI", "->", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "Loop", "*", "L", "=", "*", "I", ";", "if", "(", "!", "L", "->", "getParentLoop", "(", ")", ")", "MadeChange", "|=", "convertToCTRLoop", "(", "L", ")", ";", "}", "return", "MadeChange", ";", "}", ""], "natrual_language": ["runOnFunction", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "the", "per-function", "processing", "of", "the", "pass", "."], "TS_V_token": ["PowerPC", "PPC", "PPC"], "File": "PPCCTRLoops40", "Func": "runOnFunction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3307, "Length": 238, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "sfunc_uses_reg", "(", "rtx_insn", "*", "insn", ")", "{", "int", "i", ";", "rtx", "pattern", ",", "part", ",", "reg_part", ",", "reg", ";", "if", "(", "!", "NONJUMP_INSN_P", "(", "insn", ")", ")", "return", "NULL_RTX", ";", "pattern", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "pattern", ")", "!=", "PARALLEL", "||", "get_attr_type", "(", "insn", ")", "!=", "TYPE_SFUNC", ")", "return", "NULL_RTX", ";", "for", "(", "reg_part", "=", "NULL_RTX", ",", "i", "=", "XVECLEN", "(", "pattern", ",", "0", ")", "-", "1", ";", "i", ">=", "1", ";", "i", "--", ")", "{", "part", "=", "XVECEXP", "(", "pattern", ",", "0", ",", "i", ")", ";", "if", "(", "GET_CODE", "(", "part", ")", "==", "USE", "&&", "GET_MODE", "(", "XEXP", "(", "part", ",", "0", ")", ")", "==", "SImode", ")", "reg_part", "=", "part", ";", "}", "if", "(", "!", "reg_part", ")", "return", "NULL_RTX", ";", "reg", "=", "XEXP", "(", "reg_part", ",", "0", ")", ";", "for", "(", "int", "i", "=", "XVECLEN", "(", "pattern", ",", "0", ")", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "part", "=", "XVECEXP", "(", "pattern", ",", "0", ",", "i", ")", ";", "if", "(", "part", "==", "reg_part", "||", "GET_CODE", "(", "part", ")", "==", "CLOBBER", ")", "continue", ";", "if", "(", "reg_mentioned_p", "(", "reg", ",", "(", "(", "GET_CODE", "(", "part", ")", "==", "SET", "&&", "REG_P", "(", "SET_DEST", "(", "part", ")", ")", ")", "?", "SET_SRC", "(", "part", ")", ":", "part", ")", ")", ")", "return", "NULL_RTX", ";", "}", "return", "reg", ";", "}", ""], "natrual_language": ["If", "the", "instruction", "INSN", "is", "implemented", "by", "a", "special", "function", ",", "and", "we", "can", "positively", "find", "the", "register", "that", "is", "used", "to", "call", "the", "sfunc", ",", "and", "this", "register", "is", "not", "used", "anywhere", "else", "in", "this", "instruction", "-", "except", "as", "the", "destination", "of", "a", "set", ",", "return", "this", "register", ";", "else", ",", "return", "0", "."], "TS_V_token": ["sh", "0", "1", "1", "0", "0", "0", "0", "1", "0", "0"], "File": "sh", "Func": "sfunc_uses_reg", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3308, "Length": 225, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMBaseInstrInfo", "::", "insertBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "*", "TBB", ",", "MachineBasicBlock", "*", "FBB", ",", "ArrayRef", "<", "MachineOperand", ">", "Cond", ",", "const", "DebugLoc", "&", "DL", ",", "int", "*", "BytesAdded", ")", "const", "{", "assert", "(", "!", "BytesAdded", "&&", "\"code size not handled\"", ")", ";", "ARMFunctionInfo", "*", "AFI", "=", "MBB", ".", "getParent", "(", ")", "->", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "int", "BOpc", "=", "!", "AFI", "->", "isThumbFunction", "(", ")", "?", "ARM", "::", "B", ":", "(", "AFI", "->", "isThumb2Function", "(", ")", "?", "ARM", "::", "t2B", ":", "ARM", "::", "tB", ")", ";", "int", "BccOpc", "=", "!", "AFI", "->", "isThumbFunction", "(", ")", "?", "ARM", "::", "Bcc", ":", "(", "AFI", "->", "isThumb2Function", "(", ")", "?", "ARM", "::", "t2Bcc", ":", "ARM", "::", "tBcc", ")", ";", "bool", "isThumb", "=", "AFI", "->", "isThumbFunction", "(", ")", "||", "AFI", "->", "isThumb2Function", "(", ")", ";", "assert", "(", "TBB", "&&", "\"insertBranch must not be told to insert a fallthrough\"", ")", ";", "assert", "(", "(", "Cond", ".", "size", "(", ")", "==", "2", "||", "Cond", ".", "size", "(", ")", "==", "0", "||", "Cond", ".", "size", "(", ")", "==", "3", ")", "&&", "\"ARM branch conditions have two or three components!\"", ")", ";", "if", "(", "!", "FBB", ")", "{", "if", "(", "Cond", ".", "empty", "(", ")", ")", "{", "if", "(", "isThumb", ")", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "BOpc", ")", ")", ".", "addMBB", "(", "TBB", ")", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "else", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "BOpc", ")", ")", ".", "addMBB", "(", "TBB", ")", ";", "}", "else", "if", "(", "Cond", ".", "size", "(", ")", "==", "2", ")", "{", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "BccOpc", ")", ")", ".", "addMBB", "(", "TBB", ")", ".", "addImm", "(", "Cond", "[", "0", "]", ".", "getImm", "(", ")", ")", ".", "add", "(", "Cond", "[", "1", "]", ")", ";", "}", "else", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "Cond", "[", "0", "]", ".", "getImm", "(", ")", ")", ")", ".", "add", "(", "Cond", "[", "1", "]", ")", ".", "addMBB", "(", "TBB", ")", ";", "return", "1", ";", "}", "if", "(", "Cond", ".", "size", "(", ")", "==", "2", ")", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "BccOpc", ")", ")", ".", "addMBB", "(", "TBB", ")", ".", "addImm", "(", "Cond", "[", "0", "]", ".", "getImm", "(", ")", ")", ".", "add", "(", "Cond", "[", "1", "]", ")", ";", "else", "if", "(", "Cond", ".", "size", "(", ")", "==", "3", ")", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "Cond", "[", "0", "]", ".", "getImm", "(", ")", ")", ")", ".", "add", "(", "Cond", "[", "1", "]", ")", ".", "addMBB", "(", "TBB", ")", ";", "if", "(", "isThumb", ")", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "BOpc", ")", ")", ".", "addMBB", "(", "FBB", ")", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "else", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "BOpc", ")", ")", ".", "addMBB", "(", "FBB", ")", ";", "return", "2", ";", "}", ""], "natrual_language": ["Insert", "branch", "code", "into", "the", "end", "of", "the", "specified", "MachineBasicBlock", "."], "TS_V_token": ["ARM", "ARM", "\"code size not handled\"", "ARM", "ARM", "ARM::B", "ARM::t2B", "ARM::tB", "ARM::Bcc", "ARM::t2Bcc", "ARM::tBcc", "\"insertBranch must not be told to insert a fallthrough\"", "2", "0", "3", "\"ARM branch conditions have two or three components!\"", "ARMCC::AL", "2", "0", "1", "0", "1", "1", "2", "0", "1", "3", "0", "1", "ARMCC::AL", "2"], "File": "ARMBaseInstrInfo70", "Func": "insertBranch", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3309, "Length": 475, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMPassConfig", "::", "addPreRegAlloc", "(", ")", "{", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "addPass", "(", "createMVEVPTOptimisationsPass", "(", ")", ")", ";", "addPass", "(", "createMLxExpansionPass", "(", ")", ")", ";", "if", "(", "EnableARMLoadStoreOpt", ")", "addPass", "(", "createARMLoadStoreOptimizationPass", "(", "true", ")", ")", ";", "if", "(", "!", "DisableA15SDOptimization", ")", "addPass", "(", "createA15SDOptimizerPass", "(", ")", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "register", "allocation", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM"], "File": "ARMTargetMachine103", "Func": "addPreRegAlloc", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3310, "Length": 58, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCFixupKindInfo", "&", "getFixupKindInfo", "(", "MCFixupKind", "Kind", ")", "const", "{", "const", "static", "MCFixupKindInfo", "Infos", "[", "Mips", "::", "NumTargetFixupKinds", "]", "=", "{", "{", "\"fixup_Mips_16\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_Mips_32\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"fixup_Mips_REL32\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"fixup_Mips_26\"", ",", "0", ",", "26", ",", "0", "}", ",", "{", "\"fixup_Mips_HI16\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_Mips_LO16\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_Mips_GPREL16\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_Mips_LITERAL\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_Mips_GOT_Global\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_Mips_GOT_Local\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_Mips_PC16\"", ",", "0", ",", "16", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_Mips_CALL16\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_Mips_GPREL32\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"fixup_Mips_SHIFT5\"", ",", "6", ",", "5", ",", "0", "}", ",", "{", "\"fixup_Mips_SHIFT6\"", ",", "6", ",", "5", ",", "0", "}", ",", "{", "\"fixup_Mips_64\"", ",", "0", ",", "64", ",", "0", "}", ",", "{", "\"fixup_Mips_TLSGD\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_Mips_GOTTPREL\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_Mips_TPREL_HI\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_Mips_TPREL_LO\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_Mips_TLSLDM\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_Mips_DTPREL_HI\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_Mips_DTPREL_LO\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_Mips_Branch_PCRel\"", ",", "0", ",", "16", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", "}", ";", "if", "(", "Kind", "<", "FirstTargetFixupKind", ")", "return", "MCAsmBackend", "::", "getFixupKindInfo", "(", "Kind", ")", ";", "assert", "(", "unsigned", "(", "Kind", "-", "FirstTargetFixupKind", ")", "<", "getNumFixupKinds", "(", ")", "&&", "\"Invalid kind!\"", ")", ";", "return", "Infos", "[", "Kind", "-", "FirstTargetFixupKind", "]", ";", "}", ""], "natrual_language": ["Get", "information", "on", "a", "fixup", "kind", "."], "TS_V_token": ["Mips", "Mips::NumTargetFixupKinds", "\"fixup_Mips_16\"", "0", "16", "0", "\"fixup_Mips_32\"", "0", "32", "0", "\"fixup_Mips_REL32\"", "0", "32", "0", "\"fixup_Mips_26\"", "0", "26", "0", "\"fixup_Mips_HI16\"", "0", "16", "0", "\"fixup_Mips_LO16\"", "0", "16", "0", "\"fixup_Mips_GPREL16\"", "0", "16", "0", "\"fixup_Mips_LITERAL\"", "0", "16", "0", "\"fixup_Mips_GOT_Global\"", "0", "16", "0", "\"fixup_Mips_GOT_Local\"", "0", "16", "0", "\"fixup_Mips_PC16\"", "0", "16", "\"fixup_Mips_CALL16\"", "0", "16", "0", "\"fixup_Mips_GPREL32\"", "0", "32", "0", "\"fixup_Mips_SHIFT5\"", "6", "5", "0", "\"fixup_Mips_SHIFT6\"", "6", "5", "0", "\"fixup_Mips_64\"", "0", "64", "0", "\"fixup_Mips_TLSGD\"", "0", "16", "0", "\"fixup_Mips_GOTTPREL\"", "0", "16", "0", "\"fixup_Mips_TPREL_HI\"", "0", "16", "0", "\"fixup_Mips_TPREL_LO\"", "0", "16", "0", "\"fixup_Mips_TLSLDM\"", "0", "16", "0", "\"fixup_Mips_DTPREL_HI\"", "0", "16", "0", "\"fixup_Mips_DTPREL_LO\"", "0", "16", "0", "\"fixup_Mips_Branch_PCRel\"", "0", "16", "\"Invalid kind!\""], "File": "MipsAsmBackend31", "Func": "getFixupKindInfo", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3311, "Length": 305, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Register", "getStackAddress", "(", "uint64_t", "Size", ",", "int64_t", "Offset", ",", "MachinePointerInfo", "&", "MPO", ")", "override", "{", "LLT", "p0", "=", "LLT", "::", "pointer", "(", "0", ",", "64", ")", ";", "LLT", "s64", "=", "LLT", "::", "scalar", "(", "64", ")", ";", "Register", "SPReg", "=", "MRI", ".", "createGenericVirtualRegister", "(", "p0", ")", ";", "MIRBuilder", ".", "buildCopy", "(", "SPReg", ",", "Register", "(", "AArch64", "::", "SP", ")", ")", ";", "Register", "OffsetReg", "=", "MRI", ".", "createGenericVirtualRegister", "(", "s64", ")", ";", "MIRBuilder", ".", "buildConstant", "(", "OffsetReg", ",", "Offset", ")", ";", "Register", "AddrReg", "=", "MRI", ".", "createGenericVirtualRegister", "(", "p0", ")", ";", "MIRBuilder", ".", "buildGEP", "(", "AddrReg", ",", "SPReg", ",", "OffsetReg", ")", ";", "MPO", "=", "MachinePointerInfo", "::", "getStack", "(", "MIRBuilder", ".", "getMF", "(", ")", ",", "Offset", ")", ";", "return", "AddrReg", ";", "}", ""], "natrual_language": ["Materialize", "a", "VReg", "containing", "the", "address", "of", "the", "specified", "stack-based", "object", "."], "TS_V_token": ["AArch64", "0", "64", "64", "AArch64::SP"], "File": "AArch64CallLowering14", "Func": "getStackAddress", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3312, "Length": 120, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "mmix_function_value", "(", "const_tree", "valtype", ",", "const_tree", "func", "ATTRIBUTE_UNUSED", ",", "bool", "outgoing", ")", "{", "machine_mode", "mode", "=", "TYPE_MODE", "(", "valtype", ")", ";", "machine_mode", "cmode", ";", "int", "first_val_regnum", "=", "MMIX_OUTGOING_RETURN_VALUE_REGNUM", ";", "rtx", "vec", "[", "MMIX_MAX_REGS_FOR_VALUE", "]", ";", "int", "i", ";", "int", "nregs", ";", "if", "(", "!", "outgoing", ")", "return", "gen_rtx_REG", "(", "mode", ",", "MMIX_RETURN_VALUE_REGNUM", ")", ";", "if", "(", "TARGET_ABI_GNU", "||", "GET_MODE_BITSIZE", "(", "mode", ")", "<=", "BITS_PER_WORD", ")", "return", "gen_rtx_REG", "(", "mode", ",", "MMIX_OUTGOING_RETURN_VALUE_REGNUM", ")", ";", "if", "(", "COMPLEX_MODE_P", "(", "mode", ")", ")", "cmode", "=", "TYPE_MODE", "(", "TREE_TYPE", "(", "valtype", ")", ")", ";", "else", "{", "if", "(", "mode", "!=", "TImode", ")", "sorry", "(", "\"support for mode %qs\"", ",", "GET_MODE_NAME", "(", "mode", ")", ")", ";", "cmode", "=", "DImode", ";", "}", "nregs", "=", "(", "(", "GET_MODE_BITSIZE", "(", "mode", ")", "+", "BITS_PER_WORD", "-", "1", ")", "/", "BITS_PER_WORD", ")", ";", "if", "(", "nregs", ">", "MMIX_MAX_REGS_FOR_VALUE", ")", "internal_error", "(", "\"too large function value type, needs %d registers,\\ have only %d registers for this\"", ",", "nregs", ",", "MMIX_MAX_REGS_FOR_VALUE", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "nregs", "-", "1", ";", "i", "++", ")", "vec", "[", "i", "]", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "cmode", ",", "first_val_regnum", "+", "i", ")", ",", "GEN_INT", "(", "(", "i", "+", "1", ")", "*", "BITS_PER_UNIT", ")", ")", ";", "vec", "[", "nregs", "-", "1", "]", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "cmode", ",", "first_val_regnum", "+", "nregs", "-", "1", ")", ",", "const0_rtx", ")", ";", "return", "gen_rtx_PARALLEL", "(", "mode", ",", "gen_rtvec_v", "(", "nregs", ",", "vec", ")", ")", ";", "}", ""], "natrual_language": ["Implements", "TARGET_FUNCTION_VALUE", "."], "TS_V_token": ["mmix", "\"support for mode %qs\"", "1", "\"too large function value type, needs %d registers,\\ have only %d registers for this\"", "0", "1", "1", "1", "1"], "File": "mmix", "Func": "mmix_function_value", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3313, "Length": 231, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLoweringBase", "::", "LegalizeTypeAction", "X86TargetLowering", "::", "getPreferredVectorAction", "(", "MVT", "VT", ")", "const", "{", "if", "(", "VT", "==", "MVT", "::", "v32i1", "&&", "Subtarget", ".", "hasAVX512", "(", ")", "&&", "!", "Subtarget", ".", "hasBWI", "(", ")", ")", "return", "TypeSplitVector", ";", "if", "(", "VT", ".", "getVectorNumElements", "(", ")", "!=", "1", "&&", "VT", ".", "getVectorElementType", "(", ")", "!=", "MVT", "::", "i1", ")", "return", "TypeWidenVector", ";", "return", "TargetLoweringBase", "::", "getPreferredVectorAction", "(", "VT", ")", ";", "}", ""], "natrual_language": ["Customize", "the", "preferred", "legalization", "strategy", "for", "certain", "types", "."], "TS_V_token": ["X86", "X86", "MVT::v32i1", "1", "MVT::i1"], "File": "X86ISelLowering (2)6", "Func": "getPreferredVectorAction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3314, "Length": 68, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "nonindexed_address_p", "(", "rtx", "x", ",", "bool", "strict", ")", "{", "rtx", "xfoo0", ";", "if", "(", "REG_P", "(", "x", ")", ")", "{", "if", "(", "!", "reload_in_progress", "||", "reg_equiv_mem", "(", "REGNO", "(", "x", ")", ")", "==", "0", "||", "indirectable_address_p", "(", "reg_equiv_mem", "(", "REGNO", "(", "x", ")", ")", ",", "strict", ",", "false", ")", ")", "return", "true", ";", "}", "if", "(", "indirectable_constant_address_p", "(", "x", ",", "false", ")", ")", "return", "true", ";", "if", "(", "indirectable_address_p", "(", "x", ",", "strict", ",", "false", ")", ")", "return", "true", ";", "xfoo0", "=", "XEXP", "(", "x", ",", "0", ")", ";", "if", "(", "MEM_P", "(", "x", ")", "&&", "indirectable_address_p", "(", "xfoo0", ",", "strict", ",", "true", ")", ")", "return", "true", ";", "if", "(", "(", "GET_CODE", "(", "x", ")", "==", "PRE_DEC", "||", "GET_CODE", "(", "x", ")", "==", "POST_INC", ")", "&&", "BASE_REGISTER_P", "(", "xfoo0", ",", "strict", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "1", "if", "x", "is", "a", "valid", "address", "not", "using", "indexing", ".", "(", "This", "much", "is", "the", "easy", "part", ".", ")"], "TS_V_token": ["vax", "0", "0"], "File": "vax", "Func": "nonindexed_address_p", "Target": "vax", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3315, "Length": 142, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMCallLowering", "::", "splitToValueTypes", "(", "const", "ArgInfo", "&", "OrigArg", ",", "SmallVectorImpl", "<", "ArgInfo", ">", "&", "SplitArgs", ",", "const", "DataLayout", "&", "DL", ",", "MachineRegisterInfo", "&", "MRI", ")", "const", "{", "const", "ARMTargetLowering", "&", "TLI", "=", "*", "getTLI", "<", "ARMTargetLowering", ">", "(", ")", ";", "LLVMContext", "&", "Ctx", "=", "OrigArg", ".", "Ty", "->", "getContext", "(", ")", ";", "SmallVector", "<", "EVT", ",", "4", ">", "SplitVTs", ";", "SmallVector", "<", "uint64_t", ",", "4", ">", "Offsets", ";", "ComputeValueVTs", "(", "TLI", ",", "DL", ",", "OrigArg", ".", "Ty", ",", "SplitVTs", ",", "&", "Offsets", ",", "0", ")", ";", "assert", "(", "SplitVTs", ".", "size", "(", ")", "==", "1", "&&", "\"Unsupported type\"", ")", ";", "SplitArgs", ".", "emplace_back", "(", "OrigArg", ".", "Reg", ",", "SplitVTs", "[", "0", "]", ".", "getTypeForEVT", "(", "Ctx", ")", ",", "OrigArg", ".", "Flags", ",", "OrigArg", ".", "IsFixed", ")", ";", "}", ""], "natrual_language": ["Break", "OrigArgInfo", "into", "one", "or", "more", "pieces", "the", "calling", "convention", "can", "process", ",", "returned", "in", "SplitArgs", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "4", "4", "0", "1", "\"Unsupported type\"", "0"], "File": "ARMCallLowering18", "Func": "splitToValueTypes", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3316, "Length": 128, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCTargetLowering", "::", "insertCopiesSplitCSR", "(", "MachineBasicBlock", "*", "Entry", ",", "const", "SmallVectorImpl", "<", "MachineBasicBlock", "*", ">", "&", "Exits", ")", "const", "{", "const", "PPCRegisterInfo", "*", "TRI", "=", "Subtarget", ".", "getRegisterInfo", "(", ")", ";", "const", "MCPhysReg", "*", "IStart", "=", "TRI", "->", "getCalleeSavedRegsViaCopy", "(", "Entry", "->", "getParent", "(", ")", ")", ";", "if", "(", "!", "IStart", ")", "return", ";", "const", "TargetInstrInfo", "*", "TII", "=", "Subtarget", ".", "getInstrInfo", "(", ")", ";", "MachineRegisterInfo", "*", "MRI", "=", "&", "Entry", "->", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "Entry", "->", "begin", "(", ")", ";", "for", "(", "const", "MCPhysReg", "*", "I", "=", "IStart", ";", "*", "I", ";", "++", "I", ")", "{", "const", "TargetRegisterClass", "*", "RC", "=", "nullptr", ";", "if", "(", "PPC", "::", "G8RCRegClass", ".", "contains", "(", "*", "I", ")", ")", "RC", "=", "&", "PPC", "::", "G8RCRegClass", ";", "else", "if", "(", "PPC", "::", "F8RCRegClass", ".", "contains", "(", "*", "I", ")", ")", "RC", "=", "&", "PPC", "::", "F8RCRegClass", ";", "else", "if", "(", "PPC", "::", "CRRCRegClass", ".", "contains", "(", "*", "I", ")", ")", "RC", "=", "&", "PPC", "::", "CRRCRegClass", ";", "else", "if", "(", "PPC", "::", "VRRCRegClass", ".", "contains", "(", "*", "I", ")", ")", "RC", "=", "&", "PPC", "::", "VRRCRegClass", ";", "else", "llvm_unreachable", "(", "\"Unexpected register class in CSRsViaCopy!\"", ")", ";", "unsigned", "NewVR", "=", "MRI", "->", "createVirtualRegister", "(", "RC", ")", ";", "assert", "(", "Entry", "->", "getParent", "(", ")", "->", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "Attribute", "::", "NoUnwind", ")", "&&", "\"Function should be nounwind in insertCopiesSplitCSR!\"", ")", ";", "Entry", "->", "addLiveIn", "(", "*", "I", ")", ";", "BuildMI", "(", "*", "Entry", ",", "MBBI", ",", "DebugLoc", "(", ")", ",", "TII", "->", "get", "(", "TargetOpcode", "::", "COPY", ")", ",", "NewVR", ")", ".", "addReg", "(", "*", "I", ")", ";", "for", "(", "auto", "*", "Exit", ":", "Exits", ")", "BuildMI", "(", "*", "Exit", ",", "Exit", "->", "getFirstTerminator", "(", ")", ",", "DebugLoc", "(", ")", ",", "TII", "->", "get", "(", "TargetOpcode", "::", "COPY", ")", ",", "*", "I", ")", ".", "addReg", "(", "NewVR", ")", ";", "}", "}", ""], "natrual_language": ["Insert", "explicit", "copies", "in", "entry", "and", "exit", "blocks", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC::G8RCRegClass", "PPC::G8RCRegClass", "PPC::F8RCRegClass", "PPC::F8RCRegClass", "PPC::CRRCRegClass", "PPC::CRRCRegClass", "PPC::VRRCRegClass", "PPC::VRRCRegClass", "\"Unexpected register class in CSRsViaCopy!\"", "\"Function should be nounwind in insertCopiesSplitCSR!\""], "File": "PPCISelLowering (2)7", "Func": "insertCopiesSplitCSR", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3317, "Length": 311, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "rs6000_xcoff_asm_globalize_decl_name", "(", "FILE", "*", "stream", ",", "tree", "decl", ")", "{", "const", "char", "*", "name", "=", "XSTR", "(", "XEXP", "(", "DECL_RTL", "(", "decl", ")", ",", "0", ")", ",", "0", ")", ";", "fputs", "(", "GLOBAL_ASM_OP", ",", "stream", ")", ";", "assemble_name", "(", "stream", ",", "name", ")", ";", "fputs", "(", "rs6000_xcoff_visibility", "(", "decl", ")", ",", "stream", ")", ";", "putc", "(", "'\\n'", ",", "stream", ")", ";", "}", ""], "natrual_language": ["Output", "assembly", "language", "to", "globalize", "a", "symbol", "from", "a", "DECL", ",", "possibly", "with", "visibility", "."], "TS_V_token": ["rs6000", "0", "0"], "File": "rs6000", "Func": "rs6000_xcoff_asm_globalize_decl_name", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3318, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "add_pop_cfi_notes", "(", "rtx_insn", "*", "insn", ",", "unsigned", "int", "high", ",", "unsigned", "int", "low", ")", "{", "rtx", "t", "=", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "(", "high", "-", "low", "+", "1", ")", "*", "UNITS_PER_WORD", ")", ";", "t", "=", "gen_rtx_SET", "(", "stack_pointer_rtx", ",", "t", ")", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_ADJUST_CFA", ",", "t", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "for", "(", "unsigned", "int", "i", "=", "low", ";", "i", "<=", "high", ";", "i", "++", ")", "add_reg_note", "(", "insn", ",", "REG_CFA_RESTORE", ",", "gen_rtx_REG", "(", "word_mode", ",", "i", ")", ")", ";", "}", ""], "natrual_language": ["Create", "CFI", "notes", "for", "register", "pops", "."], "TS_V_token": ["rx", "1", "1"], "File": "rx", "Func": "add_pop_cfi_notes", "Target": "rx", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3319, "Length": 92, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "SystemZRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "const", "SystemZFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "{", "Reserved", ".", "set", "(", "SystemZ", "::", "R11D", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "R11L", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "R11H", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "R10Q", ")", ";", "}", "Reserved", ".", "set", "(", "SystemZ", "::", "R15D", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "R15L", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "R15H", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "R14Q", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "A0", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "A1", ")", ";", "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": ["SystemZ", "SystemZ", "SystemZ", "SystemZ::R11D", "SystemZ::R11L", "SystemZ::R11H", "SystemZ::R10Q", "SystemZ::R15D", "SystemZ::R15L", "SystemZ::R15H", "SystemZ::R14Q", "SystemZ::A0", "SystemZ::A1"], "File": "SystemZRegisterInfo12", "Func": "getReservedRegs", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3320, "Length": 135, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "loongarch_rewrite_small_data_1", "(", "rtx", "*", "loc", ")", "{", "subrtx_ptr_iterator", "::", "array_type", "array", ";", "FOR_EACH_SUBRTX_PTR", "(", "iter", ",", "array", ",", "loc", ",", "ALL", ")", "{", "rtx", "*", "loc", "=", "*", "iter", ";", "if", "(", "MEM_P", "(", "*", "loc", ")", ")", "{", "loongarch_rewrite_small_data_1", "(", "&", "XEXP", "(", "*", "loc", ",", "0", ")", ")", ";", "iter", ".", "skip_subrtxes", "(", ")", ";", "}", "}", "}", ""], "natrual_language": ["Rewrite", "*", "LOC", "so", "that", "it", "refers", "to", "small", "data", "using", "explicit", "relocations", "."], "TS_V_token": ["loongarch", "0"], "File": "loongarch", "Func": "loongarch_rewrite_small_data_1", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3321, "Length": 62, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ix86_mode_after", "(", "int", "entity", ",", "int", "mode", ",", "rtx_insn", "*", "insn", ")", "{", "switch", "(", "entity", ")", "{", "case", "AVX_U128", ":", "return", "ix86_avx_u128_mode_after", "(", "mode", ",", "insn", ")", ";", "case", "I387_TRUNC", ":", "case", "I387_FLOOR", ":", "case", "I387_CEIL", ":", "case", "I387_MASK_PM", ":", "return", "mode", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Return", "the", "mode", "that", "an", "insn", "results", "in", "."], "TS_V_token": ["i386"], "File": "i3864", "Func": "ix86_mode_after", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3322, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "DataLayout", "*", "getDataLayout", "(", ")", "const", "override", "{", "return", "&", "DL", ";", "}", ""], "natrual_language": ["Return", "the", "DataLayout", "associated", "with", "the", "module", "this", "SCEV", "instance", "is", "operating", "on", "."], "TS_V_token": ["PowerPC"], "File": "PPCSubtarget34", "Func": "getDataLayout", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3323, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StackOffset", "X86FrameLowering", "::", "getFrameIndexReferencePreferSP", "(", "const", "MachineFunction", "&", "MF", ",", "int", "FI", ",", "Register", "&", "FrameReg", ",", "bool", "IgnoreSPUpdates", ")", "const", "{", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "uint64_t", "StackSize", "=", "MFI", ".", "getStackSize", "(", ")", ";", "if", "(", "MFI", ".", "isFixedObjectIndex", "(", "FI", ")", "&&", "TRI", "->", "hasStackRealignment", "(", "MF", ")", "&&", "!", "STI", ".", "isTargetWin64", "(", ")", ")", "return", "getFrameIndexReference", "(", "MF", ",", "FI", ",", "FrameReg", ")", ";", "if", "(", "!", "IgnoreSPUpdates", "&&", "!", "hasReservedCallFrame", "(", "MF", ")", ")", "return", "getFrameIndexReference", "(", "MF", ",", "FI", ",", "FrameReg", ")", ";", "assert", "(", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", "->", "getTCReturnAddrDelta", "(", ")", ">=", "0", "&&", "\"we don't handle this case!\"", ")", ";", "return", "getFrameIndexReferenceSP", "(", "MF", ",", "FI", ",", "FrameReg", ",", "StackSize", ")", ";", "}", ""], "natrual_language": ["Same", "as", "getFrameIndexReference", ",", "except", "that", "the", "stack", "pointer", "(", "as", "opposed", "to", "the", "frame", "pointer", ")", "will", "be", "the", "preferred", "value", "for", "FrameReg", "."], "TS_V_token": ["X86", "X86", "X86", "0", "\"we don't handle this case!\""], "File": "X86FrameLowering (2)3", "Func": "getFrameIndexReferencePreferSP", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3324, "Length": 130, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "LC3bRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "static", "const", "uint16_t", "ReservedLC3bRegs", "[", "]", "=", "{", "LC3b", "::", "R6", ",", "LC3b", "::", "R7", ",", "LC3b", "::", "PC", ",", "LC3b", "::", "PSR", ",", "LC3b", "::", "IR", "}", ";", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "typedef", "TargetRegisterClass", "::", "iterator", "RegIter", ";", "for", "(", "unsigned", "I", "=", "0", ";", "I", "<", "array_lengthof", "(", "ReservedLC3bRegs", ")", ";", "++", "I", ")", "{", "Reserved", ".", "set", "(", "ReservedLC3bRegs", "[", "I", "]", ")", ";", "}", "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": ["LC3b", "LC3b", "LC3b", "LC3b::R6", "LC3b::R7", "LC3b::PC", "LC3b::PSR", "LC3b::IR", "0", "LC3b", "LC3b"], "File": "LC3bRegisterInfo", "Func": "getReservedRegs", "Target": "LC3b", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3325, "Length": 88, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86InstrInfo", "::", "reMaterialize", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "Register", "DestReg", ",", "unsigned", "SubIdx", ",", "const", "MachineInstr", "&", "Orig", ",", "const", "TargetRegisterInfo", "&", "TRI", ")", "const", "{", "bool", "ClobbersEFLAGS", "=", "Orig", ".", "modifiesRegister", "(", "X86", "::", "EFLAGS", ",", "&", "TRI", ")", ";", "if", "(", "ClobbersEFLAGS", "&&", "MBB", ".", "computeRegisterLiveness", "(", "&", "TRI", ",", "X86", "::", "EFLAGS", ",", "I", ")", "!=", "MachineBasicBlock", "::", "LQR_Dead", ")", "{", "int", "Value", ";", "switch", "(", "Orig", ".", "getOpcode", "(", ")", ")", "{", "case", "X86", "::", "MOV32r0", ":", "Value", "=", "0", ";", "break", ";", "case", "X86", "::", "MOV32r1", ":", "Value", "=", "1", ";", "break", ";", "case", "X86", "::", "MOV32r_1", ":", "Value", "=", "-", "1", ";", "break", ";", "default", ":", "llvm_unreachable", "(", "\"Unexpected instruction!\"", ")", ";", "}", "const", "DebugLoc", "&", "DL", "=", "Orig", ".", "getDebugLoc", "(", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "X86", "::", "MOV32ri", ")", ")", ".", "add", "(", "Orig", ".", "getOperand", "(", "0", ")", ")", ".", "addImm", "(", "Value", ")", ";", "}", "else", "{", "MachineInstr", "*", "MI", "=", "MBB", ".", "getParent", "(", ")", "->", "CloneMachineInstr", "(", "&", "Orig", ")", ";", "MBB", ".", "insert", "(", "I", ",", "MI", ")", ";", "}", "MachineInstr", "&", "NewMI", "=", "*", "std", "::", "prev", "(", "I", ")", ";", "NewMI", ".", "substituteRegister", "(", "Orig", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ",", "DestReg", ",", "SubIdx", ",", "TRI", ")", ";", "}", ""], "natrual_language": ["Re-issue", "the", "specified", "'original", "'", "instruction", "at", "the", "specific", "location", "targeting", "a", "new", "destination", "register", "."], "TS_V_token": ["X86", "X86", "X86::EFLAGS", "X86::EFLAGS", "X86::MOV32r0", "0", "X86::MOV32r1", "1", "X86::MOV32r_1", "1", "\"Unexpected instruction!\"", "X86::MOV32ri", "0", "0"], "File": "X86InstrInfo (2)3", "Func": "reMaterialize", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3326, "Length": 230, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_optab_supported_p", "(", "int", "op", ",", "machine_mode", "mode1", ",", "machine_mode", ",", "optimization_type", "opt_type", ")", "{", "switch", "(", "op", ")", "{", "case", "rsqrt_optab", ":", "return", "(", "opt_type", "==", "OPTIMIZE_FOR_SPEED", "&&", "RS6000_RECIP_AUTO_RSQRTE_P", "(", "mode1", ")", ")", ";", "default", ":", "return", "true", ";", "}", "}", ""], "natrual_language": ["Implement", "the", "TARGET_OPTAB_SUPPORTED_P", "hook", "."], "TS_V_token": ["powerpcspe"], "File": "powerpcspe", "Func": "rs6000_optab_supported_p", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3327, "Length": 43, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isExtractSubvectorCheap", "(", "EVT", "ResVT", ",", "unsigned", "Index", ")", "const", "{", "if", "(", "!", "isOperationLegalOrCustom", "(", "ISD", "::", "EXTRACT_SUBVECTOR", ",", "ResVT", ")", ")", "return", "false", ";", "return", "(", "Index", "==", "0", "||", "Index", "==", "ResVT", ".", "getVectorNumElements", "(", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "EXTRACT_SUBVECTOR", "is", "cheap", "for", "this", "result", "type", "with", "this", "index", "."], "TS_V_token": ["X86", "X86", "ISD::EXTRACT_SUBVECTOR", "0"], "File": "X86ISelLowering (2)3", "Func": "isExtractSubvectorCheap", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3328, "Length": 44, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCSymbol", "*", "KudeyarMCInstLower", "::", "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": ["Kudeyar", "Kudeyar", "\"Unknown target flag on GV operand\"", "0"], "File": "KudeyarMCInstLower", "Func": "GetBlockAddressSymbol", "Target": "Kudeyar", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3329, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "ix86_max_noce_ifcvt_seq_cost", "(", "edge", "e", ")", "{", "bool", "predictable_p", "=", "predictable_edge_p", "(", "e", ")", ";", "if", "(", "predictable_p", ")", "{", "if", "(", "OPTION_SET_P", "(", "param_max_rtl_if_conversion_predictable_cost", ")", ")", "return", "param_max_rtl_if_conversion_predictable_cost", ";", "}", "else", "{", "if", "(", "OPTION_SET_P", "(", "param_max_rtl_if_conversion_unpredictable_cost", ")", ")", "return", "param_max_rtl_if_conversion_unpredictable_cost", ";", "}", "return", "BRANCH_COST", "(", "true", ",", "predictable_p", ")", "*", "COSTS_N_INSNS", "(", "2", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_MAX_NOCE_IFCVT_SEQ_COST", ".", "Like", "the", "default", "implementation", ",", "but", "returns", "a", "lower", "bound", "."], "TS_V_token": ["i386", "2"], "File": "i386", "Func": "ix86_max_noce_ifcvt_seq_cost", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3330, "Length": 60, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "F", ")", "{", "bool", "Changed", "=", "false", ";", "if", "(", "EnableDelJmp", ")", "{", "MachineFunction", "::", "iterator", "FJ", "=", "F", ".", "begin", "(", ")", ";", "if", "(", "FJ", "!=", "F", ".", "end", "(", ")", ")", "FJ", "++", ";", "if", "(", "FJ", "==", "F", ".", "end", "(", ")", ")", "return", "Changed", ";", "for", "(", "MachineFunction", "::", "iterator", "FI", "=", "F", ".", "begin", "(", ")", ",", "FE", "=", "F", ".", "end", "(", ")", ";", "FJ", "!=", "FE", ";", "++", "FI", ",", "++", "FJ", ")", "Changed", "|=", "runOnMachineBasicBlock", "(", "*", "FI", ",", "*", "FJ", ")", ";", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Cpu0"], "File": "Cpu0DelUselessJMP", "Func": "runOnMachineFunction", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3331, "Length": 102, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCPassConfig", "::", "addPreISel", "(", ")", "{", "if", "(", "!", "DisablePreIncPrep", "&&", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createPPCLoopPreIncPrepPass", "(", "getPPCTargetMachine", "(", ")", ")", ")", ";", "if", "(", "!", "DisableCTRLoops", "&&", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createHardwareLoopsPass", "(", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["{", "{", "@", "For", "GlobalISel"], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC"], "File": "PPCTargetMachine1", "Func": "addPreISel", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3332, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_cfg_in_reorg", "(", "void", ")", "{", "return", "(", "mips_r10k_cache_barrier", "!=", "R10K_CACHE_BARRIER_NONE", "||", "TARGET_RELAX_PIC_CALLS", ")", ";", "}", ""], "natrual_language": ["Return", "whether", "CFG", "is", "used", "in", "mips_reorg", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_cfg_in_reorg", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3333, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCFastISel", "::", "tryToFoldLoadIntoMI", "(", "MachineInstr", "*", "MI", ",", "unsigned", "OpNo", ",", "const", "LoadInst", "*", "LI", ")", "{", "MVT", "VT", ";", "if", "(", "!", "isLoadTypeLegal", "(", "LI", "->", "getType", "(", ")", ",", "VT", ")", ")", "return", "false", ";", "bool", "IsZExt", "=", "false", ";", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "false", ";", "case", "PPC", "::", "RLDICL", ":", "case", "PPC", "::", "RLDICL_32_64", ":", "{", "IsZExt", "=", "true", ";", "unsigned", "MB", "=", "MI", "->", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", ";", "if", "(", "(", "VT", "==", "MVT", "::", "i8", "&&", "MB", "<=", "56", ")", "||", "(", "VT", "==", "MVT", "::", "i16", "&&", "MB", "<=", "48", ")", "||", "(", "VT", "==", "MVT", "::", "i32", "&&", "MB", "<=", "32", ")", ")", "break", ";", "return", "false", ";", "}", "case", "PPC", "::", "RLWINM", ":", "case", "PPC", "::", "RLWINM8", ":", "{", "IsZExt", "=", "true", ";", "unsigned", "MB", "=", "MI", "->", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", ";", "if", "(", "(", "VT", "==", "MVT", "::", "i8", "&&", "MB", "<=", "24", ")", "||", "(", "VT", "==", "MVT", "::", "i16", "&&", "MB", "<=", "16", ")", ")", "break", ";", "return", "false", ";", "}", "case", "PPC", "::", "EXTSB", ":", "case", "PPC", "::", "EXTSB8", ":", "case", "PPC", "::", "EXTSB8_32_64", ":", "return", "false", ";", "case", "PPC", "::", "EXTSH", ":", "case", "PPC", "::", "EXTSH8", ":", "case", "PPC", "::", "EXTSH8_32_64", ":", "{", "if", "(", "VT", "!=", "MVT", "::", "i16", "&&", "VT", "!=", "MVT", "::", "i8", ")", "return", "false", ";", "break", ";", "}", "case", "PPC", "::", "EXTSW", ":", "case", "PPC", "::", "EXTSW_32", ":", "case", "PPC", "::", "EXTSW_32_64", ":", "{", "if", "(", "VT", "!=", "MVT", "::", "i32", "&&", "VT", "!=", "MVT", "::", "i16", "&&", "VT", "!=", "MVT", "::", "i8", ")", "return", "false", ";", "break", ";", "}", "}", "Address", "Addr", ";", "if", "(", "!", "PPCComputeAddress", "(", "LI", "->", "getOperand", "(", "0", ")", ",", "Addr", ")", ")", "return", "false", ";", "unsigned", "ResultReg", "=", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "if", "(", "!", "PPCEmitLoad", "(", "VT", ",", "ResultReg", ",", "Addr", ",", "nullptr", ",", "IsZExt", ")", ")", "return", "false", ";", "MI", "->", "eraseFromParent", "(", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["The", "specified", "machine", "instr", "operand", "is", "a", "vreg", ",", "and", "that", "vreg", "is", "being", "provided", "by", "the", "specified", "load", "instruction", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::RLDICL", "PPC::RLDICL_32_64", "3", "MVT::i8", "56", "MVT::i16", "48", "MVT::i32", "32", "PPC::RLWINM", "PPC::RLWINM8", "3", "MVT::i8", "24", "MVT::i16", "16", "PPC::EXTSB", "PPC::EXTSB8", "PPC::EXTSB8_32_64", "PPC::EXTSH", "PPC::EXTSH8", "PPC::EXTSH8_32_64", "MVT::i16", "MVT::i8", "PPC::EXTSW", "PPC::EXTSW_32", "PPC::EXTSW_32_64", "MVT::i32", "MVT::i16", "MVT::i8", "PPC", "0", "0", "PPC"], "File": "PPCFastISel11", "Func": "tryToFoldLoadIntoMI", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3334, "Length": 352, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", "\"ARM64 pseudo instruction expansion pass\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["ARM64", "\"ARM64 pseudo instruction expansion pass\""], "File": "ARM64ExpandPseudoInsts1", "Func": "getPassName", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3335, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "F2003fInstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "const", "DebugLoc", "&", "DL", ",", "unsigned", "DestReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "F2003f", "::", "KRZrr", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "}", ""], "natrual_language": ["}", "Branch", "Analysis", "&", "Modification"], "TS_V_token": ["F2003f", "F2003f", "F2003f::KRZrr"], "File": "F2003fInstrInfo", "Func": "copyPhysReg", "Target": "F2003f", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3336, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch_macro_fusion_pair_p", "(", "rtx_insn", "*", "prev", ",", "rtx_insn", "*", "curr", ")", "{", "rtx", "set_dest", ";", "rtx", "prev_set", "=", "single_set", "(", "prev", ")", ";", "rtx", "curr_set", "=", "single_set", "(", "curr", ")", ";", "if", "(", "!", "prev_set", "||", "!", "curr_set", ")", "return", "false", ";", "if", "(", "any_condjump_p", "(", "curr", ")", ")", "return", "false", ";", "if", "(", "!", "arm_macro_fusion_p", "(", ")", ")", "return", "false", ";", "if", "(", "current_tune", "->", "fuseable_ops", "&", "ARM_FUSE_MOVW_MOVT", ")", "{", "set_dest", "=", "SET_DEST", "(", "curr_set", ")", ";", "if", "(", "GET_MODE", "(", "set_dest", ")", "!=", "SImode", ")", "return", "false", ";", "if", "(", "GET_CODE", "(", "set_dest", ")", "==", "ZERO_EXTRACT", ")", "{", "if", "(", "CONST_INT_P", "(", "SET_SRC", "(", "curr_set", ")", ")", "&&", "CONST_INT_P", "(", "SET_SRC", "(", "prev_set", ")", ")", "&&", "REG_P", "(", "XEXP", "(", "set_dest", ",", "0", ")", ")", "&&", "REG_P", "(", "SET_DEST", "(", "prev_set", ")", ")", "&&", "REGNO", "(", "XEXP", "(", "set_dest", ",", "0", ")", ")", "==", "REGNO", "(", "SET_DEST", "(", "prev_set", ")", ")", ")", "return", "true", ";", "}", "else", "if", "(", "GET_CODE", "(", "SET_SRC", "(", "curr_set", ")", ")", "==", "LO_SUM", "&&", "REG_P", "(", "SET_DEST", "(", "curr_set", ")", ")", "&&", "REG_P", "(", "SET_DEST", "(", "prev_set", ")", ")", "&&", "GET_CODE", "(", "SET_SRC", "(", "prev_set", ")", ")", "==", "HIGH", "&&", "REGNO", "(", "SET_DEST", "(", "curr_set", ")", ")", "==", "REGNO", "(", "SET_DEST", "(", "prev_set", ")", ")", ")", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Implement", "TARGET_SCHED_MACRO_FUSION_PAIR_P", ".", "Return", "true", "if", "PREV", "and", "CURR", "should", "be", "kept", "together", "during", "scheduling", "."], "TS_V_token": ["arm", "0", "0"], "File": "arm4", "Func": "aarch_macro_fusion_pair_p", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3337, "Length": 222, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "mmix_expand_epilogue", "(", "void", ")", "{", "HOST_WIDE_INT", "locals_size", "=", "get_frame_size", "(", ")", ";", "int", "regno", ";", "HOST_WIDE_INT", "stack_space_to_deallocate", "=", "(", "crtl", "->", "outgoing_args_size", "+", "crtl", "->", "args", ".", "pretend_args_size", "+", "locals_size", "+", "7", ")", "&", "~", "7", ";", "HOST_WIDE_INT", "offset", "=", "crtl", "->", "outgoing_args_size", ";", "for", "(", "regno", "=", "255", ";", "regno", ">=", "MMIX_FIRST_GLOBAL_REGNUM", ";", "regno", "--", ")", "if", "(", "(", "(", "regno", "!=", "MMIX_FRAME_POINTER_REGNUM", "||", "!", "frame_pointer_needed", ")", "&&", "df_regs_ever_live_p", "(", "regno", ")", "&&", "!", "call_used_regs", "[", "regno", "]", ")", "||", "IS_MMIX_EH_RETURN_DATA_REG", "(", "regno", ")", ")", "stack_space_to_deallocate", "+=", "8", ";", "if", "(", "MMIX_CFUN_HAS_LANDING_PAD", ")", "stack_space_to_deallocate", "+=", "16", ";", "else", "if", "(", "MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS", ")", "stack_space_to_deallocate", "+=", "8", ";", "if", "(", "frame_pointer_needed", ")", "stack_space_to_deallocate", "+=", "8", ";", "if", "(", "(", "stack_space_to_deallocate", "%", "8", ")", "!=", "0", ")", "internal_error", "(", "\"stack frame not a multiple of octabyte: %wd\"", ",", "stack_space_to_deallocate", ")", ";", "for", "(", "regno", "=", "MMIX_FIRST_GLOBAL_REGNUM", ";", "regno", "<=", "255", ";", "regno", "++", ")", "if", "(", "(", "(", "regno", "!=", "MMIX_FRAME_POINTER_REGNUM", "||", "!", "frame_pointer_needed", ")", "&&", "df_regs_ever_live_p", "(", "regno", ")", "&&", "!", "call_used_regs", "[", "regno", "]", ")", "||", "IS_MMIX_EH_RETURN_DATA_REG", "(", "regno", ")", ")", "{", "if", "(", "offset", ">", "255", ")", "{", "mmix_emit_sp_add", "(", "offset", ")", ";", "stack_space_to_deallocate", "-=", "offset", ";", "offset", "=", "0", ";", "}", "emit_move_insn", "(", "gen_rtx_REG", "(", "DImode", ",", "regno", ")", ",", "gen_rtx_MEM", "(", "DImode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ")", ";", "offset", "+=", "8", ";", "}", "offset", "+=", "(", "locals_size", "+", "7", ")", "&", "~", "7", ";", "if", "(", "MMIX_CFUN_HAS_LANDING_PAD", ")", "offset", "+=", "16", ";", "else", "if", "(", "MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS", ")", "offset", "+=", "8", ";", "if", "(", "frame_pointer_needed", ")", "{", "if", "(", "offset", ">", "255", ")", "{", "mmix_emit_sp_add", "(", "offset", ")", ";", "stack_space_to_deallocate", "-=", "offset", ";", "offset", "=", "0", ";", "}", "emit_move_insn", "(", "hard_frame_pointer_rtx", ",", "gen_rtx_MEM", "(", "DImode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ")", ";", "offset", "+=", "8", ";", "}", "if", "(", "stack_space_to_deallocate", "!=", "0", ")", "mmix_emit_sp_add", "(", "stack_space_to_deallocate", ")", ";", "if", "(", "crtl", "->", "calls_eh_return", ")", "emit_insn", "(", "gen_adddi3", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "gen_rtx_REG", "(", "DImode", ",", "MMIX_EH_RETURN_STACKADJ_REGNUM", ")", ")", ")", ";", "}", ""], "natrual_language": ["Expands", "the", "function", "epilogue", "into", "RTX", "."], "TS_V_token": ["mmix", "7", "7", "255", "8", "16", "8", "8", "8", "0", "\"stack frame not a multiple of octabyte: %wd\"", "255", "255", "0", "8", "7", "7", "16", "8", "255", "0", "8", "0"], "File": "mmix4", "Func": "mmix_expand_epilogue", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3338, "Length": 339, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_sim_finish_insn", "(", "struct", "mips_sim", "*", "state", ",", "rtx", "insn", ")", "{", "if", "(", "JUMP_P", "(", "insn", ")", ")", "mips_sim_issue_nop", "(", "state", ")", ";", "switch", "(", "GET_CODE", "(", "SEQ_BEGIN", "(", "insn", ")", ")", ")", "{", "case", "CODE_LABEL", ":", "case", "CALL_INSN", ":", "mips_sim_reset", "(", "state", ")", ";", "break", ";", "case", "JUMP_INSN", ":", "if", "(", "INSN_ANNULLED_BRANCH_P", "(", "SEQ_BEGIN", "(", "insn", ")", ")", ")", "mips_sim_reset", "(", "state", ")", ";", "break", ";", "default", ":", "break", ";", "}", "}", ""], "natrual_language": ["Update", "simulation", "state", "STATE", "so", "that", "it", "'s", "ready", "to", "accept", "the", "instruction", "after", "INSN", ".", "INSN", "should", "be", "part", "of", "the", "main", "rtl", "chain", ",", "not", "a", "member", "of", "a", "SEQUENCE", "."], "TS_V_token": ["mips"], "File": "mips3", "Func": "mips_sim_finish_insn", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3339, "Length": 75, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "std", "::", "string", "&", "MipsLA25Stub", "::", "name", "(", ")", "const", "{", "return", "m_Name", ";", "}", ""], "natrual_language": ["Gets", "the", "name", "of", "the", "pass", "we", "are", "mixed", "into", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsLA25Stub", "Func": "name", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3340, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64RegisterInfo", "::", "requiresVirtualBaseRegisters", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "wants", "the", "LocalStackAllocation", "pass", "to", "be", "run", "and", "virtual", "base", "registers", "used", "for", "more", "efficient", "stack", "access", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64RegisterInfo (2)", "Func": "requiresVirtualBaseRegisters", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3341, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "or1k_pass_by_reference", "(", "cumulative_args_t", ",", "machine_mode", "mode", ",", "const_tree", "type", ",", "bool", ")", "{", "HOST_WIDE_INT", "size", ";", "if", "(", "type", ")", "{", "if", "(", "AGGREGATE_TYPE_P", "(", "type", ")", ")", "return", "true", ";", "size", "=", "int_size_in_bytes", "(", "type", ")", ";", "}", "else", "size", "=", "GET_MODE_SIZE", "(", "mode", ")", ";", "return", "size", "<", "0", "||", "size", ">", "8", ";", "}", ""], "natrual_language": ["Worker", "for", "TARGET_PASS_BY_REFERENCE", ".", "Returns", "true", "if", "an", "argument", "of", "TYPE", "in", "MODE", "should", "be", "passed", "by", "reference", "as", "required", "by", "the", "OpenRISC", "ABI", ".", "On", "OpenRISC", "structures", ",", "unions", "and", "arguments", "larger", "than", "64-bits", "are", "passed", "by", "reference", "."], "TS_V_token": ["or1k", "0", "8"], "File": "or1k2", "Func": "or1k_pass_by_reference", "Target": "or1k", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3342, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "EVT", "PPCTargetLowering", "::", "getOptimalMemOpType", "(", "uint64_t", "Size", ",", "unsigned", "DstAlign", ",", "unsigned", "SrcAlign", ",", "bool", "NonScalarIntSafe", ",", "bool", "MemcpyStrSrc", ",", "MachineFunction", "&", "MF", ")", "const", "{", "if", "(", "this", "->", "PPCSubTarget", ".", "isPPC64", "(", ")", ")", "{", "return", "MVT", "::", "i64", ";", "}", "else", "{", "return", "MVT", "::", "i32", ";", "}", "}", ""], "natrual_language": ["It", "returns", "EVT", ":", ":Other", "if", "the", "type", "should", "be", "determined", "using", "generic", "target-independent", "logic", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "MVT::i64", "MVT::i32"], "File": "PPCISelLowering115", "Func": "getOptimalMemOpType", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3343, "Length": 52, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "alg_usable_p", "(", "enum", "stringop_alg", "alg", ",", "bool", "memset", ",", "bool", "have_as", ")", "{", "if", "(", "alg", "==", "no_stringop", ")", "return", "false", ";", "if", "(", "alg", "==", "vector_loop", ")", "return", "TARGET_SSE", "||", "TARGET_AVX", ";", "if", "(", "alg", "==", "rep_prefix_1_byte", "||", "alg", "==", "rep_prefix_4_byte", "||", "alg", "==", "rep_prefix_8_byte", ")", "{", "if", "(", "have_as", ")", "return", "false", ";", "if", "(", "fixed_regs", "[", "CX_REG", "]", "||", "fixed_regs", "[", "DI_REG", "]", "||", "(", "memset", "?", "fixed_regs", "[", "AX_REG", "]", ":", "fixed_regs", "[", "SI_REG", "]", ")", ")", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "ALG", "can", "be", "used", "in", "current", "context", ".", "Assume", "we", "expand", "memset", "if", "MEMSET", "is", "true", "."], "TS_V_token": ["i386"], "File": "i386-expand", "Func": "alg_usable_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3344, "Length": 91, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mips_unsigned_immediate_p", "(", "unsigned", "HOST_WIDE_INT", "x", ",", "int", "bits", ",", "int", "shift", "=", "0", ")", "{", "return", "(", "x", "&", "(", "(", "1", "<<", "shift", ")", "-", "1", ")", ")", "==", "0", "&&", "x", "<", "(", "(", "unsigned", ")", "1", "<<", "(", "shift", "+", "bits", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "X", "fits", "within", "an", "unsigned", "field", "of", "BITS", "bits", "that", "is", "shifted", "left", "SHIFT", "bits", "before", "being", "used", "."], "TS_V_token": ["mips", "0", "1", "1", "0", "1"], "File": "mips", "Func": "mips_unsigned_immediate_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3345, "Length": 49, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsAsmPrinter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "Subtarget", "->", "allowMixed16_32", "(", ")", ")", "const_cast", "<", "TargetLoweringObjectFile", "&", ">", "(", "getObjFileLowering", "(", ")", ")", ".", "Initialize", "(", "OutContext", ",", "TM", ")", ";", "MipsFI", "=", "MF", ".", "getInfo", "<", "MipsFunctionInfo", ">", "(", ")", ";", "MCP", "=", "MF", ".", "getConstantPool", "(", ")", ";", "AsmPrinter", "::", "runOnMachineFunction", "(", "MF", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips"], "File": "MipsAsmPrinter64", "Func": "runOnMachineFunction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3346, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "LanaiInstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "Position", ",", "unsigned", "DestinationRegister", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RegisterClass", ",", "const", "TargetRegisterInfo", "*", "RegisterInfo", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "Position", "!=", "MBB", ".", "end", "(", ")", ")", "{", "DL", "=", "Position", "->", "getDebugLoc", "(", ")", ";", "}", "if", "(", "!", "Lanai", "::", "GPRRegClass", ".", "hasSubClassEq", "(", "RegisterClass", ")", ")", "{", "llvm_unreachable", "(", "\"Can't load this register from stack slot\"", ")", ";", "}", "BuildMI", "(", "MBB", ",", "Position", ",", "DL", ",", "get", "(", "Lanai", "::", "LDW_RI", ")", ",", "DestinationRegister", ")", ".", "addFrameIndex", "(", "FrameIndex", ")", ".", "addImm", "(", "0", ")", ".", "addImm", "(", "LPAC", "::", "ADD", ")", ";", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["Lanai", "Lanai", "Lanai::GPRRegClass", "\"Can't load this register from stack slot\"", "Lanai::LDW_RI", "0"], "File": "LanaiInstrInfo", "Func": "loadRegFromStackSlot", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3347, "Length": 110, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Register", "PPCTargetLowering", "::", "getRegisterByName", "(", "const", "char", "*", "RegName", ",", "LLT", "VT", ",", "const", "MachineFunction", "&", "MF", ")", "const", "{", "bool", "isPPC64", "=", "Subtarget", ".", "isPPC64", "(", ")", ";", "bool", "IsDarwinABI", "=", "Subtarget", ".", "isDarwinABI", "(", ")", ";", "bool", "is64Bit", "=", "isPPC64", "&&", "VT", "==", "LLT", "::", "scalar", "(", "64", ")", ";", "if", "(", "!", "is64Bit", "&&", "VT", "!=", "LLT", "::", "scalar", "(", "32", ")", ")", "report_fatal_error", "(", "\"Invalid register global variable type\"", ")", ";", "Register", "Reg", "=", "StringSwitch", "<", "Register", ">", "(", "RegName", ")", ".", "Case", "(", "\"r1\"", ",", "is64Bit", "?", "PPC", "::", "X1", ":", "PPC", "::", "R1", ")", ".", "Case", "(", "\"r2\"", ",", "(", "IsDarwinABI", "||", "isPPC64", ")", "?", "Register", "(", ")", ":", "PPC", "::", "R2", ")", ".", "Case", "(", "\"r13\"", ",", "(", "!", "isPPC64", "&&", "IsDarwinABI", ")", "?", "Register", "(", ")", ":", "(", "is64Bit", "?", "PPC", "::", "X13", ":", "PPC", "::", "R13", ")", ")", ".", "Default", "(", "Register", "(", ")", ")", ";", "if", "(", "Reg", ")", "return", "Reg", ";", "report_fatal_error", "(", "\"Invalid register name global variable\"", ")", ";", "}", ""], "natrual_language": ["Return", "the", "register", "ID", "of", "the", "name", "passed", "in", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "PPC", "64", "32", "\"Invalid register global variable type\"", "\"r1\"", "PPC::X1", "PPC::R1", "\"r2\"", "PPC", "PPC::R2", "\"r13\"", "PPC", "PPC::X13", "PPC::R13", "\"Invalid register name global variable\""], "File": "PPCISelLowering104", "Func": "getRegisterByName", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3348, "Length": 164, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "setReg", "(", "unsigned", "Reg", ")", "{", "assert", "(", "isRegBase", "(", ")", "&&", "\"Invalid base register access!\"", ")", ";", "Base", ".", "Reg", "=", "Reg", ";", "}", ""], "natrual_language": ["Assigns", "the", "associated", "register", "for", "this", "edge", "."], "TS_V_token": ["Mips", "\"Invalid base register access!\""], "File": "MipsFastISel", "Func": "setReg", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3349, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "leaf_return_peephole_ok", "(", ")", "{", "return", "(", "actual_fsize", "==", "0", ")", ";", "}", ""], "natrual_language": ["Return", "nonzero", "if", "a", "return", "peephole", "merging", "return", "with", "setting", "of", "output", "register", "is", "ok", "."], "TS_V_token": ["sparc", "0"], "File": "sparc2", "Func": "leaf_return_peephole_ok", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3350, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "MCInst", "&", "Res", ")", "const", "override", "{", "}", ""], "natrual_language": ["Relax", "the", "instruction", "in", "the", "given", "fragment", "to", "the", "next", "wider", "instruction", "."], "TS_V_token": ["UPT"], "File": "UPTAsmBackend", "Func": "relaxInstruction", "Target": "UPT", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3351, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsTargetLowering", "::", "getOpndList", "(", "SmallVectorImpl", "<", "SDValue", ">", "&", "Ops", ",", "std", "::", "deque", "<", "std", "::", "pair", "<", "unsigned", ",", "SDValue", ">", ">", "&", "RegsToPass", ",", "bool", "IsPICCall", ",", "bool", "GlobalOrExternal", ",", "bool", "InternalLinkage", ",", "bool", "IsCallReloc", ",", "CallLoweringInfo", "&", "CLI", ",", "SDValue", "Callee", ",", "SDValue", "Chain", ")", "const", "{", "if", "(", "IsPICCall", "&&", "!", "InternalLinkage", "&&", "IsCallReloc", ")", "{", "unsigned", "GPReg", "=", "Subtarget", ".", "isABI_N64", "(", ")", "?", "Mips", "::", "GP_64", ":", "Mips", "::", "GP", ";", "EVT", "Ty", "=", "Subtarget", ".", "isABI_N64", "(", ")", "?", "MVT", "::", "i64", ":", "MVT", "::", "i32", ";", "RegsToPass", ".", "push_back", "(", "std", "::", "make_pair", "(", "GPReg", ",", "getGlobalReg", "(", "CLI", ".", "DAG", ",", "Ty", ")", ")", ")", ";", "}", "SDValue", "InFlag", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RegsToPass", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "Chain", "=", "CLI", ".", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "CLI", ".", "DL", ",", "RegsToPass", "[", "i", "]", ".", "first", ",", "RegsToPass", "[", "i", "]", ".", "second", ",", "InFlag", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "}", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RegsToPass", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "Ops", ".", "push_back", "(", "CLI", ".", "DAG", ".", "getRegister", "(", "RegsToPass", "[", "i", "]", ".", "first", ",", "RegsToPass", "[", "i", "]", ".", "second", ".", "getValueType", "(", ")", ")", ")", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "getTargetMachine", "(", ")", ".", "getSubtargetImpl", "(", ")", "->", "getRegisterInfo", "(", ")", ";", "const", "uint32_t", "*", "Mask", "=", "TRI", "->", "getCallPreservedMask", "(", "CLI", ".", "CallConv", ")", ";", "assert", "(", "Mask", "&&", "\"Missing call preserved mask for calling convention\"", ")", ";", "if", "(", "Subtarget", ".", "inMips16HardFloat", "(", ")", ")", "{", "if", "(", "GlobalAddressSDNode", "*", "G", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "CLI", ".", "Callee", ")", ")", "{", "llvm", "::", "StringRef", "Sym", "=", "G", "->", "getGlobal", "(", ")", "->", "getName", "(", ")", ";", "Function", "*", "F", "=", "G", "->", "getGlobal", "(", ")", "->", "getParent", "(", ")", "->", "getFunction", "(", "Sym", ")", ";", "if", "(", "F", "&&", "F", "->", "hasFnAttribute", "(", "\"__Mips16RetHelper\"", ")", ")", "{", "Mask", "=", "MipsRegisterInfo", "::", "getMips16RetHelperMask", "(", ")", ";", "}", "}", "}", "Ops", ".", "push_back", "(", "CLI", ".", "DAG", ".", "getRegisterMask", "(", "Mask", ")", ")", ";", "if", "(", "InFlag", ".", "getNode", "(", ")", ")", "Ops", ".", "push_back", "(", "InFlag", ")", ";", "}", ""], "natrual_language": ["This", "function", "fills", "Ops", ",", "which", "is", "the", "list", "of", "operands", "that", "will", "later", "be", "used", "when", "a", "function", "call", "node", "is", "created", "."], "TS_V_token": ["Mips", "Mips", "Mips::GP_64", "Mips::GP", "MVT::i64", "MVT::i32", "0", "1", "0", "\"Missing call preserved mask for calling convention\"", "Mips", "\"__Mips16RetHelper\"", "Mips", "Mips"], "File": "MipsISelLowering108", "Func": "getOpndList", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3352, "Length": 388, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "enableMachineScheduler", "(", ")", "const", "override", "{", "return", "true", ";", "}", ""], "natrual_language": ["Enable", "the", "MachineScheduler", "pass", "for", "all", "X86", "subtargets", "."], "TS_V_token": ["X86"], "File": "X86Subtarget (2)", "Func": "enableMachineScheduler", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3353, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "X86TargetLowering", "::", "expandIndirectJTBranch", "(", "const", "SDLoc", "&", "dl", ",", "SDValue", "Value", ",", "SDValue", "Addr", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "const", "Module", "*", "M", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getMMI", "(", ")", ".", "getModule", "(", ")", ";", "Metadata", "*", "IsCFProtectionSupported", "=", "M", "->", "getModuleFlag", "(", "\"cf-protection-branch\"", ")", ";", "if", "(", "IsCFProtectionSupported", ")", "{", "return", "DAG", ".", "getNode", "(", "X86ISD", "::", "NT_BRIND", ",", "dl", ",", "MVT", "::", "Other", ",", "Value", ",", "Addr", ")", ";", "}", "return", "TargetLowering", "::", "expandIndirectJTBranch", "(", "dl", ",", "Value", ",", "Addr", ",", "DAG", ")", ";", "}", ""], "natrual_language": ["Expands", "target", "specific", "indirect", "branch", "for", "the", "case", "of", "JumpTable", "expansion", "."], "TS_V_token": ["X86", "X86", "\"cf-protection-branch\"", "X86ISD::NT_BRIND", "MVT::Other"], "File": "X86ISelLowering (2)5", "Func": "expandIndirectJTBranch", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3354, "Length": 93, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ix86_fixup_binary_operands_no_copy", "(", "enum", "rtx_code", "code", ",", "enum", "machine_mode", "mode", ",", "rtx", "operands", "[", "]", ")", "{", "rtx", "dst", "=", "ix86_fixup_binary_operands", "(", "code", ",", "mode", ",", "operands", ")", ";", "gcc_assert", "(", "dst", "==", "operands", "[", "0", "]", ")", ";", "}", ""], "natrual_language": ["Similarly", ",", "but", "assume", "that", "the", "destination", "has", "already", "been", "set", "up", "properly", "."], "TS_V_token": ["i386", "0"], "File": "i3863", "Func": "ix86_fixup_binary_operands_no_copy", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3355, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64PassConfig", "::", "addPreISel", "(", ")", "{", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "EnablePromoteConstant", ")", "addPass", "(", "createAArch64PromoteConstantPass", "(", ")", ")", ";", "if", "(", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "EnableGlobalMerge", "==", "cl", "::", "BOU_UNSET", ")", "||", "EnableGlobalMerge", "==", "cl", "::", "BOU_TRUE", ")", "{", "bool", "OnlyOptimizeForSize", "=", "(", "TM", "->", "getOptLevel", "(", ")", "<", "CodeGenOpt", "::", "Aggressive", ")", "&&", "(", "EnableGlobalMerge", "==", "cl", "::", "BOU_UNSET", ")", ";", "addPass", "(", "createGlobalMergePass", "(", "TM", ",", "4095", ",", "OnlyOptimizeForSize", ")", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["{", "{", "@", "For", "GlobalISel"], "TS_V_token": ["AArch64", "AArch64", "AArch64", "4095"], "File": "AArch64TargetMachine (2)3", "Func": "addPreISel", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3356, "Length": 95, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "internalKnownBits", "(", ")", "const", "{", "unsigned", "Bits", "=", "Unalign", "?", "Unalign", ":", "KnownBits", ";", "if", "(", "Size", "&", "(", "(", "1u", "<<", "Bits", ")", "-", "1", ")", ")", "Bits", "=", "CountTrailingZeros_32", "(", "Size", ")", ";", "return", "Bits", ";", "}", ""], "natrual_language": ["Compute", "the", "number", "of", "known", "offset", "bits", "internally", "to", "this", "block", "."], "TS_V_token": ["ARM", "1u", "1"], "File": "ARMConstantIslandPass12", "Func": "internalKnownBits", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3357, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCFragment", "*", "AArch64AuthMCExpr", "::", "findAssociatedFragment", "(", ")", "const", "{", "llvm_unreachable", "(", "\"FIXME: what goes here?\"", ")", ";", "}", ""], "natrual_language": ["Find", "the", "``", "associated", "section", "''", "for", "this", "expression", ",", "which", "is", "currently", "defined", "as", "the", "absolute", "section", "for", "constants", ",", "or", "otherwise", "the", "section", "associated", "with", "the", "first", "defined", "symbol", "in", "the", "expression", "."], "TS_V_token": ["AArch64", "AArch64", "\"FIXME: what goes here?\""], "File": "AArch64MCExpr17", "Func": "findAssociatedFragment", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3358, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "XNCMPassConfig", "::", "addInstSelector", "(", ")", "{", "PM", ".", "add", "(", "createXNCMISelDag", "(", "getXNCMTargetMachine", "(", ")", ",", "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": ["XNCM", "XNCM", "XNCM", "XNCM"], "File": "XNCMTargetMachine", "Func": "addInstSelector", "Target": "XNCM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3359, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZInstrInfo", "::", "isPredicable", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "if", "(", "Opcode", "==", "SystemZ", "::", "Return", "||", "Opcode", "==", "SystemZ", "::", "Return_XPLINK", "||", "Opcode", "==", "SystemZ", "::", "Trap", "||", "Opcode", "==", "SystemZ", "::", "CallJG", "||", "Opcode", "==", "SystemZ", "::", "CallBR", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "specified", "instruction", "can", "be", "predicated", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ::Return", "SystemZ::Return_XPLINK", "SystemZ::Trap", "SystemZ::CallJG", "SystemZ::CallBR"], "File": "SystemZInstrInfo32", "Func": "isPredicable", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3360, "Length": 60, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_expand_builtin_va_start", "(", "tree", "valist", ",", "rtx", "nextarg", "ATTRIBUTE_UNUSED", ")", "{", "const", "CUMULATIVE_ARGS", "*", "cum", ";", "tree", "f_stack", ",", "f_grtop", ",", "f_vrtop", ",", "f_groff", ",", "f_vroff", ";", "tree", "stack", ",", "grtop", ",", "vrtop", ",", "groff", ",", "vroff", ";", "tree", "t", ";", "int", "gr_save_area_size", ";", "int", "vr_save_area_size", ";", "int", "vr_offset", ";", "cum", "=", "&", "crtl", "->", "args", ".", "info", ";", "gr_save_area_size", "=", "(", "NUM_ARG_REGS", "-", "cum", "->", "aapcs_ncrn", ")", "*", "UNITS_PER_WORD", ";", "vr_save_area_size", "=", "(", "NUM_FP_ARG_REGS", "-", "cum", "->", "aapcs_nvrn", ")", "*", "UNITS_PER_VREG", ";", "if", "(", "!", "TARGET_FLOAT", ")", "{", "gcc_assert", "(", "cum", "->", "aapcs_nvrn", "==", "0", ")", ";", "vr_save_area_size", "=", "0", ";", "}", "f_stack", "=", "TYPE_FIELDS", "(", "va_list_type_node", ")", ";", "f_grtop", "=", "DECL_CHAIN", "(", "f_stack", ")", ";", "f_vrtop", "=", "DECL_CHAIN", "(", "f_grtop", ")", ";", "f_groff", "=", "DECL_CHAIN", "(", "f_vrtop", ")", ";", "f_vroff", "=", "DECL_CHAIN", "(", "f_groff", ")", ";", "stack", "=", "build3", "(", "COMPONENT_REF", ",", "TREE_TYPE", "(", "f_stack", ")", ",", "valist", ",", "f_stack", ",", "NULL_TREE", ")", ";", "grtop", "=", "build3", "(", "COMPONENT_REF", ",", "TREE_TYPE", "(", "f_grtop", ")", ",", "valist", ",", "f_grtop", ",", "NULL_TREE", ")", ";", "vrtop", "=", "build3", "(", "COMPONENT_REF", ",", "TREE_TYPE", "(", "f_vrtop", ")", ",", "valist", ",", "f_vrtop", ",", "NULL_TREE", ")", ";", "groff", "=", "build3", "(", "COMPONENT_REF", ",", "TREE_TYPE", "(", "f_groff", ")", ",", "valist", ",", "f_groff", ",", "NULL_TREE", ")", ";", "vroff", "=", "build3", "(", "COMPONENT_REF", ",", "TREE_TYPE", "(", "f_vroff", ")", ",", "valist", ",", "f_vroff", ",", "NULL_TREE", ")", ";", "t", "=", "make_tree", "(", "TREE_TYPE", "(", "stack", ")", ",", "virtual_incoming_args_rtx", ")", ";", "if", "(", "cum", "->", "aapcs_stack_size", ">", "0", ")", "t", "=", "fold_build_pointer_plus_hwi", "(", "t", ",", "cum", "->", "aapcs_stack_size", "*", "UNITS_PER_WORD", ")", ";", "t", "=", "build2", "(", "MODIFY_EXPR", ",", "TREE_TYPE", "(", "stack", ")", ",", "stack", ",", "t", ")", ";", "expand_expr", "(", "t", ",", "const0_rtx", ",", "VOIDmode", ",", "EXPAND_NORMAL", ")", ";", "t", "=", "make_tree", "(", "TREE_TYPE", "(", "grtop", ")", ",", "virtual_incoming_args_rtx", ")", ";", "t", "=", "build2", "(", "MODIFY_EXPR", ",", "TREE_TYPE", "(", "grtop", ")", ",", "grtop", ",", "t", ")", ";", "expand_expr", "(", "t", ",", "const0_rtx", ",", "VOIDmode", ",", "EXPAND_NORMAL", ")", ";", "t", "=", "make_tree", "(", "TREE_TYPE", "(", "vrtop", ")", ",", "virtual_incoming_args_rtx", ")", ";", "vr_offset", "=", "ROUND_UP", "(", "gr_save_area_size", ",", "STACK_BOUNDARY", "/", "BITS_PER_UNIT", ")", ";", "if", "(", "vr_offset", ")", "t", "=", "fold_build_pointer_plus_hwi", "(", "t", ",", "-", "vr_offset", ")", ";", "t", "=", "build2", "(", "MODIFY_EXPR", ",", "TREE_TYPE", "(", "vrtop", ")", ",", "vrtop", ",", "t", ")", ";", "expand_expr", "(", "t", ",", "const0_rtx", ",", "VOIDmode", ",", "EXPAND_NORMAL", ")", ";", "t", "=", "build2", "(", "MODIFY_EXPR", ",", "TREE_TYPE", "(", "groff", ")", ",", "groff", ",", "build_int_cst", "(", "TREE_TYPE", "(", "groff", ")", ",", "-", "gr_save_area_size", ")", ")", ";", "expand_expr", "(", "t", ",", "const0_rtx", ",", "VOIDmode", ",", "EXPAND_NORMAL", ")", ";", "t", "=", "build2", "(", "MODIFY_EXPR", ",", "TREE_TYPE", "(", "vroff", ")", ",", "vroff", ",", "build_int_cst", "(", "TREE_TYPE", "(", "vroff", ")", ",", "-", "vr_save_area_size", ")", ")", ";", "expand_expr", "(", "t", ",", "const0_rtx", ",", "VOIDmode", ",", "EXPAND_NORMAL", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_EXPAND_BUILTIN_VA_START", "."], "TS_V_token": ["aarch64", "0", "0", "0"], "File": "aarch643", "Func": "aarch64_expand_builtin_va_start", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3361, "Length": 465, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "cmse_func_args_or_return_in_stack", "(", "tree", "fndecl", ",", "tree", "name", ",", "tree", "fntype", ")", "{", "function_args_iterator", "args_iter", ";", "CUMULATIVE_ARGS", "args_so_far_v", ";", "cumulative_args_t", "args_so_far", ";", "bool", "first_param", "=", "true", ";", "tree", "arg_type", ",", "prev_arg_type", "=", "NULL_TREE", ",", "ret_type", ";", "arm_init_cumulative_args", "(", "&", "args_so_far_v", ",", "fntype", ",", "NULL_RTX", ",", "fndecl", ")", ";", "args_so_far", "=", "pack_cumulative_args", "(", "&", "args_so_far_v", ")", ";", "FOREACH_FUNCTION_ARGS", "(", "fntype", ",", "arg_type", ",", "args_iter", ")", "{", "rtx", "arg_rtx", ";", "machine_mode", "arg_mode", "=", "TYPE_MODE", "(", "arg_type", ")", ";", "prev_arg_type", "=", "arg_type", ";", "if", "(", "VOID_TYPE_P", "(", "arg_type", ")", ")", "continue", ";", "if", "(", "!", "first_param", ")", "arm_function_arg_advance", "(", "args_so_far", ",", "arg_mode", ",", "arg_type", ",", "true", ")", ";", "arg_rtx", "=", "arm_function_arg", "(", "args_so_far", ",", "arg_mode", ",", "arg_type", ",", "true", ")", ";", "if", "(", "!", "arg_rtx", "||", "arm_arg_partial_bytes", "(", "args_so_far", ",", "arg_mode", ",", "arg_type", ",", "true", ")", ")", "{", "error", "(", "\"%qE attribute not available to functions with arguments \"", "\"passed on the stack\"", ",", "name", ")", ";", "return", "true", ";", "}", "first_param", "=", "false", ";", "}", "if", "(", "prev_arg_type", "!=", "NULL_TREE", "&&", "!", "VOID_TYPE_P", "(", "prev_arg_type", ")", ")", "{", "error", "(", "\"%qE attribute not available to functions with variable number \"", "\"of arguments\"", ",", "name", ")", ";", "return", "true", ";", "}", "ret_type", "=", "TREE_TYPE", "(", "fntype", ")", ";", "if", "(", "arm_return_in_memory", "(", "ret_type", ",", "fntype", ")", ")", "{", "error", "(", "\"%qE attribute not available to functions that return value on \"", "\"the stack\"", ",", "name", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["This", "function", "returns", "true", "if", "a", "function", "with", "declaration", "FNDECL", "and", "type", "FNTYPE", "uses", "the", "stack", "to", "pass", "arguments", "or", "return", "variables", "and", "false", "otherwise", ".", "This", "is", "used", "for", "functions", "with", "the", "attributes", "'cmse_nonsecure_call", "'", "or", "'cmse_nonsecure_entry", "'", "and", "this", "function", "will", "issue", "diagnostic", "messages", "if", "the", "stack", "is", "used", ".", "NAME", "is", "the", "name", "of", "the", "attribute", "used", "."], "TS_V_token": ["arm", "\"%qE attribute not available to functions with arguments \"", "\"passed on the stack\"", "\"%qE attribute not available to functions with variable number \"", "\"of arguments\"", "\"%qE attribute not available to functions that return value on \"", "\"the stack\""], "File": "arm6", "Func": "cmse_func_args_or_return_in_stack", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3362, "Length": 211, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCVSXSwapRemoval", "::", "initialize", "(", "MachineFunction", "&", "MFParm", ")", "{", "MF", "=", "&", "MFParm", ";", "MRI", "=", "&", "MF", "->", "getRegInfo", "(", ")", ";", "TII", "=", "static_cast", "<", "const", "PPCInstrInfo", "*", ">", "(", "MF", "->", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "const", "int", "InitialVectorSize", "(", "256", ")", ";", "SwapVector", ".", "clear", "(", ")", ";", "SwapVector", ".", "reserve", "(", "InitialVectorSize", ")", ";", "EC", "=", "new", "EquivalenceClasses", "<", "int", ">", ";", "}", ""], "natrual_language": ["Initialize", "the", "strategy", "after", "building", "the", "DAG", "for", "a", "new", "region", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "256"], "File": "PPCVSXSwapRemoval13", "Func": "initialize", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3363, "Length": 73, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "mmix_trampoline_template", "(", "FILE", "*", "stream", ")", "{", "fprintf", "(", "stream", ",", "\"\\tGETA $255,1F\\n\\t\"", ")", ";", "fprintf", "(", "stream", ",", "\"LDOU %s,$255,0\\n\\t\"", ",", "reg_names", "[", "MMIX_STATIC_CHAIN_REGNUM", "]", ")", ";", "fprintf", "(", "stream", ",", "\"LDOU $255,$255,8\\n\\t\"", ")", ";", "fprintf", "(", "stream", ",", "\"GO $255,$255,0\\n\"", ")", ";", "fprintf", "(", "stream", ",", "\"1H\\tOCTA 0\\n\\t\"", ")", ";", "fprintf", "(", "stream", ",", "\"OCTA 0\\n\"", ")", ";", "}", ""], "natrual_language": ["TRAMPOLINE_TEMPLATE", "."], "TS_V_token": ["mmix", "\"\\tGETA $255,1F\\n\\t\"", "\"LDOU %s,$255,0\\n\\t\"", "\"LDOU $255,$255,8\\n\\t\"", "\"GO $255,$255,0\\n\"", "\"1H\\tOCTA 0\\n\\t\"", "\"OCTA 0\\n\""], "File": "mmix3", "Func": "mmix_trampoline_template", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3364, "Length": 56, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx_insn", "*", "nds32_md_asm_adjust", "(", "vec", "<", "rtx", ">", "&", "outputs", "ATTRIBUTE_UNUSED", ",", "vec", "<", "rtx", ">", "&", "inputs", "ATTRIBUTE_UNUSED", ",", "vec", "<", "machine_mode", ">", "&", "input_modes", "ATTRIBUTE_UNUSED", ",", "vec", "<", "const", "char", "*", ">", "&", "constraints", "ATTRIBUTE_UNUSED", ",", "vec", "<", "rtx", ">", "&", "clobbers", ",", "HARD_REG_SET", "&", "clobbered_regs", ")", "{", "if", "(", "!", "flag_inline_asm_r15", ")", "{", "clobbers", ".", "safe_push", "(", "gen_rtx_REG", "(", "SImode", ",", "TA_REGNUM", ")", ")", ";", "SET_HARD_REG_BIT", "(", "clobbered_regs", ",", "TA_REGNUM", ")", ";", "}", "return", "NULL", ";", "}", ""], "natrual_language": ["Miscellaneous", "Parameters", "."], "TS_V_token": ["nds32"], "File": "nds321", "Func": "nds32_md_asm_adjust", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3365, "Length": 81, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "output_probe_stack_range", "(", "rtx", "reg1", ",", "rtx", "reg2", ")", "{", "static", "int", "labelno", "=", "0", ";", "char", "loop_lab", "[", "32", "]", ";", "rtx", "xops", "[", "2", "]", ";", "ASM_GENERATE_INTERNAL_LABEL", "(", "loop_lab", ",", "\"LPSRL\"", ",", "labelno", "++", ")", ";", "ASM_OUTPUT_INTERNAL_LABEL", "(", "asm_out_file", ",", "loop_lab", ")", ";", "xops", "[", "0", "]", "=", "reg1", ";", "xops", "[", "1", "]", "=", "GEN_INT", "(", "-", "PROBE_INTERVAL", ")", ";", "output_asm_insn", "(", "\"add\\t%0, %1, %0\"", ",", "xops", ")", ";", "xops", "[", "1", "]", "=", "reg2", ";", "output_asm_insn", "(", "\"cmp\\t%0, %1\"", ",", "xops", ")", ";", "if", "(", "TARGET_ARCH64", ")", "fputs", "(", "\"\\tbne,pt\\t%xcc,\"", ",", "asm_out_file", ")", ";", "else", "fputs", "(", "\"\\tbne\\t\"", ",", "asm_out_file", ")", ";", "assemble_name_raw", "(", "asm_out_file", ",", "loop_lab", ")", ";", "fputc", "(", "'\\n'", ",", "asm_out_file", ")", ";", "xops", "[", "1", "]", "=", "GEN_INT", "(", "SPARC_STACK_BIAS", ")", ";", "output_asm_insn", "(", "\" st\\t%%g0, [%0+%1]\"", ",", "xops", ")", ";", "return", "\"\"", ";", "}", ""], "natrual_language": ["Wrapper", "around", "the", "output_probe_stack_range", "routines", "."], "TS_V_token": ["sparc", "0", "32", "2", "\"LPSRL\"", "0", "1", "\"add\\t%0, %1, %0\"", "1", "\"cmp\\t%0, %1\"", "\"\\tbne,pt\\t%xcc,\"", "\"\\tbne\\t\"", "1", "\" st\\t%%g0, [%0+%1]\"", "\"\""], "File": "sparc", "Func": "output_probe_stack_range", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3366, "Length": 140, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "char", "*", "aarch64_get_multilib_abi_name", "(", "void", ")", "{", "if", "(", "TARGET_BIG_END", ")", "return", "TARGET_ILP32", "?", "\"aarch64_be_ilp32\"", ":", "\"aarch64_be\"", ";", "return", "TARGET_ILP32", "?", "\"aarch64_ilp32\"", ":", "\"aarch64\"", ";", "}", ""], "natrual_language": ["Implement", "TARGET_GET_MULTILIB_ABI_NAME"], "TS_V_token": ["aarch64", "\"aarch64_be_ilp32\"", "\"aarch64_be\"", "\"aarch64_ilp32\"", "\"aarch64\""], "File": "aarch64", "Func": "aarch64_get_multilib_abi_name", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3367, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "X86RegisterInfo", "::", "getCallPreservedMask", "(", "CallingConv", "::", "ID", "CC", ")", "const", "{", "bool", "HasAVX", "=", "TM", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "hasAVX", "(", ")", ";", "if", "(", "CC", "==", "CallingConv", "::", "Intel_OCL_BI", ")", "{", "if", "(", "IsWin64", "&&", "HasAVX", ")", "return", "CSR_Win64_Intel_OCL_BI_AVX_RegMask", ";", "if", "(", "Is64Bit", "&&", "HasAVX", ")", "return", "CSR_64_Intel_OCL_BI_AVX_RegMask", ";", "if", "(", "!", "HasAVX", "&&", "!", "IsWin64", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_RegMask", ";", "}", "if", "(", "CC", "==", "CallingConv", "::", "GHC", ")", "return", "CSR_NoRegs_RegMask", ";", "if", "(", "!", "Is64Bit", ")", "return", "CSR_32_RegMask", ";", "if", "(", "IsWin64", ")", "return", "CSR_Win64_RegMask", ";", "return", "CSR_64_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86RegisterInfo58", "Func": "getCallPreservedMask", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3368, "Length": 101, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsOptimizePICCall", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "F", ")", "{", "if", "(", "static_cast", "<", "const", "MipsSubtarget", "&", ">", "(", "F", ".", "getSubtarget", "(", ")", ")", ".", "inMips16Mode", "(", ")", ")", "return", "false", ";", "MachineDominatorTree", "*", "MDT", "=", "&", "getAnalysis", "<", "MachineDominatorTree", ">", "(", ")", ";", "bool", "Changed", "=", "false", ";", "SmallVector", "<", "MBBInfo", ",", "8", ">", "WorkList", "(", "1", ",", "MBBInfo", "(", "MDT", "->", "getRootNode", "(", ")", ")", ")", ";", "while", "(", "!", "WorkList", ".", "empty", "(", ")", ")", "{", "MBBInfo", "&", "MBBI", "=", "WorkList", ".", "back", "(", ")", ";", "if", "(", "MBBI", ".", "isVisited", "(", ")", ")", "{", "MBBI", ".", "postVisit", "(", ")", ";", "WorkList", ".", "pop_back", "(", ")", ";", "continue", ";", "}", "MBBI", ".", "preVisit", "(", "ScopedHT", ")", ";", "Changed", "|=", "visitNode", "(", "MBBI", ")", ";", "const", "MachineDomTreeNode", "*", "Node", "=", "MBBI", ".", "getNode", "(", ")", ";", "WorkList", ".", "append", "(", "Node", "->", "begin", "(", ")", ",", "Node", "->", "end", "(", ")", ")", ";", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "8", "1"], "File": "MipsOptimizePICCall15", "Func": "runOnMachineFunction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3369, "Length": 161, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "pru_hard_regno_mode_ok", "(", "unsigned", "int", "regno", ",", "machine_mode", "mode", ")", "{", "switch", "(", "GET_MODE_SIZE", "(", "mode", ")", ")", "{", "case", "1", ":", "return", "true", ";", "case", "2", ":", "return", "(", "regno", "%", "4", ")", "<=", "2", ";", "case", "4", ":", "return", "(", "regno", "%", "4", ")", "==", "0", ";", "case", "8", ":", "return", "(", "regno", "%", "4", ")", "==", "0", ";", "case", "16", ":", "return", "(", "regno", "%", "4", ")", "==", "0", ";", "case", "32", ":", "return", "(", "regno", "%", "4", ")", "==", "0", ";", "default", ":", "gcc_assert", "(", "mode", "==", "BLKmode", "||", "mode", "==", "VOIDmode", ")", ";", "return", "(", "regno", "%", "4", ")", "==", "0", ";", "}", "}", ""], "natrual_language": ["Implement", "TARGET_HARD_REGNO_MODE_OK", "."], "TS_V_token": ["pru", "1", "2", "4", "2", "4", "4", "0", "8", "4", "0", "16", "4", "0", "32", "4", "0", "4", "0"], "File": "pru", "Func": "pru_hard_regno_mode_ok", "Target": "pru", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3370, "Length": 110, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "VESubtarget", "&", "VESubtarget", "::", "initializeSubtargetDependencies", "(", "StringRef", "CPU", ",", "StringRef", "FS", ")", "{", "std", "::", "string", "CPUName", "=", "CPU", ";", "if", "(", "CPUName", ".", "empty", "(", ")", ")", "CPUName", "=", "\"ve\"", ";", "ParseSubtargetFeatures", "(", "CPUName", ",", "FS", ")", ";", "return", "*", "this", ";", "}", ""], "natrual_language": ["initializeSubtargetDependencies", "-", "Initializes", "using", "a", "CPU", ",", "a", "TuneCPU", ",", "and", "feature", "string", "so", "that", "we", "can", "use", "initializer", "lists", "for", "subtarget", "initialization", "."], "TS_V_token": ["VE", "VE", "VE", "\"ve\""], "File": "VESubtarget6", "Func": "initializeSubtargetDependencies", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3371, "Length": 44, "Cover_Rate": 1.0, "Template_token": []} {"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", "{", "Value", "=", "adjustFixupValue", "(", "Fixup", ".", "getKind", "(", ")", ",", "Value", ")", ";", "if", "(", "!", "Value", ")", "return", ";", "unsigned", "Offset", "=", "Fixup", ".", "getOffset", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "4", ";", "++", "i", ")", "{", "unsigned", "Idx", "=", "Endian", "==", "support", "::", "little", "?", "i", ":", "3", "-", "i", ";", "Data", "[", "Offset", "+", "Idx", "]", "|=", "uint8_t", "(", "(", "Value", ">>", "(", "i", "*", "8", ")", ")", "&", "0xff", ")", ";", "}", "}", ""], "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": ["Sparc", "0", "4", "support::little", "3", "8", "0xff"], "File": "SparcAsmBackend16", "Func": "applyFixup", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3372, "Length": 121, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCTargetLowering", "::", "getExceptionSelectorRegister", "(", "const", "Constant", "*", "PersonalityFn", ")", "const", "{", "return", "Subtarget", ".", "isPPC64", "(", ")", "?", "PPC", "::", "X4", ":", "PPC", "::", "R4", ";", "}", ""], "natrual_language": ["If", "a", "physical", "register", ",", "this", "returns", "the", "register", "that", "receives", "the", "exception", "typeid", "on", "entry", "to", "a", "landing", "pad", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC::X4", "PPC::R4"], "File": "PPCISelLowering (2)2", "Func": "getExceptionSelectorRegister", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3373, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "X86RegisterInfo", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", "MF", ",", "CallingConv", "::", "ID", "CC", ")", "const", "{", "const", "X86Subtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "bool", "HasSSE", "=", "Subtarget", ".", "hasSSE1", "(", ")", ";", "bool", "HasAVX", "=", "Subtarget", ".", "hasAVX", "(", ")", ";", "bool", "HasAVX512", "=", "Subtarget", ".", "hasAVX512", "(", ")", ";", "switch", "(", "CC", ")", "{", "case", "CallingConv", "::", "GHC", ":", "case", "CallingConv", "::", "HiPE", ":", "return", "CSR_NoRegs_RegMask", ";", "case", "CallingConv", "::", "AnyReg", ":", "if", "(", "HasAVX", ")", "return", "CSR_64_AllRegs_AVX_RegMask", ";", "return", "CSR_64_AllRegs_RegMask", ";", "case", "CallingConv", "::", "PreserveMost", ":", "return", "CSR_64_RT_MostRegs_RegMask", ";", "case", "CallingConv", "::", "PreserveAll", ":", "if", "(", "HasAVX", ")", "return", "CSR_64_RT_AllRegs_AVX_RegMask", ";", "return", "CSR_64_RT_AllRegs_RegMask", ";", "case", "CallingConv", "::", "CXX_FAST_TLS", ":", "if", "(", "Is64Bit", ")", "return", "CSR_64_TLS_Darwin_RegMask", ";", "break", ";", "case", "CallingConv", "::", "Intel_OCL_BI", ":", "{", "if", "(", "HasAVX512", "&&", "IsWin64", ")", "return", "CSR_Win64_Intel_OCL_BI_AVX512_RegMask", ";", "if", "(", "HasAVX512", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_AVX512_RegMask", ";", "if", "(", "HasAVX", "&&", "IsWin64", ")", "return", "CSR_Win64_Intel_OCL_BI_AVX_RegMask", ";", "if", "(", "HasAVX", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_AVX_RegMask", ";", "if", "(", "!", "HasAVX", "&&", "!", "IsWin64", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_RegMask", ";", "break", ";", "}", "case", "CallingConv", "::", "HHVM", ":", "return", "CSR_64_HHVM_RegMask", ";", "case", "CallingConv", "::", "Cold", ":", "if", "(", "Is64Bit", ")", "return", "CSR_64_MostRegs_RegMask", ";", "break", ";", "case", "CallingConv", "::", "X86_64_Win64", ":", "return", "CSR_Win64_RegMask", ";", "case", "CallingConv", "::", "X86_64_SysV", ":", "return", "CSR_64_RegMask", ";", "case", "CallingConv", "::", "X86_INTR", ":", "if", "(", "Is64Bit", ")", "{", "if", "(", "HasAVX", ")", "return", "CSR_64_AllRegs_AVX_RegMask", ";", "else", "return", "CSR_64_AllRegs_RegMask", ";", "}", "else", "{", "if", "(", "HasSSE", ")", "return", "CSR_32_AllRegs_SSE_RegMask", ";", "else", "return", "CSR_32_AllRegs_RegMask", ";", "}", "default", ":", "break", ";", "}", "if", "(", "Is64Bit", ")", "{", "if", "(", "IsWin64", ")", "return", "CSR_Win64_RegMask", ";", "return", "CSR_64_RegMask", ";", "}", "return", "CSR_32_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86", "X86"], "File": "X86RegisterInfo (2)", "Func": "getCallPreservedMask", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3374, "Length": 287, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_set_default_type_attributes", "(", "tree", "type", ")", "{", "if", "(", "rs6000_default_long_calls", "&&", "(", "TREE_CODE", "(", "type", ")", "==", "FUNCTION_TYPE", "||", "TREE_CODE", "(", "type", ")", "==", "METHOD_TYPE", ")", ")", "TYPE_ATTRIBUTES", "(", "type", ")", "=", "tree_cons", "(", "get_identifier", "(", "\"longcall\"", ")", ",", "NULL_TREE", ",", "TYPE_ATTRIBUTES", "(", "type", ")", ")", ";", "darwin_set_default_type_attributes", "(", "type", ")", ";", "}", ""], "natrual_language": ["Set", "longcall", "attributes", "on", "all", "functions", "declared", "when", "rs6000_default_long_calls", "is", "true", "."], "TS_V_token": ["rs6000", "\"longcall\""], "File": "rs6000", "Func": "rs6000_set_default_type_attributes", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3375, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "AArch64RegisterInfo", "::", "getRegPressureLimit", "(", "const", "TargetRegisterClass", "*", "RC", ",", "MachineFunction", "&", "MF", ")", "const", "{", "const", "AArch64FrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "switch", "(", "RC", "->", "getID", "(", ")", ")", "{", "default", ":", "return", "0", ";", "case", "AArch64", "::", "GPR32RegClassID", ":", "case", "AArch64", "::", "GPR32spRegClassID", ":", "case", "AArch64", "::", "GPR32allRegClassID", ":", "case", "AArch64", "::", "GPR64spRegClassID", ":", "case", "AArch64", "::", "GPR64allRegClassID", ":", "case", "AArch64", "::", "GPR64RegClassID", ":", "case", "AArch64", "::", "GPR32commonRegClassID", ":", "case", "AArch64", "::", "GPR64commonRegClassID", ":", "return", "32", "-", "1", "-", "(", "TFI", "->", "hasFP", "(", "MF", ")", "||", "TT", ".", "isOSDarwin", "(", ")", ")", "-", "MF", ".", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ".", "getNumXRegisterReserved", "(", ")", "-", "hasBasePointer", "(", "MF", ")", "-", "MF", ".", "getFunction", "(", ")", ".", "isPagerando", "(", ")", ";", "case", "AArch64", "::", "FPR8RegClassID", ":", "case", "AArch64", "::", "FPR16RegClassID", ":", "case", "AArch64", "::", "FPR32RegClassID", ":", "case", "AArch64", "::", "FPR64RegClassID", ":", "case", "AArch64", "::", "FPR128RegClassID", ":", "return", "32", ";", "case", "AArch64", "::", "DDRegClassID", ":", "case", "AArch64", "::", "DDDRegClassID", ":", "case", "AArch64", "::", "DDDDRegClassID", ":", "case", "AArch64", "::", "QQRegClassID", ":", "case", "AArch64", "::", "QQQRegClassID", ":", "case", "AArch64", "::", "QQQQRegClassID", ":", "return", "32", ";", "case", "AArch64", "::", "FPR128_loRegClassID", ":", "return", "16", ";", "}", "}", ""], "natrual_language": ["Return", "the", "register", "pressure", "``", "high", "water", "mark", "''", "for", "the", "specific", "register", "class", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "0", "AArch64::GPR32RegClassID", "AArch64::GPR32spRegClassID", "AArch64::GPR32allRegClassID", "AArch64::GPR64spRegClassID", "AArch64::GPR64allRegClassID", "AArch64::GPR64RegClassID", "AArch64::GPR32commonRegClassID", "AArch64::GPR64commonRegClassID", "32", "1", "AArch64", "AArch64::FPR8RegClassID", "AArch64::FPR16RegClassID", "AArch64::FPR32RegClassID", "AArch64::FPR64RegClassID", "AArch64::FPR128RegClassID", "32", "AArch64::DDRegClassID", "AArch64::DDDRegClassID", "AArch64::DDDDRegClassID", "AArch64::QQRegClassID", "AArch64::QQQRegClassID", "AArch64::QQQQRegClassID", "32", "AArch64::FPR128_loRegClassID", "16"], "File": "AArch64RegisterInfo2", "Func": "getRegPressureLimit", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3376, "Length": 199, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "predict_jump", "(", "int", "prob", ")", "{", "rtx_insn", "*", "insn", "=", "get_last_insn", "(", ")", ";", "gcc_assert", "(", "JUMP_P", "(", "insn", ")", ")", ";", "add_reg_br_prob_note", "(", "insn", ",", "profile_probability", "::", "from_reg_br_prob_base", "(", "prob", ")", ")", ";", "}", ""], "natrual_language": ["Predict", "just", "emitted", "jump", "instruction", "to", "be", "taken", "with", "probability", "PROB", "."], "TS_V_token": ["i386"], "File": "i386-expand", "Func": "predict_jump", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3377, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86AsmPrinter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "SMShadowTracker", ".", "startFunction", "(", "MF", ")", ";", "CodeEmitter", ".", "reset", "(", "TM", ".", "getTarget", "(", ")", ".", "createMCCodeEmitter", "(", "*", "Subtarget", "->", "getInstrInfo", "(", ")", ",", "MF", ".", "getContext", "(", ")", ")", ")", ";", "EmitFPOData", "=", "Subtarget", "->", "isTargetWin32", "(", ")", "&&", "MF", ".", "getMMI", "(", ")", ".", "getModule", "(", ")", "->", "getCodeViewFlag", "(", ")", ";", "SetupMachineFunction", "(", "MF", ")", ";", "if", "(", "Subtarget", "->", "isTargetCOFF", "(", ")", ")", "{", "bool", "Local", "=", "MF", ".", "getFunction", "(", ")", ".", "hasLocalLinkage", "(", ")", ";", "OutStreamer", "->", "BeginCOFFSymbolDef", "(", "CurrentFnSym", ")", ";", "OutStreamer", "->", "EmitCOFFSymbolStorageClass", "(", "Local", "?", "COFF", "::", "IMAGE_SYM_CLASS_STATIC", ":", "COFF", "::", "IMAGE_SYM_CLASS_EXTERNAL", ")", ";", "OutStreamer", "->", "EmitCOFFSymbolType", "(", "COFF", "::", "IMAGE_SYM_DTYPE_FUNCTION", "<<", "COFF", "::", "SCT_COMPLEX_TYPE_SHIFT", ")", ";", "OutStreamer", "->", "EndCOFFSymbolDef", "(", ")", ";", "}", "emitFunctionBody", "(", ")", ";", "emitXRayTable", "(", ")", ";", "EmitFPOData", "=", "false", ";", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86AsmPrinter36", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3378, "Length": 163, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "tree", "gimple_folder", "::", "force_vector", "(", "gimple_seq", "&", "stmts", ",", "tree", "vectype", ",", "tree", "value", ")", "{", "if", "(", "!", "VECTOR_TYPE_P", "(", "TREE_TYPE", "(", "value", ")", ")", ")", "value", "=", "gimple_build_vector_from_val", "(", "&", "stmts", ",", "vectype", ",", "value", ")", ";", "return", "value", ";", "}", ""], "natrual_language": ["VALUE", "might", "be", "a", "vector", "of", "type", "VECTYPE", "or", "a", "single", "scalar", "element", ".", "Duplicate", "it", "into", "a", "vector", "of", "type", "VECTYPE", "in", "the", "latter", "case", ",", "adding", "any", "new", "statements", "to", "STMTS", "."], "TS_V_token": ["aarch64"], "File": "aarch64-sve-builtins", "Func": "force_vector", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3379, "Length": 43, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "aarch64_offset_7bit_signed_scaled_p", "(", "machine_mode", "mode", ",", "poly_int64", "offset", ")", "{", "HOST_WIDE_INT", "multiple", ";", "return", "(", "constant_multiple_p", "(", "offset", ",", "GET_MODE_SIZE", "(", "mode", ")", ",", "&", "multiple", ")", "&&", "IN_RANGE", "(", "multiple", ",", "-", "64", ",", "63", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "OFFSET", "is", "a", "signed", "7-bit", "value", "multiplied", "by", "the", "size", "of", "MODE", "."], "TS_V_token": ["aarch64", "64", "63"], "File": "aarch64", "Func": "aarch64_offset_7bit_signed_scaled_p", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3380, "Length": 40, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_function_ok_for_sibcall", "(", "tree", "decl", ",", "tree", "exp", ")", "{", "tree", "type", ",", "decl_or_type", ";", "rtx", "a", ",", "b", ";", "if", "(", "!", "TARGET_MACHO", "&&", "!", "TARGET_64BIT", "&&", "flag_pic", "&&", "(", "!", "decl", "||", "!", "targetm", ".", "binds_local_p", "(", "decl", ")", ")", ")", "return", "false", ";", "if", "(", "ix86_minimum_incoming_stack_boundary", "(", "true", ")", "<", "PREFERRED_STACK_BOUNDARY", ")", "return", "false", ";", "if", "(", "decl", ")", "{", "decl_or_type", "=", "decl", ";", "type", "=", "TREE_TYPE", "(", "decl", ")", ";", "}", "else", "{", "type", "=", "CALL_EXPR_FN", "(", "exp", ")", ";", "type", "=", "TREE_TYPE", "(", "type", ")", ";", "type", "=", "TREE_TYPE", "(", "type", ")", ";", "decl_or_type", "=", "type", ";", "}", "a", "=", "ix86_function_value", "(", "TREE_TYPE", "(", "exp", ")", ",", "decl_or_type", ",", "false", ")", ";", "b", "=", "ix86_function_value", "(", "TREE_TYPE", "(", "DECL_RESULT", "(", "cfun", "->", "decl", ")", ")", ",", "cfun", "->", "decl", ",", "false", ")", ";", "if", "(", "STACK_REG_P", "(", "a", ")", "||", "STACK_REG_P", "(", "b", ")", ")", "{", "if", "(", "!", "rtx_equal_p", "(", "a", ",", "b", ")", ")", "return", "false", ";", "}", "else", "if", "(", "VOID_TYPE_P", "(", "TREE_TYPE", "(", "DECL_RESULT", "(", "cfun", "->", "decl", ")", ")", ")", ")", ";", "else", "if", "(", "!", "rtx_equal_p", "(", "a", ",", "b", ")", ")", "return", "false", ";", "if", "(", "TARGET_64BIT", ")", "{", "if", "(", "cfun", "->", "machine", "->", "call_abi", "==", "MS_ABI", "&&", "ix86_function_type_abi", "(", "type", ")", "==", "SYSV_ABI", ")", "return", "false", ";", "}", "else", "{", "if", "(", "!", "decl", "||", "(", "TARGET_DLLIMPORT_DECL_ATTRIBUTES", "&&", "DECL_DLLIMPORT_P", "(", "decl", ")", ")", ")", "{", "if", "(", "ix86_function_regparm", "(", "type", ",", "NULL", ")", ">=", "3", ")", "{", "return", "false", ";", "}", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["Decide", "whether", "we", "can", "make", "a", "sibling", "call", "to", "a", "function", ".", "DECL", "is", "the", "declaration", "of", "the", "function", "being", "targeted", "by", "the", "call", "and", "EXP", "is", "the", "CALL_EXPR", "representing", "the", "call", "."], "TS_V_token": ["i386", "3"], "File": "i3864", "Func": "ix86_function_ok_for_sibcall", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3381, "Length": 262, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SparcSubtarget", "::", "enableMachineScheduler", "(", ")", "const", "{", "return", "true", ";", "}", ""], "natrual_language": ["Enable", "the", "MachineScheduler", "pass", "for", "all", "X86", "subtargets", "."], "TS_V_token": ["Sparc", "Sparc"], "File": "SparcSubtarget1", "Func": "enableMachineScheduler", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3382, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64TargetStreamer", "::", "finish", "(", ")", "{", "ConstantPools", "->", "emitAll", "(", "Streamer", ")", ";", "if", "(", "MarkBTIProperty", ")", "emitNoteSection", "(", "ELF", "::", "GNU_PROPERTY_AARCH64_FEATURE_1_BTI", ")", ";", "}", ""], "natrual_language": ["finish", "-", "after", "all", "the", "new", "live", "ranges", "have", "been", "created", ",", "compute", "the", "remaining", "live", "range", ",", "and", "rewrite", "instructions", "to", "use", "the", "new", "registers", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64TargetStreamer13", "Func": "finish", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3383, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCDarwinAsmPrinter", "::", "doFinalization", "(", "Module", "&", "M", ")", "{", "bool", "isPPC64", "=", "TM", ".", "getTargetData", "(", ")", "->", "getPointerSizeInBits", "(", ")", "==", "64", ";", "TargetLoweringObjectFileMachO", "&", "TLOFMacho", "=", "static_cast", "<", "TargetLoweringObjectFileMachO", "&", ">", "(", "getObjFileLowering", "(", ")", ")", ";", "MachineModuleInfoMachO", "&", "MMIMacho", "=", "MMI", "->", "getObjFileInfo", "<", "MachineModuleInfoMachO", ">", "(", ")", ";", "MachineModuleInfoMachO", "::", "SymbolListTy", "Stubs", "=", "MMIMacho", ".", "GetFnStubList", "(", ")", ";", "if", "(", "!", "Stubs", ".", "empty", "(", ")", ")", "EmitFunctionStubs", "(", "Stubs", ")", ";", "if", "(", "MAI", "->", "doesSupportExceptionHandling", "(", ")", "&&", "MMI", ")", "{", "const", "std", "::", "vector", "<", "Function", "*", ">", "&", "Personalities", "=", "MMI", "->", "getPersonalities", "(", ")", ";", "for", "(", "std", "::", "vector", "<", "Function", "*", ">", "::", "const_iterator", "I", "=", "Personalities", ".", "begin", "(", ")", ",", "E", "=", "Personalities", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "if", "(", "*", "I", ")", "{", "MCSymbol", "*", "NLPSym", "=", "GetSymbolWithGlobalValueBase", "(", "*", "I", ",", "\"$non_lazy_ptr\"", ")", ";", "MachineModuleInfoImpl", "::", "StubValueTy", "&", "StubSym", "=", "MMIMacho", ".", "getGVStubEntry", "(", "NLPSym", ")", ";", "StubSym", "=", "MachineModuleInfoImpl", "::", "StubValueTy", "(", "Mang", "->", "getSymbol", "(", "*", "I", ")", ",", "true", ")", ";", "}", "}", "}", "Stubs", "=", "MMIMacho", ".", "GetGVStubList", "(", ")", ";", "if", "(", "!", "Stubs", ".", "empty", "(", ")", ")", "{", "OutStreamer", ".", "SwitchSection", "(", "TLOFMacho", ".", "getNonLazySymbolPointerSection", "(", ")", ")", ";", "EmitAlignment", "(", "isPPC64", "?", "3", ":", "2", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "Stubs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "OutStreamer", ".", "EmitLabel", "(", "Stubs", "[", "i", "]", ".", "first", ")", ";", "MachineModuleInfoImpl", "::", "StubValueTy", "&", "MCSym", "=", "Stubs", "[", "i", "]", ".", "second", ";", "OutStreamer", ".", "EmitSymbolAttribute", "(", "MCSym", ".", "getPointer", "(", ")", ",", "MCSA_IndirectSymbol", ")", ";", "if", "(", "MCSym", ".", "getInt", "(", ")", ")", "OutStreamer", ".", "EmitIntValue", "(", "0", ",", "isPPC64", "?", "8", ":", "4", ",", "0", ")", ";", "else", "OutStreamer", ".", "EmitValue", "(", "MCSymbolRefExpr", "::", "Create", "(", "MCSym", ".", "getPointer", "(", ")", ",", "OutContext", ")", ",", "isPPC64", "?", "8", ":", "4", ",", "0", ")", ";", "}", "Stubs", ".", "clear", "(", ")", ";", "OutStreamer", ".", "AddBlankLine", "(", ")", ";", "}", "Stubs", "=", "MMIMacho", ".", "GetHiddenGVStubList", "(", ")", ";", "if", "(", "!", "Stubs", ".", "empty", "(", ")", ")", "{", "OutStreamer", ".", "SwitchSection", "(", "getObjFileLowering", "(", ")", ".", "getDataSection", "(", ")", ")", ";", "EmitAlignment", "(", "isPPC64", "?", "3", ":", "2", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "Stubs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "OutStreamer", ".", "EmitLabel", "(", "Stubs", "[", "i", "]", ".", "first", ")", ";", "OutStreamer", ".", "EmitValue", "(", "MCSymbolRefExpr", "::", "Create", "(", "Stubs", "[", "i", "]", ".", "second", ".", "getPointer", "(", ")", ",", "OutContext", ")", ",", "isPPC64", "?", "8", ":", "4", ",", "0", ")", ";", "}", "Stubs", ".", "clear", "(", ")", ";", "OutStreamer", ".", "AddBlankLine", "(", ")", ";", "}", "OutStreamer", ".", "EmitAssemblerFlag", "(", "MCAF_SubsectionsViaSymbols", ")", ";", "return", "AsmPrinter", "::", "doFinalization", "(", "M", ")", ";", "}", ""], "natrual_language": ["doFinalization", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "any", "necessary", "clean", "up", "after", "all", "passes", "have", "run", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "64", "\"$non_lazy_ptr\"", "PPC", "3", "2", "0", "0", "PPC", "8", "4", "0", "PPC", "8", "4", "0", "PPC", "3", "2", "0", "PPC", "8", "4", "0"], "File": "PPCAsmPrinter107", "Func": "doFinalization", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3384, "Length": 491, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "X86Subtarget", "::", "X86Subtarget", "(", "const", "std", "::", "string", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "unsigned", "StackAlignOverride", ",", "bool", "is64Bit", ")", ":", "X86GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "X86ProcFamily", "(", "Others", ")", ",", "PICStyle", "(", "PICStyles", "::", "None", ")", ",", "TargetTriple", "(", "TT", ")", ",", "StackAlignOverride", "(", "StackAlignOverride", ")", ",", "In64BitMode", "(", "is64Bit", ")", "{", "initializeEnvironment", "(", ")", ";", "resetSubtargetFeatures", "(", "CPU", ",", "FS", ")", ";", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86"], "File": "X86Subtarget104", "Func": "X86Subtarget", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3385, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "llvm", "::", "FastISel", "*", "X86", "::", "createFastISel", "(", "FunctionLoweringInfo", "&", "funcInfo", ")", "{", "return", "new", "X86FastISel", "(", "funcInfo", ")", ";", "}", ""], "natrual_language": ["This", "method", "returns", "a", "target", "specific", "FastISel", "object", ",", "or", "null", "if", "the", "target", "does", "not", "support", "``", "fast", "''", "ISel", "."], "TS_V_token": ["X86", "X86::createFastISel", "X86"], "File": "X86FastISel112", "Func": "createFastISel", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3386, "Length": 21, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ix86_split_copysign_const", "(", "rtx", "operands", "[", "]", ")", "{", "enum", "machine_mode", "mode", ",", "vmode", ";", "rtx", "dest", ",", "op0", ",", "op1", ",", "mask", ",", "x", ";", "dest", "=", "operands", "[", "0", "]", ";", "op0", "=", "operands", "[", "1", "]", ";", "op1", "=", "operands", "[", "2", "]", ";", "mask", "=", "operands", "[", "3", "]", ";", "mode", "=", "GET_MODE", "(", "dest", ")", ";", "vmode", "=", "GET_MODE", "(", "mask", ")", ";", "dest", "=", "simplify_gen_subreg", "(", "vmode", ",", "dest", ",", "mode", ",", "0", ")", ";", "x", "=", "gen_rtx_AND", "(", "vmode", ",", "dest", ",", "mask", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "dest", ",", "x", ")", ")", ";", "if", "(", "op0", "!=", "CONST0_RTX", "(", "vmode", ")", ")", "{", "x", "=", "gen_rtx_IOR", "(", "vmode", ",", "dest", ",", "op0", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "dest", ",", "x", ")", ")", ";", "}", "}", ""], "natrual_language": ["Deconstruct", "a", "copysign", "operation", "into", "bit", "masks", ".", "Operand", "0", "is", "known", "to", "be", "a", "constant", ",", "and", "so", "has", "already", "been", "expanded", "into", "a", "vector", "constant", "."], "TS_V_token": ["i386", "0", "1", "2", "3", "0"], "File": "i3863", "Func": "ix86_split_copysign_const", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3387, "Length": 139, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsSERegisterInfo", "::", "requiresFrameIndexScavenging", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "requires", "post", "PEI", "scavenging", "of", "registers", "for", "materializing", "frame", "index", "constants", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsSERegisterInfo (2)", "Func": "requiresFrameIndexScavenging", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3388, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mips_eh_uses", "(", "unsigned", "int", "regno", ")", "{", "if", "(", "reload_completed", "&&", "!", "TARGET_ABSOLUTE_JUMPS", ")", "{", "if", "(", "mips_cfun_has_cprestore_slot_p", "(", ")", ")", "{", "if", "(", "regno", "==", "CPRESTORE_SLOT_REGNUM", ")", "return", "true", ";", "}", "else", "{", "if", "(", "cfun", "->", "machine", "->", "global_pointer", "==", "regno", ")", "return", "true", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["Implement", "EH_USES", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_eh_uses", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3389, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "VEInstrInfo", "::", "isLoadFromStackSlot", "(", "const", "MachineInstr", "&", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "VE", "::", "LDSri", "||", "MI", ".", "getOpcode", "(", ")", "==", "VE", "::", "LDLri", "||", "MI", ".", "getOpcode", "(", ")", "==", "VE", "::", "LDUri", ")", "{", "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": ["VE", "VE", "VE::LDSri", "VE::LDLri", "VE::LDUri", "1", "2", "2", "0", "1", "0", "0"], "File": "VEInstrInfo15", "Func": "isLoadFromStackSlot", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3390, "Length": 118, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_can_inline_p", "(", "tree", "caller", ",", "tree", "callee", ")", "{", "bool", "ret", "=", "false", ";", "tree", "caller_tree", "=", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "caller", ")", ";", "tree", "callee_tree", "=", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "callee", ")", ";", "if", "(", "!", "callee_tree", ")", "ret", "=", "true", ";", "else", "if", "(", "!", "caller_tree", ")", "ret", "=", "false", ";", "else", "{", "struct", "cl_target_option", "*", "caller_opts", "=", "TREE_TARGET_OPTION", "(", "caller_tree", ")", ";", "struct", "cl_target_option", "*", "callee_opts", "=", "TREE_TARGET_OPTION", "(", "callee_tree", ")", ";", "if", "(", "(", "caller_opts", "->", "x_rs6000_isa_flags", "&", "callee_opts", "->", "x_rs6000_isa_flags", ")", "==", "callee_opts", "->", "x_rs6000_isa_flags", ")", "ret", "=", "true", ";", "}", "if", "(", "TARGET_DEBUG_TARGET", ")", "fprintf", "(", "stderr", ",", "\"rs6000_can_inline_p:, caller %s, callee %s, %s inline\\n\"", ",", "get_decl_name", "(", "caller", ")", ",", "get_decl_name", "(", "callee", ")", ",", "(", "ret", "?", "\"can\"", ":", "\"cannot\"", ")", ")", ";", "return", "ret", ";", "}", ""], "natrual_language": ["Hook", "to", "determine", "if", "one", "function", "can", "safely", "inline", "another", "."], "TS_V_token": ["rs6000", "\"rs6000_can_inline_p:, caller %s, callee %s, %s inline\\n\"", "\"can\"", "\"cannot\""], "File": "rs60007", "Func": "rs6000_can_inline_p", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3391, "Length": 127, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86InstrInfo", "::", "breakPartialRegDependency", "(", "MachineInstr", "&", "MI", ",", "unsigned", "OpNum", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "unsigned", "Reg", "=", "MI", ".", "getOperand", "(", "OpNum", ")", ".", "getReg", "(", ")", ";", "if", "(", "MI", ".", "killsRegister", "(", "Reg", ",", "TRI", ")", ")", "return", ";", "if", "(", "X86", "::", "VR128RegClass", ".", "contains", "(", "Reg", ")", ")", "{", "unsigned", "Opc", "=", "Subtarget", ".", "hasAVX", "(", ")", "?", "X86", "::", "VXORPSrr", ":", "X86", "::", "XORPSrr", ";", "BuildMI", "(", "*", "MI", ".", "getParent", "(", ")", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "get", "(", "Opc", ")", ",", "Reg", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Undef", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Undef", ")", ";", "MI", ".", "addRegisterKilled", "(", "Reg", ",", "TRI", ",", "true", ")", ";", "}", "else", "if", "(", "X86", "::", "VR256RegClass", ".", "contains", "(", "Reg", ")", ")", "{", "unsigned", "XReg", "=", "TRI", "->", "getSubReg", "(", "Reg", ",", "X86", "::", "sub_xmm", ")", ";", "BuildMI", "(", "*", "MI", ".", "getParent", "(", ")", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "get", "(", "X86", "::", "VXORPSrr", ")", ",", "XReg", ")", ".", "addReg", "(", "XReg", ",", "RegState", "::", "Undef", ")", ".", "addReg", "(", "XReg", ",", "RegState", "::", "Undef", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "ImplicitDefine", ")", ";", "MI", ".", "addRegisterKilled", "(", "Reg", ",", "TRI", ",", "true", ")", ";", "}", "else", "if", "(", "X86", "::", "GR64RegClass", ".", "contains", "(", "Reg", ")", ")", "{", "unsigned", "XReg", "=", "TRI", "->", "getSubReg", "(", "Reg", ",", "X86", "::", "sub_32bit", ")", ";", "BuildMI", "(", "*", "MI", ".", "getParent", "(", ")", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "get", "(", "X86", "::", "XOR32rr", ")", ",", "XReg", ")", ".", "addReg", "(", "XReg", ",", "RegState", "::", "Undef", ")", ".", "addReg", "(", "XReg", ",", "RegState", "::", "Undef", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "ImplicitDefine", ")", ";", "MI", ".", "addRegisterKilled", "(", "Reg", ",", "TRI", ",", "true", ")", ";", "}", "else", "if", "(", "X86", "::", "GR32RegClass", ".", "contains", "(", "Reg", ")", ")", "{", "BuildMI", "(", "*", "MI", ".", "getParent", "(", ")", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "get", "(", "X86", "::", "XOR32rr", ")", ",", "Reg", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Undef", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Undef", ")", ";", "MI", ".", "addRegisterKilled", "(", "Reg", ",", "TRI", ",", "true", ")", ";", "}", "}", ""], "natrual_language": ["Insert", "a", "dependency-breaking", "instruction", "before", "MI", "to", "eliminate", "an", "unwanted", "dependency", "on", "OpNum", "."], "TS_V_token": ["X86", "X86", "X86::VR128RegClass", "X86::VXORPSrr", "X86::XORPSrr", "X86::VR256RegClass", "X86::sub_xmm", "X86::VXORPSrr", "X86::GR64RegClass", "X86::sub_32bit", "X86::XOR32rr", "X86::GR32RegClass", "X86::XOR32rr"], "File": "X86InstrInfo", "Func": "breakPartialRegDependency", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3392, "Length": 387, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "emit_predicate_relation_info", "(", ")", "{", "int", "i", ";", "for", "(", "i", "=", "n_basic_blocks", "-", "1", ";", "i", ">=", "0", ";", "--", "i", ")", "{", "basic_block", "bb", "=", "BASIC_BLOCK", "(", "i", ")", ";", "int", "r", ";", "rtx", "head", "=", "bb", "->", "head", ";", "if", "(", "GET_CODE", "(", "head", ")", "!=", "CODE_LABEL", ")", "continue", ";", "if", "(", "GET_CODE", "(", "NEXT_INSN", "(", "head", ")", ")", "==", "NOTE", "&&", "NOTE_LINE_NUMBER", "(", "NEXT_INSN", "(", "head", ")", ")", "==", "NOTE_INSN_BASIC_BLOCK", ")", "head", "=", "NEXT_INSN", "(", "head", ")", ";", "for", "(", "r", "=", "PR_REG", "(", "0", ")", ";", "r", "<", "PR_REG", "(", "64", ")", ";", "r", "+=", "2", ")", "if", "(", "REGNO_REG_SET_P", "(", "bb", "->", "global_live_at_start", ",", "r", ")", ")", "{", "rtx", "p", "=", "gen_rtx_REG", "(", "BImode", ",", "r", ")", ";", "rtx", "n", "=", "emit_insn_after", "(", "gen_pred_rel_mutex", "(", "p", ")", ",", "head", ")", ";", "if", "(", "head", "==", "bb", "->", "end", ")", "bb", "->", "end", "=", "n", ";", "head", "=", "n", ";", "}", "}", "for", "(", "i", "=", "n_basic_blocks", "-", "1", ";", "i", ">=", "0", ";", "--", "i", ")", "{", "basic_block", "bb", "=", "BASIC_BLOCK", "(", "i", ")", ";", "rtx", "insn", "=", "bb", "->", "head", ";", "while", "(", "1", ")", "{", "if", "(", "GET_CODE", "(", "insn", ")", "==", "CALL_INSN", "&&", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "==", "COND_EXEC", "&&", "find_reg_note", "(", "insn", ",", "REG_NORETURN", ",", "NULL_RTX", ")", ")", "{", "rtx", "b", "=", "emit_insn_before", "(", "gen_safe_across_calls_all", "(", ")", ",", "insn", ")", ";", "rtx", "a", "=", "emit_insn_after", "(", "gen_safe_across_calls_normal", "(", ")", ",", "insn", ")", ";", "if", "(", "bb", "->", "head", "==", "insn", ")", "bb", "->", "head", "=", "b", ";", "if", "(", "bb", "->", "end", "==", "insn", ")", "bb", "->", "end", "=", "a", ";", "}", "if", "(", "insn", "==", "bb", "->", "end", ")", "break", ";", "insn", "=", "NEXT_INSN", "(", "insn", ")", ";", "}", "}", "}", ""], "natrual_language": ["Emit", "pseudo-ops", "for", "the", "assembler", "to", "describe", "predicate", "relations", ".", "At", "present", "this", "assumes", "that", "we", "only", "consider", "predicate", "pairs", "to", "be", "mutex", ",", "and", "that", "the", "assembler", "can", "deduce", "proper", "values", "from", "straight-line", "code", "."], "TS_V_token": ["ia64", "1", "0", "0", "64", "2", "1", "0", "1"], "File": "ia642", "Func": "emit_predicate_relation_info", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3393, "Length": 296, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "addPostRegAlloc", "(", ")", "override", "{", "if", "(", "getMipsSubtarget", "(", ")", ".", "isCheri", "(", ")", ")", "addPass", "(", "createCheriInvalidatePass", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "after", "register", "allocation", "pass", "pipeline", "but", "before", "prolog-epilog", "insertion", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsTargetMachine55", "Func": "addPostRegAlloc", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3394, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "fma_node", "::", "rename", "(", "fma_forest", "*", "forest", ")", "{", "int", "cur_parity", ",", "target_parity", ";", "if", "(", "!", "this", "->", "m_head", ")", "return", ";", "target_parity", "=", "forest", "->", "get_target_parity", "(", ")", ";", "if", "(", "this", "->", "m_parent", ")", "target_parity", "=", "this", "->", "m_parent", "->", "get_parity", "(", ")", ";", "cur_parity", "=", "this", "->", "get_parity", "(", ")", ";", "if", "(", "cur_parity", "!=", "target_parity", ")", "{", "rtx_insn", "*", "insn", "=", "this", "->", "m_insn", ";", "HARD_REG_SET", "unavailable", ";", "enum", "machine_mode", "mode", ";", "int", "reg", ";", "if", "(", "dump_file", ")", "{", "unsigned", "cur_dest_reg", "=", "this", "->", "m_head", "->", "regno", ";", "fprintf", "(", "dump_file", ",", "\"FMA or FMUL at insn %d but destination \"", "\"register (%s) has different parity from expected to \"", "\"maximize FPU pipeline utilization\\n\"", ",", "INSN_UID", "(", "insn", ")", ",", "reg_names", "[", "cur_dest_reg", "]", ")", ";", "}", "CLEAR_HARD_REG_SET", "(", "unavailable", ")", ";", "if", "(", "frame_pointer_needed", ")", "{", "add_to_hard_reg_set", "(", "&", "unavailable", ",", "Pmode", ",", "FRAME_POINTER_REGNUM", ")", ";", "add_to_hard_reg_set", "(", "&", "unavailable", ",", "Pmode", ",", "HARD_FRAME_POINTER_REGNUM", ")", ";", "}", "mode", "=", "GET_MODE", "(", "SET_DEST", "(", "PATTERN", "(", "insn", ")", ")", ")", ";", "for", "(", "reg", "=", "cur_parity", ";", "reg", "<", "FIRST_PSEUDO_REGISTER", ";", "reg", "+=", "2", ")", "add_to_hard_reg_set", "(", "&", "unavailable", ",", "mode", ",", "reg", ")", ";", "if", "(", "!", "rename_single_chain", "(", "this", "->", "m_head", ",", "&", "unavailable", ")", ")", "{", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"Destination register of insn %d could not be \"", "\"renamed. Dependent FMA insns will use this parity from \"", "\"there on.\\n\"", ",", "INSN_UID", "(", "insn", ")", ")", ";", "}", "else", "cur_parity", "=", "target_parity", ";", "}", "forest", "->", "get_globals", "(", ")", "->", "update_balance", "(", "cur_parity", ")", ";", "}", ""], "natrual_language": ["Rename", "the", "destination", "register", "of", "a", "single", "FMUL", "or", "FMADD/FMSUB", "instruction", "represented", "by", "FMA_NODE", "to", "a", "register", "that", "respect", "the", "target", "parity", "for", "FOREST", "or", "with", "same", "parity", "of", "the", "instruction", "represented", "by", "its", "parent", "node", "if", "it", "has", "one", "."], "TS_V_token": ["aarch64", "\"FMA or FMUL at insn %d but destination \"", "\"register (%s) has different parity from expected to \"", "\"maximize FPU pipeline utilization\\n\"", "2", "\"Destination register of insn %d could not be \"", "\"renamed. Dependent FMA insns will use this parity from \"", "\"there on.\\n\""], "File": "cortex-a57-fma-steering2", "Func": "rename", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3395, "Length": 234, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "SystemZTargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "DebugLoc", "dl", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "getTargetMachine", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "RetCC_SystemZ", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "Chain", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "dl", ",", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ",", "InFlag", ")", ".", "getValue", "(", "1", ")", ";", "SDValue", "RetValue", "=", "Chain", ".", "getValue", "(", "0", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "2", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "SExt", ")", "RetValue", "=", "DAG", ".", "getNode", "(", "ISD", "::", "AssertSext", ",", "dl", ",", "VA", ".", "getLocVT", "(", ")", ",", "RetValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "else", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "ZExt", ")", "RetValue", "=", "DAG", ".", "getNode", "(", "ISD", "::", "AssertZext", ",", "dl", ",", "VA", ".", "getLocVT", "(", ")", ",", "RetValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "!=", "CCValAssign", "::", "Full", ")", "RetValue", "=", "DAG", ".", "getNode", "(", "ISD", "::", "TRUNCATE", ",", "dl", ",", "VA", ".", "getValVT", "(", ")", ",", "RetValue", ")", ";", "InVals", ".", "push_back", "(", "RetValue", ")", ";", "}", "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": ["SystemZ", "SystemZ", "ISD::InputArg", "16", "SystemZ", "0", "1", "0", "2", "ISD::AssertSext", "ISD::AssertZext", "ISD::TRUNCATE"], "File": "SystemZISelLowering27", "Func": "LowerCallResult", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3396, "Length": 294, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", "\"X86 pseudo instruction expansion pass\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["X86", "\"X86 pseudo instruction expansion pass\""], "File": "X86ExpandPseudo", "Func": "getPassName", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3397, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getStackAlignment", "(", ")", "const", "{", "return", "StackAlign", ";", "}", ""], "natrual_language": ["Returns", "the", "minimum", "alignment", "known", "to", "hold", "of", "the", "stack", "frame", "on", "entry", "to", "the", "function", "and", "which", "must", "be", "maintained", "by", "every", "function", "for", "this", "subtarget", "."], "TS_V_token": ["X86"], "File": "X86RegisterInfo12", "Func": "getStackAlignment", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3398, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "AArch64InstrInfo", "::", "getInstSizeInBytes", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "const", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "const", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "MCAsmInfo", "*", "MAI", "=", "MF", "->", "getTarget", "(", ")", ".", "getMCAsmInfo", "(", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "AArch64", "::", "INLINEASM", ")", "return", "getInlineAsmLength", "(", "MI", ".", "getOperand", "(", "0", ")", ".", "getSymbolName", "(", ")", ",", "*", "MAI", ")", ";", "unsigned", "NumBytes", "=", "0", ";", "const", "MCInstrDesc", "&", "Desc", "=", "MI", ".", "getDesc", "(", ")", ";", "switch", "(", "Desc", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "NumBytes", "=", "4", ";", "break", ";", "case", "TargetOpcode", "::", "DBG_VALUE", ":", "case", "TargetOpcode", "::", "EH_LABEL", ":", "case", "TargetOpcode", "::", "IMPLICIT_DEF", ":", "case", "TargetOpcode", "::", "KILL", ":", "NumBytes", "=", "0", ";", "break", ";", "case", "TargetOpcode", "::", "STACKMAP", ":", "NumBytes", "=", "StackMapOpers", "(", "&", "MI", ")", ".", "getNumPatchBytes", "(", ")", ";", "assert", "(", "NumBytes", "%", "4", "==", "0", "&&", "\"Invalid number of NOP bytes requested!\"", ")", ";", "break", ";", "case", "TargetOpcode", "::", "PATCHPOINT", ":", "NumBytes", "=", "PatchPointOpers", "(", "&", "MI", ")", ".", "getNumPatchBytes", "(", ")", ";", "assert", "(", "NumBytes", "%", "4", "==", "0", "&&", "\"Invalid number of NOP bytes requested!\"", ")", ";", "break", ";", "case", "AArch64", "::", "TLSDESC_CALLSEQ", ":", "NumBytes", "=", "16", ";", "break", ";", "}", "return", "NumBytes", ";", "}", ""], "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": ["AArch64", "AArch64", "AArch64::INLINEASM", "0", "0", "4", "0", "4", "0", "\"Invalid number of NOP bytes requested!\"", "4", "0", "\"Invalid number of NOP bytes requested!\"", "AArch64::TLSDESC_CALLSEQ", "16"], "File": "AArch64InstrInfo (2)", "Func": "getInstSizeInBytes", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3399, "Length": 215, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCInstrInfo", "::", "insertNoop", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ")", "const", "{", "unsigned", "Directive", "=", "Subtarget", ".", "getCPUDirective", "(", ")", ";", "unsigned", "Opcode", ";", "switch", "(", "Directive", ")", "{", "default", ":", "Opcode", "=", "PPC", "::", "NOP", ";", "break", ";", "case", "PPC", "::", "DIR_PWR6", ":", "Opcode", "=", "PPC", "::", "NOP_GT_PWR6", ";", "break", ";", "case", "PPC", "::", "DIR_PWR7", ":", "Opcode", "=", "PPC", "::", "NOP_GT_PWR7", ";", "break", ";", "case", "PPC", "::", "DIR_PWR8", ":", "Opcode", "=", "PPC", "::", "NOP_GT_PWR7", ";", "break", ";", "case", "PPC", "::", "DIR_PWR9", ":", "Opcode", "=", "PPC", "::", "NOP_GT_PWR7", ";", "break", ";", "}", "DebugLoc", "DL", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "Opcode", ")", ")", ";", "}", ""], "natrual_language": ["Insert", "a", "noop", "into", "the", "instruction", "stream", "at", "the", "specified", "point", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::NOP", "PPC::DIR_PWR6", "PPC::NOP_GT_PWR6", "PPC::DIR_PWR7", "PPC::NOP_GT_PWR7", "PPC::DIR_PWR8", "PPC::NOP_GT_PWR7", "PPC::DIR_PWR9", "PPC::NOP_GT_PWR7"], "File": "PPCInstrInfo", "Func": "insertNoop", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3400, "Length": 114, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "SystemZTargetLowering", "::", "joinRegisterPartsIntoValue", "(", "SelectionDAG", "&", "DAG", ",", "const", "SDLoc", "&", "DL", ",", "const", "SDValue", "*", "Parts", ",", "unsigned", "NumParts", ",", "MVT", "PartVT", ",", "EVT", "ValueVT", ",", "Optional", "<", "CallingConv", "::", "ID", ">", "CC", ")", "const", "{", "assert", "(", "(", "ValueVT", "!=", "MVT", "::", "i128", "||", "(", "(", "NumParts", "==", "1", "&&", "PartVT", "==", "MVT", "::", "Untyped", ")", "||", "(", "NumParts", "==", "2", "&&", "PartVT", "==", "MVT", "::", "i64", ")", ")", ")", "&&", "\"Unknown handling of i128 value.\"", ")", ";", "if", "(", "ValueVT", "==", "MVT", "::", "i128", "&&", "NumParts", "==", "1", ")", "return", "lowerGR128ToI128", "(", "DAG", ",", "Parts", "[", "0", "]", ")", ";", "return", "SDValue", "(", ")", ";", "}", ""], "natrual_language": ["Target-specific", "combining", "of", "register", "parts", "into", "its", "original", "value", "."], "TS_V_token": ["SystemZ", "SystemZ", "MVT::i128", "1", "MVT::Untyped", "2", "MVT::i64", "\"Unknown handling of i128 value.\"", "MVT::i128", "1", "0"], "File": "SystemZISelLowering (2)2", "Func": "joinRegisterPartsIntoValue", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3401, "Length": 106, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "SystemZTargetLowering", "::", "prepareVolatileOrAtomicLoad", "(", "SDValue", "Chain", ",", "const", "SDLoc", "&", "DL", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "return", "DAG", ".", "getNode", "(", "SystemZISD", "::", "SERIALIZE", ",", "DL", ",", "MVT", "::", "Other", ",", "Chain", ")", ";", "}", ""], "natrual_language": ["This", "callback", "is", "used", "to", "prepare", "for", "a", "volatile", "or", "atomic", "load", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZISD::SERIALIZE", "MVT::Other"], "File": "SystemZISelLowering104", "Func": "prepareVolatileOrAtomicLoad", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3402, "Length": 38, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "writeNopData", "(", "uint64_t", "Count", ",", "MCObjectWriter", "*", "OW", ")", "const", "override", "{", "if", "(", "Count", "==", "0", ")", "{", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Write", "an", "(", "optimal", ")", "nop", "sequence", "of", "Count", "bytes", "to", "the", "given", "output", "."], "TS_V_token": ["LEG", "0"], "File": "LEGAsmBackend", "Func": "writeNopData", "Target": "LEG", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3403, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZInstrInfo", "::", "analyzeCompare", "(", "const", "MachineInstr", "&", "MI", ",", "unsigned", "&", "SrcReg", ",", "unsigned", "&", "SrcReg2", ",", "int", "&", "Mask", ",", "int", "&", "Value", ")", "const", "{", "assert", "(", "MI", ".", "isCompare", "(", ")", "&&", "\"Caller should have checked for a comparison\"", ")", ";", "if", "(", "MI", ".", "getNumExplicitOperands", "(", ")", "==", "2", "&&", "MI", ".", "getOperand", "(", "0", ")", ".", "isReg", "(", ")", "&&", "MI", ".", "getOperand", "(", "1", ")", ".", "isImm", "(", ")", ")", "{", "SrcReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "SrcReg2", "=", "0", ";", "Value", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ";", "Mask", "=", "~", "0", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["analyzeCompare", "-", "For", "a", "comparison", "instruction", ",", "return", "the", "source", "registers", "in", "SrcReg", "and", "SrcReg2", "if", "having", "two", "register", "operands", ",", "and", "the", "value", "it", "compares", "against", "in", "CmpValue", "."], "TS_V_token": ["SystemZ", "SystemZ", "\"Caller should have checked for a comparison\"", "2", "0", "1", "0", "0", "1", "0"], "File": "SystemZInstrInfo (2)2", "Func": "analyzeCompare", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3404, "Length": 115, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMLoadStoreOpt", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "Fn", ")", "{", "MF", "=", "&", "Fn", ";", "STI", "=", "&", "static_cast", "<", "const", "ARMSubtarget", "&", ">", "(", "Fn", ".", "getSubtarget", "(", ")", ")", ";", "TL", "=", "STI", "->", "getTargetLowering", "(", ")", ";", "AFI", "=", "Fn", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "TII", "=", "STI", "->", "getInstrInfo", "(", ")", ";", "TRI", "=", "STI", "->", "getRegisterInfo", "(", ")", ";", "RegClassInfoValid", "=", "false", ";", "isThumb2", "=", "AFI", "->", "isThumb2Function", "(", ")", ";", "isThumb1", "=", "AFI", "->", "isThumbFunction", "(", ")", "&&", "!", "isThumb2", ";", "bool", "Modified", "=", "false", ";", "for", "(", "MachineFunction", "::", "iterator", "MFI", "=", "Fn", ".", "begin", "(", ")", ",", "E", "=", "Fn", ".", "end", "(", ")", ";", "MFI", "!=", "E", ";", "++", "MFI", ")", "{", "MachineBasicBlock", "&", "MBB", "=", "*", "MFI", ";", "Modified", "|=", "LoadStoreMultipleOpti", "(", "MBB", ")", ";", "if", "(", "STI", "->", "hasV5TOps", "(", ")", ")", "Modified", "|=", "MergeReturnIntoLDM", "(", "MBB", ")", ";", "if", "(", "isThumb1", ")", "Modified", "|=", "CombineMovBx", "(", "MBB", ")", ";", "}", "Allocator", ".", "DestroyAll", "(", ")", ";", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM"], "File": "ARMLoadStoreOptimizer (2)3", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3405, "Length": 175, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "arm_change_mode_p", "(", "tree", "func", ")", "{", "if", "(", "TREE_CODE", "(", "func", ")", "!=", "FUNCTION_DECL", ")", "return", "false", ";", "tree", "callee_tree", "=", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "func", ")", ";", "if", "(", "!", "callee_tree", ")", "callee_tree", "=", "target_option_default_node", ";", "struct", "cl_target_option", "*", "callee_opts", "=", "TREE_TARGET_OPTION", "(", "callee_tree", ")", ";", "int", "flags", "=", "callee_opts", "->", "x_target_flags", ";", "return", "(", "TARGET_THUMB_P", "(", "flags", ")", "!=", "TARGET_THUMB", ")", ";", "}", ""], "natrual_language": ["Check", "that", "FUNC", "is", "called", "with", "a", "different", "mode", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "arm_change_mode_p", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3406, "Length": 64, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "pru_file_start", "(", "void", ")", "{", "default_file_start", "(", ")", ";", "fprintf", "(", "asm_out_file", ",", "\"\\t.set no_warn_regname_label\\n\"", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_ASM_FILE_START", "."], "TS_V_token": ["pru", "\"\\t.set no_warn_regname_label\\n\""], "File": "pru", "Func": "pru_file_start", "Target": "pru", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3407, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "shouldFormOverflowOp", "(", "unsigned", "Opcode", ",", "EVT", "VT", ",", "bool", "MathUsed", ")", "const", "override", "{", "return", "TargetLowering", "::", "shouldFormOverflowOp", "(", "Opcode", ",", "VT", ",", "true", ")", ";", "}", ""], "natrual_language": ["Overflow", "nodes", "should", "get", "combined/lowered", "to", "optimal", "instructions", "(", "they", "should", "allow", "eliminating", "explicit", "compares", "by", "getting", "flags", "from", "math", "ops", ")", "."], "TS_V_token": ["AArch64"], "File": "AArch64ISelLowering (2)1", "Func": "shouldFormOverflowOp", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3408, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "LVLGen", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "F", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"********** Begin LVLGen **********\\n\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"********** Function: \"", "<<", "F", ".", "getName", "(", ")", "<<", "'\\n'", ")", ";", "LLVM_DEBUG", "(", "F", ".", "dump", "(", ")", ")", ";", "bool", "Changed", "=", "false", ";", "const", "VESubtarget", "&", "Subtarget", "=", "F", ".", "getSubtarget", "<", "VESubtarget", ">", "(", ")", ";", "TII", "=", "Subtarget", ".", "getInstrInfo", "(", ")", ";", "TRI", "=", "Subtarget", ".", "getRegisterInfo", "(", ")", ";", "for", "(", "MachineFunction", "::", "iterator", "FI", "=", "F", ".", "begin", "(", ")", ",", "FE", "=", "F", ".", "end", "(", ")", ";", "FI", "!=", "FE", ";", "++", "FI", ")", "Changed", "|=", "runOnMachineBasicBlock", "(", "*", "FI", ")", ";", "if", "(", "Changed", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"\\n\"", ")", ";", "LLVM_DEBUG", "(", "F", ".", "dump", "(", ")", ")", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"********** End LVLGen **********\\n\"", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["VE", "\"********** Begin LVLGen **********\\n\"", "\"********** Function: \"", "VE", "VE", "\"\\n\"", "\"********** End LVLGen **********\\n\""], "File": "LVLGen", "Func": "runOnMachineFunction", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3409, "Length": 153, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMPassConfig", "::", "addPreISel", "(", ")", "{", "if", "(", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "EnableGlobalMerge", "==", "cl", "::", "BOU_UNSET", ")", "||", "EnableGlobalMerge", "==", "cl", "::", "BOU_TRUE", ")", "{", "bool", "OnlyOptimizeForSize", "=", "(", "TM", "->", "getOptLevel", "(", ")", "<", "CodeGenOpt", "::", "Aggressive", ")", "&&", "(", "EnableGlobalMerge", "==", "cl", "::", "BOU_UNSET", ")", ";", "addPass", "(", "createGlobalMergePass", "(", "TM", ",", "127", ",", "OnlyOptimizeForSize", ")", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["{", "{", "@", "For", "GlobalISel"], "TS_V_token": ["ARM", "ARM", "127"], "File": "ARMTargetMachine4", "Func": "addPreISel", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3410, "Length": 74, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86TargetLowering", "::", "getRegisterByName", "(", "const", "char", "*", "RegName", ",", "EVT", "VT", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "const", "TargetFrameLowering", "&", "TFI", "=", "*", "Subtarget", "->", "getFrameLowering", "(", ")", ";", "const", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "unsigned", "Reg", "=", "StringSwitch", "<", "unsigned", ">", "(", "RegName", ")", ".", "Case", "(", "\"esp\"", ",", "X86", "::", "ESP", ")", ".", "Case", "(", "\"rsp\"", ",", "X86", "::", "RSP", ")", ".", "Case", "(", "\"ebp\"", ",", "X86", "::", "EBP", ")", ".", "Case", "(", "\"rbp\"", ",", "X86", "::", "RBP", ")", ".", "Default", "(", "0", ")", ";", "if", "(", "Reg", "==", "X86", "::", "EBP", "||", "Reg", "==", "X86", "::", "RBP", ")", "{", "if", "(", "!", "TFI", ".", "hasFP", "(", "MF", ")", ")", "report_fatal_error", "(", "\"register \"", "+", "StringRef", "(", "RegName", ")", "+", "\" is allocatable: function has no frame pointer\"", ")", ";", "else", "{", "const", "X86RegisterInfo", "*", "RegInfo", "=", "Subtarget", "->", "getRegisterInfo", "(", ")", ";", "unsigned", "FrameReg", "=", "RegInfo", "->", "getPtrSizedFrameRegister", "(", "DAG", ".", "getMachineFunction", "(", ")", ")", ";", "assert", "(", "(", "FrameReg", "==", "X86", "::", "EBP", "||", "FrameReg", "==", "X86", "::", "RBP", ")", "&&", "\"Invalid Frame Register!\"", ")", ";", "}", "}", "if", "(", "Reg", ")", "return", "Reg", ";", "report_fatal_error", "(", "\"Invalid register name global variable\"", ")", ";", "}", ""], "natrual_language": ["Return", "the", "register", "ID", "of", "the", "name", "passed", "in", "."], "TS_V_token": ["X86", "X86", "\"esp\"", "X86::ESP", "\"rsp\"", "X86::RSP", "\"ebp\"", "X86::EBP", "\"rbp\"", "X86::RBP", "0", "X86::EBP", "X86::RBP", "\"register \"", "\" is allocatable: function has no frame pointer\"", "X86", "X86::EBP", "X86::RBP", "\"Invalid Frame Register!\"", "\"Invalid register name global variable\""], "File": "X86ISelLowering (2)3", "Func": "getRegisterByName", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3411, "Length": 192, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_trampoline_init", "(", "rtx", "m_tramp", ",", "tree", "fndecl", ",", "rtx", "chain_value", ")", "{", "rtx", "fnaddr", ",", "mem", ",", "a_tramp", ";", "emit_block_move", "(", "m_tramp", ",", "assemble_trampoline_template", "(", ")", ",", "GEN_INT", "(", "TRAMPOLINE_SIZE", ")", ",", "BLOCK_OP_NORMAL", ")", ";", "mem", "=", "adjust_address", "(", "m_tramp", ",", "SImode", ",", "TARGET_32BIT", "?", "8", ":", "12", ")", ";", "emit_move_insn", "(", "mem", ",", "chain_value", ")", ";", "mem", "=", "adjust_address", "(", "m_tramp", ",", "SImode", ",", "TARGET_32BIT", "?", "12", ":", "16", ")", ";", "fnaddr", "=", "XEXP", "(", "DECL_RTL", "(", "fndecl", ")", ",", "0", ")", ";", "emit_move_insn", "(", "mem", ",", "fnaddr", ")", ";", "a_tramp", "=", "XEXP", "(", "m_tramp", ",", "0", ")", ";", "emit_library_call", "(", "gen_rtx_SYMBOL_REF", "(", "Pmode", ",", "\"__clear_cache\"", ")", ",", "LCT_NORMAL", ",", "VOIDmode", ",", "a_tramp", ",", "Pmode", ",", "plus_constant", "(", "Pmode", ",", "a_tramp", ",", "TRAMPOLINE_SIZE", ")", ",", "Pmode", ")", ";", "}", ""], "natrual_language": ["Emit", "RTL", "insns", "to", "initialize", "the", "variable", "parts", "of", "a", "trampoline", "."], "TS_V_token": ["arm", "8", "12", "12", "16", "0", "0", "\"__clear_cache\""], "File": "arm7", "Func": "arm_trampoline_init", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3412, "Length": 132, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isShuffleMaskLegal", "(", "ArrayRef", "<", "int", ">", "M", ",", "EVT", "VT", ")", "const", "{", "if", "(", "!", "VT", ".", "isSimple", "(", ")", ")", "return", "false", ";", "if", "(", "VT", ".", "getSimpleVT", "(", ")", ".", "getScalarType", "(", ")", "==", "MVT", "::", "i1", ")", "return", "false", ";", "if", "(", "VT", ".", "getSimpleVT", "(", ")", ".", "getSizeInBits", "(", ")", "==", "64", ")", "return", "false", ";", "return", "isTypeLegal", "(", "VT", ".", "getSimpleVT", "(", ")", ")", ";", "}", ""], "natrual_language": ["Targets", "can", "use", "this", "to", "indicate", "that", "they", "only", "support", "some", "VECTOR_SHUFFLE", "operations", ",", "those", "with", "specific", "masks", "."], "TS_V_token": ["X86", "X86", "MVT::i1", "64"], "File": "X86ISelLowering (2)6", "Func": "isShuffleMaskLegal", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3413, "Length": 75, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "VEAsmParser", "::", "ParseDirective", "(", "AsmToken", "DirectiveID", ")", "{", "std", "::", "string", "IDVal", "=", "DirectiveID", ".", "getIdentifier", "(", ")", ".", "lower", "(", ")", ";", "if", "(", "IDVal", "==", "\".word\"", ")", "return", "parseLiteralValues", "(", "4", ",", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "if", "(", "IDVal", "==", "\".long\"", ")", "return", "parseLiteralValues", "(", "8", ",", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "if", "(", "IDVal", "==", "\".llong\"", ")", "return", "parseLiteralValues", "(", "8", ",", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["ParseDirective", "-", "Parse", "a", "target", "specific", "assembler", "directive", "This", "method", "is", "deprecated", ",", "use", "'parseDirective", "'", "instead", "."], "TS_V_token": ["VE", "VE", "\".word\"", "4", "\".long\"", "8", "\".llong\"", "8"], "File": "VEAsmParser (2)", "Func": "ParseDirective", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3414, "Length": 82, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "rs6000_overloaded_builtin_p", "(", "enum", "rs6000_builtins", "fncode", ")", "{", "return", "(", "rs6000_builtin_info", "[", "(", "int", ")", "fncode", "]", ".", "attr", "&", "RS6000_BTC_OVERLOADED", ")", "!=", "0", ";", "}", ""], "natrual_language": ["Return", "true", "if", "a", "builtin", "function", "is", "overloaded", "."], "TS_V_token": ["powerpcspe", "0"], "File": "powerpcspe", "Func": "rs6000_overloaded_builtin_p", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3415, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "enum", "insn_code", "aarch64_constant_pool_reload_icode", "(", "machine_mode", "mode", ")", "{", "switch", "(", "mode", ")", "{", "case", "E_SFmode", ":", "return", "CODE_FOR_aarch64_reload_movcpsfdi", ";", "case", "E_DFmode", ":", "return", "CODE_FOR_aarch64_reload_movcpdfdi", ";", "case", "E_TFmode", ":", "return", "CODE_FOR_aarch64_reload_movcptfdi", ";", "case", "E_V8QImode", ":", "return", "CODE_FOR_aarch64_reload_movcpv8qidi", ";", "case", "E_V16QImode", ":", "return", "CODE_FOR_aarch64_reload_movcpv16qidi", ";", "case", "E_V4HImode", ":", "return", "CODE_FOR_aarch64_reload_movcpv4hidi", ";", "case", "E_V8HImode", ":", "return", "CODE_FOR_aarch64_reload_movcpv8hidi", ";", "case", "E_V2SImode", ":", "return", "CODE_FOR_aarch64_reload_movcpv2sidi", ";", "case", "E_V4SImode", ":", "return", "CODE_FOR_aarch64_reload_movcpv4sidi", ";", "case", "E_V2DImode", ":", "return", "CODE_FOR_aarch64_reload_movcpv2didi", ";", "case", "E_V2DFmode", ":", "return", "CODE_FOR_aarch64_reload_movcpv2dfdi", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "gcc_unreachable", "(", ")", ";", "}", ""], "natrual_language": ["Return", "the", "reload", "icode", "required", "for", "a", "constant", "pool", "in", "mode", "."], "TS_V_token": ["aarch64"], "File": "aarch645", "Func": "aarch64_constant_pool_reload_icode", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3416, "Length": 92, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ARMSubtarget", "::", "ARMSubtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "ARMBaseTargetMachine", "&", "TM", ",", "bool", "IsLittle", ")", ":", "ARMGenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "UseMulOps", "(", "UseFusedMulOps", ")", ",", "CPUString", "(", "CPU", ")", ",", "IsLittle", "(", "IsLittle", ")", ",", "TargetTriple", "(", "TT", ")", ",", "Options", "(", "TM", ".", "Options", ")", ",", "TM", "(", "TM", ")", ",", "FrameLowering", "(", "initializeFrameLowering", "(", "CPU", ",", "FS", ")", ")", ",", "InstrInfo", "(", "isThumb1Only", "(", ")", "?", "(", "ARMBaseInstrInfo", "*", ")", "new", "Thumb1InstrInfo", "(", "*", "this", ")", ":", "!", "isThumb", "(", ")", "?", "(", "ARMBaseInstrInfo", "*", ")", "new", "ARMInstrInfo", "(", "*", "this", ")", ":", "(", "ARMBaseInstrInfo", "*", ")", "new", "Thumb2InstrInfo", "(", "*", "this", ")", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{", "CallLoweringInfo", ".", "reset", "(", "new", "ARMCallLowering", "(", "*", "getTargetLowering", "(", ")", ")", ")", ";", "Legalizer", ".", "reset", "(", "new", "ARMLegalizerInfo", "(", "*", "this", ")", ")", ";", "auto", "*", "RBI", "=", "new", "ARMRegisterBankInfo", "(", "*", "getRegisterInfo", "(", ")", ")", ";", "InstSelector", ".", "reset", "(", "createARMInstructionSelector", "(", "*", "static_cast", "<", "const", "ARMBaseTargetMachine", "*", ">", "(", "&", "TM", ")", ",", "*", "this", ",", "*", "RBI", ")", ")", ";", "RegBankInfo", ".", "reset", "(", "RBI", ")", ";", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM"], "File": "ARMSubtarget", "Func": "ARMSubtarget", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3417, "Length": 209, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", "\"AdvSIMD Scalar Operation Optimization\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["ARM64", "\"AdvSIMD Scalar Operation Optimization\""], "File": "ARM64AdvSIMDScalarPass1", "Func": "getPassName", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3418, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Cpu0MCCodeEmitter", "::", "EmitInstruction", "(", "uint64_t", "Val", ",", "unsigned", "Size", ",", "raw_ostream", "&", "OS", ")", "const", "{", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "Size", ";", "++", "i", ")", "{", "unsigned", "Shift", "=", "IsLittleEndian", "?", "i", "*", "8", ":", "(", "Size", "-", "1", "-", "i", ")", "*", "8", ";", "EmitByte", "(", "(", "Val", ">>", "Shift", ")", "&", "0xff", ",", "OS", ")", ";", "}", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["Cpu0", "Cpu0", "0", "8", "1", "8", "0xff"], "File": "Cpu0MCCodeEmitter2", "Func": "EmitInstruction", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3419, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "short", "find_insn_regmode_weight", "(", "rtx", "insn", ",", "machine_mode", "mode", ")", "{", "short", "reg_weight", "=", "0", ";", "rtx", "x", ";", "x", "=", "PATTERN", "(", "insn", ")", ";", "reg_weight", "+=", "find_set_regmode_weight", "(", "x", ",", "mode", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "PARALLEL", ")", "{", "int", "j", ";", "for", "(", "j", "=", "XVECLEN", "(", "x", ",", "0", ")", "-", "1", ";", "j", ">=", "0", ";", "j", "--", ")", "{", "x", "=", "XVECEXP", "(", "PATTERN", "(", "insn", ")", ",", "0", ",", "j", ")", ";", "reg_weight", "+=", "find_set_regmode_weight", "(", "x", ",", "mode", ")", ";", "}", "}", "for", "(", "x", "=", "REG_NOTES", "(", "insn", ")", ";", "x", ";", "x", "=", "XEXP", "(", "x", ",", "1", ")", ")", "{", "if", "(", "REG_NOTE_KIND", "(", "x", ")", "==", "REG_DEAD", "||", "REG_NOTE_KIND", "(", "x", ")", "==", "REG_UNUSED", ")", "{", "rtx", "note", "=", "XEXP", "(", "x", ",", "0", ")", ";", "if", "(", "REG_P", "(", "note", ")", "&&", "GET_MODE", "(", "note", ")", "==", "mode", ")", "reg_weight", "--", ";", "}", "}", "return", "reg_weight", ";", "}", ""], "natrual_language": ["Get", "regmode", "weight", "for", "insn", "."], "TS_V_token": ["sh", "0", "0", "1", "0", "0", "1", "0"], "File": "sh4", "Func": "find_insn_regmode_weight", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3420, "Length": 165, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "stackSlotSize", "(", ")", "{", "return", "4", ";", "}", ""], "natrual_language": ["Stack", "slot", "size", "(", "4", "bytes", ")"], "TS_V_token": ["UPT", "4"], "File": "UPTFrameLowering", "Func": "stackSlotSize", "Target": "UPT", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3421, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "SICTargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "const", "SDLoc", "&", "DL", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ",", "const", "SDNode", "*", "CallNode", ",", "const", "Type", "*", "RetTy", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "SICCC", "SICCCInfo", "(", "CallConv", ",", "ABI", ".", "IsO32", "(", ")", ",", "CCInfo", ")", ";", "SICCCInfo", ".", "analyzeCallResult", "(", "Ins", ",", "Subtarget", ".", "abiUsesSoftFloat", "(", ")", ",", "CallNode", ",", "RetTy", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "SDValue", "Val", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "RVLocs", "[", "i", "]", ".", "getLocReg", "(", ")", ",", "RVLocs", "[", "i", "]", ".", "getLocVT", "(", ")", ",", "InFlag", ")", ";", "Chain", "=", "Val", ".", "getValue", "(", "1", ")", ";", "InFlag", "=", "Val", ".", "getValue", "(", "2", ")", ";", "if", "(", "RVLocs", "[", "i", "]", ".", "getValVT", "(", ")", "!=", "RVLocs", "[", "i", "]", ".", "getLocVT", "(", ")", ")", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "BITCAST", ",", "DL", ",", "RVLocs", "[", "i", "]", ".", "getValVT", "(", ")", ",", "Val", ")", ";", "InVals", ".", "push_back", "(", "Val", ")", ";", "}", "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": ["SIC", "SIC", "ISD::InputArg", "16", "SIC", "SIC", "SIC", "0", "1", "2", "ISD::BITCAST"], "File": "SICISelLowering", "Func": "LowerCallResult", "Target": "SIC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3422, "Length": 244, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "ix86_split_stack_guard", "(", "void", ")", "{", "int", "offset", ";", "addr_space_t", "as", "=", "DEFAULT_TLS_SEG_REG", ";", "rtx", "r", ";", "gcc_assert", "(", "flag_split_stack", ")", ";", "offset", "=", "TARGET_THREAD_SPLIT_STACK_OFFSET", ";", "gcc_unreachable", "(", ")", ";", "r", "=", "GEN_INT", "(", "offset", ")", ";", "r", "=", "gen_const_mem", "(", "Pmode", ",", "r", ")", ";", "set_mem_addr_space", "(", "r", ",", "as", ")", ";", "return", "r", ";", "}", ""], "natrual_language": ["Return", "location", "of", "the", "stack", "guard", "value", "in", "the", "TLS", "block", "."], "TS_V_token": ["i386"], "File": "i386", "Func": "ix86_split_stack_guard", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3423, "Length": 57, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "ARMBaseRegisterInfo", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", "MF", ",", "CallingConv", "::", "ID", "CC", ")", "const", "{", "const", "ARMSubtarget", "&", "STI", "=", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "if", "(", "STI", ".", "isTargetNaCl", "(", ")", ")", "return", "CSR_NaCl_RegMask", ";", "if", "(", "CC", "==", "CallingConv", "::", "GHC", ")", "return", "CSR_NoRegs_RegMask", ";", "return", "STI", ".", "isTargetDarwin", "(", ")", "?", "CSR_iOS_RegMask", ":", "CSR_AAPCS_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM"], "File": "ARMBaseRegisterInfo22", "Func": "getCallPreservedMask", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3424, "Length": 67, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMAsmBackend", "::", "shouldForceRelocation", "(", "const", "MCAssembler", "&", "Asm", ",", "const", "MCFixup", "&", "Fixup", ",", "const", "MCValue", "&", "Target", ")", "{", "const", "MCSymbolRefExpr", "*", "A", "=", "Target", ".", "getSymA", "(", ")", ";", "const", "MCSymbol", "*", "Sym", "=", "A", "?", "&", "A", "->", "getSymbol", "(", ")", ":", "nullptr", ";", "const", "unsigned", "FixupKind", "=", "Fixup", ".", "getKind", "(", ")", ";", "if", "(", "FixupKind", "==", "FK_NONE", ")", "return", "true", ";", "if", "(", "FixupKind", "==", "ARM", "::", "fixup_arm_thumb_bl", ")", "{", "assert", "(", "Sym", "&&", "\"How did we resolve this?\"", ")", ";", "if", "(", "Sym", "->", "isExternal", "(", ")", ")", "return", "true", ";", "}", "if", "(", "Sym", "&&", "Sym", "->", "isELF", "(", ")", ")", "{", "unsigned", "Type", "=", "cast", "<", "MCSymbolELF", ">", "(", "Sym", ")", "->", "getType", "(", ")", ";", "if", "(", "(", "Type", "==", "ELF", "::", "STT_FUNC", "||", "Type", "==", "ELF", "::", "STT_GNU_IFUNC", ")", ")", "{", "if", "(", "Asm", ".", "isThumbFunc", "(", "Sym", ")", "&&", "(", "FixupKind", "==", "ARM", "::", "fixup_arm_uncondbranch", ")", ")", "return", "true", ";", "if", "(", "!", "Asm", ".", "isThumbFunc", "(", "Sym", ")", "&&", "(", "FixupKind", "==", "ARM", "::", "fixup_arm_thumb_br", "||", "FixupKind", "==", "ARM", "::", "fixup_arm_thumb_bl", "||", "FixupKind", "==", "ARM", "::", "fixup_t2_condbranch", "||", "FixupKind", "==", "ARM", "::", "fixup_t2_uncondbranch", ")", ")", "return", "true", ";", "}", "}", "if", "(", "A", "&&", "(", "FixupKind", "==", "ARM", "::", "fixup_arm_thumb_blx", "||", "FixupKind", "==", "ARM", "::", "fixup_arm_blx", "||", "FixupKind", "==", "ARM", "::", "fixup_arm_uncondbl", "||", "FixupKind", "==", "ARM", "::", "fixup_arm_condbl", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Hook", "to", "check", "if", "a", "relocation", "is", "needed", "for", "some", "target", "specific", "reason", "."], "TS_V_token": ["ARM", "ARM", "ARM::fixup_arm_thumb_bl", "\"How did we resolve this?\"", "ARM::fixup_arm_uncondbranch", "ARM::fixup_arm_thumb_br", "ARM::fixup_arm_thumb_bl", "ARM::fixup_t2_condbranch", "ARM::fixup_t2_uncondbranch", "ARM::fixup_arm_thumb_blx", "ARM::fixup_arm_blx", "ARM::fixup_arm_uncondbl", "ARM::fixup_arm_condbl"], "File": "ARMAsmBackend27", "Func": "shouldForceRelocation", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3425, "Length": 236, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MandarinPassConfig", "::", "addPreEmitPass", "(", ")", "{", "return", "true", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["Mandarin"], "File": "MandarinTargetMachine", "Func": "addPreEmitPass", "Target": "Mandarin", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3426, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86InstrInfo", "::", "findCommutedOpIndices", "(", "MachineInstr", "&", "MI", ",", "unsigned", "&", "SrcOpIdx1", ",", "unsigned", "&", "SrcOpIdx2", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "case", "X86", "::", "CMPPDrri", ":", "case", "X86", "::", "CMPPSrri", ":", "case", "X86", "::", "VCMPPDrri", ":", "case", "X86", "::", "VCMPPSrri", ":", "case", "X86", "::", "VCMPPDYrri", ":", "case", "X86", "::", "VCMPPSYrri", ":", "{", "unsigned", "Imm", "=", "MI", ".", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", "&", "0x7", ";", "switch", "(", "Imm", ")", "{", "case", "0x00", ":", "case", "0x03", ":", "case", "0x04", ":", "case", "0x07", ":", "return", "fixCommutedOpIndices", "(", "SrcOpIdx1", ",", "SrcOpIdx2", ",", "1", ",", "2", ")", ";", "}", "return", "false", ";", "}", "default", ":", "if", "(", "isFMA3", "(", "MI", ".", "getOpcode", "(", ")", ")", ")", "return", "findFMA3CommutedOpIndices", "(", "MI", ",", "SrcOpIdx1", ",", "SrcOpIdx2", ")", ";", "return", "TargetInstrInfo", "::", "findCommutedOpIndices", "(", "MI", ",", "SrcOpIdx1", ",", "SrcOpIdx2", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Returns", "true", "iff", "the", "routine", "could", "find", "two", "commutable", "operands", "in", "the", "given", "machine", "instruction", "."], "TS_V_token": ["X86", "X86", "X86::CMPPDrri", "X86::CMPPSrri", "X86::VCMPPDrri", "X86::VCMPPSrri", "X86::VCMPPDYrri", "X86::VCMPPSYrri", "3", "0x7", "0x00", "0x03", "0x04", "0x07", "1", "2"], "File": "X86InstrInfo (2)1", "Func": "findCommutedOpIndices", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3427, "Length": 149, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_emit_mult", "(", "rtx", "dst", ",", "rtx", "ptrue", ",", "rtx", "src1", ",", "rtx", "src2", ")", "{", "if", "(", "ptrue", ")", "emit_insn", "(", "gen_aarch64_pred", "(", "UNSPEC_COND_FMUL", ",", "GET_MODE", "(", "dst", ")", ",", "dst", ",", "ptrue", ",", "src1", ",", "src2", ",", "gen_int_mode", "(", "SVE_RELAXED_GP", ",", "SImode", ")", ")", ")", ";", "else", "emit_set_insn", "(", "dst", ",", "gen_rtx_MULT", "(", "GET_MODE", "(", "dst", ")", ",", "src1", ",", "src2", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "code", "to", "perform", "the", "floating-point", "operation", ":", "DST", "=", "SRC1", "*", "SRC2", "where", "all", "three", "operands", "are", "already", "known", "to", "be", "registers", ".", "If", "the", "operation", "is", "an", "SVE", "one", ",", "PTRUE", "is", "a", "suitable", "all-true", "predicate", "."], "TS_V_token": ["aarch64"], "File": "aarch64", "Func": "aarch64_emit_mult", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3428, "Length": 68, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "IA64InstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FrameIdx", ",", "const", "TargetRegisterClass", "*", "RC", ")", "const", "{", "DebugLoc", "DL", "=", "DebugLoc", "::", "getUnknownLoc", "(", ")", ";", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "if", "(", "RC", "==", "IA64", "::", "FPRegisterClass", ")", "{", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "IA64", "::", "STF_SPILL", ")", ")", ".", "addFrameIndex", "(", "FrameIdx", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ";", "}", "else", "if", "(", "RC", "==", "IA64", "::", "GRRegisterClass", ")", "{", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "IA64", "::", "ST8", ")", ")", ".", "addFrameIndex", "(", "FrameIdx", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ";", "}", "else", "if", "(", "RC", "==", "IA64", "::", "PRRegisterClass", ")", "{", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "IA64", "::", "MOV", ")", ",", "IA64", "::", "r2", ")", ".", "addReg", "(", "IA64", "::", "r0", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "IA64", "::", "CADDIMM22", ")", ",", "IA64", "::", "r2", ")", ".", "addReg", "(", "IA64", "::", "r2", ")", ".", "addImm", "(", "1", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "IA64", "::", "ST8", ")", ")", ".", "addFrameIndex", "(", "FrameIdx", ")", ".", "addReg", "(", "IA64", "::", "r2", ")", ";", "}", "else", "assert", "(", "0", "&&", "\"sorry, I don't know how to store this sort of reg in the stack\\n\"", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["IA64", "IA64", "IA64::FPRegisterClass", "IA64::STF_SPILL", "IA64::GRRegisterClass", "IA64::ST8", "IA64::PRRegisterClass", "IA64::MOV", "IA64::r2", "IA64::r0", "IA64::CADDIMM22", "IA64::r2", "IA64::r2", "1", "IA64::ST8", "IA64::r2", "0", "\"sorry, I don't know how to store this sort of reg in the stack\\n\""], "File": "IA64InstrInfo", "Func": "storeRegToStackSlot", "Target": "IA64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3429, "Length": 257, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mep_store_data_bypass_p", "(", "rtx_insn", "*", "prev", ",", "rtx_insn", "*", "insn", ")", "{", "return", "INSN_P", "(", "insn", ")", "?", "mep_store_data_bypass_1", "(", "prev", ",", "PATTERN", "(", "insn", ")", ")", ":", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "INSN", "is", "a", "store", "instruction", "and", "if", "the", "store", "address", "has", "no", "true", "dependence", "on", "PREV", "."], "TS_V_token": ["mep"], "File": "mep", "Func": "mep_store_data_bypass_p", "Target": "mep", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3430, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "gen_rx_rtsd_vector", "(", "unsigned", "int", "adjust", ",", "unsigned", "int", "low", ",", "unsigned", "int", "high", ")", "{", "unsigned", "int", "i", ";", "unsigned", "int", "bias", "=", "3", ";", "unsigned", "int", "count", "=", "(", "high", "-", "low", ")", "+", "bias", ";", "rtx", "vector", ";", "vector", "=", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "rtvec_alloc", "(", "count", ")", ")", ";", "XVECEXP", "(", "vector", ",", "0", ",", "0", ")", "=", "gen_rtx_SET", "(", "stack_pointer_rtx", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "adjust", ")", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "count", "-", "2", ";", "i", "++", ")", "XVECEXP", "(", "vector", ",", "0", ",", "i", "+", "1", ")", "=", "gen_rtx_SET", "(", "gen_rtx_REG", "(", "SImode", ",", "low", "+", "i", ")", ",", "gen_rtx_MEM", "(", "SImode", ",", "i", "==", "0", "?", "stack_pointer_rtx", ":", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "i", "*", "UNITS_PER_WORD", ")", ")", ")", ";", "XVECEXP", "(", "vector", ",", "0", ",", "count", "-", "1", ")", "=", "ret_rtx", ";", "return", "vector", ";", "}", ""], "natrual_language": ["Generate", "a", "PARALLEL", "which", "will", "satisfy", "the", "rx_rtsd_vector", "predicate", "."], "TS_V_token": ["rx", "3", "0", "0", "0", "2", "0", "1", "0", "0", "1"], "File": "rx", "Func": "gen_rx_rtsd_vector", "Target": "rx", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3431, "Length": 154, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "AArch64TargetMachine", "::", "AArch64TargetMachine", "(", "const", "Target", "&", "T", ",", "StringRef", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Reloc", "::", "Model", "RM", ",", "CodeModel", "::", "Model", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ",", "bool", "LittleEndian", ")", ":", "LLVMTargetMachine", "(", "T", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "RM", ",", "CM", ",", "OL", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ",", "LittleEndian", ")", ",", "DL", "(", "Subtarget", ".", "isTargetMachO", "(", ")", "?", "\"e-m:o-i64:64-i128:128-n32:64-S128\"", ":", "(", "LittleEndian", "?", "\"e-m:e-i64:64-i128:128-n32:64-S128\"", ":", "\"E-m:e-i64:64-i128:128-n32:64-S128\"", ")", ")", ",", "InstrInfo", "(", "Subtarget", ")", ",", "TLInfo", "(", "*", "this", ")", ",", "FrameLowering", "(", "*", "this", ",", "Subtarget", ")", ",", "TSInfo", "(", "*", "this", ")", "{", "initAsmInfo", "(", ")", ";", "}", ""], "natrual_language": ["Create", "an", "AArch64", "architecture", "model", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "\"e-m:o-i64:64-i128:128-n32:64-S128\"", "\"e-m:e-i64:64-i128:128-n32:64-S128\"", "\"E-m:e-i64:64-i128:128-n32:64-S128\""], "File": "AArch64TargetMachine39", "Func": "AArch64TargetMachine", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3432, "Length": 121, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "uint64_t", "evaluateBranch", "(", "const", "MCInst", "&", "Inst", ",", "uint64_t", "Addr", ",", "uint64_t", "Size", ")", "const", "{", "if", "(", "Info", "->", "get", "(", "Inst", ".", "getOpcode", "(", ")", ")", ".", "OpInfo", "[", "0", "]", ".", "OperandType", "!=", "MCOI", "::", "OPERAND_PCREL", ")", "return", "-", "1ULL", ";", "int64_t", "Imm", "=", "Inst", ".", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "return", "Addr", "+", "Imm", "+", "8", ";", "}", ""], "natrual_language": ["Given", "a", "branch", "instruction", "try", "to", "get", "the", "address", "the", "branch", "targets", "."], "TS_V_token": ["ARM", "0", "1ULL", "0", "8"], "File": "ARMMCTargetDesc1", "Func": "evaluateBranch", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3433, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "nds32_expand_unopimm_builtin", "(", "enum", "insn_code", "icode", ",", "tree", "exp", ",", "rtx", "target", ",", "bool", "return_p", ",", "const", "char", "*", "name", ")", "{", "rtx", "pat", ";", "rtx", "op0", "=", "nds32_read_argument", "(", "exp", ",", "0", ")", ";", "int", "op0_num", "=", "return_p", "?", "1", ":", "0", ";", "if", "(", "return_p", ")", "target", "=", "nds32_legitimize_target", "(", "icode", ",", "target", ")", ";", "if", "(", "!", "nds32_check_constant_argument", "(", "icode", ",", "op0_num", ",", "op0", ",", "name", ")", ")", "return", "NULL_RTX", ";", "op0", "=", "nds32_legitimize_argument", "(", "icode", ",", "op0_num", ",", "op0", ")", ";", "if", "(", "return_p", ")", "pat", "=", "GEN_FCN", "(", "icode", ")", "(", "target", ",", "op0", ")", ";", "else", "pat", "=", "GEN_FCN", "(", "icode", ")", "(", "op0", ")", ";", "if", "(", "!", "pat", ")", "return", "NULL_RTX", ";", "emit_insn", "(", "pat", ")", ";", "return", "target", ";", "}", ""], "natrual_language": ["Expand", "builtins", "that", "take", "one", "operands", "and", "the", "first", "is", "immediate", "."], "TS_V_token": ["nds32", "0", "1", "0"], "File": "nds32-intrinsic", "Func": "nds32_expand_unopimm_builtin", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3434, "Length": 130, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64PassConfig", "::", "addPreRegAlloc", "(", ")", "{", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "EnableAdvSIMDScalar", ")", "addPass", "(", "createAArch64AdvSIMDScalar", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "register", "allocation", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64"], "File": "AArch64TargetMachine3", "Func": "addPreRegAlloc", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3435, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "AArch64FrameLowering", "::", "getFrameIndexReference", "(", "const", "MachineFunction", "&", "MF", ",", "int", "FI", ",", "Register", "&", "FrameReg", ")", "const", "{", "return", "resolveFrameIndexReference", "(", "MF", ",", "FI", ",", "FrameReg", ",", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "Attribute", "::", "SanitizeHWAddress", ")", ",", "false", ")", ".", "getBytes", "(", ")", ";", "}", ""], "natrual_language": ["getFrameIndexReference", "-", "This", "method", "should", "return", "the", "base", "register", "and", "offset", "used", "to", "reference", "a", "frame", "index", "location", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64FrameLowering100", "Func": "getFrameIndexReference", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3436, "Length": 49, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ia64_move_ok", "(", "rtx", "dst", ",", "rtx", "src", ")", "{", "if", "(", "GET_CODE", "(", "dst", ")", "!=", "MEM", ")", "return", "1", ";", "if", "(", "GET_CODE", "(", "src", ")", "==", "MEM", ")", "return", "0", ";", "if", "(", "register_operand", "(", "src", ",", "VOIDmode", ")", ")", "return", "1", ";", "if", "(", "INTEGRAL_MODE_P", "(", "GET_MODE", "(", "dst", ")", ")", ")", "return", "src", "==", "const0_rtx", ";", "else", "return", "GET_CODE", "(", "src", ")", "==", "CONST_DOUBLE", "&&", "CONST_DOUBLE_OK_FOR_G", "(", "src", ")", ";", "}", ""], "natrual_language": ["Return", "1", "if", "the", "operands", "of", "a", "move", "are", "ok", "."], "TS_V_token": ["ia64", "1", "0", "1"], "File": "ia643", "Func": "ia64_move_ok", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3437, "Length": 76, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "X86TargetLowering", "::", "SimplifyMultipleUseDemandedBitsForTargetNode", "(", "SDValue", "Op", ",", "const", "APInt", "&", "DemandedBits", ",", "const", "APInt", "&", "DemandedElts", ",", "SelectionDAG", "&", "DAG", ",", "unsigned", "Depth", ")", "const", "{", "int", "NumElts", "=", "DemandedElts", ".", "getBitWidth", "(", ")", ";", "unsigned", "Opc", "=", "Op", ".", "getOpcode", "(", ")", ";", "EVT", "VT", "=", "Op", ".", "getValueType", "(", ")", ";", "switch", "(", "Opc", ")", "{", "case", "X86ISD", "::", "PINSRB", ":", "case", "X86ISD", "::", "PINSRW", ":", "{", "SDValue", "Vec", "=", "Op", ".", "getOperand", "(", "0", ")", ";", "auto", "*", "CIdx", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ".", "getOperand", "(", "2", ")", ")", ";", "MVT", "VecVT", "=", "Vec", ".", "getSimpleValueType", "(", ")", ";", "if", "(", "CIdx", "&&", "CIdx", "->", "getAPIntValue", "(", ")", ".", "ult", "(", "VecVT", ".", "getVectorNumElements", "(", ")", ")", "&&", "!", "DemandedElts", "[", "CIdx", "->", "getZExtValue", "(", ")", "]", ")", "return", "Vec", ";", "break", ";", "}", "}", "APInt", "ShuffleUndef", ",", "ShuffleZero", ";", "SmallVector", "<", "int", ",", "16", ">", "ShuffleMask", ";", "SmallVector", "<", "SDValue", ",", "2", ">", "ShuffleOps", ";", "if", "(", "getTargetShuffleInputs", "(", "Op", ",", "DemandedElts", ",", "ShuffleOps", ",", "ShuffleMask", ",", "ShuffleUndef", ",", "ShuffleZero", ",", "DAG", ",", "Depth", ",", "false", ")", ")", "{", "int", "NumOps", "=", "ShuffleOps", ".", "size", "(", ")", ";", "if", "(", "ShuffleMask", ".", "size", "(", ")", "==", "(", "unsigned", ")", "NumElts", "&&", "llvm", "::", "all_of", "(", "ShuffleOps", ",", "[", "VT", "]", "(", "SDValue", "V", ")", "{", "return", "VT", ".", "getSizeInBits", "(", ")", "==", "V", ".", "getValueSizeInBits", "(", ")", ";", "}", ")", ")", "{", "if", "(", "DemandedElts", ".", "isSubsetOf", "(", "ShuffleUndef", ")", ")", "return", "DAG", ".", "getUNDEF", "(", "VT", ")", ";", "if", "(", "DemandedElts", ".", "isSubsetOf", "(", "ShuffleUndef", "|", "ShuffleZero", ")", ")", "return", "getZeroVector", "(", "VT", ".", "getSimpleVT", "(", ")", ",", "Subtarget", ",", "DAG", ",", "SDLoc", "(", "Op", ")", ")", ";", "APInt", "IdentityOp", "=", "APInt", "::", "getAllOnesValue", "(", "NumOps", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "!=", "NumElts", ";", "++", "i", ")", "{", "int", "M", "=", "ShuffleMask", "[", "i", "]", ";", "if", "(", "!", "DemandedElts", "[", "i", "]", "||", "ShuffleUndef", "[", "i", "]", ")", "continue", ";", "int", "Op", "=", "M", "/", "NumElts", ";", "int", "Index", "=", "M", "%", "NumElts", ";", "if", "(", "M", "<", "0", "||", "Index", "!=", "i", ")", "{", "IdentityOp", ".", "clearAllBits", "(", ")", ";", "break", ";", "}", "IdentityOp", "&=", "APInt", "::", "getOneBitSet", "(", "NumOps", ",", "Op", ")", ";", "if", "(", "IdentityOp", "==", "0", ")", "break", ";", "}", "assert", "(", "(", "IdentityOp", "==", "0", "||", "IdentityOp", ".", "countPopulation", "(", ")", "==", "1", ")", "&&", "\"Multiple identity shuffles detected\"", ")", ";", "if", "(", "IdentityOp", "!=", "0", ")", "return", "DAG", ".", "getBitcast", "(", "VT", ",", "ShuffleOps", "[", "IdentityOp", ".", "countTrailingZeros", "(", ")", "]", ")", ";", "}", "}", "return", "TargetLowering", "::", "SimplifyMultipleUseDemandedBitsForTargetNode", "(", "Op", ",", "DemandedBits", ",", "DemandedElts", ",", "DAG", ",", "Depth", ")", ";", "}", ""], "natrual_language": ["More", "limited", "version", "of", "SimplifyDemandedBits", "that", "can", "be", "used", "to", "``", "look", "through", "''", "ops", "that", "do", "n't", "contribute", "to", "the", "DemandedBits/DemandedElts", "-", "bitwise", "ops", "etc", "."], "TS_V_token": ["X86", "X86", "X86ISD::PINSRB", "X86ISD::PINSRW", "0", "2", "16", "2", "0", "0", "0", "0", "1", "\"Multiple identity shuffles detected\"", "0"], "File": "X86ISelLowering (2)6", "Func": "SimplifyMultipleUseDemandedBitsForTargetNode", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3438, "Length": 450, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mt_emit_save_regs", "(", "enum", "save_direction", "direction", ",", "struct", "mt_frame_info", "info", ")", "{", "rtx", "base_reg", ";", "int", "regno", ";", "int", "reg_mask", "=", "info", ".", "reg_mask", "&", "~", "(", "FP_MASK", "|", "LINK_MASK", ")", ";", "int", "offset", "=", "info", ".", "total_size", ";", "int", "stack_offset", "=", "info", ".", "total_size", ";", "if", "(", "!", "info", ".", "save_fp", "&&", "!", "info", ".", "save_lr", "&&", "!", "reg_mask", ")", "return", ";", "if", "(", "CONST_OK_FOR_LETTER_P", "(", "offset", ",", "'O'", ")", ")", "base_reg", "=", "stack_pointer_rtx", ";", "else", "{", "base_reg", "=", "gen_rtx_REG", "(", "SImode", ",", "GPR_R9", ")", ";", "offset", "=", "0", ";", "}", "if", "(", "info", ".", "save_fp", ")", "{", "offset", "-=", "UNITS_PER_WORD", ";", "stack_offset", "-=", "UNITS_PER_WORD", ";", "}", "if", "(", "info", ".", "save_lr", ")", "{", "offset", "-=", "UNITS_PER_WORD", ";", "stack_offset", "-=", "UNITS_PER_WORD", ";", "mt_emit_save_restore", "(", "direction", ",", "gen_rtx_REG", "(", "SImode", ",", "GPR_LINK", ")", ",", "gen_rtx_MEM", "(", "SImode", ",", "gen_rtx_PLUS", "(", "SImode", ",", "base_reg", ",", "GEN_INT", "(", "offset", ")", ")", ")", ",", "stack_offset", ")", ";", "}", "for", "(", "regno", "=", "GPR_R0", ";", "regno", "<=", "GPR_LAST", ";", "regno", "++", ")", "{", "if", "(", "(", "reg_mask", "&", "(", "1", "<<", "regno", ")", ")", "!=", "0", ")", "{", "offset", "-=", "UNITS_PER_WORD", ";", "stack_offset", "-=", "UNITS_PER_WORD", ";", "mt_emit_save_restore", "(", "direction", ",", "gen_rtx_REG", "(", "SImode", ",", "regno", ")", ",", "gen_rtx_MEM", "(", "SImode", ",", "gen_rtx_PLUS", "(", "SImode", ",", "base_reg", ",", "GEN_INT", "(", "offset", ")", ")", ")", ",", "stack_offset", ")", ";", "}", "}", "}", ""], "natrual_language": ["Emit", "code", "to", "save", "registers", "in", "the", "prologue", "and", "restore", "register", "in", "epilogue", "."], "TS_V_token": ["mt", "0", "1", "0"], "File": "mt", "Func": "mt_emit_save_regs", "Target": "mt", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3439, "Length": 227, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "SystemZTargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "DebugLoc", "dl", ",", "SelectionDAG", "&", "DAG", ")", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "getTargetMachine", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_SystemZ", ")", ";", "if", "(", "DAG", ".", "getMachineFunction", "(", ")", ".", "getRegInfo", "(", ")", ".", "liveout_empty", "(", ")", ")", "{", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "if", "(", "RVLocs", "[", "i", "]", ".", "isRegLoc", "(", ")", ")", "DAG", ".", "getMachineFunction", "(", ")", ".", "getRegInfo", "(", ")", ".", "addLiveOut", "(", "RVLocs", "[", "i", "]", ".", "getLocReg", "(", ")", ")", ";", "}", "SDValue", "Flag", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "SDValue", "ResValue", "=", "Outs", "[", "i", "]", ".", "Val", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Can only return in registers!\"", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "SExt", ")", "ResValue", "=", "DAG", ".", "getNode", "(", "ISD", "::", "SIGN_EXTEND", ",", "dl", ",", "VA", ".", "getLocVT", "(", ")", ",", "ResValue", ")", ";", "else", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "ZExt", ")", "ResValue", "=", "DAG", ".", "getNode", "(", "ISD", "::", "ZERO_EXTEND", ",", "dl", ",", "VA", ".", "getLocVT", "(", ")", ",", "ResValue", ")", ";", "else", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "AExt", ")", "ResValue", "=", "DAG", ".", "getNode", "(", "ISD", "::", "ANY_EXTEND", ",", "dl", ",", "VA", ".", "getLocVT", "(", ")", ",", "ResValue", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "dl", ",", "VA", ".", "getLocReg", "(", ")", ",", "ResValue", ",", "Flag", ")", ";", "Flag", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "}", "if", "(", "Flag", ".", "getNode", "(", ")", ")", "return", "DAG", ".", "getNode", "(", "SystemZISD", "::", "RET_FLAG", ",", "dl", ",", "MVT", "::", "Other", ",", "Chain", ",", "Flag", ")", ";", "return", "DAG", ".", "getNode", "(", "SystemZISD", "::", "RET_FLAG", ",", "dl", ",", "MVT", "::", "Other", ",", "Chain", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["SystemZ", "SystemZ", "ISD::OutputArg", "16", "SystemZ", "0", "0", "\"Can only return in registers!\"", "ISD::SIGN_EXTEND", "ISD::ZERO_EXTEND", "ISD::ANY_EXTEND", "1", "SystemZISD::RET_FLAG", "MVT::Other", "SystemZISD::RET_FLAG", "MVT::Other"], "File": "SystemZISelLowering101", "Func": "LowerReturn", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3440, "Length": 372, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "MipsTargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "SDLoc", "DL", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ",", "const", "SDNode", "*", "CallNode", ",", "const", "Type", "*", "RetTy", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "MipsCC", "MipsCCInfo", "(", "CallConv", ",", "Subtarget", ",", "CCInfo", ")", ";", "MipsCCInfo", ".", "analyzeCallResult", "(", "Ins", ",", "Subtarget", ".", "abiUsesSoftFloat", "(", ")", ",", "CallNode", ",", "RetTy", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "SDValue", "Val", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "RVLocs", "[", "i", "]", ".", "getLocReg", "(", ")", ",", "RVLocs", "[", "i", "]", ".", "getLocVT", "(", ")", ",", "InFlag", ")", ";", "Chain", "=", "Val", ".", "getValue", "(", "1", ")", ";", "InFlag", "=", "Val", ".", "getValue", "(", "2", ")", ";", "if", "(", "RVLocs", "[", "i", "]", ".", "getValVT", "(", ")", "!=", "RVLocs", "[", "i", "]", ".", "getLocVT", "(", ")", ")", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "BITCAST", ",", "DL", ",", "RVLocs", "[", "i", "]", ".", "getValVT", "(", ")", ",", "Val", ")", ";", "InVals", ".", "push_back", "(", "Val", ")", ";", "}", "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": ["Mips", "Mips", "ISD::InputArg", "16", "Mips", "Mips", "Mips", "0", "1", "2", "ISD::BITCAST"], "File": "MipsISelLowering106", "Func": "LowerCallResult", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3441, "Length": 238, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Cpu0TargetObjectFile", "::", "IsGlobalInSmallSection", "(", "const", "GlobalValue", "*", "GV", ",", "const", "TargetMachine", "&", "TM", ",", "SectionKind", "Kind", ")", "const", "{", "const", "Cpu0Subtarget", "&", "Subtarget", "=", "TM", ".", "getSubtarget", "<", "Cpu0Subtarget", ">", "(", ")", ";", "if", "(", "!", "Subtarget", ".", "useSmallSection", "(", ")", ")", "return", "false", ";", "const", "GlobalVariable", "*", "GVA", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GV", ")", ";", "if", "(", "!", "GVA", ")", "return", "false", ";", "if", "(", "!", "Kind", ".", "isBSS", "(", ")", "&&", "!", "Kind", ".", "isDataRel", "(", ")", ")", "return", "false", ";", "if", "(", "Kind", ".", "isMergeable1ByteCString", "(", ")", ")", "return", "false", ";", "Type", "*", "Ty", "=", "GV", "->", "getType", "(", ")", "->", "getElementType", "(", ")", ";", "return", "IsInSmallSection", "(", "TM", ".", "getDataLayout", "(", ")", "->", "getTypeAllocSize", "(", "Ty", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "this", "global", "address", "should", "be", "placed", "into", "small", "data/bss", "section", "."], "TS_V_token": ["Cpu0", "Cpu0", "Cpu0", "Cpu0"], "File": "Cpu0TargetObjectFile1", "Func": "IsGlobalInSmallSection", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3442, "Length": 127, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "isFPRCopy", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "TargetOpcode", "::", "COPY", ":", "{", "unsigned", "DstReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "return", "(", "AArch64", "::", "FPR64RegClass", ".", "contains", "(", "DstReg", ")", "||", "AArch64", "::", "FPR128RegClass", ".", "contains", "(", "DstReg", ")", ")", ";", "}", "case", "AArch64", "::", "ORRv16i8", ":", "if", "(", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", "==", "MI", ".", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ")", "{", "assert", "(", "MI", ".", "getDesc", "(", ")", ".", "getNumOperands", "(", ")", "==", "3", "&&", "MI", ".", "getOperand", "(", "0", ")", ".", "isReg", "(", ")", "&&", "\"invalid ORRv16i8 operands\"", ")", ";", "return", "true", ";", "}", "break", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Does", "this", "instruction", "rename", "an", "FPR", "without", "modifying", "bits", "?"], "TS_V_token": ["AArch64", "AArch64", "0", "AArch64::FPR64RegClass", "AArch64::FPR128RegClass", "AArch64::ORRv16i8", "1", "2", "3", "0", "\"invalid ORRv16i8 operands\""], "File": "AArch64InstrInfo (2)", "Func": "isFPRCopy", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3443, "Length": 136, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsSubtarget", "::", "resetSubtarget", "(", "MachineFunction", "*", "MF", ")", "{", "bool", "ChangeToMips16", "=", "false", ",", "ChangeToNoMips16", "=", "false", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"resetSubtargetFeatures\"", "<<", "\"\\n\"", ")", ";", "AttributeSet", "FnAttrs", "=", "MF", "->", "getFunction", "(", ")", "->", "getAttributes", "(", ")", ";", "ChangeToMips16", "=", "FnAttrs", ".", "hasAttribute", "(", "AttributeSet", "::", "FunctionIndex", ",", "\"mips16\"", ")", ";", "ChangeToNoMips16", "=", "FnAttrs", ".", "hasAttribute", "(", "AttributeSet", "::", "FunctionIndex", ",", "\"nomips16\"", ")", ";", "assert", "(", "!", "(", "ChangeToMips16", "&", "ChangeToNoMips16", ")", "&&", "\"mips16 and nomips16 specified on the same function\"", ")", ";", "if", "(", "ChangeToMips16", ")", "{", "if", "(", "PreviousInMips16Mode", ")", "return", ";", "OverrideMode", "=", "Mips16Override", ";", "PreviousInMips16Mode", "=", "true", ";", "setHelperClassesMips16", "(", ")", ";", "return", ";", "}", "else", "if", "(", "ChangeToNoMips16", ")", "{", "if", "(", "!", "PreviousInMips16Mode", ")", "return", ";", "OverrideMode", "=", "NoMips16Override", ";", "PreviousInMips16Mode", "=", "false", ";", "setHelperClassesMipsSE", "(", ")", ";", "return", ";", "}", "else", "{", "if", "(", "OverrideMode", "==", "NoOverride", ")", "return", ";", "OverrideMode", "=", "NoOverride", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"back to default\"", "<<", "\"\\n\"", ")", ";", "if", "(", "inMips16Mode", "(", ")", "&&", "!", "PreviousInMips16Mode", ")", "{", "setHelperClassesMips16", "(", ")", ";", "PreviousInMips16Mode", "=", "true", ";", "}", "else", "if", "(", "!", "inMips16Mode", "(", ")", "&&", "PreviousInMips16Mode", ")", "{", "setHelperClassesMipsSE", "(", ")", ";", "PreviousInMips16Mode", "=", "false", ";", "}", "return", ";", "}", "}", ""], "natrual_language": ["Reset", "the", "subtarget", "for", "the", "Mips", "target", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "\"resetSubtargetFeatures\"", "\"\\n\"", "Mips", "\"mips16\"", "Mips", "\"nomips16\"", "Mips", "Mips", "\"mips16 and nomips16 specified on the same function\"", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "\"back to default\"", "\"\\n\"", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips"], "File": "MipsSubtarget1", "Func": "resetSubtarget", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3444, "Length": 203, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Mips16FrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ")", "const", "{", "MachineBasicBlock", "&", "MBB", "=", "MF", ".", "front", "(", ")", ";", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "MipsInstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "MipsInstrInfo", "*", ">", "(", "MF", ".", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "begin", "(", ")", ";", "DebugLoc", "dl", "=", "MBBI", "!=", "MBB", ".", "end", "(", ")", "?", "MBBI", "->", "getDebugLoc", "(", ")", ":", "DebugLoc", "(", ")", ";", "uint64_t", "StackSize", "=", "MFI", "->", "getStackSize", "(", ")", ";", "if", "(", "StackSize", "==", "0", "&&", "!", "MFI", "->", "adjustsStack", "(", ")", ")", "return", ";", "if", "(", "isInt", "<", "16", ">", "(", "-", "StackSize", ")", ")", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "Mips", "::", "SaveRaF16", ")", ")", ".", "addImm", "(", "StackSize", ")", ";", "if", "(", "hasFP", "(", "MF", ")", ")", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "Mips", "::", "MoveR3216", ")", ",", "Mips", "::", "S0", ")", ".", "addReg", "(", "Mips", "::", "SP", ")", ";", "}", ""], "natrual_language": ["emitProlog/emitEpilog", "-", "These", "methods", "insert", "prolog", "and", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "0", "16", "Mips::SaveRaF16", "Mips::MoveR3216", "Mips::S0", "Mips::SP"], "File": "Mips16FrameLowering28", "Func": "emitPrologue", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3445, "Length": 182, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "mips_address_cost", "(", "rtx", "addr", ")", "{", "return", "mips_address_insns", "(", "addr", ",", "SImode", ")", ";", "}", ""], "natrual_language": ["Provide", "the", "costs", "of", "an", "addressing", "mode", "that", "contains", "ADDR", ".", "If", "ADDR", "is", "not", "a", "valid", "address", ",", "its", "cost", "is", "irrelevant", "."], "TS_V_token": ["mips"], "File": "mips3", "Func": "mips_address_cost", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3446, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "tree", "def_builtin", "(", "HOST_WIDE_INT", "mask", ",", "HOST_WIDE_INT", "mask2", ",", "const", "char", "*", "name", ",", "enum", "ix86_builtin_func_type", "tcode", ",", "enum", "ix86_builtins", "code", ")", "{", "tree", "decl", "=", "NULL_TREE", ";", "if", "(", "!", "(", "mask", "&", "OPTION_MASK_ISA_64BIT", ")", "||", "TARGET_64BIT", ")", "{", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "isa", "=", "mask", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "isa2", "=", "mask2", ";", "mask", "&=", "~", "OPTION_MASK_ISA_64BIT", ";", "if", "(", "(", "mask", "&", "ix86_isa_flags", "&", "OPTION_MASK_ISA_AVX512VL", ")", "&&", "mask", "!=", "OPTION_MASK_ISA_AVX512VL", ")", "mask", "&=", "~", "OPTION_MASK_ISA_AVX512VL", ";", "if", "(", "(", "mask", "&", "ix86_isa_flags", "&", "OPTION_MASK_ISA_AVX512BW", ")", "&&", "mask", "!=", "OPTION_MASK_ISA_AVX512BW", ")", "mask", "&=", "~", "OPTION_MASK_ISA_AVX512BW", ";", "if", "(", "(", "(", "mask2", "==", "0", "||", "(", "mask2", "&", "ix86_isa_flags2", ")", "!=", "0", ")", "&&", "(", "mask", "==", "0", "||", "(", "mask", "&", "ix86_isa_flags", ")", "!=", "0", ")", ")", "||", "(", "lang_hooks", ".", "builtin_function", "==", "lang_hooks", ".", "builtin_function_ext_scope", ")", ")", "{", "tree", "type", "=", "ix86_get_builtin_func_type", "(", "tcode", ")", ";", "decl", "=", "add_builtin_function", "(", "name", ",", "type", ",", "code", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";", "ix86_builtins", "[", "(", "int", ")", "code", "]", "=", "decl", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "set_and_not_built_p", "=", "false", ";", "}", "else", "{", "deferred_isa_values", "|=", "mask", ";", "deferred_isa_values2", "|=", "mask2", ";", "ix86_builtins", "[", "(", "int", ")", "code", "]", "=", "NULL_TREE", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "tcode", "=", "tcode", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "name", "=", "name", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "const_p", "=", "false", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "pure_p", "=", "false", ";", "ix86_builtins_isa", "[", "(", "int", ")", "code", "]", ".", "set_and_not_built_p", "=", "true", ";", "}", "}", "return", "decl", ";", "}", ""], "natrual_language": ["Add", "a", "SPARC", "builtin", "function", "with", "NAME", ",", "ICODE", ",", "CODE", "and", "TYPE", ".", "Return", "the", "function", "decl", "or", "NULL_TREE", "if", "the", "builtin", "was", "not", "added", "."], "TS_V_token": ["i386", "0", "0", "0", "0"], "File": "i3868", "Func": "def_builtin", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3447, "Length": 286, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTTIImpl", "::", "getTgtMemIntrinsic", "(", "IntrinsicInst", "*", "Inst", ",", "MemIntrinsicInfo", "&", "Info", ")", "{", "switch", "(", "Inst", "->", "getIntrinsicID", "(", ")", ")", "{", "case", "Intrinsic", "::", "ppc_altivec_lvx", ":", "case", "Intrinsic", "::", "ppc_altivec_lvxl", ":", "case", "Intrinsic", "::", "ppc_altivec_lvebx", ":", "case", "Intrinsic", "::", "ppc_altivec_lvehx", ":", "case", "Intrinsic", "::", "ppc_altivec_lvewx", ":", "case", "Intrinsic", "::", "ppc_vsx_lxvd2x", ":", "case", "Intrinsic", "::", "ppc_vsx_lxvw4x", ":", "case", "Intrinsic", "::", "ppc_vsx_lxvd2x_be", ":", "case", "Intrinsic", "::", "ppc_vsx_lxvw4x_be", ":", "case", "Intrinsic", "::", "ppc_vsx_lxvl", ":", "case", "Intrinsic", "::", "ppc_vsx_lxvll", ":", "case", "Intrinsic", "::", "ppc_vsx_lxvp", ":", "{", "Info", ".", "PtrVal", "=", "Inst", "->", "getArgOperand", "(", "0", ")", ";", "Info", ".", "ReadMem", "=", "true", ";", "Info", ".", "WriteMem", "=", "false", ";", "return", "true", ";", "}", "case", "Intrinsic", "::", "ppc_altivec_stvx", ":", "case", "Intrinsic", "::", "ppc_altivec_stvxl", ":", "case", "Intrinsic", "::", "ppc_altivec_stvebx", ":", "case", "Intrinsic", "::", "ppc_altivec_stvehx", ":", "case", "Intrinsic", "::", "ppc_altivec_stvewx", ":", "case", "Intrinsic", "::", "ppc_vsx_stxvd2x", ":", "case", "Intrinsic", "::", "ppc_vsx_stxvw4x", ":", "case", "Intrinsic", "::", "ppc_vsx_stxvd2x_be", ":", "case", "Intrinsic", "::", "ppc_vsx_stxvw4x_be", ":", "case", "Intrinsic", "::", "ppc_vsx_stxvl", ":", "case", "Intrinsic", "::", "ppc_vsx_stxvll", ":", "case", "Intrinsic", "::", "ppc_vsx_stxvp", ":", "{", "Info", ".", "PtrVal", "=", "Inst", "->", "getArgOperand", "(", "1", ")", ";", "Info", ".", "ReadMem", "=", "false", ";", "Info", ".", "WriteMem", "=", "true", ";", "return", "true", ";", "}", "default", ":", "break", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Given", "an", "intrinsic", ",", "checks", "if", "on", "the", "target", "the", "intrinsic", "will", "need", "to", "map", "to", "a", "MemIntrinsicNode", "(", "touches", "memory", ")", "."], "TS_V_token": ["PowerPC", "PPC", "Intrinsic::ppc_altivec_lvx", "Intrinsic::ppc_altivec_lvxl", "Intrinsic::ppc_altivec_lvebx", "Intrinsic::ppc_altivec_lvehx", "Intrinsic::ppc_altivec_lvewx", "Intrinsic::ppc_vsx_lxvd2x", "Intrinsic::ppc_vsx_lxvw4x", "Intrinsic::ppc_vsx_lxvd2x_be", "Intrinsic::ppc_vsx_lxvw4x_be", "Intrinsic::ppc_vsx_lxvl", "Intrinsic::ppc_vsx_lxvll", "Intrinsic::ppc_vsx_lxvp", "0", "Intrinsic::ppc_altivec_stvx", "Intrinsic::ppc_altivec_stvxl", "Intrinsic::ppc_altivec_stvebx", "Intrinsic::ppc_altivec_stvehx", "Intrinsic::ppc_altivec_stvewx", "Intrinsic::ppc_vsx_stxvd2x", "Intrinsic::ppc_vsx_stxvw4x", "Intrinsic::ppc_vsx_stxvd2x_be", "Intrinsic::ppc_vsx_stxvw4x_be", "Intrinsic::ppc_vsx_stxvl", "Intrinsic::ppc_vsx_stxvll", "Intrinsic::ppc_vsx_stxvp", "1"], "File": "PPCTargetTransformInfo1", "Func": "getTgtMemIntrinsic", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3448, "Length": 208, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "aarch64_gen_atomic_cas", "(", "rtx", "rval", ",", "rtx", "mem", ",", "rtx", "expected", ",", "rtx", "desired", ",", "rtx", "model", ")", "{", "rtx", "(", "*", "gen", ")", "(", "rtx", ",", "rtx", ",", "rtx", ",", "rtx", ")", ";", "machine_mode", "mode", ";", "mode", "=", "GET_MODE", "(", "mem", ")", ";", "switch", "(", "mode", ")", "{", "case", "E_QImode", ":", "gen", "=", "gen_aarch64_atomic_casqi", ";", "break", ";", "case", "E_HImode", ":", "gen", "=", "gen_aarch64_atomic_cashi", ";", "break", ";", "case", "E_SImode", ":", "gen", "=", "gen_aarch64_atomic_cassi", ";", "break", ";", "case", "E_DImode", ":", "gen", "=", "gen_aarch64_atomic_casdi", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "emit_insn", "(", "gen_rtx_SET", "(", "rval", ",", "expected", ")", ")", ";", "emit_insn", "(", "gen", "(", "rval", ",", "mem", ",", "desired", ",", "model", ")", ")", ";", "aarch64_gen_compare_reg", "(", "EQ", ",", "rval", ",", "expected", ")", ";", "}", ""], "natrual_language": ["Emit", "an", "atomic", "compare-and-swap", "operation", ".", "RVAL", "is", "the", "destination", "register", "for", "the", "data", "in", "memory", ".", "EXPECTED", "is", "the", "value", "expected", "to", "be", "in", "memory", ".", "DESIRED", "is", "the", "value", "to", "store", "to", "memory", ".", "MEM", "is", "the", "memory", "location", ".", "MODEL", "is", "the", "memory", "ordering", "to", "use", "."], "TS_V_token": ["aarch64"], "File": "aarch645", "Func": "aarch64_gen_atomic_cas", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3449, "Length": 126, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mimic_memory_attributes_and_flags", "(", "rtx", "new_mem_exp", ",", "const_rtx", "original_mem_exp", ")", "{", "RTX_FLAG", "(", "new_mem_exp", ",", "jump", ")", "=", "RTX_FLAG", "(", "original_mem_exp", ",", "jump", ")", ";", "RTX_FLAG", "(", "new_mem_exp", ",", "call", ")", "=", "RTX_FLAG", "(", "original_mem_exp", ",", "call", ")", ";", "RTX_FLAG", "(", "new_mem_exp", ",", "unchanging", ")", "=", "RTX_FLAG", "(", "original_mem_exp", ",", "unchanging", ")", ";", "RTX_FLAG", "(", "new_mem_exp", ",", "volatil", ")", "=", "RTX_FLAG", "(", "original_mem_exp", ",", "volatil", ")", ";", "RTX_FLAG", "(", "new_mem_exp", ",", "frame_related", ")", "=", "RTX_FLAG", "(", "original_mem_exp", ",", "frame_related", ")", ";", "RTX_FLAG", "(", "new_mem_exp", ",", "in_struct", ")", "=", "RTX_FLAG", "(", "original_mem_exp", ",", "in_struct", ")", ";", "RTX_FLAG", "(", "new_mem_exp", ",", "return_val", ")", "=", "RTX_FLAG", "(", "original_mem_exp", ",", "return_val", ")", ";", "struct", "mem_attrs", "original_attrs", "=", "*", "get_mem_attrs", "(", "original_mem_exp", ")", ";", "alias_set_type", "set", "=", "original_attrs", ".", "alias", ";", "set_mem_alias_set", "(", "new_mem_exp", ",", "set", ")", ";", "addr_space_t", "addrspace", "=", "original_attrs", ".", "addrspace", ";", "set_mem_addr_space", "(", "new_mem_exp", ",", "addrspace", ")", ";", "unsigned", "int", "align", "=", "original_attrs", ".", "align", ";", "set_mem_align", "(", "new_mem_exp", ",", "align", ")", ";", "tree", "expr", "=", "original_attrs", ".", "expr", ";", "set_mem_expr", "(", "new_mem_exp", ",", "expr", ")", ";", "if", "(", "original_attrs", ".", "offset_known_p", ")", "{", "HOST_WIDE_INT", "offset", "=", "original_attrs", ".", "offset", ";", "set_mem_offset", "(", "new_mem_exp", ",", "offset", ")", ";", "}", "else", "clear_mem_offset", "(", "new_mem_exp", ")", ";", "if", "(", "original_attrs", ".", "size_known_p", ")", "{", "HOST_WIDE_INT", "size", "=", "original_attrs", ".", "size", ";", "set_mem_size", "(", "new_mem_exp", ",", "size", ")", ";", "}", "else", "clear_mem_size", "(", "new_mem_exp", ")", ";", "}", ""], "natrual_language": ["Make", "NEW_MEM_EXP", "'s", "attributes", "and", "flags", "resemble", "those", "of", "ORIGINAL_MEM_EXP", "."], "TS_V_token": ["rs6000"], "File": "rs6000-p8swap", "Func": "mimic_memory_attributes_and_flags", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3450, "Length": 233, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "changeSection", "(", "MCSection", "*", "Section", ",", "const", "MCExpr", "*", "Subsection", ")", "override", "{", "LastMappingSymbols", "[", "getCurrentSection", "(", ")", ".", "first", "]", "=", "std", "::", "move", "(", "LastEMSInfo", ")", ";", "MCELFStreamer", "::", "changeSection", "(", "Section", ",", "Subsection", ")", ";", "auto", "LastMappingSymbol", "=", "LastMappingSymbols", ".", "find", "(", "Section", ")", ";", "if", "(", "LastMappingSymbol", "!=", "LastMappingSymbols", ".", "end", "(", ")", ")", "{", "LastEMSInfo", "=", "std", "::", "move", "(", "LastMappingSymbol", "->", "second", ")", ";", "return", ";", "}", "LastEMSInfo", ".", "reset", "(", "new", "ElfMappingSymbolInfo", "(", "SMLoc", "(", ")", ",", "nullptr", ",", "0", ")", ")", ";", "}", ""], "natrual_language": ["Update", "streamer", "for", "a", "new", "active", "section", "."], "TS_V_token": ["ARM", "0"], "File": "ARMELFStreamer22", "Func": "changeSection", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3451, "Length": 92, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCAsmPrinter", "::", "PrintAsmMemoryOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNo", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "O", ")", "{", "if", "(", "ExtraCode", "&&", "ExtraCode", "[", "0", "]", ")", "{", "if", "(", "ExtraCode", "[", "1", "]", "!=", "0", ")", "return", "true", ";", "switch", "(", "ExtraCode", "[", "0", "]", ")", "{", "default", ":", "return", "true", ";", "case", "'y'", ":", "{", "const", "char", "*", "RegName", "=", "\"r0\"", ";", "if", "(", "!", "Subtarget", "->", "isDarwin", "(", ")", ")", "RegName", "=", "PPCRegisterInfo", "::", "stripRegisterPrefix", "(", "RegName", ")", ";", "O", "<<", "RegName", "<<", "\", \"", ";", "printOperand", "(", "MI", ",", "OpNo", ",", "O", ")", ";", "return", "false", ";", "}", "case", "'U'", ":", "case", "'X'", ":", "{", "assert", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "isReg", "(", ")", ")", ";", "return", "false", ";", "}", "}", "}", "assert", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "isReg", "(", ")", ")", ";", "O", "<<", "\"0(\"", ";", "printOperand", "(", "MI", ",", "OpNo", ",", "O", ")", ";", "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": ["PowerPC", "PPC", "0", "1", "0", "0", "\"r0\"", "PPC", "\", \"", "\"0(\"", "\")\""], "File": "PPCAsmPrinter101", "Func": "PrintAsmMemoryOperand", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3452, "Length": 168, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZTTIImpl", "::", "isLSRCostLess", "(", "TargetTransformInfo", "::", "LSRCost", "&", "C1", ",", "TargetTransformInfo", "::", "LSRCost", "&", "C2", ")", "{", "return", "std", "::", "tie", "(", "C1", ".", "Insns", ",", "C1", ".", "NumRegs", ",", "C1", ".", "AddRecCost", ",", "C1", ".", "NumIVMuls", ",", "C1", ".", "NumBaseAdds", ",", "C1", ".", "ScaleCost", ",", "C1", ".", "SetupCost", ")", "<", "std", "::", "tie", "(", "C2", ".", "Insns", ",", "C2", ".", "NumRegs", ",", "C2", ".", "AddRecCost", ",", "C2", ".", "NumIVMuls", ",", "C2", ".", "NumBaseAdds", ",", "C2", ".", "ScaleCost", ",", "C2", ".", "SetupCost", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "LSR", "cost", "of", "C1", "is", "lower", "than", "C2", "."], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZTargetTransformInfo", "Func": "isLSRCostLess", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3453, "Length": 86, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Register", "X86TargetLowering", "::", "getRegisterByName", "(", "const", "char", "*", "RegName", ",", "EVT", "VT", ",", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetFrameLowering", "&", "TFI", "=", "*", "Subtarget", ".", "getFrameLowering", "(", ")", ";", "Register", "Reg", "=", "StringSwitch", "<", "unsigned", ">", "(", "RegName", ")", ".", "Case", "(", "\"esp\"", ",", "X86", "::", "ESP", ")", ".", "Case", "(", "\"rsp\"", ",", "X86", "::", "RSP", ")", ".", "Case", "(", "\"ebp\"", ",", "X86", "::", "EBP", ")", ".", "Case", "(", "\"rbp\"", ",", "X86", "::", "RBP", ")", ".", "Default", "(", "0", ")", ";", "if", "(", "Reg", "==", "X86", "::", "EBP", "||", "Reg", "==", "X86", "::", "RBP", ")", "{", "if", "(", "!", "TFI", ".", "hasFP", "(", "MF", ")", ")", "report_fatal_error", "(", "\"register \"", "+", "StringRef", "(", "RegName", ")", "+", "\" is allocatable: function has no frame pointer\"", ")", ";", "else", "{", "const", "X86RegisterInfo", "*", "RegInfo", "=", "Subtarget", ".", "getRegisterInfo", "(", ")", ";", "Register", "FrameReg", "=", "RegInfo", "->", "getPtrSizedFrameRegister", "(", "MF", ")", ";", "assert", "(", "(", "FrameReg", "==", "X86", "::", "EBP", "||", "FrameReg", "==", "X86", "::", "RBP", ")", "&&", "\"Invalid Frame Register!\"", ")", ";", "}", "}", "if", "(", "Reg", ")", "return", "Reg", ";", "report_fatal_error", "(", "\"Invalid register name global variable\"", ")", ";", "}", ""], "natrual_language": ["Return", "the", "register", "ID", "of", "the", "name", "passed", "in", "."], "TS_V_token": ["X86", "X86", "\"esp\"", "X86::ESP", "\"rsp\"", "X86::RSP", "\"ebp\"", "X86::EBP", "\"rbp\"", "X86::RBP", "0", "X86::EBP", "X86::RBP", "\"register \"", "\" is allocatable: function has no frame pointer\"", "X86", "X86::EBP", "X86::RBP", "\"Invalid Frame Register!\"", "\"Invalid register name global variable\""], "File": "X86ISelLowering (2)6", "Func": "getRegisterByName", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3454, "Length": 178, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "AArch64TargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "Opcode", ")", "{", "case", "AArch64ISD", "::", "BR_CC", ":", "return", "\"AArch64ISD::BR_CC\"", ";", "case", "AArch64ISD", "::", "Call", ":", "return", "\"AArch64ISD::Call\"", ";", "case", "AArch64ISD", "::", "FPMOV", ":", "return", "\"AArch64ISD::FPMOV\"", ";", "case", "AArch64ISD", "::", "GOTLoad", ":", "return", "\"AArch64ISD::GOTLoad\"", ";", "case", "AArch64ISD", "::", "BFI", ":", "return", "\"AArch64ISD::BFI\"", ";", "case", "AArch64ISD", "::", "EXTR", ":", "return", "\"AArch64ISD::EXTR\"", ";", "case", "AArch64ISD", "::", "Ret", ":", "return", "\"AArch64ISD::Ret\"", ";", "case", "AArch64ISD", "::", "SBFX", ":", "return", "\"AArch64ISD::SBFX\"", ";", "case", "AArch64ISD", "::", "SELECT_CC", ":", "return", "\"AArch64ISD::SELECT_CC\"", ";", "case", "AArch64ISD", "::", "SETCC", ":", "return", "\"AArch64ISD::SETCC\"", ";", "case", "AArch64ISD", "::", "TC_RETURN", ":", "return", "\"AArch64ISD::TC_RETURN\"", ";", "case", "AArch64ISD", "::", "THREAD_POINTER", ":", "return", "\"AArch64ISD::THREAD_POINTER\"", ";", "case", "AArch64ISD", "::", "TLSDESCCALL", ":", "return", "\"AArch64ISD::TLSDESCCALL\"", ";", "case", "AArch64ISD", "::", "WrapperLarge", ":", "return", "\"AArch64ISD::WrapperLarge\"", ";", "case", "AArch64ISD", "::", "WrapperSmall", ":", "return", "\"AArch64ISD::WrapperSmall\"", ";", "case", "AArch64ISD", "::", "NEON_BSL", ":", "return", "\"AArch64ISD::NEON_BSL\"", ";", "case", "AArch64ISD", "::", "NEON_MOVIMM", ":", "return", "\"AArch64ISD::NEON_MOVIMM\"", ";", "case", "AArch64ISD", "::", "NEON_MVNIMM", ":", "return", "\"AArch64ISD::NEON_MVNIMM\"", ";", "case", "AArch64ISD", "::", "NEON_FMOVIMM", ":", "return", "\"AArch64ISD::NEON_FMOVIMM\"", ";", "case", "AArch64ISD", "::", "NEON_CMP", ":", "return", "\"AArch64ISD::NEON_CMP\"", ";", "case", "AArch64ISD", "::", "NEON_CMPZ", ":", "return", "\"AArch64ISD::NEON_CMPZ\"", ";", "case", "AArch64ISD", "::", "NEON_TST", ":", "return", "\"AArch64ISD::NEON_TST\"", ";", "default", ":", "return", "NULL", ";", "}", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["AArch64", "AArch64", "AArch64ISD::BR_CC", "\"AArch64ISD::BR_CC\"", "AArch64ISD::Call", "\"AArch64ISD::Call\"", "AArch64ISD::FPMOV", "\"AArch64ISD::FPMOV\"", "AArch64ISD::GOTLoad", "\"AArch64ISD::GOTLoad\"", "AArch64ISD::BFI", "\"AArch64ISD::BFI\"", "AArch64ISD::EXTR", "\"AArch64ISD::EXTR\"", "AArch64ISD::Ret", "\"AArch64ISD::Ret\"", "AArch64ISD::SBFX", "\"AArch64ISD::SBFX\"", "AArch64ISD::SELECT_CC", "\"AArch64ISD::SELECT_CC\"", "AArch64ISD::SETCC", "\"AArch64ISD::SETCC\"", "AArch64ISD::TC_RETURN", "\"AArch64ISD::TC_RETURN\"", "AArch64ISD::THREAD_POINTER", "\"AArch64ISD::THREAD_POINTER\"", "AArch64ISD::TLSDESCCALL", "\"AArch64ISD::TLSDESCCALL\"", "AArch64ISD::WrapperLarge", "\"AArch64ISD::WrapperLarge\"", "AArch64ISD::WrapperSmall", "\"AArch64ISD::WrapperSmall\"", "AArch64ISD::NEON_BSL", "\"AArch64ISD::NEON_BSL\"", "AArch64ISD::NEON_MOVIMM", "\"AArch64ISD::NEON_MOVIMM\"", "AArch64ISD::NEON_MVNIMM", "\"AArch64ISD::NEON_MVNIMM\"", "AArch64ISD::NEON_FMOVIMM", "\"AArch64ISD::NEON_FMOVIMM\"", "AArch64ISD::NEON_CMP", "\"AArch64ISD::NEON_CMP\"", "AArch64ISD::NEON_CMPZ", "\"AArch64ISD::NEON_CMPZ\"", "AArch64ISD::NEON_TST", "\"AArch64ISD::NEON_TST\""], "File": "AArch64ISelLowering21", "Func": "getTargetNodeName", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3455, "Length": 200, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "aarch64_branch_cost", "(", "bool", "speed_p", ",", "bool", "predictable_p", ")", "{", "const", "struct", "cpu_branch_cost", "*", "branch_costs", "=", "aarch64_tune_params", ".", "branch_costs", ";", "if", "(", "!", "speed_p", "||", "predictable_p", ")", "return", "branch_costs", "->", "predictable", ";", "else", "return", "branch_costs", "->", "unpredictable", ";", "}", ""], "natrual_language": ["Return", "the", "cost", "of", "a", "branch", ".", "If", "SPEED_P", "is", "true", "then", "the", "compiler", "is", "optimizing", "for", "speed", ".", "If", "PREDICTABLE_P", "is", "true", "then", "the", "branch", "is", "predicted", "to", "be", "taken", "."], "TS_V_token": ["aarch64"], "File": "aarch64", "Func": "aarch64_branch_cost", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3456, "Length": 39, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "isShiftedMask", "(", "uint64_t", "I", ",", "uint64_t", "&", "Pos", ",", "uint64_t", "&", "Size", ")", "{", "if", "(", "!", "isShiftedMask_64", "(", "I", ")", ")", "return", "false", ";", "Size", "=", "countPopulation", "(", "I", ")", ";", "Pos", "=", "countTrailingZeros", "(", "I", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "this", "APInt", "value", "contains", "a", "non-empty", "sequence", "of", "ones", "with", "the", "remainder", "zero", "."], "TS_V_token": ["Mips"], "File": "MipsISelLowering (2)4", "Func": "isShiftedMask", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3457, "Length": 45, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Mips16FrameLowering", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "return", "true", ";", "}", ""], "natrual_language": ["restoreCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "restore", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "load", "instructions", "via", "loadRegToStackSlot", "(", ")", "."], "TS_V_token": ["Mips", "Mips"], "File": "Mips16FrameLowering", "Func": "restoreCalleeSavedRegisters", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3458, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "IA64AsmPrinter", "::", "doFinalization", "(", "Module", "&", "M", ")", "{", "for", "(", "Module", "::", "const_global_iterator", "I", "=", "M", ".", "global_begin", "(", ")", ",", "E", "=", "M", ".", "global_end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "printModuleLevelGV", "(", "I", ")", ";", "O", "<<", "\"\\n\\n// br.call targets referenced (and not defined) above: \\n\"", ";", "for", "(", "std", "::", "set", "<", "std", "::", "string", ">", "::", "iterator", "i", "=", "ExternalFunctionNames", ".", "begin", "(", ")", ",", "e", "=", "ExternalFunctionNames", ".", "end", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "O", "<<", "\"\\t.global \"", "<<", "*", "i", "<<", "\"\\n\\t.type \"", "<<", "*", "i", "<<", "\", @function\\n\"", ";", "}", "O", "<<", "\"\\n\\n\"", ";", "O", "<<", "\"\\n\\n// (external) symbols referenced (and not defined) above: \\n\"", ";", "for", "(", "std", "::", "set", "<", "std", "::", "string", ">", "::", "iterator", "i", "=", "ExternalObjectNames", ".", "begin", "(", ")", ",", "e", "=", "ExternalObjectNames", ".", "end", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "O", "<<", "\"\\t.global \"", "<<", "*", "i", "<<", "\"\\n\\t.type \"", "<<", "*", "i", "<<", "\", @object\\n\"", ";", "}", "O", "<<", "\"\\n\\n\"", ";", "return", "AsmPrinter", "::", "doFinalization", "(", "M", ")", ";", "}", ""], "natrual_language": ["doFinalization", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "any", "necessary", "clean", "up", "after", "all", "passes", "have", "run", "."], "TS_V_token": ["IA64", "IA64", "\"\\n\\n// br.call targets referenced (and not defined) above: \\n\"", "\"\\t.global \"", "\"\\n\\t.type \"", "\", @function\\n\"", "\"\\n\\n\"", "\"\\n\\n// (external) symbols referenced (and not defined) above: \\n\"", "\"\\t.global \"", "\"\\n\\t.type \"", "\", @object\\n\"", "\"\\n\\n\""], "File": "IA64AsmPrinter", "Func": "doFinalization", "Target": "IA64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3459, "Length": 170, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "rs6000_compute_pressure_classes", "(", "enum", "reg_class", "*", "pressure_classes", ")", "{", "int", "n", ";", "n", "=", "0", ";", "pressure_classes", "[", "n", "++", "]", "=", "GENERAL_REGS", ";", "if", "(", "TARGET_ALTIVEC", ")", "pressure_classes", "[", "n", "++", "]", "=", "ALTIVEC_REGS", ";", "if", "(", "TARGET_VSX", ")", "pressure_classes", "[", "n", "++", "]", "=", "VSX_REGS", ";", "else", "{", "if", "(", "TARGET_HARD_FLOAT", ")", "pressure_classes", "[", "n", "++", "]", "=", "FLOAT_REGS", ";", "}", "pressure_classes", "[", "n", "++", "]", "=", "CR_REGS", ";", "pressure_classes", "[", "n", "++", "]", "=", "SPECIAL_REGS", ";", "return", "n", ";", "}", ""], "natrual_language": ["Compute", "register", "pressure", "classes", ".", "We", "implement", "the", "target", "hook", "to", "avoid", "IRA", "picking", "something", "like", "GEN_OR_FLOAT_REGS", "as", "a", "pressure", "class", ",", "which", "can", "lead", "to", "incorrect", "estimates", "of", "number", "of", "available", "registers", "and", "therefor", "increased", "register", "pressure/spill", "."], "TS_V_token": ["rs6000", "0"], "File": "rs6000", "Func": "rs6000_compute_pressure_classes", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3460, "Length": 84, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "iq2000_add_large_offset_to_sp", "(", "HOST_WIDE_INT", "offset", ")", "{", "rtx", "reg", "=", "gen_rtx_REG", "(", "Pmode", ",", "IQ2000_TEMP2_REGNUM", ")", ";", "rtx", "offset_rtx", "=", "GEN_INT", "(", "offset", ")", ";", "emit_move_insn", "(", "reg", ",", "offset_rtx", ")", ";", "emit_insn", "(", "gen_addsi3", "(", "reg", ",", "reg", ",", "stack_pointer_rtx", ")", ")", ";", "return", "reg", ";", "}", ""], "natrual_language": ["Emit", "instructions", "to", "load", "the", "value", "(", "SP", "+", "OFFSET", ")", "into", "IQ2000_TEMP2_REGNUM", "and", "return", "an", "rtl", "expression", "for", "the", "register", ".", "Write", "the", "assembly", "instructions", "directly", "to", "FILE", "if", "it", "is", "not", "null", ",", "otherwise", "emit", "them", "as", "rtl", ".", "This", "function", "is", "a", "subroutine", "of", "save_restore_insns", ".", "It", "is", "used", "when", "OFFSET", "is", "too", "large", "to", "add", "in", "a", "single", "instruction", "."], "TS_V_token": ["iq2000"], "File": "iq2000", "Func": "iq2000_add_large_offset_to_sp", "Target": "iq2000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3461, "Length": 49, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "EVT", "X86TargetLowering", "::", "getOptimalMemOpType", "(", "uint64_t", "Size", ",", "unsigned", "DstAlign", ",", "unsigned", "SrcAlign", ",", "bool", "IsMemset", ",", "bool", "ZeroMemset", ",", "bool", "MemcpyStrSrc", ",", "MachineFunction", "&", "MF", ")", "const", "{", "const", "Function", "*", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "if", "(", "(", "!", "IsMemset", "||", "ZeroMemset", ")", "&&", "!", "F", "->", "getAttributes", "(", ")", ".", "hasAttribute", "(", "AttributeSet", "::", "FunctionIndex", ",", "Attribute", "::", "NoImplicitFloat", ")", ")", "{", "if", "(", "Size", ">=", "16", "&&", "(", "Subtarget", "->", "isUnalignedMemAccessFast", "(", ")", "||", "(", "(", "DstAlign", "==", "0", "||", "DstAlign", ">=", "16", ")", "&&", "(", "SrcAlign", "==", "0", "||", "SrcAlign", ">=", "16", ")", ")", ")", ")", "{", "if", "(", "Size", ">=", "32", ")", "{", "if", "(", "Subtarget", "->", "hasInt256", "(", ")", ")", "return", "MVT", "::", "v8i32", ";", "if", "(", "Subtarget", "->", "hasFp256", "(", ")", ")", "return", "MVT", "::", "v8f32", ";", "}", "if", "(", "Subtarget", "->", "hasSSE2", "(", ")", ")", "return", "MVT", "::", "v4i32", ";", "if", "(", "Subtarget", "->", "hasSSE1", "(", ")", ")", "return", "MVT", "::", "v4f32", ";", "}", "else", "if", "(", "!", "MemcpyStrSrc", "&&", "Size", ">=", "8", "&&", "!", "Subtarget", "->", "is64Bit", "(", ")", "&&", "Subtarget", "->", "hasSSE2", "(", ")", ")", "{", "return", "MVT", "::", "f64", ";", "}", "}", "if", "(", "Subtarget", "->", "is64Bit", "(", ")", "&&", "Size", ">=", "8", ")", "return", "MVT", "::", "i64", ";", "return", "MVT", "::", "i32", ";", "}", ""], "natrual_language": ["It", "returns", "EVT", ":", ":Other", "if", "the", "type", "should", "be", "determined", "using", "generic", "target-independent", "logic", "."], "TS_V_token": ["X86", "X86", "16", "0", "16", "0", "16", "32", "MVT::v8i32", "MVT::v8f32", "MVT::v4i32", "MVT::v4f32", "8", "MVT::f64", "8", "MVT::i64", "MVT::i32"], "File": "X86ISelLowering (2)", "Func": "getOptimalMemOpType", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3462, "Length": 220, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCAIXAsmPrinter", "::", "SetupMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "CurrentFnDescSym", "=", "getSymbol", "(", "&", "MF", ".", "getFunction", "(", ")", ")", ";", "MCSectionXCOFF", "*", "FnDescSec", "=", "cast", "<", "MCSectionXCOFF", ">", "(", "getObjFileLowering", "(", ")", ".", "getSectionForFunctionDescriptor", "(", "CurrentFnDescSym", ")", ")", ";", "cast", "<", "MCSymbolXCOFF", ">", "(", "CurrentFnDescSym", ")", "->", "setContainingCsect", "(", "FnDescSec", ")", ";", "return", "AsmPrinter", "::", "SetupMachineFunction", "(", "MF", ")", ";", "}", ""], "natrual_language": ["This", "should", "be", "called", "when", "a", "new", "MachineFunction", "is", "being", "processed", "from", "runOnMachineFunction", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCAsmPrinter124", "Func": "SetupMachineFunction", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3463, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "AArch64TargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "Opcode", ")", "{", "case", "AArch64ISD", "::", "BR_CC", ":", "return", "\"AArch64ISD::BR_CC\"", ";", "case", "AArch64ISD", "::", "Call", ":", "return", "\"AArch64ISD::Call\"", ";", "case", "AArch64ISD", "::", "FPMOV", ":", "return", "\"AArch64ISD::FPMOV\"", ";", "case", "AArch64ISD", "::", "GOTLoad", ":", "return", "\"AArch64ISD::GOTLoad\"", ";", "case", "AArch64ISD", "::", "BFI", ":", "return", "\"AArch64ISD::BFI\"", ";", "case", "AArch64ISD", "::", "EXTR", ":", "return", "\"AArch64ISD::EXTR\"", ";", "case", "AArch64ISD", "::", "Ret", ":", "return", "\"AArch64ISD::Ret\"", ";", "case", "AArch64ISD", "::", "SBFX", ":", "return", "\"AArch64ISD::SBFX\"", ";", "case", "AArch64ISD", "::", "SELECT_CC", ":", "return", "\"AArch64ISD::SELECT_CC\"", ";", "case", "AArch64ISD", "::", "SETCC", ":", "return", "\"AArch64ISD::SETCC\"", ";", "case", "AArch64ISD", "::", "TC_RETURN", ":", "return", "\"AArch64ISD::TC_RETURN\"", ";", "case", "AArch64ISD", "::", "THREAD_POINTER", ":", "return", "\"AArch64ISD::THREAD_POINTER\"", ";", "case", "AArch64ISD", "::", "TLSDESCCALL", ":", "return", "\"AArch64ISD::TLSDESCCALL\"", ";", "case", "AArch64ISD", "::", "WrapperLarge", ":", "return", "\"AArch64ISD::WrapperLarge\"", ";", "case", "AArch64ISD", "::", "WrapperSmall", ":", "return", "\"AArch64ISD::WrapperSmall\"", ";", "default", ":", "return", "NULL", ";", "}", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["AArch64", "AArch64", "AArch64ISD::BR_CC", "\"AArch64ISD::BR_CC\"", "AArch64ISD::Call", "\"AArch64ISD::Call\"", "AArch64ISD::FPMOV", "\"AArch64ISD::FPMOV\"", "AArch64ISD::GOTLoad", "\"AArch64ISD::GOTLoad\"", "AArch64ISD::BFI", "\"AArch64ISD::BFI\"", "AArch64ISD::EXTR", "\"AArch64ISD::EXTR\"", "AArch64ISD::Ret", "\"AArch64ISD::Ret\"", "AArch64ISD::SBFX", "\"AArch64ISD::SBFX\"", "AArch64ISD::SELECT_CC", "\"AArch64ISD::SELECT_CC\"", "AArch64ISD::SETCC", "\"AArch64ISD::SETCC\"", "AArch64ISD::TC_RETURN", "\"AArch64ISD::TC_RETURN\"", "AArch64ISD::THREAD_POINTER", "\"AArch64ISD::THREAD_POINTER\"", "AArch64ISD::TLSDESCCALL", "\"AArch64ISD::TLSDESCCALL\"", "AArch64ISD::WrapperLarge", "\"AArch64ISD::WrapperLarge\"", "AArch64ISD::WrapperSmall", "\"AArch64ISD::WrapperSmall\""], "File": "AArch64ISelLowering123", "Func": "getTargetNodeName", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3464, "Length": 144, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "X86TargetLowering", "::", "PerformDAGCombine", "(", "SDNode", "*", "N", ",", "DAGCombinerInfo", "&", "DCI", ")", "const", "{", "SelectionDAG", "&", "DAG", "=", "DCI", ".", "DAG", ";", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "VECTOR_SHUFFLE", ":", "return", "PerformShuffleCombine", "(", "N", ",", "DAG", ",", "*", "this", ")", ";", "case", "ISD", "::", "SELECT", ":", "return", "PerformSELECTCombine", "(", "N", ",", "DAG", ",", "Subtarget", ")", ";", "case", "X86ISD", "::", "CMOV", ":", "return", "PerformCMOVCombine", "(", "N", ",", "DAG", ",", "DCI", ")", ";", "case", "ISD", "::", "MUL", ":", "return", "PerformMulCombine", "(", "N", ",", "DAG", ",", "DCI", ")", ";", "case", "ISD", "::", "SHL", ":", "case", "ISD", "::", "SRA", ":", "case", "ISD", "::", "SRL", ":", "return", "PerformShiftCombine", "(", "N", ",", "DAG", ",", "Subtarget", ")", ";", "case", "ISD", "::", "OR", ":", "return", "PerformOrCombine", "(", "N", ",", "DAG", ",", "Subtarget", ")", ";", "case", "ISD", "::", "STORE", ":", "return", "PerformSTORECombine", "(", "N", ",", "DAG", ",", "Subtarget", ")", ";", "case", "X86ISD", "::", "FXOR", ":", "case", "X86ISD", "::", "FOR", ":", "return", "PerformFORCombine", "(", "N", ",", "DAG", ")", ";", "case", "X86ISD", "::", "FAND", ":", "return", "PerformFANDCombine", "(", "N", ",", "DAG", ")", ";", "case", "X86ISD", "::", "BT", ":", "return", "PerformBTCombine", "(", "N", ",", "DAG", ",", "DCI", ")", ";", "case", "X86ISD", "::", "VZEXT_MOVL", ":", "return", "PerformVZEXT_MOVLCombine", "(", "N", ",", "DAG", ")", ";", "case", "ISD", "::", "MEMBARRIER", ":", "return", "PerformMEMBARRIERCombine", "(", "N", ",", "DAG", ")", ";", "case", "ISD", "::", "ZERO_EXTEND", ":", "return", "PerformZExtCombine", "(", "N", ",", "DAG", ")", ";", "}", "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": ["X86", "X86", "ISD::VECTOR_SHUFFLE", "ISD::SELECT", "X86ISD::CMOV", "ISD::MUL", "ISD::SHL", "ISD::SRA", "ISD::SRL", "ISD::OR", "ISD::STORE", "X86ISD::FXOR", "X86ISD::FOR", "X86ISD::FAND", "X86ISD::BT", "X86ISD::VZEXT_MOVL", "ISD::MEMBARRIER", "ISD::ZERO_EXTEND"], "File": "X86ISelLowering144", "Func": "PerformDAGCombine", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3465, "Length": 244, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "enableEarlyIfConversion", "(", ")", "const", "override", "{", "return", "true", ";", "}", ""], "natrual_language": ["Enable", "the", "use", "of", "the", "early", "if", "conversion", "pass", "."], "TS_V_token": ["SystemZ"], "File": "SystemZSubtarget", "Func": "enableEarlyIfConversion", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3466, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "aarch64_sve_vector_inc_dec_immediate_p", "(", "rtx", "x", ")", "{", "return", "aarch64_sve_vector_inc_dec_immediate_p", "(", "x", ",", "NULL", ",", "NULL", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "X", "is", "a", "valid", "immediate", "for", "an", "SVE", "vector", "INC", "or", "DEC", "instruction", "."], "TS_V_token": ["aarch64"], "File": "aarch64", "Func": "aarch64_sve_vector_inc_dec_immediate_p", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3467, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "MipsRegisterInfo", "*", "getRegisterInfo", "(", ")", "const", "{", "return", "&", "InstrInfo", "->", "getRegisterInfo", "(", ")", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsTargetMachine1", "Func": "getRegisterInfo", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3468, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64TargetLowering", "::", "isExtFreeImpl", "(", "const", "Instruction", "*", "Ext", ")", "const", "{", "if", "(", "isa", "<", "FPExtInst", ">", "(", "Ext", ")", ")", "return", "false", ";", "if", "(", "Ext", "->", "getType", "(", ")", "->", "isVectorTy", "(", ")", ")", "return", "false", ";", "for", "(", "const", "Use", "&", "U", ":", "Ext", "->", "uses", "(", ")", ")", "{", "const", "Instruction", "*", "Instr", "=", "cast", "<", "Instruction", ">", "(", "U", ".", "getUser", "(", ")", ")", ";", "switch", "(", "Instr", "->", "getOpcode", "(", ")", ")", "{", "case", "Instruction", "::", "Shl", ":", "if", "(", "!", "isa", "<", "ConstantInt", ">", "(", "Instr", "->", "getOperand", "(", "1", ")", ")", ")", "return", "false", ";", "break", ";", "case", "Instruction", "::", "GetElementPtr", ":", "{", "gep_type_iterator", "GTI", "=", "gep_type_begin", "(", "Instr", ")", ";", "std", "::", "advance", "(", "GTI", ",", "U", ".", "getOperandNo", "(", ")", ")", ";", "Type", "*", "IdxTy", "=", "*", "GTI", ";", "uint64_t", "ShiftAmt", "=", "countTrailingZeros", "(", "getDataLayout", "(", ")", "->", "getTypeStoreSizeInBits", "(", "IdxTy", ")", ")", "-", "3", ";", "if", "(", "ShiftAmt", "==", "0", "||", "ShiftAmt", ">", "4", ")", "return", "false", ";", "break", ";", "}", "case", "Instruction", "::", "Trunc", ":", "if", "(", "Instr", "->", "getType", "(", ")", "==", "Ext", "->", "getOperand", "(", "0", ")", "->", "getType", "(", ")", ")", "continue", ";", "default", ":", "return", "false", ";", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "extension", "represented", "by", "I", "is", "free", "."], "TS_V_token": ["AArch64", "AArch64", "1", "3", "0", "4", "0"], "File": "AArch64ISelLowering116", "Func": "isExtFreeImpl", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3469, "Length": 210, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ScheduleHazardRecognizer", "*", "PPCInstrInfo", "::", "CreateTargetHazardRecognizer", "(", "const", "TargetMachine", "*", "TM", ",", "const", "ScheduleDAG", "*", "DAG", ")", "const", "{", "unsigned", "Directive", "=", "TM", "->", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ".", "getDarwinDirective", "(", ")", ";", "if", "(", "Directive", "==", "PPC", "::", "DIR_440", ")", "{", "const", "InstrItineraryData", "*", "II", "=", "TM", "->", "getInstrItineraryData", "(", ")", ";", "return", "new", "PPCHazardRecognizer440", "(", "II", ",", "DAG", ")", ";", "}", "return", "TargetInstrInfoImpl", "::", "CreateTargetHazardRecognizer", "(", "TM", ",", "DAG", ")", ";", "}", ""], "natrual_language": ["Allocate", "and", "return", "a", "hazard", "recognizer", "to", "use", "for", "this", "target", "when", "scheduling", "the", "machine", "instructions", "before", "register", "allocation", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC::DIR_440", "PPC"], "File": "PPCInstrInfo134", "Func": "CreateTargetHazardRecognizer", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3470, "Length": 75, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "ARMOperand", "*", "CreateMem", "(", "unsigned", "BaseRegNum", ",", "const", "MCConstantExpr", "*", "OffsetImm", ",", "unsigned", "OffsetRegNum", ",", "ARM_AM", "::", "ShiftOpc", "ShiftType", ",", "unsigned", "ShiftImm", ",", "unsigned", "Alignment", ",", "bool", "isNegative", ",", "SMLoc", "S", ",", "SMLoc", "E", ",", "SMLoc", "AlignmentLoc", "=", "SMLoc", "(", ")", ")", "{", "ARMOperand", "*", "Op", "=", "new", "ARMOperand", "(", "k_Memory", ")", ";", "Op", "->", "Memory", ".", "BaseRegNum", "=", "BaseRegNum", ";", "Op", "->", "Memory", ".", "OffsetImm", "=", "OffsetImm", ";", "Op", "->", "Memory", ".", "OffsetRegNum", "=", "OffsetRegNum", ";", "Op", "->", "Memory", ".", "ShiftType", "=", "ShiftType", ";", "Op", "->", "Memory", ".", "ShiftImm", "=", "ShiftImm", ";", "Op", "->", "Memory", ".", "Alignment", "=", "Alignment", ";", "Op", "->", "Memory", ".", "isNegative", "=", "isNegative", ";", "Op", "->", "StartLoc", "=", "S", ";", "Op", "->", "EndLoc", "=", "E", ";", "Op", "->", "AlignmentLoc", "=", "AlignmentLoc", ";", "return", "Op", ";", "}", ""], "natrual_language": ["Create", "a", "generalized", "memory", "operand", "."], "TS_V_token": ["ARM", "ARM", "ARM_AM::ShiftOpc", "ARM", "ARM"], "File": "ARMAsmParser67", "Func": "CreateMem", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3471, "Length": 132, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "x86_emit_floatuns", "(", "rtx", "operands", "[", "2", "]", ")", "{", "rtx", "neglab", ",", "donelab", ",", "i0", ",", "i1", ",", "f0", ",", "in", ",", "out", ";", "enum", "machine_mode", "mode", ",", "inmode", ";", "inmode", "=", "GET_MODE", "(", "operands", "[", "1", "]", ")", ";", "gcc_assert", "(", "inmode", "==", "SImode", "||", "inmode", "==", "DImode", ")", ";", "out", "=", "operands", "[", "0", "]", ";", "in", "=", "force_reg", "(", "inmode", ",", "operands", "[", "1", "]", ")", ";", "mode", "=", "GET_MODE", "(", "out", ")", ";", "neglab", "=", "gen_label_rtx", "(", ")", ";", "donelab", "=", "gen_label_rtx", "(", ")", ";", "i1", "=", "gen_reg_rtx", "(", "Pmode", ")", ";", "f0", "=", "gen_reg_rtx", "(", "mode", ")", ";", "emit_cmp_and_jump_insns", "(", "in", ",", "const0_rtx", ",", "LT", ",", "const0_rtx", ",", "Pmode", ",", "0", ",", "neglab", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "out", ",", "gen_rtx_FLOAT", "(", "mode", ",", "in", ")", ")", ")", ";", "emit_jump_insn", "(", "gen_jump", "(", "donelab", ")", ")", ";", "emit_barrier", "(", ")", ";", "emit_label", "(", "neglab", ")", ";", "i0", "=", "expand_simple_binop", "(", "Pmode", ",", "LSHIFTRT", ",", "in", ",", "const1_rtx", ",", "NULL", ",", "1", ",", "OPTAB_DIRECT", ")", ";", "i1", "=", "expand_simple_binop", "(", "Pmode", ",", "AND", ",", "in", ",", "const1_rtx", ",", "NULL", ",", "1", ",", "OPTAB_DIRECT", ")", ";", "i0", "=", "expand_simple_binop", "(", "Pmode", ",", "IOR", ",", "i0", ",", "i1", ",", "i0", ",", "1", ",", "OPTAB_DIRECT", ")", ";", "expand_float", "(", "f0", ",", "i0", ",", "0", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "out", ",", "gen_rtx_PLUS", "(", "mode", ",", "f0", ",", "f0", ")", ")", ")", ";", "emit_label", "(", "donelab", ")", ";", "}", ""], "natrual_language": ["Generate", "an", "unsigned", "DImode/SImode", "to", "FP", "conversion", ".", "This", "is", "the", "same", "code", "optabs", "would", "emit", "if", "we", "did", "n't", "have", "TFmode", "patterns", "."], "TS_V_token": ["i386", "2", "1", "0", "1", "0", "1", "1", "1", "0"], "File": "i3863", "Func": "x86_emit_floatuns", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3472, "Length": 246, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ix86_expand_round_sse4", "(", "rtx", "op0", ",", "rtx", "op1", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "op0", ")", ";", "rtx", "e1", ",", "e2", ",", "res", ",", "half", ";", "const", "struct", "real_format", "*", "fmt", ";", "REAL_VALUE_TYPE", "pred_half", ",", "half_minus_pred_half", ";", "rtx", "(", "*", "gen_copysign", ")", "(", "rtx", ",", "rtx", ",", "rtx", ")", ";", "rtx", "(", "*", "gen_round", ")", "(", "rtx", ",", "rtx", ",", "rtx", ")", ";", "switch", "(", "mode", ")", "{", "case", "SFmode", ":", "gen_copysign", "=", "gen_copysignsf3", ";", "gen_round", "=", "gen_sse4_1_roundsf2", ";", "break", ";", "case", "DFmode", ":", "gen_copysign", "=", "gen_copysigndf3", ";", "gen_round", "=", "gen_sse4_1_rounddf2", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "fmt", "=", "REAL_MODE_FORMAT", "(", "mode", ")", ";", "real_2expN", "(", "&", "half_minus_pred_half", ",", "-", "(", "fmt", "->", "p", ")", "-", "1", ",", "mode", ")", ";", "real_arithmetic", "(", "&", "pred_half", ",", "MINUS_EXPR", ",", "&", "dconsthalf", ",", "&", "half_minus_pred_half", ")", ";", "half", "=", "const_double_from_real_value", "(", "pred_half", ",", "mode", ")", ";", "e1", "=", "gen_reg_rtx", "(", "mode", ")", ";", "emit_insn", "(", "gen_copysign", "(", "e1", ",", "half", ",", "op1", ")", ")", ";", "e2", "=", "expand_simple_binop", "(", "mode", ",", "PLUS", ",", "op1", ",", "e1", ",", "NULL_RTX", ",", "0", ",", "OPTAB_DIRECT", ")", ";", "res", "=", "gen_reg_rtx", "(", "mode", ")", ";", "emit_insn", "(", "gen_round", "(", "res", ",", "e2", ",", "GEN_INT", "(", "ROUND_TRUNC", ")", ")", ")", ";", "emit_move_insn", "(", "op0", ",", "res", ")", ";", "}", ""], "natrual_language": ["Expand", "SSE", "sequence", "for", "computing", "round", "from", "OP1", "storing", "into", "OP0", "using", "sse4", "round", "insn", "."], "TS_V_token": ["i386", "1", "0"], "File": "i3865", "Func": "ix86_expand_round_sse4", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3473, "Length": 217, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMTargetLowering", "::", "SimplifyDemandedBitsForTargetNode", "(", "SDValue", "Op", ",", "const", "APInt", "&", "OriginalDemandedBits", ",", "const", "APInt", "&", "OriginalDemandedElts", ",", "KnownBits", "&", "Known", ",", "TargetLoweringOpt", "&", "TLO", ",", "unsigned", "Depth", ")", "const", "{", "unsigned", "Opc", "=", "Op", ".", "getOpcode", "(", ")", ";", "switch", "(", "Opc", ")", "{", "case", "ARMISD", "::", "ASRL", ":", "case", "ARMISD", "::", "LSRL", ":", "{", "if", "(", "Op", ".", "getResNo", "(", ")", "==", "0", "&&", "!", "Op", "->", "hasAnyUseOfValue", "(", "1", ")", "&&", "isa", "<", "ConstantSDNode", ">", "(", "Op", "->", "getOperand", "(", "2", ")", ")", ")", "{", "unsigned", "ShAmt", "=", "Op", "->", "getConstantOperandVal", "(", "2", ")", ";", "if", "(", "ShAmt", "<", "32", "&&", "OriginalDemandedBits", ".", "isSubsetOf", "(", "APInt", "::", "getAllOnes", "(", "32", ")", "<<", "(", "32", "-", "ShAmt", ")", ")", ")", "return", "TLO", ".", "CombineTo", "(", "Op", ",", "TLO", ".", "DAG", ".", "getNode", "(", "ISD", "::", "SHL", ",", "SDLoc", "(", "Op", ")", ",", "MVT", "::", "i32", ",", "Op", ".", "getOperand", "(", "1", ")", ",", "TLO", ".", "DAG", ".", "getConstant", "(", "32", "-", "ShAmt", ",", "SDLoc", "(", "Op", ")", ",", "MVT", "::", "i32", ")", ")", ")", ";", "}", "break", ";", "}", "}", "return", "TargetLowering", "::", "SimplifyDemandedBitsForTargetNode", "(", "Op", ",", "OriginalDemandedBits", ",", "OriginalDemandedElts", ",", "Known", ",", "TLO", ",", "Depth", ")", ";", "}", ""], "natrual_language": ["Attempt", "to", "simplify", "any", "target", "nodes", "based", "on", "the", "demanded", "bits/elts", ",", "returning", "true", "on", "success", "."], "TS_V_token": ["ARM", "ARM", "ARMISD::ASRL", "ARMISD::LSRL", "0", "1", "2", "2", "32", "32", "32", "ISD::SHL", "MVT::i32", "1", "32", "MVT::i32"], "File": "ARMISelLowering (2)5", "Func": "SimplifyDemandedBitsForTargetNode", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3474, "Length": 201, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "tree", "loongarch_builtin_decl", "(", "unsigned", "int", "code", ",", "bool", "initialize_p", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "code", ">=", "ARRAY_SIZE", "(", "loongarch_builtins", ")", ")", "return", "error_mark_node", ";", "return", "loongarch_builtin_decls", "[", "code", "]", ";", "}", ""], "natrual_language": ["Implement", "TARGET_BUILTIN_DECL", "."], "TS_V_token": ["loongarch"], "File": "loongarch-builtins", "Func": "loongarch_builtin_decl", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3475, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCMIPeephole", "::", "initialize", "(", "MachineFunction", "&", "MFParm", ")", "{", "MF", "=", "&", "MFParm", ";", "MRI", "=", "&", "MF", "->", "getRegInfo", "(", ")", ";", "MDT", "=", "&", "getAnalysis", "<", "MachineDominatorTree", ">", "(", ")", ";", "TII", "=", "MF", "->", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"*** PowerPC MI peephole pass ***\\n\\n\"", ")", ";", "LLVM_DEBUG", "(", "MF", "->", "dump", "(", ")", ")", ";", "}", ""], "natrual_language": ["Initialize", "the", "strategy", "after", "building", "the", "DAG", "for", "a", "new", "region", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "\"*** PowerPC MI peephole pass ***\\n\\n\""], "File": "PPCMIPeephole10", "Func": "initialize", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3476, "Length": 68, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "AArch64SelectionDAGInfo", "::", "EmitTargetCodeForMemset", "(", "SelectionDAG", "&", "DAG", ",", "const", "SDLoc", "&", "dl", ",", "SDValue", "Chain", ",", "SDValue", "Dst", ",", "SDValue", "Src", ",", "SDValue", "Size", ",", "Align", "Alignment", ",", "bool", "isVolatile", ",", "MachinePointerInfo", "DstPtrInfo", ")", "const", "{", "ConstantSDNode", "*", "V", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Src", ")", ";", "ConstantSDNode", "*", "SizeValue", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Size", ")", ";", "const", "AArch64Subtarget", "&", "STI", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ";", "const", "char", "*", "bzeroName", "=", "(", "V", "&&", "V", "->", "isZero", "(", ")", ")", "?", "DAG", ".", "getTargetLoweringInfo", "(", ")", ".", "getLibcallName", "(", "RTLIB", "::", "BZERO", ")", ":", "nullptr", ";", "if", "(", "bzeroName", "&&", "(", "!", "SizeValue", "||", "SizeValue", "->", "getZExtValue", "(", ")", ">", "256", ")", ")", "{", "const", "AArch64TargetLowering", "&", "TLI", "=", "*", "STI", ".", "getTargetLowering", "(", ")", ";", "EVT", "IntPtr", "=", "TLI", ".", "getPointerTy", "(", "DAG", ".", "getDataLayout", "(", ")", ")", ";", "Type", "*", "IntPtrTy", "=", "Type", "::", "getInt8PtrTy", "(", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "TargetLowering", "::", "ArgListTy", "Args", ";", "TargetLowering", "::", "ArgListEntry", "Entry", ";", "Entry", ".", "Node", "=", "Dst", ";", "Entry", ".", "Ty", "=", "IntPtrTy", ";", "Args", ".", "push_back", "(", "Entry", ")", ";", "Entry", ".", "Node", "=", "Size", ";", "Args", ".", "push_back", "(", "Entry", ")", ";", "TargetLowering", "::", "CallLoweringInfo", "CLI", "(", "DAG", ")", ";", "CLI", ".", "setDebugLoc", "(", "dl", ")", ".", "setChain", "(", "Chain", ")", ".", "setLibCallee", "(", "CallingConv", "::", "C", ",", "Type", "::", "getVoidTy", "(", "*", "DAG", ".", "getContext", "(", ")", ")", ",", "DAG", ".", "getExternalSymbol", "(", "bzeroName", ",", "IntPtr", ")", ",", "std", "::", "move", "(", "Args", ")", ")", ".", "setDiscardResult", "(", ")", ";", "std", "::", "pair", "<", "SDValue", ",", "SDValue", ">", "CallResult", "=", "TLI", ".", "LowerCallTo", "(", "CLI", ")", ";", "return", "CallResult", ".", "second", ";", "}", "return", "SDValue", "(", ")", ";", "}", ""], "natrual_language": ["Emit", "target-specific", "code", "that", "performs", "a", "memset", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "256", "AArch64"], "File": "AArch64SelectionDAGInfo7", "Func": "EmitTargetCodeForMemset", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3477, "Length": 299, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "string", "str", "(", ")", "const", "{", "std", "::", "string", "S", ";", "raw_string_ostream", "OS", "(", "S", ")", ";", "OS", "<<", "\"{\"", ";", "StartInst", "->", "print", "(", "OS", ",", "true", ")", ";", "OS", "<<", "\" -> \"", ";", "LastInst", "->", "print", "(", "OS", ",", "true", ")", ";", "if", "(", "KillInst", ")", "{", "OS", "<<", "\" (kill @ \"", ";", "KillInst", "->", "print", "(", "OS", ",", "true", ")", ";", "OS", "<<", "\")\"", ";", "}", "OS", "<<", "\"}\"", ";", "return", "OS", ".", "str", "(", ")", ";", "}", ""], "natrual_language": ["Return", "the", "twine", "contents", "as", "a", "std", ":", ":string", "."], "TS_V_token": ["AArch64", "\"{\"", "\" -> \"", "\" (kill @ \"", "\")\"", "\"}\""], "File": "AArch64A57FPLoadBalancing", "Func": "str", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3478, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "do_load_for_compare_from_addr", "(", "machine_mode", "mode", ",", "rtx", "dest", ",", "rtx", "addr", ",", "rtx", "orig_addr", ")", "{", "rtx", "mem", "=", "gen_rtx_MEM", "(", "mode", ",", "addr", ")", ";", "MEM_COPY_ATTRIBUTES", "(", "mem", ",", "orig_addr", ")", ";", "set_mem_size", "(", "mem", ",", "GET_MODE_SIZE", "(", "mode", ")", ")", ";", "do_load_for_compare", "(", "dest", ",", "mem", ",", "mode", ")", ";", "return", ";", "}", ""], "natrual_language": ["Prepare", "address", "and", "then", "do", "a", "load", ".", "MODE", "is", "the", "mode", "to", "use", "for", "the", "load", ".", "DEST", "is", "the", "destination", "register", "for", "the", "data", ".", "ADDR", "is", "the", "address", "to", "be", "loaded", ".", "ORIG_ADDR", "is", "the", "original", "address", "expression", "."], "TS_V_token": ["rs6000"], "File": "rs6000-string", "Func": "do_load_for_compare_from_addr", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3479, "Length": 56, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86InstrInfo", "::", "expandPostRAPseudo", "(", "MachineBasicBlock", "::", "iterator", "MI", ")", "const", "{", "bool", "HasAVX", "=", "Subtarget", ".", "hasAVX", "(", ")", ";", "MachineInstrBuilder", "MIB", "(", "*", "MI", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ",", "MI", ")", ";", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "case", "X86", "::", "MOV32r0", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "XOR32rr", ")", ")", ";", "case", "X86", "::", "MOV32r1", ":", "return", "expandMOV32r1", "(", "MIB", ",", "*", "this", ",", "false", ")", ";", "case", "X86", "::", "MOV32r_1", ":", "return", "expandMOV32r1", "(", "MIB", ",", "*", "this", ",", "true", ")", ";", "case", "X86", "::", "MOV32ImmSExti8", ":", "case", "X86", "::", "MOV64ImmSExti8", ":", "return", "ExpandMOVImmSExti8", "(", "MIB", ")", ";", "case", "X86", "::", "SETB_C8r", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "SBB8rr", ")", ")", ";", "case", "X86", "::", "SETB_C16r", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "SBB16rr", ")", ")", ";", "case", "X86", "::", "SETB_C32r", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "SBB32rr", ")", ")", ";", "case", "X86", "::", "SETB_C64r", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "SBB64rr", ")", ")", ";", "case", "X86", "::", "V_SET0", ":", "case", "X86", "::", "FsFLD0SS", ":", "case", "X86", "::", "FsFLD0SD", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "HasAVX", "?", "X86", "::", "VXORPSrr", ":", "X86", "::", "XORPSrr", ")", ")", ";", "case", "X86", "::", "AVX_SET0", ":", "assert", "(", "HasAVX", "&&", "\"AVX not supported\"", ")", ";", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "VXORPSYrr", ")", ")", ";", "case", "X86", "::", "AVX512_512_SET0", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "VPXORDZrr", ")", ")", ";", "case", "X86", "::", "V_SETALLONES", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "HasAVX", "?", "X86", "::", "VPCMPEQDrr", ":", "X86", "::", "PCMPEQDrr", ")", ")", ";", "case", "X86", "::", "AVX2_SETALLONES", ":", "return", "Expand2AddrUndef", "(", "MIB", ",", "get", "(", "X86", "::", "VPCMPEQDYrr", ")", ")", ";", "case", "X86", "::", "TEST8ri_NOREX", ":", "MI", "->", "setDesc", "(", "get", "(", "X86", "::", "TEST8ri", ")", ")", ";", "return", "true", ";", "case", "X86", "::", "KSET0B", ":", "case", "X86", "::", "KSET0W", ":", "return", "Expand2AddrKreg", "(", "MIB", ",", "get", "(", "X86", "::", "KXORWrr", ")", ",", "X86", "::", "K0", ")", ";", "case", "X86", "::", "KSET0D", ":", "return", "Expand2AddrKreg", "(", "MIB", ",", "get", "(", "X86", "::", "KXORDrr", ")", ",", "X86", "::", "K0", ")", ";", "case", "X86", "::", "KSET0Q", ":", "return", "Expand2AddrKreg", "(", "MIB", ",", "get", "(", "X86", "::", "KXORQrr", ")", ",", "X86", "::", "K0", ")", ";", "case", "X86", "::", "KSET1B", ":", "case", "X86", "::", "KSET1W", ":", "return", "Expand2AddrKreg", "(", "MIB", ",", "get", "(", "X86", "::", "KXNORWrr", ")", ",", "X86", "::", "K0", ")", ";", "case", "X86", "::", "KSET1D", ":", "return", "Expand2AddrKreg", "(", "MIB", ",", "get", "(", "X86", "::", "KXNORDrr", ")", ",", "X86", "::", "K0", ")", ";", "case", "X86", "::", "KSET1Q", ":", "return", "Expand2AddrKreg", "(", "MIB", ",", "get", "(", "X86", "::", "KXNORQrr", ")", ",", "X86", "::", "K0", ")", ";", "case", "TargetOpcode", "::", "LOAD_STACK_GUARD", ":", "expandLoadStackGuard", "(", "MIB", ",", "*", "this", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["This", "function", "is", "called", "for", "all", "pseudo", "instructions", "that", "remain", "after", "register", "allocation", "."], "TS_V_token": ["X86", "X86", "X86::MOV32r0", "X86::XOR32rr", "X86::MOV32r1", "X86::MOV32r_1", "X86::MOV32ImmSExti8", "X86::MOV64ImmSExti8", "X86::SETB_C8r", "X86::SBB8rr", "X86::SETB_C16r", "X86::SBB16rr", "X86::SETB_C32r", "X86::SBB32rr", "X86::SETB_C64r", "X86::SBB64rr", "X86::V_SET0", "X86::FsFLD0SS", "X86::FsFLD0SD", "X86::VXORPSrr", "X86::XORPSrr", "X86::AVX_SET0", "\"AVX not supported\"", "X86::VXORPSYrr", "X86::AVX512_512_SET0", "X86::VPXORDZrr", "X86::V_SETALLONES", "X86::VPCMPEQDrr", "X86::PCMPEQDrr", "X86::AVX2_SETALLONES", "X86::VPCMPEQDYrr", "X86::TEST8ri_NOREX", "X86::TEST8ri", "X86::KSET0B", "X86::KSET0W", "X86::KXORWrr", "X86::K0", "X86::KSET0D", "X86::KXORDrr", "X86::K0", "X86::KSET0Q", "X86::KXORQrr", "X86::K0", "X86::KSET1B", "X86::KSET1W", "X86::KXNORWrr", "X86::K0", "X86::KSET1D", "X86::KXNORDrr", "X86::K0", "X86::KSET1Q", "X86::KXNORQrr", "X86::K0"], "File": "X86InstrInfo (2)2", "Func": "expandPostRAPseudo", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3480, "Length": 487, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Cpu0FrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "}", ""], "natrual_language": ["Insert", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["Cpu0", "Cpu0"], "File": "Cpu0FrameLowering3", "Func": "emitEpilogue", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3481, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "CCAssignFn", "*", "AArch64TargetLowering", "::", "CCAssignFnForCall", "(", "CallingConv", "::", "ID", "CC", ",", "bool", "IsVarArg", ")", "const", "{", "switch", "(", "CC", ")", "{", "default", ":", "report_fatal_error", "(", "\"Unsupported calling convention.\"", ")", ";", "case", "CallingConv", "::", "WebKit_JS", ":", "return", "CC_AArch64_WebKit_JS", ";", "case", "CallingConv", "::", "GHC", ":", "return", "CC_AArch64_GHC", ";", "case", "CallingConv", "::", "C", ":", "case", "CallingConv", "::", "Fast", ":", "case", "CallingConv", "::", "PreserveMost", ":", "case", "CallingConv", "::", "CXX_FAST_TLS", ":", "case", "CallingConv", "::", "Swift", ":", "if", "(", "Subtarget", "->", "isTargetWindows", "(", ")", "&&", "IsVarArg", ")", "return", "CC_AArch64_Win64_VarArg", ";", "if", "(", "!", "Subtarget", "->", "isTargetDarwin", "(", ")", ")", "return", "CC_AArch64_AAPCS", ";", "if", "(", "!", "IsVarArg", ")", "return", "CC_AArch64_DarwinPCS", ";", "return", "Subtarget", "->", "isTargetILP32", "(", ")", "?", "CC_AArch64_DarwinPCS_ILP32_VarArg", ":", "CC_AArch64_DarwinPCS_VarArg", ";", "case", "CallingConv", "::", "Win64", ":", "return", "IsVarArg", "?", "CC_AArch64_Win64_VarArg", ":", "CC_AArch64_AAPCS", ";", "case", "CallingConv", "::", "CFGuard_Check", ":", "return", "CC_AArch64_Win64_CFGuard_Check", ";", "case", "CallingConv", "::", "AArch64_VectorCall", ":", "return", "CC_AArch64_AAPCS", ";", "}", "}", ""], "natrual_language": ["Selects", "the", "correct", "CCAssignFn", "for", "a", "given", "CallingConvention", "value", "."], "TS_V_token": ["AArch64", "AArch64", "\"Unsupported calling convention.\"", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64ISelLowering28", "Func": "CCAssignFnForCall", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3482, "Length": 143, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "inline", "void", "count_registers", "(", "const_tree", "field", ",", "int", "bitpos", ",", "bool", "fp", ",", "assign_data_t", "*", "data", ")", "{", "if", "(", "fp", ")", "{", "int", "nregs", ";", "machine_mode", "mode", ";", "if", "(", "compute_int_layout", "(", "bitpos", ",", "data", ",", "&", "nregs", ")", ")", "data", "->", "nregs", "+=", "nregs", ";", "if", "(", "compute_fp_layout", "(", "field", ",", "bitpos", ",", "data", ",", "&", "nregs", ",", "&", "mode", ")", ")", "data", "->", "nregs", "+=", "nregs", ";", "}", "else", "{", "if", "(", "data", "->", "intoffset", "<", "0", ")", "data", "->", "intoffset", "=", "bitpos", ";", "}", "}", ""], "natrual_language": ["A", "subroutine", "of", "function_arg_record_value", ".", "Count", "the", "number", "of", "registers", "to", "be", "assigned", "for", "FIELD", "and", "between", "PARMS-", ">", "intoffset", "and", "BITPOS", "."], "TS_V_token": ["sparc", "0"], "File": "sparc", "Func": "count_registers", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3483, "Length": 89, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "emitBytes", "(", "const", "uint8_t", "*", "Opcode", ",", "size_t", "Size", ")", "{", "Ops", ".", "insert", "(", "Ops", ".", "end", "(", ")", ",", "Opcode", ",", "Opcode", "+", "Size", ")", ";", "OpBegins", ".", "push_back", "(", "OpBegins", ".", "back", "(", ")", "+", "Size", ")", ";", "}", ""], "natrual_language": ["Emit", "the", "bytes", "in", "Data", "into", "the", "output", "."], "TS_V_token": ["ARM"], "File": "ARMUnwindOpAsm6", "Func": "emitBytes", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3484, "Length": 43, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_print_value", "(", "FILE", "*", "f", ",", "rtx", "x", ")", "{", "switch", "(", "GET_CODE", "(", "x", ")", ")", "{", "case", "CONST_INT", ":", "fprintf", "(", "f", ",", "HOST_WIDE_INT_PRINT_HEX", ",", "INTVAL", "(", "x", ")", ")", ";", "return", ";", "case", "CONST_DOUBLE", ":", "fprintf", "(", "f", ",", "\"<0x%lx,0x%lx>\"", ",", "(", "long", ")", "XWINT", "(", "x", ",", "2", ")", ",", "(", "long", ")", "XWINT", "(", "x", ",", "3", ")", ")", ";", "return", ";", "case", "CONST_VECTOR", ":", "{", "int", "i", ";", "fprintf", "(", "f", ",", "\"<\"", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "CONST_VECTOR_NUNITS", "(", "x", ")", ";", "i", "++", ")", "{", "fprintf", "(", "f", ",", "HOST_WIDE_INT_PRINT_HEX", ",", "INTVAL", "(", "CONST_VECTOR_ELT", "(", "x", ",", "i", ")", ")", ")", ";", "if", "(", "i", "<", "(", "CONST_VECTOR_NUNITS", "(", "x", ")", "-", "1", ")", ")", "fputc", "(", "','", ",", "f", ")", ";", "}", "fprintf", "(", "f", ",", "\">\"", ")", ";", "}", "return", ";", "case", "CONST_STRING", ":", "fprintf", "(", "f", ",", "\"\\\"%s\\\"\"", ",", "XSTR", "(", "x", ",", "0", ")", ")", ";", "return", ";", "case", "SYMBOL_REF", ":", "fprintf", "(", "f", ",", "\"`%s'\"", ",", "XSTR", "(", "x", ",", "0", ")", ")", ";", "return", ";", "case", "LABEL_REF", ":", "fprintf", "(", "f", ",", "\"L%d\"", ",", "INSN_UID", "(", "XEXP", "(", "x", ",", "0", ")", ")", ")", ";", "return", ";", "case", "CONST", ":", "arm_print_value", "(", "f", ",", "XEXP", "(", "x", ",", "0", ")", ")", ";", "return", ";", "case", "PLUS", ":", "arm_print_value", "(", "f", ",", "XEXP", "(", "x", ",", "0", ")", ")", ";", "fprintf", "(", "f", ",", "\"+\"", ")", ";", "arm_print_value", "(", "f", ",", "XEXP", "(", "x", ",", "1", ")", ")", ";", "return", ";", "case", "PC", ":", "fprintf", "(", "f", ",", "\"pc\"", ")", ";", "return", ";", "default", ":", "fprintf", "(", "f", ",", "\"????\"", ")", ";", "return", ";", "}", "}", ""], "natrual_language": ["Print", "a", "symbolic", "form", "of", "X", "to", "the", "debug", "file", ",", "F", "."], "TS_V_token": ["arm", "\"<0x%lx,0x%lx>\"", "2", "3", "\"<\"", "0", "1", "\">\"", "\"\\\"%s\\\"\"", "0", "\"`%s'\"", "0", "\"L%d\"", "0", "0", "0", "\"+\"", "1", "\"pc\"", "\"????\""], "File": "arm3", "Func": "arm_print_value", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3485, "Length": 286, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZFrameLowering", "::", "determineCalleeSaves", "(", "MachineFunction", "&", "MF", ",", "BitVector", "&", "SavedRegs", ",", "RegScavenger", "*", "RS", ")", "const", "{", "TargetFrameLowering", "::", "determineCalleeSaves", "(", "MF", ",", "SavedRegs", ",", "RS", ")", ";", "MachineFrameInfo", "&", "MFFrame", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "bool", "HasFP", "=", "hasFP", "(", "MF", ")", ";", "SystemZMachineFunctionInfo", "*", "MFI", "=", "MF", ".", "getInfo", "<", "SystemZMachineFunctionInfo", ">", "(", ")", ";", "bool", "IsVarArg", "=", "MF", ".", "getFunction", "(", ")", ".", "isVarArg", "(", ")", ";", "if", "(", "IsVarArg", ")", "for", "(", "unsigned", "I", "=", "MFI", "->", "getVarArgsFirstGPR", "(", ")", ";", "I", "<", "SystemZ", "::", "NumArgGPRs", ";", "++", "I", ")", "SavedRegs", ".", "set", "(", "SystemZ", "::", "ArgGPRs", "[", "I", "]", ")", ";", "if", "(", "!", "MF", ".", "getLandingPads", "(", ")", ".", "empty", "(", ")", ")", "{", "SavedRegs", ".", "set", "(", "SystemZ", "::", "R6D", ")", ";", "SavedRegs", ".", "set", "(", "SystemZ", "::", "R7D", ")", ";", "}", "if", "(", "HasFP", ")", "SavedRegs", ".", "set", "(", "SystemZ", "::", "R11D", ")", ";", "if", "(", "MFFrame", ".", "hasCalls", "(", ")", ")", "SavedRegs", ".", "set", "(", "SystemZ", "::", "R14D", ")", ";", "const", "MCPhysReg", "*", "CSRegs", "=", "TRI", "->", "getCalleeSavedRegs", "(", "&", "MF", ")", ";", "for", "(", "unsigned", "I", "=", "0", ";", "CSRegs", "[", "I", "]", ";", "++", "I", ")", "{", "unsigned", "Reg", "=", "CSRegs", "[", "I", "]", ";", "if", "(", "SystemZ", "::", "GR64BitRegClass", ".", "contains", "(", "Reg", ")", "&&", "SavedRegs", ".", "test", "(", "Reg", ")", ")", "{", "SavedRegs", ".", "set", "(", "SystemZ", "::", "R15D", ")", ";", "break", ";", "}", "}", "}", ""], "natrual_language": ["This", "method", "determines", "which", "of", "the", "registers", "reported", "by", "TargetRegisterInfo", ":", ":getCalleeSavedRegs", "(", ")", "should", "actually", "get", "saved", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ::NumArgGPRs", "SystemZ::ArgGPRs", "SystemZ::R6D", "SystemZ::R7D", "SystemZ::R11D", "SystemZ::R14D", "0", "SystemZ::GR64BitRegClass", "SystemZ::R15D"], "File": "SystemZFrameLowering1", "Func": "determineCalleeSaves", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3486, "Length": 258, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "aarch64_move_pointer", "(", "rtx", "pointer", ",", "poly_int64", "amount", ")", "{", "rtx", "next", "=", "plus_constant", "(", "Pmode", ",", "XEXP", "(", "pointer", ",", "0", ")", ",", "amount", ")", ";", "return", "adjust_automodify_address", "(", "pointer", ",", "GET_MODE", "(", "pointer", ")", ",", "next", ",", "amount", ")", ";", "}", ""], "natrual_language": ["Return", "a", "new", "RTX", "holding", "the", "result", "of", "moving", "POINTER", "forward", "by", "AMOUNT", "bytes", "."], "TS_V_token": ["aarch64", "0"], "File": "aarch64", "Func": "aarch64_move_pointer", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3487, "Length": 44, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZTargetLowering", "::", "LowerOperationWrapper", "(", "SDNode", "*", "N", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "Results", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "case", "ISD", "::", "ATOMIC_LOAD", ":", "{", "SDLoc", "DL", "(", "N", ")", ";", "SDVTList", "Tys", "=", "DAG", ".", "getVTList", "(", "MVT", "::", "Untyped", ",", "MVT", "::", "Other", ")", ";", "SDValue", "Ops", "[", "]", "=", "{", "N", "->", "getOperand", "(", "0", ")", ",", "N", "->", "getOperand", "(", "1", ")", "}", ";", "MachineMemOperand", "*", "MMO", "=", "cast", "<", "AtomicSDNode", ">", "(", "N", ")", "->", "getMemOperand", "(", ")", ";", "SDValue", "Res", "=", "DAG", ".", "getMemIntrinsicNode", "(", "SystemZISD", "::", "ATOMIC_LOAD_128", ",", "DL", ",", "Tys", ",", "Ops", ",", "MVT", "::", "i128", ",", "MMO", ")", ";", "Results", ".", "push_back", "(", "lowerGR128ToI128", "(", "DAG", ",", "Res", ")", ")", ";", "Results", ".", "push_back", "(", "Res", ".", "getValue", "(", "1", ")", ")", ";", "break", ";", "}", "case", "ISD", "::", "ATOMIC_STORE", ":", "{", "SDLoc", "DL", "(", "N", ")", ";", "SDVTList", "Tys", "=", "DAG", ".", "getVTList", "(", "MVT", "::", "Other", ")", ";", "SDValue", "Ops", "[", "]", "=", "{", "N", "->", "getOperand", "(", "0", ")", ",", "lowerI128ToGR128", "(", "DAG", ",", "N", "->", "getOperand", "(", "2", ")", ")", ",", "N", "->", "getOperand", "(", "1", ")", "}", ";", "MachineMemOperand", "*", "MMO", "=", "cast", "<", "AtomicSDNode", ">", "(", "N", ")", "->", "getMemOperand", "(", ")", ";", "SDValue", "Res", "=", "DAG", ".", "getMemIntrinsicNode", "(", "SystemZISD", "::", "ATOMIC_STORE_128", ",", "DL", ",", "Tys", ",", "Ops", ",", "MVT", "::", "i128", ",", "MMO", ")", ";", "if", "(", "cast", "<", "AtomicSDNode", ">", "(", "N", ")", "->", "getSuccessOrdering", "(", ")", "==", "AtomicOrdering", "::", "SequentiallyConsistent", ")", "Res", "=", "SDValue", "(", "DAG", ".", "getMachineNode", "(", "SystemZ", "::", "Serialize", ",", "DL", ",", "MVT", "::", "Other", ",", "Res", ")", ",", "0", ")", ";", "Results", ".", "push_back", "(", "Res", ")", ";", "break", ";", "}", "case", "ISD", "::", "ATOMIC_CMP_SWAP_WITH_SUCCESS", ":", "{", "SDLoc", "DL", "(", "N", ")", ";", "SDVTList", "Tys", "=", "DAG", ".", "getVTList", "(", "MVT", "::", "Untyped", ",", "MVT", "::", "i32", ",", "MVT", "::", "Other", ")", ";", "SDValue", "Ops", "[", "]", "=", "{", "N", "->", "getOperand", "(", "0", ")", ",", "N", "->", "getOperand", "(", "1", ")", ",", "lowerI128ToGR128", "(", "DAG", ",", "N", "->", "getOperand", "(", "2", ")", ")", ",", "lowerI128ToGR128", "(", "DAG", ",", "N", "->", "getOperand", "(", "3", ")", ")", "}", ";", "MachineMemOperand", "*", "MMO", "=", "cast", "<", "AtomicSDNode", ">", "(", "N", ")", "->", "getMemOperand", "(", ")", ";", "SDValue", "Res", "=", "DAG", ".", "getMemIntrinsicNode", "(", "SystemZISD", "::", "ATOMIC_CMP_SWAP_128", ",", "DL", ",", "Tys", ",", "Ops", ",", "MVT", "::", "i128", ",", "MMO", ")", ";", "SDValue", "Success", "=", "emitSETCC", "(", "DAG", ",", "DL", ",", "Res", ".", "getValue", "(", "1", ")", ",", "SystemZ", "::", "CCMASK_CS", ",", "SystemZ", "::", "CCMASK_CS_EQ", ")", ";", "Success", "=", "DAG", ".", "getZExtOrTrunc", "(", "Success", ",", "DL", ",", "N", "->", "getValueType", "(", "1", ")", ")", ";", "Results", ".", "push_back", "(", "lowerGR128ToI128", "(", "DAG", ",", "Res", ")", ")", ";", "Results", ".", "push_back", "(", "Success", ")", ";", "Results", ".", "push_back", "(", "Res", ".", "getValue", "(", "2", ")", ")", ";", "break", ";", "}", "default", ":", "llvm_unreachable", "(", "\"Unexpected node to lower\"", ")", ";", "}", "}", ""], "natrual_language": ["This", "callback", "is", "invoked", "by", "the", "type", "legalizer", "to", "legalize", "nodes", "with", "an", "illegal", "operand", "type", "but", "legal", "result", "types", "."], "TS_V_token": ["SystemZ", "SystemZ", "ISD::ATOMIC_LOAD", "MVT::Untyped", "MVT::Other", "0", "1", "SystemZISD::ATOMIC_LOAD_128", "MVT::i128", "1", "ISD::ATOMIC_STORE", "MVT::Other", "0", "2", "1", "SystemZISD::ATOMIC_STORE_128", "MVT::i128", "SystemZ::Serialize", "MVT::Other", "0", "ISD::ATOMIC_CMP_SWAP_WITH_SUCCESS", "MVT::Untyped", "MVT::i32", "MVT::Other", "0", "1", "2", "3", "SystemZISD::ATOMIC_CMP_SWAP_128", "MVT::i128", "1", "SystemZ::CCMASK_CS", "SystemZ::CCMASK_CS_EQ", "1", "2", "\"Unexpected node to lower\""], "File": "SystemZISelLowering46", "Func": "LowerOperationWrapper", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3488, "Length": 499, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMFrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetRegisterInfo", "*", "RegInfo", "=", "MF", ".", "getTarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "if", "(", "STI", ".", "isTargetIOS", "(", ")", ")", "return", "true", ";", "const", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "return", "(", "(", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "DisableFramePointerElim", "(", "MF", ")", "&&", "MFI", "->", "hasCalls", "(", ")", ")", "||", "RegInfo", "->", "needsStackRealignment", "(", "MF", ")", "||", "MFI", "->", "hasVarSizedObjects", "(", ")", "||", "MFI", "->", "isFrameAddressTaken", "(", ")", ")", ";", "}", ""], "natrual_language": ["hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMFrameLowering (2)", "Func": "hasFP", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3489, "Length": 93, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StackOffset", "SystemZFrameLowering", "::", "getFrameIndexReference", "(", "const", "MachineFunction", "&", "MF", ",", "int", "FI", ",", "Register", "&", "FrameReg", ")", "const", "{", "StackOffset", "Offset", "=", "TargetFrameLowering", "::", "getFrameIndexReference", "(", "MF", ",", "FI", ",", "FrameReg", ")", ";", "return", "Offset", "+", "StackOffset", "::", "getFixed", "(", "SystemZMC", "::", "ELFCallFrameSize", ")", ";", "}", ""], "natrual_language": ["getFrameIndexReference", "-", "This", "method", "should", "return", "the", "base", "register", "and", "offset", "used", "to", "reference", "a", "frame", "index", "location", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZMC::ELFCallFrameSize"], "File": "SystemZFrameLowering32", "Func": "getFrameIndexReference", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3490, "Length": 46, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "X86TTIImpl", "::", "getIntImmCostInst", "(", "unsigned", "Opcode", ",", "unsigned", "Idx", ",", "const", "APInt", "&", "Imm", ",", "Type", "*", "Ty", ",", "TTI", "::", "TargetCostKind", "CostKind", ")", "{", "assert", "(", "Ty", "->", "isIntegerTy", "(", ")", ")", ";", "unsigned", "BitSize", "=", "Ty", "->", "getPrimitiveSizeInBits", "(", ")", ";", "if", "(", "BitSize", "==", "0", ")", "return", "TTI", "::", "TCC_Free", ";", "unsigned", "ImmIdx", "=", "~", "0U", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "TTI", "::", "TCC_Free", ";", "case", "Instruction", "::", "GetElementPtr", ":", "if", "(", "Idx", "==", "0", ")", "return", "2", "*", "TTI", "::", "TCC_Basic", ";", "return", "TTI", "::", "TCC_Free", ";", "case", "Instruction", "::", "Store", ":", "ImmIdx", "=", "0", ";", "break", ";", "case", "Instruction", "::", "ICmp", ":", "if", "(", "Idx", "==", "1", "&&", "Imm", ".", "getBitWidth", "(", ")", "==", "64", ")", "{", "uint64_t", "ImmVal", "=", "Imm", ".", "getZExtValue", "(", ")", ";", "if", "(", "ImmVal", "==", "0x100000000ULL", "||", "ImmVal", "==", "0xffffffff", ")", "return", "TTI", "::", "TCC_Free", ";", "}", "ImmIdx", "=", "1", ";", "break", ";", "case", "Instruction", "::", "And", ":", "if", "(", "Idx", "==", "1", "&&", "Imm", ".", "getBitWidth", "(", ")", "==", "64", "&&", "isUInt", "<", "32", ">", "(", "Imm", ".", "getZExtValue", "(", ")", ")", ")", "return", "TTI", "::", "TCC_Free", ";", "ImmIdx", "=", "1", ";", "break", ";", "case", "Instruction", "::", "Add", ":", "case", "Instruction", "::", "Sub", ":", "if", "(", "Idx", "==", "1", "&&", "Imm", ".", "getBitWidth", "(", ")", "==", "64", "&&", "Imm", ".", "getZExtValue", "(", ")", "==", "0x80000000", ")", "return", "TTI", "::", "TCC_Free", ";", "ImmIdx", "=", "1", ";", "break", ";", "case", "Instruction", "::", "UDiv", ":", "case", "Instruction", "::", "SDiv", ":", "case", "Instruction", "::", "URem", ":", "case", "Instruction", "::", "SRem", ":", "return", "TTI", "::", "TCC_Free", ";", "case", "Instruction", "::", "Mul", ":", "case", "Instruction", "::", "Or", ":", "case", "Instruction", "::", "Xor", ":", "ImmIdx", "=", "1", ";", "break", ";", "case", "Instruction", "::", "Shl", ":", "case", "Instruction", "::", "LShr", ":", "case", "Instruction", "::", "AShr", ":", "if", "(", "Idx", "==", "1", ")", "return", "TTI", "::", "TCC_Free", ";", "break", ";", "case", "Instruction", "::", "Trunc", ":", "case", "Instruction", "::", "ZExt", ":", "case", "Instruction", "::", "SExt", ":", "case", "Instruction", "::", "IntToPtr", ":", "case", "Instruction", "::", "PtrToInt", ":", "case", "Instruction", "::", "BitCast", ":", "case", "Instruction", "::", "PHI", ":", "case", "Instruction", "::", "Call", ":", "case", "Instruction", "::", "Select", ":", "case", "Instruction", "::", "Ret", ":", "case", "Instruction", "::", "Load", ":", "break", ";", "}", "if", "(", "Idx", "==", "ImmIdx", ")", "{", "int", "NumConstants", "=", "divideCeil", "(", "BitSize", ",", "64", ")", ";", "int", "Cost", "=", "X86TTIImpl", "::", "getIntImmCost", "(", "Imm", ",", "Ty", ",", "CostKind", ")", ";", "return", "(", "Cost", "<=", "NumConstants", "*", "TTI", "::", "TCC_Basic", ")", "?", "static_cast", "<", "int", ">", "(", "TTI", "::", "TCC_Free", ")", ":", "Cost", ";", "}", "return", "X86TTIImpl", "::", "getIntImmCost", "(", "Imm", ",", "Ty", ",", "CostKind", ")", ";", "}", ""], "natrual_language": ["Return", "the", "expected", "cost", "of", "materialization", "for", "the", "given", "integer", "immediate", "of", "the", "specified", "type", "for", "a", "given", "instruction", "."], "TS_V_token": ["X86", "X86", "0", "0U", "0", "2", "0", "1", "64", "0x100000000ULL", "0xffffffff", "1", "1", "64", "32", "1", "1", "64", "0x80000000", "1", "1", "1", "64", "X86", "X86"], "File": "X86TargetTransformInfo108", "Func": "getIntImmCostInst", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3491, "Length": 443, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "sparc_initial_elimination_offset", "(", "int", "to", ")", "{", "int", "offset", ";", "if", "(", "to", "==", "STACK_POINTER_REGNUM", ")", "offset", "=", "sparc_compute_frame_size", "(", "get_frame_size", "(", ")", ",", "crtl", "->", "is_leaf", ")", ";", "else", "offset", "=", "0", ";", "offset", "+=", "SPARC_STACK_BIAS", ";", "return", "offset", ";", "}", ""], "natrual_language": ["Implement", "the", "macro", "INITIAL_ELIMINATION_OFFSET", ",", "return", "the", "OFFSET", "."], "TS_V_token": ["sparc", "0"], "File": "sparc", "Func": "sparc_initial_elimination_offset", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3492, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "fixup_errata", "(", ")", "{", "rtx", "insn", ";", "if", "(", "!", "TARGET_B_STEP", ")", "return", ";", "group_idx", "=", "0", ";", "memset", "(", "last_group", ",", "0", ",", "sizeof", "last_group", ")", ";", "for", "(", "insn", "=", "get_insns", "(", ")", ";", "insn", ";", "insn", "=", "NEXT_INSN", "(", "insn", ")", ")", "{", "if", "(", "!", "INSN_P", "(", "insn", ")", ")", "continue", ";", "if", "(", "ia64_safe_type", "(", "insn", ")", "==", "TYPE_S", ")", "{", "group_idx", "^=", "1", ";", "memset", "(", "last_group", "+", "group_idx", ",", "0", ",", "sizeof", "last_group", "[", "group_idx", "]", ")", ";", "}", "else", "errata_emit_nops", "(", "insn", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "extra", "nops", "if", "they", "are", "required", "to", "work", "around", "hardware", "errata", "."], "TS_V_token": ["ia64", "0", "0", "1", "0"], "File": "ia642", "Func": "fixup_errata", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3493, "Length": 96, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86InstrInfo", "::", "reMaterialize", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "DestReg", ",", "unsigned", "SubIdx", ",", "const", "MachineInstr", "&", "Orig", ",", "const", "TargetRegisterInfo", "&", "TRI", ")", "const", "{", "bool", "ClobbersEFLAGS", "=", "false", ";", "for", "(", "const", "MachineOperand", "&", "MO", ":", "Orig", ".", "operands", "(", ")", ")", "{", "if", "(", "MO", ".", "isReg", "(", ")", "&&", "MO", ".", "isDef", "(", ")", "&&", "MO", ".", "getReg", "(", ")", "==", "X86", "::", "EFLAGS", ")", "{", "ClobbersEFLAGS", "=", "true", ";", "break", ";", "}", "}", "if", "(", "ClobbersEFLAGS", "&&", "!", "isSafeToClobberEFLAGS", "(", "MBB", ",", "I", ")", ")", "{", "int", "Value", ";", "switch", "(", "Orig", ".", "getOpcode", "(", ")", ")", "{", "case", "X86", "::", "MOV32r0", ":", "Value", "=", "0", ";", "break", ";", "case", "X86", "::", "MOV32r1", ":", "Value", "=", "1", ";", "break", ";", "case", "X86", "::", "MOV32r_1", ":", "Value", "=", "-", "1", ";", "break", ";", "default", ":", "llvm_unreachable", "(", "\"Unexpected instruction!\"", ")", ";", "}", "const", "DebugLoc", "&", "DL", "=", "Orig", ".", "getDebugLoc", "(", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "X86", "::", "MOV32ri", ")", ")", ".", "addOperand", "(", "Orig", ".", "getOperand", "(", "0", ")", ")", ".", "addImm", "(", "Value", ")", ";", "}", "else", "{", "MachineInstr", "*", "MI", "=", "MBB", ".", "getParent", "(", ")", "->", "CloneMachineInstr", "(", "&", "Orig", ")", ";", "MBB", ".", "insert", "(", "I", ",", "MI", ")", ";", "}", "MachineInstr", "&", "NewMI", "=", "*", "std", "::", "prev", "(", "I", ")", ";", "NewMI", ".", "substituteRegister", "(", "Orig", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ",", "DestReg", ",", "SubIdx", ",", "TRI", ")", ";", "}", ""], "natrual_language": ["Re-issue", "the", "specified", "'original", "'", "instruction", "at", "the", "specific", "location", "targeting", "a", "new", "destination", "register", "."], "TS_V_token": ["X86", "X86", "X86::EFLAGS", "X86::MOV32r0", "0", "X86::MOV32r1", "1", "X86::MOV32r_1", "1", "\"Unexpected instruction!\"", "X86::MOV32ri", "0", "0"], "File": "X86InstrInfo (2)1", "Func": "reMaterialize", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3494, "Length": 257, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsRegisterInfo", "::", "getRARegister", "(", ")", "const", "{", "return", "Mips", "::", "RA", ";", "}", ""], "natrual_language": ["This", "method", "should", "return", "the", "register", "where", "the", "return", "address", "can", "be", "found", "."], "TS_V_token": ["Mips", "Mips", "Mips::RA"], "File": "MipsRegisterInfo14", "Func": "getRARegister", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3495, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_builtin_valid_without_lhs", "(", "enum", "rs6000_builtins", "fn_code", ")", "{", "switch", "(", "fn_code", ")", "{", "case", "ALTIVEC_BUILTIN_STVX_V16QI", ":", "case", "ALTIVEC_BUILTIN_STVX_V8HI", ":", "case", "ALTIVEC_BUILTIN_STVX_V4SI", ":", "case", "ALTIVEC_BUILTIN_STVX_V4SF", ":", "case", "ALTIVEC_BUILTIN_STVX_V2DI", ":", "case", "ALTIVEC_BUILTIN_STVX_V2DF", ":", "return", "true", ";", "default", ":", "return", "false", ";", "}", "}", ""], "natrual_language": ["Helper", "function", "to", "sort", "out", "which", "built-ins", "may", "be", "valid", "without", "having", "a", "LHS", "."], "TS_V_token": ["rs6000"], "File": "rs60007", "Func": "rs6000_builtin_valid_without_lhs", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3496, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", "\"Dead register definitions\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["ARM64", "\"Dead register definitions\""], "File": "ARM64DeadRegisterDefinitionsPass1", "Func": "getPassName", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3497, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "FPGATTIImpl", "::", "getNumberOfRegisters", "(", "bool", "Vector", ")", "{", "return", "std", "::", "numeric_limits", "<", "unsigned", ">", "::", "max", "(", ")", ">>", "2", ";", "}", ""], "natrual_language": ["\ufffd", "?", "Vector", "TTI", "begin", "\ufffd", "?"], "TS_V_token": ["FPGA", "FPGA", "2"], "File": "FPGATargetTransformInfo", "Func": "getNumberOfRegisters", "Target": "FPGA", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3498, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "AArch64TargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "SDLoc", "DL", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ",", "bool", "isThisReturn", ",", "SDValue", "ThisVal", ")", "const", "{", "CCAssignFn", "*", "RetCC", "=", "CallConv", "==", "CallingConv", "::", "WebKit_JS", "?", "RetCC_AArch64_WebKit_JS", ":", "RetCC_AArch64_AAPCS", ";", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "getTargetMachine", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "RetCC", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "CCValAssign", "VA", "=", "RVLocs", "[", "i", "]", ";", "if", "(", "i", "==", "0", "&&", "isThisReturn", ")", "{", "assert", "(", "!", "VA", ".", "needsCustom", "(", ")", "&&", "VA", ".", "getLocVT", "(", ")", "==", "MVT", "::", "i64", "&&", "\"unexpected return calling convention register assignment\"", ")", ";", "InVals", ".", "push_back", "(", "ThisVal", ")", ";", "continue", ";", "}", "SDValue", "Val", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ",", "InFlag", ")", ";", "Chain", "=", "Val", ".", "getValue", "(", "1", ")", ";", "InFlag", "=", "Val", ".", "getValue", "(", "2", ")", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown loc info!\"", ")", ";", "case", "CCValAssign", "::", "Full", ":", "break", ";", "case", "CCValAssign", "::", "BCvt", ":", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "BITCAST", ",", "DL", ",", "VA", ".", "getValVT", "(", ")", ",", "Val", ")", ";", "break", ";", "}", "InVals", ".", "push_back", "(", "Val", ")", ";", "}", "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": ["AArch64", "AArch64", "ISD::InputArg", "AArch64", "AArch64", "16", "0", "0", "MVT::i64", "\"unexpected return calling convention register assignment\"", "1", "2", "\"Unknown loc info!\"", "ISD::BITCAST"], "File": "AArch64ISelLowering23", "Func": "LowerCallResult", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3499, "Length": 285, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_can_inline_p", "(", "tree", "caller", ",", "tree", "callee", ")", "{", "tree", "caller_tree", "=", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "caller", ")", ";", "tree", "callee_tree", "=", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "callee", ")", ";", "unsigned", "HOST_WIDE_INT", "always_inline_safe_mask", "=", "(", "MASK_USE_8BIT_IDIV", "|", "MASK_ACCUMULATE_OUTGOING_ARGS", "|", "MASK_NO_ALIGN_STRINGOPS", "|", "MASK_AVX256_SPLIT_UNALIGNED_LOAD", "|", "MASK_AVX256_SPLIT_UNALIGNED_STORE", "|", "MASK_CLD", "|", "MASK_NO_FANCY_MATH_387", "|", "MASK_IEEE_FP", "|", "MASK_INLINE_ALL_STRINGOPS", "|", "MASK_INLINE_STRINGOPS_DYNAMICALLY", "|", "MASK_RECIP", "|", "MASK_STACK_PROBE", "|", "MASK_STV", "|", "MASK_TLS_DIRECT_SEG_REFS", "|", "MASK_VZEROUPPER", "|", "MASK_NO_PUSH_ARGS", "|", "MASK_OMIT_LEAF_FRAME_POINTER", ")", ";", "if", "(", "!", "callee_tree", ")", "callee_tree", "=", "target_option_default_node", ";", "if", "(", "!", "caller_tree", ")", "caller_tree", "=", "target_option_default_node", ";", "if", "(", "callee_tree", "==", "caller_tree", ")", "return", "true", ";", "struct", "cl_target_option", "*", "caller_opts", "=", "TREE_TARGET_OPTION", "(", "caller_tree", ")", ";", "struct", "cl_target_option", "*", "callee_opts", "=", "TREE_TARGET_OPTION", "(", "callee_tree", ")", ";", "bool", "ret", "=", "false", ";", "bool", "always_inline", "=", "(", "DECL_DISREGARD_INLINE_LIMITS", "(", "callee", ")", "&&", "lookup_attribute", "(", "\"always_inline\"", ",", "DECL_ATTRIBUTES", "(", "callee", ")", ")", ")", ";", "if", "(", "TARGET_GENERAL_REGS_ONLY_P", "(", "callee_opts", "->", "x_ix86_target_flags", ")", ")", "always_inline_safe_mask", "|=", "MASK_80387", ";", "cgraph_node", "*", "callee_node", "=", "cgraph_node", "::", "get", "(", "callee", ")", ";", "if", "(", "(", "(", "caller_opts", "->", "x_ix86_isa_flags", "&", "callee_opts", "->", "x_ix86_isa_flags", ")", "!=", "callee_opts", "->", "x_ix86_isa_flags", ")", "||", "(", "(", "caller_opts", "->", "x_ix86_isa_flags2", "&", "callee_opts", "->", "x_ix86_isa_flags2", ")", "!=", "callee_opts", "->", "x_ix86_isa_flags2", ")", ")", "ret", "=", "false", ";", "else", "if", "(", "(", "!", "always_inline", "&&", "caller_opts", "->", "x_target_flags", "!=", "callee_opts", "->", "x_target_flags", ")", "||", "(", "caller_opts", "->", "x_target_flags", "&", "~", "always_inline_safe_mask", ")", "!=", "(", "callee_opts", "->", "x_target_flags", "&", "~", "always_inline_safe_mask", ")", ")", "ret", "=", "false", ";", "else", "if", "(", "caller_opts", "->", "arch", "!=", "callee_opts", "->", "arch", ")", "ret", "=", "false", ";", "else", "if", "(", "!", "always_inline", "&&", "caller_opts", "->", "tune", "!=", "callee_opts", "->", "tune", ")", "ret", "=", "false", ";", "else", "if", "(", "caller_opts", "->", "x_ix86_fpmath", "!=", "callee_opts", "->", "x_ix86_fpmath", "&&", "(", "!", "ipa_fn_summaries", "||", "ipa_fn_summaries", "->", "get", "(", "callee_node", ")", "==", "NULL", "||", "ipa_fn_summaries", "->", "get", "(", "callee_node", ")", "->", "fp_expressions", ")", ")", "ret", "=", "false", ";", "else", "if", "(", "!", "always_inline", "&&", "caller_opts", "->", "branch_cost", "!=", "callee_opts", "->", "branch_cost", ")", "ret", "=", "false", ";", "else", "ret", "=", "true", ";", "return", "ret", ";", "}", ""], "natrual_language": ["Hook", "to", "determine", "if", "one", "function", "can", "safely", "inline", "another", "."], "TS_V_token": ["i386", "\"always_inline\""], "File": "i386", "Func": "ix86_can_inline_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3500, "Length": 337, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "CAHPInstrInfo", "::", "getInstSizeInBytes", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "get", "(", "Opcode", ")", ".", "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", "CAHPTargetMachine", "&", ">", "(", "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": ["CAHP", "CAHP", "0", "CAHP", "0"], "File": "CAHPInstrInfo", "Func": "getInstSizeInBytes", "Target": "CAHP", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3501, "Length": 127, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseInstrInfo", "::", "hasLowDefLatency", "(", "const", "InstrItineraryData", "*", "ItinData", ",", "const", "MachineInstr", "*", "DefMI", ",", "unsigned", "DefIdx", ")", "const", "{", "if", "(", "!", "ItinData", "||", "ItinData", "->", "isEmpty", "(", ")", ")", "return", "false", ";", "unsigned", "DDomain", "=", "DefMI", "->", "getDesc", "(", ")", ".", "TSFlags", "&", "ARMII", "::", "DomainMask", ";", "if", "(", "DDomain", "==", "ARMII", "::", "DomainGeneral", ")", "{", "unsigned", "DefClass", "=", "DefMI", "->", "getDesc", "(", ")", ".", "getSchedClass", "(", ")", ";", "int", "DefCycle", "=", "ItinData", "->", "getOperandCycle", "(", "DefClass", ",", "DefIdx", ")", ";", "return", "(", "DefCycle", "!=", "-", "1", "&&", "DefCycle", "<=", "2", ")", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Compute", "operand", "latency", "of", "a", "def", "of", "'Reg", "'", "."], "TS_V_token": ["ARM", "ARM", "ARMII::DomainMask", "ARMII::DomainGeneral", "1", "2"], "File": "ARMBaseInstrInfo (2)", "Func": "hasLowDefLatency", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3502, "Length": 100, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "cortexa7_older_only", "(", "rtx_insn", "*", "insn", ")", "{", "if", "(", "recog_memoized", "(", "insn", ")", "<", "0", ")", "return", "false", ";", "switch", "(", "get_attr_type", "(", "insn", ")", ")", "{", "case", "TYPE_ALU_DSP_REG", ":", "case", "TYPE_ALU_SREG", ":", "case", "TYPE_ALUS_SREG", ":", "case", "TYPE_LOGIC_REG", ":", "case", "TYPE_LOGICS_REG", ":", "case", "TYPE_ADC_REG", ":", "case", "TYPE_ADCS_REG", ":", "case", "TYPE_ADR", ":", "case", "TYPE_BFM", ":", "case", "TYPE_REV", ":", "case", "TYPE_MVN_REG", ":", "case", "TYPE_SHIFT_IMM", ":", "case", "TYPE_SHIFT_REG", ":", "case", "TYPE_LOAD_BYTE", ":", "case", "TYPE_LOAD_4", ":", "case", "TYPE_STORE_4", ":", "case", "TYPE_FFARITHS", ":", "case", "TYPE_FADDS", ":", "case", "TYPE_FFARITHD", ":", "case", "TYPE_FADDD", ":", "case", "TYPE_FMOV", ":", "case", "TYPE_F_CVT", ":", "case", "TYPE_FCMPS", ":", "case", "TYPE_FCMPD", ":", "case", "TYPE_FCONSTS", ":", "case", "TYPE_FCONSTD", ":", "case", "TYPE_FMULS", ":", "case", "TYPE_FMACS", ":", "case", "TYPE_FMULD", ":", "case", "TYPE_FMACD", ":", "case", "TYPE_FDIVS", ":", "case", "TYPE_FDIVD", ":", "case", "TYPE_F_MRC", ":", "case", "TYPE_F_MRRC", ":", "case", "TYPE_F_FLAG", ":", "case", "TYPE_F_LOADS", ":", "case", "TYPE_F_STORES", ":", "return", "true", ";", "default", ":", "return", "false", ";", "}", "}", ""], "natrual_language": ["Return", "true", "if", "and", "only", "if", "this", "insn", "can", "dual-issue", "only", "as", "older", "."], "TS_V_token": ["arm", "0"], "File": "arm", "Func": "cortexa7_older_only", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3503, "Length": 150, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "rs6000_scale_v2df", "(", "rtx", "tgt", ",", "rtx", "src", ",", "int", "scale", ")", "{", "HOST_WIDE_INT", "hwi_scale", "(", "scale", ")", ";", "REAL_VALUE_TYPE", "r_pow", ";", "rtvec", "v", "=", "rtvec_alloc", "(", "2", ")", ";", "rtx", "elt", ";", "rtx", "scale_vec", "=", "gen_reg_rtx", "(", "V2DFmode", ")", ";", "(", "void", ")", "real_powi", "(", "&", "r_pow", ",", "DFmode", ",", "&", "dconst2", ",", "hwi_scale", ")", ";", "elt", "=", "const_double_from_real_value", "(", "r_pow", ",", "DFmode", ")", ";", "RTVEC_ELT", "(", "v", ",", "0", ")", "=", "elt", ";", "RTVEC_ELT", "(", "v", ",", "1", ")", "=", "elt", ";", "rs6000_expand_vector_init", "(", "scale_vec", ",", "gen_rtx_PARALLEL", "(", "V2DFmode", ",", "v", ")", ")", ";", "emit_insn", "(", "gen_mulv2df3", "(", "tgt", ",", "src", ",", "scale_vec", ")", ")", ";", "}", ""], "natrual_language": ["Scale", "a", "V2DF", "vector", "SRC", "by", "two", "to", "the", "SCALE", "and", "place", "in", "TGT", "."], "TS_V_token": ["rs6000", "2", "0", "1"], "File": "rs6000", "Func": "rs6000_scale_v2df", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3504, "Length": 109, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "char", "AArch64Subtarget", "::", "ClassifyGlobalReference", "(", "const", "GlobalValue", "*", "GV", ",", "const", "TargetMachine", "&", "TM", ")", "const", "{", "bool", "isDecl", "=", "GV", "->", "hasAvailableExternallyLinkage", "(", ")", ";", "if", "(", "GV", "->", "isDeclaration", "(", ")", "&&", "!", "GV", "->", "isMaterializable", "(", ")", ")", "isDecl", "=", "true", ";", "if", "(", "TM", ".", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Large", "&&", "isTargetMachO", "(", ")", ")", "return", "AArch64II", "::", "MO_GOT", ";", "if", "(", "TM", ".", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Small", "&&", "GV", "->", "isWeakForLinker", "(", ")", "&&", "isDecl", ")", "{", "if", "(", "TM", ".", "getRelocationModel", "(", ")", "==", "Reloc", "::", "Static", ")", "return", "AArch64II", "::", "MO_CONSTPOOL", ";", "else", "return", "AArch64II", "::", "MO_GOT", ";", "}", "if", "(", "TM", ".", "getRelocationModel", "(", ")", "!=", "Reloc", "::", "Static", "&&", "GV", "->", "hasDefaultVisibility", "(", ")", ")", "{", "if", "(", "isTargetMachO", "(", ")", ")", "return", "(", "isDecl", "||", "GV", "->", "isWeakForLinker", "(", ")", ")", "?", "AArch64II", "::", "MO_GOT", ":", "AArch64II", "::", "MO_NO_FLAG", ";", "else", "return", "GV", "->", "hasLocalLinkage", "(", ")", "?", "AArch64II", "::", "MO_NO_FLAG", ":", "AArch64II", "::", "MO_GOT", ";", "}", "return", "AArch64II", "::", "MO_NO_FLAG", ";", "}", ""], "natrual_language": ["ClassifyGlobalReference", "-", "Find", "the", "target", "operand", "flags", "that", "describe", "how", "a", "global", "value", "should", "be", "referenced", "for", "the", "current", "subtarget", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64II::MO_GOT", "AArch64II::MO_CONSTPOOL", "AArch64II::MO_GOT", "AArch64II::MO_GOT", "AArch64II::MO_NO_FLAG", "AArch64II::MO_NO_FLAG", "AArch64II::MO_GOT", "AArch64II::MO_NO_FLAG"], "File": "AArch64Subtarget35", "Func": "ClassifyGlobalReference", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3505, "Length": 179, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "iq2000_fill_delay_slot", "(", "const", "char", "*", "ret", ",", "enum", "delay_type", "type", ",", "rtx", "operands", "[", "]", ",", "rtx_insn", "*", "cur_insn", ")", "{", "rtx", "set_reg", ";", "machine_mode", "mode", ";", "rtx_insn", "*", "next_insn", "=", "cur_insn", "?", "NEXT_INSN", "(", "cur_insn", ")", ":", "NULL", ";", "int", "num_nops", ";", "if", "(", "type", "==", "DELAY_LOAD", "||", "type", "==", "DELAY_FCMP", ")", "num_nops", "=", "1", ";", "else", "num_nops", "=", "0", ";", "next_insn", "=", "NEXT_INSN", "(", "cur_insn", ")", ";", "while", "(", "next_insn", "!=", "0", "&&", "(", "NOTE_P", "(", "next_insn", ")", "||", "LABEL_P", "(", "next_insn", ")", ")", ")", "next_insn", "=", "NEXT_INSN", "(", "next_insn", ")", ";", "dslots_load_total", "+=", "num_nops", ";", "if", "(", "TARGET_DEBUG_C_MODE", "||", "type", "==", "DELAY_NONE", "||", "operands", "==", "0", "||", "cur_insn", "==", "0", "||", "next_insn", "==", "0", "||", "LABEL_P", "(", "next_insn", ")", "||", "(", "set_reg", "=", "operands", "[", "0", "]", ")", "==", "0", ")", "{", "dslots_number_nops", "=", "0", ";", "iq2000_load_reg", "=", "0", ";", "iq2000_load_reg2", "=", "0", ";", "iq2000_load_reg3", "=", "0", ";", "iq2000_load_reg4", "=", "0", ";", "return", "ret", ";", "}", "set_reg", "=", "operands", "[", "0", "]", ";", "if", "(", "set_reg", "==", "0", ")", "return", "ret", ";", "while", "(", "GET_CODE", "(", "set_reg", ")", "==", "SUBREG", ")", "set_reg", "=", "SUBREG_REG", "(", "set_reg", ")", ";", "mode", "=", "GET_MODE", "(", "set_reg", ")", ";", "dslots_number_nops", "=", "num_nops", ";", "iq2000_load_reg", "=", "set_reg", ";", "if", "(", "GET_MODE_SIZE", "(", "mode", ")", ">", "(", "unsigned", ")", "(", "UNITS_PER_WORD", ")", ")", "iq2000_load_reg2", "=", "gen_rtx_REG", "(", "SImode", ",", "REGNO", "(", "set_reg", ")", "+", "1", ")", ";", "else", "iq2000_load_reg2", "=", "0", ";", "return", "ret", ";", "}", ""], "natrual_language": ["Returns", "an", "operand", "string", "for", "the", "given", "instruction", "'s", "delay", "slot", ",", "after", "updating", "filled", "delay", "slot", "statistics", ".", "We", "assume", "that", "operands", "[", "0", "]", "is", "the", "target", "register", "that", "is", "set", ".", "In", "order", "to", "check", "the", "next", "insn", ",", "most", "of", "this", "functionality", "is", "moved", "to", "FINAL_PRESCAN_INSN", ",", "and", "we", "just", "set", "the", "global", "variables", "that", "it", "needs", "."], "TS_V_token": ["iq2000", "1", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "1", "0"], "File": "iq2000", "Func": "iq2000_fill_delay_slot", "Target": "iq2000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3506, "Length": 246, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "legitimize_tls_address", "(", "rtx", "addr", ")", "{", "rtx", "ret", ",", "tmp", ",", "t1", ",", "t2", ",", "tp", ";", "rtx_insn", "*", "insn", ";", "if", "(", "GET_CODE", "(", "addr", ")", "!=", "SYMBOL_REF", ")", "return", "addr", ";", "switch", "(", "SYMBOL_REF_TLS_MODEL", "(", "addr", ")", ")", "{", "case", "TLS_MODEL_GLOBAL_DYNAMIC", ":", "tmp", "=", "gen_reg_rtx", "(", "Pmode", ")", ";", "if", "(", "flag_pic", ")", "emit_insn", "(", "gen_tgd_load_pic", "(", "tmp", ",", "addr", ")", ")", ";", "else", "emit_insn", "(", "gen_tgd_load", "(", "tmp", ",", "addr", ")", ")", ";", "ret", "=", "hppa_tls_call", "(", "tmp", ")", ";", "break", ";", "case", "TLS_MODEL_LOCAL_DYNAMIC", ":", "ret", "=", "gen_reg_rtx", "(", "Pmode", ")", ";", "tmp", "=", "gen_reg_rtx", "(", "Pmode", ")", ";", "start_sequence", "(", ")", ";", "if", "(", "flag_pic", ")", "emit_insn", "(", "gen_tld_load_pic", "(", "tmp", ",", "addr", ")", ")", ";", "else", "emit_insn", "(", "gen_tld_load", "(", "tmp", ",", "addr", ")", ")", ";", "t1", "=", "hppa_tls_call", "(", "tmp", ")", ";", "insn", "=", "get_insns", "(", ")", ";", "end_sequence", "(", ")", ";", "t2", "=", "gen_reg_rtx", "(", "Pmode", ")", ";", "emit_libcall_block", "(", "insn", ",", "t2", ",", "t1", ",", "gen_rtx_UNSPEC", "(", "Pmode", ",", "gen_rtvec", "(", "1", ",", "const0_rtx", ")", ",", "UNSPEC_TLSLDBASE", ")", ")", ";", "emit_insn", "(", "gen_tld_offset_load", "(", "ret", ",", "addr", ",", "t2", ")", ")", ";", "break", ";", "case", "TLS_MODEL_INITIAL_EXEC", ":", "tp", "=", "gen_reg_rtx", "(", "Pmode", ")", ";", "tmp", "=", "gen_reg_rtx", "(", "Pmode", ")", ";", "ret", "=", "gen_reg_rtx", "(", "Pmode", ")", ";", "emit_insn", "(", "gen_tp_load", "(", "tp", ")", ")", ";", "if", "(", "flag_pic", ")", "emit_insn", "(", "gen_tie_load_pic", "(", "tmp", ",", "addr", ")", ")", ";", "else", "emit_insn", "(", "gen_tie_load", "(", "tmp", ",", "addr", ")", ")", ";", "emit_move_insn", "(", "ret", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "tp", ",", "tmp", ")", ")", ";", "break", ";", "case", "TLS_MODEL_LOCAL_EXEC", ":", "tp", "=", "gen_reg_rtx", "(", "Pmode", ")", ";", "ret", "=", "gen_reg_rtx", "(", "Pmode", ")", ";", "emit_insn", "(", "gen_tp_load", "(", "tp", ")", ")", ";", "emit_insn", "(", "gen_tle_load", "(", "ret", ",", "addr", ",", "tp", ")", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "return", "ret", ";", "}", ""], "natrual_language": ["ADDR", "contains", "a", "thread-local", "SYMBOL_REF", ".", "Generate", "code", "to", "compute", "this", "(", "thread-local", ")", "address", "."], "TS_V_token": ["pa", "1"], "File": "pa", "Func": "legitimize_tls_address", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3507, "Length": 317, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTargetMachine", "::", "addInstSelector", "(", "PassManagerBase", "&", "PM", ",", "bool", "Fast", ")", "{", "PM", ".", "add", "(", "createPPCISelDag", "(", "*", "this", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["addInstSelector", "-", "This", "method", "should", "install", "an", "instruction", "selector", "pass", ",", "which", "converts", "from", "LLVM", "code", "to", "machine", "instructions", "."], "TS_V_token": ["PowerPC", "PPC", "PPC"], "File": "PPCTargetMachine70", "Func": "addInstSelector", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3508, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64AsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "if", "(", "emitPseudoExpansionLowering", "(", "OutStreamer", ",", "MI", ")", ")", "return", ";", "MCInst", "TmpInst", ";", "LowerAArch64MachineInstrToMCInst", "(", "MI", ",", "TmpInst", ",", "*", "this", ")", ";", "EmitToStreamer", "(", "OutStreamer", ",", "TmpInst", ")", ";", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64"], "File": "AArch64AsmPrinter20", "Func": "EmitInstruction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3509, "Length": 43, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "assignValueToReg", "(", "Register", "ValVReg", ",", "Register", "PhysReg", ",", "CCValAssign", "&", "VA", ")", "override", "{", "markPhysRegUsed", "(", "PhysReg", ")", ";", "IncomingValueHandler", "::", "assignValueToReg", "(", "ValVReg", ",", "PhysReg", ",", "VA", ")", ";", "}", ""], "natrual_language": ["The", "specified", "value", "has", "been", "assigned", "to", "a", "physical", "register", ",", "handle", "the", "appropriate", "COPY", "(", "either", "to", "or", "from", ")", "and", "mark", "any", "relevant", "uses/defines", "as", "needed", "."], "TS_V_token": ["X86"], "File": "X86CallLowering11", "Func": "assignValueToReg", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3510, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "standard_80387_constant_opcode", "(", "rtx", "x", ")", "{", "switch", "(", "standard_80387_constant_p", "(", "x", ")", ")", "{", "case", "1", ":", "return", "\"fldz\"", ";", "case", "2", ":", "return", "\"fld1\"", ";", "case", "3", ":", "return", "\"fldlg2\"", ";", "case", "4", ":", "return", "\"fldln2\"", ";", "case", "5", ":", "return", "\"fldl2e\"", ";", "case", "6", ":", "return", "\"fldl2t\"", ";", "case", "7", ":", "return", "\"fldpi\"", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Return", "the", "opcode", "of", "the", "special", "instruction", "to", "be", "used", "to", "load", "the", "constant", "X", "."], "TS_V_token": ["i386", "1", "\"fldz\"", "2", "\"fld1\"", "3", "\"fldlg2\"", "4", "\"fldln2\"", "5", "\"fldl2e\"", "6", "\"fldl2t\"", "7", "\"fldpi\""], "File": "i3863", "Func": "standard_80387_constant_opcode", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3511, "Length": 67, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "noncall_uses_reg", "(", "rtx", "reg", ",", "rtx_insn", "*", "insn", ",", "rtx", "*", "set", ")", "{", "*", "set", "=", "NULL_RTX", ";", "rtx", "reg2", "=", "sfunc_uses_reg", "(", "insn", ")", ";", "if", "(", "reg2", "&&", "REGNO", "(", "reg2", ")", "==", "REGNO", "(", "reg", ")", ")", "{", "rtx", "pattern", "=", "single_set", "(", "insn", ")", ";", "if", "(", "pattern", "&&", "REG_P", "(", "SET_DEST", "(", "pattern", ")", ")", "&&", "REGNO", "(", "reg", ")", "==", "REGNO", "(", "SET_DEST", "(", "pattern", ")", ")", ")", "*", "set", "=", "pattern", ";", "return", "false", ";", "}", "if", "(", "!", "CALL_P", "(", "insn", ")", ")", "{", "rtx", "pattern", "=", "single_set", "(", "insn", ")", ";", "if", "(", "pattern", "&&", "REG_P", "(", "SET_DEST", "(", "pattern", ")", ")", "&&", "REGNO", "(", "reg", ")", "==", "REGNO", "(", "SET_DEST", "(", "pattern", ")", ")", ")", "{", "rtx", "par", ",", "part", ";", "int", "i", ";", "*", "set", "=", "pattern", ";", "par", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "par", ")", "==", "PARALLEL", ")", "for", "(", "i", "=", "XVECLEN", "(", "par", ",", "0", ")", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "part", "=", "XVECEXP", "(", "par", ",", "0", ",", "i", ")", ";", "if", "(", "GET_CODE", "(", "part", ")", "!=", "SET", "&&", "reg_mentioned_p", "(", "reg", ",", "part", ")", ")", "return", "true", ";", "}", "return", "reg_mentioned_p", "(", "reg", ",", "SET_SRC", "(", "pattern", ")", ")", ";", "}", "return", "true", ";", "}", "rtx", "pattern", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "pattern", ")", "==", "PARALLEL", ")", "{", "for", "(", "int", "i", "=", "XVECLEN", "(", "pattern", ",", "0", ")", "-", "1", ";", "i", ">=", "1", ";", "i", "--", ")", "if", "(", "reg_mentioned_p", "(", "reg", ",", "XVECEXP", "(", "pattern", ",", "0", ",", "i", ")", ")", ")", "return", "true", ";", "pattern", "=", "XVECEXP", "(", "pattern", ",", "0", ",", "0", ")", ";", "}", "if", "(", "GET_CODE", "(", "pattern", ")", "==", "SET", ")", "{", "if", "(", "reg_mentioned_p", "(", "reg", ",", "SET_DEST", "(", "pattern", ")", ")", ")", "{", "if", "(", "!", "REG_P", "(", "SET_DEST", "(", "pattern", ")", ")", "||", "REGNO", "(", "reg", ")", "!=", "REGNO", "(", "SET_DEST", "(", "pattern", ")", ")", ")", "return", "true", ";", "*", "set", "=", "pattern", ";", "}", "pattern", "=", "SET_SRC", "(", "pattern", ")", ";", "}", "if", "(", "GET_CODE", "(", "pattern", ")", "!=", "CALL", "||", "!", "MEM_P", "(", "XEXP", "(", "pattern", ",", "0", ")", ")", "||", "!", "rtx_equal_p", "(", "reg", ",", "XEXP", "(", "XEXP", "(", "pattern", ",", "0", ")", ",", "0", ")", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["See", "if", "the", "only", "way", "in", "which", "INSN", "uses", "REG", "is", "by", "calling", "it", ",", "or", "by", "setting", "it", "while", "calling", "it", ".", "Set", "*", "SET", "to", "a", "SET", "rtx", "if", "the", "register", "is", "set", "by", "INSN", "."], "TS_V_token": ["sh", "0", "1", "0", "0", "0", "1", "1", "0", "0", "0", "0", "0", "0"], "File": "sh", "Func": "noncall_uses_reg", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3512, "Length": 405, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseTargetMachine", "::", "addPreRegAlloc", "(", "PassManagerBase", "&", "PM", ",", "CodeGenOpt", "::", "Level", "OptLevel", ")", "{", "if", "(", "OptLevel", "!=", "CodeGenOpt", "::", "None", "&&", "!", "Subtarget", ".", "isThumb1Only", "(", ")", ")", "PM", ".", "add", "(", "createARMLoadStoreOptimizationPass", "(", "true", ")", ")", ";", "if", "(", "ExpandMLx", "&&", "OptLevel", "!=", "CodeGenOpt", "::", "None", "&&", "Subtarget", ".", "hasVFP2", "(", ")", ")", "PM", ".", "add", "(", "createMLxExpansionPass", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "register", "allocation", "."], "TS_V_token": ["ARM", "ARM", "ARM"], "File": "ARMTargetMachine34", "Func": "addPreRegAlloc", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3513, "Length": 69, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "arm_order_regs_for_local_alloc", "(", "void", ")", "{", "const", "int", "arm_reg_alloc_order", "[", "]", "=", "REG_ALLOC_ORDER", ";", "memcpy", "(", "reg_alloc_order", ",", "arm_reg_alloc_order", ",", "sizeof", "(", "reg_alloc_order", ")", ")", ";", "if", "(", "TARGET_THUMB", ")", "memcpy", "(", "reg_alloc_order", ",", "thumb_core_reg_alloc_order", ",", "sizeof", "(", "thumb_core_reg_alloc_order", ")", ")", ";", "}", ""], "natrual_language": ["Adjust", "register", "allocation", "order", "when", "compiling", "for", "Thumb", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "arm_order_regs_for_local_alloc", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3514, "Length": 43, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ix86_function_value_regno_p", "(", "int", "regno", ")", "{", "if", "(", "regno", "==", "0", "||", "(", "regno", "==", "FIRST_FLOAT_REG", "&&", "TARGET_FLOAT_RETURNS_IN_80387", ")", "||", "(", "regno", "==", "FIRST_SSE_REG", "&&", "TARGET_SSE", ")", ")", "return", "true", ";", "if", "(", "!", "TARGET_64BIT", "&&", "(", "regno", "==", "FIRST_MMX_REG", "&&", "TARGET_MMX", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "N", "is", "a", "possible", "register", "number", "of", "function", "value", "."], "TS_V_token": ["i386", "0"], "File": "i3863", "Func": "ix86_function_value_regno_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3515, "Length": 52, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "uint32_t", "ARMMCCodeEmitter", "::", "getBranchTargetOpValue", "(", "const", "MCInst", "&", "MI", ",", "unsigned", "OpIdx", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "if", "(", "isThumb2", "(", "STI", ")", ")", "return", "::", "getBranchTargetOpValue", "(", "MI", ",", "OpIdx", ",", "ARM", "::", "fixup_t2_condbranch", ",", "Fixups", ",", "STI", ")", ";", "return", "getARMBranchTargetOpValue", "(", "MI", ",", "OpIdx", ",", "Fixups", ",", "STI", ")", ";", "}", ""], "natrual_language": ["getBranchTargetOpValue", "-", "Return", "binary", "encoding", "of", "the", "branch", "target", "operand", "."], "TS_V_token": ["ARM", "ARM", "ARM::fixup_t2_condbranch", "ARM"], "File": "ARMMCCodeEmitter1", "Func": "getBranchTargetOpValue", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3516, "Length": 64, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_adjust_counter", "(", "rtx", "countreg", ",", "HOST_WIDE_INT", "value", ")", "{", "emit_insn", "(", "gen_add2_insn", "(", "countreg", ",", "GEN_INT", "(", "-", "value", ")", ")", ")", ";", "}", ""], "natrual_language": ["Adjust", "COUNTER", "by", "the", "VALUE", "."], "TS_V_token": ["i386"], "File": "i386-expand", "Func": "ix86_adjust_counter", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3517, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "aarch64_expand_compare_and_swap", "(", "rtx", "operands", "[", "]", ")", "{", "rtx", "bval", ",", "rval", ",", "mem", ",", "oldval", ",", "newval", ",", "is_weak", ",", "mod_s", ",", "mod_f", ",", "x", ",", "cc_reg", ";", "machine_mode", "mode", ",", "r_mode", ";", "bval", "=", "operands", "[", "0", "]", ";", "rval", "=", "operands", "[", "1", "]", ";", "mem", "=", "operands", "[", "2", "]", ";", "oldval", "=", "operands", "[", "3", "]", ";", "newval", "=", "operands", "[", "4", "]", ";", "is_weak", "=", "operands", "[", "5", "]", ";", "mod_s", "=", "operands", "[", "6", "]", ";", "mod_f", "=", "operands", "[", "7", "]", ";", "mode", "=", "GET_MODE", "(", "mem", ")", ";", "if", "(", "is_mm_acquire", "(", "memmodel_from_int", "(", "INTVAL", "(", "mod_f", ")", ")", ")", "&&", "is_mm_release", "(", "memmodel_from_int", "(", "INTVAL", "(", "mod_s", ")", ")", ")", ")", "mod_s", "=", "GEN_INT", "(", "MEMMODEL_ACQ_REL", ")", ";", "r_mode", "=", "mode", ";", "if", "(", "mode", "==", "QImode", "||", "mode", "==", "HImode", ")", "{", "r_mode", "=", "SImode", ";", "rval", "=", "gen_reg_rtx", "(", "r_mode", ")", ";", "}", "if", "(", "TARGET_LSE", ")", "{", "if", "(", "reg_overlap_mentioned_p", "(", "rval", ",", "oldval", ")", ")", "rval", "=", "copy_to_mode_reg", "(", "r_mode", ",", "oldval", ")", ";", "else", "emit_move_insn", "(", "rval", ",", "gen_lowpart", "(", "r_mode", ",", "oldval", ")", ")", ";", "emit_insn", "(", "gen_aarch64_compare_and_swap_lse", "(", "mode", ",", "rval", ",", "mem", ",", "newval", ",", "mod_s", ")", ")", ";", "cc_reg", "=", "aarch64_gen_compare_reg_maybe_ze", "(", "NE", ",", "rval", ",", "oldval", ",", "mode", ")", ";", "}", "else", "if", "(", "TARGET_OUTLINE_ATOMICS", ")", "{", "if", "(", "!", "aarch64_plus_operand", "(", "oldval", ",", "mode", ")", ")", "oldval", "=", "force_reg", "(", "mode", ",", "oldval", ")", ";", "rtx", "func", "=", "aarch64_atomic_ool_func", "(", "mode", ",", "mod_s", ",", "&", "aarch64_ool_cas_names", ")", ";", "rval", "=", "emit_library_call_value", "(", "func", ",", "NULL_RTX", ",", "LCT_NORMAL", ",", "r_mode", ",", "oldval", ",", "mode", ",", "newval", ",", "mode", ",", "XEXP", "(", "mem", ",", "0", ")", ",", "Pmode", ")", ";", "cc_reg", "=", "aarch64_gen_compare_reg_maybe_ze", "(", "NE", ",", "rval", ",", "oldval", ",", "mode", ")", ";", "}", "else", "{", "insn_code", "code", "=", "code_for_aarch64_compare_and_swap", "(", "mode", ")", ";", "if", "(", "!", "insn_data", "[", "code", "]", ".", "operand", "[", "2", "]", ".", "predicate", "(", "oldval", ",", "mode", ")", ")", "oldval", "=", "force_reg", "(", "mode", ",", "oldval", ")", ";", "emit_insn", "(", "GEN_FCN", "(", "code", ")", "(", "rval", ",", "mem", ",", "oldval", ",", "newval", ",", "is_weak", ",", "mod_s", ",", "mod_f", ")", ")", ";", "cc_reg", "=", "gen_rtx_REG", "(", "CCmode", ",", "CC_REGNUM", ")", ";", "}", "if", "(", "r_mode", "!=", "mode", ")", "rval", "=", "gen_lowpart", "(", "mode", ",", "rval", ")", ";", "emit_move_insn", "(", "operands", "[", "1", "]", ",", "rval", ")", ";", "x", "=", "gen_rtx_EQ", "(", "SImode", ",", "cc_reg", ",", "const0_rtx", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "bval", ",", "x", ")", ")", ";", "}", ""], "natrual_language": ["Expand", "a", "compare", "and", "swap", "pattern", "."], "TS_V_token": ["aarch64", "0", "1", "2", "3", "4", "5", "6", "7", "0", "2", "1"], "File": "aarch64", "Func": "aarch64_expand_compare_and_swap", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3518, "Length": 423, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "SystemZRegisterInfo", "::", "getFrameRegister", "(", "MachineFunction", "&", "MF", ")", "const", "{", "assert", "(", "0", "&&", "\"What is the frame register\"", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["Debug", "information", "queries", "."], "TS_V_token": ["SystemZ", "SystemZ", "0", "\"What is the frame register\"", "0"], "File": "SystemZRegisterInfo37", "Func": "getFrameRegister", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3519, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_evpc_neon_vtrn", "(", "struct", "expand_vec_perm_d", "*", "d", ")", "{", "unsigned", "int", "i", ",", "odd", ",", "mask", ",", "nelt", "=", "d", "->", "perm", ".", "length", "(", ")", ";", "rtx", "out0", ",", "out1", ",", "in0", ",", "in1", ";", "rtx", "(", "*", "gen", ")", "(", "rtx", ",", "rtx", ",", "rtx", ",", "rtx", ")", ";", "if", "(", "GET_MODE_UNIT_SIZE", "(", "d", "->", "vmode", ")", ">=", "8", ")", "return", "false", ";", "if", "(", "d", "->", "perm", "[", "0", "]", "==", "0", ")", "odd", "=", "0", ";", "else", "if", "(", "d", "->", "perm", "[", "0", "]", "==", "1", ")", "odd", "=", "1", ";", "else", "return", "false", ";", "mask", "=", "(", "d", "->", "one_vector_p", "?", "nelt", "-", "1", ":", "2", "*", "nelt", "-", "1", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "nelt", ";", "i", "+=", "2", ")", "{", "if", "(", "d", "->", "perm", "[", "i", "]", "!=", "i", "+", "odd", ")", "return", "false", ";", "if", "(", "d", "->", "perm", "[", "i", "+", "1", "]", "!=", "(", "(", "i", "+", "nelt", "+", "odd", ")", "&", "mask", ")", ")", "return", "false", ";", "}", "if", "(", "d", "->", "testing_p", ")", "return", "true", ";", "switch", "(", "d", "->", "vmode", ")", "{", "case", "E_V16QImode", ":", "gen", "=", "gen_neon_vtrnv16qi_internal", ";", "break", ";", "case", "E_V8QImode", ":", "gen", "=", "gen_neon_vtrnv8qi_internal", ";", "break", ";", "case", "E_V8HImode", ":", "gen", "=", "gen_neon_vtrnv8hi_internal", ";", "break", ";", "case", "E_V4HImode", ":", "gen", "=", "gen_neon_vtrnv4hi_internal", ";", "break", ";", "case", "E_V8HFmode", ":", "gen", "=", "gen_neon_vtrnv8hf_internal", ";", "break", ";", "case", "E_V4HFmode", ":", "gen", "=", "gen_neon_vtrnv4hf_internal", ";", "break", ";", "case", "E_V4SImode", ":", "gen", "=", "gen_neon_vtrnv4si_internal", ";", "break", ";", "case", "E_V2SImode", ":", "gen", "=", "gen_neon_vtrnv2si_internal", ";", "break", ";", "case", "E_V2SFmode", ":", "gen", "=", "gen_neon_vtrnv2sf_internal", ";", "break", ";", "case", "E_V4SFmode", ":", "gen", "=", "gen_neon_vtrnv4sf_internal", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "in0", "=", "d", "->", "op0", ";", "in1", "=", "d", "->", "op1", ";", "if", "(", "BYTES_BIG_ENDIAN", ")", "{", "std", "::", "swap", "(", "in0", ",", "in1", ")", ";", "odd", "=", "!", "odd", ";", "}", "out0", "=", "d", "->", "target", ";", "out1", "=", "gen_reg_rtx", "(", "d", "->", "vmode", ")", ";", "if", "(", "odd", ")", "std", "::", "swap", "(", "out0", ",", "out1", ")", ";", "emit_insn", "(", "gen", "(", "out0", ",", "in0", ",", "in1", ",", "out1", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Recognize", "patterns", "for", "the", "VTRN", "insns", "."], "TS_V_token": ["arm", "8", "0", "0", "0", "0", "1", "1", "1", "2", "1", "0", "2", "1"], "File": "arm7", "Func": "arm_evpc_neon_vtrn", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3520, "Length": 368, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "bool", "isProfitableToUnpredicate", "(", "MachineBasicBlock", "&", "TMBB", ",", "MachineBasicBlock", "&", "FMBB", ")", "const", "{", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "it", "'s", "profitable", "to", "unpredicate", "one", "side", "of", "a", "'diamond", "'", ",", "i.e", "."], "TS_V_token": ["PowerPC"], "File": "PPCInstrInfo15", "Func": "isProfitableToUnpredicate", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3521, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_vectorize_vec_perm_const", "(", "machine_mode", "vmode", ",", "rtx", "target", ",", "rtx", "op0", ",", "rtx", "op1", ",", "const", "vec_perm_indices", "&", "sel", ")", "{", "struct", "expand_vec_perm_d", "d", ";", "if", "(", "sel", ".", "ninputs", "(", ")", "==", "1", "||", "(", "op0", "&&", "rtx_equal_p", "(", "op0", ",", "op1", ")", ")", ")", "d", ".", "one_vector_p", "=", "true", ";", "else", "if", "(", "sel", ".", "all_from_input_p", "(", "0", ")", ")", "{", "d", ".", "one_vector_p", "=", "true", ";", "op1", "=", "op0", ";", "}", "else", "if", "(", "sel", ".", "all_from_input_p", "(", "1", ")", ")", "{", "d", ".", "one_vector_p", "=", "true", ";", "op0", "=", "op1", ";", "}", "else", "d", ".", "one_vector_p", "=", "false", ";", "d", ".", "perm", ".", "new_vector", "(", "sel", ".", "encoding", "(", ")", ",", "d", ".", "one_vector_p", "?", "1", ":", "2", ",", "sel", ".", "nelts_per_input", "(", ")", ")", ";", "d", ".", "vmode", "=", "vmode", ";", "d", ".", "vec_flags", "=", "aarch64_classify_vector_mode", "(", "d", ".", "vmode", ")", ";", "d", ".", "target", "=", "target", ";", "d", ".", "op0", "=", "op0", ";", "d", ".", "op1", "=", "op1", ";", "d", ".", "testing_p", "=", "!", "target", ";", "if", "(", "!", "d", ".", "testing_p", ")", "return", "aarch64_expand_vec_perm_const_1", "(", "&", "d", ")", ";", "rtx_insn", "*", "last", "=", "get_last_insn", "(", ")", ";", "bool", "ret", "=", "aarch64_expand_vec_perm_const_1", "(", "&", "d", ")", ";", "gcc_assert", "(", "last", "==", "get_last_insn", "(", ")", ")", ";", "return", "ret", ";", "}", ""], "natrual_language": ["Implement", "TARGET_VECTORIZE_VEC_PERM_CONST", "."], "TS_V_token": ["aarch64", "1", "0", "1", "1", "2"], "File": "aarch64", "Func": "aarch64_vectorize_vec_perm_const", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3522, "Length": 217, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "X86MachineFunctionInfo", "*", "MFI", "=", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", ";", "if", "(", "MFI", "->", "getNumLocalDynamicTLSAccesses", "(", ")", "<", "2", ")", "{", "return", "false", ";", "}", "MachineDominatorTree", "*", "DT", "=", "&", "getAnalysis", "<", "MachineDominatorTree", ">", "(", ")", ";", "return", "VisitNode", "(", "DT", "->", "getRootNode", "(", ")", ",", "0", ")", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "2", "0"], "File": "X86InstrInfo (2)3", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3523, "Length": 76, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "rx_handle_func_attribute", "(", "tree", "*", "node", ",", "tree", "name", ",", "tree", "args", "ATTRIBUTE_UNUSED", ",", "int", "flags", "ATTRIBUTE_UNUSED", ",", "bool", "*", "no_add_attrs", ")", "{", "gcc_assert", "(", "DECL_P", "(", "*", "node", ")", ")", ";", "if", "(", "TREE_CODE", "(", "*", "node", ")", "!=", "FUNCTION_DECL", ")", "{", "warning", "(", "OPT_Wattributes", ",", "\"%qE attribute only applies to functions\"", ",", "name", ")", ";", "*", "no_add_attrs", "=", "true", ";", "}", "return", "NULL_TREE", ";", "}", ""], "natrual_language": ["Check", "``", "fast_interrupt", "''", ",", "``", "interrupt", "''", "and", "``", "naked", "''", "attributes", "."], "TS_V_token": ["rx", "\"%qE attribute only applies to functions\""], "File": "rx", "Func": "rx_handle_func_attribute", "Target": "rx", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3524, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetMachine", "::", "addPreRegAlloc", "(", "PassManagerBase", "&", "PM", ",", "bool", "Fast", ")", "{", "PM", ".", "add", "(", "createX86MaxStackAlignmentCalculatorPass", "(", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "register", "allocation", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86TargetMachine92", "Func": "addPreRegAlloc", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3525, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "standard_80387_constant_rtx", "(", "int", "idx", ")", "{", "int", "i", ";", "if", "(", "!", "ext_80387_constants_init", ")", "init_ext_80387_constants", "(", ")", ";", "switch", "(", "idx", ")", "{", "case", "3", ":", "case", "4", ":", "case", "5", ":", "case", "6", ":", "case", "7", ":", "i", "=", "idx", "-", "3", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "return", "const_double_from_real_value", "(", "ext_80387_constants_table", "[", "i", "]", ",", "XFmode", ")", ";", "}", ""], "natrual_language": ["Return", "the", "CONST_DOUBLE", "representing", "the", "80387", "constant", "that", "is", "loaded", "by", "the", "specified", "special", "instruction", ".", "The", "argument", "IDX", "matches", "the", "return", "value", "from", "standard_80387_constant_p", "."], "TS_V_token": ["i386", "3", "4", "5", "6", "7", "3"], "File": "i386", "Func": "standard_80387_constant_rtx", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3526, "Length": 66, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMPassConfig", "::", "addPreSched2", "(", ")", "{", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "if", "(", "EnableARMLoadStoreOpt", ")", "addPass", "(", "createARMLoadStoreOptimizationPass", "(", ")", ")", ";", "addPass", "(", "new", "ARMExecutionDomainFix", "(", ")", ")", ";", "addPass", "(", "createBreakFalseDeps", "(", ")", ")", ";", "}", "addPass", "(", "createARMExpandPseudoPass", "(", ")", ")", ";", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "addPass", "(", "createThumb2SizeReductionPass", "(", "[", "this", "]", "(", "const", "Function", "&", "F", ")", "{", "return", "this", "->", "TM", "->", "getSubtarget", "<", "ARMSubtarget", ">", "(", "F", ")", ".", "restrictIT", "(", ")", ";", "}", ")", ")", ";", "addPass", "(", "createIfConverter", "(", "[", "]", "(", "const", "MachineFunction", "&", "MF", ")", "{", "return", "!", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ".", "isThumb1Only", "(", ")", ";", "}", ")", ")", ";", "}", "addPass", "(", "createMVEVPTBlockPass", "(", ")", ")", ";", "addPass", "(", "createThumb2ITBlockPass", "(", ")", ")", ";", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "addPass", "(", "&", "PostMachineSchedulerID", ")", ";", "addPass", "(", "&", "PostRASchedulerID", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "after", "prolog-epilog", "insertion", "and", "before", "the", "second", "instruction", "scheduling", "pass", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM"], "File": "ARMTargetMachine10", "Func": "addPreSched2", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3527, "Length": 170, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "loongarch_binary_cost", "(", "rtx", "x", ",", "int", "single_cost", ",", "int", "double_cost", ",", "bool", "speed", ")", "{", "int", "cost", ";", "if", "(", "GET_MODE_SIZE", "(", "GET_MODE", "(", "x", ")", ")", "==", "UNITS_PER_WORD", "*", "2", ")", "cost", "=", "double_cost", ";", "else", "cost", "=", "single_cost", ";", "return", "(", "cost", "+", "set_src_cost", "(", "XEXP", "(", "x", ",", "0", ")", ",", "GET_MODE", "(", "x", ")", ",", "speed", ")", "+", "rtx_cost", "(", "XEXP", "(", "x", ",", "1", ")", ",", "GET_MODE", "(", "x", ")", ",", "GET_CODE", "(", "x", ")", ",", "1", ",", "speed", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "cost", "of", "binary", "operation", "X", ",", "given", "that", "the", "instruction", "sequence", "for", "a", "word-sized", "or", "smaller", "operation", "has", "cost", "SINGLE_COST", "and", "that", "the", "sequence", "of", "a", "double-word", "operation", "has", "cost", "DOUBLE_COST", ".", "If", "SPEED", "is", "true", ",", "optimize", "for", "speed", "otherwise", "optimize", "for", "size", "."], "TS_V_token": ["loongarch", "2", "0", "1", "1"], "File": "loongarch", "Func": "loongarch_binary_cost", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3528, "Length": 90, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "uint64_t", "getReturnSaveOffset", "(", ")", "const", "{", "return", "ReturnSaveOffset", ";", "}", ""], "natrual_language": ["getReturnSaveOffset", "-", "Return", "the", "previous", "frame", "offset", "to", "save", "the", "return", "address", "."], "TS_V_token": ["PowerPC"], "File": "PPCFrameLowering30", "Func": "getReturnSaveOffset", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3529, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64AsmParser", "::", "parsePrimaryExpr", "(", "const", "MCExpr", "*", "&", "Res", ",", "SMLoc", "&", "EndLoc", ")", "{", "if", "(", "!", "parseAuthExpr", "(", "Res", ",", "EndLoc", ")", ")", "return", "false", ";", "return", "getParser", "(", ")", ".", "parsePrimaryExpr", "(", "Res", ",", "EndLoc", ")", ";", "}", ""], "natrual_language": ["Parse", "a", "primary", "expression", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64AsmParser103", "Func": "parsePrimaryExpr", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3530, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnModule", "(", "Module", "&", "M", ")", "override", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "getPassName", "(", ")", "<<", "'\\n'", ")", ";", "if", "(", "skipModule", "(", "M", ")", ")", "return", "false", ";", "bool", "Changed", "=", "false", ";", "PromotionCacheTy", "PromotionCache", ";", "for", "(", "auto", "&", "MF", ":", "M", ")", "{", "Changed", "|=", "runOnFunction", "(", "MF", ",", "PromotionCache", ")", ";", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnModule", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "process", "the", "module", "being", "operated", "on", "."], "TS_V_token": ["AArch64"], "File": "AArch64PromoteConstant14", "Func": "runOnModule", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3531, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "mips_binary_cost", "(", "rtx", "x", ",", "int", "single_cost", ",", "int", "double_cost", ",", "bool", "speed", ")", "{", "int", "cost", ";", "if", "(", "GET_MODE_SIZE", "(", "GET_MODE", "(", "x", ")", ")", "==", "UNITS_PER_WORD", "*", "2", ")", "cost", "=", "double_cost", ";", "else", "cost", "=", "single_cost", ";", "return", "(", "cost", "+", "set_src_cost", "(", "XEXP", "(", "x", ",", "0", ")", ",", "speed", ")", "+", "rtx_cost", "(", "XEXP", "(", "x", ",", "1", ")", ",", "GET_CODE", "(", "x", ")", ",", "1", ",", "speed", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "cost", "of", "binary", "operation", "X", ",", "given", "that", "the", "instruction", "sequence", "for", "a", "word-sized", "or", "smaller", "operation", "has", "cost", "SINGLE_COST", "and", "that", "the", "sequence", "of", "a", "double-word", "operation", "has", "cost", "DOUBLE_COST", ".", "If", "SPEED", "is", "true", ",", "optimize", "for", "speed", "otherwise", "optimize", "for", "size", "."], "TS_V_token": ["mips", "2", "0", "1", "1"], "File": "mips4", "Func": "mips_binary_cost", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3532, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "bool", "offset_below_red_zone_p", "(", "HOST_WIDE_INT", "offset", ")", "{", "return", "offset", "<", "(", "DEFAULT_ABI", "==", "ABI_V4", "?", "0", ":", "TARGET_32BIT", "?", "-", "220", ":", "-", "288", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "OFFSET", "from", "stack", "pointer", "can", "be", "clobbered", "by", "signals", ".", "V.4", "does", "n't", "have", "any", "stack", "cushion", ",", "AIX", "ABIs", "have", "220", "or", "288", "bytes", "below", "stack", "pointer", "not", "cloberred", "by", "signals", "."], "TS_V_token": ["powerpcspe", "0", "220", "288"], "File": "powerpcspe", "Func": "offset_below_red_zone_p", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3533, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "rs6000_psave_function_arg", "(", "machine_mode", "mode", ",", "const_tree", "type", ",", "int", "align_words", ",", "rtx", "*", "rvec", ")", "{", "int", "k", "=", "0", ";", "if", "(", "align_words", "<", "GP_ARG_NUM_REG", ")", "{", "int", "n_words", "=", "rs6000_arg_size", "(", "mode", ",", "type", ")", ";", "if", "(", "align_words", "+", "n_words", ">", "GP_ARG_NUM_REG", "||", "mode", "==", "BLKmode", "||", "(", "TARGET_32BIT", "&&", "TARGET_POWERPC64", ")", ")", "{", "machine_mode", "rmode", "=", "TARGET_32BIT", "?", "SImode", ":", "DImode", ";", "int", "i", "=", "0", ";", "if", "(", "align_words", "+", "n_words", ">", "GP_ARG_NUM_REG", ")", "{", "rvec", "[", "k", "++", "]", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "NULL_RTX", ",", "const0_rtx", ")", ";", "}", "do", "{", "rtx", "r", "=", "gen_rtx_REG", "(", "rmode", ",", "GP_ARG_MIN_REG", "+", "align_words", ")", ";", "rtx", "off", "=", "GEN_INT", "(", "i", "++", "*", "GET_MODE_SIZE", "(", "rmode", ")", ")", ";", "rvec", "[", "k", "++", "]", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "r", ",", "off", ")", ";", "}", "while", "(", "++", "align_words", "<", "GP_ARG_NUM_REG", "&&", "--", "n_words", "!=", "0", ")", ";", "}", "else", "{", "rtx", "r", "=", "gen_rtx_REG", "(", "mode", ",", "GP_ARG_MIN_REG", "+", "align_words", ")", ";", "rvec", "[", "k", "++", "]", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "r", ",", "const0_rtx", ")", ";", "}", "}", "else", "{", "rvec", "[", "k", "++", "]", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "NULL_RTX", ",", "const0_rtx", ")", ";", "}", "return", "k", ";", "}", ""], "natrual_language": ["We", "have", "an", "argument", "of", "MODE", "and", "TYPE", "that", "goes", "into", "FPRs", "or", "VRs", ",", "but", "must", "also", "be", "copied", "into", "the", "parameter", "save", "area", "starting", "at", "offset", "ALIGN_WORDS", ".", "Fill", "in", "RVEC", "with", "the", "elements", "corresponding", "to", "the", "GPRs", "and/or", "memory", ".", "Return", "the", "number", "of", "elements", "used", "."], "TS_V_token": ["powerpcspe", "0", "0", "0"], "File": "powerpcspe", "Func": "rs6000_psave_function_arg", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3534, "Length": 209, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ia32_multipass_dfa_lookahead", "(", "void", ")", "{", "switch", "(", "ix86_tune", ")", "{", "case", "PROCESSOR_PENTIUM", ":", "return", "2", ";", "case", "PROCESSOR_PENTIUMPRO", ":", "case", "PROCESSOR_K6", ":", "return", "1", ";", "case", "PROCESSOR_BDVER1", ":", "case", "PROCESSOR_BDVER2", ":", "case", "PROCESSOR_BDVER3", ":", "case", "PROCESSOR_BDVER4", ":", "return", "4", ";", "case", "PROCESSOR_CORE2", ":", "case", "PROCESSOR_NEHALEM", ":", "case", "PROCESSOR_SANDYBRIDGE", ":", "case", "PROCESSOR_HASWELL", ":", "case", "PROCESSOR_BONNELL", ":", "case", "PROCESSOR_SILVERMONT", ":", "case", "PROCESSOR_KNL", ":", "case", "PROCESSOR_INTEL", ":", "if", "(", "reload_completed", ")", "return", "ix86_issue_rate", "(", ")", ";", "return", "0", ";", "default", ":", "return", "0", ";", "}", "}", ""], "natrual_language": ["How", "many", "alternative", "schedules", "to", "try", ".", "This", "should", "be", "as", "wide", "as", "the", "scheduling", "freedom", "in", "the", "DFA", ",", "but", "no", "wider", ".", "Making", "this", "value", "too", "large", "results", "extra", "work", "for", "the", "scheduler", "."], "TS_V_token": ["i386", "2", "1", "4", "0", "0"], "File": "i3864", "Func": "ia32_multipass_dfa_lookahead", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3535, "Length": 85, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "get_element_number", "(", "tree", "vec_type", ",", "tree", "arg", ")", "{", "unsigned", "HOST_WIDE_INT", "elt", ",", "max", "=", "TYPE_VECTOR_SUBPARTS", "(", "vec_type", ")", "-", "1", ";", "if", "(", "!", "tree_fits_uhwi_p", "(", "arg", ")", "||", "(", "elt", "=", "tree_to_uhwi", "(", "arg", ")", ",", "elt", ">", "max", ")", ")", "{", "error", "(", "\"selector must be an integer constant in the range \"", "\"[0, %wi]\"", ",", "max", ")", ";", "return", "0", ";", "}", "return", "elt", ";", "}", ""], "natrual_language": ["Return", "the", "integer", "constant", "in", "ARG", ".", "Constrain", "it", "to", "be", "in", "the", "range", "of", "the", "subparts", "of", "VEC_TYPE", ";", "issue", "an", "error", "if", "not", "."], "TS_V_token": ["i386", "1", "\"selector must be an integer constant in the range \"", "\"[0, %wi]\"", "0"], "File": "i386-expand", "Func": "get_element_number", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3536, "Length": 62, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "isAsCheapAsAMove", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "if", "(", "!", "Subtarget", ".", "hasCustomCheapAsMoveHandling", "(", ")", ")", "return", "MI", ".", "isAsCheapAsAMove", "(", ")", ";", "unsigned", "Imm", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "false", ";", "case", "AArch64", "::", "ADDWri", ":", "case", "AArch64", "::", "ADDXri", ":", "case", "AArch64", "::", "SUBWri", ":", "case", "AArch64", "::", "SUBXri", ":", "return", "(", "Subtarget", ".", "getProcFamily", "(", ")", "==", "AArch64Subtarget", "::", "ExynosM1", "||", "MI", ".", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", "==", "0", ")", ";", "case", "AArch64", "::", "ADDWrs", ":", "case", "AArch64", "::", "ADDXrs", ":", "case", "AArch64", "::", "SUBWrs", ":", "case", "AArch64", "::", "SUBXrs", ":", "Imm", "=", "MI", ".", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", ";", "return", "(", "Subtarget", ".", "getProcFamily", "(", ")", "==", "AArch64Subtarget", "::", "ExynosM1", "&&", "AArch64_AM", "::", "getArithShiftValue", "(", "Imm", ")", "<", "4", ")", ";", "case", "AArch64", "::", "ANDWri", ":", "case", "AArch64", "::", "ANDXri", ":", "case", "AArch64", "::", "EORWri", ":", "case", "AArch64", "::", "EORXri", ":", "case", "AArch64", "::", "ORRWri", ":", "case", "AArch64", "::", "ORRXri", ":", "return", "true", ";", "case", "AArch64", "::", "ANDWrr", ":", "case", "AArch64", "::", "ANDXrr", ":", "case", "AArch64", "::", "BICWrr", ":", "case", "AArch64", "::", "BICXrr", ":", "case", "AArch64", "::", "EONWrr", ":", "case", "AArch64", "::", "EONXrr", ":", "case", "AArch64", "::", "EORWrr", ":", "case", "AArch64", "::", "EORXrr", ":", "case", "AArch64", "::", "ORNWrr", ":", "case", "AArch64", "::", "ORNXrr", ":", "case", "AArch64", "::", "ORRWrr", ":", "case", "AArch64", "::", "ORRXrr", ":", "return", "true", ";", "case", "AArch64", "::", "ANDWrs", ":", "case", "AArch64", "::", "ANDXrs", ":", "case", "AArch64", "::", "BICWrs", ":", "case", "AArch64", "::", "BICXrs", ":", "case", "AArch64", "::", "EONWrs", ":", "case", "AArch64", "::", "EONXrs", ":", "case", "AArch64", "::", "EORWrs", ":", "case", "AArch64", "::", "EORXrs", ":", "case", "AArch64", "::", "ORNWrs", ":", "case", "AArch64", "::", "ORNXrs", ":", "case", "AArch64", "::", "ORRWrs", ":", "case", "AArch64", "::", "ORRXrs", ":", "Imm", "=", "MI", ".", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", ";", "return", "(", "Subtarget", ".", "getProcFamily", "(", ")", "==", "AArch64Subtarget", "::", "ExynosM1", "&&", "AArch64_AM", "::", "getShiftValue", "(", "Imm", ")", "<", "4", "&&", "AArch64_AM", "::", "getShiftType", "(", "Imm", ")", "==", "AArch64_AM", "::", "LSL", ")", ";", "case", "AArch64", "::", "MOVi32imm", ":", "return", "canBeExpandedToORR", "(", "MI", ",", "32", ")", ";", "case", "AArch64", "::", "MOVi64imm", ":", "return", "canBeExpandedToORR", "(", "MI", ",", "64", ")", ";", "case", "AArch64", "::", "FMOVS0", ":", "case", "AArch64", "::", "FMOVD0", ":", "return", "Subtarget", ".", "hasZeroCycleZeroing", "(", ")", ";", "case", "TargetOpcode", "::", "COPY", ":", "return", "(", "Subtarget", ".", "hasZeroCycleZeroing", "(", ")", "&&", "(", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", "==", "AArch64", "::", "WZR", "||", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", "==", "AArch64", "::", "XZR", ")", ")", ";", "}", "llvm_unreachable", "(", "\"Unknown opcode to check as cheap as a move!\"", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "instruction", "is", "as", "cheap", "as", "a", "move", "instruction", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::ADDWri", "AArch64::ADDXri", "AArch64::SUBWri", "AArch64::SUBXri", "AArch64", "3", "0", "AArch64::ADDWrs", "AArch64::ADDXrs", "AArch64::SUBWrs", "AArch64::SUBXrs", "3", "AArch64", "AArch64_AM::getArithShiftValue", "4", "AArch64::ANDWri", "AArch64::ANDXri", "AArch64::EORWri", "AArch64::EORXri", "AArch64::ORRWri", "AArch64::ORRXri", "AArch64::ANDWrr", "AArch64::ANDXrr", "AArch64::BICWrr", "AArch64::BICXrr", "AArch64::EONWrr", "AArch64::EONXrr", "AArch64::EORWrr", "AArch64::EORXrr", "AArch64::ORNWrr", "AArch64::ORNXrr", "AArch64::ORRWrr", "AArch64::ORRXrr", "AArch64::ANDWrs", "AArch64::ANDXrs", "AArch64::BICWrs", "AArch64::BICXrs", "AArch64::EONWrs", "AArch64::EONXrs", "AArch64::EORWrs", "AArch64::EORXrs", "AArch64::ORNWrs", "AArch64::ORNXrs", "AArch64::ORRWrs", "AArch64::ORRXrs", "3", "AArch64", "AArch64_AM::getShiftValue", "4", "AArch64_AM::getShiftType", "AArch64_AM::LSL", "AArch64::MOVi32imm", "32", "AArch64::MOVi64imm", "64", "AArch64::FMOVS0", "AArch64::FMOVD0", "1", "AArch64::WZR", "1", "AArch64::XZR", "\"Unknown opcode to check as cheap as a move!\""], "File": "AArch64InstrInfo109", "Func": "isAsCheapAsAMove", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3537, "Length": 444, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "standard_sse_constant_p", "(", "rtx", "x", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "x", ")", ";", "if", "(", "x", "==", "const0_rtx", "||", "x", "==", "CONST0_RTX", "(", "GET_MODE", "(", "x", ")", ")", ")", "return", "1", ";", "if", "(", "vector_all_ones_operand", "(", "x", ",", "mode", ")", ")", "switch", "(", "mode", ")", "{", "case", "V16QImode", ":", "case", "V8HImode", ":", "case", "V4SImode", ":", "case", "V2DImode", ":", "if", "(", "TARGET_SSE2", ")", "return", "2", ";", "case", "V32QImode", ":", "case", "V16HImode", ":", "case", "V8SImode", ":", "case", "V4DImode", ":", "if", "(", "TARGET_AVX2", ")", "return", "2", ";", "case", "V64QImode", ":", "case", "V32HImode", ":", "case", "V16SImode", ":", "case", "V8DImode", ":", "if", "(", "TARGET_AVX512F", ")", "return", "2", ";", "default", ":", "break", ";", "}", "return", "0", ";", "}", ""], "natrual_language": ["Return", "1", "if", "X", "is", "all", "0s", "and", "2", "if", "x", "is", "all", "1s", "in", "supported", "SSE/AVX", "vector", "mode", "."], "TS_V_token": ["i386", "1", "2", "2", "2", "0"], "File": "i3864", "Func": "standard_sse_constant_p", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3538, "Length": 114, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "aarch64_split_simd_combine", "(", "rtx", "dst", ",", "rtx", "src1", ",", "rtx", "src2", ")", "{", "machine_mode", "src_mode", "=", "GET_MODE", "(", "src1", ")", ";", "machine_mode", "dst_mode", "=", "GET_MODE", "(", "dst", ")", ";", "gcc_assert", "(", "VECTOR_MODE_P", "(", "dst_mode", ")", ")", ";", "if", "(", "REG_P", "(", "dst", ")", "&&", "REG_P", "(", "src1", ")", "&&", "REG_P", "(", "src2", ")", ")", "{", "rtx", "(", "*", "gen", ")", "(", "rtx", ",", "rtx", ",", "rtx", ")", ";", "switch", "(", "src_mode", ")", "{", "case", "V8QImode", ":", "gen", "=", "gen_aarch64_simd_combinev8qi", ";", "break", ";", "case", "V4HImode", ":", "gen", "=", "gen_aarch64_simd_combinev4hi", ";", "break", ";", "case", "V2SImode", ":", "gen", "=", "gen_aarch64_simd_combinev2si", ";", "break", ";", "case", "V4HFmode", ":", "gen", "=", "gen_aarch64_simd_combinev4hf", ";", "break", ";", "case", "V2SFmode", ":", "gen", "=", "gen_aarch64_simd_combinev2sf", ";", "break", ";", "case", "DImode", ":", "gen", "=", "gen_aarch64_simd_combinedi", ";", "break", ";", "case", "DFmode", ":", "gen", "=", "gen_aarch64_simd_combinedf", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "emit_insn", "(", "gen", "(", "dst", ",", "src1", ",", "src2", ")", ")", ";", "return", ";", "}", "}", ""], "natrual_language": ["Split", "a", "complex", "SIMD", "combine", "."], "TS_V_token": ["aarch64"], "File": "aarch643", "Func": "aarch64_split_simd_combine", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3539, "Length": 159, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsTargetLowering", "::", "getRegisterByName", "(", "const", "char", "*", "RegName", ",", "EVT", "VT", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "if", "(", "Subtarget", ".", "isGP64bit", "(", ")", ")", "{", "unsigned", "Reg", "=", "StringSwitch", "<", "unsigned", ">", "(", "RegName", ")", ".", "Case", "(", "\"$28\"", ",", "Mips", "::", "GP_64", ")", ".", "Default", "(", "0", ")", ";", "if", "(", "Reg", ")", "return", "Reg", ";", "}", "else", "{", "unsigned", "Reg", "=", "StringSwitch", "<", "unsigned", ">", "(", "RegName", ")", ".", "Case", "(", "\"$28\"", ",", "Mips", "::", "GP", ")", ".", "Default", "(", "0", ")", ";", "if", "(", "Reg", ")", "return", "Reg", ";", "}", "report_fatal_error", "(", "\"Invalid register name global variable\"", ")", ";", "}", ""], "natrual_language": ["Return", "the", "register", "ID", "of", "the", "name", "passed", "in", "."], "TS_V_token": ["Mips", "Mips", "\"$28\"", "Mips::GP_64", "0", "\"$28\"", "Mips::GP", "0", "\"Invalid register name global variable\""], "File": "MipsISelLowering (2)5", "Func": "getRegisterByName", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3540, "Length": 102, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_assemble_integer", "(", "rtx", "x", ",", "unsigned", "int", "size", ",", "int", "aligned_p", ")", "{", "machine_mode", "mode", ";", "if", "(", "size", "==", "UNITS_PER_WORD", "&&", "aligned_p", ")", "{", "fputs", "(", "\"\\t.word\\t\"", ",", "asm_out_file", ")", ";", "output_addr_const", "(", "asm_out_file", ",", "x", ")", ";", "if", "(", "NEED_GOT_RELOC", "&&", "flag_pic", "&&", "making_const_table", "&&", "(", "GET_CODE", "(", "x", ")", "==", "SYMBOL_REF", "||", "GET_CODE", "(", "x", ")", "==", "LABEL_REF", ")", ")", "{", "if", "(", "!", "arm_pic_data_is_text_relative", "||", "(", "GET_CODE", "(", "x", ")", "==", "SYMBOL_REF", "&&", "!", "SYMBOL_REF_LOCAL_P", "(", "x", ")", ")", ")", "fputs", "(", "\"(GOT)\"", ",", "asm_out_file", ")", ";", "else", "fputs", "(", "\"(GOTOFF)\"", ",", "asm_out_file", ")", ";", "}", "fputc", "(", "'\\n'", ",", "asm_out_file", ")", ";", "return", "true", ";", "}", "mode", "=", "GET_MODE", "(", "x", ")", ";", "if", "(", "arm_vector_mode_supported_p", "(", "mode", ")", ")", "{", "int", "i", ",", "units", ";", "gcc_assert", "(", "GET_CODE", "(", "x", ")", "==", "CONST_VECTOR", ")", ";", "units", "=", "CONST_VECTOR_NUNITS", "(", "x", ")", ";", "size", "=", "GET_MODE_SIZE", "(", "GET_MODE_INNER", "(", "mode", ")", ")", ";", "if", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_VECTOR_INT", ")", "for", "(", "i", "=", "0", ";", "i", "<", "units", ";", "i", "++", ")", "{", "rtx", "elt", "=", "CONST_VECTOR_ELT", "(", "x", ",", "i", ")", ";", "assemble_integer", "(", "elt", ",", "size", ",", "i", "==", "0", "?", "BIGGEST_ALIGNMENT", ":", "size", "*", "BITS_PER_UNIT", ",", "1", ")", ";", "}", "else", "for", "(", "i", "=", "0", ";", "i", "<", "units", ";", "i", "++", ")", "{", "rtx", "elt", "=", "CONST_VECTOR_ELT", "(", "x", ",", "i", ")", ";", "REAL_VALUE_TYPE", "rval", ";", "REAL_VALUE_FROM_CONST_DOUBLE", "(", "rval", ",", "elt", ")", ";", "assemble_real", "(", "rval", ",", "GET_MODE_INNER", "(", "mode", ")", ",", "i", "==", "0", "?", "BIGGEST_ALIGNMENT", ":", "size", "*", "BITS_PER_UNIT", ")", ";", "}", "return", "true", ";", "}", "return", "default_assemble_integer", "(", "x", ",", "size", ",", "aligned_p", ")", ";", "}", ""], "natrual_language": ["Target", "hook", "for", "assembling", "integer", "objects", ".", "The", "ARM", "version", "needs", "to", "handle", "word-sized", "values", "specially", "."], "TS_V_token": ["arm", "\"\\t.word\\t\"", "\"(GOT)\"", "\"(GOTOFF)\"", "0", "0", "1", "0", "0"], "File": "arm4", "Func": "arm_assemble_integer", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3541, "Length": 284, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "MCInst", "&", "Res", ")", "const", "override", "{", "report_fatal_error", "(", "\"CAHPAsmBackend::relaxInstruction() unimplemented\"", ")", ";", "}", ""], "natrual_language": ["Relax", "the", "instruction", "in", "the", "given", "fragment", "to", "the", "next", "wider", "instruction", "."], "TS_V_token": ["CAHP", "\"CAHPAsmBackend::relaxInstruction() unimplemented\""], "File": "CAHPAsmBackend", "Func": "relaxInstruction", "Target": "CAHP", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3542, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TTIImpl", "::", "isLegalMaskedGather", "(", "Type", "*", "DataTy", ")", "{", "if", "(", "!", "(", "ST", "->", "hasAVX512", "(", ")", "||", "(", "ST", "->", "hasFastGather", "(", ")", "&&", "ST", "->", "hasAVX2", "(", ")", ")", ")", ")", "return", "false", ";", "if", "(", "isa", "<", "VectorType", ">", "(", "DataTy", ")", ")", "{", "unsigned", "NumElts", "=", "DataTy", "->", "getVectorNumElements", "(", ")", ";", "if", "(", "NumElts", "==", "1", "||", "!", "isPowerOf2_32", "(", "NumElts", ")", ")", "return", "false", ";", "}", "Type", "*", "ScalarTy", "=", "DataTy", "->", "getScalarType", "(", ")", ";", "if", "(", "ScalarTy", "->", "isPointerTy", "(", ")", ")", "return", "true", ";", "if", "(", "ScalarTy", "->", "isFloatTy", "(", ")", "||", "ScalarTy", "->", "isDoubleTy", "(", ")", ")", "return", "true", ";", "if", "(", "!", "ScalarTy", "->", "isIntegerTy", "(", ")", ")", "return", "false", ";", "unsigned", "IntWidth", "=", "ScalarTy", "->", "getIntegerBitWidth", "(", ")", ";", "return", "IntWidth", "==", "32", "||", "IntWidth", "==", "64", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "supports", "masked", "gather", "."], "TS_V_token": ["X86", "X86", "1", "32", "64"], "File": "X86TargetTransformInfo100", "Func": "isLegalMaskedGather", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3543, "Length": 143, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_elf_encode_section_info", "(", "tree", "decl", ",", "rtx", "rtl", ",", "int", "first", ")", "{", "default_encode_section_info", "(", "decl", ",", "rtl", ",", "first", ")", ";", "if", "(", "first", "&&", "TREE_CODE", "(", "decl", ")", "==", "FUNCTION_DECL", "&&", "!", "TARGET_AIX", "&&", "DEFAULT_ABI", "==", "ABI_AIX", ")", "{", "rtx", "sym_ref", "=", "XEXP", "(", "rtl", ",", "0", ")", ";", "size_t", "len", "=", "strlen", "(", "XSTR", "(", "sym_ref", ",", "0", ")", ")", ";", "char", "*", "str", "=", "XALLOCAVEC", "(", "char", ",", "len", "+", "2", ")", ";", "str", "[", "0", "]", "=", "'.'", ";", "memcpy", "(", "str", "+", "1", ",", "XSTR", "(", "sym_ref", ",", "0", ")", ",", "len", "+", "1", ")", ";", "XSTR", "(", "sym_ref", ",", "0", ")", "=", "ggc_alloc_string", "(", "str", ",", "len", "+", "1", ")", ";", "}", "}", ""], "natrual_language": ["For", "a", "SYMBOL_REF", ",", "set", "generic", "flags", "and", "then", "perform", "some", "target-specific", "processing", ".", "When", "the", "AIX", "ABI", "is", "requested", "on", "a", "non-AIX", "system", ",", "replace", "the", "function", "name", "with", "the", "real", "name", "(", "with", "a", "leading", ".", ")", "rather", "than", "the", "function", "descriptor", "name", ".", "This", "saves", "a", "lot", "of", "overriding", "code", "to", "read", "the", "prefixes", "."], "TS_V_token": ["rs6000", "0", "0", "2", "0", "1", "0", "1", "0", "1"], "File": "rs6000", "Func": "rs6000_elf_encode_section_info", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3544, "Length": 121, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "mips_call_tls_get_addr", "(", "rtx", "sym", ",", "enum", "mips_symbol_type", "type", ",", "rtx", "v0", ")", "{", "rtx", "insn", ",", "loc", ",", "a0", ";", "a0", "=", "gen_rtx_REG", "(", "Pmode", ",", "GP_ARG_FIRST", ")", ";", "if", "(", "!", "mips_tls_symbol", ")", "mips_tls_symbol", "=", "init_one_libfunc", "(", "\"__tls_get_addr\"", ")", ";", "loc", "=", "mips_unspec_address", "(", "sym", ",", "type", ")", ";", "start_sequence", "(", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "Pmode", ",", "a0", ",", "gen_rtx_LO_SUM", "(", "Pmode", ",", "pic_offset_table_rtx", ",", "loc", ")", ")", ")", ";", "insn", "=", "mips_expand_call", "(", "MIPS_CALL_NORMAL", ",", "v0", ",", "mips_tls_symbol", ",", "const0_rtx", ",", "NULL_RTX", ",", "false", ")", ";", "RTL_CONST_CALL_P", "(", "insn", ")", "=", "1", ";", "use_reg", "(", "&", "CALL_INSN_FUNCTION_USAGE", "(", "insn", ")", ",", "a0", ")", ";", "insn", "=", "get_insns", "(", ")", ";", "end_sequence", "(", ")", ";", "return", "insn", ";", "}", ""], "natrual_language": ["Return", "an", "instruction", "sequence", "that", "calls", "__tls_get_addr", ".", "SYM", "is", "the", "TLS", "symbol", "we", "are", "referencing", "and", "TYPE", "is", "the", "symbol", "type", "to", "use", "(", "either", "global", "dynamic", "or", "local", "dynamic", ")", ".", "V0", "is", "an", "RTX", "for", "the", "return", "value", "location", "."], "TS_V_token": ["mips", "\"__tls_get_addr\"", "1"], "File": "mips4", "Func": "mips_call_tls_get_addr", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3545, "Length": 124, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "split_words", "(", "const", "std", "::", "string", "&", "val", ",", "std", "::", "set", "<", "std", "::", "string", ">", "&", "result", ")", "{", "size_t", "cur", ",", "prev", "=", "0", ";", "std", "::", "string", "word", ";", "while", "(", "(", "cur", "=", "val", ".", "find_first_of", "(", "\" \\n\"", ",", "prev", ")", ")", "!=", "std", "::", "string", "::", "npos", ")", "{", "word", "=", "val", ".", "substr", "(", "prev", ",", "cur", "-", "prev", ")", ";", "if", "(", "!", "word", ".", "empty", "(", ")", ")", "result", ".", "insert", "(", "word", ")", ";", "prev", "=", "cur", "+", "1", ";", "}", "if", "(", "prev", "!=", "cur", ")", "result", ".", "insert", "(", "val", ".", "substr", "(", "prev", ")", ")", ";", "}", ""], "natrual_language": ["Splits", "and", "returns", "a", "string", "based", "on", "whitespace", "and", "return", "it", "as", "part", "of", "a", "set", ".", "Empty", "strings", "are", "ignored", "."], "TS_V_token": ["aarch64", "0", "\" \\n\"", "1"], "File": "driver-aarch641", "Func": "split_words", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3546, "Length": 112, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ia32_multipass_dfa_lookahead", "(", "void", ")", "{", "if", "(", "ix86_tune", "==", "PROCESSOR_PENTIUM", ")", "return", "2", ";", "if", "(", "ix86_tune", "==", "PROCESSOR_PENTIUMPRO", "||", "ix86_tune", "==", "PROCESSOR_K6", ")", "return", "1", ";", "else", "return", "0", ";", "}", ""], "natrual_language": ["How", "many", "alternative", "schedules", "to", "try", ".", "This", "should", "be", "as", "wide", "as", "the", "scheduling", "freedom", "in", "the", "DFA", ",", "but", "no", "wider", ".", "Making", "this", "value", "too", "large", "results", "extra", "work", "for", "the", "scheduler", "."], "TS_V_token": ["i386", "2", "1", "0"], "File": "i3863", "Func": "ia32_multipass_dfa_lookahead", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3547, "Length": 34, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_advsimd_valid_immediate_hs", "(", "unsigned", "int", "val32", ",", "simd_immediate_info", "*", "info", ",", "enum", "simd_immediate_check", "which", ",", "simd_immediate_info", "::", "insn_type", "insn", ")", "{", "for", "(", "unsigned", "int", "shift", "=", "0", ";", "shift", "<", "32", ";", "shift", "+=", "8", ")", "if", "(", "(", "val32", "&", "(", "0xff", "<<", "shift", ")", ")", "==", "val32", ")", "{", "if", "(", "info", ")", "*", "info", "=", "simd_immediate_info", "(", "SImode", ",", "val32", ">>", "shift", ",", "insn", ",", "simd_immediate_info", "::", "LSL", ",", "shift", ")", ";", "return", "true", ";", "}", "unsigned", "int", "imm16", "=", "val32", "&", "0xffff", ";", "if", "(", "imm16", "==", "(", "val32", ">>", "16", ")", ")", "for", "(", "unsigned", "int", "shift", "=", "0", ";", "shift", "<", "16", ";", "shift", "+=", "8", ")", "if", "(", "(", "imm16", "&", "(", "0xff", "<<", "shift", ")", ")", "==", "imm16", ")", "{", "if", "(", "info", ")", "*", "info", "=", "simd_immediate_info", "(", "HImode", ",", "imm16", ">>", "shift", ",", "insn", ",", "simd_immediate_info", "::", "LSL", ",", "shift", ")", ";", "return", "true", ";", "}", "if", "(", "which", "==", "AARCH64_CHECK_MOV", ")", "for", "(", "unsigned", "int", "shift", "=", "8", ";", "shift", "<", "24", ";", "shift", "+=", "8", ")", "{", "unsigned", "int", "low", "=", "(", "1", "<<", "shift", ")", "-", "1", ";", "if", "(", "(", "(", "val32", "&", "(", "0xff", "<<", "shift", ")", ")", "|", "low", ")", "==", "val32", ")", "{", "if", "(", "info", ")", "*", "info", "=", "simd_immediate_info", "(", "SImode", ",", "val32", ">>", "shift", ",", "insn", ",", "simd_immediate_info", "::", "MSL", ",", "shift", ")", ";", "return", "true", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "replicating", "VAL32", "is", "a", "valid", "2-byte", "or", "4-byte", "immediate", "for", "the", "Advanced", "SIMD", "operation", "described", "by", "WHICH", "and", "INSN", ".", "If", "INFO", "is", "nonnull", ",", "use", "it", "to", "describe", "valid", "immediates", "."], "TS_V_token": ["aarch64", "0", "32", "8", "0xff", "0xffff", "16", "0", "16", "8", "0xff", "8", "24", "8", "1", "1", "0xff"], "File": "aarch64", "Func": "aarch64_advsimd_valid_immediate_hs", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3548, "Length": 245, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "output_addr_reloc", "(", "FILE", "*", "stream", ",", "rtx", "x", ",", "HOST_WIDE_INT", "add", ",", "const", "char", "*", "reloc", ")", "{", "if", "(", "*", "reloc", ")", "{", "fputs", "(", "reloc", ",", "stream", ")", ";", "fputc", "(", "'('", ",", "stream", ")", ";", "}", "output_addr_const", "(", "stream", ",", "x", ")", ";", "if", "(", "add", ")", "{", "if", "(", "add", ">", "0", ")", "fputc", "(", "'+'", ",", "stream", ")", ";", "fprintf", "(", "stream", ",", "HOST_WIDE_INT_PRINT_DEC", ",", "add", ")", ";", "}", "if", "(", "*", "reloc", ")", "fputc", "(", "')'", ",", "stream", ")", ";", "}", ""], "natrual_language": ["Print", "reloc", "(", "x", "+", "add", ")", "."], "TS_V_token": ["or1k", "0"], "File": "or1k", "Func": "output_addr_reloc", "Target": "or1k", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3549, "Length": 89, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SparcInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "RC", "==", "SP", "::", "IntRegsRegisterClass", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "SP", "::", "STri", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ";", "else", "if", "(", "RC", "==", "SP", "::", "FPRegsRegisterClass", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "SP", "::", "STFri", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ";", "else", "if", "(", "RC", "==", "SP", "::", "DFPRegsRegisterClass", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "SP", "::", "STDFri", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ";", "else", "llvm_unreachable", "(", "\"Can't store this register to stack slot\"", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["Sparc", "Sparc", "SP::IntRegsRegisterClass", "SP::STri", "0", "SP::FPRegsRegisterClass", "SP::STFri", "0", "SP::DFPRegsRegisterClass", "SP::STDFri", "0", "\"Can't store this register to stack slot\""], "File": "SparcInstrInfo16", "Func": "storeRegToStackSlot", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3550, "Length": 197, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86TargetLowering", "::", "emitBitTestAtomicRMWIntrinsic", "(", "AtomicRMWInst", "*", "AI", ")", "const", "{", "IRBuilder", "<", ">", "Builder", "(", "AI", ")", ";", "Intrinsic", "::", "ID", "IID", "=", "Intrinsic", "::", "not_intrinsic", ";", "switch", "(", "AI", "->", "getOperation", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown atomic operation\"", ")", ";", "case", "AtomicRMWInst", "::", "Or", ":", "IID", "=", "Intrinsic", "::", "x86_atomic_bts", ";", "break", ";", "case", "AtomicRMWInst", "::", "Xor", ":", "IID", "=", "Intrinsic", "::", "x86_atomic_btc", ";", "break", ";", "case", "AtomicRMWInst", "::", "And", ":", "IID", "=", "Intrinsic", "::", "x86_atomic_btr", ";", "break", ";", "}", "Instruction", "*", "I", "=", "AI", "->", "user_back", "(", ")", ";", "LLVMContext", "&", "Ctx", "=", "AI", "->", "getContext", "(", ")", ";", "unsigned", "Imm", "=", "countTrailingZeros", "(", "cast", "<", "ConstantInt", ">", "(", "I", "->", "getOperand", "(", "1", ")", ")", "->", "getZExtValue", "(", ")", ")", ";", "Function", "*", "BitTest", "=", "Intrinsic", "::", "getDeclaration", "(", "AI", "->", "getModule", "(", ")", ",", "IID", ",", "AI", "->", "getType", "(", ")", ")", ";", "Value", "*", "Addr", "=", "Builder", ".", "CreatePointerCast", "(", "AI", "->", "getPointerOperand", "(", ")", ",", "Type", "::", "getInt8PtrTy", "(", "Ctx", ")", ")", ";", "Value", "*", "Result", "=", "Builder", ".", "CreateCall", "(", "BitTest", ",", "{", "Addr", ",", "Builder", ".", "getInt8", "(", "Imm", ")", "}", ")", ";", "I", "->", "replaceAllUsesWith", "(", "Result", ")", ";", "I", "->", "eraseFromParent", "(", ")", ";", "AI", "->", "eraseFromParent", "(", ")", ";", "}", ""], "natrual_language": ["Perform", "a", "bit", "test", "atomicrmw", "using", "a", "target-specific", "intrinsic", "."], "TS_V_token": ["X86", "X86", "Intrinsic::ID", "Intrinsic::not_intrinsic", "\"Unknown atomic operation\"", "Intrinsic::x86_atomic_bts", "Intrinsic::x86_atomic_btc", "Intrinsic::x86_atomic_btr", "1", "Intrinsic::getDeclaration"], "File": "X86ISelLowering100", "Func": "emitBitTestAtomicRMWIntrinsic", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3551, "Length": 214, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "arm_return_addr", "(", "int", "count", ",", "rtx", "frame", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "count", "!=", "0", ")", "return", "NULL_RTX", ";", "return", "get_hard_reg_initial_val", "(", "Pmode", ",", "LR_REGNUM", ")", ";", "}", ""], "natrual_language": ["Return", "an", "RTX", "indicating", "where", "the", "return", "address", "to", "the", "calling", "function", "can", "be", "found", "."], "TS_V_token": ["arm", "0"], "File": "arm", "Func": "arm_return_addr", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3552, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "sparc_builtin_saveregs", "(", "void", ")", "{", "int", "first_reg", "=", "crtl", "->", "args", ".", "info", ".", "words", ";", "rtx", "address", ";", "int", "regno", ";", "for", "(", "regno", "=", "first_reg", ";", "regno", "<", "SPARC_INT_ARG_MAX", ";", "regno", "++", ")", "emit_move_insn", "(", "gen_rtx_MEM", "(", "word_mode", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "frame_pointer_rtx", ",", "GEN_INT", "(", "FIRST_PARM_OFFSET", "(", "0", ")", "+", "(", "UNITS_PER_WORD", "*", "regno", ")", ")", ")", ")", ",", "gen_rtx_REG", "(", "word_mode", ",", "SPARC_INCOMING_INT_ARG_FIRST", "+", "regno", ")", ")", ";", "address", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "frame_pointer_rtx", ",", "GEN_INT", "(", "FIRST_PARM_OFFSET", "(", "0", ")", "+", "UNITS_PER_WORD", "*", "first_reg", ")", ")", ";", "return", "address", ";", "}", ""], "natrual_language": ["Do", "what", "is", "necessary", "for", "`", "va_start", "'", ".", "We", "look", "at", "the", "current", "function", "to", "determine", "if", "stdarg", "or", "varargs", "is", "used", "and", "return", "the", "address", "of", "the", "first", "unnamed", "parameter", "."], "TS_V_token": ["sparc", "0", "0"], "File": "sparc", "Func": "sparc_builtin_saveregs", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3553, "Length": 100, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SelectInlineAsmMemoryOperand", "(", "const", "SDValue", "&", "Op", ",", "unsigned", "ConstraintID", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "OutOps", ")", "override", "{", "switch", "(", "ConstraintID", ")", "{", "default", ":", "errs", "(", ")", "<<", "\"ConstraintID: \"", "<<", "ConstraintID", "<<", "\"\\n\"", ";", "llvm_unreachable", "(", "\"Unexpected asm memory constraint\"", ")", ";", "case", "InlineAsm", "::", "Constraint_es", ":", "case", "InlineAsm", "::", "Constraint_m", ":", "case", "InlineAsm", "::", "Constraint_o", ":", "case", "InlineAsm", "::", "Constraint_Q", ":", "case", "InlineAsm", "::", "Constraint_Z", ":", "case", "InlineAsm", "::", "Constraint_Zy", ":", "const", "TargetRegisterInfo", "*", "TRI", "=", "PPCSubTarget", "->", "getRegisterInfo", "(", ")", ";", "const", "TargetRegisterClass", "*", "TRC", "=", "TRI", "->", "getPointerRegClass", "(", "*", "MF", ",", "1", ")", ";", "SDLoc", "dl", "(", "Op", ")", ";", "SDValue", "RC", "=", "CurDAG", "->", "getTargetConstant", "(", "TRC", "->", "getID", "(", ")", ",", "dl", ",", "MVT", "::", "i32", ")", ";", "SDValue", "NewOp", "=", "SDValue", "(", "CurDAG", "->", "getMachineNode", "(", "TargetOpcode", "::", "COPY_TO_REGCLASS", ",", "dl", ",", "Op", ".", "getValueType", "(", ")", ",", "Op", ",", "RC", ")", ",", "0", ")", ";", "OutOps", ".", "push_back", "(", "NewOp", ")", ";", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["SelectInlineAsmMemoryOperand", "-", "Select", "the", "specified", "address", "as", "a", "target", "addressing", "mode", ",", "according", "to", "the", "specified", "constraint", "."], "TS_V_token": ["PowerPC", "\"ConstraintID: \"", "\"\\n\"", "\"Unexpected asm memory constraint\"", "PPC", "1", "MVT::i32", "0"], "File": "PPCISelDAGToDAG111", "Func": "SelectInlineAsmMemoryOperand", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3554, "Length": 170, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "const_ok_for_arm", "(", "HOST_WIDE_INT", "i", ")", "{", "int", "lowbit", ";", "if", "(", "(", "i", "&", "~", "(", "unsigned", "HOST_WIDE_INT", ")", "0xffffffff", ")", "!=", "0", "&&", "(", "(", "i", "&", "~", "(", "unsigned", "HOST_WIDE_INT", ")", "0xffffffff", ")", "!=", "(", "(", "~", "(", "unsigned", "HOST_WIDE_INT", ")", "0", ")", "&", "~", "(", "unsigned", "HOST_WIDE_INT", ")", "0xffffffff", ")", ")", ")", "return", "FALSE", ";", "i", "&=", "(", "unsigned", "HOST_WIDE_INT", ")", "0xffffffff", ";", "if", "(", "(", "i", "&", "~", "(", "unsigned", "HOST_WIDE_INT", ")", "0xff", ")", "==", "0", ")", "return", "TRUE", ";", "lowbit", "=", "ffs", "(", "(", "int", ")", "i", ")", "-", "1", ";", "if", "(", "TARGET_ARM", ")", "lowbit", "&=", "~", "1", ";", "if", "(", "(", "i", "&", "~", "(", "(", "(", "unsigned", "HOST_WIDE_INT", ")", "0xff", ")", "<<", "lowbit", ")", ")", "==", "0", ")", "return", "TRUE", ";", "if", "(", "TARGET_ARM", ")", "{", "if", "(", "lowbit", "<=", "4", "&&", "(", "(", "i", "&", "~", "0xc000003f", ")", "==", "0", "||", "(", "i", "&", "~", "0xf000000f", ")", "==", "0", "||", "(", "i", "&", "~", "0xfc000003", ")", "==", "0", ")", ")", "return", "TRUE", ";", "}", "else", "if", "(", "TARGET_THUMB2", ")", "{", "HOST_WIDE_INT", "v", ";", "v", "=", "i", "&", "0xff", ";", "v", "|=", "v", "<<", "16", ";", "if", "(", "i", "==", "v", "||", "i", "==", "(", "v", "|", "(", "v", "<<", "8", ")", ")", ")", "return", "TRUE", ";", "v", "=", "i", "&", "0xff00", ";", "v", "|=", "v", "<<", "16", ";", "if", "(", "i", "==", "v", ")", "return", "TRUE", ";", "}", "else", "if", "(", "TARGET_HAVE_MOVT", ")", "{", "if", "(", "i", ">", "0xffff", ")", "return", "FALSE", ";", "else", "return", "TRUE", ";", "}", "return", "FALSE", ";", "}", ""], "natrual_language": ["Return", "TRUE", "if", "int", "I", "is", "a", "valid", "immediate", "ARM", "constant", "."], "TS_V_token": ["arm", "0xffffffff", "0", "0xffffffff", "0", "0xffffffff", "0xffffffff", "0xff", "0", "1", "1", "0xff", "0", "4", "0xc000003f", "0", "0xf000000f", "0", "0xfc000003", "0", "0xff", "16", "8", "0xff00", "16", "0xffff"], "File": "arm", "Func": "const_ok_for_arm", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3555, "Length": 262, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "dump_swap_insn_table", "(", "swap_web_entry", "*", "insn_entry", ")", "{", "int", "e", "=", "get_max_uid", "(", ")", ";", "fprintf", "(", "dump_file", ",", "\"\\nRelevant insns with their flag settings\\n\\n\"", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "e", ";", "++", "i", ")", "if", "(", "insn_entry", "[", "i", "]", ".", "is_relevant", ")", "{", "swap_web_entry", "*", "pred_entry", "=", "(", "swap_web_entry", "*", ")", "insn_entry", "[", "i", "]", ".", "pred", "(", ")", ";", "fprintf", "(", "dump_file", ",", "\"%6d %6d \"", ",", "i", ",", "pred_entry", "&&", "pred_entry", "->", "insn", "?", "INSN_UID", "(", "pred_entry", "->", "insn", ")", ":", "0", ")", ";", "if", "(", "insn_entry", "[", "i", "]", ".", "is_load", ")", "fputs", "(", "\"load \"", ",", "dump_file", ")", ";", "if", "(", "insn_entry", "[", "i", "]", ".", "is_store", ")", "fputs", "(", "\"store \"", ",", "dump_file", ")", ";", "if", "(", "insn_entry", "[", "i", "]", ".", "is_swap", ")", "fputs", "(", "\"swap \"", ",", "dump_file", ")", ";", "if", "(", "insn_entry", "[", "i", "]", ".", "is_live_in", ")", "fputs", "(", "\"live-in \"", ",", "dump_file", ")", ";", "if", "(", "insn_entry", "[", "i", "]", ".", "is_live_out", ")", "fputs", "(", "\"live-out \"", ",", "dump_file", ")", ";", "if", "(", "insn_entry", "[", "i", "]", ".", "contains_subreg", ")", "fputs", "(", "\"subreg \"", ",", "dump_file", ")", ";", "if", "(", "insn_entry", "[", "i", "]", ".", "is_128_int", ")", "fputs", "(", "\"int128 \"", ",", "dump_file", ")", ";", "if", "(", "insn_entry", "[", "i", "]", ".", "is_call", ")", "fputs", "(", "\"call \"", ",", "dump_file", ")", ";", "if", "(", "insn_entry", "[", "i", "]", ".", "is_swappable", ")", "{", "fputs", "(", "\"swappable \"", ",", "dump_file", ")", ";", "if", "(", "insn_entry", "[", "i", "]", ".", "special_handling", "==", "SH_CONST_VECTOR", ")", "fputs", "(", "\"special:constvec \"", ",", "dump_file", ")", ";", "else", "if", "(", "insn_entry", "[", "i", "]", ".", "special_handling", "==", "SH_SUBREG", ")", "fputs", "(", "\"special:subreg \"", ",", "dump_file", ")", ";", "else", "if", "(", "insn_entry", "[", "i", "]", ".", "special_handling", "==", "SH_NOSWAP_LD", ")", "fputs", "(", "\"special:load \"", ",", "dump_file", ")", ";", "else", "if", "(", "insn_entry", "[", "i", "]", ".", "special_handling", "==", "SH_NOSWAP_ST", ")", "fputs", "(", "\"special:store \"", ",", "dump_file", ")", ";", "else", "if", "(", "insn_entry", "[", "i", "]", ".", "special_handling", "==", "SH_EXTRACT", ")", "fputs", "(", "\"special:extract \"", ",", "dump_file", ")", ";", "else", "if", "(", "insn_entry", "[", "i", "]", ".", "special_handling", "==", "SH_SPLAT", ")", "fputs", "(", "\"special:splat \"", ",", "dump_file", ")", ";", "}", "if", "(", "insn_entry", "[", "i", "]", ".", "web_not_optimizable", ")", "fputs", "(", "\"unoptimizable \"", ",", "dump_file", ")", ";", "if", "(", "insn_entry", "[", "i", "]", ".", "will_delete", ")", "fputs", "(", "\"delete \"", ",", "dump_file", ")", ";", "fputs", "(", "\"\\n\"", ",", "dump_file", ")", ";", "}", "fputs", "(", "\"\\n\"", ",", "dump_file", ")", ";", "}", ""], "natrual_language": ["Dump", "the", "swap", "table", "to", "DUMP_FILE", "."], "TS_V_token": ["rs6000", "\"\\nRelevant insns with their flag settings\\n\\n\"", "0", "\"%6d %6d \"", "0", "\"load \"", "\"store \"", "\"swap \"", "\"live-in \"", "\"live-out \"", "\"subreg \"", "\"int128 \"", "\"call \"", "\"swappable \"", "\"special:constvec \"", "\"special:subreg \"", "\"special:load \"", "\"special:store \"", "\"special:extract \"", "\"special:splat \"", "\"unoptimizable \"", "\"delete \"", "\"\\n\"", "\"\\n\""], "File": "rs60004", "Func": "dump_swap_insn_table", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3556, "Length": 395, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "aarch64_madd_needs_nop", "(", "rtx_insn", "*", "insn", ")", "{", "enum", "attr_type", "attr_type", ";", "rtx_insn", "*", "prev", ";", "rtx", "body", ";", "if", "(", "!", "aarch64_fix_a53_err835769", ")", "return", "false", ";", "if", "(", "recog_memoized", "(", "insn", ")", "<", "0", ")", "return", "false", ";", "attr_type", "=", "get_attr_type", "(", "insn", ")", ";", "if", "(", "!", "is_madd_op", "(", "attr_type", ")", ")", "return", "false", ";", "prev", "=", "aarch64_prev_real_insn", "(", "insn", ")", ";", "extract_constrain_insn_cached", "(", "insn", ")", ";", "if", "(", "!", "prev", "||", "!", "has_memory_op", "(", "prev", ")", ")", "return", "false", ";", "body", "=", "single_set", "(", "prev", ")", ";", "if", "(", "GET_MODE", "(", "recog_data", ".", "operand", "[", "0", "]", ")", "==", "DImode", "&&", "(", "!", "body", "||", "!", "dep_between_memop_and_curr", "(", "body", ")", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["When", "working", "around", "the", "Cortex-A53", "erratum", "835769", ",", "given", "rtx_insn", "INSN", ",", "return", "true", "if", "it", "is", "a", "64-bit", "multiply-accumulate", "instruction", "and", "has", "a", "preceding", "memory", "instruction", "such", "that", "a", "NOP", "should", "be", "inserted", "between", "them", "."], "TS_V_token": ["aarch64", "0", "0"], "File": "aarch642", "Func": "aarch64_madd_needs_nop", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3557, "Length": 122, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getCSRFirstUseCost", "(", "const", "MachineFunction", "&", "MF", ")", "const", "override", "{", "return", "5", ";", "}", ""], "natrual_language": ["Allow", "the", "target", "to", "override", "the", "cost", "of", "using", "a", "callee-saved", "register", "for", "the", "first", "time", "."], "TS_V_token": ["AArch64", "5"], "File": "AArch64RegisterInfo17", "Func": "getCSRFirstUseCost", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3558, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "HOST_WIDE_INT", "csky_initial_elimination_offset", "(", "int", "from", ",", "int", "to", ")", "{", "int", "offset", ";", "csky_layout_stack_frame", "(", ")", ";", "switch", "(", "from", ")", "{", "case", "FRAME_POINTER_REGNUM", ":", "case", "HARD_FRAME_POINTER_REGNUM", ":", "offset", "=", "cfun", "->", "machine", "->", "reg_offset", ";", "break", ";", "case", "ARG_POINTER_REGNUM", ":", "offset", "=", "cfun", "->", "machine", "->", "arg_offset", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "if", "(", "to", "==", "FRAME_POINTER_REGNUM", "||", "to", "==", "HARD_FRAME_POINTER_REGNUM", ")", "offset", "-=", "cfun", "->", "machine", "->", "reg_offset", ";", "return", "offset", ";", "}", ""], "natrual_language": ["Worker", "function", "for", "INITIAL_ELIMINATION_OFFSET", "macro", ".", "Define", "the", "offset", "between", "two", "registers", ",", "one", "to", "be", "eliminated", ",", "and", "the", "other", "its", "replacement", ",", "at", "the", "start", "of", "a", "routine", "."], "TS_V_token": ["csky"], "File": "csky", "Func": "csky_initial_elimination_offset", "Target": "csky", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3559, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMTTIImpl", "::", "isLegalMaskedLoad", "(", "Type", "*", "DataTy", ",", "MaybeAlign", "Alignment", ")", "{", "if", "(", "!", "EnableMaskedLoadStores", "||", "!", "ST", "->", "hasMVEIntegerOps", "(", ")", ")", "return", "false", ";", "if", "(", "auto", "*", "VecTy", "=", "dyn_cast", "<", "VectorType", ">", "(", "DataTy", ")", ")", "{", "if", "(", "VecTy", "->", "getNumElements", "(", ")", "==", "2", ")", "return", "false", ";", "unsigned", "VecWidth", "=", "DataTy", "->", "getPrimitiveSizeInBits", "(", ")", ";", "if", "(", "VecWidth", "!=", "128", "&&", "VecTy", "->", "getElementType", "(", ")", "->", "isFloatingPointTy", "(", ")", ")", "return", "false", ";", "}", "unsigned", "EltWidth", "=", "DataTy", "->", "getScalarSizeInBits", "(", ")", ";", "return", "(", "EltWidth", "==", "32", "&&", "(", "!", "Alignment", "||", "Alignment", ">=", "4", ")", ")", "||", "(", "EltWidth", "==", "16", "&&", "(", "!", "Alignment", "||", "Alignment", ">=", "2", ")", ")", "||", "(", "EltWidth", "==", "8", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "supports", "masked", "load", "."], "TS_V_token": ["ARM", "ARM", "2", "128", "32", "4", "16", "2", "8"], "File": "ARMTargetTransformInfo10", "Func": "isLegalMaskedLoad", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3560, "Length": 132, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "validate_condition_mode", "(", "enum", "rtx_code", "code", ",", "machine_mode", "mode", ")", "{", "gcc_assert", "(", "(", "GET_RTX_CLASS", "(", "code", ")", "==", "RTX_COMPARE", "||", "GET_RTX_CLASS", "(", "code", ")", "==", "RTX_COMM_COMPARE", ")", "&&", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_CC", ")", ";", "gcc_assert", "(", "(", "code", "!=", "GT", "&&", "code", "!=", "LT", "&&", "code", "!=", "GE", "&&", "code", "!=", "LE", ")", "||", "mode", "!=", "CCUNSmode", ")", ";", "gcc_assert", "(", "(", "code", "!=", "GTU", "&&", "code", "!=", "LTU", "&&", "code", "!=", "GEU", "&&", "code", "!=", "LEU", ")", "||", "mode", "==", "CCUNSmode", ")", ";", "gcc_assert", "(", "mode", "==", "CCFPmode", "||", "(", "code", "!=", "ORDERED", "&&", "code", "!=", "UNORDERED", "&&", "code", "!=", "UNEQ", "&&", "code", "!=", "LTGT", "&&", "code", "!=", "UNGT", "&&", "code", "!=", "UNLT", "&&", "code", "!=", "UNGE", "&&", "code", "!=", "UNLE", ")", ")", ";", "gcc_assert", "(", "mode", "!=", "CCFPmode", "||", "flag_finite_math_only", "||", "(", "code", "!=", "LE", "&&", "code", "!=", "GE", "&&", "code", "!=", "UNEQ", "&&", "code", "!=", "LTGT", "&&", "code", "!=", "UNGT", "&&", "code", "!=", "UNLT", ")", ")", ";", "gcc_assert", "(", "mode", "!=", "CCEQmode", "||", "code", "==", "EQ", "||", "code", "==", "NE", ")", ";", "}", ""], "natrual_language": ["A", "validation", "routine", ":", "say", "whether", "CODE", ",", "a", "condition", "code", ",", "and", "MODE", "match", ".", "The", "other", "alternatives", "either", "do", "n't", "make", "sense", "or", "should", "never", "be", "generated", "."], "TS_V_token": ["rs6000"], "File": "rs60004", "Func": "validate_condition_mode", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3561, "Length": 179, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isReg", "(", ")", "const", "override", "{", "return", "Kind", "==", "k_Register", ";", "}", ""], "natrual_language": ["isReg", "-", "Is", "this", "a", "register", "operand", "?"], "TS_V_token": ["MINA32"], "File": "MINA32AsmParser", "Func": "isReg", "Target": "MINA32", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3562, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ix86_fp_comparison_cost", "(", "enum", "rtx_code", "code", ")", "{", "int", "fcomi_cost", ",", "sahf_cost", ",", "arithmetics_cost", "=", "1024", ";", "int", "min", ";", "fcomi_cost", "=", "ix86_fp_comparison_fcomi_cost", "(", "code", ")", ";", "sahf_cost", "=", "ix86_fp_comparison_sahf_cost", "(", "code", ")", ";", "min", "=", "arithmetics_cost", "=", "ix86_fp_comparison_arithmetics_cost", "(", "code", ")", ";", "if", "(", "min", ">", "sahf_cost", ")", "min", "=", "sahf_cost", ";", "if", "(", "min", ">", "fcomi_cost", ")", "min", "=", "fcomi_cost", ";", "return", "min", ";", "}", ""], "natrual_language": ["Compute", "cost", "of", "the", "comparison", "done", "using", "any", "method", ".", "See", "ix86_fp_comparison_arithmetics_cost", "for", "the", "metrics", "."], "TS_V_token": ["i386", "1024"], "File": "i3863", "Func": "ix86_fp_comparison_cost", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3563, "Length": 68, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsCodeEmitter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "JTI", "=", "(", "(", "MipsTargetMachine", "&", ")", "MF", ".", "getTarget", "(", ")", ")", ".", "getJITInfo", "(", ")", ";", "II", "=", "(", "(", "const", "MipsTargetMachine", "&", ")", "MF", ".", "getTarget", "(", ")", ")", ".", "getInstrInfo", "(", ")", ";", "TD", "=", "(", "(", "const", "MipsTargetMachine", "&", ")", "MF", ".", "getTarget", "(", ")", ")", ".", "getDataLayout", "(", ")", ";", "Subtarget", "=", "&", "TM", ".", "getSubtarget", "<", "MipsSubtarget", ">", "(", ")", ";", "MCPEs", "=", "&", "MF", ".", "getConstantPool", "(", ")", "->", "getConstants", "(", ")", ";", "MJTEs", "=", "0", ";", "if", "(", "MF", ".", "getJumpTableInfo", "(", ")", ")", "MJTEs", "=", "&", "MF", ".", "getJumpTableInfo", "(", ")", "->", "getJumpTables", "(", ")", ";", "JTI", "->", "Initialize", "(", "MF", ",", "IsPIC", ")", ";", "MCE", ".", "setModuleInfo", "(", "&", "getAnalysis", "<", "MachineModuleInfo", ">", "(", ")", ")", ";", "do", "{", "DEBUG", "(", "errs", "(", ")", "<<", "\"JITTing function '\"", "<<", "MF", ".", "getName", "(", ")", "<<", "\"'\\n\"", ")", ";", "MCE", ".", "startFunction", "(", "MF", ")", ";", "for", "(", "MachineFunction", "::", "iterator", "MBB", "=", "MF", ".", "begin", "(", ")", ",", "E", "=", "MF", ".", "end", "(", ")", ";", "MBB", "!=", "E", ";", "++", "MBB", ")", "{", "MCE", ".", "StartMachineBasicBlock", "(", "MBB", ")", ";", "for", "(", "MachineBasicBlock", "::", "instr_iterator", "I", "=", "MBB", "->", "instr_begin", "(", ")", ",", "E", "=", "MBB", "->", "instr_end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "emitInstruction", "(", "*", "I", ")", ";", "}", "}", "while", "(", "MCE", ".", "finishFunction", "(", "MF", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "0", "\"JITTing function '\"", "\"'\\n\""], "File": "MipsCodeEmitter5", "Func": "runOnMachineFunction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3564, "Length": 250, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_set_current_function", "(", "tree", "fndecl", ")", "{", "if", "(", "fndecl", "==", "ix86_previous_fndecl", ")", "return", ";", "tree", "old_tree", ";", "if", "(", "ix86_previous_fndecl", "==", "NULL_TREE", ")", "old_tree", "=", "target_option_current_node", ";", "else", "if", "(", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "ix86_previous_fndecl", ")", ")", "old_tree", "=", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "ix86_previous_fndecl", ")", ";", "else", "old_tree", "=", "target_option_default_node", ";", "if", "(", "fndecl", "==", "NULL_TREE", ")", "{", "if", "(", "old_tree", "!=", "target_option_current_node", ")", "ix86_reset_previous_fndecl", "(", ")", ";", "return", ";", "}", "tree", "new_tree", "=", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "fndecl", ")", ";", "if", "(", "new_tree", "==", "NULL_TREE", ")", "new_tree", "=", "target_option_default_node", ";", "if", "(", "old_tree", "!=", "new_tree", ")", "{", "cl_target_option_restore", "(", "&", "global_options", ",", "TREE_TARGET_OPTION", "(", "new_tree", ")", ")", ";", "if", "(", "TREE_TARGET_GLOBALS", "(", "new_tree", ")", ")", "restore_target_globals", "(", "TREE_TARGET_GLOBALS", "(", "new_tree", ")", ")", ";", "else", "if", "(", "new_tree", "==", "target_option_default_node", ")", "restore_target_globals", "(", "&", "default_target_globals", ")", ";", "else", "TREE_TARGET_GLOBALS", "(", "new_tree", ")", "=", "save_target_globals_default_opts", "(", ")", ";", "}", "ix86_previous_fndecl", "=", "fndecl", ";", "if", "(", "TARGET_64BIT", "&&", "(", "call_used_regs", "[", "SI_REG", "]", "==", "(", "cfun", "->", "machine", "->", "call_abi", "==", "MS_ABI", ")", ")", ")", "reinit_regs", "(", ")", ";", "}", ""], "natrual_language": ["Establish", "appropriate", "back-end", "context", "for", "processing", "the", "function", "FNDECL", ".", "The", "argument", "might", "be", "NULL", "to", "indicate", "processing", "at", "top", "level", ",", "outside", "of", "any", "function", "scope", "."], "TS_V_token": ["i386"], "File": "i3865", "Func": "ix86_set_current_function", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3565, "Length": 174, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64TargetLowering", "::", "CanLowerReturn", "(", "CallingConv", "::", "ID", "CallConv", ",", "MachineFunction", "&", "MF", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "LLVMContext", "&", "Context", ")", "const", "{", "CCAssignFn", "*", "RetCC", "=", "CCAssignFnForReturn", "(", "CallConv", ")", ";", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "MF", ",", "RVLocs", ",", "Context", ")", ";", "return", "CCInfo", ".", "CheckReturn", "(", "Outs", ",", "RetCC", ")", ";", "}", ""], "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": ["AArch64", "AArch64", "ISD::OutputArg", "16"], "File": "AArch64ISelLowering (2)2", "Func": "CanLowerReturn", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3566, "Length": 75, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "FalkorMarkStridedAccesses", "::", "run", "(", ")", "{", "bool", "MadeChange", "=", "false", ";", "for", "(", "Loop", "*", "L", ":", "LI", ")", "for", "(", "auto", "LIt", "=", "df_begin", "(", "L", ")", ",", "LE", "=", "df_end", "(", "L", ")", ";", "LIt", "!=", "LE", ";", "++", "LIt", ")", "MadeChange", "|=", "runOnLoop", "(", "*", "*", "LIt", ")", ";", "return", "MadeChange", ";", "}", ""], "natrual_language": ["Run", "the", "analysis", "pass", "over", "a", "function", "and", "produce", "a", "dominator", "tree", "."], "TS_V_token": ["AArch64"], "File": "AArch64FalkorHWPFFix", "Func": "run", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3567, "Length": 57, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "extract_shift_reg", "(", "rtx", "alu_shift_rtx", ")", "{", "alu_shift_rtx", "=", "extract_pattern_from_insn", "(", "alu_shift_rtx", ")", ";", "rtx", "alu_rtx", "=", "SET_SRC", "(", "alu_shift_rtx", ")", ";", "rtx", "shift_rtx", ";", "if", "(", "REG_P", "(", "XEXP", "(", "alu_rtx", ",", "0", ")", ")", ")", "shift_rtx", "=", "XEXP", "(", "alu_rtx", ",", "1", ")", ";", "else", "shift_rtx", "=", "XEXP", "(", "alu_rtx", ",", "0", ")", ";", "return", "XEXP", "(", "shift_rtx", ",", "0", ")", ";", "}", ""], "natrual_language": ["Extract", "the", "register", "of", "the", "shift", "operand", "from", "an", "ALU_SHIFT", "rtx", "."], "TS_V_token": ["nds32", "0", "1", "0", "0"], "File": "nds32-utils", "Func": "extract_shift_reg", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3568, "Length": 65, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_cookie_has_size", "(", "void", ")", "{", "return", "TARGET_AAPCS_BASED", ";", "}", ""], "natrual_language": ["The", "EABI", "says", "that", "array", "cookies", "should", "also", "contain", "the", "element", "size", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "arm_cookie_has_size", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3569, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "ix86_gen_TWO52", "(", "machine_mode", "mode", ")", "{", "const", "struct", "real_format", "*", "fmt", ";", "REAL_VALUE_TYPE", "TWO52r", ";", "rtx", "TWO52", ";", "fmt", "=", "REAL_MODE_FORMAT", "(", "mode", ")", ";", "real_2expN", "(", "&", "TWO52r", ",", "fmt", "->", "p", "-", "1", ",", "mode", ")", ";", "TWO52", "=", "const_double_from_real_value", "(", "TWO52r", ",", "mode", ")", ";", "TWO52", "=", "force_reg", "(", "mode", ",", "TWO52", ")", ";", "return", "TWO52", ";", "}", ""], "natrual_language": ["Generate", "and", "return", "a", "rtx", "of", "mode", "MODE", "for", "2", "*", "*", "n", "where", "n", "is", "the", "number", "of", "bits", "of", "the", "mantissa", "of", "MODE", ",", "which", "must", "be", "one", "of", "DFmode", "or", "SFmode", "."], "TS_V_token": ["i386", "1"], "File": "i386-expand", "Func": "ix86_gen_TWO52", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3570, "Length": 63, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "aarch64_sve_adjust_stmt_cost", "(", "class", "vec_info", "*", "vinfo", ",", "vect_cost_for_stmt", "kind", ",", "stmt_vec_info", "stmt_info", ",", "tree", "vectype", ",", "unsigned", "int", "stmt_cost", ")", "{", "if", "(", "kind", "==", "vector_stmt", "&&", "aarch64_extending_load_p", "(", "vinfo", ",", "stmt_info", ")", ")", "stmt_cost", "=", "0", ";", "if", "(", "kind", "==", "vector_stmt", "&&", "aarch64_integer_truncation_p", "(", "stmt_info", ")", ")", "stmt_cost", "=", "0", ";", "if", "(", "STMT_VINFO_GROUPED_ACCESS", "(", "stmt_info", ")", ")", "{", "stmt_vec_info", "first", "=", "DR_GROUP_FIRST_ELEMENT", "(", "stmt_info", ")", ";", "unsigned", "int", "count", "=", "DR_GROUP_SIZE", "(", "first", ")", "-", "DR_GROUP_GAP", "(", "first", ")", ";", "unsigned", "int", "elt_bits", "=", "GET_MODE_UNIT_BITSIZE", "(", "TYPE_MODE", "(", "vectype", ")", ")", ";", "if", "(", "multiple_p", "(", "count", "*", "elt_bits", ",", "256", ")", "&&", "aarch64_advsimd_ldp_stp_p", "(", "kind", ",", "stmt_info", ")", ")", "stmt_cost", "*=", "2", ";", "}", "return", "stmt_cost", ";", "}", ""], "natrual_language": ["STMT_COST", "is", "the", "cost", "calculated", "by", "aarch64_builtin_vectorization_cost", "for", "STMT_INFO", ",", "which", "has", "cost", "kind", "KIND", "and", "which", "when", "vectorized", "would", "operate", "on", "vector", "type", "VECTYPE", ".", "Adjust", "the", "cost", "as", "necessary", "for", "SVE", "targets", "."], "TS_V_token": ["aarch64", "0", "0", "256", "2"], "File": "aarch641", "Func": "aarch64_sve_adjust_stmt_cost", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3571, "Length": 125, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "gen_load_pcrel_sym", "(", "rtx", "op0", ",", "rtx", "op1", ",", "rtx", "op2", ")", "{", "int", "orig_flag_pic", "=", "flag_pic", ";", "rtx", "insn", ";", "flag_pic", "=", "0", ";", "if", "(", "TARGET_ARCH64", ")", "insn", "=", "gen_load_pcrel_symdi", "(", "op0", ",", "op1", ",", "op2", ",", "GEN_INT", "(", "REGNO", "(", "op0", ")", ")", ")", ";", "else", "insn", "=", "gen_load_pcrel_symsi", "(", "op0", ",", "op1", ",", "op2", ",", "GEN_INT", "(", "REGNO", "(", "op0", ")", ")", ")", ";", "flag_pic", "=", "orig_flag_pic", ";", "return", "insn", ";", "}", ""], "natrual_language": ["Wrapper", "around", "the", "load_pcrel_sym", "{", "si", ",", "di", "}", "patterns", "."], "TS_V_token": ["sparc", "0"], "File": "sparc", "Func": "gen_load_pcrel_sym", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3572, "Length": 77, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "insn_is_load_p", "(", "rtx", "insn", ")", "{", "rtx", "body", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "body", ")", "==", "SET", ")", "{", "if", "(", "GET_CODE", "(", "SET_SRC", "(", "body", ")", ")", "==", "MEM", ")", "return", "1", ";", "if", "(", "GET_CODE", "(", "SET_SRC", "(", "body", ")", ")", "==", "VEC_SELECT", "&&", "GET_CODE", "(", "XEXP", "(", "SET_SRC", "(", "body", ")", ",", "0", ")", ")", "==", "MEM", ")", "return", "1", ";", "return", "0", ";", "}", "if", "(", "GET_CODE", "(", "body", ")", "!=", "PARALLEL", ")", "return", "0", ";", "rtx", "set", "=", "XVECEXP", "(", "body", ",", "0", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "set", ")", "==", "SET", "&&", "GET_CODE", "(", "SET_SRC", "(", "set", ")", ")", "==", "MEM", ")", "return", "1", ";", "return", "0", ";", "}", ""], "natrual_language": ["Return", "1", "iff", "INSN", "is", "a", "load", "insn", ",", "including", "permuting", "loads", "that", "represent", "an", "lvxd2x", "instruction", ";", "else", "return", "0", "."], "TS_V_token": ["rs6000", "1", "0", "1", "0", "0", "0", "0", "1", "0"], "File": "rs6000-p8swap2", "Func": "insn_is_load_p", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3573, "Length": 126, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "optimizeCompareInstr", "(", "MachineInstr", "&", "CmpInstr", ",", "Register", "SrcReg", ",", "Register", "SrcReg2", ",", "int", "CmpMask", ",", "int", "CmpValue", ",", "const", "MachineRegisterInfo", "*", "MRI", ")", "const", "{", "assert", "(", "CmpInstr", ".", "getParent", "(", ")", ")", ";", "assert", "(", "MRI", ")", ";", "int", "DeadNZCVIdx", "=", "CmpInstr", ".", "findRegisterDefOperandIdx", "(", "AArch64", "::", "NZCV", ",", "true", ")", ";", "if", "(", "DeadNZCVIdx", "!=", "-", "1", ")", "{", "if", "(", "CmpInstr", ".", "definesRegister", "(", "AArch64", "::", "WZR", ")", "||", "CmpInstr", ".", "definesRegister", "(", "AArch64", "::", "XZR", ")", ")", "{", "CmpInstr", ".", "eraseFromParent", "(", ")", ";", "return", "true", ";", "}", "unsigned", "Opc", "=", "CmpInstr", ".", "getOpcode", "(", ")", ";", "unsigned", "NewOpc", "=", "convertToNonFlagSettingOpc", "(", "CmpInstr", ")", ";", "if", "(", "NewOpc", "==", "Opc", ")", "return", "false", ";", "const", "MCInstrDesc", "&", "MCID", "=", "get", "(", "NewOpc", ")", ";", "CmpInstr", ".", "setDesc", "(", "MCID", ")", ";", "CmpInstr", ".", "RemoveOperand", "(", "DeadNZCVIdx", ")", ";", "bool", "succeeded", "=", "UpdateOperandRegClass", "(", "CmpInstr", ")", ";", "(", "void", ")", "succeeded", ";", "assert", "(", "succeeded", "&&", "\"Some operands reg class are incompatible!\"", ")", ";", "return", "true", ";", "}", "if", "(", "CmpInstr", ".", "getOpcode", "(", ")", "==", "AArch64", "::", "PTEST_PP", ")", "return", "optimizePTestInstr", "(", "&", "CmpInstr", ",", "SrcReg", ",", "SrcReg2", ",", "MRI", ")", ";", "assert", "(", "(", "CmpValue", "==", "0", "||", "CmpValue", "==", "1", ")", "&&", "\"CmpValue must be 0 or 1!\"", ")", ";", "if", "(", "SrcReg2", "!=", "0", ")", "return", "false", ";", "if", "(", "!", "MRI", "->", "use_nodbg_empty", "(", "CmpInstr", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ")", ")", "return", "false", ";", "if", "(", "!", "CmpValue", "&&", "substituteCmpToZero", "(", "CmpInstr", ",", "SrcReg", ",", "*", "MRI", ")", ")", "return", "true", ";", "return", "removeCmpToZeroOrOne", "(", "CmpInstr", ",", "SrcReg", ",", "CmpValue", ",", "*", "MRI", ")", ";", "}", ""], "natrual_language": ["optimizeCompareInstr", "-", "Check", "if", "there", "exists", "an", "earlier", "instruction", "that", "operates", "on", "the", "same", "source", "operands", "and", "sets", "flags", "in", "the", "same", "way", "as", "Compare", ";", "remove", "Compare", "if", "possible", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::NZCV", "1", "AArch64::WZR", "AArch64::XZR", "\"Some operands reg class are incompatible!\"", "AArch64::PTEST_PP", "0", "1", "\"CmpValue must be 0 or 1!\"", "0", "0"], "File": "AArch64InstrInfo49", "Func": "optimizeCompareInstr", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3574, "Length": 272, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86InstrInfo", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ")", "const", "{", "if", "(", "CSI", ".", "empty", "(", ")", ")", "return", "false", ";", "DebugLoc", "DL", "=", "DebugLoc", "::", "getUnknownLoc", "(", ")", ";", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "bool", "is64Bit", "=", "TM", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "is64Bit", "(", ")", ";", "unsigned", "Opc", "=", "is64Bit", "?", "X86", "::", "POP64r", ":", "X86", "::", "POP32r", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "]", ".", "getReg", "(", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "Opc", ")", ",", "Reg", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["restoreCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "restore", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "load", "instructions", "via", "loadRegToStackSlot", "(", ")", "."], "TS_V_token": ["X86", "X86", "X86", "X86::POP64r", "X86::POP32r", "0"], "File": "X86InstrInfo101", "Func": "restoreCalleeSavedRegisters", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3575, "Length": 149, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCInstrInfo", "::", "finalizeInsInstrs", "(", "MachineInstr", "&", "Root", ",", "MachineCombinerPattern", "&", "P", ",", "SmallVectorImpl", "<", "MachineInstr", "*", ">", "&", "InsInstrs", ")", "const", "{", "assert", "(", "!", "InsInstrs", ".", "empty", "(", ")", "&&", "\"Instructions set to be inserted is empty!\"", ")", ";", "MachineFunction", "*", "MF", "=", "Root", ".", "getMF", "(", ")", ";", "MachineRegisterInfo", "*", "MRI", "=", "&", "MF", "->", "getRegInfo", "(", ")", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "&", "getRegisterInfo", "(", ")", ";", "MachineConstantPool", "*", "MCP", "=", "MF", "->", "getConstantPool", "(", ")", ";", "int16_t", "Idx", "=", "getFMAOpIdxInfo", "(", "Root", ".", "getOpcode", "(", ")", ")", ";", "if", "(", "Idx", "<", "0", ")", "return", ";", "uint16_t", "FirstMulOpIdx", "=", "FMAOpIdxInfo", "[", "Idx", "]", "[", "InfoArrayIdxMULOpIdx", "]", ";", "Register", "ConstReg", "=", "0", ";", "switch", "(", "P", ")", "{", "case", "MachineCombinerPattern", "::", "REASSOC_XY_BCA", ":", "ConstReg", "=", "TRI", "->", "lookThruCopyLike", "(", "Root", ".", "getOperand", "(", "FirstMulOpIdx", ")", ".", "getReg", "(", ")", ",", "MRI", ")", ";", "break", ";", "case", "MachineCombinerPattern", "::", "REASSOC_XY_BAC", ":", "ConstReg", "=", "TRI", "->", "lookThruCopyLike", "(", "Root", ".", "getOperand", "(", "FirstMulOpIdx", "+", "1", ")", ".", "getReg", "(", ")", ",", "MRI", ")", ";", "break", ";", "default", ":", "return", ";", "}", "MachineInstr", "*", "ConstDefInstr", "=", "MRI", "->", "getVRegDef", "(", "ConstReg", ")", ";", "const", "Constant", "*", "C", "=", "getConstantFromConstantPool", "(", "ConstDefInstr", ")", ";", "assert", "(", "isa", "<", "llvm", "::", "ConstantFP", ">", "(", "C", ")", "&&", "\"not a valid constant!\"", ")", ";", "APFloat", "F1", "(", "(", "dyn_cast", "<", "ConstantFP", ">", "(", "C", ")", ")", "->", "getValueAPF", "(", ")", ")", ";", "F1", ".", "changeSign", "(", ")", ";", "Constant", "*", "NegC", "=", "ConstantFP", "::", "get", "(", "dyn_cast", "<", "ConstantFP", ">", "(", "C", ")", "->", "getContext", "(", ")", ",", "F1", ")", ";", "Align", "Alignment", "=", "MF", "->", "getDataLayout", "(", ")", ".", "getPrefTypeAlign", "(", "C", "->", "getType", "(", ")", ")", ";", "unsigned", "ConstPoolIdx", "=", "MCP", "->", "getConstantPoolIndex", "(", "NegC", ",", "Alignment", ")", ";", "MachineOperand", "*", "Placeholder", "=", "nullptr", ";", "for", "(", "auto", "*", "Inst", ":", "InsInstrs", ")", "{", "for", "(", "MachineOperand", "&", "Operand", ":", "Inst", "->", "explicit_operands", "(", ")", ")", "{", "assert", "(", "Operand", ".", "isReg", "(", ")", "&&", "\"Invalid instruction in InsInstrs!\"", ")", ";", "if", "(", "Operand", ".", "getReg", "(", ")", "==", "PPC", "::", "ZERO8", ")", "{", "Placeholder", "=", "&", "Operand", ";", "break", ";", "}", "}", "}", "assert", "(", "Placeholder", "&&", "\"Placeholder does not exist!\"", ")", ";", "Register", "LoadNewConst", "=", "generateLoadForNewConst", "(", "ConstPoolIdx", ",", "&", "Root", ",", "C", "->", "getType", "(", ")", ",", "InsInstrs", ")", ";", "Placeholder", "->", "setReg", "(", "LoadNewConst", ")", ";", "}", ""], "natrual_language": ["Fix", "up", "the", "placeholder", "we", "may", "add", "in", "genAlternativeCodeSequence", "(", ")", "."], "TS_V_token": ["PowerPC", "PPC", "\"Instructions set to be inserted is empty!\"", "0", "0", "1", "\"not a valid constant!\"", "\"Invalid instruction in InsInstrs!\"", "PPC::ZERO8", "\"Placeholder does not exist!\""], "File": "PPCInstrInfo", "Func": "finalizeInsInstrs", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3576, "Length": 387, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "timode_remove_non_convertible_regs", "(", "bitmap", "candidates", ")", "{", "bitmap_iterator", "bi", ";", "unsigned", "id", ";", "bitmap", "regs", "=", "BITMAP_ALLOC", "(", "NULL", ")", ";", "bool", "changed", ";", "do", "{", "changed", "=", "false", ";", "EXECUTE_IF_SET_IN_BITMAP", "(", "candidates", ",", "0", ",", "id", ",", "bi", ")", "{", "rtx_insn", "*", "insn", "=", "DF_INSN_UID_GET", "(", "id", ")", "->", "insn", ";", "df_ref", "ref", ";", "FOR_EACH_INSN_DEF", "(", "ref", ",", "insn", ")", "if", "(", "!", "DF_REF_REG_MEM_P", "(", "ref", ")", "&&", "GET_MODE", "(", "DF_REF_REG", "(", "ref", ")", ")", "==", "TImode", ")", "timode_check_non_convertible_regs", "(", "candidates", ",", "regs", ",", "DF_REF_REGNO", "(", "ref", ")", ")", ";", "FOR_EACH_INSN_USE", "(", "ref", ",", "insn", ")", "if", "(", "!", "DF_REF_REG_MEM_P", "(", "ref", ")", "&&", "GET_MODE", "(", "DF_REF_REG", "(", "ref", ")", ")", "==", "TImode", ")", "timode_check_non_convertible_regs", "(", "candidates", ",", "regs", ",", "DF_REF_REGNO", "(", "ref", ")", ")", ";", "}", "EXECUTE_IF_SET_IN_BITMAP", "(", "regs", ",", "0", ",", "id", ",", "bi", ")", "{", "for", "(", "df_ref", "def", "=", "DF_REG_DEF_CHAIN", "(", "id", ")", ";", "def", ";", "def", "=", "DF_REF_NEXT_REG", "(", "def", ")", ")", "if", "(", "bitmap_bit_p", "(", "candidates", ",", "DF_REF_INSN_UID", "(", "def", ")", ")", ")", "{", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"Removing insn %d from candidates list\\n\"", ",", "DF_REF_INSN_UID", "(", "def", ")", ")", ";", "bitmap_clear_bit", "(", "candidates", ",", "DF_REF_INSN_UID", "(", "def", ")", ")", ";", "changed", "=", "true", ";", "}", "for", "(", "df_ref", "ref", "=", "DF_REG_USE_CHAIN", "(", "id", ")", ";", "ref", ";", "ref", "=", "DF_REF_NEXT_REG", "(", "ref", ")", ")", "if", "(", "bitmap_bit_p", "(", "candidates", ",", "DF_REF_INSN_UID", "(", "ref", ")", ")", ")", "{", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"Removing insn %d from candidates list\\n\"", ",", "DF_REF_INSN_UID", "(", "ref", ")", ")", ";", "bitmap_clear_bit", "(", "candidates", ",", "DF_REF_INSN_UID", "(", "ref", ")", ")", ";", "changed", "=", "true", ";", "}", "}", "}", "while", "(", "changed", ")", ";", "BITMAP_FREE", "(", "regs", ")", ";", "}", ""], "natrual_language": ["For", "a", "given", "bitmap", "of", "insn", "UIDs", "scans", "all", "instructions", "and", "remove", "insn", "from", "CANDIDATES", "in", "case", "it", "has", "both", "convertible", "and", "not", "convertible", "definitions", ".", "All", "insns", "in", "a", "bitmap", "are", "conversion", "candidates", "according", "to", "scalar_to_vector_candidate_p", ".", "Currently", "it", "implies", "all", "insns", "are", "single_set", "."], "TS_V_token": ["i386", "0", "0", "\"Removing insn %d from candidates list\\n\"", "\"Removing insn %d from candidates list\\n\""], "File": "i386-features1", "Func": "timode_remove_non_convertible_regs", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3577, "Length": 279, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMBaseInstrInfo", "::", "buildOutlinedFrame", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineFunction", "&", "MF", ",", "const", "outliner", "::", "OutlinedFunction", "&", "OF", ")", "const", "{", "if", "(", "OF", ".", "FrameConstructionID", "==", "MachineOutlinerTailCall", ")", "return", ";", "if", "(", "OF", ".", "FrameConstructionID", "==", "MachineOutlinerThunk", ")", "{", "MachineInstr", "*", "Call", "=", "&", "*", "--", "MBB", ".", "instr_end", "(", ")", ";", "bool", "isThumb", "=", "Subtarget", ".", "isThumb", "(", ")", ";", "unsigned", "FuncOp", "=", "isThumb", "?", "2", ":", "0", ";", "unsigned", "Opc", "=", "Call", "->", "getOperand", "(", "FuncOp", ")", ".", "isReg", "(", ")", "?", "isThumb", "?", "ARM", "::", "tTAILJMPr", ":", "ARM", "::", "TAILJMPr", ":", "isThumb", "?", "Subtarget", ".", "isTargetMachO", "(", ")", "?", "ARM", "::", "tTAILJMPd", ":", "ARM", "::", "tTAILJMPdND", ":", "ARM", "::", "TAILJMPd", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "MBB", ",", "MBB", ".", "end", "(", ")", ",", "DebugLoc", "(", ")", ",", "get", "(", "Opc", ")", ")", ".", "add", "(", "Call", "->", "getOperand", "(", "FuncOp", ")", ")", ";", "if", "(", "isThumb", "&&", "!", "Call", "->", "getOperand", "(", "FuncOp", ")", ".", "isReg", "(", ")", ")", "MIB", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "Call", "->", "eraseFromParent", "(", ")", ";", "return", ";", "}", "BuildMI", "(", "MBB", ",", "MBB", ".", "end", "(", ")", ",", "DebugLoc", "(", ")", ",", "get", "(", "Subtarget", ".", "getReturnOpcode", "(", ")", ")", ")", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "}", ""], "natrual_language": ["Insert", "a", "custom", "frame", "for", "outlined", "functions", "."], "TS_V_token": ["ARM", "ARM", "2", "0", "ARM::tTAILJMPr", "ARM::TAILJMPr", "ARM::tTAILJMPd", "ARM::tTAILJMPdND", "ARM::TAILJMPd", "ARMCC::AL", "ARMCC::AL"], "File": "ARMBaseInstrInfo127", "Func": "buildOutlinedFrame", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3578, "Length": 221, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCDispatchGroupSBHazardRecognizer", "::", "PreEmitNoops", "(", "SUnit", "*", "SU", ")", "{", "if", "(", "isLoadAfterStore", "(", "SU", ")", "&&", "CurSlots", "<", "6", ")", "{", "unsigned", "Directive", "=", "DAG", "->", "TM", ".", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ".", "getDarwinDirective", "(", ")", ";", "if", "(", "Directive", "==", "PPC", "::", "DIR_PWR6", "||", "Directive", "==", "PPC", "::", "DIR_PWR7", ")", "return", "1", ";", "return", "5", "-", "CurSlots", ";", "}", "return", "ScoreboardHazardRecognizer", "::", "PreEmitNoops", "(", "SU", ")", ";", "}", ""], "natrual_language": ["PreEmitNoops", "-", "This", "callback", "is", "invoked", "prior", "to", "emitting", "an", "instruction", "."], "TS_V_token": ["PowerPC", "PPC", "6", "PPC", "PPC::DIR_PWR6", "PPC::DIR_PWR7", "1", "5"], "File": "PPCHazardRecognizers16", "Func": "PreEmitNoops", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3579, "Length": 72, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "struct", "machine_function", "*", "mmix_init_machine_status", "(", "void", ")", "{", "return", "ggc_cleared_alloc", "<", "machine_function", ">", "(", ")", ";", "}", ""], "natrual_language": ["Set", "the", "per-function", "data", "."], "TS_V_token": ["mmix"], "File": "mmix", "Func": "mmix_init_machine_status", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3580, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx_insn", "*", "thumb1_emit_multi_reg_push", "(", "unsigned", "long", "mask", ",", "unsigned", "long", "real_regs", ")", "{", "unsigned", "long", "regno", ";", "rtx", "par", "[", "10", "]", ",", "tmp", ",", "reg", ";", "rtx_insn", "*", "insn", ";", "int", "i", ",", "j", ";", "for", "(", "i", "=", "0", ";", "mask", ";", "++", "i", ",", "mask", "&=", "mask", "-", "1", ")", "{", "regno", "=", "ctz_hwi", "(", "mask", ")", ";", "reg", "=", "gen_rtx_REG", "(", "SImode", ",", "regno", ")", ";", "if", "(", "i", "==", "0", ")", "tmp", "=", "gen_rtx_UNSPEC", "(", "BLKmode", ",", "gen_rtvec", "(", "1", ",", "reg", ")", ",", "UNSPEC_PUSH_MULT", ")", ";", "else", "tmp", "=", "gen_rtx_USE", "(", "VOIDmode", ",", "reg", ")", ";", "par", "[", "i", "]", "=", "tmp", ";", "}", "tmp", "=", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "-", "4", "*", "i", ")", ";", "tmp", "=", "gen_rtx_PRE_MODIFY", "(", "Pmode", ",", "stack_pointer_rtx", ",", "tmp", ")", ";", "tmp", "=", "gen_frame_mem", "(", "BLKmode", ",", "tmp", ")", ";", "tmp", "=", "gen_rtx_SET", "(", "tmp", ",", "par", "[", "0", "]", ")", ";", "par", "[", "0", "]", "=", "tmp", ";", "tmp", "=", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "gen_rtvec_v", "(", "i", ",", "par", ")", ")", ";", "insn", "=", "emit_insn", "(", "tmp", ")", ";", "tmp", "=", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "-", "4", "*", "i", ")", ";", "tmp", "=", "gen_rtx_SET", "(", "stack_pointer_rtx", ",", "tmp", ")", ";", "par", "[", "0", "]", "=", "tmp", ";", "for", "(", "j", "=", "0", ";", "real_regs", ";", "++", "j", ",", "real_regs", "&=", "real_regs", "-", "1", ")", "{", "regno", "=", "ctz_hwi", "(", "real_regs", ")", ";", "reg", "=", "gen_rtx_REG", "(", "SImode", ",", "regno", ")", ";", "tmp", "=", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "j", "*", "4", ")", ";", "tmp", "=", "gen_frame_mem", "(", "SImode", ",", "tmp", ")", ";", "tmp", "=", "gen_rtx_SET", "(", "tmp", ",", "reg", ")", ";", "RTX_FRAME_RELATED_P", "(", "tmp", ")", "=", "1", ";", "par", "[", "j", "+", "1", "]", "=", "tmp", ";", "}", "if", "(", "j", "==", "0", ")", "tmp", "=", "par", "[", "0", "]", ";", "else", "{", "RTX_FRAME_RELATED_P", "(", "par", "[", "0", "]", ")", "=", "1", ";", "tmp", "=", "gen_rtx_SEQUENCE", "(", "VOIDmode", ",", "gen_rtvec_v", "(", "j", "+", "1", ",", "par", ")", ")", ";", "}", "add_reg_note", "(", "insn", ",", "REG_FRAME_RELATED_EXPR", ",", "tmp", ")", ";", "return", "insn", ";", "}", ""], "natrual_language": ["Like", "emit_multi_reg_push", ",", "but", "allowing", "for", "a", "different", "set", "of", "registers", "to", "be", "described", "as", "saved", ".", "MASK", "is", "the", "set", "of", "registers", "to", "be", "saved", ";", "REAL_REGS", "is", "the", "set", "of", "registers", "to", "be", "described", "as", "saved", ".", "If", "REAL_REGS", "is", "0", ",", "only", "describe", "the", "stack", "adjustment", "."], "TS_V_token": ["arm", "10", "0", "1", "0", "1", "4", "0", "0", "4", "0", "0", "1", "4", "1", "1", "0", "0", "0", "1", "1"], "File": "arm", "Func": "thumb1_emit_multi_reg_push", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3581, "Length": 352, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMOperand", "::", "dump", "(", "raw_ostream", "&", "OS", ")", "const", "{", "switch", "(", "Kind", ")", "{", "case", "CondCode", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "CCOut", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "CoprocNum", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "CoprocReg", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "MSRMask", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "Immediate", ":", "getImm", "(", ")", "->", "print", "(", "OS", ")", ";", "break", ";", "case", "MemBarrierOpt", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "Memory", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "ProcIFlags", ":", "{", "OS", "<<", "\"=", "0", ";", "--", "i", ")", "if", "(", "IFlags", "&", "(", "1", "<<", "i", ")", ")", "OS", "<<", "ARM_PROC", "::", "IFlagsToString", "(", "1", "<<", "i", ")", ";", "OS", "<<", "\">\"", ";", "break", ";", "}", "case", "Register", ":", "OS", "<<", "\"\"", ";", "break", ";", "case", "RegisterList", ":", "case", "DPRRegisterList", ":", "case", "SPRRegisterList", ":", "{", "OS", "<<", "\"", "&", "RegList", "=", "getRegList", "(", ")", ";", "for", "(", "SmallVectorImpl", "<", "unsigned", ">", "::", "const_iterator", "I", "=", "RegList", ".", "begin", "(", ")", ",", "E", "=", "RegList", ".", "end", "(", ")", ";", "I", "!=", "E", ";", ")", "{", "OS", "<<", "*", "I", ";", "if", "(", "++", "I", "<", "E", ")", "OS", "<<", "\", \"", ";", "}", "OS", "<<", "\">\"", ";", "break", ";", "}", "case", "Token", ":", "OS", "<<", "\"'\"", "<<", "getToken", "(", ")", "<<", "\"'\"", ";", "break", ";", "}", "}", ""], "natrual_language": ["Dump", "the", "plan", "to", "stderr", "(", "for", "debugging", ")", "."], "TS_V_token": ["ARM", "ARM", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"\"", "\"'\"", "\"'\""], "File": "ARMAsmParser8", "Func": "dump", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3582, "Length": 417, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isLegalMaskedStore", "(", "Type", "*", "DataType", ",", "MaybeAlign", "Alignment", ")", "{", "return", "isLegalMaskedLoadStore", "(", "DataType", ",", "Alignment", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "supports", "masked", "store", "."], "TS_V_token": ["AArch64"], "File": "AArch64TargetTransformInfo1", "Func": "isLegalMaskedStore", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3583, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "aarch64_expand_cpymem", "(", "rtx", "*", "operands", ")", "{", "int", "mode_bits", ";", "rtx", "dst", "=", "operands", "[", "0", "]", ";", "rtx", "src", "=", "operands", "[", "1", "]", ";", "rtx", "base", ";", "machine_mode", "cur_mode", "=", "BLKmode", ";", "if", "(", "!", "CONST_INT_P", "(", "operands", "[", "2", "]", ")", ")", "return", "false", ";", "unsigned", "HOST_WIDE_INT", "size", "=", "INTVAL", "(", "operands", "[", "2", "]", ")", ";", "unsigned", "HOST_WIDE_INT", "max_copy_size", "=", "256", ";", "if", "(", "optimize_function_for_size_p", "(", "cfun", ")", ")", "max_copy_size", "=", "128", ";", "int", "copy_bits", "=", "256", ";", "if", "(", "size", "<=", "24", "||", "!", "TARGET_SIMD", "||", "(", "aarch64_tune_params", ".", "extra_tuning_flags", "&", "AARCH64_EXTRA_TUNE_NO_LDP_STP_QREGS", ")", ")", "{", "copy_bits", "=", "128", ";", "max_copy_size", "=", "max_copy_size", "/", "2", ";", "}", "if", "(", "size", ">", "max_copy_size", ")", "return", "false", ";", "base", "=", "copy_to_mode_reg", "(", "Pmode", ",", "XEXP", "(", "dst", ",", "0", ")", ")", ";", "dst", "=", "adjust_automodify_address", "(", "dst", ",", "VOIDmode", ",", "base", ",", "0", ")", ";", "base", "=", "copy_to_mode_reg", "(", "Pmode", ",", "XEXP", "(", "src", ",", "0", ")", ")", ";", "src", "=", "adjust_automodify_address", "(", "src", ",", "VOIDmode", ",", "base", ",", "0", ")", ";", "int", "n", "=", "size", "*", "BITS_PER_UNIT", ";", "while", "(", "n", ">", "0", ")", "{", "opt_scalar_int_mode", "mode_iter", ";", "FOR_EACH_MODE_IN_CLASS", "(", "mode_iter", ",", "MODE_INT", ")", "if", "(", "GET_MODE_BITSIZE", "(", "mode_iter", ".", "require", "(", ")", ")", "<=", "MIN", "(", "n", ",", "copy_bits", ")", ")", "cur_mode", "=", "mode_iter", ".", "require", "(", ")", ";", "gcc_assert", "(", "cur_mode", "!=", "BLKmode", ")", ";", "mode_bits", "=", "GET_MODE_BITSIZE", "(", "cur_mode", ")", ".", "to_constant", "(", ")", ";", "if", "(", "mode_bits", "==", "128", "&&", "copy_bits", "==", "256", ")", "cur_mode", "=", "V4SImode", ";", "aarch64_copy_one_block_and_progress_pointers", "(", "&", "src", ",", "&", "dst", ",", "cur_mode", ")", ";", "n", "-=", "mode_bits", ";", "if", "(", "n", ">", "0", "&&", "n", "<", "copy_bits", "/", "2", ")", "{", "machine_mode", "next_mode", "=", "smallest_mode_for_size", "(", "n", ",", "MODE_INT", ")", ";", "int", "n_bits", "=", "GET_MODE_BITSIZE", "(", "next_mode", ")", ".", "to_constant", "(", ")", ";", "gcc_assert", "(", "n_bits", "<=", "mode_bits", ")", ";", "src", "=", "aarch64_move_pointer", "(", "src", ",", "(", "n", "-", "n_bits", ")", "/", "BITS_PER_UNIT", ")", ";", "dst", "=", "aarch64_move_pointer", "(", "dst", ",", "(", "n", "-", "n_bits", ")", "/", "BITS_PER_UNIT", ")", ";", "n", "=", "n_bits", ";", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["Expand", "cpymem", ",", "as", "if", "from", "a", "__builtin_memcpy", ".", "Return", "true", "if", "we", "succeed", ",", "otherwise", "return", "false", "."], "TS_V_token": ["aarch64", "0", "1", "2", "2", "256", "128", "256", "24", "128", "2", "0", "0", "0", "0", "0", "128", "256", "0", "2"], "File": "aarch641", "Func": "aarch64_expand_cpymem", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3584, "Length": 353, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "rs6000_libcall_value", "(", "machine_mode", "mode", ")", "{", "unsigned", "int", "regno", ";", "if", "(", "TARGET_32BIT", "&&", "TARGET_POWERPC64", "&&", "mode", "==", "DImode", ")", "return", "rs6000_parallel_return", "(", "mode", ",", "2", ",", "SImode", ",", "GP_ARG_RETURN", ",", "1", ")", ";", "if", "(", "DECIMAL_FLOAT_MODE_P", "(", "mode", ")", "&&", "TARGET_HARD_FLOAT", "&&", "TARGET_FPRS", ")", "regno", "=", "(", "mode", "==", "TDmode", ")", "?", "FP_ARG_RETURN", "+", "1", ":", "FP_ARG_RETURN", ";", "else", "if", "(", "SCALAR_FLOAT_MODE_NOT_VECTOR_P", "(", "mode", ")", "&&", "TARGET_HARD_FLOAT", "&&", "TARGET_FPRS", "&&", "(", "(", "TARGET_SINGLE_FLOAT", "&&", "mode", "==", "SFmode", ")", "||", "TARGET_DOUBLE_FLOAT", ")", ")", "regno", "=", "FP_ARG_RETURN", ";", "else", "if", "(", "ALTIVEC_OR_VSX_VECTOR_MODE", "(", "mode", ")", "&&", "TARGET_ALTIVEC", "&&", "TARGET_ALTIVEC_ABI", ")", "regno", "=", "ALTIVEC_ARG_RETURN", ";", "else", "if", "(", "COMPLEX_MODE_P", "(", "mode", ")", "&&", "targetm", ".", "calls", ".", "split_complex_arg", ")", "return", "rs6000_complex_function_value", "(", "mode", ")", ";", "else", "if", "(", "TARGET_E500_DOUBLE", "&&", "TARGET_HARD_FLOAT", "&&", "(", "mode", "==", "DFmode", "||", "mode", "==", "DCmode", "||", "FLOAT128_IBM_P", "(", "mode", ")", "||", "mode", "==", "TCmode", ")", ")", "return", "spe_build_register_parallel", "(", "mode", ",", "GP_ARG_RETURN", ")", ";", "else", "regno", "=", "GP_ARG_RETURN", ";", "return", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "}", ""], "natrual_language": ["Define", "how", "to", "find", "the", "value", "returned", "by", "a", "library", "function", "assuming", "the", "value", "has", "mode", "MODE", "."], "TS_V_token": ["powerpcspe", "2", "1", "1"], "File": "powerpcspe", "Func": "rs6000_libcall_value", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3585, "Length": 172, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "pa_struct_value_rtx", "(", "tree", "fntype", "ATTRIBUTE_UNUSED", ",", "int", "incoming", "ATTRIBUTE_UNUSED", ")", "{", "return", "gen_rtx_REG", "(", "Pmode", ",", "PA_STRUCT_VALUE_REGNUM", ")", ";", "}", ""], "natrual_language": ["Worker", "function", "for", "TARGET_STRUCT_VALUE_RTX", "."], "TS_V_token": ["pa"], "File": "pa", "Func": "pa_struct_value_rtx", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3586, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getNumFixupKinds", "(", ")", "const", "override", "{", "return", "AArch64", "::", "NumTargetFixupKinds", ";", "}", ""], "natrual_language": ["Get", "the", "number", "of", "target", "specific", "fixup", "kinds", "."], "TS_V_token": ["AArch64", "AArch64::NumTargetFixupKinds"], "File": "AArch64AsmBackend (2)", "Func": "getNumFixupKinds", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3587, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMPassConfig", "::", "addPreSched2", "(", ")", "{", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "if", "(", "!", "getARMSubtarget", "(", ")", ".", "isThumb1Only", "(", ")", ")", "PM", ".", "add", "(", "createARMLoadStoreOptimizationPass", "(", ")", ")", ";", "if", "(", "getARMSubtarget", "(", ")", ".", "hasNEON", "(", ")", ")", "PM", ".", "add", "(", "createExecutionDependencyFixPass", "(", "&", "ARM", "::", "DPRRegClass", ")", ")", ";", "}", "PM", ".", "add", "(", "createARMExpandPseudoPass", "(", ")", ")", ";", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "if", "(", "!", "getARMSubtarget", "(", ")", ".", "isThumb1Only", "(", ")", ")", "addPass", "(", "IfConverterID", ")", ";", "}", "if", "(", "getARMSubtarget", "(", ")", ".", "isThumb2", "(", ")", ")", "PM", ".", "add", "(", "createThumb2ITBlockPass", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "after", "prolog-epilog", "insertion", "and", "before", "the", "second", "instruction", "scheduling", "pass", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM::DPRRegClass", "ARM", "ARM", "ARM"], "File": "ARMTargetMachine109", "Func": "addPreSched2", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3588, "Length": 122, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "aarch64_swap_ldrstr_operands", "(", "rtx", "*", "operands", ",", "bool", "load", ")", "{", "rtx", "mem_1", ",", "mem_2", ",", "base_1", ",", "base_2", ",", "offset_1", ",", "offset_2", ";", "HOST_WIDE_INT", "offval_1", ",", "offval_2", ";", "if", "(", "load", ")", "{", "mem_1", "=", "operands", "[", "1", "]", ";", "mem_2", "=", "operands", "[", "3", "]", ";", "}", "else", "{", "mem_1", "=", "operands", "[", "0", "]", ";", "mem_2", "=", "operands", "[", "2", "]", ";", "}", "extract_base_offset_in_addr", "(", "mem_1", ",", "&", "base_1", ",", "&", "offset_1", ")", ";", "extract_base_offset_in_addr", "(", "mem_2", ",", "&", "base_2", ",", "&", "offset_2", ")", ";", "offval_1", "=", "INTVAL", "(", "offset_1", ")", ";", "offval_2", "=", "INTVAL", "(", "offset_2", ")", ";", "if", "(", "offval_1", ">", "offval_2", ")", "{", "std", "::", "swap", "(", "operands", "[", "0", "]", ",", "operands", "[", "2", "]", ")", ";", "std", "::", "swap", "(", "operands", "[", "1", "]", ",", "operands", "[", "3", "]", ")", ";", "}", "}", ""], "natrual_language": ["Given", "OPERANDS", "of", "consecutive", "load/store", "that", "can", "be", "merged", ",", "swap", "them", "if", "they", "are", "not", "in", "ascending", "order", "."], "TS_V_token": ["aarch64", "1", "3", "0", "2", "0", "2", "1", "3"], "File": "aarch64", "Func": "aarch64_swap_ldrstr_operands", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3589, "Length": 141, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86FastTileConfig", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MFunc", ")", "{", "MF", "=", "&", "MFunc", ";", "MRI", "=", "&", "MFunc", ".", "getRegInfo", "(", ")", ";", "ST", "=", "&", "MFunc", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "TRI", "=", "ST", "->", "getRegisterInfo", "(", ")", ";", "TII", "=", "MFunc", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "X86FI", "=", "MFunc", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", ";", "return", "fastTileConfig", "(", ")", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86"], "File": "X86FastTileConfig", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3590, "Length": 73, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64TargetLowering", "::", "needsFixedCatchObjects", "(", ")", "const", "{", "return", "false", ";", "}", ""], "natrual_language": ["Used", "for", "exception", "handling", "on", "Win64", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64ISelLowering (2)2", "Func": "needsFixedCatchObjects", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3591, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "getSafeStackPointerLocation", "(", "unsigned", "&", "AddressSpace", ",", "unsigned", "&", "Offset", ")", "const", "{", "if", "(", "!", "Subtarget", "->", "isTargetAndroid", "(", ")", ")", "return", "false", ";", "if", "(", "Subtarget", "->", "is64Bit", "(", ")", ")", "{", "Offset", "=", "0x48", ";", "if", "(", "getTargetMachine", "(", ")", ".", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Kernel", ")", "AddressSpace", "=", "256", ";", "else", "AddressSpace", "=", "257", ";", "}", "else", "{", "Offset", "=", "0x24", ";", "AddressSpace", "=", "256", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "stores", "SafeStack", "pointer", "at", "a", "fixed", "offset", "in", "some", "non-standard", "address", "space", ",", "and", "populates", "the", "address", "space", "and", "offset", "as", "appropriate", "."], "TS_V_token": ["X86", "X86", "0x48", "256", "257", "0x24", "256"], "File": "X86ISelLowering1", "Func": "getSafeStackPointerLocation", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3592, "Length": 79, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SystemZSubtarget", "&", "SystemZSubtarget", "::", "initializeSubtargetDependencies", "(", "StringRef", "CPU", ",", "StringRef", "FS", ")", "{", "StringRef", "CPUName", "=", "CPU", ";", "if", "(", "CPUName", ".", "empty", "(", ")", ")", "CPUName", "=", "\"generic\"", ";", "ParseSubtargetFeatures", "(", "CPUName", ",", "CPUName", ",", "FS", ")", ";", "if", "(", "HasSoftFloat", ")", "HasVector", "=", "false", ";", "if", "(", "!", "HasVector", ")", "{", "HasVectorEnhancements1", "=", "false", ";", "HasVectorEnhancements2", "=", "false", ";", "HasVectorPackedDecimal", "=", "false", ";", "HasVectorPackedDecimalEnhancement", "=", "false", ";", "}", "return", "*", "this", ";", "}", ""], "natrual_language": ["initializeSubtargetDependencies", "-", "Initializes", "using", "a", "CPU", ",", "a", "TuneCPU", ",", "and", "feature", "string", "so", "that", "we", "can", "use", "initializer", "lists", "for", "subtarget", "initialization", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ", "\"generic\""], "File": "SystemZSubtarget11", "Func": "initializeSubtargetDependencies", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3593, "Length": 75, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Thumb2InstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "RC", "==", "ARM", "::", "GPRRegisterClass", "||", "RC", "==", "ARM", "::", "tGPRRegisterClass", ")", "{", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "*", "MF", ".", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "PseudoSourceValue", "::", "getFixedStack", "(", "FI", ")", ",", "MachineMemOperand", "::", "MOStore", ",", "0", ",", "MFI", ".", "getObjectSize", "(", "FI", ")", ",", "MFI", ".", "getObjectAlignment", "(", "FI", ")", ")", ";", "AddDefaultPred", "(", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "t2STRi12", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ")", ";", "return", ";", "}", "ARMBaseInstrInfo", "::", "storeRegToStackSlot", "(", "MBB", ",", "I", ",", "SrcReg", ",", "isKill", ",", "FI", ",", "RC", ")", ";", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARM", "ARM::GPRRegisterClass", "ARM::tGPRRegisterClass", "0", "ARM::t2STRi12", "0", "ARM"], "File": "Thumb2InstrInfo4", "Func": "storeRegToStackSlot", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3594, "Length": 189, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "const_load_sequence_p", "(", "swap_web_entry", "*", "insn_entry", ",", "rtx", "insn", ")", "{", "unsigned", "uid", "=", "INSN_UID", "(", "insn", ")", ";", "if", "(", "!", "insn_entry", "[", "uid", "]", ".", "is_swap", "||", "insn_entry", "[", "uid", "]", ".", "is_load", ")", "return", "false", ";", "const_rtx", "tocrel_base", ";", "struct", "df_insn_info", "*", "insn_info", "=", "DF_INSN_INFO_GET", "(", "insn", ")", ";", "df_ref", "use", ";", "FOR_EACH_INSN_INFO_USE", "(", "use", ",", "insn_info", ")", "{", "struct", "df_link", "*", "def_link", "=", "DF_REF_CHAIN", "(", "use", ")", ";", "if", "(", "!", "def_link", "||", "!", "def_link", "->", "ref", "||", "DF_REF_IS_ARTIFICIAL", "(", "def_link", "->", "ref", ")", "||", "def_link", "->", "next", ")", "return", "false", ";", "rtx", "def_insn", "=", "DF_REF_INSN", "(", "def_link", "->", "ref", ")", ";", "unsigned", "uid2", "=", "INSN_UID", "(", "def_insn", ")", ";", "if", "(", "!", "insn_entry", "[", "uid2", "]", ".", "is_load", "||", "!", "insn_entry", "[", "uid2", "]", ".", "is_swap", ")", "return", "false", ";", "rtx", "body", "=", "PATTERN", "(", "def_insn", ")", ";", "if", "(", "GET_CODE", "(", "body", ")", "!=", "SET", "||", "!", "(", "GET_CODE", "(", "SET_SRC", "(", "body", ")", ")", "==", "VEC_SELECT", "||", "pattern_is_rotate64", "(", "body", ")", ")", "||", "!", "MEM_P", "(", "XEXP", "(", "SET_SRC", "(", "body", ")", ",", "0", ")", ")", ")", "return", "false", ";", "rtx", "mem", "=", "XEXP", "(", "SET_SRC", "(", "body", ")", ",", "0", ")", ";", "rtx", "base_reg", "=", "XEXP", "(", "mem", ",", "0", ")", ";", "if", "(", "!", "REG_P", "(", "base_reg", ")", ")", "return", "false", ";", "df_ref", "base_use", ";", "insn_info", "=", "DF_INSN_INFO_GET", "(", "def_insn", ")", ";", "FOR_EACH_INSN_INFO_USE", "(", "base_use", ",", "insn_info", ")", "{", "if", "(", "!", "rtx_equal_p", "(", "DF_REF_REG", "(", "base_use", ")", ",", "base_reg", ")", ")", "continue", ";", "struct", "df_link", "*", "base_def_link", "=", "DF_REF_CHAIN", "(", "base_use", ")", ";", "if", "(", "!", "base_def_link", "||", "base_def_link", "->", "next", ")", "return", "false", ";", "if", "(", "DF_REF_IS_ARTIFICIAL", "(", "base_def_link", "->", "ref", ")", ")", "return", "false", ";", "rtx", "tocrel_insn", "=", "DF_REF_INSN", "(", "base_def_link", "->", "ref", ")", ";", "rtx", "tocrel_body", "=", "PATTERN", "(", "tocrel_insn", ")", ";", "rtx", "base", ",", "offset", ";", "if", "(", "GET_CODE", "(", "tocrel_body", ")", "!=", "SET", ")", "return", "false", ";", "rtx", "tocrel_expr", "=", "SET_SRC", "(", "tocrel_body", ")", ";", "if", "(", "MEM_P", "(", "tocrel_expr", ")", ")", "tocrel_expr", "=", "XEXP", "(", "tocrel_expr", ",", "0", ")", ";", "if", "(", "!", "toc_relative_expr_p", "(", "tocrel_expr", ",", "false", ",", "&", "tocrel_base", ",", "NULL", ")", ")", "return", "false", ";", "split_const", "(", "XVECEXP", "(", "tocrel_base", ",", "0", ",", "0", ")", ",", "&", "base", ",", "&", "offset", ")", ";", "if", "(", "!", "SYMBOL_REF_P", "(", "base", ")", "||", "!", "CONSTANT_POOL_ADDRESS_P", "(", "base", ")", ")", "return", "false", ";", "else", "{", "rtx", "const_vector", "=", "get_pool_constant", "(", "base", ")", ";", "if", "(", "SYMBOL_REF_P", "(", "const_vector", ")", "&&", "CONSTANT_POOL_ADDRESS_P", "(", "const_vector", ")", ")", "const_vector", "=", "get_pool_constant", "(", "const_vector", ")", ";", "if", "(", "GET_CODE", "(", "const_vector", ")", "!=", "CONST_VECTOR", ")", "return", "false", ";", "}", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["Return", "TRUE", "if", "insn", "is", "a", "swap", "fed", "by", "a", "load", "from", "the", "constant", "pool", "."], "TS_V_token": ["rs6000", "0", "0", "0", "0", "0", "0"], "File": "rs6000-p8swap", "Func": "const_load_sequence_p", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3595, "Length": 448, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "indirectable_constant_address_p", "(", "rtx", "x", ",", "bool", "indirect", "ATTRIBUTE_UNUSED", ")", "{", "return", "CONSTANT_ADDRESS_P", "(", "x", ")", ";", "}", ""], "natrual_language": ["Re-definition", "of", "CONSTANT_ADDRESS_P", ",", "which", "is", "true", "only", "when", "there", "are", "no", "SYMBOL_REFs", "for", "external", "symbols", "present", "."], "TS_V_token": ["vax"], "File": "vax", "Func": "indirectable_constant_address_p", "Target": "vax", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3596, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsFastISel", "::", "fastLowerCall", "(", "CallLoweringInfo", "&", "CLI", ")", "{", "CallingConv", "::", "ID", "CC", "=", "CLI", ".", "CallConv", ";", "bool", "IsTailCall", "=", "CLI", ".", "IsTailCall", ";", "bool", "IsVarArg", "=", "CLI", ".", "IsVarArg", ";", "const", "Value", "*", "Callee", "=", "CLI", ".", "Callee", ";", "if", "(", "IsTailCall", ")", "return", "false", ";", "if", "(", "IsVarArg", ")", "return", "false", ";", "MVT", "RetVT", ";", "if", "(", "CLI", ".", "RetTy", "->", "isVoidTy", "(", ")", ")", "RetVT", "=", "MVT", "::", "isVoid", ";", "else", "if", "(", "!", "isTypeLegal", "(", "CLI", ".", "RetTy", ",", "RetVT", ")", ")", "return", "false", ";", "for", "(", "auto", "Flag", ":", "CLI", ".", "OutFlags", ")", "if", "(", "Flag", ".", "isInReg", "(", ")", "||", "Flag", ".", "isSRet", "(", ")", "||", "Flag", ".", "isNest", "(", ")", "||", "Flag", ".", "isByVal", "(", ")", ")", "return", "false", ";", "SmallVector", "<", "MVT", ",", "16", ">", "OutVTs", ";", "OutVTs", ".", "reserve", "(", "CLI", ".", "OutVals", ".", "size", "(", ")", ")", ";", "for", "(", "auto", "*", "Val", ":", "CLI", ".", "OutVals", ")", "{", "MVT", "VT", ";", "if", "(", "!", "isTypeLegal", "(", "Val", "->", "getType", "(", ")", ",", "VT", ")", "&&", "!", "(", "VT", "==", "MVT", "::", "i1", "||", "VT", "==", "MVT", "::", "i8", "||", "VT", "==", "MVT", "::", "i16", ")", ")", "return", "false", ";", "if", "(", "VT", ".", "isVector", "(", ")", "||", "VT", ".", "getSizeInBits", "(", ")", ">", "64", ")", "return", "false", ";", "OutVTs", ".", "push_back", "(", "VT", ")", ";", "}", "Address", "Addr", ";", "if", "(", "!", "computeCallAddress", "(", "Callee", ",", "Addr", ")", ")", "return", "false", ";", "unsigned", "NumBytes", ";", "if", "(", "!", "processCallArgs", "(", "CLI", ",", "OutVTs", ",", "NumBytes", ")", ")", "return", "false", ";", "unsigned", "DestAddress", "=", "materializeGV", "(", "Addr", ".", "getGlobalValue", "(", ")", ",", "MVT", "::", "i32", ")", ";", "emitInst", "(", "TargetOpcode", "::", "COPY", ",", "Mips", "::", "T9", ")", ".", "addReg", "(", "DestAddress", ")", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "*", "FuncInfo", ".", "MBB", ",", "FuncInfo", ".", "InsertPt", ",", "DbgLoc", ",", "TII", ".", "get", "(", "Mips", "::", "JALR", ")", ",", "Mips", "::", "RA", ")", ".", "addReg", "(", "Mips", "::", "T9", ")", ";", "for", "(", "auto", "Reg", ":", "CLI", ".", "OutRegs", ")", "MIB", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Implicit", ")", ";", "MIB", ".", "addRegMask", "(", "TRI", ".", "getCallPreservedMask", "(", "CC", ")", ")", ";", "CLI", ".", "Call", "=", "MIB", ";", "for", "(", "auto", "Reg", ":", "CLI", ".", "OutRegs", ")", "MIB", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Implicit", ")", ";", "MIB", ".", "addRegMask", "(", "TRI", ".", "getCallPreservedMask", "(", "CC", ")", ")", ";", "CLI", ".", "Call", "=", "MIB", ";", "return", "finishCall", "(", "CLI", ",", "RetVT", ",", "NumBytes", ")", ";", "}", ""], "natrual_language": ["This", "method", "is", "called", "by", "target-independent", "code", "to", "do", "target-", "specific", "call", "lowering", "."], "TS_V_token": ["Mips", "Mips", "MVT::isVoid", "16", "MVT::i1", "MVT::i8", "MVT::i16", "64", "MVT::i32", "Mips::T9", "Mips::JALR", "Mips::RA", "Mips::T9"], "File": "MipsFastISel11", "Func": "fastLowerCall", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3597, "Length": 419, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ia64_vectorize_vec_perm_const_ok", "(", "machine_mode", "vmode", ",", "const", "unsigned", "char", "*", "sel", ")", "{", "struct", "expand_vec_perm_d", "d", ";", "unsigned", "int", "i", ",", "nelt", ",", "which", ";", "bool", "ret", ";", "d", ".", "vmode", "=", "vmode", ";", "d", ".", "nelt", "=", "nelt", "=", "GET_MODE_NUNITS", "(", "d", ".", "vmode", ")", ";", "d", ".", "testing_p", "=", "true", ";", "memcpy", "(", "d", ".", "perm", ",", "sel", ",", "nelt", ")", ";", "for", "(", "i", "=", "which", "=", "0", ";", "i", "<", "nelt", ";", "++", "i", ")", "{", "unsigned", "char", "e", "=", "d", ".", "perm", "[", "i", "]", ";", "gcc_assert", "(", "e", "<", "2", "*", "nelt", ")", ";", "which", "|=", "(", "e", "<", "nelt", "?", "1", ":", "2", ")", ";", "}", "if", "(", "which", "==", "2", ")", "for", "(", "i", "=", "0", ";", "i", "<", "nelt", ";", "++", "i", ")", "d", ".", "perm", "[", "i", "]", "-=", "nelt", ";", "d", ".", "one_operand_p", "=", "(", "which", "!=", "3", ")", ";", "d", ".", "target", "=", "gen_raw_REG", "(", "d", ".", "vmode", ",", "LAST_VIRTUAL_REGISTER", "+", "1", ")", ";", "d", ".", "op1", "=", "d", ".", "op0", "=", "gen_raw_REG", "(", "d", ".", "vmode", ",", "LAST_VIRTUAL_REGISTER", "+", "2", ")", ";", "if", "(", "!", "d", ".", "one_operand_p", ")", "d", ".", "op1", "=", "gen_raw_REG", "(", "d", ".", "vmode", ",", "LAST_VIRTUAL_REGISTER", "+", "3", ")", ";", "start_sequence", "(", ")", ";", "ret", "=", "ia64_expand_vec_perm_const_1", "(", "&", "d", ")", ";", "end_sequence", "(", ")", ";", "return", "ret", ";", "}", ""], "natrual_language": ["Implement", "targetm.vectorize.vec_perm_const_ok", "."], "TS_V_token": ["ia64", "0", "2", "1", "2", "2", "0", "3", "1", "2", "3"], "File": "ia644", "Func": "ia64_vectorize_vec_perm_const_ok", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3598, "Length": 228, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Register", "getStackAddress", "(", "uint64_t", "Size", ",", "int64_t", "Offset", ",", "MachinePointerInfo", "&", "MPO", ",", "ISD", "::", "ArgFlagsTy", "Flags", ")", "override", "{", "auto", "&", "MFI", "=", "MIRBuilder", ".", "getMF", "(", ")", ".", "getFrameInfo", "(", ")", ";", "const", "bool", "IsImmutable", "=", "!", "Flags", ".", "isByVal", "(", ")", ";", "int", "FI", "=", "MFI", ".", "CreateFixedObject", "(", "Size", ",", "Offset", ",", "IsImmutable", ")", ";", "MPO", "=", "MachinePointerInfo", "::", "getFixedStack", "(", "MIRBuilder", ".", "getMF", "(", ")", ",", "FI", ")", ";", "return", "MIRBuilder", ".", "buildFrameIndex", "(", "LLT", "::", "pointer", "(", "0", ",", "DL", ".", "getPointerSizeInBits", "(", "0", ")", ")", ",", "FI", ")", ".", "getReg", "(", "0", ")", ";", "}", ""], "natrual_language": ["Materialize", "a", "VReg", "containing", "the", "address", "of", "the", "specified", "stack-based", "object", "."], "TS_V_token": ["X86", "ISD::ArgFlagsTy", "0", "0", "0"], "File": "X86CallLowering11", "Func": "getStackAddress", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3599, "Length": 102, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "{", "return", "\"LEG DAG->DAG Pattern Instruction Selection\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["LEG", "\"LEG DAG->DAG Pattern Instruction Selection\""], "File": "LEGISelDAGToDAG2", "Func": "getPassName", "Target": "LEG", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3600, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZMCInstLower", "::", "lower", "(", "const", "MachineInstr", "*", "MI", ",", "MCInst", "&", "OutMI", ")", "const", "{", "OutMI", ".", "setOpcode", "(", "MI", "->", "getOpcode", "(", ")", ")", ";", "for", "(", "const", "MachineOperand", "&", "MO", ":", "MI", "->", "operands", "(", ")", ")", "if", "(", "!", "MO", ".", "isReg", "(", ")", "||", "!", "MO", ".", "isImplicit", "(", ")", ")", "OutMI", ".", "addOperand", "(", "lowerOperand", "(", "MO", ")", ")", ";", "}", ""], "natrual_language": ["The", "instruction", "is", "lowered", "."], "TS_V_token": ["SystemZ", "SystemZ"], "File": "SystemZMCInstLower12", "Func": "lower", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3601, "Length": 67, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "mips_adjust_insn_length", "(", "rtx_insn", "*", "insn", ",", "int", "length", ")", "{", "if", "(", "length", "==", "MAX_PIC_BRANCH_LENGTH", "&&", "JUMP_P", "(", "insn", ")", "&&", "INSN_CODE", "(", "insn", ")", ">=", "0", "&&", "get_attr_type", "(", "insn", ")", "==", "TYPE_BRANCH", ")", "{", "length", "=", "simplejump_p", "(", "insn", ")", "?", "0", ":", "8", ";", "length", "+=", "BASE_INSN_LENGTH", "*", "mips_load_label_num_insns", "(", ")", ";", "length", "+=", "TARGET_COMPRESSION", "?", "2", ":", "4", ";", "}", "if", "(", "CALL_P", "(", "insn", ")", "||", "(", "TARGET_MIPS16", "?", "simplejump_p", "(", "insn", ")", ":", "JUMP_P", "(", "insn", ")", ")", ")", "length", "+=", "TARGET_MIPS16", "?", "2", ":", "4", ";", "if", "(", "!", "cfun", "->", "machine", "->", "ignore_hazard_length_p", "&&", "INSN_P", "(", "insn", ")", "&&", "INSN_CODE", "(", "insn", ")", ">=", "0", ")", "switch", "(", "get_attr_hazard", "(", "insn", ")", ")", "{", "case", "HAZARD_NONE", ":", "break", ";", "case", "HAZARD_DELAY", ":", "case", "HAZARD_FORBIDDEN_SLOT", ":", "length", "+=", "NOP_INSN_LENGTH", ";", "break", ";", "case", "HAZARD_HILO", ":", "length", "+=", "NOP_INSN_LENGTH", "*", "2", ";", "break", ";", "}", "return", "length", ";", "}", ""], "natrual_language": ["Return", "the", "length", "of", "INSN", ".", "LENGTH", "is", "the", "initial", "length", "computed", "by", "attributes", "in", "the", "machine-description", "file", "."], "TS_V_token": ["mips", "0", "0", "8", "2", "4", "2", "4", "0", "2"], "File": "mips", "Func": "mips_adjust_insn_length", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3602, "Length": 156, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "rs6000_hash_constant", "(", "rtx", "k", ")", "{", "enum", "rtx_code", "code", "=", "GET_CODE", "(", "k", ")", ";", "machine_mode", "mode", "=", "GET_MODE", "(", "k", ")", ";", "unsigned", "result", "=", "(", "code", "<<", "3", ")", "^", "mode", ";", "const", "char", "*", "format", ";", "int", "flen", ",", "fidx", ";", "format", "=", "GET_RTX_FORMAT", "(", "code", ")", ";", "flen", "=", "strlen", "(", "format", ")", ";", "fidx", "=", "0", ";", "switch", "(", "code", ")", "{", "case", "LABEL_REF", ":", "return", "result", "*", "1231", "+", "(", "unsigned", ")", "INSN_UID", "(", "XEXP", "(", "k", ",", "0", ")", ")", ";", "case", "CONST_WIDE_INT", ":", "{", "int", "i", ";", "flen", "=", "CONST_WIDE_INT_NUNITS", "(", "k", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "flen", ";", "i", "++", ")", "result", "=", "result", "*", "613", "+", "CONST_WIDE_INT_ELT", "(", "k", ",", "i", ")", ";", "return", "result", ";", "}", "case", "CONST_DOUBLE", ":", "if", "(", "mode", "!=", "VOIDmode", ")", "return", "real_hash", "(", "CONST_DOUBLE_REAL_VALUE", "(", "k", ")", ")", "*", "result", ";", "flen", "=", "2", ";", "break", ";", "case", "CODE_LABEL", ":", "fidx", "=", "3", ";", "break", ";", "default", ":", "break", ";", "}", "for", "(", ";", "fidx", "<", "flen", ";", "fidx", "++", ")", "switch", "(", "format", "[", "fidx", "]", ")", "{", "case", "'s'", ":", "{", "unsigned", "i", ",", "len", ";", "const", "char", "*", "str", "=", "XSTR", "(", "k", ",", "fidx", ")", ";", "len", "=", "strlen", "(", "str", ")", ";", "result", "=", "result", "*", "613", "+", "len", ";", "for", "(", "i", "=", "0", ";", "i", "<", "len", ";", "i", "++", ")", "result", "=", "result", "*", "613", "+", "(", "unsigned", ")", "str", "[", "i", "]", ";", "break", ";", "}", "case", "'u'", ":", "case", "'e'", ":", "result", "=", "result", "*", "1231", "+", "rs6000_hash_constant", "(", "XEXP", "(", "k", ",", "fidx", ")", ")", ";", "break", ";", "case", "'i'", ":", "case", "'n'", ":", "result", "=", "result", "*", "613", "+", "(", "unsigned", ")", "XINT", "(", "k", ",", "fidx", ")", ";", "break", ";", "case", "'w'", ":", "if", "(", "sizeof", "(", "unsigned", ")", ">=", "sizeof", "(", "HOST_WIDE_INT", ")", ")", "result", "=", "result", "*", "613", "+", "(", "unsigned", ")", "XWINT", "(", "k", ",", "fidx", ")", ";", "else", "{", "size_t", "i", ";", "for", "(", "i", "=", "0", ";", "i", "<", "sizeof", "(", "HOST_WIDE_INT", ")", "/", "sizeof", "(", "unsigned", ")", ";", "i", "++", ")", "result", "=", "result", "*", "613", "+", "(", "unsigned", ")", "(", "XWINT", "(", "k", ",", "fidx", ")", ">>", "CHAR_BIT", "*", "i", ")", ";", "}", "break", ";", "case", "'0'", ":", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "return", "result", ";", "}", ""], "natrual_language": ["Hash", "functions", "for", "the", "hash", "table", "."], "TS_V_token": ["rs6000", "3", "0", "1231", "0", "0", "613", "2", "3", "613", "0", "613", "1231", "613", "613", "0", "613"], "File": "rs60004", "Func": "rs6000_hash_constant", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3603, "Length": 404, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "ix86_builtin_decl", "(", "unsigned", "code", ",", "bool", ")", "{", "if", "(", "code", ">=", "IX86_BUILTIN_MAX", ")", "return", "error_mark_node", ";", "return", "ix86_builtins", "[", "code", "]", ";", "}", ""], "natrual_language": ["Return", "the", "ix86", "builtin", "for", "CODE", "."], "TS_V_token": ["i386"], "File": "i3864", "Func": "ix86_builtin_decl", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3604, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ix86_memtag_can_tag_addresses", "(", ")", "{", "return", "ix86_lam_type", "!=", "lam_none", "&&", "TARGET_LP64", ";", "}", ""], "natrual_language": ["Implement", "TARGET_MEMTAG_CAN_TAG_ADDRESSES", "."], "TS_V_token": ["i386"], "File": "i3861", "Func": "ix86_memtag_can_tag_addresses", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3605, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64FrameLowering", "::", "processFunctionBeforeFrameFinalized", "(", "MachineFunction", "&", "MF", ",", "RegScavenger", "*", "RS", ")", "const", "{", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "assert", "(", "getStackGrowthDirection", "(", ")", "==", "TargetFrameLowering", "::", "StackGrowsDown", "&&", "\"Upwards growing stack unsupported\"", ")", ";", "int", "MinCSFrameIndex", ",", "MaxCSFrameIndex", ";", "int64_t", "SVEStackSize", "=", "assignSVEStackObjectOffsets", "(", "MFI", ",", "MinCSFrameIndex", ",", "MaxCSFrameIndex", ")", ";", "AArch64FunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "AArch64FunctionInfo", ">", "(", ")", ";", "AFI", "->", "setStackSizeSVE", "(", "alignTo", "(", "SVEStackSize", ",", "16U", ")", ")", ";", "AFI", "->", "setMinMaxSVECSFrameIndex", "(", "MinCSFrameIndex", ",", "MaxCSFrameIndex", ")", ";", "if", "(", "!", "MF", ".", "hasEHFunclets", "(", ")", ")", "return", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "WinEHFuncInfo", "&", "EHInfo", "=", "*", "MF", ".", "getWinEHFuncInfo", "(", ")", ";", "MachineBasicBlock", "&", "MBB", "=", "MF", ".", "front", "(", ")", ";", "auto", "MBBI", "=", "MBB", ".", "begin", "(", ")", ";", "while", "(", "MBBI", "!=", "MBB", ".", "end", "(", ")", "&&", "MBBI", "->", "getFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ")", "++", "MBBI", ";", "int", "UnwindHelpFI", "=", "MFI", ".", "CreateStackObject", "(", "8", ",", "16", ",", "false", ")", ";", "EHInfo", ".", "UnwindHelpFrameIdx", "=", "UnwindHelpFI", ";", "DebugLoc", "DL", ";", "RS", "->", "enterBasicBlockEnd", "(", "MBB", ")", ";", "RS", "->", "backward", "(", "std", "::", "prev", "(", "MBBI", ")", ")", ";", "unsigned", "DstReg", "=", "RS", "->", "FindUnusedReg", "(", "&", "AArch64", "::", "GPR64commonRegClass", ")", ";", "assert", "(", "DstReg", "&&", "\"There must be a free register after frame setup\"", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "AArch64", "::", "MOVi64imm", ")", ",", "DstReg", ")", ".", "addImm", "(", "-", "2", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "AArch64", "::", "STURXi", ")", ")", ".", "addReg", "(", "DstReg", ",", "getKillRegState", "(", "true", ")", ")", ".", "addFrameIndex", "(", "UnwindHelpFI", ")", ".", "addImm", "(", "0", ")", ";", "}", ""], "natrual_language": ["processFunctionBeforeFrameFinalized", "-", "This", "method", "is", "called", "immediately", "before", "the", "specified", "function", "'s", "frame", "layout", "(", "MF.getFrameInfo", "(", ")", ")", "is", "finalized", "."], "TS_V_token": ["AArch64", "AArch64", "\"Upwards growing stack unsupported\"", "AArch64", "AArch64", "16U", "8", "16", "AArch64::GPR64commonRegClass", "\"There must be a free register after frame setup\"", "AArch64::MOVi64imm", "2", "AArch64::STURXi", "0"], "File": "AArch64FrameLowering103", "Func": "processFunctionBeforeFrameFinalized", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3606, "Length": 295, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "DecodeStatus", "Mips64Disassembler", "::", "getInstruction", "(", "MCInst", "&", "instr", ",", "uint64_t", "&", "Size", ",", "const", "MemoryObject", "&", "Region", ",", "uint64_t", "Address", ",", "raw_ostream", "&", "vStream", ",", "raw_ostream", "&", "cStream", ")", "const", "{", "uint32_t", "Insn", ";", "DecodeStatus", "Result", "=", "readInstruction32", "(", "Region", ",", "Address", ",", "Size", ",", "Insn", ",", "isBigEndian", ",", "false", ")", ";", "if", "(", "Result", "==", "MCDisassembler", "::", "Fail", ")", "return", "MCDisassembler", "::", "Fail", ";", "Result", "=", "decodeInstruction", "(", "DecoderTableMips6432", ",", "instr", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Result", "!=", "MCDisassembler", "::", "Fail", ")", "{", "Size", "=", "4", ";", "return", "Result", ";", "}", "Result", "=", "decodeInstruction", "(", "DecoderTableMips32", ",", "instr", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Result", "!=", "MCDisassembler", "::", "Fail", ")", "{", "Size", "=", "4", ";", "return", "Result", ";", "}", "return", "MCDisassembler", "::", "Fail", ";", "}", ""], "natrual_language": ["Returns", "the", "disassembly", "of", "a", "single", "instruction", "."], "TS_V_token": ["Mips", "Mips", "Mips", "4", "Mips", "4"], "File": "MipsDisassembler10", "Func": "getInstruction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3607, "Length": 139, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "handle_arm_neon_h", "(", "void", ")", "{", "aarch64_simd_switcher", "simd", ";", "for", "(", "unsigned", "int", "i", "=", "0", ";", "i", "<", "ARM_NEON_H_TYPES_LAST", ";", "i", "++", ")", "for", "(", "unsigned", "int", "count", "=", "2", ";", "count", "<=", "4", ";", "++", "count", ")", "if", "(", "!", "aarch64_scalar_builtin_type_p", "(", "aarch64_simd_types", "[", "i", "]", ".", "type", ")", ")", "register_tuple_type", "(", "count", ",", "i", ")", ";", "aarch64_init_simd_builtin_functions", "(", "true", ")", ";", "aarch64_init_simd_intrinsics", "(", ")", ";", "}", ""], "natrual_language": ["Implement", "#", "pragma", "GCC", "aarch64", "``", "arm_neon.h", "''", ".", "The", "types", "and", "functions", "defined", "here", "need", "to", "be", "available", "internally", "during", "LTO", "as", "well", "."], "TS_V_token": ["aarch64", "0", "2", "4"], "File": "aarch64-builtins1", "Func": "handle_arm_neon_h", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3608, "Length": 69, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "function_value", "(", "tree", "type", ",", "enum", "machine_mode", "mode", ",", "int", "incoming_p", ")", "{", "int", "regbase", "=", "(", "incoming_p", "?", "SPARC_OUTGOING_INT_ARG_FIRST", ":", "SPARC_INCOMING_INT_ARG_FIRST", ")", ";", "enum", "mode_class", "mclass", "=", "GET_MODE_CLASS", "(", "mode", ")", ";", "int", "regno", ";", "if", "(", "type", "&&", "TREE_CODE", "(", "type", ")", "==", "VECTOR_TYPE", ")", "{", "HOST_WIDE_INT", "size", "=", "int_size_in_bytes", "(", "type", ")", ";", "gcc_assert", "(", "(", "TARGET_ARCH32", "&&", "size", "<=", "8", ")", "||", "(", "TARGET_ARCH64", "&&", "size", "<=", "32", ")", ")", ";", "if", "(", "mode", "==", "BLKmode", ")", "return", "function_arg_vector_value", "(", "size", ",", "TYPE_MODE", "(", "TREE_TYPE", "(", "type", ")", ")", ",", "SPARC_FP_ARG_FIRST", ")", ";", "else", "mclass", "=", "MODE_FLOAT", ";", "}", "else", "if", "(", "type", "&&", "TARGET_ARCH64", ")", "{", "if", "(", "TREE_CODE", "(", "type", ")", "==", "RECORD_TYPE", ")", "{", "gcc_assert", "(", "int_size_in_bytes", "(", "type", ")", "<=", "32", ")", ";", "return", "function_arg_record_value", "(", "type", ",", "mode", ",", "0", ",", "1", ",", "regbase", ")", ";", "}", "else", "if", "(", "TREE_CODE", "(", "type", ")", "==", "UNION_TYPE", ")", "{", "HOST_WIDE_INT", "size", "=", "int_size_in_bytes", "(", "type", ")", ";", "gcc_assert", "(", "size", "<=", "32", ")", ";", "return", "function_arg_union_value", "(", "size", ",", "mode", ",", "0", ",", "regbase", ")", ";", "}", "else", "if", "(", "AGGREGATE_TYPE_P", "(", "type", ")", ")", "{", "HOST_WIDE_INT", "bytes", "=", "int_size_in_bytes", "(", "type", ")", ";", "gcc_assert", "(", "bytes", "<=", "32", ")", ";", "mode", "=", "mode_for_size", "(", "bytes", "*", "BITS_PER_UNIT", ",", "MODE_INT", ",", "0", ")", ";", "if", "(", "mode", "==", "BLKmode", ")", "return", "function_arg_union_value", "(", "bytes", ",", "mode", ",", "0", ",", "regbase", ")", ";", "else", "mclass", "=", "MODE_INT", ";", "}", "else", "if", "(", "mclass", "==", "MODE_INT", "&&", "GET_MODE_SIZE", "(", "mode", ")", "<", "UNITS_PER_WORD", ")", "mode", "=", "word_mode", ";", "}", "if", "(", "(", "mclass", "==", "MODE_FLOAT", "||", "mclass", "==", "MODE_COMPLEX_FLOAT", ")", "&&", "TARGET_FPU", ")", "regno", "=", "SPARC_FP_ARG_FIRST", ";", "else", "regno", "=", "regbase", ";", "return", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "}", ""], "natrual_language": ["Handle", "FUNCTION_VALUE", ",", "FUNCTION_OUTGOING_VALUE", ",", "and", "LIBCALL_VALUE", "macros", ".", "For", "v9", ",", "function", "return", "values", "are", "subject", "to", "the", "same", "rules", "as", "arguments", ",", "except", "that", "up", "to", "32", "bytes", "may", "be", "returned", "in", "registers", "."], "TS_V_token": ["sparc", "8", "32", "32", "0", "1", "32", "0", "32", "0", "0"], "File": "sparc3", "Func": "function_value", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3609, "Length": 298, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "unsigned", "*", "IA64RegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "static", "const", "unsigned", "CalleeSavedRegs", "[", "]", "=", "{", "IA64", "::", "r5", ",", "0", "}", ";", "return", "CalleeSavedRegs", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["IA64", "IA64", "IA64::r5", "0"], "File": "IA64RegisterInfo", "Func": "getCalleeSavedRegs", "Target": "IA64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3610, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "char", "*", "detect_caches_aix", "(", "void", ")", "{", "unsigned", "l1_sizekb", ",", "l1_line", ",", "l1_assoc", ",", "l2_sizekb", ";", "l1_sizekb", "=", "_system_configuration", ".", "dcache_size", "/", "1024", ";", "l1_line", "=", "_system_configuration", ".", "dcache_line", ";", "l1_assoc", "=", "_system_configuration", ".", "dcache_asc", ";", "l2_sizekb", "=", "_system_configuration", ".", "L2_cache_size", "/", "1024", ";", "return", "describe_cache", "(", "l1_sizekb", ",", "l1_line", ",", "l1_assoc", ",", "l2_sizekb", ")", ";", "}", ""], "natrual_language": ["Returns", "the", "description", "of", "caches", "on", "AIX", "."], "TS_V_token": ["powerpcspe", "1024", "1024"], "File": "driver-powerpcspe", "Func": "detect_caches_aix", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3611, "Length": 58, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx_insn", "*", "emit_frame_save", "(", "rtx", "frame_reg", ",", "machine_mode", "mode", ",", "unsigned", "int", "regno", ",", "int", "offset", ",", "HOST_WIDE_INT", "frame_reg_to_sp", ")", "{", "rtx", "reg", ";", "gcc_checking_assert", "(", "!", "(", "TARGET_ALTIVEC_ABI", "&&", "ALTIVEC_VECTOR_MODE", "(", "mode", ")", ")", "||", "(", "TARGET_VSX", "&&", "ALTIVEC_OR_VSX_VECTOR_MODE", "(", "mode", ")", ")", ")", ";", "reg", "=", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "rtx_insn", "*", "insn", "=", "emit_insn", "(", "gen_frame_store", "(", "reg", ",", "frame_reg", ",", "offset", ")", ")", ";", "return", "rs6000_frame_related", "(", "insn", ",", "frame_reg", ",", "frame_reg_to_sp", ",", "NULL_RTX", ",", "NULL_RTX", ")", ";", "}", ""], "natrual_language": ["Save", "a", "register", "into", "the", "frame", ",", "and", "emit", "RTX_FRAME_RELATED_P", "notes", ".", "Save", "REGNO", "into", "[", "FRAME_REG", "+", "OFFSET", "]", "in", "mode", "MODE", "."], "TS_V_token": ["rs6000"], "File": "rs6000-logue", "Func": "emit_frame_save", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3612, "Length": 87, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "addRequired", "<", "ProfileSummaryInfoWrapperPass", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "LazyMachineBlockFrequencyInfoPass", ">", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["X86"], "File": "X86FixupLEAs1", "Func": "getAnalysisUsage", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3613, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ix86_nsaved_regs", "(", "void", ")", "{", "int", "nregs", "=", "0", ";", "int", "regno", ";", "for", "(", "regno", "=", "0", ";", "regno", "<", "FIRST_PSEUDO_REGISTER", ";", "regno", "++", ")", "if", "(", "GENERAL_REGNO_P", "(", "regno", ")", "&&", "ix86_save_reg", "(", "regno", ",", "true", ")", ")", "nregs", "++", ";", "return", "nregs", ";", "}", ""], "natrual_language": ["Return", "number", "of", "registers", "to", "be", "saved", "on", "the", "stack", "."], "TS_V_token": ["i386", "0", "0"], "File": "i3865", "Func": "ix86_nsaved_regs", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3614, "Length": 49, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_avoid_jump_misspredicts", "(", "void", ")", "{", "rtx", "insn", ",", "start", "=", "get_insns", "(", ")", ";", "int", "nbytes", "=", "0", ",", "njumps", "=", "0", ";", "int", "isjump", "=", "0", ";", "for", "(", "insn", "=", "get_insns", "(", ")", ";", "insn", ";", "insn", "=", "NEXT_INSN", "(", "insn", ")", ")", "{", "nbytes", "+=", "min_insn_size", "(", "insn", ")", ";", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"Insn %i estimated to %i bytes\\n\"", ",", "INSN_UID", "(", "insn", ")", ",", "min_insn_size", "(", "insn", ")", ")", ";", "if", "(", "(", "GET_CODE", "(", "insn", ")", "==", "JUMP_INSN", "&&", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "!=", "ADDR_VEC", "&&", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "!=", "ADDR_DIFF_VEC", ")", "||", "GET_CODE", "(", "insn", ")", "==", "CALL_INSN", ")", "njumps", "++", ";", "else", "continue", ";", "while", "(", "njumps", ">", "3", ")", "{", "start", "=", "NEXT_INSN", "(", "start", ")", ";", "if", "(", "(", "GET_CODE", "(", "start", ")", "==", "JUMP_INSN", "&&", "GET_CODE", "(", "PATTERN", "(", "start", ")", ")", "!=", "ADDR_VEC", "&&", "GET_CODE", "(", "PATTERN", "(", "start", ")", ")", "!=", "ADDR_DIFF_VEC", ")", "||", "GET_CODE", "(", "start", ")", "==", "CALL_INSN", ")", "njumps", "--", ",", "isjump", "=", "1", ";", "else", "isjump", "=", "0", ";", "nbytes", "-=", "min_insn_size", "(", "start", ")", ";", "}", "gcc_assert", "(", "njumps", ">=", "0", ")", ";", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"Interval %i to %i has %i bytes\\n\"", ",", "INSN_UID", "(", "start", ")", ",", "INSN_UID", "(", "insn", ")", ",", "nbytes", ")", ";", "if", "(", "njumps", "==", "3", "&&", "isjump", "&&", "nbytes", "<", "16", ")", "{", "int", "padsize", "=", "15", "-", "nbytes", "+", "min_insn_size", "(", "insn", ")", ";", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"Padding insn %i by %i bytes!\\n\"", ",", "INSN_UID", "(", "insn", ")", ",", "padsize", ")", ";", "emit_insn_before", "(", "gen_align", "(", "GEN_INT", "(", "padsize", ")", ")", ",", "insn", ")", ";", "}", "}", "}", ""], "natrual_language": ["AMD", "K8", "core", "mispredicts", "jumps", "when", "there", "are", "more", "than", "3", "jumps", "in", "16", "byte", "window", "."], "TS_V_token": ["i386", "0", "0", "0", "\"Insn %i estimated to %i bytes\\n\"", "3", "1", "0", "0", "\"Interval %i to %i has %i bytes\\n\"", "3", "16", "15", "\"Padding insn %i by %i bytes!\\n\""], "File": "i3863", "Func": "ix86_avoid_jump_misspredicts", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3615, "Length": 281, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsRegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "hasFP", "(", "MF", ")", "?", "Mips", "::", "FP", ":", "Mips", "::", "SP", ";", "}", ""], "natrual_language": ["Debug", "information", "queries", "."], "TS_V_token": ["Mips", "Mips", "Mips::FP", "Mips::SP"], "File": "MipsRegisterInfo17", "Func": "getFrameRegister", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3616, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "VEMCCodeEmitter", "::", "getMachineOpValue", "(", "const", "MCInst", "&", "MI", ",", "const", "MCOperand", "&", "MO", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "if", "(", "MO", ".", "isReg", "(", ")", ")", "return", "Ctx", ".", "getRegisterInfo", "(", ")", "->", "getEncodingValue", "(", "MO", ".", "getReg", "(", ")", ")", ";", "if", "(", "MO", ".", "isImm", "(", ")", ")", "return", "MO", ".", "getImm", "(", ")", ";", "assert", "(", "MO", ".", "isExpr", "(", ")", ")", ";", "const", "MCExpr", "*", "Expr", "=", "MO", ".", "getExpr", "(", ")", ";", "if", "(", "const", "VEMCExpr", "*", "SExpr", "=", "dyn_cast", "<", "VEMCExpr", ">", "(", "Expr", ")", ")", "{", "MCFixupKind", "Kind", "=", "(", "MCFixupKind", ")", "SExpr", "->", "getFixupKind", "(", ")", ";", "Fixups", ".", "push_back", "(", "MCFixup", "::", "create", "(", "0", ",", "Expr", ",", "Kind", ")", ")", ";", "return", "0", ";", "}", "int64_t", "Res", ";", "if", "(", "Expr", "->", "evaluateAsAbsolute", "(", "Res", ")", ")", "return", "Res", ";", "llvm_unreachable", "(", "\"Unhandled expression!\"", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["getMachineOpValue", "-", "Return", "binary", "encoding", "of", "operand", "."], "TS_V_token": ["VE", "VE", "VE", "VE", "0", "0", "\"Unhandled expression!\"", "0"], "File": "VEMCCodeEmitter", "Func": "getMachineOpValue", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3617, "Length": 160, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PadShortFunc", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "if", "(", "MF", ".", "getFunction", "(", ")", ".", "hasOptSize", "(", ")", ")", "return", "false", ";", "if", "(", "!", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "padShortFunctions", "(", ")", ")", "return", "false", ";", "TSM", ".", "init", "(", "&", "MF", ".", "getSubtarget", "(", ")", ")", ";", "auto", "*", "PSI", "=", "&", "getAnalysis", "<", "ProfileSummaryInfoWrapperPass", ">", "(", ")", ".", "getPSI", "(", ")", ";", "auto", "*", "MBFI", "=", "(", "PSI", "&&", "PSI", "->", "hasProfileSummary", "(", ")", ")", "?", "&", "getAnalysis", "<", "LazyMachineBlockFrequencyInfoPass", ">", "(", ")", ".", "getBFI", "(", ")", ":", "nullptr", ";", "ReturnBBs", ".", "clear", "(", ")", ";", "VisitedBBs", ".", "clear", "(", ")", ";", "findReturns", "(", "&", "MF", ".", "front", "(", ")", ")", ";", "bool", "MadeChange", "=", "false", ";", "for", "(", "const", "auto", "&", "ReturnBB", ":", "ReturnBBs", ")", "{", "MachineBasicBlock", "*", "MBB", "=", "ReturnBB", ".", "first", ";", "unsigned", "Cycles", "=", "ReturnBB", ".", "second", ";", "bool", "OptForSize", "=", "llvm", "::", "shouldOptimizeForSize", "(", "MBB", ",", "PSI", ",", "MBFI", ")", ";", "if", "(", "OptForSize", ")", "continue", ";", "if", "(", "Cycles", "<", "Threshold", ")", "{", "assert", "(", "MBB", "->", "size", "(", ")", ">", "0", "&&", "\"Basic block should contain at least a RET but is empty\"", ")", ";", "MachineBasicBlock", "::", "iterator", "ReturnLoc", "=", "--", "MBB", "->", "end", "(", ")", ";", "while", "(", "ReturnLoc", "->", "isDebugInstr", "(", ")", ")", "--", "ReturnLoc", ";", "assert", "(", "ReturnLoc", "->", "isReturn", "(", ")", "&&", "!", "ReturnLoc", "->", "isCall", "(", ")", "&&", "\"Basic block does not end with RET\"", ")", ";", "addPadding", "(", "MBB", ",", "ReturnLoc", ",", "Threshold", "-", "Cycles", ")", ";", "NumBBsPadded", "++", ";", "MadeChange", "=", "true", ";", "}", "}", "return", "MadeChange", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "0", "\"Basic block should contain at least a RET but is empty\"", "\"Basic block does not end with RET\""], "File": "X86PadShortFunction12", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3618, "Length": 271, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_finish_cost", "(", "void", "*", "data", ",", "unsigned", "*", "prologue_cost", ",", "unsigned", "*", "body_cost", ",", "unsigned", "*", "epilogue_cost", ")", "{", "rs6000_cost_data", "*", "cost_data", "=", "(", "rs6000_cost_data", "*", ")", "data", ";", "if", "(", "cost_data", "->", "loop_info", ")", "rs6000_density_test", "(", "cost_data", ")", ";", "if", "(", "cost_data", "->", "loop_info", ")", "{", "loop_vec_info", "vec_info", "=", "loop_vec_info_for_loop", "(", "cost_data", "->", "loop_info", ")", ";", "if", "(", "!", "rs6000_vect_nonmem", "&&", "LOOP_VINFO_VECT_FACTOR", "(", "vec_info", ")", "==", "2", "&&", "LOOP_REQUIRES_VERSIONING", "(", "vec_info", ")", ")", "cost_data", "->", "cost", "[", "vect_body", "]", "+=", "10000", ";", "}", "*", "prologue_cost", "=", "cost_data", "->", "cost", "[", "vect_prologue", "]", ";", "*", "body_cost", "=", "cost_data", "->", "cost", "[", "vect_body", "]", ";", "*", "epilogue_cost", "=", "cost_data", "->", "cost", "[", "vect_epilogue", "]", ";", "}", ""], "natrual_language": ["Implement", "targetm.vectorize.finish_cost", "."], "TS_V_token": ["rs6000", "2", "10000"], "File": "rs6000", "Func": "rs6000_finish_cost", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3619, "Length": 117, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "PPCSubtarget", "::", "PPCSubtarget", "(", "const", "std", "::", "string", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "bool", "is64Bit", ")", ":", "PPCGenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "StackAlignment", "(", "16", ")", ",", "DarwinDirective", "(", "PPC", "::", "DIR_NONE", ")", ",", "HasMFOCRF", "(", "false", ")", ",", "Has64BitSupport", "(", "false", ")", ",", "Use64BitRegs", "(", "false", ")", ",", "IsPPC64", "(", "is64Bit", ")", ",", "HasAltivec", "(", "false", ")", ",", "HasFSQRT", "(", "false", ")", ",", "HasSTFIWX", "(", "false", ")", ",", "HasISEL", "(", "false", ")", ",", "IsBookE", "(", "false", ")", ",", "HasLazyResolverStubs", "(", "false", ")", ",", "IsJITCodeModel", "(", "false", ")", ",", "TargetTriple", "(", "TT", ")", "{", "std", "::", "string", "CPUName", "=", "CPU", ";", "if", "(", "CPUName", ".", "empty", "(", ")", ")", "CPUName", "=", "\"generic\"", ";", "(", "defined", "(", "__ppc__", ")", "||", "defined", "(", "__powerpc__", ")", ")", "if", "(", "CPUName", "==", "\"generic\"", ")", "CPUName", "=", "sys", "::", "getHostCPUName", "(", ")", ";", "InstrItins", "=", "getInstrItineraryForCPU", "(", "CPUName", ")", ";", "std", "::", "string", "FullFS", "=", "FS", ";", "if", "(", "is64Bit", ")", "{", "Has64BitSupport", "=", "true", ";", "Use64BitRegs", "=", "true", ";", "if", "(", "!", "FullFS", ".", "empty", "(", ")", ")", "FullFS", "=", "\"+64bit,\"", "+", "FullFS", ";", "else", "FullFS", "=", "\"+64bit\"", ";", "}", "ParseSubtargetFeatures", "(", "CPUName", ",", "FullFS", ")", ";", "if", "(", "use64BitRegs", "(", ")", "&&", "!", "has64BitSupport", "(", ")", ")", "Use64BitRegs", "=", "false", ";", "if", "(", "isDarwin", "(", ")", ")", "HasLazyResolverStubs", "=", "true", ";", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "16", "PPC::DIR_NONE", "PPC", "\"generic\"", "\"generic\"", "\"+64bit,\"", "\"+64bit\""], "File": "PPCSubtarget34", "Func": "PPCSubtarget", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3620, "Length": 235, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "useMachineCombiner", "(", ")", "const", "{", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "when", "a", "target", "supports", "MachineCombiner", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64InstrInfo (2)", "Func": "useMachineCombiner", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3621, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "r10k_simplify_address", "(", "rtx", "x", ",", "rtx_insn", "*", "insn", ")", "{", "rtx", "newx", ",", "op0", ",", "op1", ",", "set", ",", "note", ";", "rtx_insn", "*", "def_insn", ";", "df_ref", "use", ",", "def", ";", "struct", "df_link", "*", "defs", ";", "newx", "=", "NULL_RTX", ";", "if", "(", "UNARY_P", "(", "x", ")", ")", "{", "op0", "=", "r10k_simplify_address", "(", "XEXP", "(", "x", ",", "0", ")", ",", "insn", ")", ";", "if", "(", "op0", "!=", "XEXP", "(", "x", ",", "0", ")", ")", "newx", "=", "simplify_gen_unary", "(", "GET_CODE", "(", "x", ")", ",", "GET_MODE", "(", "x", ")", ",", "op0", ",", "GET_MODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", ")", ";", "}", "else", "if", "(", "BINARY_P", "(", "x", ")", ")", "{", "op0", "=", "r10k_simplify_address", "(", "XEXP", "(", "x", ",", "0", ")", ",", "insn", ")", ";", "op1", "=", "r10k_simplify_address", "(", "XEXP", "(", "x", ",", "1", ")", ",", "insn", ")", ";", "if", "(", "op0", "!=", "XEXP", "(", "x", ",", "0", ")", "||", "op1", "!=", "XEXP", "(", "x", ",", "1", ")", ")", "newx", "=", "simplify_gen_binary", "(", "GET_CODE", "(", "x", ")", ",", "GET_MODE", "(", "x", ")", ",", "op0", ",", "op1", ")", ";", "}", "else", "if", "(", "GET_CODE", "(", "x", ")", "==", "LO_SUM", ")", "{", "op0", "=", "r10k_simplify_address", "(", "XEXP", "(", "x", ",", "0", ")", ",", "insn", ")", ";", "if", "(", "GET_CODE", "(", "op0", ")", "==", "HIGH", ")", "newx", "=", "XEXP", "(", "x", ",", "1", ")", ";", "}", "else", "if", "(", "REG_P", "(", "x", ")", ")", "{", "use", "=", "df_find_use", "(", "insn", ",", "regno_reg_rtx", "[", "REGNO", "(", "x", ")", "]", ")", ";", "gcc_assert", "(", "use", ")", ";", "defs", "=", "DF_REF_CHAIN", "(", "use", ")", ";", "if", "(", "defs", "&&", "defs", "->", "next", "==", "NULL", ")", "{", "def", "=", "defs", "->", "ref", ";", "if", "(", "DF_REF_IS_ARTIFICIAL", "(", "def", ")", ")", "{", "if", "(", "x", "==", "stack_pointer_rtx", "&&", "DF_REF_BB", "(", "def", ")", "==", "ENTRY_BLOCK_PTR_FOR_FN", "(", "cfun", ")", ")", "newx", "=", "virtual_incoming_args_rtx", ";", "}", "else", "if", "(", "dominated_by_p", "(", "CDI_DOMINATORS", ",", "DF_REF_BB", "(", "use", ")", ",", "DF_REF_BB", "(", "def", ")", ")", ")", "{", "def_insn", "=", "DF_REF_INSN", "(", "def", ")", ";", "if", "(", "NONJUMP_INSN_P", "(", "def_insn", ")", ")", "{", "set", "=", "single_set", "(", "def_insn", ")", ";", "if", "(", "set", "&&", "rtx_equal_p", "(", "SET_DEST", "(", "set", ")", ",", "x", ")", ")", "{", "note", "=", "find_reg_equal_equiv_note", "(", "def_insn", ")", ";", "if", "(", "note", ")", "newx", "=", "XEXP", "(", "note", ",", "0", ")", ";", "else", "newx", "=", "SET_SRC", "(", "set", ")", ";", "newx", "=", "r10k_simplify_address", "(", "newx", ",", "def_insn", ")", ";", "}", "}", "}", "}", "}", "if", "(", "newx", "&&", "r10k_simplified_address_p", "(", "newx", ")", ")", "return", "newx", ";", "return", "x", ";", "}", ""], "natrual_language": ["X", "is", "an", "expression", "that", "appears", "in", "INSN", ".", "Try", "to", "use", "the", "UD", "chains", "to", "simplify", "it", ",", "returning", "the", "simplified", "form", "on", "success", "and", "the", "original", "form", "otherwise", ".", "Replace", "the", "incoming", "value", "of", "$", "sp", "with", "virtual_incoming_args_rtx", "(", "which", "should", "never", "occur", "in", "X", "otherwise", ")", "."], "TS_V_token": ["mips", "0", "0", "0", "0", "1", "0", "1", "0", "1", "0"], "File": "mips", "Func": "r10k_simplify_address", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3622, "Length": 419, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "SystemZRegisterInfo", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", "MF", ",", "CallingConv", "::", "ID", "CC", ")", "const", "{", "const", "SystemZSubtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "SystemZSubtarget", ">", "(", ")", ";", "if", "(", "CC", "==", "CallingConv", "::", "AnyReg", ")", "return", "Subtarget", ".", "hasVector", "(", ")", "?", "CSR_SystemZ_AllRegs_Vector_RegMask", ":", "CSR_SystemZ_AllRegs_RegMask", ";", "if", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getTargetLowering", "(", ")", "->", "supportSwiftError", "(", ")", "&&", "MF", ".", "getFunction", "(", ")", ".", "getAttributes", "(", ")", ".", "hasAttrSomewhere", "(", "Attribute", "::", "SwiftError", ")", ")", "return", "CSR_SystemZ_SwiftError_RegMask", ";", "return", "CSR_SystemZ_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ"], "File": "SystemZRegisterInfo16", "Func": "getCallPreservedMask", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3623, "Length": 92, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BaseKind", "getKind", "(", ")", "const", "{", "return", "Kind", ";", "}", ""], "natrual_language": ["Returns", "the", "Kind", "of", "lane", "offset", "."], "TS_V_token": ["ARM64"], "File": "ARM64FastISel", "Func": "getKind", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3624, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_evpc_rev_local", "(", "struct", "expand_vec_perm_d", "*", "d", ")", "{", "HOST_WIDE_INT", "diff", ";", "unsigned", "int", "i", ",", "size", ",", "unspec", ";", "machine_mode", "pred_mode", ";", "if", "(", "d", "->", "vec_flags", "==", "VEC_SVE_PRED", "||", "!", "d", "->", "one_vector_p", "||", "!", "d", "->", "perm", "[", "0", "]", ".", "is_constant", "(", "&", "diff", ")", ")", "return", "false", ";", "size", "=", "(", "diff", "+", "1", ")", "*", "GET_MODE_UNIT_SIZE", "(", "d", "->", "vmode", ")", ";", "if", "(", "size", "==", "8", ")", "{", "unspec", "=", "UNSPEC_REV64", ";", "pred_mode", "=", "VNx2BImode", ";", "}", "else", "if", "(", "size", "==", "4", ")", "{", "unspec", "=", "UNSPEC_REV32", ";", "pred_mode", "=", "VNx4BImode", ";", "}", "else", "if", "(", "size", "==", "2", ")", "{", "unspec", "=", "UNSPEC_REV16", ";", "pred_mode", "=", "VNx8BImode", ";", "}", "else", "return", "false", ";", "unsigned", "int", "step", "=", "diff", "+", "1", ";", "for", "(", "i", "=", "0", ";", "i", "<", "step", ";", "++", "i", ")", "if", "(", "!", "d", "->", "perm", ".", "series_p", "(", "i", ",", "step", ",", "diff", "-", "i", ",", "step", ")", ")", "return", "false", ";", "if", "(", "d", "->", "testing_p", ")", "return", "true", ";", "if", "(", "d", "->", "vec_flags", "==", "VEC_SVE_DATA", ")", "{", "machine_mode", "int_mode", "=", "aarch64_sve_int_mode", "(", "pred_mode", ")", ";", "rtx", "target", "=", "gen_reg_rtx", "(", "int_mode", ")", ";", "if", "(", "BYTES_BIG_ENDIAN", ")", "emit_insn", "(", "gen_aarch64_sve_reinterpret", "(", "int_mode", ",", "target", ",", "d", "->", "op0", ")", ")", ";", "else", "{", "int", "unspec", "=", "aarch64_sve_rev_unspec", "(", "d", "->", "vmode", ")", ";", "rtx", "pred", "=", "aarch64_ptrue_reg", "(", "pred_mode", ")", ";", "emit_insn", "(", "gen_aarch64_pred", "(", "unspec", ",", "int_mode", ",", "target", ",", "pred", ",", "gen_lowpart", "(", "int_mode", ",", "d", "->", "op0", ")", ")", ")", ";", "}", "emit_move_insn", "(", "d", "->", "target", ",", "gen_lowpart", "(", "d", "->", "vmode", ",", "target", ")", ")", ";", "return", "true", ";", "}", "rtx", "src", "=", "gen_rtx_UNSPEC", "(", "d", "->", "vmode", ",", "gen_rtvec", "(", "1", ",", "d", "->", "op0", ")", ",", "unspec", ")", ";", "emit_set_insn", "(", "d", "->", "target", ",", "src", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Recognize", "patterns", "for", "the", "REV", "{", "64,32,16", "}", "insns", ",", "which", "reverse", "elements", "within", "each", "64-bit", ",", "32-bit", "or", "16-bit", "granule", "."], "TS_V_token": ["aarch64", "0", "1", "8", "4", "2", "1", "0", "1"], "File": "aarch64", "Func": "aarch64_evpc_rev_local", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3625, "Length": 317, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64PassConfig", "::", "addIRTranslator", "(", ")", "{", "addPass", "(", "new", "IRTranslator", "(", "getOptLevel", "(", ")", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["This", "method", "should", "install", "an", "IR", "translator", "pass", ",", "which", "converts", "from", "LLVM", "code", "to", "machine", "instructions", "with", "possibly", "generic", "opcodes", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64TargetMachine1", "Func": "addIRTranslator", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3626, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_mode_ok_for_mov_fmt_p", "(", "machine_mode", "mode", ")", "{", "switch", "(", "mode", ")", "{", "case", "E_CCFmode", ":", "case", "E_SFmode", ":", "return", "TARGET_HARD_FLOAT", ";", "case", "E_DFmode", ":", "return", "TARGET_HARD_FLOAT", "&&", "TARGET_DOUBLE_FLOAT", ";", "case", "E_V2SFmode", ":", "return", "TARGET_HARD_FLOAT", "&&", "TARGET_PAIRED_SINGLE_FLOAT", ";", "default", ":", "return", "MSA_SUPPORTED_MODE_P", "(", "mode", ")", ";", "}", "}", ""], "natrual_language": ["Return", "true", "if", "moves", "in", "mode", "MODE", "can", "use", "the", "FPU", "'s", "mov.fmt", "instruction", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_mode_ok_for_mov_fmt_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3627, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86PassConfig", "::", "addPreEmitPass", "(", ")", "{", "bool", "ShouldPrint", "=", "false", ";", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", "&&", "getX86Subtarget", "(", ")", ".", "hasSSE2", "(", ")", ")", "{", "PM", "->", "add", "(", "createExecutionDependencyFixPass", "(", "&", "X86", "::", "VR128RegClass", ")", ")", ";", "ShouldPrint", "=", "true", ";", "}", "if", "(", "getX86Subtarget", "(", ")", ".", "hasAVX", "(", ")", "&&", "UseVZeroUpper", ")", "{", "PM", "->", "add", "(", "createX86IssueVZeroUpperPass", "(", ")", ")", ";", "ShouldPrint", "=", "true", ";", "}", "return", "ShouldPrint", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["X86", "X86", "X86", "X86::VR128RegClass", "X86", "X86"], "File": "X86TargetMachine87", "Func": "addPreEmitPass", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3628, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "PPCSubtarget", "*", "PPCTargetMachine", "::", "getSubtargetImpl", "(", "const", "Function", "&", "F", ")", "const", "{", "Attribute", "CPUAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-cpu\"", ")", ";", "Attribute", "FSAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-features\"", ")", ";", "std", "::", "string", "CPU", "=", "CPUAttr", ".", "isValid", "(", ")", "?", "CPUAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetCPU", ";", "std", "::", "string", "FS", "=", "FSAttr", ".", "isValid", "(", ")", "?", "FSAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetFS", ";", "bool", "SoftFloat", "=", "F", ".", "getFnAttribute", "(", "\"use-soft-float\"", ")", ".", "getValueAsBool", "(", ")", ";", "if", "(", "SoftFloat", ")", "FS", "+=", "FS", ".", "empty", "(", ")", "?", "\"-hard-float\"", ":", "\",-hard-float\"", ";", "auto", "&", "I", "=", "SubtargetMap", "[", "CPU", "+", "FS", "]", ";", "if", "(", "!", "I", ")", "{", "resetTargetOptions", "(", "F", ")", ";", "I", "=", "std", "::", "make_unique", "<", "PPCSubtarget", ">", "(", "TargetTriple", ",", "CPU", ",", "computeFSAdditions", "(", "FS", ",", "getOptLevel", "(", ")", ",", "getTargetTriple", "(", ")", ")", ",", "*", "this", ")", ";", "}", "return", "I", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "\"target-cpu\"", "\"target-features\"", "\"use-soft-float\"", "\"-hard-float\"", "\",-hard-float\"", "PPC"], "File": "PPCTargetMachine40", "Func": "getSubtargetImpl", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3629, "Length": 171, "Cover_Rate": 1.0, "Template_token": []} {"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": ["FISC", "0", "0"], "File": "FISCAsmParser", "Func": "addExpr", "Target": "FISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3630, "Length": 78, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "getBit", "(", "InsnType", "insn", ",", "int", "pos", ")", "{", "return", "getBits", "(", "insn", ",", "pos", ",", "1", ")", ";", "}", ""], "natrual_language": ["Get", "the", "Init", "value", "of", "the", "specified", "bit", "."], "TS_V_token": ["AArch64", "1"], "File": "AArch64InsnHelpers", "Func": "getBit", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3631, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseRegisterInfo", "::", "canRealignStack", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "MachineRegisterInfo", "*", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "const", "ARMFunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "if", "(", "!", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "RealignStack", ")", "return", "false", ";", "if", "(", "AFI", "->", "isThumb1OnlyFunction", "(", ")", ")", "return", "false", ";", "if", "(", "!", "MRI", "->", "canReserveReg", "(", "FramePtr", ")", ")", "return", "false", ";", "if", "(", "!", "MFI", "->", "hasVarSizedObjects", "(", ")", ")", "return", "true", ";", "if", "(", "!", "EnableBasePointer", ")", "return", "false", ";", "return", "MRI", "->", "canReserveReg", "(", "BasePtr", ")", ";", "}", ""], "natrual_language": ["True", "if", "the", "stack", "can", "be", "realigned", "for", "the", "target", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM"], "File": "ARMBaseRegisterInfo55", "Func": "canRealignStack", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3632, "Length": 118, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "gen_ldm_seq", "(", "rtx", "*", "operands", ",", "int", "nops", ",", "bool", "sort_regs", ")", "{", "int", "regs", "[", "MAX_LDM_STM_OPS", "]", ",", "mem_order", "[", "MAX_LDM_STM_OPS", "]", ";", "rtx", "mems", "[", "MAX_LDM_STM_OPS", "]", ";", "int", "i", ",", "j", ",", "base_reg", ";", "rtx", "base_reg_rtx", ";", "HOST_WIDE_INT", "offset", ";", "int", "write_back", "=", "FALSE", ";", "int", "ldm_case", ";", "rtx", "addr", ";", "ldm_case", "=", "load_multiple_sequence", "(", "operands", ",", "nops", ",", "regs", ",", "mem_order", ",", "&", "base_reg", ",", "&", "offset", ",", "!", "sort_regs", ")", ";", "if", "(", "ldm_case", "==", "0", ")", "return", "false", ";", "if", "(", "sort_regs", ")", "for", "(", "i", "=", "0", ";", "i", "<", "nops", "-", "1", ";", "i", "++", ")", "for", "(", "j", "=", "i", "+", "1", ";", "j", "<", "nops", ";", "j", "++", ")", "if", "(", "regs", "[", "i", "]", ">", "regs", "[", "j", "]", ")", "{", "int", "t", "=", "regs", "[", "i", "]", ";", "regs", "[", "i", "]", "=", "regs", "[", "j", "]", ";", "regs", "[", "j", "]", "=", "t", ";", "}", "base_reg_rtx", "=", "gen_rtx_REG", "(", "Pmode", ",", "base_reg", ")", ";", "if", "(", "TARGET_THUMB1", ")", "{", "gcc_assert", "(", "peep2_reg_dead_p", "(", "nops", ",", "base_reg_rtx", ")", ")", ";", "gcc_assert", "(", "ldm_case", "==", "1", "||", "ldm_case", "==", "5", ")", ";", "write_back", "=", "TRUE", ";", "}", "if", "(", "ldm_case", "==", "5", ")", "{", "rtx", "newbase", "=", "TARGET_THUMB1", "?", "base_reg_rtx", ":", "gen_rtx_REG", "(", "SImode", ",", "regs", "[", "0", "]", ")", ";", "emit_insn", "(", "gen_addsi3", "(", "newbase", ",", "base_reg_rtx", ",", "GEN_INT", "(", "offset", ")", ")", ")", ";", "offset", "=", "0", ";", "if", "(", "!", "TARGET_THUMB1", ")", "base_reg_rtx", "=", "newbase", ";", "}", "for", "(", "i", "=", "0", ";", "i", "<", "nops", ";", "i", "++", ")", "{", "addr", "=", "plus_constant", "(", "Pmode", ",", "base_reg_rtx", ",", "offset", "+", "i", "*", "4", ")", ";", "mems", "[", "i", "]", "=", "adjust_automodify_address_nv", "(", "operands", "[", "nops", "+", "mem_order", "[", "i", "]", "]", ",", "SImode", ",", "addr", ",", "0", ")", ";", "}", "emit_insn", "(", "arm_gen_load_multiple_1", "(", "nops", ",", "regs", ",", "mems", ",", "base_reg_rtx", ",", "write_back", "?", "offset", "+", "i", "*", "4", ":", "0", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Called", "from", "a", "peephole2", "expander", "to", "turn", "a", "sequence", "of", "loads", "into", "an", "LDM", "instruction", ".", "OPERANDS", "are", "the", "operands", "found", "by", "the", "peephole", "matcher", ";", "NOPS", "indicates", "how", "many", "separate", "loads", "we", "are", "trying", "to", "combine", ".", "SORT_REGS", "is", "true", "if", "we", "can", "reorder", "the", "registers", "because", "they", "are", "used", "commutatively", "subsequently", ".", "Returns", "true", "iff", "we", "could", "generate", "a", "new", "instruction", "."], "TS_V_token": ["arm", "0", "0", "1", "1", "1", "5", "5", "0", "0", "0", "4", "0", "4", "0"], "File": "arm7", "Func": "gen_ldm_seq", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3633, "Length": 334, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "ix86_memtag_extract_tag", "(", "rtx", "tagged_pointer", ",", "rtx", "target", ")", "{", "rtx", "tag", "=", "expand_simple_binop", "(", "Pmode", ",", "LSHIFTRT", ",", "tagged_pointer", ",", "GEN_INT", "(", "IX86_HWASAN_SHIFT", ")", ",", "target", ",", "0", ",", "OPTAB_DIRECT", ")", ";", "rtx", "ret", "=", "gen_reg_rtx", "(", "QImode", ")", ";", "if", "(", "ix86_lam_type", "==", "lam_u57", ")", "{", "unsigned", "HOST_WIDE_INT", "and_imm", "=", "(", "HOST_WIDE_INT_1U", "<<", "IX86_HWASAN_TAG_SIZE", ")", "-", "1", ";", "emit_insn", "(", "gen_andqi3", "(", "ret", ",", "gen_lowpart", "(", "QImode", ",", "tag", ")", ",", "gen_int_mode", "(", "and_imm", ",", "QImode", ")", ")", ")", ";", "}", "else", "emit_move_insn", "(", "ret", ",", "gen_lowpart", "(", "QImode", ",", "tag", ")", ")", ";", "return", "ret", ";", "}", ""], "natrual_language": ["Implement", "TARGET_MEMTAG_EXTRACT_TAG", "."], "TS_V_token": ["i386", "0", "1"], "File": "i3861", "Func": "ix86_memtag_extract_tag", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3634, "Length": 100, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "do_load_mask_compare", "(", "const", "machine_mode", "load_mode", ",", "rtx", "diff", ",", "rtx", "cmp_rem", ",", "rtx", "dcond", ",", "rtx", "src1_addr", ",", "rtx", "src2_addr", ",", "rtx", "orig_src1", ",", "rtx", "orig_src2", ")", "{", "HOST_WIDE_INT", "load_mode_size", "=", "GET_MODE_SIZE", "(", "load_mode", ")", ";", "rtx", "shift_amount", "=", "gen_reg_rtx", "(", "word_mode", ")", ";", "rtx", "d1", "=", "gen_reg_rtx", "(", "word_mode", ")", ";", "rtx", "d2", "=", "gen_reg_rtx", "(", "word_mode", ")", ";", "do_load_for_compare_from_addr", "(", "load_mode", ",", "d1", ",", "src1_addr", ",", "orig_src1", ")", ";", "do_load_for_compare_from_addr", "(", "load_mode", ",", "d2", ",", "src2_addr", ",", "orig_src2", ")", ";", "do_sub3", "(", "shift_amount", ",", "GEN_INT", "(", "load_mode_size", ")", ",", "cmp_rem", ")", ";", "if", "(", "word_mode", "==", "DImode", ")", "{", "emit_insn", "(", "gen_ashldi3", "(", "shift_amount", ",", "shift_amount", ",", "GEN_INT", "(", "LOG2_BITS_PER_UNIT", ")", ")", ")", ";", "emit_insn", "(", "gen_lshrdi3", "(", "d1", ",", "d1", ",", "gen_lowpart", "(", "SImode", ",", "shift_amount", ")", ")", ")", ";", "emit_insn", "(", "gen_lshrdi3", "(", "d2", ",", "d2", ",", "gen_lowpart", "(", "SImode", ",", "shift_amount", ")", ")", ")", ";", "}", "else", "{", "emit_insn", "(", "gen_ashlsi3", "(", "shift_amount", ",", "shift_amount", ",", "GEN_INT", "(", "LOG2_BITS_PER_UNIT", ")", ")", ")", ";", "emit_insn", "(", "gen_lshrsi3", "(", "d1", ",", "d1", ",", "shift_amount", ")", ")", ";", "emit_insn", "(", "gen_lshrsi3", "(", "d2", ",", "d2", ",", "shift_amount", ")", ")", ";", "}", "if", "(", "TARGET_P9_MISC", ")", "{", "rtx", "cmp", "=", "gen_rtx_COMPARE", "(", "CCUNSmode", ",", "d1", ",", "d2", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "dcond", ",", "cmp", ")", ")", ";", "}", "else", "{", "if", "(", "word_mode", "==", "DImode", ")", "emit_insn", "(", "gen_subfdi3_carry", "(", "diff", ",", "d2", ",", "d1", ")", ")", ";", "else", "emit_insn", "(", "gen_subfsi3_carry", "(", "diff", ",", "d2", ",", "d1", ")", ")", ";", "}", "}", ""], "natrual_language": ["Generate", "rtl", "for", "a", "load", ",", "shift", ",", "and", "compare", "of", "less", "than", "a", "full", "word", ".", "LOAD_MODE", "is", "the", "machine", "mode", "for", "the", "loads", ".", "DIFF", "is", "the", "reg", "for", "the", "difference", ".", "CMP_REM", "is", "the", "reg", "containing", "the", "remaining", "bytes", "to", "compare", ".", "DCOND", "is", "the", "CCUNS", "reg", "for", "the", "compare", "if", "we", "are", "doing", "P9", "code", "with", "setb", ".", "SRC1_ADDR", "is", "the", "first", "source", "address", ".", "SRC2_ADDR", "is", "the", "second", "source", "address", ".", "ORIG_SRC1", "is", "the", "original", "first", "source", "block", "'s", "address", "rtx", ".", "ORIG_SRC2", "is", "the", "original", "second", "source", "block", "'s", "address", "rtx", "."], "TS_V_token": ["rs6000"], "File": "rs6000-string", "Func": "do_load_mask_compare", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3635, "Length": 258, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64PassConfig", "::", "addInstSelector", "(", ")", "{", "addPass", "(", "createAArch64ISelDag", "(", "getAArch64TargetMachine", "(", ")", ",", "getOptLevel", "(", ")", ")", ")", ";", "if", "(", "TM", "->", "getTargetTriple", "(", ")", ".", "isOSBinFormatELF", "(", ")", "&&", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createAArch64CleanupLocalDynamicTLSPass", "(", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["addInstSelector", "-", "This", "method", "should", "install", "an", "instruction", "selector", "pass", ",", "which", "converts", "from", "LLVM", "code", "to", "machine", "instructions", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64TargetMachine (2)3", "Func": "addInstSelector", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3636, "Length": 52, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "thumb1_unexpanded_epilogue", "(", "void", ")", "{", "arm_stack_offsets", "*", "offsets", ";", "int", "regno", ";", "unsigned", "long", "live_regs_mask", "=", "0", ";", "int", "high_regs_pushed", "=", "0", ";", "int", "extra_pop", ";", "int", "had_to_push_lr", ";", "int", "size", ";", "if", "(", "cfun", "->", "machine", "->", "return_used_this_function", "!=", "0", ")", "return", "\"\"", ";", "if", "(", "IS_NAKED", "(", "arm_current_func_type", "(", ")", ")", ")", "return", "\"\"", ";", "offsets", "=", "arm_get_frame_offsets", "(", ")", ";", "live_regs_mask", "=", "offsets", "->", "saved_regs_mask", ";", "high_regs_pushed", "=", "bit_count", "(", "live_regs_mask", "&", "0x0f00", ")", ";", "size", "=", "arm_size_return_regs", "(", ")", ";", "extra_pop", "=", "thumb1_extra_regs_pushed", "(", "offsets", ",", "false", ")", ";", "if", "(", "extra_pop", ">", "0", ")", "{", "unsigned", "long", "extra_mask", "=", "(", "1", "<<", "extra_pop", ")", "-", "1", ";", "live_regs_mask", "|=", "extra_mask", "<<", "ARM_NUM_INTS", "(", "size", ")", ";", "}", "if", "(", "high_regs_pushed", ")", "{", "unsigned", "long", "mask", "=", "live_regs_mask", "&", "0xff", ";", "int", "next_hi_reg", ";", "mask", "|=", "thumb1_epilogue_unused_call_clobbered_lo_regs", "(", ")", ";", "if", "(", "mask", "==", "0", ")", "internal_error", "(", "\"no low registers available for popping high registers\"", ")", ";", "for", "(", "next_hi_reg", "=", "12", ";", "next_hi_reg", ">", "LAST_LO_REGNUM", ";", "next_hi_reg", "--", ")", "if", "(", "live_regs_mask", "&", "(", "1", "<<", "next_hi_reg", ")", ")", "break", ";", "while", "(", "high_regs_pushed", ")", "{", "for", "(", "regno", "=", "LAST_LO_REGNUM", ";", "regno", ">=", "0", ";", "regno", "--", ")", "{", "if", "(", "mask", "&", "(", "1", "<<", "regno", ")", ")", "high_regs_pushed", "--", ";", "if", "(", "high_regs_pushed", "==", "0", ")", "break", ";", "}", "if", "(", "high_regs_pushed", "==", "0", "&&", "regno", ">=", "0", ")", "mask", "&=", "~", "(", "(", "1", "<<", "regno", ")", "-", "1", ")", ";", "thumb_pop", "(", "asm_out_file", ",", "mask", ")", ";", "for", "(", "regno", "=", "LAST_LO_REGNUM", ";", "regno", ">=", "0", ";", "regno", "--", ")", "{", "if", "(", "mask", "&", "(", "1", "<<", "regno", ")", ")", "{", "asm_fprintf", "(", "asm_out_file", ",", "\"\\tmov\\t%r, %r\\n\"", ",", "next_hi_reg", ",", "regno", ")", ";", "for", "(", "next_hi_reg", "--", ";", "next_hi_reg", ">", "LAST_LO_REGNUM", ";", "next_hi_reg", "--", ")", "if", "(", "live_regs_mask", "&", "(", "1", "<<", "next_hi_reg", ")", ")", "break", ";", "}", "}", "}", "live_regs_mask", "&=", "~", "0x0f00", ";", "}", "had_to_push_lr", "=", "(", "live_regs_mask", "&", "(", "1", "<<", "LR_REGNUM", ")", ")", "!=", "0", ";", "live_regs_mask", "&=", "0xff", ";", "if", "(", "crtl", "->", "args", ".", "pretend_args_size", "==", "0", "||", "TARGET_BACKTRACE", ")", "{", "if", "(", "had_to_push_lr", ")", "live_regs_mask", "|=", "1", "<<", "PC_REGNUM", ";", "if", "(", "live_regs_mask", ")", "thumb_pop", "(", "asm_out_file", ",", "live_regs_mask", ")", ";", "if", "(", "!", "had_to_push_lr", ")", "thumb_exit", "(", "asm_out_file", ",", "LR_REGNUM", ")", ";", "}", "else", "{", "if", "(", "live_regs_mask", ")", "thumb_pop", "(", "asm_out_file", ",", "live_regs_mask", ")", ";", "if", "(", "had_to_push_lr", ")", "{", "if", "(", "size", ">", "12", ")", "{", "asm_fprintf", "(", "asm_out_file", ",", "\"\\tmov\\t%r, %r\\n\"", ",", "IP_REGNUM", ",", "LAST_ARG_REGNUM", ")", ";", "}", "thumb_pop", "(", "asm_out_file", ",", "1", "<<", "LAST_ARG_REGNUM", ")", ";", "if", "(", "size", ">", "12", ")", "{", "asm_fprintf", "(", "asm_out_file", ",", "\"\\tmov\\t%r, %r\\n\"", ",", "LR_REGNUM", ",", "LAST_ARG_REGNUM", ")", ";", "asm_fprintf", "(", "asm_out_file", ",", "\"\\tmov\\t%r, %r\\n\"", ",", "LAST_ARG_REGNUM", ",", "IP_REGNUM", ")", ";", "regno", "=", "LR_REGNUM", ";", "}", "else", "regno", "=", "LAST_ARG_REGNUM", ";", "}", "else", "regno", "=", "LR_REGNUM", ";", "asm_fprintf", "(", "asm_out_file", ",", "\"\\tadd\\t%r, %r, #%d\\n\"", ",", "SP_REGNUM", ",", "SP_REGNUM", ",", "crtl", "->", "args", ".", "pretend_args_size", ")", ";", "thumb_exit", "(", "asm_out_file", ",", "regno", ")", ";", "}", "return", "\"\"", ";", "}", ""], "natrual_language": ["The", "bits", "which", "are", "n't", "usefully", "expanded", "as", "rtl", "."], "TS_V_token": ["arm", "0", "0", "0", "\"\"", "\"\"", "0x0f00", "0", "1", "1", "0xff", "0", "\"no low registers available for popping high registers\"", "12", "1", "0", "1", "0", "0", "0", "1", "1", "0", "1", "\"\\tmov\\t%r, %r\\n\"", "1", "0x0f00", "1", "0", "0xff", "0", "1", "12", "\"\\tmov\\t%r, %r\\n\"", "1", "12", "\"\\tmov\\t%r, %r\\n\"", "\"\\tmov\\t%r, %r\\n\"", "\"\\tadd\\t%r, %r, #%d\\n\"", "\"\""], "File": "arm", "Func": "thumb1_unexpanded_epilogue", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3637, "Length": 508, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseRegisterInfo", "::", "needsFrameBaseReg", "(", "MachineInstr", "*", "MI", ",", "int64_t", "Offset", ")", "const", "{", "for", "(", "unsigned", "i", "=", "0", ";", "!", "MI", "->", "getOperand", "(", "i", ")", ".", "isFI", "(", ")", ";", "++", "i", ")", "{", "assert", "(", "i", "<", "MI", "->", "getNumOperands", "(", ")", "&&", "\"Instr doesn't have FrameIndex operand!\"", ")", ";", "}", "unsigned", "Opc", "=", "MI", "->", "getOpcode", "(", ")", ";", "switch", "(", "Opc", ")", "{", "case", "ARM", "::", "LDR", ":", "case", "ARM", "::", "LDRH", ":", "case", "ARM", "::", "LDRB", ":", "case", "ARM", "::", "STR", ":", "case", "ARM", "::", "STRH", ":", "case", "ARM", "::", "STRB", ":", "case", "ARM", "::", "t2LDRi12", ":", "case", "ARM", "::", "t2LDRi8", ":", "case", "ARM", "::", "t2STRi12", ":", "case", "ARM", "::", "t2STRi8", ":", "case", "ARM", "::", "VLDRS", ":", "case", "ARM", "::", "VLDRD", ":", "case", "ARM", "::", "VSTRS", ":", "case", "ARM", "::", "VSTRD", ":", "case", "ARM", "::", "tSTRspi", ":", "case", "ARM", "::", "tLDRspi", ":", "if", "(", "ForceAllBaseRegAlloc", ")", "return", "true", ";", "break", ";", "default", ":", "return", "false", ";", "}", "MachineFunction", "&", "MF", "=", "*", "MI", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "ARMFunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "int64_t", "FPOffset", "=", "Offset", "-", "8", ";", "if", "(", "!", "AFI", "->", "isThumbFunction", "(", ")", "||", "!", "AFI", "->", "isThumb1OnlyFunction", "(", ")", ")", "FPOffset", "-=", "80", ";", "Offset", "=", "-", "Offset", ";", "Offset", "+=", "MFI", "->", "getLocalFrameSize", "(", ")", ";", "Offset", "+=", "128", ";", "unsigned", "StackAlign", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameInfo", "(", ")", "->", "getStackAlignment", "(", ")", ";", "if", "(", "hasFP", "(", "MF", ")", "&&", "!", "(", "(", "MFI", "->", "getLocalFrameMaxAlign", "(", ")", ">", "StackAlign", ")", "&&", "canRealignStack", "(", "MF", ")", ")", ")", "{", "if", "(", "isFrameOffsetLegal", "(", "MI", ",", "FPOffset", ")", ")", "return", "false", ";", "}", "if", "(", "!", "MFI", "->", "hasVarSizedObjects", "(", ")", "&&", "isFrameOffsetLegal", "(", "MI", ",", "Offset", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "instruction", "'s", "frame", "index", "reference", "would", "be", "better", "served", "by", "a", "base", "register", "other", "than", "FP", "or", "SP", "."], "TS_V_token": ["ARM", "ARM", "0", "\"Instr doesn't have FrameIndex operand!\"", "ARM::LDR", "ARM::LDRH", "ARM::LDRB", "ARM::STR", "ARM::STRH", "ARM::STRB", "ARM::t2LDRi12", "ARM::t2LDRi8", "ARM::t2STRi12", "ARM::t2STRi8", "ARM::VLDRS", "ARM::VLDRD", "ARM::VSTRS", "ARM::VSTRD", "ARM::tSTRspi", "ARM::tLDRspi", "ARM", "ARM", "8", "80", "128"], "File": "ARMBaseRegisterInfo29", "Func": "needsFrameBaseReg", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3638, "Length": 321, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Thumb2InstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "DestReg", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FI", ")", ",", "MachineMemOperand", "::", "MOLoad", ",", "MFI", ".", "getObjectSize", "(", "FI", ")", ",", "MFI", ".", "getObjectAlignment", "(", "FI", ")", ")", ";", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "RC", "==", "&", "ARM", "::", "GPRRegClass", "||", "RC", "==", "&", "ARM", "::", "tGPRRegClass", "||", "RC", "==", "&", "ARM", "::", "tcGPRRegClass", "||", "RC", "==", "&", "ARM", "::", "rGPRRegClass", "||", "RC", "==", "&", "ARM", "::", "GPRnopcRegClass", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "t2LDRi12", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "return", ";", "}", "if", "(", "ARM", "::", "GPRPairRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "if", "(", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "DestReg", ")", ")", "{", "MachineRegisterInfo", "*", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "MRI", "->", "constrainRegClass", "(", "DestReg", ",", "&", "ARM", "::", "GPRPair_with_gsub_1_in_rGPRRegClass", ")", ";", "}", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "t2LDRDi8", ")", ")", ";", "AddDReg", "(", "MIB", ",", "DestReg", ",", "ARM", "::", "gsub_0", ",", "RegState", "::", "DefineNoRead", ",", "TRI", ")", ";", "AddDReg", "(", "MIB", ",", "DestReg", ",", "ARM", "::", "gsub_1", ",", "RegState", "::", "DefineNoRead", ",", "TRI", ")", ";", "MIB", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "if", "(", "TargetRegisterInfo", "::", "isPhysicalRegister", "(", "DestReg", ")", ")", "MIB", ".", "addReg", "(", "DestReg", ",", "RegState", "::", "ImplicitDefine", ")", ";", "return", ";", "}", "ARMBaseInstrInfo", "::", "loadRegFromStackSlot", "(", "MBB", ",", "I", ",", "DestReg", ",", "FI", ",", "RC", ",", "TRI", ")", ";", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARM", "ARM::GPRRegClass", "ARM::tGPRRegClass", "ARM::tcGPRRegClass", "ARM::rGPRRegClass", "ARM::GPRnopcRegClass", "ARM::t2LDRi12", "0", "ARMCC::AL", "ARM::GPRPairRegClass", "ARM::GPRPair_with_gsub_1_in_rGPRRegClass", "ARM::t2LDRDi8", "ARM::gsub_0", "ARM::gsub_1", "0", "ARMCC::AL", "ARM"], "File": "Thumb2InstrInfo14", "Func": "loadRegFromStackSlot", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3639, "Length": 361, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "AArch64MCCodeEmitter", "::", "getMachineOpValue", "(", "const", "MCInst", "&", "MI", ",", "const", "MCOperand", "&", "MO", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "if", "(", "MO", ".", "isReg", "(", ")", ")", "return", "Ctx", ".", "getRegisterInfo", "(", ")", "->", "getEncodingValue", "(", "MO", ".", "getReg", "(", ")", ")", ";", "else", "{", "assert", "(", "MO", ".", "isImm", "(", ")", "&&", "\"did not expect relocated expression\"", ")", ";", "return", "static_cast", "<", "unsigned", ">", "(", "MO", ".", "getImm", "(", ")", ")", ";", "}", "assert", "(", "0", "&&", "\"Unable to encode MCOperand!\"", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["getMachineOpValue", "-", "Return", "binary", "encoding", "of", "operand", "."], "TS_V_token": ["AArch64", "AArch64", "\"did not expect relocated expression\"", "0", "\"Unable to encode MCOperand!\"", "0"], "File": "AArch64MCCodeEmitter21", "Func": "getMachineOpValue", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3640, "Length": 91, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "CallLowering", "*", "MipsSubtarget", "::", "getCallLowering", "(", ")", "const", "{", "return", "CallLoweringInfo", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["Methods", "used", "by", "Global", "ISel", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsSubtarget (2)2", "Func": "getCallLowering", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3641, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "BitVector", "SystemZRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "const", "SystemZFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "const", "SystemZSubtarget", "*", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "SystemZSubtarget", ">", "(", ")", ";", "SystemZCallingConventionRegisters", "*", "Regs", "=", "Subtarget", "->", "getSpecialRegisters", "(", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "for", "(", "MCRegAliasIterator", "AI", "(", "Regs", "->", "getFramePointerRegister", "(", ")", ",", "this", ",", "true", ")", ";", "AI", ".", "isValid", "(", ")", ";", "++", "AI", ")", "Reserved", ".", "set", "(", "*", "AI", ")", ";", "for", "(", "MCRegAliasIterator", "AI", "(", "Regs", "->", "getStackPointerRegister", "(", ")", ",", "this", ",", "true", ")", ";", "AI", ".", "isValid", "(", ")", ";", "++", "AI", ")", "Reserved", ".", "set", "(", "*", "AI", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "A0", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "A1", ")", ";", "Reserved", ".", "set", "(", "SystemZ", "::", "FPC", ")", ";", "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": ["SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ::A0", "SystemZ::A1", "SystemZ::FPC"], "File": "SystemZRegisterInfo10", "Func": "getReservedRegs", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3642, "Length": 161, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "LanaiTargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "Opcode", ")", "{", "case", "LanaiISD", "::", "ADJDYNALLOC", ":", "return", "\"LanaiISD::ADJDYNALLOC\"", ";", "case", "LanaiISD", "::", "RET_FLAG", ":", "return", "\"LanaiISD::RET_FLAG\"", ";", "case", "LanaiISD", "::", "CALL", ":", "return", "\"LanaiISD::CALL\"", ";", "case", "LanaiISD", "::", "SELECT_CC", ":", "return", "\"LanaiISD::SELECT_CC\"", ";", "case", "LanaiISD", "::", "SETCC", ":", "return", "\"LanaiISD::SETCC\"", ";", "case", "LanaiISD", "::", "SUBBF", ":", "return", "\"LanaiISD::SUBBF\"", ";", "case", "LanaiISD", "::", "SET_FLAG", ":", "return", "\"LanaiISD::SET_FLAG\"", ";", "case", "LanaiISD", "::", "BR_CC", ":", "return", "\"LanaiISD::BR_CC\"", ";", "case", "LanaiISD", "::", "Wrapper", ":", "return", "\"LanaiISD::Wrapper\"", ";", "case", "LanaiISD", "::", "HI", ":", "return", "\"LanaiISD::HI\"", ";", "case", "LanaiISD", "::", "LO", ":", "return", "\"LanaiISD::LO\"", ";", "case", "LanaiISD", "::", "SMALL", ":", "return", "\"LanaiISD::SMALL\"", ";", "default", ":", "return", "nullptr", ";", "}", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["Lanai", "Lanai", "LanaiISD::ADJDYNALLOC", "\"LanaiISD::ADJDYNALLOC\"", "LanaiISD::RET_FLAG", "\"LanaiISD::RET_FLAG\"", "LanaiISD::CALL", "\"LanaiISD::CALL\"", "LanaiISD::SELECT_CC", "\"LanaiISD::SELECT_CC\"", "LanaiISD::SETCC", "\"LanaiISD::SETCC\"", "LanaiISD::SUBBF", "\"LanaiISD::SUBBF\"", "LanaiISD::SET_FLAG", "\"LanaiISD::SET_FLAG\"", "LanaiISD::BR_CC", "\"LanaiISD::BR_CC\"", "LanaiISD::Wrapper", "\"LanaiISD::Wrapper\"", "LanaiISD::HI", "\"LanaiISD::HI\"", "LanaiISD::LO", "\"LanaiISD::LO\"", "LanaiISD::SMALL", "\"LanaiISD::SMALL\""], "File": "LanaiISelLowering", "Func": "getTargetNodeName", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3643, "Length": 120, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "RegisterBank", "&", "X86RegisterBankInfo", "::", "getRegBankFromRegClass", "(", "const", "TargetRegisterClass", "&", "RC", ")", "const", "{", "if", "(", "X86", "::", "GR8RegClass", ".", "hasSubClassEq", "(", "&", "RC", ")", "||", "X86", "::", "GR16RegClass", ".", "hasSubClassEq", "(", "&", "RC", ")", "||", "X86", "::", "GR32RegClass", ".", "hasSubClassEq", "(", "&", "RC", ")", "||", "X86", "::", "GR64RegClass", ".", "hasSubClassEq", "(", "&", "RC", ")", ")", "return", "getRegBank", "(", "X86", "::", "GPRRegBankID", ")", ";", "if", "(", "X86", "::", "FR32XRegClass", ".", "hasSubClassEq", "(", "&", "RC", ")", "||", "X86", "::", "FR64XRegClass", ".", "hasSubClassEq", "(", "&", "RC", ")", "||", "X86", "::", "VR128XRegClass", ".", "hasSubClassEq", "(", "&", "RC", ")", "||", "X86", "::", "VR256XRegClass", ".", "hasSubClassEq", "(", "&", "RC", ")", "||", "X86", "::", "VR512RegClass", ".", "hasSubClassEq", "(", "&", "RC", ")", ")", "return", "getRegBank", "(", "X86", "::", "VECRRegBankID", ")", ";", "llvm_unreachable", "(", "\"Unsupported register kind yet.\"", ")", ";", "}", ""], "natrual_language": ["Get", "a", "register", "bank", "that", "covers", "RC", "."], "TS_V_token": ["X86", "X86", "X86::GR8RegClass", "X86::GR16RegClass", "X86::GR32RegClass", "X86::GR64RegClass", "X86::GPRRegBankID", "X86::FR32XRegClass", "X86::FR64XRegClass", "X86::VR128XRegClass", "X86::VR256XRegClass", "X86::VR512RegClass", "X86::VECRRegBankID", "\"Unsupported register kind yet.\""], "File": "X86RegisterBankInfo1", "Func": "getRegBankFromRegClass", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3644, "Length": 130, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "int", "execute", "(", "function", "*", ")", "{", "return", "nds32_relax_opt", "(", ")", ";", "}", ""], "natrual_language": ["Main", "entry", "point", "for", "this", "pass", "."], "TS_V_token": ["nds32"], "File": "nds32-relax-opt", "Func": "execute", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3645, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "AArch64SelectionDAGInfo", "::", "EmitTargetCodeForMemset", "(", "SelectionDAG", "&", "DAG", ",", "const", "SDLoc", "&", "dl", ",", "SDValue", "Chain", ",", "SDValue", "Dst", ",", "SDValue", "Src", ",", "SDValue", "Size", ",", "Align", "Alignment", ",", "bool", "isVolatile", ",", "MachinePointerInfo", "DstPtrInfo", ")", "const", "{", "ConstantSDNode", "*", "V", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Src", ")", ";", "ConstantSDNode", "*", "SizeValue", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Size", ")", ";", "const", "AArch64Subtarget", "&", "STI", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ";", "const", "char", "*", "bzeroName", "=", "(", "V", "&&", "V", "->", "isNullValue", "(", ")", ")", "?", "DAG", ".", "getTargetLoweringInfo", "(", ")", ".", "getLibcallName", "(", "RTLIB", "::", "BZERO", ")", ":", "nullptr", ";", "if", "(", "bzeroName", "&&", "(", "!", "SizeValue", "||", "SizeValue", "->", "getZExtValue", "(", ")", ">", "256", ")", ")", "{", "const", "AArch64TargetLowering", "&", "TLI", "=", "*", "STI", ".", "getTargetLowering", "(", ")", ";", "EVT", "IntPtr", "=", "TLI", ".", "getPointerTy", "(", "DAG", ".", "getDataLayout", "(", ")", ")", ";", "Type", "*", "IntPtrTy", "=", "Type", "::", "getInt8PtrTy", "(", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "TargetLowering", "::", "ArgListTy", "Args", ";", "TargetLowering", "::", "ArgListEntry", "Entry", ";", "Entry", ".", "Node", "=", "Dst", ";", "Entry", ".", "Ty", "=", "IntPtrTy", ";", "Args", ".", "push_back", "(", "Entry", ")", ";", "Entry", ".", "Node", "=", "Size", ";", "Args", ".", "push_back", "(", "Entry", ")", ";", "TargetLowering", "::", "CallLoweringInfo", "CLI", "(", "DAG", ")", ";", "CLI", ".", "setDebugLoc", "(", "dl", ")", ".", "setChain", "(", "Chain", ")", ".", "setLibCallee", "(", "CallingConv", "::", "C", ",", "Type", "::", "getVoidTy", "(", "*", "DAG", ".", "getContext", "(", ")", ")", ",", "DAG", ".", "getExternalSymbol", "(", "bzeroName", ",", "IntPtr", ")", ",", "std", "::", "move", "(", "Args", ")", ")", ".", "setDiscardResult", "(", ")", ";", "std", "::", "pair", "<", "SDValue", ",", "SDValue", ">", "CallResult", "=", "TLI", ".", "LowerCallTo", "(", "CLI", ")", ";", "return", "CallResult", ".", "second", ";", "}", "return", "SDValue", "(", ")", ";", "}", ""], "natrual_language": ["Emit", "target-specific", "code", "that", "performs", "a", "memset", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "256", "AArch64"], "File": "AArch64SelectionDAGInfo15", "Func": "EmitTargetCodeForMemset", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3646, "Length": 299, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMAsmParser", "::", "MatchAndEmitInstruction", "(", "SMLoc", "IDLoc", ",", "unsigned", "&", "Opcode", ",", "OperandVector", "&", "Operands", ",", "MCStreamer", "&", "Out", ",", "uint64_t", "&", "ErrorInfo", ",", "bool", "MatchingInlineAsm", ")", "{", "MCInst", "Inst", ";", "unsigned", "MatchResult", ";", "bool", "PendConditionalInstruction", "=", "false", ";", "SmallVector", "<", "NearMissInfo", ",", "4", ">", "NearMisses", ";", "MatchResult", "=", "MatchInstruction", "(", "Operands", ",", "Inst", ",", "NearMisses", ",", "MatchingInlineAsm", ",", "PendConditionalInstruction", ",", "Out", ")", ";", "switch", "(", "MatchResult", ")", "{", "case", "Match_Success", ":", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Parsed as: \"", ";", "Inst", ".", "dump_pretty", "(", "dbgs", "(", ")", ",", "MII", ".", "getName", "(", "Inst", ".", "getOpcode", "(", ")", ")", ")", ";", "dbgs", "(", ")", "<<", "\"\\n\"", ")", ";", "if", "(", "validateInstruction", "(", "Inst", ",", "Operands", ")", ")", "{", "forwardITPosition", "(", ")", ";", "return", "true", ";", "}", "{", "bool", "wasInITBlock", "=", "inITBlock", "(", ")", ";", "while", "(", "processInstruction", "(", "Inst", ",", "Operands", ",", "Out", ")", ")", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Changed to: \"", ";", "Inst", ".", "dump_pretty", "(", "dbgs", "(", ")", ",", "MII", ".", "getName", "(", "Inst", ".", "getOpcode", "(", ")", ")", ")", ";", "dbgs", "(", ")", "<<", "\"\\n\"", ")", ";", "if", "(", "wasInITBlock", "&&", "hasV8Ops", "(", ")", "&&", "isThumb", "(", ")", "&&", "!", "isV8EligibleForIT", "(", "&", "Inst", ")", ")", "{", "Warning", "(", "IDLoc", ",", "\"deprecated instruction in IT block\"", ")", ";", "}", "}", "forwardITPosition", "(", ")", ";", "if", "(", "Inst", ".", "getOpcode", "(", ")", "==", "ARM", "::", "ITasm", ")", "return", "false", ";", "Inst", ".", "setLoc", "(", "IDLoc", ")", ";", "if", "(", "PendConditionalInstruction", ")", "{", "PendingConditionalInsts", ".", "push_back", "(", "Inst", ")", ";", "if", "(", "isITBlockFull", "(", ")", "||", "isITBlockTerminator", "(", "Inst", ")", ")", "flushPendingInstructions", "(", "Out", ")", ";", "}", "else", "{", "Out", ".", "EmitInstruction", "(", "Inst", ",", "getSTI", "(", ")", ")", ";", "}", "return", "false", ";", "case", "Match_NearMisses", ":", "ReportNearMisses", "(", "NearMisses", ",", "IDLoc", ",", "Operands", ")", ";", "return", "true", ";", "case", "Match_MnemonicFail", ":", "{", "FeatureBitset", "FBS", "=", "ComputeAvailableFeatures", "(", "getSTI", "(", ")", ".", "getFeatureBits", "(", ")", ")", ";", "std", "::", "string", "Suggestion", "=", "ARMMnemonicSpellCheck", "(", "(", "(", "ARMOperand", "&", ")", "*", "Operands", "[", "0", "]", ")", ".", "getToken", "(", ")", ",", "FBS", ")", ";", "return", "Error", "(", "IDLoc", ",", "\"invalid instruction\"", "+", "Suggestion", ",", "(", "(", "ARMOperand", "&", ")", "*", "Operands", "[", "0", "]", ")", ".", "getLocRange", "(", ")", ")", ";", "}", "}", "llvm_unreachable", "(", "\"Implement any new match types added!\"", ")", ";", "}", ""], "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": ["ARM", "ARM", "4", "\"Parsed as: \"", "\"\\n\"", "\"Changed to: \"", "\"\\n\"", "\"deprecated instruction in IT block\"", "ARM::ITasm", "ARM", "ARM", "0", "\"invalid instruction\"", "ARM", "0", "\"Implement any new match types added!\""], "File": "ARMAsmParser116", "Func": "MatchAndEmitInstruction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3647, "Length": 373, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "arm_hard_regno_mode_ok", "(", "unsigned", "int", "regno", ",", "machine_mode", "mode", ")", "{", "if", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_CC", ")", "return", "(", "regno", "==", "CC_REGNUM", "||", "(", "TARGET_HARD_FLOAT", "&&", "regno", "==", "VFPCC_REGNUM", ")", ")", ";", "if", "(", "regno", "==", "CC_REGNUM", "&&", "GET_MODE_CLASS", "(", "mode", ")", "!=", "MODE_CC", ")", "return", "false", ";", "if", "(", "TARGET_THUMB1", ")", "return", "(", "ARM_NUM_REGS", "(", "mode", ")", "<", "2", ")", "||", "(", "regno", "<", "LAST_LO_REGNUM", ")", ";", "if", "(", "TARGET_HARD_FLOAT", "&&", "IS_VFP_REGNUM", "(", "regno", ")", ")", "{", "if", "(", "mode", "==", "SFmode", "||", "mode", "==", "SImode", ")", "return", "VFP_REGNO_OK_FOR_SINGLE", "(", "regno", ")", ";", "if", "(", "mode", "==", "DFmode", ")", "return", "VFP_REGNO_OK_FOR_DOUBLE", "(", "regno", ")", ";", "if", "(", "mode", "==", "HFmode", ")", "return", "VFP_REGNO_OK_FOR_SINGLE", "(", "regno", ")", ";", "if", "(", "mode", "==", "HImode", ")", "return", "VFP_REGNO_OK_FOR_SINGLE", "(", "regno", ")", ";", "if", "(", "TARGET_NEON", ")", "return", "(", "VALID_NEON_DREG_MODE", "(", "mode", ")", "&&", "VFP_REGNO_OK_FOR_DOUBLE", "(", "regno", ")", ")", "||", "(", "VALID_NEON_QREG_MODE", "(", "mode", ")", "&&", "NEON_REGNO_OK_FOR_QUAD", "(", "regno", ")", ")", "||", "(", "mode", "==", "TImode", "&&", "NEON_REGNO_OK_FOR_NREGS", "(", "regno", ",", "2", ")", ")", "||", "(", "mode", "==", "EImode", "&&", "NEON_REGNO_OK_FOR_NREGS", "(", "regno", ",", "3", ")", ")", "||", "(", "mode", "==", "OImode", "&&", "NEON_REGNO_OK_FOR_NREGS", "(", "regno", ",", "4", ")", ")", "||", "(", "mode", "==", "CImode", "&&", "NEON_REGNO_OK_FOR_NREGS", "(", "regno", ",", "6", ")", ")", "||", "(", "mode", "==", "XImode", "&&", "NEON_REGNO_OK_FOR_NREGS", "(", "regno", ",", "8", ")", ")", ";", "return", "FALSE", ";", "}", "if", "(", "TARGET_REALLY_IWMMXT", ")", "{", "if", "(", "IS_IWMMXT_GR_REGNUM", "(", "regno", ")", ")", "return", "mode", "==", "SImode", ";", "if", "(", "IS_IWMMXT_REGNUM", "(", "regno", ")", ")", "return", "VALID_IWMMXT_REG_MODE", "(", "mode", ")", ";", "}", "if", "(", "regno", "<=", "LAST_ARM_REGNUM", ")", "{", "if", "(", "ARM_NUM_REGS", "(", "mode", ")", ">", "4", ")", "return", "FALSE", ";", "if", "(", "TARGET_THUMB2", ")", "return", "TRUE", ";", "return", "!", "(", "TARGET_LDRD", "&&", "GET_MODE_SIZE", "(", "mode", ")", ">", "4", "&&", "(", "regno", "&", "1", ")", "!=", "0", ")", ";", "}", "if", "(", "regno", "==", "FRAME_POINTER_REGNUM", "||", "regno", "==", "ARG_POINTER_REGNUM", ")", "return", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_INT", ";", "return", "FALSE", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "REGNO", "is", "a", "valid", "register", "for", "holding", "a", "quantity", "of", "type", "MODE", "."], "TS_V_token": ["arm", "2", "2", "3", "4", "6", "8", "4", "4", "1", "0"], "File": "arm6", "Func": "arm_hard_regno_mode_ok", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3648, "Length": 332, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "machopic_output_stub", "(", "FILE", "*", "file", ",", "const", "char", "*", "symb", ",", "const", "char", "*", "stub", ")", "{", "unsigned", "int", "length", ";", "char", "*", "symbol_name", ",", "*", "lazy_ptr_name", ";", "char", "*", "local_label_0", ";", "static", "int", "label", "=", "0", ";", "symb", "=", "(", "*", "targetm", ".", "strip_name_encoding", ")", "(", "symb", ")", ";", "length", "=", "strlen", "(", "symb", ")", ";", "symbol_name", "=", "alloca", "(", "length", "+", "32", ")", ";", "GEN_SYMBOL_NAME_FOR_SYMBOL", "(", "symbol_name", ",", "symb", ",", "length", ")", ";", "lazy_ptr_name", "=", "alloca", "(", "length", "+", "32", ")", ";", "GEN_LAZY_PTR_NAME_FOR_SYMBOL", "(", "lazy_ptr_name", ",", "symb", ",", "length", ")", ";", "if", "(", "flag_pic", "==", "2", ")", "machopic_picsymbol_stub1_section", "(", ")", ";", "else", "machopic_symbol_stub1_section", "(", ")", ";", "if", "(", "flag_pic", "==", "2", ")", "{", "fprintf", "(", "file", ",", "\"\\t.align 5\\n\"", ")", ";", "fprintf", "(", "file", ",", "\"%s:\\n\"", ",", "stub", ")", ";", "fprintf", "(", "file", ",", "\"\\t.indirect_symbol %s\\n\"", ",", "symbol_name", ")", ";", "label", "++", ";", "local_label_0", "=", "alloca", "(", "sizeof", "(", "\"\\\"L00000000000$spb\\\"\"", ")", ")", ";", "sprintf", "(", "local_label_0", ",", "\"\\\"L%011d$spb\\\"\"", ",", "label", ")", ";", "fprintf", "(", "file", ",", "\"\\tmflr r0\\n\"", ")", ";", "fprintf", "(", "file", ",", "\"\\tbcl 20,31,%s\\n\"", ",", "local_label_0", ")", ";", "fprintf", "(", "file", ",", "\"%s:\\n\\tmflr r11\\n\"", ",", "local_label_0", ")", ";", "fprintf", "(", "file", ",", "\"\\taddis r11,r11,ha16(%s-%s)\\n\"", ",", "lazy_ptr_name", ",", "local_label_0", ")", ";", "fprintf", "(", "file", ",", "\"\\tmtlr r0\\n\"", ")", ";", "fprintf", "(", "file", ",", "\"\\t%s r12,lo16(%s-%s)(r11)\\n\"", ",", "(", "TARGET_64BIT", "?", "\"ldu\"", ":", "\"lwzu\"", ")", ",", "lazy_ptr_name", ",", "local_label_0", ")", ";", "fprintf", "(", "file", ",", "\"\\tmtctr r12\\n\"", ")", ";", "fprintf", "(", "file", ",", "\"\\tbctr\\n\"", ")", ";", "}", "else", "{", "fprintf", "(", "file", ",", "\"\\t.align 4\\n\"", ")", ";", "fprintf", "(", "file", ",", "\"%s:\\n\"", ",", "stub", ")", ";", "fprintf", "(", "file", ",", "\"\\t.indirect_symbol %s\\n\"", ",", "symbol_name", ")", ";", "fprintf", "(", "file", ",", "\"\\tlis r11,ha16(%s)\\n\"", ",", "lazy_ptr_name", ")", ";", "fprintf", "(", "file", ",", "\"\\t%s r12,lo16(%s)(r11)\\n\"", ",", "(", "TARGET_64BIT", "?", "\"ldu\"", ":", "\"lwzu\"", ")", ",", "lazy_ptr_name", ")", ";", "fprintf", "(", "file", ",", "\"\\tmtctr r12\\n\"", ")", ";", "fprintf", "(", "file", ",", "\"\\tbctr\\n\"", ")", ";", "}", "machopic_lazy_symbol_ptr_section", "(", ")", ";", "fprintf", "(", "file", ",", "\"%s:\\n\"", ",", "lazy_ptr_name", ")", ";", "fprintf", "(", "file", ",", "\"\\t.indirect_symbol %s\\n\"", ",", "symbol_name", ")", ";", "fprintf", "(", "file", ",", "\"%sdyld_stub_binding_helper\\n\"", ",", "(", "TARGET_64BIT", "?", "DOUBLE_INT_ASM_OP", ":", "\"\\t.long\\t\"", ")", ")", ";", "}", ""], "natrual_language": ["Generate", "external", "symbol", "indirection", "stubs", "(", "PIC", "and", "non-PIC", ")", "."], "TS_V_token": ["rs6000", "0", "32", "32", "2", "2", "\"\\t.align 5\\n\"", "\"%s:\\n\"", "\"\\t.indirect_symbol %s\\n\"", "\"\\\"L00000000000$spb\\\"\"", "\"\\\"L%011d$spb\\\"\"", "\"\\tmflr r0\\n\"", "\"\\tbcl 20,31,%s\\n\"", "\"%s:\\n\\tmflr r11\\n\"", "\"\\taddis r11,r11,ha16(%s-%s)\\n\"", "\"\\tmtlr r0\\n\"", "\"\\t%s r12,lo16(%s-%s)(r11)\\n\"", "\"ldu\"", "\"lwzu\"", "\"\\tmtctr r12\\n\"", "\"\\tbctr\\n\"", "\"\\t.align 4\\n\"", "\"%s:\\n\"", "\"\\t.indirect_symbol %s\\n\"", "\"\\tlis r11,ha16(%s)\\n\"", "\"\\t%s r12,lo16(%s)(r11)\\n\"", "\"ldu\"", "\"lwzu\"", "\"\\tmtctr r12\\n\"", "\"\\tbctr\\n\"", "\"%s:\\n\"", "\"\\t.indirect_symbol %s\\n\"", "\"%sdyld_stub_binding_helper\\n\"", "\"\\t.long\\t\""], "File": "rs60003", "Func": "machopic_output_stub", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3649, "Length": 346, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "vspltis_constant", "(", "rtx", "op", ",", "unsigned", "step", ",", "unsigned", "copies", ")", "{", "enum", "machine_mode", "mode", "=", "GET_MODE", "(", "op", ")", ";", "enum", "machine_mode", "inner", "=", "GET_MODE_INNER", "(", "mode", ")", ";", "unsigned", "i", ";", "unsigned", "nunits", "=", "GET_MODE_NUNITS", "(", "mode", ")", ";", "unsigned", "bitsize", "=", "GET_MODE_BITSIZE", "(", "inner", ")", ";", "unsigned", "mask", "=", "GET_MODE_MASK", "(", "inner", ")", ";", "rtx", "last", "=", "CONST_VECTOR_ELT", "(", "op", ",", "nunits", "-", "1", ")", ";", "HOST_WIDE_INT", "val", "=", "INTVAL", "(", "last", ")", ";", "HOST_WIDE_INT", "splat_val", "=", "val", ";", "HOST_WIDE_INT", "msb_val", "=", "val", ">", "0", "?", "0", ":", "-", "1", ";", "for", "(", "i", "=", "2", ";", "i", "<=", "copies", ";", "i", "*=", "2", ")", "{", "HOST_WIDE_INT", "small_val", ";", "bitsize", "/=", "2", ";", "small_val", "=", "splat_val", ">>", "bitsize", ";", "mask", ">>=", "bitsize", ";", "if", "(", "splat_val", "!=", "(", "(", "small_val", "<<", "bitsize", ")", "|", "(", "small_val", "&", "mask", ")", ")", ")", "return", "false", ";", "splat_val", "=", "small_val", ";", "}", "if", "(", "EASY_VECTOR_15", "(", "splat_val", ")", ")", ";", "else", "if", "(", "EASY_VECTOR_15_ADD_SELF", "(", "splat_val", ")", "&&", "(", "splat_val", ">=", "0", "||", "(", "step", "==", "1", "&&", "copies", "==", "1", ")", ")", ")", ";", "else", "return", "false", ";", "for", "(", "i", "=", "0", ";", "i", "<", "nunits", "-", "1", ";", "++", "i", ")", "{", "HOST_WIDE_INT", "desired_val", ";", "if", "(", "(", "(", "i", "+", "1", ")", "&", "(", "step", "-", "1", ")", ")", "==", "0", ")", "desired_val", "=", "val", ";", "else", "desired_val", "=", "msb_val", ";", "if", "(", "desired_val", "!=", "INTVAL", "(", "CONST_VECTOR_ELT", "(", "op", ",", "i", ")", ")", ")", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "OP", "can", "be", "synthesized", "with", "a", "particular", "vspltisb", ",", "vspltish", "or", "vspltisw", "instruction", ".", "OP", "is", "a", "CONST_VECTOR", ".", "Which", "instruction", "is", "used", "depends", "on", "STEP", "and", "COPIES", ",", "one", "of", "which", "will", "be", "1", ".", "If", "COPIES", ">", "1", ",", "all", "items", "are", "set", "to", "the", "same", "value", "and", "contain", "COPIES", "replicas", "of", "the", "vsplt", "'s", "operand", ";", "if", "STEP", ">", "1", ",", "one", "in", "STEP", "elements", "is", "set", "to", "the", "vsplt", "'s", "operand", "and", "the", "others", "are", "set", "to", "the", "value", "of", "the", "operand", "'s", "msb", "."], "TS_V_token": ["rs6000", "1", "0", "0", "1", "2", "2", "2", "0", "1", "1", "0", "1", "1", "1", "0"], "File": "rs60003", "Func": "vspltis_constant", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3650, "Length": 259, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMConstantIslands", "::", "verify", "(", ")", "{", "BBInfoVector", "&", "BBInfo", "=", "BBUtils", "->", "getBBInfo", "(", ")", ";", "assert", "(", "is_sorted", "(", "*", "MF", ",", "[", "&", "BBInfo", "]", "(", "const", "MachineBasicBlock", "&", "LHS", ",", "const", "MachineBasicBlock", "&", "RHS", ")", "{", "return", "BBInfo", "[", "LHS", ".", "getNumber", "(", ")", "]", ".", "postOffset", "(", ")", "<", "BBInfo", "[", "RHS", ".", "getNumber", "(", ")", "]", ".", "postOffset", "(", ")", ";", "}", ")", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Verifying \"", "<<", "CPUsers", ".", "size", "(", ")", "<<", "\" CP users.\\n\"", ")", ";", "for", "(", "CPUser", "&", "U", ":", "CPUsers", ")", "{", "unsigned", "UserOffset", "=", "getUserOffset", "(", "U", ")", ";", "if", "(", "isCPEntryInRange", "(", "U", ".", "MI", ",", "UserOffset", ",", "U", ".", "CPEMI", ",", "U", ".", "getMaxDisp", "(", ")", "+", "2", ",", "U", ".", "NegOk", ",", "true", ")", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"OK\\n\"", ")", ";", "continue", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Out of range.\\n\"", ")", ";", "dumpBBs", "(", ")", ";", "LLVM_DEBUG", "(", "MF", "->", "dump", "(", ")", ")", ";", "llvm_unreachable", "(", "\"Constant pool entry out of range!\"", ")", ";", "}", "}", ""], "natrual_language": ["Check", "if", "this", "register", "bank", "is", "valid", "."], "TS_V_token": ["ARM", "ARM", "\"Verifying \"", "\" CP users.\\n\"", "2", "\"OK\\n\"", "\"Out of range.\\n\"", "\"Constant pool entry out of range!\""], "File": "ARMConstantIslandPass33", "Func": "verify", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3651, "Length": 176, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "LegalizerInfo", "*", "ARMSubtarget", "::", "getLegalizerInfo", "(", ")", "const", "{", "assert", "(", "GISel", "&&", "\"Access to GlobalISel APIs not set\"", ")", ";", "return", "GISel", "->", "getLegalizerInfo", "(", ")", ";", "}", ""], "natrual_language": ["Expose", "LegalizerInfo", "so", "the", "clients", "can", "re-use", "."], "TS_V_token": ["ARM", "ARM", "\"Access to GlobalISel APIs not set\""], "File": "ARMSubtarget24", "Func": "getLegalizerInfo", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3652, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "Cpu0InstrInfo", "*", "getInstrInfo", "(", ")", "const", "override", "{", "return", "InstrInfo", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["TargetInstrInfo", "getter", "."], "TS_V_token": ["Cpu0", "Cpu0"], "File": "Cpu0Subtarget", "Func": "getInstrInfo", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3653, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64AsmPrinter", "::", "PrintAsmOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNum", ",", "unsigned", "AsmVariant", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "O", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "OpNum", ")", ";", "if", "(", "!", "AsmPrinter", "::", "PrintAsmOperand", "(", "MI", ",", "OpNum", ",", "AsmVariant", ",", "ExtraCode", ",", "O", ")", ")", "return", "false", ";", "if", "(", "ExtraCode", "&&", "ExtraCode", "[", "0", "]", ")", "{", "if", "(", "ExtraCode", "[", "1", "]", "!=", "0", ")", "return", "true", ";", "switch", "(", "ExtraCode", "[", "0", "]", ")", "{", "default", ":", "return", "true", ";", "case", "'w'", ":", "case", "'x'", ":", "if", "(", "MO", ".", "isReg", "(", ")", ")", "return", "printAsmMRegister", "(", "MO", ",", "ExtraCode", "[", "0", "]", ",", "O", ")", ";", "if", "(", "MO", ".", "isImm", "(", ")", "&&", "MO", ".", "getImm", "(", ")", "==", "0", ")", "{", "unsigned", "Reg", "=", "ExtraCode", "[", "0", "]", "==", "'w'", "?", "AArch64", "::", "WZR", ":", "AArch64", "::", "XZR", ";", "O", "<<", "AArch64InstPrinter", "::", "getRegisterName", "(", "Reg", ")", ";", "return", "false", ";", "}", "printOperand", "(", "MI", ",", "OpNum", ",", "O", ")", ";", "return", "false", ";", "case", "'b'", ":", "case", "'h'", ":", "case", "'s'", ":", "case", "'d'", ":", "case", "'q'", ":", "if", "(", "MO", ".", "isReg", "(", ")", ")", "{", "const", "TargetRegisterClass", "*", "RC", ";", "switch", "(", "ExtraCode", "[", "0", "]", ")", "{", "case", "'b'", ":", "RC", "=", "&", "AArch64", "::", "FPR8RegClass", ";", "break", ";", "case", "'h'", ":", "RC", "=", "&", "AArch64", "::", "FPR16RegClass", ";", "break", ";", "case", "'s'", ":", "RC", "=", "&", "AArch64", "::", "FPR32RegClass", ";", "break", ";", "case", "'d'", ":", "RC", "=", "&", "AArch64", "::", "FPR64RegClass", ";", "break", ";", "case", "'q'", ":", "RC", "=", "&", "AArch64", "::", "FPR128RegClass", ";", "break", ";", "default", ":", "return", "true", ";", "}", "return", "printAsmRegInClass", "(", "MO", ",", "RC", ",", "false", ",", "O", ")", ";", "}", "printOperand", "(", "MI", ",", "OpNum", ",", "O", ")", ";", "return", "false", ";", "}", "}", "if", "(", "MO", ".", "isReg", "(", ")", ")", "{", "unsigned", "Reg", "=", "MO", ".", "getReg", "(", ")", ";", "if", "(", "AArch64", "::", "GPR32allRegClass", ".", "contains", "(", "Reg", ")", "||", "AArch64", "::", "GPR64allRegClass", ".", "contains", "(", "Reg", ")", ")", "return", "printAsmMRegister", "(", "MO", ",", "'x'", ",", "O", ")", ";", "return", "printAsmRegInClass", "(", "MO", ",", "&", "AArch64", "::", "FPR128RegClass", ",", "true", ",", "O", ")", ";", "}", "printOperand", "(", "MI", ",", "OpNum", ",", "O", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["PrintAsmOperand", "-", "Print", "out", "an", "operand", "for", "an", "inline", "asm", "expression", "."], "TS_V_token": ["AArch64", "AArch64", "0", "1", "0", "0", "0", "0", "0", "AArch64::WZR", "AArch64::XZR", "AArch64", "0", "AArch64::FPR8RegClass", "AArch64::FPR16RegClass", "AArch64::FPR32RegClass", "AArch64::FPR64RegClass", "AArch64::FPR128RegClass", "AArch64::GPR32allRegClass", "AArch64::GPR64allRegClass", "AArch64::FPR128RegClass"], "File": "AArch64AsmPrinter (2)", "Func": "PrintAsmOperand", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3654, "Length": 388, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZFrameLowering", "::", "determineCalleeSaves", "(", "MachineFunction", "&", "MF", ",", "BitVector", "&", "SavedRegs", ",", "RegScavenger", "*", "RS", ")", "const", "{", "TargetFrameLowering", "::", "determineCalleeSaves", "(", "MF", ",", "SavedRegs", ",", "RS", ")", ";", "MachineFrameInfo", "*", "MFFrame", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "bool", "HasFP", "=", "hasFP", "(", "MF", ")", ";", "SystemZMachineFunctionInfo", "*", "MFI", "=", "MF", ".", "getInfo", "<", "SystemZMachineFunctionInfo", ">", "(", ")", ";", "bool", "IsVarArg", "=", "MF", ".", "getFunction", "(", ")", "->", "isVarArg", "(", ")", ";", "if", "(", "IsVarArg", ")", "for", "(", "unsigned", "I", "=", "MFI", "->", "getVarArgsFirstGPR", "(", ")", ";", "I", "<", "SystemZ", "::", "NumArgGPRs", ";", "++", "I", ")", "SavedRegs", ".", "set", "(", "SystemZ", "::", "ArgGPRs", "[", "I", "]", ")", ";", "if", "(", "!", "MF", ".", "getMMI", "(", ")", ".", "getLandingPads", "(", ")", ".", "empty", "(", ")", ")", "{", "SavedRegs", ".", "set", "(", "SystemZ", "::", "R6D", ")", ";", "SavedRegs", ".", "set", "(", "SystemZ", "::", "R7D", ")", ";", "}", "if", "(", "HasFP", ")", "SavedRegs", ".", "set", "(", "SystemZ", "::", "R11D", ")", ";", "if", "(", "MFFrame", "->", "hasCalls", "(", ")", ")", "SavedRegs", ".", "set", "(", "SystemZ", "::", "R14D", ")", ";", "const", "MCPhysReg", "*", "CSRegs", "=", "TRI", "->", "getCalleeSavedRegs", "(", "&", "MF", ")", ";", "for", "(", "unsigned", "I", "=", "0", ";", "CSRegs", "[", "I", "]", ";", "++", "I", ")", "{", "unsigned", "Reg", "=", "CSRegs", "[", "I", "]", ";", "if", "(", "SystemZ", "::", "GR64BitRegClass", ".", "contains", "(", "Reg", ")", "&&", "SavedRegs", ".", "test", "(", "Reg", ")", ")", "{", "SavedRegs", ".", "set", "(", "SystemZ", "::", "R15D", ")", ";", "break", ";", "}", "}", "}", ""], "natrual_language": ["This", "method", "determines", "which", "of", "the", "registers", "reported", "by", "TargetRegisterInfo", ":", ":getCalleeSavedRegs", "(", ")", "should", "actually", "get", "saved", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ::NumArgGPRs", "SystemZ::ArgGPRs", "SystemZ::R6D", "SystemZ::R7D", "SystemZ::R11D", "SystemZ::R14D", "0", "SystemZ::GR64BitRegClass", "SystemZ::R15D"], "File": "SystemZFrameLowering37", "Func": "determineCalleeSaves", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3655, "Length": 262, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "if", "(", "!", "EnableCheri128FailHard", ")", "return", "false", ";", "InstrInfo", "=", "MF", ".", "getSubtarget", "<", "MipsSubtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "SmallVector", "<", "MachineInstr", "*", ",", "16", ">", "instrs", ";", "std", "::", "set", "<", "MachineBasicBlock", "*", ">", "bbs", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "for", "(", "auto", "&", "MI", ":", "MBB", ")", "if", "(", "(", "MI", ".", "getOpcode", "(", ")", "==", "Mips", "::", "CIncOffset", ")", "||", "(", "MI", ".", "getOpcode", "(", ")", "==", "Mips", "::", "CSetOffset", ")", ")", "{", "instrs", ".", "push_back", "(", "&", "MI", ")", ";", "bbs", ".", "insert", "(", "&", "MBB", ")", ";", "}", "if", "(", "instrs", ".", "empty", "(", ")", ")", "return", "false", ";", "MachineRegisterInfo", "&", "RI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "for", "(", "auto", "*", "MI", ":", "instrs", ")", "{", "Register", "tag_before", "=", "RI", ".", "createVirtualRegister", "(", "&", "Mips", "::", "GPR64RegClass", ")", ";", "Register", "tag_after", "=", "RI", ".", "createVirtualRegister", "(", "&", "Mips", "::", "GPR64RegClass", ")", ";", "auto", "&", "MBB", "=", "*", "MI", "->", "getParent", "(", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "InstrInfo", "->", "get", "(", "Mips", "::", "CGetTag", ")", ")", ".", "addDef", "(", "tag_before", ")", ".", "addUse", "(", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ")", ";", "MachineBasicBlock", "::", "iterator", "after", "=", "BuildMI", "(", "*", "MI", "->", "getParent", "(", ")", ",", "++", "MachineBasicBlock", "::", "iterator", "(", "MI", ")", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "InstrInfo", "->", "get", "(", "Mips", "::", "CGetTag", ")", ")", ".", "addDef", "(", "tag_after", ")", ".", "addUse", "(", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ")", ".", "getInstr", "(", ")", ";", "auto", "Sink", "=", "MF", ".", "CreateMachineBasicBlock", "(", "MBB", ".", "getBasicBlock", "(", ")", ")", ";", "MF", ".", "insert", "(", "++", "MachineFunction", "::", "iterator", "(", "MBB", ")", ",", "Sink", ")", ";", "Sink", "->", "splice", "(", "Sink", "->", "begin", "(", ")", ",", "&", "MBB", ",", "std", "::", "next", "(", "after", ")", ",", "MBB", ".", "end", "(", ")", ")", ";", "Sink", "->", "transferSuccessorsAndUpdatePHIs", "(", "&", "MBB", ")", ";", "MBB", ".", "addSuccessor", "(", "Sink", ")", ";", "assert", "(", "Sink", "->", "getParent", "(", ")", "==", "&", "MF", ")", ";", "after", "=", "BuildMI", "(", "MBB", ",", "++", "after", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "InstrInfo", "->", "get", "(", "Mips", "::", "BEQ64", ")", ")", ".", "addUse", "(", "tag_after", ",", "RegState", "::", "Kill", ")", ".", "addUse", "(", "tag_before", ",", "RegState", "::", "Kill", ")", ".", "addMBB", "(", "Sink", ")", ";", "BuildMI", "(", "MBB", ",", "++", "after", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "InstrInfo", "->", "get", "(", "Mips", "::", "TRAP", ")", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["Mips", "Mips", "16", "Mips::CIncOffset", "Mips::CSetOffset", "Mips::GPR64RegClass", "Mips::GPR64RegClass", "Mips::CGetTag", "1", "Mips::CGetTag", "0", "Mips::BEQ64", "Mips::TRAP"], "File": "Cheri128FailHard", "Func": "runOnMachineFunction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3656, "Length": 438, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZConstantPoolValue", "::", "print", "(", "raw_ostream", "&", "O", ")", "const", "{", "O", "<<", "GV", "<<", "\"@\"", "<<", "int", "(", "Modifier", ")", ";", "}", ""], "natrual_language": ["print", "-", "Print", "a", "debug", "representation", "of", "the", "operand", "to", "the", "given", "stream", "."], "TS_V_token": ["SystemZ", "SystemZ", "\"@\""], "File": "SystemZConstantPoolValue", "Func": "print", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3657, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "seh_emit_save", "(", "FILE", "*", "f", ",", "struct", "seh_frame_state", "*", "seh", ",", "rtx", "reg", ",", "HOST_WIDE_INT", "cfa_offset", ")", "{", "unsigned", "int", "regno", "=", "REGNO", "(", "reg", ")", ";", "HOST_WIDE_INT", "offset", ";", "gcc_assert", "(", "seh", "->", "sp_offset", ">=", "cfa_offset", ")", ";", "offset", "=", "seh", "->", "sp_offset", "-", "cfa_offset", ";", "fputs", "(", "(", "SSE_REGNO_P", "(", "regno", ")", "?", "\"\\t.seh_savexmm\\t\"", ":", "GENERAL_REGNO_P", "(", "regno", ")", "?", "\"\\t.seh_savereg\\t\"", ":", "(", "gcc_unreachable", "(", ")", ",", "\"\"", ")", ")", ",", "f", ")", ";", "print_reg", "(", "reg", ",", "0", ",", "f", ")", ";", "fprintf", "(", "f", ",", "\", \"", "HOST_WIDE_INT_PRINT_DEC", "\"\\n\"", ",", "offset", ")", ";", "}", ""], "natrual_language": ["Emit", "an", "assembler", "directive", "to", "save", "REG", "at", "CFA", "-", "CFA_OFFSET", "."], "TS_V_token": ["i386", "\"\\t.seh_savexmm\\t\"", "\"\\t.seh_savereg\\t\"", "\"\"", "0", "\", \"", "\"\\n\""], "File": "winnt4", "Func": "seh_emit_save", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3658, "Length": 99, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "allowPositionIndependentMovt", "(", ")", "const", "{", "return", "isROPI", "(", ")", "||", "!", "isTargetELF", "(", ")", ";", "}", ""], "natrual_language": ["Allow", "movt+movw", "for", "PIC", "global", "address", "calculation", "."], "TS_V_token": ["ARM"], "File": "ARMSubtarget (2)3", "Func": "allowPositionIndependentMovt", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3659, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsSEInstrInfo", "::", "isStoreToStackSlot", "(", "const", "MachineInstr", "*", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "unsigned", "Opc", "=", "MI", "->", "getOpcode", "(", ")", ";", "if", "(", "(", "Opc", "==", "Mips", "::", "SW", ")", "||", "(", "Opc", "==", "Mips", "::", "SWC1", ")", "||", "(", "Opc", "==", "Mips", "::", "SDC1", ")", ")", "{", "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": ["Mips", "Mips", "Mips::SW", "Mips::SWC1", "Mips::SDC1", "1", "2", "2", "1", "0", "0"], "File": "MipsSEInstrInfo25", "Func": "isStoreToStackSlot", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3660, "Length": 124, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "getPassName", "(", ")", "const", "{", "return", "\"Merge internal globals\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["ARM", "\"Merge internal globals\""], "File": "ARMGlobalMerge", "Func": "getPassName", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3661, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_ifunc_ref_local_ok", "(", "void", ")", "{", "return", "!", "flag_pic", "||", "(", "TARGET_64BIT", "&&", "ix86_cmodel", "!=", "CM_LARGE_PIC", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_IFUNC_REF_LOCAL_OK", ".", "If", "this", "hook", "returns", "true", ",", "the", "PLT", "entry", "will", "be", "used", "as", "the", "function", "address", "for", "local", "IFUNC", "functions", ".", "When", "the", "PIC", "register", "is", "needed", "for", "PLT", "call", ",", "indirect", "call", "via", "the", "PLT", "entry", "will", "fail", "since", "the", "PIC", "register", "may", "not", "be", "set", "up", "properly", "for", "indirect", "call", ".", "In", "this", "case", ",", "we", "should", "return", "false", "."], "TS_V_token": ["i386"], "File": "i3861", "Func": "ix86_ifunc_ref_local_ok", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3662, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "sparc_check_64", "(", "rtx", "x", ",", "rtx_insn", "*", "insn", ")", "{", "int", "set_once", "=", "0", ";", "rtx", "y", "=", "x", ";", "gcc_assert", "(", "GET_CODE", "(", "x", ")", "==", "REG", ")", ";", "if", "(", "GET_MODE", "(", "x", ")", "==", "DImode", ")", "y", "=", "gen_rtx_REG", "(", "SImode", ",", "REGNO", "(", "x", ")", "+", "WORDS_BIG_ENDIAN", ")", ";", "if", "(", "flag_expensive_optimizations", "&&", "df", "&&", "DF_REG_DEF_COUNT", "(", "REGNO", "(", "y", ")", ")", "==", "1", ")", "set_once", "=", "1", ";", "if", "(", "insn", "==", "0", ")", "{", "if", "(", "set_once", ")", "insn", "=", "get_last_insn_anywhere", "(", ")", ";", "else", "return", "0", ";", "}", "while", "(", "(", "insn", "=", "PREV_INSN", "(", "insn", ")", ")", ")", "{", "switch", "(", "GET_CODE", "(", "insn", ")", ")", "{", "case", "JUMP_INSN", ":", "case", "NOTE", ":", "break", ";", "case", "CODE_LABEL", ":", "case", "CALL_INSN", ":", "default", ":", "if", "(", "!", "set_once", ")", "return", "0", ";", "break", ";", "case", "INSN", ":", "{", "rtx", "pat", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "pat", ")", "!=", "SET", ")", "return", "0", ";", "if", "(", "rtx_equal_p", "(", "x", ",", "SET_DEST", "(", "pat", ")", ")", ")", "return", "set_extends", "(", "insn", ")", ";", "if", "(", "y", "&&", "rtx_equal_p", "(", "y", ",", "SET_DEST", "(", "pat", ")", ")", ")", "return", "set_extends", "(", "insn", ")", ";", "if", "(", "reg_overlap_mentioned_p", "(", "SET_DEST", "(", "pat", ")", ",", "y", ")", ")", "return", "0", ";", "}", "}", "}", "return", "0", ";", "}", ""], "natrual_language": ["Return", "0", "if", "the", "high", "32", "bits", "of", "X", "(", "the", "low", "word", "of", "X", ",", "if", "DImode", ")", "are", "unknown", ".", "Return", "1", "if", "the", "high", "bits", "are", "zero", ",", "-1", "if", "the", "register", "is", "sign", "extended", "."], "TS_V_token": ["sparc", "0", "1", "1", "0", "0", "0", "0", "0", "0"], "File": "sparc", "Func": "sparc_check_64", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3663, "Length": 226, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "llvm", "::", "emitSPUpdate", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "DebugLoc", "dl", ",", "const", "TargetInstrInfo", "&", "TII", ",", "unsigned", "ScratchReg", ",", "int64_t", "NumBytes", ",", "MachineInstr", "::", "MIFlag", "MIFlags", ")", "{", "emitRegUpdate", "(", "MBB", ",", "MI", ",", "dl", ",", "TII", ",", "AArch64", "::", "XSP", ",", "AArch64", "::", "XSP", ",", "AArch64", "::", "X16", ",", "NumBytes", ",", "MIFlags", ")", ";", "}", ""], "natrual_language": ["Emit", "a", "series", "of", "instructions", "to", "increment", "/", "decrement", "the", "stack", "pointer", "by", "a", "constant", "value", "."], "TS_V_token": ["AArch64", "AArch64::XSP", "AArch64::XSP", "AArch64::X16"], "File": "AArch64InstrInfo101", "Func": "emitSPUpdate", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3664, "Length": 62, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SystemZTargetLowering", "::", "computeKnownBitsForTargetNode", "(", "const", "SDValue", "Op", ",", "KnownBits", "&", "Known", ",", "const", "APInt", "&", "DemandedElts", ",", "const", "SelectionDAG", "&", "DAG", ",", "unsigned", "Depth", ")", "const", "{", "unsigned", "BitWidth", "=", "Known", ".", "getBitWidth", "(", ")", ";", "Known", ".", "resetAll", "(", ")", ";", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "case", "SystemZISD", "::", "SELECT_CCMASK", ":", "{", "KnownBits", "TrueKnown", "(", "BitWidth", ")", ",", "FalseKnown", "(", "BitWidth", ")", ";", "DAG", ".", "computeKnownBits", "(", "Op", ".", "getOperand", "(", "0", ")", ",", "TrueKnown", ",", "Depth", "+", "1", ")", ";", "DAG", ".", "computeKnownBits", "(", "Op", ".", "getOperand", "(", "1", ")", ",", "FalseKnown", ",", "Depth", "+", "1", ")", ";", "Known", ".", "Zero", "=", "TrueKnown", ".", "Zero", "&", "FalseKnown", ".", "Zero", ";", "Known", ".", "One", "=", "TrueKnown", ".", "One", "&", "FalseKnown", ".", "One", ";", "break", ";", "}", "default", ":", "break", ";", "}", "}", ""], "natrual_language": ["Determine", "which", "of", "the", "bits", "specified", "in", "Mask", "are", "known", "to", "be", "either", "zero", "or", "one", "and", "return", "them", "in", "the", "KnownZero/KnownOne", "bitsets", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZISD::SELECT_CCMASK", "0", "1", "1", "1"], "File": "SystemZISelLowering121", "Func": "computeKnownBitsForTargetNode", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3665, "Length": 138, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isTarget64BitILP32", "(", ")", "const", "{", "return", "Is64Bit", "&&", "(", "TargetTriple", ".", "isX32", "(", ")", "||", "TargetTriple", ".", "isOSNaCl", "(", ")", ")", ";", "}", ""], "natrual_language": ["Is", "this", "x86_64", "with", "the", "ILP32", "programming", "model", "(", "x32", "ABI", ")", "?"], "TS_V_token": ["X86"], "File": "X86Subtarget (2)2", "Func": "isTarget64BitILP32", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3666, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86InstrInfo", "::", "isStoreToStackSlot", "(", "const", "MachineInstr", "*", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "X86", "::", "MOV8mr", ":", "case", "X86", "::", "MOV16mr", ":", "case", "X86", "::", "MOV16_mr", ":", "case", "X86", "::", "MOV32mr", ":", "case", "X86", "::", "MOV32_mr", ":", "case", "X86", "::", "MOV64mr", ":", "case", "X86", "::", "ST_FpP64m", ":", "case", "X86", "::", "MOVSSmr", ":", "case", "X86", "::", "MOVSDmr", ":", "case", "X86", "::", "MOVAPSmr", ":", "case", "X86", "::", "MOVAPDmr", ":", "case", "X86", "::", "MOVDQAmr", ":", "case", "X86", "::", "MMX_MOVD64mr", ":", "case", "X86", "::", "MMX_MOVQ64mr", ":", "case", "X86", "::", "MMX_MOVNTQmr", ":", "if", "(", "MI", "->", "getOperand", "(", "0", ")", ".", "isFI", "(", ")", "&&", "MI", "->", "getOperand", "(", "1", ")", ".", "isImm", "(", ")", "&&", "MI", "->", "getOperand", "(", "2", ")", ".", "isReg", "(", ")", "&&", "MI", "->", "getOperand", "(", "3", ")", ".", "isImm", "(", ")", "&&", "MI", "->", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", "==", "1", "&&", "MI", "->", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", "==", "0", "&&", "MI", "->", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", "==", "0", ")", "{", "FrameIndex", "=", "MI", "->", "getOperand", "(", "0", ")", ".", "getIndex", "(", ")", ";", "return", "MI", "->", "getOperand", "(", "4", ")", ".", "getReg", "(", ")", ";", "}", "break", ";", "}", "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": ["X86", "X86", "X86::MOV8mr", "X86::MOV16mr", "X86::MOV16_mr", "X86::MOV32mr", "X86::MOV32_mr", "X86::MOV64mr", "X86::ST_FpP64m", "X86::MOVSSmr", "X86::MOVSDmr", "X86::MOVAPSmr", "X86::MOVAPDmr", "X86::MOVDQAmr", "X86::MMX_MOVD64mr", "X86::MMX_MOVQ64mr", "X86::MMX_MOVNTQmr", "0", "1", "2", "3", "1", "1", "2", "0", "3", "0", "0", "4", "0"], "File": "X86InstrInfo101", "Func": "isStoreToStackSlot", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3667, "Length": 223, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isPPC64", "(", ")", "const", "{", "return", "IsPPC64", ";", "}", ""], "natrual_language": ["Tests", "whether", "the", "target", "is", "64-bit", "PowerPC", "(", "little", "and", "big", "endian", ")", "."], "TS_V_token": ["PowerPC", "PPC", "PPC"], "File": "PPCAsmParser (2)", "Func": "isPPC64", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3668, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "ix86_delegitimize_address", "(", "rtx", "orig_x", ")", "{", "rtx", "x", "=", "orig_x", ",", "y", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "MEM", ")", "x", "=", "XEXP", "(", "x", ",", "0", ")", ";", "if", "(", "TARGET_64BIT", ")", "{", "if", "(", "GET_CODE", "(", "x", ")", "!=", "CONST", "||", "GET_CODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", "!=", "UNSPEC", "||", "XINT", "(", "XEXP", "(", "x", ",", "0", ")", ",", "1", ")", "!=", "UNSPEC_GOTPCREL", "||", "GET_CODE", "(", "orig_x", ")", "!=", "MEM", ")", "return", "orig_x", ";", "return", "XVECEXP", "(", "XEXP", "(", "x", ",", "0", ")", ",", "0", ",", "0", ")", ";", "}", "if", "(", "GET_CODE", "(", "x", ")", "!=", "PLUS", "||", "GET_CODE", "(", "XEXP", "(", "x", ",", "1", ")", ")", "!=", "CONST", ")", "return", "orig_x", ";", "if", "(", "GET_CODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", "==", "REG", "&&", "REGNO", "(", "XEXP", "(", "x", ",", "0", ")", ")", "==", "PIC_OFFSET_TABLE_REGNUM", ")", "y", "=", "NULL", ";", "else", "if", "(", "GET_CODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", "==", "PLUS", ")", "{", "y", "=", "XEXP", "(", "x", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "XEXP", "(", "y", ",", "0", ")", ")", "==", "REG", "&&", "REGNO", "(", "XEXP", "(", "y", ",", "0", ")", ")", "==", "PIC_OFFSET_TABLE_REGNUM", ")", "y", "=", "XEXP", "(", "y", ",", "1", ")", ";", "else", "if", "(", "GET_CODE", "(", "XEXP", "(", "y", ",", "1", ")", ")", "==", "REG", "&&", "REGNO", "(", "XEXP", "(", "y", ",", "1", ")", ")", "==", "PIC_OFFSET_TABLE_REGNUM", ")", "y", "=", "XEXP", "(", "y", ",", "0", ")", ";", "else", "return", "orig_x", ";", "if", "(", "GET_CODE", "(", "y", ")", "!=", "REG", "&&", "GET_CODE", "(", "y", ")", "!=", "MULT", "&&", "GET_CODE", "(", "y", ")", "!=", "ASHIFT", ")", "return", "orig_x", ";", "}", "else", "return", "orig_x", ";", "x", "=", "XEXP", "(", "XEXP", "(", "x", ",", "1", ")", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "UNSPEC", "&&", "(", "(", "XINT", "(", "x", ",", "1", ")", "==", "UNSPEC_GOT", "&&", "GET_CODE", "(", "orig_x", ")", "==", "MEM", ")", "||", "(", "XINT", "(", "x", ",", "1", ")", "==", "UNSPEC_GOTOFF", "&&", "GET_CODE", "(", "orig_x", ")", "!=", "MEM", ")", ")", ")", "{", "if", "(", "y", ")", "return", "gen_rtx_PLUS", "(", "Pmode", ",", "y", ",", "XVECEXP", "(", "x", ",", "0", ",", "0", ")", ")", ";", "return", "XVECEXP", "(", "x", ",", "0", ",", "0", ")", ";", "}", "if", "(", "GET_CODE", "(", "x", ")", "==", "PLUS", "&&", "GET_CODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", "==", "UNSPEC", "&&", "GET_CODE", "(", "XEXP", "(", "x", ",", "1", ")", ")", "==", "CONST_INT", "&&", "(", "(", "XINT", "(", "XEXP", "(", "x", ",", "0", ")", ",", "1", ")", "==", "UNSPEC_GOT", "&&", "GET_CODE", "(", "orig_x", ")", "==", "MEM", ")", "||", "(", "XINT", "(", "XEXP", "(", "x", ",", "0", ")", ",", "1", ")", "==", "UNSPEC_GOTOFF", "&&", "GET_CODE", "(", "orig_x", ")", "!=", "MEM", ")", ")", ")", "{", "x", "=", "gen_rtx_PLUS", "(", "VOIDmode", ",", "XVECEXP", "(", "XEXP", "(", "x", ",", "0", ")", ",", "0", ",", "0", ")", ",", "XEXP", "(", "x", ",", "1", ")", ")", ";", "if", "(", "y", ")", "return", "gen_rtx_PLUS", "(", "Pmode", ",", "y", ",", "x", ")", ";", "return", "x", ";", "}", "return", "orig_x", ";", "}", ""], "natrual_language": ["In", "the", "name", "of", "slightly", "smaller", "debug", "output", ",", "and", "to", "cater", "to", "general", "assembler", "lossage", ",", "recognize", "PIC+GOTOFF", "and", "turn", "it", "back", "into", "a", "direct", "symbol", "reference", ".", "On", "Darwin", ",", "this", "is", "necessary", "to", "avoid", "a", "crash", ",", "because", "Darwin", "has", "a", "different", "PIC", "label", "for", "each", "routine", "but", "the", "DWARF", "debugging", "information", "is", "not", "associated", "with", "any", "particular", "routine", ",", "so", "it", "'s", "necessary", "to", "remove", "references", "to", "the", "PIC", "label", "from", "RTL", "stored", "by", "the", "DWARF", "output", "code", "."], "TS_V_token": ["i386", "0", "0", "0", "1", "0", "0", "0", "1", "0", "0", "0", "0", "0", "0", "1", "1", "1", "0", "1", "0", "1", "1", "0", "0", "0", "0", "0", "1", "0", "1", "0", "1", "0", "0", "0", "1"], "File": "i3863", "Func": "ix86_delegitimize_address", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3669, "Length": 510, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ia64_output_function_prologue", "(", "FILE", "*", "file", ")", "{", "int", "mask", ",", "grsave", ",", "grsave_prev", ";", "if", "(", "current_frame_info", ".", "need_regstk", ")", "fprintf", "(", "file", ",", "\"\\t.regstk %d, %d, %d, %d\\n\"", ",", "current_frame_info", ".", "n_input_regs", ",", "current_frame_info", ".", "n_local_regs", ",", "current_frame_info", ".", "n_output_regs", ",", "current_frame_info", ".", "n_rotate_regs", ")", ";", "if", "(", "ia64_except_unwind_info", "(", "&", "global_options", ")", "!=", "UI_TARGET", ")", "return", ";", "mask", "=", "0", ";", "grsave", "=", "grsave_prev", "=", "0", ";", "if", "(", "current_frame_info", ".", "r", "[", "reg_save_b0", "]", "!=", "0", ")", "{", "mask", "|=", "8", ";", "grsave", "=", "grsave_prev", "=", "current_frame_info", ".", "r", "[", "reg_save_b0", "]", ";", "}", "if", "(", "current_frame_info", ".", "r", "[", "reg_save_ar_pfs", "]", "!=", "0", "&&", "(", "grsave_prev", "==", "0", "||", "current_frame_info", ".", "r", "[", "reg_save_ar_pfs", "]", "==", "grsave_prev", "+", "1", ")", ")", "{", "mask", "|=", "4", ";", "if", "(", "grsave_prev", "==", "0", ")", "grsave", "=", "current_frame_info", ".", "r", "[", "reg_save_ar_pfs", "]", ";", "grsave_prev", "=", "current_frame_info", ".", "r", "[", "reg_save_ar_pfs", "]", ";", "}", "if", "(", "current_frame_info", ".", "r", "[", "reg_fp", "]", "!=", "0", "&&", "(", "grsave_prev", "==", "0", "||", "current_frame_info", ".", "r", "[", "reg_fp", "]", "==", "grsave_prev", "+", "1", ")", ")", "{", "mask", "|=", "2", ";", "if", "(", "grsave_prev", "==", "0", ")", "grsave", "=", "HARD_FRAME_POINTER_REGNUM", ";", "grsave_prev", "=", "current_frame_info", ".", "r", "[", "reg_fp", "]", ";", "}", "if", "(", "current_frame_info", ".", "r", "[", "reg_save_pr", "]", "!=", "0", "&&", "(", "grsave_prev", "==", "0", "||", "current_frame_info", ".", "r", "[", "reg_save_pr", "]", "==", "grsave_prev", "+", "1", ")", ")", "{", "mask", "|=", "1", ";", "if", "(", "grsave_prev", "==", "0", ")", "grsave", "=", "current_frame_info", ".", "r", "[", "reg_save_pr", "]", ";", "}", "if", "(", "mask", "&&", "TARGET_GNU_AS", ")", "fprintf", "(", "file", ",", "\"\\t.prologue %d, %d\\n\"", ",", "mask", ",", "ia64_dbx_register_number", "(", "grsave", ")", ")", ";", "else", "fputs", "(", "\"\\t.prologue\\n\"", ",", "file", ")", ";", "if", "(", "current_frame_info", ".", "spill_cfa_off", "!=", "-", "16", ")", "fprintf", "(", "file", ",", "\"\\t.spill %ld\\n\"", ",", "(", "long", ")", "(", "current_frame_info", ".", "spill_cfa_off", "+", "current_frame_info", ".", "spill_size", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "the", "function", "prologue", "."], "TS_V_token": ["ia64", "\"\\t.regstk %d, %d, %d, %d\\n\"", "0", "0", "0", "8", "0", "0", "1", "4", "0", "0", "0", "1", "2", "0", "0", "0", "1", "1", "0", "\"\\t.prologue %d, %d\\n\"", "\"\\t.prologue\\n\"", "16", "\"\\t.spill %ld\\n\""], "File": "ia64", "Func": "ia64_output_function_prologue", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3670, "Length": 313, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "AArch64RegisterInfo", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", "MF", ",", "CallingConv", "::", "ID", "CC", ")", "const", "{", "bool", "SCS", "=", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "Attribute", "::", "ShadowCallStack", ")", ";", "if", "(", "CC", "==", "CallingConv", "::", "GHC", ")", "return", "SCS", "?", "CSR_AArch64_NoRegs_SCS_RegMask", ":", "CSR_AArch64_NoRegs_RegMask", ";", "if", "(", "CC", "==", "CallingConv", "::", "AnyReg", ")", "return", "SCS", "?", "CSR_AArch64_AllRegs_SCS_RegMask", ":", "CSR_AArch64_AllRegs_RegMask", ";", "if", "(", "MF", ".", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ".", "isTargetDarwin", "(", ")", ")", "{", "if", "(", "SCS", ")", "report_fatal_error", "(", "\"ShadowCallStack attribute not supported on Darwin.\"", ")", ";", "return", "getDarwinCallPreservedMask", "(", "MF", ",", "CC", ")", ";", "}", "if", "(", "CC", "==", "CallingConv", "::", "AArch64_VectorCall", ")", "return", "SCS", "?", "CSR_AArch64_AAVPCS_SCS_RegMask", ":", "CSR_AArch64_AAVPCS_RegMask", ";", "if", "(", "CC", "==", "CallingConv", "::", "AArch64_SVE_VectorCall", ")", "return", "SCS", "?", "CSR_AArch64_SVE_AAPCS_SCS_RegMask", ":", "CSR_AArch64_SVE_AAPCS_RegMask", ";", "if", "(", "CC", "==", "CallingConv", "::", "CFGuard_Check", ")", "return", "CSR_Win_AArch64_CFGuard_Check_RegMask", ";", "if", "(", "MF", ".", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ".", "getTargetLowering", "(", ")", "->", "supportSwiftError", "(", ")", "&&", "MF", ".", "getFunction", "(", ")", ".", "getAttributes", "(", ")", ".", "hasAttrSomewhere", "(", "Attribute", "::", "SwiftError", ")", ")", "return", "SCS", "?", "CSR_AArch64_AAPCS_SwiftError_SCS_RegMask", ":", "CSR_AArch64_AAPCS_SwiftError_RegMask", ";", "if", "(", "CC", "==", "CallingConv", "::", "PreserveMost", ")", "return", "SCS", "?", "CSR_AArch64_RT_MostRegs_SCS_RegMask", ":", "CSR_AArch64_RT_MostRegs_RegMask", ";", "else", "return", "SCS", "?", "CSR_AArch64_AAPCS_SCS_RegMask", ":", "CSR_AArch64_AAPCS_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "\"ShadowCallStack attribute not supported on Darwin.\"", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64RegisterInfo21", "Func": "getCallPreservedMask", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3671, "Length": 207, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "altivec_expand_vec_init_builtin", "(", "tree", "type", ",", "tree", "exp", ",", "rtx", "target", ")", "{", "machine_mode", "tmode", "=", "TYPE_MODE", "(", "type", ")", ";", "machine_mode", "inner_mode", "=", "GET_MODE_INNER", "(", "tmode", ")", ";", "int", "i", ",", "n_elt", "=", "GET_MODE_NUNITS", "(", "tmode", ")", ";", "gcc_assert", "(", "VECTOR_MODE_P", "(", "tmode", ")", ")", ";", "gcc_assert", "(", "n_elt", "==", "call_expr_nargs", "(", "exp", ")", ")", ";", "if", "(", "!", "target", "||", "!", "register_operand", "(", "target", ",", "tmode", ")", ")", "target", "=", "gen_reg_rtx", "(", "tmode", ")", ";", "if", "(", "n_elt", "==", "1", "&&", "GET_MODE_SIZE", "(", "tmode", ")", "==", "GET_MODE_SIZE", "(", "inner_mode", ")", ")", "{", "rtx", "x", "=", "expand_normal", "(", "CALL_EXPR_ARG", "(", "exp", ",", "0", ")", ")", ";", "emit_move_insn", "(", "target", ",", "gen_lowpart", "(", "tmode", ",", "x", ")", ")", ";", "}", "else", "{", "rtvec", "v", "=", "rtvec_alloc", "(", "n_elt", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "n_elt", ";", "++", "i", ")", "{", "rtx", "x", "=", "expand_normal", "(", "CALL_EXPR_ARG", "(", "exp", ",", "i", ")", ")", ";", "RTVEC_ELT", "(", "v", ",", "i", ")", "=", "gen_lowpart", "(", "inner_mode", ",", "x", ")", ";", "}", "rs6000_expand_vector_init", "(", "target", ",", "gen_rtx_PARALLEL", "(", "tmode", ",", "v", ")", ")", ";", "}", "return", "target", ";", "}", ""], "natrual_language": ["Expand", "vec_init", "builtin", "."], "TS_V_token": ["powerpcspe", "1", "0", "0"], "File": "powerpcspe", "Func": "altivec_expand_vec_init_builtin", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3672, "Length": 190, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "X86Operand", "*", "CreateMem", "(", "unsigned", "SegReg", ",", "const", "MCExpr", "*", "Disp", ",", "unsigned", "BaseReg", ",", "unsigned", "IndexReg", ",", "unsigned", "Scale", ",", "SMLoc", "StartLoc", ",", "SMLoc", "EndLoc", ",", "unsigned", "Size", "=", "0", ",", "bool", "NeedSizeDir", "=", "false", ")", "{", "assert", "(", "(", "SegReg", "||", "BaseReg", "||", "IndexReg", ")", "&&", "\"Invalid memory operand!\"", ")", ";", "assert", "(", "(", "(", "Scale", "==", "1", "||", "Scale", "==", "2", "||", "Scale", "==", "4", "||", "Scale", "==", "8", ")", ")", "&&", "\"Invalid scale!\"", ")", ";", "X86Operand", "*", "Res", "=", "new", "X86Operand", "(", "Memory", ",", "StartLoc", ",", "EndLoc", ")", ";", "Res", "->", "Mem", ".", "SegReg", "=", "SegReg", ";", "Res", "->", "Mem", ".", "Disp", "=", "Disp", ";", "Res", "->", "Mem", ".", "BaseReg", "=", "BaseReg", ";", "Res", "->", "Mem", ".", "IndexReg", "=", "IndexReg", ";", "Res", "->", "Mem", ".", "Scale", "=", "Scale", ";", "Res", "->", "Mem", ".", "Size", "=", "Size", ";", "Res", "->", "Mem", ".", "NeedSizeDir", "=", "NeedSizeDir", ";", "return", "Res", ";", "}", ""], "natrual_language": ["Create", "a", "generalized", "memory", "operand", "."], "TS_V_token": ["X86", "X86", "0", "\"Invalid memory operand!\"", "1", "2", "4", "8", "\"Invalid scale!\"", "X86", "X86"], "File": "X86AsmParser10", "Func": "CreateMem", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3673, "Length": 151, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "ix86_legitimate_combined_insn", "(", "rtx_insn", "*", "insn", ")", "{", "if", "(", "(", "INSN_CODE", "(", "insn", ")", "=", "recog", "(", "PATTERN", "(", "insn", ")", ",", "insn", ",", "0", ")", ")", ">=", "0", ")", "{", "int", "i", ";", "extract_insn", "(", "insn", ")", ";", "preprocess_constraints", "(", "insn", ")", ";", "int", "n_operands", "=", "recog_data", ".", "n_operands", ";", "int", "n_alternatives", "=", "recog_data", ".", "n_alternatives", ";", "for", "(", "i", "=", "0", ";", "i", "<", "n_operands", ";", "i", "++", ")", "{", "rtx", "op", "=", "recog_data", ".", "operand", "[", "i", "]", ";", "machine_mode", "mode", "=", "GET_MODE", "(", "op", ")", ";", "const", "operand_alternative", "*", "op_alt", ";", "int", "offset", "=", "0", ";", "bool", "win", ";", "int", "j", ";", "if", "(", "!", "TARGET_AVX", "&&", "VECTOR_MODE_P", "(", "mode", ")", "&&", "misaligned_operand", "(", "op", ",", "mode", ")", ")", "{", "unsigned", "int", "min_align", "=", "get_attr_ssememalign", "(", "insn", ")", ";", "if", "(", "min_align", "==", "0", "||", "MEM_ALIGN", "(", "op", ")", "<", "min_align", ")", "return", "false", ";", "}", "if", "(", "UNARY_P", "(", "op", ")", ")", "op", "=", "XEXP", "(", "op", ",", "0", ")", ";", "if", "(", "SUBREG_P", "(", "op", ")", ")", "{", "if", "(", "REG_P", "(", "SUBREG_REG", "(", "op", ")", ")", "&&", "REGNO", "(", "SUBREG_REG", "(", "op", ")", ")", "<", "FIRST_PSEUDO_REGISTER", ")", "offset", "=", "subreg_regno_offset", "(", "REGNO", "(", "SUBREG_REG", "(", "op", ")", ")", ",", "GET_MODE", "(", "SUBREG_REG", "(", "op", ")", ")", ",", "SUBREG_BYTE", "(", "op", ")", ",", "GET_MODE", "(", "op", ")", ")", ";", "op", "=", "SUBREG_REG", "(", "op", ")", ";", "}", "if", "(", "!", "(", "REG_P", "(", "op", ")", "&&", "HARD_REGISTER_P", "(", "op", ")", ")", ")", "continue", ";", "op_alt", "=", "recog_op_alt", ";", "win", "=", "!", "n_alternatives", ";", "alternative_mask", "preferred", "=", "get_preferred_alternatives", "(", "insn", ")", ";", "for", "(", "j", "=", "0", ";", "j", "<", "n_alternatives", ";", "j", "++", ",", "op_alt", "+=", "n_operands", ")", "{", "if", "(", "!", "TEST_BIT", "(", "preferred", ",", "j", ")", ")", "continue", ";", "if", "(", "op_alt", "[", "i", "]", ".", "anything_ok", "||", "(", "op_alt", "[", "i", "]", ".", "matches", "!=", "-", "1", "&&", "operands_match_p", "(", "recog_data", ".", "operand", "[", "i", "]", ",", "recog_data", ".", "operand", "[", "op_alt", "[", "i", "]", ".", "matches", "]", ")", ")", "||", "reg_fits_class_p", "(", "op", ",", "op_alt", "[", "i", "]", ".", "cl", ",", "offset", ",", "mode", ")", ")", "{", "win", "=", "true", ";", "break", ";", "}", "}", "if", "(", "!", "win", ")", "return", "false", ";", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["Implement", "the", "TARGET_LEGITIMATE_COMBINED_INSN", "hook", "."], "TS_V_token": ["i386", "0", "0", "0", "0", "0", "0", "0", "1"], "File": "i3865", "Func": "ix86_legitimate_combined_insn", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3674, "Length": 381, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Value", "*", "AArch64TargetLowering", "::", "getSafeStackPointerLocation", "(", "IRBuilderBase", "&", "IRB", ")", "const", "{", "if", "(", "Subtarget", "->", "isTargetAndroid", "(", ")", ")", "return", "UseTlsOffset", "(", "IRB", ",", "0x48", ")", ";", "if", "(", "Subtarget", "->", "isTargetFuchsia", "(", ")", ")", "return", "UseTlsOffset", "(", "IRB", ",", "-", "0x8", ")", ";", "return", "TargetLowering", "::", "getSafeStackPointerLocation", "(", "IRB", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "stores", "SafeStack", "pointer", "at", "a", "fixed", "offset", "in", "some", "non-standard", "address", "space", ",", "and", "populates", "the", "address", "space", "and", "offset", "as", "appropriate", "."], "TS_V_token": ["AArch64", "AArch64", "0x48", "0x8"], "File": "AArch64ISelLowering (2)2", "Func": "getSafeStackPointerLocation", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3675, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "unsigned", "*", "MipsRegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "static", "const", "unsigned", "SingleFloatOnlyCalleeSavedRegs", "[", "]", "=", "{", "Mips", "::", "S0", ",", "Mips", "::", "S1", ",", "Mips", "::", "S2", ",", "Mips", "::", "S3", ",", "Mips", "::", "S4", ",", "Mips", "::", "S5", ",", "Mips", "::", "S6", ",", "Mips", "::", "S7", ",", "Mips", "::", "F20", ",", "Mips", "::", "F21", ",", "Mips", "::", "F22", ",", "Mips", "::", "F23", ",", "Mips", "::", "F24", ",", "Mips", "::", "F25", ",", "Mips", "::", "F26", ",", "Mips", "::", "F27", ",", "Mips", "::", "F28", ",", "Mips", "::", "F29", ",", "Mips", "::", "F30", ",", "0", "}", ";", "static", "const", "unsigned", "BitMode32CalleeSavedRegs", "[", "]", "=", "{", "Mips", "::", "S0", ",", "Mips", "::", "S1", ",", "Mips", "::", "S2", ",", "Mips", "::", "S3", ",", "Mips", "::", "S4", ",", "Mips", "::", "S5", ",", "Mips", "::", "S6", ",", "Mips", "::", "S7", ",", "Mips", "::", "F20", ",", "Mips", "::", "F22", ",", "Mips", "::", "F24", ",", "Mips", "::", "F26", ",", "Mips", "::", "F28", ",", "Mips", "::", "F30", ",", "Mips", "::", "D10", ",", "Mips", "::", "D11", ",", "Mips", "::", "D12", ",", "Mips", "::", "D13", ",", "Mips", "::", "D14", ",", "Mips", "::", "D15", ",", "0", "}", ";", "if", "(", "Subtarget", ".", "isSingleFloat", "(", ")", ")", "return", "SingleFloatOnlyCalleeSavedRegs", ";", "else", "return", "BitMode32CalleeSavedRegs", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["Mips", "Mips", "Mips::S0", "Mips::S1", "Mips::S2", "Mips::S3", "Mips::S4", "Mips::S5", "Mips::S6", "Mips::S7", "Mips::F20", "Mips::F21", "Mips::F22", "Mips::F23", "Mips::F24", "Mips::F25", "Mips::F26", "Mips::F27", "Mips::F28", "Mips::F29", "Mips::F30", "0", "Mips::S0", "Mips::S1", "Mips::S2", "Mips::S3", "Mips::S4", "Mips::S5", "Mips::S6", "Mips::S7", "Mips::F20", "Mips::F22", "Mips::F24", "Mips::F26", "Mips::F28", "Mips::F30", "Mips::D10", "Mips::D11", "Mips::D12", "Mips::D13", "Mips::D14", "Mips::D15", "0"], "File": "MipsRegisterInfo18", "Func": "getCalleeSavedRegs", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3676, "Length": 208, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCInstrInfo", "::", "insertNoop", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ")", "const", "{", "unsigned", "Directive", "=", "TM", ".", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ".", "getDarwinDirective", "(", ")", ";", "unsigned", "Opcode", ";", "switch", "(", "Directive", ")", "{", "default", ":", "Opcode", "=", "PPC", "::", "NOP", ";", "break", ";", "case", "PPC", "::", "DIR_PWR6", ":", "Opcode", "=", "PPC", "::", "NOP_GT_PWR6", ";", "break", ";", "case", "PPC", "::", "DIR_PWR7", ":", "Opcode", "=", "PPC", "::", "NOP_GT_PWR7", ";", "break", ";", "}", "DebugLoc", "DL", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "Opcode", ")", ")", ";", "}", ""], "natrual_language": ["Insert", "a", "noop", "into", "the", "instruction", "stream", "at", "the", "specified", "point", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC::NOP", "PPC::DIR_PWR6", "PPC::NOP_GT_PWR6", "PPC::DIR_PWR7", "PPC::NOP_GT_PWR7"], "File": "PPCInstrInfo (2)", "Func": "insertNoop", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3677, "Length": 95, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ix86_sched_reorder", "(", "FILE", "*", "dump", ",", "int", "sched_verbose", ",", "rtx_insn", "*", "*", "ready", ",", "int", "*", "pn_ready", ",", "int", "clock_var", ")", "{", "int", "issue_rate", "=", "-", "1", ";", "int", "n_ready", "=", "*", "pn_ready", ";", "int", "i", ";", "rtx_insn", "*", "insn", ";", "int", "index", "=", "-", "1", ";", "issue_rate", "=", "ix86_issue_rate", "(", ")", ";", "if", "(", "!", "TARGET_BONNELL", "&&", "!", "TARGET_SILVERMONT", "&&", "!", "TARGET_INTEL", ")", "return", "issue_rate", ";", "if", "(", "n_ready", "<=", "1", ")", "return", "issue_rate", ";", "if", "(", "!", "reload_completed", ")", "return", "issue_rate", ";", "if", "(", "(", "index", "=", "do_reorder_for_imul", "(", "ready", ",", "n_ready", ")", ")", ">=", "0", ")", "{", "if", "(", "sched_verbose", ">", "1", ")", "fprintf", "(", "dump", ",", "\";;\\tatom sched_reorder: put %d insn on top\\n\"", ",", "INSN_UID", "(", "ready", "[", "index", "]", ")", ")", ";", "insn", "=", "ready", "[", "index", "]", ";", "for", "(", "i", "=", "index", ";", "i", "<", "n_ready", "-", "1", ";", "i", "++", ")", "ready", "[", "i", "]", "=", "ready", "[", "i", "+", "1", "]", ";", "ready", "[", "n_ready", "-", "1", "]", "=", "insn", ";", "return", "issue_rate", ";", "}", "if", "(", "clock_var", "!=", "0", "&&", "!", "sel_sched_p", "(", ")", "&&", "swap_top_of_ready_list", "(", "ready", ",", "n_ready", ")", ")", "{", "if", "(", "sched_verbose", ">", "1", ")", "fprintf", "(", "dump", ",", "\";;\\tslm sched_reorder: swap %d and %d insns\\n\"", ",", "INSN_UID", "(", "ready", "[", "n_ready", "-", "1", "]", ")", ",", "INSN_UID", "(", "ready", "[", "n_ready", "-", "2", "]", ")", ")", ";", "insn", "=", "ready", "[", "n_ready", "-", "1", "]", ";", "ready", "[", "n_ready", "-", "1", "]", "=", "ready", "[", "n_ready", "-", "2", "]", ";", "ready", "[", "n_ready", "-", "2", "]", "=", "insn", ";", "}", "return", "issue_rate", ";", "}", ""], "natrual_language": ["Perform", "possible", "reodering", "of", "ready", "list", "for", "Atom/Silvermont", "only", ".", "Return", "issue", "rate", "."], "TS_V_token": ["i386", "1", "1", "1", "0", "1", "\";;\\tatom sched_reorder: put %d insn on top\\n\"", "1", "1", "1", "0", "1", "\";;\\tslm sched_reorder: swap %d and %d insns\\n\"", "1", "2", "1", "1", "2", "2"], "File": "i3864", "Func": "ix86_sched_reorder", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3678, "Length": 259, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Thumb1RegisterInfo", "::", "saveScavengerRegister", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "MachineBasicBlock", "::", "iterator", "&", "UseMI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "unsigned", "Reg", ")", "const", "{", "DebugLoc", "DL", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "TII", ".", "get", "(", "ARM", "::", "tMOVtgpr2gpr", ")", ")", ".", "addReg", "(", "ARM", "::", "R12", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Kill", ")", ";", "bool", "done", "=", "false", ";", "for", "(", "MachineBasicBlock", "::", "iterator", "II", "=", "I", ";", "!", "done", "&&", "II", "!=", "UseMI", ";", "++", "II", ")", "{", "if", "(", "II", "->", "isDebugValue", "(", ")", ")", "continue", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "II", "->", "getNumOperands", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "const", "MachineOperand", "&", "MO", "=", "II", "->", "getOperand", "(", "i", ")", ";", "if", "(", "!", "MO", ".", "isReg", "(", ")", "||", "MO", ".", "isUndef", "(", ")", "||", "!", "MO", ".", "getReg", "(", ")", "||", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "MO", ".", "getReg", "(", ")", ")", ")", "continue", ";", "if", "(", "MO", ".", "getReg", "(", ")", "==", "ARM", "::", "R12", ")", "{", "UseMI", "=", "II", ";", "done", "=", "true", ";", "break", ";", "}", "}", "}", "BuildMI", "(", "MBB", ",", "UseMI", ",", "DL", ",", "TII", ".", "get", "(", "ARM", "::", "tMOVgpr2tgpr", ")", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "ARM", "::", "R12", ",", "RegState", "::", "Kill", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Spill", "the", "register", "so", "it", "can", "be", "used", "by", "the", "register", "scavenger", "."], "TS_V_token": ["ARM", "ARM::tMOVtgpr2gpr", "ARM::R12", "0", "ARM::R12", "ARM::tMOVgpr2tgpr", "ARM::R12"], "File": "Thumb1RegisterInfo12", "Func": "saveScavengerRegister", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3679, "Length": 244, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MVT", "ARM64TargetLowering", "::", "getScalarShiftAmountTy", "(", "EVT", "LHSTy", ")", "const", "{", "return", "MVT", "::", "i64", ";", "}", ""], "natrual_language": ["Return", "the", "type", "to", "use", "for", "a", "scalar", "shift", "opcode", ",", "given", "the", "shifted", "amount", "type", "."], "TS_V_token": ["ARM64", "ARM64", "MVT::i64"], "File": "ARM64ISelLowering", "Func": "getScalarShiftAmountTy", "Target": "ARM64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3680, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "empty_delay_slot", "(", "rtx_insn", "*", "insn", ")", "{", "rtx", "seq", ";", "if", "(", "PREV_INSN", "(", "insn", ")", "==", "NULL", ")", "return", "1", ";", "seq", "=", "NEXT_INSN", "(", "PREV_INSN", "(", "insn", ")", ")", ";", "if", "(", "GET_CODE", "(", "PATTERN", "(", "seq", ")", ")", "==", "SEQUENCE", ")", "return", "0", ";", "return", "1", ";", "}", ""], "natrual_language": ["Return", "non-zero", "if", "a", "branch", "or", "call", "instruction", "will", "be", "emitting", "a", "nop", "into", "its", "delay", "slot", "."], "TS_V_token": ["sparc", "1", "0", "1"], "File": "sparc", "Func": "empty_delay_slot", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3681, "Length": 52, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "pa_asm_output_aligned_local", "(", "FILE", ",", "NAME", ",", "SIZE", ",", "ALIGN", ")", "{", "rtx", "addr", "=", "ADDR", ";", "\\", "switch", "(", "GET_CODE", "(", "addr", ")", ")", "\\", "{", "\\", "case", "REG", ":", "\\", "fprintf", "(", "FILE", ",", "\"0(%s)\"", ",", "reg_names", "[", "REGNO", "(", "addr", ")", "]", ")", ";", "\\", "break", ";", "\\", "case", "PLUS", ":", "\\", "gcc_assert", "(", "GET_CODE", "(", "XEXP", "(", "addr", ",", "1", ")", ")", "==", "CONST_INT", ")", ";", "\\", "fprintf", "(", "FILE", ",", "\"%d(%s)\"", ",", "(", "int", ")", "INTVAL", "(", "XEXP", "(", "addr", ",", "1", ")", ")", ",", "\\", "reg_names", "[", "REGNO", "(", "XEXP", "(", "addr", ",", "0", ")", ")", "]", ")", ";", "\\", "break", ";", "\\", "case", "LO_SUM", ":", "\\", "if", "(", "!", "symbolic_operand", "(", "XEXP", "(", "addr", ",", "1", ")", ",", "VOIDmode", ")", ")", "\\", "fputs", "(", "\"R'\"", ",", "FILE", ")", ";", "\\", "else", "if", "(", "flag_pic", "==", "0", ")", "\\", "fputs", "(", "\"RR'\"", ",", "FILE", ")", ";", "\\", "else", "\\", "fputs", "(", "\"RT'\"", ",", "FILE", ")", ";", "\\", "pa_output_global_address", "(", "FILE", ",", "XEXP", "(", "addr", ",", "1", ")", ",", "0", ")", ";", "\\", "fputs", "(", "\"(\"", ",", "FILE", ")", ";", "\\", "output_operand", "(", "XEXP", "(", "addr", ",", "0", ")", ",", "0", ")", ";", "\\", "fputs", "(", "\")\"", ",", "FILE", ")", ";", "\\", "break", ";", "\\", "case", "CONST_INT", ":", "\\", "fprintf", "(", "FILE", ",", "HOST_WIDE_INT_PRINT_DEC", "\"(%%r0)\"", ",", "INTVAL", "(", "addr", ")", ")", ";", "\\", "break", ";", "\\", "default", ":", "\\", "output_addr_const", "(", "FILE", ",", "addr", ")", ";", "\\", "}", "}", ""], "natrual_language": ["We", "ca", "n't", "use", ".comm", "for", "local", "common", "storage", "as", "the", "SOM", "linker", "effectively", "treats", "the", "symbol", "as", "universal", "and", "uses", "the", "same", "storage", "for", "local", "symbols", "with", "the", "same", "name", "in", "different", "object", "files", ".", "The", ".block", "directive", "reserves", "an", "uninitialized", "block", "of", "storage", ".", "However", ",", "it", "'s", "not", "common", "storage", ".", "Fortunately", ",", "GCC", "never", "requests", "common", "storage", "with", "the", "same", "name", "in", "any", "given", "translation", "unit", "."], "TS_V_token": ["pa", "\"0(%s)\"", "1", "\"%d(%s)\"", "1", "0", "1", "\"R'\"", "0", "\"RR'\"", "\"RT'\"", "1", "0", "\"(\"", "0", "0", "\")\"", "\"(%%r0)\""], "File": "pa", "Func": "pa_asm_output_aligned_local", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3682, "Length": 243, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "areMemAccessesTriviallyDisjoint", "(", "const", "MachineInstr", "&", "MIa", ",", "const", "MachineInstr", "&", "MIb", ")", "const", "{", "const", "TargetRegisterInfo", "*", "TRI", "=", "&", "getRegisterInfo", "(", ")", ";", "const", "MachineOperand", "*", "BaseOpA", "=", "nullptr", ",", "*", "BaseOpB", "=", "nullptr", ";", "int64_t", "OffsetA", "=", "0", ",", "OffsetB", "=", "0", ";", "unsigned", "WidthA", "=", "0", ",", "WidthB", "=", "0", ";", "bool", "OffsetAIsScalable", "=", "false", ",", "OffsetBIsScalable", "=", "false", ";", "assert", "(", "MIa", ".", "mayLoadOrStore", "(", ")", "&&", "\"MIa must be a load or store.\"", ")", ";", "assert", "(", "MIb", ".", "mayLoadOrStore", "(", ")", "&&", "\"MIb must be a load or store.\"", ")", ";", "if", "(", "MIa", ".", "hasUnmodeledSideEffects", "(", ")", "||", "MIb", ".", "hasUnmodeledSideEffects", "(", ")", "||", "MIa", ".", "hasOrderedMemoryRef", "(", ")", "||", "MIb", ".", "hasOrderedMemoryRef", "(", ")", ")", "return", "false", ";", "if", "(", "getMemOperandWithOffsetWidth", "(", "MIa", ",", "BaseOpA", ",", "OffsetA", ",", "OffsetAIsScalable", ",", "WidthA", ",", "TRI", ")", "&&", "getMemOperandWithOffsetWidth", "(", "MIb", ",", "BaseOpB", ",", "OffsetB", ",", "OffsetBIsScalable", ",", "WidthB", ",", "TRI", ")", ")", "{", "if", "(", "BaseOpA", "->", "isIdenticalTo", "(", "*", "BaseOpB", ")", "&&", "OffsetAIsScalable", "==", "OffsetBIsScalable", ")", "{", "int", "LowOffset", "=", "OffsetA", "<", "OffsetB", "?", "OffsetA", ":", "OffsetB", ";", "int", "HighOffset", "=", "OffsetA", "<", "OffsetB", "?", "OffsetB", ":", "OffsetA", ";", "int", "LowWidth", "=", "(", "LowOffset", "==", "OffsetA", ")", "?", "WidthA", ":", "WidthB", ";", "if", "(", "LowOffset", "+", "LowWidth", "<=", "HighOffset", ")", "return", "true", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["Sometimes", ",", "it", "is", "possible", "for", "the", "target", "to", "tell", ",", "even", "without", "aliasing", "information", ",", "that", "two", "MIs", "access", "different", "memory", "addresses", "."], "TS_V_token": ["AArch64", "AArch64", "0", "0", "0", "0", "\"MIa must be a load or store.\"", "\"MIb must be a load or store.\""], "File": "AArch64InstrInfo105", "Func": "areMemAccessesTriviallyDisjoint", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3683, "Length": 217, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMHazardRecognizer", "::", "EmitInstruction", "(", "SUnit", "*", "SU", ")", "{", "MachineInstr", "*", "MI", "=", "SU", "->", "getInstr", "(", ")", ";", "if", "(", "!", "MI", "->", "isDebugValue", "(", ")", ")", "{", "LastMI", "=", "MI", ";", "FpMLxStalls", "=", "0", ";", "}", "ScoreboardHazardRecognizer", "::", "EmitInstruction", "(", "SU", ")", ";", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["ARM", "ARM", "0"], "File": "ARMHazardRecognizer", "Func": "EmitInstruction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3684, "Length": 47, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64InstPrinter", "::", "printImm", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "raw_ostream", "&", "O", ")", "{", "const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "O", "<<", "\"#\"", "<<", "formatImm", "(", "Op", ".", "getImm", "(", ")", ")", ";", "}", ""], "natrual_language": ["Implement", "target", "specific", "printing", "for", "machine", "operand", "immediate", "value", ",", "so", "that", "we", "can", "have", "more", "meaningful", "mnemonic", "than", "a", "64-bit", "integer", "."], "TS_V_token": ["AArch64", "AArch64", "\"#\""], "File": "AArch64InstPrinter11", "Func": "printImm", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3685, "Length": 49, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "Warning", "(", "SMLoc", "L", ",", "const", "Twine", "&", "Msg", ",", "SMRange", "Range", "=", "None", ")", "{", "return", "getParser", "(", ")", ".", "Warning", "(", "L", ",", "Msg", ",", "Range", ")", ";", "}", ""], "natrual_language": ["Emit", "a", "warning", "at", "the", "location", "L", ",", "with", "the", "message", "Msg", "."], "TS_V_token": ["ARM"], "File": "ARMAsmParser (2)2", "Func": "Warning", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3686, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "XNCMTargetLowering", "::", "getRegForInlineAsmConstraint", "(", "const", "std", "::", "string", "&", "Constraint", ",", "EVT", "VT", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "default", ":", "break", ";", "case", "'r'", ":", "if", "(", "VT", "==", "MVT", "::", "i8", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "XNCM", "::", "GR8RegisterClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "XNCM", "::", "GR16RegisterClass", ")", ";", "}", "}", "return", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "Constraint", ",", "VT", ")", ";", "}", ""], "natrual_language": ["Given", "a", "physical", "register", "constraint", "(", "e.g", "."], "TS_V_token": ["XNCM", "XNCM", "1", "0", "MVT::i8", "0U", "XNCM::GR8RegisterClass", "0U", "XNCM::GR16RegisterClass"], "File": "XNCMISelLowering", "Func": "getRegForInlineAsmConstraint", "Target": "XNCM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3687, "Length": 97, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64MIPeepholeOpt", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "TII", "=", "static_cast", "<", "const", "AArch64InstrInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "MLI", "=", "&", "getAnalysis", "<", "MachineLoopInfo", ">", "(", ")", ";", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "if", "(", "!", "MRI", "->", "isSSA", "(", ")", ")", "return", "false", ";", "bool", "Changed", "=", "false", ";", "SmallSetVector", "<", "MachineInstr", "*", ",", "8", ">", "ToBeRemoved", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "{", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "AArch64", "::", "ANDWrr", ":", "Changed", "=", "visitAND", "<", "uint32_t", ">", "(", "MI", ",", "ToBeRemoved", ")", ";", "break", ";", "case", "AArch64", "::", "ANDXrr", ":", "Changed", "=", "visitAND", "<", "uint64_t", ">", "(", "MI", ",", "ToBeRemoved", ")", ";", "break", ";", "}", "}", "}", "for", "(", "MachineInstr", "*", "MI", ":", "ToBeRemoved", ")", "MI", "->", "eraseFromParent", "(", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "8", "AArch64::ANDWrr", "AArch64::ANDXrr"], "File": "AArch64MIPeepholeOpt2", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3688, "Length": 179, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "tree", "aarch64_lookup_simd_type_in_table", "(", "machine_mode", "mode", ",", "enum", "aarch64_type_qualifiers", "qualifiers", ")", "{", "int", "i", ";", "int", "nelts", "=", "ARRAY_SIZE", "(", "aarch64_simd_types", ")", ";", "int", "q", "=", "qualifiers", "&", "(", "qualifier_poly", "|", "qualifier_unsigned", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "nelts", ";", "i", "++", ")", "{", "if", "(", "aarch64_simd_types", "[", "i", "]", ".", "mode", "==", "mode", "&&", "aarch64_simd_types", "[", "i", "]", ".", "q", "==", "q", ")", "return", "aarch64_simd_types", "[", "i", "]", ".", "itype", ";", "if", "(", "aarch64_simd_tuple_types", "[", "i", "]", "[", "0", "]", "!=", "NULL_TREE", ")", "for", "(", "int", "j", "=", "0", ";", "j", "<", "3", ";", "j", "++", ")", "if", "(", "aarch64_simd_tuple_modes", "[", "i", "]", "[", "j", "]", "==", "mode", "&&", "aarch64_simd_types", "[", "i", "]", ".", "q", "==", "q", ")", "return", "aarch64_simd_tuple_types", "[", "i", "]", "[", "j", "]", ";", "}", "return", "NULL_TREE", ";", "}", ""], "natrual_language": ["Helper", "function", "for", "aarch64_simd_builtin_type", "."], "TS_V_token": ["aarch64", "0", "0", "0", "3"], "File": "aarch64-builtins1", "Func": "aarch64_lookup_simd_type_in_table", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3689, "Length": 137, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZAsmParser", "::", "MatchAndEmitInstruction", "(", "SMLoc", "IDLoc", ",", "unsigned", "&", "Opcode", ",", "SmallVectorImpl", "<", "MCParsedAsmOperand", "*", ">", "&", "Operands", ",", "MCStreamer", "&", "Out", ",", "unsigned", "&", "ErrorInfo", ",", "bool", "MatchingInlineAsm", ")", "{", "MCInst", "Inst", ";", "unsigned", "MatchResult", ";", "MatchResult", "=", "MatchInstructionImpl", "(", "Operands", ",", "Inst", ",", "ErrorInfo", ",", "MatchingInlineAsm", ")", ";", "switch", "(", "MatchResult", ")", "{", "default", ":", "break", ";", "case", "Match_Success", ":", "Inst", ".", "setLoc", "(", "IDLoc", ")", ";", "Out", ".", "EmitInstruction", "(", "Inst", ",", "STI", ")", ";", "return", "false", ";", "case", "Match_MissingFeature", ":", "{", "assert", "(", "ErrorInfo", "&&", "\"Unknown missing feature!\"", ")", ";", "std", "::", "string", "Msg", "=", "\"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_InvalidOperand", ":", "{", "SMLoc", "ErrorLoc", "=", "IDLoc", ";", "if", "(", "ErrorInfo", "!=", "~", "0U", ")", "{", "if", "(", "ErrorInfo", ">=", "Operands", ".", "size", "(", ")", ")", "return", "Error", "(", "IDLoc", ",", "\"too few operands for instruction\"", ")", ";", "ErrorLoc", "=", "(", "(", "SystemZOperand", "*", ")", "Operands", "[", "ErrorInfo", "]", ")", "->", "getStartLoc", "(", ")", ";", "if", "(", "ErrorLoc", "==", "SMLoc", "(", ")", ")", "ErrorLoc", "=", "IDLoc", ";", "}", "return", "Error", "(", "ErrorLoc", ",", "\"invalid operand for instruction\"", ")", ";", "}", "case", "Match_MnemonicFail", ":", "return", "Error", "(", "IDLoc", ",", "\"invalid instruction\"", ")", ";", "}", "llvm_unreachable", "(", "\"Unexpected match type\"", ")", ";", "}", ""], "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": ["SystemZ", "SystemZ", "\"Unknown missing feature!\"", "\"instruction requires:\"", "1", "0", "8", "1", "\" \"", "1", "0U", "\"too few operands for instruction\"", "SystemZ", "\"invalid operand for instruction\"", "\"invalid instruction\"", "\"Unexpected match type\""], "File": "SystemZAsmParser11", "Func": "MatchAndEmitInstruction", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3690, "Length": 254, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "RCPair", "ARMTargetLowering", "::", "getRegForInlineAsmConstraint", "(", "const", "TargetRegisterInfo", "*", "TRI", ",", "StringRef", "Constraint", ",", "MVT", "VT", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'l'", ":", "if", "(", "Subtarget", "->", "isThumb", "(", ")", ")", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "tGPRRegClass", ")", ";", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "GPRRegClass", ")", ";", "case", "'h'", ":", "if", "(", "Subtarget", "->", "isThumb", "(", ")", ")", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "hGPRRegClass", ")", ";", "break", ";", "case", "'r'", ":", "if", "(", "Subtarget", "->", "isThumb1Only", "(", ")", ")", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "tGPRRegClass", ")", ";", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "GPRRegClass", ")", ";", "case", "'w'", ":", "if", "(", "VT", "==", "MVT", "::", "Other", ")", "break", ";", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "SPRRegClass", ")", ";", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "64", ")", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "DPRRegClass", ")", ";", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "128", ")", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "QPRRegClass", ")", ";", "break", ";", "case", "'x'", ":", "if", "(", "VT", "==", "MVT", "::", "Other", ")", "break", ";", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "SPR_8RegClass", ")", ";", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "64", ")", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "DPR_8RegClass", ")", ";", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "128", ")", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "QPR_8RegClass", ")", ";", "break", ";", "case", "'t'", ":", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "SPRRegClass", ")", ";", "break", ";", "}", "}", "if", "(", "StringRef", "(", "\"{cc}\"", ")", ".", "equals_lower", "(", "Constraint", ")", ")", "return", "std", "::", "make_pair", "(", "unsigned", "(", "ARM", "::", "CPSR", ")", ",", "&", "ARM", "::", "CCRRegClass", ")", ";", "return", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "TRI", ",", "Constraint", ",", "VT", ")", ";", "}", ""], "natrual_language": ["Given", "a", "physical", "register", "constraint", "(", "e.g", "."], "TS_V_token": ["ARM", "ARM", "1", "0", "0U", "ARM::tGPRRegClass", "0U", "ARM::GPRRegClass", "0U", "ARM::hGPRRegClass", "0U", "ARM::tGPRRegClass", "0U", "ARM::GPRRegClass", "MVT::Other", "MVT::f32", "0U", "ARM::SPRRegClass", "64", "0U", "ARM::DPRRegClass", "128", "0U", "ARM::QPRRegClass", "MVT::Other", "MVT::f32", "0U", "ARM::SPR_8RegClass", "64", "0U", "ARM::DPR_8RegClass", "128", "0U", "ARM::QPR_8RegClass", "MVT::f32", "0U", "ARM::SPRRegClass", "\"{cc}\"", "ARM::CPSR", "ARM::CCRRegClass"], "File": "ARMISelLowering (2)2", "Func": "getRegForInlineAsmConstraint", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3691, "Length": 348, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "ARMFunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "if", "(", "AFI", "->", "getGlobalBaseReg", "(", ")", "==", "0", ")", "return", "false", ";", "const", "ARMSubtarget", "&", "STI", "=", "static_cast", "<", "const", "ARMSubtarget", "&", ">", "(", "MF", ".", "getSubtarget", "(", ")", ")", ";", "const", "TargetMachine", "&", "TM", "=", "MF", ".", "getTarget", "(", ")", ";", "if", "(", "TM", ".", "getRelocationModel", "(", ")", "!=", "Reloc", "::", "PIC_", ")", "return", "false", ";", "LLVMContext", "*", "Context", "=", "&", "MF", ".", "getFunction", "(", ")", "->", "getContext", "(", ")", ";", "unsigned", "ARMPCLabelIndex", "=", "AFI", "->", "createPICLabelUId", "(", ")", ";", "unsigned", "PCAdj", "=", "STI", ".", "isThumb", "(", ")", "?", "4", ":", "8", ";", "ARMConstantPoolValue", "*", "CPV", "=", "ARMConstantPoolSymbol", "::", "Create", "(", "*", "Context", ",", "\"_GLOBAL_OFFSET_TABLE_\"", ",", "ARMPCLabelIndex", ",", "PCAdj", ")", ";", "unsigned", "Align", "=", "TM", ".", "getDataLayout", "(", ")", "->", "getPrefTypeAlignment", "(", "Type", "::", "getInt32PtrTy", "(", "*", "Context", ")", ")", ";", "unsigned", "Idx", "=", "MF", ".", "getConstantPool", "(", ")", "->", "getConstantPoolIndex", "(", "CPV", ",", "Align", ")", ";", "MachineBasicBlock", "&", "FirstMBB", "=", "MF", ".", "front", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "FirstMBB", ".", "begin", "(", ")", ";", "DebugLoc", "DL", "=", "FirstMBB", ".", "findDebugLoc", "(", "MBBI", ")", ";", "unsigned", "TempReg", "=", "MF", ".", "getRegInfo", "(", ")", ".", "createVirtualRegister", "(", "&", "ARM", "::", "rGPRRegClass", ")", ";", "unsigned", "Opc", "=", "STI", ".", "isThumb2", "(", ")", "?", "ARM", "::", "t2LDRpci", ":", "ARM", "::", "LDRcp", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "STI", ".", "getInstrInfo", "(", ")", ";", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "Opc", ")", ",", "TempReg", ")", ".", "addConstantPoolIndex", "(", "Idx", ")", ";", "if", "(", "Opc", "==", "ARM", "::", "LDRcp", ")", "MIB", ".", "addImm", "(", "0", ")", ";", "AddDefaultPred", "(", "MIB", ")", ";", "unsigned", "GlobalBaseReg", "=", "AFI", "->", "getGlobalBaseReg", "(", ")", ";", "Opc", "=", "STI", ".", "isThumb2", "(", ")", "?", "ARM", "::", "tPICADD", ":", "ARM", "::", "PICADD", ";", "MIB", "=", "BuildMI", "(", "FirstMBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "Opc", ")", ",", "GlobalBaseReg", ")", ".", "addReg", "(", "TempReg", ")", ".", "addImm", "(", "ARMPCLabelIndex", ")", ";", "if", "(", "Opc", "==", "ARM", "::", "PICADD", ")", "AddDefaultPred", "(", "MIB", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "0", "ARM", "ARM", "ARM", "4", "8", "ARM", "ARM", "\"_GLOBAL_OFFSET_TABLE_\"", "ARM", "ARM::rGPRRegClass", "ARM::t2LDRpci", "ARM::LDRcp", "ARM::LDRcp", "0", "ARM::tPICADD", "ARM::PICADD", "ARM", "ARM::PICADD"], "File": "ARMInstrInfo13", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3692, "Length": 366, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86PassConfig", "::", "addPreRegAlloc", "(", ")", "{", "if", "(", "GenerateSgxCode", ")", "{", "addPass", "(", "createSgxMCPass", "(", ")", ")", ";", "addPass", "(", "createX86WinAllocaExpander", "(", ")", ")", ";", "return", ";", "}", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "addPass", "(", "createX86FixupSetCC", "(", ")", ")", ";", "addPass", "(", "createX86OptimizeLEAs", "(", ")", ")", ";", "addPass", "(", "createX86CallFrameOptimization", "(", ")", ")", ";", "}", "addPass", "(", "createX86WinAllocaExpander", "(", ")", ")", ";", "addPass", "(", "createMachineInstPrint", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "register", "allocation", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86", "X86"], "File": "X86TargetMachine4", "Func": "addPreRegAlloc", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3693, "Length": 77, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "extract_mac_non_acc_rtx", "(", "rtx_insn", "*", "insn", ")", "{", "rtx", "exp", "=", "SET_SRC", "(", "PATTERN", "(", "insn", ")", ")", ";", "switch", "(", "get_attr_type", "(", "insn", ")", ")", "{", "case", "TYPE_MAC", ":", "case", "TYPE_DMAC", ":", "if", "(", "REG_P", "(", "XEXP", "(", "exp", ",", "0", ")", ")", ")", "return", "XEXP", "(", "exp", ",", "1", ")", ";", "else", "return", "XEXP", "(", "exp", ",", "0", ")", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Extract", "the", "rtx", "representing", "non-accumulation", "operands", "of", "a", "MAC", "insn", "."], "TS_V_token": ["nds32", "0", "1", "0"], "File": "nds32-utils", "Func": "extract_mac_non_acc_rtx", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3694, "Length": 70, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mips_legitimize_move", "(", "machine_mode", "mode", ",", "rtx", "dest", ",", "rtx", "src", ")", "{", "if", "(", "!", "register_operand", "(", "dest", ",", "mode", ")", "&&", "!", "reg_or_0_operand", "(", "src", ",", "mode", ")", ")", "{", "mips_emit_move", "(", "dest", ",", "force_reg", "(", "mode", ",", "src", ")", ")", ";", "return", "true", ";", "}", "if", "(", "CONSTANT_P", "(", "src", ")", "&&", "!", "move_operand", "(", "src", ",", "mode", ")", ")", "{", "mips_legitimize_const_move", "(", "mode", ",", "dest", ",", "src", ")", ";", "set_unique_reg_note", "(", "get_last_insn", "(", ")", ",", "REG_EQUAL", ",", "copy_rtx", "(", "src", ")", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["If", "(", "set", "DEST", "SRC", ")", "is", "not", "a", "valid", "instruction", ",", "emit", "an", "equivalent", "sequence", "that", "is", "valid", "."], "TS_V_token": ["mips"], "File": "mips4", "Func": "mips_legitimize_move", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3695, "Length": 95, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCInstrInfo", "::", "isReallyTriviallyReMaterializable", "(", "const", "MachineInstr", "&", "MI", ",", "AliasAnalysis", "*", "AA", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown rematerializable operation!\"", ")", ";", "break", ";", "case", "PPC", "::", "LI", ":", "case", "PPC", "::", "LI8", ":", "case", "PPC", "::", "LIS", ":", "case", "PPC", "::", "LIS8", ":", "case", "PPC", "::", "ADDIStocHA", ":", "case", "PPC", "::", "ADDIStocHA8", ":", "case", "PPC", "::", "ADDItocL", ":", "case", "PPC", "::", "LOAD_STACK_GUARD", ":", "case", "PPC", "::", "XXLXORz", ":", "case", "PPC", "::", "XXLXORspz", ":", "case", "PPC", "::", "XXLXORdpz", ":", "case", "PPC", "::", "XXLEQVOnes", ":", "case", "PPC", "::", "V_SET0B", ":", "case", "PPC", "::", "V_SET0H", ":", "case", "PPC", "::", "V_SET0", ":", "case", "PPC", "::", "V_SETALLONESB", ":", "case", "PPC", "::", "V_SETALLONESH", ":", "case", "PPC", "::", "V_SETALLONES", ":", "case", "PPC", "::", "CRSET", ":", "case", "PPC", "::", "CRUNSET", ":", "case", "PPC", "::", "XXSETACCZ", ":", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["For", "instructions", "with", "opcodes", "for", "which", "the", "M_REMATERIALIZABLE", "flag", "is", "set", ",", "this", "hook", "lets", "the", "target", "specify", "whether", "the", "instruction", "is", "actually", "trivially", "rematerializable", ",", "taking", "into", "consideration", "its", "operands", "."], "TS_V_token": ["PowerPC", "PPC", "\"Unknown rematerializable operation!\"", "PPC::LI", "PPC::LI8", "PPC::LIS", "PPC::LIS8", "PPC::ADDIStocHA", "PPC::ADDIStocHA8", "PPC::ADDItocL", "PPC::LOAD_STACK_GUARD", "PPC::XXLXORz", "PPC::XXLXORspz", "PPC::XXLXORdpz", "PPC::XXLEQVOnes", "PPC::V_SET0B", "PPC::V_SET0H", "PPC::V_SET0", "PPC::V_SETALLONESB", "PPC::V_SETALLONESH", "PPC::V_SETALLONES", "PPC::CRSET", "PPC::CRUNSET", "PPC::XXSETACCZ"], "File": "PPCInstrInfo129", "Func": "isReallyTriviallyReMaterializable", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3696, "Length": 147, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "find_constant", "(", "rtx", "in_rtx", ",", "imm_info", "*", "imm_values", ")", "{", "if", "(", "INSN_P", "(", "in_rtx", ")", ")", "in_rtx", "=", "PATTERN", "(", "in_rtx", ")", ";", "subrtx_iterator", "::", "array_type", "array", ";", "FOR_EACH_SUBRTX", "(", "iter", ",", "array", ",", "in_rtx", ",", "ALL", ")", "if", "(", "const_rtx", "x", "=", "*", "iter", ")", "switch", "(", "GET_CODE", "(", "x", ")", ")", "{", "case", "CONST", ":", "case", "SYMBOL_REF", ":", "case", "CONST_INT", ":", "(", "imm_values", "->", "imm", ")", "++", ";", "if", "(", "x86_64_immediate_operand", "(", "CONST_CAST_RTX", "(", "x", ")", ",", "SImode", ")", ")", "(", "imm_values", "->", "imm32", ")", "++", ";", "else", "(", "imm_values", "->", "imm64", ")", "++", ";", "break", ";", "case", "CONST_DOUBLE", ":", "(", "imm_values", "->", "imm", ")", "++", ";", "(", "imm_values", "->", "imm64", ")", "++", ";", "break", ";", "case", "CODE_LABEL", ":", "if", "(", "LABEL_KIND", "(", "x", ")", "==", "LABEL_NORMAL", ")", "{", "(", "imm_values", "->", "imm", ")", "++", ";", "(", "imm_values", "->", "imm32", ")", "++", ";", "}", "break", ";", "default", ":", "break", ";", "}", "}", ""], "natrual_language": ["Compute", "number", "of", "immediate", "operands", "of", "an", "instruction", "."], "TS_V_token": ["i386"], "File": "i3864", "Func": "find_constant", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3697, "Length": 157, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseRegisterInfo", "::", "canRealignStack", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "MachineRegisterInfo", "*", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "const", "ARMFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "if", "(", "!", "TargetRegisterInfo", "::", "canRealignStack", "(", "MF", ")", ")", "return", "false", ";", "if", "(", "!", "MRI", "->", "canReserveReg", "(", "getFramePointerReg", "(", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ")", ")", ")", "return", "false", ";", "if", "(", "TFI", "->", "hasReservedCallFrame", "(", "MF", ")", ")", "return", "true", ";", "return", "MRI", "->", "canReserveReg", "(", "BasePtr", ")", ";", "}", ""], "natrual_language": ["True", "if", "the", "stack", "can", "be", "realigned", "for", "the", "target", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM"], "File": "ARMBaseRegisterInfo11", "Func": "canRealignStack", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3698, "Length": 91, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getNumberOfRegisters", "(", "bool", "Vector", ")", "const", "{", "if", "(", "Vector", ")", "{", "if", "(", "ST", "->", "hasNEON", "(", ")", ")", "return", "32", ";", "return", "0", ";", "}", "return", "32", ";", "}", ""], "natrual_language": ["\ufffd", "?", "Vector", "TTI", "begin", "\ufffd", "?"], "TS_V_token": ["AArch64", "32", "0", "32"], "File": "AArch64TargetTransformInfo19", "Func": "getNumberOfRegisters", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3699, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_print_options_internal", "(", "FILE", "*", "file", ",", "int", "indent", ",", "const", "char", "*", "string", ",", "HOST_WIDE_INT", "flags", ",", "const", "char", "*", "prefix", ",", "const", "struct", "rs6000_opt_mask", "*", "opts", ",", "size_t", "num_elements", ")", "{", "size_t", "i", ";", "size_t", "start_column", "=", "0", ";", "size_t", "cur_column", ";", "size_t", "max_column", "=", "76", ";", "const", "char", "*", "comma", "=", "\"\"", ";", "if", "(", "indent", ")", "start_column", "+=", "fprintf", "(", "file", ",", "\"%*s\"", ",", "indent", ",", "\"\"", ")", ";", "if", "(", "!", "flags", ")", "{", "fprintf", "(", "stderr", ",", "DEBUG_FMT_S", ",", "string", ",", "\"\"", ")", ";", "return", ";", "}", "start_column", "+=", "fprintf", "(", "stderr", ",", "DEBUG_FMT_WX", ",", "string", ",", "flags", ")", ";", "cur_column", "=", "start_column", ";", "for", "(", "i", "=", "0", ";", "i", "<", "num_elements", ";", "i", "++", ")", "{", "if", "(", "(", "flags", "&", "opts", "[", "i", "]", ".", "mask", ")", "!=", "0", ")", "{", "const", "char", "*", "no_str", "=", "rs6000_opt_masks", "[", "i", "]", ".", "invert", "?", "\"no-\"", ":", "\"\"", ";", "size_t", "len", "=", "(", "strlen", "(", "comma", ")", "+", "strlen", "(", "prefix", ")", "+", "strlen", "(", "no_str", ")", "+", "strlen", "(", "rs6000_opt_masks", "[", "i", "]", ".", "name", ")", ")", ";", "cur_column", "+=", "len", ";", "if", "(", "cur_column", ">", "max_column", ")", "{", "fprintf", "(", "stderr", ",", "\", \\\\\\n%*s\"", ",", "(", "int", ")", "start_column", ",", "\"\"", ")", ";", "cur_column", "=", "start_column", "+", "len", ";", "comma", "=", "\"\"", ";", "}", "fprintf", "(", "file", ",", "\"%s%s%s%s\"", ",", "comma", ",", "prefix", ",", "no_str", ",", "rs6000_opt_masks", "[", "i", "]", ".", "name", ")", ";", "flags", "&=", "~", "opts", "[", "i", "]", ".", "mask", ";", "comma", "=", "\", \"", ";", "}", "}", "fputs", "(", "\"\\n\"", ",", "file", ")", ";", "}", ""], "natrual_language": ["Helper", "function", "to", "print", "the", "current", "isa", "or", "misc", "options", "on", "a", "line", "."], "TS_V_token": ["rs6000", "0", "76", "\"\"", "\"%*s\"", "\"\"", "\"\"", "0", "0", "\"no-\"", "\"\"", "\", \\\\\\n%*s\"", "\"\"", "\"\"", "\"%s%s%s%s\"", "\", \"", "\"\\n\""], "File": "rs60004", "Func": "rs6000_print_options_internal", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3700, "Length": 267, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "AArch64Subtarget", "::", "AArch64Subtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "TuneCPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ",", "bool", "LittleEndian", ",", "unsigned", "MinSVEVectorSizeInBitsOverride", ",", "unsigned", "MaxSVEVectorSizeInBitsOverride", ")", ":", "AArch64GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "TuneCPU", ",", "FS", ")", ",", "ReserveXRegister", "(", "AArch64", "::", "GPR64commonRegClass", ".", "getNumRegs", "(", ")", ")", ",", "CustomCallSavedXRegs", "(", "AArch64", "::", "GPR64commonRegClass", ".", "getNumRegs", "(", ")", ")", ",", "IsLittle", "(", "LittleEndian", ")", ",", "MinSVEVectorSizeInBits", "(", "MinSVEVectorSizeInBitsOverride", ")", ",", "MaxSVEVectorSizeInBits", "(", "MaxSVEVectorSizeInBitsOverride", ")", ",", "TargetTriple", "(", "TT", ")", ",", "FrameLowering", "(", ")", ",", "InstrInfo", "(", "initializeSubtargetDependencies", "(", "FS", ",", "CPU", ",", "TuneCPU", ")", ")", ",", "TSInfo", "(", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{", "if", "(", "AArch64", "::", "isX18ReservedByDefault", "(", "TT", ")", ")", "ReserveXRegister", ".", "set", "(", "18", ")", ";", "CallLoweringInfo", ".", "reset", "(", "new", "AArch64CallLowering", "(", "*", "getTargetLowering", "(", ")", ")", ")", ";", "InlineAsmLoweringInfo", ".", "reset", "(", "new", "InlineAsmLowering", "(", "getTargetLowering", "(", ")", ")", ")", ";", "Legalizer", ".", "reset", "(", "new", "AArch64LegalizerInfo", "(", "*", "this", ")", ")", ";", "auto", "*", "RBI", "=", "new", "AArch64RegisterBankInfo", "(", "*", "getRegisterInfo", "(", ")", ")", ";", "InstSelector", ".", "reset", "(", "createAArch64InstructionSelector", "(", "*", "static_cast", "<", "const", "AArch64TargetMachine", "*", ">", "(", "&", "TM", ")", ",", "*", "this", ",", "*", "RBI", ")", ")", ";", "RegBankInfo", ".", "reset", "(", "RBI", ")", ";", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "AArch64::GPR64commonRegClass", "AArch64::GPR64commonRegClass", "AArch64::isX18ReservedByDefault", "18", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64Subtarget", "Func": "AArch64Subtarget", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3701, "Length": 228, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64PreLegalizerCombiner", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "MF", ".", "getProperties", "(", ")", ".", "hasProperty", "(", "MachineFunctionProperties", "::", "Property", "::", "FailedISel", ")", ")", "return", "false", ";", "auto", "*", "TPC", "=", "&", "getAnalysis", "<", "TargetPassConfig", ">", "(", ")", ";", "AArch64PreLegalizerCombinerInfo", "PCInfo", ";", "Combiner", "C", "(", "PCInfo", ",", "TPC", ")", ";", "return", "C", ".", "combineMachineInstrs", "(", "MF", ",", "nullptr", ")", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64"], "File": "AArch64PreLegalizerCombiner1", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3702, "Length": 64, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86AsmBackend", "::", "writeNopData", "(", "raw_ostream", "&", "OS", ",", "uint64_t", "Count", ")", "const", "{", "static", "const", "char", "Nops32Bit", "[", "10", "]", "[", "11", "]", "=", "{", "\"\\x90\"", ",", "\"\\x66\\x90\"", ",", "\"\\x0f\\x1f\\x00\"", ",", "\"\\x0f\\x1f\\x40\\x00\"", ",", "\"\\x0f\\x1f\\x44\\x00\\x00\"", ",", "\"\\x66\\x0f\\x1f\\x44\\x00\\x00\"", ",", "\"\\x0f\\x1f\\x80\\x00\\x00\\x00\\x00\"", ",", "\"\\x0f\\x1f\\x84\\x00\\x00\\x00\\x00\\x00\"", ",", "\"\\x66\\x0f\\x1f\\x84\\x00\\x00\\x00\\x00\\x00\"", ",", "\"\\x66\\x2e\\x0f\\x1f\\x84\\x00\\x00\\x00\\x00\\x00\"", ",", "}", ";", "static", "const", "char", "Nops16Bit", "[", "4", "]", "[", "11", "]", "=", "{", "\"\\x90\"", ",", "\"\\x66\\x90\"", ",", "\"\\x8d\\x74\\x00\"", ",", "\"\\x8d\\xb4\\x00\\x00\"", ",", "}", ";", "const", "char", "(", "*", "Nops", ")", "[", "11", "]", "=", "STI", ".", "getFeatureBits", "(", ")", "[", "X86", "::", "Mode16Bit", "]", "?", "Nops16Bit", ":", "Nops32Bit", ";", "uint64_t", "MaxNopLength", "=", "(", "uint64_t", ")", "getMaximumNopSize", "(", ")", ";", "do", "{", "const", "uint8_t", "ThisNopLength", "=", "(", "uint8_t", ")", "std", "::", "min", "(", "Count", ",", "MaxNopLength", ")", ";", "const", "uint8_t", "Prefixes", "=", "ThisNopLength", "<=", "10", "?", "0", ":", "ThisNopLength", "-", "10", ";", "for", "(", "uint8_t", "i", "=", "0", ";", "i", "<", "Prefixes", ";", "i", "++", ")", "OS", "<<", "'\\x66'", ";", "const", "uint8_t", "Rest", "=", "ThisNopLength", "-", "Prefixes", ";", "if", "(", "Rest", "!=", "0", ")", "OS", ".", "write", "(", "Nops", "[", "Rest", "-", "1", "]", ",", "Rest", ")", ";", "Count", "-=", "ThisNopLength", ";", "}", "while", "(", "Count", "!=", "0", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Write", "an", "(", "optimal", ")", "nop", "sequence", "of", "Count", "bytes", "to", "the", "given", "output", "."], "TS_V_token": ["X86", "X86", "10", "11", "\"\\x90\"", "\"\\x66\\x90\"", "\"\\x0f\\x1f\\x00\"", "\"\\x0f\\x1f\\x40\\x00\"", "\"\\x0f\\x1f\\x44\\x00\\x00\"", "\"\\x66\\x0f\\x1f\\x44\\x00\\x00\"", "\"\\x0f\\x1f\\x80\\x00\\x00\\x00\\x00\"", "\"\\x0f\\x1f\\x84\\x00\\x00\\x00\\x00\\x00\"", "\"\\x66\\x0f\\x1f\\x84\\x00\\x00\\x00\\x00\\x00\"", "\"\\x66\\x2e\\x0f\\x1f\\x84\\x00\\x00\\x00\\x00\\x00\"", "4", "11", "\"\\x90\"", "\"\\x66\\x90\"", "\"\\x8d\\x74\\x00\"", "\"\\x8d\\xb4\\x00\\x00\"", "11", "X86::Mode16Bit", "10", "0", "10", "0", "0", "1", "0"], "File": "X86AsmBackend42", "Func": "writeNopData", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3703, "Length": 199, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCExpr", "*", "X86TargetLowering", "::", "getPICJumpTableRelocBaseExpr", "(", "const", "MachineFunction", "*", "MF", ",", "unsigned", "JTI", ",", "MCContext", "&", "Ctx", ")", "const", "{", "if", "(", "Subtarget", "->", "isPICStyleRIPRel", "(", ")", ")", "return", "TargetLowering", "::", "getPICJumpTableRelocBaseExpr", "(", "MF", ",", "JTI", ",", "Ctx", ")", ";", "return", "MCSymbolRefExpr", "::", "create", "(", "MF", "->", "getPICBaseSymbol", "(", ")", ",", "Ctx", ")", ";", "}", ""], "natrual_language": ["This", "returns", "the", "relocation", "base", "for", "the", "given", "PIC", "jumptable", ",", "the", "same", "as", "getPICJumpTableRelocBase", ",", "but", "as", "an", "MCExpr", "."], "TS_V_token": ["X86", "X86"], "File": "X86ISelLowering (2)3", "Func": "getPICJumpTableRelocBaseExpr", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3704, "Length": 56, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "FastISel", "*", "ARM", "::", "createFastISel", "(", "FunctionLoweringInfo", "&", "funcInfo", ",", "const", "TargetLibraryInfo", "*", "libInfo", ")", "{", "const", "TargetMachine", "&", "TM", "=", "funcInfo", ".", "MF", "->", "getTarget", "(", ")", ";", "const", "ARMSubtarget", "*", "Subtarget", "=", "&", "TM", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "bool", "UseFastISel", "=", "false", ";", "UseFastISel", "|=", "Subtarget", "->", "isTargetMachO", "(", ")", "&&", "!", "Subtarget", "->", "isThumb1Only", "(", ")", ";", "UseFastISel", "|=", "Subtarget", "->", "isTargetLinux", "(", ")", "&&", "!", "Subtarget", "->", "isThumb", "(", ")", ";", "UseFastISel", "|=", "Subtarget", "->", "isTargetNaCl", "(", ")", "&&", "!", "Subtarget", "->", "isThumb", "(", ")", ";", "if", "(", "UseFastISel", ")", "{", "TM", ".", "Options", ".", "NoFramePointerElim", "=", "true", ";", "return", "new", "ARMFastISel", "(", "funcInfo", ",", "libInfo", ")", ";", "}", "return", "nullptr", ";", "}", ""], "natrual_language": ["This", "method", "returns", "a", "target", "specific", "FastISel", "object", ",", "or", "null", "if", "the", "target", "does", "not", "support", "``", "fast", "''", "ISel", "."], "TS_V_token": ["ARM", "ARM::createFastISel", "ARM", "ARM", "ARM"], "File": "ARMFastISel35", "Func": "createFastISel", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3705, "Length": 121, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MINA32MCCodeEmitter", "::", "getMachineOpValue", "(", "const", "MCInst", "&", "MI", ",", "const", "MCOperand", "&", "MO", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "if", "(", "MO", ".", "isReg", "(", ")", ")", "return", "Ctx", ".", "getRegisterInfo", "(", ")", "->", "getEncodingValue", "(", "MO", ".", "getReg", "(", ")", ")", ";", "assert", "(", "MO", ".", "isImm", "(", ")", "&&", "\"did not expect relocated expression\"", ")", ";", "return", "static_cast", "<", "unsigned", ">", "(", "MO", ".", "getImm", "(", ")", ")", ";", "}", ""], "natrual_language": ["getMachineOpValue", "-", "Return", "binary", "encoding", "of", "operand", "."], "TS_V_token": ["MINA32", "MINA32", "\"did not expect relocated expression\""], "File": "MINA32MCCodeEmitter", "Func": "getMachineOpValue", "Target": "MINA32", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3706, "Length": 78, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "getNumberOfRegisters", "(", "unsigned", "ClassID", ")", "const", "{", "return", "64", ";", "}", ""], "natrual_language": ["\ufffd", "?", "Vector", "TTI", "begin", "\ufffd", "?"], "TS_V_token": ["VE", "64"], "File": "VETargetTransformInfo4", "Func": "getNumberOfRegisters", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3707, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTargetLowering", "::", "shouldConvertConstantLoadToIntImm", "(", "const", "APInt", "&", "Imm", ",", "Type", "*", "Ty", ")", "const", "{", "assert", "(", "Ty", "->", "isIntegerTy", "(", ")", ")", ";", "unsigned", "BitSize", "=", "Ty", "->", "getPrimitiveSizeInBits", "(", ")", ";", "return", "!", "(", "BitSize", "==", "0", "||", "BitSize", ">", "64", ")", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "it", "is", "beneficial", "to", "convert", "a", "load", "of", "a", "constant", "to", "just", "the", "constant", "itself", "."], "TS_V_token": ["PowerPC", "PPC", "0", "64"], "File": "PPCISelLowering (2)7", "Func": "shouldConvertConstantLoadToIntImm", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3708, "Length": 47, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "LanaiAsmBackend", "::", "writeNopData", "(", "raw_ostream", "&", "OS", ",", "uint64_t", "Count", ",", "const", "MCSubtargetInfo", "*", "STI", ")", "const", "{", "if", "(", "(", "Count", "%", "4", ")", "!=", "0", ")", "return", "false", ";", "for", "(", "uint64_t", "i", "=", "0", ";", "i", "<", "Count", ";", "i", "+=", "4", ")", "OS", ".", "write", "(", "\"\\x15\\0\\0\\0\"", ",", "4", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Write", "an", "(", "optimal", ")", "nop", "sequence", "of", "Count", "bytes", "to", "the", "given", "output", "."], "TS_V_token": ["Lanai", "Lanai", "4", "0", "0", "4", "\"\\x15\\0\\0\\0\"", "4"], "File": "LanaiAsmBackend9", "Func": "writeNopData", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3709, "Length": 60, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_emit_move_from_cr", "(", "rtx", "reg", ")", "{", "if", "(", "DEFAULT_ABI", "==", "ABI_ELFv2", "&&", "TARGET_MFCRF", ")", "{", "int", "i", ",", "cr_reg", "[", "8", "]", ",", "count", "=", "0", ";", "for", "(", "i", "=", "0", ";", "i", "<", "8", ";", "i", "++", ")", "if", "(", "save_reg_p", "(", "CR0_REGNO", "+", "i", ")", ")", "cr_reg", "[", "count", "++", "]", "=", "i", ";", "if", "(", "count", "==", "1", ")", "{", "rtvec", "p", "=", "rtvec_alloc", "(", "1", ")", ";", "rtvec", "r", "=", "rtvec_alloc", "(", "2", ")", ";", "RTVEC_ELT", "(", "r", ",", "0", ")", "=", "gen_rtx_REG", "(", "CCmode", ",", "CR0_REGNO", "+", "cr_reg", "[", "0", "]", ")", ";", "RTVEC_ELT", "(", "r", ",", "1", ")", "=", "GEN_INT", "(", "1", "<<", "(", "7", "-", "cr_reg", "[", "0", "]", ")", ")", ";", "RTVEC_ELT", "(", "p", ",", "0", ")", "=", "gen_rtx_SET", "(", "reg", ",", "gen_rtx_UNSPEC", "(", "SImode", ",", "r", ",", "UNSPEC_MOVESI_FROM_CR", ")", ")", ";", "emit_insn", "(", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "p", ")", ")", ";", "return", ";", "}", "}", "emit_insn", "(", "gen_movesi_from_cr", "(", "reg", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "code", "to", "store", "CR", "fields", "that", "need", "to", "be", "saved", "into", "REG", "."], "TS_V_token": ["powerpcspe", "8", "0", "0", "8", "1", "1", "2", "0", "0", "1", "1", "7", "0", "0"], "File": "powerpcspe", "Func": "rs6000_emit_move_from_cr", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3710, "Length": 166, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "uint16_t", ",", "uint16_t", ">", "X86InstrInfo", "::", "getExecutionDomain", "(", "const", "MachineInstr", "*", "MI", ")", "const", "{", "uint16_t", "domain", "=", "(", "MI", "->", "getDesc", "(", ")", ".", "TSFlags", ">>", "X86II", "::", "SSEDomainShift", ")", "&", "3", ";", "bool", "hasAVX2", "=", "Subtarget", ".", "hasAVX2", "(", ")", ";", "uint16_t", "validDomains", "=", "0", ";", "if", "(", "domain", "&&", "lookup", "(", "MI", "->", "getOpcode", "(", ")", ",", "domain", ")", ")", "validDomains", "=", "0xe", ";", "else", "if", "(", "domain", "&&", "lookupAVX2", "(", "MI", "->", "getOpcode", "(", ")", ",", "domain", ")", ")", "validDomains", "=", "hasAVX2", "?", "0xe", ":", "0x6", ";", "return", "std", "::", "make_pair", "(", "domain", ",", "validDomains", ")", ";", "}", ""], "natrual_language": ["Return", "the", "current", "execution", "domain", "and", "bit", "mask", "of", "possible", "domains", "for", "instruction", "."], "TS_V_token": ["X86", "X86", "X86II::SSEDomainShift", "3", "0", "0xe", "0xe", "0x6"], "File": "X86InstrInfo (2)2", "Func": "getExecutionDomain", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3711, "Length": 106, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SparcSubtarget", "&", "SparcSubtarget", "::", "initializeSubtargetDependencies", "(", "StringRef", "CPU", ",", "StringRef", "FS", ")", "{", "UseSoftMulDiv", "=", "false", ";", "IsV9", "=", "false", ";", "IsLeon", "=", "false", ";", "V8DeprecatedInsts", "=", "false", ";", "IsVIS", "=", "false", ";", "IsVIS2", "=", "false", ";", "IsVIS3", "=", "false", ";", "HasHardQuad", "=", "false", ";", "UsePopc", "=", "false", ";", "UseSoftFloat", "=", "false", ";", "HasNoFSMULD", "=", "false", ";", "HasNoFMULS", "=", "false", ";", "HasLeonCasa", "=", "false", ";", "HasUmacSmac", "=", "false", ";", "InsertNOPLoad", "=", "false", ";", "FixAllFDIVSQRT", "=", "false", ";", "DetectRoundChange", "=", "false", ";", "std", "::", "string", "CPUName", "=", "CPU", ";", "if", "(", "CPUName", ".", "empty", "(", ")", ")", "CPUName", "=", "(", "Is64Bit", ")", "?", "\"v9\"", ":", "\"v8\"", ";", "ParseSubtargetFeatures", "(", "CPUName", ",", "FS", ")", ";", "if", "(", "!", "IsV9", ")", "UsePopc", "=", "false", ";", "return", "*", "this", ";", "}", ""], "natrual_language": ["initializeSubtargetDependencies", "-", "Initializes", "using", "a", "CPU", ",", "a", "TuneCPU", ",", "and", "feature", "string", "so", "that", "we", "can", "use", "initializer", "lists", "for", "subtarget", "initialization", "."], "TS_V_token": ["Sparc", "Sparc", "Sparc", "\"v9\"", "\"v8\""], "File": "SparcSubtarget16", "Func": "initializeSubtargetDependencies", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3712, "Length": 127, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "rs6000_emit_le_vsx_store", "(", "rtx", "dest", ",", "rtx", "source", ",", "machine_mode", "mode", ")", "{", "gcc_assert", "(", "can_create_pseudo_p", "(", ")", ")", ";", "if", "(", "mode", "==", "TImode", "||", "mode", "==", "V1TImode", ")", "{", "mode", "=", "V2DImode", ";", "dest", "=", "adjust_address", "(", "dest", ",", "V2DImode", ",", "0", ")", ";", "source", "=", "gen_lowpart", "(", "V2DImode", ",", "source", ")", ";", "}", "rtx", "tmp", "=", "gen_reg_rtx_and_attrs", "(", "source", ")", ";", "rs6000_emit_le_vsx_permute", "(", "tmp", ",", "source", ",", "mode", ")", ";", "rs6000_emit_le_vsx_permute", "(", "dest", ",", "tmp", ",", "mode", ")", ";", "}", ""], "natrual_language": ["Emit", "a", "little-endian", "store", "to", "vector", "memory", "location", "DEST", "from", "VSX", "register", "SOURCE", "in", "mode", "MODE", ".", "The", "store", "is", "done", "with", "two", "permuting", "insn", "'s", "that", "represent", "an", "xxpermdi", "and", "an", "stxvd2x", "."], "TS_V_token": ["rs6000", "0"], "File": "rs6000", "Func": "rs6000_emit_le_vsx_store", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3713, "Length": 83, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "get_ppc476_thunk_name", "(", "char", "name", "[", "32", "]", ")", "{", "gcc_assert", "(", "TARGET_LINK_STACK", ")", ";", "if", "(", "USE_HIDDEN_LINKONCE", ")", "sprintf", "(", "name", ",", "\"__ppc476.get_thunk\"", ")", ";", "else", "ASM_GENERATE_INTERNAL_LABEL", "(", "name", ",", "\"LPPC476_\"", ",", "0", ")", ";", "}", ""], "natrual_language": ["Fills", "in", "the", "label", "name", "that", "should", "be", "used", "for", "a", "476", "link", "stack", "thunk", "."], "TS_V_token": ["powerpcspe", "32", "\"__ppc476.get_thunk\"", "\"LPPC476_\"", "0"], "File": "powerpcspe", "Func": "get_ppc476_thunk_name", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3714, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "AArch64Subtarget", "::", "AArch64Subtarget", "(", "const", "std", "::", "string", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ",", "bool", "LittleEndian", ")", ":", "AArch64GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "ARMProcFamily", "(", "Others", ")", ",", "HasV8_1aOps", "(", "false", ")", ",", "HasFPARMv8", "(", "false", ")", ",", "HasNEON", "(", "false", ")", ",", "HasCrypto", "(", "false", ")", ",", "HasCRC", "(", "false", ")", ",", "HasZeroCycleRegMove", "(", "false", ")", ",", "HasZeroCycleZeroing", "(", "false", ")", ",", "IsLittle", "(", "LittleEndian", ")", ",", "CPUString", "(", "CPU", ")", ",", "TargetTriple", "(", "TT", ")", ",", "FrameLowering", "(", ")", ",", "InstrInfo", "(", "initializeSubtargetDependencies", "(", "FS", ")", ")", ",", "TSInfo", "(", "TM", ".", "getDataLayout", "(", ")", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64Subtarget64", "Func": "AArch64Subtarget", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3715, "Length": 128, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "aarch64_sve_same_pred_for_ptest_p", "(", "rtx", "*", "pred1", ",", "rtx", "*", "pred2", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "pred1", "[", "0", "]", ")", ";", "gcc_assert", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_VECTOR_BOOL", "&&", "mode", "==", "GET_MODE", "(", "pred2", "[", "0", "]", ")", "&&", "aarch64_sve_ptrue_flag", "(", "pred1", "[", "1", "]", ",", "SImode", ")", "&&", "aarch64_sve_ptrue_flag", "(", "pred2", "[", "1", "]", ",", "SImode", ")", ")", ";", "bool", "ptrue1_p", "=", "(", "pred1", "[", "0", "]", "==", "CONSTM1_RTX", "(", "mode", ")", "||", "INTVAL", "(", "pred1", "[", "1", "]", ")", "==", "SVE_KNOWN_PTRUE", ")", ";", "bool", "ptrue2_p", "=", "(", "pred2", "[", "0", "]", "==", "CONSTM1_RTX", "(", "mode", ")", "||", "INTVAL", "(", "pred2", "[", "1", "]", ")", "==", "SVE_KNOWN_PTRUE", ")", ";", "return", "(", "ptrue1_p", "&&", "ptrue2_p", ")", "||", "rtx_equal_p", "(", "pred1", "[", "0", "]", ",", "pred2", "[", "0", "]", ")", ";", "}", ""], "natrual_language": ["PRED1", "[", "0", "]", "is", "a", "PTEST", "predicate", "and", "PRED1", "[", "1", "]", "is", "an", "aarch64_sve_ptrue_flag", "for", "it", ".", "PRED2", "[", "0", "]", "is", "the", "predicate", "for", "the", "instruction", "whose", "result", "is", "tested", "by", "the", "PTEST", "and", "PRED2", "[", "1", "]", "is", "again", "an", "aarch64_sve_ptrue_flag", "for", "it", ".", "Return", "true", "if", "we", "can", "prove", "that", "the", "two", "predicates", "are", "equivalent", "for", "PTEST", "purposes", ";", "that", "is", ",", "if", "we", "can", "replace", "PRED2", "[", "0", "]", "with", "PRED1", "[", "0", "]", "without", "changing", "behavior", "."], "TS_V_token": ["aarch64", "0", "0", "1", "1", "0", "1", "0", "1", "0", "0"], "File": "aarch64", "Func": "aarch64_sve_same_pred_for_ptest_p", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3716, "Length": 134, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "mingw32_gt_pch_use_address", "(", "void", "*", "addr", ",", "size_t", "size", ",", "int", "fd", ",", "size_t", "offset", ")", "{", "void", "*", "mmap_addr", ";", "HANDLE", "mmap_handle", ";", "char", "*", "object_name", "=", "NULL", ";", "OSVERSIONINFO", "version_info", ";", "int", "r", ";", "version_info", ".", "dwOSVersionInfoSize", "=", "sizeof", "(", "version_info", ")", ";", "if", "(", "size", "==", "0", ")", "return", "0", ";", "if", "(", "(", "offset", "&", "(", "va_granularity", "-", "1", ")", ")", "!=", "0", "||", "size", ">", "pch_VA_max_size", ")", "return", "-", "1", ";", "GetVersionEx", "(", "&", "version_info", ")", ";", "if", "(", "version_info", ".", "dwMajorVersion", ">", "4", ")", "{", "char", "local_object_name", "[", "sizeof", "(", "OBJECT_NAME_FMT", ")", "+", "sizeof", "(", "DWORD", ")", "*", "2", "]", ";", "snprintf", "(", "local_object_name", ",", "sizeof", "(", "local_object_name", ")", ",", "OBJECT_NAME_FMT", "\"%lx\"", ",", "GetCurrentProcessId", "(", ")", ")", ";", "object_name", "=", "local_object_name", ";", "}", "mmap_handle", "=", "CreateFileMappingA", "(", "(", "HANDLE", ")", "_get_osfhandle", "(", "fd", ")", ",", "NULL", ",", "PAGE_WRITECOPY", "|", "SEC_COMMIT", ",", "0", ",", "0", ",", "object_name", ")", ";", "if", "(", "mmap_handle", "==", "NULL", ")", "{", "w32_error", "(", "__FUNCTION__", ",", "__FILE__", ",", "__LINE__", ",", "\"CreateFileMapping\"", ")", ";", "return", "-", "1", ";", "}", "for", "(", "r", "=", "0", ";", "r", "<", "5", ";", "r", "++", ")", "{", "mmap_addr", "=", "MapViewOfFileEx", "(", "mmap_handle", ",", "FILE_MAP_COPY", ",", "0", ",", "offset", ",", "size", ",", "addr", ")", ";", "if", "(", "mmap_addr", "==", "addr", ")", "break", ";", "if", "(", "r", "!=", "4", ")", "Sleep", "(", "500", ")", ";", "}", "if", "(", "mmap_addr", "!=", "addr", ")", "{", "w32_error", "(", "__FUNCTION__", ",", "__FILE__", ",", "__LINE__", ",", "\"MapViewOfFileEx\"", ")", ";", "CloseHandle", "(", "mmap_handle", ")", ";", "return", "-", "1", ";", "}", "return", "1", ";", "}", ""], "natrual_language": ["ADDR", "is", "an", "address", "returned", "by", "gt_pch_get_address", ".", "Attempt", "to", "allocate", "SIZE", "bytes", "at", "the", "same", "address", "and", "load", "it", "with", "the", "data", "from", "FD", "at", "OFFSET", ".", "Return", "-1", "if", "we", "could", "n't", "allocate", "memory", "at", "ADDR", ",", "return", "0", "if", "the", "memory", "is", "allocated", "but", "the", "data", "not", "loaded", ",", "return", "1", "if", "done", "."], "TS_V_token": ["i386", "0", "0", "1", "0", "1", "4", "2", "\"%lx\"", "0", "0", "\"CreateFileMapping\"", "1", "0", "5", "0", "4", "500", "\"MapViewOfFileEx\"", "1", "1"], "File": "host-mingw323", "Func": "mingw32_gt_pch_use_address", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3717, "Length": 261, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StackOffset", "AArch64FrameLowering", "::", "getFrameIndexReferencePreferSP", "(", "const", "MachineFunction", "&", "MF", ",", "int", "FI", ",", "Register", "&", "FrameReg", ",", "bool", "IgnoreSPUpdates", ")", "const", "{", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "if", "(", "IgnoreSPUpdates", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Offset from the SP for \"", "<<", "FI", "<<", "\" is \"", "<<", "MFI", ".", "getObjectOffset", "(", "FI", ")", "<<", "\"\\n\"", ")", ";", "FrameReg", "=", "AArch64", "::", "SP", ";", "return", "StackOffset", "::", "getFixed", "(", "MFI", ".", "getObjectOffset", "(", "FI", ")", ")", ";", "}", "if", "(", "MFI", ".", "hasVarSizedObjects", "(", ")", "||", "MF", ".", "getInfo", "<", "AArch64FunctionInfo", ">", "(", ")", "->", "getStackSizeSVE", "(", ")", "||", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", "->", "hasStackRealignment", "(", "MF", ")", ")", "return", "getFrameIndexReference", "(", "MF", ",", "FI", ",", "FrameReg", ")", ";", "FrameReg", "=", "AArch64", "::", "SP", ";", "return", "getStackOffset", "(", "MF", ",", "MFI", ".", "getObjectOffset", "(", "FI", ")", ")", ";", "}", ""], "natrual_language": ["Same", "as", "getFrameIndexReference", ",", "except", "that", "the", "stack", "pointer", "(", "as", "opposed", "to", "the", "frame", "pointer", ")", "will", "be", "the", "preferred", "value", "for", "FrameReg", "."], "TS_V_token": ["AArch64", "AArch64", "\"Offset from the SP for \"", "\" is \"", "\"\\n\"", "AArch64::SP", "AArch64", "AArch64::SP"], "File": "AArch64FrameLowering102", "Func": "getFrameIndexReferencePreferSP", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3718, "Length": 146, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "rs6000_adjust_vec_address", "(", "rtx", "scalar_reg", ",", "rtx", "mem", ",", "rtx", "element", ",", "rtx", "base_tmp", ",", "machine_mode", "scalar_mode", ")", "{", "unsigned", "scalar_size", "=", "GET_MODE_SIZE", "(", "scalar_mode", ")", ";", "rtx", "addr", "=", "XEXP", "(", "mem", ",", "0", ")", ";", "rtx", "new_addr", ";", "gcc_assert", "(", "!", "reg_mentioned_p", "(", "base_tmp", ",", "addr", ")", ")", ";", "gcc_assert", "(", "!", "reg_mentioned_p", "(", "base_tmp", ",", "element", ")", ")", ";", "gcc_assert", "(", "GET_RTX_CLASS", "(", "GET_CODE", "(", "addr", ")", ")", "!=", "RTX_AUTOINC", ")", ";", "rtx", "element_offset", "=", "get_vector_offset", "(", "mem", ",", "element", ",", "base_tmp", ",", "scalar_size", ")", ";", "if", "(", "element_offset", "==", "const0_rtx", ")", "new_addr", "=", "addr", ";", "else", "if", "(", "REG_P", "(", "addr", ")", "||", "SUBREG_P", "(", "addr", ")", ")", "new_addr", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "addr", ",", "element_offset", ")", ";", "else", "if", "(", "pcrel_local_address", "(", "addr", ",", "Pmode", ")", "&&", "CONST_INT_P", "(", "element_offset", ")", ")", "new_addr", "=", "adjust_vec_address_pcrel", "(", "addr", ",", "element_offset", ",", "base_tmp", ")", ";", "else", "if", "(", "GET_CODE", "(", "addr", ")", "==", "PLUS", ")", "{", "rtx", "op0", "=", "XEXP", "(", "addr", ",", "0", ")", ";", "rtx", "op1", "=", "XEXP", "(", "addr", ",", "1", ")", ";", "gcc_assert", "(", "REG_P", "(", "op0", ")", "||", "SUBREG_P", "(", "op0", ")", ")", ";", "if", "(", "CONST_INT_P", "(", "op1", ")", "&&", "CONST_INT_P", "(", "element_offset", ")", ")", "{", "gcc_assert", "(", "reg_or_subregno", "(", "op0", ")", "!=", "0", ")", ";", "HOST_WIDE_INT", "offset", "=", "INTVAL", "(", "op1", ")", "+", "INTVAL", "(", "element_offset", ")", ";", "rtx", "offset_rtx", "=", "GEN_INT", "(", "offset", ")", ";", "new_addr", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "op0", ",", "offset_rtx", ")", ";", "}", "else", "{", "emit_insn", "(", "gen_rtx_SET", "(", "base_tmp", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "op0", ",", "op1", ")", ")", ")", ";", "new_addr", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "base_tmp", ",", "element_offset", ")", ";", "}", "}", "else", "{", "emit_move_insn", "(", "base_tmp", ",", "addr", ")", ";", "new_addr", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "base_tmp", ",", "element_offset", ")", ";", "}", "enum", "insn_form", "iform", "=", "address_to_insn_form", "(", "new_addr", ",", "scalar_mode", ",", "reg_to_non_prefixed", "(", "scalar_reg", ",", "scalar_mode", ")", ")", ";", "if", "(", "iform", "==", "INSN_FORM_BAD", ")", "{", "emit_move_insn", "(", "base_tmp", ",", "new_addr", ")", ";", "new_addr", "=", "base_tmp", ";", "}", "return", "change_address", "(", "mem", ",", "scalar_mode", ",", "new_addr", ")", ";", "}", ""], "natrual_language": ["Adjust", "a", "memory", "address", "(", "MEM", ")", "of", "a", "vector", "type", "to", "point", "to", "a", "scalar", "field", "within", "the", "vector", "(", "ELEMENT", ")", "with", "a", "mode", "(", "SCALAR_MODE", ")", ".", "Use", "a", "base", "register", "temporary", "(", "BASE_TMP", ")", "to", "fixup", "the", "address", ".", "Return", "the", "new", "memory", "address", "that", "is", "valid", "for", "reads", "or", "writes", "to", "a", "given", "register", "(", "SCALAR_REG", ")", ".", "This", "function", "is", "expected", "to", "be", "called", "after", "reload", "is", "completed", "when", "we", "are", "splitting", "insns", ".", "The", "temporary", "BASE_TMP", "might", "be", "set", "multiple", "times", "with", "this", "code", "."], "TS_V_token": ["rs6000", "0", "0", "1", "0"], "File": "rs6000", "Func": "rs6000_adjust_vec_address", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3719, "Length": 350, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ix86_builtin_vectorization_cost", "(", "enum", "vect_cost_for_stmt", "type_of_cost", ",", "tree", "vectype", ",", "int", ")", "{", "bool", "fp", "=", "false", ";", "machine_mode", "mode", "=", "TImode", ";", "int", "index", ";", "if", "(", "vectype", "!=", "NULL", ")", "{", "fp", "=", "FLOAT_TYPE_P", "(", "vectype", ")", ";", "mode", "=", "TYPE_MODE", "(", "vectype", ")", ";", "}", "switch", "(", "type_of_cost", ")", "{", "case", "scalar_stmt", ":", "return", "fp", "?", "ix86_cost", "->", "addss", ":", "COSTS_N_INSNS", "(", "1", ")", ";", "case", "scalar_load", ":", "return", "COSTS_N_INSNS", "(", "fp", "?", "ix86_cost", "->", "sse_load", "[", "0", "]", ":", "ix86_cost", "->", "int_load", "[", "2", "]", ")", "/", "2", ";", "case", "scalar_store", ":", "return", "COSTS_N_INSNS", "(", "fp", "?", "ix86_cost", "->", "sse_store", "[", "0", "]", ":", "ix86_cost", "->", "int_store", "[", "2", "]", ")", "/", "2", ";", "case", "vector_stmt", ":", "return", "ix86_vec_cost", "(", "mode", ",", "fp", "?", "ix86_cost", "->", "addss", ":", "ix86_cost", "->", "sse_op", ",", "true", ")", ";", "case", "vector_load", ":", "index", "=", "sse_store_index", "(", "mode", ")", ";", "if", "(", "index", "<", "0", ")", "index", "=", "2", ";", "return", "ix86_vec_cost", "(", "mode", ",", "COSTS_N_INSNS", "(", "ix86_cost", "->", "sse_load", "[", "index", "]", ")", "/", "2", ",", "true", ")", ";", "case", "vector_store", ":", "index", "=", "sse_store_index", "(", "mode", ")", ";", "if", "(", "index", "<", "0", ")", "index", "=", "2", ";", "return", "ix86_vec_cost", "(", "mode", ",", "COSTS_N_INSNS", "(", "ix86_cost", "->", "sse_store", "[", "index", "]", ")", "/", "2", ",", "true", ")", ";", "case", "vec_to_scalar", ":", "case", "scalar_to_vec", ":", "return", "ix86_vec_cost", "(", "mode", ",", "ix86_cost", "->", "sse_op", ",", "true", ")", ";", "case", "unaligned_load", ":", "index", "=", "sse_store_index", "(", "mode", ")", ";", "if", "(", "index", "<", "0", ")", "index", "=", "2", ";", "return", "ix86_vec_cost", "(", "mode", ",", "COSTS_N_INSNS", "(", "ix86_cost", "->", "sse_unaligned_load", "[", "index", "]", ")", "/", "2", ",", "true", ")", ";", "case", "unaligned_store", ":", "index", "=", "sse_store_index", "(", "mode", ")", ";", "if", "(", "index", "<", "0", ")", "index", "=", "2", ";", "return", "ix86_vec_cost", "(", "mode", ",", "COSTS_N_INSNS", "(", "ix86_cost", "->", "sse_unaligned_store", "[", "index", "]", ")", "/", "2", ",", "true", ")", ";", "case", "vector_gather_load", ":", "return", "ix86_vec_cost", "(", "mode", ",", "COSTS_N_INSNS", "(", "ix86_cost", "->", "gather_static", "+", "ix86_cost", "->", "gather_per_elt", "*", "TYPE_VECTOR_SUBPARTS", "(", "vectype", ")", ")", "/", "2", ",", "true", ")", ";", "case", "vector_scatter_store", ":", "return", "ix86_vec_cost", "(", "mode", ",", "COSTS_N_INSNS", "(", "ix86_cost", "->", "scatter_static", "+", "ix86_cost", "->", "scatter_per_elt", "*", "TYPE_VECTOR_SUBPARTS", "(", "vectype", ")", ")", "/", "2", ",", "true", ")", ";", "case", "cond_branch_taken", ":", "return", "ix86_cost", "->", "cond_taken_branch_cost", ";", "case", "cond_branch_not_taken", ":", "return", "ix86_cost", "->", "cond_not_taken_branch_cost", ";", "case", "vec_perm", ":", "case", "vec_promote_demote", ":", "return", "ix86_vec_cost", "(", "mode", ",", "ix86_cost", "->", "sse_op", ",", "true", ")", ";", "case", "vec_construct", ":", "{", "int", "cost", "=", "ix86_vec_cost", "(", "mode", ",", "ix86_cost", "->", "sse_op", ",", "false", ")", ";", "if", "(", "GET_MODE_BITSIZE", "(", "mode", ")", "==", "256", ")", "cost", "+=", "ix86_vec_cost", "(", "mode", ",", "ix86_cost", "->", "addss", ",", "true", ")", ";", "else", "if", "(", "GET_MODE_BITSIZE", "(", "mode", ")", "==", "512", ")", "cost", "+=", "3", "*", "ix86_vec_cost", "(", "mode", ",", "ix86_cost", "->", "addss", ",", "true", ")", ";", "return", "cost", ";", "}", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", ""], "natrual_language": ["Implement", "targetm.vectorize.builtin_vectorization_cost", "."], "TS_V_token": ["i386", "1", "0", "2", "2", "0", "2", "2", "0", "2", "2", "0", "2", "2", "0", "2", "2", "0", "2", "2", "2", "2", "256", "512", "3"], "File": "i3867", "Func": "ix86_builtin_vectorization_cost", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3720, "Length": 487, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Thumb2InstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "DestReg", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FI", ")", ",", "MachineMemOperand", "::", "MOLoad", ",", "MFI", ".", "getObjectSize", "(", "FI", ")", ",", "MFI", ".", "getObjectAlignment", "(", "FI", ")", ")", ";", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "ARM", "::", "GPRRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "t2LDRi12", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "return", ";", "}", "if", "(", "ARM", "::", "GPRPairRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "if", "(", "Register", "::", "isVirtualRegister", "(", "DestReg", ")", ")", "{", "MachineRegisterInfo", "*", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "MRI", "->", "constrainRegClass", "(", "DestReg", ",", "&", "ARM", "::", "GPRPairnospRegClass", ")", ";", "}", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "t2LDRDi8", ")", ")", ";", "AddDReg", "(", "MIB", ",", "DestReg", ",", "ARM", "::", "gsub_0", ",", "RegState", "::", "DefineNoRead", ",", "TRI", ")", ";", "AddDReg", "(", "MIB", ",", "DestReg", ",", "ARM", "::", "gsub_1", ",", "RegState", "::", "DefineNoRead", ",", "TRI", ")", ";", "MIB", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "if", "(", "Register", "::", "isPhysicalRegister", "(", "DestReg", ")", ")", "MIB", ".", "addReg", "(", "DestReg", ",", "RegState", "::", "ImplicitDefine", ")", ";", "return", ";", "}", "ARMBaseInstrInfo", "::", "loadRegFromStackSlot", "(", "MBB", ",", "I", ",", "DestReg", ",", "FI", ",", "RC", ",", "TRI", ")", ";", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARM", "ARM::GPRRegClass", "ARM::t2LDRi12", "0", "ARMCC::AL", "ARM::GPRPairRegClass", "ARM::GPRPairnospRegClass", "ARM::t2LDRDi8", "ARM::gsub_0", "ARM::gsub_1", "0", "ARMCC::AL", "ARM"], "File": "Thumb2InstrInfo10", "Func": "loadRegFromStackSlot", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3721, "Length": 335, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "ix86_reorg", "(", "void", ")", "{", "if", "(", "TARGET_ATHLON_K8", "&&", "optimize", "&&", "!", "optimize_size", ")", "ix86_pad_returns", "(", ")", ";", "if", "(", "TARGET_FOUR_JUMP_LIMIT", "&&", "optimize", "&&", "!", "optimize_size", ")", "ix86_avoid_jump_misspredicts", "(", ")", ";", "}", ""], "natrual_language": ["Implement", "machine", "specific", "optimizations", ".", "We", "implement", "padding", "of", "returns", "for", "K8", "CPUs", "and", "pass", "to", "avoid", "4", "jumps", "in", "the", "single", "16", "byte", "window", "."], "TS_V_token": ["i386"], "File": "i3863", "Func": "ix86_reorg", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3722, "Length": 34, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_autovectorize_vector_sizes", "(", "vector_sizes", "*", "sizes", ")", "{", "if", "(", "TARGET_SVE", ")", "sizes", "->", "safe_push", "(", "BYTES_PER_SVE_VECTOR", ")", ";", "sizes", "->", "safe_push", "(", "16", ")", ";", "sizes", "->", "safe_push", "(", "8", ")", ";", "}", ""], "natrual_language": ["Return", "a", "list", "of", "possible", "vector", "sizes", "for", "the", "vectorizer", "to", "iterate", "over", "."], "TS_V_token": ["aarch64", "16", "8"], "File": "aarch645", "Func": "aarch64_autovectorize_vector_sizes", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3723, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "first_reg_to_save", "(", "void", ")", "{", "int", "first_reg", ";", "for", "(", "first_reg", "=", "13", ";", "first_reg", "<=", "31", ";", "first_reg", "++", ")", "if", "(", "save_reg_p", "(", "first_reg", ")", ")", "break", ";", "if", "(", "flag_pic", "&&", "crtl", "->", "uses_pic_offset_table", "&&", "first_reg", ">", "RS6000_PIC_OFFSET_TABLE_REGNUM", ")", "return", "RS6000_PIC_OFFSET_TABLE_REGNUM", ";", "return", "first_reg", ";", "}", ""], "natrual_language": ["Return", "the", "first", "register", "that", "is", "required", "to", "be", "saved", ".", "16", "if", "none", "."], "TS_V_token": ["rs6000", "13", "31"], "File": "rs60007", "Func": "first_reg_to_save", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3724, "Length": 50, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mmix_output_shiftvalue_op_from_str", "(", "FILE", "*", "stream", ",", "const", "char", "*", "mainop", ",", "int64_t", "value", ")", "{", "static", "const", "char", "*", "const", "op_part", "[", "]", "=", "{", "\"L\"", ",", "\"ML\"", ",", "\"MH\"", ",", "\"H\"", "}", ";", "int", "i", ";", "if", "(", "!", "mmix_shiftable_wyde_value", "(", "value", ")", ")", "{", "char", "s", "[", "sizeof", "(", "\"0xffffffffffffffff\"", ")", "]", ";", "sprintf", "(", "s", ",", "\"%#\"", "PRIx64", ",", "value", ")", ";", "internal_error", "(", "\"MMIX Internal: %s is not a shiftable integer\"", ",", "s", ")", ";", "}", "for", "(", "i", "=", "0", ";", "i", "<", "4", ";", "i", "++", ")", "{", "if", "(", "value", "&", "0xffff", ")", "{", "fprintf", "(", "stream", ",", "\"%s%s\"", ",", "mainop", ",", "op_part", "[", "i", "]", ")", ";", "return", ";", "}", "value", ">>=", "16", ";", "}", "fprintf", "(", "stream", ",", "\"%sL\"", ",", "mainop", ")", ";", "}", ""], "natrual_language": ["Print", "operator", "suitable", "for", "doing", "something", "with", "a", "shiftable", "wyde", ".", "The", "type", "of", "operator", "is", "passed", "as", "an", "asm", "output", "modifier", "."], "TS_V_token": ["mmix", "\"L\"", "\"ML\"", "\"MH\"", "\"H\"", "\"0xffffffffffffffff\"", "\"%#\"", "\"MMIX Internal: %s is not a shiftable integer\"", "0", "4", "0xffff", "\"%s%s\"", "16", "\"%sL\""], "File": "mmix", "Func": "mmix_output_shiftvalue_op_from_str", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3725, "Length": 128, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64PreLegalizerCombiner", "::", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "{", "AU", ".", "addRequired", "<", "TargetPassConfig", ">", "(", ")", ";", "AU", ".", "setPreservesCFG", "(", ")", ";", "getSelectionDAGFallbackAnalysisUsage", "(", "AU", ")", ";", "AU", ".", "addRequired", "<", "GISelKnownBitsAnalysis", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "GISelKnownBitsAnalysis", ">", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["AArch64", "AArch64"], "File": "AArch64PreLegalizerCombiner6", "Func": "getAnalysisUsage", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3726, "Length": 57, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "DataLayout", "*", "getDataLayout", "(", ")", "const", "override", "{", "return", "getSubtargetImpl", "(", ")", "->", "getDataLayout", "(", ")", ";", "}", ""], "natrual_language": ["Return", "the", "DataLayout", "associated", "with", "the", "module", "this", "SCEV", "instance", "is", "operating", "on", "."], "TS_V_token": ["X86"], "File": "X86TargetMachine", "Func": "getDataLayout", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3727, "Length": 19, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "mips16_stub_call_address", "(", "mips_one_only_stub", "*", "stub", ")", "{", "rtx", "fn", "=", "mips16_stub_function", "(", "stub", "->", "get_name", "(", ")", ")", ";", "SYMBOL_REF_FLAGS", "(", "fn", ")", "|=", "SYMBOL_FLAG_LOCAL", ";", "if", "(", "!", "call_insn_operand", "(", "fn", ",", "VOIDmode", ")", ")", "fn", "=", "force_reg", "(", "Pmode", ",", "fn", ")", ";", "return", "fn", ";", "}", ""], "natrual_language": ["Return", "a", "legitimate", "call", "address", "for", "STUB", ",", "given", "that", "STUB", "is", "a", "MIPS16", "support", "function", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips16_stub_call_address", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3728, "Length": 51, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseTargetMachine", "::", "addPreEmitPass", "(", "PassManagerBase", "&", "PM", ",", "CodeGenOpt", "::", "Level", "OptLevel", ")", "{", "if", "(", "OptLevel", "!=", "CodeGenOpt", "::", "None", ")", "{", "if", "(", "!", "Subtarget", ".", "isThumb1Only", "(", ")", ")", "PM", ".", "add", "(", "createIfConverterPass", "(", ")", ")", ";", "if", "(", "Subtarget", ".", "hasNEON", "(", ")", ")", "PM", ".", "add", "(", "createNEONMoveFixPass", "(", ")", ")", ";", "}", "if", "(", "Subtarget", ".", "isThumb2", "(", ")", ")", "{", "PM", ".", "add", "(", "createThumb2ITBlockPass", "(", ")", ")", ";", "PM", ".", "add", "(", "createThumb2SizeReductionPass", "(", ")", ")", ";", "}", "PM", ".", "add", "(", "createARMConstantIslandPass", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "pass", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "machine", "code", "is", "emitted", "."], "TS_V_token": ["ARM", "ARM", "ARM"], "File": "ARMTargetMachine91", "Func": "addPreEmitPass", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3729, "Length": 101, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCPhysReg", "*", "ARMBaseRegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "const", "MCPhysReg", "*", "RegList", "=", "STI", ".", "isTargetDarwin", "(", ")", "?", "CSR_iOS_SaveList", ":", "CSR_AAPCS_SaveList", ";", "if", "(", "!", "MF", ")", "return", "RegList", ";", "const", "Function", "*", "F", "=", "MF", "->", "getFunction", "(", ")", ";", "if", "(", "F", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "GHC", ")", "{", "return", "CSR_NoRegs_SaveList", ";", "}", "else", "if", "(", "F", "->", "hasFnAttribute", "(", "\"interrupt\"", ")", ")", "{", "if", "(", "STI", ".", "isMClass", "(", ")", ")", "{", "return", "CSR_AAPCS_SaveList", ";", "}", "else", "if", "(", "F", "->", "getFnAttribute", "(", "\"interrupt\"", ")", ".", "getValueAsString", "(", ")", "==", "\"FIQ\"", ")", "{", "return", "CSR_FIQ_SaveList", ";", "}", "else", "{", "return", "CSR_GenericInt_SaveList", ";", "}", "}", "return", "RegList", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["ARM", "ARM", "\"interrupt\"", "\"interrupt\"", "\"FIQ\""], "File": "ARMBaseRegisterInfo41", "Func": "getCalleeSavedRegs", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3730, "Length": 121, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "print_operand_address", "(", "FILE", "*", "stream", ",", "rtx", "x", ")", "{", "switch", "(", "GET_CODE", "(", "x", ")", ")", "{", "case", "REG", ":", "case", "SUBREG", ":", "fprintf", "(", "stream", ",", "\"@%s\"", ",", "reg_names", "[", "true_regnum", "(", "x", ")", "]", ")", ";", "break", ";", "case", "PLUS", ":", "{", "rtx", "base", "=", "XEXP", "(", "x", ",", "0", ")", ";", "rtx", "index", "=", "XEXP", "(", "x", ",", "1", ")", ";", "switch", "(", "GET_CODE", "(", "index", ")", ")", "{", "case", "CONST_INT", ":", "fprintf", "(", "stream", ",", "\"@(%d,%s)\"", ",", "(", "int", ")", "INTVAL", "(", "index", ")", ",", "reg_names", "[", "true_regnum", "(", "base", ")", "]", ")", ";", "break", ";", "case", "REG", ":", "case", "SUBREG", ":", "{", "int", "base_num", "=", "true_regnum", "(", "base", ")", ";", "int", "index_num", "=", "true_regnum", "(", "index", ")", ";", "fprintf", "(", "stream", ",", "\"@(r0,%s)\"", ",", "reg_names", "[", "MAX", "(", "base_num", ",", "index_num", ")", "]", ")", ";", "break", ";", "}", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "break", ";", "case", "PRE_DEC", ":", "fprintf", "(", "stream", ",", "\"@-%s\"", ",", "reg_names", "[", "true_regnum", "(", "XEXP", "(", "x", ",", "0", ")", ")", "]", ")", ";", "break", ";", "case", "POST_INC", ":", "fprintf", "(", "stream", ",", "\"@%s+\"", ",", "reg_names", "[", "true_regnum", "(", "XEXP", "(", "x", ",", "0", ")", ")", "]", ")", ";", "break", ";", "default", ":", "x", "=", "mark_constant_pool_use", "(", "x", ")", ";", "output_addr_const", "(", "stream", ",", "x", ")", ";", "break", ";", "}", "}", ""], "natrual_language": ["Print", "the", "operand", "address", "represented", "by", "the", "rtx", "addr"], "TS_V_token": ["sh", "\"@%s\"", "0", "1", "\"@(%d,%s)\"", "\"@(r0,%s)\"", "\"@-%s\"", "0", "\"@%s+\"", "0"], "File": "sh3", "Func": "print_operand_address", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3731, "Length": 225, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Thumb1RegisterInfo", "::", "resolveFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "BaseReg", ",", "int64_t", "Offset", ")", "const", "{", "MachineInstr", "&", "MI", "=", "*", "I", ";", "int", "Off", "=", "Offset", ";", "unsigned", "i", "=", "0", ";", "while", "(", "!", "MI", ".", "getOperand", "(", "i", ")", ".", "isFI", "(", ")", ")", "{", "++", "i", ";", "assert", "(", "i", "<", "MI", ".", "getNumOperands", "(", ")", "&&", "\"Instr doesn't have FrameIndex operand!\"", ")", ";", "}", "bool", "Done", "=", "false", ";", "Done", "=", "rewriteFrameIndex", "(", "MI", ",", "i", ",", "BaseReg", ",", "Off", ",", "TII", ")", ";", "assert", "(", "Done", "&&", "\"Unable to resolve frame index!\"", ")", ";", "}", ""], "natrual_language": ["Resolve", "a", "frame", "index", "operand", "of", "an", "instruction", "to", "reference", "the", "indicated", "base", "register", "plus", "offset", "instead", "."], "TS_V_token": ["ARM", "0", "\"Instr doesn't have FrameIndex operand!\"", "\"Unable to resolve frame index!\""], "File": "Thumb1RegisterInfo12", "Func": "resolveFrameIndex", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3732, "Length": 95, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "OR1KSubtarget", "*", "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": ["OR1K", "OR1K"], "File": "OR1KTargetMachine1", "Func": "getSubtargetImpl", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3733, "Length": 18, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "MCSymbol", "*", "GetSymbolFromOperand", "(", "const", "MachineOperand", "&", "MO", ",", "AsmPrinter", "&", "AP", ")", "{", "const", "TargetMachine", "&", "TM", "=", "AP", ".", "TM", ";", "Mangler", "*", "Mang", "=", "AP", ".", "Mang", ";", "const", "DataLayout", "*", "DL", "=", "TM", ".", "getSubtargetImpl", "(", ")", "->", "getDataLayout", "(", ")", ";", "MCContext", "&", "Ctx", "=", "AP", ".", "OutContext", ";", "bool", "isDarwin", "=", "Triple", "(", "TM", ".", "getTargetTriple", "(", ")", ")", ".", "isOSDarwin", "(", ")", ";", "SmallString", "<", "128", ">", "Name", ";", "StringRef", "Suffix", ";", "if", "(", "MO", ".", "getTargetFlags", "(", ")", "==", "PPCII", "::", "MO_PLT_OR_STUB", ")", "{", "if", "(", "isDarwin", ")", "Suffix", "=", "\"$stub\"", ";", "}", "else", "if", "(", "MO", ".", "getTargetFlags", "(", ")", "&", "PPCII", "::", "MO_NLP_FLAG", ")", "Suffix", "=", "\"$non_lazy_ptr\"", ";", "if", "(", "!", "Suffix", ".", "empty", "(", ")", ")", "Name", "+=", "DL", "->", "getPrivateGlobalPrefix", "(", ")", ";", "unsigned", "PrefixLen", "=", "Name", ".", "size", "(", ")", ";", "if", "(", "!", "MO", ".", "isGlobal", "(", ")", ")", "{", "assert", "(", "MO", ".", "isSymbol", "(", ")", "&&", "\"Isn't a symbol reference\"", ")", ";", "Mang", "->", "getNameWithPrefix", "(", "Name", ",", "MO", ".", "getSymbolName", "(", ")", ")", ";", "}", "else", "{", "const", "GlobalValue", "*", "GV", "=", "MO", ".", "getGlobal", "(", ")", ";", "TM", ".", "getNameWithPrefix", "(", "Name", ",", "GV", ",", "*", "Mang", ")", ";", "}", "unsigned", "OrigLen", "=", "Name", ".", "size", "(", ")", "-", "PrefixLen", ";", "Name", "+=", "Suffix", ";", "MCSymbol", "*", "Sym", "=", "Ctx", ".", "GetOrCreateSymbol", "(", "Name", ".", "str", "(", ")", ")", ";", "StringRef", "OrigName", "=", "StringRef", "(", "Name", ")", ".", "substr", "(", "PrefixLen", ",", "OrigLen", ")", ";", "if", "(", "MO", ".", "getTargetFlags", "(", ")", "==", "PPCII", "::", "MO_PLT_OR_STUB", "&&", "isDarwin", ")", "{", "MachineModuleInfoImpl", "::", "StubValueTy", "&", "StubSym", "=", "getMachOMMI", "(", "AP", ")", ".", "getFnStubEntry", "(", "Sym", ")", ";", "if", "(", "StubSym", ".", "getPointer", "(", ")", ")", "return", "Sym", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "StubSym", "=", "MachineModuleInfoImpl", "::", "StubValueTy", "(", "AP", ".", "getSymbol", "(", "MO", ".", "getGlobal", "(", ")", ")", ",", "!", "MO", ".", "getGlobal", "(", ")", "->", "hasInternalLinkage", "(", ")", ")", ";", "}", "else", "{", "StubSym", "=", "MachineModuleInfoImpl", "::", "StubValueTy", "(", "Ctx", ".", "GetOrCreateSymbol", "(", "OrigName", ")", ",", "false", ")", ";", "}", "return", "Sym", ";", "}", "if", "(", "MO", ".", "getTargetFlags", "(", ")", "&", "PPCII", "::", "MO_NLP_FLAG", ")", "{", "MachineModuleInfoMachO", "&", "MachO", "=", "getMachOMMI", "(", "AP", ")", ";", "MachineModuleInfoImpl", "::", "StubValueTy", "&", "StubSym", "=", "(", "MO", ".", "getTargetFlags", "(", ")", "&", "PPCII", "::", "MO_NLP_HIDDEN_FLAG", ")", "?", "MachO", ".", "getHiddenGVStubEntry", "(", "Sym", ")", ":", "MachO", ".", "getGVStubEntry", "(", "Sym", ")", ";", "if", "(", "!", "StubSym", ".", "getPointer", "(", ")", ")", "{", "assert", "(", "MO", ".", "isGlobal", "(", ")", "&&", "\"Extern symbol not handled yet\"", ")", ";", "StubSym", "=", "MachineModuleInfoImpl", "::", "StubValueTy", "(", "AP", ".", "getSymbol", "(", "MO", ".", "getGlobal", "(", ")", ")", ",", "!", "MO", ".", "getGlobal", "(", ")", "->", "hasInternalLinkage", "(", ")", ")", ";", "}", "return", "Sym", ";", "}", "return", "Sym", ";", "}", ""], "natrual_language": ["Lower", "an", "MO_GlobalAddress", "or", "MO_ExternalSymbol", "operand", "to", "an", "MCSymbol", "."], "TS_V_token": ["PowerPC", "128", "PPCII::MO_PLT_OR_STUB", "\"$stub\"", "PPCII::MO_NLP_FLAG", "\"$non_lazy_ptr\"", "\"Isn't a symbol reference\"", "PPCII::MO_PLT_OR_STUB", "PPCII::MO_NLP_FLAG", "PPCII::MO_NLP_HIDDEN_FLAG", "\"Extern symbol not handled yet\""], "File": "PPCMCInstLower49", "Func": "GetSymbolFromOperand", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3734, "Length": 468, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "SparcTargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "0", ";", "case", "SPISD", "::", "CMPICC", ":", "return", "\"SPISD::CMPICC\"", ";", "case", "SPISD", "::", "CMPFCC", ":", "return", "\"SPISD::CMPFCC\"", ";", "case", "SPISD", "::", "BRICC", ":", "return", "\"SPISD::BRICC\"", ";", "case", "SPISD", "::", "BRFCC", ":", "return", "\"SPISD::BRFCC\"", ";", "case", "SPISD", "::", "SELECT_ICC", ":", "return", "\"SPISD::SELECT_ICC\"", ";", "case", "SPISD", "::", "SELECT_FCC", ":", "return", "\"SPISD::SELECT_FCC\"", ";", "case", "SPISD", "::", "Hi", ":", "return", "\"SPISD::Hi\"", ";", "case", "SPISD", "::", "Lo", ":", "return", "\"SPISD::Lo\"", ";", "case", "SPISD", "::", "FTOI", ":", "return", "\"SPISD::FTOI\"", ";", "case", "SPISD", "::", "ITOF", ":", "return", "\"SPISD::ITOF\"", ";", "case", "SPISD", "::", "CALL", ":", "return", "\"SPISD::CALL\"", ";", "case", "SPISD", "::", "RET_FLAG", ":", "return", "\"SPISD::RET_FLAG\"", ";", "}", "}", ""], "natrual_language": ["getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific"], "TS_V_token": ["Sparc", "Sparc", "0", "SPISD::CMPICC", "\"SPISD::CMPICC\"", "SPISD::CMPFCC", "\"SPISD::CMPFCC\"", "SPISD::BRICC", "\"SPISD::BRICC\"", "SPISD::BRFCC", "\"SPISD::BRFCC\"", "SPISD::SELECT_ICC", "\"SPISD::SELECT_ICC\"", "SPISD::SELECT_FCC", "\"SPISD::SELECT_FCC\"", "SPISD::Hi", "\"SPISD::Hi\"", "SPISD::Lo", "\"SPISD::Lo\"", "SPISD::FTOI", "\"SPISD::FTOI\"", "SPISD::ITOF", "\"SPISD::ITOF\"", "SPISD::CALL", "\"SPISD::CALL\"", "SPISD::RET_FLAG", "\"SPISD::RET_FLAG\""], "File": "SparcISelLowering13", "Func": "getTargetNodeName", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3735, "Length": 120, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MVEVPTOptimisations", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "Fn", ")", "{", "const", "ARMSubtarget", "&", "STI", "=", "static_cast", "<", "const", "ARMSubtarget", "&", ">", "(", "Fn", ".", "getSubtarget", "(", ")", ")", ";", "if", "(", "!", "STI", ".", "isThumb2", "(", ")", "||", "!", "STI", ".", "hasMVEIntegerOps", "(", ")", ")", "return", "false", ";", "TII", "=", "static_cast", "<", "const", "Thumb2InstrInfo", "*", ">", "(", "STI", ".", "getInstrInfo", "(", ")", ")", ";", "MRI", "=", "&", "Fn", ".", "getRegInfo", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"********** ARM MVE VPT Optimisations **********\\n\"", "<<", "\"********** Function: \"", "<<", "Fn", ".", "getName", "(", ")", "<<", "'\\n'", ")", ";", "bool", "Modified", "=", "false", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "Fn", ")", "{", "Modified", "|=", "ReplaceVCMPsByVPNOTs", "(", "MBB", ")", ";", "Modified", "|=", "ReduceOldVCCRValueUses", "(", "MBB", ")", ";", "Modified", "|=", "ConvertVPSEL", "(", "MBB", ")", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"**************************************\\n\"", ")", ";", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "\"********** ARM MVE VPT Optimisations **********\\n\"", "\"********** Function: \"", "\"**************************************\\n\""], "File": "MVEVPTOptimisationsPass", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3736, "Length": 141, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "bool", "isVerboseAsm", "(", ")", "const", "{", "return", "IsVerboseAsm", ";", "}", ""], "natrual_language": ["Return", "true", "if", "this", "streamer", "supports", "verbose", "assembly", "and", "if", "it", "is", "enabled", "."], "TS_V_token": ["Cpu0"], "File": "Cpu0AsmStreamer", "Func": "isVerboseAsm", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3737, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_ls2_variable_issue", "(", "rtx_insn", "*", "insn", ")", "{", "if", "(", "mips_ls2", ".", "alu1_turn_p", ")", "{", "if", "(", "cpu_unit_reservation_p", "(", "curr_state", ",", "mips_ls2", ".", "alu1_core_unit_code", ")", ")", "mips_ls2", ".", "alu1_turn_p", "=", "false", ";", "}", "else", "{", "if", "(", "cpu_unit_reservation_p", "(", "curr_state", ",", "mips_ls2", ".", "alu2_core_unit_code", ")", ")", "mips_ls2", ".", "alu1_turn_p", "=", "true", ";", "}", "if", "(", "mips_ls2", ".", "falu1_turn_p", ")", "{", "if", "(", "cpu_unit_reservation_p", "(", "curr_state", ",", "mips_ls2", ".", "falu1_core_unit_code", ")", ")", "mips_ls2", ".", "falu1_turn_p", "=", "false", ";", "}", "else", "{", "if", "(", "cpu_unit_reservation_p", "(", "curr_state", ",", "mips_ls2", ".", "falu2_core_unit_code", ")", ")", "mips_ls2", ".", "falu1_turn_p", "=", "true", ";", "}", "if", "(", "recog_memoized", "(", "insn", ")", ">=", "0", ")", "mips_ls2", ".", "cycle_has_multi_p", "|=", "(", "get_attr_type", "(", "insn", ")", "==", "TYPE_MULTI", ")", ";", "}", ""], "natrual_language": ["Update", "round-robin", "counters", "for", "ALU1/2", "and", "FALU1/2", "."], "TS_V_token": ["mips", "0"], "File": "mips", "Func": "mips_ls2_variable_issue", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3738, "Length": 122, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "LanaiMCExpr", "*", "LanaiMCExpr", "::", "create", "(", "VariantKind", "Kind", ",", "const", "MCExpr", "*", "Expr", ",", "MCContext", "&", "Ctx", ")", "{", "return", "new", "(", "Ctx", ")", "LanaiMCExpr", "(", "Kind", ",", "Expr", ")", ";", "}", ""], "natrual_language": ["This", "creates", "an", "identified", "struct", "."], "TS_V_token": ["Lanai", "Lanai", "Lanai", "Lanai"], "File": "LanaiMCExpr", "Func": "create", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3739, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86RegisterInfo", "::", "canRealignStack", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "if", "(", "!", "TargetRegisterInfo", "::", "canRealignStack", "(", "MF", ")", ")", "return", "false", ";", "const", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "MachineRegisterInfo", "*", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "if", "(", "!", "MRI", "->", "canReserveReg", "(", "FramePtr", ")", ")", "return", "false", ";", "if", "(", "CantUseSP", "(", "MFI", ")", ")", "return", "MRI", "->", "canReserveReg", "(", "BasePtr", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["True", "if", "the", "stack", "can", "be", "realigned", "for", "the", "target", "."], "TS_V_token": ["X86", "X86"], "File": "X86RegisterInfo (2)", "Func": "canRealignStack", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3740, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "loongarch_pass_fpr_single", "(", "machine_mode", "type_mode", ",", "unsigned", "regno", ",", "machine_mode", "value_mode", ",", "HOST_WIDE_INT", "offset", ")", "{", "rtx", "x", "=", "gen_rtx_REG", "(", "value_mode", ",", "regno", ")", ";", "if", "(", "type_mode", "!=", "value_mode", ")", "{", "x", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "x", ",", "GEN_INT", "(", "offset", ")", ")", ";", "x", "=", "gen_rtx_PARALLEL", "(", "type_mode", ",", "gen_rtvec", "(", "1", ",", "x", ")", ")", ";", "}", "return", "x", ";", "}", ""], "natrual_language": ["Return", "the", "representation", "of", "an", "argument", "passed", "or", "returned", "in", "an", "FPR", "when", "the", "value", "has", "mode", "VALUE_MODE", "and", "the", "type", "has", "TYPE_MODE", ".", "The", "two", "modes", "may", "be", "different", "for", "structures", "like", ":", "struct", "__attribute__", "(", "(", "packed", ")", ")", "foo", "{", "float", "f", ";", "}", "where", "the", "SFmode", "value", "``", "f", "''", "is", "passed", "in", "REGNO", "but", "the", "struct", "itself", "has", "mode", "BLKmode", "."], "TS_V_token": ["loongarch", "1"], "File": "loongarch", "Func": "loongarch_pass_fpr_single", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3741, "Length": 67, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsTargetLowering", "::", "hasBitTest", "(", "SDValue", "X", ",", "SDValue", "Y", ")", "const", "{", "if", "(", "auto", "*", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Y", ")", ")", "return", "C", "->", "getAPIntValue", "(", ")", ".", "ule", "(", "15", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "has", "a", "bit-test", "instruction", ":", "(", "X", "&", "(", "1", "<", "<", "Y", ")", ")", "==/", "!", "=", "0", "This", "knowledge", "can", "be", "used", "to", "prevent", "breaking", "the", "pattern", ",", "or", "creating", "it", "if", "it", "could", "be", "recognized", "."], "TS_V_token": ["Mips", "Mips", "15"], "File": "MipsISelLowering53", "Func": "hasBitTest", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3742, "Length": 43, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "tree", "resolve", "(", "function_resolver", "&", "r", ")", "const", "OVERRIDE", "{", "unsigned", "int", "i", ",", "nargs", ";", "type_suffix_index", "type", ";", "if", "(", "!", "r", ".", "check_gp_argument", "(", "1", ",", "i", ",", "nargs", ")", "||", "(", "type", "=", "r", ".", "infer_vector_type", "(", "i", ")", ")", "==", "NUM_TYPE_SUFFIXES", ")", "return", "error_mark_node", ";", "if", "(", "type", "==", "TYPE_SUFFIX_b", ")", "return", "r", ".", "resolve_to", "(", "r", ".", "mode_suffix_id", ",", "type", ")", ";", "if", "(", "type_suffixes", "[", "type", "]", ".", "integer_p", "&&", "type_suffixes", "[", "type", "]", ".", "element_bits", "<", "64", ")", "{", "type_suffix_index", "wide_suffix", "=", "find_type_suffix", "(", "type_suffixes", "[", "type", "]", ".", "tclass", ",", "type_suffixes", "[", "type", "]", ".", "element_bits", "*", "2", ")", ";", "if", "(", "tree", "res", "=", "r", ".", "lookup_form", "(", "r", ".", "mode_suffix_id", ",", "wide_suffix", ")", ")", "return", "res", ";", "}", "return", "r", ".", "report_no_such_form", "(", "type", ")", ";", "}", ""], "natrual_language": ["If", "the", "call", "is", "erroneous", ",", "report", "an", "appropriate", "error", "and", "return", "error_mark_node", ".", "Otherwise", ",", "if", "the", "function", "is", "overloaded", ",", "return", "the", "decl", "of", "the", "non-overloaded", "function", ".", "Return", "NULL_TREE", "otherwise", ",", "indicating", "that", "the", "call", "should", "be", "processed", "in", "the", "normal", "way", "."], "TS_V_token": ["aarch64", "1", "64", "2"], "File": "aarch64-sve-builtins-shapes", "Func": "resolve", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3743, "Length": 137, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64InstrInfo", "::", "areMemAccessesTriviallyDisjoint", "(", "MachineInstr", "*", "MIa", ",", "MachineInstr", "*", "MIb", ",", "AliasAnalysis", "*", "AA", ")", "const", "{", "const", "TargetRegisterInfo", "*", "TRI", "=", "&", "getRegisterInfo", "(", ")", ";", "unsigned", "BaseRegA", "=", "0", ",", "BaseRegB", "=", "0", ";", "int", "OffsetA", "=", "0", ",", "OffsetB", "=", "0", ";", "int", "WidthA", "=", "0", ",", "WidthB", "=", "0", ";", "assert", "(", "MIa", "&&", "MIa", "->", "mayLoadOrStore", "(", ")", "&&", "\"MIa must be a load or store.\"", ")", ";", "assert", "(", "MIb", "&&", "MIb", "->", "mayLoadOrStore", "(", ")", "&&", "\"MIb must be a load or store.\"", ")", ";", "if", "(", "MIa", "->", "hasUnmodeledSideEffects", "(", ")", "||", "MIb", "->", "hasUnmodeledSideEffects", "(", ")", "||", "MIa", "->", "hasOrderedMemoryRef", "(", ")", "||", "MIb", "->", "hasOrderedMemoryRef", "(", ")", ")", "return", "false", ";", "if", "(", "getLdStBaseRegImmOfsWidth", "(", "MIa", ",", "BaseRegA", ",", "OffsetA", ",", "WidthA", ",", "TRI", ")", "&&", "getLdStBaseRegImmOfsWidth", "(", "MIb", ",", "BaseRegB", ",", "OffsetB", ",", "WidthB", ",", "TRI", ")", ")", "{", "if", "(", "BaseRegA", "==", "BaseRegB", ")", "{", "int", "LowOffset", "=", "OffsetA", "<", "OffsetB", "?", "OffsetA", ":", "OffsetB", ";", "int", "HighOffset", "=", "OffsetA", "<", "OffsetB", "?", "OffsetB", ":", "OffsetA", ";", "int", "LowWidth", "=", "(", "LowOffset", "==", "OffsetA", ")", "?", "WidthA", ":", "WidthB", ";", "if", "(", "LowOffset", "+", "LowWidth", "<=", "HighOffset", ")", "return", "true", ";", "}", "}", "return", "false", ";", "}", ""], "natrual_language": ["Sometimes", ",", "it", "is", "possible", "for", "the", "target", "to", "tell", ",", "even", "without", "aliasing", "information", ",", "that", "two", "MIs", "access", "different", "memory", "addresses", "."], "TS_V_token": ["AArch64", "AArch64", "0", "0", "0", "0", "0", "0", "\"MIa must be a load or store.\"", "\"MIb must be a load or store.\""], "File": "AArch64InstrInfo85", "Func": "areMemAccessesTriviallyDisjoint", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3744, "Length": 199, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "CSKYRegisterInfo", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", "MF", ",", "CallingConv", "::", "ID", "Id", ")", "const", "{", "const", "CSKYSubtarget", "&", "STI", "=", "MF", ".", "getSubtarget", "<", "CSKYSubtarget", ">", "(", ")", ";", "if", "(", "STI", ".", "hasFPUv2DoubleFloat", "(", ")", "||", "STI", ".", "hasFPUv3DoubleFloat", "(", ")", ")", "return", "CSR_GPR_FPR64_RegMask", ";", "if", "(", "STI", ".", "hasFPUv2SingleFloat", "(", ")", "||", "STI", ".", "hasFPUv3SingleFloat", "(", ")", ")", "return", "CSR_GPR_FPR32_RegMask", ";", "return", "CSR_I32_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["CSKY", "CSKY", "CSKY", "CSKY"], "File": "CSKYRegisterInfo1", "Func": "getCallPreservedMask", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3745, "Length": 71, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "SparcTargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", ",", "DebugLoc", "dl", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getTarget", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_Sparc32", ")", ";", "if", "(", "MF", ".", "getRegInfo", "(", ")", ".", "liveout_empty", "(", ")", ")", "{", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "if", "(", "RVLocs", "[", "i", "]", ".", "isRegLoc", "(", ")", ")", "MF", ".", "getRegInfo", "(", ")", ".", "addLiveOut", "(", "RVLocs", "[", "i", "]", ".", "getLocReg", "(", ")", ")", ";", "}", "SDValue", "Flag", ";", "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", ")", ";", "}", "unsigned", "RetAddrOffset", "=", "8", ";", "if", "(", "MF", ".", "getFunction", "(", ")", "->", "hasStructRetAttr", "(", ")", ")", "{", "SparcMachineFunctionInfo", "*", "SFI", "=", "MF", ".", "getInfo", "<", "SparcMachineFunctionInfo", ">", "(", ")", ";", "unsigned", "Reg", "=", "SFI", "->", "getSRetReturnReg", "(", ")", ";", "if", "(", "!", "Reg", ")", "llvm_unreachable", "(", "\"sret virtual register not created in the entry block\"", ")", ";", "SDValue", "Val", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "dl", ",", "Reg", ",", "getPointerTy", "(", ")", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "dl", ",", "SP", "::", "I0", ",", "Val", ",", "Flag", ")", ";", "Flag", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "if", "(", "MF", ".", "getRegInfo", "(", ")", ".", "liveout_empty", "(", ")", ")", "MF", ".", "getRegInfo", "(", ")", ".", "addLiveOut", "(", "SP", "::", "I0", ")", ";", "RetAddrOffset", "=", "12", ";", "}", "SDValue", "RetAddrOffsetNode", "=", "DAG", ".", "getConstant", "(", "RetAddrOffset", ",", "MVT", "::", "i32", ")", ";", "if", "(", "Flag", ".", "getNode", "(", ")", ")", "return", "DAG", ".", "getNode", "(", "SPISD", "::", "RET_FLAG", ",", "dl", ",", "MVT", "::", "Other", ",", "Chain", ",", "RetAddrOffsetNode", ",", "Flag", ")", ";", "return", "DAG", ".", "getNode", "(", "SPISD", "::", "RET_FLAG", ",", "dl", ",", "MVT", "::", "Other", ",", "Chain", ",", "RetAddrOffsetNode", ")", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "."], "TS_V_token": ["Sparc", "Sparc", "ISD::OutputArg", "16", "Sparc", "0", "0", "\"Can only return in registers!\"", "1", "8", "Sparc", "Sparc", "\"sret virtual register not created in the entry block\"", "SP::I0", "1", "SP::I0", "12", "MVT::i32", "SPISD::RET_FLAG", "MVT::Other", "SPISD::RET_FLAG", "MVT::Other"], "File": "SparcISelLowering77", "Func": "LowerReturn", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3746, "Length": 421, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SMLoc", "getEndLoc", "(", ")", "const", "{", "return", "EndLoc", ";", "}", ""], "natrual_language": ["getEndLoc", "-", "Get", "the", "location", "of", "the", "last", "token", "of", "this", "operand", "."], "TS_V_token": ["PowerPC"], "File": "PPCAsmParser (2)", "Func": "getEndLoc", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3747, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCPhysReg", "*", "AArch64RegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "assert", "(", "MF", "&&", "\"Invalid MachineFunction pointer.\"", ")", ";", "if", "(", "MF", "->", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "GHC", ")", "return", "CSR_AArch64_NoRegs_SaveList", ";", "if", "(", "MF", "->", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "AnyReg", ")", "return", "CSR_AArch64_AllRegs_SaveList", ";", "if", "(", "MF", "->", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "CXX_FAST_TLS", ")", "return", "MF", "->", "getInfo", "<", "AArch64FunctionInfo", ">", "(", ")", "->", "isSplitCSR", "(", ")", "?", "CSR_AArch64_CXX_TLS_Darwin_PE_SaveList", ":", "CSR_AArch64_CXX_TLS_Darwin_SaveList", ";", "if", "(", "MF", "->", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "PreserveMost", ")", "return", "CSR_AArch64_RT_MostRegs_SaveList", ";", "else", "return", "CSR_AArch64_AAPCS_SaveList", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["AArch64", "AArch64", "\"Invalid MachineFunction pointer.\"", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64RegisterInfo10", "Func": "getCalleeSavedRegs", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3748, "Length": 117, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86TargetLowering", "::", "ComputeNumSignBitsForTargetNode", "(", "SDValue", "Op", ",", "const", "SelectionDAG", "&", ",", "unsigned", "Depth", ")", "const", "{", "if", "(", "Op", ".", "getOpcode", "(", ")", "==", "X86ISD", "::", "SETCC_CARRY", ")", "return", "Op", ".", "getValueType", "(", ")", ".", "getScalarType", "(", ")", ".", "getSizeInBits", "(", ")", ";", "return", "1", ";", "}", ""], "natrual_language": ["Determine", "the", "number", "of", "bits", "in", "the", "operation", "that", "are", "sign", "bits", "."], "TS_V_token": ["X86", "X86", "X86ISD::SETCC_CARRY", "1"], "File": "X86ISelLowering (2)", "Func": "ComputeNumSignBitsForTargetNode", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3749, "Length": 48, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Thumb1InstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "Register", "SrcReg", ",", "bool", "isKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "assert", "(", "(", "RC", "==", "&", "ARM", "::", "tGPRRegClass", "||", "(", "Register", "::", "isPhysicalRegister", "(", "SrcReg", ")", "&&", "isARMLowRegister", "(", "SrcReg", ")", ")", ")", "&&", "\"Unknown regclass!\"", ")", ";", "if", "(", "RC", "==", "&", "ARM", "::", "tGPRRegClass", "||", "(", "Register", "::", "isPhysicalRegister", "(", "SrcReg", ")", "&&", "isARMLowRegister", "(", "SrcReg", ")", ")", ")", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FI", ")", ",", "MachineMemOperand", "::", "MOStore", ",", "MFI", ".", "getObjectSize", "(", "FI", ")", ",", "MFI", ".", "getObjectAlign", "(", "FI", ")", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "tSTRspi", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "}", "}", ""], "natrual_language": ["Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["ARM", "ARM::tGPRRegClass", "ARM", "\"Unknown regclass!\"", "ARM::tGPRRegClass", "ARM", "ARM::tSTRspi", "0", "ARMCC::AL"], "File": "Thumb1InstrInfo20", "Func": "storeRegToStackSlot", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3750, "Length": 218, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "*", "AArch64TargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MachineInstr", "&", "MI", ",", "MachineBasicBlock", "*", "BB", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "MI", ".", "dump", "(", ")", ";", "llvm_unreachable", "(", "\"Unexpected instruction for custom inserter!\"", ")", ";", "case", "AArch64", "::", "F128CSEL", ":", "return", "EmitF128CSEL", "(", "MI", ",", "BB", ")", ";", "case", "TargetOpcode", "::", "STATEPOINT", ":", "MI", ".", "addOperand", "(", "*", "MI", ".", "getMF", "(", ")", ",", "MachineOperand", "::", "CreateReg", "(", "AArch64", "::", "LR", ",", "true", ",", "true", ",", "false", ",", "true", ",", "false", ",", "true", ")", ")", ";", "LLVM_FALLTHROUGH", ";", "case", "TargetOpcode", "::", "STACKMAP", ":", "case", "TargetOpcode", "::", "PATCHPOINT", ":", "return", "emitPatchPoint", "(", "MI", ",", "BB", ")", ";", "case", "AArch64", "::", "CATCHRET", ":", "return", "EmitLoweredCatchRet", "(", "MI", ",", "BB", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'usesCustomInserter", "'", "flag", "."], "TS_V_token": ["AArch64", "AArch64", "\"Unexpected instruction for custom inserter!\"", "AArch64::F128CSEL", "AArch64::LR", "AArch64::CATCHRET"], "File": "AArch64ISelLowering69", "Func": "EmitInstrWithCustomInserter", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3751, "Length": 124, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86TargetLowering", "::", "insertSSPDeclarations", "(", "Module", "&", "M", ")", "const", "{", "if", "(", "Subtarget", ".", "getTargetTriple", "(", ")", ".", "isWindowsMSVCEnvironment", "(", ")", "||", "Subtarget", ".", "getTargetTriple", "(", ")", ".", "isWindowsItaniumEnvironment", "(", ")", ")", "{", "M", ".", "getOrInsertGlobal", "(", "\"__security_cookie\"", ",", "Type", "::", "getInt8PtrTy", "(", "M", ".", "getContext", "(", ")", ")", ")", ";", "auto", "*", "SecurityCheckCookie", "=", "cast", "<", "Function", ">", "(", "M", ".", "getOrInsertFunction", "(", "\"__security_check_cookie\"", ",", "Type", "::", "getVoidTy", "(", "M", ".", "getContext", "(", ")", ")", ",", "Type", "::", "getInt8PtrTy", "(", "M", ".", "getContext", "(", ")", ")", ")", ")", ";", "SecurityCheckCookie", "->", "setCallingConv", "(", "CallingConv", "::", "X86_FastCall", ")", ";", "SecurityCheckCookie", "->", "addAttribute", "(", "1", ",", "Attribute", "::", "AttrKind", "::", "InReg", ")", ";", "return", ";", "}", "if", "(", "hasStackGuardSlotTLS", "(", "Subtarget", ".", "getTargetTriple", "(", ")", ")", ")", "return", ";", "TargetLowering", "::", "insertSSPDeclarations", "(", "M", ")", ";", "}", ""], "natrual_language": ["Inserts", "necessary", "declarations", "for", "SSP", "(", "stack", "protection", ")", "purpose", "."], "TS_V_token": ["X86", "X86", "\"__security_cookie\"", "\"__security_check_cookie\"", "X86", "1"], "File": "X86ISelLowering (2)8", "Func": "insertSSPDeclarations", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3752, "Length": 137, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "char", "*", "ia64_mangle_type", "(", "const_tree", "type", ")", "{", "type", "=", "TYPE_MAIN_VARIANT", "(", "type", ")", ";", "if", "(", "TREE_CODE", "(", "type", ")", "!=", "VOID_TYPE", "&&", "TREE_CODE", "(", "type", ")", "!=", "BOOLEAN_TYPE", "&&", "TREE_CODE", "(", "type", ")", "!=", "INTEGER_TYPE", "&&", "TREE_CODE", "(", "type", ")", "!=", "REAL_TYPE", ")", "return", "NULL", ";", "if", "(", "type", "==", "float128_type_node", "||", "type", "==", "float64x_type_node", ")", "return", "NULL", ";", "if", "(", "!", "TARGET_HPUX", "&&", "TYPE_MODE", "(", "type", ")", "==", "TFmode", ")", "return", "\"g\"", ";", "if", "(", "TYPE_MODE", "(", "type", ")", "==", "XFmode", ")", "return", "TARGET_HPUX", "?", "\"u9__float80\"", ":", "\"e\"", ";", "if", "(", "TYPE_MODE", "(", "type", ")", "==", "RFmode", ")", "return", "\"u7__fpreg\"", ";", "return", "NULL", ";", "}", ""], "natrual_language": ["Return", "the", "mangling", "of", "TYPE", "if", "it", "is", "an", "extended", "fundamental", "type", "."], "TS_V_token": ["ia64", "\"g\"", "\"u9__float80\"", "\"e\"", "\"u7__fpreg\""], "File": "ia641", "Func": "ia64_mangle_type", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3753, "Length": 110, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "assignValueToAddress", "(", "Register", "ValVReg", ",", "Register", "Addr", ",", "uint64_t", "Size", ",", "MachinePointerInfo", "&", "MPO", ",", "CCValAssign", "&", "VA", ")", "override", "{", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "LocInfo", "::", "AExt", ")", "{", "Size", "=", "VA", ".", "getLocVT", "(", ")", ".", "getSizeInBits", "(", ")", "/", "8", ";", "ValVReg", "=", "MIRBuilder", ".", "buildAnyExt", "(", "LLT", "::", "scalar", "(", "Size", "*", "8", ")", ",", "ValVReg", ")", ".", "getReg", "(", "0", ")", ";", "}", "MachineFunction", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "auto", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MPO", ",", "MachineMemOperand", "::", "MOStore", ",", "Size", ",", "inferAlignFromPtrInfo", "(", "MF", ",", "MPO", ")", ")", ";", "MIRBuilder", ".", "buildStore", "(", "ValVReg", ",", "Addr", ",", "*", "MMO", ")", ";", "}", ""], "natrual_language": ["An", "overload", "which", "takes", "an", "ArgInfo", "if", "additional", "information", "about", "the", "arg", "is", "needed", "."], "TS_V_token": ["AArch64", "8", "8", "0"], "File": "AArch64CallLowering12", "Func": "assignValueToAddress", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3754, "Length": 121, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "arm_output_fn_unwind", "(", "FILE", "*", "f", ",", "bool", "prologue", ")", "{", "if", "(", "!", "ARM_EABI_UNWIND_TABLES", ")", "return", ";", "if", "(", "prologue", ")", "fputs", "(", "\"\\t.fnstart\\n\"", ",", "f", ")", ";", "else", "fputs", "(", "\"\\t.fnend\\n\"", ",", "f", ")", ";", "}", ""], "natrual_language": ["Output", "unwind", "directives", "for", "the", "start/end", "of", "a", "function", "."], "TS_V_token": ["arm", "\"\\t.fnstart\\n\"", "\"\\t.fnend\\n\""], "File": "arm3", "Func": "arm_output_fn_unwind", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3755, "Length": 38, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "aarch64_function_value", "(", "const_tree", "type", ",", "const_tree", "func", ",", "bool", "outgoing", "ATTRIBUTE_UNUSED", ")", "{", "machine_mode", "mode", ";", "int", "unsignedp", ";", "int", "count", ";", "machine_mode", "ag_mode", ";", "mode", "=", "TYPE_MODE", "(", "type", ")", ";", "if", "(", "INTEGRAL_TYPE_P", "(", "type", ")", ")", "mode", "=", "promote_function_mode", "(", "type", ",", "mode", ",", "&", "unsignedp", ",", "func", ",", "1", ")", ";", "if", "(", "aarch64_return_in_msb", "(", "type", ")", ")", "{", "HOST_WIDE_INT", "size", "=", "int_size_in_bytes", "(", "type", ")", ";", "if", "(", "size", "%", "UNITS_PER_WORD", "!=", "0", ")", "{", "size", "+=", "UNITS_PER_WORD", "-", "size", "%", "UNITS_PER_WORD", ";", "mode", "=", "int_mode_for_size", "(", "size", "*", "BITS_PER_UNIT", ",", "0", ")", ".", "require", "(", ")", ";", "}", "}", "if", "(", "aarch64_vfp_is_call_or_return_candidate", "(", "mode", ",", "type", ",", "&", "ag_mode", ",", "&", "count", ",", "NULL", ")", ")", "{", "if", "(", "!", "aarch64_composite_type_p", "(", "type", ",", "mode", ")", ")", "{", "gcc_assert", "(", "count", "==", "1", "&&", "mode", "==", "ag_mode", ")", ";", "return", "gen_rtx_REG", "(", "mode", ",", "V0_REGNUM", ")", ";", "}", "else", "{", "int", "i", ";", "rtx", "par", ";", "par", "=", "gen_rtx_PARALLEL", "(", "mode", ",", "rtvec_alloc", "(", "count", ")", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "count", ";", "i", "++", ")", "{", "rtx", "tmp", "=", "gen_rtx_REG", "(", "ag_mode", ",", "V0_REGNUM", "+", "i", ")", ";", "rtx", "offset", "=", "gen_int_mode", "(", "i", "*", "GET_MODE_SIZE", "(", "ag_mode", ")", ",", "Pmode", ")", ";", "tmp", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "tmp", ",", "offset", ")", ";", "XVECEXP", "(", "par", ",", "0", ",", "i", ")", "=", "tmp", ";", "}", "return", "par", ";", "}", "}", "else", "return", "gen_rtx_REG", "(", "mode", ",", "R0_REGNUM", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_FUNCTION_VALUE", ".", "Define", "how", "to", "find", "the", "value", "returned", "by", "a", "function", "."], "TS_V_token": ["aarch64", "1", "0", "0", "1", "0", "0"], "File": "aarch645", "Func": "aarch64_function_value", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3756, "Length": 255, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "ArrayRef", "<", "std", "::", "pair", "<", "unsigned", ",", "const", "char", "*", ">>", "PPCInstrInfo", "::", "getSerializableBitmaskMachineOperandTargetFlags", "(", ")", "const", "{", "using", "namespace", "PPCII", ";", "static", "const", "std", "::", "pair", "<", "unsigned", ",", "const", "char", "*", ">", "TargetFlags", "[", "]", "=", "{", "{", "MO_PLT", ",", "\"ppc-plt\"", "}", ",", "{", "MO_PIC_FLAG", ",", "\"ppc-pic\"", "}", ",", "{", "MO_PCREL_FLAG", ",", "\"ppc-pcrel\"", "}", ",", "{", "MO_GOT_FLAG", ",", "\"ppc-got\"", "}", ",", "{", "MO_PCREL_OPT_FLAG", ",", "\"ppc-opt-pcrel\"", "}", ",", "{", "MO_TLSGD_FLAG", ",", "\"ppc-tlsgd\"", "}", ",", "{", "MO_TLSLD_FLAG", ",", "\"ppc-tlsld\"", "}", ",", "{", "MO_TPREL_FLAG", ",", "\"ppc-tprel\"", "}", ",", "{", "MO_GOT_TLSGD_PCREL_FLAG", ",", "\"ppc-got-tlsgd-pcrel\"", "}", ",", "{", "MO_GOT_TLSLD_PCREL_FLAG", ",", "\"ppc-got-tlsld-pcrel\"", "}", ",", "{", "MO_GOT_TPREL_PCREL_FLAG", ",", "\"ppc-got-tprel-pcrel\"", "}", "}", ";", "return", "makeArrayRef", "(", "TargetFlags", ")", ";", "}", ""], "natrual_language": ["Return", "an", "array", "that", "contains", "the", "bitmask", "target", "flag", "values", "and", "their", "names", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "\"ppc-plt\"", "\"ppc-pic\"", "\"ppc-pcrel\"", "\"ppc-got\"", "\"ppc-opt-pcrel\"", "\"ppc-tlsgd\"", "\"ppc-tlsld\"", "\"ppc-tprel\"", "\"ppc-got-tlsgd-pcrel\"", "\"ppc-got-tlsld-pcrel\"", "\"ppc-got-tprel-pcrel\""], "File": "PPCInstrInfo129", "Func": "getSerializableBitmaskMachineOperandTargetFlags", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3757, "Length": 114, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Cpu0MCInstLower", "::", "Initialize", "(", "MCContext", "*", "C", ")", "{", "Ctx", "=", "C", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "called", "before", "any", "actual", "lowering", "is", "done", "."], "TS_V_token": ["Cpu0", "Cpu0"], "File": "Cpu0MCInstLower", "Func": "Initialize", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3758, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "cortex_a9_sched_adjust_cost", "(", "rtx_insn", "*", "insn", ",", "int", "dep_type", ",", "rtx_insn", "*", "dep", ",", "int", "*", "cost", ")", "{", "switch", "(", "dep_type", ")", "{", "case", "REG_DEP_ANTI", ":", "*", "cost", "=", "0", ";", "return", "false", ";", "case", "REG_DEP_TRUE", ":", "case", "REG_DEP_OUTPUT", ":", "if", "(", "recog_memoized", "(", "insn", ")", ">=", "0", "&&", "recog_memoized", "(", "dep", ")", ">=", "0", ")", "{", "if", "(", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "==", "SET", ")", "{", "if", "(", "GET_MODE_CLASS", "(", "GET_MODE", "(", "SET_DEST", "(", "PATTERN", "(", "insn", ")", ")", ")", ")", "==", "MODE_FLOAT", "||", "GET_MODE_CLASS", "(", "GET_MODE", "(", "SET_SRC", "(", "PATTERN", "(", "insn", ")", ")", ")", ")", "==", "MODE_FLOAT", ")", "{", "enum", "attr_type", "attr_type_insn", "=", "get_attr_type", "(", "insn", ")", ";", "enum", "attr_type", "attr_type_dep", "=", "get_attr_type", "(", "dep", ")", ";", "if", "(", "REG_P", "(", "SET_DEST", "(", "PATTERN", "(", "insn", ")", ")", ")", "&&", "reg_set_p", "(", "SET_DEST", "(", "PATTERN", "(", "insn", ")", ")", ",", "dep", ")", ")", "{", "if", "(", "(", "attr_type_insn", "==", "TYPE_FMACS", "||", "attr_type_insn", "==", "TYPE_FMACD", ")", "&&", "(", "attr_type_dep", "==", "TYPE_FMACS", "||", "attr_type_dep", "==", "TYPE_FMACD", ")", ")", "{", "if", "(", "dep_type", "==", "REG_DEP_OUTPUT", ")", "*", "cost", "=", "insn_default_latency", "(", "dep", ")", "-", "3", ";", "else", "*", "cost", "=", "insn_default_latency", "(", "dep", ")", ";", "return", "false", ";", "}", "else", "{", "if", "(", "dep_type", "==", "REG_DEP_OUTPUT", ")", "*", "cost", "=", "insn_default_latency", "(", "dep", ")", "+", "1", ";", "else", "*", "cost", "=", "insn_default_latency", "(", "dep", ")", ";", "}", "return", "false", ";", "}", "}", "}", "}", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Adjust", "cost", "hook", "for", "Cortex", "A9", "."], "TS_V_token": ["arm", "0", "0", "0", "3", "1"], "File": "arm", "Func": "cortex_a9_sched_adjust_cost", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3759, "Length": 252, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "AArch64Subtarget", "*", "getSubtarget", "(", ")", "const", "{", "return", "&", "getTargetMachine", "(", ")", ".", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ";", "}", ""], "natrual_language": ["getSubtarget", "-", "Return", "the", "subtarget", "for", "which", "this", "machine", "code", "is", "being", "compiled", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64"], "File": "AArch64ISelLowering105", "Func": "getSubtarget", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3760, "Length": 22, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "fixupNeedsRelaxation", "(", "const", "MCFixup", "&", "Fixup", ",", "uint64_t", "Value", ",", "const", "MCRelaxableFragment", "*", "DF", ",", "const", "MCAsmLayout", "&", "Layout", ")", "const", "override", "{", "llvm_unreachable", "(", "\"RelaxInstruction() unimplemented\"", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["Simple", "predicate", "for", "targets", "where", "!", "Resolved", "implies", "requiring", "relaxation", "."], "TS_V_token": ["SIC", "\"RelaxInstruction() unimplemented\""], "File": "SICAsmBackend", "Func": "fixupNeedsRelaxation", "Target": "SIC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3761, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetTransformInfo", "VETargetMachine", "::", "getTargetTransformInfo", "(", "const", "Function", "&", "F", ")", "const", "{", "return", "TargetTransformInfo", "(", "VETTIImpl", "(", "this", ",", "F", ")", ")", ";", "}", ""], "natrual_language": ["Get", "a", "TargetTransformInfo", "implementation", "for", "the", "target", "."], "TS_V_token": ["VE", "VE", "VE"], "File": "VETargetMachine2", "Func": "getTargetTransformInfo", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3762, "Length": 24, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "const", "uint16_t", "*", "lookup", "(", "unsigned", "opcode", ",", "unsigned", "domain", ")", "{", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "array_lengthof", "(", "ReplaceableInstrs", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "if", "(", "ReplaceableInstrs", "[", "i", "]", "[", "domain", "-", "1", "]", "==", "opcode", ")", "return", "ReplaceableInstrs", "[", "i", "]", ";", "return", "nullptr", ";", "}", ""], "natrual_language": ["This", "method", "finds", "the", "value", "with", "the", "given", "Name", "in", "the", "the", "symbol", "table", "."], "TS_V_token": ["X86", "0", "1"], "File": "X86InstrInfo109", "Func": "lookup", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3763, "Length": 58, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "emitValueImpl", "(", "const", "MCExpr", "*", "Value", ",", "unsigned", "Size", ",", "SMLoc", "Loc", ")", "override", "{", "emitDataMappingSymbol", "(", ")", ";", "MCELFStreamer", "::", "emitValueImpl", "(", "Value", ",", "Size", ",", "Loc", ")", ";", "}", ""], "natrual_language": ["Overriding", "these", "functions", "allows", "us", "to", "dismiss", "all", "labels", "that", "are", "candidates", "for", "marking", "as", "microMIPS", "when", ".word/.long/.4byte", "etc", "directives", "are", "emitted", "."], "TS_V_token": ["AArch64"], "File": "AArch64ELFStreamer11", "Func": "emitValueImpl", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3764, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "iq2000_handle_option", "(", "size_t", "code", ",", "const", "char", "*", "arg", ",", "int", "value", "ATTRIBUTE_UNUSED", ")", "{", "switch", "(", "code", ")", "{", "case", "OPT_mcpu_", ":", "if", "(", "strcmp", "(", "arg", ",", "\"iq10\"", ")", "==", "0", ")", "iq2000_tune", "=", "PROCESSOR_IQ10", ";", "else", "if", "(", "strcmp", "(", "arg", ",", "\"iq2000\"", ")", "==", "0", ")", "iq2000_tune", "=", "PROCESSOR_IQ2000", ";", "else", "return", "false", ";", "return", "true", ";", "case", "OPT_march_", ":", "return", "(", "strcmp", "(", "arg", ",", "\"default\"", ")", "==", "0", "||", "strcmp", "(", "arg", ",", "\"DEFAULT\"", ")", "==", "0", "||", "strcmp", "(", "arg", ",", "\"iq2000\"", ")", "==", "0", ")", ";", "default", ":", "return", "true", ";", "}", "}", ""], "natrual_language": ["Implement", "TARGET_HANDLE_OPTION", "."], "TS_V_token": ["iq2000", "\"iq10\"", "0", "\"iq2000\"", "0", "\"default\"", "0", "\"DEFAULT\"", "0", "\"iq2000\"", "0"], "File": "iq20002", "Func": "iq2000_handle_option", "Target": "iq2000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3765, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDNode", "*", "SICDAGToDAGISel", "::", "getGlobalBaseReg", "(", ")", "{", "unsigned", "GlobalBaseReg", "=", "MF", "->", "getInfo", "<", "SICFunctionInfo", ">", "(", ")", "->", "getGlobalBaseReg", "(", ")", ";", "return", "CurDAG", "->", "getRegister", "(", "GlobalBaseReg", ",", "getTargetLowering", "(", ")", "->", "getPointerTy", "(", "CurDAG", "->", "getDataLayout", "(", ")", ")", ")", ".", "getNode", "(", ")", ";", "}", ""], "natrual_language": ["getGlobalBaseReg", "-", "Return", "a", "virtual", "register", "initialized", "with", "the", "the", "global", "base", "register", "value", "."], "TS_V_token": ["SIC", "SIC", "SIC"], "File": "SICISelDAGToDAG", "Func": "getGlobalBaseReg", "Target": "SIC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3766, "Length": 50, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "arm_can_output_mi_thunk", "(", "const_tree", ",", "HOST_WIDE_INT", ",", "HOST_WIDE_INT", "vcall_offset", ",", "const_tree", ")", "{", "if", "(", "vcall_offset", "&&", "TARGET_THUMB1", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Can", "output", "mi_thunk", "for", "all", "cases", "except", "for", "non-zero", "vcall_offset", "in", "Thumb1", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "arm_can_output_mi_thunk", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3767, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ia64_extra_constraint", "(", "rtx", "value", ",", "char", "c", ")", "{", "switch", "(", "c", ")", "{", "case", "'Q'", ":", "return", "memory_operand", "(", "value", ",", "VOIDmode", ")", "&&", "!", "MEM_VOLATILE_P", "(", "value", ")", ";", "case", "'R'", ":", "return", "(", "GET_CODE", "(", "value", ")", "==", "CONST_INT", "&&", "INTVAL", "(", "value", ")", ">=", "1", "&&", "INTVAL", "(", "value", ")", "<=", "4", ")", ";", "case", "'S'", ":", "return", "(", "GET_CODE", "(", "value", ")", "==", "MEM", "&&", "GET_RTX_CLASS", "(", "GET_CODE", "(", "XEXP", "(", "value", ",", "0", ")", ")", ")", "!=", "RTX_AUTOINC", "&&", "(", "reload_in_progress", "||", "memory_operand", "(", "value", ",", "VOIDmode", ")", ")", ")", ";", "case", "'T'", ":", "return", "small_addr_symbolic_operand", "(", "value", ",", "VOIDmode", ")", ";", "case", "'U'", ":", "return", "value", "==", "CONST0_RTX", "(", "GET_MODE", "(", "value", ")", ")", ";", "case", "'W'", ":", "if", "(", "GET_CODE", "(", "value", ")", "==", "CONST_VECTOR", "&&", "GET_MODE_CLASS", "(", "GET_MODE", "(", "value", ")", ")", "==", "MODE_VECTOR_INT", ")", "{", "value", "=", "simplify_subreg", "(", "DImode", ",", "value", ",", "GET_MODE", "(", "value", ")", ",", "0", ")", ";", "return", "ia64_const_ok_for_letter_p", "(", "INTVAL", "(", "value", ")", ",", "'J'", ")", ";", "}", "return", "false", ";", "case", "'Y'", ":", "return", "(", "GET_CODE", "(", "value", ")", "==", "CONST_VECTOR", "&&", "GET_MODE", "(", "value", ")", "==", "V2SFmode", "&&", "ia64_const_double_ok_for_letter_p", "(", "XVECEXP", "(", "value", ",", "0", ",", "0", ")", ",", "'G'", ")", "&&", "ia64_const_double_ok_for_letter_p", "(", "XVECEXP", "(", "value", ",", "0", ",", "1", ")", ",", "'G'", ")", ")", ";", "default", ":", "return", "false", ";", "}", "}", ""], "natrual_language": ["Implement", "EXTRA_CONSTRAINT", "."], "TS_V_token": ["ia64", "1", "4", "0", "0", "0", "0", "0", "1"], "File": "ia643", "Func": "ia64_extra_constraint", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3768, "Length": 232, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "ARMSelectionDAGInfo", "::", "EmitTargetCodeForMemset", "(", "SelectionDAG", "&", "DAG", ",", "SDLoc", "dl", ",", "SDValue", "Chain", ",", "SDValue", "Dst", ",", "SDValue", "Src", ",", "SDValue", "Size", ",", "unsigned", "Align", ",", "bool", "isVolatile", ",", "MachinePointerInfo", "DstPtrInfo", ")", "const", "{", "const", "ARMSubtarget", "&", "Subtarget", "=", "DAG", ".", "getTarget", "(", ")", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "if", "(", "!", "Subtarget", ".", "isAAPCS_ABI", "(", ")", "||", "Subtarget", ".", "isTargetMachO", "(", ")", "||", "Subtarget", ".", "isTargetWindows", "(", ")", ")", "return", "SDValue", "(", ")", ";", "const", "ARMTargetLowering", "&", "TLI", "=", "*", "static_cast", "<", "const", "ARMTargetLowering", "*", ">", "(", "DAG", ".", "getTarget", "(", ")", ".", "getTargetLowering", "(", ")", ")", ";", "TargetLowering", "::", "ArgListTy", "Args", ";", "TargetLowering", "::", "ArgListEntry", "Entry", ";", "Type", "*", "IntPtrTy", "=", "TLI", ".", "getDataLayout", "(", ")", "->", "getIntPtrType", "(", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "Entry", ".", "Node", "=", "Dst", ";", "Entry", ".", "Ty", "=", "IntPtrTy", ";", "Args", ".", "push_back", "(", "Entry", ")", ";", "Entry", ".", "Node", "=", "Size", ";", "Entry", ".", "Ty", "=", "IntPtrTy", ";", "Entry", ".", "isSExt", "=", "false", ";", "Args", ".", "push_back", "(", "Entry", ")", ";", "if", "(", "Src", ".", "getValueType", "(", ")", ".", "bitsGT", "(", "MVT", "::", "i32", ")", ")", "Src", "=", "DAG", ".", "getNode", "(", "ISD", "::", "TRUNCATE", ",", "dl", ",", "MVT", "::", "i32", ",", "Src", ")", ";", "else", "Src", "=", "DAG", ".", "getNode", "(", "ISD", "::", "ZERO_EXTEND", ",", "dl", ",", "MVT", "::", "i32", ",", "Src", ")", ";", "Entry", ".", "Node", "=", "Src", ";", "Entry", ".", "Ty", "=", "Type", "::", "getInt32Ty", "(", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "Entry", ".", "isSExt", "=", "true", ";", "Args", ".", "push_back", "(", "Entry", ")", ";", "TargetLowering", "::", "CallLoweringInfo", "CLI", "(", "DAG", ")", ";", "CLI", ".", "setDebugLoc", "(", "dl", ")", ".", "setChain", "(", "Chain", ")", ".", "setCallee", "(", "TLI", ".", "getLibcallCallingConv", "(", "RTLIB", "::", "MEMSET", ")", ",", "Type", "::", "getVoidTy", "(", "*", "DAG", ".", "getContext", "(", ")", ")", ",", "DAG", ".", "getExternalSymbol", "(", "TLI", ".", "getLibcallName", "(", "RTLIB", "::", "MEMSET", ")", ",", "TLI", ".", "getPointerTy", "(", ")", ")", ",", "std", "::", "move", "(", "Args", ")", ",", "0", ")", ".", "setDiscardResult", "(", ")", ";", "std", "::", "pair", "<", "SDValue", ",", "SDValue", ">", "CallResult", "=", "TLI", ".", "LowerCallTo", "(", "CLI", ")", ";", "return", "CallResult", ".", "second", ";", "}", ""], "natrual_language": ["Emit", "target-specific", "code", "that", "performs", "a", "memset", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "MVT::i32", "ISD::TRUNCATE", "MVT::i32", "ISD::ZERO_EXTEND", "MVT::i32", "0"], "File": "ARMSelectionDAGInfo19", "Func": "EmitTargetCodeForMemset", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3769, "Length": 366, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseRegisterInfo", "::", "needsFrameBaseReg", "(", "MachineInstr", "*", "MI", ",", "int64_t", "Offset", ")", "const", "{", "for", "(", "unsigned", "i", "=", "0", ";", "!", "MI", "->", "getOperand", "(", "i", ")", ".", "isFI", "(", ")", ";", "++", "i", ")", "{", "assert", "(", "i", "<", "MI", "->", "getNumOperands", "(", ")", "&&", "\"Instr doesn't have FrameIndex operand!\"", ")", ";", "}", "unsigned", "Opc", "=", "MI", "->", "getOpcode", "(", ")", ";", "switch", "(", "Opc", ")", "{", "case", "ARM", "::", "LDRi12", ":", "case", "ARM", "::", "LDRH", ":", "case", "ARM", "::", "LDRBi12", ":", "case", "ARM", "::", "STRi12", ":", "case", "ARM", "::", "STRH", ":", "case", "ARM", "::", "STRBi12", ":", "case", "ARM", "::", "t2LDRi12", ":", "case", "ARM", "::", "t2LDRi8", ":", "case", "ARM", "::", "t2STRi12", ":", "case", "ARM", "::", "t2STRi8", ":", "case", "ARM", "::", "VLDRS", ":", "case", "ARM", "::", "VLDRD", ":", "case", "ARM", "::", "VSTRS", ":", "case", "ARM", "::", "VSTRD", ":", "case", "ARM", "::", "tSTRspi", ":", "case", "ARM", "::", "tLDRspi", ":", "if", "(", "ForceAllBaseRegAlloc", ")", "return", "true", ";", "break", ";", "default", ":", "return", "false", ";", "}", "MachineFunction", "&", "MF", "=", "*", "MI", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "TargetFrameInfo", "*", "TFI", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameInfo", "(", ")", ";", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "ARMFunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "int64_t", "FPOffset", "=", "Offset", "-", "8", ";", "if", "(", "!", "AFI", "->", "isThumbFunction", "(", ")", "||", "!", "AFI", "->", "isThumb1OnlyFunction", "(", ")", ")", "FPOffset", "-=", "80", ";", "Offset", "=", "-", "Offset", ";", "Offset", "+=", "MFI", "->", "getLocalFrameSize", "(", ")", ";", "Offset", "+=", "128", ";", "unsigned", "StackAlign", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameInfo", "(", ")", "->", "getStackAlignment", "(", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", "&&", "!", "(", "(", "MFI", "->", "getLocalFrameMaxAlign", "(", ")", ">", "StackAlign", ")", "&&", "canRealignStack", "(", "MF", ")", ")", ")", "{", "if", "(", "isFrameOffsetLegal", "(", "MI", ",", "FPOffset", ")", ")", "return", "false", ";", "}", "if", "(", "!", "MFI", "->", "hasVarSizedObjects", "(", ")", "&&", "isFrameOffsetLegal", "(", "MI", ",", "Offset", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "instruction", "'s", "frame", "index", "reference", "would", "be", "better", "served", "by", "a", "base", "register", "other", "than", "FP", "or", "SP", "."], "TS_V_token": ["ARM", "ARM", "0", "\"Instr doesn't have FrameIndex operand!\"", "ARM::LDRi12", "ARM::LDRH", "ARM::LDRBi12", "ARM::STRi12", "ARM::STRH", "ARM::STRBi12", "ARM::t2LDRi12", "ARM::t2LDRi8", "ARM::t2STRi12", "ARM::t2STRi8", "ARM::VLDRS", "ARM::VLDRD", "ARM::VSTRS", "ARM::VSTRD", "ARM::tSTRspi", "ARM::tLDRspi", "ARM", "ARM", "8", "80", "128"], "File": "ARMBaseRegisterInfo36", "Func": "needsFrameBaseReg", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3770, "Length": 338, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86PassConfig", "::", "addIRPasses", "(", ")", "{", "addPass", "(", "createAtomicExpandPass", "(", ")", ")", ";", "addPass", "(", "createX86LowerAMXIntrinsicsPass", "(", ")", ")", ";", "addPass", "(", "createX86LowerAMXTypePass", "(", ")", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "==", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createX86PreAMXConfigPass", "(", ")", ")", ";", "TargetPassConfig", "::", "addIRPasses", "(", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "{", "addPass", "(", "createInterleavedAccessPass", "(", ")", ")", ";", "addPass", "(", "createX86PartialReductionPass", "(", ")", ")", ";", "}", "addPass", "(", "createIndirectBrExpandPass", "(", ")", ")", ";", "const", "Triple", "&", "TT", "=", "TM", "->", "getTargetTriple", "(", ")", ";", "if", "(", "TT", ".", "isOSWindows", "(", ")", ")", "{", "if", "(", "TT", ".", "getArch", "(", ")", "==", "Triple", "::", "x86_64", ")", "{", "addPass", "(", "createCFGuardDispatchPass", "(", ")", ")", ";", "}", "else", "{", "addPass", "(", "createCFGuardCheckPass", "(", ")", ")", ";", "}", "}", "if", "(", "TM", "->", "Options", ".", "JMCInstrument", ")", "addPass", "(", "createJMCInstrumenterPass", "(", ")", ")", ";", "}", ""], "natrual_language": ["Add", "common", "target", "configurable", "passes", "that", "perform", "LLVM", "IR", "to", "IR", "transforms", "following", "machine", "independent", "optimization", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86"], "File": "X86TargetMachine61", "Func": "addIRPasses", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3771, "Length": 156, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "x86_order_regs_for_local_alloc", "(", "void", ")", "{", "int", "pos", "=", "0", ";", "int", "i", ";", "for", "(", "i", "=", "0", ";", "i", "<", "FIRST_PSEUDO_REGISTER", ";", "i", "++", ")", "if", "(", "GENERAL_REGNO_P", "(", "i", ")", "&&", "call_used_or_fixed_reg_p", "(", "i", ")", ")", "reg_alloc_order", "[", "pos", "++", "]", "=", "i", ";", "for", "(", "i", "=", "0", ";", "i", "<", "FIRST_PSEUDO_REGISTER", ";", "i", "++", ")", "if", "(", "GENERAL_REGNO_P", "(", "i", ")", "&&", "!", "call_used_or_fixed_reg_p", "(", "i", ")", ")", "reg_alloc_order", "[", "pos", "++", "]", "=", "i", ";", "if", "(", "!", "TARGET_SSE_MATH", ")", "for", "(", "i", "=", "FIRST_STACK_REG", ";", "i", "<=", "LAST_STACK_REG", ";", "i", "++", ")", "reg_alloc_order", "[", "pos", "++", "]", "=", "i", ";", "for", "(", "i", "=", "FIRST_SSE_REG", ";", "i", "<=", "LAST_SSE_REG", ";", "i", "++", ")", "reg_alloc_order", "[", "pos", "++", "]", "=", "i", ";", "for", "(", "i", "=", "FIRST_REX_SSE_REG", ";", "i", "<=", "LAST_REX_SSE_REG", ";", "i", "++", ")", "reg_alloc_order", "[", "pos", "++", "]", "=", "i", ";", "for", "(", "i", "=", "FIRST_EXT_REX_SSE_REG", ";", "i", "<=", "LAST_EXT_REX_SSE_REG", ";", "i", "++", ")", "reg_alloc_order", "[", "pos", "++", "]", "=", "i", ";", "for", "(", "i", "=", "FIRST_MASK_REG", ";", "i", "<=", "LAST_MASK_REG", ";", "i", "++", ")", "reg_alloc_order", "[", "pos", "++", "]", "=", "i", ";", "if", "(", "TARGET_SSE_MATH", ")", "for", "(", "i", "=", "FIRST_STACK_REG", ";", "i", "<=", "LAST_STACK_REG", ";", "i", "++", ")", "reg_alloc_order", "[", "pos", "++", "]", "=", "i", ";", "for", "(", "i", "=", "FIRST_MMX_REG", ";", "i", "<=", "LAST_MMX_REG", ";", "i", "++", ")", "reg_alloc_order", "[", "pos", "++", "]", "=", "i", ";", "while", "(", "pos", "<", "FIRST_PSEUDO_REGISTER", ")", "reg_alloc_order", "[", "pos", "++", "]", "=", "0", ";", "}", ""], "natrual_language": ["Order", "the", "registers", "for", "register", "allocator", "."], "TS_V_token": ["i386", "0", "0", "0", "0"], "File": "i386", "Func": "x86_order_regs_for_local_alloc", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3772, "Length": 252, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64TargetStreamer", "::", "emitNoteSection", "(", "unsigned", "Flags", ")", "{", "if", "(", "Flags", "==", "0", ")", "return", ";", "MCStreamer", "&", "OutStreamer", "=", "getStreamer", "(", ")", ";", "MCContext", "&", "Context", "=", "OutStreamer", ".", "getContext", "(", ")", ";", "MCSectionELF", "*", "Nt", "=", "Context", ".", "getELFSection", "(", "\".note.gnu.property\"", ",", "ELF", "::", "SHT_NOTE", ",", "ELF", "::", "SHF_ALLOC", ")", ";", "if", "(", "Nt", "->", "isRegistered", "(", ")", ")", "{", "SMLoc", "Loc", ";", "Context", ".", "reportWarning", "(", "Loc", ",", "\"The .note.gnu.property is not emitted because it is already present.\"", ")", ";", "return", ";", "}", "MCSection", "*", "Cur", "=", "OutStreamer", ".", "getCurrentSectionOnly", "(", ")", ";", "OutStreamer", ".", "SwitchSection", "(", "Nt", ")", ";", "OutStreamer", ".", "emitValueToAlignment", "(", "Align", "(", "8", ")", ".", "value", "(", ")", ")", ";", "OutStreamer", ".", "emitIntValue", "(", "4", ",", "4", ")", ";", "OutStreamer", ".", "emitIntValue", "(", "4", "*", "4", ",", "4", ")", ";", "OutStreamer", ".", "emitIntValue", "(", "ELF", "::", "NT_GNU_PROPERTY_TYPE_0", ",", "4", ")", ";", "OutStreamer", ".", "emitBytes", "(", "StringRef", "(", "\"GNU\"", ",", "4", ")", ")", ";", "OutStreamer", ".", "emitIntValue", "(", "ELF", "::", "GNU_PROPERTY_AARCH64_FEATURE_1_AND", ",", "4", ")", ";", "OutStreamer", ".", "emitIntValue", "(", "4", ",", "4", ")", ";", "OutStreamer", ".", "emitIntValue", "(", "Flags", ",", "4", ")", ";", "OutStreamer", ".", "emitIntValue", "(", "0", ",", "4", ")", ";", "OutStreamer", ".", "endSection", "(", "Nt", ")", ";", "OutStreamer", ".", "SwitchSection", "(", "Cur", ")", ";", "}", ""], "natrual_language": ["Callback", "used", "to", "implement", "the", ".note.gnu.property", "section", "."], "TS_V_token": ["AArch64", "AArch64", "0", "\".note.gnu.property\"", "\"The .note.gnu.property is not emitted because it is already present.\"", "8", "4", "4", "4", "4", "4", "4", "\"GNU\"", "4", "4", "4", "4", "4", "0", "4"], "File": "AArch64TargetStreamer13", "Func": "emitNoteSection", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3773, "Length": 205, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "ThumbRegisterInfo", "&", "getRegisterInfo", "(", ")", "const", "override", "{", "return", "RI", ";", "}", ""], "natrual_language": ["getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "."], "TS_V_token": ["ARM"], "File": "Thumb1InstrInfo1", "Func": "getRegisterInfo", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3774, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "gen_v9_scc", "(", "rtx", "dest", ",", "enum", "rtx_code", "compare_code", ",", "rtx", "x", ",", "rtx", "y", ")", "{", "if", "(", "!", "TARGET_ARCH64", "&&", "(", "GET_MODE", "(", "x", ")", "==", "DImode", "||", "GET_MODE", "(", "dest", ")", "==", "DImode", ")", ")", "return", "0", ";", "if", "(", "TARGET_ARCH64", "&&", "GET_MODE_CLASS", "(", "GET_MODE", "(", "x", ")", ")", "==", "MODE_INT", "&&", "y", "==", "const0_rtx", "&&", "v9_regcmp_p", "(", "compare_code", ")", ")", "{", "rtx", "op0", "=", "x", ";", "rtx", "temp", ";", "if", "(", "compare_code", "==", "NE", "&&", "GET_MODE", "(", "dest", ")", "==", "DImode", "&&", "rtx_equal_p", "(", "op0", ",", "dest", ")", ")", "{", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "dest", ",", "gen_rtx_IF_THEN_ELSE", "(", "DImode", ",", "gen_rtx_fmt_ee", "(", "compare_code", ",", "DImode", ",", "op0", ",", "const0_rtx", ")", ",", "const1_rtx", ",", "dest", ")", ")", ")", ";", "return", "1", ";", "}", "if", "(", "reg_overlap_mentioned_p", "(", "dest", ",", "op0", ")", ")", "{", "op0", "=", "gen_reg_rtx", "(", "GET_MODE", "(", "x", ")", ")", ";", "emit_move_insn", "(", "op0", ",", "x", ")", ";", "}", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "dest", ",", "const0_rtx", ")", ")", ";", "if", "(", "GET_MODE", "(", "op0", ")", "!=", "DImode", ")", "{", "temp", "=", "gen_reg_rtx", "(", "DImode", ")", ";", "convert_move", "(", "temp", ",", "op0", ",", "0", ")", ";", "}", "else", "temp", "=", "op0", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "dest", ",", "gen_rtx_IF_THEN_ELSE", "(", "GET_MODE", "(", "dest", ")", ",", "gen_rtx_fmt_ee", "(", "compare_code", ",", "DImode", ",", "temp", ",", "const0_rtx", ")", ",", "const1_rtx", ",", "dest", ")", ")", ")", ";", "return", "1", ";", "}", "else", "{", "x", "=", "gen_compare_reg_1", "(", "compare_code", ",", "x", ",", "y", ")", ";", "y", "=", "const0_rtx", ";", "gcc_assert", "(", "GET_MODE", "(", "x", ")", "!=", "CC_NOOVmode", "&&", "GET_MODE", "(", "x", ")", "!=", "CCX_NOOVmode", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "dest", ",", "const0_rtx", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "dest", ",", "gen_rtx_IF_THEN_ELSE", "(", "GET_MODE", "(", "dest", ")", ",", "gen_rtx_fmt_ee", "(", "compare_code", ",", "GET_MODE", "(", "x", ")", ",", "x", ",", "y", ")", ",", "const1_rtx", ",", "dest", ")", ")", ")", ";", "return", "1", ";", "}", "}", ""], "natrual_language": ["This", "function", "is", "used", "for", "v9", "only", ".", "CODE", "is", "the", "code", "for", "an", "Scc", "'s", "comparison", ".", "OPERANDS", "[", "0", "]", "is", "the", "target", "of", "the", "Scc", "insn", ".", "OPERANDS", "[", "1", "]", "is", "the", "value", "we", "compare", "against", "const0_rtx", "(", "which", "has", "n't", "been", "generated", "yet", ")", ".", "This", "function", "is", "needed", "to", "turn", "(", "set", "(", "reg", ":", "SI", "110", ")", "(", "gt", "(", "reg", ":", "CCX", "100", "%", "icc", ")", "(", "const_int", "0", ")", ")", ")", "into", "(", "set", "(", "reg", ":", "SI", "110", ")", "(", "gt", ":", "DI", "(", "reg", ":", "CCX", "100", "%", "icc", ")", "(", "const_int", "0", ")", ")", ")", "IE", ":", "The", "instruction", "recognizer", "needs", "to", "see", "the", "mode", "of", "the", "comparison", "to", "find", "the", "right", "instruction", ".", "We", "could", "use", "``", "gt", ":", "DI", "''", "right", "in", "the", "define_expand", ",", "but", "leaving", "it", "out", "allows", "us", "to", "handle", "DI", ",", "SI", ",", "etc", ".", "We", "refer", "to", "the", "global", "sparc", "compare", "operands", "sparc_compare_op0", "and", "sparc_compare_op1", "."], "TS_V_token": ["sparc", "0", "1", "0", "1", "1"], "File": "sparc4", "Func": "gen_v9_scc", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3775, "Length": 325, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "CCAssignFn", "*", "AArch64TargetLowering", "::", "CCAssignFnForCall", "(", "CallingConv", "::", "ID", "CC", ",", "bool", "IsVarArg", ")", "const", "{", "switch", "(", "CC", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unsupported calling convention.\"", ")", ";", "case", "CallingConv", "::", "WebKit_JS", ":", "return", "CC_AArch64_WebKit_JS", ";", "case", "CallingConv", "::", "C", ":", "case", "CallingConv", "::", "Fast", ":", "if", "(", "!", "Subtarget", "->", "isTargetDarwin", "(", ")", ")", "return", "CC_AArch64_AAPCS", ";", "return", "IsVarArg", "?", "CC_AArch64_DarwinPCS_VarArg", ":", "CC_AArch64_DarwinPCS", ";", "}", "}", ""], "natrual_language": ["Selects", "the", "correct", "CCAssignFn", "for", "a", "given", "CallingConvention", "value", "."], "TS_V_token": ["AArch64", "AArch64", "\"Unsupported calling convention.\"", "AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64ISelLowering117", "Func": "CCAssignFnForCall", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3776, "Length": 67, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "X86FastISel", "::", "fastMaterializeConstant", "(", "const", "Constant", "*", "C", ")", "{", "EVT", "CEVT", "=", "TLI", ".", "getValueType", "(", "DL", ",", "C", "->", "getType", "(", ")", ",", "true", ")", ";", "if", "(", "!", "CEVT", ".", "isSimple", "(", ")", ")", "return", "0", ";", "MVT", "VT", "=", "CEVT", ".", "getSimpleVT", "(", ")", ";", "if", "(", "const", "auto", "*", "CI", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "C", ")", ")", "return", "X86MaterializeInt", "(", "CI", ",", "VT", ")", ";", "else", "if", "(", "const", "ConstantFP", "*", "CFP", "=", "dyn_cast", "<", "ConstantFP", ">", "(", "C", ")", ")", "return", "X86MaterializeFP", "(", "CFP", ",", "VT", ")", ";", "else", "if", "(", "const", "GlobalValue", "*", "GV", "=", "dyn_cast", "<", "GlobalValue", ">", "(", "C", ")", ")", "return", "X86MaterializeGV", "(", "GV", ",", "VT", ")", ";", "else", "if", "(", "isa", "<", "UndefValue", ">", "(", "C", ")", ")", "{", "unsigned", "Opc", "=", "0", ";", "switch", "(", "VT", ".", "SimpleTy", ")", "{", "default", ":", "break", ";", "case", "MVT", "::", "f32", ":", "if", "(", "!", "X86ScalarSSEf32", ")", "Opc", "=", "X86", "::", "LD_Fp032", ";", "break", ";", "case", "MVT", "::", "f64", ":", "if", "(", "!", "X86ScalarSSEf64", ")", "Opc", "=", "X86", "::", "LD_Fp064", ";", "break", ";", "case", "MVT", "::", "f80", ":", "Opc", "=", "X86", "::", "LD_Fp080", ";", "break", ";", "}", "if", "(", "Opc", ")", "{", "Register", "ResultReg", "=", "createResultReg", "(", "TLI", ".", "getRegClassFor", "(", "VT", ")", ")", ";", "BuildMI", "(", "*", "FuncInfo", ".", "MBB", ",", "FuncInfo", ".", "InsertPt", ",", "DbgLoc", ",", "TII", ".", "get", "(", "Opc", ")", ",", "ResultReg", ")", ";", "return", "ResultReg", ";", "}", "}", "return", "0", ";", "}", ""], "natrual_language": ["Emit", "a", "constant", "in", "a", "register", "using", "target-specific", "logic", ",", "such", "as", "constant", "pool", "loads", "."], "TS_V_token": ["X86", "X86", "0", "X86", "X86", "X86", "0", "MVT::f32", "X86", "X86::LD_Fp032", "MVT::f64", "X86", "X86::LD_Fp064", "MVT::f80", "X86::LD_Fp080", "0"], "File": "X86FastISel59", "Func": "fastMaterializeConstant", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3777, "Length": 249, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "section", "*", "pa_elf_select_rtx_section", "(", "machine_mode", "mode", ",", "rtx", "x", ",", "unsigned", "HOST_WIDE_INT", "align", ")", "{", "if", "(", "function_label_operand", "(", "x", ",", "VOIDmode", ")", ")", "{", "tree", "decl", "=", "SYMBOL_REF_DECL", "(", "x", ")", ";", "if", "(", "!", "decl", "||", "(", "DECL_P", "(", "decl", ")", "&&", "DECL_COMDAT_GROUP", "(", "decl", ")", ")", ")", "return", "get_named_section", "(", "NULL", ",", "\".data.rel.ro.local\"", ",", "1", ")", ";", "}", "return", "default_elf_select_rtx_section", "(", "mode", ",", "x", ",", "align", ")", ";", "}", ""], "natrual_language": ["Implement", "pa_elf_select_rtx_section", ".", "If", "X", "is", "a", "function", "label", "operand", "and", "the", "function", "is", "in", "a", "COMDAT", "group", ",", "place", "the", "plabel", "reference", "in", "the", ".data.rel.ro.local", "section", ".", "The", "linker", "ignores", "references", "to", "symbols", "in", "discarded", "sections", "from", "this", "section", "."], "TS_V_token": ["pa", "\".data.rel.ro.local\"", "1"], "File": "pa", "Func": "pa_elf_select_rtx_section", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3778, "Length": 73, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "isF128SoftLibCall", "(", "const", "char", "*", "CallSym", ")", "{", "const", "char", "*", "const", "LibCalls", "[", "]", "=", "{", "\"__addtf3\"", ",", "\"__divtf3\"", ",", "\"__eqtf2\"", ",", "\"__extenddftf2\"", ",", "\"__extendsftf2\"", ",", "\"__fixtfdi\"", ",", "\"__fixtfsi\"", ",", "\"__fixtfti\"", ",", "\"__fixunstfdi\"", ",", "\"__fixunstfsi\"", ",", "\"__fixunstfti\"", ",", "\"__floatditf\"", ",", "\"__floatsitf\"", ",", "\"__floattitf\"", ",", "\"__floatunditf\"", ",", "\"__floatunsitf\"", ",", "\"__floatuntitf\"", ",", "\"__getf2\"", ",", "\"__gttf2\"", ",", "\"__letf2\"", ",", "\"__lttf2\"", ",", "\"__multf3\"", ",", "\"__netf2\"", ",", "\"__powitf2\"", ",", "\"__subtf3\"", ",", "\"__trunctfdf2\"", ",", "\"__trunctfsf2\"", ",", "\"__unordtf2\"", ",", "\"ceill\"", ",", "\"copysignl\"", ",", "\"cosl\"", ",", "\"exp2l\"", ",", "\"expl\"", ",", "\"floorl\"", ",", "\"fmal\"", ",", "\"fmaxl\"", ",", "\"fmodl\"", ",", "\"log10l\"", ",", "\"log2l\"", ",", "\"logl\"", ",", "\"nearbyintl\"", ",", "\"powl\"", ",", "\"rintl\"", ",", "\"roundl\"", ",", "\"sinl\"", ",", "\"sqrtl\"", ",", "\"truncl\"", "}", ";", "auto", "Comp", "=", "[", "]", "(", "const", "char", "*", "S1", ",", "const", "char", "*", "S2", ")", "{", "return", "strcmp", "(", "S1", ",", "S2", ")", "<", "0", ";", "}", ";", "assert", "(", "std", "::", "is_sorted", "(", "std", "::", "begin", "(", "LibCalls", ")", ",", "std", "::", "end", "(", "LibCalls", ")", ",", "Comp", ")", ")", ";", "return", "std", "::", "binary_search", "(", "std", "::", "begin", "(", "LibCalls", ")", ",", "std", "::", "end", "(", "LibCalls", ")", ",", "CallSym", ",", "Comp", ")", ";", "}", ""], "natrual_language": ["This", "function", "returns", "true", "if", "CallSym", "is", "a", "long", "double", "emulation", "routine", "."], "TS_V_token": ["Mips", "\"__addtf3\"", "\"__divtf3\"", "\"__eqtf2\"", "\"__extenddftf2\"", "\"__extendsftf2\"", "\"__fixtfdi\"", "\"__fixtfsi\"", "\"__fixtfti\"", "\"__fixunstfdi\"", "\"__fixunstfsi\"", "\"__fixunstfti\"", "\"__floatditf\"", "\"__floatsitf\"", "\"__floattitf\"", "\"__floatunditf\"", "\"__floatunsitf\"", "\"__floatuntitf\"", "\"__getf2\"", "\"__gttf2\"", "\"__letf2\"", "\"__lttf2\"", "\"__multf3\"", "\"__netf2\"", "\"__powitf2\"", "\"__subtf3\"", "\"__trunctfdf2\"", "\"__trunctfsf2\"", "\"__unordtf2\"", "\"ceill\"", "\"copysignl\"", "\"cosl\"", "\"exp2l\"", "\"expl\"", "\"floorl\"", "\"fmal\"", "\"fmaxl\"", "\"fmodl\"", "\"log10l\"", "\"log2l\"", "\"logl\"", "\"nearbyintl\"", "\"powl\"", "\"rintl\"", "\"roundl\"", "\"sinl\"", "\"sqrtl\"", "\"truncl\"", "0"], "File": "MipsCCState15", "Func": "isF128SoftLibCall", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3779, "Length": 192, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86InstrInfo", "::", "canInsertSelect", "(", "const", "MachineBasicBlock", "&", "MBB", ",", "ArrayRef", "<", "MachineOperand", ">", "Cond", ",", "Register", "DstReg", ",", "Register", "TrueReg", ",", "Register", "FalseReg", ",", "int", "&", "CondCycles", ",", "int", "&", "TrueCycles", ",", "int", "&", "FalseCycles", ")", "const", "{", "if", "(", "!", "Subtarget", ".", "hasCMov", "(", ")", ")", "return", "false", ";", "if", "(", "Cond", ".", "size", "(", ")", "!=", "1", ")", "return", "false", ";", "if", "(", "(", "X86", "::", "CondCode", ")", "Cond", "[", "0", "]", ".", "getImm", "(", ")", ">", "X86", "::", "LAST_VALID_COND", ")", "return", "false", ";", "const", "MachineRegisterInfo", "&", "MRI", "=", "MBB", ".", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "const", "TargetRegisterClass", "*", "RC", "=", "RI", ".", "getCommonSubClass", "(", "MRI", ".", "getRegClass", "(", "TrueReg", ")", ",", "MRI", ".", "getRegClass", "(", "FalseReg", ")", ")", ";", "if", "(", "!", "RC", ")", "return", "false", ";", "if", "(", "X86", "::", "GR16RegClass", ".", "hasSubClassEq", "(", "RC", ")", "||", "X86", "::", "GR32RegClass", ".", "hasSubClassEq", "(", "RC", ")", "||", "X86", "::", "GR64RegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "CondCycles", "=", "2", ";", "TrueCycles", "=", "2", ";", "FalseCycles", "=", "2", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "it", "is", "possible", "to", "insert", "a", "select", "instruction", "that", "chooses", "between", "TrueReg", "and", "FalseReg", "based", "on", "the", "condition", "code", "in", "Cond", "."], "TS_V_token": ["X86", "X86", "1", "X86::CondCode", "0", "X86::LAST_VALID_COND", "X86::GR16RegClass", "X86::GR32RegClass", "X86::GR64RegClass", "2", "2", "2"], "File": "X86InstrInfo (2)3", "Func": "canInsertSelect", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3780, "Length": 184, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86AsmPrinter", "::", "PrintAsmOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNo", ",", "unsigned", "AsmVariant", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "O", ")", "{", "if", "(", "ExtraCode", "&&", "ExtraCode", "[", "0", "]", ")", "{", "if", "(", "ExtraCode", "[", "1", "]", "!=", "0", ")", "return", "true", ";", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "switch", "(", "ExtraCode", "[", "0", "]", ")", "{", "default", ":", "return", "AsmPrinter", "::", "PrintAsmOperand", "(", "MI", ",", "OpNo", ",", "AsmVariant", ",", "ExtraCode", ",", "O", ")", ";", "case", "'a'", ":", "switch", "(", "MO", ".", "getType", "(", ")", ")", "{", "default", ":", "return", "true", ";", "case", "MachineOperand", "::", "MO_Immediate", ":", "O", "<<", "MO", ".", "getImm", "(", ")", ";", "return", "false", ";", "case", "MachineOperand", "::", "MO_ConstantPoolIndex", ":", "case", "MachineOperand", "::", "MO_JumpTableIndex", ":", "case", "MachineOperand", "::", "MO_ExternalSymbol", ":", "llvm_unreachable", "(", "\"unexpected operand type!\"", ")", ";", "case", "MachineOperand", "::", "MO_GlobalAddress", ":", "printSymbolOperand", "(", "*", "this", ",", "MO", ",", "O", ")", ";", "if", "(", "Subtarget", "->", "isPICStyleRIPRel", "(", ")", ")", "O", "<<", "\"(%rip)\"", ";", "return", "false", ";", "case", "MachineOperand", "::", "MO_Register", ":", "O", "<<", "'('", ";", "printOperand", "(", "*", "this", ",", "MI", ",", "OpNo", ",", "O", ")", ";", "O", "<<", "')'", ";", "return", "false", ";", "}", "case", "'c'", ":", "switch", "(", "MO", ".", "getType", "(", ")", ")", "{", "default", ":", "printOperand", "(", "*", "this", ",", "MI", ",", "OpNo", ",", "O", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_Immediate", ":", "O", "<<", "MO", ".", "getImm", "(", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_ConstantPoolIndex", ":", "case", "MachineOperand", "::", "MO_JumpTableIndex", ":", "case", "MachineOperand", "::", "MO_ExternalSymbol", ":", "llvm_unreachable", "(", "\"unexpected operand type!\"", ")", ";", "case", "MachineOperand", "::", "MO_GlobalAddress", ":", "printSymbolOperand", "(", "*", "this", ",", "MO", ",", "O", ")", ";", "break", ";", "}", "return", "false", ";", "case", "'A'", ":", "if", "(", "MO", ".", "isReg", "(", ")", ")", "{", "O", "<<", "'*'", ";", "printOperand", "(", "*", "this", ",", "MI", ",", "OpNo", ",", "O", ")", ";", "return", "false", ";", "}", "return", "true", ";", "case", "'b'", ":", "case", "'h'", ":", "case", "'w'", ":", "case", "'k'", ":", "case", "'q'", ":", "case", "'V'", ":", "if", "(", "MO", ".", "isReg", "(", ")", ")", "return", "printAsmMRegister", "(", "*", "this", ",", "MO", ",", "ExtraCode", "[", "0", "]", ",", "O", ")", ";", "printOperand", "(", "*", "this", ",", "MI", ",", "OpNo", ",", "O", ")", ";", "return", "false", ";", "case", "'P'", ":", "printPCRelImm", "(", "*", "this", ",", "MI", ",", "OpNo", ",", "O", ")", ";", "return", "false", ";", "case", "'n'", ":", "if", "(", "MO", ".", "isImm", "(", ")", ")", "{", "O", "<<", "-", "MO", ".", "getImm", "(", ")", ";", "return", "false", ";", "}", "O", "<<", "'-'", ";", "}", "}", "printOperand", "(", "*", "this", ",", "MI", ",", "OpNo", ",", "O", ",", "nullptr", ",", "AsmVariant", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["PrintAsmOperand", "-", "Print", "out", "an", "operand", "for", "an", "inline", "asm", "expression", "."], "TS_V_token": ["X86", "X86", "0", "1", "0", "0", "\"unexpected operand type!\"", "\"(%rip)\"", "\"unexpected operand type!\"", "0"], "File": "X86AsmPrinter", "Func": "PrintAsmOperand", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3781, "Length": 443, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "X86TargetLowering", "::", "PerformDAGCombine", "(", "SDNode", "*", "N", ",", "DAGCombinerInfo", "&", "DCI", ")", "const", "{", "SelectionDAG", "&", "DAG", "=", "DCI", ".", "DAG", ";", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "EXTRACT_VECTOR_ELT", ":", "return", "PerformEXTRACT_VECTOR_ELTCombine", "(", "N", ",", "DAG", ",", "*", "this", ")", ";", "case", "ISD", "::", "SELECT", ":", "return", "PerformSELECTCombine", "(", "N", ",", "DAG", ",", "Subtarget", ")", ";", "case", "X86ISD", "::", "CMOV", ":", "return", "PerformCMOVCombine", "(", "N", ",", "DAG", ",", "DCI", ")", ";", "case", "ISD", "::", "MUL", ":", "return", "PerformMulCombine", "(", "N", ",", "DAG", ",", "DCI", ")", ";", "case", "ISD", "::", "SHL", ":", "case", "ISD", "::", "SRA", ":", "case", "ISD", "::", "SRL", ":", "return", "PerformShiftCombine", "(", "N", ",", "DAG", ",", "Subtarget", ")", ";", "case", "ISD", "::", "OR", ":", "return", "PerformOrCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "STORE", ":", "return", "PerformSTORECombine", "(", "N", ",", "DAG", ",", "Subtarget", ")", ";", "case", "X86ISD", "::", "FXOR", ":", "case", "X86ISD", "::", "FOR", ":", "return", "PerformFORCombine", "(", "N", ",", "DAG", ")", ";", "case", "X86ISD", "::", "FAND", ":", "return", "PerformFANDCombine", "(", "N", ",", "DAG", ")", ";", "case", "X86ISD", "::", "BT", ":", "return", "PerformBTCombine", "(", "N", ",", "DAG", ",", "DCI", ")", ";", "case", "X86ISD", "::", "VZEXT_MOVL", ":", "return", "PerformVZEXT_MOVLCombine", "(", "N", ",", "DAG", ")", ";", "case", "ISD", "::", "ZERO_EXTEND", ":", "return", "PerformZExtCombine", "(", "N", ",", "DAG", ")", ";", "case", "X86ISD", "::", "SHUFPS", ":", "case", "X86ISD", "::", "SHUFPD", ":", "case", "X86ISD", "::", "PALIGN", ":", "case", "X86ISD", "::", "PUNPCKHBW", ":", "case", "X86ISD", "::", "PUNPCKHWD", ":", "case", "X86ISD", "::", "PUNPCKHDQ", ":", "case", "X86ISD", "::", "PUNPCKHQDQ", ":", "case", "X86ISD", "::", "UNPCKHPS", ":", "case", "X86ISD", "::", "UNPCKHPD", ":", "case", "X86ISD", "::", "PUNPCKLBW", ":", "case", "X86ISD", "::", "PUNPCKLWD", ":", "case", "X86ISD", "::", "PUNPCKLDQ", ":", "case", "X86ISD", "::", "PUNPCKLQDQ", ":", "case", "X86ISD", "::", "UNPCKLPS", ":", "case", "X86ISD", "::", "UNPCKLPD", ":", "case", "X86ISD", "::", "MOVHLPS", ":", "case", "X86ISD", "::", "MOVLHPS", ":", "case", "X86ISD", "::", "PSHUFD", ":", "case", "X86ISD", "::", "PSHUFHW", ":", "case", "X86ISD", "::", "PSHUFLW", ":", "case", "X86ISD", "::", "MOVSS", ":", "case", "X86ISD", "::", "MOVSD", ":", "case", "ISD", "::", "VECTOR_SHUFFLE", ":", "return", "PerformShuffleCombine", "(", "N", ",", "DAG", ",", "*", "this", ")", ";", "}", "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": ["X86", "X86", "ISD::EXTRACT_VECTOR_ELT", "ISD::SELECT", "X86ISD::CMOV", "ISD::MUL", "ISD::SHL", "ISD::SRA", "ISD::SRL", "ISD::OR", "ISD::STORE", "X86ISD::FXOR", "X86ISD::FOR", "X86ISD::FAND", "X86ISD::BT", "X86ISD::VZEXT_MOVL", "ISD::ZERO_EXTEND", "X86ISD::SHUFPS", "X86ISD::SHUFPD", "X86ISD::PALIGN", "X86ISD::PUNPCKHBW", "X86ISD::PUNPCKHWD", "X86ISD::PUNPCKHDQ", "X86ISD::PUNPCKHQDQ", "X86ISD::UNPCKHPS", "X86ISD::UNPCKHPD", "X86ISD::PUNPCKLBW", "X86ISD::PUNPCKLWD", "X86ISD::PUNPCKLDQ", "X86ISD::PUNPCKLQDQ", "X86ISD::UNPCKLPS", "X86ISD::UNPCKLPD", "X86ISD::MOVHLPS", "X86ISD::MOVLHPS", "X86ISD::PSHUFD", "X86ISD::PSHUFHW", "X86ISD::PSHUFLW", "X86ISD::MOVSS", "X86ISD::MOVSD", "ISD::VECTOR_SHUFFLE"], "File": "X86ISelLowering93", "Func": "PerformDAGCombine", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3782, "Length": 359, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ix86_initialize_callee_abi", "(", "unsigned", "int", "abi_id", ")", "{", "gcc_assert", "(", "abi_id", "==", "ABI_VZEROUPPER", ")", ";", "predefined_function_abi", "&", "vzeroupper_abi", "=", "function_abis", "[", "abi_id", "]", ";", "if", "(", "!", "vzeroupper_abi", ".", "initialized_p", "(", ")", ")", "{", "HARD_REG_SET", "full_reg_clobbers", ";", "CLEAR_HARD_REG_SET", "(", "full_reg_clobbers", ")", ";", "vzeroupper_abi", ".", "initialize", "(", "ABI_VZEROUPPER", ",", "full_reg_clobbers", ")", ";", "}", "}", ""], "natrual_language": ["Initialize", "function_abis", "with", "corresponding", "abi_id", ",", "currently", "only", "handle", "vzeroupper", "."], "TS_V_token": ["i386"], "File": "i386", "Func": "ix86_initialize_callee_abi", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3783, "Length": 53, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMAsmPrinter", "::", "doFinalization", "(", "Module", "&", "M", ")", "{", "for", "(", "Module", "::", "const_global_iterator", "I", "=", "M", ".", "global_begin", "(", ")", ",", "E", "=", "M", ".", "global_end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "printModuleLevelGV", "(", "I", ")", ";", "if", "(", "Subtarget", "->", "isTargetDarwin", "(", ")", ")", "{", "SwitchToDataSection", "(", "\"\"", ")", ";", "for", "(", "StringSet", "<", ">", "::", "iterator", "i", "=", "FnStubs", ".", "begin", "(", ")", ",", "e", "=", "FnStubs", ".", "end", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "if", "(", "TM", ".", "getRelocationModel", "(", ")", "==", "Reloc", "::", "PIC_", ")", "SwitchToTextSection", "(", "\".section __TEXT,__picsymbolstub4,symbol_stubs,\"", "\"none,16\"", ",", "0", ")", ";", "else", "SwitchToTextSection", "(", "\".section __TEXT,__symbol_stub4,symbol_stubs,\"", "\"none,12\"", ",", "0", ")", ";", "EmitAlignment", "(", "2", ")", ";", "O", "<<", "\"\\t.code\\t32\\n\"", ";", "const", "char", "*", "p", "=", "i", "->", "getKeyData", "(", ")", ";", "printSuffixedName", "(", "p", ",", "\"$stub\"", ")", ";", "O", "<<", "\":\\n\"", ";", "O", "<<", "\"\\t.indirect_symbol \"", "<<", "p", "<<", "\"\\n\"", ";", "O", "<<", "\"\\tldr ip, \"", ";", "printSuffixedName", "(", "p", ",", "\"$slp\"", ")", ";", "O", "<<", "\"\\n\"", ";", "if", "(", "TM", ".", "getRelocationModel", "(", ")", "==", "Reloc", "::", "PIC_", ")", "{", "printSuffixedName", "(", "p", ",", "\"$scv\"", ")", ";", "O", "<<", "\":\\n\"", ";", "O", "<<", "\"\\tadd ip, pc, ip\\n\"", ";", "}", "O", "<<", "\"\\tldr pc, [ip, #0]\\n\"", ";", "printSuffixedName", "(", "p", ",", "\"$slp\"", ")", ";", "O", "<<", "\":\\n\"", ";", "O", "<<", "\"\\t.long\\t\"", ";", "printSuffixedName", "(", "p", ",", "\"$lazy_ptr\"", ")", ";", "if", "(", "TM", ".", "getRelocationModel", "(", ")", "==", "Reloc", "::", "PIC_", ")", "{", "O", "<<", "\"-(\"", ";", "printSuffixedName", "(", "p", ",", "\"$scv\"", ")", ";", "O", "<<", "\"+8)\\n\"", ";", "}", "else", "O", "<<", "\"\\n\"", ";", "SwitchToDataSection", "(", "\".lazy_symbol_pointer\"", ",", "0", ")", ";", "printSuffixedName", "(", "p", ",", "\"$lazy_ptr\"", ")", ";", "O", "<<", "\":\\n\"", ";", "O", "<<", "\"\\t.indirect_symbol \"", "<<", "p", "<<", "\"\\n\"", ";", "O", "<<", "\"\\t.long\\tdyld_stub_binding_helper\\n\"", ";", "}", "O", "<<", "\"\\n\"", ";", "if", "(", "!", "GVNonLazyPtrs", ".", "empty", "(", ")", ")", "{", "SwitchToDataSection", "(", "\"\\t.non_lazy_symbol_pointer\"", ",", "0", ")", ";", "for", "(", "StringSet", "<", ">", "::", "iterator", "i", "=", "GVNonLazyPtrs", ".", "begin", "(", ")", ",", "e", "=", "GVNonLazyPtrs", ".", "end", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "const", "char", "*", "p", "=", "i", "->", "getKeyData", "(", ")", ";", "printSuffixedName", "(", "p", ",", "\"$non_lazy_ptr\"", ")", ";", "O", "<<", "\":\\n\"", ";", "O", "<<", "\"\\t.indirect_symbol \"", "<<", "p", "<<", "\"\\n\"", ";", "O", "<<", "\"\\t.long\\t0\\n\"", ";", "}", "}", "if", "(", "!", "HiddenGVNonLazyPtrs", ".", "empty", "(", ")", ")", "{", "SwitchToSection", "(", "TAI", "->", "getDataSection", "(", ")", ")", ";", "for", "(", "StringSet", "<", ">", "::", "iterator", "i", "=", "HiddenGVNonLazyPtrs", ".", "begin", "(", ")", ",", "e", "=", "HiddenGVNonLazyPtrs", ".", "end", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "const", "char", "*", "p", "=", "i", "->", "getKeyData", "(", ")", ";", "EmitAlignment", "(", "2", ")", ";", "printSuffixedName", "(", "p", ",", "\"$non_lazy_ptr\"", ")", ";", "O", "<<", "\":\\n\"", ";", "O", "<<", "\"\\t.long \"", "<<", "p", "<<", "\"\\n\"", ";", "}", "}", "DW", "->", "EndModule", "(", ")", ";", "O", "<<", "\"\\t.subsections_via_symbols\\n\"", ";", "}", "else", "{", "DW", "->", "EndModule", "(", ")", ";", "}", "return", "AsmPrinter", "::", "doFinalization", "(", "M", ")", ";", "}", ""], "natrual_language": ["doFinalization", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "any", "necessary", "clean", "up", "after", "all", "passes", "have", "run", "."], "TS_V_token": ["ARM", "ARM", "\"\"", "\".section __TEXT,__picsymbolstub4,symbol_stubs,\"", "\"none,16\"", "0", "\".section __TEXT,__symbol_stub4,symbol_stubs,\"", "\"none,12\"", "0", "2", "\"\\t.code\\t32\\n\"", "\"$stub\"", "\":\\n\"", "\"\\t.indirect_symbol \"", "\"\\n\"", "\"\\tldr ip, \"", "\"$slp\"", "\"\\n\"", "\"$scv\"", "\":\\n\"", "\"\\tadd ip, pc, ip\\n\"", "\"\\tldr pc, [ip, #0]\\n\"", "\"$slp\"", "\":\\n\"", "\"\\t.long\\t\"", "\"$lazy_ptr\"", "\"-(\"", "\"$scv\"", "\"+8)\\n\"", "\"\\n\"", "\".lazy_symbol_pointer\"", "0", "\"$lazy_ptr\"", "\":\\n\"", "\"\\t.indirect_symbol \"", "\"\\n\"", "\"\\t.long\\tdyld_stub_binding_helper\\n\"", "\"\\n\"", "\"\\t.non_lazy_symbol_pointer\"", "0", "\"$non_lazy_ptr\"", "\":\\n\"", "\"\\t.indirect_symbol \"", "\"\\n\"", "\"\\t.long\\t0\\n\"", "2", "\"$non_lazy_ptr\"", "\":\\n\"", "\"\\t.long \"", "\"\\n\"", "\"\\t.subsections_via_symbols\\n\""], "File": "ARMAsmPrinter31", "Func": "doFinalization", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3784, "Length": 495, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Register", "OutgoingValueHandler", "::", "extendRegister", "(", "Register", "ValReg", ",", "const", "CCValAssign", "&", "VA", ")", "{", "LLT", "LocTy", "{", "VA", ".", "getLocVT", "(", ")", "}", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "case", "CCValAssign", "::", "SExt", ":", "{", "Register", "ExtReg", "=", "MRI", ".", "createGenericVirtualRegister", "(", "LocTy", ")", ";", "MIRBuilder", ".", "buildSExt", "(", "ExtReg", ",", "ValReg", ")", ";", "return", "ExtReg", ";", "}", "case", "CCValAssign", "::", "ZExt", ":", "{", "Register", "ExtReg", "=", "MRI", ".", "createGenericVirtualRegister", "(", "LocTy", ")", ";", "MIRBuilder", ".", "buildZExt", "(", "ExtReg", ",", "ValReg", ")", ";", "return", "ExtReg", ";", "}", "case", "CCValAssign", "::", "AExt", ":", "{", "Register", "ExtReg", "=", "MRI", ".", "createGenericVirtualRegister", "(", "LocTy", ")", ";", "MIRBuilder", ".", "buildAnyExt", "(", "ExtReg", ",", "ValReg", ")", ";", "return", "ExtReg", ";", "}", "case", "CCValAssign", "::", "Full", ":", "return", "ValReg", ";", "default", ":", "break", ";", "}", "llvm_unreachable", "(", "\"unable to extend register\"", ")", ";", "}", ""], "natrual_language": ["Extend", "a", "register", "to", "the", "location", "type", "given", "in", "VA", ",", "capped", "at", "extending", "to", "at", "most", "MaxSize", "bits", "."], "TS_V_token": ["Mips", "\"unable to extend register\""], "File": "MipsCallLowering10", "Func": "extendRegister", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3785, "Length": 139, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "mve_bool_vec_to_const", "(", "rtx", "const_vec", ")", "{", "int", "n_elts", "=", "GET_MODE_NUNITS", "(", "GET_MODE", "(", "const_vec", ")", ")", ";", "int", "repeat", "=", "16", "/", "n_elts", ";", "int", "i", ";", "int", "hi_val", "=", "0", ";", "for", "(", "i", "=", "0", ";", "i", "<", "n_elts", ";", "i", "++", ")", "{", "rtx", "el", "=", "CONST_VECTOR_ELT", "(", "const_vec", ",", "i", ")", ";", "unsigned", "HOST_WIDE_INT", "elpart", ";", "gcc_assert", "(", "CONST_INT_P", "(", "el", ")", ")", ";", "elpart", "=", "INTVAL", "(", "el", ")", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "repeat", ";", "j", "++", ")", "hi_val", "|=", "elpart", "<<", "(", "i", "*", "repeat", "+", "j", ")", ";", "}", "return", "gen_int_mode", "(", "hi_val", ",", "HImode", ")", ";", "}", ""], "natrual_language": ["Return", "a", "HI", "representation", "of", "CONST_VEC", "suitable", "for", "MVE", "predicates", "."], "TS_V_token": ["arm", "16", "0", "0", "0"], "File": "arm", "Func": "mve_bool_vec_to_const", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3786, "Length": 112, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "X86FrameLowering", "::", "mergeSPUpdates", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "MBBI", ",", "bool", "doMergeWithPrevious", ")", "const", "{", "if", "(", "(", "doMergeWithPrevious", "&&", "MBBI", "==", "MBB", ".", "begin", "(", ")", ")", "||", "(", "!", "doMergeWithPrevious", "&&", "MBBI", "==", "MBB", ".", "end", "(", ")", ")", ")", "return", "0", ";", "MachineBasicBlock", "::", "iterator", "PI", "=", "doMergeWithPrevious", "?", "std", "::", "prev", "(", "MBBI", ")", ":", "MBBI", ";", "PI", "=", "skipDebugInstructionsBackward", "(", "PI", ",", "MBB", ".", "begin", "(", ")", ")", ";", "if", "(", "doMergeWithPrevious", "&&", "PI", "!=", "MBB", ".", "begin", "(", ")", "&&", "PI", "->", "isCFIInstruction", "(", ")", ")", "PI", "=", "std", "::", "prev", "(", "PI", ")", ";", "unsigned", "Opc", "=", "PI", "->", "getOpcode", "(", ")", ";", "int", "Offset", "=", "0", ";", "if", "(", "(", "Opc", "==", "X86", "::", "ADD64ri32", "||", "Opc", "==", "X86", "::", "ADD64ri8", "||", "Opc", "==", "X86", "::", "ADD32ri", "||", "Opc", "==", "X86", "::", "ADD32ri8", ")", "&&", "PI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", "==", "StackPtr", ")", "{", "assert", "(", "PI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", "==", "StackPtr", ")", ";", "Offset", "=", "PI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "}", "else", "if", "(", "(", "Opc", "==", "X86", "::", "LEA32r", "||", "Opc", "==", "X86", "::", "LEA64_32r", ")", "&&", "PI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", "==", "StackPtr", "&&", "PI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", "==", "StackPtr", "&&", "PI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", "==", "1", "&&", "PI", "->", "getOperand", "(", "3", ")", ".", "getReg", "(", ")", "==", "X86", "::", "NoRegister", "&&", "PI", "->", "getOperand", "(", "5", ")", ".", "getReg", "(", ")", "==", "X86", "::", "NoRegister", ")", "{", "Offset", "=", "PI", "->", "getOperand", "(", "4", ")", ".", "getImm", "(", ")", ";", "}", "else", "if", "(", "(", "Opc", "==", "X86", "::", "SUB64ri32", "||", "Opc", "==", "X86", "::", "SUB64ri8", "||", "Opc", "==", "X86", "::", "SUB32ri", "||", "Opc", "==", "X86", "::", "SUB32ri8", ")", "&&", "PI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", "==", "StackPtr", ")", "{", "assert", "(", "PI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", "==", "StackPtr", ")", ";", "Offset", "=", "-", "PI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "}", "else", "return", "0", ";", "PI", "=", "MBB", ".", "erase", "(", "PI", ")", ";", "if", "(", "PI", "!=", "MBB", ".", "end", "(", ")", "&&", "PI", "->", "isCFIInstruction", "(", ")", ")", "PI", "=", "MBB", ".", "erase", "(", "PI", ")", ";", "if", "(", "!", "doMergeWithPrevious", ")", "MBBI", "=", "skipDebugInstructionsForward", "(", "PI", ",", "MBB", ".", "end", "(", ")", ")", ";", "return", "Offset", ";", "}", ""], "natrual_language": ["Check", "the", "instruction", "before/after", "the", "passed", "instruction", "."], "TS_V_token": ["X86", "X86", "0", "0", "X86::ADD64ri32", "X86::ADD64ri8", "X86::ADD32ri", "X86::ADD32ri8", "0", "1", "2", "X86::LEA32r", "X86::LEA64_32r", "0", "1", "2", "1", "3", "X86::NoRegister", "5", "X86::NoRegister", "4", "X86::SUB64ri32", "X86::SUB64ri8", "X86::SUB32ri", "X86::SUB32ri8", "0", "1", "2", "0"], "File": "X86FrameLowering10", "Func": "mergeSPUpdates", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3787, "Length": 427, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMElfTargetObjectFile", "::", "Initialize", "(", "MCContext", "&", "Ctx", ",", "const", "TargetMachine", "&", "TM", ")", "{", "bool", "isAAPCS_ABI", "=", "TM", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ".", "isAAPCS_ABI", "(", ")", ";", "TargetLoweringObjectFileELF", "::", "Initialize", "(", "Ctx", ",", "TM", ")", ";", "InitializeELF", "(", "isAAPCS_ABI", ")", ";", "if", "(", "isAAPCS_ABI", ")", "{", "LSDASection", "=", "NULL", ";", "}", "AttributesSection", "=", "getContext", "(", ")", ".", "getELFSection", "(", "\".ARM.attributes\"", ",", "ELF", "::", "SHT_ARM_ATTRIBUTES", ",", "0", ",", "SectionKind", "::", "getMetadata", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "called", "before", "any", "actual", "lowering", "is", "done", "."], "TS_V_token": ["ARM", "ARM", "ARM", "\".ARM.attributes\"", "ARM", "0"], "File": "ARMTargetObjectFile27", "Func": "Initialize", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3788, "Length": 79, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDNode", "*", "SparcDAGToDAGISel", "::", "getGlobalBaseReg", "(", ")", "{", "unsigned", "GlobalBaseReg", "=", "TM", ".", "getInstrInfo", "(", ")", "->", "getGlobalBaseReg", "(", "MF", ")", ";", "return", "CurDAG", "->", "getRegister", "(", "GlobalBaseReg", ",", "TLI", "->", "getPointerTy", "(", ")", ")", ".", "getNode", "(", ")", ";", "}", ""], "natrual_language": ["getGlobalBaseReg", "-", "Return", "a", "virtual", "register", "initialized", "with", "the", "the", "global", "base", "register", "value", "."], "TS_V_token": ["Sparc", "Sparc"], "File": "SparcISelDAGToDAG41", "Func": "getGlobalBaseReg", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3789, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCInstrInfo", "::", "getInstSizeInBytes", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "if", "(", "Opcode", "==", "PPC", "::", "INLINEASM", ")", "{", "const", "MachineFunction", "*", "MF", "=", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "char", "*", "AsmStr", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getSymbolName", "(", ")", ";", "return", "getInlineAsmLength", "(", "AsmStr", ",", "*", "MF", "->", "getTarget", "(", ")", ".", "getMCAsmInfo", "(", ")", ")", ";", "}", "else", "if", "(", "Opcode", "==", "TargetOpcode", "::", "STACKMAP", ")", "{", "return", "MI", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ";", "}", "else", "if", "(", "Opcode", "==", "TargetOpcode", "::", "PATCHPOINT", ")", "{", "PatchPointOpers", "Opers", "(", "&", "MI", ")", ";", "return", "Opers", ".", "getMetaOper", "(", "PatchPointOpers", "::", "NBytesPos", ")", ".", "getImm", "(", ")", ";", "}", "else", "{", "const", "MCInstrDesc", "&", "Desc", "=", "get", "(", "Opcode", ")", ";", "return", "Desc", ".", "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": ["PowerPC", "PPC", "PPC::INLINEASM", "0", "1"], "File": "PPCInstrInfo100", "Func": "getInstSizeInBytes", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3790, "Length": 155, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "nds32_target_alignment", "(", "rtx_insn", "*", "label", ")", "{", "rtx_insn", "*", "insn", ";", "if", "(", "!", "NDS32_ALIGN_P", "(", ")", ")", "return", "0", ";", "insn", "=", "next_active_insn", "(", "label", ")", ";", "if", "(", "insn", "==", "0", "||", "(", "get_attr_length", "(", "insn", ")", "==", "2", "&&", "!", "JUMP_P", "(", "insn", ")", "&&", "!", "CALL_P", "(", "insn", ")", ")", ")", "return", "0", ";", "else", "return", "2", ";", "}", ""], "natrual_language": ["Return", "align", "2", "(", "log", "base", "2", ")", "if", "the", "next", "instruction", "of", "LABEL", "is", "4", "byte", "."], "TS_V_token": ["nds32", "0", "0", "2", "0", "2"], "File": "nds32", "Func": "nds32_target_alignment", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3791, "Length": 64, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "X86InstrInfo", "*", "getInstrInfo", "(", ")", "const", "{", "llvm_unreachable", "(", "\"getInstrInfo not implemented\"", ")", ";", "}", ""], "natrual_language": ["TargetInstrInfo", "getter", "."], "TS_V_token": ["X86", "X86", "\"getInstrInfo not implemented\""], "File": "X86TargetMachine18", "Func": "getInstrInfo", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3792, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "or1k_cannot_force_const_mem", "(", "machine_mode", ",", "rtx", "x", ")", "{", "rtx_code", "code", "=", "GET_CODE", "(", "x", ")", ";", "return", "(", "code", "==", "SYMBOL_REF", "||", "code", "==", "LABEL_REF", "||", "code", "==", "CONST", "||", "code", "==", "HIGH", ")", ";", "}", ""], "natrual_language": ["Worker", "for", "TARGET_CANNOT_FORCE_CONST_MEM", ".", "Primarily", "this", "is", "required", "for", "TLS", "symbols", ",", "but", "given", "that", "our", "move", "patterns", "*", "ought", "*", "to", "be", "able", "to", "handle", "any", "symbol", "at", "any", "time", ",", "we", "should", "never", "be", "spilling", "symbolic", "operands", "to", "the", "constant", "pool", ",", "ever", "."], "TS_V_token": ["or1k"], "File": "or1k", "Func": "or1k_cannot_force_const_mem", "Target": "or1k", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3793, "Length": 38, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "size_t", "find_field", "(", "const", "std", "::", "string", "&", "field", ",", "const", "std", "::", "string", "&", "key", ")", "{", "size_t", "key_pos", ",", "sep_pos", ";", "key_pos", "=", "field", ".", "find", "(", "key", ")", ";", "if", "(", "key_pos", "==", "std", "::", "string", "::", "npos", ")", "return", "std", "::", "string", "::", "npos", ";", "sep_pos", "=", "field", ".", "find", "(", "\":\"", ",", "key_pos", "+", "1", ")", ";", "if", "(", "sep_pos", "==", "std", "::", "string", "::", "npos", ")", "return", "std", "::", "string", "::", "npos", ";", "return", "sep_pos", ";", "}", ""], "natrual_language": ["Returns", "the", "index", "of", "the", "'", ":", "'", "inside", "the", "FIELD", "which", "must", "be", "found", "after", "the", "value", "of", "KEY", ".", "Returns", "string", ":", ":npos", "if", "line", "does", "not", "contain", "a", "field", "."], "TS_V_token": ["aarch64", "\":\"", "1"], "File": "driver-aarch641", "Func": "find_field", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3794, "Length": 84, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "function_resolver", "::", "get_scalar_type_name", "(", "type_suffix_index", "type", ")", "{", "return", "vector_types", "[", "type_suffixes", "[", "type", "]", ".", "vector_type", "]", ".", "acle_name", "+", "2", ";", "}", ""], "natrual_language": ["Return", "the", "<", "stdint.h", ">", "name", "associated", "with", "TYPE", ".", "Using", "the", "<", "stdint.h", ">", "name", "should", "be", "more", "user-friendly", "than", "the", "underlying", "canonical", "type", ",", "since", "it", "makes", "the", "signedness", "and", "bitwidth", "explicit", "."], "TS_V_token": ["aarch64", "2"], "File": "aarch64-sve-builtins", "Func": "get_scalar_type_name", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3795, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86TargetLowering", "::", "computeKnownBitsForTargetNode", "(", "const", "SDValue", "Op", ",", "APInt", "&", "KnownZero", ",", "APInt", "&", "KnownOne", ",", "const", "SelectionDAG", "&", "DAG", ",", "unsigned", "Depth", ")", "const", "{", "unsigned", "BitWidth", "=", "KnownZero", ".", "getBitWidth", "(", ")", ";", "unsigned", "Opc", "=", "Op", ".", "getOpcode", "(", ")", ";", "assert", "(", "(", "Opc", ">=", "ISD", "::", "BUILTIN_OP_END", "||", "Opc", "==", "ISD", "::", "INTRINSIC_WO_CHAIN", "||", "Opc", "==", "ISD", "::", "INTRINSIC_W_CHAIN", "||", "Opc", "==", "ISD", "::", "INTRINSIC_VOID", ")", "&&", "\"Should use MaskedValueIsZero if you don't know whether Op\"", "\" is a target node!\"", ")", ";", "KnownZero", "=", "KnownOne", "=", "APInt", "(", "BitWidth", ",", "0", ")", ";", "switch", "(", "Opc", ")", "{", "default", ":", "break", ";", "case", "X86ISD", "::", "ADD", ":", "case", "X86ISD", "::", "SUB", ":", "case", "X86ISD", "::", "ADC", ":", "case", "X86ISD", "::", "SBB", ":", "case", "X86ISD", "::", "SMUL", ":", "case", "X86ISD", "::", "UMUL", ":", "case", "X86ISD", "::", "INC", ":", "case", "X86ISD", "::", "DEC", ":", "case", "X86ISD", "::", "OR", ":", "case", "X86ISD", "::", "XOR", ":", "case", "X86ISD", "::", "AND", ":", "if", "(", "Op", ".", "getResNo", "(", ")", "==", "0", ")", "break", ";", "LLVM_FALLTHROUGH", ";", "case", "X86ISD", "::", "SETCC", ":", "KnownZero", ".", "setBits", "(", "1", ",", "BitWidth", ")", ";", "break", ";", "case", "X86ISD", "::", "MOVMSK", ":", "{", "unsigned", "NumLoBits", "=", "Op", ".", "getOperand", "(", "0", ")", ".", "getValueType", "(", ")", ".", "getVectorNumElements", "(", ")", ";", "KnownZero", ".", "setBits", "(", "NumLoBits", ",", "BitWidth", ")", ";", "break", ";", "}", "case", "X86ISD", "::", "VZEXT", ":", "{", "SDValue", "N0", "=", "Op", ".", "getOperand", "(", "0", ")", ";", "unsigned", "NumElts", "=", "Op", ".", "getValueType", "(", ")", ".", "getVectorNumElements", "(", ")", ";", "EVT", "SrcVT", "=", "N0", ".", "getValueType", "(", ")", ";", "unsigned", "InNumElts", "=", "SrcVT", ".", "getVectorNumElements", "(", ")", ";", "unsigned", "InBitWidth", "=", "SrcVT", ".", "getScalarSizeInBits", "(", ")", ";", "assert", "(", "InNumElts", ">=", "NumElts", "&&", "\"Illegal VZEXT input\"", ")", ";", "KnownZero", "=", "KnownOne", "=", "APInt", "(", "InBitWidth", ",", "0", ")", ";", "APInt", "DemandedSrcElts", "=", "APInt", "::", "getLowBitsSet", "(", "InNumElts", ",", "NumElts", ")", ";", "DAG", ".", "computeKnownBits", "(", "N0", ",", "KnownZero", ",", "KnownOne", ",", "DemandedSrcElts", ",", "Depth", "+", "1", ")", ";", "KnownOne", "=", "KnownOne", ".", "zext", "(", "BitWidth", ")", ";", "KnownZero", "=", "KnownZero", ".", "zext", "(", "BitWidth", ")", ";", "KnownZero", ".", "setBits", "(", "InBitWidth", ",", "BitWidth", ")", ";", "break", ";", "}", "}", "}", ""], "natrual_language": ["Determine", "which", "of", "the", "bits", "specified", "in", "Mask", "are", "known", "to", "be", "either", "zero", "or", "one", "and", "return", "them", "in", "the", "KnownZero/KnownOne", "bitsets", "."], "TS_V_token": ["X86", "X86", "ISD::BUILTIN_OP_END", "ISD::INTRINSIC_WO_CHAIN", "ISD::INTRINSIC_W_CHAIN", "ISD::INTRINSIC_VOID", "\"Should use MaskedValueIsZero if you don't know whether Op\"", "\" is a target node!\"", "0", "X86ISD::ADD", "X86ISD::SUB", "X86ISD::ADC", "X86ISD::SBB", "X86ISD::SMUL", "X86ISD::UMUL", "X86ISD::INC", "X86ISD::DEC", "X86ISD::OR", "X86ISD::XOR", "X86ISD::AND", "0", "X86ISD::SETCC", "1", "X86ISD::MOVMSK", "0", "X86ISD::VZEXT", "0", "\"Illegal VZEXT input\"", "0", "1"], "File": "X86ISelLowering115", "Func": "computeKnownBitsForTargetNode", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3796, "Length": 355, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MCSymbol", "*", "AArch64AsmPrinter", "::", "GetCPISymbol", "(", "unsigned", "CPID", ")", "const", "{", "if", "(", "getDataLayout", "(", ")", ".", "getLinkerPrivateGlobalPrefix", "(", ")", "[", "0", "]", ")", "return", "OutContext", ".", "GetOrCreateSymbol", "(", "Twine", "(", "getDataLayout", "(", ")", ".", "getLinkerPrivateGlobalPrefix", "(", ")", ")", "+", "\"CPI\"", "+", "Twine", "(", "getFunctionNumber", "(", ")", ")", "+", "\"_\"", "+", "Twine", "(", "CPID", ")", ")", ";", "return", "OutContext", ".", "GetOrCreateSymbol", "(", "Twine", "(", "getDataLayout", "(", ")", ".", "getPrivateGlobalPrefix", "(", ")", ")", "+", "\"CPI\"", "+", "Twine", "(", "getFunctionNumber", "(", ")", ")", "+", "\"_\"", "+", "Twine", "(", "CPID", ")", ")", ";", "}", ""], "natrual_language": ["Return", "the", "symbol", "for", "the", "specified", "constant", "pool", "entry", "."], "TS_V_token": ["AArch64", "AArch64", "0", "\"CPI\"", "\"_\"", "\"CPI\"", "\"_\""], "File": "AArch64AsmPrinter2", "Func": "GetCPISymbol", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3797, "Length": 91, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mips_dangerous_for_la25_p", "(", "rtx", "x", ")", "{", "return", "(", "!", "TARGET_EXPLICIT_RELOCS", "&&", "TARGET_USE_GOT", "&&", "GET_CODE", "(", "x", ")", "==", "SYMBOL_REF", "&&", "mips_global_symbol_p", "(", "x", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "X", "should", "not", "be", "moved", "directly", "into", "register", "$", "25", ".", "We", "need", "this", "because", "many", "versions", "of", "GAS", "will", "treat", "``", "la", "$", "25", ",", "foo", "''", "as", "part", "of", "a", "call", "sequence", "and", "so", "allow", "a", "global", "``", "foo", "''", "to", "be", "lazily", "bound", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_dangerous_for_la25_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3798, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "pru_expand_fp_compare", "(", "rtx", "comparison", ",", "machine_mode", "mode", ")", "{", "enum", "rtx_code", "code", "=", "GET_CODE", "(", "comparison", ")", ";", "rtx", "op0", "=", "XEXP", "(", "comparison", ",", "0", ")", ";", "rtx", "op1", "=", "XEXP", "(", "comparison", ",", "1", ")", ";", "rtx", "cmp", ";", "enum", "rtx_code", "jump_code", "=", "code", ";", "machine_mode", "op_mode", "=", "GET_MODE", "(", "op0", ")", ";", "rtx_insn", "*", "insns", ";", "rtx", "libfunc", ";", "gcc_assert", "(", "op_mode", "==", "DFmode", "||", "op_mode", "==", "SFmode", ")", ";", "if", "(", "code", "==", "UNGE", ")", "{", "code", "=", "LT", ";", "jump_code", "=", "EQ", ";", "}", "else", "if", "(", "code", "==", "UNLE", ")", "{", "code", "=", "GT", ";", "jump_code", "=", "EQ", ";", "}", "else", "jump_code", "=", "NE", ";", "switch", "(", "code", ")", "{", "case", "EQ", ":", "libfunc", "=", "op_mode", "==", "DFmode", "?", "eqdf_libfunc", ":", "eqsf_libfunc", ";", "break", ";", "case", "NE", ":", "libfunc", "=", "op_mode", "==", "DFmode", "?", "nedf_libfunc", ":", "nesf_libfunc", ";", "break", ";", "case", "GT", ":", "libfunc", "=", "op_mode", "==", "DFmode", "?", "gtdf_libfunc", ":", "gtsf_libfunc", ";", "break", ";", "case", "GE", ":", "libfunc", "=", "op_mode", "==", "DFmode", "?", "gedf_libfunc", ":", "gesf_libfunc", ";", "break", ";", "case", "LT", ":", "libfunc", "=", "op_mode", "==", "DFmode", "?", "ltdf_libfunc", ":", "ltsf_libfunc", ";", "break", ";", "case", "LE", ":", "libfunc", "=", "op_mode", "==", "DFmode", "?", "ledf_libfunc", ":", "lesf_libfunc", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "start_sequence", "(", ")", ";", "cmp", "=", "emit_library_call_value", "(", "libfunc", ",", "0", ",", "LCT_CONST", ",", "SImode", ",", "op0", ",", "op_mode", ",", "op1", ",", "op_mode", ")", ";", "insns", "=", "get_insns", "(", ")", ";", "end_sequence", "(", ")", ";", "emit_libcall_block", "(", "insns", ",", "cmp", ",", "cmp", ",", "gen_rtx_fmt_ee", "(", "code", ",", "SImode", ",", "op0", ",", "op1", ")", ")", ";", "return", "gen_rtx_fmt_ee", "(", "jump_code", ",", "mode", ",", "cmp", ",", "const0_rtx", ")", ";", "}", ""], "natrual_language": ["Emit", "comparison", "instruction", "if", "necessary", ",", "returning", "the", "expression", "that", "holds", "the", "compare", "result", "in", "the", "proper", "mode", ".", "Return", "the", "comparison", "that", "should", "be", "used", "in", "the", "jump", "insn", "."], "TS_V_token": ["pru", "0", "1", "0"], "File": "pru", "Func": "pru_expand_fp_compare", "Target": "pru", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3799, "Length": 282, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mem_operand_ds_form", "(", "rtx", "op", ",", "machine_mode", "mode", ")", "{", "unsigned", "HOST_WIDE_INT", "offset", ";", "int", "extra", ";", "rtx", "addr", "=", "XEXP", "(", "op", ",", "0", ")", ";", "if", "(", "!", "offsettable_address_p", "(", "false", ",", "mode", ",", "addr", ")", ")", "return", "false", ";", "op", "=", "address_offset", "(", "addr", ")", ";", "if", "(", "op", "==", "NULL_RTX", ")", "return", "true", ";", "offset", "=", "INTVAL", "(", "op", ")", ";", "if", "(", "(", "offset", "&", "3", ")", "!=", "0", ")", "return", "false", ";", "extra", "=", "GET_MODE_SIZE", "(", "mode", ")", "-", "UNITS_PER_WORD", ";", "if", "(", "extra", "<", "0", ")", "extra", "=", "0", ";", "if", "(", "GET_CODE", "(", "addr", ")", "==", "LO_SUM", ")", "offset", "=", "(", "(", "offset", "&", "0xffff", ")", "^", "0x8000", ")", "-", "0x8000", ";", "return", "offset", "+", "0x8000", "<", "0x10000u", "-", "extra", ";", "}", ""], "natrual_language": ["As", "above", ",", "but", "for", "DS-FORM", "VSX", "insns", ".", "Unlike", "mem_operand_gpr", ",", "enforce", "an", "offset", "divisible", "by", "4", "even", "for", "32-bit", "."], "TS_V_token": ["powerpcspe", "0", "3", "0", "0", "0", "0xffff", "0x8000", "0x8000", "0x8000", "0x10000u"], "File": "powerpcspe", "Func": "mem_operand_ds_form", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3800, "Length": 130, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "OpenRISCAsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "OpenRISCMCInstLower", "MCInstLowering", "(", "OutContext", ",", "*", "Mang", ",", "*", "this", ")", ";", "MCInst", "TmpInst", ";", "MCInstLowering", ".", "Lower", "(", "MI", ",", "TmpInst", ")", ";", "OutStreamer", ".", "EmitInstruction", "(", "TmpInst", ")", ";", "}", ""], "natrual_language": ["EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "."], "TS_V_token": ["OpenRISC", "OpenRISC", "OpenRISC"], "File": "OpenRISCAsmPrinter", "Func": "EmitInstruction", "Target": "OpenRISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3801, "Length": 43, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "sparc_register_move_cost", "(", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "reg_class_t", "from", ",", "reg_class_t", "to", ")", "{", "bool", "need_memory", "=", "false", ";", "if", "(", "from", "==", "NO_REGS", "||", "to", "==", "NO_REGS", ")", "return", "100", ";", "if", "(", "from", "==", "FPCC_REGS", "||", "to", "==", "FPCC_REGS", ")", "need_memory", "=", "true", ";", "else", "if", "(", "(", "FP_REG_CLASS_P", "(", "from", ")", "&&", "general_or_i64_p", "(", "to", ")", ")", "||", "(", "general_or_i64_p", "(", "from", ")", "&&", "FP_REG_CLASS_P", "(", "to", ")", ")", ")", "{", "if", "(", "TARGET_VIS3", ")", "{", "int", "size", "=", "GET_MODE_SIZE", "(", "mode", ")", ";", "if", "(", "size", "==", "8", "||", "size", "==", "4", ")", "{", "if", "(", "!", "TARGET_ARCH32", "||", "size", "==", "4", ")", "return", "4", ";", "else", "return", "6", ";", "}", "}", "need_memory", "=", "true", ";", "}", "if", "(", "need_memory", ")", "{", "if", "(", "sparc_cpu", "==", "PROCESSOR_ULTRASPARC", "||", "sparc_cpu", "==", "PROCESSOR_ULTRASPARC3", "||", "sparc_cpu", "==", "PROCESSOR_NIAGARA", "||", "sparc_cpu", "==", "PROCESSOR_NIAGARA2", "||", "sparc_cpu", "==", "PROCESSOR_NIAGARA3", "||", "sparc_cpu", "==", "PROCESSOR_NIAGARA4", "||", "sparc_cpu", "==", "PROCESSOR_NIAGARA7", "||", "sparc_cpu", "==", "PROCESSOR_M8", ")", "return", "12", ";", "return", "6", ";", "}", "return", "2", ";", "}", ""], "natrual_language": ["Implement", "TARGET_REGISTER_MOVE_COST", "."], "TS_V_token": ["sparc", "100", "8", "4", "4", "4", "6", "12", "6", "2"], "File": "sparc", "Func": "sparc_register_move_cost", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3802, "Length": 172, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "func_fma_steering", "::", "put_node", "(", "fma_node", "*", "node", ")", "{", "return", "this", "->", "m_insn_fma_head_map", "->", "put", "(", "node", "->", "get_insn", "(", ")", ",", "node", ")", ";", "}", ""], "natrual_language": ["Memorize", "the", "mapping", "of", "this", "instruction", "to", "its", "fma_node", "object", "and", "return", "whether", "such", "a", "mapping", "existed", "."], "TS_V_token": ["aarch64"], "File": "cortex-a57-fma-steering", "Func": "put_node", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3803, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "EVT", "X86TargetLowering", "::", "getOptimalMemOpType", "(", "uint64_t", "Size", ",", "unsigned", "DstAlign", ",", "unsigned", "SrcAlign", ",", "bool", "NonScalarIntSafe", ",", "bool", "MemcpyStrSrc", ",", "MachineFunction", "&", "MF", ")", "const", "{", "const", "Function", "*", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "if", "(", "NonScalarIntSafe", "&&", "!", "F", "->", "hasFnAttr", "(", "Attribute", "::", "NoImplicitFloat", ")", ")", "{", "if", "(", "Size", ">=", "16", "&&", "(", "Subtarget", "->", "isUnalignedMemAccessFast", "(", ")", "||", "(", "(", "DstAlign", "==", "0", "||", "DstAlign", ">=", "16", ")", "&&", "(", "SrcAlign", "==", "0", "||", "SrcAlign", ">=", "16", ")", ")", ")", "&&", "Subtarget", "->", "getStackAlignment", "(", ")", ">=", "16", ")", "{", "if", "(", "Subtarget", "->", "hasAVX", "(", ")", "&&", "Subtarget", "->", "getStackAlignment", "(", ")", ">=", "32", ")", "return", "MVT", "::", "v8f32", ";", "if", "(", "Subtarget", "->", "hasXMMInt", "(", ")", ")", "return", "MVT", "::", "v4i32", ";", "if", "(", "Subtarget", "->", "hasXMM", "(", ")", ")", "return", "MVT", "::", "v4f32", ";", "}", "else", "if", "(", "!", "MemcpyStrSrc", "&&", "Size", ">=", "8", "&&", "!", "Subtarget", "->", "is64Bit", "(", ")", "&&", "Subtarget", "->", "getStackAlignment", "(", ")", ">=", "8", "&&", "Subtarget", "->", "hasXMMInt", "(", ")", ")", "{", "return", "MVT", "::", "f64", ";", "}", "}", "if", "(", "Subtarget", "->", "is64Bit", "(", ")", "&&", "Size", ">=", "8", ")", "return", "MVT", "::", "i64", ";", "return", "MVT", "::", "i32", ";", "}", ""], "natrual_language": ["It", "returns", "EVT", ":", ":Other", "if", "the", "type", "should", "be", "determined", "using", "generic", "target-independent", "logic", "."], "TS_V_token": ["X86", "X86", "16", "0", "16", "0", "16", "16", "32", "MVT::v8f32", "MVT::v4i32", "MVT::v4f32", "8", "8", "MVT::f64", "8", "MVT::i64", "MVT::i32"], "File": "X86ISelLowering191", "Func": "getOptimalMemOpType", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3804, "Length": 207, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "inline", "bool", "fp_valid_at", "(", "HOST_WIDE_INT", "cfa_offset", ")", "{", "const", "struct", "machine_frame_state", "&", "fs", "=", "cfun", "->", "machine", "->", "fs", ";", "if", "(", "fs", ".", "sp_realigned", "&&", "cfa_offset", ">", "fs", ".", "sp_realigned_fp_last", ")", "{", "gcc_assert", "(", "cfa_offset", ">=", "fs", ".", "sp_realigned_offset", ")", ";", "return", "false", ";", "}", "return", "fs", ".", "fp_valid", ";", "}", ""], "natrual_language": ["Determine", "if", "the", "frame", "pointer", "is", "valid", "for", "accessing", "the", "CFA_OFFSET", "in", "the", "frame", "save", "area", ".", "The", "register", "is", "saved", "at", "CFA", "-", "CFA_OFFSET", "."], "TS_V_token": ["i386"], "File": "i386", "Func": "fp_valid_at", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3805, "Length": 53, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "mips16_expand_set_fcsr", "(", "rtx", "newval", ")", "{", "if", "(", "!", "mips16_set_fcsr_stub", ")", "mips16_set_fcsr_stub", "=", "new", "mips16_set_fcsr_one_only_stub", "(", ")", ";", "rtx", "fn", "=", "mips16_stub_call_address", "(", "mips16_set_fcsr_stub", ")", ";", "emit_move_insn", "(", "gen_rtx_REG", "(", "SImode", ",", "SET_FCSR_REGNUM", ")", ",", "newval", ")", ";", "emit_insn", "(", "PMODE_INSN", "(", "gen_mips_set_fcsr_mips16", ",", "(", "fn", ")", ")", ")", ";", "}", ""], "natrual_language": ["Implement", "__builtin_mips_set_fcsr", "(", "TARGET", ")", "for", "MIPS16", ",", "using", "a", "stub", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips16_expand_set_fcsr", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3806, "Length": 52, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "arm_unwind_emit", "(", "FILE", "*", "out_file", ",", "rtx_insn", "*", "insn", ")", "{", "rtx", "note", ",", "pat", ";", "bool", "handled_one", "=", "false", ";", "if", "(", "arm_except_unwind_info", "(", "&", "global_options", ")", "!=", "UI_TARGET", ")", "return", ";", "if", "(", "!", "(", "flag_unwind_tables", "||", "crtl", "->", "uses_eh_lsda", ")", "&&", "(", "TREE_NOTHROW", "(", "current_function_decl", ")", "||", "crtl", "->", "all_throwers_are_sibcalls", ")", ")", "return", ";", "if", "(", "NOTE_P", "(", "insn", ")", "||", "!", "RTX_FRAME_RELATED_P", "(", "insn", ")", ")", "return", ";", "for", "(", "note", "=", "REG_NOTES", "(", "insn", ")", ";", "note", ";", "note", "=", "XEXP", "(", "note", ",", "1", ")", ")", "{", "switch", "(", "REG_NOTE_KIND", "(", "note", ")", ")", "{", "case", "REG_FRAME_RELATED_EXPR", ":", "pat", "=", "XEXP", "(", "note", ",", "0", ")", ";", "goto", "found", ";", "case", "REG_CFA_REGISTER", ":", "pat", "=", "XEXP", "(", "note", ",", "0", ")", ";", "if", "(", "pat", "==", "NULL", ")", "{", "pat", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "pat", ")", "==", "PARALLEL", ")", "pat", "=", "XVECEXP", "(", "pat", ",", "0", ",", "0", ")", ";", "}", "{", "rtx", "dest", ",", "src", ";", "unsigned", "reg", ";", "src", "=", "SET_SRC", "(", "pat", ")", ";", "dest", "=", "SET_DEST", "(", "pat", ")", ";", "gcc_assert", "(", "src", "==", "stack_pointer_rtx", ")", ";", "reg", "=", "REGNO", "(", "dest", ")", ";", "asm_fprintf", "(", "out_file", ",", "\"\\t.unwind_raw 0, 0x%x @ vsp = r%d\\n\"", ",", "reg", "+", "0x90", ",", "reg", ")", ";", "}", "handled_one", "=", "true", ";", "break", ";", "case", "REG_CFA_DEF_CFA", ":", "case", "REG_CFA_ADJUST_CFA", ":", "case", "REG_CFA_RESTORE", ":", "return", ";", "case", "REG_CFA_EXPRESSION", ":", "case", "REG_CFA_OFFSET", ":", "gcc_unreachable", "(", ")", ";", "default", ":", "break", ";", "}", "}", "if", "(", "handled_one", ")", "return", ";", "pat", "=", "PATTERN", "(", "insn", ")", ";", "found", ":", "switch", "(", "GET_CODE", "(", "pat", ")", ")", "{", "case", "SET", ":", "arm_unwind_emit_set", "(", "out_file", ",", "pat", ")", ";", "break", ";", "case", "SEQUENCE", ":", "arm_unwind_emit_sequence", "(", "out_file", ",", "pat", ")", ";", "break", ";", "default", ":", "abort", "(", ")", ";", "}", "}", ""], "natrual_language": ["Emit", "unwind", "directives", "for", "the", "given", "insn", "."], "TS_V_token": ["arm", "1", "0", "0", "0", "0", "\"\\t.unwind_raw 0, 0x%x @ vsp = r%d\\n\"", "0x90"], "File": "arm", "Func": "arm_unwind_emit", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3807, "Length": 304, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "Mips16InstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "DestReg", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "GetMemOperand", "(", "MBB", ",", "FI", ",", "MachineMemOperand", "::", "MOLoad", ")", ";", "unsigned", "Opc", "=", "0", ";", "if", "(", "Mips", "::", "CPU16RegsRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "Opc", "=", "Mips", "::", "LwRxSpImmX16", ";", "assert", "(", "Opc", "&&", "\"Register class not handled!\"", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "Opc", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["Mips", "Mips", "0", "Mips::CPU16RegsRegClass", "Mips::LwRxSpImmX16", "\"Register class not handled!\"", "0"], "File": "Mips16InstrInfo11", "Func": "loadRegFromStackSlot", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3808, "Length": 129, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "gen_conditional_branch", "(", "rtx", "operands", "[", "]", ",", "machine_mode", "mode", ")", "{", "enum", "rtx_code", "test_code", "=", "GET_CODE", "(", "operands", "[", "0", "]", ")", ";", "rtx", "cmp0", "=", "operands", "[", "1", "]", ";", "rtx", "cmp1", "=", "operands", "[", "2", "]", ";", "rtx", "reg", ";", "int", "invert", ";", "rtx", "label1", ",", "label2", ";", "invert", "=", "0", ";", "reg", "=", "gen_int_relational", "(", "test_code", ",", "NULL_RTX", ",", "cmp0", ",", "cmp1", ",", "&", "invert", ")", ";", "if", "(", "reg", ")", "{", "cmp0", "=", "reg", ";", "cmp1", "=", "const0_rtx", ";", "test_code", "=", "NE", ";", "}", "else", "if", "(", "GET_CODE", "(", "cmp1", ")", "==", "CONST_INT", "&&", "INTVAL", "(", "cmp1", ")", "!=", "0", ")", "cmp1", "=", "force_reg", "(", "mode", ",", "cmp1", ")", ";", "label1", "=", "gen_rtx_LABEL_REF", "(", "VOIDmode", ",", "operands", "[", "3", "]", ")", ";", "label2", "=", "pc_rtx", ";", "if", "(", "invert", ")", "{", "label2", "=", "label1", ";", "label1", "=", "pc_rtx", ";", "}", "emit_jump_insn", "(", "gen_rtx_SET", "(", "pc_rtx", ",", "gen_rtx_IF_THEN_ELSE", "(", "VOIDmode", ",", "gen_rtx_fmt_ee", "(", "test_code", ",", "VOIDmode", ",", "cmp0", ",", "cmp1", ")", ",", "label1", ",", "label2", ")", ")", ")", ";", "}", ""], "natrual_language": ["Emit", "the", "common", "code", "for", "doing", "conditional", "branches", ".", "operand", "[", "0", "]", "is", "the", "label", "to", "jump", "to", ".", "The", "comparison", "operands", "are", "saved", "away", "by", "cmp", "{", "si", ",", "di", ",", "sf", ",", "df", "}", "."], "TS_V_token": ["iq2000", "0", "1", "2", "0", "0", "3"], "File": "iq2000", "Func": "gen_conditional_branch", "Target": "iq2000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3809, "Length": 174, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "mips_expand_builtin_movtf", "(", "enum", "mips_builtin_type", "type", ",", "enum", "insn_code", "icode", ",", "enum", "mips_fp_condition", "cond", ",", "rtx", "target", ",", "tree", "arglist", ")", "{", "rtx", "cmp_result", ",", "op0", ",", "op1", ";", "cmp_result", "=", "mips_prepare_builtin_target", "(", "icode", ",", "0", ",", "0", ")", ";", "op0", "=", "mips_prepare_builtin_arg", "(", "icode", ",", "1", ",", "&", "arglist", ")", ";", "op1", "=", "mips_prepare_builtin_arg", "(", "icode", ",", "2", ",", "&", "arglist", ")", ";", "emit_insn", "(", "GEN_FCN", "(", "icode", ")", "(", "cmp_result", ",", "op0", ",", "op1", ",", "GEN_INT", "(", "cond", ")", ")", ")", ";", "icode", "=", "CODE_FOR_mips_cond_move_tf_ps", ";", "target", "=", "mips_prepare_builtin_target", "(", "icode", ",", "0", ",", "target", ")", ";", "if", "(", "type", "==", "MIPS_BUILTIN_MOVT", ")", "{", "op1", "=", "mips_prepare_builtin_arg", "(", "icode", ",", "2", ",", "&", "arglist", ")", ";", "op0", "=", "mips_prepare_builtin_arg", "(", "icode", ",", "1", ",", "&", "arglist", ")", ";", "}", "else", "{", "op0", "=", "mips_prepare_builtin_arg", "(", "icode", ",", "1", ",", "&", "arglist", ")", ";", "op1", "=", "mips_prepare_builtin_arg", "(", "icode", ",", "2", ",", "&", "arglist", ")", ";", "}", "emit_insn", "(", "gen_mips_cond_move_tf_ps", "(", "target", ",", "op0", ",", "op1", ",", "cmp_result", ")", ")", ";", "return", "target", ";", "}", ""], "natrual_language": ["Expand", "a", "__builtin_mips_movt_", "*", "_ps", "(", ")", "or", "__builtin_mips_movf_", "*", "_ps", "(", ")", "function", "(", "TYPE", "says", "which", ")", ".", "ARGLIST", "is", "the", "list", "of", "arguments", "to", "the", "function", ",", "ICODE", "is", "the", "instruction", "that", "should", "be", "used", "to", "compare", "the", "first", "two", "arguments", ",", "and", "COND", "is", "the", "condition", "it", "should", "test", ".", "TARGET", ",", "if", "nonnull", ",", "suggests", "a", "good", "place", "to", "put", "the", "result", "."], "TS_V_token": ["mips", "0", "0", "1", "2", "0", "2", "1", "1", "2"], "File": "mips3", "Func": "mips_expand_builtin_movtf", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3810, "Length": 177, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "emit_constant_insn", "(", "rtx", "cond", ",", "rtx", "pattern", ")", "{", "if", "(", "cond", ")", "pattern", "=", "gen_rtx_COND_EXEC", "(", "VOIDmode", ",", "copy_rtx", "(", "cond", ")", ",", "pattern", ")", ";", "emit_insn", "(", "pattern", ")", ";", "}", ""], "natrual_language": ["Emit", "an", "instruction", "with", "the", "indicated", "PATTERN", ".", "If", "COND", "is", "non-NULL", ",", "conditionalize", "the", "execution", "of", "the", "instruction", "on", "COND", "being", "true", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "emit_constant_insn", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3811, "Length": 35, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "CCAssignFn", "*", "ARMFastISel", "::", "CCAssignFnForCall", "(", "CallingConv", "::", "ID", "CC", ",", "bool", "Return", ",", "bool", "isVarArg", ")", "{", "switch", "(", "CC", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unsupported calling convention\"", ")", ";", "case", "CallingConv", "::", "Fast", ":", "if", "(", "Subtarget", "->", "hasVFP2", "(", ")", "&&", "!", "isVarArg", ")", "{", "if", "(", "!", "Subtarget", "->", "isAAPCS_ABI", "(", ")", ")", "return", "(", "Return", "?", "RetFastCC_ARM_APCS", ":", "FastCC_ARM_APCS", ")", ";", "return", "(", "Return", "?", "RetCC_ARM_AAPCS_VFP", ":", "CC_ARM_AAPCS_VFP", ")", ";", "}", "LLVM_FALLTHROUGH", ";", "case", "CallingConv", "::", "C", ":", "case", "CallingConv", "::", "CXX_FAST_TLS", ":", "if", "(", "Subtarget", "->", "isAAPCS_ABI", "(", ")", ")", "{", "if", "(", "Subtarget", "->", "hasVFP2", "(", ")", "&&", "TM", ".", "Options", ".", "FloatABIType", "==", "FloatABI", "::", "Hard", "&&", "!", "isVarArg", ")", "return", "(", "Return", "?", "RetCC_ARM_AAPCS_VFP", ":", "CC_ARM_AAPCS_VFP", ")", ";", "else", "return", "(", "Return", "?", "RetCC_ARM_AAPCS", ":", "CC_ARM_AAPCS", ")", ";", "}", "else", "{", "return", "(", "Return", "?", "RetCC_ARM_APCS", ":", "CC_ARM_APCS", ")", ";", "}", "case", "CallingConv", "::", "ARM_AAPCS_VFP", ":", "case", "CallingConv", "::", "Swift", ":", "if", "(", "!", "isVarArg", ")", "return", "(", "Return", "?", "RetCC_ARM_AAPCS_VFP", ":", "CC_ARM_AAPCS_VFP", ")", ";", "LLVM_FALLTHROUGH", ";", "case", "CallingConv", "::", "ARM_AAPCS", ":", "return", "(", "Return", "?", "RetCC_ARM_AAPCS", ":", "CC_ARM_AAPCS", ")", ";", "case", "CallingConv", "::", "ARM_APCS", ":", "return", "(", "Return", "?", "RetCC_ARM_APCS", ":", "CC_ARM_APCS", ")", ";", "case", "CallingConv", "::", "GHC", ":", "if", "(", "Return", ")", "llvm_unreachable", "(", "\"Can't return in GHC call convention\"", ")", ";", "else", "return", "CC_ARM_APCS_GHC", ";", "}", "}", ""], "natrual_language": ["Selects", "the", "correct", "CCAssignFn", "for", "a", "given", "CallingConvention", "value", "."], "TS_V_token": ["ARM", "ARM", "\"Unsupported calling convention\"", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "\"Can't return in GHC call convention\"", "ARM"], "File": "ARMFastISel (2)3", "Func": "CCAssignFnForCall", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3812, "Length": 223, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "PPCPassConfig", "::", "addIRPasses", "(", ")", "{", "if", "(", "TM", "->", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createPPCBoolRetToIntPass", "(", ")", ")", ";", "addPass", "(", "createAtomicExpandPass", "(", ")", ")", ";", "addPass", "(", "createPPCLowerMASSVEntriesPass", "(", ")", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", "==", "CodeGenOpt", "::", "Aggressive", "&&", "EnablePPCGenScalarMASSEntries", ")", "{", "TM", "->", "Options", ".", "PPCGenScalarMASSEntries", "=", "EnablePPCGenScalarMASSEntries", ";", "addPass", "(", "createPPCGenScalarMASSEntriesPass", "(", ")", ")", ";", "}", "if", "(", "EnablePrefetch", ".", "getNumOccurrences", "(", ")", ">", "0", ")", "addPass", "(", "createLoopDataPrefetchPass", "(", ")", ")", ";", "if", "(", "TM", "->", "getOptLevel", "(", ")", ">=", "CodeGenOpt", "::", "Default", "&&", "EnableGEPOpt", ")", "{", "addPass", "(", "createSeparateConstOffsetFromGEPPass", "(", "true", ")", ")", ";", "addPass", "(", "createEarlyCSEPass", "(", ")", ")", ";", "addPass", "(", "createLICMPass", "(", ")", ")", ";", "}", "TargetPassConfig", "::", "addIRPasses", "(", ")", ";", "}", ""], "natrual_language": ["Add", "common", "target", "configurable", "passes", "that", "perform", "LLVM", "IR", "to", "IR", "transforms", "following", "machine", "independent", "optimization", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "PPC", "PPC", "PPC", "PPC", "0"], "File": "PPCTargetMachine40", "Func": "addIRPasses", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3813, "Length": 133, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseInstrInfo", "::", "expandPostRAPseudo", "(", "MachineInstr", "&", "MI", ")", "const", "{", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "TargetOpcode", "::", "LOAD_STACK_GUARD", ")", "{", "assert", "(", "getSubtarget", "(", ")", ".", "getTargetTriple", "(", ")", ".", "isOSBinFormatMachO", "(", ")", "&&", "\"LOAD_STACK_GUARD currently supported only for MachO.\"", ")", ";", "expandLoadStackGuard", "(", "MI", ")", ";", "MI", ".", "getParent", "(", ")", "->", "erase", "(", "MI", ")", ";", "return", "true", ";", "}", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "ARM", "::", "MEMCPY", ")", "{", "expandMEMCPY", "(", "MI", ")", ";", "return", "true", ";", "}", "if", "(", "!", "MI", ".", "isCopy", "(", ")", "||", "Subtarget", ".", "dontWidenVMOVS", "(", ")", "||", "!", "Subtarget", ".", "hasFP64", "(", ")", ")", "return", "false", ";", "Register", "DstRegS", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "Register", "SrcRegS", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "if", "(", "!", "ARM", "::", "SPRRegClass", ".", "contains", "(", "DstRegS", ",", "SrcRegS", ")", ")", "return", "false", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "&", "getRegisterInfo", "(", ")", ";", "unsigned", "DstRegD", "=", "TRI", "->", "getMatchingSuperReg", "(", "DstRegS", ",", "ARM", "::", "ssub_0", ",", "&", "ARM", "::", "DPRRegClass", ")", ";", "unsigned", "SrcRegD", "=", "TRI", "->", "getMatchingSuperReg", "(", "SrcRegS", ",", "ARM", "::", "ssub_0", ",", "&", "ARM", "::", "DPRRegClass", ")", ";", "if", "(", "!", "DstRegD", "||", "!", "SrcRegD", ")", "return", "false", ";", "if", "(", "!", "MI", ".", "definesRegister", "(", "DstRegD", ",", "TRI", ")", "||", "MI", ".", "readsRegister", "(", "DstRegD", ",", "TRI", ")", ")", "return", "false", ";", "if", "(", "MI", ".", "getOperand", "(", "0", ")", ".", "isDead", "(", ")", ")", "return", "false", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"widening: \"", "<<", "MI", ")", ";", "MachineInstrBuilder", "MIB", "(", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ",", "MI", ")", ";", "int", "ImpDefIdx", "=", "MI", ".", "findRegisterDefOperandIdx", "(", "DstRegD", ")", ";", "if", "(", "ImpDefIdx", "!=", "-", "1", ")", "MI", ".", "RemoveOperand", "(", "ImpDefIdx", ")", ";", "MI", ".", "setDesc", "(", "get", "(", "ARM", "::", "VMOVD", ")", ")", ";", "MI", ".", "getOperand", "(", "0", ")", ".", "setReg", "(", "DstRegD", ")", ";", "MI", ".", "getOperand", "(", "1", ")", ".", "setReg", "(", "SrcRegD", ")", ";", "MIB", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "MI", ".", "getOperand", "(", "1", ")", ".", "setIsUndef", "(", ")", ";", "MIB", ".", "addReg", "(", "SrcRegS", ",", "RegState", "::", "Implicit", ")", ";", "if", "(", "MI", ".", "getOperand", "(", "1", ")", ".", "isKill", "(", ")", ")", "{", "MI", ".", "getOperand", "(", "1", ")", ".", "setIsKill", "(", "false", ")", ";", "MI", ".", "addRegisterKilled", "(", "SrcRegS", ",", "TRI", ",", "true", ")", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"replaced by: \"", "<<", "MI", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "function", "is", "called", "for", "all", "pseudo", "instructions", "that", "remain", "after", "register", "allocation", "."], "TS_V_token": ["ARM", "ARM", "\"LOAD_STACK_GUARD currently supported only for MachO.\"", "ARM::MEMCPY", "0", "1", "ARM::SPRRegClass", "ARM::ssub_0", "ARM::DPRRegClass", "ARM::ssub_0", "ARM::DPRRegClass", "0", "\"widening: \"", "1", "ARM::VMOVD", "0", "1", "ARMCC::AL", "1", "1", "1", "\"replaced by: \""], "File": "ARMBaseInstrInfo110", "Func": "expandPostRAPseudo", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3814, "Length": 427, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "SystemZInstrInfo", "::", "FoldImmediate", "(", "MachineInstr", "&", "UseMI", ",", "MachineInstr", "&", "DefMI", ",", "unsigned", "Reg", ",", "MachineRegisterInfo", "*", "MRI", ")", "const", "{", "unsigned", "DefOpc", "=", "DefMI", ".", "getOpcode", "(", ")", ";", "if", "(", "DefOpc", "!=", "SystemZ", "::", "LHIMux", "&&", "DefOpc", "!=", "SystemZ", "::", "LHI", "&&", "DefOpc", "!=", "SystemZ", "::", "LGHI", ")", "return", "false", ";", "if", "(", "DefMI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", "!=", "Reg", ")", "return", "false", ";", "int32_t", "ImmVal", "=", "(", "int32_t", ")", "DefMI", ".", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ";", "unsigned", "UseOpc", "=", "UseMI", ".", "getOpcode", "(", ")", ";", "unsigned", "NewUseOpc", ";", "unsigned", "UseIdx", ";", "int", "CommuteIdx", "=", "-", "1", ";", "bool", "TieOps", "=", "false", ";", "switch", "(", "UseOpc", ")", "{", "case", "SystemZ", "::", "SELRMux", ":", "TieOps", "=", "true", ";", "LLVM_FALLTHROUGH", ";", "case", "SystemZ", "::", "LOCRMux", ":", "if", "(", "!", "STI", ".", "hasLoadStoreOnCond2", "(", ")", ")", "return", "false", ";", "NewUseOpc", "=", "SystemZ", "::", "LOCHIMux", ";", "if", "(", "UseMI", ".", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", "==", "Reg", ")", "UseIdx", "=", "2", ";", "else", "if", "(", "UseMI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", "==", "Reg", ")", "UseIdx", "=", "2", ",", "CommuteIdx", "=", "1", ";", "else", "return", "false", ";", "break", ";", "case", "SystemZ", "::", "SELGR", ":", "TieOps", "=", "true", ";", "LLVM_FALLTHROUGH", ";", "case", "SystemZ", "::", "LOCGR", ":", "if", "(", "!", "STI", ".", "hasLoadStoreOnCond2", "(", ")", ")", "return", "false", ";", "NewUseOpc", "=", "SystemZ", "::", "LOCGHI", ";", "if", "(", "UseMI", ".", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", "==", "Reg", ")", "UseIdx", "=", "2", ";", "else", "if", "(", "UseMI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", "==", "Reg", ")", "UseIdx", "=", "2", ",", "CommuteIdx", "=", "1", ";", "else", "return", "false", ";", "break", ";", "default", ":", "return", "false", ";", "}", "if", "(", "CommuteIdx", "!=", "-", "1", ")", "if", "(", "!", "commuteInstruction", "(", "UseMI", ",", "false", ",", "CommuteIdx", ",", "UseIdx", ")", ")", "return", "false", ";", "bool", "DeleteDef", "=", "MRI", "->", "hasOneNonDBGUse", "(", "Reg", ")", ";", "UseMI", ".", "setDesc", "(", "get", "(", "NewUseOpc", ")", ")", ";", "if", "(", "TieOps", ")", "UseMI", ".", "tieOperands", "(", "0", ",", "1", ")", ";", "UseMI", ".", "getOperand", "(", "UseIdx", ")", ".", "ChangeToImmediate", "(", "ImmVal", ")", ";", "if", "(", "DeleteDef", ")", "DefMI", ".", "eraseFromParent", "(", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Reg", "is", "known", "to", "be", "defined", "by", "a", "move", "immediate", "instruction", ",", "try", "to", "fold", "the", "immediate", "into", "the", "use", "instruction", "."], "TS_V_token": ["SystemZ", "SystemZ", "SystemZ::LHIMux", "SystemZ::LHI", "SystemZ::LGHI", "0", "1", "1", "SystemZ::SELRMux", "SystemZ::LOCRMux", "SystemZ::LOCHIMux", "2", "2", "1", "2", "1", "SystemZ::SELGR", "SystemZ::LOCGR", "SystemZ::LOCGHI", "2", "2", "1", "2", "1", "1", "0", "1"], "File": "SystemZInstrInfo19", "Func": "FoldImmediate", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3815, "Length": 375, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMAsmPrinter", "::", "emitMachineConstantPoolValue", "(", "MachineConstantPoolValue", "*", "MCPV", ")", "{", "const", "DataLayout", "&", "DL", "=", "getDataLayout", "(", ")", ";", "int", "Size", "=", "DL", ".", "getTypeAllocSize", "(", "MCPV", "->", "getType", "(", ")", ")", ";", "ARMConstantPoolValue", "*", "ACPV", "=", "static_cast", "<", "ARMConstantPoolValue", "*", ">", "(", "MCPV", ")", ";", "if", "(", "ACPV", "->", "isPromotedGlobal", "(", ")", ")", "{", "auto", "*", "ACPC", "=", "cast", "<", "ARMConstantPoolConstant", ">", "(", "ACPV", ")", ";", "for", "(", "const", "auto", "*", "GV", ":", "ACPC", "->", "promotedGlobals", "(", ")", ")", "{", "if", "(", "!", "EmittedPromotedGlobalLabels", ".", "count", "(", "GV", ")", ")", "{", "MCSymbol", "*", "GVSym", "=", "getSymbol", "(", "GV", ")", ";", "OutStreamer", "->", "emitLabel", "(", "GVSym", ")", ";", "EmittedPromotedGlobalLabels", ".", "insert", "(", "GV", ")", ";", "}", "}", "return", "emitGlobalConstant", "(", "DL", ",", "ACPC", "->", "getPromotedGlobalInit", "(", ")", ")", ";", "}", "MCSymbol", "*", "MCSym", ";", "if", "(", "ACPV", "->", "isLSDA", "(", ")", ")", "{", "MCSym", "=", "getCurExceptionSym", "(", ")", ";", "}", "else", "if", "(", "ACPV", "->", "isBlockAddress", "(", ")", ")", "{", "const", "BlockAddress", "*", "BA", "=", "cast", "<", "ARMConstantPoolConstant", ">", "(", "ACPV", ")", "->", "getBlockAddress", "(", ")", ";", "MCSym", "=", "GetBlockAddressSymbol", "(", "BA", ")", ";", "}", "else", "if", "(", "ACPV", "->", "isGlobalValue", "(", ")", ")", "{", "const", "GlobalValue", "*", "GV", "=", "cast", "<", "ARMConstantPoolConstant", ">", "(", "ACPV", ")", "->", "getGV", "(", ")", ";", "unsigned", "char", "TF", "=", "Subtarget", "->", "isTargetMachO", "(", ")", "?", "ARMII", "::", "MO_NONLAZY", ":", "0", ";", "MCSym", "=", "GetARMGVSymbol", "(", "GV", ",", "TF", ")", ";", "}", "else", "if", "(", "ACPV", "->", "isMachineBasicBlock", "(", ")", ")", "{", "const", "MachineBasicBlock", "*", "MBB", "=", "cast", "<", "ARMConstantPoolMBB", ">", "(", "ACPV", ")", "->", "getMBB", "(", ")", ";", "MCSym", "=", "MBB", "->", "getSymbol", "(", ")", ";", "}", "else", "{", "assert", "(", "ACPV", "->", "isExtSymbol", "(", ")", "&&", "\"unrecognized constant pool value\"", ")", ";", "auto", "Sym", "=", "cast", "<", "ARMConstantPoolSymbol", ">", "(", "ACPV", ")", "->", "getSymbol", "(", ")", ";", "MCSym", "=", "GetExternalSymbolSymbol", "(", "Sym", ")", ";", "}", "const", "MCExpr", "*", "Expr", "=", "MCSymbolRefExpr", "::", "create", "(", "MCSym", ",", "getModifierVariantKind", "(", "ACPV", "->", "getModifier", "(", ")", ")", ",", "OutContext", ")", ";", "if", "(", "ACPV", "->", "getPCAdjustment", "(", ")", ")", "{", "MCSymbol", "*", "PCLabel", "=", "getPICLabel", "(", "DL", ".", "getPrivateGlobalPrefix", "(", ")", ",", "getFunctionNumber", "(", ")", ",", "ACPV", "->", "getLabelId", "(", ")", ",", "OutContext", ")", ";", "const", "MCExpr", "*", "PCRelExpr", "=", "MCSymbolRefExpr", "::", "create", "(", "PCLabel", ",", "OutContext", ")", ";", "PCRelExpr", "=", "MCBinaryExpr", "::", "createAdd", "(", "PCRelExpr", ",", "MCConstantExpr", "::", "create", "(", "ACPV", "->", "getPCAdjustment", "(", ")", ",", "OutContext", ")", ",", "OutContext", ")", ";", "if", "(", "ACPV", "->", "mustAddCurrentAddress", "(", ")", ")", "{", "MCSymbol", "*", "DotSym", "=", "OutContext", ".", "createTempSymbol", "(", ")", ";", "OutStreamer", "->", "emitLabel", "(", "DotSym", ")", ";", "const", "MCExpr", "*", "DotExpr", "=", "MCSymbolRefExpr", "::", "create", "(", "DotSym", ",", "OutContext", ")", ";", "PCRelExpr", "=", "MCBinaryExpr", "::", "createSub", "(", "PCRelExpr", ",", "DotExpr", ",", "OutContext", ")", ";", "}", "Expr", "=", "MCBinaryExpr", "::", "createSub", "(", "Expr", ",", "PCRelExpr", ",", "OutContext", ")", ";", "}", "OutStreamer", "->", "emitValue", "(", "Expr", ",", "Size", ")", ";", "}", ""], "natrual_language": ["EmitMachineConstantPoolValue", "-", "Print", "a", "machine", "constantpool", "value", "to", "the", ".s", "file", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARMII::MO_NONLAZY", "0", "ARM", "ARM", "\"unrecognized constant pool value\"", "ARM"], "File": "ARMAsmPrinter35", "Func": "emitMachineConstantPoolValue", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3816, "Length": 483, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMExpandPseudo", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "STI", "=", "&", "static_cast", "<", "const", "ARMSubtarget", "&", ">", "(", "MF", ".", "getSubtarget", "(", ")", ")", ";", "TII", "=", "STI", "->", "getInstrInfo", "(", ")", ";", "TRI", "=", "STI", "->", "getRegisterInfo", "(", ")", ";", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "bool", "Modified", "=", "false", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "Modified", "|=", "ExpandMBB", "(", "MBB", ")", ";", "if", "(", "VerifyARMPseudo", ")", "MF", ".", "verify", "(", "this", ",", "\"After expanding ARM pseudo instructions.\"", ")", ";", "return", "Modified", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM", "\"After expanding ARM pseudo instructions.\""], "File": "ARMExpandPseudoInsts21", "Func": "runOnMachineFunction", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3817, "Length": 91, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx_insn", "*", "rs6000_emit_savres_rtx", "(", "rs6000_stack_t", "*", "info", ",", "rtx", "frame_reg_rtx", ",", "int", "save_area_offset", ",", "int", "lr_offset", ",", "machine_mode", "reg_mode", ",", "int", "sel", ")", "{", "int", "i", ";", "int", "offset", ",", "start_reg", ",", "end_reg", ",", "n_regs", ",", "use_reg", ";", "int", "reg_size", "=", "GET_MODE_SIZE", "(", "reg_mode", ")", ";", "rtx", "sym", ";", "rtvec", "p", ";", "rtx", "par", ";", "rtx_insn", "*", "insn", ";", "offset", "=", "0", ";", "start_reg", "=", "(", "(", "sel", "&", "SAVRES_REG", ")", "==", "SAVRES_GPR", "?", "info", "->", "first_gp_reg_save", ":", "(", "sel", "&", "SAVRES_REG", ")", "==", "SAVRES_FPR", "?", "info", "->", "first_fp_reg_save", ":", "(", "sel", "&", "SAVRES_REG", ")", "==", "SAVRES_VR", "?", "info", "->", "first_altivec_reg_save", ":", "-", "1", ")", ";", "end_reg", "=", "(", "(", "sel", "&", "SAVRES_REG", ")", "==", "SAVRES_GPR", "?", "32", ":", "(", "sel", "&", "SAVRES_REG", ")", "==", "SAVRES_FPR", "?", "64", ":", "(", "sel", "&", "SAVRES_REG", ")", "==", "SAVRES_VR", "?", "LAST_ALTIVEC_REGNO", "+", "1", ":", "-", "1", ")", ";", "n_regs", "=", "end_reg", "-", "start_reg", ";", "p", "=", "rtvec_alloc", "(", "3", "+", "(", "(", "sel", "&", "SAVRES_LR", ")", "?", "1", ":", "0", ")", "+", "(", "(", "sel", "&", "SAVRES_REG", ")", "==", "SAVRES_VR", "?", "1", ":", "0", ")", "+", "n_regs", ")", ";", "if", "(", "!", "(", "sel", "&", "SAVRES_SAVE", ")", "&&", "(", "sel", "&", "SAVRES_LR", ")", ")", "RTVEC_ELT", "(", "p", ",", "offset", "++", ")", "=", "ret_rtx", ";", "RTVEC_ELT", "(", "p", ",", "offset", "++", ")", "=", "gen_rtx_CLOBBER", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "Pmode", ",", "LR_REGNO", ")", ")", ";", "sym", "=", "rs6000_savres_routine_sym", "(", "info", ",", "sel", ")", ";", "RTVEC_ELT", "(", "p", ",", "offset", "++", ")", "=", "gen_rtx_USE", "(", "VOIDmode", ",", "sym", ")", ";", "use_reg", "=", "ptr_regno_for_savres", "(", "sel", ")", ";", "if", "(", "(", "sel", "&", "SAVRES_REG", ")", "==", "SAVRES_VR", ")", "{", "RTVEC_ELT", "(", "p", ",", "offset", "++", ")", "=", "gen_rtx_CLOBBER", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "Pmode", ",", "use_reg", ")", ")", ";", "RTVEC_ELT", "(", "p", ",", "offset", "++", ")", "=", "gen_rtx_USE", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "Pmode", ",", "0", ")", ")", ";", "}", "else", "RTVEC_ELT", "(", "p", ",", "offset", "++", ")", "=", "gen_rtx_USE", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "Pmode", ",", "use_reg", ")", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "end_reg", "-", "start_reg", ";", "i", "++", ")", "RTVEC_ELT", "(", "p", ",", "i", "+", "offset", ")", "=", "gen_frame_set", "(", "gen_rtx_REG", "(", "reg_mode", ",", "start_reg", "+", "i", ")", ",", "frame_reg_rtx", ",", "save_area_offset", "+", "reg_size", "*", "i", ",", "(", "sel", "&", "SAVRES_SAVE", ")", "!=", "0", ")", ";", "if", "(", "(", "sel", "&", "SAVRES_SAVE", ")", "&&", "(", "sel", "&", "SAVRES_LR", ")", ")", "RTVEC_ELT", "(", "p", ",", "i", "+", "offset", ")", "=", "gen_frame_store", "(", "gen_rtx_REG", "(", "Pmode", ",", "0", ")", ",", "frame_reg_rtx", ",", "lr_offset", ")", ";", "par", "=", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "p", ")", ";", "if", "(", "!", "(", "sel", "&", "SAVRES_SAVE", ")", "&&", "(", "sel", "&", "SAVRES_LR", ")", ")", "{", "insn", "=", "emit_jump_insn", "(", "par", ")", ";", "JUMP_LABEL", "(", "insn", ")", "=", "ret_rtx", ";", "}", "else", "insn", "=", "emit_insn", "(", "par", ")", ";", "return", "insn", ";", "}", ""], "natrual_language": ["Construct", "a", "parallel", "rtx", "describing", "the", "effect", "of", "a", "call", "to", "an", "out-of-line", "register", "save/restore", "routine", ",", "and", "emit", "the", "insn", "or", "jump_insn", "as", "appropriate", "."], "TS_V_token": ["powerpcspe", "0", "1", "32", "64", "1", "1", "3", "1", "0", "1", "0", "0", "0", "0", "0"], "File": "powerpcspe", "Func": "rs6000_emit_savres_rtx", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3818, "Length": 477, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "MipsTargetLowering", "::", "PerformDAGCombine", "(", "SDNode", "*", "N", ",", "DAGCombinerInfo", "&", "DCI", ")", "const", "{", "SelectionDAG", "&", "DAG", "=", "DCI", ".", "DAG", ";", "unsigned", "Opc", "=", "N", "->", "getOpcode", "(", ")", ";", "switch", "(", "Opc", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "SDIVREM", ":", "case", "ISD", "::", "UDIVREM", ":", "return", "performDivRemCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "SELECT", ":", "return", "performSELECTCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "MipsISD", "::", "CMovFP_F", ":", "case", "MipsISD", "::", "CMovFP_T", ":", "return", "performCMovFPCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "AND", ":", "return", "performANDCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "OR", ":", "return", "performORCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "ADD", ":", "return", "performADDCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "SHL", ":", "return", "performSHLCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "SUB", ":", "return", "performSUBCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "PTRADD", ":", "return", "performCIncOffsetToCandAddrCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "case", "ISD", "::", "INTRINSIC_WO_CHAIN", ":", "return", "performINTRINSIC_WO_CHAINCombine", "(", "N", ",", "DAG", ",", "DCI", ",", "Subtarget", ")", ";", "}", "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": ["Mips", "Mips", "ISD::SDIVREM", "ISD::UDIVREM", "ISD::SELECT", "MipsISD::CMovFP_F", "MipsISD::CMovFP_T", "ISD::AND", "ISD::OR", "ISD::ADD", "ISD::SHL", "ISD::SUB", "ISD::PTRADD", "ISD::INTRINSIC_WO_CHAIN"], "File": "MipsISelLowering66", "Func": "PerformDAGCombine", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3819, "Length": 228, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "tree", "arm_valid_target_attribute_tree", "(", "tree", "args", ",", "struct", "gcc_options", "*", "opts", ",", "struct", "gcc_options", "*", "opts_set", ")", "{", "if", "(", "!", "arm_valid_target_attribute_rec", "(", "args", ",", "opts", ")", ")", "return", "NULL_TREE", ";", "arm_option_override_internal", "(", "opts", ",", "opts_set", ")", ";", "return", "build_target_option_node", "(", "opts", ")", ";", "}", ""], "natrual_language": ["Return", "a", "TARGET_OPTION_NODE", "tree", "of", "the", "target", "options", "listed", "or", "NULL", "."], "TS_V_token": ["arm"], "File": "arm5", "Func": "arm_valid_target_attribute_tree", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3820, "Length": 44, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsSEInstrInfo", "::", "getOppositeBranchOpc", "(", "unsigned", "Opc", ")", "const", "{", "switch", "(", "Opc", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Illegal opcode!\"", ")", ";", "case", "Mips", "::", "BEQ", ":", "return", "Mips", "::", "BNE", ";", "case", "Mips", "::", "BNE", ":", "return", "Mips", "::", "BEQ", ";", "case", "Mips", "::", "BGTZ", ":", "return", "Mips", "::", "BLEZ", ";", "case", "Mips", "::", "BGEZ", ":", "return", "Mips", "::", "BLTZ", ";", "case", "Mips", "::", "BLTZ", ":", "return", "Mips", "::", "BGEZ", ";", "case", "Mips", "::", "BLEZ", ":", "return", "Mips", "::", "BGTZ", ";", "case", "Mips", "::", "BEQ64", ":", "return", "Mips", "::", "BNE64", ";", "case", "Mips", "::", "BNE64", ":", "return", "Mips", "::", "BEQ64", ";", "case", "Mips", "::", "BGTZ64", ":", "return", "Mips", "::", "BLEZ64", ";", "case", "Mips", "::", "BGEZ64", ":", "return", "Mips", "::", "BLTZ64", ";", "case", "Mips", "::", "BLTZ64", ":", "return", "Mips", "::", "BGEZ64", ";", "case", "Mips", "::", "BLEZ64", ":", "return", "Mips", "::", "BGTZ64", ";", "case", "Mips", "::", "BC1T", ":", "return", "Mips", "::", "BC1F", ";", "case", "Mips", "::", "BC1F", ":", "return", "Mips", "::", "BC1T", ";", "}", "}", ""], "natrual_language": ["getOppositeBranchOpc", "-", "Return", "the", "inverse", "of", "the", "specified", "opcode", ",", "e.g", "."], "TS_V_token": ["Mips", "Mips", "\"Illegal opcode!\"", "Mips::BEQ", "Mips::BNE", "Mips::BNE", "Mips::BEQ", "Mips::BGTZ", "Mips::BLEZ", "Mips::BGEZ", "Mips::BLTZ", "Mips::BLTZ", "Mips::BGEZ", "Mips::BLEZ", "Mips::BGTZ", "Mips::BEQ64", "Mips::BNE64", "Mips::BNE64", "Mips::BEQ64", "Mips::BGTZ64", "Mips::BLEZ64", "Mips::BGEZ64", "Mips::BLTZ64", "Mips::BLTZ64", "Mips::BGEZ64", "Mips::BLEZ64", "Mips::BGTZ64", "Mips::BC1T", "Mips::BC1F", "Mips::BC1F", "Mips::BC1T"], "File": "MipsSEInstrInfo15", "Func": "getOppositeBranchOpc", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3821, "Length": 164, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCPhysReg", "*", "AArch64RegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "assert", "(", "MF", "&&", "\"Invalid MachineFunction pointer.\"", ")", ";", "if", "(", "MF", "->", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ".", "isTargetDarwin", "(", ")", ")", "return", "getDarwinCalleeSavedRegs", "(", "MF", ")", ";", "if", "(", "MF", "->", "getFunction", "(", ")", ".", "getCallingConv", "(", ")", "==", "CallingConv", "::", "CFGuard_Check", ")", "return", "CSR_Win_AArch64_CFGuard_Check_SaveList", ";", "if", "(", "MF", "->", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ".", "isTargetWindows", "(", ")", ")", "return", "CSR_Win_AArch64_AAPCS_SaveList", ";", "if", "(", "MF", "->", "getFunction", "(", ")", ".", "getCallingConv", "(", ")", "==", "CallingConv", "::", "GHC", ")", "return", "CSR_AArch64_NoRegs_SaveList", ";", "if", "(", "MF", "->", "getFunction", "(", ")", ".", "getCallingConv", "(", ")", "==", "CallingConv", "::", "AnyReg", ")", "return", "CSR_AArch64_AllRegs_SaveList", ";", "if", "(", "MF", "->", "getFunction", "(", ")", ".", "getCallingConv", "(", ")", "==", "CallingConv", "::", "AArch64_VectorCall", ")", "return", "CSR_AArch64_AAVPCS_SaveList", ";", "if", "(", "MF", "->", "getFunction", "(", ")", ".", "getCallingConv", "(", ")", "==", "CallingConv", "::", "AArch64_SVE_VectorCall", ")", "return", "CSR_AArch64_SVE_AAPCS_SaveList", ";", "if", "(", "MF", "->", "getFunction", "(", ")", ".", "getCallingConv", "(", ")", "==", "CallingConv", "::", "CXX_FAST_TLS", ")", "return", "MF", "->", "getInfo", "<", "AArch64FunctionInfo", ">", "(", ")", "->", "isSplitCSR", "(", ")", "?", "CSR_AArch64_CXX_TLS_Darwin_PE_SaveList", ":", "CSR_AArch64_CXX_TLS_Darwin_SaveList", ";", "if", "(", "MF", "->", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ".", "getTargetLowering", "(", ")", "->", "supportSwiftError", "(", ")", "&&", "MF", "->", "getFunction", "(", ")", ".", "getAttributes", "(", ")", ".", "hasAttrSomewhere", "(", "Attribute", "::", "SwiftError", ")", ")", "return", "CSR_AArch64_AAPCS_SwiftError_SaveList", ";", "if", "(", "MF", "->", "getFunction", "(", ")", ".", "getCallingConv", "(", ")", "==", "CallingConv", "::", "PreserveMost", ")", "return", "CSR_AArch64_RT_MostRegs_SaveList", ";", "return", "CSR_AArch64_AAPCS_SaveList", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["AArch64", "AArch64", "\"Invalid MachineFunction pointer.\"", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64"], "File": "AArch64RegisterInfo67", "Func": "getCalleeSavedRegs", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3822, "Length": 251, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Register", "getExceptionPointerRegister", "(", "const", "Constant", "*", "PersonalityFn", ")", "const", "override", "{", "return", "AArch64", "::", "X0", ";", "}", ""], "natrual_language": ["If", "a", "physical", "register", ",", "this", "returns", "the", "register", "that", "receives", "the", "exception", "address", "on", "entry", "to", "an", "EH", "pad", "."], "TS_V_token": ["AArch64", "AArch64::X0"], "File": "AArch64ISelLowering (2)1", "Func": "getExceptionPointerRegister", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3823, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "aarch64_addti_scratch_regs", "(", "rtx", "op1", ",", "rtx", "op2", ",", "rtx", "*", "low_dest", ",", "rtx", "*", "low_in1", ",", "rtx", "*", "low_in2", ",", "rtx", "*", "high_dest", ",", "rtx", "*", "high_in1", ",", "rtx", "*", "high_in2", ")", "{", "*", "low_dest", "=", "gen_reg_rtx", "(", "DImode", ")", ";", "*", "low_in1", "=", "gen_lowpart", "(", "DImode", ",", "op1", ")", ";", "*", "low_in2", "=", "simplify_gen_subreg", "(", "DImode", ",", "op2", ",", "TImode", ",", "subreg_lowpart_offset", "(", "DImode", ",", "TImode", ")", ")", ";", "*", "high_dest", "=", "gen_reg_rtx", "(", "DImode", ")", ";", "*", "high_in1", "=", "gen_highpart", "(", "DImode", ",", "op1", ")", ";", "*", "high_in2", "=", "simplify_gen_subreg", "(", "DImode", ",", "op2", ",", "TImode", ",", "subreg_highpart_offset", "(", "DImode", ",", "TImode", ")", ")", ";", "}", ""], "natrual_language": ["Generate", "DImode", "scratch", "registers", "for", "128-bit", "(", "TImode", ")", "addition", ".", "OP1", "represents", "the", "TImode", "destination", "operand", "1", "OP2", "represents", "the", "TImode", "destination", "operand", "2", "LOW_DEST", "represents", "the", "low", "half", "(", "DImode", ")", "of", "TImode", "operand", "0", "LOW_IN1", "represents", "the", "low", "half", "(", "DImode", ")", "of", "TImode", "operand", "1", "LOW_IN2", "represents", "the", "low", "half", "(", "DImode", ")", "of", "TImode", "operand", "2", "HIGH_DEST", "represents", "the", "high", "half", "(", "DImode", ")", "of", "TImode", "operand", "0", "HIGH_IN1", "represents", "the", "high", "half", "(", "DImode", ")", "of", "TImode", "operand", "1", "HIGH_IN2", "represents", "the", "high", "half", "(", "DImode", ")", "of", "TImode", "operand", "2", "."], "TS_V_token": ["aarch64"], "File": "aarch64", "Func": "aarch64_addti_scratch_regs", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3824, "Length": 109, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "SystemZInstrInfo", "::", "isStoreToStackSlot", "(", "const", "MachineInstr", "*", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "return", "isSimpleMove", "(", "MI", ",", "FrameIndex", ",", "SystemZII", "::", "SimpleBDXStore", ")", ";", "}", ""], "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": ["SystemZ", "SystemZ", "SystemZII::SimpleBDXStore"], "File": "SystemZInstrInfo (2)", "Func": "isStoreToStackSlot", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3825, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "arm_const_double_rtx", "(", "rtx", "x", ")", "{", "const", "REAL_VALUE_TYPE", "*", "r", ";", "if", "(", "!", "fp_consts_inited", ")", "init_fp_table", "(", ")", ";", "r", "=", "CONST_DOUBLE_REAL_VALUE", "(", "x", ")", ";", "if", "(", "REAL_VALUE_MINUS_ZERO", "(", "*", "r", ")", ")", "return", "0", ";", "if", "(", "real_equal", "(", "r", ",", "&", "value_fp0", ")", ")", "return", "1", ";", "return", "0", ";", "}", ""], "natrual_language": ["Return", "TRUE", "if", "rtx", "X", "is", "a", "valid", "immediate", "FP", "constant", "."], "TS_V_token": ["arm", "0", "1", "0"], "File": "arm", "Func": "arm_const_double_rtx", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3826, "Length": 56, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "*", "SparcTargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MachineInstr", "*", "MI", ",", "MachineBasicBlock", "*", "BB", ")", "const", "{", "const", "TargetInstrInfo", "&", "TII", "=", "*", "getTargetMachine", "(", ")", ".", "getInstrInfo", "(", ")", ";", "unsigned", "BROpcode", ";", "unsigned", "CC", ";", "DebugLoc", "dl", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "assert", "(", "0", "&&", "\"Unknown SELECT_CC!\"", ")", ";", "case", "SP", "::", "SELECT_CC_Int_ICC", ":", "case", "SP", "::", "SELECT_CC_FP_ICC", ":", "case", "SP", "::", "SELECT_CC_DFP_ICC", ":", "BROpcode", "=", "SP", "::", "BCOND", ";", "break", ";", "case", "SP", "::", "SELECT_CC_Int_FCC", ":", "case", "SP", "::", "SELECT_CC_FP_FCC", ":", "case", "SP", "::", "SELECT_CC_DFP_FCC", ":", "BROpcode", "=", "SP", "::", "FBCOND", ";", "break", ";", "}", "CC", "=", "(", "SPCC", "::", "CondCodes", ")", "MI", "->", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", ";", "const", "BasicBlock", "*", "LLVM_BB", "=", "BB", "->", "getBasicBlock", "(", ")", ";", "MachineFunction", "::", "iterator", "It", "=", "BB", ";", "++", "It", ";", "MachineBasicBlock", "*", "thisMBB", "=", "BB", ";", "MachineFunction", "*", "F", "=", "BB", "->", "getParent", "(", ")", ";", "MachineBasicBlock", "*", "copy0MBB", "=", "F", "->", "CreateMachineBasicBlock", "(", "LLVM_BB", ")", ";", "MachineBasicBlock", "*", "sinkMBB", "=", "F", "->", "CreateMachineBasicBlock", "(", "LLVM_BB", ")", ";", "BuildMI", "(", "BB", ",", "dl", ",", "TII", ".", "get", "(", "BROpcode", ")", ")", ".", "addMBB", "(", "sinkMBB", ")", ".", "addImm", "(", "CC", ")", ";", "F", "->", "insert", "(", "It", ",", "copy0MBB", ")", ";", "F", "->", "insert", "(", "It", ",", "sinkMBB", ")", ";", "sinkMBB", "->", "transferSuccessors", "(", "BB", ")", ";", "BB", "->", "addSuccessor", "(", "copy0MBB", ")", ";", "BB", "->", "addSuccessor", "(", "sinkMBB", ")", ";", "BB", "=", "copy0MBB", ";", "BB", "->", "addSuccessor", "(", "sinkMBB", ")", ";", "BB", "=", "sinkMBB", ";", "BuildMI", "(", "BB", ",", "dl", ",", "TII", ".", "get", "(", "SP", "::", "PHI", ")", ",", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ")", ".", "addReg", "(", "MI", "->", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "copy0MBB", ")", ".", "addReg", "(", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "thisMBB", ")", ";", "F", "->", "DeleteMachineInstr", "(", "MI", ")", ";", "return", "BB", ";", "}", ""], "natrual_language": ["This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'usesCustomInserter", "'", "flag", "."], "TS_V_token": ["Sparc", "Sparc", "0", "\"Unknown SELECT_CC!\"", "SP::SELECT_CC_Int_ICC", "SP::SELECT_CC_FP_ICC", "SP::SELECT_CC_DFP_ICC", "SP::BCOND", "SP::SELECT_CC_Int_FCC", "SP::SELECT_CC_FP_FCC", "SP::SELECT_CC_DFP_FCC", "SP::FBCOND", "SPCC::CondCodes", "3", "SP::PHI", "0", "2", "1"], "File": "SparcISelLowering74", "Func": "EmitInstrWithCustomInserter", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3827, "Length": 341, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", "\"FISC DAG->DAG Pattern Instruction Selection\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["FISC", "\"FISC DAG->DAG Pattern Instruction Selection\""], "File": "FISCISelDAGToDAG", "Func": "getPassName", "Target": "FISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3828, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "applyFixup", "(", "const", "MCFixup", "&", "Fixup", ",", "char", "*", "Data", ",", "unsigned", "DataSize", ",", "uint64_t", "Value", ")", "const", "{", "MCFixupKind", "Kind", "=", "Fixup", ".", "getKind", "(", ")", ";", "Value", "=", "adjustFixupValue", "(", "(", "unsigned", ")", "Kind", ",", "Value", ")", ";", "if", "(", "!", "Value", ")", "return", ";", "unsigned", "Offset", "=", "Fixup", ".", "getOffset", "(", ")", ";", "unsigned", "NumBytes", "=", "(", "getFixupKindInfo", "(", "Kind", ")", ".", "TargetSize", "+", "7", ")", "/", "8", ";", "unsigned", "FullSize", ";", "switch", "(", "(", "unsigned", ")", "Kind", ")", "{", "case", "Cpu0", "::", "fixup_Cpu0_16", ":", "FullSize", "=", "2", ";", "break", ";", "default", ":", "FullSize", "=", "4", ";", "break", ";", "}", "uint64_t", "CurVal", "=", "0", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "NumBytes", ";", "++", "i", ")", "{", "unsigned", "Idx", "=", "IsLittle", "?", "i", ":", "(", "FullSize", "-", "1", "-", "i", ")", ";", "CurVal", "|=", "(", "uint64_t", ")", "(", "(", "uint8_t", ")", "Data", "[", "Offset", "+", "Idx", "]", ")", "<<", "(", "i", "*", "8", ")", ";", "}", "uint64_t", "Mask", "=", "(", "(", "uint64_t", ")", "(", "-", "1", ")", ">>", "(", "64", "-", "getFixupKindInfo", "(", "Kind", ")", ".", "TargetSize", ")", ")", ";", "CurVal", "|=", "Value", "&", "Mask", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "NumBytes", ";", "++", "i", ")", "{", "unsigned", "Idx", "=", "IsLittle", "?", "i", ":", "(", "FullSize", "-", "1", "-", "i", ")", ";", "Data", "[", "Offset", "+", "Idx", "]", "=", "(", "uint8_t", ")", "(", "(", "CurVal", ">>", "(", "i", "*", "8", ")", ")", "&", "0xff", ")", ";", "}", "}", ""], "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": ["Cpu0", "7", "8", "Cpu0::fixup_Cpu0_16", "2", "4", "0", "0", "1", "8", "1", "64", "0", "1", "8", "0xff"], "File": "Cpu0AsmBackend1", "Func": "applyFixup", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3829, "Length": 249, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mips_multi_add_insn", "(", "const", "char", "*", "format", ",", "...", ")", "{", "struct", "mips_multi_member", "*", "member", ";", "va_list", "ap", ";", "unsigned", "int", "i", ";", "rtx", "op", ";", "member", "=", "mips_multi_add", "(", ")", ";", "member", "->", "is_label_p", "=", "false", ";", "member", "->", "format", "=", "format", ";", "va_start", "(", "ap", ",", "format", ")", ";", "i", "=", "0", ";", "while", "(", "(", "op", "=", "va_arg", "(", "ap", ",", "rtx", ")", ")", ")", "member", "->", "operands", "[", "i", "++", "]", "=", "op", ";", "va_end", "(", "ap", ")", ";", "mips_multi_num_insns", "++", ";", "}", ""], "natrual_language": ["Add", "a", "normal", "insn", "with", "the", "given", "asm", "format", "to", "the", "current", "multi-insn", "sequence", ".", "The", "other", "arguments", "are", "a", "null-terminated", "list", "of", "operands", "."], "TS_V_token": ["mips", "0"], "File": "mips", "Func": "mips_multi_add_insn", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3830, "Length": 88, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "iq2000_reg_mode_ok_for_base_p", "(", "rtx", "reg", ",", "enum", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "int", "strict", ")", "{", "return", "(", "strict", "?", "REGNO_MODE_OK_FOR_BASE_P", "(", "REGNO", "(", "reg", ")", ",", "mode", ")", ":", "GP_REG_OR_PSEUDO_NONSTRICT_P", "(", "REGNO", "(", "reg", ")", ",", "mode", ")", ")", ";", "}", ""], "natrual_language": ["Return", "nonzero", "if", "REG", "is", "valid", "for", "MODE", "."], "TS_V_token": ["iq2000"], "File": "iq20002", "Func": "iq2000_reg_mode_ok_for_base_p", "Target": "iq2000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3831, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsSEFrameLowering", "::", "spillCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "MachineBasicBlock", "*", "EntryBlock", "=", "MF", "->", "begin", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", "->", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "]", ".", "getReg", "(", ")", ";", "bool", "IsRAAndRetAddrIsTaken", "=", "(", "Reg", "==", "Mips", "::", "RA", "||", "Reg", "==", "Mips", "::", "RA_64", ")", "&&", "MF", "->", "getFrameInfo", "(", ")", "->", "isReturnAddressTaken", "(", ")", ";", "if", "(", "!", "IsRAAndRetAddrIsTaken", ")", "EntryBlock", "->", "addLiveIn", "(", "Reg", ")", ";", "bool", "IsKill", "=", "!", "IsRAAndRetAddrIsTaken", ";", "const", "TargetRegisterClass", "*", "RC", "=", "TRI", "->", "getMinimalPhysRegClass", "(", "Reg", ")", ";", "TII", ".", "storeRegToStackSlot", "(", "*", "EntryBlock", ",", "MI", ",", "Reg", ",", "IsKill", ",", "CSI", "[", "i", "]", ".", "getFrameIdx", "(", ")", ",", "RC", ",", "TRI", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["spillCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "spill", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "store", "instructions", "via", "storeRegToStackSlot", "(", ")", "."], "TS_V_token": ["Mips", "Mips", "0", "Mips::RA", "Mips::RA_64"], "File": "MipsSEFrameLowering12", "Func": "spillCalleeSavedRegisters", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3832, "Length": 191, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "processBlock", "(", "MachineBasicBlock", "&", "MBB", ")", "{", "bool", "Changed", "=", "false", ";", "SmallVector", "<", "MachineInstr", "*", ",", "4", ">", "ToDelete", ";", "for", "(", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "begin", "(", ")", ",", "IE", "=", "MBB", ".", "end", "(", ")", ";", "I", "!=", "IE", ";", "++", "I", ")", "{", "MachineInstr", "*", "MI", "=", "I", ";", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "PPC", "::", "XXLOR", "&&", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", "==", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", "&&", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", "==", "MI", "->", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ")", "ToDelete", ".", "push_back", "(", "MI", ")", ";", "}", "if", "(", "!", "ToDelete", ".", "empty", "(", ")", ")", "Changed", "=", "true", ";", "for", "(", "unsigned", "i", "=", "0", ",", "ie", "=", "ToDelete", ".", "size", "(", ")", ";", "i", "!=", "ie", ";", "++", "i", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Removing VSX self-copy: \"", "<<", "*", "ToDelete", "[", "i", "]", ")", ";", "ToDelete", "[", "i", "]", "->", "eraseFromParent", "(", ")", ";", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["processBlock", "-", "If", "there", "are", "any", "predecessors", "whose", "control", "can", "be", "threaded", "through", "to", "a", "successor", ",", "transform", "them", "now", "."], "TS_V_token": ["PowerPC", "4", "PPC::XXLOR", "0", "1", "0", "2", "0", "\"Removing VSX self-copy: \""], "File": "PPCInstrInfo1", "Func": "processBlock", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3833, "Length": 186, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64CallLowering", "::", "splitToValueTypes", "(", "const", "ArgInfo", "&", "OrigArg", ",", "SmallVectorImpl", "<", "ArgInfo", ">", "&", "SplitArgs", ",", "const", "DataLayout", "&", "DL", ",", "MachineRegisterInfo", "&", "MRI", ",", "SplitArgTy", "PerformArgSplit", ")", "const", "{", "const", "AArch64TargetLowering", "&", "TLI", "=", "*", "getTLI", "<", "AArch64TargetLowering", ">", "(", ")", ";", "LLVMContext", "&", "Ctx", "=", "OrigArg", ".", "Ty", "->", "getContext", "(", ")", ";", "SmallVector", "<", "EVT", ",", "4", ">", "SplitVTs", ";", "SmallVector", "<", "uint64_t", ",", "4", ">", "Offsets", ";", "ComputeValueVTs", "(", "TLI", ",", "DL", ",", "OrigArg", ".", "Ty", ",", "SplitVTs", ",", "&", "Offsets", ",", "0", ")", ";", "if", "(", "SplitVTs", ".", "size", "(", ")", "==", "1", ")", "{", "SplitArgs", ".", "emplace_back", "(", "OrigArg", ".", "Reg", ",", "SplitVTs", "[", "0", "]", ".", "getTypeForEVT", "(", "Ctx", ")", ",", "OrigArg", ".", "Flags", ")", ";", "return", ";", "}", "unsigned", "FirstRegIdx", "=", "SplitArgs", ".", "size", "(", ")", ";", "for", "(", "auto", "SplitVT", ":", "SplitVTs", ")", "{", "Type", "*", "SplitTy", "=", "SplitVT", ".", "getTypeForEVT", "(", "Ctx", ")", ";", "SplitArgs", ".", "push_back", "(", "ArgInfo", "{", "MRI", ".", "createGenericVirtualRegister", "(", "LLT", "{", "*", "SplitTy", ",", "DL", "}", ")", ",", "SplitTy", ",", "OrigArg", ".", "Flags", "}", ")", ";", "}", "SmallVector", "<", "uint64_t", ",", "4", ">", "BitOffsets", ";", "for", "(", "auto", "Offset", ":", "Offsets", ")", "BitOffsets", ".", "push_back", "(", "Offset", "*", "8", ")", ";", "SmallVector", "<", "unsigned", ",", "8", ">", "SplitRegs", ";", "for", "(", "auto", "I", "=", "&", "SplitArgs", "[", "FirstRegIdx", "]", ";", "I", "!=", "SplitArgs", ".", "end", "(", ")", ";", "++", "I", ")", "SplitRegs", ".", "push_back", "(", "I", "->", "Reg", ")", ";", "PerformArgSplit", "(", "SplitRegs", ",", "BitOffsets", ")", ";", "}", ""], "natrual_language": ["Break", "OrigArgInfo", "into", "one", "or", "more", "pieces", "the", "calling", "convention", "can", "process", ",", "returned", "in", "SplitArgs", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "4", "4", "0", "1", "0", "4", "8", "8"], "File": "AArch64CallLowering22", "Func": "splitToValueTypes", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3834, "Length": 254, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "non_hard_reg_operand", "(", "rtx", "op", ",", "enum", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ")", "{", "return", "!", "(", "GET_CODE", "(", "op", ")", "==", "REG", "&&", "REGNO", "(", "op", ")", "<", "FIRST_PSEUDO_REGISTER", ")", ";", "}", ""], "natrual_language": ["Return", "1", "if", "this", "operand", "is", "anything", "other", "than", "a", "hard", "register", "."], "TS_V_token": ["pa"], "File": "pa3", "Func": "non_hard_reg_operand", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3835, "Length": 31, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "relaxInstruction", "(", "const", "MCInst", "&", ",", "llvm", "::", "MCInst", "&", ")", "const", "{", "llvm_unreachable", "(", "\"Cannot relax instructions\"", ")", ";", "}", ""], "natrual_language": ["Relax", "the", "instruction", "in", "the", "given", "fragment", "to", "the", "next", "wider", "instruction", "."], "TS_V_token": ["AArch64", "\"Cannot relax instructions\""], "File": "AArch64AsmBackend16", "Func": "relaxInstruction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3836, "Length": 20, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "RCPair", "ARMTargetLowering", "::", "getRegForInlineAsmConstraint", "(", "const", "std", "::", "string", "&", "Constraint", ",", "MVT", "VT", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'l'", ":", "if", "(", "Subtarget", "->", "isThumb", "(", ")", ")", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "tGPRRegClass", ")", ";", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "GPRRegClass", ")", ";", "case", "'h'", ":", "if", "(", "Subtarget", "->", "isThumb", "(", ")", ")", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "hGPRRegClass", ")", ";", "break", ";", "case", "'r'", ":", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "GPRRegClass", ")", ";", "case", "'w'", ":", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "SPRRegClass", ")", ";", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "64", ")", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "DPRRegClass", ")", ";", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "128", ")", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "QPRRegClass", ")", ";", "break", ";", "case", "'x'", ":", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "SPR_8RegClass", ")", ";", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "64", ")", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "DPR_8RegClass", ")", ";", "if", "(", "VT", ".", "getSizeInBits", "(", ")", "==", "128", ")", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "QPR_8RegClass", ")", ";", "break", ";", "case", "'t'", ":", "if", "(", "VT", "==", "MVT", "::", "f32", ")", "return", "RCPair", "(", "0U", ",", "&", "ARM", "::", "SPRRegClass", ")", ";", "break", ";", "}", "}", "if", "(", "StringRef", "(", "\"{cc}\"", ")", ".", "equals_lower", "(", "Constraint", ")", ")", "return", "std", "::", "make_pair", "(", "unsigned", "(", "ARM", "::", "CPSR", ")", ",", "&", "ARM", "::", "CCRRegClass", ")", ";", "return", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "Constraint", ",", "VT", ")", ";", "}", ""], "natrual_language": ["Given", "a", "physical", "register", "constraint", "(", "e.g", "."], "TS_V_token": ["ARM", "ARM", "1", "0", "0U", "ARM::tGPRRegClass", "0U", "ARM::GPRRegClass", "0U", "ARM::hGPRRegClass", "0U", "ARM::GPRRegClass", "MVT::f32", "0U", "ARM::SPRRegClass", "64", "0U", "ARM::DPRRegClass", "128", "0U", "ARM::QPRRegClass", "MVT::f32", "0U", "ARM::SPR_8RegClass", "64", "0U", "ARM::DPR_8RegClass", "128", "0U", "ARM::QPR_8RegClass", "MVT::f32", "0U", "ARM::SPRRegClass", "\"{cc}\"", "ARM::CPSR", "ARM::CCRRegClass"], "File": "ARMISelLowering (2)1", "Func": "getRegForInlineAsmConstraint", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3837, "Length": 306, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isBarrier", "(", ")", "const", "{", "return", "Kind", "==", "k_Barrier", ";", "}", ""], "natrual_language": ["Tests", "if", "this", "is", "an", "Order", "dependence", "that", "is", "marked", "as", "a", "barrier", "."], "TS_V_token": ["AArch64"], "File": "AArch64AsmParser (2)1", "Func": "isBarrier", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3838, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "ix86_static_chain", "(", "const_tree", "fndecl_or_type", ",", "bool", "incoming_p", ")", "{", "unsigned", "regno", ";", "if", "(", "TARGET_64BIT", ")", "{", "regno", "=", "R10_REG", ";", "}", "else", "{", "const_tree", "fntype", ",", "fndecl", ";", "unsigned", "int", "ccvt", ";", "regno", "=", "CX_REG", ";", "if", "(", "TREE_CODE", "(", "fndecl_or_type", ")", "==", "FUNCTION_DECL", ")", "{", "fntype", "=", "TREE_TYPE", "(", "fndecl_or_type", ")", ";", "fndecl", "=", "fndecl_or_type", ";", "}", "else", "{", "fntype", "=", "fndecl_or_type", ";", "fndecl", "=", "NULL", ";", "}", "ccvt", "=", "ix86_get_callcvt", "(", "fntype", ")", ";", "if", "(", "(", "ccvt", "&", "IX86_CALLCVT_FASTCALL", ")", "!=", "0", ")", "{", "regno", "=", "AX_REG", ";", "}", "else", "if", "(", "(", "ccvt", "&", "IX86_CALLCVT_THISCALL", ")", "!=", "0", ")", "{", "regno", "=", "AX_REG", ";", "}", "else", "if", "(", "ix86_function_regparm", "(", "fntype", ",", "fndecl", ")", "==", "3", ")", "{", "if", "(", "incoming_p", ")", "{", "if", "(", "fndecl", "==", "current_function_decl", "&&", "!", "ix86_static_chain_on_stack", ")", "{", "gcc_assert", "(", "!", "reload_completed", ")", ";", "ix86_static_chain_on_stack", "=", "true", ";", "}", "return", "gen_frame_mem", "(", "SImode", ",", "plus_constant", "(", "Pmode", ",", "arg_pointer_rtx", ",", "-", "8", ")", ")", ";", "}", "regno", "=", "SI_REG", ";", "}", "}", "return", "gen_rtx_REG", "(", "Pmode", ",", "regno", ")", ";", "}", ""], "natrual_language": ["Find", "a", "location", "for", "the", "static", "chain", "incoming", "to", "a", "nested", "function", ".", "This", "is", "a", "register", ",", "unless", "all", "free", "registers", "are", "used", "by", "arguments", "."], "TS_V_token": ["i386", "0", "0", "3", "8"], "File": "i386", "Func": "ix86_static_chain", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3839, "Length": 183, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86RetpolineThunks", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "getPassName", "(", ")", "<<", "'\\n'", ")", ";", "TM", "=", "&", "MF", ".", "getTarget", "(", ")", ";", ";", "STI", "=", "&", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "TII", "=", "STI", "->", "getInstrInfo", "(", ")", ";", "Is64Bit", "=", "TM", "->", "getTargetTriple", "(", ")", ".", "getArch", "(", ")", "==", "Triple", "::", "x86_64", ";", "MMI", "=", "&", "getAnalysis", "<", "MachineModuleInfo", ">", "(", ")", ";", "Module", "&", "M", "=", "const_cast", "<", "Module", "&", ">", "(", "*", "MMI", "->", "getModule", "(", ")", ")", ";", "if", "(", "!", "MF", ".", "getName", "(", ")", ".", "startswith", "(", "ThunkNamePrefix", ")", ")", "{", "if", "(", "InsertedThunks", ")", "return", "false", ";", "if", "(", "(", "!", "STI", "->", "useRetpolineIndirectCalls", "(", ")", "&&", "!", "STI", "->", "useRetpolineIndirectBranches", "(", ")", ")", "||", "STI", "->", "useRetpolineExternalThunk", "(", ")", ")", "return", "false", ";", "if", "(", "Is64Bit", ")", "createThunkFunction", "(", "M", ",", "R11ThunkName", ")", ";", "else", "for", "(", "StringRef", "Name", ":", "{", "EAXThunkName", ",", "ECXThunkName", ",", "EDXThunkName", ",", "EDIThunkName", "}", ")", "createThunkFunction", "(", "M", ",", "Name", ")", ";", "InsertedThunks", "=", "true", ";", "return", "true", ";", "}", "if", "(", "Is64Bit", ")", "{", "assert", "(", "MF", ".", "getName", "(", ")", "==", "\"__llvm_retpoline_r11\"", "&&", "\"Should only have an r11 thunk on 64-bit targets\"", ")", ";", "populateThunk", "(", "MF", ",", "X86", "::", "R11", ")", ";", "}", "else", "{", "if", "(", "MF", ".", "getName", "(", ")", "==", "EAXThunkName", ")", "populateThunk", "(", "MF", ",", "X86", "::", "EAX", ")", ";", "else", "if", "(", "MF", ".", "getName", "(", ")", "==", "ECXThunkName", ")", "populateThunk", "(", "MF", ",", "X86", "::", "ECX", ")", ";", "else", "if", "(", "MF", ".", "getName", "(", ")", "==", "EDXThunkName", ")", "populateThunk", "(", "MF", ",", "X86", "::", "EDX", ")", ";", "else", "if", "(", "MF", ".", "getName", "(", ")", "==", "EDIThunkName", ")", "populateThunk", "(", "MF", ",", "X86", "::", "EDI", ")", ";", "else", "llvm_unreachable", "(", "\"Invalid thunk name on x86-32!\"", ")", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["X86", "X86", "X86", "\"__llvm_retpoline_r11\"", "\"Should only have an r11 thunk on 64-bit targets\"", "X86::R11", "X86::EAX", "X86::ECX", "X86::EDX", "X86::EDI", "\"Invalid thunk name on x86-32!\""], "File": "X86RetpolineThunks", "Func": "runOnMachineFunction", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3840, "Length": 308, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Value", "*", "X86TargetLowering", "::", "getSafeStackPointerLocation", "(", "IRBuilder", "<", ">", "&", "IRB", ")", "const", "{", "if", "(", "!", "Subtarget", ".", "isTargetAndroid", "(", ")", ")", "return", "TargetLowering", "::", "getSafeStackPointerLocation", "(", "IRB", ")", ";", "unsigned", "AddressSpace", ",", "Offset", ";", "Offset", "=", "(", "Subtarget", ".", "is64Bit", "(", ")", ")", "?", "0x48", ":", "0x24", ";", "AddressSpace", "=", "getAddressSpace", "(", ")", ";", "return", "ConstantExpr", "::", "getIntToPtr", "(", "ConstantInt", "::", "get", "(", "Type", "::", "getInt32Ty", "(", "IRB", ".", "getContext", "(", ")", ")", ",", "Offset", ")", ",", "Type", "::", "getInt8PtrTy", "(", "IRB", ".", "getContext", "(", ")", ")", "->", "getPointerTo", "(", "AddressSpace", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "stores", "SafeStack", "pointer", "at", "a", "fixed", "offset", "in", "some", "non-standard", "address", "space", ",", "and", "populates", "the", "address", "space", "and", "offset", "as", "appropriate", "."], "TS_V_token": ["X86", "X86", "0x48", "0x24"], "File": "X86ISelLowering (3)", "Func": "getSafeStackPointerLocation", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3841, "Length": 97, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "sh_delegitimize_address", "(", "rtx", "orig_x", ")", "{", "rtx", "x", ",", "y", ";", "orig_x", "=", "delegitimize_mem_from_attrs", "(", "orig_x", ")", ";", "x", "=", "orig_x", ";", "if", "(", "MEM_P", "(", "x", ")", ")", "x", "=", "XEXP", "(", "x", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "CONST", ")", "{", "y", "=", "XEXP", "(", "x", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "y", ")", "==", "UNSPEC", ")", "{", "if", "(", "XINT", "(", "y", ",", "1", ")", "==", "UNSPEC_GOT", "||", "XINT", "(", "y", ",", "1", ")", "==", "UNSPEC_GOTOFF", "||", "XINT", "(", "y", ",", "1", ")", "==", "UNSPEC_SYMOFF", ")", "return", "XVECEXP", "(", "y", ",", "0", ",", "0", ")", ";", "else", "if", "(", "XINT", "(", "y", ",", "1", ")", "==", "UNSPEC_PCREL_SYMOFF", ")", "{", "if", "(", "GET_CODE", "(", "XVECEXP", "(", "y", ",", "0", ",", "0", ")", ")", "==", "CONST", ")", "{", "rtx", "symplt", "=", "XEXP", "(", "XVECEXP", "(", "y", ",", "0", ",", "0", ")", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "symplt", ")", "==", "UNSPEC", "&&", "XINT", "(", "symplt", ",", "1", ")", "==", "UNSPEC_PLT", ")", "return", "XVECEXP", "(", "symplt", ",", "0", ",", "0", ")", ";", "}", "}", "else", "if", "(", "TARGET_SHMEDIA", "&&", "(", "XINT", "(", "y", ",", "1", ")", "==", "UNSPEC_EXTRACT_S16", "||", "XINT", "(", "y", ",", "1", ")", "==", "UNSPEC_EXTRACT_U16", ")", ")", "{", "rtx", "offset", "=", "XVECEXP", "(", "y", ",", "0", ",", "1", ")", ";", "x", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "XVECEXP", "(", "y", ",", "0", ",", "0", ")", ",", "offset", ")", ";", "if", "(", "MEM_P", "(", "orig_x", ")", ")", "x", "=", "replace_equiv_address_nv", "(", "orig_x", ",", "x", ")", ";", "return", "x", ";", "}", "}", "}", "return", "orig_x", ";", "}", ""], "natrual_language": ["In", "the", "name", "of", "slightly", "smaller", "debug", "output", ",", "and", "to", "cater", "to", "general", "assembler", "lossage", ",", "recognize", "various", "UNSPEC", "sequences", "and", "turn", "them", "back", "into", "a", "direct", "symbol", "reference", "."], "TS_V_token": ["sh", "0", "0", "1", "1", "1", "0", "0", "1", "0", "0", "0", "0", "0", "1", "0", "0", "1", "1", "0", "1", "0", "0"], "File": "sh4", "Func": "sh_delegitimize_address", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3842, "Length": 267, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "iq2000_function_value_regno_p", "(", "const", "unsigned", "int", "regno", ")", "{", "return", "(", "regno", "==", "GP_RETURN", ")", ";", "}", ""], "natrual_language": ["Worker", "function", "for", "FUNCTION_VALUE_REGNO_P", ".", "On", "the", "IQ2000", ",", "R2", "and", "R3", "are", "the", "only", "register", "thus", "used", "."], "TS_V_token": ["iq2000"], "File": "iq2000", "Func": "iq2000_function_value_regno_p", "Target": "iq2000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3843, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64TargetLowering", "::", "LowerAsmOperandForConstraint", "(", "SDValue", "Op", ",", "std", "::", "string", "&", "Constraint", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "Ops", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SDValue", "Result", "(", "0", ",", "0", ")", ";", "if", "(", "Constraint", ".", "size", "(", ")", "!=", "1", ")", "return", ";", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "default", ":", "break", ";", "case", "'I'", ":", "case", "'J'", ":", "case", "'K'", ":", "case", "'L'", ":", "case", "'M'", ":", "case", "'N'", ":", "case", "'Z'", ":", "{", "ConstantSDNode", "*", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", ")", ";", "if", "(", "!", "C", ")", "return", ";", "uint64_t", "CVal", "=", "C", "->", "getZExtValue", "(", ")", ";", "uint32_t", "Bits", ";", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unimplemented C_Other constraint\"", ")", ";", "case", "'I'", ":", "if", "(", "CVal", "<=", "0xfff", ")", "break", ";", "return", ";", "case", "'K'", ":", "if", "(", "A64Imms", "::", "isLogicalImm", "(", "32", ",", "CVal", ",", "Bits", ")", ")", "break", ";", "return", ";", "case", "'L'", ":", "if", "(", "A64Imms", "::", "isLogicalImm", "(", "64", ",", "CVal", ",", "Bits", ")", ")", "break", ";", "return", ";", "case", "'Z'", ":", "if", "(", "CVal", "==", "0", ")", "break", ";", "return", ";", "}", "Result", "=", "DAG", ".", "getTargetConstant", "(", "CVal", ",", "Op", ".", "getValueType", "(", ")", ")", ";", "break", ";", "}", "case", "'S'", ":", "{", "if", "(", "const", "GlobalAddressSDNode", "*", "GA", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "Op", ")", ")", "{", "Result", "=", "DAG", ".", "getTargetGlobalAddress", "(", "GA", "->", "getGlobal", "(", ")", ",", "SDLoc", "(", "Op", ")", ",", "GA", "->", "getValueType", "(", "0", ")", ")", ";", "}", "else", "if", "(", "const", "BlockAddressSDNode", "*", "BA", "=", "dyn_cast", "<", "BlockAddressSDNode", ">", "(", "Op", ")", ")", "{", "Result", "=", "DAG", ".", "getTargetBlockAddress", "(", "BA", "->", "getBlockAddress", "(", ")", ",", "BA", "->", "getValueType", "(", "0", ")", ")", ";", "}", "else", "if", "(", "const", "ExternalSymbolSDNode", "*", "ES", "=", "dyn_cast", "<", "ExternalSymbolSDNode", ">", "(", "Op", ")", ")", "{", "Result", "=", "DAG", ".", "getTargetExternalSymbol", "(", "ES", "->", "getSymbol", "(", ")", ",", "ES", "->", "getValueType", "(", "0", ")", ")", ";", "}", "else", "return", ";", "break", ";", "}", "case", "'Y'", ":", "if", "(", "const", "ConstantFPSDNode", "*", "CFP", "=", "dyn_cast", "<", "ConstantFPSDNode", ">", "(", "Op", ")", ")", "{", "if", "(", "CFP", "->", "isExactlyValue", "(", "0.0", ")", ")", "{", "Result", "=", "DAG", ".", "getTargetConstantFP", "(", "0.0", ",", "CFP", "->", "getValueType", "(", "0", ")", ")", ";", "break", ";", "}", "}", "return", ";", "}", "if", "(", "Result", ".", "getNode", "(", ")", ")", "{", "Ops", ".", "push_back", "(", "Result", ")", ";", "return", ";", "}", "TargetLowering", "::", "LowerAsmOperandForConstraint", "(", "Op", ",", "Constraint", ",", "Ops", ",", "DAG", ")", ";", "}", ""], "natrual_language": ["Lower", "the", "specified", "operand", "into", "the", "Ops", "vector", "."], "TS_V_token": ["AArch64", "AArch64", "0", "0", "1", "0", "0", "\"Unimplemented C_Other constraint\"", "0xfff", "32", "64", "0", "0", "0", "0", "0.0", "0.0", "0"], "File": "AArch64ISelLowering113", "Func": "LowerAsmOperandForConstraint", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3844, "Length": 427, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "MipsRegisterInfo", "::", "getCallPreservedMask", "(", "CallingConv", "::", "ID", ")", "const", "{", "if", "(", "Subtarget", ".", "isSingleFloat", "(", ")", ")", "return", "CSR_SingleFloatOnly_RegMask", ";", "if", "(", "Subtarget", ".", "isFPXX", "(", ")", ")", "return", "CSR_O32_FPXX_RegMask", ";", "return", "CSR_O32_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["Mips", "Mips"], "File": "MipsRegisterInfo30", "Func": "getCallPreservedMask", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3845, "Length": 39, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "has_memory_op", "(", "rtx_insn", "*", "mem_insn", ")", "{", "subrtx_iterator", "::", "array_type", "array", ";", "FOR_EACH_SUBRTX", "(", "iter", ",", "array", ",", "PATTERN", "(", "mem_insn", ")", ",", "ALL", ")", "if", "(", "MEM_P", "(", "*", "iter", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "rtx_insn", "contains", "a", "MEM", "RTX", "somewhere", "in", "it", "."], "TS_V_token": ["aarch64"], "File": "aarch642", "Func": "has_memory_op", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3846, "Length": 42, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "InstructionCost", "AArch64TTIImpl", "::", "getIntImmCostInst", "(", "unsigned", "Opcode", ",", "unsigned", "Idx", ",", "const", "APInt", "&", "Imm", ",", "Type", "*", "Ty", ",", "TTI", "::", "TargetCostKind", "CostKind", ",", "Instruction", "*", "Inst", ")", "{", "assert", "(", "Ty", "->", "isIntegerTy", "(", ")", ")", ";", "unsigned", "BitSize", "=", "Ty", "->", "getPrimitiveSizeInBits", "(", ")", ";", "if", "(", "BitSize", "==", "0", ")", "return", "TTI", "::", "TCC_Free", ";", "unsigned", "ImmIdx", "=", "~", "0U", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "TTI", "::", "TCC_Free", ";", "case", "Instruction", "::", "GetElementPtr", ":", "if", "(", "Idx", "==", "0", ")", "return", "2", "*", "TTI", "::", "TCC_Basic", ";", "return", "TTI", "::", "TCC_Free", ";", "case", "Instruction", "::", "Store", ":", "ImmIdx", "=", "0", ";", "break", ";", "case", "Instruction", "::", "Add", ":", "case", "Instruction", "::", "Sub", ":", "case", "Instruction", "::", "Mul", ":", "case", "Instruction", "::", "UDiv", ":", "case", "Instruction", "::", "SDiv", ":", "case", "Instruction", "::", "URem", ":", "case", "Instruction", "::", "SRem", ":", "case", "Instruction", "::", "And", ":", "case", "Instruction", "::", "Or", ":", "case", "Instruction", "::", "Xor", ":", "case", "Instruction", "::", "ICmp", ":", "ImmIdx", "=", "1", ";", "break", ";", "case", "Instruction", "::", "Shl", ":", "case", "Instruction", "::", "LShr", ":", "case", "Instruction", "::", "AShr", ":", "if", "(", "Idx", "==", "1", ")", "return", "TTI", "::", "TCC_Free", ";", "break", ";", "case", "Instruction", "::", "Trunc", ":", "case", "Instruction", "::", "ZExt", ":", "case", "Instruction", "::", "SExt", ":", "case", "Instruction", "::", "IntToPtr", ":", "case", "Instruction", "::", "PtrToInt", ":", "case", "Instruction", "::", "BitCast", ":", "case", "Instruction", "::", "PHI", ":", "case", "Instruction", "::", "Call", ":", "case", "Instruction", "::", "Select", ":", "case", "Instruction", "::", "Ret", ":", "case", "Instruction", "::", "Load", ":", "break", ";", "}", "if", "(", "Idx", "==", "ImmIdx", ")", "{", "int", "NumConstants", "=", "(", "BitSize", "+", "63", ")", "/", "64", ";", "InstructionCost", "Cost", "=", "AArch64TTIImpl", "::", "getIntImmCost", "(", "Imm", ",", "Ty", ",", "CostKind", ")", ";", "return", "(", "Cost", "<=", "NumConstants", "*", "TTI", "::", "TCC_Basic", ")", "?", "static_cast", "<", "int", ">", "(", "TTI", "::", "TCC_Free", ")", ":", "Cost", ";", "}", "return", "AArch64TTIImpl", "::", "getIntImmCost", "(", "Imm", ",", "Ty", ",", "CostKind", ")", ";", "}", ""], "natrual_language": ["Return", "the", "expected", "cost", "of", "materialization", "for", "the", "given", "integer", "immediate", "of", "the", "specified", "type", "for", "a", "given", "instruction", "."], "TS_V_token": ["AArch64", "AArch64", "0", "0U", "0", "2", "0", "1", "1", "63", "64", "AArch64", "AArch64"], "File": "AArch64TargetTransformInfo", "Func": "getIntImmCostInst", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3847, "Length": 327, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "aarch64_libgcc_floating_mode_supported_p", "(", "scalar_float_mode", "mode", ")", "{", "return", "(", "mode", "==", "HFmode", "?", "true", ":", "default_libgcc_floating_mode_supported_p", "(", "mode", ")", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_LIBGCC_FLOATING_POINT_MODE_SUPPORTED_P", "-", "return", "TRUE", "if", "MODE", "is", "HFmode", ",", "and", "punt", "to", "the", "generic", "implementation", "otherwise", "."], "TS_V_token": ["aarch64"], "File": "aarch64", "Func": "aarch64_libgcc_floating_mode_supported_p", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3848, "Length": 23, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"CSKY Assembly Printer\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["CSKY", "\"CSKY Assembly Printer\""], "File": "CSKYAsmPrinter", "Func": "getPassName", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3849, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "ia64_arg_partial_bytes", "(", "CUMULATIVE_ARGS", "*", "cum", ",", "enum", "machine_mode", "mode", ",", "tree", "type", ",", "bool", "named", "ATTRIBUTE_UNUSED", ")", "{", "int", "words", "=", "ia64_function_arg_words", "(", "type", ",", "mode", ")", ";", "int", "offset", "=", "ia64_function_arg_offset", "(", "cum", ",", "type", ",", "words", ")", ";", "if", "(", "cum", "->", "words", "+", "offset", ">=", "MAX_ARGUMENT_SLOTS", ")", "return", "0", ";", "if", "(", "words", "+", "cum", "->", "words", "+", "offset", "<=", "MAX_ARGUMENT_SLOTS", ")", "return", "0", ";", "return", "(", "MAX_ARGUMENT_SLOTS", "-", "cum", "->", "words", "-", "offset", ")", "*", "UNITS_PER_WORD", ";", "}", ""], "natrual_language": ["Return", "number", "of", "bytes", ",", "at", "the", "beginning", "of", "the", "argument", ",", "that", "must", "be", "put", "in", "registers", ".", "0", "is", "the", "argument", "is", "entirely", "in", "registers", "or", "entirely", "in", "memory", "."], "TS_V_token": ["ia64", "0", "0"], "File": "ia643", "Func": "ia64_arg_partial_bytes", "Target": "ia64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3850, "Length": 84, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "rs6000_is_costly_dependence", "(", "rtx", "insn", ",", "rtx", "next", ",", "rtx", "link", ",", "int", "cost", ",", "int", "distance", ")", "{", "if", "(", "rs6000_sched_costly_dep", "==", "no_dep_costly", ")", "return", "false", ";", "if", "(", "rs6000_sched_costly_dep", "==", "all_deps_costly", ")", "return", "true", ";", "if", "(", "rs6000_sched_costly_dep", "==", "store_to_load_dep_costly", "&&", "is_load_insn", "(", "next", ")", "&&", "is_store_insn", "(", "insn", ")", ")", "return", "true", ";", "if", "(", "rs6000_sched_costly_dep", "==", "true_store_to_load_dep_costly", "&&", "is_load_insn", "(", "next", ")", "&&", "is_store_insn", "(", "insn", ")", "&&", "(", "!", "link", "||", "(", "int", ")", "REG_NOTE_KIND", "(", "link", ")", "==", "0", ")", ")", "return", "true", ";", "if", "(", "rs6000_sched_costly_dep", "<=", "max_dep_latency", "&&", "(", "(", "cost", "-", "distance", ")", ">=", "(", "int", ")", "rs6000_sched_costly_dep", ")", ")", "return", "true", ";", "return", "false", ";", "}", ""], "natrual_language": ["Returns", "whether", "the", "dependence", "between", "INSN", "and", "NEXT", "is", "considered", "costly", "by", "the", "given", "target", "."], "TS_V_token": ["rs6000", "0"], "File": "rs60003", "Func": "rs6000_is_costly_dependence", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3851, "Length": 117, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_ok_for_lazy_binding_p", "(", "rtx", "x", ")", "{", "return", "(", "TARGET_USE_GOT", "&&", "GET_CODE", "(", "x", ")", "==", "SYMBOL_REF", "&&", "!", "SYMBOL_REF_BIND_NOW_P", "(", "x", ")", "&&", "!", "mips_symbol_binds_local_p", "(", "x", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "calls", "to", "X", "can", "use", "R_MIPS_CALL", "*", "relocations", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_ok_for_lazy_binding_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3852, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86CallLowering", "::", "lowerFormalArguments", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "const", "Function", "&", "F", ",", "ArrayRef", "<", "ArrayRef", "<", "Register", ">>", "VRegs", ")", "const", "{", "if", "(", "F", ".", "arg_empty", "(", ")", ")", "return", "true", ";", "if", "(", "F", ".", "isVarArg", "(", ")", ")", "return", "false", ";", "MachineFunction", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "auto", "DL", "=", "MF", ".", "getDataLayout", "(", ")", ";", "SmallVector", "<", "ArgInfo", ",", "8", ">", "SplitArgs", ";", "unsigned", "Idx", "=", "0", ";", "for", "(", "const", "auto", "&", "Arg", ":", "F", ".", "args", "(", ")", ")", "{", "if", "(", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "ByVal", ")", "||", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "InReg", ")", "||", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "StructRet", ")", "||", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "SwiftSelf", ")", "||", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "SwiftError", ")", "||", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "Nest", ")", "||", "VRegs", "[", "Idx", "]", ".", "size", "(", ")", ">", "1", ")", "return", "false", ";", "ArgInfo", "OrigArg", "(", "VRegs", "[", "Idx", "]", ",", "Arg", ".", "getType", "(", ")", ")", ";", "setArgFlags", "(", "OrigArg", ",", "Idx", "+", "AttributeList", "::", "FirstArgIndex", ",", "DL", ",", "F", ")", ";", "if", "(", "!", "splitToValueTypes", "(", "OrigArg", ",", "SplitArgs", ",", "DL", ",", "MRI", ",", "[", "&", "]", "(", "ArrayRef", "<", "Register", ">", "Regs", ")", "{", "MIRBuilder", ".", "buildMerge", "(", "VRegs", "[", "Idx", "]", "[", "0", "]", ",", "Regs", ")", ";", "}", ")", ")", "return", "false", ";", "Idx", "++", ";", "}", "MachineBasicBlock", "&", "MBB", "=", "MIRBuilder", ".", "getMBB", "(", ")", ";", "if", "(", "!", "MBB", ".", "empty", "(", ")", ")", "MIRBuilder", ".", "setInstr", "(", "*", "MBB", ".", "begin", "(", ")", ")", ";", "FormalArgHandler", "Handler", "(", "MIRBuilder", ",", "MRI", ",", "CC_X86", ")", ";", "if", "(", "!", "handleAssignments", "(", "MIRBuilder", ",", "SplitArgs", ",", "Handler", ")", ")", "return", "false", ";", "MIRBuilder", ".", "setMBB", "(", "MBB", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "hook", "must", "be", "implemented", "to", "lower", "the", "incoming", "(", "formal", ")", "arguments", ",", "described", "by", "VRegs", ",", "for", "GlobalISel", "."], "TS_V_token": ["X86", "X86", "8", "0", "1", "0", "X86"], "File": "X86CallLowering17", "Func": "lowerFormalArguments", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3853, "Length": 318, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86PassConfig", "::", "addInstSelector", "(", ")", "{", "addPass", "(", "createX86ISelDag", "(", "getX86TargetMachine", "(", ")", ",", "getOptLevel", "(", ")", ")", ")", ";", "if", "(", "TM", "->", "getTargetTriple", "(", ")", ".", "isOSBinFormatELF", "(", ")", "&&", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createCleanupLocalDynamicTLSPass", "(", ")", ")", ";", "addPass", "(", "createX86GlobalBaseRegPass", "(", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["addInstSelector", "-", "This", "method", "should", "install", "an", "instruction", "selector", "pass", ",", "which", "converts", "from", "LLVM", "code", "to", "machine", "instructions", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86"], "File": "X86TargetMachine10", "Func": "addInstSelector", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3854, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "SDValue", "LanaiTargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "const", "SDLoc", "&", "DL", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "RetCC_Lanai32", ")", ";", "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", ")", ")", ";", "}", "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": ["Lanai", "Lanai", "ISD::InputArg", "16", "Lanai", "0", "1", "2", "0"], "File": "LanaiISelLowering", "Func": "LowerCallResult", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3855, "Length": 168, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mips_modes_tieable_p", "(", "machine_mode", "mode1", ",", "machine_mode", "mode2", ")", "{", "return", "(", "mode1", "==", "mode2", "||", "(", "!", "mips_mode_ok_for_mov_fmt_p", "(", "mode1", ")", "&&", "!", "mips_mode_ok_for_mov_fmt_p", "(", "mode2", ")", ")", ")", ";", "}", ""], "natrual_language": ["Implement", "MODES_TIEABLE_P", "."], "TS_V_token": ["mips"], "File": "mips", "Func": "mips_modes_tieable_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3856, "Length": 33, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "CJGFrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "true", ";", "}", ""], "natrual_language": ["hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "."], "TS_V_token": ["CJG", "CJG"], "File": "CJGFrameLowering", "Func": "hasFP", "Target": "CJG", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3857, "Length": 16, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isVectorShiftByScalarCheap", "(", "Type", "*", "Ty", ")", "const", "{", "unsigned", "Bits", "=", "Ty", "->", "getScalarSizeInBits", "(", ")", ";", "if", "(", "Bits", "==", "8", ")", "return", "false", ";", "if", "(", "Subtarget", ".", "hasInt256", "(", ")", "&&", "(", "Bits", "==", "32", "||", "Bits", "==", "64", ")", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "is", "used", "to", "enable", "splatted", "operand", "transforms", "for", "vector", "shifts", "and", "vector", "funnel", "shifts", "."], "TS_V_token": ["X86", "X86", "8", "32", "64"], "File": "X86ISelLowering (3)", "Func": "isVectorShiftByScalarCheap", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3858, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "getTgtMemIntrinsic", "(", "IntrinsicInfo", "&", "Info", ",", "const", "CallInst", "&", "I", ",", "MachineFunction", "&", "MF", ",", "unsigned", "Intrinsic", ")", "const", "{", "const", "IntrinsicData", "*", "IntrData", "=", "getIntrinsicWithChain", "(", "Intrinsic", ")", ";", "if", "(", "!", "IntrData", ")", "return", "false", ";", "Info", ".", "flags", "=", "MachineMemOperand", "::", "MONone", ";", "Info", ".", "offset", "=", "0", ";", "switch", "(", "IntrData", "->", "Type", ")", "{", "case", "TRUNCATE_TO_MEM_VI8", ":", "case", "TRUNCATE_TO_MEM_VI16", ":", "case", "TRUNCATE_TO_MEM_VI32", ":", "{", "Info", ".", "opc", "=", "ISD", "::", "INTRINSIC_VOID", ";", "Info", ".", "ptrVal", "=", "I", ".", "getArgOperand", "(", "0", ")", ";", "MVT", "VT", "=", "MVT", "::", "getVT", "(", "I", ".", "getArgOperand", "(", "1", ")", "->", "getType", "(", ")", ")", ";", "MVT", "ScalarVT", "=", "MVT", "::", "INVALID_SIMPLE_VALUE_TYPE", ";", "if", "(", "IntrData", "->", "Type", "==", "TRUNCATE_TO_MEM_VI8", ")", "ScalarVT", "=", "MVT", "::", "i8", ";", "else", "if", "(", "IntrData", "->", "Type", "==", "TRUNCATE_TO_MEM_VI16", ")", "ScalarVT", "=", "MVT", "::", "i16", ";", "else", "if", "(", "IntrData", "->", "Type", "==", "TRUNCATE_TO_MEM_VI32", ")", "ScalarVT", "=", "MVT", "::", "i32", ";", "Info", ".", "memVT", "=", "MVT", "::", "getVectorVT", "(", "ScalarVT", ",", "VT", ".", "getVectorNumElements", "(", ")", ")", ";", "Info", ".", "align", "=", "Align", "::", "None", "(", ")", ";", "Info", ".", "flags", "|=", "MachineMemOperand", "::", "MOStore", ";", "break", ";", "}", "case", "GATHER", ":", "case", "GATHER_AVX2", ":", "{", "Info", ".", "opc", "=", "ISD", "::", "INTRINSIC_W_CHAIN", ";", "Info", ".", "ptrVal", "=", "nullptr", ";", "MVT", "DataVT", "=", "MVT", "::", "getVT", "(", "I", ".", "getType", "(", ")", ")", ";", "MVT", "IndexVT", "=", "MVT", "::", "getVT", "(", "I", ".", "getArgOperand", "(", "2", ")", "->", "getType", "(", ")", ")", ";", "unsigned", "NumElts", "=", "std", "::", "min", "(", "DataVT", ".", "getVectorNumElements", "(", ")", ",", "IndexVT", ".", "getVectorNumElements", "(", ")", ")", ";", "Info", ".", "memVT", "=", "MVT", "::", "getVectorVT", "(", "DataVT", ".", "getVectorElementType", "(", ")", ",", "NumElts", ")", ";", "Info", ".", "align", "=", "Align", "::", "None", "(", ")", ";", "Info", ".", "flags", "|=", "MachineMemOperand", "::", "MOLoad", ";", "break", ";", "}", "case", "SCATTER", ":", "{", "Info", ".", "opc", "=", "ISD", "::", "INTRINSIC_VOID", ";", "Info", ".", "ptrVal", "=", "nullptr", ";", "MVT", "DataVT", "=", "MVT", "::", "getVT", "(", "I", ".", "getArgOperand", "(", "3", ")", "->", "getType", "(", ")", ")", ";", "MVT", "IndexVT", "=", "MVT", "::", "getVT", "(", "I", ".", "getArgOperand", "(", "2", ")", "->", "getType", "(", ")", ")", ";", "unsigned", "NumElts", "=", "std", "::", "min", "(", "DataVT", ".", "getVectorNumElements", "(", ")", ",", "IndexVT", ".", "getVectorNumElements", "(", ")", ")", ";", "Info", ".", "memVT", "=", "MVT", "::", "getVectorVT", "(", "DataVT", ".", "getVectorElementType", "(", ")", ",", "NumElts", ")", ";", "Info", ".", "align", "=", "Align", "::", "None", "(", ")", ";", "Info", ".", "flags", "|=", "MachineMemOperand", "::", "MOStore", ";", "break", ";", "}", "default", ":", "return", "false", ";", "}", "return", "true", ";", "}", ""], "natrual_language": ["Given", "an", "intrinsic", ",", "checks", "if", "on", "the", "target", "the", "intrinsic", "will", "need", "to", "map", "to", "a", "MemIntrinsicNode", "(", "touches", "memory", ")", "."], "TS_V_token": ["X86", "X86", "0", "ISD::INTRINSIC_VOID", "0", "MVT::getVT", "1", "MVT::INVALID_SIMPLE_VALUE_TYPE", "MVT::i8", "MVT::i16", "MVT::i32", "MVT::getVectorVT", "ISD::INTRINSIC_W_CHAIN", "MVT::getVT", "MVT::getVT", "2", "MVT::getVectorVT", "ISD::INTRINSIC_VOID", "MVT::getVT", "3", "MVT::getVT", "2", "MVT::getVectorVT"], "File": "X86ISelLowering (2)6", "Func": "getTgtMemIntrinsic", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3859, "Length": 435, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "nds32_output_16bit_load", "(", "rtx", "*", "operands", ",", "int", "byte", ")", "{", "char", "pattern", "[", "100", "]", ";", "unsigned", "char", "size", ";", "rtx", "code", "=", "XEXP", "(", "operands", "[", "1", "]", ",", "0", ")", ";", "size", "=", "nds32_byte_to_size", "(", "byte", ")", ";", "switch", "(", "nds32_mem_format", "(", "operands", "[", "1", "]", ")", ")", "{", "case", "ADDRESS_REG", ":", "operands", "[", "1", "]", "=", "code", ";", "output_asm_insn", "(", "\"lwi450\\t%0, [%1]\"", ",", "operands", ")", ";", "break", ";", "case", "ADDRESS_LO_REG_IMM3U", ":", "snprintf", "(", "pattern", ",", "sizeof", "(", "pattern", ")", ",", "\"l%ci333\\t%%0, %%1\"", ",", "size", ")", ";", "output_asm_insn", "(", "pattern", ",", "operands", ")", ";", "break", ";", "case", "ADDRESS_POST_INC_LO_REG_IMM3U", ":", "snprintf", "(", "pattern", ",", "sizeof", "(", "pattern", ")", ",", "\"lwi333.bi\\t%%0, %%1, 4\"", ")", ";", "output_asm_insn", "(", "pattern", ",", "operands", ")", ";", "break", ";", "case", "ADDRESS_POST_MODIFY_LO_REG_IMM3U", ":", "snprintf", "(", "pattern", ",", "sizeof", "(", "pattern", ")", ",", "\"lwi333.bi\\t%%0, %%1\"", ")", ";", "output_asm_insn", "(", "pattern", ",", "operands", ")", ";", "break", ";", "case", "ADDRESS_R8_IMM7U", ":", "output_asm_insn", "(", "\"lwi45.fe\\t%0, %e1\"", ",", "operands", ")", ";", "break", ";", "case", "ADDRESS_FP_IMM7U", ":", "output_asm_insn", "(", "\"lwi37\\t%0, %1\"", ",", "operands", ")", ";", "break", ";", "case", "ADDRESS_SP_IMM7U", ":", "operands", "[", "1", "]", "=", "XEXP", "(", "code", ",", "1", ")", ";", "output_asm_insn", "(", "\"lwi37.sp\\t%0, [ + (%1)]\"", ",", "operands", ")", ";", "break", ";", "default", ":", "break", ";", "}", "return", "\"\"", ";", "}", ""], "natrual_language": ["Output", "16-bit", "load", "."], "TS_V_token": ["nds32", "100", "1", "0", "1", "1", "\"lwi450\\t%0, [%1]\"", "\"l%ci333\\t%%0, %%1\"", "\"lwi333.bi\\t%%0, %%1, 4\"", "\"lwi333.bi\\t%%0, %%1\"", "\"lwi45.fe\\t%0, %e1\"", "\"lwi37\\t%0, %1\"", "1", "1", "\"lwi37.sp\\t%0, [ + (%1)]\"", "\"\""], "File": "nds32-md-auxiliary", "Func": "nds32_output_16bit_load", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3860, "Length": 204, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetLowering", "::", "isFMAFasterThanFMulAndFAdd", "(", "EVT", "VT", ")", "const", "{", "if", "(", "!", "Subtarget", "->", "hasAnyFMA", "(", ")", ")", "return", "false", ";", "VT", "=", "VT", ".", "getScalarType", "(", ")", ";", "if", "(", "!", "VT", ".", "isSimple", "(", ")", ")", "return", "false", ";", "switch", "(", "VT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ")", "{", "case", "MVT", "::", "f32", ":", "case", "MVT", "::", "f64", ":", "return", "true", ";", "default", ":", "break", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Return", "true", "if", "an", "FMA", "operation", "is", "faster", "than", "a", "pair", "of", "fmul", "and", "fadd", "instructions", "."], "TS_V_token": ["X86", "X86", "MVT::f32", "MVT::f64"], "File": "X86ISelLowering (2)3", "Func": "isFMAFasterThanFMulAndFAdd", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3861, "Length": 75, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "loongarch_output_equal_conditional_branch", "(", "rtx_insn", "*", "insn", ",", "rtx", "*", "operands", ",", "bool", "inverted_p", ")", "{", "const", "char", "*", "branch", "[", "2", "]", ";", "if", "(", "operands", "[", "3", "]", "==", "const0_rtx", ")", "{", "branch", "[", "!", "inverted_p", "]", "=", "LARCH_BRANCH", "(", "\"b%C1z\"", ",", "\"%2,%0\"", ")", ";", "branch", "[", "inverted_p", "]", "=", "LARCH_BRANCH", "(", "\"b%N1z\"", ",", "\"%2,%0\"", ")", ";", "}", "else", "{", "branch", "[", "!", "inverted_p", "]", "=", "LARCH_BRANCH", "(", "\"b%C1\"", ",", "\"%2,%z3,%0\"", ")", ";", "branch", "[", "inverted_p", "]", "=", "LARCH_BRANCH", "(", "\"b%N1\"", ",", "\"%2,%z3,%0\"", ")", ";", "}", "return", "loongarch_output_conditional_branch", "(", "insn", ",", "operands", ",", "branch", "[", "1", "]", ",", "branch", "[", "0", "]", ")", ";", "}", ""], "natrual_language": ["Return", "the", "assembly", "code", "for", "INSN", ",", "which", "branches", "to", "OPERANDS", "[", "0", "]", "if", "some", "equality", "condition", "is", "true", ".", "The", "condition", "is", "given", "by", "OPERANDS", "[", "1", "]", "if", "!", "INVERTED_P", ",", "otherwise", "it", "is", "the", "inverse", "of", "OPERANDS", "[", "1", "]", ".", "OPERANDS", "[", "2", "]", "is", "the", "comparison", "'s", "first", "operand", ";", "OPERANDS", "[", "3", "]", "is", "the", "second", "operand", "and", "may", "be", "zero", "or", "a", "register", "."], "TS_V_token": ["loongarch", "2", "3", "\"b%C1z\"", "\"%2,%0\"", "\"b%N1z\"", "\"%2,%0\"", "\"b%C1\"", "\"%2,%z3,%0\"", "\"b%N1\"", "\"%2,%z3,%0\"", "1", "0"], "File": "loongarch", "Func": "loongarch_output_equal_conditional_branch", "Target": "loongarch", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3862, "Length": 108, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "mmix_file_end", "(", "void", ")", "{", "switch_to_section", "(", "data_section", ")", ";", "}", ""], "natrual_language": ["TARGET_ASM_FILE_END", "."], "TS_V_token": ["mmix"], "File": "mmix", "Func": "mmix_file_end", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3863, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "SDValue", ",", "SDValue", ">", "SystemZSelectionDAGInfo", "::", "EmitTargetCodeForMemchr", "(", "SelectionDAG", "&", "DAG", ",", "const", "SDLoc", "&", "DL", ",", "SDValue", "Chain", ",", "SDValue", "Src", ",", "SDValue", "Char", ",", "SDValue", "Length", ",", "MachinePointerInfo", "SrcPtrInfo", ")", "const", "{", "EVT", "PtrVT", "=", "Src", ".", "getValueType", "(", ")", ";", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "PtrVT", ",", "MVT", "::", "i32", ",", "MVT", "::", "Other", ")", ";", "Length", "=", "DAG", ".", "getZExtOrTrunc", "(", "Length", ",", "DL", ",", "PtrVT", ")", ";", "Char", "=", "DAG", ".", "getZExtOrTrunc", "(", "Char", ",", "DL", ",", "MVT", "::", "i32", ")", ";", "Char", "=", "DAG", ".", "getNode", "(", "ISD", "::", "AND", ",", "DL", ",", "MVT", "::", "i32", ",", "Char", ",", "DAG", ".", "getConstant", "(", "255", ",", "DL", ",", "MVT", "::", "i32", ")", ")", ";", "SDValue", "Limit", "=", "DAG", ".", "getNode", "(", "ISD", "::", "ADD", ",", "DL", ",", "PtrVT", ",", "Src", ",", "Length", ")", ";", "SDValue", "End", "=", "DAG", ".", "getNode", "(", "SystemZISD", "::", "SEARCH_STRING", ",", "DL", ",", "VTs", ",", "Chain", ",", "Limit", ",", "Src", ",", "Char", ")", ";", "SDValue", "CCReg", "=", "End", ".", "getValue", "(", "1", ")", ";", "Chain", "=", "End", ".", "getValue", "(", "2", ")", ";", "SDValue", "Ops", "[", "]", "=", "{", "End", ",", "DAG", ".", "getConstant", "(", "0", ",", "DL", ",", "PtrVT", ")", ",", "DAG", ".", "getTargetConstant", "(", "SystemZ", "::", "CCMASK_SRST", ",", "DL", ",", "MVT", "::", "i32", ")", ",", "DAG", ".", "getTargetConstant", "(", "SystemZ", "::", "CCMASK_SRST_FOUND", ",", "DL", ",", "MVT", "::", "i32", ")", ",", "CCReg", "}", ";", "End", "=", "DAG", ".", "getNode", "(", "SystemZISD", "::", "SELECT_CCMASK", ",", "DL", ",", "PtrVT", ",", "Ops", ")", ";", "return", "std", "::", "make_pair", "(", "End", ",", "Chain", ")", ";", "}", ""], "natrual_language": ["Emit", "target-specific", "code", "that", "performs", "a", "memchr", ",", "in", "cases", "where", "that", "is", "faster", "than", "a", "libcall", "."], "TS_V_token": ["SystemZ", "SystemZ", "MVT::i32", "MVT::Other", "MVT::i32", "ISD::AND", "MVT::i32", "255", "MVT::i32", "ISD::ADD", "SystemZISD::SEARCH_STRING", "1", "2", "0", "SystemZ::CCMASK_SRST", "MVT::i32", "SystemZ::CCMASK_SRST_FOUND", "MVT::i32", "SystemZISD::SELECT_CCMASK"], "File": "SystemZSelectionDAGInfo", "Func": "EmitTargetCodeForMemchr", "Target": "SystemZ", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3864, "Length": 268, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "PPCTargetLowering", "::", "getRegForInlineAsmConstraint", "(", "const", "std", "::", "string", "&", "Constraint", ",", "MVT", "VT", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'b'", ":", "if", "(", "VT", "==", "MVT", "::", "i64", "&&", "Subtarget", ".", "isPPC64", "(", ")", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "G8RC_NOX0RegClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "GPRC_NOR0RegClass", ")", ";", "case", "'r'", ":", "if", "(", "VT", "==", "MVT", "::", "i64", "&&", "Subtarget", ".", "isPPC64", "(", ")", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "G8RCRegClass", ")", ";", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "GPRCRegClass", ")", ";", "case", "'f'", ":", "if", "(", "VT", "==", "MVT", "::", "f32", "||", "VT", "==", "MVT", "::", "i32", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "F4RCRegClass", ")", ";", "if", "(", "VT", "==", "MVT", "::", "f64", "||", "VT", "==", "MVT", "::", "i64", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "F8RCRegClass", ")", ";", "break", ";", "case", "'v'", ":", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "VRRCRegClass", ")", ";", "case", "'y'", ":", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "CRRCRegClass", ")", ";", "}", "}", "else", "if", "(", "Constraint", "==", "\"wc\"", ")", "{", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "CRBITRCRegClass", ")", ";", "}", "else", "if", "(", "Constraint", "==", "\"wa\"", "||", "Constraint", "==", "\"wd\"", "||", "Constraint", "==", "\"wf\"", ")", "{", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "VSRCRegClass", ")", ";", "}", "else", "if", "(", "Constraint", "==", "\"ws\"", ")", "{", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "PPC", "::", "VSFRCRegClass", ")", ";", "}", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "R", "=", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "Constraint", ",", "VT", ")", ";", "if", "(", "R", ".", "first", "&&", "VT", "==", "MVT", "::", "i64", "&&", "Subtarget", ".", "isPPC64", "(", ")", "&&", "PPC", "::", "GPRCRegClass", ".", "contains", "(", "R", ".", "first", ")", ")", "{", "const", "TargetRegisterInfo", "*", "TRI", "=", "getTargetMachine", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "return", "std", "::", "make_pair", "(", "TRI", "->", "getMatchingSuperReg", "(", "R", ".", "first", ",", "PPC", "::", "sub_32", ",", "&", "PPC", "::", "G8RCRegClass", ")", ",", "&", "PPC", "::", "G8RCRegClass", ")", ";", "}", "return", "R", ";", "}", ""], "natrual_language": ["Given", "a", "physical", "register", "constraint", "(", "e.g", "."], "TS_V_token": ["PowerPC", "PPC", "1", "0", "MVT::i64", "PPC", "0U", "PPC::G8RC_NOX0RegClass", "0U", "PPC::GPRC_NOR0RegClass", "MVT::i64", "PPC", "0U", "PPC::G8RCRegClass", "0U", "PPC::GPRCRegClass", "MVT::f32", "MVT::i32", "0U", "PPC::F4RCRegClass", "MVT::f64", "MVT::i64", "0U", "PPC::F8RCRegClass", "0U", "PPC::VRRCRegClass", "0U", "PPC::CRRCRegClass", "\"wc\"", "0U", "PPC::CRBITRCRegClass", "\"wa\"", "\"wd\"", "\"wf\"", "0U", "PPC::VSRCRegClass", "\"ws\"", "0U", "PPC::VSFRCRegClass", "MVT::i64", "PPC", "PPC::GPRCRegClass", "PPC::sub_32", "PPC::G8RCRegClass", "PPC::G8RCRegClass"], "File": "PPCISelLowering71", "Func": "getRegForInlineAsmConstraint", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3865, "Length": 396, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "const", "OpenRISCSubtarget", "*", "getSubtargetImpl", "(", ")", "const", "{", "return", "&", "Subtarget", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["OpenRISC", "OpenRISC"], "File": "OpenRISCTargetMachine", "Func": "getSubtargetImpl", "Target": "OpenRISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3866, "Length": 14, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"X86 Retpoline Thunks\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["X86", "\"X86 Retpoline Thunks\""], "File": "X86RetpolineThunks", "Func": "getPassName", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3867, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mips_legitimize_address", "(", "rtx", "*", "xloc", ",", "enum", "machine_mode", "mode", ")", "{", "enum", "mips_symbol_type", "symbol_type", ";", "if", "(", "mips_tls_operand_p", "(", "*", "xloc", ")", ")", "{", "*", "xloc", "=", "mips_legitimize_tls_address", "(", "*", "xloc", ")", ";", "return", "true", ";", "}", "if", "(", "mips_symbolic_constant_p", "(", "*", "xloc", ",", "&", "symbol_type", ")", "&&", "mips_symbolic_address_p", "(", "symbol_type", ",", "mode", ")", "&&", "mips_split_p", "[", "symbol_type", "]", ")", "{", "*", "xloc", "=", "mips_split_symbol", "(", "0", ",", "*", "xloc", ")", ";", "return", "true", ";", "}", "if", "(", "GET_CODE", "(", "*", "xloc", ")", "==", "PLUS", "&&", "GET_CODE", "(", "XEXP", "(", "*", "xloc", ",", "1", ")", ")", "==", "CONST_INT", ")", "{", "rtx", "reg", ";", "reg", "=", "XEXP", "(", "*", "xloc", ",", "0", ")", ";", "if", "(", "!", "mips_valid_base_register_p", "(", "reg", ",", "mode", ",", "0", ")", ")", "reg", "=", "copy_to_mode_reg", "(", "Pmode", ",", "reg", ")", ";", "*", "xloc", "=", "mips_add_offset", "(", "0", ",", "reg", ",", "INTVAL", "(", "XEXP", "(", "*", "xloc", ",", "1", ")", ")", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["This", "function", "is", "used", "to", "implement", "LEGITIMIZE_ADDRESS", ".", "If", "*", "XLOC", "can", "be", "legitimized", "in", "a", "way", "that", "the", "generic", "machinery", "might", "not", "expect", ",", "put", "the", "new", "address", "in", "*", "XLOC", "and", "return", "true", ".", "MODE", "is", "the", "mode", "of", "the", "memory", "being", "accessed", "."], "TS_V_token": ["mips", "0", "1", "0", "0", "0", "1"], "File": "mips3", "Func": "mips_legitimize_address", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3868, "Length": 164, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseRegisterInfo", "::", "isAsmClobberable", "(", "const", "MachineFunction", "&", "MF", ",", "MCRegister", "PhysReg", ")", "const", "{", "return", "!", "getReservedRegs", "(", "MF", ")", ".", "test", "(", "PhysReg", ")", ";", "}", ""], "natrual_language": ["Returns", "false", "if", "we", "ca", "n't", "guarantee", "that", "Physreg", ",", "specified", "as", "an", "IR", "asm", "clobber", "constraint", ",", "will", "be", "preserved", "across", "the", "statement", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMBaseRegisterInfo", "Func": "isAsmClobberable", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3869, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86PassConfig", "::", "addIRPasses", "(", ")", "{", "addPass", "(", "createAtomicExpandPass", "(", "&", "getX86TargetMachine", "(", ")", ")", ")", ";", "if", "(", "Triple", "(", "TM", "->", "getTargetTriple", "(", ")", ")", ".", "isOSNaCl", "(", ")", "&&", "Triple", "(", "TM", "->", "getTargetTriple", "(", ")", ")", ".", "isArch64Bit", "(", ")", "&&", "NaClDontBreakABI", ")", "{", "addPass", "(", "createClearPtrToIntTop32Pass", "(", ")", ")", ";", "}", "TargetPassConfig", "::", "addIRPasses", "(", ")", ";", "}", ""], "natrual_language": ["Add", "common", "target", "configurable", "passes", "that", "perform", "LLVM", "IR", "to", "IR", "transforms", "following", "machine", "independent", "optimization", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86TargetMachine117", "Func": "addIRPasses", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3870, "Length": 64, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCAsmPrinter", "::", "PrintAsmMemoryOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNo", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "O", ")", "{", "if", "(", "ExtraCode", "&&", "ExtraCode", "[", "0", "]", ")", "{", "if", "(", "ExtraCode", "[", "1", "]", "!=", "0", ")", "return", "true", ";", "switch", "(", "ExtraCode", "[", "0", "]", ")", "{", "default", ":", "return", "true", ";", "case", "'L'", ":", "O", "<<", "getDataLayout", "(", ")", ".", "getPointerSize", "(", ")", "<<", "\"(\"", ";", "printOperand", "(", "MI", ",", "OpNo", ",", "O", ")", ";", "O", "<<", "\")\"", ";", "return", "false", ";", "case", "'y'", ":", "O", "<<", "\"0, \"", ";", "printOperand", "(", "MI", ",", "OpNo", ",", "O", ")", ";", "return", "false", ";", "case", "'I'", ":", "if", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "isImm", "(", ")", ")", "O", "<<", "\"i\"", ";", "return", "false", ";", "case", "'U'", ":", "case", "'X'", ":", "assert", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "isReg", "(", ")", ")", ";", "return", "false", ";", "}", "}", "assert", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "isReg", "(", ")", ")", ";", "O", "<<", "\"0(\"", ";", "printOperand", "(", "MI", ",", "OpNo", ",", "O", ")", ";", "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": ["PowerPC", "PPC", "0", "1", "0", "0", "\"(\"", "\")\"", "\"0, \"", "\"i\"", "\"0(\"", "\")\""], "File": "PPCAsmPrinter (2)3", "Func": "PrintAsmMemoryOperand", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3871, "Length": 191, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "Triple", "&", "getTargetTriple", "(", ")", "const", "{", "return", "TargetTriple", ";", "}", ""], "natrual_language": ["Get", "the", "target", "triple", "which", "is", "a", "string", "describing", "the", "target", "host", "."], "TS_V_token": ["X86"], "File": "X86Subtarget (2)", "Func": "getTargetTriple", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3872, "Length": 12, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "InstructionCost", "getIntImmCostInst", "(", "unsigned", "Opc", ",", "unsigned", "Idx", ",", "const", "APInt", "&", "Imm", ",", "Type", "*", "Ty", ",", "TTI", "::", "TargetCostKind", "CostKind", ",", "Instruction", "*", "Inst", "=", "nullptr", ")", "{", "return", "getIntImmCost", "(", "Imm", ",", "Ty", ",", "CostKind", ")", ";", "}", ""], "natrual_language": ["Return", "the", "expected", "cost", "of", "materialization", "for", "the", "given", "integer", "immediate", "of", "the", "specified", "type", "for", "a", "given", "instruction", "."], "TS_V_token": ["Lanai"], "File": "LanaiTargetTransformInfo11", "Func": "getIntImmCostInst", "Target": "Lanai", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3873, "Length": 41, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "uint32_t", "*", "ARMBaseRegisterInfo", "::", "getCallPreservedMask", "(", "CallingConv", "::", "ID", ")", "const", "{", "return", "(", "STI", ".", "isTargetIOS", "(", ")", ")", "?", "CSR_iOS_RegMask", ":", "CSR_AAPCS_RegMask", ";", "}", ""], "natrual_language": ["Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMBaseRegisterInfo55", "Func": "getCallPreservedMask", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3874, "Length": 27, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "MCPhysReg", "*", "X86RegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "const", "X86Subtarget", "&", "Subtarget", "=", "MF", "->", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "bool", "HasSSE", "=", "Subtarget", ".", "hasSSE1", "(", ")", ";", "bool", "HasAVX", "=", "Subtarget", ".", "hasAVX", "(", ")", ";", "bool", "HasAVX512", "=", "Subtarget", ".", "hasAVX512", "(", ")", ";", "bool", "CallsEHReturn", "=", "MF", "->", "getMMI", "(", ")", ".", "callsEHReturn", "(", ")", ";", "assert", "(", "MF", "&&", "\"MachineFunction required\"", ")", ";", "switch", "(", "MF", "->", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", ")", "{", "case", "CallingConv", "::", "GHC", ":", "case", "CallingConv", "::", "HiPE", ":", "return", "CSR_NoRegs_SaveList", ";", "case", "CallingConv", "::", "AnyReg", ":", "if", "(", "HasAVX", ")", "return", "CSR_64_AllRegs_AVX_SaveList", ";", "return", "CSR_64_AllRegs_SaveList", ";", "case", "CallingConv", "::", "PreserveMost", ":", "return", "CSR_64_RT_MostRegs_SaveList", ";", "case", "CallingConv", "::", "PreserveAll", ":", "if", "(", "HasAVX", ")", "return", "CSR_64_RT_AllRegs_AVX_SaveList", ";", "return", "CSR_64_RT_AllRegs_SaveList", ";", "case", "CallingConv", "::", "CXX_FAST_TLS", ":", "if", "(", "Is64Bit", ")", "return", "CSR_64_TLS_Darwin_SaveList", ";", "break", ";", "case", "CallingConv", "::", "Intel_OCL_BI", ":", "{", "if", "(", "HasAVX512", "&&", "IsWin64", ")", "return", "CSR_Win64_Intel_OCL_BI_AVX512_SaveList", ";", "if", "(", "HasAVX512", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_AVX512_SaveList", ";", "if", "(", "HasAVX", "&&", "IsWin64", ")", "return", "CSR_Win64_Intel_OCL_BI_AVX_SaveList", ";", "if", "(", "HasAVX", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_AVX_SaveList", ";", "if", "(", "!", "HasAVX", "&&", "!", "IsWin64", "&&", "Is64Bit", ")", "return", "CSR_64_Intel_OCL_BI_SaveList", ";", "break", ";", "}", "case", "CallingConv", "::", "HHVM", ":", "return", "CSR_64_HHVM_SaveList", ";", "case", "CallingConv", "::", "Cold", ":", "if", "(", "Is64Bit", ")", "return", "CSR_64_MostRegs_SaveList", ";", "break", ";", "case", "CallingConv", "::", "X86_64_Win64", ":", "return", "CSR_Win64_SaveList", ";", "case", "CallingConv", "::", "X86_64_SysV", ":", "if", "(", "CallsEHReturn", ")", "return", "CSR_64EHRet_SaveList", ";", "return", "CSR_64_SaveList", ";", "case", "CallingConv", "::", "X86_INTR", ":", "if", "(", "Is64Bit", ")", "{", "if", "(", "HasAVX", ")", "return", "CSR_64_AllRegs_AVX_SaveList", ";", "else", "return", "CSR_64_AllRegs_SaveList", ";", "}", "else", "{", "if", "(", "HasSSE", ")", "return", "CSR_32_AllRegs_SSE_SaveList", ";", "else", "return", "CSR_32_AllRegs_SaveList", ";", "}", "default", ":", "break", ";", "}", "if", "(", "Is64Bit", ")", "{", "if", "(", "IsWin64", ")", "return", "CSR_Win64_SaveList", ";", "if", "(", "CallsEHReturn", ")", "return", "CSR_64EHRet_SaveList", ";", "return", "CSR_64_SaveList", ";", "}", "if", "(", "CallsEHReturn", ")", "return", "CSR_32EHRet_SaveList", ";", "return", "CSR_32_SaveList", ";", "}", ""], "natrual_language": ["Code", "Generation", "virtual", "methods", "..."], "TS_V_token": ["X86", "X86", "X86", "X86", "\"MachineFunction required\"", "X86", "X86", "X86"], "File": "X86RegisterInfo (2)", "Func": "getCalleeSavedRegs", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3875, "Length": 331, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "rs6000_destroy_cost_data", "(", "void", "*", "data", ")", "{", "free", "(", "data", ")", ";", "}", ""], "natrual_language": ["Implement", "targetm.vectorize.destroy_cost_data", "."], "TS_V_token": ["powerpcspe"], "File": "powerpcspe", "Func": "rs6000_destroy_cost_data", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3876, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "ARMBaseInstrInfo", "::", "isLoadFromStackSlotPostFE", "(", "const", "MachineInstr", "&", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "SmallVector", "<", "const", "MachineMemOperand", "*", ",", "1", ">", "Accesses", ";", "if", "(", "MI", ".", "mayLoad", "(", ")", "&&", "hasLoadFromStackSlot", "(", "MI", ",", "Accesses", ")", "&&", "Accesses", ".", "size", "(", ")", "==", "1", ")", "{", "FrameIndex", "=", "cast", "<", "FixedStackPseudoSourceValue", ">", "(", "Accesses", ".", "front", "(", ")", "->", "getPseudoValue", "(", ")", ")", "->", "getFrameIndex", "(", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["isLoadFromStackSlotPostFE", "-", "Check", "for", "post-frame", "ptr", "elimination", "stack", "locations", "as", "well", "."], "TS_V_token": ["ARM", "ARM", "1", "1"], "File": "ARMBaseInstrInfo10", "Func": "isLoadFromStackSlotPostFE", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3877, "Length": 80, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MVT", "PPCTargetLowering", "::", "getRegisterTypeForCallingConv", "(", "LLVMContext", "&", "Context", ",", "CallingConv", "::", "ID", "CC", ",", "EVT", "VT", ")", "const", "{", "if", "(", "Subtarget", ".", "hasSPE", "(", ")", "&&", "VT", "==", "MVT", "::", "f64", ")", "return", "MVT", "::", "i32", ";", "return", "PPCTargetLowering", "::", "getRegisterType", "(", "Context", ",", "VT", ")", ";", "}", ""], "natrual_language": ["Certain", "combinations", "of", "ABIs", ",", "Targets", "and", "features", "require", "that", "types", "are", "legal", "for", "some", "operations", "and", "not", "for", "other", "operations", "."], "TS_V_token": ["PowerPC", "PPC", "MVT::f64", "MVT::i32", "PPC"], "File": "PPCISelLowering (2)7", "Func": "getRegisterTypeForCallingConv", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3878, "Length": 49, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseRegisterInfo", "::", "hasReservedCallFrame", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "MachineFrameInfo", "*", "FFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "unsigned", "CFSize", "=", "FFI", "->", "getMaxCallFrameSize", "(", ")", ";", "if", "(", "CFSize", ">=", "(", "(", "1", "<<", "12", ")", "-", "1", ")", "/", "2", ")", "return", "false", ";", "return", "!", "MF", ".", "getFrameInfo", "(", ")", "->", "hasVarSizedObjects", "(", ")", ";", "}", ""], "natrual_language": ["hasReservedCallFrame", "-", "Under", "normal", "circumstances", ",", "when", "a", "frame", "pointer", "is", "not", "required", ",", "we", "reserve", "argument", "space", "for", "call", "sites", "in", "the", "function", "immediately", "on", "entry", "to", "the", "current", "function", "."], "TS_V_token": ["ARM", "ARM", "1", "12", "1", "2"], "File": "ARMBaseRegisterInfo29", "Func": "hasReservedCallFrame", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3879, "Length": 64, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "findDeadCallerSavedReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "MBBI", ",", "const", "TargetRegisterInfo", "&", "TRI", ",", "bool", "Is64Bit", ")", "{", "const", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "Function", "*", "F", "=", "MF", "->", "getFunction", "(", ")", ";", "if", "(", "!", "F", "||", "MF", "->", "getMMI", "(", ")", ".", "callsEHReturn", "(", ")", ")", "return", "0", ";", "static", "const", "uint16_t", "CallerSavedRegs32Bit", "[", "]", "=", "{", "X86", "::", "EAX", ",", "X86", "::", "EDX", ",", "X86", "::", "ECX", ",", "0", "}", ";", "static", "const", "uint16_t", "CallerSavedRegs64Bit", "[", "]", "=", "{", "X86", "::", "RAX", ",", "X86", "::", "RDX", ",", "X86", "::", "RCX", ",", "X86", "::", "RSI", ",", "X86", "::", "RDI", ",", "X86", "::", "R8", ",", "X86", "::", "R9", ",", "X86", "::", "R10", ",", "X86", "::", "R11", ",", "0", "}", ";", "unsigned", "Opc", "=", "MBBI", "->", "getOpcode", "(", ")", ";", "switch", "(", "Opc", ")", "{", "default", ":", "return", "0", ";", "case", "X86", "::", "RET", ":", "case", "X86", "::", "RETI", ":", "case", "X86", "::", "TCRETURNdi", ":", "case", "X86", "::", "TCRETURNri", ":", "case", "X86", "::", "TCRETURNmi", ":", "case", "X86", "::", "TCRETURNdi64", ":", "case", "X86", "::", "TCRETURNri64", ":", "case", "X86", "::", "TCRETURNmi64", ":", "case", "X86", "::", "EH_RETURN", ":", "case", "X86", "::", "EH_RETURN64", ":", "{", "SmallSet", "<", "uint16_t", ",", "8", ">", "Uses", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "MBBI", "->", "getNumOperands", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "MachineOperand", "&", "MO", "=", "MBBI", "->", "getOperand", "(", "i", ")", ";", "if", "(", "!", "MO", ".", "isReg", "(", ")", "||", "MO", ".", "isDef", "(", ")", ")", "continue", ";", "unsigned", "Reg", "=", "MO", ".", "getReg", "(", ")", ";", "if", "(", "!", "Reg", ")", "continue", ";", "for", "(", "const", "uint16_t", "*", "AsI", "=", "TRI", ".", "getOverlaps", "(", "Reg", ")", ";", "*", "AsI", ";", "++", "AsI", ")", "Uses", ".", "insert", "(", "*", "AsI", ")", ";", "}", "const", "uint16_t", "*", "CS", "=", "Is64Bit", "?", "CallerSavedRegs64Bit", ":", "CallerSavedRegs32Bit", ";", "for", "(", ";", "*", "CS", ";", "++", "CS", ")", "if", "(", "!", "Uses", ".", "count", "(", "*", "CS", ")", ")", "return", "*", "CS", ";", "}", "}", "return", "0", ";", "}", ""], "natrual_language": ["findDeadCallerSavedReg", "-", "Return", "a", "caller-saved", "register", "that", "is", "n't", "live", "when", "it", "reaches", "the", "``", "return", "''", "instruction", "."], "TS_V_token": ["X86", "0", "X86::EAX", "X86::EDX", "X86::ECX", "0", "X86::RAX", "X86::RDX", "X86::RCX", "X86::RSI", "X86::RDI", "X86::R8", "X86::R9", "X86::R10", "X86::R11", "0", "0", "X86::RET", "X86::RETI", "X86::TCRETURNdi", "X86::TCRETURNri", "X86::TCRETURNmi", "X86::TCRETURNdi64", "X86::TCRETURNri64", "X86::TCRETURNmi64", "X86::EH_RETURN", "X86::EH_RETURN64", "8", "0", "0"], "File": "X86FrameLowering128", "Func": "findDeadCallerSavedReg", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3880, "Length": 348, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TargetMachine", "::", "addPostRegAlloc", "(", "PassManagerBase", "&", "PM", ",", "CodeGenOpt", "::", "Level", "OptLevel", ")", "{", "PM", ".", "add", "(", "createX86FloatingPointStackifierPass", "(", ")", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "after", "register", "allocation", "pass", "pipeline", "but", "before", "prolog-epilog", "insertion", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86TargetMachine118", "Func": "addPostRegAlloc", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3881, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "processBlock", "(", "MachineBasicBlock", "&", "MBB", ")", "{", "bool", "Changed", "=", "false", ";", "bool", "Is64Bit", "=", "MBB", ".", "getParent", "(", ")", "->", "getSubtarget", "<", "PPCSubtarget", ">", "(", ")", ".", "isPPC64", "(", ")", ";", "for", "(", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "begin", "(", ")", ",", "IE", "=", "MBB", ".", "end", "(", ")", ";", "I", "!=", "IE", ";", ")", "{", "MachineInstr", "&", "MI", "=", "*", "I", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "!=", "PPC", "::", "ADDItlsgdLADDR", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "PPC", "::", "ADDItlsldLADDR", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "PPC", "::", "ADDItlsgdLADDR32", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "PPC", "::", "ADDItlsldLADDR32", ")", "{", "++", "I", ";", "continue", ";", "}", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"TLS Dynamic Call Fixup:\\n \"", "<<", "MI", ")", ";", "unsigned", "OutReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "unsigned", "InReg", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "DebugLoc", "DL", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "unsigned", "GPR3", "=", "Is64Bit", "?", "PPC", "::", "X3", ":", "PPC", "::", "R3", ";", "unsigned", "Opc1", ",", "Opc2", ";", "const", "unsigned", "OrigRegs", "[", "]", "=", "{", "OutReg", ",", "InReg", ",", "GPR3", "}", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Opcode inconsistency error\"", ")", ";", "case", "PPC", "::", "ADDItlsgdLADDR", ":", "Opc1", "=", "PPC", "::", "ADDItlsgdL", ";", "Opc2", "=", "PPC", "::", "GETtlsADDR", ";", "break", ";", "case", "PPC", "::", "ADDItlsldLADDR", ":", "Opc1", "=", "PPC", "::", "ADDItlsldL", ";", "Opc2", "=", "PPC", "::", "GETtlsldADDR", ";", "break", ";", "case", "PPC", "::", "ADDItlsgdLADDR32", ":", "Opc1", "=", "PPC", "::", "ADDItlsgdL32", ";", "Opc2", "=", "PPC", "::", "GETtlsADDR32", ";", "break", ";", "case", "PPC", "::", "ADDItlsldLADDR32", ":", "Opc1", "=", "PPC", "::", "ADDItlsldL32", ";", "Opc2", "=", "PPC", "::", "GETtlsldADDR32", ";", "break", ";", "}", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "TII", "->", "get", "(", "PPC", "::", "ADJCALLSTACKDOWN", ")", ")", ".", "addImm", "(", "0", ")", ".", "addImm", "(", "0", ")", ";", "MachineInstr", "*", "Addi", "=", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "TII", "->", "get", "(", "Opc1", ")", ",", "GPR3", ")", ".", "addReg", "(", "InReg", ")", ";", "Addi", "->", "addOperand", "(", "MI", ".", "getOperand", "(", "2", ")", ")", ";", "MachineBasicBlock", "::", "iterator", "First", "=", "I", ";", "--", "First", ";", "MachineInstr", "*", "Call", "=", "(", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "TII", "->", "get", "(", "Opc2", ")", ",", "GPR3", ")", ".", "addReg", "(", "GPR3", ")", ")", ";", "Call", "->", "addOperand", "(", "MI", ".", "getOperand", "(", "3", ")", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "TII", "->", "get", "(", "PPC", "::", "ADJCALLSTACKUP", ")", ")", ".", "addImm", "(", "0", ")", ".", "addImm", "(", "0", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "TII", "->", "get", "(", "TargetOpcode", "::", "COPY", ")", ",", "OutReg", ")", ".", "addReg", "(", "GPR3", ")", ";", "MachineBasicBlock", "::", "iterator", "Last", "=", "I", ";", "--", "Last", ";", "++", "I", ";", "MI", ".", "removeFromParent", "(", ")", ";", "LIS", "->", "repairIntervalsInRange", "(", "&", "MBB", ",", "First", ",", "Last", ",", "OrigRegs", ")", ";", "Changed", "=", "true", ";", "}", "return", "Changed", ";", "}", ""], "natrual_language": ["processBlock", "-", "If", "there", "are", "any", "predecessors", "whose", "control", "can", "be", "threaded", "through", "to", "a", "successor", ",", "transform", "them", "now", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC::ADDItlsgdLADDR", "PPC::ADDItlsldLADDR", "PPC::ADDItlsgdLADDR32", "PPC::ADDItlsldLADDR32", "\"TLS Dynamic Call Fixup:\\n \"", "0", "1", "PPC::X3", "PPC::R3", "\"Opcode inconsistency error\"", "PPC::ADDItlsgdLADDR", "PPC::ADDItlsgdL", "PPC::GETtlsADDR", "PPC::ADDItlsldLADDR", "PPC::ADDItlsldL", "PPC::GETtlsldADDR", "PPC::ADDItlsgdLADDR32", "PPC::ADDItlsgdL32", "PPC::GETtlsADDR32", "PPC::ADDItlsldLADDR32", "PPC::ADDItlsldL32", "PPC::GETtlsldADDR32", "PPC::ADJCALLSTACKDOWN", "0", "0", "2", "3", "PPC::ADJCALLSTACKUP", "0", "0"], "File": "PPCTLSDynamicCall1", "Func": "processBlock", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3882, "Length": 502, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ARMBaseRegisterInfo", "::", "isAsmClobberable", "(", "const", "MachineFunction", "&", "MF", ",", "unsigned", "PhysReg", ")", "const", "{", "return", "!", "getReservedRegs", "(", "MF", ")", ".", "test", "(", "PhysReg", ")", ";", "}", ""], "natrual_language": ["Returns", "false", "if", "we", "ca", "n't", "guarantee", "that", "Physreg", ",", "specified", "as", "an", "IR", "asm", "clobber", "constraint", ",", "will", "be", "preserved", "across", "the", "statement", "."], "TS_V_token": ["ARM", "ARM"], "File": "ARMBaseRegisterInfo17", "Func": "isAsmClobberable", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3883, "Length": 28, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Optional", "<", "uint64_t", ">", "X86MCInstrAnalysis", "::", "evaluateMemoryOperandAddress", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "*", "STI", ",", "uint64_t", "Addr", ",", "uint64_t", "Size", ")", "const", "{", "const", "MCInstrDesc", "&", "MCID", "=", "Info", "->", "get", "(", "Inst", ".", "getOpcode", "(", ")", ")", ";", "int", "MemOpStart", "=", "X86II", "::", "getMemoryOperandNo", "(", "MCID", ".", "TSFlags", ")", ";", "if", "(", "MemOpStart", "==", "-", "1", ")", "return", "None", ";", "MemOpStart", "+=", "X86II", "::", "getOperandBias", "(", "MCID", ")", ";", "const", "MCOperand", "&", "SegReg", "=", "Inst", ".", "getOperand", "(", "MemOpStart", "+", "X86", "::", "AddrSegmentReg", ")", ";", "const", "MCOperand", "&", "BaseReg", "=", "Inst", ".", "getOperand", "(", "MemOpStart", "+", "X86", "::", "AddrBaseReg", ")", ";", "const", "MCOperand", "&", "IndexReg", "=", "Inst", ".", "getOperand", "(", "MemOpStart", "+", "X86", "::", "AddrIndexReg", ")", ";", "const", "MCOperand", "&", "ScaleAmt", "=", "Inst", ".", "getOperand", "(", "MemOpStart", "+", "X86", "::", "AddrScaleAmt", ")", ";", "const", "MCOperand", "&", "Disp", "=", "Inst", ".", "getOperand", "(", "MemOpStart", "+", "X86", "::", "AddrDisp", ")", ";", "if", "(", "SegReg", ".", "getReg", "(", ")", "!=", "0", "||", "IndexReg", ".", "getReg", "(", ")", "!=", "0", "||", "ScaleAmt", ".", "getImm", "(", ")", "!=", "1", "||", "!", "Disp", ".", "isImm", "(", ")", ")", "return", "None", ";", "if", "(", "BaseReg", ".", "getReg", "(", ")", "==", "X86", "::", "RIP", ")", "return", "Addr", "+", "Size", "+", "Disp", ".", "getImm", "(", ")", ";", "return", "None", ";", "}", ""], "natrual_language": ["Given", "an", "instruction", "tries", "to", "get", "the", "address", "of", "a", "memory", "operand", "."], "TS_V_token": ["X86", "X86", "X86II::getMemoryOperandNo", "1", "X86II::getOperandBias", "X86::AddrSegmentReg", "X86::AddrBaseReg", "X86::AddrIndexReg", "X86::AddrScaleAmt", "X86::AddrDisp", "0", "0", "1", "X86::RIP"], "File": "X86MCTargetDesc13", "Func": "evaluateMemoryOperandAddress", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3884, "Length": 216, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mmix_rtx_costs", "(", "rtx", "x", "ATTRIBUTE_UNUSED", ",", "int", "code", "ATTRIBUTE_UNUSED", ",", "int", "outer_code", "ATTRIBUTE_UNUSED", ",", "int", "*", "total", "ATTRIBUTE_UNUSED", ")", "{", "return", "false", ";", "}", ""], "natrual_language": ["TARGET_RTX_COSTS", "."], "TS_V_token": ["mmix"], "File": "mmix3", "Func": "mmix_rtx_costs", "Target": "mmix", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3885, "Length": 26, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AArch64AppleInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "O", ",", "StringRef", "Annot", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "{", "unsigned", "Opcode", "=", "MI", "->", "getOpcode", "(", ")", ";", "StringRef", "Layout", ",", "Mnemonic", ";", "bool", "IsTbx", ";", "if", "(", "isTblTbxInstruction", "(", "MI", "->", "getOpcode", "(", ")", ",", "Layout", ",", "IsTbx", ")", ")", "{", "O", "<<", "\"\\t\"", "<<", "(", "IsTbx", "?", "\"tbx\"", ":", "\"tbl\"", ")", "<<", "Layout", "<<", "'\\t'", "<<", "getRegisterName", "(", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ",", "AArch64", "::", "vreg", ")", "<<", "\", \"", ";", "unsigned", "ListOpNum", "=", "IsTbx", "?", "2", ":", "1", ";", "printVectorList", "(", "MI", ",", "ListOpNum", ",", "STI", ",", "O", ",", "\"\"", ")", ";", "O", "<<", "\", \"", "<<", "getRegisterName", "(", "MI", "->", "getOperand", "(", "ListOpNum", "+", "1", ")", ".", "getReg", "(", ")", ",", "AArch64", "::", "vreg", ")", ";", "printAnnotation", "(", "O", ",", "Annot", ")", ";", "return", ";", "}", "if", "(", "LdStNInstrDesc", "*", "LdStDesc", "=", "getLdStNInstrDesc", "(", "Opcode", ")", ")", "{", "O", "<<", "\"\\t\"", "<<", "LdStDesc", "->", "Mnemonic", "<<", "LdStDesc", "->", "Layout", "<<", "'\\t'", ";", "int", "OpNum", "=", "LdStDesc", "->", "ListOperand", ";", "printVectorList", "(", "MI", ",", "OpNum", "++", ",", "STI", ",", "O", ",", "\"\"", ")", ";", "if", "(", "LdStDesc", "->", "HasLane", ")", "O", "<<", "'['", "<<", "MI", "->", "getOperand", "(", "OpNum", "++", ")", ".", "getImm", "(", ")", "<<", "']'", ";", "unsigned", "AddrReg", "=", "MI", "->", "getOperand", "(", "OpNum", "++", ")", ".", "getReg", "(", ")", ";", "O", "<<", "\", [\"", "<<", "getRegisterName", "(", "AddrReg", ")", "<<", "']'", ";", "if", "(", "LdStDesc", "->", "NaturalOffset", "!=", "0", ")", "{", "unsigned", "Reg", "=", "MI", "->", "getOperand", "(", "OpNum", "++", ")", ".", "getReg", "(", ")", ";", "if", "(", "Reg", "!=", "AArch64", "::", "XZR", ")", "O", "<<", "\", \"", "<<", "getRegisterName", "(", "Reg", ")", ";", "else", "{", "assert", "(", "LdStDesc", "->", "NaturalOffset", "&&", "\"no offset on post-inc instruction?\"", ")", ";", "O", "<<", "\", #\"", "<<", "LdStDesc", "->", "NaturalOffset", ";", "}", "}", "printAnnotation", "(", "O", ",", "Annot", ")", ";", "return", ";", "}", "AArch64InstPrinter", "::", "printInst", "(", "MI", ",", "O", ",", "Annot", ",", "STI", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["AArch64", "AArch64", "\"\\t\"", "\"tbx\"", "\"tbl\"", "0", "AArch64::vreg", "\", \"", "2", "1", "\"\"", "\", \"", "1", "AArch64::vreg", "\"\\t\"", "\"\"", "\", [\"", "0", "AArch64::XZR", "\", \"", "\"no offset on post-inc instruction?\"", "\", #\"", "AArch64"], "File": "AArch64InstPrinter1", "Func": "printInst", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3886, "Length": 331, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "requiresFrameIndexScavenging", "(", "const", "MachineFunction", "&", "MF", ")", "const", "override", "{", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "requires", "post", "PEI", "scavenging", "of", "registers", "for", "materializing", "frame", "index", "constants", "."], "TS_V_token": ["CSKY"], "File": "CSKYRegisterInfo1", "Func": "requiresFrameIndexScavenging", "Target": "CSKY", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3887, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "arm_no_early_mul_dep", "(", "rtx", "producer", ",", "rtx", "consumer", ")", "{", "rtx", "value", "=", "PATTERN", "(", "producer", ")", ";", "rtx", "op", "=", "PATTERN", "(", "consumer", ")", ";", "if", "(", "GET_CODE", "(", "value", ")", "==", "COND_EXEC", ")", "value", "=", "COND_EXEC_CODE", "(", "value", ")", ";", "if", "(", "GET_CODE", "(", "value", ")", "==", "PARALLEL", ")", "value", "=", "XVECEXP", "(", "value", ",", "0", ",", "0", ")", ";", "value", "=", "XEXP", "(", "value", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "op", ")", "==", "COND_EXEC", ")", "op", "=", "COND_EXEC_CODE", "(", "op", ")", ";", "if", "(", "GET_CODE", "(", "op", ")", "==", "PARALLEL", ")", "op", "=", "XVECEXP", "(", "op", ",", "0", ",", "0", ")", ";", "op", "=", "XEXP", "(", "op", ",", "1", ")", ";", "return", "(", "GET_CODE", "(", "op", ")", "==", "PLUS", "&&", "!", "reg_overlap_mentioned_p", "(", "value", ",", "XEXP", "(", "op", ",", "0", ")", ")", ")", ";", "}", ""], "natrual_language": ["Return", "nonzero", "if", "the", "CONSUMER", "(", "a", "mul", "or", "mac", "op", ")", "does", "not", "have", "an", "early", "register", "mult", "dependency", "on", "the", "result", "of", "PRODUCER", "."], "TS_V_token": ["arm", "0", "0", "0", "0", "0", "1", "0"], "File": "arm3", "Func": "arm_no_early_mul_dep", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3888, "Length": 140, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "TeeRISCFrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ")", "const", "{", "MachineBasicBlock", "&", "MBB", "=", "MF", ".", "front", "(", ")", ";", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "TeeRISCInstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "TeeRISCInstrInfo", "*", ">", "(", "MF", ".", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "TeeRISCMachineFunctionInfo", "*", "TFI", "=", "MF", ".", "getInfo", "<", "TeeRISCMachineFunctionInfo", ">", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "begin", "(", ")", ";", "DebugLoc", "DL", "=", "MBBI", "!=", "MBB", ".", "end", "(", ")", "?", "MBBI", "->", "getDebugLoc", "(", ")", ":", "DebugLoc", "(", ")", ";", "determineFrameLayout", "(", "MF", ")", ";", "unsigned", "StackSize", "=", "MFI", "->", "getStackSize", "(", ")", ";", "if", "(", "StackSize", "==", "0", "&&", "!", "MFI", "->", "adjustsStack", "(", ")", ")", "return", ";", "int", "FPOffset", "=", "TFI", "->", "getFPStackOffset", "(", ")", ";", "int", "RAOffset", "=", "TFI", "->", "getRAStackOffset", "(", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "TeeRISC", "::", "ADD_IMM", ")", ",", "TeeRISC", "::", "SP", ")", ".", "addReg", "(", "TeeRISC", "::", "SP", ")", ".", "addImm", "(", "StackSize", ")", ";", "if", "(", "MFI", "->", "adjustsStack", "(", ")", ")", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "TeeRISC", "::", "ST", ")", ",", "TeeRISC", "::", "SP", ")", ".", "addReg", "(", "TeeRISC", "::", "LR", ")", ".", "addImm", "(", "RAOffset", ")", ";", "}", "if", "(", "hasFP", "(", "MF", ")", ")", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "TeeRISC", "::", "ST", ")", ",", "TeeRISC", "::", "FP", ")", ".", "addReg", "(", "TeeRISC", "::", "SP", ")", ".", "addImm", "(", "FPOffset", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "TII", ".", "get", "(", "TeeRISC", "::", "ADD", ")", ",", "TeeRISC", "::", "FP", ")", ".", "addReg", "(", "TeeRISC", "::", "SP", ")", ".", "addReg", "(", "TeeRISC", "::", "ZERO", ")", ";", "}", "}", ""], "natrual_language": ["emitProlog/emitEpilog", "-", "These", "methods", "insert", "prolog", "and", "epilog", "code", "into", "the", "function", "."], "TS_V_token": ["TeeRISC", "TeeRISC", "TeeRISC", "TeeRISC", "TeeRISC", "TeeRISC", "0", "TeeRISC::ADD_IMM", "TeeRISC::SP", "TeeRISC::SP", "TeeRISC::ST", "TeeRISC::SP", "TeeRISC::LR", "TeeRISC::ST", "TeeRISC::FP", "TeeRISC::SP", "TeeRISC::ADD", "TeeRISC::FP", "TeeRISC::SP", "TeeRISC::ZERO"], "File": "TeeRISCFrameLowering", "Func": "emitPrologue", "Target": "TeeRISC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3889, "Length": 305, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "mips_dangerous_for_la25_p", "(", "rtx", "x", ")", "{", "HOST_WIDE_INT", "offset", ";", "if", "(", "TARGET_EXPLICIT_RELOCS", ")", "return", "false", ";", "mips_split_const", "(", "x", ",", "&", "x", ",", "&", "offset", ")", ";", "return", "global_got_operand", "(", "x", ",", "VOIDmode", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "X", "should", "not", "be", "moved", "directly", "into", "register", "$", "25", ".", "We", "need", "this", "because", "many", "versions", "of", "GAS", "will", "treat", "``", "la", "$", "25", ",", "foo", "''", "as", "part", "of", "a", "call", "sequence", "and", "so", "allow", "a", "global", "``", "foo", "''", "to", "be", "lazily", "bound", "."], "TS_V_token": ["mips"], "File": "mips3", "Func": "mips_dangerous_for_la25_p", "Target": "mips", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3890, "Length": 37, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "ix86_copy_addr_to_reg", "(", "rtx", "addr", ")", "{", "rtx", "reg", ";", "if", "(", "GET_MODE", "(", "addr", ")", "==", "Pmode", "||", "GET_MODE", "(", "addr", ")", "==", "VOIDmode", ")", "{", "reg", "=", "copy_addr_to_reg", "(", "addr", ")", ";", "REG_POINTER", "(", "reg", ")", "=", "1", ";", "return", "reg", ";", "}", "else", "{", "gcc_assert", "(", "GET_MODE", "(", "addr", ")", "==", "DImode", "&&", "Pmode", "==", "SImode", ")", ";", "reg", "=", "copy_to_mode_reg", "(", "DImode", ",", "addr", ")", ";", "REG_POINTER", "(", "reg", ")", "=", "1", ";", "return", "gen_rtx_SUBREG", "(", "SImode", ",", "reg", ",", "0", ")", ";", "}", "}", ""], "natrual_language": ["Copy", "the", "address", "to", "a", "Pmode", "register", ".", "This", "is", "used", "for", "x32", "to", "truncate", "DImode", "TLS", "address", "to", "a", "SImode", "register", "."], "TS_V_token": ["i386", "1", "1", "0"], "File": "i386-expand", "Func": "ix86_copy_addr_to_reg", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3891, "Length": 90, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "VE", "::", "Fixups", "getFixupKind", "(", ")", "const", "{", "return", "getFixupKind", "(", "Kind", ")", ";", "}", ""], "natrual_language": ["getFixupKind", "-", "Get", "the", "fixup", "kind", "of", "this", "expression", "."], "TS_V_token": ["VE", "VE::Fixups"], "File": "VEMCExpr", "Func": "getFixupKind", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3892, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "isF128SoftLibCall", "(", "const", "char", "*", "CallSym", ")", "{", "const", "char", "*", "const", "LibCalls", "[", "]", "=", "{", "\"__addtf3\"", ",", "\"__divtf3\"", ",", "\"__eqtf2\"", ",", "\"__extenddftf2\"", ",", "\"__extendsftf2\"", ",", "\"__fixtfdi\"", ",", "\"__fixtfsi\"", ",", "\"__fixtfti\"", ",", "\"__fixunstfdi\"", ",", "\"__fixunstfsi\"", ",", "\"__fixunstfti\"", ",", "\"__floatditf\"", ",", "\"__floatsitf\"", ",", "\"__floattitf\"", ",", "\"__floatunditf\"", ",", "\"__floatunsitf\"", ",", "\"__floatuntitf\"", ",", "\"__getf2\"", ",", "\"__gttf2\"", ",", "\"__letf2\"", ",", "\"__lttf2\"", ",", "\"__multf3\"", ",", "\"__netf2\"", ",", "\"__powitf2\"", ",", "\"__subtf3\"", ",", "\"__trunctfdf2\"", ",", "\"__trunctfsf2\"", ",", "\"__unordtf2\"", ",", "\"ceill\"", ",", "\"copysignl\"", ",", "\"cosl\"", ",", "\"exp2l\"", ",", "\"expl\"", ",", "\"floorl\"", ",", "\"fmal\"", ",", "\"fmodl\"", ",", "\"log10l\"", ",", "\"log2l\"", ",", "\"logl\"", ",", "\"nearbyintl\"", ",", "\"powl\"", ",", "\"rintl\"", ",", "\"sinl\"", ",", "\"sqrtl\"", ",", "\"truncl\"", "}", ";", "const", "char", "*", "const", "*", "End", "=", "LibCalls", "+", "array_lengthof", "(", "LibCalls", ")", ";", "MipsTargetLowering", "::", "LTStr", "Comp", ";", "for", "(", "const", "char", "*", "const", "*", "I", "=", "LibCalls", ";", "I", "<", "End", "-", "1", ";", "++", "I", ")", "assert", "(", "Comp", "(", "*", "I", ",", "*", "(", "I", "+", "1", ")", ")", ")", ";", "return", "std", "::", "binary_search", "(", "LibCalls", ",", "End", ",", "CallSym", ",", "Comp", ")", ";", "}", ""], "natrual_language": ["This", "function", "returns", "true", "if", "CallSym", "is", "a", "long", "double", "emulation", "routine", "."], "TS_V_token": ["Mips", "\"__addtf3\"", "\"__divtf3\"", "\"__eqtf2\"", "\"__extenddftf2\"", "\"__extendsftf2\"", "\"__fixtfdi\"", "\"__fixtfsi\"", "\"__fixtfti\"", "\"__fixunstfdi\"", "\"__fixunstfsi\"", "\"__fixunstfti\"", "\"__floatditf\"", "\"__floatsitf\"", "\"__floattitf\"", "\"__floatunditf\"", "\"__floatunsitf\"", "\"__floatuntitf\"", "\"__getf2\"", "\"__gttf2\"", "\"__letf2\"", "\"__lttf2\"", "\"__multf3\"", "\"__netf2\"", "\"__powitf2\"", "\"__subtf3\"", "\"__trunctfdf2\"", "\"__trunctfsf2\"", "\"__unordtf2\"", "\"ceill\"", "\"copysignl\"", "\"cosl\"", "\"exp2l\"", "\"expl\"", "\"floorl\"", "\"fmal\"", "\"fmodl\"", "\"log10l\"", "\"log2l\"", "\"logl\"", "\"nearbyintl\"", "\"powl\"", "\"rintl\"", "\"sinl\"", "\"sqrtl\"", "\"truncl\"", "Mips", "1", "1"], "File": "MipsISelLowering (2)1", "Func": "isF128SoftLibCall", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3893, "Length": 180, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86TTIImpl", "::", "isLegalMaskedLoad", "(", "Type", "*", "DataTy", ",", "Align", "Alignment", ")", "{", "if", "(", "!", "ST", "->", "hasAVX", "(", ")", ")", "return", "false", ";", "if", "(", "isa", "<", "VectorType", ">", "(", "DataTy", ")", "&&", "cast", "<", "FixedVectorType", ">", "(", "DataTy", ")", "->", "getNumElements", "(", ")", "==", "1", ")", "return", "false", ";", "Type", "*", "ScalarTy", "=", "DataTy", "->", "getScalarType", "(", ")", ";", "if", "(", "ScalarTy", "->", "isPointerTy", "(", ")", ")", "return", "true", ";", "if", "(", "ScalarTy", "->", "isFloatTy", "(", ")", "||", "ScalarTy", "->", "isDoubleTy", "(", ")", ")", "return", "true", ";", "if", "(", "!", "ScalarTy", "->", "isIntegerTy", "(", ")", ")", "return", "false", ";", "unsigned", "IntWidth", "=", "ScalarTy", "->", "getIntegerBitWidth", "(", ")", ";", "return", "IntWidth", "==", "32", "||", "IntWidth", "==", "64", "||", "(", "(", "IntWidth", "==", "8", "||", "IntWidth", "==", "16", ")", "&&", "ST", "->", "hasBWI", "(", ")", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "target", "supports", "masked", "load", "."], "TS_V_token": ["X86", "X86", "1", "32", "64", "8", "16"], "File": "X86TargetTransformInfo103", "Func": "isLegalMaskedLoad", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3894, "Length": 139, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCPassConfig", "::", "addILPOpts", "(", ")", "{", "addPass", "(", "&", "EarlyIfConverterID", ")", ";", "return", "true", ";", "}", ""], "natrual_language": ["Add", "passes", "that", "optimize", "instruction", "level", "parallelism", "for", "out-of-order", "targets", "."], "TS_V_token": ["PowerPC", "PPC"], "File": "PPCTargetMachine", "Func": "addILPOpts", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3895, "Length": 17, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "sparc64_initialize_trampoline", "(", "rtx", "tramp", ",", "rtx", "fnaddr", ",", "rtx", "cxt", ")", "{", "emit_move_insn", "(", "gen_rtx_MEM", "(", "SImode", ",", "tramp", ")", ",", "GEN_INT", "(", "trunc_int_for_mode", "(", "0x83414000", ",", "SImode", ")", ")", ")", ";", "emit_move_insn", "(", "gen_rtx_MEM", "(", "SImode", ",", "plus_constant", "(", "tramp", ",", "4", ")", ")", ",", "GEN_INT", "(", "trunc_int_for_mode", "(", "0xca586018", ",", "SImode", ")", ")", ")", ";", "emit_move_insn", "(", "gen_rtx_MEM", "(", "SImode", ",", "plus_constant", "(", "tramp", ",", "8", ")", ")", ",", "GEN_INT", "(", "trunc_int_for_mode", "(", "0x81c14000", ",", "SImode", ")", ")", ")", ";", "emit_move_insn", "(", "gen_rtx_MEM", "(", "SImode", ",", "plus_constant", "(", "tramp", ",", "12", ")", ")", ",", "GEN_INT", "(", "trunc_int_for_mode", "(", "0xca586010", ",", "SImode", ")", ")", ")", ";", "emit_move_insn", "(", "gen_rtx_MEM", "(", "DImode", ",", "plus_constant", "(", "tramp", ",", "16", ")", ")", ",", "cxt", ")", ";", "emit_move_insn", "(", "gen_rtx_MEM", "(", "DImode", ",", "plus_constant", "(", "tramp", ",", "24", ")", ")", ",", "fnaddr", ")", ";", "emit_insn", "(", "gen_flushdi", "(", "validize_mem", "(", "gen_rtx_MEM", "(", "DImode", ",", "tramp", ")", ")", ")", ")", ";", "if", "(", "sparc_cpu", "!=", "PROCESSOR_ULTRASPARC", "&&", "sparc_cpu", "!=", "PROCESSOR_ULTRASPARC3", ")", "emit_insn", "(", "gen_flushdi", "(", "validize_mem", "(", "gen_rtx_MEM", "(", "DImode", ",", "plus_constant", "(", "tramp", ",", "8", ")", ")", ")", ")", ")", ";", "emit_library_call", "(", "gen_rtx_SYMBOL_REF", "(", "Pmode", ",", "\"__enable_execute_stack\"", ")", ",", "LCT_NORMAL", ",", "VOIDmode", ",", "1", ",", "tramp", ",", "Pmode", ")", ";", "}", ""], "natrual_language": ["The", "64", "bit", "version", "is", "simpler", "because", "it", "makes", "more", "sense", "to", "load", "the", "values", "as", "``", "immediate", "''", "data", "out", "of", "the", "trampoline", ".", "It", "'s", "also", "easier", "since", "we", "can", "read", "the", "PC", "without", "clobbering", "a", "register", "."], "TS_V_token": ["sparc", "0x83414000", "4", "0xca586018", "8", "0x81c14000", "12", "0xca586010", "16", "24", "8", "\"__enable_execute_stack\"", "1"], "File": "sparc3", "Func": "sparc64_initialize_trampoline", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3896, "Length": 210, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "isMem", "(", ")", "const", "override", "{", "return", "Kind", "==", "k_Memory", ";", "}", ""], "natrual_language": ["isMem", "-", "Is", "this", "a", "memory", "operand", "?"], "TS_V_token": ["OR1K"], "File": "OR1KAsmParser1", "Func": "isMem", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3897, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "buildLoad", "(", "Register", "Val", ",", "const", "CCValAssign", "&", "VA", ")", "{", "MachineMemOperand", "*", "MMO", ";", "Register", "Addr", "=", "getStackAddress", "(", "VA", ",", "MMO", ")", ";", "MIRBuilder", ".", "buildLoad", "(", "Val", ",", "Addr", ",", "*", "MMO", ")", ";", "}", ""], "natrual_language": ["Build", "and", "insert", "a", "G_LOAD", "instruction", ",", "while", "constructing", "the", "MachineMemOperand", "."], "TS_V_token": ["Mips"], "File": "MipsCallLowering10", "Func": "buildLoad", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3898, "Length": 39, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "sh_emit_compare_and_branch", "(", "rtx", "*", "operands", ",", "machine_mode", "mode", ")", "{", "enum", "rtx_code", "code", "=", "GET_CODE", "(", "operands", "[", "0", "]", ")", ";", "enum", "rtx_code", "branch_code", ";", "rtx", "op0", "=", "operands", "[", "1", "]", ";", "rtx", "op1", "=", "operands", "[", "2", "]", ";", "rtx", "insn", ";", "bool", "need_ccmpeq", "=", "false", ";", "if", "(", "TARGET_SH2E", "&&", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_FLOAT", ")", "{", "op0", "=", "force_reg", "(", "mode", ",", "op0", ")", ";", "op1", "=", "force_reg", "(", "mode", ",", "op1", ")", ";", "}", "else", "{", "if", "(", "code", "!=", "EQ", "||", "mode", "==", "DImode", ")", "{", "op0", "=", "force_reg", "(", "mode", ",", "op0", ")", ";", "if", "(", "op1", "!=", "const0_rtx", "||", "code", "==", "GTU", "||", "code", "==", "GEU", ")", "op1", "=", "force_reg", "(", "mode", ",", "op1", ")", ";", "}", "}", "if", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_FLOAT", ")", "{", "if", "(", "code", "==", "LT", "||", "(", "code", "==", "LE", "&&", "TARGET_IEEE", "&&", "TARGET_SH2E", ")", "||", "(", "code", "==", "GE", "&&", "!", "(", "TARGET_IEEE", "&&", "TARGET_SH2E", ")", ")", ")", "{", "std", "::", "swap", "(", "op0", ",", "op1", ")", ";", "code", "=", "swap_condition", "(", "code", ")", ";", "}", "if", "(", "code", "==", "GE", ")", "{", "gcc_assert", "(", "TARGET_IEEE", "&&", "TARGET_SH2E", ")", ";", "need_ccmpeq", "=", "true", ";", "code", "=", "GT", ";", "}", "gcc_assert", "(", "code", "==", "EQ", "||", "code", "==", "GT", "||", "code", "==", "NE", "||", "code", "==", "LE", ")", ";", "}", "switch", "(", "code", ")", "{", "case", "EQ", ":", "case", "GT", ":", "case", "GE", ":", "case", "GTU", ":", "case", "GEU", ":", "branch_code", "=", "code", ";", "break", ";", "case", "NE", ":", "case", "LT", ":", "case", "LE", ":", "case", "LTU", ":", "case", "LEU", ":", "branch_code", "=", "reverse_condition", "(", "code", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "insn", "=", "gen_rtx_SET", "(", "get_t_reg_rtx", "(", ")", ",", "gen_rtx_fmt_ee", "(", "branch_code", ",", "SImode", ",", "op0", ",", "op1", ")", ")", ";", "sh_emit_set_t_insn", "(", "insn", ",", "mode", ")", ";", "if", "(", "need_ccmpeq", ")", "sh_emit_set_t_insn", "(", "gen_ieee_ccmpeqsf_t", "(", "op0", ",", "op1", ")", ",", "mode", ")", ";", "if", "(", "branch_code", "==", "code", ")", "emit_jump_insn", "(", "gen_branch_true", "(", "operands", "[", "3", "]", ")", ")", ";", "else", "emit_jump_insn", "(", "gen_branch_false", "(", "operands", "[", "3", "]", ")", ")", ";", "}", ""], "natrual_language": ["Called", "from", "the", "md", "file", ",", "set", "up", "the", "operands", "of", "a", "compare", "instruction", "."], "TS_V_token": ["sh", "0", "1", "2", "3", "3"], "File": "sh", "Func": "sh_emit_compare_and_branch", "Target": "sh", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3899, "Length": 359, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "X86ATTInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "OS", ",", "StringRef", "Annot", ")", "{", "if", "(", "!", "printAliasInstr", "(", "MI", ",", "OS", ")", ")", "printInstruction", "(", "MI", ",", "OS", ")", ";", "printAnnotation", "(", "OS", ",", "Annot", ")", ";", "if", "(", "CommentStream", ")", "EmitAnyX86InstComments", "(", "MI", ",", "*", "CommentStream", ",", "getRegisterName", ")", ";", "}", ""], "natrual_language": ["Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "."], "TS_V_token": ["X86", "X86", "X86"], "File": "X86ATTInstPrinter18", "Func": "printInst", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3900, "Length": 57, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64AsmParser", "::", "ParseDirective", "(", "AsmToken", "DirectiveID", ")", "{", "const", "MCObjectFileInfo", "::", "Environment", "Format", "=", "getContext", "(", ")", ".", "getObjectFileInfo", "(", ")", "->", "getObjectFileType", "(", ")", ";", "bool", "IsMachO", "=", "Format", "==", "MCObjectFileInfo", "::", "IsMachO", ";", "bool", "IsCOFF", "=", "Format", "==", "MCObjectFileInfo", "::", "IsCOFF", ";", "StringRef", "IDVal", "=", "DirectiveID", ".", "getIdentifier", "(", ")", ";", "SMLoc", "Loc", "=", "DirectiveID", ".", "getLoc", "(", ")", ";", "if", "(", "IDVal", "==", "\".hword\"", ")", "return", "parseDirectiveWord", "(", "2", ",", "Loc", ")", ";", "if", "(", "IDVal", "==", "\".word\"", ")", "return", "parseDirectiveWord", "(", "4", ",", "Loc", ")", ";", "if", "(", "IDVal", "==", "\".xword\"", ")", "return", "parseDirectiveWord", "(", "8", ",", "Loc", ")", ";", "if", "(", "IDVal", "==", "\".tlsdesccall\"", ")", "return", "parseDirectiveTLSDescCall", "(", "Loc", ")", ";", "if", "(", "IDVal", "==", "\".ltorg\"", "||", "IDVal", "==", "\".pool\"", ")", "return", "parseDirectiveLtorg", "(", "Loc", ")", ";", "if", "(", "IDVal", "==", "\".unreq\"", ")", "return", "parseDirectiveUnreq", "(", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "if", "(", "!", "IsMachO", "&&", "!", "IsCOFF", ")", "{", "if", "(", "IDVal", "==", "\".inst\"", ")", "return", "parseDirectiveInst", "(", "Loc", ")", ";", "}", "return", "parseDirectiveLOH", "(", "IDVal", ",", "Loc", ")", ";", "}", ""], "natrual_language": ["ParseDirective", "-", "Parse", "a", "target", "specific", "assembler", "directive", "This", "method", "is", "deprecated", ",", "use", "'parseDirective", "'", "instead", "."], "TS_V_token": ["AArch64", "AArch64", "\".hword\"", "2", "\".word\"", "4", "\".xword\"", "8", "\".tlsdesccall\"", "\".ltorg\"", "\".pool\"", "\".unreq\"", "\".inst\""], "File": "AArch64AsmParser (2)1", "Func": "ParseDirective", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3901, "Length": 180, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "needAddressOf", "(", ")", "const", "{", "return", "AddressOf", ";", "}", ""], "natrual_language": ["needAddressOf", "-", "Do", "we", "need", "to", "emit", "code", "to", "get", "the", "address", "of", "the", "variable/label", "?", "Only", "valid", "when", "parsing", "MS-style", "inline", "assembly", "."], "TS_V_token": ["X86"], "File": "X86AsmParser (2)2", "Func": "needAddressOf", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3902, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "ix86_expand_pinsr", "(", "rtx", "*", "operands", ")", "{", "rtx", "dst", "=", "operands", "[", "0", "]", ";", "rtx", "src", "=", "operands", "[", "3", "]", ";", "unsigned", "int", "size", "=", "INTVAL", "(", "operands", "[", "1", "]", ")", ";", "unsigned", "int", "pos", "=", "INTVAL", "(", "operands", "[", "2", "]", ")", ";", "if", "(", "SUBREG_P", "(", "dst", ")", ")", "{", "pos", "+=", "SUBREG_BYTE", "(", "dst", ")", "*", "BITS_PER_UNIT", ";", "dst", "=", "SUBREG_REG", "(", "dst", ")", ";", "}", "switch", "(", "GET_MODE", "(", "dst", ")", ")", "{", "case", "E_V16QImode", ":", "case", "E_V8HImode", ":", "case", "E_V4SImode", ":", "case", "E_V2DImode", ":", "case", "E_V1TImode", ":", "{", "machine_mode", "srcmode", ",", "dstmode", ";", "rtx", "(", "*", "pinsr", ")", "(", "rtx", ",", "rtx", ",", "rtx", ",", "rtx", ")", ";", "rtx", "d", ";", "if", "(", "!", "int_mode_for_size", "(", "size", ",", "0", ")", ".", "exists", "(", "&", "srcmode", ")", ")", "return", "false", ";", "switch", "(", "srcmode", ")", "{", "case", "E_QImode", ":", "if", "(", "!", "TARGET_SSE4_1", ")", "return", "false", ";", "dstmode", "=", "V16QImode", ";", "pinsr", "=", "gen_sse4_1_pinsrb", ";", "break", ";", "case", "E_HImode", ":", "if", "(", "!", "TARGET_SSE2", ")", "return", "false", ";", "dstmode", "=", "V8HImode", ";", "pinsr", "=", "gen_sse2_pinsrw", ";", "break", ";", "case", "E_SImode", ":", "if", "(", "!", "TARGET_SSE4_1", ")", "return", "false", ";", "dstmode", "=", "V4SImode", ";", "pinsr", "=", "gen_sse4_1_pinsrd", ";", "break", ";", "case", "E_DImode", ":", "gcc_assert", "(", "TARGET_64BIT", ")", ";", "if", "(", "!", "TARGET_SSE4_1", ")", "return", "false", ";", "dstmode", "=", "V2DImode", ";", "pinsr", "=", "gen_sse4_1_pinsrq", ";", "break", ";", "default", ":", "return", "false", ";", "}", "if", "(", "pos", "&", "(", "size", "-", "1", ")", ")", "return", "false", ";", "if", "(", "SUBREG_P", "(", "src", ")", ")", "{", "unsigned", "int", "srcpos", "=", "SUBREG_BYTE", "(", "src", ")", ";", "if", "(", "srcpos", ">", "0", ")", "{", "rtx", "extr_ops", "[", "4", "]", ";", "extr_ops", "[", "0", "]", "=", "gen_reg_rtx", "(", "srcmode", ")", ";", "extr_ops", "[", "1", "]", "=", "gen_lowpart", "(", "srcmode", ",", "SUBREG_REG", "(", "src", ")", ")", ";", "extr_ops", "[", "2", "]", "=", "GEN_INT", "(", "size", ")", ";", "extr_ops", "[", "3", "]", "=", "GEN_INT", "(", "srcpos", "*", "BITS_PER_UNIT", ")", ";", "if", "(", "!", "ix86_expand_pextr", "(", "extr_ops", ")", ")", "return", "false", ";", "src", "=", "extr_ops", "[", "0", "]", ";", "}", "else", "src", "=", "gen_lowpart", "(", "srcmode", ",", "SUBREG_REG", "(", "src", ")", ")", ";", "}", "if", "(", "GET_MODE", "(", "dst", ")", "==", "dstmode", ")", "d", "=", "dst", ";", "else", "d", "=", "gen_reg_rtx", "(", "dstmode", ")", ";", "emit_insn", "(", "pinsr", "(", "d", ",", "gen_lowpart", "(", "dstmode", ",", "dst", ")", ",", "gen_lowpart", "(", "srcmode", ",", "src", ")", ",", "GEN_INT", "(", "1", "<<", "(", "pos", "/", "size", ")", ")", ")", ")", ";", "if", "(", "d", "!=", "dst", ")", "emit_move_insn", "(", "dst", ",", "gen_lowpart", "(", "GET_MODE", "(", "dst", ")", ",", "d", ")", ")", ";", "return", "true", ";", "}", "default", ":", "return", "false", ";", "}", "}", ""], "natrual_language": ["Expand", "an", "insert", "into", "a", "vector", "register", "through", "pinsr", "insn", ".", "Return", "true", "if", "successful", "."], "TS_V_token": ["i386", "0", "3", "1", "2", "0", "1", "0", "4", "0", "1", "2", "3", "0", "1"], "File": "i386-expand", "Func": "ix86_expand_pinsr", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3903, "Length": 448, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "addPreISel", "(", ")", "override", "{", "return", "false", ";", "}", ""], "natrual_language": ["{", "{", "@", "For", "GlobalISel"], "TS_V_token": ["UPT"], "File": "UPTTargetMachine", "Func": "addPreISel", "Target": "UPT", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3904, "Length": 10, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "RegisterBank", "&", "AArch64RegisterBankInfo", "::", "getRegBankFromRegClass", "(", "const", "TargetRegisterClass", "&", "RC", ",", "LLT", ")", "const", "{", "switch", "(", "RC", ".", "getID", "(", ")", ")", "{", "case", "AArch64", "::", "FPR8RegClassID", ":", "case", "AArch64", "::", "FPR16RegClassID", ":", "case", "AArch64", "::", "FPR32RegClassID", ":", "case", "AArch64", "::", "FPR64RegClassID", ":", "case", "AArch64", "::", "FPR64_loRegClassID", ":", "case", "AArch64", "::", "FPR128RegClassID", ":", "case", "AArch64", "::", "FPR128_loRegClassID", ":", "case", "AArch64", "::", "DDRegClassID", ":", "case", "AArch64", "::", "DDDRegClassID", ":", "case", "AArch64", "::", "DDDDRegClassID", ":", "case", "AArch64", "::", "QQRegClassID", ":", "case", "AArch64", "::", "QQQRegClassID", ":", "case", "AArch64", "::", "QQQQRegClassID", ":", "return", "getRegBank", "(", "AArch64", "::", "FPRRegBankID", ")", ";", "case", "AArch64", "::", "GPR32commonRegClassID", ":", "case", "AArch64", "::", "GPR32RegClassID", ":", "case", "AArch64", "::", "GPR32spRegClassID", ":", "case", "AArch64", "::", "GPR32sponlyRegClassID", ":", "case", "AArch64", "::", "GPR32argRegClassID", ":", "case", "AArch64", "::", "GPR32allRegClassID", ":", "case", "AArch64", "::", "GPR64commonRegClassID", ":", "case", "AArch64", "::", "GPR64RegClassID", ":", "case", "AArch64", "::", "GPR64spRegClassID", ":", "case", "AArch64", "::", "GPR64sponlyRegClassID", ":", "case", "AArch64", "::", "GPR64argRegClassID", ":", "case", "AArch64", "::", "GPR64allRegClassID", ":", "case", "AArch64", "::", "GPR64noipRegClassID", ":", "case", "AArch64", "::", "GPR64common_and_GPR64noipRegClassID", ":", "case", "AArch64", "::", "GPR64noip_and_tcGPR64RegClassID", ":", "case", "AArch64", "::", "tcGPR64RegClassID", ":", "case", "AArch64", "::", "WSeqPairsClassRegClassID", ":", "case", "AArch64", "::", "XSeqPairsClassRegClassID", ":", "return", "getRegBank", "(", "AArch64", "::", "GPRRegBankID", ")", ";", "case", "AArch64", "::", "CCRRegClassID", ":", "return", "getRegBank", "(", "AArch64", "::", "CCRegBankID", ")", ";", "default", ":", "llvm_unreachable", "(", "\"Register class not supported\"", ")", ";", "}", "}", ""], "natrual_language": ["Get", "a", "register", "bank", "that", "covers", "RC", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64::FPR8RegClassID", "AArch64::FPR16RegClassID", "AArch64::FPR32RegClassID", "AArch64::FPR64RegClassID", "AArch64::FPR64_loRegClassID", "AArch64::FPR128RegClassID", "AArch64::FPR128_loRegClassID", "AArch64::DDRegClassID", "AArch64::DDDRegClassID", "AArch64::DDDDRegClassID", "AArch64::QQRegClassID", "AArch64::QQQRegClassID", "AArch64::QQQQRegClassID", "AArch64::FPRRegBankID", "AArch64::GPR32commonRegClassID", "AArch64::GPR32RegClassID", "AArch64::GPR32spRegClassID", "AArch64::GPR32sponlyRegClassID", "AArch64::GPR32argRegClassID", "AArch64::GPR32allRegClassID", "AArch64::GPR64commonRegClassID", "AArch64::GPR64RegClassID", "AArch64::GPR64spRegClassID", "AArch64::GPR64sponlyRegClassID", "AArch64::GPR64argRegClassID", "AArch64::GPR64allRegClassID", "AArch64::GPR64noipRegClassID", "AArch64::GPR64common_and_GPR64noipRegClassID", "AArch64::GPR64noip_and_tcGPR64RegClassID", "AArch64::tcGPR64RegClassID", "AArch64::WSeqPairsClassRegClassID", "AArch64::XSeqPairsClassRegClassID", "AArch64::GPRRegBankID", "AArch64::CCRRegClassID", "AArch64::CCRegBankID", "\"Register class not supported\""], "File": "AArch64RegisterBankInfo5", "Func": "getRegBankFromRegClass", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3905, "Length": 218, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "OR1KInstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "DestReg", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "RC", "==", "&", "OR1K", "::", "GPRRegClass", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "OR1K", "::", "LWZ", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ";", "else", "llvm_unreachable", "(", "\"Can't load this register from stack slot\"", ")", ";", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["OR1K", "OR1K", "OR1K::GPRRegClass", "OR1K::LWZ", "0", "\"Can't load this register from stack slot\""], "File": "OR1KInstrInfo", "Func": "loadRegFromStackSlot", "Target": "OR1K", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3906, "Length": 97, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "push_regs", "(", "unsigned", "int", "high", ",", "unsigned", "int", "low", ")", "{", "rtx", "insn", ";", "if", "(", "low", "==", "high", ")", "insn", "=", "emit_insn", "(", "gen_stack_push", "(", "gen_rtx_REG", "(", "SImode", ",", "low", ")", ")", ")", ";", "else", "insn", "=", "emit_insn", "(", "gen_stack_pushm", "(", "GEN_INT", "(", "(", "(", "high", "-", "low", ")", "+", "1", ")", "*", "UNITS_PER_WORD", ")", ",", "gen_rx_store_vector", "(", "low", ",", "high", ")", ")", ")", ";", "mark_frame_related", "(", "insn", ")", ";", "}", ""], "natrual_language": ["Generate", "code", "to", "push", "the", "regs", "specified", "in", "the", "mask", ".", "remember", "that", "the", "mask", "is", "of", "the", "internal", "shape", "of", "the", "regs", ",", "not", "the", "external", "shape", "-", "so", "go", "through", "the", "renumber", "vector"], "TS_V_token": ["rx", "1"], "File": "rx", "Func": "push_regs", "Target": "rx", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3907, "Length": 74, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ARMBaseInstrInfo", "::", "getInstrLatency", "(", "const", "InstrItineraryData", "*", "ItinData", ",", "SDNode", "*", "Node", ")", "const", "{", "if", "(", "!", "Node", "->", "isMachineOpcode", "(", ")", ")", "return", "1", ";", "if", "(", "!", "ItinData", "||", "ItinData", "->", "isEmpty", "(", ")", ")", "return", "1", ";", "unsigned", "Opcode", "=", "Node", "->", "getMachineOpcode", "(", ")", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "ItinData", "->", "getStageLatency", "(", "get", "(", "Opcode", ")", ".", "getSchedClass", "(", ")", ")", ";", "case", "ARM", "::", "VLDMQIA", ":", "case", "ARM", "::", "VSTMQIA", ":", "return", "2", ";", "}", "}", ""], "natrual_language": ["Compute", "the", "instruction", "latency", "of", "a", "given", "instruction", "."], "TS_V_token": ["ARM", "ARM", "1", "1", "ARM::VLDMQIA", "ARM::VSTMQIA", "2"], "File": "ARMBaseInstrInfo (2)", "Func": "getInstrLatency", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3908, "Length": 88, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTargetLowering", "::", "allowsMisalignedMemoryAccesses", "(", "EVT", "VT", ",", "unsigned", ",", "unsigned", ",", "bool", "*", "Fast", ")", "const", "{", "if", "(", "DisablePPCUnaligned", ")", "return", "false", ";", "if", "(", "!", "VT", ".", "isSimple", "(", ")", ")", "return", "false", ";", "if", "(", "VT", ".", "getSimpleVT", "(", ")", ".", "isVector", "(", ")", ")", "{", "if", "(", "Subtarget", ".", "hasVSX", "(", ")", ")", "{", "if", "(", "VT", "!=", "MVT", "::", "v2f64", "&&", "VT", "!=", "MVT", "::", "v2i64", "&&", "VT", "!=", "MVT", "::", "v4f32", "&&", "VT", "!=", "MVT", "::", "v4i32", ")", "return", "false", ";", "}", "else", "{", "return", "false", ";", "}", "}", "if", "(", "VT", "==", "MVT", "::", "ppcf128", ")", "return", "false", ";", "if", "(", "Fast", ")", "*", "Fast", "=", "true", ";", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "if", "the", "target", "allows", "unaligned", "memory", "accesses", "of", "the", "specified", "type", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "MVT::v2f64", "MVT::v2i64", "MVT::v4f32", "MVT::v4i32", "MVT::ppcf128"], "File": "PPCISelLowering (2)2", "Func": "allowsMisalignedMemoryAccesses", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3909, "Length": 120, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "MipsTargetObjectFile", "::", "Initialize", "(", "MCContext", "&", "Ctx", ",", "const", "TargetMachine", "&", "TM", ")", "{", "TargetLoweringObjectFileELF", "::", "Initialize", "(", "Ctx", ",", "TM", ")", ";", "SmallDataSection", "=", "getELFSection", "(", "\".sdata\"", ",", "MCSectionELF", "::", "SHT_PROGBITS", ",", "MCSectionELF", "::", "SHF_WRITE", "|", "MCSectionELF", "::", "SHF_ALLOC", ",", "SectionKind", "::", "getDataRel", "(", ")", ")", ";", "SmallBSSSection", "=", "getELFSection", "(", "\".sbss\"", ",", "MCSectionELF", "::", "SHT_NOBITS", ",", "MCSectionELF", "::", "SHF_WRITE", "|", "MCSectionELF", "::", "SHF_ALLOC", ",", "SectionKind", "::", "getBSS", "(", ")", ")", ";", "}", ""], "natrual_language": ["This", "method", "must", "be", "called", "before", "any", "actual", "lowering", "is", "done", "."], "TS_V_token": ["Mips", "Mips", "\".sdata\"", "\".sbss\""], "File": "MipsTargetObjectFile29", "Func": "Initialize", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3910, "Length": 75, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCAsmPrinter", "::", "PrintAsmOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNo", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "O", ")", "{", "if", "(", "ExtraCode", "&&", "ExtraCode", "[", "0", "]", ")", "{", "if", "(", "ExtraCode", "[", "1", "]", "!=", "0", ")", "return", "true", ";", "switch", "(", "ExtraCode", "[", "0", "]", ")", "{", "default", ":", "return", "AsmPrinter", "::", "PrintAsmOperand", "(", "MI", ",", "OpNo", ",", "ExtraCode", ",", "O", ")", ";", "case", "'L'", ":", "if", "(", "!", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "isReg", "(", ")", "||", "OpNo", "+", "1", "==", "MI", "->", "getNumOperands", "(", ")", "||", "!", "MI", "->", "getOperand", "(", "OpNo", "+", "1", ")", ".", "isReg", "(", ")", ")", "return", "true", ";", "++", "OpNo", ";", "break", ";", "case", "'I'", ":", "if", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "isImm", "(", ")", ")", "O", "<<", "\"i\"", ";", "return", "false", ";", "case", "'x'", ":", "if", "(", "!", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "isReg", "(", ")", ")", "return", "true", ";", "unsigned", "Reg", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getReg", "(", ")", ";", "if", "(", "PPCInstrInfo", "::", "isVRRegister", "(", "Reg", ")", ")", "Reg", "=", "PPC", "::", "VSX32", "+", "(", "Reg", "-", "PPC", "::", "V0", ")", ";", "else", "if", "(", "PPCInstrInfo", "::", "isVFRegister", "(", "Reg", ")", ")", "Reg", "=", "PPC", "::", "VSX32", "+", "(", "Reg", "-", "PPC", "::", "VF0", ")", ";", "const", "char", "*", "RegName", ";", "RegName", "=", "PPCInstPrinter", "::", "getRegisterName", "(", "Reg", ")", ";", "RegName", "=", "PPCRegisterInfo", "::", "stripRegisterPrefix", "(", "RegName", ")", ";", "O", "<<", "RegName", ";", "return", "false", ";", "}", "}", "printOperand", "(", "MI", ",", "OpNo", ",", "O", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["PrintAsmOperand", "-", "Print", "out", "an", "operand", "for", "an", "inline", "asm", "expression", "."], "TS_V_token": ["PowerPC", "PPC", "0", "1", "0", "0", "1", "1", "\"i\"", "PPC", "PPC::VSX32", "PPC::V0", "PPC", "PPC::VSX32", "PPC::VF0", "PPC", "PPC"], "File": "PPCAsmPrinter115", "Func": "PrintAsmOperand", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3911, "Length": 267, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "uint32_t", "ARMMCCodeEmitter", "::", "getBranchTargetOpValue", "(", "const", "MCInst", "&", "MI", ",", "unsigned", "OpIdx", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ")", "const", "{", "const", "ARMSubtarget", "&", "Subtarget", "=", "TM", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "if", "(", "Subtarget", ".", "isThumb2", "(", ")", ")", "return", "::", "getBranchTargetOpValue", "(", "MI", ",", "OpIdx", ",", "ARM", "::", "fixup_t2_branch", ",", "Fixups", ")", ";", "return", "::", "getBranchTargetOpValue", "(", "MI", ",", "OpIdx", ",", "ARM", "::", "fixup_arm_branch", ",", "Fixups", ")", ";", "}", ""], "natrual_language": ["getBranchTargetOpValue", "-", "Return", "binary", "encoding", "of", "the", "branch", "target", "operand", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "ARM::fixup_t2_branch", "ARM::fixup_arm_branch"], "File": "ARMMCCodeEmitter13", "Func": "getBranchTargetOpValue", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3912, "Length": 75, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "VETargetLowering", "::", "getMinimumJumpTableEntries", "(", ")", "const", "{", "if", "(", "isJumpTableRelative", "(", ")", ")", "return", "8", ";", "return", "TargetLowering", "::", "getMinimumJumpTableEntries", "(", ")", ";", "}", ""], "natrual_language": ["}", "Inline", "Assembly"], "TS_V_token": ["VE", "VE", "8"], "File": "VEISelLowering11", "Func": "getMinimumJumpTableEntries", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3913, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "rtx", "create_TOC_reference", "(", "rtx", "symbol", ")", "{", "if", "(", "no_new_pseudos", ")", "regs_ever_live", "[", "TOC_REGISTER", "]", "=", "1", ";", "return", "gen_rtx_PLUS", "(", "Pmode", ",", "gen_rtx_REG", "(", "Pmode", ",", "TOC_REGISTER", ")", ",", "gen_rtx_CONST", "(", "Pmode", ",", "gen_rtx_MINUS", "(", "Pmode", ",", "symbol", ",", "gen_rtx_SYMBOL_REF", "(", "Pmode", ",", "toc_label_name", ")", ")", ")", ")", ";", "}", ""], "natrual_language": ["Create", "a", "TOC", "reference", "for", "symbol_ref", "SYMBOL", ".", "If", "LARGETOC_REG", "is", "non-null", ",", "use", "that", "as", "the", "register", "to", "put", "the", "HIGH", "value", "into", "if", "register", "allocation", "is", "already", "done", "."], "TS_V_token": ["rs6000", "1"], "File": "rs60003", "Func": "create_TOC_reference", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3914, "Length": 51, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "iq2000_expand_epilogue", "(", "void", ")", "{", "HOST_WIDE_INT", "tsize", "=", "cfun", "->", "machine", "->", "total_size", ";", "rtx", "tsize_rtx", "=", "GEN_INT", "(", "tsize", ")", ";", "rtx", "tmp_rtx", "=", "(", "rtx", ")", "0", ";", "if", "(", "iq2000_can_use_return_insn", "(", ")", ")", "{", "emit_jump_insn", "(", "gen_return", "(", ")", ")", ";", "return", ";", "}", "if", "(", "tsize", ">", "32767", ")", "{", "tmp_rtx", "=", "gen_rtx_REG", "(", "Pmode", ",", "IQ2000_TEMP1_REGNUM", ")", ";", "emit_move_insn", "(", "tmp_rtx", ",", "tsize_rtx", ")", ";", "tsize_rtx", "=", "tmp_rtx", ";", "}", "if", "(", "tsize", ">", "0", ")", "{", "if", "(", "frame_pointer_needed", ")", "{", "emit_insn", "(", "gen_blockage", "(", ")", ")", ";", "emit_insn", "(", "gen_movsi", "(", "stack_pointer_rtx", ",", "hard_frame_pointer_rtx", ")", ")", ";", "}", "save_restore_insns", "(", "0", ")", ";", "if", "(", "current_function_calls_eh_return", ")", "{", "rtx", "eh_ofs", "=", "EH_RETURN_STACKADJ_RTX", ";", "emit_insn", "(", "gen_addsi3", "(", "eh_ofs", ",", "eh_ofs", ",", "tsize_rtx", ")", ")", ";", "tsize_rtx", "=", "eh_ofs", ";", "}", "emit_insn", "(", "gen_blockage", "(", ")", ")", ";", "if", "(", "tsize", "!=", "0", "||", "current_function_calls_eh_return", ")", "{", "emit_insn", "(", "gen_addsi3", "(", "stack_pointer_rtx", ",", "stack_pointer_rtx", ",", "tsize_rtx", ")", ")", ";", "}", "}", "if", "(", "current_function_calls_eh_return", ")", "{", "emit_move_insn", "(", "gen_rtx_REG", "(", "Pmode", ",", "HARD_FRAME_POINTER_REGNUM", ")", ",", "stack_pointer_rtx", ")", ";", "emit_insn", "(", "gen_rtx_USE", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "Pmode", ",", "HARD_FRAME_POINTER_REGNUM", ")", ")", ")", ";", "emit_jump_insn", "(", "gen_eh_return_internal", "(", ")", ")", ";", "}", "else", "emit_jump_insn", "(", "gen_return_internal", "(", "gen_rtx_REG", "(", "Pmode", ",", "GP_REG_FIRST", "+", "31", ")", ")", ")", ";", "}", ""], "natrual_language": ["Expand", "the", "epilogue", "into", "a", "bunch", "of", "separate", "insns", "."], "TS_V_token": ["iq2000", "0", "32767", "0", "0", "0", "31"], "File": "iq20002", "Func": "iq2000_expand_epilogue", "Target": "iq2000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3915, "Length": 225, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineInstr", "*", "X86InstrInfo", "::", "optimizeLoadInstr", "(", "MachineInstr", "&", "MI", ",", "const", "MachineRegisterInfo", "*", "MRI", ",", "unsigned", "&", "FoldAsLoadDefReg", ",", "MachineInstr", "*", "&", "DefMI", ")", "const", "{", "DefMI", "=", "MRI", "->", "getVRegDef", "(", "FoldAsLoadDefReg", ")", ";", "assert", "(", "DefMI", ")", ";", "bool", "SawStore", "=", "false", ";", "if", "(", "!", "DefMI", "->", "isSafeToMove", "(", "nullptr", ",", "SawStore", ")", ")", "return", "nullptr", ";", "SmallVector", "<", "unsigned", ",", "1", ">", "SrcOperandIds", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "MI", ".", "getNumOperands", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "MachineOperand", "&", "MO", "=", "MI", ".", "getOperand", "(", "i", ")", ";", "if", "(", "!", "MO", ".", "isReg", "(", ")", ")", "continue", ";", "unsigned", "Reg", "=", "MO", ".", "getReg", "(", ")", ";", "if", "(", "Reg", "!=", "FoldAsLoadDefReg", ")", "continue", ";", "if", "(", "MO", ".", "getSubReg", "(", ")", "||", "MO", ".", "isDef", "(", ")", ")", "return", "nullptr", ";", "SrcOperandIds", ".", "push_back", "(", "i", ")", ";", "}", "if", "(", "SrcOperandIds", ".", "empty", "(", ")", ")", "return", "nullptr", ";", "if", "(", "MachineInstr", "*", "FoldMI", "=", "foldMemoryOperand", "(", "MI", ",", "SrcOperandIds", ",", "*", "DefMI", ")", ")", "{", "FoldAsLoadDefReg", "=", "0", ";", "return", "FoldMI", ";", "}", "return", "nullptr", ";", "}", ""], "natrual_language": ["optimizeLoadInstr", "-", "Try", "to", "remove", "the", "load", "by", "folding", "it", "to", "a", "register", "operand", "at", "the", "use", "."], "TS_V_token": ["X86", "X86", "1", "0", "0"], "File": "X86InstrInfo", "Func": "optimizeLoadInstr", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3916, "Length": 195, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "AnalyzeReturn", "(", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "CCAssignFn", "Fn", ")", "{", "PreAnalyzeReturnForF128", "(", "Outs", ")", ";", "CCState", "::", "AnalyzeReturn", "(", "Outs", ",", "Fn", ")", ";", "OriginalArgWasF128", ".", "clear", "(", ")", ";", "}", ""], "natrual_language": ["AnalyzeReturn", "-", "Analyze", "the", "returned", "values", "of", "a", "return", ",", "incorporating", "info", "about", "the", "result", "values", "into", "this", "state", "."], "TS_V_token": ["Mips", "ISD::OutputArg"], "File": "MipsISelLowering127", "Func": "AnalyzeReturn", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3917, "Length": 38, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "rs6000_hash_constant", "(", "rtx", "k", ")", "{", "enum", "rtx_code", "code", "=", "GET_CODE", "(", "k", ")", ";", "machine_mode", "mode", "=", "GET_MODE", "(", "k", ")", ";", "unsigned", "result", "=", "(", "code", "<<", "3", ")", "^", "mode", ";", "const", "char", "*", "format", ";", "int", "flen", ",", "fidx", ";", "format", "=", "GET_RTX_FORMAT", "(", "code", ")", ";", "flen", "=", "strlen", "(", "format", ")", ";", "fidx", "=", "0", ";", "switch", "(", "code", ")", "{", "case", "LABEL_REF", ":", "return", "result", "*", "1231", "+", "(", "unsigned", ")", "INSN_UID", "(", "XEXP", "(", "k", ",", "0", ")", ")", ";", "case", "CONST_WIDE_INT", ":", "{", "int", "i", ";", "flen", "=", "CONST_WIDE_INT_NUNITS", "(", "k", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "flen", ";", "i", "++", ")", "result", "=", "result", "*", "613", "+", "CONST_WIDE_INT_ELT", "(", "k", ",", "i", ")", ";", "return", "result", ";", "}", "case", "CONST_DOUBLE", ":", "if", "(", "mode", "!=", "VOIDmode", ")", "return", "real_hash", "(", "CONST_DOUBLE_REAL_VALUE", "(", "k", ")", ")", "*", "result", ";", "flen", "=", "2", ";", "break", ";", "case", "CODE_LABEL", ":", "fidx", "=", "3", ";", "break", ";", "default", ":", "break", ";", "}", "for", "(", ";", "fidx", "<", "flen", ";", "fidx", "++", ")", "switch", "(", "format", "[", "fidx", "]", ")", "{", "case", "'s'", ":", "{", "unsigned", "i", ",", "len", ";", "const", "char", "*", "str", "=", "XSTR", "(", "k", ",", "fidx", ")", ";", "len", "=", "strlen", "(", "str", ")", ";", "result", "=", "result", "*", "613", "+", "len", ";", "for", "(", "i", "=", "0", ";", "i", "<", "len", ";", "i", "++", ")", "result", "=", "result", "*", "613", "+", "(", "unsigned", ")", "str", "[", "i", "]", ";", "break", ";", "}", "case", "'u'", ":", "case", "'e'", ":", "result", "=", "result", "*", "1231", "+", "rs6000_hash_constant", "(", "XEXP", "(", "k", ",", "fidx", ")", ")", ";", "break", ";", "case", "'i'", ":", "case", "'n'", ":", "result", "=", "result", "*", "613", "+", "(", "unsigned", ")", "XINT", "(", "k", ",", "fidx", ")", ";", "break", ";", "case", "'w'", ":", "if", "(", "sizeof", "(", "unsigned", ")", ">=", "sizeof", "(", "HOST_WIDE_INT", ")", ")", "result", "=", "result", "*", "613", "+", "(", "unsigned", ")", "XWINT", "(", "k", ",", "fidx", ")", ";", "else", "{", "size_t", "i", ";", "for", "(", "i", "=", "0", ";", "i", "<", "sizeof", "(", "HOST_WIDE_INT", ")", "/", "sizeof", "(", "unsigned", ")", ";", "i", "++", ")", "result", "=", "result", "*", "613", "+", "(", "unsigned", ")", "(", "XWINT", "(", "k", ",", "fidx", ")", ">>", "CHAR_BIT", "*", "i", ")", ";", "}", "break", ";", "case", "'0'", ":", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "return", "result", ";", "}", ""], "natrual_language": ["Hash", "functions", "for", "the", "hash", "table", "."], "TS_V_token": ["powerpcspe", "3", "0", "1231", "0", "0", "613", "2", "3", "613", "0", "613", "1231", "613", "613", "0", "613"], "File": "powerpcspe", "Func": "rs6000_hash_constant", "Target": "powerpcspe", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3918, "Length": 404, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTargetLowering", "::", "getPreIndexedAddressParts", "(", "SDNode", "*", "N", ",", "SDValue", "&", "Base", ",", "SDValue", "&", "Offset", ",", "ISD", "::", "MemIndexedMode", "&", "AM", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "if", "(", "DisablePPCPreinc", ")", "return", "false", ";", "bool", "isLoad", "=", "true", ";", "SDValue", "Ptr", ";", "EVT", "VT", ";", "unsigned", "Alignment", ";", "if", "(", "LoadSDNode", "*", "LD", "=", "dyn_cast", "<", "LoadSDNode", ">", "(", "N", ")", ")", "{", "Ptr", "=", "LD", "->", "getBasePtr", "(", ")", ";", "VT", "=", "LD", "->", "getMemoryVT", "(", ")", ";", "Alignment", "=", "LD", "->", "getAlignment", "(", ")", ";", "}", "else", "if", "(", "StoreSDNode", "*", "ST", "=", "dyn_cast", "<", "StoreSDNode", ">", "(", "N", ")", ")", "{", "Ptr", "=", "ST", "->", "getBasePtr", "(", ")", ";", "VT", "=", "ST", "->", "getMemoryVT", "(", ")", ";", "Alignment", "=", "ST", "->", "getAlignment", "(", ")", ";", "isLoad", "=", "false", ";", "}", "else", "return", "false", ";", "if", "(", "isLoad", "&&", "usePartialVectorLoads", "(", "N", ")", ")", "{", "return", "false", ";", "}", "if", "(", "VT", ".", "isVector", "(", ")", ")", "{", "if", "(", "!", "Subtarget", ".", "hasQPX", "(", ")", "||", "(", "VT", "!=", "MVT", "::", "v4f64", "&&", "VT", "!=", "MVT", "::", "v4f32", ")", ")", "{", "return", "false", ";", "}", "else", "if", "(", "SelectAddressRegRegOnly", "(", "Ptr", ",", "Offset", ",", "Base", ",", "DAG", ")", ")", "{", "AM", "=", "ISD", "::", "PRE_INC", ";", "return", "true", ";", "}", "}", "if", "(", "SelectAddressRegReg", "(", "Ptr", ",", "Base", ",", "Offset", ",", "DAG", ")", ")", "{", "bool", "Swap", "=", "false", ";", "if", "(", "isa", "<", "FrameIndexSDNode", ">", "(", "Base", ")", "||", "isa", "<", "RegisterSDNode", ">", "(", "Base", ")", ")", "Swap", "=", "true", ";", "else", "if", "(", "!", "isLoad", ")", "{", "SDValue", "Val", "=", "cast", "<", "StoreSDNode", ">", "(", "N", ")", "->", "getValue", "(", ")", ";", "if", "(", "Val", "==", "Base", "||", "Base", ".", "getNode", "(", ")", "->", "isPredecessorOf", "(", "Val", ".", "getNode", "(", ")", ")", ")", "Swap", "=", "true", ";", "}", "if", "(", "Swap", ")", "std", "::", "swap", "(", "Base", ",", "Offset", ")", ";", "AM", "=", "ISD", "::", "PRE_INC", ";", "return", "true", ";", "}", "if", "(", "VT", "!=", "MVT", "::", "i64", ")", "{", "if", "(", "!", "SelectAddressRegImm", "(", "Ptr", ",", "Offset", ",", "Base", ",", "DAG", ",", "0", ")", ")", "return", "false", ";", "}", "else", "{", "if", "(", "Alignment", "<", "4", ")", "return", "false", ";", "if", "(", "!", "SelectAddressRegImm", "(", "Ptr", ",", "Offset", ",", "Base", ",", "DAG", ",", "4", ")", ")", "return", "false", ";", "}", "if", "(", "LoadSDNode", "*", "LD", "=", "dyn_cast", "<", "LoadSDNode", ">", "(", "N", ")", ")", "{", "if", "(", "LD", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i64", "&&", "LD", "->", "getMemoryVT", "(", ")", "==", "MVT", "::", "i32", "&&", "LD", "->", "getExtensionType", "(", ")", "==", "ISD", "::", "SEXTLOAD", "&&", "isa", "<", "ConstantSDNode", ">", "(", "Offset", ")", ")", "return", "false", ";", "}", "AM", "=", "ISD", "::", "PRE_INC", ";", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "by", "value", ",", "base", "pointer", "and", "offset", "pointer", "and", "addressing", "mode", "by", "reference", "if", "the", "node", "'s", "address", "can", "be", "legally", "represented", "as", "pre-indexed", "load", "/", "store", "address", "."], "TS_V_token": ["PowerPC", "PPC", "ISD::MemIndexedMode", "PPC", "MVT::v4f64", "MVT::v4f32", "ISD::PRE_INC", "ISD::PRE_INC", "MVT::i64", "0", "4", "4", "0", "MVT::i64", "MVT::i32", "ISD::SEXTLOAD", "ISD::PRE_INC"], "File": "PPCISelLowering (2)7", "Func": "getPreIndexedAddressParts", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3919, "Length": 458, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "SparcTargetLowering", "::", "insertSSPDeclarations", "(", "Module", "&", "M", ")", "const", "{", "if", "(", "!", "Subtarget", "->", "isTargetLinux", "(", ")", ")", "return", "TargetLowering", "::", "insertSSPDeclarations", "(", "M", ")", ";", "}", ""], "natrual_language": ["Inserts", "necessary", "declarations", "for", "SSP", "(", "stack", "protection", ")", "purpose", "."], "TS_V_token": ["Sparc", "Sparc", "SP", "SP"], "File": "SparcISelLowering (2)2", "Func": "insertSSPDeclarations", "Target": "Sparc", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3920, "Length": 29, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "TargetLowering", "::", "AtomicExpansionKind", "X86TargetLowering", "::", "shouldExpandAtomicRMWInIR", "(", "AtomicRMWInst", "*", "AI", ")", "const", "{", "unsigned", "NativeWidth", "=", "Subtarget", "->", "is64Bit", "(", ")", "?", "64", ":", "32", ";", "Type", "*", "MemType", "=", "AI", "->", "getType", "(", ")", ";", "if", "(", "MemType", "->", "getPrimitiveSizeInBits", "(", ")", ">", "NativeWidth", ")", "{", "return", "needsCmpXchgNb", "(", "MemType", ")", "?", "AtomicExpansionKind", "::", "CmpXChg", ":", "AtomicExpansionKind", "::", "None", ";", "}", "AtomicRMWInst", "::", "BinOp", "Op", "=", "AI", "->", "getOperation", "(", ")", ";", "switch", "(", "Op", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown atomic operation\"", ")", ";", "case", "AtomicRMWInst", "::", "Xchg", ":", "case", "AtomicRMWInst", "::", "Add", ":", "case", "AtomicRMWInst", "::", "Sub", ":", "return", "AtomicExpansionKind", "::", "None", ";", "case", "AtomicRMWInst", "::", "Or", ":", "case", "AtomicRMWInst", "::", "And", ":", "case", "AtomicRMWInst", "::", "Xor", ":", "return", "!", "AI", "->", "use_empty", "(", ")", "?", "AtomicExpansionKind", "::", "CmpXChg", ":", "AtomicExpansionKind", "::", "None", ";", "case", "AtomicRMWInst", "::", "Nand", ":", "case", "AtomicRMWInst", "::", "Max", ":", "case", "AtomicRMWInst", "::", "Min", ":", "case", "AtomicRMWInst", "::", "UMax", ":", "case", "AtomicRMWInst", "::", "UMin", ":", "return", "AtomicExpansionKind", "::", "CmpXChg", ";", "}", "}", ""], "natrual_language": ["Returns", "how", "the", "IR-level", "AtomicExpand", "pass", "should", "expand", "the", "given", "AtomicRMW", ",", "if", "at", "all", "."], "TS_V_token": ["X86", "X86", "64", "32", "\"Unknown atomic operation\""], "File": "X86ISelLowering (2)3", "Func": "shouldExpandAtomicRMWInIR", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3921, "Length": 168, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "machine_mode", "zero_call_used_regno_mode", "(", "const", "unsigned", "int", "regno", ")", "{", "if", "(", "GENERAL_REGNO_P", "(", "regno", ")", ")", "return", "SImode", ";", "else", "if", "(", "SSE_REGNO_P", "(", "regno", ")", ")", "return", "V4SFmode", ";", "else", "if", "(", "MASK_REGNO_P", "(", "regno", ")", ")", "return", "HImode", ";", "else", "if", "(", "MMX_REGNO_P", "(", "regno", ")", ")", "return", "V2SImode", ";", "else", "gcc_unreachable", "(", ")", ";", "}", ""], "natrual_language": ["Return", "the", "machine_mode", "that", "is", "used", "to", "zero", "register", "REGNO", "."], "TS_V_token": ["i386"], "File": "i3861", "Func": "zero_call_used_regno_mode", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3922, "Length": 59, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "aarch64_add_cfa_expression", "(", "rtx_insn", "*", "insn", ",", "unsigned", "int", "reg", ",", "rtx", "base", ",", "poly_int64", "offset", ")", "{", "rtx", "mem", "=", "gen_frame_mem", "(", "DImode", ",", "plus_constant", "(", "Pmode", ",", "base", ",", "offset", ")", ")", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_EXPRESSION", ",", "gen_rtx_SET", "(", "mem", ",", "regno_reg_rtx", "[", "reg", "]", ")", ")", ";", "}", ""], "natrual_language": ["Add", "a", "REG_CFA_EXPRESSION", "note", "to", "INSN", "to", "say", "that", "register", "REG", "is", "saved", "at", "BASE", "+", "OFFSET", "."], "TS_V_token": ["aarch64"], "File": "aarch645", "Func": "aarch64_add_cfa_expression", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3923, "Length": 54, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "MVT", "getShiftAmountTy", "(", "EVT", "LHSTy", ")", "const", "{", "return", "MVT", "::", "i32", ";", "}", ""], "natrual_language": ["Returns", "the", "type", "for", "the", "shift", "amount", "of", "a", "shift", "opcode", "."], "TS_V_token": ["Cpu0", "MVT::i32"], "File": "Cpu0ISelLowering1", "Func": "getShiftAmountTy", "Target": "Cpu0", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3924, "Length": 15, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "AArch64TargetLowering", "::", "ConstraintType", "AArch64TargetLowering", "::", "getConstraintType", "(", "const", "std", "::", "string", "&", "Constraint", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "{", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "default", ":", "break", ";", "case", "'w'", ":", "return", "C_RegisterClass", ";", "case", "'I'", ":", "case", "'J'", ":", "case", "'K'", ":", "case", "'L'", ":", "case", "'M'", ":", "case", "'N'", ":", "case", "'Y'", ":", "case", "'Z'", ":", "return", "C_Other", ";", "case", "'Q'", ":", "return", "C_Memory", ";", "case", "'S'", ":", "return", "C_Other", ";", "}", "}", "assert", "(", "Constraint", "!=", "\"Ump\"", "&&", "Constraint", "!=", "\"Utf\"", "&&", "Constraint", "!=", "\"Usa\"", "&&", "Constraint", "!=", "\"Ush\"", "&&", "\"Unimplemented constraints\"", ")", ";", "return", "TargetLowering", "::", "getConstraintType", "(", "Constraint", ")", ";", "}", ""], "natrual_language": ["Given", "a", "constraint", "letter", ",", "return", "the", "type", "of", "constraint", "for", "this", "target", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "1", "0", "\"Ump\"", "\"Utf\"", "\"Usa\"", "\"Ush\"", "\"Unimplemented constraints\""], "File": "AArch64ISelLowering109", "Func": "getConstraintType", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3925, "Length": 116, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "moxie_initial_elimination_offset", "(", "int", "from", ",", "int", "to", ")", "{", "int", "ret", ";", "if", "(", "(", "from", ")", "==", "FRAME_POINTER_REGNUM", "&&", "(", "to", ")", "==", "HARD_FRAME_POINTER_REGNUM", ")", "{", "moxie_compute_frame", "(", ")", ";", "ret", "=", "-", "cfun", "->", "machine", "->", "callee_saved_reg_size", ";", "}", "else", "if", "(", "(", "from", ")", "==", "ARG_POINTER_REGNUM", "&&", "(", "to", ")", "==", "HARD_FRAME_POINTER_REGNUM", ")", "ret", "=", "0x00", ";", "else", "abort", "(", ")", ";", "return", "ret", ";", "}", ""], "natrual_language": ["Implements", "the", "macro", "INITIAL_ELIMINATION_OFFSET", ",", "return", "the", "OFFSET", "."], "TS_V_token": ["moxie", "0x00"], "File": "moxie", "Func": "moxie_initial_elimination_offset", "Target": "moxie", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3926, "Length": 70, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "restore_saved_cr", "(", "rtx", "reg", ",", "int", "using_mfcr_multiple", ",", "bool", "exit_func", ")", "{", "int", "count", "=", "0", ";", "int", "i", ";", "if", "(", "using_mfcr_multiple", ")", "{", "for", "(", "i", "=", "0", ";", "i", "<", "8", ";", "i", "++", ")", "if", "(", "save_reg_p", "(", "CR0_REGNO", "+", "i", ")", ")", "count", "++", ";", "gcc_assert", "(", "count", ")", ";", "}", "if", "(", "using_mfcr_multiple", "&&", "count", ">", "1", ")", "{", "rtx_insn", "*", "insn", ";", "rtvec", "p", ";", "int", "ndx", ";", "p", "=", "rtvec_alloc", "(", "count", ")", ";", "ndx", "=", "0", ";", "for", "(", "i", "=", "0", ";", "i", "<", "8", ";", "i", "++", ")", "if", "(", "save_reg_p", "(", "CR0_REGNO", "+", "i", ")", ")", "{", "rtvec", "r", "=", "rtvec_alloc", "(", "2", ")", ";", "RTVEC_ELT", "(", "r", ",", "0", ")", "=", "reg", ";", "RTVEC_ELT", "(", "r", ",", "1", ")", "=", "GEN_INT", "(", "1", "<<", "(", "7", "-", "i", ")", ")", ";", "RTVEC_ELT", "(", "p", ",", "ndx", ")", "=", "gen_rtx_SET", "(", "gen_rtx_REG", "(", "CCmode", ",", "CR0_REGNO", "+", "i", ")", ",", "gen_rtx_UNSPEC", "(", "CCmode", ",", "r", ",", "UNSPEC_MOVESI_TO_CR", ")", ")", ";", "ndx", "++", ";", "}", "insn", "=", "emit_insn", "(", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "p", ")", ")", ";", "gcc_assert", "(", "ndx", "==", "count", ")", ";", "if", "(", "!", "exit_func", "&&", "DEFAULT_ABI", "==", "ABI_ELFv2", "&&", "flag_shrink_wrap", ")", "{", "for", "(", "i", "=", "0", ";", "i", "<", "8", ";", "i", "++", ")", "if", "(", "save_reg_p", "(", "CR0_REGNO", "+", "i", ")", ")", "add_reg_note", "(", "insn", ",", "REG_CFA_RESTORE", ",", "gen_rtx_REG", "(", "SImode", ",", "CR0_REGNO", "+", "i", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "}", "else", "for", "(", "i", "=", "0", ";", "i", "<", "8", ";", "i", "++", ")", "if", "(", "save_reg_p", "(", "CR0_REGNO", "+", "i", ")", ")", "{", "rtx", "insn", "=", "emit_insn", "(", "gen_movsi_to_cr_one", "(", "gen_rtx_REG", "(", "CCmode", ",", "CR0_REGNO", "+", "i", ")", ",", "reg", ")", ")", ";", "if", "(", "!", "exit_func", "&&", "DEFAULT_ABI", "==", "ABI_ELFv2", "&&", "flag_shrink_wrap", ")", "{", "add_reg_note", "(", "insn", ",", "REG_CFA_RESTORE", ",", "gen_rtx_REG", "(", "SImode", ",", "CR0_REGNO", "+", "i", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "}", "if", "(", "!", "exit_func", "&&", "DEFAULT_ABI", "!=", "ABI_ELFv2", "&&", "(", "DEFAULT_ABI", "==", "ABI_V4", "||", "flag_shrink_wrap", ")", ")", "{", "rtx_insn", "*", "insn", "=", "get_last_insn", "(", ")", ";", "rtx", "cr", "=", "gen_rtx_REG", "(", "SImode", ",", "CR2_REGNO", ")", ";", "add_reg_note", "(", "insn", ",", "REG_CFA_RESTORE", ",", "cr", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "}", ""], "natrual_language": ["Reload", "CR", "from", "REG", "."], "TS_V_token": ["rs6000", "0", "0", "8", "1", "0", "0", "8", "2", "0", "1", "1", "7", "0", "8", "1", "0", "8", "1", "1"], "File": "rs60005", "Func": "restore_saved_cr", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3927, "Length": 391, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "PPCTargetLowering", "::", "getPreIndexedAddressParts", "(", "SDNode", "*", "N", ",", "SDValue", "&", "Base", ",", "SDValue", "&", "Offset", ",", "ISD", "::", "MemIndexedMode", "&", "AM", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "if", "(", "DisablePPCPreinc", ")", "return", "false", ";", "SDValue", "Ptr", ";", "EVT", "VT", ";", "if", "(", "LoadSDNode", "*", "LD", "=", "dyn_cast", "<", "LoadSDNode", ">", "(", "N", ")", ")", "{", "Ptr", "=", "LD", "->", "getBasePtr", "(", ")", ";", "VT", "=", "LD", "->", "getMemoryVT", "(", ")", ";", "}", "else", "if", "(", "StoreSDNode", "*", "ST", "=", "dyn_cast", "<", "StoreSDNode", ">", "(", "N", ")", ")", "{", "Ptr", "=", "ST", "->", "getBasePtr", "(", ")", ";", "VT", "=", "ST", "->", "getMemoryVT", "(", ")", ";", "}", "else", "return", "false", ";", "if", "(", "VT", ".", "isVector", "(", ")", ")", "return", "false", ";", "if", "(", "SelectAddressRegReg", "(", "Ptr", ",", "Offset", ",", "Base", ",", "DAG", ")", ")", "{", "AM", "=", "ISD", "::", "PRE_INC", ";", "return", "true", ";", "}", "if", "(", "VT", "!=", "MVT", "::", "i64", ")", "{", "if", "(", "!", "SelectAddressRegImm", "(", "Ptr", ",", "Offset", ",", "Base", ",", "DAG", ")", ")", "return", "false", ";", "}", "else", "{", "if", "(", "!", "SelectAddressRegImmShift", "(", "Ptr", ",", "Offset", ",", "Base", ",", "DAG", ")", ")", "return", "false", ";", "}", "if", "(", "LoadSDNode", "*", "LD", "=", "dyn_cast", "<", "LoadSDNode", ">", "(", "N", ")", ")", "{", "if", "(", "LD", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i64", "&&", "LD", "->", "getMemoryVT", "(", ")", "==", "MVT", "::", "i32", "&&", "LD", "->", "getExtensionType", "(", ")", "==", "ISD", "::", "SEXTLOAD", "&&", "isa", "<", "ConstantSDNode", ">", "(", "Offset", ")", ")", "return", "false", ";", "}", "AM", "=", "ISD", "::", "PRE_INC", ";", "return", "true", ";", "}", ""], "natrual_language": ["Returns", "true", "by", "value", ",", "base", "pointer", "and", "offset", "pointer", "and", "addressing", "mode", "by", "reference", "if", "the", "node", "'s", "address", "can", "be", "legally", "represented", "as", "pre-indexed", "load", "/", "store", "address", "."], "TS_V_token": ["PowerPC", "PPC", "ISD::MemIndexedMode", "PPC", "ISD::PRE_INC", "MVT::i64", "0", "MVT::i64", "MVT::i32", "ISD::SEXTLOAD", "ISD::PRE_INC"], "File": "PPCISelLowering105", "Func": "getPreIndexedAddressParts", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3928, "Length": 263, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "assignValueToReg", "(", "Register", "ValVReg", ",", "Register", "PhysReg", ",", "CCValAssign", "&", "VA", ")", "override", "{", "MIB", ".", "addUse", "(", "PhysReg", ",", "RegState", "::", "Implicit", ")", ";", "Register", "ExtReg", "=", "extendRegister", "(", "ValVReg", ",", "VA", ")", ";", "MIRBuilder", ".", "buildCopy", "(", "PhysReg", ",", "ExtReg", ")", ";", "}", ""], "natrual_language": ["The", "specified", "value", "has", "been", "assigned", "to", "a", "physical", "register", ",", "handle", "the", "appropriate", "COPY", "(", "either", "to", "or", "from", ")", "and", "mark", "any", "relevant", "uses/defines", "as", "needed", "."], "TS_V_token": ["AArch64"], "File": "AArch64CallLowering12", "Func": "assignValueToReg", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3929, "Length": 46, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "ARMOperand", "*", "CreateMem", "(", "unsigned", "BaseRegNum", ",", "bool", "OffsetIsReg", ",", "const", "MCExpr", "*", "Offset", ",", "int", "OffsetRegNum", ",", "bool", "OffsetRegShifted", ",", "enum", "ARM_AM", "::", "ShiftOpc", "ShiftType", ",", "const", "MCExpr", "*", "ShiftAmount", ",", "bool", "Preindexed", ",", "bool", "Postindexed", ",", "bool", "Negative", ",", "bool", "Writeback", ",", "SMLoc", "S", ",", "SMLoc", "E", ")", "{", "assert", "(", "(", "OffsetRegNum", "==", "-", "1", "||", "OffsetIsReg", ")", "&&", "\"OffsetRegNum must imply OffsetIsReg!\"", ")", ";", "assert", "(", "(", "!", "OffsetRegShifted", "||", "OffsetIsReg", ")", "&&", "\"OffsetRegShifted must imply OffsetIsReg!\"", ")", ";", "assert", "(", "(", "Offset", "||", "OffsetIsReg", ")", "&&", "\"Offset must exists unless register offset is used!\"", ")", ";", "assert", "(", "(", "!", "ShiftAmount", "||", "(", "OffsetIsReg", "&&", "OffsetRegShifted", ")", ")", "&&", "\"Cannot have shift amount without shifted register offset!\"", ")", ";", "assert", "(", "(", "!", "Offset", "||", "!", "OffsetIsReg", ")", "&&", "\"Cannot have expression offset and register offset!\"", ")", ";", "ARMOperand", "*", "Op", "=", "new", "ARMOperand", "(", "Memory", ")", ";", "Op", "->", "Mem", ".", "BaseRegNum", "=", "BaseRegNum", ";", "Op", "->", "Mem", ".", "OffsetIsReg", "=", "OffsetIsReg", ";", "if", "(", "OffsetIsReg", ")", "Op", "->", "Mem", ".", "Offset", ".", "RegNum", "=", "OffsetRegNum", ";", "else", "Op", "->", "Mem", ".", "Offset", ".", "Value", "=", "Offset", ";", "Op", "->", "Mem", ".", "OffsetRegShifted", "=", "OffsetRegShifted", ";", "Op", "->", "Mem", ".", "ShiftType", "=", "ShiftType", ";", "Op", "->", "Mem", ".", "ShiftAmount", "=", "ShiftAmount", ";", "Op", "->", "Mem", ".", "Preindexed", "=", "Preindexed", ";", "Op", "->", "Mem", ".", "Postindexed", "=", "Postindexed", ";", "Op", "->", "Mem", ".", "Negative", "=", "Negative", ";", "Op", "->", "Mem", ".", "Writeback", "=", "Writeback", ";", "Op", "->", "StartLoc", "=", "S", ";", "Op", "->", "EndLoc", "=", "E", ";", "return", "Op", ";", "}", ""], "natrual_language": ["Create", "a", "generalized", "memory", "operand", "."], "TS_V_token": ["ARM", "ARM", "ARM_AM::ShiftOpc", "1", "\"OffsetRegNum must imply OffsetIsReg!\"", "\"OffsetRegShifted must imply OffsetIsReg!\"", "\"Offset must exists unless register offset is used!\"", "\"Cannot have shift amount without shifted register offset!\"", "\"Cannot have expression offset and register offset!\"", "ARM", "ARM"], "File": "ARMAsmParser35", "Func": "CreateMem", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3930, "Length": 241, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "virtual", "void", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MBBI", ",", "unsigned", "DestReg", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "loadRegFromStack", "(", "MBB", ",", "MBBI", ",", "DestReg", ",", "FrameIndex", ",", "RC", ",", "TRI", ",", "0", ")", ";", "}", ""], "natrual_language": ["Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "."], "TS_V_token": ["Mips", "0"], "File": "MipsInstrInfo45", "Func": "loadRegFromStackSlot", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3931, "Length": 49, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineBasicBlock", "*", "AArch64TargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MachineInstr", "&", "MI", ",", "MachineBasicBlock", "*", "BB", ")", "const", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "MI", ".", "dump", "(", ")", ";", "llvm_unreachable", "(", "\"Unexpected instruction for custom inserter!\"", ")", ";", "case", "AArch64", "::", "F128CSEL", ":", "return", "EmitF128CSEL", "(", "MI", ",", "BB", ")", ";", "case", "TargetOpcode", "::", "STACKMAP", ":", "case", "TargetOpcode", "::", "PATCHPOINT", ":", "return", "emitPatchPoint", "(", "MI", ",", "BB", ")", ";", "}", "}", ""], "natrual_language": ["This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'usesCustomInserter", "'", "flag", "."], "TS_V_token": ["AArch64", "AArch64", "\"Unexpected instruction for custom inserter!\"", "AArch64::F128CSEL"], "File": "AArch64ISelLowering (2)", "Func": "EmitInstrWithCustomInserter", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3932, "Length": 71, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "output_deferred_profile_counters", "(", "void", ")", "{", "unsigned", "int", "i", ";", "int", "align", ",", "n", ";", "if", "(", "funcdef_nos", ".", "is_empty", "(", ")", ")", "return", ";", "switch_to_section", "(", "data_section", ")", ";", "align", "=", "MIN", "(", "BIGGEST_ALIGNMENT", ",", "LONG_TYPE_SIZE", ")", ";", "ASM_OUTPUT_ALIGN", "(", "asm_out_file", ",", "floor_log2", "(", "align", "/", "BITS_PER_UNIT", ")", ")", ";", "for", "(", "i", "=", "0", ";", "funcdef_nos", ".", "iterate", "(", "i", ",", "&", "n", ")", ";", "i", "++", ")", "{", "targetm", ".", "asm_out", ".", "internal_label", "(", "asm_out_file", ",", "\"LP\"", ",", "n", ")", ";", "assemble_integer", "(", "const0_rtx", ",", "LONG_TYPE_SIZE", "/", "BITS_PER_UNIT", ",", "align", ",", "1", ")", ";", "}", "funcdef_nos", ".", "release", "(", ")", ";", "}", ""], "natrual_language": ["Output", "deferred", "profile", "counters", "."], "TS_V_token": ["pa", "0", "\"LP\"", "1"], "File": "pa", "Func": "output_deferred_profile_counters", "Target": "pa", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3933, "Length": 106, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "mep_repeat_loop_p", "(", "struct", "mep_doloop", "*", "loop", ")", "{", "struct", "mep_doloop_end", "*", "end", ";", "rtx", "fallthrough", ";", "if", "(", "loop", "->", "begin", "==", "0", "||", "loop", "->", "end", "==", "0", "||", "loop", "->", "begin", "->", "next", "!=", "0", ")", "return", "false", ";", "if", "(", "prev_real_insn", "(", "loop", "->", "end", "->", "label", ")", "!=", "loop", "->", "begin", "->", "insn", ")", "return", "false", ";", "fallthrough", "=", "loop", "->", "end", "->", "fallthrough", ";", "for", "(", "end", "=", "loop", "->", "end", "->", "next", ";", "end", "!=", "0", ";", "end", "=", "end", "->", "next", ")", "if", "(", "end", "->", "label", "!=", "loop", "->", "end", "->", "label", "||", "!", "simplejump_p", "(", "end", "->", "fallthrough", ")", "||", "next_real_insn", "(", "JUMP_LABEL", "(", "end", "->", "fallthrough", ")", ")", "!=", "fallthrough", ")", "return", "false", ";", "return", "true", ";", "}", ""], "natrual_language": ["Return", "true", "if", "LOOP", "can", "be", "converted", "into", "repeat/repeat_end", "form", "(", "that", "is", ",", "if", "it", "matches", "cases", "(", "1", ")", "or", "(", "2", ")", "above", ")", "."], "TS_V_token": ["mep", "0", "0", "0", "0"], "File": "mep", "Func": "mep_repeat_loop_p", "Target": "mep", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3934, "Length": 130, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "ARMTargetLowering", "::", "AdjustInstrPostInstrSelection", "(", "MachineInstr", "*", "MI", ",", "SDNode", "*", "Node", ")", "const", "{", "const", "MCInstrDesc", "*", "MCID", "=", "&", "MI", "->", "getDesc", "(", ")", ";", "unsigned", "NewOpc", "=", "convertAddSubFlagsOpcode", "(", "MI", "->", "getOpcode", "(", ")", ")", ";", "if", "(", "NewOpc", ")", "{", "const", "ARMBaseInstrInfo", "*", "TII", "=", "static_cast", "<", "const", "ARMBaseInstrInfo", "*", ">", "(", "getTargetMachine", "(", ")", ".", "getSubtargetImpl", "(", ")", "->", "getInstrInfo", "(", ")", ")", ";", "MCID", "=", "&", "TII", "->", "get", "(", "NewOpc", ")", ";", "assert", "(", "MCID", "->", "getNumOperands", "(", ")", "==", "MI", "->", "getDesc", "(", ")", ".", "getNumOperands", "(", ")", "+", "1", "&&", "\"converted opcode should be the same except for cc_out\"", ")", ";", "MI", "->", "setDesc", "(", "*", "MCID", ")", ";", "MI", "->", "addOperand", "(", "MachineOperand", "::", "CreateReg", "(", "0", ",", "true", ")", ")", ";", "}", "unsigned", "ccOutIdx", "=", "MCID", "->", "getNumOperands", "(", ")", "-", "1", ";", "if", "(", "!", "MI", "->", "hasOptionalDef", "(", ")", "||", "!", "MCID", "->", "OpInfo", "[", "ccOutIdx", "]", ".", "isOptionalDef", "(", ")", ")", "{", "assert", "(", "!", "NewOpc", "&&", "\"Optional cc_out operand required\"", ")", ";", "return", ";", "}", "bool", "definesCPSR", "=", "false", ";", "bool", "deadCPSR", "=", "false", ";", "for", "(", "unsigned", "i", "=", "MCID", "->", "getNumOperands", "(", ")", ",", "e", "=", "MI", "->", "getNumOperands", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "i", ")", ";", "if", "(", "MO", ".", "isReg", "(", ")", "&&", "MO", ".", "isDef", "(", ")", "&&", "MO", ".", "getReg", "(", ")", "==", "ARM", "::", "CPSR", ")", "{", "definesCPSR", "=", "true", ";", "if", "(", "MO", ".", "isDead", "(", ")", ")", "deadCPSR", "=", "true", ";", "MI", "->", "RemoveOperand", "(", "i", ")", ";", "break", ";", "}", "}", "if", "(", "!", "definesCPSR", ")", "{", "assert", "(", "!", "NewOpc", "&&", "\"Optional cc_out operand required\"", ")", ";", "return", ";", "}", "assert", "(", "deadCPSR", "==", "!", "Node", "->", "hasAnyUseOfValue", "(", "1", ")", "&&", "\"inconsistent dead flag\"", ")", ";", "if", "(", "deadCPSR", ")", "{", "assert", "(", "!", "MI", "->", "getOperand", "(", "ccOutIdx", ")", ".", "getReg", "(", ")", "&&", "\"expect uninitialized optional cc_out operand\"", ")", ";", "return", ";", "}", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "ccOutIdx", ")", ";", "MO", ".", "setReg", "(", "ARM", "::", "CPSR", ")", ";", "MO", ".", "setIsDef", "(", "true", ")", ";", "}", ""], "natrual_language": ["This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'hasPostISelHook", "'", "flag", "."], "TS_V_token": ["ARM", "ARM", "ARM", "ARM", "1", "\"converted opcode should be the same except for cc_out\"", "0", "1", "\"Optional cc_out operand required\"", "ARM::CPSR", "\"Optional cc_out operand required\"", "1", "\"inconsistent dead flag\"", "\"expect uninitialized optional cc_out operand\"", "ARM::CPSR"], "File": "ARMISelLowering133", "Func": "AdjustInstrPostInstrSelection", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3935, "Length": 355, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "bool", "csky_return_in_memory", "(", "const_tree", "type", ",", "const_tree", "fntype", "ATTRIBUTE_UNUSED", ")", "{", "const", "HOST_WIDE_INT", "size", "=", "int_size_in_bytes", "(", "type", ")", ";", "return", "(", "size", "==", "-", "1", "||", "size", ">", "2", "*", "UNITS_PER_WORD", ")", ";", "}", ""], "natrual_language": ["Implement", "TARGET_RETURN_IN_MEMORY", "to", "decide", "whether", "TYPE", "should", "be", "returned", "in", "memory", "(", "true", ")", "or", "in", "a", "register", "(", "false", ")", ".", "FNTYPE", "is", "the", "type", "of", "the", "function", "making", "the", "call", "."], "TS_V_token": ["csky", "1", "2"], "File": "csky", "Func": "csky_return_in_memory", "Target": "csky", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3936, "Length": 36, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "MipsMCCodeEmitter", "::", "getBranchTarget21OpValue", "(", "const", "MCInst", "&", "MI", ",", "unsigned", "OpNo", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "const", "MCOperand", "&", "MO", "=", "MI", ".", "getOperand", "(", "OpNo", ")", ";", "if", "(", "MO", ".", "isImm", "(", ")", ")", "return", "MO", ".", "getImm", "(", ")", ">>", "2", ";", "assert", "(", "MO", ".", "isExpr", "(", ")", "&&", "\"getBranchTarget21OpValue expects only expressions or immediates\"", ")", ";", "const", "MCExpr", "*", "Expr", "=", "MO", ".", "getExpr", "(", ")", ";", "Fixups", ".", "push_back", "(", "MCFixup", "::", "Create", "(", "0", ",", "Expr", ",", "MCFixupKind", "(", "Mips", "::", "fixup_MIPS_PC21_S2", ")", ")", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["getBranchTarget21OpValue", "-", "Return", "binary", "encoding", "of", "the", "branch", "target", "operand", "."], "TS_V_token": ["Mips", "Mips", "2", "\"getBranchTarget21OpValue expects only expressions or immediates\"", "0", "Mips::fixup_MIPS_PC21_S2", "0"], "File": "MipsMCCodeEmitter2", "Func": "getBranchTarget21OpValue", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3937, "Length": 103, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "Register", "PPCTargetLowering", "::", "getRegisterByName", "(", "const", "char", "*", "RegName", ",", "EVT", "VT", ",", "const", "MachineFunction", "&", "MF", ")", "const", "{", "bool", "isPPC64", "=", "Subtarget", ".", "isPPC64", "(", ")", ";", "bool", "IsDarwinABI", "=", "Subtarget", ".", "isDarwinABI", "(", ")", ";", "if", "(", "(", "isPPC64", "&&", "VT", "!=", "MVT", "::", "i64", "&&", "VT", "!=", "MVT", "::", "i32", ")", "||", "(", "!", "isPPC64", "&&", "VT", "!=", "MVT", "::", "i32", ")", ")", "report_fatal_error", "(", "\"Invalid register global variable type\"", ")", ";", "bool", "is64Bit", "=", "isPPC64", "&&", "VT", "==", "MVT", "::", "i64", ";", "Register", "Reg", "=", "StringSwitch", "<", "Register", ">", "(", "RegName", ")", ".", "Case", "(", "\"r1\"", ",", "is64Bit", "?", "PPC", "::", "X1", ":", "PPC", "::", "R1", ")", ".", "Case", "(", "\"r2\"", ",", "(", "IsDarwinABI", "||", "isPPC64", ")", "?", "Register", "(", ")", ":", "PPC", "::", "R2", ")", ".", "Case", "(", "\"r13\"", ",", "(", "!", "isPPC64", "&&", "IsDarwinABI", ")", "?", "Register", "(", ")", ":", "(", "is64Bit", "?", "PPC", "::", "X13", ":", "PPC", "::", "R13", ")", ")", ".", "Default", "(", "Register", "(", ")", ")", ";", "if", "(", "Reg", ")", "return", "Reg", ";", "report_fatal_error", "(", "\"Invalid register name global variable\"", ")", ";", "}", ""], "natrual_language": ["Return", "the", "register", "ID", "of", "the", "name", "passed", "in", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "PPC", "MVT::i64", "MVT::i32", "PPC", "MVT::i32", "\"Invalid register global variable type\"", "PPC", "MVT::i64", "\"r1\"", "PPC::X1", "PPC::R1", "\"r2\"", "PPC", "PPC::R2", "\"r13\"", "PPC", "PPC::X13", "PPC::R13", "\"Invalid register name global variable\""], "File": "PPCISelLowering103", "Func": "getRegisterByName", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3938, "Length": 176, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "toc_relative_expr_p", "(", "const_rtx", "op", ",", "bool", "strict", ")", "{", "if", "(", "!", "TARGET_TOC", ")", "return", "false", ";", "if", "(", "TARGET_CMODEL", "!=", "CMODEL_SMALL", ")", "{", "if", "(", "GET_CODE", "(", "op", ")", "==", "LO_SUM", "&&", "REG_P", "(", "XEXP", "(", "op", ",", "0", ")", ")", "&&", "INT_REG_OK_FOR_BASE_P", "(", "XEXP", "(", "op", ",", "0", ")", ",", "strict", ")", ")", "op", "=", "XEXP", "(", "op", ",", "1", ")", ";", "else", "if", "(", "strict", ")", "return", "false", ";", "}", "tocrel_base", "=", "op", ";", "tocrel_offset", "=", "const0_rtx", ";", "if", "(", "GET_CODE", "(", "op", ")", "==", "PLUS", "&&", "add_cint_operand", "(", "XEXP", "(", "op", ",", "1", ")", ",", "GET_MODE", "(", "op", ")", ")", ")", "{", "tocrel_base", "=", "XEXP", "(", "op", ",", "0", ")", ";", "tocrel_offset", "=", "XEXP", "(", "op", ",", "1", ")", ";", "}", "return", "(", "GET_CODE", "(", "tocrel_base", ")", "==", "UNSPEC", "&&", "XINT", "(", "tocrel_base", ",", "1", ")", "==", "UNSPEC_TOCREL", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "OP", "is", "a", "toc", "pointer", "relative", "address", "(", "the", "output", "of", "create_TOC_reference", ")", ".", "If", "STRICT", ",", "do", "not", "match", "high", "part", "or", "non-split", "-mcmodel=large/medium", "toc", "pointer", "relative", "addresses", "."], "TS_V_token": ["rs6000", "0", "0", "1", "1", "0", "1", "1"], "File": "rs60004", "Func": "toc_relative_expr_p", "Target": "rs6000", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3939, "Length": 146, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", "\"ARM Assembly / Object Emitter\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["ARM", "\"ARM Assembly / Object Emitter\""], "File": "ARMAsmPrinter1", "Func": "getPassName", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3940, "Length": 13, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"VE Assembly Printer\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["VE", "\"VE Assembly Printer\""], "File": "VEAsmPrinter", "Func": "getPassName", "Target": "VE", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3941, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "AArch64MIPeepholeOpt", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "TII", "=", "static_cast", "<", "const", "AArch64InstrInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "static_cast", "<", "const", "AArch64RegisterInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ")", ";", "MLI", "=", "&", "getAnalysis", "<", "MachineLoopInfo", ">", "(", ")", ";", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "assert", "(", "MRI", "->", "isSSA", "(", ")", "&&", "\"Expected to be run on SSA form!\"", ")", ";", "bool", "Changed", "=", "false", ";", "SmallSetVector", "<", "MachineInstr", "*", ",", "8", ">", "ToBeRemoved", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "{", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "AArch64", "::", "ANDWrr", ":", "Changed", "=", "visitAND", "<", "uint32_t", ">", "(", "AArch64", "::", "ANDWri", ",", "MI", ",", "ToBeRemoved", ")", ";", "break", ";", "case", "AArch64", "::", "ANDXrr", ":", "Changed", "=", "visitAND", "<", "uint64_t", ">", "(", "AArch64", "::", "ANDXri", ",", "MI", ",", "ToBeRemoved", ")", ";", "break", ";", "case", "AArch64", "::", "ORRWrs", ":", "Changed", "=", "visitORR", "(", "MI", ",", "ToBeRemoved", ")", ";", "break", ";", "case", "AArch64", "::", "ADDWrr", ":", "Changed", "=", "visitADDSUB", "<", "uint32_t", ">", "(", "AArch64", "::", "ADDWri", ",", "AArch64", "::", "SUBWri", ",", "MI", ",", "ToBeRemoved", ")", ";", "break", ";", "case", "AArch64", "::", "SUBWrr", ":", "Changed", "=", "visitADDSUB", "<", "uint32_t", ">", "(", "AArch64", "::", "SUBWri", ",", "AArch64", "::", "ADDWri", ",", "MI", ",", "ToBeRemoved", ")", ";", "break", ";", "case", "AArch64", "::", "ADDXrr", ":", "Changed", "=", "visitADDSUB", "<", "uint64_t", ">", "(", "AArch64", "::", "ADDXri", ",", "AArch64", "::", "SUBXri", ",", "MI", ",", "ToBeRemoved", ")", ";", "break", ";", "case", "AArch64", "::", "SUBXrr", ":", "Changed", "=", "visitADDSUB", "<", "uint64_t", ">", "(", "AArch64", "::", "SUBXri", ",", "AArch64", "::", "ADDXri", ",", "MI", ",", "ToBeRemoved", ")", ";", "break", ";", "}", "}", "}", "for", "(", "MachineInstr", "*", "MI", ":", "ToBeRemoved", ")", "MI", "->", "eraseFromParent", "(", ")", ";", "return", "Changed", ";", "}", ""], "natrual_language": ["runOnMachineFunction", "-", "Emit", "the", "function", "body", "."], "TS_V_token": ["AArch64", "AArch64", "AArch64", "AArch64", "\"Expected to be run on SSA form!\"", "8", "AArch64::ANDWrr", "AArch64::ANDWri", "AArch64::ANDXrr", "AArch64::ANDXri", "AArch64::ORRWrs", "AArch64::ADDWrr", "AArch64::ADDWri", "AArch64::SUBWri", "AArch64::SUBWrr", "AArch64::SUBWri", "AArch64::ADDWri", "AArch64::ADDXrr", "AArch64::ADDXri", "AArch64::SUBXri", "AArch64::SUBXrr", "AArch64::SUBXri", "AArch64::ADDXri"], "File": "AArch64MIPeepholeOpt3", "Func": "runOnMachineFunction", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3942, "Length": 330, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "X86PassConfig", "::", "addInstSelector", "(", ")", "{", "addPass", "(", "createX86ISelDag", "(", "getX86TargetMachine", "(", ")", ",", "getOptLevel", "(", ")", ")", ")", ";", "if", "(", "getX86Subtarget", "(", ")", ".", "isTargetELF", "(", ")", "&&", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "addPass", "(", "createCleanupLocalDynamicTLSPass", "(", ")", ")", ";", "addPass", "(", "createX86GlobalBaseRegPass", "(", ")", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["addInstSelector", "-", "This", "method", "should", "install", "an", "instruction", "selector", "pass", ",", "which", "converts", "from", "LLVM", "code", "to", "machine", "instructions", "."], "TS_V_token": ["X86", "X86", "X86", "X86", "X86", "X86"], "File": "X86TargetMachine", "Func": "addInstSelector", "Target": "X86", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3943, "Length": 57, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "void", "assignValueToAddress", "(", "Register", "ValVReg", ",", "Register", "Addr", ",", "uint64_t", "Size", ",", "MachinePointerInfo", "&", "MPO", ",", "CCValAssign", "&", "VA", ")", "override", "{", "assert", "(", "(", "Size", "==", "1", "||", "Size", "==", "2", "||", "Size", "==", "4", "||", "Size", "==", "8", ")", "&&", "\"Unsupported size\"", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "SExt", "||", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "ZExt", ")", "{", "Size", "=", "4", ";", "assert", "(", "MRI", ".", "getType", "(", "ValVReg", ")", ".", "isScalar", "(", ")", "&&", "\"Only scalars supported atm\"", ")", ";", "auto", "LoadVReg", "=", "buildLoad", "(", "LLT", "::", "scalar", "(", "32", ")", ",", "Addr", ",", "Size", ",", "MPO", ")", ";", "MIRBuilder", ".", "buildTrunc", "(", "ValVReg", ",", "LoadVReg", ")", ";", "}", "else", "{", "buildLoad", "(", "ValVReg", ",", "Addr", ",", "Size", ",", "MPO", ")", ";", "}", "}", ""], "natrual_language": ["An", "overload", "which", "takes", "an", "ArgInfo", "if", "additional", "information", "about", "the", "arg", "is", "needed", "."], "TS_V_token": ["ARM", "1", "2", "4", "8", "\"Unsupported size\"", "4", "\"Only scalars supported atm\"", "32"], "File": "ARMCallLowering", "Func": "assignValueToAddress", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3944, "Length": 132, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "FastISel", "*", "ARM", "::", "createFastISel", "(", "FunctionLoweringInfo", "&", "funcInfo", ",", "const", "TargetLibraryInfo", "*", "libInfo", ")", "{", "const", "TargetMachine", "&", "TM", "=", "funcInfo", ".", "MF", "->", "getTarget", "(", ")", ";", "const", "ARMSubtarget", "*", "Subtarget", "=", "&", "TM", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "if", "(", "Subtarget", "->", "isTargetIOS", "(", ")", "&&", "!", "Subtarget", "->", "isThumb1Only", "(", ")", ")", "return", "new", "ARMFastISel", "(", "funcInfo", ",", "libInfo", ")", ";", "return", "0", ";", "}", ""], "natrual_language": ["This", "method", "returns", "a", "target", "specific", "FastISel", "object", ",", "or", "null", "if", "the", "target", "does", "not", "support", "``", "fast", "''", "ISel", "."], "TS_V_token": ["ARM", "ARM::createFastISel", "ARM", "ARM", "ARM", "0"], "File": "ARMFastISel15", "Func": "createFastISel", "Target": "ARM", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3945, "Length": 72, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "int", "nds32_register_move_cost", "(", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "reg_class_t", "from", ",", "reg_class_t", "to", ")", "{", "if", "(", "from", "==", "HIGH_REGS", "||", "to", "==", "HIGH_REGS", ")", "return", "6", ";", "return", "2", ";", "}", ""], "natrual_language": ["Describing", "Relative", "Costs", "of", "Operations", "."], "TS_V_token": ["nds32", "6", "2"], "File": "nds322", "Func": "nds32_register_move_cost", "Target": "nds32", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3946, "Length": 32, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "int", "ix86_data_alignment", "(", "tree", "type", ",", "int", "align", ")", "{", "if", "(", "AGGREGATE_TYPE_P", "(", "type", ")", "&&", "TYPE_SIZE", "(", "type", ")", "&&", "TREE_CODE", "(", "TYPE_SIZE", "(", "type", ")", ")", "==", "INTEGER_CST", "&&", "(", "TREE_INT_CST_LOW", "(", "TYPE_SIZE", "(", "type", ")", ")", ">=", "256", "||", "TREE_INT_CST_HIGH", "(", "TYPE_SIZE", "(", "type", ")", ")", ")", "&&", "align", "<", "256", ")", "return", "256", ";", "if", "(", "TARGET_64BIT", ")", "{", "if", "(", "AGGREGATE_TYPE_P", "(", "type", ")", "&&", "TYPE_SIZE", "(", "type", ")", "&&", "TREE_CODE", "(", "TYPE_SIZE", "(", "type", ")", ")", "==", "INTEGER_CST", "&&", "(", "TREE_INT_CST_LOW", "(", "TYPE_SIZE", "(", "type", ")", ")", ">=", "128", "||", "TREE_INT_CST_HIGH", "(", "TYPE_SIZE", "(", "type", ")", ")", ")", "&&", "align", "<", "128", ")", "return", "128", ";", "}", "if", "(", "TREE_CODE", "(", "type", ")", "==", "ARRAY_TYPE", ")", "{", "if", "(", "TYPE_MODE", "(", "TREE_TYPE", "(", "type", ")", ")", "==", "DFmode", "&&", "align", "<", "64", ")", "return", "64", ";", "if", "(", "ALIGN_MODE_128", "(", "TYPE_MODE", "(", "TREE_TYPE", "(", "type", ")", ")", ")", "&&", "align", "<", "128", ")", "return", "128", ";", "}", "else", "if", "(", "TREE_CODE", "(", "type", ")", "==", "COMPLEX_TYPE", ")", "{", "if", "(", "TYPE_MODE", "(", "type", ")", "==", "DCmode", "&&", "align", "<", "64", ")", "return", "64", ";", "if", "(", "TYPE_MODE", "(", "type", ")", "==", "XCmode", "&&", "align", "<", "128", ")", "return", "128", ";", "}", "else", "if", "(", "(", "TREE_CODE", "(", "type", ")", "==", "RECORD_TYPE", "||", "TREE_CODE", "(", "type", ")", "==", "UNION_TYPE", "||", "TREE_CODE", "(", "type", ")", "==", "QUAL_UNION_TYPE", ")", "&&", "TYPE_FIELDS", "(", "type", ")", ")", "{", "if", "(", "DECL_MODE", "(", "TYPE_FIELDS", "(", "type", ")", ")", "==", "DFmode", "&&", "align", "<", "64", ")", "return", "64", ";", "if", "(", "ALIGN_MODE_128", "(", "DECL_MODE", "(", "TYPE_FIELDS", "(", "type", ")", ")", ")", "&&", "align", "<", "128", ")", "return", "128", ";", "}", "else", "if", "(", "TREE_CODE", "(", "type", ")", "==", "REAL_TYPE", "||", "TREE_CODE", "(", "type", ")", "==", "VECTOR_TYPE", "||", "TREE_CODE", "(", "type", ")", "==", "INTEGER_TYPE", ")", "{", "if", "(", "TYPE_MODE", "(", "type", ")", "==", "DFmode", "&&", "align", "<", "64", ")", "return", "64", ";", "if", "(", "ALIGN_MODE_128", "(", "TYPE_MODE", "(", "type", ")", ")", "&&", "align", "<", "128", ")", "return", "128", ";", "}", "return", "align", ";", "}", ""], "natrual_language": ["Compute", "the", "alignment", "for", "a", "static", "variable", ".", "TYPE", "is", "the", "data", "type", ",", "and", "ALIGN", "is", "the", "alignment", "that", "the", "object", "would", "ordinarily", "have", ".", "The", "value", "of", "this", "function", "is", "used", "instead", "of", "that", "alignment", "to", "align", "the", "object", "."], "TS_V_token": ["i386", "256", "256", "256", "128", "128", "128", "64", "64", "128", "128", "64", "64", "128", "128", "64", "64", "128", "128", "64", "64", "128", "128"], "File": "i3863", "Func": "ix86_data_alignment", "Target": "i386", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3947, "Length": 343, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "MachineInstr", "*", "AArch64InstrInfo", "::", "foldMemoryOperandImpl", "(", "MachineFunction", "&", "MF", ",", "MachineInstr", "*", "MI", ",", "ArrayRef", "<", "unsigned", ">", "Ops", ",", "MachineBasicBlock", "::", "iterator", "InsertPt", ",", "int", "FrameIndex", ",", "LiveIntervals", "*", "LIS", ")", "const", "{", "if", "(", "MI", "->", "isCopy", "(", ")", ")", "{", "unsigned", "DstReg", "=", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "unsigned", "SrcReg", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "if", "(", "SrcReg", "==", "AArch64", "::", "SP", "&&", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "DstReg", ")", ")", "{", "MF", ".", "getRegInfo", "(", ")", ".", "constrainRegClass", "(", "DstReg", ",", "&", "AArch64", "::", "GPR64RegClass", ")", ";", "return", "nullptr", ";", "}", "if", "(", "DstReg", "==", "AArch64", "::", "SP", "&&", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "SrcReg", ")", ")", "{", "MF", ".", "getRegInfo", "(", ")", ".", "constrainRegClass", "(", "SrcReg", ",", "&", "AArch64", "::", "GPR64RegClass", ")", ";", "return", "nullptr", ";", "}", "}", "return", "nullptr", ";", "}", ""], "natrual_language": ["foldMemoryOperand", "-", "Same", "as", "the", "previous", "version", "except", "it", "allows", "folding", "of", "any", "load", "and", "store", "from", "/", "to", "any", "address", ",", "not", "just", "from", "a", "specific", "stack", "slot", "."], "TS_V_token": ["AArch64", "AArch64", "0", "1", "AArch64::SP", "AArch64::GPR64RegClass", "AArch64::SP", "AArch64::GPR64RegClass"], "File": "AArch64InstrInfo110", "Func": "foldMemoryOperandImpl", "Target": "AArch64", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3948, "Length": 148, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "unsigned", "PPCFastISel", "::", "fastEmitInst_ri", "(", "unsigned", "MachineInstOpcode", ",", "const", "TargetRegisterClass", "*", "RC", ",", "unsigned", "Op0", ",", "bool", "Op0IsKill", ",", "uint64_t", "Imm", ")", "{", "if", "(", "MachineInstOpcode", "==", "PPC", "::", "ADDI", ")", "MRI", ".", "setRegClass", "(", "Op0", ",", "&", "PPC", "::", "GPRC_and_GPRC_NOR0RegClass", ")", ";", "else", "if", "(", "MachineInstOpcode", "==", "PPC", "::", "ADDI8", ")", "MRI", ".", "setRegClass", "(", "Op0", ",", "&", "PPC", "::", "G8RC_and_G8RC_NOX0RegClass", ")", ";", "const", "TargetRegisterClass", "*", "UseRC", "=", "(", "RC", "==", "&", "PPC", "::", "GPRCRegClass", "?", "&", "PPC", "::", "GPRC_and_GPRC_NOR0RegClass", ":", "(", "RC", "==", "&", "PPC", "::", "G8RCRegClass", "?", "&", "PPC", "::", "G8RC_and_G8RC_NOX0RegClass", ":", "RC", ")", ")", ";", "return", "FastISel", "::", "fastEmitInst_ri", "(", "MachineInstOpcode", ",", "UseRC", ",", "Op0", ",", "Op0IsKill", ",", "Imm", ")", ";", "}", ""], "natrual_language": ["Emit", "a", "MachineInstr", "with", "a", "register", "operand", ",", "an", "immediate", ",", "and", "a", "result", "register", "in", "the", "given", "register", "class", "."], "TS_V_token": ["PowerPC", "PPC", "PPC::ADDI", "PPC::GPRC_and_GPRC_NOR0RegClass", "PPC::ADDI8", "PPC::G8RC_and_G8RC_NOX0RegClass", "PPC::GPRCRegClass", "PPC::GPRC_and_GPRC_NOR0RegClass", "PPC::G8RCRegClass", "PPC::G8RC_and_G8RC_NOX0RegClass"], "File": "PPCFastISel (2)", "Func": "fastEmitInst_ri", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3949, "Length": 116, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "rtx", "function_arg_record_value", "(", "const_tree", "type", ",", "machine_mode", "mode", ",", "int", "slotno", ",", "bool", "named", ",", "int", "regbase", ")", "{", "const", "int", "size", "=", "int_size_in_bytes", "(", "type", ")", ";", "assign_data_t", "data", ";", "int", "nregs", ";", "data", ".", "slotno", "=", "slotno", ";", "data", ".", "regbase", "=", "regbase", ";", "data", ".", "nregs", "=", "0", ";", "data", ".", "intoffset", "=", "0", ";", "data", ".", "stack", "=", "false", ";", "traverse_record_type", "<", "assign_data_t", ",", "count_registers", ">", "(", "type", ",", "named", ",", "&", "data", ")", ";", "if", "(", "compute_int_layout", "(", "size", "*", "BITS_PER_UNIT", ",", "&", "data", ",", "&", "nregs", ")", ")", "data", ".", "nregs", "+=", "nregs", ";", "nregs", "=", "data", ".", "nregs", ";", "if", "(", "nregs", "==", "0", ")", "{", "if", "(", "size", "<=", "0", ")", "{", "return", "gen_rtx_REG", "(", "mode", ",", "regbase", ")", ";", "}", "nregs", "=", "CEIL_NWORDS", "(", "size", ")", ";", "if", "(", "nregs", "+", "slotno", ">", "SPARC_INT_ARG_MAX", ")", "nregs", "=", "SPARC_INT_ARG_MAX", "-", "slotno", ";", "}", "gcc_assert", "(", "nregs", ">", "0", ")", ";", "data", ".", "ret", "=", "gen_rtx_PARALLEL", "(", "mode", ",", "rtvec_alloc", "(", "data", ".", "stack", "+", "nregs", ")", ")", ";", "if", "(", "data", ".", "stack", ")", "XVECEXP", "(", "data", ".", "ret", ",", "0", ",", "0", ")", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "NULL_RTX", ",", "const0_rtx", ")", ";", "data", ".", "nregs", "=", "0", ";", "data", ".", "intoffset", "=", "0", ";", "traverse_record_type", "<", "assign_data_t", ",", "assign_registers", ">", "(", "type", ",", "named", ",", "&", "data", ")", ";", "assign_int_registers", "(", "size", "*", "BITS_PER_UNIT", ",", "&", "data", ")", ";", "gcc_assert", "(", "data", ".", "nregs", "==", "nregs", ")", ";", "return", "data", ".", "ret", ";", "}", ""], "natrual_language": ["Used", "by", "function_arg", "and", "sparc_function_value_1", "to", "implement", "the", "complex", "conventions", "of", "the", "64-bit", "ABI", "for", "passing", "and", "returning", "structures", ".", "Return", "an", "expression", "valid", "as", "a", "return", "value", "for", "the", "FUNCTION_ARG", "and", "TARGET_FUNCTION_VALUE", ".", "TYPE", "is", "the", "data", "type", "of", "the", "argument", "(", "as", "a", "tree", ")", ".", "This", "is", "null", "for", "libcalls", "where", "that", "information", "may", "not", "be", "available", ".", "MODE", "is", "the", "argument", "'s", "machine", "mode", ".", "SLOTNO", "is", "the", "index", "number", "of", "the", "argument", "'s", "slot", "in", "the", "parameter", "array", ".", "NAMED", "is", "true", "if", "this", "argument", "is", "a", "named", "parameter", "(", "otherwise", "it", "is", "an", "extra", "parameter", "matching", "an", "ellipsis", ")", ".", "REGBASE", "is", "the", "regno", "of", "the", "base", "register", "for", "the", "parameter", "array", "."], "TS_V_token": ["sparc", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "File": "sparc", "Func": "function_arg_record_value", "Target": "sparc", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3950, "Length": 255, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"MIPS DAG->DAG Pattern Instruction Selection\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["Mips", "\"MIPS DAG->DAG Pattern Instruction Selection\""], "File": "MipsISelDAGToDAG13", "Func": "getPassName", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3951, "Length": 11, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "bool", "MipsAsmParser", "::", "MatchAndEmitInstruction", "(", "SMLoc", "IDLoc", ",", "SmallVectorImpl", "<", "MCParsedAsmOperand", "*", ">", "&", "Operands", ",", "MCStreamer", "&", "Out", ")", "{", "return", "true", ";", "}", ""], "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": ["Mips", "Mips"], "File": "MipsAsmParser58", "Func": "MatchAndEmitInstruction", "Target": "Mips", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3952, "Length": 25, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "unsigned", "int", "arm_elf_section_type_flags", "(", "tree", "decl", ",", "const", "char", "*", "name", ",", "int", "reloc", ")", "{", "unsigned", "int", "flags", "=", "default_section_type_flags", "(", "decl", ",", "name", ",", "reloc", ")", ";", "if", "(", "decl", "&&", "TREE_CODE", "(", "decl", ")", "==", "FUNCTION_DECL", "&&", "target_pure_code", ")", "flags", "|=", "SECTION_ARM_PURECODE", ";", "return", "flags", ";", "}", ""], "natrual_language": ["Implements", "the", "TARGET_SECTION_FLAGS", "hook", ".", "If", "DECL", "is", "a", "function", "declaration", "and", "pure-code", "is", "passed", "as", "an", "option", "then", "add", "the", "SFH_ARM_PURECODE", "attribute", "to", "the", "section", "flags", ".", "NAME", "is", "the", "section", "'s", "name", "and", "RELOC", "indicates", "whether", "the", "declarations", "initializer", "may", "contain", "runtime", "relocations", "."], "TS_V_token": ["arm"], "File": "arm", "Func": "arm_elf_section_type_flags", "Target": "arm", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3953, "Length": 51, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "PPCSubtarget", "::", "PPCSubtarget", "(", "const", "std", "::", "string", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "bool", "is64Bit", ")", ":", "PPCGenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "StackAlignment", "(", "16", ")", ",", "DarwinDirective", "(", "PPC", "::", "DIR_NONE", ")", ",", "HasMFOCRF", "(", "false", ")", ",", "Has64BitSupport", "(", "false", ")", ",", "Use64BitRegs", "(", "false", ")", ",", "IsPPC64", "(", "is64Bit", ")", ",", "HasAltivec", "(", "false", ")", ",", "HasQPX", "(", "false", ")", ",", "HasFSQRT", "(", "false", ")", ",", "HasSTFIWX", "(", "false", ")", ",", "HasISEL", "(", "false", ")", ",", "IsBookE", "(", "false", ")", ",", "HasLazyResolverStubs", "(", "false", ")", ",", "IsJITCodeModel", "(", "false", ")", ",", "TargetTriple", "(", "TT", ")", "{", "std", "::", "string", "CPUName", "=", "CPU", ";", "if", "(", "CPUName", ".", "empty", "(", ")", ")", "CPUName", "=", "\"generic\"", ";", "(", "defined", "(", "__ppc__", ")", "||", "defined", "(", "__powerpc__", ")", ")", "if", "(", "CPUName", "==", "\"generic\"", ")", "CPUName", "=", "sys", "::", "getHostCPUName", "(", ")", ";", "InstrItins", "=", "getInstrItineraryForCPU", "(", "CPUName", ")", ";", "std", "::", "string", "FullFS", "=", "FS", ";", "if", "(", "is64Bit", ")", "{", "Has64BitSupport", "=", "true", ";", "Use64BitRegs", "=", "true", ";", "if", "(", "!", "FullFS", ".", "empty", "(", ")", ")", "FullFS", "=", "\"+64bit,\"", "+", "FullFS", ";", "else", "FullFS", "=", "\"+64bit\"", ";", "}", "ParseSubtargetFeatures", "(", "CPUName", ",", "FullFS", ")", ";", "if", "(", "use64BitRegs", "(", ")", "&&", "!", "has64BitSupport", "(", ")", ")", "Use64BitRegs", "=", "false", ";", "if", "(", "isDarwin", "(", ")", ")", "HasLazyResolverStubs", "=", "true", ";", "if", "(", "hasQPX", "(", ")", "||", "isBGQ", "(", ")", ")", "StackAlignment", "=", "32", ";", "}", ""], "natrual_language": ["This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "."], "TS_V_token": ["PowerPC", "PPC", "PPC", "PPC", "16", "PPC::DIR_NONE", "PPC", "\"generic\"", "\"generic\"", "\"+64bit,\"", "\"+64bit\"", "32"], "File": "PPCSubtarget11", "Func": "PPCSubtarget", "Target": "PowerPC", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3954, "Length": 254, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "static", "void", "register_tuple_type", "(", "unsigned", "int", "num_vectors", ",", "vector_type_index", "type", ")", "{", "tree", "tuple_type", "=", "lang_hooks", ".", "types", ".", "make_type", "(", "RECORD_TYPE", ")", ";", "tree", "vector_type", "=", "acle_vector_types", "[", "0", "]", "[", "type", "]", ";", "tree", "array_type", "=", "build_array_type_nelts", "(", "vector_type", ",", "num_vectors", ")", ";", "gcc_assert", "(", "VECTOR_MODE_P", "(", "TYPE_MODE", "(", "array_type", ")", ")", "&&", "TYPE_MODE_RAW", "(", "array_type", ")", "==", "TYPE_MODE", "(", "array_type", ")", "&&", "TYPE_ALIGN", "(", "array_type", ")", "==", "128", ")", ";", "tree", "field", "=", "build_decl", "(", "input_location", ",", "FIELD_DECL", ",", "get_identifier", "(", "\"__val\"", ")", ",", "array_type", ")", ";", "DECL_FIELD_CONTEXT", "(", "field", ")", "=", "tuple_type", ";", "TYPE_FIELDS", "(", "tuple_type", ")", "=", "field", ";", "add_sve_type_attribute", "(", "tuple_type", ",", "num_vectors", ",", "0", ",", "NULL", ")", ";", "make_type_sizeless", "(", "tuple_type", ")", ";", "layout_type", "(", "tuple_type", ")", ";", "gcc_assert", "(", "VECTOR_MODE_P", "(", "TYPE_MODE", "(", "tuple_type", ")", ")", "&&", "TYPE_MODE_RAW", "(", "tuple_type", ")", "==", "TYPE_MODE", "(", "tuple_type", ")", "&&", "TYPE_ALIGN", "(", "tuple_type", ")", "==", "128", ")", ";", "char", "buffer", "[", "sizeof", "(", "\"svbfloat16x4_t\"", ")", "]", ";", "const", "char", "*", "vector_type_name", "=", "vector_types", "[", "type", "]", ".", "acle_name", ";", "snprintf", "(", "buffer", ",", "sizeof", "(", "buffer", ")", ",", "\"%.*sx%d_t\"", ",", "(", "int", ")", "strlen", "(", "vector_type_name", ")", "-", "2", ",", "vector_type_name", ",", "num_vectors", ")", ";", "tree", "decl", "=", "build_decl", "(", "input_location", ",", "TYPE_DECL", ",", "get_identifier", "(", "buffer", ")", ",", "tuple_type", ")", ";", "TYPE_NAME", "(", "tuple_type", ")", "=", "decl", ";", "TYPE_STUB_DECL", "(", "tuple_type", ")", "=", "decl", ";", "lang_hooks", ".", "decls", ".", "pushdecl", "(", "decl", ")", ";", "DECL_ORIGINAL_TYPE", "(", "decl", ")", "=", "NULL_TREE", ";", "acle_vector_types", "[", "num_vectors", "-", "1", "]", "[", "type", "]", "=", "tuple_type", ";", "}", ""], "natrual_language": ["Register", "the", "tuple", "type", "that", "contains", "NUM_VECTORS", "vectors", "of", "type", "TYPE", "."], "TS_V_token": ["aarch64", "0", "128", "\"__val\"", "0", "128", "\"svbfloat16x4_t\"", "\"%.*sx%d_t\"", "2", "1"], "File": "aarch64-sve-builtins", "Func": "register_tuple_type", "Target": "aarch64", "Target_Clf": "CPU", "Compiler_Type": "GCC", "Idx": 3955, "Length": 260, "Cover_Rate": 1.0, "Template_token": []} {"ground_truth": ["", "std", "::", "pair", "<", "unsigned", ",", "unsigned", ">", "DLXInstrInfo", "::", "decomposeMachineOperandsTargetFlags", "(", "unsigned", "TF", ")", "const", "{", "return", "std", "::", "make_pair", "(", "TF", ",", "0u", ")", ";", "}", ""], "natrual_language": ["Decompose", "the", "machine", "operand", "'s", "target", "flags", "into", "two", "values", "-", "the", "direct", "target", "flag", "value", "and", "any", "of", "bit", "flags", "that", "are", "applied", "."], "TS_V_token": ["DLX", "DLX", "0u"], "File": "DLXInstrInfo", "Func": "decomposeMachineOperandsTargetFlags", "Target": "DLX", "Target_Clf": "CPU", "Compiler_Type": "LLVM", "Idx": 3956, "Length": 28, "Cover_Rate": 1.0, "Template_token": []}