Target region for entire compilation of an implementation

This commit is contained in:
John Keiser
2020-07-16 12:20:25 -07:00
parent 796588900c
commit af8b52e7e8
37 changed files with 118 additions and 149 deletions
+8 -11
View File
@@ -1,6 +1,4 @@
#include "simdjson.h"
#include "westmere/implementation.h"
#include "westmere/dom_parser_implementation.h"
#include "westmere/begin_implementation.h"
//
// Stage 1
@@ -10,9 +8,8 @@
#include "westmere/bitmanipulation.h"
#include "westmere/implementation.h"
TARGET_WESTMERE
namespace simdjson {
namespace westmere {
namespace SIMDJSON_IMPLEMENTATION {
using namespace simd;
@@ -103,9 +100,9 @@ WARN_UNUSED error_code dom_parser_implementation::stage1(const uint8_t *_buf, si
WARN_UNUSED bool implementation::validate_utf8(const char *buf, size_t len) const noexcept {
return simdjson::westmere::stage1::generic_validate_utf8(buf,len);
}
} // namespace westmere
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace simdjson
UNTARGET_REGION
//
// Stage 2
@@ -113,9 +110,8 @@ UNTARGET_REGION
#include "westmere/stringparsing.h"
#include "westmere/numberparsing.h"
TARGET_WESTMERE
namespace simdjson {
namespace westmere {
namespace SIMDJSON_IMPLEMENTATION {
#include "generic/stage2/logger.h"
#include "generic/stage2/atomparsing.h"
@@ -128,6 +124,7 @@ WARN_UNUSED error_code dom_parser_implementation::parse(const uint8_t *_buf, siz
return stage2(_doc);
}
} // namespace westmere
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace simdjson
UNTARGET_REGION
#include "westmere/end_implementation.h"