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", "bool", "ix86_handle_option", "(", "size_t", "code", ",", "const", "char", "*", "arg", "ATTRIBUTE_UNUSED", ",", "int", "value", ")", "{", "switch", "(", "code", ")", "{", "case", "OPT_m3dnow", ":", "if", "(", "!", "value", ")", "{", "target_flags", "&=", "~", "MASK_3DNOW_A", ";", "target_flags_explicit", "|=", "MASK_3DNOW_A", ";", "}", "return", "true", ";", "case", "OPT_mmmx", ":", "if", "(", "!", "value", ")", "{", "target_flags", "&=", "~", "(", "MASK_3DNOW", "|", "MASK_3DNOW_A", ")", ";", "target_flags_explicit", "|=", "MASK_3DNOW", "|", "MASK_3DNOW_A", ";", "}", "return", "true", ";", "case", "OPT_msse", ":", "if", "(", "!", "value", ")", "{", "target_flags", "&=", "~", "(", "MASK_SSE2", "|", "MASK_SSE3", ")", ";", "target_flags_explicit", "|=", "MASK_SSE2", "|", "MASK_SSE3", ";", "}", "return", "true", ";", "case", "OPT_msse2", ":", "if", "(", "!", "value", ")", "{", "target_flags", "&=", "~", "MASK_SSE3", ";", "target_flags_explicit", "|=", "MASK_SSE3", ";", "}", "return", "true", ";", "default", ":", "return", "true", ";", "}", "}", "</s>" ]
[ "Implement", "TARGET_HANDLE_OPTION", "." ]
[ "i386" ]
i3863
ix86_handle_option
i386
CPU
GCC
4,300
129
1
[]
[ "<s>", "void", "PIC16InstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "DestReg", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "const", "PIC16TargetLowering", "*", "PTLI", "=", "TM", ".", "getTargetLowering", "(", ")", ";", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "const", "Function", "*", "Func", "=", "MBB", ".", "getParent", "(", ")", "->", "getFunction", "(", ")", ";", "const", "std", "::", "string", "FuncName", "=", "Func", "->", "getName", "(", ")", ";", "const", "char", "*", "tmpName", "=", "ESNames", "::", "createESName", "(", "PAN", "::", "getTempdataLabel", "(", "FuncName", ")", ")", ";", "if", "(", "RC", "==", "PIC16", "::", "GPRRegisterClass", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "PIC16", "::", "movf", ")", ",", "DestReg", ")", ".", "addImm", "(", "PTLI", "->", "GetTmpOffsetForFI", "(", "FI", ",", "1", ",", "*", "MBB", ".", "getParent", "(", ")", ")", ")", ".", "addExternalSymbol", "(", "tmpName", ")", ".", "addImm", "(", "1", ")", ";", "}", "else", "if", "(", "RC", "==", "PIC16", "::", "FSR16RegisterClass", ")", "{", "unsigned", "opcode", "=", "(", "DestReg", "==", "PIC16", "::", "FSR0", ")", "?", "PIC16", "::", "restore_fsr0", ":", "PIC16", "::", "restore_fsr1", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "opcode", ")", ",", "DestReg", ")", ".", "addImm", "(", "PTLI", "->", "GetTmpOffsetForFI", "(", "FI", ",", "3", ",", "*", "MBB", ".", "getParent", "(", ")", ")", ")", ".", "addExternalSymbol", "(", "tmpName", ")", ".", "addImm", "(", "1", ")", ";", "}", "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", "." ]
[ "PIC16", "PIC16", "PIC16", "PIC16::GPRRegisterClass", "PIC16::movf", "1", "1", "PIC16::FSR16RegisterClass", "PIC16::FSR0", "PIC16::restore_fsr0", "PIC16::restore_fsr1", "3", "1", "\"Can't load this register from stack slot\"" ]
PIC16InstrInfo2
loadRegFromStackSlot
PIC16
MPU
LLVM
4,301
247
1
[]
[ "<s>", "void", "assignValueToReg", "(", "Register", "ValVReg", ",", "Register", "PhysReg", ",", "CCValAssign", "&", "VA", ")", "override", "{", "MIB", ".", "addUse", "(", "PhysReg", ",", "RegState", "::", "Implicit", ")", ";", "Register", "ExtReg", "=", "extendRegister", "(", "ValVReg", ",", "VA", ")", ";", "MIRBuilder", ".", "buildCopy", "(", "PhysReg", ",", "ExtReg", ")", ";", "}", "</s>" ]
[ "The", "specified", "value", "has", "been", "assigned", "to", "a", "physical", "register", ",", "handle", "the", "appropriate", "COPY", "(", "either", "to", "or", "from", ")", "and", "mark", "any", "relevant", "uses/defines", "as", "needed", "." ]
[ "AArch64" ]
AArch64CallLowering12
assignValueToReg
AArch64
CPU
LLVM
4,302
46
1
[]
[ "<s>", "SDValue", "X86TargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "SDLoc", "dl", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "bool", "Is64Bit", "=", "Subtarget", ".", "is64Bit", "(", ")", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "RetCC_X86", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RVLocs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "EVT", "CopyVT", "=", "VA", ".", "getLocVT", "(", ")", ";", "if", "(", "(", "CopyVT", "==", "MVT", "::", "f32", "||", "CopyVT", "==", "MVT", "::", "f64", "||", "CopyVT", "==", "MVT", "::", "f128", ")", "&&", "(", "(", "Is64Bit", "||", "Ins", "[", "i", "]", ".", "Flags", ".", "isInReg", "(", ")", ")", "&&", "!", "Subtarget", ".", "hasSSE1", "(", ")", ")", ")", "{", "report_fatal_error", "(", "\"SSE register return with SSE disabled\"", ")", ";", "}", "bool", "RoundAfterCopy", "=", "false", ";", "if", "(", "(", "VA", ".", "getLocReg", "(", ")", "==", "X86", "::", "FP0", "||", "VA", ".", "getLocReg", "(", ")", "==", "X86", "::", "FP1", ")", "&&", "isScalarFPTypeInSSEReg", "(", "VA", ".", "getValVT", "(", ")", ")", ")", "{", "CopyVT", "=", "MVT", "::", "f80", ";", "RoundAfterCopy", "=", "(", "CopyVT", "!=", "VA", ".", "getLocVT", "(", ")", ")", ";", "}", "Chain", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "dl", ",", "VA", ".", "getLocReg", "(", ")", ",", "CopyVT", ",", "InFlag", ")", ".", "getValue", "(", "1", ")", ";", "SDValue", "Val", "=", "Chain", ".", "getValue", "(", "0", ")", ";", "if", "(", "RoundAfterCopy", ")", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "FP_ROUND", ",", "dl", ",", "VA", ".", "getValVT", "(", ")", ",", "Val", ",", "DAG", ".", "getIntPtrConstant", "(", "1", ",", "dl", ")", ")", ";", "if", "(", "VA", ".", "isExtInLoc", "(", ")", "&&", "VA", ".", "getValVT", "(", ")", ".", "getScalarType", "(", ")", "==", "MVT", "::", "i1", ")", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "TRUNCATE", ",", "dl", ",", "VA", ".", "getValVT", "(", ")", ",", "Val", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "2", ")", ";", "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", "." ]
[ "X86", "X86", "ISD::InputArg", "16", "X86", "0", "MVT::f32", "MVT::f64", "MVT::f128", "\"SSE register return with SSE disabled\"", "X86::FP0", "X86::FP1", "MVT::f80", "1", "0", "ISD::FP_ROUND", "1", "MVT::i1", "ISD::TRUNCATE", "2" ]
X86ISelLowering149
LowerCallResult
X86
CPU
LLVM
4,303
380
1
[]
[ "<s>", "ArrayRef", "<", "std", "::", "pair", "<", "unsigned", ",", "const", "char", "*", ">>", "ARMBaseInstrInfo", "::", "getSerializableBitmaskMachineOperandTargetFlags", "(", ")", "const", "{", "using", "namespace", "ARMII", ";", "static", "const", "std", "::", "pair", "<", "unsigned", ",", "const", "char", "*", ">", "TargetFlags", "[", "]", "=", "{", "{", "MO_GOT", ",", "\"arm-got\"", "}", ",", "{", "MO_SBREL", ",", "\"arm-sbrel\"", "}", ",", "{", "MO_DLLIMPORT", ",", "\"arm-dllimport\"", "}", ",", "{", "MO_SECREL", ",", "\"arm-secrel\"", "}", ",", "{", "MO_NONLAZY", ",", "\"arm-nonlazy\"", "}", "}", ";", "return", "makeArrayRef", "(", "TargetFlags", ")", ";", "}", "</s>" ]
[ "Return", "an", "array", "that", "contains", "the", "bitmask", "target", "flag", "values", "and", "their", "names", "." ]
[ "ARM", "ARM", "ARM", "\"arm-got\"", "\"arm-sbrel\"", "\"arm-dllimport\"", "\"arm-secrel\"", "\"arm-nonlazy\"" ]
ARMBaseInstrInfo18
getSerializableBitmaskMachineOperandTargetFlags
ARM
CPU
LLVM
4,304
78
1
[]
[ "<s>", "bool", "X86InstrInfo", "::", "expandPostRAPseudo", "(", "MachineBasicBlock", "::", "iterator", "MI", ")", "const", "{", "bool", "HasAVX", "=", "TM", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "hasAVX", "(", ")", ";", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "case", "X86", "::", "V_SET0", ":", "case", "X86", "::", "FsFLD0SS", ":", "case", "X86", "::", "FsFLD0SD", ":", "return", "Expand2AddrUndef", "(", "MI", ",", "get", "(", "HasAVX", "?", "X86", "::", "VXORPSrr", ":", "X86", "::", "XORPSrr", ")", ")", ";", "case", "X86", "::", "TEST8ri_NOREX", ":", "MI", "->", "setDesc", "(", "get", "(", "X86", "::", "TEST8ri", ")", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", "</s>" ]
[ "This", "function", "is", "called", "for", "all", "pseudo", "instructions", "that", "remain", "after", "register", "allocation", "." ]
[ "X86", "X86", "X86", "X86::V_SET0", "X86::FsFLD0SS", "X86::FsFLD0SD", "X86::VXORPSrr", "X86::XORPSrr", "X86::TEST8ri_NOREX", "X86::TEST8ri" ]
X86InstrInfo132
expandPostRAPseudo
X86
CPU
LLVM
4,305
96
1
[]
[ "<s>", "unsigned", "int", "R600InstrInfo", "::", "getInstrLatency", "(", "const", "InstrItineraryData", "*", "ItinData", ",", "const", "MachineInstr", "&", ",", "unsigned", "*", "PredCost", ")", "const", "{", "if", "(", "PredCost", ")", "*", "PredCost", "=", "2", ";", "return", "2", ";", "}", "</s>" ]
[ "Compute", "the", "instruction", "latency", "of", "a", "given", "instruction", "." ]
[ "AMDGPU", "R600", "2", "2" ]
R600InstrInfo (2)1
getInstrLatency
AMDGPU
GPU
LLVM
4,306
34
1
[]
[ "<s>", "void", "emitVERegisterIgnore", "(", "unsigned", "reg", ")", "override", "{", "}", "</s>" ]
[ "Emit", "``", ".register", "<", "reg", ">", ",", "#", "ignore", "''", "." ]
[ "VE", "VE" ]
VETargetStreamer
emitVERegisterIgnore
VE
CPU
LLVM
4,307
9
1
[]
[ "<s>", "void", "ARMElfTargetObjectFile", "::", "Initialize", "(", "MCContext", "&", "Ctx", ",", "const", "TargetMachine", "&", "TM", ")", "{", "const", "ARMTargetMachine", "&", "ARM_TM", "=", "static_cast", "<", "const", "ARMTargetMachine", "&", ">", "(", "TM", ")", ";", "bool", "isAAPCS_ABI", "=", "ARM_TM", ".", "TargetABI", "==", "ARMTargetMachine", "::", "ARMABI", "::", "ARM_ABI_AAPCS", ";", "genExecuteOnly", "=", "ARM_TM", ".", "getSubtargetImpl", "(", ")", "->", "genExecuteOnly", "(", ")", ";", "TargetLoweringObjectFileELF", "::", "Initialize", "(", "Ctx", ",", "TM", ")", ";", "InitializeELF", "(", "isAAPCS_ABI", ")", ";", "if", "(", "isAAPCS_ABI", ")", "{", "LSDASection", "=", "nullptr", ";", "}", "AttributesSection", "=", "getContext", "(", ")", ".", "getELFSection", "(", "\".ARM.attributes\"", ",", "ELF", "::", "SHT_ARM_ATTRIBUTES", ",", "0", ")", ";", "if", "(", "genExecuteOnly", ")", "{", "unsigned", "Type", "=", "ELF", "::", "SHT_PROGBITS", ";", "unsigned", "Flags", "=", "ELF", "::", "SHF_EXECINSTR", "|", "ELF", "::", "SHF_ALLOC", "|", "ELF", "::", "SHF_ARM_PURECODE", ";", "TextSection", "=", "Ctx", ".", "getELFSection", "(", "\".text\"", ",", "Type", ",", "Flags", ",", "0", ",", "\"\"", ",", "0U", ")", ";", "}", "}", "</s>" ]
[ "This", "method", "must", "be", "called", "before", "any", "actual", "lowering", "is", "done", "." ]
[ "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARMABI::ARM_ABI_AAPCS", "ARM", "\".ARM.attributes\"", "ARM", "0", "ARM", "\".text\"", "0", "\"\"", "0U" ]
ARMTargetObjectFile25
Initialize
ARM
CPU
LLVM
4,308
144
1
[]
[ "<s>", "void", "X86DAGToDAGISel", "::", "PreprocessISelDAG", "(", ")", "{", "OptForSize", "=", "MF", "->", "getFunction", "(", ")", "->", "getAttributes", "(", ")", ".", "hasAttribute", "(", "AttributeSet", "::", "FunctionIndex", ",", "Attribute", "::", "OptimizeForSize", ")", ";", "for", "(", "SelectionDAG", "::", "allnodes_iterator", "I", "=", "CurDAG", "->", "allnodes_begin", "(", ")", ",", "E", "=", "CurDAG", "->", "allnodes_end", "(", ")", ";", "I", "!=", "E", ";", ")", "{", "SDNode", "*", "N", "=", "I", "++", ";", "if", "(", "OptLevel", "!=", "CodeGenOpt", "::", "None", "&&", "(", "(", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "CALL", "&&", "!", "Subtarget", "->", "callRegIndirect", "(", ")", ")", "||", "(", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "TC_RETURN", "&&", "(", "Subtarget", "->", "is64Bit", "(", ")", "||", "getTargetMachine", "(", ")", ".", "getRelocationModel", "(", ")", "!=", "Reloc", "::", "PIC_", ")", ")", ")", ")", "{", "bool", "HasCallSeq", "=", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "CALL", ";", "SDValue", "Chain", "=", "N", "->", "getOperand", "(", "0", ")", ";", "SDValue", "Load", "=", "N", "->", "getOperand", "(", "1", ")", ";", "if", "(", "!", "isCalleeLoad", "(", "Load", ",", "Chain", ",", "HasCallSeq", ")", ")", "continue", ";", "MoveBelowOrigChain", "(", "CurDAG", ",", "Load", ",", "SDValue", "(", "N", ",", "0", ")", ",", "Chain", ")", ";", "++", "NumLoadMoved", ";", "continue", ";", "}", "if", "(", "N", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "FP_ROUND", "&&", "N", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "FP_EXTEND", ")", "continue", ";", "EVT", "SrcVT", "=", "N", "->", "getOperand", "(", "0", ")", ".", "getValueType", "(", ")", ";", "EVT", "DstVT", "=", "N", "->", "getValueType", "(", "0", ")", ";", "if", "(", "SrcVT", ".", "isVector", "(", ")", "||", "DstVT", ".", "isVector", "(", ")", ")", "continue", ";", "bool", "SrcIsSSE", "=", "X86Lowering", ".", "isScalarFPTypeInSSEReg", "(", "SrcVT", ")", ";", "bool", "DstIsSSE", "=", "X86Lowering", ".", "isScalarFPTypeInSSEReg", "(", "DstVT", ")", ";", "if", "(", "SrcIsSSE", "&&", "DstIsSSE", ")", "continue", ";", "if", "(", "!", "SrcIsSSE", "&&", "!", "DstIsSSE", ")", "{", "if", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "FP_EXTEND", ")", "continue", ";", "if", "(", "N", "->", "getConstantOperandVal", "(", "1", ")", ")", "continue", ";", "}", "EVT", "MemVT", ";", "if", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "FP_ROUND", ")", "MemVT", "=", "DstVT", ";", "else", "MemVT", "=", "SrcIsSSE", "?", "SrcVT", ":", "DstVT", ";", "SDValue", "MemTmp", "=", "CurDAG", "->", "CreateStackTemporary", "(", "MemVT", ")", ";", "DebugLoc", "dl", "=", "N", "->", "getDebugLoc", "(", ")", ";", "SDValue", "Store", "=", "CurDAG", "->", "getTruncStore", "(", "CurDAG", "->", "getEntryNode", "(", ")", ",", "dl", ",", "N", "->", "getOperand", "(", "0", ")", ",", "MemTmp", ",", "MachinePointerInfo", "(", ")", ",", "MemVT", ",", "false", ",", "false", ",", "0", ")", ";", "SDValue", "Result", "=", "CurDAG", "->", "getExtLoad", "(", "ISD", "::", "EXTLOAD", ",", "dl", ",", "DstVT", ",", "Store", ",", "MemTmp", ",", "MachinePointerInfo", "(", ")", ",", "MemVT", ",", "false", ",", "false", ",", "0", ")", ";", "--", "I", ";", "CurDAG", "->", "ReplaceAllUsesOfValueWith", "(", "SDValue", "(", "N", ",", "0", ")", ",", "Result", ")", ";", "++", "I", ";", "CurDAG", "->", "DeleteNode", "(", "N", ")", ";", "}", "}", "</s>" ]
[ "PreprocessISelDAG", "-", "This", "hook", "allows", "targets", "to", "hack", "on", "the", "graph", "before", "instruction", "selection", "starts", "." ]
[ "X86", "X86", "X86ISD::CALL", "X86ISD::TC_RETURN", "X86ISD::CALL", "0", "1", "0", "ISD::FP_ROUND", "ISD::FP_EXTEND", "0", "0", "X86", "X86", "ISD::FP_EXTEND", "1", "ISD::FP_ROUND", "0", "0", "ISD::EXTLOAD", "0", "0" ]
X86ISelDAGToDAG115
PreprocessISelDAG
X86
CPU
LLVM
4,309
467
1
[]
[ "<s>", "const", "SIRegisterInfo", "&", "getRegisterInfo", "(", ")", "const", "override", "{", "return", "RI", ";", "}", "</s>" ]
[ "getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "." ]
[ "R600", "SI" ]
SIInstrInfo104
getRegisterInfo
R600
GPU
LLVM
4,310
13
1
[]
[ "<s>", "const", "InstrItineraryData", "&", "getInstrItineraryData", "(", ")", "const", "{", "return", "InstrItins", ";", "}", "</s>" ]
[ "getInstrItineraryData", "-", "Returns", "instruction", "itinerary", "data", "for", "the", "target", "or", "specific", "subtarget", "." ]
[ "Patmos" ]
PatmosSubtarget
getInstrItineraryData
Patmos
VLIW
LLVM
4,311
12
1
[]
[ "<s>", "void", "X86DAGToDAGISel", "::", "PreprocessISelDAG", "(", ")", "{", "OptForSize", "=", "MF", "->", "getFunction", "(", ")", "->", "getAttributes", "(", ")", ".", "hasAttribute", "(", "AttributeSet", "::", "FunctionIndex", ",", "Attribute", "::", "OptimizeForSize", ")", ";", "for", "(", "SelectionDAG", "::", "allnodes_iterator", "I", "=", "CurDAG", "->", "allnodes_begin", "(", ")", ",", "E", "=", "CurDAG", "->", "allnodes_end", "(", ")", ";", "I", "!=", "E", ";", ")", "{", "SDNode", "*", "N", "=", "I", "++", ";", "if", "(", "OptLevel", "!=", "CodeGenOpt", "::", "None", "&&", "(", "(", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "CALL", "&&", "!", "Subtarget", "->", "callRegIndirect", "(", ")", ")", "||", "(", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "TC_RETURN", "&&", "(", "Subtarget", "->", "is64Bit", "(", ")", "||", "getTargetMachine", "(", ")", ".", "getRelocationModel", "(", ")", "!=", "Reloc", "::", "PIC_", ")", ")", ")", ")", "{", "bool", "HasCallSeq", "=", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "CALL", ";", "SDValue", "Chain", "=", "N", "->", "getOperand", "(", "0", ")", ";", "SDValue", "Load", "=", "N", "->", "getOperand", "(", "1", ")", ";", "if", "(", "!", "isCalleeLoad", "(", "Load", ",", "Chain", ",", "HasCallSeq", ")", ")", "continue", ";", "MoveBelowOrigChain", "(", "CurDAG", ",", "Load", ",", "SDValue", "(", "N", ",", "0", ")", ",", "Chain", ")", ";", "++", "NumLoadMoved", ";", "continue", ";", "}", "if", "(", "N", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "FP_ROUND", "&&", "N", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "FP_EXTEND", ")", "continue", ";", "MVT", "SrcVT", "=", "N", "->", "getOperand", "(", "0", ")", ".", "getSimpleValueType", "(", ")", ";", "MVT", "DstVT", "=", "N", "->", "getSimpleValueType", "(", "0", ")", ";", "if", "(", "SrcVT", ".", "isVector", "(", ")", "||", "DstVT", ".", "isVector", "(", ")", ")", "continue", ";", "const", "X86TargetLowering", "*", "X86Lowering", "=", "static_cast", "<", "const", "X86TargetLowering", "*", ">", "(", "TLI", ")", ";", "bool", "SrcIsSSE", "=", "X86Lowering", "->", "isScalarFPTypeInSSEReg", "(", "SrcVT", ")", ";", "bool", "DstIsSSE", "=", "X86Lowering", "->", "isScalarFPTypeInSSEReg", "(", "DstVT", ")", ";", "if", "(", "SrcIsSSE", "&&", "DstIsSSE", ")", "continue", ";", "if", "(", "!", "SrcIsSSE", "&&", "!", "DstIsSSE", ")", "{", "if", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "FP_EXTEND", ")", "continue", ";", "if", "(", "N", "->", "getConstantOperandVal", "(", "1", ")", ")", "continue", ";", "}", "MVT", "MemVT", ";", "if", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "FP_ROUND", ")", "MemVT", "=", "DstVT", ";", "else", "MemVT", "=", "SrcIsSSE", "?", "SrcVT", ":", "DstVT", ";", "SDValue", "MemTmp", "=", "CurDAG", "->", "CreateStackTemporary", "(", "MemVT", ")", ";", "SDLoc", "dl", "(", "N", ")", ";", "SDValue", "Store", "=", "CurDAG", "->", "getTruncStore", "(", "CurDAG", "->", "getEntryNode", "(", ")", ",", "dl", ",", "N", "->", "getOperand", "(", "0", ")", ",", "MemTmp", ",", "MachinePointerInfo", "(", ")", ",", "MemVT", ",", "false", ",", "false", ",", "0", ")", ";", "SDValue", "Result", "=", "CurDAG", "->", "getExtLoad", "(", "ISD", "::", "EXTLOAD", ",", "dl", ",", "DstVT", ",", "Store", ",", "MemTmp", ",", "MachinePointerInfo", "(", ")", ",", "MemVT", ",", "false", ",", "false", ",", "false", ",", "0", ")", ";", "--", "I", ";", "CurDAG", "->", "ReplaceAllUsesOfValueWith", "(", "SDValue", "(", "N", ",", "0", ")", ",", "Result", ")", ";", "++", "I", ";", "CurDAG", "->", "DeleteNode", "(", "N", ")", ";", "}", "}", "</s>" ]
[ "PreprocessISelDAG", "-", "This", "hook", "allows", "targets", "to", "hack", "on", "the", "graph", "before", "instruction", "selection", "starts", "." ]
[ "X86", "X86", "X86ISD::CALL", "X86ISD::TC_RETURN", "X86ISD::CALL", "0", "1", "0", "ISD::FP_ROUND", "ISD::FP_EXTEND", "0", "0", "X86", "X86", "X86", "X86", "X86", "ISD::FP_EXTEND", "1", "ISD::FP_ROUND", "0", "0", "ISD::EXTLOAD", "0", "0" ]
X86ISelDAGToDAG142
PreprocessISelDAG
X86
CPU
LLVM
4,312
481
1
[]
[ "<s>", "bool", "AMDGPUAsmParser", "::", "ParseDirective", "(", "AsmToken", "DirectiveID", ")", "{", "StringRef", "IDVal", "=", "DirectiveID", ".", "getString", "(", ")", ";", "if", "(", "IDVal", "==", "\".hsa_code_object_version\"", ")", "return", "ParseDirectiveHSACodeObjectVersion", "(", ")", ";", "if", "(", "IDVal", "==", "\".hsa_code_object_isa\"", ")", "return", "ParseDirectiveHSACodeObjectISA", "(", ")", ";", "if", "(", "IDVal", "==", "AMDGPU", "::", "CodeObject", "::", "MetadataAssemblerDirectiveBegin", ")", "return", "ParseDirectiveCodeObjectMetadata", "(", ")", ";", "if", "(", "IDVal", "==", "\".amd_kernel_code_t\"", ")", "return", "ParseDirectiveAMDKernelCodeT", "(", ")", ";", "if", "(", "IDVal", "==", "\".amdgpu_hsa_kernel\"", ")", "return", "ParseDirectiveAMDGPUHsaKernel", "(", ")", ";", "return", "true", ";", "}", "</s>" ]
[ "ParseDirective", "-", "Parse", "a", "target", "specific", "assembler", "directive", "This", "method", "is", "deprecated", ",", "use", "'parseDirective", "'", "instead", "." ]
[ "AMDGPU", "AMDGPU", "\".hsa_code_object_version\"", "\".hsa_code_object_isa\"", "AMDGPU::CodeObject", "\".amd_kernel_code_t\"", "\".amdgpu_hsa_kernel\"", "AMDGPU" ]
AMDGPUAsmParser14
ParseDirective
AMDGPU
GPU
LLVM
4,313
81
1
[]
[ "<s>", "static", "void", "mips_sim_wait_regs", "(", "struct", "mips_sim", "*", "state", ",", "rtx_insn", "*", "insn", ")", "{", "mips_sim_insn", "=", "insn", ";", "note_uses", "(", "&", "PATTERN", "(", "insn", ")", ",", "mips_sim_wait_regs_1", ",", "state", ")", ";", "}", "</s>" ]
[ "Advance", "simulation", "state", "STATE", "until", "all", "of", "INSN", "'s", "register", "dependencies", "are", "satisfied", "." ]
[ "mips" ]
mips
mips_sim_wait_regs
mips
CPU
GCC
4,314
32
1
[]
[ "<s>", "static", "tree", "rs6000_builtin_vectorized_libmass", "(", "combined_fn", "fn", ",", "tree", "type_out", ",", "tree", "type_in", ")", "{", "char", "name", "[", "32", "]", ";", "const", "char", "*", "suffix", "=", "NULL", ";", "tree", "fntype", ",", "new_fndecl", ",", "bdecl", "=", "NULL_TREE", ";", "int", "n_args", "=", "1", ";", "const", "char", "*", "bname", ";", "machine_mode", "el_mode", ",", "in_mode", ";", "int", "n", ",", "in_n", ";", "if", "(", "!", "flag_unsafe_math_optimizations", "||", "!", "TARGET_VSX", ")", "return", "NULL_TREE", ";", "el_mode", "=", "TYPE_MODE", "(", "TREE_TYPE", "(", "type_out", ")", ")", ";", "n", "=", "TYPE_VECTOR_SUBPARTS", "(", "type_out", ")", ";", "in_mode", "=", "TYPE_MODE", "(", "TREE_TYPE", "(", "type_in", ")", ")", ";", "in_n", "=", "TYPE_VECTOR_SUBPARTS", "(", "type_in", ")", ";", "if", "(", "el_mode", "!=", "in_mode", "||", "n", "!=", "in_n", ")", "return", "NULL_TREE", ";", "switch", "(", "fn", ")", "{", "CASE_CFN_ATAN2", ":", "CASE_CFN_HYPOT", ":", "CASE_CFN_POW", ":", "n_args", "=", "2", ";", "gcc_fallthrough", "(", ")", ";", "CASE_CFN_ACOS", ":", "CASE_CFN_ACOSH", ":", "CASE_CFN_ASIN", ":", "CASE_CFN_ASINH", ":", "CASE_CFN_ATAN", ":", "CASE_CFN_ATANH", ":", "CASE_CFN_CBRT", ":", "CASE_CFN_COS", ":", "CASE_CFN_COSH", ":", "CASE_CFN_ERF", ":", "CASE_CFN_ERFC", ":", "CASE_CFN_EXP2", ":", "CASE_CFN_EXP", ":", "CASE_CFN_EXPM1", ":", "CASE_CFN_LGAMMA", ":", "CASE_CFN_LOG10", ":", "CASE_CFN_LOG1P", ":", "CASE_CFN_LOG2", ":", "CASE_CFN_LOG", ":", "CASE_CFN_SIN", ":", "CASE_CFN_SINH", ":", "CASE_CFN_SQRT", ":", "CASE_CFN_TAN", ":", "CASE_CFN_TANH", ":", "if", "(", "el_mode", "==", "DFmode", "&&", "n", "==", "2", ")", "{", "bdecl", "=", "mathfn_built_in", "(", "double_type_node", ",", "fn", ")", ";", "suffix", "=", "\"d2\"", ";", "}", "else", "if", "(", "el_mode", "==", "SFmode", "&&", "n", "==", "4", ")", "{", "bdecl", "=", "mathfn_built_in", "(", "float_type_node", ",", "fn", ")", ";", "suffix", "=", "\"4\"", ";", "}", "else", "return", "NULL_TREE", ";", "if", "(", "!", "bdecl", ")", "return", "NULL_TREE", ";", "break", ";", "default", ":", "return", "NULL_TREE", ";", "}", "gcc_assert", "(", "suffix", "!=", "NULL", ")", ";", "bname", "=", "IDENTIFIER_POINTER", "(", "DECL_NAME", "(", "bdecl", ")", ")", ";", "if", "(", "!", "bname", ")", "return", "NULL_TREE", ";", "strcpy", "(", "name", ",", "bname", "+", "strlen", "(", "\"__builtin_\"", ")", ")", ";", "strcat", "(", "name", ",", "suffix", ")", ";", "if", "(", "n_args", "==", "1", ")", "fntype", "=", "build_function_type_list", "(", "type_out", ",", "type_in", ",", "NULL", ")", ";", "else", "if", "(", "n_args", "==", "2", ")", "fntype", "=", "build_function_type_list", "(", "type_out", ",", "type_in", ",", "type_in", ",", "NULL", ")", ";", "else", "gcc_unreachable", "(", ")", ";", "new_fndecl", "=", "build_decl", "(", "BUILTINS_LOCATION", ",", "FUNCTION_DECL", ",", "get_identifier", "(", "name", ")", ",", "fntype", ")", ";", "TREE_PUBLIC", "(", "new_fndecl", ")", "=", "1", ";", "DECL_EXTERNAL", "(", "new_fndecl", ")", "=", "1", ";", "DECL_IS_NOVOPS", "(", "new_fndecl", ")", "=", "1", ";", "TREE_READONLY", "(", "new_fndecl", ")", "=", "1", ";", "return", "new_fndecl", ";", "}", "</s>" ]
[ "Handler", "for", "the", "Mathematical", "Acceleration", "Subsystem", "(", "mass", ")", "interface", "to", "a", "library", "with", "vectorized", "intrinsics", "." ]
[ "rs6000", "32", "1", "2", "2", "\"d2\"", "4", "\"4\"", "\"__builtin_\"", "1", "2", "1", "1", "1", "1" ]
rs6000
rs6000_builtin_vectorized_libmass
rs6000
CPU
GCC
4,315
386
1
[]
[ "<s>", "const", "uint32_t", "*", "ARMBaseRegisterInfo", "::", "getThisReturnPreservedMask", "(", "CallingConv", "::", "ID", "CC", ")", "const", "{", "if", "(", "CC", "==", "CallingConv", "::", "GHC", ")", "return", "NULL", ";", "return", "(", "STI", ".", "isTargetIOS", "(", ")", "&&", "!", "STI", ".", "isAAPCS_ABI", "(", ")", ")", "?", "CSR_iOS_ThisReturn_RegMask", ":", "CSR_AAPCS_ThisReturn_RegMask", ";", "}", "</s>" ]
[ "getThisReturnPreservedMask", "-", "Returns", "a", "call", "preserved", "mask", "specific", "to", "the", "case", "that", "'returned", "'", "is", "on", "an", "i32", "first", "argument", "if", "the", "calling", "convention", "is", "one", "that", "can", "(", "partially", ")", "model", "this", "attribute", "with", "a", "preserved", "mask", "(", "i.e", "." ]
[ "ARM", "ARM" ]
ARMBaseRegisterInfo19
getThisReturnPreservedMask
ARM
CPU
LLVM
4,316
46
1
[]
[ "<s>", "tree", "rs6000_builtin_mask_for_load", "(", "void", ")", "{", "if", "(", "(", "TARGET_ALTIVEC", "&&", "!", "TARGET_VSX", ")", "||", "(", "TARGET_VSX", "&&", "!", "TARGET_EFFICIENT_UNALIGNED_VSX", ")", ")", "return", "altivec_builtin_mask_for_load", ";", "else", "return", "0", ";", "}", "</s>" ]
[ "Implement", "targetm.vectorize.builtin_mask_for_load", "." ]
[ "rs6000", "0" ]
rs6000-builtin
rs6000_builtin_mask_for_load
rs6000
CPU
GCC
4,317
30
1
[]
[ "<s>", "static", "size_t", "mingw32_gt_pch_alloc_granularity", "(", "void", ")", "{", "SYSTEM_INFO", "si", ";", "GetSystemInfo", "(", "&", "si", ")", ";", "va_granularity", "=", "(", "size_t", ")", "si", ".", "dwAllocationGranularity", ";", "return", "va_granularity", ";", "}", "</s>" ]
[ "Granularity", "for", "reserving", "address", "space", "." ]
[ "i386" ]
host-mingw32
mingw32_gt_pch_alloc_granularity
i386
CPU
GCC
4,318
29
1
[]
[ "<s>", "static", "int", "spu_builtin_vectorization_cost", "(", "enum", "vect_cost_for_stmt", "type_of_cost", ",", "tree", "vectype", ",", "int", "misalign", "ATTRIBUTE_UNUSED", ")", "{", "unsigned", "elements", ";", "switch", "(", "type_of_cost", ")", "{", "case", "scalar_stmt", ":", "case", "vector_stmt", ":", "case", "vector_load", ":", "case", "vector_store", ":", "case", "vec_to_scalar", ":", "case", "scalar_to_vec", ":", "case", "cond_branch_not_taken", ":", "case", "vec_perm", ":", "case", "vec_promote_demote", ":", "return", "1", ";", "case", "scalar_store", ":", "return", "10", ";", "case", "scalar_load", ":", "return", "2", ";", "case", "unaligned_load", ":", "case", "vector_gather_load", ":", "case", "vector_scatter_store", ":", "return", "2", ";", "case", "cond_branch_taken", ":", "return", "6", ";", "case", "vec_construct", ":", "elements", "=", "TYPE_VECTOR_SUBPARTS", "(", "vectype", ")", ";", "return", "elements", "/", "2", "+", "1", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "</s>" ]
[ "Implement", "targetm.vectorize.builtin_vectorization_cost", "." ]
[ "spu", "1", "10", "2", "2", "6", "2", "1" ]
spu3
spu_builtin_vectorization_cost
spu
MPU
GCC
4,319
109
1
[]
[ "<s>", "static", "void", "mep_jmp_return_reorg", "(", "rtx_insn", "*", "insns", ")", "{", "rtx_insn", "*", "insn", ",", "*", "label", ",", "*", "ret", ";", "int", "ret_code", ";", "for", "(", "insn", "=", "insns", ";", "insn", ";", "insn", "=", "NEXT_INSN", "(", "insn", ")", ")", "if", "(", "simplejump_p", "(", "insn", ")", ")", "{", "label", "=", "ret", "=", "safe_as_a", "<", "rtx_insn", "*", ">", "(", "JUMP_LABEL", "(", "insn", ")", ")", ";", "while", "(", "ret", "&&", "(", "NOTE_P", "(", "ret", ")", "||", "LABEL_P", "(", "ret", ")", "||", "GET_CODE", "(", "PATTERN", "(", "ret", ")", ")", "==", "USE", ")", ")", "ret", "=", "NEXT_INSN", "(", "ret", ")", ";", "if", "(", "ret", ")", "{", "ret_code", "=", "recog_memoized", "(", "ret", ")", ";", "if", "(", "ret_code", "==", "CODE_FOR_return_internal", "||", "ret_code", "==", "CODE_FOR_eh_return_internal", ")", "{", "LABEL_NUSES", "(", "label", ")", "--", ";", "if", "(", "LABEL_NUSES", "(", "label", ")", "==", "0", ")", "delete_insn", "(", "label", ")", ";", "PATTERN", "(", "insn", ")", "=", "copy_rtx", "(", "PATTERN", "(", "ret", ")", ")", ";", "INSN_CODE", "(", "insn", ")", "=", "-", "1", ";", "}", "}", "}", "}", "</s>" ]
[ "Replace", "a", "jump", "to", "a", "return", ",", "with", "a", "copy", "of", "the", "return", ".", "GCC", "does", "n't", "always", "do", "this", "on", "its", "own", "." ]
[ "mep", "0", "1" ]
mep
mep_jmp_return_reorg
mep
CPU
GCC
4,320
162
1
[]
[ "<s>", "uint64_t", "MipsGNUInfo", "::", "flags", "(", ")", "const", "{", "return", "m_ElfFlags", ";", "}", "</s>" ]
[ "Get", "the", "flags", "for", "this", "GlobalValue", "(", "see", "struct", "GVFlags", ")", "." ]
[ "Mips", "Mips" ]
MipsGNUInfo
flags
Mips
CPU
LLVM
4,321
12
1
[]
[ "<s>", "static", "void", "mips_set_compression_mode", "(", "unsigned", "int", "compression_mode", ")", "{", "if", "(", "compression_mode", "==", "old_compression_mode", ")", "return", ";", "target_flags", "=", "mips_base_target_flags", ";", "flag_schedule_insns", "=", "mips_base_schedule_insns", ";", "flag_reorder_blocks_and_partition", "=", "mips_base_reorder_blocks_and_partition", ";", "flag_move_loop_invariants", "=", "mips_base_move_loop_invariants", ";", "str_align_loops", "=", "mips_base_align_loops", ";", "str_align_jumps", "=", "mips_base_align_jumps", ";", "str_align_functions", "=", "mips_base_align_functions", ";", "target_flags", "&=", "~", "(", "MASK_MIPS16", "|", "MASK_MICROMIPS", ")", ";", "target_flags", "|=", "compression_mode", ";", "if", "(", "compression_mode", "&", "MASK_MIPS16", ")", "{", "target_flags", "|=", "MASK_MIPS16", ";", "target_flags", "&=", "~", "MASK_SYNCI", ";", "flag_schedule_insns", "=", "0", ";", "flag_reorder_blocks_and_partition", "=", "0", ";", "flag_move_loop_invariants", "=", "0", ";", "target_flags", "|=", "MASK_EXPLICIT_RELOCS", ";", "targetm", ".", "min_anchor_offset", "=", "0", ";", "targetm", ".", "max_anchor_offset", "=", "127", ";", "targetm", ".", "const_anchor", "=", "0", ";", "target_flags", "&=", "~", "MASK_RELAX_PIC_CALLS", ";", "target_flags", "&=", "~", "MASK_FIX_R4000", ";", "if", "(", "flag_pic", "&&", "!", "TARGET_OLDABI", ")", "sorry", "(", "\"MIPS16 PIC for ABIs other than o32 and o64\"", ")", ";", "if", "(", "TARGET_XGOT", ")", "sorry", "(", "\"MIPS16 %<-mxgot%> code\"", ")", ";", "if", "(", "TARGET_HARD_FLOAT_ABI", "&&", "!", "TARGET_OLDABI", ")", "sorry", "(", "\"%<hard-float%> MIPS16 code for ABIs other than o32 and o64\"", ")", ";", "if", "(", "TARGET_MSA", ")", "sorry", "(", "\"MSA MIPS16 code\"", ")", ";", "}", "else", "{", "if", "(", "TARGET_MICROMIPS", ")", "target_flags", "&=", "~", "MASK_BRANCHLIKELY", ";", "if", "(", "TARGET_64BIT", ")", "{", "if", "(", "flag_align_loops", "&&", "!", "str_align_loops", ")", "str_align_loops", "=", "\"8\"", ";", "if", "(", "flag_align_jumps", "&&", "!", "str_align_jumps", ")", "str_align_jumps", "=", "\"8\"", ";", "if", "(", "flag_align_functions", "&&", "!", "str_align_functions", ")", "str_align_functions", "=", "\"8\"", ";", "}", "targetm", ".", "min_anchor_offset", "=", "-", "32768", ";", "targetm", ".", "max_anchor_offset", "=", "32767", ";", "targetm", ".", "const_anchor", "=", "0x8000", ";", "}", "mips_init_relocs", "(", ")", ";", "if", "(", "compression_mode", "&", "MASK_MIPS16", ")", "{", "if", "(", "!", "mips16_globals", ")", "mips16_globals", "=", "save_target_globals_default_opts", "(", ")", ";", "else", "restore_target_globals", "(", "mips16_globals", ")", ";", "}", "else", "if", "(", "compression_mode", "&", "MASK_MICROMIPS", ")", "{", "if", "(", "!", "micromips_globals", ")", "micromips_globals", "=", "save_target_globals_default_opts", "(", ")", ";", "else", "restore_target_globals", "(", "micromips_globals", ")", ";", "}", "else", "restore_target_globals", "(", "&", "default_target_globals", ")", ";", "old_compression_mode", "=", "compression_mode", ";", "}", "</s>" ]
[ "Set", "up", "the", "target-dependent", "global", "state", "for", "ISA", "mode", "COMPRESSION_MODE", ",", "which", "is", "either", "MASK_MIPS16", "or", "MASK_MICROMIPS", "." ]
[ "mips", "0", "0", "0", "0", "127", "0", "\"MIPS16 PIC for ABIs other than o32 and o64\"", "\"MIPS16 %<-mxgot%> code\"", "\"%<hard-float%> MIPS16 code for ABIs other than o32 and o64\"", "\"MSA MIPS16 code\"", "\"8\"", "\"8\"", "\"8\"", "32768", "32767", "0x8000" ]
mips
mips_set_compression_mode
mips
CPU
GCC
4,322
298
1
[]
[ "<s>", "static", "void", "rs6000_frame_related", "(", "rtx", "insn", ",", "rtx", "reg", ",", "HOST_WIDE_INT", "val", ",", "rtx", "reg2", ",", "rtx", "rreg", ")", "{", "rtx", "real", ",", "temp", ";", "if", "(", "reg", "==", "reg2", ")", "reg", "=", "gen_raw_REG", "(", "GET_MODE", "(", "reg", ")", ",", "REGNO", "(", "reg", ")", ")", ";", "if", "(", "reg", "==", "rreg", ")", "reg", "=", "gen_raw_REG", "(", "GET_MODE", "(", "reg", ")", ",", "REGNO", "(", "reg", ")", ")", ";", "real", "=", "copy_rtx", "(", "PATTERN", "(", "insn", ")", ")", ";", "if", "(", "reg2", "!=", "NULL_RTX", ")", "real", "=", "replace_rtx", "(", "real", ",", "reg2", ",", "rreg", ")", ";", "real", "=", "replace_rtx", "(", "real", ",", "reg", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "gen_rtx_REG", "(", "Pmode", ",", "STACK_POINTER_REGNUM", ")", ",", "GEN_INT", "(", "val", ")", ")", ")", ";", "if", "(", "GET_CODE", "(", "real", ")", "==", "SET", ")", "{", "rtx", "set", "=", "real", ";", "temp", "=", "simplify_rtx", "(", "SET_SRC", "(", "set", ")", ")", ";", "if", "(", "temp", ")", "SET_SRC", "(", "set", ")", "=", "temp", ";", "temp", "=", "simplify_rtx", "(", "SET_DEST", "(", "set", ")", ")", ";", "if", "(", "temp", ")", "SET_DEST", "(", "set", ")", "=", "temp", ";", "if", "(", "GET_CODE", "(", "SET_DEST", "(", "set", ")", ")", "==", "MEM", ")", "{", "temp", "=", "simplify_rtx", "(", "XEXP", "(", "SET_DEST", "(", "set", ")", ",", "0", ")", ")", ";", "if", "(", "temp", ")", "XEXP", "(", "SET_DEST", "(", "set", ")", ",", "0", ")", "=", "temp", ";", "}", "}", "else", "{", "int", "i", ";", "gcc_assert", "(", "GET_CODE", "(", "real", ")", "==", "PARALLEL", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "XVECLEN", "(", "real", ",", "0", ")", ";", "i", "++", ")", "if", "(", "GET_CODE", "(", "XVECEXP", "(", "real", ",", "0", ",", "i", ")", ")", "==", "SET", ")", "{", "rtx", "set", "=", "XVECEXP", "(", "real", ",", "0", ",", "i", ")", ";", "temp", "=", "simplify_rtx", "(", "SET_SRC", "(", "set", ")", ")", ";", "if", "(", "temp", ")", "SET_SRC", "(", "set", ")", "=", "temp", ";", "temp", "=", "simplify_rtx", "(", "SET_DEST", "(", "set", ")", ")", ";", "if", "(", "temp", ")", "SET_DEST", "(", "set", ")", "=", "temp", ";", "if", "(", "GET_CODE", "(", "SET_DEST", "(", "set", ")", ")", "==", "MEM", ")", "{", "temp", "=", "simplify_rtx", "(", "XEXP", "(", "SET_DEST", "(", "set", ")", ",", "0", ")", ")", ";", "if", "(", "temp", ")", "XEXP", "(", "SET_DEST", "(", "set", ")", ",", "0", ")", "=", "temp", ";", "}", "RTX_FRAME_RELATED_P", "(", "set", ")", "=", "1", ";", "}", "}", "if", "(", "TARGET_SPE", ")", "real", "=", "spe_synthesize_frame_save", "(", "real", ")", ";", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "REG_NOTES", "(", "insn", ")", "=", "gen_rtx_EXPR_LIST", "(", "REG_FRAME_RELATED_EXPR", ",", "real", ",", "REG_NOTES", "(", "insn", ")", ")", ";", "}", "</s>" ]
[ "Add", "to", "'insn", "'", "a", "note", "which", "is", "PATTERN", "(", "INSN", ")", "but", "with", "REG", "replaced", "with", "(", "plus", ":", "P", "(", "reg", "1", ")", "VAL", ")", ",", "and", "with", "REG2", "replaced", "with", "RREG", "if", "REG2", "is", "not", "NULL", ".", "It", "would", "be", "nice", "if", "dwarf2out_frame_debug_expr", "could", "deduce", "these", "equivalences", "by", "itself", "so", "it", "was", "n't", "necessary", "to", "hold", "its", "hand", "so", "much", ".", "Do", "n't", "be", "tempted", "to", "always", "supply", "d2_f_d_e", "with", "the", "actual", "cfa", "register", ",", "ie", ".", "r31", "when", "we", "are", "using", "a", "hard", "frame", "pointer", ".", "That", "fails", "when", "saving", "regs", "off", "r1", ",", "and", "sched", "moves", "the", "r31", "setup", "past", "the", "reg", "saves", "." ]
[ "rs6000", "0", "0", "0", "0", "0", "0", "0", "0", "1", "1" ]
rs60003
rs6000_frame_related
rs6000
CPU
GCC
4,323
417
1
[]
[ "<s>", "const", "MCFixupKindInfo", "&", "getFixupKindInfo", "(", "MCFixupKind", "Kind", ")", "const", "override", "{", "const", "static", "MCFixupKindInfo", "Infos", "[", "X86", "::", "NumTargetFixupKinds", "]", "=", "{", "{", "\"reloc_riprel_4byte\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"reloc_riprel_4byte_movq_load\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"reloc_riprel_4byte_relax\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"reloc_riprel_4byte_relax_rex\"", ",", "0", ",", "32", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"reloc_signed_4byte\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"reloc_signed_4byte_relax\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"reloc_global_offset_table\"", ",", "0", ",", "32", ",", "0", "}", ",", "{", "\"reloc_global_offset_table8\"", ",", "0", ",", "64", ",", "0", "}", ",", "}", ";", "if", "(", "Kind", "<", "FirstTargetFixupKind", ")", "return", "MCAsmBackend", "::", "getFixupKindInfo", "(", "Kind", ")", ";", "assert", "(", "unsigned", "(", "Kind", "-", "FirstTargetFixupKind", ")", "<", "getNumFixupKinds", "(", ")", "&&", "\"Invalid kind!\"", ")", ";", "return", "Infos", "[", "Kind", "-", "FirstTargetFixupKind", "]", ";", "}", "</s>" ]
[ "Get", "information", "on", "a", "fixup", "kind", "." ]
[ "X86", "X86::NumTargetFixupKinds", "\"reloc_riprel_4byte\"", "0", "32", "\"reloc_riprel_4byte_movq_load\"", "0", "32", "\"reloc_riprel_4byte_relax\"", "0", "32", "\"reloc_riprel_4byte_relax_rex\"", "0", "32", "\"reloc_signed_4byte\"", "0", "32", "0", "\"reloc_signed_4byte_relax\"", "0", "32", "0", "\"reloc_global_offset_table\"", "0", "32", "0", "\"reloc_global_offset_table8\"", "0", "64", "0", "\"Invalid kind!\"" ]
X86AsmBackend (2)
getFixupKindInfo
X86
CPU
LLVM
4,324
151
1
[]
[ "<s>", "static", "void", "frv_optimize_membar_local", "(", "basic_block", "bb", ",", "struct", "frv_io", "*", "next_io", ",", "rtx_insn", "*", "*", "last_membar", ")", "{", "HARD_REG_SET", "used_regs", ";", "rtx", "set", ";", "rtx_insn", "*", "insn", ",", "*", "next_membar", ";", "bool", "next_is_end_p", ";", "memset", "(", "next_io", ",", "0", ",", "sizeof", "(", "*", "next_io", ")", ")", ";", "next_is_end_p", "=", "true", ";", "next_membar", "=", "0", ";", "CLEAR_HARD_REG_SET", "(", "used_regs", ")", ";", "for", "(", "insn", "=", "BB_END", "(", "bb", ")", ";", "insn", "!=", "BB_HEAD", "(", "bb", ")", ";", "insn", "=", "PREV_INSN", "(", "insn", ")", ")", "if", "(", "CALL_P", "(", "insn", ")", ")", "{", "memset", "(", "next_io", ",", "0", ",", "sizeof", "(", "struct", "frv_io", ")", ")", ";", "next_is_end_p", "=", "false", ";", "CLEAR_HARD_REG_SET", "(", "used_regs", ")", ";", "}", "else", "if", "(", "INSN_P", "(", "insn", ")", ")", "switch", "(", "recog_memoized", "(", "insn", ")", ")", "{", "case", "CODE_FOR_optional_membar_qi", ":", "case", "CODE_FOR_optional_membar_hi", ":", "case", "CODE_FOR_optional_membar_si", ":", "case", "CODE_FOR_optional_membar_di", ":", "next_membar", "=", "insn", ";", "if", "(", "next_is_end_p", ")", "{", "*", "last_membar", "=", "insn", ";", "frv_extract_membar", "(", "next_io", ",", "insn", ")", ";", "next_is_end_p", "=", "false", ";", "}", "else", "{", "struct", "frv_io", "prev_io", ";", "frv_extract_membar", "(", "&", "prev_io", ",", "insn", ")", ";", "if", "(", "frv_io_fixed_order_p", "(", "&", "prev_io", ",", "next_io", ")", ")", "{", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\";; [Local] Removing membar %d since order\"", "\" of accesses is guaranteed\\n\"", ",", "INSN_UID", "(", "next_membar", ")", ")", ";", "insn", "=", "NEXT_INSN", "(", "insn", ")", ";", "delete_insn", "(", "next_membar", ")", ";", "next_membar", "=", "0", ";", "}", "*", "next_io", "=", "prev_io", ";", "}", "break", ";", "default", ":", "if", "(", "next_io", "->", "var_address", ")", "note_stores", "(", "PATTERN", "(", "insn", ")", ",", "frv_io_check_address", ",", "&", "next_io", "->", "var_address", ")", ";", "set", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "next_io", "->", "type", "==", "FRV_IO_READ", "&&", "next_io", "->", "var_address", "!=", "0", "&&", "next_membar", "!=", "0", "&&", "GET_CODE", "(", "set", ")", "==", "SET", "&&", "GET_CODE", "(", "SET_DEST", "(", "set", ")", ")", "==", "REG", "&&", "TEST_HARD_REG_BIT", "(", "used_regs", ",", "REGNO", "(", "SET_DEST", "(", "set", ")", ")", ")", ")", "{", "rtx", "src", ";", "src", "=", "SET_SRC", "(", "set", ")", ";", "if", "(", "GET_CODE", "(", "src", ")", "==", "ZERO_EXTEND", ")", "src", "=", "XEXP", "(", "src", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "src", ")", "==", "MEM", "&&", "rtx_equal_p", "(", "XEXP", "(", "src", ",", "0", ")", ",", "next_io", "->", "var_address", ")", ")", "{", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\";; [Local] Removing membar %d since the target\"", "\" of %d is used before the I/O operation\\n\"", ",", "INSN_UID", "(", "next_membar", ")", ",", "INSN_UID", "(", "insn", ")", ")", ";", "if", "(", "next_membar", "==", "*", "last_membar", ")", "*", "last_membar", "=", "0", ";", "delete_insn", "(", "next_membar", ")", ";", "next_membar", "=", "0", ";", "}", "}", "if", "(", "volatile_refs_p", "(", "PATTERN", "(", "insn", ")", ")", ")", "CLEAR_HARD_REG_SET", "(", "used_regs", ")", ";", "else", "note_stores", "(", "PATTERN", "(", "insn", ")", ",", "frv_io_handle_set", ",", "&", "used_regs", ")", ";", "note_uses", "(", "&", "PATTERN", "(", "insn", ")", ",", "frv_io_handle_use", ",", "&", "used_regs", ")", ";", "break", ";", "}", "}", "</s>" ]
[ "Go", "through", "block", "BB", "looking", "for", "membars", "to", "remove", ".", "There", "are", "two", "cases", "where", "intra-block", "analysis", "is", "enough", ":", "-", "a", "membar", "is", "redundant", "if", "it", "occurs", "between", "two", "consecutive", "I/O", "operations", "and", "if", "those", "operations", "are", "guaranteed", "to", "complete", "in", "order", ".", "-", "a", "membar", "for", "a", "__builtin_read", "is", "redundant", "if", "the", "result", "is", "used", "before", "the", "next", "I/O", "operation", "is", "issued", ".", "If", "the", "last", "membar", "in", "the", "block", "could", "not", "be", "removed", ",", "and", "there", "are", "guaranteed", "to", "be", "no", "I/O", "operations", "between", "that", "membar", "and", "the", "end", "of", "the", "block", ",", "store", "the", "membar", "in", "*", "LAST_MEMBAR", ",", "otherwise", "store", "null", ".", "Describe", "the", "block", "'s", "first", "I/O", "operation", "in", "*", "NEXT_IO", ".", "Describe", "an", "unknown", "operation", "if", "the", "block", "does", "n't", "do", "any", "I/O", "." ]
[ "frv", "0", "0", "0", "\";; [Local] Removing membar %d since order\"", "\" of accesses is guaranteed\\n\"", "0", "0", "0", "0", "0", "\";; [Local] Removing membar %d since the target\"", "\" of %d is used before the I/O operation\\n\"", "0", "0" ]
frv5
frv_optimize_membar_local
frv
VLIW
GCC
4,325
458
1
[]
[ "<s>", "void", "AMDGPUPassConfig", "::", "addPreRegAlloc", "(", ")", "{", "const", "AMDGPUSubtarget", "&", "ST", "=", "TM", "->", "getSubtarget", "<", "AMDGPUSubtarget", ">", "(", ")", ";", "if", "(", "ST", ".", "getGeneration", "(", ")", "<=", "AMDGPUSubtarget", "::", "NORTHERN_ISLANDS", ")", "{", "addPass", "(", "createR600VectorRegMerger", "(", "*", "TM", ")", ")", ";", "}", "else", "{", "if", "(", "getOptLevel", "(", ")", ">", "CodeGenOpt", "::", "None", ")", "{", "initializeSIFixControlFlowLiveIntervalsPass", "(", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ")", ";", "insertPass", "(", "&", "MachineSchedulerID", ",", "&", "SIFixControlFlowLiveIntervalsID", ")", ";", "}", "if", "(", "getOptLevel", "(", ")", ">", "CodeGenOpt", "::", "None", "&&", "ST", ".", "loadStoreOptEnabled", "(", ")", ")", "{", "initializeSILoadStoreOptimizerPass", "(", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ")", ";", "insertPass", "(", "&", "MachineSchedulerID", ",", "&", "SILoadStoreOptimizerID", ")", ";", "}", "addPass", "(", "createSIShrinkInstructionsPass", "(", ")", ",", "false", ")", ";", "addPass", "(", "createSIFixSGPRLiveRangesPass", "(", ")", ",", "false", ")", ";", "}", "}", "</s>" ]
[ "This", "method", "may", "be", "implemented", "by", "targets", "that", "want", "to", "run", "passes", "immediately", "before", "register", "allocation", "." ]
[ "R600", "SI", "SI", "SI", "SI", "SI", "SI" ]
AMDGPUTargetMachine38
addPreRegAlloc
R600
GPU
LLVM
4,326
134
1
[]
[ "<s>", "static", "void", "m68k_sched_dfa_post_advance_cycle", "(", "void", ")", "{", "int", "i", ";", "if", "(", "!", "sched_ib", ".", "enabled_p", ")", "return", ";", "i", "=", "max_insn_size", "-", "sched_ib", ".", "filled", ";", "while", "(", "--", "i", ">=", "0", ")", "{", "if", "(", "state_transition", "(", "curr_state", ",", "sched_ib", ".", "insn", ")", ">=", "0", ")", "++", "sched_ib", ".", "filled", ";", "}", "}", "</s>" ]
[ "Implementation", "of", "targetm.sched.dfa_post_advance_cycle", "(", ")", "hook", ".", "It", "is", "invoked", "just", "after", "new", "cycle", "begins", "and", "is", "used", "here", "to", "setup", "number", "of", "filled", "words", "in", "the", "instruction", "buffer", "so", "that", "instructions", "which", "wo", "n't", "have", "all", "their", "words", "prefetched", "would", "be", "stalled", "for", "a", "cycle", "." ]
[ "m68k", "0", "0" ]
m68k
m68k_sched_dfa_post_advance_cycle
m68k
MPU
GCC
4,327
55
1
[]
[ "<s>", "static", "void", "gen_safe_add", "(", "rtx", "dest", ",", "rtx", "src", ",", "rtx", "val", ",", "bool", "is_frame_related", ")", "{", "rtx", "insn", ";", "if", "(", "val", "==", "NULL_RTX", "||", "INTVAL", "(", "val", ")", "==", "0", ")", "{", "gcc_assert", "(", "dest", "!=", "src", ")", ";", "insn", "=", "emit_move_insn", "(", "dest", ",", "src", ")", ";", "}", "else", "if", "(", "ok_for_max_constant", "(", "INTVAL", "(", "val", ")", ")", ")", "insn", "=", "emit_insn", "(", "gen_addsi3", "(", "dest", ",", "src", ",", "val", ")", ")", ";", "else", "{", "val", "=", "gen_rtx_CONST", "(", "SImode", ",", "gen_rtx_UNSPEC", "(", "SImode", ",", "gen_rtvec", "(", "1", ",", "val", ")", ",", "UNSPEC_CONST", ")", ")", ";", "insn", "=", "emit_insn", "(", "gen_addsi3", "(", "dest", ",", "src", ",", "val", ")", ")", ";", "if", "(", "is_frame_related", ")", "add_reg_note", "(", "insn", ",", "REG_FRAME_RELATED_EXPR", ",", "gen_rtx_SET", "(", "SImode", ",", "dest", ",", "gen_rtx_PLUS", "(", "SImode", ",", "src", ",", "val", ")", ")", ")", ";", "return", ";", "}", "if", "(", "is_frame_related", ")", "RTX_FRAME_RELATED_P", "(", "insn", ")", "=", "1", ";", "return", ";", "}", "</s>" ]
[ "Generate", "an", "ADD", "of", "SRC", "plus", "VAL", "into", "DEST", ".", "Handles", "the", "case", "where", "VAL", "is", "too", "big", "for", "max_constant_value", ".", "Sets", "FRAME_RELATED_P", "on", "the", "insn", "if", "IS_FRAME_RELATED", "is", "true", "." ]
[ "rx", "0", "1", "1" ]
rx2
gen_safe_add
rx
CPU
GCC
4,328
157
1
[]
[ "<s>", "SDValue", "AGCTargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", ",", "const", "SDLoc", "&", "DL", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "if", "(", "IsVarArg", ")", "report_fatal_error", "(", "\"vararg not yet supported\"", ")", ";", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_AGC", ")", ";", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", "(", "1", ",", "Chain", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RVLocs", ".", "size", "(", ")", ";", "i", "<", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "\"Can only return in upper and lower accumulators!\"", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "VA", ".", "getLocReg", "(", ")", ",", "OutVals", "[", "i", "]", ",", "Flag", ")", ";", "Flag", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "SDValue", "ArgOut", ";", "if", "(", "VA", ".", "getValNo", "(", ")", "==", "0", ")", "{", "ArgOut", "=", "DAG", ".", "getRegister", "(", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ")", ";", "}", "else", "if", "(", "VA", ".", "getValNo", "(", ")", "==", "1", ")", "{", "ArgOut", "=", "DAG", ".", "getRegister", "(", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ")", ";", "}", "else", "report_fatal_error", "(", "\"more than two register outputs\"", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "RetOps", "[", "0", "]", "=", "Chain", ";", "if", "(", "Flag", ".", "getNode", "(", ")", ")", "RetOps", ".", "push_back", "(", "Flag", ")", ";", "return", "DAG", ".", "getNode", "(", "AGCISD", "::", "RET_FLAG", ",", "DL", ",", "MVT", "::", "Other", ",", "RetOps", ")", ";", "}", "</s>" ]
[ "This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "." ]
[ "AGC", "AGC", "ISD::OutputArg", "\"vararg not yet supported\"", "16", "AGC", "4", "1", "0", "\"Can only return in upper and lower accumulators!\"", "1", "0", "1", "\"more than two register outputs\"", "0", "AGCISD::RET_FLAG", "MVT::Other" ]
AGCISelLowering
LowerReturn
AGC
MPU
LLVM
4,329
322
1
[]
[ "<s>", "static", "int", "mips_issue_rate", "(", "void", ")", "{", "switch", "(", "mips_tune", ")", "{", "case", "PROCESSOR_74KC", ":", "case", "PROCESSOR_74KF2_1", ":", "case", "PROCESSOR_74KF1_1", ":", "case", "PROCESSOR_74KF3_2", ":", "case", "PROCESSOR_R10000", ":", "return", "4", ";", "case", "PROCESSOR_20KC", ":", "case", "PROCESSOR_R4130", ":", "case", "PROCESSOR_R5400", ":", "case", "PROCESSOR_R5500", ":", "case", "PROCESSOR_R5900", ":", "case", "PROCESSOR_R7000", ":", "case", "PROCESSOR_R9000", ":", "case", "PROCESSOR_OCTEON", ":", "case", "PROCESSOR_OCTEON2", ":", "case", "PROCESSOR_OCTEON3", ":", "return", "2", ";", "case", "PROCESSOR_SB1", ":", "case", "PROCESSOR_SB1A", ":", "return", "3", ";", "case", "PROCESSOR_LOONGSON_2E", ":", "case", "PROCESSOR_LOONGSON_2F", ":", "case", "PROCESSOR_LOONGSON_3A", ":", "case", "PROCESSOR_P5600", ":", "return", "4", ";", "case", "PROCESSOR_XLP", ":", "return", "(", "reload_completed", "?", "4", ":", "3", ")", ";", "default", ":", "return", "1", ";", "}", "}", "</s>" ]
[ "Return", "the", "number", "of", "instructions", "that", "can", "be", "issued", "per", "cycle", "." ]
[ "mips", "4", "2", "3", "4", "4", "3", "1" ]
mips4
mips_issue_rate
mips
CPU
GCC
4,330
106
1
[]
[ "<s>", "static", "int", "mips_binary_cost", "(", "rtx", "x", ",", "int", "single_cost", ",", "int", "double_cost", ",", "bool", "speed", ")", "{", "int", "cost", ";", "if", "(", "GET_MODE_SIZE", "(", "GET_MODE", "(", "x", ")", ")", "==", "UNITS_PER_WORD", "*", "2", ")", "cost", "=", "double_cost", ";", "else", "cost", "=", "single_cost", ";", "return", "(", "cost", "+", "set_src_cost", "(", "XEXP", "(", "x", ",", "0", ")", ",", "GET_MODE", "(", "x", ")", ",", "speed", ")", "+", "rtx_cost", "(", "XEXP", "(", "x", ",", "1", ")", ",", "GET_MODE", "(", "x", ")", ",", "GET_CODE", "(", "x", ")", ",", "1", ",", "speed", ")", ")", ";", "}", "</s>" ]
[ "Return", "the", "cost", "of", "binary", "operation", "X", ",", "given", "that", "the", "instruction", "sequence", "for", "a", "word-sized", "or", "smaller", "operation", "has", "cost", "SINGLE_COST", "and", "that", "the", "sequence", "of", "a", "double-word", "operation", "has", "cost", "DOUBLE_COST", ".", "If", "SPEED", "is", "true", ",", "optimize", "for", "speed", "otherwise", "optimize", "for", "size", "." ]
[ "mips", "2", "0", "1", "1" ]
mips
mips_binary_cost
mips
CPU
GCC
4,331
90
1
[]
[ "<s>", "const", "TargetRegisterClass", "*", "VERegisterInfo", "::", "getPointerRegClass", "(", "const", "MachineFunction", "&", "MF", ",", "unsigned", "Kind", ")", "const", "{", "return", "&", "VE", "::", "I64RegClass", ";", "}", "</s>" ]
[ "getPointerRegClass", "-", "Returns", "a", "TargetRegisterClass", "used", "for", "pointer", "values", "." ]
[ "VE", "VE", "VE::I64RegClass" ]
VERegisterInfo
getPointerRegClass
VE
CPU
LLVM
4,332
24
1
[]
[ "<s>", "int", "condexec_memory_operand", "(", "rtx", "op", ",", "enum", "machine_mode", "mode", ")", "{", "enum", "machine_mode", "op_mode", "=", "GET_MODE", "(", "op", ")", ";", "rtx", "addr", ";", "if", "(", "mode", "!=", "VOIDmode", "&&", "op_mode", "!=", "mode", ")", "return", "FALSE", ";", "switch", "(", "op_mode", ")", "{", "default", ":", "return", "FALSE", ";", "case", "QImode", ":", "case", "HImode", ":", "case", "SImode", ":", "case", "SFmode", ":", "break", ";", "}", "if", "(", "GET_CODE", "(", "op", ")", "!=", "MEM", ")", "return", "FALSE", ";", "addr", "=", "XEXP", "(", "op", ",", "0", ")", ";", "return", "frv_legitimate_address_p", "(", "mode", ",", "addr", ",", "reload_completed", ",", "TRUE", ",", "FALSE", ")", ";", "}", "</s>" ]
[ "Return", "true", "if", "the", "memory", "operand", "is", "one", "that", "can", "be", "conditionally", "executed", "." ]
[ "frv", "0" ]
frv2
condexec_memory_operand
frv
VLIW
GCC
4,333
97
1
[]
[ "<s>", "static", "void", "c6x_print_operand_address", "(", "FILE", "*", "file", ",", "rtx", "addr", ")", "{", "c6x_print_address_operand", "(", "file", ",", "addr", ",", "VOIDmode", ")", ";", "}", "</s>" ]
[ "Output", "assembly", "language", "output", "for", "the", "address", "ADDR", "to", "FILE", "." ]
[ "c6x" ]
c6x2
c6x_print_operand_address
c6x
VLIW
GCC
4,334
22
1
[]
[ "<s>", "HOST_WIDE_INT", "aarch64_fold_sve_cnt_pat", "(", "aarch64_svpattern", "pattern", ",", "unsigned", "int", "nelts_per_vq", ")", "{", "unsigned", "int", "vl", ",", "const_vg", ";", "if", "(", "pattern", ">=", "AARCH64_SV_VL1", "&&", "pattern", "<=", "AARCH64_SV_VL8", ")", "vl", "=", "1", "+", "(", "pattern", "-", "AARCH64_SV_VL1", ")", ";", "else", "if", "(", "pattern", ">=", "AARCH64_SV_VL16", "&&", "pattern", "<=", "AARCH64_SV_VL256", ")", "vl", "=", "16", "<<", "(", "pattern", "-", "AARCH64_SV_VL16", ")", ";", "else", "if", "(", "aarch64_sve_vg", ".", "is_constant", "(", "&", "const_vg", ")", ")", "{", "unsigned", "int", "nelts", "=", "(", "const_vg", "/", "2", ")", "*", "nelts_per_vq", ";", "switch", "(", "pattern", ")", "{", "case", "AARCH64_SV_POW2", ":", "return", "1", "<<", "floor_log2", "(", "nelts", ")", ";", "case", "AARCH64_SV_MUL4", ":", "return", "nelts", "&", "-", "4", ";", "case", "AARCH64_SV_MUL3", ":", "return", "(", "nelts", "/", "3", ")", "*", "3", ";", "case", "AARCH64_SV_ALL", ":", "return", "nelts", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "else", "return", "-", "1", ";", "poly_uint64", "nelts_all", "=", "exact_div", "(", "aarch64_sve_vg", ",", "2", ")", "*", "nelts_per_vq", ";", "if", "(", "known_le", "(", "vl", ",", "nelts_all", ")", ")", "return", "vl", ";", "if", "(", "known_gt", "(", "vl", ",", "nelts_all", ")", ")", "return", "0", ";", "return", "-", "1", ";", "}", "</s>" ]
[ "Check", "whether", "we", "can", "calculate", "the", "number", "of", "elements", "in", "PATTERN", "at", "compile", "time", ",", "given", "that", "there", "are", "NELTS_PER_VQ", "elements", "per", "128-bit", "block", ".", "Return", "the", "value", "if", "so", ",", "otherwise", "return", "-1", "." ]
[ "aarch64", "1", "16", "2", "1", "4", "3", "3", "1", "2", "0", "1" ]
aarch64
aarch64_fold_sve_cnt_pat
aarch64
CPU
GCC
4,335
179
1
[]
[ "<s>", "bool", "evaluateBranch", "(", "const", "MCInst", "&", "Inst", ",", "uint64_t", "Addr", ",", "uint64_t", "Size", ",", "uint64_t", "&", "Target", ")", "const", "override", "{", "const", "MCInstrDesc", "&", "Desc", "=", "Info", "->", "get", "(", "Inst", ".", "getOpcode", "(", ")", ")", ";", "for", "(", "unsigned", "OpNum", "=", "0", ";", "OpNum", "<", "Desc", ".", "getNumOperands", "(", ")", ";", "++", "OpNum", ")", "{", "if", "(", "Inst", ".", "getOperand", "(", "OpNum", ")", ".", "isImm", "(", ")", "&&", "Desc", ".", "OpInfo", "[", "OpNum", "]", ".", "OperandType", "==", "MCOI", "::", "OPERAND_PCREL", ")", "{", "int64_t", "Imm", "=", "Inst", ".", "getOperand", "(", "OpNum", ")", ".", "getImm", "(", ")", ";", "Target", "=", "ARM_MC", "::", "evaluateBranchTarget", "(", "Desc", ",", "Addr", ",", "Imm", ")", ";", "return", "true", ";", "}", "}", "return", "false", ";", "}", "</s>" ]
[ "Given", "a", "branch", "instruction", "try", "to", "get", "the", "address", "the", "branch", "targets", "." ]
[ "ARM", "0", "ARM" ]
ARMMCTargetDesc (2)1
evaluateBranch
ARM
CPU
LLVM
4,336
119
1
[]
[ "<s>", "static", "void", "aarch64_emit_prologue_components", "(", "sbitmap", "components", ")", "{", "aarch64_process_components", "(", "components", ",", "true", ")", ";", "}", "</s>" ]
[ "Implement", "TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS", "." ]
[ "aarch64" ]
aarch64
aarch64_emit_prologue_components
aarch64
CPU
GCC
4,337
16
1
[]
[ "<s>", "void", "X86DAGToDAGISel", "::", "PreprocessISelDAG", "(", ")", "{", "OptForSize", "=", "MF", "->", "getFunction", "(", ")", "->", "getAttributes", "(", ")", ".", "hasAttribute", "(", "AttributeSet", "::", "FunctionIndex", ",", "Attribute", "::", "OptimizeForSize", ")", ";", "for", "(", "SelectionDAG", "::", "allnodes_iterator", "I", "=", "CurDAG", "->", "allnodes_begin", "(", ")", ",", "E", "=", "CurDAG", "->", "allnodes_end", "(", ")", ";", "I", "!=", "E", ";", ")", "{", "SDNode", "*", "N", "=", "I", "++", ";", "if", "(", "OptLevel", "!=", "CodeGenOpt", "::", "None", "&&", "!", "Subtarget", "->", "isTargetNaCl", "(", ")", "&&", "(", "(", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "CALL", "&&", "!", "Subtarget", "->", "callRegIndirect", "(", ")", ")", "||", "(", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "TC_RETURN", "&&", "(", "Subtarget", "->", "is64Bit", "(", ")", "||", "getTargetMachine", "(", ")", ".", "getRelocationModel", "(", ")", "!=", "Reloc", "::", "PIC_", ")", ")", ")", ")", "{", "bool", "HasCallSeq", "=", "N", "->", "getOpcode", "(", ")", "==", "X86ISD", "::", "CALL", ";", "SDValue", "Chain", "=", "N", "->", "getOperand", "(", "0", ")", ";", "SDValue", "Load", "=", "N", "->", "getOperand", "(", "1", ")", ";", "if", "(", "!", "isCalleeLoad", "(", "Load", ",", "Chain", ",", "HasCallSeq", ")", ")", "continue", ";", "MoveBelowOrigChain", "(", "CurDAG", ",", "Load", ",", "SDValue", "(", "N", ",", "0", ")", ",", "Chain", ")", ";", "++", "NumLoadMoved", ";", "continue", ";", "}", "if", "(", "N", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "FP_ROUND", "&&", "N", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "FP_EXTEND", ")", "continue", ";", "MVT", "SrcVT", "=", "N", "->", "getOperand", "(", "0", ")", ".", "getSimpleValueType", "(", ")", ";", "MVT", "DstVT", "=", "N", "->", "getSimpleValueType", "(", "0", ")", ";", "if", "(", "SrcVT", ".", "isVector", "(", ")", "||", "DstVT", ".", "isVector", "(", ")", ")", "continue", ";", "const", "X86TargetLowering", "*", "X86Lowering", "=", "static_cast", "<", "const", "X86TargetLowering", "*", ">", "(", "getTargetLowering", "(", ")", ")", ";", "bool", "SrcIsSSE", "=", "X86Lowering", "->", "isScalarFPTypeInSSEReg", "(", "SrcVT", ")", ";", "bool", "DstIsSSE", "=", "X86Lowering", "->", "isScalarFPTypeInSSEReg", "(", "DstVT", ")", ";", "if", "(", "SrcIsSSE", "&&", "DstIsSSE", ")", "continue", ";", "if", "(", "!", "SrcIsSSE", "&&", "!", "DstIsSSE", ")", "{", "if", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "FP_EXTEND", ")", "continue", ";", "if", "(", "N", "->", "getConstantOperandVal", "(", "1", ")", ")", "continue", ";", "}", "MVT", "MemVT", ";", "if", "(", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "FP_ROUND", ")", "MemVT", "=", "DstVT", ";", "else", "MemVT", "=", "SrcIsSSE", "?", "SrcVT", ":", "DstVT", ";", "SDValue", "MemTmp", "=", "CurDAG", "->", "CreateStackTemporary", "(", "MemVT", ")", ";", "SDLoc", "dl", "(", "N", ")", ";", "SDValue", "Store", "=", "CurDAG", "->", "getTruncStore", "(", "CurDAG", "->", "getEntryNode", "(", ")", ",", "dl", ",", "N", "->", "getOperand", "(", "0", ")", ",", "MemTmp", ",", "MachinePointerInfo", "(", ")", ",", "MemVT", ",", "false", ",", "false", ",", "0", ")", ";", "SDValue", "Result", "=", "CurDAG", "->", "getExtLoad", "(", "ISD", "::", "EXTLOAD", ",", "dl", ",", "DstVT", ",", "Store", ",", "MemTmp", ",", "MachinePointerInfo", "(", ")", ",", "MemVT", ",", "false", ",", "false", ",", "0", ")", ";", "--", "I", ";", "CurDAG", "->", "ReplaceAllUsesOfValueWith", "(", "SDValue", "(", "N", ",", "0", ")", ",", "Result", ")", ";", "++", "I", ";", "CurDAG", "->", "DeleteNode", "(", "N", ")", ";", "}", "}", "</s>" ]
[ "PreprocessISelDAG", "-", "This", "hook", "allows", "targets", "to", "hack", "on", "the", "graph", "before", "instruction", "selection", "starts", "." ]
[ "X86", "X86", "X86ISD::CALL", "X86ISD::TC_RETURN", "X86ISD::CALL", "0", "1", "0", "ISD::FP_ROUND", "ISD::FP_EXTEND", "0", "0", "X86", "X86", "X86", "X86", "X86", "ISD::FP_EXTEND", "1", "ISD::FP_ROUND", "0", "0", "ISD::EXTLOAD", "0", "0" ]
X86ISelDAGToDAG125
PreprocessISelDAG
X86
CPU
LLVM
4,338
488
1
[]
[ "<s>", "static", "int", "riscv_arg_partial_bytes", "(", "cumulative_args_t", "cum", ",", "const", "function_arg_info", "&", "generic_arg", ")", "{", "struct", "riscv_arg_info", "arg", ";", "riscv_get_arg_info", "(", "&", "arg", ",", "get_cumulative_args", "(", "cum", ")", ",", "generic_arg", ".", "mode", ",", "generic_arg", ".", "type", ",", "generic_arg", ".", "named", ",", "false", ")", ";", "return", "arg", ".", "stack_p", "?", "arg", ".", "num_gprs", "*", "UNITS_PER_WORD", ":", "0", ";", "}", "</s>" ]
[ "Implement", "TARGET_ARG_PARTIAL_BYTES", "." ]
[ "riscv", "0" ]
riscv
riscv_arg_partial_bytes
riscv
CPU
GCC
4,339
56
1
[]
[ "<s>", "void", "SystemZPostRASchedStrategy", "::", "enterMBB", "(", "MachineBasicBlock", "*", "NextMBB", ")", "{", "assert", "(", "(", "SchedStates", ".", "find", "(", "NextMBB", ")", "==", "SchedStates", ".", "end", "(", ")", ")", "&&", "\"Entering MBB twice?\"", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"** Entering \"", "<<", "printMBBReference", "(", "*", "NextMBB", ")", ")", ";", "MBB", "=", "NextMBB", ";", "HazardRec", "=", "SchedStates", "[", "MBB", "]", "=", "new", "SystemZHazardRecognizer", "(", "TII", ",", "&", "SchedModel", ")", ";", "LLVM_DEBUG", "(", "const", "MachineLoop", "*", "Loop", "=", "MLI", "->", "getLoopFor", "(", "MBB", ")", ";", "if", "(", "Loop", "&&", "Loop", "->", "getHeader", "(", ")", "==", "MBB", ")", "dbgs", "(", ")", "<<", "\" (Loop header)\"", ";", "dbgs", "(", ")", "<<", "\":\\n\"", ";", ")", ";", "MachineBasicBlock", "*", "SinglePredMBB", "=", "getSingleSchedPred", "(", "MBB", ",", "MLI", "->", "getLoopFor", "(", "MBB", ")", ")", ";", "if", "(", "SinglePredMBB", "==", "nullptr", "||", "SchedStates", ".", "find", "(", "SinglePredMBB", ")", "==", "SchedStates", ".", "end", "(", ")", ")", "return", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"** Continued scheduling from \"", "<<", "printMBBReference", "(", "*", "SinglePredMBB", ")", "<<", "\"\\n\"", ";", ")", ";", "HazardRec", "->", "copyState", "(", "SchedStates", "[", "SinglePredMBB", "]", ")", ";", "LLVM_DEBUG", "(", "HazardRec", "->", "dumpState", "(", ")", ";", ")", ";", "for", "(", "MachineBasicBlock", "::", "iterator", "I", "=", "SinglePredMBB", "->", "getFirstTerminator", "(", ")", ";", "I", "!=", "SinglePredMBB", "->", "end", "(", ")", ";", "I", "++", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"** Emitting incoming branch: \"", ";", "I", "->", "dump", "(", ")", ";", ")", ";", "bool", "TakenBranch", "=", "(", "I", "->", "isBranch", "(", ")", "&&", "(", "TII", "->", "getBranchInfo", "(", "*", "I", ")", ".", "Target", "->", "isReg", "(", ")", "||", "TII", "->", "getBranchInfo", "(", "*", "I", ")", ".", "Target", "->", "getMBB", "(", ")", "==", "MBB", ")", ")", ";", "HazardRec", "->", "emitInstruction", "(", "&", "*", "I", ",", "TakenBranch", ")", ";", "if", "(", "TakenBranch", ")", "break", ";", "}", "}", "</s>" ]
[ "Tell", "the", "strategy", "that", "MBB", "is", "about", "to", "be", "processed", "." ]
[ "SystemZ", "SystemZ", "\"Entering MBB twice?\"", "\"** Entering \"", "SystemZ", "\" (Loop header)\"", "\":\\n\"", "\"** Continued scheduling from \"", "\"\\n\"", "\"** Emitting incoming branch: \"" ]
SystemZMachineScheduler
enterMBB
SystemZ
CPU
LLVM
4,340
283
1
[]
[ "<s>", "void", "AArch64AsmPrinter", "::", "emitJumpTableInfo", "(", ")", "{", "const", "MachineJumpTableInfo", "*", "MJTI", "=", "MF", "->", "getJumpTableInfo", "(", ")", ";", "if", "(", "!", "MJTI", ")", "return", ";", "const", "std", "::", "vector", "<", "MachineJumpTableEntry", ">", "&", "JT", "=", "MJTI", "->", "getJumpTables", "(", ")", ";", "if", "(", "JT", ".", "empty", "(", ")", ")", "return", ";", "const", "Function", "&", "F", "=", "MF", "->", "getFunction", "(", ")", ";", "const", "TargetLoweringObjectFile", "&", "TLOF", "=", "getObjFileLowering", "(", ")", ";", "bool", "JTInDiffSection", "=", "!", "STI", "->", "isTargetCOFF", "(", ")", "||", "!", "TLOF", ".", "shouldPutJumpTableInFunctionSection", "(", "MJTI", "->", "getEntryKind", "(", ")", "==", "MachineJumpTableInfo", "::", "EK_LabelDifference32", ",", "F", ")", ";", "if", "(", "JTInDiffSection", ")", "{", "MCSection", "*", "ReadOnlySec", "=", "TLOF", ".", "getSectionForJumpTable", "(", "F", ",", "TM", ")", ";", "OutStreamer", "->", "SwitchSection", "(", "ReadOnlySec", ")", ";", "}", "auto", "AFI", "=", "MF", "->", "getInfo", "<", "AArch64FunctionInfo", ">", "(", ")", ";", "for", "(", "unsigned", "JTI", "=", "0", ",", "e", "=", "JT", ".", "size", "(", ")", ";", "JTI", "!=", "e", ";", "++", "JTI", ")", "{", "const", "std", "::", "vector", "<", "MachineBasicBlock", "*", ">", "&", "JTBBs", "=", "JT", "[", "JTI", "]", ".", "MBBs", ";", "if", "(", "JTBBs", ".", "empty", "(", ")", ")", "continue", ";", "unsigned", "Size", "=", "AFI", "->", "getJumpTableEntrySize", "(", "JTI", ")", ";", "emitAlignment", "(", "Align", "(", "Size", ")", ")", ";", "OutStreamer", "->", "emitLabel", "(", "GetJTISymbol", "(", "JTI", ")", ")", ";", "const", "MCSymbol", "*", "BaseSym", "=", "AArch64FI", "->", "getJumpTableEntryPCRelSymbol", "(", "JTI", ")", ";", "const", "MCExpr", "*", "Base", "=", "MCSymbolRefExpr", "::", "create", "(", "BaseSym", ",", "OutContext", ")", ";", "for", "(", "auto", "*", "JTBB", ":", "JTBBs", ")", "{", "const", "MCExpr", "*", "Value", "=", "MCSymbolRefExpr", "::", "create", "(", "JTBB", "->", "getSymbol", "(", ")", ",", "OutContext", ")", ";", "Value", "=", "MCBinaryExpr", "::", "createSub", "(", "Value", ",", "Base", ",", "OutContext", ")", ";", "if", "(", "Size", "!=", "4", ")", "Value", "=", "MCBinaryExpr", "::", "createLShr", "(", "Value", ",", "MCConstantExpr", "::", "create", "(", "2", ",", "OutContext", ")", ",", "OutContext", ")", ";", "OutStreamer", "->", "emitValue", "(", "Value", ",", "Size", ")", ";", "}", "}", "}", "</s>" ]
[ "Print", "assembly", "representations", "of", "the", "jump", "tables", "used", "by", "the", "current", "function", "to", "the", "current", "output", "stream", "." ]
[ "AArch64", "AArch64", "AArch64", "0", "AArch64", "4", "2" ]
AArch64AsmPrinter1
emitJumpTableInfo
AArch64
CPU
LLVM
4,341
320
1
[]
[ "<s>", "unsigned", "int", "h8300_insn_length_from_table", "(", "rtx_insn", "*", "insn", ",", "rtx", "*", "operands", ")", "{", "switch", "(", "get_attr_length_table", "(", "insn", ")", ")", "{", "case", "LENGTH_TABLE_NONE", ":", "gcc_unreachable", "(", ")", ";", "case", "LENGTH_TABLE_ADD", ":", "if", "(", "GET_MODE", "(", "operands", "[", "0", "]", ")", "==", "QImode", ")", "return", "h8300_binary_length", "(", "insn", ",", "&", "addb_length_table", ")", ";", "else", "if", "(", "GET_MODE", "(", "operands", "[", "0", "]", ")", "==", "HImode", ")", "return", "h8300_binary_length", "(", "insn", ",", "&", "addw_length_table", ")", ";", "else", "if", "(", "GET_MODE", "(", "operands", "[", "0", "]", ")", "==", "SImode", ")", "return", "h8300_binary_length", "(", "insn", ",", "&", "addl_length_table", ")", ";", "gcc_unreachable", "(", ")", ";", "case", "LENGTH_TABLE_LOGICB", ":", "return", "h8300_binary_length", "(", "insn", ",", "&", "logicb_length_table", ")", ";", "case", "LENGTH_TABLE_MOVB", ":", "return", "h8300_move_length", "(", "operands", ",", "&", "movb_length_table", ")", ";", "case", "LENGTH_TABLE_MOVW", ":", "return", "h8300_move_length", "(", "operands", ",", "&", "movw_length_table", ")", ";", "case", "LENGTH_TABLE_MOVL", ":", "return", "h8300_move_length", "(", "operands", ",", "&", "movl_length_table", ")", ";", "case", "LENGTH_TABLE_MOVA", ":", "return", "h8300_mova_length", "(", "operands", "[", "0", "]", ",", "operands", "[", "1", "]", ",", "operands", "[", "2", "]", ")", ";", "case", "LENGTH_TABLE_MOVA_ZERO", ":", "return", "h8300_mova_length", "(", "operands", "[", "0", "]", ",", "operands", "[", "1", "]", ",", "const0_rtx", ")", ";", "case", "LENGTH_TABLE_UNARY", ":", "return", "h8300_unary_length", "(", "operands", "[", "0", "]", ")", ";", "case", "LENGTH_TABLE_MOV_IMM4", ":", "return", "2", "+", "h8300_classify_operand", "(", "operands", "[", "0", "]", ",", "0", ",", "0", ")", ";", "case", "LENGTH_TABLE_SHORT_IMMEDIATE", ":", "return", "h8300_short_immediate_length", "(", "operands", "[", "0", "]", ")", ";", "case", "LENGTH_TABLE_BITFIELD", ":", "return", "h8300_bitfield_length", "(", "operands", "[", "0", "]", ",", "operands", "[", "1", "]", ")", ";", "case", "LENGTH_TABLE_BITBRANCH", ":", "return", "h8300_bitfield_length", "(", "operands", "[", "1", "]", ",", "operands", "[", "2", "]", ")", "-", "2", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "</s>" ]
[ "Compute", "the", "length", "of", "INSN", "based", "on", "its", "length_table", "attribute", ".", "OPERANDS", "is", "the", "array", "of", "its", "operands", "." ]
[ "h8300", "0", "0", "0", "0", "1", "2", "0", "1", "0", "2", "0", "0", "0", "0", "0", "1", "1", "2", "2" ]
h8300
h8300_insn_length_from_table
h8300
MPU
GCC
4,342
275
1
[]
[ "<s>", "unsigned", "AArch64InstrInfo", "::", "getLoadStoreImmIdx", "(", "unsigned", "Opc", ")", "{", "switch", "(", "Opc", ")", "{", "default", ":", "return", "2", ";", "case", "AArch64", "::", "LDPXi", ":", "case", "AArch64", "::", "LDPDi", ":", "case", "AArch64", "::", "STPXi", ":", "case", "AArch64", "::", "STPDi", ":", "case", "AArch64", "::", "LDNPXi", ":", "case", "AArch64", "::", "LDNPDi", ":", "case", "AArch64", "::", "STNPXi", ":", "case", "AArch64", "::", "STNPDi", ":", "case", "AArch64", "::", "LDPQi", ":", "case", "AArch64", "::", "STPQi", ":", "case", "AArch64", "::", "LDNPQi", ":", "case", "AArch64", "::", "STNPQi", ":", "case", "AArch64", "::", "LDPWi", ":", "case", "AArch64", "::", "LDPSi", ":", "case", "AArch64", "::", "STPWi", ":", "case", "AArch64", "::", "STPSi", ":", "case", "AArch64", "::", "LDNPWi", ":", "case", "AArch64", "::", "LDNPSi", ":", "case", "AArch64", "::", "STNPWi", ":", "case", "AArch64", "::", "STNPSi", ":", "return", "3", ";", "}", "}", "</s>" ]
[ "Returns", "the", "index", "for", "the", "immediate", "for", "a", "given", "instruction", "." ]
[ "AArch64", "AArch64", "2", "AArch64::LDPXi", "AArch64::LDPDi", "AArch64::STPXi", "AArch64::STPDi", "AArch64::LDNPXi", "AArch64::LDNPDi", "AArch64::STNPXi", "AArch64::STNPDi", "AArch64::LDPQi", "AArch64::STPQi", "AArch64::LDNPQi", "AArch64::STNPQi", "AArch64::LDPWi", "AArch64::LDPSi", "AArch64::STPWi", "AArch64::STPSi", "AArch64::LDNPWi", "AArch64::LDNPSi", "AArch64::STNPWi", "AArch64::STNPSi", "3" ]
AArch64InstrInfo106
getLoadStoreImmIdx
AArch64
CPU
LLVM
4,343
124
1
[]
[ "<s>", "void", "HexagonFrameLowering", "::", "processFunctionBeforeFrameFinalized", "(", "MachineFunction", "&", "MF", ",", "RegScavenger", "*", "RS", ")", "const", "{", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "bool", "HasAlloca", "=", "MFI", "->", "hasVarSizedObjects", "(", ")", ";", "bool", "NeedsAlign", "=", "(", "MFI", "->", "getMaxAlignment", "(", ")", ">", "getStackAlignment", "(", ")", ")", ";", "if", "(", "!", "HasAlloca", "||", "!", "NeedsAlign", ")", "return", ";", "unsigned", "LFS", "=", "MFI", "->", "getLocalFrameSize", "(", ")", ";", "int", "Offset", "=", "-", "LFS", ";", "for", "(", "int", "i", "=", "0", ",", "e", "=", "MFI", "->", "getObjectIndexEnd", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "if", "(", "!", "MFI", "->", "isSpillSlotObjectIndex", "(", "i", ")", "||", "MFI", "->", "isDeadObjectIndex", "(", "i", ")", ")", "continue", ";", "int", "S", "=", "MFI", "->", "getObjectSize", "(", "i", ")", ";", "LFS", "+=", "S", ";", "Offset", "-=", "S", ";", "MFI", "->", "mapLocalFrameObject", "(", "i", ",", "Offset", ")", ";", "}", "MFI", "->", "setLocalFrameSize", "(", "LFS", ")", ";", "unsigned", "A", "=", "MFI", "->", "getLocalFrameMaxAlign", "(", ")", ";", "assert", "(", "A", "<=", "8", "&&", "\"Unexpected local frame alignment\"", ")", ";", "if", "(", "A", "==", "0", ")", "MFI", "->", "setLocalFrameMaxAlign", "(", "8", ")", ";", "MFI", "->", "setUseLocalStackAllocationBlock", "(", "true", ")", ";", "}", "</s>" ]
[ "processFunctionBeforeFrameFinalized", "-", "This", "method", "is", "called", "immediately", "before", "the", "specified", "function", "'s", "frame", "layout", "(", "MF.getFrameInfo", "(", ")", ")", "is", "finalized", "." ]
[ "Hexagon", "Hexagon", "0", "8", "\"Unexpected local frame alignment\"", "0", "8" ]
HexagonFrameLowering (2)3
processFunctionBeforeFrameFinalized
Hexagon
DSP
LLVM
4,344
190
1
[]
[ "<s>", "static", "parse_codes", "parse_ovld", "(", "void", ")", "{", "parse_codes", "result", "=", "PC_OK", ";", "diag", "=", "&", "ovld_diag", ";", "if", "(", "!", "advance_line", "(", "ovld_file", ")", ")", "return", "PC_OK", ";", "while", "(", "result", "==", "PC_OK", ")", "result", "=", "parse_ovld_stanza", "(", ")", ";", "if", "(", "result", "==", "PC_EOFILE", ")", "return", "PC_OK", ";", "return", "result", ";", "}", "</s>" ]
[ "Parse", "the", "overload", "file", "." ]
[ "rs6000" ]
rs6000-gen-builtins
parse_ovld
rs6000
CPU
GCC
4,345
53
1
[]
[ "<s>", "void", "nvptx_output_ascii", "(", "FILE", "*", ",", "const", "char", "*", "str", ",", "unsigned", "HOST_WIDE_INT", "size", ")", "{", "for", "(", "unsigned", "HOST_WIDE_INT", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++", ")", "nvptx_assemble_value", "(", "str", "[", "i", "]", ",", "1", ")", ";", "}", "</s>" ]
[ "Output", "a", "string", "STR", "with", "length", "SIZE", ".", "As", "in", "nvptx_output_skip", "we", "ignore", "the", "FILE", "arg", "." ]
[ "nvptx", "0", "1" ]
nvptx
nvptx_output_ascii
nvptx
GPU
GCC
4,346
42
1
[]
[ "<s>", "void", "SparcInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "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", "(", ")", ";", "const", "MachineFrameInfo", "&", "MFI", "=", "*", "MF", "->", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", "->", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "FI", ")", ",", "MachineMemOperand", "::", "MOStore", ",", "MFI", ".", "getObjectSize", "(", "FI", ")", ",", "MFI", ".", "getObjectAlignment", "(", "FI", ")", ")", ";", "if", "(", "RC", "==", "&", "SP", "::", "I64RegsRegClass", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "SP", "::", "STXri", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "else", "if", "(", "RC", "==", "&", "SP", "::", "IntRegsRegClass", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "SP", "::", "STri", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "else", "if", "(", "RC", "==", "&", "SP", "::", "FPRegsRegClass", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "SP", "::", "STFri", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "else", "if", "(", "SP", "::", "DFPRegsRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "SP", "::", "STDFri", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "else", "if", "(", "SP", "::", "QFPRegsRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "SP", "::", "STQFri", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "else", "llvm_unreachable", "(", "\"Can't store this register to stack slot\"", ")", ";", "}", "</s>" ]
[ "Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "." ]
[ "Sparc", "Sparc", "SP::I64RegsRegClass", "SP::STXri", "0", "SP::IntRegsRegClass", "SP::STri", "0", "SP::FPRegsRegClass", "SP::STFri", "0", "SP::DFPRegsRegClass", "SP::STDFri", "0", "SP::QFPRegsRegClass", "SP::STQFri", "0", "\"Can't store this register to stack slot\"" ]
SparcInstrInfo
storeRegToStackSlot
Sparc
CPU
LLVM
4,347
377
1
[]
[ "<s>", "unsigned", "PPCTTIImpl", "::", "getNumberOfRegisters", "(", "bool", "Vector", ")", "{", "if", "(", "Vector", "&&", "!", "ST", "->", "hasAltivec", "(", ")", ")", "return", "0", ";", "return", "ST", "->", "hasVSX", "(", ")", "?", "64", ":", "32", ";", "}", "</s>" ]
[ "�", "?", "Vector", "TTI", "begin", "�", "?" ]
[ "PowerPC", "PPC", "0", "64", "32" ]
PPCTargetTransformInfo19
getNumberOfRegisters
PowerPC
CPU
LLVM
4,348
35
1
[]
[ "<s>", "static", "unsigned", "int", "rs6000_function_arg_boundary", "(", "machine_mode", "mode", ",", "const_tree", "type", ")", "{", "machine_mode", "elt_mode", ";", "int", "n_elts", ";", "rs6000_discover_homogeneous_aggregate", "(", "mode", ",", "type", ",", "&", "elt_mode", ",", "&", "n_elts", ")", ";", "if", "(", "DEFAULT_ABI", "==", "ABI_V4", "&&", "(", "GET_MODE_SIZE", "(", "mode", ")", "==", "8", "||", "(", "TARGET_HARD_FLOAT", "&&", "TARGET_FPRS", "&&", "!", "is_complex_IBM_long_double", "(", "mode", ")", "&&", "FLOAT128_2REG_P", "(", "mode", ")", ")", ")", ")", "return", "64", ";", "else", "if", "(", "FLOAT128_VECTOR_P", "(", "mode", ")", ")", "return", "128", ";", "else", "if", "(", "SPE_VECTOR_MODE", "(", "mode", ")", "||", "(", "type", "&&", "TREE_CODE", "(", "type", ")", "==", "VECTOR_TYPE", "&&", "int_size_in_bytes", "(", "type", ")", ">=", "8", "&&", "int_size_in_bytes", "(", "type", ")", "<", "16", ")", ")", "return", "64", ";", "else", "if", "(", "ALTIVEC_OR_VSX_VECTOR_MODE", "(", "elt_mode", ")", "||", "(", "type", "&&", "TREE_CODE", "(", "type", ")", "==", "VECTOR_TYPE", "&&", "int_size_in_bytes", "(", "type", ")", ">=", "16", ")", ")", "return", "128", ";", "if", "(", "(", "(", "DEFAULT_ABI", "==", "ABI_AIX", "&&", "!", "rs6000_compat_align_parm", ")", "||", "DEFAULT_ABI", "==", "ABI_ELFv2", ")", "&&", "type", "&&", "TYPE_ALIGN", "(", "type", ")", ">", "64", ")", "{", "bool", "aggregate_p", "=", "(", "AGGREGATE_TYPE_P", "(", "type", ")", "&&", "!", "SCALAR_FLOAT_MODE_P", "(", "elt_mode", ")", ")", ";", "if", "(", "aggregate_p", "!=", "(", "mode", "==", "BLKmode", ")", ")", "{", "static", "bool", "warned", ";", "if", "(", "!", "warned", "&&", "warn_psabi", ")", "{", "warned", "=", "true", ";", "inform", "(", "input_location", ",", "\"the ABI of passing aggregates with %d-byte alignment\"", "\" has changed in GCC 5\"", ",", "(", "int", ")", "TYPE_ALIGN", "(", "type", ")", "/", "BITS_PER_UNIT", ")", ";", "}", "}", "if", "(", "aggregate_p", ")", "return", "128", ";", "}", "if", "(", "TARGET_MACHO", "&&", "rs6000_darwin64_abi", "&&", "mode", "==", "BLKmode", "&&", "type", "&&", "TYPE_ALIGN", "(", "type", ")", ">", "64", ")", "return", "128", ";", "return", "PARM_BOUNDARY", ";", "}", "</s>" ]
[ "If", "defined", ",", "a", "C", "expression", "that", "gives", "the", "alignment", "boundary", ",", "in", "bits", ",", "of", "an", "argument", "with", "the", "specified", "mode", "and", "type", ".", "If", "it", "is", "not", "defined", ",", "PARM_BOUNDARY", "is", "used", "for", "all", "arguments", ".", "V.4", "wants", "long", "longs", "and", "doubles", "to", "be", "double", "word", "aligned", ".", "Just", "testing", "the", "mode", "size", "is", "a", "boneheaded", "way", "to", "do", "this", "as", "it", "means", "that", "other", "types", "such", "as", "complex", "int", "are", "also", "double", "word", "aligned", ".", "However", ",", "we", "'re", "stuck", "with", "this", "because", "changing", "the", "ABI", "might", "break", "existing", "library", "interfaces", ".", "Quadword", "align", "Altivec/VSX", "vectors", ".", "Quadword", "align", "large", "synthetic", "vector", "types", "." ]
[ "powerpcspe", "8", "64", "128", "8", "16", "64", "16", "128", "64", "\"the ABI of passing aggregates with %d-byte alignment\"", "\" has changed in GCC 5\"", "128", "64", "128" ]
powerpcspe
rs6000_function_arg_boundary
powerpcspe
CPU
GCC
4,349
266
1
[]
[ "<s>", "const", "MCExpr", "*", "X86TargetLowering", "::", "getPICJumpTableRelocBaseExpr", "(", "const", "MachineFunction", "*", "MF", ",", "unsigned", "JTI", ",", "MCContext", "&", "Ctx", ")", "const", "{", "if", "(", "Subtarget", ".", "isPICStyleRIPRel", "(", ")", "||", "Subtarget", ".", "is64Bit", "(", ")", ")", "return", "TargetLowering", "::", "getPICJumpTableRelocBaseExpr", "(", "MF", ",", "JTI", ",", "Ctx", ")", ";", "return", "MCSymbolRefExpr", "::", "create", "(", "MF", "->", "getPICBaseSymbol", "(", ")", ",", "Ctx", ")", ";", "}", "</s>" ]
[ "This", "returns", "the", "relocation", "base", "for", "the", "given", "PIC", "jumptable", ",", "the", "same", "as", "getPICJumpTableRelocBase", ",", "but", "as", "an", "MCExpr", "." ]
[ "X86", "X86" ]
X86ISelLowering107
getPICJumpTableRelocBaseExpr
X86
CPU
LLVM
4,350
62
1
[]
[ "<s>", "void", "BPFTargetMachine", "::", "registerPassBuilderCallbacks", "(", "PassBuilder", "&", "PB", ",", "bool", "DebugPassManager", ")", "{", "PB", ".", "registerPipelineStartEPCallback", "(", "[", "=", "]", "(", "ModulePassManager", "&", "MPM", ",", "PassBuilder", "::", "OptimizationLevel", ")", "{", "FunctionPassManager", "FPM", "(", "DebugPassManager", ")", ";", "FPM", ".", "addPass", "(", "BPFAbstractMemberAccessPass", "(", "this", ")", ")", ";", "FPM", ".", "addPass", "(", "BPFPreserveDITypePass", "(", ")", ")", ";", "MPM", ".", "addPass", "(", "createModuleToFunctionPassAdaptor", "(", "std", "::", "move", "(", "FPM", ")", ")", ")", ";", "}", ")", ";", "PB", ".", "registerPeepholeEPCallback", "(", "[", "=", "]", "(", "FunctionPassManager", "&", "FPM", ",", "PassBuilder", "::", "OptimizationLevel", "Level", ")", "{", "FPM", ".", "addPass", "(", "SimplifyCFGPass", "(", "SimplifyCFGOptions", "(", ")", ".", "hoistCommonInsts", "(", "true", ")", ")", ")", ";", "}", ")", ";", "PB", ".", "registerPipelineEarlySimplificationEPCallback", "(", "[", "=", "]", "(", "ModulePassManager", "&", "MPM", ",", "PassBuilder", "::", "OptimizationLevel", ")", "{", "MPM", ".", "addPass", "(", "BPFAdjustOptPass", "(", ")", ")", ";", "}", ")", ";", "}", "</s>" ]
[ "Invoke", "the", "PassBuilder", "callback", "registration", "." ]
[ "BPF", "BPF", "BPF", "BPF", "BPF" ]
BPFTargetMachine13
registerPassBuilderCallbacks
BPF
Virtual ISA
LLVM
4,351
141
1
[]
[ "<s>", "void", "MipsAsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "MipsTargetStreamer", "&", "TS", "=", "getTargetStreamer", "(", ")", ";", "TS", ".", "forbidModuleDirective", "(", ")", ";", "if", "(", "MI", "->", "isDebugValue", "(", ")", ")", "{", "SmallString", "<", "128", ">", "Str", ";", "raw_svector_ostream", "OS", "(", "Str", ")", ";", "PrintDebugValueComment", "(", "MI", ",", "OS", ")", ";", "return", ";", "}", "if", "(", "InConstantPool", "&&", "MI", "->", "getOpcode", "(", ")", "!=", "Mips", "::", "CONSTPOOL_ENTRY", ")", "{", "OutStreamer", "->", "EmitDataRegion", "(", "MCDR_DataRegionEnd", ")", ";", "InConstantPool", "=", "false", ";", "}", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "Mips", "::", "CONSTPOOL_ENTRY", ")", "{", "unsigned", "LabelId", "=", "(", "unsigned", ")", "MI", "->", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "unsigned", "CPIdx", "=", "(", "unsigned", ")", "MI", "->", "getOperand", "(", "1", ")", ".", "getIndex", "(", ")", ";", "if", "(", "!", "InConstantPool", ")", "{", "OutStreamer", "->", "EmitDataRegion", "(", "MCDR_DataRegion", ")", ";", "InConstantPool", "=", "true", ";", "}", "OutStreamer", "->", "EmitLabel", "(", "GetCPISymbol", "(", "LabelId", ")", ")", ";", "const", "MachineConstantPoolEntry", "&", "MCPE", "=", "MCP", "->", "getConstants", "(", ")", "[", "CPIdx", "]", ";", "if", "(", "MCPE", ".", "isMachineConstantPoolEntry", "(", ")", ")", "EmitMachineConstantPoolValue", "(", "MCPE", ".", "Val", ".", "MachineCPVal", ")", ";", "else", "EmitGlobalConstant", "(", "MF", "->", "getDataLayout", "(", ")", ",", "MCPE", ".", "Val", ".", "ConstVal", ")", ";", "return", ";", "}", "MachineBasicBlock", "::", "const_instr_iterator", "I", "=", "MI", ";", "MachineBasicBlock", "::", "const_instr_iterator", "E", "=", "MI", "->", "getParent", "(", ")", "->", "instr_end", "(", ")", ";", "do", "{", "if", "(", "emitPseudoExpansionLowering", "(", "*", "OutStreamer", ",", "&", "*", "I", ")", ")", "continue", ";", "if", "(", "I", "->", "getOpcode", "(", ")", "==", "Mips", "::", "PseudoReturn", "||", "I", "->", "getOpcode", "(", ")", "==", "Mips", "::", "PseudoReturn64", "||", "I", "->", "getOpcode", "(", ")", "==", "Mips", "::", "PseudoIndirectBranch", "||", "I", "->", "getOpcode", "(", ")", "==", "Mips", "::", "PseudoIndirectBranch64", ")", "{", "emitPseudoIndirectBranch", "(", "*", "OutStreamer", ",", "&", "*", "I", ")", ";", "continue", ";", "}", "if", "(", "I", "->", "isPseudo", "(", ")", "&&", "!", "Subtarget", "->", "inMips16Mode", "(", ")", "&&", "!", "isLongBranchPseudo", "(", "I", "->", "getOpcode", "(", ")", ")", ")", "llvm_unreachable", "(", "\"Pseudo opcode found in EmitInstruction()\"", ")", ";", "MCInst", "TmpInst0", ";", "MCInstLowering", ".", "Lower", "(", "I", ",", "TmpInst0", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "TmpInst0", ")", ";", "}", "while", "(", "(", "++", "I", "!=", "E", ")", "&&", "I", "->", "isInsideBundle", "(", ")", ")", ";", "}", "</s>" ]
[ "EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "." ]
[ "Mips", "Mips", "Mips", "128", "Mips::CONSTPOOL_ENTRY", "Mips::CONSTPOOL_ENTRY", "0", "1", "Mips::PseudoReturn", "Mips::PseudoReturn64", "Mips::PseudoIndirectBranch", "Mips::PseudoIndirectBranch64", "Mips", "\"Pseudo opcode found in EmitInstruction()\"" ]
MipsAsmPrinter73
EmitInstruction
Mips
CPU
LLVM
4,352
370
1
[]
[ "<s>", "int", "v850_output_addr_const_extra", "(", "FILE", "*", "file", ",", "rtx", "x", ")", "{", "if", "(", "GET_CODE", "(", "x", ")", "!=", "TRUNCATE", ")", "return", "0", ";", "x", "=", "XEXP", "(", "x", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "MINUS", "&&", "GET_CODE", "(", "XEXP", "(", "x", ",", "0", ")", ")", "==", "LABEL_REF", "&&", "GET_CODE", "(", "XEXP", "(", "XEXP", "(", "x", ",", "0", ")", ",", "0", ")", ")", "==", "CODE_LABEL", "&&", "INSN_DELETED_P", "(", "XEXP", "(", "XEXP", "(", "x", ",", "0", ")", ",", "0", ")", ")", ")", "return", "1", ";", "output_addr_const", "(", "file", ",", "x", ")", ";", "return", "1", ";", "}", "</s>" ]
[ "When", "assemble_integer", "is", "used", "to", "emit", "the", "offsets", "for", "a", "switch", "table", "it", "can", "encounter", "(", "TRUNCATE", ":", "HI", "(", "MINUS", ":", "SI", "(", "LABEL_REF", ":", "SI", ")", "(", "LABEL_REF", ":", "SI", ")", ")", ")", ".", "output_addr_const", "will", "normally", "barf", "at", "this", ",", "but", "it", "is", "OK", "to", "omit", "the", "truncate", "and", "just", "emit", "the", "difference", "of", "the", "two", "labels", ".", "The", ".hword", "directive", "will", "automatically", "handle", "the", "truncation", "for", "us", ".", "Returns", "1", "if", "rtx", "was", "handled", ",", "0", "otherwise", "." ]
[ "v850", "0", "0", "0", "0", "0", "0", "0", "1", "1" ]
v8503
v850_output_addr_const_extra
v850
MPU
GCC
4,353
99
1
[]
[ "<s>", "void", "WebAssemblyTargetAsmStreamer", "::", "emitImportModule", "(", "const", "MCSymbolWasm", "*", "Sym", ",", "StringRef", "ImportModule", ")", "{", "OS", "<<", "\"\\t.import_module\\t\"", "<<", "Sym", "->", "getName", "(", ")", "<<", "\", \"", "<<", "ImportModule", "<<", "'\\n'", ";", "}", "</s>" ]
[ ".import_module" ]
[ "WebAssembly", "WebAssembly", "\"\\t.import_module\\t\"", "\", \"" ]
WebAssemblyTargetStreamer12
emitImportModule
WebAssembly
Virtual ISA
LLVM
4,354
31
1
[]
[ "<s>", "bool", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "override", "{", "return", "false", ";", "}", "</s>" ]
[ "Check", "whether", "the", "given", "instruction", "may", "need", "relaxation", "." ]
[ "ECLair" ]
ECLairAsmBackend
mayNeedRelaxation
ECLair
MPU
LLVM
4,355
20
1
[]
[ "<s>", "static", "bool", "ix86_lea_outperforms", "(", "rtx_insn", "*", "insn", ",", "unsigned", "int", "regno0", ",", "unsigned", "int", "regno1", ",", "unsigned", "int", "regno2", ",", "int", "split_cost", ",", "bool", "has_scale", ")", "{", "int", "dist_define", ",", "dist_use", ";", "if", "(", "TARGET_SILVERMONT", "||", "TARGET_INTEL", ")", "{", "if", "(", "has_scale", ")", "return", "true", ";", "if", "(", "split_cost", "<", "1", ")", "return", "false", ";", "if", "(", "regno0", "==", "regno1", "||", "regno0", "==", "regno2", ")", "return", "false", ";", "return", "true", ";", "}", "dist_define", "=", "distance_non_agu_define", "(", "regno1", ",", "regno2", ",", "insn", ")", ";", "dist_use", "=", "distance_agu_use", "(", "regno0", ",", "insn", ")", ";", "if", "(", "dist_define", "<", "0", "||", "dist_define", ">=", "LEA_MAX_STALL", ")", "{", "if", "(", "dist_use", "<", "0", "&&", "split_cost", "==", "0", ")", "return", "TARGET_64BIT", "||", "IX86_LEA_PRIORITY", ";", "else", "return", "true", ";", "}", "dist_define", "+=", "split_cost", "+", "IX86_LEA_PRIORITY", ";", "if", "(", "dist_use", "<", "0", ")", "return", "dist_define", ">", "LEA_MAX_STALL", ";", "return", "dist_define", ">=", "dist_use", ";", "}", "</s>" ]
[ "Return", "true", "if", "usage", "of", "lea", "INSN", "has", "performance", "advantage", "over", "a", "sequence", "of", "instructions", ".", "Instructions", "sequence", "has", "SPLIT_COST", "cycles", "higher", "latency", "than", "lea", "latency", "." ]
[ "i386", "1", "0", "0", "0", "0" ]
i3864
ix86_lea_outperforms
i386
CPU
GCC
4,356
146
1
[]
[ "<s>", "unsigned", "bfin_local_alignment", "(", "tree", "type", ",", "unsigned", "align", ")", "{", "if", "(", "TYPE_SIZE", "(", "type", ")", "&&", "TREE_CODE", "(", "TYPE_SIZE", "(", "type", ")", ")", "==", "INTEGER_CST", "&&", "wi", "::", "gtu_p", "(", "TYPE_SIZE", "(", "type", ")", ",", "8", ")", "&&", "align", "<", "32", ")", "return", "32", ";", "return", "align", ";", "}", "</s>" ]
[ "Compute", "the", "alignment", "for", "a", "local", "variable", ".", "TYPE", "is", "the", "data", "type", ",", "and", "ALIGN", "is", "the", "alignment", "that", "the", "object", "would", "ordinarily", "have", ".", "The", "value", "of", "this", "macro", "is", "used", "instead", "of", "that", "alignment", "to", "align", "the", "object", "." ]
[ "bfin", "8", "32", "32" ]
bfin3
bfin_local_alignment
bfin
DSP
GCC
4,357
50
1
[]
[ "<s>", "const", "TargetSubtargetInfo", "*", "GCNTargetMachine", "::", "getSubtargetImpl", "(", "const", "Function", "&", "F", ")", "const", "{", "StringRef", "GPU", "=", "getGPUName", "(", "F", ")", ";", "StringRef", "FS", "=", "getFeatureString", "(", "F", ")", ";", "SmallString", "<", "128", ">", "SubtargetKey", "(", "GPU", ")", ";", "SubtargetKey", ".", "append", "(", "FS", ")", ";", "auto", "&", "I", "=", "SubtargetMap", "[", "SubtargetKey", "]", ";", "if", "(", "!", "I", ")", "{", "resetTargetOptions", "(", "F", ")", ";", "I", "=", "std", "::", "make_unique", "<", "GCNSubtarget", ">", "(", "TargetTriple", ",", "GPU", ",", "FS", ",", "*", "this", ")", ";", "}", "I", "->", "setScalarizeGlobalBehavior", "(", "ScalarizeGlobal", ")", ";", "return", "I", ".", "get", "(", ")", ";", "}", "</s>" ]
[ "Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "." ]
[ "AMDGPU", "128" ]
AMDGPUTargetMachine (2)1
getSubtargetImpl
AMDGPU
GPU
LLVM
4,358
101
1
[]
[ "<s>", "Value", "*", "AArch64TargetLowering", "::", "emitStoreConditional", "(", "IRBuilderBase", "&", "Builder", ",", "Value", "*", "Val", ",", "Value", "*", "Addr", ",", "AtomicOrdering", "Ord", ")", "const", "{", "Module", "*", "M", "=", "Builder", ".", "GetInsertBlock", "(", ")", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "bool", "IsRelease", "=", "isReleaseOrStronger", "(", "Ord", ")", ";", "if", "(", "Val", "->", "getType", "(", ")", "->", "getPrimitiveSizeInBits", "(", ")", "==", "128", ")", "{", "Intrinsic", "::", "ID", "Int", "=", "IsRelease", "?", "Intrinsic", "::", "aarch64_stlxp", ":", "Intrinsic", "::", "aarch64_stxp", ";", "Function", "*", "Stxr", "=", "Intrinsic", "::", "getDeclaration", "(", "M", ",", "Int", ")", ";", "Type", "*", "Int64Ty", "=", "Type", "::", "getInt64Ty", "(", "M", "->", "getContext", "(", ")", ")", ";", "Value", "*", "Lo", "=", "Builder", ".", "CreateTrunc", "(", "Val", ",", "Int64Ty", ",", "\"lo\"", ")", ";", "Value", "*", "Hi", "=", "Builder", ".", "CreateTrunc", "(", "Builder", ".", "CreateLShr", "(", "Val", ",", "64", ")", ",", "Int64Ty", ",", "\"hi\"", ")", ";", "Addr", "=", "Builder", ".", "CreateBitCast", "(", "Addr", ",", "Type", "::", "getInt8PtrTy", "(", "M", "->", "getContext", "(", ")", ")", ")", ";", "return", "Builder", ".", "CreateCall", "(", "Stxr", ",", "{", "Lo", ",", "Hi", ",", "Addr", "}", ")", ";", "}", "Intrinsic", "::", "ID", "Int", "=", "IsRelease", "?", "Intrinsic", "::", "aarch64_stlxr", ":", "Intrinsic", "::", "aarch64_stxr", ";", "Type", "*", "Tys", "[", "]", "=", "{", "Addr", "->", "getType", "(", ")", "}", ";", "Function", "*", "Stxr", "=", "Intrinsic", "::", "getDeclaration", "(", "M", ",", "Int", ",", "Tys", ")", ";", "const", "DataLayout", "&", "DL", "=", "M", "->", "getDataLayout", "(", ")", ";", "IntegerType", "*", "IntValTy", "=", "Builder", ".", "getIntNTy", "(", "DL", ".", "getTypeSizeInBits", "(", "Val", "->", "getType", "(", ")", ")", ")", ";", "Val", "=", "Builder", ".", "CreateBitCast", "(", "Val", ",", "IntValTy", ")", ";", "return", "Builder", ".", "CreateCall", "(", "Stxr", ",", "{", "Builder", ".", "CreateZExtOrBitCast", "(", "Val", ",", "Stxr", "->", "getFunctionType", "(", ")", "->", "getParamType", "(", "0", ")", ")", ",", "Addr", "}", ")", ";", "}", "</s>" ]
[ "Perform", "a", "store-conditional", "operation", "to", "Addr", "." ]
[ "AArch64", "AArch64", "128", "Intrinsic::ID", "Intrinsic::aarch64_stlxp", "Intrinsic::aarch64_stxp", "Intrinsic::getDeclaration", "\"lo\"", "64", "\"hi\"", "Intrinsic::ID", "Intrinsic::aarch64_stlxr", "Intrinsic::aarch64_stxr", "Intrinsic::getDeclaration", "0" ]
AArch64ISelLowering (2)2
emitStoreConditional
AArch64
CPU
LLVM
4,359
298
1
[]
[ "<s>", "void", "func_fma_steering", "::", "execute_fma_steering", "(", ")", "{", "df_set_flags", "(", "DF_LR_RUN_DCE", ")", ";", "df_note_add_problem", "(", ")", ";", "df_analyze", "(", ")", ";", "df_set_flags", "(", "DF_DEFER_INSN_RESCAN", ")", ";", "regrename_init", "(", "true", ")", ";", "regrename_analyze", "(", "NULL", ")", ";", "this", "->", "analyze", "(", ")", ";", "this", "->", "rename_fma_trees", "(", ")", ";", "regrename_finish", "(", ")", ";", "}", "</s>" ]
[ "Execute", "FMA", "steering", "pass", "." ]
[ "aarch64" ]
cortex-a57-fma-steering
execute_fma_steering
aarch64
CPU
GCC
4,360
52
1
[]
[ "<s>", "const", "char", "*", "PIC16TargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "NULL", ";", "case", "PIC16ISD", "::", "Lo", ":", "return", "\"PIC16ISD::Lo\"", ";", "case", "PIC16ISD", "::", "Hi", ":", "return", "\"PIC16ISD::Hi\"", ";", "case", "PIC16ISD", "::", "MTLO", ":", "return", "\"PIC16ISD::MTLO\"", ";", "case", "PIC16ISD", "::", "MTHI", ":", "return", "\"PIC16ISD::MTHI\"", ";", "case", "PIC16ISD", "::", "MTPCLATH", ":", "return", "\"PIC16ISD::MTPCLATH\"", ";", "case", "PIC16ISD", "::", "PIC16Connect", ":", "return", "\"PIC16ISD::PIC16Connect\"", ";", "case", "PIC16ISD", "::", "Banksel", ":", "return", "\"PIC16ISD::Banksel\"", ";", "case", "PIC16ISD", "::", "PIC16Load", ":", "return", "\"PIC16ISD::PIC16Load\"", ";", "case", "PIC16ISD", "::", "PIC16LdArg", ":", "return", "\"PIC16ISD::PIC16LdArg\"", ";", "case", "PIC16ISD", "::", "PIC16LdWF", ":", "return", "\"PIC16ISD::PIC16LdWF\"", ";", "case", "PIC16ISD", "::", "PIC16Store", ":", "return", "\"PIC16ISD::PIC16Store\"", ";", "case", "PIC16ISD", "::", "PIC16StWF", ":", "return", "\"PIC16ISD::PIC16StWF\"", ";", "case", "PIC16ISD", "::", "BCF", ":", "return", "\"PIC16ISD::BCF\"", ";", "case", "PIC16ISD", "::", "LSLF", ":", "return", "\"PIC16ISD::LSLF\"", ";", "case", "PIC16ISD", "::", "LRLF", ":", "return", "\"PIC16ISD::LRLF\"", ";", "case", "PIC16ISD", "::", "RLF", ":", "return", "\"PIC16ISD::RLF\"", ";", "case", "PIC16ISD", "::", "RRF", ":", "return", "\"PIC16ISD::RRF\"", ";", "case", "PIC16ISD", "::", "CALL", ":", "return", "\"PIC16ISD::CALL\"", ";", "case", "PIC16ISD", "::", "CALLW", ":", "return", "\"PIC16ISD::CALLW\"", ";", "case", "PIC16ISD", "::", "SUBCC", ":", "return", "\"PIC16ISD::SUBCC\"", ";", "case", "PIC16ISD", "::", "SELECT_ICC", ":", "return", "\"PIC16ISD::SELECT_ICC\"", ";", "case", "PIC16ISD", "::", "BRCOND", ":", "return", "\"PIC16ISD::BRCOND\"", ";", "case", "PIC16ISD", "::", "Dummy", ":", "return", "\"PIC16ISD::Dummy\"", ";", "}", "}", "</s>" ]
[ "getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific" ]
[ "PIC16", "PIC16", "PIC16ISD::Lo", "\"PIC16ISD::Lo\"", "PIC16ISD::Hi", "\"PIC16ISD::Hi\"", "PIC16ISD::MTLO", "\"PIC16ISD::MTLO\"", "PIC16ISD::MTHI", "\"PIC16ISD::MTHI\"", "PIC16ISD::MTPCLATH", "\"PIC16ISD::MTPCLATH\"", "PIC16ISD::PIC16Connect", "\"PIC16ISD::PIC16Connect\"", "PIC16ISD::Banksel", "\"PIC16ISD::Banksel\"", "PIC16ISD::PIC16Load", "\"PIC16ISD::PIC16Load\"", "PIC16ISD::PIC16LdArg", "\"PIC16ISD::PIC16LdArg\"", "PIC16ISD::PIC16LdWF", "\"PIC16ISD::PIC16LdWF\"", "PIC16ISD::PIC16Store", "\"PIC16ISD::PIC16Store\"", "PIC16ISD::PIC16StWF", "\"PIC16ISD::PIC16StWF\"", "PIC16ISD::BCF", "\"PIC16ISD::BCF\"", "PIC16ISD::LSLF", "\"PIC16ISD::LSLF\"", "PIC16ISD::LRLF", "\"PIC16ISD::LRLF\"", "PIC16ISD::RLF", "\"PIC16ISD::RLF\"", "PIC16ISD::RRF", "\"PIC16ISD::RRF\"", "PIC16ISD::CALL", "\"PIC16ISD::CALL\"", "PIC16ISD::CALLW", "\"PIC16ISD::CALLW\"", "PIC16ISD::SUBCC", "\"PIC16ISD::SUBCC\"", "PIC16ISD::SELECT_ICC", "\"PIC16ISD::SELECT_ICC\"", "PIC16ISD::BRCOND", "\"PIC16ISD::BRCOND\"", "PIC16ISD::Dummy", "\"PIC16ISD::Dummy\"" ]
PIC16ISelLowering2
getTargetNodeName
PIC16
MPU
LLVM
4,361
208
1
[]
[ "<s>", "rtx", "sh_extending_set_of_reg", "::", "use_as_extended_reg", "(", "rtx_insn", "*", "use_at_insn", ")", "const", "{", "gcc_assert", "(", "insn", "!=", "NULL", "&&", "set_src", "!=", "NULL", "&&", "set_rtx", "!=", "NULL", ")", ";", "gcc_assert", "(", "ext_code", "==", "SIGN_EXTEND", "||", "ext_code", "==", "ZERO_EXTEND", ")", ";", "gcc_assert", "(", "from_mode", "==", "QImode", "||", "from_mode", "==", "HImode", ")", ";", "if", "(", "MEM_P", "(", "set_src", ")", "&&", "ext_code", "==", "SIGN_EXTEND", ")", "{", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"use_as_extended_reg: converting non-extending mem load in \"", "\"insn %d into sign-extending load\\n\"", ",", "INSN_UID", "(", "insn", ")", ")", ";", "rtx", "r", "=", "gen_reg_rtx", "(", "SImode", ")", ";", "rtx_insn", "*", "i0", ";", "if", "(", "from_mode", "==", "QImode", ")", "i0", "=", "sh_check_add_incdec_notes", "(", "emit_insn_after", "(", "gen_extendqisi2", "(", "r", ",", "set_src", ")", ",", "insn", ")", ")", ";", "else", "if", "(", "from_mode", "==", "HImode", ")", "i0", "=", "sh_check_add_incdec_notes", "(", "emit_insn_after", "(", "gen_extendhisi2", "(", "r", ",", "set_src", ")", ",", "insn", ")", ")", ";", "else", "gcc_unreachable", "(", ")", ";", "emit_insn_after", "(", "gen_move_insn", "(", "XEXP", "(", "set_rtx", ",", "0", ")", ",", "gen_lowpart", "(", "GET_MODE", "(", "set_src", ")", ",", "r", ")", ")", ",", "i0", ")", ";", "set_insn_deleted", "(", "insn", ")", ";", "return", "r", ";", "}", "else", "{", "rtx", "extension_dst", "=", "XEXP", "(", "set_rtx", ",", "0", ")", ";", "if", "(", "GET_MODE", "(", "extension_dst", ")", "!=", "SImode", ")", "extension_dst", "=", "simplify_gen_subreg", "(", "SImode", ",", "extension_dst", ",", "GET_MODE", "(", "extension_dst", ")", ",", "0", ")", ";", "if", "(", "modified_between_p", "(", "extension_dst", ",", "insn", ",", "use_at_insn", ")", ")", "{", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"use_as_extended_reg: dest reg %d of extending insn %d is \"", "\"modified, inserting a reg-reg copy\\n\"", ",", "REGNO", "(", "extension_dst", ")", ",", "INSN_UID", "(", "insn", ")", ")", ";", "rtx", "r", "=", "gen_reg_rtx", "(", "SImode", ")", ";", "emit_insn_after", "(", "gen_move_insn", "(", "r", ",", "extension_dst", ")", ",", "insn", ")", ";", "return", "r", ";", "}", "else", "{", "sh_remove_reg_dead_or_unused_notes", "(", "insn", ",", "REGNO", "(", "extension_dst", ")", ")", ";", "return", "extension_dst", ";", "}", "}", "}", "</s>" ]
[ "Given", "a", "reg", "that", "is", "known", "to", "be", "sign", "or", "zero", "extended", "at", "some", "insn", ",", "take", "the", "appropriate", "measures", "so", "that", "the", "extended", "value", "can", "be", "used", "as", "a", "reg", "at", "the", "specified", "insn", "and", "return", "the", "resulting", "reg", "rtx", "." ]
[ "sh", "\"use_as_extended_reg: converting non-extending mem load in \"", "\"insn %d into sign-extending load\\n\"", "0", "0", "0", "\"use_as_extended_reg: dest reg %d of extending insn %d is \"", "\"modified, inserting a reg-reg copy\\n\"" ]
sh
use_as_extended_reg
sh
CPU
GCC
4,362
288
1
[]
[ "<s>", "static", "bool", "arm_default_short_enums", "(", "void", ")", "{", "return", "TARGET_AAPCS_BASED", "&&", "arm_abi", "!=", "ARM_ABI_AAPCS_LINUX", ";", "}", "</s>" ]
[ "AAPCS", "based", "ABIs", "use", "short", "enums", "by", "default", "." ]
[ "arm" ]
arm3
arm_default_short_enums
arm
CPU
GCC
4,363
15
1
[]
[ "<s>", "static", "bool", "arm_block_set_unaligned_vect", "(", "rtx", "dstbase", ",", "unsigned", "HOST_WIDE_INT", "length", ",", "unsigned", "HOST_WIDE_INT", "value", ",", "unsigned", "HOST_WIDE_INT", "align", ")", "{", "unsigned", "int", "i", ",", "nelt_v16", ",", "nelt_v8", ",", "nelt_mode", ";", "rtx", "dst", ",", "mem", ";", "rtx", "val_vec", ",", "reg", ";", "rtx", "(", "*", "gen_func", ")", "(", "rtx", ",", "rtx", ")", ";", "machine_mode", "mode", ";", "unsigned", "HOST_WIDE_INT", "v", "=", "value", ";", "unsigned", "int", "offset", "=", "0", ";", "gcc_assert", "(", "(", "align", "&", "0x3", ")", "!=", "0", ")", ";", "nelt_v8", "=", "GET_MODE_NUNITS", "(", "V8QImode", ")", ";", "nelt_v16", "=", "GET_MODE_NUNITS", "(", "V16QImode", ")", ";", "if", "(", "length", ">=", "nelt_v16", ")", "{", "mode", "=", "V16QImode", ";", "gen_func", "=", "gen_movmisalignv16qi", ";", "}", "else", "{", "mode", "=", "V8QImode", ";", "gen_func", "=", "gen_movmisalignv8qi", ";", "}", "nelt_mode", "=", "GET_MODE_NUNITS", "(", "mode", ")", ";", "gcc_assert", "(", "length", ">=", "nelt_mode", ")", ";", "if", "(", "!", "arm_block_set_vect_profit_p", "(", "length", ",", "align", ",", "mode", ")", ")", "return", "false", ";", "dst", "=", "copy_addr_to_reg", "(", "XEXP", "(", "dstbase", ",", "0", ")", ")", ";", "mem", "=", "adjust_automodify_address", "(", "dstbase", ",", "mode", ",", "dst", ",", "offset", ")", ";", "v", "=", "sext_hwi", "(", "v", ",", "BITS_PER_WORD", ")", ";", "reg", "=", "gen_reg_rtx", "(", "mode", ")", ";", "val_vec", "=", "gen_const_vec_duplicate", "(", "mode", ",", "GEN_INT", "(", "v", ")", ")", ";", "emit_move_insn", "(", "reg", ",", "val_vec", ")", ";", "for", "(", "i", "=", "0", ";", "(", "i", "+", "nelt_mode", "<=", "length", ")", ";", "i", "+=", "nelt_mode", ")", "{", "emit_insn", "(", "(", "*", "gen_func", ")", "(", "mem", ",", "reg", ")", ")", ";", "if", "(", "i", "+", "2", "*", "nelt_mode", "<=", "length", ")", "{", "emit_insn", "(", "gen_add2_insn", "(", "dst", ",", "GEN_INT", "(", "nelt_mode", ")", ")", ")", ";", "offset", "+=", "nelt_mode", ";", "mem", "=", "adjust_automodify_address", "(", "dstbase", ",", "mode", ",", "dst", ",", "offset", ")", ";", "}", "}", "gcc_assert", "(", "(", "i", "+", "nelt_v8", ")", ">", "length", "||", "mode", "==", "V16QImode", ")", ";", "if", "(", "i", "+", "nelt_v8", "<", "length", ")", "{", "emit_insn", "(", "gen_add2_insn", "(", "dst", ",", "GEN_INT", "(", "length", "-", "i", ")", ")", ")", ";", "offset", "+=", "length", "-", "i", ";", "mem", "=", "adjust_automodify_address", "(", "dstbase", ",", "mode", ",", "dst", ",", "offset", ")", ";", "if", "(", "(", "length", "&", "1", ")", "!=", "0", "&&", "align", ">=", "2", ")", "set_mem_align", "(", "mem", ",", "BITS_PER_UNIT", ")", ";", "emit_insn", "(", "gen_movmisalignv16qi", "(", "mem", ",", "reg", ")", ")", ";", "}", "else", "if", "(", "i", "<", "length", "&&", "i", "+", "nelt_v8", ">=", "length", ")", "{", "if", "(", "mode", "==", "V16QImode", ")", "reg", "=", "gen_lowpart", "(", "V8QImode", ",", "reg", ")", ";", "emit_insn", "(", "gen_add2_insn", "(", "dst", ",", "GEN_INT", "(", "(", "length", "-", "i", ")", "+", "(", "nelt_mode", "-", "nelt_v8", ")", ")", ")", ")", ";", "offset", "+=", "(", "length", "-", "i", ")", "+", "(", "nelt_mode", "-", "nelt_v8", ")", ";", "mem", "=", "adjust_automodify_address", "(", "dstbase", ",", "V8QImode", ",", "dst", ",", "offset", ")", ";", "if", "(", "(", "length", "&", "1", ")", "!=", "0", "&&", "align", ">=", "2", ")", "set_mem_align", "(", "mem", ",", "BITS_PER_UNIT", ")", ";", "emit_insn", "(", "gen_movmisalignv8qi", "(", "mem", ",", "reg", ")", ")", ";", "}", "return", "true", ";", "}", "</s>" ]
[ "Set", "a", "block", "of", "memory", "using", "vectorization", "instructions", "for", "the", "unaligned", "case", ".", "We", "fill", "the", "first", "LENGTH", "bytes", "of", "the", "memory", "area", "starting", "from", "DSTBASE", "with", "byte", "constant", "VALUE", ".", "ALIGN", "is", "the", "alignment", "requirement", "of", "memory", ".", "Return", "TRUE", "if", "succeeded", "." ]
[ "arm", "0", "0x3", "0", "0", "0", "2", "1", "0", "2", "1", "0", "2" ]
arm
arm_block_set_unaligned_vect
arm
CPU
GCC
4,364
487
1
[]
[ "<s>", "bool", "XNCMTargetLowering", "::", "getPostIndexedAddressParts", "(", "SDNode", "*", "N", ",", "SDNode", "*", "Op", ",", "SDValue", "&", "Base", ",", "SDValue", "&", "Offset", ",", "ISD", "::", "MemIndexedMode", "&", "AM", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "LoadSDNode", "*", "LD", "=", "cast", "<", "LoadSDNode", ">", "(", "N", ")", ";", "if", "(", "LD", "->", "getExtensionType", "(", ")", "!=", "ISD", "::", "NON_EXTLOAD", ")", "return", "false", ";", "EVT", "VT", "=", "LD", "->", "getMemoryVT", "(", ")", ";", "if", "(", "VT", "!=", "MVT", "::", "i8", "&&", "VT", "!=", "MVT", "::", "i16", ")", "return", "false", ";", "if", "(", "Op", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "ADD", ")", "return", "false", ";", "if", "(", "ConstantSDNode", "*", "RHS", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Op", "->", "getOperand", "(", "1", ")", ")", ")", "{", "uint64_t", "RHSC", "=", "RHS", "->", "getZExtValue", "(", ")", ";", "if", "(", "(", "VT", "==", "MVT", "::", "i16", "&&", "RHSC", "!=", "2", ")", "||", "(", "VT", "==", "MVT", "::", "i8", "&&", "RHSC", "!=", "1", ")", ")", "return", "false", ";", "Base", "=", "Op", "->", "getOperand", "(", "0", ")", ";", "Offset", "=", "DAG", ".", "getConstant", "(", "RHSC", ",", "VT", ")", ";", "AM", "=", "ISD", "::", "POST_INC", ";", "return", "true", ";", "}", "return", "false", ";", "}", "</s>" ]
[ "Returns", "true", "by", "value", ",", "base", "pointer", "and", "offset", "pointer", "and", "addressing", "mode", "by", "reference", "if", "this", "node", "can", "be", "combined", "with", "a", "load", "/", "store", "to", "form", "a", "post-indexed", "load", "/", "store", "." ]
[ "XNCM", "XNCM", "ISD::MemIndexedMode", "ISD::NON_EXTLOAD", "MVT::i8", "MVT::i16", "ISD::ADD", "1", "MVT::i16", "2", "MVT::i8", "1", "0", "ISD::POST_INC" ]
XNCMISelLowering
getPostIndexedAddressParts
XNCM
CPU
LLVM
4,365
193
1
[]
[ "<s>", "void", "MipsELFStreamer", "::", "EmitInstruction", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "{", "MCELFStreamer", "::", "EmitInstruction", "(", "Inst", ",", "STI", ")", ";", "MCContext", "&", "Context", "=", "getContext", "(", ")", ";", "const", "MCRegisterInfo", "*", "MCRegInfo", "=", "Context", ".", "getRegisterInfo", "(", ")", ";", "for", "(", "unsigned", "OpIndex", "=", "0", ";", "OpIndex", "<", "Inst", ".", "getNumOperands", "(", ")", ";", "++", "OpIndex", ")", "{", "const", "MCOperand", "&", "Op", "=", "Inst", ".", "getOperand", "(", "OpIndex", ")", ";", "if", "(", "!", "Op", ".", "isReg", "(", ")", ")", "continue", ";", "unsigned", "Reg", "=", "Op", ".", "getReg", "(", ")", ";", "RegInfoRecord", "->", "SetPhysRegUsed", "(", "Reg", ",", "MCRegInfo", ")", ";", "}", "}", "</s>" ]
[ "EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "." ]
[ "Mips", "Mips", "0" ]
MipsELFStreamer12
EmitInstruction
Mips
CPU
LLVM
4,366
106
1
[]
[ "<s>", "bool", "pcrel_opt_valid_mem_p", "(", "rtx", "reg", ",", "machine_mode", "mode", ",", "rtx", "mem", ")", "{", "enum", "non_prefixed_form", "non_prefixed", "=", "reg_to_non_prefixed", "(", "reg", ",", "mode", ")", ";", "if", "(", "non_prefixed", "==", "NON_PREFIXED_X", ")", "return", "false", ";", "rtx", "addr", "=", "XEXP", "(", "mem", ",", "0", ")", ";", "enum", "insn_form", "iform", "=", "address_to_insn_form", "(", "addr", ",", "mode", ",", "non_prefixed", ")", ";", "return", "(", "iform", "==", "INSN_FORM_BASE_REG", "||", "iform", "==", "INSN_FORM_D", "||", "iform", "==", "INSN_FORM_DS", "||", "iform", "==", "INSN_FORM_DQ", ")", ";", "}", "</s>" ]
[ "Return", "true", "if", "an", "REG", "with", "a", "given", "MODE", "is", "loaded", "from", "or", "stored", "into", "a", "MEM", "location", "uses", "a", "non-prefixed", "D/DS/DQ-form", "address", ".", "This", "is", "used", "to", "validate", "the", "load", "or", "store", "with", "the", "PCREL_OPT", "optimization", "to", "make", "sure", "it", "is", "an", "instruction", "that", "can", "be", "optimized", ".", "We", "need", "to", "specify", "the", "MODE", "separately", "from", "the", "REG", "to", "allow", "for", "loads", "that", "include", "zero/sign/float", "extension", "." ]
[ "rs6000", "0" ]
rs6000
pcrel_opt_valid_mem_p
rs6000
CPU
GCC
4,367
76
1
[]
[ "<s>", "static", "void", "seh_frame_related_expr", "(", "FILE", "*", "f", ",", "struct", "seh_frame_state", "*", "seh", ",", "rtx", "pat", ")", "{", "rtx", "dest", ",", "src", ";", "HOST_WIDE_INT", "addend", ";", "if", "(", "GET_CODE", "(", "pat", ")", "==", "PARALLEL", "||", "GET_CODE", "(", "pat", ")", "==", "SEQUENCE", ")", "{", "int", "i", ",", "n", "=", "XVECLEN", "(", "pat", ",", "0", ")", ",", "pass", ",", "npass", ";", "npass", "=", "(", "GET_CODE", "(", "pat", ")", "==", "PARALLEL", "?", "2", ":", "1", ")", ";", "for", "(", "pass", "=", "0", ";", "pass", "<", "npass", ";", "++", "pass", ")", "for", "(", "i", "=", "0", ";", "i", "<", "n", ";", "++", "i", ")", "{", "rtx", "ele", "=", "XVECEXP", "(", "pat", ",", "0", ",", "i", ")", ";", "if", "(", "GET_CODE", "(", "ele", ")", "!=", "SET", ")", "continue", ";", "dest", "=", "SET_DEST", "(", "ele", ")", ";", "if", "(", "i", "==", "0", "||", "RTX_FRAME_RELATED_P", "(", "ele", ")", ")", "{", "if", "(", "(", "MEM_P", "(", "dest", ")", "^", "pass", ")", "||", "npass", "==", "1", ")", "seh_frame_related_expr", "(", "f", ",", "seh", ",", "ele", ")", ";", "}", "}", "return", ";", "}", "dest", "=", "SET_DEST", "(", "pat", ")", ";", "src", "=", "SET_SRC", "(", "pat", ")", ";", "switch", "(", "GET_CODE", "(", "dest", ")", ")", "{", "case", "REG", ":", "switch", "(", "GET_CODE", "(", "src", ")", ")", "{", "case", "REG", ":", "gcc_assert", "(", "src", "==", "stack_pointer_rtx", ")", ";", "gcc_assert", "(", "dest", "==", "hard_frame_pointer_rtx", ")", ";", "seh_cfa_adjust_cfa", "(", "f", ",", "seh", ",", "pat", ")", ";", "break", ";", "case", "PLUS", ":", "addend", "=", "INTVAL", "(", "XEXP", "(", "src", ",", "1", ")", ")", ";", "src", "=", "XEXP", "(", "src", ",", "0", ")", ";", "if", "(", "dest", "==", "hard_frame_pointer_rtx", ")", "seh_cfa_adjust_cfa", "(", "f", ",", "seh", ",", "pat", ")", ";", "else", "if", "(", "dest", "==", "stack_pointer_rtx", ")", "{", "gcc_assert", "(", "src", "==", "stack_pointer_rtx", ")", ";", "seh_emit_stackalloc", "(", "f", ",", "seh", ",", "addend", ")", ";", "}", "else", "gcc_unreachable", "(", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "break", ";", "case", "MEM", ":", "dest", "=", "XEXP", "(", "dest", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "dest", ")", "==", "PRE_DEC", ")", "{", "gcc_checking_assert", "(", "GET_MODE", "(", "src", ")", "==", "Pmode", ")", ";", "gcc_checking_assert", "(", "REG_P", "(", "src", ")", ")", ";", "seh_emit_push", "(", "f", ",", "seh", ",", "src", ")", ";", "}", "else", "seh_cfa_offset", "(", "f", ",", "seh", ",", "pat", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "</s>" ]
[ "Process", "a", "FRAME_RELATED_EXPR", "for", "SEH", "." ]
[ "i386", "0", "2", "1", "0", "0", "0", "0", "1", "1", "0", "0" ]
winnt
seh_frame_related_expr
i386
CPU
GCC
4,368
382
1
[]
[ "<s>", "static", "bool", "aarch64_compatible_vector_types_p", "(", "const_tree", "type1", ",", "const_tree", "type2", ")", "{", "return", "(", "aarch64_sve", "::", "builtin_type_p", "(", "type1", ")", "==", "aarch64_sve", "::", "builtin_type_p", "(", "type2", ")", ")", ";", "}", "</s>" ]
[ "Implement", "TARGET_COMPATIBLE_VECTOR_TYPES_P", "." ]
[ "aarch64", "aarch64_sve::builtin_type_p", "aarch64_sve::builtin_type_p" ]
aarch64
aarch64_compatible_vector_types_p
aarch64
CPU
GCC
4,369
29
1
[]
[ "<s>", "static", "int", "xtensa_insn_cost", "(", "rtx_insn", "*", "insn", ",", "bool", "speed", ")", "{", "if", "(", "!", "(", "recog_memoized", "(", "insn", ")", "<", "0", ")", ")", "{", "int", "len", "=", "get_attr_length", "(", "insn", ")", ";", "if", "(", "len", "==", "0", ")", "return", "COSTS_N_INSNS", "(", "0", ")", ";", "if", "(", "speed", ")", "{", "int", "n", "=", "(", "len", "+", "2", ")", "/", "3", ";", "if", "(", "xtensa_is_insn_L32R_p", "(", "insn", ")", ")", "return", "COSTS_N_INSNS", "(", "1", "+", "xtensa_extra_l32r_costs", ")", ";", "switch", "(", "get_attr_type", "(", "insn", ")", ")", "{", "case", "TYPE_STORE", ":", "case", "TYPE_MOVE", ":", "case", "TYPE_ARITH", ":", "case", "TYPE_MULTI", ":", "case", "TYPE_NOP", ":", "case", "TYPE_FSTORE", ":", "return", "COSTS_N_INSNS", "(", "n", ")", ";", "case", "TYPE_LOAD", ":", "return", "COSTS_N_INSNS", "(", "n", "-", "1", "+", "2", ")", ";", "case", "TYPE_JUMP", ":", "case", "TYPE_CALL", ":", "return", "COSTS_N_INSNS", "(", "n", "-", "1", "+", "3", ")", ";", "case", "TYPE_FCONV", ":", "case", "TYPE_FLOAD", ":", "case", "TYPE_MUL16", ":", "case", "TYPE_MUL32", ":", "case", "TYPE_RSR", ":", "return", "COSTS_N_INSNS", "(", "n", "*", "2", ")", ";", "case", "TYPE_FMADD", ":", "return", "COSTS_N_INSNS", "(", "n", "*", "4", ")", ";", "case", "TYPE_DIV32", ":", "return", "COSTS_N_INSNS", "(", "n", "*", "16", ")", ";", "default", ":", "break", ";", "}", "}", "else", "{", "if", "(", "get_attr_type", "(", "insn", ")", "!=", "TYPE_UNKNOWN", ")", "{", "if", "(", "xtensa_is_insn_L32R_p", "(", "insn", ")", ")", "len", "=", "3", "+", "4", ";", "return", "(", "COSTS_N_INSNS", "(", "len", ")", "+", "1", ")", "/", "3", ";", "}", "}", "}", "return", "pattern_cost", "(", "PATTERN", "(", "insn", ")", ",", "speed", ")", ";", "}", "</s>" ]
[ "Compute", "a", "relative", "costs", "of", "RTL", "insns", ".", "This", "is", "necessary", "in", "order", "to", "achieve", "better", "RTL", "insn", "splitting/combination", "result", "." ]
[ "xtensa", "0", "0", "0", "2", "3", "1", "1", "2", "1", "3", "2", "4", "16", "3", "4", "1", "3" ]
xtensa1
xtensa_insn_cost
xtensa
MPU
GCC
4,370
240
1
[]
[ "<s>", "static", "void", "mips_output_function_epilogue", "(", "FILE", "*", ")", "{", "const", "char", "*", "fnname", ";", "SET_REGNO", "(", "pic_offset_table_rtx", ",", "GLOBAL_POINTER_REGNUM", ")", ";", "mips_output_cplocal", "(", ")", ";", "if", "(", "cfun", "->", "machine", "->", "all_noreorder_p", ")", "{", "mips_pop_asm_switch", "(", "&", "mips_nomacro", ")", ";", "mips_pop_asm_switch", "(", "&", "mips_noreorder", ")", ";", "}", "fnname", "=", "XSTR", "(", "XEXP", "(", "DECL_RTL", "(", "current_function_decl", ")", ",", "0", ")", ",", "0", ")", ";", "mips_end_function_definition", "(", "fnname", ")", ";", "}", "</s>" ]
[ "Implement", "TARGET_OUTPUT_FUNCTION_EPILOGUE", "." ]
[ "mips", "0", "0" ]
mips
mips_output_function_epilogue
mips
CPU
GCC
4,371
69
1
[]
[ "<s>", "bool", "M680x0FrameLowering", "::", "canSimplifyCallFramePseudos", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "hasReservedCallFrame", "(", "MF", ")", "||", "(", "hasFP", "(", "MF", ")", "&&", "!", "TRI", "->", "needsStackRealignment", "(", "MF", ")", ")", "||", "TRI", "->", "hasBasePointer", "(", "MF", ")", ";", "}", "</s>" ]
[ "canSimplifyCallFramePseudos", "-", "If", "there", "is", "a", "reserved", "call", "frame", ",", "the", "call", "frame", "pseudos", "can", "be", "simplified", "." ]
[ "M680x0", "M680x0" ]
M680x0FrameLowering
canSimplifyCallFramePseudos
M680x0
MPU
LLVM
4,372
41
1
[]
[ "<s>", "static", "reg_class_t", "pdp11_preferred_output_reload_class", "(", "rtx", "x", ",", "reg_class_t", "rclass", ")", "{", "if", "(", "rclass", "==", "FPU_REGS", ")", "return", "LOAD_FPU_REGS", ";", "if", "(", "rclass", "==", "ALL_REGS", ")", "{", "if", "(", "FLOAT_MODE_P", "(", "GET_MODE", "(", "x", ")", ")", ")", "return", "LOAD_FPU_REGS", ";", "else", "return", "GENERAL_REGS", ";", "}", "return", "rclass", ";", "}", "</s>" ]
[ "TARGET_PREFERRED_OUTPUT_RELOAD_CLASS", "Given", "an", "rtx", "X", "being", "reloaded", "into", "a", "reg", "required", "to", "be", "in", "class", "CLASS", ",", "return", "the", "class", "of", "reg", "to", "actually", "use", ".", "In", "general", "this", "is", "just", "CLASS", ";", "but", "on", "some", "machines", "in", "some", "cases", "it", "is", "preferable", "to", "use", "a", "more", "restrictive", "class", ".", "loading", "is", "easier", "into", "LOAD_FPU_REGS", "than", "FPU_REGS", "!" ]
[ "pdp11" ]
pdp11
pdp11_preferred_output_reload_class
pdp11
MPU
GCC
4,373
49
1
[]
[ "<s>", "void", "pop", "(", "int", "rn", ",", "enum", "machine_mode", "mode", ")", "{", "emit_insn", "(", "gen_pop", "(", "gen_rtx_REG", "(", "mode", ",", "rn", ")", ",", "mode", ")", ")", ";", "}", "</s>" ]
[ "Output", "RTL", "to", "pop", "register", "RN", "from", "the", "stack", "." ]
[ "z8k" ]
z8k
pop
z8k
MPU
GCC
4,374
27
1
[]
[ "<s>", "const", "MCFixupKindInfo", "&", "getFixupKindInfo", "(", "MCFixupKind", "Kind", ")", "const", "override", "{", "const", "static", "MCFixupKindInfo", "InfosBE", "[", "PPC", "::", "NumTargetFixupKinds", "]", "=", "{", "{", "\"fixup_ppc_br24\"", ",", "6", ",", "24", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_ppc_brcond14\"", ",", "16", ",", "14", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_ppc_br24abs\"", ",", "6", ",", "24", ",", "0", "}", ",", "{", "\"fixup_ppc_brcond14abs\"", ",", "16", ",", "14", ",", "0", "}", ",", "{", "\"fixup_ppc_half16\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_ppc_half16ds\"", ",", "0", ",", "14", ",", "0", "}", ",", "{", "\"fixup_ppc_nofixup\"", ",", "0", ",", "0", ",", "0", "}", "}", ";", "const", "static", "MCFixupKindInfo", "InfosLE", "[", "PPC", "::", "NumTargetFixupKinds", "]", "=", "{", "{", "\"fixup_ppc_br24\"", ",", "2", ",", "24", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_ppc_brcond14\"", ",", "2", ",", "14", ",", "MCFixupKindInfo", "::", "FKF_IsPCRel", "}", ",", "{", "\"fixup_ppc_br24abs\"", ",", "2", ",", "24", ",", "0", "}", ",", "{", "\"fixup_ppc_brcond14abs\"", ",", "2", ",", "14", ",", "0", "}", ",", "{", "\"fixup_ppc_half16\"", ",", "0", ",", "16", ",", "0", "}", ",", "{", "\"fixup_ppc_half16ds\"", ",", "2", ",", "14", ",", "0", "}", ",", "{", "\"fixup_ppc_nofixup\"", ",", "0", ",", "0", ",", "0", "}", "}", ";", "if", "(", "Kind", "<", "FirstTargetFixupKind", ")", "return", "MCAsmBackend", "::", "getFixupKindInfo", "(", "Kind", ")", ";", "assert", "(", "unsigned", "(", "Kind", "-", "FirstTargetFixupKind", ")", "<", "getNumFixupKinds", "(", ")", "&&", "\"Invalid kind!\"", ")", ";", "return", "(", "Endian", "==", "support", "::", "little", "?", "InfosLE", ":", "InfosBE", ")", "[", "Kind", "-", "FirstTargetFixupKind", "]", ";", "}", "</s>" ]
[ "Get", "information", "on", "a", "fixup", "kind", "." ]
[ "PowerPC", "PPC::NumTargetFixupKinds", "\"fixup_ppc_br24\"", "6", "24", "\"fixup_ppc_brcond14\"", "16", "14", "\"fixup_ppc_br24abs\"", "6", "24", "0", "\"fixup_ppc_brcond14abs\"", "16", "14", "0", "\"fixup_ppc_half16\"", "0", "16", "0", "\"fixup_ppc_half16ds\"", "0", "14", "0", "\"fixup_ppc_nofixup\"", "0", "0", "0", "PPC::NumTargetFixupKinds", "\"fixup_ppc_br24\"", "2", "24", "\"fixup_ppc_brcond14\"", "2", "14", "\"fixup_ppc_br24abs\"", "2", "24", "0", "\"fixup_ppc_brcond14abs\"", "2", "14", "0", "\"fixup_ppc_half16\"", "0", "16", "0", "\"fixup_ppc_half16ds\"", "2", "14", "0", "\"fixup_ppc_nofixup\"", "0", "0", "0", "\"Invalid kind!\"", "support::little" ]
PPCAsmBackend (2)1
getFixupKindInfo
PowerPC
CPU
LLVM
4,375
232
1
[]
[ "<s>", "MCSymbol", "*", "DLXMCInstLower", "::", "GetExternalSymbolSymbol", "(", "const", "MachineOperand", "&", "MO", ")", "const", "{", "return", "Printer", ".", "GetExternalSymbolSymbol", "(", "MO", ".", "getSymbolName", "(", ")", ")", ";", "}", "</s>" ]
[ "Return", "the", "MCSymbol", "for", "the", "specified", "ExternalSymbol", "." ]
[ "DLX", "DLX" ]
DLXMCInstLower
GetExternalSymbolSymbol
DLX
CPU
LLVM
4,376
26
1
[]
[ "<s>", "bool", "AMDGPUAsmParser", "::", "ParseInstruction", "(", "ParseInstructionInfo", "&", "Info", ",", "StringRef", "Name", ",", "SMLoc", "NameLoc", ",", "OperandVector", "&", "Operands", ")", "{", "Name", "=", "parseMnemonicSuffix", "(", "Name", ")", ";", "Operands", ".", "push_back", "(", "AMDGPUOperand", "::", "CreateToken", "(", "this", ",", "Name", ",", "NameLoc", ")", ")", ";", "bool", "IsMIMG", "=", "Name", ".", "startswith", "(", "\"image_\"", ")", ";", "while", "(", "!", "getLexer", "(", ")", ".", "is", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "{", "OperandMode", "Mode", "=", "OperandMode_Default", ";", "if", "(", "IsMIMG", "&&", "isGFX10", "(", ")", "&&", "Operands", ".", "size", "(", ")", "==", "2", ")", "Mode", "=", "OperandMode_NSA", ";", "OperandMatchResultTy", "Res", "=", "parseOperand", "(", "Operands", ",", "Name", ",", "Mode", ")", ";", "if", "(", "getLexer", "(", ")", ".", "is", "(", "AsmToken", "::", "Comma", ")", ")", "Parser", ".", "Lex", "(", ")", ";", "if", "(", "Res", "!=", "MatchOperand_Success", ")", "{", "if", "(", "!", "Parser", ".", "hasPendingError", "(", ")", ")", "{", "StringRef", "Msg", "=", "(", "Res", "==", "MatchOperand_ParseFail", ")", "?", "\"failed parsing operand.\"", ":", "\"not a valid operand.\"", ";", "Error", "(", "getLexer", "(", ")", ".", "getLoc", "(", ")", ",", "Msg", ")", ";", "}", "while", "(", "!", "getLexer", "(", ")", ".", "is", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "{", "Parser", ".", "Lex", "(", ")", ";", "}", "return", "true", ";", "}", "}", "return", "false", ";", "}", "</s>" ]
[ "ParseInstruction", "-", "Parse", "one", "assembly", "instruction", "." ]
[ "AMDGPU", "AMDGPU", "AMDGPU", "\"image_\"", "2", "\"failed parsing operand.\"", "\"not a valid operand.\"" ]
AMDGPUAsmParser45
ParseInstruction
AMDGPU
GPU
LLVM
4,377
199
1
[]
[ "<s>", "void", "SparcELFTargetObjectFile", "::", "Initialize", "(", "MCContext", "&", "Ctx", ",", "const", "TargetMachine", "&", "TM", ")", "{", "TargetLoweringObjectFileELF", "::", "Initialize", "(", "Ctx", ",", "TM", ")", ";", "InitializeELF", "(", "TM", ".", "Options", ".", "UseInitArray", ")", ";", "}", "</s>" ]
[ "This", "method", "must", "be", "called", "before", "any", "actual", "lowering", "is", "done", "." ]
[ "Sparc", "Sparc" ]
SparcTargetObjectFile1
Initialize
Sparc
CPU
LLVM
4,378
34
1
[]
[ "<s>", "const", "MCPhysReg", "*", "Z80RegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "switch", "(", "MF", "->", "getFunction", "(", ")", "->", "getCallingConv", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unsupported calling convention\"", ")", ";", "case", "CallingConv", "::", "C", ":", "case", "CallingConv", "::", "Fast", ":", "return", "Is24Bit", "?", "CSR_EZ80_C_SaveList", ":", "CSR_Z80_C_SaveList", ";", "case", "CallingConv", "::", "PreserveAll", ":", "case", "CallingConv", "::", "Z80_LibCall", ":", "case", "CallingConv", "::", "Z80_LibCall_AC", ":", "case", "CallingConv", "::", "Z80_LibCall_BC", ":", "case", "CallingConv", "::", "Z80_LibCall_C", ":", "case", "CallingConv", "::", "Z80_LibCall_L", ":", "return", "Is24Bit", "?", "CSR_EZ80_AllRegs_SaveList", ":", "CSR_Z80_AllRegs_SaveList", ";", "}", "}", "</s>" ]
[ "Code", "Generation", "virtual", "methods", "..." ]
[ "Z80", "Z80", "\"Unsupported calling convention\"", "Z80", "Z80", "Z80", "Z80", "Z80", "Z80", "Z80", "Z80", "Z80" ]
Z80RegisterInfo2
getCalleeSavedRegs
Z80
MPU
LLVM
4,379
90
1
[]
[ "<s>", "virtual", "SDValue", "LowerCall", "(", "CallLoweringInfo", "&", "CLI", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "CLI", ".", "Callee", ".", "dump", "(", ")", ";", "llvm_unreachable", "(", "\"Undefined function\"", ")", ";", "}", "</s>" ]
[ "This", "hook", "must", "be", "implemented", "to", "lower", "calls", "into", "the", "specified", "DAG", "." ]
[ "R600", "\"Undefined function\"" ]
AMDGPUISelLowering15
LowerCall
R600
GPU
LLVM
4,380
31
1
[]
[ "<s>", "bool", "ARMFastISel", "::", "fastLowerArguments", "(", ")", "{", "if", "(", "!", "FuncInfo", ".", "CanLowerReturn", ")", "return", "false", ";", "const", "Function", "*", "F", "=", "FuncInfo", ".", "Fn", ";", "if", "(", "F", "->", "isVarArg", "(", ")", ")", "return", "false", ";", "CallingConv", "::", "ID", "CC", "=", "F", "->", "getCallingConv", "(", ")", ";", "switch", "(", "CC", ")", "{", "default", ":", "return", "false", ";", "case", "CallingConv", "::", "Fast", ":", "case", "CallingConv", "::", "C", ":", "case", "CallingConv", "::", "ARM_AAPCS_VFP", ":", "case", "CallingConv", "::", "ARM_AAPCS", ":", "case", "CallingConv", "::", "ARM_APCS", ":", "case", "CallingConv", "::", "Swift", ":", "break", ";", "}", "for", "(", "const", "Argument", "&", "Arg", ":", "F", "->", "args", "(", ")", ")", "{", "if", "(", "Arg", ".", "getArgNo", "(", ")", ">=", "4", ")", "return", "false", ";", "if", "(", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "InReg", ")", "||", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "StructRet", ")", "||", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "SwiftSelf", ")", "||", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "SwiftError", ")", "||", "Arg", ".", "hasAttribute", "(", "Attribute", "::", "ByVal", ")", ")", "return", "false", ";", "Type", "*", "ArgTy", "=", "Arg", ".", "getType", "(", ")", ";", "if", "(", "ArgTy", "->", "isStructTy", "(", ")", "||", "ArgTy", "->", "isArrayTy", "(", ")", "||", "ArgTy", "->", "isVectorTy", "(", ")", ")", "return", "false", ";", "EVT", "ArgVT", "=", "TLI", ".", "getValueType", "(", "DL", ",", "ArgTy", ")", ";", "if", "(", "!", "ArgVT", ".", "isSimple", "(", ")", ")", "return", "false", ";", "switch", "(", "ArgVT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ")", "{", "case", "MVT", "::", "i8", ":", "case", "MVT", "::", "i16", ":", "case", "MVT", "::", "i32", ":", "break", ";", "default", ":", "return", "false", ";", "}", "}", "static", "const", "MCPhysReg", "GPRArgRegs", "[", "]", "=", "{", "ARM", "::", "R0", ",", "ARM", "::", "R1", ",", "ARM", "::", "R2", ",", "ARM", "::", "R3", "}", ";", "const", "TargetRegisterClass", "*", "RC", "=", "&", "ARM", "::", "rGPRRegClass", ";", "for", "(", "const", "Argument", "&", "Arg", ":", "F", "->", "args", "(", ")", ")", "{", "unsigned", "ArgNo", "=", "Arg", ".", "getArgNo", "(", ")", ";", "unsigned", "SrcReg", "=", "GPRArgRegs", "[", "ArgNo", "]", ";", "unsigned", "DstReg", "=", "FuncInfo", ".", "MF", "->", "addLiveIn", "(", "SrcReg", ",", "RC", ")", ";", "unsigned", "ResultReg", "=", "createResultReg", "(", "RC", ")", ";", "BuildMI", "(", "*", "FuncInfo", ".", "MBB", ",", "FuncInfo", ".", "InsertPt", ",", "DbgLoc", ",", "TII", ".", "get", "(", "TargetOpcode", "::", "COPY", ")", ",", "ResultReg", ")", ".", "addReg", "(", "DstReg", ",", "getKillRegState", "(", "true", ")", ")", ";", "updateValueMap", "(", "&", "Arg", ",", "ResultReg", ")", ";", "}", "return", "true", ";", "}", "</s>" ]
[ "This", "method", "is", "called", "by", "target-independent", "code", "to", "do", "target-", "specific", "argument", "lowering", "." ]
[ "ARM", "ARM", "ARM", "ARM", "ARM", "4", "MVT::i8", "MVT::i16", "MVT::i32", "ARM::R0", "ARM::R1", "ARM::R2", "ARM::R3", "ARM::rGPRRegClass" ]
ARMFastISel (2)3
fastLowerArguments
ARM
CPU
LLVM
4,381
396
1
[]
[ "<s>", "bool", "sh_small_register_classes_for_mode_p", "(", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ")", "{", "return", "(", "!", "TARGET_SHMEDIA", ")", ";", "}", "</s>" ]
[ "Return", "true", "if", "registers", "in", "machine", "mode", "MODE", "will", "likely", "be", "allocated", "to", "registers", "in", "small", "register", "classes", "." ]
[ "sh" ]
sh4
sh_small_register_classes_for_mode_p
sh
CPU
GCC
4,382
15
1
[]
[ "<s>", "bool", "XCoreFrameLowering", "::", "spillCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "CSI", ".", "empty", "(", ")", ")", "return", "true", ";", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", "->", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "XCoreFunctionInfo", "*", "XFI", "=", "MF", "->", "getInfo", "<", "XCoreFunctionInfo", ">", "(", ")", ";", "bool", "emitFrameMoves", "=", "XCoreRegisterInfo", "::", "needsFrameMoves", "(", "*", "MF", ")", ";", "DebugLoc", "DL", ";", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", "&&", "!", "MI", "->", "isDebugInstr", "(", ")", ")", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "for", "(", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "::", "const_iterator", "it", "=", "CSI", ".", "begin", "(", ")", ";", "it", "!=", "CSI", ".", "end", "(", ")", ";", "++", "it", ")", "{", "unsigned", "Reg", "=", "it", "->", "getReg", "(", ")", ";", "assert", "(", "Reg", "!=", "XCore", "::", "LR", "&&", "!", "(", "Reg", "==", "XCore", "::", "R10", "&&", "hasFP", "(", "*", "MF", ")", ")", "&&", "\"LR & FP are always handled in emitPrologue\"", ")", ";", "MBB", ".", "addLiveIn", "(", "Reg", ")", ";", "const", "TargetRegisterClass", "*", "RC", "=", "TRI", "->", "getMinimalPhysRegClass", "(", "Reg", ")", ";", "TII", ".", "storeRegToStackSlot", "(", "MBB", ",", "MI", ",", "Reg", ",", "true", ",", "it", "->", "getFrameIdx", "(", ")", ",", "RC", ",", "TRI", ")", ";", "if", "(", "emitFrameMoves", ")", "{", "auto", "Store", "=", "MI", ";", "--", "Store", ";", "XFI", "->", "getSpillLabels", "(", ")", ".", "push_back", "(", "std", "::", "make_pair", "(", "Store", ",", "*", "it", ")", ")", ";", "}", "}", "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", "(", ")", "." ]
[ "XCore", "XCore", "XCore", "XCore", "XCore", "XCore::LR", "XCore::R10", "\"LR & FP are always handled in emitPrologue\"" ]
XCoreFrameLowering26
spillCalleeSavedRegisters
XCore
MPU
LLVM
4,383
265
1
[]
[ "<s>", "static", "void", "nvptx_goacc_reduction", "(", "gcall", "*", "call", ")", "{", "unsigned", "code", "=", "(", "unsigned", ")", "TREE_INT_CST_LOW", "(", "gimple_call_arg", "(", "call", ",", "0", ")", ")", ";", "offload_attrs", "oa", ";", "populate_offload_attrs", "(", "&", "oa", ")", ";", "switch", "(", "code", ")", "{", "case", "IFN_GOACC_REDUCTION_SETUP", ":", "nvptx_goacc_reduction_setup", "(", "call", ",", "&", "oa", ")", ";", "break", ";", "case", "IFN_GOACC_REDUCTION_INIT", ":", "nvptx_goacc_reduction_init", "(", "call", ",", "&", "oa", ")", ";", "break", ";", "case", "IFN_GOACC_REDUCTION_FINI", ":", "nvptx_goacc_reduction_fini", "(", "call", ",", "&", "oa", ")", ";", "break", ";", "case", "IFN_GOACC_REDUCTION_TEARDOWN", ":", "nvptx_goacc_reduction_teardown", "(", "call", ",", "&", "oa", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "</s>" ]
[ "NVPTX", "reduction", "expander", "." ]
[ "nvptx", "0" ]
nvptx
nvptx_goacc_reduction
nvptx
GPU
GCC
4,384
99
1
[]
[ "<s>", "void", "rs6000_live_on_entry", "(", "bitmap", "regs", ")", "{", "if", "(", "flag_split_stack", ")", "bitmap_set_bit", "(", "regs", ",", "12", ")", ";", "}", "</s>" ]
[ "We", "may", "have", "to", "tell", "the", "dataflow", "pass", "that", "the", "split", "stack", "prologue", "is", "initializing", "a", "register", "." ]
[ "rs6000", "12" ]
rs6000-logue
rs6000_live_on_entry
rs6000
CPU
GCC
4,385
19
1
[]
[ "<s>", "TargetLowering", "::", "AtomicExpansionKind", "ARMTargetLowering", "::", "shouldExpandAtomicRMWInIR", "(", "AtomicRMWInst", "*", "AI", ")", "const", "{", "if", "(", "AI", "->", "isFloatingPointOperation", "(", ")", ")", "return", "AtomicExpansionKind", "::", "CmpXChg", ";", "unsigned", "Size", "=", "AI", "->", "getType", "(", ")", "->", "getPrimitiveSizeInBits", "(", ")", ";", "bool", "hasAtomicRMW", ";", "if", "(", "Subtarget", "->", "isMClass", "(", ")", ")", "hasAtomicRMW", "=", "Subtarget", "->", "hasV8MBaselineOps", "(", ")", ";", "else", "if", "(", "Subtarget", "->", "isThumb", "(", ")", ")", "hasAtomicRMW", "=", "Subtarget", "->", "hasV7Ops", "(", ")", ";", "else", "hasAtomicRMW", "=", "Subtarget", "->", "hasV6Ops", "(", ")", ";", "if", "(", "Size", "<=", "(", "Subtarget", "->", "isMClass", "(", ")", "?", "32U", ":", "64U", ")", "&&", "hasAtomicRMW", ")", "{", "if", "(", "getTargetMachine", "(", ")", ".", "getOptLevel", "(", ")", "==", "CodeGenOpt", "::", "None", ")", "return", "AtomicExpansionKind", "::", "CmpXChg", ";", "return", "AtomicExpansionKind", "::", "LLSC", ";", "}", "return", "AtomicExpansionKind", "::", "None", ";", "}", "</s>" ]
[ "Returns", "how", "the", "IR-level", "AtomicExpand", "pass", "should", "expand", "the", "given", "AtomicRMW", ",", "if", "at", "all", "." ]
[ "ARM", "ARM", "32U", "64U" ]
ARMISelLowering12
shouldExpandAtomicRMWInIR
ARM
CPU
LLVM
4,386
134
1
[]
[ "<s>", "static", "bool", "cr16_hard_regno_mode_ok", "(", "unsigned", "int", "regno", ",", "machine_mode", "mode", ")", "{", "if", "(", "(", "GET_MODE_SIZE", "(", "mode", ")", ">=", "4", ")", "&&", "(", "regno", "==", "11", ")", ")", "return", "false", ";", "if", "(", "mode", "==", "DImode", "||", "mode", "==", "DFmode", ")", "{", "if", "(", "(", "regno", ">", "8", ")", "||", "(", "regno", "&", "1", ")", ")", "return", "false", ";", "return", "true", ";", "}", "if", "(", "(", "TARGET_INT32", ")", "&&", "(", "(", "regno", ">=", "12", ")", "&&", "(", "GET_MODE_SIZE", "(", "mode", ")", "<", "4", ")", ")", ")", "return", "false", ";", "if", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_CC", ")", "return", "false", ";", "return", "true", ";", "}", "</s>" ]
[ "Return", "1", "if", "hard", "register", "REGNO", "can", "hold", "a", "value", "of", "machine-mode", "MODE", "." ]
[ "cr16", "4", "11", "8", "1", "12", "4" ]
cr16
cr16_hard_regno_mode_ok
cr16
MPU
GCC
4,387
106
1
[]
[ "<s>", "bool", "FixupBWInstPass", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "!", "FixupBWInsts", "||", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "this", "->", "MF", "=", "&", "MF", ";", "TII", "=", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "MLI", "=", "&", "getAnalysis", "<", "MachineLoopInfo", ">", "(", ")", ";", "PSI", "=", "&", "getAnalysis", "<", "ProfileSummaryInfoWrapperPass", ">", "(", ")", ".", "getPSI", "(", ")", ";", "MBFI", "=", "(", "PSI", "&&", "PSI", "->", "hasProfileSummary", "(", ")", ")", "?", "&", "getAnalysis", "<", "LazyMachineBlockFrequencyInfoPass", ">", "(", ")", ".", "getBFI", "(", ")", ":", "nullptr", ";", "LiveRegs", ".", "init", "(", "TII", "->", "getRegisterInfo", "(", ")", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Start X86FixupBWInsts\\n\"", ";", ")", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "processBasicBlock", "(", "MF", ",", "MBB", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"End X86FixupBWInsts\\n\"", ";", ")", ";", "return", "true", ";", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "X86", "X86", "\"Start X86FixupBWInsts\\n\"", "\"End X86FixupBWInsts\\n\"" ]
X86FixupBWInsts10
runOnMachineFunction
X86
CPU
LLVM
4,388
149
1
[]
[ "<s>", "static", "void", "warn_once_call_ms2sysv_xlogues", "(", "const", "char", "*", "feature", ")", "{", "static", "bool", "warned_once", "=", "false", ";", "if", "(", "!", "warned_once", ")", "{", "warning", "(", "0", ",", "\"%<-mcall-ms2sysv-xlogues%> is not compatible with %s\"", ",", "feature", ")", ";", "warned_once", "=", "true", ";", "}", "}", "</s>" ]
[ "Emits", "a", "warning", "for", "unsupported", "msabi", "to", "sysv", "pro/epilogues", "." ]
[ "i386", "0", "\"%<-mcall-ms2sysv-xlogues%> is not compatible with %s\"" ]
i3868
warn_once_call_ms2sysv_xlogues
i386
CPU
GCC
4,389
37
1
[]
[ "<s>", "Sched", "::", "Preference", "PPCTargetLowering", "::", "getSchedulingPreference", "(", "SDNode", "*", "N", ")", "const", "{", "if", "(", "DisableILPPref", "||", "Subtarget", ".", "enableMachineScheduler", "(", ")", ")", "return", "TargetLowering", "::", "getSchedulingPreference", "(", "N", ")", ";", "return", "Sched", "::", "ILP", ";", "}", "</s>" ]
[ "Some", "scheduler", ",", "e.g", "." ]
[ "PowerPC", "PPC" ]
PPCISelLowering (2)2
getSchedulingPreference
PowerPC
CPU
LLVM
4,390
37
1
[]
[ "<s>", "void", "print", "(", "raw_ostream", "&", "OS", ")", "const", "override", "{", "switch", "(", "Kind", ")", "{", "case", "k_Register", ":", "OS", "<<", "\"Reg<\"", "<<", "Reg", ".", "Num", "<<", "\">\"", ";", "break", ";", "case", "k_Immediate", ":", "OS", "<<", "\"Imm<\"", "<<", "(", "(", "const", "MCConstantExpr", "*", ")", "Imm", ".", "Val", ")", "->", "getValue", "(", ")", "<<", "\">\"", ";", "break", ";", "case", "k_Token", ":", "OS", "<<", "Tok", ".", "Data", ";", "break", ";", "}", "}", "</s>" ]
[ "print", "-", "Print", "a", "debug", "representation", "of", "the", "operand", "to", "the", "given", "stream", "." ]
[ "TL45", "\"Reg<\"", "\">\"", "\"Imm<\"", "\">\"" ]
TL45AsmParser
print
TL45
MPU
LLVM
4,391
69
1
[]
[ "<s>", "const", "MipsSubtarget", "*", "MipsTargetMachine", "::", "getSubtargetImpl", "(", "const", "Function", "&", "F", ")", "const", "{", "Attribute", "CPUAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-cpu\"", ")", ";", "Attribute", "FSAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-features\"", ")", ";", "std", "::", "string", "CPU", "=", "!", "CPUAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "CPUAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetCPU", ";", "std", "::", "string", "FS", "=", "!", "FSAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "FSAttr", ".", "getValueAsString", "(", ")", ".", "str", "(", ")", ":", "TargetFS", ";", "bool", "hasMips16Attr", "=", "!", "F", ".", "getFnAttribute", "(", "\"mips16\"", ")", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", ";", "bool", "hasNoMips16Attr", "=", "!", "F", ".", "getFnAttribute", "(", "\"nomips16\"", ")", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", ";", "bool", "softFloat", "=", "F", ".", "hasFnAttribute", "(", "\"use-soft-float\"", ")", "&&", "F", ".", "getFnAttribute", "(", "\"use-soft-float\"", ")", ".", "getValueAsString", "(", ")", "==", "\"true\"", ";", "if", "(", "hasMips16Attr", ")", "FS", "+=", "FS", ".", "empty", "(", ")", "?", "\"+mips16\"", ":", "\",+mips16\"", ";", "else", "if", "(", "hasNoMips16Attr", ")", "FS", "+=", "FS", ".", "empty", "(", ")", "?", "\"-mips16\"", ":", "\",-mips16\"", ";", "if", "(", "softFloat", ")", "FS", "+=", "FS", ".", "empty", "(", ")", "?", "\"+soft-float\"", ":", "\",+soft-float\"", ";", "auto", "&", "I", "=", "SubtargetMap", "[", "CPU", "+", "FS", "]", ";", "if", "(", "!", "I", ")", "{", "resetTargetOptions", "(", "F", ")", ";", "I", "=", "llvm", "::", "make_unique", "<", "MipsSubtarget", ">", "(", "TargetTriple", ",", "CPU", ",", "FS", ",", "isLittle", ",", "*", "this", ")", ";", "}", "return", "I", ".", "get", "(", ")", ";", "}", "</s>" ]
[ "Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "." ]
[ "Mips", "Mips", "Mips", "\"target-cpu\"", "\"target-features\"", "Mips", "\"mips16\"", "Mips", "\"nomips16\"", "\"use-soft-float\"", "\"use-soft-float\"", "\"true\"", "Mips", "\"+mips16\"", "\",+mips16\"", "Mips", "\"-mips16\"", "\",-mips16\"", "\"+soft-float\"", "\",+soft-float\"", "Mips" ]
MipsTargetMachine2
getSubtargetImpl
Mips
CPU
LLVM
4,392
248
1
[]
[ "<s>", "virtual", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "TM", "=", "static_cast", "<", "const", "PPCTargetMachine", "*", ">", "(", "&", "MF", ".", "getTarget", "(", ")", ")", ";", "TII", "=", "TM", "->", "getInstrInfo", "(", ")", ";", "bool", "Changed", "=", "false", ";", "for", "(", "MachineFunction", "::", "iterator", "I", "=", "MF", ".", "begin", "(", ")", ";", "I", "!=", "MF", ".", "end", "(", ")", ";", ")", "{", "MachineBasicBlock", "&", "B", "=", "*", "I", "++", ";", "if", "(", "processBlock", "(", "B", ")", ")", "Changed", "=", "true", ";", "}", "return", "Changed", ";", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "PowerPC", "PPC" ]
PPCInstrInfo38
runOnMachineFunction
PowerPC
CPU
LLVM
4,393
86
1
[]
[ "<s>", "bool", "aarch64_float_const_representable_p", "(", "rtx", "x", ")", "{", "int", "point_pos", "=", "2", "*", "HOST_BITS_PER_WIDE_INT", "-", "1", ";", "int", "exponent", ";", "unsigned", "HOST_WIDE_INT", "mantissa", ",", "mask", ";", "REAL_VALUE_TYPE", "r", ",", "m", ";", "bool", "fail", ";", "if", "(", "!", "CONST_DOUBLE_P", "(", "x", ")", ")", "return", "false", ";", "if", "(", "GET_MODE", "(", "x", ")", "==", "VOIDmode", "||", "GET_MODE", "(", "x", ")", "==", "HFmode", ")", "return", "false", ";", "r", "=", "*", "CONST_DOUBLE_REAL_VALUE", "(", "x", ")", ";", "if", "(", "REAL_VALUE_ISINF", "(", "r", ")", "||", "REAL_VALUE_ISNAN", "(", "r", ")", "||", "REAL_VALUE_MINUS_ZERO", "(", "r", ")", ")", "return", "false", ";", "r", "=", "real_value_abs", "(", "&", "r", ")", ";", "exponent", "=", "REAL_EXP", "(", "&", "r", ")", ";", "real_ldexp", "(", "&", "m", ",", "&", "r", ",", "point_pos", "-", "exponent", ")", ";", "wide_int", "w", "=", "real_to_integer", "(", "&", "m", ",", "&", "fail", ",", "HOST_BITS_PER_WIDE_INT", "*", "2", ")", ";", "if", "(", "w", ".", "ulow", "(", ")", "!=", "0", ")", "return", "false", ";", "mantissa", "=", "w", ".", "elt", "(", "1", ")", ";", "point_pos", "-=", "HOST_BITS_PER_WIDE_INT", ";", "mask", "=", "(", "(", "unsigned", "HOST_WIDE_INT", ")", "1", "<<", "(", "point_pos", "-", "5", ")", ")", "-", "1", ";", "if", "(", "(", "mantissa", "&", "mask", ")", "!=", "0", ")", "return", "false", ";", "mantissa", ">>=", "point_pos", "-", "5", ";", "if", "(", "mantissa", "==", "0", ")", "return", "false", ";", "mantissa", "&=", "~", "(", "1", "<<", "4", ")", ";", "gcc_assert", "(", "mantissa", "<=", "15", ")", ";", "exponent", "=", "5", "-", "exponent", ";", "return", "(", "exponent", ">=", "0", "&&", "exponent", "<=", "7", ")", ";", "}", "</s>" ]
[ "Return", "true", "iff", "X", "can", "be", "represented", "by", "a", "quarter-precision", "floating", "point", "immediate", "operand", "X", ".", "Note", ",", "we", "can", "not", "represent", "0.0", "." ]
[ "aarch64", "2", "1", "2", "0", "1", "1", "5", "1", "0", "5", "0", "1", "4", "15", "5", "0", "7" ]
aarch644
aarch64_float_const_representable_p
aarch64
CPU
GCC
4,394
242
1
[]
[ "<s>", "DecodeStatus", "FISCDisassembler", "::", "getInstruction", "(", "MCInst", "&", "Instr", ",", "uint64_t", "&", "Size", ",", "ArrayRef", "<", "uint8_t", ">", "Bytes", ",", "uint64_t", "Address", ",", "raw_ostream", "&", "VStream", ",", "raw_ostream", "&", "CStream", ")", "const", "{", "uint32_t", "Insn", ";", "DecodeStatus", "Result", "=", "readInstruction32", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn", ")", ";", "if", "(", "Result", "==", "MCDisassembler", "::", "Fail", ")", "return", "Result", ";", "Result", "=", "decodeInstruction", "(", "DecoderTableFISC32", ",", "Instr", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Result", "!=", "MCDisassembler", "::", "Fail", ")", "{", "Size", "=", "4", ";", "return", "Result", ";", "}", "return", "MCDisassembler", "::", "Fail", ";", "}", "</s>" ]
[ "Returns", "the", "disassembly", "of", "a", "single", "instruction", "." ]
[ "FISC", "FISC", "FISC", "4" ]
FISCDisassembler
getInstruction
FISC
CPU
LLVM
4,395
100
1
[]
[ "<s>", "static", "void", "emit_unlikely_jump", "(", "rtx_code", "code", ",", "rtx", "label", ")", "{", "rtx", "x", ";", "x", "=", "gen_rtx_REG", "(", "BImode", ",", "SR_F_REGNUM", ")", ";", "x", "=", "gen_rtx_fmt_ee", "(", "code", ",", "VOIDmode", ",", "x", ",", "const0_rtx", ")", ";", "x", "=", "gen_rtx_IF_THEN_ELSE", "(", "VOIDmode", ",", "x", ",", "label", ",", "pc_rtx", ")", ";", "emit_jump_insn", "(", "gen_rtx_SET", "(", "pc_rtx", ",", "x", ")", ")", ";", "}", "</s>" ]
[ "Mark", "the", "previous", "jump", "instruction", "as", "unlikely", "." ]
[ "or1k" ]
or1k
emit_unlikely_jump
or1k
CPU
GCC
4,396
60
1
[]
[ "<s>", "EVT", "X86TargetLowering", "::", "getOptimalMemOpType", "(", "uint64_t", "Size", ",", "unsigned", "DstAlign", ",", "unsigned", "SrcAlign", ",", "bool", "IsMemset", ",", "bool", "ZeroMemset", ",", "bool", "MemcpyStrSrc", ",", "const", "AttributeList", "&", "FuncAttributes", ")", "const", "{", "if", "(", "!", "FuncAttributes", ".", "hasFnAttribute", "(", "Attribute", "::", "NoImplicitFloat", ")", ")", "{", "if", "(", "Size", ">=", "16", "&&", "(", "!", "Subtarget", ".", "isUnalignedMem16Slow", "(", ")", "||", "(", "(", "DstAlign", "==", "0", "||", "DstAlign", ">=", "16", ")", "&&", "(", "SrcAlign", "==", "0", "||", "SrcAlign", ">=", "16", ")", ")", ")", ")", "{", "if", "(", "Size", ">=", "64", "&&", "Subtarget", ".", "hasAVX512", "(", ")", "&&", "(", "Subtarget", ".", "getPreferVectorWidth", "(", ")", ">=", "512", ")", ")", "{", "return", "Subtarget", ".", "hasBWI", "(", ")", "?", "MVT", "::", "v64i8", ":", "MVT", "::", "v16i32", ";", "}", "if", "(", "Size", ">=", "32", "&&", "Subtarget", ".", "hasAVX", "(", ")", "&&", "(", "Subtarget", ".", "getPreferVectorWidth", "(", ")", ">=", "256", ")", ")", "{", "return", "MVT", "::", "v32i8", ";", "}", "if", "(", "Subtarget", ".", "hasSSE2", "(", ")", "&&", "(", "Subtarget", ".", "getPreferVectorWidth", "(", ")", ">=", "128", ")", ")", "return", "MVT", "::", "v16i8", ";", "if", "(", "Subtarget", ".", "hasSSE1", "(", ")", "&&", "(", "Subtarget", ".", "is64Bit", "(", ")", "||", "Subtarget", ".", "hasX87", "(", ")", ")", "&&", "(", "Subtarget", ".", "getPreferVectorWidth", "(", ")", ">=", "128", ")", ")", "return", "MVT", "::", "v4f32", ";", "}", "else", "if", "(", "(", "!", "IsMemset", "||", "ZeroMemset", ")", "&&", "!", "MemcpyStrSrc", "&&", "Size", ">=", "8", "&&", "!", "Subtarget", ".", "is64Bit", "(", ")", "&&", "Subtarget", ".", "hasSSE2", "(", ")", ")", "{", "return", "MVT", "::", "f64", ";", "}", "}", "if", "(", "Subtarget", ".", "is64Bit", "(", ")", "&&", "Size", ">=", "8", ")", "return", "MVT", "::", "i64", ";", "return", "MVT", "::", "i32", ";", "}", "</s>" ]
[ "It", "returns", "EVT", ":", ":Other", "if", "the", "type", "should", "be", "determined", "using", "generic", "target-independent", "logic", "." ]
[ "X86", "X86", "16", "0", "16", "0", "16", "64", "512", "MVT::v64i8", "MVT::v16i32", "32", "256", "MVT::v32i8", "128", "MVT::v16i8", "128", "MVT::v4f32", "8", "MVT::f64", "8", "MVT::i64", "MVT::i32" ]
X86ISelLowering (2)6
getOptimalMemOpType
X86
CPU
LLVM
4,397
271
1
[]
[ "<s>", "bool", "ARMTargetLowering", "::", "canCombineStoreAndExtract", "(", "Type", "*", "VectorTy", ",", "Value", "*", "Idx", ",", "unsigned", "&", "Cost", ")", "const", "{", "if", "(", "!", "Subtarget", "->", "hasNEON", "(", ")", ")", "return", "false", ";", "if", "(", "VectorTy", "->", "isFPOrFPVectorTy", "(", ")", ")", "return", "false", ";", "if", "(", "!", "isa", "<", "ConstantInt", ">", "(", "Idx", ")", ")", "return", "false", ";", "assert", "(", "VectorTy", "->", "isVectorTy", "(", ")", "&&", "\"VectorTy is not a vector type\"", ")", ";", "unsigned", "BitWidth", "=", "cast", "<", "VectorType", ">", "(", "VectorTy", ")", "->", "getBitWidth", "(", ")", ";", "if", "(", "BitWidth", "==", "64", "||", "BitWidth", "==", "128", ")", "{", "Cost", "=", "0", ";", "return", "true", ";", "}", "return", "false", ";", "}", "</s>" ]
[ "Return", "true", "if", "the", "target", "can", "combine", "store", "(", "extractelement", "VectorTy", ",", "Idx", ")", "." ]
[ "ARM", "ARM", "\"VectorTy is not a vector type\"", "64", "128", "0" ]
ARMISelLowering (2)2
canCombineStoreAndExtract
ARM
CPU
LLVM
4,398
105
1
[]
[ "<s>", "MCObjectWriter", "*", "createObjectWriter", "(", "raw_ostream", "&", "OS", ")", "const", "override", "{", "return", "createLEGELFObjectWriter", "(", "OS", ",", "OSABI", ")", ";", "}", "</s>" ]
[ "Create", "a", "new", "MCObjectWriter", "instance", "for", "use", "by", "the", "assembler", "backend", "to", "emit", "the", "final", "object", "file", "." ]
[ "LEG", "LEG" ]
LEGAsmBackend2
createObjectWriter
LEG
CPU
LLVM
4,399
20
1
[]