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>",
"std",
"::",
"pair",
"<",
"unsigned",
",",
"unsigned",
">",
"AMDGPUSubtarget",
"::",
"getWavesPerEU",
"(",
"const",
"Function",
"&",
"F",
")",
"const",
"{",
"std",
"::",
"pair",
"<",
"unsigned",
",",
"unsigned",
">",
"Default",
"(",
"1",
",",
"0",
")",
";",
"std",
"::",
"pair",
"<",
"unsigned",
",",
"unsigned",
">",
"FlatWorkGroupSizes",
"=",
"getFlatWorkGroupSizes",
"(",
"F",
")",
";",
"unsigned",
"MinImpliedByFlatWorkGroupSize",
"=",
"getMaxWavesPerEU",
"(",
"FlatWorkGroupSizes",
".",
"second",
")",
";",
"bool",
"RequestedFlatWorkGroupSize",
"=",
"false",
";",
"if",
"(",
"F",
".",
"hasFnAttribute",
"(",
"\"amdgpu-max-work-group-size\"",
")",
"||",
"F",
".",
"hasFnAttribute",
"(",
"\"amdgpu-flat-work-group-size\"",
")",
")",
"{",
"Default",
".",
"first",
"=",
"MinImpliedByFlatWorkGroupSize",
";",
"RequestedFlatWorkGroupSize",
"=",
"true",
";",
"}",
"std",
"::",
"pair",
"<",
"unsigned",
",",
"unsigned",
">",
"Requested",
"=",
"AMDGPU",
"::",
"getIntegerPairAttribute",
"(",
"F",
",",
"\"amdgpu-waves-per-eu\"",
",",
"Default",
",",
"true",
")",
";",
"if",
"(",
"Requested",
".",
"second",
"&&",
"Requested",
".",
"first",
">",
"Requested",
".",
"second",
")",
"return",
"Default",
";",
"if",
"(",
"Requested",
".",
"first",
"<",
"getMinWavesPerEU",
"(",
")",
"||",
"Requested",
".",
"first",
">",
"getMaxWavesPerEU",
"(",
")",
")",
"return",
"Default",
";",
"if",
"(",
"Requested",
".",
"second",
">",
"getMaxWavesPerEU",
"(",
")",
")",
"return",
"Default",
";",
"if",
"(",
"RequestedFlatWorkGroupSize",
"&&",
"Requested",
".",
"first",
">",
"MinImpliedByFlatWorkGroupSize",
")",
"return",
"Default",
";",
"return",
"Requested",
";",
"}",
"</s>"
] | [
"Overload",
"which",
"uses",
"the",
"specified",
"values",
"for",
"the",
"flat",
"work",
"group",
"sizes",
",",
"rather",
"than",
"querying",
"the",
"function",
"itself",
"."
] | [
"AMDGPU",
"AMDGPU",
"1",
"0",
"\"amdgpu-max-work-group-size\"",
"\"amdgpu-flat-work-group-size\"",
"AMDGPU::getIntegerPairAttribute",
"\"amdgpu-waves-per-eu\""
] | AMDGPUSubtarget38 | getWavesPerEU | AMDGPU | GPU | LLVM | 9,100 | 183 | 1 | [] |
[
"<s>",
"bool",
"doFinalization",
"(",
"Module",
"&",
"M",
")",
"override",
"{",
"return",
"false",
";",
"}",
"</s>"
] | [
"doFinalization",
"-",
"Virtual",
"method",
"overriden",
"by",
"subclasses",
"to",
"do",
"any",
"necessary",
"clean",
"up",
"after",
"all",
"passes",
"have",
"run",
"."
] | [
"Patmos"
] | PatmosSPBundling1 | doFinalization | Patmos | VLIW | LLVM | 9,101 | 13 | 1 | [] |
[
"<s>",
"static",
"void",
"ix86_emit_vec_binop",
"(",
"enum",
"rtx_code",
"code",
",",
"machine_mode",
"mode",
",",
"rtx",
"dst",
",",
"rtx",
"src1",
",",
"rtx",
"src2",
")",
"{",
"rtx",
"tmp",
";",
"tmp",
"=",
"gen_rtx_SET",
"(",
"dst",
",",
"gen_rtx_fmt_ee",
"(",
"code",
",",
"mode",
",",
"src1",
",",
"src2",
")",
")",
";",
"if",
"(",
"GET_MODE_SIZE",
"(",
"mode",
")",
"<=",
"GET_MODE_SIZE",
"(",
"SImode",
")",
"&&",
"GET_MODE_CLASS",
"(",
"mode",
")",
"==",
"MODE_VECTOR_INT",
")",
"{",
"rtx",
"clob",
"=",
"gen_rtx_CLOBBER",
"(",
"VOIDmode",
",",
"gen_rtx_REG",
"(",
"CCmode",
",",
"FLAGS_REG",
")",
")",
";",
"tmp",
"=",
"gen_rtx_PARALLEL",
"(",
"VOIDmode",
",",
"gen_rtvec",
"(",
"2",
",",
"tmp",
",",
"clob",
")",
")",
";",
"}",
"emit_insn",
"(",
"tmp",
")",
";",
"}",
"</s>"
] | [
"Emit",
"x86",
"binary",
"operand",
"CODE",
"in",
"mode",
"MODE",
"for",
"SSE",
"vector",
"instructions",
"that",
"can",
"be",
"performed",
"using",
"GP",
"registers",
"."
] | [
"i386",
"2"
] | i386-expand | ix86_emit_vec_binop | i386 | CPU | GCC | 9,102 | 100 | 1 | [] |
[
"<s>",
"static",
"SDValue",
"matchBinOpReduction",
"(",
"SDNode",
"*",
"Extract",
",",
"unsigned",
"&",
"BinOp",
",",
"ArrayRef",
"<",
"ISD",
"::",
"NodeType",
">",
"CandidateBinOps",
")",
"{",
"if",
"(",
"(",
"Extract",
"->",
"getOpcode",
"(",
")",
"!=",
"ISD",
"::",
"EXTRACT_VECTOR_ELT",
")",
"||",
"!",
"isNullConstant",
"(",
"Extract",
"->",
"getOperand",
"(",
"1",
")",
")",
")",
"return",
"SDValue",
"(",
")",
";",
"SDValue",
"Op",
"=",
"Extract",
"->",
"getOperand",
"(",
"0",
")",
";",
"unsigned",
"Stages",
"=",
"Log2_32",
"(",
"Op",
".",
"getValueType",
"(",
")",
".",
"getVectorNumElements",
"(",
")",
")",
";",
"if",
"(",
"llvm",
"::",
"none_of",
"(",
"CandidateBinOps",
",",
"[",
"Op",
"]",
"(",
"ISD",
"::",
"NodeType",
"BinOp",
")",
"{",
"return",
"Op",
".",
"getOpcode",
"(",
")",
"==",
"unsigned",
"(",
"BinOp",
")",
";",
"}",
")",
")",
"return",
"SDValue",
"(",
")",
";",
"unsigned",
"CandidateBinOp",
"=",
"Op",
".",
"getOpcode",
"(",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"<",
"Stages",
";",
"++",
"i",
")",
"{",
"if",
"(",
"Op",
".",
"getOpcode",
"(",
")",
"!=",
"CandidateBinOp",
")",
"return",
"SDValue",
"(",
")",
";",
"ShuffleVectorSDNode",
"*",
"Shuffle",
"=",
"dyn_cast",
"<",
"ShuffleVectorSDNode",
">",
"(",
"Op",
".",
"getOperand",
"(",
"0",
")",
".",
"getNode",
"(",
")",
")",
";",
"if",
"(",
"Shuffle",
")",
"{",
"Op",
"=",
"Op",
".",
"getOperand",
"(",
"1",
")",
";",
"}",
"else",
"{",
"Shuffle",
"=",
"dyn_cast",
"<",
"ShuffleVectorSDNode",
">",
"(",
"Op",
".",
"getOperand",
"(",
"1",
")",
".",
"getNode",
"(",
")",
")",
";",
"Op",
"=",
"Op",
".",
"getOperand",
"(",
"0",
")",
";",
"}",
"if",
"(",
"!",
"Shuffle",
"||",
"Shuffle",
"->",
"getOperand",
"(",
"0",
")",
"!=",
"Op",
")",
"return",
"SDValue",
"(",
")",
";",
"for",
"(",
"int",
"Index",
"=",
"0",
",",
"MaskEnd",
"=",
"1",
"<<",
"i",
";",
"Index",
"<",
"MaskEnd",
";",
"++",
"Index",
")",
"if",
"(",
"Shuffle",
"->",
"getMaskElt",
"(",
"Index",
")",
"!=",
"MaskEnd",
"+",
"Index",
")",
"return",
"SDValue",
"(",
")",
";",
"}",
"BinOp",
"=",
"CandidateBinOp",
";",
"return",
"Op",
";",
"}",
"</s>"
] | [
"Match",
"a",
"binop",
"+",
"shuffle",
"pyramid",
"that",
"represents",
"a",
"horizontal",
"reduction",
"over",
"the",
"elements",
"of",
"a",
"vector",
"starting",
"from",
"the",
"EXTRACT_VECTOR_ELT",
"node",
"/p",
"Extract",
"."
] | [
"X86",
"ISD::NodeType",
"ISD::EXTRACT_VECTOR_ELT",
"1",
"0",
"ISD::NodeType",
"0",
"0",
"1",
"1",
"0",
"0",
"0",
"1"
] | X86ISelLowering102 | matchBinOpReduction | X86 | CPU | LLVM | 9,103 | 287 | 1 | [] |
[
"<s>",
"void",
"AArch64AsmBackend",
"::",
"relaxInstruction",
"(",
"MCInst",
"&",
"Inst",
",",
"const",
"MCSubtargetInfo",
"&",
"STI",
")",
"const",
"{",
"llvm_unreachable",
"(",
"\"AArch64AsmBackend::relaxInstruction() unimplemented\"",
")",
";",
"}",
"</s>"
] | [
"Relax",
"the",
"instruction",
"in",
"the",
"given",
"fragment",
"to",
"the",
"next",
"wider",
"instruction",
"."
] | [
"AArch64",
"AArch64",
"\"AArch64AsmBackend::relaxInstruction() unimplemented\""
] | AArch64AsmBackend (2)1 | relaxInstruction | AArch64 | CPU | LLVM | 9,104 | 22 | 1 | [] |
[
"<s>",
"void",
"X86IntelInstPrinter",
"::",
"printInst",
"(",
"const",
"MCInst",
"*",
"MI",
")",
"{",
"printInstruction",
"(",
"MI",
")",
";",
"}",
"</s>"
] | [
"Print",
"the",
"specified",
"MCInst",
"to",
"the",
"specified",
"raw_ostream",
"."
] | [
"X86",
"X86"
] | X86IntelInstPrinter26 | printInst | X86 | CPU | LLVM | 9,105 | 17 | 1 | [] |
[
"<s>",
"bool",
"RISCVFrameLowering",
"::",
"spillCalleeSavedRegisters",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"MI",
",",
"ArrayRef",
"<",
"CalleeSavedInfo",
">",
"CSI",
",",
"const",
"TargetRegisterInfo",
"*",
"TRI",
")",
"const",
"{",
"if",
"(",
"CSI",
".",
"empty",
"(",
")",
")",
"return",
"true",
";",
"MachineFunction",
"*",
"MF",
"=",
"MBB",
".",
"getParent",
"(",
")",
";",
"const",
"TargetInstrInfo",
"&",
"TII",
"=",
"*",
"MF",
"->",
"getSubtarget",
"(",
")",
".",
"getInstrInfo",
"(",
")",
";",
"DebugLoc",
"DL",
";",
"if",
"(",
"MI",
"!=",
"MBB",
".",
"end",
"(",
")",
"&&",
"!",
"MI",
"->",
"isDebugInstr",
"(",
")",
")",
"DL",
"=",
"MI",
"->",
"getDebugLoc",
"(",
")",
";",
"const",
"char",
"*",
"SpillLibCall",
"=",
"getSpillLibCallName",
"(",
"*",
"MF",
",",
"CSI",
")",
";",
"if",
"(",
"SpillLibCall",
")",
"{",
"BuildMI",
"(",
"MBB",
",",
"MI",
",",
"DL",
",",
"TII",
".",
"get",
"(",
"RISCV",
"::",
"PseudoCALLReg",
")",
",",
"RISCV",
"::",
"X5",
")",
".",
"addExternalSymbol",
"(",
"SpillLibCall",
",",
"RISCVII",
"::",
"MO_CALL",
")",
".",
"setMIFlag",
"(",
"MachineInstr",
"::",
"FrameSetup",
")",
";",
"for",
"(",
"auto",
"&",
"CS",
":",
"CSI",
")",
"MBB",
".",
"addLiveIn",
"(",
"CS",
".",
"getReg",
"(",
")",
")",
";",
"}",
"const",
"auto",
"&",
"NonLibcallCSI",
"=",
"getNonLibcallCSI",
"(",
"*",
"MF",
",",
"CSI",
")",
";",
"for",
"(",
"auto",
"&",
"CS",
":",
"NonLibcallCSI",
")",
"{",
"Register",
"Reg",
"=",
"CS",
".",
"getReg",
"(",
")",
";",
"const",
"TargetRegisterClass",
"*",
"RC",
"=",
"TRI",
"->",
"getMinimalPhysRegClass",
"(",
"Reg",
")",
";",
"TII",
".",
"storeRegToStackSlot",
"(",
"MBB",
",",
"MI",
",",
"Reg",
",",
"!",
"MBB",
".",
"isLiveIn",
"(",
"Reg",
")",
",",
"CS",
".",
"getFrameIdx",
"(",
")",
",",
"RC",
",",
"TRI",
")",
";",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"spillCalleeSavedRegisters",
"-",
"Issues",
"instruction",
"(",
"s",
")",
"to",
"spill",
"all",
"callee",
"saved",
"registers",
"and",
"returns",
"true",
"if",
"it",
"is",
"n't",
"possible",
"/",
"profitable",
"to",
"do",
"so",
"by",
"issuing",
"a",
"series",
"of",
"store",
"instructions",
"via",
"storeRegToStackSlot",
"(",
")",
"."
] | [
"RISCV",
"RISCV",
"RISCV::PseudoCALLReg",
"RISCV::X5",
"RISCVII::MO_CALL"
] | RISCVFrameLowering (2) | spillCalleeSavedRegisters | RISCV | CPU | LLVM | 9,106 | 245 | 1 | [] |
[
"<s>",
"void",
"DLXPassConfig",
"::",
"addPreSched2",
"(",
")",
"{",
"addPass",
"(",
"createDLXMemAluCombinerPass",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"This",
"method",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"after",
"prolog-epilog",
"insertion",
"and",
"before",
"the",
"second",
"instruction",
"scheduling",
"pass",
"."
] | [
"DLX",
"DLX",
"DLX"
] | DLXTargetMachine | addPreSched2 | DLX | CPU | LLVM | 9,107 | 15 | 1 | [] |
[
"<s>",
"bool",
"TPCPassConfig",
"::",
"addPreISel",
"(",
")",
"{",
"bool",
"NoOpt",
"=",
"(",
"getOptLevel",
"(",
")",
"==",
"CodeGenOpt",
"::",
"None",
")",
";",
"if",
"(",
"!",
"NoOpt",
")",
"{",
"addPass",
"(",
"createTPCFMAoptPass",
"(",
")",
")",
";",
"addPass",
"(",
"createTPCUnbranchPass",
"(",
")",
")",
";",
"}",
"addPass",
"(",
"createTPCSelectorPreshaper",
"(",
")",
")",
";",
"addPass",
"(",
"createTPCSingleUseScalarOptimizer",
"(",
")",
")",
";",
"addPass",
"(",
"createAggressiveDCEPass",
"(",
")",
")",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"{",
"{",
"@",
"For",
"GlobalISel"
] | [
"TPC",
"TPC",
"TPC",
"TPC",
"TPC",
"TPC"
] | TPCTargetMachine | addPreISel | TPC | Virtual ISA | LLVM | 9,108 | 66 | 1 | [] |
[
"<s>",
"int",
"fix_bit_operand",
"(",
"rtx",
"*",
"operands",
",",
"enum",
"rtx_code",
"code",
")",
"{",
"if",
"(",
"code",
"==",
"AND",
"?",
"single_zero_operand",
"(",
"operands",
"[",
"2",
"]",
",",
"QImode",
")",
":",
"single_one_operand",
"(",
"operands",
"[",
"2",
"]",
",",
"QImode",
")",
")",
"{",
"if",
"(",
"GET_CODE",
"(",
"operands",
"[",
"0",
"]",
")",
"==",
"MEM",
"&&",
"!",
"OK_FOR_U",
"(",
"operands",
"[",
"0",
"]",
")",
")",
"{",
"rtx",
"mem",
"=",
"gen_rtx_MEM",
"(",
"GET_MODE",
"(",
"operands",
"[",
"0",
"]",
")",
",",
"copy_to_mode_reg",
"(",
"Pmode",
",",
"XEXP",
"(",
"operands",
"[",
"0",
"]",
",",
"0",
")",
")",
")",
";",
"MEM_COPY_ATTRIBUTES",
"(",
"mem",
",",
"operands",
"[",
"0",
"]",
")",
";",
"operands",
"[",
"0",
"]",
"=",
"mem",
";",
"}",
"if",
"(",
"GET_CODE",
"(",
"operands",
"[",
"1",
"]",
")",
"==",
"MEM",
"&&",
"!",
"OK_FOR_U",
"(",
"operands",
"[",
"1",
"]",
")",
")",
"{",
"rtx",
"mem",
"=",
"gen_rtx_MEM",
"(",
"GET_MODE",
"(",
"operands",
"[",
"1",
"]",
")",
",",
"copy_to_mode_reg",
"(",
"Pmode",
",",
"XEXP",
"(",
"operands",
"[",
"1",
"]",
",",
"0",
")",
")",
")",
";",
"MEM_COPY_ATTRIBUTES",
"(",
"mem",
",",
"operands",
"[",
"0",
"]",
")",
";",
"operands",
"[",
"1",
"]",
"=",
"mem",
";",
"}",
"return",
"0",
";",
"}",
"operands",
"[",
"1",
"]",
"=",
"force_reg",
"(",
"QImode",
",",
"operands",
"[",
"1",
"]",
")",
";",
"{",
"rtx",
"res",
"=",
"gen_reg_rtx",
"(",
"QImode",
")",
";",
"switch",
"(",
"code",
")",
"{",
"case",
"AND",
":",
"emit_insn",
"(",
"gen_andqi3_1",
"(",
"res",
",",
"operands",
"[",
"1",
"]",
",",
"operands",
"[",
"2",
"]",
")",
")",
";",
"break",
";",
"case",
"IOR",
":",
"emit_insn",
"(",
"gen_iorqi3_1",
"(",
"res",
",",
"operands",
"[",
"1",
"]",
",",
"operands",
"[",
"2",
"]",
")",
")",
";",
"break",
";",
"case",
"XOR",
":",
"emit_insn",
"(",
"gen_xorqi3_1",
"(",
"res",
",",
"operands",
"[",
"1",
"]",
",",
"operands",
"[",
"2",
"]",
")",
")",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"emit_insn",
"(",
"gen_movqi",
"(",
"operands",
"[",
"0",
"]",
",",
"res",
")",
")",
";",
"}",
"return",
"1",
";",
"}",
"</s>"
] | [
"Fix",
"the",
"operands",
"of",
"a",
"gen_xxx",
"so",
"that",
"it",
"could",
"become",
"a",
"bit",
"operating",
"insn",
"."
] | [
"h8300",
"2",
"2",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
"1",
"1",
"1",
"0",
"0",
"1",
"0",
"1",
"1",
"1",
"2",
"1",
"2",
"1",
"2",
"0",
"1"
] | h83003 | fix_bit_operand | h8300 | MPU | GCC | 9,109 | 304 | 1 | [] |
[
"<s>",
"bool",
"X86TTIImpl",
"::",
"isLegalNTLoad",
"(",
"Type",
"*",
"DataType",
",",
"unsigned",
"Alignment",
")",
"{",
"unsigned",
"DataSize",
"=",
"DL",
".",
"getTypeStoreSize",
"(",
"DataType",
")",
";",
"if",
"(",
"Alignment",
">=",
"DataSize",
"&&",
"(",
"DataSize",
"==",
"16",
"||",
"DataSize",
"==",
"32",
")",
")",
"return",
"DataSize",
"==",
"16",
"?",
"ST",
"->",
"hasSSE1",
"(",
")",
":",
"ST",
"->",
"hasAVX2",
"(",
")",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"the",
"target",
"supports",
"nontemporal",
"load",
"."
] | [
"X86",
"X86",
"16",
"32",
"16"
] | X86TargetTransformInfo104 | isLegalNTLoad | X86 | CPU | LLVM | 9,110 | 60 | 1 | [] |
[
"<s>",
"void",
"relaxInstruction",
"(",
"const",
"MCInst",
"&",
"Inst",
",",
"MCInst",
"&",
"Res",
")",
"const",
"{",
"llvm_unreachable",
"(",
"\"relaxInstruction is not implemented yet\"",
")",
";",
"}",
"</s>"
] | [
"Relax",
"the",
"instruction",
"in",
"the",
"given",
"fragment",
"to",
"the",
"next",
"wider",
"instruction",
"."
] | [
"TOY",
"\"relaxInstruction is not implemented yet\""
] | TOYAsmBackend | relaxInstruction | TOY | CPU | LLVM | 9,111 | 20 | 1 | [] |
[
"<s>",
"bool",
"runOnModule",
"(",
"Module",
"&",
"M",
")",
"override",
"{",
"CallGraph",
"CG",
"=",
"CallGraph",
"(",
"M",
")",
";",
"UsedList",
"=",
"getUsedList",
"(",
"M",
")",
";",
"bool",
"Changed",
"=",
"superAlignLDSGlobals",
"(",
"M",
")",
";",
"Changed",
"|=",
"processUsedLDS",
"(",
"CG",
",",
"M",
")",
";",
"for",
"(",
"Function",
"&",
"F",
":",
"M",
".",
"functions",
"(",
")",
")",
"{",
"if",
"(",
"F",
".",
"isDeclaration",
"(",
")",
")",
"continue",
";",
"if",
"(",
"!",
"AMDGPU",
"::",
"isKernel",
"(",
"F",
".",
"getCallingConv",
"(",
")",
")",
")",
"continue",
";",
"Changed",
"|=",
"processUsedLDS",
"(",
"CG",
",",
"M",
",",
"&",
"F",
")",
";",
"}",
"UsedList",
".",
"clear",
"(",
")",
";",
"return",
"Changed",
";",
"}",
"</s>"
] | [
"runOnModule",
"-",
"Virtual",
"method",
"overriden",
"by",
"subclasses",
"to",
"process",
"the",
"module",
"being",
"operated",
"on",
"."
] | [
"AMDGPU",
"AMDGPU::isKernel"
] | AMDGPULowerModuleLDSPass2 | runOnModule | AMDGPU | GPU | LLVM | 9,112 | 103 | 1 | [] |
[
"<s>",
"const",
"LegalizerInfo",
"*",
"ARMSubtarget",
"::",
"getLegalizerInfo",
"(",
")",
"const",
"{",
"return",
"Legalizer",
".",
"get",
"(",
")",
";",
"}",
"</s>"
] | [
"Expose",
"LegalizerInfo",
"so",
"the",
"clients",
"can",
"re-use",
"."
] | [
"ARM",
"ARM"
] | ARMSubtarget | getLegalizerInfo | ARM | CPU | LLVM | 9,113 | 18 | 1 | [] |
[
"<s>",
"static",
"bool",
"must_save_fp_p",
"(",
"void",
")",
"{",
"return",
"df_regs_ever_live_p",
"(",
"REG_FP",
")",
";",
"}",
"</s>"
] | [
"Determine",
"if",
"we",
"are",
"going",
"to",
"save",
"the",
"frame",
"pointer",
"in",
"the",
"prologue",
"."
] | [
"bfin"
] | bfin | must_save_fp_p | bfin | DSP | GCC | 9,114 | 14 | 1 | [] |
[
"<s>",
"int",
"needs_regstack_p",
"(",
")",
"{",
"int",
"i",
";",
"rtx",
"insn",
";",
"if",
"(",
"frame_pointer_needed",
")",
"return",
"1",
";",
"for",
"(",
"i",
"=",
"R_LR",
"(",
"127",
")",
";",
"i",
">=",
"R_LR",
"(",
"0",
")",
";",
"i",
"--",
")",
"if",
"(",
"regs_ever_live",
"[",
"i",
"]",
")",
"return",
"1",
";",
"for",
"(",
"insn",
"=",
"get_insns",
"(",
")",
";",
"insn",
";",
"insn",
"=",
"next_insn",
"(",
"insn",
")",
")",
"if",
"(",
"GET_CODE",
"(",
"insn",
")",
"==",
"CALL_INSN",
"||",
"(",
"GET_CODE",
"(",
"insn",
")",
"==",
"INSN",
"&&",
"GET_CODE",
"(",
"PATTERN",
"(",
"insn",
")",
")",
"==",
"SEQUENCE",
"&&",
"GET_CODE",
"(",
"XVECEXP",
"(",
"PATTERN",
"(",
"insn",
")",
",",
"0",
",",
"0",
")",
")",
"==",
"CALL_INSN",
")",
")",
"return",
"1",
";",
"return",
"0",
";",
"}",
"</s>"
] | [
"Return",
"1",
"if",
"the",
"current",
"function",
"will",
"adjust",
"the",
"register",
"stack",
"."
] | [
"a29k",
"1",
"127",
"0",
"1",
"0",
"0",
"1",
"0"
] | a29k | needs_regstack_p | a29k | MPU | GCC | 9,115 | 116 | 1 | [] |
[
"<s>",
"const",
"MCExpr",
"*",
"ARMTargetStreamer",
"::",
"addConstantPoolEntry",
"(",
"const",
"MCExpr",
"*",
"Expr",
",",
"SMLoc",
"Loc",
")",
"{",
"return",
"ConstantPools",
"->",
"addEntry",
"(",
"Streamer",
",",
"Expr",
",",
"4",
",",
"Loc",
")",
";",
"}",
"</s>"
] | [
"Add",
"a",
"new",
"entry",
"to",
"the",
"constant",
"pool",
"for",
"the",
"current",
"section",
"and",
"return",
"an",
"MCExpr",
"that",
"can",
"be",
"used",
"to",
"refer",
"to",
"the",
"constant",
"pool",
"location",
"."
] | [
"ARM",
"ARM",
"4"
] | ARMTargetStreamer (2) | addConstantPoolEntry | ARM | CPU | LLVM | 9,116 | 31 | 1 | [] |
[
"<s>",
"static",
"void",
"unicosmk_gen_dsib",
"(",
"unsigned",
"long",
"*",
"imaskP",
"ATTRIBUTE_UNUSED",
")",
"{",
"}",
"</s>"
] | [
"Set",
"up",
"the",
"dynamic",
"subprogram",
"information",
"block",
"(",
"DSIB",
")",
"and",
"update",
"the",
"frame",
"pointer",
"register",
"(",
"$",
"15",
")",
"for",
"subroutines",
"which",
"have",
"a",
"frame",
".",
"If",
"the",
"subroutine",
"does",
"n't",
"have",
"a",
"frame",
",",
"simply",
"increment",
"$",
"15",
"."
] | [
"alpha"
] | alpha3 | unicosmk_gen_dsib | alpha | MPU | GCC | 9,117 | 12 | 1 | [] |
[
"<s>",
"static",
"bool",
"rs6000_expand_vec_perm_const_1",
"(",
"rtx",
"target",
",",
"rtx",
"op0",
",",
"rtx",
"op1",
",",
"unsigned",
"char",
"perm0",
",",
"unsigned",
"char",
"perm1",
")",
"{",
"rtx",
"x",
";",
"if",
"(",
"(",
"perm0",
"&",
"2",
")",
"==",
"(",
"perm1",
"&",
"2",
")",
")",
"{",
"if",
"(",
"perm0",
"&",
"2",
")",
"op0",
"=",
"op1",
";",
"else",
"op1",
"=",
"op0",
";",
"}",
"if",
"(",
"rtx_equal_p",
"(",
"op0",
",",
"op1",
")",
")",
"{",
"perm0",
"=",
"perm0",
"&",
"1",
";",
"perm1",
"=",
"(",
"perm1",
"&",
"1",
")",
"+",
"2",
";",
"}",
"else",
"if",
"(",
"perm0",
"&",
"2",
")",
"{",
"if",
"(",
"perm1",
"&",
"2",
")",
"return",
"false",
";",
"perm0",
"-=",
"2",
";",
"perm1",
"+=",
"2",
";",
"std",
"::",
"swap",
"(",
"op0",
",",
"op1",
")",
";",
"}",
"else",
"if",
"(",
"(",
"perm1",
"&",
"2",
")",
"==",
"0",
")",
"return",
"false",
";",
"if",
"(",
"target",
"!=",
"NULL",
")",
"{",
"machine_mode",
"vmode",
",",
"dmode",
";",
"rtvec",
"v",
";",
"vmode",
"=",
"GET_MODE",
"(",
"target",
")",
";",
"gcc_assert",
"(",
"GET_MODE_NUNITS",
"(",
"vmode",
")",
"==",
"2",
")",
";",
"dmode",
"=",
"mode_for_vector",
"(",
"GET_MODE_INNER",
"(",
"vmode",
")",
",",
"4",
")",
".",
"require",
"(",
")",
";",
"x",
"=",
"gen_rtx_VEC_CONCAT",
"(",
"dmode",
",",
"op0",
",",
"op1",
")",
";",
"v",
"=",
"gen_rtvec",
"(",
"2",
",",
"GEN_INT",
"(",
"perm0",
")",
",",
"GEN_INT",
"(",
"perm1",
")",
")",
";",
"x",
"=",
"gen_rtx_VEC_SELECT",
"(",
"vmode",
",",
"x",
",",
"gen_rtx_PARALLEL",
"(",
"VOIDmode",
",",
"v",
")",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"target",
",",
"x",
")",
")",
";",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"Expand",
"a",
"Paired",
"Single",
"or",
"VSX",
"Permute",
"Doubleword",
"constant",
"permutation",
".",
"Return",
"true",
"if",
"we",
"match",
"an",
"efficient",
"implementation",
"."
] | [
"powerpcspe",
"2",
"2",
"2",
"1",
"1",
"2",
"2",
"2",
"2",
"2",
"2",
"0",
"2",
"4",
"2"
] | powerpcspe | rs6000_expand_vec_perm_const_1 | powerpcspe | CPU | GCC | 9,118 | 239 | 1 | [] |
[
"<s>",
"BitVector",
"HexagonRegisterInfo",
"::",
"getReservedRegs",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"BitVector",
"Reserved",
"(",
"getNumRegs",
"(",
")",
")",
";",
"Reserved",
".",
"set",
"(",
"HEXAGON_RESERVED_REG_1",
")",
";",
"Reserved",
".",
"set",
"(",
"HEXAGON_RESERVED_REG_2",
")",
";",
"Reserved",
".",
"set",
"(",
"Hexagon",
"::",
"R29",
")",
";",
"Reserved",
".",
"set",
"(",
"Hexagon",
"::",
"R30",
")",
";",
"Reserved",
".",
"set",
"(",
"Hexagon",
"::",
"R31",
")",
";",
"Reserved",
".",
"set",
"(",
"Hexagon",
"::",
"PC",
")",
";",
"Reserved",
".",
"set",
"(",
"Hexagon",
"::",
"D14",
")",
";",
"Reserved",
".",
"set",
"(",
"Hexagon",
"::",
"D15",
")",
";",
"Reserved",
".",
"set",
"(",
"Hexagon",
"::",
"LC0",
")",
";",
"Reserved",
".",
"set",
"(",
"Hexagon",
"::",
"LC1",
")",
";",
"Reserved",
".",
"set",
"(",
"Hexagon",
"::",
"SA0",
")",
";",
"Reserved",
".",
"set",
"(",
"Hexagon",
"::",
"SA1",
")",
";",
"Reserved",
".",
"set",
"(",
"Hexagon",
"::",
"UGP",
")",
";",
"Reserved",
".",
"set",
"(",
"Hexagon",
"::",
"GP",
")",
";",
"Reserved",
".",
"set",
"(",
"Hexagon",
"::",
"CS0",
")",
";",
"Reserved",
".",
"set",
"(",
"Hexagon",
"::",
"CS1",
")",
";",
"Reserved",
".",
"set",
"(",
"Hexagon",
"::",
"CS",
")",
";",
"return",
"Reserved",
";",
"}",
"</s>"
] | [
"getReservedRegs",
"-",
"Returns",
"a",
"bitset",
"indexed",
"by",
"physical",
"register",
"number",
"indicating",
"if",
"a",
"register",
"is",
"a",
"special",
"register",
"that",
"has",
"particular",
"uses",
"and",
"should",
"be",
"considered",
"unavailable",
"at",
"all",
"times",
",",
"e.g",
"."
] | [
"Hexagon",
"Hexagon",
"Hexagon::R29",
"Hexagon::R30",
"Hexagon::R31",
"Hexagon::PC",
"Hexagon::D14",
"Hexagon::D15",
"Hexagon::LC0",
"Hexagon::LC1",
"Hexagon::SA0",
"Hexagon::SA1",
"Hexagon::UGP",
"Hexagon::GP",
"Hexagon::CS0",
"Hexagon::CS1",
"Hexagon::CS"
] | HexagonRegisterInfo5 | getReservedRegs | Hexagon | DSP | LLVM | 9,119 | 173 | 1 | [] |
[
"<s>",
"bool",
"ARMBasicBlockUtils",
"::",
"isBBInRange",
"(",
"MachineInstr",
"*",
"MI",
",",
"MachineBasicBlock",
"*",
"DestBB",
",",
"unsigned",
"MaxDisp",
")",
"const",
"{",
"unsigned",
"PCAdj",
"=",
"isThumb",
"?",
"4",
":",
"8",
";",
"unsigned",
"BrOffset",
"=",
"getOffsetOf",
"(",
"MI",
")",
"+",
"PCAdj",
";",
"unsigned",
"DestOffset",
"=",
"BBInfo",
"[",
"DestBB",
"->",
"getNumber",
"(",
")",
"]",
".",
"Offset",
";",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"Branch of destination \"",
"<<",
"printMBBReference",
"(",
"*",
"DestBB",
")",
"<<",
"\" from \"",
"<<",
"printMBBReference",
"(",
"*",
"MI",
"->",
"getParent",
"(",
")",
")",
"<<",
"\" max delta=\"",
"<<",
"MaxDisp",
"<<",
"\" from \"",
"<<",
"getOffsetOf",
"(",
"MI",
")",
"<<",
"\" to \"",
"<<",
"DestOffset",
"<<",
"\" offset \"",
"<<",
"int",
"(",
"DestOffset",
"-",
"BrOffset",
")",
"<<",
"\"\\t\"",
"<<",
"*",
"MI",
")",
";",
"if",
"(",
"BrOffset",
"<=",
"DestOffset",
")",
"{",
"if",
"(",
"DestOffset",
"-",
"BrOffset",
"<=",
"MaxDisp",
")",
"return",
"true",
";",
"}",
"else",
"{",
"if",
"(",
"BrOffset",
"-",
"DestOffset",
"<=",
"MaxDisp",
")",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"isBBInRange",
"-",
"Returns",
"true",
"if",
"the",
"distance",
"between",
"specific",
"MI",
"and",
"specific",
"BB",
"can",
"fit",
"in",
"MI",
"'s",
"displacement",
"field",
"."
] | [
"ARM",
"ARM",
"4",
"8",
"\"Branch of destination \"",
"\" from \"",
"\" max delta=\"",
"\" from \"",
"\" to \"",
"\" offset \"",
"\"\\t\""
] | ARMBasicBlockInfo | isBBInRange | ARM | CPU | LLVM | 9,120 | 144 | 1 | [] |
[
"<s>",
"bool",
"aarch64_expand_vec_perm_const",
"(",
"rtx",
"target",
",",
"rtx",
"op0",
",",
"rtx",
"op1",
",",
"rtx",
"sel",
")",
"{",
"struct",
"expand_vec_perm_d",
"d",
";",
"int",
"i",
",",
"nelt",
",",
"which",
";",
"d",
".",
"target",
"=",
"target",
";",
"d",
".",
"op0",
"=",
"op0",
";",
"d",
".",
"op1",
"=",
"op1",
";",
"d",
".",
"vmode",
"=",
"GET_MODE",
"(",
"target",
")",
";",
"gcc_assert",
"(",
"VECTOR_MODE_P",
"(",
"d",
".",
"vmode",
")",
")",
";",
"d",
".",
"nelt",
"=",
"nelt",
"=",
"GET_MODE_NUNITS",
"(",
"d",
".",
"vmode",
")",
";",
"d",
".",
"testing_p",
"=",
"false",
";",
"for",
"(",
"i",
"=",
"which",
"=",
"0",
";",
"i",
"<",
"nelt",
";",
"++",
"i",
")",
"{",
"rtx",
"e",
"=",
"XVECEXP",
"(",
"sel",
",",
"0",
",",
"i",
")",
";",
"int",
"ei",
"=",
"INTVAL",
"(",
"e",
")",
"&",
"(",
"2",
"*",
"nelt",
"-",
"1",
")",
";",
"which",
"|=",
"(",
"ei",
"<",
"nelt",
"?",
"1",
":",
"2",
")",
";",
"d",
".",
"perm",
"[",
"i",
"]",
"=",
"ei",
";",
"}",
"switch",
"(",
"which",
")",
"{",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"case",
"3",
":",
"d",
".",
"one_vector_p",
"=",
"false",
";",
"if",
"(",
"!",
"rtx_equal_p",
"(",
"op0",
",",
"op1",
")",
")",
"break",
";",
"case",
"2",
":",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"nelt",
";",
"++",
"i",
")",
"d",
".",
"perm",
"[",
"i",
"]",
"&=",
"nelt",
"-",
"1",
";",
"d",
".",
"op0",
"=",
"op1",
";",
"d",
".",
"one_vector_p",
"=",
"true",
";",
"break",
";",
"case",
"1",
":",
"d",
".",
"op1",
"=",
"op0",
";",
"d",
".",
"one_vector_p",
"=",
"true",
";",
"break",
";",
"}",
"return",
"aarch64_expand_vec_perm_const_1",
"(",
"&",
"d",
")",
";",
"}",
"</s>"
] | [
"Expand",
"a",
"vec_perm_const",
"pattern",
"."
] | [
"aarch64",
"0",
"0",
"2",
"1",
"1",
"2",
"3",
"2",
"0",
"1",
"1"
] | aarch642 | aarch64_expand_vec_perm_const | aarch64 | CPU | GCC | 9,121 | 248 | 1 | [] |
[
"<s>",
"bool",
"PPCAsmPrinter",
"::",
"PrintAsmOperand",
"(",
"const",
"MachineInstr",
"*",
"MI",
",",
"unsigned",
"OpNo",
",",
"const",
"char",
"*",
"ExtraCode",
",",
"raw_ostream",
"&",
"O",
")",
"{",
"if",
"(",
"ExtraCode",
"&&",
"ExtraCode",
"[",
"0",
"]",
")",
"{",
"if",
"(",
"ExtraCode",
"[",
"1",
"]",
"!=",
"0",
")",
"return",
"true",
";",
"switch",
"(",
"ExtraCode",
"[",
"0",
"]",
")",
"{",
"default",
":",
"return",
"AsmPrinter",
"::",
"PrintAsmOperand",
"(",
"MI",
",",
"OpNo",
",",
"ExtraCode",
",",
"O",
")",
";",
"case",
"'L'",
":",
"if",
"(",
"!",
"MI",
"->",
"getOperand",
"(",
"OpNo",
")",
".",
"isReg",
"(",
")",
"||",
"OpNo",
"+",
"1",
"==",
"MI",
"->",
"getNumOperands",
"(",
")",
"||",
"!",
"MI",
"->",
"getOperand",
"(",
"OpNo",
"+",
"1",
")",
".",
"isReg",
"(",
")",
")",
"return",
"true",
";",
"++",
"OpNo",
";",
"break",
";",
"case",
"'I'",
":",
"if",
"(",
"MI",
"->",
"getOperand",
"(",
"OpNo",
")",
".",
"isImm",
"(",
")",
")",
"O",
"<<",
"\"i\"",
";",
"return",
"false",
";",
"case",
"'x'",
":",
"if",
"(",
"!",
"MI",
"->",
"getOperand",
"(",
"OpNo",
")",
".",
"isReg",
"(",
")",
")",
"return",
"true",
";",
"unsigned",
"Reg",
"=",
"MI",
"->",
"getOperand",
"(",
"OpNo",
")",
".",
"getReg",
"(",
")",
";",
"if",
"(",
"PPCInstrInfo",
"::",
"isVRRegister",
"(",
"Reg",
")",
")",
"Reg",
"=",
"PPC",
"::",
"VSX32",
"+",
"(",
"Reg",
"-",
"PPC",
"::",
"V0",
")",
";",
"else",
"if",
"(",
"PPCInstrInfo",
"::",
"isVFRegister",
"(",
"Reg",
")",
")",
"Reg",
"=",
"PPC",
"::",
"VSX32",
"+",
"(",
"Reg",
"-",
"PPC",
"::",
"VF0",
")",
";",
"const",
"char",
"*",
"RegName",
";",
"RegName",
"=",
"PPCInstPrinter",
"::",
"getRegisterName",
"(",
"Reg",
")",
";",
"RegName",
"=",
"PPCRegisterInfo",
"::",
"stripRegisterPrefix",
"(",
"RegName",
")",
";",
"O",
"<<",
"RegName",
";",
"return",
"false",
";",
"}",
"}",
"printOperand",
"(",
"MI",
",",
"OpNo",
",",
"O",
")",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"PrintAsmOperand",
"-",
"Print",
"out",
"an",
"operand",
"for",
"an",
"inline",
"asm",
"expression",
"."
] | [
"PowerPC",
"PPC",
"0",
"1",
"0",
"0",
"1",
"1",
"\"i\"",
"PPC",
"PPC::VSX32",
"PPC::V0",
"PPC",
"PPC::VSX32",
"PPC::VF0",
"PPC",
"PPC"
] | PPCAsmPrinter115 | PrintAsmOperand | PowerPC | CPU | LLVM | 9,122 | 267 | 1 | [] |
[
"<s>",
"void",
"SystemZPassConfig",
"::",
"addIRPasses",
"(",
")",
"{",
"TargetPassConfig",
"::",
"addIRPasses",
"(",
")",
";",
"}",
"</s>"
] | [
"Add",
"common",
"target",
"configurable",
"passes",
"that",
"perform",
"LLVM",
"IR",
"to",
"IR",
"transforms",
"following",
"machine",
"independent",
"optimization",
"."
] | [
"SystemZ",
"SystemZ"
] | SystemZTargetMachine12 | addIRPasses | SystemZ | CPU | LLVM | 9,123 | 14 | 1 | [] |
[
"<s>",
"static",
"bool",
"loongarch_int_order_operand_ok_p",
"(",
"enum",
"rtx_code",
"code",
",",
"rtx",
"cmp1",
")",
"{",
"switch",
"(",
"code",
")",
"{",
"case",
"GT",
":",
"case",
"GTU",
":",
"return",
"reg_or_0_operand",
"(",
"cmp1",
",",
"VOIDmode",
")",
";",
"case",
"GE",
":",
"case",
"GEU",
":",
"return",
"cmp1",
"==",
"const1_rtx",
";",
"case",
"LT",
":",
"case",
"LTU",
":",
"return",
"arith_operand",
"(",
"cmp1",
",",
"VOIDmode",
")",
";",
"case",
"LE",
":",
"return",
"sle_operand",
"(",
"cmp1",
",",
"VOIDmode",
")",
";",
"case",
"LEU",
":",
"return",
"sleu_operand",
"(",
"cmp1",
",",
"VOIDmode",
")",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"CMP1",
"is",
"a",
"suitable",
"second",
"operand",
"for",
"integer",
"ordering",
"test",
"CODE",
"."
] | [
"loongarch"
] | loongarch | loongarch_int_order_operand_ok_p | loongarch | CPU | GCC | 9,124 | 86 | 1 | [] |
[
"<s>",
"virtual",
"StringRef",
"getPassName",
"(",
")",
"const",
"override",
"{",
"return",
"\"Teak DAG->DAG Pattern Instruction Selection\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"Teak",
"\"Teak DAG->DAG Pattern Instruction Selection\""
] | TeakISelDAGToDAG | getPassName | Teak | DSP | LLVM | 9,125 | 12 | 1 | [] |
[
"<s>",
"void",
"avr_final_prescan_insn",
"(",
"rtx_insn",
"*",
"insn",
",",
"rtx",
"*",
"operand",
"ATTRIBUTE_UNUSED",
",",
"int",
"num_operands",
"ATTRIBUTE_UNUSED",
")",
"{",
"if",
"(",
"avr_log",
".",
"rtx_costs",
")",
"{",
"rtx",
"set",
"=",
"single_set",
"(",
"insn",
")",
";",
"if",
"(",
"set",
")",
"fprintf",
"(",
"asm_out_file",
",",
"\"/* DEBUG: cost = %d. */\\n\"",
",",
"set_src_cost",
"(",
"SET_SRC",
"(",
"set",
")",
",",
"optimize_insn_for_speed_p",
"(",
")",
")",
")",
";",
"else",
"fprintf",
"(",
"asm_out_file",
",",
"\"/* DEBUG: pattern-cost = %d. */\\n\"",
",",
"rtx_cost",
"(",
"PATTERN",
"(",
"insn",
")",
",",
"INSN",
",",
"0",
",",
"optimize_insn_for_speed_p",
"(",
")",
")",
")",
";",
"}",
"}",
"</s>"
] | [
"Output",
"insn",
"cost",
"for",
"next",
"insn",
"."
] | [
"avr",
"\"/* DEBUG: cost = %d. */\\n\"",
"\"/* DEBUG: pattern-cost = %d. */\\n\"",
"0"
] | avr4 | avr_final_prescan_insn | avr | MPU | GCC | 9,126 | 81 | 1 | [] |
[
"<s>",
"bool",
"Inserter",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"F",
")",
"{",
"Cpu0FunctionInfo",
"*",
"Cpu0FI",
"=",
"F",
".",
"getInfo",
"<",
"Cpu0FunctionInfo",
">",
"(",
")",
";",
"if",
"(",
"(",
"TM",
".",
"getRelocationModel",
"(",
")",
"!=",
"Reloc",
"::",
"PIC_",
")",
"||",
"(",
"!",
"Cpu0FI",
"->",
"globalBaseRegFixed",
"(",
")",
")",
")",
"return",
"false",
";",
"bool",
"Changed",
"=",
"false",
";",
"int",
"FI",
"=",
"Cpu0FI",
"->",
"getGPFI",
"(",
")",
";",
"for",
"(",
"MachineFunction",
"::",
"iterator",
"MFI",
"=",
"F",
".",
"begin",
"(",
")",
",",
"MFE",
"=",
"F",
".",
"end",
"(",
")",
";",
"MFI",
"!=",
"MFE",
";",
"++",
"MFI",
")",
"{",
"MachineBasicBlock",
"&",
"MBB",
"=",
"*",
"MFI",
";",
"MachineBasicBlock",
"::",
"iterator",
"I",
"=",
"MFI",
"->",
"begin",
"(",
")",
";",
"if",
"(",
"MBB",
".",
"isLandingPad",
"(",
")",
")",
"{",
"for",
"(",
";",
"I",
"->",
"getOpcode",
"(",
")",
"!=",
"TargetOpcode",
"::",
"EH_LABEL",
";",
"++",
"I",
")",
";",
"++",
"I",
";",
"DebugLoc",
"dl",
"=",
"I",
"!=",
"MBB",
".",
"end",
"(",
")",
"?",
"I",
"->",
"getDebugLoc",
"(",
")",
":",
"DebugLoc",
"(",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"dl",
",",
"TII",
"->",
"get",
"(",
"Cpu0",
"::",
"LD",
")",
",",
"Cpu0",
"::",
"GP",
")",
".",
"addFrameIndex",
"(",
"FI",
")",
".",
"addImm",
"(",
"0",
")",
";",
"Changed",
"=",
"true",
";",
"}",
"while",
"(",
"I",
"!=",
"MFI",
"->",
"end",
"(",
")",
")",
"{",
"if",
"(",
"I",
"->",
"getOpcode",
"(",
")",
"!=",
"Cpu0",
"::",
"JALR",
")",
"{",
"++",
"I",
";",
"continue",
";",
"}",
"DebugLoc",
"dl",
"=",
"I",
"->",
"getDebugLoc",
"(",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"++",
"I",
",",
"dl",
",",
"TII",
"->",
"get",
"(",
"Cpu0",
"::",
"LD",
")",
",",
"Cpu0",
"::",
"GP",
")",
".",
"addFrameIndex",
"(",
"FI",
")",
".",
"addImm",
"(",
"0",
")",
";",
"Changed",
"=",
"true",
";",
"}",
"}",
"return",
"Changed",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"Cpu0",
"Cpu0",
"Cpu0",
"Cpu0",
"Cpu0",
"Cpu0",
"Cpu0::LD",
"Cpu0::GP",
"0",
"Cpu0::JALR",
"Cpu0::LD",
"Cpu0::GP",
"0"
] | Cpu0EmitGPRestore1 | runOnMachineFunction | Cpu0 | CPU | LLVM | 9,127 | 279 | 1 | [] |
[
"<s>",
"bool",
"HexagonShuffler",
"::",
"check",
"(",
"const",
"bool",
"RequireShuffle",
")",
"{",
"const",
"HexagonPacketSummary",
"Summary",
"=",
"GetPacketSummary",
"(",
")",
";",
"if",
"(",
"!",
"applySlotRestrictions",
"(",
"Summary",
",",
"RequireShuffle",
")",
")",
"return",
"false",
";",
"if",
"(",
"!",
"ValidPacketMemoryOps",
"(",
"Summary",
")",
")",
"{",
"reportError",
"(",
"\"invalid instruction packet\"",
")",
";",
"return",
"false",
";",
"}",
"if",
"(",
"RequireShuffle",
")",
"ValidResourceUsage",
"(",
"Summary",
")",
";",
"return",
"!",
"CheckFailure",
";",
"}",
"</s>"
] | [
"Check",
"if",
"the",
"constraints",
"are",
"satisfiable",
"."
] | [
"Hexagon",
"Hexagon",
"Hexagon",
"\"invalid instruction packet\""
] | HexagonShuffler4 | check | Hexagon | DSP | LLVM | 9,128 | 63 | 1 | [] |
[
"<s>",
"static",
"void",
"emit_unlikely_jump",
"(",
"rtx",
"cond",
",",
"rtx",
"label",
")",
"{",
"int",
"very_unlikely",
"=",
"REG_BR_PROB_BASE",
"/",
"100",
"-",
"1",
";",
"rtx",
"x",
"=",
"gen_rtx_IF_THEN_ELSE",
"(",
"VOIDmode",
",",
"cond",
",",
"label",
",",
"pc_rtx",
")",
";",
"rtx_insn",
"*",
"insn",
"=",
"emit_jump_insn",
"(",
"gen_rtx_SET",
"(",
"pc_rtx",
",",
"x",
")",
")",
";",
"add_int_reg_note",
"(",
"insn",
",",
"REG_BR_PROB",
",",
"very_unlikely",
")",
";",
"}",
"</s>"
] | [
"Mark",
"the",
"previous",
"jump",
"instruction",
"as",
"unlikely",
"."
] | [
"alpha",
"100",
"1"
] | alpha6 | emit_unlikely_jump | alpha | MPU | GCC | 9,129 | 58 | 1 | [] |
[
"<s>",
"bool",
"arm_const_double_by_immediates",
"(",
"rtx",
"val",
")",
"{",
"machine_mode",
"mode",
"=",
"GET_MODE",
"(",
"val",
")",
";",
"rtx",
"part",
";",
"if",
"(",
"mode",
"==",
"VOIDmode",
")",
"mode",
"=",
"DImode",
";",
"part",
"=",
"gen_highpart_mode",
"(",
"SImode",
",",
"mode",
",",
"val",
")",
";",
"gcc_assert",
"(",
"CONST_INT_P",
"(",
"part",
")",
")",
";",
"if",
"(",
"!",
"const_ok_for_arm",
"(",
"INTVAL",
"(",
"part",
")",
")",
")",
"return",
"false",
";",
"part",
"=",
"gen_lowpart",
"(",
"SImode",
",",
"val",
")",
";",
"gcc_assert",
"(",
"CONST_INT_P",
"(",
"part",
")",
")",
";",
"if",
"(",
"!",
"const_ok_for_arm",
"(",
"INTVAL",
"(",
"part",
")",
")",
")",
"return",
"false",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"it",
"is",
"possible",
"to",
"inline",
"both",
"the",
"high",
"and",
"low",
"parts",
"of",
"a",
"64-bit",
"constant",
"into",
"32-bit",
"data",
"processing",
"instructions",
"."
] | [
"arm"
] | arm | arm_const_double_by_immediates | arm | CPU | GCC | 9,130 | 96 | 1 | [] |
[
"<s>",
"MCS51Subtarget",
"&",
"MCS51Subtarget",
"::",
"initializeSubtargetDependencies",
"(",
"StringRef",
"CPU",
",",
"StringRef",
"FS",
",",
"const",
"TargetMachine",
"&",
"TM",
")",
"{",
"ParseSubtargetFeatures",
"(",
"CPU",
",",
"CPU",
",",
"FS",
")",
";",
"return",
"*",
"this",
";",
"}",
"</s>"
] | [
"initializeSubtargetDependencies",
"-",
"Initializes",
"using",
"a",
"CPU",
",",
"a",
"TuneCPU",
",",
"and",
"feature",
"string",
"so",
"that",
"we",
"can",
"use",
"initializer",
"lists",
"for",
"subtarget",
"initialization",
"."
] | [
"MCS51",
"MCS51",
"MCS51"
] | MCS51Subtarget | initializeSubtargetDependencies | MCS51 | MPU | LLVM | 9,131 | 32 | 1 | [] |
[
"<s>",
"bool",
"HexagonPassConfig",
"::",
"addInstSelector",
"(",
")",
"{",
"PM",
"->",
"add",
"(",
"createHexagonRemoveExtendOps",
"(",
"getHexagonTargetMachine",
"(",
")",
")",
")",
";",
"PM",
"->",
"add",
"(",
"createHexagonISelDag",
"(",
"getHexagonTargetMachine",
"(",
")",
")",
")",
";",
"PM",
"->",
"add",
"(",
"createHexagonPeephole",
"(",
")",
")",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"addInstSelector",
"-",
"This",
"method",
"should",
"install",
"an",
"instruction",
"selector",
"pass",
",",
"which",
"converts",
"from",
"LLVM",
"code",
"to",
"machine",
"instructions",
"."
] | [
"Hexagon",
"Hexagon",
"Hexagon",
"Hexagon",
"Hexagon",
"Hexagon",
"Hexagon"
] | HexagonTargetMachine45 | addInstSelector | Hexagon | DSP | LLVM | 9,132 | 44 | 1 | [] |
[
"<s>",
"void",
"MSP430RegisterInfo",
"::",
"processFunctionBeforeFrameFinalized",
"(",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"const",
"TargetFrameLowering",
"*",
"TFI",
"=",
"MF",
".",
"getTarget",
"(",
")",
".",
"getFrameLowering",
"(",
")",
";",
"if",
"(",
"TFI",
"->",
"hasFP",
"(",
"MF",
")",
")",
"{",
"int",
"FrameIdx",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
"->",
"CreateFixedObject",
"(",
"2",
",",
"-",
"4",
",",
"true",
")",
";",
"(",
"void",
")",
"FrameIdx",
";",
"assert",
"(",
"FrameIdx",
"==",
"MF",
".",
"getFrameInfo",
"(",
")",
"->",
"getObjectIndexBegin",
"(",
")",
"&&",
"\"Slot for FPW register must be last in order to be found!\"",
")",
";",
"}",
"}",
"</s>"
] | [
"processFunctionBeforeFrameFinalized",
"-",
"This",
"method",
"is",
"called",
"immediately",
"before",
"the",
"specified",
"function",
"'s",
"frame",
"layout",
"(",
"MF.getFrameInfo",
"(",
")",
")",
"is",
"finalized",
"."
] | [
"MSP430",
"MSP430",
"2",
"4",
"\"Slot for FPW register must be last in order to be found!\""
] | MSP430RegisterInfo2 | processFunctionBeforeFrameFinalized | MSP430 | MPU | LLVM | 9,133 | 79 | 1 | [] |
[
"<s>",
"unsigned",
"X86InstrInfo",
"::",
"getUndefRegClearance",
"(",
"const",
"MachineInstr",
"&",
"MI",
",",
"unsigned",
"&",
"OpNum",
",",
"const",
"TargetRegisterInfo",
"*",
"TRI",
")",
"const",
"{",
"if",
"(",
"!",
"hasUndefRegUpdate",
"(",
"MI",
".",
"getOpcode",
"(",
")",
")",
")",
"return",
"0",
";",
"OpNum",
"=",
"1",
";",
"const",
"MachineOperand",
"&",
"MO",
"=",
"MI",
".",
"getOperand",
"(",
"OpNum",
")",
";",
"if",
"(",
"MO",
".",
"isUndef",
"(",
")",
"&&",
"Register",
"::",
"isPhysicalRegister",
"(",
"MO",
".",
"getReg",
"(",
")",
")",
")",
"{",
"return",
"UndefRegClearance",
";",
"}",
"return",
"0",
";",
"}",
"</s>"
] | [
"Inform",
"the",
"BreakFalseDeps",
"pass",
"how",
"many",
"idle",
"instructions",
"we",
"would",
"like",
"before",
"certain",
"undef",
"register",
"reads",
"."
] | [
"X86",
"X86",
"0",
"1",
"0"
] | X86InstrInfo144 | getUndefRegClearance | X86 | CPU | LLVM | 9,134 | 80 | 1 | [] |
[
"<s>",
"bool",
"AArch64InstrInfo",
"::",
"isThroughputPattern",
"(",
"MachineCombinerPattern",
"Pattern",
")",
"const",
"{",
"switch",
"(",
"Pattern",
")",
"{",
"default",
":",
"break",
";",
"case",
"MachineCombinerPattern",
"::",
"FMULADDH_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMULADDH_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMULSUBH_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMULSUBH_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMULADDS_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMULADDS_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMULSUBS_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMULSUBS_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMULADDD_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMULADDD_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMULSUBD_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMULSUBD_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FNMULSUBH_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FNMULSUBS_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FNMULSUBD_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv4i16_indexed_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv4i16_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv8i16_indexed_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv8i16_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv1i32_indexed_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv1i32_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv1i64_indexed_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv1i64_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv4f16_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv4f16_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv8f16_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv8f16_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv2f32_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv2f32_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv2f64_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv2f64_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv2i32_indexed_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv2i32_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv2i64_indexed_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv2i64_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv4f32_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv4f32_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv4i32_indexed_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLAv4i32_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLSv4i16_indexed_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLSv4i16_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLSv8i16_indexed_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLSv8i16_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLSv1i32_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLSv1i64_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLSv2i32_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLSv2i64_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLSv4f16_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLSv4f16_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLSv8f16_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLSv8f16_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLSv2f32_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLSv2f64_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLSv4i32_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"FMLSv4f32_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"MULADDv8i8_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"MULADDv8i8_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"MULADDv16i8_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"MULADDv16i8_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"MULADDv4i16_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"MULADDv4i16_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"MULADDv8i16_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"MULADDv8i16_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"MULADDv2i32_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"MULADDv2i32_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"MULADDv4i32_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"MULADDv4i32_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"MULSUBv8i8_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"MULSUBv8i8_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"MULSUBv16i8_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"MULSUBv16i8_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"MULSUBv4i16_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"MULSUBv4i16_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"MULSUBv8i16_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"MULSUBv8i16_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"MULSUBv2i32_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"MULSUBv2i32_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"MULSUBv4i32_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"MULSUBv4i32_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"MULADDv4i16_indexed_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"MULADDv4i16_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"MULADDv8i16_indexed_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"MULADDv8i16_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"MULADDv2i32_indexed_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"MULADDv2i32_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"MULADDv4i32_indexed_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"MULADDv4i32_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"MULSUBv4i16_indexed_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"MULSUBv4i16_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"MULSUBv8i16_indexed_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"MULSUBv8i16_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"MULSUBv2i32_indexed_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"MULSUBv2i32_indexed_OP2",
":",
"case",
"MachineCombinerPattern",
"::",
"MULSUBv4i32_indexed_OP1",
":",
"case",
"MachineCombinerPattern",
"::",
"MULSUBv4i32_indexed_OP2",
":",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Return",
"true",
"when",
"a",
"code",
"sequence",
"can",
"improve",
"throughput",
"."
] | [
"AArch64",
"AArch64"
] | AArch64InstrInfo104 | isThroughputPattern | AArch64 | CPU | LLVM | 9,135 | 502 | 1 | [] |
[
"<s>",
"bool",
"XCoreLowerThreadLocal",
"::",
"runOnModule",
"(",
"Module",
"&",
"M",
")",
"{",
"bool",
"MadeChange",
"=",
"false",
";",
"SmallVector",
"<",
"GlobalVariable",
"*",
",",
"16",
">",
"ThreadLocalGlobals",
";",
"for",
"(",
"Module",
"::",
"global_iterator",
"GVI",
"=",
"M",
".",
"global_begin",
"(",
")",
",",
"E",
"=",
"M",
".",
"global_end",
"(",
")",
";",
"GVI",
"!=",
"E",
";",
"++",
"GVI",
")",
"{",
"GlobalVariable",
"*",
"GV",
"=",
"GVI",
";",
"if",
"(",
"GV",
"->",
"isThreadLocal",
"(",
")",
")",
"ThreadLocalGlobals",
".",
"push_back",
"(",
"GV",
")",
";",
"}",
"for",
"(",
"unsigned",
"I",
"=",
"0",
",",
"E",
"=",
"ThreadLocalGlobals",
".",
"size",
"(",
")",
";",
"I",
"!=",
"E",
";",
"++",
"I",
")",
"{",
"MadeChange",
"|=",
"lowerGlobal",
"(",
"ThreadLocalGlobals",
"[",
"I",
"]",
")",
";",
"}",
"return",
"MadeChange",
";",
"}",
"</s>"
] | [
"runOnModule",
"-",
"Virtual",
"method",
"overriden",
"by",
"subclasses",
"to",
"process",
"the",
"module",
"being",
"operated",
"on",
"."
] | [
"XCore",
"XCore",
"16",
"0"
] | XCoreLowerThreadLocal | runOnModule | XCore | MPU | LLVM | 9,136 | 113 | 1 | [] |
[
"<s>",
"void",
"aarch64_expand_vec_perm",
"(",
"rtx",
"target",
",",
"rtx",
"op0",
",",
"rtx",
"op1",
",",
"rtx",
"sel",
")",
"{",
"machine_mode",
"vmode",
"=",
"GET_MODE",
"(",
"target",
")",
";",
"unsigned",
"int",
"nelt",
"=",
"GET_MODE_NUNITS",
"(",
"vmode",
")",
";",
"bool",
"one_vector_p",
"=",
"rtx_equal_p",
"(",
"op0",
",",
"op1",
")",
";",
"rtx",
"mask",
";",
"mask",
"=",
"aarch64_simd_gen_const_vector_dup",
"(",
"vmode",
",",
"one_vector_p",
"?",
"nelt",
"-",
"1",
":",
"2",
"*",
"nelt",
"-",
"1",
")",
";",
"sel",
"=",
"expand_simple_binop",
"(",
"vmode",
",",
"AND",
",",
"sel",
",",
"mask",
",",
"NULL",
",",
"0",
",",
"OPTAB_LIB_WIDEN",
")",
";",
"if",
"(",
"BYTES_BIG_ENDIAN",
")",
"{",
"if",
"(",
"!",
"one_vector_p",
")",
"mask",
"=",
"aarch64_simd_gen_const_vector_dup",
"(",
"vmode",
",",
"nelt",
"-",
"1",
")",
";",
"sel",
"=",
"expand_simple_binop",
"(",
"vmode",
",",
"XOR",
",",
"sel",
",",
"mask",
",",
"NULL",
",",
"0",
",",
"OPTAB_LIB_WIDEN",
")",
";",
"}",
"aarch64_expand_vec_perm_1",
"(",
"target",
",",
"op0",
",",
"op1",
",",
"sel",
")",
";",
"}",
"</s>"
] | [
"Expand",
"a",
"vec_perm",
"with",
"the",
"operands",
"given",
"by",
"TARGET",
",",
"OP0",
",",
"OP1",
"and",
"SEL",
".",
"NELT",
"is",
"the",
"number",
"of",
"elements",
"in",
"the",
"vector",
"."
] | [
"aarch64",
"1",
"2",
"1",
"0",
"1",
"0"
] | aarch642 | aarch64_expand_vec_perm | aarch64 | CPU | GCC | 9,137 | 137 | 1 | [] |
[
"<s>",
"static",
"void",
"rs6000_emit_probe_stack_range",
"(",
"HOST_WIDE_INT",
"first",
",",
"HOST_WIDE_INT",
"size",
")",
"{",
"if",
"(",
"first",
"+",
"size",
"<=",
"32768",
")",
"{",
"HOST_WIDE_INT",
"i",
";",
"for",
"(",
"i",
"=",
"PROBE_INTERVAL",
";",
"i",
"<",
"size",
";",
"i",
"+=",
"PROBE_INTERVAL",
")",
"emit_stack_probe",
"(",
"plus_constant",
"(",
"Pmode",
",",
"stack_pointer_rtx",
",",
"-",
"(",
"first",
"+",
"i",
")",
")",
")",
";",
"emit_stack_probe",
"(",
"plus_constant",
"(",
"Pmode",
",",
"stack_pointer_rtx",
",",
"-",
"(",
"first",
"+",
"size",
")",
")",
")",
";",
"}",
"else",
"{",
"HOST_WIDE_INT",
"rounded_size",
";",
"rtx",
"r12",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"12",
")",
";",
"rtx",
"r0",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"0",
")",
";",
"gcc_assert",
"(",
"first",
"<=",
"32768",
")",
";",
"rounded_size",
"=",
"ROUND_DOWN",
"(",
"size",
",",
"PROBE_INTERVAL",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"r12",
",",
"plus_constant",
"(",
"Pmode",
",",
"stack_pointer_rtx",
",",
"-",
"first",
")",
")",
")",
";",
"if",
"(",
"rounded_size",
">",
"32768",
")",
"{",
"emit_move_insn",
"(",
"r0",
",",
"GEN_INT",
"(",
"-",
"rounded_size",
")",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"r0",
",",
"gen_rtx_PLUS",
"(",
"Pmode",
",",
"r12",
",",
"r0",
")",
")",
")",
";",
"}",
"else",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"r0",
",",
"plus_constant",
"(",
"Pmode",
",",
"r12",
",",
"-",
"rounded_size",
")",
")",
")",
";",
"if",
"(",
"TARGET_64BIT",
")",
"emit_insn",
"(",
"gen_probe_stack_rangedi",
"(",
"r12",
",",
"r12",
",",
"r0",
")",
")",
";",
"else",
"emit_insn",
"(",
"gen_probe_stack_rangesi",
"(",
"r12",
",",
"r12",
",",
"r0",
")",
")",
";",
"if",
"(",
"size",
"!=",
"rounded_size",
")",
"emit_stack_probe",
"(",
"plus_constant",
"(",
"Pmode",
",",
"r12",
",",
"rounded_size",
"-",
"size",
")",
")",
";",
"}",
"}",
"</s>"
] | [
"Emit",
"code",
"to",
"probe",
"a",
"range",
"of",
"stack",
"addresses",
"from",
"FIRST",
"to",
"FIRST+SIZE",
",",
"inclusive",
".",
"These",
"are",
"offsets",
"from",
"the",
"current",
"stack",
"pointer",
"."
] | [
"powerpcspe",
"32768",
"12",
"0",
"32768",
"32768"
] | powerpcspe | rs6000_emit_probe_stack_range | powerpcspe | CPU | GCC | 9,138 | 237 | 1 | [] |
[
"<s>",
"static",
"bool",
"ix86_save_reg",
"(",
"unsigned",
"int",
"regno",
",",
"bool",
"maybe_eh_return",
")",
"{",
"if",
"(",
"cfun",
"->",
"machine",
"->",
"no_caller_saved_registers",
")",
"{",
"rtx",
"reg",
"=",
"crtl",
"->",
"return_rtx",
";",
"if",
"(",
"reg",
")",
"{",
"unsigned",
"int",
"i",
"=",
"REGNO",
"(",
"reg",
")",
";",
"unsigned",
"int",
"nregs",
"=",
"hard_regno_nregs",
"[",
"i",
"]",
"[",
"GET_MODE",
"(",
"reg",
")",
"]",
";",
"while",
"(",
"nregs",
"--",
">",
"0",
")",
"if",
"(",
"(",
"i",
"+",
"nregs",
")",
"==",
"regno",
")",
"return",
"false",
";",
"reg",
"=",
"crtl",
"->",
"return_bnd",
";",
"if",
"(",
"reg",
")",
"{",
"i",
"=",
"REGNO",
"(",
"reg",
")",
";",
"nregs",
"=",
"hard_regno_nregs",
"[",
"i",
"]",
"[",
"GET_MODE",
"(",
"reg",
")",
"]",
";",
"while",
"(",
"nregs",
"--",
">",
"0",
")",
"if",
"(",
"(",
"i",
"+",
"nregs",
")",
"==",
"regno",
")",
"return",
"false",
";",
"}",
"}",
"return",
"(",
"df_regs_ever_live_p",
"(",
"regno",
")",
"&&",
"!",
"fixed_regs",
"[",
"regno",
"]",
"&&",
"!",
"STACK_REGNO_P",
"(",
"regno",
")",
"&&",
"!",
"MMX_REGNO_P",
"(",
"regno",
")",
"&&",
"(",
"regno",
"!=",
"HARD_FRAME_POINTER_REGNUM",
"||",
"!",
"frame_pointer_needed",
")",
")",
";",
"}",
"if",
"(",
"regno",
"==",
"REAL_PIC_OFFSET_TABLE_REGNUM",
"&&",
"pic_offset_table_rtx",
")",
"{",
"if",
"(",
"ix86_use_pseudo_pic_reg",
"(",
")",
")",
"{",
"if",
"(",
"!",
"TARGET_64BIT",
"&&",
"flag_pic",
"&&",
"crtl",
"->",
"profile",
")",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"df_regs_ever_live_p",
"(",
"REAL_PIC_OFFSET_TABLE_REGNUM",
")",
"||",
"crtl",
"->",
"profile",
"||",
"crtl",
"->",
"calls_eh_return",
"||",
"crtl",
"->",
"uses_const_pool",
"||",
"cfun",
"->",
"has_nonlocal_label",
")",
"return",
"ix86_select_alt_pic_regnum",
"(",
")",
"==",
"INVALID_REGNUM",
";",
"}",
"if",
"(",
"crtl",
"->",
"calls_eh_return",
"&&",
"maybe_eh_return",
")",
"{",
"unsigned",
"i",
";",
"for",
"(",
"i",
"=",
"0",
";",
";",
"i",
"++",
")",
"{",
"unsigned",
"test",
"=",
"EH_RETURN_DATA_REGNO",
"(",
"i",
")",
";",
"if",
"(",
"test",
"==",
"INVALID_REGNUM",
")",
"break",
";",
"if",
"(",
"test",
"==",
"regno",
")",
"return",
"true",
";",
"}",
"}",
"if",
"(",
"crtl",
"->",
"drap_reg",
"&&",
"regno",
"==",
"REGNO",
"(",
"crtl",
"->",
"drap_reg",
")",
"&&",
"!",
"cfun",
"->",
"machine",
"->",
"no_drap_save_restore",
")",
"return",
"true",
";",
"return",
"(",
"df_regs_ever_live_p",
"(",
"regno",
")",
"&&",
"!",
"call_used_regs",
"[",
"regno",
"]",
"&&",
"!",
"fixed_regs",
"[",
"regno",
"]",
"&&",
"(",
"regno",
"!=",
"HARD_FRAME_POINTER_REGNUM",
"||",
"!",
"frame_pointer_needed",
")",
")",
";",
"}",
"</s>"
] | [
"Return",
"1",
"if",
"we",
"need",
"to",
"save",
"REGNO",
"."
] | [
"i386",
"0",
"0",
"0"
] | i3866 | ix86_save_reg | i386 | CPU | GCC | 9,139 | 334 | 1 | [] |
[
"<s>",
"int",
"same_cmp_preceding_p",
"(",
"rtx",
"i3",
")",
"{",
"rtx",
"i1",
",",
"i2",
";",
"i2",
"=",
"prev_nonnote_insn",
"(",
"i3",
")",
";",
"if",
"(",
"i2",
"==",
"NULL_RTX",
")",
"return",
"0",
";",
"i1",
"=",
"prev_nonnote_insn",
"(",
"i2",
")",
";",
"if",
"(",
"i1",
"==",
"NULL_RTX",
")",
"return",
"0",
";",
"return",
"(",
"INSN_P",
"(",
"i1",
")",
"&&",
"rtx_equal_p",
"(",
"PATTERN",
"(",
"i1",
")",
",",
"PATTERN",
"(",
"i3",
")",
")",
"&&",
"any_condjump_p",
"(",
"i2",
")",
"&&",
"onlyjump_p",
"(",
"i2",
")",
")",
";",
"}",
"</s>"
] | [
"Return",
"nonzero",
"if",
"we",
"have",
"the",
"same",
"comparison",
"insn",
"as",
"I3",
"two",
"insns",
"before",
"I3",
".",
"I3",
"is",
"assumed",
"to",
"be",
"a",
"comparison",
"insn",
"."
] | [
"h8300",
"0",
"0"
] | h83003 | same_cmp_preceding_p | h8300 | MPU | GCC | 9,140 | 76 | 1 | [] |
[
"<s>",
"static",
"int",
"avr_address_cost",
"(",
"rtx",
"x",
")",
"{",
"if",
"(",
"GET_CODE",
"(",
"x",
")",
"==",
"PLUS",
"&&",
"GET_CODE",
"(",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
"==",
"CONST_INT",
"&&",
"(",
"REG_P",
"(",
"XEXP",
"(",
"x",
",",
"0",
")",
")",
"||",
"GET_CODE",
"(",
"XEXP",
"(",
"x",
",",
"0",
")",
")",
"==",
"SUBREG",
")",
"&&",
"INTVAL",
"(",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
">=",
"61",
")",
"return",
"18",
";",
"if",
"(",
"CONSTANT_ADDRESS_P",
"(",
"x",
")",
")",
"{",
"if",
"(",
"avr_io_address_p",
"(",
"x",
",",
"1",
")",
")",
"return",
"2",
";",
"return",
"4",
";",
"}",
"return",
"4",
";",
"}",
"</s>"
] | [
"Calculate",
"the",
"cost",
"of",
"a",
"memory",
"address",
"."
] | [
"avr",
"1",
"0",
"0",
"1",
"61",
"18",
"1",
"2",
"4",
"4"
] | avr3 | avr_address_cost | avr | MPU | GCC | 9,141 | 96 | 1 | [] |
[
"<s>",
"void",
"SystemZPostRASchedStrategy",
"::",
"releaseTopNode",
"(",
"SUnit",
"*",
"SU",
")",
"{",
"const",
"MCSchedClassDesc",
"*",
"SC",
"=",
"DAG",
"->",
"getSchedClass",
"(",
"SU",
")",
";",
"bool",
"AffectsGrouping",
"=",
"(",
"SC",
"->",
"isValid",
"(",
")",
"&&",
"(",
"SC",
"->",
"BeginGroup",
"||",
"SC",
"->",
"EndGroup",
")",
")",
";",
"SU",
"->",
"isScheduleHigh",
"=",
"(",
"AffectsGrouping",
"||",
"SU",
"->",
"isUnbuffered",
")",
";",
"Available",
".",
"insert",
"(",
"SU",
")",
";",
"}",
"</s>"
] | [
"SU",
"has",
"had",
"all",
"predecessor",
"dependencies",
"resolved",
"."
] | [
"SystemZ",
"SystemZ"
] | SystemZMachineScheduler13 | releaseTopNode | SystemZ | CPU | LLVM | 9,142 | 63 | 1 | [] |
[
"<s>",
"const",
"uint16_t",
"*",
"TOYRegisterInfo",
"::",
"getCalleeSavedRegs",
"(",
"const",
"MachineFunction",
"*",
"MF",
")",
"const",
"{",
"static",
"const",
"uint16_t",
"CalleeSavedRegs",
"[",
"]",
"=",
"{",
"TOY",
"::",
"R4",
",",
"TOY",
"::",
"R5",
",",
"TOY",
"::",
"R6",
",",
"TOY",
"::",
"R7",
",",
"TOY",
"::",
"R8",
",",
"TOY",
"::",
"R9",
",",
"0",
"}",
";",
"return",
"CalleeSavedRegs",
";",
"}",
"</s>"
] | [
"Code",
"Generation",
"virtual",
"methods",
"..."
] | [
"TOY",
"TOY",
"TOY::R4",
"TOY::R5",
"TOY::R6",
"TOY::R7",
"TOY::R8",
"TOY::R9",
"0"
] | TOYRegisterInfo1 | getCalleeSavedRegs | TOY | CPU | LLVM | 9,143 | 53 | 1 | [] |
[
"<s>",
"virtual",
"const",
"DLXRegisterInfo",
"&",
"getRegisterInfo",
"(",
")",
"const",
"{",
"return",
"RegisterInfo",
";",
"}",
"</s>"
] | [
"getRegisterInfo",
"-",
"TargetInstrInfo",
"is",
"a",
"superset",
"of",
"MRegister",
"info",
"."
] | [
"DLX",
"DLX"
] | DLXInstrInfo | getRegisterInfo | DLX | CPU | LLVM | 9,144 | 13 | 1 | [] |
[
"<s>",
"static",
"struct",
"machine_function",
"*",
"bpf_init_machine_status",
"(",
"void",
")",
"{",
"return",
"ggc_cleared_alloc",
"<",
"machine_function",
">",
"(",
")",
";",
"}",
"</s>"
] | [
"Initialize",
"the",
"per-function",
"machine",
"status",
"."
] | [
"bpf"
] | bpf | bpf_init_machine_status | bpf | Virtual ISA | GCC | 9,145 | 18 | 1 | [] |
[
"<s>",
"uint16_t",
"getKind",
"(",
")",
"const",
"{",
"return",
"NodeAttrs",
"::",
"kind",
"(",
"Attrs",
")",
";",
"}",
"</s>"
] | [
"Returns",
"the",
"Kind",
"of",
"lane",
"offset",
"."
] | [
"Hexagon"
] | RDFGraph | getKind | Hexagon | DSP | LLVM | 9,146 | 15 | 1 | [] |
[
"<s>",
"static",
"void",
"loongarch_option_override",
"(",
"void",
")",
"{",
"loongarch_option_override_internal",
"(",
"&",
"global_options",
")",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_OPTION_OVERRIDE",
"."
] | [
"loongarch"
] | loongarch | loongarch_option_override | loongarch | CPU | GCC | 9,147 | 14 | 1 | [] |
[
"<s>",
"const",
"TargetFrameLowering",
"::",
"SpillSlot",
"*",
"AMDGPUFrameLowering",
"::",
"getCalleeSavedSpillSlots",
"(",
"unsigned",
"&",
"NumEntries",
")",
"const",
"{",
"NumEntries",
"=",
"0",
";",
"return",
"0",
";",
"}",
"</s>"
] | [
"getCalleeSavedSpillSlots",
"-",
"This",
"method",
"returns",
"a",
"pointer",
"to",
"an",
"array",
"of",
"pairs",
",",
"that",
"contains",
"an",
"entry",
"for",
"each",
"callee",
"saved",
"register",
"that",
"must",
"be",
"spilled",
"to",
"a",
"particular",
"stack",
"location",
"if",
"it",
"is",
"spilled",
"."
] | [
"R600",
"0",
"0"
] | AMDGPUFrameLowering17 | getCalleeSavedSpillSlots | R600 | GPU | LLVM | 9,148 | 23 | 1 | [] |
[
"<s>",
"static",
"void",
"pdp11_function_arg_advance",
"(",
"cumulative_args_t",
"cum_v",
",",
"const",
"function_arg_info",
"&",
"arg",
")",
"{",
"CUMULATIVE_ARGS",
"*",
"cum",
"=",
"get_cumulative_args",
"(",
"cum_v",
")",
";",
"*",
"cum",
"+=",
"arg",
".",
"promoted_size_in_bytes",
"(",
")",
";",
"}",
"</s>"
] | [
"Worker",
"function",
"for",
"TARGET_FUNCTION_ARG_ADVANCE",
".",
"Update",
"the",
"data",
"in",
"CUM",
"to",
"advance",
"over",
"an",
"argument",
"of",
"mode",
"MODE",
"and",
"data",
"type",
"TYPE",
".",
"(",
"TYPE",
"is",
"null",
"for",
"libcalls",
"where",
"that",
"information",
"may",
"not",
"be",
"available",
".",
")"
] | [
"pdp11"
] | pdp11 | pdp11_function_arg_advance | pdp11 | MPU | GCC | 9,149 | 32 | 1 | [] |
[
"<s>",
"static",
"void",
"find_constant",
"(",
"rtx",
"in_rtx",
",",
"imm_info",
"*",
"imm_values",
")",
"{",
"if",
"(",
"INSN_P",
"(",
"in_rtx",
")",
")",
"in_rtx",
"=",
"PATTERN",
"(",
"in_rtx",
")",
";",
"subrtx_iterator",
"::",
"array_type",
"array",
";",
"FOR_EACH_SUBRTX",
"(",
"iter",
",",
"array",
",",
"in_rtx",
",",
"ALL",
")",
"if",
"(",
"const_rtx",
"x",
"=",
"*",
"iter",
")",
"switch",
"(",
"GET_CODE",
"(",
"x",
")",
")",
"{",
"case",
"CONST",
":",
"case",
"SYMBOL_REF",
":",
"case",
"CONST_INT",
":",
"(",
"imm_values",
"->",
"imm",
")",
"++",
";",
"if",
"(",
"x86_64_immediate_operand",
"(",
"CONST_CAST_RTX",
"(",
"x",
")",
",",
"SImode",
")",
")",
"(",
"imm_values",
"->",
"imm32",
")",
"++",
";",
"else",
"(",
"imm_values",
"->",
"imm64",
")",
"++",
";",
"break",
";",
"case",
"CONST_DOUBLE",
":",
"case",
"CONST_WIDE_INT",
":",
"(",
"imm_values",
"->",
"imm",
")",
"++",
";",
"(",
"imm_values",
"->",
"imm64",
")",
"++",
";",
"break",
";",
"case",
"CODE_LABEL",
":",
"if",
"(",
"LABEL_KIND",
"(",
"x",
")",
"==",
"LABEL_NORMAL",
")",
"{",
"(",
"imm_values",
"->",
"imm",
")",
"++",
";",
"(",
"imm_values",
"->",
"imm32",
")",
"++",
";",
"}",
"break",
";",
"default",
":",
"break",
";",
"}",
"}",
"</s>"
] | [
"Compute",
"number",
"of",
"immediate",
"operands",
"of",
"an",
"instruction",
"."
] | [
"i386"
] | i3865 | find_constant | i386 | CPU | GCC | 9,150 | 160 | 1 | [] |
[
"<s>",
"bool",
"MipsPostLegalizerCombiner",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"if",
"(",
"MF",
".",
"getProperties",
"(",
")",
".",
"hasProperty",
"(",
"MachineFunctionProperties",
"::",
"Property",
"::",
"FailedISel",
")",
")",
"return",
"false",
";",
"auto",
"*",
"TPC",
"=",
"&",
"getAnalysis",
"<",
"TargetPassConfig",
">",
"(",
")",
";",
"const",
"Function",
"&",
"F",
"=",
"MF",
".",
"getFunction",
"(",
")",
";",
"bool",
"EnableOpt",
"=",
"MF",
".",
"getTarget",
"(",
")",
".",
"getOptLevel",
"(",
")",
"!=",
"CodeGenOpt",
"::",
"None",
"&&",
"!",
"skipFunction",
"(",
"F",
")",
";",
"const",
"MipsSubtarget",
"&",
"ST",
"=",
"MF",
".",
"getSubtarget",
"<",
"MipsSubtarget",
">",
"(",
")",
";",
"const",
"MipsLegalizerInfo",
"*",
"LI",
"=",
"static_cast",
"<",
"const",
"MipsLegalizerInfo",
"*",
">",
"(",
"ST",
".",
"getLegalizerInfo",
"(",
")",
")",
";",
"GISelKnownBits",
"*",
"KB",
"=",
"&",
"getAnalysis",
"<",
"GISelKnownBitsAnalysis",
">",
"(",
")",
".",
"get",
"(",
"MF",
")",
";",
"MipsPostLegalizerCombinerInfo",
"PCInfo",
"(",
"EnableOpt",
",",
"F",
".",
"hasOptSize",
"(",
")",
",",
"F",
".",
"hasMinSize",
"(",
")",
",",
"KB",
",",
"LI",
")",
";",
"Combiner",
"C",
"(",
"PCInfo",
",",
"TPC",
")",
";",
"return",
"C",
".",
"combineMachineInstrs",
"(",
"MF",
",",
"nullptr",
")",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips"
] | MipsPostLegalizerCombiner | runOnMachineFunction | Mips | CPU | LLVM | 9,151 | 167 | 1 | [] |
[
"<s>",
"bool",
"preferred_la_operand_p",
"(",
"rtx",
"op1",
",",
"rtx",
"op2",
")",
"{",
"struct",
"s390_address",
"addr",
";",
"if",
"(",
"op2",
"!=",
"const0_rtx",
")",
"op1",
"=",
"gen_rtx_PLUS",
"(",
"Pmode",
",",
"op1",
",",
"op2",
")",
";",
"if",
"(",
"!",
"s390_decompose_address",
"(",
"op1",
",",
"&",
"addr",
")",
")",
"return",
"false",
";",
"if",
"(",
"addr",
".",
"base",
"&&",
"!",
"REGNO_OK_FOR_BASE_P",
"(",
"REGNO",
"(",
"addr",
".",
"base",
")",
")",
")",
"return",
"false",
";",
"if",
"(",
"addr",
".",
"indx",
"&&",
"!",
"REGNO_OK_FOR_INDEX_P",
"(",
"REGNO",
"(",
"addr",
".",
"indx",
")",
")",
")",
"return",
"false",
";",
"if",
"(",
"addr",
".",
"indx",
"&&",
"s390_tune",
">=",
"PROCESSOR_2817_Z196",
")",
"return",
"false",
";",
"if",
"(",
"!",
"TARGET_64BIT",
"&&",
"!",
"addr",
".",
"pointer",
")",
"return",
"false",
";",
"if",
"(",
"addr",
".",
"pointer",
")",
"return",
"true",
";",
"if",
"(",
"(",
"addr",
".",
"base",
"&&",
"REG_P",
"(",
"addr",
".",
"base",
")",
"&&",
"REG_POINTER",
"(",
"addr",
".",
"base",
")",
")",
"||",
"(",
"addr",
".",
"indx",
"&&",
"REG_P",
"(",
"addr",
".",
"indx",
")",
"&&",
"REG_POINTER",
"(",
"addr",
".",
"indx",
")",
")",
")",
"return",
"true",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"it",
"is",
"valid",
"*",
"and",
"*",
"preferable",
"to",
"use",
"LA",
"to",
"compute",
"the",
"sum",
"of",
"OP1",
"and",
"OP2",
"."
] | [
"s390"
] | s390 | preferred_la_operand_p | s390 | MPU | GCC | 9,152 | 169 | 1 | [] |
[
"<s>",
"static",
"rtx",
"frv_frame_mem",
"(",
"machine_mode",
"mode",
",",
"rtx",
"base",
",",
"int",
"offset",
")",
"{",
"return",
"gen_rtx_MEM",
"(",
"mode",
",",
"gen_rtx_PLUS",
"(",
"Pmode",
",",
"base",
",",
"frv_frame_offset_rtx",
"(",
"offset",
")",
")",
")",
";",
"}",
"</s>"
] | [
"Generate",
"(",
"mem",
":",
"MODE",
"(",
"plus",
":",
"Pmode",
"BASE",
"(",
"frv_frame_offset",
"OFFSET",
")",
")",
")",
")",
".",
"The",
"prologue",
"and",
"epilogue",
"uses",
"such",
"expressions",
"to",
"access",
"the",
"stack",
"."
] | [
"frv"
] | frv | frv_frame_mem | frv | VLIW | GCC | 9,153 | 33 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"MipsTargetLowering",
"::",
"getTargetNodeName",
"(",
"unsigned",
"Opcode",
")",
"const",
"{",
"switch",
"(",
"Opcode",
")",
"{",
"case",
"MipsISD",
"::",
"JmpLink",
":",
"return",
"\"MipsISD::JmpLink\"",
";",
"case",
"MipsISD",
"::",
"Hi",
":",
"return",
"\"MipsISD::Hi\"",
";",
"case",
"MipsISD",
"::",
"Lo",
":",
"return",
"\"MipsISD::Lo\"",
";",
"case",
"MipsISD",
"::",
"GPRel",
":",
"return",
"\"MipsISD::GPRel\"",
";",
"case",
"MipsISD",
"::",
"Ret",
":",
"return",
"\"MipsISD::Ret\"",
";",
"case",
"MipsISD",
"::",
"CMov",
":",
"return",
"\"MipsISD::CMov\"",
";",
"case",
"MipsISD",
"::",
"SelectCC",
":",
"return",
"\"MipsISD::SelectCC\"",
";",
"case",
"MipsISD",
"::",
"FPSelectCC",
":",
"return",
"\"MipsISD::FPSelectCC\"",
";",
"case",
"MipsISD",
"::",
"FPBrcond",
":",
"return",
"\"MipsISD::FPBrcond\"",
";",
"case",
"MipsISD",
"::",
"FPCmp",
":",
"return",
"\"MipsISD::FPCmp\"",
";",
"case",
"MipsISD",
"::",
"FPRound",
":",
"return",
"\"MipsISD::FPRound\"",
";",
"default",
":",
"return",
"NULL",
";",
"}",
"}",
"</s>"
] | [
"getTargetNodeName",
"-",
"This",
"method",
"returns",
"the",
"name",
"of",
"a",
"target",
"specific"
] | [
"Mips",
"Mips",
"MipsISD::JmpLink",
"\"MipsISD::JmpLink\"",
"MipsISD::Hi",
"\"MipsISD::Hi\"",
"MipsISD::Lo",
"\"MipsISD::Lo\"",
"MipsISD::GPRel",
"\"MipsISD::GPRel\"",
"MipsISD::Ret",
"\"MipsISD::Ret\"",
"MipsISD::CMov",
"\"MipsISD::CMov\"",
"MipsISD::SelectCC",
"\"MipsISD::SelectCC\"",
"MipsISD::FPSelectCC",
"\"MipsISD::FPSelectCC\"",
"MipsISD::FPBrcond",
"\"MipsISD::FPBrcond\"",
"MipsISD::FPCmp",
"\"MipsISD::FPCmp\"",
"MipsISD::FPRound",
"\"MipsISD::FPRound\""
] | MipsISelLowering35 | getTargetNodeName | Mips | CPU | LLVM | 9,154 | 112 | 1 | [] |
[
"<s>",
"bool",
"R600InstrInfo",
"::",
"fitsConstReadLimitations",
"(",
"const",
"std",
"::",
"vector",
"<",
"MachineInstr",
"*",
">",
"&",
"MIs",
")",
"const",
"{",
"std",
"::",
"vector",
"<",
"unsigned",
">",
"Consts",
";",
"SmallSet",
"<",
"int64_t",
",",
"4",
">",
"Literals",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
",",
"n",
"=",
"MIs",
".",
"size",
"(",
")",
";",
"i",
"<",
"n",
";",
"i",
"++",
")",
"{",
"MachineInstr",
"&",
"MI",
"=",
"*",
"MIs",
"[",
"i",
"]",
";",
"if",
"(",
"!",
"isALUInstr",
"(",
"MI",
".",
"getOpcode",
"(",
")",
")",
")",
"continue",
";",
"for",
"(",
"const",
"auto",
"&",
"Src",
":",
"getSrcs",
"(",
"MI",
")",
")",
"{",
"if",
"(",
"Src",
".",
"first",
"->",
"getReg",
"(",
")",
"==",
"AMDGPU",
"::",
"ALU_LITERAL_X",
")",
"Literals",
".",
"insert",
"(",
"Src",
".",
"second",
")",
";",
"if",
"(",
"Literals",
".",
"size",
"(",
")",
">",
"4",
")",
"return",
"false",
";",
"if",
"(",
"Src",
".",
"first",
"->",
"getReg",
"(",
")",
"==",
"AMDGPU",
"::",
"ALU_CONST",
")",
"Consts",
".",
"push_back",
"(",
"Src",
".",
"second",
")",
";",
"if",
"(",
"AMDGPU",
"::",
"R600_KC0RegClass",
".",
"contains",
"(",
"Src",
".",
"first",
"->",
"getReg",
"(",
")",
")",
"||",
"AMDGPU",
"::",
"R600_KC1RegClass",
".",
"contains",
"(",
"Src",
".",
"first",
"->",
"getReg",
"(",
")",
")",
")",
"{",
"unsigned",
"Index",
"=",
"RI",
".",
"getEncodingValue",
"(",
"Src",
".",
"first",
"->",
"getReg",
"(",
")",
")",
"&",
"0xff",
";",
"unsigned",
"Chan",
"=",
"RI",
".",
"getHWRegChan",
"(",
"Src",
".",
"first",
"->",
"getReg",
"(",
")",
")",
";",
"Consts",
".",
"push_back",
"(",
"(",
"Index",
"<<",
"2",
")",
"|",
"Chan",
")",
";",
"}",
"}",
"}",
"return",
"fitsConstReadLimitations",
"(",
"Consts",
")",
";",
"}",
"</s>"
] | [
"Same",
"but",
"using",
"const",
"index",
"set",
"instead",
"of",
"MI",
"set",
"."
] | [
"AMDGPU",
"R600",
"4",
"0",
"AMDGPU::ALU_LITERAL_X",
"4",
"AMDGPU::ALU_CONST",
"AMDGPU::R600_KC0RegClass",
"AMDGPU::R600_KC1RegClass",
"0xff",
"2"
] | R600InstrInfo21 | fitsConstReadLimitations | AMDGPU | GPU | LLVM | 9,155 | 243 | 1 | [] |
[
"<s>",
"void",
"MOSInstPrinter",
"::",
"printRegName",
"(",
"raw_ostream",
"&",
"O",
",",
"unsigned",
"RegNo",
")",
"const",
"{",
"O",
"<<",
"getRegisterName",
"(",
"RegNo",
")",
";",
"}",
"</s>"
] | [
"Print",
"the",
"assembler",
"register",
"name",
"."
] | [
"MOS",
"MOS"
] | MOSInstPrinter | printRegName | MOS | MPU | LLVM | 9,156 | 22 | 1 | [] |
[
"<s>",
"static",
"int",
"ia64_register_move_cost",
"(",
"machine_mode",
"mode",
",",
"reg_class_t",
"from",
",",
"reg_class_t",
"to",
")",
"{",
"if",
"(",
"to",
"==",
"ADDL_REGS",
")",
"to",
"=",
"GR_REGS",
";",
"if",
"(",
"from",
"==",
"ADDL_REGS",
")",
"from",
"=",
"GR_REGS",
";",
"if",
"(",
"from",
"<",
"to",
")",
"{",
"reg_class_t",
"tmp",
"=",
"to",
";",
"to",
"=",
"from",
",",
"from",
"=",
"tmp",
";",
"}",
"if",
"(",
"mode",
"==",
"XFmode",
"||",
"mode",
"==",
"RFmode",
")",
"{",
"if",
"(",
"to",
"!=",
"GR_REGS",
"||",
"from",
"!=",
"GR_REGS",
")",
"return",
"memory_move_cost",
"(",
"mode",
",",
"to",
",",
"false",
")",
";",
"else",
"return",
"3",
";",
"}",
"switch",
"(",
"to",
")",
"{",
"case",
"PR_REGS",
":",
"if",
"(",
"from",
"==",
"PR_REGS",
")",
"return",
"3",
";",
"if",
"(",
"from",
"!=",
"GR_REGS",
")",
"return",
"memory_move_cost",
"(",
"mode",
",",
"to",
",",
"false",
")",
";",
"break",
";",
"case",
"BR_REGS",
":",
"if",
"(",
"from",
"!=",
"GR_REGS",
"&&",
"from",
"!=",
"GR_AND_BR_REGS",
")",
"return",
"memory_move_cost",
"(",
"mode",
",",
"to",
",",
"false",
")",
";",
"break",
";",
"case",
"AR_I_REGS",
":",
"case",
"AR_M_REGS",
":",
"if",
"(",
"from",
"!=",
"GR_REGS",
")",
"return",
"memory_move_cost",
"(",
"mode",
",",
"to",
",",
"false",
")",
";",
"break",
";",
"case",
"GR_REGS",
":",
"case",
"FR_REGS",
":",
"case",
"FP_REGS",
":",
"case",
"GR_AND_FR_REGS",
":",
"case",
"GR_AND_BR_REGS",
":",
"case",
"ALL_REGS",
":",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"return",
"2",
";",
"}",
"</s>"
] | [
"Calulate",
"the",
"cost",
"of",
"moving",
"data",
"from",
"a",
"register",
"in",
"class",
"FROM",
"to",
"one",
"in",
"class",
"TO",
",",
"using",
"MODE",
"."
] | [
"ia64",
"3",
"3",
"2"
] | ia64 | ia64_register_move_cost | ia64 | CPU | GCC | 9,157 | 206 | 1 | [] |
[
"<s>",
"bool",
"BitSimplification",
"::",
"processBlock",
"(",
"MachineBasicBlock",
"&",
"B",
",",
"const",
"RegisterSet",
"&",
"AVs",
")",
"{",
"if",
"(",
"!",
"BT",
".",
"reached",
"(",
"&",
"B",
")",
")",
"return",
"false",
";",
"bool",
"Changed",
"=",
"false",
";",
"RegisterSet",
"AVB",
"=",
"AVs",
";",
"RegisterSet",
"Defs",
";",
"for",
"(",
"auto",
"I",
"=",
"B",
".",
"begin",
"(",
")",
",",
"E",
"=",
"B",
".",
"end",
"(",
")",
";",
"I",
"!=",
"E",
";",
"++",
"I",
",",
"AVB",
".",
"insert",
"(",
"Defs",
")",
")",
"{",
"MachineInstr",
"*",
"MI",
"=",
"&",
"*",
"I",
";",
"Defs",
".",
"clear",
"(",
")",
";",
"HBS",
"::",
"getInstrDefs",
"(",
"*",
"MI",
",",
"Defs",
")",
";",
"unsigned",
"Opc",
"=",
"MI",
"->",
"getOpcode",
"(",
")",
";",
"if",
"(",
"Opc",
"==",
"TargetOpcode",
"::",
"COPY",
"||",
"Opc",
"==",
"TargetOpcode",
"::",
"REG_SEQUENCE",
")",
"continue",
";",
"if",
"(",
"MI",
"->",
"mayStore",
"(",
")",
")",
"{",
"bool",
"T",
"=",
"genStoreUpperHalf",
"(",
"MI",
")",
";",
"T",
"=",
"T",
"||",
"genStoreImmediate",
"(",
"MI",
")",
";",
"Changed",
"|=",
"T",
";",
"continue",
";",
"}",
"if",
"(",
"Defs",
".",
"count",
"(",
")",
"!=",
"1",
")",
"continue",
";",
"const",
"MachineOperand",
"&",
"Op0",
"=",
"MI",
"->",
"getOperand",
"(",
"0",
")",
";",
"if",
"(",
"!",
"Op0",
".",
"isReg",
"(",
")",
"||",
"!",
"Op0",
".",
"isDef",
"(",
")",
")",
"continue",
";",
"BitTracker",
"::",
"RegisterRef",
"RD",
"=",
"Op0",
";",
"if",
"(",
"!",
"BT",
".",
"has",
"(",
"RD",
".",
"Reg",
")",
")",
"continue",
";",
"const",
"TargetRegisterClass",
"*",
"FRC",
"=",
"HBS",
"::",
"getFinalVRegClass",
"(",
"RD",
",",
"MRI",
")",
";",
"const",
"BitTracker",
"::",
"RegisterCell",
"&",
"RC",
"=",
"BT",
".",
"lookup",
"(",
"RD",
".",
"Reg",
")",
";",
"if",
"(",
"FRC",
"->",
"getID",
"(",
")",
"==",
"Hexagon",
"::",
"DoubleRegsRegClassID",
")",
"{",
"bool",
"T",
"=",
"genPackhl",
"(",
"MI",
",",
"RD",
",",
"RC",
")",
";",
"Changed",
"|=",
"T",
";",
"continue",
";",
"}",
"if",
"(",
"FRC",
"->",
"getID",
"(",
")",
"==",
"Hexagon",
"::",
"IntRegsRegClassID",
")",
"{",
"bool",
"T",
"=",
"genExtractHalf",
"(",
"MI",
",",
"RD",
",",
"RC",
")",
";",
"T",
"=",
"T",
"||",
"genCombineHalf",
"(",
"MI",
",",
"RD",
",",
"RC",
")",
";",
"T",
"=",
"T",
"||",
"genExtractLow",
"(",
"MI",
",",
"RD",
",",
"RC",
")",
";",
"Changed",
"|=",
"T",
";",
"continue",
";",
"}",
"if",
"(",
"FRC",
"->",
"getID",
"(",
")",
"==",
"Hexagon",
"::",
"PredRegsRegClassID",
")",
"{",
"bool",
"T",
"=",
"simplifyTstbit",
"(",
"MI",
",",
"RD",
",",
"RC",
")",
";",
"Changed",
"|=",
"T",
";",
"continue",
";",
"}",
"}",
"return",
"Changed",
";",
"}",
"</s>"
] | [
"processBlock",
"-",
"If",
"there",
"are",
"any",
"predecessors",
"whose",
"control",
"can",
"be",
"threaded",
"through",
"to",
"a",
"successor",
",",
"transform",
"them",
"now",
"."
] | [
"Hexagon",
"1",
"0",
"Hexagon::DoubleRegsRegClassID",
"Hexagon::IntRegsRegClassID",
"Hexagon::PredRegsRegClassID"
] | HexagonBitSimplify1 | processBlock | Hexagon | DSP | LLVM | 9,158 | 378 | 1 | [] |
[
"<s>",
"static",
"void",
"ix86_emit_restore_reg_using_pop",
"(",
"rtx",
"reg",
")",
"{",
"struct",
"machine_function",
"*",
"m",
"=",
"cfun",
"->",
"machine",
";",
"rtx",
"insn",
"=",
"emit_insn",
"(",
"gen_pop",
"(",
"reg",
")",
")",
";",
"ix86_add_cfa_restore_note",
"(",
"insn",
",",
"reg",
",",
"m",
"->",
"fs",
".",
"sp_offset",
")",
";",
"m",
"->",
"fs",
".",
"sp_offset",
"-=",
"UNITS_PER_WORD",
";",
"if",
"(",
"m",
"->",
"fs",
".",
"cfa_reg",
"==",
"crtl",
"->",
"drap_reg",
"&&",
"REGNO",
"(",
"reg",
")",
"==",
"REGNO",
"(",
"crtl",
"->",
"drap_reg",
")",
")",
"{",
"add_reg_note",
"(",
"insn",
",",
"REG_CFA_DEF_CFA",
",",
"reg",
")",
";",
"RTX_FRAME_RELATED_P",
"(",
"insn",
")",
"=",
"1",
";",
"m",
"->",
"fs",
".",
"drap_valid",
"=",
"true",
";",
"return",
";",
"}",
"if",
"(",
"m",
"->",
"fs",
".",
"cfa_reg",
"==",
"stack_pointer_rtx",
")",
"{",
"rtx",
"x",
"=",
"plus_constant",
"(",
"Pmode",
",",
"stack_pointer_rtx",
",",
"UNITS_PER_WORD",
")",
";",
"x",
"=",
"gen_rtx_SET",
"(",
"VOIDmode",
",",
"stack_pointer_rtx",
",",
"x",
")",
";",
"add_reg_note",
"(",
"insn",
",",
"REG_CFA_ADJUST_CFA",
",",
"x",
")",
";",
"RTX_FRAME_RELATED_P",
"(",
"insn",
")",
"=",
"1",
";",
"m",
"->",
"fs",
".",
"cfa_offset",
"-=",
"UNITS_PER_WORD",
";",
"}",
"if",
"(",
"reg",
"==",
"hard_frame_pointer_rtx",
")",
"{",
"m",
"->",
"fs",
".",
"fp_valid",
"=",
"false",
";",
"if",
"(",
"m",
"->",
"fs",
".",
"cfa_reg",
"==",
"hard_frame_pointer_rtx",
")",
"{",
"m",
"->",
"fs",
".",
"cfa_reg",
"=",
"stack_pointer_rtx",
";",
"m",
"->",
"fs",
".",
"cfa_offset",
"-=",
"UNITS_PER_WORD",
";",
"add_reg_note",
"(",
"insn",
",",
"REG_CFA_DEF_CFA",
",",
"gen_rtx_PLUS",
"(",
"Pmode",
",",
"stack_pointer_rtx",
",",
"GEN_INT",
"(",
"m",
"->",
"fs",
".",
"cfa_offset",
")",
")",
")",
";",
"RTX_FRAME_RELATED_P",
"(",
"insn",
")",
"=",
"1",
";",
"}",
"}",
"}",
"</s>"
] | [
"Emit",
"code",
"to",
"restore",
"REG",
"using",
"a",
"POP",
"insn",
"."
] | [
"i386",
"1",
"1",
"1"
] | i3864 | ix86_emit_restore_reg_using_pop | i386 | CPU | GCC | 9,159 | 235 | 1 | [] |
[
"<s>",
"bool",
"RISCVTargetMachine",
"::",
"isNoopAddrSpaceCast",
"(",
"unsigned",
"SrcAS",
",",
"unsigned",
"DstAS",
")",
"const",
"{",
"return",
"true",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"a",
"cast",
"between",
"SrcAS",
"and",
"DestAS",
"is",
"a",
"noop",
"."
] | [
"RISCV",
"RISCV"
] | RISCVTargetMachine1 | isNoopAddrSpaceCast | RISCV | CPU | LLVM | 9,160 | 17 | 1 | [] |
[
"<s>",
"void",
"ix86_expand_vector_init",
"(",
"bool",
"mmx_ok",
",",
"rtx",
"target",
",",
"rtx",
"vals",
")",
"{",
"machine_mode",
"mode",
"=",
"GET_MODE",
"(",
"target",
")",
";",
"machine_mode",
"inner_mode",
"=",
"GET_MODE_INNER",
"(",
"mode",
")",
";",
"int",
"n_elts",
"=",
"GET_MODE_NUNITS",
"(",
"mode",
")",
";",
"int",
"n_var",
"=",
"0",
",",
"one_var",
"=",
"-",
"1",
";",
"bool",
"all_same",
"=",
"true",
",",
"all_const_zero",
"=",
"true",
";",
"int",
"i",
";",
"rtx",
"x",
";",
"if",
"(",
"n_elts",
"!=",
"XVECLEN",
"(",
"vals",
",",
"0",
")",
")",
"{",
"rtx",
"subtarget",
"=",
"target",
";",
"x",
"=",
"XVECEXP",
"(",
"vals",
",",
"0",
",",
"0",
")",
";",
"gcc_assert",
"(",
"GET_MODE_INNER",
"(",
"GET_MODE",
"(",
"x",
")",
")",
"==",
"inner_mode",
")",
";",
"if",
"(",
"GET_MODE_NUNITS",
"(",
"GET_MODE",
"(",
"x",
")",
")",
"*",
"2",
"==",
"n_elts",
")",
"{",
"rtx",
"ops",
"[",
"2",
"]",
"=",
"{",
"XVECEXP",
"(",
"vals",
",",
"0",
",",
"0",
")",
",",
"XVECEXP",
"(",
"vals",
",",
"0",
",",
"1",
")",
"}",
";",
"if",
"(",
"inner_mode",
"==",
"QImode",
"||",
"inner_mode",
"==",
"HImode",
"||",
"inner_mode",
"==",
"TImode",
"||",
"inner_mode",
"==",
"HFmode",
"||",
"inner_mode",
"==",
"BFmode",
")",
"{",
"unsigned",
"int",
"n_bits",
"=",
"n_elts",
"*",
"GET_MODE_SIZE",
"(",
"inner_mode",
")",
";",
"scalar_mode",
"elt_mode",
"=",
"inner_mode",
"==",
"TImode",
"?",
"DImode",
":",
"SImode",
";",
"n_bits",
"/=",
"GET_MODE_SIZE",
"(",
"elt_mode",
")",
";",
"mode",
"=",
"mode_for_vector",
"(",
"elt_mode",
",",
"n_bits",
")",
".",
"require",
"(",
")",
";",
"inner_mode",
"=",
"mode_for_vector",
"(",
"elt_mode",
",",
"n_bits",
"/",
"2",
")",
".",
"require",
"(",
")",
";",
"ops",
"[",
"0",
"]",
"=",
"gen_lowpart",
"(",
"inner_mode",
",",
"ops",
"[",
"0",
"]",
")",
";",
"ops",
"[",
"1",
"]",
"=",
"gen_lowpart",
"(",
"inner_mode",
",",
"ops",
"[",
"1",
"]",
")",
";",
"subtarget",
"=",
"gen_reg_rtx",
"(",
"mode",
")",
";",
"}",
"ix86_expand_vector_init_concat",
"(",
"mode",
",",
"subtarget",
",",
"ops",
",",
"2",
")",
";",
"if",
"(",
"subtarget",
"!=",
"target",
")",
"emit_move_insn",
"(",
"target",
",",
"gen_lowpart",
"(",
"GET_MODE",
"(",
"target",
")",
",",
"subtarget",
")",
")",
";",
"return",
";",
"}",
"gcc_unreachable",
"(",
")",
";",
"}",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"n_elts",
";",
"++",
"i",
")",
"{",
"x",
"=",
"XVECEXP",
"(",
"vals",
",",
"0",
",",
"i",
")",
";",
"if",
"(",
"!",
"(",
"CONST_SCALAR_INT_P",
"(",
"x",
")",
"||",
"CONST_DOUBLE_P",
"(",
"x",
")",
"||",
"CONST_FIXED_P",
"(",
"x",
")",
")",
")",
"n_var",
"++",
",",
"one_var",
"=",
"i",
";",
"else",
"if",
"(",
"x",
"!=",
"CONST0_RTX",
"(",
"inner_mode",
")",
")",
"all_const_zero",
"=",
"false",
";",
"if",
"(",
"i",
">",
"0",
"&&",
"!",
"rtx_equal_p",
"(",
"x",
",",
"XVECEXP",
"(",
"vals",
",",
"0",
",",
"0",
")",
")",
")",
"all_same",
"=",
"false",
";",
"}",
"if",
"(",
"n_var",
"==",
"0",
")",
"{",
"emit_move_insn",
"(",
"target",
",",
"gen_rtx_CONST_VECTOR",
"(",
"mode",
",",
"XVEC",
"(",
"vals",
",",
"0",
")",
")",
")",
";",
"return",
";",
"}",
"if",
"(",
"all_same",
"&&",
"ix86_expand_vector_init_duplicate",
"(",
"mmx_ok",
",",
"mode",
",",
"target",
",",
"XVECEXP",
"(",
"vals",
",",
"0",
",",
"0",
")",
")",
")",
"return",
";",
"if",
"(",
"n_var",
"==",
"1",
")",
"{",
"if",
"(",
"all_const_zero",
"&&",
"ix86_expand_vector_init_one_nonzero",
"(",
"mmx_ok",
",",
"mode",
",",
"target",
",",
"XVECEXP",
"(",
"vals",
",",
"0",
",",
"one_var",
")",
",",
"one_var",
")",
")",
"return",
";",
"if",
"(",
"ix86_expand_vector_init_one_var",
"(",
"mmx_ok",
",",
"mode",
",",
"target",
",",
"vals",
",",
"one_var",
")",
")",
"return",
";",
"}",
"ix86_expand_vector_init_general",
"(",
"mmx_ok",
",",
"mode",
",",
"target",
",",
"vals",
")",
";",
"}",
"</s>"
] | [
"Initialize",
"vector",
"TARGET",
"via",
"VALS",
".",
"Suppress",
"the",
"use",
"of",
"MMX",
"instructions",
"unless",
"MMX_OK",
"is",
"true",
"."
] | [
"i386",
"0",
"1",
"0",
"0",
"0",
"2",
"2",
"0",
"0",
"0",
"1",
"2",
"0",
"0",
"1",
"1",
"2",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
"0"
] | i386-expand1 | ix86_expand_vector_init | i386 | CPU | GCC | 9,161 | 508 | 1 | [] |
[
"<s>",
"void",
"RISCVAsmBackend",
"::",
"relaxInstruction",
"(",
"MCInst",
"&",
"Inst",
",",
"const",
"MCSubtargetInfo",
"&",
"STI",
")",
"const",
"{",
"MCInst",
"Res",
";",
"switch",
"(",
"Inst",
".",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"llvm_unreachable",
"(",
"\"Opcode not expected!\"",
")",
";",
"case",
"RISCV",
"::",
"C_BEQZ",
":",
"Res",
".",
"setOpcode",
"(",
"RISCV",
"::",
"BEQ",
")",
";",
"Res",
".",
"addOperand",
"(",
"Inst",
".",
"getOperand",
"(",
"0",
")",
")",
";",
"Res",
".",
"addOperand",
"(",
"MCOperand",
"::",
"createReg",
"(",
"RISCV",
"::",
"X0",
")",
")",
";",
"Res",
".",
"addOperand",
"(",
"Inst",
".",
"getOperand",
"(",
"1",
")",
")",
";",
"break",
";",
"case",
"RISCV",
"::",
"C_BNEZ",
":",
"Res",
".",
"setOpcode",
"(",
"RISCV",
"::",
"BNE",
")",
";",
"Res",
".",
"addOperand",
"(",
"Inst",
".",
"getOperand",
"(",
"0",
")",
")",
";",
"Res",
".",
"addOperand",
"(",
"MCOperand",
"::",
"createReg",
"(",
"RISCV",
"::",
"X0",
")",
")",
";",
"Res",
".",
"addOperand",
"(",
"Inst",
".",
"getOperand",
"(",
"1",
")",
")",
";",
"break",
";",
"case",
"RISCV",
"::",
"C_J",
":",
"Res",
".",
"setOpcode",
"(",
"RISCV",
"::",
"JAL",
")",
";",
"Res",
".",
"addOperand",
"(",
"MCOperand",
"::",
"createReg",
"(",
"RISCV",
"::",
"X0",
")",
")",
";",
"Res",
".",
"addOperand",
"(",
"Inst",
".",
"getOperand",
"(",
"0",
")",
")",
";",
"break",
";",
"case",
"RISCV",
"::",
"C_JAL",
":",
"Res",
".",
"setOpcode",
"(",
"RISCV",
"::",
"JAL",
")",
";",
"Res",
".",
"addOperand",
"(",
"MCOperand",
"::",
"createReg",
"(",
"RISCV",
"::",
"X1",
")",
")",
";",
"Res",
".",
"addOperand",
"(",
"Inst",
".",
"getOperand",
"(",
"0",
")",
")",
";",
"break",
";",
"}",
"Inst",
"=",
"std",
"::",
"move",
"(",
"Res",
")",
";",
"}",
"</s>"
] | [
"Relax",
"the",
"instruction",
"in",
"the",
"given",
"fragment",
"to",
"the",
"next",
"wider",
"instruction",
"."
] | [
"RISCV",
"RISCV",
"\"Opcode not expected!\"",
"RISCV::C_BEQZ",
"RISCV::BEQ",
"0",
"RISCV::X0",
"1",
"RISCV::C_BNEZ",
"RISCV::BNE",
"0",
"RISCV::X0",
"1",
"RISCV::C_J",
"RISCV::JAL",
"RISCV::X0",
"0",
"RISCV::C_JAL",
"RISCV::JAL",
"RISCV::X1",
"0"
] | RISCVAsmBackend14 | relaxInstruction | RISCV | CPU | LLVM | 9,162 | 238 | 1 | [] |
[
"<s>",
"TargetIRAnalysis",
"NVPTXTargetMachine",
"::",
"getTargetIRAnalysis",
"(",
")",
"{",
"return",
"TargetIRAnalysis",
"(",
"[",
"this",
"]",
"(",
"const",
"Function",
"&",
"F",
")",
"{",
"return",
"TargetTransformInfo",
"(",
"NVPTXTTIImpl",
"(",
"this",
",",
"F",
")",
")",
";",
"}",
")",
";",
"}",
"</s>"
] | [
"Get",
"a",
"TargetIRAnalysis",
"appropriate",
"for",
"the",
"target",
"."
] | [
"NVPTX",
"NVPTX",
"NVPTX"
] | NVPTXTargetMachine (2) | getTargetIRAnalysis | NVPTX | GPU | LLVM | 9,163 | 35 | 1 | [] |
[
"<s>",
"bool",
"PPCTargetLowering",
"::",
"getPreIndexedAddressParts",
"(",
"SDNode",
"*",
"N",
",",
"SDValue",
"&",
"Base",
",",
"SDValue",
"&",
"Offset",
",",
"ISD",
"::",
"MemIndexedMode",
"&",
"AM",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"if",
"(",
"!",
"EnablePPCPreinc",
")",
"return",
"false",
";",
"SDValue",
"Ptr",
";",
"MVT",
"VT",
";",
"if",
"(",
"LoadSDNode",
"*",
"LD",
"=",
"dyn_cast",
"<",
"LoadSDNode",
">",
"(",
"N",
")",
")",
"{",
"Ptr",
"=",
"LD",
"->",
"getBasePtr",
"(",
")",
";",
"VT",
"=",
"LD",
"->",
"getMemoryVT",
"(",
")",
";",
"}",
"else",
"if",
"(",
"StoreSDNode",
"*",
"ST",
"=",
"dyn_cast",
"<",
"StoreSDNode",
">",
"(",
"N",
")",
")",
"{",
"ST",
"=",
"ST",
";",
"Ptr",
"=",
"ST",
"->",
"getBasePtr",
"(",
")",
";",
"VT",
"=",
"ST",
"->",
"getMemoryVT",
"(",
")",
";",
"}",
"else",
"return",
"false",
";",
"if",
"(",
"VT",
".",
"isVector",
"(",
")",
")",
"return",
"false",
";",
"if",
"(",
"VT",
"!=",
"MVT",
"::",
"i64",
")",
"{",
"if",
"(",
"!",
"SelectAddressRegImm",
"(",
"Ptr",
",",
"Offset",
",",
"Base",
",",
"DAG",
")",
")",
"return",
"false",
";",
"}",
"else",
"{",
"if",
"(",
"!",
"SelectAddressRegImmShift",
"(",
"Ptr",
",",
"Offset",
",",
"Base",
",",
"DAG",
")",
")",
"return",
"false",
";",
"}",
"if",
"(",
"LoadSDNode",
"*",
"LD",
"=",
"dyn_cast",
"<",
"LoadSDNode",
">",
"(",
"N",
")",
")",
"{",
"if",
"(",
"LD",
"->",
"getValueType",
"(",
"0",
")",
"==",
"MVT",
"::",
"i64",
"&&",
"LD",
"->",
"getMemoryVT",
"(",
")",
"==",
"MVT",
"::",
"i32",
"&&",
"LD",
"->",
"getExtensionType",
"(",
")",
"==",
"ISD",
"::",
"SEXTLOAD",
"&&",
"isa",
"<",
"ConstantSDNode",
">",
"(",
"Offset",
")",
")",
"return",
"false",
";",
"}",
"AM",
"=",
"ISD",
"::",
"PRE_INC",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"by",
"value",
",",
"base",
"pointer",
"and",
"offset",
"pointer",
"and",
"addressing",
"mode",
"by",
"reference",
"if",
"the",
"node",
"'s",
"address",
"can",
"be",
"legally",
"represented",
"as",
"pre-indexed",
"load",
"/",
"store",
"address",
"."
] | [
"PowerPC",
"PPC",
"ISD::MemIndexedMode",
"PPC",
"MVT::i64",
"0",
"MVT::i64",
"MVT::i32",
"ISD::SEXTLOAD",
"ISD::PRE_INC"
] | PPCISelLowering123 | getPreIndexedAddressParts | PowerPC | CPU | LLVM | 9,164 | 244 | 1 | [] |
[
"<s>",
"TargetLowering",
"::",
"ConstraintWeight",
"PPCTargetLowering",
"::",
"getSingleConstraintMatchWeight",
"(",
"AsmOperandInfo",
"&",
"info",
",",
"const",
"char",
"*",
"constraint",
")",
"const",
"{",
"ConstraintWeight",
"weight",
"=",
"CW_Invalid",
";",
"Value",
"*",
"CallOperandVal",
"=",
"info",
".",
"CallOperandVal",
";",
"if",
"(",
"CallOperandVal",
"==",
"NULL",
")",
"return",
"CW_Default",
";",
"const",
"Type",
"*",
"type",
"=",
"CallOperandVal",
"->",
"getType",
"(",
")",
";",
"switch",
"(",
"*",
"constraint",
")",
"{",
"default",
":",
"weight",
"=",
"TargetLowering",
"::",
"getSingleConstraintMatchWeight",
"(",
"info",
",",
"constraint",
")",
";",
"break",
";",
"case",
"'b'",
":",
"if",
"(",
"type",
"->",
"isIntegerTy",
"(",
")",
")",
"weight",
"=",
"CW_Register",
";",
"break",
";",
"case",
"'f'",
":",
"if",
"(",
"type",
"->",
"isFloatTy",
"(",
")",
")",
"weight",
"=",
"CW_Register",
";",
"break",
";",
"case",
"'d'",
":",
"if",
"(",
"type",
"->",
"isDoubleTy",
"(",
")",
")",
"weight",
"=",
"CW_Register",
";",
"break",
";",
"case",
"'v'",
":",
"if",
"(",
"type",
"->",
"isVectorTy",
"(",
")",
")",
"weight",
"=",
"CW_Register",
";",
"break",
";",
"case",
"'y'",
":",
"weight",
"=",
"CW_Register",
";",
"break",
";",
"}",
"return",
"weight",
";",
"}",
"</s>"
] | [
"Examine",
"constraint",
"string",
"and",
"operand",
"type",
"and",
"determine",
"a",
"weight",
"value",
"."
] | [
"PowerPC",
"PPC"
] | PPCISelLowering115 | getSingleConstraintMatchWeight | PowerPC | CPU | LLVM | 9,165 | 154 | 1 | [] |
[
"<s>",
"bool",
"AArch64InstrInfo",
"::",
"areMemAccessesTriviallyDisjoint",
"(",
"MachineInstr",
"*",
"MIa",
",",
"MachineInstr",
"*",
"MIb",
",",
"AliasAnalysis",
"*",
"AA",
")",
"const",
"{",
"const",
"TargetRegisterInfo",
"*",
"TRI",
"=",
"&",
"getRegisterInfo",
"(",
")",
";",
"unsigned",
"BaseRegA",
"=",
"0",
",",
"BaseRegB",
"=",
"0",
";",
"int",
"OffsetA",
"=",
"0",
",",
"OffsetB",
"=",
"0",
";",
"int",
"WidthA",
"=",
"0",
",",
"WidthB",
"=",
"0",
";",
"assert",
"(",
"MIa",
"&&",
"MIa",
"->",
"mayLoadOrStore",
"(",
")",
"&&",
"\"MIa must be a load or store.\"",
")",
";",
"assert",
"(",
"MIb",
"&&",
"MIb",
"->",
"mayLoadOrStore",
"(",
")",
"&&",
"\"MIb must be a load or store.\"",
")",
";",
"if",
"(",
"MIa",
"->",
"hasUnmodeledSideEffects",
"(",
")",
"||",
"MIb",
"->",
"hasUnmodeledSideEffects",
"(",
")",
"||",
"MIa",
"->",
"hasOrderedMemoryRef",
"(",
")",
"||",
"MIb",
"->",
"hasOrderedMemoryRef",
"(",
")",
")",
"return",
"false",
";",
"if",
"(",
"getLdStBaseRegImmOfsWidth",
"(",
"MIa",
",",
"BaseRegA",
",",
"OffsetA",
",",
"WidthA",
",",
"TRI",
")",
"&&",
"getLdStBaseRegImmOfsWidth",
"(",
"MIb",
",",
"BaseRegB",
",",
"OffsetB",
",",
"WidthB",
",",
"TRI",
")",
")",
"{",
"if",
"(",
"BaseRegA",
"==",
"BaseRegB",
")",
"{",
"int",
"LowOffset",
"=",
"OffsetA",
"<",
"OffsetB",
"?",
"OffsetA",
":",
"OffsetB",
";",
"int",
"HighOffset",
"=",
"OffsetA",
"<",
"OffsetB",
"?",
"OffsetB",
":",
"OffsetA",
";",
"int",
"LowWidth",
"=",
"(",
"LowOffset",
"==",
"OffsetA",
")",
"?",
"WidthA",
":",
"WidthB",
";",
"if",
"(",
"LowOffset",
"+",
"LowWidth",
"<=",
"HighOffset",
")",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Sometimes",
",",
"it",
"is",
"possible",
"for",
"the",
"target",
"to",
"tell",
",",
"even",
"without",
"aliasing",
"information",
",",
"that",
"two",
"MIs",
"access",
"different",
"memory",
"addresses",
"."
] | [
"AArch64",
"AArch64",
"0",
"0",
"0",
"0",
"0",
"0",
"\"MIa must be a load or store.\"",
"\"MIb must be a load or store.\""
] | AArch64InstrInfo85 | areMemAccessesTriviallyDisjoint | AArch64 | CPU | LLVM | 9,166 | 199 | 1 | [] |
[
"<s>",
"void",
"getAnalysisUsage",
"(",
"AnalysisUsage",
"&",
"AU",
")",
"const",
"override",
"{",
"AU",
".",
"addRequired",
"<",
"AMDGPUArgumentUsageInfo",
">",
"(",
")",
";",
"AU",
".",
"addRequired",
"<",
"AMDGPUPerfHintAnalysis",
">",
"(",
")",
";",
"AU",
".",
"addRequired",
"<",
"DivergenceAnalysis",
">",
"(",
")",
";",
"SelectionDAGISel",
"::",
"getAnalysisUsage",
"(",
"AU",
")",
";",
"}",
"</s>"
] | [
"getAnalysisUsage",
"-",
"Subclasses",
"that",
"override",
"getAnalysisUsage",
"must",
"call",
"this",
"."
] | [
"AMDGPU",
"AMDGPU",
"AMDGPU"
] | AMDGPUISelDAGToDAG | getAnalysisUsage | AMDGPU | GPU | LLVM | 9,167 | 45 | 1 | [] |
[
"<s>",
"unsigned",
"postOffset",
"(",
"unsigned",
"LogAlign",
"=",
"0",
")",
"const",
"{",
"unsigned",
"PO",
"=",
"Offset",
"+",
"Size",
";",
"unsigned",
"Align",
"=",
"1",
"<<",
"LogAlign",
";",
"return",
"(",
"PO",
"+",
"Align",
"-",
"1",
")",
"/",
"Align",
"*",
"Align",
";",
"}",
"</s>"
] | [
"Compute",
"the",
"offset",
"immediately",
"following",
"this",
"block",
"."
] | [
"ARM64",
"0",
"1",
"1"
] | ARM64BranchRelaxation | postOffset | ARM64 | CPU | LLVM | 9,168 | 38 | 1 | [] |
[
"<s>",
"bool",
"AMDGPUInstrInfo",
"::",
"expandPostRAPseudo",
"(",
"MachineBasicBlock",
"::",
"iterator",
"MI",
")",
"const",
"{",
"MachineBasicBlock",
"*",
"MBB",
"=",
"MI",
"->",
"getParent",
"(",
")",
";",
"switch",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"if",
"(",
"isRegisterLoad",
"(",
"*",
"MI",
")",
")",
"{",
"unsigned",
"RegIndex",
"=",
"MI",
"->",
"getOperand",
"(",
"2",
")",
".",
"getImm",
"(",
")",
";",
"unsigned",
"Channel",
"=",
"MI",
"->",
"getOperand",
"(",
"3",
")",
".",
"getImm",
"(",
")",
";",
"unsigned",
"Address",
"=",
"calculateIndirectAddress",
"(",
"RegIndex",
",",
"Channel",
")",
";",
"unsigned",
"OffsetReg",
"=",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"getReg",
"(",
")",
";",
"if",
"(",
"OffsetReg",
"==",
"AMDGPU",
"::",
"INDIRECT_BASE_ADDR",
")",
"{",
"buildMovInstr",
"(",
"MBB",
",",
"MI",
",",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
",",
"getIndirectAddrRegClass",
"(",
")",
"->",
"getRegister",
"(",
"Address",
")",
")",
";",
"}",
"else",
"{",
"buildIndirectRead",
"(",
"MBB",
",",
"MI",
",",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
",",
"Address",
",",
"OffsetReg",
")",
";",
"}",
"}",
"else",
"if",
"(",
"isRegisterStore",
"(",
"*",
"MI",
")",
")",
"{",
"unsigned",
"RegIndex",
"=",
"MI",
"->",
"getOperand",
"(",
"2",
")",
".",
"getImm",
"(",
")",
";",
"unsigned",
"Channel",
"=",
"MI",
"->",
"getOperand",
"(",
"3",
")",
".",
"getImm",
"(",
")",
";",
"unsigned",
"Address",
"=",
"calculateIndirectAddress",
"(",
"RegIndex",
",",
"Channel",
")",
";",
"unsigned",
"OffsetReg",
"=",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"getReg",
"(",
")",
";",
"if",
"(",
"OffsetReg",
"==",
"AMDGPU",
"::",
"INDIRECT_BASE_ADDR",
")",
"{",
"buildMovInstr",
"(",
"MBB",
",",
"MI",
",",
"getIndirectAddrRegClass",
"(",
")",
"->",
"getRegister",
"(",
"Address",
")",
",",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
")",
";",
"}",
"else",
"{",
"buildIndirectWrite",
"(",
"MBB",
",",
"MI",
",",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
",",
"calculateIndirectAddress",
"(",
"RegIndex",
",",
"Channel",
")",
",",
"OffsetReg",
")",
";",
"}",
"}",
"else",
"{",
"return",
"false",
";",
"}",
"}",
"MBB",
"->",
"erase",
"(",
"MI",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"This",
"function",
"is",
"called",
"for",
"all",
"pseudo",
"instructions",
"that",
"remain",
"after",
"register",
"allocation",
"."
] | [
"R600",
"2",
"3",
"1",
"0",
"0",
"2",
"3",
"1",
"0",
"0"
] | AMDGPUInstrInfo41 | expandPostRAPseudo | R600 | GPU | LLVM | 9,169 | 305 | 1 | [] |
[
"<s>",
"SDValue",
"SystemZTargetLowering",
"::",
"LowerFormalArguments",
"(",
"SDValue",
"Chain",
",",
"CallingConv",
"::",
"ID",
"CallConv",
",",
"bool",
"isVarArg",
",",
"const",
"SmallVectorImpl",
"<",
"ISD",
"::",
"InputArg",
">",
"&",
"Ins",
",",
"DebugLoc",
"dl",
",",
"SelectionDAG",
"&",
"DAG",
",",
"SmallVectorImpl",
"<",
"SDValue",
">",
"&",
"InVals",
")",
"const",
"{",
"switch",
"(",
"CallConv",
")",
"{",
"default",
":",
"llvm_unreachable",
"(",
"\"Unsupported calling convention\"",
")",
";",
"case",
"CallingConv",
"::",
"C",
":",
"case",
"CallingConv",
"::",
"Fast",
":",
"return",
"LowerCCCArguments",
"(",
"Chain",
",",
"CallConv",
",",
"isVarArg",
",",
"Ins",
",",
"dl",
",",
"DAG",
",",
"InVals",
")",
";",
"}",
"}",
"</s>"
] | [
"This",
"hook",
"must",
"be",
"implemented",
"to",
"lower",
"the",
"incoming",
"(",
"formal",
")",
"arguments",
",",
"described",
"by",
"the",
"Ins",
"array",
",",
"into",
"the",
"specified",
"DAG",
"."
] | [
"SystemZ",
"SystemZ",
"ISD::InputArg",
"\"Unsupported calling convention\""
] | SystemZISelLowering107 | LowerFormalArguments | SystemZ | CPU | LLVM | 9,170 | 84 | 1 | [] |
[
"<s>",
"int",
"arm_early_load_addr_dep",
"(",
"rtx",
"producer",
",",
"rtx",
"consumer",
")",
"{",
"rtx",
"value",
",",
"addr",
";",
"if",
"(",
"!",
"arm_get_set_operands",
"(",
"producer",
",",
"consumer",
",",
"&",
"value",
",",
"&",
"addr",
")",
")",
"return",
"0",
";",
"return",
"reg_overlap_mentioned_p",
"(",
"value",
",",
"addr",
")",
";",
"}",
"</s>"
] | [
"Return",
"nonzero",
"if",
"the",
"CONSUMER",
"instruction",
"(",
"a",
"load",
")",
"does",
"need",
"PRODUCER",
"'s",
"value",
"to",
"calculate",
"the",
"address",
"."
] | [
"arm",
"0"
] | aarch-common | arm_early_load_addr_dep | arm | CPU | GCC | 9,171 | 43 | 1 | [] |
[
"<s>",
"enum",
"attr_op_mem",
"m68k_sched_attr_op_mem",
"(",
"rtx_insn",
"*",
"insn",
")",
"{",
"enum",
"attr_op_type",
"opx",
";",
"enum",
"attr_op_type",
"opy",
";",
"opx",
"=",
"sched_get_opxy_mem_type",
"(",
"insn",
",",
"true",
")",
";",
"opy",
"=",
"sched_get_opxy_mem_type",
"(",
"insn",
",",
"false",
")",
";",
"if",
"(",
"opy",
"==",
"OP_TYPE_RN",
"&&",
"opx",
"==",
"OP_TYPE_RN",
")",
"return",
"OP_MEM_00",
";",
"if",
"(",
"opy",
"==",
"OP_TYPE_RN",
"&&",
"opx",
"==",
"OP_TYPE_MEM1",
")",
"{",
"switch",
"(",
"get_attr_opx_access",
"(",
"insn",
")",
")",
"{",
"case",
"OPX_ACCESS_R",
":",
"return",
"OP_MEM_10",
";",
"case",
"OPX_ACCESS_W",
":",
"return",
"OP_MEM_01",
";",
"case",
"OPX_ACCESS_RW",
":",
"return",
"OP_MEM_11",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"}",
"if",
"(",
"opy",
"==",
"OP_TYPE_RN",
"&&",
"opx",
"==",
"OP_TYPE_MEM6",
")",
"{",
"switch",
"(",
"get_attr_opx_access",
"(",
"insn",
")",
")",
"{",
"case",
"OPX_ACCESS_R",
":",
"return",
"OP_MEM_I0",
";",
"case",
"OPX_ACCESS_W",
":",
"return",
"OP_MEM_0I",
";",
"case",
"OPX_ACCESS_RW",
":",
"return",
"OP_MEM_I1",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"}",
"if",
"(",
"opy",
"==",
"OP_TYPE_MEM1",
"&&",
"opx",
"==",
"OP_TYPE_RN",
")",
"return",
"OP_MEM_10",
";",
"if",
"(",
"opy",
"==",
"OP_TYPE_MEM1",
"&&",
"opx",
"==",
"OP_TYPE_MEM1",
")",
"{",
"switch",
"(",
"get_attr_opx_access",
"(",
"insn",
")",
")",
"{",
"case",
"OPX_ACCESS_W",
":",
"return",
"OP_MEM_11",
";",
"default",
":",
"gcc_assert",
"(",
"!",
"reload_completed",
")",
";",
"return",
"OP_MEM_11",
";",
"}",
"}",
"if",
"(",
"opy",
"==",
"OP_TYPE_MEM1",
"&&",
"opx",
"==",
"OP_TYPE_MEM6",
")",
"{",
"switch",
"(",
"get_attr_opx_access",
"(",
"insn",
")",
")",
"{",
"case",
"OPX_ACCESS_W",
":",
"return",
"OP_MEM_1I",
";",
"default",
":",
"gcc_assert",
"(",
"!",
"reload_completed",
")",
";",
"return",
"OP_MEM_1I",
";",
"}",
"}",
"if",
"(",
"opy",
"==",
"OP_TYPE_MEM6",
"&&",
"opx",
"==",
"OP_TYPE_RN",
")",
"return",
"OP_MEM_I0",
";",
"if",
"(",
"opy",
"==",
"OP_TYPE_MEM6",
"&&",
"opx",
"==",
"OP_TYPE_MEM1",
")",
"{",
"switch",
"(",
"get_attr_opx_access",
"(",
"insn",
")",
")",
"{",
"case",
"OPX_ACCESS_W",
":",
"return",
"OP_MEM_I1",
";",
"default",
":",
"gcc_assert",
"(",
"!",
"reload_completed",
")",
";",
"return",
"OP_MEM_I1",
";",
"}",
"}",
"gcc_assert",
"(",
"opy",
"==",
"OP_TYPE_MEM6",
"&&",
"opx",
"==",
"OP_TYPE_MEM6",
")",
";",
"gcc_assert",
"(",
"!",
"reload_completed",
")",
";",
"return",
"OP_MEM_I1",
";",
"}",
"</s>"
] | [
"Implement",
"op_mem",
"attribute",
"."
] | [
"m68k"
] | m68k | m68k_sched_attr_op_mem | m68k | MPU | GCC | 9,172 | 299 | 1 | [] |
[
"<s>",
"bool",
"AlphaAsmPrinter",
"::",
"PrintAsmMemoryOperand",
"(",
"const",
"MachineInstr",
"*",
"MI",
",",
"unsigned",
"OpNo",
",",
"unsigned",
"AsmVariant",
",",
"const",
"char",
"*",
"ExtraCode",
")",
"{",
"if",
"(",
"ExtraCode",
"&&",
"ExtraCode",
"[",
"0",
"]",
")",
"return",
"true",
";",
"O",
"<<",
"\"0(\"",
";",
"printOperand",
"(",
"MI",
",",
"OpNo",
")",
";",
"O",
"<<",
"\")\"",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Print",
"the",
"specified",
"operand",
"of",
"MI",
",",
"an",
"INLINEASM",
"instruction",
",",
"using",
"the",
"specified",
"assembler",
"variant",
"as",
"an",
"address",
"."
] | [
"Alpha",
"Alpha",
"0",
"\"0(\"",
"\")\""
] | AlphaAsmPrinter1 | PrintAsmMemoryOperand | Alpha | MPU | LLVM | 9,173 | 53 | 1 | [] |
[
"<s>",
"void",
"SystemZPostRASchedStrategy",
"::",
"enterMBB",
"(",
"MachineBasicBlock",
"*",
"NextMBB",
")",
"{",
"assert",
"(",
"(",
"SchedStates",
".",
"find",
"(",
"NextMBB",
")",
"==",
"SchedStates",
".",
"end",
"(",
")",
")",
"&&",
"\"Entering MBB twice?\"",
")",
";",
"DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"** Entering \"",
"<<",
"printMBBReference",
"(",
"*",
"NextMBB",
")",
")",
";",
"MBB",
"=",
"NextMBB",
";",
"HazardRec",
"=",
"SchedStates",
"[",
"MBB",
"]",
"=",
"new",
"SystemZHazardRecognizer",
"(",
"TII",
",",
"&",
"SchedModel",
")",
";",
"DEBUG",
"(",
"const",
"MachineLoop",
"*",
"Loop",
"=",
"MLI",
"->",
"getLoopFor",
"(",
"MBB",
")",
";",
"if",
"(",
"Loop",
"&&",
"Loop",
"->",
"getHeader",
"(",
")",
"==",
"MBB",
")",
"dbgs",
"(",
")",
"<<",
"\" (Loop header)\"",
";",
"dbgs",
"(",
")",
"<<",
"\":\\n\"",
";",
")",
";",
"MachineBasicBlock",
"*",
"SinglePredMBB",
"=",
"getSingleSchedPred",
"(",
"MBB",
",",
"MLI",
"->",
"getLoopFor",
"(",
"MBB",
")",
")",
";",
"if",
"(",
"SinglePredMBB",
"==",
"nullptr",
"||",
"SchedStates",
".",
"find",
"(",
"SinglePredMBB",
")",
"==",
"SchedStates",
".",
"end",
"(",
")",
")",
"return",
";",
"DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"** Continued scheduling from \"",
"<<",
"printMBBReference",
"(",
"*",
"SinglePredMBB",
")",
"<<",
"\"\\n\"",
";",
")",
";",
"HazardRec",
"->",
"copyState",
"(",
"SchedStates",
"[",
"SinglePredMBB",
"]",
")",
";",
"DEBUG",
"(",
"HazardRec",
"->",
"dumpState",
"(",
")",
";",
")",
";",
"for",
"(",
"MachineBasicBlock",
"::",
"iterator",
"I",
"=",
"SinglePredMBB",
"->",
"getFirstTerminator",
"(",
")",
";",
"I",
"!=",
"SinglePredMBB",
"->",
"end",
"(",
")",
";",
"I",
"++",
")",
"{",
"DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"** Emitting incoming branch: \"",
";",
"I",
"->",
"dump",
"(",
")",
";",
")",
";",
"bool",
"TakenBranch",
"=",
"(",
"I",
"->",
"isBranch",
"(",
")",
"&&",
"(",
"TII",
"->",
"getBranchInfo",
"(",
"*",
"I",
")",
".",
"Target",
"->",
"isReg",
"(",
")",
"||",
"TII",
"->",
"getBranchInfo",
"(",
"*",
"I",
")",
".",
"Target",
"->",
"getMBB",
"(",
")",
"==",
"MBB",
")",
")",
";",
"HazardRec",
"->",
"emitInstruction",
"(",
"&",
"*",
"I",
",",
"TakenBranch",
")",
";",
"if",
"(",
"TakenBranch",
")",
"break",
";",
"}",
"}",
"</s>"
] | [
"Tell",
"the",
"strategy",
"that",
"MBB",
"is",
"about",
"to",
"be",
"processed",
"."
] | [
"SystemZ",
"SystemZ",
"\"Entering MBB twice?\"",
"\"** Entering \"",
"SystemZ",
"\" (Loop header)\"",
"\":\\n\"",
"\"** Continued scheduling from \"",
"\"\\n\"",
"\"** Emitting incoming branch: \""
] | SystemZMachineScheduler12 | enterMBB | SystemZ | CPU | LLVM | 9,174 | 283 | 1 | [] |
[
"<s>",
"static",
"bool",
"callees_functions_use_frame_header",
"(",
"function",
"*",
"fn",
")",
"{",
"basic_block",
"bb",
";",
"gimple_stmt_iterator",
"gsi",
";",
"gimple",
"*",
"stmt",
";",
"tree",
"called_fn_tree",
";",
"function",
"*",
"called_fn",
";",
"if",
"(",
"fn",
"->",
"cfg",
"==",
"NULL",
")",
"return",
"true",
";",
"FOR_EACH_BB_FN",
"(",
"bb",
",",
"fn",
")",
"{",
"for",
"(",
"gsi",
"=",
"gsi_start_bb",
"(",
"bb",
")",
";",
"!",
"gsi_end_p",
"(",
"gsi",
")",
";",
"gsi_next",
"(",
"&",
"gsi",
")",
")",
"{",
"stmt",
"=",
"gsi_stmt",
"(",
"gsi",
")",
";",
"if",
"(",
"is_gimple_call",
"(",
"stmt",
")",
")",
"{",
"called_fn_tree",
"=",
"gimple_call_fndecl",
"(",
"stmt",
")",
";",
"if",
"(",
"called_fn_tree",
"!=",
"NULL",
")",
"{",
"called_fn",
"=",
"DECL_STRUCT_FUNCTION",
"(",
"called_fn_tree",
")",
";",
"if",
"(",
"called_fn",
"==",
"NULL",
"||",
"DECL_WEAK",
"(",
"called_fn_tree",
")",
"||",
"has_inlined_assembly",
"(",
"called_fn",
")",
"||",
"!",
"is_leaf_function",
"(",
"called_fn",
")",
"||",
"!",
"called_fn",
"->",
"machine",
"->",
"does_not_use_frame_header",
")",
"return",
"true",
";",
"}",
"else",
"return",
"true",
";",
"}",
"}",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"the",
"argument",
"stack",
"space",
"allocated",
"by",
"function",
"FN",
"is",
"used",
".",
"Return",
"false",
"if",
"the",
"space",
"is",
"needed",
"or",
"if",
"the",
"need",
"for",
"the",
"space",
"can",
"not",
"be",
"determined",
"."
] | [
"mips"
] | frame-header-opt | callees_functions_use_frame_header | mips | CPU | GCC | 9,175 | 146 | 1 | [] |
[
"<s>",
"bool",
"ARMAsmPrinter",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"AFI",
"=",
"MF",
".",
"getInfo",
"<",
"ARMFunctionInfo",
">",
"(",
")",
";",
"MCP",
"=",
"MF",
".",
"getConstantPool",
"(",
")",
";",
"Subtarget",
"=",
"&",
"MF",
".",
"getSubtarget",
"<",
"ARMSubtarget",
">",
"(",
")",
";",
"SetupMachineFunction",
"(",
"MF",
")",
";",
"if",
"(",
"Subtarget",
"->",
"isTargetCOFF",
"(",
")",
")",
"{",
"bool",
"Internal",
"=",
"MF",
".",
"getFunction",
"(",
")",
"->",
"hasInternalLinkage",
"(",
")",
";",
"COFF",
"::",
"SymbolStorageClass",
"Scl",
"=",
"Internal",
"?",
"COFF",
"::",
"IMAGE_SYM_CLASS_STATIC",
":",
"COFF",
"::",
"IMAGE_SYM_CLASS_EXTERNAL",
";",
"int",
"Type",
"=",
"COFF",
"::",
"IMAGE_SYM_DTYPE_FUNCTION",
"<<",
"COFF",
"::",
"SCT_COMPLEX_TYPE_SHIFT",
";",
"OutStreamer",
"->",
"BeginCOFFSymbolDef",
"(",
"CurrentFnSym",
")",
";",
"OutStreamer",
"->",
"EmitCOFFSymbolStorageClass",
"(",
"Scl",
")",
";",
"OutStreamer",
"->",
"EmitCOFFSymbolType",
"(",
"Type",
")",
";",
"OutStreamer",
"->",
"EndCOFFSymbolDef",
"(",
")",
";",
"}",
"EmitFunctionBody",
"(",
")",
";",
"if",
"(",
"!",
"ThumbIndirectPads",
".",
"empty",
"(",
")",
")",
"{",
"OutStreamer",
"->",
"EmitAssemblerFlag",
"(",
"MCAF_Code16",
")",
";",
"EmitAlignment",
"(",
"1",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
",",
"e",
"=",
"ThumbIndirectPads",
".",
"size",
"(",
")",
";",
"i",
"<",
"e",
";",
"i",
"++",
")",
"{",
"OutStreamer",
"->",
"EmitLabel",
"(",
"ThumbIndirectPads",
"[",
"i",
"]",
".",
"second",
")",
";",
"EmitToStreamer",
"(",
"*",
"OutStreamer",
",",
"MCInstBuilder",
"(",
"ARM",
"::",
"tBX",
")",
".",
"addReg",
"(",
"ThumbIndirectPads",
"[",
"i",
"]",
".",
"first",
")",
".",
"addImm",
"(",
"ARMCC",
"::",
"AL",
")",
".",
"addReg",
"(",
"0",
")",
")",
";",
"}",
"ThumbIndirectPads",
".",
"clear",
"(",
")",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"ARM",
"ARM",
"ARM",
"ARM",
"1",
"0",
"ARM::tBX",
"ARMCC::AL",
"0"
] | ARMAsmPrinter18 | runOnMachineFunction | ARM | CPU | LLVM | 9,176 | 230 | 1 | [] |
[
"<s>",
"const",
"MCPhysReg",
"*",
"AMDGPURegisterInfo",
"::",
"getCalleeSavedRegs",
"(",
"const",
"MachineFunction",
"*",
"MF",
")",
"const",
"{",
"return",
"&",
"CalleeSavedReg",
";",
"}",
"</s>"
] | [
"Code",
"Generation",
"virtual",
"methods",
"..."
] | [
"AMDGPU",
"AMDGPU"
] | AMDGPURegisterInfo7 | getCalleeSavedRegs | AMDGPU | GPU | LLVM | 9,177 | 19 | 1 | [] |
[
"<s>",
"rtx",
"sh_dwarf_register_span",
"(",
"rtx",
"reg",
")",
"{",
"unsigned",
"regno",
"=",
"REGNO",
"(",
"reg",
")",
";",
"if",
"(",
"WORDS_BIG_ENDIAN",
"||",
"GET_MODE",
"(",
"reg",
")",
"!=",
"DFmode",
")",
"return",
"NULL_RTX",
";",
"return",
"gen_rtx_PARALLEL",
"(",
"VOIDmode",
",",
"gen_rtvec",
"(",
"2",
",",
"gen_rtx_REG",
"(",
"SFmode",
",",
"regno",
"+",
"1",
")",
",",
"gen_rtx_REG",
"(",
"SFmode",
",",
"regno",
")",
")",
")",
";",
"}",
"</s>"
] | [
"64",
"bit",
"floating",
"points",
"memory",
"transfers",
"are",
"paired",
"single",
"precision",
"loads",
"or",
"store",
".",
"So",
"DWARF",
"information",
"needs",
"fixing",
"in",
"little",
"endian",
"(",
"unless",
"PR=SZ=1",
"in",
"FPSCR",
")",
"."
] | [
"sh",
"2",
"1"
] | sh | sh_dwarf_register_span | sh | CPU | GCC | 9,178 | 57 | 1 | [] |
[
"<s>",
"int",
"memreg_operand",
"(",
"rtx",
"op",
",",
"enum",
"machine_mode",
"mode",
"ATTRIBUTE_UNUSED",
")",
"{",
"return",
"GET_CODE",
"(",
"op",
")",
"==",
"MEM",
"&&",
"GET_CODE",
"(",
"XEXP",
"(",
"op",
",",
"0",
")",
")",
"==",
"REG",
";",
"}",
"</s>"
] | [
"Return",
"1",
"if",
"OP",
"is",
"(",
"mem",
"(",
"reg",
"...",
")",
")",
".",
"This",
"is",
"used",
"in",
"insn",
"length",
"calcs",
"."
] | [
"m32r",
"0"
] | m32r3 | memreg_operand | m32r | MPU | GCC | 9,179 | 33 | 1 | [] |
[
"<s>",
"static",
"bool",
"s390_cannot_force_const_mem",
"(",
"machine_mode",
"mode",
",",
"rtx",
"x",
")",
"{",
"switch",
"(",
"GET_CODE",
"(",
"x",
")",
")",
"{",
"case",
"CONST_INT",
":",
"case",
"CONST_DOUBLE",
":",
"return",
"false",
";",
"case",
"LABEL_REF",
":",
"return",
"flag_pic",
"!=",
"0",
";",
"case",
"SYMBOL_REF",
":",
"if",
"(",
"tls_symbolic_operand",
"(",
"x",
")",
")",
"return",
"true",
";",
"else",
"return",
"flag_pic",
"!=",
"0",
";",
"case",
"CONST",
":",
"return",
"s390_cannot_force_const_mem",
"(",
"mode",
",",
"XEXP",
"(",
"x",
",",
"0",
")",
")",
";",
"case",
"PLUS",
":",
"case",
"MINUS",
":",
"return",
"s390_cannot_force_const_mem",
"(",
"mode",
",",
"XEXP",
"(",
"x",
",",
"0",
")",
")",
"||",
"s390_cannot_force_const_mem",
"(",
"mode",
",",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
";",
"case",
"UNSPEC",
":",
"switch",
"(",
"XINT",
"(",
"x",
",",
"1",
")",
")",
"{",
"case",
"UNSPEC_LTREL_OFFSET",
":",
"case",
"UNSPEC_GOT",
":",
"case",
"UNSPEC_GOTOFF",
":",
"case",
"UNSPEC_PLTOFF",
":",
"case",
"UNSPEC_TLSGD",
":",
"case",
"UNSPEC_TLSLDM",
":",
"case",
"UNSPEC_NTPOFF",
":",
"case",
"UNSPEC_DTPOFF",
":",
"case",
"UNSPEC_GOTNTPOFF",
":",
"case",
"UNSPEC_INDNTPOFF",
":",
"return",
"false",
";",
"case",
"UNSPEC_INSN",
":",
"return",
"TARGET_CPU_ZARCH",
";",
"default",
":",
"return",
"true",
";",
"}",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"}",
"</s>"
] | [
"Determine",
"if",
"it",
"'s",
"legal",
"to",
"put",
"X",
"into",
"the",
"constant",
"pool",
".",
"This",
"is",
"not",
"possible",
"if",
"X",
"contains",
"the",
"address",
"of",
"a",
"symbol",
"that",
"is",
"not",
"constant",
"(",
"TLS",
")",
"or",
"not",
"known",
"at",
"final",
"link",
"time",
"(",
"PIC",
")",
"."
] | [
"s390",
"0",
"0",
"0",
"0",
"1",
"1"
] | s3904 | s390_cannot_force_const_mem | s390 | MPU | GCC | 9,180 | 170 | 1 | [] |
[
"<s>",
"bool",
"SIPostRABundler",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"if",
"(",
"skipFunction",
"(",
"MF",
".",
"getFunction",
"(",
")",
")",
")",
"return",
"false",
";",
"TRI",
"=",
"MF",
".",
"getSubtarget",
"<",
"GCNSubtarget",
">",
"(",
")",
".",
"getRegisterInfo",
"(",
")",
";",
"BitVector",
"BundleUsedRegUnits",
"(",
"TRI",
"->",
"getNumRegUnits",
"(",
")",
")",
";",
"BitVector",
"KillUsedRegUnits",
"(",
"TRI",
"->",
"getNumRegUnits",
"(",
")",
")",
";",
"bool",
"Changed",
"=",
"false",
";",
"for",
"(",
"MachineBasicBlock",
"&",
"MBB",
":",
"MF",
")",
"{",
"MachineBasicBlock",
"::",
"instr_iterator",
"Next",
";",
"MachineBasicBlock",
"::",
"instr_iterator",
"B",
"=",
"MBB",
".",
"instr_begin",
"(",
")",
";",
"MachineBasicBlock",
"::",
"instr_iterator",
"E",
"=",
"MBB",
".",
"instr_end",
"(",
")",
";",
"for",
"(",
"auto",
"I",
"=",
"B",
";",
"I",
"!=",
"E",
";",
"I",
"=",
"Next",
")",
"{",
"Next",
"=",
"std",
"::",
"next",
"(",
"I",
")",
";",
"if",
"(",
"!",
"isBundleCandidate",
"(",
"*",
"I",
")",
")",
"continue",
";",
"assert",
"(",
"Defs",
".",
"empty",
"(",
")",
")",
";",
"if",
"(",
"I",
"->",
"getNumExplicitDefs",
"(",
")",
"!=",
"0",
")",
"Defs",
".",
"insert",
"(",
"I",
"->",
"defs",
"(",
")",
".",
"begin",
"(",
")",
"->",
"getReg",
"(",
")",
")",
";",
"MachineBasicBlock",
"::",
"instr_iterator",
"BundleStart",
"=",
"I",
";",
"MachineBasicBlock",
"::",
"instr_iterator",
"BundleEnd",
"=",
"I",
";",
"unsigned",
"ClauseLength",
"=",
"1",
";",
"for",
"(",
"I",
"=",
"Next",
";",
"I",
"!=",
"E",
";",
"I",
"=",
"Next",
")",
"{",
"Next",
"=",
"std",
"::",
"next",
"(",
"I",
")",
";",
"assert",
"(",
"BundleEnd",
"!=",
"I",
")",
";",
"if",
"(",
"canBundle",
"(",
"*",
"BundleEnd",
",",
"*",
"I",
")",
")",
"{",
"BundleEnd",
"=",
"I",
";",
"if",
"(",
"I",
"->",
"getNumExplicitDefs",
"(",
")",
"!=",
"0",
")",
"Defs",
".",
"insert",
"(",
"I",
"->",
"defs",
"(",
")",
".",
"begin",
"(",
")",
"->",
"getReg",
"(",
")",
")",
";",
"++",
"ClauseLength",
";",
"}",
"else",
"if",
"(",
"!",
"I",
"->",
"isMetaInstruction",
"(",
")",
")",
"{",
"break",
";",
"}",
"}",
"Next",
"=",
"std",
"::",
"next",
"(",
"BundleEnd",
")",
";",
"if",
"(",
"ClauseLength",
">",
"1",
")",
"{",
"Changed",
"=",
"true",
";",
"if",
"(",
"Next",
"!=",
"E",
"&&",
"Next",
"->",
"isKill",
"(",
")",
")",
"{",
"for",
"(",
"const",
"MachineInstr",
"&",
"BundleMI",
":",
"make_range",
"(",
"BundleStart",
",",
"Next",
")",
")",
"collectUsedRegUnits",
"(",
"BundleMI",
",",
"BundleUsedRegUnits",
")",
";",
"BundleUsedRegUnits",
".",
"flip",
"(",
")",
";",
"while",
"(",
"Next",
"!=",
"E",
"&&",
"Next",
"->",
"isKill",
"(",
")",
")",
"{",
"MachineInstr",
"&",
"Kill",
"=",
"*",
"Next",
";",
"collectUsedRegUnits",
"(",
"Kill",
",",
"KillUsedRegUnits",
")",
";",
"KillUsedRegUnits",
"&=",
"BundleUsedRegUnits",
";",
"if",
"(",
"KillUsedRegUnits",
".",
"none",
"(",
")",
")",
"{",
"++",
"Next",
";",
"Kill",
".",
"eraseFromParent",
"(",
")",
";",
"}",
"else",
"break",
";",
"KillUsedRegUnits",
".",
"reset",
"(",
")",
";",
"}",
"BundleUsedRegUnits",
".",
"reset",
"(",
")",
";",
"}",
"finalizeBundle",
"(",
"MBB",
",",
"BundleStart",
",",
"Next",
")",
";",
"}",
"Defs",
".",
"clear",
"(",
")",
";",
"}",
"}",
"return",
"Changed",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"AMDGPU",
"SI",
"0",
"1",
"0",
"1"
] | SIPostRABundler1 | runOnMachineFunction | AMDGPU | GPU | LLVM | 9,181 | 437 | 1 | [] |
[
"<s>",
"bool",
"BitSimplification",
"::",
"processBlock",
"(",
"MachineBasicBlock",
"&",
"B",
",",
"const",
"RegisterSet",
"&",
"AVs",
")",
"{",
"bool",
"Changed",
"=",
"false",
";",
"RegisterSet",
"AVB",
"=",
"AVs",
";",
"RegisterSet",
"Defs",
";",
"for",
"(",
"auto",
"I",
"=",
"B",
".",
"begin",
"(",
")",
",",
"E",
"=",
"B",
".",
"end",
"(",
")",
";",
"I",
"!=",
"E",
";",
"++",
"I",
",",
"AVB",
".",
"insert",
"(",
"Defs",
")",
")",
"{",
"MachineInstr",
"*",
"MI",
"=",
"&",
"*",
"I",
";",
"Defs",
".",
"clear",
"(",
")",
";",
"HBS",
"::",
"getInstrDefs",
"(",
"*",
"MI",
",",
"Defs",
")",
";",
"unsigned",
"Opc",
"=",
"MI",
"->",
"getOpcode",
"(",
")",
";",
"if",
"(",
"Opc",
"==",
"TargetOpcode",
"::",
"COPY",
"||",
"Opc",
"==",
"TargetOpcode",
"::",
"REG_SEQUENCE",
")",
"continue",
";",
"if",
"(",
"MI",
"->",
"mayStore",
"(",
")",
")",
"{",
"bool",
"T",
"=",
"genStoreUpperHalf",
"(",
"MI",
")",
";",
"T",
"=",
"T",
"||",
"genStoreImmediate",
"(",
"MI",
")",
";",
"Changed",
"|=",
"T",
";",
"continue",
";",
"}",
"if",
"(",
"Defs",
".",
"count",
"(",
")",
"!=",
"1",
")",
"continue",
";",
"const",
"MachineOperand",
"&",
"Op0",
"=",
"MI",
"->",
"getOperand",
"(",
"0",
")",
";",
"if",
"(",
"!",
"Op0",
".",
"isReg",
"(",
")",
"||",
"!",
"Op0",
".",
"isDef",
"(",
")",
")",
"continue",
";",
"BitTracker",
"::",
"RegisterRef",
"RD",
"=",
"Op0",
";",
"if",
"(",
"!",
"BT",
".",
"has",
"(",
"RD",
".",
"Reg",
")",
")",
"continue",
";",
"const",
"TargetRegisterClass",
"*",
"FRC",
"=",
"HBS",
"::",
"getFinalVRegClass",
"(",
"RD",
",",
"MRI",
")",
";",
"const",
"BitTracker",
"::",
"RegisterCell",
"&",
"RC",
"=",
"BT",
".",
"lookup",
"(",
"RD",
".",
"Reg",
")",
";",
"if",
"(",
"FRC",
"->",
"getID",
"(",
")",
"==",
"Hexagon",
"::",
"DoubleRegsRegClassID",
")",
"{",
"bool",
"T",
"=",
"genPackhl",
"(",
"MI",
",",
"RD",
",",
"RC",
")",
";",
"Changed",
"|=",
"T",
";",
"continue",
";",
"}",
"if",
"(",
"FRC",
"->",
"getID",
"(",
")",
"==",
"Hexagon",
"::",
"IntRegsRegClassID",
")",
"{",
"bool",
"T",
"=",
"genExtractHalf",
"(",
"MI",
",",
"RD",
",",
"RC",
")",
";",
"T",
"=",
"T",
"||",
"genCombineHalf",
"(",
"MI",
",",
"RD",
",",
"RC",
")",
";",
"T",
"=",
"T",
"||",
"genExtractLow",
"(",
"MI",
",",
"RD",
",",
"RC",
")",
";",
"Changed",
"|=",
"T",
";",
"continue",
";",
"}",
"if",
"(",
"FRC",
"->",
"getID",
"(",
")",
"==",
"Hexagon",
"::",
"PredRegsRegClassID",
")",
"{",
"bool",
"T",
"=",
"simplifyTstbit",
"(",
"MI",
",",
"RD",
",",
"RC",
")",
";",
"Changed",
"|=",
"T",
";",
"continue",
";",
"}",
"}",
"return",
"Changed",
";",
"}",
"</s>"
] | [
"processBlock",
"-",
"If",
"there",
"are",
"any",
"predecessors",
"whose",
"control",
"can",
"be",
"threaded",
"through",
"to",
"a",
"successor",
",",
"transform",
"them",
"now",
"."
] | [
"Hexagon",
"1",
"0",
"Hexagon::DoubleRegsRegClassID",
"Hexagon::IntRegsRegClassID",
"Hexagon::PredRegsRegClassID"
] | HexagonBitSimplify (2) | processBlock | Hexagon | DSP | LLVM | 9,182 | 364 | 1 | [] |
[
"<s>",
"static",
"machine_mode",
"select_block_compare_mode",
"(",
"unsigned",
"HOST_WIDE_INT",
"offset",
",",
"unsigned",
"HOST_WIDE_INT",
"bytes",
",",
"unsigned",
"HOST_WIDE_INT",
"align",
",",
"bool",
"word_mode_ok",
")",
"{",
"unsigned",
"HOST_WIDE_INT",
"maxread",
"=",
"ROUND_UP",
"(",
"bytes",
",",
"align",
")",
";",
"if",
"(",
"word_mode_ok",
"&&",
"bytes",
">=",
"UNITS_PER_WORD",
")",
"return",
"word_mode",
";",
"else",
"if",
"(",
"bytes",
"==",
"GET_MODE_SIZE",
"(",
"SImode",
")",
")",
"return",
"SImode",
";",
"else",
"if",
"(",
"bytes",
"==",
"GET_MODE_SIZE",
"(",
"HImode",
")",
")",
"return",
"HImode",
";",
"else",
"if",
"(",
"bytes",
"==",
"GET_MODE_SIZE",
"(",
"QImode",
")",
")",
"return",
"QImode",
";",
"else",
"if",
"(",
"bytes",
"<",
"GET_MODE_SIZE",
"(",
"SImode",
")",
"&&",
"offset",
">=",
"GET_MODE_SIZE",
"(",
"SImode",
")",
"-",
"bytes",
")",
"return",
"SImode",
";",
"else",
"if",
"(",
"word_mode_ok",
"&&",
"bytes",
"<",
"UNITS_PER_WORD",
"&&",
"offset",
">=",
"UNITS_PER_WORD",
"-",
"bytes",
")",
"return",
"word_mode",
";",
"else",
"if",
"(",
"word_mode_ok",
"&&",
"maxread",
">=",
"UNITS_PER_WORD",
")",
"return",
"word_mode",
";",
"else",
"if",
"(",
"maxread",
">=",
"GET_MODE_SIZE",
"(",
"SImode",
")",
")",
"return",
"SImode",
";",
"else",
"if",
"(",
"bytes",
">",
"GET_MODE_SIZE",
"(",
"SImode",
")",
")",
"return",
"SImode",
";",
"else",
"if",
"(",
"bytes",
">",
"GET_MODE_SIZE",
"(",
"HImode",
")",
")",
"return",
"HImode",
";",
"return",
"QImode",
";",
"}",
"</s>"
] | [
"Select",
"the",
"mode",
"to",
"be",
"used",
"for",
"reading",
"the",
"next",
"chunk",
"of",
"bytes",
"in",
"the",
"compare",
".",
"OFFSET",
"is",
"the",
"current",
"read",
"offset",
"from",
"the",
"beginning",
"of",
"the",
"block",
".",
"BYTES",
"is",
"the",
"number",
"of",
"bytes",
"remaining",
"to",
"be",
"read",
".",
"ALIGN",
"is",
"the",
"minimum",
"alignment",
"of",
"the",
"memory",
"blocks",
"being",
"compared",
"in",
"bytes",
"."
] | [
"powerpcspe"
] | powerpcspe | select_block_compare_mode | powerpcspe | CPU | GCC | 9,183 | 176 | 1 | [] |
[
"<s>",
"FunctionPass",
"*",
"PTXPassConfig",
"::",
"createTargetRegisterAllocator",
"(",
"bool",
")",
"{",
"return",
"createPTXRegisterAllocator",
"(",
")",
";",
"}",
"</s>"
] | [
"createTargetRegisterAllocator",
"-",
"Create",
"the",
"register",
"allocator",
"pass",
"for",
"this",
"target",
"at",
"the",
"current",
"optimization",
"level",
"."
] | [
"PTX",
"PTX",
"PTX"
] | PTXTargetMachine2 | createTargetRegisterAllocator | PTX | GPU | LLVM | 9,184 | 15 | 1 | [] |
[
"<s>",
"std",
"::",
"pair",
"<",
"unsigned",
",",
"unsigned",
">",
"M680x0InstrInfo",
"::",
"decomposeMachineOperandsTargetFlags",
"(",
"unsigned",
"TF",
")",
"const",
"{",
"return",
"std",
"::",
"make_pair",
"(",
"TF",
",",
"0u",
")",
";",
"}",
"</s>"
] | [
"Decompose",
"the",
"machine",
"operand",
"'s",
"target",
"flags",
"into",
"two",
"values",
"-",
"the",
"direct",
"target",
"flag",
"value",
"and",
"any",
"of",
"bit",
"flags",
"that",
"are",
"applied",
"."
] | [
"M680x0",
"M680x0",
"0u"
] | M680x0InstrInfo | decomposeMachineOperandsTargetFlags | M680x0 | MPU | LLVM | 9,185 | 28 | 1 | [] |
[
"<s>",
"int",
"avr_function_arg_regno_p",
"(",
"int",
"r",
")",
"{",
"return",
"AVR_TINY",
"?",
"IN_RANGE",
"(",
"r",
",",
"20",
",",
"25",
")",
":",
"IN_RANGE",
"(",
"r",
",",
"8",
",",
"25",
")",
";",
"}",
"</s>"
] | [
"Returns",
"nonzero",
"if",
"REGNO",
"is",
"the",
"number",
"of",
"a",
"hard",
"register",
"in",
"which",
"function",
"arguments",
"are",
"sometimes",
"passed",
"."
] | [
"avr",
"20",
"25",
"8",
"25"
] | avr | avr_function_arg_regno_p | avr | MPU | GCC | 9,186 | 29 | 1 | [] |
[
"<s>",
"BitVector",
"Cpu0RegisterInfo",
"::",
"getReservedRegs",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"static",
"const",
"uint16_t",
"ReservedCPURegs",
"[",
"]",
"=",
"{",
"Cpu0",
"::",
"ZERO",
",",
"Cpu0",
"::",
"AT",
",",
"Cpu0",
"::",
"FP",
",",
"Cpu0",
"::",
"SP",
",",
"Cpu0",
"::",
"LR",
",",
"Cpu0",
"::",
"PC",
"}",
";",
"BitVector",
"Reserved",
"(",
"getNumRegs",
"(",
")",
")",
";",
"typedef",
"TargetRegisterClass",
"::",
"iterator",
"RegIter",
";",
"for",
"(",
"unsigned",
"I",
"=",
"0",
";",
"I",
"<",
"array_lengthof",
"(",
"ReservedCPURegs",
")",
";",
"++",
"I",
")",
"Reserved",
".",
"set",
"(",
"ReservedCPURegs",
"[",
"I",
"]",
")",
";",
"if",
"(",
"MF",
".",
"getInfo",
"<",
"Cpu0FunctionInfo",
">",
"(",
")",
"->",
"globalBaseRegFixed",
"(",
")",
")",
"{",
"Reserved",
".",
"set",
"(",
"Cpu0",
"::",
"GP",
")",
";",
"}",
"return",
"Reserved",
";",
"}",
"</s>"
] | [
"getReservedRegs",
"-",
"Returns",
"a",
"bitset",
"indexed",
"by",
"physical",
"register",
"number",
"indicating",
"if",
"a",
"register",
"is",
"a",
"special",
"register",
"that",
"has",
"particular",
"uses",
"and",
"should",
"be",
"considered",
"unavailable",
"at",
"all",
"times",
",",
"e.g",
"."
] | [
"Cpu0",
"Cpu0",
"Cpu0::ZERO",
"Cpu0::AT",
"Cpu0::FP",
"Cpu0::SP",
"Cpu0::LR",
"Cpu0::PC",
"0",
"Cpu0",
"Cpu0::GP"
] | Cpu0RegisterInfo2 | getReservedRegs | Cpu0 | CPU | LLVM | 9,187 | 116 | 1 | [] |
[
"<s>",
"std",
"::",
"pair",
"<",
"unsigned",
",",
"const",
"TargetRegisterClass",
"*",
">",
"SPUTargetLowering",
"::",
"getRegForInlineAsmConstraint",
"(",
"const",
"std",
"::",
"string",
"&",
"Constraint",
",",
"EVT",
"VT",
")",
"const",
"{",
"if",
"(",
"Constraint",
".",
"size",
"(",
")",
"==",
"1",
")",
"{",
"switch",
"(",
"Constraint",
"[",
"0",
"]",
")",
"{",
"case",
"'b'",
":",
"case",
"'r'",
":",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"i64",
")",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"SPU",
"::",
"R64CRegisterClass",
")",
";",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"SPU",
"::",
"R32CRegisterClass",
")",
";",
"case",
"'f'",
":",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"f32",
")",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"SPU",
"::",
"R32FPRegisterClass",
")",
";",
"else",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"f64",
")",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"SPU",
"::",
"R64FPRegisterClass",
")",
";",
"break",
";",
"case",
"'v'",
":",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"SPU",
"::",
"GPRCRegisterClass",
")",
";",
"}",
"}",
"return",
"TargetLowering",
"::",
"getRegForInlineAsmConstraint",
"(",
"Constraint",
",",
"VT",
")",
";",
"}",
"</s>"
] | [
"Given",
"a",
"physical",
"register",
"constraint",
"(",
"e.g",
"."
] | [
"CellSPU",
"SPU",
"1",
"0",
"MVT::i64",
"0U",
"SPU::R64CRegisterClass",
"0U",
"SPU::R32CRegisterClass",
"MVT::f32",
"0U",
"SPU::R32FPRegisterClass",
"MVT::f64",
"0U",
"SPU::R64FPRegisterClass",
"0U",
"SPU::GPRCRegisterClass"
] | SPUISelLowering1 | getRegForInlineAsmConstraint | CellSPU | MPU | LLVM | 9,188 | 157 | 1 | [] |
[
"<s>",
"MCSection",
"*",
"XtensaTargetObjectFile",
"::",
"getExplicitSectionGlobal",
"(",
"const",
"GlobalObject",
"*",
"GO",
",",
"SectionKind",
"Kind",
",",
"const",
"TargetMachine",
"&",
"TM",
")",
"const",
"{",
"assert",
"(",
"false",
"&&",
"\"XtensaTargetObjectFile::getExplicitSectionGlobal\"",
"\" not implemented\"",
")",
";",
"return",
"0",
";",
"}",
"</s>"
] | [
"Targets",
"should",
"implement",
"this",
"method",
"to",
"assign",
"a",
"section",
"to",
"globals",
"with",
"an",
"explicit",
"section",
"specfied",
"."
] | [
"Xtensa",
"Xtensa",
"\"XtensaTargetObjectFile::getExplicitSectionGlobal\"",
"\" not implemented\"",
"0"
] | XtensaTargetObjectFile | getExplicitSectionGlobal | Xtensa | MPU | LLVM | 9,189 | 33 | 1 | [] |
[
"<s>",
"void",
"printPCRelImm",
"(",
"const",
"MCInst",
"*",
"MI",
",",
"uint64_t",
",",
"unsigned",
"OpNo",
",",
"raw_ostream",
"&",
"O",
")",
"{",
"printPCRelImm",
"(",
"MI",
",",
"OpNo",
",",
"O",
")",
";",
"}",
"</s>"
] | [
"value",
"(",
"e.g",
"."
] | [
"MINA32"
] | MINA32InstPrinter | printPCRelImm | MINA32 | CPU | LLVM | 9,190 | 28 | 1 | [] |
[
"<s>",
"static",
"dispatch_windows",
"*",
"allocate_next_window",
"(",
"int",
"window_num",
")",
"{",
"if",
"(",
"window_num",
"==",
"0",
")",
"{",
"if",
"(",
"dispatch_window_list",
"->",
"next",
")",
"init_window",
"(",
"1",
")",
";",
"init_window",
"(",
"0",
")",
";",
"return",
"dispatch_window_list",
";",
"}",
"dispatch_window_list",
"->",
"next",
"=",
"dispatch_window_list1",
";",
"dispatch_window_list1",
"->",
"prev",
"=",
"dispatch_window_list",
";",
"return",
"dispatch_window_list1",
";",
"}",
"</s>"
] | [
"Allocates",
"a",
"new",
"dispatch",
"window",
"and",
"adds",
"it",
"to",
"WINDOW_LIST",
".",
"WINDOW_NUM",
"is",
"either",
"0",
"or",
"1",
".",
"A",
"maximum",
"of",
"two",
"windows",
"are",
"generated",
"for",
"48",
"bytes",
"of",
"instructions",
".",
"Note",
"that",
"these",
"windows",
"are",
"not",
"dispatch",
"windows",
"that",
"their",
"sizes",
"are",
"DISPATCH_WINDOW_SIZE",
"."
] | [
"i386",
"0",
"1",
"0"
] | i3864 | allocate_next_window | i386 | CPU | GCC | 9,191 | 52 | 1 | [] |
[
"<s>",
"static",
"bool",
"frv_issues_to_branch_unit_p",
"(",
"rtx",
"insn",
")",
"{",
"return",
"frv_unit_groups",
"[",
"frv_insn_unit",
"(",
"insn",
")",
"]",
"==",
"GROUP_B",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"INSN",
"issues",
"to",
"a",
"branch",
"unit",
"."
] | [
"frv"
] | frv2 | frv_issues_to_branch_unit_p | frv | VLIW | GCC | 9,192 | 20 | 1 | [] |
[
"<s>",
"Register",
"PPCTargetLowering",
"::",
"getRegisterByName",
"(",
"const",
"char",
"*",
"RegName",
",",
"LLT",
"VT",
",",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"bool",
"isPPC64",
"=",
"Subtarget",
".",
"isPPC64",
"(",
")",
";",
"bool",
"is64Bit",
"=",
"isPPC64",
"&&",
"VT",
"==",
"LLT",
"::",
"scalar",
"(",
"64",
")",
";",
"if",
"(",
"!",
"is64Bit",
"&&",
"VT",
"!=",
"LLT",
"::",
"scalar",
"(",
"32",
")",
")",
"report_fatal_error",
"(",
"\"Invalid register global variable type\"",
")",
";",
"Register",
"Reg",
"=",
"StringSwitch",
"<",
"Register",
">",
"(",
"RegName",
")",
".",
"Case",
"(",
"\"r1\"",
",",
"is64Bit",
"?",
"PPC",
"::",
"X1",
":",
"PPC",
"::",
"R1",
")",
".",
"Case",
"(",
"\"r2\"",
",",
"isPPC64",
"?",
"Register",
"(",
")",
":",
"PPC",
"::",
"R2",
")",
".",
"Case",
"(",
"\"r13\"",
",",
"(",
"is64Bit",
"?",
"PPC",
"::",
"X13",
":",
"PPC",
"::",
"R13",
")",
")",
".",
"Default",
"(",
"Register",
"(",
")",
")",
";",
"if",
"(",
"Reg",
")",
"return",
"Reg",
";",
"report_fatal_error",
"(",
"\"Invalid register name global variable\"",
")",
";",
"}",
"</s>"
] | [
"Return",
"the",
"register",
"ID",
"of",
"the",
"name",
"passed",
"in",
"."
] | [
"PowerPC",
"PPC",
"PPC",
"PPC",
"PPC",
"64",
"32",
"\"Invalid register global variable type\"",
"\"r1\"",
"PPC::X1",
"PPC::R1",
"\"r2\"",
"PPC",
"PPC::R2",
"\"r13\"",
"PPC::X13",
"PPC::R13",
"\"Invalid register name global variable\""
] | PPCISelLowering100 | getRegisterByName | PowerPC | CPU | LLVM | 9,193 | 140 | 1 | [] |
[
"<s>",
"int",
"AArch64TTIImpl",
"::",
"getArithmeticReductionCost",
"(",
"unsigned",
"Opcode",
",",
"VectorType",
"*",
"ValTy",
",",
"bool",
"IsPairwiseForm",
",",
"TTI",
"::",
"TargetCostKind",
"CostKind",
")",
"{",
"if",
"(",
"IsPairwiseForm",
")",
"return",
"BaseT",
"::",
"getArithmeticReductionCost",
"(",
"Opcode",
",",
"ValTy",
",",
"IsPairwiseForm",
",",
"CostKind",
")",
";",
"std",
"::",
"pair",
"<",
"int",
",",
"MVT",
">",
"LT",
"=",
"TLI",
"->",
"getTypeLegalizationCost",
"(",
"DL",
",",
"ValTy",
")",
";",
"MVT",
"MTy",
"=",
"LT",
".",
"second",
";",
"int",
"ISD",
"=",
"TLI",
"->",
"InstructionOpcodeToISD",
"(",
"Opcode",
")",
";",
"assert",
"(",
"ISD",
"&&",
"\"Invalid opcode\"",
")",
";",
"static",
"const",
"CostTblEntry",
"CostTblNoPairwise",
"[",
"]",
"{",
"{",
"ISD",
"::",
"ADD",
",",
"MVT",
"::",
"v8i8",
",",
"1",
"}",
",",
"{",
"ISD",
"::",
"ADD",
",",
"MVT",
"::",
"v16i8",
",",
"1",
"}",
",",
"{",
"ISD",
"::",
"ADD",
",",
"MVT",
"::",
"v4i16",
",",
"1",
"}",
",",
"{",
"ISD",
"::",
"ADD",
",",
"MVT",
"::",
"v8i16",
",",
"1",
"}",
",",
"{",
"ISD",
"::",
"ADD",
",",
"MVT",
"::",
"v4i32",
",",
"1",
"}",
",",
"}",
";",
"if",
"(",
"const",
"auto",
"*",
"Entry",
"=",
"CostTableLookup",
"(",
"CostTblNoPairwise",
",",
"ISD",
",",
"MTy",
")",
")",
"return",
"LT",
".",
"first",
"*",
"Entry",
"->",
"Cost",
";",
"return",
"BaseT",
"::",
"getArithmeticReductionCost",
"(",
"Opcode",
",",
"ValTy",
",",
"IsPairwiseForm",
",",
"CostKind",
")",
";",
"}",
"</s>"
] | [
"Calculate",
"the",
"cost",
"of",
"vector",
"reduction",
"intrinsics",
"."
] | [
"AArch64",
"AArch64",
"\"Invalid opcode\"",
"ISD::ADD",
"MVT::v8i8",
"1",
"ISD::ADD",
"MVT::v16i8",
"1",
"ISD::ADD",
"MVT::v4i16",
"1",
"ISD::ADD",
"MVT::v8i16",
"1",
"ISD::ADD",
"MVT::v4i32",
"1"
] | AArch64TargetTransformInfo2 | getArithmeticReductionCost | AArch64 | CPU | LLVM | 9,194 | 191 | 1 | [] |
[
"<s>",
"static",
"void",
"mips_sim_wait_reg",
"(",
"struct",
"mips_sim",
"*",
"state",
",",
"rtx",
"insn",
",",
"rtx",
"reg",
")",
"{",
"unsigned",
"int",
"i",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"HARD_REGNO_NREGS",
"(",
"REGNO",
"(",
"reg",
")",
",",
"GET_MODE",
"(",
"reg",
")",
")",
";",
"i",
"++",
")",
"if",
"(",
"state",
"->",
"last_set",
"[",
"REGNO",
"(",
"reg",
")",
"+",
"i",
"]",
".",
"insn",
"!=",
"0",
")",
"{",
"unsigned",
"int",
"t",
";",
"t",
"=",
"state",
"->",
"last_set",
"[",
"REGNO",
"(",
"reg",
")",
"+",
"i",
"]",
".",
"time",
";",
"t",
"+=",
"insn_latency",
"(",
"state",
"->",
"last_set",
"[",
"REGNO",
"(",
"reg",
")",
"+",
"i",
"]",
".",
"insn",
",",
"insn",
")",
";",
"while",
"(",
"state",
"->",
"time",
"<",
"t",
")",
"mips_sim_next_cycle",
"(",
"state",
")",
";",
"}",
"}",
"</s>"
] | [
"Advance",
"simulation",
"state",
"STATE",
"until",
"instruction",
"INSN",
"can",
"read",
"register",
"REG",
"."
] | [
"mips",
"0",
"0"
] | mips3 | mips_sim_wait_reg | mips | CPU | GCC | 9,195 | 119 | 1 | [] |
[
"<s>",
"void",
"Comet2RegisterInfo",
"::",
"eliminateFrameIndex",
"(",
"MachineBasicBlock",
"::",
"iterator",
"II",
",",
"int",
"SPAdj",
",",
"unsigned",
"FIOperandNum",
",",
"RegScavenger",
"*",
"RS",
")",
"const",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"### eliminateFrameIndex 0\\n\"",
")",
";",
"assert",
"(",
"SPAdj",
"==",
"0",
"&&",
"\"Unexpected non-zero SPAdj value\"",
")",
";",
"MachineInstr",
"&",
"MI",
"=",
"*",
"II",
";",
"MachineFunction",
"&",
"MF",
"=",
"*",
"MI",
".",
"getParent",
"(",
")",
"->",
"getParent",
"(",
")",
";",
"DebugLoc",
"DL",
"=",
"MI",
".",
"getDebugLoc",
"(",
")",
";",
"int",
"FrameIndex",
"=",
"MI",
".",
"getOperand",
"(",
"FIOperandNum",
")",
".",
"getIndex",
"(",
")",
";",
"Register",
"FrameReg",
";",
"StackOffset",
"Offset",
"=",
"getFrameLowering",
"(",
"MF",
")",
"->",
"getFrameIndexReference",
"(",
"MF",
",",
"FrameIndex",
",",
"FrameReg",
")",
"+",
"StackOffset",
"::",
"getFixed",
"(",
"MI",
".",
"getOperand",
"(",
"FIOperandNum",
"+",
"1",
")",
".",
"getImm",
"(",
")",
")",
";",
"if",
"(",
"!",
"isInt",
"<",
"16",
">",
"(",
"Offset",
".",
"getFixed",
"(",
")",
")",
")",
"{",
"report_fatal_error",
"(",
"\"Frame offsets outside of the signed 16-bit range not supported\"",
")",
";",
"}",
"MI",
".",
"getOperand",
"(",
"FIOperandNum",
")",
".",
"ChangeToRegister",
"(",
"FrameReg",
",",
"false",
")",
";",
"MI",
".",
"getOperand",
"(",
"FIOperandNum",
"+",
"1",
")",
".",
"ChangeToImmediate",
"(",
"Offset",
".",
"getFixed",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"This",
"method",
"must",
"be",
"overriden",
"to",
"eliminate",
"abstract",
"frame",
"indices",
"from",
"instructions",
"which",
"may",
"use",
"them",
"."
] | [
"Comet2",
"Comet2",
"\"### eliminateFrameIndex 0\\n\"",
"0",
"\"Unexpected non-zero SPAdj value\"",
"1",
"16",
"\"Frame offsets outside of the signed 16-bit range not supported\"",
"1"
] | Comet2RegisterInfo | eliminateFrameIndex | Comet2 | CPU | LLVM | 9,196 | 178 | 1 | [] |
[
"<s>",
"static",
"bool",
"spu_legitimate_address_p",
"(",
"machine_mode",
"mode",
",",
"rtx",
"x",
",",
"bool",
"reg_ok_strict",
")",
"{",
"int",
"aligned",
"=",
"GET_MODE_SIZE",
"(",
"mode",
")",
">=",
"16",
";",
"if",
"(",
"aligned",
"&&",
"GET_CODE",
"(",
"x",
")",
"==",
"AND",
"&&",
"GET_CODE",
"(",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
"==",
"CONST_INT",
"&&",
"INTVAL",
"(",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
"==",
"(",
"HOST_WIDE_INT",
")",
"-",
"16",
")",
"x",
"=",
"XEXP",
"(",
"x",
",",
"0",
")",
";",
"switch",
"(",
"GET_CODE",
"(",
"x",
")",
")",
"{",
"case",
"LABEL_REF",
":",
"return",
"!",
"TARGET_LARGE_MEM",
";",
"case",
"SYMBOL_REF",
":",
"case",
"CONST",
":",
"if",
"(",
"ea_symbol_ref_p",
"(",
"x",
")",
")",
"return",
"!",
"reload_in_progress",
"&&",
"!",
"reload_completed",
";",
"return",
"!",
"TARGET_LARGE_MEM",
";",
"case",
"CONST_INT",
":",
"return",
"INTVAL",
"(",
"x",
")",
">=",
"0",
"&&",
"INTVAL",
"(",
"x",
")",
"<=",
"0x3ffff",
";",
"case",
"SUBREG",
":",
"x",
"=",
"XEXP",
"(",
"x",
",",
"0",
")",
";",
"if",
"(",
"REG_P",
"(",
"x",
")",
")",
"return",
"0",
";",
"case",
"REG",
":",
"return",
"INT_REG_OK_FOR_BASE_P",
"(",
"x",
",",
"reg_ok_strict",
")",
";",
"case",
"PLUS",
":",
"case",
"LO_SUM",
":",
"{",
"rtx",
"op0",
"=",
"XEXP",
"(",
"x",
",",
"0",
")",
";",
"rtx",
"op1",
"=",
"XEXP",
"(",
"x",
",",
"1",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"op0",
")",
"==",
"SUBREG",
")",
"op0",
"=",
"XEXP",
"(",
"op0",
",",
"0",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"op1",
")",
"==",
"SUBREG",
")",
"op1",
"=",
"XEXP",
"(",
"op1",
",",
"0",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"op0",
")",
"==",
"REG",
"&&",
"INT_REG_OK_FOR_BASE_P",
"(",
"op0",
",",
"reg_ok_strict",
")",
"&&",
"GET_CODE",
"(",
"op1",
")",
"==",
"CONST_INT",
"&&",
"(",
"(",
"INTVAL",
"(",
"op1",
")",
">=",
"-",
"0x2000",
"&&",
"INTVAL",
"(",
"op1",
")",
"<=",
"0x1fff",
")",
"||",
"op0",
"==",
"arg_pointer_rtx",
"||",
"op0",
"==",
"frame_pointer_rtx",
"||",
"op0",
"==",
"virtual_stack_vars_rtx",
")",
"&&",
"(",
"!",
"aligned",
"||",
"(",
"INTVAL",
"(",
"op1",
")",
"&",
"15",
")",
"==",
"0",
")",
")",
"return",
"TRUE",
";",
"if",
"(",
"GET_CODE",
"(",
"op0",
")",
"==",
"REG",
"&&",
"INT_REG_OK_FOR_BASE_P",
"(",
"op0",
",",
"reg_ok_strict",
")",
"&&",
"GET_CODE",
"(",
"op1",
")",
"==",
"REG",
"&&",
"INT_REG_OK_FOR_INDEX_P",
"(",
"op1",
",",
"reg_ok_strict",
")",
")",
"return",
"TRUE",
";",
"}",
"break",
";",
"default",
":",
"break",
";",
"}",
"return",
"FALSE",
";",
"}",
"</s>"
] | [
"Valid",
"address",
"are",
":",
"-",
"symbol_ref",
",",
"label_ref",
",",
"const",
"-",
"reg",
"-",
"reg",
"+",
"const_int",
",",
"where",
"const_int",
"is",
"16",
"byte",
"aligned",
"-",
"reg",
"+",
"reg",
",",
"alignment",
"does",
"n't",
"matter",
"The",
"alignment",
"matters",
"in",
"the",
"reg+const",
"case",
"because",
"lqd",
"and",
"stqd",
"ignore",
"the",
"4",
"least",
"significant",
"bits",
"of",
"the",
"const",
".",
"We",
"only",
"care",
"about",
"16",
"byte",
"modes",
"because",
"the",
"expand",
"phase",
"will",
"change",
"all",
"smaller",
"MEM",
"references",
"to",
"TImode",
"."
] | [
"spu",
"16",
"1",
"1",
"16",
"0",
"0",
"0x3ffff",
"0",
"0",
"0",
"1",
"0",
"0",
"0x2000",
"0x1fff",
"15",
"0"
] | spu | spu_legitimate_address_p | spu | MPU | GCC | 9,197 | 343 | 1 | [] |
[
"<s>",
"virtual",
"const",
"char",
"*",
"getPassName",
"(",
")",
"const",
"{",
"return",
"\"TMS320C64X Branch Delay Reducer\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"TMS320C64X",
"\"TMS320C64X Branch Delay Reducer\""
] | BranchDelayExpansion | getPassName | TMS320C64X | VLIW | LLVM | 9,198 | 13 | 1 | [] |
[
"<s>",
"const",
"RISCVSubtarget",
"*",
"RISCVTargetMachine",
"::",
"getSubtargetImpl",
"(",
"const",
"Function",
"&",
"F",
")",
"const",
"{",
"Attribute",
"CPUAttr",
"=",
"F",
".",
"getFnAttribute",
"(",
"\"target-cpu\"",
")",
";",
"Attribute",
"FSAttr",
"=",
"F",
".",
"getFnAttribute",
"(",
"\"target-features\"",
")",
";",
"std",
"::",
"string",
"CPU",
"=",
"CPUAttr",
".",
"isValid",
"(",
")",
"?",
"CPUAttr",
".",
"getValueAsString",
"(",
")",
".",
"str",
"(",
")",
":",
"TargetCPU",
";",
"std",
"::",
"string",
"FS",
"=",
"FSAttr",
".",
"isValid",
"(",
")",
"?",
"FSAttr",
".",
"getValueAsString",
"(",
")",
".",
"str",
"(",
")",
":",
"TargetFS",
";",
"std",
"::",
"string",
"Key",
"=",
"CPU",
"+",
"FS",
";",
"auto",
"&",
"I",
"=",
"SubtargetMap",
"[",
"Key",
"]",
";",
"if",
"(",
"!",
"I",
")",
"{",
"resetTargetOptions",
"(",
"F",
")",
";",
"auto",
"ABIName",
"=",
"Options",
".",
"MCOptions",
".",
"getABIName",
"(",
")",
";",
"if",
"(",
"const",
"MDString",
"*",
"ModuleTargetABI",
"=",
"dyn_cast_or_null",
"<",
"MDString",
">",
"(",
"F",
".",
"getParent",
"(",
")",
"->",
"getModuleFlag",
"(",
"\"target-abi\"",
")",
")",
")",
"{",
"auto",
"TargetABI",
"=",
"RISCVABI",
"::",
"getTargetABI",
"(",
"ABIName",
")",
";",
"if",
"(",
"TargetABI",
"!=",
"RISCVABI",
"::",
"ABI_Unknown",
"&&",
"ModuleTargetABI",
"->",
"getString",
"(",
")",
"!=",
"ABIName",
")",
"{",
"report_fatal_error",
"(",
"\"-target-abi option != target-abi module flag\"",
")",
";",
"}",
"ABIName",
"=",
"ModuleTargetABI",
"->",
"getString",
"(",
")",
";",
"}",
"I",
"=",
"std",
"::",
"make_unique",
"<",
"RISCVSubtarget",
">",
"(",
"TargetTriple",
",",
"CPU",
",",
"FS",
",",
"ABIName",
",",
"*",
"this",
")",
";",
"}",
"return",
"I",
".",
"get",
"(",
")",
";",
"}",
"</s>"
] | [
"Virtual",
"method",
"implemented",
"by",
"subclasses",
"that",
"returns",
"a",
"reference",
"to",
"that",
"target",
"'s",
"TargetSubtargetInfo-derived",
"member",
"variable",
"."
] | [
"RISCV",
"RISCV",
"RISCV",
"\"target-cpu\"",
"\"target-features\"",
"\"target-abi\"",
"RISCVABI::getTargetABI",
"RISCVABI::ABI_Unknown",
"\"-target-abi option != target-abi module flag\"",
"RISCV"
] | RISCVTargetMachine33 | getSubtargetImpl | RISCV | CPU | LLVM | 9,199 | 217 | 1 | [] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.