{"Template_token": ["", "static", "inline", "Type", "*", "getKernenvArgType", "(", "unsigned", "ID", ",", "LLVMContext", "&", "C", ",", "bool", "is64bit", ")", "{", "if", "(", "ID", "==", "", ")", "return", "Type", "::", "getInt8PtrTy", "(", "C", ",", "", ")", ";", "return", "(", "is64bit", "?", "Type", "::", "getInt64Ty", "(", "C", ")", ":", "Type", "::", "getInt32Ty", "(", "C"], "ground_truth": [")", ")", ";"], "File": "AMDOpenCLKernenv", "Func": "getKernenvArgType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66962, "Length": 52, "Cover_Rate": 0.9454545454545454} {"Template_token": ["", "static", "inline", "Type", "*", "getKernenvArgType", "(", "unsigned", "ID", ",", "LLVMContext", "&", "C", ",", "bool", "is64bit", ")", "{", "if", "(", "ID", "==", "", ")", "return", "Type", "::", "getInt8PtrTy", "("], "ground_truth": ["C", ",", "", ")", ";"], "File": "AMDOpenCLKernenv", "Func": "getKernenvArgType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66963, "Length": 33, "Cover_Rate": 0.6} {"Template_token": ["", "inline", "static", "bool", "classof", "(", "const", "MCStreamer", "*", "streamer", ")", "{", "return", "true"], "ground_truth": [";"], "File": "BRIGDwarfStreamer", "Func": "classof", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66964, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "inline", "static", "bool", "classof", "(", "const", "MCStreamer"], "ground_truth": ["*", "streamer", ")", "{"], "File": "BRIGDwarfStreamer", "Func": "classof", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66965, "Length": 11, "Cover_Rate": 0.7333333333333333} {"Template_token": ["", "MCStreamer", "*", "llvm", "::", "createBRIGDwarfStreamer", "(", "MCContext", "&", "Context", ",", "MCAsmBackend", "&", "MAB", ",", "RawVectorOstream", "&", "RVOS", ",", "MCCodeEmitter"], "ground_truth": ["*", "CE", ",", "bool", "RelaxAll", ")", "{"], "File": "BRIGDwarfStreamer", "Func": "createBRIGDwarfStreamer", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66966, "Length": 26, "Cover_Rate": 0.4262295081967213} {"Template_token": ["", "void", "BRIGDwarfStreamer", "::", "Finish", "(", ")", "{", "MCELFStreamer", "::", "Finish", "(", ")", ";", "dwarfStream", "->", "flush", "(", ")", ";", "dwarfStream", "->", "releaseStream"], "ground_truth": ["(", ")", ";"], "File": "BRIGDwarfStreamer", "Func": "Finish", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66967, "Length": 25, "Cover_Rate": 0.9615384615384616} {"Template_token": ["", "assert", "(", "&", "Strm", "==", "static_cast", "<", "raw_ostream"], "ground_truth": ["*", ">", "(", "dwarfStream", ")", "&&", "", ")", ";"], "File": "BRIGDwarfStreamer", "Func": "getDwarfStream", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66968, "Length": 17, "Cover_Rate": 0.37777777777777777} {"Template_token": ["", "RawVectorOstream", "*", "BRIGDwarfStreamer", "::", "getDwarfStream", "(", ")", "{", "raw_ostream", "&", "Strm", "=", "getAssembler", "(", ")", ".", "getWriter", "(", ")", ".", "getStream", "(", ")", ";", "assert", "(", "&", "Strm", "==", "static_cast", "<", "raw_ostream", "*", ">", "(", "dwarfStream", ")", "&&", "", ")", ";", "return", "dwarfStream"], "ground_truth": [";"], "File": "BRIGDwarfStreamer", "Func": "getDwarfStream", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66969, "Length": 44, "Cover_Rate": 0.9777777777777777} {"Template_token": ["", "MCSectionELF", "*", "codeSection", "=", "getContext", "(", ")", ".", "getELFSection", "(", "", ",", "ELF", "::", "SHT_NOBITS", ",", "", ")", ";", "MCSectionELF", "*", "directivesSection", "=", "getContext", "(", ")", ".", "getELFSection", "(", "", ",", "ELF", "::", "SHT_NOBITS", ",", "", ")", ";", "SwitchSection", "(", "codeSection"], "ground_truth": [")", ";"], "File": "BRIGDwarfStreamer", "Func": "InitSections", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66970, "Length": 43, "Cover_Rate": 0.6825396825396826} {"Template_token": ["", "MCSectionELF", "*", "directivesSection", "=", "getContext", "(", ")", ".", "getELFSection", "(", "", ",", "ELF", "::", "SHT_NOBITS", ",", "", ")", ";", "SwitchSection", "(", "codeSection", ")", ";", "SwitchSection", "(", "directivesSection", ")", ";", "SwitchSection", "(", "codeSection", ")"], "ground_truth": [";"], "File": "BRIGDwarfStreamer", "Func": "InitSections", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66971, "Length": 34, "Cover_Rate": 0.5396825396825397} {"Template_token": ["", "ModulePass", "*", "llvm", "::", "createAlwaysInlinePass", "(", ")", "{", "return", "new", "AlwaysInline", "("], "ground_truth": [")", ";"], "File": "HSAILAlwaysInlinePass", "Func": "createHSAILAlwaysInlinePass", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66972, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "ModulePass", "*", "llvm", "::", "createAlwaysInlinePass", "(", ")", "{", "return", "new", "AlwaysInline"], "ground_truth": ["(", ")", ";"], "File": "HSAILAlwaysInlinePass", "Func": "createHSAILAlwaysInlinePass", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66973, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", ""], "ground_truth": [";"], "File": "HSAILAlwaysInlinePass", "Func": "getPassName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66974, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "Function", "*", "NewFunc", "=", "CloneFunction", "(", "F", ",", "VMap", ",", "false", ")", ";", "NewFunc", "->", "setLinkage", "(", "GlobalValue", "::", "InternalLinkage", ")", ";", "F", "->", "getParent", "(", ")", "->", "getFunctionList", "(", ")", ".", "push_back", "(", "NewFunc", ")", ";", "F", "->", "replaceAllUsesWith", "(", "NewFunc", ")", ";", "}", "for", "(", "Module", "::", "iterator", "I", "=", "M", ".", "begin", "(", ")", ",", "E", "=", "M", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "Function", "&", "F", "=", "*", "I"], "ground_truth": [";"], "File": "HSAILAlwaysInlinePass", "Func": "runOnModule", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66975, "Length": 81, "Cover_Rate": 0.36160714285714285} {"Template_token": ["", "static", "bool", "canInitAddressSpace", "(", "unsigned", "AS", ")", "{", "return", "AS", "==", ""], "ground_truth": ["||", "AS", "==", "", ";"], "File": "HSAILAsmPrinter", "Func": "canInitAddressSpace", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66976, "Length": 17, "Cover_Rate": 0.7727272727272727} {"Template_token": ["", "IsFullProfile", "=", "true", ";", "IsGCN", "=", "false", ";", "HasImages", "=", "false", ";", "for", "(", "const", "Function", "&", "F", ":", "M", ")", "{", "const", "Subtarget", "&", "ST", "=", "TM", ".", "getSubtarget", "<", "Subtarget", ">", "(", "F", ")", ";", "if", "(", "ST", ".", "isGCN", "(", ")", ")", "IsGCN", "=", "true", ";", "if", "(", "ST", ".", "hasImages", "(", ")", ")"], "ground_truth": ["HasImages", "=", "true", ";"], "File": "HSAILAsmPrinter", "Func": "checkModuleSubtargetExtensions", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66977, "Length": 61, "Cover_Rate": 0.6421052631578947} {"Template_token": ["", "void", "AsmPrinter", "::", "computeStackUsage", "(", "const", "MachineFrameInfo", "*", "MFI", ",", "uint64_t", "&", "PrivateSize", ",", "unsigned", "&", "PrivateAlign", ",", "uint64_t", "&", "SpillSize", ",", "unsigned", "&", "SpillAlign", ")", "const", "{", "SpillSize", "=", "", ";", "PrivateSize", "=", "", ";", "PrivateAlign", "=", "", ";", "SpillAlign", "=", "", ";", "for", "(", "int", "I", "=", "MFI", "->", "getObjectIndexBegin", "(", ")", ",", "E", "=", "MFI", "->", "getObjectIndexEnd", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "if", "(", "MFI", "->", "isDeadObjectIndex", "(", "I", ")", ")", "continue", ";", "if", "(", "MFI", "->", "isSpillSlotObjectIndex", "(", "I", ")", ")", "{", "assert", "(", "SpillSize", "==", "", "&&", "", ")", ";", "SpillSize", "=", "MFI", "->", "getObjectSize", "(", "I", ")", ";", "SpillAlign", "=", "MFI", "->", "getObjectAlignment", "(", "I", ")", ";", "}", "else", "{", "assert", "(", "PrivateSize", "==", "", "&&", "", ")", ";", "PrivateSize", "=", "MFI", "->", "getObjectSize"], "ground_truth": ["(", "I", ")", ";"], "File": "HSAILAsmPrinter", "Func": "computeStackUsage", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66978, "Length": 140, "Cover_Rate": 0.9210526315789473} {"Template_token": ["", "bool", "AsmPrinter", "::", "doFinalization", "(", "Module", "&", "M", ")", "{", "EmitEndOfAsmFile", "(", "M", ")", ";", "return", "false"], "ground_truth": [";"], "File": "HSAILAsmPrinter", "Func": "doFinalization", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66979, "Length": 18, "Cover_Rate": 0.9473684210526315} {"Template_token": ["", "}", "O", "<<", "(", "IsKernel", "?", "", ":", "", ")", "<<", "'_'", "<<", "getArgTypeName", "(", "EltTy", ",", "IsSExt", ")", "<<", "' '", "<<", "'%'", ";", "if", "(", "MF", ")", "{", "const", "ParamManager", "&", "PM", "=", "MF", "->", "getInfo", "<", "MachineFunctionInfo", ">", "(", ")", "->", "getParamManager", "(", ")", ";", "O", "<<", "PM", ".", "getParamName", "(", "ParamIndex", ")", ";", "}", "else", "{", "StringRef", "Name", "=", "A", ".", "getName", "(", ")", ";", "if", "(", "Name", ".", "empty", "(", ")", ")", "O", "<<", "", "<<", "ParamIndex", ";", "else", "O", "<<"], "ground_truth": ["Name", ";"], "File": "HSAILAsmPrinter", "Func": "emitFunctionArgument", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66980, "Length": 87, "Cover_Rate": 0.4264705882352941} {"Template_token": ["", "OutStreamer", "->", "EmitRawText", "("], "ground_truth": ["", ")", ";"], "File": "HSAILAsmPrinter", "Func": "EmitFunctionBodyEnd", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66981, "Length": 7, "Cover_Rate": 0.4666666666666667} {"Template_token": ["", "OutStreamer", "->", "EmitRawText", "("], "ground_truth": ["", ")", ";"], "File": "HSAILAsmPrinter", "Func": "EmitFunctionBodyEnd", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66982, "Length": 7, "Cover_Rate": 0.4666666666666667} {"Template_token": ["", "}", "}", "if", "(", "ChangeName", ")", "{", "(", "const_cast", "<", "GlobalVariable", "*", ">", "(", "&", "GV", ")", ")", "->", "setName", "(", "str", ")", ";", "}", "O", "<<", "'\\t'", ";", "Type", "*", "InitTy", "=", "Ty", "->", "getElementType", "(", ")", ";", "unsigned", "NElts", "=", "~", "", ";", "Type", "*", "EmitTy", "=", "", "(", "InitTy", ",", "NElts", ",", "DL", ")", ";", "printAlignTypeQualifier", "(", "GV", ",", "DL", ",", "InitTy", ",", "EmitTy", ",", "NElts", ",", "true", ",", "O", ")", ";", "str", "=", "", ";", "O", "<<", "'_'", "<<", "getArgTypeName", "(", "EmitTy", ")", "<<", "", "<<", "GV", ".", "getName", "(", ")", ";", "if", "(", "NElts", "!=", "", ")", "O", "<<", "'['", "<<", "NElts", "<<", "']'", ";", "if", "(", "GV", ".", "hasInitializer", "(", ")", "&&", "canInitAddressSpace", "(", "AS", ")", ")", "{", "O", "<<", "", ";", "printGVInitialValue", "(", "GV", ",", "cast", "<", "Constant", ">", "(", "GV", ".", "getInitializer", "(", ")", ")", ",", "DL", ",", "O", ")", ";", "}", "}", "}", "}", "const", "MachineFrameInfo", "*", "MFI", "=", "MF", "->", "getFrameInfo", "(", ")", ";", "uint64_t", "SpillSize", ",", "PrivateSize", ";", "unsigned", "PrivateAlign", ",", "SpillAlign", ";", "computeStackUsage", "(", "MFI", ",", "PrivateSize", ",", "PrivateAlign", ",", "SpillSize", ",", "SpillAlign", ")", ";", "if", "(", "PrivateSize", "!=", "", ")", "{", "O", "<<", "", "<<", "PrivateAlign", "<<", "", "<<", "PrivateSize", "<<", "", ";", "}", "if", "(", "SpillSize", "!=", "", ")", "{", "O", "<<", "", "<<", "SpillAlign", "<<", "", "<<", "SpillSize", "<<", "", ";", "}", "const", "MachineFunctionInfo", "*", "Info", "=", "MF", "->", "getInfo", "<", "MachineFunctionInfo", ">", "(", ")", ";", "if", "(", "Info", "->", "hasScavengerSpill", "(", ")", ")", "O", "<<", "", ";", "if", "(", "usesGCNAtomicCounter", "(", ")", ")", "O", "<<", "", ";", "OutStreamer", "->", "EmitRawText", "(", "O", ".", "str"], "ground_truth": ["(", ")", ")", ";"], "File": "HSAILAsmPrinter", "Func": "EmitFunctionBodyStart", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66983, "Length": 274, "Cover_Rate": 0.3103057757644394} {"Template_token": ["", "const", "Function", "*", "F", "=", "MF", "->", "getFunction", "(", ")", ";", "if", "(", "isProgramLinkage", "(", "*", "F", ")", ")", "O", "<<", "", ";", "emitFunctionLabel", "(", "*", "F", ",", "O", ",", "false", ")", ";", "O", "<<", ""], "ground_truth": [";"], "File": "HSAILAsmPrinter", "Func": "EmitFunctionEntryLabel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66984, "Length": 37, "Cover_Rate": 0.5522388059701493} {"Template_token": ["", "void", "AsmPrinter", "::", "EmitFunctionHeader", "(", ")", "{", "const", "Function", "*", "F", "=", "MF"], "ground_truth": ["->", "getFunction", "(", ")", ";"], "File": "HSAILAsmPrinter", "Func": "EmitFunctionHeader", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66985, "Length": 18, "Cover_Rate": 0.42857142857142855} {"Template_token": ["", "OutStreamer", "->", "SwitchSection", "(", "getObjFileLowering", "(", ")", ".", "SectionForGlobal", "(", "F", ",", "*"], "ground_truth": ["Mang", ",", "TM", ")", ")", ";"], "File": "HSAILAsmPrinter", "Func": "EmitFunctionHeader", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66986, "Length": 19, "Cover_Rate": 0.4523809523809524} {"Template_token": ["", "const", "auto", "&", "RetAttrs", "=", "F", ".", "getAttributes", "(", ")", ".", "getRetAttributes", "(", ")", ";", "bool", "IsSExt", "=", "RetAttrs", ".", "hasAttribute", "(", "AttributeSet", "::", "ReturnIndex", ",", "Attribute", "::", "SExt", ")", ";", "bool", "IsZExt", "=", "RetAttrs", ".", "hasAttribute", "(", "AttributeSet", "::", "ReturnIndex", ",", "Attribute", "::", "ZExt", ")", ";", "if", "(", "IsSExt", "||", "IsZExt", ")", "{", "emitFunctionReturn", "(", "Type", "::", "getInt32Ty", "(", "RetTy", "->", "getContext", "(", ")", ")", ",", "RetName", ",", "IsKernel", ",", "IsSExt", ",", "O", ")", ";", "}", "else", "emitFunctionReturn", "(", "RetTy", ",", "RetName", ",", "IsKernel", ",", "IsSExt", ",", "O", ")", ";", "}", "O", "<<", "", ";", "}", "const", "auto", "&", "Attrs", "=", "F", ".", "getAttributes", "(", ")", ";", "unsigned", "NArgs", "=", "F", ".", "arg_size", "(", ")", ";", "if", "(", "NArgs", "==", "", ")", "{", "O", "<<", "')'", ";", "}", "else", "if", "(", "NArgs", "==", "", ")", "{", "bool", "IsSExt", "=", "Attrs", ".", "hasAttribute", "(", "", ",", "Attribute", "::", "SExt", ")", ";", "emitFunctionArgument", "(", "", ",", "*", "F", ".", "arg_begin", "(", ")", ",", "IsKernel", ",", "IsSExt", ",", "O", ")", ";", "O", "<<", "')'", ";", "}", "else", "{", "O", "<<", "", ";", "unsigned", "Index"], "ground_truth": ["=", "", ";"], "File": "HSAILAsmPrinter", "Func": "emitFunctionLabel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66987, "Length": 185, "Cover_Rate": 0.4719387755102041} {"Template_token": ["", "if", "(", "NElts", ">", "", ")", "{", "unsigned", "ABIAlign", "=", "DL", ".", "getABITypeAlignment", "(", "Ty", ")", ";", "if", "(", "ABIAlign", "!=", "DL", ".", "getABITypeAlignment", "(", "EltTy", ")", ")", "O", "<<", "", "<<", "ABIAlign", "<<", "", ";", "}", "O", "<<", "(", "IsKernel", "?", "", ":", "", ")", "<<", "'_'", "<<", "getArgTypeName", "(", "EltTy", ",", "IsSExt", ")", "<<", "' '", "<<", "'%'"], "ground_truth": ["<<", "Name", ";"], "File": "HSAILAsmPrinter", "Func": "emitFunctionReturn", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66988, "Length": 62, "Cover_Rate": 0.4732824427480916} {"Template_token": ["", "void", "AsmPrinter", "::", "emitFunctionReturn", "(", "Type", "*", "Ty", ",", "StringRef", "Name", ",", "bool", "IsKernel", ",", "bool", "IsSExt", ",", "raw_ostream", "&", "O", ")", "const", "{", "const", "DataLayout", "&", "DL", "=", "getDataLayout", "(", ")", ";", "unsigned", "NElts", "=", "~", "", ";", "Type", "*", "EltTy", "=", "", "(", "Ty", ",", "NElts", ",", "DL", ")", ";", "if", "(", "NElts", ">", "", ")", "{", "unsigned", "ABIAlign", "=", "DL", ".", "getABITypeAlignment", "(", "Ty", ")", ";", "if", "(", "ABIAlign", "!=", "DL", ".", "getABITypeAlignment", "(", "EltTy", ")", ")", "O", "<<", "", "<<"], "ground_truth": ["ABIAlign", "<<", "", ";"], "File": "HSAILAsmPrinter", "Func": "emitFunctionReturn", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66989, "Length": 88, "Cover_Rate": 0.6717557251908397} {"Template_token": ["", "for", "(", "const", "GlobalVariable", "&", "GV", ":", "M", ".", "globals", "(", ")", ")", "{", "unsigned", "AS", "=", "GV", ".", "getType", "(", ")", "->", "getAddressSpace", "(", ")", ";", "if", "(", "AS", "!=", "", "&&", "AS", "!=", "", ")", "EmitGlobalVariable", "(", "&", "GV", ")", ";", "}", "for", "(", "const", "Function", "&", "F", ":", "M", ")", "{", "if", "(", "F", ".", "isIntrinsic", "(", ")", ")", "continue", ";", "if", "(", "F", ".", "isDeclaration", "(", ")", "&&", "isModuleLinkage", "(", "F", ")", ")", "continue", ";", "if", "(", "!", "", "(", "&", "F", ")", "&&", "!", "isInstrinsic", "(", "F", ".", "getName", "(", ")", ")", ")", "{", "Str", ".", "clear", "(", ")", ";", "O", "<<", "", ";", "if", "(", "isProgramLinkage", "(", "F", ")", ")", "O", "<<"], "ground_truth": ["", ";"], "File": "HSAILAsmPrinter", "Func": "EmitStartOfAsmFile", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66990, "Length": 120, "Cover_Rate": 0.42704626334519574} {"Template_token": ["", "case", "Type", "::", "PointerTyID", ":", "{", "const", "PointerType", "*", "PT", "=", "cast", "<", "PointerType", ">", "(", "Ty", ")", ";", "const", "StructType", "*", "ST", "=", "dyn_cast", "<", "StructType", ">", "(", "PT", "->", "getElementType", "(", ")", ")", ";", "if", "(", "ST", "&&", "ST", "->", "isOpaque", "(", ")", ")", "{", "StringRef", "Name", "=", "ST", "->", "getName", "(", ")", ";", "if", "(", "Name", ".", "startswith", "(", "", ")", "||", "Name", ".", "startswith", "(", "", ")", "||", "Name", ".", "startswith", "(", "", ")", "||", "Name", ".", "startswith", "(", "", ")", "||", "Name", ".", "startswith", "(", "", ")", "||", "Name", ".", "startswith", "(", "", ")", ")", "{", "return", "", ";", "}", "else", "if", "(", "Name", ".", "startswith", "(", "", ")", ")", "{", "return", "", ";", "}", "else", "if", "(", "Name", "==", "", "||", "Name", "==", "", ")", "{", "const", "DataLayout", "&", "DL", "=", "getDataLayout", "(", ")", ";", "return", "DL", ".", "getPointerSize", "(", "", ")", "==", "", "?", "", ":", "", ";", "}", "else", "{", "llvm_unreachable", "("], "ground_truth": ["", ")", ";"], "File": "HSAILAsmPrinter", "Func": "getArgTypeName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66991, "Length": 163, "Cover_Rate": 0.444141689373297} {"Template_token": ["", "unsigned", "AS", "=", "GV", "->", "getType", "(", ")", "->", "getAddressSpace", "(", ")", ";", "NameStr", "+=", "getSymbolPrefixForAddressSpace", "(", "AS", ")", ";", "}", "SmallString", "<", "", ">", "Mangled", ";", "SmallString", "<", "", ">", "Sanitized", ";", "getNameWithPrefix", "(", "Mangled", ",", "GV", ")", ";", "NameStr", "+=", "Mangled", ";", "if", "(", "", "(", "Mangled", ",", "Sanitized", ")", ")", "NameStr", "+="], "ground_truth": ["Sanitized", ";"], "File": "HSAILAsmPrinter", "Func": "getHSAILMangledName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66992, "Length": 57, "Cover_Rate": 0.3958333333333333} {"Template_token": ["", "assert", "(", "GV", "&&", "", ")", ";", "unsigned", "AS", "=", "GV", "->", "getType", "(", ")", "->"], "ground_truth": ["getAddressSpace", "(", ")", ";"], "File": "HSAILAsmPrinter", "Func": "getSymbolPrefix", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66993, "Length": 20, "Cover_Rate": 0.3389830508474576} {"Template_token": ["", "char", "AsmPrinter", "::", "getSymbolPrefixForAddressSpace", "(", "unsigned", "AS", ")", "{", "return", "(", "AS", "==", "", "||", "AS", "==", ""], "ground_truth": [")", "?", "'%'", ":", "'&'", ";"], "File": "HSAILAsmPrinter", "Func": "getSymbolPrefixForAddressSpace", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66994, "Length": 24, "Cover_Rate": 0.8275862068965517} {"Template_token": ["", "if", "(", "(", "", ")", "", "!=", "getIntrinsicForGCCBuiltin", "(", "", ",", "str", ".", "data", "(", ")", ")", ")", "return", "true", ";", "return", "str", ".", "startswith", "(", "StringRef", "(", ""], "ground_truth": [")", ")", ";"], "File": "HSAILAsmPrinter", "Func": "isHSAILInstrinsic", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66995, "Length": 32, "Cover_Rate": 0.6956521739130435} {"Template_token": ["", "if", "(", "(", "", ")", "", "!=", "getIntrinsicForGCCBuiltin", "(", "", ",", "str", ".", "data", "(", ")", ")", ")", "return", "true", ";", "return", "str", ".", "startswith", "(", "StringRef", "(", ""], "ground_truth": [")", ")", ";"], "File": "HSAILAsmPrinter", "Func": "isHSAILInstrinsic", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66996, "Length": 32, "Cover_Rate": 0.6956521739130435} {"Template_token": ["", "return", "!", "isProgramLinkage", "(", "GV"], "ground_truth": [")", ";"], "File": "HSAILAsmPrinter", "Func": "isModuleLinkage", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66997, "Length": 7, "Cover_Rate": 0.3888888888888889} {"Template_token": ["", "case", "GlobalValue", "::", "WeakAnyLinkage", ":", "case", "GlobalValue", "::", "WeakODRLinkage", ":", "case", "GlobalValue", "::", "AvailableExternallyLinkage", ":", "case", "GlobalValue", "::", "ExternalWeakLinkage", ":", "case", "GlobalValue", "::", "AppendingLinkage", ":", "return", "true", ";", "default", ":", "return"], "ground_truth": ["false", ";"], "File": "HSAILAsmPrinter", "Func": "isProgramLinkage", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66998, "Length": 33, "Cover_Rate": 0.559322033898305} {"Template_token": ["", "if", "(", "Alignment", "==", "", ")", "Alignment", "=", "DL", ".", "getPrefTypeAlignment", "(", "InitTy", ")", ";", "else", "{", "unsigned", "NaturalAlign", "=", "IsLocal", "?", "DL", ".", "getPrefTypeAlignment", "(", "EmitTy", ")", ":", "DL", ".", "getABITypeAlignment", "(", "EmitTy", ")", ";", "Alignment", "=", "std", "::", "max", "(", "Alignment", ",", "NaturalAlign", ")", ";", "}", "if", "(", "Alignment", "<", "", "&&", "NElts", "!=", "", ")"], "ground_truth": ["Alignment", "=", "", ";"], "File": "HSAILAsmPrinter", "Func": "printAlignTypeQualifier", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 66999, "Length": 62, "Cover_Rate": 0.5} {"Template_token": ["", "void", "AsmPrinter", "::", "printConstantFP", "(", "const", "ConstantFP", "*", "CFP", ",", "raw_ostream", "&", "O", ")", "{", "uint64_t", "Val", "=", "CFP", "->", "getValueAPF", "(", ")", ".", "bitcastToAPInt", "(", ")", ".", "getZExtValue", "(", ")", ";", "if", "(", "CFP", "->", "getType", "(", ")", "->", "isFloatTy", "(", ")", ")", "printFloat", "(", "static_cast", "<", "uint32_t", ">", "(", "Val", ")", ",", "O", ")", ";", "else", "if", "(", "CFP", "->", "getType", "(", ")", "->", "isDoubleTy", "(", ")", ")", "printDouble", "(", "Val", ",", "O", ")", ";", "else", "llvm_unreachable", "("], "ground_truth": ["", ")", ";"], "File": "HSAILAsmPrinter", "Func": "printConstantFP", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67000, "Length": 83, "Cover_Rate": 0.9880952380952381} {"Template_token": ["", "O", "<<", "format", "(", ""], "ground_truth": ["PRIx64", ",", "Val", ")", ";"], "File": "HSAILAsmPrinter", "Func": "printDouble", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67001, "Length": 10, "Cover_Rate": 0.4166666666666667} {"Template_token": ["", "void", "AsmPrinter", "::", "printFloat", "(", "uint32_t", "Val", ","], "ground_truth": ["raw_ostream", "&", "O", ")", "{"], "File": "HSAILAsmPrinter", "Func": "printFloat", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67002, "Length": 13, "Cover_Rate": 0.5416666666666666} {"Template_token": ["", "O", "<<", "format", "(", ""], "ground_truth": ["PRIx32", ",", "Val", ")", ";"], "File": "HSAILAsmPrinter", "Func": "printFloat", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67003, "Length": 10, "Cover_Rate": 0.4166666666666667} {"Template_token": ["", "}", "unsigned", "NElts", "=", "", ";", "Type", "*", "EltTy", "=", "", "(", "CV", "->", "getType", "(", ")", ",", "NElts", ",", "DL", ")", ";", "unsigned", "EltSize", "=", "DL", ".", "getTypeAllocSize", "(", "EltTy", ")", ";", "SmallVector", "<", "AddrInit", ",", "", ">", "AddrInits", ";", "StoreInitializer", "store", "(", "EltTy", ",", "*", "this", ")", ";", "store", ".", "append", "(", "CV", ",", "GV", ".", "getName", "(", ")", ")", ";", "if", "(", "NElts", "!=", "", ")", "O", "<<", "getArgTypeName", "(", "EltTy", ")", "<<", "", ";", "store", ".", "print", "(", "O", ")", ";", "if", "(", "NElts", "!=", "", ")", "O", "<<", "')'", ";", "O", "<<", "';'", ";", "if", "(", "!", "store", ".", "varInitAddresses", "(", ")", ".", "empty", "(", ")", ")", "O", "<<", "'\\n'", ";", "for", "(", "const", "auto", "&", "VarInit", ":", "store", ".", "varInitAddresses", "("], "ground_truth": [")", ")", "{"], "File": "HSAILAsmPrinter", "Func": "printGVInitialValue", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67004, "Length": 130, "Cover_Rate": 0.4304635761589404} {"Template_token": ["", "assert", "(", "!", "Val", ".", "getSymB", "(", ")", "&&", "", ")", ";", "O", "<<", "", "<<", "VarName", "<<", "':'", "<<", "BaseOffset", "<<", "':'", "<<", "EltSize", "<<", "':'", ";", "if", "(", "const", "MCSymbolRefExpr", "*", "SymA", "=", "Val", ".", "getSymA", "(", ")", ")", "{", "const", "MCSymbol", "&", "Sym", "=", "SymA", "->", "getSymbol", "(", ")", ";", "O", "<<", "getSymbolPrefix", "(", "Sym", ")", "<<", "Sym", ".", "getName"], "ground_truth": ["(", ")", ";"], "File": "HSAILAsmPrinter", "Func": "printInitVarWithAddressPragma", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67005, "Length": 66, "Cover_Rate": 0.4583333333333333} {"Template_token": ["", "MCValue", "Val", ";", "bool", "Res", "=", "Expr", "->", "evaluateAsRelocatable", "(", "Val", ",", "nullptr", ",", "nullptr", ")", ";", "(", "void", ")", "Res", ";", "assert", "(", "Res", "&&", "", ")", ";", "assert", "(", "!", "Val", ".", "getSymB", "(", ")", "&&", "", ")", ";", "O", "<<", "", "<<", "VarName", "<<", "':'", "<<", "BaseOffset", "<<", "':'", "<<", "EltSize", "<<", "':'", ";", "if", "(", "const", "MCSymbolRefExpr", "*", "SymA", "=", "Val", ".", "getSymA", "(", ")", ")", "{", "const", "MCSymbol", "&", "Sym", "=", "SymA", "->", "getSymbol", "("], "ground_truth": [")", ";"], "File": "HSAILAsmPrinter", "Func": "printInitVarWithAddressPragma", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67006, "Length": 82, "Cover_Rate": 0.5694444444444444} {"Template_token": ["", "static", "void", "printSimpleZeroInit", "(", "raw_ostream", "&", "O", ",", "bool", "IsFloat", ",", "bool", "IsDouble", ")", "{", "O", "<<"], "ground_truth": ["'0'", ";"], "File": "HSAILAsmPrinter", "Func": "printSimpleZeroInit", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67007, "Length": 19, "Cover_Rate": 0.5135135135135135} {"Template_token": ["", "SetupMachineFunction", "(", "MF", ")", ";", "SmallString", "<", "", ">", "Name", ";", "getMangledName", "(", "Name", ",", "MF", ".", "getFunction", "(", ")", ")", ";", "CurrentFnSym", "=", "OutContext", ".", "getOrCreateSymbol", "(", "Name", ")", ";", "OutStreamer", "->", "SwitchSection", "(", "getObjFileLowering", "(", ")", ".", "getTextSection", "(", ")", ")", ";", "EmitFunctionBody", "(", ")"], "ground_truth": [";"], "File": "HSAILAsmPrinter", "Func": "runOnMachineFunction", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67008, "Length": 48, "Cover_Rate": 0.7741935483870968} {"Template_token": ["", "bool", "hasFP", "(", "const", "MachineFunction", "&"], "ground_truth": ["MF", ")", "const", "override", "{"], "File": "HSAILFrameLowering", "Func": "hasFP", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67009, "Length": 11, "Cover_Rate": 0.7333333333333333} {"Template_token": ["", "bool", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "override", "{", "return"], "ground_truth": ["false", ";"], "File": "HSAILFrameLowering", "Func": "hasFP", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67010, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "unsigned", "SpillAlign", "=", "", ";", "unsigned", "PrivateAlign", "=", "", ";", "for", "(", "int", "I", "=", "MFI", "->", "getObjectIndexBegin", "(", ")", ",", "E", "=", "MFI", "->", "getObjectIndexEnd", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "if", "(", "MFI", "->", "isDeadObjectIndex", "(", "I", ")", ")", "continue", ";", "unsigned", "Size", "=", "MFI", "->", "getObjectSize", "(", "I", ")", ";", "unsigned", "Align", "=", "MFI", "->", "getObjectAlignment", "(", "I", ")", ";", "unsigned", "Offset", "=", "MFI", "->", "getObjectOffset", "(", "I", ")", ";", "assert", "(", "Offset", "==", "", "&&", "", ")", ";", "if", "(", "MFI", "->", "isSpillSlotObjectIndex", "(", "I", ")", ")", "{", "SpillSize", "=", "(", "SpillSize", "+", "Align", "-", "", ")", "/", "Align", "*", "Align", ";", "SpillMap", "[", "I", "]", "=", "SpillSize", ";", "SpillSize", "+=", "Size", ";", "SpillAlign", "=", "std", "::", "max", "(", "SpillAlign", ",", "Align", ")", ";", "}", "else", "{", "PrivateSize", "=", "(", "PrivateSize", "+", "Align", "-", "", ")", "/", "Align", "*", "Align", ";", "PrivateMap", "[", "I", "]", "=", "PrivateSize", ";", "PrivateSize", "+=", "Size", ";", "PrivateAlign", "=", "std", "::", "max", "(", "PrivateAlign", ",", "Align", ")", ";", "}", "MFI", "->", "RemoveStackObject", "(", "I", ")", ";", "}", "int", "PrivateIndex", "=", "-", "", ";", "int", "SpillIndex", "=", "-", "", ";", "if", "(", "PrivateSize", "!=", "", ")", "PrivateIndex", "=", "MFI", "->", "CreateStackObject", "(", "PrivateSize", ",", "PrivateAlign", ",", "false", ")", ";", "if", "(", "SpillSize", "!=", "", ")", "SpillIndex", "=", "MFI", "->", "CreateSpillStackObject", "(", "SpillSize", ",", "SpillAlign", ")", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "{", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "{", "unsigned", "Opc", "=", "MI", ".", "getOpcode", "("], "ground_truth": [")", ";"], "File": "HSAILFrameLowering", "Func": "processFunctionBeforeFrameFinalized", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67011, "Length": 256, "Cover_Rate": 0.579185520361991} {"Template_token": ["", "unsigned", "PrivateAlign", "=", "", ";", "for", "(", "int", "I", "=", "MFI", "->", "getObjectIndexBegin", "(", ")", ",", "E", "=", "MFI", "->", "getObjectIndexEnd", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "if", "(", "MFI", "->", "isDeadObjectIndex", "(", "I", ")", ")", "continue", ";", "unsigned", "Size", "=", "MFI", "->", "getObjectSize", "(", "I", ")", ";", "unsigned", "Align", "=", "MFI", "->", "getObjectAlignment", "(", "I", ")", ";", "unsigned", "Offset", "=", "MFI", "->", "getObjectOffset", "(", "I", ")", ";", "assert", "(", "Offset", "==", "", "&&", "", ")", ";", "if", "(", "MFI", "->", "isSpillSlotObjectIndex", "(", "I", ")", ")", "{", "SpillSize", "=", "(", "SpillSize", "+", "Align", "-", "", ")", "/", "Align", "*", "Align", ";", "SpillMap", "[", "I", "]", "=", "SpillSize", ";", "SpillSize", "+=", "Size", ";", "SpillAlign", "=", "std", "::", "max", "(", "SpillAlign", ",", "Align", ")", ";", "}", "else", "{", "PrivateSize", "=", "(", "PrivateSize", "+", "Align", "-", "", ")", "/", "Align", "*", "Align", ";", "PrivateMap", "[", "I", "]", "=", "PrivateSize", ";", "PrivateSize", "+=", "Size", ";", "PrivateAlign", "=", "std", "::", "max", "(", "PrivateAlign", ",", "Align", ")", ";", "}", "MFI", "->", "RemoveStackObject", "(", "I", ")", ";", "}", "int", "PrivateIndex", "=", "-", "", ";", "int", "SpillIndex", "=", "-", "", ";", "if", "(", "PrivateSize", "!=", "", ")", "PrivateIndex", "=", "MFI", "->", "CreateStackObject", "(", "PrivateSize", ",", "PrivateAlign", ",", "false", ")", ";", "if", "(", "SpillSize", "!=", "", ")", "SpillIndex", "=", "MFI", "->", "CreateSpillStackObject", "(", "SpillSize", ",", "SpillAlign", ")", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "{", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "{", "unsigned", "Opc", "=", "MI", ".", "getOpcode", "(", ")", ";", "int", "AddrIdx", "=", "", "(", "Opc", ",", "", "::", "address", ")", ";", "if", "(", "AddrIdx", "==", "-", "", ")", "{", "continue", ";", "}", "MachineOperand", "&", "Base", "=", "MI", ".", "getOperand", "(", "AddrIdx", ")", ";", "if", "(", "!", "Base", ".", "isFI", "(", ")", ")", "continue", ";", "int", "Index", "=", "Base", ".", "getIndex", "(", ")", ";", "MachineOperand", "&", "Offset", "=", "MI", ".", "getOperand", "(", "AddrIdx", "+", "", ")", ";", "int64_t", "OrigOffset", "=", "Offset", ".", "getImm", "(", ")", ";", "if", "(", "MFI", "->", "isSpillSlotObjectIndex", "(", "Index", ")", ")", "{", "Base", ".", "setIndex", "(", "SpillIndex", ")", ";", "Offset", ".", "setImm", "(", "SpillMap", "[", "Index", "]", "+", "OrigOffset", ")", ";", "}", "else", "{", "Base", ".", "setIndex", "(", "PrivateIndex", ")", ";", "Offset", ".", "setImm", "(", "PrivateMap", "["], "ground_truth": ["Index", "]", "+", "OrigOffset", ")", ";"], "File": "HSAILFrameLowering", "Func": "processFunctionBeforeFrameFinalized", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67012, "Length": 378, "Cover_Rate": 0.8552036199095022} {"Template_token": ["", "int64_t", "Offset", "=", "OffsetOp", ".", "getImm", "(", ")", ";", "if", "(", "BaseOp", ".", "isReg", "(", ")", ")", "{", "assert", "(", "BaseOp", ".", "getReg", "(", ")", "==", "", ")", ";", "}", "else", "if", "(", "BaseOp", ".", "isExpr", "(", ")", ")", "{", "O", "<<", "'['", ";", "BaseOp", ".", "getExpr", "(", ")", "->", "print", "(", "O", ",", "&", "MAI", ")", ";", "O", "<<", "']'", ";", "}", "else", "if", "(", "BaseOp", ".", "isImm", "(", ")", ")", "O", "<<", "BaseOp", ".", "getImm", "(", ")", ";", "else", "llvm_unreachable", "(", "", ")", ";", "if", "(", "AddrReg", "!=", "", "&&"], "ground_truth": ["Offset", "!=", "", ")", "{"], "File": "HSAILInstPrinter", "Func": "printAddrMode3Op", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67013, "Length": 97, "Cover_Rate": 0.3803921568627451} {"Template_token": ["", "void", "InstPrinter", "::", "printArgDeclAlignment", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "unsigned", "Align", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ";", "int", "TypeLengthIdx", "=", "", "(", "MI", "->", "getOpcode", "(", ")", ",", "", "::", "TypeLength", ")", ";", "BrigType", "BT", "=", "static_cast", "<", "BrigType", ">", "(", "MI", "->", "getOperand", "(", "TypeLengthIdx", ")", ".", "getImm", "(", ")", ")", ";", "if", "(", "!", "isNaturalAlignment", "(", "BT", ",", "Align", ")", ")", "O", "<<", "", "<<", "formatDec", "("], "ground_truth": ["Align", ")", "<<", "", ";"], "File": "HSAILInstPrinter", "Func": "printArgDeclAlignment", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67014, "Length": 89, "Cover_Rate": 0.9468085106382979} {"Template_token": ["", "int", "TypeLengthIdx", "=", "", "(", "MI", "->", "getOpcode", "(", ")", ",", "", "::", "TypeLength", ")", ";", "BrigType", "BT", "=", "static_cast", "<", "BrigType", ">", "(", "MI", "->", "getOperand", "(", "TypeLengthIdx", ")", ".", "getImm", "(", ")", ")", ";", "if", "(", "!", "isNaturalAlignment", "(", "BT", ",", "Align", ")", ")", "O"], "ground_truth": ["<<", "", "<<", "formatDec", "(", "Align", ")", "<<", "", ";"], "File": "HSAILInstPrinter", "Func": "printArgDeclAlignment", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67015, "Length": 57, "Cover_Rate": 0.6063829787234043} {"Template_token": ["", "printU32", "(", "MI", ",", "OpNo", ","], "ground_truth": ["O", ")", ";"], "File": "HSAILInstPrinter", "Func": "printB32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67016, "Length": 9, "Cover_Rate": 0.32142857142857145} {"Template_token": ["", "void", "InstPrinter", "::", "printB32", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream"], "ground_truth": ["&", "O", ")", "{"], "File": "HSAILInstPrinter", "Func": "printB32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67017, "Length": 18, "Cover_Rate": 0.6428571428571429} {"Template_token": ["", "void", "InstPrinter", "::", "printB64", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo"], "ground_truth": [",", "raw_ostream", "&", "O", ")", "{"], "File": "HSAILInstPrinter", "Func": "printB64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67018, "Length": 18, "Cover_Rate": 0.6428571428571429} {"Template_token": ["", "unsigned", "Align", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ";", "if", "(", "Align", "!=", "", ")", "O", "<<", "", "<<", "formatDec", "("], "ground_truth": ["Align", ")", "<<", "')'", ";"], "File": "HSAILInstPrinter", "Func": "printBrigAlignment", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67019, "Length": 31, "Cover_Rate": 0.62} {"Template_token": ["", "unsigned", "Align", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ";", "if", "(", "Align", "!=", "", ")", "O", "<<", "", "<<", "formatDec", "("], "ground_truth": ["Align", ")", "<<", "')'", ";"], "File": "HSAILInstPrinter", "Func": "printBrigAlignment", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67020, "Length": 31, "Cover_Rate": 0.62} {"Template_token": ["", "switch", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ")", "{", "case", "BRIG_ALU_FTZ"], "ground_truth": [":"], "File": "HSAILInstPrinter", "Func": "printBrigAluModifierMask", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67021, "Length": 17, "Cover_Rate": 0.3953488372093023} {"Template_token": ["", "break", ";", "case", "BRIG_COMPARE_LE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_GT", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_GE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_EQU", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_NEU", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_LTU", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_LEU", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_GTU", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_GEU", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_NUM", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_NAN", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_SEQ", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_SNE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_SLT", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_SLE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_SGT", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_SGE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_SGEU", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_SEQU"], "ground_truth": [":"], "File": "HSAILInstPrinter", "Func": "printBrigCompareOperation", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67022, "Length": 167, "Cover_Rate": 0.583916083916084} {"Template_token": ["", "break", ";", "case", "BRIG_CONTROL_MAXFLATWORKGROUPSIZE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CONTROL_REQUIREDDIM", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CONTROL_REQUIREDGRIDSIZE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CONTROL_REQUIREDWORKGROUPSIZE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CONTROL_REQUIRENOPARTIALWORKGROUPS"], "ground_truth": [":"], "File": "HSAILInstPrinter", "Func": "printBrigControlDirective", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67023, "Length": 41, "Cover_Rate": 0.3565217391304348} {"Template_token": ["", "case", "BRIG_CHANNEL_TYPE_SNORM_INT16", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_TYPE_UNORM_INT8", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_TYPE_UNORM_INT16", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_TYPE_UNORM_INT24", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_TYPE_UNORM_SHORT_555", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_TYPE_UNORM_SHORT_565", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_TYPE_UNORM_INT_101010", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_TYPE_SIGNED_INT8", ":", "O", "<<", ""], "ground_truth": [";"], "File": "HSAILInstPrinter", "Func": "printBrigImageChannelType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67024, "Length": 70, "Cover_Rate": 0.39325842696629215} {"Template_token": ["", "void", "InstPrinter", "::", "printBrigMachineModel", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream"], "ground_truth": ["&", "O", ")", "{"], "File": "HSAILInstPrinter", "Func": "printBrigMachineModel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67025, "Length": 18, "Cover_Rate": 0.34615384615384615} {"Template_token": ["", "case", "BRIG_MEMORY_SCOPE_WAVEFRONT", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_MEMORY_SCOPE_WORKGROUP", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_MEMORY_SCOPE_AGENT", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_MEMORY_SCOPE_SYSTEM", ":", "O", "<<"], "ground_truth": ["", ";"], "File": "HSAILInstPrinter", "Func": "printBrigMemoryScope", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67026, "Length": 34, "Cover_Rate": 0.4857142857142857} {"Template_token": ["", "switch", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ")", "{", "case", "BRIG_COORD_UNNORMALIZED", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COORD_NORMALIZED"], "ground_truth": [":"], "File": "HSAILInstPrinter", "Func": "printBrigSamplerCoordNormalization", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67027, "Length": 26, "Cover_Rate": 0.5} {"Template_token": ["", "switch", "(", "MI", "->", "getOperand", "(", "OpNo"], "ground_truth": [")", ".", "getImm", "(", ")", ")", "{"], "File": "HSAILInstPrinter", "Func": "printBrigSegCvtModifierMask", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67028, "Length": 14, "Cover_Rate": 0.32558139534883723} {"Template_token": ["", "void", "InstPrinter", "::", "printBrigSegCvtModifierMask", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "switch", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ")", "{", "case", "BRIG_SEG_CVT_NONULL"], "ground_truth": [":"], "File": "HSAILInstPrinter", "Func": "printBrigSegCvtModifierMask", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67029, "Length": 35, "Cover_Rate": 0.813953488372093} {"Template_token": ["", "O", "<<", "", ";", "break", ";", "case", "", ":", "O", "<<", "", ";", "break", ";", "case", "", ":", "O", "<<", "", ";", "break", ";", "case", "", ":", "O", "<<", "", ";", "break", ";", "case", "", ":", "O", "<<", "", ";", "break", ";", "case", "", ":", "O", "<<", "", ";", "break", ";", "case", "", ":", "O", "<<", "", ";", "break", ";", "case", "", ":", "{", "const", "MCInstrDesc", "&", "Desc", "=", "MII", ".", "get", "(", "MI", "->", "getOpcode", "(", ")", ")", ";", "if", "(", "Desc", ".", "TSFlags", "&", "", ")", "break", ";", "O", "<<", "", ";", "break", ";", "}", "default", ":", "llvm_unreachable", "(", "", ")", ";", "}", "switch", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ")", "{", "case", "BRIG_SEGMENT_GLOBAL", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_SEGMENT_READONLY"], "ground_truth": [":"], "File": "HSAILInstPrinter", "Func": "printBrigSegment", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67030, "Length": 131, "Cover_Rate": 0.5038461538461538} {"Template_token": ["", "switch", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ")", "{", "case", "BRIG_VARIABLE_DEFINITION", ":", "O", "<<", ""], "ground_truth": [";"], "File": "HSAILInstPrinter", "Func": "printBrigVariableModifierMask", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67031, "Length": 21, "Cover_Rate": 0.40384615384615385} {"Template_token": ["", "void", "InstPrinter", "::", "printEquiv", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "unsigned", "Equiv", "=", "MI", "->", "getOperand", "(", "OpNo", ")", "."], "ground_truth": ["getImm", "(", ")", ";"], "File": "HSAILInstPrinter", "Func": "printEquiv", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67032, "Length": 32, "Cover_Rate": 0.64} {"Template_token": ["", "void", "InstPrinter", "::", "printEquiv", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "unsigned", "Equiv", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ";", "if", "(", "Equiv", "!=", "", ")", "O", "<<", ""], "ground_truth": ["<<", "formatDec", "(", "Equiv", ")", "<<", "')'", ";"], "File": "HSAILInstPrinter", "Func": "printEquiv", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67033, "Length": 49, "Cover_Rate": 0.98} {"Template_token": ["", "void", "InstPrinter", "::", "printF16", "(", "const", "MCInst", "*", "MI", ","], "ground_truth": ["unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{"], "File": "HSAILInstPrinter", "Func": "printF16", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67034, "Length": 18, "Cover_Rate": 0.75} {"Template_token": ["", "void", "InstPrinter", "::", "printF32", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "if", "(", "Op", ".", "isFPImm", "(", ")", ")", "{", "O", "<<", "format", "(", "", "PRIx32", ",", "FloatToBits", "(", "static_cast", "<", "float", ">", "(", "Op", ".", "getFPImm", "(", ")", ")"], "ground_truth": [")", ")", ";"], "File": "HSAILInstPrinter", "Func": "printF32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67035, "Length": 62, "Cover_Rate": 0.7294117647058823} {"Template_token": ["", "if", "(", "Op", ".", "isFPImm", "(", ")", ")", "{", "O", "<<", "format", "(", "", "PRIx64", ",", "DoubleToBits", "(", "Op", ".", "getFPImm", "("], "ground_truth": [")", ")", ")", ";"], "File": "HSAILInstPrinter", "Func": "printF64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67036, "Length": 26, "Cover_Rate": 0.3291139240506329} {"Template_token": ["", "void", "InstPrinter", "::", "printNoNull", "(", "const", "MCInst", "*", "MI"], "ground_truth": [",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{"], "File": "HSAILInstPrinter", "Func": "printNoNull", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67037, "Length": 18, "Cover_Rate": 0.5} {"Template_token": ["", "const", "MCExpr", "*", "Exp", "=", "Op", ".", "getExpr", "(", ")", ";", "Exp", "->", "print", "(", "O", ",", "&", "MAI", ")", ";", "}", "else", "if", "(", "Op", ".", "isImm", "(", ")"], "ground_truth": ["||", "Op", ".", "isFPImm", "(", ")", ")", "{"], "File": "HSAILInstPrinter", "Func": "printOperand", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67038, "Length": 38, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "void", "InstPrinter", "::", "printS16X2", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "llvm_unreachable", "(", "", ")"], "ground_truth": [";"], "File": "HSAILInstPrinter", "Func": "printS16X2", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67039, "Length": 23, "Cover_Rate": 0.9583333333333334} {"Template_token": ["", "void", "InstPrinter", "::", "printS16X4", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo"], "ground_truth": [",", "raw_ostream", "&", "O", ")", "{"], "File": "HSAILInstPrinter", "Func": "printS16X4", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67040, "Length": 18, "Cover_Rate": 0.75} {"Template_token": ["", "void", "InstPrinter", "::", "printS16X4", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "llvm_unreachable", "(", ""], "ground_truth": [")", ";"], "File": "HSAILInstPrinter", "Func": "printS16X4", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67041, "Length": 23, "Cover_Rate": 0.9583333333333334} {"Template_token": ["", "void", "InstPrinter", "::", "printS32", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "if", "(", "Op", ".", "isImm", "(", ")", ")", "{", "O", "<<", "format", "(", "", "PRId32", ",", "Op", "."], "ground_truth": ["getImm", "(", ")", ")", ";"], "File": "HSAILInstPrinter", "Func": "printS32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67042, "Length": 53, "Cover_Rate": 0.803030303030303} {"Template_token": ["", "if", "(", "Op", ".", "isImm", "(", ")", ")", "{", "O", "<<", "format", "(", "", "PRId32", ",", "Op", ".", "getImm", "("], "ground_truth": [")", ")", ";"], "File": "HSAILInstPrinter", "Func": "printS32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67043, "Length": 23, "Cover_Rate": 0.3484848484848485} {"Template_token": ["", "void", "InstPrinter", "::", "printS32X2", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "llvm_unreachable", "(", ""], "ground_truth": [")", ";"], "File": "HSAILInstPrinter", "Func": "printS32X2", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67044, "Length": 23, "Cover_Rate": 0.9583333333333334} {"Template_token": ["", "void", "InstPrinter", "::", "printS8X4", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream"], "ground_truth": ["&", "O", ")", "{"], "File": "HSAILInstPrinter", "Func": "printS8X4", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67045, "Length": 18, "Cover_Rate": 0.75} {"Template_token": ["", "void", "InstPrinter", "::", "printS8X8", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&"], "ground_truth": ["O", ")", "{"], "File": "HSAILInstPrinter", "Func": "printS8X8", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67046, "Length": 18, "Cover_Rate": 0.75} {"Template_token": ["", "void", "InstPrinter", "::", "printS8X8", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "llvm_unreachable", "("], "ground_truth": ["", ")", ";"], "File": "HSAILInstPrinter", "Func": "printS8X8", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67047, "Length": 23, "Cover_Rate": 0.9583333333333334} {"Template_token": ["", "void", "InstPrinter", "::", "printSImmediate", "(", "int64_t", "Imm", ",", "raw_ostream"], "ground_truth": ["&", "O", ")", "{"], "File": "HSAILInstPrinter", "Func": "printSImmediate", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67048, "Length": 13, "Cover_Rate": 0.5416666666666666} {"Template_token": ["", "O", "<<", "format", "(", "", "PRId64", ","], "ground_truth": ["Imm", ")", ";"], "File": "HSAILInstPrinter", "Func": "printSImmediate", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67049, "Length": 10, "Cover_Rate": 0.4166666666666667} {"Template_token": ["", "O", "<<", "format", "(", "", "PRIu32", ",", "Op", ".", "getImm", "(", ")", ")", ";", "return", ";", "}", "printOperand", "(", "MI", ",", "OpNo", ","], "ground_truth": ["O", ")", ";"], "File": "HSAILInstPrinter", "Func": "printU32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67050, "Length": 26, "Cover_Rate": 0.3939393939393939} {"Template_token": ["", "const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "if", "(", "Op", ".", "isImm", "(", ")", ")", "{", "union", "Bytes", "{", "uint64_t", "I", ";", "uint32_t", "U32", "[", "", "]", ";", "}", "U", ";", "U", ".", "I", "=", "Op", ".", "getImm"], "ground_truth": ["(", ")", ";"], "File": "HSAILInstPrinter", "Func": "printU32X2", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67051, "Length": 46, "Cover_Rate": 0.45098039215686275} {"Template_token": ["", "void", "InstPrinter", "::", "printU64", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "if", "(", "Op", ".", "isImm", "("], "ground_truth": [")", ")", "{"], "File": "HSAILInstPrinter", "Func": "printU64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67052, "Length": 39, "Cover_Rate": 0.5909090909090909} {"Template_token": ["", "void", "InstPrinter", "::", "printU8X8", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ","], "ground_truth": ["raw_ostream", "&", "O", ")", "{"], "File": "HSAILInstPrinter", "Func": "printU8X8", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67053, "Length": 18, "Cover_Rate": 0.75} {"Template_token": ["", "O", "<<", "format", "(", ""], "ground_truth": ["PRIu64", ",", "Imm", ")", ";"], "File": "HSAILInstPrinter", "Func": "printUImmediate", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67054, "Length": 10, "Cover_Rate": 0.4166666666666667} {"Template_token": ["", "void", "InstPrinter", "::", "printV2F32", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "O", "<<"], "ground_truth": ["'('", ";"], "File": "HSAILInstPrinter", "Func": "printV2F32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67055, "Length": 22, "Cover_Rate": 0.41509433962264153} {"Template_token": ["", "O", "<<", "'('", ";", "printF32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printF32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "')'"], "ground_truth": [";"], "File": "HSAILInstPrinter", "Func": "printV2F32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67056, "Length": 34, "Cover_Rate": 0.6415094339622641} {"Template_token": ["", "O", "<<", "'('", ";", "printF64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printF64", "(", "MI", ",", "OpNo", "+", "", ","], "ground_truth": ["O", ")", ";"], "File": "HSAILInstPrinter", "Func": "printV2F64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67057, "Length": 30, "Cover_Rate": 0.5660377358490566} {"Template_token": ["", "O", "<<", "'('", ";", "printU32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printU32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "')'"], "ground_truth": [";"], "File": "HSAILInstPrinter", "Func": "printV2U32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67058, "Length": 34, "Cover_Rate": 0.6415094339622641} {"Template_token": ["", "O", "<<", "'('", ";", "printU64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<"], "ground_truth": ["", ";"], "File": "HSAILInstPrinter", "Func": "printV2U64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67059, "Length": 19, "Cover_Rate": 0.3584905660377358} {"Template_token": ["", "void", "InstPrinter", "::", "printV3F32", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "O", "<<", "'('", ";", "printF32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printF32", "(", "MI", ",", "OpNo", "+"], "ground_truth": ["", ",", "O", ")", ";"], "File": "HSAILInstPrinter", "Func": "printV3F32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67060, "Length": 48, "Cover_Rate": 0.7058823529411765} {"Template_token": ["", "O", "<<", "'('", ";", "printF32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printF32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printF32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<"], "ground_truth": ["')'", ";"], "File": "HSAILInstPrinter", "Func": "printV3F32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67061, "Length": 49, "Cover_Rate": 0.7205882352941176} {"Template_token": ["", "O", "<<", "'('", ";", "printF64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printF64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", ""], "ground_truth": [";"], "File": "HSAILInstPrinter", "Func": "printV3F64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67062, "Length": 34, "Cover_Rate": 0.5} {"Template_token": ["", "void", "InstPrinter", "::", "printV3F64", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "O", "<<", "'('", ";", "printF64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printF64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<"], "ground_truth": ["", ";"], "File": "HSAILInstPrinter", "Func": "printV3F64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67063, "Length": 52, "Cover_Rate": 0.7647058823529411} {"Template_token": ["", "O", "<<", "'('", ";", "printU32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printU32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<"], "ground_truth": ["", ";"], "File": "HSAILInstPrinter", "Func": "printV3U32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67064, "Length": 34, "Cover_Rate": 0.5} {"Template_token": ["", "printU32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printU32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<"], "ground_truth": ["", ";"], "File": "HSAILInstPrinter", "Func": "printV3U32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67065, "Length": 30, "Cover_Rate": 0.4411764705882353} {"Template_token": ["", "void", "InstPrinter", "::", "printV3U64", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "O", "<<", "'('", ";", "printU64", "(", "MI", ",", "OpNo"], "ground_truth": ["+", "", ",", "O", ")", ";"], "File": "HSAILInstPrinter", "Func": "printV3U64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67066, "Length": 33, "Cover_Rate": 0.4852941176470588} {"Template_token": ["", "printF32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printF32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printF32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<"], "ground_truth": ["", ";"], "File": "HSAILInstPrinter", "Func": "printV4F32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67067, "Length": 45, "Cover_Rate": 0.5421686746987951} {"Template_token": ["", "printU32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printU32", "(", "MI", ",", "OpNo", "+", ""], "ground_truth": [",", "O", ")", ";"], "File": "HSAILInstPrinter", "Func": "printV4U32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67068, "Length": 26, "Cover_Rate": 0.3132530120481928} {"Template_token": ["", "void", "InstPrinter", "::", "printV4U64", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "O", "<<", "'('", ";", "printU64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printU64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", ""], "ground_truth": [";"], "File": "HSAILInstPrinter", "Func": "printV4U64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67069, "Length": 52, "Cover_Rate": 0.6265060240963856} {"Template_token": ["", "O", "<<", "'('", ";", "printOperand", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<"], "ground_truth": ["", ";"], "File": "HSAILInstPrinter", "Func": "printVec2Op", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67070, "Length": 19, "Cover_Rate": 0.3584905660377358} {"Template_token": ["", "O", "<<", "'('", ";", "printOperand", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printOperand", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printOperand", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<"], "ground_truth": ["')'", ";"], "File": "HSAILInstPrinter", "Func": "printVec3Op", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67071, "Length": 49, "Cover_Rate": 0.7205882352941176} {"Template_token": ["", "bool", "InstrInfo", "::", "expandPostRAPseudo", "(", "MachineBasicBlock", "::", "iterator", "MBBI", ")", "const", "{", "MachineInstr", "&", "MI", "="], "ground_truth": ["*", "MBBI", ";"], "File": "HSAILInstrInfo", "Func": "expandPostRAPseudo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67072, "Length": 19, "Cover_Rate": 0.6785714285714286} {"Template_token": ["", "break", ";", "}", "}", "bool", "need_insert_not", "=", "false", ";", "if", "(", "cond_expr", "&&", "cond_expr", "->", "isCompare", "(", ")", ")", "{", "MachineOperand", "*", "CmpOp", "=", "TII", "->", "getNamedOperand", "(", "*", "cond_expr", ",", "", "::", "op", ")", ";", "BrigType", "CmpType", "=", "static_cast", "<", "BrigType", ">", "(", "TII", "->", "getNamedOperand", "(", "*", "cond_expr", ",", "", "::", "sourceType", ")", "->", "getImm", "(", ")", ")", ";", "BrigCompareOperation", "OrigOp", "=", "static_cast", "<", "BrigCompareOperation", ">", "(", "CmpOp", "->", "getImm", "(", ")", ")", ";", "BrigCompareOperation", "RevOp", "=", "isFPBrigType", "(", "CmpType", ")", "?", "invFPCondOp", "(", "OrigOp", ")", ":", "invIntCondOp", "(", "OrigOp", ")", ";", "if", "(", "OrigOp", "!=", "RevOp", ")", "CmpOp", "->", "setImm", "(", "RevOp", ")", ";", "else", "need_insert_not", "=", "true", ";", "}", "else", "if", "(", "cond_expr", "&&", "cond_expr", "->", "getOpcode", "(", ")", "==", "", ")", "{", "cond_reg", "=", "cond_expr", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "cond_expr", "->", "eraseFromParent"], "ground_truth": ["(", ")", ";"], "File": "HSAILInstrInfo", "Func": "GenerateBranchCondReversion", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67073, "Length": 146, "Cover_Rate": 0.4294117647058823} {"Template_token": ["", "return", "getNamedOperand", "(", "MI", ",", "OpName"], "ground_truth": [")", "->", "getImm", "(", ")", ";"], "File": "HSAILInstrInfo", "Func": "getNamedModifierOperand", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67074, "Length": 12, "Cover_Rate": 0.48} {"Template_token": ["", "const", "MachineOperand", "*", "getNamedOperand", "(", "const", "MachineInstr", "&", "MI", ",", "unsigned", "OpName", ")", "const", "{", "return", "getNamedOperand", "(", "const_cast", "<", "MachineInstr", "&", ">"], "ground_truth": ["(", "MI", ")", ",", "OpName", ")", ";"], "File": "HSAILInstrInfo", "Func": "getNamedOperand", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67075, "Length": 30, "Cover_Rate": 0.967741935483871} {"Template_token": ["", "if", "(", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "Reg", ")", ")", "return", "MRI", ".", "getRegClass", "(", "Reg", ")", ";", "return", "RI", ".", "getPhysRegClass"], "ground_truth": ["(", "Reg", ")", ";"], "File": "HSAILInstrInfo", "Func": "getOpRegClass", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67076, "Length": 25, "Cover_Rate": 0.30864197530864196} {"Template_token": ["", "const", "MachineOperand", "&", "MO", "=", "MI", ".", "getOperand", "(", "OpNo", ")", ";", "if", "(", "!", "MO", ".", "isReg", "(", ")", ")", "return", "nullptr", ";", "unsigned", "Reg", "=", "MO", ".", "getReg", "(", ")", ";", "if", "(", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "Reg", ")", ")", "return", "MRI", ".", "getRegClass", "(", "Reg", ")", ";", "return", "RI", ".", "getPhysRegClass", "(", "Reg"], "ground_truth": [")", ";"], "File": "HSAILInstrInfo", "Func": "getOpRegClass", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67077, "Length": 58, "Cover_Rate": 0.7160493827160493} {"Template_token": ["", "const", "RegisterInfo", "&", "getRegisterInfo", "("], "ground_truth": [")", "const", "{"], "File": "HSAILInstrInfo", "Func": "getRegisterInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67078, "Length": 8, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "RegScavenger", "*", "getRS", "(", ")", "const", "{", "return", "RS"], "ground_truth": [";"], "File": "HSAILInstrInfo", "Func": "getRS", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67079, "Length": 10, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "int", "", "(", "uint16_t", "Opcode", ",", "unsigned", "vsize"], "ground_truth": [")", "{"], "File": "HSAILInstrInfo", "Func": "getVectorLdStOpcode", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67080, "Length": 10, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "return", "", "(", "Opcode", ",", "", "("], "ground_truth": ["vsize", "-", "", ")", ")", ";"], "File": "HSAILInstrInfo", "Func": "getVectorLdStOpcode", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67081, "Length": 13, "Cover_Rate": 0.43333333333333335} {"Template_token": ["", "InstrInfo", "::", "InstrInfo", "(", "Subtarget", "&", "st", ")", ":", "GenInstrInfo", "(", ")", ",", "RI", "(", "st", ")", "{", "RS", "=", "new", "RegScavenger"], "ground_truth": ["(", ")", ";"], "File": "HSAILInstrInfo", "Func": "HSAILInstrInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67082, "Length": 25, "Cover_Rate": 0.9615384615384616} {"Template_token": ["", "InstrInfo", "::", "InstrInfo", "(", "Subtarget", "&", "st", ")", ":", "GenInstrInfo", "("], "ground_truth": [")", ",", "RI", "(", "st", ")", "{"], "File": "HSAILInstrInfo", "Func": "HSAILInstrInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67083, "Length": 18, "Cover_Rate": 0.6923076923076923} {"Template_token": ["", "assert", "(", "Cond", "[", "", "]", ".", "isReg", "(", ")", ")", ";", "unsigned", "cond_reg", "=", "Cond", "[", "", "]", ".", "getReg", "(", ")", ";", "switch", "(", "static_cast", "<", "CondReverseFlag", ">", "(", "Cond", "[", "", "]", ".", "getImm", "(", ")", ")", ")", "{", "case", "COND_REVERSE_DEPENDANT", ":", "assert", "(", "Cond", ".", "size", "(", ")", "==", "", "&&", "Cond", "[", "", "]", ".", "isImm", "(", ")", ")", ";", "if", "(", "Cond", "[", "", "]", ".", "getImm", "(", ")", "==", "COND_REVERSE_NEGATIVE", ")", "{", "MachineRegisterInfo", "&", "MRI", "=", "MBB", ".", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "if", "(", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "Cond", "[", "", "]", ".", "getReg", "(", ")", ")", ")", "cond_reg", "=", "MRI", ".", "createVirtualRegister", "(", "MRI", ".", "getRegClass", "(", "Cond", "[", "", "]", ".", "getReg", "(", ")", ")", ")", ";", "else", "cond_reg", "=", "Cond", "[", "", "]", ".", "getImm", "(", ")", ";", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "cond_reg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "Cond", "[", "", "]", ".", "getReg", "(", ")"], "ground_truth": [")", ".", "addImm", "(", "BRIG_TYPE_B1", ")", ";"], "File": "HSAILInstrInfo", "Func": "InsertBranch", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67084, "Length": 181, "Cover_Rate": 0.44254278728606355} {"Template_token": ["", "assert", "(", "Cond", ".", "size", "(", ")", "==", "", "&&", "Cond", "[", "", "]", ".", "isImm", "(", ")", ")", ";", "if", "(", "Cond", "[", "", "]", ".", "getImm", "(", ")", "==", "COND_REVERSE_NEGATIVE", ")", "{", "MachineRegisterInfo", "&", "MRI", "=", "MBB", ".", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "if", "(", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "Cond", "[", "", "]", ".", "getReg", "(", ")", ")", ")", "cond_reg", "=", "MRI", ".", "createVirtualRegister", "(", "MRI", ".", "getRegClass", "(", "Cond", "[", "", "]", ".", "getReg", "(", ")", ")", ")", ";", "else", "cond_reg", "=", "Cond", "[", "", "]", ".", "getImm", "(", ")", ";", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "cond_reg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "Cond", "[", "", "]", ".", "getReg", "(", ")", ")", ".", "addImm", "(", "BRIG_TYPE_B1", ")", ";", "}", "break", ";", "case", "COND_REVERSE_NEGATIVE", ":", "cond_reg", "=", "GenerateBranchCondReversion", "(", "MBB", ",", "Cond", "[", "", "]", ",", "this", ",", "DL", ")", ";", "break", ";", "case", "COND_REVERSE_POSITIVE", ":", "case", "COND_IRREVERSIBLE", ":", "break", ";", "}", "unsigned", "Count", "=", "", ";", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addImm", "(", "BRIG_WIDTH_1", ")", ".", "addReg", "(", "cond_reg", ")", ".", "addMBB", "(", "TBB", ")", ".", "addImm", "(", "BRIG_TYPE_B1", ")", ";", "++"], "ground_truth": ["Count", ";"], "File": "HSAILInstrInfo", "Func": "InsertBranch", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67085, "Length": 210, "Cover_Rate": 0.5134474327628362} {"Template_token": ["", "case", "BRIG_COMPARE_LE", ":", "return", "BRIG_COMPARE_GT", ";", "case", "BRIG_COMPARE_LT", ":", "return", "BRIG_COMPARE_GE", ";", "case", "BRIG_COMPARE_NE", ":", "return", "BRIG_COMPARE_EQ", ";", "default", ":", "return", "Op"], "ground_truth": [";"], "File": "HSAILInstrInfo", "Func": "invIntCondOp", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67086, "Length": 23, "Cover_Rate": 0.4107142857142857} {"Template_token": ["", "bool", "InstrInfo", "::", "isCoalescableExtInstr", "(", "const", "MachineInstr", "&", "MI", ",", "unsigned", "&"], "ground_truth": ["SrcReg", ",", "unsigned", "&", "DstReg", ",", "unsigned", "&", "SubIdx", ")", "const", "{"], "File": "HSAILInstrInfo", "Func": "isCoalescableExtInstr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67087, "Length": 24, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "bool", "InstrInfo", "::", "isCoalescableExtInstr", "(", "const", "MachineInstr", "&", "MI", ",", "unsigned", "&", "SrcReg", ",", "unsigned", "&", "DstReg", ",", "unsigned", "&", "SubIdx"], "ground_truth": [")", "const", "{"], "File": "HSAILInstrInfo", "Func": "isCoalescableExtInstr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67088, "Length": 24, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "Q", ".", "pop", "(", ")", ";", "for", "(", "MachineBasicBlock", "::", "succ_iterator", "succ", "=", "cur_mbb", "->", "succ_begin", "(", ")", ",", "succ_end", "=", "cur_mbb", "->", "succ_end", "(", ")", ";", "succ", "!=", "succ_end", ";", "++", "succ", ")", "if", "(", "!", "Visited", ".", "count", "(", "*", "succ", ")", ")", "{", "Visited", ".", "insert", "(", "*", "succ", ")", ";", "bool", "need_process_futher", "=", "true", ";", "for", "(", "MachineBasicBlock", "::", "iterator", "instr", "=", "(", "*", "succ", ")", "->", "begin", "(", ")", ",", "instr_end", "=", "(", "*", "succ", ")", "->", "end", "(", ")", ";", "instr", "!=", "instr_end", ";", "++", "instr", ")", "{", "if", "(", "instr", "->", "readsRegister", "(", "Reg", ")", ")", "{", "if", "(", "instr", "->", "getParent", "(", ")", "==", "&", "MBB", "&&", "(", "instr", "->", "isBranch", "(", ")", "||", "(", "instr", "->", "getOpcode", "(", ")", "==", "", ")", ")", ")", "{", "CanReverse", "=", "false", ";", "}", "return", "false"], "ground_truth": [";"], "File": "HSAILInstrInfo", "Func": "IsDefBeforeUse", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67089, "Length": 142, "Cover_Rate": 0.5378787878787878} {"Template_token": ["", "case", "BRIG_TYPE_F16", ":", "return", "true", ";", "default", ":", "return", "false"], "ground_truth": [";"], "File": "HSAILInstrInfo", "Func": "isFPBrigType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67090, "Length": 11, "Cover_Rate": 0.34375} {"Template_token": ["", "static", "bool", "isFPBrigType", "(", "BrigType", "BT", ")", "{", "switch", "(", "BT", ")", "{", "case", "BRIG_TYPE_F32", ":", "case", "BRIG_TYPE_F64", ":", "case"], "ground_truth": ["BRIG_TYPE_F16", ":"], "File": "HSAILInstrInfo", "Func": "isFPBrigType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67091, "Length": 22, "Cover_Rate": 0.6875} {"Template_token": ["", "bool", "isInstAddr", "(", "uint16_t", "Opcode", ")", "const", "{", "return", "get", "(", "Opcode", ")", "."], "ground_truth": ["TSFlags", "&", "", ";"], "File": "HSAILInstrInfo", "Func": "isInstAddr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67092, "Length": 18, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "bool", "isInstAtomic", "(", "uint16_t", "Opcode", ")", "const", "{", "return", "get", "(", "Opcode", ")"], "ground_truth": [".", "TSFlags", "&", "", ";"], "File": "HSAILInstrInfo", "Func": "isInstAtomic", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67093, "Length": 18, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "bool", "isInstBr", "(", "uint16_t", "Opcode", ")", "const", "{", "return", "get", "(", "Opcode", ")", ".", "TSFlags", "&"], "ground_truth": ["", ";"], "File": "HSAILInstrInfo", "Func": "isInstBr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67094, "Length": 18, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "bool", "isInstCmp", "(", "uint16_t", "Opcode", ")"], "ground_truth": ["const", "{"], "File": "HSAILInstrInfo", "Func": "isInstCmp", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67095, "Length": 8, "Cover_Rate": 0.38095238095238093} {"Template_token": ["", "return", "get", "(", "Opcode", ")", ".", "TSFlags", "&"], "ground_truth": ["", ";"], "File": "HSAILInstrInfo", "Func": "isInstCvt", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67096, "Length": 10, "Cover_Rate": 0.47619047619047616} {"Template_token": ["", "return", "get", "(", "Opcode", ")", "."], "ground_truth": ["TSFlags", "&", "", ";"], "File": "HSAILInstrInfo", "Func": "isInstLane", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67097, "Length": 10, "Cover_Rate": 0.47619047619047616} {"Template_token": ["", "bool", "isInstMem", "(", "uint16_t", "Opcode", ")", "const", "{", "return", "get", "(", "Opcode", ")", ".", "TSFlags"], "ground_truth": ["&", "", ";"], "File": "HSAILInstrInfo", "Func": "isInstMem", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67098, "Length": 18, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "return", "get", "(", "Opcode", ")", ".", "TSFlags"], "ground_truth": ["&", "", ";"], "File": "HSAILInstrInfo", "Func": "isInstMem", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67099, "Length": 10, "Cover_Rate": 0.47619047619047616} {"Template_token": ["", "return", "get", "(", "Opcode", ")", "."], "ground_truth": ["TSFlags", "&", "", ";"], "File": "HSAILInstrInfo", "Func": "isInstMemFence", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67100, "Length": 10, "Cover_Rate": 0.47619047619047616} {"Template_token": ["", "return", "get", "(", "Opcode", ")", ".", "TSFlags"], "ground_truth": ["&", "", ";"], "File": "HSAILInstrInfo", "Func": "isInstMemFence", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67101, "Length": 10, "Cover_Rate": 0.47619047619047616} {"Template_token": ["", "bool", "isInstMod", "(", "uint16_t", "Opcode", ")", "const", "{", "return", "get", "(", "Opcode", ")", ".", "TSFlags"], "ground_truth": ["&", "", ";"], "File": "HSAILInstrInfo", "Func": "isInstMod", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67102, "Length": 18, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "return", "get", "(", "Opcode", ")"], "ground_truth": [".", "TSFlags", "&", "", ";"], "File": "HSAILInstrInfo", "Func": "isInstMod", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67103, "Length": 10, "Cover_Rate": 0.47619047619047616} {"Template_token": ["", "bool", "isInstSeg", "(", "uint16_t", "Opcode"], "ground_truth": [")", "const", "{"], "File": "HSAILInstrInfo", "Func": "isInstSeg", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67104, "Length": 8, "Cover_Rate": 0.38095238095238093} {"Template_token": ["", "return", "get", "(", "Opcode", ")", "."], "ground_truth": ["TSFlags", "&", "", ";"], "File": "HSAILInstrInfo", "Func": "isInstSegCvt", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67105, "Length": 10, "Cover_Rate": 0.47619047619047616} {"Template_token": ["", "return", "get", "(", "Opcode", ")", "."], "ground_truth": ["TSFlags", "&", "", ";"], "File": "HSAILInstrInfo", "Func": "isInstSourceType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67106, "Length": 10, "Cover_Rate": 0.47619047619047616} {"Template_token": ["", "if", "(", "!", "MCID", ".", "mayLoad", "(", ")", "||", "!", "MI", "->", "hasOneMemOperand", "(", ")", ")", "return", "", ";", "const", "MachineOperand", "*", "Segment", "=", "getNamedOperand", "(", "*", "MI", ",", "", "::", "segment", ")", ";", "if", "(", "!", "Segment", "||", "Segment", "->", "getImm", "(", ")", "!=", "", ")", "return", "", ";", "int", "AddressIdx", "=", "", "(", "MI", "->", "getOpcode", "(", ")", ",", "", "::"], "ground_truth": ["address", ")", ";"], "File": "HSAILInstrInfo", "Func": "isLoadFromStackSlot", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67107, "Length": 66, "Cover_Rate": 0.4125} {"Template_token": ["", "unsigned", "InstrInfo", "::", "isLoadFromStackSlotPostFE", "(", "const", "MachineInstr", "*", "MI", ",", "int"], "ground_truth": ["&", "FrameIndex", ")", "const", "{"], "File": "HSAILInstrInfo", "Func": "isLoadFromStackSlotPostFE", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67108, "Length": 16, "Cover_Rate": 0.64} {"Template_token": ["", "static", "bool", "IsSpilledAfterDef", "(", "MachineInstr", "*", "start", ",", "unsigned", "reg", ")", "{", "bool", "canBeSpilled", "=", "false", ";", "if", "(", "!", "CheckSpillAfterDef", "(", "start", ",", "reg", ",", "canBeSpilled", ")", ")", "{", "std", "::", "queue", "<", "MachineBasicBlock", "*", ">", "Q", ";", "SmallPtrSet", "<", "MachineBasicBlock", "*", ",", "", ">", "Visited", ";", "MachineBasicBlock", "*", "MBB", "=", "start", "->", "getParent", "(", ")", ";", "Q", ".", "push", "(", "MBB", ")", ";", "while", "(", "!", "Q", ".", "empty", "("], "ground_truth": [")", "&&", "!", "canBeSpilled", ")", "{"], "File": "HSAILInstrInfo", "Func": "IsSpilledAfterDef", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67109, "Length": 78, "Cover_Rate": 0.3305084745762712} {"Template_token": ["", "unsigned", "InstrInfo", "::", "isStoreToStackSlot", "(", "const", "MachineInstr", "*", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "const", "MCInstrDesc", "&", "MCID", "=", "get", "(", "MI", "->", "getOpcode", "(", ")", ")", ";", "if", "(", "!", "MCID", ".", "mayStore", "(", ")", "||", "!", "MI", "->", "hasOneMemOperand", "(", ")", ")", "return", "", ";", "const", "MachineOperand", "*", "Segment", "=", "getNamedOperand", "(", "*", "MI", ",", "", "::", "segment", ")", ";", "if", "(", "!", "Segment", "||", "Segment", "->", "getImm", "(", ")", "!=", "", ")", "return", "", ";", "int", "AddressIdx", "=", "", "(", "MI", "->", "getOpcode", "(", ")", ",", "", "::", "address", ")", ";", "const", "MachineOperand", "&", "Base", "=", "MI", "->", "getOperand", "(", "AddressIdx", "+", "", ")", ";", "if", "(", "Base", "."], "ground_truth": ["isFI", "(", ")", ")", "{"], "File": "HSAILInstrInfo", "Func": "isStoreToStackSlot", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67110, "Length": 119, "Cover_Rate": 0.7531645569620253} {"Template_token": ["", "unsigned", "Count", "=", "", ";", "while", "(", "I", "!=", "MBB", ".", "begin", "(", ")", ")", "{", "--", "I", ";", "if", "(", "I", "->", "isDebugValue", "(", ")", ")", "continue", ";", "if", "(", "I", "->", "getOpcode", "(", ")", "!=", "", "&&", "I", "->", "getOpcode", "(", ")", "!=", "", ")", "break", ";", "I", "->", "eraseFromParent", "(", ")", ";", "I", "=", "MBB", ".", "end", "(", ")", ";", "++", "Count", ";", "}", "return"], "ground_truth": ["Count", ";"], "File": "HSAILInstrInfo", "Func": "RemoveBranch", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67111, "Length": 70, "Cover_Rate": 0.7142857142857143} {"Template_token": ["", "for", "(", "SmallVectorImpl", "<", "MachineOperand", ">", "::", "iterator", "I", "=", "Cond", ".", "begin", "(", ")", ",", "E", "=", "Cond", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "++", "I", ";", "if", "(", "static_cast", "<", "CondReverseFlag", ">", "(", "I", "->", "getImm", "(", ")", ")", "==", "COND_IRREVERSIBLE", ")", "return", "true", ";", "}", "for", "(", "SmallVectorImpl", "<", "MachineOperand", ">", "::", "iterator", "I", "=", "Cond", ".", "begin", "(", ")", ",", "E", "=", "Cond", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "++", "I", ";", "assert", "(", "I", "->", "isImm", "(", ")", ")", ";", "CondReverseFlag", "cond_rev_flag", "=", "static_cast", "<", "CondReverseFlag", ">", "(", "I", "->", "getImm", "(", ")", ")", ";", "switch", "(", "cond_rev_flag", ")", "{", "case", "COND_REVERSE_POSITIVE"], "ground_truth": [":"], "File": "HSAILInstrInfo", "Func": "ReverseBranchCondition", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67112, "Length": 122, "Cover_Rate": 0.5922330097087378} {"Template_token": ["", "if", "(", "!", "Node1", "->", "isMachineOpcode", "(", ")", ")", "return", "false", ";", "MachineSDNode", "*", "mnode1", "=", "cast", "<", "MachineSDNode", ">"], "ground_truth": ["(", "Node1", ")", ";"], "File": "HSAILInstrInfo", "Func": "shouldScheduleLoadsNear", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67113, "Length": 24, "Cover_Rate": 0.3037974683544304} {"Template_token": ["", "if", "(", "Offset2", "-", "Offset1", "<=", "", "*", "(", "int64_t", ")", "(", "*", "mnode1", "->", "memoperands_begin"], "ground_truth": ["(", ")", ")", "->", "getSize", "(", ")", ")", "return", "true", ";"], "File": "HSAILInstrInfo", "Func": "shouldScheduleLoadsNear", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67114, "Length": 27, "Cover_Rate": 0.34177215189873417} {"Template_token": ["", "case", "", ":", "Opc", "=", "", ";", "BT", "=", "BRIG_TYPE_U32", ";", "break", ";", "case", "", ":", "Opc", "=", "", ";", "BT", "=", "BRIG_TYPE_U64", ";", "break", ";", "case", "", ":", "{", "MachineFunctionInfo", "*", "MFI", "=", "MF", ".", "getInfo", "<", "MachineFunctionInfo", ">", "(", ")", ";", "MFI", "->", "setHasSpilledCRs", "(", ")", ";", "Opc", "=", "", ";", "BT", "=", "BRIG_TYPE_B1", ";", "break", ";", "}", "}", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", ")", "{", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "}", "switch", "(", "RC", "->", "getID", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "break", ";", "case", "", ":", "case"], "ground_truth": ["", ":"], "File": "HSAILInstrInfo", "Func": "storeRegToStackSlot", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67115, "Length": 105, "Cover_Rate": 0.32608695652173914} {"Template_token": ["", "bool", "InstrInfo", "::", "verifyInstruction", "(", "const", "MachineInstr", "*", "MI", ",", "StringRef", "&", "ErrInfo", ")", "const", "{", "return", "true"], "ground_truth": [";"], "File": "HSAILInstrInfo", "Func": "verifyInstruction", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67116, "Length": 19, "Cover_Rate": 0.95} {"Template_token": ["", "bool", "InstrInfo", "::", "verifyInstruction", "(", "const", "MachineInstr", "*", "MI", ",", "StringRef", "&", "ErrInfo", ")", "const", "{", "return", "true"], "ground_truth": [";"], "File": "HSAILInstrInfo", "Func": "verifyInstruction", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67117, "Length": 19, "Cover_Rate": 0.95} {"Template_token": ["", "InstrInfo", "::", "~", "InstrInfo", "(", ")", "{", "delete"], "ground_truth": ["RS", ";"], "File": "HSAILInstrInfo", "Func": "~HSAILInstrInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67118, "Length": 10, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "Function", "*", "IntrinsicInfo", "::", "getDeclaration", "(", "Module", "*", "M", ",", "unsigned", "IntrID", ",", "Type", "*", "*", "Tys", ",", "unsigned", "int", "numTys", ")", "const", "{", "llvm_unreachable", "(", "", ")", ";", "return", "nullptr"], "ground_truth": [";"], "File": "HSAILIntrinsicInfo", "Func": "getDeclaration", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67119, "Length": 32, "Cover_Rate": 0.9696969696969697} {"Template_token": ["", "std", "::", "string", "IntrinsicInfo", "::", "getName", "(", "unsigned", "int", "IntrID", ",", "Type", "*", "*", "Tys", ",", "unsigned", "int", "numTys", ")", "const", "{", "static", "const", "char", "*", "const", "names", "[", "]"], "ground_truth": ["=", "{"], "File": "HSAILIntrinsicInfo", "Func": "getName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67120, "Length": 32, "Cover_Rate": 0.4155844155844156} {"Template_token": ["", "static", "const", "char", "*", "const", "names", "[", "]", "=", "{", "}", ";", "if", "(", "IntrID", "<", "", ")", "{", "return", "", ";", "}", "assert", "(", "IntrID", "<", "", "&&", "", ")", ";", "std", "::", "string", "Result", "(", "names", "[", "IntrID", "-", "", "]", ")", ";", "return", "Result"], "ground_truth": [";"], "File": "HSAILIntrinsicInfo", "Func": "getName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67121, "Length": 48, "Cover_Rate": 0.6233766233766234} {"Template_token": ["", "switch", "(", "AS", ")", "{", "default", ":", "return", "false", ";", "case", "", ":", "case", "", ":", "case", ""], "ground_truth": [":"], "File": "HSAILISelDAGToDAG", "Func": "addrSpaceHasPtr32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67122, "Length": 19, "Cover_Rate": 0.4418604651162791} {"Template_token": ["", "FunctionPass", "*", "llvm", "::", "createISelDag", "("], "ground_truth": ["TargetMachine", "&", "TM", ")", "{"], "File": "HSAILISelDAGToDAG", "Func": "createHSAILISelDag", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67123, "Length": 11, "Cover_Rate": 0.5789473684210527} {"Template_token": ["", "return", "new", "DAGToDAGISel", "("], "ground_truth": ["TM", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "createHSAILISelDag", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67124, "Length": 7, "Cover_Rate": 0.3684210526315789} {"Template_token": ["", "case", "", ":", "case", "", ":", "return", "BRIG_COMPARE_GE", ";", "case", "", ":", "case", "", ":", "return", "BRIG_COMPARE_LT", ";", "case", "", ":", "case", "", ":", "return", "BRIG_COMPARE_LE", ";", "case", "", ":", "case", "", ":", "return", "BRIG_COMPARE_NE", ";", "case", "", ":", "return", "BRIG_COMPARE_NUM", ";", "case", "", ":", "return", "BRIG_COMPARE_NAN", ";", "case", "", ":", "return", "BRIG_COMPARE_EQU", ";", "case", "", ":", "return", "BRIG_COMPARE_GTU", ";", "case", "", ":", "return", "BRIG_COMPARE_GEU", ";", "case", "", ":", "return", "BRIG_COMPARE_LTU", ";", "case", "", ":", "return"], "ground_truth": ["BRIG_COMPARE_LEU", ";"], "File": "HSAILISelDAGToDAG", "Func": "getBrigFPCompare", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67125, "Length": 78, "Cover_Rate": 0.46987951807228917} {"Template_token": ["", "return", "BRIG_COMPARE_EQ", ";", "case", "", ":", "return", "BRIG_COMPARE_GT", ";", "case", "", ":", "return", "BRIG_COMPARE_GE", ";", "case", "", ":", "return", "BRIG_COMPARE_LT", ";", "case", "", ":", "return", "BRIG_COMPARE_LE", ";", "case", "", ":", "Signed", "=", "true", ";", "return", "BRIG_COMPARE_NE", ";", "case", "", ":", "Signed", "=", "true", ";", "return", "BRIG_COMPARE_EQ", ";", "case", "", ":", "Signed", "=", "true", ";", "return", "BRIG_COMPARE_GT", ";", "case", "", ":", "Signed", "=", "true", ";", "return", "BRIG_COMPARE_GE"], "ground_truth": [";"], "File": "HSAILISelDAGToDAG", "Func": "getBrigIntCompare", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67126, "Length": 67, "Cover_Rate": 0.42948717948717946} {"Template_token": ["", "case", "Monotonic", ":", "return", "BRIG_MEMORY_ORDER_RELAXED", ";", "case", "Acquire", ":", "return", "BRIG_MEMORY_ORDER_SC_ACQUIRE", ";", "case", "Release", ":", "return", "BRIG_MEMORY_ORDER_SC_RELEASE", ";", "case", "AcquireRelease", ":", "case", "SequentiallyConsistent", ":", "return", "BRIG_MEMORY_ORDER_SC_ACQUIRE_RELEASE", ";", "default", ":", "llvm_unreachable", "("], "ground_truth": ["", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "getBrigMemoryOrder", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67127, "Length": 34, "Cover_Rate": 0.6938775510204082} {"Template_token": ["", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", ""], "ground_truth": [";"], "File": "HSAILISelDAGToDAG", "Func": "getImageInstr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67128, "Length": 255, "Cover_Rate": 0.4521276595744681} {"Template_token": ["", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", ""], "ground_truth": [":"], "File": "HSAILISelDAGToDAG", "Func": "getImageInstr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67129, "Length": 195, "Cover_Rate": 0.34574468085106386} {"Template_token": ["", "case", "BRIG_TYPE_S32", ":", "return", "", ";", "case", "BRIG_TYPE_F32", ":", "return", "", ";", "case", "BRIG_TYPE_U64", ":", "return", "", ";", "case", "BRIG_TYPE_S64", ":", "return", "", ";", "case", "BRIG_TYPE_F64", ":", "return", "", ";", "case", "BRIG_TYPE_U8", ":", "return", "", ";", "case", "BRIG_TYPE_S8", ":", "return", "", ";", "case", "BRIG_TYPE_U16", ":", "return", "", ";", "case", "BRIG_TYPE_S16", ":", "return", "", ";", "default", ":", "llvm_unreachable", "(", "", ")"], "ground_truth": [";"], "File": "HSAILISelDAGToDAG", "Func": "getLoadBrigOpcode", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67130, "Length": 61, "Cover_Rate": 0.5980392156862745} {"Template_token": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", ""], "ground_truth": [";"], "File": "HSAILISelDAGToDAG", "Func": "getPassName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67131, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "return", "", ";", "case", "BRIG_TYPE_F64", ":", "return", "", ";", "case", "BRIG_TYPE_U8", ":", "return", "", ";", "case", "BRIG_TYPE_S8", ":", "return", "", ";", "case", "BRIG_TYPE_U16", ":", "return", "", ";", "case", "BRIG_TYPE_S16", ":", "return", "", ";", "default", ":", "llvm_unreachable", "("], "ground_truth": ["", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "getRArgLoadBrigOpcode", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67132, "Length": 40, "Cover_Rate": 0.39215686274509803} {"Template_token": ["", "case", "BRIG_TYPE_U32", ":", "return", "", ";", "case", "BRIG_TYPE_F32", ":", "return", "", ";", "case", "BRIG_TYPE_U64", ":", "return", "", ";", "case", "BRIG_TYPE_F64", ":", "return", "", ";", "case"], "ground_truth": ["BRIG_TYPE_U8", ":"], "File": "HSAILISelDAGToDAG", "Func": "getStoreBrigOpcode", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67133, "Length": 27, "Cover_Rate": 0.38571428571428573} {"Template_token": ["", "bool", "DAGToDAGISel", "::", "isKernelFunc", "(", ")", "const", "{", "const", "MachineFunction", "&", "MF", "=", "CurDAG", "->", "getMachineFunction", "(", ")", ";", "return", "", "(", "MF", ".", "getFunction"], "ground_truth": ["(", ")", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "isKernelFunc", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67134, "Length": 29, "Cover_Rate": 0.90625} {"Template_token": ["", "EVT", "VT", "=", "N0", ".", "getValueType", "(", ")", ";", "if", "(", "VT", ".", "isInteger", "(", ")", "&&", "!", "VT", ".", "isVector", "(", ")", ")", "{", "APInt", "LHSZero", ",", "LHSOne", ";", "APInt", "RHSZero", ",", "RHSOne", ";", "CurDAG", "->", "computeKnownBits", "(", "N0", ",", "LHSZero", ",", "LHSOne", ")", ";", "if", "(", "LHSZero", ".", "getBoolValue", "(", ")", ")", "{", "CurDAG", "->", "computeKnownBits", "(", "N1", ","], "ground_truth": ["RHSZero", ",", "RHSOne", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "IsOREquivalentToADD", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67135, "Length": 66, "Cover_Rate": 0.45517241379310347} {"Template_token": ["", "bool", "DAGToDAGISel", "::", "IsOREquivalentToADD", "(", "SDValue", "Op", ")", "const", "{", "assert", "(", "Op", ".", "getOpcode", "(", ")", "==", "", ")", ";", "SDValue", "N0", "=", "Op", "->", "getOperand", "(", "", ")", ";", "SDValue", "N1", "=", "Op", "->", "getOperand", "(", "", ")", ";", "EVT", "VT", "=", "N0", ".", "getValueType", "(", ")", ";", "if", "(", "VT", ".", "isInteger", "(", ")", "&&", "!", "VT", ".", "isVector", "(", ")", ")", "{", "APInt", "LHSZero", ",", "LHSOne", ";", "APInt", "RHSZero", ",", "RHSOne", ";", "CurDAG", "->", "computeKnownBits", "(", "N0", ",", "LHSZero", ",", "LHSOne", ")", ";", "if", "(", "LHSZero", ".", "getBoolValue", "("], "ground_truth": [")", ")", "{"], "File": "HSAILISelDAGToDAG", "Func": "IsOREquivalentToADD", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67136, "Length": 96, "Cover_Rate": 0.6620689655172414} {"Template_token": ["", "bool", "DAGToDAGISel", "::", "IsProfitableToFold", "(", "SDValue", "N", ",", "SDNode", "*", "U", ",", "SDNode", "*", "Root", ")", "const", "{", "return"], "ground_truth": ["true", ";"], "File": "HSAILISelDAGToDAG", "Func": "IsProfitableToFold", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67137, "Length": 21, "Cover_Rate": 0.9545454545454546} {"Template_token": ["", "if", "(", "Base", ".", "getNode", "(", ")", "==", "", ")", "Base", "=", "CurDAG", "->", "getRegister", "(", "", ",", "VT", ")", ";", "if", "(", "Reg", ".", "getNode", "(", ")", "==", "", ")", "Reg", "=", "CurDAG", "->", "getRegister", "(", "", ",", "VT", ")", ";", "return"], "ground_truth": ["true", ";"], "File": "HSAILISelDAGToDAG", "Func": "SelectAddr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67138, "Length": 45, "Cover_Rate": 0.3191489361702128} {"Template_token": ["", "SDNode", "*", "DAGToDAGISel", "::", "SelectAddrSpaceCast", "(", "AddrSpaceCastSDNode", "*", "ASC", ")", "const", "{", "SDValue", "Cast", "(", "ASC", ",", "", ")", ";", "unsigned", "DstAS", "=", "ASC", "->", "getDestAddressSpace", "(", ")", ";", "unsigned", "SrcAS", "=", "ASC", "->", "getSrcAddressSpace", "(", ")", ";", "EVT", "DestVT", "=", "ASC", "->", "getValueType", "(", "", ")", ";", "EVT", "SrcVT", "=", "ASC", "->", "getOperand", "(", "", ")", ".", "getValueType", "(", ")", ";", "bool", "Src32", "=", "(", "SrcVT", "==", "", ")", ";", "bool", "Dst32", "=", "(", "DestVT", "==", "", ")", ";", "unsigned", "Opcode", ";", "SDValue", "Segment", ",", "NoNull", ",", "Ptr", ",", "DestType", ",", "SrcType", ";", "SDLoc", "SL", "(", "ASC", ")", ";", "if", "(", "SrcAS", "==", "", ")", "{", "if", "(", "Src32", "&&", "Dst32", ")", "Opcode", "=", "", ";", "else", "if", "(", "Src32", "&&", "!", "Dst32", ")", "llvm_unreachable", "(", "", ")", ";", "else", "if", "(", "!", "Src32", "&&", "Dst32", ")", "Opcode", "=", "", ";", "else", "Opcode", "=", "", ";", "Segment", "=", "CurDAG", "->", "getTargetConstant", "(", "DstAS", ",", "SL", ",", "", ")", ";", "SelectAddrSpaceCastCommon", "(", "*", "ASC", ",", "NoNull", ",", "Ptr", ",", "DestType", ",", "SrcType", ")", ";", "}", "else", "if", "(", "DstAS", "==", "", ")", "{", "if", "(", "Src32", "&&", "Dst32", ")", "Opcode", "=", "", ";", "else", "if", "(", "Src32", "&&", "!", "Dst32", ")", "Opcode", "=", "", ";", "else", "if", "(", "!", "Src32", "&&", "Dst32", ")", "llvm_unreachable", "(", "", ")", ";", "else", "Opcode", "=", "", ";", "Segment", "=", "CurDAG", "->", "getTargetConstant", "(", "SrcAS", ",", "SL", ",", "", ")", ";", "SelectAddrSpaceCastCommon", "(", "*", "ASC", ",", "NoNull", ","], "ground_truth": ["Ptr", ",", "DestType", ",", "SrcType", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "SelectAddrSpaceCast", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67139, "Length": 250, "Cover_Rate": 0.8012820512820513} {"Template_token": ["", "SDNode", "*", "DAGToDAGISel", "::", "SelectArgLd", "(", "MemSDNode", "*", "Node", ")", "const", "{", "bool", "IsRetLd", "=", "Node", "->", "getConstantOperandVal", "(", "", ")", ";", "bool", "IsSext", "=", "Node", "->", "getConstantOperandVal", "(", "", ")", ";", "SDValue", "Base", ",", "Reg", ",", "Offset", ";", "if", "(", "!", "SelectAddr", "(", "Node", "->", "getOperand", "(", "", ")", ",", "Base", ",", "Reg", ",", "Offset", ")", ")", "return", "nullptr", ";", "MVT", "MemVT", "=", "Node", "->", "getMemoryVT", "(", ")", ".", "getSimpleVT", "(", ")", ";", "BrigType", "BT", "=", "getBrigType", "(", "MemVT", ".", "SimpleTy", ",", "IsSext", ")", ";", "SDLoc", "SL", "(", "Node", ")", ";", "SDValue", "Ops", "[", "", "]", "="], "ground_truth": ["{"], "File": "HSAILISelDAGToDAG", "Func": "SelectArgLd", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67140, "Length": 99, "Cover_Rate": 0.3793103448275862} {"Template_token": ["", "bool", "DAGToDAGISel", "::", "SelectAtomicAddr", "(", "SDNode", "*", "ParentAtomic", ",", "SDValue", "Addr", ",", "SDValue", "&", "Segment", ",", "SDValue", "&", "Order", ",", "SDValue", "&", "Scope", ",", "SDValue", "&", "Equiv", ",", "SDValue", "&", "Base", ",", "SDValue", "&", "Reg", ",", "SDValue", "&", "Offset", ")", "const", "{", "if", "(", "!", "SelectAddr", "(", "Addr", ",", "Base", ",", "Reg", ",", "Offset", ")", ")", "return", "false", ";", "const", "AtomicSDNode", "*", "Atomic", "=", "cast", "<", "AtomicSDNode", ">", "(", "ParentAtomic", ")", ";", "AtomicOrdering", "SuccOrder", "=", "Atomic", "->", "getSuccessOrdering", "(", ")", ";", "SynchronizationScope", "SyncScope", "=", "Atomic", "->", "getSynchScope", "(", ")", ";", "unsigned", "AS", "=", "Atomic", "->", "getAddressSpace", "(", ")", ";", "SDLoc", "SL", "(", "ParentAtomic", ")", ";", "Segment", "=", "CurDAG", "->", "getTargetConstant", "(", "AS", ",", "SL", ",", "", ")", ";", "Order", "=", "CurDAG", "->", "getTargetConstant", "(", "getBrigMemoryOrder", "(", "SuccOrder", ")", ",", "SL", ",", "", ")", ";", "Scope", "=", "CurDAG", "->", "getTargetConstant", "(", "getBrigMemoryScope", "(", "SyncScope", ",", "AS", ")", ",", "SL", ",", "", ")", ";", "Equiv", "=", "CurDAG", "->", "getTargetConstant", "(", "", ",", "SL", ","], "ground_truth": ["", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "SelectAtomicAddr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67141, "Length": 165, "Cover_Rate": 0.9322033898305084} {"Template_token": ["", "Segment", "=", "CurDAG", "->", "getTargetConstant", "(", "AS", ",", "SL", ",", "", ")", ";", "Order", "=", "CurDAG", "->", "getTargetConstant", "(", "getBrigMemoryOrder", "(", "SuccOrder", ")", ",", "SL", ",", "", ")", ";", "Scope", "=", "CurDAG", "->", "getTargetConstant", "(", "getBrigMemoryScope", "(", "SyncScope", ",", "AS", ")", ",", "SL", ",", "", ")", ";", "Equiv", "=", "CurDAG", "->", "getTargetConstant", "(", "", ","], "ground_truth": ["SL", ",", "", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "SelectAtomicAddr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67142, "Length": 60, "Cover_Rate": 0.3389830508474576} {"Template_token": ["", "SDLoc", "SL", "(", "In", ")", ";", "Src", "=", "CurDAG", "->", "getTargetConstant", "(", "C", "->", "getAPIntValue", "(", ")", ",", "SL", ",", "C", "->", "getValueType", "(", "", ")", ")", ";", "}", "else", "if", "(", "ConstantFPSDNode", "*", "C", "=", "dyn_cast", "<", "ConstantFPSDNode", ">", "(", "In", ")", ")", "{", "SDLoc", "SL", "("], "ground_truth": ["In", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "SelectGPROrImm", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67143, "Length": 51, "Cover_Rate": 0.45535714285714285} {"Template_token": ["", "SDLoc", "SL", "(", "In", ")", ";", "Src", "=", "CurDAG", "->", "getTargetConstantFP", "(", "C", "->", "getValueAPF", "(", ")", ",", "SL", ",", "C", "->", "getValueType", "(", "", ")", ")", ";", "}", "else", "Src", "=", "In", ";", "return"], "ground_truth": ["true", ";"], "File": "HSAILISelDAGToDAG", "Func": "SelectGPROrImm", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67144, "Length": 37, "Cover_Rate": 0.33035714285714285} {"Template_token": ["", "SDNode", "*", "ResNode", ";", "unsigned", "IntNo", "=", "cast", "<", "ConstantSDNode", ">", "(", "Node", "->", "getOperand", "(", "", ")", ")", "->", "getZExtValue", "(", ")", ";", "bool", "hasSampler", "=", "false", ";", "if", "(", "IntNo", "==", "", ")", "{", "SDLoc", "SL", ";", "const", "SDValue", "Ops", "[", "]", "=", "{", "CurDAG", "->", "getTargetConstant", "(", "", ",", "SL", ",", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "BRIG_TYPE_ROIMG", ",", "SL", ",", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "BRIG_TYPE_S32", ",", "SL", ",", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "BRIG_GEOMETRY_1D", ",", "SL", ",", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "", ",", "SL", ",", "", ")", ",", "Node", "->", "getOperand", "(", "", ")", ",", "Node", "->", "getOperand", "(", "", ")", ",", "Node", "->", "getOperand", "(", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "BRIG_TYPE_F32", ",", "SL", ",", "", ")", ",", "Chain", "}", ";", "return", "CurDAG", "->", "SelectNodeTo", "(", "Node", ",", "", ",", "Node", "->", "getVTList", "(", ")", ",", "Ops", ")", ";", "}", "if", "(", "IntrinsicInfo", "::", "isReadImage", "(", "(", "", ")", "IntNo", ")", ")", "{", "hasSampler", "=", "true", ";", "}", "else", "if", "(", "!", "IntrinsicInfo", "::", "isLoadImage", "(", "("], "ground_truth": ["", ")", "IntNo", ")", ")", "{"], "File": "HSAILISelDAGToDAG", "Func": "SelectImageIntrinsic", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67145, "Length": 188, "Cover_Rate": 0.3679060665362035} {"Template_token": ["", "unsigned", "IntNo", "=", "cast", "<", "ConstantSDNode", ">", "(", "Node", "->", "getOperand", "(", "", ")", ")", "->", "getZExtValue", "(", ")", ";", "if", "(", "IntrinsicInfo", "::", "isReadImage", "(", "(", "", ")", "IntNo", ")", "||", "IntrinsicInfo", "::", "isLoadImage", "(", "(", "", ")"], "ground_truth": ["IntNo", ")", ")", "return", "SelectImageIntrinsic", "(", "Node", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "SelectINTRINSIC_W_CHAIN", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67146, "Length": 48, "Cover_Rate": 0.6857142857142857} {"Template_token": ["", "unsigned", "AS", "=", "Load", "->", "getAddressSpace", "(", ")", ";", "SDLoc", "SL", "(", "ParentLoad", ")", ";", "MVT", "MemVT", "=", "Load", "->", "getMemoryVT", "(", ")", ".", "getSimpleVT", "(", ")", ";", "", "ExtTy", "=", "Load", "->", "getExtensionType", "(", ")", ";", "unsigned", "BrigType", "=", "getBrigType", "(", "MemVT", ".", "SimpleTy", ",", "ExtTy", "==", "", ")", ";", "Segment", "=", "CurDAG", "->", "getTargetConstant", "(", "AS", ",", "SL", ",", "", ")", ";", "Align", "=", "CurDAG", "->", "getTargetConstant", "(", "Load", "->", "getAlignment"], "ground_truth": ["(", ")", ",", "SL", ",", "", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "SelectLoadAddr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67147, "Length": 81, "Cover_Rate": 0.36160714285714285} {"Template_token": ["", "SDLoc", "SL", "(", "SetCC", ")", ";", "SDValue", "CmpOp", "=", "CurDAG", "->", "getTargetConstant", "(", "BrigCmp", ",", "SL", ",", "", ")", ";", "SDValue", "FTZ", "=", "CurDAG", "->", "getTargetConstant", "(", "VT", "==", "", ",", "SL", ",", "", ")", ";", "SDValue", "DestType", "=", "CurDAG", "->", "getTargetConstant", "(", "BRIG_TYPE_B1", ",", "SL", ",", "", ")", ";", "BrigType", "SrcBT", "=", "getBrigType", "(", "VT", ".", "SimpleTy", ",", "Signed", ")", ";", "SDValue", "SrcType", "=", "CurDAG", "->", "getTargetConstant", "(", "SrcBT", ",", "SL", ",", "", ")", ";", "const", "SDValue", "Ops", "[", "]", "=", "{", "CmpOp", ",", "FTZ", ",", "LHS", ",", "RHS", ","], "ground_truth": ["DestType", ",", "SrcType", "}", ";"], "File": "HSAILISelDAGToDAG", "Func": "SelectSetCC", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67148, "Length": 96, "Cover_Rate": 0.38866396761133604} {"Template_token": ["", "assert", "(", "!", "Store", "->", "isIndexed", "(", ")", ")", ";", "if", "(", "!", "SelectAddr", "(", "Addr", ",", "Base", ",", "Reg", ",", "Offset", ")", ")", "return", "false", ";", "unsigned", "AS", "=", "Store", "->", "getAddressSpace", "(", ")", ";", "MVT", "MemVT", "=", "Store", "->", "getMemoryVT", "(", ")", ".", "getSimpleVT", "(", ")", ";", "unsigned", "BrigType", "=", "getBrigTypeFromStoreType", "(", "MemVT", ".", "SimpleTy", ")", ";", "SDLoc", "SL", "(", "ParentStore", ")", ";", "Segment", "=", "CurDAG", "->", "getTargetConstant", "(", "AS", ",", "SL", ",", "", ")", ";", "Align", "=", "CurDAG", "->", "getTargetConstant", "(", "Store", "->", "getAlignment", "(", ")", ",", "SL", ",", "", ")", ";", "Type", "=", "CurDAG", "->", "getTargetConstant", "(", "BrigType", ",", "SL", ",", "", ")", ";", "return"], "ground_truth": ["true", ";"], "File": "HSAILISelDAGToDAG", "Func": "SelectStoreAddr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67149, "Length": 111, "Cover_Rate": 0.6568047337278107} {"Template_token": ["", "if", "(", "Fast", ")", "*", "Fast", "=", "true", ";", "return", "true"], "ground_truth": [";"], "File": "HSAILISelLowering", "Func": "allowsMisalignedMemoryAccesses", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67150, "Length": 12, "Cover_Rate": 0.375} {"Template_token": ["", "unsigned", "TargetLowering", "::", "ComputeNumSignBitsForTargetNode", "(", "SDValue", "Op", ",", "const"], "ground_truth": ["SelectionDAG", "&", "DAG", ",", "unsigned", "Depth", ")", "const", "{"], "File": "HSAILISelLowering", "Func": "ComputeNumSignBitsForTargetNode", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67151, "Length": 18, "Cover_Rate": 0.8181818181818182} {"Template_token": ["", "const", "SDValue", "Ops", "[", "]", "=", "{", "Chain", ",", "PtrOffs", ",", "DAG", ".", "getTargetConstant", "(", "Width", ",", "SL", ",", "", ")", ",", "DAG", ".", "getTargetConstant", "(", "IsRetArgLoad", ",", "SL", ",", "", ")", ",", "DAG", ".", "getTargetConstant", "(", "isSExt", ",", "SL", ",", "", ")", ",", "InFlag", "}", ";", "ArrayRef", "<", "SDValue", ">", "OpsArr", "=", "makeArrayRef", "(", "Ops", ")", ";", "if", "(", "!", "InFlag", ")", "OpsArr", "=", "OpsArr", ".", "drop_back", "(", "", ")", ";", "EVT", "VT", "=", "(", "MemVT", ".", "getStoreSize", "(", ")", "<", "", ")", "?", "", ":", "ArgVT", ";", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "VT", ",", "", ",", "", ")", ";", "MachinePointerInfo", "PtrInfo", "(", "UndefValue", "::", "get", "(", "ArgPT", ")", ",", "Offset", ")", ";", "SDValue", "Arg", "=", "DAG", ".", "getMemIntrinsicNode", "(", "", ",", "SL", ",", "VTs", ",", "OpsArr", ",", "MemVT", ",", "PtrInfo", ",", "Align", ",", "false", ",", "true", ",", "false", ",", "MemVT", ".", "getStoreSize", "(", ")", ")", ";", "if", "(", "ArgVT", "==", "", ")", "{", "const", "SDValue", "Ops", "[", "]", "=", "{", "DAG", ".", "getNode", "(", "", ",", "SL", ",", "", ",", "Arg", ")", ",", "Arg", ".", "getValue", "(", "", ")", ",", "Arg", ".", "getValue", "(", "", ")", "}", ";", "return", "DAG", ".", "getMergeValues", "(", "Ops", ",", "SL"], "ground_truth": [")", ";"], "File": "HSAILISelLowering", "Func": "getArgLoad", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67152, "Length": 202, "Cover_Rate": 0.4190871369294606} {"Template_token": ["", "const", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "const", "DataLayout", "&", "DL", "=", "MF", ".", "getFunction", "(", ")", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "Type", "*", "EltTy", "=", "Ty", ";", "if", "(", "Ty", "->", "isArrayTy", "(", ")", ")", "EltTy", "=", "Ty", "->", "getArrayElementType", "(", ")", ";", "EltTy", "=", "EltTy", "->", "getScalarType", "(", ")", ";", "MVT", "PtrVT", "=", "getPointerTy", "(", "DL", ",", "AddressSpace", ")", ";", "PointerType", "*", "ArgPT", "=", "PointerType", "::", "get", "(", "EltTy", ",", "AddressSpace", ")", ";", "Offset", "+=", "DL", ".", "getTypeStoreSize", "(", "EltTy", ")", "*", "Index", ";", "EVT", "MemVT", "=", "ArgVT", ";", "if", "(", "ArgVT", "==", "", ")", "{", "MemVT", "=", "", ";", "Value", "=", "DAG", ".", "getNode", "(", "", ",", "SL", ",", "", ",", "Value", ")", ";", "}", "SDValue", "PtrOffs", "=", "DAG", ".", "getNode", "(", "", ",", "SL", ",", "PtrVT", ",", "Ptr", ",", "DAG", ".", "getConstant", "(", "Offset", ",", "SL", ",", "PtrVT", ")", ")", ";", "unsigned", "Align", "=", "getElementAlignment", "(", "DL", ",", "Ty", ",", "Index", ")", ";", "if", "(", "AddressSpace", "==", "", ")", "Align", "=", "DL", ".", "getABITypeAlignment", "(", "EltTy", ")", ";", "SDValue", "Ops", "[", "]", "=", "{", "Chain", ",", "Value", ",", "PtrOffs", ",", "InFlag", "}", ";", "ArrayRef", "<", "SDValue", ">", "OpsArr", "=", "makeArrayRef", "(", "Ops"], "ground_truth": [")", ";"], "File": "HSAILISelLowering", "Func": "getArgStore", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67153, "Length": 206, "Cover_Rate": 0.6005830903790087} {"Template_token": ["", "Type", "*", "EltTy", "=", "Ty", "->", "getScalarType", "(", ")", ";", "unsigned", "ffs", "=", "", ";", "while", "(", "(", "(", "n", ">>", "ffs", ")", "&", "", ")", "==", "", ")", "ffs", "++", ";", "Alignment", "=", "(", "DL", ".", "getABITypeAlignment", "(", "EltTy", ")", "*", "(", "", "<<", "ffs", ")", ")", "&", "(", "Alignment", "-", "", ")", ";", "}", "else", "{", "if", "(", "OpaqueType", "OT", "=", "GetOpaqueType", "(", "Ty", ")", ")", "{", "if", "(", "IsImage", "(", "OT", ")", "||", "OT"], "ground_truth": ["==", "Sampler", ")", "Alignment", "=", "", ";"], "File": "HSAILISelLowering", "Func": "getElementAlignment", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67154, "Length": 84, "Cover_Rate": 0.56} {"Template_token": ["", "if", "(", "Ty", "->", "isArrayTy", "(", ")", ")", "return", "getElementAlignment", "(", "DL", ",", "Ty", "->", "getArrayElementType", "(", ")", ",", "", ")", ";", "unsigned", "Alignment", "=", "DL", ".", "getABITypeAlignment", "(", "Ty", ")", ";", "if", "(", "n", "&&", "(", "Alignment", ">", "", ")", ")", "{", "Type", "*", "EltTy", "=", "Ty", "->", "getScalarType", "(", ")", ";", "unsigned", "ffs", "=", "", ";", "while", "(", "(", "(", "n", ">>", "ffs", ")", "&", "", ")", "==", "", ")", "ffs", "++", ";", "Alignment", "=", "(", "DL", ".", "getABITypeAlignment", "(", "EltTy", ")", "*", "(", "", "<<", "ffs", ")", ")", "&", "(", "Alignment", "-", "", ")", ";", "}", "else", "{", "if", "(", "OpaqueType", "OT", "=", "GetOpaqueType", "(", "Ty", ")", ")", "{", "if", "(", "IsImage", "(", "OT", ")", "||", "OT", "=="], "ground_truth": ["Sampler", ")", "Alignment", "=", "", ";"], "File": "HSAILISelLowering", "Func": "getElementAlignment", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67155, "Length": 127, "Cover_Rate": 0.8466666666666667} {"Template_token": ["", "static", "BrigType", "getParamBrigType", "(", "Type", "*", "Ty", ",", "const", "DataLayout", "&", "DL", ",", "bool", "IsSExt", ")", "{", "BrigType", "BT", "=", "", "(", "Ty", ",", "DL", ",", "IsSExt", ")", ";", "if", "(", "BT", "==", "BRIG_TYPE_B1", ")", "{", "assert", "(", "!", "IsSExt", "&&", "", ")", ";", "return", "IsSExt", "?", "BRIG_TYPE_S8", ":"], "ground_truth": ["BRIG_TYPE_U8", ";"], "File": "HSAILISelLowering", "Func": "getParamBrigType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67156, "Length": 51, "Cover_Rate": 0.8793103448275862} {"Template_token": ["", "uint8_t", "TargetLowering", "::", "getRepRegClassCostFor", "(", "MVT", "VT", ")", "const", "{", "return"], "ground_truth": ["", ";"], "File": "HSAILISelLowering", "Func": "getRepRegClassCostFor", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67157, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "EVT", "TargetLowering", "::", "getSetCCResultType", "(", "const", "DataLayout", "&", "DL", ",", "LLVMContext", "&", "Context", ",", "EVT", "VT", ")", "const", "{", "return", ""], "ground_truth": [";"], "File": "HSAILISelLowering", "Func": "getSetCCResultType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67158, "Length": 22, "Cover_Rate": 0.88} {"Template_token": ["", "bool", "TargetLowering", "::", "isDesirableToTransformToIntegerOp", "(", "unsigned", "Opc", ",", "EVT", "VT", ")", "const", "{", "return", "(", "Opc", "==", "", "||", "Opc", "==", "", ")", "&&", "(", "VT", ".", "getSimpleVT", "(", ")", "==", "", "||", "VT", ".", "getSimpleVT", "(", ")"], "ground_truth": ["==", "", ")", ";"], "File": "HSAILISelLowering", "Func": "isDesirableToTransformToIntegerOp", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67159, "Length": 42, "Cover_Rate": 0.8235294117647058} {"Template_token": ["", "bool", "TargetLowering", "::", "isDesirableToTransformToIntegerOp", "(", "unsigned", "Opc", ",", "EVT", "VT", ")", "const", "{", "return", "(", "Opc", "==", "", "||", "Opc", "==", "", ")", "&&", "(", "VT", ".", "getSimpleVT", "(", ")", "==", "", "||", "VT", ".", "getSimpleVT"], "ground_truth": ["(", ")", "==", "", ")", ";"], "File": "HSAILISelLowering", "Func": "isDesirableToTransformToIntegerOp", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67160, "Length": 42, "Cover_Rate": 0.8235294117647058} {"Template_token": ["", "bool", "TargetLowering", "::", "isFPImmLegal", "(", "const", "APFloat", "&", "Imm", ",", "EVT", "VT", ")", "const", "{", "return", "(", "VT", "==", "EVT", "(", "", ")", "||", "VT", "==", "EVT", "(", ""], "ground_truth": [")", ")", ";"], "File": "HSAILISelLowering", "Func": "isFPImmLegal", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67161, "Length": 32, "Cover_Rate": 0.8648648648648649} {"Template_token": ["", "bool", "TargetLowering", "::", "isFPImmLegal", "(", "const", "APFloat", "&", "Imm", ",", "EVT", "VT", ")", "const", "{", "return", "(", "VT", "==", "EVT", "(", "", ")", "||", "VT"], "ground_truth": ["==", "EVT", "(", "", ")", ")", ";"], "File": "HSAILISelLowering", "Func": "isFPImmLegal", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67162, "Length": 32, "Cover_Rate": 0.8648648648648649} {"Template_token": ["", "bool", "TargetLowering", "::", "isOffsetFoldingLegal", "(", "const", "GlobalAddressSDNode", "*"], "ground_truth": ["GA", ")", "const", "{"], "File": "HSAILISelLowering", "Func": "isOffsetFoldingLegal", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67163, "Length": 12, "Cover_Rate": 0.75} {"Template_token": ["", "bool", "TargetLowering", "::", "isOffsetFoldingLegal", "(", "const", "GlobalAddressSDNode", "*", "GA", ")", "const", "{", "return"], "ground_truth": ["true", ";"], "File": "HSAILISelLowering", "Func": "isOffsetFoldingLegal", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67164, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "else", "if", "(", "sType", "->", "isIntegerTy", "(", "", ")", ")", "argVT", "=", "", ";", "bool", "isLoad", "=", "Ins", "!=", "nullptr", ";", "bool", "hasFlag", "=", "InFlag", ".", "getNode", "(", ")", "!=", "nullptr", ";", "SDValue", "ArgValue", ";", "const", "VectorType", "*", "VecTy", "=", "dyn_cast", "<", "VectorType", ">", "(", "type", ")", ";", "const", "ArrayType", "*", "ArrTy", "=", "dyn_cast", "<", "ArrayType", ">", "(", "type", ")", ";", "if", "(", "VecTy", "||", "ArrTy", ")", "{", "unsigned", "num_elem", "=", "VecTy", "?", "VecTy", "->", "getNumElements", "(", ")", ":", "ArrTy", "->", "getNumElements", "(", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "num_elem", ";", "++", "i", ")", "{", "if", "(", "isLoad", ")", "{", "bool", "IsSExt", "=", "(", "*", "Ins", ")", "[", "ArgNo", "]", ".", "Flags", ".", "isSExt", "(", ")", ";", "ArgValue", "=", "getArgLoad", "(", "DAG", ",", "dl", ",", "argVT", ",", "type", ",", "IsSExt", ",", "AS", ",", "Chain", ",", "ParamPtr", ",", "InFlag", ",", "i", ",", "isRetArgLoad", ",", "offset", ")", ";", "}", "else", "{", "ArgValue", "=", "getArgStore", "(", "DAG", ",", "dl", ",", "argVT", ",", "type", ",", "AS", ",", "Chain", ",", "ParamPtr", ",", "(", "*", "OutVals", ")", "[", "ArgNo", "]", ",", "i", ",", "InFlag", ",", "AAInfo", ",", "offset", ")", ";", "}", "if", "(", "ChainLink", ")", "Chain", "=", "ArgValue", ".", "getValue", "(", "isLoad", "?", "", ":", "", ")", ";", "InFlag", "=", "ArgValue", ".", "getValue", "(", "isLoad", "?", "", ":", "", ")", ";", "if", "(", "InVals", ")", "InVals", "->", "push_back", "(", "ArgValue", ")", ";", "ArgNo", "++", ";", "}", "return", "ArgValue", ";", "}", "if", "(", "StructType", "*", "STy", "=", "dyn_cast", "<", "StructType", ">", "(", "type", ")", ")", "{", "const", "StructLayout", "*", "SL", "=", "DL", ".", "getStructLayout", "(", "STy", ")", ";", "unsigned", "num_elem", "=", "STy", "->", "getNumElements", "(", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "num_elem", ";", "++", "i", ")", "{", "ArgValue", "=", "LowerArgument", "(", "Chain", ",", "InFlag", ",", "ChainLink", ",", "Ins", ",", "Outs", ",", "dl", ",", "DAG", ",", "InVals", ",", "ArgNo", ",", "STy", "->", "getElementType", "(", "i", ")", ",", "AS", ",", "ParamName", ",", "ParamPtr", ",", "OutVals", ",", "isRetArgLoad", ",", "AAInfo", ",", "offset", "+", "SL", "->", "getElementOffset", "(", "i", ")", ")", ";", "if", "(", "ChainLink", ")", "Chain", "=", "ArgValue", ".", "getValue", "(", "isLoad", "?", "", ":", "", ")", ";", "if", "(", "hasFlag", ")", "InFlag", "=", "ArgValue", ".", "getValue", "(", "isLoad", "?", "", ":", "", ")", ";", "}", "return", "ArgValue", ";", "}", "if", "(", "isLoad", ")", "{", "bool", "IsSExt", "=", "(", "*", "Ins", ")", "[", "ArgNo", "]", ".", "Flags", ".", "isSExt", "(", ")", ";", "ArgValue", "=", "getArgLoad", "(", "DAG", ",", "dl", ",", "argVT", ",", "type", ",", "IsSExt", ",", "AS", ",", "Chain", ",", "ParamPtr", ",", "InFlag", ",", "", ",", "isRetArgLoad", ",", "offset", ")", ";", "}", "else", "{", "ArgValue", "=", "getArgStore", "(", "DAG", ",", "dl", ",", "argVT", ",", "type", ",", "AS", ",", "Chain", ",", "ParamPtr", ",", "(", "*", "OutVals", ")", "[", "ArgNo", "]", ",", "", ",", "InFlag", ",", "AAInfo", ",", "offset", ")", ";", "}", "if", "(", "InVals", ")", "InVals", "->", "push_back", "(", "ArgValue", ")", ";", "ArgNo", "++"], "ground_truth": [";"], "File": "HSAILISelLowering", "Func": "LowerArgument", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67165, "Length": 484, "Cover_Rate": 0.71071953010279} {"Template_token": ["", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "num_elem", ";", "++", "i", ")", "{", "if", "(", "isLoad", ")", "{", "bool", "IsSExt", "=", "(", "*", "Ins", ")", "[", "ArgNo", "]", ".", "Flags", ".", "isSExt", "(", ")", ";", "ArgValue", "=", "getArgLoad", "(", "DAG", ",", "dl", ",", "argVT", ",", "type", ",", "IsSExt", ",", "AS", ",", "Chain", ",", "ParamPtr", ",", "InFlag", ",", "i", ",", "isRetArgLoad", ",", "offset", ")", ";", "}", "else", "{", "ArgValue", "=", "getArgStore", "(", "DAG", ",", "dl", ",", "argVT", ",", "type", ",", "AS", ",", "Chain", ",", "ParamPtr", ",", "(", "*", "OutVals", ")", "[", "ArgNo", "]", ",", "i", ",", "InFlag", ",", "AAInfo", ",", "offset", ")", ";", "}", "if", "(", "ChainLink", ")", "Chain", "=", "ArgValue", ".", "getValue", "(", "isLoad", "?", "", ":", "", ")", ";", "InFlag", "=", "ArgValue", ".", "getValue", "(", "isLoad", "?", "", ":", "", ")", ";", "if", "(", "InVals", ")", "InVals", "->", "push_back", "(", "ArgValue", ")", ";", "ArgNo", "++", ";", "}", "return", "ArgValue", ";", "}", "if", "(", "StructType", "*", "STy", "=", "dyn_cast", "<", "StructType", ">", "(", "type", ")", ")", "{", "const", "StructLayout", "*", "SL", "=", "DL", ".", "getStructLayout", "(", "STy", ")", ";", "unsigned", "num_elem", "=", "STy", "->", "getNumElements", "(", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "num_elem", ";", "++", "i", ")", "{", "ArgValue", "=", "LowerArgument", "(", "Chain", ",", "InFlag", ",", "ChainLink", ",", "Ins", ",", "Outs", ",", "dl", ",", "DAG", ",", "InVals", ",", "ArgNo", ",", "STy", "->", "getElementType", "(", "i", ")", ",", "AS", ",", "ParamName", ",", "ParamPtr", ",", "OutVals", ",", "isRetArgLoad", ",", "AAInfo", ",", "offset", "+", "SL", "->", "getElementOffset", "(", "i", ")", ")", ";", "if", "(", "ChainLink", ")", "Chain", "=", "ArgValue", ".", "getValue", "(", "isLoad", "?", "", ":", "", ")", ";", "if", "(", "hasFlag", ")", "InFlag", "=", "ArgValue", ".", "getValue", "(", "isLoad", "?", "", ":", "", ")", ";", "}", "return"], "ground_truth": ["ArgValue", ";"], "File": "HSAILISelLowering", "Func": "LowerArgument", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67166, "Length": 294, "Cover_Rate": 0.43171806167400884} {"Template_token": ["", "FuncName", "=", "GV", "->", "getName", "(", ")", ".", "data", "(", ")", ";", "}", "else", "llvm_unreachable", "(", "", ")", ";", "assert", "(", "funcType", "!=", "nullptr", ")", ";", "SmallVector", "<", "SDValue", ",", "", ">", "Ops", ";", "SmallVector", "<", "SDValue", ",", "", ">", "VarOps", ";", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "", ",", "", ")", ";", "Type", "*", "retType", "=", "funcType", "->", "getReturnType", "(", ")", ";", "SDValue", "RetValue", ";", "if", "(", "!", "retType", "->", "isVoidTy", "(", ")", ")", "{", "MVT", "PtrVT", "=", "getPointerTy", "(", "DL", ",", "", ")", ";", "RetValue", "=", "DAG", ".", "getTargetExternalSymbol", "(", "PM", ".", "getParamName", "(", "PM", ".", "addCallRetParam", "(", "retType", ",", "PM", ".", "mangleArg", "(", "&", "Mang", ",", "FuncName", ",", "DL", ")", ")", ")", ",", "PtrVT", ")", ";", "unsigned", "NElts", ";", "Type", "*", "EmitTy", "=", "", "(", "retType", ",", "NElts", ",", "DL", ")", ";", "BrigType", "BT", "=", "getParamBrigType", "(", "EmitTy", ",", "DL", ",", "CLI", ".", "RetSExt", ")", ";", "unsigned", "Align", "=", "", "(", "retType", ",", "DL", ",", "false", ")", ";", "const", "SDValue", "ArgDeclOps", "[", "]", "=", "{", "RetValue", ",", "DAG", ".", "getTargetConstant", "(", "BT", ",", "dl", ",", "", ")", ",", "DAG", ".", "getTargetConstant", "(", "NElts", ",", "dl", ",", "PtrVT", ")", ",", "DAG", ".", "getTargetConstant", "(", "Align", ",", "dl", ",", "", ")", ",", "Chain", ",", "InFlag", "}", ";", "SDNode", "*", "ArgDeclNode", "=", "DAG", ".", "getMachineNode", "(", "", ",", "dl", ",", "VTs", ",", "ArgDeclOps", ")", ";", "SDValue", "ArgDecl", "(", "ArgDeclNode", ",", "", ")", ";", "Chain", "=", "SDValue", "(", "ArgDeclNode", ",", "", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "", ")", ";", "VarOps", ".", "push_back", "(", "RetValue", ")", ";", "}", "VarOps", ".", "push_back", "(", "DAG", ".", "getTargetConstant", "(", "", ",", "dl", ",", "", ")", ")", ";", "unsigned", "FirstArg", "=", "VarOps", ".", "size", "(", ")", ";", "unsigned", "int", "j", "=", "", ",", "k", "=", "", ";", "Function", "::", "const_arg_iterator", "ai", ";", "Function", "::", "const_arg_iterator", "ae", ";", "if", "(", "calleeFunc", ")", "{", "ai", "=", "calleeFunc", "->", "arg_begin", "(", ")", ";", "ae", "=", "calleeFunc", "->", "arg_end", "(", ")", ";", "}", "MVT", "ArgPtrVT", "=", "getPointerTy", "(", "DL", ",", "", ")", ";", "MDBuilder", "MDB", "(", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "for", "(", "FunctionType", "::", "param_iterator", "pb", "=", "funcType", "->", "param_begin", "(", ")", ",", "pe", "=", "funcType", "->", "param_end", "(", ")", ";", "pb", "!=", "pe", ";", "++", "pb", ",", "++", "ai", ",", "++", "k", ")", "{", "Type", "*", "type", "=", "*", "pb", ";", "std", "::", "string", "ParamName", ";", "if", "(", "calleeFunc", "&&", "ai", "!=", "ae", ")", "{", "ParamName", "=", "PM", ".", "mangleArg", "(", "&", "Mang", ",", "ai", "->", "getName", "(", ")", ",", "DL", ")", ";", "}", "if", "(", "ParamName", ".", "empty", "(", ")", ")", "{", "ParamName", "="], "ground_truth": ["", ";"], "File": "HSAILISelLowering", "Func": "LowerCall", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67167, "Length": 436, "Cover_Rate": 0.33746130030959753} {"Template_token": ["", "MachineFunctionInfo", "*", "FuncInfo", "=", "MF", ".", "getInfo", "<", "MachineFunctionInfo", ">", "(", ")", ";", "ParamManager", "&", "PM", "=", "FuncInfo", "->", "getParamManager", "(", ")", ";", "unsigned", "AS", "=", "", "(", "MF", ".", "getFunction", "(", ")", ")", "?", "", ":", "", ";", "const", "DataLayout", "&", "DL", "=", "MF", ".", "getFunction", "(", ")", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "MVT", "PtrTy", "=", "getPointerTy", "(", "DL", ",", "AS", ")", ";", "Mangler", "Mang", ";", "Function", "::", "const_arg_iterator", "AI", "=", "MF", ".", "getFunction", "(", ")", "->", "arg_begin", "(", ")", ";", "Function", "::", "const_arg_iterator", "AE", "=", "MF", ".", "getFunction", "(", ")", "->", "arg_end", "(", ")", ";", "for", "(", "unsigned", "ArgNo", "=", "", ";", "AI", "!=", "AE", ";", "++", "AI", ")", "{", "unsigned", "Param", "=", "PM", ".", "addArgumentParam", "(", "AS", ",", "*", "AI", ",", "ParamManager", "::", "mangleArg", "(", "&", "Mang", ",", "AI", "->", "getName", "(", ")", ",", "DL", ")", ")", ";", "const", "char", "*", "ParamName", "=", "PM", ".", "getParamName", "(", "Param", ")", ";", "std", "::", "string", "md", "=", "(", "AI", "->", "getName", "(", ")", "+", "", "+", "ParamName", "+", "", ")", ".", "str", "(", ")", ";", "FuncInfo", "->", "addMetadata", "(", "", "+", "md", ",", "true", ")", ";", "SDValue", "ParamPtr", "=", "DAG", ".", "getTargetExternalSymbol", "(", "ParamName", ",", "PtrTy", ")", ";", "LowerArgument", "(", "Chain", ",", "SDValue", "(", ")", ",", "false", ",", "&", "Ins", ",", "nullptr", ",", "dl", ",", "DAG", ",", "&", "InVals", ",", "ArgNo", ",", "AI", "->", "getType", "(", ")", ",", "AS", ",", "ParamName", ",", "ParamPtr", ",", "nullptr", ")", ";", "}", "return"], "ground_truth": ["Chain", ";"], "File": "HSAILISelLowering", "Func": "LowerFormalArguments", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67168, "Length": 246, "Cover_Rate": 0.8065573770491803} {"Template_token": ["", "ParamManager", "&", "PM", "=", "FuncInfo", "->", "getParamManager", "(", ")", ";", "const", "Function", "*", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "const", "FunctionType", "*", "funcType", "=", "F", "->", "getFunctionType", "(", ")", ";", "SmallVector", "<", "SDValue", ",", "", ">", "RetOps", ";", "RetOps", ".", "push_back", "(", "Chain", ")", ";", "const", "DataLayout", "&", "DL", "=", "F", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "Type", "*", "type", "=", "funcType", "->", "getReturnType", "(", ")", ";", "if", "(", "!", "type", "->", "isVoidTy", "(", ")", ")", "{", "Mangler", "Mang", ";", "const", "char", "*", "SymName", "=", "PM", ".", "getParamName", "(", "PM", ".", "addReturnParam", "(", "type", ",", "PM", ".", "mangleArg", "(", "&", "Mang", ",", "F", "->", "getName", "(", ")", ",", "DL", ")", ")", ")", ";", "MVT", "ArgPtrVT", "=", "getPointerTy", "(", "DL", ",", "", ")", ";", "SDValue", "RetVariable", "=", "DAG", ".", "getTargetExternalSymbol", "(", "SymName", ",", "ArgPtrVT", ")", ";", "AAMDNodes", "MD", ";", "unsigned", "ArgNo", "=", "", ";", "LowerArgument", "(", "Chain", ",", "SDValue", "(", ")", ",", "false", ",", "nullptr", ",", "&", "Outs", ",", "dl", ",", "DAG", ",", "&", "RetOps", ",", "ArgNo", ",", "type", ",", "", ",", "nullptr", ",", "RetVariable", ",", "&", "OutVals", ",", "false", ",", "MD", ")", ";", "Chain", "=", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "", ",", "RetOps", ")", ";", "}", "return", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "", ",", "Chain"], "ground_truth": [")", ";"], "File": "HSAILISelLowering", "Func": "LowerReturn", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67169, "Length": 218, "Cover_Rate": 0.734006734006734} {"Template_token": ["", "SelectionDAG", "&", "DAG", "=", "DCI", ".", "DAG", ";", "SDLoc", "dl", "=", "SDLoc", "(", "N", ")", ";", "EVT", "VT", "=", "N", "->", "getValueType", "(", "", ")", ";", "if", "(", "SHR", "&&", "(", "Opr0", "==", "Opr1", ")", "&&", "(", "Opr0", ".", "getOpcode", "(", ")", "==", "", ")", ")", "{", "if", "(", "ConstantSDNode", "*", "AndMask", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Opr0", ".", "getOperand", "(", "", ")", ")", ")", "{", "uint64_t", "and_mask", "=", "AndMask", "->", "getZExtValue", "(", ")", ";", "uint64_t", "shr_val", "=", "SHR", "->", "getZExtValue", "(", ")", "&", "", ";", "if", "(", "IID", "==", "", ")", "shr_val", "=", "(", "shr_val", "&", "", ")", "<<", "", ";", "and_mask", "=", "(", "(", "and_mask", ">>", "shr_val", ")", "|", "(", "and_mask", "<<", "(", "", "-", "shr_val", ")", ")", ")", "&", "", ";", "Opr0", "=", "Opr0", "->", "getOperand", "(", "", ")", ";", "return", "DAG", ".", "getNode", "(", "", ",", "SDLoc", "(", "Opr1", ")", ",", "Opr1", ".", "getValueType", "(", ")", ",", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "VT", ",", "DAG", ".", "getConstant", "(", "IID", ",", "dl", ",", "", ")", ",", "Opr0", ",", "Opr0", ",", "Opr2", ")", ",", "DAG", ".", "getConstant", "(", "and_mask", ",", "dl", ",", "", ")", ")", ";", "}", "}", "if", "(", "SHR", "&&", "(", "IID", "==", ""], "ground_truth": [")", ")", "{"], "File": "HSAILISelLowering", "Func": "PerformBitalignCombine", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67170, "Length": 205, "Cover_Rate": 0.5540540540540541} {"Template_token": ["", "unsigned", "IID", "=", "cast", "<", "ConstantSDNode", ">", "(", "N", "->", "getOperand", "(", "", ")", ")", "->", "getZExtValue", "(", ")", ";", "switch", "(", "IID"], "ground_truth": [")", "{"], "File": "HSAILISelLowering", "Func": "PerformIntrinsic_Wo_ChainCombine", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67171, "Length": 25, "Cover_Rate": 0.3125} {"Template_token": ["", "Kernel", "(", ")", "{", "curSize", "=", "", ";", "curRSize", "=", "", ";", "curHWSize", "="], "ground_truth": ["", ";"], "File": "HSAILKernel", "Func": "HSAILKernel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67172, "Length": 16, "Cover_Rate": 0.42105263157894735} {"Template_token": ["", "mHasRWR", "="], "ground_truth": ["false", ";"], "File": "HSAILKernel", "Func": "_HSAILkernelArgRec", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67173, "Length": 4, "Cover_Rate": 0.3076923076923077} {"Template_token": ["", "void", "addArgReg", "(", "unsigned", "arg", ")", "{", "mArgRegs", ".", "push_back", "("], "ground_truth": ["arg", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "addArgReg", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67174, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "void", "addCalledFunc", "(", "uint32_t", "id"], "ground_truth": [")", "{"], "File": "HSAILMachineFunctionInfo", "Func": "addCalledFunc", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67175, "Length": 7, "Cover_Rate": 0.4666666666666667} {"Template_token": ["", "mFuncs", ".", "insert"], "ground_truth": ["(", "id", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "addCalledFunc", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67176, "Length": 7, "Cover_Rate": 0.4666666666666667} {"Template_token": ["", "return", "mIntLits", "[", "val"], "ground_truth": ["]", ";"], "File": "HSAILMachineFunctionInfo", "Func": "addi32Literal", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67177, "Length": 6, "Cover_Rate": 0.3157894736842105} {"Template_token": ["", "return", "mIntLits", "[", "val"], "ground_truth": ["]", ";"], "File": "HSAILMachineFunctionInfo", "Func": "addi32Literal", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67178, "Length": 6, "Cover_Rate": 0.3157894736842105} {"Template_token": ["", "if", "(", "kernelOnly", ")", "{", "mMetadataKernel", ".", "push_back", "("], "ground_truth": ["md", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "addMetadata", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67179, "Length": 12, "Cover_Rate": 0.3157894736842105} {"Template_token": ["", "mOperands", ".", "resize", "(", "(", "unsigned", ")", "(", "idx", "+", "", ")", ")", ";", "mOperands", "[", "(", "unsigned", ")", "idx"], "ground_truth": ["]", "=", "size", ";"], "File": "HSAILMachineFunctionInfo", "Func": "addOperand", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67180, "Length": 24, "Cover_Rate": 0.6486486486486487} {"Template_token": ["", "void", "add_read_ptr", "(", "const", "Value"], "ground_truth": ["*", "ptr", ")", "{"], "File": "HSAILMachineFunctionInfo", "Func": "add_read_ptr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67181, "Length": 9, "Cover_Rate": 0.5294117647058824} {"Template_token": ["", "void", "add_read_ptr", "(", "const", "Value", "*", "ptr", ")", "{", "mReadPtr", ".", "insert"], "ground_truth": ["(", "ptr", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "add_read_ptr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67182, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "mFuncs", ".", "erase", "(", "id"], "ground_truth": [")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "eraseCalledFunc", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67183, "Length": 7, "Cover_Rate": 0.4666666666666667} {"Template_token": ["", "void", "eraseCalledFunc", "(", "uint32_t", "id"], "ground_truth": [")", "{"], "File": "HSAILMachineFunctionInfo", "Func": "eraseCalledFunc", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67184, "Length": 7, "Cover_Rate": 0.4666666666666667} {"Template_token": ["", "error_iterator", "errors_begin", "(", ")", "{", "return", "mErrors", ".", "begin", "("], "ground_truth": [")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "errors_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67185, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "return", "mErrors", "."], "ground_truth": ["begin", "(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "errors_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67186, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "bool", "errors_empty", "(", ")"], "ground_truth": ["{"], "File": "HSAILMachineFunctionInfo", "Func": "errors_empty", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67187, "Length": 5, "Cover_Rate": 0.38461538461538464} {"Template_token": ["", "bool", "errors_empty", "(", ")", "{", "return", "mErrors", "."], "ground_truth": ["empty", "(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "errors_empty", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67188, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "return", "mErrors", "."], "ground_truth": ["end", "(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "errors_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67189, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "return", "iterator_range", "<", "func_iterator", ">", "(", "func_begin", "("], "ground_truth": [")", ",", "func_end", "(", ")", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "funcs", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67190, "Length": 15, "Cover_Rate": 0.6} {"Template_token": ["", "return", "mFuncs", ".", "begin", "("], "ground_truth": [")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "func_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67191, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "bool", "func_empty", "(", ")", "{", "return", "mFuncs", ".", "empty"], "ground_truth": ["(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "func_empty", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67192, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "func_iterator", "func_end", "(", ")", "{", "return", "mFuncs", ".", "end", "("], "ground_truth": [")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "func_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67193, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "return", "mFuncs", ".", "end"], "ground_truth": ["(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "func_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67194, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "func_md_iterator", "func_md_begin", "(", ")", "{", "return", "mMetadataFunc", ".", "begin", "("], "ground_truth": [")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "func_md_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67195, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "return", "mMetadataFunc", ".", "end"], "ground_truth": ["(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "func_md_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67196, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "size_t", "func_size", "(", ")", "{", "return", "mFuncs", ".", "size", "("], "ground_truth": [")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "func_size", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67197, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "++", "begin", ")", "{", "if", "(", "!", "strcmp", "(", "begin", "->", "name", ".", "data", "(", ")", ",", "arg", ".", "c_str", "(", ")", ")", ")", "{", "return", "&", "(", "*", "begin", ")", ";", "}", "}", "return"], "ground_truth": ["nullptr", ";"], "File": "HSAILMachineFunctionInfo", "Func": "getConstPtr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67198, "Length": 37, "Cover_Rate": 0.3523809523809524} {"Template_token": ["", "if", "(", "mGroupMemSize", "==", "-", "", ")", "{", "const", "DataLayout", "&", "DL", "=", "mMF", "->", "getDataLayout", "(", ")", ";", "mGroupMemSize", "=", "", ";", "SmallPtrSet", "<", "const", "GlobalVariable", "*", ",", "", ">", "thisFuncGrpVarsSet", ";", "for", "(", "MachineFunction", "::", "const_iterator", "I", "=", "mMF", "->", "begin", "(", ")", ",", "E", "=", "mMF", "->", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "for", "(", "MachineBasicBlock", "::", "const_iterator", "II", "=", "I", "->", "begin", "(", ")", ",", "IE", "=", "I", "->", "end", "(", ")", ";", "II", "!=", "IE", ";", "++", "II", ")", "{", "const", "MachineInstr", "*", "LastMI", "=", "II", ";", "for", "(", "unsigned", "int", "opNum", "=", "", ";", "opNum", "<", "LastMI", "->", "getNumOperands", "(", ")", ";", "opNum", "++", ")", "{", "const", "MachineOperand", "&", "MO", "=", "LastMI", "->", "getOperand", "(", "opNum", ")", ";", "if", "(", "MO", ".", "getType", "(", ")", "==", "MachineOperand", "::", "MO_GlobalAddress", ")", "{", "if", "(", "const", "GlobalVariable", "*", "GV", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "MO", ".", "getGlobal", "(", ")", ")", ")", "{", "if", "(", "GV", "->", "getType", "(", ")", "->", "getAddressSpace", "("], "ground_truth": [")", "==", "", ")", "{"], "File": "HSAILMachineFunctionInfo", "Func": "getGroupSize", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67199, "Length": 178, "Cover_Rate": 0.7295081967213115} {"Template_token": ["", "Kernel", "*", "MachineFunctionInfo", "::", "getKernel", "(", ")", "{", "return"], "ground_truth": ["mKernel", ";"], "File": "HSAILMachineFunctionInfo", "Func": "getKernel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67200, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "return", "mOperands", "."], "ground_truth": ["size", "(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "getNumOperands", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67201, "Length": 7, "Cover_Rate": 0.4666666666666667} {"Template_token": ["", "size_t", "PrintfInfo", "::", "getNumOperands", "(", ")", "{", "return", "mOperands", ".", "size", "("], "ground_truth": [")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "getNumOperands", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67202, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "uint32_t", "PrintfInfo", "::", "getOperandID", "("], "ground_truth": ["uint32_t", "idx", ")", "{"], "File": "HSAILMachineFunctionInfo", "Func": "getOperandID", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67203, "Length": 9, "Cover_Rate": 0.5625} {"Template_token": ["", "const", "MachineOperand", "&", "MO", "=", "LastMI", "->", "getOperand", "(", "opNum", ")", ";", "if", "(", "MO", ".", "getType", "(", ")", "==", "MachineOperand", "::", "MO_GlobalAddress", ")", "{", "if", "(", "const", "GlobalVariable", "*", "GV", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "MO", ".", "getGlobal", "(", ")", ")", ")", "{", "if", "(", "GV", "->", "getType", "(", ")", "->", "getAddressSpace", "(", ")", "==", "", ")", "{", "if", "(", "thisFuncPvtVarsSet", ".", "insert", "(", "GV", ")", ".", "second", ")", "{", "mPrivateMemSize", "+=", "DL", ".", "getTypeAllocSize", "(", "GV", "->", "getType", "(", ")", "->", "getElementType", "(", ")", ")", ";", "}", "}", "}", "}", "}", "}", "}", "mPrivateMemSize", "=", "(", "(", "mPrivateMemSize", "+", "", ")", "&", "~", "", ")", ";", "}", "return", "(", "uint32_t"], "ground_truth": [")", "mPrivateMemSize", ";"], "File": "HSAILMachineFunctionInfo", "Func": "getPrivateSize", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67204, "Length": 116, "Cover_Rate": 0.47540983606557374} {"Template_token": ["", "unsigned", "getRegisterPartitioning", "(", ")", "const"], "ground_truth": ["{"], "File": "HSAILMachineFunctionInfo", "Func": "getRegisterPartitioning", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67205, "Length": 6, "Cover_Rate": 0.6} {"Template_token": ["", "if", "(", "mScratchSize", "==", "-", "", ")", "{", "mScratchSize", "=", "", ";", "Function", "::", "const_arg_iterator", "I", "=", "mMF", "->", "getFunction", "(", ")", "->", "arg_begin", "(", ")", ";", "Function", "::", "const_arg_iterator", "Ie", "=", "mMF", "->", "getFunction", "(", ")", "->", "arg_end", "(", ")", ";", "while", "(", "I", "!=", "Ie"], "ground_truth": [")", "{"], "File": "HSAILMachineFunctionInfo", "Func": "getScratchSize", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67206, "Length": 49, "Cover_Rate": 0.47572815533980584} {"Template_token": ["", "const", "TargetMachine", "*", "TM", "=", "reinterpret_cast", "<", "const", "TargetMachine", "*", ">", "(", "&", "mMF", "->", "getTarget", "(", ")", ")", ";", "bool", "addStackSize", "=", "TM", "->", "getOptLevel", "(", ")", "==", "CodeGenOpt", "::", "None", ";", "Function", "::", "const_arg_iterator", "I", "=", "mMF", "->", "getFunction", "(", ")", "->", "arg_begin", "(", ")", ";", "Function", "::", "const_arg_iterator", "Ie", "=", "mMF", "->", "getFunction", "(", ")", "->", "arg_end", "(", ")", ";", "while", "(", "I"], "ground_truth": ["!=", "Ie", ")", "{"], "File": "HSAILMachineFunctionInfo", "Func": "getStackSize", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67207, "Length": 70, "Cover_Rate": 0.33175355450236965} {"Template_token": ["", "bool", "hasScavengerSpill", "(", ")", "const"], "ground_truth": ["{"], "File": "HSAILMachineFunctionInfo", "Func": "hasScavengerSpill", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67208, "Length": 6, "Cover_Rate": 0.6} {"Template_token": ["", "bool", "hasSpilledCRs", "("], "ground_truth": [")", "const", "{"], "File": "HSAILMachineFunctionInfo", "Func": "hasSpilledCRs", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67209, "Length": 6, "Cover_Rate": 0.6} {"Template_token": ["", "bool", "hasSpilledCRs", "(", ")", "const", "{", "return", "HasSpilledCRs"], "ground_truth": [";"], "File": "HSAILMachineFunctionInfo", "Func": "hasSpilledCRs", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67210, "Length": 9, "Cover_Rate": 0.9} {"Template_token": ["", "const", "ConstantExpr", "*", "nameField", "=", "dyn_cast", "<", "ConstantExpr", ">", "(", "CA", "->", "getOperand", "(", "start", ")", ")", ";", "if", "(", "!", "nameField", ")", "continue", ";", "const", "GlobalVariable", "*", "nameGV", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "nameField", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "nameGV", "||", "!", "nameGV", "->", "hasInitializer", "(", ")", ")", "continue", ";", "const", "ConstantDataSequential", "*", "nameArray", "=", "dyn_cast", "<", "ConstantDataSequential", ">", "(", "nameGV", "->", "getInitializer", "(", ")", ")", ";", "if", "(", "!", "nameArray", ")", "continue", ";", "std", "::", "string", "nameStr", "=", "nameArray", "->", "getAsString", "(", ")", ";", "if", "(", "!", "nameStr", ".", "compare", "(", "", ",", "nameStr", ".", "length", "(", ")", "-", "", ",", "argName", ")", ")"], "ground_truth": ["return", "true", ";"], "File": "HSAILMachineFunctionInfo", "Func": "isConstantArgument", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67211, "Length": 115, "Cover_Rate": 0.4356060606060606} {"Template_token": ["", "return", "mKernel", "!=", "nullptr", "&&", "mKernel", "->", "mKernel"], "ground_truth": [";"], "File": "HSAILMachineFunctionInfo", "Func": "isKernel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67212, "Length": 9, "Cover_Rate": 0.5} {"Template_token": ["", "bool", "MachineFunctionInfo", "::", "isRestrictPointer", "(", "const", "Value", "*", "ptr", ")", "{", "if", "(", "!", "mSTM", "->", "supportMetadata30", "(", ")", ")", "return", "false", ";", "std", "::", "string", "signedNames", "=", "", ";", "std", "::", "string", "argName", "=", "ptr", "->", "getName", "(", ")", ";", "if", "(", "!", "mMF", ")", "return", "false", ";", "signedNames", "+=", "mMF", "->", "getFunction", "(", ")", "->", "getName", "(", ")", ";", "const", "GlobalVariable", "*", "GV", "=", "mMF", "->", "getFunction", "(", ")", "->", "getParent", "(", ")", "->", "getGlobalVariable", "(", "signedNames", ")", ";", "if", "(", "!", "GV", "||", "!", "GV", "->", "hasInitializer", "(", ")", ")"], "ground_truth": ["return", "false", ";"], "File": "HSAILMachineFunctionInfo", "Func": "isRestrictPointer", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67213, "Length": 96, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "const", "GlobalVariable", "*", "nameGV", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "nameField", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "nameGV", "||", "!", "nameGV", "->", "hasInitializer", "(", ")", ")", "continue", ";", "const", "ConstantDataSequential", "*", "nameArray", "=", "dyn_cast", "<", "ConstantDataSequential", ">", "(", "nameGV", "->", "getInitializer", "(", ")", ")", ";", "if", "(", "!", "nameArray", ")", "continue", ";", "std", "::", "string", "nameStr", "=", "nameArray", "->", "getAsString", "(", ")", ";", "if", "(", "!", "nameStr", ".", "compare", "(", "", ",", "nameStr", ".", "length", "(", ")", "-", ""], "ground_truth": [",", "argName", ")", ")", "return", "true", ";"], "File": "HSAILMachineFunctionInfo", "Func": "isSignedIntType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67214, "Length": 90, "Cover_Rate": 0.3409090909090909} {"Template_token": ["", "return", "mMetadataKernel", ".", "begin", "("], "ground_truth": [")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "kernel_md_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67215, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "kernel_md_iterator", "kernel_md_end", "(", ")", "{", "return", "mMetadataKernel", "."], "ground_truth": ["end", "(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "kernel_md_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67216, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "bool", "read_ptr_count", "(", "const", "Value"], "ground_truth": ["*", "ptr", ")", "{"], "File": "HSAILMachineFunctionInfo", "Func": "read_ptr_count", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67217, "Length": 9, "Cover_Rate": 0.5} {"Template_token": ["", "sampler_iterator", "sampler_begin", "(", ")"], "ground_truth": ["{"], "File": "HSAILMachineFunctionInfo", "Func": "sampler_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67218, "Length": 5, "Cover_Rate": 0.38461538461538464} {"Template_token": ["", "return", "mSamplerMap", ".", "end"], "ground_truth": ["(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "sampler_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67219, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "return", "mSamplerMap", ".", "end"], "ground_truth": ["(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "sampler_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67220, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "sema_iterator", "sema_begin", "(", ")", "{", "return", "mSemaphore", "."], "ground_truth": ["begin", "(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "sema_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67221, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "sema_iterator", "sema_begin", "("], "ground_truth": [")", "{"], "File": "HSAILMachineFunctionInfo", "Func": "sema_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67222, "Length": 5, "Cover_Rate": 0.38461538461538464} {"Template_token": ["", "return", "mSemaphore", ".", "count"], "ground_truth": ["(", "id", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "sema_count", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67223, "Length": 8, "Cover_Rate": 0.5} {"Template_token": ["", "bool", "sema_count", "(", "uint32_t", "id"], "ground_truth": [")", "{"], "File": "HSAILMachineFunctionInfo", "Func": "sema_count", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67224, "Length": 7, "Cover_Rate": 0.4375} {"Template_token": ["", "sema_iterator", "sema_end", "(", ")"], "ground_truth": ["{"], "File": "HSAILMachineFunctionInfo", "Func": "sema_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67225, "Length": 5, "Cover_Rate": 0.38461538461538464} {"Template_token": ["", "sema_iterator", "sema_end", "(", ")", "{", "return", "mSemaphore", ".", "end", "(", ")"], "ground_truth": [";"], "File": "HSAILMachineFunctionInfo", "Func": "sema_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67226, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "void", "sema_insert", "(", "uint32_t"], "ground_truth": ["id", ")", "{"], "File": "HSAILMachineFunctionInfo", "Func": "sema_insert", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67227, "Length": 7, "Cover_Rate": 0.4666666666666667} {"Template_token": ["", "mSemaphore", ".", "insert", "(", "id"], "ground_truth": [")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "sema_insert", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67228, "Length": 7, "Cover_Rate": 0.4666666666666667} {"Template_token": ["", "return", "mSemaphore", ".", "size"], "ground_truth": ["(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "sema_size", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67229, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "void", "setHasScavengerSpill", "(", "bool", "Spill", "=", "true", ")", "{", "HasScavengerSpill", "="], "ground_truth": ["Spill", ";"], "File": "HSAILMachineFunctionInfo", "Func": "setHasScavengerSpill", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67230, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "void", "PrintfInfo", "::", "setPrintfID", "("], "ground_truth": ["uint32_t", "id", ")", "{"], "File": "HSAILMachineFunctionInfo", "Func": "setPrintfID", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67231, "Length": 9, "Cover_Rate": 0.6428571428571429} {"Template_token": ["", "RegisterPartitioning", "="], "ground_truth": ["RegSlots", ";"], "File": "HSAILMachineFunctionInfo", "Func": "setRegisterPartitioning", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67232, "Length": 4, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "RegisterPartitioning", "="], "ground_truth": ["RegSlots", ";"], "File": "HSAILMachineFunctionInfo", "Func": "setRegisterPartitioning", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67233, "Length": 4, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "void", "uav_insert", "(", "uint32_t", "id"], "ground_truth": [")", "{"], "File": "HSAILMachineFunctionInfo", "Func": "uav_insert", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67234, "Length": 7, "Cover_Rate": 0.4666666666666667} {"Template_token": ["", "if", "(", "curConst", ")", "{", "return", "curConst", "->", "usesHardware", ";", "}"], "ground_truth": ["else", "{"], "File": "HSAILMachineFunctionInfo", "Func": "usesHWConstant", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67235, "Length": 13, "Cover_Rate": 0.30952380952380953} {"Template_token": ["", "MCSection", "*", "MCAsmInfo", "::", "getNonexecutableStackSection", "(", "MCContext", "&", "Ctx", ")", "const", "{", "return"], "ground_truth": ["nullptr", ";"], "File": "HSAILMCAsmInfo", "Func": "getNonexecutableStackSection", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67236, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "MCSection", "*", "MCAsmInfo", "::", "getNonexecutableStackSection", "(", "MCContext", "&", "Ctx"], "ground_truth": [")", "const", "{"], "File": "HSAILMCAsmInfo", "Func": "getNonexecutableStackSection", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67237, "Length": 12, "Cover_Rate": 0.75} {"Template_token": ["", "SupportsQuotedNames", "=", "false", ";", "HasDotTypeDotSizeDirective", "=", "false", ";", "HasSingleParameterDotFile", "=", "false", ";", "SupportsDebugInformation", "=", "false", ";", "PointerSize", "=", "TT", ".", "getArch", "(", ")", "==", "Triple", "::", "hsail64", "?", "", ":", "", ";", "ExceptionsType", "=", "ExceptionHandling", "::", "None", ";", "CommentString", "=", ""], "ground_truth": [";"], "File": "HSAILMCAsmInfo", "Func": "HSAILMCAsmInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67238, "Length": 42, "Cover_Rate": 0.5185185185185185} {"Template_token": ["", "return", "(", "C", ">=", "'a'", "&&", "C", "<=", "'z'", ")", "||", "(", "C", ">=", "'A'", "&&", "C", "<=", "'Z'", ")", "||", "(", "C", ">=", "'0'", "&&", "C", "<="], "ground_truth": ["'9'", ")", "||", "C", "==", "'_'", "||", "C", "==", "'$'", "||", "C", "==", "'.'", "||", "C", "==", "'@'", ";"], "File": "HSAILMCAsmInfo", "Func": "isValidChar", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67239, "Length": 47, "Cover_Rate": 0.8392857142857143} {"Template_token": ["", "return", "(", "C", ">=", "'a'", "&&", "C", "<=", "'z'", ")", "||", "(", "C", ">=", "'A'", "&&", "C", "<=", "'Z'", ")", "||", "(", "C", ">=", "'0'", "&&", "C", "<=", "'9'", ")", "||", "C"], "ground_truth": ["==", "'_'", "||", "C", "==", "'$'", "||", "C", "==", "'.'", "||", "C", "==", "'@'", ";"], "File": "HSAILMCAsmInfo", "Func": "isValidChar", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67240, "Length": 47, "Cover_Rate": 0.8392857142857143} {"Template_token": ["", "void", "MCCodeEmitter", "::", "EmitByte", "(", "unsigned", "char", "C", ",", "unsigned", "&", "CurByte", ","], "ground_truth": ["raw_ostream", "&", "OS", ")", "const", "{"], "File": "HSAILMCCodeEmitter", "Func": "EmitByte", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67241, "Length": 19, "Cover_Rate": 0.76} {"Template_token": ["", "void", "MCCodeEmitter", "::", "EmitConstant", "(", "uint64_t", "Val", ",", "unsigned", "Size", ",", "unsigned", "&", "CurByte", ",", "raw_ostream", "&", "OS", ")", "const", "{", "llvm_unreachable", "(", ""], "ground_truth": [")", ";"], "File": "HSAILMCCodeEmitter", "Func": "EmitConstant", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67242, "Length": 26, "Cover_Rate": 0.9629629629629629} {"Template_token": ["", "void", "MCCodeEmitter", "::", "EmitImmediate", "(", "const", "MCOperand", "&", "DispOp", ",", "unsigned", "Size", ",", "MCFixupKind", "FixupKind", ",", "unsigned", "&", "CurByte", ",", "raw_ostream", "&", "OS", ",", "SmallVectorImpl"], "ground_truth": ["<", "MCFixup", ">", "&", "Fixups", ",", "int", "ImmOffset", ")", "const", "{"], "File": "HSAILMCCodeEmitter", "Func": "EmitImmediate", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67243, "Length": 36, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "void", "MCCodeEmitter", "::", "EmitRegModRMByte", "(", "const", "MCOperand", "&", "ModRMReg", ",", "unsigned", "RegOpcodeFld", ",", "unsigned", "&", "CurByte", ",", "raw_ostream", "&", "OS", ")", "const", "{", "llvm_unreachable", "(", ""], "ground_truth": [")", ";"], "File": "HSAILMCCodeEmitter", "Func": "EmitRegModRMByte", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67244, "Length": 28, "Cover_Rate": 0.9655172413793104} {"Template_token": ["", "void", "MCCodeEmitter", "::", "EmitSegmentOverridePrefix", "(", "uint64_t", "TSFlags", ",", "unsigned", "&", "CurByte", ",", "int", "MemOperand", ",", "const", "MCInst", "&", "MI", ",", "raw_ostream", "&", "OS", ")", "const", "{", "llvm_unreachable", "("], "ground_truth": ["", ")", ";"], "File": "HSAILMCCodeEmitter", "Func": "EmitSegmentOverridePrefix", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67245, "Length": 31, "Cover_Rate": 0.96875} {"Template_token": ["", "void", "MCCodeEmitter", "::", "EmitSIBByte", "(", "unsigned", "SS", ",", "unsigned", "Index", ",", "unsigned", "Base", ",", "unsigned", "&", "CurByte", ",", "raw_ostream", "&", "OS", ")", "const", "{", "llvm_unreachable", "("], "ground_truth": ["", ")", ";"], "File": "HSAILMCCodeEmitter", "Func": "EmitSIBByte", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67246, "Length": 29, "Cover_Rate": 0.9666666666666667} {"Template_token": ["", "void", "MCCodeEmitter", "::", "encodeInstruction", "(", "const", "MCInst", "&", "MI", ",", "raw_ostream", "&", "OS", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "llvm_unreachable", "("], "ground_truth": ["", ")", ";"], "File": "HSAILMCCodeEmitter", "Func": "encodeInstruction", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67247, "Length": 33, "Cover_Rate": 0.9705882352941176} {"Template_token": ["", "static", "MCTargetStreamer", "*", "createAsmTargetStreamer", "(", "MCStreamer", "&", "S", ",", "formatted_raw_ostream", "&"], "ground_truth": ["OS", ",", "MCInstPrinter", "*", "InstPrint", ",", "bool", "isVerboseAsm", ")", "{"], "File": "HSAILMCTargetDesc", "Func": "createHSAILAsmTargetStreamer", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67248, "Length": 21, "Cover_Rate": 0.7241379310344828} {"Template_token": ["", "MCCodeGenInfo", "*", "X", "=", "new", "MCCodeGenInfo", "(", ")", ";", "X", "->", "initMCCodeGenInfo", "(", "RM"], "ground_truth": [",", "CM", ",", "OL", ")", ";"], "File": "HSAILMCTargetDesc", "Func": "createHSAILMCCodeGenInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67249, "Length": 20, "Cover_Rate": 0.4} {"Template_token": ["", "InitMCInstrInfo", "(", "X", ")", ";", "return"], "ground_truth": ["X", ";"], "File": "HSAILMCTargetDesc", "Func": "createHSAILMCInstrInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67250, "Length": 8, "Cover_Rate": 0.32} {"Template_token": ["", "MCRegisterInfo", "*", "X", "=", "new", "MCRegisterInfo", "(", ")", ";", "InitMCRegisterInfo", "(", "X", ",", ""], "ground_truth": [")", ";"], "File": "HSAILMCTargetDesc", "Func": "createHSAILMCRegisterInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67251, "Length": 16, "Cover_Rate": 0.5161290322580645} {"Template_token": ["", "static", "MCRegisterInfo", "*", "createMCRegisterInfo", "(", "const", "Triple", "&", "TT", ")", "{", "MCRegisterInfo", "*", "X", "=", "new", "MCRegisterInfo", "(", ")"], "ground_truth": [";"], "File": "HSAILMCTargetDesc", "Func": "createHSAILMCRegisterInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67252, "Length": 20, "Cover_Rate": 0.6451612903225806} {"Template_token": ["", "return", "createMCSubtargetInfoImpl", "(", "TT", ",", "CPU", ",", "FS"], "ground_truth": [")", ";"], "File": "HSAILMCTargetDesc", "Func": "createHSAILMCSubtargetInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67253, "Length": 10, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "return", "new", "TargetStreamer", "("], "ground_truth": ["S", ")", ";"], "File": "HSAILMCTargetDesc", "Func": "createHSAILObjectTargetStreamer", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67254, "Length": 7, "Cover_Rate": 0.3181818181818182} {"Template_token": ["", "void", "LLVMInitializeTargetMC", "(", ")", "{", "for", "(", "Target", "*", "T", ":", "{", "&", "The_32Target", ",", "&", "The_64Target", "}", ")", "{", "RegisterMCAsmInfo", "<", "MCAsmInfo", ">", "X", "(", "*", "T", ")", ";", "TargetRegistry", "::", "RegisterMCCodeGenInfo", "(", "*", "T", ",", "createMCCodeGenInfo", ")", ";", "TargetRegistry", "::", "RegisterMCInstrInfo", "(", "*", "T", ",", "createMCInstrInfo", ")", ";", "TargetRegistry", "::", "RegisterMCRegInfo", "(", "*", "T", ",", "createMCRegisterInfo", ")", ";", "TargetRegistry", "::", "RegisterMCSubtargetInfo", "(", "*", "T", ",", "createMCSubtargetInfo", ")", ";", "TargetRegistry", "::", "RegisterMCInstPrinter", "(", "*"], "ground_truth": ["T", ",", "createMCInstPrinter", ")", ";"], "File": "HSAILMCTargetDesc", "Func": "LLVMInitializeHSAILTargetMC", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67255, "Length": 80, "Cover_Rate": 0.7142857142857143} {"Template_token": ["", "void", "add_printf_offset", "(", "uint32_t", "offset"], "ground_truth": [")", "{"], "File": "HSAILModuleInfo", "Func": "add_printf_offset", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67256, "Length": 7, "Cover_Rate": 0.5833333333333334} {"Template_token": ["", "const", "ConstPtr", "*", "curConst", "=", "getConstPtr", "(", "krnl", ",", "Arg", ")", ";", "if", "(", "!", "curConst", ")", "{", "return", "", ";", "}", "return", "curConst", "->"], "ground_truth": ["cbNum", ";"], "File": "HSAILModuleInfo", "Func": "getConstPtrCB", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67257, "Length": 27, "Cover_Rate": 0.6428571428571429} {"Template_token": ["", "StringMap", "<", "Kernel", "*", ">", "::", "iterator", "iter"], "ground_truth": ["=", "mKernels", ".", "find", "(", "name", ")", ";"], "File": "HSAILModuleInfo", "Func": "getKernel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67258, "Length": 16, "Cover_Rate": 0.32} {"Template_token": ["", "if", "(", "mFuncNames", ".", "find", "(", "func", ")", "==", "mFuncNames", ".", "end", "(", ")", ")", "{", "id", "=", "mFuncNames", ".", "size", "(", ")", "+", "RESERVED_FUNCS", "+", "mFuncPtrNames", ".", "size", "(", ")", ";", "mFuncNames", "[", "func", "]", "=", "id", ";", "}", "else", "{", "id", "=", "mFuncNames", "[", "func"], "ground_truth": ["]", ";"], "File": "HSAILModuleInfo", "Func": "getOrCreateFunctionID", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67259, "Length": 49, "Cover_Rate": 0.6363636363636364} {"Template_token": ["", "return", "mPrintfOffset"], "ground_truth": [";"], "File": "HSAILModuleInfo", "Func": "get_printf_offset", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67260, "Length": 3, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "ModuleInfo", "::", "ModuleInfo", "(", "const", "MachineModuleInfo", "&", "MMI", ")", "{", "mMMI", "=", "&", "MMI", ";", "mOffset", "=", ""], "ground_truth": [";"], "File": "HSAILModuleInfo", "Func": "HSAILModuleInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67261, "Length": 19, "Cover_Rate": 0.475} {"Template_token": ["", "bool", "ModuleInfo", "::", "isReadOnlyImage", "(", "StringRef", "name", ",", "uint32_t", "iID", ")", "const", "{", "const", "StringMap", "<", "Kernel", "*", ">", "::", "const_iterator", "kiter", "=", "mKernels", ".", "find", "(", "name", ")", ";", "if", "(", "kiter", "==", "mKernels", ".", "end", "(", ")", ")", "{", "return", "false", ";", "}", "return", "kiter", "->", "second", "->", "readOnly", ".", "count", "("], "ground_truth": ["iID", ")", ";"], "File": "HSAILModuleInfo", "Func": "isReadOnlyImage", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67262, "Length": 57, "Cover_Rate": 0.9827586206896551} {"Template_token": ["", "mSTM", "=", "mTM", "->", "getSubtargetImpl", "(", ")", ";", "if", "("], "ground_truth": ["mProcessed", ")", "{"], "File": "HSAILModuleInfo", "Func": "processModule", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67263, "Length": 13, "Cover_Rate": 0.35135135135135137} {"Template_token": ["", "void", "ModuleInfo", "::", "processModule", "(", "const", "Module", "*", "M", ",", "const", "TargetMachine", "*", "mTM", ")", "{", "mSTM", "=", "mTM", "->"], "ground_truth": ["getSubtargetImpl", "(", ")", ";"], "File": "HSAILModuleInfo", "Func": "processModule", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67264, "Length": 24, "Cover_Rate": 0.6486486486486487} {"Template_token": ["", "bool", "ModuleInfo", "::", "usesHWConstant", "(", "const", "Kernel", "*", "krnl", ",", "StringRef", "arg", ")", "{", "const", "ConstPtr", "*", "curConst", "=", "getConstPtr", "("], "ground_truth": ["krnl", ",", "arg", ")", ";"], "File": "HSAILModuleInfo", "Func": "usesHWConstant", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67265, "Length": 26, "Cover_Rate": 0.6190476190476191} {"Template_token": ["", "kb", "!=", "ke", ";", "++", "kb", ")", "{", "Kernel", "*", "ptr", "=", "kb", "->", "getValue", "(", ")", ";", "delete", "ptr"], "ground_truth": [";"], "File": "HSAILModuleInfo", "Func": "~HSAILModuleInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67266, "Length": 21, "Cover_Rate": 0.38181818181818183} {"Template_token": ["", "kb", "!=", "ke", ";", "++", "kb", ")", "{", "Kernel", "*", "ptr", "=", "kb", "->", "getValue", "(", ")", ";", "delete"], "ground_truth": ["ptr", ";"], "File": "HSAILModuleInfo", "Func": "~HSAILModuleInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67267, "Length": 21, "Cover_Rate": 0.38181818181818183} {"Template_token": ["", "const", "StructType", "*", "ST", "=", "dyn_cast", "<", "StructType", ">", "(", "T", ")", ";", "if", "(", "!", "ST", ")", "{", "const", "PointerType", "*", "PT", "=", "dyn_cast", "<", "PointerType", ">", "(", "T", ")", ";", "if", "(", "!", "PT", ")", "return", "NotOpaque", ";", "const", "Type", "*", "CT", "=", "PT", "->", "getElementType", "(", ")", ";", "ST", "=", "dyn_cast", "<", "StructType", ">", "(", "CT", ")", ";", "}", "if", "(", "!", "ST", "||", "!", "ST", "->", "isOpaque", "(", ")", ")", "return", "NotOpaque", ";", "return", "StringSwitch", "<", "OpaqueType", ">", "(", "ST", "->", "getName", "(", ")", ")", ".", "Cases", "(", "", ",", "", ",", "I1D", ")", ".", "Cases", "(", "", ",", "", ",", "I1DA", ")", ".", "Cases", "(", "", ",", "", ",", "I1DB", ")", ".", "Cases", "(", "", ",", "", ",", "I2D", ")", ".", "Cases", "(", "", ",", "", ",", "I2DA", ")", ".", "Cases", "(", "", ",", "", ",", "I3D", ")", ".", "Cases", "(", "", ",", "", ",", "I2DDepth", ")", ".", "Cases", "(", "", ",", "", ",", "I2DADepth", ")", ".", "Case", "(", "", ",", "Sampler", ")", ".", "Cases", "(", "", ",", "", ",", "Event", ")", ".", "Case", "(", "", ","], "ground_truth": ["C32", ")", ".", "Case", "(", "", ",", "C64", ")", ".", "Case", "(", "", ",", "Sema", ")", ".", "Case", "(", "", ",", "ReserveId", ")", ".", "Case", "(", "", ",", "CLKEventT", ")", ".", "Case", "(", "", ",", "QueueT", ")", ".", "Default", "(", "UnknownOpaque", ")", ";"], "File": "HSAILOpaqueTypes", "Func": "GetOpaqueType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67268, "Length": 225, "Cover_Rate": 0.9183673469387755} {"Template_token": ["", "inline", "bool", "IsImage", "(", "const", "Type"], "ground_truth": ["*", "T", ")", "{"], "File": "HSAILOpaqueTypes", "Func": "IsImage", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67269, "Length": 10, "Cover_Rate": 0.5} {"Template_token": ["", "inline", "bool", "IsImage", "(", "const"], "ground_truth": ["Type", "*", "T", ")", "{"], "File": "HSAILOpaqueTypes", "Func": "IsImage", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67270, "Length": 10, "Cover_Rate": 0.5} {"Template_token": ["", "return", "GetOpaqueType", "(", "T", ")", "=="], "ground_truth": ["Sampler", ";"], "File": "HSAILOpaqueTypes", "Func": "IsSampler", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67271, "Length": 8, "Cover_Rate": 0.42105263157894735} {"Template_token": ["", "unsigned", "ParamManager", "::", "addArgumentParam", "(", "unsigned", "AS", ",", "const", "Argument", "&", "Arg", ",", "const", "StringRef", "ParamName", ")", "{", "unsigned", "Param", "=", "addParam", "(", "(", "AS", "==", "", ")", "?", "_PARAM_TYPE_ARGUMENT", ":", "_PARAM_TYPE_KERNARG", ",", "Arg", ".", "getType", "(", ")", ",", "ParamName", ")", ";", "AllParams", ".", "find", "(", "Param", ")", "->", "second", ".", "Arg"], "ground_truth": ["=", "&", "Arg", ";"], "File": "HSAILParamManager", "Func": "addArgumentParam", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67272, "Length": 56, "Cover_Rate": 0.9032258064516129} {"Template_token": ["", "unsigned", "ParamManager", "::", "addCallArgParam", "(", "Type", "*"], "ground_truth": ["Ty", ",", "const", "StringRef", "ParamName", ")", "{"], "File": "HSAILParamManager", "Func": "addCallArgParam", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67273, "Length": 14, "Cover_Rate": 0.56} {"Template_token": ["", "unsigned", "ParamManager", "::", "addCallArgParam", "(", "Type", "*", "Ty", ",", "const", "StringRef", "ParamName", ")", "{", "return", "addParam", "(", "_PARAM_TYPE_CALL_PARAM", ","], "ground_truth": ["Ty", ",", "ParamName", ")", ";"], "File": "HSAILParamManager", "Func": "addCallArgParam", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67274, "Length": 24, "Cover_Rate": 0.96} {"Template_token": ["", "return", "addParam", "(", "_PARAM_TYPE_CALL_RET", ",", "Ty", ","], "ground_truth": ["ParamName", ")", ";"], "File": "HSAILParamManager", "Func": "addCallRetParam", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67275, "Length": 10, "Cover_Rate": 0.4} {"Template_token": ["", "case", "_PARAM_TYPE_CALL_PARAM", ":", "ParamList", "=", "&", "CallArgParams", ";", "DefName", "=", "", ";", "break", ";", "case", "_PARAM_TYPE_CALL_RET", ":", "ParamList", "=", "&", "CallRetParams", ";", "DefName", "=", "", ";", "break", ";", "}", "if", "(", "ParamName", ".", "empty", "(", ")", ")", "{", "Name", "=", "DefName", ";", "Name", "+=", "utostr", "(", "ParamList", "->", "size", "(", ")", ")", ";", "}", "else", "{", "Name", "=", "ParamName", ";", "}", "unsigned", "prev_offset", "=", "", ";", "unsigned", "prev_size", "=", "", ";", "if", "(", "ParamList", "->", "size", "(", ")", ">", "", ")", "{", "unsigned", "prev_param", "=", "(", "*", "ParamList", ")", "[", "ParamList", "->", "size", "(", ")", "-", "", "]", ";", "prev_offset", "=", "getParamOffset", "(", "prev_param", ")", ";", "prev_size", "=", "getParamSize", "(", "prev_param", ")", ";", "}", "if", "(", "prev_offset", "==", "UINT_MAX", "||", "GetOpaqueType", "(", "Ty", ")", ")", "{", "Param", ".", "Offset", "=", "UINT_MAX", ";", "}", "else", "{", "unsigned", "alignment", "=", "DL", "->", "getABITypeAlignment", "(", "Ty", ")", ";", "if", "(", "ParamType", "==", "_PARAM_TYPE_KERNARG", "&&", "Ty", "->", "isVectorTy", "(", ")", ")", "alignment", "=", "DL", "->", "getABITypeAlignment", "(", "Ty", "->", "getVectorElementType", "(", ")", ")", ";", "assert", "(", "alignment", "!=", "", ")", ";", "Param", ".", "Offset", "=", "(", "prev_offset", "+", "prev_size", "+", "alignment", "-", "", ")", "&", "~", "(", "alignment", "-", "", ")", ";", "}", "unsigned", "Index", "=", "AllParams", ".", "size", "(", ")", ";", "AllParams", "[", "Index", "]"], "ground_truth": ["=", "Param", ";"], "File": "HSAILParamManager", "Func": "addParam", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67276, "Length": 215, "Cover_Rate": 0.649546827794562} {"Template_token": ["", "void", "ParamManager", "::", "addParamName", "(", "std", "::", "string", "Name", ",", "unsigned", "Index", ")", "{", "char", "*", "name", "=", "(", "char", "*", ")", "malloc", "(", "Name", "."], "ground_truth": ["length", "(", ")", "+", "", ")", ";"], "File": "HSAILParamManager", "Func": "addParamName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67277, "Length": 33, "Cover_Rate": 0.6346153846153846} {"Template_token": ["", "void", "ParamManager", "::", "addParamType", "(", "Type", "*", "pTy", ",", "unsigned"], "ground_truth": ["Index", ")", "{"], "File": "HSAILParamManager", "Func": "addParamType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67278, "Length": 13, "Cover_Rate": 0.6190476190476191} {"Template_token": ["", "unsigned", "ParamManager", "::", "addReturnParam", "(", "Type", "*"], "ground_truth": ["Ty", ",", "const", "StringRef", "ParamName", ")", "{"], "File": "HSAILParamManager", "Func": "addReturnParam", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67279, "Length": 14, "Cover_Rate": 0.56} {"Template_token": ["", "param_iterator", "arg_begin", "(", ")", "const", "{", "return", "ArgumentParams", ".", "begin"], "ground_truth": ["(", ")", ";"], "File": "HSAILParamManager", "Func": "arg_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67280, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "param_iterator", "arg_begin", "("], "ground_truth": [")", "const", "{"], "File": "HSAILParamManager", "Func": "arg_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67281, "Length": 6, "Cover_Rate": 0.42857142857142855} {"Template_token": ["", "return", "ArgumentParams", ".", "end"], "ground_truth": ["(", ")", ";"], "File": "HSAILParamManager", "Func": "arg_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67282, "Length": 7, "Cover_Rate": 0.5} {"Template_token": ["", "param_iterator", "arg_end", "(", ")", "const", "{", "return", "ArgumentParams", ".", "end", "("], "ground_truth": [")", ";"], "File": "HSAILParamManager", "Func": "arg_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67283, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "param_iterator", "call_arg_begin", "("], "ground_truth": [")", "const", "{"], "File": "HSAILParamManager", "Func": "call_arg_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67284, "Length": 6, "Cover_Rate": 0.42857142857142855} {"Template_token": ["", "return", "CallArgParams", ".", "begin", "("], "ground_truth": [")", ";"], "File": "HSAILParamManager", "Func": "call_arg_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67285, "Length": 7, "Cover_Rate": 0.5} {"Template_token": ["", "return", "CallRetParams", "."], "ground_truth": ["begin", "(", ")", ";"], "File": "HSAILParamManager", "Func": "call_ret_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67286, "Length": 7, "Cover_Rate": 0.5} {"Template_token": ["", "param_iterator", "call_ret_end", "(", ")", "const", "{", "return", "CallRetParams", ".", "end", "("], "ground_truth": [")", ";"], "File": "HSAILParamManager", "Func": "call_ret_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67287, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "param_iterator", "call_ret_end", "(", ")"], "ground_truth": ["const", "{"], "File": "HSAILParamManager", "Func": "call_ret_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67288, "Length": 6, "Cover_Rate": 0.42857142857142855} {"Template_token": ["", "const", "Argument", "*", "getParamArg", "(", "unsigned", "Param", ")", "const", "{", "assert", "(", "AllParams", ".", "count", "(", "Param", ")", "==", "", "&&", "", ")", ";", "return", "AllParams", ".", "find", "(", "Param", ")", "->"], "ground_truth": ["second", ".", "Arg", ";"], "File": "HSAILParamManager", "Func": "getParamArg", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67289, "Length": 36, "Cover_Rate": 0.972972972972973} {"Template_token": ["", "unsigned", "getParamByOffset", "(", "int64_t", "&", "Offset", ")", "const", "{", "if", "(", "Offset", ">=", "UINT_MAX", "||", "Offset", "<", "", ")", "return", "UINT_MAX", ";", "unsigned", "o", "=", "(", "unsigned", ")", "Offset", ";", "unsigned", "r", "=", "getParamByOffset", "(", "o", ")", ";", "Offset", "=", "o", ";", "return", "r"], "ground_truth": [";"], "File": "HSAILParamManager", "Func": "getParamByOffset", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67290, "Length": 45, "Cover_Rate": 0.9782608695652174} {"Template_token": ["", "const", "char", "*", "getParamName", "(", "unsigned", "Param", ")", "const", "{", "assert", "(", "AllParams", ".", "count", "(", "Param", ")", "=="], "ground_truth": ["", "&&", "", ")", ";"], "File": "HSAILParamManager", "Func": "getParamName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67291, "Length": 24, "Cover_Rate": 0.6857142857142857} {"Template_token": ["", "return", "AllParams", ".", "find", "(", "Param", ")", "->", "second", "."], "ground_truth": ["Offset", ";"], "File": "HSAILParamManager", "Func": "getParamOffset", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67292, "Length": 12, "Cover_Rate": 0.34285714285714286} {"Template_token": ["", "assert", "(", "AllParams", ".", "count", "(", "Param", ")", "==", "", "&&"], "ground_truth": ["", ")", ";"], "File": "HSAILParamManager", "Func": "getParamOffset", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67293, "Length": 14, "Cover_Rate": 0.4} {"Template_token": ["", "unsigned", "getParamSize", "(", "unsigned", "Param", ")", "const", "{", "return", "DL", "->", "getTypeStoreSize", "(", "getParamType", "("], "ground_truth": ["Param", ")", ")", ";"], "File": "HSAILParamManager", "Func": "getParamSize", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67294, "Length": 19, "Cover_Rate": 0.95} {"Template_token": ["", "unsigned", "getParamSize", "(", "unsigned", "Param"], "ground_truth": [")", "const", "{"], "File": "HSAILParamManager", "Func": "getParamSize", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67295, "Length": 8, "Cover_Rate": 0.4} {"Template_token": ["", "Type", "*", "getParamType", "(", "unsigned", "Param", ")", "const", "{", "assert", "(", "AllParams", ".", "count", "(", "Param", ")", "==", ""], "ground_truth": ["&&", "", ")", ";"], "File": "HSAILParamManager", "Func": "getParamType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67296, "Length": 23, "Cover_Rate": 0.6764705882352942} {"Template_token": ["", "ParamManager", "(", "const", "DataLayout", "*", "_DL", ")"], "ground_truth": [":", "DL", "(", "_DL", ")", "{", "}"], "File": "HSAILParamManager", "Func": "HSAILParamManager", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67297, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "ParamManager", "(", "const", "DataLayout", "*", "_DL", ")", ":", "DL"], "ground_truth": ["(", "_DL", ")", "{", "}"], "File": "HSAILParamManager", "Func": "HSAILParamManager", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67298, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "return", "ReturnParams", ".", "begin"], "ground_truth": ["(", ")", ";"], "File": "HSAILParamManager", "Func": "ret_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67299, "Length": 7, "Cover_Rate": 0.5} {"Template_token": ["", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "MachineFunction", "*", "MF", "=", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "MachineFrameInfo", "*", "MFI", "=", "MF", "->", "getFrameInfo", "(", ")", ";", "MCContext", "&", "Ctx", "=", "MF", "->", "getContext", "(", ")", ";", "assert", "(", "", "(", "Opcode", ",", "", "::", "address", ")", "==", "static_cast", "<", "int", ">", "(", "FIOperandNum", ")", "&&", "", ")", ";", "MachineOperand", "&", "Base", "=", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ";", "int", "FrameIndex", "=", "Base", ".", "getIndex", "(", ")", ";", "if", "(", "Opcode", "==", "", ")", "lowerSpillB1", "(", "II", ",", "FrameIndex", ")", ";", "else", "if", "(", "Opcode", "==", "", ")", "lowerRestoreB1", "(", "II", ",", "FrameIndex", ")", ";", "StringRef", "SymName", "=", "MFI", "->", "isSpillSlotObjectIndex", "(", "FrameIndex", ")", "?", "", ":", "", ";", "MCSymbol", "*", "Sym", "=", "Ctx", ".", "getOrCreateSymbol", "(", "SymName"], "ground_truth": [")", ";"], "File": "HSAILRegisterInfo", "Func": "eliminateFrameIndex", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67300, "Length": 138, "Cover_Rate": 0.71875} {"Template_token": ["", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "MachineFunction", "*", "MF", "=", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "MachineFrameInfo", "*", "MFI", "=", "MF", "->", "getFrameInfo", "(", ")", ";", "MCContext", "&", "Ctx", "=", "MF", "->", "getContext", "(", ")", ";", "assert", "(", "", "(", "Opcode", ",", "", "::", "address", ")", "==", "static_cast", "<", "int", ">", "(", "FIOperandNum", ")", "&&", "", ")", ";", "MachineOperand", "&", "Base", "=", "MI", ".", "getOperand", "(", "FIOperandNum"], "ground_truth": [")", ";"], "File": "HSAILRegisterInfo", "Func": "eliminateFrameIndex", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67301, "Length": 77, "Cover_Rate": 0.4010416666666667} {"Template_token": ["", "static", "const", "uint16_t", "CalleeSavedRegs", "[", "]", "=", "{", "", "}", ";", "return", "CalleeSavedRegs"], "ground_truth": [";"], "File": "HSAILRegisterInfo", "Func": "getCalleeSavedRegs", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67302, "Length": 14, "Cover_Rate": 0.4827586206896552} {"Template_token": ["", "unsigned", "RegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")"], "ground_truth": ["const", "{"], "File": "HSAILRegisterInfo", "Func": "getFrameRegister", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67303, "Length": 12, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "unsigned", "RegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction"], "ground_truth": ["&", "MF", ")", "const", "{"], "File": "HSAILRegisterInfo", "Func": "getFrameRegister", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67304, "Length": 12, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "for", "(", "const", "TargetRegisterClass", "*", "BaseClass", ":", "BaseClasses", ")", "{", "if", "(", "BaseClass", "->", "contains", "(", "Reg", ")", ")", "return", "BaseClass", ";", "}", "return", "nullptr"], "ground_truth": [";"], "File": "HSAILRegisterInfo", "Func": "getPhysRegClass", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67305, "Length": 26, "Cover_Rate": 0.3466666666666667} {"Template_token": ["", "for", "(", "TargetRegisterClass", "::", "iterator", "I", "=", "RC", "->", "begin", "(", ")", ",", "E", "=", "RC"], "ground_truth": ["->", "end", "(", ")", ";", "I", "!=", "E", ";"], "File": "HSAILRegisterInfo", "Func": "getRegsAvailable", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67306, "Length": 25, "Cover_Rate": 0.4166666666666667} {"Template_token": ["", "MachineFunctionInfo", "*", "MFI", "=", "const_cast", "<", "MachineFunctionInfo", "*", ">", "(", "MF", ".", "getInfo", "<", "MachineFunctionInfo", ">", "(", ")", ")", ";", "unsigned", "NumSlotsTotal", "=", "", ".", "getNumRegs", "(", ")", ";", "unsigned", "RegSlots", "=", "NumSlotsTotal", "/", "", ";", "if", "(", "MFI", "->", "getRegisterPartitioning", "(", ")", "==", "", ")", "{", "const", "MachineRegisterInfo", "&", "RI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "unsigned", "rc32", "=", "", ",", "rc64", "=", "", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "RI", ".", "getNumVirtRegs", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "switch", "(", "RI", ".", "getRegClass", "(", "index2VirtReg", "(", "i", ")", ")", "->", "getSize", "(", ")", ")", "{", "case", "", ":", "rc32", "++", ";", "break", ";", "case", "", ":", "rc64", "++", ";", "break", ";", "}", "}", "if", "(", "RegSlots", ">", "", ")", "{", "RegSlots", "=", "RegSlots", ";", "}", "else", "{", "if", "(", "rc64", "<", "(", "NumSlotsTotal", "-", "RegSlots", ")", "&&", "rc32", ">", "(", "RegSlots", "*", "", ")", ")", "{", "RegSlots", "=", "NumSlotsTotal", "-", "rc64", ";", "}", "else", "if", "(", "rc32", "<", "(", "RegSlots", "*", "", ")", "&&", "rc64", ">", "(", "NumSlotsTotal", "-", "RegSlots", ")", ")", "{", "RegSlots", "=", "(", "rc32", "+", "", ")", "/", "", ";", "}", "}", "if", "(", "RegSlots", "<", "", ")", "RegSlots", "=", "", ";", "else", "if", "(", "RegSlots", ">", "(", "NumSlotsTotal", "-", "", ")", ")", "RegSlots", "="], "ground_truth": ["NumSlotsTotal", "-", "", ";"], "File": "HSAILRegisterInfo", "Func": "getReservedRegs", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67307, "Length": 224, "Cover_Rate": 0.5530864197530864} {"Template_token": ["", "unsigned", "DestReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "const", "InstrInfo", "*", "TII", "=", "ST", ".", "getInstrInfo", "(", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "MBB", "->", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "unsigned", "TempGPR32", "=", "MRI", ".", "createVirtualRegister", "(", "&", "", ")", ";", "BuildMI", "(", "*", "MBB", ",", "++", "II", ",", "DL", ",", "TII", "->", "get", "(", "", ")", ",", "DestReg", ")", ".", "addImm", "(", "", ")", ".", "addImm", "(", "", ")", ".", "addImm", "(", "BRIG_TYPE_B1", ")", ".", "addImm", "(", "BRIG_TYPE_U32", ")", ".", "addReg", "(", "TempGPR32", ",", "RegState", "::", "Kill", ")", ";", "MI", ".", "setDesc", "(", "TII", "->", "get", "(", "", ")", ")", ";", "MI", ".", "getOperand", "(", "", ")", ".", "setReg", "(", "TempGPR32", ")", ";", "MI", ".", "getOperand", "(", "", ")", ".", "setIsDef", "(", ")", ";", "MachineOperand", "*", "TypeOp", "=", "TII", "->", "getNamedOperand", "("], "ground_truth": ["MI", ",", "", "::", "TypeLength", ")", ";"], "File": "HSAILRegisterInfo", "Func": "lowerRestoreB1", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67308, "Length": 149, "Cover_Rate": 0.7233009708737864} {"Template_token": ["", "unsigned", "TempGPR32", "=", "MRI", ".", "createVirtualRegister", "(", "&", "", ")", ";", "DebugLoc", "DL", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "BuildMI", "(", "*", "MBB", ",", "II", ",", "DL", ",", "TII", "->", "get", "(", "", ")", ",", "TempGPR32", ")", ".", "addImm", "(", "", ")", ".", "addImm", "(", "", ")", ".", "addImm", "(", "BRIG_TYPE_U32", ")", ".", "addImm", "(", "BRIG_TYPE_B1", ")", ".", "addOperand", "(", "MI", ".", "getOperand", "(", "", ")", ")", ";", "MI", ".", "setDesc", "(", "TII", "->", "get", "(", "", ")", ")", ";", "MI", ".", "getOperand", "(", "", ")", ".", "setReg", "(", "TempGPR32", ")", ";", "MI", ".", "getOperand", "(", "", ")", ".", "setIsKill", "(", ")", ";", "MachineOperand", "*", "TypeOp", "=", "TII", "->", "getNamedOperand", "(", "MI", ",", "", "::", "TypeLength", ")", ";", "TypeOp", "->", "setImm", "(", "BRIG_TYPE_U32"], "ground_truth": [")", ";"], "File": "HSAILRegisterInfo", "Func": "lowerSpillB1", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67309, "Length": 126, "Cover_Rate": 0.6363636363636364} {"Template_token": ["", "const", "MachineFunctionInfo", "*", "Info", "=", "MF", ".", "getInfo", "<", "MachineFunctionInfo", ">", "(", ")", ";", "return", "Info", "->", "hasSpilledCRs", "("], "ground_truth": [")", ";"], "File": "HSAILRegisterInfo", "Func": "requiresFrameIndexScavenging", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67310, "Length": 21, "Cover_Rate": 0.6176470588235294} {"Template_token": ["", "bool", "RegisterInfo", "::", "requiresRegisterScavenging", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return"], "ground_truth": ["true", ";"], "File": "HSAILRegisterInfo", "Func": "requiresRegisterScavenging", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67311, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "bool", "RegisterInfo", "::", "saveScavengerRegister", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "MachineBasicBlock", "::", "iterator", "&", "UseMI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "unsigned", "Reg", ")", "const", "{", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "MachineFunctionInfo", "*", "Info", "=", "MF", "->", "getInfo", "<", "MachineFunctionInfo", ">", "(", ")", ";", "MCContext", "&", "Ctx", "=", "MF", "->", "getContext", "(", ")", ";", "const", "InstrInfo", "*", "TII", "=", "ST", ".", "getInstrInfo", "(", ")", ";", "assert", "(", "RC", "==", "&", "", "&&"], "ground_truth": ["", ")", ";"], "File": "HSAILRegisterInfo", "Func": "saveScavengerRegister", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67312, "Length": 84, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "bool", "RegisterInfo", "::", "trackLivenessAfterRegAlloc", "(", "const", "MachineFunction", "&", "MF"], "ground_truth": [")", "const", "{"], "File": "HSAILRegisterInfo", "Func": "trackLivenessAfterRegAlloc", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67313, "Length": 12, "Cover_Rate": 0.75} {"Template_token": ["", "bool", "RegisterInfo", "::", "trackLivenessAfterRegAlloc", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return"], "ground_truth": ["true", ";"], "File": "HSAILRegisterInfo", "Func": "trackLivenessAfterRegAlloc", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67314, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "size_t", "dataSizeInBytes", "(", ")", "{", "return", "OS", ".", "str", "(", ")"], "ground_truth": [".", "size", "(", ")", ";"], "File": "HSAILStoreInitializer", "Func": "dataSizeInBytes", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67315, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "return", "OS", ".", "str", "(", ")", "."], "ground_truth": ["size", "(", ")", ";"], "File": "HSAILStoreInitializer", "Func": "dataSizeInBytes", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67316, "Length": 11, "Cover_Rate": 0.6470588235294118} {"Template_token": ["", "size_t", "elementCount", "("], "ground_truth": [")", "{"], "File": "HSAILStoreInitializer", "Func": "elementCount", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67317, "Length": 5, "Cover_Rate": 0.38461538461538464} {"Template_token": ["", "size_t", "elementCount", "(", ")", "{", "return", "dataSizeInBytes", "(", ")"], "ground_truth": ["/", "InitEltSize", ";"], "File": "HSAILStoreInitializer", "Func": "elementCount", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67318, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "switch", "(", "InitEltSize", ")", "{", "case", "", ":", "{", "uint32_t", "Tmp", ";", "std", "::", "memcpy", "(", "&", "Tmp", ",", "Ptr", ",", "", ")", ";", "if", "(", "IsFPElt", ")", "printFloat", "(", "Tmp", ",", "O", ")", ";", "else", "O", "<<", "Tmp", ";", "break", ";", "}", "case", "", ":", "{", "uint64_t", "Tmp", ";", "std", "::", "memcpy", "(", "&", "Tmp", ",", "Ptr", ",", "", ")", ";", "if", "(", "IsFPElt", ")", "printDouble", "(", "Tmp", ",", "O", ")", ";", "else", "O", "<<", "Tmp", ";", "break", ";", "}", "case", "", ":", "{", "uint16_t", "Tmp", ";", "std", "::", "memcpy", "(", "&", "Tmp", ",", "Ptr"], "ground_truth": [",", "", ")", ";"], "File": "HSAILStoreInitializer", "Func": "print", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67319, "Length": 100, "Cover_Rate": 0.37735849056603776} {"Template_token": ["", "O", "<<", "format", "(", "", "PRIx64", ",", "Val"], "ground_truth": [")", ";"], "File": "HSAILStoreInitializer", "Func": "printDouble", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67320, "Length": 10, "Cover_Rate": 0.4166666666666667} {"Template_token": ["", "void", "StoreInitializer", "::", "printFloat", "(", "uint32_t", "Val", ",", "raw_ostream", "&", "O", ")", "{", "O", "<<", "format", "(", "", "PRIx32", ",", "Val"], "ground_truth": [")", ";"], "File": "HSAILStoreInitializer", "Func": "printFloat", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67321, "Length": 23, "Cover_Rate": 0.9583333333333334} {"Template_token": ["", "void", "StoreInitializer", "::", "printFloat", "(", "uint32_t", "Val", ",", "raw_ostream"], "ground_truth": ["&", "O", ")", "{"], "File": "HSAILStoreInitializer", "Func": "printFloat", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67322, "Length": 13, "Cover_Rate": 0.5416666666666666} {"Template_token": ["", "StringRef", "str", "(", ")", "{", "return", "OS", ".", "str", "(", ")"], "ground_truth": [";"], "File": "HSAILStoreInitializer", "Func": "str", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67323, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "void", "ImageHandles", "::", "clearImageArgs", "("], "ground_truth": [")", "{"], "File": "HSAILSubtarget", "Func": "clearImageArgs", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67324, "Length": 7, "Cover_Rate": 0.5} {"Template_token": ["", "ImageArgs", ".", "clear"], "ground_truth": ["(", ")", ";"], "File": "HSAILSubtarget", "Func": "clearImageArgs", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67325, "Length": 6, "Cover_Rate": 0.42857142857142855} {"Template_token": ["", "StringRef", "getDeviceName", "(", ")", "const", "{", "return", "DevName"], "ground_truth": [";"], "File": "HSAILSubtarget", "Func": "getDeviceName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67326, "Length": 9, "Cover_Rate": 0.9} {"Template_token": ["", "const", "FrameLowering", "*", "getFrameLowering", "(", ")", "const", "override", "{", "return", "&"], "ground_truth": ["FrameLowering", ";"], "File": "HSAILSubtarget", "Func": "getFrameLowering", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67327, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "assert", "(", "index", "<", "ImageArgs", ".", "size", "(", ")", "&&", "", ")", ";", "return", "ImageArgs", "["], "ground_truth": ["index", "]", ";"], "File": "HSAILSubtarget", "Func": "getImageSymbol", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67328, "Length": 19, "Cover_Rate": 0.6129032258064516} {"Template_token": ["", "assert", "(", "index", "<", "ImageArgs", ".", "size", "(", ")", "&&", "", ")", ";", "return", "ImageArgs", "[", "index"], "ground_truth": ["]", ";"], "File": "HSAILSubtarget", "Func": "getImageSymbol", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67329, "Length": 19, "Cover_Rate": 0.6129032258064516} {"Template_token": ["", "const", "InstrInfo", "*", "getInstrInfo", "(", ")", "const", "override", "{", "return", "InstrInfo", ".", "get"], "ground_truth": ["(", ")", ";"], "File": "HSAILSubtarget", "Func": "getInstrInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67330, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "return", "&", "getInstrInfo", "(", ")"], "ground_truth": ["->", "getRegisterInfo", "(", ")", ";"], "File": "HSAILSubtarget", "Func": "getRegisterInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67331, "Length": 10, "Cover_Rate": 0.5} {"Template_token": ["", "assert", "(", "index", "<", "Samplers", ".", "size", "("], "ground_truth": [")", "&&", "", ")", ";"], "File": "HSAILSubtarget", "Func": "getSamplerHandle", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67332, "Length": 13, "Cover_Rate": 0.43333333333333335} {"Template_token": ["", "std", "::", "string", "ImageHandles", "::", "getSamplerSymbol"], "ground_truth": ["(", "unsigned", "index", ")", "{"], "File": "HSAILSubtarget", "Func": "getSamplerSymbol", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67333, "Length": 11, "Cover_Rate": 0.3142857142857143} {"Template_token": ["", "assert", "(", "index", "<", "Samplers", ".", "size", "(", ")", "&&", "", ")", ";", "return", "Samplers", "[", "index", "]", "->"], "ground_truth": ["getVal", "(", ")", ";"], "File": "HSAILSubtarget", "Func": "getSamplerValue", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67334, "Length": 23, "Cover_Rate": 0.696969696969697} {"Template_token": ["", "assert", "(", "index", "<", "Samplers", ".", "size", "(", ")", "&&", "", ")", ";", "return", "Samplers", "[", "index", "]"], "ground_truth": ["->", "getVal", "(", ")", ";"], "File": "HSAILSubtarget", "Func": "getSamplerValue", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67335, "Length": 23, "Cover_Rate": 0.696969696969697} {"Template_token": ["", "return", "TLInfo", ".", "get", "("], "ground_truth": [")", ";"], "File": "HSAILSubtarget", "Func": "getTargetLowering", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67336, "Length": 7, "Cover_Rate": 0.4117647058823529} {"Template_token": ["", "bool", "hasImages", "(", ")"], "ground_truth": ["const", "{"], "File": "HSAILSubtarget", "Func": "hasImages", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67337, "Length": 6, "Cover_Rate": 0.6} {"Template_token": ["", "index", "="], "ground_truth": ["", ";"], "File": "HSAILSubtarget", "Func": "HSAILImageHandles", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67338, "Length": 4, "Cover_Rate": 0.4444444444444444} {"Template_token": ["", "SamplerHandle", "(", "unsigned", "int", "u", ")", "{", "mVal", "=", "u", ";", "mIsRO", "=", "false", ";", "mEmitted", "=", "false"], "ground_truth": [";"], "File": "HSAILSubtarget", "Func": "HSAILSamplerHandle", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67339, "Length": 19, "Cover_Rate": 0.95} {"Template_token": ["", "SamplerHandle", "(", "unsigned", "int", "u", ")", "{", "mVal", "="], "ground_truth": ["u", ";"], "File": "HSAILSubtarget", "Func": "HSAILSamplerHandle", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67340, "Length": 11, "Cover_Rate": 0.55} {"Template_token": ["", "Subtarget", "&", "Subtarget", "::", "initializeSubtargetDependencies", "(", "StringRef", "GPU", ",", "StringRef"], "ground_truth": ["FS", ")", "{"], "File": "HSAILSubtarget", "Func": "initializeSubtargetDependencies", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67341, "Length": 13, "Cover_Rate": 0.52} {"Template_token": ["", "bool", "isGCN", "("], "ground_truth": [")", "const", "{"], "File": "HSAILSubtarget", "Func": "isGCN", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67342, "Length": 6, "Cover_Rate": 0.6} {"Template_token": ["", "bool", "isLargeModel", "(", ")", "const"], "ground_truth": ["{"], "File": "HSAILSubtarget", "Func": "isLargeModel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67343, "Length": 6, "Cover_Rate": 0.6} {"Template_token": ["", "inline", "bool", "isRO", "("], "ground_truth": [")", "{"], "File": "HSAILSubtarget", "Func": "isRO", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67344, "Length": 6, "Cover_Rate": 0.6} {"Template_token": ["", "bool", "isSmallModel", "(", ")", "const", "{", "return", "!", "IsLargeModel"], "ground_truth": [";"], "File": "HSAILSubtarget", "Func": "isSmallModel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67345, "Length": 10, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "mIsRO", "=", "true"], "ground_truth": [";"], "File": "HSAILSubtarget", "Func": "setRO", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67346, "Length": 4, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "inline", "void", "setSym", "(", "std", "::", "string", "str", ")", "{", "mSym", "=", "str"], "ground_truth": [";"], "File": "HSAILSubtarget", "Func": "setSym", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67347, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "inline", "void", "setSym", "(", "std", "::", "string", "str", ")", "{", "mSym", "=", "str"], "ground_truth": [";"], "File": "HSAILSubtarget", "Func": "setSym", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67348, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "bool", "supportMetadata30", "(", ")", "const", "{", "return"], "ground_truth": ["true", ";"], "File": "HSAILSubtarget", "Func": "supportMetadata30", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67349, "Length": 9, "Cover_Rate": 0.9} {"Template_token": ["", "RegisterTarget", "<", "Triple", "::", "hsail64", ",", "false", ">", "Target64", "(", "The_64Target", ",", "", ","], "ground_truth": ["", ")", ";"], "File": "HSAILTargetInfo", "Func": "LLVMInitializeHSAILTargetInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67350, "Length": 17, "Cover_Rate": 0.425} {"Template_token": ["", "void", "LLVMInitializeTargetInfo", "(", ")", "{", "RegisterTarget", "<", "Triple", "::", "hsail", ",", "false", ">", "Target32", "(", "The_32Target", ",", "", ",", "", ")", ";", "RegisterTarget", "<", "Triple", "::", "hsail64", ",", "false", ">", "Target64"], "ground_truth": ["(", "The_64Target", ",", "", ",", "", ")", ";"], "File": "HSAILTargetInfo", "Func": "LLVMInitializeHSAILTargetInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67351, "Length": 39, "Cover_Rate": 0.975} {"Template_token": ["", "void", "PassConfig", "::", "addIRPasses", "(", ")", "{", "addPass", "(", "createAlwaysInlinePass", "(", ")", ")", ";", "addPass", "(", "createAlwaysInlinerPass", "(", ")"], "ground_truth": [")", ";"], "File": "HSAILTargetMachine", "Func": "addIRPasses", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67352, "Length": 21, "Cover_Rate": 0.75} {"Template_token": ["", "addPass", "(", "createAlwaysInlinePass", "(", ")", ")", ";", "addPass", "(", "createAlwaysInlinerPass", "(", ")", ")", ";", "TargetPassConfig", "::", "addIRPasses", "("], "ground_truth": [")", ";"], "File": "HSAILTargetMachine", "Func": "addIRPasses", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67353, "Length": 20, "Cover_Rate": 0.7142857142857143} {"Template_token": ["", "return", "LLVMTargetMachine", "::", "addPassesToEmitFile", "(", "PM", ",", "Out", ",", "FT"], "ground_truth": [",", "DisableVerify", ",", "StartAfter", ",", "StopAfter", ",", "MFInitializer", ")", ";"], "File": "HSAILTargetMachine", "Func": "addPassesToEmitFile", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67354, "Length": 20, "Cover_Rate": 0.37037037037037035} {"Template_token": ["", "bool", "PassConfig", "::", "addPreISel", "(", ")", "{", "addPass", "(", "createLCSSAPass", "(", ")"], "ground_truth": [")", ";"], "File": "HSAILTargetMachine", "Func": "addPreISel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67355, "Length": 14, "Cover_Rate": 0.7777777777777778} {"Template_token": ["", "static", "StringRef", "computeDataLayout", "(", "const", "Triple", "&", "T", ")", "{", "if", "(", "T", ".", "getArch", "(", ")", "==", "Triple", "::", "hsail64", ")", "{", "return", "", "", "", "", "", ";", "}", "return", "", ""], "ground_truth": ["", "", ";"], "File": "HSAILTargetMachine", "Func": "computeDataLayout", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67356, "Length": 37, "Cover_Rate": 0.9736842105263158} {"Template_token": ["", "return", "new", "PassConfig", "("], "ground_truth": ["this", ",", "PM", ")", ";"], "File": "HSAILTargetMachine", "Func": "createPassConfig", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67357, "Length": 9, "Cover_Rate": 0.42857142857142855} {"Template_token": ["", "return", "new", "TargetObjectFile", "(", ")"], "ground_truth": [";"], "File": "HSAILTargetMachine", "Func": "createTLOF", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67358, "Length": 6, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "static", "TargetLoweringObjectFile", "*", "createTLOF", "(", "const", "Triple", "&"], "ground_truth": ["TT", ")", "{"], "File": "HSAILTargetMachine", "Func": "createTLOF", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67359, "Length": 11, "Cover_Rate": 0.6111111111111112} {"Template_token": ["", "TargetLoweringObjectFile", "*", "getObjFileLowering", "(", ")"], "ground_truth": ["const", "override", "{"], "File": "HSAILTargetMachine", "Func": "getObjFileLowering", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67360, "Length": 8, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "const", "Subtarget", "*", "getSubtargetImpl", "(", "const", "Function", "&", ")", "const", "override", "{", "return", "&", "Subtarget"], "ground_truth": [";"], "File": "HSAILTargetMachine", "Func": "getSubtargetImpl", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67361, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "TargetMachine", "::", "TargetMachine", "(", "const", "Target", "&", "T", ",", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Reloc", "::", "Model", "RM", ",", "CodeModel", "::", "Model", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ")", ":", "LLVMTargetMachine", "(", "T", ",", "computeDataLayout", "(", "getTripleNoOS", "(", "TT", ")", ")", ",", "getTripleNoOS", "(", "TT", ")", ",", "CPU", ","], "ground_truth": ["FS", ",", "Options", ",", "RM", ",", "CM", ",", "OL", ")", ",", "Subtarget", "(", "getTripleNoOS", "(", "TT", ")", ",", "CPU", ",", "FS", ",", "*", "this", ")", ",", "IntrinsicInfo", "(", "this", ")", ",", "TLOF", "(", "createTLOF", "(", "getTripleNoOS", "(", "TT", ")", ")", ")", "{"], "File": "HSAILTargetMachine", "Func": "HSAILTargetMachine", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67362, "Length": 102, "Cover_Rate": 0.9532710280373832} {"Template_token": ["", "_32TargetMachine", "::", "_32TargetMachine", "(", "const", "Target", "&", "T", ",", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Reloc", "::", "Model", "RM", ",", "CodeModel", "::", "Model", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ")", ":", "TargetMachine", "(", "T", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "RM", ",", "CM", ",", "OL", ")", "{", "if", "(", "TT", ".", "getArch", "(", ")", "==", "Triple", "::", "hsail64"], "ground_truth": [")", "{"], "File": "HSAILTargetMachine", "Func": "HSAIL_32TargetMachine", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67363, "Length": 73, "Cover_Rate": 0.8202247191011236} {"Template_token": ["", "RegisterTargetMachine", "<", "_64TargetMachine", ">", "Y"], "ground_truth": ["(", "The_64Target", ")", ";"], "File": "HSAILTargetMachine", "Func": "LLVMInitializeHSAILTarget", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67364, "Length": 9, "Cover_Rate": 0.375} {"Template_token": ["", "BRIG32_DwarfTargetObjectFile", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILTargetObjectFile", "Func": "BRIG32_DwarfTargetObjectFile", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67365, "Length": 5, "Cover_Rate": 1.0} {"Template_token": ["", "BRIG32_DwarfTargetObjectFile", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILTargetObjectFile", "Func": "BRIG32_DwarfTargetObjectFile", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67366, "Length": 5, "Cover_Rate": 1.0} {"Template_token": ["", "BRIG64_DwarfTargetObjectFile", "(", ")"], "ground_truth": ["{", "}"], "File": "HSAILTargetObjectFile", "Func": "BRIG64_DwarfTargetObjectFile", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67367, "Length": 5, "Cover_Rate": 1.0} {"Template_token": ["", "BRIG64_DwarfTargetObjectFile", "(", ")"], "ground_truth": ["{", "}"], "File": "HSAILTargetObjectFile", "Func": "BRIG64_DwarfTargetObjectFile", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67368, "Length": 5, "Cover_Rate": 1.0} {"Template_token": ["", "MCSection", "*", "getSectionForConstant", "(", "const", "DataLayout", "&", "DL", ",", "SectionKind", "Kind", ",", "const", "Constant", "*", "C", ")", "const", "override", "{", "return", "ReadOnlySection"], "ground_truth": [";"], "File": "HSAILTargetObjectFile", "Func": "getSectionForConstant", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67369, "Length": 23, "Cover_Rate": 0.9583333333333334} {"Template_token": ["", "TargetObjectFile", "::", "TargetObjectFile", "(", ")", "{", "TextSection", "=", "nullptr", ";", "DataSection", "=", "nullptr", ";", "BSSSection", "=", "nullptr", ";", "ReadOnlySection", "=", "nullptr", ";", "StaticCtorSection", "=", "nullptr", ";", "StaticDtorSection", "=", "nullptr", ";", "LSDASection", "=", "nullptr", ";", "EHFrameSection", "=", "nullptr", ";", "DwarfAbbrevSection", "=", "nullptr", ";", "DwarfInfoSection", "=", "nullptr", ";", "DwarfLineSection", "=", "nullptr", ";", "DwarfFrameSection", "=", "nullptr", ";", "DwarfPubTypesSection", "=", "nullptr", ";", "DwarfDebugInlineSection", "=", "nullptr", ";", "DwarfStrSection", "=", "nullptr", ";", "DwarfLocSection", "=", "nullptr", ";", "DwarfARangesSection", "=", "nullptr", ";", "DwarfRangesSection", "=", "nullptr"], "ground_truth": [";"], "File": "HSAILTargetObjectFile", "Func": "HSAILTargetObjectFile", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67370, "Length": 78, "Cover_Rate": 0.9873417721518988} {"Template_token": ["", "MCSection", "*", "SelectSectionForGlobal", "(", "const", "GlobalValue", "*", "GV", ",", "SectionKind", "Kind", ",", "Mangler", "&", "Mang", ",", "const", "TargetMachine"], "ground_truth": ["&", "TM", ")", "const", "override", "{"], "File": "HSAILTargetObjectFile", "Func": "SelectSectionForGlobal", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67371, "Length": 24, "Cover_Rate": 0.8} {"Template_token": ["", "MCSection", "*", "SelectSectionForGlobal", "(", "const", "GlobalValue", "*", "GV", ",", "SectionKind", "Kind", ","], "ground_truth": ["Mangler", "&", "Mang", ",", "const", "TargetMachine", "&", "TM", ")", "const", "override", "{"], "File": "HSAILTargetObjectFile", "Func": "SelectSectionForGlobal", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67372, "Length": 24, "Cover_Rate": 0.8} {"Template_token": ["", "EltTy", "=", "AT", "->", "getElementType", "(", ")", ";", "AT", "=", "dyn_cast", "<", "ArrayType", ">", "(", "EltTy", ")", ";", "}", "unsigned", "EltElts", "=", "~", "", ";", "Type", "*", "Tmp", "=", "analyzeType", "(", "EltTy", ",", "EltElts", ",", "DL", ")", ";", "if", "(", "EltElts", "!=", "", ")", "NElts", "*=", "EltElts", ";", "return", "Tmp", ";", "}", "if", "(", "VectorType", "*", "VT", "=", "dyn_cast", "<", "VectorType", ">", "(", "Ty", ")", ")", "{", "Type", "*", "EltTy", "=", "VT", "->", "getElementType", "(", ")", ";", "NElts", "=", "DL", ".", "getTypeAllocSize", "(", "Ty", ")", "/", "DL", ".", "getTypeAllocSize", "(", "EltTy", ")", ";", "assert", "(", "NElts", ">=", "VT", "->", "getNumElements", "(", ")", ")", ";", "if", "(", "EltTy", "->", "isIntegerTy", "(", "", ")", ")", "report_fatal_error", "(", "", ")", ";", "return", "EltTy", ";", "}", "if", "(", "isa", "<", "StructType", ">", "(", "Ty", ")", ")", "{", "NElts", "=", "DL", ".", "getTypeAllocSize", "(", "Ty", ")", ";", "return", "Type", "::", "getInt8Ty", "(", "Ty", "->", "getContext", "(", ")", ")", ";", "}", "assert", "(", "!", "Ty", "->", "isAggregateType", "(", ")", ")", ";", "NElts", "=", "", ";", "if", "(", "Ty", "->", "isIntegerTy", "(", "", ")", ")", "return", "Type", "::", "getInt8Ty", "(", "Ty", "->", "getContext", "(", ")", ")", ";", "return", "Ty"], "ground_truth": [";"], "File": "HSAILUtilityFunctions", "Func": "analyzeType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67373, "Length": 193, "Cover_Rate": 0.7782258064516129} {"Template_token": ["", "Type", "*", "Tmp", "=", "analyzeType", "(", "EltTy", ",", "EltElts", ",", "DL", ")", ";", "if", "(", "EltElts", "!=", "", ")", "NElts", "*=", "EltElts", ";", "return", "Tmp", ";", "}", "if", "(", "VectorType", "*", "VT", "=", "dyn_cast", "<", "VectorType", ">", "(", "Ty", ")", ")", "{", "Type", "*", "EltTy", "=", "VT", "->", "getElementType", "(", ")", ";", "NElts", "=", "DL", ".", "getTypeAllocSize", "(", "Ty", ")", "/", "DL", ".", "getTypeAllocSize", "(", "EltTy", ")", ";", "assert", "(", "NElts", ">=", "VT", "->", "getNumElements", "(", ")", ")", ";", "if", "(", "EltTy", "->", "isIntegerTy", "(", "", ")", ")", "report_fatal_error", "(", "", ")", ";", "return", "EltTy"], "ground_truth": [";"], "File": "HSAILUtilityFunctions", "Func": "analyzeType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67374, "Length": 96, "Cover_Rate": 0.3870967741935484} {"Template_token": ["", "if", "(", "ArrayType", "*", "ATy", "=", "dyn_cast", "<", "ArrayType", ">", "(", "ty", ")", ")", "ty", "=", "ATy", "->", "getElementType", "(", ")", ";", "if", "(", "IsImage", "(", "ty", ")", "||", "IsSampler", "(", "ty", ")"], "ground_truth": [")", "return", "", ";"], "File": "HSAILUtilityFunctions", "Func": "getAlignTypeQualifier", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67375, "Length": 37, "Cover_Rate": 0.30833333333333335} {"Template_token": ["", "static", "inline", "bool", "isConv", "(", "const", "MachineInstr", "*", "MI", ")", "{", "return", "MI", "->", "getDesc", "(", ")", ".", "TSFlags"], "ground_truth": ["&", "", ";"], "File": "HSAILUtilityFunctions", "Func": "isConv", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67376, "Length": 22, "Cover_Rate": 0.88} {"Template_token": ["", "StringRef", "GVname", "=", "GV", "->", "getName", "(", ")", ";", "return", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "("], "ground_truth": ["", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", ";"], "File": "HSAILUtilityFunctions", "Func": "isIgnoredGV", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67377, "Length": 108, "Cover_Rate": 0.6585365853658537} {"Template_token": ["", "static", "inline", "bool", "isImageInst", "(", "const", "MachineInstr", "*"], "ground_truth": ["MI", ")", "{"], "File": "HSAILUtilityFunctions", "Func": "isImageInst", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67378, "Length": 11, "Cover_Rate": 0.44} {"Template_token": ["", "static", "inline", "bool", "isImageInst", "(", "const", "MachineInstr", "*", "MI", ")", "{", "return", "MI", "->", "getDesc", "(", ")", ".", "TSFlags", "&"], "ground_truth": ["", ";"], "File": "HSAILUtilityFunctions", "Func": "isImageInst", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67379, "Length": 22, "Cover_Rate": 0.88} {"Template_token": ["", "if", "(", "CallingConv", "::", "SPIR_KERNEL", "==", "F", "->", "getCallingConv", "(", ")", ")", "return", "true", ";", "return", "isKernelFunc", "(", "F", "->", "getName", "("], "ground_truth": [")", ")", ";"], "File": "HSAILUtilityFunctions", "Func": "isKernelFunc", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67380, "Length": 25, "Cover_Rate": 0.7142857142857143} {"Template_token": ["", "if", "(", "CallingConv", "::", "SPIR_KERNEL", "==", "F", "->", "getCallingConv", "(", ")", ")", "return", "true", ";", "return", "isKernelFunc", "(", "F", "->"], "ground_truth": ["getName", "(", ")", ")", ";"], "File": "HSAILUtilityFunctions", "Func": "isKernelFunc", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67381, "Length": 25, "Cover_Rate": 0.7142857142857143} {"Template_token": ["", "bool", "isSPIRModule", "(", "const", "Module", "&", "M", ")", "{", "return", "M", ".", "getNamedMetadata", "("], "ground_truth": ["", ")", ";"], "File": "HSAILUtilityFunctions", "Func": "isSPIRModule", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67382, "Length": 17, "Cover_Rate": 0.9444444444444444} {"Template_token": ["", "return", "M", ".", "getNamedMetadata", "(", ""], "ground_truth": [")", ";"], "File": "HSAILUtilityFunctions", "Func": "isSPIRModule", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67383, "Length": 8, "Cover_Rate": 0.4444444444444444} {"Template_token": ["", "bool", "notUsedInKernel", "(", "const", "GlobalVariable", "*", "GV", ")", "{", "SmallVector", "<", "const", "User", "*", ",", "", ">", "worklist", ";", "worklist", ".", "append", "(", "GV", "->", "user_begin", "(", ")", ",", "GV", "->", "user_end", "(", ")", ")", ";", "while", "(", "!", "worklist", ".", "empty", "(", ")", ")", "{", "const", "User", "*", "user", "=", "worklist", ".", "pop_back_val", "(", ")", ";", "if", "(", "const", "GlobalValue", "*", "GUser", "=", "dyn_cast", "<", "GlobalValue", ">", "(", "user", ")"], "ground_truth": [")", "{"], "File": "HSAILUtilityFunctions", "Func": "notUsedInKernel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67384, "Length": 73, "Cover_Rate": 0.5793650793650794} {"Template_token": ["", "SmallVector", "<", "const", "User", "*", ",", "", ">", "worklist", ";", "worklist", ".", "append", "(", "GV", "->", "user_begin", "(", ")", ",", "GV", "->", "user_end", "(", ")", ")", ";", "while", "(", "!", "worklist", ".", "empty", "(", ")", ")", "{", "const", "User", "*", "user", "=", "worklist", ".", "pop_back_val", "(", ")", ";", "if", "(", "const", "GlobalValue", "*", "GUser", "=", "dyn_cast", "<", "GlobalValue"], "ground_truth": [">", "(", "user", ")", ")", "{"], "File": "HSAILUtilityFunctions", "Func": "notUsedInKernel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67385, "Length": 64, "Cover_Rate": 0.5079365079365079} {"Template_token": ["", "Name", "=", "Name", ".", "drop_front", "(", "", ")", ";", "}", "size_t", "p", "=", "", ";", "size_t", "q", "=", "", ";", "while", "(", "q", "!=", "StringRef", "::", "npos", ")", "{", "q", "=", "Name", ".", "find_first_not_of", "(", "Syntax", ",", "p", ")", ";", "if", "(", "q", "!=", "p", ")", "{", "NewName", "+=", "Name", ".", "slice", "(", "p", ",", "q", ")", ";", "}", "if", "(", "q", "==", "StringRef", "::", "npos", ")", "break", ";", "NewName", "+=", "'_'"], "ground_truth": [";"], "File": "HSAILUtilityFunctions", "Func": "sanitizedGlobalValueName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67386, "Length": 73, "Cover_Rate": 0.35436893203883496} {"Template_token": ["", "NewName", "+=", "'_'", ";", "Name", "=", "Name", ".", "drop_front", "(", "", ")", ";", "}", "size_t", "p", "=", "", ";", "size_t", "q", "=", "", ";", "while", "(", "q", "!=", "StringRef", "::", "npos", ")", "{", "q", "=", "Name", ".", "find_first_not_of", "(", "Syntax", ",", "p", ")", ";", "if", "(", "q", "!=", "p", ")", "{", "NewName", "+=", "Name", ".", "slice", "(", "p", ",", "q", ")", ";", "}", "if", "(", "q", "==", "StringRef", "::", "npos", ")", "break", ";", "NewName", "+=", "'_'", ";", "p", "=", "q", "+", "", ";", "}", "if", "(", "Name", ".", "empty", "(", ")", "||", "Digits", ".", "find", "(", "Name", "[", "", "]", ")", "!=", "StringRef", "::", "npos", "||", "!", "Name", ".", "equals", "(", "NewName", ")", ")", "{", "Out", ".", "append", "(", "NewName", ".", "begin", "(", ")", ",", "NewName", ".", "end", "(", ")", ")", ";", "return"], "ground_truth": ["true", ";"], "File": "HSAILUtilityFunctions", "Func": "sanitizedGlobalValueName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67387, "Length": 135, "Cover_Rate": 0.6553398058252428} {"Template_token": ["", "uint64_t", "RawVectorOstream", "::", "current_pos", "("], "ground_truth": [")", "const", "{"], "File": "RawVectorOstream", "Func": "current_pos", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67388, "Length": 8, "Cover_Rate": 0.4444444444444444} {"Template_token": ["", "uint64_t", "RawVectorOstream", "::", "current_pos", "(", ")", "const", "{", "return", "static_cast", "<", "uint64_t"], "ground_truth": [">", "(", "Position", ")", ";"], "File": "RawVectorOstream", "Func": "current_pos", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67389, "Length": 17, "Cover_Rate": 0.9444444444444444} {"Template_token": ["", "return", "StringRef", "(", "Data", ".", "data", "(", ")", ",", "Data", "."], "ground_truth": ["size", "(", ")", ")", ";"], "File": "RawVectorOstream", "Func": "getData", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67390, "Length": 16, "Cover_Rate": 0.6956521739130435} {"Template_token": ["", "void", "RawVectorOstream", "::", "releaseStream", "(", ")", "{", "if", "(", "Other", ")", "{", "Other", "->", "flush"], "ground_truth": ["(", ")", ";"], "File": "RawVectorOstream", "Func": "releaseStream", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67391, "Length": 18, "Cover_Rate": 0.75} {"Template_token": ["", "Other", "->", "flush", "(", ")", ";", "}", "Other", "="], "ground_truth": ["", ";"], "File": "RawVectorOstream", "Func": "releaseStream", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67392, "Length": 11, "Cover_Rate": 0.4583333333333333} {"Template_token": ["", "void", "RawVectorOstream", "::", "setOtherStream", "("], "ground_truth": ["raw_pwrite_stream", "*", "other", ")", "{"], "File": "RawVectorOstream", "Func": "setOtherStream", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67393, "Length": 10, "Cover_Rate": 0.5263157894736842} {"Template_token": ["", "}", "std", "::", "copy", "(", "Ptr", ",", "Ptr", "+", "Size", ",", "Data", ".", "begin", "(", ")", "+", "Position", ")", ";", "Position", "+=", "Size", ";", "if", "(", "Other", ")", "{", "Other", "->", "write", "(", "Ptr", ","], "ground_truth": ["Size", ")", ";"], "File": "RawVectorOstream", "Func": "write_impl", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 67394, "Length": 38, "Cover_Rate": 0.4175824175824176}