ground_truth
sequencelengths 8
512
| natrual_language
sequencelengths 1
243
| TS_V_token
sequencelengths 1
182
| File
stringlengths 2
45
| Func
stringlengths 1
56
| Target
stringclasses 175
values | Target_Clf
stringclasses 6
values | Compiler_Type
stringclasses 2
values | Idx
int64 0
36.2k
| Length
int64 6
510
| Cover_Rate
float64 1
1
| Template_token
sequencelengths 0
0
|
---|---|---|---|---|---|---|---|---|---|---|---|
[
"<s>",
"int",
"frv_legitimate_memory_operand",
"(",
"rtx",
"op",
",",
"enum",
"machine_mode",
"mode",
",",
"int",
"condexec_p",
")",
"{",
"return",
"(",
"(",
"GET_MODE",
"(",
"op",
")",
"==",
"mode",
"||",
"mode",
"==",
"VOIDmode",
")",
"&&",
"GET_CODE",
"(",
"op",
")",
"==",
"MEM",
"&&",
"frv_legitimate_address_p",
"(",
"mode",
",",
"XEXP",
"(",
"op",
",",
"0",
")",
",",
"reload_completed",
",",
"condexec_p",
",",
"FALSE",
")",
")",
";",
"}",
"</s>"
] | [
"Return",
"1",
"if",
"operand",
"is",
"a",
"valid",
"FRV",
"address",
".",
"CONDEXEC_P",
"is",
"true",
"if",
"the",
"operand",
"is",
"used",
"by",
"a",
"predicated",
"instruction",
"."
] | [
"frv",
"0"
] | frv2 | frv_legitimate_memory_operand | frv | VLIW | GCC | 0 | 56 | 1 | [] |
[
"<s>",
"bool",
"AArch64FrameLowering",
"::",
"spillCalleeSavedRegisters",
"(",
"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_STR",
",",
"AArch64",
"::",
"LS64_STR",
"}",
",",
"{",
"&",
"AArch64",
"::",
"FPR64RegClass",
",",
"AArch64",
"::",
"LSFPPair64_STR",
",",
"AArch64",
"::",
"LSFP64_STR",
"}",
",",
"}",
";",
"const",
"unsigned",
"NumClasses",
"=",
"llvm",
"::",
"array_lengthof",
"(",
"PossibleClasses",
")",
";",
"emitFrameMemOps",
"(",
"true",
",",
"MBB",
",",
"MBBI",
",",
"CSI",
",",
"TRI",
",",
"PossibleClasses",
",",
"NumClasses",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"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",
"(",
")",
"."
] | [
"AArch64",
"AArch64",
"AArch64::GPR64RegClass",
"AArch64::LSPair64_STR",
"AArch64::LS64_STR",
"AArch64::FPR64RegClass",
"AArch64::LSFPPair64_STR",
"AArch64::LSFP64_STR"
] | AArch64FrameLowering24 | spillCalleeSavedRegisters | AArch64 | CPU | LLVM | 1 | 114 | 1 | [] |
[
"<s>",
"bool",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"F",
")",
"{",
"bool",
"Changed",
"=",
"false",
";",
"if",
"(",
"TM",
".",
"getSubtargetImpl",
"(",
")",
"->",
"getCFLType",
"(",
")",
"!=",
"PatmosSubtarget",
"::",
"CFL_DELAYED",
")",
"{",
"DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"\\n[DelaySlotKiller] \"",
"<<",
"F",
".",
"getFunction",
"(",
")",
"->",
"getName",
"(",
")",
"<<",
"\"\\n\"",
")",
";",
"for",
"(",
"MachineFunction",
"::",
"iterator",
"FI",
"=",
"F",
".",
"begin",
"(",
")",
",",
"FE",
"=",
"F",
".",
"end",
"(",
")",
";",
"FI",
"!=",
"FE",
";",
"++",
"FI",
")",
"Changed",
"|=",
"killDelaySlots",
"(",
"*",
"FI",
")",
";",
"}",
"return",
"Changed",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"Patmos",
"Patmos",
"\"\\n[DelaySlotKiller] \"",
"\"\\n\""
] | PatmosDelaySlotKiller | runOnMachineFunction | Patmos | VLIW | LLVM | 2 | 92 | 1 | [] |
[
"<s>",
"void",
"WebAssemblyFrameLowering",
"::",
"writeSPToGlobal",
"(",
"unsigned",
"SrcReg",
",",
"MachineFunction",
"&",
"MF",
",",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"&",
"InsertStore",
",",
"const",
"DebugLoc",
"&",
"DL",
")",
"const",
"{",
"const",
"auto",
"*",
"TII",
"=",
"MF",
".",
"getSubtarget",
"<",
"WebAssemblySubtarget",
">",
"(",
")",
".",
"getInstrInfo",
"(",
")",
";",
"const",
"char",
"*",
"ES",
"=",
"\"__stack_pointer\"",
";",
"auto",
"*",
"SPSymbol",
"=",
"MF",
".",
"createExternalSymbolName",
"(",
"ES",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"InsertStore",
",",
"DL",
",",
"TII",
"->",
"get",
"(",
"getOpcGlobSet",
"(",
"MF",
")",
")",
")",
".",
"addExternalSymbol",
"(",
"SPSymbol",
")",
".",
"addReg",
"(",
"SrcReg",
")",
";",
"}",
"</s>"
] | [
"Write",
"SP",
"back",
"to",
"__stack_pointer",
"global",
"."
] | [
"WebAssembly",
"WebAssembly",
"WebAssembly",
"\"__stack_pointer\""
] | WebAssemblyFrameLowering11 | writeSPToGlobal | WebAssembly | Virtual ISA | LLVM | 3 | 95 | 1 | [] |
[
"<s>",
"static",
"bool",
"hasReassociableSibling",
"(",
"const",
"MachineInstr",
"&",
"Inst",
",",
"bool",
"&",
"Commuted",
")",
"{",
"const",
"MachineBasicBlock",
"*",
"MBB",
"=",
"Inst",
".",
"getParent",
"(",
")",
";",
"const",
"MachineRegisterInfo",
"&",
"MRI",
"=",
"MBB",
"->",
"getParent",
"(",
")",
"->",
"getRegInfo",
"(",
")",
";",
"MachineInstr",
"*",
"MI1",
"=",
"MRI",
".",
"getUniqueVRegDef",
"(",
"Inst",
".",
"getOperand",
"(",
"1",
")",
".",
"getReg",
"(",
")",
")",
";",
"MachineInstr",
"*",
"MI2",
"=",
"MRI",
".",
"getUniqueVRegDef",
"(",
"Inst",
".",
"getOperand",
"(",
"2",
")",
".",
"getReg",
"(",
")",
")",
";",
"unsigned",
"AssocOpcode",
"=",
"Inst",
".",
"getOpcode",
"(",
")",
";",
"Commuted",
"=",
"MI1",
"->",
"getOpcode",
"(",
")",
"!=",
"AssocOpcode",
"&&",
"MI2",
"->",
"getOpcode",
"(",
")",
"==",
"AssocOpcode",
";",
"if",
"(",
"Commuted",
")",
"std",
"::",
"swap",
"(",
"MI1",
",",
"MI2",
")",
";",
"if",
"(",
"MI1",
"->",
"getOpcode",
"(",
")",
"==",
"AssocOpcode",
"&&",
"hasReassociableOperands",
"(",
"*",
"MI1",
",",
"MBB",
")",
"&&",
"MRI",
".",
"hasOneNonDBGUse",
"(",
"MI1",
"->",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
")",
")",
"return",
"true",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Return",
"true",
"when",
"\\P",
"Inst",
"has",
"reassociable",
"sibling",
"."
] | [
"X86",
"1",
"2",
"0"
] | X86InstrInfo123 | hasReassociableSibling | X86 | CPU | LLVM | 4 | 161 | 1 | [] |
[
"<s>",
"static",
"unsigned",
"int",
"h8300_move_length",
"(",
"rtx",
"*",
"operands",
",",
"const",
"h8300_length_table",
"*",
"table",
")",
"{",
"unsigned",
"int",
"size",
";",
"size",
"=",
"h8300_length_from_table",
"(",
"operands",
"[",
"0",
"]",
",",
"operands",
"[",
"1",
"]",
",",
"table",
")",
";",
"if",
"(",
"REG_P",
"(",
"operands",
"[",
"0",
"]",
")",
"&&",
"h8300_short_move_mem_p",
"(",
"operands",
"[",
"1",
"]",
",",
"POST_INC",
")",
")",
"size",
"-=",
"2",
";",
"if",
"(",
"REG_P",
"(",
"operands",
"[",
"1",
"]",
")",
"&&",
"h8300_short_move_mem_p",
"(",
"operands",
"[",
"0",
"]",
",",
"PRE_DEC",
")",
")",
"size",
"-=",
"2",
";",
"return",
"size",
";",
"}",
"</s>"
] | [
"Calculate",
"the",
"length",
"of",
"move",
"instruction",
"INSN",
"using",
"the",
"given",
"length",
"table",
".",
"Although",
"the",
"tables",
"are",
"correct",
"for",
"most",
"cases",
",",
"there",
"is",
"some",
"irregularity",
"in",
"the",
"length",
"of",
"mov.b",
"and",
"mov.w",
".",
"The",
"following",
"forms",
":",
"mov",
"@",
"ERs+",
",",
"Rd",
"mov",
"@",
"(",
"d:16",
",",
"ERs",
")",
",",
"Rd",
"mov",
"Rs",
",",
"@",
"-ERd",
"mov",
"Rs",
",",
"@",
"(",
"d:16",
",",
"ERd",
")",
"are",
"two",
"bytes",
"shorter",
"than",
"most",
"other",
"``",
"mov",
"Rs",
",",
"@",
"complex",
"''",
"or",
"``",
"mov",
"@",
"complex",
",",
"Rd",
"''",
"combinations",
"."
] | [
"h8300",
"0",
"1",
"0",
"1",
"2",
"1",
"0",
"2"
] | h8300 | h8300_move_length | h8300 | MPU | GCC | 5 | 88 | 1 | [] |
[
"<s>",
"void",
"ARMPassConfig",
"::",
"addPreEmitPass",
"(",
")",
"{",
"addPass",
"(",
"createThumb2SizeReductionPass",
"(",
")",
")",
";",
"addPass",
"(",
"createUnpackMachineBundles",
"(",
"[",
"]",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"{",
"return",
"MF",
".",
"getSubtarget",
"<",
"ARMSubtarget",
">",
"(",
")",
".",
"isThumb2",
"(",
")",
";",
"}",
")",
")",
";",
"if",
"(",
"getOptLevel",
"(",
")",
"!=",
"CodeGenOpt",
"::",
"None",
")",
"addPass",
"(",
"createARMOptimizeBarriersPass",
"(",
")",
")",
";",
"addPass",
"(",
"createARMConstantIslandPass",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"This",
"pass",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"immediately",
"before",
"machine",
"code",
"is",
"emitted",
"."
] | [
"ARM",
"ARM",
"ARM",
"ARM",
"ARM"
] | ARMTargetMachine | addPreEmitPass | ARM | CPU | LLVM | 6 | 70 | 1 | [] |
[
"<s>",
"SDValue",
"SparcTargetLowering",
"::",
"PerformDAGCombine",
"(",
"SDNode",
"*",
"N",
",",
"DAGCombinerInfo",
"&",
"DCI",
")",
"const",
"{",
"switch",
"(",
"N",
"->",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"break",
";",
"case",
"ISD",
"::",
"BITCAST",
":",
"return",
"PerformBITCASTCombine",
"(",
"N",
",",
"DCI",
")",
";",
"}",
"return",
"SDValue",
"(",
")",
";",
"}",
"</s>"
] | [
"This",
"method",
"will",
"be",
"invoked",
"for",
"all",
"target",
"nodes",
"and",
"for",
"any",
"target-independent",
"nodes",
"that",
"the",
"target",
"has",
"registered",
"with",
"invoke",
"it",
"for",
"."
] | [
"Sparc",
"Sparc",
"ISD::BITCAST"
] | SparcISelLowering (2)2 | PerformDAGCombine | Sparc | CPU | LLVM | 7 | 48 | 1 | [] |
[
"<s>",
"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 %<target%> 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",
";",
"}",
"</s>"
] | [
"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",
"."
] | [
"arm",
"\"attribute %<target%> argument not a string\"",
"\",\"",
"\"thumb\"",
"5",
"\"arm\"",
"3",
"\"fpu=\"",
"4",
"4",
"\"invalid fpu for attribute(target(\\\"%s\\\"))\"",
"\"attribute(target(\\\"%s\\\")) is unknown\""
] | arm5 | arm_valid_target_attribute_rec | arm | CPU | GCC | 8 | 240 | 1 | [] |
[
"<s>",
"enum",
"reg_class",
"arm_regno_class",
"(",
"int",
"regno",
")",
"{",
"if",
"(",
"regno",
"==",
"PC_REGNUM",
")",
"return",
"NO_REGS",
";",
"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",
";",
"}",
"</s>"
] | [
"For",
"efficiency",
"and",
"historical",
"reasons",
"LO_REGS",
",",
"HI_REGS",
"and",
"CC_REGS",
"are",
"not",
"used",
"in",
"arm",
"mode",
"."
] | [
"arm",
"8",
"8"
] | arm4 | arm_regno_class | arm | CPU | GCC | 9 | 158 | 1 | [] |
[
"<s>",
"int",
"X86TTIImpl",
"::",
"getIntrinsicInstrCost",
"(",
"Intrinsic",
"::",
"ID",
"IID",
",",
"Type",
"*",
"RetTy",
",",
"ArrayRef",
"<",
"Value",
"*",
">",
"Args",
",",
"FastMathFlags",
"FMF",
",",
"unsigned",
"VF",
")",
"{",
"return",
"BaseT",
"::",
"getIntrinsicInstrCost",
"(",
"IID",
",",
"RetTy",
",",
"Args",
",",
"FMF",
",",
"VF",
")",
";",
"}",
"</s>"
] | [
"Get",
"intrinsic",
"cost",
"based",
"on",
"arguments",
"."
] | [
"X86",
"X86",
"Intrinsic::ID"
] | X86TargetTransformInfo (2) | getIntrinsicInstrCost | X86 | CPU | LLVM | 10 | 45 | 1 | [] |
[
"<s>",
"virtual",
"const",
"char",
"*",
"getPassName",
"(",
")",
"const",
"{",
"return",
"\"PIC16 Memsel Optimizer\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"PIC16",
"\"PIC16 Memsel Optimizer\""
] | PIC16MemSelOpt | getPassName | PIC16 | MPU | LLVM | 11 | 13 | 1 | [] |
[
"<s>",
"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",
";",
"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",
")",
";",
"}",
"</s>"
] | [
"This",
"hook",
"must",
"be",
"implemented",
"to",
"lower",
"outgoing",
"return",
"values",
",",
"described",
"by",
"the",
"Outs",
"array",
",",
"into",
"the",
"specified",
"DAG",
"."
] | [
"VE",
"VE",
"ISD::OutputArg",
"16",
"VE",
"4",
"1",
"0",
"\"Can only return in registers!\"",
"ISD::SIGN_EXTEND",
"ISD::ZERO_EXTEND",
"ISD::ANY_EXTEND",
"\"Unknown loc info!\"",
"\"Unexpected custom lowering\"",
"1",
"0",
"VEISD::RET_FLAG",
"MVT::Other"
] | VEISelLowering | LowerReturn | VE | CPU | LLVM | 12 | 362 | 1 | [] |
[
"<s>",
"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",
")",
";",
"}",
"</s>"
] | [
"Get",
"the",
"mapping",
"of",
"the",
"different",
"operands",
"of",
"MI",
"on",
"the",
"register",
"bank",
"."
] | [
"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"
] | MipsRegisterBankInfo33 | getInstrMapping | Mips | CPU | LLVM | 13 | 409 | 1 | [] |
[
"<s>",
"uint64_t",
"getNullPointerValue",
"(",
"unsigned",
"AddrSpace",
")",
"const",
"{",
"return",
"(",
"AddrSpace",
"==",
"AMDGPUAS",
"::",
"LOCAL_ADDRESS",
"||",
"AddrSpace",
"==",
"AMDGPUAS",
"::",
"REGION_ADDRESS",
")",
"?",
"-",
"1",
":",
"0",
";",
"}",
"</s>"
] | [
"Get",
"the",
"integer",
"value",
"of",
"a",
"null",
"pointer",
"in",
"the",
"given",
"address",
"space",
"."
] | [
"AMDGPU",
"AMDGPU",
"AMDGPU",
"1",
"0"
] | AMDGPUTargetMachine (2)1 | getNullPointerValue | AMDGPU | GPU | LLVM | 14 | 29 | 1 | [] |
[
"<s>",
"bool",
"X86FrameLowering",
"::",
"hasFP",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"const",
"MachineFrameInfo",
"&",
"MFI",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"return",
"(",
"MF",
".",
"getTarget",
"(",
")",
".",
"Options",
".",
"DisableFramePointerElim",
"(",
"MF",
")",
"||",
"TRI",
"->",
"hasStackRealignment",
"(",
"MF",
")",
"||",
"MFI",
".",
"hasVarSizedObjects",
"(",
")",
"||",
"MFI",
".",
"isFrameAddressTaken",
"(",
")",
"||",
"MFI",
".",
"hasOpaqueSPAdjustment",
"(",
")",
"||",
"MF",
".",
"getInfo",
"<",
"X86MachineFunctionInfo",
">",
"(",
")",
"->",
"getForceFramePointer",
"(",
")",
"||",
"MF",
".",
"getInfo",
"<",
"X86MachineFunctionInfo",
">",
"(",
")",
"->",
"hasPreallocatedCall",
"(",
")",
"||",
"MF",
".",
"callsUnwindInit",
"(",
")",
"||",
"MF",
".",
"hasEHFunclets",
"(",
")",
"||",
"MF",
".",
"callsEHReturn",
"(",
")",
"||",
"MFI",
".",
"hasStackMap",
"(",
")",
"||",
"MFI",
".",
"hasPatchPoint",
"(",
")",
"||",
"MFI",
".",
"hasCopyImplyingStackAdjustment",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"hasFP",
"-",
"Return",
"true",
"if",
"the",
"specified",
"function",
"should",
"have",
"a",
"dedicated",
"frame",
"pointer",
"register",
"."
] | [
"X86",
"X86",
"X86",
"X86"
] | X86FrameLowering1 | hasFP | X86 | CPU | LLVM | 15 | 127 | 1 | [] |
[
"<s>",
"XCoreSubtarget",
"::",
"XCoreSubtarget",
"(",
"const",
"Triple",
"&",
"TT",
",",
"const",
"std",
"::",
"string",
"&",
"CPU",
",",
"const",
"std",
"::",
"string",
"&",
"FS",
",",
"const",
"TargetMachine",
"&",
"TM",
")",
":",
"XCoreGenSubtargetInfo",
"(",
"TT",
",",
"CPU",
",",
"CPU",
",",
"FS",
")",
",",
"FrameLowering",
"(",
"*",
"this",
")",
",",
"TLInfo",
"(",
"TM",
",",
"*",
"this",
")",
"{",
"}",
"</s>"
] | [
"This",
"constructor",
"initializes",
"the",
"data",
"members",
"to",
"match",
"that",
"of",
"the",
"specified",
"triple",
"."
] | [
"XCore",
"XCore",
"XCore",
"XCore"
] | XCoreSubtarget3 | XCoreSubtarget | XCore | MPU | LLVM | 16 | 55 | 1 | [] |
[
"<s>",
"bool",
"rs6000_tls_referenced_p",
"(",
"rtx",
"x",
")",
"{",
"if",
"(",
"!",
"TARGET_HAVE_TLS",
")",
"return",
"false",
";",
"return",
"for_each_rtx",
"(",
"&",
"x",
",",
"&",
"rs6000_tls_symbol_ref_1",
",",
"0",
")",
";",
"}",
"</s>"
] | [
"Return",
"1",
"if",
"X",
"contains",
"a",
"thread-local",
"symbol",
"."
] | [
"rs6000",
"0"
] | rs60003 | rs6000_tls_referenced_p | rs6000 | CPU | GCC | 17 | 28 | 1 | [] |
[
"<s>",
"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\"",
";",
"}",
"}",
"</s>"
] | [
"getTargetNodeName",
"-",
"This",
"method",
"returns",
"the",
"name",
"of",
"a",
"target",
"specific"
] | [
"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\""
] | FISCISelLowering | getTargetNodeName | FISC | CPU | LLVM | 18 | 72 | 1 | [] |
[
"<s>",
"bool",
"PPCTargetLowering",
"::",
"SelectAddressPCRel",
"(",
"SDValue",
"N",
",",
"SDValue",
"&",
"Base",
")",
"const",
"{",
"Base",
"=",
"N",
";",
"if",
"(",
"N",
".",
"getOpcode",
"(",
")",
"==",
"PPCISD",
"::",
"MAT_PCREL_ADDR",
")",
"return",
"true",
";",
"if",
"(",
"isValidPCRelNode",
"<",
"ConstantPoolSDNode",
">",
"(",
"N",
")",
"||",
"isValidPCRelNode",
"<",
"GlobalAddressSDNode",
">",
"(",
"N",
")",
"||",
"isValidPCRelNode",
"<",
"JumpTableSDNode",
">",
"(",
"N",
")",
"||",
"isValidPCRelNode",
"<",
"BlockAddressSDNode",
">",
"(",
"N",
")",
")",
"return",
"true",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"SelectAddressPCRel",
"-",
"Represent",
"the",
"specified",
"address",
"as",
"pc",
"relative",
"to",
"be",
"represented",
"as",
"[",
"pc+imm",
"]",
"."
] | [
"PowerPC",
"PPC",
"PPCISD::MAT_PCREL_ADDR"
] | PPCISelLowering100 | SelectAddressPCRel | PowerPC | CPU | LLVM | 19 | 74 | 1 | [] |
[
"<s>",
"unsigned",
"AlphaRegisterInfo",
"::",
"eliminateFrameIndex",
"(",
"MachineBasicBlock",
"::",
"iterator",
"II",
",",
"int",
"SPAdj",
",",
"FrameIndexValue",
"*",
"Value",
",",
"RegScavenger",
"*",
"RS",
")",
"const",
"{",
"assert",
"(",
"SPAdj",
"==",
"0",
"&&",
"\"Unexpected\"",
")",
";",
"unsigned",
"i",
"=",
"0",
";",
"MachineInstr",
"&",
"MI",
"=",
"*",
"II",
";",
"MachineBasicBlock",
"&",
"MBB",
"=",
"*",
"MI",
".",
"getParent",
"(",
")",
";",
"MachineFunction",
"&",
"MF",
"=",
"*",
"MBB",
".",
"getParent",
"(",
")",
";",
"bool",
"FP",
"=",
"hasFP",
"(",
"MF",
")",
";",
"while",
"(",
"!",
"MI",
".",
"getOperand",
"(",
"i",
")",
".",
"isFI",
"(",
")",
")",
"{",
"++",
"i",
";",
"assert",
"(",
"i",
"<",
"MI",
".",
"getNumOperands",
"(",
")",
"&&",
"\"Instr doesn't have FrameIndex operand!\"",
")",
";",
"}",
"int",
"FrameIndex",
"=",
"MI",
".",
"getOperand",
"(",
"i",
")",
".",
"getIndex",
"(",
")",
";",
"MI",
".",
"getOperand",
"(",
"i",
"+",
"1",
")",
".",
"ChangeToRegister",
"(",
"FP",
"?",
"Alpha",
"::",
"R15",
":",
"Alpha",
"::",
"R30",
",",
"false",
")",
";",
"int",
"Offset",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
"->",
"getObjectOffset",
"(",
"FrameIndex",
")",
";",
"DEBUG",
"(",
"errs",
"(",
")",
"<<",
"\"FI: \"",
"<<",
"FrameIndex",
"<<",
"\" Offset: \"",
"<<",
"Offset",
"<<",
"\"\\n\"",
")",
";",
"Offset",
"+=",
"MF",
".",
"getFrameInfo",
"(",
")",
"->",
"getStackSize",
"(",
")",
";",
"DEBUG",
"(",
"errs",
"(",
")",
"<<",
"\"Corrected Offset \"",
"<<",
"Offset",
"<<",
"\" for stack size: \"",
"<<",
"MF",
".",
"getFrameInfo",
"(",
")",
"->",
"getStackSize",
"(",
")",
"<<",
"\"\\n\"",
")",
";",
"if",
"(",
"Offset",
">",
"IMM_HIGH",
"||",
"Offset",
"<",
"IMM_LOW",
")",
"{",
"DEBUG",
"(",
"errs",
"(",
")",
"<<",
"\"Unconditionally using R28 for evil purposes Offset: \"",
"<<",
"Offset",
"<<",
"\"\\n\"",
")",
";",
"MI",
".",
"getOperand",
"(",
"i",
"+",
"1",
")",
".",
"ChangeToRegister",
"(",
"Alpha",
"::",
"R28",
",",
"false",
")",
";",
"MI",
".",
"getOperand",
"(",
"i",
")",
".",
"ChangeToImmediate",
"(",
"getLower16",
"(",
"Offset",
")",
")",
";",
"MachineInstr",
"*",
"nMI",
"=",
"BuildMI",
"(",
"MF",
",",
"MI",
".",
"getDebugLoc",
"(",
")",
",",
"TII",
".",
"get",
"(",
"Alpha",
"::",
"LDAH",
")",
",",
"Alpha",
"::",
"R28",
")",
".",
"addImm",
"(",
"getUpper16",
"(",
"Offset",
")",
")",
".",
"addReg",
"(",
"FP",
"?",
"Alpha",
"::",
"R15",
":",
"Alpha",
"::",
"R30",
")",
";",
"MBB",
".",
"insert",
"(",
"II",
",",
"nMI",
")",
";",
"}",
"else",
"{",
"MI",
".",
"getOperand",
"(",
"i",
")",
".",
"ChangeToImmediate",
"(",
"Offset",
")",
";",
"}",
"return",
"0",
";",
"}",
"</s>"
] | [
"This",
"method",
"must",
"be",
"overriden",
"to",
"eliminate",
"abstract",
"frame",
"indices",
"from",
"instructions",
"which",
"may",
"use",
"them",
"."
] | [
"Alpha",
"Alpha",
"0",
"\"Unexpected\"",
"0",
"\"Instr doesn't have FrameIndex operand!\"",
"1",
"Alpha::R15",
"Alpha::R30",
"\"FI: \"",
"\" Offset: \"",
"\"\\n\"",
"\"Corrected Offset \"",
"\" for stack size: \"",
"\"\\n\"",
"\"Unconditionally using R28 for evil purposes Offset: \"",
"\"\\n\"",
"1",
"Alpha::R28",
"Alpha::LDAH",
"Alpha::R28",
"Alpha::R15",
"Alpha::R30",
"0"
] | AlphaRegisterInfo | eliminateFrameIndex | Alpha | MPU | LLVM | 20 | 347 | 1 | [] |
[
"<s>",
"static",
"void",
"ia64_copy_rbs",
"(",
"struct",
"_Unwind_Context",
"*",
"info",
",",
"unsigned",
"long",
"dst",
",",
"unsigned",
"long",
"src",
",",
"long",
"len",
",",
"unsigned",
"long",
"dst_rnat",
")",
"{",
"long",
"count",
";",
"unsigned",
"long",
"src_rnat",
";",
"unsigned",
"long",
"shift1",
",",
"shift2",
";",
"len",
"<<=",
"3",
";",
"dst_rnat",
"&=",
"(",
"1UL",
"<<",
"(",
"(",
"dst",
">>",
"3",
")",
"&",
"0x3f",
")",
")",
"-",
"1",
";",
"src_rnat",
"=",
"src",
">=",
"info",
"->",
"regstk_top",
"?",
"info",
"->",
"rnat",
":",
"*",
"(",
"unsigned",
"long",
"*",
")",
"(",
"src",
"|",
"0x1f8",
")",
";",
"src_rnat",
"&=",
"~",
"(",
"(",
"1UL",
"<<",
"(",
"(",
"src",
">>",
"3",
")",
"&",
"0x3f",
")",
")",
"-",
"1",
")",
";",
"src_rnat",
"&=",
"~",
"(",
"1UL",
"<<",
"63",
")",
";",
"shift1",
"=",
"(",
"(",
"dst",
"-",
"src",
")",
">>",
"3",
")",
"&",
"0x3f",
";",
"if",
"(",
"(",
"dst",
"&",
"0x1f8",
")",
"<",
"(",
"src",
"&",
"0x1f8",
")",
")",
"shift1",
"--",
";",
"shift2",
"=",
"0x3f",
"-",
"shift1",
";",
"if",
"(",
"(",
"dst",
"&",
"0x1f8",
")",
">=",
"(",
"src",
"&",
"0x1f8",
")",
")",
"{",
"count",
"=",
"~",
"dst",
"&",
"0x1f8",
";",
"goto",
"first",
";",
"}",
"count",
"=",
"~",
"src",
"&",
"0x1f8",
";",
"goto",
"second",
";",
"while",
"(",
"len",
">",
"0",
")",
"{",
"src_rnat",
"=",
"src",
">=",
"info",
"->",
"regstk_top",
"?",
"info",
"->",
"rnat",
":",
"*",
"(",
"unsigned",
"long",
"*",
")",
"(",
"src",
"|",
"0x1f8",
")",
";",
"src_rnat",
"&=",
"~",
"(",
"1UL",
"<<",
"63",
")",
";",
"count",
"=",
"shift2",
"<<",
"3",
";",
"first",
":",
"if",
"(",
"count",
">",
"len",
")",
"count",
"=",
"len",
";",
"memcpy",
"(",
"(",
"char",
"*",
")",
"dst",
",",
"(",
"char",
"*",
")",
"src",
",",
"count",
")",
";",
"dst",
"+=",
"count",
";",
"src",
"+=",
"count",
";",
"len",
"-=",
"count",
";",
"dst_rnat",
"|=",
"(",
"src_rnat",
"<<",
"shift1",
")",
"&",
"~",
"(",
"1UL",
"<<",
"63",
")",
";",
"if",
"(",
"len",
"<=",
"0",
")",
"break",
";",
"*",
"(",
"long",
"*",
")",
"dst",
"=",
"dst_rnat",
";",
"dst",
"+=",
"8",
";",
"dst_rnat",
"=",
"0",
";",
"count",
"=",
"shift1",
"<<",
"3",
";",
"second",
":",
"if",
"(",
"count",
">",
"len",
")",
"count",
"=",
"len",
";",
"memcpy",
"(",
"(",
"char",
"*",
")",
"dst",
",",
"(",
"char",
"*",
")",
"src",
",",
"count",
")",
";",
"dst",
"+=",
"count",
";",
"src",
"+=",
"count",
"+",
"8",
";",
"len",
"-=",
"count",
"+",
"8",
";",
"dst_rnat",
"|=",
"(",
"src_rnat",
">>",
"shift2",
")",
";",
"}",
"if",
"(",
"(",
"dst",
"&",
"0x1f8",
")",
"==",
"0x1f8",
")",
"{",
"*",
"(",
"long",
"*",
")",
"dst",
"=",
"dst_rnat",
";",
"dst",
"+=",
"8",
";",
"dst_rnat",
"=",
"0",
";",
"}",
"info",
"->",
"regstk_top",
"=",
"dst",
"&",
"~",
"0x1ffUL",
";",
"info",
"->",
"rnat",
"=",
"dst_rnat",
";",
"}",
"</s>"
] | [
"Copy",
"register",
"backing",
"store",
"from",
"SRC",
"to",
"DST",
",",
"LEN",
"words",
"(",
"which",
"include",
"both",
"saved",
"registers",
"and",
"nat",
"collections",
")",
".",
"DST_RNAT",
"is",
"a",
"partial",
"nat",
"collection",
"for",
"DST",
".",
"SRC",
"and",
"DST",
"do",
"n't",
"have",
"to",
"be",
"equal",
"modulo",
"64",
"slots",
",",
"so",
"it",
"can",
"not",
"be",
"done",
"with",
"a",
"simple",
"memcpy",
"as",
"the",
"nat",
"collections",
"will",
"be",
"at",
"different",
"relative",
"offsets",
"and",
"need",
"to",
"be",
"combined",
"together",
"."
] | [
"ia64",
"3",
"1UL",
"3",
"0x3f",
"1",
"0x1f8",
"1UL",
"3",
"0x3f",
"1",
"1UL",
"63",
"3",
"0x3f",
"0x1f8",
"0x1f8",
"0x3f",
"0x1f8",
"0x1f8",
"0x1f8",
"0x1f8",
"0",
"0x1f8",
"1UL",
"63",
"3",
"1UL",
"63",
"0",
"8",
"0",
"3",
"8",
"8",
"0x1f8",
"0x1f8",
"8",
"0",
"0x1ffUL"
] | unwind-ia641 | ia64_copy_rbs | ia64 | CPU | GCC | 21 | 419 | 1 | [] |
[
"<s>",
"unsigned",
"SIInstrInfo",
"::",
"isStoreToStackSlot",
"(",
"const",
"MachineInstr",
"&",
"MI",
",",
"int",
"&",
"FrameIndex",
")",
"const",
"{",
"if",
"(",
"!",
"MI",
".",
"mayStore",
"(",
")",
")",
"return",
"AMDGPU",
"::",
"NoRegister",
";",
"if",
"(",
"isMUBUF",
"(",
"MI",
")",
"||",
"isVGPRSpill",
"(",
"MI",
")",
")",
"return",
"isStackAccess",
"(",
"MI",
",",
"FrameIndex",
")",
";",
"if",
"(",
"isSGPRSpill",
"(",
"MI",
")",
")",
"return",
"isSGPRStackAccess",
"(",
"MI",
",",
"FrameIndex",
")",
";",
"return",
"AMDGPU",
"::",
"NoRegister",
";",
"}",
"</s>"
] | [
"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",
"."
] | [
"AMDGPU",
"SI",
"AMDGPU::NoRegister",
"AMDGPU::NoRegister"
] | SIInstrInfo (2) | isStoreToStackSlot | AMDGPU | GPU | LLVM | 22 | 71 | 1 | [] |
[
"<s>",
"void",
"rs6000_asm_output_dwarf_pcrel",
"(",
"FILE",
"*",
"file",
",",
"int",
"size",
",",
"const",
"char",
"*",
"label",
")",
"{",
"fputs",
"(",
"integer_asm_op",
"(",
"size",
",",
"FALSE",
")",
",",
"file",
")",
";",
"assemble_name",
"(",
"file",
",",
"label",
")",
";",
"fputs",
"(",
"\"-$\"",
",",
"file",
")",
";",
"}",
"</s>"
] | [
"Overide",
"the",
"default",
"'SYMBOL-",
".",
"'",
"syntax",
"with",
"AIX",
"compatible",
"'SYMBOL-",
"$",
"'",
"."
] | [
"rs6000",
"\"-$\""
] | rs6000 | rs6000_asm_output_dwarf_pcrel | rs6000 | CPU | GCC | 23 | 43 | 1 | [] |
[
"<s>",
"static",
"struct",
"machine_function",
"*",
"tilepro_init_machine_status",
"(",
"void",
")",
"{",
"return",
"ggc_cleared_alloc",
"<",
"machine_function",
">",
"(",
")",
";",
"}",
"</s>"
] | [
"Functions",
"to",
"save",
"and",
"restore",
"machine-specific",
"function",
"data",
"."
] | [
"tilepro"
] | tilepro | tilepro_init_machine_status | tilepro | VLIW | GCC | 24 | 18 | 1 | [] |
[
"<s>",
"bool",
"vax_legitimate_address_p",
"(",
"machine_mode",
"mode",
",",
"rtx",
"x",
",",
"bool",
"strict",
")",
"{",
"rtx",
"xfoo0",
",",
"xfoo1",
";",
"if",
"(",
"nonindexed_address_p",
"(",
"x",
",",
"strict",
")",
")",
"return",
"true",
";",
"if",
"(",
"GET_CODE",
"(",
"x",
")",
"!=",
"PLUS",
")",
"return",
"false",
";",
"xfoo0",
"=",
"XEXP",
"(",
"x",
",",
"0",
")",
";",
"xfoo1",
"=",
"XEXP",
"(",
"x",
",",
"1",
")",
";",
"if",
"(",
"index_term_p",
"(",
"xfoo0",
",",
"mode",
",",
"strict",
")",
"&&",
"nonindexed_address_p",
"(",
"xfoo1",
",",
"strict",
")",
")",
"return",
"true",
";",
"if",
"(",
"index_term_p",
"(",
"xfoo1",
",",
"mode",
",",
"strict",
")",
"&&",
"nonindexed_address_p",
"(",
"xfoo0",
",",
"strict",
")",
")",
"return",
"true",
";",
"if",
"(",
"indexable_address_p",
"(",
"xfoo0",
",",
"xfoo1",
",",
"mode",
",",
"strict",
")",
"||",
"indexable_address_p",
"(",
"xfoo1",
",",
"xfoo0",
",",
"mode",
",",
"strict",
")",
")",
"return",
"true",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"legitimate_address_p",
"returns",
"true",
"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",
"."
] | [
"vax",
"0",
"1"
] | vax | vax_legitimate_address_p | vax | CPU | GCC | 25 | 133 | 1 | [] |
[
"<s>",
"StringRef",
"getPassName",
"(",
")",
"const",
"override",
"{",
"return",
"\"X86 avoid trailing call pass\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"X86",
"\"X86 avoid trailing call pass\""
] | X86AvoidTrailingCall3 | getPassName | X86 | CPU | LLVM | 26 | 11 | 1 | [] |
[
"<s>",
"static",
"inline",
"ChildIteratorType",
"child_begin",
"(",
"NodeRef",
"N",
")",
"{",
"return",
"N",
"->",
"getChildren",
"(",
")",
".",
"begin",
"(",
")",
";",
"}",
"</s>"
] | [
"nodes_iterator/begin/end",
"-",
"Allow",
"iteration",
"over",
"all",
"nodes",
"in",
"the",
"graph"
] |