DxilNoops.h 1.0 KB

123456789101112131415161718192021222324
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // //
  3. // DxilNoops.h //
  4. // Copyright (C) Microsoft Corporation. All rights reserved. //
  5. // This file is distributed under the University of Illinois Open Source //
  6. // License. See LICENSE.TXT for details. //
  7. // //
  8. ///////////////////////////////////////////////////////////////////////////////
  9. #pragma once
  10. #include "llvm/ADT/StringRef.h"
  11. namespace llvm {
  12. class Instruction;
  13. }
  14. namespace hlsl {
  15. static const llvm::StringRef kNoopName = "dx.noop";
  16. static const llvm::StringRef kPreservePrefix = "dx.preserve.";
  17. static const llvm::StringRef kNothingName = "dx.nothing.a";
  18. static const llvm::StringRef kPreserveName = "dx.preserve.value.a";
  19. bool IsPreserve(llvm::Instruction *S);
  20. }