Files
lifting-bits-remill/remill/Arch/X86/Semantics/NOP.cpp
T
Peter Goodman 99df2e19d4 Running clang-format on files with some additional custom scripts for… (#444)
* Running clang-format on files with some additional custom scripts for my style

* Fix missing unique_ptr in remill/BC/Optimizer.h

* Fixes and selective disabling of clang-format
2020-08-05 15:42:25 -04:00

69 lines
2.1 KiB
C++

/*
* Copyright (c) 2017 Trail of Bits, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
namespace {
template <typename... Types>
DEF_SEM(NOP_IMPL, Types...) {
return memory;
}
} // namespace
DEF_ISEL_Rn(NOP_GPRv_0F18r0, NOP_IMPL);
DEF_ISEL_Rn(NOP_GPRv_0F18r1, NOP_IMPL);
DEF_ISEL_Rn(NOP_GPRv_0F18r2, NOP_IMPL);
DEF_ISEL_Rn(NOP_GPRv_0F18r3, NOP_IMPL);
DEF_ISEL_Rn(NOP_GPRv_0F18r4, NOP_IMPL);
DEF_ISEL_Rn(NOP_GPRv_0F18r5, NOP_IMPL);
DEF_ISEL_Rn(NOP_GPRv_0F18r6, NOP_IMPL);
DEF_ISEL_Rn(NOP_GPRv_0F18r7, NOP_IMPL);
DEF_ISEL_Rn_Rn(NOP_GPRv_GPRv_0F19, NOP_IMPL);
DEF_ISEL_Rn_Rn(NOP_GPRv_GPRv_0F1C, NOP_IMPL);
DEF_ISEL_Rn_Rn(NOP_GPRv_GPRv_0F1D, NOP_IMPL);
DEF_ISEL_Rn_Rn(NOP_GPRv_GPRv_0F1E, NOP_IMPL);
DEF_ISEL_Rn_Rn(NOP_GPRv_GPRv_0F1F, NOP_IMPL);
DEF_ISEL_Mn(NOP_MEMv_0F18r4, NO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