llvm.org GIT mirror llvm / d8ff2f4
Untabify. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316079 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 1 year, 10 months ago
8 changed file(s) with 25 addition(s) and 25 deletion(s). Raw diff Collapse all Expand all
29402940 SDValue Res = DAG.getMaskedLoad(WidenVT, dl, N->getChain(), N->getBasePtr(),
29412941 Mask, Src0, N->getMemoryVT(),
29422942 N->getMemOperand(), ExtType,
2943 N->isExpandingLoad());
2943 N->isExpandingLoad());
29442944 // Legalize the chain result - switch anything that used the old chain to
29452945 // use the new one.
29462946 ReplaceValueWith(SDValue(N, 1), Res.getValue(1));
476476 "the file");
477477 if (Error Err = checkOverlappingElement(Elements, Dysymtab.tocoff,
478478 Dysymtab.ntoc * sizeof(struct
479 MachO::dylib_table_of_contents),
480 "table of contents"))
479 MachO::dylib_table_of_contents),
480 "table of contents"))
481481 return Err;
482482 if (Dysymtab.modtaboff > FileSize)
483483 return malformedError("modtaboff field of LC_DYSYMTAB command " +
536536 if (Error Err = checkOverlappingElement(Elements, Dysymtab.indirectsymoff,
537537 Dysymtab.nindirectsyms *
538538 sizeof(uint32_t),
539 "indirect table"))
539 "indirect table"))
540540 return Err;
541541 if (Dysymtab.extreloff > FileSize)
542542 return malformedError("extreloff field of LC_DYSYMTAB command " +
788788
789789 void AMDGPUDAGToDAGISel::SelectFMUL_W_CHAIN(SDNode *N) {
790790 SDLoc SL(N);
791 // src0_modifiers, src0, src1_modifiers, src1, clamp, omod
791 // src0_modifiers, src0, src1_modifiers, src1, clamp, omod
792792 SDValue Ops[8];
793793
794794 SelectVOP3Mods0(N->getOperand(1), Ops[1], Ops[0], Ops[4], Ops[5]);
3030 // Assume wildcards for unspecified instrs.
3131 unsigned FirstOpcode =
3232 FirstMI ? FirstMI->getOpcode()
33 : static_cast(ARM::INSTRUCTION_LIST_END);
33 : static_cast(ARM::INSTRUCTION_LIST_END);
3434 unsigned SecondOpcode = SecondMI.getOpcode();
3535
3636 if (ST.hasFuseAES())
10791079 // be patching over the full 48 bytes (12 instructions) with the following
10801080 // pattern:
10811081 //
1082 // ADDIU SP, SP, -8
1082 // ADDIU SP, SP, -8
10831083 // NOP
1084 // SW RA, 4(SP)
1084 // SW RA, 4(SP)
10851085 // SW T9, 0(SP)
10861086 // LUI T9, %hi(__xray_FunctionEntry/Exit)
10871087 // ORI T9, T9, %lo(__xray_FunctionEntry/Exit)
10881088 // LUI T0, %hi(function_id)
1089 // JALR T9
1090 // ORI T0, T0, %lo(function_id)
1091 // LW T9, 0(SP)
1089 // JALR T9
1090 // ORI T0, T0, %lo(function_id)
1091 // LW T9, 0(SP)
10921092 // LW RA, 4(SP)
10931093 // ADDIU SP, SP, 8
10941094 //
60696069 char *buffer;
60706070 if (xar_extract_tobuffersz(xar, xf, &buffer, &member_size) == 0) {
60716071 #if 0 // Useful for debugging.
6072 outs() << "xar member: " << member_name << " extracted\n";
6072 outs() << "xar member: " << member_name << " extracted\n";
60736073 #endif
60746074 // Set the XarMemberName we want to see printed in the header.
60756075 std::string OldXarMemberName;
60866086 // See if this is could be a xar file (nested).
60876087 if (member_size >= sizeof(struct xar_header)) {
60886088 #if 0 // Useful for debugging.
6089 outs() << "could be a xar file: " << member_name << "\n";
6089 outs() << "could be a xar file: " << member_name << "\n";
60906090 #endif
60916091 memcpy((char *)&XarHeader, buffer, sizeof(struct xar_header));
60926092 if (sys::IsLittleEndianHost)
14541454 const unsigned NumGetZeroTests = 12;
14551455 for (unsigned i = 0; i < NumGetZeroTests; ++i) {
14561456 APFloat test = APFloat::getZero(*GetZeroTest[i].semantics,
1457 GetZeroTest[i].sign);
1457 GetZeroTest[i].sign);
14581458 const char *pattern = GetZeroTest[i].sign? "-0x0p+0" : "0x0p+0";
14591459 APFloat expected = APFloat(*GetZeroTest[i].semantics,
1460 pattern);
1460 pattern);
14611461 EXPECT_TRUE(test.isZero());
14621462 EXPECT_TRUE(GetZeroTest[i].sign? test.isNegative() : !test.isNegative());
14631463 EXPECT_TRUE(test.bitwiseIsEqual(expected));
0 //===- llvm/unittest/Support/AllocatorTest.cpp - BumpPtrAllocator tests ---===//
11 //
2 // The LLVM Compiler Infrastructure
2 // The LLVM Compiler Infrastructure
33 //
44 // This file is distributed under the University of Illinois Open Source
55 // License. See LICENSE.TXT for details.
349349 // Note that Memory::MF_WRITE is not supported exclusively across
350350 // operating systems and architectures and can imply MF_READ|MF_WRITE
351351 unsigned MemoryFlags[] = {
352 Memory::MF_READ,
353 Memory::MF_WRITE,
354 Memory::MF_READ|Memory::MF_WRITE,
355 Memory::MF_EXEC,
356 Memory::MF_READ|Memory::MF_EXEC,
357 Memory::MF_READ|Memory::MF_WRITE|Memory::MF_EXEC
358 };
352 Memory::MF_READ,
353 Memory::MF_WRITE,
354 Memory::MF_READ|Memory::MF_WRITE,
355 Memory::MF_EXEC,
356 Memory::MF_READ|Memory::MF_EXEC,
357 Memory::MF_READ|Memory::MF_WRITE|Memory::MF_EXEC
358 };
359359
360360 INSTANTIATE_TEST_CASE_P(AllocationTests,
361 MappedMemoryTest,
362 ::testing::ValuesIn(MemoryFlags),);
361 MappedMemoryTest,
362 ::testing::ValuesIn(MemoryFlags),);
363363
364364 } // anonymous namespace