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>",
"bool",
"Thumb2SizeReduce",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"const",
"TargetMachine",
"&",
"TM",
"=",
"MF",
".",
"getTarget",
"(",
")",
";",
"TII",
"=",
"static_cast",
"<",
"const",
"Thumb2InstrInfo",
"*",
">",
"(",
"TM",
".",
"getSubtargetImpl",
"(",
")",
"->",
"getInstrInfo",
"(",
")",
")",
";",
"STI",
"=",
"&",
"TM",
".",
"getSubtarget",
"<",
"ARMSubtarget",
">",
"(",
")",
";",
"AttributeSet",
"FnAttrs",
"=",
"MF",
".",
"getFunction",
"(",
")",
"->",
"getAttributes",
"(",
")",
";",
"OptimizeSize",
"=",
"FnAttrs",
".",
"hasAttribute",
"(",
"AttributeSet",
"::",
"FunctionIndex",
",",
"Attribute",
"::",
"OptimizeForSize",
")",
";",
"MinimizeSize",
"=",
"FnAttrs",
".",
"hasAttribute",
"(",
"AttributeSet",
"::",
"FunctionIndex",
",",
"Attribute",
"::",
"MinSize",
")",
";",
"BlockInfo",
".",
"clear",
"(",
")",
";",
"BlockInfo",
".",
"resize",
"(",
"MF",
".",
"getNumBlockIDs",
"(",
")",
")",
";",
"ReversePostOrderTraversal",
"<",
"MachineFunction",
"*",
">",
"RPOT",
"(",
"&",
"MF",
")",
";",
"bool",
"Modified",
"=",
"false",
";",
"for",
"(",
"ReversePostOrderTraversal",
"<",
"MachineFunction",
"*",
">",
"::",
"rpo_iterator",
"I",
"=",
"RPOT",
".",
"begin",
"(",
")",
",",
"E",
"=",
"RPOT",
".",
"end",
"(",
")",
";",
"I",
"!=",
"E",
";",
"++",
"I",
")",
"Modified",
"|=",
"ReduceMBB",
"(",
"*",
"*",
"I",
")",
";",
"return",
"Modified",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"ARM",
"ARM"
] | Thumb2SizeReduction53 | runOnMachineFunction | ARM | CPU | LLVM | 29,500 | 174 | 1 | [] |
[
"<s>",
"bool",
"HexagonRegisterAliasInfo",
"::",
"covers",
"(",
"const",
"RegisterSet",
"&",
"RRs",
",",
"RegisterRef",
"RR",
")",
"const",
"{",
"if",
"(",
"RRs",
".",
"count",
"(",
"RR",
")",
")",
"return",
"true",
";",
"if",
"(",
"!",
"TargetRegisterInfo",
"::",
"isPhysicalRegister",
"(",
"RR",
".",
"Reg",
")",
")",
"{",
"assert",
"(",
"TargetRegisterInfo",
"::",
"isVirtualRegister",
"(",
"RR",
".",
"Reg",
")",
")",
";",
"bool",
"HasLo",
"=",
"RRs",
".",
"count",
"(",
"{",
"RR",
".",
"Reg",
",",
"Hexagon",
"::",
"subreg_loreg",
"}",
")",
";",
"bool",
"HasHi",
"=",
"RRs",
".",
"count",
"(",
"{",
"RR",
".",
"Reg",
",",
"Hexagon",
"::",
"subreg_hireg",
"}",
")",
";",
"if",
"(",
"HasLo",
"&&",
"HasHi",
")",
"return",
"true",
";",
"}",
"if",
"(",
"RR",
".",
"Sub",
"==",
"0",
")",
"{",
"unsigned",
"Lo",
"=",
"TRI",
".",
"getSubReg",
"(",
"RR",
".",
"Reg",
",",
"Hexagon",
"::",
"subreg_loreg",
")",
";",
"unsigned",
"Hi",
"=",
"TRI",
".",
"getSubReg",
"(",
"RR",
".",
"Reg",
",",
"Hexagon",
"::",
"subreg_hireg",
")",
";",
"if",
"(",
"RRs",
".",
"count",
"(",
"{",
"Lo",
",",
"0",
"}",
")",
"&&",
"RRs",
".",
"count",
"(",
"{",
"Hi",
",",
"0",
"}",
")",
")",
"return",
"true",
";",
"}",
"return",
"RegisterAliasInfo",
"::",
"covers",
"(",
"RRs",
",",
"RR",
")",
";",
"}",
"</s>"
] | [
"Check",
"whether",
"this",
"register",
"bank",
"covers",
"RC",
"."
] | [
"Hexagon",
"Hexagon",
"Hexagon::subreg_loreg",
"Hexagon::subreg_hireg",
"0",
"Hexagon::subreg_loreg",
"Hexagon::subreg_hireg",
"0",
"0"
] | HexagonRDF | covers | Hexagon | DSP | LLVM | 29,501 | 178 | 1 | [] |
[
"<s>",
"int",
"i386_pe_dllexport_name_p",
"(",
"const",
"char",
"*",
"symbol",
")",
"{",
"return",
"(",
"strncmp",
"(",
"DLL_EXPORT_PREFIX",
",",
"symbol",
",",
"strlen",
"(",
"DLL_EXPORT_PREFIX",
")",
")",
"==",
"0",
")",
";",
"}",
"</s>"
] | [
"Return",
"nonzero",
"if",
"SYMBOL",
"is",
"marked",
"as",
"being",
"dllexport",
"'d",
"."
] | [
"i386",
"0"
] | winnt3 | i386_pe_dllexport_name_p | i386 | CPU | GCC | 29,502 | 27 | 1 | [] |
[
"<s>",
"const",
"TargetRegisterInfo",
"*",
"getRegisterInfo",
"(",
")",
"const",
"{",
"return",
"subtarget",
".",
"getRegisterInfo",
"(",
")",
";",
"}",
"</s>"
] | [
"getRegisterInfo",
"-",
"TargetInstrInfo",
"is",
"a",
"superset",
"of",
"MRegister",
"info",
"."
] | [
"P2"
] | P2TargetMachine | getRegisterInfo | P2 | MPU | LLVM | 29,503 | 16 | 1 | [] |
[
"<s>",
"static",
"bool",
"s390_pass_by_reference",
"(",
"cumulative_args_t",
"ca",
"ATTRIBUTE_UNUSED",
",",
"machine_mode",
"mode",
",",
"const_tree",
"type",
",",
"bool",
"named",
"ATTRIBUTE_UNUSED",
")",
"{",
"int",
"size",
"=",
"s390_function_arg_size",
"(",
"mode",
",",
"type",
")",
";",
"if",
"(",
"s390_function_arg_vector",
"(",
"mode",
",",
"type",
")",
")",
"return",
"false",
";",
"if",
"(",
"size",
">",
"8",
")",
"return",
"true",
";",
"if",
"(",
"type",
")",
"{",
"if",
"(",
"AGGREGATE_TYPE_P",
"(",
"type",
")",
"&&",
"exact_log2",
"(",
"size",
")",
"<",
"0",
")",
"return",
"true",
";",
"if",
"(",
"TREE_CODE",
"(",
"type",
")",
"==",
"COMPLEX_TYPE",
"||",
"TREE_CODE",
"(",
"type",
")",
"==",
"VECTOR_TYPE",
")",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Return",
"1",
"if",
"a",
"function",
"argument",
"of",
"type",
"TYPE",
"and",
"mode",
"MODE",
"is",
"to",
"be",
"passed",
"by",
"reference",
".",
"The",
"ABI",
"specifies",
"that",
"only",
"structures",
"of",
"size",
"1",
",",
"2",
",",
"4",
",",
"or",
"8",
"bytes",
"are",
"passed",
"by",
"value",
",",
"all",
"other",
"structures",
"(",
"and",
"complex",
"numbers",
")",
"are",
"passed",
"by",
"reference",
"."
] | [
"s390",
"8",
"0"
] | s3905 | s390_pass_by_reference | s390 | MPU | GCC | 29,504 | 96 | 1 | [] |
[
"<s>",
"static",
"void",
"avr_function_arg_advance",
"(",
"cumulative_args_t",
"cum_v",
",",
"machine_mode",
"mode",
",",
"const_tree",
"type",
",",
"bool",
"named",
"ATTRIBUTE_UNUSED",
")",
"{",
"CUMULATIVE_ARGS",
"*",
"cum",
"=",
"get_cumulative_args",
"(",
"cum_v",
")",
";",
"int",
"bytes",
"=",
"avr_num_arg_regs",
"(",
"mode",
",",
"type",
")",
";",
"cum",
"->",
"nregs",
"-=",
"bytes",
";",
"cum",
"->",
"regno",
"-=",
"bytes",
";",
"if",
"(",
"cum",
"->",
"regno",
">=",
"8",
"&&",
"cum",
"->",
"nregs",
">=",
"0",
"&&",
"!",
"call_used_regs",
"[",
"cum",
"->",
"regno",
"]",
")",
"{",
"cfun",
"->",
"machine",
"->",
"sibcall_fails",
"=",
"1",
";",
"}",
"if",
"(",
"cum",
"->",
"regno",
">=",
"8",
"&&",
"cum",
"->",
"nregs",
">=",
"0",
")",
"{",
"for",
"(",
"int",
"regno",
"=",
"cum",
"->",
"regno",
";",
"regno",
"<",
"cum",
"->",
"regno",
"+",
"bytes",
";",
"regno",
"++",
")",
"if",
"(",
"fixed_regs",
"[",
"regno",
"]",
")",
"warning",
"(",
"0",
",",
"\"fixed register %s used to pass parameter to function\"",
",",
"reg_names",
"[",
"regno",
"]",
")",
";",
"}",
"if",
"(",
"cum",
"->",
"nregs",
"<=",
"0",
")",
"{",
"cum",
"->",
"nregs",
"=",
"0",
";",
"cum",
"->",
"regno",
"=",
"FIRST_CUM_REG",
";",
"}",
"}",
"</s>"
] | [
"Update",
"the",
"summarizer",
"variable",
"CUM",
"to",
"advance",
"past",
"an",
"argument",
"in",
"the",
"argument",
"list",
"."
] | [
"avr",
"8",
"0",
"1",
"8",
"0",
"0",
"\"fixed register %s used to pass parameter to function\"",
"0",
"0"
] | avr6 | avr_function_arg_advance | avr | MPU | GCC | 29,505 | 159 | 1 | [] |
[
"<s>",
"CCAssignFn",
"*",
"AArch64TargetLowering",
"::",
"CCAssignFnForCall",
"(",
"CallingConv",
"::",
"ID",
"CC",
",",
"bool",
"IsVarArg",
")",
"const",
"{",
"switch",
"(",
"CC",
")",
"{",
"default",
":",
"report_fatal_error",
"(",
"\"Unsupported calling convention.\"",
")",
";",
"case",
"CallingConv",
"::",
"WebKit_JS",
":",
"return",
"CC_AArch64_WebKit_JS",
";",
"case",
"CallingConv",
"::",
"GHC",
":",
"return",
"CC_AArch64_GHC",
";",
"case",
"CallingConv",
"::",
"C",
":",
"case",
"CallingConv",
"::",
"Fast",
":",
"case",
"CallingConv",
"::",
"PreserveMost",
":",
"case",
"CallingConv",
"::",
"CXX_FAST_TLS",
":",
"case",
"CallingConv",
"::",
"Swift",
":",
"if",
"(",
"Subtarget",
"->",
"isTargetWindows",
"(",
")",
"&&",
"IsVarArg",
")",
"return",
"CC_AArch64_Win64_VarArg",
";",
"if",
"(",
"!",
"Subtarget",
"->",
"isTargetDarwin",
"(",
")",
")",
"return",
"CC_AArch64_AAPCS",
";",
"if",
"(",
"!",
"IsVarArg",
")",
"return",
"CC_AArch64_DarwinPCS",
";",
"return",
"Subtarget",
"->",
"isTargetILP32",
"(",
")",
"?",
"CC_AArch64_DarwinPCS_ILP32_VarArg",
":",
"CC_AArch64_DarwinPCS_VarArg",
";",
"case",
"CallingConv",
"::",
"Win64",
":",
"return",
"IsVarArg",
"?",
"CC_AArch64_Win64_VarArg",
":",
"CC_AArch64_AAPCS",
";",
"case",
"CallingConv",
"::",
"CFGuard_Check",
":",
"return",
"CC_AArch64_Win64_CFGuard_Check",
";",
"case",
"CallingConv",
"::",
"AArch64_VectorCall",
":",
"return",
"CC_AArch64_AAPCS",
";",
"}",
"}",
"</s>"
] | [
"Selects",
"the",
"correct",
"CCAssignFn",
"for",
"a",
"given",
"CallingConvention",
"value",
"."
] | [
"AArch64",
"AArch64",
"\"Unsupported calling convention.\"",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64"
] | AArch64ISelLowering28 | CCAssignFnForCall | AArch64 | CPU | LLVM | 29,506 | 143 | 1 | [] |
[
"<s>",
"MachineBasicBlock",
"::",
"iterator",
"SystemZFrameLowering",
"::",
"eliminateCallFramePseudoInstr",
"(",
"MachineFunction",
"&",
"MF",
",",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"MI",
")",
"const",
"{",
"switch",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
"{",
"case",
"SystemZ",
"::",
"ADJCALLSTACKDOWN",
":",
"case",
"SystemZ",
"::",
"ADJCALLSTACKUP",
":",
"assert",
"(",
"hasReservedCallFrame",
"(",
"MF",
")",
"&&",
"\"ADJSTACKDOWN and ADJSTACKUP should be no-ops\"",
")",
";",
"return",
"MBB",
".",
"erase",
"(",
"MI",
")",
";",
"break",
";",
"default",
":",
"llvm_unreachable",
"(",
"\"Unexpected call frame instruction\"",
")",
";",
"}",
"}",
"</s>"
] | [
"This",
"method",
"is",
"called",
"during",
"prolog/epilog",
"code",
"insertion",
"to",
"eliminate",
"call",
"frame",
"setup",
"and",
"destroy",
"pseudo",
"instructions",
"(",
"but",
"only",
"if",
"the",
"Target",
"is",
"using",
"them",
")",
"."
] | [
"SystemZ",
"SystemZ",
"SystemZ::ADJCALLSTACKDOWN",
"SystemZ::ADJCALLSTACKUP",
"\"ADJSTACKDOWN and ADJSTACKUP should be no-ops\"",
"\"Unexpected call frame instruction\""
] | SystemZFrameLowering10 | eliminateCallFramePseudoInstr | SystemZ | CPU | LLVM | 29,507 | 70 | 1 | [] |
[
"<s>",
"StringRef",
"getPassName",
"(",
")",
"const",
"override",
"{",
"return",
"\"CPU0 DAG->DAG Pattern Instruction Selection\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"Cpu0",
"\"CPU0 DAG->DAG Pattern Instruction Selection\""
] | Cpu0ISelDAGToDAG | getPassName | Cpu0 | CPU | LLVM | 29,508 | 11 | 1 | [] |
[
"<s>",
"StringRef",
"getPassName",
"(",
")",
"const",
"override",
"{",
"return",
"\"TVM Lower Intrinsics\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"TVM",
"\"TVM Lower Intrinsics\""
] | TVMLowerIntrinsics | getPassName | TVM | Virtual ISA | LLVM | 29,509 | 11 | 1 | [] |
[
"<s>",
"bool",
"CSKYAsmPrinter",
"::",
"PrintAsmOperand",
"(",
"const",
"MachineInstr",
"*",
"MI",
",",
"unsigned",
"OpNo",
",",
"const",
"char",
"*",
"ExtraCode",
",",
"raw_ostream",
"&",
"OS",
")",
"{",
"if",
"(",
"!",
"AsmPrinter",
"::",
"PrintAsmOperand",
"(",
"MI",
",",
"OpNo",
",",
"ExtraCode",
",",
"OS",
")",
")",
"return",
"false",
";",
"const",
"MachineOperand",
"&",
"MO",
"=",
"MI",
"->",
"getOperand",
"(",
"OpNo",
")",
";",
"if",
"(",
"ExtraCode",
"&&",
"ExtraCode",
"[",
"0",
"]",
")",
"{",
"if",
"(",
"ExtraCode",
"[",
"1",
"]",
"!=",
"0",
")",
"return",
"true",
";",
"switch",
"(",
"ExtraCode",
"[",
"0",
"]",
")",
"{",
"default",
":",
"return",
"true",
";",
"case",
"'R'",
":",
"if",
"(",
"MO",
".",
"getType",
"(",
")",
"==",
"MachineOperand",
"::",
"MO_Register",
")",
"{",
"OS",
"<<",
"CSKYInstPrinter",
"::",
"getRegisterName",
"(",
"MO",
".",
"getReg",
"(",
")",
"+",
"1",
")",
";",
"return",
"false",
";",
"}",
"}",
"}",
"switch",
"(",
"MO",
".",
"getType",
"(",
")",
")",
"{",
"case",
"MachineOperand",
"::",
"MO_Immediate",
":",
"OS",
"<<",
"MO",
".",
"getImm",
"(",
")",
";",
"return",
"false",
";",
"case",
"MachineOperand",
"::",
"MO_Register",
":",
"if",
"(",
"MO",
".",
"getReg",
"(",
")",
"==",
"CSKY",
"::",
"C",
")",
"return",
"false",
";",
"OS",
"<<",
"CSKYInstPrinter",
"::",
"getRegisterName",
"(",
"MO",
".",
"getReg",
"(",
")",
")",
";",
"return",
"false",
";",
"case",
"MachineOperand",
"::",
"MO_GlobalAddress",
":",
"PrintSymbolOperand",
"(",
"MO",
",",
"OS",
")",
";",
"return",
"false",
";",
"case",
"MachineOperand",
"::",
"MO_BlockAddress",
":",
"{",
"MCSymbol",
"*",
"Sym",
"=",
"GetBlockAddressSymbol",
"(",
"MO",
".",
"getBlockAddress",
"(",
")",
")",
";",
"Sym",
"->",
"print",
"(",
"OS",
",",
"MAI",
")",
";",
"return",
"false",
";",
"}",
"default",
":",
"break",
";",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"PrintAsmOperand",
"-",
"Print",
"out",
"an",
"operand",
"for",
"an",
"inline",
"asm",
"expression",
"."
] | [
"CSKY",
"CSKY",
"0",
"1",
"0",
"0",
"CSKY",
"1",
"CSKY::C",
"CSKY"
] | CSKYAsmPrinter1 | PrintAsmOperand | CSKY | CPU | LLVM | 29,510 | 243 | 1 | [] |
[
"<s>",
"void",
"CSKYDAGToDAGISel",
"::",
"Select",
"(",
"SDNode",
"*",
"N",
")",
"{",
"if",
"(",
"N",
"->",
"isMachineOpcode",
"(",
")",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"== \"",
";",
"N",
"->",
"dump",
"(",
"CurDAG",
")",
";",
"dbgs",
"(",
")",
"<<",
"\"\\n\"",
")",
";",
"N",
"->",
"setNodeId",
"(",
"-",
"1",
")",
";",
"return",
";",
"}",
"SDLoc",
"Dl",
"(",
"N",
")",
";",
"unsigned",
"Opcode",
"=",
"N",
"->",
"getOpcode",
"(",
")",
";",
"bool",
"IsSelected",
"=",
"false",
";",
"switch",
"(",
"Opcode",
")",
"{",
"default",
":",
"break",
";",
"case",
"ISD",
"::",
"ADDCARRY",
":",
"IsSelected",
"=",
"selectAddCarry",
"(",
"N",
")",
";",
"break",
";",
"case",
"ISD",
"::",
"SUBCARRY",
":",
"IsSelected",
"=",
"selectSubCarry",
"(",
"N",
")",
";",
"break",
";",
"case",
"ISD",
"::",
"GLOBAL_OFFSET_TABLE",
":",
"{",
"Register",
"GP",
"=",
"Subtarget",
"->",
"getInstrInfo",
"(",
")",
"->",
"getGlobalBaseReg",
"(",
"*",
"MF",
")",
";",
"ReplaceNode",
"(",
"N",
",",
"CurDAG",
"->",
"getRegister",
"(",
"GP",
",",
"N",
"->",
"getValueType",
"(",
"0",
")",
")",
".",
"getNode",
"(",
")",
")",
";",
"IsSelected",
"=",
"true",
";",
"break",
";",
"}",
"case",
"ISD",
"::",
"FrameIndex",
":",
"{",
"SDValue",
"Imm",
"=",
"CurDAG",
"->",
"getTargetConstant",
"(",
"0",
",",
"Dl",
",",
"MVT",
"::",
"i32",
")",
";",
"int",
"FI",
"=",
"cast",
"<",
"FrameIndexSDNode",
">",
"(",
"N",
")",
"->",
"getIndex",
"(",
")",
";",
"SDValue",
"TFI",
"=",
"CurDAG",
"->",
"getTargetFrameIndex",
"(",
"FI",
",",
"MVT",
"::",
"i32",
")",
";",
"ReplaceNode",
"(",
"N",
",",
"CurDAG",
"->",
"getMachineNode",
"(",
"Subtarget",
"->",
"hasE2",
"(",
")",
"?",
"CSKY",
"::",
"ADDI32",
":",
"CSKY",
"::",
"ADDI16XZ",
",",
"Dl",
",",
"MVT",
"::",
"i32",
",",
"TFI",
",",
"Imm",
")",
")",
";",
"IsSelected",
"=",
"true",
";",
"break",
";",
"}",
"}",
"if",
"(",
"IsSelected",
")",
"return",
";",
"SelectCode",
"(",
"N",
")",
";",
"}",
"</s>"
] | [
"Main",
"hook",
"for",
"targets",
"to",
"transform",
"nodes",
"into",
"machine",
"nodes",
"."
] | [
"CSKY",
"CSKY",
"\"== \"",
"\"\\n\"",
"1",
"ISD::ADDCARRY",
"ISD::SUBCARRY",
"ISD::GLOBAL_OFFSET_TABLE",
"0",
"ISD::FrameIndex",
"0",
"MVT::i32",
"MVT::i32",
"CSKY::ADDI32",
"CSKY::ADDI16XZ",
"MVT::i32"
] | CSKYISelDAGToDAG1 | Select | CSKY | CPU | LLVM | 29,511 | 265 | 1 | [] |
[
"<s>",
"SDValue",
"R600TargetLowering",
"::",
"LowerFormalArguments",
"(",
"SDValue",
"Chain",
",",
"CallingConv",
"::",
"ID",
"CallConv",
",",
"bool",
"isVarArg",
",",
"const",
"SmallVectorImpl",
"<",
"ISD",
"::",
"InputArg",
">",
"&",
"Ins",
",",
"SDLoc",
"DL",
",",
"SelectionDAG",
"&",
"DAG",
",",
"SmallVectorImpl",
"<",
"SDValue",
">",
"&",
"InVals",
")",
"const",
"{",
"SmallVector",
"<",
"CCValAssign",
",",
"16",
">",
"ArgLocs",
";",
"CCState",
"CCInfo",
"(",
"CallConv",
",",
"isVarArg",
",",
"DAG",
".",
"getMachineFunction",
"(",
")",
",",
"getTargetMachine",
"(",
")",
",",
"ArgLocs",
",",
"*",
"DAG",
".",
"getContext",
"(",
")",
")",
";",
"MachineFunction",
"&",
"MF",
"=",
"DAG",
".",
"getMachineFunction",
"(",
")",
";",
"unsigned",
"ShaderType",
"=",
"MF",
".",
"getInfo",
"<",
"R600MachineFunctionInfo",
">",
"(",
")",
"->",
"getShaderType",
"(",
")",
";",
"SmallVector",
"<",
"ISD",
"::",
"InputArg",
",",
"8",
">",
"LocalIns",
";",
"getOriginalFunctionArgs",
"(",
"DAG",
",",
"MF",
".",
"getFunction",
"(",
")",
",",
"Ins",
",",
"LocalIns",
")",
";",
"AnalyzeFormalArguments",
"(",
"CCInfo",
",",
"LocalIns",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
",",
"e",
"=",
"Ins",
".",
"size",
"(",
")",
";",
"i",
"<",
"e",
";",
"++",
"i",
")",
"{",
"CCValAssign",
"&",
"VA",
"=",
"ArgLocs",
"[",
"i",
"]",
";",
"EVT",
"VT",
"=",
"Ins",
"[",
"i",
"]",
".",
"VT",
";",
"EVT",
"MemVT",
"=",
"LocalIns",
"[",
"i",
"]",
".",
"VT",
";",
"if",
"(",
"ShaderType",
"!=",
"ShaderType",
"::",
"COMPUTE",
")",
"{",
"unsigned",
"Reg",
"=",
"MF",
".",
"addLiveIn",
"(",
"VA",
".",
"getLocReg",
"(",
")",
",",
"&",
"AMDGPU",
"::",
"R600_Reg128RegClass",
")",
";",
"SDValue",
"Register",
"=",
"DAG",
".",
"getCopyFromReg",
"(",
"Chain",
",",
"DL",
",",
"Reg",
",",
"VT",
")",
";",
"InVals",
".",
"push_back",
"(",
"Register",
")",
";",
"continue",
";",
"}",
"PointerType",
"*",
"PtrTy",
"=",
"PointerType",
"::",
"get",
"(",
"VT",
".",
"getTypeForEVT",
"(",
"*",
"DAG",
".",
"getContext",
"(",
")",
")",
",",
"AMDGPUAS",
"::",
"CONSTANT_BUFFER_0",
")",
";",
"ISD",
"::",
"LoadExtType",
"Ext",
"=",
"ISD",
"::",
"SEXTLOAD",
";",
"SDValue",
"Arg",
"=",
"DAG",
".",
"getExtLoad",
"(",
"Ext",
",",
"DL",
",",
"VT",
",",
"Chain",
",",
"DAG",
".",
"getConstant",
"(",
"36",
"+",
"VA",
".",
"getLocMemOffset",
"(",
")",
",",
"MVT",
"::",
"i32",
")",
",",
"MachinePointerInfo",
"(",
"UndefValue",
"::",
"get",
"(",
"PtrTy",
")",
")",
",",
"MemVT",
",",
"false",
",",
"false",
",",
"4",
")",
";",
"InVals",
".",
"push_back",
"(",
"Arg",
")",
";",
"}",
"return",
"Chain",
";",
"}",
"</s>"
] | [
"This",
"hook",
"must",
"be",
"implemented",
"to",
"lower",
"the",
"incoming",
"(",
"formal",
")",
"arguments",
",",
"described",
"by",
"the",
"Ins",
"array",
",",
"into",
"the",
"specified",
"DAG",
"."
] | [
"R600",
"ISD::InputArg",
"16",
"ISD::InputArg",
"8",
"0",
"AMDGPUAS::CONSTANT_BUFFER_0",
"ISD::LoadExtType",
"ISD::SEXTLOAD",
"36",
"MVT::i32",
"4"
] | R600ISelLowering2 | LowerFormalArguments | R600 | GPU | LLVM | 29,512 | 338 | 1 | [] |
[
"<s>",
"int",
"unqualifiedInlineAsmVariant",
"(",
")",
"const",
"override",
"{",
"return",
"1",
";",
"}",
"</s>"
] | [
"The",
"default",
"variant",
"to",
"use",
"in",
"unqualified",
"asm",
"instructions",
"."
] | [
"PowerPC",
"1"
] | PPCTargetMachine19 | unqualifiedInlineAsmVariant | PowerPC | CPU | LLVM | 29,513 | 11 | 1 | [] |
[
"<s>",
"static",
"bool",
"rs6000_modes_tieable_p",
"(",
"machine_mode",
"mode1",
",",
"machine_mode",
"mode2",
")",
"{",
"if",
"(",
"mode1",
"==",
"PTImode",
")",
"return",
"mode2",
"==",
"PTImode",
";",
"if",
"(",
"mode2",
"==",
"PTImode",
")",
"return",
"false",
";",
"if",
"(",
"ALTIVEC_OR_VSX_VECTOR_MODE",
"(",
"mode1",
")",
")",
"return",
"ALTIVEC_OR_VSX_VECTOR_MODE",
"(",
"mode2",
")",
";",
"if",
"(",
"ALTIVEC_OR_VSX_VECTOR_MODE",
"(",
"mode2",
")",
")",
"return",
"false",
";",
"if",
"(",
"SCALAR_FLOAT_MODE_P",
"(",
"mode1",
")",
")",
"return",
"SCALAR_FLOAT_MODE_P",
"(",
"mode2",
")",
";",
"if",
"(",
"SCALAR_FLOAT_MODE_P",
"(",
"mode2",
")",
")",
"return",
"false",
";",
"if",
"(",
"GET_MODE_CLASS",
"(",
"mode1",
")",
"==",
"MODE_CC",
")",
"return",
"GET_MODE_CLASS",
"(",
"mode2",
")",
"==",
"MODE_CC",
";",
"if",
"(",
"GET_MODE_CLASS",
"(",
"mode2",
")",
"==",
"MODE_CC",
")",
"return",
"false",
";",
"if",
"(",
"PAIRED_VECTOR_MODE",
"(",
"mode1",
")",
")",
"return",
"PAIRED_VECTOR_MODE",
"(",
"mode2",
")",
";",
"if",
"(",
"PAIRED_VECTOR_MODE",
"(",
"mode2",
")",
")",
"return",
"false",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_MODES_TIEABLE_P",
".",
"PTImode",
"can",
"not",
"tie",
"with",
"other",
"modes",
"because",
"PTImode",
"is",
"restricted",
"to",
"even",
"GPR",
"registers",
",",
"and",
"TImode",
"can",
"go",
"in",
"any",
"GPR",
"as",
"well",
"as",
"VSX",
"registers",
"(",
"PR",
"57744",
")",
".",
"Similarly",
",",
"do",
"n't",
"allow",
"OOmode",
"(",
"vector",
"pair",
",",
"restricted",
"to",
"even",
"VSX",
"registers",
")",
"or",
"XOmode",
"(",
"vector",
"quad",
",",
"restricted",
"to",
"FPR",
"registers",
"divisible",
"by",
"4",
")",
"to",
"tie",
"with",
"other",
"modes",
".",
"Altivec/VSX",
"vector",
"tests",
"were",
"moved",
"ahead",
"of",
"scalar",
"float",
"mode",
",",
"so",
"that",
"IEEE",
"128-bit",
"floating",
"point",
"on",
"VSX",
"systems",
"ties",
"with",
"other",
"vectors",
"."
] | [
"rs6000"
] | rs60007 | rs6000_modes_tieable_p | rs6000 | CPU | GCC | 29,514 | 133 | 1 | [] |
[
"<s>",
"static",
"bool",
"rs6000_is_costly_dependence",
"(",
"dep_t",
"dep",
",",
"int",
"cost",
",",
"int",
"distance",
")",
"{",
"rtx",
"insn",
";",
"rtx",
"next",
";",
"rtx",
"load_mem",
",",
"str_mem",
";",
"if",
"(",
"rs6000_sched_costly_dep",
"==",
"no_dep_costly",
")",
"return",
"false",
";",
"if",
"(",
"rs6000_sched_costly_dep",
"==",
"all_deps_costly",
")",
"return",
"true",
";",
"insn",
"=",
"DEP_PRO",
"(",
"dep",
")",
";",
"next",
"=",
"DEP_CON",
"(",
"dep",
")",
";",
"if",
"(",
"rs6000_sched_costly_dep",
"==",
"store_to_load_dep_costly",
"&&",
"is_load_insn",
"(",
"next",
",",
"&",
"load_mem",
")",
"&&",
"is_store_insn",
"(",
"insn",
",",
"&",
"str_mem",
")",
")",
"return",
"true",
";",
"if",
"(",
"rs6000_sched_costly_dep",
"==",
"true_store_to_load_dep_costly",
"&&",
"is_load_insn",
"(",
"next",
",",
"&",
"load_mem",
")",
"&&",
"is_store_insn",
"(",
"insn",
",",
"&",
"str_mem",
")",
"&&",
"DEP_TYPE",
"(",
"dep",
")",
"==",
"REG_DEP_TRUE",
"&&",
"mem_locations_overlap",
"(",
"str_mem",
",",
"load_mem",
")",
")",
"return",
"true",
";",
"if",
"(",
"rs6000_sched_costly_dep",
"<=",
"max_dep_latency",
"&&",
"(",
"(",
"cost",
"-",
"distance",
")",
">=",
"(",
"int",
")",
"rs6000_sched_costly_dep",
")",
")",
"return",
"true",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Returns",
"whether",
"the",
"dependence",
"between",
"INSN",
"and",
"NEXT",
"is",
"considered",
"costly",
"by",
"the",
"given",
"target",
"."
] | [
"powerpcspe"
] | powerpcspe | rs6000_is_costly_dependence | powerpcspe | CPU | GCC | 29,515 | 147 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"output_condmove_single",
"(",
"rtx",
"operands",
"[",
"]",
",",
"rtx",
"insn",
")",
"{",
"rtx",
"dest",
"=",
"operands",
"[",
"2",
"]",
";",
"rtx",
"src",
"=",
"operands",
"[",
"3",
"]",
";",
"if",
"(",
"GET_CODE",
"(",
"dest",
")",
"==",
"REG",
")",
"{",
"int",
"dest_regno",
"=",
"REGNO",
"(",
"dest",
")",
";",
"machine_mode",
"mode",
"=",
"GET_MODE",
"(",
"dest",
")",
";",
"if",
"(",
"GPR_P",
"(",
"dest_regno",
")",
")",
"{",
"if",
"(",
"GET_CODE",
"(",
"src",
")",
"==",
"REG",
")",
"{",
"int",
"src_regno",
"=",
"REGNO",
"(",
"src",
")",
";",
"if",
"(",
"GPR_P",
"(",
"src_regno",
")",
")",
"return",
"\"cmov %z3, %2, %1, %e0\"",
";",
"else",
"if",
"(",
"FPR_P",
"(",
"src_regno",
")",
")",
"return",
"\"cmovfg %3, %2, %1, %e0\"",
";",
"}",
"else",
"if",
"(",
"GET_CODE",
"(",
"src",
")",
"==",
"MEM",
")",
"{",
"switch",
"(",
"mode",
")",
"{",
"default",
":",
"break",
";",
"case",
"QImode",
":",
"return",
"\"cldsb%I3%U3 %M3, %2, %1, %e0\"",
";",
"case",
"HImode",
":",
"return",
"\"cldsh%I3%U3 %M3, %2, %1, %e0\"",
";",
"case",
"SImode",
":",
"case",
"SFmode",
":",
"return",
"\"cld%I3%U3 %M3, %2, %1, %e0\"",
";",
"}",
"}",
"else",
"if",
"(",
"ZERO_P",
"(",
"src",
")",
")",
"return",
"\"cmov %., %2, %1, %e0\"",
";",
"}",
"else",
"if",
"(",
"FPR_P",
"(",
"dest_regno",
")",
")",
"{",
"if",
"(",
"GET_CODE",
"(",
"src",
")",
"==",
"REG",
")",
"{",
"int",
"src_regno",
"=",
"REGNO",
"(",
"src",
")",
";",
"if",
"(",
"GPR_P",
"(",
"src_regno",
")",
")",
"return",
"\"cmovgf %3, %2, %1, %e0\"",
";",
"else",
"if",
"(",
"FPR_P",
"(",
"src_regno",
")",
")",
"{",
"if",
"(",
"TARGET_HARD_FLOAT",
")",
"return",
"\"cfmovs %3,%2,%1,%e0\"",
";",
"else",
"return",
"\"cmor %3, %3, %2, %1, %e0\"",
";",
"}",
"}",
"else",
"if",
"(",
"GET_CODE",
"(",
"src",
")",
"==",
"MEM",
")",
"{",
"if",
"(",
"mode",
"==",
"SImode",
"||",
"mode",
"==",
"SFmode",
")",
"return",
"\"cldf%I3%U3 %M3, %2, %1, %e0\"",
";",
"}",
"else",
"if",
"(",
"ZERO_P",
"(",
"src",
")",
")",
"return",
"\"cmovgf %., %2, %1, %e0\"",
";",
"}",
"}",
"else",
"if",
"(",
"GET_CODE",
"(",
"dest",
")",
"==",
"MEM",
")",
"{",
"if",
"(",
"GET_CODE",
"(",
"src",
")",
"==",
"REG",
")",
"{",
"int",
"src_regno",
"=",
"REGNO",
"(",
"src",
")",
";",
"machine_mode",
"mode",
"=",
"GET_MODE",
"(",
"dest",
")",
";",
"if",
"(",
"GPR_P",
"(",
"src_regno",
")",
")",
"{",
"switch",
"(",
"mode",
")",
"{",
"default",
":",
"break",
";",
"case",
"QImode",
":",
"return",
"\"cstb%I2%U2 %3, %M2, %1, %e0\"",
";",
"case",
"HImode",
":",
"return",
"\"csth%I2%U2 %3, %M2, %1, %e0\"",
";",
"case",
"SImode",
":",
"case",
"SFmode",
":",
"return",
"\"cst%I2%U2 %3, %M2, %1, %e0\"",
";",
"}",
"}",
"else",
"if",
"(",
"FPR_P",
"(",
"src_regno",
")",
"&&",
"(",
"mode",
"==",
"SImode",
"||",
"mode",
"==",
"SFmode",
")",
")",
"return",
"\"cstf%I2%U2 %3, %M2, %1, %e0\"",
";",
"}",
"else",
"if",
"(",
"ZERO_P",
"(",
"src",
")",
")",
"{",
"machine_mode",
"mode",
"=",
"GET_MODE",
"(",
"dest",
")",
";",
"switch",
"(",
"mode",
")",
"{",
"default",
":",
"break",
";",
"case",
"QImode",
":",
"return",
"\"cstb%I2%U2 %., %M2, %1, %e0\"",
";",
"case",
"HImode",
":",
"return",
"\"csth%I2%U2 %., %M2, %1, %e0\"",
";",
"case",
"SImode",
":",
"case",
"SFmode",
":",
"return",
"\"cst%I2%U2 %., %M2, %1, %e0\"",
";",
"}",
"}",
"}",
"fatal_insn",
"(",
"\"bad output_condmove_single operand\"",
",",
"insn",
")",
";",
"return",
"\"\"",
";",
"}",
"</s>"
] | [
"Return",
"a",
"string",
"to",
"output",
"a",
"single",
"word",
"conditional",
"move",
".",
"Operand0",
"--",
"EQ/NE",
"of",
"ccr",
"register",
"and",
"0",
"Operand1",
"--",
"CCR",
"register",
"Operand2",
"--",
"destination",
"Operand3",
"--",
"source"
] | [
"frv",
"2",
"3",
"\"cmov %z3, %2, %1, %e0\"",
"\"cmovfg %3, %2, %1, %e0\"",
"\"cldsb%I3%U3 %M3, %2, %1, %e0\"",
"\"cldsh%I3%U3 %M3, %2, %1, %e0\"",
"\"cld%I3%U3 %M3, %2, %1, %e0\"",
"\"cmov %., %2, %1, %e0\"",
"\"cmovgf %3, %2, %1, %e0\"",
"\"cfmovs %3,%2,%1,%e0\"",
"\"cmor %3, %3, %2, %1, %e0\"",
"\"cldf%I3%U3 %M3, %2, %1, %e0\"",
"\"cmovgf %., %2, %1, %e0\"",
"\"cstb%I2%U2 %3, %M2, %1, %e0\"",
"\"csth%I2%U2 %3, %M2, %1, %e0\"",
"\"cst%I2%U2 %3, %M2, %1, %e0\"",
"\"cstf%I2%U2 %3, %M2, %1, %e0\"",
"\"cstb%I2%U2 %., %M2, %1, %e0\"",
"\"csth%I2%U2 %., %M2, %1, %e0\"",
"\"cst%I2%U2 %., %M2, %1, %e0\"",
"\"bad output_condmove_single operand\"",
"\"\""
] | frv3 | output_condmove_single | frv | VLIW | GCC | 29,516 | 416 | 1 | [] |
[
"<s>",
"bool",
"alpha_legitimate_constant_p",
"(",
"machine_mode",
"mode",
",",
"rtx",
"x",
")",
"{",
"HOST_WIDE_INT",
"i0",
";",
"switch",
"(",
"GET_CODE",
"(",
"x",
")",
")",
"{",
"case",
"LABEL_REF",
":",
"case",
"HIGH",
":",
"return",
"true",
";",
"case",
"CONST",
":",
"if",
"(",
"GET_CODE",
"(",
"XEXP",
"(",
"x",
",",
"0",
")",
")",
"==",
"PLUS",
"&&",
"CONST_INT_P",
"(",
"XEXP",
"(",
"XEXP",
"(",
"x",
",",
"0",
")",
",",
"1",
")",
")",
")",
"x",
"=",
"XEXP",
"(",
"XEXP",
"(",
"x",
",",
"0",
")",
",",
"0",
")",
";",
"else",
"return",
"true",
";",
"if",
"(",
"GET_CODE",
"(",
"x",
")",
"!=",
"SYMBOL_REF",
")",
"return",
"true",
";",
"case",
"SYMBOL_REF",
":",
"return",
"SYMBOL_REF_TLS_MODEL",
"(",
"x",
")",
"==",
"0",
";",
"case",
"CONST_WIDE_INT",
":",
"if",
"(",
"TARGET_BUILD_CONSTANTS",
")",
"return",
"true",
";",
"if",
"(",
"x",
"==",
"CONST0_RTX",
"(",
"mode",
")",
")",
"return",
"true",
";",
"mode",
"=",
"DImode",
";",
"gcc_assert",
"(",
"CONST_WIDE_INT_NUNITS",
"(",
"x",
")",
"==",
"2",
")",
";",
"i0",
"=",
"CONST_WIDE_INT_ELT",
"(",
"x",
",",
"1",
")",
";",
"if",
"(",
"alpha_emit_set_const_1",
"(",
"NULL_RTX",
",",
"mode",
",",
"i0",
",",
"3",
",",
"true",
")",
"==",
"NULL",
")",
"return",
"false",
";",
"i0",
"=",
"CONST_WIDE_INT_ELT",
"(",
"x",
",",
"0",
")",
";",
"goto",
"do_integer",
";",
"case",
"CONST_DOUBLE",
":",
"if",
"(",
"x",
"==",
"CONST0_RTX",
"(",
"mode",
")",
")",
"return",
"true",
";",
"return",
"false",
";",
"case",
"CONST_VECTOR",
":",
"if",
"(",
"x",
"==",
"CONST0_RTX",
"(",
"mode",
")",
")",
"return",
"true",
";",
"if",
"(",
"GET_MODE_CLASS",
"(",
"mode",
")",
"!=",
"MODE_VECTOR_INT",
")",
"return",
"false",
";",
"if",
"(",
"GET_MODE_SIZE",
"(",
"mode",
")",
"!=",
"8",
")",
"return",
"false",
";",
"case",
"CONST_INT",
":",
"if",
"(",
"TARGET_BUILD_CONSTANTS",
")",
"return",
"true",
";",
"i0",
"=",
"alpha_extract_integer",
"(",
"x",
")",
";",
"do_integer",
":",
"return",
"alpha_emit_set_const_1",
"(",
"NULL_RTX",
",",
"mode",
",",
"i0",
",",
"3",
",",
"true",
")",
"!=",
"NULL",
";",
"default",
":",
"return",
"false",
";",
"}",
"}",
"</s>"
] | [
"Implement",
"LEGITIMATE_CONSTANT_P",
".",
"This",
"is",
"all",
"constants",
"for",
"which",
"we",
"are",
"willing",
"to",
"load",
"the",
"value",
"into",
"a",
"register",
"via",
"a",
"move",
"pattern",
".",
"Normally",
"this",
"is",
"all",
"symbolic",
"constants",
",",
"integral",
"constants",
"that",
"take",
"three",
"or",
"fewer",
"instructions",
",",
"and",
"floating-point",
"zero",
"."
] | [
"alpha",
"0",
"0",
"1",
"0",
"0",
"0",
"2",
"1",
"3",
"0",
"8",
"3"
] | alpha | alpha_legitimate_constant_p | alpha | MPU | GCC | 29,517 | 279 | 1 | [] |
[
"<s>",
"unsigned",
"SIInstrInfo",
"::",
"getInstSizeInBytes",
"(",
"const",
"MachineInstr",
"&",
"MI",
")",
"const",
"{",
"unsigned",
"Opc",
"=",
"MI",
".",
"getOpcode",
"(",
")",
";",
"const",
"MCInstrDesc",
"&",
"Desc",
"=",
"getMCOpcodeFromPseudo",
"(",
"Opc",
")",
";",
"unsigned",
"DescSize",
"=",
"Desc",
".",
"getSize",
"(",
")",
";",
"if",
"(",
"isFixedSize",
"(",
"MI",
")",
")",
"{",
"unsigned",
"Size",
"=",
"DescSize",
";",
"if",
"(",
"MI",
".",
"isBranch",
"(",
")",
"&&",
"ST",
".",
"hasOffset3fBug",
"(",
")",
")",
"Size",
"+=",
"4",
";",
"return",
"Size",
";",
"}",
"if",
"(",
"isVALU",
"(",
"MI",
")",
"||",
"isSALU",
"(",
"MI",
")",
")",
"{",
"int",
"Src0Idx",
"=",
"AMDGPU",
"::",
"getNamedOperandIdx",
"(",
"Opc",
",",
"AMDGPU",
"::",
"OpName",
"::",
"src0",
")",
";",
"if",
"(",
"Src0Idx",
"==",
"-",
"1",
")",
"return",
"DescSize",
";",
"if",
"(",
"isLiteralConstantLike",
"(",
"MI",
".",
"getOperand",
"(",
"Src0Idx",
")",
",",
"Desc",
".",
"OpInfo",
"[",
"Src0Idx",
"]",
")",
")",
"return",
"isVOP3",
"(",
"MI",
")",
"?",
"12",
":",
"(",
"DescSize",
"+",
"4",
")",
";",
"int",
"Src1Idx",
"=",
"AMDGPU",
"::",
"getNamedOperandIdx",
"(",
"Opc",
",",
"AMDGPU",
"::",
"OpName",
"::",
"src1",
")",
";",
"if",
"(",
"Src1Idx",
"==",
"-",
"1",
")",
"return",
"DescSize",
";",
"if",
"(",
"isLiteralConstantLike",
"(",
"MI",
".",
"getOperand",
"(",
"Src1Idx",
")",
",",
"Desc",
".",
"OpInfo",
"[",
"Src1Idx",
"]",
")",
")",
"return",
"isVOP3",
"(",
"MI",
")",
"?",
"12",
":",
"(",
"DescSize",
"+",
"4",
")",
";",
"int",
"Src2Idx",
"=",
"AMDGPU",
"::",
"getNamedOperandIdx",
"(",
"Opc",
",",
"AMDGPU",
"::",
"OpName",
"::",
"src2",
")",
";",
"if",
"(",
"Src2Idx",
"==",
"-",
"1",
")",
"return",
"DescSize",
";",
"if",
"(",
"isLiteralConstantLike",
"(",
"MI",
".",
"getOperand",
"(",
"Src2Idx",
")",
",",
"Desc",
".",
"OpInfo",
"[",
"Src2Idx",
"]",
")",
")",
"return",
"isVOP3",
"(",
"MI",
")",
"?",
"12",
":",
"(",
"DescSize",
"+",
"4",
")",
";",
"return",
"DescSize",
";",
"}",
"if",
"(",
"isMIMG",
"(",
"MI",
")",
")",
"{",
"int",
"VAddr0Idx",
"=",
"AMDGPU",
"::",
"getNamedOperandIdx",
"(",
"Opc",
",",
"AMDGPU",
"::",
"OpName",
"::",
"vaddr0",
")",
";",
"if",
"(",
"VAddr0Idx",
"<",
"0",
")",
"return",
"8",
";",
"int",
"RSrcIdx",
"=",
"AMDGPU",
"::",
"getNamedOperandIdx",
"(",
"Opc",
",",
"AMDGPU",
"::",
"OpName",
"::",
"srsrc",
")",
";",
"return",
"8",
"+",
"4",
"*",
"(",
"(",
"RSrcIdx",
"-",
"VAddr0Idx",
"+",
"2",
")",
"/",
"4",
")",
";",
"}",
"switch",
"(",
"Opc",
")",
"{",
"case",
"TargetOpcode",
"::",
"IMPLICIT_DEF",
":",
"case",
"TargetOpcode",
"::",
"KILL",
":",
"case",
"TargetOpcode",
"::",
"DBG_VALUE",
":",
"case",
"TargetOpcode",
"::",
"EH_LABEL",
":",
"return",
"0",
";",
"case",
"TargetOpcode",
"::",
"BUNDLE",
":",
"return",
"getInstBundleSize",
"(",
"MI",
")",
";",
"case",
"TargetOpcode",
"::",
"INLINEASM",
":",
"case",
"TargetOpcode",
"::",
"INLINEASM_BR",
":",
"{",
"const",
"MachineFunction",
"*",
"MF",
"=",
"MI",
".",
"getParent",
"(",
")",
"->",
"getParent",
"(",
")",
";",
"const",
"char",
"*",
"AsmStr",
"=",
"MI",
".",
"getOperand",
"(",
"0",
")",
".",
"getSymbolName",
"(",
")",
";",
"return",
"getInlineAsmLength",
"(",
"AsmStr",
",",
"*",
"MF",
"->",
"getTarget",
"(",
")",
".",
"getMCAsmInfo",
"(",
")",
",",
"&",
"ST",
")",
";",
"}",
"default",
":",
"return",
"DescSize",
";",
"}",
"}",
"</s>"
] | [
"Returns",
"the",
"size",
"in",
"bytes",
"of",
"the",
"specified",
"MachineInstr",
",",
"or",
"~0U",
"when",
"this",
"function",
"is",
"not",
"implemented",
"by",
"a",
"target",
"."
] | [
"AMDGPU",
"SI",
"4",
"AMDGPU::getNamedOperandIdx",
"AMDGPU::OpName",
"1",
"12",
"4",
"AMDGPU::getNamedOperandIdx",
"AMDGPU::OpName",
"1",
"12",
"4",
"AMDGPU::getNamedOperandIdx",
"AMDGPU::OpName",
"1",
"12",
"4",
"AMDGPU::getNamedOperandIdx",
"AMDGPU::OpName",
"0",
"8",
"AMDGPU::getNamedOperandIdx",
"AMDGPU::OpName",
"8",
"4",
"2",
"4",
"0",
"0"
] | SIInstrInfo13 | getInstSizeInBytes | AMDGPU | GPU | LLVM | 29,518 | 445 | 1 | [] |
[
"<s>",
"int",
"fma_node",
"::",
"get_parity",
"(",
")",
"{",
"return",
"this",
"->",
"m_head",
"->",
"regno",
"%",
"2",
";",
"}",
"</s>"
] | [
"Return",
"the",
"parity",
"of",
"the",
"destination",
"register",
"of",
"the",
"instruction",
"represented",
"by",
"this",
"node",
"."
] | [
"aarch64",
"2"
] | cortex-a57-fma-steering | get_parity | aarch64 | CPU | GCC | 29,519 | 17 | 1 | [] |
[
"<s>",
"static",
"int",
"rs6000_use_sched_lookahead",
"(",
"void",
")",
"{",
"if",
"(",
"rs6000_cpu_attr",
"==",
"CPU_PPC8540",
")",
"return",
"4",
";",
"return",
"0",
";",
"}",
"</s>"
] | [
"Return",
"how",
"many",
"instructions",
"to",
"look",
"ahead",
"for",
"better",
"insn",
"scheduling",
"."
] | [
"rs6000",
"4",
"0"
] | rs60003 | rs6000_use_sched_lookahead | rs6000 | CPU | GCC | 29,520 | 20 | 1 | [] |
[
"<s>",
"unsigned",
"RISCVInstrInfo",
"::",
"isLoadFromStackSlot",
"(",
"const",
"MachineInstr",
"&",
"MI",
",",
"int",
"&",
"FrameIndex",
")",
"const",
"{",
"switch",
"(",
"MI",
".",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"return",
"0",
";",
"case",
"RISCV",
"::",
"LB",
":",
"case",
"RISCV",
"::",
"LBU",
":",
"case",
"RISCV",
"::",
"LH",
":",
"case",
"RISCV",
"::",
"LHU",
":",
"case",
"RISCV",
"::",
"LW",
":",
"case",
"RISCV",
"::",
"FLW",
":",
"case",
"RISCV",
"::",
"LWU",
":",
"case",
"RISCV",
"::",
"LD",
":",
"case",
"RISCV",
"::",
"FLD",
":",
"break",
";",
"}",
"if",
"(",
"MI",
".",
"getOperand",
"(",
"1",
")",
".",
"isFI",
"(",
")",
"&&",
"MI",
".",
"getOperand",
"(",
"2",
")",
".",
"isImm",
"(",
")",
"&&",
"MI",
".",
"getOperand",
"(",
"2",
")",
".",
"getImm",
"(",
")",
"==",
"0",
")",
"{",
"FrameIndex",
"=",
"MI",
".",
"getOperand",
"(",
"1",
")",
".",
"getIndex",
"(",
")",
";",
"return",
"MI",
".",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
";",
"}",
"return",
"0",
";",
"}",
"</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",
"."
] | [
"RISCV",
"RISCV",
"0",
"RISCV::LB",
"RISCV::LBU",
"RISCV::LH",
"RISCV::LHU",
"RISCV::LW",
"RISCV::FLW",
"RISCV::LWU",
"RISCV::LD",
"RISCV::FLD",
"1",
"2",
"2",
"0",
"1",
"0",
"0"
] | RISCVInstrInfo | isLoadFromStackSlot | RISCV | CPU | LLVM | 29,521 | 146 | 1 | [] |
[
"<s>",
"bool",
"HexagonInstrInfo",
"::",
"analyzeCompare",
"(",
"const",
"MachineInstr",
"&",
"MI",
",",
"unsigned",
"&",
"SrcReg",
",",
"unsigned",
"&",
"SrcReg2",
",",
"int",
"&",
"Mask",
",",
"int",
"&",
"Value",
")",
"const",
"{",
"unsigned",
"Opc",
"=",
"MI",
".",
"getOpcode",
"(",
")",
";",
"switch",
"(",
"Opc",
")",
"{",
"case",
"Hexagon",
"::",
"C2_cmpeq",
":",
"case",
"Hexagon",
"::",
"C2_cmpeqp",
":",
"case",
"Hexagon",
"::",
"C2_cmpgt",
":",
"case",
"Hexagon",
"::",
"C2_cmpgtp",
":",
"case",
"Hexagon",
"::",
"C2_cmpgtu",
":",
"case",
"Hexagon",
"::",
"C2_cmpgtup",
":",
"case",
"Hexagon",
"::",
"C4_cmpneq",
":",
"case",
"Hexagon",
"::",
"C4_cmplte",
":",
"case",
"Hexagon",
"::",
"C4_cmplteu",
":",
"case",
"Hexagon",
"::",
"C2_cmpeqi",
":",
"case",
"Hexagon",
"::",
"C2_cmpgti",
":",
"case",
"Hexagon",
"::",
"C2_cmpgtui",
":",
"case",
"Hexagon",
"::",
"C4_cmpneqi",
":",
"case",
"Hexagon",
"::",
"C4_cmplteui",
":",
"case",
"Hexagon",
"::",
"C4_cmpltei",
":",
"SrcReg",
"=",
"MI",
".",
"getOperand",
"(",
"1",
")",
".",
"getReg",
"(",
")",
";",
"Mask",
"=",
"~",
"0",
";",
"break",
";",
"case",
"Hexagon",
"::",
"A4_cmpbeq",
":",
"case",
"Hexagon",
"::",
"A4_cmpbgt",
":",
"case",
"Hexagon",
"::",
"A4_cmpbgtu",
":",
"case",
"Hexagon",
"::",
"A4_cmpbeqi",
":",
"case",
"Hexagon",
"::",
"A4_cmpbgti",
":",
"case",
"Hexagon",
"::",
"A4_cmpbgtui",
":",
"SrcReg",
"=",
"MI",
".",
"getOperand",
"(",
"1",
")",
".",
"getReg",
"(",
")",
";",
"Mask",
"=",
"0xFF",
";",
"break",
";",
"case",
"Hexagon",
"::",
"A4_cmpheq",
":",
"case",
"Hexagon",
"::",
"A4_cmphgt",
":",
"case",
"Hexagon",
"::",
"A4_cmphgtu",
":",
"case",
"Hexagon",
"::",
"A4_cmpheqi",
":",
"case",
"Hexagon",
"::",
"A4_cmphgti",
":",
"case",
"Hexagon",
"::",
"A4_cmphgtui",
":",
"SrcReg",
"=",
"MI",
".",
"getOperand",
"(",
"1",
")",
".",
"getReg",
"(",
")",
";",
"Mask",
"=",
"0xFFFF",
";",
"break",
";",
"}",
"switch",
"(",
"Opc",
")",
"{",
"case",
"Hexagon",
"::",
"C2_cmpeq",
":",
"case",
"Hexagon",
"::",
"C2_cmpeqp",
":",
"case",
"Hexagon",
"::",
"C2_cmpgt",
":",
"case",
"Hexagon",
"::",
"C2_cmpgtp",
":",
"case",
"Hexagon",
"::",
"C2_cmpgtu",
":",
"case",
"Hexagon",
"::",
"C2_cmpgtup",
":",
"case",
"Hexagon",
"::",
"A4_cmpbeq",
":",
"case",
"Hexagon",
"::",
"A4_cmpbgt",
":",
"case",
"Hexagon",
"::",
"A4_cmpbgtu",
":",
"case",
"Hexagon",
"::",
"A4_cmpheq",
":",
"case",
"Hexagon",
"::",
"A4_cmphgt",
":",
"case",
"Hexagon",
"::",
"A4_cmphgtu",
":",
"case",
"Hexagon",
"::",
"C4_cmpneq",
":",
"case",
"Hexagon",
"::",
"C4_cmplte",
":",
"case",
"Hexagon",
"::",
"C4_cmplteu",
":",
"SrcReg2",
"=",
"MI",
".",
"getOperand",
"(",
"2",
")",
".",
"getReg",
"(",
")",
";",
"return",
"true",
";",
"case",
"Hexagon",
"::",
"C2_cmpeqi",
":",
"case",
"Hexagon",
"::",
"C2_cmpgtui",
":",
"case",
"Hexagon",
"::",
"C2_cmpgti",
":",
"case",
"Hexagon",
"::",
"C4_cmpneqi",
":",
"case",
"Hexagon",
"::",
"C4_cmplteui",
":",
"case",
"Hexagon",
"::",
"C4_cmpltei",
":",
"case",
"Hexagon",
"::",
"A4_cmpbeqi",
":",
"case",
"Hexagon",
"::",
"A4_cmpbgti",
":",
"case",
"Hexagon",
"::",
"A4_cmpbgtui",
":",
"case",
"Hexagon",
"::",
"A4_cmpheqi",
":",
"case",
"Hexagon",
"::",
"A4_cmphgti",
":",
"case",
"Hexagon",
"::",
"A4_cmphgtui",
":",
"SrcReg2",
"=",
"0",
";",
"Value",
"=",
"MI",
".",
"getOperand",
"(",
"2",
")",
".",
"getImm",
"(",
")",
";",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"analyzeCompare",
"-",
"For",
"a",
"comparison",
"instruction",
",",
"return",
"the",
"source",
"registers",
"in",
"SrcReg",
"and",
"SrcReg2",
"if",
"having",
"two",
"register",
"operands",
",",
"and",
"the",
"value",
"it",
"compares",
"against",
"in",
"CmpValue",
"."
] | [
"Hexagon",
"Hexagon",
"Hexagon::C2_cmpeq",
"Hexagon::C2_cmpeqp",
"Hexagon::C2_cmpgt",
"Hexagon::C2_cmpgtp",
"Hexagon::C2_cmpgtu",
"Hexagon::C2_cmpgtup",
"Hexagon::C4_cmpneq",
"Hexagon::C4_cmplte",
"Hexagon::C4_cmplteu",
"Hexagon::C2_cmpeqi",
"Hexagon::C2_cmpgti",
"Hexagon::C2_cmpgtui",
"Hexagon::C4_cmpneqi",
"Hexagon::C4_cmplteui",
"Hexagon::C4_cmpltei",
"1",
"0",
"Hexagon::A4_cmpbeq",
"Hexagon::A4_cmpbgt",
"Hexagon::A4_cmpbgtu",
"Hexagon::A4_cmpbeqi",
"Hexagon::A4_cmpbgti",
"Hexagon::A4_cmpbgtui",
"1",
"0xFF",
"Hexagon::A4_cmpheq",
"Hexagon::A4_cmphgt",
"Hexagon::A4_cmphgtu",
"Hexagon::A4_cmpheqi",
"Hexagon::A4_cmphgti",
"Hexagon::A4_cmphgtui",
"1",
"0xFFFF",
"Hexagon::C2_cmpeq",
"Hexagon::C2_cmpeqp",
"Hexagon::C2_cmpgt",
"Hexagon::C2_cmpgtp",
"Hexagon::C2_cmpgtu",
"Hexagon::C2_cmpgtup",
"Hexagon::A4_cmpbeq",
"Hexagon::A4_cmpbgt",
"Hexagon::A4_cmpbgtu",
"Hexagon::A4_cmpheq",
"Hexagon::A4_cmphgt",
"Hexagon::A4_cmphgtu",
"Hexagon::C4_cmpneq",
"Hexagon::C4_cmplte",
"Hexagon::C4_cmplteu",
"2",
"Hexagon::C2_cmpeqi",
"Hexagon::C2_cmpgtui",
"Hexagon::C2_cmpgti",
"Hexagon::C4_cmpneqi",
"Hexagon::C4_cmplteui",
"Hexagon::C4_cmpltei",
"Hexagon::A4_cmpbeqi",
"Hexagon::A4_cmpbgti",
"Hexagon::A4_cmpbgtui",
"Hexagon::A4_cmpheqi",
"Hexagon::A4_cmphgti",
"Hexagon::A4_cmphgtui",
"0",
"2"
] | HexagonInstrInfo (2) | analyzeCompare | Hexagon | DSP | LLVM | 29,522 | 417 | 1 | [] |
[
"<s>",
"SDValue",
"ARCTargetLowering",
"::",
"LowerOperation",
"(",
"SDValue",
"Op",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"switch",
"(",
"Op",
".",
"getOpcode",
"(",
")",
")",
"{",
"case",
"ISD",
"::",
"GlobalAddress",
":",
"return",
"LowerGlobalAddress",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"FRAMEADDR",
":",
"return",
"LowerFRAMEADDR",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"SELECT_CC",
":",
"return",
"LowerSELECT_CC",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"BR_CC",
":",
"return",
"LowerBR_CC",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"SIGN_EXTEND_INREG",
":",
"return",
"LowerSIGN_EXTEND_INREG",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"JumpTable",
":",
"return",
"LowerJumpTable",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"VASTART",
":",
"return",
"LowerVASTART",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"READCYCLECOUNTER",
":",
"assert",
"(",
"Op",
".",
"getSimpleValueType",
"(",
")",
"==",
"MVT",
"::",
"i32",
")",
";",
"return",
"Op",
";",
"default",
":",
"llvm_unreachable",
"(",
"\"unimplemented operand\"",
")",
";",
"}",
"}",
"</s>"
] | [
"LowerOperation",
"-",
"Provide",
"custom",
"lowering",
"hooks",
"for",
"some",
"operations",
"."
] | [
"ARC",
"ARC",
"ISD::GlobalAddress",
"ISD::FRAMEADDR",
"ISD::SELECT_CC",
"ISD::BR_CC",
"ISD::SIGN_EXTEND_INREG",
"ISD::JumpTable",
"ISD::VASTART",
"ISD::READCYCLECOUNTER",
"MVT::i32",
"\"unimplemented operand\""
] | ARCISelLowering3 | LowerOperation | ARC | MPU | LLVM | 29,523 | 144 | 1 | [] |
[
"<s>",
"void",
"HexagonInstrInfo",
"::",
"storeRegToStackSlot",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"I",
",",
"unsigned",
"SrcReg",
",",
"bool",
"isKill",
",",
"int",
"FI",
",",
"const",
"TargetRegisterClass",
"*",
"RC",
",",
"const",
"TargetRegisterInfo",
"*",
"TRI",
")",
"const",
"{",
"DebugLoc",
"DL",
"=",
"MBB",
".",
"findDebugLoc",
"(",
"I",
")",
";",
"MachineFunction",
"&",
"MF",
"=",
"*",
"MBB",
".",
"getParent",
"(",
")",
";",
"MachineFrameInfo",
"&",
"MFI",
"=",
"*",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"unsigned",
"Align",
"=",
"MFI",
".",
"getObjectAlignment",
"(",
"FI",
")",
";",
"MachineMemOperand",
"*",
"MMO",
"=",
"MF",
".",
"getMachineMemOperand",
"(",
"MachinePointerInfo",
"::",
"getFixedStack",
"(",
"MF",
",",
"FI",
")",
",",
"MachineMemOperand",
"::",
"MOStore",
",",
"MFI",
".",
"getObjectSize",
"(",
"FI",
")",
",",
"Align",
")",
";",
"if",
"(",
"Hexagon",
"::",
"IntRegsRegClass",
".",
"hasSubClassEq",
"(",
"RC",
")",
")",
"{",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"Hexagon",
"::",
"S2_storeri_io",
")",
")",
".",
"addFrameIndex",
"(",
"FI",
")",
".",
"addImm",
"(",
"0",
")",
".",
"addReg",
"(",
"SrcReg",
",",
"getKillRegState",
"(",
"isKill",
")",
")",
".",
"addMemOperand",
"(",
"MMO",
")",
";",
"}",
"else",
"if",
"(",
"Hexagon",
"::",
"DoubleRegsRegClass",
".",
"hasSubClassEq",
"(",
"RC",
")",
")",
"{",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"Hexagon",
"::",
"S2_storerd_io",
")",
")",
".",
"addFrameIndex",
"(",
"FI",
")",
".",
"addImm",
"(",
"0",
")",
".",
"addReg",
"(",
"SrcReg",
",",
"getKillRegState",
"(",
"isKill",
")",
")",
".",
"addMemOperand",
"(",
"MMO",
")",
";",
"}",
"else",
"if",
"(",
"Hexagon",
"::",
"PredRegsRegClass",
".",
"hasSubClassEq",
"(",
"RC",
")",
")",
"{",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"Hexagon",
"::",
"STriw_pred",
")",
")",
".",
"addFrameIndex",
"(",
"FI",
")",
".",
"addImm",
"(",
"0",
")",
".",
"addReg",
"(",
"SrcReg",
",",
"getKillRegState",
"(",
"isKill",
")",
")",
".",
"addMemOperand",
"(",
"MMO",
")",
";",
"}",
"else",
"{",
"llvm_unreachable",
"(",
"\"Unimplemented\"",
")",
";",
"}",
"}",
"</s>"
] | [
"Store",
"the",
"specified",
"register",
"of",
"the",
"given",
"register",
"class",
"to",
"the",
"specified",
"stack",
"frame",
"index",
"."
] | [
"Hexagon",
"Hexagon",
"Hexagon::IntRegsRegClass",
"Hexagon::S2_storeri_io",
"0",
"Hexagon::DoubleRegsRegClass",
"Hexagon::S2_storerd_io",
"0",
"Hexagon::PredRegsRegClass",
"Hexagon::STriw_pred",
"0",
"\"Unimplemented\""
] | HexagonInstrInfo7 | storeRegToStackSlot | Hexagon | DSP | LLVM | 29,524 | 281 | 1 | [] |
[
"<s>",
"static",
"bool",
"store_insn_p",
"(",
"rtx_insn",
"*",
"insn",
")",
"{",
"if",
"(",
"GET_CODE",
"(",
"PATTERN",
"(",
"insn",
")",
")",
"!=",
"SET",
")",
"return",
"false",
";",
"switch",
"(",
"get_attr_type",
"(",
"insn",
")",
")",
"{",
"case",
"TYPE_STORE",
":",
"case",
"TYPE_FPSTORE",
":",
"return",
"true",
";",
"default",
":",
"return",
"false",
";",
"}",
"}",
"</s>"
] | [
"True",
"if",
"INSN",
"is",
"a",
"store",
"instruction",
"."
] | [
"sparc"
] | sparc | store_insn_p | sparc | CPU | GCC | 29,525 | 48 | 1 | [] |
[
"<s>",
"void",
"LM32FrameLowering",
"::",
"eliminateCallFramePseudoInstr",
"(",
"MachineFunction",
"&",
"MF",
",",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"MI",
")",
"const",
"{",
"switch",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
"{",
"case",
"LM32",
"::",
"ADJCALLSTACKDOWN",
":",
"case",
"LM32",
"::",
"ADJCALLSTACKUP",
":",
"assert",
"(",
"hasReservedCallFrame",
"(",
"MF",
")",
"&&",
"\"ADJSTACKDOWN and ADJSTACKUP should be no-ops\"",
")",
";",
"MBB",
".",
"erase",
"(",
"MI",
")",
";",
"break",
";",
"default",
":",
"llvm_unreachable",
"(",
"\"Unexpected call frame instruction\"",
")",
";",
"}",
"}",
"</s>"
] | [
"This",
"method",
"is",
"called",
"during",
"prolog/epilog",
"code",
"insertion",
"to",
"eliminate",
"call",
"frame",
"setup",
"and",
"destroy",
"pseudo",
"instructions",
"(",
"but",
"only",
"if",
"the",
"Target",
"is",
"using",
"them",
")",
"."
] | [
"LM32",
"LM32",
"LM32::ADJCALLSTACKDOWN",
"LM32::ADJCALLSTACKUP",
"\"ADJSTACKDOWN and ADJSTACKUP should be no-ops\"",
"\"Unexpected call frame instruction\""
] | LM32FrameLowering | eliminateCallFramePseudoInstr | LM32 | MPU | LLVM | 29,526 | 67 | 1 | [] |
[
"<s>",
"static",
"bool",
"tilepro_cannot_force_const_mem",
"(",
"machine_mode",
"mode",
"ATTRIBUTE_UNUSED",
",",
"rtx",
"x",
"ATTRIBUTE_UNUSED",
")",
"{",
"return",
"true",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_CANNOT_FORCE_CONST_MEM",
"."
] | [
"tilepro"
] | tilepro | tilepro_cannot_force_const_mem | tilepro | VLIW | GCC | 29,527 | 17 | 1 | [] |
[
"<s>",
"bool",
"X86CallFrameOptimization",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"TII",
"=",
"MF",
".",
"getSubtarget",
"(",
")",
".",
"getInstrInfo",
"(",
")",
";",
"TFL",
"=",
"MF",
".",
"getSubtarget",
"(",
")",
".",
"getFrameLowering",
"(",
")",
";",
"MRI",
"=",
"&",
"MF",
".",
"getRegInfo",
"(",
")",
";",
"if",
"(",
"!",
"shouldPerformTransformation",
"(",
"MF",
")",
")",
"return",
"false",
";",
"int",
"FrameSetupOpcode",
"=",
"TII",
"->",
"getCallFrameSetupOpcode",
"(",
")",
";",
"bool",
"Changed",
"=",
"false",
";",
"for",
"(",
"MachineFunction",
"::",
"iterator",
"BB",
"=",
"MF",
".",
"begin",
"(",
")",
",",
"E",
"=",
"MF",
".",
"end",
"(",
")",
";",
"BB",
"!=",
"E",
";",
"++",
"BB",
")",
"for",
"(",
"MachineBasicBlock",
"::",
"iterator",
"I",
"=",
"BB",
"->",
"begin",
"(",
")",
";",
"I",
"!=",
"BB",
"->",
"end",
"(",
")",
";",
"++",
"I",
")",
"if",
"(",
"I",
"->",
"getOpcode",
"(",
")",
"==",
"FrameSetupOpcode",
")",
"Changed",
"|=",
"adjustCallSequence",
"(",
"MF",
",",
"*",
"BB",
",",
"I",
")",
";",
"return",
"Changed",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"X86",
"X86"
] | X86CallFrameOptimization11 | runOnMachineFunction | X86 | CPU | LLVM | 29,528 | 146 | 1 | [] |
[
"<s>",
"bool",
"Error",
"(",
"SMLoc",
"L",
",",
"const",
"Twine",
"&",
"Msg",
")",
"{",
"return",
"Parser",
".",
"Error",
"(",
"L",
",",
"Msg",
")",
";",
"}",
"</s>"
] | [
"Return",
"an",
"error",
"at",
"the",
"location",
"L",
",",
"with",
"the",
"message",
"Msg",
"."
] | [
"Patmos"
] | PatmosAsmParser | Error | Patmos | VLIW | LLVM | 29,529 | 23 | 1 | [] |
[
"<s>",
"bool",
"enablePostRAScheduler",
"(",
")",
"const",
"override",
"{",
"return",
"true",
";",
"}",
"</s>"
] | [
"True",
"if",
"the",
"subtarget",
"should",
"run",
"a",
"scheduler",
"after",
"register",
"allocation",
"."
] | [
"Nyuzi"
] | NyuziSubtarget | enablePostRAScheduler | Nyuzi | GPU | LLVM | 29,530 | 11 | 1 | [] |
[
"<s>",
"bool",
"SNESAsmBackend",
"::",
"writeNopData",
"(",
"uint64_t",
"Count",
",",
"MCObjectWriter",
"*",
"OW",
")",
"const",
"{",
"assert",
"(",
"(",
"Count",
"%",
"2",
")",
"==",
"0",
"&&",
"\"NOP instructions must be 2 bytes\"",
")",
";",
"OW",
"->",
"WriteZeros",
"(",
"Count",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Write",
"an",
"(",
"optimal",
")",
"nop",
"sequence",
"of",
"Count",
"bytes",
"to",
"the",
"given",
"output",
"."
] | [
"SNES",
"SNES",
"2",
"0",
"\"NOP instructions must be 2 bytes\""
] | SNESAsmBackend | writeNopData | SNES | DSP | LLVM | 29,531 | 38 | 1 | [] |
[
"<s>",
"bool",
"RISCVAsmBackend",
"::",
"shouldInsertFixupForCodeAlign",
"(",
"MCAssembler",
"&",
"Asm",
",",
"const",
"MCAsmLayout",
"&",
"Layout",
",",
"MCAlignFragment",
"&",
"AF",
")",
"{",
"const",
"MCSubtargetInfo",
"*",
"STI",
"=",
"AF",
".",
"getSubtargetInfo",
"(",
")",
";",
"if",
"(",
"!",
"STI",
"->",
"getFeatureBits",
"(",
")",
"[",
"RISCV",
"::",
"FeatureRelax",
"]",
")",
"return",
"false",
";",
"unsigned",
"Count",
";",
"if",
"(",
"!",
"shouldInsertExtraNopBytesForCodeAlign",
"(",
"AF",
",",
"Count",
")",
"||",
"(",
"Count",
"==",
"0",
")",
")",
"return",
"false",
";",
"MCContext",
"&",
"Ctx",
"=",
"Asm",
".",
"getContext",
"(",
")",
";",
"const",
"MCExpr",
"*",
"Dummy",
"=",
"MCConstantExpr",
"::",
"create",
"(",
"0",
",",
"Ctx",
")",
";",
"MCFixup",
"Fixup",
"=",
"MCFixup",
"::",
"create",
"(",
"0",
",",
"Dummy",
",",
"MCFixupKind",
"(",
"RISCV",
"::",
"fixup_riscv_align",
")",
",",
"SMLoc",
"(",
")",
")",
";",
"uint64_t",
"FixedValue",
"=",
"0",
";",
"MCValue",
"NopBytes",
"=",
"MCValue",
"::",
"get",
"(",
"Count",
")",
";",
"Asm",
".",
"getWriter",
"(",
")",
".",
"recordRelocation",
"(",
"Asm",
",",
"Layout",
",",
"&",
"AF",
",",
"Fixup",
",",
"NopBytes",
",",
"FixedValue",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Hook",
"which",
"indicates",
"if",
"the",
"target",
"requires",
"a",
"fixup",
"to",
"be",
"generated",
"when",
"handling",
"an",
"align",
"directive",
"in",
"an",
"executable",
"section",
"."
] | [
"RISCV",
"RISCV",
"RISCV::FeatureRelax",
"0",
"0",
"0",
"RISCV::fixup_riscv_align",
"0"
] | RISCVAsmBackend34 | shouldInsertFixupForCodeAlign | RISCV | CPU | LLVM | 29,532 | 157 | 1 | [] |
[
"<s>",
"bool",
"X86AsmParser",
"::",
"ParseDirective",
"(",
"AsmToken",
"DirectiveID",
")",
"{",
"MCAsmParser",
"&",
"Parser",
"=",
"getParser",
"(",
")",
";",
"StringRef",
"IDVal",
"=",
"DirectiveID",
".",
"getIdentifier",
"(",
")",
";",
"if",
"(",
"IDVal",
".",
"startswith",
"(",
"\".code\"",
")",
")",
"return",
"ParseDirectiveCode",
"(",
"IDVal",
",",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
".",
"startswith",
"(",
"\".att_syntax\"",
")",
")",
"{",
"getParser",
"(",
")",
".",
"setParsingInlineAsm",
"(",
"false",
")",
";",
"if",
"(",
"getLexer",
"(",
")",
".",
"isNot",
"(",
"AsmToken",
"::",
"EndOfStatement",
")",
")",
"{",
"if",
"(",
"Parser",
".",
"getTok",
"(",
")",
".",
"getString",
"(",
")",
"==",
"\"prefix\"",
")",
"Parser",
".",
"Lex",
"(",
")",
";",
"else",
"if",
"(",
"Parser",
".",
"getTok",
"(",
")",
".",
"getString",
"(",
")",
"==",
"\"noprefix\"",
")",
"return",
"Error",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
",",
"\"'.att_syntax noprefix' is not \"",
"\"supported: registers must have a \"",
"\"'%' prefix in .att_syntax\"",
")",
";",
"}",
"getParser",
"(",
")",
".",
"setAssemblerDialect",
"(",
"0",
")",
";",
"return",
"false",
";",
"}",
"else",
"if",
"(",
"IDVal",
".",
"startswith",
"(",
"\".intel_syntax\"",
")",
")",
"{",
"getParser",
"(",
")",
".",
"setAssemblerDialect",
"(",
"1",
")",
";",
"getParser",
"(",
")",
".",
"setParsingInlineAsm",
"(",
"true",
")",
";",
"if",
"(",
"getLexer",
"(",
")",
".",
"isNot",
"(",
"AsmToken",
"::",
"EndOfStatement",
")",
")",
"{",
"if",
"(",
"Parser",
".",
"getTok",
"(",
")",
".",
"getString",
"(",
")",
"==",
"\"noprefix\"",
")",
"Parser",
".",
"Lex",
"(",
")",
";",
"else",
"if",
"(",
"Parser",
".",
"getTok",
"(",
")",
".",
"getString",
"(",
")",
"==",
"\"prefix\"",
")",
"return",
"Error",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
",",
"\"'.intel_syntax prefix' is not \"",
"\"supported: registers must not have \"",
"\"a '%' prefix in .intel_syntax\"",
")",
";",
"}",
"return",
"false",
";",
"}",
"else",
"if",
"(",
"IDVal",
"==",
"\".even\"",
")",
"return",
"parseDirectiveEven",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".cv_fpo_proc\"",
")",
"return",
"parseDirectiveFPOProc",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".cv_fpo_setframe\"",
")",
"return",
"parseDirectiveFPOSetFrame",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".cv_fpo_pushreg\"",
")",
"return",
"parseDirectiveFPOPushReg",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".cv_fpo_stackalloc\"",
")",
"return",
"parseDirectiveFPOStackAlloc",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".cv_fpo_stackalign\"",
")",
"return",
"parseDirectiveFPOStackAlign",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".cv_fpo_endprologue\"",
")",
"return",
"parseDirectiveFPOEndPrologue",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".cv_fpo_endproc\"",
")",
"return",
"parseDirectiveFPOEndProc",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"ParseDirective",
"-",
"Parse",
"a",
"target",
"specific",
"assembler",
"directive",
"This",
"method",
"is",
"deprecated",
",",
"use",
"'parseDirective",
"'",
"instead",
"."
] | [
"X86",
"X86",
"\".code\"",
"\".att_syntax\"",
"\"prefix\"",
"\"noprefix\"",
"\"'.att_syntax noprefix' is not \"",
"\"supported: registers must have a \"",
"\"'%' prefix in .att_syntax\"",
"0",
"\".intel_syntax\"",
"1",
"\"noprefix\"",
"\"prefix\"",
"\"'.intel_syntax prefix' is not \"",
"\"supported: registers must not have \"",
"\"a '%' prefix in .intel_syntax\"",
"\".even\"",
"\".cv_fpo_proc\"",
"\".cv_fpo_setframe\"",
"\".cv_fpo_pushreg\"",
"\".cv_fpo_stackalloc\"",
"\".cv_fpo_stackalign\"",
"\".cv_fpo_endprologue\"",
"\".cv_fpo_endproc\""
] | X86AsmParser113 | ParseDirective | X86 | CPU | LLVM | 29,533 | 381 | 1 | [] |
[
"<s>",
"InstructionCost",
"HexagonTTIImpl",
"::",
"getCallInstrCost",
"(",
"Function",
"*",
"F",
",",
"Type",
"*",
"RetTy",
",",
"ArrayRef",
"<",
"Type",
"*",
">",
"Tys",
",",
"TTI",
"::",
"TargetCostKind",
"CostKind",
")",
"{",
"return",
"BaseT",
"::",
"getCallInstrCost",
"(",
"F",
",",
"RetTy",
",",
"Tys",
",",
"CostKind",
")",
";",
"}",
"</s>"
] | [
"Compute",
"a",
"cost",
"of",
"the",
"given",
"call",
"instruction",
"."
] | [
"Hexagon",
"Hexagon"
] | HexagonTargetTransformInfo16 | getCallInstrCost | Hexagon | DSP | LLVM | 29,534 | 41 | 1 | [] |
[
"<s>",
"MachineBasicBlock",
"::",
"iterator",
"X86InstrInfo",
"::",
"insertOutlinedCall",
"(",
"Module",
"&",
"M",
",",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"&",
"It",
",",
"MachineFunction",
"&",
"MF",
",",
"const",
"outliner",
"::",
"Candidate",
"&",
"C",
")",
"const",
"{",
"if",
"(",
"C",
".",
"CallConstructionID",
"==",
"MachineOutlinerTailCall",
")",
"{",
"It",
"=",
"MBB",
".",
"insert",
"(",
"It",
",",
"BuildMI",
"(",
"MF",
",",
"DebugLoc",
"(",
")",
",",
"get",
"(",
"X86",
"::",
"JMP_1",
")",
")",
".",
"addGlobalAddress",
"(",
"M",
".",
"getNamedValue",
"(",
"MF",
".",
"getName",
"(",
")",
")",
")",
")",
";",
"}",
"else",
"{",
"It",
"=",
"MBB",
".",
"insert",
"(",
"It",
",",
"BuildMI",
"(",
"MF",
",",
"DebugLoc",
"(",
")",
",",
"get",
"(",
"X86",
"::",
"CALL64pcrel32",
")",
")",
".",
"addGlobalAddress",
"(",
"M",
".",
"getNamedValue",
"(",
"MF",
".",
"getName",
"(",
")",
")",
")",
")",
";",
"}",
"return",
"It",
";",
"}",
"</s>"
] | [
"Insert",
"a",
"call",
"to",
"an",
"outlined",
"function",
"into",
"the",
"program",
"."
] | [
"X86",
"X86",
"X86::JMP_1",
"X86::CALL64pcrel32"
] | X86InstrInfo86 | insertOutlinedCall | X86 | CPU | LLVM | 29,535 | 129 | 1 | [] |
[
"<s>",
"bool",
"PPCTTIImpl",
"::",
"enableAggressiveInterleaving",
"(",
"bool",
"LoopHasReductions",
")",
"{",
"return",
"LoopHasReductions",
";",
"}",
"</s>"
] | [
"Do",
"n't",
"restrict",
"interleaved",
"unrolling",
"to",
"small",
"loops",
"."
] | [
"PowerPC",
"PPC"
] | PPCTargetTransformInfo3 | enableAggressiveInterleaving | PowerPC | CPU | LLVM | 29,536 | 13 | 1 | [] |
[
"<s>",
"rtx",
"nds32_expand_load_multiple",
"(",
"int",
"base_regno",
",",
"int",
"count",
",",
"rtx",
"base_addr",
",",
"rtx",
"basemem",
")",
"{",
"int",
"par_index",
";",
"int",
"offset",
";",
"rtx",
"result",
";",
"rtx",
"new_addr",
",",
"mem",
",",
"reg",
";",
"result",
"=",
"gen_rtx_PARALLEL",
"(",
"VOIDmode",
",",
"rtvec_alloc",
"(",
"count",
")",
")",
";",
"for",
"(",
"par_index",
"=",
"0",
";",
"par_index",
"<",
"count",
";",
"par_index",
"++",
")",
"{",
"offset",
"=",
"par_index",
"*",
"4",
";",
"new_addr",
"=",
"plus_constant",
"(",
"Pmode",
",",
"base_addr",
",",
"offset",
")",
";",
"mem",
"=",
"adjust_automodify_address_nv",
"(",
"basemem",
",",
"SImode",
",",
"new_addr",
",",
"offset",
")",
";",
"reg",
"=",
"gen_rtx_REG",
"(",
"SImode",
",",
"base_regno",
"+",
"par_index",
")",
";",
"XVECEXP",
"(",
"result",
",",
"0",
",",
"par_index",
")",
"=",
"gen_rtx_SET",
"(",
"VOIDmode",
",",
"reg",
",",
"mem",
")",
";",
"}",
"return",
"result",
";",
"}",
"</s>"
] | [
"Functions",
"to",
"expand",
"load_multiple",
"and",
"store_multiple",
".",
"They",
"are",
"auxiliary",
"extern",
"functions",
"to",
"help",
"create",
"rtx",
"template",
".",
"Check",
"nds32-multiple.md",
"file",
"for",
"the",
"patterns",
"."
] | [
"nds32",
"0",
"4",
"0"
] | nds32-memory-manipulation2 | nds32_expand_load_multiple | nds32 | CPU | GCC | 29,537 | 122 | 1 | [] |
[
"<s>",
"bool",
"AArch64CallLowering",
"::",
"isEligibleForTailCallOptimization",
"(",
"MachineIRBuilder",
"&",
"MIRBuilder",
",",
"CallLoweringInfo",
"&",
"Info",
",",
"SmallVectorImpl",
"<",
"ArgInfo",
">",
"&",
"InArgs",
",",
"SmallVectorImpl",
"<",
"ArgInfo",
">",
"&",
"OutArgs",
")",
"const",
"{",
"if",
"(",
"!",
"Info",
".",
"IsTailCall",
")",
"return",
"false",
";",
"CallingConv",
"::",
"ID",
"CalleeCC",
"=",
"Info",
".",
"CallConv",
";",
"MachineFunction",
"&",
"MF",
"=",
"MIRBuilder",
".",
"getMF",
"(",
")",
";",
"const",
"Function",
"&",
"CallerF",
"=",
"MF",
".",
"getFunction",
"(",
")",
";",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"Attempting to lower call as tail call\\n\"",
")",
";",
"if",
"(",
"Info",
".",
"SwiftErrorVReg",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"... Cannot handle tail calls with swifterror yet.\\n\"",
")",
";",
"return",
"false",
";",
"}",
"if",
"(",
"!",
"mayTailCallThisCC",
"(",
"CalleeCC",
")",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"... Calling convention cannot be tail called.\\n\"",
")",
";",
"return",
"false",
";",
"}",
"if",
"(",
"any_of",
"(",
"CallerF",
".",
"args",
"(",
")",
",",
"[",
"]",
"(",
"const",
"Argument",
"&",
"A",
")",
"{",
"return",
"A",
".",
"hasByValAttr",
"(",
")",
"||",
"A",
".",
"hasInRegAttr",
"(",
")",
"||",
"A",
".",
"hasSwiftErrorAttr",
"(",
")",
";",
"}",
")",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"... Cannot tail call from callers with byval, \"",
"\"inreg, or swifterror arguments\\n\"",
")",
";",
"return",
"false",
";",
"}",
"if",
"(",
"Info",
".",
"Callee",
".",
"isGlobal",
"(",
")",
")",
"{",
"const",
"GlobalValue",
"*",
"GV",
"=",
"Info",
".",
"Callee",
".",
"getGlobal",
"(",
")",
";",
"const",
"Triple",
"&",
"TT",
"=",
"MF",
".",
"getTarget",
"(",
")",
".",
"getTargetTriple",
"(",
")",
";",
"if",
"(",
"GV",
"->",
"hasExternalWeakLinkage",
"(",
")",
"&&",
"(",
"!",
"TT",
".",
"isOSWindows",
"(",
")",
"||",
"TT",
".",
"isOSBinFormatELF",
"(",
")",
"||",
"TT",
".",
"isOSBinFormatMachO",
"(",
")",
")",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"... Cannot tail call externally-defined function \"",
"\"with weak linkage for this OS.\\n\"",
")",
";",
"return",
"false",
";",
"}",
"}",
"if",
"(",
"MF",
".",
"getTarget",
"(",
")",
".",
"Options",
".",
"GuaranteedTailCallOpt",
")",
"return",
"canGuaranteeTCO",
"(",
"CalleeCC",
")",
"&&",
"CalleeCC",
"==",
"CallerF",
".",
"getCallingConv",
"(",
")",
";",
"assert",
"(",
"(",
"!",
"Info",
".",
"IsVarArg",
"||",
"CalleeCC",
"==",
"CallingConv",
"::",
"C",
")",
"&&",
"\"Unexpected variadic calling convention\"",
")",
";",
"if",
"(",
"!",
"doCallerAndCalleePassArgsTheSameWay",
"(",
"Info",
",",
"MF",
",",
"InArgs",
")",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"... Caller and callee have incompatible calling conventions.\\n\"",
")",
";",
"return",
"false",
";",
"}",
"if",
"(",
"!",
"areCalleeOutgoingArgsTailCallable",
"(",
"Info",
",",
"MF",
",",
"OutArgs",
")",
")",
"return",
"false",
";",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"... Call is eligible for tail call optimization.\\n\"",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"call",
"can",
"be",
"lowered",
"as",
"a",
"tail",
"call",
"."
] | [
"AArch64",
"AArch64",
"\"Attempting to lower call as tail call\\n\"",
"\"... Cannot handle tail calls with swifterror yet.\\n\"",
"\"... Calling convention cannot be tail called.\\n\"",
"\"... Cannot tail call from callers with byval, \"",
"\"inreg, or swifterror arguments\\n\"",
"\"... Cannot tail call externally-defined function \"",
"\"with weak linkage for this OS.\\n\"",
"\"Unexpected variadic calling convention\"",
"\"... Caller and callee have incompatible calling conventions.\\n\"",
"\"... Call is eligible for tail call optimization.\\n\""
] | AArch64CallLowering12 | isEligibleForTailCallOptimization | AArch64 | CPU | LLVM | 29,538 | 358 | 1 | [] |
[
"<s>",
"bool",
"X86CallLowering",
"::",
"lowerReturn",
"(",
"MachineIRBuilder",
"&",
"MIRBuilder",
",",
"const",
"Value",
"*",
"Val",
",",
"unsigned",
"VReg",
")",
"const",
"{",
"assert",
"(",
"(",
"(",
"Val",
"&&",
"VReg",
")",
"||",
"(",
"!",
"Val",
"&&",
"!",
"VReg",
")",
")",
"&&",
"\"Return value without a vreg\"",
")",
";",
"auto",
"MIB",
"=",
"MIRBuilder",
".",
"buildInstrNoInsert",
"(",
"X86",
"::",
"RET",
")",
".",
"addImm",
"(",
"0",
")",
";",
"if",
"(",
"VReg",
")",
"{",
"MachineFunction",
"&",
"MF",
"=",
"MIRBuilder",
".",
"getMF",
"(",
")",
";",
"MachineRegisterInfo",
"&",
"MRI",
"=",
"MF",
".",
"getRegInfo",
"(",
")",
";",
"auto",
"&",
"DL",
"=",
"MF",
".",
"getDataLayout",
"(",
")",
";",
"const",
"Function",
"&",
"F",
"=",
"*",
"MF",
".",
"getFunction",
"(",
")",
";",
"ArgInfo",
"OrigArg",
"{",
"VReg",
",",
"Val",
"->",
"getType",
"(",
")",
"}",
";",
"setArgFlags",
"(",
"OrigArg",
",",
"AttributeSet",
"::",
"ReturnIndex",
",",
"DL",
",",
"F",
")",
";",
"SmallVector",
"<",
"ArgInfo",
",",
"8",
">",
"SplitArgs",
";",
"splitToValueTypes",
"(",
"OrigArg",
",",
"SplitArgs",
",",
"DL",
",",
"MRI",
",",
"[",
"&",
"]",
"(",
"ArrayRef",
"<",
"unsigned",
">",
"Regs",
",",
"ArrayRef",
"<",
"uint64_t",
">",
"Offsets",
")",
"{",
"MIRBuilder",
".",
"buildExtract",
"(",
"Regs",
",",
"Offsets",
",",
"VReg",
")",
";",
"}",
")",
";",
"FuncReturnHandler",
"Handler",
"(",
"MIRBuilder",
",",
"MRI",
",",
"MIB",
",",
"RetCC_X86",
")",
";",
"if",
"(",
"!",
"handleAssignments",
"(",
"MIRBuilder",
",",
"SplitArgs",
",",
"Handler",
")",
")",
"return",
"false",
";",
"}",
"MIRBuilder",
".",
"insertInstr",
"(",
"MIB",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"This",
"hook",
"behaves",
"as",
"the",
"extended",
"lowerReturn",
"function",
",",
"but",
"for",
"targets",
"that",
"do",
"not",
"support",
"swifterror",
"value",
"promotion",
"."
] | [
"X86",
"X86",
"\"Return value without a vreg\"",
"X86::RET",
"0",
"8",
"X86"
] | X86CallLowering16 | lowerReturn | X86 | CPU | LLVM | 29,539 | 217 | 1 | [] |
[
"<s>",
"bool",
"AMDGPUCFGStructurizer",
"::",
"isReturnBlock",
"(",
"MachineBasicBlock",
"*",
"MBB",
")",
"{",
"MachineInstr",
"*",
"MI",
"=",
"getReturnInstr",
"(",
"MBB",
")",
";",
"bool",
"IsReturn",
"=",
"MBB",
"->",
"succ_empty",
"(",
")",
";",
"if",
"(",
"MI",
")",
"assert",
"(",
"IsReturn",
")",
";",
"else",
"if",
"(",
"IsReturn",
")",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"BB\"",
"<<",
"MBB",
"->",
"getNumber",
"(",
")",
"<<",
"\" is return block without RETURN instr\\n\"",
";",
")",
";",
"return",
"IsReturn",
";",
"}",
"</s>"
] | [
"Convenience",
"function",
"that",
"returns",
"true",
"if",
"the",
"block",
"ends",
"in",
"a",
"return",
"instruction",
"."
] | [
"AMDGPU",
"AMDGPU",
"\"BB\"",
"\" is return block without RETURN instr\\n\""
] | AMDILCFGStructurizer10 | isReturnBlock | AMDGPU | GPU | LLVM | 29,540 | 64 | 1 | [] |
[
"<s>",
"EVT",
"X86TargetLowering",
"::",
"getOptimalMemOpType",
"(",
"uint64_t",
"Size",
",",
"unsigned",
"DstAlign",
",",
"unsigned",
"SrcAlign",
",",
"bool",
"NonScalarIntSafe",
",",
"bool",
"MemcpyStrSrc",
",",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"const",
"Function",
"*",
"F",
"=",
"MF",
".",
"getFunction",
"(",
")",
";",
"if",
"(",
"NonScalarIntSafe",
"&&",
"!",
"F",
"->",
"hasFnAttr",
"(",
"Attribute",
"::",
"NoImplicitFloat",
")",
")",
"{",
"if",
"(",
"Size",
">=",
"16",
"&&",
"(",
"Subtarget",
"->",
"isUnalignedMemAccessFast",
"(",
")",
"||",
"(",
"(",
"DstAlign",
"==",
"0",
"||",
"DstAlign",
">=",
"16",
")",
"&&",
"(",
"SrcAlign",
"==",
"0",
"||",
"SrcAlign",
">=",
"16",
")",
")",
")",
"&&",
"Subtarget",
"->",
"getStackAlignment",
"(",
")",
">=",
"16",
")",
"{",
"if",
"(",
"Subtarget",
"->",
"hasAVX",
"(",
")",
"&&",
"Subtarget",
"->",
"getStackAlignment",
"(",
")",
">=",
"32",
")",
"return",
"MVT",
"::",
"v8f32",
";",
"if",
"(",
"Subtarget",
"->",
"hasXMMInt",
"(",
")",
")",
"return",
"MVT",
"::",
"v4i32",
";",
"if",
"(",
"Subtarget",
"->",
"hasXMM",
"(",
")",
")",
"return",
"MVT",
"::",
"v4f32",
";",
"}",
"else",
"if",
"(",
"!",
"MemcpyStrSrc",
"&&",
"Size",
">=",
"8",
"&&",
"!",
"Subtarget",
"->",
"is64Bit",
"(",
")",
"&&",
"Subtarget",
"->",
"getStackAlignment",
"(",
")",
">=",
"8",
"&&",
"Subtarget",
"->",
"hasXMMInt",
"(",
")",
")",
"{",
"return",
"MVT",
"::",
"f64",
";",
"}",
"}",
"if",
"(",
"Subtarget",
"->",
"is64Bit",
"(",
")",
"&&",
"Size",
">=",
"8",
")",
"return",
"MVT",
"::",
"i64",
";",
"return",
"MVT",
"::",
"i32",
";",
"}",
"</s>"
] | [
"It",
"returns",
"EVT",
":",
":Other",
"if",
"the",
"type",
"should",
"be",
"determined",
"using",
"generic",
"target-independent",
"logic",
"."
] | [
"X86",
"X86",
"16",
"0",
"16",
"0",
"16",
"16",
"32",
"MVT::v8f32",
"MVT::v4i32",
"MVT::v4f32",
"8",
"8",
"MVT::f64",
"8",
"MVT::i64",
"MVT::i32"
] | X86ISelLowering191 | getOptimalMemOpType | X86 | CPU | LLVM | 29,541 | 207 | 1 | [] |
[
"<s>",
"void",
"AMDGPUInliner",
"::",
"getAnalysisUsage",
"(",
"AnalysisUsage",
"&",
"AU",
")",
"const",
"{",
"AU",
".",
"addRequired",
"<",
"TargetTransformInfoWrapperPass",
">",
"(",
")",
";",
"LegacyInlinerBase",
"::",
"getAnalysisUsage",
"(",
"AU",
")",
";",
"}",
"</s>"
] | [
"getAnalysisUsage",
"-",
"Subclasses",
"that",
"override",
"getAnalysisUsage",
"must",
"call",
"this",
"."
] | [
"AMDGPU",
"AMDGPU"
] | AMDGPUInline | getAnalysisUsage | AMDGPU | GPU | LLVM | 29,542 | 28 | 1 | [] |
[
"<s>",
"const",
"HexagonSubtarget",
"*",
"getSubtargetImpl",
"(",
")",
"const",
"override",
"{",
"return",
"&",
"Subtarget",
";",
"}",
"</s>"
] | [
"Virtual",
"method",
"implemented",
"by",
"subclasses",
"that",
"returns",
"a",
"reference",
"to",
"that",
"target",
"'s",
"TargetSubtargetInfo-derived",
"member",
"variable",
"."
] | [
"Hexagon",
"Hexagon"
] | HexagonTargetMachine | getSubtargetImpl | Hexagon | DSP | LLVM | 29,543 | 14 | 1 | [] |
[
"<s>",
"void",
"tilegx_function_profiler",
"(",
"FILE",
"*",
"file",
",",
"int",
"labelno",
"ATTRIBUTE_UNUSED",
")",
"{",
"if",
"(",
"tilegx_in_bundle",
")",
"{",
"fprintf",
"(",
"file",
",",
"\"\\t}\\n\"",
")",
";",
"}",
"if",
"(",
"flag_pic",
")",
"{",
"fprintf",
"(",
"file",
",",
"\"\\t{\\n\"",
"\"\\tmove\\tr10, lr\\n\"",
"\"\\tjal\\tplt(%s)\\n\"",
"\"\\t}\\n\"",
",",
"MCOUNT_NAME",
")",
";",
"}",
"else",
"{",
"fprintf",
"(",
"file",
",",
"\"\\t{\\n\"",
"\"\\tmove\\tr10, lr\\n\"",
"\"\\tjal\\t%s\\n\"",
"\"\\t}\\n\"",
",",
"MCOUNT_NAME",
")",
";",
"}",
"tilegx_in_bundle",
"=",
"false",
";",
"}",
"</s>"
] | [
"Output",
"assembler",
"code",
"to",
"FILE",
"to",
"increment",
"profiler",
"label",
"#",
"LABELNO",
"for",
"profiling",
"a",
"function",
"entry",
"."
] | [
"tilegx",
"\"\\t}\\n\"",
"\"\\t{\\n\"",
"\"\\tmove\\tr10, lr\\n\"",
"\"\\tjal\\tplt(%s)\\n\"",
"\"\\t}\\n\"",
"\"\\t{\\n\"",
"\"\\tmove\\tr10, lr\\n\"",
"\"\\tjal\\t%s\\n\"",
"\"\\t}\\n\""
] | tilegx2 | tilegx_function_profiler | tilegx | VLIW | GCC | 29,544 | 63 | 1 | [] |
[
"<s>",
"void",
"ix86_expand_round_sse4",
"(",
"rtx",
"op0",
",",
"rtx",
"op1",
")",
"{",
"machine_mode",
"mode",
"=",
"GET_MODE",
"(",
"op0",
")",
";",
"rtx",
"e1",
",",
"e2",
",",
"res",
",",
"half",
";",
"const",
"struct",
"real_format",
"*",
"fmt",
";",
"REAL_VALUE_TYPE",
"pred_half",
",",
"half_minus_pred_half",
";",
"rtx",
"(",
"*",
"gen_copysign",
")",
"(",
"rtx",
",",
"rtx",
",",
"rtx",
")",
";",
"rtx",
"(",
"*",
"gen_round",
")",
"(",
"rtx",
",",
"rtx",
",",
"rtx",
")",
";",
"switch",
"(",
"mode",
")",
"{",
"case",
"SFmode",
":",
"gen_copysign",
"=",
"gen_copysignsf3",
";",
"gen_round",
"=",
"gen_sse4_1_roundsf2",
";",
"break",
";",
"case",
"DFmode",
":",
"gen_copysign",
"=",
"gen_copysigndf3",
";",
"gen_round",
"=",
"gen_sse4_1_rounddf2",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"fmt",
"=",
"REAL_MODE_FORMAT",
"(",
"mode",
")",
";",
"real_2expN",
"(",
"&",
"half_minus_pred_half",
",",
"-",
"(",
"fmt",
"->",
"p",
")",
"-",
"1",
",",
"mode",
")",
";",
"REAL_ARITHMETIC",
"(",
"pred_half",
",",
"MINUS_EXPR",
",",
"dconsthalf",
",",
"half_minus_pred_half",
")",
";",
"half",
"=",
"const_double_from_real_value",
"(",
"pred_half",
",",
"mode",
")",
";",
"e1",
"=",
"gen_reg_rtx",
"(",
"mode",
")",
";",
"emit_insn",
"(",
"gen_copysign",
"(",
"e1",
",",
"half",
",",
"op1",
")",
")",
";",
"e2",
"=",
"expand_simple_binop",
"(",
"mode",
",",
"PLUS",
",",
"op1",
",",
"e1",
",",
"NULL_RTX",
",",
"0",
",",
"OPTAB_DIRECT",
")",
";",
"res",
"=",
"gen_reg_rtx",
"(",
"mode",
")",
";",
"emit_insn",
"(",
"gen_round",
"(",
"res",
",",
"e2",
",",
"GEN_INT",
"(",
"ROUND_TRUNC",
")",
")",
")",
";",
"emit_move_insn",
"(",
"op0",
",",
"res",
")",
";",
"}",
"</s>"
] | [
"Expand",
"SSE",
"sequence",
"for",
"computing",
"round",
"from",
"OP1",
"storing",
"into",
"OP0",
"using",
"sse4",
"round",
"insn",
"."
] | [
"i386",
"1",
"0"
] | i3864 | ix86_expand_round_sse4 | i386 | CPU | GCC | 29,545 | 214 | 1 | [] |
[
"<s>",
"void",
"ARMPassConfig",
"::",
"addPreEmitPass",
"(",
")",
"{",
"addPass",
"(",
"createThumb2SizeReductionPass",
"(",
")",
")",
";",
"if",
"(",
"getARMSubtarget",
"(",
")",
".",
"isThumb2",
"(",
")",
")",
"addPass",
"(",
"&",
"UnpackMachineBundlesID",
")",
";",
"addPass",
"(",
"createARMOptimizeBarriersPass",
"(",
")",
")",
";",
"if",
"(",
"getARMSubtarget",
"(",
")",
".",
"useConstIslands",
"(",
")",
")",
"addPass",
"(",
"createARMConstantIslandPass",
"(",
")",
")",
";",
"if",
"(",
"getARMSubtarget",
"(",
")",
".",
"isTargetNaCl",
"(",
")",
")",
"{",
"addPass",
"(",
"createARMNaClRewritePass",
"(",
")",
")",
";",
"}",
"}",
"</s>"
] | [
"This",
"pass",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"immediately",
"before",
"machine",
"code",
"is",
"emitted",
"."
] | [
"ARM",
"ARM",
"ARM",
"ARM",
"ARM",
"ARM",
"ARM",
"ARM"
] | ARMTargetMachine90 | addPreEmitPass | ARM | CPU | LLVM | 29,546 | 74 | 1 | [] |
[
"<s>",
"bool",
"X86OptimizeLEAPass",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"bool",
"Changed",
"=",
"false",
";",
"if",
"(",
"DisableX86LEAOpt",
"||",
"skipFunction",
"(",
"MF",
".",
"getFunction",
"(",
")",
")",
")",
"return",
"false",
";",
"MRI",
"=",
"&",
"MF",
".",
"getRegInfo",
"(",
")",
";",
"TII",
"=",
"MF",
".",
"getSubtarget",
"<",
"X86Subtarget",
">",
"(",
")",
".",
"getInstrInfo",
"(",
")",
";",
"TRI",
"=",
"MF",
".",
"getSubtarget",
"<",
"X86Subtarget",
">",
"(",
")",
".",
"getRegisterInfo",
"(",
")",
";",
"for",
"(",
"auto",
"&",
"MBB",
":",
"MF",
")",
"{",
"MemOpMap",
"LEAs",
";",
"InstrPos",
".",
"clear",
"(",
")",
";",
"findLEAs",
"(",
"MBB",
",",
"LEAs",
")",
";",
"if",
"(",
"LEAs",
".",
"empty",
"(",
")",
")",
"continue",
";",
"Changed",
"|=",
"removeRedundantLEAs",
"(",
"LEAs",
")",
";",
"if",
"(",
"MF",
".",
"getFunction",
"(",
")",
".",
"hasOptSize",
"(",
")",
")",
"Changed",
"|=",
"removeRedundantAddrCalc",
"(",
"LEAs",
")",
";",
"}",
"return",
"Changed",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"X86",
"X86",
"X86",
"X86",
"X86"
] | X86OptimizeLEAs20 | runOnMachineFunction | X86 | CPU | LLVM | 29,547 | 136 | 1 | [] |
[
"<s>",
"bool",
"s390_rel_address_ok_p",
"(",
"rtx",
"symbol_ref",
")",
"{",
"tree",
"decl",
";",
"if",
"(",
"symbol_ref",
"==",
"s390_got_symbol",
"(",
")",
"||",
"CONSTANT_POOL_ADDRESS_P",
"(",
"symbol_ref",
")",
")",
"return",
"true",
";",
"decl",
"=",
"SYMBOL_REF_DECL",
"(",
"symbol_ref",
")",
";",
"if",
"(",
"!",
"flag_pic",
"||",
"SYMBOL_REF_LOCAL_P",
"(",
"symbol_ref",
")",
")",
"return",
"(",
"s390_pic_data_is_text_relative",
"||",
"(",
"decl",
"&&",
"TREE_CODE",
"(",
"decl",
")",
"==",
"FUNCTION_DECL",
")",
")",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"it",
"ok",
"to",
"use",
"SYMBOL_REF",
"in",
"a",
"relative",
"address",
"."
] | [
"s390"
] | s390 | s390_rel_address_ok_p | s390 | MPU | GCC | 29,548 | 63 | 1 | [] |
[
"<s>",
"static",
"bool",
"classof",
"(",
"const",
"AbstractAttribute",
"*",
"AA",
")",
"{",
"return",
"(",
"AA",
"->",
"getIdAddr",
"(",
")",
"==",
"&",
"ID",
")",
";",
"}",
"</s>"
] | [
"Methods",
"for",
"support",
"type",
"inquiry",
"through",
"isa",
",",
"cast",
",",
"and",
"dyn_cast",
":"
] | [
"AMDGPU"
] | AMDGPUAttributor | classof | AMDGPU | GPU | LLVM | 29,549 | 23 | 1 | [] |
[
"<s>",
"void",
"X86PassConfig",
"::",
"addPostRegAlloc",
"(",
")",
"{",
"if",
"(",
"CustomRegAlloc",
")",
"addPass",
"(",
"createX86RegisterAllocator",
"(",
")",
")",
";",
"addPass",
"(",
"createX86FloatingPointStackifierPass",
"(",
")",
")",
";",
"}",
"</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"
] | X86TargetMachine34 | addPostRegAlloc | X86 | CPU | LLVM | 29,550 | 26 | 1 | [] |
[
"<s>",
"void",
"setReg",
"(",
"unsigned",
"Reg",
")",
"{",
"assert",
"(",
"isRegBase",
"(",
")",
"&&",
"\"Invalid base register access!\"",
")",
";",
"Base",
".",
"Reg",
"=",
"Reg",
";",
"}",
"</s>"
] | [
"Assigns",
"the",
"associated",
"register",
"for",
"this",
"edge",
"."
] | [
"AArch64",
"\"Invalid base register access!\""
] | AArch64FastISel (2) | setReg | AArch64 | CPU | LLVM | 29,551 | 23 | 1 | [] |
[
"<s>",
"machine_mode",
"function_expander",
"::",
"mask_mode",
"(",
"void",
")",
"const",
"{",
"vector_type_index",
"mask_type_index",
"=",
"function_types",
"[",
"type",
".",
"index",
"]",
".",
"type_indexes",
"[",
"RVV_BASE_mask",
"]",
";",
"return",
"TYPE_MODE",
"(",
"builtin_types",
"[",
"mask_type_index",
"]",
".",
"vector",
")",
";",
"}",
"</s>"
] | [
"Return",
"the",
"machine_mode",
"of",
"the",
"corresponding",
"mask",
"type",
"."
] | [
"riscv"
] | riscv-vector-builtins | mask_mode | riscv | CPU | GCC | 29,552 | 36 | 1 | [] |
[
"<s>",
"bool",
"X86TTIImpl",
"::",
"areInlineCompatible",
"(",
"const",
"Function",
"*",
"Caller",
",",
"const",
"Function",
"*",
"Callee",
")",
"const",
"{",
"const",
"TargetMachine",
"&",
"TM",
"=",
"getTLI",
"(",
")",
"->",
"getTargetMachine",
"(",
")",
";",
"const",
"FeatureBitset",
"&",
"CallerBits",
"=",
"TM",
".",
"getSubtargetImpl",
"(",
"*",
"Caller",
")",
"->",
"getFeatureBits",
"(",
")",
";",
"const",
"FeatureBitset",
"&",
"CalleeBits",
"=",
"TM",
".",
"getSubtargetImpl",
"(",
"*",
"Callee",
")",
"->",
"getFeatureBits",
"(",
")",
";",
"FeatureBitset",
"RealCallerBits",
"=",
"CallerBits",
"&",
"~",
"InlineFeatureIgnoreList",
";",
"FeatureBitset",
"RealCalleeBits",
"=",
"CalleeBits",
"&",
"~",
"InlineFeatureIgnoreList",
";",
"return",
"(",
"RealCallerBits",
"&",
"RealCalleeBits",
")",
"==",
"RealCalleeBits",
";",
"}",
"</s>"
] | [
"Determine",
"whether",
"a",
"callee",
"with",
"the",
"given",
"TLI",
"can",
"be",
"inlined",
"into",
"caller",
"with",
"this",
"TLI",
",",
"based",
"on",
"'nobuiltin",
"'",
"attributes",
"."
] | [
"X86",
"X86"
] | X86TargetTransformInfo (2)1 | areInlineCompatible | X86 | CPU | LLVM | 29,553 | 90 | 1 | [] |
[
"<s>",
"SDValue",
"AArch64TargetLowering",
"::",
"BuildSDIVPow2",
"(",
"SDNode",
"*",
"N",
",",
"const",
"APInt",
"&",
"Divisor",
",",
"SelectionDAG",
"&",
"DAG",
",",
"SmallVectorImpl",
"<",
"SDNode",
"*",
">",
"&",
"Created",
")",
"const",
"{",
"AttributeList",
"Attr",
"=",
"DAG",
".",
"getMachineFunction",
"(",
")",
".",
"getFunction",
"(",
")",
".",
"getAttributes",
"(",
")",
";",
"if",
"(",
"isIntDivCheap",
"(",
"N",
"->",
"getValueType",
"(",
"0",
")",
",",
"Attr",
")",
")",
"return",
"SDValue",
"(",
"N",
",",
"0",
")",
";",
"EVT",
"VT",
"=",
"N",
"->",
"getValueType",
"(",
"0",
")",
";",
"if",
"(",
"VT",
".",
"isScalableVector",
"(",
")",
"||",
"Subtarget",
"->",
"useSVEForFixedLengthVectors",
"(",
")",
")",
"return",
"SDValue",
"(",
"N",
",",
"0",
")",
";",
"if",
"(",
"(",
"VT",
"!=",
"MVT",
"::",
"i32",
"&&",
"VT",
"!=",
"MVT",
"::",
"i64",
")",
"||",
"!",
"(",
"Divisor",
".",
"isPowerOf2",
"(",
")",
"||",
"Divisor",
".",
"isNegatedPowerOf2",
"(",
")",
")",
")",
"return",
"SDValue",
"(",
")",
";",
"SDLoc",
"DL",
"(",
"N",
")",
";",
"SDValue",
"N0",
"=",
"N",
"->",
"getOperand",
"(",
"0",
")",
";",
"unsigned",
"Lg2",
"=",
"Divisor",
".",
"countTrailingZeros",
"(",
")",
";",
"SDValue",
"Zero",
"=",
"DAG",
".",
"getConstant",
"(",
"0",
",",
"DL",
",",
"VT",
")",
";",
"SDValue",
"Pow2MinusOne",
"=",
"DAG",
".",
"getConstant",
"(",
"(",
"1ULL",
"<<",
"Lg2",
")",
"-",
"1",
",",
"DL",
",",
"VT",
")",
";",
"SDValue",
"CCVal",
";",
"SDValue",
"Cmp",
"=",
"getAArch64Cmp",
"(",
"N0",
",",
"Zero",
",",
"ISD",
"::",
"SETLT",
",",
"CCVal",
",",
"DAG",
",",
"DL",
")",
";",
"SDValue",
"Add",
"=",
"DAG",
".",
"getNode",
"(",
"ISD",
"::",
"ADD",
",",
"DL",
",",
"VT",
",",
"N0",
",",
"Pow2MinusOne",
")",
";",
"SDValue",
"CSel",
"=",
"DAG",
".",
"getNode",
"(",
"AArch64ISD",
"::",
"CSEL",
",",
"DL",
",",
"VT",
",",
"Add",
",",
"N0",
",",
"CCVal",
",",
"Cmp",
")",
";",
"Created",
".",
"push_back",
"(",
"Cmp",
".",
"getNode",
"(",
")",
")",
";",
"Created",
".",
"push_back",
"(",
"Add",
".",
"getNode",
"(",
")",
")",
";",
"Created",
".",
"push_back",
"(",
"CSel",
".",
"getNode",
"(",
")",
")",
";",
"SDValue",
"SRA",
"=",
"DAG",
".",
"getNode",
"(",
"ISD",
"::",
"SRA",
",",
"DL",
",",
"VT",
",",
"CSel",
",",
"DAG",
".",
"getConstant",
"(",
"Lg2",
",",
"DL",
",",
"MVT",
"::",
"i64",
")",
")",
";",
"if",
"(",
"Divisor",
".",
"isNonNegative",
"(",
")",
")",
"return",
"SRA",
";",
"Created",
".",
"push_back",
"(",
"SRA",
".",
"getNode",
"(",
")",
")",
";",
"return",
"DAG",
".",
"getNode",
"(",
"ISD",
"::",
"SUB",
",",
"DL",
",",
"VT",
",",
"DAG",
".",
"getConstant",
"(",
"0",
",",
"DL",
",",
"VT",
")",
",",
"SRA",
")",
";",
"}",
"</s>"
] | [
"Targets",
"may",
"override",
"this",
"function",
"to",
"provide",
"custom",
"SDIV",
"lowering",
"for",
"power-of-2",
"denominators",
"."
] | [
"AArch64",
"AArch64",
"0",
"0",
"0",
"0",
"MVT::i32",
"MVT::i64",
"0",
"0",
"1ULL",
"1",
"AArch64",
"ISD::SETLT",
"ISD::ADD",
"AArch64ISD::CSEL",
"ISD::SRA",
"MVT::i64",
"ISD::SUB",
"0"
] | AArch64ISelLowering168 | BuildSDIVPow2 | AArch64 | CPU | LLVM | 29,554 | 375 | 1 | [] |
[
"<s>",
"bool",
"PPCSubtarget",
"::",
"enablePostRAScheduler",
"(",
"CodeGenOpt",
"::",
"Level",
"OptLevel",
",",
"TargetSubtargetInfo",
"::",
"AntiDepBreakMode",
"&",
"Mode",
",",
"RegClassVector",
"&",
"CriticalPathRCs",
")",
"const",
"{",
"if",
"(",
"DarwinDirective",
"==",
"PPC",
"::",
"DIR_440",
"||",
"DarwinDirective",
"==",
"PPC",
"::",
"DIR_A2",
")",
"Mode",
"=",
"TargetSubtargetInfo",
"::",
"ANTIDEP_ALL",
";",
"else",
"Mode",
"=",
"TargetSubtargetInfo",
"::",
"ANTIDEP_CRITICAL",
";",
"CriticalPathRCs",
".",
"clear",
"(",
")",
";",
"if",
"(",
"isPPC64",
"(",
")",
")",
"CriticalPathRCs",
".",
"push_back",
"(",
"&",
"PPC",
"::",
"G8RCRegClass",
")",
";",
"else",
"CriticalPathRCs",
".",
"push_back",
"(",
"&",
"PPC",
"::",
"GPRCRegClass",
")",
";",
"return",
"OptLevel",
">=",
"CodeGenOpt",
"::",
"Default",
";",
"}",
"</s>"
] | [
"True",
"if",
"the",
"subtarget",
"should",
"run",
"a",
"scheduler",
"after",
"register",
"allocation",
"."
] | [
"PowerPC",
"PPC",
"PPC::DIR_440",
"PPC::DIR_A2",
"PPC",
"PPC::G8RCRegClass",
"PPC::GPRCRegClass"
] | PPCSubtarget46 | enablePostRAScheduler | PowerPC | CPU | LLVM | 29,555 | 90 | 1 | [] |
[
"<s>",
"static",
"void",
"msp430_encode_section_info",
"(",
"tree",
"decl",
",",
"rtx",
"rtl",
",",
"int",
"first",
")",
"{",
"rtx",
"symbol",
";",
"default_encode_section_info",
"(",
"decl",
",",
"rtl",
",",
"first",
")",
";",
"if",
"(",
"!",
"MEM_P",
"(",
"rtl",
")",
")",
"return",
";",
"symbol",
"=",
"XEXP",
"(",
"rtl",
",",
"0",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"symbol",
")",
"!=",
"SYMBOL_REF",
")",
"return",
";",
"if",
"(",
"VAR_P",
"(",
"decl",
")",
"&&",
"(",
"TREE_STATIC",
"(",
"decl",
")",
"||",
"DECL_EXTERNAL",
"(",
"decl",
")",
")",
"&&",
"msp430_var_in_low_mem",
"(",
"decl",
")",
")",
"SYMBOL_REF_FLAGS",
"(",
"symbol",
")",
"=",
"SYMBOL_FLAG_LOW_MEM",
";",
"}",
"</s>"
] | [
"Encode",
"whether",
"a",
"SYMBOL_REF",
"is",
"definitely",
"in",
"the",
"lower",
"memory",
"region",
"."
] | [
"msp430",
"0"
] | msp430 | msp430_encode_section_info | msp430 | MPU | GCC | 29,556 | 88 | 1 | [] |
[
"<s>",
"PreservedAnalyses",
"BPFPreserveDITypePass",
"::",
"run",
"(",
"Function",
"&",
"F",
",",
"FunctionAnalysisManager",
"&",
"AM",
")",
"{",
"return",
"BPFPreserveDITypeImpl",
"(",
"F",
")",
"?",
"PreservedAnalyses",
"::",
"none",
"(",
")",
":",
"PreservedAnalyses",
"::",
"all",
"(",
")",
";",
"}",
"</s>"
] | [
"Run",
"the",
"analysis",
"pass",
"over",
"a",
"function",
"and",
"produce",
"a",
"dominator",
"tree",
"."
] | [
"BPF",
"BPF",
"BPF"
] | BPFPreserveDIType | run | BPF | Virtual ISA | LLVM | 29,557 | 33 | 1 | [] |
[
"<s>",
"static",
"void",
"sh_insert_attributes",
"(",
"tree",
"node",
",",
"tree",
"*",
"attributes",
")",
"{",
"tree",
"attrs",
";",
"if",
"(",
"TREE_CODE",
"(",
"node",
")",
"!=",
"FUNCTION_DECL",
")",
"return",
";",
"if",
"(",
"!",
"DECL_P",
"(",
"node",
")",
")",
"return",
";",
"*",
"sh_deferred_function_attributes_tail",
"=",
"*",
"attributes",
";",
"attrs",
"=",
"sh_deferred_function_attributes",
";",
"if",
"(",
"!",
"attrs",
")",
"return",
";",
"if",
"(",
"!",
"lookup_attribute",
"(",
"\"interrupt_handler\"",
",",
"attrs",
")",
"&&",
"!",
"lookup_attribute",
"(",
"\"interrupt_handler\"",
",",
"DECL_ATTRIBUTES",
"(",
"node",
")",
")",
")",
"{",
"if",
"(",
"lookup_attribute",
"(",
"\"trapa_handler\"",
",",
"attrs",
")",
"!=",
"NULL_TREE",
")",
"attrs",
"=",
"tree_cons",
"(",
"get_identifier",
"(",
"\"interrupt_handler\"",
")",
",",
"NULL_TREE",
",",
"attrs",
")",
";",
"else",
"if",
"(",
"lookup_attribute",
"(",
"\"sp_switch\"",
",",
"attrs",
")",
"||",
"lookup_attribute",
"(",
"\"trap_exit\"",
",",
"attrs",
")",
"||",
"lookup_attribute",
"(",
"\"nosave_low_regs\"",
",",
"attrs",
")",
")",
"{",
"tree",
"*",
"tail",
";",
"for",
"(",
"tail",
"=",
"attributes",
";",
"attrs",
";",
"attrs",
"=",
"TREE_CHAIN",
"(",
"attrs",
")",
")",
"{",
"if",
"(",
"is_attribute_p",
"(",
"\"sp_switch\"",
",",
"TREE_PURPOSE",
"(",
"attrs",
")",
")",
"||",
"is_attribute_p",
"(",
"\"trap_exit\"",
",",
"TREE_PURPOSE",
"(",
"attrs",
")",
")",
"||",
"is_attribute_p",
"(",
"\"nosave_low_regs\"",
",",
"TREE_PURPOSE",
"(",
"attrs",
")",
")",
")",
"warning",
"(",
"OPT_Wattributes",
",",
"\"%qs attribute only applies to interrupt functions\"",
",",
"IDENTIFIER_POINTER",
"(",
"TREE_PURPOSE",
"(",
"attrs",
")",
")",
")",
";",
"else",
"{",
"*",
"tail",
"=",
"tree_cons",
"(",
"TREE_PURPOSE",
"(",
"attrs",
")",
",",
"NULL_TREE",
",",
"NULL_TREE",
")",
";",
"tail",
"=",
"&",
"TREE_CHAIN",
"(",
"*",
"tail",
")",
";",
"}",
"}",
"attrs",
"=",
"*",
"attributes",
";",
"}",
"}",
"*",
"attributes",
"=",
"attrs",
";",
"sh_deferred_function_attributes",
"=",
"NULL_TREE",
";",
"sh_deferred_function_attributes_tail",
"=",
"&",
"sh_deferred_function_attributes",
";",
"return",
";",
"}",
"</s>"
] | [
"Generate",
"'handle_interrupt",
"'",
"attribute",
"for",
"decls"
] | [
"sh",
"\"interrupt_handler\"",
"\"interrupt_handler\"",
"\"trapa_handler\"",
"\"interrupt_handler\"",
"\"sp_switch\"",
"\"trap_exit\"",
"\"nosave_low_regs\"",
"\"sp_switch\"",
"\"trap_exit\"",
"\"nosave_low_regs\"",
"\"%qs attribute only applies to interrupt functions\""
] | sh3 | sh_insert_attributes | sh | CPU | GCC | 29,558 | 244 | 1 | [] |
[
"<s>",
"const",
"MCPhysReg",
"*",
"AArch64RegisterInfo",
"::",
"getCalleeSavedRegs",
"(",
"const",
"MachineFunction",
"*",
"MF",
")",
"const",
"{",
"assert",
"(",
"MF",
"&&",
"\"Invalid MachineFunction pointer.\"",
")",
";",
"if",
"(",
"MF",
"->",
"getFunction",
"(",
")",
".",
"getCallingConv",
"(",
")",
"==",
"CallingConv",
"::",
"GHC",
")",
"return",
"CSR_AArch64_NoRegs_SaveList",
";",
"if",
"(",
"MF",
"->",
"getFunction",
"(",
")",
".",
"getCallingConv",
"(",
")",
"==",
"CallingConv",
"::",
"AnyReg",
")",
"return",
"CSR_AArch64_AllRegs_SaveList",
";",
"if",
"(",
"MF",
"->",
"getSubtarget",
"<",
"AArch64Subtarget",
">",
"(",
")",
".",
"isTargetDarwin",
"(",
")",
")",
"return",
"getDarwinCalleeSavedRegs",
"(",
"MF",
")",
";",
"if",
"(",
"MF",
"->",
"getFunction",
"(",
")",
".",
"getCallingConv",
"(",
")",
"==",
"CallingConv",
"::",
"CFGuard_Check",
")",
"return",
"CSR_Win_AArch64_CFGuard_Check_SaveList",
";",
"if",
"(",
"MF",
"->",
"getSubtarget",
"<",
"AArch64Subtarget",
">",
"(",
")",
".",
"isTargetWindows",
"(",
")",
")",
"return",
"CSR_Win_AArch64_AAPCS_SaveList",
";",
"if",
"(",
"MF",
"->",
"getFunction",
"(",
")",
".",
"getCallingConv",
"(",
")",
"==",
"CallingConv",
"::",
"AArch64_VectorCall",
")",
"return",
"CSR_AArch64_AAVPCS_SaveList",
";",
"if",
"(",
"MF",
"->",
"getFunction",
"(",
")",
".",
"getCallingConv",
"(",
")",
"==",
"CallingConv",
"::",
"AArch64_SVE_VectorCall",
")",
"return",
"CSR_AArch64_SVE_AAPCS_SaveList",
";",
"if",
"(",
"MF",
"->",
"getSubtarget",
"<",
"AArch64Subtarget",
">",
"(",
")",
".",
"getTargetLowering",
"(",
")",
"->",
"supportSwiftError",
"(",
")",
"&&",
"MF",
"->",
"getFunction",
"(",
")",
".",
"getAttributes",
"(",
")",
".",
"hasAttrSomewhere",
"(",
"Attribute",
"::",
"SwiftError",
")",
")",
"return",
"CSR_AArch64_AAPCS_SwiftError_SaveList",
";",
"if",
"(",
"MF",
"->",
"getFunction",
"(",
")",
".",
"getCallingConv",
"(",
")",
"==",
"CallingConv",
"::",
"PreserveMost",
")",
"return",
"CSR_AArch64_RT_MostRegs_SaveList",
";",
"if",
"(",
"MF",
"->",
"getFunction",
"(",
")",
".",
"getCallingConv",
"(",
")",
"==",
"CallingConv",
"::",
"Win64",
")",
"return",
"CSR_AArch64_AAPCS_X18_SaveList",
";",
"return",
"CSR_AArch64_AAPCS_SaveList",
";",
"}",
"</s>"
] | [
"Code",
"Generation",
"virtual",
"methods",
"..."
] | [
"AArch64",
"AArch64",
"\"Invalid MachineFunction pointer.\"",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64"
] | AArch64RegisterInfo23 | getCalleeSavedRegs | AArch64 | CPU | LLVM | 29,559 | 236 | 1 | [] |
[
"<s>",
"MCObjectWriter",
"*",
"createObjectWriter",
"(",
"raw_ostream",
"&",
"OS",
")",
"const",
"override",
"{",
"StringRef",
"CPU",
"(",
"\"HexagonV4\"",
")",
";",
"return",
"createHexagonELFObjectWriter",
"(",
"OS",
",",
"OSABI",
",",
"CPU",
")",
";",
"}",
"</s>"
] | [
"Create",
"a",
"new",
"MCObjectWriter",
"instance",
"for",
"use",
"by",
"the",
"assembler",
"backend",
"to",
"emit",
"the",
"final",
"object",
"file",
"."
] | [
"Hexagon",
"\"HexagonV4\"",
"Hexagon"
] | HexagonAsmBackend13 | createObjectWriter | Hexagon | DSP | LLVM | 29,560 | 28 | 1 | [] |
[
"<s>",
"void",
"AVRMCCodeEmitter",
"::",
"encodeInstruction",
"(",
"const",
"MCInst",
"&",
"MI",
",",
"raw_ostream",
"&",
"OS",
",",
"SmallVectorImpl",
"<",
"MCFixup",
">",
"&",
"Fixups",
",",
"const",
"MCSubtargetInfo",
"&",
"STI",
")",
"const",
"{",
"const",
"MCInstrDesc",
"&",
"Desc",
"=",
"MCII",
".",
"get",
"(",
"MI",
".",
"getOpcode",
"(",
")",
")",
";",
"unsigned",
"Size",
"=",
"Desc",
".",
"getSize",
"(",
")",
";",
"assert",
"(",
"Size",
">",
"0",
"&&",
"\"Instruction size cannot be zero\"",
")",
";",
"uint64_t",
"BinaryOpCode",
"=",
"getBinaryCodeForInstr",
"(",
"MI",
",",
"Fixups",
",",
"STI",
")",
";",
"emitInstruction",
"(",
"BinaryOpCode",
",",
"Size",
",",
"STI",
",",
"OS",
")",
";",
"}",
"</s>"
] | [
"Encode",
"the",
"given",
"Inst",
"to",
"bytes",
"and",
"append",
"to",
"CB",
"."
] | [
"AVR",
"AVR",
"0",
"\"Instruction size cannot be zero\""
] | AVRMCCodeEmitter | encodeInstruction | AVR | MPU | LLVM | 29,561 | 86 | 1 | [] |
[
"<s>",
"rtx",
"aarch64_expand_builtin",
"(",
"tree",
"exp",
",",
"rtx",
"target",
",",
"rtx",
"subtarget",
"ATTRIBUTE_UNUSED",
",",
"machine_mode",
"mode",
"ATTRIBUTE_UNUSED",
",",
"int",
"ignore",
"ATTRIBUTE_UNUSED",
")",
"{",
"tree",
"fndecl",
"=",
"TREE_OPERAND",
"(",
"CALL_EXPR_FN",
"(",
"exp",
")",
",",
"0",
")",
";",
"int",
"fcode",
"=",
"DECL_FUNCTION_CODE",
"(",
"fndecl",
")",
";",
"int",
"icode",
";",
"rtx",
"pat",
",",
"op0",
";",
"tree",
"arg0",
";",
"switch",
"(",
"fcode",
")",
"{",
"case",
"AARCH64_BUILTIN_GET_FPCR",
":",
"case",
"AARCH64_BUILTIN_SET_FPCR",
":",
"case",
"AARCH64_BUILTIN_GET_FPSR",
":",
"case",
"AARCH64_BUILTIN_SET_FPSR",
":",
"if",
"(",
"(",
"fcode",
"==",
"AARCH64_BUILTIN_GET_FPCR",
")",
"||",
"(",
"fcode",
"==",
"AARCH64_BUILTIN_GET_FPSR",
")",
")",
"{",
"icode",
"=",
"(",
"fcode",
"==",
"AARCH64_BUILTIN_GET_FPSR",
")",
"?",
"CODE_FOR_get_fpsr",
":",
"CODE_FOR_get_fpcr",
";",
"target",
"=",
"gen_reg_rtx",
"(",
"SImode",
")",
";",
"pat",
"=",
"GEN_FCN",
"(",
"icode",
")",
"(",
"target",
")",
";",
"}",
"else",
"{",
"target",
"=",
"NULL_RTX",
";",
"icode",
"=",
"(",
"fcode",
"==",
"AARCH64_BUILTIN_SET_FPSR",
")",
"?",
"CODE_FOR_set_fpsr",
":",
"CODE_FOR_set_fpcr",
";",
"arg0",
"=",
"CALL_EXPR_ARG",
"(",
"exp",
",",
"0",
")",
";",
"op0",
"=",
"force_reg",
"(",
"SImode",
",",
"expand_normal",
"(",
"arg0",
")",
")",
";",
"pat",
"=",
"GEN_FCN",
"(",
"icode",
")",
"(",
"op0",
")",
";",
"}",
"emit_insn",
"(",
"pat",
")",
";",
"return",
"target",
";",
"case",
"AARCH64_PAUTH_BUILTIN_AUTIA1716",
":",
"case",
"AARCH64_PAUTH_BUILTIN_PACIA1716",
":",
"case",
"AARCH64_PAUTH_BUILTIN_XPACLRI",
":",
"arg0",
"=",
"CALL_EXPR_ARG",
"(",
"exp",
",",
"0",
")",
";",
"op0",
"=",
"force_reg",
"(",
"Pmode",
",",
"expand_normal",
"(",
"arg0",
")",
")",
";",
"if",
"(",
"!",
"target",
")",
"target",
"=",
"gen_reg_rtx",
"(",
"Pmode",
")",
";",
"else",
"target",
"=",
"force_reg",
"(",
"Pmode",
",",
"target",
")",
";",
"emit_move_insn",
"(",
"target",
",",
"op0",
")",
";",
"if",
"(",
"fcode",
"==",
"AARCH64_PAUTH_BUILTIN_XPACLRI",
")",
"{",
"rtx",
"lr",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"R30_REGNUM",
")",
";",
"icode",
"=",
"CODE_FOR_xpaclri",
";",
"emit_move_insn",
"(",
"lr",
",",
"op0",
")",
";",
"emit_insn",
"(",
"GEN_FCN",
"(",
"icode",
")",
"(",
")",
")",
";",
"emit_move_insn",
"(",
"target",
",",
"lr",
")",
";",
"}",
"else",
"{",
"tree",
"arg1",
"=",
"CALL_EXPR_ARG",
"(",
"exp",
",",
"1",
")",
";",
"rtx",
"op1",
"=",
"force_reg",
"(",
"Pmode",
",",
"expand_normal",
"(",
"arg1",
")",
")",
";",
"icode",
"=",
"(",
"fcode",
"==",
"AARCH64_PAUTH_BUILTIN_PACIA1716",
"?",
"CODE_FOR_paci1716",
":",
"CODE_FOR_auti1716",
")",
";",
"rtx",
"x16_reg",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"R16_REGNUM",
")",
";",
"rtx",
"x17_reg",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"R17_REGNUM",
")",
";",
"emit_move_insn",
"(",
"x17_reg",
",",
"op0",
")",
";",
"emit_move_insn",
"(",
"x16_reg",
",",
"op1",
")",
";",
"emit_insn",
"(",
"GEN_FCN",
"(",
"icode",
")",
"(",
")",
")",
";",
"emit_move_insn",
"(",
"target",
",",
"x17_reg",
")",
";",
"}",
"return",
"target",
";",
"}",
"if",
"(",
"fcode",
">=",
"AARCH64_SIMD_BUILTIN_BASE",
"&&",
"fcode",
"<=",
"AARCH64_SIMD_BUILTIN_MAX",
")",
"return",
"aarch64_simd_expand_builtin",
"(",
"fcode",
",",
"exp",
",",
"target",
")",
";",
"else",
"if",
"(",
"fcode",
">=",
"AARCH64_CRC32_BUILTIN_BASE",
"&&",
"fcode",
"<=",
"AARCH64_CRC32_BUILTIN_MAX",
")",
"return",
"aarch64_crc32_expand_builtin",
"(",
"fcode",
",",
"exp",
",",
"target",
")",
";",
"if",
"(",
"fcode",
"==",
"AARCH64_BUILTIN_RSQRT_DF",
"||",
"fcode",
"==",
"AARCH64_BUILTIN_RSQRT_SF",
"||",
"fcode",
"==",
"AARCH64_BUILTIN_RSQRT_V2DF",
"||",
"fcode",
"==",
"AARCH64_BUILTIN_RSQRT_V2SF",
"||",
"fcode",
"==",
"AARCH64_BUILTIN_RSQRT_V4SF",
")",
"return",
"aarch64_expand_builtin_rsqrt",
"(",
"fcode",
",",
"exp",
",",
"target",
")",
";",
"gcc_unreachable",
"(",
")",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_EXPAND_BUILTIN",
"."
] | [
"aarch64",
"0",
"0",
"0",
"1"
] | aarch64-builtins4 | aarch64_expand_builtin | aarch64 | CPU | GCC | 29,562 | 450 | 1 | [] |
[
"<s>",
"static",
"void",
"aarch64_emit_post_barrier",
"(",
"enum",
"memmodel",
"model",
")",
"{",
"const",
"enum",
"memmodel",
"base_model",
"=",
"memmodel_base",
"(",
"model",
")",
";",
"if",
"(",
"is_mm_sync",
"(",
"model",
")",
"&&",
"(",
"base_model",
"==",
"MEMMODEL_ACQUIRE",
"||",
"base_model",
"==",
"MEMMODEL_ACQ_REL",
"||",
"base_model",
"==",
"MEMMODEL_SEQ_CST",
")",
")",
"{",
"emit_insn",
"(",
"gen_mem_thread_fence",
"(",
"GEN_INT",
"(",
"MEMMODEL_SEQ_CST",
")",
")",
")",
";",
"}",
"}",
"</s>"
] | [
"Emit",
"a",
"barrier",
",",
"that",
"is",
"appropriate",
"for",
"memory",
"model",
"MODEL",
",",
"at",
"the",
"end",
"of",
"a",
"sequence",
"implementing",
"an",
"atomic",
"operation",
"."
] | [
"aarch64"
] | aarch64 | aarch64_emit_post_barrier | aarch64 | CPU | GCC | 29,563 | 54 | 1 | [] |
[
"<s>",
"void",
"R600PassConfig",
"::",
"addPreEmitPass",
"(",
")",
"{",
"addPass",
"(",
"createR600MachineCFGStructurizerPass",
"(",
")",
")",
";",
"addPass",
"(",
"createR600ExpandSpecialInstrsPass",
"(",
")",
")",
";",
"addPass",
"(",
"&",
"FinalizeMachineBundlesID",
")",
";",
"addPass",
"(",
"createR600Packetizer",
"(",
")",
")",
";",
"addPass",
"(",
"createR600ControlFlowFinalizer",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"This",
"pass",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"immediately",
"before",
"machine",
"code",
"is",
"emitted",
"."
] | [
"AMDGPU",
"R600",
"R600",
"R600",
"R600",
"R600"
] | R600TargetMachine | addPreEmitPass | AMDGPU | GPU | LLVM | 29,564 | 42 | 1 | [] |
[
"<s>",
"SDValue",
"PPCTargetLowering",
"::",
"LowerCall",
"(",
"TargetLowering",
"::",
"CallLoweringInfo",
"&",
"CLI",
",",
"SmallVectorImpl",
"<",
"SDValue",
">",
"&",
"InVals",
")",
"const",
"{",
"SelectionDAG",
"&",
"DAG",
"=",
"CLI",
".",
"DAG",
";",
"SDLoc",
"&",
"dl",
"=",
"CLI",
".",
"DL",
";",
"SmallVectorImpl",
"<",
"ISD",
"::",
"OutputArg",
">",
"&",
"Outs",
"=",
"CLI",
".",
"Outs",
";",
"SmallVectorImpl",
"<",
"SDValue",
">",
"&",
"OutVals",
"=",
"CLI",
".",
"OutVals",
";",
"SmallVectorImpl",
"<",
"ISD",
"::",
"InputArg",
">",
"&",
"Ins",
"=",
"CLI",
".",
"Ins",
";",
"SDValue",
"Chain",
"=",
"CLI",
".",
"Chain",
";",
"SDValue",
"Callee",
"=",
"CLI",
".",
"Callee",
";",
"bool",
"&",
"isTailCall",
"=",
"CLI",
".",
"IsTailCall",
";",
"CallingConv",
"::",
"ID",
"CallConv",
"=",
"CLI",
".",
"CallConv",
";",
"bool",
"isVarArg",
"=",
"CLI",
".",
"IsVarArg",
";",
"bool",
"IsPatchPoint",
"=",
"CLI",
".",
"IsPatchPoint",
";",
"ImmutableCallSite",
"*",
"CS",
"=",
"CLI",
".",
"CS",
";",
"if",
"(",
"isTailCall",
")",
"{",
"if",
"(",
"Subtarget",
".",
"isSVR4ABI",
"(",
")",
"&&",
"Subtarget",
".",
"isPPC64",
"(",
")",
")",
"isTailCall",
"=",
"IsEligibleForTailCallOptimization_64SVR4",
"(",
"Callee",
",",
"CallConv",
",",
"CS",
",",
"isVarArg",
",",
"Outs",
",",
"Ins",
",",
"DAG",
")",
";",
"else",
"isTailCall",
"=",
"IsEligibleForTailCallOptimization",
"(",
"Callee",
",",
"CallConv",
",",
"isVarArg",
",",
"Ins",
",",
"DAG",
")",
";",
"if",
"(",
"isTailCall",
")",
"{",
"++",
"NumTailCalls",
";",
"if",
"(",
"!",
"getTargetMachine",
"(",
")",
".",
"Options",
".",
"GuaranteedTailCallOpt",
")",
"++",
"NumSiblingCalls",
";",
"assert",
"(",
"isa",
"<",
"GlobalAddressSDNode",
">",
"(",
"Callee",
")",
"&&",
"\"Callee should be an llvm::Function object.\"",
")",
";",
"DEBUG",
"(",
"const",
"GlobalValue",
"*",
"GV",
"=",
"cast",
"<",
"GlobalAddressSDNode",
">",
"(",
"Callee",
")",
"->",
"getGlobal",
"(",
")",
";",
"const",
"unsigned",
"Width",
"=",
"80",
"-",
"strlen",
"(",
"\"TCO caller: \"",
")",
"-",
"strlen",
"(",
"\", callee linkage: 0, 0\"",
")",
";",
"dbgs",
"(",
")",
"<<",
"\"TCO caller: \"",
"<<",
"left_justify",
"(",
"DAG",
".",
"getMachineFunction",
"(",
")",
".",
"getName",
"(",
")",
",",
"Width",
")",
"<<",
"\", callee linkage: \"",
"<<",
"GV",
"->",
"getVisibility",
"(",
")",
"<<",
"\", \"",
"<<",
"GV",
"->",
"getLinkage",
"(",
")",
"<<",
"\"\\n\"",
")",
";",
"}",
"}",
"if",
"(",
"!",
"isTailCall",
"&&",
"CS",
"&&",
"CS",
"->",
"isMustTailCall",
"(",
")",
")",
"report_fatal_error",
"(",
"\"failed to perform tail call elimination on a call \"",
"\"site marked musttail\"",
")",
";",
"if",
"(",
"Subtarget",
".",
"isSVR4ABI",
"(",
")",
")",
"{",
"if",
"(",
"Subtarget",
".",
"isPPC64",
"(",
")",
")",
"return",
"LowerCall_64SVR4",
"(",
"Chain",
",",
"Callee",
",",
"CallConv",
",",
"isVarArg",
",",
"isTailCall",
",",
"IsPatchPoint",
",",
"Outs",
",",
"OutVals",
",",
"Ins",
",",
"dl",
",",
"DAG",
",",
"InVals",
",",
"CS",
")",
";",
"else",
"return",
"LowerCall_32SVR4",
"(",
"Chain",
",",
"Callee",
",",
"CallConv",
",",
"isVarArg",
",",
"isTailCall",
",",
"IsPatchPoint",
",",
"Outs",
",",
"OutVals",
",",
"Ins",
",",
"dl",
",",
"DAG",
",",
"InVals",
",",
"CS",
")",
";",
"}",
"return",
"LowerCall_Darwin",
"(",
"Chain",
",",
"Callee",
",",
"CallConv",
",",
"isVarArg",
",",
"isTailCall",
",",
"IsPatchPoint",
",",
"Outs",
",",
"OutVals",
",",
"Ins",
",",
"dl",
",",
"DAG",
",",
"InVals",
",",
"CS",
")",
";",
"}",
"</s>"
] | [
"This",
"hook",
"must",
"be",
"implemented",
"to",
"lower",
"calls",
"into",
"the",
"specified",
"DAG",
"."
] | [
"PowerPC",
"PPC",
"ISD::OutputArg",
"ISD::InputArg",
"PPC",
"\"Callee should be an llvm::Function object.\"",
"80",
"\"TCO caller: \"",
"\", callee linkage: 0, 0\"",
"\"TCO caller: \"",
"\", callee linkage: \"",
"\", \"",
"\"\\n\"",
"\"failed to perform tail call elimination on a call \"",
"\"site marked musttail\"",
"PPC"
] | PPCISelLowering111 | LowerCall | PowerPC | CPU | LLVM | 29,565 | 421 | 1 | [] |
[
"<s>",
"bool",
"RISCVInstrInfo",
"::",
"analyzeBranch",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"*",
"&",
"TBB",
",",
"MachineBasicBlock",
"*",
"&",
"FBB",
",",
"SmallVectorImpl",
"<",
"MachineOperand",
">",
"&",
"Cond",
",",
"bool",
"AllowModify",
")",
"const",
"{",
"TBB",
"=",
"FBB",
"=",
"nullptr",
";",
"Cond",
".",
"clear",
"(",
")",
";",
"MachineBasicBlock",
"::",
"iterator",
"I",
"=",
"MBB",
".",
"getLastNonDebugInstr",
"(",
")",
";",
"if",
"(",
"I",
"==",
"MBB",
".",
"end",
"(",
")",
"||",
"!",
"isUnpredicatedTerminator",
"(",
"*",
"I",
")",
")",
"return",
"false",
";",
"MachineBasicBlock",
"::",
"iterator",
"FirstUncondOrIndirectBr",
"=",
"MBB",
".",
"end",
"(",
")",
";",
"int",
"NumTerminators",
"=",
"0",
";",
"for",
"(",
"auto",
"J",
"=",
"I",
".",
"getReverse",
"(",
")",
";",
"J",
"!=",
"MBB",
".",
"rend",
"(",
")",
"&&",
"isUnpredicatedTerminator",
"(",
"*",
"J",
")",
";",
"J",
"++",
")",
"{",
"NumTerminators",
"++",
";",
"if",
"(",
"J",
"->",
"getDesc",
"(",
")",
".",
"isUnconditionalBranch",
"(",
")",
"||",
"J",
"->",
"getDesc",
"(",
")",
".",
"isIndirectBranch",
"(",
")",
")",
"{",
"FirstUncondOrIndirectBr",
"=",
"J",
".",
"getReverse",
"(",
")",
";",
"}",
"}",
"if",
"(",
"AllowModify",
"&&",
"FirstUncondOrIndirectBr",
"!=",
"MBB",
".",
"end",
"(",
")",
")",
"{",
"while",
"(",
"std",
"::",
"next",
"(",
"FirstUncondOrIndirectBr",
")",
"!=",
"MBB",
".",
"end",
"(",
")",
")",
"{",
"std",
"::",
"next",
"(",
"FirstUncondOrIndirectBr",
")",
"->",
"eraseFromParent",
"(",
")",
";",
"NumTerminators",
"--",
";",
"}",
"I",
"=",
"FirstUncondOrIndirectBr",
";",
"}",
"if",
"(",
"I",
"->",
"getDesc",
"(",
")",
".",
"isIndirectBranch",
"(",
")",
")",
"return",
"true",
";",
"if",
"(",
"NumTerminators",
">",
"2",
")",
"return",
"true",
";",
"if",
"(",
"NumTerminators",
"==",
"1",
"&&",
"I",
"->",
"getDesc",
"(",
")",
".",
"isUnconditionalBranch",
"(",
")",
")",
"{",
"TBB",
"=",
"getBranchDestBlock",
"(",
"*",
"I",
")",
";",
"return",
"false",
";",
"}",
"if",
"(",
"NumTerminators",
"==",
"1",
"&&",
"I",
"->",
"getDesc",
"(",
")",
".",
"isConditionalBranch",
"(",
")",
")",
"{",
"parseCondBranch",
"(",
"*",
"I",
",",
"TBB",
",",
"Cond",
")",
";",
"return",
"false",
";",
"}",
"if",
"(",
"NumTerminators",
"==",
"2",
"&&",
"std",
"::",
"prev",
"(",
"I",
")",
"->",
"getDesc",
"(",
")",
".",
"isConditionalBranch",
"(",
")",
"&&",
"I",
"->",
"getDesc",
"(",
")",
".",
"isUnconditionalBranch",
"(",
")",
")",
"{",
"parseCondBranch",
"(",
"*",
"std",
"::",
"prev",
"(",
"I",
")",
",",
"TBB",
",",
"Cond",
")",
";",
"FBB",
"=",
"getBranchDestBlock",
"(",
"*",
"I",
")",
";",
"return",
"false",
";",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"analyzeBranch",
"-",
"Analyze",
"the",
"branching",
"code",
"at",
"the",
"end",
"of",
"MBB",
",",
"returning",
"true",
"if",
"it",
"can",
"not",
"be",
"understood",
"(",
"e.g",
"."
] | [
"RI5CY",
"RISCV",
"0",
"2",
"1",
"1",
"2"
] | RISCVInstrInfo | analyzeBranch | RI5CY | CPU | LLVM | 29,566 | 351 | 1 | [] |
[
"<s>",
"bool",
"DLXDAGToDAGISel",
"::",
"SelectInlineAsmMemoryOperand",
"(",
"const",
"SDValue",
"&",
"Op",
",",
"unsigned",
"ConstraintCode",
",",
"std",
"::",
"vector",
"<",
"SDValue",
">",
"&",
"OutOps",
")",
"{",
"SDValue",
"Op0",
",",
"Op1",
",",
"AluOp",
";",
"switch",
"(",
"ConstraintCode",
")",
"{",
"default",
":",
"return",
"true",
";",
"case",
"InlineAsm",
"::",
"Constraint_m",
":",
"if",
"(",
"!",
"selectAddrRr",
"(",
"Op",
",",
"Op0",
",",
"Op1",
",",
"AluOp",
")",
"&&",
"!",
"selectAddrRi",
"(",
"Op",
",",
"Op0",
",",
"Op1",
",",
"AluOp",
")",
")",
"return",
"true",
";",
"break",
";",
"}",
"OutOps",
".",
"push_back",
"(",
"Op0",
")",
";",
"OutOps",
".",
"push_back",
"(",
"Op1",
")",
";",
"OutOps",
".",
"push_back",
"(",
"AluOp",
")",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"SelectInlineAsmMemoryOperand",
"-",
"Select",
"the",
"specified",
"address",
"as",
"a",
"target",
"addressing",
"mode",
",",
"according",
"to",
"the",
"specified",
"constraint",
"."
] | [
"DLX",
"DLX"
] | DLXISelDAGToDAG | SelectInlineAsmMemoryOperand | DLX | CPU | LLVM | 29,567 | 102 | 1 | [] |
[
"<s>",
"bool",
"RISCVMCAsmBackend",
"::",
"mayNeedRelaxation",
"(",
"const",
"MCInst",
"&",
"Inst",
")",
"const",
"{",
"return",
"getRelaxedOpcode",
"(",
"Inst",
".",
"getOpcode",
"(",
")",
")",
"!=",
"0",
";",
"}",
"</s>"
] | [
"Check",
"whether",
"the",
"given",
"instruction",
"may",
"need",
"relaxation",
"."
] | [
"RISCV",
"RISCV",
"0"
] | RISCVMCAsmBackend | mayNeedRelaxation | RISCV | CPU | LLVM | 29,568 | 25 | 1 | [] |
[
"<s>",
"void",
"RISCVDAGToDAGISel",
"::",
"PreprocessISelDAG",
"(",
")",
"{",
"for",
"(",
"SelectionDAG",
"::",
"allnodes_iterator",
"I",
"=",
"CurDAG",
"->",
"allnodes_begin",
"(",
")",
",",
"E",
"=",
"CurDAG",
"->",
"allnodes_end",
"(",
")",
";",
"I",
"!=",
"E",
";",
")",
"{",
"SDNode",
"*",
"N",
"=",
"&",
"*",
"I",
"++",
";",
"if",
"(",
"N",
"->",
"getOpcode",
"(",
")",
"!=",
"RISCVISD",
"::",
"SPLAT_VECTOR_SPLIT_I64_VL",
")",
"continue",
";",
"assert",
"(",
"N",
"->",
"getNumOperands",
"(",
")",
"==",
"3",
"&&",
"\"Unexpected number of operands\"",
")",
";",
"MVT",
"VT",
"=",
"N",
"->",
"getSimpleValueType",
"(",
"0",
")",
";",
"SDValue",
"Lo",
"=",
"N",
"->",
"getOperand",
"(",
"0",
")",
";",
"SDValue",
"Hi",
"=",
"N",
"->",
"getOperand",
"(",
"1",
")",
";",
"SDValue",
"VL",
"=",
"N",
"->",
"getOperand",
"(",
"2",
")",
";",
"assert",
"(",
"VT",
".",
"getVectorElementType",
"(",
")",
"==",
"MVT",
"::",
"i64",
"&&",
"VT",
".",
"isScalableVector",
"(",
")",
"&&",
"Lo",
".",
"getValueType",
"(",
")",
"==",
"MVT",
"::",
"i32",
"&&",
"Hi",
".",
"getValueType",
"(",
")",
"==",
"MVT",
"::",
"i32",
"&&",
"\"Unexpected VTs!\"",
")",
";",
"MachineFunction",
"&",
"MF",
"=",
"CurDAG",
"->",
"getMachineFunction",
"(",
")",
";",
"RISCVMachineFunctionInfo",
"*",
"FuncInfo",
"=",
"MF",
".",
"getInfo",
"<",
"RISCVMachineFunctionInfo",
">",
"(",
")",
";",
"SDLoc",
"DL",
"(",
"N",
")",
";",
"int",
"FI",
"=",
"FuncInfo",
"->",
"getMoveF64FrameIndex",
"(",
"MF",
")",
";",
"MachinePointerInfo",
"MPI",
"=",
"MachinePointerInfo",
"::",
"getFixedStack",
"(",
"MF",
",",
"FI",
")",
";",
"const",
"TargetLowering",
"&",
"TLI",
"=",
"CurDAG",
"->",
"getTargetLoweringInfo",
"(",
")",
";",
"SDValue",
"StackSlot",
"=",
"CurDAG",
"->",
"getFrameIndex",
"(",
"FI",
",",
"TLI",
".",
"getPointerTy",
"(",
"CurDAG",
"->",
"getDataLayout",
"(",
")",
",",
"CurDAG",
"->",
"getDataLayout",
"(",
")",
".",
"getAllocaAddrSpace",
"(",
")",
")",
")",
";",
"SDValue",
"Chain",
"=",
"CurDAG",
"->",
"getEntryNode",
"(",
")",
";",
"Lo",
"=",
"CurDAG",
"->",
"getStore",
"(",
"Chain",
",",
"DL",
",",
"Lo",
",",
"StackSlot",
",",
"MPI",
",",
"Align",
"(",
"8",
")",
")",
";",
"SDValue",
"OffsetSlot",
"=",
"CurDAG",
"->",
"getMemBasePlusOffset",
"(",
"StackSlot",
",",
"TypeSize",
"::",
"Fixed",
"(",
"4",
")",
",",
"DL",
")",
";",
"Hi",
"=",
"CurDAG",
"->",
"getStore",
"(",
"Chain",
",",
"DL",
",",
"Hi",
",",
"OffsetSlot",
",",
"MPI",
".",
"getWithOffset",
"(",
"4",
")",
",",
"Align",
"(",
"8",
")",
")",
";",
"Chain",
"=",
"CurDAG",
"->",
"getNode",
"(",
"ISD",
"::",
"TokenFactor",
",",
"DL",
",",
"MVT",
"::",
"Other",
",",
"Lo",
",",
"Hi",
")",
";",
"SDVTList",
"VTs",
"=",
"CurDAG",
"->",
"getVTList",
"(",
"{",
"VT",
",",
"MVT",
"::",
"Other",
"}",
")",
";",
"SDValue",
"IntID",
"=",
"CurDAG",
"->",
"getTargetConstant",
"(",
"Intrinsic",
"::",
"riscv_vlse",
",",
"DL",
",",
"MVT",
"::",
"i64",
")",
";",
"SDValue",
"Ops",
"[",
"]",
"=",
"{",
"Chain",
",",
"IntID",
",",
"StackSlot",
",",
"CurDAG",
"->",
"getRegister",
"(",
"RISCV",
"::",
"X0",
",",
"MVT",
"::",
"i64",
")",
",",
"VL",
"}",
";",
"SDValue",
"Result",
"=",
"CurDAG",
"->",
"getMemIntrinsicNode",
"(",
"ISD",
"::",
"INTRINSIC_W_CHAIN",
",",
"DL",
",",
"VTs",
",",
"Ops",
",",
"MVT",
"::",
"i64",
",",
"MPI",
",",
"Align",
"(",
"8",
")",
",",
"MachineMemOperand",
"::",
"MOLoad",
")",
";",
"--",
"I",
";",
"CurDAG",
"->",
"ReplaceAllUsesOfValueWith",
"(",
"SDValue",
"(",
"N",
",",
"0",
")",
",",
"Result",
")",
";",
"++",
"I",
";",
"CurDAG",
"->",
"DeleteNode",
"(",
"N",
")",
";",
"}",
"}",
"</s>"
] | [
"PreprocessISelDAG",
"-",
"This",
"hook",
"allows",
"targets",
"to",
"hack",
"on",
"the",
"graph",
"before",
"instruction",
"selection",
"starts",
"."
] | [
"RISCV",
"RISCV",
"RISCVISD::SPLAT_VECTOR_SPLIT_I64_VL",
"3",
"\"Unexpected number of operands\"",
"0",
"0",
"1",
"2",
"MVT::i64",
"MVT::i32",
"MVT::i32",
"\"Unexpected VTs!\"",
"RISCV",
"RISCV",
"8",
"4",
"4",
"8",
"ISD::TokenFactor",
"MVT::Other",
"MVT::Other",
"Intrinsic::riscv_vlse",
"MVT::i64",
"RISCV::X0",
"MVT::i64",
"ISD::INTRINSIC_W_CHAIN",
"MVT::i64",
"8",
"0"
] | RISCVISelDAGToDAG24 | PreprocessISelDAG | RISCV | CPU | LLVM | 29,569 | 466 | 1 | [] |
[
"<s>",
"bool",
"AMDGPULowerKernelAttributes",
"::",
"runOnModule",
"(",
"Module",
"&",
"M",
")",
"{",
"StringRef",
"DispatchPtrName",
"=",
"Intrinsic",
"::",
"getName",
"(",
"Intrinsic",
"::",
"amdgcn_dispatch_ptr",
")",
";",
"Function",
"*",
"DispatchPtr",
"=",
"M",
".",
"getFunction",
"(",
"DispatchPtrName",
")",
";",
"if",
"(",
"!",
"DispatchPtr",
")",
"return",
"false",
";",
"bool",
"MadeChange",
"=",
"false",
";",
"SmallPtrSet",
"<",
"Instruction",
"*",
",",
"4",
">",
"HandledUses",
";",
"for",
"(",
"auto",
"*",
"U",
":",
"DispatchPtr",
"->",
"users",
"(",
")",
")",
"{",
"CallInst",
"*",
"CI",
"=",
"cast",
"<",
"CallInst",
">",
"(",
"U",
")",
";",
"if",
"(",
"HandledUses",
".",
"insert",
"(",
"CI",
")",
".",
"second",
")",
"{",
"if",
"(",
"processUse",
"(",
"CI",
")",
")",
"MadeChange",
"=",
"true",
";",
"}",
"}",
"return",
"MadeChange",
";",
"}",
"</s>"
] | [
"runOnModule",
"-",
"Virtual",
"method",
"overriden",
"by",
"subclasses",
"to",
"process",
"the",
"module",
"being",
"operated",
"on",
"."
] | [
"AMDGPU",
"AMDGPU",
"Intrinsic::getName",
"Intrinsic::amdgcn_dispatch_ptr",
"4"
] | AMDGPULowerKernelAttributes2 | runOnModule | AMDGPU | GPU | LLVM | 29,570 | 109 | 1 | [] |
[
"<s>",
"const",
"MCExpr",
"*",
"getSubExpr",
"(",
")",
"const",
"{",
"return",
"Expr",
";",
"}",
"</s>"
] | [
"getSubExpr",
"-",
"Get",
"the",
"child",
"of",
"this",
"expression",
"."
] | [
"DLX"
] | DLXMCExpr | getSubExpr | DLX | CPU | LLVM | 29,571 | 12 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"avr_out_xload",
"(",
"rtx_insn",
"*",
"insn",
"ATTRIBUTE_UNUSED",
",",
"rtx",
"*",
"op",
",",
"int",
"*",
"plen",
")",
"{",
"rtx",
"xop",
"[",
"4",
"]",
";",
"xop",
"[",
"0",
"]",
"=",
"op",
"[",
"0",
"]",
";",
"xop",
"[",
"1",
"]",
"=",
"op",
"[",
"1",
"]",
";",
"xop",
"[",
"2",
"]",
"=",
"lpm_addr_reg_rtx",
";",
"xop",
"[",
"3",
"]",
"=",
"AVR_HAVE_LPMX",
"?",
"op",
"[",
"0",
"]",
":",
"lpm_reg_rtx",
";",
"avr_asm_len",
"(",
"AVR_HAVE_LPMX",
"?",
"\"lpm %3,%a2\"",
":",
"\"lpm\"",
",",
"xop",
",",
"plen",
",",
"-",
"1",
")",
";",
"avr_asm_len",
"(",
"\"sbrc %1,7\"",
"CR_TAB",
"\"ld %3,%a2\"",
",",
"xop",
",",
"plen",
",",
"2",
")",
";",
"if",
"(",
"REGNO",
"(",
"xop",
"[",
"0",
"]",
")",
"!=",
"REGNO",
"(",
"xop",
"[",
"3",
"]",
")",
")",
"avr_asm_len",
"(",
"\"mov %0,%3\"",
",",
"xop",
",",
"plen",
",",
"1",
")",
";",
"return",
"\"\"",
";",
"}",
"</s>"
] | [
"Worker",
"function",
"for",
"xload_8",
"insn",
"."
] | [
"avr",
"4",
"0",
"0",
"1",
"1",
"2",
"3",
"0",
"\"lpm %3,%a2\"",
"\"lpm\"",
"1",
"\"sbrc %1,7\"",
"\"ld %3,%a2\"",
"2",
"0",
"3",
"\"mov %0,%3\"",
"1",
"\"\""
] | avr | avr_out_xload | avr | MPU | GCC | 29,572 | 128 | 1 | [] |
[
"<s>",
"bool",
"XCoreRegisterInfo",
"::",
"requiresRegisterScavenging",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"return",
"hasFP",
"(",
"MF",
")",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"target",
"requires",
"(",
"and",
"can",
"make",
"use",
"of",
")",
"the",
"register",
"scavenger",
"."
] | [
"XCore",
"XCore"
] | XCoreRegisterInfo11 | requiresRegisterScavenging | XCore | MPU | LLVM | 29,573 | 19 | 1 | [] |
[
"<s>",
"void",
"thumb1_final_prescan_insn",
"(",
"rtx_insn",
"*",
"insn",
")",
"{",
"if",
"(",
"flag_print_asm_name",
")",
"asm_fprintf",
"(",
"asm_out_file",
",",
"\"%@ 0x%04x\\n\"",
",",
"INSN_ADDRESSES",
"(",
"INSN_UID",
"(",
"insn",
")",
")",
")",
";",
"if",
"(",
"INSN_CODE",
"(",
"insn",
")",
"!=",
"CODE_FOR_cbranchsi4_insn",
")",
"{",
"enum",
"attr_conds",
"conds",
";",
"if",
"(",
"cfun",
"->",
"machine",
"->",
"thumb1_cc_insn",
")",
"{",
"if",
"(",
"modified_in_p",
"(",
"cfun",
"->",
"machine",
"->",
"thumb1_cc_op0",
",",
"insn",
")",
"||",
"modified_in_p",
"(",
"cfun",
"->",
"machine",
"->",
"thumb1_cc_op1",
",",
"insn",
")",
")",
"CC_STATUS_INIT",
";",
"}",
"conds",
"=",
"get_attr_conds",
"(",
"insn",
")",
";",
"if",
"(",
"conds",
"==",
"CONDS_SET",
")",
"{",
"rtx",
"set",
"=",
"single_set",
"(",
"insn",
")",
";",
"cfun",
"->",
"machine",
"->",
"thumb1_cc_insn",
"=",
"insn",
";",
"cfun",
"->",
"machine",
"->",
"thumb1_cc_op0",
"=",
"SET_DEST",
"(",
"set",
")",
";",
"cfun",
"->",
"machine",
"->",
"thumb1_cc_op1",
"=",
"const0_rtx",
";",
"cfun",
"->",
"machine",
"->",
"thumb1_cc_mode",
"=",
"CC_NOOVmode",
";",
"if",
"(",
"INSN_CODE",
"(",
"insn",
")",
"==",
"CODE_FOR_thumb1_subsi3_insn",
")",
"{",
"rtx",
"src1",
"=",
"XEXP",
"(",
"SET_SRC",
"(",
"set",
")",
",",
"1",
")",
";",
"if",
"(",
"src1",
"==",
"const0_rtx",
")",
"cfun",
"->",
"machine",
"->",
"thumb1_cc_mode",
"=",
"CCmode",
";",
"}",
"else",
"if",
"(",
"REG_P",
"(",
"SET_DEST",
"(",
"set",
")",
")",
"&&",
"REG_P",
"(",
"SET_SRC",
"(",
"set",
")",
")",
")",
"{",
"cfun",
"->",
"machine",
"->",
"thumb1_cc_op0",
"=",
"SET_SRC",
"(",
"set",
")",
";",
"}",
"}",
"else",
"if",
"(",
"conds",
"!=",
"CONDS_NOCOND",
")",
"cfun",
"->",
"machine",
"->",
"thumb1_cc_insn",
"=",
"NULL_RTX",
";",
"}",
"if",
"(",
"cfun",
"->",
"machine",
"->",
"lr_save_eliminated",
"&&",
"get_attr_far_jump",
"(",
"insn",
")",
"==",
"FAR_JUMP_YES",
")",
"internal_error",
"(",
"\"Unexpected thumb1 far jump\"",
")",
";",
"}",
"</s>"
] | [
"Scan",
"INSN",
"just",
"before",
"assembler",
"is",
"output",
"for",
"it",
".",
"For",
"Thumb-1",
",",
"we",
"track",
"the",
"status",
"of",
"the",
"condition",
"codes",
";",
"this",
"information",
"is",
"used",
"in",
"the",
"cbranchsi4_insn",
"pattern",
"."
] | [
"arm",
"\"%@ 0x%04x\\n\"",
"1",
"\"Unexpected thumb1 far jump\""
] | arm4 | thumb1_final_prescan_insn | arm | CPU | GCC | 29,574 | 242 | 1 | [] |
[
"<s>",
"static",
"rtx",
"mips16e_build_save_restore",
"(",
"bool",
"restore_p",
",",
"unsigned",
"int",
"*",
"mask_ptr",
",",
"HOST_WIDE_INT",
"*",
"offset_ptr",
",",
"unsigned",
"int",
"nargs",
",",
"HOST_WIDE_INT",
"size",
")",
"{",
"rtx",
"pattern",
",",
"set",
";",
"HOST_WIDE_INT",
"offset",
",",
"top_offset",
";",
"unsigned",
"int",
"i",
",",
"regno",
";",
"int",
"n",
";",
"gcc_assert",
"(",
"cfun",
"->",
"machine",
"->",
"frame",
".",
"num_fp",
"==",
"0",
")",
";",
"n",
"=",
"1",
"+",
"nargs",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"ARRAY_SIZE",
"(",
"mips16e_save_restore_regs",
")",
";",
"i",
"++",
")",
"if",
"(",
"BITSET_P",
"(",
"*",
"mask_ptr",
",",
"mips16e_save_restore_regs",
"[",
"i",
"]",
")",
")",
"n",
"++",
";",
"pattern",
"=",
"gen_rtx_PARALLEL",
"(",
"VOIDmode",
",",
"rtvec_alloc",
"(",
"n",
")",
")",
";",
"n",
"=",
"0",
";",
"set",
"=",
"gen_rtx_SET",
"(",
"stack_pointer_rtx",
",",
"plus_constant",
"(",
"Pmode",
",",
"stack_pointer_rtx",
",",
"restore_p",
"?",
"size",
":",
"-",
"size",
")",
")",
";",
"RTX_FRAME_RELATED_P",
"(",
"set",
")",
"=",
"1",
";",
"XVECEXP",
"(",
"pattern",
",",
"0",
",",
"n",
"++",
")",
"=",
"set",
";",
"top_offset",
"=",
"restore_p",
"?",
"size",
":",
"0",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"nargs",
";",
"i",
"++",
")",
"{",
"offset",
"=",
"top_offset",
"+",
"i",
"*",
"UNITS_PER_WORD",
";",
"set",
"=",
"mips16e_save_restore_reg",
"(",
"restore_p",
",",
"true",
",",
"offset",
",",
"GP_ARG_FIRST",
"+",
"i",
")",
";",
"XVECEXP",
"(",
"pattern",
",",
"0",
",",
"n",
"++",
")",
"=",
"set",
";",
"}",
"offset",
"=",
"top_offset",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"ARRAY_SIZE",
"(",
"mips16e_save_restore_regs",
")",
";",
"i",
"++",
")",
"{",
"regno",
"=",
"mips16e_save_restore_regs",
"[",
"i",
"]",
";",
"if",
"(",
"BITSET_P",
"(",
"*",
"mask_ptr",
",",
"regno",
")",
")",
"{",
"offset",
"-=",
"UNITS_PER_WORD",
";",
"set",
"=",
"mips16e_save_restore_reg",
"(",
"restore_p",
",",
"false",
",",
"offset",
",",
"regno",
")",
";",
"XVECEXP",
"(",
"pattern",
",",
"0",
",",
"n",
"++",
")",
"=",
"set",
";",
"*",
"mask_ptr",
"&=",
"~",
"(",
"1",
"<<",
"regno",
")",
";",
"}",
"}",
"*",
"offset_ptr",
"=",
"size",
"+",
"(",
"offset",
"-",
"top_offset",
")",
";",
"gcc_assert",
"(",
"n",
"==",
"XVECLEN",
"(",
"pattern",
",",
"0",
")",
")",
";",
"return",
"pattern",
";",
"}",
"</s>"
] | [
"Return",
"RTL",
"for",
"a",
"MIPS16e",
"SAVE",
"or",
"RESTORE",
"instruction",
";",
"RESTORE_P",
"says",
"which",
".",
"The",
"instruction",
"must",
":",
"-",
"Allocate",
"or",
"deallocate",
"SIZE",
"bytes",
"in",
"total",
";",
"SIZE",
"is",
"known",
"to",
"be",
"nonzero",
".",
"-",
"Save",
"or",
"restore",
"as",
"many",
"registers",
"in",
"*",
"MASK_PTR",
"as",
"possible",
".",
"The",
"instruction",
"saves",
"the",
"first",
"registers",
"at",
"the",
"top",
"of",
"the",
"allocated",
"area",
",",
"with",
"the",
"other",
"registers",
"below",
"it",
".",
"-",
"Save",
"NARGS",
"argument",
"registers",
"above",
"the",
"allocated",
"area",
".",
"(",
"NARGS",
"is",
"always",
"zero",
"if",
"RESTORE_P",
".",
")",
"The",
"SAVE",
"and",
"RESTORE",
"instructions",
"can",
"not",
"save",
"and",
"restore",
"all",
"general",
"registers",
",",
"so",
"there",
"may",
"be",
"some",
"registers",
"left",
"over",
"for",
"the",
"caller",
"to",
"handle",
".",
"Destructively",
"modify",
"*",
"MASK_PTR",
"so",
"that",
"it",
"contains",
"the",
"registers",
"that",
"still",
"need",
"to",
"be",
"saved",
"or",
"restored",
".",
"The",
"caller",
"can",
"save",
"these",
"registers",
"in",
"the",
"memory",
"immediately",
"below",
"*",
"OFFSET_PTR",
",",
"which",
"is",
"a",
"byte",
"offset",
"from",
"the",
"bottom",
"of",
"the",
"allocated",
"stack",
"area",
"."
] | [
"mips",
"0",
"1",
"0",
"0",
"1",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
"0"
] | mips | mips16e_build_save_restore | mips | CPU | GCC | 29,575 | 315 | 1 | [] |
[
"<s>",
"static",
"bool",
"rl78_hard_regno_mode_ok",
"(",
"unsigned",
"int",
"regno",
",",
"machine_mode",
"mode",
")",
"{",
"int",
"s",
"=",
"GET_MODE_SIZE",
"(",
"mode",
")",
";",
"if",
"(",
"s",
"<",
"1",
")",
"return",
"false",
";",
"if",
"(",
"regno",
"==",
"23",
"||",
"regno",
"==",
"ES_REG",
"||",
"regno",
"==",
"CS_REG",
")",
"return",
"false",
";",
"if",
"(",
"regno",
"==",
"FP_REG",
"&&",
"s",
"==",
"2",
")",
"return",
"true",
";",
"if",
"(",
"regno",
"<",
"SP_REG",
")",
"{",
"if",
"(",
"s",
">",
"1",
"&&",
"(",
"regno",
"%",
"2",
")",
")",
"return",
"false",
";",
"return",
"true",
";",
"}",
"if",
"(",
"s",
"==",
"CC_REGNUM",
")",
"return",
"(",
"mode",
"==",
"BImode",
")",
";",
"if",
"(",
"s",
"==",
"register_sizes",
"[",
"regno",
"]",
")",
"return",
"true",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Implements",
"HARD_REGNO_MODE_OK",
"."
] | [
"rl78",
"1",
"23",
"2",
"1",
"2"
] | rl78 | rl78_hard_regno_mode_ok | rl78 | MPU | GCC | 29,576 | 114 | 1 | [] |
[
"<s>",
"static",
"bool",
"rs6000_vector_mode_supported_p",
"(",
"machine_mode",
"mode",
")",
"{",
"if",
"(",
"TARGET_PAIRED_FLOAT",
"&&",
"PAIRED_VECTOR_MODE",
"(",
"mode",
")",
")",
"return",
"true",
";",
"if",
"(",
"TARGET_SPE",
"&&",
"SPE_VECTOR_MODE",
"(",
"mode",
")",
")",
"return",
"true",
";",
"else",
"if",
"(",
"VECTOR_MEM_ALTIVEC_OR_VSX_P",
"(",
"mode",
")",
")",
"return",
"true",
";",
"else",
"return",
"false",
";",
"}",
"</s>"
] | [
"Target",
"hook",
"for",
"vector_mode_supported_p",
"."
] | [
"rs6000"
] | rs60004 | rs6000_vector_mode_supported_p | rs6000 | CPU | GCC | 29,577 | 48 | 1 | [] |
[
"<s>",
"bool",
"GCNTTIImpl",
"::",
"collectFlatAddressOperands",
"(",
"SmallVectorImpl",
"<",
"int",
">",
"&",
"OpIndexes",
",",
"Intrinsic",
"::",
"ID",
"IID",
")",
"const",
"{",
"switch",
"(",
"IID",
")",
"{",
"case",
"Intrinsic",
"::",
"amdgcn_atomic_inc",
":",
"case",
"Intrinsic",
"::",
"amdgcn_atomic_dec",
":",
"case",
"Intrinsic",
"::",
"amdgcn_ds_fadd",
":",
"case",
"Intrinsic",
"::",
"amdgcn_ds_fmin",
":",
"case",
"Intrinsic",
"::",
"amdgcn_ds_fmax",
":",
"OpIndexes",
".",
"push_back",
"(",
"0",
")",
";",
"return",
"true",
";",
"default",
":",
"return",
"false",
";",
"}",
"}",
"</s>"
] | [
"Return",
"any",
"intrinsic",
"address",
"operand",
"indexes",
"which",
"may",
"be",
"rewritten",
"if",
"they",
"use",
"a",
"flat",
"address",
"space",
"pointer",
"."
] | [
"AMDGPU",
"Intrinsic::ID",
"Intrinsic::amdgcn_atomic_inc",
"Intrinsic::amdgcn_atomic_dec",
"Intrinsic::amdgcn_ds_fadd",
"Intrinsic::amdgcn_ds_fmin",
"Intrinsic::amdgcn_ds_fmax",
"0"
] | AMDGPUTargetTransformInfo76 | collectFlatAddressOperands | AMDGPU | GPU | LLVM | 29,578 | 66 | 1 | [] |
[
"<s>",
"static",
"void",
"ultra_flush_pipeline",
"(",
")",
"{",
"ultra_cur_hist",
"=",
"(",
"ultra_cur_hist",
"+",
"1",
")",
"&",
"(",
"ULTRA_NUM_HIST",
"-",
"1",
")",
";",
"ultra_cycles_elapsed",
"+=",
"1",
";",
"memset",
"(",
"(",
"char",
"*",
")",
"&",
"ultra_pipe",
",",
"0",
",",
"sizeof",
"ultra_pipe",
")",
";",
"ultra_pipe",
".",
"free_slot_mask",
"=",
"0xf",
";",
"}",
"</s>"
] | [
"Advance",
"to",
"the",
"next",
"pipeline",
"group",
"."
] | [
"sparc",
"1",
"1",
"1",
"0",
"0xf"
] | sparc2 | ultra_flush_pipeline | sparc | CPU | GCC | 29,579 | 46 | 1 | [] |
[
"<s>",
"bool",
"aarch64_use_pseudo_pic_reg",
"(",
"void",
")",
"{",
"return",
"aarch64_cmodel",
"==",
"AARCH64_CMODEL_SMALL_SPIC",
";",
"}",
"</s>"
] | [
"Return",
"1",
"if",
"pseudo",
"register",
"should",
"be",
"created",
"and",
"used",
"to",
"hold",
"GOT",
"address",
"for",
"PIC",
"code",
"."
] | [
"aarch64"
] | aarch64 | aarch64_use_pseudo_pic_reg | aarch64 | CPU | GCC | 29,580 | 12 | 1 | [] |
[
"<s>",
"static",
"const",
"char",
"*",
"rs6000_mangle_type",
"(",
"const_tree",
"type",
")",
"{",
"type",
"=",
"TYPE_MAIN_VARIANT",
"(",
"type",
")",
";",
"if",
"(",
"TREE_CODE",
"(",
"type",
")",
"!=",
"VOID_TYPE",
"&&",
"TREE_CODE",
"(",
"type",
")",
"!=",
"BOOLEAN_TYPE",
"&&",
"TREE_CODE",
"(",
"type",
")",
"!=",
"INTEGER_TYPE",
"&&",
"TREE_CODE",
"(",
"type",
")",
"!=",
"REAL_TYPE",
"&&",
"TREE_CODE",
"(",
"type",
")",
"!=",
"OPAQUE_TYPE",
")",
"return",
"NULL",
";",
"if",
"(",
"type",
"==",
"bool_char_type_node",
")",
"return",
"\"U6__boolc\"",
";",
"if",
"(",
"type",
"==",
"bool_short_type_node",
")",
"return",
"\"U6__bools\"",
";",
"if",
"(",
"type",
"==",
"pixel_type_node",
")",
"return",
"\"u7__pixel\"",
";",
"if",
"(",
"type",
"==",
"bool_int_type_node",
")",
"return",
"\"U6__booli\"",
";",
"if",
"(",
"type",
"==",
"bool_long_long_type_node",
")",
"return",
"\"U6__boolx\"",
";",
"if",
"(",
"SCALAR_FLOAT_TYPE_P",
"(",
"type",
")",
"&&",
"FLOAT128_IBM_P",
"(",
"TYPE_MODE",
"(",
"type",
")",
")",
")",
"return",
"\"g\"",
";",
"if",
"(",
"SCALAR_FLOAT_TYPE_P",
"(",
"type",
")",
"&&",
"FLOAT128_IEEE_P",
"(",
"TYPE_MODE",
"(",
"type",
")",
")",
")",
"return",
"\"u9__ieee128\"",
";",
"if",
"(",
"type",
"==",
"vector_pair_type_node",
")",
"return",
"\"u13__vector_pair\"",
";",
"if",
"(",
"type",
"==",
"vector_quad_type_node",
")",
"return",
"\"u13__vector_quad\"",
";",
"return",
"NULL",
";",
"}",
"</s>"
] | [
"AltiVec",
"defines",
"five",
"built-in",
"scalar",
"types",
"that",
"serve",
"as",
"vector",
"elements",
";",
"we",
"must",
"teach",
"the",
"compiler",
"how",
"to",
"mangle",
"them",
".",
"The",
"128-bit",
"floating",
"point",
"mangling",
"is",
"target-specific",
"as",
"well",
".",
"MMA",
"defines",
"two",
"built-in",
"types",
"to",
"be",
"used",
"as",
"opaque",
"vector",
"types",
"."
] | [
"rs6000",
"\"U6__boolc\"",
"\"U6__bools\"",
"\"u7__pixel\"",
"\"U6__booli\"",
"\"U6__boolx\"",
"\"g\"",
"\"u9__ieee128\"",
"\"u13__vector_pair\"",
"\"u13__vector_quad\""
] | rs6000 | rs6000_mangle_type | rs6000 | CPU | GCC | 29,581 | 160 | 1 | [] |
[
"<s>",
"static",
"void",
"darwin_rs6000_override_options",
"(",
"void",
")",
"{",
"rs6000_altivec_abi",
"=",
"1",
";",
"TARGET_ALTIVEC_VRSAVE",
"=",
"1",
";",
"rs6000_current_abi",
"=",
"ABI_DARWIN",
";",
"if",
"(",
"DEFAULT_ABI",
"==",
"ABI_DARWIN",
"&&",
"TARGET_64BIT",
")",
"darwin_one_byte_bool",
"=",
"1",
";",
"if",
"(",
"TARGET_64BIT",
"&&",
"!",
"TARGET_POWERPC64",
")",
"{",
"rs6000_isa_flags",
"|=",
"OPTION_MASK_POWERPC64",
";",
"warning",
"(",
"0",
",",
"\"-m64 requires PowerPC64 architecture, enabling\"",
")",
";",
"}",
"if",
"(",
"flag_mkernel",
")",
"{",
"rs6000_default_long_calls",
"=",
"1",
";",
"rs6000_isa_flags",
"|=",
"OPTION_MASK_SOFT_FLOAT",
";",
"}",
"if",
"(",
"!",
"flag_mkernel",
"&&",
"!",
"flag_apple_kext",
"&&",
"TARGET_64BIT",
"&&",
"!",
"(",
"rs6000_isa_flags_explicit",
"&",
"OPTION_MASK_ALTIVEC",
")",
")",
"rs6000_isa_flags",
"|=",
"OPTION_MASK_ALTIVEC",
";",
"if",
"(",
"!",
"flag_mkernel",
"&&",
"!",
"flag_apple_kext",
"&&",
"strverscmp",
"(",
"darwin_macosx_version_min",
",",
"\"10.5\"",
")",
">=",
"0",
"&&",
"!",
"(",
"rs6000_isa_flags_explicit",
"&",
"OPTION_MASK_ALTIVEC",
")",
"&&",
"!",
"global_options_set",
".",
"x_rs6000_cpu_index",
")",
"{",
"rs6000_isa_flags",
"|=",
"OPTION_MASK_ALTIVEC",
";",
"}",
"}",
"</s>"
] | [
"The",
"Darwin",
"version",
"of",
"SUBTARGET_OVERRIDE_OPTIONS",
"."
] | [
"powerpcspe",
"1",
"1",
"1",
"0",
"\"-m64 requires PowerPC64 architecture, enabling\"",
"1",
"\"10.5\"",
"0"
] | powerpcspe | darwin_rs6000_override_options | powerpcspe | CPU | GCC | 29,582 | 122 | 1 | [] |
[
"<s>",
"static",
"bool",
"rs6000_use_blocks_for_decl_p",
"(",
"const_tree",
"decl",
")",
"{",
"return",
"!",
"DECL_THREAD_LOCAL_P",
"(",
"decl",
")",
";",
"}",
"</s>"
] | [
"Do",
"not",
"place",
"thread-local",
"symbols",
"refs",
"in",
"the",
"object",
"blocks",
"."
] | [
"rs6000"
] | rs6000 | rs6000_use_blocks_for_decl_p | rs6000 | CPU | GCC | 29,583 | 16 | 1 | [] |
[
"<s>",
"bool",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"override",
"{",
"Subtarget",
"=",
"&",
"MF",
".",
"getSubtarget",
"<",
"X86Subtarget",
">",
"(",
")",
";",
"IndirectTlsSegRefs",
"=",
"MF",
".",
"getFunction",
"(",
")",
".",
"hasFnAttribute",
"(",
"\"indirect-tls-seg-refs\"",
")",
";",
"OptForSize",
"=",
"MF",
".",
"getFunction",
"(",
")",
".",
"optForSize",
"(",
")",
";",
"OptForMinSize",
"=",
"MF",
".",
"getFunction",
"(",
")",
".",
"optForMinSize",
"(",
")",
";",
"assert",
"(",
"(",
"!",
"OptForMinSize",
"||",
"OptForSize",
")",
"&&",
"\"OptForMinSize implies OptForSize\"",
")",
";",
"SelectionDAGISel",
"::",
"runOnMachineFunction",
"(",
"MF",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"X86",
"X86",
"\"indirect-tls-seg-refs\"",
"\"OptForMinSize implies OptForSize\""
] | X86ISelDAGToDAG133 | runOnMachineFunction | X86 | CPU | LLVM | 29,584 | 81 | 1 | [] |
[
"<s>",
"static",
"void",
"avr_adjust_type_node",
"(",
"tree",
"*",
"node",
",",
"machine_mode",
"mode",
",",
"int",
"sat_p",
")",
"{",
"*",
"node",
"=",
"make_node",
"(",
"FIXED_POINT_TYPE",
")",
";",
"TYPE_SATURATING",
"(",
"*",
"node",
")",
"=",
"sat_p",
";",
"TYPE_UNSIGNED",
"(",
"*",
"node",
")",
"=",
"UNSIGNED_FIXED_POINT_MODE_P",
"(",
"mode",
")",
";",
"TYPE_IBIT",
"(",
"*",
"node",
")",
"=",
"GET_MODE_IBIT",
"(",
"mode",
")",
";",
"TYPE_FBIT",
"(",
"*",
"node",
")",
"=",
"GET_MODE_FBIT",
"(",
"mode",
")",
";",
"TYPE_PRECISION",
"(",
"*",
"node",
")",
"=",
"GET_MODE_BITSIZE",
"(",
"mode",
")",
";",
"SET_TYPE_ALIGN",
"(",
"*",
"node",
",",
"8",
")",
";",
"SET_TYPE_MODE",
"(",
"*",
"node",
",",
"mode",
")",
";",
"layout_type",
"(",
"*",
"node",
")",
";",
"}",
"</s>"
] | [
"Helper",
"for",
"the",
"function",
"below",
"."
] | [
"avr",
"8"
] | avr | avr_adjust_type_node | avr | MPU | GCC | 29,585 | 98 | 1 | [] |
[
"<s>",
"virtual",
"bool",
"requiresFrameIndexScavenging",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"LLVM_OVERRIDE",
"{",
"return",
"true",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"target",
"requires",
"post",
"PEI",
"scavenging",
"of",
"registers",
"for",
"materializing",
"frame",
"index",
"constants",
"."
] | [
"SystemZ"
] | SystemZRegisterInfo3 | requiresFrameIndexScavenging | SystemZ | CPU | LLVM | 29,586 | 16 | 1 | [] |
[
"<s>",
"inline",
"bool",
"libcall_hasher",
"::",
"equal",
"(",
"const",
"rtx_def",
"*",
"p1",
",",
"const",
"rtx_def",
"*",
"p2",
")",
"{",
"return",
"rtx_equal_p",
"(",
"p1",
",",
"p2",
")",
";",
"}",
"</s>"
] | [
"Compare",
"H1",
"and",
"H2",
"for",
"equivalence",
"."
] | [
"arm"
] | arm | equal | arm | CPU | GCC | 29,587 | 26 | 1 | [] |
[
"<s>",
"Optional",
"<",
"RegImmPair",
">",
"ARMBaseInstrInfo",
"::",
"isAddImmediate",
"(",
"const",
"MachineInstr",
"&",
"MI",
",",
"Register",
"Reg",
")",
"const",
"{",
"int",
"Sign",
"=",
"1",
";",
"unsigned",
"Opcode",
"=",
"MI",
".",
"getOpcode",
"(",
")",
";",
"int64_t",
"Offset",
"=",
"0",
";",
"const",
"MachineOperand",
"&",
"Op0",
"=",
"MI",
".",
"getOperand",
"(",
"0",
")",
";",
"if",
"(",
"!",
"Op0",
".",
"isReg",
"(",
")",
"||",
"Reg",
"!=",
"Op0",
".",
"getReg",
"(",
")",
")",
"return",
"None",
";",
"if",
"(",
"Opcode",
"==",
"ARM",
"::",
"SUBri",
")",
"Sign",
"=",
"-",
"1",
";",
"else",
"if",
"(",
"Opcode",
"!=",
"ARM",
"::",
"ADDri",
")",
"return",
"None",
";",
"if",
"(",
"!",
"MI",
".",
"getOperand",
"(",
"1",
")",
".",
"isReg",
"(",
")",
"||",
"!",
"MI",
".",
"getOperand",
"(",
"2",
")",
".",
"isImm",
"(",
")",
")",
"return",
"None",
";",
"Offset",
"=",
"MI",
".",
"getOperand",
"(",
"2",
")",
".",
"getImm",
"(",
")",
"*",
"Sign",
";",
"return",
"RegImmPair",
"{",
"MI",
".",
"getOperand",
"(",
"1",
")",
".",
"getReg",
"(",
")",
",",
"Offset",
"}",
";",
"}",
"</s>"
] | [
"If",
"the",
"specific",
"machine",
"instruction",
"is",
"an",
"instruction",
"that",
"adds",
"an",
"immediate",
"value",
"and",
"a",
"register",
",",
"and",
"stores",
"the",
"result",
"in",
"the",
"given",
"register",
"Reg",
",",
"return",
"a",
"pair",
"of",
"the",
"source",
"register",
"and",
"the",
"offset",
"which",
"has",
"been",
"added",
"."
] | [
"ARM",
"ARM",
"1",
"0",
"0",
"ARM::SUBri",
"1",
"ARM::ADDri",
"1",
"2",
"2",
"1"
] | ARMBaseInstrInfo110 | isAddImmediate | ARM | CPU | LLVM | 29,588 | 156 | 1 | [] |
[
"<s>",
"bool",
"XCoreTargetLowering",
"::",
"isLegalAddressingMode",
"(",
"const",
"AddrMode",
"&",
"AM",
",",
"const",
"Type",
"*",
"Ty",
")",
"const",
"{",
"if",
"(",
"Ty",
"->",
"getTypeID",
"(",
")",
"==",
"Type",
"::",
"VoidTyID",
")",
"return",
"false",
";",
"const",
"TargetData",
"*",
"TD",
"=",
"TM",
".",
"getTargetData",
"(",
")",
";",
"unsigned",
"Size",
"=",
"TD",
"->",
"getTypeAllocSize",
"(",
"Ty",
")",
";",
"if",
"(",
"AM",
".",
"BaseGV",
")",
"{",
"return",
"Size",
">=",
"4",
"&&",
"!",
"AM",
".",
"HasBaseReg",
"&&",
"AM",
".",
"Scale",
"==",
"0",
"&&",
"AM",
".",
"BaseOffs",
"%",
"4",
"==",
"0",
";",
"}",
"switch",
"(",
"Size",
")",
"{",
"case",
"1",
":",
"if",
"(",
"AM",
".",
"Scale",
"==",
"0",
")",
"{",
"return",
"isImmUs",
"(",
"AM",
".",
"BaseOffs",
")",
";",
"}",
"return",
"AM",
".",
"Scale",
"==",
"1",
"&&",
"AM",
".",
"BaseOffs",
"==",
"0",
";",
"case",
"2",
":",
"case",
"3",
":",
"if",
"(",
"AM",
".",
"Scale",
"==",
"0",
")",
"{",
"return",
"isImmUs2",
"(",
"AM",
".",
"BaseOffs",
")",
";",
"}",
"return",
"AM",
".",
"Scale",
"==",
"2",
"&&",
"AM",
".",
"BaseOffs",
"==",
"0",
";",
"default",
":",
"if",
"(",
"AM",
".",
"Scale",
"==",
"0",
")",
"{",
"return",
"isImmUs4",
"(",
"AM",
".",
"BaseOffs",
")",
";",
"}",
"return",
"AM",
".",
"Scale",
"==",
"4",
"&&",
"AM",
".",
"BaseOffs",
"==",
"0",
";",
"}",
"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",
"."
] | [
"XCore",
"XCore",
"4",
"0",
"4",
"0",
"1",
"0",
"1",
"0",
"2",
"3",
"0",
"2",
"0",
"0",
"4",
"0"
] | XCoreISelLowering59 | isLegalAddressingMode | XCore | MPU | LLVM | 29,589 | 199 | 1 | [] |
[
"<s>",
"enum",
"reg_class",
"eco32_reg_class",
"(",
"int",
"regno",
")",
"{",
"if",
"(",
"is_ECO32_GENERAL_REG",
"(",
"regno",
")",
")",
"{",
"return",
"GENERAL_REGS",
";",
"}",
"if",
"(",
"is_ECO32_REG",
"(",
"regno",
")",
")",
"{",
"return",
"ALL_REGS",
";",
"}",
"return",
"NO_REGS",
";",
"}",
"</s>"
] | [
"#",
"include",
"``",
"gt-eco32.h",
"''"
] | [
"eco32"
] | eco32 | eco32_reg_class | eco32 | MPU | GCC | 29,590 | 36 | 1 | [] |
[
"<s>",
"void",
"bpf_print_operand_address",
"(",
"FILE",
"*",
"file",
",",
"rtx",
"addr",
")",
"{",
"switch",
"(",
"GET_CODE",
"(",
"addr",
")",
")",
"{",
"case",
"REG",
":",
"fprintf",
"(",
"file",
",",
"\"[%s+0]\"",
",",
"reg_names",
"[",
"REGNO",
"(",
"addr",
")",
"]",
")",
";",
"break",
";",
"case",
"PLUS",
":",
"{",
"rtx",
"op0",
"=",
"XEXP",
"(",
"addr",
",",
"0",
")",
";",
"rtx",
"op1",
"=",
"XEXP",
"(",
"addr",
",",
"1",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"op0",
")",
"==",
"REG",
"&&",
"GET_CODE",
"(",
"op1",
")",
"==",
"CONST_INT",
")",
"{",
"fprintf",
"(",
"file",
",",
"\"[%s+\"",
",",
"reg_names",
"[",
"REGNO",
"(",
"op0",
")",
"]",
")",
";",
"output_addr_const",
"(",
"file",
",",
"op1",
")",
";",
"fputs",
"(",
"\"]\"",
",",
"file",
")",
";",
"}",
"else",
"fatal_insn",
"(",
"\"invalid address in operand\"",
",",
"addr",
")",
";",
"break",
";",
"}",
"case",
"MEM",
":",
"case",
"LABEL_REF",
":",
"fatal_insn",
"(",
"\"unsupported operand\"",
",",
"addr",
")",
";",
"break",
";",
"default",
":",
"output_addr_const",
"(",
"file",
",",
"addr",
")",
";",
"break",
";",
"}",
"}",
"</s>"
] | [
"Print",
"an",
"operand",
"which",
"is",
"an",
"address",
".",
"This",
"function",
"should",
"handle",
"any",
"legit",
"address",
",",
"as",
"accepted",
"by",
"bpf_legitimate_address_p",
",",
"and",
"also",
"addresses",
"that",
"are",
"valid",
"in",
"CALL",
"instructions",
".",
"This",
"function",
"is",
"called",
"in",
"the",
"PRINT_OPERAND_ADDRESS",
"macro",
"defined",
"in",
"bpf.h"
] | [
"bpf",
"\"[%s+0]\"",
"0",
"1",
"\"[%s+\"",
"\"]\"",
"\"invalid address in operand\"",
"\"unsupported operand\""
] | bpf | bpf_print_operand_address | bpf | Virtual ISA | GCC | 29,591 | 149 | 1 | [] |
[
"<s>",
"bool",
"ShouldShrinkFPConstant",
"(",
"EVT",
"VT",
")",
"const",
"override",
"{",
"return",
"VT",
"!=",
"MVT",
"::",
"f128",
";",
"}",
"</s>"
] | [
"If",
"true",
",",
"then",
"instruction",
"selection",
"should",
"seek",
"to",
"shrink",
"the",
"FP",
"constant",
"of",
"the",
"specified",
"type",
"to",
"a",
"smaller",
"type",
"in",
"order",
"to",
"save",
"space",
"and",
"/",
"or",
"reduce",
"runtime",
"."
] | [
"Sparc",
"MVT::f128"
] | SparcISelLowering (2)2 | ShouldShrinkFPConstant | Sparc | CPU | LLVM | 29,592 | 17 | 1 | [] |
[
"<s>",
"SDValue",
"AMDGPUTargetLowering",
"::",
"LowerOperation",
"(",
"SDValue",
"Op",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"switch",
"(",
"Op",
".",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"Op",
"->",
"print",
"(",
"errs",
"(",
")",
",",
"&",
"DAG",
")",
";",
"llvm_unreachable",
"(",
"\"Custom lowering code for this\"",
"\"instruction is not implemented yet!\"",
")",
";",
"break",
";",
"case",
"ISD",
"::",
"SIGN_EXTEND_INREG",
":",
"return",
"LowerSIGN_EXTEND_INREG",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"CONCAT_VECTORS",
":",
"return",
"LowerCONCAT_VECTORS",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"EXTRACT_SUBVECTOR",
":",
"return",
"LowerEXTRACT_SUBVECTOR",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"UDIVREM",
":",
"return",
"LowerUDIVREM",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"SDIVREM",
":",
"return",
"LowerSDIVREM",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"FREM",
":",
"return",
"LowerFREM",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"FCEIL",
":",
"return",
"LowerFCEIL",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"FTRUNC",
":",
"return",
"LowerFTRUNC",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"FRINT",
":",
"return",
"LowerFRINT",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"FNEARBYINT",
":",
"return",
"LowerFNEARBYINT",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"FROUND",
":",
"return",
"LowerFROUND",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"FFLOOR",
":",
"return",
"LowerFFLOOR",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"SINT_TO_FP",
":",
"return",
"LowerSINT_TO_FP",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"UINT_TO_FP",
":",
"return",
"LowerUINT_TO_FP",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"FP_TO_FP16",
":",
"return",
"LowerFP_TO_FP16",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"FP_TO_SINT",
":",
"return",
"LowerFP_TO_SINT",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"FP_TO_UINT",
":",
"return",
"LowerFP_TO_UINT",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"CTLZ",
":",
"case",
"ISD",
"::",
"CTLZ_ZERO_UNDEF",
":",
"return",
"LowerCTLZ",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"DYNAMIC_STACKALLOC",
":",
"return",
"LowerDYNAMIC_STACKALLOC",
"(",
"Op",
",",
"DAG",
")",
";",
"}",
"return",
"Op",
";",
"}",
"</s>"
] | [
"LowerOperation",
"-",
"Provide",
"custom",
"lowering",
"hooks",
"for",
"some",
"operations",
"."
] | [
"AMDGPU",
"AMDGPU",
"\"Custom lowering code for this\"",
"\"instruction is not implemented yet!\"",
"ISD::SIGN_EXTEND_INREG",
"SI",
"ISD::CONCAT_VECTORS",
"ISD::EXTRACT_SUBVECTOR",
"ISD::UDIVREM",
"ISD::SDIVREM",
"ISD::FREM",
"ISD::FCEIL",
"ISD::FTRUNC",
"ISD::FRINT",
"ISD::FNEARBYINT",
"ISD::FROUND",
"ISD::FFLOOR",
"ISD::SINT_TO_FP",
"SI",
"ISD::UINT_TO_FP",
"ISD::FP_TO_FP16",
"ISD::FP_TO_SINT",
"SI",
"ISD::FP_TO_UINT",
"ISD::CTLZ",
"ISD::CTLZ_ZERO_UNDEF",
"ISD::DYNAMIC_STACKALLOC"
] | AMDGPUISelLowering103 | LowerOperation | AMDGPU | GPU | LLVM | 29,593 | 302 | 1 | [] |
[
"<s>",
"void",
"setName",
"(",
"StringRef",
"N",
")",
"{",
"SectionName",
"=",
"N",
";",
"}",
"</s>"
] | [
"Change",
"the",
"name",
"of",
"this",
"type",
"to",
"the",
"specified",
"name",
",",
"or",
"to",
"a",
"name",
"with",
"a",
"suffix",
"if",
"there",
"is",
"a",
"collision",
"."
] | [
"GBZ80"
] | GBZ80TargetObjectFile | setName | GBZ80 | MPU | LLVM | 29,594 | 12 | 1 | [] |
[
"<s>",
"static",
"rtx",
"ix86_expand_vec_set_builtin",
"(",
"tree",
"arglist",
")",
"{",
"enum",
"machine_mode",
"tmode",
",",
"mode1",
";",
"tree",
"arg0",
",",
"arg1",
",",
"arg2",
";",
"int",
"elt",
";",
"rtx",
"op0",
",",
"op1",
";",
"arg0",
"=",
"TREE_VALUE",
"(",
"arglist",
")",
";",
"arg1",
"=",
"TREE_VALUE",
"(",
"TREE_CHAIN",
"(",
"arglist",
")",
")",
";",
"arg2",
"=",
"TREE_VALUE",
"(",
"TREE_CHAIN",
"(",
"TREE_CHAIN",
"(",
"arglist",
")",
")",
")",
";",
"tmode",
"=",
"TYPE_MODE",
"(",
"TREE_TYPE",
"(",
"arg0",
")",
")",
";",
"mode1",
"=",
"TYPE_MODE",
"(",
"TREE_TYPE",
"(",
"TREE_TYPE",
"(",
"arg0",
")",
")",
")",
";",
"gcc_assert",
"(",
"VECTOR_MODE_P",
"(",
"tmode",
")",
")",
";",
"op0",
"=",
"expand_expr",
"(",
"arg0",
",",
"NULL_RTX",
",",
"tmode",
",",
"0",
")",
";",
"op1",
"=",
"expand_expr",
"(",
"arg1",
",",
"NULL_RTX",
",",
"mode1",
",",
"0",
")",
";",
"elt",
"=",
"get_element_number",
"(",
"TREE_TYPE",
"(",
"arg0",
")",
",",
"arg2",
")",
";",
"if",
"(",
"GET_MODE",
"(",
"op1",
")",
"!=",
"mode1",
"&&",
"GET_MODE",
"(",
"op1",
")",
"!=",
"VOIDmode",
")",
"op1",
"=",
"convert_modes",
"(",
"mode1",
",",
"GET_MODE",
"(",
"op1",
")",
",",
"op1",
",",
"true",
")",
";",
"op0",
"=",
"force_reg",
"(",
"tmode",
",",
"op0",
")",
";",
"op1",
"=",
"force_reg",
"(",
"mode1",
",",
"op1",
")",
";",
"ix86_expand_vector_set",
"(",
"true",
",",
"op0",
",",
"op1",
",",
"elt",
")",
";",
"return",
"op0",
";",
"}",
"</s>"
] | [
"A",
"subroutine",
"of",
"ix86_expand_builtin",
".",
"These",
"builtins",
"are",
"a",
"wrapper",
"around",
"ix86_expand_vector_set",
".",
"They",
"would",
"be",
"redundant",
"(",
"for",
"non-MMX",
")",
"if",
"we",
"had",
"a",
"language-level",
"syntax",
"for",
"referencing",
"vector",
"elements",
"."
] | [
"i386",
"0",
"0"
] | i3863 | ix86_expand_vec_set_builtin | i386 | CPU | GCC | 29,595 | 193 | 1 | [] |
[
"<s>",
"MachineBasicBlock",
"::",
"iterator",
"begin",
"(",
")",
"{",
"assert",
"(",
"Begin",
"!=",
"nullptr",
")",
";",
"return",
"Begin",
";",
"}",
"</s>"
] | [
"Recipe",
"iterator",
"methods",
"."
] | [
"M68k"
] | M68kCollapseMOVEMPass | begin | M68k | MPU | LLVM | 29,596 | 18 | 1 | [] |
[
"<s>",
"unsigned",
"CSKYInstrInfo",
"::",
"insertBranch",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"*",
"TBB",
",",
"MachineBasicBlock",
"*",
"FBB",
",",
"ArrayRef",
"<",
"MachineOperand",
">",
"Cond",
",",
"const",
"DebugLoc",
"&",
"DL",
",",
"int",
"*",
"BytesAdded",
")",
"const",
"{",
"if",
"(",
"BytesAdded",
")",
"*",
"BytesAdded",
"=",
"0",
";",
"assert",
"(",
"TBB",
"&&",
"\"insertBranch must not be told to insert a fallthrough\"",
")",
";",
"assert",
"(",
"(",
"Cond",
".",
"size",
"(",
")",
"==",
"2",
"||",
"Cond",
".",
"size",
"(",
")",
"==",
"0",
")",
"&&",
"\"CSKY branch conditions have two components!\"",
")",
";",
"if",
"(",
"Cond",
".",
"empty",
"(",
")",
")",
"{",
"MachineInstr",
"&",
"MI",
"=",
"*",
"BuildMI",
"(",
"&",
"MBB",
",",
"DL",
",",
"get",
"(",
"CSKY",
"::",
"BR32",
")",
")",
".",
"addMBB",
"(",
"TBB",
")",
";",
"if",
"(",
"BytesAdded",
")",
"*",
"BytesAdded",
"+=",
"getInstSizeInBytes",
"(",
"MI",
")",
";",
"return",
"1",
";",
"}",
"unsigned",
"Opc",
"=",
"Cond",
"[",
"0",
"]",
".",
"getImm",
"(",
")",
";",
"MachineInstr",
"&",
"CondMI",
"=",
"*",
"BuildMI",
"(",
"&",
"MBB",
",",
"DL",
",",
"get",
"(",
"Opc",
")",
")",
".",
"add",
"(",
"Cond",
"[",
"1",
"]",
")",
".",
"addMBB",
"(",
"TBB",
")",
";",
"if",
"(",
"BytesAdded",
")",
"*",
"BytesAdded",
"+=",
"getInstSizeInBytes",
"(",
"CondMI",
")",
";",
"if",
"(",
"!",
"FBB",
")",
"return",
"1",
";",
"MachineInstr",
"&",
"MI",
"=",
"*",
"BuildMI",
"(",
"&",
"MBB",
",",
"DL",
",",
"get",
"(",
"CSKY",
"::",
"BR32",
")",
")",
".",
"addMBB",
"(",
"FBB",
")",
";",
"if",
"(",
"BytesAdded",
")",
"*",
"BytesAdded",
"+=",
"getInstSizeInBytes",
"(",
"MI",
")",
";",
"return",
"2",
";",
"}",
"</s>"
] | [
"Insert",
"branch",
"code",
"into",
"the",
"end",
"of",
"the",
"specified",
"MachineBasicBlock",
"."
] | [
"CSKY",
"CSKY",
"0",
"\"insertBranch must not be told to insert a fallthrough\"",
"2",
"0",
"\"CSKY branch conditions have two components!\"",
"CSKY::BR32",
"1",
"0",
"1",
"1",
"CSKY::BR32",
"2"
] | CSKYInstrInfo1 | insertBranch | CSKY | CPU | LLVM | 29,597 | 227 | 1 | [] |
[
"<s>",
"bool",
"SITargetLowering",
"::",
"enableAggressiveFMAFusion",
"(",
"EVT",
"VT",
")",
"const",
"{",
"return",
"true",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"target",
"always",
"benefits",
"from",
"combining",
"into",
"FMA",
"for",
"a",
"given",
"value",
"type",
"."
] | [
"R600",
"SI"
] | SIISelLowering111 | enableAggressiveFMAFusion | R600 | GPU | LLVM | 29,598 | 14 | 1 | [] |
[
"<s>",
"bool",
"MipsSETargetLowering",
"::",
"isEligibleForTailCallOptimization",
"(",
"const",
"CCState",
"&",
"CCInfo",
",",
"unsigned",
"NextStackOffset",
",",
"const",
"MipsFunctionInfo",
"&",
"FI",
")",
"const",
"{",
"if",
"(",
"!",
"UseMipsTailCalls",
")",
"return",
"false",
";",
"if",
"(",
"FI",
".",
"isISR",
"(",
")",
")",
"return",
"false",
";",
"if",
"(",
"CCInfo",
".",
"getInRegsParamsCount",
"(",
")",
">",
"0",
"||",
"FI",
".",
"hasByvalArg",
"(",
")",
")",
"return",
"false",
";",
"return",
"NextStackOffset",
"<=",
"FI",
".",
"getIncomingArgSize",
"(",
")",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"call",
"can",
"be",
"lowered",
"as",
"a",
"tail",
"call",
"."
] | [
"Mips",
"Mips",
"Mips",
"Mips",
"0"
] | MipsSEISelLowering11 | isEligibleForTailCallOptimization | Mips | CPU | LLVM | 29,599 | 68 | 1 | [] |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.