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>", "static", "int", "eligible_for_restore_insn", "(", "rtx", "trial", ",", "bool", "return_p", ")", "{", "rtx", "pat", "=", "PATTERN", "(", "trial", ")", ";", "rtx", "src", "=", "SET_SRC", "(", "pat", ")", ";", "bool", "src_is_freg", "=", "false", ";", "rtx", "src_reg", ";", "src_reg", "=", "src", ";", "if", "(", "GET_CODE", "(", "src_reg", ")", "==", "SUBREG", ")", "src_reg", "=", "SUBREG_REG", "(", "src_reg", ")", ";", "if", "(", "GET_CODE", "(", "src_reg", ")", "==", "REG", "&&", "SPARC_FP_REG_P", "(", "REGNO", "(", "src_reg", ")", ")", ")", "src_is_freg", "=", "true", ";", "if", "(", "GET_MODE_CLASS", "(", "GET_MODE", "(", "src", ")", ")", "!=", "MODE_FLOAT", "&&", "arith_operand", "(", "src", ",", "GET_MODE", "(", "src", ")", ")", "&&", "!", "src_is_freg", ")", "{", "if", "(", "TARGET_ARCH64", ")", "return", "GET_MODE_SIZE", "(", "GET_MODE", "(", "src", ")", ")", "<=", "GET_MODE_SIZE", "(", "DImode", ")", ";", "else", "return", "GET_MODE_SIZE", "(", "GET_MODE", "(", "src", ")", ")", "<=", "GET_MODE_SIZE", "(", "SImode", ")", ";", "}", "else", "if", "(", "GET_MODE_CLASS", "(", "GET_MODE", "(", "src", ")", ")", "!=", "MODE_FLOAT", "&&", "arith_double_operand", "(", "src", ",", "GET_MODE", "(", "src", ")", ")", "&&", "!", "src_is_freg", ")", "return", "GET_MODE_SIZE", "(", "GET_MODE", "(", "src", ")", ")", "<=", "GET_MODE_SIZE", "(", "DImode", ")", ";", "else", "if", "(", "!", "TARGET_FPU", "&&", "register_operand", "(", "src", ",", "SFmode", ")", ")", "return", "1", ";", "else", "if", "(", "!", "TARGET_FPU", "&&", "TARGET_ARCH64", "&&", "register_operand", "(", "src", ",", "DFmode", ")", ")", "return", "1", ";", "else", "if", "(", "return_p", "&&", "TARGET_V9", "&&", "!", "epilogue_renumber", "(", "&", "pat", ",", "1", ")", ")", "return", "1", ";", "else", "if", "(", "GET_CODE", "(", "src", ")", "==", "PLUS", "&&", "register_operand", "(", "XEXP", "(", "src", ",", "0", ")", ",", "SImode", ")", "&&", "arith_operand", "(", "XEXP", "(", "src", ",", "1", ")", ",", "SImode", ")", ")", "return", "1", ";", "else", "if", "(", "GET_CODE", "(", "src", ")", "==", "PLUS", "&&", "register_operand", "(", "XEXP", "(", "src", ",", "0", ")", ",", "DImode", ")", "&&", "arith_double_operand", "(", "XEXP", "(", "src", ",", "1", ")", ",", "DImode", ")", ")", "return", "1", ";", "else", "if", "(", "GET_CODE", "(", "src", ")", "==", "LO_SUM", "&&", "!", "TARGET_CM_MEDMID", "&&", "(", "(", "register_operand", "(", "XEXP", "(", "src", ",", "0", ")", ",", "SImode", ")", "&&", "immediate_operand", "(", "XEXP", "(", "src", ",", "1", ")", ",", "SImode", ")", ")", "||", "(", "TARGET_ARCH64", "&&", "register_operand", "(", "XEXP", "(", "src", ",", "0", ")", ",", "DImode", ")", "&&", "immediate_operand", "(", "XEXP", "(", "src", ",", "1", ")", ",", "DImode", ")", ")", ")", ")", "return", "1", ";", "else", "if", "(", "GET_CODE", "(", "src", ")", "==", "ASHIFT", "&&", "(", "register_operand", "(", "XEXP", "(", "src", ",", "0", ")", ",", "SImode", ")", "||", "register_operand", "(", "XEXP", "(", "src", ",", "0", ")", ",", "DImode", ")", ")", "&&", "XEXP", "(", "src", ",", "1", ")", "==", "const1_rtx", ")", "return", "1", ";", "return", "0", ";", "}", "</s>" ]
[ "Return", "nonzero", "if", "TRIAL", ",", "an", "insn", ",", "can", "be", "combined", "with", "a", "'restore", "'", "instruction", ".", "RETURN_P", "is", "true", "if", "the", "v9", "variant", "'return", "'", "is", "to", "be", "considered", "in", "the", "test", "too", ".", "TRIAL", "must", "be", "a", "SET", "whose", "destination", "is", "a", "REG", "appropriate", "for", "the", "'restore", "'", "instruction", "or", ",", "if", "RETURN_P", "is", "true", ",", "for", "the", "'return", "'", "instruction", "." ]
[ "sparc", "1", "1", "1", "1", "0", "1", "1", "0", "1", "1", "0", "1", "0", "1", "1", "0", "0", "1", "1", "0" ]
sparc
eligible_for_restore_insn
sparc
CPU
GCC
30,700
427
1
[]
[ "<s>", "unsigned", "int", "TL45AsmParser", "::", "validateTargetOperandClass", "(", "MCParsedAsmOperand", "&", "Op", ",", "unsigned", "Kind", ")", "{", "return", "MCTargetAsmParser", "::", "validateTargetOperandClass", "(", "Op", ",", "Kind", ")", ";", "}", "</s>" ]
[ "Allow", "a", "target", "to", "add", "special", "case", "operand", "matching", "for", "things", "that", "tblgen", "doesn't/ca", "n't", "handle", "effectively", "." ]
[ "TL45", "TL45" ]
TL45AsmParser
validateTargetOperandClass
TL45
MPU
LLVM
30,701
25
1
[]
[ "<s>", "unsigned", "getHash", "(", ")", "const", "{", "return", "Hash", ";", "}", "</s>" ]
[ "Get", "the", "hash", ",", "if", "any", "." ]
[ "SPIRV" ]
SPIRVDuplicatesTracker
getHash
SPIRV
Virtual ISA
LLVM
30,702
10
1
[]
[ "<s>", "MachineBasicBlock", "::", "iterator", "SIFrameLowering", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "int64_t", "Amount", "=", "I", "->", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "if", "(", "Amount", "==", "0", ")", "return", "MBB", ".", "erase", "(", "I", ")", ";", "const", "GCNSubtarget", "&", "ST", "=", "MF", ".", "getSubtarget", "<", "GCNSubtarget", ">", "(", ")", ";", "const", "SIInstrInfo", "*", "TII", "=", "ST", ".", "getInstrInfo", "(", ")", ";", "const", "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", ")", ")", "{", "Amount", "=", "alignTo", "(", "Amount", ",", "getStackAlign", "(", ")", ")", ";", "assert", "(", "isUInt", "<", "32", ">", "(", "Amount", ")", "&&", "\"exceeded stack address space size\"", ")", ";", "const", "SIMachineFunctionInfo", "*", "MFI", "=", "MF", ".", "getInfo", "<", "SIMachineFunctionInfo", ">", "(", ")", ";", "Register", "SPReg", "=", "MFI", "->", "getStackPtrOffsetReg", "(", ")", ";", "Amount", "*=", "getScratchScaleFactor", "(", "ST", ")", ";", "if", "(", "IsDestroy", ")", "Amount", "=", "-", "Amount", ";", "auto", "Add", "=", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "TII", "->", "get", "(", "AMDGPU", "::", "S_ADD_I32", ")", ",", "SPReg", ")", ".", "addReg", "(", "SPReg", ")", ".", "addImm", "(", "Amount", ")", ";", "Add", "->", "getOperand", "(", "3", ")", ".", "setIsDead", "(", ")", ";", "}", "else", "if", "(", "CalleePopAmount", "!=", "0", ")", "{", "llvm_unreachable", "(", "\"is this used?\"", ")", ";", "}", "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", ")", "." ]
[ "AMDGPU", "SI", "0", "0", "SI", "1", "0", "32", "\"exceeded stack address space size\"", "SI", "SI", "AMDGPU::S_ADD_I32", "3", "0", "\"is this used?\"" ]
SIFrameLowering12
eliminateCallFramePseudoInstr
AMDGPU
GPU
LLVM
30,703
264
1
[]
[ "<s>", "MachineOperand", "&", "AArch64InstrInfo", "::", "getMemOpBaseRegImmOfsOffsetOperand", "(", "MachineInstr", "&", "LdSt", ")", "const", "{", "assert", "(", "LdSt", ".", "mayLoadOrStore", "(", ")", "&&", "\"Expected a memory operation.\"", ")", ";", "MachineOperand", "&", "OfsOp", "=", "LdSt", ".", "getOperand", "(", "LdSt", ".", "getNumExplicitOperands", "(", ")", "-", "1", ")", ";", "assert", "(", "OfsOp", ".", "isImm", "(", ")", "&&", "\"Offset operand wasn't immediate.\"", ")", ";", "return", "OfsOp", ";", "}", "</s>" ]
[ "Return", "the", "immediate", "offset", "of", "the", "base", "register", "in", "a", "load/store", "LdSt", "." ]
[ "AArch64", "AArch64", "\"Expected a memory operation.\"", "1", "\"Offset operand wasn't immediate.\"" ]
AArch64InstrInfo (2)
getMemOpBaseRegImmOfsOffsetOperand
AArch64
CPU
LLVM
30,704
55
1
[]
[ "<s>", "static", "int", "classes_intersect", "(", "int", "class1", ",", "int", "class2", ")", "{", "return", "class_contents", "[", "class1", "]", "[", "0", "]", "&", "class_contents", "[", "class2", "]", "[", "0", "]", ";", "}", "</s>" ]
[ "Returns", "TRUE", "If", "there", "are", "any", "registers", "that", "exist", "in", "both", "register", "classes", "." ]
[ "m32c", "0", "0" ]
m32c2
classes_intersect
m32c
MPU
GCC
30,705
29
1
[]
[ "<s>", "const", "MCExpr", "*", "ARMElfTargetObjectFile", "::", "getTTypeGlobalReference", "(", "const", "GlobalValue", "*", "GV", ",", "Mangler", "*", "Mang", ",", "MachineModuleInfo", "*", "MMI", ",", "unsigned", "Encoding", ",", "MCStreamer", "&", "Streamer", ")", "const", "{", "assert", "(", "Encoding", "==", "DW_EH_PE_absptr", "&&", "\"Can handle absptr encoding only\"", ")", ";", "Triple", "T", "(", "MMI", "->", "getModule", "(", ")", "->", "getTargetTriple", "(", ")", ")", ";", "if", "(", "T", ".", "isOSNaCl", "(", ")", ")", "return", "TargetLoweringObjectFileELF", "::", "getTTypeGlobalReference", "(", "GV", ",", "Mang", ",", "MMI", ",", "Encoding", ",", "Streamer", ")", ";", "return", "MCSymbolRefExpr", "::", "Create", "(", "Mang", "->", "getSymbol", "(", "GV", ")", ",", "MCSymbolRefExpr", "::", "VK_ARM_TARGET2", ",", "getContext", "(", ")", ")", ";", "}", "</s>" ]
[ "The", "mach-o", "version", "of", "this", "method", "defaults", "to", "returning", "a", "stub", "reference", "." ]
[ "ARM", "ARM", "\"Can handle absptr encoding only\"", "ARM" ]
ARMTargetObjectFile15
getTTypeGlobalReference
ARM
CPU
LLVM
30,706
98
1
[]
[ "<s>", "static", "rtx", "mn10300_libcall_value", "(", "machine_mode", "mode", ",", "const_rtx", "fun", "ATTRIBUTE_UNUSED", ")", "{", "return", "gen_rtx_REG", "(", "mode", ",", "FIRST_DATA_REGNUM", ")", ";", "}", "</s>" ]
[ "Implements", "TARGET_LIBCALL_VALUE", "." ]
[ "mn10300" ]
mn10300
mn10300_libcall_value
mn10300
MPU
GCC
30,707
21
1
[]
[ "<s>", "static", "void", "ix86_expand_ashl_const", "(", "rtx", "operand", ",", "int", "count", ",", "machine_mode", "mode", ")", "{", "rtx", "(", "*", "insn", ")", "(", "rtx", ",", "rtx", ",", "rtx", ")", ";", "if", "(", "count", "==", "1", "||", "(", "count", "*", "ix86_cost", "->", "add", "<=", "ix86_cost", "->", "shift_const", "&&", "!", "optimize_insn_for_size_p", "(", ")", ")", ")", "{", "insn", "=", "mode", "==", "DImode", "?", "gen_addsi3", ":", "gen_adddi3", ";", "while", "(", "count", "--", ">", "0", ")", "emit_insn", "(", "insn", "(", "operand", ",", "operand", ",", "operand", ")", ")", ";", "}", "else", "{", "insn", "=", "mode", "==", "DImode", "?", "gen_ashlsi3", ":", "gen_ashldi3", ";", "emit_insn", "(", "insn", "(", "operand", ",", "operand", ",", "GEN_INT", "(", "count", ")", ")", ")", ";", "}", "}", "</s>" ]
[ "Helper", "function", "of", "ix86_split_ashl", "used", "to", "generate", "an", "SImode/DImode", "left", "shift", "by", "a", "constant", ",", "either", "using", "a", "single", "shift", "or", "a", "sequence", "of", "add", "instructions", "." ]
[ "i386", "1", "0" ]
i3864
ix86_expand_ashl_const
i386
CPU
GCC
30,708
110
1
[]
[ "<s>", "void", "NVPTXAsmPrinter", "::", "emitGlobals", "(", "const", "Module", "&", "M", ")", "{", "SmallString", "<", "128", ">", "Str2", ";", "raw_svector_ostream", "OS2", "(", "Str2", ")", ";", "emitDeclarations", "(", "M", ",", "OS2", ")", ";", "SmallVector", "<", "const", "GlobalVariable", "*", ",", "8", ">", "Globals", ";", "DenseSet", "<", "const", "GlobalVariable", "*", ">", "GVVisited", ";", "DenseSet", "<", "const", "GlobalVariable", "*", ">", "GVVisiting", ";", "for", "(", "Module", "::", "const_global_iterator", "I", "=", "M", ".", "global_begin", "(", ")", ",", "E", "=", "M", ".", "global_end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "VisitGlobalVariableForEmission", "(", "I", ",", "Globals", ",", "GVVisited", ",", "GVVisiting", ")", ";", "assert", "(", "GVVisited", ".", "size", "(", ")", "==", "M", ".", "getGlobalList", "(", ")", ".", "size", "(", ")", "&&", "\"Missed a global variable\"", ")", ";", "assert", "(", "GVVisiting", ".", "size", "(", ")", "==", "0", "&&", "\"Did not fully process a global variable\"", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "Globals", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "printModuleLevelGV", "(", "Globals", "[", "i", "]", ",", "OS2", ")", ";", "OS2", "<<", "'\\n'", ";", "OutStreamer", "->", "EmitRawText", "(", "OS2", ".", "str", "(", ")", ")", ";", "}", "</s>" ]
[ "EmitGlobals", "-", "Emit", "all", "of", "the", "global", "variables", "to", "memory", ",", "storing", "their", "addresses", "into", "GlobalAddress", "." ]
[ "NVPTX", "NVPTX", "128", "8", "\"Missed a global variable\"", "0", "\"Did not fully process a global variable\"", "0" ]
NVPTXAsmPrinter
emitGlobals
NVPTX
GPU
LLVM
30,709
177
1
[]
[ "<s>", "static", "rtx", "function_arg_vector_value", "(", "int", "size", ",", "int", "slotno", ",", "bool", "named", ",", "int", "regno", ")", "{", "const", "int", "mult", "=", "(", "named", "?", "2", ":", "1", ")", ";", "unsigned", "int", "nwords", ";", "if", "(", "slotno", "==", "(", "named", "?", "SPARC_FP_ARG_MAX", ":", "SPARC_INT_ARG_MAX", ")", "-", "1", ")", "nwords", "=", "1", ";", "else", "nwords", "=", "CEIL_NWORDS", "(", "size", ")", ";", "rtx", "regs", "=", "gen_rtx_PARALLEL", "(", "BLKmode", ",", "rtvec_alloc", "(", "nwords", ")", ")", ";", "if", "(", "size", "<", "UNITS_PER_WORD", ")", "XVECEXP", "(", "regs", ",", "0", ",", "0", ")", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "SImode", ",", "regno", ")", ",", "const0_rtx", ")", ";", "else", "for", "(", "unsigned", "int", "i", "=", "0", ";", "i", "<", "nwords", ";", "i", "++", ")", "XVECEXP", "(", "regs", ",", "0", ",", "i", ")", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "word_mode", ",", "regno", "+", "i", "*", "mult", ")", ",", "GEN_INT", "(", "i", "*", "UNITS_PER_WORD", ")", ")", ";", "return", "regs", ";", "}", "</s>" ]
[ "Used", "by", "function_arg", "and", "sparc_function_value_1", "to", "implement", "the", "conventions", "for", "passing", "and", "returning", "BLKmode", "vectors", ".", "Return", "an", "expression", "valid", "as", "a", "return", "value", "for", "the", "FUNCTION_ARG", "and", "TARGET_FUNCTION_VALUE", ".", "SIZE", "is", "the", "size", "in", "bytes", "of", "the", "vector", ".", "REGNO", "is", "the", "FP", "hard", "register", "the", "vector", "will", "be", "passed", "in", "." ]
[ "sparc", "2", "1", "1", "1", "0", "0", "0", "0" ]
sparc
function_arg_vector_value
sparc
CPU
GCC
30,710
153
1
[]
[ "<s>", "void", "R600AsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "const", "R600Subtarget", "&", "STI", "=", "MF", "->", "getSubtarget", "<", "R600Subtarget", ">", "(", ")", ";", "R600MCInstLower", "MCInstLowering", "(", "OutContext", ",", "STI", ",", "*", "this", ")", ";", "StringRef", "Err", ";", "if", "(", "!", "STI", ".", "getInstrInfo", "(", ")", "->", "verifyInstruction", "(", "*", "MI", ",", "Err", ")", ")", "{", "LLVMContext", "&", "C", "=", "MI", "->", "getParent", "(", ")", "->", "getParent", "(", ")", "->", "getFunction", "(", ")", ".", "getContext", "(", ")", ";", "C", ".", "emitError", "(", "\"Illegal instruction detected: \"", "+", "Err", ")", ";", "MI", "->", "print", "(", "errs", "(", ")", ")", ";", "}", "if", "(", "MI", "->", "isBundle", "(", ")", ")", "{", "const", "MachineBasicBlock", "*", "MBB", "=", "MI", "->", "getParent", "(", ")", ";", "MachineBasicBlock", "::", "const_instr_iterator", "I", "=", "++", "MI", "->", "getIterator", "(", ")", ";", "while", "(", "I", "!=", "MBB", "->", "instr_end", "(", ")", "&&", "I", "->", "isInsideBundle", "(", ")", ")", "{", "EmitInstruction", "(", "&", "*", "I", ")", ";", "++", "I", ";", "}", "}", "else", "{", "MCInst", "TmpInst", ";", "MCInstLowering", ".", "lower", "(", "MI", ",", "TmpInst", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "TmpInst", ")", ";", "}", "}", "</s>" ]
[ "EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "." ]
[ "AMDGPU", "R600", "R600", "R600", "R600", "\"Illegal instruction detected: \"" ]
AMDGPUMCInstLower25
EmitInstruction
AMDGPU
GPU
LLVM
30,711
183
1
[]
[ "<s>", "static", "bool", "tryAddingSymbolicOperand", "(", "uint64_t", "Address", ",", "int32_t", "Value", ",", "bool", "isBranch", ",", "uint64_t", "InstSize", ",", "MCInst", "&", "MI", ",", "const", "MCDisassembler", "*", "Decoder", ")", "{", "return", "Decoder", "->", "tryAddingSymbolicOperand", "(", "MI", ",", "(", "uint32_t", ")", "Value", ",", "Address", ",", "isBranch", ",", "0", ",", "0", ",", "InstSize", ")", ";", "}", "</s>" ]
[ "Try", "to", "add", "a", "symbolic", "operand", "instead", "of", "Value", "to", "the", "MCInst", "." ]
[ "ARM", "0", "0" ]
ARMDisassembler39
tryAddingSymbolicOperand
ARM
CPU
LLVM
30,712
50
1
[]
[ "<s>", "SDValue", "SPUTargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", ",", "DebugLoc", "dl", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "getTargetMachine", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_SPU", ")", ";", "if", "(", "DAG", ".", "getMachineFunction", "(", ")", ".", "getRegInfo", "(", ")", ".", "liveout_empty", "(", ")", ")", "{", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "DAG", ".", "getMachineFunction", "(", ")", ".", "getRegInfo", "(", ")", ".", "addLiveOut", "(", "RVLocs", "[", "i", "]", ".", "getLocReg", "(", ")", ")", ";", "}", "SDValue", "Flag", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Can only return in registers!\"", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "dl", ",", "VA", ".", "getLocReg", "(", ")", ",", "OutVals", "[", "i", "]", ",", "Flag", ")", ";", "Flag", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "}", "if", "(", "Flag", ".", "getNode", "(", ")", ")", "return", "DAG", ".", "getNode", "(", "SPUISD", "::", "RET_FLAG", ",", "dl", ",", "MVT", "::", "Other", ",", "Chain", ",", "Flag", ")", ";", "else", "return", "DAG", ".", "getNode", "(", "SPUISD", "::", "RET_FLAG", ",", "dl", ",", "MVT", "::", "Other", ",", "Chain", ")", ";", "}", "</s>" ]
[ "This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "." ]
[ "CellSPU", "SPU", "ISD::OutputArg", "16", "SPU", "0", "0", "\"Can only return in registers!\"", "1", "SPUISD::RET_FLAG", "MVT::Other", "SPUISD::RET_FLAG", "MVT::Other" ]
SPUISelLowering11
LowerReturn
CellSPU
MPU
LLVM
30,713
269
1
[]
[ "<s>", "bool", "MipsSETargetLowering", "::", "isEligibleForTailCallOptimization", "(", "const", "CCState", "&", "CCInfo", ",", "unsigned", "NextStackOffset", ",", "const", "MipsFunctionInfo", "&", "FI", ")", "const", "{", "if", "(", "!", "EnableMipsTailCalls", ")", "return", "false", ";", "if", "(", "CCInfo", ".", "getInRegsParamsCount", "(", ")", ">", "0", "||", "FI", ".", "hasByvalArg", "(", ")", ")", "return", "false", ";", "return", "NextStackOffset", "<=", "FI", ".", "getIncomingArgSize", "(", ")", ";", "}", "</s>" ]
[ "Returns", "true", "if", "the", "call", "can", "be", "lowered", "as", "a", "tail", "call", "." ]
[ "Mips", "Mips", "Mips", "Mips", "0" ]
MipsSEISelLowering
isEligibleForTailCallOptimization
Mips
CPU
LLVM
30,714
57
1
[]
[ "<s>", "const", "char", "*", "AMDGPUPeepholeOpt", "::", "getPassName", "(", ")", "const", "{", "return", "\"AMDGPU PeepHole Optimization Pass\"", ";", "}", "</s>" ]
[ "getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "." ]
[ "R600", "\"AMDGPU PeepHole Optimization Pass\"" ]
AMDILPeepholeOptimizer
getPassName
R600
GPU
LLVM
30,715
14
1
[]
[ "<s>", "void", "ARMBaseRegisterInfo", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "const", "TargetFrameInfo", "*", "TFI", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameInfo", "(", ")", ";", "if", "(", "!", "TFI", "->", "hasReservedCallFrame", "(", "MF", ")", ")", "{", "MachineInstr", "*", "Old", "=", "I", ";", "DebugLoc", "dl", "=", "Old", "->", "getDebugLoc", "(", ")", ";", "unsigned", "Amount", "=", "Old", "->", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "if", "(", "Amount", "!=", "0", ")", "{", "unsigned", "Align", "=", "MF", ".", "getTarget", "(", ")", ".", "getFrameInfo", "(", ")", "->", "getStackAlignment", "(", ")", ";", "Amount", "=", "(", "Amount", "+", "Align", "-", "1", ")", "/", "Align", "*", "Align", ";", "ARMFunctionInfo", "*", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "assert", "(", "!", "AFI", "->", "isThumb1OnlyFunction", "(", ")", "&&", "\"This eliminateCallFramePseudoInstr does not support Thumb1!\"", ")", ";", "bool", "isARM", "=", "!", "AFI", "->", "isThumbFunction", "(", ")", ";", "unsigned", "Opc", "=", "Old", "->", "getOpcode", "(", ")", ";", "int", "PIdx", "=", "Old", "->", "findFirstPredOperandIdx", "(", ")", ";", "ARMCC", "::", "CondCodes", "Pred", "=", "(", "PIdx", "==", "-", "1", ")", "?", "ARMCC", "::", "AL", ":", "(", "ARMCC", "::", "CondCodes", ")", "Old", "->", "getOperand", "(", "PIdx", ")", ".", "getImm", "(", ")", ";", "if", "(", "Opc", "==", "ARM", "::", "ADJCALLSTACKDOWN", "||", "Opc", "==", "ARM", "::", "tADJCALLSTACKDOWN", ")", "{", "unsigned", "PredReg", "=", "Old", "->", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ";", "emitSPUpdate", "(", "isARM", ",", "MBB", ",", "I", ",", "dl", ",", "TII", ",", "-", "Amount", ",", "Pred", ",", "PredReg", ")", ";", "}", "else", "{", "unsigned", "PredReg", "=", "Old", "->", "getOperand", "(", "3", ")", ".", "getReg", "(", ")", ";", "assert", "(", "Opc", "==", "ARM", "::", "ADJCALLSTACKUP", "||", "Opc", "==", "ARM", "::", "tADJCALLSTACKUP", ")", ";", "emitSPUpdate", "(", "isARM", ",", "MBB", ",", "I", ",", "dl", ",", "TII", ",", "Amount", ",", "Pred", ",", "PredReg", ")", ";", "}", "}", "}", "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", ")", "." ]
[ "ARM", "ARM", "0", "0", "1", "ARM", "ARM", "\"This eliminateCallFramePseudoInstr does not support Thumb1!\"", "ARM", "ARMCC::CondCodes", "1", "ARMCC::AL", "ARMCC::CondCodes", "ARM::ADJCALLSTACKDOWN", "ARM::tADJCALLSTACKDOWN", "2", "ARM", "3", "ARM::ADJCALLSTACKUP", "ARM::tADJCALLSTACKUP", "ARM" ]
ARMBaseRegisterInfo36
eliminateCallFramePseudoInstr
ARM
CPU
LLVM
30,716
309
1
[]
[ "<s>", "char", "*", "aarch64_output_simd_mov_immediate", "(", "rtx", "const_vector", ",", "machine_mode", "mode", ",", "unsigned", "width", ")", "{", "bool", "is_valid", ";", "static", "char", "templ", "[", "40", "]", ";", "const", "char", "*", "mnemonic", ";", "const", "char", "*", "shift_op", ";", "unsigned", "int", "lane_count", "=", "0", ";", "char", "element_char", ";", "struct", "simd_immediate_info", "info", "=", "{", "NULL_RTX", ",", "0", ",", "0", ",", "false", ",", "false", "}", ";", "is_valid", "=", "aarch64_simd_valid_immediate", "(", "const_vector", ",", "mode", ",", "false", ",", "&", "info", ")", ";", "gcc_assert", "(", "is_valid", ")", ";", "element_char", "=", "sizetochar", "(", "info", ".", "element_width", ")", ";", "lane_count", "=", "width", "/", "info", ".", "element_width", ";", "mode", "=", "GET_MODE_INNER", "(", "mode", ")", ";", "if", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_FLOAT", ")", "{", "gcc_assert", "(", "info", ".", "shift", "==", "0", "&&", "!", "info", ".", "mvn", ")", ";", "if", "(", "aarch64_float_const_zero_rtx_p", "(", "info", ".", "value", ")", ")", "info", ".", "value", "=", "GEN_INT", "(", "0", ")", ";", "else", "{", "char", "float_buf", "[", "buf_size", "]", "=", "{", "'\\0'", "}", ";", "real_to_decimal_for_mode", "(", "float_buf", ",", "CONST_DOUBLE_REAL_VALUE", "(", "info", ".", "value", ")", ",", "buf_size", ",", "buf_size", ",", "1", ",", "mode", ")", ";", "if", "(", "lane_count", "==", "1", ")", "snprintf", "(", "templ", ",", "sizeof", "(", "templ", ")", ",", "\"fmov\\t%%d0, %s\"", ",", "float_buf", ")", ";", "else", "snprintf", "(", "templ", ",", "sizeof", "(", "templ", ")", ",", "\"fmov\\t%%0.%d%c, %s\"", ",", "lane_count", ",", "element_char", ",", "float_buf", ")", ";", "return", "templ", ";", "}", "}", "mnemonic", "=", "info", ".", "mvn", "?", "\"mvni\"", ":", "\"movi\"", ";", "shift_op", "=", "info", ".", "msl", "?", "\"msl\"", ":", "\"lsl\"", ";", "gcc_assert", "(", "CONST_INT_P", "(", "info", ".", "value", ")", ")", ";", "if", "(", "lane_count", "==", "1", ")", "snprintf", "(", "templ", ",", "sizeof", "(", "templ", ")", ",", "\"%s\\t%%d0, \"", "HOST_WIDE_INT_PRINT_HEX", ",", "mnemonic", ",", "UINTVAL", "(", "info", ".", "value", ")", ")", ";", "else", "if", "(", "info", ".", "shift", ")", "snprintf", "(", "templ", ",", "sizeof", "(", "templ", ")", ",", "\"%s\\t%%0.%d%c, \"", "HOST_WIDE_INT_PRINT_HEX", "\", %s %d\"", ",", "mnemonic", ",", "lane_count", ",", "element_char", ",", "UINTVAL", "(", "info", ".", "value", ")", ",", "shift_op", ",", "info", ".", "shift", ")", ";", "else", "snprintf", "(", "templ", ",", "sizeof", "(", "templ", ")", ",", "\"%s\\t%%0.%d%c, \"", "HOST_WIDE_INT_PRINT_HEX", ",", "mnemonic", ",", "lane_count", ",", "element_char", ",", "UINTVAL", "(", "info", ".", "value", ")", ")", ";", "return", "templ", ";", "}", "</s>" ]
[ "Returns", "the", "string", "with", "the", "instruction", "for", "AdvSIMD", "MOVI", ",", "MVNI", ",", "ORR", "or", "BIC", "immediate", "with", "a", "CONST_VECTOR", "of", "MODE", "and", "WIDTH", ".", "WHICH", "selects", "whether", "to", "output", "MOVI/MVNI", ",", "ORR", "or", "BIC", "immediate", "." ]
[ "aarch64", "40", "0", "0", "0", "0", "0", "1", "1", "\"fmov\\t%%d0, %s\"", "\"fmov\\t%%0.%d%c, %s\"", "\"mvni\"", "\"movi\"", "\"msl\"", "\"lsl\"", "1", "\"%s\\t%%d0, \"", "\"%s\\t%%0.%d%c, \"", "\", %s %d\"", "\"%s\\t%%0.%d%c, \"" ]
aarch643
aarch64_output_simd_mov_immediate
aarch64
CPU
GCC
30,717
349
1
[]
[ "<s>", "SDValue", "AArch64TargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "const", "SDLoc", "&", "DL", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ",", "bool", "isThisReturn", ",", "SDValue", "ThisVal", ")", "const", "{", "CCAssignFn", "*", "RetCC", "=", "CallConv", "==", "CallingConv", "::", "WebKit_JS", "?", "RetCC_AArch64_WebKit_JS", ":", "RetCC_AArch64_AAPCS", ";", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "RetCC", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "CCValAssign", "VA", "=", "RVLocs", "[", "i", "]", ";", "if", "(", "i", "==", "0", "&&", "isThisReturn", "&&", "EnableThisRetForwarding", ")", "{", "assert", "(", "!", "VA", ".", "needsCustom", "(", ")", "&&", "VA", ".", "getLocVT", "(", ")", "==", "MVT", "::", "i64", "&&", "\"unexpected return calling convention register assignment\"", ")", ";", "InVals", ".", "push_back", "(", "ThisVal", ")", ";", "continue", ";", "}", "SDValue", "Val", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ",", "InFlag", ")", ";", "Chain", "=", "Val", ".", "getValue", "(", "1", ")", ";", "InFlag", "=", "Val", ".", "getValue", "(", "2", ")", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown loc info!\"", ")", ";", "case", "CCValAssign", "::", "Full", ":", "break", ";", "case", "CCValAssign", "::", "BCvt", ":", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "BITCAST", ",", "DL", ",", "VA", ".", "getValVT", "(", ")", ",", "Val", ")", ";", "break", ";", "}", "InVals", ".", "push_back", "(", "Val", ")", ";", "}", "return", "Chain", ";", "}", "</s>" ]
[ "LowerCallResult", "-", "Lower", "the", "result", "values", "of", "an", "ISD", ":", ":CALL", "into", "the", "appropriate", "copies", "out", "of", "appropriate", "physical", "registers", "." ]
[ "AArch64", "AArch64", "ISD::InputArg", "AArch64", "AArch64", "16", "0", "0", "MVT::i64", "\"unexpected return calling convention register assignment\"", "1", "2", "\"Unknown loc info!\"", "ISD::BITCAST" ]
AArch64ISelLowering162
LowerCallResult
AArch64
CPU
LLVM
30,718
285
1
[]
[ "<s>", "static", "void", "workaround_barsyncs", "(", "void", ")", "{", "bool", "seen_barsync", "=", "false", ";", "for", "(", "rtx_insn", "*", "insn", "=", "get_insns", "(", ")", ";", "insn", ";", "insn", "=", "NEXT_INSN", "(", "insn", ")", ")", "{", "if", "(", "INSN_P", "(", "insn", ")", "&&", "recog_memoized", "(", "insn", ")", "==", "CODE_FOR_nvptx_barsync", ")", "{", "if", "(", "seen_barsync", ")", "{", "emit_insn_before", "(", "gen_nvptx_membar_cta", "(", ")", ",", "insn", ")", ";", "emit_insn_before", "(", "gen_nvptx_membar_cta", "(", ")", ",", "insn", ")", ";", "}", "seen_barsync", "=", "true", ";", "continue", ";", "}", "if", "(", "!", "seen_barsync", ")", "continue", ";", "if", "(", "NOTE_P", "(", "insn", ")", "||", "DEBUG_INSN_P", "(", "insn", ")", ")", "continue", ";", "else", "if", "(", "INSN_P", "(", "insn", ")", ")", "switch", "(", "recog_memoized", "(", "insn", ")", ")", "{", "case", "CODE_FOR_nvptx_fork", ":", "case", "CODE_FOR_nvptx_forked", ":", "case", "CODE_FOR_nvptx_joining", ":", "case", "CODE_FOR_nvptx_join", ":", "continue", ";", "default", ":", "break", ";", "}", "seen_barsync", "=", "false", ";", "}", "}", "</s>" ]
[ "Insert", "two", "membar.cta", "insns", "inbetween", "two", "subsequent", "bar.sync", "insns", ".", "This", "works", "around", "a", "hang", "observed", "at", "driver", "version", "390.48", "for", "sm_50", "." ]
[ "nvptx" ]
nvptx
workaround_barsyncs
nvptx
GPU
GCC
30,719
140
1
[]
[ "<s>", "const", "SmallVectorImpl", "<", "MachineBasicBlock", "*", ">", "&", "getOrder", "(", ")", "const", "{", "return", "Order", ";", "}", "</s>" ]
[ "Returns", "the", "SDNodeOrder", "." ]
[ "ARM" ]
ARMLowOverheadLoops
getOrder
ARM
CPU
LLVM
30,720
16
1
[]
[ "<s>", "static", "rtx", "arc_builtin_setjmp_frame_value", "(", "void", ")", "{", "return", "gen_raw_REG", "(", "Pmode", ",", "HARD_FRAME_POINTER_REGNUM", ")", ";", "}", "</s>" ]
[ "Return", "the", "frame", "pointer", "value", "to", "be", "backed", "up", "in", "the", "setjmp", "buffer", "." ]
[ "arc" ]
arc8
arc_builtin_setjmp_frame_value
arc
MPU
GCC
30,721
16
1
[]
[ "<s>", "static", "bool", "aarch64_rtx_arith_op_extract_p", "(", "rtx", "x", ",", "machine_mode", "mode", ")", "{", "if", "(", "GET_CODE", "(", "x", ")", "==", "SIGN_EXTRACT", "||", "GET_CODE", "(", "x", ")", "==", "ZERO_EXTRACT", ")", "{", "rtx", "op0", "=", "XEXP", "(", "x", ",", "0", ")", ";", "rtx", "op1", "=", "XEXP", "(", "x", ",", "1", ")", ";", "rtx", "op2", "=", "XEXP", "(", "x", ",", "2", ")", ";", "if", "(", "GET_CODE", "(", "op0", ")", "==", "MULT", "&&", "CONST_INT_P", "(", "op1", ")", "&&", "op2", "==", "const0_rtx", "&&", "CONST_INT_P", "(", "XEXP", "(", "op0", ",", "1", ")", ")", "&&", "aarch64_is_extend_from_extract", "(", "mode", ",", "XEXP", "(", "op0", ",", "1", ")", ",", "op1", ")", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}", "</s>" ]
[ "Return", "true", "if", "X", "is", "a", "zero", "or", "sign", "extract", "usable", "in", "an", "ADD", "or", "SUB", "(", "extended", "register", ")", "instruction", "." ]
[ "aarch64", "0", "1", "2", "1", "1" ]
aarch642
aarch64_rtx_arith_op_extract_p
aarch64
CPU
GCC
30,722
110
1
[]
[ "<s>", "static", "void", "mips_emit_compare", "(", "enum", "rtx_code", "*", "code", ",", "rtx", "*", "op0", ",", "rtx", "*", "op1", ",", "bool", "need_eq_ne_p", ")", "{", "rtx", "cmp_op0", "=", "*", "op0", ";", "rtx", "cmp_op1", "=", "*", "op1", ";", "if", "(", "GET_MODE_CLASS", "(", "GET_MODE", "(", "*", "op0", ")", ")", "==", "MODE_INT", ")", "{", "if", "(", "!", "need_eq_ne_p", "&&", "*", "op1", "==", "const0_rtx", ")", ";", "else", "if", "(", "*", "code", "==", "EQ", "||", "*", "code", "==", "NE", ")", "{", "if", "(", "need_eq_ne_p", ")", "{", "*", "op0", "=", "mips_zero_if_equal", "(", "cmp_op0", ",", "cmp_op1", ")", ";", "*", "op1", "=", "const0_rtx", ";", "}", "else", "*", "op1", "=", "force_reg", "(", "GET_MODE", "(", "cmp_op0", ")", ",", "cmp_op1", ")", ";", "}", "else", "{", "bool", "invert", "=", "false", ";", "*", "op0", "=", "gen_reg_rtx", "(", "GET_MODE", "(", "cmp_op0", ")", ")", ";", "mips_emit_int_order_test", "(", "*", "code", ",", "&", "invert", ",", "*", "op0", ",", "cmp_op0", ",", "cmp_op1", ")", ";", "*", "code", "=", "(", "invert", "?", "EQ", ":", "NE", ")", ";", "*", "op1", "=", "const0_rtx", ";", "}", "}", "else", "if", "(", "ALL_FIXED_POINT_MODE_P", "(", "GET_MODE", "(", "cmp_op0", ")", ")", ")", "{", "*", "op0", "=", "gen_rtx_REG", "(", "CCDSPmode", ",", "CCDSP_CC_REGNUM", ")", ";", "mips_emit_binary", "(", "*", "code", ",", "*", "op0", ",", "cmp_op0", ",", "cmp_op1", ")", ";", "*", "code", "=", "NE", ";", "*", "op1", "=", "const0_rtx", ";", "}", "else", "{", "enum", "rtx_code", "cmp_code", ";", "cmp_code", "=", "*", "code", ";", "if", "(", "ISA_HAS_CCF", ")", "{", "*", "code", "=", "NE", ";", "*", "op0", "=", "gen_reg_rtx", "(", "CCFmode", ")", ";", "}", "else", "{", "*", "code", "=", "mips_reversed_fp_cond", "(", "&", "cmp_code", ")", "?", "EQ", ":", "NE", ";", "if", "(", "ISA_HAS_8CC", ")", "*", "op0", "=", "mips_allocate_fcc", "(", "CCmode", ")", ";", "else", "*", "op0", "=", "gen_rtx_REG", "(", "CCmode", ",", "FPSW_REGNUM", ")", ";", "}", "*", "op1", "=", "const0_rtx", ";", "mips_emit_binary", "(", "cmp_code", ",", "*", "op0", ",", "cmp_op0", ",", "cmp_op1", ")", ";", "}", "}", "</s>" ]
[ "Convert", "a", "comparison", "into", "something", "that", "can", "be", "used", "in", "a", "branch", "or", "conditional", "move", ".", "On", "entry", ",", "*", "OP0", "and", "*", "OP1", "are", "the", "values", "being", "compared", "and", "*", "CODE", "is", "the", "code", "used", "to", "compare", "them", ".", "Update", "*", "CODE", ",", "*", "OP0", "and", "*", "OP1", "so", "that", "they", "describe", "the", "final", "comparison", ".", "If", "NEED_EQ_NE_P", ",", "then", "only", "EQ", "or", "NE", "comparisons", "against", "zero", "are", "possible", ",", "otherwise", "any", "standard", "branch", "condition", "can", "be", "used", ".", "The", "standard", "branch", "conditions", "are", ":", "-", "EQ", "or", "NE", "between", "two", "registers", ".", "-", "any", "comparison", "between", "a", "register", "and", "zero", "." ]
[ "mips" ]
mips4
mips_emit_compare
mips
CPU
GCC
30,723
294
1
[]
[ "<s>", "void", "cris_asm_output_label_ref", "(", "FILE", "*", "file", ",", "char", "*", "buf", ")", "{", "assemble_name", "(", "file", ",", "buf", ")", ";", "}", "</s>" ]
[ "Worker", "function", "for", "ASM_OUTPUT_LABEL_REF", "." ]
[ "cris" ]
cris
cris_asm_output_label_ref
cris
MPU
GCC
30,724
20
1
[]
[ "<s>", "static", "void", "nios2_init_fpu_builtins", "(", "int", "start_code", ")", "{", "tree", "fndecl", ";", "char", "builtin_name", "[", "64", "]", "=", "\"__builtin_custom_\"", ";", "unsigned", "int", "i", ",", "n", "=", "strlen", "(", "\"__builtin_custom_\"", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "ARRAY_SIZE", "(", "nios2_fpu_insn", ")", ";", "i", "++", ")", "{", "snprintf", "(", "builtin_name", "+", "n", ",", "sizeof", "(", "builtin_name", ")", "-", "n", ",", "\"%s\"", ",", "N2FPU_NAME", "(", "i", ")", ")", ";", "fndecl", "=", "add_builtin_function", "(", "builtin_name", ",", "nios2_ftype", "(", "N2FPU_FTCODE", "(", "i", ")", ")", ",", "start_code", "+", "i", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";", "nios2_register_builtin_fndecl", "(", "start_code", "+", "i", ",", "fndecl", ")", ";", "}", "}", "</s>" ]
[ "Init", "FPU", "builtins", "." ]
[ "nios2", "64", "\"__builtin_custom_\"", "\"__builtin_custom_\"", "0", "\"%s\"" ]
nios2
nios2_init_fpu_builtins
nios2
MPU
GCC
30,725
104
1
[]
[ "<s>", "bool", "X86FrameLowering", "::", "hasReservedCallFrame", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "!", "MF", ".", "getFrameInfo", "(", ")", ".", "hasVarSizedObjects", "(", ")", "&&", "!", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", "->", "getHasPushSequences", "(", ")", ";", "}", "</s>" ]
[ "hasReservedCallFrame", "-", "Under", "normal", "circumstances", ",", "when", "a", "frame", "pointer", "is", "not", "required", ",", "we", "reserve", "argument", "space", "for", "call", "sites", "in", "the", "function", "immediately", "on", "entry", "to", "the", "current", "function", "." ]
[ "X86", "X86", "X86" ]
X86FrameLowering (2)2
hasReservedCallFrame
X86
CPU
LLVM
30,726
39
1
[]
[ "<s>", "void", "HexagonTargetLowering", "::", "ReplaceNodeResults", "(", "SDNode", "*", "N", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "Results", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "const", "SDLoc", "&", "dl", "(", "N", ")", ";", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "case", "ISD", "::", "SRL", ":", "case", "ISD", "::", "SRA", ":", "case", "ISD", "::", "SHL", ":", "return", ";", "case", "ISD", "::", "BITCAST", ":", "if", "(", "N", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i8", ")", "{", "SDValue", "P", "=", "getInstr", "(", "Hexagon", "::", "C2_tfrpr", ",", "dl", ",", "MVT", "::", "i32", ",", "N", "->", "getOperand", "(", "0", ")", ",", "DAG", ")", ";", "Results", ".", "push_back", "(", "P", ")", ";", "}", "break", ";", "}", "}", "</s>" ]
[ "ReplaceNodeResults", "-", "Replace", "the", "results", "of", "node", "with", "an", "illegal", "result", "type", "with", "new", "values", "built", "out", "of", "custom", "code", "." ]
[ "Hexagon", "Hexagon", "ISD::SRL", "ISD::SRA", "ISD::SHL", "ISD::BITCAST", "0", "MVT::i8", "Hexagon::C2_tfrpr", "MVT::i32", "0" ]
HexagonISelLowering1
ReplaceNodeResults
Hexagon
DSP
LLVM
30,727
112
1
[]
[ "<s>", "void", "RISCVRegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", "RS", ")", "const", "{", "assert", "(", "SPAdj", "==", "0", "&&", "\"Unexpected non-zero SPAdj value\"", ")", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "const", "RISCVInstrInfo", "*", "TII", "=", "MF", ".", "getSubtarget", "<", "RISCVSubtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "DebugLoc", "DL", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "getIndex", "(", ")", ";", "Register", "FrameReg", ";", "int", "Offset", "=", "getFrameLowering", "(", "MF", ")", "->", "getFrameIndexReference", "(", "MF", ",", "FrameIndex", ",", "FrameReg", ")", "+", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "getImm", "(", ")", ";", "if", "(", "!", "isInt", "<", "32", ">", "(", "Offset", ")", ")", "{", "report_fatal_error", "(", "\"Frame offsets outside of the signed 32-bit range not supported\"", ")", ";", "}", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "bool", "FrameRegIsKill", "=", "false", ";", "if", "(", "!", "isInt", "<", "12", ">", "(", "Offset", ")", ")", "{", "assert", "(", "isInt", "<", "32", ">", "(", "Offset", ")", "&&", "\"Int32 expected\"", ")", ";", "Register", "ScratchReg", "=", "MRI", ".", "createVirtualRegister", "(", "&", "RISCV", "::", "GPRRegClass", ")", ";", "TII", "->", "movImm", "(", "MBB", ",", "II", ",", "DL", ",", "ScratchReg", ",", "Offset", ")", ";", "BuildMI", "(", "MBB", ",", "II", ",", "DL", ",", "TII", "->", "get", "(", "RISCV", "::", "ADD", ")", ",", "ScratchReg", ")", ".", "addReg", "(", "FrameReg", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Kill", ")", ";", "Offset", "=", "0", ";", "FrameReg", "=", "ScratchReg", ";", "FrameRegIsKill", "=", "true", ";", "}", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ",", "false", ",", "FrameRegIsKill", ")", ";", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";", "}", "</s>" ]
[ "This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "." ]
[ "RISCV", "RISCV", "0", "\"Unexpected non-zero SPAdj value\"", "RISCV", "RISCV", "1", "32", "\"Frame offsets outside of the signed 32-bit range not supported\"", "12", "32", "\"Int32 expected\"", "RISCV::GPRRegClass", "RISCV::ADD", "0", "1" ]
RISCVRegisterInfo19
eliminateFrameIndex
RISCV
CPU
LLVM
30,728
304
1
[]
[ "<s>", "bool", "Z80FrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "DisableFramePointerElim", "(", "MF", ")", "||", "MF", ".", "getFrameInfo", "(", ")", ".", "hasStackObjects", "(", ")", ";", "}", "</s>" ]
[ "hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "." ]
[ "Z80", "Z80" ]
Z80FrameLowering1
hasFP
Z80
MPU
LLVM
30,729
37
1
[]
[ "<s>", "bool", "AMDGPULegalizerInfo", "::", "legalizeCustom", "(", "LegalizerHelper", "&", "Helper", ",", "MachineInstr", "&", "MI", ")", "const", "{", "MachineIRBuilder", "&", "B", "=", "Helper", ".", "MIRBuilder", ";", "MachineRegisterInfo", "&", "MRI", "=", "*", "B", ".", "getMRI", "(", ")", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "case", "TargetOpcode", "::", "G_ADDRSPACE_CAST", ":", "return", "legalizeAddrSpaceCast", "(", "MI", ",", "MRI", ",", "B", ")", ";", "case", "TargetOpcode", "::", "G_FRINT", ":", "return", "legalizeFrint", "(", "MI", ",", "MRI", ",", "B", ")", ";", "case", "TargetOpcode", "::", "G_FCEIL", ":", "return", "legalizeFceil", "(", "MI", ",", "MRI", ",", "B", ")", ";", "case", "TargetOpcode", "::", "G_FREM", ":", "return", "legalizeFrem", "(", "MI", ",", "MRI", ",", "B", ")", ";", "case", "TargetOpcode", "::", "G_INTRINSIC_TRUNC", ":", "return", "legalizeIntrinsicTrunc", "(", "MI", ",", "MRI", ",", "B", ")", ";", "case", "TargetOpcode", "::", "G_SITOFP", ":", "return", "legalizeITOFP", "(", "MI", ",", "MRI", ",", "B", ",", "true", ")", ";", "case", "TargetOpcode", "::", "G_UITOFP", ":", "return", "legalizeITOFP", "(", "MI", ",", "MRI", ",", "B", ",", "false", ")", ";", "case", "TargetOpcode", "::", "G_FPTOSI", ":", "return", "legalizeFPTOI", "(", "MI", ",", "MRI", ",", "B", ",", "true", ")", ";", "case", "TargetOpcode", "::", "G_FPTOUI", ":", "return", "legalizeFPTOI", "(", "MI", ",", "MRI", ",", "B", ",", "false", ")", ";", "case", "TargetOpcode", "::", "G_FMINNUM", ":", "case", "TargetOpcode", "::", "G_FMAXNUM", ":", "case", "TargetOpcode", "::", "G_FMINNUM_IEEE", ":", "case", "TargetOpcode", "::", "G_FMAXNUM_IEEE", ":", "return", "legalizeMinNumMaxNum", "(", "Helper", ",", "MI", ")", ";", "case", "TargetOpcode", "::", "G_EXTRACT_VECTOR_ELT", ":", "return", "legalizeExtractVectorElt", "(", "MI", ",", "MRI", ",", "B", ")", ";", "case", "TargetOpcode", "::", "G_INSERT_VECTOR_ELT", ":", "return", "legalizeInsertVectorElt", "(", "MI", ",", "MRI", ",", "B", ")", ";", "case", "TargetOpcode", "::", "G_SHUFFLE_VECTOR", ":", "return", "legalizeShuffleVector", "(", "MI", ",", "MRI", ",", "B", ")", ";", "case", "TargetOpcode", "::", "G_FSIN", ":", "case", "TargetOpcode", "::", "G_FCOS", ":", "return", "legalizeSinCos", "(", "MI", ",", "MRI", ",", "B", ")", ";", "case", "TargetOpcode", "::", "G_GLOBAL_VALUE", ":", "return", "legalizeGlobalValue", "(", "MI", ",", "MRI", ",", "B", ")", ";", "case", "TargetOpcode", "::", "G_LOAD", ":", "return", "legalizeLoad", "(", "Helper", ",", "MI", ")", ";", "case", "TargetOpcode", "::", "G_FMAD", ":", "return", "legalizeFMad", "(", "MI", ",", "MRI", ",", "B", ")", ";", "case", "TargetOpcode", "::", "G_FDIV", ":", "return", "legalizeFDIV", "(", "MI", ",", "MRI", ",", "B", ")", ";", "case", "TargetOpcode", "::", "G_UDIV", ":", "case", "TargetOpcode", "::", "G_UREM", ":", "return", "legalizeUDIV_UREM", "(", "MI", ",", "MRI", ",", "B", ")", ";", "case", "TargetOpcode", "::", "G_SDIV", ":", "case", "TargetOpcode", "::", "G_SREM", ":", "return", "legalizeSDIV_SREM", "(", "MI", ",", "MRI", ",", "B", ")", ";", "case", "TargetOpcode", "::", "G_ATOMIC_CMPXCHG", ":", "return", "legalizeAtomicCmpXChg", "(", "MI", ",", "MRI", ",", "B", ")", ";", "case", "TargetOpcode", "::", "G_FLOG", ":", "return", "legalizeFlog", "(", "MI", ",", "B", ",", "numbers", "::", "ln2f", ")", ";", "case", "TargetOpcode", "::", "G_FLOG10", ":", "return", "legalizeFlog", "(", "MI", ",", "B", ",", "numbers", "::", "ln2f", "/", "numbers", "::", "ln10f", ")", ";", "case", "TargetOpcode", "::", "G_FEXP", ":", "return", "legalizeFExp", "(", "MI", ",", "B", ")", ";", "case", "TargetOpcode", "::", "G_FPOW", ":", "return", "legalizeFPow", "(", "MI", ",", "B", ")", ";", "case", "TargetOpcode", "::", "G_FFLOOR", ":", "return", "legalizeFFloor", "(", "MI", ",", "MRI", ",", "B", ")", ";", "case", "TargetOpcode", "::", "G_BUILD_VECTOR", ":", "return", "legalizeBuildVector", "(", "MI", ",", "MRI", ",", "B", ")", ";", "default", ":", "return", "false", ";", "}", "llvm_unreachable", "(", "\"expected switch to return\"", ")", ";", "}", "</s>" ]
[ "Called", "for", "instructions", "with", "the", "Custom", "LegalizationAction", "." ]
[ "AMDGPU", "AMDGPU", "SI", "SI", "SI", "SI", "\"expected switch to return\"" ]
AMDGPULegalizerInfo26
legalizeCustom
AMDGPU
GPU
LLVM
30,730
498
1
[]
[ "<s>", "const", "ARMBaseInstrInfo", "*", "getInstrInfo", "(", ")", "const", "{", "return", "InstrInfo", ".", "get", "(", ")", ";", "}", "</s>" ]
[ "TargetInstrInfo", "getter", "." ]
[ "ARM", "ARM" ]
ARMSubtarget (2)
getInstrInfo
ARM
CPU
LLVM
30,731
16
1
[]
[ "<s>", "static", "const", "char", "*", "output_probe_stack_range_1", "(", "rtx", "reg1", ",", "rtx", "reg2", ")", "{", "static", "int", "labelno", "=", "0", ";", "char", "loop_lab", "[", "32", "]", ";", "rtx", "xops", "[", "2", "]", ";", "ASM_GENERATE_INTERNAL_LABEL", "(", "loop_lab", ",", "\"LPSRL\"", ",", "labelno", "++", ")", ";", "ASM_OUTPUT_INTERNAL_LABEL", "(", "asm_out_file", ",", "loop_lab", ")", ";", "xops", "[", "0", "]", "=", "reg1", ";", "xops", "[", "1", "]", "=", "GEN_INT", "(", "-", "PROBE_INTERVAL", ")", ";", "output_asm_insn", "(", "\"addi %0,%0,%1\"", ",", "xops", ")", ";", "xops", "[", "1", "]", "=", "gen_rtx_REG", "(", "Pmode", ",", "0", ")", ";", "output_asm_insn", "(", "\"stw %1,0(%0)\"", ",", "xops", ")", ";", "xops", "[", "1", "]", "=", "reg2", ";", "if", "(", "TARGET_64BIT", ")", "output_asm_insn", "(", "\"cmpd 0,%0,%1\"", ",", "xops", ")", ";", "else", "output_asm_insn", "(", "\"cmpw 0,%0,%1\"", ",", "xops", ")", ";", "fputs", "(", "\"\\tbne 0,\"", ",", "asm_out_file", ")", ";", "assemble_name_raw", "(", "asm_out_file", ",", "loop_lab", ")", ";", "fputc", "(", "'\\n'", ",", "asm_out_file", ")", ";", "return", "\"\"", ";", "}", "</s>" ]
[ "Probe", "a", "range", "of", "stack", "addresses", "from", "REG1", "to", "REG2", "inclusive", ".", "These", "are", "addresses", ",", "not", "offsets", "." ]
[ "rs6000", "0", "32", "2", "\"LPSRL\"", "0", "1", "\"addi %0,%0,%1\"", "1", "0", "\"stw %1,0(%0)\"", "1", "\"cmpd 0,%0,%1\"", "\"cmpw 0,%0,%1\"", "\"\\tbne 0,\"", "\"\"" ]
rs6000-logue
output_probe_stack_range_1
rs6000
CPU
GCC
30,732
143
1
[]
[ "<s>", "void", "M88kRegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", "RS", ")", "const", "{", "assert", "(", "SPAdj", "==", "0", "&&", "\"Unexpected stack adjustment\"", ")", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "getIndex", "(", ")", ";", "Register", "FrameReg", ";", "int64_t", "Offset", "=", "getFrameLowering", "(", "MF", ")", "->", "resolveFrameIndexReference", "(", "MF", ",", "FrameIndex", ",", "FrameReg", ")", ";", "Offset", "+=", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "getImm", "(", ")", ";", "assert", "(", "isInt", "<", "16", ">", "(", "Offset", ")", "&&", "\"m88k: Larger offsets not yet supported.\"", ")", ";", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ")", ";", "MI", ".", "getOperand", "(", "FIOperandNum", "+", "1", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";", "}", "</s>" ]
[ "This", "method", "must", "be", "overriden", "to", "eliminate", "abstract", "frame", "indices", "from", "instructions", "which", "may", "use", "them", "." ]
[ "M88k", "M88k", "0", "\"Unexpected stack adjustment\"", "1", "16", "\"m88k: Larger offsets not yet supported.\"", "1" ]
M88kRegisterInfo
eliminateFrameIndex
M88k
MPU
LLVM
30,733
144
1
[]
[ "<s>", "bool", "Z80AsmParser", "::", "ParseInstruction", "(", "ParseInstructionInfo", "&", "Info", ",", "StringRef", "Name", ",", "SMLoc", "NameLoc", ",", "OperandVector", "&", "Operands", ")", "{", "Operands", ".", "push_back", "(", "Z80Operand", "::", "CreateToken", "(", "Name", ",", "NameLoc", ")", ")", ";", "if", "(", "getLexer", "(", ")", ".", "is", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "return", "false", ";", "if", "(", "ParseOperand", "(", "Operands", ")", ")", "return", "true", ";", "while", "(", "getLexer", "(", ")", ".", "isNot", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "{", "auto", "CurrentTokenKind", "=", "getLexer", "(", ")", ".", "getKind", "(", ")", ";", "if", "(", "CurrentTokenKind", "==", "AsmToken", "::", "Comma", ")", "{", "getLexer", "(", ")", ".", "Lex", "(", ")", ";", "continue", ";", "}", "if", "(", "ParseOperand", "(", "Operands", ")", ")", "return", "true", ";", "}", "if", "(", "getLexer", "(", ")", ".", "isNot", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "return", "Error", "(", "getLexer", "(", ")", ".", "getTok", "(", ")", ".", "getLoc", "(", ")", ",", "\"unexpected token in operand list\"", ")", ";", "return", "false", ";", "}", "</s>" ]
[ "ParseInstruction", "-", "Parse", "one", "assembly", "instruction", "." ]
[ "Z80", "Z80", "Z80", "\"unexpected token in operand list\"" ]
Z80AsmParser
ParseInstruction
Z80
MPU
LLVM
30,734
151
1
[]
[ "<s>", "bool", "X86IndirectBranchTrackingPass", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "const", "X86Subtarget", "&", "SubTarget", "=", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "Metadata", "*", "isCFProtectionSupported", "=", "MF", ".", "getMMI", "(", ")", ".", "getModule", "(", ")", "->", "getModuleFlag", "(", "\"cf-protection-branch\"", ")", ";", "if", "(", "!", "isCFProtectionSupported", "&&", "!", "IndirectBranchTracking", ")", "return", "false", ";", "bool", "Changed", "=", "false", ";", "TII", "=", "SubTarget", ".", "getInstrInfo", "(", ")", ";", "EndbrOpcode", "=", "SubTarget", ".", "is64Bit", "(", ")", "?", "X86", "::", "ENDBR64", ":", "X86", "::", "ENDBR32", ";", "if", "(", "(", "MF", ".", "getFunction", "(", ")", ".", "hasAddressTaken", "(", ")", "||", "!", "MF", ".", "getFunction", "(", ")", ".", "hasLocalLinkage", "(", ")", ")", "&&", "!", "MF", ".", "getFunction", "(", ")", ".", "doesNoCfCheck", "(", ")", ")", "{", "auto", "MBB", "=", "MF", ".", "begin", "(", ")", ";", "Changed", "|=", "addENDBR", "(", "*", "MBB", ",", "MBB", "->", "begin", "(", ")", ")", ";", "}", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "{", "if", "(", "MBB", ".", "hasAddressTaken", "(", ")", ")", "Changed", "|=", "addENDBR", "(", "MBB", ",", "MBB", ".", "begin", "(", ")", ")", ";", "bool", "EHPadIBTNeeded", "=", "MBB", ".", "isEHPad", "(", ")", ";", "for", "(", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "begin", "(", ")", ";", "I", "!=", "MBB", ".", "end", "(", ")", ";", "++", "I", ")", "{", "if", "(", "I", "->", "isCall", "(", ")", "&&", "IsCallReturnTwice", "(", "I", "->", "getOperand", "(", "0", ")", ")", ")", "Changed", "|=", "addENDBR", "(", "MBB", ",", "std", "::", "next", "(", "I", ")", ")", ";", "if", "(", "EHPadIBTNeeded", "&&", "I", "->", "isEHLabel", "(", ")", ")", "{", "Changed", "|=", "addENDBR", "(", "MBB", ",", "std", "::", "next", "(", "I", ")", ")", ";", "EHPadIBTNeeded", "=", "false", ";", "}", "}", "}", "return", "Changed", ";", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "X86", "X86", "X86", "X86", "\"cf-protection-branch\"", "X86::ENDBR64", "X86::ENDBR32", "0" ]
X86IndirectBranchTracking11
runOnMachineFunction
X86
CPU
LLVM
30,735
276
1
[]
[ "<s>", "bool", "prepare_extend_operands", "(", "rtx", "*", "operands", ",", "enum", "rtx_code", "code", ",", "machine_mode", "omode", ")", "{", "if", "(", "!", "TARGET_NO_SDATA_SET", "&&", "small_data_pattern", "(", "operands", "[", "1", "]", ",", "Pmode", ")", ")", "{", "operands", "[", "1", "]", "=", "gen_rtx_fmt_e", "(", "code", ",", "omode", ",", "arc_rewrite_small_data", "(", "operands", "[", "1", "]", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "omode", ",", "operands", "[", "0", "]", ",", "operands", "[", "1", "]", ")", ")", ";", "set_unique_reg_note", "(", "get_last_insn", "(", ")", ",", "REG_EQUAL", ",", "operands", "[", "1", "]", ")", ";", "emit_move_insn", "(", "operands", "[", "0", "]", ",", "operands", "[", "0", "]", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", "</s>" ]
[ "Prepare", "OPERANDS", "for", "an", "extension", "using", "CODE", "to", "OMODE", ".", "Return", "true", "iff", "the", "move", "has", "been", "emitted", "." ]
[ "arc", "1", "1", "1", "0", "1", "1", "0", "0" ]
arc4
prepare_extend_operands
arc
MPU
GCC
30,736
104
1
[]
[ "<s>", "int", "arm_attr_length_move_neon", "(", "rtx_insn", "*", "insn", ")", "{", "rtx", "reg", ",", "mem", ",", "addr", ";", "int", "load", ";", "machine_mode", "mode", ";", "extract_insn_cached", "(", "insn", ")", ";", "if", "(", "REG_P", "(", "recog_data", ".", "operand", "[", "0", "]", ")", "&&", "REG_P", "(", "recog_data", ".", "operand", "[", "1", "]", ")", ")", "{", "mode", "=", "GET_MODE", "(", "recog_data", ".", "operand", "[", "0", "]", ")", ";", "switch", "(", "mode", ")", "{", "case", "EImode", ":", "case", "OImode", ":", "return", "8", ";", "case", "CImode", ":", "return", "12", ";", "case", "XImode", ":", "return", "16", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "load", "=", "REG_P", "(", "recog_data", ".", "operand", "[", "0", "]", ")", ";", "reg", "=", "recog_data", ".", "operand", "[", "!", "load", "]", ";", "mem", "=", "recog_data", ".", "operand", "[", "load", "]", ";", "gcc_assert", "(", "MEM_P", "(", "mem", ")", ")", ";", "mode", "=", "GET_MODE", "(", "reg", ")", ";", "addr", "=", "XEXP", "(", "mem", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "addr", ")", "==", "CONST", "&&", "GET_CODE", "(", "XEXP", "(", "addr", ",", "0", ")", ")", "==", "PLUS", ")", "addr", "=", "XEXP", "(", "addr", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "addr", ")", "==", "LABEL_REF", "||", "GET_CODE", "(", "addr", ")", "==", "PLUS", ")", "{", "int", "insns", "=", "HARD_REGNO_NREGS", "(", "REGNO", "(", "reg", ")", ",", "mode", ")", "/", "2", ";", "return", "insns", "*", "4", ";", "}", "else", "return", "4", ";", "}", "</s>" ]
[ "Compute", "and", "return", "the", "length", "of", "neon_mov", "<", "mode", ">", ",", "where", "<", "mode", ">", "is", "one", "of", "VSTRUCT", "modes", ":", "EI", ",", "OI", ",", "CI", "or", "XI", "." ]
[ "arm", "0", "1", "0", "8", "12", "16", "0", "0", "0", "0", "2", "4", "4" ]
arm4
arm_attr_length_move_neon
arm
CPU
GCC
30,737
223
1
[]
[ "<s>", "uint32_t", "fpDenormModeDPValue", "(", ")", "const", "{", "if", "(", "FP64FP16InputDenormals", "&&", "FP64FP16OutputDenormals", ")", "return", "FP_DENORM_FLUSH_NONE", ";", "if", "(", "FP64FP16InputDenormals", ")", "return", "FP_DENORM_FLUSH_OUT", ";", "if", "(", "FP64FP16OutputDenormals", ")", "return", "FP_DENORM_FLUSH_IN", ";", "return", "FP_DENORM_FLUSH_IN_FLUSH_OUT", ";", "}", "</s>" ]
[ "Get", "the", "encoding", "value", "for", "the", "FP_DENORM", "bits", "of", "the", "mode", "register", "for", "the", "FP64/FP16", "denormal", "mode", "." ]
[ "AMDGPU" ]
AMDGPUBaseInfo (2)1
fpDenormModeDPValue
AMDGPU
GPU
LLVM
30,738
33
1
[]
[ "<s>", "void", "MMIXInstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "DstReg", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "MMIX", "::", "GPRRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "MMIX", "::", "LDO_I", ")", ",", "DstReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ";", "}", "else", "if", "(", "MMIX", "::", "SRRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "MMIX", "::", "LDO_I", ")", ")", ".", "addReg", "(", "MMIX", "::", "r252", ",", "RegState", "::", "Define", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "MMIX", "::", "PUT", ")", ",", "DstReg", ")", ".", "addReg", "(", "MMIX", "::", "r252", ",", "RegState", "::", "Kill", ")", ";", "}", "else", "{", "llvm_unreachable", "(", "\"Can't load this register from stack slot\"", ")", ";", "}", "}", "</s>" ]
[ "Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "." ]
[ "MMIX", "MMIX", "MMIX::GPRRegClass", "MMIX::LDO_I", "0", "MMIX::SRRegClass", "MMIX::LDO_I", "MMIX::r252", "0", "MMIX::PUT", "MMIX::r252", "\"Can't load this register from stack slot\"" ]
MMIXInstrInfo
loadRegFromStackSlot
MMIX
CPU
LLVM
30,739
183
1
[]
[ "<s>", "unsigned", "LanaiRegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "Lanai", "::", "FP", ";", "}", "</s>" ]
[ "Debug", "information", "queries", "." ]
[ "Lanai", "Lanai", "Lanai::FP" ]
LanaiRegisterInfo
getFrameRegister
Lanai
CPU
LLVM
30,740
18
1
[]
[ "<s>", "void", "RISCVTargetLowering", "::", "ReplaceNodeResults", "(", "SDNode", "*", "N", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "Results", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SDLoc", "DL", "(", "N", ")", ";", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Don't know how to custom type legalize this operation!\"", ")", ";", "case", "ISD", "::", "READCYCLECOUNTER", ":", "{", "assert", "(", "!", "Subtarget", ".", "is64Bit", "(", ")", "&&", "\"READCYCLECOUNTER only has custom type legalization on riscv32\"", ")", ";", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "MVT", "::", "i32", ",", "MVT", "::", "i32", ",", "MVT", "::", "Other", ")", ";", "SDValue", "RCW", "=", "DAG", ".", "getNode", "(", "RISCVISD", "::", "READ_CYCLE_WIDE", ",", "DL", ",", "VTs", ",", "N", "->", "getOperand", "(", "0", ")", ")", ";", "Results", ".", "push_back", "(", "DAG", ".", "getNode", "(", "ISD", "::", "BUILD_PAIR", ",", "DL", ",", "MVT", "::", "i64", ",", "RCW", ",", "RCW", ".", "getValue", "(", "1", ")", ")", ")", ";", "Results", ".", "push_back", "(", "RCW", ".", "getValue", "(", "2", ")", ")", ";", "break", ";", "}", "case", "ISD", "::", "ADD", ":", "case", "ISD", "::", "SUB", ":", "case", "ISD", "::", "MUL", ":", "assert", "(", "N", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i32", "&&", "Subtarget", ".", "is64Bit", "(", ")", "&&", "\"Unexpected custom legalisation\"", ")", ";", "if", "(", "N", "->", "getOperand", "(", "1", ")", ".", "getOpcode", "(", ")", "==", "ISD", "::", "Constant", ")", "return", ";", "Results", ".", "push_back", "(", "customLegalizeToWOpWithSExt", "(", "N", ",", "DAG", ")", ")", ";", "break", ";", "case", "ISD", "::", "SHL", ":", "case", "ISD", "::", "SRA", ":", "case", "ISD", "::", "SRL", ":", "assert", "(", "N", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i32", "&&", "Subtarget", ".", "is64Bit", "(", ")", "&&", "\"Unexpected custom legalisation\"", ")", ";", "if", "(", "N", "->", "getOperand", "(", "1", ")", ".", "getOpcode", "(", ")", "==", "ISD", "::", "Constant", ")", "return", ";", "Results", ".", "push_back", "(", "customLegalizeToWOp", "(", "N", ",", "DAG", ")", ")", ";", "break", ";", "case", "ISD", "::", "SDIV", ":", "case", "ISD", "::", "UDIV", ":", "case", "ISD", "::", "UREM", ":", "assert", "(", "N", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i32", "&&", "Subtarget", ".", "is64Bit", "(", ")", "&&", "Subtarget", ".", "hasStdExtM", "(", ")", "&&", "\"Unexpected custom legalisation\"", ")", ";", "if", "(", "N", "->", "getOperand", "(", "0", ")", ".", "getOpcode", "(", ")", "==", "ISD", "::", "Constant", "||", "N", "->", "getOperand", "(", "1", ")", ".", "getOpcode", "(", ")", "==", "ISD", "::", "Constant", ")", "return", ";", "Results", ".", "push_back", "(", "customLegalizeToWOp", "(", "N", ",", "DAG", ")", ")", ";", "break", ";", "case", "ISD", "::", "BITCAST", ":", "{", "assert", "(", "N", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i32", "&&", "Subtarget", ".", "is64Bit", "(", ")", "&&", "Subtarget", ".", "hasStdExtF", "(", ")", "&&", "\"Unexpected custom legalisation\"", ")", ";", "SDLoc", "DL", "(", "N", ")", ";", "SDValue", "Op0", "=", "N", "->", "getOperand", "(", "0", ")", ";", "if", "(", "Op0", ".", "getValueType", "(", ")", "!=", "MVT", "::", "f32", ")", "return", ";", "SDValue", "FPConv", "=", "DAG", ".", "getNode", "(", "RISCVISD", "::", "FMV_X_ANYEXTW_RV64", ",", "DL", ",", "MVT", "::", "i64", ",", "Op0", ")", ";", "Results", ".", "push_back", "(", "DAG", ".", "getNode", "(", "ISD", "::", "TRUNCATE", ",", "DL", ",", "MVT", "::", "i32", ",", "FPConv", ")", ")", ";", "break", ";", "}", "}", "}", "</s>" ]
[ "ReplaceNodeResults", "-", "Replace", "the", "results", "of", "node", "with", "an", "illegal", "result", "type", "with", "new", "values", "built", "out", "of", "custom", "code", "." ]
[ "RISCV", "RISCV", "\"Don't know how to custom type legalize this operation!\"", "ISD::READCYCLECOUNTER", "\"READCYCLECOUNTER only has custom type legalization on riscv32\"", "MVT::i32", "MVT::i32", "MVT::Other", "RISCVISD::READ_CYCLE_WIDE", "0", "ISD::BUILD_PAIR", "MVT::i64", "1", "2", "ISD::ADD", "ISD::SUB", "ISD::MUL", "0", "MVT::i32", "\"Unexpected custom legalisation\"", "1", "ISD::Constant", "ISD::SHL", "ISD::SRA", "ISD::SRL", "0", "MVT::i32", "\"Unexpected custom legalisation\"", "1", "ISD::Constant", "ISD::SDIV", "ISD::UDIV", "ISD::UREM", "0", "MVT::i32", "\"Unexpected custom legalisation\"", "0", "ISD::Constant", "1", "ISD::Constant", "ISD::BITCAST", "0", "MVT::i32", "\"Unexpected custom legalisation\"", "0", "MVT::f32", "RISCVISD::FMV_X_ANYEXTW_RV64", "MVT::i64", "ISD::TRUNCATE", "MVT::i32" ]
RISCVISelLowering13
ReplaceNodeResults
RISCV
CPU
LLVM
30,741
491
1
[]
[ "<s>", "StringRef", "X86IntelInstPrinter", "::", "getOpcodeName", "(", "unsigned", "Opcode", ")", "const", "{", "return", "getInstructionName", "(", "Opcode", ")", ";", "}", "</s>" ]
[ "Return", "a", "string", "representation", "for", "an", "opcode", "." ]
[ "X86", "X86" ]
X86IntelInstPrinter13
getOpcodeName
X86
CPU
LLVM
30,742
17
1
[]
[ "<s>", "bool", "HexagonHardwareLoops", "::", "isDead", "(", "const", "MachineInstr", "*", "MI", ",", "SmallVectorImpl", "<", "MachineInstr", "*", ">", "&", "DeadPhis", ")", "const", "{", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "MI", "->", "getNumOperands", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "i", ")", ";", "if", "(", "!", "MO", ".", "isReg", "(", ")", "||", "!", "MO", ".", "isDef", "(", ")", ")", "continue", ";", "unsigned", "Reg", "=", "MO", ".", "getReg", "(", ")", ";", "if", "(", "MRI", "->", "use_nodbg_empty", "(", "Reg", ")", ")", "continue", ";", "typedef", "MachineRegisterInfo", "::", "use_nodbg_iterator", "use_nodbg_iterator", ";", "use_nodbg_iterator", "I", "=", "MRI", "->", "use_nodbg_begin", "(", "Reg", ")", ";", "use_nodbg_iterator", "End", "=", "MRI", "->", "use_nodbg_end", "(", ")", ";", "if", "(", "std", "::", "next", "(", "I", ")", "!=", "End", "||", "!", "I", "->", "getParent", "(", ")", "->", "isPHI", "(", ")", ")", "return", "false", ";", "MachineInstr", "*", "OnePhi", "=", "I", "->", "getParent", "(", ")", ";", "for", "(", "unsigned", "j", "=", "0", ",", "f", "=", "OnePhi", "->", "getNumOperands", "(", ")", ";", "j", "!=", "f", ";", "++", "j", ")", "{", "const", "MachineOperand", "&", "OPO", "=", "OnePhi", "->", "getOperand", "(", "j", ")", ";", "if", "(", "!", "OPO", ".", "isReg", "(", ")", "||", "!", "OPO", ".", "isDef", "(", ")", ")", "continue", ";", "unsigned", "OPReg", "=", "OPO", ".", "getReg", "(", ")", ";", "use_nodbg_iterator", "nextJ", ";", "for", "(", "use_nodbg_iterator", "J", "=", "MRI", "->", "use_nodbg_begin", "(", "OPReg", ")", ";", "J", "!=", "End", ";", "J", "=", "nextJ", ")", "{", "nextJ", "=", "std", "::", "next", "(", "J", ")", ";", "MachineOperand", "&", "Use", "=", "*", "J", ";", "MachineInstr", "*", "UseMI", "=", "Use", ".", "getParent", "(", ")", ";", "if", "(", "MI", "!=", "UseMI", ")", "return", "false", ";", "}", "}", "DeadPhis", ".", "push_back", "(", "OnePhi", ")", ";", "}", "return", "true", ";", "}", "</s>" ]
[ "isDead", "-", "Returns", "true", "if", "this", "is", "a", "dead", "def", "kill", "slot", "." ]
[ "Hexagon", "Hexagon", "0", "0" ]
HexagonHardwareLoops
isDead
Hexagon
DSP
LLVM
30,743
288
1
[]
[ "<s>", "void", "sh_pr_interrupt", "(", "struct", "cpp_reader", "*", "pfile", "ATTRIBUTE_UNUSED", ")", "{", "sh_add_function_attribute", "(", "\"interrupt_handler\"", ")", ";", "}", "</s>" ]
[ "Handle", "machine", "specific", "pragmas", "to", "be", "semi-compatible", "with", "Hitachi", "compiler", "." ]
[ "sh", "\"interrupt_handler\"" ]
sh-c
sh_pr_interrupt
sh
CPU
GCC
30,744
16
1
[]
[ "<s>", "bool", "XNCMFrameLowering", "::", "spillCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "CSI", ".", "empty", "(", ")", ")", "return", "false", ";", "DebugLoc", "DL", ";", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "XNCMMachineFunctionInfo", "*", "MFI", "=", "MF", ".", "getInfo", "<", "XNCMMachineFunctionInfo", ">", "(", ")", ";", "MFI", "->", "setCalleeSavedFrameSize", "(", "CSI", ".", "size", "(", ")", "*", "2", ")", ";", "for", "(", "unsigned", "i", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "0", ";", "--", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "-", "1", "]", ".", "getReg", "(", ")", ";", "MBB", ".", "addLiveIn", "(", "Reg", ")", ";", "}", "return", "true", ";", "}", "</s>" ]
[ "spillCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "spill", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "store", "instructions", "via", "storeRegToStackSlot", "(", ")", "." ]
[ "XNCM", "XNCM", "XNCM", "XNCM", "2", "0", "1" ]
XNCMFrameLowering
spillCalleeSavedRegisters
XNCM
CPU
LLVM
30,745
145
1
[]
[ "<s>", "MachineInstr", "*", "X86InstrInfo", "::", "optimizeLoadInstr", "(", "MachineInstr", "*", "MI", ",", "const", "MachineRegisterInfo", "*", "MRI", ",", "unsigned", "&", "FoldAsLoadDefReg", ",", "MachineInstr", "*", "&", "DefMI", ")", "const", "{", "if", "(", "FoldAsLoadDefReg", "==", "0", ")", "return", "nullptr", ";", "if", "(", "MI", "->", "mayLoad", "(", ")", ")", "{", "FoldAsLoadDefReg", "=", "0", ";", "return", "nullptr", ";", "}", "DefMI", "=", "MRI", "->", "getVRegDef", "(", "FoldAsLoadDefReg", ")", ";", "assert", "(", "DefMI", ")", ";", "bool", "SawStore", "=", "false", ";", "if", "(", "!", "DefMI", "->", "isSafeToMove", "(", "this", ",", "nullptr", ",", "SawStore", ")", ")", "return", "nullptr", ";", "unsigned", "IdxEnd", "=", "(", "MI", "->", "isCommutable", "(", ")", ")", "?", "2", ":", "1", ";", "for", "(", "unsigned", "Idx", "=", "0", ";", "Idx", "<", "IdxEnd", ";", "Idx", "++", ")", "{", "unsigned", "SrcOperandId", "=", "0", ";", "bool", "FoundSrcOperand", "=", "false", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "MI", "->", "getDesc", "(", ")", ".", "getNumOperands", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "i", ")", ";", "if", "(", "!", "MO", ".", "isReg", "(", ")", ")", "continue", ";", "unsigned", "Reg", "=", "MO", ".", "getReg", "(", ")", ";", "if", "(", "Reg", "!=", "FoldAsLoadDefReg", ")", "continue", ";", "if", "(", "MO", ".", "getSubReg", "(", ")", "||", "MO", ".", "isDef", "(", ")", "||", "FoundSrcOperand", ")", "return", "nullptr", ";", "SrcOperandId", "=", "i", ";", "FoundSrcOperand", "=", "true", ";", "}", "if", "(", "!", "FoundSrcOperand", ")", "return", "nullptr", ";", "SmallVector", "<", "unsigned", ",", "8", ">", "Ops", ";", "Ops", ".", "push_back", "(", "SrcOperandId", ")", ";", "MachineInstr", "*", "FoldMI", "=", "foldMemoryOperand", "(", "MI", ",", "Ops", ",", "DefMI", ")", ";", "if", "(", "FoldMI", ")", "{", "FoldAsLoadDefReg", "=", "0", ";", "return", "FoldMI", ";", "}", "if", "(", "Idx", "==", "1", ")", "{", "commuteInstruction", "(", "MI", ",", "false", ")", ";", "return", "nullptr", ";", "}", "if", "(", "MI", "->", "isCommutable", "(", ")", ")", "{", "MachineInstr", "*", "NewMI", "=", "commuteInstruction", "(", "MI", ",", "false", ")", ";", "if", "(", "!", "NewMI", ")", "return", "nullptr", ";", "if", "(", "NewMI", "!=", "MI", ")", "{", "NewMI", "->", "eraseFromParent", "(", ")", ";", "return", "nullptr", ";", "}", "}", "}", "return", "nullptr", ";", "}", "</s>" ]
[ "optimizeLoadInstr", "-", "Try", "to", "remove", "the", "load", "by", "folding", "it", "to", "a", "register", "operand", "at", "the", "use", "." ]
[ "X86", "X86", "0", "0", "2", "1", "0", "0", "0", "8", "0", "1" ]
X86InstrInfo125
optimizeLoadInstr
X86
CPU
LLVM
30,746
340
1
[]
[ "<s>", "SDValue", "Cpu0TargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "DebugLoc", "dl", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "getTargetMachine", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "RetCC_Cpu0", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "Chain", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "dl", ",", "RVLocs", "[", "i", "]", ".", "getLocReg", "(", ")", ",", "RVLocs", "[", "i", "]", ".", "getValVT", "(", ")", ",", "InFlag", ")", ".", "getValue", "(", "1", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "2", ")", ";", "InVals", ".", "push_back", "(", "Chain", ".", "getValue", "(", "0", ")", ")", ";", "}", "return", "Chain", ";", "}", "</s>" ]
[ "LowerCallResult", "-", "Lower", "the", "result", "values", "of", "an", "ISD", ":", ":CALL", "into", "the", "appropriate", "copies", "out", "of", "appropriate", "physical", "registers", "." ]
[ "Cpu0", "Cpu0", "ISD::InputArg", "16", "Cpu0", "0", "1", "2", "0" ]
Cpu0ISelLowering1
LowerCallResult
Cpu0
CPU
LLVM
30,747
170
1
[]
[ "<s>", "static", "int", "msp430_single_op_cost", "(", "rtx", "dst", ",", "bool", "speed", ",", "rtx", ")", "{", "enum", "rtx_code", "dst_code", "=", "GET_CODE", "(", "dst", ")", ";", "const", "struct", "single_op_cost", "*", "cost_p", ";", "const", "struct", "double_op_cost", "*", "double_op_cost_p", ";", "cost_p", "=", "(", "speed", "?", "&", "cycle_cost_single_op", ":", "&", "size_cost_single_op", ")", ";", "double_op_cost_p", "=", "(", "speed", "?", "&", "cycle_cost_double_op", ":", "&", "size_cost_double_op", ")", ";", "switch", "(", "dst_code", ")", "{", "case", "REG", ":", "return", "cost_p", "->", "reg", ";", "case", "MEM", ":", "if", "(", "msp430_is_mem_indirect", "(", "dst", ")", ")", "return", "cost_p", "->", "ind", ";", "else", "return", "cost_p", "->", "mem", ";", "case", "CONST_INT", ":", "case", "CONST_FIXED", ":", "case", "CONST_DOUBLE", ":", "case", "SYMBOL_REF", ":", "case", "CONST", ":", "return", "double_op_cost_p", "->", "imm2r", "+", "cost_p", "->", "reg", ";", "default", ":", "return", "cost_p", "->", "mem", ";", "}", "}", "</s>" ]
[ "Calculate", "the", "cost", "of", "an", "MSP430", "single-operand", "instruction", ",", "for", "operand", "DST", "within", "the", "RTX", "OUTER_RTX", ",", "optimizing", "for", "speed", "if", "SPEED", "is", "true", "." ]
[ "msp430" ]
msp4301
msp430_single_op_cost
msp430
MPU
GCC
30,748
125
1
[]
[ "<s>", "void", "PIC16TargetLowering", "::", "LowerOperationWrapper", "(", "SDNode", "*", "N", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "Results", ",", "SelectionDAG", "&", "DAG", ")", "{", "SDValue", "Op", "=", "SDValue", "(", "N", ",", "0", ")", ";", "SDValue", "Res", ";", "unsigned", "i", ";", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "case", "ISD", "::", "LOAD", ":", "Res", "=", "ExpandLoad", "(", "Op", ".", "getNode", "(", ")", ",", "DAG", ")", ";", "break", ";", "default", ":", "{", "Res", "=", "LowerOperation", "(", "Op", ",", "DAG", ")", ";", "if", "(", "Res", ".", "getNode", "(", ")", ")", "Results", ".", "push_back", "(", "Res", ")", ";", "return", ";", "}", "}", "N", "=", "Res", ".", "getNode", "(", ")", ";", "unsigned", "NumValues", "=", "N", "->", "getNumValues", "(", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "NumValues", ";", "i", "++", ")", "{", "Results", ".", "push_back", "(", "SDValue", "(", "N", ",", "i", ")", ")", ";", "}", "}", "</s>" ]
[ "This", "callback", "is", "invoked", "by", "the", "type", "legalizer", "to", "legalize", "nodes", "with", "an", "illegal", "operand", "type", "but", "legal", "result", "types", "." ]
[ "PIC16", "PIC16", "0", "ISD::LOAD", "0" ]
PIC16ISelLowering
LowerOperationWrapper
PIC16
MPU
LLVM
30,749
142
1
[]
[ "<s>", "static", "rtx_insn", "*", "emit_frame_save", "(", "rtx", "frame_reg", ",", "machine_mode", "mode", ",", "unsigned", "int", "regno", ",", "int", "offset", ",", "HOST_WIDE_INT", "frame_reg_to_sp", ")", "{", "rtx", "reg", ";", "gcc_checking_assert", "(", "!", "(", "(", "TARGET_ALTIVEC_ABI", "&&", "ALTIVEC_VECTOR_MODE", "(", "mode", ")", ")", "||", "(", "TARGET_VSX", "&&", "ALTIVEC_OR_VSX_VECTOR_MODE", "(", "mode", ")", ")", "||", "(", "TARGET_E500_DOUBLE", "&&", "mode", "==", "DFmode", ")", "||", "(", "TARGET_SPE_ABI", "&&", "SPE_VECTOR_MODE", "(", "mode", ")", "&&", "!", "SPE_CONST_OFFSET_OK", "(", "offset", ")", ")", ")", ")", ";", "reg", "=", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "rtx_insn", "*", "insn", "=", "emit_insn", "(", "gen_frame_store", "(", "reg", ",", "frame_reg", ",", "offset", ")", ")", ";", "return", "rs6000_frame_related", "(", "insn", ",", "frame_reg", ",", "frame_reg_to_sp", ",", "NULL_RTX", ",", "NULL_RTX", ")", ";", "}", "</s>" ]
[ "Save", "a", "register", "into", "the", "frame", ",", "and", "emit", "RTX_FRAME_RELATED_P", "notes", ".", "Save", "REGNO", "into", "[", "FRAME_REG", "+", "OFFSET", "]", "in", "mode", "MODE", "." ]
[ "rs6000" ]
rs60006
emit_frame_save
rs6000
CPU
GCC
30,750
112
1
[]
[ "<s>", "void", "Thumb2InstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "Register", "SrcReg", ",", "bool", "isKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FI", ")", ",", "MachineMemOperand", "::", "MOStore", ",", "MFI", ".", "getObjectSize", "(", "FI", ")", ",", "MFI", ".", "getObjectAlignment", "(", "FI", ")", ")", ";", "if", "(", "ARM", "::", "GPRRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "t2STRi12", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "return", ";", "}", "if", "(", "ARM", "::", "GPRPairRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "if", "(", "Register", "::", "isVirtualRegister", "(", "SrcReg", ")", ")", "{", "MachineRegisterInfo", "*", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "MRI", "->", "constrainRegClass", "(", "SrcReg", ",", "&", "ARM", "::", "GPRPairnospRegClass", ")", ";", "}", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "t2STRDi8", ")", ")", ";", "AddDReg", "(", "MIB", ",", "SrcReg", ",", "ARM", "::", "gsub_0", ",", "getKillRegState", "(", "isKill", ")", ",", "TRI", ")", ";", "AddDReg", "(", "MIB", ",", "SrcReg", ",", "ARM", "::", "gsub_1", ",", "0", ",", "TRI", ")", ";", "MIB", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "return", ";", "}", "ARMBaseInstrInfo", "::", "storeRegToStackSlot", "(", "MBB", ",", "I", ",", "SrcReg", ",", "isKill", ",", "FI", ",", "RC", ",", "TRI", ")", ";", "}", "</s>" ]
[ "Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "." ]
[ "ARM", "ARM::GPRRegClass", "ARM::t2STRi12", "0", "ARMCC::AL", "ARM::GPRPairRegClass", "ARM::GPRPairnospRegClass", "ARM::t2STRDi8", "ARM::gsub_0", "ARM::gsub_1", "0", "0", "ARMCC::AL", "ARM" ]
Thumb2InstrInfo35
storeRegToStackSlot
ARM
CPU
LLVM
30,751
327
1
[]
[ "<s>", "static", "void", "ix86_function_arg_advance", "(", "cumulative_args_t", "cum_v", ",", "machine_mode", "mode", ",", "const_tree", "type", ",", "bool", "named", ")", "{", "CUMULATIVE_ARGS", "*", "cum", "=", "get_cumulative_args", "(", "cum_v", ")", ";", "HOST_WIDE_INT", "bytes", ",", "words", ";", "int", "nregs", ";", "if", "(", "!", "cum", "->", "caller", "&&", "cfun", "->", "machine", "->", "func_type", "!=", "TYPE_NORMAL", ")", "return", ";", "if", "(", "mode", "==", "BLKmode", ")", "bytes", "=", "int_size_in_bytes", "(", "type", ")", ";", "else", "bytes", "=", "GET_MODE_SIZE", "(", "mode", ")", ";", "words", "=", "CEIL", "(", "bytes", ",", "UNITS_PER_WORD", ")", ";", "if", "(", "type", ")", "mode", "=", "type_natural_mode", "(", "type", ",", "NULL", ",", "false", ")", ";", "if", "(", "(", "type", "&&", "POINTER_BOUNDS_TYPE_P", "(", "type", ")", ")", "||", "POINTER_BOUNDS_MODE_P", "(", "mode", ")", ")", "{", "if", "(", "cum", "->", "bnds_in_bt", ")", "{", "cum", "->", "bnds_in_bt", "--", ";", "return", ";", "}", "if", "(", "cum", "->", "force_bnd_pass", ")", "cum", "->", "force_bnd_pass", "--", ";", "cum", "->", "bnd_regno", "++", ";", "return", ";", "}", "cum", "->", "bnds_in_bt", "=", "0", ";", "if", "(", "cum", "->", "force_bnd_pass", ")", "{", "cum", "->", "bnd_regno", "+=", "cum", "->", "force_bnd_pass", ";", "cum", "->", "force_bnd_pass", "=", "0", ";", "}", "if", "(", "TARGET_64BIT", ")", "{", "enum", "calling_abi", "call_abi", "=", "cum", "?", "cum", "->", "call_abi", ":", "ix86_abi", ";", "if", "(", "call_abi", "==", "MS_ABI", ")", "nregs", "=", "function_arg_advance_ms_64", "(", "cum", ",", "bytes", ",", "words", ")", ";", "else", "nregs", "=", "function_arg_advance_64", "(", "cum", ",", "mode", ",", "type", ",", "words", ",", "named", ")", ";", "}", "else", "nregs", "=", "function_arg_advance_32", "(", "cum", ",", "mode", ",", "type", ",", "bytes", ",", "words", ")", ";", "if", "(", "cum", "->", "stdarg", ")", "cum", "->", "force_bnd_pass", "=", "nregs", ";", "if", "(", "!", "nregs", ")", "cum", "->", "bnds_in_bt", "=", "chkp_type_bounds_count", "(", "type", ")", ";", "}", "</s>" ]
[ "Update", "the", "data", "in", "CUM", "to", "advance", "over", "an", "argument", "of", "mode", "MODE", "and", "data", "type", "TYPE", ".", "(", "TYPE", "is", "null", "for", "libcalls", "where", "that", "information", "may", "not", "be", "available", ".", ")" ]
[ "i386", "0", "0" ]
i3866
ix86_function_arg_advance
i386
CPU
GCC
30,752
269
1
[]
[ "<s>", "unsigned", "PPCRegisterInfo", "::", "getRegPressureLimit", "(", "const", "TargetRegisterClass", "*", "RC", ",", "MachineFunction", "&", "MF", ")", "const", "{", "const", "PPCFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "const", "unsigned", "DefaultSafety", "=", "1", ";", "switch", "(", "RC", "->", "getID", "(", ")", ")", "{", "default", ":", "return", "0", ";", "case", "PPC", "::", "G8RC_NOX0RegClassID", ":", "case", "PPC", "::", "GPRC_NOR0RegClassID", ":", "case", "PPC", "::", "G8RCRegClassID", ":", "case", "PPC", "::", "GPRCRegClassID", ":", "{", "unsigned", "FP", "=", "TFI", "->", "hasFP", "(", "MF", ")", "?", "1", ":", "0", ";", "return", "32", "-", "FP", "-", "DefaultSafety", ";", "}", "case", "PPC", "::", "F8RCRegClassID", ":", "case", "PPC", "::", "F4RCRegClassID", ":", "case", "PPC", "::", "QFRCRegClassID", ":", "case", "PPC", "::", "QSRCRegClassID", ":", "case", "PPC", "::", "QBRCRegClassID", ":", "case", "PPC", "::", "VRRCRegClassID", ":", "case", "PPC", "::", "VFRCRegClassID", ":", "case", "PPC", "::", "VSLRCRegClassID", ":", "case", "PPC", "::", "VSHRCRegClassID", ":", "return", "32", "-", "DefaultSafety", ";", "case", "PPC", "::", "VSRCRegClassID", ":", "case", "PPC", "::", "VSFRCRegClassID", ":", "case", "PPC", "::", "VSSRCRegClassID", ":", "return", "64", "-", "DefaultSafety", ";", "case", "PPC", "::", "CRRCRegClassID", ":", "return", "8", "-", "DefaultSafety", ";", "}", "}", "</s>" ]
[ "Return", "the", "register", "pressure", "``", "high", "water", "mark", "''", "for", "the", "specific", "register", "class", "." ]
[ "PowerPC", "PPC", "PPC", "1", "0", "PPC::G8RC_NOX0RegClassID", "PPC::GPRC_NOR0RegClassID", "PPC::G8RCRegClassID", "PPC::GPRCRegClassID", "1", "0", "32", "PPC::F8RCRegClassID", "PPC::F4RCRegClassID", "PPC::QFRCRegClassID", "PPC::QSRCRegClassID", "PPC::QBRCRegClassID", "PPC::VRRCRegClassID", "PPC::VFRCRegClassID", "PPC::VSLRCRegClassID", "PPC::VSHRCRegClassID", "32", "PPC::VSRCRegClassID", "PPC::VSFRCRegClassID", "PPC::VSSRCRegClassID", "64", "PPC::CRRCRegClassID", "8" ]
PPCRegisterInfo (2)1
getRegPressureLimit
PowerPC
CPU
LLVM
30,753
171
1
[]
[ "<s>", "bool", "X86PassConfig", "::", "addPostRegAlloc", "(", ")", "{", "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" ]
X86TargetMachine43
addPostRegAlloc
X86
CPU
LLVM
30,754
20
1
[]
[ "<s>", "void", "analyze", "(", "MachineBasicBlock", "&", "DefBlock", ",", "ArrayRef", "<", "MachineBasicBlock", "*", ">", "IncomingBlocks", ")", "{", "assert", "(", "Stack", ".", "empty", "(", ")", ")", ";", "ReachableMap", ".", "clear", "(", ")", ";", "ReachableOrdered", ".", "clear", "(", ")", ";", "Predecessors", ".", "clear", "(", ")", ";", "ReachableMap", ".", "try_emplace", "(", "&", "DefBlock", ",", "false", ")", ";", "ReachableOrdered", ".", "push_back", "(", "&", "DefBlock", ")", ";", "for", "(", "MachineBasicBlock", "*", "MBB", ":", "IncomingBlocks", ")", "{", "if", "(", "MBB", "==", "&", "DefBlock", ")", "{", "ReachableMap", "[", "&", "DefBlock", "]", "=", "true", ";", "continue", ";", "}", "ReachableMap", ".", "try_emplace", "(", "MBB", ",", "false", ")", ";", "ReachableOrdered", ".", "push_back", "(", "MBB", ")", ";", "bool", "Divergent", "=", "false", ";", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", "->", "terminators", "(", ")", ")", "{", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "AMDGPU", "::", "SI_NON_UNIFORM_BRCOND_PSEUDO", "||", "MI", ".", "getOpcode", "(", ")", "==", "AMDGPU", "::", "SI_IF", "||", "MI", ".", "getOpcode", "(", ")", "==", "AMDGPU", "::", "SI_ELSE", "||", "MI", ".", "getOpcode", "(", ")", "==", "AMDGPU", "::", "SI_LOOP", ")", "{", "Divergent", "=", "true", ";", "break", ";", "}", "}", "if", "(", "Divergent", "&&", "PDT", ".", "dominates", "(", "&", "DefBlock", ",", "MBB", ")", ")", "append_range", "(", "Stack", ",", "MBB", "->", "successors", "(", ")", ")", ";", "}", "while", "(", "!", "Stack", ".", "empty", "(", ")", ")", "{", "MachineBasicBlock", "*", "MBB", "=", "Stack", ".", "pop_back_val", "(", ")", ";", "if", "(", "!", "ReachableMap", ".", "try_emplace", "(", "MBB", ",", "false", ")", ".", "second", ")", "continue", ";", "ReachableOrdered", ".", "push_back", "(", "MBB", ")", ";", "append_range", "(", "Stack", ",", "MBB", "->", "successors", "(", ")", ")", ";", "}", "for", "(", "MachineBasicBlock", "*", "MBB", ":", "ReachableOrdered", ")", "{", "bool", "HaveReachablePred", "=", "false", ";", "for", "(", "MachineBasicBlock", "*", "Pred", ":", "MBB", "->", "predecessors", "(", ")", ")", "{", "if", "(", "ReachableMap", ".", "count", "(", "Pred", ")", ")", "{", "HaveReachablePred", "=", "true", ";", "}", "else", "{", "Stack", ".", "push_back", "(", "Pred", ")", ";", "}", "}", "if", "(", "!", "HaveReachablePred", ")", "ReachableMap", "[", "MBB", "]", "=", "true", ";", "if", "(", "HaveReachablePred", ")", "{", "for", "(", "MachineBasicBlock", "*", "UnreachablePred", ":", "Stack", ")", "{", "if", "(", "!", "llvm", "::", "is_contained", "(", "Predecessors", ",", "UnreachablePred", ")", ")", "Predecessors", ".", "push_back", "(", "UnreachablePred", ")", ";", "}", "}", "Stack", ".", "clear", "(", ")", ";", "}", "}", "</s>" ]
[ "analyze", "-", "set", "CurLI", "to", "the", "specified", "interval", ",", "and", "analyze", "how", "it", "may", "be", "split", "." ]
[ "AMDGPU", "AMDGPU::SI_NON_UNIFORM_BRCOND_PSEUDO", "AMDGPU::SI_IF", "AMDGPU::SI_ELSE", "AMDGPU::SI_LOOP" ]
SILowerI1Copies11
analyze
AMDGPU
GPU
LLVM
30,755
362
1
[]
[ "<s>", "unsigned", "X86FastISel", "::", "fastMaterializeFloatZero", "(", "const", "ConstantFP", "*", "CF", ")", "{", "MVT", "VT", ";", "if", "(", "!", "isTypeLegal", "(", "CF", "->", "getType", "(", ")", ",", "VT", ")", ")", "return", "0", ";", "bool", "HasSSE1", "=", "Subtarget", "->", "hasSSE1", "(", ")", ";", "bool", "HasSSE2", "=", "Subtarget", "->", "hasSSE2", "(", ")", ";", "bool", "HasAVX512", "=", "Subtarget", "->", "hasAVX512", "(", ")", ";", "unsigned", "Opc", "=", "0", ";", "switch", "(", "VT", ".", "SimpleTy", ")", "{", "default", ":", "return", "0", ";", "case", "MVT", "::", "f32", ":", "Opc", "=", "HasAVX512", "?", "X86", "::", "AVX512_FsFLD0SS", ":", "HasSSE1", "?", "X86", "::", "FsFLD0SS", ":", "X86", "::", "LD_Fp032", ";", "break", ";", "case", "MVT", "::", "f64", ":", "Opc", "=", "HasAVX512", "?", "X86", "::", "AVX512_FsFLD0SD", ":", "HasSSE2", "?", "X86", "::", "FsFLD0SD", ":", "X86", "::", "LD_Fp064", ";", "break", ";", "case", "MVT", "::", "f80", ":", "return", "0", ";", "}", "Register", "ResultReg", "=", "createResultReg", "(", "TLI", ".", "getRegClassFor", "(", "VT", ")", ")", ";", "BuildMI", "(", "*", "FuncInfo", ".", "MBB", ",", "FuncInfo", ".", "InsertPt", ",", "DbgLoc", ",", "TII", ".", "get", "(", "Opc", ")", ",", "ResultReg", ")", ";", "return", "ResultReg", ";", "}", "</s>" ]
[ "Emit", "the", "floating-point", "constant", "+0.0", "in", "a", "register", "using", "target-", "specific", "logic", "." ]
[ "X86", "X86", "0", "0", "0", "MVT::f32", "X86::AVX512_FsFLD0SS", "X86::FsFLD0SS", "X86::LD_Fp032", "MVT::f64", "X86::AVX512_FsFLD0SD", "X86::FsFLD0SD", "X86::LD_Fp064", "MVT::f80", "0" ]
X86FastISel56
fastMaterializeFloatZero
X86
CPU
LLVM
30,756
174
1
[]
[ "<s>", "SDNode", "*", "SparcDAGToDAGISel", "::", "Select", "(", "SDValue", "Op", ")", "{", "SDNode", "*", "N", "=", "Op", ".", "getNode", "(", ")", ";", "DebugLoc", "dl", "=", "N", "->", "getDebugLoc", "(", ")", ";", "if", "(", "N", "->", "isMachineOpcode", "(", ")", ")", "return", "NULL", ";", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "ISD", "::", "SDIV", ":", "case", "ISD", "::", "UDIV", ":", "{", "SDValue", "DivLHS", "=", "N", "->", "getOperand", "(", "0", ")", ";", "SDValue", "DivRHS", "=", "N", "->", "getOperand", "(", "1", ")", ";", "SDValue", "TopPart", ";", "if", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "SDIV", ")", "{", "TopPart", "=", "SDValue", "(", "CurDAG", "->", "getTargetNode", "(", "SP", "::", "SRAri", ",", "dl", ",", "MVT", "::", "i32", ",", "DivLHS", ",", "CurDAG", "->", "getTargetConstant", "(", "31", ",", "MVT", "::", "i32", ")", ")", ",", "0", ")", ";", "}", "else", "{", "TopPart", "=", "CurDAG", "->", "getRegister", "(", "SP", "::", "G0", ",", "MVT", "::", "i32", ")", ";", "}", "TopPart", "=", "SDValue", "(", "CurDAG", "->", "getTargetNode", "(", "SP", "::", "WRYrr", ",", "dl", ",", "MVT", "::", "Flag", ",", "TopPart", ",", "CurDAG", "->", "getRegister", "(", "SP", "::", "G0", ",", "MVT", "::", "i32", ")", ")", ",", "0", ")", ";", "unsigned", "Opcode", "=", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "SDIV", "?", "SP", "::", "SDIVrr", ":", "SP", "::", "UDIVrr", ";", "return", "CurDAG", "->", "SelectNodeTo", "(", "N", ",", "Opcode", ",", "MVT", "::", "i32", ",", "DivLHS", ",", "DivRHS", ",", "TopPart", ")", ";", "}", "case", "ISD", "::", "MULHU", ":", "case", "ISD", "::", "MULHS", ":", "{", "SDValue", "MulLHS", "=", "N", "->", "getOperand", "(", "0", ")", ";", "SDValue", "MulRHS", "=", "N", "->", "getOperand", "(", "1", ")", ";", "unsigned", "Opcode", "=", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "MULHU", "?", "SP", "::", "UMULrr", ":", "SP", "::", "SMULrr", ";", "SDNode", "*", "Mul", "=", "CurDAG", "->", "getTargetNode", "(", "Opcode", ",", "dl", ",", "MVT", "::", "i32", ",", "MVT", "::", "Flag", ",", "MulLHS", ",", "MulRHS", ")", ";", "return", "CurDAG", "->", "SelectNodeTo", "(", "N", ",", "SP", "::", "RDY", ",", "MVT", "::", "i32", ",", "SDValue", "(", "Mul", ",", "1", ")", ")", ";", "return", "NULL", ";", "}", "}", "return", "SelectCode", "(", "Op", ")", ";", "}", "</s>" ]
[ "Main", "hook", "for", "targets", "to", "transform", "nodes", "into", "machine", "nodes", "." ]
[ "Sparc", "Sparc", "ISD::SDIV", "ISD::UDIV", "0", "1", "ISD::SDIV", "SP::SRAri", "MVT::i32", "31", "MVT::i32", "0", "SP::G0", "MVT::i32", "SP::WRYrr", "MVT::Flag", "SP::G0", "MVT::i32", "0", "ISD::SDIV", "SP::SDIVrr", "SP::UDIVrr", "MVT::i32", "ISD::MULHU", "ISD::MULHS", "0", "1", "ISD::MULHU", "SP::UMULrr", "SP::SMULrr", "MVT::i32", "MVT::Flag", "SP::RDY", "MVT::i32", "1" ]
SparcISelDAGToDAG27
Select
Sparc
CPU
LLVM
30,757
345
1
[]
[ "<s>", "const", "uint32_t", "*", "SIRegisterInfo", "::", "getCallPreservedMask", "(", "const", "MachineFunction", "&", "MF", ",", "CallingConv", "::", "ID", "CC", ")", "const", "{", "switch", "(", "CC", ")", "{", "case", "CallingConv", "::", "C", ":", "case", "CallingConv", "::", "Fast", ":", "return", "CSR_AMDGPU_HighRegs_RegMask", ";", "default", ":", "return", "nullptr", ";", "}", "}", "</s>" ]
[ "Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "." ]
[ "AMDGPU", "SI", "AMDGPU" ]
AMDGPURegisterInfo15
getCallPreservedMask
AMDGPU
GPU
LLVM
30,758
44
1
[]
[ "<s>", "bool", "CAHPMCExpr", "::", "evaluateAsConstant", "(", "int64_t", "&", "Res", ")", "const", "{", "MCValue", "Value", ";", "if", "(", "!", "getSubExpr", "(", ")", "->", "evaluateAsRelocatable", "(", "Value", ",", "nullptr", ",", "nullptr", ")", ")", "return", "false", ";", "if", "(", "!", "Value", ".", "isAbsolute", "(", ")", ")", "return", "false", ";", "Res", "=", "evaluateAsInt64", "(", "Value", ".", "getConstant", "(", ")", ")", ";", "return", "true", ";", "}", "</s>" ]
[ "Evaluates", "the", "fixup", "as", "a", "constant", "value", "." ]
[ "CAHP", "CAHP" ]
CAHPMCExpr
evaluateAsConstant
CAHP
CPU
LLVM
30,759
60
1
[]
[ "<s>", "bool", "mayStore", "(", ")", "const", "{", "return", "(", "Store", ")", ";", "}", "</s>" ]
[ "Return", "true", "if", "this", "instruction", "could", "possibly", "modify", "memory", "." ]
[ "Hexagon" ]
HexagonShuffler (2)
mayStore
Hexagon
DSP
LLVM
30,760
12
1
[]
[ "<s>", "static", "bool", "mips_use_shadow_register_set_p", "(", "tree", "type", ")", "{", "return", "lookup_attribute", "(", "\"use_shadow_register_set\"", ",", "TYPE_ATTRIBUTES", "(", "type", ")", ")", "!=", "NULL", ";", "}", "</s>" ]
[ "Check", "if", "the", "attribute", "to", "use", "shadow", "register", "set", "is", "set", "for", "a", "function", "." ]
[ "mips", "\"use_shadow_register_set\"" ]
mips4
mips_use_shadow_register_set_p
mips
CPU
GCC
30,761
22
1
[]
[ "<s>", "EVT", "R600TargetLowering", "::", "getSetCCResultType", "(", "const", "DataLayout", "&", "DL", ",", "LLVMContext", "&", ",", "EVT", "VT", ")", "const", "{", "if", "(", "!", "VT", ".", "isVector", "(", ")", ")", "return", "MVT", "::", "i32", ";", "return", "VT", ".", "changeVectorElementTypeToInteger", "(", ")", ";", "}", "</s>" ]
[ "Return", "the", "value", "type", "to", "use", "for", "ISD", ":", ":SETCC", "." ]
[ "AMDGPU", "R600", "MVT::i32" ]
R600ISelLowering (2)
getSetCCResultType
AMDGPU
GPU
LLVM
30,762
40
1
[]
[ "<s>", "OperandMatchResultTy", "SparcAsmParser", "::", "tryParseRegister", "(", "unsigned", "&", "RegNo", ",", "SMLoc", "&", "StartLoc", ",", "SMLoc", "&", "EndLoc", ")", "{", "const", "AsmToken", "&", "Tok", "=", "Parser", ".", "getTok", "(", ")", ";", "StartLoc", "=", "Tok", ".", "getLoc", "(", ")", ";", "EndLoc", "=", "Tok", ".", "getEndLoc", "(", ")", ";", "RegNo", "=", "0", ";", "if", "(", "getLexer", "(", ")", ".", "getKind", "(", ")", "!=", "AsmToken", "::", "Percent", ")", "return", "MatchOperand_NoMatch", ";", "Parser", ".", "Lex", "(", ")", ";", "unsigned", "regKind", "=", "SparcOperand", "::", "rk_None", ";", "if", "(", "matchRegisterName", "(", "Tok", ",", "RegNo", ",", "regKind", ")", ")", "{", "Parser", ".", "Lex", "(", ")", ";", "return", "MatchOperand_Success", ";", "}", "getLexer", "(", ")", ".", "UnLex", "(", "Tok", ")", ";", "return", "MatchOperand_NoMatch", ";", "}", "</s>" ]
[ "tryParseRegister", "-", "parse", "one", "register", "if", "possible" ]
[ "Sparc", "Sparc", "0", "SparcOperand::rk_None" ]
SparcAsmParser1
tryParseRegister
Sparc
CPU
LLVM
30,763
114
1
[]
[ "<s>", "bool", "PPCTargetMachine", "::", "isLittleEndian", "(", ")", "const", "{", "assert", "(", "Endianness", "!=", "Endian", "::", "NOT_DETECTED", "&&", "\"Unable to determine endianness\"", ")", ";", "return", "Endianness", "==", "Endian", "::", "LITTLE", ";", "}", "</s>" ]
[ "Tests", "whether", "the", "target", "triple", "is", "little", "endian", "." ]
[ "PowerPC", "PPC", "\"Unable to determine endianness\"" ]
PPCTargetMachine40
isLittleEndian
PowerPC
CPU
LLVM
30,764
27
1
[]
[ "<s>", "static", "rtx", "rs6000_complex_function_value", "(", "machine_mode", "mode", ")", "{", "unsigned", "int", "regno", ";", "rtx", "r1", ",", "r2", ";", "machine_mode", "inner", "=", "GET_MODE_INNER", "(", "mode", ")", ";", "unsigned", "int", "inner_bytes", "=", "GET_MODE_SIZE", "(", "inner", ")", ";", "if", "(", "FLOAT_MODE_P", "(", "mode", ")", "&&", "TARGET_HARD_FLOAT", "&&", "TARGET_FPRS", ")", "regno", "=", "FP_ARG_RETURN", ";", "else", "{", "regno", "=", "GP_ARG_RETURN", ";", "if", "(", "TARGET_32BIT", "&&", "inner_bytes", ">=", "4", ")", "return", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "}", "if", "(", "inner_bytes", ">=", "8", ")", "return", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ";", "r1", "=", "gen_rtx_EXPR_LIST", "(", "inner", ",", "gen_rtx_REG", "(", "inner", ",", "regno", ")", ",", "const0_rtx", ")", ";", "r2", "=", "gen_rtx_EXPR_LIST", "(", "inner", ",", "gen_rtx_REG", "(", "inner", ",", "regno", "+", "1", ")", ",", "GEN_INT", "(", "inner_bytes", ")", ")", ";", "return", "gen_rtx_PARALLEL", "(", "mode", ",", "gen_rtvec", "(", "2", ",", "r1", ",", "r2", ")", ")", ";", "}", "</s>" ]
[ "Return", "an", "RTX", "representing", "where", "to", "find", "the", "function", "value", "of", "a", "function", "returning", "MODE", "." ]
[ "rs6000", "4", "8", "1", "2" ]
rs60004
rs6000_complex_function_value
rs6000
CPU
GCC
30,765
139
1
[]
[ "<s>", "static", "void", "mep_reorg_noframe", "(", "rtx_insn", "*", "insns", ")", "{", "rtx_insn", "*", "start_frame_insn", ";", "rtx_insn", "*", "end_frame_insn", "=", "0", ";", "int", "sp_adjust", ",", "sp2", ";", "rtx", "sp", ";", "while", "(", "insns", "&&", "!", "INSN_P", "(", "insns", ")", ")", "insns", "=", "NEXT_INSN", "(", "insns", ")", ";", "if", "(", "!", "insns", ")", "return", ";", "sp_adjust", "=", "add_sp_insn_p", "(", "insns", ")", ";", "if", "(", "sp_adjust", "==", "0", ")", "return", ";", "start_frame_insn", "=", "insns", ";", "sp", "=", "SET_DEST", "(", "PATTERN", "(", "start_frame_insn", ")", ")", ";", "insns", "=", "next_real_insn", "(", "insns", ")", ";", "while", "(", "insns", ")", "{", "rtx_insn", "*", "next", "=", "next_real_insn", "(", "insns", ")", ";", "if", "(", "!", "next", ")", "break", ";", "sp2", "=", "add_sp_insn_p", "(", "insns", ")", ";", "if", "(", "sp2", ")", "{", "if", "(", "end_frame_insn", ")", "return", ";", "end_frame_insn", "=", "insns", ";", "if", "(", "sp2", "!=", "-", "sp_adjust", ")", "return", ";", "}", "else", "if", "(", "mep_mentioned_p", "(", "insns", ",", "sp", ",", "0", ")", ")", "return", ";", "else", "if", "(", "CALL_P", "(", "insns", ")", ")", "return", ";", "insns", "=", "next", ";", "}", "if", "(", "end_frame_insn", ")", "{", "delete_insn", "(", "start_frame_insn", ")", ";", "delete_insn", "(", "end_frame_insn", ")", ";", "}", "}", "</s>" ]
[ "Check", "for", "trivial", "functions", "that", "set", "up", "an", "unneeded", "stack", "frame", "." ]
[ "mep", "0", "0", "0" ]
mep
mep_reorg_noframe
mep
CPU
GCC
30,766
186
1
[]
[ "<s>", "bool", "X86RegisterInfo", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "MachineModuleInfo", "*", "MMI", "=", "MFI", "->", "getMachineModuleInfo", "(", ")", ";", "return", "(", "NoFramePointerElim", "||", "needsStackRealignment", "(", "MF", ")", "||", "MFI", "->", "hasVarSizedObjects", "(", ")", "||", "MFI", "->", "isFrameAddressTaken", "(", ")", "||", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", "->", "getForceFramePointer", "(", ")", "||", "(", "MMI", "&&", "MMI", "->", "callsUnwindInit", "(", ")", ")", ")", ";", "}", "</s>" ]
[ "hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "." ]
[ "X86", "X86", "X86" ]
X86RegisterInfo33
hasFP
X86
CPU
LLVM
30,767
80
1
[]
[ "<s>", "static", "bool", "riscv_cannot_force_const_mem", "(", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "rtx", "x", ")", "{", "enum", "riscv_symbol_type", "type", ";", "rtx", "base", ",", "offset", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "HIGH", ")", "return", "true", ";", "split_const", "(", "x", ",", "&", "base", ",", "&", "offset", ")", ";", "if", "(", "riscv_symbolic_constant_p", "(", "base", ",", "&", "type", ")", ")", "{", "if", "(", "SMALL_OPERAND", "(", "INTVAL", "(", "offset", ")", ")", "&&", "riscv_symbol_insns", "(", "type", ")", ">", "0", ")", "return", "true", ";", "if", "(", "flag_pic", ")", "return", "true", ";", "}", "if", "(", "tls_referenced_p", "(", "x", ")", ")", "return", "true", ";", "return", "false", ";", "}", "</s>" ]
[ "Implement", "TARGET_CANNOT_FORCE_CONST_MEM", "." ]
[ "riscv", "0" ]
riscv
riscv_cannot_force_const_mem
riscv
CPU
GCC
30,768
97
1
[]
[ "<s>", "bool", "isLegalMaskedScatter", "(", "Type", "*", "DataType", ",", "MaybeAlign", "Alignment", ")", "{", "return", "isVectorLaneType", "(", "*", "getLaneType", "(", "DataType", ")", ")", ";", "}", "</s>" ]
[ "Return", "true", "if", "the", "target", "supports", "masked", "scatter", "." ]
[ "VE" ]
VETargetTransformInfo
isLegalMaskedScatter
VE
CPU
LLVM
30,769
22
1
[]
[ "<s>", "static", "rtx", "ix86_load_returned_bounds", "(", "rtx", "slot", ")", "{", "rtx", "res", ";", "gcc_assert", "(", "REG_P", "(", "slot", ")", ")", ";", "res", "=", "gen_reg_rtx", "(", "BNDmode", ")", ";", "emit_move_insn", "(", "res", ",", "slot", ")", ";", "return", "res", ";", "}", "</s>" ]
[ "Load", "and", "return", "bounds", "returned", "by", "function", "in", "SLOT", "." ]
[ "i386" ]
i3864
ix86_load_returned_bounds
i386
CPU
GCC
30,770
37
1
[]
[ "<s>", "static", "rtx", "x86_this_parameter", "(", "tree", "function", ")", "{", "tree", "type", "=", "TREE_TYPE", "(", "function", ")", ";", "if", "(", "TARGET_64BIT", ")", "{", "int", "n", "=", "aggregate_value_p", "(", "TREE_TYPE", "(", "type", ")", ",", "type", ")", "!=", "0", ";", "return", "gen_rtx_REG", "(", "DImode", ",", "x86_64_int_parameter_registers", "[", "n", "]", ")", ";", "}", "if", "(", "ix86_function_regparm", "(", "type", ",", "function", ")", ">", "0", ")", "{", "tree", "parm", ";", "parm", "=", "TYPE_ARG_TYPES", "(", "type", ")", ";", "for", "(", ";", "parm", ";", "parm", "=", "TREE_CHAIN", "(", "parm", ")", ")", "if", "(", "TREE_VALUE", "(", "parm", ")", "==", "void_type_node", ")", "break", ";", "if", "(", "parm", ")", "{", "int", "regno", "=", "0", ";", "if", "(", "lookup_attribute", "(", "\"fastcall\"", ",", "TYPE_ATTRIBUTES", "(", "type", ")", ")", ")", "regno", "=", "2", ";", "return", "gen_rtx_REG", "(", "SImode", ",", "regno", ")", ";", "}", "}", "if", "(", "aggregate_value_p", "(", "TREE_TYPE", "(", "type", ")", ",", "type", ")", ")", "return", "gen_rtx_MEM", "(", "SImode", ",", "plus_constant", "(", "stack_pointer_rtx", ",", "8", ")", ")", ";", "else", "return", "gen_rtx_MEM", "(", "SImode", ",", "plus_constant", "(", "stack_pointer_rtx", ",", "4", ")", ")", ";", "}", "</s>" ]
[ "Returns", "an", "expression", "indicating", "where", "the", "this", "parameter", "is", "located", "on", "entry", "to", "the", "FUNCTION", "." ]
[ "i386", "0", "0", "0", "\"fastcall\"", "2", "8", "4" ]
i3863
x86_this_parameter
i386
CPU
GCC
30,771
169
1
[]
[ "<s>", "void", "MipsPassConfig", "::", "addIRPasses", "(", ")", "{", "TargetPassConfig", "::", "addIRPasses", "(", ")", ";", "addPass", "(", "createAtomicExpandPass", "(", ")", ")", ";", "if", "(", "getMipsSubtarget", "(", ")", ".", "os16", "(", ")", ")", "addPass", "(", "createMipsOs16Pass", "(", ")", ")", ";", "if", "(", "getMipsSubtarget", "(", ")", ".", "inMips16HardFloat", "(", ")", ")", "addPass", "(", "createMips16HardFloatPass", "(", ")", ")", ";", "if", "(", "getMipsSubtarget", "(", ")", ".", "isCheri", "(", ")", ")", "{", "addPass", "(", "createCheriLoopPointerDecanonicalize", "(", ")", ")", ";", "addPass", "(", "createAggressiveDCEPass", "(", ")", ")", ";", "addPass", "(", "createCheriRangeChecker", "(", ")", ")", ";", "addPass", "(", "createCheriBoundAllocasPass", "(", ")", ")", ";", "}", "}", "</s>" ]
[ "Add", "common", "target", "configurable", "passes", "that", "perform", "LLVM", "IR", "to", "IR", "transforms", "following", "machine", "independent", "optimization", "." ]
[ "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips", "Mips" ]
MipsTargetMachine55
addIRPasses
Mips
CPU
LLVM
30,772
95
1
[]
[ "<s>", "MachineBasicBlock", "*", "SystemZTargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MachineInstr", "*", "MI", ",", "MachineBasicBlock", "*", "BB", ")", "const", "{", "const", "SystemZInstrInfo", "&", "TII", "=", "*", "TM", ".", "getInstrInfo", "(", ")", ";", "DebugLoc", "dl", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "assert", "(", "(", "MI", "->", "getOpcode", "(", ")", "==", "SystemZ", "::", "Select32", "||", "MI", "->", "getOpcode", "(", ")", "==", "SystemZ", "::", "SelectF32", "||", "MI", "->", "getOpcode", "(", ")", "==", "SystemZ", "::", "Select64", "||", "MI", "->", "getOpcode", "(", ")", "==", "SystemZ", "::", "SelectF64", ")", "&&", "\"Unexpected instr type to insert\"", ")", ";", "const", "BasicBlock", "*", "LLVM_BB", "=", "BB", "->", "getBasicBlock", "(", ")", ";", "MachineFunction", "::", "iterator", "I", "=", "BB", ";", "++", "I", ";", "MachineBasicBlock", "*", "thisMBB", "=", "BB", ";", "MachineFunction", "*", "F", "=", "BB", "->", "getParent", "(", ")", ";", "MachineBasicBlock", "*", "copy0MBB", "=", "F", "->", "CreateMachineBasicBlock", "(", "LLVM_BB", ")", ";", "MachineBasicBlock", "*", "copy1MBB", "=", "F", "->", "CreateMachineBasicBlock", "(", "LLVM_BB", ")", ";", "SystemZCC", "::", "CondCodes", "CC", "=", "(", "SystemZCC", "::", "CondCodes", ")", "MI", "->", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", ";", "BuildMI", "(", "BB", ",", "dl", ",", "TII", ".", "getBrCond", "(", "CC", ")", ")", ".", "addMBB", "(", "copy1MBB", ")", ";", "F", "->", "insert", "(", "I", ",", "copy0MBB", ")", ";", "F", "->", "insert", "(", "I", ",", "copy1MBB", ")", ";", "copy1MBB", "->", "transferSuccessors", "(", "BB", ")", ";", "BB", "->", "addSuccessor", "(", "copy0MBB", ")", ";", "BB", "->", "addSuccessor", "(", "copy1MBB", ")", ";", "BB", "=", "copy0MBB", ";", "BB", "->", "addSuccessor", "(", "copy1MBB", ")", ";", "BB", "=", "copy1MBB", ";", "BuildMI", "(", "BB", ",", "dl", ",", "TII", ".", "get", "(", "SystemZ", "::", "PHI", ")", ",", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ")", ".", "addReg", "(", "MI", "->", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "copy0MBB", ")", ".", "addReg", "(", "MI", "->", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "thisMBB", ")", ";", "F", "->", "DeleteMachineInstr", "(", "MI", ")", ";", "return", "BB", ";", "}", "</s>" ]
[ "This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'usesCustomInserter", "'", "flag", "." ]
[ "SystemZ", "SystemZ", "SystemZ", "SystemZ::Select32", "SystemZ::SelectF32", "SystemZ::Select64", "SystemZ::SelectF64", "\"Unexpected instr type to insert\"", "SystemZCC::CondCodes", "SystemZCC::CondCodes", "3", "SystemZ::PHI", "0", "2", "1" ]
SystemZISelLowering42
EmitInstrWithCustomInserter
SystemZ
CPU
LLVM
30,773
313
1
[]
[ "<s>", "const", "char", "*", "getPassName", "(", ")", "const", "{", "return", "\"Hexagon Hardware Loops\"", ";", "}", "</s>" ]
[ "getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "." ]
[ "Hexagon", "\"Hexagon Hardware Loops\"" ]
HexagonHardwareLoops11
getPassName
Hexagon
DSP
LLVM
30,774
12
1
[]
[ "<s>", "llvm", "::", "FastISel", "*", "ARM", "::", "createFastISel", "(", "FunctionLoweringInfo", "&", "funcInfo", ")", "{", "const", "TargetMachine", "&", "TM", "=", "funcInfo", ".", "MF", "->", "getTarget", "(", ")", ";", "const", "ARMSubtarget", "*", "Subtarget", "=", "&", "TM", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "if", "(", "Subtarget", "->", "isTargetDarwin", "(", ")", "&&", "!", "Subtarget", "->", "isThumb1Only", "(", ")", "&&", "!", "DisableARMFastISel", ")", "return", "new", "ARMFastISel", "(", "funcInfo", ")", ";", "return", "0", ";", "}", "</s>" ]
[ "This", "method", "returns", "a", "target", "specific", "FastISel", "object", ",", "or", "null", "if", "the", "target", "does", "not", "support", "``", "fast", "''", "ISel", "." ]
[ "ARM", "ARM::createFastISel", "ARM", "ARM", "ARM", "ARM", "0" ]
ARMFastISel26
createFastISel
ARM
CPU
LLVM
30,775
70
1
[]
[ "<s>", "const", "uint32_t", "*", "ARMBaseRegisterInfo", "::", "getCallPreservedMask", "(", "CallingConv", "::", "ID", ")", "const", "{", "if", "(", "ReserveR9", ")", "return", "CSR_NaCl_RegMask", ";", "return", "(", "STI", ".", "isTargetIOS", "(", ")", "&&", "!", "STI", ".", "isAAPCS_ABI", "(", ")", ")", "?", "CSR_iOS_RegMask", ":", "CSR_AAPCS_RegMask", ";", "}", "</s>" ]
[ "Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "." ]
[ "ARM", "ARM" ]
ARMBaseRegisterInfo43
getCallPreservedMask
ARM
CPU
LLVM
30,776
41
1
[]
[ "<s>", "SDValue", "WDC65816TargetLowering", "::", "LowerFormalArguments", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "SDLoc", "DL", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "SmallVector", "<", "CCValAssign", ",", "16", ">", "ArgLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "getTargetMachine", "(", ")", ",", "ArgLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeFormalArguments", "(", "Ins", ",", "CC_WDC", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "ArgLocs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "ArgLocs", "[", "i", "]", ";", "if", "(", "i", "==", "0", "&&", "Ins", "[", "i", "]", ".", "Flags", ".", "isSRet", "(", ")", ")", "{", "WDC_LOG", "(", "\"WDC_TODO - Write code for returning a structure as a hidden input arg pointer\"", ")", ";", "continue", ";", "}", "if", "(", "VA", ".", "isRegLoc", "(", ")", ")", "{", "if", "(", "VA", ".", "needsCustom", "(", ")", ")", "{", "WDC_LOG", "(", "\"WDC_TODO - needsCustom() in register location!\"", ")", ";", "continue", ";", "}", "WDC_LOG", "(", "\"WDC_TODO - Write code for register location\"", ")", ";", "continue", ";", "}", "assert", "(", "VA", ".", "isMemLoc", "(", ")", ")", ";", "unsigned", "Offset", "=", "VA", ".", "getLocMemOffset", "(", ")", ";", "if", "(", "VA", ".", "needsCustom", "(", ")", ")", "{", "WDC_LOG", "(", "\"WDC_TODO - needsCustom() in memory location, offset=\"", "<<", "Offset", ")", ";", "continue", ";", "}", "WDC_LOG", "(", "\"WDC_TODO - Write code for memory location, offset=\"", "<<", "Offset", ")", ";", "}", "if", "(", "MF", ".", "getFunction", "(", ")", "->", "hasStructRetAttr", "(", ")", ")", "{", "WDC_LOG", "(", "\"WDC_TODO - Write code for hasStructRetAttr()\"", ")", ";", "}", "if", "(", "isVarArg", ")", "{", "WDC_LOG", "(", "\"WDC_TODO - Write code for isVarArg\"", ")", ";", "}", "return", "Chain", ";", "}", "</s>" ]
[ "This", "hook", "must", "be", "implemented", "to", "lower", "the", "incoming", "(", "formal", ")", "arguments", ",", "described", "by", "the", "Ins", "array", ",", "into", "the", "specified", "DAG", "." ]
[ "WDC65816", "WDC", "ISD::InputArg", "16", "WDC", "0", "0", "WDC", "\"WDC_TODO - Write code for returning a structure as a hidden input arg pointer\"", "WDC", "\"WDC_TODO - needsCustom() in register location!\"", "WDC", "\"WDC_TODO - Write code for register location\"", "WDC", "\"WDC_TODO - needsCustom() in memory location, offset=\"", "WDC", "\"WDC_TODO - Write code for memory location, offset=\"", "WDC", "\"WDC_TODO - Write code for hasStructRetAttr()\"", "WDC", "\"WDC_TODO - Write code for isVarArg\"" ]
WDC65816ISelLowering
LowerFormalArguments
WDC65816
MPU
LLVM
30,777
267
1
[]
[ "<s>", "void", "func_fma_steering", "::", "dfs", "(", "void", "(", "*", "process_forest", ")", "(", "fma_forest", "*", ")", ",", "void", "(", "*", "process_root", ")", "(", "fma_forest", "*", ",", "fma_root_node", "*", ")", ",", "void", "(", "*", "process_node", ")", "(", "fma_forest", "*", ",", "fma_node", "*", ")", ",", "bool", "free", ")", "{", "auto_vec", "<", "fma_node", "*", ">", "to_process", ";", "auto_vec", "<", "fma_node", "*", ">", "to_free", ";", "std", "::", "list", "<", "fma_forest", "*", ">", "::", "iterator", "forest_iter", ";", "for", "(", "forest_iter", "=", "this", "->", "m_fma_forests", ".", "begin", "(", ")", ";", "forest_iter", "!=", "this", "->", "m_fma_forests", ".", "end", "(", ")", ";", "++", "forest_iter", ")", "{", "std", "::", "list", "<", "fma_root_node", "*", ">", "::", "iterator", "root_iter", ";", "if", "(", "process_forest", ")", "process_forest", "(", "*", "forest_iter", ")", ";", "for", "(", "root_iter", "=", "(", "*", "forest_iter", ")", "->", "get_roots", "(", ")", "->", "begin", "(", ")", ";", "root_iter", "!=", "(", "*", "forest_iter", ")", "->", "get_roots", "(", ")", "->", "end", "(", ")", ";", "++", "root_iter", ")", "{", "if", "(", "process_root", ")", "process_root", "(", "*", "forest_iter", ",", "*", "root_iter", ")", ";", "to_process", ".", "safe_push", "(", "*", "root_iter", ")", ";", "}", "while", "(", "!", "to_process", ".", "is_empty", "(", ")", ")", "{", "fma_node", "*", "node", ";", "std", "::", "list", "<", "fma_node", "*", ">", "::", "iterator", "child_iter", ";", "node", "=", "to_process", ".", "pop", "(", ")", ";", "if", "(", "process_node", ")", "process_node", "(", "*", "forest_iter", ",", "node", ")", ";", "for", "(", "child_iter", "=", "node", "->", "get_children", "(", ")", "->", "begin", "(", ")", ";", "child_iter", "!=", "node", "->", "get_children", "(", ")", "->", "end", "(", ")", ";", "++", "child_iter", ")", "to_process", ".", "safe_push", "(", "*", "child_iter", ")", ";", "if", "(", "free", ")", "to_free", ".", "safe_push", "(", "node", ")", ";", "}", "if", "(", "free", ")", "{", "delete", "*", "forest_iter", ";", "while", "(", "!", "to_free", ".", "is_empty", "(", ")", ")", "{", "fma_node", "*", "node", "=", "to_free", ".", "pop", "(", ")", ";", "if", "(", "node", "->", "root_p", "(", ")", ")", "delete", "static_cast", "<", "fma_root_node", "*", ">", "(", "node", ")", ";", "else", "delete", "node", ";", "}", "}", "}", "}", "</s>" ]
[ "Perform", "a", "depth-first", "search", "of", "the", "forests", "of", "fma_node", "in", "THIS-", ">", "m_fma_forests", ",", "calling", "PROCESS_FOREST", "(", ")", "on", "each", "fma_forest", "object", "in", "THIS-", ">", "m_fma_forests", "list", ",", "PROCESS_ROOT", "(", ")", "on", "each", "tree", "root", "and", "PROCESS_NODE", "(", ")", "on", "each", "node", ".", "If", "FREE", "is", "true", ",", "free", "all", "std", ":", ":list", "in", "the", "same", "dfs", "." ]
[ "aarch64" ]
cortex-a57-fma-steering
dfs
aarch64
CPU
GCC
30,778
324
1
[]
[ "<s>", "bool", "AMDGPUPromoteAlloca", "::", "doInitialization", "(", "Module", "&", "M", ")", "{", "Mod", "=", "&", "M", ";", "return", "false", ";", "}", "</s>" ]
[ "Set", "up", "the", "AsmPrinter", "when", "we", "are", "working", "on", "a", "new", "module", "." ]
[ "AMDGPU", "AMDGPU" ]
AMDGPUPromoteAlloca (2)
doInitialization
AMDGPU
GPU
LLVM
30,779
19
1
[]
[ "<s>", "void", "SystemZHazardRecognizer", "::", "Reset", "(", ")", "{", "CurrGroupSize", "=", "0", ";", "CurrGroupHas4RegOps", "=", "false", ";", "clearProcResCounters", "(", ")", ";", "GrpCount", "=", "0", ";", "LastFPdOpCycleIdx", "=", "UINT_MAX", ";", "LastEmittedMI", "=", "nullptr", ";", "LLVM_DEBUG", "(", "CurGroupDbg", "=", "\"\"", ";", ")", ";", "}", "</s>" ]
[ "Reset", "the", "unwind", "opcode", "assembler", "." ]
[ "SystemZ", "SystemZ", "0", "0", "\"\"" ]
SystemZHazardRecognizer
Reset
SystemZ
CPU
LLVM
30,780
40
1
[]
[ "<s>", "static", "int", "sh_round_reg", "(", "const", "CUMULATIVE_ARGS", "&", "cum", ",", "machine_mode", "mode", ")", "{", "return", "(", "(", "(", "TARGET_ALIGN_DOUBLE", "||", "(", "TARGET_FPU_DOUBLE", "&&", "(", "mode", "==", "DFmode", "||", "mode", "==", "DCmode", ")", "&&", "cum", ".", "arg_count", "[", "(", "int", ")", "SH_ARG_FLOAT", "]", "<", "NPARM_REGS", "(", "mode", ")", ")", ")", "&&", "GET_MODE_UNIT_SIZE", "(", "mode", ")", ">", "UNITS_PER_WORD", ")", "?", "(", "cum", ".", "arg_count", "[", "(", "int", ")", "get_sh_arg_class", "(", "mode", ")", "]", "+", "(", "cum", ".", "arg_count", "[", "(", "int", ")", "get_sh_arg_class", "(", "mode", ")", "]", "&", "1", ")", ")", ":", "cum", ".", "arg_count", "[", "(", "int", ")", "get_sh_arg_class", "(", "mode", ")", "]", ")", ";", "}", "</s>" ]
[ "Round", "a", "register", "number", "up", "to", "a", "proper", "boundary", "for", "an", "arg", "of", "mode", "MODE", ".", "The", "SH", "does", "n't", "care", "about", "double", "alignment", ",", "so", "we", "only", "round", "doubles", "to", "even", "regs", "when", "asked", "to", "explicitly", "." ]
[ "sh", "1" ]
sh
sh_round_reg
sh
CPU
GCC
30,781
104
1
[]
[ "<s>", "void", "X86DAGToDAGISel", "::", "PostprocessISelDAG", "(", ")", "{", "if", "(", "TM", ".", "getOptLevel", "(", ")", "==", "CodeGenOpt", "::", "None", ")", "return", ";", "SelectionDAG", "::", "allnodes_iterator", "Position", "=", "CurDAG", "->", "allnodes_end", "(", ")", ";", "bool", "MadeChange", "=", "false", ";", "while", "(", "Position", "!=", "CurDAG", "->", "allnodes_begin", "(", ")", ")", "{", "SDNode", "*", "N", "=", "&", "*", "--", "Position", ";", "if", "(", "N", "->", "use_empty", "(", ")", "||", "!", "N", "->", "isMachineOpcode", "(", ")", ")", "continue", ";", "if", "(", "tryOptimizeRem8Extend", "(", "N", ")", ")", "{", "MadeChange", "=", "true", ";", "continue", ";", "}", "if", "(", "N", "->", "getMachineOpcode", "(", ")", "!=", "TargetOpcode", "::", "SUBREG_TO_REG", ")", "continue", ";", "unsigned", "SubRegIdx", "=", "N", "->", "getConstantOperandVal", "(", "2", ")", ";", "if", "(", "SubRegIdx", "!=", "X86", "::", "sub_xmm", "&&", "SubRegIdx", "!=", "X86", "::", "sub_ymm", ")", "continue", ";", "SDValue", "Move", "=", "N", "->", "getOperand", "(", "1", ")", ";", "if", "(", "!", "Move", ".", "isMachineOpcode", "(", ")", ")", "continue", ";", "switch", "(", "Move", ".", "getMachineOpcode", "(", ")", ")", "{", "default", ":", "continue", ";", "case", "X86", "::", "VMOVAPDrr", ":", "case", "X86", "::", "VMOVUPDrr", ":", "case", "X86", "::", "VMOVAPSrr", ":", "case", "X86", "::", "VMOVUPSrr", ":", "case", "X86", "::", "VMOVDQArr", ":", "case", "X86", "::", "VMOVDQUrr", ":", "case", "X86", "::", "VMOVAPDYrr", ":", "case", "X86", "::", "VMOVUPDYrr", ":", "case", "X86", "::", "VMOVAPSYrr", ":", "case", "X86", "::", "VMOVUPSYrr", ":", "case", "X86", "::", "VMOVDQAYrr", ":", "case", "X86", "::", "VMOVDQUYrr", ":", "case", "X86", "::", "VMOVAPDZ128rr", ":", "case", "X86", "::", "VMOVUPDZ128rr", ":", "case", "X86", "::", "VMOVAPSZ128rr", ":", "case", "X86", "::", "VMOVUPSZ128rr", ":", "case", "X86", "::", "VMOVDQA32Z128rr", ":", "case", "X86", "::", "VMOVDQU32Z128rr", ":", "case", "X86", "::", "VMOVDQA64Z128rr", ":", "case", "X86", "::", "VMOVDQU64Z128rr", ":", "case", "X86", "::", "VMOVAPDZ256rr", ":", "case", "X86", "::", "VMOVUPDZ256rr", ":", "case", "X86", "::", "VMOVAPSZ256rr", ":", "case", "X86", "::", "VMOVUPSZ256rr", ":", "case", "X86", "::", "VMOVDQA32Z256rr", ":", "case", "X86", "::", "VMOVDQU32Z256rr", ":", "case", "X86", "::", "VMOVDQA64Z256rr", ":", "case", "X86", "::", "VMOVDQU64Z256rr", ":", "break", ";", "}", "SDValue", "In", "=", "Move", ".", "getOperand", "(", "0", ")", ";", "if", "(", "!", "In", ".", "isMachineOpcode", "(", ")", "||", "In", ".", "getMachineOpcode", "(", ")", "<=", "TargetOpcode", "::", "GENERIC_OP_END", ")", "continue", ";", "uint64_t", "TSFlags", "=", "getInstrInfo", "(", ")", "->", "get", "(", "In", ".", "getMachineOpcode", "(", ")", ")", ".", "TSFlags", ";", "if", "(", "(", "TSFlags", "&", "X86II", "::", "EncodingMask", ")", "!=", "X86II", "::", "VEX", "&&", "(", "TSFlags", "&", "X86II", "::", "EncodingMask", ")", "!=", "X86II", "::", "EVEX", "&&", "(", "TSFlags", "&", "X86II", "::", "EncodingMask", ")", "!=", "X86II", "::", "XOP", ")", "continue", ";", "CurDAG", "->", "UpdateNodeOperands", "(", "N", ",", "N", "->", "getOperand", "(", "0", ")", ",", "In", ",", "N", "->", "getOperand", "(", "2", ")", ")", ";", "MadeChange", "=", "true", ";", "}", "if", "(", "MadeChange", ")", "CurDAG", "->", "RemoveDeadNodes", "(", ")", ";", "}", "</s>" ]
[ "PostprocessISelDAG", "(", ")", "-", "This", "hook", "allows", "the", "target", "to", "hack", "on", "the", "graph", "right", "after", "selection", "." ]
[ "X86", "X86", "2", "X86::sub_xmm", "X86::sub_ymm", "1", "X86::VMOVAPDrr", "X86::VMOVUPDrr", "X86::VMOVAPSrr", "X86::VMOVUPSrr", "X86::VMOVDQArr", "X86::VMOVDQUrr", "X86::VMOVAPDYrr", "X86::VMOVUPDYrr", "X86::VMOVAPSYrr", "X86::VMOVUPSYrr", "X86::VMOVDQAYrr", "X86::VMOVDQUYrr", "X86::VMOVAPDZ128rr", "X86::VMOVUPDZ128rr", "X86::VMOVAPSZ128rr", "X86::VMOVUPSZ128rr", "X86::VMOVDQA32Z128rr", "X86::VMOVDQU32Z128rr", "X86::VMOVDQA64Z128rr", "X86::VMOVDQU64Z128rr", "X86::VMOVAPDZ256rr", "X86::VMOVUPDZ256rr", "X86::VMOVAPSZ256rr", "X86::VMOVUPSZ256rr", "X86::VMOVDQA32Z256rr", "X86::VMOVDQU32Z256rr", "X86::VMOVDQA64Z256rr", "X86::VMOVDQU64Z256rr", "0", "X86II::EncodingMask", "X86II::VEX", "X86II::EncodingMask", "X86II::EVEX", "X86II::EncodingMask", "X86II::XOP", "0", "2" ]
X86ISelDAGToDAG141
PostprocessISelDAG
X86
CPU
LLVM
30,782
434
1
[]
[ "<s>", "rtx", "arm_gen_compare_reg", "(", "enum", "rtx_code", "code", ",", "rtx", "x", ",", "rtx", "y", ",", "rtx", "scratch", ")", "{", "machine_mode", "mode", ";", "rtx", "cc_reg", ";", "int", "dimode_comparison", "=", "GET_MODE", "(", "x", ")", "==", "DImode", "||", "GET_MODE", "(", "y", ")", "==", "DImode", ";", "if", "(", "dimode_comparison", "&&", "!", "REG_P", "(", "x", ")", ")", "x", "=", "force_reg", "(", "DImode", ",", "x", ")", ";", "mode", "=", "SELECT_CC_MODE", "(", "code", ",", "x", ",", "y", ")", ";", "cc_reg", "=", "gen_rtx_REG", "(", "mode", ",", "CC_REGNUM", ")", ";", "if", "(", "dimode_comparison", "&&", "mode", "!=", "CC_CZmode", ")", "{", "rtx", "clobber", ",", "set", ";", "if", "(", "mode", "==", "CC_Zmode", "&&", "y", "!=", "const0_rtx", ")", "{", "gcc_assert", "(", "!", "reload_completed", ")", ";", "x", "=", "expand_binop", "(", "DImode", ",", "xor_optab", ",", "x", ",", "y", ",", "NULL_RTX", ",", "0", ",", "OPTAB_WIDEN", ")", ";", "y", "=", "const0_rtx", ";", "}", "if", "(", "reload_completed", ")", "gcc_assert", "(", "scratch", "!=", "NULL", "&&", "GET_MODE", "(", "scratch", ")", "==", "SImode", ")", ";", "else", "scratch", "=", "gen_rtx_SCRATCH", "(", "SImode", ")", ";", "clobber", "=", "gen_rtx_CLOBBER", "(", "VOIDmode", ",", "scratch", ")", ";", "set", "=", "gen_rtx_SET", "(", "VOIDmode", ",", "cc_reg", ",", "gen_rtx_COMPARE", "(", "mode", ",", "x", ",", "y", ")", ")", ";", "emit_insn", "(", "gen_rtx_PARALLEL", "(", "VOIDmode", ",", "gen_rtvec", "(", "2", ",", "set", ",", "clobber", ")", ")", ")", ";", "}", "else", "emit_set_insn", "(", "cc_reg", ",", "gen_rtx_COMPARE", "(", "mode", ",", "x", ",", "y", ")", ")", ";", "return", "cc_reg", ";", "}", "</s>" ]
[ "X", "and", "Y", "are", "two", "things", "to", "compare", "using", "CODE", ".", "Emit", "the", "compare", "insn", "and", "return", "the", "rtx", "for", "register", "0", "in", "the", "proper", "mode", ".", "FP", "means", "this", "is", "a", "floating", "point", "compare", ":", "I", "do", "n't", "think", "that", "it", "is", "needed", "on", "the", "arm", "." ]
[ "arm", "0", "2" ]
arm4
arm_gen_compare_reg
arm
CPU
GCC
30,783
224
1
[]
[ "<s>", "bool", "SystemZAsmParser", "::", "isLabel", "(", "AsmToken", "&", "Token", ")", "{", "if", "(", "isParsingATT", "(", ")", ")", "return", "true", ";", "StringRef", "RawLabel", "=", "Token", ".", "getString", "(", ")", ";", "SMLoc", "Loc", "=", "Token", ".", "getLoc", "(", ")", ";", "if", "(", "!", "RawLabel", ".", "size", "(", ")", ")", "return", "!", "Error", "(", "Loc", ",", "\"HLASM Label cannot be empty\"", ")", ";", "if", "(", "RawLabel", ".", "size", "(", ")", ">", "63", ")", "return", "!", "Error", "(", "Loc", ",", "\"Maximum length for HLASM Label is 63 characters\"", ")", ";", "if", "(", "!", "isHLASMAlpha", "(", "RawLabel", "[", "0", "]", ")", ")", "return", "!", "Error", "(", "Loc", ",", "\"HLASM Label has to start with an alphabetic \"", "\"character or the underscore character\"", ")", ";", "for", "(", "unsigned", "I", "=", "1", ";", "I", "<", "RawLabel", ".", "size", "(", ")", ";", "++", "I", ")", "if", "(", "!", "isHLASMAlnum", "(", "RawLabel", "[", "I", "]", ")", ")", "return", "!", "Error", "(", "Loc", ",", "\"HLASM Label has to be alphanumeric\"", ")", ";", "return", "true", ";", "}", "</s>" ]
[ "Returns", "true", "if", "the", "MachineInstr", "represents", "a", "label", "." ]
[ "SystemZ", "SystemZ", "\"HLASM Label cannot be empty\"", "63", "\"Maximum length for HLASM Label is 63 characters\"", "0", "\"HLASM Label has to start with an alphabetic \"", "\"character or the underscore character\"", "1", "\"HLASM Label has to be alphanumeric\"" ]
SystemZAsmParser1
isLabel
SystemZ
CPU
LLVM
30,784
137
1
[]
[ "<s>", "Clone", "(", "const", "FnProperties", "&", "Props", ",", "Function", "*", "OrigF", ",", "Function", "*", "NewF", ")", ":", "Properties", "(", "Props", ")", ",", "OrigF", "(", "OrigF", ")", ",", "NewF", "(", "NewF", ")", "{", "}", "</s>" ]
[ "Clone", "-", "Creates", "a", "clone", "of", "the", "specified", "SUnit", "." ]
[ "AMDGPU" ]
AMDGPUPropagateAttributes
Clone
AMDGPU
GPU
LLVM
30,785
32
1
[]
[ "<s>", "bool", "BPFPreserveDIType", "::", "runOnModule", "(", "Module", "&", "M", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"********** preserve debuginfo type **********\\n\"", ")", ";", "if", "(", "M", ".", "debug_compile_units", "(", ")", ".", "empty", "(", ")", ")", "return", "false", ";", "return", "doTransformation", "(", "M", ")", ";", "}", "</s>" ]
[ "runOnModule", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "process", "the", "module", "being", "operated", "on", "." ]
[ "BPF", "BPF", "\"********** preserve debuginfo type **********\\n\"" ]
BPFPreserveDIType5
runOnModule
BPF
Virtual ISA
LLVM
30,786
41
1
[]
[ "<s>", "SDValue", "AMDGPUTargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", ",", "SDLoc", "DL", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "return", "DAG", ".", "getNode", "(", "AMDGPUISD", "::", "RET_FLAG", ",", "DL", ",", "MVT", "::", "Other", ",", "Chain", ")", ";", "}", "</s>" ]
[ "This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "." ]
[ "AMDGPU", "AMDGPU", "ISD::OutputArg", "AMDGPUISD::RET_FLAG", "MVT::Other" ]
AMDGPUISelLowering (2)
LowerReturn
AMDGPU
GPU
LLVM
30,787
62
1
[]
[ "<s>", "static", "tree", "aarch64_lookup_simd_type_in_table", "(", "machine_mode", "mode", ",", "enum", "aarch64_type_qualifiers", "qualifiers", ")", "{", "int", "i", ";", "int", "nelts", "=", "ARRAY_SIZE", "(", "aarch64_simd_types", ")", ";", "int", "q", "=", "qualifiers", "&", "(", "qualifier_poly", "|", "qualifier_unsigned", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "nelts", ";", "i", "++", ")", "{", "if", "(", "aarch64_simd_types", "[", "i", "]", ".", "mode", "==", "mode", "&&", "aarch64_simd_types", "[", "i", "]", ".", "q", "==", "q", ")", "return", "aarch64_simd_types", "[", "i", "]", ".", "itype", ";", "if", "(", "aarch64_simd_tuple_types", "[", "i", "]", "[", "0", "]", "!=", "NULL_TREE", ")", "for", "(", "int", "j", "=", "0", ";", "j", "<", "3", ";", "j", "++", ")", "if", "(", "aarch64_simd_tuple_modes", "[", "i", "]", "[", "j", "]", "==", "mode", "&&", "aarch64_simd_types", "[", "i", "]", ".", "q", "==", "q", ")", "return", "aarch64_simd_tuple_types", "[", "i", "]", "[", "j", "]", ";", "}", "return", "NULL_TREE", ";", "}", "</s>" ]
[ "Helper", "function", "for", "aarch64_simd_builtin_type", "." ]
[ "aarch64", "0", "0", "0", "3" ]
aarch64-builtins1
aarch64_lookup_simd_type_in_table
aarch64
CPU
GCC
30,788
137
1
[]
[ "<s>", "XCoreTargetMachine", "::", "XCoreTargetMachine", "(", "const", "Target", "&", "T", ",", "StringRef", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Reloc", "::", "Model", "RM", ",", "CodeModel", "::", "Model", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ")", ":", "LLVMTargetMachine", "(", "T", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "RM", ",", "CM", ",", "OL", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ",", "*", "this", ")", "{", "initAsmInfo", "(", ")", ";", "}", "</s>" ]
[ "Create", "an", "ILP32", "architecture", "model", "." ]
[ "XCore", "XCore", "XCore" ]
XCoreTargetMachine1
XCoreTargetMachine
XCore
MPU
LLVM
30,789
75
1
[]
[ "<s>", "int", "thumb_legitimate_offset_p", "(", "machine_mode", "mode", ",", "HOST_WIDE_INT", "val", ")", "{", "switch", "(", "GET_MODE_SIZE", "(", "mode", ")", ")", "{", "case", "1", ":", "return", "val", ">=", "0", "&&", "val", "<", "32", ";", "case", "2", ":", "return", "val", ">=", "0", "&&", "val", "<", "64", "&&", "(", "val", "&", "1", ")", "==", "0", ";", "default", ":", "return", "(", "val", ">=", "0", "&&", "(", "val", "+", "GET_MODE_SIZE", "(", "mode", ")", ")", "<=", "128", "&&", "(", "val", "&", "3", ")", "==", "0", ")", ";", "}", "}", "</s>" ]
[ "Return", "nonzero", "if", "VAL", "can", "be", "used", "as", "an", "offset", "in", "a", "Thumb-state", "address", "instruction", "of", "mode", "MODE", "." ]
[ "arm", "1", "0", "32", "2", "0", "64", "1", "0", "0", "128", "3", "0" ]
arm
thumb_legitimate_offset_p
arm
CPU
GCC
30,790
80
1
[]
[ "<s>", "bool", "TeakInstrInfo", "::", "analyzeBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "*", "&", "TBB", ",", "MachineBasicBlock", "*", "&", "FBB", ",", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Cond", ",", "bool", "AllowModify", ")", "const", "{", "bool", "HasCondBranch", "=", "false", ";", "TBB", "=", "nullptr", ";", "FBB", "=", "nullptr", ";", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "{", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "Teak", "::", "BRR_rel7", ")", "{", "MachineBasicBlock", "*", "TargetBB", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getMBB", "(", ")", ";", "if", "(", "HasCondBranch", ")", "FBB", "=", "TargetBB", ";", "else", "TBB", "=", "TargetBB", ";", "}", "else", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "Teak", "::", "BRRCond_rel7", "||", "MI", ".", "getOpcode", "(", ")", "==", "Teak", "::", "BR_imm18", ")", "{", "TBB", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getMBB", "(", ")", ";", "Cond", ".", "push_back", "(", "MI", ".", "getOperand", "(", "1", ")", ")", ";", "HasCondBranch", "=", "true", ";", "}", "else", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "Teak", "::", "RET", ")", "return", "true", ";", "}", "return", "false", ";", "}", "</s>" ]
[ "analyzeBranch", "-", "Analyze", "the", "branching", "code", "at", "the", "end", "of", "MBB", ",", "returning", "true", "if", "it", "can", "not", "be", "understood", "(", "e.g", "." ]
[ "Teak", "Teak", "Teak::BRR_rel7", "0", "Teak::BRRCond_rel7", "Teak::BR_imm18", "0", "1", "Teak::RET" ]
TeakInstrInfo
analyzeBranch
Teak
DSP
LLVM
30,791
170
1
[]
[ "<s>", "void", "AArch64AsmBackend", "::", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "MCInst", "&", "Res", ")", "const", "{", "assert", "(", "false", "&&", "\"AArch64AsmBackend::relaxInstruction() unimplemented\"", ")", ";", "}", "</s>" ]
[ "Relax", "the", "instruction", "in", "the", "given", "fragment", "to", "the", "next", "wider", "instruction", "." ]
[ "AArch64", "AArch64", "\"AArch64AsmBackend::relaxInstruction() unimplemented\"" ]
AArch64AsmBackend
relaxInstruction
AArch64
CPU
LLVM
30,792
24
1
[]
[ "<s>", "static", "bool", "sparc_frame_pointer_required", "(", "void", ")", "{", "if", "(", "cfun", "->", "calls_alloca", ")", "return", "true", ";", "if", "(", "cfun", "->", "has_nonlocal_label", ")", "return", "true", ";", "if", "(", "TARGET_FLAT", ")", "return", "false", ";", "return", "!", "(", "crtl", "->", "is_leaf", "&&", "only_leaf_regs_used", "(", ")", ")", ";", "}", "</s>" ]
[ "Implement", "TARGET_FRAME_POINTER_REQUIRED", "." ]
[ "sparc" ]
sparc4
sparc_frame_pointer_required
sparc
CPU
GCC
30,793
45
1
[]
[ "<s>", "static", "int", "alpha_adjust_cost", "(", "rtx_insn", "*", "insn", ",", "int", "dep_type", ",", "rtx_insn", "*", "dep_insn", ",", "int", "cost", ",", "unsigned", "int", ")", "{", "enum", "attr_type", "dep_insn_type", ";", "if", "(", "dep_type", "!=", "0", ")", "return", "cost", ";", "if", "(", "recog_memoized", "(", "insn", ")", "<", "0", "||", "recog_memoized", "(", "dep_insn", ")", "<", "0", ")", "return", "cost", ";", "dep_insn_type", "=", "get_attr_type", "(", "dep_insn", ")", ";", "if", "(", "dep_insn_type", "==", "TYPE_ILD", "||", "dep_insn_type", "==", "TYPE_FLD", "||", "dep_insn_type", "==", "TYPE_LDSYM", ")", "cost", "+=", "alpha_memory_latency", "-", "1", ";", "return", "cost", ";", "}", "</s>" ]
[ "Adjust", "the", "cost", "of", "a", "scheduling", "dependency", ".", "Return", "the", "new", "cost", "of", "a", "dependency", "LINK", "or", "INSN", "on", "DEP_INSN", ".", "COST", "is", "the", "current", "cost", "." ]
[ "alpha", "0", "0", "0", "1" ]
alpha
alpha_adjust_cost
alpha
MPU
GCC
30,794
85
1
[]
[ "<s>", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", "\"AArch64 load / store optimization pass\"", ";", "}", "</s>" ]
[ "getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "." ]
[ "AArch64", "\"AArch64 load / store optimization pass\"" ]
AArch64LoadStoreOptimizer18
getPassName
AArch64
CPU
LLVM
30,795
13
1
[]
[ "<s>", "static", "char", "*", "match_integer", "(", "void", ")", "{", "int", "startpos", "=", "pos", ";", "if", "(", "linebuf", "[", "pos", "]", "==", "'-'", ")", "safe_inc_pos", "(", ")", ";", "int", "lastpos", "=", "pos", "-", "1", ";", "while", "(", "lastpos", "<", "LINELEN", "-", "1", "&&", "isdigit", "(", "linebuf", "[", "lastpos", "+", "1", "]", ")", ")", "++", "lastpos", ";", "if", "(", "lastpos", ">=", "LINELEN", "-", "1", ")", "{", "diag", "(", "lastpos", ",", "\"line length overrun.\\n\"", ")", ";", "exit", "(", "1", ")", ";", "}", "if", "(", "lastpos", "<", "pos", ")", "return", "NULL", ";", "pos", "=", "lastpos", "+", "1", ";", "char", "*", "buf", "=", "(", "char", "*", ")", "malloc", "(", "lastpos", "-", "startpos", "+", "2", ")", ";", "memcpy", "(", "buf", ",", "&", "linebuf", "[", "startpos", "]", ",", "lastpos", "-", "startpos", "+", "1", ")", ";", "buf", "[", "lastpos", "-", "startpos", "+", "1", "]", "=", "'\\0'", ";", "return", "buf", ";", "}", "</s>" ]
[ "Match", "an", "integer", "and", "return", "the", "string", "representing", "its", "value", ",", "or", "a", "null", "string", "on", "failure", "." ]
[ "rs6000", "1", "1", "1", "1", "\"line length overrun.\\n\"", "1", "1", "2", "1", "1" ]
rs6000-gen-builtins
match_integer
rs6000
CPU
GCC
30,796
140
1
[]
[ "<s>", "unsigned", "X86FrameLowering", "::", "getWinEHFuncletFrameSize", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "unsigned", "CSSize", "=", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", "->", "getCalleeSavedFrameSize", "(", ")", ";", "unsigned", "UsedSize", ";", "EHPersonality", "Personality", "=", "classifyEHPersonality", "(", "MF", ".", "getFunction", "(", ")", "->", "getPersonalityFn", "(", ")", ")", ";", "if", "(", "Personality", "==", "EHPersonality", "::", "CoreCLR", ")", "{", "UsedSize", "=", "getPSPSlotOffsetFromSP", "(", "MF", ")", "+", "SlotSize", ";", "}", "else", "{", "UsedSize", "=", "MF", ".", "getFrameInfo", "(", ")", "->", "getMaxCallFrameSize", "(", ")", ";", "}", "unsigned", "FrameSizeMinusRBP", "=", "RoundUpToAlignment", "(", "CSSize", "+", "UsedSize", ",", "getStackAlignment", "(", ")", ")", ";", "return", "FrameSizeMinusRBP", "-", "CSSize", ";", "}", "</s>" ]
[ "Funclets", "only", "need", "to", "account", "for", "space", "for", "the", "callee", "saved", "registers", ",", "as", "the", "locals", "are", "accounted", "for", "in", "the", "parent", "'s", "stack", "frame", "." ]
[ "X86", "X86", "X86" ]
X86FrameLowering (2)4
getWinEHFuncletFrameSize
X86
CPU
LLVM
30,797
101
1
[]
[ "<s>", "int", "avr_peep2_scratch_safe", "(", "rtx", "scratch", ")", "{", "if", "(", "(", "interrupt_function_p", "(", "current_function_decl", ")", "||", "signal_function_p", "(", "current_function_decl", ")", ")", "&&", "leaf_function_p", "(", ")", ")", "{", "int", "first_reg", "=", "true_regnum", "(", "scratch", ")", ";", "int", "last_reg", "=", "first_reg", "+", "GET_MODE_SIZE", "(", "GET_MODE", "(", "scratch", ")", ")", "-", "1", ";", "int", "reg", ";", "for", "(", "reg", "=", "first_reg", ";", "reg", "<=", "last_reg", ";", "reg", "++", ")", "{", "if", "(", "!", "regs_ever_live", "[", "reg", "]", ")", "return", "0", ";", "}", "}", "return", "1", ";", "}", "</s>" ]
[ "Returns", "1", "if", "SCRATCH", "are", "safe", "to", "be", "allocated", "as", "a", "scratch", "registers", "(", "for", "a", "define_peephole2", ")", "in", "the", "current", "function", "." ]
[ "avr", "1", "0", "1" ]
avr3
avr_peep2_scratch_safe
avr
MPU
GCC
30,798
83
1
[]
[ "<s>", "static", "void", "emit_v9_brxx_insn", "(", "enum", "rtx_code", "code", ",", "rtx", "op0", ",", "rtx", "label", ")", "{", "emit_jump_insn", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "pc_rtx", ",", "gen_rtx_IF_THEN_ELSE", "(", "VOIDmode", ",", "gen_rtx_fmt_ee", "(", "code", ",", "GET_MODE", "(", "op0", ")", ",", "op0", ",", "const0_rtx", ")", ",", "gen_rtx_LABEL_REF", "(", "VOIDmode", ",", "label", ")", ",", "pc_rtx", ")", ")", ")", ";", "}", "</s>" ]
[ "Emit", "a", "conditional", "jump", "insn", "for", "the", "v9", "architecture", "using", "comparison", "code", "CODE", "and", "jump", "target", "LABEL", ".", "This", "function", "exists", "to", "take", "advantage", "of", "the", "v9", "brxx", "insns", "." ]
[ "sparc" ]
sparc4
emit_v9_brxx_insn
sparc
CPU
GCC
30,799
54
1
[]