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>",
"SDValue",
"AAPTargetLowering",
"::",
"LowerFormalArguments",
"(",
"SDValue",
"Chain",
",",
"CallingConv",
"::",
"ID",
"CallConv",
",",
"bool",
"isVarArg",
",",
"const",
"SmallVectorImpl",
"<",
"ISD",
"::",
"InputArg",
">",
"&",
"Ins",
",",
"const",
"SDLoc",
"&",
"DL",
",",
"SelectionDAG",
"&",
"DAG",
",",
"SmallVectorImpl",
"<",
"SDValue",
">",
"&",
"InVals",
")",
"const",
"{",
"switch",
"(",
"CallConv",
")",
"{",
"default",
":",
"llvm_unreachable",
"(",
"\"Unsupported calling convention\"",
")",
";",
"case",
"CallingConv",
"::",
"C",
":",
"case",
"CallingConv",
"::",
"Fast",
":",
"return",
"LowerCCCArguments",
"(",
"Chain",
",",
"CallConv",
",",
"isVarArg",
",",
"Ins",
",",
"DL",
",",
"DAG",
",",
"InVals",
")",
";",
"}",
"}",
"</s>"
] | [
"This",
"hook",
"must",
"be",
"implemented",
"to",
"lower",
"the",
"incoming",
"(",
"formal",
")",
"arguments",
",",
"described",
"by",
"the",
"Ins",
"array",
",",
"into",
"the",
"specified",
"DAG",
"."
] | [
"AAP",
"AAP",
"ISD::InputArg",
"\"Unsupported calling convention\""
] | AAPISelLowering | LowerFormalArguments | AAP | MPU | LLVM | 11,600 | 86 | 1 | [] |
[
"<s>",
"static",
"void",
"sparc64_initialize_trampoline",
"(",
"rtx",
"m_tramp",
",",
"rtx",
"fnaddr",
",",
"rtx",
"cxt",
")",
"{",
"emit_move_insn",
"(",
"adjust_address",
"(",
"m_tramp",
",",
"SImode",
",",
"0",
")",
",",
"GEN_INT",
"(",
"trunc_int_for_mode",
"(",
"0x83414000",
",",
"SImode",
")",
")",
")",
";",
"emit_move_insn",
"(",
"adjust_address",
"(",
"m_tramp",
",",
"SImode",
",",
"4",
")",
",",
"GEN_INT",
"(",
"trunc_int_for_mode",
"(",
"0xca586018",
",",
"SImode",
")",
")",
")",
";",
"emit_move_insn",
"(",
"adjust_address",
"(",
"m_tramp",
",",
"SImode",
",",
"8",
")",
",",
"GEN_INT",
"(",
"trunc_int_for_mode",
"(",
"0x81c14000",
",",
"SImode",
")",
")",
")",
";",
"emit_move_insn",
"(",
"adjust_address",
"(",
"m_tramp",
",",
"SImode",
",",
"12",
")",
",",
"GEN_INT",
"(",
"trunc_int_for_mode",
"(",
"0xca586010",
",",
"SImode",
")",
")",
")",
";",
"emit_move_insn",
"(",
"adjust_address",
"(",
"m_tramp",
",",
"DImode",
",",
"16",
")",
",",
"cxt",
")",
";",
"emit_move_insn",
"(",
"adjust_address",
"(",
"m_tramp",
",",
"DImode",
",",
"24",
")",
",",
"fnaddr",
")",
";",
"emit_insn",
"(",
"gen_flushdi",
"(",
"validize_mem",
"(",
"adjust_address",
"(",
"m_tramp",
",",
"DImode",
",",
"0",
")",
")",
")",
")",
";",
"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",
")",
"emit_insn",
"(",
"gen_flushdi",
"(",
"validize_mem",
"(",
"adjust_address",
"(",
"m_tramp",
",",
"DImode",
",",
"8",
")",
")",
")",
")",
";",
"emit_library_call",
"(",
"gen_rtx_SYMBOL_REF",
"(",
"Pmode",
",",
"\"__enable_execute_stack\"",
")",
",",
"LCT_NORMAL",
",",
"VOIDmode",
",",
"1",
",",
"XEXP",
"(",
"m_tramp",
",",
"0",
")",
",",
"Pmode",
")",
";",
"}",
"</s>"
] | [
"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",
"."
] | [
"sparc",
"0",
"0x83414000",
"4",
"0xca586018",
"8",
"0x81c14000",
"12",
"0xca586010",
"16",
"24",
"0",
"8",
"\"__enable_execute_stack\"",
"1",
"0"
] | sparc4 | sparc64_initialize_trampoline | sparc | CPU | GCC | 11,601 | 218 | 1 | [] |
[
"<s>",
"bool",
"SITargetLowering",
"::",
"isNoopAddrSpaceCast",
"(",
"unsigned",
"SrcAS",
",",
"unsigned",
"DestAS",
")",
"const",
"{",
"return",
"isFlatGlobalAddrSpace",
"(",
"SrcAS",
")",
"&&",
"isFlatGlobalAddrSpace",
"(",
"DestAS",
")",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"a",
"cast",
"between",
"SrcAS",
"and",
"DestAS",
"is",
"a",
"noop",
"."
] | [
"AMDGPU",
"SI"
] | SIISelLowering (2) | isNoopAddrSpaceCast | AMDGPU | GPU | LLVM | 11,602 | 25 | 1 | [] |
[
"<s>",
"static",
"rtx",
"mep_convert_regnum",
"(",
"const",
"struct",
"cgen_regnum_operand",
"*",
"regnum",
",",
"rtx",
"arg",
")",
"{",
"if",
"(",
"regnum",
"->",
"count",
"==",
"0",
")",
"return",
"arg",
";",
"if",
"(",
"GET_CODE",
"(",
"arg",
")",
"!=",
"CONST_INT",
"||",
"INTVAL",
"(",
"arg",
")",
"<",
"0",
"||",
"INTVAL",
"(",
"arg",
")",
">=",
"regnum",
"->",
"count",
")",
"return",
"0",
";",
"return",
"gen_rtx_REG",
"(",
"SImode",
",",
"INTVAL",
"(",
"arg",
")",
"+",
"regnum",
"->",
"base",
")",
";",
"}",
"</s>"
] | [
"Apply",
"regnum",
"conversions",
"to",
"ARG",
"using",
"the",
"description",
"given",
"by",
"REGNUM",
".",
"Return",
"the",
"new",
"argument",
"on",
"success",
"and",
"null",
"on",
"failure",
"."
] | [
"mep",
"0",
"0",
"0"
] | mep | mep_convert_regnum | mep | CPU | GCC | 11,603 | 69 | 1 | [] |
[
"<s>",
"AMDGPUSubtarget",
"&",
"AMDGPUSubtarget",
"::",
"initializeSubtargetDependencies",
"(",
"const",
"Triple",
"&",
"TT",
",",
"StringRef",
"GPU",
",",
"StringRef",
"FS",
")",
"{",
"SmallString",
"<",
"256",
">",
"FullFS",
"(",
"\"+promote-alloca,+fp64-denormals,\"",
")",
";",
"if",
"(",
"isAmdHsaOS",
"(",
")",
")",
"FullFS",
"+=",
"\"+flat-for-global,\"",
";",
"FullFS",
"+=",
"FS",
";",
"ParseSubtargetFeatures",
"(",
"GPU",
",",
"FullFS",
")",
";",
"if",
"(",
"getGeneration",
"(",
")",
"<=",
"AMDGPUSubtarget",
"::",
"NORTHERN_ISLANDS",
")",
"{",
"FP32Denormals",
"=",
"false",
";",
"FP64Denormals",
"=",
"false",
";",
"}",
"if",
"(",
"MaxPrivateElementSize",
"==",
"0",
")",
"MaxPrivateElementSize",
"=",
"16",
";",
"return",
"*",
"this",
";",
"}",
"</s>"
] | [
"initializeSubtargetDependencies",
"-",
"Initializes",
"using",
"a",
"CPU",
",",
"a",
"TuneCPU",
",",
"and",
"feature",
"string",
"so",
"that",
"we",
"can",
"use",
"initializer",
"lists",
"for",
"subtarget",
"initialization",
"."
] | [
"AMDGPU",
"AMDGPU",
"AMDGPU",
"256",
"\"+promote-alloca,+fp64-denormals,\"",
"\"+flat-for-global,\"",
"AMDGPU",
"0",
"16"
] | AMDGPUSubtarget14 | initializeSubtargetDependencies | AMDGPU | GPU | LLVM | 11,604 | 83 | 1 | [] |
[
"<s>",
"bool",
"mayNeedRelaxation",
"(",
"const",
"MCInst",
"&",
")",
"const",
"override",
"{",
"return",
"false",
";",
"}",
"</s>"
] | [
"Check",
"whether",
"the",
"given",
"instruction",
"may",
"need",
"relaxation",
"."
] | [
"Lanai"
] | LanaiAsmBackend | mayNeedRelaxation | Lanai | CPU | LLVM | 11,605 | 14 | 1 | [] |
[
"<s>",
"bool",
"AArch64AsmPrinter",
"::",
"lowerOperand",
"(",
"const",
"MachineOperand",
"&",
"MO",
",",
"MCOperand",
"&",
"MCOp",
")",
"const",
"{",
"switch",
"(",
"MO",
".",
"getType",
"(",
")",
")",
"{",
"default",
":",
"llvm_unreachable",
"(",
"\"unknown operand type\"",
")",
";",
"case",
"MachineOperand",
"::",
"MO_Register",
":",
"if",
"(",
"MO",
".",
"isImplicit",
"(",
")",
")",
"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_FPImmediate",
":",
"{",
"assert",
"(",
"MO",
".",
"getFPImm",
"(",
")",
"->",
"isZero",
"(",
")",
"&&",
"\"Only fp imm 0.0 is supported\"",
")",
";",
"MCOp",
"=",
"MCOperand",
"::",
"CreateFPImm",
"(",
"0.0",
")",
";",
"break",
";",
"}",
"case",
"MachineOperand",
"::",
"MO_BlockAddress",
":",
"MCOp",
"=",
"lowerSymbolOperand",
"(",
"MO",
",",
"GetBlockAddressSymbol",
"(",
"MO",
".",
"getBlockAddress",
"(",
")",
")",
")",
";",
"break",
";",
"case",
"MachineOperand",
"::",
"MO_ExternalSymbol",
":",
"MCOp",
"=",
"lowerSymbolOperand",
"(",
"MO",
",",
"GetExternalSymbolSymbol",
"(",
"MO",
".",
"getSymbolName",
"(",
")",
")",
")",
";",
"break",
";",
"case",
"MachineOperand",
"::",
"MO_GlobalAddress",
":",
"MCOp",
"=",
"lowerSymbolOperand",
"(",
"MO",
",",
"getSymbol",
"(",
"MO",
".",
"getGlobal",
"(",
")",
")",
")",
";",
"break",
";",
"case",
"MachineOperand",
"::",
"MO_MachineBasicBlock",
":",
"MCOp",
"=",
"MCOperand",
"::",
"CreateExpr",
"(",
"MCSymbolRefExpr",
"::",
"Create",
"(",
"MO",
".",
"getMBB",
"(",
")",
"->",
"getSymbol",
"(",
")",
",",
"OutContext",
")",
")",
";",
"break",
";",
"case",
"MachineOperand",
"::",
"MO_JumpTableIndex",
":",
"MCOp",
"=",
"lowerSymbolOperand",
"(",
"MO",
",",
"GetJTISymbol",
"(",
"MO",
".",
"getIndex",
"(",
")",
")",
")",
";",
"break",
";",
"case",
"MachineOperand",
"::",
"MO_ConstantPoolIndex",
":",
"MCOp",
"=",
"lowerSymbolOperand",
"(",
"MO",
",",
"GetCPISymbol",
"(",
"MO",
".",
"getIndex",
"(",
")",
")",
")",
";",
"break",
";",
"case",
"MachineOperand",
"::",
"MO_RegisterMask",
":",
"return",
"false",
";",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"Wrapper",
"for",
"MCInstLowering.lowerOperand",
"(",
")",
"for",
"the",
"tblgen'erated",
"pseudo",
"lowering",
"."
] | [
"AArch64",
"AArch64",
"\"unknown operand type\"",
"\"Subregs should be eliminated!\"",
"\"Only fp imm 0.0 is supported\"",
"0.0"
] | AArch64MCInstLower25 | lowerOperand | AArch64 | CPU | LLVM | 11,606 | 287 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"MMIXTargetLowering",
"::",
"getTargetNodeName",
"(",
"unsigned",
"Opcode",
")",
"const",
"{",
"switch",
"(",
"(",
"MMIXISD",
"::",
"NodeType",
")",
"Opcode",
")",
"{",
"case",
"MMIXISD",
"::",
"FIRST_NUMBER",
":",
"break",
";",
"case",
"MMIXISD",
"::",
"RET_FLAG",
":",
"return",
"\"MMIXISD::RET_FLAG\"",
";",
"case",
"MMIXISD",
"::",
"CALL",
":",
"return",
"\"MMIXISD::CALL\"",
";",
"}",
"return",
"nullptr",
";",
"}",
"</s>"
] | [
"getTargetNodeName",
"-",
"This",
"method",
"returns",
"the",
"name",
"of",
"a",
"target",
"specific"
] | [
"MMIX",
"MMIX",
"MMIXISD::NodeType",
"MMIXISD::FIRST_NUMBER",
"MMIXISD::RET_FLAG",
"\"MMIXISD::RET_FLAG\"",
"MMIXISD::CALL",
"\"MMIXISD::CALL\""
] | MMIXISelLowering | getTargetNodeName | MMIX | CPU | LLVM | 11,607 | 50 | 1 | [] |
[
"<s>",
"static",
"bool",
"s390_call_saved_register_used",
"(",
"tree",
"call_expr",
")",
"{",
"CUMULATIVE_ARGS",
"cum_v",
";",
"cumulative_args_t",
"cum",
";",
"tree",
"parameter",
";",
"machine_mode",
"mode",
";",
"tree",
"type",
";",
"rtx",
"parm_rtx",
";",
"int",
"reg",
",",
"i",
";",
"INIT_CUMULATIVE_ARGS",
"(",
"cum_v",
",",
"NULL",
",",
"NULL",
",",
"0",
",",
"0",
")",
";",
"cum",
"=",
"pack_cumulative_args",
"(",
"&",
"cum_v",
")",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"call_expr_nargs",
"(",
"call_expr",
")",
";",
"i",
"++",
")",
"{",
"parameter",
"=",
"CALL_EXPR_ARG",
"(",
"call_expr",
",",
"i",
")",
";",
"gcc_assert",
"(",
"parameter",
")",
";",
"if",
"(",
"TREE_CODE",
"(",
"parameter",
")",
"==",
"ERROR_MARK",
")",
"return",
"true",
";",
"type",
"=",
"TREE_TYPE",
"(",
"parameter",
")",
";",
"gcc_assert",
"(",
"type",
")",
";",
"mode",
"=",
"TYPE_MODE",
"(",
"type",
")",
";",
"gcc_assert",
"(",
"mode",
")",
";",
"if",
"(",
"pass_by_reference",
"(",
"&",
"cum_v",
",",
"mode",
",",
"type",
",",
"true",
")",
")",
"{",
"mode",
"=",
"Pmode",
";",
"type",
"=",
"build_pointer_type",
"(",
"type",
")",
";",
"}",
"parm_rtx",
"=",
"s390_function_arg",
"(",
"cum",
",",
"mode",
",",
"type",
",",
"true",
")",
";",
"s390_function_arg_advance",
"(",
"cum",
",",
"mode",
",",
"type",
",",
"true",
")",
";",
"if",
"(",
"!",
"parm_rtx",
")",
"continue",
";",
"if",
"(",
"REG_P",
"(",
"parm_rtx",
")",
")",
"{",
"for",
"(",
"reg",
"=",
"0",
";",
"reg",
"<",
"HARD_REGNO_NREGS",
"(",
"REGNO",
"(",
"parm_rtx",
")",
",",
"GET_MODE",
"(",
"parm_rtx",
")",
")",
";",
"reg",
"++",
")",
"if",
"(",
"!",
"call_used_regs",
"[",
"reg",
"+",
"REGNO",
"(",
"parm_rtx",
")",
"]",
")",
"return",
"true",
";",
"}",
"if",
"(",
"GET_CODE",
"(",
"parm_rtx",
")",
"==",
"PARALLEL",
")",
"{",
"int",
"i",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"XVECLEN",
"(",
"parm_rtx",
",",
"0",
")",
";",
"i",
"++",
")",
"{",
"rtx",
"r",
"=",
"XEXP",
"(",
"XVECEXP",
"(",
"parm_rtx",
",",
"0",
",",
"i",
")",
",",
"0",
")",
";",
"gcc_assert",
"(",
"REG_P",
"(",
"r",
")",
")",
";",
"for",
"(",
"reg",
"=",
"0",
";",
"reg",
"<",
"HARD_REGNO_NREGS",
"(",
"REGNO",
"(",
"r",
")",
",",
"GET_MODE",
"(",
"r",
")",
")",
";",
"reg",
"++",
")",
"if",
"(",
"!",
"call_used_regs",
"[",
"reg",
"+",
"REGNO",
"(",
"r",
")",
"]",
")",
"return",
"true",
";",
"}",
"}",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Checks",
"whether",
"the",
"given",
"ARGUMENT_LIST",
"would",
"use",
"a",
"caller",
"saved",
"register",
".",
"This",
"is",
"used",
"to",
"decide",
"whether",
"sibling",
"call",
"optimization",
"could",
"be",
"performed",
"on",
"the",
"respective",
"function",
"call",
"."
] | [
"s390",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0"
] | s3905 | s390_call_saved_register_used | s390 | MPU | GCC | 11,608 | 330 | 1 | [] |
[
"<s>",
"bool",
"TOYFrameLowering",
"::",
"hasFP",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"return",
"MF",
".",
"getTarget",
"(",
")",
".",
"Options",
".",
"DisableFramePointerElim",
"(",
"MF",
")",
"||",
"MF",
".",
"getFrameInfo",
"(",
")",
".",
"hasVarSizedObjects",
"(",
")",
";",
"}",
"</s>"
] | [
"hasFP",
"-",
"Return",
"true",
"if",
"the",
"specified",
"function",
"should",
"have",
"a",
"dedicated",
"frame",
"pointer",
"register",
"."
] | [
"TOY",
"TOY"
] | TOYFrameLowering1 | hasFP | TOY | CPU | LLVM | 11,609 | 37 | 1 | [] |
[
"<s>",
"static",
"void",
"cr16_compute_frame",
"(",
"void",
")",
"{",
"int",
"stack_alignment",
"=",
"STACK_BOUNDARY",
"/",
"BITS_PER_UNIT",
";",
"int",
"padding_locals",
";",
"current_frame_info",
".",
"var_size",
"=",
"get_frame_size",
"(",
")",
";",
"padding_locals",
"=",
"current_frame_info",
".",
"var_size",
"%",
"stack_alignment",
";",
"if",
"(",
"padding_locals",
")",
"padding_locals",
"=",
"stack_alignment",
"-",
"padding_locals",
";",
"current_frame_info",
".",
"var_size",
"+=",
"padding_locals",
";",
"current_frame_info",
".",
"total_size",
"=",
"current_frame_info",
".",
"var_size",
"+",
"(",
"ACCUMULATE_OUTGOING_ARGS",
"?",
"crtl",
"->",
"outgoing_args_size",
":",
"0",
")",
";",
"}",
"</s>"
] | [
"Compute",
"the",
"size",
"of",
"the",
"local",
"area",
"and",
"the",
"size",
"to",
"be",
"adjusted",
"by",
"the",
"prologue",
"and",
"epilogue",
"."
] | [
"cr16",
"0"
] | cr162 | cr16_compute_frame | cr16 | MPU | GCC | 11,610 | 68 | 1 | [] |
[
"<s>",
"MachineInstr",
"*",
"foldMemoryOperandImpl",
"(",
"MachineFunction",
"&",
"MF",
",",
"MachineInstr",
"*",
"MI",
",",
"ArrayRef",
"<",
"unsigned",
">",
"Ops",
",",
"MachineInstr",
"*",
"LoadMI",
")",
"const",
"override",
"{",
"return",
"nullptr",
";",
"}",
"</s>"
] | [
"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",
"."
] | [
"Hexagon"
] | HexagonInstrInfo38 | foldMemoryOperandImpl | Hexagon | DSP | LLVM | 11,611 | 29 | 1 | [] |
[
"<s>",
"unsigned",
"PPCTargetLowering",
"::",
"getByValTypeAlignment",
"(",
"Type",
"*",
"Ty",
",",
"const",
"DataLayout",
"&",
"DL",
")",
"const",
"{",
"Align",
"Alignment",
"=",
"Subtarget",
".",
"isPPC64",
"(",
")",
"?",
"Align",
"(",
"8",
")",
":",
"Align",
"(",
"4",
")",
";",
"if",
"(",
"Subtarget",
".",
"hasAltivec",
"(",
")",
")",
"getMaxByValAlign",
"(",
"Ty",
",",
"Alignment",
",",
"Align",
"(",
"16",
")",
")",
";",
"return",
"Alignment",
".",
"value",
"(",
")",
";",
"}",
"</s>"
] | [
"Return",
"the",
"desired",
"alignment",
"for",
"ByVal",
"aggregate",
"function",
"arguments",
"in",
"the",
"caller",
"parameter",
"area",
"."
] | [
"PowerPC",
"PPC",
"PPC",
"8",
"4",
"16"
] | PPCISelLowering100 | getByValTypeAlignment | PowerPC | CPU | LLVM | 11,612 | 63 | 1 | [] |
[
"<s>",
"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",
"(",
")",
")",
")",
";",
"}",
"</s>"
] | [
"Targets",
"can",
"use",
"this",
"to",
"indicate",
"that",
"they",
"only",
"support",
"some",
"VECTOR_SHUFFLE",
"operations",
",",
"those",
"with",
"specific",
"masks",
"."
] | [
"X86",
"X86",
"64",
"0",
"2",
"0"
] | X86ISelLowering120 | isShuffleMaskLegal | X86 | CPU | LLVM | 11,613 | 289 | 1 | [] |
[
"<s>",
"bool",
"X86TargetLowering",
"::",
"isScalarFPTypeInSSEReg",
"(",
"EVT",
"VT",
")",
"const",
"{",
"return",
"(",
"VT",
"==",
"MVT",
"::",
"f64",
"&&",
"Subtarget",
".",
"hasSSE2",
"(",
")",
")",
"||",
"(",
"VT",
"==",
"MVT",
"::",
"f32",
"&&",
"Subtarget",
".",
"hasSSE1",
"(",
")",
")",
"||",
"(",
"VT",
"==",
"MVT",
"::",
"f16",
"&&",
"Subtarget",
".",
"hasFP16",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"the",
"specified",
"scalar",
"FP",
"type",
"is",
"computed",
"in",
"an",
"SSE",
"register",
",",
"not",
"on",
"the",
"X87",
"floating",
"point",
"stack",
"."
] | [
"X86",
"X86",
"MVT::f64",
"MVT::f32",
"MVT::f16"
] | X86ISelLowering100 | isScalarFPTypeInSSEReg | X86 | CPU | LLVM | 11,614 | 54 | 1 | [] |
[
"<s>",
"bool",
"HexagonInstrInfo",
"::",
"isProfitableToDupForIfCvt",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"unsigned",
"NumInstrs",
",",
"BranchProbability",
"Probability",
")",
"const",
"{",
"return",
"NumInstrs",
"<=",
"4",
";",
"}",
"</s>"
] | [
"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",
"."
] | [
"Hexagon",
"Hexagon",
"4"
] | HexagonInstrInfo (2) | isProfitableToDupForIfCvt | Hexagon | DSP | LLVM | 11,615 | 23 | 1 | [] |
[
"<s>",
"bool",
"AMDGPUPromoteAlloca",
"::",
"runOnFunction",
"(",
"Function",
"&",
"F",
")",
"{",
"FunctionType",
"*",
"FTy",
"=",
"F",
".",
"getFunctionType",
"(",
")",
";",
"LocalMemAvailable",
"=",
"ST",
".",
"getLocalMemorySize",
"(",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
",",
"e",
"=",
"FTy",
"->",
"getNumParams",
"(",
")",
";",
"i",
"!=",
"e",
";",
"++",
"i",
")",
"{",
"Type",
"*",
"ParamTy",
"=",
"FTy",
"->",
"getParamType",
"(",
"i",
")",
";",
"if",
"(",
"ParamTy",
"->",
"isPointerTy",
"(",
")",
"&&",
"ParamTy",
"->",
"getPointerAddressSpace",
"(",
")",
"==",
"AMDGPUAS",
"::",
"LOCAL_ADDRESS",
")",
"{",
"LocalMemAvailable",
"=",
"0",
";",
"DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"Function has local memory argument. Promoting to \"",
"\"local memory disabled.\\n\"",
")",
";",
"break",
";",
"}",
"}",
"if",
"(",
"LocalMemAvailable",
">",
"0",
")",
"{",
"for",
"(",
"Module",
"::",
"global_iterator",
"I",
"=",
"Mod",
"->",
"global_begin",
"(",
")",
",",
"E",
"=",
"Mod",
"->",
"global_end",
"(",
")",
";",
"I",
"!=",
"E",
";",
"++",
"I",
")",
"{",
"GlobalVariable",
"*",
"GV",
"=",
"&",
"*",
"I",
";",
"PointerType",
"*",
"GVTy",
"=",
"GV",
"->",
"getType",
"(",
")",
";",
"if",
"(",
"GVTy",
"->",
"getAddressSpace",
"(",
")",
"!=",
"AMDGPUAS",
"::",
"LOCAL_ADDRESS",
")",
"continue",
";",
"for",
"(",
"Value",
"::",
"use_iterator",
"U",
"=",
"GV",
"->",
"use_begin",
"(",
")",
",",
"UE",
"=",
"GV",
"->",
"use_end",
"(",
")",
";",
"U",
"!=",
"UE",
";",
"++",
"U",
")",
"{",
"Instruction",
"*",
"Use",
"=",
"dyn_cast",
"<",
"Instruction",
">",
"(",
"*",
"U",
")",
";",
"if",
"(",
"!",
"Use",
")",
"continue",
";",
"if",
"(",
"Use",
"->",
"getParent",
"(",
")",
"->",
"getParent",
"(",
")",
"==",
"&",
"F",
")",
"LocalMemAvailable",
"-=",
"Mod",
"->",
"getDataLayout",
"(",
")",
".",
"getTypeAllocSize",
"(",
"GVTy",
"->",
"getElementType",
"(",
")",
")",
";",
"}",
"}",
"}",
"LocalMemAvailable",
"=",
"std",
"::",
"max",
"(",
"0",
",",
"LocalMemAvailable",
")",
";",
"DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"LocalMemAvailable",
"<<",
"\"bytes free in local memory.\\n\"",
")",
";",
"visit",
"(",
"F",
")",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"runOnFunction",
"-",
"Virtual",
"method",
"overriden",
"by",
"subclasses",
"to",
"do",
"the",
"per-function",
"processing",
"of",
"the",
"pass",
"."
] | [
"AMDGPU",
"AMDGPU",
"0",
"AMDGPU",
"0",
"\"Function has local memory argument. Promoting to \"",
"\"local memory disabled.\\n\"",
"0",
"AMDGPU",
"0",
"\"bytes free in local memory.\\n\""
] | AMDGPUPromoteAlloca (2) | runOnFunction | AMDGPU | GPU | LLVM | 11,616 | 282 | 1 | [] |
[
"<s>",
"StringRef",
"ARM64MCExpr",
"::",
"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_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_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_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\"",
")",
";",
"}",
"}",
"</s>"
] | [
"Convert",
"the",
"variant",
"kind",
"into",
"an",
"ELF-appropriate",
"modifier",
"(",
"e.g",
"."
] | [
"ARM64",
"ARM64",
"\"\"",
"\":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_lo12:\"",
"\":dtprel_lo12_nc:\"",
"\":tprel_g2:\"",
"\":tprel_g1:\"",
"\":tprel_g1_nc:\"",
"\":tprel_g0:\"",
"\":tprel_g0_nc:\"",
"\":tprel_lo12:\"",
"\":tprel_lo12_nc:\"",
"\":tlsdesc_lo12:\"",
"\"\"",
"\":got:\"",
"\":got_lo12:\"",
"\":gottprel:\"",
"\":gottprel_lo12:\"",
"\":gottprel_g1:\"",
"\":gottprel_g0_nc:\"",
"\"\"",
"\":tlsdesc:\"",
"\"Invalid ELF symbol kind\""
] | ARM64MCExpr | getVariantKindName | ARM64 | CPU | LLVM | 11,617 | 246 | 1 | [] |
[
"<s>",
"void",
"applyFixup",
"(",
"const",
"MCAssembler",
"&",
"Asm",
",",
"const",
"MCFixup",
"&",
"Fixup",
",",
"const",
"MCValue",
"&",
"Target",
",",
"MutableArrayRef",
"<",
"char",
">",
"Data",
",",
"uint64_t",
"Value",
",",
"bool",
"IsResolved",
",",
"const",
"MCSubtargetInfo",
"*",
"STI",
")",
"const",
"override",
"{",
"unsigned",
"Size",
"=",
"0",
";",
"switch",
"(",
"(",
"unsigned",
")",
"Fixup",
".",
"getKind",
"(",
")",
")",
"{",
"case",
"FK_Data_1",
":",
"Size",
"=",
"1",
";",
"break",
";",
"case",
"FK_Data_2",
":",
"Size",
"=",
"2",
";",
"break",
";",
"case",
"FK_Data_4",
":",
"Size",
"=",
"4",
";",
"break",
";",
"case",
"FK_Data_8",
":",
"Size",
"=",
"8",
";",
"break",
";",
"default",
":",
"return",
";",
"}",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"<",
"Size",
";",
"++",
"i",
")",
"{",
"Data",
"[",
"i",
"+",
"Fixup",
".",
"getOffset",
"(",
")",
"]",
"|=",
"static_cast",
"<",
"uint8_t",
">",
"(",
"Value",
">>",
"(",
"i",
"*",
"8",
")",
")",
";",
"}",
"return",
";",
"}",
"</s>"
] | [
"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",
"."
] | [
"AAP",
"0",
"1",
"2",
"4",
"8",
"0",
"8"
] | AAPAsmBackend | applyFixup | AAP | MPU | LLVM | 11,618 | 140 | 1 | [] |
[
"<s>",
"bool",
"SIMemoryLegalizer",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"bool",
"Changed",
"=",
"false",
";",
"SIMemOpAccess",
"MOA",
"(",
"MF",
")",
";",
"CC",
"=",
"SICacheControl",
"::",
"create",
"(",
"MF",
".",
"getSubtarget",
"<",
"SISubtarget",
">",
"(",
")",
")",
";",
"for",
"(",
"auto",
"&",
"MBB",
":",
"MF",
")",
"{",
"for",
"(",
"auto",
"MI",
"=",
"MBB",
".",
"begin",
"(",
")",
";",
"MI",
"!=",
"MBB",
".",
"end",
"(",
")",
";",
"++",
"MI",
")",
"{",
"if",
"(",
"!",
"(",
"MI",
"->",
"getDesc",
"(",
")",
".",
"TSFlags",
"&",
"SIInstrFlags",
"::",
"maybeAtomic",
")",
")",
"continue",
";",
"if",
"(",
"const",
"auto",
"&",
"MOI",
"=",
"MOA",
".",
"getLoadInfo",
"(",
"MI",
")",
")",
"Changed",
"|=",
"expandLoad",
"(",
"MOI",
".",
"getValue",
"(",
")",
",",
"MI",
")",
";",
"else",
"if",
"(",
"const",
"auto",
"&",
"MOI",
"=",
"MOA",
".",
"getStoreInfo",
"(",
"MI",
")",
")",
"Changed",
"|=",
"expandStore",
"(",
"MOI",
".",
"getValue",
"(",
")",
",",
"MI",
")",
";",
"else",
"if",
"(",
"const",
"auto",
"&",
"MOI",
"=",
"MOA",
".",
"getAtomicFenceInfo",
"(",
"MI",
")",
")",
"Changed",
"|=",
"expandAtomicFence",
"(",
"MOI",
".",
"getValue",
"(",
")",
",",
"MI",
")",
";",
"else",
"if",
"(",
"const",
"auto",
"&",
"MOI",
"=",
"MOA",
".",
"getAtomicCmpxchgOrRmwInfo",
"(",
"MI",
")",
")",
"Changed",
"|=",
"expandAtomicCmpxchgOrRmw",
"(",
"MOI",
".",
"getValue",
"(",
")",
",",
"MI",
")",
";",
"}",
"}",
"Changed",
"|=",
"removeAtomicPseudoMIs",
"(",
")",
";",
"return",
"Changed",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"AMDGPU",
"SI",
"SI",
"SI",
"SI",
"SIInstrFlags::maybeAtomic"
] | SIMemoryLegalizer21 | runOnMachineFunction | AMDGPU | GPU | LLVM | 11,619 | 211 | 1 | [] |
[
"<s>",
"void",
"SIInstrInfo",
"::",
"storeRegToStackSlot",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"MI",
",",
"unsigned",
"SrcReg",
",",
"bool",
"isKill",
",",
"int",
"FrameIndex",
",",
"const",
"TargetRegisterClass",
"*",
"RC",
",",
"const",
"TargetRegisterInfo",
"*",
"TRI",
")",
"const",
"{",
"MachineFunction",
"*",
"MF",
"=",
"MBB",
".",
"getParent",
"(",
")",
";",
"SIMachineFunctionInfo",
"*",
"MFI",
"=",
"MF",
"->",
"getInfo",
"<",
"SIMachineFunctionInfo",
">",
"(",
")",
";",
"MachineFrameInfo",
"*",
"FrameInfo",
"=",
"MF",
"->",
"getFrameInfo",
"(",
")",
";",
"DebugLoc",
"DL",
"=",
"MBB",
".",
"findDebugLoc",
"(",
"MI",
")",
";",
"unsigned",
"Size",
"=",
"FrameInfo",
"->",
"getObjectSize",
"(",
"FrameIndex",
")",
";",
"unsigned",
"Align",
"=",
"FrameInfo",
"->",
"getObjectAlignment",
"(",
"FrameIndex",
")",
";",
"MachinePointerInfo",
"PtrInfo",
"=",
"MachinePointerInfo",
"::",
"getFixedStack",
"(",
"*",
"MF",
",",
"FrameIndex",
")",
";",
"MachineMemOperand",
"*",
"MMO",
"=",
"MF",
"->",
"getMachineMemOperand",
"(",
"PtrInfo",
",",
"MachineMemOperand",
"::",
"MOStore",
",",
"Size",
",",
"Align",
")",
";",
"if",
"(",
"RI",
".",
"isSGPRClass",
"(",
"RC",
")",
")",
"{",
"MFI",
"->",
"setHasSpilledSGPRs",
"(",
")",
";",
"unsigned",
"Opcode",
"=",
"getSGPRSpillSaveOpcode",
"(",
"RC",
"->",
"getSize",
"(",
")",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"MI",
",",
"DL",
",",
"get",
"(",
"Opcode",
")",
")",
".",
"addReg",
"(",
"SrcReg",
")",
".",
"addFrameIndex",
"(",
"FrameIndex",
")",
".",
"addMemOperand",
"(",
"MMO",
")",
";",
"return",
";",
"}",
"if",
"(",
"!",
"ST",
".",
"isVGPRSpillingEnabled",
"(",
"MFI",
")",
")",
"{",
"LLVMContext",
"&",
"Ctx",
"=",
"MF",
"->",
"getFunction",
"(",
")",
"->",
"getContext",
"(",
")",
";",
"Ctx",
".",
"emitError",
"(",
"\"SIInstrInfo::storeRegToStackSlot - Do not know how to\"",
"\" spill register\"",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"MI",
",",
"DL",
",",
"get",
"(",
"AMDGPU",
"::",
"KILL",
")",
")",
".",
"addReg",
"(",
"SrcReg",
")",
";",
"return",
";",
"}",
"assert",
"(",
"RI",
".",
"hasVGPRs",
"(",
"RC",
")",
"&&",
"\"Only VGPR spilling expected\"",
")",
";",
"unsigned",
"Opcode",
"=",
"getVGPRSpillSaveOpcode",
"(",
"RC",
"->",
"getSize",
"(",
")",
")",
";",
"MFI",
"->",
"setHasSpilledVGPRs",
"(",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"MI",
",",
"DL",
",",
"get",
"(",
"Opcode",
")",
")",
".",
"addReg",
"(",
"SrcReg",
")",
".",
"addFrameIndex",
"(",
"FrameIndex",
")",
".",
"addReg",
"(",
"MFI",
"->",
"getScratchRSrcReg",
"(",
")",
")",
".",
"addReg",
"(",
"MFI",
"->",
"getScratchWaveOffsetReg",
"(",
")",
")",
".",
"addImm",
"(",
"0",
")",
".",
"addMemOperand",
"(",
"MMO",
")",
";",
"}",
"</s>"
] | [
"Store",
"the",
"specified",
"register",
"of",
"the",
"given",
"register",
"class",
"to",
"the",
"specified",
"stack",
"frame",
"index",
"."
] | [
"AMDGPU",
"SI",
"SI",
"SI",
"\"SIInstrInfo::storeRegToStackSlot - Do not know how to\"",
"\" spill register\"",
"AMDGPU::KILL",
"\"Only VGPR spilling expected\"",
"0"
] | SIInstrInfo19 | storeRegToStackSlot | AMDGPU | GPU | LLVM | 11,620 | 330 | 1 | [] |
[
"<s>",
"EVT",
"ARMTargetLowering",
"::",
"getOptimalMemOpType",
"(",
"uint64_t",
"Size",
",",
"unsigned",
"DstAlign",
",",
"unsigned",
"SrcAlign",
",",
"bool",
"IsMemset",
",",
"bool",
"ZeroMemset",
",",
"bool",
"MemcpyStrSrc",
",",
"const",
"AttributeList",
"&",
"FuncAttributes",
")",
"const",
"{",
"if",
"(",
"(",
"!",
"IsMemset",
"||",
"ZeroMemset",
")",
"&&",
"Subtarget",
"->",
"hasNEON",
"(",
")",
"&&",
"!",
"FuncAttributes",
".",
"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",
";",
"}",
"</s>"
] | [
"It",
"returns",
"EVT",
":",
":Other",
"if",
"the",
"type",
"should",
"be",
"determined",
"using",
"generic",
"target-independent",
"logic",
"."
] | [
"ARM",
"ARM",
"16",
"16",
"MVT::v2f64",
"0",
"1",
"MVT::v2f64",
"8",
"8",
"MVT::f64",
"0",
"1",
"MVT::f64",
"MVT::Other"
] | ARMISelLowering122 | getOptimalMemOpType | ARM | CPU | LLVM | 11,621 | 151 | 1 | [] |
[
"<s>",
"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",
"||",
"Directive",
"==",
"PPC",
"::",
"DIR_PWR8",
")",
"return",
"1",
";",
"return",
"5",
"-",
"CurSlots",
";",
"}",
"return",
"ScoreboardHazardRecognizer",
"::",
"PreEmitNoops",
"(",
"SU",
")",
";",
"}",
"</s>"
] | [
"PreEmitNoops",
"-",
"This",
"callback",
"is",
"invoked",
"prior",
"to",
"emitting",
"an",
"instruction",
"."
] | [
"PowerPC",
"PPC",
"6",
"PPC",
"PPC::DIR_PWR6",
"PPC::DIR_PWR7",
"PPC::DIR_PWR8",
"1",
"5"
] | PPCHazardRecognizers29 | PreEmitNoops | PowerPC | CPU | LLVM | 11,622 | 78 | 1 | [] |
[
"<s>",
"static",
"poly_int64",
"aarch64_vl_bytes",
"(",
"machine_mode",
"mode",
",",
"unsigned",
"int",
"vec_flags",
")",
"{",
"if",
"(",
"vec_flags",
"&",
"VEC_PARTIAL",
")",
"return",
"GET_MODE_SIZE",
"(",
"mode",
")",
";",
"if",
"(",
"vec_flags",
"&",
"VEC_SVE_DATA",
")",
"return",
"BYTES_PER_SVE_VECTOR",
";",
"gcc_assert",
"(",
"vec_flags",
"&",
"VEC_SVE_PRED",
")",
";",
"return",
"BYTES_PER_SVE_PRED",
";",
"}",
"</s>"
] | [
"Return",
"the",
"number",
"of",
"defined",
"bytes",
"in",
"one",
"constituent",
"vector",
"of",
"SVE",
"mode",
"MODE",
",",
"which",
"has",
"vector",
"flags",
"VEC_FLAGS",
"."
] | [
"aarch64"
] | aarch64 | aarch64_vl_bytes | aarch64 | CPU | GCC | 11,623 | 44 | 1 | [] |
[
"<s>",
"XCoreSubtarget",
"::",
"XCoreSubtarget",
"(",
"const",
"std",
"::",
"string",
"&",
"TT",
",",
"const",
"std",
"::",
"string",
"&",
"CPU",
",",
"const",
"std",
"::",
"string",
"&",
"FS",
",",
"const",
"TargetMachine",
"&",
"TM",
")",
":",
"XCoreGenSubtargetInfo",
"(",
"TT",
",",
"CPU",
",",
"FS",
")",
",",
"InstrInfo",
"(",
")",
",",
"FrameLowering",
"(",
"*",
"this",
")",
",",
"TLInfo",
"(",
"TM",
",",
"*",
"this",
")",
",",
"TSInfo",
"(",
"*",
"TM",
".",
"getDataLayout",
"(",
")",
")",
"{",
"}",
"</s>"
] | [
"This",
"constructor",
"initializes",
"the",
"data",
"members",
"to",
"match",
"that",
"of",
"the",
"specified",
"triple",
"."
] | [
"XCore",
"XCore",
"XCore",
"XCore"
] | XCoreSubtarget6 | XCoreSubtarget | XCore | MPU | LLVM | 11,624 | 69 | 1 | [] |
[
"<s>",
"static",
"void",
"m68k_split_offset",
"(",
"rtx",
"x",
",",
"rtx",
"*",
"base",
",",
"HOST_WIDE_INT",
"*",
"offset",
")",
"{",
"*",
"offset",
"=",
"0",
";",
"if",
"(",
"GET_CODE",
"(",
"x",
")",
"==",
"PLUS",
"&&",
"GET_CODE",
"(",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
"==",
"CONST_INT",
")",
"{",
"*",
"offset",
"+=",
"INTVAL",
"(",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
";",
"x",
"=",
"XEXP",
"(",
"x",
",",
"0",
")",
";",
"}",
"*",
"base",
"=",
"x",
";",
"}",
"</s>"
] | [
"Split",
"X",
"into",
"a",
"base",
"and",
"a",
"constant",
"offset",
",",
"storing",
"them",
"in",
"*",
"BASE",
"and",
"*",
"OFFSET",
"respectively",
"."
] | [
"m68k",
"0",
"1",
"1",
"0"
] | m68k | m68k_split_offset | m68k | MPU | GCC | 11,625 | 72 | 1 | [] |
[
"<s>",
"Register",
"getStackAddress",
"(",
"uint64_t",
"Size",
",",
"int64_t",
"Offset",
",",
"MachinePointerInfo",
"&",
"MPO",
")",
"override",
"{",
"auto",
"&",
"MFI",
"=",
"MIRBuilder",
".",
"getMF",
"(",
")",
".",
"getFrameInfo",
"(",
")",
";",
"int",
"FI",
"=",
"MFI",
".",
"CreateFixedObject",
"(",
"Size",
",",
"Offset",
",",
"true",
")",
";",
"MPO",
"=",
"MachinePointerInfo",
"::",
"getFixedStack",
"(",
"MIRBuilder",
".",
"getMF",
"(",
")",
",",
"FI",
")",
";",
"Register",
"AddrReg",
"=",
"MRI",
".",
"createGenericVirtualRegister",
"(",
"LLT",
"::",
"pointer",
"(",
"AMDGPUAS",
"::",
"PRIVATE_ADDRESS",
",",
"32",
")",
")",
";",
"MIRBuilder",
".",
"buildFrameIndex",
"(",
"AddrReg",
",",
"FI",
")",
";",
"StackUsed",
"=",
"std",
"::",
"max",
"(",
"StackUsed",
",",
"Size",
"+",
"Offset",
")",
";",
"return",
"AddrReg",
";",
"}",
"</s>"
] | [
"Materialize",
"a",
"VReg",
"containing",
"the",
"address",
"of",
"the",
"specified",
"stack-based",
"object",
"."
] | [
"AMDGPU",
"AMDGPU",
"32"
] | AMDGPUCallLowering1 | getStackAddress | AMDGPU | GPU | LLVM | 11,626 | 103 | 1 | [] |
[
"<s>",
"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",
")",
")",
";",
"}",
"}",
"}",
"</s>"
] | [
"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",
"(",
")",
"."
] | [
"nds32",
"\"save_all\"",
"\"partial_save\"",
"\"nested\"",
"\"not_nested\"",
"\"nested_ready\"",
"\"interrupt\"",
"\"exception\"",
"\"reset\"",
"9",
"0",
"0",
"0",
"8",
"1",
"0",
"\"nmi\"",
"\"warm\"",
"0",
"0"
] | nds32-isr2 | nds32_construct_isr_vectors_information | nds32 | CPU | GCC | 11,627 | 469 | 1 | [] |
[
"<s>",
"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",
"(",
"std",
"::",
"max",
"(",
"16u",
",",
"TextSection",
".",
"getAlignment",
"(",
")",
")",
")",
";",
"DataSection",
".",
"setAlignment",
"(",
"std",
"::",
"max",
"(",
"16u",
",",
"DataSection",
".",
"getAlignment",
"(",
")",
")",
")",
";",
"BSSSection",
".",
"setAlignment",
"(",
"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",
"(",
"EFlags",
"&",
"ELF",
"::",
"EF_MIPS_CPIC",
"&&",
"getABI",
"(",
")",
".",
"IsN64",
"(",
")",
")",
"EFlags",
"|=",
"ELF",
"::",
"EF_MIPS_PIC",
";",
"MCA",
".",
"setELFHeaderEFlags",
"(",
"EFlags",
")",
";",
"MipsELFStreamer",
"&",
"MEF",
"=",
"static_cast",
"<",
"MipsELFStreamer",
"&",
">",
"(",
"Streamer",
")",
";",
"MEF",
".",
"EmitMipsOptionRecords",
"(",
")",
";",
"emitMipsAbiFlags",
"(",
")",
";",
"}",
"</s>"
] | [
"finish",
"-",
"after",
"all",
"the",
"new",
"live",
"ranges",
"have",
"been",
"created",
",",
"compute",
"the",
"remaining",
"live",
"range",
",",
"and",
"rewrite",
"instructions",
"to",
"use",
"the",
"new",
"registers",
"."
] | [
"Mips",
"Mips",
"16u",
"16u",
"16u",
"0",
"1",
"Mips::FeatureGP64Bit",
"Mips::FeatureMips64r2",
"Mips::FeatureMips64",
"Mips",
"Mips",
"Mips",
"Mips"
] | MipsTargetStreamer23 | finish | Mips | CPU | LLVM | 11,628 | 390 | 1 | [] |
[
"<s>",
"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",
")",
";",
"Modified",
"|=",
"MergeReturnIntoLDM",
"(",
"MBB",
")",
";",
"}",
"delete",
"RS",
";",
"return",
"Modified",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"ARM",
"ARM",
"ARM"
] | ARMLoadStoreOptimizer25 | runOnMachineFunction | ARM | CPU | LLVM | 11,629 | 126 | 1 | [] |
[
"<s>",
"bool",
"ARMAsmParser",
"::",
"ParseInstruction",
"(",
"const",
"StringRef",
"&",
"Name",
",",
"SMLoc",
"NameLoc",
",",
"SmallVectorImpl",
"<",
"MCParsedAsmOperand",
"*",
">",
"&",
"Operands",
")",
"{",
"OwningPtr",
"<",
"ARMOperand",
">",
"Op",
";",
"ARMOperand",
"::",
"CreateToken",
"(",
"Op",
",",
"Name",
",",
"NameLoc",
")",
";",
"Operands",
".",
"push_back",
"(",
"Op",
".",
"take",
"(",
")",
")",
";",
"SMLoc",
"Loc",
"=",
"Parser",
".",
"getTok",
"(",
")",
".",
"getLoc",
"(",
")",
";",
"if",
"(",
"getLexer",
"(",
")",
".",
"isNot",
"(",
"AsmToken",
"::",
"EndOfStatement",
")",
")",
"{",
"OwningPtr",
"<",
"ARMOperand",
">",
"Op",
";",
"if",
"(",
"ParseOperand",
"(",
"Op",
")",
")",
"return",
"true",
";",
"Operands",
".",
"push_back",
"(",
"Op",
".",
"take",
"(",
")",
")",
";",
"while",
"(",
"getLexer",
"(",
")",
".",
"is",
"(",
"AsmToken",
"::",
"Comma",
")",
")",
"{",
"Parser",
".",
"Lex",
"(",
")",
";",
"if",
"(",
"ParseOperand",
"(",
"Op",
")",
")",
"return",
"true",
";",
"Operands",
".",
"push_back",
"(",
"Op",
".",
"take",
"(",
")",
")",
";",
"}",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"ParseInstruction",
"-",
"Parse",
"one",
"assembly",
"instruction",
"."
] | [
"ARM",
"ARM",
"ARM",
"ARM",
"ARM"
] | ARMAsmParser13 | ParseInstruction | ARM | CPU | LLVM | 11,630 | 151 | 1 | [] |
[
"<s>",
"bool",
"SPIRVAsmPrinter",
"::",
"doInitialization",
"(",
"Module",
"&",
"M",
")",
"{",
"ModuleSectionsEmitted",
"=",
"false",
";",
"return",
"AsmPrinter",
"::",
"doInitialization",
"(",
"M",
")",
";",
"}",
"</s>"
] | [
"Set",
"up",
"the",
"AsmPrinter",
"when",
"we",
"are",
"working",
"on",
"a",
"new",
"module",
"."
] | [
"SPIRV",
"SPIRV"
] | SPIRVAsmPrinter | doInitialization | SPIRV | Virtual ISA | LLVM | 11,631 | 23 | 1 | [] |
[
"<s>",
"bool",
"MipsSETargetLowering",
"::",
"allowsMisalignedMemoryAccesses",
"(",
"EVT",
"VT",
",",
"unsigned",
",",
"Align",
",",
"MachineMemOperand",
"::",
"Flags",
",",
"bool",
"*",
"Fast",
")",
"const",
"{",
"MVT",
"::",
"SimpleValueType",
"SVT",
"=",
"VT",
".",
"getSimpleVT",
"(",
")",
".",
"SimpleTy",
";",
"if",
"(",
"Subtarget",
".",
"systemSupportsUnalignedAccess",
"(",
")",
")",
"{",
"if",
"(",
"Fast",
")",
"*",
"Fast",
"=",
"true",
";",
"return",
"true",
";",
"}",
"switch",
"(",
"SVT",
")",
"{",
"case",
"MVT",
"::",
"i64",
":",
"case",
"MVT",
"::",
"i32",
":",
"if",
"(",
"Fast",
")",
"*",
"Fast",
"=",
"true",
";",
"return",
"true",
";",
"default",
":",
"return",
"false",
";",
"}",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"target",
"allows",
"unaligned",
"memory",
"accesses",
"of",
"the",
"specified",
"type",
"."
] | [
"Mips",
"Mips",
"MVT::SimpleValueType",
"MVT::i64",
"MVT::i32"
] | MipsSEISelLowering18 | allowsMisalignedMemoryAccesses | Mips | CPU | LLVM | 11,632 | 91 | 1 | [] |
[
"<s>",
"rtx",
"thumb_legitimize_address",
"(",
"rtx",
"x",
",",
"rtx",
"orig_x",
",",
"machine_mode",
"mode",
")",
"{",
"if",
"(",
"GET_CODE",
"(",
"x",
")",
"==",
"PLUS",
"&&",
"CONST_INT_P",
"(",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
"&&",
"(",
"INTVAL",
"(",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
">=",
"32",
"*",
"GET_MODE_SIZE",
"(",
"mode",
")",
"||",
"INTVAL",
"(",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
"<",
"0",
")",
")",
"{",
"rtx",
"xop0",
"=",
"XEXP",
"(",
"x",
",",
"0",
")",
";",
"rtx",
"xop1",
"=",
"XEXP",
"(",
"x",
",",
"1",
")",
";",
"HOST_WIDE_INT",
"offset",
"=",
"INTVAL",
"(",
"xop1",
")",
";",
"if",
"(",
"optimize_size",
"&&",
"offset",
">=",
"0",
"&&",
"offset",
"<",
"256",
"+",
"31",
"*",
"GET_MODE_SIZE",
"(",
"mode",
")",
")",
"{",
"HOST_WIDE_INT",
"delta",
";",
"if",
"(",
"offset",
">=",
"256",
")",
"delta",
"=",
"offset",
"-",
"(",
"256",
"-",
"GET_MODE_SIZE",
"(",
"mode",
")",
")",
";",
"else",
"if",
"(",
"offset",
"<",
"32",
"*",
"GET_MODE_SIZE",
"(",
"mode",
")",
"+",
"8",
")",
"delta",
"=",
"31",
"*",
"GET_MODE_SIZE",
"(",
"mode",
")",
";",
"else",
"delta",
"=",
"offset",
"&",
"(",
"~",
"31",
"*",
"GET_MODE_SIZE",
"(",
"mode",
")",
")",
";",
"xop0",
"=",
"force_operand",
"(",
"plus_constant",
"(",
"Pmode",
",",
"xop0",
",",
"offset",
"-",
"delta",
")",
",",
"NULL_RTX",
")",
";",
"x",
"=",
"plus_constant",
"(",
"Pmode",
",",
"xop0",
",",
"delta",
")",
";",
"}",
"else",
"if",
"(",
"offset",
"<",
"0",
"&&",
"offset",
">",
"-",
"256",
")",
"x",
"=",
"force_operand",
"(",
"x",
",",
"NULL_RTX",
")",
";",
"else",
"{",
"xop1",
"=",
"force_reg",
"(",
"SImode",
",",
"xop1",
")",
";",
"x",
"=",
"gen_rtx_PLUS",
"(",
"SImode",
",",
"xop0",
",",
"xop1",
")",
";",
"}",
"}",
"else",
"if",
"(",
"GET_CODE",
"(",
"x",
")",
"==",
"PLUS",
"&&",
"s_register_operand",
"(",
"XEXP",
"(",
"x",
",",
"1",
")",
",",
"SImode",
")",
"&&",
"!",
"s_register_operand",
"(",
"XEXP",
"(",
"x",
",",
"0",
")",
",",
"SImode",
")",
")",
"{",
"rtx",
"xop0",
"=",
"force_operand",
"(",
"XEXP",
"(",
"x",
",",
"0",
")",
",",
"NULL_RTX",
")",
";",
"x",
"=",
"gen_rtx_PLUS",
"(",
"SImode",
",",
"xop0",
",",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
";",
"}",
"if",
"(",
"flag_pic",
")",
"{",
"rtx",
"new_x",
"=",
"legitimize_pic_address",
"(",
"orig_x",
",",
"mode",
",",
"NULL_RTX",
",",
"NULL_RTX",
",",
"false",
")",
";",
"if",
"(",
"new_x",
"!=",
"orig_x",
")",
"x",
"=",
"new_x",
";",
"}",
"return",
"x",
";",
"}",
"</s>"
] | [
"Try",
"machine-dependent",
"ways",
"of",
"modifying",
"an",
"illegitimate",
"Thumb",
"address",
"to",
"be",
"legitimate",
".",
"If",
"we",
"find",
"one",
",",
"return",
"the",
"new",
",",
"valid",
"address",
"."
] | [
"arm",
"1",
"1",
"32",
"1",
"0",
"0",
"1",
"0",
"256",
"31",
"256",
"256",
"32",
"8",
"31",
"31",
"0",
"256",
"1",
"0",
"0",
"1"
] | arm | thumb_legitimize_address | arm | CPU | GCC | 11,633 | 351 | 1 | [] |
[
"<s>",
"void",
"SIInstrInfo",
"::",
"loadRegFromStackSlot",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"MI",
",",
"unsigned",
"DestReg",
",",
"int",
"FrameIndex",
",",
"const",
"TargetRegisterClass",
"*",
"RC",
",",
"const",
"TargetRegisterInfo",
"*",
"TRI",
")",
"const",
"{",
"MachineFunction",
"*",
"MF",
"=",
"MBB",
".",
"getParent",
"(",
")",
";",
"SIMachineFunctionInfo",
"*",
"MFI",
"=",
"MF",
"->",
"getInfo",
"<",
"SIMachineFunctionInfo",
">",
"(",
")",
";",
"MachineFrameInfo",
"&",
"FrameInfo",
"=",
"MF",
"->",
"getFrameInfo",
"(",
")",
";",
"const",
"DebugLoc",
"&",
"DL",
"=",
"MBB",
".",
"findDebugLoc",
"(",
"MI",
")",
";",
"unsigned",
"Align",
"=",
"FrameInfo",
".",
"getObjectAlignment",
"(",
"FrameIndex",
")",
";",
"unsigned",
"Size",
"=",
"FrameInfo",
".",
"getObjectSize",
"(",
"FrameIndex",
")",
";",
"unsigned",
"SpillSize",
"=",
"TRI",
"->",
"getSpillSize",
"(",
"*",
"RC",
")",
";",
"MachinePointerInfo",
"PtrInfo",
"=",
"MachinePointerInfo",
"::",
"getFixedStack",
"(",
"*",
"MF",
",",
"FrameIndex",
")",
";",
"MachineMemOperand",
"*",
"MMO",
"=",
"MF",
"->",
"getMachineMemOperand",
"(",
"PtrInfo",
",",
"MachineMemOperand",
"::",
"MOLoad",
",",
"Size",
",",
"Align",
")",
";",
"if",
"(",
"RI",
".",
"isSGPRClass",
"(",
"RC",
")",
")",
"{",
"MFI",
"->",
"setHasSpilledSGPRs",
"(",
")",
";",
"const",
"MCInstrDesc",
"&",
"OpDesc",
"=",
"get",
"(",
"getSGPRSpillRestoreOpcode",
"(",
"SpillSize",
")",
")",
";",
"if",
"(",
"TargetRegisterInfo",
"::",
"isVirtualRegister",
"(",
"DestReg",
")",
"&&",
"SpillSize",
"==",
"4",
")",
"{",
"MachineRegisterInfo",
"&",
"MRI",
"=",
"MF",
"->",
"getRegInfo",
"(",
")",
";",
"MRI",
".",
"constrainRegClass",
"(",
"DestReg",
",",
"&",
"AMDGPU",
"::",
"SReg_32_XM0RegClass",
")",
";",
"}",
"if",
"(",
"RI",
".",
"spillSGPRToVGPR",
"(",
")",
")",
"FrameInfo",
".",
"setStackID",
"(",
"FrameIndex",
",",
"TargetStackID",
"::",
"SGPRSpill",
")",
";",
"MachineInstrBuilder",
"Spill",
"=",
"BuildMI",
"(",
"MBB",
",",
"MI",
",",
"DL",
",",
"OpDesc",
",",
"DestReg",
")",
".",
"addFrameIndex",
"(",
"FrameIndex",
")",
".",
"addMemOperand",
"(",
"MMO",
")",
".",
"addReg",
"(",
"MFI",
"->",
"getScratchRSrcReg",
"(",
")",
",",
"RegState",
"::",
"Implicit",
")",
".",
"addReg",
"(",
"MFI",
"->",
"getStackPtrOffsetReg",
"(",
")",
",",
"RegState",
"::",
"Implicit",
")",
";",
"if",
"(",
"ST",
".",
"hasScalarStores",
"(",
")",
")",
"{",
"Spill",
".",
"addReg",
"(",
"AMDGPU",
"::",
"M0",
",",
"RegState",
"::",
"ImplicitDefine",
"|",
"RegState",
"::",
"Dead",
")",
";",
"}",
"return",
";",
"}",
"assert",
"(",
"RI",
".",
"hasVGPRs",
"(",
"RC",
")",
"&&",
"\"Only VGPR spilling expected\"",
")",
";",
"unsigned",
"Opcode",
"=",
"getVGPRSpillRestoreOpcode",
"(",
"SpillSize",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"MI",
",",
"DL",
",",
"get",
"(",
"Opcode",
")",
",",
"DestReg",
")",
".",
"addFrameIndex",
"(",
"FrameIndex",
")",
".",
"addReg",
"(",
"MFI",
"->",
"getScratchRSrcReg",
"(",
")",
")",
".",
"addReg",
"(",
"MFI",
"->",
"getStackPtrOffsetReg",
"(",
")",
")",
".",
"addImm",
"(",
"0",
")",
".",
"addMemOperand",
"(",
"MMO",
")",
";",
"}",
"</s>"
] | [
"Load",
"the",
"specified",
"register",
"of",
"the",
"given",
"register",
"class",
"from",
"the",
"specified",
"stack",
"frame",
"index",
"."
] | [
"AMDGPU",
"SI",
"SI",
"SI",
"4",
"AMDGPU::SReg_32_XM0RegClass",
"AMDGPU::M0",
"\"Only VGPR spilling expected\"",
"0"
] | SIInstrInfo28 | loadRegFromStackSlot | AMDGPU | GPU | LLVM | 11,634 | 377 | 1 | [] |
[
"<s>",
"int",
"ia64_epilogue_uses",
"(",
"int",
"regno",
")",
"{",
"switch",
"(",
"regno",
")",
"{",
"case",
"R_GR",
"(",
"1",
")",
":",
"return",
"!",
"(",
"TARGET_AUTO_PIC",
"||",
"TARGET_NO_PIC",
")",
";",
"case",
"IN_REG",
"(",
"0",
")",
":",
"case",
"IN_REG",
"(",
"1",
")",
":",
"case",
"IN_REG",
"(",
"2",
")",
":",
"case",
"IN_REG",
"(",
"3",
")",
":",
"case",
"IN_REG",
"(",
"4",
")",
":",
"case",
"IN_REG",
"(",
"5",
")",
":",
"case",
"IN_REG",
"(",
"6",
")",
":",
"case",
"IN_REG",
"(",
"7",
")",
":",
"return",
"lookup_attribute",
"(",
"\"syscall_linkage\"",
",",
"TYPE_ATTRIBUTES",
"(",
"TREE_TYPE",
"(",
"current_function_decl",
")",
")",
")",
"!=",
"NULL",
";",
"case",
"R_BR",
"(",
"0",
")",
":",
"return",
"1",
";",
"case",
"AR_PFS_REGNUM",
":",
"return",
"1",
";",
"default",
":",
"return",
"0",
";",
"}",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"REGNO",
"is",
"used",
"by",
"the",
"epilogue",
"."
] | [
"ia64",
"1",
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"\"syscall_linkage\"",
"0",
"1",
"1",
"0"
] | ia64 | ia64_epilogue_uses | ia64 | CPU | GCC | 11,635 | 112 | 1 | [] |
[
"<s>",
"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\"",
")",
";",
"}",
"</s>"
] | [
"Decide",
"if",
"a",
"base",
"class",
"of",
"a",
"class",
"should",
"also",
"have",
"its",
"vtable",
"and",
"rtti",
"exported",
"."
] | [
"sh",
"0",
"0",
"\"\"",
"0",
"\" EXPORTed [base class of exported class]\\n\""
] | symbian | symbian_possibly_export_base_class | sh | CPU | GCC | 11,636 | 188 | 1 | [] |
[
"<s>",
"static",
"void",
"irq_range",
"(",
"const",
"char",
"*",
"cstr",
")",
"{",
"int",
"i",
",",
"first",
",",
"last",
",",
"blink",
",",
"lpcount",
",",
"xreg",
";",
"char",
"*",
"str",
",",
"*",
"dash",
",",
"*",
"comma",
";",
"i",
"=",
"strlen",
"(",
"cstr",
")",
";",
"str",
"=",
"(",
"char",
"*",
")",
"alloca",
"(",
"i",
"+",
"1",
")",
";",
"memcpy",
"(",
"str",
",",
"cstr",
",",
"i",
"+",
"1",
")",
";",
"blink",
"=",
"-",
"1",
";",
"lpcount",
"=",
"-",
"1",
";",
"dash",
"=",
"strchr",
"(",
"str",
",",
"'-'",
")",
";",
"if",
"(",
"!",
"dash",
")",
"{",
"warning",
"(",
"OPT_mirq_ctrl_saved_",
",",
"\"missing dash\"",
")",
";",
"return",
";",
"}",
"*",
"dash",
"=",
"'\\0'",
";",
"comma",
"=",
"strchr",
"(",
"dash",
"+",
"1",
",",
"','",
")",
";",
"if",
"(",
"comma",
")",
"*",
"comma",
"=",
"'\\0'",
";",
"first",
"=",
"decode_reg_name",
"(",
"str",
")",
";",
"if",
"(",
"first",
"!=",
"0",
")",
"{",
"warning",
"(",
"OPT_mirq_ctrl_saved_",
",",
"\"first register must be R0\"",
")",
";",
"return",
";",
"}",
"if",
"(",
"!",
"strcmp",
"(",
"dash",
"+",
"1",
",",
"\"ilink\"",
")",
")",
"last",
"=",
"29",
";",
"else",
"last",
"=",
"decode_reg_name",
"(",
"dash",
"+",
"1",
")",
";",
"if",
"(",
"last",
"<",
"0",
")",
"{",
"warning",
"(",
"OPT_mirq_ctrl_saved_",
",",
"\"unknown register name: %s\"",
",",
"dash",
"+",
"1",
")",
";",
"return",
";",
"}",
"if",
"(",
"!",
"(",
"last",
"&",
"0x01",
")",
")",
"{",
"warning",
"(",
"OPT_mirq_ctrl_saved_",
",",
"\"last register name %s must be an odd register\"",
",",
"dash",
"+",
"1",
")",
";",
"return",
";",
"}",
"*",
"dash",
"=",
"'-'",
";",
"if",
"(",
"first",
">",
"last",
")",
"{",
"warning",
"(",
"OPT_mirq_ctrl_saved_",
",",
"\"%s-%s is an empty range\"",
",",
"str",
",",
"dash",
"+",
"1",
")",
";",
"return",
";",
"}",
"while",
"(",
"comma",
")",
"{",
"*",
"comma",
"=",
"','",
";",
"str",
"=",
"comma",
"+",
"1",
";",
"comma",
"=",
"strchr",
"(",
"str",
",",
"','",
")",
";",
"if",
"(",
"comma",
")",
"*",
"comma",
"=",
"'\\0'",
";",
"xreg",
"=",
"decode_reg_name",
"(",
"str",
")",
";",
"switch",
"(",
"xreg",
")",
"{",
"case",
"31",
":",
"blink",
"=",
"31",
";",
"break",
";",
"case",
"60",
":",
"lpcount",
"=",
"60",
";",
"break",
";",
"default",
":",
"warning",
"(",
"OPT_mirq_ctrl_saved_",
",",
"\"unknown register name: %s\"",
",",
"str",
")",
";",
"return",
";",
"}",
"}",
"irq_ctrl_saved",
".",
"irq_save_last_reg",
"=",
"last",
";",
"irq_ctrl_saved",
".",
"irq_save_blink",
"=",
"(",
"blink",
"==",
"31",
")",
"||",
"(",
"last",
"==",
"31",
")",
";",
"irq_ctrl_saved",
".",
"irq_save_lpcount",
"=",
"(",
"lpcount",
"==",
"60",
")",
";",
"}",
"</s>"
] | [
"Parse",
"-mirq-ctrl-saved=RegisterRange",
",",
"blink",
",",
"lp_copunt",
".",
"The",
"register",
"range",
"is",
"specified",
"as",
"two",
"registers",
"separated",
"by",
"a",
"dash",
".",
"It",
"always",
"starts",
"with",
"r0",
",",
"and",
"its",
"upper",
"limit",
"is",
"fp",
"register",
".",
"blink",
"and",
"lp_count",
"registers",
"are",
"optional",
"."
] | [
"arc",
"1",
"1",
"1",
"1",
"\"missing dash\"",
"1",
"0",
"\"first register must be R0\"",
"1",
"\"ilink\"",
"29",
"1",
"0",
"\"unknown register name: %s\"",
"1",
"0x01",
"\"last register name %s must be an odd register\"",
"1",
"\"%s-%s is an empty range\"",
"1",
"1",
"31",
"31",
"60",
"60",
"\"unknown register name: %s\"",
"31",
"31",
"60"
] | arc | irq_range | arc | MPU | GCC | 11,637 | 359 | 1 | [] |
[
"<s>",
"SMLoc",
"getStartLoc",
"(",
")",
"const",
"{",
"return",
"StartLoc",
";",
"}",
"</s>"
] | [
"getStartLoc",
"-",
"Get",
"the",
"location",
"of",
"the",
"first",
"token",
"of",
"this",
"operand",
"."
] | [
"Patmos"
] | PatmosAsmParser | getStartLoc | Patmos | VLIW | LLVM | 11,638 | 10 | 1 | [] |
[
"<s>",
"void",
"UnwindOpcodeAssembler",
"::",
"EmitRegSave",
"(",
"uint32_t",
"RegSave",
")",
"{",
"if",
"(",
"RegSave",
"==",
"0u",
")",
"{",
"EmitInt8",
"(",
"ARM",
"::",
"EHABI",
"::",
"UNWIND_OPCODE_POP_RA_AUTH_CODE",
")",
";",
"return",
";",
"}",
"if",
"(",
"RegSave",
"&",
"(",
"1u",
"<<",
"4",
")",
")",
"{",
"uint32_t",
"Mask",
"=",
"RegSave",
"&",
"0xff0u",
";",
"uint32_t",
"Range",
"=",
"countTrailingOnes",
"(",
"Mask",
">>",
"5",
")",
";",
"Mask",
"&=",
"~",
"(",
"0xffffffe0u",
"<<",
"Range",
")",
";",
"uint32_t",
"UnmaskedReg",
"=",
"RegSave",
"&",
"0xfff0u",
"&",
"(",
"~",
"Mask",
")",
";",
"if",
"(",
"UnmaskedReg",
"==",
"0u",
")",
"{",
"EmitInt8",
"(",
"ARM",
"::",
"EHABI",
"::",
"UNWIND_OPCODE_POP_REG_RANGE_R4",
"|",
"Range",
")",
";",
"RegSave",
"&=",
"0x000fu",
";",
"}",
"else",
"if",
"(",
"UnmaskedReg",
"==",
"(",
"1u",
"<<",
"14",
")",
")",
"{",
"EmitInt8",
"(",
"ARM",
"::",
"EHABI",
"::",
"UNWIND_OPCODE_POP_REG_RANGE_R4_R14",
"|",
"Range",
")",
";",
"RegSave",
"&=",
"0x000fu",
";",
"}",
"}",
"if",
"(",
"(",
"RegSave",
"&",
"0xfff0u",
")",
"!=",
"0",
")",
"EmitInt16",
"(",
"ARM",
"::",
"EHABI",
"::",
"UNWIND_OPCODE_POP_REG_MASK_R4",
"|",
"(",
"RegSave",
">>",
"4",
")",
")",
";",
"if",
"(",
"(",
"RegSave",
"&",
"0x000fu",
")",
"!=",
"0",
")",
"EmitInt16",
"(",
"ARM",
"::",
"EHABI",
"::",
"UNWIND_OPCODE_POP_REG_MASK",
"|",
"(",
"RegSave",
"&",
"0x000fu",
")",
")",
";",
"}",
"</s>"
] | [
"Emit",
"unwind",
"opcodes",
"for",
".save",
"directives",
"."
] | [
"ARM",
"0u",
"ARM::EHABI",
"1u",
"4",
"0xff0u",
"5",
"0xffffffe0u",
"0xfff0u",
"0u",
"ARM::EHABI",
"0x000fu",
"1u",
"14",
"ARM::EHABI",
"0x000fu",
"0xfff0u",
"0",
"ARM::EHABI",
"4",
"0x000fu",
"0",
"ARM::EHABI",
"0x000fu"
] | ARMUnwindOpAsm5 | EmitRegSave | ARM | CPU | LLVM | 11,639 | 180 | 1 | [] |
[
"<s>",
"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",
"(",
"\"addi %0,%0,%1\"",
",",
"xops",
")",
";",
"xops",
"[",
"1",
"]",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"0",
")",
";",
"output_asm_insn",
"(",
"\"stw %1,0(%0)\"",
",",
"xops",
")",
";",
"xops",
"[",
"1",
"]",
"=",
"reg2",
";",
"if",
"(",
"TARGET_64BIT",
")",
"output_asm_insn",
"(",
"\"cmpd 0,%0,%1\"",
",",
"xops",
")",
";",
"else",
"output_asm_insn",
"(",
"\"cmpw 0,%0,%1\"",
",",
"xops",
")",
";",
"fputs",
"(",
"\"\\tbne 0,\"",
",",
"asm_out_file",
")",
";",
"assemble_name_raw",
"(",
"asm_out_file",
",",
"loop_lab",
")",
";",
"fputc",
"(",
"'\\n'",
",",
"asm_out_file",
")",
";",
"return",
"\"\"",
";",
"}",
"</s>"
] | [
"Wrapper",
"around",
"the",
"output_probe_stack_range",
"routines",
"."
] | [
"rs6000",
"0",
"32",
"2",
"\"LPSRL\"",
"0",
"1",
"\"addi %0,%0,%1\"",
"1",
"0",
"\"stw %1,0(%0)\"",
"1",
"\"cmpd 0,%0,%1\"",
"\"cmpw 0,%0,%1\"",
"\"\\tbne 0,\"",
"\"\""
] | rs60005 | output_probe_stack_range | rs6000 | CPU | GCC | 11,640 | 142 | 1 | [] |
[
"<s>",
"void",
"MCallSubGraph",
"::",
"view",
"(",
")",
"{",
"ViewGraph",
"(",
"*",
"this",
",",
"\"MCallSubGraph\"",
")",
";",
"}",
"</s>"
] | [
"Opens",
"a",
"viewer",
"to",
"show",
"the",
"GraphViz",
"visualization",
"of",
"the",
"regions",
"."
] | [
"Patmos",
"\"MCallSubGraph\""
] | PatmosCallGraphBuilder | view | Patmos | VLIW | LLVM | 11,641 | 16 | 1 | [] |
[
"<s>",
"static",
"bool",
"microblaze_const_double_ok",
"(",
"rtx",
"op",
",",
"machine_mode",
"mode",
")",
"{",
"REAL_VALUE_TYPE",
"d",
";",
"if",
"(",
"GET_CODE",
"(",
"op",
")",
"!=",
"CONST_DOUBLE",
")",
"return",
"0",
";",
"if",
"(",
"GET_MODE",
"(",
"op",
")",
"==",
"VOIDmode",
")",
"return",
"1",
";",
"if",
"(",
"mode",
"!=",
"SFmode",
"&&",
"mode",
"!=",
"DFmode",
")",
"return",
"0",
";",
"if",
"(",
"op",
"==",
"CONST0_RTX",
"(",
"mode",
")",
")",
"return",
"1",
";",
"d",
"=",
"*",
"CONST_DOUBLE_REAL_VALUE",
"(",
"op",
")",
";",
"if",
"(",
"REAL_VALUE_ISNAN",
"(",
"d",
")",
")",
"return",
"FALSE",
";",
"if",
"(",
"REAL_VALUE_NEGATIVE",
"(",
"d",
")",
")",
"d",
"=",
"real_value_negate",
"(",
"&",
"d",
")",
";",
"if",
"(",
"mode",
"==",
"DFmode",
")",
"{",
"if",
"(",
"real_less",
"(",
"&",
"d",
",",
"&",
"dfhigh",
")",
"&&",
"real_less",
"(",
"&",
"dflow",
",",
"&",
"d",
")",
")",
"return",
"1",
";",
"}",
"else",
"{",
"if",
"(",
"real_less",
"(",
"&",
"d",
",",
"&",
"sfhigh",
")",
"&&",
"real_less",
"(",
"&",
"sflow",
",",
"&",
"d",
")",
")",
"return",
"1",
";",
"}",
"return",
"0",
";",
"}",
"</s>"
] | [
"Return",
"truth",
"value",
"if",
"a",
"CONST_DOUBLE",
"is",
"ok",
"to",
"be",
"a",
"legitimate",
"constant",
"."
] | [
"microblaze",
"0",
"1",
"0",
"1",
"1",
"1",
"0"
] | microblaze | microblaze_const_double_ok | microblaze | MPU | GCC | 11,642 | 157 | 1 | [] |
[
"<s>",
"static",
"rtx",
"mips_prepare_builtin_arg",
"(",
"enum",
"insn_code",
"icode",
",",
"unsigned",
"int",
"op",
",",
"tree",
"*",
"arglist",
")",
"{",
"rtx",
"value",
";",
"enum",
"machine_mode",
"mode",
";",
"value",
"=",
"expand_expr",
"(",
"TREE_VALUE",
"(",
"*",
"arglist",
")",
",",
"NULL_RTX",
",",
"VOIDmode",
",",
"0",
")",
";",
"mode",
"=",
"insn_data",
"[",
"icode",
"]",
".",
"operand",
"[",
"op",
"]",
".",
"mode",
";",
"if",
"(",
"!",
"insn_data",
"[",
"icode",
"]",
".",
"operand",
"[",
"op",
"]",
".",
"predicate",
"(",
"value",
",",
"mode",
")",
")",
"{",
"value",
"=",
"copy_to_mode_reg",
"(",
"mode",
",",
"value",
")",
";",
"if",
"(",
"!",
"insn_data",
"[",
"icode",
"]",
".",
"operand",
"[",
"op",
"]",
".",
"predicate",
"(",
"value",
",",
"mode",
")",
")",
"{",
"error",
"(",
"\"invalid argument to builtin function\"",
")",
";",
"return",
"const0_rtx",
";",
"}",
"}",
"*",
"arglist",
"=",
"TREE_CHAIN",
"(",
"*",
"arglist",
")",
";",
"return",
"value",
";",
"}",
"</s>"
] | [
"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",
"."
] | [
"mips",
"0",
"\"invalid argument to builtin function\""
] | mips3 | mips_prepare_builtin_arg | mips | CPU | GCC | 11,643 | 129 | 1 | [] |
[
"<s>",
"StringRef",
"getPassName",
"(",
")",
"const",
"override",
"{",
"return",
"AVR_EXPAND_PSEUDO_NAME",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"AVR",
"AVR"
] | AVRExpandPseudoInsts (2) | getPassName | AVR | MPU | LLVM | 11,644 | 11 | 1 | [] |
[
"<s>",
"static",
"void",
"rs6000_eliminate_indexed_memrefs",
"(",
"rtx",
"operands",
"[",
"2",
"]",
")",
"{",
"if",
"(",
"reload_in_progress",
")",
"return",
";",
"if",
"(",
"GET_CODE",
"(",
"operands",
"[",
"0",
"]",
")",
"==",
"MEM",
"&&",
"GET_CODE",
"(",
"XEXP",
"(",
"operands",
"[",
"0",
"]",
",",
"0",
")",
")",
"!=",
"REG",
"&&",
"!",
"legitimate_constant_pool_address_p",
"(",
"XEXP",
"(",
"operands",
"[",
"0",
"]",
",",
"0",
")",
",",
"GET_MODE",
"(",
"operands",
"[",
"0",
"]",
")",
",",
"false",
")",
")",
"operands",
"[",
"0",
"]",
"=",
"replace_equiv_address",
"(",
"operands",
"[",
"0",
"]",
",",
"copy_addr_to_reg",
"(",
"XEXP",
"(",
"operands",
"[",
"0",
"]",
",",
"0",
")",
")",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"operands",
"[",
"1",
"]",
")",
"==",
"MEM",
"&&",
"GET_CODE",
"(",
"XEXP",
"(",
"operands",
"[",
"1",
"]",
",",
"0",
")",
")",
"!=",
"REG",
"&&",
"!",
"legitimate_constant_pool_address_p",
"(",
"XEXP",
"(",
"operands",
"[",
"1",
"]",
",",
"0",
")",
",",
"GET_MODE",
"(",
"operands",
"[",
"1",
"]",
")",
",",
"false",
")",
")",
"operands",
"[",
"1",
"]",
"=",
"replace_equiv_address",
"(",
"operands",
"[",
"1",
"]",
",",
"copy_addr_to_reg",
"(",
"XEXP",
"(",
"operands",
"[",
"1",
"]",
",",
"0",
")",
")",
")",
";",
"}",
"</s>"
] | [
"Helper",
"for",
"the",
"following",
".",
"Get",
"rid",
"of",
"[",
"r+r",
"]",
"memory",
"refs",
"in",
"cases",
"where",
"it",
"wo",
"n't",
"work",
"(",
"TImode",
",",
"TFmode",
")",
"."
] | [
"powerpcspe",
"2",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
"1",
"0",
"1",
"0",
"1",
"1",
"1",
"1",
"0"
] | powerpcspe | rs6000_eliminate_indexed_memrefs | powerpcspe | CPU | GCC | 11,645 | 172 | 1 | [] |
[
"<s>",
"static",
"rtx",
"ix86_load_bounds",
"(",
"rtx",
"slot",
",",
"rtx",
"ptr",
",",
"rtx",
"slot_no",
")",
"{",
"rtx",
"reg",
"=",
"gen_reg_rtx",
"(",
"BNDmode",
")",
";",
"rtx",
"addr",
";",
"addr",
"=",
"ix86_get_arg_address_for_bt",
"(",
"slot",
",",
"slot_no",
",",
"arg_pointer_rtx",
")",
";",
"if",
"(",
"!",
"ptr",
")",
"{",
"gcc_assert",
"(",
"MEM_P",
"(",
"slot",
")",
")",
";",
"ptr",
"=",
"copy_addr_to_reg",
"(",
"slot",
")",
";",
"}",
"emit_insn",
"(",
"BNDmode",
"==",
"BND64mode",
"?",
"gen_bnd64_ldx",
"(",
"reg",
",",
"addr",
",",
"ptr",
")",
":",
"gen_bnd32_ldx",
"(",
"reg",
",",
"addr",
",",
"ptr",
")",
")",
";",
"return",
"reg",
";",
"}",
"</s>"
] | [
"Expand",
"pass",
"uses",
"this",
"hook",
"to",
"load",
"bounds",
"for",
"function",
"parameter",
"PTR",
"passed",
"in",
"SLOT",
"in",
"case",
"its",
"bounds",
"are",
"not",
"passed",
"in",
"a",
"register",
".",
"If",
"SLOT",
"is",
"a",
"memory",
",",
"then",
"bounds",
"are",
"loaded",
"as",
"for",
"regular",
"pointer",
"loaded",
"from",
"memory",
".",
"PTR",
"may",
"be",
"NULL",
"in",
"case",
"SLOT",
"is",
"a",
"memory",
".",
"In",
"such",
"case",
"value",
"of",
"PTR",
"(",
"if",
"required",
")",
"may",
"be",
"loaded",
"from",
"SLOT",
".",
"If",
"SLOT",
"is",
"NULL",
"or",
"a",
"register",
"then",
"SLOT_NO",
"is",
"an",
"integer",
"constant",
"holding",
"number",
"of",
"the",
"target",
"dependent",
"special",
"slot",
"which",
"should",
"be",
"used",
"to",
"obtain",
"bounds",
".",
"Return",
"loaded",
"bounds",
"."
] | [
"i386"
] | i3864 | ix86_load_bounds | i386 | CPU | GCC | 11,646 | 87 | 1 | [] |
[
"<s>",
"bool",
"Error",
"(",
"SMLoc",
"L",
",",
"const",
"Twine",
"&",
"Msg",
",",
"ArrayRef",
"<",
"SMRange",
">",
"Ranges",
"=",
"None",
")",
"{",
"return",
"getParser",
"(",
")",
".",
"Error",
"(",
"L",
",",
"Msg",
",",
"Ranges",
")",
";",
"}",
"</s>"
] | [
"Return",
"an",
"error",
"at",
"the",
"location",
"L",
",",
"with",
"the",
"message",
"Msg",
"."
] | [
"ARM"
] | ARMAsmParser (2)5 | Error | ARM | CPU | LLVM | 11,647 | 35 | 1 | [] |
[
"<s>",
"void",
"X86PassConfig",
"::",
"addPostRegAlloc",
"(",
")",
"{",
"addPass",
"(",
"createX86FloatingPointStackifierPass",
"(",
")",
")",
";",
"addPass",
"(",
"createX86LoadValueInjectionLoadHardeningPass",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"This",
"method",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"after",
"register",
"allocation",
"pass",
"pipeline",
"but",
"before",
"prolog-epilog",
"insertion",
"."
] | [
"X86",
"X86",
"X86",
"X86"
] | X86TargetMachine48 | addPostRegAlloc | X86 | CPU | LLVM | 11,648 | 22 | 1 | [] |
[
"<s>",
"void",
"R600PassConfig",
"::",
"addPreSched2",
"(",
")",
"{",
"addPass",
"(",
"createR600EmitClauseMarkers",
"(",
")",
")",
";",
"if",
"(",
"EnableR600IfConvert",
")",
"addPass",
"(",
"&",
"IfConverterID",
")",
";",
"addPass",
"(",
"createR600ClauseMergePass",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"This",
"method",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"after",
"prolog-epilog",
"insertion",
"and",
"before",
"the",
"second",
"instruction",
"scheduling",
"pass",
"."
] | [
"AMDGPU",
"R600",
"R600",
"R600",
"R600"
] | R600TargetMachine | addPreSched2 | AMDGPU | GPU | LLVM | 11,649 | 32 | 1 | [] |
[
"<s>",
"void",
"MMIXFrameLowering",
"::",
"determineFrameLayout",
"(",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"MachineFrameInfo",
"&",
"MFI",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"const",
"MMIXRegisterInfo",
"*",
"RI",
"=",
"STI",
".",
"getRegisterInfo",
"(",
")",
";",
"uint64_t",
"FrameSize",
"=",
"MFI",
".",
"getStackSize",
"(",
")",
";",
"uint64_t",
"StackAlign",
"=",
"RI",
"->",
"needsStackRealignment",
"(",
"MF",
")",
"?",
"MFI",
".",
"getMaxAlignment",
"(",
")",
":",
"getStackAlignment",
"(",
")",
";",
"uint64_t",
"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",
")",
";",
"}",
"</s>"
] | [
"Determine",
"the",
"frame",
"layout",
"but",
"do",
"not",
"update",
"the",
"machine",
"function",
"."
] | [
"MMIX",
"MMIX",
"MMIX"
] | MMIXFrameLowering | determineFrameLayout | MMIX | CPU | LLVM | 11,650 | 131 | 1 | [] |
[
"<s>",
"mode_suffix_index",
"function_resolver",
"::",
"resolve_adr_address",
"(",
"unsigned",
"int",
"argno",
")",
"{",
"vector_type_index",
"base_type",
"=",
"infer_vector_base_type",
"(",
"argno",
")",
";",
"if",
"(",
"base_type",
"==",
"NUM_VECTOR_TYPES",
")",
"return",
"MODE_none",
";",
"vector_type_index",
"displacement_type",
"=",
"infer_vector_displacement_type",
"(",
"argno",
"+",
"1",
")",
";",
"if",
"(",
"displacement_type",
"==",
"NUM_VECTOR_TYPES",
")",
"return",
"MODE_none",
";",
"mode_suffix_index",
"mode",
"=",
"find_mode_suffix",
"(",
"base_type",
",",
"displacement_type",
",",
"displacement_units",
"(",
")",
")",
";",
"if",
"(",
"mode",
"==",
"MODE_none",
")",
"{",
"if",
"(",
"mode_suffix_id",
"==",
"MODE_offset",
")",
"error_at",
"(",
"location",
",",
"\"cannot combine a base of type %qT with\"",
"\" an offset of type %qT\"",
",",
"get_argument_type",
"(",
"argno",
")",
",",
"get_argument_type",
"(",
"argno",
"+",
"1",
")",
")",
";",
"else",
"error_at",
"(",
"location",
",",
"\"cannot combine a base of type %qT with\"",
"\" an index of type %qT\"",
",",
"get_argument_type",
"(",
"argno",
")",
",",
"get_argument_type",
"(",
"argno",
"+",
"1",
")",
")",
";",
"}",
"return",
"mode",
";",
"}",
"</s>"
] | [
"Require",
"arguments",
"ARGNO",
"and",
"ARGNO",
"+",
"1",
"to",
"form",
"an",
"ADR-style",
"address",
",",
"i.e",
".",
"one",
"with",
"a",
"vector",
"of",
"base",
"addresses",
"and",
"a",
"vector",
"of",
"displacements",
".",
"The",
"overloaded",
"function",
"'s",
"mode",
"suffix",
"determines",
"the",
"units",
"of",
"the",
"displacement",
"(",
"bytes",
"for",
"``",
"_offset",
"''",
",",
"elements",
"for",
"``",
"_index",
"''",
")",
".",
"Return",
"the",
"associated",
"mode",
"suffix",
"on",
"success",
",",
"otherwise",
"report",
"an",
"error",
"and",
"return",
"MODE_none",
"."
] | [
"aarch64",
"1",
"\"cannot combine a base of type %qT with\"",
"\" an offset of type %qT\"",
"1",
"\"cannot combine a base of type %qT with\"",
"\" an index of type %qT\"",
"1"
] | aarch64-sve-builtins | resolve_adr_address | aarch64 | CPU | GCC | 11,651 | 119 | 1 | [] |
[
"<s>",
"void",
"PIC16Overlay",
"::",
"getAnalysisUsage",
"(",
"AnalysisUsage",
"&",
"AU",
")",
"const",
"{",
"AU",
".",
"setPreservesAll",
"(",
")",
";",
"AU",
".",
"addRequired",
"<",
"CallGraph",
">",
"(",
")",
";",
"}",
"</s>"
] | [
"getAnalysisUsage",
"-",
"Subclasses",
"that",
"override",
"getAnalysisUsage",
"must",
"call",
"this",
"."
] | [
"PIC16",
"PIC16"
] | PIC16Overlay | getAnalysisUsage | PIC16 | MPU | LLVM | 11,652 | 27 | 1 | [] |
[
"<s>",
"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",
")",
";",
"auto",
"&",
"DL",
"=",
"Ext",
"->",
"getModule",
"(",
")",
"->",
"getDataLayout",
"(",
")",
";",
"std",
"::",
"advance",
"(",
"GTI",
",",
"U",
".",
"getOperandNo",
"(",
")",
"-",
"1",
")",
";",
"Type",
"*",
"IdxTy",
"=",
"GTI",
".",
"getIndexedType",
"(",
")",
";",
"uint64_t",
"ShiftAmt",
"=",
"countTrailingZeros",
"(",
"DL",
".",
"getTypeStoreSizeInBits",
"(",
"IdxTy",
")",
")",
"-",
"3",
";",
"if",
"(",
"ShiftAmt",
"==",
"0",
"||",
"ShiftAmt",
">",
"4",
")",
"return",
"false",
";",
"break",
";",
"}",
"case",
"Instruction",
"::",
"Trunc",
":",
"if",
"(",
"Instr",
"->",
"getType",
"(",
")",
"==",
"Ext",
"->",
"getOperand",
"(",
"0",
")",
"->",
"getType",
"(",
")",
")",
"continue",
";",
"LLVM_FALLTHROUGH",
";",
"default",
":",
"return",
"false",
";",
"}",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"the",
"extension",
"represented",
"by",
"I",
"is",
"free",
"."
] | [
"AArch64",
"AArch64",
"1",
"1",
"3",
"0",
"4",
"0"
] | AArch64ISelLowering | isExtFreeImpl | AArch64 | CPU | LLVM | 11,653 | 229 | 1 | [] |
[
"<s>",
"static",
"bool",
"arm_evpc_neon_vuzp",
"(",
"struct",
"expand_vec_perm_d",
"*",
"d",
")",
"{",
"unsigned",
"int",
"i",
",",
"odd",
",",
"mask",
",",
"nelt",
"=",
"d",
"->",
"nelt",
";",
"rtx",
"out0",
",",
"out1",
",",
"in0",
",",
"in1",
";",
"rtx",
"(",
"*",
"gen",
")",
"(",
"rtx",
",",
"rtx",
",",
"rtx",
",",
"rtx",
")",
";",
"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",
"?",
"d",
"->",
"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",
";",
"switch",
"(",
"d",
"->",
"vmode",
")",
"{",
"case",
"V16QImode",
":",
"gen",
"=",
"gen_neon_vuzpv16qi_internal",
";",
"break",
";",
"case",
"V8QImode",
":",
"gen",
"=",
"gen_neon_vuzpv8qi_internal",
";",
"break",
";",
"case",
"V8HImode",
":",
"gen",
"=",
"gen_neon_vuzpv8hi_internal",
";",
"break",
";",
"case",
"V4HImode",
":",
"gen",
"=",
"gen_neon_vuzpv4hi_internal",
";",
"break",
";",
"case",
"V8HFmode",
":",
"gen",
"=",
"gen_neon_vuzpv8hf_internal",
";",
"break",
";",
"case",
"V4HFmode",
":",
"gen",
"=",
"gen_neon_vuzpv4hf_internal",
";",
"break",
";",
"case",
"V4SImode",
":",
"gen",
"=",
"gen_neon_vuzpv4si_internal",
";",
"break",
";",
"case",
"V2SImode",
":",
"gen",
"=",
"gen_neon_vuzpv2si_internal",
";",
"break",
";",
"case",
"V2SFmode",
":",
"gen",
"=",
"gen_neon_vuzpv2sf_internal",
";",
"break",
";",
"case",
"V4SFmode",
":",
"gen",
"=",
"gen_neon_vuzpv4sf_internal",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"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",
"(",
"out0",
",",
"in0",
",",
"in1",
",",
"out1",
")",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Recognize",
"patterns",
"for",
"the",
"VUZP",
"insns",
"."
] | [
"arm",
"8",
"8",
"0",
"0",
"0",
"0",
"1",
"1",
"1",
"2",
"1",
"0",
"2",
"0"
] | arm6 | arm_evpc_neon_vuzp | arm | CPU | GCC | 11,654 | 413 | 1 | [] |
[
"<s>",
"void",
"PPCPassConfig",
"::",
"addIRPasses",
"(",
")",
"{",
"addPass",
"(",
"createAtomicExpandPass",
"(",
"&",
"getPPCTargetMachine",
"(",
")",
")",
")",
";",
"bool",
"UsePrefetching",
"=",
"TM",
"->",
"getTargetTriple",
"(",
")",
".",
"getVendor",
"(",
")",
"==",
"Triple",
"::",
"BGQ",
"&&",
"getOptLevel",
"(",
")",
"!=",
"CodeGenOpt",
"::",
"None",
";",
"if",
"(",
"EnablePrefetch",
".",
"getNumOccurrences",
"(",
")",
">",
"0",
")",
"UsePrefetching",
"=",
"EnablePrefetch",
";",
"if",
"(",
"UsePrefetching",
")",
"addPass",
"(",
"createPPCLoopDataPrefetchPass",
"(",
")",
")",
";",
"if",
"(",
"TM",
"->",
"getOptLevel",
"(",
")",
"==",
"CodeGenOpt",
"::",
"Aggressive",
"&&",
"EnableGEPOpt",
")",
"{",
"addPass",
"(",
"createSeparateConstOffsetFromGEPPass",
"(",
"TM",
",",
"true",
")",
")",
";",
"addPass",
"(",
"createEarlyCSEPass",
"(",
")",
")",
";",
"addPass",
"(",
"createLICMPass",
"(",
")",
")",
";",
"}",
"TargetPassConfig",
"::",
"addIRPasses",
"(",
")",
";",
"}",
"</s>"
] | [
"Add",
"common",
"target",
"configurable",
"passes",
"that",
"perform",
"LLVM",
"IR",
"to",
"IR",
"transforms",
"following",
"machine",
"independent",
"optimization",
"."
] | [
"PowerPC",
"PPC",
"PPC",
"0",
"PPC"
] | PPCTargetMachine61 | addIRPasses | PowerPC | CPU | LLVM | 11,655 | 115 | 1 | [] |
[
"<s>",
"MachineInstr",
"*",
"foldMemoryOperandImpl",
"(",
"MachineFunction",
"&",
"MF",
",",
"MachineInstr",
"*",
"MI",
",",
"const",
"SmallVectorImpl",
"<",
"unsigned",
">",
"&",
"Ops",
",",
"MachineInstr",
"*",
"LoadMI",
")",
"const",
"{",
"return",
"0",
";",
"}",
"</s>"
] | [
"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",
"."
] | [
"ARM",
"0"
] | Thumb1InstrInfo14 | foldMemoryOperandImpl | ARM | CPU | LLVM | 11,656 | 30 | 1 | [] |
[
"<s>",
"const",
"InstrItineraryData",
"*",
"getInstrItineraryData",
"(",
")",
"const",
"override",
"{",
"return",
"&",
"InstrItins",
";",
"}",
"</s>"
] | [
"getInstrItineraryData",
"-",
"Returns",
"instruction",
"itinerary",
"data",
"for",
"the",
"target",
"or",
"specific",
"subtarget",
"."
] | [
"M680x0"
] | M680x0Subtarget | getInstrItineraryData | M680x0 | MPU | LLVM | 11,657 | 14 | 1 | [] |
[
"<s>",
"unsigned",
"HexagonInstrInfo",
"::",
"isLoadFromStackSlot",
"(",
"const",
"MachineInstr",
"&",
"MI",
",",
"int",
"&",
"FrameIndex",
")",
"const",
"{",
"switch",
"(",
"MI",
".",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"break",
";",
"case",
"Hexagon",
"::",
"L2_loadri_io",
":",
"case",
"Hexagon",
"::",
"L2_loadrd_io",
":",
"case",
"Hexagon",
"::",
"V6_vL32b_ai",
":",
"case",
"Hexagon",
"::",
"V6_vL32b_nt_ai",
":",
"case",
"Hexagon",
"::",
"V6_vL32Ub_ai",
":",
"case",
"Hexagon",
"::",
"LDriw_pred",
":",
"case",
"Hexagon",
"::",
"LDriw_mod",
":",
"case",
"Hexagon",
"::",
"PS_vloadrq_ai",
":",
"case",
"Hexagon",
"::",
"PS_vloadrw_ai",
":",
"case",
"Hexagon",
"::",
"PS_vloadrw_nt_ai",
":",
"{",
"const",
"MachineOperand",
"OpFI",
"=",
"MI",
".",
"getOperand",
"(",
"1",
")",
";",
"if",
"(",
"!",
"OpFI",
".",
"isFI",
"(",
")",
")",
"return",
"0",
";",
"const",
"MachineOperand",
"OpOff",
"=",
"MI",
".",
"getOperand",
"(",
"2",
")",
";",
"if",
"(",
"!",
"OpOff",
".",
"isImm",
"(",
")",
"||",
"OpOff",
".",
"getImm",
"(",
")",
"!=",
"0",
")",
"return",
"0",
";",
"FrameIndex",
"=",
"OpFI",
".",
"getIndex",
"(",
")",
";",
"return",
"MI",
".",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
";",
"}",
"case",
"Hexagon",
"::",
"L2_ploadrit_io",
":",
"case",
"Hexagon",
"::",
"L2_ploadrif_io",
":",
"case",
"Hexagon",
"::",
"L2_ploadrdt_io",
":",
"case",
"Hexagon",
"::",
"L2_ploadrdf_io",
":",
"{",
"const",
"MachineOperand",
"OpFI",
"=",
"MI",
".",
"getOperand",
"(",
"2",
")",
";",
"if",
"(",
"!",
"OpFI",
".",
"isFI",
"(",
")",
")",
"return",
"0",
";",
"const",
"MachineOperand",
"OpOff",
"=",
"MI",
".",
"getOperand",
"(",
"3",
")",
";",
"if",
"(",
"!",
"OpOff",
".",
"isImm",
"(",
")",
"||",
"OpOff",
".",
"getImm",
"(",
")",
"!=",
"0",
")",
"return",
"0",
";",
"FrameIndex",
"=",
"OpFI",
".",
"getIndex",
"(",
")",
";",
"return",
"MI",
".",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
";",
"}",
"}",
"return",
"0",
";",
"}",
"</s>"
] | [
"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",
"."
] | [
"Hexagon",
"Hexagon",
"Hexagon::L2_loadri_io",
"Hexagon::L2_loadrd_io",
"Hexagon::V6_vL32b_ai",
"Hexagon::V6_vL32b_nt_ai",
"Hexagon::V6_vL32Ub_ai",
"Hexagon::LDriw_pred",
"Hexagon::LDriw_mod",
"Hexagon::PS_vloadrq_ai",
"Hexagon::PS_vloadrw_ai",
"Hexagon::PS_vloadrw_nt_ai",
"1",
"0",
"2",
"0",
"0",
"0",
"Hexagon::L2_ploadrit_io",
"Hexagon::L2_ploadrif_io",
"Hexagon::L2_ploadrdt_io",
"Hexagon::L2_ploadrdf_io",
"2",
"0",
"3",
"0",
"0",
"0",
"0"
] | HexagonInstrInfo13 | isLoadFromStackSlot | Hexagon | DSP | LLVM | 11,658 | 256 | 1 | [] |
[
"<s>",
"void",
"ix86_emit_swdivsf",
"(",
"rtx",
"res",
",",
"rtx",
"a",
",",
"rtx",
"b",
",",
"machine_mode",
"mode",
")",
"{",
"rtx",
"x0",
",",
"x1",
",",
"e0",
",",
"e1",
";",
"x0",
"=",
"gen_reg_rtx",
"(",
"mode",
")",
";",
"e0",
"=",
"gen_reg_rtx",
"(",
"mode",
")",
";",
"e1",
"=",
"gen_reg_rtx",
"(",
"mode",
")",
";",
"x1",
"=",
"gen_reg_rtx",
"(",
"mode",
")",
";",
"b",
"=",
"force_reg",
"(",
"mode",
",",
"b",
")",
";",
"if",
"(",
"mode",
"==",
"V16SFmode",
"||",
"mode",
"==",
"V8DFmode",
")",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"x0",
",",
"gen_rtx_UNSPEC",
"(",
"mode",
",",
"gen_rtvec",
"(",
"1",
",",
"b",
")",
",",
"UNSPEC_RCP14",
")",
")",
")",
";",
"else",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"x0",
",",
"gen_rtx_UNSPEC",
"(",
"mode",
",",
"gen_rtvec",
"(",
"1",
",",
"b",
")",
",",
"UNSPEC_RCP",
")",
")",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"e0",
",",
"gen_rtx_MULT",
"(",
"mode",
",",
"x0",
",",
"b",
")",
")",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"e0",
",",
"gen_rtx_MULT",
"(",
"mode",
",",
"x0",
",",
"e0",
")",
")",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"e1",
",",
"gen_rtx_PLUS",
"(",
"mode",
",",
"x0",
",",
"x0",
")",
")",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"x1",
",",
"gen_rtx_MINUS",
"(",
"mode",
",",
"e1",
",",
"e0",
")",
")",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"res",
",",
"gen_rtx_MULT",
"(",
"mode",
",",
"a",
",",
"x1",
")",
")",
")",
";",
"}",
"</s>"
] | [
"Output",
"code",
"to",
"perform",
"a",
"Newton-Rhapson",
"approximation",
"of",
"a",
"single",
"precision",
"floating",
"point",
"divide",
"[",
"http",
":",
"//en.wikipedia.org/wiki/N-th_root_algorithm",
"]",
"."
] | [
"i386",
"1",
"1"
] | i3865 | ix86_emit_swdivsf | i386 | CPU | GCC | 11,659 | 203 | 1 | [] |
[
"<s>",
"bool",
"X86TTIImpl",
"::",
"isLegalMaskedGather",
"(",
"Type",
"*",
"DataTy",
",",
"Align",
"Alignment",
")",
"{",
"if",
"(",
"!",
"(",
"ST",
"->",
"hasAVX512",
"(",
")",
"||",
"(",
"ST",
"->",
"hasFastGather",
"(",
")",
"&&",
"ST",
"->",
"hasAVX2",
"(",
")",
")",
")",
")",
"return",
"false",
";",
"if",
"(",
"auto",
"*",
"DataVTy",
"=",
"dyn_cast",
"<",
"FixedVectorType",
">",
"(",
"DataTy",
")",
")",
"{",
"unsigned",
"NumElts",
"=",
"DataVTy",
"->",
"getNumElements",
"(",
")",
";",
"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",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"the",
"target",
"supports",
"masked",
"gather",
"."
] | [
"X86",
"X86",
"1",
"32",
"64"
] | X86TargetTransformInfo117 | isLegalMaskedGather | X86 | CPU | LLVM | 11,660 | 150 | 1 | [] |
[
"<s>",
"BitVector",
"SIRegisterInfo",
"::",
"getReservedRegs",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"BitVector",
"Reserved",
"(",
"getNumRegs",
"(",
")",
")",
";",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"AMDGPU",
"::",
"EXEC",
")",
";",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"AMDGPU",
"::",
"FLAT_SCR",
")",
";",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"AMDGPU",
"::",
"M0",
")",
";",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"AMDGPU",
"::",
"SRC_SHARED_BASE",
")",
";",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"AMDGPU",
"::",
"SRC_SHARED_LIMIT",
")",
";",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"AMDGPU",
"::",
"SRC_PRIVATE_BASE",
")",
";",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"AMDGPU",
"::",
"SRC_PRIVATE_LIMIT",
")",
";",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"AMDGPU",
"::",
"XNACK_MASK",
")",
";",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"AMDGPU",
"::",
"TBA",
")",
";",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"AMDGPU",
"::",
"TMA",
")",
";",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"AMDGPU",
"::",
"TTMP0_TTMP1",
")",
";",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"AMDGPU",
"::",
"TTMP2_TTMP3",
")",
";",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"AMDGPU",
"::",
"TTMP4_TTMP5",
")",
";",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"AMDGPU",
"::",
"TTMP6_TTMP7",
")",
";",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"AMDGPU",
"::",
"TTMP8_TTMP9",
")",
";",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"AMDGPU",
"::",
"TTMP10_TTMP11",
")",
";",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"AMDGPU",
"::",
"TTMP12_TTMP13",
")",
";",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"AMDGPU",
"::",
"TTMP14_TTMP15",
")",
";",
"const",
"GCNSubtarget",
"&",
"ST",
"=",
"MF",
".",
"getSubtarget",
"<",
"GCNSubtarget",
">",
"(",
")",
";",
"unsigned",
"MaxNumSGPRs",
"=",
"ST",
".",
"getMaxNumSGPRs",
"(",
"MF",
")",
";",
"unsigned",
"TotalNumSGPRs",
"=",
"AMDGPU",
"::",
"SGPR_32RegClass",
".",
"getNumRegs",
"(",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"MaxNumSGPRs",
";",
"i",
"<",
"TotalNumSGPRs",
";",
"++",
"i",
")",
"{",
"unsigned",
"Reg",
"=",
"AMDGPU",
"::",
"SGPR_32RegClass",
".",
"getRegister",
"(",
"i",
")",
";",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"Reg",
")",
";",
"}",
"unsigned",
"MaxNumVGPRs",
"=",
"ST",
".",
"getMaxNumVGPRs",
"(",
"MF",
")",
";",
"unsigned",
"TotalNumVGPRs",
"=",
"AMDGPU",
"::",
"VGPR_32RegClass",
".",
"getNumRegs",
"(",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"MaxNumVGPRs",
";",
"i",
"<",
"TotalNumVGPRs",
";",
"++",
"i",
")",
"{",
"unsigned",
"Reg",
"=",
"AMDGPU",
"::",
"VGPR_32RegClass",
".",
"getRegister",
"(",
"i",
")",
";",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"Reg",
")",
";",
"}",
"const",
"SIMachineFunctionInfo",
"*",
"MFI",
"=",
"MF",
".",
"getInfo",
"<",
"SIMachineFunctionInfo",
">",
"(",
")",
";",
"unsigned",
"ScratchWaveOffsetReg",
"=",
"MFI",
"->",
"getScratchWaveOffsetReg",
"(",
")",
";",
"if",
"(",
"ScratchWaveOffsetReg",
"!=",
"AMDGPU",
"::",
"NoRegister",
")",
"{",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"ScratchWaveOffsetReg",
")",
";",
"}",
"unsigned",
"ScratchRSrcReg",
"=",
"MFI",
"->",
"getScratchRSrcReg",
"(",
")",
";",
"if",
"(",
"ScratchRSrcReg",
"!=",
"AMDGPU",
"::",
"NoRegister",
")",
"{",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"ScratchRSrcReg",
")",
";",
"assert",
"(",
"!",
"isSubRegister",
"(",
"ScratchRSrcReg",
",",
"ScratchWaveOffsetReg",
")",
")",
";",
"}",
"unsigned",
"StackPtrReg",
"=",
"MFI",
"->",
"getStackPtrOffsetReg",
"(",
")",
";",
"if",
"(",
"StackPtrReg",
"!=",
"AMDGPU",
"::",
"NoRegister",
")",
"{",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"StackPtrReg",
")",
";",
"assert",
"(",
"!",
"isSubRegister",
"(",
"ScratchRSrcReg",
",",
"StackPtrReg",
")",
")",
";",
"}",
"unsigned",
"FrameReg",
"=",
"MFI",
"->",
"getFrameOffsetReg",
"(",
")",
";",
"if",
"(",
"FrameReg",
"!=",
"AMDGPU",
"::",
"NoRegister",
")",
"{",
"reserveRegisterTuples",
"(",
"Reserved",
",",
"FrameReg",
")",
";",
"assert",
"(",
"!",
"isSubRegister",
"(",
"ScratchRSrcReg",
",",
"FrameReg",
")",
")",
";",
"}",
"return",
"Reserved",
";",
"}",
"</s>"
] | [
"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",
"."
] | [
"AMDGPU",
"SI",
"AMDGPU::EXEC",
"AMDGPU::FLAT_SCR",
"AMDGPU::M0",
"AMDGPU::SRC_SHARED_BASE",
"AMDGPU::SRC_SHARED_LIMIT",
"AMDGPU::SRC_PRIVATE_BASE",
"AMDGPU::SRC_PRIVATE_LIMIT",
"AMDGPU::XNACK_MASK",
"AMDGPU::TBA",
"AMDGPU::TMA",
"AMDGPU::TTMP0_TTMP1",
"AMDGPU::TTMP2_TTMP3",
"AMDGPU::TTMP4_TTMP5",
"AMDGPU::TTMP6_TTMP7",
"AMDGPU::TTMP8_TTMP9",
"AMDGPU::TTMP10_TTMP11",
"AMDGPU::TTMP12_TTMP13",
"AMDGPU::TTMP14_TTMP15",
"AMDGPU::SGPR_32RegClass",
"AMDGPU::SGPR_32RegClass",
"AMDGPU::VGPR_32RegClass",
"AMDGPU::VGPR_32RegClass",
"SI",
"SI",
"AMDGPU::NoRegister",
"AMDGPU::NoRegister",
"AMDGPU::NoRegister",
"AMDGPU::NoRegister"
] | SIRegisterInfo101 | getReservedRegs | AMDGPU | GPU | LLVM | 11,661 | 463 | 1 | [] |
[
"<s>",
"MVT",
"::",
"SimpleValueType",
"getCmpLibcallReturnType",
"(",
")",
"const",
"override",
"{",
"return",
"MVT",
"::",
"i16",
";",
"}",
"</s>"
] | [
"Return",
"the",
"ValueType",
"for",
"comparison",
"libcalls",
"."
] | [
"MSP430",
"MVT::SimpleValueType",
"MVT::i16"
] | MSP430ISelLowering36 | getCmpLibcallReturnType | MSP430 | MPU | LLVM | 11,662 | 15 | 1 | [] |
[
"<s>",
"bool",
"SIFixSGPRCopies",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"MachineRegisterInfo",
"&",
"MRI",
"=",
"MF",
".",
"getRegInfo",
"(",
")",
";",
"const",
"TargetRegisterInfo",
"*",
"TRI",
"=",
"MF",
".",
"getTarget",
"(",
")",
".",
"getRegisterInfo",
"(",
")",
";",
"for",
"(",
"MachineFunction",
"::",
"iterator",
"BI",
"=",
"MF",
".",
"begin",
"(",
")",
",",
"BE",
"=",
"MF",
".",
"end",
"(",
")",
";",
"BI",
"!=",
"BE",
";",
"++",
"BI",
")",
"{",
"MachineBasicBlock",
"&",
"MBB",
"=",
"*",
"BI",
";",
"for",
"(",
"MachineBasicBlock",
"::",
"iterator",
"I",
"=",
"MBB",
".",
"begin",
"(",
")",
",",
"E",
"=",
"MBB",
".",
"end",
"(",
")",
";",
"I",
"!=",
"E",
";",
"++",
"I",
")",
"{",
"MachineInstr",
"&",
"MI",
"=",
"*",
"I",
";",
"if",
"(",
"MI",
".",
"getOpcode",
"(",
")",
"!=",
"AMDGPU",
"::",
"PHI",
")",
"{",
"continue",
";",
"}",
"unsigned",
"Reg",
"=",
"MI",
".",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
";",
"const",
"TargetRegisterClass",
"*",
"RC",
"=",
"inferRegClass",
"(",
"TRI",
",",
"MRI",
",",
"Reg",
")",
";",
"if",
"(",
"TRI",
"->",
"getCommonSubClass",
"(",
"RC",
",",
"&",
"AMDGPU",
"::",
"VReg_32RegClass",
")",
")",
"{",
"MRI",
".",
"constrainRegClass",
"(",
"Reg",
",",
"&",
"AMDGPU",
"::",
"VReg_32RegClass",
")",
";",
"}",
"}",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"R600",
"SI",
"0"
] | SIFixSGPRCopies53 | runOnMachineFunction | R600 | GPU | LLVM | 11,663 | 185 | 1 | [] |
[
"<s>",
"void",
"BT",
"::",
"run",
"(",
")",
"{",
"reset",
"(",
")",
";",
"assert",
"(",
"FlowQ",
".",
"empty",
"(",
")",
")",
";",
"using",
"MachineFlowGraphTraits",
"=",
"GraphTraits",
"<",
"const",
"MachineFunction",
"*",
">",
";",
"const",
"MachineBasicBlock",
"*",
"Entry",
"=",
"MachineFlowGraphTraits",
"::",
"getEntryNode",
"(",
"&",
"MF",
")",
";",
"unsigned",
"MaxBN",
"=",
"0",
";",
"for",
"(",
"const",
"MachineBasicBlock",
"&",
"B",
":",
"MF",
")",
"{",
"assert",
"(",
"B",
".",
"getNumber",
"(",
")",
">=",
"0",
"&&",
"\"Disconnected block\"",
")",
";",
"unsigned",
"BN",
"=",
"B",
".",
"getNumber",
"(",
")",
";",
"if",
"(",
"BN",
">",
"MaxBN",
")",
"MaxBN",
"=",
"BN",
";",
"}",
"BitVector",
"BlockScanned",
"(",
"MaxBN",
"+",
"1",
")",
";",
"int",
"EntryN",
"=",
"Entry",
"->",
"getNumber",
"(",
")",
";",
"FlowQ",
".",
"push",
"(",
"CFGEdge",
"(",
"-",
"1",
",",
"EntryN",
")",
")",
";",
"while",
"(",
"!",
"FlowQ",
".",
"empty",
"(",
")",
"||",
"!",
"UseQ",
".",
"empty",
"(",
")",
")",
"{",
"runEdgeQueue",
"(",
"BlockScanned",
")",
";",
"runUseQueue",
"(",
")",
";",
"}",
"if",
"(",
"Trace",
")",
"print_cells",
"(",
"dbgs",
"(",
")",
"<<",
"\"Cells after propagation:\\n\"",
")",
";",
"}",
"</s>"
] | [
"Run",
"the",
"analysis",
"pass",
"over",
"a",
"function",
"and",
"produce",
"a",
"dominator",
"tree",
"."
] | [
"Hexagon",
"0",
"0",
"\"Disconnected block\"",
"1",
"1",
"\"Cells after propagation:\\n\""
] | BitTracker5 | run | Hexagon | DSP | LLVM | 11,664 | 162 | 1 | [] |
[
"<s>",
"bool",
"HexagonTargetLowering",
"::",
"getPostIndexedAddressParts",
"(",
"SDNode",
"*",
"N",
",",
"SDNode",
"*",
"Op",
",",
"SDValue",
"&",
"Base",
",",
"SDValue",
"&",
"Offset",
",",
"ISD",
"::",
"MemIndexedMode",
"&",
"AM",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"EVT",
"VT",
";",
"SDValue",
"Ptr",
";",
"bool",
"isSEXTLoad",
"=",
"false",
";",
"if",
"(",
"LoadSDNode",
"*",
"LD",
"=",
"dyn_cast",
"<",
"LoadSDNode",
">",
"(",
"N",
")",
")",
"{",
"VT",
"=",
"LD",
"->",
"getMemoryVT",
"(",
")",
";",
"isSEXTLoad",
"=",
"LD",
"->",
"getExtensionType",
"(",
")",
"==",
"ISD",
"::",
"SEXTLOAD",
";",
"}",
"else",
"if",
"(",
"StoreSDNode",
"*",
"ST",
"=",
"dyn_cast",
"<",
"StoreSDNode",
">",
"(",
"N",
")",
")",
"{",
"VT",
"=",
"ST",
"->",
"getMemoryVT",
"(",
")",
";",
"if",
"(",
"ST",
"->",
"getValue",
"(",
")",
".",
"getValueType",
"(",
")",
"==",
"MVT",
"::",
"i64",
"&&",
"ST",
"->",
"isTruncatingStore",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"}",
"else",
"{",
"return",
"false",
";",
"}",
"bool",
"isInc",
"=",
"false",
";",
"bool",
"isLegal",
"=",
"getIndexedAddressParts",
"(",
"Op",
",",
"VT",
",",
"isSEXTLoad",
",",
"Base",
",",
"Offset",
",",
"isInc",
",",
"DAG",
")",
";",
"int",
"ShiftAmount",
"=",
"VT",
".",
"getSizeInBits",
"(",
")",
"/",
"16",
";",
"if",
"(",
"isLegal",
"&&",
"Is_PostInc_S4_Offset",
"(",
"Offset",
".",
"getNode",
"(",
")",
",",
"ShiftAmount",
")",
")",
"{",
"AM",
"=",
"isInc",
"?",
"ISD",
"::",
"POST_INC",
":",
"ISD",
"::",
"POST_DEC",
";",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"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",
"."
] | [
"Hexagon",
"Hexagon",
"ISD::MemIndexedMode",
"ISD::SEXTLOAD",
"MVT::i64",
"16",
"ISD::POST_INC",
"ISD::POST_DEC"
] | HexagonISelLowering (2)2 | getPostIndexedAddressParts | Hexagon | DSP | LLVM | 11,665 | 210 | 1 | [] |
[
"<s>",
"const",
"TargetRegisterClass",
"*",
"MCS51RegisterInfo",
"::",
"getLargestLegalSuperClass",
"(",
"const",
"TargetRegisterClass",
"*",
"RC",
",",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"const",
"TargetRegisterInfo",
"*",
"TRI",
"=",
"MF",
".",
"getSubtarget",
"(",
")",
".",
"getRegisterInfo",
"(",
")",
";",
"if",
"(",
"TRI",
"->",
"isTypeLegalForClass",
"(",
"*",
"RC",
",",
"MVT",
"::",
"i16",
")",
")",
"{",
"return",
"&",
"MCS51",
"::",
"DREGSRegClass",
";",
"}",
"if",
"(",
"TRI",
"->",
"isTypeLegalForClass",
"(",
"*",
"RC",
",",
"MVT",
"::",
"i8",
")",
")",
"{",
"return",
"&",
"MCS51",
"::",
"GPR8RegClass",
";",
"}",
"llvm_unreachable",
"(",
"\"Invalid register size\"",
")",
";",
"}",
"</s>"
] | [
"Returns",
"the",
"largest",
"super",
"class",
"of",
"RC",
"that",
"is",
"legal",
"to",
"use",
"in",
"the",
"current",
"sub-target",
"and",
"has",
"the",
"same",
"spill",
"size",
"."
] | [
"MCS51",
"MCS51",
"MVT::i16",
"MCS51::DREGSRegClass",
"MVT::i8",
"MCS51::GPR8RegClass",
"\"Invalid register size\""
] | MCS51RegisterInfo | getLargestLegalSuperClass | MCS51 | MPU | LLVM | 11,666 | 84 | 1 | [] |
[
"<s>",
"bool",
"MipsPassConfig",
"::",
"addPreEmitPass",
"(",
")",
"{",
"MipsTargetMachine",
"&",
"TM",
"=",
"getMipsTargetMachine",
"(",
")",
";",
"addPass",
"(",
"createMipsDelaySlotFillerPass",
"(",
"TM",
")",
")",
";",
"if",
"(",
"TM",
".",
"getSubtarget",
"<",
"MipsSubtarget",
">",
"(",
")",
".",
"hasStandardEncoding",
"(",
")",
")",
"addPass",
"(",
"createMipsLongBranchPass",
"(",
"TM",
")",
")",
";",
"if",
"(",
"TM",
".",
"getSubtarget",
"<",
"MipsSubtarget",
">",
"(",
")",
".",
"inMips16Mode",
"(",
")",
")",
"addPass",
"(",
"createMipsConstantIslandPass",
"(",
"TM",
")",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"This",
"pass",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"immediately",
"before",
"machine",
"code",
"is",
"emitted",
"."
] | [
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips"
] | MipsTargetMachine80 | addPreEmitPass | Mips | CPU | LLVM | 11,667 | 73 | 1 | [] |
[
"<s>",
"bool",
"HexagonPacketizer",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"MF",
".",
"getProperties",
"(",
")",
".",
"set",
"(",
"MachineFunctionProperties",
"::",
"Property",
"::",
"FailsVerification",
")",
";",
"auto",
"&",
"HST",
"=",
"MF",
".",
"getSubtarget",
"<",
"HexagonSubtarget",
">",
"(",
")",
";",
"HII",
"=",
"HST",
".",
"getInstrInfo",
"(",
")",
";",
"HRI",
"=",
"HST",
".",
"getRegisterInfo",
"(",
")",
";",
"auto",
"&",
"MLI",
"=",
"getAnalysis",
"<",
"MachineLoopInfo",
">",
"(",
")",
";",
"auto",
"*",
"AA",
"=",
"&",
"getAnalysis",
"<",
"AAResultsWrapperPass",
">",
"(",
")",
".",
"getAAResults",
"(",
")",
";",
"auto",
"*",
"MBPI",
"=",
"&",
"getAnalysis",
"<",
"MachineBranchProbabilityInfo",
">",
"(",
")",
";",
"if",
"(",
"EnableGenAllInsnClass",
")",
"HII",
"->",
"genAllInsnTimingClasses",
"(",
"MF",
")",
";",
"bool",
"MinOnly",
"=",
"Minimal",
"||",
"DisablePacketizer",
"||",
"!",
"HST",
".",
"usePackets",
"(",
")",
"||",
"skipFunction",
"(",
"MF",
".",
"getFunction",
"(",
")",
")",
";",
"HexagonPacketizerList",
"Packetizer",
"(",
"MF",
",",
"MLI",
",",
"AA",
",",
"MBPI",
",",
"MinOnly",
")",
";",
"assert",
"(",
"Packetizer",
".",
"getResourceTracker",
"(",
")",
"&&",
"\"Empty DFA table!\"",
")",
";",
"for",
"(",
"MachineBasicBlock",
"&",
"MB",
":",
"MF",
")",
"{",
"for",
"(",
"MachineInstr",
"&",
"MI",
":",
"llvm",
"::",
"make_early_inc_range",
"(",
"MB",
")",
")",
"if",
"(",
"MI",
".",
"isKill",
"(",
")",
")",
"MB",
".",
"erase",
"(",
"&",
"MI",
")",
";",
"}",
"if",
"(",
"HST",
".",
"isTinyCoreWithDuplex",
"(",
")",
")",
"HII",
"->",
"translateInstrsForDup",
"(",
"MF",
",",
"true",
")",
";",
"for",
"(",
"auto",
"&",
"MB",
":",
"MF",
")",
"{",
"auto",
"Begin",
"=",
"MB",
".",
"begin",
"(",
")",
",",
"End",
"=",
"MB",
".",
"end",
"(",
")",
";",
"while",
"(",
"Begin",
"!=",
"End",
")",
"{",
"MachineBasicBlock",
"::",
"iterator",
"RB",
"=",
"Begin",
";",
"while",
"(",
"RB",
"!=",
"End",
"&&",
"HII",
"->",
"isSchedulingBoundary",
"(",
"*",
"RB",
",",
"&",
"MB",
",",
"MF",
")",
")",
"++",
"RB",
";",
"MachineBasicBlock",
"::",
"iterator",
"RE",
"=",
"RB",
";",
"while",
"(",
"RE",
"!=",
"End",
"&&",
"!",
"HII",
"->",
"isSchedulingBoundary",
"(",
"*",
"RE",
",",
"&",
"MB",
",",
"MF",
")",
")",
"++",
"RE",
";",
"if",
"(",
"RE",
"!=",
"End",
")",
"++",
"RE",
";",
"if",
"(",
"RB",
"!=",
"End",
")",
"Packetizer",
".",
"PacketizeMIs",
"(",
"&",
"MB",
",",
"RB",
",",
"RE",
")",
";",
"Begin",
"=",
"RE",
";",
"}",
"}",
"if",
"(",
"HST",
".",
"isTinyCoreWithDuplex",
"(",
")",
")",
"HII",
"->",
"translateInstrsForDup",
"(",
"MF",
",",
"false",
")",
";",
"Packetizer",
".",
"unpacketizeSoloInstrs",
"(",
"MF",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"Hexagon",
"Hexagon",
"Hexagon",
"Hexagon",
"\"Empty DFA table!\""
] | HexagonVLIWPacketizer11 | runOnMachineFunction | Hexagon | DSP | LLVM | 11,668 | 361 | 1 | [] |
[
"<s>",
"static",
"void",
"eco32_function_arg_advance",
"(",
"cumulative_args_t",
"cum",
",",
"enum",
"machine_mode",
"mode",
",",
"const_tree",
"type",
",",
"bool",
"named",
"ATTRIBUTE_UNUSED",
")",
"{",
"*",
"get_cumulative_args",
"(",
"cum",
")",
"+=",
"eco32_num_arg_regs",
"(",
"mode",
",",
"type",
")",
";",
"}",
"</s>"
] | [
"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",
".",
")"
] | [
"eco32"
] | eco32 | eco32_function_arg_advance | eco32 | MPU | GCC | 11,669 | 33 | 1 | [] |
[
"<s>",
"bool",
"AArch64TargetLowering",
"::",
"allowsMisalignedMemoryAccesses",
"(",
"LLT",
"Ty",
",",
"unsigned",
"AddrSpace",
",",
"Align",
"Alignment",
",",
"MachineMemOperand",
"::",
"Flags",
"Flags",
",",
"bool",
"*",
"Fast",
")",
"const",
"{",
"if",
"(",
"Subtarget",
"->",
"requiresStrictAlign",
"(",
")",
")",
"return",
"false",
";",
"if",
"(",
"Fast",
")",
"{",
"*",
"Fast",
"=",
"!",
"Subtarget",
"->",
"isMisaligned128StoreSlow",
"(",
")",
"||",
"Ty",
".",
"getSizeInBytes",
"(",
")",
"!=",
"16",
"||",
"Alignment",
"<=",
"2",
"||",
"Ty",
"==",
"LLT",
"::",
"fixed_vector",
"(",
"2",
",",
"64",
")",
";",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"target",
"allows",
"unaligned",
"memory",
"accesses",
"of",
"the",
"specified",
"type",
"."
] | [
"AArch64",
"AArch64",
"16",
"2",
"2",
"64"
] | AArch64ISelLowering (2)2 | allowsMisalignedMemoryAccesses | AArch64 | CPU | LLVM | 11,670 | 79 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"getPassName",
"(",
")",
"const",
"override",
"{",
"return",
"\"R600 Emit Clause Markers Pass\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"R600",
"\"R600 Emit Clause Markers Pass\""
] | R600EmitClauseMarkers | getPassName | R600 | GPU | LLVM | 11,671 | 13 | 1 | [] |
[
"<s>",
"bool",
"X86InstrInfo",
"::",
"canInsertSelect",
"(",
"const",
"MachineBasicBlock",
"&",
"MBB",
",",
"ArrayRef",
"<",
"MachineOperand",
">",
"Cond",
",",
"unsigned",
"TrueReg",
",",
"unsigned",
"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",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"it",
"is",
"possible",
"to",
"insert",
"a",
"select",
"instruction",
"that",
"chooses",
"between",
"TrueReg",
"and",
"FalseReg",
"based",
"on",
"the",
"condition",
"code",
"in",
"Cond",
"."
] | [
"X86",
"X86",
"1",
"X86::CondCode",
"0",
"X86::LAST_VALID_COND",
"X86::GR16RegClass",
"X86::GR32RegClass",
"X86::GR64RegClass",
"2",
"2",
"2"
] | X86InstrInfo11 | canInsertSelect | X86 | CPU | LLVM | 11,672 | 181 | 1 | [] |
[
"<s>",
"void",
"SystemZHazardRecognizer",
"::",
"Reset",
"(",
")",
"{",
"CurrGroupSize",
"=",
"0",
";",
"clearProcResCounters",
"(",
")",
";",
"GrpCount",
"=",
"0",
";",
"LastFPdOpCycleIdx",
"=",
"UINT_MAX",
";",
"DEBUG",
"(",
"CurGroupDbg",
"=",
"\"\"",
";",
")",
";",
"}",
"</s>"
] | [
"Reset",
"the",
"unwind",
"opcode",
"assembler",
"."
] | [
"SystemZ",
"SystemZ",
"0",
"0",
"\"\""
] | SystemZHazardRecognizer4 | Reset | SystemZ | CPU | LLVM | 11,673 | 32 | 1 | [] |
[
"<s>",
"static",
"rtx",
"aarch64_emit_move",
"(",
"rtx",
"dest",
",",
"rtx",
"src",
")",
"{",
"return",
"(",
"can_create_pseudo_p",
"(",
")",
"?",
"emit_move_insn",
"(",
"dest",
",",
"src",
")",
":",
"emit_move_insn_1",
"(",
"dest",
",",
"src",
")",
")",
";",
"}",
"</s>"
] | [
"Emit",
"a",
"move",
"from",
"SRC",
"to",
"DEST",
".",
"Assume",
"that",
"the",
"move",
"expanders",
"can",
"handle",
"all",
"moves",
"if",
"!",
"can_create_pseudo_p",
"(",
")",
".",
"The",
"distinction",
"is",
"important",
"because",
",",
"unlike",
"emit_move_insn",
",",
"the",
"move",
"expanders",
"know",
"how",
"to",
"force",
"Pmode",
"objects",
"into",
"the",
"constant",
"pool",
"even",
"when",
"the",
"constant",
"pool",
"address",
"is",
"not",
"itself",
"legitimate",
"."
] | [
"aarch64"
] | aarch64 | aarch64_emit_move | aarch64 | CPU | GCC | 11,674 | 33 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"output_v8plus_mult",
"(",
"rtx_insn",
"*",
"insn",
",",
"rtx",
"*",
"operands",
",",
"const",
"char",
"*",
"opcode",
")",
"{",
"char",
"mulstr",
"[",
"32",
"]",
";",
"gcc_assert",
"(",
"!",
"TARGET_ARCH64",
")",
";",
"if",
"(",
"sparc_check_64",
"(",
"operands",
"[",
"1",
"]",
",",
"insn",
")",
"<=",
"0",
")",
"output_asm_insn",
"(",
"\"srl\\t%L1, 0, %L1\"",
",",
"operands",
")",
";",
"if",
"(",
"which_alternative",
"==",
"1",
")",
"output_asm_insn",
"(",
"\"sllx\\t%H1, 32, %H1\"",
",",
"operands",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"operands",
"[",
"2",
"]",
")",
"==",
"CONST_INT",
")",
"{",
"if",
"(",
"which_alternative",
"==",
"1",
")",
"{",
"output_asm_insn",
"(",
"\"or\\t%L1, %H1, %H1\"",
",",
"operands",
")",
";",
"sprintf",
"(",
"mulstr",
",",
"\"%s\\t%%H1, %%2, %%L0\"",
",",
"opcode",
")",
";",
"output_asm_insn",
"(",
"mulstr",
",",
"operands",
")",
";",
"return",
"\"srlx\\t%L0, 32, %H0\"",
";",
"}",
"else",
"{",
"output_asm_insn",
"(",
"\"sllx\\t%H1, 32, %3\"",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"or\\t%L1, %3, %3\"",
",",
"operands",
")",
";",
"sprintf",
"(",
"mulstr",
",",
"\"%s\\t%%3, %%2, %%3\"",
",",
"opcode",
")",
";",
"output_asm_insn",
"(",
"mulstr",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"srlx\\t%3, 32, %H0\"",
",",
"operands",
")",
";",
"return",
"\"mov\\t%3, %L0\"",
";",
"}",
"}",
"else",
"if",
"(",
"rtx_equal_p",
"(",
"operands",
"[",
"1",
"]",
",",
"operands",
"[",
"2",
"]",
")",
")",
"{",
"if",
"(",
"which_alternative",
"==",
"1",
")",
"{",
"output_asm_insn",
"(",
"\"or\\t%L1, %H1, %H1\"",
",",
"operands",
")",
";",
"sprintf",
"(",
"mulstr",
",",
"\"%s\\t%%H1, %%H1, %%L0\"",
",",
"opcode",
")",
";",
"output_asm_insn",
"(",
"mulstr",
",",
"operands",
")",
";",
"return",
"\"srlx\\t%L0, 32, %H0\"",
";",
"}",
"else",
"{",
"output_asm_insn",
"(",
"\"sllx\\t%H1, 32, %3\"",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"or\\t%L1, %3, %3\"",
",",
"operands",
")",
";",
"sprintf",
"(",
"mulstr",
",",
"\"%s\\t%%3, %%3, %%3\"",
",",
"opcode",
")",
";",
"output_asm_insn",
"(",
"mulstr",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"srlx\\t%3, 32, %H0\"",
",",
"operands",
")",
";",
"return",
"\"mov\\t%3, %L0\"",
";",
"}",
"}",
"if",
"(",
"sparc_check_64",
"(",
"operands",
"[",
"2",
"]",
",",
"insn",
")",
"<=",
"0",
")",
"output_asm_insn",
"(",
"\"srl\\t%L2, 0, %L2\"",
",",
"operands",
")",
";",
"if",
"(",
"which_alternative",
"==",
"1",
")",
"{",
"output_asm_insn",
"(",
"\"or\\t%L1, %H1, %H1\"",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"sllx\\t%H2, 32, %L1\"",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"or\\t%L2, %L1, %L1\"",
",",
"operands",
")",
";",
"sprintf",
"(",
"mulstr",
",",
"\"%s\\t%%H1, %%L1, %%L0\"",
",",
"opcode",
")",
";",
"output_asm_insn",
"(",
"mulstr",
",",
"operands",
")",
";",
"return",
"\"srlx\\t%L0, 32, %H0\"",
";",
"}",
"else",
"{",
"output_asm_insn",
"(",
"\"sllx\\t%H1, 32, %3\"",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"sllx\\t%H2, 32, %4\"",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"or\\t%L1, %3, %3\"",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"or\\t%L2, %4, %4\"",
",",
"operands",
")",
";",
"sprintf",
"(",
"mulstr",
",",
"\"%s\\t%%3, %%4, %%3\"",
",",
"opcode",
")",
";",
"output_asm_insn",
"(",
"mulstr",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"srlx\\t%3, 32, %H0\"",
",",
"operands",
")",
";",
"return",
"\"mov\\t%3, %L0\"",
";",
"}",
"}",
"</s>"
] | [
"Output",
"a",
"wide",
"multiply",
"instruction",
"in",
"V8+",
"mode",
".",
"INSN",
"is",
"the",
"instruction",
",",
"OPERANDS",
"are",
"its",
"operands",
"and",
"OPCODE",
"is",
"the",
"mnemonic",
"to",
"be",
"used",
"."
] | [
"sparc",
"32",
"1",
"0",
"\"srl\\t%L1, 0, %L1\"",
"1",
"\"sllx\\t%H1, 32, %H1\"",
"2",
"1",
"\"or\\t%L1, %H1, %H1\"",
"\"%s\\t%%H1, %%2, %%L0\"",
"\"srlx\\t%L0, 32, %H0\"",
"\"sllx\\t%H1, 32, %3\"",
"\"or\\t%L1, %3, %3\"",
"\"%s\\t%%3, %%2, %%3\"",
"\"srlx\\t%3, 32, %H0\"",
"\"mov\\t%3, %L0\"",
"1",
"2",
"1",
"\"or\\t%L1, %H1, %H1\"",
"\"%s\\t%%H1, %%H1, %%L0\"",
"\"srlx\\t%L0, 32, %H0\"",
"\"sllx\\t%H1, 32, %3\"",
"\"or\\t%L1, %3, %3\"",
"\"%s\\t%%3, %%3, %%3\"",
"\"srlx\\t%3, 32, %H0\"",
"\"mov\\t%3, %L0\"",
"2",
"0",
"\"srl\\t%L2, 0, %L2\"",
"1",
"\"or\\t%L1, %H1, %H1\"",
"\"sllx\\t%H2, 32, %L1\"",
"\"or\\t%L2, %L1, %L1\"",
"\"%s\\t%%H1, %%L1, %%L0\"",
"\"srlx\\t%L0, 32, %H0\"",
"\"sllx\\t%H1, 32, %3\"",
"\"sllx\\t%H2, 32, %4\"",
"\"or\\t%L1, %3, %3\"",
"\"or\\t%L2, %4, %4\"",
"\"%s\\t%%3, %%4, %%3\"",
"\"srlx\\t%3, 32, %H0\"",
"\"mov\\t%3, %L0\""
] | sparc | output_v8plus_mult | sparc | CPU | GCC | 11,675 | 378 | 1 | [] |
[
"<s>",
"static",
"void",
"do_ifelse",
"(",
"machine_mode",
"cmpmode",
",",
"rtx_code",
"comparison",
",",
"rtx",
"a",
",",
"rtx",
"b",
",",
"rtx",
"cr",
",",
"rtx",
"true_label",
")",
"{",
"gcc_assert",
"(",
"(",
"a",
"==",
"NULL_RTX",
"&&",
"b",
"==",
"NULL_RTX",
"&&",
"cr",
"!=",
"NULL_RTX",
")",
"||",
"(",
"a",
"!=",
"NULL_RTX",
"&&",
"b",
"!=",
"NULL_RTX",
")",
")",
";",
"if",
"(",
"cr",
"!=",
"NULL_RTX",
")",
"gcc_assert",
"(",
"GET_MODE",
"(",
"cr",
")",
"==",
"cmpmode",
")",
";",
"else",
"cr",
"=",
"gen_reg_rtx",
"(",
"cmpmode",
")",
";",
"rtx",
"label_ref",
"=",
"gen_rtx_LABEL_REF",
"(",
"VOIDmode",
",",
"true_label",
")",
";",
"if",
"(",
"a",
"!=",
"NULL_RTX",
")",
"emit_move_insn",
"(",
"cr",
",",
"gen_rtx_COMPARE",
"(",
"cmpmode",
",",
"a",
",",
"b",
")",
")",
";",
"rtx",
"cmp_rtx",
"=",
"gen_rtx_fmt_ee",
"(",
"comparison",
",",
"VOIDmode",
",",
"cr",
",",
"const0_rtx",
")",
";",
"rtx",
"ifelse",
"=",
"gen_rtx_IF_THEN_ELSE",
"(",
"VOIDmode",
",",
"cmp_rtx",
",",
"label_ref",
",",
"pc_rtx",
")",
";",
"rtx",
"j",
"=",
"emit_jump_insn",
"(",
"gen_rtx_SET",
"(",
"pc_rtx",
",",
"ifelse",
")",
")",
";",
"JUMP_LABEL",
"(",
"j",
")",
"=",
"true_label",
";",
"LABEL_NUSES",
"(",
"true_label",
")",
"+=",
"1",
";",
"}",
"</s>"
] | [
"Do",
"a",
"branch",
"for",
"an",
"if/else",
"decision",
".",
"CMPMODE",
"is",
"the",
"mode",
"to",
"use",
"for",
"the",
"comparison",
".",
"COMPARISON",
"is",
"the",
"rtx",
"code",
"for",
"the",
"compare",
"needed",
".",
"A",
"is",
"the",
"first",
"thing",
"to",
"be",
"compared",
".",
"B",
"is",
"the",
"second",
"thing",
"to",
"be",
"compared",
".",
"CR",
"is",
"the",
"condition",
"code",
"reg",
"input",
",",
"or",
"NULL_RTX",
".",
"TRUE_LABEL",
"is",
"the",
"label",
"to",
"branch",
"to",
"if",
"the",
"condition",
"is",
"true",
".",
"The",
"return",
"value",
"is",
"the",
"CR",
"used",
"for",
"the",
"comparison",
".",
"If",
"CR",
"is",
"null_rtx",
",",
"then",
"a",
"new",
"register",
"of",
"CMPMODE",
"is",
"generated",
".",
"If",
"A",
"and",
"B",
"are",
"both",
"null_rtx",
",",
"then",
"CR",
"must",
"not",
"be",
"null",
",",
"and",
"the",
"compare",
"is",
"not",
"generated",
"so",
"you",
"can",
"use",
"this",
"with",
"a",
"dot",
"form",
"insn",
"."
] | [
"rs6000",
"1"
] | rs6000-string2 | do_ifelse | rs6000 | CPU | GCC | 11,676 | 160 | 1 | [] |
[
"<s>",
"static",
"const",
"char",
"*",
"m68hc11_strip_name_encoding",
"(",
"const",
"char",
"*",
"str",
")",
"{",
"return",
"str",
"+",
"(",
"*",
"str",
"==",
"'*'",
"||",
"*",
"str",
"==",
"'@'",
"||",
"*",
"str",
"==",
"'&'",
")",
";",
"}",
"</s>"
] | [
"Undo",
"the",
"effects",
"of",
"the",
"above",
"."
] | [
"m68hc11"
] | m68hc111 | m68hc11_strip_name_encoding | m68hc11 | MPU | GCC | 11,677 | 33 | 1 | [] |
[
"<s>",
"bool",
"SILowerControlFlowPass",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"bool",
"HaveKill",
"=",
"false",
";",
"unsigned",
"Depth",
"=",
"0",
";",
"for",
"(",
"MachineFunction",
"::",
"iterator",
"BI",
"=",
"MF",
".",
"begin",
"(",
")",
",",
"BE",
"=",
"MF",
".",
"end",
"(",
")",
";",
"BI",
"!=",
"BE",
";",
"++",
"BI",
")",
"{",
"MachineBasicBlock",
"&",
"MBB",
"=",
"*",
"BI",
";",
"for",
"(",
"MachineBasicBlock",
"::",
"iterator",
"I",
"=",
"MBB",
".",
"begin",
"(",
")",
",",
"Next",
"=",
"llvm",
"::",
"next",
"(",
"I",
")",
";",
"I",
"!=",
"MBB",
".",
"end",
"(",
")",
";",
"I",
"=",
"Next",
")",
"{",
"Next",
"=",
"llvm",
"::",
"next",
"(",
"I",
")",
";",
"MachineInstr",
"&",
"MI",
"=",
"*",
"I",
";",
"switch",
"(",
"MI",
".",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"break",
";",
"case",
"AMDGPU",
"::",
"SI_IF",
":",
"++",
"Depth",
";",
"If",
"(",
"MI",
")",
";",
"break",
";",
"case",
"AMDGPU",
"::",
"SI_ELSE",
":",
"Else",
"(",
"MI",
")",
";",
"break",
";",
"case",
"AMDGPU",
"::",
"SI_BREAK",
":",
"Break",
"(",
"MI",
")",
";",
"break",
";",
"case",
"AMDGPU",
"::",
"SI_IF_BREAK",
":",
"IfBreak",
"(",
"MI",
")",
";",
"break",
";",
"case",
"AMDGPU",
"::",
"SI_ELSE_BREAK",
":",
"ElseBreak",
"(",
"MI",
")",
";",
"break",
";",
"case",
"AMDGPU",
"::",
"SI_LOOP",
":",
"++",
"Depth",
";",
"Loop",
"(",
"MI",
")",
";",
"break",
";",
"case",
"AMDGPU",
"::",
"SI_END_CF",
":",
"if",
"(",
"--",
"Depth",
"==",
"0",
"&&",
"HaveKill",
")",
"{",
"SkipIfDead",
"(",
"MI",
")",
";",
"HaveKill",
"=",
"false",
";",
"}",
"EndCf",
"(",
"MI",
")",
";",
"break",
";",
"case",
"AMDGPU",
"::",
"SI_KILL",
":",
"if",
"(",
"Depth",
"==",
"0",
")",
"SkipIfDead",
"(",
"MI",
")",
";",
"else",
"HaveKill",
"=",
"true",
";",
"Kill",
"(",
"MI",
")",
";",
"break",
";",
"case",
"AMDGPU",
"::",
"S_BRANCH",
":",
"Branch",
"(",
"MI",
")",
";",
"break",
";",
"}",
"}",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"R600",
"SI",
"0",
"SI",
"SI",
"SI",
"SI",
"SI",
"SI",
"SI",
"0",
"SI",
"0"
] | SILowerControlFlow37 | runOnMachineFunction | R600 | GPU | LLVM | 11,678 | 277 | 1 | [] |
[
"<s>",
"void",
"AVRPassConfig",
"::",
"addPreSched2",
"(",
")",
"{",
"addPass",
"(",
"createAVRExpandPseudoPass",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"This",
"method",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"after",
"prolog-epilog",
"insertion",
"and",
"before",
"the",
"second",
"instruction",
"scheduling",
"pass",
"."
] | [
"AVR",
"AVR",
"AVR"
] | AVRTargetMachine12 | addPreSched2 | AVR | MPU | LLVM | 11,679 | 15 | 1 | [] |
[
"<s>",
"OperandMatchResultTy",
"CSKYAsmParser",
"::",
"tryParseRegister",
"(",
"unsigned",
"&",
"RegNo",
",",
"SMLoc",
"&",
"StartLoc",
",",
"SMLoc",
"&",
"EndLoc",
")",
"{",
"const",
"AsmToken",
"&",
"Tok",
"=",
"getParser",
"(",
")",
".",
"getTok",
"(",
")",
";",
"StartLoc",
"=",
"Tok",
".",
"getLoc",
"(",
")",
";",
"EndLoc",
"=",
"Tok",
".",
"getEndLoc",
"(",
")",
";",
"StringRef",
"Name",
"=",
"getLexer",
"(",
")",
".",
"getTok",
"(",
")",
".",
"getIdentifier",
"(",
")",
";",
"if",
"(",
"matchRegisterNameHelper",
"(",
"(",
"MCRegister",
"&",
")",
"RegNo",
",",
"Name",
")",
")",
"return",
"MatchOperand_NoMatch",
";",
"getParser",
"(",
")",
".",
"Lex",
"(",
")",
";",
"return",
"MatchOperand_Success",
";",
"}",
"</s>"
] | [
"tryParseRegister",
"-",
"parse",
"one",
"register",
"if",
"possible"
] | [
"CSKY",
"CSKY"
] | CSKYAsmParser6 | tryParseRegister | CSKY | CPU | LLVM | 11,680 | 90 | 1 | [] |
[
"<s>",
"static",
"bool",
"m32c_function_needs_enter",
"(",
"void",
")",
"{",
"rtx_insn",
"*",
"insn",
";",
"struct",
"sequence_stack",
"*",
"seq",
";",
"rtx",
"sp",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"SP_REGNO",
")",
";",
"rtx",
"fb",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"FB_REGNO",
")",
";",
"insn",
"=",
"get_insns",
"(",
")",
";",
"for",
"(",
"seq",
"=",
"crtl",
"->",
"emit",
".",
"sequence_stack",
";",
"seq",
";",
"insn",
"=",
"seq",
"->",
"first",
",",
"seq",
"=",
"seq",
"->",
"next",
")",
";",
"while",
"(",
"insn",
")",
"{",
"if",
"(",
"reg_mentioned_p",
"(",
"sp",
",",
"insn",
")",
")",
"return",
"true",
";",
"if",
"(",
"reg_mentioned_p",
"(",
"fb",
",",
"insn",
")",
")",
"return",
"true",
";",
"insn",
"=",
"NEXT_INSN",
"(",
"insn",
")",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Returns",
"TRUE",
"if",
"the",
"current",
"function",
"needs",
"to",
"use",
"the",
"ENTER/EXIT",
"opcodes",
".",
"If",
"the",
"function",
"does",
"n't",
"need",
"the",
"frame",
"base",
"or",
"stack",
"pointer",
",",
"it",
"can",
"use",
"the",
"simpler",
"RTS",
"opcode",
"."
] | [
"m32c"
] | m32c3 | m32c_function_needs_enter | m32c | MPU | GCC | 11,681 | 108 | 1 | [] |
[
"<s>",
"bool",
"PIC16AsmPrinter",
"::",
"doInitialization",
"(",
"Module",
"&",
"M",
")",
"{",
"bool",
"Result",
"=",
"AsmPrinter",
"::",
"doInitialization",
"(",
"M",
")",
";",
"OutStreamer",
".",
"EmitRawText",
"(",
"StringRef",
"(",
"\"\\n#include p16f1xxx.inc\"",
")",
")",
";",
"OutStreamer",
".",
"EmitRawText",
"(",
"StringRef",
"(",
"\"#include stdmacros.inc\"",
")",
")",
";",
"for",
"(",
"Module",
"::",
"global_iterator",
"I",
"=",
"M",
".",
"global_begin",
"(",
")",
",",
"E",
"=",
"M",
".",
"global_end",
"(",
")",
";",
"I",
"!=",
"E",
";",
"++",
"I",
")",
"{",
"if",
"(",
"I",
"->",
"isDeclaration",
"(",
")",
")",
"{",
"ExternalVarDecls",
".",
"push_back",
"(",
"I",
")",
";",
"continue",
";",
"}",
"if",
"(",
"I",
"->",
"hasExternalLinkage",
"(",
")",
"||",
"I",
"->",
"hasCommonLinkage",
"(",
")",
")",
"{",
"ExternalVarDefs",
".",
"push_back",
"(",
"I",
")",
";",
"}",
"if",
"(",
"!",
"I",
"->",
"hasAvailableExternallyLinkage",
"(",
")",
")",
"{",
"const",
"MCSection",
"*",
"S",
"=",
"getObjFileLowering",
"(",
")",
".",
"SectionForGlobal",
"(",
"I",
",",
"Mang",
",",
"TM",
")",
";",
"I",
"->",
"setSection",
"(",
"(",
"(",
"const",
"PIC16Section",
"*",
")",
"S",
")",
"->",
"getName",
"(",
")",
")",
";",
"}",
"}",
"DbgInfo",
".",
"BeginModule",
"(",
"M",
")",
";",
"EmitFunctionDecls",
"(",
"M",
")",
";",
"EmitUndefinedVars",
"(",
"M",
")",
";",
"EmitDefinedVars",
"(",
"M",
")",
";",
"EmitIData",
"(",
"M",
")",
";",
"EmitUData",
"(",
"M",
")",
";",
"EmitRomData",
"(",
"M",
")",
";",
"EmitSharedUdata",
"(",
"M",
")",
";",
"EmitUserSections",
"(",
"M",
")",
";",
"return",
"Result",
";",
"}",
"</s>"
] | [
"Set",
"up",
"the",
"AsmPrinter",
"when",
"we",
"are",
"working",
"on",
"a",
"new",
"module",
"."
] | [
"PIC16",
"PIC16",
"\"\\n#include p16f1xxx.inc\"",
"\"#include stdmacros.inc\"",
"PIC16"
] | PIC16AsmPrinter | doInitialization | PIC16 | MPU | LLVM | 11,682 | 210 | 1 | [] |
[
"<s>",
"bool",
"MCS51FrameLowering",
"::",
"canSimplifyCallFramePseudos",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"return",
"true",
";",
"}",
"</s>"
] | [
"canSimplifyCallFramePseudos",
"-",
"If",
"there",
"is",
"a",
"reserved",
"call",
"frame",
",",
"the",
"call",
"frame",
"pseudos",
"can",
"be",
"simplified",
"."
] | [
"MCS51",
"MCS51"
] | MCS51FrameLowering | canSimplifyCallFramePseudos | MCS51 | MPU | LLVM | 11,683 | 16 | 1 | [] |
[
"<s>",
"bool",
"AVRTargetLowering",
"::",
"isLegalAddressingMode",
"(",
"const",
"DataLayout",
"&",
"DL",
",",
"const",
"AddrMode",
"&",
"AM",
",",
"Type",
"*",
"Ty",
",",
"unsigned",
"AS",
",",
"Instruction",
"*",
"I",
")",
"const",
"{",
"int64_t",
"Offs",
"=",
"AM",
".",
"BaseOffs",
";",
"if",
"(",
"AM",
".",
"BaseGV",
"&&",
"!",
"AM",
".",
"HasBaseReg",
"&&",
"AM",
".",
"Scale",
"==",
"0",
"&&",
"Offs",
"==",
"0",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"isa",
"<",
"PointerType",
">",
"(",
"Ty",
")",
"&&",
"AS",
"==",
"AVR",
"::",
"ProgramMemory",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"Offs",
"<",
"0",
")",
"Offs",
"=",
"-",
"Offs",
";",
"if",
"(",
"AM",
".",
"BaseGV",
"==",
"nullptr",
"&&",
"AM",
".",
"HasBaseReg",
"&&",
"AM",
".",
"Scale",
"==",
"0",
"&&",
"isUInt",
"<",
"6",
">",
"(",
"Offs",
")",
")",
"{",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"isLegalAddressingMode",
"-",
"Return",
"true",
"if",
"the",
"addressing",
"mode",
"represented",
"by",
"AM",
"is",
"legal",
"for",
"this",
"target",
",",
"for",
"a",
"load/store",
"of",
"the",
"specified",
"type",
"."
] | [
"AVR",
"AVR",
"0",
"0",
"AVR::ProgramMemory",
"0",
"0",
"6"
] | AVRISelLowering12 | isLegalAddressingMode | AVR | MPU | LLVM | 11,684 | 128 | 1 | [] |
[
"<s>",
"bool",
"fixupNeedsRelaxation",
"(",
"const",
"MCFixup",
"&",
"Fixup",
",",
"uint64_t",
"Value",
",",
"const",
"MCRelaxableFragment",
"*",
"DF",
",",
"const",
"MCAsmLayout",
"&",
"Layout",
")",
"const",
"override",
"{",
"return",
"false",
";",
"}",
"</s>"
] | [
"Simple",
"predicate",
"for",
"targets",
"where",
"!",
"Resolved",
"implies",
"requiring",
"relaxation",
"."
] | [
"LEG"
] | LEGAsmBackend | fixupNeedsRelaxation | LEG | CPU | LLVM | 11,685 | 28 | 1 | [] |
[
"<s>",
"static",
"rtx",
"arm_expand_neon_builtin",
"(",
"int",
"fcode",
",",
"tree",
"exp",
",",
"rtx",
"target",
")",
"{",
"if",
"(",
"fcode",
">=",
"ARM_BUILTIN_NEON_BASE",
"&&",
"!",
"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",
";",
"}",
"arm_builtin_datum",
"*",
"d",
"=",
"&",
"neon_builtin_data",
"[",
"fcode",
"-",
"ARM_BUILTIN_NEON_PATTERN_START",
"]",
";",
"return",
"arm_expand_builtin_1",
"(",
"fcode",
",",
"exp",
",",
"target",
",",
"d",
")",
";",
"}",
"</s>"
] | [
"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",
"."
] | [
"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\""
] | arm-builtins4 | arm_expand_neon_builtin | arm | CPU | GCC | 11,686 | 135 | 1 | [] |
[
"<s>",
"void",
"MOSRegisterInfo",
"::",
"eliminateFrameIndex",
"(",
"MachineBasicBlock",
"::",
"iterator",
"MI",
",",
"int",
"SPAdj",
",",
"unsigned",
"FIOperandNum",
",",
"RegScavenger",
"*",
"RS",
")",
"const",
"{",
"MachineFunction",
"&",
"MF",
"=",
"*",
"MI",
"->",
"getMF",
"(",
")",
";",
"const",
"MachineFrameInfo",
"&",
"MFI",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"assert",
"(",
"!",
"SPAdj",
")",
";",
"int",
"Idx",
"=",
"MI",
"->",
"getOperand",
"(",
"FIOperandNum",
")",
".",
"getIndex",
"(",
")",
";",
"int64_t",
"Offset",
"=",
"MFI",
".",
"getObjectOffset",
"(",
"Idx",
")",
";",
"if",
"(",
"FIOperandNum",
"+",
"1",
"<",
"MI",
"->",
"getNumOperands",
"(",
")",
"&&",
"MI",
"->",
"getOperand",
"(",
"FIOperandNum",
"+",
"1",
")",
".",
"isImm",
"(",
")",
")",
"Offset",
"+=",
"MI",
"->",
"getOperand",
"(",
"FIOperandNum",
"+",
"1",
")",
".",
"getImm",
"(",
")",
";",
"else",
"Offset",
"+=",
"MI",
"->",
"getOperand",
"(",
"FIOperandNum",
")",
".",
"getOffset",
"(",
")",
";",
"if",
"(",
"MFI",
".",
"getStackID",
"(",
"Idx",
")",
"==",
"TargetStackID",
"::",
"Default",
")",
"{",
"Offset",
"+=",
"MFI",
".",
"getStackSize",
"(",
")",
";",
"}",
"switch",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"MI",
"->",
"getOperand",
"(",
"FIOperandNum",
")",
".",
"ChangeToTargetIndex",
"(",
"MOS",
"::",
"TI_STATIC_STACK",
",",
"Offset",
",",
"MI",
"->",
"getOperand",
"(",
"FIOperandNum",
")",
".",
"getTargetFlags",
"(",
")",
")",
";",
"break",
";",
"case",
"MOS",
"::",
"AddrLostk",
":",
"case",
"MOS",
"::",
"AddrHistk",
":",
"case",
"MOS",
"::",
"LDStk",
":",
"case",
"MOS",
"::",
"STStk",
":",
"MI",
"->",
"getOperand",
"(",
"FIOperandNum",
")",
".",
"ChangeToRegister",
"(",
"getFrameRegister",
"(",
"MF",
")",
",",
"false",
")",
";",
"MI",
"->",
"getOperand",
"(",
"FIOperandNum",
"+",
"1",
")",
".",
"setImm",
"(",
"Offset",
")",
";",
"break",
";",
"}",
"switch",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"break",
";",
"case",
"MOS",
"::",
"AddrLostk",
":",
"expandAddrLostk",
"(",
"MI",
")",
";",
"break",
";",
"case",
"MOS",
"::",
"AddrHistk",
":",
"expandAddrHistk",
"(",
"MI",
")",
";",
"break",
";",
"case",
"MOS",
"::",
"LDStk",
":",
"case",
"MOS",
"::",
"STStk",
":",
"expandLDSTStk",
"(",
"MI",
")",
";",
"break",
";",
"}",
"}",
"</s>"
] | [
"This",
"method",
"must",
"be",
"overriden",
"to",
"eliminate",
"abstract",
"frame",
"indices",
"from",
"instructions",
"which",
"may",
"use",
"them",
"."
] | [
"MOS",
"MOS",
"1",
"1",
"1",
"MOS::TI_STATIC_STACK",
"MOS::AddrLostk",
"MOS::AddrHistk",
"MOS::LDStk",
"MOS::STStk",
"1",
"MOS::AddrLostk",
"MOS::AddrHistk",
"MOS::LDStk",
"MOS::STStk"
] | MOSRegisterInfo | eliminateFrameIndex | MOS | MPU | LLVM | 11,687 | 301 | 1 | [] |
[
"<s>",
"SDValue",
"AlphaTargetLowering",
"::",
"LowerReturn",
"(",
"SDValue",
"Chain",
",",
"CallingConv",
"::",
"ID",
"CallConv",
",",
"bool",
"isVarArg",
",",
"const",
"SmallVectorImpl",
"<",
"ISD",
"::",
"OutputArg",
">",
"&",
"Outs",
",",
"DebugLoc",
"dl",
",",
"SelectionDAG",
"&",
"DAG",
")",
"{",
"SDValue",
"Copy",
"=",
"DAG",
".",
"getCopyToReg",
"(",
"Chain",
",",
"dl",
",",
"Alpha",
"::",
"R26",
",",
"DAG",
".",
"getNode",
"(",
"AlphaISD",
"::",
"GlobalRetAddr",
",",
"DebugLoc",
"(",
")",
",",
"MVT",
"::",
"i64",
")",
",",
"SDValue",
"(",
")",
")",
";",
"switch",
"(",
"Outs",
".",
"size",
"(",
")",
")",
"{",
"default",
":",
"llvm_unreachable",
"(",
"\"Do not know how to return this many arguments!\"",
")",
";",
"case",
"0",
":",
"break",
";",
"case",
"1",
":",
"{",
"EVT",
"ArgVT",
"=",
"Outs",
"[",
"0",
"]",
".",
"Val",
".",
"getValueType",
"(",
")",
";",
"unsigned",
"ArgReg",
";",
"if",
"(",
"ArgVT",
".",
"isInteger",
"(",
")",
")",
"ArgReg",
"=",
"Alpha",
"::",
"R0",
";",
"else",
"{",
"assert",
"(",
"ArgVT",
".",
"isFloatingPoint",
"(",
")",
")",
";",
"ArgReg",
"=",
"Alpha",
"::",
"F0",
";",
"}",
"Copy",
"=",
"DAG",
".",
"getCopyToReg",
"(",
"Copy",
",",
"dl",
",",
"ArgReg",
",",
"Outs",
"[",
"0",
"]",
".",
"Val",
",",
"Copy",
".",
"getValue",
"(",
"1",
")",
")",
";",
"if",
"(",
"DAG",
".",
"getMachineFunction",
"(",
")",
".",
"getRegInfo",
"(",
")",
".",
"liveout_empty",
"(",
")",
")",
"DAG",
".",
"getMachineFunction",
"(",
")",
".",
"getRegInfo",
"(",
")",
".",
"addLiveOut",
"(",
"ArgReg",
")",
";",
"break",
";",
"}",
"case",
"2",
":",
"{",
"EVT",
"ArgVT",
"=",
"Outs",
"[",
"0",
"]",
".",
"Val",
".",
"getValueType",
"(",
")",
";",
"unsigned",
"ArgReg1",
",",
"ArgReg2",
";",
"if",
"(",
"ArgVT",
".",
"isInteger",
"(",
")",
")",
"{",
"ArgReg1",
"=",
"Alpha",
"::",
"R0",
";",
"ArgReg2",
"=",
"Alpha",
"::",
"R1",
";",
"}",
"else",
"{",
"assert",
"(",
"ArgVT",
".",
"isFloatingPoint",
"(",
")",
")",
";",
"ArgReg1",
"=",
"Alpha",
"::",
"F0",
";",
"ArgReg2",
"=",
"Alpha",
"::",
"F1",
";",
"}",
"Copy",
"=",
"DAG",
".",
"getCopyToReg",
"(",
"Copy",
",",
"dl",
",",
"ArgReg1",
",",
"Outs",
"[",
"0",
"]",
".",
"Val",
",",
"Copy",
".",
"getValue",
"(",
"1",
")",
")",
";",
"if",
"(",
"std",
"::",
"find",
"(",
"DAG",
".",
"getMachineFunction",
"(",
")",
".",
"getRegInfo",
"(",
")",
".",
"liveout_begin",
"(",
")",
",",
"DAG",
".",
"getMachineFunction",
"(",
")",
".",
"getRegInfo",
"(",
")",
".",
"liveout_end",
"(",
")",
",",
"ArgReg1",
")",
"==",
"DAG",
".",
"getMachineFunction",
"(",
")",
".",
"getRegInfo",
"(",
")",
".",
"liveout_end",
"(",
")",
")",
"DAG",
".",
"getMachineFunction",
"(",
")",
".",
"getRegInfo",
"(",
")",
".",
"addLiveOut",
"(",
"ArgReg1",
")",
";",
"Copy",
"=",
"DAG",
".",
"getCopyToReg",
"(",
"Copy",
",",
"dl",
",",
"ArgReg2",
",",
"Outs",
"[",
"1",
"]",
".",
"Val",
",",
"Copy",
".",
"getValue",
"(",
"1",
")",
")",
";",
"if",
"(",
"std",
"::",
"find",
"(",
"DAG",
".",
"getMachineFunction",
"(",
")",
".",
"getRegInfo",
"(",
")",
".",
"liveout_begin",
"(",
")",
",",
"DAG",
".",
"getMachineFunction",
"(",
")",
".",
"getRegInfo",
"(",
")",
".",
"liveout_end",
"(",
")",
",",
"ArgReg2",
")",
"==",
"DAG",
".",
"getMachineFunction",
"(",
")",
".",
"getRegInfo",
"(",
")",
".",
"liveout_end",
"(",
")",
")",
"DAG",
".",
"getMachineFunction",
"(",
")",
".",
"getRegInfo",
"(",
")",
".",
"addLiveOut",
"(",
"ArgReg2",
")",
";",
"break",
";",
"}",
"}",
"return",
"DAG",
".",
"getNode",
"(",
"AlphaISD",
"::",
"RET_FLAG",
",",
"dl",
",",
"MVT",
"::",
"Other",
",",
"Copy",
",",
"Copy",
".",
"getValue",
"(",
"1",
")",
")",
";",
"}",
"</s>"
] | [
"This",
"hook",
"must",
"be",
"implemented",
"to",
"lower",
"outgoing",
"return",
"values",
",",
"described",
"by",
"the",
"Outs",
"array",
",",
"into",
"the",
"specified",
"DAG",
"."
] | [
"Alpha",
"Alpha",
"ISD::OutputArg",
"Alpha::R26",
"AlphaISD::GlobalRetAddr",
"MVT::i64",
"\"Do not know how to return this many arguments!\"",
"0",
"1",
"0",
"Alpha::R0",
"Alpha::F0",
"0",
"1",
"2",
"0",
"Alpha::R0",
"Alpha::R1",
"Alpha::F0",
"Alpha::F1",
"0",
"1",
"1",
"1",
"AlphaISD::RET_FLAG",
"MVT::Other",
"1"
] | AlphaISelLowering1 | LowerReturn | Alpha | MPU | LLVM | 11,688 | 491 | 1 | [] |
[
"<s>",
"static",
"void",
"output_reg_adjust",
"(",
"rtx",
"reg",
",",
"int",
"n",
")",
"{",
"const",
"char",
"*",
"s",
";",
"gcc_assert",
"(",
"GET_MODE",
"(",
"reg",
")",
"==",
"SImode",
"&&",
"n",
">=",
"-",
"12",
"&&",
"n",
"!=",
"0",
"&&",
"n",
"<=",
"12",
")",
";",
"switch",
"(",
"n",
")",
"{",
"case",
"12",
":",
"s",
"=",
"\"add%.l #12,%0\"",
";",
"break",
";",
"case",
"8",
":",
"s",
"=",
"\"addq%.l #8,%0\"",
";",
"break",
";",
"case",
"4",
":",
"s",
"=",
"\"addq%.l #4,%0\"",
";",
"break",
";",
"case",
"-",
"12",
":",
"s",
"=",
"\"sub%.l #12,%0\"",
";",
"break",
";",
"case",
"-",
"8",
":",
"s",
"=",
"\"subq%.l #8,%0\"",
";",
"break",
";",
"case",
"-",
"4",
":",
"s",
"=",
"\"subq%.l #4,%0\"",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"s",
"=",
"NULL",
";",
"}",
"output_asm_insn",
"(",
"s",
",",
"&",
"reg",
")",
";",
"}",
"</s>"
] | [
"Output",
"assembler",
"code",
"to",
"adjust",
"REG",
"by",
"N",
"."
] | [
"m68k",
"12",
"0",
"12",
"12",
"\"add%.l #12,%0\"",
"8",
"\"addq%.l #8,%0\"",
"4",
"\"addq%.l #4,%0\"",
"12",
"\"sub%.l #12,%0\"",
"8",
"\"subq%.l #8,%0\"",
"4",
"\"subq%.l #4,%0\""
] | m68k | output_reg_adjust | m68k | MPU | GCC | 11,689 | 121 | 1 | [] |
[
"<s>",
"static",
"void",
"init_device",
"(",
")",
"{",
"init_hsa_runtime_functions",
"(",
")",
";",
"XHSA",
"(",
"hsa_fns",
".",
"hsa_init_fn",
"(",
")",
",",
"\"Initialize run-time\"",
")",
";",
"XHSA_CMP",
"(",
"hsa_fns",
".",
"hsa_iterate_agents_fn",
"(",
"get_gpu_agent",
",",
"NULL",
")",
",",
"status",
"==",
"HSA_STATUS_SUCCESS",
"||",
"status",
"==",
"HSA_STATUS_INFO_BREAK",
",",
"\"Find a device\"",
")",
";",
"uint32_t",
"queue_size",
"=",
"0",
";",
"XHSA",
"(",
"hsa_fns",
".",
"hsa_agent_get_info_fn",
"(",
"device",
",",
"HSA_AGENT_INFO_QUEUE_MAX_SIZE",
",",
"&",
"queue_size",
")",
",",
"\"Find max queue size\"",
")",
";",
"XHSA",
"(",
"hsa_fns",
".",
"hsa_queue_create_fn",
"(",
"device",
",",
"queue_size",
",",
"HSA_QUEUE_TYPE_SINGLE",
",",
"NULL",
",",
"NULL",
",",
"UINT32_MAX",
",",
"UINT32_MAX",
",",
"&",
"queue",
")",
",",
"\"Set up a device queue\"",
")",
";",
"XHSA_CMP",
"(",
"hsa_fns",
".",
"hsa_agent_iterate_regions_fn",
"(",
"device",
",",
"get_kernarg_region",
",",
"NULL",
")",
",",
"status",
"==",
"HSA_STATUS_SUCCESS",
"||",
"status",
"==",
"HSA_STATUS_INFO_BREAK",
",",
"\"Locate kernargs memory\"",
")",
";",
"}",
"</s>"
] | [
"Initialize",
"the",
"HSA",
"Runtime",
"library",
"and",
"GPU",
"device",
"."
] | [
"gcn",
"\"Initialize run-time\"",
"\"Find a device\"",
"0",
"\"Find max queue size\"",
"\"Set up a device queue\"",
"\"Locate kernargs memory\""
] | gcn-run2 | init_device | gcn | GPU | GCC | 11,690 | 117 | 1 | [] |
[
"<s>",
"static",
"void",
"mmix_setup_incoming_varargs",
"(",
"cumulative_args_t",
"args_so_farp_v",
",",
"const",
"function_arg_info",
"&",
"arg",
",",
"int",
"*",
"pretend_sizep",
",",
"int",
"second_time",
"ATTRIBUTE_UNUSED",
")",
"{",
"CUMULATIVE_ARGS",
"*",
"args_so_farp",
"=",
"get_cumulative_args",
"(",
"args_so_farp_v",
")",
";",
"if",
"(",
"args_so_farp",
"->",
"regs",
"+",
"1",
"<",
"MMIX_MAX_ARGS_IN_REGS",
")",
"*",
"pretend_sizep",
"=",
"(",
"MMIX_MAX_ARGS_IN_REGS",
"-",
"(",
"args_so_farp",
"->",
"regs",
"+",
"1",
")",
")",
"*",
"8",
";",
"if",
"(",
"(",
"7",
"+",
"(",
"MMIX_FUNCTION_ARG_SIZE",
"(",
"arg",
".",
"mode",
",",
"arg",
".",
"type",
")",
")",
")",
"/",
"8",
"!=",
"1",
")",
"internal_error",
"(",
"\"MMIX Internal: Last named vararg would not fit in a register\"",
")",
";",
"}",
"</s>"
] | [
"SETUP_INCOMING_VARARGS",
"."
] | [
"mmix",
"1",
"1",
"8",
"7",
"8",
"1",
"\"MMIX Internal: Last named vararg would not fit in a register\""
] | mmix | mmix_setup_incoming_varargs | mmix | CPU | GCC | 11,691 | 86 | 1 | [] |
[
"<s>",
"void",
"PPCRegisterInfo",
"::",
"materializeFrameBaseRegister",
"(",
"MachineBasicBlock",
"*",
"MBB",
",",
"unsigned",
"BaseReg",
",",
"int",
"FrameIdx",
",",
"int64_t",
"Offset",
")",
"const",
"{",
"unsigned",
"ADDriOpc",
"=",
"Subtarget",
".",
"isPPC64",
"(",
")",
"?",
"PPC",
"::",
"ADDI8",
":",
"PPC",
"::",
"ADDI",
";",
"MachineBasicBlock",
"::",
"iterator",
"Ins",
"=",
"MBB",
"->",
"begin",
"(",
")",
";",
"DebugLoc",
"DL",
";",
"if",
"(",
"Ins",
"!=",
"MBB",
"->",
"end",
"(",
")",
")",
"DL",
"=",
"Ins",
"->",
"getDebugLoc",
"(",
")",
";",
"const",
"MachineFunction",
"&",
"MF",
"=",
"*",
"MBB",
"->",
"getParent",
"(",
")",
";",
"const",
"TargetInstrInfo",
"&",
"TII",
"=",
"*",
"MF",
".",
"getSubtarget",
"(",
")",
".",
"getInstrInfo",
"(",
")",
";",
"const",
"MCInstrDesc",
"&",
"MCID",
"=",
"TII",
".",
"get",
"(",
"ADDriOpc",
")",
";",
"MachineRegisterInfo",
"&",
"MRI",
"=",
"MBB",
"->",
"getParent",
"(",
")",
"->",
"getRegInfo",
"(",
")",
";",
"MRI",
".",
"constrainRegClass",
"(",
"BaseReg",
",",
"TII",
".",
"getRegClass",
"(",
"MCID",
",",
"0",
",",
"this",
",",
"MF",
")",
")",
";",
"BuildMI",
"(",
"*",
"MBB",
",",
"Ins",
",",
"DL",
",",
"MCID",
",",
"BaseReg",
")",
".",
"addFrameIndex",
"(",
"FrameIdx",
")",
".",
"addImm",
"(",
"Offset",
")",
";",
"}",
"</s>"
] | [
"Insert",
"defining",
"instruction",
"(",
"s",
")",
"for",
"a",
"pointer",
"to",
"FrameIdx",
"before",
"insertion",
"point",
"I",
"."
] | [
"PowerPC",
"PPC",
"PPC",
"PPC::ADDI8",
"PPC::ADDI",
"0"
] | PPCRegisterInfo68 | materializeFrameBaseRegister | PowerPC | CPU | LLVM | 11,692 | 168 | 1 | [] |
[
"<s>",
"const",
"TargetRegisterInfo",
"*",
"getRegisterInfo",
"(",
")",
"const",
"{",
"return",
"&",
"InstrInfo",
".",
"getRegisterInfo",
"(",
")",
";",
"}",
"</s>"
] | [
"getRegisterInfo",
"-",
"TargetInstrInfo",
"is",
"a",
"superset",
"of",
"MRegister",
"info",
"."
] | [
"AArch64"
] | AArch64TargetMachine15 | getRegisterInfo | AArch64 | CPU | LLVM | 11,693 | 17 | 1 | [] |
[
"<s>",
"static",
"struct",
"unw_reg_state",
"*",
"dup_state_stack",
"(",
"struct",
"unw_reg_state",
"*",
"rs",
")",
"{",
"struct",
"unw_reg_state",
"*",
"copy",
",",
"*",
"prev",
"=",
"NULL",
",",
"*",
"first",
"=",
"NULL",
";",
"while",
"(",
"rs",
")",
"{",
"copy",
"=",
"alloc_reg_state",
"(",
")",
";",
"memcpy",
"(",
"copy",
",",
"rs",
",",
"sizeof",
"(",
"*",
"copy",
")",
")",
";",
"if",
"(",
"first",
")",
"prev",
"->",
"next",
"=",
"copy",
";",
"else",
"first",
"=",
"copy",
";",
"rs",
"=",
"rs",
"->",
"next",
";",
"prev",
"=",
"copy",
";",
"}",
"return",
"first",
";",
"}",
"</s>"
] | [
"Make",
"a",
"copy",
"of",
"the",
"state",
"stack",
".",
"Non-recursive",
"to",
"avoid",
"stack",
"overflows",
"."
] | [
"ia64"
] | unwind-ia64 | dup_state_stack | ia64 | CPU | GCC | 11,694 | 81 | 1 | [] |
[
"<s>",
"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",
":",
"llvm",
"::",
"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",
";",
"}",
"</s>"
] | [
"Check",
"the",
"instruction",
"before/after",
"the",
"passed",
"instruction",
"."
] | [
"X86",
"0",
"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"
] | X86FrameLowering (2)1 | mergeSPUpdates | X86 | CPU | LLVM | 11,695 | 256 | 1 | [] |
[
"<s>",
"void",
"MOSAsmBackend",
"::",
"relaxInstruction",
"(",
"MCInst",
"&",
"Inst",
",",
"const",
"MCSubtargetInfo",
"&",
"STI",
")",
"const",
"{",
"unsigned",
"Opcode",
"=",
"relaxInstructionTo",
"(",
"Inst",
",",
"STI",
")",
";",
"if",
"(",
"Opcode",
"!=",
"0",
")",
"{",
"Inst",
".",
"setOpcode",
"(",
"Opcode",
")",
";",
"}",
"}",
"</s>"
] | [
"Relax",
"the",
"instruction",
"in",
"the",
"given",
"fragment",
"to",
"the",
"next",
"wider",
"instruction",
"."
] | [
"MOS",
"MOS",
"0"
] | MOSAsmBackend | relaxInstruction | MOS | MPU | LLVM | 11,696 | 42 | 1 | [] |
[
"<s>",
"static",
"bool",
"rx_function_ok_for_sibcall",
"(",
"tree",
"decl",
",",
"tree",
"exp",
"ATTRIBUTE_UNUSED",
")",
"{",
"if",
"(",
"decl",
"==",
"NULL",
")",
"return",
"false",
";",
"if",
"(",
"is_fast_interrupt_func",
"(",
"NULL_TREE",
")",
"||",
"is_interrupt_func",
"(",
"NULL_TREE",
")",
"||",
"is_naked_func",
"(",
"NULL_TREE",
")",
")",
"return",
"false",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Return",
"nonzero",
"if",
"it",
"is",
"ok",
"to",
"make",
"a",
"tail-call",
"to",
"DECL",
",",
"a",
"function_decl",
"or",
"NULL",
"if",
"this",
"is",
"an",
"indirect",
"call",
",",
"using",
"EXP"
] | [
"rx"
] | rx2 | rx_function_ok_for_sibcall | rx | CPU | GCC | 11,697 | 45 | 1 | [] |
[
"<s>",
"bool",
"X86FastISel",
"::",
"tryToFoldLoadIntoMI",
"(",
"MachineInstr",
"*",
"MI",
",",
"unsigned",
"OpNo",
",",
"const",
"LoadInst",
"*",
"LI",
")",
"{",
"X86AddressMode",
"AM",
";",
"if",
"(",
"!",
"X86SelectAddress",
"(",
"LI",
"->",
"getOperand",
"(",
"0",
")",
",",
"AM",
")",
")",
"return",
"false",
";",
"const",
"X86InstrInfo",
"&",
"XII",
"=",
"(",
"const",
"X86InstrInfo",
"&",
")",
"TII",
";",
"unsigned",
"Size",
"=",
"TD",
".",
"getTypeAllocSize",
"(",
"LI",
"->",
"getType",
"(",
")",
")",
";",
"unsigned",
"Alignment",
"=",
"LI",
"->",
"getAlignment",
"(",
")",
";",
"SmallVector",
"<",
"MachineOperand",
",",
"8",
">",
"AddrOps",
";",
"AM",
".",
"getFullAddress",
"(",
"AddrOps",
")",
";",
"MachineInstr",
"*",
"Result",
"=",
"XII",
".",
"foldMemoryOperandImpl",
"(",
"*",
"FuncInfo",
".",
"MF",
",",
"MI",
",",
"OpNo",
",",
"AddrOps",
",",
"Size",
",",
"Alignment",
")",
";",
"if",
"(",
"Result",
"==",
"0",
")",
"return",
"false",
";",
"FuncInfo",
".",
"MBB",
"->",
"insert",
"(",
"FuncInfo",
".",
"InsertPt",
",",
"Result",
")",
";",
"MI",
"->",
"eraseFromParent",
"(",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"The",
"specified",
"machine",
"instr",
"operand",
"is",
"a",
"vreg",
",",
"and",
"that",
"vreg",
"is",
"being",
"provided",
"by",
"the",
"specified",
"load",
"instruction",
"."
] | [
"X86",
"X86",
"X86",
"X86",
"0",
"X86",
"X86",
"8",
"0"
] | X86FastISel111 | tryToFoldLoadIntoMI | X86 | CPU | LLVM | 11,698 | 145 | 1 | [] |
[
"<s>",
"SDValue",
"PPCTargetLowering",
"::",
"getRecipEstimate",
"(",
"SDValue",
"Operand",
",",
"SelectionDAG",
"&",
"DAG",
",",
"int",
"Enabled",
",",
"int",
"&",
"RefinementSteps",
")",
"const",
"{",
"EVT",
"VT",
"=",
"Operand",
".",
"getValueType",
"(",
")",
";",
"if",
"(",
"(",
"VT",
"==",
"MVT",
"::",
"f32",
"&&",
"Subtarget",
".",
"hasFRES",
"(",
")",
")",
"||",
"(",
"VT",
"==",
"MVT",
"::",
"f64",
"&&",
"Subtarget",
".",
"hasFRE",
"(",
")",
")",
"||",
"(",
"VT",
"==",
"MVT",
"::",
"v4f32",
"&&",
"Subtarget",
".",
"hasAltivec",
"(",
")",
")",
"||",
"(",
"VT",
"==",
"MVT",
"::",
"v2f64",
"&&",
"Subtarget",
".",
"hasVSX",
"(",
")",
")",
")",
"{",
"if",
"(",
"RefinementSteps",
"==",
"ReciprocalEstimate",
"::",
"Unspecified",
")",
"RefinementSteps",
"=",
"getEstimateRefinementSteps",
"(",
"VT",
",",
"Subtarget",
")",
";",
"return",
"DAG",
".",
"getNode",
"(",
"PPCISD",
"::",
"FRE",
",",
"SDLoc",
"(",
"Operand",
")",
",",
"VT",
",",
"Operand",
")",
";",
"}",
"return",
"SDValue",
"(",
")",
";",
"}",
"</s>"
] | [
"Return",
"a",
"reciprocal",
"estimate",
"value",
"for",
"the",
"input",
"operand",
"."
] | [
"PowerPC",
"PPC",
"MVT::f32",
"MVT::f64",
"MVT::v4f32",
"MVT::v2f64",
"PPCISD::FRE"
] | PPCISelLowering100 | getRecipEstimate | PowerPC | CPU | LLVM | 11,699 | 132 | 1 | [] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.