/external/llvm-project/clang-tools-extra/unittests/clang-move/ |
D | ClangMoveTests.cpp | 222 CreateFiles(Spec.NewHeader, ""); in runClangMoveOnCode() 255 Spec.NewHeader = "new_foo.h"; in TEST() 257 std::string ExpectedHeader = "#include \"" + Spec.NewHeader + "\"\n\n"; in TEST() 261 EXPECT_EQ(ExpectedNewHeader, Results[Spec.NewHeader]); in TEST() 269 Spec.NewHeader = "new_foo.h"; in TEST() 273 EXPECT_EQ(ExpectedNewHeader, Results[Spec.NewHeader]); in TEST() 293 Spec.NewHeader = "new_foo.h"; in TEST() 304 Spec.NewHeader = "new_foo.h"; in TEST() 321 EXPECT_EQ(ExpectedNewHeader, Results[Spec.NewHeader]); in TEST() 340 Spec.NewHeader = "new_foo.h"; in TEST() [all …]
|
/external/llvm-project/compiler-rt/lib/scudo/standalone/tests/ |
D | chunk_test.cpp | 53 scudo::Chunk::UnpackedHeader NewHeader = OldHeader; in TEST() local 54 NewHeader.State = scudo::Chunk::State::Quarantined; in TEST() 55 scudo::Chunk::compareExchangeHeader(Cookie, P, &NewHeader, &OldHeader); in TEST() 56 NewHeader = {}; in TEST() 57 EXPECT_TRUE(scudo::Chunk::isValid(Cookie, P, &NewHeader)); in TEST() 58 EXPECT_EQ(NewHeader.State, scudo::Chunk::State::Quarantined); in TEST() 59 EXPECT_FALSE(scudo::Chunk::isValid(InvalidCookie, P, &NewHeader)); in TEST()
|
/external/scudo/standalone/tests/ |
D | chunk_test.cpp | 53 scudo::Chunk::UnpackedHeader NewHeader = OldHeader; in TEST() local 54 NewHeader.State = scudo::Chunk::State::Quarantined; in TEST() 55 scudo::Chunk::compareExchangeHeader(Cookie, P, &NewHeader, &OldHeader); in TEST() 56 NewHeader = {}; in TEST() 57 EXPECT_TRUE(scudo::Chunk::isValid(Cookie, P, &NewHeader)); in TEST() 58 EXPECT_EQ(NewHeader.State, scudo::Chunk::State::Quarantined); in TEST() 59 EXPECT_FALSE(scudo::Chunk::isValid(InvalidCookie, P, &NewHeader)); in TEST()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopRotation.cpp | 258 BasicBlock *NewHeader = BI->getSuccessor(1); in rotateLoop() local 260 std::swap(Exit, NewHeader); in rotateLoop() 261 assert(NewHeader && "Unable to determine new loop header"); in rotateLoop() 262 assert(L->contains(NewHeader) && !L->contains(Exit) && in rotateLoop() 267 assert(NewHeader->getSinglePredecessor() && in rotateLoop() 269 FoldSingleEntryPHINodes(NewHeader); in rotateLoop() 351 L->moveToHeader(NewHeader); in rotateLoop() 352 assert(L->getHeader() == NewHeader && "Latch block is our new header"); in rotateLoop() 365 NewHeader) { in rotateLoop() 382 assert(DT->getNode(NewHeader)->getIDom() == OrigPreheaderNode); in rotateLoop() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | LoopRotationUtils.cpp | 289 BasicBlock *NewHeader = BI->getSuccessor(1); in rotateLoop() local 291 std::swap(Exit, NewHeader); in rotateLoop() 292 assert(NewHeader && "Unable to determine new loop header"); in rotateLoop() 293 assert(L->contains(NewHeader) && !L->contains(Exit) && in rotateLoop() 298 assert(NewHeader->getSinglePredecessor() && in rotateLoop() 300 FoldSingleEntryPHINodes(NewHeader); in rotateLoop() 426 L->moveToHeader(NewHeader); in rotateLoop() 427 assert(L->getHeader() == NewHeader && "Latch block is our new header"); in rotateLoop() 435 Updates.push_back({DominatorTree::Insert, OrigPreheader, NewHeader}); in rotateLoop() 457 NewHeader) { in rotateLoop() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | LoopRotationUtils.cpp | 354 BasicBlock *NewHeader = BI->getSuccessor(1); in rotateLoop() local 356 std::swap(Exit, NewHeader); in rotateLoop() 357 assert(NewHeader && "Unable to determine new loop header"); in rotateLoop() 358 assert(L->contains(NewHeader) && !L->contains(Exit) && in rotateLoop() 363 assert(NewHeader->getSinglePredecessor() && in rotateLoop() 365 FoldSingleEntryPHINodes(NewHeader); in rotateLoop() 491 L->moveToHeader(NewHeader); in rotateLoop() 492 assert(L->getHeader() == NewHeader && "Latch block is our new header"); in rotateLoop() 500 Updates.push_back({DominatorTree::Insert, OrigPreheader, NewHeader}); in rotateLoop() 522 NewHeader) { in rotateLoop() [all …]
|
/external/llvm-project/clang-tools-extra/clang-move/tool/ |
D | ClangMove.cpp | 56 NewHeader("new_header", variable 115 Spec.NewHeader = NewHeader; in main() 163 if (!NewHeader.empty()) { in main() 164 std::error_code EC = CreateNewFile(NewHeader); in main() 166 llvm::errs() << "Failed to create " << NewHeader << ": " << EC.message() in main()
|
/external/llvm-project/compiler-rt/lib/scudo/standalone/ |
D | combined.h | 70 Chunk::UnpackedHeader NewHeader = Header; in recycle() local 71 NewHeader.State = Chunk::State::Available; in recycle() 72 Chunk::compareExchangeHeader(Allocator.Cookie, Ptr, &NewHeader, &Header); in recycle() 74 void *BlockBegin = Allocator::getBlockBegin(Ptr, &NewHeader); in recycle() 75 const uptr ClassId = NewHeader.ClassId; in recycle() 116 Chunk::UnpackedHeader NewHeader = Header; in deallocate() local 117 NewHeader.State = Chunk::State::Available; in deallocate() 118 Chunk::compareExchangeHeader(Allocator.Cookie, Ptr, &NewHeader, &Header); in deallocate() 587 Chunk::UnpackedHeader NewHeader = OldHeader; variable 588 NewHeader.SizeOrUnusedBytes = [all …]
|
/external/compiler-rt/lib/scudo/ |
D | scudo_allocator.cpp | 397 UnpackedHeader NewHeader = OldHeader; in deallocate() local 398 NewHeader.State = ChunkQuarantine; in deallocate() 399 Chunk->compareExchangeHeader(&NewHeader, &OldHeader); in deallocate() 402 if (NewHeader.AllocType != Type) { in deallocate() 404 if (NewHeader.AllocType != FromMemalign || Type != FromMalloc) { in deallocate() 410 uptr Size = NewHeader.RequestedSize; in deallocate() 477 UnpackedHeader NewHeader = OldHeader; in reallocate() local 480 NewHeader.RequestedSize = NewSize; in reallocate() 481 Chunk->compareExchangeHeader(&NewHeader, &OldHeader); in reallocate() 490 NewHeader.State = ChunkQuarantine; in reallocate() [all …]
|
/external/scudo/standalone/ |
D | combined.h | 69 Chunk::UnpackedHeader NewHeader = Header; in recycle() local 70 NewHeader.State = Chunk::State::Available; in recycle() 71 Chunk::compareExchangeHeader(Allocator.Cookie, Ptr, &NewHeader, &Header); in recycle() 75 void *BlockBegin = Allocator::getBlockBegin(Ptr, &NewHeader); in recycle() 76 Cache.deallocate(NewHeader.ClassId, BlockBegin); in recycle() 119 Chunk::UnpackedHeader NewHeader = Header; in deallocate() local 120 NewHeader.State = Chunk::State::Available; in deallocate() 121 Chunk::compareExchangeHeader(Allocator.Cookie, Ptr, &NewHeader, &Header); in deallocate() 635 Chunk::UnpackedHeader NewHeader = OldHeader; variable 636 NewHeader.SizeOrUnusedBytes = [all …]
|
/external/llvm-project/compiler-rt/lib/scudo/ |
D | scudo_allocator.cpp | 187 UnpackedHeader NewHeader = Header; in Recycle() local 188 NewHeader.State = ChunkAvailable; in Recycle() 189 Chunk::compareExchangeHeader(Ptr, &NewHeader, &Header); in Recycle() 408 UnpackedHeader NewHeader = *Header; in quarantineOrDeallocateChunk() local 409 NewHeader.State = ChunkAvailable; in quarantineOrDeallocateChunk() 410 Chunk::compareExchangeHeader(Ptr, &NewHeader, Header); in quarantineOrDeallocateChunk() 429 UnpackedHeader NewHeader = *Header; in quarantineOrDeallocateChunk() local 430 NewHeader.State = ChunkQuarantine; in quarantineOrDeallocateChunk() 431 Chunk::compareExchangeHeader(Ptr, &NewHeader, Header); in quarantineOrDeallocateChunk() 523 UnpackedHeader NewHeader = OldHeader; in reallocate() local [all …]
|
/external/llvm-project/clang-tools-extra/clang-move/ |
D | Move.cpp | 487 if (!Context->Spec.NewHeader.empty()) in ClangMoveTool() 488 CCIncludes.push_back("#include \"" + Context->Spec.NewHeader + "\"\n"); in ClangMoveTool() 770 "#include \"" + Context->Spec.NewHeader + "\"\n"; in removeDeclsInOldFiles() 827 if (!Context->Spec.NewHeader.empty()) { in moveDeclsToNewFiles() 832 Context->FileToReplacements[Context->Spec.NewHeader] = in moveDeclsToNewFiles() 834 Context->Spec.NewHeader, /*IsHeader=*/true, in moveDeclsToNewFiles() 865 SM, OldHeaderIncludeRange, '"' + Context->Spec.NewHeader + '"'))); in moveAll() 871 else if (Context->Spec.NewHeader == NewFile && in moveAll() 927 moveAll(SM, Context->Spec.OldHeader, Context->Spec.NewHeader); in onEndOfTranslationUnit()
|
D | Move.h | 70 std::string NewHeader; member
|
/external/llvm-project/llvm/tools/llvm-rc/ |
D | ResourceFileWriter.cpp | 937 ResourceDirEntryStart NewHeader = OldHeader; in visitIconOrCursorResource() local 940 NewHeader.Cursor.Width = OldHeader.Icon.Width; in visitIconOrCursorResource() 945 NewHeader.Cursor.Height = OldHeader.Icon.Height * 2; in visitIconOrCursorResource() 949 NewHeader.Size += 2 * sizeof(uint16_t); in visitIconOrCursorResource() 958 NewHeader.Planes = BMPHeader->Planes; in visitIconOrCursorResource() 959 NewHeader.BitCount = BMPHeader->BitCount; in visitIconOrCursorResource() 964 NewHeader.Planes = 1; in visitIconOrCursorResource() 965 NewHeader.BitCount = 32; in visitIconOrCursorResource() 968 ItemEntries[ID] = NewHeader; in visitIconOrCursorResource()
|