Compiler_Type
stringclasses 2
values | Target
stringclasses 176
values | Programming Language
stringclasses 3
values | Task
stringclasses 4
values | Target_Type
stringclasses 7
values | Idx
int64 0
636k
| Ground_Truth
listlengths 0
2.32k
| Input
listlengths 1
1.02k
|
---|---|---|---|---|---|---|---|
GCC | sparc | CPP | program_repair | CPU | 5,800 | [
"<FIXS>",
"register",
"char",
"*",
"ld_suffix",
"=",
"(",
"(",
"align",
"==",
"<NUM_LIT>",
")",
"?",
"<STR_LIT>",
"ub",
"<STR_LIT>",
":",
"(",
"align",
"==",
"<NUM_LIT>",
")",
"?",
"<STR_LIT>",
"uh",
"<STR_LIT>",
":",
"(",
"align",
"==",
"<NUM_LIT>",
"&&",
"TARGET_V9",
")",
"?",
"<STR_LIT>",
"x",
"<STR_LIT>",
":",
"<STR_LIT>",
"<STR_LIT>",
")",
";",
"register",
"char",
"*",
"st_suffix",
"=",
"(",
"(",
"align",
"==",
"<NUM_LIT>",
")",
"?",
"<STR_LIT>",
"b",
"<STR_LIT>",
":",
"(",
"align",
"==",
"<NUM_LIT>",
")",
"?",
"<STR_LIT>",
"h",
"<STR_LIT>",
":",
"(",
"align",
"==",
"<NUM_LIT>",
"&&",
"TARGET_V9",
")",
"?",
"<STR_LIT>",
"x",
"<STR_LIT>",
":",
"<STR_LIT>",
"<STR_LIT>",
")",
";",
"<FIXE>"
]
| [
"{",
"char",
"pattern",
"[",
"<NUM_LIT>",
"]",
";",
"<BUGS>",
"register",
"char",
"*",
"ld_suffix",
"=",
"(",
"align",
"==",
"<NUM_LIT>",
")",
"?",
"<STR_LIT>",
"ub",
"<STR_LIT>",
":",
"(",
"align",
"==",
"<NUM_LIT>",
")",
"?",
"<STR_LIT>",
"uh",
"<STR_LIT>",
":",
"<STR_LIT>",
"<STR_LIT>",
";",
"register",
"char",
"*",
"st_suffix",
"=",
"(",
"align",
"==",
"<NUM_LIT>",
")",
"?",
"<STR_LIT>",
"b",
"<STR_LIT>",
":",
"(",
"align",
"==",
"<NUM_LIT>",
")",
"?",
"<STR_LIT>",
"h",
"<STR_LIT>",
":",
"<STR_LIT>",
"<STR_LIT>",
";",
"<BUGE>",
"sprintf",
"(",
"pattern",
",",
"<STR_LIT>",
"ld%s [%%1+%%2],%%%%g1\\n\\tsubcc %%2,%%4,%%2\\n\\tbge %s\\n\\tst%s %%%%g1,[%%0+%%2]\\n%s:",
"<STR_LIT>",
",",
"ld_suffix",
",",
"&",
"label3",
"[",
"<NUM_LIT>",
"]",
",",
"st_suffix",
",",
"&",
"label5",
"[",
"<NUM_LIT>",
"]",
")",
";",
"output_asm_insn",
"(",
"pattern",
",",
"xoperands",
")",
";"
]
|
LLVM | ARM | CPP | next_suggestion | CPU | 5,801 | [
"}"
]
| [
"}",
"int64_t",
"Val",
"=",
"Memory",
".",
"OffsetImm",
"?",
"Memory",
".",
"OffsetImm",
"->",
"getValue",
"(",
")",
":",
"<NUM_LIT>",
";",
"Inst",
".",
"addOperand",
"(",
"MCOperand",
"::",
"CreateReg",
"(",
"Memory",
".",
"BaseRegNum",
")",
")",
";",
"Inst",
".",
"addOperand",
"(",
"MCOperand",
"::",
"CreateImm",
"(",
"Val",
")",
")",
";"
]
|
GCC | sh | CPP | stmt_completion | CPU | 5,802 | [
"&&",
"INTVAL",
"(",
"src",
")",
"<=",
"<NUM_LIT>",
")",
";"
]
| [
"return",
"(",
"GET_CODE",
"(",
"src",
")",
"==",
"CONST_INT",
"&&",
"INTVAL",
"(",
"src",
")",
">=",
"-",
"<NUM_LIT>"
]
|
LLVM | ARM | CPP | next_suggestion | CPU | 5,803 | [
"}"
]
| [
"if",
"(",
"!",
"CanAcceptCarrySet",
"&&",
"CarrySetting",
")",
"{",
"return",
"Error",
"(",
"NameLoc",
",",
"<STR_LIT>",
"instruction '",
"<STR_LIT>",
"+",
"Mnemonic",
"+",
"<STR_LIT>",
"' can not set flags, but 's' suffix specified",
"<STR_LIT>",
")",
";",
"}",
"if",
"(",
"!",
"CanAcceptPredicationCode",
"&&",
"PredicationCode",
"!=",
"<STR_LIT>",
"::",
"<STR_LIT>",
")",
"{",
"return",
"Error",
"(",
"NameLoc",
",",
"<STR_LIT>",
"instruction '",
"<STR_LIT>",
"+",
"Mnemonic",
"+",
"<STR_LIT>",
"' is not predicable, but condition code specified",
"<STR_LIT>",
")",
";",
"}",
"if",
"(",
"!",
"CanAcceptVPTPredicationCode",
"&&",
"VPTPredicationCode",
"!=",
"<STR_LIT>",
"::",
"<STR_LIT>",
")",
"{",
"return",
"Error",
"(",
"NameLoc",
",",
"<STR_LIT>",
"instruction '",
"<STR_LIT>",
"+",
"Mnemonic",
"+",
"<STR_LIT>",
"' is not VPT predicable, but VPT code T/E is specified",
"<STR_LIT>",
")",
";",
"}",
"if",
"(",
"CanAcceptCarrySet",
")",
"{",
"SMLoc",
"Loc",
"=",
"SMLoc",
"::",
"getFromPointer",
"(",
"NameLoc",
".",
"getPointer",
"(",
")",
"+",
"Mnemonic",
".",
"size",
"(",
")",
")",
";",
"Operands",
".",
"push_back",
"(",
"ARMOperand",
"::",
"CreateCCOut",
"(",
"CarrySetting",
"?",
"ARM",
"::",
"CPSR",
":",
"<NUM_LIT>",
",",
"Loc",
")",
")",
";",
"}",
"if",
"(",
"CanAcceptPredicationCode",
")",
"{",
"SMLoc",
"Loc",
"=",
"SMLoc",
"::",
"getFromPointer",
"(",
"NameLoc",
".",
"getPointer",
"(",
")",
"+",
"Mnemonic",
".",
"size",
"(",
")",
"+",
"CarrySetting",
")",
";",
"Operands",
".",
"push_back",
"(",
"ARMOperand",
"::",
"CreateCondCode",
"(",
"<STR_LIT>",
"::",
"<STR_LIT>",
"(",
"PredicationCode",
")",
",",
"Loc",
")",
")",
";",
"}",
"if",
"(",
"CanAcceptVPTPredicationCode",
")",
"{",
"SMLoc",
"Loc",
"=",
"SMLoc",
"::",
"getFromPointer",
"(",
"NameLoc",
".",
"getPointer",
"(",
")",
"+",
"Mnemonic",
".",
"size",
"(",
")",
"+",
"CarrySetting",
")",
";",
"Operands",
".",
"push_back",
"(",
"ARMOperand",
"::",
"CreateVPTPred",
"(",
"<STR_LIT>",
"::",
"<STR_LIT>",
"(",
"VPTPredicationCode",
")",
",",
"Loc",
")",
")",
";",
"}",
"if",
"(",
"ProcessorIMod",
")",
"{",
"Operands",
".",
"push_back",
"(",
"ARMOperand",
"::",
"CreateImm",
"(",
"MCConstantExpr",
"::",
"create",
"(",
"ProcessorIMod",
",",
"getContext",
"(",
")",
")",
",",
"NameLoc",
",",
"NameLoc",
")",
")",
";",
"}",
"else",
"if",
"(",
"Mnemonic",
"==",
"<STR_LIT>",
"cps",
"<STR_LIT>",
"&&",
"isMClass",
"(",
")",
")",
"{",
"return",
"Error",
"(",
"NameLoc",
",",
"<STR_LIT>",
"instruction 'cps' requires effect for M-class",
"<STR_LIT>",
")",
";",
"}",
"while",
"(",
"Next",
"!=",
"StringRef",
"::",
"npos",
")",
"{",
"Start",
"=",
"Next",
";",
"Next",
"=",
"Name",
".",
"find",
"(",
"'",
".",
"'",
",",
"Start",
"+",
"<NUM_LIT>",
")",
";",
"ExtraToken",
"=",
"Name",
".",
"slice",
"(",
"Start",
",",
"Next",
")",
";",
"if",
"(",
"isDataTypeToken",
"(",
"ExtraToken",
")",
"&&",
"doesIgnoreDataTypeSuffix",
"(",
"Mnemonic",
",",
"ExtraToken",
")",
")",
"continue",
";",
"if",
"(",
"ExtraToken",
"==",
"<STR_LIT>",
".n",
"<STR_LIT>",
"&&",
"!",
"isThumb",
"(",
")",
")",
"{",
"SMLoc",
"Loc",
"=",
"SMLoc",
"::",
"getFromPointer",
"(",
"NameLoc",
".",
"getPointer",
"(",
")",
"+",
"Start",
")",
";",
"return",
"Error",
"(",
"Loc",
",",
"<STR_LIT>",
"instruction with .n (narrow) qualifier not allowed in ",
"<STR_LIT>",
"<STR_LIT>",
"arm mode",
"<STR_LIT>",
")",
";",
"}",
"if",
"(",
"ExtraToken",
"!=",
"<STR_LIT>",
".n",
"<STR_LIT>",
"&&",
"(",
"isThumb",
"(",
")",
"||",
"ExtraToken",
"!=",
"<STR_LIT>",
".w",
"<STR_LIT>",
")",
")",
"{",
"SMLoc",
"Loc",
"=",
"SMLoc",
"::",
"getFromPointer",
"(",
"NameLoc",
".",
"getPointer",
"(",
")",
"+",
"Start",
")",
";",
"Operands",
".",
"push_back",
"(",
"ARMOperand",
"::",
"CreateToken",
"(",
"ExtraToken",
",",
"Loc",
")",
")",
";",
"}",
"}",
"if",
"(",
"getLexer",
"(",
")",
".",
"isNot",
"(",
"AsmToken",
"::",
"EndOfStatement",
")",
")",
"{",
"if",
"(",
"parseOperand",
"(",
"Operands",
",",
"Mnemonic",
")",
")",
"{",
"return",
"true",
";",
"}",
"while",
"(",
"parseOptionalToken",
"(",
"AsmToken",
"::",
"Comma",
")",
")",
"{",
"if",
"(",
"parseOperand",
"(",
"Operands",
",",
"Mnemonic",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"}",
"if",
"(",
"parseToken",
"(",
"AsmToken",
"::",
"EndOfStatement",
",",
"<STR_LIT>",
"unexpected token in argument list",
"<STR_LIT>",
")",
")",
"return",
"true",
";",
"tryConvertingToTwoOperandForm",
"(",
"Mnemonic",
",",
"CarrySetting",
",",
"Operands",
")",
";",
"if",
"(",
"!",
"CarrySetting",
"&&",
"shouldOmitCCOutOperand",
"(",
"Mnemonic",
",",
"Operands",
")",
")",
"Operands",
".",
"erase",
"(",
"Operands",
".",
"begin",
"(",
")",
"+",
"<NUM_LIT>",
")",
";",
"if",
"(",
"PredicationCode",
"==",
"<STR_LIT>",
"::",
"<STR_LIT>",
"&&",
"shouldOmitPredicateOperand",
"(",
"Mnemonic",
",",
"Operands",
")",
")",
"Operands",
".",
"erase",
"(",
"Operands",
".",
"begin",
"(",
")",
"+",
"<NUM_LIT>",
")",
";",
"if",
"(",
"hasMVE",
"(",
")",
")",
"{",
"if",
"(",
"CanAcceptVPTPredicationCode",
")",
"{",
"if",
"(",
"shouldOmitVectorPredicateOperand",
"(",
"Mnemonic",
",",
"Operands",
")",
")",
"{",
"if",
"(",
"CanAcceptPredicationCode",
")",
"Operands",
".",
"erase",
"(",
"Operands",
".",
"begin",
"(",
")",
"+",
"<NUM_LIT>",
")",
";",
"else",
"Operands",
".",
"erase",
"(",
"Operands",
".",
"begin",
"(",
")",
"+",
"<NUM_LIT>",
")",
";",
"}",
"else",
"if",
"(",
"CanAcceptPredicationCode",
"&&",
"PredicationCode",
"==",
"<STR_LIT>",
"::",
"<STR_LIT>",
")",
"{",
"Operands",
".",
"erase",
"(",
"Operands",
".",
"begin",
"(",
")",
"+",
"<NUM_LIT>",
")",
";",
"}",
"}",
"}",
"if",
"(",
"VPTPredicationCode",
"!=",
"<STR_LIT>",
"::",
"<STR_LIT>",
")",
"{",
"bool",
"usedVPTPredicationCode",
"=",
"false",
";",
"for",
"(",
"unsigned",
"I",
"=",
"<NUM_LIT>",
";",
"I",
"<",
"Operands",
".",
"size",
"(",
")",
";",
"++",
"I",
")",
"if",
"(",
"static_cast",
"<",
"ARMOperand",
"&",
">",
"(",
"*",
"Operands",
"[",
"I",
"]",
")",
".",
"isVPTPred",
"(",
")",
")",
"usedVPTPredicationCode",
"=",
"true",
";",
"if",
"(",
"!",
"usedVPTPredicationCode",
")",
"{",
"Mnemonic",
"=",
"Name",
".",
"slice",
"(",
"<NUM_LIT>",
",",
"Mnemonic",
".",
"size",
"(",
")",
"+",
"<NUM_LIT>",
")",
";",
"Operands",
".",
"erase",
"(",
"Operands",
".",
"begin",
"(",
")",
")",
";",
"Operands",
".",
"insert",
"(",
"Operands",
".",
"begin",
"(",
")",
",",
"ARMOperand",
"::",
"CreateToken",
"(",
"Mnemonic",
",",
"NameLoc",
")",
")",
";"
]
|
LLVM | X86 | CPP | next_suggestion | CPU | 5,804 | [
"SmallVector",
"<",
"int",
",",
"<NUM_LIT>",
">",
"FlippedBlendMask",
";"
]
| [
"for",
"(",
"int",
"i",
"=",
"<NUM_LIT>",
",",
"Size",
"=",
"Mask",
".",
"size",
"(",
")",
";",
"i",
"<",
"Size",
";",
"++",
"i",
")",
"if",
"(",
"Mask",
"[",
"i",
"]",
">=",
"<NUM_LIT>",
"&&",
"(",
"Mask",
"[",
"i",
"]",
"%",
"Size",
")",
"/",
"LaneSize",
"!=",
"i",
"/",
"LaneSize",
")",
"LaneCrossing",
"[",
"(",
"Mask",
"[",
"i",
"]",
"%",
"Size",
")",
"/",
"LaneSize",
"]",
"=",
"true",
";",
"if",
"(",
"!",
"LaneCrossing",
"[",
"<NUM_LIT>",
"]",
"||",
"!",
"LaneCrossing",
"[",
"<NUM_LIT>",
"]",
")",
"return",
"splitAndLowerVectorShuffle",
"(",
"DL",
",",
"VT",
",",
"V1",
",",
"V2",
",",
"Mask",
",",
"DAG",
")",
";",
"if",
"(",
"isSingleInputShuffleMask",
"(",
"Mask",
")",
")",
"{"
]
|
LLVM | ARM64 | TD | next_suggestion | CPU | 5,805 | [
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"<NUM_LIT>",
";"
]
| [
"bits",
"<",
"<NUM_LIT>",
">",
"idx",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"idx",
";"
]
|
LLVM | Sparc | CPP | code_generation | CPU | 5,806 | [
"bool",
"SparcAsmParser",
"::",
"MatchAndEmitInstruction",
"(",
"SMLoc",
"IDLoc",
",",
"unsigned",
"&",
"Opcode",
",",
"SmallVectorImpl",
"<",
"MCParsedAsmOperand",
"*",
">",
"&",
"Operands",
",",
"MCStreamer",
"&",
"Out",
",",
"unsigned",
"&",
"ErrorInfo",
",",
"bool",
"MatchingInlineAsm",
")",
"{",
"MCInst",
"Inst",
";",
"SmallVector",
"<",
"MCInst",
",",
"<NUM_LIT>",
">",
"Instructions",
";",
"unsigned",
"MatchResult",
"=",
"MatchInstructionImpl",
"(",
"Operands",
",",
"Inst",
",",
"ErrorInfo",
",",
"MatchingInlineAsm",
")",
";",
"switch",
"(",
"MatchResult",
")",
"{",
"default",
":",
"break",
";",
"case",
"Match_Success",
":",
"{",
"Inst",
".",
"setLoc",
"(",
"IDLoc",
")",
";",
"Out",
".",
"EmitInstruction",
"(",
"Inst",
",",
"STI",
")",
";",
"return",
"false",
";",
"}",
"case",
"Match_MissingFeature",
":",
"return",
"Error",
"(",
"IDLoc",
",",
"<STR_LIT>",
"instruction requires a CPU feature not currently enabled",
"<STR_LIT>",
")",
";",
"case",
"Match_InvalidOperand",
":",
"{",
"SMLoc",
"ErrorLoc",
"=",
"IDLoc",
";",
"if",
"(",
"ErrorInfo",
"!=",
"~",
"<NUM_LIT>",
"U",
")",
"{",
"if",
"(",
"ErrorInfo",
">=",
"Operands",
".",
"size",
"(",
")",
")",
"return",
"Error",
"(",
"IDLoc",
",",
"<STR_LIT>",
"too few operands for instruction",
"<STR_LIT>",
")",
";",
"ErrorLoc",
"=",
"(",
"(",
"SparcOperand",
"*",
")",
"Operands",
"[",
"ErrorInfo",
"]",
")",
"->",
"getStartLoc",
"(",
")",
";",
"if",
"(",
"ErrorLoc",
"==",
"SMLoc",
"(",
")",
")",
"ErrorLoc",
"=",
"IDLoc",
";",
"}",
"return",
"Error",
"(",
"ErrorLoc",
",",
"<STR_LIT>",
"invalid operand for instruction",
"<STR_LIT>",
")",
";",
"}",
"case",
"Match_MnemonicFail",
":",
"return",
"Error",
"(",
"IDLoc",
",",
"<STR_LIT>",
"invalid instruction mnemonic",
"<STR_LIT>",
")",
";",
"}",
"return",
"true",
";",
"}"
]
| [
"MatchAndEmitInstruction",
"-",
"Recognize",
"a",
"series",
"of",
"operands",
"of",
"a",
"parsed",
"instruction",
"as",
"an",
"actual",
"MCInst",
"and",
"emit",
"it",
"to",
"the",
"specified",
"MCStreamer",
"."
]
|
GCC | msp430 | CPP | stmt_completion | MPU | 5,807 | [
"<STR_LIT>",
")",
";"
]
| [
"void",
"msp430_register_pre_includes",
"(",
"const",
"char",
"*",
"sysroot",
"ATTRIBUTE_UNUSED",
",",
"const",
"char",
"*",
"iprefix",
"ATTRIBUTE_UNUSED",
",",
"int",
"stdinc",
"ATTRIBUTE_UNUSED",
")",
"{",
"char",
"*",
"include_dir",
";",
"if",
"(",
"msp430_devices_csv_loc",
")",
"include_dir",
"=",
"xstrdup",
"(",
"msp430_devices_csv_loc",
")",
";",
"else",
"if",
"(",
"msp430_check_env_var_for_devices",
"(",
"&",
"include_dir",
")",
")",
"return",
";",
"include_dir",
"=",
"msp430_dirname",
"(",
"include_dir",
")",
";",
"include_dir",
"=",
"update_path",
"(",
"include_dir",
",",
"<STR_LIT>"
]
|
GCC | microblaze | MD | stmt_completion | MPU | 5,808 | [
")",
")",
")"
]
| [
"<STR_LIT>",
"(",
"and",
"(",
"match_code",
"<STR_LIT>",
")",
"(",
"match_test",
"<STR_LIT>"
]
|
LLVM | Hexagon | TD | next_suggestion | DSP | 5,809 | [
"let",
"BaseOpcode",
"=",
"<STR_LIT>",
";"
]
| [
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"<NUM_LIT>",
";",
"let",
"isPredicated",
"=",
"<NUM_LIT>",
";",
"let",
"hasNewValue",
"=",
"<NUM_LIT>",
";",
"let",
"opNewValue",
"=",
"<NUM_LIT>",
";",
"let",
"isPredicatedNew",
"=",
"<NUM_LIT>",
";"
]
|
GCC | i386 | MD | stmt_completion | CPU | 5,810 | [
")",
")"
]
| [
"(",
"and",
"(",
"eq_attr",
"<STR_LIT>",
"<STR_LIT>",
")",
"(",
"and",
"(",
"eq_attr",
"<STR_LIT>",
"<STR_LIT>",
")",
"(",
"eq_attr",
"<STR_LIT>",
"<STR_LIT>",
")",
")",
")"
]
|
LLVM | Mips | TD | stmt_completion | CPU | 5,811 | [
"#",
"<STR_LIT>",
";"
]
| [
"def",
"NAME",
":",
"Operand",
"<",
"i64",
">",
"{",
"let",
"ParserMatchClass",
"=",
"SImmScaled",
"<",
"Width",
",",
"Shift",
">",
";",
"let",
"EncoderMethod",
"=",
"<STR_LIT>",
"#",
"Width",
"#",
"<STR_LIT>",
"#",
"Shift",
"#",
"<STR_LIT>",
";",
"let",
"DecoderMethod",
"=",
"<STR_LIT>",
"#",
"Width",
"#",
"<STR_LIT>",
"#",
"Shift"
]
|
LLVM | PowerPC | CPP | next_suggestion | CPU | 5,812 | [
"}"
]
| [
"PPCFunctionInfo",
"*",
"FuncInfo",
"=",
"MF",
"->",
"getInfo",
"<",
"PPCFunctionInfo",
">",
"(",
")",
";",
"if",
"(",
"!",
"Subtarget",
".",
"is32BitELFABI",
"(",
")",
")",
"{",
"FuncInfo",
"->",
"addMustSaveCR",
"(",
"Reg",
")",
";",
"}",
"else",
"{",
"CRSpilled",
"=",
"true",
";",
"FuncInfo",
"->",
"setSpillsCR",
"(",
")",
";",
"CRMIB",
"=",
"BuildMI",
"(",
"*",
"MF",
",",
"DL",
",",
"TII",
".",
"get",
"(",
"PPC",
"::",
"MFCR",
")",
",",
"PPC",
"::",
"R12",
")",
".",
"addReg",
"(",
"Reg",
",",
"RegState",
"::",
"ImplicitKill",
")",
";",
"MBB",
".",
"insert",
"(",
"MI",
",",
"CRMIB",
")",
";",
"MBB",
".",
"insert",
"(",
"MI",
",",
"addFrameReference",
"(",
"BuildMI",
"(",
"*",
"MF",
",",
"DL",
",",
"TII",
".",
"get",
"(",
"PPC",
"::",
"STW",
")",
")",
".",
"addReg",
"(",
"PPC",
"::",
"R12",
",",
"getKillRegState",
"(",
"true",
")",
")",
",",
"CSI",
"[",
"i",
"]",
".",
"getFrameIdx",
"(",
")",
")",
")",
";",
"}",
"}",
"else",
"{",
"if",
"(",
"CSI",
"[",
"i",
"]",
".",
"isSpilledToReg",
"(",
")",
")",
"{",
"NumPESpillVSR",
"++",
";",
"BuildMI",
"(",
"MBB",
",",
"MI",
",",
"DL",
",",
"TII",
".",
"get",
"(",
"PPC",
"::",
"MTVSRD",
")",
",",
"CSI",
"[",
"i",
"]",
".",
"getDstReg",
"(",
")",
")",
".",
"addReg",
"(",
"Reg",
",",
"getKillRegState",
"(",
"true",
")",
")",
";",
"}",
"else",
"{",
"const",
"TargetRegisterClass",
"*",
"RC",
"=",
"TRI",
"->",
"getMinimalPhysRegClass",
"(",
"Reg",
")",
";",
"if",
"(",
"Subtarget",
".",
"needsSwapsForVSXMemOps",
"(",
")",
"&&",
"!",
"MF",
"->",
"getFunction",
"(",
")",
".",
"hasFnAttribute",
"(",
"Attribute",
"::",
"NoUnwind",
")",
")",
"TII",
".",
"storeRegToStackSlotNoUpd",
"(",
"MBB",
",",
"MI",
",",
"Reg",
",",
"!",
"IsLiveIn",
",",
"CSI",
"[",
"i",
"]",
".",
"getFrameIdx",
"(",
")",
",",
"RC",
",",
"TRI",
")",
";",
"else",
"TII",
".",
"storeRegToStackSlot",
"(",
"MBB",
",",
"MI",
",",
"Reg",
",",
"!",
"IsLiveIn",
",",
"CSI",
"[",
"i",
"]",
".",
"getFrameIdx",
"(",
")",
",",
"RC",
",",
"TRI",
")",
";",
"}",
"}"
]
|
GCC | i386 | CPP | code_generation | CPU | 5,813 | [
"static",
"void",
"ix86_finalize_stack_frame_flags",
"(",
"void",
")",
"{",
"unsigned",
"int",
"incoming_stack_boundary",
"=",
"(",
"crtl",
"->",
"parm_stack_boundary",
">",
"ix86_incoming_stack_boundary",
"?",
"crtl",
"->",
"parm_stack_boundary",
":",
"ix86_incoming_stack_boundary",
")",
";",
"unsigned",
"int",
"stack_alignment",
"=",
"(",
"crtl",
"->",
"is_leaf",
"&&",
"!",
"ix86_current_function_calls_tls_descriptor",
"?",
"crtl",
"->",
"max_used_stack_slot_alignment",
":",
"crtl",
"->",
"stack_alignment_needed",
")",
";",
"unsigned",
"int",
"stack_realign",
"=",
"(",
"incoming_stack_boundary",
"<",
"stack_alignment",
")",
";",
"bool",
"recompute_frame_layout_p",
"=",
"false",
";",
"if",
"(",
"crtl",
"->",
"stack_realign_finalized",
")",
"{",
"gcc_assert",
"(",
"crtl",
"->",
"stack_realign_needed",
"==",
"stack_realign",
")",
";",
"return",
";",
"}",
"bool",
"check_stack_slot",
"=",
"(",
"stack_realign",
"||",
"crtl",
"->",
"max_used_stack_slot_alignment",
">=",
"<NUM_LIT>",
")",
";",
"ix86_find_max_used_stack_alignment",
"(",
"stack_alignment",
",",
"check_stack_slot",
")",
";",
"if",
"(",
"(",
"stack_realign",
"||",
"(",
"!",
"flag_omit_frame_pointer",
"&&",
"optimize",
")",
"||",
"crtl",
"->",
"stack_realign_needed",
")",
"&&",
"frame_pointer_needed",
"&&",
"crtl",
"->",
"is_leaf",
"&&",
"crtl",
"->",
"sp_is_unchanging",
"&&",
"!",
"ix86_current_function_calls_tls_descriptor",
"&&",
"!",
"crtl",
"->",
"accesses_prior_frames",
"&&",
"!",
"cfun",
"->",
"calls_alloca",
"&&",
"!",
"crtl",
"->",
"calls_eh_return",
"&&",
"!",
"(",
"STACK_CHECK_MOVING_SP",
"&&",
"flag_stack_check",
"&&",
"flag_exceptions",
"&&",
"cfun",
"->",
"can_throw_non_call_exceptions",
")",
"&&",
"!",
"ix86_frame_pointer_required",
"(",
")",
"&&",
"ix86_get_frame_size",
"(",
")",
"==",
"<NUM_LIT>",
"&&",
"ix86_nsaved_sseregs",
"(",
")",
"==",
"<NUM_LIT>",
"&&",
"ix86_varargs_gpr_size",
"+",
"ix86_varargs_fpr_size",
"==",
"<NUM_LIT>",
")",
"{",
"if",
"(",
"cfun",
"->",
"machine",
"->",
"stack_frame_required",
")",
"{",
"stack_realign",
"=",
"incoming_stack_boundary",
"<",
"stack_alignment",
";",
"if",
"(",
"!",
"stack_realign",
")",
"{",
"crtl",
"->",
"max_used_stack_slot_alignment",
"=",
"incoming_stack_boundary",
";",
"crtl",
"->",
"stack_alignment_needed",
"=",
"incoming_stack_boundary",
";",
"crtl",
"->",
"preferred_stack_boundary",
"=",
"incoming_stack_boundary",
";",
"}",
"}",
"else",
"{",
"if",
"(",
"crtl",
"->",
"drap_reg",
")",
"{",
"basic_block",
"bb",
"=",
"ENTRY_BLOCK_PTR_FOR_FN",
"(",
"cfun",
")",
"->",
"next_bb",
";",
"if",
"(",
"!",
"REGNO_REG_SET_P",
"(",
"DF_LR_IN",
"(",
"bb",
")",
",",
"REGNO",
"(",
"crtl",
"->",
"drap_reg",
")",
")",
")",
"{",
"crtl",
"->",
"drap_reg",
"=",
"NULL_RTX",
";",
"crtl",
"->",
"need_drap",
"=",
"false",
";",
"}",
"}",
"else",
"cfun",
"->",
"machine",
"->",
"no_drap_save_restore",
"=",
"true",
";",
"frame_pointer_needed",
"=",
"false",
";",
"stack_realign",
"=",
"false",
";",
"crtl",
"->",
"max_used_stack_slot_alignment",
"=",
"incoming_stack_boundary",
";",
"crtl",
"->",
"stack_alignment_needed",
"=",
"incoming_stack_boundary",
";",
"crtl",
"->",
"stack_alignment_estimated",
"=",
"incoming_stack_boundary",
";",
"if",
"(",
"crtl",
"->",
"preferred_stack_boundary",
">",
"incoming_stack_boundary",
")",
"crtl",
"->",
"preferred_stack_boundary",
"=",
"incoming_stack_boundary",
";",
"df_finish_pass",
"(",
"true",
")",
";",
"df_scan_alloc",
"(",
"NULL",
")",
";",
"df_scan_blocks",
"(",
")",
";",
"df_compute_regs_ever_live",
"(",
"true",
")",
";",
"df_analyze",
"(",
")",
";",
"if",
"(",
"flag_var_tracking",
")",
"{",
"df_ref",
"ref",
",",
"next",
";",
"for",
"(",
"ref",
"=",
"DF_REG_USE_CHAIN",
"(",
"HARD_FRAME_POINTER_REGNUM",
")",
";",
"ref",
";",
"ref",
"=",
"next",
")",
"{",
"next",
"=",
"DF_REF_NEXT_REG",
"(",
"ref",
")",
";",
"if",
"(",
"!",
"DF_REF_INSN_INFO",
"(",
"ref",
")",
")",
"continue",
";",
"rtx_insn",
"*",
"insn",
"=",
"DF_REF_INSN",
"(",
"ref",
")",
";",
"while",
"(",
"next",
"&&",
"DF_REF_INSN",
"(",
"next",
")",
"==",
"insn",
")",
"next",
"=",
"DF_REF_NEXT_REG",
"(",
"next",
")",
";",
"if",
"(",
"DEBUG_INSN_P",
"(",
"insn",
")",
")",
"{",
"bool",
"changed",
"=",
"false",
";",
"for",
"(",
";",
"ref",
"!=",
"next",
";",
"ref",
"=",
"DF_REF_NEXT_REG",
"(",
"ref",
")",
")",
"{",
"rtx",
"*",
"loc",
"=",
"DF_REF_LOC",
"(",
"ref",
")",
";",
"if",
"(",
"*",
"loc",
"==",
"hard_frame_pointer_rtx",
")",
"{",
"*",
"loc",
"=",
"plus_constant",
"(",
"Pmode",
",",
"stack_pointer_rtx",
",",
"-",
"UNITS_PER_WORD",
")",
";",
"changed",
"=",
"true",
";",
"}",
"}",
"if",
"(",
"changed",
")",
"df_insn_rescan",
"(",
"insn",
")",
";",
"}",
"}",
"}",
"recompute_frame_layout_p",
"=",
"true",
";",
"}",
"}",
"else",
"if",
"(",
"crtl",
"->",
"max_used_stack_slot_alignment",
">=",
"<NUM_LIT>",
"&&",
"cfun",
"->",
"machine",
"->",
"stack_frame_required",
")",
"{",
"cfun",
"->",
"machine",
"->",
"max_used_stack_alignment",
"=",
"stack_alignment",
"/",
"BITS_PER_UNIT",
";",
"}",
"if",
"(",
"crtl",
"->",
"stack_realign_needed",
"!=",
"stack_realign",
")",
"recompute_frame_layout_p",
"=",
"true",
";",
"crtl",
"->",
"stack_realign_needed",
"=",
"stack_realign",
";",
"crtl",
"->",
"stack_realign_finalized",
"=",
"true",
";",
"if",
"(",
"recompute_frame_layout_p",
")",
"ix86_compute_frame_layout",
"(",
")",
";",
"}"
]
| [
"Finalize",
"stack_realign_needed",
"and",
"frame_pointer_needed",
"flags",
",",
"which",
"will",
"guide",
"prologue/epilogue",
"to",
"be",
"generated",
"in",
"correct",
"form",
"."
]
|
LLVM | MSP430 | CPP | stmt_completion | MPU | 5,814 | [
"getEVTString",
"(",
")",
"<<",
"<STR_LIT>",
"\\n",
"<STR_LIT>",
";"
]
| [
"MachineRegisterInfo",
"&",
"RegInfo",
"=",
"MF",
".",
"getRegInfo",
"(",
")",
";",
"MSP430MachineFunctionInfo",
"*",
"FuncInfo",
"=",
"MF",
".",
"getInfo",
"<",
"MSP430MachineFunctionInfo",
">",
"(",
")",
";",
"SmallVector",
"<",
"CCValAssign",
",",
"<NUM_LIT>",
">",
"ArgLocs",
";",
"CCState",
"CCInfo",
"(",
"CallConv",
",",
"isVarArg",
",",
"DAG",
".",
"getMachineFunction",
"(",
")",
",",
"getTargetMachine",
"(",
")",
",",
"ArgLocs",
",",
"*",
"DAG",
".",
"getContext",
"(",
")",
")",
";",
"CCInfo",
".",
"AnalyzeFormalArguments",
"(",
"Ins",
",",
"CC_MSP430",
")",
";",
"if",
"(",
"isVarArg",
")",
"{",
"unsigned",
"Offset",
"=",
"CCInfo",
".",
"getNextStackOffset",
"(",
")",
";",
"FuncInfo",
"->",
"setVarArgsFrameIndex",
"(",
"MFI",
"->",
"CreateFixedObject",
"(",
"<NUM_LIT>",
",",
"Offset",
",",
"true",
")",
")",
";",
"}",
"for",
"(",
"unsigned",
"i",
"=",
"<NUM_LIT>",
",",
"e",
"=",
"ArgLocs",
".",
"size",
"(",
")",
";",
"i",
"!=",
"e",
";",
"++",
"i",
")",
"{",
"CCValAssign",
"&",
"VA",
"=",
"ArgLocs",
"[",
"i",
"]",
";",
"if",
"(",
"VA",
".",
"isRegLoc",
"(",
")",
")",
"{",
"EVT",
"RegVT",
"=",
"VA",
".",
"getLocVT",
"(",
")",
";",
"switch",
"(",
"RegVT",
".",
"getSimpleVT",
"(",
")",
".",
"SimpleTy",
")",
"{",
"default",
":",
"{",
"errs",
"(",
")",
"<<",
"<STR_LIT>",
"LowerFormalArguments Unhandled argument type: ",
"<STR_LIT>",
"<<",
"RegVT",
".",
"getSimpleVT",
"(",
")",
".",
"SimpleTy",
"<<",
"<STR_LIT>",
"\\n",
"<STR_LIT>",
";",
"llvm_unreachable",
"(",
"<NUM_LIT>",
")",
";",
"}",
"case",
"MVT",
"::",
"i16",
":",
"unsigned",
"VReg",
"=",
"RegInfo",
".",
"createVirtualRegister",
"(",
"&",
"<STR_LIT>",
"::",
"<STR_LIT>",
")",
";",
"RegInfo",
".",
"addLiveIn",
"(",
"VA",
".",
"getLocReg",
"(",
")",
",",
"VReg",
")",
";",
"SDValue",
"ArgValue",
"=",
"DAG",
".",
"getCopyFromReg",
"(",
"Chain",
",",
"dl",
",",
"VReg",
",",
"RegVT",
")",
";",
"if",
"(",
"VA",
".",
"getLocInfo",
"(",
")",
"==",
"CCValAssign",
"::",
"SExt",
")",
"ArgValue",
"=",
"DAG",
".",
"getNode",
"(",
"ISD",
"::",
"AssertSext",
",",
"dl",
",",
"RegVT",
",",
"ArgValue",
",",
"DAG",
".",
"getValueType",
"(",
"VA",
".",
"getValVT",
"(",
")",
")",
")",
";",
"else",
"if",
"(",
"VA",
".",
"getLocInfo",
"(",
")",
"==",
"CCValAssign",
"::",
"ZExt",
")",
"ArgValue",
"=",
"DAG",
".",
"getNode",
"(",
"ISD",
"::",
"AssertZext",
",",
"dl",
",",
"RegVT",
",",
"ArgValue",
",",
"DAG",
".",
"getValueType",
"(",
"VA",
".",
"getValVT",
"(",
")",
")",
")",
";",
"if",
"(",
"VA",
".",
"getLocInfo",
"(",
")",
"!=",
"CCValAssign",
"::",
"Full",
")",
"ArgValue",
"=",
"DAG",
".",
"getNode",
"(",
"ISD",
"::",
"TRUNCATE",
",",
"dl",
",",
"VA",
".",
"getValVT",
"(",
")",
",",
"ArgValue",
")",
";",
"InVals",
".",
"push_back",
"(",
"ArgValue",
")",
";",
"}",
"}",
"else",
"{",
"assert",
"(",
"VA",
".",
"isMemLoc",
"(",
")",
")",
";",
"SDValue",
"InVal",
";",
"ISD",
"::",
"ArgFlagsTy",
"Flags",
"=",
"Ins",
"[",
"i",
"]",
".",
"Flags",
";",
"if",
"(",
"Flags",
".",
"isByVal",
"(",
")",
")",
"{",
"int",
"FI",
"=",
"MFI",
"->",
"CreateFixedObject",
"(",
"Flags",
".",
"getByValSize",
"(",
")",
",",
"VA",
".",
"getLocMemOffset",
"(",
")",
",",
"true",
")",
";",
"InVal",
"=",
"DAG",
".",
"getFrameIndex",
"(",
"FI",
",",
"getPointerTy",
"(",
")",
")",
";",
"}",
"else",
"{",
"unsigned",
"ObjSize",
"=",
"VA",
".",
"getLocVT",
"(",
")",
".",
"getSizeInBits",
"(",
")",
"/",
"<NUM_LIT>",
";",
"if",
"(",
"ObjSize",
">",
"<NUM_LIT>",
")",
"{",
"errs",
"(",
")",
"<<",
"<STR_LIT>",
"LowerFormalArguments Unhandled argument type: ",
"<STR_LIT>",
"<<",
"EVT",
"(",
"VA",
".",
"getLocVT",
"(",
")",
")",
"."
]
|
GCC | avr | MD | stmt_completion | MPU | 5,815 | [
"<STR_LIT>",
")"
]
| [
"(",
"and",
"(",
"match_code"
]
|
LLVM | R600 | CPP | stmt_completion | GPU | 5,816 | [
"DstBlk",
")",
";"
]
| [
"insertInstrEnd",
"(",
"DstBlk",
",",
"AMDGPU",
"::",
"ENDLOOP",
",",
"DebugLoc",
"(",
")",
")",
";",
"DstBlk",
"->",
"addSuccessor",
"(",
"LandMBB",
")",
";",
"DstBlk",
"->",
"removeSuccessor",
"("
]
|
GCC | avr | MD | next_suggestion | MPU | 5,817 | [
"(",
"if_then_else",
"(",
"match_test",
"<STR_LIT>",
")"
]
| [
"[",
"(",
"set",
"(",
"attr",
"<STR_LIT>",
")",
"(",
"if_then_else",
"(",
"and",
"(",
"ge",
"(",
"minus",
"(",
"pc",
")",
"(",
"match_dup",
"<NUM_LIT>",
")",
")",
"(",
"const_int",
"-",
"<NUM_LIT>",
")",
")",
"(",
"le",
"(",
"minus",
"(",
"pc",
")",
"(",
"match_dup",
"<NUM_LIT>",
")",
")",
"(",
"const_int",
"<NUM_LIT>",
")",
")",
")",
"(",
"const_int",
"<NUM_LIT>",
")"
]
|
GCC | spu | MD | stmt_completion | MPU | 5,818 | [
"]",
")"
]
| [
"V8HI",
"V4SI",
"V4SF",
"V2DF"
]
|
LLVM | SystemZ | CPP | next_suggestion | CPU | 5,819 | [
"}"
]
| [
"Flags",
".",
"setNoSignedWrap",
"(",
"false",
")",
";",
"Flags",
".",
"setNoUnsignedWrap",
"(",
"false",
")",
";",
"N",
"->",
"setFlags",
"(",
"Flags",
")",
";",
"C",
".",
"Op0",
"=",
"SDValue",
"(",
"N",
",",
"<NUM_LIT>",
")",
";",
"C",
".",
"Op1",
"=",
"DAG",
".",
"getConstant",
"(",
"<NUM_LIT>",
",",
"DL",
",",
"N",
"->",
"getValueType",
"(",
"<NUM_LIT>",
")",
")",
";",
"return",
";",
"}",
"}",
"}"
]
|
GCC | ia64 | MD | next_suggestion | CPU | 5,820 | [
"<STR_LIT>"
]
| [
"[",
"(",
"set",
"(",
"match_operand",
":",
"DI",
"<NUM_LIT>",
"<STR_LIT>",
"<STR_LIT>",
")",
"(",
"plus",
":",
"DI",
"(",
"unspec",
":",
"DI",
"[",
"(",
"match_operand",
"<NUM_LIT>",
"<STR_LIT>",
"<STR_LIT>",
")",
"]",
"UNSPEC_TPREL",
")",
"(",
"match_operand",
":",
"DI",
"<NUM_LIT>",
"<STR_LIT>",
"<STR_LIT>",
")",
")",
")",
"]"
]
|
GCC | aarch64 | CPP | stmt_completion | CPU | 5,821 | [
"a",
")",
"{"
]
| [
"vreinterpret_u16_u64",
"(",
"uint64x1_t",
"_",
"_"
]
|
GCC | aarch64 | CPP | stmt_completion | CPU | 5,822 | [
"_",
"_",
"b",
")",
";"
]
| [
"return",
"(",
"int16_t",
")",
"_",
"_",
"builtin_aarch64_sqrshrun_nsi",
"(",
"_",
"_",
"a",
","
]
|
LLVM | AArch64 | TD | next_suggestion | CPU | 5,823 | [
"let",
"ElementSize",
"=",
"size",
";"
]
| [
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"opc",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"<NUM_LIT>",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"Pg",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"tsz8_64",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"imm",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"Zdn",
";",
"let",
"Constraints",
"=",
"<STR_LIT>",
";",
"let",
"DestructiveInstType",
"=",
"Destructive",
";"
]
|
LLVM | Hexagon | TD | next_suggestion | DSP | 5,824 | [
"let",
"isExtendable",
"=",
"<NUM_LIT>",
";"
]
| [
"def",
"C2_cmovenewif",
":",
"HInst",
"<",
"(",
"outs",
"IntRegs",
":",
"$",
"Rd32",
")",
",",
"(",
"ins",
"PredRegs",
":",
"$",
"Pu4",
",",
"s32_0Imm",
":",
"$",
"Ii",
")",
",",
"<STR_LIT>",
",",
"tc_1ae57e39",
",",
"TypeALU32_2op",
">",
",",
"Enc_cda00a",
",",
"PredNewRel",
",",
"ImmRegRel",
"{",
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"<NUM_LIT>",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"<NUM_LIT>",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"<NUM_LIT>",
";",
"let",
"isPredicated",
"=",
"<NUM_LIT>",
";",
"let",
"isPredicatedFalse",
"=",
"<NUM_LIT>",
";",
"let",
"hasNewValue",
"=",
"<NUM_LIT>",
";",
"let",
"opNewValue",
"=",
"<NUM_LIT>",
";",
"let",
"isPredicatedNew",
"=",
"<NUM_LIT>",
";",
"let",
"CextOpcode",
"=",
"<STR_LIT>",
";",
"let",
"InputType",
"=",
"<STR_LIT>",
";",
"let",
"BaseOpcode",
"=",
"<STR_LIT>",
";",
"let",
"isMoveImm",
"=",
"<NUM_LIT>",
";"
]
|
LLVM | SPIRV | CPP | stmt_completion | Virtual ISA | 5,825 | [
")",
";"
]
| [
"MachineBasicBlock",
"&",
"BB",
"=",
"*",
"I",
".",
"getParent",
"(",
")",
";",
"if",
"(",
"Val",
"||",
"!",
"ZeroAsNull",
")",
"{",
"MIB",
"=",
"BuildMI",
"(",
"BB",
",",
"I",
",",
"I",
".",
"getDebugLoc",
"(",
")",
",",
"TII",
".",
"get",
"(",
"<STR_LIT>",
"::",
"<STR_LIT>",
")",
")",
".",
"addDef",
"(",
"Res",
")",
".",
"addUse",
"(",
"getSPIRVTypeID",
"(",
"SpvType",
")",
")",
";",
"addNumImm",
"(",
"APInt",
"(",
"getScalarOrVectorBitWidth",
"(",
"SpvType",
")",
",",
"Val",
")",
",",
"MIB",
")",
";",
"}",
"else",
"{",
"MIB",
"=",
"BuildMI",
"(",
"BB",
",",
"I",
",",
"I",
".",
"getDebugLoc",
"(",
")",
",",
"TII",
".",
"get",
"(",
"<STR_LIT>",
"::",
"<STR_LIT>",
")",
")",
".",
"addDef",
"(",
"Res",
")",
".",
"addUse",
"(",
"getSPIRVTypeID",
"(",
"SpvType",
")",
")",
";",
"}",
"const",
"auto",
"&",
"ST",
"=",
"CurMF",
"->",
"getSubtarget",
"("
]
|
LLVM | Mips | CPP | next_suggestion | CPU | 5,826 | [
"}"
]
| [
"const",
"MachineOperand",
"&",
"MO",
"=",
"MI",
"->",
"getOperand",
"(",
"<NUM_LIT>",
")",
";",
"assert",
"(",
"MO",
".",
"isImm",
"(",
")",
"&&",
"<STR_LIT>",
"CPRESTORE's operand must be an immediate.",
"<STR_LIT>",
")",
";",
"unsigned",
"Offset",
"=",
"MO",
".",
"getImm",
"(",
")",
",",
"Reg",
"=",
"Mips",
"::",
"SP",
";",
"MCInst",
"Sw",
";",
"if",
"(",
"Offset",
">=",
"<NUM_LIT>",
")",
"{",
"unsigned",
"Hi",
"=",
"(",
"Offset",
">>",
"<NUM_LIT>",
")",
"+",
"(",
"(",
"Offset",
"&",
"<NUM_LIT>",
")",
"!=",
"<NUM_LIT>",
")",
";",
"Offset",
"&=",
"<NUM_LIT>",
";",
"Reg",
"=",
"Mips",
"::",
"AT",
";",
"MCInsts",
".",
"resize",
"(",
"<NUM_LIT>",
")",
";",
"MCInsts",
"[",
"<NUM_LIT>",
"]",
".",
"setOpcode",
"(",
"Mips",
"::",
"LUi",
")",
";",
"MCInsts",
"[",
"<NUM_LIT>",
"]",
".",
"addOperand",
"(",
"MCOperand",
"::",
"CreateReg",
"(",
"Mips",
"::",
"AT",
")",
")",
";",
"MCInsts",
"[",
"<NUM_LIT>",
"]",
".",
"addOperand",
"(",
"MCOperand",
"::",
"CreateImm",
"(",
"Hi",
")",
")",
";",
"MCInsts",
"[",
"<NUM_LIT>",
"]",
".",
"setOpcode",
"(",
"Mips",
"::",
"ADDu",
")",
";",
"MCInsts",
"[",
"<NUM_LIT>",
"]",
".",
"addOperand",
"(",
"MCOperand",
"::",
"CreateReg",
"(",
"Mips",
"::",
"AT",
")",
")",
";",
"MCInsts",
"[",
"<NUM_LIT>",
"]",
".",
"addOperand",
"(",
"MCOperand",
"::",
"CreateReg",
"(",
"Mips",
"::",
"AT",
")",
")",
";",
"MCInsts",
"[",
"<NUM_LIT>",
"]",
".",
"addOperand",
"(",
"MCOperand",
"::",
"CreateReg",
"(",
"Mips",
"::",
"SP",
")",
")",
";",
"}",
"Sw",
".",
"setOpcode",
"(",
"Mips",
"::",
"SW",
")",
";",
"Sw",
".",
"addOperand",
"(",
"MCOperand",
"::",
"CreateReg",
"(",
"Mips",
"::",
"GP",
")",
")",
";",
"Sw",
".",
"addOperand",
"(",
"MCOperand",
"::",
"CreateReg",
"(",
"Reg",
")",
")",
";",
"Sw",
".",
"addOperand",
"(",
"MCOperand",
"::",
"CreateImm",
"(",
"Offset",
")",
")",
";",
"MCInsts",
".",
"push_back",
"(",
"Sw",
")",
";"
]
|
LLVM | PowerPC | TD | next_suggestion | CPU | 5,827 | [
"}"
]
| [
"let",
"DecoderMethod",
"=",
"<STR_LIT>",
";",
"let",
"OperandType",
"=",
"<STR_LIT>",
";"
]
|
GCC | loongarch | CPP | program_repair | CPU | 5,828 | [
"<FIXS>",
"if",
"(",
"!",
"IN_RANGE",
"(",
"index",
",",
"<NUM_LIT>",
",",
"<NUM_LIT>",
")",
")",
"<FIXE>"
]
| [
"loongarch_output_move_index_float",
"(",
"rtx",
"x",
",",
"machine_mode",
"mode",
",",
"bool",
"ldr",
")",
"{",
"int",
"index",
"=",
"exact_log2",
"(",
"GET_MODE_SIZE",
"(",
"mode",
")",
")",
";",
"<BUGS>",
"if",
"(",
"!",
"IN_RANGE",
"(",
"index",
",",
"<NUM_LIT>",
",",
"<NUM_LIT>",
")",
")",
"<BUGE>",
"return",
"NULL",
";",
"struct",
"loongarch_address_info",
"info",
";"
]
|
LLVM | PowerPC | CPP | next_suggestion | CPU | 5,829 | [
"TBB",
"=",
"SecondLastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"getMBB",
"(",
")",
";"
]
| [
"}",
"return",
"true",
";",
"}",
"MachineInstr",
"&",
"SecondLastInst",
"=",
"*",
"I",
";",
"if",
"(",
"I",
"!=",
"MBB",
".",
"begin",
"(",
")",
"&&",
"isUnpredicatedTerminator",
"(",
"*",
"--",
"I",
")",
")",
"return",
"true",
";",
"if",
"(",
"SecondLastInst",
".",
"getOpcode",
"(",
")",
"==",
"PPC",
"::",
"BCC",
"&&",
"LastInst",
".",
"getOpcode",
"(",
")",
"==",
"PPC",
"::",
"B",
")",
"{",
"if",
"(",
"!",
"SecondLastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"isMBB",
"(",
")",
"||",
"!",
"LastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"isMBB",
"(",
")",
")",
"return",
"true",
";",
"TBB",
"=",
"SecondLastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"getMBB",
"(",
")",
";",
"Cond",
".",
"push_back",
"(",
"SecondLastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
")",
";",
"Cond",
".",
"push_back",
"(",
"SecondLastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
")",
";",
"FBB",
"=",
"LastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"getMBB",
"(",
")",
";",
"return",
"false",
";",
"}",
"else",
"if",
"(",
"SecondLastInst",
".",
"getOpcode",
"(",
")",
"==",
"PPC",
"::",
"BC",
"&&",
"LastInst",
".",
"getOpcode",
"(",
")",
"==",
"PPC",
"::",
"B",
")",
"{",
"if",
"(",
"!",
"SecondLastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"isMBB",
"(",
")",
"||",
"!",
"LastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"isMBB",
"(",
")",
")",
"return",
"true",
";",
"TBB",
"=",
"SecondLastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"getMBB",
"(",
")",
";",
"Cond",
".",
"push_back",
"(",
"MachineOperand",
"::",
"CreateImm",
"(",
"PPC",
"::",
"PRED_BIT_SET",
")",
")",
";",
"Cond",
".",
"push_back",
"(",
"SecondLastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
")",
";",
"FBB",
"=",
"LastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"getMBB",
"(",
")",
";",
"return",
"false",
";",
"}",
"else",
"if",
"(",
"SecondLastInst",
".",
"getOpcode",
"(",
")",
"==",
"PPC",
"::",
"BCn",
"&&",
"LastInst",
".",
"getOpcode",
"(",
")",
"==",
"PPC",
"::",
"B",
")",
"{",
"if",
"(",
"!",
"SecondLastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"isMBB",
"(",
")",
"||",
"!",
"LastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"isMBB",
"(",
")",
")",
"return",
"true",
";",
"TBB",
"=",
"SecondLastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"getMBB",
"(",
")",
";",
"Cond",
".",
"push_back",
"(",
"MachineOperand",
"::",
"CreateImm",
"(",
"PPC",
"::",
"PRED_BIT_UNSET",
")",
")",
";",
"Cond",
".",
"push_back",
"(",
"SecondLastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
")",
";",
"FBB",
"=",
"LastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"getMBB",
"(",
")",
";",
"return",
"false",
";",
"}",
"else",
"if",
"(",
"(",
"SecondLastInst",
".",
"getOpcode",
"(",
")",
"==",
"PPC",
"::",
"BDNZ8",
"||",
"SecondLastInst",
".",
"getOpcode",
"(",
")",
"==",
"PPC",
"::",
"BDNZ",
")",
"&&",
"LastInst",
".",
"getOpcode",
"(",
")",
"==",
"PPC",
"::",
"B",
")",
"{",
"if",
"(",
"!",
"SecondLastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"isMBB",
"(",
")",
"||",
"!",
"LastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"isMBB",
"(",
")",
")",
"return",
"true",
";",
"if",
"(",
"DisableCTRLoopAnal",
")",
"return",
"true",
";",
"TBB",
"=",
"SecondLastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"getMBB",
"(",
")",
";",
"Cond",
".",
"push_back",
"(",
"MachineOperand",
"::",
"CreateImm",
"(",
"<NUM_LIT>",
")",
")",
";",
"Cond",
".",
"push_back",
"(",
"MachineOperand",
"::",
"CreateReg",
"(",
"isPPC64",
"?",
"PPC",
"::",
"CTR8",
":",
"PPC",
"::",
"CTR",
",",
"true",
")",
")",
";",
"FBB",
"=",
"LastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"getMBB",
"(",
")",
";",
"return",
"false",
";",
"}",
"else",
"if",
"(",
"(",
"SecondLastInst",
".",
"getOpcode",
"(",
")",
"==",
"PPC",
"::",
"BDZ8",
"||",
"SecondLastInst",
".",
"getOpcode",
"(",
")",
"==",
"PPC",
"::",
"BDZ",
")",
"&&",
"LastInst",
".",
"getOpcode",
"(",
")",
"==",
"PPC",
"::",
"B",
")",
"{",
"if",
"(",
"!",
"SecondLastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"isMBB",
"(",
")",
"||",
"!",
"LastInst",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"isMBB",
"(",
")",
")",
"return",
"true",
";",
"if",
"(",
"DisableCTRLoopAnal",
")",
"return",
"true",
";"
]
|
GCC | aarch64 | CPP | program_repair | CPU | 5,830 | [
"<FIXS>",
"&&",
"abi_break_gcc_13",
"&&",
"(",
"(",
"abi_break_gcc_13",
"==",
"<NUM_LIT>",
"*",
"BITS_PER_UNIT",
")",
"<FIXE>"
]
| [
"if",
"(",
"warn_pcs_change",
"<BUGS>",
"&&",
"abi_break_packed",
"&&",
"(",
"(",
"abi_break_packed",
"==",
"<NUM_LIT>",
"*",
"BITS_PER_UNIT",
")",
"<BUGE>",
"!=",
"(",
"alignment",
"==",
"<NUM_LIT>",
"*",
"BITS_PER_UNIT",
")",
")",
")",
"inform",
"(",
"input_location",
",",
"<STR_LIT>",
"parameter passing for argument of type ",
"<STR_LIT>",
"<STR_LIT>",
"%qT changed in GCC 13.1",
"<STR_LIT>",
",",
"type",
")",
";"
]
|
GCC | iq2000 | CPP | program_repair | CPU | 5,831 | [
"<FIXS>",
"int",
"regnum",
";",
"<FIXE>"
]
| [
"else",
"if",
"(",
"letter",
"==",
"'",
"Z",
"'",
")",
"{",
"<BUGS>",
"register",
"int",
"regnum",
";",
"<BUGE>",
"if",
"(",
"code",
"!=",
"REG",
")",
"abort",
"(",
")",
";"
]
|
LLVM | AArch64 | CPP | next_suggestion | CPU | 5,832 | [
"ResultReg",
"=",
"emitAnd_ri",
"(",
"MVT",
"::",
"i32",
",",
"ResultReg",
",",
"true",
",",
"Mask",
")",
";"
]
| [
"bool",
"RHSIsKill",
"=",
"hasTrivialKill",
"(",
"MulLHS",
")",
";",
"return",
"emitLogicalOp_rs",
"(",
"ISDOpc",
",",
"RetVT",
",",
"LHSReg",
",",
"LHSIsKill",
",",
"RHSReg",
",",
"RHSIsKill",
",",
"ShiftVal",
")",
";",
"}",
"if",
"(",
"RHS",
"->",
"hasOneUse",
"(",
")",
"&&",
"isValueAvailable",
"(",
"RHS",
")",
")",
"if",
"(",
"const",
"auto",
"*",
"SI",
"=",
"dyn_cast",
"<",
"ShlOperator",
">",
"(",
"RHS",
")",
")",
"if",
"(",
"const",
"auto",
"*",
"C",
"=",
"dyn_cast",
"<",
"ConstantInt",
">",
"(",
"SI",
"->",
"getOperand",
"(",
"<NUM_LIT>",
")",
")",
")",
"{",
"uint64_t",
"ShiftVal",
"=",
"C",
"->",
"getZExtValue",
"(",
")",
";",
"unsigned",
"RHSReg",
"=",
"getRegForValue",
"(",
"SI",
"->",
"getOperand",
"(",
"<NUM_LIT>",
")",
")",
";",
"if",
"(",
"!",
"RHSReg",
")",
"return",
"<NUM_LIT>",
";",
"bool",
"RHSIsKill",
"=",
"hasTrivialKill",
"(",
"SI",
"->",
"getOperand",
"(",
"<NUM_LIT>",
")",
")",
";",
"return",
"emitLogicalOp_rs",
"(",
"ISDOpc",
",",
"RetVT",
",",
"LHSReg",
",",
"LHSIsKill",
",",
"RHSReg",
",",
"RHSIsKill",
",",
"ShiftVal",
")",
";",
"}",
"unsigned",
"RHSReg",
"=",
"getRegForValue",
"(",
"RHS",
")",
";",
"if",
"(",
"!",
"RHSReg",
")",
"return",
"<NUM_LIT>",
";",
"bool",
"RHSIsKill",
"=",
"hasTrivialKill",
"(",
"RHS",
")",
";",
"MVT",
"VT",
"=",
"std",
"::",
"max",
"(",
"MVT",
"::",
"i32",
",",
"RetVT",
".",
"SimpleTy",
")",
";",
"ResultReg",
"=",
"fastEmit_rr",
"(",
"VT",
",",
"VT",
",",
"ISDOpc",
",",
"LHSReg",
",",
"LHSIsKill",
",",
"RHSReg",
",",
"RHSIsKill",
")",
";",
"if",
"(",
"RetVT",
">=",
"MVT",
"::",
"i8",
"&&",
"RetVT",
"<=",
"MVT",
"::",
"i16",
")",
"{",
"uint64_t",
"Mask",
"=",
"(",
"RetVT",
"==",
"MVT",
"::",
"i8",
")",
"?",
"<NUM_LIT>",
":",
"<NUM_LIT>",
";"
]
|
LLVM | PowerPC | CPP | next_suggestion | CPU | 5,833 | [
"I",
"=",
"std",
"::",
"make_unique",
"<",
"PPCSubtarget",
">",
"(",
"TargetTriple",
",",
"CPU",
",",
"computeFSAdditions",
"(",
"FS",
",",
"getOptLevel",
"(",
")",
",",
"getTargetTriple",
"(",
")",
")",
",",
"*",
"this",
")",
";"
]
| [
"bool",
"SoftFloat",
"=",
"F",
".",
"getFnAttribute",
"(",
"<STR_LIT>",
"use-soft-float",
"<STR_LIT>",
")",
".",
"getValueAsString",
"(",
")",
"==",
"<STR_LIT>",
"true",
"<STR_LIT>",
";",
"if",
"(",
"SoftFloat",
")",
"FS",
"+=",
"FS",
".",
"empty",
"(",
")",
"?",
"<STR_LIT>",
"-hard-float",
"<STR_LIT>",
":",
"<STR_LIT>",
",-hard-float",
"<STR_LIT>",
";",
"auto",
"&",
"I",
"=",
"SubtargetMap",
"[",
"CPU",
"+",
"FS",
"]",
";",
"if",
"(",
"!",
"I",
")",
"{",
"resetTargetOptions",
"(",
"F",
")",
";"
]
|
LLVM | AMDGPU | CPP | stmt_completion | GPU | 5,834 | [
"::",
"OPW128",
",",
"Imm",
")",
")",
";"
]
| [
"return",
"addOperand",
"(",
"Inst",
",",
"DAsm",
"->",
"decodeSrcOp",
"(",
"AMDGPUDisassembler"
]
|
LLVM | ARM | TD | stmt_completion | CPU | 5,835 | [
"NEONvgetlaneu",
">",
";"
]
| [
"def",
"VST1LNq16Pseudo_UPD",
":",
"VST1QLNWBPseudo",
"<",
"v8i16",
",",
"post_truncsti16",
","
]
|
LLVM | X86 | CPP | next_suggestion | CPU | 5,836 | [
"}"
]
| [
"if",
"(",
"SDValue",
"Unpck",
"=",
"lowerVectorShuffleWithUNPCK",
"(",
"DL",
",",
"MVT",
"::",
"v16f32",
",",
"Mask",
",",
"V1",
",",
"V2",
",",
"DAG",
")",
")",
"return",
"Unpck",
";",
"return",
"lowerVectorShuffleWithPERMV",
"(",
"DL",
",",
"MVT",
"::",
"v16f32",
",",
"Mask",
",",
"V1",
",",
"V2",
",",
"DAG",
")",
";"
]
|
LLVM | AMDGPU | CPP | next_suggestion | GPU | 5,837 | [
"}"
]
| [
"AMDGPUAsmParser",
"::",
"OperandMatchResultTy",
"Res",
"=",
"parseOptionalOps",
"(",
"VOP3OptionalOps",
",",
"Operands",
")",
";",
"if",
"(",
"!",
"HasModifiers",
"&&",
"Res",
"==",
"MatchOperand_Success",
")",
"{",
"for",
"(",
"unsigned",
"i",
"=",
"<NUM_LIT>",
",",
"e",
"=",
"Operands",
".",
"size",
"(",
")",
";",
"i",
"!=",
"e",
";",
"++",
"i",
")",
"{",
"AMDGPUOperand",
"&",
"Op",
"=",
"(",
"(",
"AMDGPUOperand",
"&",
")",
"*",
"Operands",
"[",
"i",
"]",
")",
";",
"if",
"(",
"(",
"Op",
".",
"isReg",
"(",
")",
"||",
"Op",
".",
"isImm",
"(",
")",
")",
"&&",
"!",
"Op",
".",
"hasModifiers",
"(",
")",
")",
"Op",
".",
"setModifiers",
"(",
"<NUM_LIT>",
")",
";",
"}",
"}",
"return",
"Res",
";"
]
|
GCC | nds32 | MD | stmt_completion | CPU | 5,838 | [
"HI",
"<STR_LIT>",
")",
"(",
"SI",
"<STR_LIT>",
")",
"]",
")"
]
| [
"(",
"define_mode_attr",
"byte",
"[",
"(",
"QI",
"<STR_LIT>",
")",
"("
]
|
LLVM | WebAssembly | CPP | next_suggestion | Virtual ISA | 5,839 | [
"if",
"(",
"Amount",
")",
"adjustStackPointer",
"(",
"Amount",
",",
"IsDestroy",
",",
"MF",
",",
"MBB",
",",
"TII",
",",
"I",
",",
"DL",
")",
";"
]
| [
"unsigned",
"Opc",
"=",
"I",
"->",
"getOpcode",
"(",
")",
";",
"bool",
"IsDestroy",
"=",
"Opc",
"==",
"TII",
"->",
"getCallFrameDestroyOpcode",
"(",
")",
";",
"unsigned",
"Amount",
"=",
"I",
"->",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"getImm",
"(",
")",
";"
]
|
GCC | mcore | CPP | program_repair | MPU | 5,840 | [
"<FIXS>",
"mcore_function_arg_advance",
"(",
"cumulative_args_t",
"cum_v",
",",
"machine_mode",
"mode",
",",
"<FIXE>"
]
| [
"}",
"static",
"void",
"<BUGS>",
"mcore_function_arg_advance",
"(",
"cumulative_args_t",
"cum_v",
",",
"enum",
"machine_mode",
"mode",
",",
"<BUGE>",
"const_tree",
"type",
",",
"bool",
"named",
"ATTRIBUTE_UNUSED",
")",
"{",
"CUMULATIVE_ARGS",
"*",
"cum",
"=",
"get_cumulative_args",
"(",
"cum_v",
")",
";"
]
|
LLVM | PowerPC | CPP | next_suggestion | CPU | 5,841 | [
"}"
]
| [
"unsigned",
"PPCMCCodeEmitter",
"::",
"getCondBrEncoding",
"(",
"const",
"MCInst",
"&",
"MI",
",",
"unsigned",
"OpNo",
",",
"SmallVectorImpl",
"<",
"MCFixup",
">",
"&",
"Fixups",
",",
"const",
"MCSubtargetInfo",
"&",
"STI",
")",
"const",
"{",
"const",
"MCOperand",
"&",
"MO",
"=",
"MI",
".",
"getOperand",
"(",
"OpNo",
")",
";",
"if",
"(",
"MO",
".",
"isReg",
"(",
")",
"||",
"MO",
".",
"isImm",
"(",
")",
")",
"return",
"getMachineOpValue",
"(",
"MI",
",",
"MO",
",",
"Fixups",
",",
"STI",
")",
";",
"Fixups",
".",
"push_back",
"(",
"MCFixup",
"::",
"Create",
"(",
"<NUM_LIT>",
",",
"MO",
".",
"getExpr",
"(",
")",
",",
"(",
"MCFixupKind",
")",
"PPC",
"::",
"fixup_ppc_brcond14",
")",
")",
";",
"return",
"<NUM_LIT>",
";"
]
|
LLVM | R600 | CPP | next_suggestion | GPU | 5,842 | [
"}"
]
| [
"for",
"(",
"MachineRegisterInfo",
"::",
"reg_iterator",
"I",
"=",
"MRI",
"->",
"reg_begin",
"(",
"SrcReg",
")",
",",
"E",
"=",
"MRI",
"->",
"reg_end",
"(",
")",
";",
"I",
"!=",
"E",
";",
")",
"{",
"MachineOperand",
"&",
"O",
"=",
"*",
"I",
";",
"++",
"I",
";",
"O",
".",
"substVirtReg",
"(",
"DstReg",
",",
"SubIdx",
",",
"*",
"TRI",
")",
";"
]
|
LLVM | AArch64 | TD | stmt_completion | CPU | 5,843 | [
"imm0_63",
":",
"$",
"imm",
")",
")",
",",
"(",
"i64",
"(",
"i64shift_sext_i8",
"imm0_63",
":",
"$",
"imm",
")",
")",
")",
">",
";"
]
| [
"def",
":",
"Pat",
"<",
"(",
"shl",
"(",
"sext_inreg",
"GPR64",
":",
"$",
"Rn",
",",
"i8",
")",
",",
"(",
"i64",
"imm0_63",
":",
"$",
"imm",
")",
")",
",",
"(",
"SBFMXri",
"GPR64",
":",
"$",
"Rn",
",",
"(",
"i64",
"(",
"i64shift_a"
]
|
LLVM | X86 | CPP | code_generation | CPU | 5,844 | [
"std",
"::",
"optional",
"<",
"Value",
"*",
">",
"X86TTIImpl",
"::",
"simplifyDemandedUseBitsIntrinsic",
"(",
"InstCombiner",
"&",
"IC",
",",
"IntrinsicInst",
"&",
"II",
",",
"APInt",
"DemandedMask",
",",
"KnownBits",
"&",
"Known",
",",
"bool",
"&",
"KnownBitsComputed",
")",
"const",
"{",
"switch",
"(",
"II",
".",
"getIntrinsicID",
"(",
")",
")",
"{",
"default",
":",
"break",
";",
"case",
"Intrinsic",
"::",
"x86_mmx_pmovmskb",
":",
"case",
"Intrinsic",
"::",
"x86_sse_movmsk_ps",
":",
"case",
"Intrinsic",
"::",
"x86_sse2_movmsk_pd",
":",
"case",
"Intrinsic",
"::",
"x86_sse2_pmovmskb_128",
":",
"case",
"Intrinsic",
"::",
"x86_avx_movmsk_ps_256",
":",
"case",
"Intrinsic",
"::",
"x86_avx_movmsk_pd_256",
":",
"case",
"Intrinsic",
"::",
"x86_avx2_pmovmskb",
":",
"{",
"unsigned",
"ArgWidth",
";",
"if",
"(",
"II",
".",
"getIntrinsicID",
"(",
")",
"==",
"Intrinsic",
"::",
"x86_mmx_pmovmskb",
")",
"{",
"ArgWidth",
"=",
"<NUM_LIT>",
";",
"}",
"else",
"{",
"auto",
"*",
"ArgType",
"=",
"cast",
"<",
"FixedVectorType",
">",
"(",
"II",
".",
"getArgOperand",
"(",
"<NUM_LIT>",
")",
"->",
"getType",
"(",
")",
")",
";",
"ArgWidth",
"=",
"ArgType",
"->",
"getNumElements",
"(",
")",
";",
"}",
"APInt",
"DemandedElts",
"=",
"DemandedMask",
".",
"zextOrTrunc",
"(",
"ArgWidth",
")",
";",
"Type",
"*",
"VTy",
"=",
"II",
".",
"getType",
"(",
")",
";",
"if",
"(",
"DemandedElts",
".",
"isZero",
"(",
")",
")",
"{",
"return",
"ConstantInt",
"::",
"getNullValue",
"(",
"VTy",
")",
";",
"}",
"Known",
".",
"Zero",
".",
"setBitsFrom",
"(",
"ArgWidth",
")",
";",
"KnownBitsComputed",
"=",
"true",
";",
"break",
";",
"}",
"}",
"return",
"std",
"::",
"nullopt",
";",
"}"
]
| [
"Can",
"be",
"used",
"to",
"implement",
"target-specific",
"instruction",
"combining",
"."
]
|
LLVM | Sparc | CPP | program_repair | CPU | 5,845 | [
"<FIXS>",
"int",
"SparcRegisterInfo",
"::",
"getDwarfRegNum",
"(",
"unsigned",
"RegNum",
",",
"bool",
"isEH",
")",
"const",
"{",
"<FIXE>"
]
| [
"return",
"<NUM_LIT>",
";",
"}",
"<BUGS>",
"int",
"SparcRegisterInfo",
"::",
"getDwarfRegNum",
"(",
"unsigned",
"RegNum",
")",
"const",
"{",
"<BUGE>",
"assert",
"(",
"<NUM_LIT>",
"&&",
"<STR_LIT>",
"What is the dwarf register number",
"<STR_LIT>",
")",
";",
"return",
"-",
"<NUM_LIT>",
";",
"}"
]
|
LLVM | X86 | TD | next_suggestion | CPU | 5,846 | [
"let",
"NumMicroOps",
"=",
"<NUM_LIT>",
";"
]
| [
"def",
"SKLWriteResGroup63",
":",
"SchedWriteRes",
"<",
"[",
"SKLPort06",
",",
"SKLPort0156",
"]",
">",
"{",
"let",
"Latency",
"=",
"<NUM_LIT>",
";"
]
|
GCC | i386 | MD | stmt_completion | CPU | 5,847 | [
")"
]
| [
"[",
"(",
"QI",
"<STR_LIT>",
")",
"(",
"HI",
"<STR_LIT>",
")",
"(",
"SI",
"<STR_LIT>"
]
|
GCC | aarch64 | CPP | next_suggestion | CPU | 5,848 | [
"}"
]
| [
"vcvtms_u32_f32",
"(",
"float32_t",
"_",
"_",
"a",
")",
"{",
"return",
"_",
"_",
"builtin_aarch64_lfloorusfsi_us",
"(",
"_",
"_",
"a",
")",
";"
]
|
GCC | i386 | MD | next_suggestion | CPU | 5,849 | [
"<STR_LIT>"
]
| [
"(",
"match_operand",
":",
"DI",
"<NUM_LIT>",
"<STR_LIT>",
"<STR_LIT>",
")",
")",
"(",
"const_int",
"<NUM_LIT>",
")",
")",
")",
"]",
"<STR_LIT>"
]
|
LLVM | PowerPC | CPP | stmt_completion | CPU | 5,850 | [
"::",
"getReadOnlyWithRel",
"(",
")",
";"
]
| [
"const",
"GlobalVariable",
"*",
"GVar",
"=",
"dyn_cast",
"<",
"GlobalVariable",
">",
"(",
"GV",
")",
";",
"if",
"(",
"GVar",
"&&",
"GVar",
"->",
"isConstant",
"(",
")",
"&&",
"(",
"GVar",
"->",
"getInitializer",
"(",
")",
"->",
"getRelocationInfo",
"(",
")",
"==",
"Constant",
"::",
"GlobalRelocations",
")",
")",
"Kind",
"=",
"SectionKind"
]
|
LLVM | Teak | CPP | next_suggestion | DSP | 5,851 | [
"}"
]
| [
"TargetPassConfig",
"*",
"TeakTargetMachine",
"::",
"createPassConfig",
"(",
"PassManagerBase",
"&",
"PM",
")",
"{",
"return",
"new",
"TeakPassConfig",
"(",
"*",
"this",
",",
"PM",
")",
";"
]
|
LLVM | AMDGPU | CPP | stmt_completion | GPU | 5,852 | [
")",
";"
]
| [
"SelectCode",
"(",
"N",
")",
";",
"return",
";",
"}",
"SDValue",
"Src0",
"=",
"N",
"->",
"getOperand",
"(",
"<NUM_LIT>",
")",
";",
"SDValue",
"Src1",
"=",
"N",
"->",
"getOperand",
"(",
"<NUM_LIT>",
")",
";",
"SDValue",
"Src2",
"=",
"N",
"->",
"getOperand",
"(",
"<NUM_LIT>",
")",
";",
"unsigned",
"Src0Mods",
",",
"Src1Mods",
",",
"Src2Mods",
";",
"bool",
"Sel0",
"=",
"SelectVOP3PMadMixModsImpl",
"(",
"Src0",
",",
"Src0",
",",
"Src0Mods",
")",
";",
"bool",
"Sel1",
"=",
"SelectVOP3PMadMixModsImpl",
"(",
"Src1",
",",
"Src1",
",",
"Src1Mods",
")",
";",
"bool",
"Sel2",
"=",
"SelectVOP3PMadMixModsImpl",
"(",
"Src2",
",",
"Src2",
",",
"Src2Mods",
")",
";",
"assert",
"(",
"(",
"IsFMA",
"||",
"!",
"Mode",
".",
"allFP32Denormals",
"(",
")",
")",
"&&",
"<STR_LIT>",
"fmad selected with denormals enabled",
"<STR_LIT>",
")",
";",
"if",
"(",
"Sel0",
"||",
"Sel1",
"||",
"Sel2",
")",
"{",
"SDValue",
"Zero",
"=",
"CurDAG",
"->",
"getTargetConstant",
"(",
"<NUM_LIT>",
",",
"SDLoc",
"(",
")",
",",
"MVT",
"::",
"i32",
")",
";",
"SDValue",
"Ops",
"[",
"]",
"=",
"{",
"CurDAG",
"->",
"getTargetConstant",
"(",
"Src0Mods",
",",
"SDLoc",
"(",
")",
",",
"MVT",
"::",
"i32",
")",
",",
"Src0",
",",
"CurDAG",
"->",
"getTargetConstant",
"(",
"Src1Mods",
",",
"SDLoc",
"(",
")",
",",
"MVT",
"::",
"i32",
")",
",",
"Src1",
",",
"CurDAG",
"->",
"getTargetConstant",
"(",
"Src2Mods",
",",
"SDLoc",
"(",
")",
",",
"MVT",
"::",
"i32",
")",
",",
"Src2",
",",
"CurDAG",
"->",
"getTargetConstant",
"(",
"<NUM_LIT>",
",",
"SDLoc",
"(",
")",
",",
"MVT",
"::",
"i1",
")",
",",
"Zero",
",",
"Zero",
"}",
";",
"CurDAG",
"->",
"SelectNodeTo",
"(",
"N",
",",
"IsFMA",
"?",
"AMDGPU",
"::",
"V_FMA_MIX_F32",
":",
"AMDGPU",
"::",
"V_MAD_MIX_F32",
",",
"MVT",
"::",
"f32",
",",
"Ops",
")",
";",
"}",
"else",
"{",
"SelectCode",
"(",
"N"
]
|
GCC | i386 | CPP | stmt_completion | CPU | 5,853 | [
")",
"_",
"_",
"A",
",",
"_",
"_",
"B",
")",
";"
]
| [
"return",
"(",
"_",
"_",
"m128d",
")",
"_",
"_",
"builtin_ia32_loadhpd",
"(",
"(",
"_",
"_",
"v2df"
]
|
LLVM | Hexagon | CPP | next_suggestion | DSP | 5,854 | [
"assert",
"(",
"Update",
"&&",
"<STR_LIT>",
"Didn't find relaxation target",
"<STR_LIT>",
")",
";"
]
| [
"for",
"(",
"auto",
"&",
"I",
":",
"HexagonMCInstrInfo",
"::",
"bundleInstructions",
"(",
"Inst",
")",
")",
"{",
"MCInst",
"&",
"CrntHMI",
"=",
"const_cast",
"<",
"MCInst",
"&",
">",
"(",
"*",
"I",
".",
"getInst",
"(",
")",
")",
";",
"if",
"(",
"*",
"RelaxTarget",
"==",
"&",
"CrntHMI",
")",
"{",
"Update",
"=",
"true",
";",
"assert",
"(",
"(",
"HexagonMCInstrInfo",
"::",
"bundleSize",
"(",
"Res",
")",
"<",
"HEXAGON_PACKET_SIZE",
")",
"&&",
"<STR_LIT>",
"No room to insert extender for relaxation",
"<STR_LIT>",
")",
";",
"MCInst",
"*",
"HMIx",
"=",
"takeExtender",
"(",
")",
";",
"*",
"HMIx",
"=",
"HexagonMCInstrInfo",
"::",
"deriveExtender",
"(",
"*",
"MCII",
",",
"CrntHMI",
",",
"HexagonMCInstrInfo",
"::",
"getExtendableOperand",
"(",
"*",
"MCII",
",",
"CrntHMI",
")",
")",
";",
"Res",
".",
"addOperand",
"(",
"MCOperand",
"::",
"createInst",
"(",
"HMIx",
")",
")",
";",
"*",
"RelaxTarget",
"=",
"nullptr",
";",
"}",
"Res",
".",
"addOperand",
"(",
"MCOperand",
"::",
"createInst",
"(",
"I",
".",
"getInst",
"(",
")",
")",
")",
";",
"}",
"(",
"void",
")",
"Update",
";"
]
|
GCC | i386 | CPP | program_repair | CPU | 5,855 | [
"<FIXS>",
"switch",
"(",
"(",
"int",
")",
"fpmath",
")",
"{",
"case",
"FPMATH_387",
":",
"opts",
"[",
"num",
"++",
"]",
"[",
"<NUM_LIT>",
"]",
"=",
"<STR_LIT>",
"<NUM_LIT>",
"<STR_LIT>",
";",
"break",
";",
"case",
"FPMATH_SSE",
":",
"opts",
"[",
"num",
"++",
"]",
"[",
"<NUM_LIT>",
"]",
"=",
"<STR_LIT>",
"sse",
"<STR_LIT>",
";",
"break",
";",
"case",
"FPMATH_387",
"|",
"FPMATH_SSE",
":",
"opts",
"[",
"num",
"++",
"]",
"[",
"<NUM_LIT>",
"]",
"=",
"<STR_LIT>",
"sse+387",
"<STR_LIT>",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"<FIXE>"
]
| [
"if",
"(",
"fpmath",
")",
"{",
"opts",
"[",
"num",
"]",
"[",
"<NUM_LIT>",
"]",
"=",
"<STR_LIT>",
"-mfpmath=",
"<STR_LIT>",
";",
"<BUGS>",
"opts",
"[",
"num",
"++",
"]",
"[",
"<NUM_LIT>",
"]",
"=",
"fpmath",
";",
"<BUGE>",
"}"
]
|
LLVM | AArch64 | TD | next_suggestion | CPU | 5,856 | [
"}"
]
| [
"let",
"Inst",
"{",
"<NUM_LIT>",
"}",
"=",
"iop",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"Zm",
";"
]
|
LLVM | AMDGPU | TD | stmt_completion | GPU | 5,857 | [
"<",
"<STR_LIT>",
">",
";"
]
| [
"def",
"SIbuffer_atomic_sub",
":",
"SDBufferAtomic"
]
|
GCC | i386 | MD | stmt_completion | CPU | 5,858 | [
"<STR_LIT>",
"<STR_LIT>",
")"
]
| [
"[",
"(",
"set",
"(",
"match_operand",
":",
"HI",
"<NUM_LIT>",
"<STR_LIT>",
"<STR_LIT>",
")",
"(",
"ior",
":",
"HI",
"(",
"ashift",
":",
"HI",
"(",
"zero_extend",
":",
"HI",
"(",
"match_operand",
":",
"QI",
"<NUM_LIT>",
"<STR_LIT>",
"<STR_LIT>",
")",
")",
"(",
"const_int",
"<NUM_LIT>",
")",
")",
"(",
"zero_extend",
":",
"HI",
"(",
"match_operand",
":",
"QI",
"<NUM_LIT>",
"<STR_LIT>",
"<STR_LIT>",
")",
")",
")",
")",
"(",
"unspec",
"[",
"(",
"const_int",
"<NUM_LIT>",
")",
"]",
"UNSPEC_MASKOP",
")",
"]",
"<STR_LIT>",
"<STR_LIT>",
"[",
"(",
"set_attr"
]
|
LLVM | AMDGPU | CPP | next_suggestion | GPU | 5,859 | [
"}"
]
| [
"unsigned",
"getReturnAddressReg",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"return",
"AMDGPU",
"::",
"SGPR30_SGPR31",
";"
]
|
LLVM | AMDGPU | CPP | stmt_completion | GPU | 5,860 | [
")",
";"
]
| [
"bool",
"AMDGPUInstructionSelector",
"::",
"selectG_LOAD_STORE_ATOMICRMW",
"(",
"MachineInstr",
"&",
"I",
")",
"const",
"{",
"initM0",
"(",
"I"
]
|
LLVM | Hexagon | CPP | next_suggestion | DSP | 5,861 | [
"}"
]
| [
"}",
"continue",
";",
"}",
"for",
"(",
"unsigned",
"I",
"=",
"<NUM_LIT>",
",",
"E",
"=",
"MI",
"->",
"getNumOperands",
"(",
")",
";",
"I",
"!=",
"E",
";",
"++",
"I",
")",
"{",
"MachineOperand",
"&",
"Op",
"=",
"MI",
"->",
"getOperand",
"(",
"I",
")",
";",
"if",
"(",
"!",
"Op",
".",
"isReg",
"(",
")",
"||",
"!",
"Op",
".",
"isDef",
"(",
")",
"||",
"!",
"Op",
".",
"getReg",
"(",
")",
")",
"continue",
";",
"unsigned",
"Reg",
"=",
"Op",
".",
"getReg",
"(",
")",
";",
"if",
"(",
"Hexagon",
"::",
"DoubleRegsRegClass",
".",
"contains",
"(",
"Reg",
")",
")",
"{",
"for",
"(",
"MCSubRegIterator",
"SubRegs",
"(",
"Reg",
",",
"TRI",
")",
";",
"SubRegs",
".",
"isValid",
"(",
")",
";",
"++",
"SubRegs",
")",
"{",
"LastDef",
"[",
"*",
"SubRegs",
"]",
"=",
"MI",
";",
"}",
"}",
"else",
"if",
"(",
"Hexagon",
"::",
"IntRegsRegClass",
".",
"contains",
"(",
"Reg",
")",
")",
"LastDef",
"[",
"Reg",
"]",
"=",
"MI",
";"
]
|
LLVM | AMDGPU | CPP | next_suggestion | GPU | 5,862 | [
"assert",
"(",
"Replaced",
"->",
"isReg",
"(",
")",
")",
";"
]
| [
"SDWAOperand",
"(",
"MachineOperand",
"*",
"TargetOp",
",",
"MachineOperand",
"*",
"ReplacedOp",
")",
":",
"Target",
"(",
"TargetOp",
")",
",",
"Replaced",
"(",
"ReplacedOp",
")",
"{",
"assert",
"(",
"Target",
"->",
"isReg",
"(",
")",
")",
";"
]
|
LLVM | Mips | CPP | stmt_completion | CPU | 5,863 | [
",",
"VTs",
",",
"Ops",
",",
"<NUM_LIT>",
")",
";"
]
| [
"SDValue",
"JTI",
"=",
"DAG",
".",
"getTargetJumpTable",
"(",
"JT",
"->",
"getIndex",
"(",
")",
",",
"PtrVT",
")",
";",
"if",
"(",
"getTargetMachine",
"(",
")",
".",
"getRelocationModel",
"(",
")",
"!=",
"Reloc",
"::",
"PIC_",
")",
"{",
"SDVTList",
"VTs",
"=",
"DAG",
".",
"getVTList",
"(",
"MVT",
"::",
"i32",
")",
";",
"SDValue",
"Ops",
"[",
"]",
"=",
"{",
"JTI",
"}",
";",
"HiPart",
"=",
"DAG",
".",
"getNode",
"(",
"<STR_LIT>",
"::",
"<STR_LIT>",
",",
"dl"
]
|
LLVM | Sparc | CPP | next_suggestion | CPU | 5,864 | [
"const",
"char",
"*",
"libName",
"=",
"TLI",
".",
"getLibcallName",
"(",
"VT",
"==",
"MVT",
"::",
"i32",
"?",
"RTLIB",
"::",
"FPTOSINT_F128_I32",
":",
"RTLIB",
"::",
"FPTOSINT_F128_I64",
")",
";"
]
| [
"EVT",
"VT",
"=",
"Op",
".",
"getValueType",
"(",
")",
";",
"assert",
"(",
"VT",
"==",
"MVT",
"::",
"i32",
"||",
"VT",
"==",
"MVT",
"::",
"i64",
")",
";",
"if",
"(",
"Op",
".",
"getOperand",
"(",
"<NUM_LIT>",
")",
".",
"getValueType",
"(",
")",
"==",
"MVT",
"::",
"f128",
"&&",
"(",
"!",
"hasHardQuad",
"||",
"!",
"TLI",
".",
"isTypeLegal",
"(",
"VT",
")",
")",
")",
"{"
]
|
LLVM | AArch64 | CPP | next_suggestion | CPU | 5,865 | [
"return",
"false",
";"
]
| [
"}",
"MCSubtargetInfo",
"&",
"STI",
"=",
"copySTI",
"(",
")",
";",
"FeatureBitset",
"Features",
"=",
"STI",
".",
"getFeatureBits",
"(",
")",
";",
"for",
"(",
"const",
"auto",
"&",
"Extension",
":",
"ExtensionMap",
")",
"{",
"if",
"(",
"Extension",
".",
"Name",
"!=",
"Name",
")",
"continue",
";",
"if",
"(",
"Extension",
".",
"Features",
".",
"none",
"(",
")",
")",
"return",
"Error",
"(",
"ExtLoc",
",",
"<STR_LIT>",
"unsupported architectural extension: ",
"<STR_LIT>",
"+",
"Name",
")",
";",
"FeatureBitset",
"ToggleFeatures",
"=",
"EnableFeature",
"?",
"STI",
".",
"SetFeatureBitsTransitively",
"(",
"~",
"Features",
"&",
"Extension",
".",
"Features",
")",
":",
"STI",
".",
"ToggleFeature",
"(",
"Features",
"&",
"Extension",
".",
"Features",
")",
";",
"setAvailableFeatures",
"(",
"ComputeAvailableFeatures",
"(",
"ToggleFeatures",
")",
")",
";"
]
|
LLVM | Mips | CPP | next_suggestion | CPU | 5,866 | [
"Streamer",
"->",
"EmitIntValue",
"(",
"ri_cprmask",
"[",
"<NUM_LIT>",
"]",
",",
"<NUM_LIT>",
")",
";"
]
| [
"Streamer",
"->",
"SwitchSection",
"(",
"Sec",
")",
";",
"Streamer",
"->",
"EmitIntValue",
"(",
"<NUM_LIT>",
",",
"<NUM_LIT>",
")",
";",
"Streamer",
"->",
"EmitIntValue",
"(",
"<NUM_LIT>",
",",
"<NUM_LIT>",
")",
";",
"Streamer",
"->",
"EmitIntValue",
"(",
"<NUM_LIT>",
",",
"<NUM_LIT>",
")",
";",
"Streamer",
"->",
"EmitIntValue",
"(",
"<NUM_LIT>",
",",
"<NUM_LIT>",
")",
";",
"Streamer",
"->",
"EmitIntValue",
"(",
"ri_gprmask",
",",
"<NUM_LIT>",
")",
";",
"Streamer",
"->",
"EmitIntValue",
"(",
"<NUM_LIT>",
",",
"<NUM_LIT>",
")",
";",
"Streamer",
"->",
"EmitIntValue",
"(",
"ri_cprmask",
"[",
"<NUM_LIT>",
"]",
",",
"<NUM_LIT>",
")",
";",
"Streamer",
"->",
"EmitIntValue",
"(",
"ri_cprmask",
"[",
"<NUM_LIT>",
"]",
",",
"<NUM_LIT>",
")",
";",
"Streamer",
"->",
"EmitIntValue",
"(",
"ri_cprmask",
"[",
"<NUM_LIT>",
"]",
",",
"<NUM_LIT>",
")",
";",
"Streamer",
"->",
"EmitIntValue",
"(",
"ri_cprmask",
"[",
"<NUM_LIT>",
"]",
",",
"<NUM_LIT>",
")",
";",
"Streamer",
"->",
"EmitIntValue",
"(",
"ri_gp_value",
",",
"<NUM_LIT>",
")",
";",
"}",
"else",
"{",
"const",
"MCSectionELF",
"*",
"Sec",
"=",
"Context",
".",
"getELFSection",
"(",
"<STR_LIT>",
".reginfo",
"<STR_LIT>",
",",
"ELF",
"::",
"SHT_MIPS_REGINFO",
",",
"ELF",
"::",
"SHF_ALLOC",
",",
"SectionKind",
"::",
"getMetadata",
"(",
")",
",",
"<NUM_LIT>",
",",
"<STR_LIT>",
"<STR_LIT>",
")",
";",
"MCA",
".",
"getOrCreateSectionData",
"(",
"*",
"Sec",
")",
".",
"setAlignment",
"(",
"Features",
"&",
"Mips",
"::",
"FeatureN32",
"?",
"<NUM_LIT>",
":",
"<NUM_LIT>",
")",
";",
"Streamer",
"->",
"SwitchSection",
"(",
"Sec",
")",
";",
"Streamer",
"->",
"EmitIntValue",
"(",
"ri_gprmask",
",",
"<NUM_LIT>",
")",
";",
"Streamer",
"->",
"EmitIntValue",
"(",
"ri_cprmask",
"[",
"<NUM_LIT>",
"]",
",",
"<NUM_LIT>",
")",
";",
"Streamer",
"->",
"EmitIntValue",
"(",
"ri_cprmask",
"[",
"<NUM_LIT>",
"]",
",",
"<NUM_LIT>",
")",
";",
"Streamer",
"->",
"EmitIntValue",
"(",
"ri_cprmask",
"[",
"<NUM_LIT>",
"]",
",",
"<NUM_LIT>",
")",
";"
]
|
GCC | arm | CPP | code_generation | CPU | 5,867 | [
"static",
"inline",
"int",
"arm_arm_address_cost",
"(",
"rtx",
"x",
")",
"{",
"enum",
"rtx_code",
"c",
"=",
"GET_CODE",
"(",
"x",
")",
";",
"if",
"(",
"c",
"==",
"PRE_INC",
"||",
"c",
"==",
"PRE_DEC",
"||",
"c",
"==",
"POST_INC",
"||",
"c",
"==",
"POST_DEC",
")",
"return",
"<NUM_LIT>",
";",
"if",
"(",
"c",
"==",
"MEM",
"||",
"c",
"==",
"LABEL_REF",
"||",
"c",
"==",
"SYMBOL_REF",
")",
"return",
"<NUM_LIT>",
";",
"if",
"(",
"c",
"==",
"PLUS",
")",
"{",
"if",
"(",
"CONST_INT_P",
"(",
"XEXP",
"(",
"x",
",",
"<NUM_LIT>",
")",
")",
")",
"return",
"<NUM_LIT>",
";",
"if",
"(",
"ARITHMETIC_P",
"(",
"XEXP",
"(",
"x",
",",
"<NUM_LIT>",
")",
")",
"||",
"ARITHMETIC_P",
"(",
"XEXP",
"(",
"x",
",",
"<NUM_LIT>",
")",
")",
")",
"return",
"<NUM_LIT>",
";",
"return",
"<NUM_LIT>",
";",
"}",
"return",
"<NUM_LIT>",
";",
"}"
]
| [
"All",
"address",
"computations",
"that",
"can",
"be",
"done",
"are",
"free",
",",
"but",
"rtx",
"cost",
"returns",
"the",
"same",
"for",
"practically",
"all",
"of",
"them",
".",
"So",
"we",
"weight",
"the",
"different",
"types",
"of",
"address",
"here",
"in",
"the",
"order",
"(",
"most",
"pref",
"first",
")",
":",
"PRE/POST_INC/DEC",
",",
"SHIFT",
"or",
"NON-INT",
"sum",
",",
"INT",
"sum",
",",
"REG",
",",
"MEM",
"or",
"LABEL",
"."
]
|
GCC | sh | MD | stmt_completion | CPU | 5,868 | [
"]",
")",
"]",
")"
]
| [
"(",
"use",
"(",
"reg",
":",
"SI",
"FPSCR_MODES_REG",
")",
")",
"(",
"clobber",
"(",
"scratch",
":",
"SI",
")",
")"
]
|
LLVM | X86 | CPP | stmt_completion | CPU | 5,869 | [
";"
]
| [
"ASSERT_SORTED",
"(",
"OpcodeTable",
")",
";",
"int",
"Opc",
"=",
"Lookup",
"(",
"OpcodeTable",
",",
"array_lengthof",
"(",
"OpcodeTable",
")",
",",
"Opcode",
")",
";",
"assert",
"(",
"Opc",
"!=",
"-",
"<NUM_LIT>",
"&&",
"<STR_LIT>",
"FP Stack instruction not in OpcodeTable!",
"<STR_LIT>",
")",
";",
"return",
"Opc"
]
|
LLVM | AArch64 | TD | stmt_completion | CPU | 5,870 | [
">",
";"
]
| [
"def",
":",
"InstRW",
"<",
"[",
"KryoWrite_1cyc_X_X_212ln",
"]",
",",
"(",
"instrs",
"EXTv16i8",
")"
]
|
GCC | i386 | CPP | program_repair | CPU | 5,871 | [
"<FIXS>",
"&",
"nregs",
",",
"&",
"padding1",
",",
"(",
"int",
"*",
")",
"<NUM_LIT>",
")",
";",
"<FIXE>"
]
| [
"int",
"frame_size",
"=",
"frame_pointer_needed",
"?",
"<NUM_LIT>",
":",
"<NUM_LIT>",
";",
"HOST_WIDE_INT",
"tsize",
"=",
"ix86_compute_frame_size",
"(",
"get_frame_size",
"(",
")",
",",
"<BUGS>",
"&",
"nregs",
",",
"&",
"padding1",
",",
"(",
"int",
"*",
")",
"<NUM_LIT>",
")",
";",
"<BUGE>",
"if",
"(",
"to",
"!=",
"STACK_POINTER_REGNUM",
")",
"abort",
"(",
")",
";"
]
|
LLVM | BPF | CPP | stmt_completion | Virtual ISA | 5,872 | [
";"
]
| [
"return",
"STy",
"->",
"getName",
"(",
")"
]
|
GCC | i386 | CPP | next_suggestion | CPU | 5,873 | [
"targetm",
".",
"asm_out",
".",
"globalize_label",
"(",
"asm_out_file",
",",
"name",
")",
";"
]
| [
"DECL_IGNORED_P",
"(",
"decl",
")",
"=",
"<NUM_LIT>",
";",
"if",
"(",
"TARGET_MACHO",
")",
"{",
"switch_to_section",
"(",
"darwin_sections",
"[",
"picbase_thunk_section",
"]",
")",
";",
"fputs",
"(",
"<STR_LIT>",
"\\t.weak_definition\\t",
"<STR_LIT>",
",",
"asm_out_file",
")",
";",
"assemble_name",
"(",
"asm_out_file",
",",
"name",
")",
";",
"fputs",
"(",
"<STR_LIT>",
"\\n\\t.private_extern\\t",
"<STR_LIT>",
",",
"asm_out_file",
")",
";",
"assemble_name",
"(",
"asm_out_file",
",",
"name",
")",
";",
"putc",
"(",
"'",
"\\n",
"'",
",",
"asm_out_file",
")",
";",
"ASM_OUTPUT_LABEL",
"(",
"asm_out_file",
",",
"name",
")",
";",
"DECL_WEAK",
"(",
"decl",
")",
"=",
"<NUM_LIT>",
";",
"}",
"else",
"if",
"(",
"USE_HIDDEN_LINKONCE",
")",
"{",
"cgraph_node",
"::",
"create",
"(",
"decl",
")",
"->",
"set_comdat_group",
"(",
"DECL_ASSEMBLER_NAME",
"(",
"decl",
")",
")",
";",
"targetm",
".",
"asm_out",
".",
"unique_section",
"(",
"decl",
",",
"<NUM_LIT>",
")",
";",
"switch_to_section",
"(",
"get_named_section",
"(",
"decl",
",",
"NULL",
",",
"<NUM_LIT>",
")",
")",
";"
]
|
LLVM | ARM | CPP | next_suggestion | CPU | 5,874 | [
"}",
"else",
"{"
]
| [
"MachineBasicBlock",
"::",
"iterator",
"MBBI",
"=",
"prior",
"(",
"MBB",
".",
"end",
"(",
")",
")",
";",
"assert",
"(",
"(",
"MBBI",
"->",
"getOpcode",
"(",
")",
"==",
"ARM",
"::",
"BX_RET",
"||",
"MBBI",
"->",
"getOpcode",
"(",
")",
"==",
"ARM",
"::",
"tBX_RET",
"||",
"MBBI",
"->",
"getOpcode",
"(",
")",
"==",
"ARM",
"::",
"tPOP_RET",
")",
"&&",
"<STR_LIT>",
"Can only insert epilog into returning blocks",
"<STR_LIT>",
")",
";",
"DebugLoc",
"dl",
"=",
"MBBI",
"->",
"getDebugLoc",
"(",
")",
";",
"MachineFrameInfo",
"*",
"MFI",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"ARMFunctionInfo",
"*",
"AFI",
"=",
"MF",
".",
"getInfo",
"<",
"ARMFunctionInfo",
">",
"(",
")",
";",
"bool",
"isThumb",
"=",
"AFI",
"->",
"isThumbFunction",
"(",
")",
";",
"unsigned",
"VARegSaveSize",
"=",
"AFI",
"->",
"getVarArgsRegSaveSize",
"(",
")",
";",
"int",
"NumBytes",
"=",
"(",
"int",
")",
"MFI",
"->",
"getStackSize",
"(",
")",
";",
"if",
"(",
"!",
"AFI",
"->",
"hasStackFrame",
"(",
")",
")",
"{",
"if",
"(",
"NumBytes",
"!=",
"<NUM_LIT>",
")",
"emitSPUpdate",
"(",
"MBB",
",",
"MBBI",
",",
"NumBytes",
",",
"<STR_LIT>",
"::",
"<STR_LIT>",
",",
"<NUM_LIT>",
",",
"isThumb",
",",
"TII",
",",
"*",
"this",
",",
"dl",
")",
";",
"}",
"else",
"{",
"const",
"unsigned",
"*",
"CSRegs",
"=",
"getCalleeSavedRegs",
"(",
")",
";",
"if",
"(",
"MBBI",
"!=",
"MBB",
".",
"begin",
"(",
")",
")",
"{",
"do",
"--",
"MBBI",
";",
"while",
"(",
"MBBI",
"!=",
"MBB",
".",
"begin",
"(",
")",
"&&",
"isCSRestore",
"(",
"MBBI",
",",
"CSRegs",
")",
")",
";",
"if",
"(",
"!",
"isCSRestore",
"(",
"MBBI",
",",
"CSRegs",
")",
")",
"++",
"MBBI",
";",
"}",
"NumBytes",
"-=",
"(",
"AFI",
"->",
"getGPRCalleeSavedArea1Size",
"(",
")",
"+",
"AFI",
"->",
"getGPRCalleeSavedArea2Size",
"(",
")",
"+",
"AFI",
"->",
"getDPRCalleeSavedAreaSize",
"(",
")",
")",
";",
"if",
"(",
"isThumb",
")",
"{",
"if",
"(",
"hasFP",
"(",
"MF",
")",
")",
"{",
"NumBytes",
"=",
"AFI",
"->",
"getFramePtrSpillOffset",
"(",
")",
"-",
"NumBytes",
";",
"if",
"(",
"NumBytes",
")",
"emitThumbRegPlusImmediate",
"(",
"MBB",
",",
"MBBI",
",",
"ARM",
"::",
"SP",
",",
"FramePtr",
",",
"-",
"NumBytes",
",",
"TII",
",",
"*",
"this",
",",
"dl",
")",
";",
"else",
"BuildMI",
"(",
"MBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"ARM",
"::",
"tMOVr",
")",
",",
"ARM",
"::",
"SP",
")",
".",
"addReg",
"(",
"FramePtr",
")",
";",
"}",
"else",
"{",
"if",
"(",
"MBBI",
"->",
"getOpcode",
"(",
")",
"==",
"ARM",
"::",
"tBX_RET",
"&&",
"&",
"MBB",
".",
"front",
"(",
")",
"!=",
"MBBI",
"&&",
"prior",
"(",
"MBBI",
")",
"->",
"getOpcode",
"(",
")",
"==",
"ARM",
"::",
"tPOP",
")",
"{",
"MachineBasicBlock",
"::",
"iterator",
"PMBBI",
"=",
"prior",
"(",
"MBBI",
")",
";",
"emitSPUpdate",
"(",
"MBB",
",",
"PMBBI",
",",
"NumBytes",
",",
"<STR_LIT>",
"::",
"<STR_LIT>",
",",
"<NUM_LIT>",
",",
"isThumb",
",",
"TII",
",",
"*",
"this",
",",
"dl",
")",
";",
"}",
"else",
"emitSPUpdate",
"(",
"MBB",
",",
"MBBI",
",",
"NumBytes",
",",
"<STR_LIT>",
"::",
"<STR_LIT>",
",",
"<NUM_LIT>",
",",
"isThumb",
",",
"TII",
",",
"*",
"this",
",",
"dl",
")",
";",
"}"
]
|
LLVM | AArch64 | CPP | next_suggestion | CPU | 5,875 | [
"if",
"(",
"cast",
"<",
"MemSDNode",
">",
"(",
"Use",
")",
"->",
"getOrdering",
"(",
")",
">",
"Monotonic",
")",
"return",
"false",
";"
]
| [
"for",
"(",
"auto",
"Use",
":",
"N",
"->",
"uses",
"(",
")",
")",
"{",
"if",
"(",
"Use",
"->",
"getOpcode",
"(",
")",
"!=",
"ISD",
"::",
"LOAD",
"&&",
"Use",
"->",
"getOpcode",
"(",
")",
"!=",
"ISD",
"::",
"STORE",
"&&",
"Use",
"->",
"getOpcode",
"(",
")",
"!=",
"ISD",
"::",
"ATOMIC_LOAD",
"&&",
"Use",
"->",
"getOpcode",
"(",
")",
"!=",
"ISD",
"::",
"ATOMIC_STORE",
")",
"return",
"false",
";"
]
|
LLVM | AMDGPU | CPP | next_suggestion | GPU | 5,876 | [
"}"
]
| [
"if",
"(",
"!",
"GWSResourcePSV",
")",
"{",
"GWSResourcePSV",
"=",
"std",
"::",
"make_unique",
"<",
"AMDGPUGWSResourcePseudoSourceValue",
">",
"(",
"TM",
")",
";",
"}",
"return",
"GWSResourcePSV",
".",
"get",
"(",
")",
";"
]
|
GCC | nds32 | CPP | stmt_completion | CPU | 5,877 | [
";"
]
| [
"if",
"(",
"mode",
"==",
"V4QImode",
"||",
"mode",
"==",
"V2HImode",
")",
"return",
"NDS32_EXT_DSP_P",
"(",
")",
";",
"return",
"false"
]
|
LLVM | AArch64 | CPP | code_generation | CPU | 5,878 | [
"int",
"AArch64TTIImpl",
"::",
"getArithmeticInstrCost",
"(",
"unsigned",
"Opcode",
",",
"Type",
"*",
"Ty",
",",
"TTI",
"::",
"OperandValueKind",
"Opd1Info",
",",
"TTI",
"::",
"OperandValueKind",
"Opd2Info",
",",
"TTI",
"::",
"OperandValueProperties",
"Opd1PropInfo",
",",
"TTI",
"::",
"OperandValueProperties",
"Opd2PropInfo",
",",
"ArrayRef",
"<",
"const",
"Value",
"*",
">",
"Args",
")",
"{",
"std",
"::",
"pair",
"<",
"int",
",",
"MVT",
">",
"LT",
"=",
"TLI",
"->",
"getTypeLegalizationCost",
"(",
"DL",
",",
"Ty",
")",
";",
"int",
"Cost",
"=",
"<NUM_LIT>",
";",
"if",
"(",
"isWideningInstruction",
"(",
"Ty",
",",
"Opcode",
",",
"Args",
")",
")",
"Cost",
"+=",
"ST",
"->",
"getWideningBaseCost",
"(",
")",
";",
"int",
"ISD",
"=",
"TLI",
"->",
"InstructionOpcodeToISD",
"(",
"Opcode",
")",
";",
"switch",
"(",
"ISD",
")",
"{",
"default",
":",
"return",
"Cost",
"+",
"BaseT",
"::",
"getArithmeticInstrCost",
"(",
"Opcode",
",",
"Ty",
",",
"Opd1Info",
",",
"Opd2Info",
",",
"Opd1PropInfo",
",",
"Opd2PropInfo",
")",
";",
"case",
"ISD",
"::",
"SDIV",
":",
"if",
"(",
"Opd2Info",
"==",
"TargetTransformInfo",
"::",
"OK_UniformConstantValue",
"&&",
"Opd2PropInfo",
"==",
"TargetTransformInfo",
"::",
"OP_PowerOf2",
")",
"{",
"Cost",
"+=",
"getArithmeticInstrCost",
"(",
"Instruction",
"::",
"Add",
",",
"Ty",
",",
"Opd1Info",
",",
"Opd2Info",
",",
"TargetTransformInfo",
"::",
"OP_None",
",",
"TargetTransformInfo",
"::",
"OP_None",
")",
";",
"Cost",
"+=",
"getArithmeticInstrCost",
"(",
"Instruction",
"::",
"Sub",
",",
"Ty",
",",
"Opd1Info",
",",
"Opd2Info",
",",
"TargetTransformInfo",
"::",
"OP_None",
",",
"TargetTransformInfo",
"::",
"OP_None",
")",
";",
"Cost",
"+=",
"getArithmeticInstrCost",
"(",
"Instruction",
"::",
"Select",
",",
"Ty",
",",
"Opd1Info",
",",
"Opd2Info",
",",
"TargetTransformInfo",
"::",
"OP_None",
",",
"TargetTransformInfo",
"::",
"OP_None",
")",
";",
"Cost",
"+=",
"getArithmeticInstrCost",
"(",
"Instruction",
"::",
"AShr",
",",
"Ty",
",",
"Opd1Info",
",",
"Opd2Info",
",",
"TargetTransformInfo",
"::",
"OP_None",
",",
"TargetTransformInfo",
"::",
"OP_None",
")",
";",
"return",
"Cost",
";",
"}",
"LLVM_FALLTHROUGH",
";",
"case",
"ISD",
"::",
"UDIV",
":",
"Cost",
"+=",
"BaseT",
"::",
"getArithmeticInstrCost",
"(",
"Opcode",
",",
"Ty",
",",
"Opd1Info",
",",
"Opd2Info",
",",
"Opd1PropInfo",
",",
"Opd2PropInfo",
")",
";",
"if",
"(",
"Ty",
"->",
"isVectorTy",
"(",
")",
")",
"{",
"Cost",
"+=",
"getArithmeticInstrCost",
"(",
"Instruction",
"::",
"ExtractElement",
",",
"Ty",
",",
"Opd1Info",
",",
"Opd2Info",
",",
"Opd1PropInfo",
",",
"Opd2PropInfo",
")",
";",
"Cost",
"+=",
"getArithmeticInstrCost",
"(",
"Instruction",
"::",
"InsertElement",
",",
"Ty",
",",
"Opd1Info",
",",
"Opd2Info",
",",
"Opd1PropInfo",
",",
"Opd2PropInfo",
")",
";",
"Cost",
"+=",
"Cost",
";",
"}",
"return",
"Cost",
";",
"case",
"ISD",
"::",
"ADD",
":",
"case",
"ISD",
"::",
"MUL",
":",
"case",
"ISD",
"::",
"XOR",
":",
"case",
"ISD",
"::",
"OR",
":",
"case",
"ISD",
"::",
"AND",
":",
"return",
"(",
"Cost",
"+",
"<NUM_LIT>",
")",
"*",
"LT",
".",
"first",
";",
"}",
"}"
]
| [
"This",
"is",
"an",
"approximation",
"of",
"reciprocal",
"throughput",
"of",
"a",
"math/logic",
"op",
"."
]
|
LLVM | Hexagon | TD | next_suggestion | DSP | 5,879 | [
"let",
"mayLoad",
"=",
"<NUM_LIT>",
";"
]
| [
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"<NUM_LIT>",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"<NUM_LIT>",
";",
"let",
"isPredicated",
"=",
"<NUM_LIT>",
";",
"let",
"isPredicatedFalse",
"=",
"<NUM_LIT>",
";",
"let",
"hasNewValue",
"=",
"<NUM_LIT>",
";",
"let",
"opNewValue",
"=",
"<NUM_LIT>",
";",
"let",
"addrMode",
"=",
"PostInc",
";",
"let",
"accessSize",
"=",
"ByteAccess",
";",
"let",
"isPredicatedNew",
"=",
"<NUM_LIT>",
";"
]
|
LLVM | Mips | CPP | program_repair | CPU | 5,880 | [
"<FIXS>",
"cast",
"MemSDNode",
">",
"(",
"Node",
")",
"->",
"getAlign",
"(",
")",
">=",
"cast",
"MemSDNode",
">",
"(",
"Node",
")",
"->",
"getMemoryVT",
"(",
")",
".",
"getStoreSize",
"(",
")",
")",
"&&",
"<FIXE>"
]
| [
"case",
"ISD",
"::",
"LOAD",
":",
"case",
"ISD",
"::",
"STORE",
":",
"assert",
"(",
"(",
"Subtarget",
"->",
"systemSupportsUnalignedAccess",
"(",
")",
"||",
"<BUGS>",
"cast",
"MemSDNode",
">",
"(",
"Node",
")",
"->",
"getMemoryVT",
"(",
")",
".",
"getSizeInBits",
"(",
")",
"/",
"<NUM_LIT>",
"<=",
"cast",
"MemSDNode",
">",
"(",
"Node",
")",
"->",
"getAlignment",
"(",
")",
")",
"&&",
"<BUGE>",
"<STR_LIT>",
"Unexpected unaligned loads/stores.",
"<STR_LIT>",
")",
";",
"break",
";",
"#",
"endif"
]
|
LLVM | Hexagon | TD | next_suggestion | DSP | 5,881 | [
"let",
"isPredicated",
"=",
"<NUM_LIT>",
";"
]
| [
"def",
"J4_cmpgtn1_tp1_jump_nt",
":",
"HInst",
"<",
"(",
"outs",
")",
",",
"(",
"ins",
"GeneralSubRegs",
":",
"$",
"Rs16",
",",
"n1Const",
":",
"$",
"n1",
",",
"b30_2Imm",
":",
"$",
"Ii",
")",
",",
"<STR_LIT>",
",",
"tc_3d495a39",
",",
"TypeCJ",
">",
",",
"Enc_b1e1fb",
",",
"PredRel",
"{",
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"<NUM_LIT>",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"<NUM_LIT>",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"<NUM_LIT>",
";"
]
|
LLVM | X86 | CPP | next_suggestion | CPU | 5,882 | [
"bool",
"HasVEX_4V",
"=",
"(",
"TSFlags",
">>",
"<STR_LIT>",
"::",
"<STR_LIT>",
")",
"&",
"<STR_LIT>",
"::",
"<STR_LIT>",
";"
]
| [
"unsigned",
"FirstMemOp",
"=",
"<NUM_LIT>",
";",
"if",
"(",
"HasVEX_4V",
")",
"++",
"FirstMemOp",
";",
"if",
"(",
"HasXOP_W",
")",
"++",
"FirstMemOp",
";",
"return",
"FirstMemOp",
";",
"}",
"case",
"<STR_LIT>",
"::",
"<STR_LIT>",
":",
"case",
"<STR_LIT>",
"::",
"<STR_LIT>",
":",
"case",
"<STR_LIT>",
"::",
"<STR_LIT>",
":",
"case",
"<STR_LIT>",
"::",
"<STR_LIT>",
":",
"case",
"<STR_LIT>",
"::",
"<STR_LIT>",
":",
"case",
"<STR_LIT>",
"::",
"<STR_LIT>",
":",
"case",
"<STR_LIT>",
"::",
"<STR_LIT>",
":",
"case",
"<STR_LIT>",
"::",
"<STR_LIT>",
":",
"return",
"-",
"<NUM_LIT>",
";",
"case",
"<STR_LIT>",
"::",
"<STR_LIT>",
":",
"case",
"<STR_LIT>",
"::",
"<STR_LIT>",
":",
"case",
"<STR_LIT>",
"::",
"<STR_LIT>",
":",
"case",
"<STR_LIT>",
"::",
"<STR_LIT>",
":",
"case",
"<STR_LIT>",
"::",
"<STR_LIT>",
":",
"case",
"<STR_LIT>",
"::",
"<STR_LIT>",
":",
"case",
"<STR_LIT>",
"::",
"<STR_LIT>",
":",
"case",
"<STR_LIT>",
"::",
"<STR_LIT>",
":",
"{"
]
|
GCC | i386 | CPP | next_suggestion | CPU | 5,883 | [
"}"
]
| [
"extern",
"_",
"_",
"inline",
"_",
"_",
"m512i",
"_",
"_",
"attribute__",
"(",
"(",
"_",
"_",
"gnu_inline__",
",",
"_",
"_",
"always_inline__",
",",
"_",
"_",
"artificial__",
")",
")",
"_",
"mm512_maskz_dpwssds_epi32",
"(",
"_",
"_",
"mmask16",
"_",
"_",
"A",
",",
"_",
"_",
"m512i",
"_",
"_",
"B",
",",
"_",
"_",
"m512i",
"_",
"_",
"C",
",",
"_",
"_",
"m512i",
"_",
"_",
"D",
")",
"{",
"return",
"(",
"_",
"_",
"m512i",
")",
"_",
"_",
"builtin_ia32_vpdpwssds_v16si_maskz",
"(",
"(",
"_",
"_",
"v16si",
")",
"_",
"_",
"B",
",",
"(",
"_",
"_",
"v16si",
")",
"_",
"_",
"C",
",",
"(",
"_",
"_",
"v16si",
")",
"_",
"_",
"D",
",",
"(",
"_",
"_",
"mmask16",
")",
"_",
"_",
"A",
")",
";"
]
|
LLVM | Cpu0 | CPP | stmt_completion | CPU | 5,884 | [
")",
"{"
]
| [
"bool",
"Cpu0AsmParser",
"::",
"parseSetNoMacroDirective",
"(",
")",
"{",
"Parser",
".",
"Lex",
"(",
")",
";",
"if",
"(",
"getLexer",
"(",
")",
".",
"isNot",
"(",
"AsmToken",
"::",
"EndOfStatement",
")"
]
|
LLVM | Dcpu16 | CPP | stmt_completion | CPU | 5,885 | [
")",
";"
]
| [
"TargetRegistry",
"::",
"RegisterMCCodeGenInfo",
"(",
"TheDcpu16Target",
",",
"createDcpu16MCCodeGenInfo",
")",
";",
"TargetRegistry",
"::",
"RegisterMCInstrInfo",
"(",
"TheDcpu16Target",
",",
"createDcpu16MCInstrInfo",
")",
";",
"TargetRegistry",
"::",
"RegisterMCRegInfo",
"(",
"TheDcpu16Target",
",",
"createDcpu16MCRegisterInfo"
]
|
LLVM | X86 | TD | stmt_completion | CPU | 5,886 | [
"=",
"X86MemAsmOperand",
";"
]
| [
"def",
"lea64_32mem",
":",
"Operand",
"<",
"i32",
">",
"{",
"let",
"PrintMethod",
"=",
"<STR_LIT>",
";",
"let",
"MIOperandInfo",
"=",
"(",
"ops",
"GR64",
",",
"i8imm",
",",
"GR64_NOSP",
",",
"i32imm",
",",
"i8imm",
")",
";",
"let",
"ParserMatchClass"
]
|
LLVM | AArch64 | TD | next_suggestion | CPU | 5,887 | [
"}"
]
| [
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"<NUM_LIT>",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"opc",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"pattern",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"Rdn",
";",
"let",
"AsmString",
"=",
"!",
"if",
"(",
"!",
"eq",
"(",
"opc",
"{",
"<NUM_LIT>",
",",
"<NUM_LIT>",
"}",
",",
"<NUM_LIT>",
")",
",",
"!",
"strconcat",
"(",
"asm",
",",
"<STR_LIT>",
")",
",",
"!",
"strconcat",
"(",
"asm",
",",
"<STR_LIT>",
")",
")",
";",
"let",
"Constraints",
"=",
"<STR_LIT>",
";"
]
|
LLVM | Hexagon | TD | stmt_completion | DSP | 5,888 | [
"<NUM_LIT>",
"}",
";"
]
| [
"let",
"isTerminator",
"=",
"<NUM_LIT>",
";",
"let",
"isBranch",
"=",
"<NUM_LIT>",
";",
"let",
"isPredicatedNew",
"=",
"<NUM_LIT>",
";",
"let",
"cofRelax1",
"=",
"<NUM_LIT>",
";",
"let",
"cofRelax2",
"=",
"<NUM_LIT>",
";",
"let",
"cofMax1",
"=",
"<NUM_LIT>",
";",
"let",
"Uses",
"=",
"[",
"P1",
"]",
";",
"let",
"Defs",
"=",
"[",
"P1",
",",
"PC",
"]",
";",
"let",
"BaseOpcode",
"=",
"<STR_LIT>",
";",
"let",
"isTaken",
"=",
"Inst",
"{"
]
|
GCC | mmix | CPP | code_generation | CPU | 5,889 | [
"void",
"mmix_asm_output_internal_label",
"(",
"FILE",
"*",
"stream",
",",
"const",
"char",
"*",
"name",
")",
"{",
"assemble_name_raw",
"(",
"stream",
",",
"name",
")",
";",
"fprintf",
"(",
"stream",
",",
"<STR_LIT>",
"\\tIS @\\n",
"<STR_LIT>",
")",
";",
"}"
]
| [
"ASM_OUTPUT_INTERNAL_LABEL",
"."
]
|
LLVM | Hexagon | TD | next_suggestion | DSP | 5,890 | [
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"dst",
";"
]
| [
"let",
"IClass",
"=",
"<NUM_LIT>",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"<NUM_LIT>",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"majOp",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
"=",
"Rz",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"}",
"=",
"Mu",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"}",
"=",
"<NUM_LIT>",
";",
"let",
"Inst",
"{",
"<NUM_LIT>",
"}",
"=",
"<NUM_LIT>",
";"
]
|
LLVM | X86 | CPP | stmt_completion | CPU | 5,891 | [
")",
";"
]
| [
"O",
"<<",
"<STR_LIT>",
"WORD PTR ",
"<STR_LIT>",
";",
"printMemReference",
"(",
"MI",
",",
"OpNo",
",",
"O"
]
|
GCC | rs6000 | MD | stmt_completion | CPU | 5,892 | [
"<STR_LIT>",
")",
")",
"]"
]
| [
"(",
"match_operand",
":",
"P",
"<NUM_LIT>",
"<STR_LIT>"
]
|
LLVM | PowerPC | CPP | stmt_completion | CPU | 5,893 | [
"Ty",
")",
"const",
"override",
"{"
]
| [
"bool",
"isCheapToSpeculateCtlz",
"(",
"Type",
"*"
]
|
LLVM | AMDGPU | CPP | stmt_completion | GPU | 5,894 | [
";"
]
| [
"bool",
"hasVscnt",
"(",
")",
"const",
"{",
"return",
"HasVscnt"
]
|
GCC | s390 | MD | next_suggestion | MPU | 5,895 | [
"(",
"eq_attr",
"<STR_LIT>",
"<STR_LIT>",
")",
")"
]
| [
"(",
"define_insn_reservation",
"<STR_LIT>",
"<NUM_LIT>",
"(",
"and",
"(",
"eq_attr",
"<STR_LIT>",
"<STR_LIT>",
")"
]
|
LLVM | Hexagon | TD | next_suggestion | DSP | 5,896 | [
"}"
]
| [
"let",
"Defs",
"=",
"[",
"PC",
"]",
";",
"let",
"BaseOpcode",
"=",
"<STR_LIT>",
";",
"let",
"isTaken",
"=",
"Inst",
"{",
"<NUM_LIT>",
"}",
";",
"let",
"isExtendable",
"=",
"<NUM_LIT>",
";",
"let",
"opExtendable",
"=",
"<NUM_LIT>",
";",
"let",
"isExtentSigned",
"=",
"<NUM_LIT>",
";",
"let",
"opExtentBits",
"=",
"<NUM_LIT>",
";",
"let",
"opExtentAlign",
"=",
"<NUM_LIT>",
";",
"let",
"opNewValue",
"=",
"<NUM_LIT>",
";"
]
|
LLVM | X86 | CPP | next_suggestion | CPU | 5,897 | [
"}"
]
| [
"if",
"(",
"!",
"Elt",
"||",
"Elt",
"->",
"isOpaque",
"(",
")",
"||",
"Elt",
"->",
"getSimpleValueType",
"(",
"<NUM_LIT>",
")",
"!=",
"EltVT",
")",
"return",
"SDValue",
"(",
")",
";",
"const",
"APInt",
"&",
"EltC",
"=",
"Elt",
"->",
"getAPIntValue",
"(",
")",
";",
"if",
"(",
"(",
"IsInc",
"&&",
"EltC",
".",
"isMaxValue",
"(",
")",
")",
"||",
"(",
"!",
"IsInc",
"&&",
"EltC",
".",
"isZero",
"(",
")",
")",
")",
"return",
"SDValue",
"(",
")",
";",
"if",
"(",
"NSW",
"&&",
"(",
"(",
"IsInc",
"&&",
"EltC",
".",
"isMaxSignedValue",
"(",
")",
")",
"||",
"(",
"!",
"IsInc",
"&&",
"EltC",
".",
"isMinSignedValue",
"(",
")",
")",
")",
")",
"return",
"SDValue",
"(",
")",
";",
"NewVecC",
".",
"push_back",
"(",
"DAG",
".",
"getConstant",
"(",
"EltC",
"+",
"(",
"IsInc",
"?",
"<NUM_LIT>",
":",
"-",
"<NUM_LIT>",
")",
",",
"DL",
",",
"EltVT",
")",
")",
";"
]
|
LLVM | AMDGPU | CPP | stmt_completion | GPU | 5,898 | [
"<STR_LIT>",
")",
";"
]
| [
"Function",
"*",
"F",
"=",
"IT",
"->",
"getFunction",
"(",
")",
";",
"if",
"(",
"!",
"F",
"||",
"F",
"->",
"isDeclaration",
"(",
")",
")",
"continue",
";",
"MachineFunction",
"*",
"MF",
"=",
"MMI",
".",
"getMachineFunction",
"(",
"*",
"F",
")",
";",
"assert",
"(",
"MF",
"&&",
"<STR_LIT>",
"function must have been generated already",
"<STR_LIT>",
")",
";",
"auto",
"CI",
"=",
"CallGraphResourceInfo",
".",
"insert",
"(",
"std",
"::",
"pair",
"(",
"F",
",",
"SIFunctionResourceInfo",
"(",
")",
")",
")",
";",
"SIFunctionResourceInfo",
"&",
"Info",
"=",
"CI",
".",
"first",
"->",
"second",
";",
"assert",
"(",
"CI",
".",
"second",
"&&",
"<STR_LIT>",
"should only be called once per function",
"<STR_LIT>",
")",
";",
"Info",
"=",
"analyzeResourceUsage",
"(",
"*",
"MF",
",",
"TM",
",",
"AssumedStackSizeForDynamicSizeObjects",
",",
"AssumedStackSizeForExternalCall",
")",
";",
"HasIndirectCall",
"|=",
"Info",
".",
"HasIndirectCall",
";",
"}",
"for",
"(",
"const",
"auto",
"&",
"IT",
":",
"CG",
")",
"{",
"const",
"Function",
"*",
"F",
"=",
"IT",
".",
"first",
";",
"if",
"(",
"!",
"F",
"||",
"F",
"->",
"isDeclaration",
"(",
")",
")",
"continue",
";",
"auto",
"CI",
"=",
"CallGraphResourceInfo",
".",
"insert",
"(",
"std",
"::",
"pair",
"(",
"F",
",",
"SIFunctionResourceInfo",
"(",
")",
")",
")",
";",
"if",
"(",
"!",
"CI",
".",
"second",
")",
"continue",
";",
"SIFunctionResourceInfo",
"&",
"Info",
"=",
"CI",
".",
"first",
"->",
"second",
";",
"MachineFunction",
"*",
"MF",
"=",
"MMI",
".",
"getMachineFunction",
"(",
"*",
"F",
")",
";",
"assert",
"(",
"MF",
"&&",
"<STR_LIT>",
"function must have been generated already"
]
|
LLVM | TPC | TD | next_suggestion | Virtual ISA | 5,899 | [
"let",
"VectorPred",
"=",
"!",
"eq",
"(",
"!",
"cast",
"<",
"string",
">",
"(",
"Pred",
")",
",",
"<STR_LIT>",
")",
";"
]
| [
"bits",
"<",
"<NUM_LIT>",
">",
"dest",
";",
"bits",
"<",
"<NUM_LIT>",
">",
"src",
";",
"bits",
"<",
"<NUM_LIT>",
">",
"sw",
";",
"bits",
"<",
"<NUM_LIT>",
">",
"pred",
";",
"let",
"SrcA",
"=",
"src",
";",
"let",
"SrcB",
"=",
"{",
"<NUM_LIT>",
",",
"<NUM_LIT>",
",",
"dest",
"}",
";",
"let",
"Switches",
"=",
"{",
"sw",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
",",
"<NUM_LIT>",
"}",
";",
"let",
"PredAddress",
"=",
"pred",
"{",
"<NUM_LIT>",
"-",
"<NUM_LIT>",
"}",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.