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>", "BitVector", "PPCRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "const", "TargetFrameInfo", "*", "TFI", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameInfo", "(", ")", ";", "Reserved", ".", "set", "(", "PPC", "::", "R0", ")", ";", "Reserved", ".", "set", "(", "PPC", "::", "R1", ")", ";", "Reserved", ".", "set", "(", "PPC", "::", "LR", ")", ";", "Reserved", ".", "set", "(", "PPC", "::", "LR8", ")", ";", "Reserved", ".", "set", "(", "PPC", "::", "RM", ")", ";", "if", "(", "Subtarget", ".", "isSVR4ABI", "(", ")", ")", "{", "Reserved", ".", "set", "(", "PPC", "::", "R2", ")", ";", "Reserved", ".", "set", "(", "PPC", "::", "R13", ")", ";", "}", "if", "(", "Subtarget", ".", "isDarwinABI", "(", ")", ")", "{", "Reserved", ".", "set", "(", "PPC", "::", "R2", ")", ";", "}", "if", "(", "Subtarget", ".", "isPPC64", "(", ")", ")", "{", "Reserved", ".", "set", "(", "PPC", "::", "R13", ")", ";", "Reserved", ".", "set", "(", "PPC", "::", "R31", ")", ";", "if", "(", "!", "requiresRegisterScavenging", "(", "MF", ")", ")", "Reserved", ".", "set", "(", "PPC", "::", "R0", ")", ";", "Reserved", ".", "set", "(", "PPC", "::", "X0", ")", ";", "Reserved", ".", "set", "(", "PPC", "::", "X1", ")", ";", "Reserved", ".", "set", "(", "PPC", "::", "X13", ")", ";", "Reserved", ".", "set", "(", "PPC", "::", "X31", ")", ";", "if", "(", "Subtarget", ".", "isSVR4ABI", "(", ")", ")", "{", "Reserved", ".", "set", "(", "PPC", "::", "X2", ")", ";", "}", "if", "(", "Subtarget", ".", "isDarwinABI", "(", ")", ")", "{", "Reserved", ".", "set", "(", "PPC", "::", "X2", ")", ";", "}", "}", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "Reserved", ".", "set", "(", "PPC", "::", "R31", ")", ";", "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", "." ]
[ "PowerPC", "PPC", "PPC::R0", "PPC::R1", "PPC::LR", "PPC::LR8", "PPC::RM", "PPC::R2", "PPC::R13", "PPC::R2", "PPC", "PPC::R13", "PPC::R31", "PPC::R0", "PPC::X0", "PPC::X1", "PPC::X13", "PPC::X31", "PPC::X2", "PPC::X2", "PPC::R31" ]
PPCRegisterInfo31
getReservedRegs
PowerPC
CPU
LLVM
11,900
268
1
[]
[ "<s>", "static", "unsigned", "getBasePtrIndex", "(", "const", "MemSDNode", "*", "N", ")", "{", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "case", "ISD", "::", "STORE", ":", "case", "ISD", "::", "INTRINSIC_W_CHAIN", ":", "case", "ISD", "::", "INTRINSIC_VOID", ":", "return", "2", ";", "default", ":", "return", "1", ";", "}", "}", "</s>" ]
[ "The", "index", "into", "the", "associate", "statepoint", "'s", "argument", "list", "which", "contains", "the", "base", "pointer", "of", "the", "pointer", "whose", "relocation", "this", "gc.relocate", "describes", "." ]
[ "AMDGPU", "ISD::STORE", "ISD::INTRINSIC_W_CHAIN", "ISD::INTRINSIC_VOID", "2", "1" ]
SIISelLowering10
getBasePtrIndex
AMDGPU
GPU
LLVM
11,901
44
1
[]
[ "<s>", "SDValue", "LanaiTargetLowering", "::", "LowerCall", "(", "TargetLowering", "::", "CallLoweringInfo", "&", "CLI", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "SelectionDAG", "&", "DAG", "=", "CLI", ".", "DAG", ";", "SDLoc", "&", "DL", "=", "CLI", ".", "DL", ";", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", "=", "CLI", ".", "Outs", ";", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", "=", "CLI", ".", "OutVals", ";", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", "=", "CLI", ".", "Ins", ";", "SDValue", "Chain", "=", "CLI", ".", "Chain", ";", "SDValue", "Callee", "=", "CLI", ".", "Callee", ";", "bool", "&", "IsTailCall", "=", "CLI", ".", "IsTailCall", ";", "CallingConv", "::", "ID", "CallConv", "=", "CLI", ".", "CallConv", ";", "bool", "IsVarArg", "=", "CLI", ".", "IsVarArg", ";", "IsTailCall", "=", "false", ";", "switch", "(", "CallConv", ")", "{", "case", "CallingConv", "::", "Fast", ":", "case", "CallingConv", "::", "C", ":", "return", "LowerCCCCallTo", "(", "Chain", ",", "Callee", ",", "CallConv", ",", "IsVarArg", ",", "IsTailCall", ",", "Outs", ",", "OutVals", ",", "Ins", ",", "DL", ",", "DAG", ",", "InVals", ")", ";", "default", ":", "report_fatal_error", "(", "\"Unsupported calling convention\"", ")", ";", "}", "}", "</s>" ]
[ "This", "hook", "must", "be", "implemented", "to", "lower", "calls", "into", "the", "specified", "DAG", "." ]
[ "Lanai", "Lanai", "ISD::OutputArg", "ISD::InputArg", "\"Unsupported calling convention\"" ]
LanaiISelLowering
LowerCall
Lanai
CPU
LLVM
11,902
165
1
[]
[ "<s>", "void", "GCNUpwardRPTracker", "::", "recede", "(", "const", "MachineInstr", "&", "MI", ")", "{", "assert", "(", "MRI", "&&", "\"call reset first\"", ")", ";", "LastTrackedMI", "=", "&", "MI", ";", "if", "(", "MI", ".", "isDebugInstr", "(", ")", ")", "return", ";", "auto", "const", "RegUses", "=", "collectVirtualRegUses", "(", "MI", ",", "LIS", ",", "*", "MRI", ")", ";", "auto", "AtMIPressure", "=", "CurPressure", ";", "for", "(", "const", "auto", "&", "U", ":", "RegUses", ")", "{", "auto", "LiveMask", "=", "LiveRegs", "[", "U", ".", "RegUnit", "]", ";", "AtMIPressure", ".", "inc", "(", "U", ".", "RegUnit", ",", "LiveMask", ",", "LiveMask", "|", "U", ".", "LaneMask", ",", "*", "MRI", ")", ";", "}", "MaxPressure", "=", "max", "(", "AtMIPressure", ",", "MaxPressure", ")", ";", "for", "(", "const", "auto", "&", "MO", ":", "MI", ".", "defs", "(", ")", ")", "{", "if", "(", "!", "MO", ".", "isReg", "(", ")", "||", "!", "Register", "::", "isVirtualRegister", "(", "MO", ".", "getReg", "(", ")", ")", "||", "MO", ".", "isDead", "(", ")", ")", "continue", ";", "auto", "Reg", "=", "MO", ".", "getReg", "(", ")", ";", "auto", "I", "=", "LiveRegs", ".", "find", "(", "Reg", ")", ";", "if", "(", "I", "==", "LiveRegs", ".", "end", "(", ")", ")", "continue", ";", "auto", "&", "LiveMask", "=", "I", "->", "second", ";", "auto", "PrevMask", "=", "LiveMask", ";", "LiveMask", "&=", "~", "getDefRegMask", "(", "MO", ",", "*", "MRI", ")", ";", "CurPressure", ".", "inc", "(", "Reg", ",", "PrevMask", ",", "LiveMask", ",", "*", "MRI", ")", ";", "if", "(", "LiveMask", ".", "none", "(", ")", ")", "LiveRegs", ".", "erase", "(", "I", ")", ";", "}", "for", "(", "const", "auto", "&", "U", ":", "RegUses", ")", "{", "auto", "&", "LiveMask", "=", "LiveRegs", "[", "U", ".", "RegUnit", "]", ";", "auto", "PrevMask", "=", "LiveMask", ";", "LiveMask", "|=", "U", ".", "LaneMask", ";", "CurPressure", ".", "inc", "(", "U", ".", "RegUnit", ",", "PrevMask", ",", "LiveMask", ",", "*", "MRI", ")", ";", "}", "assert", "(", "CurPressure", "==", "getRegPressure", "(", "*", "MRI", ",", "LiveRegs", ")", ")", ";", "}", "</s>" ]
[ "Recede", "across", "the", "previous", "instruction", "." ]
[ "AMDGPU", "\"call reset first\"" ]
GCNRegPressure24
recede
AMDGPU
GPU
LLVM
11,903
293
1
[]
[ "<s>", "void", "ix86_expand_fp_absneg_operator", "(", "enum", "rtx_code", "code", ",", "machine_mode", "mode", ",", "rtx", "operands", "[", "]", ")", "{", "rtx", "mask", ",", "set", ",", "dst", ",", "src", ";", "bool", "use_sse", "=", "false", ";", "bool", "vector_mode", "=", "VECTOR_MODE_P", "(", "mode", ")", ";", "machine_mode", "vmode", "=", "mode", ";", "if", "(", "vector_mode", ")", "use_sse", "=", "true", ";", "else", "if", "(", "mode", "==", "TFmode", ")", "use_sse", "=", "true", ";", "else", "if", "(", "TARGET_SSE_MATH", ")", "{", "use_sse", "=", "SSE_FLOAT_MODE_P", "(", "mode", ")", ";", "if", "(", "mode", "==", "SFmode", ")", "vmode", "=", "V4SFmode", ";", "else", "if", "(", "mode", "==", "DFmode", ")", "vmode", "=", "V2DFmode", ";", "}", "if", "(", "use_sse", ")", "mask", "=", "ix86_build_signbit_mask", "(", "vmode", ",", "vector_mode", ",", "code", "==", "ABS", ")", ";", "else", "mask", "=", "NULL_RTX", ";", "dst", "=", "operands", "[", "0", "]", ";", "src", "=", "operands", "[", "1", "]", ";", "set", "=", "gen_rtx_fmt_e", "(", "code", ",", "mode", ",", "src", ")", ";", "set", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "dst", ",", "set", ")", ";", "if", "(", "mask", ")", "{", "rtx", "use", ",", "clob", ";", "rtvec", "par", ";", "use", "=", "gen_rtx_USE", "(", "VOIDmode", ",", "mask", ")", ";", "if", "(", "vector_mode", ")", "par", "=", "gen_rtvec", "(", "2", ",", "set", ",", "use", ")", ";", "else", "{", "clob", "=", "gen_rtx_CLOBBER", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "CCmode", ",", "FLAGS_REG", ")", ")", ";", "par", "=", "gen_rtvec", "(", "3", ",", "set", ",", "use", ",", "clob", ")", ";", "}", "emit_insn", "(", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "par", ")", ")", ";", "}", "else", "emit_insn", "(", "set", ")", ";", "}", "</s>" ]
[ "Generate", "code", "for", "floating", "point", "ABS", "or", "NEG", "." ]
[ "i386", "0", "1", "2", "3" ]
i3864
ix86_expand_fp_absneg_operator
i386
CPU
GCC
11,904
240
1
[]
[ "<s>", "unsigned", "BlackfinRegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "return", "TFI", "->", "hasFP", "(", "MF", ")", "?", "BF", "::", "FP", ":", "BF", "::", "SP", ";", "}", "</s>" ]
[ "Debug", "information", "queries", "." ]
[ "Blackfin", "BF::FP", "BF::SP" ]
BlackfinRegisterInfo6
getFrameRegister
Blackfin
DSP
LLVM
11,905
44
1
[]
[ "<s>", "EVT", "PPCTargetLowering", "::", "getSetCCResultType", "(", "EVT", "VT", ")", "const", "{", "return", "MVT", "::", "i32", ";", "}", "</s>" ]
[ "Return", "the", "value", "type", "to", "use", "for", "ISD", ":", ":SETCC", "." ]
[ "PowerPC", "PPC", "MVT::i32" ]
PPCISelLowering113
getSetCCResultType
PowerPC
CPU
LLVM
11,906
16
1
[]
[ "<s>", "unsigned", "getExceptionPointerRegister", "(", "const", "Constant", "*", "PersonalityFn", ")", "const", "override", "{", "return", "Hexagon", "::", "R0", ";", "}", "</s>" ]
[ "If", "a", "physical", "register", ",", "this", "returns", "the", "register", "that", "receives", "the", "exception", "address", "on", "entry", "to", "an", "EH", "pad", "." ]
[ "Hexagon", "Hexagon::R0" ]
HexagonISelLowering (2)
getExceptionPointerRegister
Hexagon
DSP
LLVM
11,907
17
1
[]
[ "<s>", "MachineInstr", "*", "Thumb1InstrInfo", "::", "foldMemoryOperandImpl", "(", "MachineFunction", "&", "MF", ",", "MachineInstr", "*", "MI", ",", "const", "SmallVectorImpl", "<", "unsigned", ">", "&", "Ops", ",", "int", "FI", ")", "const", "{", "if", "(", "Ops", ".", "size", "(", ")", "!=", "1", ")", "return", "NULL", ";", "unsigned", "OpNum", "=", "Ops", "[", "0", "]", ";", "unsigned", "Opc", "=", "MI", "->", "getOpcode", "(", ")", ";", "MachineInstr", "*", "NewMI", "=", "NULL", ";", "switch", "(", "Opc", ")", "{", "default", ":", "break", ";", "case", "ARM", "::", "tMOVr", ":", "case", "ARM", "::", "tMOVtgpr2gpr", ":", "case", "ARM", "::", "tMOVgpr2tgpr", ":", "case", "ARM", "::", "tMOVgpr2gpr", ":", "{", "if", "(", "OpNum", "==", "0", ")", "{", "unsigned", "SrcReg", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "bool", "isKill", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "isKill", "(", ")", ";", "if", "(", "TargetRegisterInfo", "::", "isPhysicalRegister", "(", "SrcReg", ")", "&&", "!", "isARMLowRegister", "(", "SrcReg", ")", ")", "break", ";", "NewMI", "=", "AddDefaultPred", "(", "BuildMI", "(", "MF", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "get", "(", "ARM", "::", "tSpill", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ")", ";", "}", "else", "{", "unsigned", "DstReg", "=", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "if", "(", "TargetRegisterInfo", "::", "isPhysicalRegister", "(", "DstReg", ")", "&&", "!", "isARMLowRegister", "(", "DstReg", ")", ")", "break", ";", "bool", "isDead", "=", "MI", "->", "getOperand", "(", "0", ")", ".", "isDead", "(", ")", ";", "NewMI", "=", "AddDefaultPred", "(", "BuildMI", "(", "MF", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "get", "(", "ARM", "::", "tRestore", ")", ")", ".", "addReg", "(", "DstReg", ",", "RegState", "::", "Define", "|", "getDeadRegState", "(", "isDead", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ")", ";", "}", "break", ";", "}", "}", "return", "NewMI", ";", "}", "</s>" ]
[ "foldMemoryOperand", "-", "Same", "as", "the", "previous", "version", "except", "it", "allows", "folding", "of", "any", "load", "and", "store", "from", "/", "to", "any", "address", ",", "not", "just", "from", "a", "specific", "stack", "slot", "." ]
[ "ARM", "1", "0", "ARM::tMOVr", "ARM::tMOVtgpr2gpr", "ARM::tMOVgpr2tgpr", "ARM::tMOVgpr2gpr", "0", "1", "1", "ARM", "ARM::tSpill", "0", "0", "ARM", "0", "ARM::tRestore", "0" ]
Thumb1InstrInfo15
foldMemoryOperandImpl
ARM
CPU
LLVM
11,908
292
1
[]
[ "<s>", "static", "bool", "loongarch_function_ok_for_sibcall", "(", "tree", "decl", "ATTRIBUTE_UNUSED", ",", "tree", "exp", "ATTRIBUTE_UNUSED", ")", "{", "return", "true", ";", "}", "</s>" ]
[ "Implement", "TARGET_FUNCTION_OK_FOR_SIBCALL", "." ]
[ "loongarch" ]
loongarch
loongarch_function_ok_for_sibcall
loongarch
CPU
GCC
11,909
17
1
[]
[ "<s>", "static", "void", "nvptx_print_operand_address", "(", "FILE", "*", "file", ",", "machine_mode", "mode", ",", "rtx", "addr", ")", "{", "nvptx_print_address_operand", "(", "file", ",", "addr", ",", "mode", ")", ";", "}", "</s>" ]
[ "Write", "assembly", "language", "output", "for", "the", "address", "ADDR", "to", "FILE", "." ]
[ "nvptx" ]
nvptx
nvptx_print_operand_address
nvptx
GPU
GCC
11,910
25
1
[]
[ "<s>", "bool", "X86TargetMachine", "::", "addPostRegAlloc", "(", "PassManagerBase", "&", "PM", ")", "{", "PM", ".", "add", "(", "createX86FloatingPointStackifierPass", "(", ")", ")", ";", "return", "true", ";", "}", "</s>" ]
[ "This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "after", "register", "allocation", "pass", "pipeline", "but", "before", "prolog-epilog", "insertion", "." ]
[ "X86", "X86", "X86" ]
X86TargetMachine116
addPostRegAlloc
X86
CPU
LLVM
11,911
23
1
[]
[ "<s>", "void", "RISCVPassConfig", "::", "addIRPasses", "(", ")", "{", "addPass", "(", "createAtomicExpandPass", "(", ")", ")", ";", "addPass", "(", "createCheriBoundAllocasPass", "(", ")", ")", ";", "TargetPassConfig", "::", "addIRPasses", "(", ")", ";", "}", "</s>" ]
[ "Add", "common", "target", "configurable", "passes", "that", "perform", "LLVM", "IR", "to", "IR", "transforms", "following", "machine", "independent", "optimization", "." ]
[ "RISCV", "RISCV" ]
RISCVTargetMachine22
addIRPasses
RISCV
CPU
LLVM
11,912
28
1
[]
[ "<s>", "bool", "X86FrameLowering", "::", "restoreCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "CSI", ".", "empty", "(", ")", ")", "return", "false", ";", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", "&&", "isFuncletReturnInstr", "(", "*", "MI", ")", "&&", "STI", ".", "isOSWindows", "(", ")", ")", "{", "if", "(", "STI", ".", "is32Bit", "(", ")", ")", "return", "true", ";", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "X86", "::", "CATCHRET", ")", "{", "const", "Function", "&", "F", "=", "MBB", ".", "getParent", "(", ")", "->", "getFunction", "(", ")", ";", "bool", "IsSEH", "=", "isAsynchronousEHPersonality", "(", "classifyEHPersonality", "(", "F", ".", "getPersonalityFn", "(", ")", ")", ")", ";", "if", "(", "IsSEH", ")", "return", "true", ";", "}", "}", "DebugLoc", "DL", "=", "MBB", ".", "findDebugLoc", "(", "MI", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "X86MachineFunctionInfo", "*", "X86FI", "=", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", ";", "int", "XMMFrameSlotOrigin", ";", "int", "SEHFrameOffset", "=", "X86FI", "->", "getCalleeSavedXMMFrameInfo", "(", "XMMFrameSlotOrigin", ")", "+", "MF", ".", "getFrameInfo", "(", ")", ".", "getMaxCallFrameSize", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "]", ".", "getReg", "(", ")", ";", "if", "(", "MBB", ".", "isEHFuncletEntry", "(", ")", "&&", "STI", ".", "is64Bit", "(", ")", ")", "{", "if", "(", "X86", "::", "VR128RegClass", ".", "contains", "(", "Reg", ")", ")", "{", "int", "Offset", "=", "(", "CSI", "[", "i", "]", ".", "getFrameIdx", "(", ")", "-", "XMMFrameSlotOrigin", "-", "1", ")", "*", "16", ";", "addRegOffset", "(", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "TII", ".", "get", "(", "getXMMAlignedLoadStoreOp", "(", "true", ")", ")", ",", "Reg", ")", ",", "X86", "::", "RSP", ",", "true", ",", "SEHFrameOffset", "+", "Offset", ")", ";", "}", "}", "else", "{", "if", "(", "X86", "::", "GR64RegClass", ".", "contains", "(", "Reg", ")", "||", "X86", "::", "GR32RegClass", ".", "contains", "(", "Reg", ")", ")", "continue", ";", "MVT", "VT", "=", "MVT", "::", "Other", ";", "if", "(", "X86", "::", "VK16RegClass", ".", "contains", "(", "Reg", ")", ")", "VT", "=", "STI", ".", "hasBWI", "(", ")", "?", "MVT", "::", "v64i1", ":", "MVT", "::", "v16i1", ";", "const", "TargetRegisterClass", "*", "RC", "=", "TRI", "->", "getMinimalPhysRegClass", "(", "Reg", ",", "VT", ")", ";", "TII", ".", "loadRegFromStackSlot", "(", "MBB", ",", "MI", ",", "Reg", ",", "CSI", "[", "i", "]", ".", "getFrameIdx", "(", ")", ",", "RC", ",", "TRI", ")", ";", "}", "}", "unsigned", "Opc", "=", "STI", ".", "is64Bit", "(", ")", "?", "X86", "::", "POP64r", ":", "X86", "::", "POP32r", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "]", ".", "getReg", "(", ")", ";", "if", "(", "!", "X86", "::", "GR64RegClass", ".", "contains", "(", "Reg", ")", "&&", "!", "X86", "::", "GR32RegClass", ".", "contains", "(", "Reg", ")", ")", "continue", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "TII", ".", "get", "(", "Opc", ")", ",", "Reg", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameDestroy", ")", ";", "}", "return", "true", ";", "}", "</s>" ]
[ "restoreCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "restore", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "load", "instructions", "via", "loadRegToStackSlot", "(", ")", "." ]
[ "X86", "X86", "X86::CATCHRET", "X86", "X86", "X86", "X86", "0", "X86::VR128RegClass", "1", "16", "X86::RSP", "X86::GR64RegClass", "X86::GR32RegClass", "MVT::Other", "X86::VK16RegClass", "MVT::v64i1", "MVT::v16i1", "X86::POP64r", "X86::POP32r", "0", "X86::GR64RegClass", "X86::GR32RegClass" ]
X86FrameLowering7
restoreCalleeSavedRegisters
X86
CPU
LLVM
11,913
506
1
[]
[ "<s>", "tree", "arm_resolve_overloaded_builtin", "(", "location_t", "loc", ",", "tree", "fndecl", ",", "void", "*", "arglist", ")", "{", "if", "(", "arm_describe_resolver", "(", "fndecl", ")", "==", "arm_cde_resolver", ")", "return", "arm_resolve_cde_builtin", "(", "loc", ",", "fndecl", ",", "arglist", ")", ";", "return", "NULL_TREE", ";", "}", "</s>" ]
[ "Implement", "TARGET_RESOLVE_OVERLOADED_BUILTIN", ".", "This", "is", "currently", "only", "used", "for", "the", "MVE", "related", "builtins", "for", "the", "CDE", "extension", ".", "Here", "we", "ensure", "the", "type", "of", "arguments", "is", "such", "that", "the", "size", "is", "correct", ",", "and", "then", "return", "a", "tree", "that", "describes", "the", "same", "function", "call", "but", "with", "the", "relevant", "types", "cast", "as", "necessary", "." ]
[ "arm" ]
arm-c
arm_resolve_overloaded_builtin
arm
CPU
GCC
11,914
37
1
[]
[ "<s>", "static", "short", "find_insn_regmode_weight", "(", "rtx", "insn", ",", "enum", "machine_mode", "mode", ")", "{", "short", "reg_weight", "=", "0", ";", "rtx", "x", ";", "x", "=", "PATTERN", "(", "insn", ")", ";", "reg_weight", "+=", "find_set_regmode_weight", "(", "x", ",", "mode", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "PARALLEL", ")", "{", "int", "j", ";", "for", "(", "j", "=", "XVECLEN", "(", "x", ",", "0", ")", "-", "1", ";", "j", ">=", "0", ";", "j", "--", ")", "{", "x", "=", "XVECEXP", "(", "PATTERN", "(", "insn", ")", ",", "0", ",", "j", ")", ";", "reg_weight", "+=", "find_set_regmode_weight", "(", "x", ",", "mode", ")", ";", "}", "}", "for", "(", "x", "=", "REG_NOTES", "(", "insn", ")", ";", "x", ";", "x", "=", "XEXP", "(", "x", ",", "1", ")", ")", "{", "if", "(", "REG_NOTE_KIND", "(", "x", ")", "==", "REG_DEAD", "||", "REG_NOTE_KIND", "(", "x", ")", "==", "REG_UNUSED", ")", "{", "rtx", "note", "=", "XEXP", "(", "x", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "note", ")", "==", "REG", "&&", "GET_MODE", "(", "note", ")", "==", "mode", ")", "reg_weight", "--", ";", "}", "}", "return", "reg_weight", ";", "}", "</s>" ]
[ "Get", "regmode", "weight", "for", "insn", "." ]
[ "sh", "0", "0", "1", "0", "0", "1", "0" ]
sh3
find_insn_regmode_weight
sh
CPU
GCC
11,915
168
1
[]
[ "<s>", "void", "AAPDAGToDAGISel", "::", "Select", "(", "SDNode", "*", "Node", ")", "{", "unsigned", "Opcode", "=", "Node", "->", "getOpcode", "(", ")", ";", "SDLoc", "dl", "(", "Node", ")", ";", "LLVM_DEBUG", "(", "errs", "(", ")", "<<", "\"Selecting: \"", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "errs", "(", ")", "<<", "\"\\n\"", ")", ";", "if", "(", "Node", "->", "isMachineOpcode", "(", ")", ")", "{", "LLVM_DEBUG", "(", "errs", "(", ")", "<<", "\"== \"", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "errs", "(", ")", "<<", "\"\\n\"", ")", ";", "return", ";", "}", "switch", "(", "Opcode", ")", "{", "case", "ISD", "::", "FrameIndex", ":", "{", "assert", "(", "Node", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i16", ")", ";", "int", "FI", "=", "cast", "<", "FrameIndexSDNode", ">", "(", "Node", ")", "->", "getIndex", "(", ")", ";", "SDValue", "TFI", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FI", ",", "MVT", "::", "i16", ")", ";", "SDNode", "*", "N", "=", "CurDAG", "->", "getMachineNode", "(", "AAP", "::", "LEA", ",", "dl", ",", "MVT", "::", "i16", ",", "TFI", ",", "CurDAG", "->", "getTargetConstant", "(", "0", ",", "dl", ",", "MVT", "::", "i16", ")", ")", ";", "ReplaceNode", "(", "Node", ",", "N", ")", ";", "return", ";", "}", "default", ":", "break", ";", "}", "SelectCode", "(", "Node", ")", ";", "}", "</s>" ]
[ "Main", "hook", "for", "targets", "to", "transform", "nodes", "into", "machine", "nodes", "." ]
[ "AAP", "AAP", "\"Selecting: \"", "\"\\n\"", "\"== \"", "\"\\n\"", "ISD::FrameIndex", "0", "MVT::i16", "MVT::i16", "AAP::LEA", "MVT::i16", "0", "MVT::i16" ]
AAPISelDAGToDAG
Select
AAP
MPU
LLVM
11,916
190
1
[]
[ "<s>", "const", "std", "::", "string", "&", "getAddress", "(", ")", "const", "{", "return", "Address", ";", "}", "</s>" ]
[ "Returns", "the", "address", "of", "this", "pointer", "in", "this", "block", "." ]
[ "PIC16" ]
PIC16Section2
getAddress
PIC16
MPU
LLVM
11,917
14
1
[]
[ "<s>", "SparcTargetMachine", "::", "SparcTargetMachine", "(", "const", "Module", "&", "M", ",", "const", "std", "::", "string", "&", "FS", ")", ":", "DataLayout", "(", "\"E-p:32:32-f128:128:128\"", ")", ",", "Subtarget", "(", "M", ",", "FS", ")", ",", "TLInfo", "(", "*", "this", ")", ",", "InstrInfo", "(", "Subtarget", ")", ",", "FrameInfo", "(", "TargetFrameInfo", "::", "StackGrowsDown", ",", "8", ",", "0", ")", "{", "}", "</s>" ]
[ "Create", "an", "ILP32", "architecture", "model", "." ]
[ "Sparc", "Sparc", "Sparc", "\"E-p:32:32-f128:128:128\"", "8", "0" ]
SparcTargetMachine14
SparcTargetMachine
Sparc
CPU
LLVM
11,918
52
1
[]
[ "<s>", "MachineBasicBlock", "::", "iterator", "AArch64FrameLowering", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "const", "AArch64InstrInfo", "*", "TII", "=", "static_cast", "<", "const", "AArch64InstrInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "DebugLoc", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "unsigned", "Opc", "=", "I", "->", "getOpcode", "(", ")", ";", "bool", "IsDestroy", "=", "Opc", "==", "TII", "->", "getCallFrameDestroyOpcode", "(", ")", ";", "uint64_t", "CalleePopAmount", "=", "IsDestroy", "?", "I", "->", "getOperand", "(", "1", ")", ".", "getImm", "(", ")", ":", "0", ";", "if", "(", "!", "hasReservedCallFrame", "(", "MF", ")", ")", "{", "unsigned", "Align", "=", "getStackAlignment", "(", ")", ";", "int64_t", "Amount", "=", "I", "->", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "Amount", "=", "alignTo", "(", "Amount", ",", "Align", ")", ";", "if", "(", "!", "IsDestroy", ")", "Amount", "=", "-", "Amount", ";", "if", "(", "CalleePopAmount", "==", "0", ")", "{", "assert", "(", "Amount", ">", "-", "0xffffff", "&&", "Amount", "<", "0xffffff", "&&", "\"call frame too large\"", ")", ";", "emitFrameOffset", "(", "MBB", ",", "I", ",", "DL", ",", "AArch64", "::", "SP", ",", "AArch64", "::", "SP", ",", "{", "Amount", ",", "MVT", "::", "i8", "}", ",", "TII", ")", ";", "}", "}", "else", "if", "(", "CalleePopAmount", "!=", "0", ")", "{", "assert", "(", "CalleePopAmount", "<", "0xffffff", "&&", "\"call frame too large\"", ")", ";", "emitFrameOffset", "(", "MBB", ",", "I", ",", "DL", ",", "AArch64", "::", "SP", ",", "AArch64", "::", "SP", ",", "{", "-", "(", "int64_t", ")", "CalleePopAmount", ",", "MVT", "::", "i8", "}", ",", "TII", ")", ";", "}", "return", "MBB", ".", "erase", "(", "I", ")", ";", "}", "</s>" ]
[ "This", "method", "is", "called", "during", "prolog/epilog", "code", "insertion", "to", "eliminate", "call", "frame", "setup", "and", "destroy", "pseudo", "instructions", "(", "but", "only", "if", "the", "Target", "is", "using", "them", ")", "." ]
[ "AArch64", "AArch64", "AArch64", "AArch64", "1", "0", "0", "0", "0xffffff", "0xffffff", "\"call frame too large\"", "AArch64::SP", "AArch64::SP", "MVT::i8", "0", "0xffffff", "\"call frame too large\"", "AArch64::SP", "AArch64::SP", "MVT::i8" ]
AArch64FrameLowering103
eliminateCallFramePseudoInstr
AArch64
CPU
LLVM
11,919
249
1
[]
[ "<s>", "bool", "ARMCallLowering", "::", "lowerFormalArguments", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "const", "Function", "&", "F", ",", "ArrayRef", "<", "ArrayRef", "<", "Register", ">>", "VRegs", ",", "FunctionLoweringInfo", "&", "FLI", ")", "const", "{", "auto", "&", "TLI", "=", "*", "getTLI", "<", "ARMTargetLowering", ">", "(", ")", ";", "auto", "Subtarget", "=", "TLI", ".", "getSubtarget", "(", ")", ";", "if", "(", "Subtarget", "->", "isThumb1Only", "(", ")", ")", "return", "false", ";", "if", "(", "F", ".", "arg_empty", "(", ")", ")", "return", "true", ";", "if", "(", "F", ".", "isVarArg", "(", ")", ")", "return", "false", ";", "auto", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "auto", "&", "MBB", "=", "MIRBuilder", ".", "getMBB", "(", ")", ";", "const", "auto", "&", "DL", "=", "MF", ".", "getDataLayout", "(", ")", ";", "for", "(", "auto", "&", "Arg", ":", "F", ".", "args", "(", ")", ")", "{", "if", "(", "!", "isSupportedType", "(", "DL", ",", "TLI", ",", "Arg", ".", "getType", "(", ")", ")", ")", "return", "false", ";", "if", "(", "Arg", ".", "hasPassPointeeByValueCopyAttr", "(", ")", ")", "return", "false", ";", "}", "CCAssignFn", "*", "AssignFn", "=", "TLI", ".", "CCAssignFnForCall", "(", "F", ".", "getCallingConv", "(", ")", ",", "F", ".", "isVarArg", "(", ")", ")", ";", "OutgoingValueAssigner", "ArgAssigner", "(", "AssignFn", ")", ";", "FormalArgHandler", "ArgHandler", "(", "MIRBuilder", ",", "MIRBuilder", ".", "getMF", "(", ")", ".", "getRegInfo", "(", ")", ")", ";", "SmallVector", "<", "ArgInfo", ",", "8", ">", "SplitArgInfos", ";", "unsigned", "Idx", "=", "0", ";", "for", "(", "auto", "&", "Arg", ":", "F", ".", "args", "(", ")", ")", "{", "ArgInfo", "OrigArgInfo", "(", "VRegs", "[", "Idx", "]", ",", "Arg", ".", "getType", "(", ")", ",", "Idx", ")", ";", "setArgFlags", "(", "OrigArgInfo", ",", "Idx", "+", "AttributeList", "::", "FirstArgIndex", ",", "DL", ",", "F", ")", ";", "splitToValueTypes", "(", "OrigArgInfo", ",", "SplitArgInfos", ",", "DL", ",", "F", ".", "getCallingConv", "(", ")", ")", ";", "Idx", "++", ";", "}", "if", "(", "!", "MBB", ".", "empty", "(", ")", ")", "MIRBuilder", ".", "setInstr", "(", "*", "MBB", ".", "begin", "(", ")", ")", ";", "if", "(", "!", "determineAndHandleAssignments", "(", "ArgHandler", ",", "ArgAssigner", ",", "SplitArgInfos", ",", "MIRBuilder", ",", "F", ".", "getCallingConv", "(", ")", ",", "F", ".", "isVarArg", "(", ")", ")", ")", "return", "false", ";", "MIRBuilder", ".", "setMBB", "(", "MBB", ")", ";", "return", "true", ";", "}", "</s>" ]
[ "This", "hook", "must", "be", "implemented", "to", "lower", "the", "incoming", "(", "formal", ")", "arguments", ",", "described", "by", "VRegs", ",", "for", "GlobalISel", "." ]
[ "ARM", "ARM", "ARM", "8", "0" ]
ARMCallLowering14
lowerFormalArguments
ARM
CPU
LLVM
11,920
338
1
[]
[ "<s>", "bool", "ARMAsmBackend", "::", "writeNopData", "(", "uint64_t", "Count", ",", "MCObjectWriter", "*", "OW", ")", "const", "{", "const", "uint16_t", "Thumb1_16bitNopEncoding", "=", "0x46c0", ";", "const", "uint16_t", "Thumb2_16bitNopEncoding", "=", "0xbf00", ";", "const", "uint32_t", "ARMv4_NopEncoding", "=", "0xe1a00000", ";", "const", "uint32_t", "ARMv6T2_NopEncoding", "=", "0xe320f000", ";", "if", "(", "isThumb", "(", ")", ")", "{", "const", "uint16_t", "nopEncoding", "=", "hasNOP", "(", ")", "?", "Thumb2_16bitNopEncoding", ":", "Thumb1_16bitNopEncoding", ";", "uint64_t", "NumNops", "=", "Count", "/", "2", ";", "for", "(", "uint64_t", "i", "=", "0", ";", "i", "!=", "NumNops", ";", "++", "i", ")", "OW", "->", "write16", "(", "nopEncoding", ")", ";", "if", "(", "Count", "&", "1", ")", "OW", "->", "write8", "(", "0", ")", ";", "return", "true", ";", "}", "const", "uint32_t", "nopEncoding", "=", "hasNOP", "(", ")", "?", "ARMv6T2_NopEncoding", ":", "ARMv4_NopEncoding", ";", "uint64_t", "NumNops", "=", "Count", "/", "4", ";", "for", "(", "uint64_t", "i", "=", "0", ";", "i", "!=", "NumNops", ";", "++", "i", ")", "OW", "->", "write32", "(", "nopEncoding", ")", ";", "switch", "(", "Count", "%", "4", ")", "{", "default", ":", "break", ";", "case", "1", ":", "OW", "->", "write8", "(", "0", ")", ";", "break", ";", "case", "2", ":", "OW", "->", "write16", "(", "0", ")", ";", "break", ";", "case", "3", ":", "OW", "->", "write16", "(", "0", ")", ";", "OW", "->", "write8", "(", "0xa0", ")", ";", "break", ";", "}", "return", "true", ";", "}", "</s>" ]
[ "Write", "an", "(", "optimal", ")", "nop", "sequence", "of", "Count", "bytes", "to", "the", "given", "output", "." ]
[ "ARM", "ARM", "0x46c0", "0xbf00", "ARM", "0xe1a00000", "ARM", "0xe320f000", "2", "0", "1", "0", "ARM", "ARM", "4", "0", "4", "1", "0", "2", "0", "3", "0", "0xa0" ]
ARMAsmBackend (2)1
writeNopData
ARM
CPU
LLVM
11,921
201
1
[]
[ "<s>", "static", "bool", "canonicalize_vector_int_perm", "(", "const", "struct", "expand_vec_perm_d", "*", "d", ",", "struct", "expand_vec_perm_d", "*", "nd", ")", "{", "int", "i", ";", "enum", "machine_mode", "mode", "=", "VOIDmode", ";", "switch", "(", "d", "->", "vmode", ")", "{", "case", "V16QImode", ":", "mode", "=", "V8HImode", ";", "break", ";", "case", "V32QImode", ":", "mode", "=", "V16HImode", ";", "break", ";", "case", "V64QImode", ":", "mode", "=", "V32HImode", ";", "break", ";", "case", "V8HImode", ":", "mode", "=", "V4SImode", ";", "break", ";", "case", "V16HImode", ":", "mode", "=", "V8SImode", ";", "break", ";", "case", "V32HImode", ":", "mode", "=", "V16SImode", ";", "break", ";", "case", "V4SImode", ":", "mode", "=", "V2DImode", ";", "break", ";", "case", "V8SImode", ":", "mode", "=", "V4DImode", ";", "break", ";", "case", "V16SImode", ":", "mode", "=", "V8DImode", ";", "break", ";", "default", ":", "return", "false", ";", "}", "for", "(", "i", "=", "0", ";", "i", "<", "d", "->", "nelt", ";", "i", "+=", "2", ")", "if", "(", "(", "d", "->", "perm", "[", "i", "]", "&", "1", ")", "||", "d", "->", "perm", "[", "i", "+", "1", "]", "!=", "d", "->", "perm", "[", "i", "]", "+", "1", ")", "return", "false", ";", "nd", "->", "vmode", "=", "mode", ";", "nd", "->", "nelt", "=", "d", "->", "nelt", "/", "2", ";", "for", "(", "i", "=", "0", ";", "i", "<", "nd", "->", "nelt", ";", "i", "++", ")", "nd", "->", "perm", "[", "i", "]", "=", "d", "->", "perm", "[", "2", "*", "i", "]", "/", "2", ";", "if", "(", "GET_MODE_INNER", "(", "mode", ")", "!=", "DImode", ")", "canonicalize_vector_int_perm", "(", "nd", ",", "nd", ")", ";", "if", "(", "nd", "!=", "d", ")", "{", "nd", "->", "one_operand_p", "=", "d", "->", "one_operand_p", ";", "nd", "->", "testing_p", "=", "d", "->", "testing_p", ";", "if", "(", "d", "->", "op0", "==", "d", "->", "op1", ")", "nd", "->", "op0", "=", "nd", "->", "op1", "=", "gen_lowpart", "(", "nd", "->", "vmode", ",", "d", "->", "op0", ")", ";", "else", "{", "nd", "->", "op0", "=", "gen_lowpart", "(", "nd", "->", "vmode", ",", "d", "->", "op0", ")", ";", "nd", "->", "op1", "=", "gen_lowpart", "(", "nd", "->", "vmode", ",", "d", "->", "op1", ")", ";", "}", "if", "(", "d", "->", "testing_p", ")", "nd", "->", "target", "=", "gen_raw_REG", "(", "nd", "->", "vmode", ",", "LAST_VIRTUAL_REGISTER", "+", "1", ")", ";", "else", "nd", "->", "target", "=", "gen_reg_rtx", "(", "nd", "->", "vmode", ")", ";", "}", "return", "true", ";", "}", "</s>" ]
[ "For", "V", "*", "[", "QHS", "]", "Imode", "permutations", ",", "check", "if", "the", "same", "permutation", "ca", "n't", "be", "performed", "in", "a", "2x", ",", "4x", "or", "8x", "wider", "inner", "mode", "." ]
[ "i386", "0", "2", "1", "1", "1", "2", "0", "2", "2", "1" ]
i3865
canonicalize_vector_int_perm
i386
CPU
GCC
11,922
357
1
[]
[ "<s>", "bool", "allocateScavengingFrameIndexesNearIncomingSP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "override", "{", "return", "false", ";", "}", "</s>" ]
[ "Control", "the", "placement", "of", "special", "register", "scavenging", "spill", "slots", "when", "allocating", "a", "stack", "frame", "." ]
[ "SystemZ" ]
SystemZFrameLowering10
allocateScavengingFrameIndexesNearIncomingSP
SystemZ
CPU
LLVM
11,923
15
1
[]
[ "<s>", "bool", "AMDGPUAsmBackend", "::", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "if", "(", "!", "STI", ".", "getFeatureBits", "(", ")", "[", "AMDGPU", "::", "FeatureOffset3fBug", "]", ")", "return", "false", ";", "if", "(", "AMDGPU", "::", "getSOPPWithRelaxation", "(", "Inst", ".", "getOpcode", "(", ")", ")", ">=", "0", ")", "return", "true", ";", "return", "false", ";", "}", "</s>" ]
[ "Check", "whether", "the", "given", "instruction", "may", "need", "relaxation", "." ]
[ "AMDGPU", "AMDGPU", "AMDGPU::FeatureOffset3fBug", "AMDGPU::getSOPPWithRelaxation", "0" ]
AMDGPUAsmBackend (2)1
mayNeedRelaxation
AMDGPU
GPU
LLVM
11,924
56
1
[]
[ "<s>", "bool", "MVETPAndVPTOptimisations", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "Fn", ")", "{", "const", "ARMSubtarget", "&", "STI", "=", "Fn", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "if", "(", "!", "STI", ".", "isThumb2", "(", ")", "||", "!", "STI", ".", "hasLOB", "(", ")", ")", "return", "false", ";", "TII", "=", "static_cast", "<", "const", "Thumb2InstrInfo", "*", ">", "(", "STI", ".", "getInstrInfo", "(", ")", ")", ";", "MRI", "=", "&", "Fn", ".", "getRegInfo", "(", ")", ";", "MachineLoopInfo", "*", "MLI", "=", "&", "getAnalysis", "<", "MachineLoopInfo", ">", "(", ")", ";", "MachineDominatorTree", "*", "DT", "=", "&", "getAnalysis", "<", "MachineDominatorTree", ">", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"********** ARM MVE VPT Optimisations **********\\n\"", "<<", "\"********** Function: \"", "<<", "Fn", ".", "getName", "(", ")", "<<", "'\\n'", ")", ";", "bool", "Modified", "=", "false", ";", "for", "(", "MachineLoop", "*", "ML", ":", "MLI", "->", "getBase", "(", ")", ".", "getLoopsInPreorder", "(", ")", ")", "{", "Modified", "|=", "LowerWhileLoopStart", "(", "ML", ")", ";", "Modified", "|=", "MergeLoopEnd", "(", "ML", ")", ";", "Modified", "|=", "ConvertTailPredLoop", "(", "ML", ",", "DT", ")", ";", "}", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "Fn", ")", "{", "Modified", "|=", "HintDoLoopStartReg", "(", "MBB", ")", ";", "Modified", "|=", "ReplaceConstByVPNOTs", "(", "MBB", ",", "DT", ")", ";", "Modified", "|=", "ReplaceVCMPsByVPNOTs", "(", "MBB", ")", ";", "Modified", "|=", "ReduceOldVCCRValueUses", "(", "MBB", ")", ";", "Modified", "|=", "ConvertVPSEL", "(", "MBB", ")", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"**************************************\\n\"", ")", ";", "return", "Modified", ";", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "ARM", "ARM", "ARM", "\"********** ARM MVE VPT Optimisations **********\\n\"", "\"********** Function: \"", "\"**************************************\\n\"" ]
MVETPAndVPTOptimisationsPass4
runOnMachineFunction
ARM
CPU
LLVM
11,925
217
1
[]
[ "<s>", "static", "void", "v850_trampoline_init", "(", "rtx", "m_tramp", ",", "tree", "fndecl", ",", "rtx", "chain_value", ")", "{", "rtx", "mem", ",", "fnaddr", "=", "XEXP", "(", "DECL_RTL", "(", "fndecl", ")", ",", "0", ")", ";", "emit_block_move", "(", "m_tramp", ",", "assemble_trampoline_template", "(", ")", ",", "GEN_INT", "(", "TRAMPOLINE_SIZE", ")", ",", "BLOCK_OP_NORMAL", ")", ";", "mem", "=", "adjust_address", "(", "m_tramp", ",", "SImode", ",", "16", ")", ";", "emit_move_insn", "(", "mem", ",", "chain_value", ")", ";", "mem", "=", "adjust_address", "(", "m_tramp", ",", "SImode", ",", "20", ")", ";", "emit_move_insn", "(", "mem", ",", "fnaddr", ")", ";", "}", "</s>" ]
[ "Worker", "function", "for", "TARGET_TRAMPOLINE_INIT", "." ]
[ "v850", "0", "16", "20" ]
v850
v850_trampoline_init
v850
MPU
GCC
11,926
82
1
[]
[ "<s>", "void", "X86FrameLowering", "::", "processFunctionBeforeFrameIndicesReplaced", "(", "MachineFunction", "&", "MF", ",", "RegScavenger", "*", "RS", ")", "const", "{", "if", "(", "STI", ".", "is32Bit", "(", ")", "&&", "MF", ".", "hasEHFunclets", "(", ")", ")", "restoreWinEHStackPointersInParent", "(", "MF", ")", ";", "}", "</s>" ]
[ "processFunctionBeforeFrameIndicesReplaced", "-", "This", "method", "is", "called", "immediately", "before", "MO_FrameIndex", "operands", "are", "eliminated", ",", "but", "after", "the", "frame", "is", "finalized", "." ]
[ "X86", "X86" ]
X86FrameLowering (2)3
processFunctionBeforeFrameIndicesReplaced
X86
CPU
LLVM
11,927
35
1
[]
[ "<s>", "unsigned", "MipsMCCodeEmitter", "::", "getBranchTargetOpValueLsl2MMR6", "(", "const", "MCInst", "&", "MI", ",", "unsigned", "OpNo", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "const", "MCOperand", "&", "MO", "=", "MI", ".", "getOperand", "(", "OpNo", ")", ";", "if", "(", "MO", ".", "isImm", "(", ")", ")", "return", "MO", ".", "getImm", "(", ")", ">>", "2", ";", "assert", "(", "MO", ".", "isExpr", "(", ")", "&&", "\"getBranchTargetOpValueLsl2MMR6 expects only expressions or immediates\"", ")", ";", "const", "MCExpr", "*", "FixupExpression", "=", "MCBinaryExpr", "::", "createAdd", "(", "MO", ".", "getExpr", "(", ")", ",", "MCConstantExpr", "::", "create", "(", "-", "4", ",", "Ctx", ")", ",", "Ctx", ")", ";", "Fixups", ".", "push_back", "(", "MCFixup", "::", "create", "(", "0", ",", "FixupExpression", ",", "MCFixupKind", "(", "Mips", "::", "fixup_Mips_PC16", ")", ")", ")", ";", "return", "0", ";", "}", "</s>" ]
[ "getBranchTargetOpValueLsl2MMR6", "-", "Return", "binary", "encoding", "of", "the", "branch", "target", "operand", "." ]
[ "Mips", "Mips", "2", "\"getBranchTargetOpValueLsl2MMR6 expects only expressions or immediates\"", "4", "0", "Mips::fixup_Mips_PC16", "0" ]
MipsMCCodeEmitter (2)2
getBranchTargetOpValueLsl2MMR6
Mips
CPU
LLVM
11,928
120
1
[]
[ "<s>", "bool", "MSP430DAGToDAGISel", "::", "SelectInlineAsmMemoryOperand", "(", "const", "SDValue", "&", "Op", ",", "unsigned", "ConstraintID", ",", "std", "::", "vector", "<", "SDValue", ">", "&", "OutOps", ")", "{", "SDValue", "Op0", ",", "Op1", ";", "switch", "(", "ConstraintID", ")", "{", "default", ":", "return", "true", ";", "case", "InlineAsm", "::", "Constraint_m", ":", "if", "(", "!", "SelectAddr", "(", "Op", ",", "Op0", ",", "Op1", ")", ")", "return", "true", ";", "break", ";", "}", "OutOps", ".", "push_back", "(", "Op0", ")", ";", "OutOps", ".", "push_back", "(", "Op1", ")", ";", "return", "false", ";", "}", "</s>" ]
[ "SelectInlineAsmMemoryOperand", "-", "Select", "the", "specified", "address", "as", "a", "target", "addressing", "mode", ",", "according", "to", "the", "specified", "constraint", "." ]
[ "MSP430", "MSP430" ]
MSP430ISelDAGToDAG11
SelectInlineAsmMemoryOperand
MSP430
MPU
LLVM
11,929
79
1
[]
[ "<s>", "bool", "AArch64TargetLowering", "::", "isTruncateFree", "(", "EVT", "VT1", ",", "EVT", "VT2", ")", "const", "{", "if", "(", "VT1", ".", "isVector", "(", ")", "||", "VT2", ".", "isVector", "(", ")", "||", "!", "VT1", ".", "isInteger", "(", ")", "||", "!", "VT2", ".", "isInteger", "(", ")", ")", "return", "false", ";", "unsigned", "NumBits1", "=", "VT1", ".", "getSizeInBits", "(", ")", ";", "unsigned", "NumBits2", "=", "VT2", ".", "getSizeInBits", "(", ")", ";", "return", "NumBits1", ">", "NumBits2", ";", "}", "</s>" ]
[ "Return", "true", "if", "it", "'s", "free", "to", "truncate", "a", "value", "of", "type", "Ty1", "to", "type", "Ty2", "." ]
[ "AArch64", "AArch64" ]
AArch64ISelLowering (2)
isTruncateFree
AArch64
CPU
LLVM
11,930
68
1
[]
[ "<s>", "BitVector", "RISCVRegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "RISCVFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "for", "(", "size_t", "Reg", "=", "0", ";", "Reg", "<", "getNumRegs", "(", ")", ";", "Reg", "++", ")", "{", "if", "(", "MF", ".", "getSubtarget", "<", "RISCVSubtarget", ">", "(", ")", ".", "isRegisterReservedByUser", "(", "Reg", ")", ")", "markSuperRegs", "(", "Reserved", ",", "Reg", ")", ";", "}", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "X0", ")", ";", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "X2", ")", ";", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "X3", ")", ";", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "X4", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "X8", ")", ";", "if", "(", "TFI", "->", "hasBP", "(", "MF", ")", ")", "markSuperRegs", "(", "Reserved", ",", "RISCVABI", "::", "getBPReg", "(", ")", ")", ";", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "VL", ")", ";", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "VTYPE", ")", ";", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "VXSAT", ")", ";", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "VXRM", ")", ";", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "FRM", ")", ";", "markSuperRegs", "(", "Reserved", ",", "RISCV", "::", "FFLAGS", ")", ";", "assert", "(", "checkAllSuperRegsMarked", "(", "Reserved", ")", ")", ";", "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", "." ]
[ "RISCV", "RISCV", "RISCV", "0", "RISCV", "RISCV::X0", "RISCV::X2", "RISCV::X3", "RISCV::X4", "RISCV::X8", "RISCVABI::getBPReg", "RISCV::VL", "RISCV::VTYPE", "RISCV::VXSAT", "RISCV::VXRM", "RISCV::FRM", "RISCV::FFLAGS" ]
RISCVRegisterInfo2
getReservedRegs
RISCV
CPU
LLVM
11,931
211
1
[]
[ "<s>", "static", "const", "char", "*", "aarch64_invalid_binary_op", "(", "int", "op", "ATTRIBUTE_UNUSED", ",", "const_tree", "type1", ",", "const_tree", "type2", ")", "{", "if", "(", "element_mode", "(", "type1", ")", "==", "BFmode", "||", "element_mode", "(", "type2", ")", "==", "BFmode", ")", "return", "N_", "(", "\"operation not permitted on type %<bfloat16_t%>\"", ")", ";", "if", "(", "VECTOR_TYPE_P", "(", "type1", ")", "&&", "VECTOR_TYPE_P", "(", "type2", ")", "&&", "!", "TYPE_INDIVISIBLE_P", "(", "type1", ")", "&&", "!", "TYPE_INDIVISIBLE_P", "(", "type2", ")", "&&", "(", "aarch64_sve", "::", "builtin_type_p", "(", "type1", ")", "!=", "aarch64_sve", "::", "builtin_type_p", "(", "type2", ")", ")", ")", "return", "N_", "(", "\"cannot combine GNU and SVE vectors in a binary operation\"", ")", ";", "return", "NULL", ";", "}", "</s>" ]
[ "Return", "the", "diagnostic", "message", "string", "if", "the", "binary", "operation", "OP", "is", "not", "permitted", "on", "TYPE1", "and", "TYPE2", ",", "NULL", "otherwise", "." ]
[ "aarch64", "\"operation not permitted on type %<bfloat16_t%>\"", "aarch64_sve::builtin_type_p", "aarch64_sve::builtin_type_p", "\"cannot combine GNU and SVE vectors in a binary operation\"" ]
aarch64
aarch64_invalid_binary_op
aarch64
CPU
GCC
11,932
89
1
[]
[ "<s>", "static", "bool", "s390_handle_option", "(", "size_t", "code", ",", "const", "char", "*", "arg", ",", "int", "value", "ATTRIBUTE_UNUSED", ")", "{", "switch", "(", "code", ")", "{", "case", "OPT_march_", ":", "return", "s390_handle_arch_option", "(", "arg", ",", "&", "s390_arch", ",", "&", "s390_arch_flags", ")", ";", "case", "OPT_mstack_guard_", ":", "if", "(", "sscanf", "(", "arg", ",", "HOST_WIDE_INT_PRINT_DEC", ",", "&", "s390_stack_guard", ")", "!=", "1", ")", "return", "false", ";", "if", "(", "exact_log2", "(", "s390_stack_guard", ")", "==", "-", "1", ")", "error", "(", "\"stack guard value must be an exact power of 2\"", ")", ";", "return", "true", ";", "case", "OPT_mstack_size_", ":", "if", "(", "sscanf", "(", "arg", ",", "HOST_WIDE_INT_PRINT_DEC", ",", "&", "s390_stack_size", ")", "!=", "1", ")", "return", "false", ";", "if", "(", "exact_log2", "(", "s390_stack_size", ")", "==", "-", "1", ")", "error", "(", "\"stack size must be an exact power of 2\"", ")", ";", "return", "true", ";", "case", "OPT_mtune_", ":", "return", "s390_handle_arch_option", "(", "arg", ",", "&", "s390_tune", ",", "&", "s390_tune_flags", ")", ";", "case", "OPT_mwarn_framesize_", ":", "return", "sscanf", "(", "arg", ",", "HOST_WIDE_INT_PRINT_DEC", ",", "&", "s390_warn_framesize", ")", "==", "1", ";", "default", ":", "return", "true", ";", "}", "}", "</s>" ]
[ "Implement", "TARGET_HANDLE_OPTION", "." ]
[ "s390", "1", "1", "\"stack guard value must be an exact power of 2\"", "1", "1", "\"stack size must be an exact power of 2\"", "1" ]
s3903
s390_handle_option
s390
MPU
GCC
11,933
151
1
[]
[ "<s>", "void", "rx_copy_reg_dead_or_unused_notes", "(", "rtx", "reg", ",", "const", "rtx_insn", "*", "src", ",", "rtx_insn", "*", "dst", ")", "{", "int", "regno", "=", "REGNO", "(", "SUBREG_P", "(", "reg", ")", "?", "SUBREG_REG", "(", "reg", ")", ":", "reg", ")", ";", "if", "(", "rtx", "note", "=", "find_regno_note", "(", "src", ",", "REG_DEAD", ",", "regno", ")", ")", "add_shallow_copy_of_reg_note", "(", "dst", ",", "note", ")", ";", "if", "(", "rtx", "note", "=", "find_regno_note", "(", "src", ",", "REG_UNUSED", ",", "regno", ")", ")", "add_shallow_copy_of_reg_note", "(", "dst", ",", "note", ")", ";", "}", "</s>" ]
[ "Copy", "dead", "and", "unused", "notes", "from", "SRC", "to", "DST", "for", "the", "specified", "REGNO", "." ]
[ "rx" ]
rx
rx_copy_reg_dead_or_unused_notes
rx
CPU
GCC
11,934
77
1
[]
[ "<s>", "bool", "HexagonEarlyIfConversion", "::", "isValid", "(", "const", "FlowPattern", "&", "FP", ")", "const", "{", "if", "(", "hasEHLabel", "(", "FP", ".", "SplitB", ")", ")", "return", "false", ";", "if", "(", "FP", ".", "TrueB", "&&", "!", "isValidCandidate", "(", "FP", ".", "TrueB", ")", ")", "return", "false", ";", "if", "(", "FP", ".", "FalseB", "&&", "!", "isValidCandidate", "(", "FP", ".", "FalseB", ")", ")", "return", "false", ";", "if", "(", "FP", ".", "JoinB", ")", "{", "const", "MachineBasicBlock", "&", "B", "=", "*", "FP", ".", "JoinB", ";", "for", "(", "auto", "&", "MI", ":", "B", ")", "{", "if", "(", "!", "MI", ".", "isPHI", "(", ")", ")", "break", ";", "if", "(", "usesUndefVReg", "(", "&", "MI", ")", ")", "return", "false", ";", "unsigned", "DefR", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "if", "(", "isPredicate", "(", "DefR", ")", ")", "return", "false", ";", "}", "}", "return", "true", ";", "}", "</s>" ]
[ "Returns", "true", "if", "this", "iterator", "is", "still", "pointing", "at", "a", "valid", "entry", "." ]
[ "Hexagon", "Hexagon", "0" ]
HexagonEarlyIfConv22
isValid
Hexagon
DSP
LLVM
11,935
136
1
[]
[ "<s>", "static", "void", "replace_swap_with_copy", "(", "swap_web_entry", "*", "insn_entry", ",", "unsigned", "i", ")", "{", "rtx_insn", "*", "insn", "=", "insn_entry", "[", "i", "]", ".", "insn", ";", "rtx", "body", "=", "PATTERN", "(", "insn", ")", ";", "rtx", "src_reg", "=", "XEXP", "(", "SET_SRC", "(", "body", ")", ",", "0", ")", ";", "rtx", "copy", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "SET_DEST", "(", "body", ")", ",", "src_reg", ")", ";", "rtx_insn", "*", "new_insn", "=", "emit_insn_before", "(", "copy", ",", "insn", ")", ";", "set_block_for_insn", "(", "new_insn", ",", "BLOCK_FOR_INSN", "(", "insn", ")", ")", ";", "df_insn_rescan", "(", "new_insn", ")", ";", "if", "(", "dump_file", ")", "{", "unsigned", "int", "new_uid", "=", "INSN_UID", "(", "new_insn", ")", ";", "fprintf", "(", "dump_file", ",", "\"Replacing swap %d with copy %d\\n\"", ",", "i", ",", "new_uid", ")", ";", "}", "df_insn_delete", "(", "insn", ")", ";", "remove_insn", "(", "insn", ")", ";", "insn", "->", "set_deleted", "(", ")", ";", "}", "</s>" ]
[ "Find", "the", "insn", "from", "the", "Ith", "table", "entry", ",", "which", "is", "known", "to", "be", "a", "register", "swap", "Y", "=", "SWAP", "(", "X", ")", ".", "Replace", "it", "with", "a", "copy", "Y", "=", "X", "." ]
[ "rs6000", "0", "\"Replacing swap %d with copy %d\\n\"" ]
rs60004
replace_swap_with_copy
rs6000
CPU
GCC
11,936
128
1
[]
[ "<s>", "const", "char", "*", "output_jump_label_table", "(", "void", ")", "{", "int", "i", ";", "if", "(", "pool_size", ")", "{", "fprintf", "(", "asm_out_file", ",", "\"\\t.align 2\\n\"", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "pool_size", ";", "i", "++", ")", "{", "pool_node", "*", "p", "=", "&", "pool_vector", "[", "i", "]", ";", "(", "*", "targetm", ".", "asm_out", ".", "internal_label", ")", "(", "asm_out_file", ",", "\"L\"", ",", "CODE_LABEL_NUMBER", "(", "p", "->", "label", ")", ")", ";", "output_asm_insn", "(", "\".long\t%O0\"", ",", "&", "p", "->", "value", ")", ";", "}", "pool_size", "=", "0", ";", "}", "return", "\"\"", ";", "}", "</s>" ]
[ "Dump", "out", "any", "constants", "accumulated", "in", "the", "final", "pass", ".", "These", "will", "only", "be", "labels", "." ]
[ "sh", "\"\\t.align 2\\n\"", "0", "\"L\"", "\".long\t%O0\"", "0", "\"\"" ]
sh3
output_jump_label_table
sh
CPU
GCC
11,937
88
1
[]
[ "<s>", "static", "rtx", "aarch64_expand_builtin", "(", "tree", "exp", ",", "rtx", "target", ",", "rtx", ",", "machine_mode", ",", "int", "ignore", ")", "{", "tree", "fndecl", "=", "TREE_OPERAND", "(", "CALL_EXPR_FN", "(", "exp", ")", ",", "0", ")", ";", "unsigned", "int", "code", "=", "DECL_MD_FUNCTION_CODE", "(", "fndecl", ")", ";", "unsigned", "int", "subcode", "=", "code", ">>", "AARCH64_BUILTIN_SHIFT", ";", "switch", "(", "code", "&", "AARCH64_BUILTIN_CLASS", ")", "{", "case", "AARCH64_BUILTIN_GENERAL", ":", "return", "aarch64_general_expand_builtin", "(", "subcode", ",", "exp", ",", "target", ",", "ignore", ")", ";", "case", "AARCH64_BUILTIN_SVE", ":", "return", "aarch64_sve", "::", "expand_builtin", "(", "subcode", ",", "exp", ",", "target", ")", ";", "}", "gcc_unreachable", "(", ")", ";", "}", "</s>" ]
[ "Implement", "TARGET_EXPAND_BUILTIN", "." ]
[ "aarch64", "0", "aarch64_sve::expand_builtin" ]
aarch64
aarch64_expand_builtin
aarch64
CPU
GCC
11,938
91
1
[]
[ "<s>", "static", "rtx", "s390_delegitimize_address", "(", "rtx", "orig_x", ")", "{", "rtx", "x", "=", "orig_x", ",", "y", ";", "if", "(", "GET_CODE", "(", "x", ")", "!=", "MEM", ")", "return", "orig_x", ";", "x", "=", "XEXP", "(", "x", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "PLUS", "&&", "GET_CODE", "(", "XEXP", "(", "x", ",", "1", ")", ")", "==", "CONST", "&&", "GET_CODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", "==", "REG", "&&", "REGNO", "(", "XEXP", "(", "x", ",", "0", ")", ")", "==", "PIC_OFFSET_TABLE_REGNUM", ")", "{", "y", "=", "XEXP", "(", "XEXP", "(", "x", ",", "1", ")", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "y", ")", "==", "UNSPEC", "&&", "XINT", "(", "y", ",", "1", ")", "==", "UNSPEC_GOT", ")", "return", "XVECEXP", "(", "y", ",", "0", ",", "0", ")", ";", "return", "orig_x", ";", "}", "if", "(", "GET_CODE", "(", "x", ")", "==", "CONST", ")", "{", "y", "=", "XEXP", "(", "x", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "y", ")", "==", "UNSPEC", "&&", "XINT", "(", "y", ",", "1", ")", "==", "UNSPEC_GOTENT", ")", "return", "XVECEXP", "(", "y", ",", "0", ",", "0", ")", ";", "return", "orig_x", ";", "}", "return", "orig_x", ";", "}", "</s>" ]
[ "In", "the", "name", "of", "slightly", "smaller", "debug", "output", ",", "and", "to", "cater", "to", "general", "assembler", "lossage", ",", "recognize", "various", "UNSPEC", "sequences", "and", "turn", "them", "back", "into", "a", "direct", "symbol", "reference", "." ]
[ "s390", "0", "1", "0", "0", "1", "0", "1", "0", "0", "0", "1", "0", "0" ]
s3903
s390_delegitimize_address
s390
MPU
GCC
11,939
183
1
[]
[ "<s>", "bool", "MipsAsmParser", "::", "ParseDirective", "(", "AsmToken", "DirectiveID", ")", "{", "StringRef", "IDVal", "=", "DirectiveID", ".", "getString", "(", ")", ";", "if", "(", "IDVal", "==", "\".ent\"", ")", "{", "Parser", ".", "Lex", "(", ")", ";", "return", "false", ";", "}", "if", "(", "IDVal", "==", "\".end\"", ")", "{", "Parser", ".", "Lex", "(", ")", ";", "return", "false", ";", "}", "if", "(", "IDVal", "==", "\".frame\"", ")", "{", "Parser", ".", "eatToEndOfStatement", "(", ")", ";", "return", "false", ";", "}", "if", "(", "IDVal", "==", "\".set\"", ")", "{", "return", "parseDirectiveSet", "(", ")", ";", "}", "if", "(", "IDVal", "==", "\".fmask\"", ")", "{", "Parser", ".", "eatToEndOfStatement", "(", ")", ";", "return", "false", ";", "}", "if", "(", "IDVal", "==", "\".mask\"", ")", "{", "Parser", ".", "eatToEndOfStatement", "(", ")", ";", "return", "false", ";", "}", "if", "(", "IDVal", "==", "\".gpword\"", ")", "{", "parseDirectiveGpWord", "(", ")", ";", "return", "false", ";", "}", "if", "(", "IDVal", "==", "\".word\"", ")", "{", "parseDirectiveWord", "(", "4", ",", "DirectiveID", ".", "getLoc", "(", ")", ")", ";", "return", "false", ";", "}", "return", "true", ";", "}", "</s>" ]
[ "ParseDirective", "-", "Parse", "a", "target", "specific", "assembler", "directive", "This", "method", "is", "deprecated", ",", "use", "'parseDirective", "'", "instead", "." ]
[ "Mips", "Mips", "\".ent\"", "\".end\"", "\".frame\"", "\".set\"", "\".fmask\"", "\".mask\"", "\".gpword\"", "\".word\"", "4" ]
MipsAsmParser81
ParseDirective
Mips
CPU
LLVM
11,940
157
1
[]
[ "<s>", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "LLVMContext", "&", "Cxt", "=", "MF", ".", "getFunction", "(", ")", ".", "getContext", "(", ")", ";", "ForCodeSize", "=", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "Attribute", "::", "OptimizeForSize", ")", "||", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "Attribute", "::", "MinSize", ")", ";", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "JVMSubtarget", ">", "(", ")", ";", "JVMFunctionInfo", "*", "MFI", "=", "MF", ".", "getInfo", "<", "JVMFunctionInfo", ">", "(", ")", ";", "for", "(", "auto", "&", "STy", ":", "Cxt", ".", "getNamedStructTypes", "(", ")", ")", "MFI", "->", "addToTypeNameMap", "(", "STy", ".", "getValue", "(", ")", ")", ";", "const", "Function", "&", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "if", "(", "F", ".", "hasFnAttribute", "(", "Attribute", "::", "JVMInstMethod", ")", ")", "{", "const", "Module", "*", "Mod", "=", "F", ".", "getParent", "(", ")", ";", "StringRef", "ModName", "=", "Mod", "->", "getName", "(", ")", ";", "const", "GlobalVariable", "*", "GCStructObj", "=", "Mod", "->", "getNamedGlobal", "(", "\"ConstantInitStruct\"", ")", ";", "assert", "(", "GCStructObj", "&&", "\"Global constants structure not present\"", ")", ";", "std", "::", "string", "ClassName", "=", "ModName", ".", "substr", "(", "0", ",", "ModName", ".", "find", "(", "\".ll\"", ")", ")", ";", "MFI", "->", "addToTypeNameMap", "(", "GetRootType", "(", "GCStructObj", "->", "getType", "(", ")", ")", ",", "ClassName", ")", ";", "}", "return", "SelectionDAGISel", "::", "runOnMachineFunction", "(", "MF", ")", ";", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "JVM", "JVM", "JVM", "JVM", "JVM", "\"ConstantInitStruct\"", "\"Global constants structure not present\"", "0", "\".ll\"" ]
JVMISelDAGToDAG
runOnMachineFunction
JVM
Virtual ISA
LLVM
11,941
206
1
[]
[ "<s>", "static", "bool", "pa_pass_by_reference", "(", "cumulative_args_t", ",", "const", "function_arg_info", "&", "arg", ")", "{", "HOST_WIDE_INT", "size", "=", "arg", ".", "type_size_in_bytes", "(", ")", ";", "if", "(", "TARGET_64BIT", ")", "return", "size", "<=", "0", ";", "else", "return", "size", "<=", "0", "||", "size", ">", "8", ";", "}", "</s>" ]
[ "In", "the", "32-bit", "runtime", ",", "arguments", "larger", "than", "eight", "bytes", "are", "passed", "by", "invisible", "reference", ".", "As", "a", "GCC", "extension", ",", "we", "also", "pass", "anything", "with", "a", "zero", "or", "variable", "size", "by", "reference", ".", "The", "64-bit", "runtime", "does", "not", "describe", "passing", "any", "types", "by", "invisible", "reference", ".", "The", "internals", "of", "GCC", "ca", "n't", "currently", "handle", "passing", "empty", "structures", ",", "and", "zero", "or", "variable", "length", "arrays", "when", "they", "are", "not", "passed", "entirely", "on", "the", "stack", "or", "by", "reference", ".", "Thus", ",", "as", "a", "GCC", "extension", ",", "we", "pass", "these", "types", "by", "reference", ".", "The", "HP", "compiler", "does", "n't", "support", "these", "types", ",", "so", "hopefully", "there", "should", "n't", "be", "any", "compatibility", "issues", ".", "This", "may", "have", "to", "be", "revisited", "when", "HP", "releases", "a", "C99", "compiler", "or", "updates", "the", "ABI", "." ]
[ "pa", "0", "0", "8" ]
pa
pa_pass_by_reference
pa
CPU
GCC
11,942
41
1
[]
[ "<s>", "MachineInstr", "*", "SIInstrInfo", "::", "convertToThreeAddress", "(", "MachineFunction", "::", "iterator", "&", "MBB", ",", "MachineInstr", "&", "MI", ",", "LiveVariables", "*", "LV", ")", "const", "{", "bool", "IsF16", "=", "false", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "nullptr", ";", "case", "AMDGPU", "::", "V_MAC_F16_e64", ":", "IsF16", "=", "true", ";", "case", "AMDGPU", "::", "V_MAC_F32_e64", ":", "break", ";", "case", "AMDGPU", "::", "V_MAC_F16_e32", ":", "IsF16", "=", "true", ";", "case", "AMDGPU", "::", "V_MAC_F32_e32", ":", "{", "int", "Src0Idx", "=", "AMDGPU", "::", "getNamedOperandIdx", "(", "MI", ".", "getOpcode", "(", ")", ",", "AMDGPU", "::", "OpName", "::", "src0", ")", ";", "const", "MachineOperand", "*", "Src0", "=", "&", "MI", ".", "getOperand", "(", "Src0Idx", ")", ";", "if", "(", "Src0", "->", "isImm", "(", ")", "&&", "!", "isInlineConstant", "(", "MI", ",", "Src0Idx", ",", "*", "Src0", ")", ")", "return", "nullptr", ";", "break", ";", "}", "}", "const", "MachineOperand", "*", "Dst", "=", "getNamedOperand", "(", "MI", ",", "AMDGPU", "::", "OpName", "::", "vdst", ")", ";", "const", "MachineOperand", "*", "Src0", "=", "getNamedOperand", "(", "MI", ",", "AMDGPU", "::", "OpName", "::", "src0", ")", ";", "const", "MachineOperand", "*", "Src1", "=", "getNamedOperand", "(", "MI", ",", "AMDGPU", "::", "OpName", "::", "src1", ")", ";", "const", "MachineOperand", "*", "Src2", "=", "getNamedOperand", "(", "MI", ",", "AMDGPU", "::", "OpName", "::", "src2", ")", ";", "return", "BuildMI", "(", "*", "MBB", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "get", "(", "IsF16", "?", "AMDGPU", "::", "V_MAD_F16", ":", "AMDGPU", "::", "V_MAD_F32", ")", ")", ".", "add", "(", "*", "Dst", ")", ".", "addImm", "(", "0", ")", ".", "add", "(", "*", "Src0", ")", ".", "addImm", "(", "0", ")", ".", "add", "(", "*", "Src1", ")", ".", "addImm", "(", "0", ")", ".", "add", "(", "*", "Src2", ")", ".", "addImm", "(", "0", ")", ".", "addImm", "(", "0", ")", ";", "}", "</s>" ]
[ "convertToThreeAddress", "-", "This", "method", "must", "be", "implemented", "by", "targets", "that", "set", "the", "M_CONVERTIBLE_TO_3_ADDR", "flag", "." ]
[ "AMDGPU", "SI", "AMDGPU::V_MAC_F16_e64", "AMDGPU::V_MAC_F32_e64", "AMDGPU::V_MAC_F16_e32", "AMDGPU::V_MAC_F32_e32", "AMDGPU::getNamedOperandIdx", "AMDGPU::OpName", "AMDGPU::OpName", "AMDGPU::OpName", "AMDGPU::OpName", "AMDGPU::OpName", "AMDGPU::V_MAD_F16", "AMDGPU::V_MAD_F32", "0", "0", "0", "0", "0" ]
SIInstrInfo145
convertToThreeAddress
AMDGPU
GPU
LLVM
11,943
273
1
[]
[ "<s>", "SDValue", "MSP430TargetLowering", "::", "LowerCall", "(", "SDValue", "Chain", ",", "SDValue", "Callee", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "bool", "&", "isTailCall", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "DebugLoc", "dl", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "{", "isTailCall", "=", "false", ";", "switch", "(", "CallConv", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unsupported calling convention\"", ")", ";", "case", "CallingConv", "::", "Fast", ":", "case", "CallingConv", "::", "C", ":", "return", "LowerCCCCallTo", "(", "Chain", ",", "Callee", ",", "CallConv", ",", "isVarArg", ",", "isTailCall", ",", "Outs", ",", "Ins", ",", "dl", ",", "DAG", ",", "InVals", ")", ";", "case", "CallingConv", "::", "MSP430_INTR", ":", "llvm_report_error", "(", "\"ISRs cannot be called directly\"", ")", ";", "return", "SDValue", "(", ")", ";", "}", "}", "</s>" ]
[ "This", "hook", "must", "be", "implemented", "to", "lower", "calls", "into", "the", "specified", "DAG", "." ]
[ "MSP430", "MSP430", "ISD::OutputArg", "ISD::InputArg", "\"Unsupported calling convention\"", "MSP430", "\"ISRs cannot be called directly\"" ]
MSP430ISelLowering39
LowerCall
MSP430
MPU
LLVM
11,944
125
1
[]
[ "<s>", "bool", "SIWholeQuadMode", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "Instructions", ".", "clear", "(", ")", ";", "Blocks", ".", "clear", "(", ")", ";", "LiveMaskQueries", ".", "clear", "(", ")", ";", "LowerToCopyInstrs", ".", "clear", "(", ")", ";", "LowerToMovInstrs", ".", "clear", "(", ")", ";", "CallingConv", "=", "MF", ".", "getFunction", "(", ")", ".", "getCallingConv", "(", ")", ";", "ST", "=", "&", "MF", ".", "getSubtarget", "<", "GCNSubtarget", ">", "(", ")", ";", "TII", "=", "ST", "->", "getInstrInfo", "(", ")", ";", "TRI", "=", "&", "TII", "->", "getRegisterInfo", "(", ")", ";", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "LIS", "=", "&", "getAnalysis", "<", "LiveIntervals", ">", "(", ")", ";", "if", "(", "ST", "->", "isWave32", "(", ")", ")", "{", "AndOpc", "=", "AMDGPU", "::", "S_AND_B32", ";", "XorTermrOpc", "=", "AMDGPU", "::", "S_XOR_B32_term", ";", "OrSaveExecOpc", "=", "AMDGPU", "::", "S_OR_SAVEEXEC_B32", ";", "Exec", "=", "AMDGPU", "::", "EXEC_LO", ";", "}", "else", "{", "AndOpc", "=", "AMDGPU", "::", "S_AND_B64", ";", "XorTermrOpc", "=", "AMDGPU", "::", "S_XOR_B64_term", ";", "OrSaveExecOpc", "=", "AMDGPU", "::", "S_OR_SAVEEXEC_B64", ";", "Exec", "=", "AMDGPU", "::", "EXEC", ";", "}", "char", "GlobalFlags", "=", "analyzeFunction", "(", "MF", ")", ";", "unsigned", "LiveMaskReg", "=", "0", ";", "if", "(", "!", "(", "GlobalFlags", "&", "StateWQM", ")", ")", "{", "lowerLiveMaskQueries", "(", "Exec", ")", ";", "if", "(", "!", "(", "GlobalFlags", "&", "StateWWM", ")", "&&", "LowerToCopyInstrs", ".", "empty", "(", ")", "&&", "LowerToMovInstrs", ".", "empty", "(", ")", ")", "return", "!", "LiveMaskQueries", ".", "empty", "(", ")", ";", "}", "else", "{", "MachineBasicBlock", "&", "Entry", "=", "MF", ".", "front", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "EntryMI", "=", "Entry", ".", "getFirstNonPHI", "(", ")", ";", "if", "(", "GlobalFlags", "&", "StateExact", "||", "!", "LiveMaskQueries", ".", "empty", "(", ")", ")", "{", "LiveMaskReg", "=", "MRI", "->", "createVirtualRegister", "(", "TRI", "->", "getBoolRC", "(", ")", ")", ";", "MachineInstr", "*", "MI", "=", "BuildMI", "(", "Entry", ",", "EntryMI", ",", "DebugLoc", "(", ")", ",", "TII", "->", "get", "(", "AMDGPU", "::", "COPY", ")", ",", "LiveMaskReg", ")", ".", "addReg", "(", "Exec", ")", ";", "LIS", "->", "InsertMachineInstrInMaps", "(", "*", "MI", ")", ";", "}", "lowerLiveMaskQueries", "(", "LiveMaskReg", ")", ";", "if", "(", "GlobalFlags", "==", "StateWQM", ")", "{", "auto", "MI", "=", "BuildMI", "(", "Entry", ",", "EntryMI", ",", "DebugLoc", "(", ")", ",", "TII", "->", "get", "(", "ST", "->", "isWave32", "(", ")", "?", "AMDGPU", "::", "S_WQM_B32", ":", "AMDGPU", "::", "S_WQM_B64", ")", ",", "Exec", ")", ".", "addReg", "(", "Exec", ")", ";", "LIS", "->", "InsertMachineInstrInMaps", "(", "*", "MI", ")", ";", "lowerCopyInstrs", "(", ")", ";", "return", "true", ";", "}", "}", "LLVM_DEBUG", "(", "printInfo", "(", ")", ")", ";", "lowerCopyInstrs", "(", ")", ";", "for", "(", "auto", "BII", ":", "Blocks", ")", "processBlock", "(", "*", "BII", ".", "first", ",", "LiveMaskReg", ",", "BII", ".", "first", "==", "&", "*", "MF", ".", "begin", "(", ")", ")", ";", "if", "(", "LiveMaskReg", ")", "LIS", "->", "createAndComputeVirtRegInterval", "(", "LiveMaskReg", ")", ";", "LIS", "->", "removeRegUnit", "(", "*", "MCRegUnitIterator", "(", "MCRegister", "::", "from", "(", "AMDGPU", "::", "SCC", ")", ",", "TRI", ")", ")", ";", "return", "true", ";", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "AMDGPU", "SI", "AMDGPU::S_AND_B32", "AMDGPU::S_XOR_B32_term", "AMDGPU::S_OR_SAVEEXEC_B32", "AMDGPU::EXEC_LO", "AMDGPU::S_AND_B64", "AMDGPU::S_XOR_B64_term", "AMDGPU::S_OR_SAVEEXEC_B64", "AMDGPU::EXEC", "0", "AMDGPU::COPY", "AMDGPU::S_WQM_B32", "AMDGPU::S_WQM_B64", "AMDGPU::SCC" ]
SIWholeQuadMode19
runOnMachineFunction
AMDGPU
GPU
LLVM
11,945
453
1
[]
[ "<s>", "bool", "sh_is_logical_t_store_expr", "(", "rtx", "op", ",", "rtx_insn", "*", "insn", ")", "{", "if", "(", "!", "logical_operator", "(", "op", ",", "SImode", ")", ")", "return", "false", ";", "rtx", "ops", "[", "2", "]", "=", "{", "XEXP", "(", "op", ",", "0", ")", ",", "XEXP", "(", "op", ",", "1", ")", "}", ";", "int", "op_is_t_count", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "2", ";", "++", "i", ")", "{", "if", "(", "t_reg_operand", "(", "ops", "[", "i", "]", ",", "VOIDmode", ")", "||", "negt_reg_operand", "(", "ops", "[", "i", "]", ",", "VOIDmode", ")", ")", "op_is_t_count", "++", ";", "else", "{", "set_of_reg", "op_set", "=", "sh_find_set_of_reg", "(", "ops", "[", "i", "]", ",", "insn", ",", "prev_nonnote_insn_bb", ")", ";", "if", "(", "op_set", ".", "set_src", "==", "NULL_RTX", ")", "continue", ";", "if", "(", "t_reg_operand", "(", "op_set", ".", "set_src", ",", "VOIDmode", ")", "||", "negt_reg_operand", "(", "op_set", ".", "set_src", ",", "VOIDmode", ")", "||", "sh_is_logical_t_store_expr", "(", "op_set", ".", "set_src", ",", "op_set", ".", "insn", ")", ")", "op_is_t_count", "++", ";", "}", "}", "return", "op_is_t_count", "==", "2", ";", "}", "</s>" ]
[ "Given", "an", "op", "rtx", "and", "an", "insn", ",", "try", "to", "find", "out", "whether", "the", "result", "of", "the", "specified", "op", "consists", "only", "of", "logical", "operations", "on", "T", "bit", "stores", "." ]
[ "sh", "2", "0", "1", "0", "0", "2", "2" ]
sh4
sh_is_logical_t_store_expr
sh
CPU
GCC
11,946
160
1
[]
[ "<s>", "AArch64TargetMachine", "::", "AArch64TargetMachine", "(", "const", "Target", "&", "T", ",", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Optional", "<", "Reloc", "::", "Model", ">", "RM", ",", "Optional", "<", "CodeModel", "::", "Model", ">", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ",", "bool", "JIT", ",", "bool", "LittleEndian", ")", ":", "LLVMTargetMachine", "(", "T", ",", "computeDataLayout", "(", "TT", ",", "Options", ".", "MCOptions", ",", "LittleEndian", ")", ",", "TT", ",", "computeDefaultCPU", "(", "TT", ",", "CPU", ")", ",", "FS", ",", "Options", ",", "getEffectiveRelocModel", "(", "TT", ",", "RM", ")", ",", "getEffectiveAArch64CodeModel", "(", "TT", ",", "CM", ",", "JIT", ")", ",", "OL", ")", ",", "TLOF", "(", "createTLOF", "(", "getTargetTriple", "(", ")", ")", ")", ",", "isLittle", "(", "LittleEndian", ")", "{", "initAsmInfo", "(", ")", ";", "if", "(", "TT", ".", "isOSBinFormatMachO", "(", ")", ")", "{", "this", "->", "Options", ".", "TrapUnreachable", "=", "true", ";", "this", "->", "Options", ".", "NoTrapAfterNoreturn", "=", "true", ";", "}", "if", "(", "getMCAsmInfo", "(", ")", "->", "usesWindowsCFI", "(", ")", ")", "{", "this", "->", "Options", ".", "TrapUnreachable", "=", "true", ";", "}", "if", "(", "this", "->", "Options", ".", "TLSSize", "==", "0", ")", "this", "->", "Options", ".", "TLSSize", "=", "24", ";", "if", "(", "(", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Small", "||", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Kernel", ")", "&&", "this", "->", "Options", ".", "TLSSize", ">", "32", ")", "this", "->", "Options", ".", "TLSSize", "=", "32", ";", "else", "if", "(", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Tiny", "&&", "this", "->", "Options", ".", "TLSSize", ">", "24", ")", "this", "->", "Options", ".", "TLSSize", "=", "24", ";", "if", "(", "getOptLevel", "(", ")", "<=", "EnableGlobalISelAtO", "&&", "TT", ".", "getArch", "(", ")", "!=", "Triple", "::", "aarch64_32", "&&", "TT", ".", "getEnvironment", "(", ")", "!=", "Triple", "::", "GNUILP32", "&&", "!", "(", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Large", "&&", "TT", ".", "isOSBinFormatMachO", "(", ")", ")", ")", "{", "setGlobalISel", "(", "true", ")", ";", "setGlobalISelAbort", "(", "GlobalISelAbortMode", "::", "Disable", ")", ";", "}", "setMachineOutliner", "(", "true", ")", ";", "setSupportsDefaultOutlining", "(", "true", ")", ";", "setSupportsDebugEntryValues", "(", "true", ")", ";", "}", "</s>" ]
[ "Create", "an", "AArch64", "architecture", "model", "." ]
[ "AArch64", "AArch64", "AArch64", "AArch64", "0", "24", "32", "32", "24", "24" ]
AArch64TargetMachine1
AArch64TargetMachine
AArch64
CPU
LLVM
11,947
321
1
[]
[ "<s>", "enum", "reg_class", "avr_regno_reg_class", "(", "int", "r", ")", "{", "if", "(", "r", "<=", "33", ")", "return", "reg_class_tab", "[", "r", "]", ";", "return", "ALL_REGS", ";", "}", "</s>" ]
[ "Return", "register", "class", "for", "register", "R" ]
[ "avr", "33" ]
avr3
avr_regno_reg_class
avr
MPU
GCC
11,948
24
1
[]
[ "<s>", "void", "function_expander", "::", "add_vundef_operand", "(", "machine_mode", "mode", ")", "{", "add_input_operand", "(", "mode", ",", "RVV_VUNDEF", "(", "mode", ")", ")", ";", "}", "</s>" ]
[ "Since", "we", "may", "normalize", "vop/vop_tu/vop_m/vop_tumu", "..", "into", "a", "single", "patter", ".", "We", "add", "a", "undef", "for", "the", "intrinsics", "that", "do", "n't", "need", "a", "real", "merge", "." ]
[ "riscv" ]
riscv-vector-builtins
add_vundef_operand
riscv
CPU
GCC
11,949
20
1
[]
[ "<s>", "static", "rtx", "function_value_32", "(", "machine_mode", "orig_mode", ",", "machine_mode", "mode", ",", "const_tree", "fntype", ",", "const_tree", "fn", ")", "{", "unsigned", "int", "regno", ";", "if", "(", "VECTOR_MODE_P", "(", "mode", ")", "&&", "GET_MODE_SIZE", "(", "mode", ")", "==", "8", ")", "regno", "=", "FIRST_MMX_REG", ";", "else", "if", "(", "mode", "==", "TImode", "||", "(", "VECTOR_MODE_P", "(", "mode", ")", "&&", "GET_MODE_SIZE", "(", "mode", ")", "==", "16", ")", ")", "regno", "=", "FIRST_SSE_REG", ";", "else", "if", "(", "VECTOR_MODE_P", "(", "mode", ")", "&&", "GET_MODE_SIZE", "(", "mode", ")", "==", "32", ")", "regno", "=", "FIRST_SSE_REG", ";", "else", "if", "(", "VECTOR_MODE_P", "(", "mode", ")", "&&", "GET_MODE_SIZE", "(", "mode", ")", "==", "64", ")", "regno", "=", "FIRST_SSE_REG", ";", "else", "if", "(", "X87_FLOAT_MODE_P", "(", "mode", ")", "&&", "TARGET_FLOAT_RETURNS_IN_80387", ")", "regno", "=", "FIRST_FLOAT_REG", ";", "else", "regno", "=", "AX_REG", ";", "if", "(", "mode", "==", "HFmode", "||", "mode", "==", "BFmode", ")", "regno", "=", "FIRST_SSE_REG", ";", "if", "(", "mode", "==", "HCmode", ")", "{", "rtx", "ret", "=", "gen_rtx_PARALLEL", "(", "mode", ",", "rtvec_alloc", "(", "1", ")", ")", ";", "XVECEXP", "(", "ret", ",", "0", ",", "0", ")", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "SImode", ",", "FIRST_SSE_REG", ")", ",", "GEN_INT", "(", "0", ")", ")", ";", "return", "ret", ";", "}", "if", "(", "(", "fn", "||", "fntype", ")", "&&", "(", "mode", "==", "SFmode", "||", "mode", "==", "DFmode", ")", ")", "{", "int", "sse_level", "=", "ix86_function_sseregparm", "(", "fntype", ",", "fn", ",", "false", ")", ";", "if", "(", "sse_level", "==", "-", "1", ")", "{", "error", "(", "\"calling %qD with SSE calling convention without \"", "\"SSE/SSE2 enabled\"", ",", "fn", ")", ";", "sorry", "(", "\"this is a GCC bug that can be worked around by adding \"", "\"attribute used to function called\"", ")", ";", "}", "else", "if", "(", "(", "sse_level", ">=", "1", "&&", "mode", "==", "SFmode", ")", "||", "(", "sse_level", "==", "2", "&&", "mode", "==", "DFmode", ")", ")", "regno", "=", "FIRST_SSE_REG", ";", "}", "gcc_assert", "(", "mode", "!=", "OImode", ")", ";", "return", "gen_rtx_REG", "(", "orig_mode", ",", "regno", ")", ";", "}", "</s>" ]
[ "Define", "how", "to", "find", "the", "value", "returned", "by", "a", "function", ".", "VALTYPE", "is", "the", "data", "type", "of", "the", "value", "(", "as", "a", "tree", ")", ".", "If", "the", "precise", "function", "being", "called", "is", "known", ",", "FUNC", "is", "its", "FUNCTION_DECL", ";", "otherwise", ",", "FUNC", "is", "0", "." ]
[ "i386", "8", "16", "32", "64", "1", "0", "0", "0", "1", "\"calling %qD with SSE calling convention without \"", "\"SSE/SSE2 enabled\"", "\"this is a GCC bug that can be worked around by adding \"", "\"attribute used to function called\"", "1", "2" ]
i3861
function_value_32
i386
CPU
GCC
11,950
283
1
[]
[ "<s>", "const", "char", "*", "ashrqi3_out", "(", "rtx_insn", "*", "insn", ",", "rtx", "operands", "[", "]", ",", "int", "*", "len", ")", "{", "if", "(", "CONST_INT_P", "(", "operands", "[", "2", "]", ")", ")", "{", "int", "k", ";", "if", "(", "!", "len", ")", "len", "=", "&", "k", ";", "switch", "(", "INTVAL", "(", "operands", "[", "2", "]", ")", ")", "{", "case", "1", ":", "*", "len", "=", "1", ";", "return", "\"asr %0\"", ";", "case", "2", ":", "*", "len", "=", "2", ";", "return", "(", "\"asr %0\"", "CR_TAB", "\"asr %0\"", ")", ";", "case", "3", ":", "*", "len", "=", "3", ";", "return", "(", "\"asr %0\"", "CR_TAB", "\"asr %0\"", "CR_TAB", "\"asr %0\"", ")", ";", "case", "4", ":", "*", "len", "=", "4", ";", "return", "(", "\"asr %0\"", "CR_TAB", "\"asr %0\"", "CR_TAB", "\"asr %0\"", "CR_TAB", "\"asr %0\"", ")", ";", "case", "5", ":", "*", "len", "=", "5", ";", "return", "(", "\"asr %0\"", "CR_TAB", "\"asr %0\"", "CR_TAB", "\"asr %0\"", "CR_TAB", "\"asr %0\"", "CR_TAB", "\"asr %0\"", ")", ";", "case", "6", ":", "*", "len", "=", "4", ";", "return", "(", "\"bst %0,6\"", "CR_TAB", "\"lsl %0\"", "CR_TAB", "\"sbc %0,%0\"", "CR_TAB", "\"bld %0,0\"", ")", ";", "default", ":", "if", "(", "INTVAL", "(", "operands", "[", "2", "]", ")", "<", "8", ")", "break", ";", "case", "7", ":", "*", "len", "=", "2", ";", "return", "(", "\"lsl %0\"", "CR_TAB", "\"sbc %0,%0\"", ")", ";", "}", "}", "else", "if", "(", "CONSTANT_P", "(", "operands", "[", "2", "]", ")", ")", "fatal_insn", "(", "\"internal compiler error. Incorrect shift:\"", ",", "insn", ")", ";", "out_shift_with_cnt", "(", "\"asr %0\"", ",", "insn", ",", "operands", ",", "len", ",", "1", ")", ";", "return", "\"\"", ";", "}", "</s>" ]
[ "8bit", "arithmetic", "shift", "right", "(", "(", "signed", "char", ")", "x", ">", ">", "i", ")" ]
[ "avr", "2", "2", "1", "1", "\"asr %0\"", "2", "2", "\"asr %0\"", "\"asr %0\"", "3", "3", "\"asr %0\"", "\"asr %0\"", "\"asr %0\"", "4", "4", "\"asr %0\"", "\"asr %0\"", "\"asr %0\"", "\"asr %0\"", "5", "5", "\"asr %0\"", "\"asr %0\"", "\"asr %0\"", "\"asr %0\"", "\"asr %0\"", "6", "4", "\"bst %0,6\"", "\"lsl %0\"", "\"sbc %0,%0\"", "\"bld %0,0\"", "2", "8", "7", "2", "\"lsl %0\"", "\"sbc %0,%0\"", "2", "\"internal compiler error. Incorrect shift:\"", "\"asr %0\"", "1", "\"\"" ]
avr
ashrqi3_out
avr
MPU
GCC
11,951
224
1
[]
[ "<s>", "static", "rtx", "visium_function_value_1", "(", "enum", "machine_mode", "mode", ")", "{", "if", "(", "TARGET_FPU", "&&", "(", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_FLOAT", "&&", "GET_MODE_SIZE", "(", "mode", ")", "<=", "UNITS_PER_HWFPVALUE", ")", "||", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_COMPLEX_FLOAT", "&&", "GET_MODE_SIZE", "(", "mode", ")", "<=", "UNITS_PER_HWFPVALUE", "*", "2", ")", ")", ")", "return", "gen_rtx_REG", "(", "mode", ",", "FP_RETURN_REGNUM", ")", ";", "return", "gen_rtx_REG", "(", "mode", ",", "RETURN_REGNUM", ")", ";", "}", "</s>" ]
[ "Define", "how", "scalar", "values", "are", "returned", "." ]
[ "visium", "2" ]
visium2
visium_function_value_1
visium
Virtual ISA
GCC
11,952
66
1
[]
[ "<s>", "bool", "AMDGPUTargetLowering", "::", "isTruncateFree", "(", "Type", "*", "Source", ",", "Type", "*", "Dest", ")", "const", "{", "unsigned", "SrcSize", "=", "Source", "->", "getScalarSizeInBits", "(", ")", ";", "unsigned", "DestSize", "=", "Dest", "->", "getScalarSizeInBits", "(", ")", ";", "if", "(", "DestSize", "==", "16", "&&", "Subtarget", "->", "has16BitInsts", "(", ")", ")", "return", "SrcSize", ">=", "32", ";", "return", "DestSize", "<", "SrcSize", "&&", "DestSize", "%", "32", "==", "0", ";", "}", "</s>" ]
[ "Return", "true", "if", "it", "'s", "free", "to", "truncate", "a", "value", "of", "type", "Ty1", "to", "type", "Ty2", "." ]
[ "AMDGPU", "AMDGPU", "16", "32", "32", "0" ]
AMDGPUISelLowering (2)1
isTruncateFree
AMDGPU
GPU
LLVM
11,953
62
1
[]
[ "<s>", "virtual", "bool", "doInitialization", "(", "Module", "&", "M", ")", "{", "LLVMContext", "&", "Ctx", "=", "M", ".", "getContext", "(", ")", ";", "Mod", "=", "&", "M", ";", "FloatType", "=", "Type", "::", "getFloatTy", "(", "Ctx", ")", ";", "Int32Type", "=", "Type", "::", "getInt32Ty", "(", "Ctx", ")", ";", "V4f32Type", "=", "VectorType", "::", "get", "(", "FloatType", ",", "4", ")", ";", "V4i32Type", "=", "VectorType", "::", "get", "(", "Int32Type", ",", "4", ")", ";", "Type", "*", "ArgsType", "[", "]", "=", "{", "V4f32Type", ",", "Int32Type", ",", "Int32Type", ",", "Int32Type", ",", "Int32Type", ",", "Int32Type", ",", "Int32Type", ",", "Int32Type", ",", "Int32Type", ",", "Int32Type", ",", "}", ";", "TexSign", "=", "FunctionType", "::", "get", "(", "V4f32Type", ",", "ArgsType", ",", "false", ")", ";", "Type", "*", "ArgsQType", "[", "]", "=", "{", "V4i32Type", ",", "Int32Type", ",", "Int32Type", ",", "Int32Type", ",", "Int32Type", ",", "Int32Type", ",", "Int32Type", ",", "Int32Type", ",", "Int32Type", ",", "Int32Type", ",", "}", ";", "TexQSign", "=", "FunctionType", "::", "get", "(", "V4f32Type", ",", "ArgsQType", ",", "false", ")", ";", "return", "false", ";", "}", "</s>" ]
[ "Set", "up", "the", "AsmPrinter", "when", "we", "are", "working", "on", "a", "new", "module", "." ]
[ "R600", "4", "4" ]
R600TextureIntrinsicsReplacer2
doInitialization
R600
GPU
LLVM
11,954
152
1
[]
[ "<s>", "void", "emitGlobalType", "(", "const", "MCSymbolWasm", "*", ")", "override", "{", "}", "</s>" ]
[ ".globaltype" ]
[ "WebAssembly" ]
WebAssemblyTargetStreamer (2)1
emitGlobalType
WebAssembly
Virtual ISA
LLVM
11,955
10
1
[]
[ "<s>", "unsigned", "char", "X86Subtarget", "::", "ClassifyGlobalReference", "(", "const", "GlobalValue", "*", "GV", ",", "const", "TargetMachine", "&", "TM", ")", "const", "{", "if", "(", "GV", "->", "hasDLLImportLinkage", "(", ")", ")", "return", "X86II", "::", "MO_DLLIMPORT", ";", "bool", "isDecl", "=", "GV", "->", "isDeclaration", "(", ")", "&&", "!", "GV", "->", "isMaterializable", "(", ")", ";", "if", "(", "isPICStyleRIPRel", "(", ")", ")", "{", "if", "(", "TM", ".", "getCodeModel", "(", ")", "==", "CodeModel", "::", "Large", ")", "return", "X86II", "::", "MO_NO_FLAG", ";", "if", "(", "isTargetDarwin", "(", ")", ")", "{", "if", "(", "GV", "->", "hasDefaultVisibility", "(", ")", "&&", "(", "isDecl", "||", "GV", "->", "isWeakForLinker", "(", ")", ")", ")", "return", "X86II", "::", "MO_GOTPCREL", ";", "}", "else", "{", "assert", "(", "isTargetELF", "(", ")", "&&", "\"Unknown rip-relative target\"", ")", ";", "if", "(", "!", "GV", "->", "hasLocalLinkage", "(", ")", "&&", "GV", "->", "hasDefaultVisibility", "(", ")", ")", "return", "X86II", "::", "MO_GOTPCREL", ";", "}", "return", "X86II", "::", "MO_NO_FLAG", ";", "}", "if", "(", "isPICStyleGOT", "(", ")", ")", "{", "if", "(", "GV", "->", "hasLocalLinkage", "(", ")", "||", "GV", "->", "hasHiddenVisibility", "(", ")", ")", "return", "X86II", "::", "MO_GOTOFF", ";", "return", "X86II", "::", "MO_GOT", ";", "}", "if", "(", "isPICStyleStubPIC", "(", ")", ")", "{", "if", "(", "!", "isDecl", "&&", "!", "GV", "->", "isWeakForLinker", "(", ")", ")", "return", "X86II", "::", "MO_PIC_BASE_OFFSET", ";", "if", "(", "!", "GV", "->", "hasHiddenVisibility", "(", ")", ")", "return", "X86II", "::", "MO_DARWIN_NONLAZY_PIC_BASE", ";", "if", "(", "isDecl", "||", "GV", "->", "hasCommonLinkage", "(", ")", ")", "{", "return", "X86II", "::", "MO_DARWIN_HIDDEN_NONLAZY_PIC_BASE", ";", "}", "return", "X86II", "::", "MO_PIC_BASE_OFFSET", ";", "}", "if", "(", "isPICStyleStubNoDynamic", "(", ")", ")", "{", "if", "(", "!", "isDecl", "&&", "!", "GV", "->", "isWeakForLinker", "(", ")", ")", "return", "X86II", "::", "MO_NO_FLAG", ";", "if", "(", "!", "GV", "->", "hasHiddenVisibility", "(", ")", ")", "return", "X86II", "::", "MO_DARWIN_NONLAZY", ";", "return", "X86II", "::", "MO_NO_FLAG", ";", "}", "return", "X86II", "::", "MO_NO_FLAG", ";", "}", "</s>" ]
[ "ClassifyGlobalReference", "-", "Find", "the", "target", "operand", "flags", "that", "describe", "how", "a", "global", "value", "should", "be", "referenced", "for", "the", "current", "subtarget", "." ]
[ "X86", "X86", "X86II::MO_DLLIMPORT", "X86II::MO_NO_FLAG", "X86II::MO_GOTPCREL", "\"Unknown rip-relative target\"", "X86II::MO_GOTPCREL", "X86II::MO_NO_FLAG", "X86II::MO_GOTOFF", "X86II::MO_GOT", "X86II::MO_PIC_BASE_OFFSET", "X86II::MO_DARWIN_NONLAZY_PIC_BASE", "X86II::MO_DARWIN_HIDDEN_NONLAZY_PIC_BASE", "X86II::MO_PIC_BASE_OFFSET", "X86II::MO_NO_FLAG", "X86II::MO_DARWIN_NONLAZY", "X86II::MO_NO_FLAG", "X86II::MO_NO_FLAG" ]
X86Subtarget10
ClassifyGlobalReference
X86
CPU
LLVM
11,956
283
1
[]
[ "<s>", "void", "dump", "(", ")", "const", "{", "if", "(", "Start", ")", "dbgs", "(", ")", "<<", "\"ARM Loops: Found Loop Start: \"", "<<", "*", "Start", ";", "if", "(", "Dec", ")", "dbgs", "(", ")", "<<", "\"ARM Loops: Found Loop Dec: \"", "<<", "*", "Dec", ";", "if", "(", "End", ")", "dbgs", "(", ")", "<<", "\"ARM Loops: Found Loop End: \"", "<<", "*", "End", ";", "if", "(", "!", "VCTPs", ".", "empty", "(", ")", ")", "{", "dbgs", "(", ")", "<<", "\"ARM Loops: Found VCTP(s):\\n\"", ";", "for", "(", "auto", "*", "MI", ":", "VCTPs", ")", "dbgs", "(", ")", "<<", "\" - \"", "<<", "*", "MI", ";", "}", "if", "(", "!", "FoundAllComponents", "(", ")", ")", "dbgs", "(", ")", "<<", "\"ARM Loops: Not a low-overhead loop.\\n\"", ";", "else", "if", "(", "!", "(", "Start", "&&", "Dec", "&&", "End", ")", ")", "dbgs", "(", ")", "<<", "\"ARM Loops: Failed to find all loop components.\\n\"", ";", "}", "</s>" ]
[ "Dump", "the", "plan", "to", "stderr", "(", "for", "debugging", ")", "." ]
[ "ARM", "\"ARM Loops: Found Loop Start: \"", "\"ARM Loops: Found Loop Dec: \"", "\"ARM Loops: Found Loop End: \"", "\"ARM Loops: Found VCTP(s):\\n\"", "\" - \"", "\"ARM Loops: Not a low-overhead loop.\\n\"", "\"ARM Loops: Failed to find all loop components.\\n\"" ]
ARMLowOverheadLoops
dump
ARM
CPU
LLVM
11,957
111
1
[]
[ "<s>", "bool", "ARMAsmPrinter", "::", "lowerOperand", "(", "const", "MachineOperand", "&", "MO", ",", "MCOperand", "&", "MCOp", ")", "{", "switch", "(", "MO", ".", "getType", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"unknown operand type\"", ")", ";", "case", "MachineOperand", "::", "MO_Register", ":", "if", "(", "MO", ".", "isImplicit", "(", ")", "&&", "MO", ".", "getReg", "(", ")", "!=", "ARM", "::", "CPSR", ")", "return", "false", ";", "assert", "(", "!", "MO", ".", "getSubReg", "(", ")", "&&", "\"Subregs should be eliminated!\"", ")", ";", "MCOp", "=", "MCOperand", "::", "createReg", "(", "MO", ".", "getReg", "(", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_Immediate", ":", "MCOp", "=", "MCOperand", "::", "createImm", "(", "MO", ".", "getImm", "(", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_MachineBasicBlock", ":", "MCOp", "=", "MCOperand", "::", "createExpr", "(", "MCSymbolRefExpr", "::", "create", "(", "MO", ".", "getMBB", "(", ")", "->", "getSymbol", "(", ")", ",", "OutContext", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_GlobalAddress", ":", "MCOp", "=", "GetSymbolRef", "(", "MO", ",", "GetARMGVSymbol", "(", "MO", ".", "getGlobal", "(", ")", ",", "MO", ".", "getTargetFlags", "(", ")", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_ExternalSymbol", ":", "MCOp", "=", "GetSymbolRef", "(", "MO", ",", "GetExternalSymbolSymbol", "(", "MO", ".", "getSymbolName", "(", ")", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_JumpTableIndex", ":", "MCOp", "=", "GetSymbolRef", "(", "MO", ",", "GetJTISymbol", "(", "MO", ".", "getIndex", "(", ")", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_ConstantPoolIndex", ":", "if", "(", "Subtarget", "->", "genExecuteOnly", "(", ")", ")", "llvm_unreachable", "(", "\"execute-only should not generate constant pools\"", ")", ";", "MCOp", "=", "GetSymbolRef", "(", "MO", ",", "GetCPISymbol", "(", "MO", ".", "getIndex", "(", ")", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_BlockAddress", ":", "MCOp", "=", "GetSymbolRef", "(", "MO", ",", "GetBlockAddressSymbol", "(", "MO", ".", "getBlockAddress", "(", ")", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_FPImmediate", ":", "{", "APFloat", "Val", "=", "MO", ".", "getFPImm", "(", ")", "->", "getValueAPF", "(", ")", ";", "bool", "ignored", ";", "Val", ".", "convert", "(", "APFloat", "::", "IEEEdouble", "(", ")", ",", "APFloat", "::", "rmTowardZero", ",", "&", "ignored", ")", ";", "MCOp", "=", "MCOperand", "::", "createFPImm", "(", "Val", ".", "convertToDouble", "(", ")", ")", ";", "break", ";", "}", "case", "MachineOperand", "::", "MO_RegisterMask", ":", "return", "false", ";", "}", "return", "true", ";", "}", "</s>" ]
[ "Wrapper", "for", "MCInstLowering.lowerOperand", "(", ")", "for", "the", "tblgen'erated", "pseudo", "lowering", "." ]
[ "ARM", "ARM", "\"unknown operand type\"", "ARM::CPSR", "\"Subregs should be eliminated!\"", "ARM", "\"execute-only should not generate constant pools\"" ]
ARMMCInstLower10
lowerOperand
ARM
CPU
LLVM
11,958
338
1
[]
[ "<s>", "Val", "(", "unsigned", "int", "Op", ",", "std", "::", "vector", "<", "unsigned", "int", ">", "Nums", ")", ":", "Op", "(", "Op", ")", ",", "Nums", "(", "Nums", ")", "{", "}", "</s>" ]
[ "The", "constant", "itself", "." ]
[ "TOY" ]
TOYPreEmit
Val
TOY
CPU
LLVM
11,959
27
1
[]
[ "<s>", "void", "HexagonAsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "MCInst", "MCB", ";", "MCB", ".", "setOpcode", "(", "Hexagon", "::", "BUNDLE", ")", ";", "MCB", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "0", ")", ")", ";", "if", "(", "MI", "->", "isBundle", "(", ")", ")", "{", "const", "MachineBasicBlock", "*", "MBB", "=", "MI", "->", "getParent", "(", ")", ";", "MachineBasicBlock", "::", "const_instr_iterator", "MII", "=", "MI", "->", "getIterator", "(", ")", ";", "unsigned", "IgnoreCount", "=", "0", ";", "for", "(", "++", "MII", ";", "MII", "!=", "MBB", "->", "instr_end", "(", ")", "&&", "MII", "->", "isInsideBundle", "(", ")", ";", "++", "MII", ")", "{", "if", "(", "MII", "->", "getOpcode", "(", ")", "==", "TargetOpcode", "::", "DBG_VALUE", "||", "MII", "->", "getOpcode", "(", ")", "==", "TargetOpcode", "::", "IMPLICIT_DEF", ")", "++", "IgnoreCount", ";", "else", "{", "HexagonLowerToMC", "(", "&", "*", "MII", ",", "MCB", ",", "*", "this", ")", ";", "}", "}", "}", "else", "{", "HexagonLowerToMC", "(", "MI", ",", "MCB", ",", "*", "this", ")", ";", "HexagonMCInstrInfo", "::", "padEndloop", "(", "MCB", ")", ";", "}", "HexagonMCInstrInfo", "::", "tryCompound", "(", "*", "Subtarget", "->", "getInstrInfo", "(", ")", ",", "OutStreamer", "->", "getContext", "(", ")", ",", "MCB", ")", ";", "SmallVector", "<", "DuplexCandidate", ",", "8", ">", "possibleDuplexes", ";", "possibleDuplexes", "=", "HexagonMCInstrInfo", "::", "getDuplexPossibilties", "(", "*", "Subtarget", "->", "getInstrInfo", "(", ")", ",", "MCB", ")", ";", "HexagonMCShuffle", "(", "*", "Subtarget", "->", "getInstrInfo", "(", ")", ",", "*", "Subtarget", ",", "OutStreamer", "->", "getContext", "(", ")", ",", "MCB", ",", "possibleDuplexes", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "MCB", ")", ";", "}", "</s>" ]
[ "EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "." ]
[ "Hexagon", "Hexagon", "Hexagon::BUNDLE", "0", "0", "Hexagon", "Hexagon", "Hexagon", "Hexagon", "8", "Hexagon", "Hexagon" ]
HexagonAsmPrinter35
EmitInstruction
Hexagon
DSP
LLVM
11,960
232
1
[]
[ "<s>", "bool", "ARMBaseInstrInfo", "::", "expandPostRAPseudo", "(", "MachineBasicBlock", "::", "iterator", "MI", ")", "const", "{", "if", "(", "!", "WidenVMOVS", "||", "!", "MI", "->", "isCopy", "(", ")", "||", "Subtarget", ".", "isCortexA15", "(", ")", ")", "return", "false", ";", "unsigned", "DstRegS", "=", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "unsigned", "SrcRegS", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "if", "(", "!", "ARM", "::", "SPRRegClass", ".", "contains", "(", "DstRegS", ",", "SrcRegS", ")", ")", "return", "false", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "&", "getRegisterInfo", "(", ")", ";", "unsigned", "DstRegD", "=", "TRI", "->", "getMatchingSuperReg", "(", "DstRegS", ",", "ARM", "::", "ssub_0", ",", "&", "ARM", "::", "DPRRegClass", ")", ";", "unsigned", "SrcRegD", "=", "TRI", "->", "getMatchingSuperReg", "(", "SrcRegS", ",", "ARM", "::", "ssub_0", ",", "&", "ARM", "::", "DPRRegClass", ")", ";", "if", "(", "!", "DstRegD", "||", "!", "SrcRegD", ")", "return", "false", ";", "if", "(", "!", "MI", "->", "definesRegister", "(", "DstRegD", ",", "TRI", ")", "||", "MI", "->", "readsRegister", "(", "DstRegD", ",", "TRI", ")", ")", "return", "false", ";", "if", "(", "MI", "->", "getOperand", "(", "0", ")", ".", "isDead", "(", ")", ")", "return", "false", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"widening: \"", "<<", "*", "MI", ")", ";", "MachineInstrBuilder", "MIB", "(", "*", "MI", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ",", "MI", ")", ";", "int", "ImpDefIdx", "=", "MI", "->", "findRegisterDefOperandIdx", "(", "DstRegD", ")", ";", "if", "(", "ImpDefIdx", "!=", "-", "1", ")", "MI", "->", "RemoveOperand", "(", "ImpDefIdx", ")", ";", "MI", "->", "setDesc", "(", "get", "(", "ARM", "::", "VMOVD", ")", ")", ";", "MI", "->", "getOperand", "(", "0", ")", ".", "setReg", "(", "DstRegD", ")", ";", "MI", "->", "getOperand", "(", "1", ")", ".", "setReg", "(", "SrcRegD", ")", ";", "AddDefaultPred", "(", "MIB", ")", ";", "MI", "->", "getOperand", "(", "1", ")", ".", "setIsUndef", "(", ")", ";", "MIB", ".", "addReg", "(", "SrcRegS", ",", "RegState", "::", "Implicit", ")", ";", "if", "(", "MI", "->", "getOperand", "(", "1", ")", ".", "isKill", "(", ")", ")", "{", "MI", "->", "getOperand", "(", "1", ")", ".", "setIsKill", "(", "false", ")", ";", "MI", "->", "addRegisterKilled", "(", "SrcRegS", ",", "TRI", ",", "true", ")", ";", "}", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"replaced by: \"", "<<", "*", "MI", ")", ";", "return", "true", ";", "}", "</s>" ]
[ "This", "function", "is", "called", "for", "all", "pseudo", "instructions", "that", "remain", "after", "register", "allocation", "." ]
[ "ARM", "ARM", "0", "1", "ARM::SPRRegClass", "ARM::ssub_0", "ARM::DPRRegClass", "ARM::ssub_0", "ARM::DPRRegClass", "0", "\"widening: \"", "1", "ARM::VMOVD", "0", "1", "1", "1", "1", "\"replaced by: \"" ]
ARMBaseInstrInfo (2)
expandPostRAPseudo
ARM
CPU
LLVM
11,961
347
1
[]
[ "<s>", "static", "void", "avr_encode_section_info", "(", "tree", "decl", ",", "rtx", "rtl", ",", "int", "new_decl_p", ")", "{", "tree", "addr_attr", "=", "NULL_TREE", ";", "if", "(", "new_decl_p", "&&", "decl", "&&", "DECL_P", "(", "decl", ")", "&&", "NULL_TREE", "==", "DECL_INITIAL", "(", "decl", ")", "&&", "!", "DECL_EXTERNAL", "(", "decl", ")", "&&", "avr_progmem_p", "(", "decl", ",", "DECL_ATTRIBUTES", "(", "decl", ")", ")", ")", "{", "tree", "asmname", "=", "DECL_ASSEMBLER_NAME", "(", "decl", ")", ";", "varpool_node", "*", "node", "=", "varpool_node", "::", "get_for_asmname", "(", "asmname", ")", ";", "bool", "alias_p", "=", "node", "&&", "node", "->", "alias", ";", "if", "(", "!", "alias_p", ")", "warning", "(", "OPT_Wuninitialized", ",", "\"uninitialized variable %q+D put into \"", "\"program memory area\"", ",", "decl", ")", ";", "}", "default_encode_section_info", "(", "decl", ",", "rtl", ",", "new_decl_p", ")", ";", "if", "(", "decl", "&&", "DECL_P", "(", "decl", ")", "&&", "TREE_CODE", "(", "decl", ")", "!=", "FUNCTION_DECL", "&&", "MEM_P", "(", "rtl", ")", "&&", "SYMBOL_REF_P", "(", "XEXP", "(", "rtl", ",", "0", ")", ")", ")", "{", "rtx", "sym", "=", "XEXP", "(", "rtl", ",", "0", ")", ";", "tree", "type", "=", "TREE_TYPE", "(", "decl", ")", ";", "tree", "attr", "=", "DECL_ATTRIBUTES", "(", "decl", ")", ";", "if", "(", "type", "==", "error_mark_node", ")", "return", ";", "addr_space_t", "as", "=", "TYPE_ADDR_SPACE", "(", "type", ")", ";", "if", "(", "!", "AVR_TINY", "&&", "-", "1", "==", "avr_progmem_p", "(", "decl", ",", "attr", ")", ")", "as", "=", "ADDR_SPACE_FLASH", ";", "AVR_SYMBOL_SET_ADDR_SPACE", "(", "sym", ",", "as", ")", ";", "tree", "io_low_attr", "=", "lookup_attribute", "(", "\"io_low\"", ",", "attr", ")", ";", "tree", "io_attr", "=", "lookup_attribute", "(", "\"io\"", ",", "attr", ")", ";", "if", "(", "io_low_attr", "&&", "TREE_VALUE", "(", "io_low_attr", ")", "&&", "TREE_VALUE", "(", "TREE_VALUE", "(", "io_low_attr", ")", ")", ")", "addr_attr", "=", "io_attr", ";", "else", "if", "(", "io_attr", "&&", "TREE_VALUE", "(", "io_attr", ")", "&&", "TREE_VALUE", "(", "TREE_VALUE", "(", "io_attr", ")", ")", ")", "addr_attr", "=", "io_attr", ";", "else", "addr_attr", "=", "lookup_attribute", "(", "\"address\"", ",", "attr", ")", ";", "if", "(", "io_low_attr", "||", "(", "io_attr", "&&", "addr_attr", "&&", "low_io_address_operand", "(", "GEN_INT", "(", "TREE_INT_CST_LOW", "(", "TREE_VALUE", "(", "TREE_VALUE", "(", "addr_attr", ")", ")", ")", ")", ",", "QImode", ")", ")", ")", "SYMBOL_REF_FLAGS", "(", "sym", ")", "|=", "SYMBOL_FLAG_IO_LOW", ";", "if", "(", "io_attr", "||", "io_low_attr", ")", "SYMBOL_REF_FLAGS", "(", "sym", ")", "|=", "SYMBOL_FLAG_IO", ";", "if", "(", "addr_attr", "&&", "!", "DECL_EXTERNAL", "(", "decl", ")", ")", "SYMBOL_REF_FLAGS", "(", "sym", ")", "|=", "SYMBOL_FLAG_ADDRESS", ";", "}", "if", "(", "AVR_TINY", "&&", "decl", "&&", "VAR_DECL", "==", "TREE_CODE", "(", "decl", ")", "&&", "MEM_P", "(", "rtl", ")", "&&", "SYMBOL_REF_P", "(", "XEXP", "(", "rtl", ",", "0", ")", ")", ")", "{", "rtx", "sym", "=", "XEXP", "(", "rtl", ",", "0", ")", ";", "bool", "progmem_p", "=", "-", "1", "==", "avr_progmem_p", "(", "decl", ",", "DECL_ATTRIBUTES", "(", "decl", ")", ")", ";", "if", "(", "progmem_p", ")", "{", "SYMBOL_REF_FLAGS", "(", "sym", ")", "|=", "AVR_SYMBOL_FLAG_TINY_PM", ";", "}", "if", "(", "avr_decl_absdata_p", "(", "decl", ",", "DECL_ATTRIBUTES", "(", "decl", ")", ")", "||", "(", "TARGET_ABSDATA", "&&", "!", "progmem_p", "&&", "!", "addr_attr", "&&", "avr_decl_maybe_lds_p", "(", "decl", ")", ")", "||", "(", "addr_attr", "&&", "TREE_INT_CST_LOW", "(", "TREE_VALUE", "(", "TREE_VALUE", "(", "addr_attr", ")", ")", ")", "<", "0xc0", ")", ")", "{", "SYMBOL_REF_FLAGS", "(", "sym", ")", "|=", "AVR_SYMBOL_FLAG_TINY_ABSDATA", ";", "}", "if", "(", "progmem_p", "&&", "avr_decl_absdata_p", "(", "decl", ",", "DECL_ATTRIBUTES", "(", "decl", ")", ")", ")", "{", "error", "(", "\"%q+D has incompatible attributes %qs and %qs\"", ",", "decl", ",", "\"progmem\"", ",", "\"absdata\"", ")", ";", "}", "}", "}", "</s>" ]
[ "Implement", "`", "TARGET_ENCODE_SECTION_INFO", "'", "." ]
[ "avr", "\"uninitialized variable %q+D put into \"", "\"program memory area\"", "0", "0", "1", "\"io_low\"", "\"io\"", "\"address\"", "0", "0", "1", "0xc0", "\"%q+D has incompatible attributes %qs and %qs\"", "\"progmem\"", "\"absdata\"" ]
avr6
avr_encode_section_info
avr
MPU
GCC
11,962
497
1
[]
[ "<s>", "void", "X86DAGToDAGISel", "::", "PreprocessISelDAG", "(", ")", "{", "OptForSize", "=", "MF", "->", "getFunction", "(", ")", "->", "hasFnAttr", "(", "Attribute", "::", "OptimizeForSize", ")", ";", "for", "(", "SelectionDAG", "::", "allnodes_iterator", "I", "=", "CurDAG", "->", "allnodes_begin", "(", ")", ",", "E", "=", "CurDAG", "->", "allnodes_end", "(", ")", ";", "I", "!=", "E", ";", ")", "{", "SDNode", "*", "N", "=", "I", "++", ";", "if", "(", "OptLevel", "!=", "CodeGenOpt", "::", "None", "&&", "(", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "CALL", "||", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "TC_RETURN", ")", ")", "{", "bool", "HasCallSeq", "=", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "CALL", ";", "SDValue", "Chain", "=", "N", "->", "getOperand", "(", "0", ")", ";", "SDValue", "Load", "=", "N", "->", "getOperand", "(", "1", ")", ";", "if", "(", "!", "isCalleeLoad", "(", "Load", ",", "Chain", ",", "HasCallSeq", ")", ")", "continue", ";", "MoveBelowOrigChain", "(", "CurDAG", ",", "Load", ",", "SDValue", "(", "N", ",", "0", ")", ",", "Chain", ")", ";", "++", "NumLoadMoved", ";", "continue", ";", "}", "if", "(", "N", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "FP_ROUND", "&&", "N", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "FP_EXTEND", ")", "continue", ";", "EVT", "SrcVT", "=", "N", "->", "getOperand", "(", "0", ")", ".", "getValueType", "(", ")", ";", "EVT", "DstVT", "=", "N", "->", "getValueType", "(", "0", ")", ";", "bool", "SrcIsSSE", "=", "X86Lowering", ".", "isScalarFPTypeInSSEReg", "(", "SrcVT", ")", ";", "bool", "DstIsSSE", "=", "X86Lowering", ".", "isScalarFPTypeInSSEReg", "(", "DstVT", ")", ";", "if", "(", "SrcIsSSE", "&&", "DstIsSSE", ")", "continue", ";", "if", "(", "!", "SrcIsSSE", "&&", "!", "DstIsSSE", ")", "{", "if", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "FP_EXTEND", ")", "continue", ";", "if", "(", "N", "->", "getConstantOperandVal", "(", "1", ")", ")", "continue", ";", "}", "EVT", "MemVT", ";", "if", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "FP_ROUND", ")", "MemVT", "=", "DstVT", ";", "else", "MemVT", "=", "SrcIsSSE", "?", "SrcVT", ":", "DstVT", ";", "SDValue", "MemTmp", "=", "CurDAG", "->", "CreateStackTemporary", "(", "MemVT", ")", ";", "DebugLoc", "dl", "=", "N", "->", "getDebugLoc", "(", ")", ";", "SDValue", "Store", "=", "CurDAG", "->", "getTruncStore", "(", "CurDAG", "->", "getEntryNode", "(", ")", ",", "dl", ",", "N", "->", "getOperand", "(", "0", ")", ",", "MemTmp", ",", "MachinePointerInfo", "(", ")", ",", "MemVT", ",", "false", ",", "false", ",", "0", ")", ";", "SDValue", "Result", "=", "CurDAG", "->", "getExtLoad", "(", "ISD", "::", "EXTLOAD", ",", "DstVT", ",", "dl", ",", "Store", ",", "MemTmp", ",", "MachinePointerInfo", "(", ")", ",", "MemVT", ",", "false", ",", "false", ",", "0", ")", ";", "--", "I", ";", "CurDAG", "->", "ReplaceAllUsesOfValueWith", "(", "SDValue", "(", "N", ",", "0", ")", ",", "Result", ")", ";", "++", "I", ";", "CurDAG", "->", "DeleteNode", "(", "N", ")", ";", "}", "}", "</s>" ]
[ "PreprocessISelDAG", "-", "This", "hook", "allows", "targets", "to", "hack", "on", "the", "graph", "before", "instruction", "selection", "starts", "." ]
[ "X86", "X86", "X86ISD::CALL", "X86ISD::TC_RETURN", "X86ISD::CALL", "0", "1", "0", "ISD::FP_ROUND", "ISD::FP_EXTEND", "0", "0", "X86", "X86", "ISD::FP_EXTEND", "1", "ISD::FP_ROUND", "0", "0", "ISD::EXTLOAD", "0", "0" ]
X86ISelDAGToDAG55
PreprocessISelDAG
X86
CPU
LLVM
11,963
412
1
[]
[ "<s>", "void", "pa_d_register_target_info", "(", "void", ")", "{", "const", "struct", "d_target_info_spec", "handlers", "[", "]", "=", "{", "{", "\"floatAbi\"", ",", "pa_d_handle_target_float_abi", "}", ",", "{", "\"objectFormat\"", ",", "pa_d_handle_target_object_format", "}", ",", "{", "NULL", ",", "NULL", "}", ",", "}", ";", "d_add_target_info_handlers", "(", "handlers", ")", ";", "}", "</s>" ]
[ "Implement", "TARGET_D_REGISTER_CPU_TARGET_INFO", "." ]
[ "pa", "\"floatAbi\"", "\"objectFormat\"" ]
pa-d
pa_d_register_target_info
pa
CPU
GCC
11,964
40
1
[]
[ "<s>", "unsigned", "ARMFastISel", "::", "fastMaterializeAlloca", "(", "const", "AllocaInst", "*", "AI", ")", "{", "if", "(", "!", "FuncInfo", ".", "StaticAllocaMap", ".", "count", "(", "AI", ")", ")", "return", "0", ";", "MVT", "VT", ";", "if", "(", "!", "isLoadTypeLegal", "(", "AI", "->", "getType", "(", ")", ",", "VT", ")", ")", "return", "0", ";", "DenseMap", "<", "const", "AllocaInst", "*", ",", "int", ">", "::", "iterator", "SI", "=", "FuncInfo", ".", "StaticAllocaMap", ".", "find", "(", "AI", ")", ";", "if", "(", "SI", "!=", "FuncInfo", ".", "StaticAllocaMap", ".", "end", "(", ")", ")", "{", "unsigned", "Opc", "=", "isThumb2", "?", "ARM", "::", "t2ADDri", ":", "ARM", "::", "ADDri", ";", "const", "TargetRegisterClass", "*", "RC", "=", "TLI", ".", "getRegClassFor", "(", "VT", ")", ";", "unsigned", "ResultReg", "=", "createResultReg", "(", "RC", ")", ";", "ResultReg", "=", "constrainOperandRegClass", "(", "TII", ".", "get", "(", "Opc", ")", ",", "ResultReg", ",", "0", ")", ";", "AddOptionalDefs", "(", "BuildMI", "(", "*", "FuncInfo", ".", "MBB", ",", "FuncInfo", ".", "InsertPt", ",", "DbgLoc", ",", "TII", ".", "get", "(", "Opc", ")", ",", "ResultReg", ")", ".", "addFrameIndex", "(", "SI", "->", "second", ")", ".", "addImm", "(", "0", ")", ")", ";", "return", "ResultReg", ";", "}", "return", "0", ";", "}", "</s>" ]
[ "Emit", "an", "alloca", "address", "in", "a", "register", "using", "target-specific", "logic", "." ]
[ "ARM", "ARM", "0", "0", "ARM::t2ADDri", "ARM::ADDri", "0", "0", "0" ]
ARMFastISel (2)2
fastMaterializeAlloca
ARM
CPU
LLVM
11,965
175
1
[]
[ "<s>", "bool", "X86PassConfig", "::", "addPreRegAlloc", "(", ")", "{", "addPass", "(", "createX86ProtectJTSupport", "(", ")", ")", ";", "return", "false", ";", "}", "</s>" ]
[ "This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "register", "allocation", "." ]
[ "X86", "X86", "X86" ]
X86TargetMachine2
addPreRegAlloc
X86
CPU
LLVM
11,966
18
1
[]
[ "<s>", "void", "SparcRegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", "RS", ")", "const", "{", "assert", "(", "SPAdj", "==", "0", "&&", "\"Unexpected\"", ")", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "DebugLoc", "dl", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "getIndex", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "SparcSubtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "SparcSubtarget", ">", "(", ")", ";", "const", "SparcFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "unsigned", "FrameReg", ";", "int", "Offset", ";", "Offset", "=", "TFI", "->", "getFrameIndexReference", "(", "MF", ",", "FrameIndex", ",", "FrameReg", ")", ";", "Offset", "+=", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "getImm", "(", ")", ";", "if", "(", "!", "Subtarget", ".", "isV9", "(", ")", "||", "!", "Subtarget", ".", "hasHardQuad", "(", ")", ")", "{", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "SP", "::", "STQFri", ")", "{", "const", "TargetInstrInfo", "&", "TII", "=", "*", "Subtarget", ".", "getInstrInfo", "(", ")", ";", "unsigned", "SrcReg", "=", "MI", ".", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ";", "unsigned", "SrcEvenReg", "=", "getSubReg", "(", "SrcReg", ",", "SP", "::", "sub_even64", ")", ";", "unsigned", "SrcOddReg", "=", "getSubReg", "(", "SrcReg", ",", "SP", "::", "sub_odd64", ")", ";", "MachineInstr", "*", "StMI", "=", "BuildMI", "(", "*", "MI", ".", "getParent", "(", ")", ",", "II", ",", "dl", ",", "TII", ".", "get", "(", "SP", "::", "STDFri", ")", ")", ".", "addReg", "(", "FrameReg", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcEvenReg", ")", ";", "replaceFI", "(", "MF", ",", "*", "StMI", ",", "*", "StMI", ",", "dl", ",", "0", ",", "Offset", ",", "FrameReg", ")", ";", "MI", ".", "setDesc", "(", "TII", ".", "get", "(", "SP", "::", "STDFri", ")", ")", ";", "MI", ".", "getOperand", "(", "2", ")", ".", "setReg", "(", "SrcOddReg", ")", ";", "Offset", "+=", "8", ";", "}", "else", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "SP", "::", "LDQFri", ")", "{", "const", "TargetInstrInfo", "&", "TII", "=", "*", "Subtarget", ".", "getInstrInfo", "(", ")", ";", "unsigned", "DestReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "unsigned", "DestEvenReg", "=", "getSubReg", "(", "DestReg", ",", "SP", "::", "sub_even64", ")", ";", "unsigned", "DestOddReg", "=", "getSubReg", "(", "DestReg", ",", "SP", "::", "sub_odd64", ")", ";", "MachineInstr", "*", "StMI", "=", "BuildMI", "(", "*", "MI", ".", "getParent", "(", ")", ",", "II", ",", "dl", ",", "TII", ".", "get", "(", "SP", "::", "LDDFri", ")", ",", "DestEvenReg", ")", ".", "addReg", "(", "FrameReg", ")", ".", "addImm", "(", "0", ")", ";", "replaceFI", "(", "MF", ",", "*", "StMI", ",", "*", "StMI", ",", "dl", ",", "1", ",", "Offset", ",", "FrameReg", ")", ";", "MI", ".", "setDesc", "(", "TII", ".", "get", "(", "SP", "::", "LDDFri", ")", ")", ";", "MI", ".", "getOperand", "(", "0", ")", ".", "setReg", "(", "DestOddReg", ")", ";", "Offset", "+=", "8", ";", "}", "}", "replaceFI", "(", "MF", ",", "II", ",", "MI", ",", "dl", ",", "FIOperandNum", ",", "Offset", ",", "FrameReg", ")", ";", "}", "</s>" ]
[ "This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "." ]
[ "Sparc", "Sparc", "SP", "SP", "0", "\"Unexpected\"", "Sparc", "Sparc", "Sparc", "1", "SP::STQFri", "2", "SP::sub_even64", "SP::sub_odd64", "SP::STDFri", "0", "0", "SP::STDFri", "2", "8", "SP::LDQFri", "0", "SP::sub_even64", "SP::sub_odd64", "SP::LDDFri", "0", "1", "SP::LDDFri", "0", "8" ]
SparcRegisterInfo22
eliminateFrameIndex
Sparc
CPU
LLVM
11,967
478
1
[]
[ "<s>", "static", "void", "get_scratch_register_on_entry", "(", "struct", "scratch_reg", "*", "sr", ")", "{", "int", "regno", ";", "sr", "->", "saved", "=", "false", ";", "if", "(", "TARGET_64BIT", ")", "{", "regno", "=", "R11_REG", ";", "}", "else", "{", "tree", "decl", "=", "current_function_decl", ",", "fntype", "=", "TREE_TYPE", "(", "decl", ")", ";", "bool", "fastcall_p", "=", "lookup_attribute", "(", "\"fastcall\"", ",", "TYPE_ATTRIBUTES", "(", "fntype", ")", ")", "!=", "NULL_TREE", ";", "bool", "thiscall_p", "=", "lookup_attribute", "(", "\"thiscall\"", ",", "TYPE_ATTRIBUTES", "(", "fntype", ")", ")", "!=", "NULL_TREE", ";", "bool", "static_chain_p", "=", "DECL_STATIC_CHAIN", "(", "decl", ")", ";", "int", "regparm", "=", "ix86_function_regparm", "(", "fntype", ",", "decl", ")", ";", "int", "drap_regno", "=", "crtl", "->", "drap_reg", "?", "REGNO", "(", "crtl", "->", "drap_reg", ")", ":", "INVALID_REGNUM", ";", "if", "(", "(", "regparm", "<", "1", "||", "(", "fastcall_p", "&&", "!", "static_chain_p", ")", ")", "&&", "drap_regno", "!=", "AX_REG", ")", "regno", "=", "AX_REG", ";", "else", "if", "(", "thiscall_p", "&&", "!", "static_chain_p", "&&", "drap_regno", "!=", "AX_REG", ")", "regno", "=", "AX_REG", ";", "else", "if", "(", "regparm", "<", "2", "&&", "!", "thiscall_p", "&&", "drap_regno", "!=", "DX_REG", ")", "regno", "=", "DX_REG", ";", "else", "if", "(", "regparm", "<", "3", "&&", "!", "fastcall_p", "&&", "!", "thiscall_p", "&&", "!", "static_chain_p", "&&", "drap_regno", "!=", "CX_REG", ")", "regno", "=", "CX_REG", ";", "else", "if", "(", "ix86_save_reg", "(", "BX_REG", ",", "true", ")", ")", "regno", "=", "BX_REG", ";", "else", "if", "(", "!", "(", "regparm", "==", "3", "&&", "static_chain_p", ")", "&&", "ix86_save_reg", "(", "SI_REG", ",", "true", ")", ")", "regno", "=", "SI_REG", ";", "else", "if", "(", "ix86_save_reg", "(", "DI_REG", ",", "true", ")", ")", "regno", "=", "DI_REG", ";", "else", "{", "regno", "=", "(", "drap_regno", "==", "AX_REG", "?", "DX_REG", ":", "AX_REG", ")", ";", "sr", "->", "saved", "=", "true", ";", "}", "}", "sr", "->", "reg", "=", "gen_rtx_REG", "(", "Pmode", ",", "regno", ")", ";", "if", "(", "sr", "->", "saved", ")", "{", "rtx_insn", "*", "insn", "=", "emit_insn", "(", "gen_push", "(", "sr", "->", "reg", ")", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "}", "}", "</s>" ]
[ "Return", "a", "short-lived", "scratch", "register", "for", "use", "on", "function", "entry", ".", "In", "32-bit", "mode", ",", "it", "is", "valid", "only", "after", "the", "registers", "are", "saved", "in", "the", "prologue", ".", "This", "register", "must", "be", "released", "by", "means", "of", "release_scratch_register_on_entry", "once", "it", "is", "dead", "." ]
[ "i386", "\"fastcall\"", "\"thiscall\"", "1", "2", "3", "3", "1" ]
i3865
get_scratch_register_on_entry
i386
CPU
GCC
11,968
302
1
[]
[ "<s>", "static", "tree", "ix86_get_builtin_func_type", "(", "enum", "ix86_builtin_func_type", "tcode", ")", "{", "tree", "type", ";", "gcc_assert", "(", "(", "unsigned", ")", "tcode", "<", "ARRAY_SIZE", "(", "ix86_builtin_func_type_tab", ")", ")", ";", "type", "=", "ix86_builtin_func_type_tab", "[", "(", "int", ")", "tcode", "]", ";", "if", "(", "type", "!=", "NULL", ")", "return", "type", ";", "if", "(", "tcode", "<=", "IX86_BT_LAST_FUNC", ")", "{", "unsigned", "start", "=", "ix86_builtin_func_start", "[", "(", "int", ")", "tcode", "]", ";", "unsigned", "after", "=", "ix86_builtin_func_start", "[", "(", "int", ")", "tcode", "+", "1", "]", ";", "tree", "rtype", ",", "atype", ",", "args", "=", "void_list_node", ";", "unsigned", "i", ";", "rtype", "=", "ix86_get_builtin_type", "(", "ix86_builtin_func_args", "[", "start", "]", ")", ";", "for", "(", "i", "=", "after", "-", "1", ";", "i", ">", "start", ";", "--", "i", ")", "{", "atype", "=", "ix86_get_builtin_type", "(", "ix86_builtin_func_args", "[", "i", "]", ")", ";", "args", "=", "tree_cons", "(", "NULL", ",", "atype", ",", "args", ")", ";", "}", "type", "=", "build_function_type", "(", "rtype", ",", "args", ")", ";", "}", "else", "{", "unsigned", "index", "=", "tcode", "-", "IX86_BT_LAST_FUNC", "-", "1", ";", "enum", "ix86_builtin_func_type", "icode", ";", "icode", "=", "ix86_builtin_func_alias_base", "[", "index", "]", ";", "type", "=", "ix86_get_builtin_func_type", "(", "icode", ")", ";", "}", "ix86_builtin_func_type_tab", "[", "(", "int", ")", "tcode", "]", "=", "type", ";", "return", "type", ";", "}", "</s>" ]
[ "Retrieve", "an", "element", "from", "the", "above", "table", ",", "building", "some", "of", "the", "types", "lazily", "." ]
[ "i386", "1", "1", "1" ]
i386-builtins
ix86_get_builtin_func_type
i386
CPU
GCC
11,969
189
1
[]
[ "<s>", "const", "TL45Subtarget", "*", "getSubtargetImpl", "(", "const", "Function", "&", ")", "const", "override", "{", "return", "&", "DefaultSubtarget", ";", "}", "</s>" ]
[ "Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "." ]
[ "TL45", "TL45" ]
TL45TargetMachine
getSubtargetImpl
TL45
MPU
LLVM
11,970
17
1
[]
[ "<s>", "static", "int", "get_num_immediates", "(", "rtx_insn", "*", "insn", ",", "int", "*", "imm", ",", "int", "*", "imm32", ",", "int", "*", "imm64", ")", "{", "imm_info", "imm_values", "=", "{", "0", ",", "0", ",", "0", "}", ";", "find_constant", "(", "insn", ",", "&", "imm_values", ")", ";", "*", "imm", "=", "imm_values", ".", "imm", ";", "*", "imm32", "=", "imm_values", ".", "imm32", ";", "*", "imm64", "=", "imm_values", ".", "imm64", ";", "return", "imm_values", ".", "imm32", "*", "4", "+", "imm_values", ".", "imm64", "*", "8", ";", "}", "</s>" ]
[ "Return", "total", "size", "of", "immediate", "operands", "of", "an", "instruction", "along", "with", "number", "of", "corresponding", "immediate-operands", ".", "It", "initializes", "its", "parameters", "to", "zero", "befor", "calling", "FIND_CONSTANT", ".", "INSN", "is", "the", "input", "instruction", ".", "IMM", "is", "the", "total", "of", "immediates", ".", "IMM32", "is", "the", "number", "of", "32", "bit", "immediates", ".", "IMM64", "is", "the", "number", "of", "64", "bit", "immediates", "." ]
[ "i386", "0", "0", "0", "4", "8" ]
i3865
get_num_immediates
i386
CPU
GCC
11,971
75
1
[]
[ "<s>", "bool", "isStackIdSafeForLocalArea", "(", "unsigned", "StackId", ")", "const", "override", "{", "return", "StackId", "!=", "TargetStackID", "::", "ScalableVector", ";", "}", "</s>" ]
[ "This", "method", "returns", "whether", "or", "not", "it", "is", "safe", "for", "an", "object", "with", "the", "given", "stack", "id", "to", "be", "bundled", "into", "the", "local", "area", "." ]
[ "AArch64" ]
AArch64FrameLowering (2)1
isStackIdSafeForLocalArea
AArch64
CPU
LLVM
11,972
17
1
[]
[ "<s>", "void", "mmix_init_expanders", "(", "void", ")", "{", "init_machine_status", "=", "mmix_init_machine_status", ";", "}", "</s>" ]
[ "INIT_EXPANDERS", "." ]
[ "mmix" ]
mmix
mmix_init_expanders
mmix
CPU
GCC
11,973
11
1
[]
[ "<s>", "bool", "NVPTXReplaceImageHandles", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "bool", "Changed", "=", "false", ";", "InstrsToRemove", ".", "clear", "(", ")", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "Changed", "|=", "processInstr", "(", "MI", ")", ";", "for", "(", "MachineInstr", "*", "MI", ":", "InstrsToRemove", ")", "MI", "->", "eraseFromParent", "(", ")", ";", "return", "Changed", ";", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "NVPTX", "NVPTX" ]
NVPTXReplaceImageHandles17
runOnMachineFunction
NVPTX
GPU
LLVM
11,974
62
1
[]
[ "<s>", "bool", "fixupNeedsRelaxation", "(", "const", "MCFixup", "&", "Fixup", ",", "uint64_t", "Value", ",", "const", "MCRelaxableFragment", "*", "DF", ",", "const", "MCAsmLayout", "&", "Layout", ")", "const", "override", "{", "return", "false", ";", "}", "</s>" ]
[ "Simple", "predicate", "for", "targets", "where", "!", "Resolved", "implies", "requiring", "relaxation", "." ]
[ "UPT" ]
UPTAsmBackend
fixupNeedsRelaxation
UPT
CPU
LLVM
11,975
28
1
[]
[ "<s>", "const", "RegisterBankInfo", "::", "InstructionMapping", "&", "MipsRegisterBankInfo", "::", "getInstrMapping", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "unsigned", "Opc", "=", "MI", ".", "getOpcode", "(", ")", ";", "const", "RegisterBankInfo", "::", "InstructionMapping", "&", "Mapping", "=", "getInstrMappingImpl", "(", "MI", ")", ";", "if", "(", "Mapping", ".", "isValid", "(", ")", ")", "return", "Mapping", ";", "using", "namespace", "TargetOpcode", ";", "unsigned", "NumOperands", "=", "MI", ".", "getNumOperands", "(", ")", ";", "const", "ValueMapping", "*", "OperandsMapping", "=", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "GPRIdx", "]", ";", "switch", "(", "Opc", ")", "{", "case", "G_ADD", ":", "case", "G_LOAD", ":", "case", "G_STORE", ":", "case", "G_ZEXTLOAD", ":", "case", "G_SEXTLOAD", ":", "case", "G_GEP", ":", "case", "G_AND", ":", "case", "G_OR", ":", "case", "G_XOR", ":", "case", "G_SHL", ":", "case", "G_ASHR", ":", "case", "G_LSHR", ":", "case", "G_SDIV", ":", "case", "G_UDIV", ":", "case", "G_SREM", ":", "case", "G_UREM", ":", "OperandsMapping", "=", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "GPRIdx", "]", ";", "break", ";", "case", "G_CONSTANT", ":", "case", "G_FRAME_INDEX", ":", "case", "G_GLOBAL_VALUE", ":", "OperandsMapping", "=", "getOperandsMapping", "(", "{", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "GPRIdx", "]", ",", "nullptr", "}", ")", ";", "break", ";", "case", "G_ICMP", ":", "OperandsMapping", "=", "getOperandsMapping", "(", "{", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "GPRIdx", "]", ",", "nullptr", ",", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "GPRIdx", "]", ",", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "GPRIdx", "]", "}", ")", ";", "break", ";", "case", "G_SELECT", ":", "OperandsMapping", "=", "getOperandsMapping", "(", "{", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "GPRIdx", "]", ",", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "GPRIdx", "]", ",", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "GPRIdx", "]", ",", "&", "Mips", "::", "ValueMappings", "[", "Mips", "::", "GPRIdx", "]", "}", ")", ";", "break", ";", "default", ":", "return", "getInvalidInstructionMapping", "(", ")", ";", "}", "return", "getInstructionMapping", "(", "DefaultMappingID", ",", "1", ",", "OperandsMapping", ",", "NumOperands", ")", ";", "}", "</s>" ]
[ "Get", "the", "mapping", "of", "the", "different", "operands", "of", "MI", "on", "the", "register", "bank", "." ]
[ "Mips", "Mips", "Mips::ValueMappings", "Mips::GPRIdx", "Mips::ValueMappings", "Mips::GPRIdx", "Mips::ValueMappings", "Mips::GPRIdx", "Mips::ValueMappings", "Mips::GPRIdx", "Mips::ValueMappings", "Mips::GPRIdx", "Mips::ValueMappings", "Mips::GPRIdx", "Mips::ValueMappings", "Mips::GPRIdx", "Mips::ValueMappings", "Mips::GPRIdx", "Mips::ValueMappings", "Mips::GPRIdx", "Mips::ValueMappings", "Mips::GPRIdx", "1" ]
MipsRegisterBankInfo12
getInstrMapping
Mips
CPU
LLVM
11,976
290
1
[]
[ "<s>", "void", "init_cumulative_args", "(", "CUMULATIVE_ARGS", "*", "cum", ",", "tree", "fntype", ",", "rtx", "libname", "ATTRIBUTE_UNUSED", ",", "int", "incoming", ",", "int", "libcall", ",", "int", "n_named_args", ",", "tree", "fndecl", "ATTRIBUTE_UNUSED", ",", "machine_mode", "return_mode", "ATTRIBUTE_UNUSED", ")", "{", "static", "CUMULATIVE_ARGS", "zero_cumulative", ";", "*", "cum", "=", "zero_cumulative", ";", "cum", "->", "words", "=", "0", ";", "cum", "->", "fregno", "=", "FP_ARG_MIN_REG", ";", "cum", "->", "vregno", "=", "ALTIVEC_ARG_MIN_REG", ";", "cum", "->", "prototype", "=", "(", "fntype", "&&", "prototype_p", "(", "fntype", ")", ")", ";", "cum", "->", "call_cookie", "=", "(", "(", "DEFAULT_ABI", "==", "ABI_V4", "&&", "libcall", ")", "?", "CALL_LIBCALL", ":", "CALL_NORMAL", ")", ";", "cum", "->", "sysv_gregno", "=", "GP_ARG_MIN_REG", ";", "cum", "->", "stdarg", "=", "stdarg_p", "(", "fntype", ")", ";", "cum", "->", "libcall", "=", "libcall", ";", "cum", "->", "nargs_prototype", "=", "0", ";", "if", "(", "incoming", "||", "cum", "->", "prototype", ")", "cum", "->", "nargs_prototype", "=", "n_named_args", ";", "if", "(", "(", "!", "fntype", "&&", "rs6000_default_long_calls", ")", "||", "(", "fntype", "&&", "lookup_attribute", "(", "\"longcall\"", ",", "TYPE_ATTRIBUTES", "(", "fntype", ")", ")", "&&", "!", "lookup_attribute", "(", "\"shortcall\"", ",", "TYPE_ATTRIBUTES", "(", "fntype", ")", ")", ")", ")", "cum", "->", "call_cookie", "|=", "CALL_LONG", ";", "if", "(", "TARGET_DEBUG_ARG", ")", "{", "fprintf", "(", "stderr", ",", "\"\\ninit_cumulative_args:\"", ")", ";", "if", "(", "fntype", ")", "{", "tree", "ret_type", "=", "TREE_TYPE", "(", "fntype", ")", ";", "fprintf", "(", "stderr", ",", "\" ret code = %s,\"", ",", "get_tree_code_name", "(", "TREE_CODE", "(", "ret_type", ")", ")", ")", ";", "}", "if", "(", "cum", "->", "call_cookie", "&", "CALL_LONG", ")", "fprintf", "(", "stderr", ",", "\" longcall,\"", ")", ";", "fprintf", "(", "stderr", ",", "\" proto = %d, nargs = %d\\n\"", ",", "cum", "->", "prototype", ",", "cum", "->", "nargs_prototype", ")", ";", "}", "if", "(", "TARGET_ELF", "&&", "(", "TARGET_64BIT", "||", "DEFAULT_ABI", "==", "ABI_V4", ")", ")", "{", "cum", "->", "escapes", "=", "call_ABI_of_interest", "(", "fndecl", ")", ";", "if", "(", "cum", "->", "escapes", ")", "{", "tree", "return_type", ";", "if", "(", "fntype", ")", "{", "return_type", "=", "TREE_TYPE", "(", "fntype", ")", ";", "return_mode", "=", "TYPE_MODE", "(", "return_type", ")", ";", "}", "else", "return_type", "=", "lang_hooks", ".", "types", ".", "type_for_mode", "(", "return_mode", ",", "0", ")", ";", "if", "(", "return_type", "!=", "NULL", ")", "{", "if", "(", "TREE_CODE", "(", "return_type", ")", "==", "RECORD_TYPE", "&&", "TYPE_TRANSPARENT_AGGR", "(", "return_type", ")", ")", "{", "return_type", "=", "TREE_TYPE", "(", "first_field", "(", "return_type", ")", ")", ";", "return_mode", "=", "TYPE_MODE", "(", "return_type", ")", ";", "}", "if", "(", "AGGREGATE_TYPE_P", "(", "return_type", ")", "&&", "(", "(", "unsigned", "HOST_WIDE_INT", ")", "int_size_in_bytes", "(", "return_type", ")", "<=", "8", ")", ")", "rs6000_returns_struct", "=", "true", ";", "}", "if", "(", "SCALAR_FLOAT_MODE_P", "(", "return_mode", ")", ")", "{", "rs6000_passes_float", "=", "true", ";", "if", "(", "(", "HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE", "||", "TARGET_64BIT", ")", "&&", "(", "FLOAT128_IBM_P", "(", "return_mode", ")", "||", "FLOAT128_IEEE_P", "(", "return_mode", ")", "||", "(", "return_type", "!=", "NULL", "&&", "(", "TYPE_MAIN_VARIANT", "(", "return_type", ")", "==", "long_double_type_node", ")", ")", ")", ")", "rs6000_passes_long_double", "=", "true", ";", "}", "if", "(", "ALTIVEC_OR_VSX_VECTOR_MODE", "(", "return_mode", ")", "||", "SPE_VECTOR_MODE", "(", "return_mode", ")", ")", "rs6000_passes_vector", "=", "true", ";", "}", "}", "if", "(", "fntype", "&&", "!", "TARGET_ALTIVEC", "&&", "TARGET_ALTIVEC_ABI", "&&", "ALTIVEC_VECTOR_MODE", "(", "TYPE_MODE", "(", "TREE_TYPE", "(", "fntype", ")", ")", ")", ")", "{", "error", "(", "\"cannot return value in vector register because\"", "\" altivec instructions are disabled, use -maltivec\"", "\" to enable them\"", ")", ";", "}", "}", "</s>" ]
[ "Handle", "the", "INIT_CUMULATIVE_ARGS", "macro", ".", "Initialize", "a", "variable", "CUM", "of", "type", "CUMULATIVE_ARGS", "for", "a", "call", "to", "a", "function", "whose", "data", "type", "is", "FNTYPE", ".", "For", "a", "library", "call", ",", "FNTYPE", "is", "0", "." ]
[ "powerpcspe", "0", "0", "\"longcall\"", "\"shortcall\"", "\"\\ninit_cumulative_args:\"", "\" ret code = %s,\"", "\" longcall,\"", "\" proto = %d, nargs = %d\\n\"", "0", "8", "\"cannot return value in vector register because\"", "\" altivec instructions are disabled, use -maltivec\"", "\" to enable them\"" ]
powerpcspe
init_cumulative_args
powerpcspe
CPU
GCC
11,977
474
1
[]
[ "<s>", "bool", "X86AsmBackend", "::", "writeNopData", "(", "uint64_t", "Count", ",", "MCObjectWriter", "*", "OW", ")", "const", "{", "static", "const", "uint8_t", "Nops", "[", "10", "]", "[", "10", "]", "=", "{", "{", "0x90", "}", ",", "{", "0x66", ",", "0x90", "}", ",", "{", "0x0f", ",", "0x1f", ",", "0x00", "}", ",", "{", "0x0f", ",", "0x1f", ",", "0x40", ",", "0x00", "}", ",", "{", "0x0f", ",", "0x1f", ",", "0x44", ",", "0x00", ",", "0x00", "}", ",", "{", "0x66", ",", "0x0f", ",", "0x1f", ",", "0x44", ",", "0x00", ",", "0x00", "}", ",", "{", "0x0f", ",", "0x1f", ",", "0x80", ",", "0x00", ",", "0x00", ",", "0x00", ",", "0x00", "}", ",", "{", "0x0f", ",", "0x1f", ",", "0x84", ",", "0x00", ",", "0x00", ",", "0x00", ",", "0x00", ",", "0x00", "}", ",", "{", "0x66", ",", "0x0f", ",", "0x1f", ",", "0x84", ",", "0x00", ",", "0x00", ",", "0x00", ",", "0x00", ",", "0x00", "}", ",", "{", "0x66", ",", "0x2e", ",", "0x0f", ",", "0x1f", ",", "0x84", ",", "0x00", ",", "0x00", ",", "0x00", ",", "0x00", ",", "0x00", "}", ",", "}", ";", "if", "(", "!", "STI", ".", "getFeatureBits", "(", ")", "[", "X86", "::", "FeatureNOPL", "]", ")", "{", "for", "(", "uint64_t", "i", "=", "0", ";", "i", "<", "Count", ";", "++", "i", ")", "OW", "->", "write8", "(", "0x90", ")", ";", "return", "true", ";", "}", "uint64_t", "MaxNopLength", "=", "STI", ".", "getFeatureBits", "(", ")", "[", "X86", "::", "ProcIntelSLM", "]", "?", "7", ":", "15", ";", "do", "{", "const", "uint8_t", "ThisNopLength", "=", "(", "uint8_t", ")", "std", "::", "min", "(", "Count", ",", "MaxNopLength", ")", ";", "const", "uint8_t", "Prefixes", "=", "ThisNopLength", "<=", "10", "?", "0", ":", "ThisNopLength", "-", "10", ";", "for", "(", "uint8_t", "i", "=", "0", ";", "i", "<", "Prefixes", ";", "i", "++", ")", "OW", "->", "write8", "(", "0x66", ")", ";", "const", "uint8_t", "Rest", "=", "ThisNopLength", "-", "Prefixes", ";", "for", "(", "uint8_t", "i", "=", "0", ";", "i", "<", "Rest", ";", "i", "++", ")", "OW", "->", "write8", "(", "Nops", "[", "Rest", "-", "1", "]", "[", "i", "]", ")", ";", "Count", "-=", "ThisNopLength", ";", "}", "while", "(", "Count", "!=", "0", ")", ";", "return", "true", ";", "}", "</s>" ]
[ "Write", "an", "(", "optimal", ")", "nop", "sequence", "of", "Count", "bytes", "to", "the", "given", "output", "." ]
[ "X86", "X86", "10", "10", "0x90", "0x66", "0x90", "0x0f", "0x1f", "0x00", "0x0f", "0x1f", "0x40", "0x00", "0x0f", "0x1f", "0x44", "0x00", "0x00", "0x66", "0x0f", "0x1f", "0x44", "0x00", "0x00", "0x0f", "0x1f", "0x80", "0x00", "0x00", "0x00", "0x00", "0x0f", "0x1f", "0x84", "0x00", "0x00", "0x00", "0x00", "0x00", "0x66", "0x0f", "0x1f", "0x84", "0x00", "0x00", "0x00", "0x00", "0x00", "0x66", "0x2e", "0x0f", "0x1f", "0x84", "0x00", "0x00", "0x00", "0x00", "0x00", "X86::FeatureNOPL", "0", "0x90", "X86::ProcIntelSLM", "7", "15", "10", "0", "10", "0", "0x66", "0", "1", "0" ]
X86AsmBackend19
writeNopData
X86
CPU
LLVM
11,978
322
1
[]
[ "<s>", "bool", "HexagonPacketizer", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "Fn", ")", "{", "const", "TargetInstrInfo", "*", "TII", "=", "Fn", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "MachineLoopInfo", "&", "MLI", "=", "getAnalysis", "<", "MachineLoopInfo", ">", "(", ")", ";", "const", "MachineBranchProbabilityInfo", "*", "MBPI", "=", "&", "getAnalysis", "<", "MachineBranchProbabilityInfo", ">", "(", ")", ";", "HexagonPacketizerList", "Packetizer", "(", "Fn", ",", "MLI", ",", "MBPI", ")", ";", "assert", "(", "Packetizer", ".", "getResourceTracker", "(", ")", "&&", "\"Empty DFA table!\"", ")", ";", "for", "(", "MachineFunction", "::", "iterator", "MBB", "=", "Fn", ".", "begin", "(", ")", ",", "MBBe", "=", "Fn", ".", "end", "(", ")", ";", "MBB", "!=", "MBBe", ";", "++", "MBB", ")", "{", "MachineBasicBlock", "::", "iterator", "End", "=", "MBB", "->", "end", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MI", "=", "MBB", "->", "begin", "(", ")", ";", "while", "(", "MI", "!=", "End", ")", "{", "if", "(", "MI", "->", "isKill", "(", ")", ")", "{", "MachineBasicBlock", "::", "iterator", "DeleteMI", "=", "MI", ";", "++", "MI", ";", "MBB", "->", "erase", "(", "DeleteMI", ")", ";", "End", "=", "MBB", "->", "end", "(", ")", ";", "continue", ";", "}", "++", "MI", ";", "}", "}", "for", "(", "MachineFunction", "::", "iterator", "MBB", "=", "Fn", ".", "begin", "(", ")", ",", "MBBe", "=", "Fn", ".", "end", "(", ")", ";", "MBB", "!=", "MBBe", ";", "++", "MBB", ")", "{", "unsigned", "RemainingCount", "=", "MBB", "->", "size", "(", ")", ";", "for", "(", "MachineBasicBlock", "::", "iterator", "RegionEnd", "=", "MBB", "->", "end", "(", ")", ";", "RegionEnd", "!=", "MBB", "->", "begin", "(", ")", ";", ")", "{", "MachineBasicBlock", "::", "iterator", "I", "=", "RegionEnd", ";", "for", "(", ";", "I", "!=", "MBB", "->", "begin", "(", ")", ";", "--", "I", ",", "--", "RemainingCount", ")", "{", "if", "(", "TII", "->", "isSchedulingBoundary", "(", "std", "::", "prev", "(", "I", ")", ",", "MBB", ",", "Fn", ")", ")", "break", ";", "}", "I", "=", "MBB", "->", "begin", "(", ")", ";", "if", "(", "I", "==", "RegionEnd", ")", "{", "RegionEnd", "=", "std", "::", "prev", "(", "RegionEnd", ")", ";", "--", "RemainingCount", ";", "continue", ";", "}", "if", "(", "I", "==", "std", "::", "prev", "(", "RegionEnd", ")", ")", "{", "RegionEnd", "=", "std", "::", "prev", "(", "RegionEnd", ")", ";", "continue", ";", "}", "Packetizer", ".", "PacketizeMIs", "(", "MBB", ",", "I", ",", "RegionEnd", ")", ";", "RegionEnd", "=", "I", ";", "}", "}", "return", "true", ";", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "Hexagon", "Hexagon", "Hexagon", "\"Empty DFA table!\"" ]
HexagonVLIWPacketizer
runOnMachineFunction
Hexagon
DSP
LLVM
11,979
352
1
[]
[ "<s>", "static", "tree", "make_resolver_func", "(", "const", "tree", "default_decl", ",", "const", "tree", "dispatch_decl", ",", "basic_block", "*", "empty_bb", ")", "{", "tree", "decl_name", "=", "clone_function_name", "(", "default_decl", ",", "\"resolver\"", ")", ";", "const", "char", "*", "resolver_name", "=", "IDENTIFIER_POINTER", "(", "decl_name", ")", ";", "tree", "type", "=", "build_function_type_list", "(", "ptr_type_node", ",", "NULL_TREE", ")", ";", "tree", "decl", "=", "build_fn_decl", "(", "resolver_name", ",", "type", ")", ";", "SET_DECL_ASSEMBLER_NAME", "(", "decl", ",", "decl_name", ")", ";", "DECL_NAME", "(", "decl", ")", "=", "decl_name", ";", "TREE_USED", "(", "decl", ")", "=", "1", ";", "DECL_ARTIFICIAL", "(", "decl", ")", "=", "1", ";", "DECL_IGNORED_P", "(", "decl", ")", "=", "0", ";", "TREE_PUBLIC", "(", "decl", ")", "=", "0", ";", "DECL_UNINLINABLE", "(", "decl", ")", "=", "1", ";", "DECL_EXTERNAL", "(", "decl", ")", "=", "0", ";", "DECL_EXTERNAL", "(", "dispatch_decl", ")", "=", "0", ";", "DECL_CONTEXT", "(", "decl", ")", "=", "NULL_TREE", ";", "DECL_INITIAL", "(", "decl", ")", "=", "make_node", "(", "BLOCK", ")", ";", "DECL_STATIC_CONSTRUCTOR", "(", "decl", ")", "=", "0", ";", "if", "(", "DECL_COMDAT_GROUP", "(", "default_decl", ")", "||", "TREE_PUBLIC", "(", "default_decl", ")", ")", "{", "DECL_COMDAT", "(", "decl", ")", "=", "1", ";", "make_decl_one_only", "(", "decl", ",", "DECL_ASSEMBLER_NAME", "(", "decl", ")", ")", ";", "}", "else", "TREE_PUBLIC", "(", "dispatch_decl", ")", "=", "0", ";", "tree", "t", "=", "build_decl", "(", "UNKNOWN_LOCATION", ",", "RESULT_DECL", ",", "NULL_TREE", ",", "ptr_type_node", ")", ";", "DECL_CONTEXT", "(", "t", ")", "=", "decl", ";", "DECL_ARTIFICIAL", "(", "t", ")", "=", "1", ";", "DECL_IGNORED_P", "(", "t", ")", "=", "1", ";", "DECL_RESULT", "(", "decl", ")", "=", "t", ";", "gimplify_function_tree", "(", "decl", ")", ";", "push_cfun", "(", "DECL_STRUCT_FUNCTION", "(", "decl", ")", ")", ";", "*", "empty_bb", "=", "init_lowered_empty_function", "(", "decl", ",", "false", ",", "profile_count", "::", "uninitialized", "(", ")", ")", ";", "cgraph_node", "::", "add_new_function", "(", "decl", ",", "true", ")", ";", "symtab", "->", "call_cgraph_insertion_hooks", "(", "cgraph_node", "::", "get_create", "(", "decl", ")", ")", ";", "pop_cfun", "(", ")", ";", "DECL_ATTRIBUTES", "(", "dispatch_decl", ")", "=", "make_attribute", "(", "\"ifunc\"", ",", "resolver_name", ",", "DECL_ATTRIBUTES", "(", "dispatch_decl", ")", ")", ";", "cgraph_node", "::", "create_same_body_alias", "(", "dispatch_decl", ",", "decl", ")", ";", "return", "decl", ";", "}", "</s>" ]
[ "Make", "the", "resolver", "function", "decl", "to", "dispatch", "the", "versions", "of", "a", "multi-", "versioned", "function", ",", "DEFAULT_DECL", ".", "Create", "an", "empty", "basic", "block", "in", "the", "resolver", "and", "store", "the", "pointer", "in", "EMPTY_BB", ".", "Return", "the", "decl", "of", "the", "resolver", "function", "." ]
[ "rs6000", "\"resolver\"", "1", "1", "0", "0", "1", "0", "0", "0", "1", "0", "1", "1", "\"ifunc\"" ]
rs6000
make_resolver_func
rs6000
CPU
GCC
11,980
309
1
[]
[ "<s>", "static", "bool", "mips_cannot_force_const_mem", "(", "machine_mode", "mode", ",", "rtx", "x", ")", "{", "enum", "mips_symbol_type", "type", ";", "rtx", "base", ",", "offset", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "HIGH", ")", "return", "true", ";", "if", "(", "CONST_INT_P", "(", "x", ")", "&&", "mips_legitimate_constant_p", "(", "mode", ",", "x", ")", ")", "return", "true", ";", "split_const", "(", "x", ",", "&", "base", ",", "&", "offset", ")", ";", "if", "(", "mips_symbolic_constant_p", "(", "base", ",", "SYMBOL_CONTEXT_LEA", ",", "&", "type", ")", ")", "{", "if", "(", "mips_use_pcrel_pool_p", "[", "(", "int", ")", "type", "]", ")", "return", "false", ";", "if", "(", "SMALL_INT", "(", "offset", ")", "&&", "mips_symbol_insns", "(", "type", ",", "MAX_MACHINE_MODE", ")", ">", "0", ")", "return", "true", ";", "if", "(", "TARGET_MIPS16_PCREL_LOADS", "&&", "mips_got_symbol_type_p", "(", "type", ")", ")", "return", "true", ";", "}", "if", "(", "tls_referenced_p", "(", "x", ")", ")", "return", "true", ";", "return", "false", ";", "}", "</s>" ]
[ "Return", "true", "if", "X", "can", "not", "be", "forced", "into", "a", "constant", "pool", "." ]
[ "mips", "0" ]
mips4
mips_cannot_force_const_mem
mips
CPU
GCC
11,981
132
1
[]
[ "<s>", "SDValue", "R600TargetLowering", "::", "LowerFormalArguments", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "SDLoc", "DL", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "ArgLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "ArgLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "R600MachineFunctionInfo", "*", "MFI", "=", "MF", ".", "getInfo", "<", "R600MachineFunctionInfo", ">", "(", ")", ";", "SmallVector", "<", "ISD", "::", "InputArg", ",", "8", ">", "LocalIns", ";", "getOriginalFunctionArgs", "(", "DAG", ",", "MF", ".", "getFunction", "(", ")", ",", "Ins", ",", "LocalIns", ")", ";", "AnalyzeFormalArguments", "(", "CCInfo", ",", "LocalIns", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "Ins", ".", "size", "(", ")", ";", "i", "<", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "ArgLocs", "[", "i", "]", ";", "const", "ISD", "::", "InputArg", "&", "In", "=", "Ins", "[", "i", "]", ";", "EVT", "VT", "=", "In", ".", "VT", ";", "EVT", "MemVT", "=", "VA", ".", "getLocVT", "(", ")", ";", "if", "(", "!", "VT", ".", "isVector", "(", ")", "&&", "MemVT", ".", "isVector", "(", ")", ")", "{", "MemVT", "=", "MemVT", ".", "getVectorElementType", "(", ")", ";", "}", "if", "(", "AMDGPU", "::", "isShader", "(", "CallConv", ")", ")", "{", "unsigned", "Reg", "=", "MF", ".", "addLiveIn", "(", "VA", ".", "getLocReg", "(", ")", ",", "&", "AMDGPU", "::", "R600_Reg128RegClass", ")", ";", "SDValue", "Register", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "Reg", ",", "VT", ")", ";", "InVals", ".", "push_back", "(", "Register", ")", ";", "continue", ";", "}", "PointerType", "*", "PtrTy", "=", "PointerType", "::", "get", "(", "VT", ".", "getTypeForEVT", "(", "*", "DAG", ".", "getContext", "(", ")", ")", ",", "AMDGPUAS", "::", "CONSTANT_BUFFER_0", ")", ";", "ISD", "::", "LoadExtType", "Ext", "=", "ISD", "::", "NON_EXTLOAD", ";", "if", "(", "MemVT", ".", "getScalarSizeInBits", "(", ")", "!=", "VT", ".", "getScalarSizeInBits", "(", ")", ")", "{", "Ext", "=", "ISD", "::", "SEXTLOAD", ";", "}", "unsigned", "ValBase", "=", "ArgLocs", "[", "In", ".", "getOrigArgIndex", "(", ")", "]", ".", "getLocMemOffset", "(", ")", ";", "unsigned", "PartOffset", "=", "VA", ".", "getLocMemOffset", "(", ")", ";", "unsigned", "Offset", "=", "36", "+", "VA", ".", "getLocMemOffset", "(", ")", ";", "MachinePointerInfo", "PtrInfo", "(", "UndefValue", "::", "get", "(", "PtrTy", ")", ",", "PartOffset", "-", "ValBase", ")", ";", "SDValue", "Arg", "=", "DAG", ".", "getLoad", "(", "ISD", "::", "UNINDEXED", ",", "Ext", ",", "VT", ",", "DL", ",", "Chain", ",", "DAG", ".", "getConstant", "(", "Offset", ",", "DL", ",", "MVT", "::", "i32", ")", ",", "DAG", ".", "getUNDEF", "(", "MVT", "::", "i32", ")", ",", "PtrInfo", ",", "MemVT", ",", "false", ",", "true", ",", "true", ",", "4", ")", ";", "InVals", ".", "push_back", "(", "Arg", ")", ";", "MFI", "->", "ABIArgOffset", "=", "Offset", "+", "MemVT", ".", "getStoreSize", "(", ")", ";", "}", "return", "Chain", ";", "}", "</s>" ]
[ "This", "hook", "must", "be", "implemented", "to", "lower", "the", "incoming", "(", "formal", ")", "arguments", ",", "described", "by", "the", "Ins", "array", ",", "into", "the", "specified", "DAG", "." ]
[ "AMDGPU", "R600", "ISD::InputArg", "16", "R600", "R600", "ISD::InputArg", "8", "0", "ISD::InputArg", "AMDGPU::isShader", "AMDGPU::R600_Reg128RegClass", "AMDGPU", "ISD::LoadExtType", "ISD::NON_EXTLOAD", "ISD::SEXTLOAD", "36", "ISD::UNINDEXED", "MVT::i32", "MVT::i32", "4" ]
R600ISelLowering56
LowerFormalArguments
AMDGPU
GPU
LLVM
11,982
453
1
[]
[ "<s>", "void", "BPFRegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", "RS", ")", "const", "{", "assert", "(", "SPAdj", "==", "0", "&&", "\"Unexpected\"", ")", ";", "unsigned", "i", "=", "0", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "DebugLoc", "DL", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "if", "(", "!", "DL", ")", "for", "(", "auto", "&", "I", ":", "MBB", ")", "if", "(", "I", ".", "getDebugLoc", "(", ")", ")", "{", "DL", "=", "I", ".", "getDebugLoc", "(", ")", ";", "break", ";", "}", "while", "(", "!", "MI", ".", "getOperand", "(", "i", ")", ".", "isFI", "(", ")", ")", "{", "++", "i", ";", "assert", "(", "i", "<", "MI", ".", "getNumOperands", "(", ")", "&&", "\"Instr doesn't have FrameIndex operand!\"", ")", ";", "}", "unsigned", "FrameReg", "=", "getFrameRegister", "(", "MF", ")", ";", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "i", ")", ".", "getIndex", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "BPF", "::", "MOV_rr", ")", "{", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectOffset", "(", "FrameIndex", ")", ";", "WarnSize", "(", "Offset", ",", "MF", ",", "DL", ")", ";", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ")", ";", "unsigned", "reg", "=", "MI", ".", "getOperand", "(", "i", "-", "1", ")", ".", "getReg", "(", ")", ";", "BuildMI", "(", "MBB", ",", "++", "II", ",", "DL", ",", "TII", ".", "get", "(", "BPF", "::", "ADD_ri", ")", ",", "reg", ")", ".", "addReg", "(", "reg", ")", ".", "addImm", "(", "Offset", ")", ";", "return", ";", "}", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectOffset", "(", "FrameIndex", ")", "+", "MI", ".", "getOperand", "(", "i", "+", "1", ")", ".", "getImm", "(", ")", ";", "if", "(", "!", "isInt", "<", "32", ">", "(", "Offset", ")", ")", "llvm_unreachable", "(", "\"bug in frame offset\"", ")", ";", "WarnSize", "(", "Offset", ",", "MF", ",", "DL", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "BPF", "::", "FI_ri", ")", "{", "unsigned", "reg", "=", "MI", ".", "getOperand", "(", "i", "-", "1", ")", ".", "getReg", "(", ")", ";", "BuildMI", "(", "MBB", ",", "++", "II", ",", "DL", ",", "TII", ".", "get", "(", "BPF", "::", "MOV_rr", ")", ",", "reg", ")", ".", "addReg", "(", "FrameReg", ")", ";", "BuildMI", "(", "MBB", ",", "II", ",", "DL", ",", "TII", ".", "get", "(", "BPF", "::", "ADD_ri", ")", ",", "reg", ")", ".", "addReg", "(", "reg", ")", ".", "addImm", "(", "Offset", ")", ";", "MI", ".", "eraseFromParent", "(", ")", ";", "}", "else", "{", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ")", ";", "MI", ".", "getOperand", "(", "i", "+", "1", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";", "}", "}", "</s>" ]
[ "This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "." ]
[ "BPF", "BPF", "0", "\"Unexpected\"", "0", "\"Instr doesn't have FrameIndex operand!\"", "BPF::MOV_rr", "1", "BPF::ADD_ri", "1", "32", "\"bug in frame offset\"", "BPF::FI_ri", "1", "BPF::MOV_rr", "BPF::ADD_ri", "1" ]
BPFRegisterInfo
eliminateFrameIndex
BPF
Virtual ISA
LLVM
11,983
453
1
[]
[ "<s>", "virtual", "ScheduleHazardRecognizer", "*", "CreateTargetHazardRecognizer", "(", ")", "{", "const", "TargetInstrInfo", "*", "II", "=", "TM", ".", "getInstrInfo", "(", ")", ";", "assert", "(", "II", "&&", "\"No InstrInfo?\"", ")", ";", "return", "new", "PPCHazardRecognizer970", "(", "*", "II", ")", ";", "}", "</s>" ]
[ "Allocate", "and", "return", "a", "hazard", "recognizer", "to", "use", "for", "this", "target", "when", "scheduling", "the", "machine", "instructions", "before", "register", "allocation", "." ]
[ "PowerPC", "\"No InstrInfo?\"", "PPC" ]
PPCISelDAGToDAG12
CreateTargetHazardRecognizer
PowerPC
CPU
LLVM
11,984
34
1
[]
[ "<s>", "unsigned", "int", "mn10300_store_multiple_regs", "(", "rtx", "op", ")", "{", "int", "count", ";", "int", "mask", ";", "int", "i", ";", "unsigned", "int", "last", ";", "rtx", "elt", ";", "count", "=", "XVECLEN", "(", "op", ",", "0", ")", ";", "if", "(", "count", "<", "2", ")", "return", "0", ";", "elt", "=", "XVECEXP", "(", "op", ",", "0", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "elt", ")", "!=", "SET", "||", "(", "!", "REG_P", "(", "SET_DEST", "(", "elt", ")", ")", ")", "||", "REGNO", "(", "SET_DEST", "(", "elt", ")", ")", "!=", "STACK_POINTER_REGNUM", "||", "GET_CODE", "(", "SET_SRC", "(", "elt", ")", ")", "!=", "PLUS", ")", "return", "0", ";", "elt", "=", "SET_SRC", "(", "elt", ")", ";", "if", "(", "(", "!", "REG_P", "(", "XEXP", "(", "elt", ",", "0", ")", ")", ")", "||", "REGNO", "(", "XEXP", "(", "elt", ",", "0", ")", ")", "!=", "STACK_POINTER_REGNUM", "||", "(", "!", "CONST_INT_P", "(", "XEXP", "(", "elt", ",", "1", ")", ")", ")", "||", "INTVAL", "(", "XEXP", "(", "elt", ",", "1", ")", ")", "!=", "-", "(", "count", "-", "1", ")", "*", "4", ")", "return", "0", ";", "mask", "=", "0", ";", "for", "(", "i", "=", "1", ";", "i", "<", "count", ";", "i", "++", ")", "{", "elt", "=", "XVECEXP", "(", "op", ",", "0", ",", "i", ")", ";", "if", "(", "GET_CODE", "(", "elt", ")", "!=", "SET", "||", "(", "!", "MEM_P", "(", "SET_DEST", "(", "elt", ")", ")", ")", "||", "(", "!", "REG_P", "(", "SET_SRC", "(", "elt", ")", ")", ")", ")", "return", "0", ";", "last", "=", "REGNO", "(", "SET_SRC", "(", "elt", ")", ")", ";", "mask", "|=", "(", "1", "<<", "last", ")", ";", "elt", "=", "XEXP", "(", "SET_DEST", "(", "elt", ")", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "elt", ")", "!=", "PLUS", "||", "(", "!", "REG_P", "(", "XEXP", "(", "elt", ",", "0", ")", ")", ")", "||", "REGNO", "(", "XEXP", "(", "elt", ",", "0", ")", ")", "!=", "STACK_POINTER_REGNUM", "||", "(", "!", "CONST_INT_P", "(", "XEXP", "(", "elt", ",", "1", ")", ")", ")", "||", "INTVAL", "(", "XEXP", "(", "elt", ",", "1", ")", ")", "!=", "-", "i", "*", "4", ")", "return", "0", ";", "}", "if", "(", "(", "mask", "&", "0x3c000", ")", "!=", "0", "&&", "(", "mask", "&", "0x3c000", ")", "!=", "0x3c000", ")", "return", "0", ";", "return", "mask", ";", "}", "</s>" ]
[ "Recognize", "the", "PARALLEL", "rtx", "generated", "by", "mn10300_gen_multiple_store", "(", ")", ".", "This", "function", "is", "for", "MATCH_PARALLEL", "and", "so", "assumes", "OP", "is", "known", "to", "be", "parallel", ".", "If", "OP", "is", "a", "multiple", "store", ",", "return", "a", "mask", "indicating", "which", "registers", "it", "saves", ".", "Return", "0", "otherwise", "." ]
[ "mn10300", "0", "2", "0", "0", "0", "0", "0", "0", "1", "1", "1", "4", "0", "0", "1", "0", "0", "1", "0", "0", "0", "1", "1", "4", "0", "0x3c000", "0", "0x3c000", "0x3c000", "0" ]
mn10300
mn10300_store_multiple_regs
mn10300
MPU
GCC
11,985
349
1
[]
[ "<s>", "static", "void", "finish_bundle_states", "(", "void", ")", "{", "struct", "bundle_state", "*", "curr_state", ",", "*", "next_state", ";", "for", "(", "curr_state", "=", "allocated_bundle_states_chain", ";", "curr_state", "!=", "NULL", ";", "curr_state", "=", "next_state", ")", "{", "next_state", "=", "curr_state", "->", "allocated_states_chain", ";", "free", "(", "curr_state", "->", "dfa_state", ")", ";", "free", "(", "curr_state", ")", ";", "}", "}", "</s>" ]
[ "Finish", "work", "with", "abstract", "data", "`", "bundle", "states", "'", "." ]
[ "ia64" ]
ia64
finish_bundle_states
ia64
CPU
GCC
11,986
50
1
[]
[ "<s>", "void", "visium_expand_fp_cstore", "(", "rtx", "*", "operands", ",", "enum", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ")", "{", "enum", "rtx_code", "code", "=", "GET_CODE", "(", "operands", "[", "1", "]", ")", ";", "rtx", "op0", "=", "operands", "[", "0", "]", ",", "op1", "=", "operands", "[", "2", "]", ",", "op2", "=", "operands", "[", "3", "]", ",", "slt", ";", "bool", "reverse", "=", "false", ";", "switch", "(", "code", ")", "{", "case", "UNLE", ":", "case", "UNGE", ":", "code", "=", "reverse_condition_maybe_unordered", "(", "code", ")", ";", "reverse", "=", "true", ";", "case", "LT", ":", "case", "GT", ":", "if", "(", "code", "==", "GT", ")", "{", "rtx", "tmp", "=", "op1", ";", "op1", "=", "op2", ";", "op2", "=", "tmp", ";", "}", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "slt", "=", "gen_rtx_LT", "(", "SImode", ",", "op1", ",", "op2", ")", ";", "if", "(", "reverse", ")", "{", "rtx", "tmp", "=", "copy_to_mode_reg", "(", "SImode", ",", "gen_rtx_NEG", "(", "SImode", ",", "slt", ")", ")", ";", "emit_insn", "(", "gen_add3_insn", "(", "op0", ",", "tmp", ",", "const1_rtx", ")", ")", ";", "}", "else", "emit_insn", "(", "gen_rtx_SET", "(", "op0", ",", "slt", ")", ")", ";", "}", "</s>" ]
[ "Expand", "a", "cstore", "of", "OPERANDS", "in", "MODE", "for", "LT/GT/UNGE/UNLE", ".", "We", "generate", "the", "result", "in", "the", "C", "flag", "and", "use", "the", "ADC/SUBC", "instructions", "to", "write", "it", "into", "the", "destination", "register", "." ]
[ "visium", "1", "0", "2", "3" ]
visium3
visium_expand_fp_cstore
visium
Virtual ISA
GCC
11,987
168
1
[]
[ "<s>", "bool", "X86TargetLowering", "::", "isExtractSubvectorCheap", "(", "EVT", "ResVT", ",", "EVT", "SrcVT", ",", "unsigned", "Index", ")", "const", "{", "if", "(", "!", "isOperationLegalOrCustom", "(", "ISD", "::", "EXTRACT_SUBVECTOR", ",", "ResVT", ")", ")", "return", "false", ";", "if", "(", "ResVT", ".", "getVectorElementType", "(", ")", "==", "MVT", "::", "i1", ")", "return", "Index", "==", "0", "||", "(", "(", "ResVT", ".", "getSizeInBits", "(", ")", "==", "SrcVT", ".", "getSizeInBits", "(", ")", "*", "2", ")", "&&", "(", "Index", "==", "ResVT", ".", "getVectorNumElements", "(", ")", ")", ")", ";", "return", "(", "Index", "%", "ResVT", ".", "getVectorNumElements", "(", ")", ")", "==", "0", ";", "}", "</s>" ]
[ "Return", "true", "if", "EXTRACT_SUBVECTOR", "is", "cheap", "for", "this", "result", "type", "with", "this", "index", "." ]
[ "X86", "X86", "ISD::EXTRACT_SUBVECTOR", "MVT::i1", "0", "2", "0" ]
X86ISelLowering (2)5
isExtractSubvectorCheap
X86
CPU
LLVM
11,988
90
1
[]
[ "<s>", "SDValue", "SITargetLowering", "::", "PerformDAGCombine", "(", "SDNode", "*", "N", ",", "DAGCombinerInfo", "&", "DCI", ")", "const", "{", "SelectionDAG", "&", "DAG", "=", "DCI", ".", "DAG", ";", "DebugLoc", "DL", "=", "N", "->", "getDebugLoc", "(", ")", ";", "EVT", "VT", "=", "N", "->", "getValueType", "(", "0", ")", ";", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "SELECT_CC", ":", "{", "N", "->", "dump", "(", ")", ";", "ConstantSDNode", "*", "True", ",", "*", "False", ";", "if", "(", "(", "True", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "N", "->", "getOperand", "(", "2", ")", ")", ")", "&&", "(", "False", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "N", "->", "getOperand", "(", "3", ")", ")", ")", "&&", "True", "->", "isAllOnesValue", "(", ")", "&&", "False", "->", "isNullValue", "(", ")", "&&", "VT", "==", "MVT", "::", "i1", ")", "{", "return", "DAG", ".", "getNode", "(", "ISD", "::", "SETCC", ",", "DL", ",", "VT", ",", "N", "->", "getOperand", "(", "0", ")", ",", "N", "->", "getOperand", "(", "1", ")", ",", "N", "->", "getOperand", "(", "4", ")", ")", ";", "}", "break", ";", "}", "case", "ISD", "::", "SETCC", ":", "{", "SDValue", "Arg0", "=", "N", "->", "getOperand", "(", "0", ")", ";", "SDValue", "Arg1", "=", "N", "->", "getOperand", "(", "1", ")", ";", "SDValue", "CC", "=", "N", "->", "getOperand", "(", "2", ")", ";", "ConstantSDNode", "*", "C", "=", "NULL", ";", "ISD", "::", "CondCode", "CCOp", "=", "dyn_cast", "<", "CondCodeSDNode", ">", "(", "CC", ")", "->", "get", "(", ")", ";", "if", "(", "VT", "==", "MVT", "::", "i1", "&&", "Arg0", ".", "getOpcode", "(", ")", "==", "ISD", "::", "SIGN_EXTEND", "&&", "Arg0", ".", "getOperand", "(", "0", ")", ".", "getValueType", "(", ")", "==", "MVT", "::", "i1", "&&", "(", "C", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Arg1", ")", ")", "&&", "C", "->", "isNullValue", "(", ")", "&&", "CCOp", "==", "ISD", "::", "SETNE", ")", "{", "return", "SimplifySetCC", "(", "VT", ",", "Arg0", ".", "getOperand", "(", "0", ")", ",", "DAG", ".", "getConstant", "(", "0", ",", "MVT", "::", "i1", ")", ",", "CCOp", ",", "true", ",", "DCI", ",", "DL", ")", ";", "}", "break", ";", "}", "}", "return", "SDValue", "(", ")", ";", "}", "</s>" ]
[ "This", "method", "will", "be", "invoked", "for", "all", "target", "nodes", "and", "for", "any", "target-independent", "nodes", "that", "the", "target", "has", "registered", "with", "invoke", "it", "for", "." ]
[ "R600", "SI", "0", "ISD::SELECT_CC", "2", "3", "MVT::i1", "ISD::SETCC", "0", "1", "4", "ISD::SETCC", "0", "1", "2", "ISD::CondCode", "MVT::i1", "ISD::SIGN_EXTEND", "0", "MVT::i1", "ISD::SETNE", "0", "0", "MVT::i1" ]
SIISelLowering104
PerformDAGCombine
R600
GPU
LLVM
11,989
328
1
[]
[ "<s>", "bool", "MCS51DAGToDAGISel", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "MCS51Subtarget", ">", "(", ")", ";", "return", "SelectionDAGISel", "::", "runOnMachineFunction", "(", "MF", ")", ";", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "MCS51", "MCS51", "MCS51" ]
MCS51ISelDAGToDAG
runOnMachineFunction
MCS51
MPU
LLVM
11,990
31
1
[]
[ "<s>", "bool", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "override", "{", "return", "false", ";", "}", "</s>" ]
[ "Check", "whether", "the", "given", "instruction", "may", "need", "relaxation", "." ]
[ "Sparc" ]
SparcAsmBackend16
mayNeedRelaxation
Sparc
CPU
LLVM
11,991
20
1
[]
[ "<s>", "int", "RV16KFrameLowering", "::", "getFrameIndexReference", "(", "const", "MachineFunction", "&", "MF", ",", "int", "FI", ",", "unsigned", "&", "FrameReg", ")", "const", "{", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "TargetRegisterInfo", "*", "RI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", "=", "MFI", ".", "getCalleeSavedInfo", "(", ")", ";", "int", "MinCSFI", "=", "0", ";", "int", "MaxCSFI", "=", "-", "1", ";", "int", "Offset", "=", "MFI", ".", "getObjectOffset", "(", "FI", ")", "-", "getOffsetOfLocalArea", "(", ")", "+", "MFI", ".", "getOffsetAdjustment", "(", ")", ";", "if", "(", "CSI", ".", "size", "(", ")", ")", "{", "MinCSFI", "=", "CSI", "[", "0", "]", ".", "getFrameIdx", "(", ")", ";", "MaxCSFI", "=", "CSI", "[", "CSI", ".", "size", "(", ")", "-", "1", "]", ".", "getFrameIdx", "(", ")", ";", "}", "FrameReg", "=", "RI", "->", "getFrameRegister", "(", "MF", ")", ";", "if", "(", "(", "FI", ">=", "MinCSFI", "&&", "FI", "<=", "MaxCSFI", ")", "||", "!", "hasFP", "(", "MF", ")", ")", "{", "FrameReg", "=", "RV16K", "::", "X1", ";", "Offset", "+=", "MF", ".", "getFrameInfo", "(", ")", ".", "getStackSize", "(", ")", ";", "}", "return", "Offset", ";", "}", "</s>" ]
[ "getFrameIndexReference", "-", "This", "method", "should", "return", "the", "base", "register", "and", "offset", "used", "to", "reference", "a", "frame", "index", "location", "." ]
[ "RV16K", "RV16K", "0", "1", "0", "1", "RV16K::X1" ]
RV16KFrameLowering
getFrameIndexReference
RV16K
Virtual ISA
LLVM
11,992
181
1
[]
[ "<s>", "bool", "X86TargetLowering", "::", "hasAndNotCompare", "(", "SDValue", "Y", ")", "const", "{", "EVT", "VT", "=", "Y", ".", "getValueType", "(", ")", ";", "if", "(", "VT", ".", "isVector", "(", ")", ")", "return", "false", ";", "if", "(", "!", "Subtarget", ".", "hasBMI", "(", ")", ")", "return", "false", ";", "if", "(", "VT", "!=", "MVT", "::", "i32", "&&", "VT", "!=", "MVT", "::", "i64", ")", "return", "false", ";", "return", "!", "isa", "<", "ConstantSDNode", ">", "(", "Y", ")", ";", "}", "</s>" ]
[ "Return", "true", "if", "the", "target", "should", "transform", ":", "(", "X", "&", "Y", ")", "==", "Y", "�", "?", "(", "~X", "&", "Y", ")", "==", "0", "(", "X", "&", "Y", ")", "!", "=", "Y", "�", "?", "(", "~X", "&", "Y", ")", "!", "=", "0", "." ]
[ "X86", "X86", "MVT::i32", "MVT::i64" ]
X86ISelLowering (2)5
hasAndNotCompare
X86
CPU
LLVM
11,993
70
1
[]
[ "<s>", "const", "MCPhysReg", "*", "AArch64RegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "assert", "(", "MF", "&&", "\"Invalid MachineFunction pointer.\"", ")", ";", "if", "(", "MF", "->", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "GHC", ")", "return", "CSR_AArch64_NoRegs_SaveList", ";", "if", "(", "MF", "->", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "AnyReg", ")", "return", "CSR_AArch64_AllRegs_SaveList", ";", "if", "(", "MF", "->", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "CXX_FAST_TLS", ")", "return", "MF", "->", "getInfo", "<", "AArch64FunctionInfo", ">", "(", ")", "->", "isSplitCSR", "(", ")", "?", "CSR_AArch64_CXX_TLS_Darwin_PE_SaveList", ":", "CSR_AArch64_CXX_TLS_Darwin_SaveList", ";", "if", "(", "MF", "->", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", "==", "CallingConv", "::", "PreserveMost", ")", "return", "CSR_AArch64_RT_MostRegs_SaveList", ";", "else", "return", "CSR_AArch64_AAPCS_SaveList", ";", "}", "</s>" ]
[ "Code", "Generation", "virtual", "methods", "..." ]
[ "AArch64", "AArch64", "\"Invalid MachineFunction pointer.\"", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64" ]
AArch64RegisterInfo10
getCalleeSavedRegs
AArch64
CPU
LLVM
11,994
117
1
[]
[ "<s>", "void", "RISCVAsmBackend", "::", "applyFixup", "(", "const", "MCFixup", "&", "Fixup", ",", "char", "*", "Data", ",", "unsigned", "DataSize", ",", "uint64_t", "Value", ",", "bool", "IsPCRel", ",", "MCContext", "&", "Ctx", ")", "const", "{", "return", ";", "}", "</s>" ]
[ "Apply", "the", "Value", "for", "given", "Fixup", "into", "the", "provided", "data", "fragment", ",", "at", "the", "offset", "specified", "by", "the", "fixup", "and", "following", "the", "fixup", "kind", "as", "appropriate", "." ]
[ "RISCV", "RISCV" ]
RISCVAsmBackend33
applyFixup
RISCV
CPU
LLVM
11,995
32
1
[]
[ "<s>", "bool", "ix86_epilogue_uses", "(", "int", "regno", ")", "{", "return", "(", "epilogue_completed", "&&", "cfun", "->", "machine", "->", "no_caller_saved_registers", "&&", "!", "fixed_regs", "[", "regno", "]", "&&", "!", "STACK_REGNO_P", "(", "regno", ")", "&&", "!", "MMX_REGNO_P", "(", "regno", ")", ")", ";", "}", "</s>" ]
[ "Return", "true", "if", "REGNO", "is", "used", "by", "the", "epilogue", "." ]
[ "i386" ]
i386
ix86_epilogue_uses
i386
CPU
GCC
11,996
37
1
[]
[ "<s>", "SDValue", "RISCVTargetLowering", "::", "LowerOperation", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "report_fatal_error", "(", "\"unimplemented operand\"", ")", ";", "case", "ISD", "::", "GlobalAddress", ":", "return", "lowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BlockAddress", ":", "return", "lowerBlockAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "ConstantPool", ":", "return", "lowerConstantPool", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SELECT", ":", "return", "lowerSELECT", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "VASTART", ":", "return", "lowerVASTART", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "FRAMEADDR", ":", "return", "lowerFRAMEADDR", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "RETURNADDR", ":", "return", "lowerRETURNADDR", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SHL_PARTS", ":", "return", "lowerShiftLeftParts", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SRA_PARTS", ":", "return", "lowerShiftRightParts", "(", "Op", ",", "DAG", ",", "true", ")", ";", "case", "ISD", "::", "SRL_PARTS", ":", "return", "lowerShiftRightParts", "(", "Op", ",", "DAG", ",", "false", ")", ";", "case", "ISD", "::", "BITCAST", ":", "{", "assert", "(", "Subtarget", ".", "is64Bit", "(", ")", "&&", "Subtarget", ".", "hasStdExtF", "(", ")", "&&", "\"Unexpected custom legalisation\"", ")", ";", "SDLoc", "DL", "(", "Op", ")", ";", "SDValue", "Op0", "=", "Op", ".", "getOperand", "(", "0", ")", ";", "if", "(", "Op", ".", "getValueType", "(", ")", "!=", "MVT", "::", "f32", "||", "Op0", ".", "getValueType", "(", ")", "!=", "MVT", "::", "i32", ")", "return", "SDValue", "(", ")", ";", "SDValue", "NewOp0", "=", "DAG", ".", "getNode", "(", "ISD", "::", "ANY_EXTEND", ",", "DL", ",", "MVT", "::", "i64", ",", "Op0", ")", ";", "SDValue", "FPConv", "=", "DAG", ".", "getNode", "(", "RISCVISD", "::", "FMV_W_X_RV64", ",", "DL", ",", "MVT", "::", "f32", ",", "NewOp0", ")", ";", "return", "FPConv", ";", "}", "}", "}", "</s>" ]
[ "LowerOperation", "-", "Provide", "custom", "lowering", "hooks", "for", "some", "operations", "." ]
[ "RISCV", "RISCV", "\"unimplemented operand\"", "ISD::GlobalAddress", "ISD::BlockAddress", "ISD::ConstantPool", "ISD::SELECT", "ISD::VASTART", "ISD::FRAMEADDR", "ISD::RETURNADDR", "ISD::SHL_PARTS", "ISD::SRA_PARTS", "ISD::SRL_PARTS", "ISD::BITCAST", "\"Unexpected custom legalisation\"", "0", "MVT::f32", "MVT::i32", "ISD::ANY_EXTEND", "MVT::i64", "RISCVISD::FMV_W_X_RV64", "MVT::f32" ]
RISCVISelLowering56
LowerOperation
RISCV
CPU
LLVM
11,997
276
1
[]
[ "<s>", "Value", "*", "AArch64TargetLowering", "::", "emitStoreConditional", "(", "IRBuilder", "<", ">", "&", "Builder", ",", "Value", "*", "Val", ",", "Value", "*", "Addr", ",", "AtomicOrdering", "Ord", ")", "const", "{", "Module", "*", "M", "=", "Builder", ".", "GetInsertBlock", "(", ")", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "bool", "IsRelease", "=", "isReleaseOrStronger", "(", "Ord", ")", ";", "if", "(", "Val", "->", "getType", "(", ")", "->", "getPrimitiveSizeInBits", "(", ")", "==", "128", ")", "{", "Intrinsic", "::", "ID", "Int", "=", "IsRelease", "?", "Intrinsic", "::", "aarch64_stlxp", ":", "Intrinsic", "::", "aarch64_stxp", ";", "Function", "*", "Stxr", "=", "Intrinsic", "::", "getDeclaration", "(", "M", ",", "Int", ")", ";", "Type", "*", "Int64Ty", "=", "Type", "::", "getInt64Ty", "(", "M", "->", "getContext", "(", ")", ")", ";", "Value", "*", "Lo", "=", "Builder", ".", "CreateTrunc", "(", "Val", ",", "Int64Ty", ",", "\"lo\"", ")", ";", "Value", "*", "Hi", "=", "Builder", ".", "CreateTrunc", "(", "Builder", ".", "CreateLShr", "(", "Val", ",", "64", ")", ",", "Int64Ty", ",", "\"hi\"", ")", ";", "Addr", "=", "Builder", ".", "CreateBitCast", "(", "Addr", ",", "Type", "::", "getInt8PtrTy", "(", "M", "->", "getContext", "(", ")", ")", ")", ";", "return", "Builder", ".", "CreateCall", "(", "Stxr", ",", "{", "Lo", ",", "Hi", ",", "Addr", "}", ")", ";", "}", "Intrinsic", "::", "ID", "Int", "=", "IsRelease", "?", "Intrinsic", "::", "aarch64_stlxr", ":", "Intrinsic", "::", "aarch64_stxr", ";", "Type", "*", "Tys", "[", "]", "=", "{", "Addr", "->", "getType", "(", ")", "}", ";", "Function", "*", "Stxr", "=", "Intrinsic", "::", "getDeclaration", "(", "M", ",", "Int", ",", "Tys", ")", ";", "return", "Builder", ".", "CreateCall", "(", "Stxr", ",", "{", "Builder", ".", "CreateZExtOrBitCast", "(", "Val", ",", "Stxr", "->", "getFunctionType", "(", ")", "->", "getParamType", "(", "0", ")", ")", ",", "Addr", "}", ")", ";", "}", "</s>" ]
[ "Perform", "a", "store-conditional", "operation", "to", "Addr", "." ]
[ "AArch64", "AArch64", "128", "Intrinsic::ID", "Intrinsic::aarch64_stlxp", "Intrinsic::aarch64_stxp", "Intrinsic::getDeclaration", "\"lo\"", "64", "\"hi\"", "Intrinsic::ID", "Intrinsic::aarch64_stlxr", "Intrinsic::aarch64_stxr", "Intrinsic::getDeclaration", "0" ]
AArch64ISelLowering (2)
emitStoreConditional
AArch64
CPU
LLVM
11,998
258
1
[]
[ "<s>", "bool", "AMDGPUCFGStructurizer", "::", "prepare", "(", ")", "{", "bool", "Changed", "=", "false", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"AMDGPUCFGStructurizer::prepare\\n\"", ";", ")", ";", "orderBlocks", "(", "FuncRep", ")", ";", "SmallVector", "<", "MachineBasicBlock", "*", ",", "DEFAULT_VEC_SLOTS", ">", "RetBlks", ";", "for", "(", "MachineLoop", "*", "LoopRep", ":", "*", "MLI", ")", "{", "MBBVector", "ExitingMBBs", ";", "LoopRep", "->", "getExitingBlocks", "(", "ExitingMBBs", ")", ";", "if", "(", "ExitingMBBs", ".", "size", "(", ")", "==", "0", ")", "{", "MachineBasicBlock", "*", "DummyExitBlk", "=", "normalizeInfiniteLoopExit", "(", "LoopRep", ")", ";", "if", "(", "DummyExitBlk", ")", "RetBlks", ".", "push_back", "(", "DummyExitBlk", ")", ";", "}", "}", "for", "(", "MachineBasicBlock", "*", "MBB", ":", "OrderedBlks", ")", "{", "removeUnconditionalBranch", "(", "MBB", ")", ";", "removeRedundantConditionalBranch", "(", "MBB", ")", ";", "if", "(", "isReturnBlock", "(", "MBB", ")", ")", "{", "RetBlks", ".", "push_back", "(", "MBB", ")", ";", "}", "assert", "(", "MBB", "->", "succ_size", "(", ")", "<=", "2", ")", ";", "}", "if", "(", "RetBlks", ".", "size", "(", ")", ">=", "2", ")", "{", "addDummyExitBlock", "(", "RetBlks", ")", ";", "Changed", "=", "true", ";", "}", "return", "Changed", ";", "}", "</s>" ]
[ "prepare", "-", "Reset", "state", "and", "prepare", "for", "a", "new", "spill", "placement", "computation", "." ]
[ "AMDGPU", "AMDGPU", "\"AMDGPUCFGStructurizer::prepare\\n\"", "0", "2", "2" ]
AMDILCFGStructurizer36
prepare
AMDGPU
GPU
LLVM
11,999
161
1
[]