{"Template_token": ["", "static", "Target", "TheDirectXTarget", ";", "return"], "ground_truth": ["TheDirectXTarget", ";"], "File": "DirectXTargetInfo", "Func": "getTheDirectXTarget", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50156, "Length": 7, "Cover_Rate": 0.5} {"Template_token": ["", "PM", ".", "add", "(", "createPrepareModulePass", "(", ")", ")", ";", "switch", "(", "FileType", ")", "{", "case", "CGFT_AssemblyFile", ":", "PM", ".", "add", "(", "createPrintModulePass", "(", "Out", ","], "ground_truth": ["", ",", "true", ")", ")", ";"], "File": "DirectXTargetMachine1", "Func": "addPassesToEmitFile", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50157, "Length": 31, "Cover_Rate": 0.33695652173913043} {"Template_token": ["", "RegisterTargetMachine", "<", "DirectXTargetMachine", ">", "X", "(", "getTheDirectXTarget", "(", ")", ")", ";", "auto", "*", "PR", "=", "PassRegistry", "::"], "ground_truth": ["getPassRegistry", "(", ")", ";"], "File": "DirectXTargetMachine1", "Func": "LLVMInitializeDirectXTarget", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50158, "Length": 21, "Cover_Rate": 0.6176470588235294} {"Template_token": ["", "RegisterTargetMachine", "<", "DirectXTargetMachine", ">", "X", "(", "getTheDirectXTarget", "(", ")", ")", ";", "auto", "*", "PR", "=", "PassRegistry", "::", "getPassRegistry", "(", ")", ";", "initializePrepareModulePass", "(", "*"], "ground_truth": ["PR", ")", ";"], "File": "DirectXTargetMachine1", "Func": "LLVMInitializeDirectXTarget", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50159, "Length": 27, "Cover_Rate": 0.7941176470588235} {"Template_token": ["", "RegisterTargetMachine", "<", "DirectXTargetMachine", ">", "X", "(", "getTheDirectXTarget", "(", ")", ")", ";", "auto", "*", "PR", "=", "PassRegistry", "::", "getPassRegistry", "(", ")", ";", "initializePrepareModulePass", "(", "*", "PR", ")", ";", "initializeOpLoweringLegacyPass", "(", "*", "PR", ")", ";", "initializeTranslateMetadataPass", "(", "*", "PR", ")"], "ground_truth": [";"], "File": "DirectXTargetMachine2", "Func": "LLVMInitializeDirectXTarget", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50160, "Length": 39, "Cover_Rate": 0.8478260869565217} {"Template_token": ["", "RegisterTargetMachine", "<", "DirectXTargetMachine", ">", "X", "(", "getTheDirectXTarget", "(", ")", ")", ";", "auto", "*", "PR", "=", "PassRegistry", "::", "getPassRegistry", "(", ")", ";", "initializePrepareModulePass", "(", "*", "PR", ")", ";", "initializeOpLoweringLegacyPass", "(", "*", "PR", ")", ";", "initializeTranslateMetadataPass", "(", "*"], "ground_truth": ["PR", ")", ";"], "File": "DirectXTargetMachine2", "Func": "LLVMInitializeDirectXTarget", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50161, "Length": 39, "Cover_Rate": 0.8478260869565217} {"Template_token": ["", "bool", "DirectXTargetMachine", "::", "addPassesToEmitMC", "(", "PassManagerBase", "&", "PM", ",", "MCContext", "*", "&", "Ctx", ",", "raw_pwrite_stream", "&", "Out", ","], "ground_truth": ["bool", "DisableVerify", ")", "{"], "File": "DirectXTargetMachine", "Func": "addPassesToEmitMC", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50162, "Length": 22, "Cover_Rate": 0.8461538461538461} {"Template_token": ["", "return", "new", "DirectXPassConfig", "(", "*"], "ground_truth": ["this", ",", "PM", ")", ";"], "File": "DirectXTargetMachine", "Func": "createPassConfig", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50163, "Length": 10, "Cover_Rate": 0.45454545454545453} {"Template_token": ["", "FunctionPass", "*", "createTargetRegisterAllocator", "(", "bool", ")"], "ground_truth": ["override", "{"], "File": "DirectXTargetMachine", "Func": "createTargetRegisterAllocator", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50164, "Length": 8, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "FunctionPass", "*", "createTargetRegisterAllocator", "(", "bool", ")", "override", "{", "return", "nullptr"], "ground_truth": [";"], "File": "DirectXTargetMachine", "Func": "createTargetRegisterAllocator", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50165, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "return", "getTM", "<", "DirectXTargetMachine", ">"], "ground_truth": ["(", ")", ";"], "File": "DirectXTargetMachine", "Func": "getDirectXTargetMachine", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50166, "Length": 8, "Cover_Rate": 0.5} {"Template_token": ["", "DirectXTargetMachine", "&", "getDirectXTargetMachine", "(", ")", "const", "{", "return", "getTM", "<", "DirectXTargetMachine"], "ground_truth": [">", "(", ")", ";"], "File": "DirectXTargetMachine", "Func": "getDirectXTargetMachine", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50167, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "MCSection", "*", "getExplicitSectionGlobal", "(", "const", "GlobalObject", "*", "GO", ",", "SectionKind", "Kind", ",", "const", "TargetMachine", "&", "TM", ")", "const", "override", "{", "llvm_unreachable", "(", ""], "ground_truth": [")", ";"], "File": "DirectXTargetMachine", "Func": "getExplicitSectionGlobal", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50168, "Length": 25, "Cover_Rate": 0.9615384615384616} {"Template_token": ["", "TargetLoweringObjectFile", "*", "getObjFileLowering", "(", ")", "const", "override", "{", "return", "TLOF", ".", "get", "("], "ground_truth": [")", ";"], "File": "DirectXTargetMachine", "Func": "getObjFileLowering", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50169, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "return", "TLOF", ".", "get"], "ground_truth": ["(", ")", ";"], "File": "DirectXTargetMachine", "Func": "getObjFileLowering", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50170, "Length": 7, "Cover_Rate": 0.4375} {"Template_token": ["", "return", "Subtarget", ".", "get"], "ground_truth": ["(", ")", ";"], "File": "DirectXTargetMachine", "Func": "getSubtargetImpl", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50171, "Length": 7, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "return", "TargetTransformInfo", "(", "DirectXTTIImpl", "(", "this"], "ground_truth": [",", "F", ")", ")", ";"], "File": "DirectXTargetMachine", "Func": "getTargetTransformInfo", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50172, "Length": 11, "Cover_Rate": 0.4583333333333333} {"Template_token": ["", "TargetTransformInfo", "DirectXTargetMachine", "::", "getTargetTransformInfo", "(", "const", "Function", "&", "F", ")"], "ground_truth": ["const", "{"], "File": "DirectXTargetMachine", "Func": "getTargetTransformInfo", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50173, "Length": 12, "Cover_Rate": 0.5} {"Template_token": ["", "RegisterTargetMachine", "<", "DirectXTargetMachine", ">", "X", "("], "ground_truth": ["getTheDirectXTarget", "(", ")", ")", ";"], "File": "DirectXTargetMachine", "Func": "LLVMInitializeDirectXTarget", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50174, "Length": 11, "Cover_Rate": 0.6111111111111112} {"Template_token": ["", "MCSection", "*", "SelectSectionForGlobal", "(", "const", "GlobalObject", "*", "GO", ",", "SectionKind", "Kind", ",", "const", "TargetMachine", "&", "TM", ")", "const", "override", "{", "llvm_unreachable", "(", "", ")"], "ground_truth": [";"], "File": "DirectXTargetMachine", "Func": "SelectSectionForGlobal", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50175, "Length": 25, "Cover_Rate": 0.9615384615384616} {"Template_token": ["", "MCSection", "*", "SelectSectionForGlobal", "(", "const", "GlobalObject", "*", "GO", ",", "SectionKind", "Kind", ","], "ground_truth": ["const", "TargetMachine", "&", "TM", ")", "const", "override", "{"], "File": "DirectXTargetMachine", "Func": "SelectSectionForGlobal", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50176, "Length": 20, "Cover_Rate": 0.7692307692307693} {"Template_token": ["", "const", "DirectXSubtarget", "*", "getST", "("], "ground_truth": [")", "const", "{"], "File": "DirectXTargetTransformInfo", "Func": "getST", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50177, "Length": 8, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "const", "DirectXSubtarget", "*", "getST", "(", ")", "const", "{", "return", "ST"], "ground_truth": [";"], "File": "DirectXTargetTransformInfo", "Func": "getST", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50178, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "void", "assignValueId", "(", "GlobalValue", "::", "GUID", "ValGUID"], "ground_truth": [")", "{"], "File": "DXILBitcodeWriter", "Func": "assignValueId", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50179, "Length": 9, "Cover_Rate": 0.5} {"Template_token": ["", "uint64_t", "bitcodeStartBit", "(", ")"], "ground_truth": ["{"], "File": "DXILBitcodeWriter", "Func": "bitcodeStartBit", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50180, "Length": 5, "Cover_Rate": 0.5555555555555556} {"Template_token": ["", "return"], "ground_truth": ["BitcodeStartBit", ";"], "File": "DXILBitcodeWriter", "Func": "bitcodeStartBit", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50181, "Length": 3, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "void", "BitcodeWriter", "::", "copyStrtab", "(", "StringRef", "Strtab", ")", "{", "writeBlob", "(", "bitc", "::", "STRTAB_BLOCK_ID", ",", "bitc", "::", "STRTAB_BLOB", ",", "Strtab", ")", ";", "WroteStrtab", "="], "ground_truth": ["true", ";"], "File": "DXILBitcodeWriter", "Func": "copyStrtab", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50182, "Length": 26, "Cover_Rate": 0.9629629629629629} {"Template_token": ["", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "VBR", ",", "", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Array", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "VBR", ",", "", ")", ")", ";", "return", "Stream", ".", "EmitAbbrev", "(", "std", "::"], "ground_truth": ["move", "(", "Abbv", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "createGenericDINodeAbbrev", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50183, "Length": 53, "Cover_Rate": 0.4015151515151515} {"Template_token": ["", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "VBR", ",", "", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Fixed", ",", "", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "VBR", ",", "", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Array", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "VBR", ",", "", ")"], "ground_truth": [")", ";"], "File": "DXILBitcodeWriter", "Func": "createGenericDINodeAbbrev", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50184, "Length": 68, "Cover_Rate": 0.5151515151515151} {"Template_token": ["", "auto", "Abbv", "=", "std", "::", "make_shared", "<", "BitCodeAbbrev", ">", "(", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "bitc", "::", "METADATA_STRING_OLD", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Array", ")"], "ground_truth": [")", ";"], "File": "DXILBitcodeWriter", "Func": "createMetadataStringsAbbrev", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50185, "Length": 36, "Cover_Rate": 0.5070422535211268} {"Template_token": ["", "BitcodeWriter", "(", "const", "Module", "&", "M", ",", "SmallVectorImpl", "<", "char", ">", "&", "Buffer", ",", "StringTableBuilder", "&", "StrtabBuilder", ",", "BitstreamWriter", "&", "Stream", ")", ":", "Stream", "(", "Stream", ")", ",", "StrtabBuilder", "(", "StrtabBuilder", ")", ",", "M", "(", "M", ")", ",", "VE", "(", "M", ",", "true", ")", ",", "Buffer", "(", "Buffer", ")", ",", "BitcodeStartBit", "(", "Stream", ".", "GetCurrentBitNo", "(", ")", ")", "{", "GlobalValueId", "=", "VE", ".", "getValues", "(", ")", ".", "size", "("], "ground_truth": [")", ";"], "File": "DXILBitcodeWriter", "Func": "DXILBitcodeWriter", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50186, "Length": 71, "Cover_Rate": 0.9861111111111112} {"Template_token": ["", "BitcodeWriter", "(", "const", "Module", "&", "M", ",", "SmallVectorImpl", "<", "char", ">", "&", "Buffer", ",", "StringTableBuilder", "&", "StrtabBuilder", ",", "BitstreamWriter", "&", "Stream", ")", ":", "Stream", "(", "Stream", ")", ",", "StrtabBuilder", "(", "StrtabBuilder", ")", ",", "M", "(", "M", ")"], "ground_truth": [",", "VE", "(", "M", ",", "true", ")", ",", "Buffer", "(", "Buffer", ")", ",", "BitcodeStartBit", "(", "Stream", ".", "GetCurrentBitNo", "(", ")", ")", "{"], "File": "DXILBitcodeWriter", "Func": "DXILBitcodeWriter", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50187, "Length": 59, "Cover_Rate": 0.8194444444444444} {"Template_token": ["", "void", "BitcodeWriter", "::", "emitSignedInt64", "(", "SmallVectorImpl", "<", "uint64_t", ">"], "ground_truth": ["&", "Vals", ",", "uint64_t", "V", ")", "{"], "File": "DXILBitcodeWriter", "Func": "emitSignedInt64", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50188, "Length": 16, "Cover_Rate": 0.32} {"Template_token": ["", "unsigned", "getEncodedAlign", "(", "MaybeAlign", "Alignment", ")", "{", "return", "encode", "("], "ground_truth": ["Alignment", ")", ";"], "File": "DXILBitcodeWriter", "Func": "getEncodedAlign", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50189, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "return", "encode", "("], "ground_truth": ["Alignment", ")", ";"], "File": "DXILBitcodeWriter", "Func": "getEncodedAlign", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50190, "Length": 6, "Cover_Rate": 0.42857142857142855} {"Template_token": ["", "return", "bitc", "::", "BINOP_ADD", ";", "case", "Instruction", "::", "Sub", ":", "case", "Instruction", "::", "FSub", ":", "return", "bitc", "::", "BINOP_SUB", ";", "case", "Instruction", "::", "Mul", ":", "case", "Instruction", "::", "FMul", ":", "return", "bitc", "::", "BINOP_MUL", ";", "case", "Instruction", "::", "UDiv", ":", "return", "bitc", "::", "BINOP_UDIV", ";", "case", "Instruction", "::", "FDiv", ":", "case", "Instruction", "::", "SDiv", ":", "return", "bitc"], "ground_truth": ["::", "BINOP_SDIV", ";"], "File": "DXILBitcodeWriter", "Func": "getEncodedBinaryOpcode", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50191, "Length": 60, "Cover_Rate": 0.33707865168539325} {"Template_token": ["", "case", "Instruction", "::", "Mul", ":", "case", "Instruction", "::", "FMul", ":", "return", "bitc", "::", "BINOP_MUL", ";", "case", "Instruction", "::", "UDiv", ":", "return", "bitc", "::", "BINOP_UDIV", ";", "case", "Instruction", "::", "FDiv", ":", "case", "Instruction", "::", "SDiv", ":", "return", "bitc", "::", "BINOP_SDIV", ";", "case", "Instruction", "::", "URem", ":", "return", "bitc", "::", "BINOP_UREM", ";", "case", "Instruction", "::", "FRem", ":", "case", "Instruction", "::", "SRem", ":", "return", "bitc", "::", "BINOP_SREM", ";", "case", "Instruction", "::", "Shl", ":", "return", "bitc", "::", "BINOP_SHL", ";", "case", "Instruction", "::", "LShr", ":", "return", "bitc", "::", "BINOP_LSHR", ";", "case", "Instruction", "::", "AShr", ":", "return", "bitc", "::", "BINOP_ASHR", ";", "case", "Instruction", "::", "And", ":", "return", "bitc", "::", "BINOP_AND", ";", "case", "Instruction", "::", "Or", ":", "return", "bitc", "::"], "ground_truth": ["BINOP_OR", ";"], "File": "DXILBitcodeWriter", "Func": "getEncodedBinaryOpcode", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50192, "Length": 115, "Cover_Rate": 0.6460674157303371} {"Template_token": ["", "switch", "(", "Opcode", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "Instruction", "::", "Trunc", ":", "return", "bitc", "::", "CAST_TRUNC", ";", "case", "Instruction", "::", "ZExt", ":", "return", "bitc", "::", "CAST_ZEXT", ";", "case", "Instruction", "::", "SExt", ":", "return", "bitc", "::", "CAST_SEXT", ";", "case", "Instruction", "::", "FPToUI", ":", "return", "bitc"], "ground_truth": ["::", "CAST_FPTOUI", ";"], "File": "DXILBitcodeWriter", "Func": "getEncodedCastOpcode", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50193, "Length": 52, "Cover_Rate": 0.33986928104575165} {"Template_token": ["", "unsigned", "BitcodeWriter", "::", "getEncodedCastOpcode", "(", "unsigned", "Opcode", ")", "{", "switch", "(", "Opcode", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "Instruction", "::", "Trunc", ":", "return", "bitc", "::", "CAST_TRUNC", ";", "case", "Instruction", "::", "ZExt", ":", "return", "bitc", "::", "CAST_ZEXT", ";", "case", "Instruction", "::", "SExt", ":", "return", "bitc", "::", "CAST_SEXT", ";", "case", "Instruction", "::", "FPToUI", ":", "return", "bitc", "::", "CAST_FPTOUI", ";", "case", "Instruction", "::", "FPToSI", ":", "return", "bitc", "::", "CAST_FPTOSI", ";", "case", "Instruction", "::", "UIToFP", ":", "return", "bitc", "::", "CAST_UITOFP", ";", "case", "Instruction", "::", "SIToFP", ":", "return", "bitc", "::", "CAST_SITOFP", ";", "case", "Instruction", "::", "FPTrunc", ":", "return", "bitc", "::", "CAST_FPTRUNC", ";", "case", "Instruction", "::", "FPExt"], "ground_truth": [":"], "File": "DXILBitcodeWriter", "Func": "getEncodedCastOpcode", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50194, "Length": 106, "Cover_Rate": 0.6928104575163399} {"Template_token": ["", "case", "Comdat", "::", "Largest", ":", "return", "bitc", "::", "COMDAT_SELECTION_KIND_LARGEST", ";", "case", "Comdat", "::", "NoDeduplicate", ":", "return", "bitc", "::", "COMDAT_SELECTION_KIND_NO_DUPLICATES", ";", "case", "Comdat", "::"], "ground_truth": ["SameSize", ":"], "File": "DXILBitcodeWriter", "Func": "getEncodedComdatSelectionKind", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50195, "Length": 25, "Cover_Rate": 0.3246753246753247} {"Template_token": ["", "unsigned", "BitcodeWriter", "::", "getEncodedDLLStorageClass", "(", "const", "GlobalValue", "&", "GV", ")", "{", "switch", "(", "GV", ".", "getDLLStorageClass", "(", ")", ")", "{", "case", "GlobalValue"], "ground_truth": ["::", "DefaultStorageClass", ":"], "File": "DXILBitcodeWriter", "Func": "getEncodedDLLStorageClass", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50196, "Length": 25, "Cover_Rate": 0.49019607843137253} {"Template_token": ["", "unsigned", "BitcodeWriter", "::", "getEncodedLinkage", "("], "ground_truth": ["const", "GlobalValue", "&", "GV", ")", "{"], "File": "DXILBitcodeWriter", "Func": "getEncodedLinkage", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50197, "Length": 11, "Cover_Rate": 0.5} {"Template_token": ["", "case", "AtomicOrdering", "::", "NotAtomic", ":", "return", "bitc", "::", "ORDERING_NOTATOMIC", ";", "case", "AtomicOrdering", "::", "Unordered", ":", "return", "bitc", "::", "ORDERING_UNORDERED", ";", "case", "AtomicOrdering", "::", "Monotonic", ":", "return", "bitc", "::", "ORDERING_MONOTONIC", ";", "case", "AtomicOrdering", "::", "Acquire", ":", "return", "bitc", "::", "ORDERING_ACQUIRE", ";", "case", "AtomicOrdering", "::", "Release", ":", "return", "bitc", "::", "ORDERING_RELEASE", ";", "case", "AtomicOrdering", "::", "AcquireRelease", ":", "return", "bitc", "::", "ORDERING_ACQREL", ";", "case", "AtomicOrdering", "::", "SequentiallyConsistent", ":", "return", "bitc", "::", "ORDERING_SEQCST"], "ground_truth": [";"], "File": "DXILBitcodeWriter", "Func": "getEncodedOrdering", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50198, "Length": 70, "Cover_Rate": 0.7692307692307693} {"Template_token": ["", "return", "bitc", "::", "RMW_NAND", ";", "case", "AtomicRMWInst", "::", "Or", ":", "return", "bitc", "::", "RMW_OR", ";", "case", "AtomicRMWInst", "::", "Xor", ":", "return", "bitc", "::", "RMW_XOR", ";", "case", "AtomicRMWInst", "::", "Max", ":", "return", "bitc", "::", "RMW_MAX", ";", "case", "AtomicRMWInst", "::", "Min", ":", "return", "bitc", "::", "RMW_MIN", ";", "case", "AtomicRMWInst", "::", "UMax", ":", "return", "bitc", "::", "RMW_UMAX", ";", "case", "AtomicRMWInst", "::", "UMin", ":", "return", "bitc", "::"], "ground_truth": ["RMW_UMIN", ";"], "File": "DXILBitcodeWriter", "Func": "getEncodedRMWOperation", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50199, "Length": 65, "Cover_Rate": 0.41935483870967744} {"Template_token": ["", "return", "unsigned", "("], "ground_truth": ["SSID", ")", ";"], "File": "DXILBitcodeWriter", "Func": "getEncodedSyncScopeID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50200, "Length": 6, "Cover_Rate": 0.375} {"Template_token": ["", "unsigned", "getEncodedSyncScopeID", "(", "SyncScope", "::", "ID", "SSID", ")", "{", "return", "unsigned", "(", "SSID"], "ground_truth": [")", ";"], "File": "DXILBitcodeWriter", "Func": "getEncodedSyncScopeID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50201, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "if", "(", "!", "VI", ".", "haveGVs", "(", ")", "||", "!", "VI", ".", "getValue", "("], "ground_truth": [")", ")", "return", "getValueId", "(", "VI", ".", "getGUID", "(", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "getValueId", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50202, "Length": 26, "Cover_Rate": 0.5652173913043478} {"Template_token": ["", "unsigned", "ValID", "=", "VE", ".", "getValueID", "(", "V", ")", ";", "Vals", ".", "push_back", "(", "InstID", "-"], "ground_truth": ["ValID", ")", ";"], "File": "DXILBitcodeWriter", "Func": "pushValue", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50203, "Length": 19, "Cover_Rate": 0.4634146341463415} {"Template_token": ["", "Vals", ".", "push_back", "(", "VE", ".", "getTypeID", "(", "V", "->", "getType", "(", ")", ")", ")", ";", "return", "true", ";", "}", "return", "false"], "ground_truth": [";"], "File": "DXILBitcodeWriter", "Func": "pushValueAndType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50204, "Length": 23, "Cover_Rate": 0.323943661971831} {"Template_token": ["", "void", "BitcodeWriter", "::", "pushValueSigned", "(", "const", "Value", "*", "V", ",", "unsigned", "InstID", ",", "SmallVectorImpl"], "ground_truth": ["<", "uint64_t", ">", "&", "Vals", ")", "{"], "File": "DXILBitcodeWriter", "Func": "pushValueSigned", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50205, "Length": 21, "Cover_Rate": 0.3888888888888889} {"Template_token": ["", "static", "uint64_t", "rotateSign", "(", "DISubrange", "::", "BoundType", "Val", ")", "{", "return", "rotateSign", "(", "Val", ".", "get", "<", "ConstantInt", "*", ">", "(", ")", "->", "getValue", "("], "ground_truth": [")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "rotateSign", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50206, "Length": 28, "Cover_Rate": 0.9655172413793104} {"Template_token": ["", "std", "::", "map", "<", "GlobalValue", "::", "GUID", ",", "unsigned"], "ground_truth": [">", "&", "valueIds", "(", ")", "{"], "File": "DXILBitcodeWriter", "Func": "valueIds", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50207, "Length": 15, "Cover_Rate": 0.7894736842105263} {"Template_token": ["", "uint64_t", "Val", "=", "getAttrKindEncoding", "(", "Attr", ".", "getKindAsEnum", "(", ")", ")", ";", "assert", "(", "Val", "<=", "bitc", "::", "ATTR_KIND_ARGMEMONLY", "&&", "", ")", ";", "Record", ".", "push_back", "(", "", ")", ";", "Record", ".", "push_back", "(", "Val", ")", ";", "Record", ".", "push_back", "(", "Attr", ".", "getValueAsInt", "(", ")", ")", ";", "}", "else", "{", "StringRef", "Kind", "=", "Attr", ".", "getKindAsString", "(", ")", ";", "StringRef", "Val", "=", "Attr", ".", "getValueAsString", "(", ")", ";", "Record", ".", "push_back", "(", "Val", ".", "empty", "(", ")", "?", "", ":", "", ")", ";", "Record", ".", "append", "(", "Kind", ".", "begin", "(", ")", ",", "Kind", ".", "end", "(", ")", ")", ";", "Record", ".", "push_back", "(", "", ")", ";", "if", "(", "!", "Val", ".", "empty", "(", ")", ")", "{", "Record", ".", "append", "(", "Val", ".", "begin", "(", ")", ",", "Val", ".", "end", "(", ")", ")", ";", "Record", ".", "push_back", "(", "", ")", ";", "}", "}", "}", "Stream", ".", "EmitRecord", "(", "bitc", "::", "PARAMATTR_GRP_CODE_ENTRY", ",", "Record", ")", ";", "Record", ".", "clear", "("], "ground_truth": [")", ";"], "File": "DXILBitcodeWriter", "Func": "writeAttributeGroupTable", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50208, "Length": 162, "Cover_Rate": 0.4879518072289157} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getAttributeGroupID", "(", "Pair", ")", ")", ";", "Record", ".", "push_back", "(", "AttrListIndex", ")", ";", "for", "(", "Attribute", "Attr", ":", "AS", ")", "{", "if", "(", "Attr", ".", "isEnumAttribute", "(", ")", ")", "{", "uint64_t", "Val", "=", "getAttrKindEncoding", "(", "Attr", ".", "getKindAsEnum", "(", ")", ")", ";", "assert", "(", "Val", "<=", "bitc", "::", "ATTR_KIND_ARGMEMONLY", "&&", "", ")", ";", "Record", ".", "push_back", "(", "", ")", ";", "Record", ".", "push_back", "(", "Val", ")", ";", "}", "else", "if", "(", "Attr", ".", "isIntAttribute", "(", ")", ")", "{", "uint64_t", "Val", "=", "getAttrKindEncoding", "(", "Attr", ".", "getKindAsEnum", "(", ")", ")", ";", "assert", "(", "Val", "<=", "bitc", "::", "ATTR_KIND_ARGMEMONLY", "&&", "", ")", ";", "Record", ".", "push_back", "(", "", ")", ";", "Record", ".", "push_back", "(", "Val", ")", ";", "Record", ".", "push_back", "(", "Attr", ".", "getValueAsInt", "(", ")", ")", ";", "}", "else", "{", "StringRef", "Kind", "=", "Attr", ".", "getKindAsString", "(", ")", ";", "StringRef", "Val", "=", "Attr", ".", "getValueAsString", "(", ")", ";", "Record", ".", "push_back", "(", "Val", ".", "empty", "(", ")", "?", "", ":"], "ground_truth": ["", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeAttributeGroupTable", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50209, "Length": 168, "Cover_Rate": 0.5060240963855421} {"Template_token": ["", "const", "std", "::", "vector", "<", "AttributeList", ">", "&", "Attrs", "=", "VE", ".", "getAttributeLists", "(", ")", ";", "if", "(", "Attrs", ".", "empty", "(", ")", ")", "return", ";", "Stream", ".", "EnterSubblock", "(", "bitc", "::", "PARAMATTR_BLOCK_ID", ",", "", ")", ";", "SmallVector", "<", "uint64_t", ",", "", ">", "Record", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "Attrs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "AttributeList", "AL", "=", "Attrs", "[", "i", "]", ";", "for", "(", "unsigned", "i", ":", "AL", ".", "indexes", "(", ")", ")", "{", "AttributeSet", "AS", "=", "AL", ".", "getAttributes", "(", "i", ")", ";", "if", "(", "AS", ".", "hasAttributes", "(", ")", ")", "Record", ".", "push_back", "(", "VE", ".", "getAttributeGroupID", "(", "{", "i", ",", "AS", "}", ")", ")", ";", "}", "Stream", ".", "EmitRecord", "(", "bitc", "::", "PARAMATTR_CODE_ENTRY", ",", "Record", ")", ";", "Record", ".", "clear"], "ground_truth": ["(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeAttributeTable", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50210, "Length": 140, "Cover_Rate": 0.9032258064516129} {"Template_token": ["", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "Record", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Blob", ")", ")", ";", "auto", "AbbrevNo", "=", "Stream", "->", "EmitAbbrev", "(", "std"], "ground_truth": ["::", "move", "(", "Abbv", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeBlob", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50211, "Length": 37, "Cover_Rate": 0.38144329896907214} {"Template_token": ["", "assert", "(", "isUInt", "<", "", ">", "(", "Size", ")", ")", ";", "Vals", ".", "push_back", "(", "Size", ")", ";", "for", "(", "char", "Chr", ":", "C", "->", "getName", "(", ")", ")", "Vals", ".", "push_back", "(", "(", "unsigned", "char", ")", "Chr", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "MODULE_CODE_COMDAT", ",", "Vals", ",", "", ")", ";", "Vals", ".", "clear"], "ground_truth": ["(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeComdats", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50212, "Length": 59, "Cover_Rate": 0.5175438596491229} {"Template_token": ["", "void", "writeDIArgList", "(", "const", "DIArgList", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{", "llvm_unreachable", "(", ""], "ground_truth": [")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDIArgList", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50213, "Length": 24, "Cover_Rate": 0.96} {"Template_token": ["", "Record", ".", "push_back", "(", "N", "->", "getAlignInBits", "(", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getEncoding", "(", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_BASIC_TYPE", ",", "Record", ",", "Abbrev", ")", ";", "Record", ".", "clear", "(", ")"], "ground_truth": [";"], "File": "DXILBitcodeWriter", "Func": "writeDIBasicType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50214, "Length": 41, "Cover_Rate": 0.36607142857142855} {"Template_token": ["", "void", "writeDICommonBlock", "(", "const", "DICommonBlock", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ","], "ground_truth": ["unsigned", "Abbrev", ")", "{"], "File": "DXILBitcodeWriter", "Func": "writeDICommonBlock", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50215, "Length": 19, "Cover_Rate": 0.76} {"Template_token": ["", "void", "writeDICommonBlock", "(", "const", "DICommonBlock", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{", "llvm_unreachable", "("], "ground_truth": ["", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDICommonBlock", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50216, "Length": 24, "Cover_Rate": 0.96} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRetainedTypes", "(", ")", ".", "get", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getGlobalVariables", "(", ")", ".", "get", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getImportedEntities", "(", ")", ".", "get", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getDWOId"], "ground_truth": ["(", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDICompileUnit", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50217, "Length": 78, "Cover_Rate": 0.3023255813953488} {"Template_token": ["", "Record", ".", "push_back", "(", "N", "->", "getLine", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getScope", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getBaseType", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getSizeInBits", "(", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getAlignInBits", "(", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getOffsetInBits", "(", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getFlags", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getExtraData", "(", ")", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_DERIVED_TYPE", ",", "Record", ",", "Abbrev", ")", ";", "Record", ".", "clear", "(", ")"], "ground_truth": [";"], "File": "DXILBitcodeWriter", "Func": "writeDIDerivedType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50218, "Length": 122, "Cover_Rate": 0.6161616161616161} {"Template_token": ["", "Record", ".", "reserve", "(", "N", "->", "getElements", "(", ")", ".", "size", "(", ")", "+", "", ")", ";", "Record", ".", "push_back", "(", "N"], "ground_truth": ["->", "isDistinct", "(", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDIExpression", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50219, "Length": 28, "Cover_Rate": 0.32558139534883723} {"Template_token": ["", "Record", ".", "reserve", "(", "N", "->", "getElements", "(", ")", ".", "size", "(", ")", "+", "", ")", ";", "Record", ".", "push_back", "(", "N", "->", "isDistinct", "(", ")", ")", ";", "Record", ".", "append", "(", "N", "->", "elements_begin", "(", ")", ",", "N", "->", "elements_end", "(", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_EXPRESSION", ",", "Record", ",", "Abbrev", ")", ";", "Record", ".", "clear", "("], "ground_truth": [")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDIExpression", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50220, "Length": 64, "Cover_Rate": 0.7441860465116279} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawDirectory", "(", ")", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_FILE", ",", "Record", ",", "Abbrev"], "ground_truth": [")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDIFile", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50221, "Length": 29, "Cover_Rate": 0.34523809523809523} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawDirectory", "(", ")", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_FILE", ","], "ground_truth": ["Record", ",", "Abbrev", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDIFile", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50222, "Length": 29, "Cover_Rate": 0.34523809523809523} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeDIGlobalVariable", "(", "const", "DIGlobalVariable", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{", "Record", ".", "push_back", "(", "N", "->", "isDistinct", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getScope", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawName", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawLinkageName", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getFile", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getLine", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->"], "ground_truth": ["getType", "(", ")", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDIGlobalVariable", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50223, "Length": 123, "Cover_Rate": 0.6542553191489362} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawName", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawLinkageName", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getFile", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getLine", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getType", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "isLocalToUnit", "(", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "isDefinition", "(", ")", ")", ";", "Record", ".", "push_back", "(", "", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getStaticDataMemberDeclaration", "(", ")", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_GLOBAL_VAR", ",", "Record", ",", "Abbrev", ")", ";", "Record", ".", "clear"], "ground_truth": ["(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDIGlobalVariable", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50224, "Length": 139, "Cover_Rate": 0.7393617021276596} {"Template_token": ["", "void", "writeDIGlobalVariableExpression", "(", "const", "DIGlobalVariableExpression", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned"], "ground_truth": ["Abbrev", ")", "{"], "File": "DXILBitcodeWriter", "Func": "writeDIGlobalVariableExpression", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50225, "Length": 19, "Cover_Rate": 0.76} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getEntity", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getLine", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawName", "(", ")", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_IMPORTED_ENTITY", ",", "Record"], "ground_truth": [",", "Abbrev", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDIImportedEntity", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50226, "Length": 56, "Cover_Rate": 0.45901639344262296} {"Template_token": ["", "void", "writeDILabel", "(", "const", "DILabel", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{", "llvm_unreachable", "("], "ground_truth": ["", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDILabel", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50227, "Length": 24, "Cover_Rate": 0.96} {"Template_token": ["", "Record", ".", "push_back", "(", "N", "->", "isDistinct", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getScope", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getFile", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getLine", "(", ")"], "ground_truth": [")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDILexicalBlock", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50228, "Length": 54, "Cover_Rate": 0.5094339622641509} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeDILexicalBlockFile", "(", "const", "DILexicalBlockFile", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{", "Record", ".", "push_back", "(", "N", "->"], "ground_truth": ["isDistinct", "(", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDILexicalBlockFile", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50229, "Length": 32, "Cover_Rate": 0.3368421052631579} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeDILexicalBlockFile", "(", "const", "DILexicalBlockFile", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{", "Record", ".", "push_back", "(", "N", "->", "isDistinct", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getScope", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "("], "ground_truth": ["N", "->", "getFile", "(", ")", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDILexicalBlockFile", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50230, "Length": 64, "Cover_Rate": 0.6736842105263158} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getFile", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getLine", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getType", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getArg", "(", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getFlags", "(", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_LOCAL_VAR", ",", "Record", ",", "Abbrev", ")", ";", "Record", ".", "clear"], "ground_truth": ["(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDILocalVariable", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50231, "Length": 84, "Cover_Rate": 0.525} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getMetadataID", "(", "N", "->", "getScope", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getInlinedAt", "(", ")", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_LOCATION", ",", "Record", ",", "Abbrev", ")", ";", "Record", ".", "clear", "("], "ground_truth": [")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDILocation", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50232, "Length": 51, "Cover_Rate": 0.4322033898305085} {"Template_token": ["", "void", "writeDIMacroFile", "(", "const", "DIMacroFile", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t"], "ground_truth": [">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{"], "File": "DXILBitcodeWriter", "Func": "writeDIMacroFile", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50233, "Length": 19, "Cover_Rate": 0.76} {"Template_token": ["", "for", "(", "auto", "&", "I", ":", "N", "->", "operands", "(", ")", ")", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "I", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_MODULE", ",", "Record", ",", "Abbrev"], "ground_truth": [")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDIModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50234, "Length": 37, "Cover_Rate": 0.4868421052631579} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getScope", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getFile", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawName", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_NAMESPACE", ",", "Record", ",", "Abbrev", ")", ";", "Record", ".", "clear"], "ground_truth": ["(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDINamespace", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50235, "Length": 74, "Cover_Rate": 0.6915887850467289} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeDIObjCProperty", "(", "const", "DIObjCProperty", "*", "N", ",", "SmallVectorImpl"], "ground_truth": ["<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{"], "File": "DXILBitcodeWriter", "Func": "writeDIObjCProperty", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50236, "Length": 21, "Cover_Rate": 0.7777777777777778} {"Template_token": ["", "Record", ".", "push_back", "(", "N", "->", "getScopeLine", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getContainingType", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getVirtuality", "(", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getVirtualIndex", "(", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getFlags", "(", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "isOptimized", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawUnit", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getTemplateParams", "(", ")", ".", "get", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N"], "ground_truth": ["->", "getDeclaration", "(", ")", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDISubprogram", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50237, "Length": 123, "Cover_Rate": 0.39935064935064934} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeDISubrange", "(", "const", "DISubrange", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{", "Record", ".", "push_back", "(", "N", "->"], "ground_truth": ["isDistinct", "(", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDISubrange", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50238, "Length": 32, "Cover_Rate": 0.34408602150537637} {"Template_token": ["", "Record", ".", "push_back", "(", "rotateSign", "(", "N", "->", "getLowerBound", "(", ")", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_SUBRANGE", ",", "Record", ",", "Abbrev", ")", ";", "Record", ".", "clear", "(", ")"], "ground_truth": [";"], "File": "DXILBitcodeWriter", "Func": "writeDISubrange", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50239, "Length": 33, "Cover_Rate": 0.3548387096774194} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeDISubroutineType", "(", "const", "DISubroutineType", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{", "Record", ".", "push_back", "(", "N", "->"], "ground_truth": ["isDistinct", "(", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDISubroutineType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50240, "Length": 32, "Cover_Rate": 0.3855421686746988} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeDITemplateTypeParameter", "(", "const", "DITemplateTypeParameter", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{", "Record", ".", "push_back", "(", "N", "->", "isDistinct", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "("], "ground_truth": ["N", "->", "getRawName", "(", ")", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDITemplateTypeParameter", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50241, "Length": 48, "Cover_Rate": 0.5714285714285714} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeDITemplateTypeParameter", "(", "const", "DITemplateTypeParameter", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{", "Record", ".", "push_back", "(", "N", "->", "isDistinct", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawName", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getType", "(", ")", ")"], "ground_truth": [")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDITemplateTypeParameter", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50242, "Length": 64, "Cover_Rate": 0.7619047619047619} {"Template_token": ["", "writeFunctionMetadata", "(", "F", ")", ";", "unsigned", "InstID", "=", "CstEnd", ";", "bool", "NeedsMetadataAttachment", "=", "F", ".", "hasMetadata", "(", ")", ";", "DILocation", "*", "LastDL", "=", "nullptr", ";", "for", "(", "Function", "::", "const_iterator", "BB", "=", "F", ".", "begin", "(", ")", ",", "E", "=", "F", ".", "end", "(", ")", ";", "BB", "!=", "E", ";", "++", "BB", ")", "for", "(", "BasicBlock", "::", "const_iterator", "I", "=", "BB", "->", "begin", "(", ")", ",", "E", "=", "BB", "->", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "writeInstruction", "(", "*", "I", ",", "InstID", ",", "Vals", ")", ";", "if", "(", "!", "I", "->", "getType", "(", ")", "->", "isVoidTy", "(", ")", ")", "++", "InstID", ";", "NeedsMetadataAttachment", "|=", "I", "->", "hasMetadataOtherThanDebugLoc", "(", ")", ";", "DILocation", "*", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "!", "DL", ")", "continue", ";", "if", "(", "DL", "==", "LastDL", ")", "{", "Stream", ".", "EmitRecord", "(", "bitc", "::", "FUNC_CODE_DEBUG_LOC_AGAIN", ",", "Vals", ")", ";", "continue", ";", "}", "Vals", ".", "push_back", "(", "DL", "->", "getLine", "(", ")", ")", ";", "Vals", ".", "push_back", "(", "DL", "->", "getColumn", "(", ")", ")", ";", "Vals", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "DL", "->", "getScope", "(", ")", ")", ")", ";", "Vals", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "DL", "->", "getInlinedAt", "(", ")", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "FUNC_CODE_DEBUG_LOC", ",", "Vals", ")", ";", "Vals", ".", "clear", "(", ")", ";", "LastDL", "=", "DL", ";", "}", "if", "(", "auto", "*", "Symtab", "=", "F", ".", "getValueSymbolTable", "(", ")", ")", "writeFunctionLevelValueSymbolTable", "(", "*", "Symtab", ")", ";", "if", "(", "NeedsMetadataAttachment", ")", "writeFunctionMetadataAttachment", "(", "F", ")", ";", "if", "(", "VE", ".", "shouldPreserveUseListOrder", "(", ")", ")", "writeUseListBlock", "(", "&", "F", ")", ";", "VE", ".", "purgeFunction", "("], "ground_truth": [")", ";"], "File": "DXILBitcodeWriter", "Func": "writeFunction", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50243, "Length": 277, "Cover_Rate": 0.7367021276595744} {"Template_token": ["", "if", "(", "isChar6", ")", "isChar6", "=", "BitCodeAbbrevOp", "::", "isChar6", "(", "*", "C", ")", ";", "if", "(", "(", "unsigned", "char", ")", "*", "C", "&", "", ")", "{", "is7Bit", "=", "false", ";", "break", ";", "}", "}", "unsigned", "AbbrevToUse", "=", "VST_ENTRY_8_ABBREV", ";", "unsigned", "Code", ";", "if", "(", "isa", "<", "BasicBlock", ">", "(", "SI", "->", "getValue", "(", ")", ")", ")", "{", "Code", "=", "bitc", "::", "VST_CODE_BBENTRY", ";", "if", "(", "isChar6", ")", "AbbrevToUse", "=", "VST_BBENTRY_6_ABBREV", ";", "}", "else", "{", "Code", "=", "bitc", "::", "VST_CODE_ENTRY", ";", "if", "(", "isChar6", ")", "AbbrevToUse", "=", "VST_ENTRY_6_ABBREV", ";", "else", "if", "(", "is7Bit", ")", "AbbrevToUse", "=", "VST_ENTRY_7_ABBREV", ";", "}", "NameVals", ".", "push_back", "(", "VE", ".", "getValueID", "(", "SI", "->", "getValue", "(", ")", ")", ")", ";", "for", "(", "const", "char", "*", "P", "=", "Name", ".", "getKeyData", "(", ")", ",", "*"], "ground_truth": ["E", "=", "Name", ".", "getKeyData", "(", ")", "+", "Name", ".", "getKeyLength", "(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeFunctionLevelValueSymbolTable", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50244, "Length": 142, "Cover_Rate": 0.3901098901098901} {"Template_token": ["", "writeMetadataStrings", "(", "VE", ".", "getMDStrings", "(", ")", ",", "Record", ")", ";", "writeMetadataRecords", "(", "VE", ".", "getNonMDStrings", "(", ")", ",", "Record"], "ground_truth": [")", ";"], "File": "DXILBitcodeWriter", "Func": "writeFunctionMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50245, "Length": 22, "Cover_Rate": 0.3142857142857143} {"Template_token": ["", "void", "writeGenericDINode", "(", "const", "GenericDINode", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "&"], "ground_truth": ["Abbrev", ")", "{"], "File": "DXILBitcodeWriter", "Func": "writeGenericDINode", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50246, "Length": 20, "Cover_Rate": 0.7692307692307693} {"Template_token": ["", "void", "writeGenericDINode", "(", "const", "GenericDINode", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "&", "Abbrev", ")", "{", "llvm_unreachable", "(", ""], "ground_truth": [")", ";"], "File": "DXILBitcodeWriter", "Func": "writeGenericDINode", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50247, "Length": 25, "Cover_Rate": 0.9615384615384616} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeMDTuple", "(", "const", "MDTuple", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "N", "->", "getNumOperands", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "Metadata", "*", "MD", "=", "N", "->", "getOperand", "(", "i", ")", ";", "assert", "(", "!", "(", "MD", "&&", "isa", "<", "LocalAsMetadata", ">", "(", "MD", ")", ")", "&&", "", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "MD", ")", ")", ";", "}", "Stream", ".", "EmitRecord", "(", "N", "->", "isDistinct", "(", ")", "?", "bitc", "::", "METADATA_DISTINCT_NODE", ":", "bitc", "::", "METADATA_NODE", ",", "Record", ",", "Abbrev", ")", ";", "Record", ".", "clear", "("], "ground_truth": [")", ";"], "File": "DXILBitcodeWriter", "Func": "writeMDTuple", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50248, "Length": 115, "Cover_Rate": 0.9913793103448276} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeMDTuple", "(", "const", "MDTuple", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "N", "->", "getNumOperands", "(", ")", ";", "i", "!="], "ground_truth": ["e", ";", "++", "i", ")", "{"], "File": "DXILBitcodeWriter", "Func": "writeMDTuple", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50249, "Length": 44, "Cover_Rate": 0.3793103448275862} {"Template_token": ["", "BitcodeWriter", "ModuleWriter", "(", "M", ",", "Buffer", ",", "StrtabBuilder", ",", "*", "Stream", ")", ";", "ModuleWriter", ".", "write"], "ground_truth": ["(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50250, "Length": 19, "Cover_Rate": 0.3114754098360656} {"Template_token": ["", "std", "::", "vector", "<", "uint64_t", ">", "IndexPos", ";", "IndexPos", ".", "reserve", "(", "VE", ".", "getNonMDStrings", "(", ")", ".", "size", "(", ")", ")", ";", "writeMetadataRecords", "(", "VE", ".", "getNonMDStrings", "(", ")", ",", "Record", ",", "&", "MDAbbrevs", ",", "&", "IndexPos", ")", ";", "for", "(", "const", "NamedMDNode", "&", "NMD", ":", "M", ".", "named_metadata", "(", ")", ")", "{", "StringRef", "Str", "=", "NMD", ".", "getName", "(", ")", ";", "Record", ".", "append", "(", "Str", ".", "bytes_begin", "(", ")", ",", "Str", ".", "bytes_end", "(", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_NAME", ",", "Record", ",", "NameAbbrev", ")", ";", "Record", ".", "clear", "("], "ground_truth": [")", ";"], "File": "DXILBitcodeWriter", "Func": "writeModuleMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50251, "Length": 99, "Cover_Rate": 0.3009118541033435} {"Template_token": ["", "SmallVector", "<", "uint64_t", ",", "", ">", "Record", ";", "SmallVector", "<", "StringRef", ",", "", ">", "Names", ";", "M", ".", "getMDKindNames", "(", "Names", ")", ";", "if", "(", "Names", ".", "empty", "(", ")", ")", "return", ";", "Stream", ".", "EnterSubblock", "(", "bitc", "::", "METADATA_BLOCK_ID", ",", "", ")", ";", "for", "(", "unsigned", "MDKindID", "=", "", ",", "e", "=", "Names", ".", "size", "(", ")", ";", "MDKindID", "!=", "e", ";", "++", "MDKindID", ")", "{", "Record", ".", "push_back", "(", "MDKindID", ")", ";", "StringRef", "KName", "=", "Names", "[", "MDKindID", "]", ";", "Record", ".", "append", "(", "KName", ".", "begin", "(", ")"], "ground_truth": [",", "KName", ".", "end", "(", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeModuleMetadataKinds", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50252, "Length": 99, "Cover_Rate": 0.7443609022556391} {"Template_token": ["", "Stream", ".", "EmitRecord", "(", "bitc", "::", "MODULE_CODE_VERSION", ",", "ArrayRef", "<", "unsigned"], "ground_truth": [">", "{", "", "}", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeModuleVersion", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50253, "Length": 17, "Cover_Rate": 0.68} {"Template_token": ["", "writeBlob", "(", "bitc", "::", "STRTAB_BLOCK_ID", ",", "bitc", "::", "STRTAB_BLOB", ",", "{", "Strtab", ".", "data", "(", ")", ",", "Strtab", ".", "size", "(", ")"], "ground_truth": ["}", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeStrtab", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50254, "Length": 25, "Cover_Rate": 0.30120481927710846} {"Template_token": ["", "assert", "(", "!", "WroteStrtab", ")", ";", "std", "::", "vector", "<", "char", ">", "Strtab", ";", "StrtabBuilder", ".", "finalizeInOrder", "(", ")", ";", "Strtab", ".", "resize", "(", "StrtabBuilder", ".", "getSize"], "ground_truth": ["(", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeStrtab", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50255, "Length": 31, "Cover_Rate": 0.37349397590361444} {"Template_token": ["", "assert", "(", "Order", ".", "Shuffle", ".", "size", "(", ")", ">=", "", "&&", "", ")", ";", "unsigned", "Code", ";", "if", "(", "isa", "<", "BasicBlock", ">", "(", "Order", ".", "V", ")", ")", "Code", "=", "bitc", "::", "USELIST_CODE_BB", ";", "else", "Code", "=", "bitc", "::", "USELIST_CODE_DEFAULT", ";", "SmallVector", "<", "uint64_t", ",", "", ">", "Record", "(", "Order", ".", "Shuffle", ".", "begin", "(", ")", ",", "Order", ".", "Shuffle", ".", "end", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getValueID", "(", "Order", ".", "V", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "Code", ",", "Record"], "ground_truth": [")", ";"], "File": "DXILBitcodeWriter", "Func": "writeUseList", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50256, "Length": 91, "Cover_Rate": 0.8921568627450981} {"Template_token": ["", "if", "(", "isa", "<", "BasicBlock", ">", "(", "Order", ".", "V", ")", ")", "Code", "=", "bitc", "::", "USELIST_CODE_BB", ";", "else", "Code", "=", "bitc", "::", "USELIST_CODE_DEFAULT", ";", "SmallVector", "<", "uint64_t", ",", "", ">", "Record", "(", "Order", ".", "Shuffle", ".", "begin", "(", ")", ",", "Order", ".", "Shuffle", ".", "end", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getValueID"], "ground_truth": ["(", "Order", ".", "V", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeUseList", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50257, "Length": 64, "Cover_Rate": 0.6274509803921569} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeUseListBlock", "(", "const", "Function", "*", "F", ")", "{", "assert", "(", "VE", ".", "shouldPreserveUseListOrder", "(", ")", "&&", "", ")", ";", "auto", "hasMore", "=", "[", "&", "]", "(", ")", "{", "return", "!", "VE", ".", "UseListOrders", ".", "empty", "(", ")", "&&", "VE", ".", "UseListOrders", ".", "back", "(", ")", ".", "F", "==", "F", ";", "}", ";", "if", "(", "!", "hasMore", "(", ")", ")", "return", ";", "Stream", ".", "EnterSubblock", "(", "bitc", "::", "USELIST_BLOCK_ID", ",", "", ")", ";", "while", "(", "hasMore", "(", ")", ")", "{", "writeUseList", "(", "std", "::", "move", "(", "VE", ".", "UseListOrders", ".", "back", "(", ")", ")", ")", ";", "VE", ".", "UseListOrders", ".", "pop_back", "(", ")", ";", "}", "Stream", ".", "ExitBlock", "("], "ground_truth": [")", ";"], "File": "DXILBitcodeWriter", "Func": "writeUseListBlock", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50258, "Length": 113, "Cover_Rate": 0.9912280701754386} {"Template_token": ["", "static", "std", "::", "string", "constructOverloadName", "(", "OverloadKind", "Kind", ",", "Type", "*", "Ty", ",", "const", "OpCodeProperty", "&", "Prop", ")", "{", "if", "(", "Kind", "==", "OverloadKind", "::", "VOID", ")", "{", "return", "(", "Twine", "(", "OpNamePrefix", ")", "+", "getOpCodeClassName", "(", "Prop", ")", ")"], "ground_truth": [".", "str", "(", ")", ";"], "File": "DXILOpLowering", "Func": "constructOverloadName", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50259, "Length": 45, "Cover_Rate": 0.6164383561643836} {"Template_token": ["", "const", "OpCodeProperty", "*", "Prop", "=", "getOpCodeProperty", "(", "Op", ")", ";", "Type", "*", "OverloadTy", "=", "F", ".", "getReturnType", "(", ")", ";", "OverloadKind", "Kind", "=", "getOverloadKind", "(", "OverloadTy", ")", ";", "if", "(", "(", "Prop", "->", "OverloadTys", "&", "(", "uint16_t", ")", "Kind", ")", "==", "", ")", "{", "llvm_unreachable", "(", "", ")", ";", "}", "std", "::", "string", "FnName", "=", "constructOverloadName", "(", "Kind", ",", "OverloadTy", ",", "*", "Prop", ")", ";", "assert", "(", "!", "M", ".", "getFunction", "(", "FnName", ")"], "ground_truth": ["&&", "", ")", ";"], "File": "DXILOpLowering", "Func": "createDXILOpFunction", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50260, "Length": 78, "Cover_Rate": 0.42391304347826086} {"Template_token": ["", "if", "(", "(", "Prop", "->", "OverloadTys", "&", "(", "uint16_t", ")", "Kind", ")", "==", "", ")", "{", "llvm_unreachable", "(", "", ")", ";", "}", "std", "::", "string", "FnName", "=", "constructOverloadName", "(", "Kind", ",", "OverloadTy", ",", "*", "Prop", ")", ";", "assert", "(", "!", "M", ".", "getFunction", "(", "FnName", ")", "&&", "", ")", ";", "auto", "&", "Ctx", "=", "M", ".", "getContext", "(", ")", ";", "Type", "*", "OpCodeTy", "=", "Type", "::", "getInt32Ty", "(", "Ctx", ")", ";", "SmallVector", "<", "Type", "*"], "ground_truth": [">", "ArgTypes", ";"], "File": "DXILOpLowering", "Func": "createDXILOpFunction", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50261, "Length": 78, "Cover_Rate": 0.42391304347826086} {"Template_token": ["", "return", "new", "OpLoweringLegacy", "("], "ground_truth": [")", ";"], "File": "DXILOpLowering", "Func": "createDXILOpLoweringLegacyPass", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50262, "Length": 6, "Cover_Rate": 0.4} {"Template_token": ["", "ModulePass", "*", "llvm", "::"], "ground_truth": ["createOpLoweringLegacyPass", "(", ")", "{"], "File": "DXILOpLowering", "Func": "createDXILOpLoweringLegacyPass", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50263, "Length": 8, "Cover_Rate": 0.5333333333333333} {"Template_token": ["", "assert", "(", "Index", "<", "(", "sizeof", "(", "OpCodeClassNames", ")", "/", "sizeof", "(", "OpCodeClassNames", "["], "ground_truth": ["", "]", ")", ")", "&&", "", ")", ";"], "File": "DXILOpLowering", "Func": "getOpCodeClassName", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50264, "Length": 22, "Cover_Rate": 0.3283582089552239} {"Template_token": ["", "return", "OverloadKind", "::", "FLOAT", ";", "case", "Type", "::", "DoubleTyID", ":", "return", "OverloadKind", "::", "DOUBLE", ";", "case", "Type", "::", "IntegerTyID", ":", "{", "IntegerType", "*", "ITy", "=", "cast", "<", "IntegerType", ">", "(", "Ty", ")", ";", "unsigned", "Bits", "=", "ITy", "->", "getBitWidth", "(", ")", ";", "switch", "(", "Bits", ")", "{", "case", "", ":", "return", "OverloadKind", "::", "I1", ";", "case", "", ":", "return", "OverloadKind", "::", "I8", ";", "case", "", ":", "return", "OverloadKind", "::", "I16", ";", "case", "", ":", "return", "OverloadKind", "::", "I32", ";", "case", "", ":", "return", "OverloadKind", "::", "I64", ";", "default", ":", "llvm_unreachable", "(", "", ")", ";", "return", "OverloadKind", "::", "VOID", ";", "}", "}", "case", "Type", "::", "PointerTyID", ":", "return", "OverloadKind", "::"], "ground_truth": ["UserDefineType", ";"], "File": "DXILOpLowering", "Func": "getOverloadKind", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50265, "Length": 111, "Cover_Rate": 0.6} {"Template_token": ["", "switch", "(", "T", ")", "{", "case", "Type", "::", "VoidTyID", ":", "return", "OverloadKind", "::", "VOID", ";", "case", "Type", "::", "HalfTyID", ":", "return", "OverloadKind", "::", "HALF", ";", "case", "Type", "::", "FloatTyID", ":", "return", "OverloadKind", "::", "FLOAT", ";", "case", "Type", "::", "DoubleTyID", ":", "return", "OverloadKind", "::", "DOUBLE", ";", "case", "Type", "::", "IntegerTyID", ":", "{", "IntegerType", "*", "ITy", "=", "cast", "<", "IntegerType", ">", "(", "Ty", ")", ";", "unsigned", "Bits", "=", "ITy", "->", "getBitWidth", "(", ")", ";", "switch", "(", "Bits", ")", "{", "case", "", ":", "return", "OverloadKind", "::", "I1", ";", "case", "", ":", "return", "OverloadKind", "::"], "ground_truth": ["I8", ";"], "File": "DXILOpLowering", "Func": "getOverloadKind", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50266, "Length": 93, "Cover_Rate": 0.5027027027027027} {"Template_token": ["", "static", "const", "char", "*", "getOverloadTypeName", "(", "OverloadKind", "Kind", ")", "{", "switch", "(", "Kind", ")", "{", "case", "OverloadKind", "::", "HALF", ":", "return", "", ";", "case", "OverloadKind", "::", "FLOAT", ":", "return"], "ground_truth": ["", ";"], "File": "DXILOpLowering", "Func": "getOverloadTypeName", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50267, "Length": 31, "Cover_Rate": 0.30097087378640774} {"Template_token": ["", "auto", "OpFn", "=", "createOpFunction", "(", "Op", ",", "F", ",", "M", ")", ";", "IRBuilder", "<", ">", "B", "(", "M", ".", "getContext", "(", ")", ")", ";", "Value", "*", "OpArg", "=", "B", ".", "getInt32", "(", "static_cast", "<", "unsigned", ">", "(", "Op", ")", ")", ";", "for", "(", "User", "*", "U", ":", "make_early_inc_range", "(", "F", ".", "users", "(", ")", ")", ")", "{", "CallInst", "*", "CI", "=", "dyn_cast", "<", "CallInst", ">", "(", "U", ")", ";", "if", "(", "!", "CI", ")", "continue", ";", "SmallVector", "<", "Value", "*", ">", "Args", ";", "Args", ".", "emplace_back", "(", "OpArg", ")", ";", "Args", ".", "append", "(", "CI", "->", "arg_begin", "(", ")", ",", "CI", "->", "arg_end", "(", ")", ")", ";", "B", ".", "SetInsertPoint", "(", "CI", ")", ";", "CallInst", "*", "CI", "=", "B", ".", "CreateCall", "(", "OpFn", ",", "Args", ")", ";", "CI", "->", "replaceAllUsesWith", "(", "CI", ")", ";", "CI", "->", "eraseFromParent", "("], "ground_truth": [")", ";"], "File": "DXILOpLowering", "Func": "lowerIntrinsic", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50268, "Length": 140, "Cover_Rate": 0.8045977011494253} {"Template_token": ["", "static", "void", "lowerIntrinsic", "(", "", "Op", ",", "Function", "&", "F", ",", "Module", "&", "M", ")", "{", "auto", "OpFn", "=", "createOpFunction", "(", "Op", ",", "F", ",", "M", ")", ";", "IRBuilder", "<", ">", "B", "(", "M", ".", "getContext", "(", ")", ")", ";", "Value", "*", "OpArg", "=", "B", ".", "getInt32", "(", "static_cast", "<", "unsigned", ">", "(", "Op", ")", ")", ";", "for", "(", "User", "*", "U", ":", "make_early_inc_range", "("], "ground_truth": ["F", ".", "users", "(", ")", ")", ")", "{"], "File": "DXILOpLowering", "Func": "lowerIntrinsic", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50269, "Length": 73, "Cover_Rate": 0.41954022988505746} {"Template_token": ["", "static", "SmallDenseMap", "<", "", ",", "", ">", "LowerMap", "=", "{", "{", "", ",", "", "::", "Sin", "}", "}", ";", "for", "(", "Function", "&", "F", ":", "make_early_inc_range", "(", "M", ".", "functions", "(", ")", ")", ")", "{", "if", "(", "!", "F", ".", "isDeclaration", "(", ")", ")", "continue", ";", "", "ID", "=", "F", ".", "getIntrinsicID", "(", ")", ";", "auto", "LowerIt", "=", "LowerMap", ".", "find", "(", "ID", ")", ";", "if", "(", "LowerIt", "==", "LowerMap", ".", "end", "(", ")", ")", "continue", ";", "lowerIntrinsic", "(", "LowerIt", "->", "second", ",", "F", ",", "M", ")", ";", "Updated", "=", "true"], "ground_truth": [";"], "File": "DXILOpLowering", "Func": "lowerIntrinsics", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50270, "Length": 92, "Cover_Rate": 0.7603305785123967} {"Template_token": ["", "bool", "runOnModule", "(", "Module", "&", "M", ")", "override", "{", "return", "lowerIntrinsics", "(", "M", ")"], "ground_truth": [";"], "File": "DXILOpLowering", "Func": "runOnModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50271, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "bool", "runOnModule", "(", "Module"], "ground_truth": ["&", "M", ")", "override", "{"], "File": "DXILOpLowering", "Func": "runOnModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50272, "Length": 9, "Cover_Rate": 0.5625} {"Template_token": ["", "return", "T", "->", "getTypeID", "(", ")", "=="], "ground_truth": ["PointerTyID", ";"], "File": "DXILPointerType", "Func": "classof", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50273, "Length": 9, "Cover_Rate": 0.45} {"Template_token": ["", "return", "T", "->", "getTypeID", "("], "ground_truth": [")", "==", "PointerTyID", ";"], "File": "DXILPointerType", "Func": "classof", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50274, "Length": 9, "Cover_Rate": 0.45} {"Template_token": ["", "TypedPointerType", "*", "TypedPointerType", "::", "get", "(", "Type", "*", "EltTy", ",", "unsigned", "AddressSpace", ")", "{", "assert", "(", "EltTy", "&&", "", ")", ";", "assert", "(", "isValidElementType", "(", "EltTy", ")", "&&", "", ")", ";", "llvm", "::", "Any", "&", "TargetData", "=", "EltTy", "->", "getContext", "(", ")", ".", "getTargetData", "(", ")", ";", "if", "(", "!", "TargetData", ".", "hasValue", "(", ")", ")", "TargetData", "=", "Any", "{", "std", "::", "make_shared", "<"], "ground_truth": ["TypedPointerTracking", ">", "(", ")", "}", ";"], "File": "DXILPointerType", "Func": "get", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50275, "Length": 70, "Cover_Rate": 0.4069767441860465} {"Template_token": ["", "unsigned", "getAddressSpace", "(", ")", "const", "{", "return", "getSubclassData", "("], "ground_truth": [")", ";"], "File": "DXILPointerType", "Func": "getAddressSpace", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50276, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "return", "!", "ElemTy", "->", "isVoidTy", "(", ")", "&&", "!", "ElemTy", "->", "isLabelTy", "(", ")", "&&", "!", "ElemTy", "->", "isMetadataTy"], "ground_truth": ["(", ")", "&&", "!", "ElemTy", "->", "isTokenTy", "(", ")", "&&", "!", "ElemTy", "->", "isX86_AMXTy", "(", ")", ";"], "File": "DXILPointerType", "Func": "isValidElementType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50277, "Length": 36, "Cover_Rate": 0.7659574468085106} {"Template_token": ["", "static", "Value", "*", "maybeGenerateBitcast", "(", "IRBuilder", "<", ">", "&", "Builder", ",", "PointerTypeMap", "&", "PointerTypes", ",", "Instruction", "&", "Inst", ",", "Value", "*", "Operand", ",", "Type", "*", "Ty", ")", "{", "auto", "It", "=", "PointerTypes", ".", "find", "(", "Operand", ")", ";", "if", "(", "It", "!=", "PointerTypes", ".", "end", "(", ")", ")", "if", "(", "cast", "<", "TypedPointerType", ">", "(", "It", "->", "second", ")", "->", "getElementType", "(", ")", "==", "Ty", ")", "return", "nullptr", ";", "Builder", ".", "SetInsertPoint", "(", "&", "Inst", ")", ";", "return", "Builder", ".", "Insert", "(", "CastInst", "::", "Create", "(", "Instruction", "::", "BitCast", ",", "Operand", ",", "Builder"], "ground_truth": [".", "getInt8PtrTy", "(", ")", ")", ")", ";"], "File": "DXILPrepare1", "Func": "maybeGenerateBitcast", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50278, "Length": 100, "Cover_Rate": 0.9900990099009901} {"Template_token": ["", "auto", "It", "=", "PointerTypes", ".", "find", "(", "Operand", ")", ";", "if", "(", "It", "!=", "PointerTypes", ".", "end", "(", ")", ")", "if", "(", "cast", "<", "TypedPointerType", ">", "(", "It", "->", "second", ")", "->", "getElementType", "(", ")", "==", "Ty", ")", "return", "nullptr", ";", "Builder", ".", "SetInsertPoint", "("], "ground_truth": ["&", "Inst", ")", ";"], "File": "DXILPrepare1", "Func": "maybeGenerateBitcast", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50279, "Length": 49, "Cover_Rate": 0.48514851485148514} {"Template_token": ["", "return", "new", "PrepareModule"], "ground_truth": ["(", ")", ";"], "File": "DXILPrepare", "Func": "createDXILPrepareModulePass", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50280, "Length": 6, "Cover_Rate": 0.4} {"Template_token": ["", "ModulePass", "*", "llvm", "::", "createPrepareModulePass", "("], "ground_truth": [")", "{"], "File": "DXILPrepare", "Func": "createDXILPrepareModulePass", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50281, "Length": 8, "Cover_Rate": 0.5333333333333333} {"Template_token": ["", "return", "is_contained", "(", "{", "Attribute", "::", "Alignment", ",", "Attribute", "::", "AlwaysInline", ",", "Attribute", "::", "Builtin", ",", "Attribute", "::", "ByVal", ",", "Attribute", "::", "InAlloca", ",", "Attribute", "::", "Cold", ",", "Attribute", "::", "Convergent", ",", "Attribute", "::", "InlineHint", ",", "Attribute", "::", "InReg", ",", "Attribute", "::", "JumpTable", ",", "Attribute", "::", "MinSize", ",", "Attribute", "::", "Naked", ",", "Attribute", "::", "Nest", ",", "Attribute", "::", "NoAlias", ",", "Attribute", "::", "NoBuiltin", ",", "Attribute", "::", "NoCapture", ",", "Attribute", "::", "NoDuplicate", ",", "Attribute", "::", "NoImplicitFloat", ",", "Attribute", "::", "NoInline", ",", "Attribute", "::", "NonLazyBind", ",", "Attribute", "::", "NonNull", ",", "Attribute", "::", "Dereferenceable", ",", "Attribute", "::", "DereferenceableOrNull", ",", "Attribute", "::", "NoRedZone", ",", "Attribute", "::", "NoReturn", ",", "Attribute", "::", "NoUnwind", ",", "Attribute", "::", "OptimizeForSize", ",", "Attribute", "::"], "ground_truth": ["OptimizeNone", ",", "Attribute", "::", "ReadNone", ",", "Attribute", "::", "ReadOnly", ",", "Attribute", "::", "ArgMemOnly", ",", "Attribute", "::", "Returned", ",", "Attribute", "::", "ReturnsTwice", ",", "Attribute", "::", "SExt", ",", "Attribute", "::", "StackAlignment", ",", "Attribute", "::", "StackProtect", ",", "Attribute", "::", "StackProtectReq", ",", "Attribute", "::", "StackProtectStrong", ",", "Attribute", "::", "SafeStack", ",", "Attribute", "::", "StructRet", ",", "Attribute", "::", "SanitizeAddress", ",", "Attribute", "::", "SanitizeThread", ",", "Attribute", "::", "SanitizeMemory", ",", "Attribute", "::", "UWTable", ",", "Attribute", "::", "ZExt", "}", ",", "Attr", ")", ";"], "File": "DXILPrepare", "Func": "isValidForDXIL", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50282, "Length": 188, "Cover_Rate": 0.9447236180904522} {"Template_token": ["", "I", "=", "Attribute", "::", "AttrKind", "(", "I", "+", "", ")", ")", "{", "if", "(", "!", "isValidFor", "(", "I", ")", ")", "AttrMask", ".", "addAttribute", "(", "I", ")", ";", "}", "for", "(", "auto", "&", "F", ":", "M", ".", "functions", "(", ")", ")", "{", "F", ".", "removeFnAttrs", "(", "AttrMask", ")", ";", "F", ".", "removeRetAttrs", "(", "AttrMask", ")", ";", "for", "(", "size_t", "Idx", "=", "", ";", "Idx", "<", "F", ".", "arg_size", "(", ")", ";", "++", "Idx", ")", "F", ".", "removeParamAttrs", "(", "Idx", ",", "AttrMask", ")", ";", "for", "(", "auto", "&", "BB", ":", "F", ")", "{", "IRBuilder", "<", ">", "Builder", "(", "&", "BB", ")", ";", "for", "(", "auto", "&", "I", ":", "make_early_inc_range", "(", "BB", ")", ")", "{", "if", "(", "I", ".", "getOpcode", "(", ")", "==", "Instruction", "::", "FNeg", ")", "{", "Builder", ".", "SetInsertPoint", "(", "&", "I"], "ground_truth": [")", ";"], "File": "DXILPrepare", "Func": "runOnModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50283, "Length": 133, "Cover_Rate": 0.6073059360730594} {"Template_token": ["", "cleanModuleFlags", "(", "M", ")"], "ground_truth": [";"], "File": "DXILTranslateMetadata", "Func": "cleanModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50284, "Length": 5, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "static", "uint32_t", "ConstMDToUint32", "(", "const", "MDOperand", "&", "MDO", ")", "{", "ConstantInt", "*", "pConst", "=", "mdconst", "::", "extract"], "ground_truth": ["<", "ConstantInt", ">", "(", "MDO", ")", ";"], "File": "DXILTranslateMetadata", "Func": "ConstMDToUint32", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50285, "Length": 24, "Cover_Rate": 0.6857142857142857} {"Template_token": ["", "ModulePass", "*", "llvm", "::", "createTranslateMetadataPass", "("], "ground_truth": [")", "{"], "File": "DXILTranslateMetadata", "Func": "createDXILTranslateMetadataPass", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50286, "Length": 8, "Cover_Rate": 0.5333333333333333} {"Template_token": ["", "return", "new", "TranslateMetadata"], "ground_truth": ["(", ")", ";"], "File": "DXILTranslateMetadata", "Func": "createDXILTranslateMetadataPass", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50287, "Length": 6, "Cover_Rate": 0.4} {"Template_token": ["", "static", "void", "emitValidatorVersion", "(", "Module", "&", "M", ",", "VersionTuple", "&", "ValidatorVer", ")", "{", "NamedMDNode", "*", "ValidatorVersionMD", "=", "M", ".", "getNamedMetadata", "(", "ValVerKey", ")", ";", "if", "(", "ValidatorVersionMD", ")", "M"], "ground_truth": [".", "eraseNamedMetadata", "(", "ValidatorVersionMD", ")", ";"], "File": "DXILTranslateMetadata", "Func": "emitDXILValidatorVersion", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50288, "Length": 35, "Cover_Rate": 0.30973451327433627} {"Template_token": ["", "StringRef", "getPassName", "(", ")", "const"], "ground_truth": ["override", "{"], "File": "DXILTranslateMetadata", "Func": "getPassName", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50289, "Length": 7, "Cover_Rate": 0.6363636363636364} {"Template_token": ["", "return", "ConstantAsMetadata", "::", "get", "(", "Constant", "::", "getIntegerValue", "(", "IntegerType", "::", "get", "(", "Ctx", ",", "", ")", ",", "APInt", "(", ""], "ground_truth": [",", "v", ")", ")", ")", ";"], "File": "DXILTranslateMetadata", "Func": "Uint32ToConstMD", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50290, "Length": 27, "Cover_Rate": 0.6585365853658537} {"Template_token": ["", "return", "Log2_32_Ceil", "(", "getTypes", "(", ")", ".", "size", "(", ")", "+", ""], "ground_truth": [")", ";"], "File": "DXILValueEnumerator", "Func": "computeBitsRequiredForTypeIndicies", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50291, "Length": 14, "Cover_Rate": 0.6086956521739131} {"Template_token": ["", "void", "ValueEnumerator", "::", "dropFunctionFromMetadata", "(", "MetadataMapType", "::", "value_type", "&", "FirstMD", ")", "{", "SmallVector", "<", "const", "MDNode", "*", ",", "", ">", "Worklist", ";", "auto", "push", "=", "[", "&", "Worklist", "]", "(", "MetadataMapType", "::", "value_type", "&", "MD", ")", "{", "auto", "&", "Entry", "=", "MD", ".", "second", ";", "if", "(", "!", "Entry", ".", "F", ")", "return", ";", "Entry", ".", "F"], "ground_truth": ["=", "", ";"], "File": "DXILValueEnumerator", "Func": "dropFunctionFromMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50292, "Length": 60, "Cover_Rate": 0.379746835443038} {"Template_token": ["", "print", "(", "dbgs", "(", ")", ",", "ValueMap", ",", "", ")", ";", "dbgs", "(", ")", "<<"], "ground_truth": ["'\\n'", ";"], "File": "DXILValueEnumerator", "Func": "dump", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50293, "Length": 17, "Cover_Rate": 0.38636363636363635} {"Template_token": ["", "print", "(", "dbgs", "(", ")", ",", "ValueMap", ",", "", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ";", "print", "(", "dbgs", "(", ")", ",", "MetadataMap", ",", "", ")", ";", "dbgs", "(", ")", "<<"], "ground_truth": ["'\\n'", ";"], "File": "DXILValueEnumerator", "Func": "dump", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50294, "Length": 34, "Cover_Rate": 0.7727272727272727} {"Template_token": ["", "void", "ValueEnumerator", "::", "EnumerateAttributes", "(", "AttributeList", "PAL", ")", "{", "if", "(", "PAL", ".", "isEmpty", "(", ")", ")", "return", ";", "unsigned", "&", "Entry", "=", "AttributeListMap", "[", "PAL", "]", ";", "if", "(", "Entry", "==", "", ")", "{", "AttributeLists", ".", "push_back", "(", "PAL", ")", ";", "Entry", "=", "AttributeLists", ".", "size", "(", ")", ";", "}", "for", "(", "unsigned", "i", ":", "PAL", ".", "indexes", "("], "ground_truth": [")", ")", "{"], "File": "DXILValueEnumerator", "Func": "EnumerateAttributes", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50295, "Length": 63, "Cover_Rate": 0.4117647058823529} {"Template_token": ["", "for", "(", "ValueAsMetadata", "*", "VAM", ":", "ArgList", "->", "getArgs", "(", ")", ")", "{", "if", "(", "isa", "<", "LocalAsMetadata", ">", "(", "VAM", ")", ")", "{", "assert", "(", "MetadataMap", ".", "count", "(", "VAM", ")", "&&", "", ")", ";", "assert", "(", "MetadataMap", "[", "VAM", "]", ".", "F", "==", "F", "&&", "", ")", ";", "}", "else", "{", "assert", "(", "isa", "<", "ConstantAsMetadata", ">", "(", "VAM", ")", "&&", "", ")", ";", "assert", "(", "ValueMap", ".", "count", "(", "VAM", "->", "getValue", "(", ")", ")", "&&", "", ")", ";", "EnumerateMetadata", "(", "F", ",", "VAM", ")", ";", "}", "}", "MDs", ".", "push_back", "(", "ArgList", ")", ";", "Index", ".", "F", "=", "F", ";", "Index", ".", "ID", "=", "MDs"], "ground_truth": [".", "size", "(", ")", ";"], "File": "DXILValueEnumerator", "Func": "EnumerateFunctionLocalListMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50296, "Length": 114, "Cover_Rate": 0.6867469879518072} {"Template_token": ["", "assert", "(", "Index", ".", "F", "==", "F", "&&", "", ")", ";", "return", ";", "}", "MDs", ".", "push_back", "(", "Local", ")", ";", "Index", ".", "F", "=", "F", ";", "Index", ".", "ID", "=", "MDs", "."], "ground_truth": ["size", "(", ")", ";"], "File": "DXILValueEnumerator", "Func": "EnumerateFunctionLocalMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50297, "Length": 37, "Cover_Rate": 0.44047619047619047} {"Template_token": ["", "assert", "(", "(", "isa", "<", "MDNode", ">", "(", "MD", ")", "||", "isa", "<", "MDString", ">", "(", "MD", ")", "||", "isa", "<", "ConstantAsMetadata", ">", "(", "MD", ")", ")", "&&", "", ")", ";", "auto", "Insertion", "=", "MetadataMap", ".", "insert", "(", "std", "::", "make_pair", "(", "MD", ",", "MDIndex", "(", "F", ")", ")", ")", ";", "MDIndex", "&", "Entry", "=", "Insertion", ".", "first", "->", "second", ";", "if", "(", "!", "Insertion", ".", "second", ")", "{", "if", "(", "Entry", ".", "hasDifferentFunction", "(", "F", ")", ")", "dropFunctionFromMetadata", "(", "*", "Insertion", ".", "first", ")", ";", "return", "nullptr", ";", "}", "if", "(", "auto", "*", "N", "=", "dyn_cast", "<", "MDNode", ">", "(", "MD", ")", ")", "return", "N", ";", "MDs", ".", "push_back", "(", "MD", ")", ";", "Entry", ".", "ID", "=", "MDs", ".", "size", "(", ")", ";", "if", "(", "auto", "*", "C", "=", "dyn_cast", "<", "ConstantAsMetadata", ">", "(", "MD", ")", ")", "EnumerateValue", "(", "C", "->", "getValue", "("], "ground_truth": [")", ")", ";"], "File": "DXILValueEnumerator", "Func": "enumerateMetadataImpl", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50298, "Length": 147, "Cover_Rate": 0.84} {"Template_token": ["", "const", "Constant", "*", "C", "=", "dyn_cast", "<", "Constant", ">", "(", "V", ")", ";", "if", "(", "!", "C", ")", "return", ";", "if", "(", "ValueMap", ".", "count", "(", "C", ")", ")", "return", ";", "for", "(", "const", "Value", "*", "Op", ":", "C", "->", "operands", "(", ")", ")", "{", "if", "(", "isa", "<", "BasicBlock", ">", "(", "Op", ")", ")", "continue", ";", "EnumerateOperandType", "("], "ground_truth": ["Op", ")", ";"], "File": "DXILValueEnumerator", "Func": "EnumerateOperandType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50299, "Length": 62, "Cover_Rate": 0.38271604938271603} {"Template_token": ["", "if", "(", "StructType", "*", "STy", "=", "dyn_cast", "<", "StructType", ">", "(", "Ty", ")", ")", "if", "(", "!", "STy", "->", "isLiteral", "(", ")", ")", "*", "TypeID", "=", "~", "", ";", "for", "(", "Type", "*", "SubTy", ":", "Ty", "->", "subtypes", "("], "ground_truth": [")", ")", "EnumerateType", "(", "SubTy", ")", ";"], "File": "DXILValueEnumerator", "Func": "EnumerateType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50300, "Length": 46, "Cover_Rate": 0.4144144144144144} {"Template_token": ["", "assert", "(", "!", "V", "->", "getType", "(", ")", "->", "isVoidTy", "(", ")", "&&", "", ")", ";", "assert", "(", "!", "isa", "<", "MetadataAsValue", ">", "(", "V", ")", "&&", "", ")", ";", "unsigned", "&", "ValueID", "=", "ValueMap", "[", "V", "]", ";", "if", "(", "ValueID", ")", "{", "Values", "[", "ValueID", "-", "", "]", ".", "second", "++", ";", "return", ";", "}", "if", "(", "auto", "*", "GO", "=", "dyn_cast", "<", "GlobalObject", ">", "(", "V", ")", ")", "if", "(", "const", "Comdat", "*", "C", "=", "GO", "->", "getComdat", "(", ")", ")", "Comdats", ".", "insert", "(", "C", ")", ";", "EnumerateType", "(", "V", "->", "getType", "(", ")", ")", ";", "if", "(", "const", "Constant", "*", "C", "=", "dyn_cast", "<", "Constant", ">", "(", "V", ")", ")", "{", "if", "(", "isa", "<", "GlobalValue", ">", "(", "C"], "ground_truth": [")", ")", "{"], "File": "DXILValueEnumerator", "Func": "EnumerateValue", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50301, "Length": 127, "Cover_Rate": 0.41368078175895767} {"Template_token": ["", "void", "ValueEnumerator", "::", "EnumerateValueSymbolTable", "(", "const", "ValueSymbolTable", "&", "VST", ")", "{", "for", "(", "ValueSymbolTable", "::", "const_iterator", "VI", "=", "VST", ".", "begin", "(", ")", ",", "VE", "=", "VST", "."], "ground_truth": ["end", "(", ")", ";"], "File": "DXILValueEnumerator", "Func": "EnumerateValueSymbolTable", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50302, "Length": 32, "Cover_Rate": 0.6530612244897959} {"Template_token": ["", "const", "Metadata", "*", "get", "(", "ArrayRef", "<", "const", "Metadata", "*", ">", "MDs", ")", "const", "{", "assert", "(", "ID", "&&", ""], "ground_truth": [")", ";"], "File": "DXILValueEnumerator", "Func": "get", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50303, "Length": 22, "Cover_Rate": 0.5} {"Template_token": ["", "const", "Metadata", "*", "get", "(", "ArrayRef", "<", "const", "Metadata", "*", ">", "MDs", ")", "const", "{", "assert", "(", "ID", "&&", "", ")", ";", "assert", "(", "ID", "<=", "MDs", ".", "size", "(", ")", "&&", "", ")", ";", "return", "MDs", "[", "ID"], "ground_truth": ["-", "", "]", ";"], "File": "DXILValueEnumerator", "Func": "get", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50304, "Length": 43, "Cover_Rate": 0.9772727272727273} {"Template_token": ["", "if", "(", "!", "Group", ".", "second", ".", "hasAttributes", "(", ")", ")", "return", "", ";", "AttributeGroupMapType", "::", "const_iterator", "I", "=", "AttributeGroupMap", ".", "find", "(", "Group", ")", ";", "assert", "(", "I", "!=", "AttributeGroupMap", ".", "end", "(", ")", "&&", "", ")", ";", "return", "I", "->", "second"], "ground_truth": [";"], "File": "DXILValueEnumerator", "Func": "getAttributeGroupID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50305, "Length": 44, "Cover_Rate": 0.8301886792452831} {"Template_token": ["", "const", "std", "::", "vector", "<", "IndexAndAttrSet", ">", "&", "getAttributeGroups", "("], "ground_truth": [")", "const", "{"], "File": "DXILValueEnumerator", "Func": "getAttributeGroups", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50306, "Length": 13, "Cover_Rate": 0.7647058823529411} {"Template_token": ["", "const", "std", "::", "vector", "<", "IndexAndAttrSet", ">", "&", "getAttributeGroups", "(", ")", "const", "{", "return"], "ground_truth": ["AttributeGroups", ";"], "File": "DXILValueEnumerator", "Func": "getAttributeGroups", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50307, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "AttributeListMapType", "::", "const_iterator", "I", "=", "AttributeListMap", ".", "find", "(", "PAL", ")", ";", "assert", "(", "I", "!=", "AttributeListMap", ".", "end", "(", ")"], "ground_truth": ["&&", "", ")", ";"], "File": "DXILValueEnumerator", "Func": "getAttributeListID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50308, "Length": 25, "Cover_Rate": 0.5} {"Template_token": ["", "const", "std", "::", "vector", "<", "AttributeList", ">", "&", "getAttributeLists", "(", ")", "const", "{", "return"], "ground_truth": ["AttributeLists", ";"], "File": "DXILValueEnumerator", "Func": "getAttributeLists", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50309, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "const", "std", "::", "vector", "<", "const", "BasicBlock"], "ground_truth": ["*", ">", "&", "getBasicBlocks", "(", ")", "const", "{"], "File": "DXILValueEnumerator", "Func": "getBasicBlocks", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50310, "Length": 15, "Cover_Rate": 0.7894736842105263} {"Template_token": ["", "unsigned", "ValueEnumerator", "::", "getComdatID", "(", "const", "Comdat", "*", "C", ")", "const", "{", "unsigned", "ComdatID", "=", "Comdats", ".", "idFor"], "ground_truth": ["(", "C", ")", ";"], "File": "DXILValueEnumerator", "Func": "getComdatID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50311, "Length": 22, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "unsigned", "ValueEnumerator", "::", "getGlobalBasicBlockID", "(", "const", "BasicBlock", "*", "BB", ")", "const", "{", "unsigned", "&", "Idx", "=", "GlobalBasicBlockIDs", "[", "BB", "]", ";", "if", "(", "Idx", "!=", "", ")", "return", "Idx", "-", "", ";", "IncorporateFunctionInfoGlobalBBIDs", "(", "BB", "->", "getParent", "(", ")", ","], "ground_truth": ["GlobalBasicBlockIDs", ")", ";"], "File": "DXILValueEnumerator", "Func": "getGlobalBasicBlockID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50312, "Length": 43, "Cover_Rate": 0.86} {"Template_token": ["", "unsigned", "ValueEnumerator", "::", "getGlobalBasicBlockID", "(", "const", "BasicBlock", "*", "BB", ")", "const", "{", "unsigned", "&", "Idx", "=", "GlobalBasicBlockIDs"], "ground_truth": ["[", "BB", "]", ";"], "File": "DXILValueEnumerator", "Func": "getGlobalBasicBlockID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50313, "Length": 21, "Cover_Rate": 0.42} {"Template_token": ["", "unsigned", "ValueEnumerator", "::", "getInstructionID", "(", "const", "Instruction", "*", "Inst", ")", "const", "{", "InstructionMapType", "::", "const_iterator", "I", "=", "InstructionMap", ".", "find", "(", "Inst", ")", ";", "assert", "(", "I", "!=", "InstructionMap", ".", "end", "(", ")", "&&", "", ")", ";", "return", "I", "->", "second"], "ground_truth": [";"], "File": "DXILValueEnumerator", "Func": "getInstructionID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50314, "Length": 42, "Cover_Rate": 0.9767441860465116} {"Template_token": ["", "ArrayRef", "<", "const", "Metadata", "*", ">", "getMDStrings", "(", ")", "const", "{", "return", "makeArrayRef", "(", "MDs", ")", ".", "slice", "(", "NumModuleMDs"], "ground_truth": [",", "NumMDStrings", ")", ";"], "File": "DXILValueEnumerator", "Func": "getMDStrings", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50315, "Length": 24, "Cover_Rate": 0.96} {"Template_token": ["", "unsigned", "ValueEnumerator", "::", "getMetadataFunctionID", "(", "const", "Function", "*", "F", ")", "const", "{", "return", "F", "?", "getValueID", "(", "F", ")"], "ground_truth": ["+", "", ":", "", ";"], "File": "DXILValueEnumerator", "Func": "getMetadataFunctionID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50316, "Length": 24, "Cover_Rate": 0.96} {"Template_token": ["", "unsigned", "getMetadataID", "(", "const", "Metadata", "*", "MD", ")", "const", "{", "auto", "ID", "=", "getMetadataOrNullID", "(", "MD", ")", ";", "assert", "(", "ID", "!=", "", "&&", "", ")", ";", "return", "ID", "-", ""], "ground_truth": [";"], "File": "DXILValueEnumerator", "Func": "getMetadataID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50317, "Length": 32, "Cover_Rate": 0.9696969696969697} {"Template_token": ["", "return", "MetadataMap", ".", "lookup", "(", "MD", ")"], "ground_truth": [".", "ID", ";"], "File": "DXILValueEnumerator", "Func": "getMetadataOrNullID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50318, "Length": 10, "Cover_Rate": 0.47619047619047616} {"Template_token": ["", "unsigned", "getMetadataOrNullID", "(", "const", "Metadata", "*", "MD", ")", "const", "{", "return", "MetadataMap", ".", "lookup", "(", "MD"], "ground_truth": [")", ".", "ID", ";"], "File": "DXILValueEnumerator", "Func": "getMetadataOrNullID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50319, "Length": 20, "Cover_Rate": 0.9523809523809523} {"Template_token": ["", "if", "(", "isa", "<", "MDString", ">", "(", "MD", ")", ")", "return", "", ";", "auto", "*", "N", "=", "dyn_cast", "<", "MDNode", ">", "(", "MD", ")", ";", "if", "(", "!", "N", ")", "return", "", ";", "return", "N", "->", "isDistinct", "(", ")", "?"], "ground_truth": ["", ":", "", ";"], "File": "DXILValueEnumerator", "Func": "getMetadataTypeOrder", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50320, "Length": 44, "Cover_Rate": 0.8} {"Template_token": ["", "ArrayRef", "<", "const", "Metadata", "*", ">", "getNonMDStrings", "(", ")", "const", "{", "return", "makeArrayRef", "(", "MDs", ")", ".", "slice", "(", "NumModuleMDs", ")", ".", "slice", "(", "NumMDStrings"], "ground_truth": [")", ";"], "File": "DXILValueEnumerator", "Func": "getNonMDStrings", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50321, "Length": 27, "Cover_Rate": 0.9642857142857143} {"Template_token": ["", "return", "makeArrayRef", "(", "MDs", ")", ".", "slice", "(", "NumModuleMDs"], "ground_truth": [")", ".", "slice", "(", "NumMDStrings", ")", ";"], "File": "DXILValueEnumerator", "Func": "getNonMDStrings", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50322, "Length": 16, "Cover_Rate": 0.5714285714285714} {"Template_token": ["", "assert", "(", "I", "!=", "TypeMap", ".", "end", "(", ")", "&&", "", ")", ";", "return", "I", "->", "second", "-"], "ground_truth": ["", ";"], "File": "DXILValueEnumerator", "Func": "getTypeID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50323, "Length": 20, "Cover_Rate": 0.47619047619047616} {"Template_token": ["", "const", "TypeList", "&", "getTypes"], "ground_truth": ["(", ")", "const", "{"], "File": "DXILValueEnumerator", "Func": "getTypes", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50324, "Length": 8, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "unsigned", "ValueEnumerator", "::", "getValueID", "(", "const", "Value", "*", "V", ")", "const", "{", "if", "(", "auto", "*", "MD", "=", "dyn_cast", "<", "MetadataAsValue", ">", "(", "V", ")", ")", "return", "getMetadataID", "(", "MD", "->", "getMetadata", "(", ")", ")", ";", "ValueMapType", "::", "const_iterator", "I", "=", "ValueMap", ".", "find", "(", "V"], "ground_truth": [")", ";"], "File": "DXILValueEnumerator", "Func": "getValueID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50325, "Length": 48, "Cover_Rate": 0.6956521739130435} {"Template_token": ["", "return", "F", "&&", "F"], "ground_truth": ["!=", "NewF", ";"], "File": "DXILValueEnumerator", "Func": "hasDifferentFunction", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50326, "Length": 7, "Cover_Rate": 0.4375} {"Template_token": ["", "bool", "hasDifferentFunction", "(", "unsigned", "NewF", ")"], "ground_truth": ["const", "{"], "File": "DXILValueEnumerator", "Func": "hasDifferentFunction", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50327, "Length": 8, "Cover_Rate": 0.5} {"Template_token": ["", "return", "NumModuleMDs", "<", "MDs", ".", "size"], "ground_truth": ["(", ")", ";"], "File": "DXILValueEnumerator", "Func": "hasMDs", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50328, "Length": 9, "Cover_Rate": 0.5625} {"Template_token": ["", "return", "NumModuleMDs", "<", "MDs", ".", "size"], "ground_truth": ["(", ")", ";"], "File": "DXILValueEnumerator", "Func": "hasMDs", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50329, "Length": 9, "Cover_Rate": 0.5625} {"Template_token": ["", "unsigned", "Counter", "=", "", ";", "for", "(", "const", "BasicBlock", "&", "BB", ":", "*", "F", ")", "IDMap", "[", "&", "BB"], "ground_truth": ["]", "=", "++", "Counter", ";"], "File": "DXILValueEnumerator", "Func": "IncorporateFunctionInfoGlobalBBIDs", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50330, "Length": 24, "Cover_Rate": 0.5217391304347826} {"Template_token": ["", "for", "(", "const", "BasicBlock", "&", "BB", ":", "*", "F", ")"], "ground_truth": ["IDMap", "[", "&", "BB", "]", "=", "++", "Counter", ";"], "File": "DXILValueEnumerator", "Func": "IncorporateFunctionInfoGlobalBBIDs", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50331, "Length": 19, "Cover_Rate": 0.41304347826086957} {"Template_token": ["", "MDs", ".", "insert", "(", "MDs", ".", "end", "(", ")", ",", "FunctionMDs", ".", "begin", "(", ")", "+", "R", "."], "ground_truth": ["First", ",", "FunctionMDs", ".", "begin", "(", ")", "+", "R", ".", "Last", ")", ";"], "File": "DXILValueEnumerator", "Func": "incorporateFunctionMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50332, "Length": 31, "Cover_Rate": 0.4246575342465753} {"Template_token": ["", "NumMDStrings", "=", "R", ".", "NumStrings", ";", "MDs", ".", "insert", "(", "MDs", ".", "end", "(", ")", ",", "FunctionMDs", ".", "begin", "(", ")", "+", "R", ".", "First", ",", "FunctionMDs", ".", "begin"], "ground_truth": ["(", ")", "+", "R", ".", "Last", ")", ";"], "File": "DXILValueEnumerator", "Func": "incorporateFunctionMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50333, "Length": 37, "Cover_Rate": 0.5068493150684932} {"Template_token": ["", "std", "::", "pair", "<", "unsigned", ",", "bool", ">", "lookup"], "ground_truth": ["(", "const", "Value", "*", "V", ")", "const", "{"], "File": "DXILValueEnumerator", "Func": "lookup", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50334, "Length": 17, "Cover_Rate": 0.6538461538461539} {"Template_token": ["", "std", "::", "pair", "<", "unsigned", ",", "bool", ">"], "ground_truth": ["lookup", "(", "const", "Value", "*", "V", ")", "const", "{"], "File": "DXILValueEnumerator", "Func": "lookup", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50335, "Length": 17, "Cover_Rate": 0.6538461538461539} {"Template_token": ["", "return", "MDs", ".", "size", "("], "ground_truth": [")", ";"], "File": "DXILValueEnumerator", "Func": "numMDs", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50336, "Length": 7, "Cover_Rate": 0.5} {"Template_token": ["", "unsigned", "numMDs", "(", ")", "const", "{", "return", "MDs", ".", "size"], "ground_truth": ["(", ")", ";"], "File": "DXILValueEnumerator", "Func": "numMDs", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50337, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "if", "(", "ShouldPreserveUseListOrder", ")", "return", ";", "std", "::", "stable_sort", "(", "Values", ".", "begin", "(", ")", "+", "CstStart", ",", "Values", ".", "begin", "(", ")", "+", "CstEnd", ",", "[", "this", "]", "(", "const", "std", "::", "pair", "<", "const", "Value", "*", ",", "unsigned", ">", "&", "LHS", ",", "const", "std", "::", "pair", "<", "const", "Value", "*", ",", "unsigned", ">", "&", "RHS", ")", "{", "if", "(", "LHS", ".", "first", "->", "getType", "(", ")", "!=", "RHS", ".", "first", "->", "getType", "(", ")", ")", "return", "getTypeID", "(", "LHS", ".", "first", "->", "getType", "(", ")", ")", "<", "getTypeID", "(", "RHS", ".", "first", "->", "getType", "(", ")", ")", ";", "return", "LHS", ".", "second", ">", "RHS", ".", "second", ";", "}", ")", ";", "std", "::", "stable_partition", "(", "Values", ".", "begin", "(", ")", "+", "CstStart", ","], "ground_truth": ["Values", ".", "begin", "(", ")", "+", "CstEnd", ",", "isIntOrIntVectorValue", ")", ";"], "File": "DXILValueEnumerator", "Func": "OptimizeConstants", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50338, "Length": 135, "Cover_Rate": 0.7258064516129032} {"Template_token": ["", "for", "(", "const", "Argument", "&", "A", ":", "F", ".", "args", "(", ")", ")", "predictValueUseListOrder", "(", "&", "A", ",", "&", "F", ",", "OM", ",", "Stack", ")", ";", "for", "(", "const", "BasicBlock", "&", "BB", ":", "F", ")", "for", "(", "const", "Instruction", "&", "I", ":", "BB", ")", "{", "for", "(", "const", "Value", "*", "Op", ":", "I", ".", "operands", "(", ")", ")", "if", "(", "isa", "<", "Constant", ">", "(", "*", "Op", ")", "||", "isa", "<", "InlineAsm", ">", "(", "*", "Op", ")", ")", "predictValueUseListOrder", "(", "Op", ",", "&", "F", ",", "OM", ",", "Stack", ")", ";", "if", "(", "auto", "*", "SVI", "=", "dyn_cast", "<", "ShuffleVectorInst", ">", "(", "&", "I", ")", ")", "predictValueUseListOrder", "(", "SVI", "->", "getShuffleMaskForBitcode", "(", ")", ",", "&", "F", ",", "OM", ",", "Stack", ")", ";", "}", "for", "(", "const", "BasicBlock", "&", "BB", ":", "F", ")", "for", "(", "const", "Instruction", "&", "I", ":", "BB", ")", "predictValueUseListOrder", "(", "&", "I", ",", "&", "F", ",", "OM", ",", "Stack", ")", ";", "}", "for", "(", "const", "GlobalVariable", "&", "G", ":", "M", ".", "globals", "(", ")", ")", "predictValueUseListOrder", "(", "&", "G", ",", "nullptr", ",", "OM", ",", "Stack", ")", ";", "for", "(", "const", "Function", "&", "F", ":", "M", ")", "predictValueUseListOrder", "(", "&", "F", ",", "nullptr", ",", "OM", ",", "Stack", ")", ";", "for", "(", "const", "GlobalAlias", "&", "A", ":", "M", ".", "aliases", "(", ")", ")", "predictValueUseListOrder", "(", "&", "A", ",", "nullptr", ",", "OM", ",", "Stack", ")", ";", "for", "(", "const", "GlobalIFunc", "&", "I", ":", "M", ".", "ifuncs", "(", ")", ")", "predictValueUseListOrder", "(", "&", "I", ",", "nullptr", ",", "OM", ",", "Stack", ")", ";", "for", "(", "const", "GlobalVariable", "&", "G", ":", "M", ".", "globals", "(", ")", ")", "if", "(", "G", ".", "hasInitializer", "(", ")", ")", "predictValueUseListOrder", "(", "G", ".", "getInitializer", "(", ")", ",", "nullptr", ",", "OM", ",", "Stack", ")", ";", "for", "(", "const", "GlobalAlias", "&", "A", ":", "M", ".", "aliases", "(", ")", ")", "predictValueUseListOrder", "(", "A", ".", "getAliasee", "(", ")", ",", "nullptr", ",", "OM", ",", "Stack", ")", ";", "for", "(", "const", "GlobalIFunc", "&", "I", ":", "M", ".", "ifuncs", "(", ")", ")", "predictValueUseListOrder", "(", "I", ".", "getResolver", "(", ")", ",", "nullptr", ",", "OM", ",", "Stack", ")", ";", "for", "(", "const", "Function", "&", "F", ":", "M", ")", "{", "for", "(", "const", "Use", "&", "U", ":", "F", ".", "operands", "(", ")", ")", "predictValueUseListOrder", "(", "U", ".", "get", "("], "ground_truth": [")", ",", "nullptr", ",", "OM", ",", "Stack", ")", ";"], "File": "DXILValueEnumerator", "Func": "predictUseListOrder", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50339, "Length": 380, "Cover_Rate": 0.8388520971302428} {"Template_token": ["", "IDPair", ".", "second", "=", "true", ";", "if", "(", "!", "V", "->", "use_empty", "(", ")", "&&", "std", "::", "next", "(", "V", "->", "use_begin", "(", ")", ")", "!=", "V", "->", "use_end", "(", ")", ")", "predictValueUseListOrderImpl", "(", "V", ",", "F", ",", "IDPair", ".", "first", ",", "OM", ",", "Stack", ")", ";", "if", "(", "const", "Constant", "*", "C", "=", "dyn_cast", "<", "Constant", ">", "(", "V", ")", ")", "{", "if", "(", "C", "->", "getNumOperands", "("], "ground_truth": [")", ")", "{"], "File": "DXILValueEnumerator", "Func": "predictValueUseListOrder", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50340, "Length": 72, "Cover_Rate": 0.36180904522613067} {"Template_token": ["", "for", "(", "const", "auto", "&", "I", ":", "Map", ")", "{", "const", "Metadata", "*", "MD", "=", "I", ".", "first", ";", "OS", "<<", "", "<<", "I", ".", "second", "."], "ground_truth": ["ID", "<<", "", ";"], "File": "DXILValueEnumerator", "Func": "print", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50341, "Length": 31, "Cover_Rate": 0.31958762886597936} {"Template_token": ["", "for", "(", "const", "BasicBlock", "*", "BB", ":", "BasicBlocks", ")", "ValueMap", ".", "erase", "(", "BB", ")", ";", "Values", ".", "resize", "(", "NumModuleValues", ")", ";", "MDs", ".", "resize", "(", "NumModuleMDs", ")", ";", "BasicBlocks", ".", "clear", "(", ")", ";", "NumMDStrings", "="], "ground_truth": ["", ";"], "File": "DXILValueEnumerator", "Func": "purgeFunction", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50342, "Length": 40, "Cover_Rate": 0.3508771929824561} {"Template_token": ["", "InstructionMap", "[", "I", "]"], "ground_truth": ["=", "InstructionCount", "++", ";"], "File": "DXILValueEnumerator", "Func": "setInstructionID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50343, "Length": 8, "Cover_Rate": 0.4} {"Template_token": ["", "void", "ValueEnumerator", "::", "setInstructionID", "(", "const", "Instruction", "*"], "ground_truth": ["I", ")", "{"], "File": "DXILValueEnumerator", "Func": "setInstructionID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50344, "Length": 11, "Cover_Rate": 0.55} {"Template_token": ["", "bool", "shouldPreserveUseListOrder", "(", ")", "const", "{", "return"], "ground_truth": ["ShouldPreserveUseListOrder", ";"], "File": "DXILValueEnumerator", "Func": "shouldPreserveUseListOrder", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50345, "Length": 9, "Cover_Rate": 0.9} {"Template_token": ["", "unsigned", "size", "(", ")", "const", "{", "return", "IDs", ".", "size", "("], "ground_truth": [")", ";"], "File": "DXILValueEnumerator", "Func": "size", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50346, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "return", "IDs", ".", "size"], "ground_truth": ["(", ")", ";"], "File": "DXILValueEnumerator", "Func": "size", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50347, "Length": 7, "Cover_Rate": 0.5} {"Template_token": ["", "EnumerateValue", "(", "&", "GV", ")", ";", "EnumerateType", "(", "GV", ".", "getValueType", "(", ")", ")", ";", "}", "for", "(", "const", "Function", "&", "F", ":", "M", ")", "{", "EnumerateValue", "(", "&", "F", ")", ";", "EnumerateType", "(", "F", ".", "getValueType", "(", ")", ")", ";", "EnumerateAttributes", "(", "F", ".", "getAttributes", "(", ")", ")", ";", "}", "for", "(", "const", "GlobalAlias", "&", "GA", ":", "M", ".", "aliases", "(", ")", ")", "{", "EnumerateValue", "(", "&", "GA", ")", ";", "EnumerateType", "(", "GA", ".", "getValueType", "(", ")", ")", ";", "}", "for", "(", "const", "GlobalIFunc", "&", "GIF", ":", "M", ".", "ifuncs", "(", ")", ")", "{", "EnumerateValue", "(", "&", "GIF", ")", ";", "EnumerateType", "(", "GIF", ".", "getValueType", "(", ")", ")", ";", "}", "unsigned", "FirstConstant", "=", "Values", ".", "size", "(", ")", ";", "for", "(", "const", "GlobalVariable", "&", "GV", ":", "M", ".", "globals", "(", ")", ")", "{", "if", "(", "GV", ".", "hasInitializer", "(", ")", ")", "EnumerateValue", "(", "GV", ".", "getInitializer", "(", ")", ")", ";", "if", "(", "GV", ".", "hasAttributes", "(", ")", ")", "EnumerateAttributes", "(", "GV", ".", "getAttributesAsList", "(", "AttributeList", "::", "FunctionIndex", ")", ")", ";", "}", "for", "(", "const", "GlobalAlias", "&", "GA", ":", "M", ".", "aliases", "(", ")", ")", "EnumerateValue", "(", "GA", ".", "getAliasee", "(", ")", ")", ";", "for", "(", "const", "GlobalIFunc", "&", "GIF", ":", "M", ".", "ifuncs", "(", ")", ")", "EnumerateValue", "(", "GIF", ".", "getResolver", "(", ")", ")", ";", "for", "(", "const", "Function", "&", "F", ":", "M", ")", "for", "(", "const", "Use", "&", "U", ":", "F", ".", "operands", "(", ")", ")", "EnumerateValue", "(", "U", ".", "get", "(", ")", ")", ";", "EnumerateType", "(", "Type", "::", "getMetadataTy", "(", "M", ".", "getContext", "(", ")", ")", ")", ";", "EnumerateValueSymbolTable", "(", "M", ".", "getValueSymbolTable", "(", ")"], "ground_truth": [")", ";"], "File": "DXILValueEnumerator", "Func": "ValueEnumerator", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50348, "Length": 270, "Cover_Rate": 0.33210332103321033} {"Template_token": ["", "ModulePass", "*", "llvm", "::", "createWriterPass"], "ground_truth": ["(", "raw_ostream", "&", "Str", ")", "{"], "File": "DXILWriterPass", "Func": "createDXILWriterPass", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50349, "Length": 11, "Cover_Rate": 0.5789473684210527} {"Template_token": ["", "ModulePass", "*", "llvm", "::", "createWriterPass", "("], "ground_truth": ["raw_ostream", "&", "Str", ")", "{"], "File": "DXILWriterPass", "Func": "createDXILWriterPass", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50350, "Length": 11, "Cover_Rate": 0.5789473684210527} {"Template_token": ["", "AU", ".", "setPreservesAll", "("], "ground_truth": [")", ";"], "File": "DXILWriterPass", "Func": "getAnalysisUsage", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50351, "Length": 6, "Cover_Rate": 0.35294117647058826} {"Template_token": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "setPreservesAll"], "ground_truth": ["(", ")", ";"], "File": "DXILWriterPass", "Func": "getAnalysisUsage", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50352, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return"], "ground_truth": ["", ";"], "File": "DXILWriterPass", "Func": "getPassName", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50353, "Length": 10, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "explicit", "WritePass", "(", "raw_ostream", "&", "o", ")", ":", "ModulePass", "(", "ID", ")", ",", "OS", "(", "o", ")", "{", "initializeWritePassPass", "(", "*", "PassRegistry", "::", "getPassRegistry"], "ground_truth": ["(", ")", ")", ";"], "File": "DXILWriterPass", "Func": "WriteDXILPass", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50354, "Length": 28, "Cover_Rate": 0.9655172413793104} {"Template_token": ["", "for", "(", "const", "auto", "&", "I", ":", "B", ")", "{", "if", "(", "const", "auto", "*", "RetInst", "=", "dyn_cast_or_null", "<", "ReturnInst", ">", "(", "&", "I", ")", ")", "{", "Type", "*", "NewRetTy", "=", "classifyPointerType", "(", "RetInst", "->", "getReturnValue", "(", ")", ")", ";", "if", "(", "!", "RetTy", ")", "RetTy", "=", "NewRetTy", ";", "else", "if", "(", "RetTy", "!=", "NewRetTy", ")", "RetTy", "=", "TypedPointerType", "::", "get", "(", "Type", "::", "getInt8Ty", "(", "I", ".", "getContext", "(", ")", ")", ",", "F", ".", "getReturnType", "(", ")", "->", "getPointerAddressSpace", "(", ")", ")", ";", "}", "}", "}", "}", "for", "(", "auto", "&", "A", ":", "F", ".", "args", "(", ")", ")", "{", "Type", "*", "ArgTy", "=", "A", ".", "getType", "(", ")", ";", "if", "(", "ArgTy", "->", "isOpaquePointerTy", "(", ")", ")", "{", "TypedPointerType", "*", "NewTy", "=", "classifyPointerType", "(", "&", "A", ")", ";", "Map", "[", "&", "A", "]", "=", "NewTy", ";", "ArgTy", "=", "NewTy", ";", "HasOpaqueTy", "="], "ground_truth": ["true", ";"], "File": "PointerTypeAnalysis", "Func": "classifyFunctionType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 50355, "Length": 146, "Cover_Rate": 0.6083333333333333}