[AMDGPU] prevent shrinking udiv/urem if either operand is in (SignedMax,UnsignedMax...
[llvm-project.git] / llvm / utils / gn / build / write_file.py
blob112164f208e54dc1c4897fcee574de6bf4441b9d
1 #!/usr/bin/env python3
3 """Write content into file."""
5 import argparse
6 import sys
9 def main():
10 parser = argparse.ArgumentParser(description=__doc__)
11 parser.add_argument("filepath")
12 parser.add_argument("content")
14 args = parser.parse_args()
16 with open(args.filepath, "w") as f:
17 f.write(args.content)
20 if __name__ == "__main__":
21 sys.exit(main())